@rxap/material-form-system 21.0.1 → 22.0.0-dev.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 (111) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/compodoc/architecture.html +222 -0
  3. package/compodoc/changelog.html +70 -5
  4. package/compodoc/classes/ExtractHideShowMixin.html +95 -21
  5. package/compodoc/classes/RecordViewTuple.html +71 -18
  6. package/compodoc/components/FormControlsComponent.html +269 -165
  7. package/compodoc/dependencies.html +124 -35
  8. package/compodoc/directives/ChipInputAdapterDirective.html +83 -13
  9. package/compodoc/directives/ChipListIteratorDirective.html +98 -23
  10. package/compodoc/directives/CompareWithDirective.html +142 -57
  11. package/compodoc/directives/ControlErrorDirective.html +163 -56
  12. package/compodoc/directives/ControlErrorsDirective.html +120 -26
  13. package/compodoc/directives/FormFieldHideShowDirective.html +122 -33
  14. package/compodoc/directives/InputClearButtonDirective.html +125 -47
  15. package/compodoc/directives/RequiredDirective.html +98 -20
  16. package/compodoc/index.html +46 -5
  17. package/compodoc/interfaces/ChipListTemplateContext.html +155 -95
  18. package/compodoc/interfaces/ControlErrorDirectiveContext.html +149 -94
  19. package/compodoc/interfaces/ControlErrorsDirectiveContext.html +149 -94
  20. package/compodoc/js/architecture-graph.js +288 -0
  21. package/compodoc/js/libs/bootstrap-native.js +4 -2
  22. package/compodoc/js/libs/jszip.min.js +13 -0
  23. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  24. package/compodoc/js/libs/tablesort.min.js +3 -3
  25. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  26. package/compodoc/js/libs/vis-network.min.js +78 -0
  27. package/compodoc/js/menu-wc.js +25 -12
  28. package/compodoc/js/menu.js +10 -11
  29. package/compodoc/js/routes/routes_index.js +1 -0
  30. package/compodoc/js/routes.js +142 -34
  31. package/compodoc/js/search/search-lunr.js +6 -8
  32. package/compodoc/js/search/search.js +118 -66
  33. package/compodoc/js/search/search_index.js +2 -2
  34. package/compodoc/js/tabs.js +98 -15
  35. package/compodoc/js/tree.js +44 -7
  36. package/compodoc/license.html +48 -6
  37. package/compodoc/llms.txt +196 -0
  38. package/compodoc/miscellaneous/functions.html +51 -8
  39. package/compodoc/miscellaneous/variables.html +148 -5
  40. package/compodoc/modules.html +44 -3
  41. package/compodoc/overview.html +54 -3
  42. package/compodoc/properties.html +45 -4
  43. package/compodoc/routes.html +227 -0
  44. package/compodoc/styles/compodoc.css +365 -44
  45. package/compodoc/styles/dark.css +16 -0
  46. package/compodoc/template-playground/default-templates.json +192 -0
  47. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  48. package/compodoc/template-playground/main.ts +9 -0
  49. package/compodoc/template-playground/template-editor.service.ts +173 -0
  50. package/compodoc/template-playground/template-playground.component.ts +614 -0
  51. package/compodoc/template-playground/template-playground.module.ts +29 -0
  52. package/compodoc/template-playground/zip-export.service.ts +86 -0
  53. package/compodoc/template-playground-app/app.js +1389 -0
  54. package/compodoc/template-playground-app/index.html +462 -0
  55. package/docs/documentation.json +944 -739
  56. package/docs/html/assets/hierarchy.js +1 -1
  57. package/docs/html/assets/highlight.css +1 -1
  58. package/docs/html/assets/icons.js +1 -1
  59. package/docs/html/assets/icons.svg +1 -1
  60. package/docs/html/assets/main.js +5 -5
  61. package/docs/html/assets/search.js +1 -1
  62. package/docs/html/assets/style.css +265 -228
  63. package/docs/html/classes/ChipInputAdapterDirective.html +97 -6
  64. package/docs/html/classes/ChipListIteratorDirective.html +109 -7
  65. package/docs/html/classes/CompareWithDirective.html +95 -5
  66. package/docs/html/classes/ControlErrorDirective.html +160 -12
  67. package/docs/html/classes/ControlErrorsDirective.html +154 -11
  68. package/docs/html/classes/ExtractHideShowMixin.html +141 -8
  69. package/docs/html/classes/FormControlsComponent.html +183 -15
  70. package/docs/html/classes/FormFieldHideShowDirective.html +210 -15
  71. package/docs/html/classes/InputClearButtonDirective.html +122 -7
  72. package/docs/html/classes/RequiredDirective.html +81 -4
  73. package/docs/html/hierarchy.html +33 -1
  74. package/docs/html/index.html +40 -4
  75. package/docs/html/interfaces/ChipListTemplateContext.html +61 -3
  76. package/docs/html/interfaces/ControlErrorDirectiveContext.html +61 -3
  77. package/docs/html/interfaces/ControlErrorsDirectiveContext.html +61 -3
  78. package/docs/html/modules.html +40 -1
  79. package/docs/markdown/README.md +1 -1
  80. package/docs/markdown/classes/ChipInputAdapterDirective.md +8 -8
  81. package/docs/markdown/classes/ChipListIteratorDirective.md +8 -8
  82. package/docs/markdown/classes/CompareWithDirective.md +7 -7
  83. package/docs/markdown/classes/ControlErrorDirective.md +18 -16
  84. package/docs/markdown/classes/ControlErrorsDirective.md +17 -15
  85. package/docs/markdown/classes/ExtractHideShowMixin.md +23 -23
  86. package/docs/markdown/classes/FormControlsComponent.md +22 -20
  87. package/docs/markdown/classes/FormFieldHideShowDirective.md +31 -28
  88. package/docs/markdown/classes/InputClearButtonDirective.md +12 -12
  89. package/docs/markdown/classes/RequiredDirective.md +6 -6
  90. package/docs/markdown/globals.md +2 -2
  91. package/docs/markdown/interfaces/ChipListTemplateContext.md +5 -5
  92. package/docs/markdown/interfaces/ControlErrorDirectiveContext.md +4 -4
  93. package/docs/markdown/interfaces/ControlErrorsDirectiveContext.md +4 -4
  94. package/docs/wiki/Class.ChipInputAdapterDirective.md +7 -7
  95. package/docs/wiki/Class.ChipListIteratorDirective.md +7 -7
  96. package/docs/wiki/Class.CompareWithDirective.md +6 -6
  97. package/docs/wiki/Class.ControlErrorDirective.md +17 -15
  98. package/docs/wiki/Class.ControlErrorsDirective.md +16 -14
  99. package/docs/wiki/Class.ExtractHideShowMixin.md +22 -22
  100. package/docs/wiki/Class.FormControlsComponent.md +21 -19
  101. package/docs/wiki/Class.FormFieldHideShowDirective.md +30 -27
  102. package/docs/wiki/Class.InputClearButtonDirective.md +11 -11
  103. package/docs/wiki/Class.RequiredDirective.md +5 -5
  104. package/docs/wiki/Interface.ChipListTemplateContext.md +4 -4
  105. package/docs/wiki/Interface.ControlErrorDirectiveContext.md +3 -3
  106. package/docs/wiki/Interface.ControlErrorsDirectiveContext.md +3 -3
  107. package/docs/wiki/globals.md +1 -1
  108. package/fesm2022/rxap-material-form-system.mjs +544 -265
  109. package/fesm2022/rxap-material-form-system.mjs.map +1 -1
  110. package/package.json +39 -39
  111. package/types/rxap-material-form-system.d.ts +165 -148
