@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
@@ -125,15 +125,15 @@
125
125
  <li>
126
126
  <b>@angular/router</b> : ^21.2.9</li>
127
127
  <li>
128
- <b>@rxap/form-system</b> : ^21.0.1-dev.0</li>
128
+ <b>@rxap/form-system</b> : ^21.0.1</li>
129
129
  <li>
130
- <b>@rxap/forms</b> : ^21.0.1-dev.0</li>
130
+ <b>@rxap/forms</b> : ^21.0.1</li>
131
131
  <li>
132
- <b>@rxap/mixin</b> : ^16.0.17-dev.0</li>
132
+ <b>@rxap/mixin</b> : ^16.0.17</li>
133
133
  <li>
134
- <b>@rxap/reflect-metadata</b> : ^1.0.18-dev.0</li>
134
+ <b>@rxap/reflect-metadata</b> : ^1.0.18</li>
135
135
  <li>
136
- <b>@rxap/utilities</b> : ^16.5.2-dev.0</li>
136
+ <b>@rxap/utilities</b> : ^16.5.2</li>
137
137
  <li>
138
138
  <b>rxjs</b> : ^7.8.2</li>
139
139
  </ul>
@@ -157,57 +157,15 @@
157
157
  <tbody>
158
158
  <tr>
159
159
  <td class="col-md-4">
160
- <code>constructor(matChipInput: MatChipInput, ngControl: NgControl)</code>
160
+ <code>constructor()</code>
161
161
  </td>
162
162
  </tr>
163
163
  <tr>
164
164
  <td class="col-md-4">
165
- <div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/lib/chip-input-adapter.directive.ts:24</a></div>
165
+ <div class="io-line">Defined in <a href="" data-line="23" class="link-to-prism">src/lib/chip-input-adapter.directive.ts:23</a></div>
166
166
  </td>
167
167
  </tr>
168
168
 
169
- <tr>
170
- <td class="col-md-4">
171
- <div>
172
- <b>Parameters :</b>
173
- <table class="params">
174
- <thead>
175
- <tr>
176
- <td>Name</td>
177
- <td>Type</td>
178
- <td>Optional</td>
179
- </tr>
180
- </thead>
181
- <tbody>
182
- <tr>
183
- <td>matChipInput</td>
184
-
185
- <td>
186
- <code>MatChipInput</code>
187
- </td>
188
-
189
- <td>
190
- No
191
- </td>
192
-
193
- </tr>
194
- <tr>
195
- <td>ngControl</td>
196
-
197
- <td>
198
- <code>NgControl</code>
199
- </td>
200
-
201
- <td>
202
- No
203
- </td>
204
-
205
- </tr>
206
- </tbody>
207
- </table>
208
- </div>
209
- </td>
210
- </tr>
211
169
  </tbody>
212
170
  </table>
213
171
  </section>
@@ -227,11 +185,7 @@
227
185
  COMMA,
228
186
  ENTER,
229
187
  } from &#x27;@angular/cdk/keycodes&#x27;;
230
- import {
231
- Directive,
232
- OnDestroy,
233
- OnInit,
234
- } from &#x27;@angular/core&#x27;;
188
+ import { Directive, OnDestroy, OnInit, inject } from &#x27;@angular/core&#x27;;
235
189
  import { NgControl } from &#x27;@angular/forms&#x27;;
236
190
  import { MatChipInput } from &#x27;@angular/material/chips&#x27;;
237
191
  import { unique } from &#x27;@rxap/utilities&#x27;;
@@ -246,12 +200,12 @@ import {
246
200
  standalone: true,
247
201
  })
