@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
@@ -154,22 +154,33 @@
154
154
  <h3 id="index">Index</h3>
155
155
  <table class="table table-sm table-bordered index-table">
156
156
  <tbody>
157
-
158
157
  <tr>
159
158
  <td class="col-md-4">
160
- <h6><b>Methods</b></h6>
159
+ <h6><b>Properties</b></h6>
161
160
  </td>
162
161
  </tr>
163
162
  <tr>
164
163
  <td class="col-md-4">
165
164
  <ul class="index-list">
166
165
  <li>
167
- <span class="modifier">Static</span>
168
- <a href="#ngTemplateContextGuard" >ngTemplateContextGuard</a>
166
+ <span class="modifier">Protected</span>
167
+ <span class="modifier">Readonly</span>
168
+ <a href="#cdr" >cdr</a>
169
+ </li>
170
+ <li>
171
+ <span class="modifier">Public</span>
172
+ <span class="modifier">Readonly</span>
173
+ <a href="#key" >key</a>
169
174
  </li>
170
175
  <li>
171
176
  <span class="modifier">Protected</span>
172
- <a href="#render" >render</a>
177
+ <span class="modifier">Readonly</span>
178
+ <a href="#template" >template</a>
179
+ </li>
180
+ <li>
181
+ <span class="modifier">Protected</span>
182
+ <span class="modifier">Readonly</span>
183
+ <a href="#viewContainerRef" >viewContainerRef</a>
173
184
  </li>
174
185
  </ul>
175
186
  </td>
@@ -177,14 +188,19 @@
177
188
 
178
189
  <tr>
179
190
  <td class="col-md-4">
180
- <h6><b>Inputs</b></h6>
191
+ <h6><b>Methods</b></h6>
181
192
  </td>
182
193
  </tr>
183
194
  <tr>
184
195
  <td class="col-md-4">
185
196
  <ul class="index-list">
186
197
  <li>
187
- <a href="#rxapControlErrorKey" >rxapControlErrorKey</a>
198
+ <span class="modifier">Static</span>
199
+ <a href="#ngTemplateContextGuard" >ngTemplateContextGuard</a>
200
+ </li>
201
+ <li>
202
+ <span class="modifier">Protected</span>
203
+ <a href="#render" >render</a>
188
204
  </li>
189
205
  </ul>
190
206
  </td>
@@ -193,124 +209,13 @@
193
209
 
194
210
 
195
211
 
212
+
196
213
  </tbody>
197
214
  </table>
198
215
  </section>
199
216
 
200
- <section data-compodoc="block-constructor">
201
- <h3 id="constructor">Constructor</h3>
202
- <table class="table table-sm table-bordered">
203
- <tbody>
204
- <tr>
205
- <td class="col-md-4">
206
- <code>constructor(formField: MatFormField, template: <a href="../interfaces/ControlErrorDirectiveContext.html" target="_self">TemplateRef&lt;ControlErrorDirectiveContext&gt;</a>, viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef)</code>
207
- </td>
208
- </tr>
209
- <tr>
210
- <td class="col-md-4">
211
- <div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/control-error.directive.ts:40</a></div>
212
- </td>
213
- </tr>
214
-
215
- <tr>
216
- <td class="col-md-4">
217
- <div>
218
- <b>Parameters :</b>
219
- <table class="params">
220
- <thead>
221
- <tr>
222
- <td>Name</td>
223
- <td>Type</td>
224
- <td>Optional</td>
225
- </tr>
226
- </thead>
227
- <tbody>
228
- <tr>
229
- <td>formField</td>
230
-
231
- <td>
232
- <code>MatFormField</code>
233
- </td>
234
-
235
- <td>
236
- No
237
- </td>
238
-
239
- </tr>
240
- <tr>
241
- <td>template</td>
242
-
243
- <td>
244
- <code><a href="../interfaces/ControlErrorDirectiveContext.html" target="_self" >TemplateRef&lt;ControlErrorDirectiveContext&gt;</a></code>
245
- </td>
246
-
247
- <td>
248
- No
249
- </td>
250
-
251
- </tr>
252
- <tr>
253
- <td>viewContainerRef</td>
254
-
255
- <td>
256
- <code>ViewContainerRef</code>
257
- </td>
258
-
259
- <td>
260
- No
261
- </td>
262
-
263
- </tr>
264
- <tr>
265
- <td>cdr</td>
266
-
267
- <td>
268
- <code>ChangeDetectorRef</code>
269
- </td>
270
-
271
- <td>
272
- No
273
- </td>
274
-
275
- </tr>
276
- </tbody>
277
- </table>
278
- </div>
279
- </td>
280
- </tr>
281
- </tbody>
282
- </table>
283
- </section>
284
217
 
