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 section Utils #10167

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
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@

<form [formGroup]="parametersForm">
<div class="parameters">
<tui-input-number
formControlName="value"
class="tui-space_top-2"
>
value
</tui-input-number>
<tui-textfield class="tui-space_top-2">
<label tuiLabel>value</label>

<input
formControlName="value"
tuiInputNumber
/>
</tui-textfield>
</div>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {tuiPx} from '@taiga-ui/cdk';
import {TuiInputNumberModule} from '@taiga-ui/legacy';
import {TuiTextfield} from '@taiga-ui/core';
import {TuiInputNumber} from '@taiga-ui/kit';

@Component({
standalone: true,
imports: [ReactiveFormsModule, TuiInputNumberModule],
imports: [ReactiveFormsModule, TuiInputNumber, TuiTextfield],
templateUrl: './index.html',
styleUrls: ['./index.less'],
encapsulation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,23 @@

<form [formGroup]="parametersForm">
<div class="parameters">
<tui-input-number
formControlName="value"
class="tui-space_top-2"
[tuiNumberFormat]="{precision: 3}"
>
value
</tui-input-number>
<tui-input-number
formControlName="precision"
class="tui-space_top-2"
>
precision
</tui-input-number>
<tui-textfield class="tui-space_top-2">
<label tuiLabel>value</label>

<input
formControlName="value"
tuiInputNumber
[tuiNumberFormat]="{precision: 3}"
/>
</tui-textfield>

<tui-textfield class="tui-space_top-2">
<label tuiLabel>precision</label>

<input
formControlName="precision"
tuiInputNumber
/>
</tui-textfield>
</div>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {tuiCeil, tuiFloor, tuiRound} from '@taiga-ui/cdk';
import {TuiNumberFormat} from '@taiga-ui/core';
import {TuiInputNumberModule} from '@taiga-ui/legacy';
import {TuiNumberFormat, TuiTextfield} from '@taiga-ui/core';
import {TuiInputNumber} from '@taiga-ui/kit';

@Component({
standalone: true,
imports: [ReactiveFormsModule, TuiInputNumberModule, TuiNumberFormat],
imports: [ReactiveFormsModule, TuiInputNumber, TuiNumberFormat, TuiTextfield],
templateUrl: './index.html',
styleUrls: ['./index.less'],
encapsulation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,16 @@

<form [formGroup]="parametersForm">
<div class="parameters">
<tui-input-number
formControlName="value"
<tui-textfield
*ngFor="let parameter of ['value', 'fromInclude', 'toExclude']"
class="tui-space_top-2"
>
value
</tui-input-number>
<tui-input-number
formControlName="fromInclude"
class="tui-space_top-2"
>
fromInclude
</tui-input-number>
<tui-input-number
formControlName="toExclude"
class="tui-space_top-2"
>
toExclude
</tui-input-number>
<label tuiLabel>{{ parameter }}</label>

<input
tuiInputNumber
[formControlName]="parameter"
/>
</tui-textfield>
</div>
</form>
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import {NgForOf} from '@angular/common';
import {Component} from '@angular/core';
import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {tuiInRange} from '@taiga-ui/cdk';
import {TuiInputNumberModule} from '@taiga-ui/legacy';
import {TuiTextfield} from '@taiga-ui/core';
import {TuiInputNumber} from '@taiga-ui/kit';

@Component({
standalone: true,
imports: [ReactiveFormsModule, TuiInputNumberModule],
imports: [NgForOf, ReactiveFormsModule, TuiInputNumber, TuiTextfield],
templateUrl: './index.html',
styleUrls: ['./index.less'],
encapsulation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,16 @@

<form [formGroup]="parametersForm">
<div class="parameters">
<tui-input-number
formControlName="value"
<tui-textfield
*ngFor="let parameter of ['value', 'min', 'max']"
class="tui-space_top-2"
>
value
</tui-input-number>
<tui-input-number
formControlName="min"
class="tui-space_top-2"
>
min
</tui-input-number>
<tui-input-number
formControlName="max"
class="tui-space_top-2"
>
max
</tui-input-number>
<label tuiLabel>{{ parameter }}</label>

<input
tuiInputNumber
[formControlName]="parameter"
/>
</tui-textfield>
</div>
</form>
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import {NgForOf} from '@angular/common';
import {Component} from '@angular/core';
import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {tuiNormalizeToIntNumber} from '@taiga-ui/cdk';
import {TuiInputNumberModule} from '@taiga-ui/legacy';
import {TuiTextfield} from '@taiga-ui/core';
import {TuiInputNumber} from '@taiga-ui/kit';

@Component({
standalone: true,
imports: [ReactiveFormsModule, TuiInputNumberModule],
imports: [NgForOf, ReactiveFormsModule, TuiInputNumber, TuiTextfield],
templateUrl: './index.html',
styleUrls: ['./index.less'],
encapsulation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@

<form [formGroup]="parametersForm">
<div class="parameters">
<tui-input-number
formControlName="value"
<tui-textfield
*ngFor="let parameter of ['value', 'quantum']"
class="tui-space_top-2"
>
value
</tui-input-number>
<tui-input-number
formControlName="quantum"
class="tui-space_top-2"
>
quantum
</tui-input-number>
<label tuiLabel>{{ parameter }}</label>

<input
tuiInputNumber
[formControlName]="parameter"
/>
</tui-textfield>
</div>
</form>
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import {NgForOf} from '@angular/common';
import {Component} from '@angular/core';
import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {tuiQuantize} from '@taiga-ui/cdk';
import {TuiInputNumberModule} from '@taiga-ui/legacy';
import {TuiTextfield} from '@taiga-ui/core';
import {TuiInputNumber} from '@taiga-ui/kit';

@Component({
standalone: true,
imports: [ReactiveFormsModule, TuiInputNumberModule],
imports: [NgForOf, ReactiveFormsModule, TuiInputNumber, TuiTextfield],
templateUrl: './index.html',
styleUrls: ['./index.less'],
encapsulation,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,16 @@

<form [formGroup]="parametersForm">
<div class="parameters">
<tui-input-number
formControlName="value"
<tui-textfield
*ngFor="let parameter of ['value', 'min', 'max']"
class="tui-space_top-2"
>
value
</tui-input-number>
<tui-input-number
formControlName="min"
class="tui-space_top-2"
>
min
</tui-input-number>
<tui-input-number
formControlName="max"
class="tui-space_top-2"
>
max
</tui-input-number>
<label tuiLabel>{{ parameter }}</label>

<input
tuiInputNumber
[formControlName]="parameter"
/>
</tui-textfield>
</div>
</form>
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import {NgForOf} from '@angular/common';
import {Component} from '@angular/core';
import {FormControl, FormGroup, ReactiveFormsModule} from '@angular/forms';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {tuiClamp} from '@taiga-ui/cdk';
import {TuiInputNumberModule} from '@taiga-ui/legacy';
import {TuiTextfield} from '@taiga-ui/core';
import {TuiInputNumber} from '@taiga-ui/kit';

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