@@ -61,6 +61,20 @@
61
61
  }
62
62
  toggleDarkMode(darkModeState);
63
63
  </script>
64
+ <script>
65
+ // --- Iframe navigation tracking for Template Playground ---
66
+ function sendCurrentUrlToParent() {
67
+ if (window.parent && window.parent !== window) {
68
+ window.parent.postMessage({
69
+ type: 'compodoc-iframe-navigate',
70
+ url: window.location.pathname + window.location.hash
71
+ }, '*');
72
+ }
73
+ }
74
+ window.addEventListener('hashchange', sendCurrentUrlToParent, false);
75
+ window.addEventListener('popstate', sendCurrentUrlToParent, false);
76
+ window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
77
+ </script>
64
78
 
65
79
  <div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
66
80
  <div class="d-flex">
@@ -70,7 +84,14 @@
70
84
  </div>
71
85
 
72
86
  <div class="xs-menu menu" id="mobile-menu">
73
- <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
87
+ <div id="book-search-input" role="search">
88
+ <input type="text" placeholder="Type to search">
89
+ <button type="button"
90
+ class="search-input-clear"
91
+ aria-label="Clear search"
92
+ data-search-input-clear>&times;</button>
93
+ </div>
94
+ <compodoc-menu></compodoc-menu>
74
95
  </div>
