@rxap/material-form-system 21.0.1-dev.0 → 21.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/compodoc/changelog.html +40 -0
  3. package/compodoc/classes/ExtractHideShowMixin.html +14 -28
  4. package/compodoc/classes/RecordViewTuple.html +9 -23
  5. package/compodoc/components/FormControlsComponent.html +146 -352
  6. package/compodoc/dependencies.html +5 -5
  7. package/compodoc/directives/ChipInputAdapterDirective.html +7 -53
  8. package/compodoc/directives/ChipListIteratorDirective.html +8 -106
  9. package/compodoc/directives/CompareWithDirective.html +44 -90
  10. package/compodoc/directives/ControlErrorDirective.html +150 -151
  11. package/compodoc/directives/ControlErrorsDirective.html +123 -109
  12. package/compodoc/directives/FormFieldHideShowDirective.html +11 -97
  13. package/compodoc/directives/InputClearButtonDirective.html +15 -251
  14. package/compodoc/directives/RequiredDirective.html +2 -58
  15. package/compodoc/graph/dependencies.svg +15 -153
  16. package/compodoc/interfaces/ChipListTemplateContext.html +6 -20
  17. package/compodoc/interfaces/ControlErrorDirectiveContext.html +8 -28
  18. package/compodoc/interfaces/ControlErrorsDirectiveContext.html +6 -21
  19. package/compodoc/js/menu-wc.js +0 -41
  20. package/compodoc/js/menu-wc_es5.js +1 -1
  21. package/compodoc/js/search/search_index.js +2 -2
  22. package/compodoc/modules.html +0 -17
  23. package/compodoc/overview.html +1 -185
  24. package/compodoc/properties.html +1 -1
  25. package/docs/documentation.json +774 -1578
  26. package/docs/html/assets/hierarchy.js +1 -1
  27. package/docs/html/assets/navigation.js +1 -1
  28. package/docs/html/assets/search.js +1 -1
  29. package/docs/html/classes/ChipInputAdapterDirective.html +4 -4
  30. package/docs/html/classes/ChipListIteratorDirective.html +4 -4
  31. package/docs/html/classes/CompareWithDirective.html +3 -3
  32. package/docs/html/classes/ControlErrorDirective.html +4 -4
  33. package/docs/html/classes/ControlErrorsDirective.html +4 -4
  34. package/docs/html/classes/ExtractHideShowMixin.html +2 -2
  35. package/docs/html/classes/FormControlsComponent.html +6 -7
  36. package/docs/html/classes/FormFieldHideShowDirective.html +5 -5
  37. package/docs/html/classes/InputClearButtonDirective.html +2 -2
  38. package/docs/html/classes/RequiredDirective.html +3 -3
  39. package/docs/html/hierarchy.html +1 -1
  40. package/docs/html/index.html +2 -2
  41. package/docs/html/interfaces/ChipListTemplateContext.html +2 -2
  42. package/docs/html/interfaces/ControlErrorDirectiveContext.html +2 -2
  43. package/docs/html/interfaces/ControlErrorsDirectiveContext.html +2 -2
  44. package/docs/html/modules.html +1 -1
  45. package/docs/markdown/README.md +1 -1
  46. package/docs/markdown/classes/ChipInputAdapterDirective.md +6 -16
  47. package/docs/markdown/classes/ChipListIteratorDirective.md +6 -26
  48. package/docs/markdown/classes/CompareWithDirective.md +6 -14
  49. package/docs/markdown/classes/ControlErrorDirective.md +12 -32
  50. package/docs/markdown/classes/ControlErrorsDirective.md +10 -30
  51. package/docs/markdown/classes/ExtractHideShowMixin.md +8 -8
  52. package/docs/markdown/classes/FormControlsComponent.md +24 -74
  53. package/docs/markdown/classes/FormFieldHideShowDirective.md +12 -28
  54. package/docs/markdown/classes/InputClearButtonDirective.md +8 -16
  55. package/docs/markdown/classes/RequiredDirective.md +4 -12
  56. package/docs/markdown/globals.md +2 -3
  57. package/docs/markdown/interfaces/ChipListTemplateContext.md +4 -4
  58. package/docs/markdown/interfaces/ControlErrorDirectiveContext.md +4 -4
  59. package/docs/markdown/interfaces/ControlErrorsDirectiveContext.md +4 -4
  60. package/docs/wiki/Class.ChipInputAdapterDirective.md +5 -15
  61. package/docs/wiki/Class.ChipListIteratorDirective.md +5 -25
  62. package/docs/wiki/Class.CompareWithDirective.md +5 -13
  63. package/docs/wiki/Class.ControlErrorDirective.md +11 -31
  64. package/docs/wiki/Class.ControlErrorsDirective.md +9 -29
  65. package/docs/wiki/Class.ExtractHideShowMixin.md +7 -7
  66. package/docs/wiki/Class.FormControlsComponent.md +23 -73
  67. package/docs/wiki/Class.FormFieldHideShowDirective.md +11 -27
  68. package/docs/wiki/Class.InputClearButtonDirective.md +7 -15
  69. package/docs/wiki/Class.RequiredDirective.md +3 -11
  70. package/docs/wiki/Interface.ChipListTemplateContext.md +3 -3
  71. package/docs/wiki/Interface.ControlErrorDirectiveContext.md +3 -3
  72. package/docs/wiki/Interface.ControlErrorsDirectiveContext.md +3 -3
  73. package/docs/wiki/_Sidebar.md +0 -1
  74. package/docs/wiki/globals.md +1 -2
  75. package/fesm2022/rxap-material-form-system.mjs +92 -215
  76. package/fesm2022/rxap-material-form-system.mjs.map +1 -1
  77. package/package.json +23 -23
  78. package/types/rxap-material-form-system.d.ts +19 -40
  79. package/docs/html/classes/MaterialFormSystemModule.html +0 -2
  80. package/docs/markdown/classes/MaterialFormSystemModule.md +0 -19
  81. package/docs/wiki/Class.MaterialFormSystemModule.md +0 -15
