Skip to content

Commit

Permalink
refactor: self closing
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Mar 13, 2024
1 parent 64bd6e8 commit b03e2e9
Show file tree
Hide file tree
Showing 687 changed files with 2,283 additions and 2,283 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
</svg>
<div class="t-content">
<div class="t-wrapper">
<ng-content></ng-content>
<ng-content />
</div>
</div>
<div class="t-percent">
Expand Down
2 changes: 1 addition & 1 deletion projects/addon-charts/components/axes/axes.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
</div>
</div>
<div class="t-content">
<ng-content></ng-content>
<ng-content />
</div>
</div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
[size]="size"
[tuiFocusable]="!!hintContent"
[value]="set"
></tui-bar-set>
/>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*ngFor="let item of computedValue; let index = index"
[ngTemplateOutlet]="bar"
[ngTemplateOutletContext]="{$implicit: item, index: index, flexible: false}"
></ng-container>
/>
</ng-container>
<ng-template #flexible>
<div
Expand All @@ -13,7 +13,7 @@
<ng-container
[ngTemplateOutlet]="bar"
[ngTemplateOutletContext]="{$implicit: item, index: index, flexible: true}"
></ng-container>
/>
</div>
</ng-template>
<ng-template
Expand All @@ -31,8 +31,8 @@
[style.background]="getColor(index)"
[style.height.%]="getHeight(item)"
[value]="computedSegments"
></tui-bar>
/>
</ng-template>
<span class="t-label">
<ng-content></ng-content>
<ng-content />
</span>
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
[pseudoHover]="active || null"
>
<div class="t-wrapper">
<ng-content select="[tuiCheckbox]"></ng-content>
<ng-content select="[tuiCheckbox]" />
<span
class="t-dot"
[style.backgroundColor]="color || 'var(--tui-primary)'"
></span>
<span class="t-text">{{ text }}</span>
<ng-content></ng-content>
<ng-content />
</div>
</button>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
[xStringify]="xStringify ? daysStringify : null"
[y]="y"
[yStringify]="yStringify"
></tui-line-chart>
/>
<ng-template
#hint
let-point
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div class="t-content">
<div class="t-wrapper">
<ng-content></ng-content>
<ng-content />
</div>
</div>

Expand All @@ -10,6 +10,6 @@
[size]="size"
[value]="value"
(activeItemIndexChange)="onActiveItemIndexChange($event)"
></tui-pie-chart>
/>