75
96
 
76
97
  <div class="container-fluid main">
@@ -88,11 +109,20 @@
88
109
 
89
110
 
90
111
 
112
+
113
+
114
+
115
+
91
116
  <ol class="breadcrumb">
92
117
  <li class="breadcrumb-item">Directives</li>
93
118
  <li class="breadcrumb-item" >InputClearButtonDirective</li>
94
119
  </ol>
95
120
 
121
+ <div class="io-file io-file-path" data-compodoc="entity-file-path">
122
+ <span class="icon ion-ios-document" aria-hidden="true"></span>
123
+ <code>src/lib/input-clear-button.directive.ts</code>
124
+ </div>
125
+
96
126
  <ul class="nav nav-tabs" role="tablist">
97
127
  <li class="nav-item">
98
128
  <a href="#info"
@@ -100,6 +130,12 @@
100
130
  class="nav-link active"
101
131
  role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
102
132
  </li>
133
+ <li class="nav-item">
134
+ <a href="#api"
135
+ class="nav-link"
136
+
137
+ role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
138
+ </li>
103
139
  <li class="nav-item">
104
140
  <a href="#source"
105
141
  class="nav-link"
@@ -110,13 +146,6 @@
110
146
 
111
147
  <div class="tab-content">
112
148
  <div class="tab-pane fade active in" id="info">
113
- <p class="comment">
114
- <h3>File</h3>
115
- </p>
116
- <p class="comment">
117
- <code>src/lib/input-clear-button.directive.ts</code>
118
- </p>
119
-
120
149
 
121
150
 
122
151
 
@@ -143,69 +172,80 @@
143
172
  </table>
144
173
  </section>
145
174
 
175
+
176
+ </div>
177
+
178
+ <div class="tab-pane fade " id="api">
146
179
  <section data-compodoc="block-index">
147
180
  <h3 id="index">Index</h3>
148
- <table class="table table-sm table-bordered index-table">
149
- <tbody>
181
+ <table class="table table-sm table-bordered index-table">
182
+ <tbody>
150
183
  <tr>
151
- <td class="col-md-4">
184
+ <td class="col-md-3">
152
185
  <h6><b>Properties</b></h6>
153
186
  </td>
154
- </tr>
155
- <tr>
156
- <td class="col-md-4">
187
+ <td class="col-md-9">
157
188
  <ul class="index-list">
158
189
  <li>
190
+ <span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
159
191
  <span class="modifier">Public</span>
160
192
  <a href="#tabIndex" >tabIndex</a>
161
193
  </li>
162
194
  <li>
195
+ <span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
163
196
  <span class="modifier">Public</span>
164
197
  <a href="#type" >type</a>
165
198
  </li>
166
199
  </ul>
167
200
  </td>
168
201
  </tr>
202
+ </tbody>
203
+ </table>
169
204
 
205
+ <table class="table table-sm table-bordered index-table">
206
+ <tbody>
170
207
  <tr>
171
- <td class="col-md-4">
208
+ <td class="col-md-3">
172
209
  <h6><b>Methods</b></h6>
173
210
  </td>
174
- </tr>
175
- <tr>
176
- <td class="col-md-4">
211
+ <td class="col-md-9">
177
212
  <ul class="index-list">
178
213
  <li>
214
+ <span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
179
215
  <span class="modifier">Public</span>
180
216
  <a href="#onClick" >onClick</a>
181
217
  </li>