285
- <section data-compodoc="block-inputs">
286
- <h3 id="inputs">Inputs</h3>
287
- <table class="table table-sm table-bordered">
288
- <tbody>
289
- <tr>
290
- <td class="col-md-4">
291
- <a name="rxapControlErrorKey"></a>
292
- <b>rxapControlErrorKey</b>
293
- </td>
294
- </tr>
295
- <tr>
296
- <td class="col-md-4">
297
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
298
218
 
299
- </td>
300
- </tr>
301
- <tr>
302
- <td class="col-md-4">
303
- <i>Required : </i>&nbsp;<b>true</b>
304
- </td>
305
- </tr>
306
- <tr>
307
- <td class="col-md-2" colspan="2">
308
- <div class="io-line">Defined in <a href="" data-line="38" class="link-to-prism">src/lib/control-error.directive.ts:38</a></div>
309
- </td>
310
- </tr>
311
- </tbody>
312
- </table>
313
- </section>
314
219
 
315
220
 
316
221
 
@@ -341,8 +246,8 @@
341
246
 
342
247
  <tr>
343
248
  <td class="col-md-4">
344
- <div class="io-line">Defined in <a href="" data-line="54"
345
- class="link-to-prism">src/lib/control-error.directive.ts:54</a></div>
249
+ <div class="io-line">Defined in <a href="" data-line="34"
250
+ class="link-to-prism">src/lib/control-error.directive.ts:34</a></div>
346
251
  </td>
347
252
  </tr>
348
253
 
@@ -430,8 +335,8 @@
430
335
 
431
336
  <tr>
432
337
  <td class="col-md-4">
433
- <div class="io-line">Defined in <a href="" data-line="77"
434
- class="link-to-prism">src/lib/control-error.directive.ts:77</a></div>
338
+ <div class="io-line">Defined in <a href="" data-line="57"
339
+ class="link-to-prism">src/lib/control-error.directive.ts:57</a></div>
435
340
  </td>
436
341
  </tr>
437
342
 
@@ -478,22 +383,127 @@
478
383
  </tbody>
479
384
  </table>
480
385
  </section>
