11#### ` @angular-ru/cdk/directives `
22
3- - ` InitialFocusDirective, InitialFocusModule `
3+ - ` InitialFocus `
44- Selector: ` initialFocus `
55
66- API:
7-
87 - ` Input() focusDisabled: boolean ` - default: ` false `
98
109``` typescript
11- import {InitialFocusModule } from ' @angular-ru/cdk/directives' ;
12- import {Component , NgModule } from ' @angular/core' ;
13-
14- @NgModule ({
15- // ..
16- imports: [InitialFocusModule ],
17- })
18- export class AppModule {}
10+ import {InitialFocus } from ' @angular-ru/cdk/directives' ;
11+ import {Component } from ' @angular/core' ;
1912
2013@Component ({
2114 // ...
15+ imports: [InitialFocus ],
2216 template: `
2317 <input
2418 [focusDisabled]="false"
@@ -30,20 +24,15 @@ export class AppModule {}
3024export class AppComponent {}
3125```
3226
33- - ` AmountFormatDirective, AmountFormatDirectiveModule `
27+ - ` AmountFormat `
3428
3529``` typescript
36- import {AmountFormatDirectiveModule } from ' @angular-ru/cdk/directives' ;
37- import {Component , NgModule } from ' @angular/core' ;
38-
39- @NgModule ({
40- // ..
41- imports: [AmountFormatDirectiveModule ],
42- })
43- export class AppModule {}
30+ import {AmountFormat } from ' @angular-ru/cdk/directives' ;
31+ import {Component } from ' @angular/core' ;
4432
4533@Component ({
4634 // ...
35+ imports: [AmountFormat ],
4736 template: `
4837 <input
4938 amountFormat
@@ -54,20 +43,15 @@ export class AppModule {}
5443export class AppComponent {}
5544```
5645
57- - ` ConvertCaseDirective, ConvertCaseDirectiveModule `
46+ - ` ConvertCase `
5847
5948``` typescript
60- import {ConvertCaseDirectiveModule } from ' @angular-ru/cdk/directives' ;
61- import {Component , NgModule } from ' @angular/core' ;
62-
63- @NgModule ({
64- // ..
65- imports: [ConvertCaseDirectiveModule ],
66- })
67- export class AppModule {}
49+ import {ConvertCase } from ' @angular-ru/cdk/directives' ;
50+ import {Component } from ' @angular/core' ;
6851
6952@Component ({
7053 // ...
54+ imports: [ConvertCase ],
7155 template: `
7256 <input
7357 convertCase
@@ -78,20 +62,15 @@ export class AppModule {}
7862export class AppComponent {}
7963```
8064
81- - ` DisableControlDirective, DisableControlDirectiveModule `
65+ - ` DisableControl `
8266
8367``` typescript
84- import {DisableControlDirectiveModule } from ' @angular-ru/cdk/directives' ;
85- import {Component , NgModule } from ' @angular/core' ;
86-
87- @NgModule ({
88- // ..
89- imports: [DisableControlDirectiveModule ],
90- })
91- export class AppModule {}
68+ import {DisableControl } from ' @angular-ru/cdk/directives' ;
69+ import {Component } from ' @angular/core' ;
9270
9371@Component ({
9472 // ...
73+ imports: [DisableControl ],
9574 template: `
9675 <input
9776 disableControl
@@ -102,20 +81,15 @@ export class AppModule {}
10281export class AppComponent {}
10382```
10483
105- - ` MaxLengthDirective, MaxLengthDirectiveModule `
84+ - ` MaxLength `
10685
10786``` typescript
108- import {MaxLengthDirectiveModule } from ' @angular-ru/cdk/directives' ;
109- import {Component , NgModule } from ' @angular/core' ;
110-
111- @NgModule ({
112- // ..
113- imports: [MaxLengthDirectiveModule ],
114- })
115- export class AppModule {}
87+ import {MaxLength } from ' @angular-ru/cdk/directives' ;
88+ import {Component } from ' @angular/core' ;
11689
11790@Component ({
11891 // ...
92+ imports: [MaxLength ],
11993 template: `
12094 <input
12195 maxLength="3000"
@@ -126,25 +100,20 @@ export class AppModule {}
126100export class AppComponent {}
127101```
128102
129- - ` TrimInputDirective, TrimInputModule `
103+ - ` TrimInput `
130104- Selector: ` trimInput `
131105
132106API:
133107
134108- ` @Input('trimDisabled') disabled: boolean ` - default: ` false `
135109
136110``` typescript
137- import {TrimInputModule } from ' @angular-ru/cdk/directives' ;
138- import {Component , NgModule } from ' @angular/core' ;
139-
140- @NgModule ({
141- // ..
142- imports: [TrimInputModule ],
143- })
144- export class AppModule {}
111+ import {TrimInput } from ' @angular-ru/cdk/directives' ;
112+ import {Component } from ' @angular/core' ;
145113
146114@Component ({
147115 // ...
116+ imports: [TrimInput ],
148117 template: `
149118 <input
150119 [trimDisabled]="false"
@@ -156,20 +125,15 @@ export class AppModule {}
156125export class AppComponent {}
157126```
158127
159- - ` SplitStringDirective, SplitStringModule `
128+ - ` SplitString `
160129
161130``` typescript
162- import {SplitStringModule , SplitStringOptions } from ' @angular-ru/cdk/directives' ;
163- import {Component , NgModule } from ' @angular/core' ;
164-
165- @NgModule ({
166- // ..
167- imports: [SplitStringModule ],
168- })
169- export class AppModule {}
131+ import {SplitString , SplitStringOptions } from ' @angular-ru/cdk/directives' ;
132+ import {Component } from ' @angular/core' ;
170133
171134@Component ({
172135 selector: ' test' ,
136+ imports: [SplitString ],
173137 template: `
174138 <form [formGroup]="form">
175139 <input type="text" formControlName="input1" splitString" />
@@ -202,20 +166,15 @@ class TestComponent {
202166}
203167```
204168
205- - ` InputFilterDirective, InputFilterModule `
169+ - ` InputFilter `
206170
207171``` typescript
208- import {InputFilterModule , FilterPredicate } from ' @angular-ru/cdk/directives' ;
209- import {Component , NgModule } from ' @angular/core' ;
210-
211- @NgModule ({
212- // ..
213- imports: [InputFilterModule ],
214- })
215- export class AppModule {}
172+ import {InputFilter , FilterPredicate } from ' @angular-ru/cdk/directives' ;
173+ import {Component } from ' @angular/core' ;
216174
217175@Component ({
218176 // ...
177+ imports: [InputFilter ],
219178 template: `
220179 <div [formGroup]="form">
221180 <input
0 commit comments