182
218
  </ul>
183
219
  </td>
184
220
  </tr>
221
+ </tbody>
222
+ </table>
185
223
 
186
224
 
187
225
 
188
226
 
189
227
 
190
- <tr>
191
- <td class="col-md-4">
192
- <h6><b>Accessors</b></h6>
193
- </td>
194
- </tr>
195
- <tr>
196
- <td class="col-md-4">
197
- <ul class="index-list">
198
- <li>
199
- <a href="#control" >control</a>
200
- </li>
201
- <li>
202
- <a href="#isDisabled" >isDisabled</a>
203
- </li>
204
- </ul>
205
- </td>
206
- </tr>
207
- </tbody>
208
- </table>
228
+ <table class="table table-sm table-bordered index-table">
229
+ <tbody>
230
+ <tr>
231
+ <td class="col-md-3">
232
+ <h6><b>Accessors</b></h6>
233
+ </td>
234
+ <td class="col-md-9">
235
+ <ul class="index-list">
236
+ <li>
237
+ <span class="reference-badge reference-badge--accessor" aria-hidden="true">A</span>
238
+ <a href="#control" >control</a>
239
+ </li>
240
+ <li>
241
+ <span class="reference-badge reference-badge--accessor" aria-hidden="true">A</span>
242
+ <a href="#isDisabled" >isDisabled</a>
243
+ </li>
244
+ </ul>
245
+ </td>
246
+ </tr>
247
+ </tbody>
248
+ </table>
209
249
  </section>
210
250
 
211
251
 
@@ -240,8 +280,8 @@
240
280
 
241
281
  <tr>
242
282
  <td class="col-md-4">
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>
283
+ <div class="io-line">Defined in <a href="" data-line="56"
284
+ class="link-to-prism">src/lib/input-clear-button.directive.ts:56</a></div>
245
285
  </td>
246
286
  </tr>
247
287
 
@@ -258,6 +298,7 @@
258
298
  </tbody>
259
299
  </table>
260
300
  </section>
301
+
261
302
  <section data-compodoc="block-properties">
262
303
 
263
304
  <h3 id="inputs">
@@ -288,7 +329,7 @@
288
329
  </tr>
289
330
  <tr>
290
331
  <td class="col-md-4">
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>
332
+ <div class="io-line">Defined in <a href="" data-line="46" class="link-to-prism">src/lib/input-clear-button.directive.ts:46</a></div>
292
333
  </td>
293
334
  </tr>
294
335
 
@@ -320,7 +361,7 @@
320
361
  </tr>
321
362
  <tr>
322
363
  <td class="col-md-4">
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>
364
+ <div class="io-line">Defined in <a href="" data-line="44" class="link-to-prism">src/lib/input-clear-button.directive.ts:44</a></div>
324
365
  </td>
325
366
  </tr>
326
367
 
@@ -349,7 +390,7 @@
349
390
  </tr>
350
391
  <tr>
351
392
  <td class="col-md-4">
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>
393
+ <div class="io-line">Defined in <a href="" data-line="48" class="link-to-prism">src/lib/input-clear-button.directive.ts:48</a></div>
353
394
  </td>
354
395
  </tr>
355
396
 
@@ -371,14 +412,13 @@
371
412
  </tr>
372
413
  <tr>
373
414
  <td class="col-md-4">
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>
415
+ <div class="io-line">Defined in <a href="" data-line="52" class="link-to-prism">src/lib/input-clear-button.directive.ts:52</a></div>
375
416
  </td>
376
417
  </tr>
377
418
 
378
419
  </tbody>
379
420
  </table>
380
421
  </section>
381
-
382
422
  </div>
383
423
 
384
424
 
@@ -389,7 +429,29 @@ import {
389
429
  MatFormField,
390
430
  MatFormFieldControl,
391
431
  } from &#x27;@angular/material/form-field&#x27;;