@@ -219,78 +219,6 @@
219
219
  </table>
220
220
  </section>
221
221
 
222
- <section data-compodoc="block-constructor">
223
- <h3 id="constructor">Constructor</h3>
224
- <table class="table table-sm table-bordered">
225
- <tbody>
226
- <tr>
227
- <td class="col-md-4">
228
- <code>constructor(formField: MatFormField, renderer: Renderer2, elementRef: ElementRef)</code>
229
- </td>
230
- </tr>
231
- <tr>
232
- <td class="col-md-4">
233
- <div class="io-line">Defined in <a href="" data-line="113" class="link-to-prism">src/lib/form-field-hide-show.directive.ts:113</a></div>
234
- </td>
235
- </tr>
236
-
237
- <tr>
238
- <td class="col-md-4">
239
- <div>
240
- <b>Parameters :</b>
241
- <table class="params">
242
- <thead>
243
- <tr>
244
- <td>Name</td>
245
- <td>Type</td>
246
- <td>Optional</td>
247
- </tr>
248
- </thead>
249
- <tbody>
250
- <tr>
251
- <td>formField</td>
252
-
253
- <td>
254
- <code>MatFormField</code>
255
- </td>
256
-
257
- <td>
258
- No
259
- </td>
260
-
261
- </tr>
262
- <tr>
263
- <td>renderer</td>
264
-
265
- <td>
266
- <code>Renderer2</code>
267
- </td>
268
-
269
- <td>
270
- No
271
- </td>
272
-
273
- </tr>
274
- <tr>
275
- <td>elementRef</td>
276
-
277
- <td>
278
- <code>ElementRef</code>
279
- </td>
280
-
281
- <td>
282
- No
283
- </td>
284
-
285
- </tr>
286
- </tbody>
287
- </table>
288
- </div>
289
- </td>
290
- </tr>
291
- </tbody>
292
- </table>
293
- </section>
294
222
 
295
223
 
296
224
 
@@ -329,7 +257,7 @@
329
257
  </tr>
330
258
  <tr>
331
259
  <td class="col-md-4">
