Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(demo): use new version of InputNumber for documentation page Tabs #10166

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions projects/demo/src/modules/components/tabs/examples/1/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,15 @@
Settings
</button>
</tui-tabs>
<tui-input-number
class="tui-space_top-4"
[max]="2"
[min]="0"
[step]="1"
[(ngModel)]="activeItemIndex"
>
activeItemIndex
</tui-input-number>

<tui-textfield class="tui-space_top-4">
<label tuiLabel>activeItemIndex</label>

<input
tuiInputNumber
[max]="2"
[min]="0"
[step]="1"
[(ngModel)]="activeItemIndex"
/>
</tui-textfield>
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import {Component, inject} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {TuiAlertService} from '@taiga-ui/core';
import {TuiTabs} from '@taiga-ui/kit';
import {TuiInputNumberModule} from '@taiga-ui/legacy';
import {TuiAlertService, TuiTextfield} from '@taiga-ui/core';
import {TuiInputNumber, TuiTabs} from '@taiga-ui/kit';

@Component({
standalone: true,
imports: [FormsModule, TuiInputNumberModule, TuiTabs],
imports: [FormsModule, TuiInputNumber, TuiTabs, TuiTextfield],
templateUrl: './index.html',
encapsulation,
changeDetection,
Expand Down
21 changes: 12 additions & 9 deletions projects/demo/src/modules/components/tabs/examples/2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@
Trash
</button>
</tui-tabs-with-more>
<tui-input-number
class="tui-space_top-4"
[max]="4"
[min]="0"
[step]="1"
[(ngModel)]="activeItemIndex"
>
activeItemIndex
</tui-input-number>

<tui-textfield class="tui-space_top-4">
<label tuiLabel>activeItemIndex</label>

<input
tuiInputNumber
[max]="4"
[min]="0"
[step]="1"
[(ngModel)]="activeItemIndex"
/>
</tui-textfield>
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ import {Component, inject} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {TuiAlertService} from '@taiga-ui/core';
import {TuiTabs} from '@taiga-ui/kit';
import {TuiInputNumberModule} from '@taiga-ui/legacy';
import {TuiAlertService, TuiTextfield} from '@taiga-ui/core';
import {TuiInputNumber, TuiTabs} from '@taiga-ui/kit';

@Component({
standalone: true,
imports: [FormsModule, TuiInputNumberModule, TuiTabs],
imports: [FormsModule, TuiInputNumber, TuiTabs, TuiTextfield],
templateUrl: './index.html',
encapsulation,
changeDetection,
Expand Down
23 changes: 13 additions & 10 deletions projects/demo/src/modules/components/tabs/examples/4/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@
/>
</ng-container>
</tui-tabs>
<tui-input-number
decimal="never"
class="tui-space_top-4"
[max]="2"
[min]="0"
[step]="1"
[(ngModel)]="activeItemIndex"
>
activeItemIndex
</tui-input-number>

<tui-textfield class="tui-space_top-4">
<label tuiLabel>activeItemIndex</label>

<input
tuiInputNumber
[max]="2"
[min]="0"
[step]="1"
[tuiNumberFormat]="{precision: 0}"
[(ngModel)]="activeItemIndex"
nsbarsukov marked this conversation as resolved.
Show resolved Hide resolved
/>
</tui-textfield>
16 changes: 12 additions & 4 deletions projects/demo/src/modules/components/tabs/examples/4/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@ import {Component, inject} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {TuiAlertService, TuiIcon} from '@taiga-ui/core';
import {TuiTabs} from '@taiga-ui/kit';
import {TuiInputNumberModule} from '@taiga-ui/legacy';
import {TuiAlertService, TuiIcon, TuiNumberFormat, TuiTextfield} from '@taiga-ui/core';
import {TuiInputNumber, TuiTabs} from '@taiga-ui/kit';

@Component({
standalone: true,
imports: [FormsModule, NgForOf, NgIf, TuiIcon, TuiInputNumberModule, TuiTabs],
imports: [
FormsModule,
NgForOf,
NgIf,
TuiIcon,
TuiInputNumber,
TuiNumberFormat,
TuiTabs,
TuiTextfield,
],
templateUrl: './index.html',
styleUrls: ['./index.less'],
encapsulation,
Expand Down
23 changes: 13 additions & 10 deletions projects/demo/src/modules/components/tabs/examples/5/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,16 @@
>
Add one more
</button>
<tui-input-number
decimal="never"
class="tui-space_top-4"
[max]="4"
[min]="0"
[step]="1"
[(ngModel)]="activeItemIndex"
>
activeItemIndex
</tui-input-number>

<tui-textfield class="tui-space_top-4">
<label tuiLabel>activeItemIndex</label>

<input
tuiInputNumber
[max]="4"
[min]="0"
[step]="1"
[tuiNumberFormat]="{precision: 0}"
[(ngModel)]="activeItemIndex"
/>
</tui-textfield>
16 changes: 12 additions & 4 deletions projects/demo/src/modules/components/tabs/examples/5/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,21 @@ import {Component} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {TuiButton, TuiIcon} from '@taiga-ui/core';
import {TuiTabs} from '@taiga-ui/kit';
import {TuiInputNumberModule} from '@taiga-ui/legacy';
import {TuiButton, TuiIcon, TuiNumberFormat, TuiTextfield} from '@taiga-ui/core';
import {TuiInputNumber, TuiTabs} from '@taiga-ui/kit';

@Component({
standalone: true,
imports: [FormsModule, NgForOf, TuiButton, TuiIcon, TuiInputNumberModule, TuiTabs],
imports: [
FormsModule,
NgForOf,
TuiButton,
TuiIcon,
TuiInputNumber,
TuiNumberFormat,
TuiTabs,
TuiTextfield,
],
templateUrl: './index.html',
encapsulation,
changeDetection,
Expand Down
44 changes: 24 additions & 20 deletions projects/demo/src/modules/components/tabs/examples/7/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,18 @@ <h5 class="title">Horizontal</h5>
</nav>
</section>

<tui-input-number
decimal="never"
class="horizontal tui-space_top-4 tui-space_bottom-4"
[max]="12"
[min]="0"
[step]="1"
[(ngModel)]="horizontalActiveIndex"
>
horizontalActiveIndex
</tui-input-number>
<tui-textfield class="input tui-space_top-4 tui-space_bottom-4">
<label tuiLabel>horizontalActiveIndex</label>

<input
tuiInputNumber
[max]="12"
[min]="0"
[step]="1"
[tuiNumberFormat]="{precision: 0}"
[(ngModel)]="horizontalActiveIndex"
/>
</tui-textfield>

<h5 class="title">Vertical</h5>

Expand Down Expand Up @@ -186,13 +188,15 @@ <h5 class="title">Vertical</h5>
</nav>
</tui-scrollbar>

<tui-input-number
decimal="never"
class="input tui-space_top-4"
[max]="12"
[min]="0"
[step]="1"
[(ngModel)]="verticalActiveIndex"
>
verticalActiveIndex
</tui-input-number>
<tui-textfield class="input tui-space_top-4">
<label tuiLabel>verticalActiveIndex</label>

<input
tuiInputNumber
[max]="12"
[min]="0"
[step]="1"
[tuiNumberFormat]="{precision: 0}"
[(ngModel)]="verticalActiveIndex"
/>
</tui-textfield>
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}

.input {
inline-size: 12.5rem;
inline-size: 15.5rem;
}

.vertical,
Expand Down
14 changes: 10 additions & 4 deletions projects/demo/src/modules/components/tabs/examples/7/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,19 @@ import {Component} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {TuiScrollbar} from '@taiga-ui/core';
import {TuiTabs} from '@taiga-ui/kit';
import {TuiInputNumberModule} from '@taiga-ui/legacy';
import {TuiNumberFormat, TuiScrollbar, TuiTextfield} from '@taiga-ui/core';
import {TuiInputNumber, TuiTabs} from '@taiga-ui/kit';

@Component({
standalone: true,
imports: [FormsModule, TuiInputNumberModule, TuiScrollbar, TuiTabs],
imports: [
FormsModule,
TuiInputNumber,
TuiNumberFormat,
TuiScrollbar,
TuiTabs,
TuiTextfield,
],
templateUrl: './index.html',
styleUrls: ['./index.less'],
encapsulation,
Expand Down
Loading