<div class="t-shield"></div>
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
automation-id="tui-input-card-grouped__icon"
class="t-card"
[src]="text"
></tui-svg>
/>
</div>
<tui-svg
*ngIf="hasCleaner"
Expand All @@ -159,7 +159,7 @@
class="t-icon"
[src]="icons.close"
(click)="clear()"
></tui-svg>
/>
<tui-svg
*ngIf="hasDropdown"
appearance="icon"
Expand All @@ -169,6 +169,6 @@
[class.t-icon_rotated]="open"
[src]="arrowOptions.iconLarge"
(click)="toggle()"
></tui-svg>
/>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@
(focusedChange)="onFocused($event)"
(valueChange)="onValueChange($event)"
>
<ng-content></ng-content>
<ng-content />
<ng-content
ngProjectAs="input"
select="input"
></ng-content>
/>
</tui-primitive-textfield>
<ng-template #logo>
<tui-svg
class="t-payment-system"
[src]="defaultIcon"
></tui-svg>
/>
</ng-template>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(copy.prevent)="(0)"
(focusedChange)="onFocused($event)"
>
<ng-content></ng-content>
<ng-content />
<input
inputmode="numeric"
tuiTextfield
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
type=""
[attr.autocomplete]="autocomplete"
/>
<ng-content></ng-content>
<ng-content />
</tui-primitive-textfield>
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
*ngIf="hasBrandLogo"
class="t-brand-logo"
[src]="brandLogo"
></tui-svg>
/>
<span class="t-number">{{ cardNumber }}</span>
<tui-svg
*ngIf="!!paymentSystem"
class="t-payment-system-logo"
[src]="paymentSystemLogo"
></tui-svg>
/>
</div>
<div class="t-back"></div>
2 changes: 1 addition & 1 deletion projects/addon-doc/components/code/code.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
(click)="copy$.next()"
>
</button>
<ng-content></ng-content>
<ng-content />
</div>
</pre>
2 changes: 1 addition & 1 deletion projects/addon-doc/components/copy/copy.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
class="t-initial"
[attr.data-text]="texts[0]"
>
<ng-content></ng-content>
<ng-content />
</span>
{{ texts[1] }}
</span>
Expand Down
12 changes: 6 additions & 6 deletions projects/addon-doc/components/demo/demo.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
<tui-data-list-wrapper
*tuiDataList
[items]="items"
></tui-data-list-wrapper>
/>
</tui-select>
</ng-container>
<ng-template #desktop>
tuiMode:
<tui-tooltip
describeId="form"
[content]="tooltip"
></tui-tooltip>
/>
<div
tuiGroup
class="t-group"
Expand Down Expand Up @@ -110,7 +110,7 @@
[formGroup]="testForm"
>
<div class="t-input-wrapper">
<ng-container [ngTemplateOutlet]="template"></ng-container>
<ng-container [ngTemplateOutlet]="template" />
</div>
<button
automation-id="tui-demo-button__toggle-details"
Expand All @@ -128,7 +128,7 @@
class="t-icon"
[class.t-icon_rotated]="expanded"
[src]="options.iconSmall"
></tui-svg>
/>
</ng-template>
<tui-expand
class="t-expand"
Expand All @@ -152,7 +152,7 @@
<tui-data-list-wrapper
*tuiDataList
[items]="updateOnVariants"
></tui-data-list-wrapper>
/>
</tui-select>
<button
automation-id="tui-demo-button__reset-state"
Expand All @@ -176,7 +176,7 @@
</ng-template>
</tui-expand>
</form>
<ng-content></ng-content>
<ng-content />
</div>
</div>
<div
Expand Down
4 changes: 2 additions & 2 deletions projects/addon-doc/components/doc-tab/doc-tab.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
<tui-svg
class="t-icon"
[src]="src"
></tui-svg>
<ng-content></ng-content>
/>
<ng-content />
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
>
{{ heading }}
</h1>
<ng-content></ng-content>
<ng-content />
<ng-container *ngIf="$any(propertiesConnectors) | tuiFilter: matcher : excludedProperties as properties">
<table
*ngIf="properties.length"
Expand Down Expand Up @@ -41,15 +41,15 @@
size="s"
status="neutral"
value="Optional"
></tui-badge>
/>
<tui-badge
*ngIf="propertyConnector.documentationPropertyDeprecated"
size="s"
status="error"
value="Deprecated"
></tui-badge>
/>
</div>
<ng-container [ngTemplateOutlet]="propertyConnector.template"></ng-container>
<ng-container [ngTemplateOutlet]="propertyConnector.template" />
</td>
<td class="t-cell">
<span class="type">
Expand Down Expand Up @@ -97,7 +97,7 @@
*tuiDataList
[itemContent]="selectContent"
[items]="propertyConnector.documentationPropertyValues"
></tui-data-list-wrapper>
/>
</tui-select>
<ng-template
#selectContent
Expand All @@ -115,7 +115,7 @@
[ngModel]="propertyConnector.documentationPropertyValue"
[showIcons]="true"
(ngModelChange)="propertyConnector.onValueChange($event)"
></tui-toggle>
/>

<tui-primitive-textfield
*ngSwitchCase="'string'"
Expand All @@ -125,7 +125,7 @@
[tuiTextfieldLabelOutside]="true"
[value]="propertyConnector.documentationPropertyValue || ''"
(valueChange)="propertyConnector.onValueChange($event)"
></tui-primitive-textfield>
/>

<div
*ngSwitchCase="'color'"
Expand Down Expand Up @@ -164,7 +164,7 @@
[step]="1"
[tuiTextfieldLabelOutside]="true"
(ngModelChange)="propertyConnector.onValueChange($event || 0)"
></tui-input-number>
/>

<ng-container *ngSwitchCase="'PolymorpheusContent'">
<tui-primitive-textfield
Expand Down
6 changes: 3 additions & 3 deletions projects/addon-doc/components/example/example.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,12 @@
<ng-container
*ngIf="index === defaultTabIndex; else anotherTab"
[ngTemplateOutlet]="preview"
></ng-container>
/>
<ng-template #anotherTab>
<ng-container
[ngTemplateOutlet]="codeSection"
[ngTemplateOutletContext]="{$implicit: files?.[tabs[activeItemIndex]] || ''}"
></ng-container>
/>
</ng-template>
</div>
</ng-container>
Expand All @@ -105,7 +105,7 @@
automation-id="tui-doc-example"
class="t-demo"
>
<ng-content></ng-content>
<ng-content />
</div>
</ng-template>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<tui-doc-navigation
*tuiSidebar="!!(open$ | async)"
class="t-navigation"
></tui-doc-navigation>
/>
</button>
<div class="t-logo">
<img
Expand All @@ -21,4 +21,4 @@
[src]="src"
/>
</div>
<ng-content></ng-content>
<ng-content />
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<tui-select [formControl]="language">
<ng-content></ng-content>
<ng-content />
<tui-data-list *tuiDataList>
<button
*ngFor="let name of names"
Expand Down
Loading

0 comments on commit b03e2e9

Please sign in to comment.