248
202
  export class ChipInputAdapterDirective implements OnDestroy, OnInit {
203
+ private readonly matChipInput &#x3D; inject(MatChipInput);
204
+ private readonly ngControl &#x3D; inject(NgControl);
205
+
249
206
  private _subscription?: Subscription;
250
207
 
251
- constructor(
252
- private readonly matChipInput: MatChipInput,
253
- private readonly ngControl: NgControl,
254
- ) {
208
+ constructor() {
255
209
  this.matChipInput.separatorKeyCodes &#x3D; [ ENTER, COMMA ] as const;
256
210
  this.matChipInput.addOnBlur &#x3D; true;
257
211
  }
@@ -179,90 +179,6 @@
179
179
  </table>
180
180
  </section>
181
181
 
182
- <section data-compodoc="block-constructor">
183
- <h3 id="constructor">Constructor</h3>
184
- <table class="table table-sm table-bordered">
185
- <tbody>
186
- <tr>
187
- <td class="col-md-4">
188
- <code>constructor(template: <a href="../interfaces/ChipListTemplateContext.html" target="_self">TemplateRef&lt;ChipListTemplateContext&gt;</a>, viewContainerRef: ViewContainerRef, ngControl: NgControl, differs: IterableDiffers)</code>
189
- </td>
190
- </tr>
191
- <tr>
192
- <td class="col-md-4">
193
- <div class="io-line">Defined in <a href="" data-line="47" class="link-to-prism">src/lib/chip-list-iterator.directive.ts:47</a></div>
194
- </td>
195
- </tr>
196
-
197
- <tr>
198
- <td class="col-md-4">
199
- <div>
200
- <b>Parameters :</b>
201
- <table class="params">
202
- <thead>
203
- <tr>
204
- <td>Name</td>
205
- <td>Type</td>
206
- <td>Optional</td>
207
- </tr>
208
- </thead>
209
- <tbody>
210
- <tr>
211
- <td>template</td>
212
-
213
- <td>
214
- <code><a href="../interfaces/ChipListTemplateContext.html" target="_self" >TemplateRef&lt;ChipListTemplateContext&gt;</a></code>
215
- </td>
216
-
217
- <td>
218
- No
219
- </td>
220
-
221
- </tr>
222
- <tr>
223
- <td>viewContainerRef</td>
224
-
225
- <td>
226
- <code>ViewContainerRef</code>
227
- </td>
228
-
229
- <td>
230
- No
231
- </td>
232
-
233
- </tr>
234
- <tr>
235
- <td>ngControl</td>
236
-
237
- <td>
238
- <code>NgControl</code>
239
- </td>
240
-
241
- <td>
242
- No
243
- </td>
244
-
245
- </tr>
246
- <tr>
247
- <td>differs</td>
248
-
249
- <td>
250
- <code>IterableDiffers</code>
251
- </td>
252
-
253
- <td>
254
- No
255
- </td>
256
-
257
- </tr>
258
- </tbody>
259
- </table>
260
- </div>
261
- </td>
262
- </tr>
263
- </tbody>
264
- </table>
265
- </section>
266
182
 
267
183
 
268
184
 
@@ -295,8 +211,8 @@
295
211
 
296
212
  <tr>
297
213
  <td class="col-md-4">
298
- <div class="io-line">Defined in <a href="" data-line="92"
299
- class="link-to-prism">src/lib/chip-list-iterator.directive.ts:92</a></div>
214
+ <div class="io-line">Defined in <a href="" data-line="78"
215
+ class="link-to-prism">src/lib/chip-list-iterator.directive.ts:78</a></div>
300
216
  </td>
301
217
  </tr>
302
218
 
@@ -349,18 +265,7 @@
349
265
 
350
266
 
351
267
  <div class="tab-pane fade tab-source-code" id="source">
352
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
353
- Directive,
354
- EmbeddedViewRef,
355
- IterableChangeRecord,
356
- IterableChanges,
357
- IterableDiffer,
358
- IterableDiffers,
359
- OnDestroy,
360
- OnInit,
361
- TemplateRef,
362
- ViewContainerRef,
363
- } from &#x27;@angular/core&#x27;;
268
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Directive, EmbeddedViewRef, IterableChangeRecord, IterableChanges, IterableDiffer, IterableDiffers, OnDestroy, OnInit, TemplateRef, ViewContainerRef, inject } from &#x27;@angular/core&#x27;;
364
269
  import { NgControl } from &#x27;@angular/forms&#x27;;