392
-
432
+ import { Showcase } from &#x27;@ng-prism/core&#x27;;
433
+
434
+ const PRISM_FORM_STYLE &#x3D; &#x27;display: flex; flex-direction: column; gap: 8px; min-width: 280px&#x27;;
435
+
436
+ @Showcase&lt;InputClearButtonDirective&gt;({
437
+ title: &#x27;Input Clear Button&#x27;,
438
+ category: &#x27;Material Form System&#x27;,
439
+ description: &#x27;A button that resets the value of the control of the form field to null.&#x27;,
440
+ status: &#x27;stable&#x27;,
441
+ imports: [
442
+ { name: &#x27;ReactiveFormsModule&#x27;, from: &#x27;@angular/forms&#x27; },
443
+ { name: &#x27;FormDirective&#x27;, from: &#x27;@rxap/forms&#x27; },
444
+ { name: &#x27;MatFormFieldModule&#x27;, from: &#x27;@angular/material/form-field&#x27; },
445
+ { name: &#x27;MatInputModule&#x27;, from: &#x27;@angular/material/input&#x27; },
446
+ { name: &#x27;MatButtonModule&#x27;, from: &#x27;@angular/material/button&#x27; },
447
+ ],
448
+ host: {
449
+ template: &#x60;&lt;form rxapForm style&#x3D;&quot;${ PRISM_FORM_STYLE }&quot;&gt;&lt;mat-form-field&gt;&lt;mat-label&gt;Name&lt;/mat-label&gt;&lt;input matInput formControlName&#x3D;&quot;name&quot; /&gt;&lt;button matSuffix mat-icon-button rxapInputClearButton aria-label&#x3D;&quot;Clear&quot;&gt;&amp;times;&lt;/button&gt;&lt;/mat-form-field&gt;&lt;/form&gt;&#x60;,
450
+ },
451
+ variants: [
452
+ { name: &#x27;Default&#x27; },
453
+ ],
454
+ })
393
455
  @Directive({
394
456
  selector: &#x27;[rxapInputClearButton]&#x27;,
395
457
  standalone: true,
@@ -483,6 +545,24 @@ export class InputClearButtonDirective {
483
545
 
484
546
  <script>
485
547
  $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
548
+ var updateDarkModeSwitchOffset = function () {
549
+ var content = document.querySelector('.content');
550
+ var scrollbarWidth = 0;
551
+
552
+ if (content) {
553
+ scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
554
+ }
555
+
556
+ document.documentElement.style.setProperty(
557
+ '--content-scrollbar-width',
558
+ scrollbarWidth + 'px'
559
+ );
560
+ };
561
+
562
+ updateDarkModeSwitchOffset();
563
+ requestAnimationFrame(updateDarkModeSwitchOffset);
564
+ window.addEventListener('resize', updateDarkModeSwitchOffset);
565
+
486
566
  checkToggle(darkModeState);
487
567
  if ($darkModeToggleSwitchers.length > 0) {
488
568
  for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
@@ -498,14 +578,12 @@ export class InputClearButtonDirective {
498
578
  <script src="../js/libs/lit-html.js"></script>
499
579
 
500
580
  <script src="../js/menu-wc.js" defer></script>
501
- <script nomodule src="../js/menu-wc_es5.js" defer></script>
502
581
 
503
582
  <script src="../js/libs/bootstrap-native.js"></script>
504
583
 
505
584
  <script src="../js/libs/es6-shim.min.js"></script>
506
585
  <script src="../js/libs/EventDispatcher.js"></script>
507
586
  <script src="../js/libs/promise.min.js"></script>
508
- <script src="../js/libs/zepto.min.js"></script>
509
587
 
510
588
  <script src="../js/compodoc.js"></script>
511
589
 
@@ -61,6 +61,20 @@
61
61
  }
62
62
  toggleDarkMode(darkModeState);
63
63
  </script>
64
+ <script>
65
+ // --- Iframe navigation tracking for Template Playground ---
66
+ function sendCurrentUrlToParent() {
67
+ if (window.parent && window.parent !== window) {
68
+ window.parent.postMessage({
69
+ type: 'compodoc-iframe-navigate',
70
+ url: window.location.pathname + window.location.hash
71
+ }, '*');
72
+ }
73
+ }
74
+ window.addEventListener('hashchange', sendCurrentUrlToParent, false);
75
+ window.addEventListener('popstate', sendCurrentUrlToParent, false);
76
+ window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
77
+ </script>
64
78
 
65
79
  <div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
66
80
  <div class="d-flex">
@@ -70,7 +84,14 @@
70
84
  </div>
71
85
 
72
86
  <div class="xs-menu menu" id="mobile-menu">
73
- <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
87
+ <div id="book-search-input" role="search">
88
+ <input type="text" placeholder="Type to search">
89
+ <button type="button"
90
+ class="search-input-clear"
91
+ aria-label="Clear search"
92
+ data-search-input-clear>&times;</button>
93
+ </div>
94
+ <compodoc-menu></compodoc-menu>
74
95
  </div>
75
96
 
76
97
  <div class="container-fluid main">
@@ -88,11 +109,20 @@
88
109
 
89
110
 
90
111
 
112
+
113
+
114
+
115
+
91
116
  <ol class="breadcrumb">
92
117
  <li class="breadcrumb-item">Directives</li>
93
118
  <li class="breadcrumb-item" >RequiredDirective</li>
94
119
  </ol>
95
120
 
121
+ <div class="io-file io-file-path" data-compodoc="entity-file-path">
122
+ <span class="icon ion-ios-document" aria-hidden="true"></span>
123
+ <code>src/lib/required.directive.ts</code>
124
+ </div>
125
+
96
126
  <ul class="nav nav-tabs" role="tablist">
97
127
  <li class="nav-item">
98
128
  <a href="#info"
@@ -110,13 +140,6 @@
110
140
 
111
141
  <div class="tab-content">
112
142
  <div class="tab-pane fade active in" id="info">
113
- <p class="comment">
114
- <h3>File</h3>
115
- </p>
116
- <p class="comment">
117
- <code>src/lib/required.directive.ts</code>
118
- </p>
119
-
120
143
 
121
144
 
122
145
 
@@ -124,7 +147,7 @@
124
147
  <h3>Implements</h3>
125
148
  </p>
126
149
  <p class="comment">
127
- <code>AfterContentInit</code>
150
+ <code><a href="https://angular.dev/api/core/AfterContentInit" target="_blank" >AfterContentInit</a></code>
128
151
  </p>
129
152
 
130
153
 
@@ -149,25 +172,64 @@
149
172
  </table>
150
173
  </section>
151
174
 
152
-
153
-
154
-
155
-
156
-
157
-
158
-
159
-
175
+ <section data-compodoc="block-relationships">
176
+ <h3>Relationships</h3>
177
+
178
+ <div class="row pt-3">
179
+ <div class="col-sm-6">
180
+ <h4>Used by</h4>
181
+ <p class="comment"><i>No results matching.</i></p>
182
+ </div>
183
+
184
+ <div class="col-sm-6">
185
+ <h4>Depends on</h4>
186
+ <ul class="list-unstyled relationships-list">
187
+ <li>
188
+ <code><a href="https://angular.dev/api/core/AfterContentInit" target="_blank" >AfterContentInit</a></code>
189
+ </li>
190
+ </ul>
191
+ </div>
192
+ </div>
193
+ </section>
160
194
 
161
195
  </div>
162
196
 
163
197
 
198
+
164
199
  <div class="tab-pane fade tab-source-code" id="source">
165
200
  <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { AfterContentInit, Directive, inject } from &#x27;@angular/core&#x27;;
166
201
  import {
167
202
  MAT_FORM_FIELD,
168
203
  MatFormField,
169
204
  } from &#x27;@angular/material/form-field&#x27;;
170
-
205
+ import { Showcase } from &#x27;@ng-prism/core&#x27;;
206
+
207
+ const PRISM_FORM_STYLE &#x3D; &#x27;display: flex; flex-direction: column; gap: 8px; min-width: 280px&#x27;;
208
+
209
+ @Showcase&lt;RequiredDirective&gt;({
210
+ title: &#x27;Required&#x27;,
211
+ category: &#x27;Material Form System&#x27;,
212
+ description: &#x27;Marks the form field as required if the control of the input has a required validator.&#x27;,
213
+ status: &#x27;stable&#x27;,
214
+ imports: [
215
+ { name: &#x27;ReactiveFormsModule&#x27;, from: &#x27;@angular/forms&#x27; },
216
+ { name: &#x27;FormDirective&#x27;, from: &#x27;@rxap/forms&#x27; },
217
+ { name: &#x27;MatFormFieldModule&#x27;, from: &#x27;@angular/material/form-field&#x27; },
218
+ { name: &#x27;MatInputModule&#x27;, from: &#x27;@angular/material/input&#x27; },
219
+ ],
220
+ variants: [
221
+ {
222
+ name: &#x27;Required control&#x27;,
223
+ description: &#x27;The control has a required validator, so the form field shows the required marker.&#x27;,
224
+ host: { template: &#x60;&lt;form rxapForm style&#x3D;&quot;${ PRISM_FORM_STYLE }&quot;&gt;&lt;mat-form-field&gt;&lt;mat-label&gt;Name&lt;/mat-label&gt;&lt;input matInput formControlName&#x3D;&quot;name&quot; rxapRequired /&gt;&lt;/mat-form-field&gt;&lt;/form&gt;&#x60; },
225
+ },
226
+ {
227
+ name: &#x27;With error message&#x27;,
228
+ description: &#x27;Clear the field and leave it to show the error message rendered by the control error directive.&#x27;,
229
+ host: { template: &#x60;&lt;form rxapForm style&#x3D;&quot;${ PRISM_FORM_STYLE }&quot;&gt;&lt;mat-form-field&gt;&lt;mat-label&gt;Email&lt;/mat-label&gt;&lt;input matInput formControlName&#x3D;&quot;email&quot; rxapRequired /&gt;&lt;mat-error *rxapControlError&#x3D;&quot;let error; key: &#x27;required&#x27;&quot;&gt;The email is required&lt;/mat-error&gt;&lt;/mat-form-field&gt;&lt;/form&gt;&#x60; },
230
+ },
231
+ ],
232
+ })
171
233
  @Directive({
172
234
  selector: &#x27;[formControlName][rxapRequired],[formControl][rxapRequired]&#x27;,
173
235
  standalone: true,
@@ -241,6 +303,24 @@ export class RequiredDirective implements AfterContentInit {
241
303
 
242
304
  <script>
243
305
  $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
306
+ var updateDarkModeSwitchOffset = function () {
307
+ var content = document.querySelector('.content');
308
+ var scrollbarWidth = 0;
309
+
310
+ if (content) {
311
+ scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
312
+ }
313
+
314
+ document.documentElement.style.setProperty(
315
+ '--content-scrollbar-width',
316
+ scrollbarWidth + 'px'
317
+ );
318
+ };
319
+
320
+ updateDarkModeSwitchOffset();
321
+ requestAnimationFrame(updateDarkModeSwitchOffset);
322
+ window.addEventListener('resize', updateDarkModeSwitchOffset);
323
+
244
324
  checkToggle(darkModeState);
245
325
  if ($darkModeToggleSwitchers.length > 0) {
246
326
  for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
@@ -256,14 +336,12 @@ export class RequiredDirective implements AfterContentInit {
256
336
  <script src="../js/libs/lit-html.js"></script>
257
337
 
258
338
  <script src="../js/menu-wc.js" defer></script>
259
- <script nomodule src="../js/menu-wc_es5.js" defer></script>
260
339
 
261
340
  <script src="../js/libs/bootstrap-native.js"></script>
262
341
 
263
342
  <script src="../js/libs/es6-shim.min.js"></script>
264
343
  <script src="../js/libs/EventDispatcher.js"></script>
265
344
  <script src="../js/libs/promise.min.js"></script>
266
- <script src="../js/libs/zepto.min.js"></script>
267
345
 
268
346
  <script src="../js/compodoc.js"></script>
269
347
 
@@ -61,6 +61,20 @@
61
61
  }
62
62
  toggleDarkMode(darkModeState);
63
63
  </script>
64
+ <script>
65
+ // --- Iframe navigation tracking for Template Playground ---
66
+ function sendCurrentUrlToParent() {
67
+ if (window.parent && window.parent !== window) {
68
+ window.parent.postMessage({
69
+ type: 'compodoc-iframe-navigate',
70
+ url: window.location.pathname + window.location.hash
71
+ }, '*');
72
+ }
73
+ }
74
+ window.addEventListener('hashchange', sendCurrentUrlToParent, false);
75
+ window.addEventListener('popstate', sendCurrentUrlToParent, false);
76
+ window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
77
+ </script>
64
78
 
65
79
  <div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
66
80
  <div class="d-flex">
@@ -70,7 +84,14 @@
70
84
  </div>
71
85
 
72
86
  <div class="xs-menu menu" id="mobile-menu">
73
- <div id="book-search-input" role="search"><input type="text" placeholder="Type to search"></div> <compodoc-menu></compodoc-menu>
87
+ <div id="book-search-input" role="search">
88
+ <input type="text" placeholder="Type to search">
89
+ <button type="button"
90
+ class="search-input-clear"
91
+ aria-label="Clear search"
92
+ data-search-input-clear>&times;</button>
93
+ </div>
94
+ <compodoc-menu></compodoc-menu>
74
95
  </div>
75
96
 
76
97
  <div class="container-fluid main">
@@ -79,9 +100,10 @@
79
100
  <compodoc-menu mode="normal"></compodoc-menu>
80
101
  </div>
81
102
  <!-- START CONTENT -->
82
- <div class="content getting-started">
103
+ <div class="content readme">
83
104
  <div class="content-data">
84
105
 
106
+
85
107
  <p>Provides directives and a module to enhance Angular Material forms. It includes features such as displaying control errors, clearing input fields, handling required fields, and managing form field visibility based on defined conditions. The package also offers a form controls component with built-in reset, cancel, and submit functionalities.</p>
86
108
  <p><a href="https://www.npmjs.com/package/@rxap/material-form-system"><img src="https://img.shields.io/npm/v/@rxap/material-form-system?style=flat-square" alt="npm version" class="img-responsive"></a>
87
109
  <a href="https://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square" alt="commitizen friendly" class="img-responsive"></a>
@@ -123,6 +145,9 @@
123
145
 
124
146
 
125
147
 
148
+
149
+
150
+
126
151
 
127
152
 
128
153
 
@@ -151,13 +176,31 @@
151
176
 
152
177
  <script>
153
178
  var COMPODOC_CURRENT_PAGE_DEPTH = 0;
154
- var COMPODOC_CURRENT_PAGE_CONTEXT = 'getting-started';
179
+ var COMPODOC_CURRENT_PAGE_CONTEXT = 'readme';
155
180
  var COMPODOC_CURRENT_PAGE_URL = 'index.html';
156
181
  var MAX_SEARCH_RESULTS = 15;
157
182
  </script>
158
183
 
159
184
  <script>
160
185
  $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
186
+ var updateDarkModeSwitchOffset = function () {
187
+ var content = document.querySelector('.content');
188
+ var scrollbarWidth = 0;
189
+
190
+ if (content) {
191
+ scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
192
+ }
193
+
194
+ document.documentElement.style.setProperty(
195
+ '--content-scrollbar-width',
196
+ scrollbarWidth + 'px'
197
+ );
198
+ };
199
+
200
+ updateDarkModeSwitchOffset();
201
+ requestAnimationFrame(updateDarkModeSwitchOffset);
202
+ window.addEventListener('resize', updateDarkModeSwitchOffset);
203
+
161
204
  checkToggle(darkModeState);
162
205
  if ($darkModeToggleSwitchers.length > 0) {
163
206
  for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
@@ -173,14 +216,12 @@
173
216
  <script src="./js/libs/lit-html.js"></script>
174
217
 
175
218
  <script src="./js/menu-wc.js" defer></script>
176
- <script nomodule src="./js/menu-wc_es5.js" defer></script>
177
219
 
178
220
  <script src="./js/libs/bootstrap-native.js"></script>
179
221
 
180
222
  <script src="./js/libs/es6-shim.min.js"></script>
181
223
  <script src="./js/libs/EventDispatcher.js"></script>
182
224
  <script src="./js/libs/promise.min.js"></script>
183
- <script src="./js/libs/zepto.min.js"></script>
184
225
 
185
226
  <script src="./js/compodoc.js"></script>
186
227