332
- <div class="io-line">Defined in <code><a href="../classes/ExtractHideShowMixin.html#source" target="_self" >ExtractHideShowMixin:61</a></code>
260
+ <div class="io-line">Defined in <code><a href="../classes/ExtractHideShowMixin.html#source" target="_self" >ExtractHideShowMixin:53</a></code>
333
261
  </div>
334
262
  </td>
335
263
  </tr>
@@ -423,7 +351,7 @@
423
351
  </tr>
424
352
  <tr>
425
353
  <td class="col-md-4">
426
- <div class="io-line">Defined in <code><a href="../classes/ExtractHideShowMixin.html#source" target="_self" >ExtractHideShowMixin:44</a></code>
354
+ <div class="io-line">Defined in <code><a href="../classes/ExtractHideShowMixin.html#source" target="_self" >ExtractHideShowMixin:36</a></code>
427
355
  </div>
428
356
  </td>
429
357
  </tr>
@@ -517,7 +445,7 @@
517
445
  </tr>
518
446
  <tr>
519
447
  <td class="col-md-4">
520
- <div class="io-line">Defined in <code><a href="../classes/ExtractHideShowMixin.html#source" target="_self" >ExtractHideShowMixin:78</a></code>
448
+ <div class="io-line">Defined in <code><a href="../classes/ExtractHideShowMixin.html#source" target="_self" >ExtractHideShowMixin:70</a></code>
521
449
  </div>
522
450
  </td>
523
451
  </tr>
@@ -615,7 +543,7 @@
615
543
  </tr>
616
544
  <tr>
617
545
  <td class="col-md-4">
618
- <div class="io-line">Defined in <code><a href="../classes/ExtractHideShowMixin.html#source" target="_self" >ExtractHideShowMixin:112</a></code>
546
+ <div class="io-line">Defined in <code><a href="../classes/ExtractHideShowMixin.html#source" target="_self" >ExtractHideShowMixin:108</a></code>
619
547
  </div>
620
548
  </td>
621
549
  </tr>
@@ -649,7 +577,7 @@
649
577
  </tr>
650
578
  <tr>
651
579
  <td class="col-md-4">
652
- <div class="io-line">Defined in <code><a href="../classes/ExtractHideShowMixin.html#source" target="_self" >ExtractHideShowMixin:110</a></code>
580
+ <div class="io-line">Defined in <code><a href="../classes/ExtractHideShowMixin.html#source" target="_self" >ExtractHideShowMixin:106</a></code>
653
581
  </div>
654
582
  </td>
655
583
  </tr>
@@ -683,7 +611,7 @@
683
611
  </tr>
684
612
  <tr>
685
613
  <td class="col-md-4">
686
- <div class="io-line">Defined in <code><a href="../classes/ExtractHideShowMixin.html#source" target="_self" >ExtractHideShowMixin:111</a></code>
614
+ <div class="io-line">Defined in <code><a href="../classes/ExtractHideShowMixin.html#source" target="_self" >ExtractHideShowMixin:107</a></code>
687
615
  </div>
688
616
  </td>
689
617
  </tr>
@@ -698,15 +626,7 @@
698
626
 
699
627
 
700
628
  <div class="tab-pane fade tab-source-code" id="source">
701
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
702
- AfterContentInit,
703
- Directive,
704
- ElementRef,
705
- Inject,
706
- OnDestroy,
707
- OnInit,
708
- Renderer2,
709
- } from &#x27;@angular/core&#x27;;
629
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { AfterContentInit, Directive, ElementRef, OnDestroy, OnInit, Renderer2, inject } from &#x27;@angular/core&#x27;;
710
630
  import {
711
631
  MAT_FORM_FIELD,
712
632
  MatFormField,
@@ -806,22 +726,16 @@ export interface FormFieldHideShowDirective extends ExtractHideShowMixin, Extrac
806
726
  standalone: true,
807
727
  })
