Skip to content

Commit

Permalink
chore(demo): remove b-form global class (#6915)
Browse files Browse the repository at this point in the history
(cherry picked from commit 63ed8a3)
  • Loading branch information
nsbarsukov authored and vladimirpotekhin committed Mar 11, 2024
1 parent 368058a commit 71cda96
Show file tree
Hide file tree
Showing 122 changed files with 107 additions and 301 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<tui-input-number
decimal="never"
class="b-form"
class="index-controller"
[step]="1"
[(ngModel)]="activeItemIndex"
>
activeItemIndex
</tui-input-number>

<div class="wrapper">
<tui-arc-chart
size="m"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@
--tui-chart-2: var(--tui-support-03);
--tui-chart-3: var(--tui-support-09);
}

.index-controller {
max-width: 20rem;
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</div>

<tui-select
class="b-form"
class="select"
[(ngModel)]="appearance"
>
Hint appearance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,7 @@
display: flex;
min-width: 31.25rem;
}

.select {
max-width: 20rem;
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<p class="b-form">
<p>
<tui-input-date-range
[maxLength]="maxLength"
[(ngModel)]="range"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
</tui-notification>
<p class="controls">
<tui-input-date-range
class="b-form"
[maxLength]="maxLength"
[(ngModel)]="data"
(ngModelChange)="onDataChange($event)"
>
Data
</tui-input-date-range>
<tui-input-date-range
class="b-form tui-space_left-4"
class="tui-space_left-4"
[maxLength]="maxLength"
[(ngModel)]="show"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
.controls {
display: flex;

.b-form {
tui-input-date-range {
flex: 1;
}
}
Expand Down
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import {Component} from '@angular/core';
import {changeDetection} from '@demo/emulate/change-detection';
import {encapsulation} from '@demo/emulate/encapsulation';
import {TuiPlatformModule} from '@taiga-ui/cdk';
import {TuiIconModule} from '@taiga-ui/experimental';
import {TuiIconComponent} from '@taiga-ui/core';
import {TuiBadgeDirective} from '@taiga-ui/kit';

@Component({
standalone: true,
selector: 'tui-badge-example-3',
imports: [TuiBadgeDirective, TuiPlatformModule, TuiIconModule],
imports: [TuiBadgeDirective, TuiPlatformModule, TuiIconComponent],
templateUrl: './index.html',
styleUrls: ['./index.less'],
encapsulation,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<form
class="b-form"
[formGroup]="testForm"
>
<form [formGroup]="testForm">
<label tuiBlock>
<tui-avatar src="https://avatars.githubusercontent.com/u/11832552"></tui-avatar>
Heading
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
</tui-breadcrumbs>
<p>
<tui-input-number
class="b-form"
[max]="4"
[min]="2"
[step]="1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
heading="Async data loading"
[content]="example1"
>
<tui-notification class="tui-space_bottom-4 b-form">
<tui-notification class="tui-space_bottom-4">
If you need to set some attributes or listen to events on native
<code>input</code>
, you can put it inside with
Expand All @@ -38,7 +38,7 @@
heading="ID only"
[content]="example8"
>
<tui-notification class="tui-space_bottom-4 b-form">
<tui-notification class="tui-space_bottom-4">
If you receive your id to text mapping from the server, you would need to recreate
<code>items</code>
and
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<form
*tuiLet="items$ | async as items"
class="b-form"
[tuiTextfieldCleaner]="true"
>
<tui-combo-box
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

<tui-combo-box
*tuiLet="service.request(search) | async as filtered"
class="b-form"
[formControl]="control"
[tuiTextfieldLabelOutside]="true"
[valueContent]="value"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<tui-combo-box
class="b-form"
[(ngModel)]="value"
>
<tui-combo-box [(ngModel)]="value">
Find the best employees
<input
placeholder="Type a name"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<tui-combo-box
class="b-form"
[stringify]="stringify"
[(ngModel)]="value"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<tui-combo-box
class="b-form"
[(ngModel)]="value"
>
<tui-combo-box [(ngModel)]="value">
Country
<ng-container *tuiDataList>
<cdk-virtual-scroll-viewport
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<form class="b-form">
<form>
<tui-combo-box
tuiTextfieldSize="m"
[formControl]="testValue"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
>
Add item
</button>
<tui-elastic-container class="b-form tui-space_top-4">
<tui-elastic-container class="tui-space_top-4">
<div
*ngFor="let item of items; let index = index"
class="wrapper"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<form
class="b-form"
[formGroup]="testForm"
>
<form [formGroup]="testForm">
<tui-input-copy
formControlName="testValue"
tuiTextfieldSize="s"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
heading="sizes"
[content]="example1"
>
<tui-notification class="tui-space_bottom-4 b-form">
<tui-notification class="tui-space_bottom-4">
If you need to set some attributes or listen to events on native
<code>input</code>
, you can put it inside with
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<form
class="b-form"
[formGroup]="testForm"
>
<form [formGroup]="testForm">
<p>
If a field is optional, but unfinished field should be marked as invalid, use
<code>tuiUnfinishedValidator</code>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
<tui-input-date-range
class="b-form"
[formControl]="control"
>
Choose dates
</tui-input-date-range>
<tui-input-date-range [formControl]="control">Choose dates</tui-input-date-range>
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
<tui-input-date-range
class="b-form"
[formControl]="control"
>
Choose dates
</tui-input-date-range>
<tui-input-date-range [formControl]="control">Choose dates</tui-input-date-range>
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
<tui-input-date-range
class="b-form"
[formControl]="control"
>
Choose dates
</tui-input-date-range>
<tui-input-date-range [formControl]="control">Choose dates</tui-input-date-range>

<p>Stringified control value:</p>
<p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<tui-input-date-range
class="b-form"
[formControl]="control"
[items]="items"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ <h3>DI-tokens for input-configurations:</h3>
heading="Basic"
[content]="example1"
>
<tui-notification class="tui-space_bottom-4 b-form">
<tui-notification class="tui-space_bottom-4">
If you need to set some attributes or listen to events on native
<code>input</code>
, you can put it inside with
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<form
class="b-form"
[formGroup]="testForm"
>
<form [formGroup]="testForm">
<tui-input-date-time formControlName="testValue">
Choose date and time
<input
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<form
class="b-form"
[formGroup]="testForm"
>
<form [formGroup]="testForm">
<p>Default:</p>

<tui-input-date-time
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
<tui-input-date-time
class="b-form"
[formControl]="control"
>
Choose date and time
</tui-input-date-time>
<tui-input-date-time [formControl]="control">Choose date and time</tui-input-date-time>
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
<tui-input-date-time
class="b-form"
[formControl]="control"
>
Choose date and time
</tui-input-date-time>
<tui-input-date-time [formControl]="control">Choose date and time</tui-input-date-time>

<p>Stringified control value:</p>
<p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<form
class="b-form"
[formGroup]="testForm"
>
<form [formGroup]="testForm">
<tui-input-date-time
formControlName="testValue"
[tuiTextfieldCleaner]="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ <h3>DI-tokens for input-configurations:</h3>
heading="Basic"
[content]="example1"
>
<tui-notification class="tui-space_bottom-4 b-form">
<tui-notification class="tui-space_bottom-4">
If you need to set some attributes or listen to events on native
<code>input</code>
, you can put it inside with
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<form
class="b-form"
[formGroup]="testForm"
[tuiTextfieldCleaner]="true"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<form
class="b-form"
[formGroup]="testForm"
>
<form [formGroup]="testForm">
<tui-input-date
formControlName="testValue"
tuiTextfieldSize="s"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<h2 class="tui-text_h4">Taiga UI usage experience</h2>
<p class="b-form">
<p>
<tui-input-date
[max]="max"
[min]="min"
Expand All @@ -8,7 +8,7 @@ <h2 class="tui-text_h4">Taiga UI usage experience</h2>
Start
</tui-input-date>
</p>
<p class="b-form">
<p>
<tui-input-date
[items]="items"
[min]="from || min"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
<tui-notification class="tui-space_bottom-4 b-form">
<tui-notification class="tui-space_bottom-4">
If you need to set some attributes or listen to events on native
<code>input</code>
, you can put it inside with
<code>Textfield</code>
directive as shown below
</tui-notification>
<tui-input-date
class="b-form"
[formControl]="control"
>
<tui-input-date [formControl]="control">
Choose a date
<input
autocomplete="bday"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
<h3>Control's output as TuiDay (default)</h3>
<tui-input-date
class="b-form"
[formControl]="defaultControl"
>
Choose a date
</tui-input-date>
<tui-input-date [formControl]="defaultControl">Choose a date</tui-input-date>
<p>Stringified control value:</p>
<p>
<code>{{ defaultControl.value }}</code>
Expand All @@ -20,7 +15,6 @@ <h3>Control's output as native Date</h3>
</p>
<tui-input-date
toNativeDate
class="b-form"
[formControl]="nativeDateControl"
>
Choose a date
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<form
class="b-form"
[formGroup]="testForm"
[tuiTextfieldCleaner]="true"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<tui-input-month-range
class="b-form"
[formControl]="control"
[tuiTextfieldCleaner]="true"
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<form
class="b-form"
[formGroup]="testForm"
>
<form [formGroup]="testForm">
<tui-input-month-range
formControlName="testValue"
tuiTextfieldSize="s"
Expand Down
Loading

0 comments on commit 71cda96

Please sign in to comment.