365
270
  import { MatChipEvent } from &#x27;@angular/material/chips&#x27;;
366
271
  import { Subscription } from &#x27;rxjs&#x27;;
@@ -392,19 +297,16 @@ class RecordViewTuple {
392
297
  standalone: true,
393
298
  })
394
299
  export class ChipListIteratorDirective implements OnInit, OnDestroy {
300
+ private readonly template &#x3D; inject&lt;TemplateRef&lt;ChipListTemplateContext&gt;&gt;(TemplateRef);
301
+ private readonly viewContainerRef &#x3D; inject(ViewContainerRef);
302
+ private readonly ngControl &#x3D; inject(NgControl);
303
+ private readonly differs &#x3D; inject(IterableDiffers);
304
+
395
305
  private _subscription?: Subscription;
396
306
 
397
307
  private _dirty &#x3D; true;
398
308
  private _differ: IterableDiffer&lt;string&gt; | null &#x3D; null;
399
309
 
400
- constructor(
401
- private readonly template: TemplateRef&lt;ChipListTemplateContext&gt;,
402
- private readonly viewContainerRef: ViewContainerRef,
403
- private readonly ngControl: NgControl,
404
- private readonly differs: IterableDiffers,
405
- ) {
406
- }
407
-
408
310
  public ngOnInit() {
409
311
  this._subscription &#x3D; this.ngControl.valueChanges
410
312
  ?.pipe(
@@ -153,18 +153,18 @@
153
153
  <h3 id="index">Index</h3>
154
154
  <table class="table table-sm table-bordered index-table">
155
155
  <tbody>
156
-
157
-
158
156
  <tr>
159
157
  <td class="col-md-4">
160
- <h6><b>Inputs</b></h6>
158
+ <h6><b>Properties</b></h6>
161
159
  </td>
162
160
  </tr>
163
161
  <tr>
164
162
  <td class="col-md-4">
165
163
  <ul class="index-list">
166
164
  <li>
167
- <a href="#rxapCompareWith" >rxapCompareWith</a>
165
+ <span class="modifier">Public</span>
166
+ <span class="modifier">Readonly</span>
167
+ <a href="#objectPath" >objectPath</a>
168
168
  </li>
169
169
  </ul>
170
170
  </td>
@@ -173,100 +173,58 @@
173
173
 
174
174
 
175
175
 
176
+
177
+
176
178
  </tbody>
177
179
  </table>
178
180
  </section>
179
181
 
180
- <section data-compodoc="block-constructor">
181
- <h3 id="constructor">Constructor</h3>
182
- <table class="table table-sm table-bordered">
183
- <tbody>
184
- <tr>
185
- <td class="col-md-4">
186
- <code>constructor(matSelect: MatSelect)</code>
187
- </td>
188
- </tr>
189
- <tr>
190
- <td class="col-md-4">
191
- <div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/lib/compare-with.directive.ts:20</a></div>
192
- </td>
193
- </tr>
194
182
 
195
- <tr>
196
- <td class="col-md-4">
197
- <div>
198
- <b>Parameters :</b>
199
- <table class="params">
200
- <thead>
201
- <tr>
202
- <td>Name</td>
203
- <td>Type</td>
204
- <td>Optional</td>
205
- </tr>
206
- </thead>
207
- <tbody>
208
- <tr>
209
- <td>matSelect</td>
210
-
211
- <td>
212
- <code>MatSelect</code>
213
- </td>
214
-
215
- <td>
216
- No
217
- </td>
218
-
219
- </tr>
220
- </tbody>
221
- </table>
222
- </div>
223
- </td>
224
- </tr>
225
- </tbody>
226
- </table>
227
- </section>
228
183
 
229
- <section data-compodoc="block-inputs">
230
- <h3 id="inputs">Inputs</h3>
231
- <table class="table table-sm table-bordered">
232
- <tbody>
233
- <tr>
234
- <td class="col-md-4">
235
- <a name="rxapCompareWith"></a>
236
- <b>rxapCompareWith</b>
237
- </td>
238
- </tr>
184
+
185
+
186
+
187
+
188
+ <section data-compodoc="block-properties">
189
+
190
+ <h3 id="inputs">
191
+ Properties
192
+ </h3>
193
+ <table class="table table-sm table-bordered">
194
+ <tbody>
195
+ <tr>
196
+ <td class="col-md-4">
197
+ <a name="objectPath"></a>
198
+ <span class="name">
199
+ <span class="modifier">Public</span>
200
+ <span class="modifier">Readonly</span>
201
+ <span ><b>objectPath</b></span>
202
+ <a href="#objectPath"><span class="icon ion-ios-link"></span></a>
203
+ </span>
204
+ </td>
205
+ </tr>
239
206
  <tr>
240
207
  <td class="col-md-4">
241
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
242
-
208
+ <i>Default value : </i><code>input.required&lt;string&gt;({ alias: &quot;rxapCompareWith&quot; })</code>
243
209
  </td>
244
210
  </tr>
245
- <tr>
246
- <td class="col-md-2" colspan="2">
247
- <div class="io-line">Defined in <a href="" data-line="20" class="link-to-prism">src/lib/compare-with.directive.ts:20</a></div>
248
- </td>
249
- </tr>
250
- </tbody>
251
- </table>
252
- </section>
253
-
254
-
211
+ <tr>
212
+ <td class="col-md-4">
213
+ <div class="io-line">Defined in <a href="" data-line="15" class="link-to-prism">src/lib/compare-with.directive.ts:15</a></div>
214
+ </td>
215
+ </tr>
255
216
 
256
217
 
218
+ </tbody>
219
+ </table>
220
+ </section>
257
221
 
258
222
 
259
223
  </div>
260
224
 
261
225
 
262
226
  <div class="tab-pane fade tab-source-code" id="source">
263
- <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
264
- Directive,
265
- Inject,
266
- Input,
267
- isDevMode,
268
- OnInit,
269
- } from &#x27;@angular/core&#x27;;
227
+ <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Directive, isDevMode, OnInit, input, inject } from &#x27;@angular/core&#x27;;
270
228
  import { MatSelect } from &#x27;@angular/material/select&#x27;;
271
229
  import {
272
230
  equals,
@@ -278,21 +236,17 @@ import {
278
236
  standalone: true,
279
237
  })
280
238
  export class CompareWithDirective implements OnInit {
281
- @Input(&#x27;rxapCompareWith&#x27;)
282
- public objectPath!: string;
239
+ private readonly matSelect &#x3D; inject&lt;MatSelect&gt;(MatSelect);
283
240
 
284
- constructor(
285
- @Inject(MatSelect)
286
- private readonly matSelect: MatSelect,
287
- ) {
288
- }
241
+ public readonly objectPath &#x3D; input.required&lt;string&gt;({ alias: &quot;rxapCompareWith&quot; });
289
242
 
290
243
  public ngOnInit() {
291
244
  this.matSelect.compareWith &#x3D; this.compareWith.bind(this);
292
245
  }
293
246
 
294
247
  private compareWith(o1: any, o2: any): boolean {
295
- if (this.objectPath) {
248
+ const objectPath &#x3D; this.objectPath();
249
+ if (objectPath) {
296
250
  if (typeof o1 !&#x3D;&#x3D; &#x27;object&#x27; || typeof o2 !&#x3D;&#x3D; &#x27;object&#x27;) {
297
251
  if (isDevMode()) {
298
252
  console.warn(
@@ -309,8 +263,8 @@ export class CompareWithDirective implements OnInit {
309
263
  }
310
264
  return false;
311
265
  }
312
- const o1Value &#x3D; getFromObject(o1, this.objectPath);
313
- const o2Value &#x3D; getFromObject(o2, this.objectPath);
266
+ const o1Value &#x3D; getFromObject(o1, objectPath);
267
+ const o2Value &#x3D; getFromObject(o2, objectPath);
314
268
  if (o1Value &#x3D;&#x3D;&#x3D; undefined || o2Value &#x3D;&#x3D;&#x3D; undefined) {
315
269
  return false;
316
270
  }