386
+ <section data-compodoc="block-properties">
387
+
388
+ <h3 id="inputs">
389
+ Properties
390
+ </h3>
391
+ <table class="table table-sm table-bordered">
392
+ <tbody>
393
+ <tr>
394
+ <td class="col-md-4">
395
+ <a name="cdr"></a>
396
+ <span class="name">
397
+ <span class="modifier">Protected</span>
398
+ <span class="modifier">Readonly</span>
399
+ <span ><b>cdr</b></span>
400
+ <a href="#cdr"><span class="icon ion-ios-link"></span></a>
401
+ </span>
402
+ </td>
403
+ </tr>
404
+ <tr>
405
+ <td class="col-md-4">
406
+ <i>Default value : </i><code>inject&lt;ChangeDetectorRef&gt;(ChangeDetectorRef)</code>
407
+ </td>
408
+ </tr>
409
+ <tr>
410
+ <td class="col-md-4">
411
+ <div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/control-error.directive.ts:28</a></div>
412
+ </td>
413
+ </tr>
414
+
415
+
416
+ </tbody>
417
+ </table>
418
+ <table class="table table-sm table-bordered">
419
+ <tbody>
420
+ <tr>
421
+ <td class="col-md-4">
422
+ <a name="key"></a>
423
+ <span class="name">
424
+ <span class="modifier">Public</span>
425
+ <span class="modifier">Readonly</span>
426
+ <span ><b>key</b></span>
427
+ <a href="#key"><span class="icon ion-ios-link"></span></a>
428
+ </span>
429
+ </td>
430
+ </tr>
431
+ <tr>
432
+ <td class="col-md-4">
433
+ <i>Default value : </i><code>input.required&lt;string&gt;({ alias: &quot;rxapControlErrorKey&quot; })</code>
434
+ </td>
435
+ </tr>
436
+ <tr>
437
+ <td class="col-md-4">
438
+ <div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/control-error.directive.ts:30</a></div>
439
+ </td>
440
+ </tr>
441
+
442
+
443
+ </tbody>
444
+ </table>
445
+ <table class="table table-sm table-bordered">
446
+ <tbody>
447
+ <tr>
448
+ <td class="col-md-4">
449
+ <a name="template"></a>
450
+ <span class="name">
451
+ <span class="modifier">Protected</span>
452
+ <span class="modifier">Readonly</span>
453
+ <span ><b>template</b></span>
454
+ <a href="#template"><span class="icon ion-ios-link"></span></a>
455
+ </span>
456
+ </td>
457
+ </tr>
458
+ <tr>
459
+ <td class="col-md-4">
460
+ <i>Default value : </i><code>inject&lt;TemplateRef&lt;ControlErrorDirectiveContext&gt;&gt;(TemplateRef)</code>
461
+ </td>
462
+ </tr>
463
+ <tr>
464
+ <td class="col-md-4">
465
+ <div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/lib/control-error.directive.ts:26</a></div>
466
+ </td>
467
+ </tr>
468
+
469
+
470
+ </tbody>
471
+ </table>
472
+ <table class="table table-sm table-bordered">
473
+ <tbody>
474
+ <tr>
475
+ <td class="col-md-4">
476
+ <a name="viewContainerRef"></a>
477
+ <span class="name">
478
+ <span class="modifier">Protected</span>
479
+ <span class="modifier">Readonly</span>
480
+ <span ><b>viewContainerRef</b></span>
481
+ <a href="#viewContainerRef"><span class="icon ion-ios-link"></span></a>
482
+ </span>
483
+ </td>
484
+ </tr>
485
+ <tr>
486
+ <td class="col-md-4">
487
+ <i>Default value : </i><code>inject&lt;ViewContainerRef&gt;(ViewContainerRef)</code>
488
+ </td>
489
+ </tr>
490
+ <tr>
491
+ <td class="col-md-4">
492
+ <div class="io-line">Defined in <a href="" data-line="27" class="link-to-prism">src/lib/control-error.directive.ts:27</a></div>
493
+ </td>
494
+ </tr>
495
+
496
+
497
+ </tbody>
498
+ </table>
499
+ </section>
481
500
 
482
501
 
483
502
  </div>
484
503
 
485
504
 
486
505
  <div class="tab-pane fade tab-source-code" id="source">
487
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
488
- AfterContentInit,
489
- ChangeDetectorRef,
490
- Directive,
491
- Inject,
492
- Input,
493
- OnDestroy,
494
- TemplateRef,
495
- ViewContainerRef,
496
- } from &#x27;@angular/core&#x27;;
506
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { AfterContentInit, ChangeDetectorRef, Directive, OnDestroy, TemplateRef, ViewContainerRef, input, inject } from &#x27;@angular/core&#x27;;
497
507
  import {
498
508
  AbstractControl,
499
509
  ValidationErrors,
@@ -517,26 +527,15 @@ export interface ControlErrorDirectiveContext {
517
527
  standalone: true,
518
528
  })