808
728
  export class FormFieldHideShowDirective implements AfterContentInit, OnDestroy {
729
+ private readonly formField &#x3D; inject&lt;MatFormField&gt;(MAT_FORM_FIELD);
730
+ private readonly renderer &#x3D; inject&lt;Renderer2&gt;(Renderer2);
731
+ private readonly elementRef &#x3D; inject&lt;ElementRef&gt;(ElementRef);
732
+
809
733
 
810
734
  public controlId!: string;
811
735
  public formDefinition!: FormDefinition;
812
736
  public control!: RxapFormControl;
813
737
  private subscription &#x3D; new Subscription();
814
738
 
815
- constructor(
816
- @Inject(MAT_FORM_FIELD)
817
- private readonly formField: MatFormField,
818
- @Inject(Renderer2)
819
- private readonly renderer: Renderer2,
820
- @Inject(ElementRef)
821
- private readonly elementRef: ElementRef,
822
- ) {
823
- }
824
-
825
739
  public ngAfterContentInit() {
826
740
  const control &#x3D; this.formField._control.ngControl?.control;
827
741
  if (!control) {
@@ -156,12 +156,10 @@
156
156
  <td class="col-md-4">
157
157
  <ul class="index-list">
158
158
  <li>
159
- <span class="modifier"></span>
160
159
  <span class="modifier">Public</span>
161
160
  <a href="#tabIndex" >tabIndex</a>
162
161
  </li>
163
162
  <li>
164
- <span class="modifier"></span>
165
163
  <span class="modifier">Public</span>
166
164
  <a href="#type" >type</a>
167
165
  </li>
@@ -178,7 +176,6 @@
178
176
  <td class="col-md-4">
179
177
  <ul class="index-list">
180
178
  <li>
181
- <span class="modifier"></span>
182
179
  <span class="modifier">Public</span>
183
180
  <a href="#onClick" >onClick</a>
184
181
  </li>
@@ -188,41 +185,7 @@
188
185
 
189
186
 
190
187
 
191
- <tr>
192
- <td class="col-md-4">
193
- <h6><b>HostBindings</b></h6>
194
- </td>
195
- </tr>
196
- <tr>
197
- <td class="col-md-4">
198
- <ul class="index-list">
199
- <li>
200
- <a href="#attr.tabindex" >attr.tabindex</a>
201
- </li>
202
- <li>
203
- <a href="#attr.type" >attr.type</a>
204
- </li>
205
- <li>
206
- <a href="#disabled" >disabled</a>
207
- </li>
208
- </ul>
209
- </td>
210
- </tr>
211
188
 
212
- <tr>
213
- <td class="col-md-4">
214
- <h6><b>HostListeners</b></h6>
215
- </td>
216
- </tr>
217
- <tr>
218
- <td class="col-md-4">
219
- <ul class="index-list">
220
- <li>
221
- <a href="#click" >click</a>
222
- </li>
223
- </ul>
224
- </td>
225
- </tr>
226
189
 
227
190
  <tr>
228
191
  <td class="col-md-4">
@@ -245,175 +208,11 @@
245
208
  </table>
246
209
  </section>
247
210
 
248
- <section data-compodoc="block-constructor">
249
- <h3 id="constructor">Constructor</h3>
250
- <table class="table table-sm table-bordered">
251
- <tbody>
252
- <tr>
253
- <td class="col-md-4">
254
- <code>constructor(formField: MatFormField)</code>
255
- </td>
256
- </tr>
257
- <tr>
258
- <td class="col-md-4">
259
- <div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/lib/input-clear-button.directive.ts:23</a></div>
260
- </td>
261
- </tr>
262
-
263
- <tr>
264
- <td class="col-md-4">
265
- <div>
266
- <b>Parameters :</b>
267
- <table class="params">
268
- <thead>
269
- <tr>
270
- <td>Name</td>
271
- <td>Type</td>
272
- <td>Optional</td>
273
- </tr>
274
- </thead>
275
- <tbody>
276
- <tr>
277
- <td>formField</td>
278
-
279
- <td>
280
- <code>MatFormField</code>
281
- </td>
282
-
283
- <td>
284
- No
285
- </td>
286
-
287
- </tr>
288
- </tbody>
289
- </table>
290
- </div>
291
- </td>
292
- </tr>
293
- </tbody>
294
- </table>
295
- </section>
296
-
297
-
298
-
299
- <section data-compodoc="block-properties">
300
- <h3>HostBindings</h3> <table class="table table-sm table-bordered">
301
- <tbody>
302
- <tr>
303
- <td class="col-md-4">
304
- <a name="attr.tabindex"></a>
305
- <span class="name">
306
- <span ><b>attr.tabindex</b></span>
307
- <a href="#attr.tabindex"><span class="icon ion-ios-link"></span></a>
308
- </span>
309
- </td>
310
- </tr>
311
- <tr>
312
- <td class="col-md-4">
313
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
314
-
315
- </td>
316
- </tr>
317
- <tr>
318
- <td class="col-md-4">
319
- <i>Default value : </i><code>&#x27;-1&#x27;</code>
320
- </td>
321
- </tr>
322
- <tr>
323
- <td class="col-md-4">
324
- <div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/lib/input-clear-button.directive.ts:23</a></div>
325
- </td>
326
- </tr>
327
-
328
-
329
- </tbody>
330
- </table>
331
- <table class="table table-sm table-bordered">
332
- <tbody>
333
- <tr>
334
- <td class="col-md-4">
335
- <a name="attr.type"></a>
336
- <span class="name">
337
- <span ><b>attr.type</b></span>
338
- <a href="#attr.type"><span class="icon ion-ios-link"></span></a>
339
- </span>
340
- </td>
341
- </tr>
342
- <tr>
343
- <td class="col-md-4">
344
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
345
-
346
- </td>
347
- </tr>
348
- <tr>
349
- <td class="col-md-4">
350
- <i>Default value : </i><code>&#x27;button&#x27;</code>
351
- </td>
352
- </tr>
353
- <tr>
354
- <td class="col-md-4">
355
- <div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/lib/input-clear-button.directive.ts:20</a></div>
356
- </td>
357
- </tr>
358
211
 
359
212
 
360
- </tbody>
361
- </table>
362
- <table class="table table-sm table-bordered">
363
- <tbody>
364
- <tr>
365
- <td class="col-md-4">
366
- <a name="disabled"></a>
367
- <span class="name">
368
- <span ><b>disabled</b></span>
369
- <a href="#disabled"><span class="icon ion-ios-link"></span></a>
370
- </span>
371
- </td>
372
- </tr>
373
- <tr>
374
- <td class="col-md-4">
375
- <i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
376
213
 
377
- </td>
378
- </tr>
379
- <tr>
380
- <td class="col-md-4">
381
- <div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/input-clear-button.directive.ts:36</a></div>
382
- </td>
383
- </tr>
384
214
 
385
215
 
386
- </tbody>
387
- </table>
388
- </section>
389
-
390
- <section data-compodoc="block-host-listener">
391
- <h3>HostListeners</h3> <table class="table table-sm table-bordered">
392
- <tbody>
393
- <tr>
394
- <td class="col-md-4">
395
- <a name="click"></a>
396
- <span class="name">
397
- <b>
398
- click
399
- </b>
400
- <a href="#click"><span class="icon ion-ios-link"></span></a>
401
- </span>
402
- </td>
403
- </tr>
404
-
405
-
406
- <tr>
407
- <td class="col-md-4">
408
- <div class="io-line">Defined in <a href="" data-line="41"
409
- class="link-to-prism">src/lib/input-clear-button.directive.ts:41</a></div>
410
- </td>
411
- </tr>
412
-
413
-
414
- </tbody>
415
- </table>
416
- </section>
417
216
  <section data-compodoc="block-methods">
418
217
 
419
218
  <h3 id="methods">
@@ -425,7 +224,6 @@
425
224
  <td class="col-md-4">
426
225
  <a name="onClick"></a>
427
226
  <span class="name">
428
- <span class="modifier"></span>
429
227
  <span class="modifier">Public</span>
430
228
  <span ><b>onClick</b></span>
431
229
  <a href="#onClick"><span class="icon ion-ios-link"></span></a>
@@ -439,18 +237,11 @@
439
237
  </td>
440
238
  </tr>
441
239
 
442
- <tr>
443
- <td class="col-md-4">
444
- <b>Decorators : </b>
445
- <br />
446
- <code>@HostListener(&#x27;click&#x27;)<br /></code>
447
- </td>
448
- </tr>
449
240
 
450
241
  <tr>
451
242
  <td class="col-md-4">
452
- <div class="io-line">Defined in <a href="" data-line="41"
453
- class="link-to-prism">src/lib/input-clear-button.directive.ts:41</a></div>
243
+ <div class="io-line">Defined in <a href="" data-line="34"
244
+ class="link-to-prism">src/lib/input-clear-button.directive.ts:34</a></div>
454
245
  </td>
455
246
  </tr>
456
247
 
@@ -478,7 +269,6 @@
478
269
  <td class="col-md-4">
479
270
  <a name="tabIndex"></a>
480
271
  <span class="name">
481
- <span class="modifier"></span>
482
272
  <span class="modifier">Public</span>
483
273
  <span ><b>tabIndex</b></span>
484
274
  <a href="#tabIndex"><span class="icon ion-ios-link"></span></a>
@@ -495,19 +285,10 @@
495
285
  <td class="col-md-4">
496
286
  <i>Default value : </i><code>&#x27;-1&#x27;</code>
497
287
  </td>
498
- </tr>
499
- <tr>
500
- <td class="col-md-4">
501
- <b>Decorators : </b>
502
- <br />
503
- <code>
504
- @HostBinding(&#x27;attr.tabindex&#x27;)<br />
505
- </code>
506
- </td>
507
288
  </tr>
508
289
  <tr>
509
290
  <td class="col-md-4">
510
- <div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/lib/input-clear-button.directive.ts:23</a></div>
291
+ <div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/lib/input-clear-button.directive.ts:24</a></div>
511
292
  </td>
512
293
  </tr>
513
294
 
@@ -520,7 +301,6 @@
520
301
  <td class="col-md-4">
521
302
  <a name="type"></a>
522
303
  <span class="name">
523
- <span class="modifier"></span>
524
304
  <span class="modifier">Public</span>
525
305
  <span ><b>type</b></span>
526
306
  <a href="#type"><span class="icon ion-ios-link"></span></a>
@@ -537,19 +317,10 @@
537
317
  <td class="col-md-4">
538
318
  <i>Default value : </i><code>&#x27;button&#x27;</code>
539
319
  </td>
540
- </tr>
541
- <tr>
542
- <td class="col-md-4">
543
- <b>Decorators : </b>
544
- <br />
545
- <code>
546
- @HostBinding(&#x27;attr.type&#x27;)<br />
547
- </code>
548
- </td>
549
320
  </tr>
550
321
  <tr>
551
322
  <td class="col-md-4">
552
- <div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/lib/input-clear-button.directive.ts:20</a></div>
323
+ <div class="io-line">Defined in <a href="" data-line="22" class="link-to-prism">src/lib/input-clear-button.directive.ts:22</a></div>
553
324
  </td>
554
325
  </tr>
555
326
 
@@ -578,7 +349,7 @@
578
349
  </tr>
579
350
  <tr>
580
351
  <td class="col-md-4">
581
- <div class="io-line">Defined in <a href="" data-line="31" class="link-to-prism">src/lib/input-clear-button.directive.ts:31</a></div>
352
+ <div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/lib/input-clear-button.directive.ts:26</a></div>
582
353
  </td>
583
354
  </tr>
584
355
 
@@ -600,7 +371,7 @@
600
371
  </tr>
601
372
  <tr>
602
373
  <td class="col-md-4">
603
- <div class="io-line">Defined in <a href="" data-line="36" class="link-to-prism">src/lib/input-clear-button.directive.ts:36</a></div>
374
+ <div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/input-clear-button.directive.ts:30</a></div>
604
375
  </td>
605
376
  </tr>
606
377
 
@@ -612,12 +383,7 @@
612
383
 
613
384
 
614
385
  <div class="tab-pane fade tab-source-code" id="source">
615
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
616
- Directive,
617
- HostBinding,
618
- HostListener,
619
- Inject,
620
- } from &#x27;@angular/core&#x27;;
386
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Directive, inject } from &#x27;@angular/core&#x27;;
621
387
  import {
622
388
  MAT_FORM_FIELD,
623
389
  MatFormField,
@@ -627,31 +393,29 @@ import {
627
393
  @Directive({
628
394
  selector: &#x27;[rxapInputClearButton]&#x27;,
629
395
  standalone: true,
396
+ host: {
397
+ &#x27;[attr.type]&#x27;: &#x27;type&#x27;,
398
+ &#x27;[attr.tabindex]&#x27;: &#x27;tabIndex&#x27;,
399
+ &#x27;[disabled]&#x27;: &#x27;isDisabled&#x27;,
400
+ &#x27;(click)&#x27;: &#x27;onClick()&#x27;,
401
+ },
630
402
  })
631
403
  export class InputClearButtonDirective {
404
+ private formField &#x3D; inject&lt;MatFormField&gt;(MAT_FORM_FIELD);
405
+
632
406
 
633
- @HostBinding(&#x27;attr.type&#x27;)
634
407
  public type &#x3D; &#x27;button&#x27;;
635
408
 
636
- @HostBinding(&#x27;attr.tabindex&#x27;)
637
409
  public tabIndex &#x3D; &#x27;-1&#x27;;
638
410
 
639
- constructor(
640
- @Inject(MAT_FORM_FIELD)
641
- private formField: MatFormField,
642
- ) {
643
- }
644
-
645
411
  public get control(): MatFormFieldControl&lt;any&gt; {
646
412
  return this.formField._control;
647
413
  }
648
414
 
649
- @HostBinding(&#x27;disabled&#x27;)
650
415
  public get isDisabled() {
651
416
  return this.control.disabled;
652
417
  }
653
418
 
654
- @HostListener(&#x27;click&#x27;)
655
419
  public onClick() {
656
420
  if (this.control.ngControl) {
657
421
  if (this.control.ngControl.control) {
@@ -150,54 +150,6 @@
150
150
  </section>
151
151
 
152
152
 
153
- <section data-compodoc="block-constructor">
154
- <h3 id="constructor">Constructor</h3>
155
- <table class="table table-sm table-bordered">
156
- <tbody>
157
- <tr>
158
- <td class="col-md-4">
159
- <code>constructor(formField: MatFormField)</code>
160
- </td>
161
- </tr>
162
- <tr>
163
- <td class="col-md-4">
164
- <div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">src/lib/required.directive.ts:15</a></div>
165
- </td>
166
- </tr>
167
-
168
- <tr>
169
- <td class="col-md-4">
170
- <div>
171
- <b>Parameters :</b>
172
- <table class="params">
173
- <thead>
174
- <tr>
175
- <td>Name</td>
176
- <td>Type</td>
177
- <td>Optional</td>
178
- </tr>
179
- </thead>
180
- <tbody>
181
- <tr>
182
- <td>formField</td>
183
-
184
- <td>
185
- <code>MatFormField</code>
186
- </td>
187
-
188
- <td>
189
- No
190
- </td>
191
-
192
- </tr>
193
- </tbody>
194
- </table>
195
- </div>
196
- </td>
197
- </tr>
198
- </tbody>
199
- </table>
200
- </section>
201
153
 
202
154
 
203
155
 
@@ -210,11 +162,7 @@
210
162
 
211
163
 
212
164
  <div class="tab-pane fade tab-source-code" id="source">
213
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
214
- AfterContentInit,
215
- Directive,
216
- Inject,
217
- } from &#x27;@angular/core&#x27;;
165
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { AfterContentInit, Directive, inject } from &#x27;@angular/core&#x27;;
218
166
  import {
219
167
  MAT_FORM_FIELD,
220
168
  MatFormField,
@@ -225,12 +173,8 @@ import {
225
173
  standalone: true,
226
174
  })
227
175
  export class RequiredDirective implements AfterContentInit {
176
+ private readonly formField &#x3D; inject&lt;MatFormField&gt;(MAT_FORM_FIELD);
228
177
 
229
- constructor(
230
- @Inject(MAT_FORM_FIELD)
231
- private readonly formField: MatFormField,
232
- ) {
233
- }
234
178
 
235
179
  public ngAfterContentInit() {
236
180
  const control &#x3D; this.formField._control.ngControl?.control;