519
529
  export class ControlErrorDirective implements AfterContentInit, OnDestroy {
520
- @Input({
521
- required: true,
522
- alias: &#x27;rxapControlErrorKey&#x27;,
523
- })
524
- public key!: string;
530
+ private readonly formField &#x3D; inject&lt;MatFormField&gt;(MAT_FORM_FIELD);
531
+ protected readonly template &#x3D; inject&lt;TemplateRef&lt;ControlErrorDirectiveContext&gt;&gt;(TemplateRef);
532
+ protected readonly viewContainerRef &#x3D; inject&lt;ViewContainerRef&gt;(ViewContainerRef);
533
+ protected readonly cdr &#x3D; inject&lt;ChangeDetectorRef&gt;(ChangeDetectorRef);
534
+
535
+ public readonly key &#x3D; input.required&lt;string&gt;({ alias: &quot;rxapControlErrorKey&quot; });
525
536
  private _subscription?: Subscription;
526
537
  private _control?: AbstractControl;
527
538
 
528
- constructor(
529
- @Inject(MAT_FORM_FIELD)
530
- private readonly formField: MatFormField,
531
- @Inject(TemplateRef)
532
- protected readonly template: TemplateRef&lt;ControlErrorDirectiveContext&gt;,
533
- @Inject(ViewContainerRef)
534
- protected readonly viewContainerRef: ViewContainerRef,
535
- @Inject(ChangeDetectorRef)
536
- protected readonly cdr: ChangeDetectorRef,
537
- ) {
538
- }
539
-
540
539
  static ngTemplateContextGuard&lt;T&gt;(
541
540
  dir: ControlErrorDirective,
542
541
  ctx: any,
@@ -564,7 +563,7 @@ export class ControlErrorDirective implements AfterContentInit, OnDestroy {
564
563
  this.viewContainerRef.clear();
565
564
  if (errors) {
566
565
  const errorKeys &#x3D; Object.keys(errors);
567
- const matchingKey &#x3D; errorKeys.find((key) &#x3D;&gt; key.toLowerCase() &#x3D;&#x3D;&#x3D; this.key.toLowerCase());
566
+ const matchingKey &#x3D; errorKeys.find((key) &#x3D;&gt; key.toLowerCase() &#x3D;&#x3D;&#x3D; this.key().toLowerCase());
568
567
  if (matchingKey) {
569
568
  const error &#x3D; errors[matchingKey];
570
569
  if (!this._control) {
@@ -154,6 +154,32 @@
154
154
  <h3 id="index">Index</h3>
155
155
  <table class="table table-sm table-bordered index-table">
156
156
  <tbody>
157
+ <tr>
158
+ <td class="col-md-4">
159
+ <h6><b>Properties</b></h6>
160
+ </td>
161
+ </tr>
162
+ <tr>
163
+ <td class="col-md-4">
164
+ <ul class="index-list">
165
+ <li>
166
+ <span class="modifier">Protected</span>
167
+ <span class="modifier">Readonly</span>
168
+ <a href="#cdr" >cdr</a>
169
+ </li>
170
+ <li>
171
+ <span class="modifier">Protected</span>
172
+ <span class="modifier">Readonly</span>
173
+ <a href="#template" >template</a>
174
+ </li>
175
+ <li>
176
+ <span class="modifier">Protected</span>
177
+ <span class="modifier">Readonly</span>
178
+ <a href="#viewContainerRef" >viewContainerRef</a>
179
+ </li>
180
+ </ul>
181
+ </td>
182
+ </tr>
157
183
 
158
184
  <tr>
159
185
  <td class="col-md-4">
@@ -183,90 +209,6 @@
183
209
  </table>
184
210
  </section>
185
211
 
186
- <section data-compodoc="block-constructor">
187
- <h3 id="constructor">Constructor</h3>
188
- <table class="table table-sm table-bordered">
189
- <tbody>
190
- <tr>
191
- <td class="col-md-4">
192
- <code>constructor(formField: MatFormField, template: <a href="../interfaces/ControlErrorsDirectiveContext.html" target="_self">TemplateRef&lt;ControlErrorsDirectiveContext&gt;</a>, viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef)</code>
193
- </td>
194
- </tr>
195
- <tr>
196
- <td class="col-md-4">
197
- <div class="io-line">Defined in <a href="" data-line="33" class="link-to-prism">src/lib/control-errors.directive.ts:33</a></div>
198
- </td>
199
- </tr>
200
-
201
- <tr>
202
- <td class="col-md-4">
203
- <div>
204
- <b>Parameters :</b>
205
- <table class="params">
206
- <thead>
207
- <tr>
208
- <td>Name</td>
209
- <td>Type</td>
210
- <td>Optional</td>
211
- </tr>
212
- </thead>
213
- <tbody>
214
- <tr>
215
- <td>formField</td>
216
-
217
- <td>
218
- <code>MatFormField</code>
219
- </td>
220
-
221
- <td>
222
- No
223
- </td>
224
-
225
- </tr>
226
- <tr>
227
- <td>template</td>
228
-
229
- <td>
230
- <code><a href="../interfaces/ControlErrorsDirectiveContext.html" target="_self" >TemplateRef&lt;ControlErrorsDirectiveContext&gt;</a></code>
231
- </td>
232
-
233
- <td>
234
- No
235
- </td>
236
-
237
- </tr>
238
- <tr>
239
- <td>viewContainerRef</td>
240
-
241
- <td>
242
- <code>ViewContainerRef</code>
243
- </td>
244
-
245
- <td>
246
- No
247
- </td>
248
-
249
- </tr>
250
- <tr>
251
- <td>cdr</td>
252
-
253
- <td>
254
- <code>ChangeDetectorRef</code>
255
- </td>
256
-
257
- <td>
258
- No
259
- </td>
260
-
261
- </tr>
262
- </tbody>
263
- </table>
264
- </div>
265
- </td>
266
- </tr>
267
- </tbody>
268
- </table>
269
- </section>
270
212
 
271
213
 
272
214
 
@@ -299,8 +241,8 @@
299
241
 
300
242
  <tr>
301
243
  <td class="col-md-4">
302
- <div class="io-line">Defined in <a href="" data-line="47"
303
- class="link-to-prism">src/lib/control-errors.directive.ts:47</a></div>
244
+ <div class="io-line">Defined in <a href="" data-line="32"
245
+ class="link-to-prism">src/lib/control-errors.directive.ts:32</a></div>
304
246
  </td>
305
247
  </tr>
306
248
 
@@ -388,8 +330,8 @@
388
330
 
389
331
  <tr>
390
332
  <td class="col-md-4">
391
- <div class="io-line">Defined in <a href="" data-line="70"
392
- class="link-to-prism">src/lib/control-errors.directive.ts:70</a></div>
333
+ <div class="io-line">Defined in <a href="" data-line="55"
334
+ class="link-to-prism">src/lib/control-errors.directive.ts:55</a></div>
393
335
  </td>
394
336
  </tr>
395
337
 
@@ -436,21 +378,100 @@
436
378
  </tbody>
437
379
  </table>
438
380
  </section>
381
+ <section data-compodoc="block-properties">
382
+
383
+ <h3 id="inputs">
384
+ Properties
385
+ </h3>
386
+ <table class="table table-sm table-bordered">
387
+ <tbody>
388
+ <tr>
389
+ <td class="col-md-4">
390
+ <a name="cdr"></a>
391
+ <span class="name">
392
+ <span class="modifier">Protected</span>
393
+ <span class="modifier">Readonly</span>
394
+ <span ><b>cdr</b></span>
395
+ <a href="#cdr"><span class="icon ion-ios-link"></span></a>
396
+ </span>
397
+ </td>
398
+ </tr>
399
+ <tr>
400
+ <td class="col-md-4">
401
+ <i>Default value : </i><code>inject&lt;ChangeDetectorRef&gt;(ChangeDetectorRef)</code>
402
+ </td>
403
+ </tr>
404
+ <tr>
405
+ <td class="col-md-4">
406
+ <div class="io-line">Defined in <a href="" data-line="27" class="link-to-prism">src/lib/control-errors.directive.ts:27</a></div>
407
+ </td>
408
+ </tr>
409
+
410
+
411
+ </tbody>
412
+ </table>
413
+ <table class="table table-sm table-bordered">
414
+ <tbody>
415
+ <tr>
416
+ <td class="col-md-4">
417
+ <a name="template"></a>
418
+ <span class="name">
419
+ <span class="modifier">Protected</span>
420
+ <span class="modifier">Readonly</span>
421
+ <span ><b>template</b></span>
422
+ <a href="#template"><span class="icon ion-ios-link"></span></a>
423
+ </span>
424
+ </td>
425
+ </tr>
426
+ <tr>
427
+ <td class="col-md-4">
428
+ <i>Default value : </i><code>inject&lt;TemplateRef&lt;ControlErrorsDirectiveContext&gt;&gt;(TemplateRef)</code>
429
+ </td>
430
+ </tr>
431
+ <tr>
432
+ <td class="col-md-4">
433
+ <div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/control-errors.directive.ts:25</a></div>
434
+ </td>
435
+ </tr>
436
+
437
+
438
+ </tbody>
439
+ </table>
440
+ <table class="table table-sm table-bordered">
441
+ <tbody>
442
+ <tr>
443
+ <td class="col-md-4">
444
+ <a name="viewContainerRef"></a>
445
+ <span class="name">
446
+ <span class="modifier">Protected</span>
447
+ <span class="modifier">Readonly</span>
448
+ <span ><b>viewContainerRef</b></span>
449
+ <a href="#viewContainerRef"><span class="icon ion-ios-link"></span></a>
450
+ </span>
451
+ </td>
452
+ </tr>
453
+ <tr>
454
+ <td class="col-md-4">
455
+ <i>Default value : </i><code>inject&lt;ViewContainerRef&gt;(ViewContainerRef)</code>
456
+ </td>
457
+ </tr>
458
+ <tr>
459
+ <td class="col-md-4">
460
+ <div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/lib/control-errors.directive.ts:26</a></div>
461
+ </td>
462
+ </tr>
463
+
464
+
465
+ </tbody>
466
+ </table>
467
+ </section>
439
468
 
440
469
 
441
470
  </div>
442
471
 
443
472
 
444
473
  <div class="tab-pane fade tab-source-code" id="source">
445
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
446
- AfterContentInit,
447
- ChangeDetectorRef,
448
- Directive,
449
- Inject,
450
- OnDestroy,
451
- TemplateRef,
452
- ViewContainerRef,
453
- } from &#x27;@angular/core&#x27;;
474
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { AfterContentInit, ChangeDetectorRef, Directive, OnDestroy, TemplateRef, ViewContainerRef, inject } from &#x27;@angular/core&#x27;;
454
475
  import {
455
476
  AbstractControl,
456
477
  ValidationErrors,
@@ -473,21 +494,14 @@ export interface ControlErrorsDirectiveContext {
473
494
  standalone: true,
474
495
  })
475
496
  export class ControlErrorsDirective implements AfterContentInit, OnDestroy {
497
+ private readonly formField &#x3D; inject&lt;MatFormField&gt;(MAT_FORM_FIELD);
498
+ protected readonly template &#x3D; inject&lt;TemplateRef&lt;ControlErrorsDirectiveContext&gt;&gt;(TemplateRef);
499
+ protected readonly viewContainerRef &#x3D; inject&lt;ViewContainerRef&gt;(ViewContainerRef);
500
+ protected readonly cdr &#x3D; inject&lt;ChangeDetectorRef&gt;(ChangeDetectorRef);
501
+
476
502
  private _subscription?: Subscription;
477
503
  private _control?: AbstractControl;
478
504
 
479
- constructor(
480
- @Inject(MAT_FORM_FIELD)
481
- private readonly formField: MatFormField,
482
- @Inject(TemplateRef)
483
- protected readonly template: TemplateRef&lt;ControlErrorsDirectiveContext&gt;,
484
- @Inject(ViewContainerRef)
485
- protected readonly viewContainerRef: ViewContainerRef,
486
- @Inject(ChangeDetectorRef)
487
- protected readonly cdr: ChangeDetectorRef,
488
- ) {
489
- }
490
-
491
505
  static ngTemplateContextGuard&lt;T&gt;(
492
506
  dir: ControlErrorsDirective,
493
507
  ctx: any,