@rxap/material-form-system 22.0.0-dev.0 → 22.0.0-dev.2

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 (123) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +5 -3
  3. package/compodoc/architecture.html +222 -0
  4. package/compodoc/changelog.html +83 -5
  5. package/compodoc/classes/ExtractHideShowMixin.html +95 -21
  6. package/compodoc/classes/RecordViewTuple.html +71 -18
  7. package/compodoc/components/FormControlsComponent.html +269 -165
  8. package/compodoc/dependencies.html +124 -35
  9. package/compodoc/directives/ChipInputAdapterDirective.html +83 -13
  10. package/compodoc/directives/ChipListIteratorDirective.html +98 -23
  11. package/compodoc/directives/CompareWithDirective.html +142 -57
  12. package/compodoc/directives/ControlErrorDirective.html +163 -56
  13. package/compodoc/directives/ControlErrorsDirective.html +120 -26
  14. package/compodoc/directives/FormFieldHideShowDirective.html +122 -33
  15. package/compodoc/directives/InputClearButtonDirective.html +125 -47
  16. package/compodoc/directives/RequiredDirective.html +98 -20
  17. package/compodoc/index.html +50 -8
  18. package/compodoc/interfaces/ChipListTemplateContext.html +155 -95
  19. package/compodoc/interfaces/ControlErrorDirectiveContext.html +149 -94
  20. package/compodoc/interfaces/ControlErrorsDirectiveContext.html +149 -94
  21. package/compodoc/js/architecture-graph.js +288 -0
  22. package/compodoc/js/libs/bootstrap-native.js +4 -2
  23. package/compodoc/js/libs/jszip.min.js +13 -0
  24. package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
  25. package/compodoc/js/libs/tablesort.min.js +3 -3
  26. package/compodoc/js/libs/tablesort.number.min.js +3 -3
  27. package/compodoc/js/libs/vis-network.min.js +78 -0
  28. package/compodoc/js/menu-wc.js +25 -12
  29. package/compodoc/js/menu.js +10 -11
  30. package/compodoc/js/routes/routes_index.js +1 -0
  31. package/compodoc/js/routes.js +142 -34
  32. package/compodoc/js/search/search-lunr.js +6 -8
  33. package/compodoc/js/search/search.js +118 -66
  34. package/compodoc/js/search/search_index.js +2 -2
  35. package/compodoc/js/tabs.js +98 -15
  36. package/compodoc/js/tree.js +44 -7
  37. package/compodoc/license.html +48 -6
  38. package/compodoc/llms.txt +198 -0
  39. package/compodoc/miscellaneous/functions.html +132 -8
  40. package/compodoc/miscellaneous/variables.html +148 -5
  41. package/compodoc/modules.html +44 -3
  42. package/compodoc/overview.html +54 -3
  43. package/compodoc/properties.html +45 -4
  44. package/compodoc/routes.html +227 -0
  45. package/compodoc/styles/compodoc.css +365 -44
  46. package/compodoc/styles/dark.css +16 -0
  47. package/compodoc/template-playground/default-templates.json +192 -0
  48. package/compodoc/template-playground/hbs-render.service.ts +217 -0
  49. package/compodoc/template-playground/main.ts +9 -0
  50. package/compodoc/template-playground/template-editor.service.ts +173 -0
  51. package/compodoc/template-playground/template-playground.component.ts +614 -0
  52. package/compodoc/template-playground/template-playground.module.ts +29 -0
  53. package/compodoc/template-playground/zip-export.service.ts +86 -0
  54. package/compodoc/template-playground-app/app.js +1389 -0
  55. package/compodoc/template-playground-app/index.html +462 -0
  56. package/docs/documentation.json +951 -742
  57. package/docs/html/assets/hierarchy.js +1 -1
  58. package/docs/html/assets/highlight.css +1 -1
  59. package/docs/html/assets/icons.js +1 -1
  60. package/docs/html/assets/icons.svg +1 -1
  61. package/docs/html/assets/main.js +5 -5
  62. package/docs/html/assets/search.js +1 -1
  63. package/docs/html/assets/style.css +265 -228
  64. package/docs/html/classes/ChipInputAdapterDirective.html +97 -6
  65. package/docs/html/classes/ChipListIteratorDirective.html +109 -7
  66. package/docs/html/classes/CompareWithDirective.html +95 -5
  67. package/docs/html/classes/ControlErrorDirective.html +160 -12
  68. package/docs/html/classes/ControlErrorsDirective.html +154 -11
  69. package/docs/html/classes/ExtractHideShowMixin.html +141 -8
  70. package/docs/html/classes/FormControlsComponent.html +183 -15
  71. package/docs/html/classes/FormFieldHideShowDirective.html +210 -15
  72. package/docs/html/classes/InputClearButtonDirective.html +122 -7
  73. package/docs/html/classes/RequiredDirective.html +81 -4
  74. package/docs/html/hierarchy.html +33 -1
  75. package/docs/html/index.html +44 -7
  76. package/docs/html/interfaces/ChipListTemplateContext.html +61 -3
  77. package/docs/html/interfaces/ControlErrorDirectiveContext.html +61 -3
  78. package/docs/html/interfaces/ControlErrorsDirectiveContext.html +61 -3
  79. package/docs/html/modules.html +40 -1
  80. package/docs/markdown/README.md +6 -4
  81. package/docs/markdown/classes/ChipInputAdapterDirective.md +8 -8
  82. package/docs/markdown/classes/ChipListIteratorDirective.md +8 -8
  83. package/docs/markdown/classes/CompareWithDirective.md +7 -7
  84. package/docs/markdown/classes/ControlErrorDirective.md +18 -16
  85. package/docs/markdown/classes/ControlErrorsDirective.md +17 -15
  86. package/docs/markdown/classes/ExtractHideShowMixin.md +23 -23
  87. package/docs/markdown/classes/FormControlsComponent.md +22 -20
  88. package/docs/markdown/classes/FormFieldHideShowDirective.md +31 -28
  89. package/docs/markdown/classes/InputClearButtonDirective.md +10 -10
  90. package/docs/markdown/classes/RequiredDirective.md +6 -6
  91. package/docs/markdown/globals.md +2 -2
  92. package/docs/markdown/interfaces/ChipListTemplateContext.md +5 -5
  93. package/docs/markdown/interfaces/ControlErrorDirectiveContext.md +4 -4
  94. package/docs/markdown/interfaces/ControlErrorsDirectiveContext.md +4 -4
  95. package/docs/wiki/Class.ChipInputAdapterDirective.md +7 -7
  96. package/docs/wiki/Class.ChipListIteratorDirective.md +7 -7
  97. package/docs/wiki/Class.CompareWithDirective.md +6 -6
  98. package/docs/wiki/Class.ControlErrorDirective.md +17 -15
  99. package/docs/wiki/Class.ControlErrorsDirective.md +16 -14
  100. package/docs/wiki/Class.ExtractHideShowMixin.md +22 -22
  101. package/docs/wiki/Class.FormControlsComponent.md +21 -19
  102. package/docs/wiki/Class.FormFieldHideShowDirective.md +30 -27
  103. package/docs/wiki/Class.InputClearButtonDirective.md +9 -9
  104. package/docs/wiki/Class.RequiredDirective.md +5 -5
  105. package/docs/wiki/Home.md +5 -3
  106. package/docs/wiki/Interface.ChipListTemplateContext.md +4 -4
  107. package/docs/wiki/Interface.ControlErrorDirectiveContext.md +3 -3
  108. package/docs/wiki/Interface.ControlErrorsDirectiveContext.md +3 -3
  109. package/docs/wiki/globals.md +1 -1
  110. package/fesm2022/rxap-material-form-system.mjs +793 -754
  111. package/fesm2022/rxap-material-form-system.mjs.map +1 -1
  112. package/generators.json +16 -0
  113. package/package.json +34 -36
  114. package/src/generators/init/generator.js +120 -0
  115. package/src/generators/init/index.js +6 -0
  116. package/src/generators/init/schema.json +8 -0
  117. package/src/generators/package.json +3 -0
  118. package/types/rxap-material-form-system.d.ts +1 -0
  119. package/compodoc/js/libs/vis.min.js +0 -47
  120. package/compodoc/js/menu-wc_es5.js +0 -40
  121. package/compodoc/modules/MaterialFormSystemModule/dependencies.svg +0 -162
  122. package/compodoc/modules/MaterialFormSystemModule.html +0 -466
  123. package/theme.css +0 -1
@@ -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" >CompareWithDirective</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/compare-with.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/compare-with.directive.ts</code>
118
- </p>
119
-
120
149
 
121
150
 
122
151
 
@@ -124,7 +153,7 @@
124
153
  <h3>Implements</h3>
125
154
  </p>
126
155
  <p class="comment">
127
- <code>OnInit</code>
156
+ <code><a href="https://angular.dev/api/core/OnInit" target="_blank" >OnInit</a></code>
128
157
  </p>
129
158
 
130
159
 
@@ -149,75 +178,89 @@
149
178
  </table>
150
179
  </section>
151
180
 
181
+ <section data-compodoc="block-relationships">
182
+ <h3>Relationships</h3>
183
+
184
+ <div class="row pt-3">
185
+ <div class="col-sm-6">
186
+ <h4>Used by</h4>
187
+ <p class="comment"><i>No results matching.</i></p>
188
+ </div>
189
+
190
+ <div class="col-sm-6">
191
+ <h4>Depends on</h4>
192
+ <ul class="list-unstyled relationships-list">
193
+ <li>
194
+ <code><a href="https://angular.dev/api/core/OnInit" target="_blank" >OnInit</a></code>
195
+ </li>
196
+ </ul>
197
+ </div>
198
+ </div>
199
+ </section>
200
+
201
+ </div>
202
+
203
+ <div class="tab-pane fade " id="api">
152
204
  <section data-compodoc="block-index">
153
205
  <h3 id="index">Index</h3>
154
- <table class="table table-sm table-bordered index-table">
155
- <tbody>
206
+
207
+
208
+ <table class="table table-sm table-bordered index-table">
209
+ <tbody>
156
210
  <tr>
157
- <td class="col-md-4">
158
- <h6><b>Properties</b></h6>
211
+ <td class="col-md-3">
212
+ <h6><b>Inputs</b></h6>
159
213
  </td>
160
- </tr>
161
- <tr>
162
- <td class="col-md-4">
214
+ <td class="col-md-9">
163
215
  <ul class="index-list">
164
216
  <li>
165
- <span class="modifier">Public</span>
166
- <span class="modifier">Readonly</span>
167
- <a href="#objectPath" >objectPath</a>
217
+ <span class="reference-badge reference-badge--property" aria-hidden="true">I</span><a href="#rxapCompareWith" >rxapCompareWith</a>
168
218
  </li>
169
219
  </ul>
170
220
  </td>
171
221
  </tr>
222
+ </tbody>
223
+ </table>
172
224
 
173
225
 
174
226
 
175
227
 
176
-
177
-
178
- </tbody>
179
- </table>
180
228
  </section>
181
229
 
182
230
 
231
+ <section data-compodoc="block-inputs">
232
+ <h3 id="inputs">Inputs</h3>
233
+ <table class="table table-sm table-bordered">
234
+ <tbody>
235
+ <tr>
236
+ <td class="col-md-4">
237
+ <a name="rxapCompareWith"></a>
238
+ <b>rxapCompareWith</b>
239
+ </td>
240
+ </tr>
241
+ <tr>
242
+ <td class="col-md-4">
243
+ <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
183
244
 
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>
245
+ </td>
246
+ </tr>
206
247
  <tr>
207
248
  <td class="col-md-4">
208
- <i>Default value : </i><code>input.required&lt;string&gt;({ alias: &quot;rxapCompareWith&quot; })</code>
249
+ <i>Required : </i>&nbsp;<b>true</b>
209
250
  </td>
210
251
  </tr>
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>
252
+ <tr>
253
+ <td class="col-md-2" colspan="2">
254
+ <div class="io-line">Defined in <a href="" data-line="41" class="link-to-prism">src/lib/compare-with.directive.ts:41</a></div>
255
+ </td>
256
+ </tr>
257
+ </tbody>
258
+ </table>
259
+ </section>
260
+
261
+
216
262
 
217
263
 
218
- </tbody>
219
- </table>
220
- </section>
221
264
 
222
265
 
223
266
  </div>
@@ -230,7 +273,33 @@ import {
230
273
  equals,
231
274
  getFromObject,
232
275
  } from &#x27;@rxap/utilities&#x27;;
233
-
276
+ import { Showcase } from &#x27;@ng-prism/core&#x27;;
277
+
278
+ const PRISM_FORM_STYLE &#x3D; &#x27;display: flex; flex-direction: column; gap: 8px; min-width: 280px&#x27;;
279
+
280
+ @Showcase&lt;CompareWithDirective&gt;({
281
+ title: &#x27;Compare With&#x27;,
282
+ category: &#x27;Material Form System&#x27;,
283
+ description: &#x27;Compares the options of a select by the value of an object path instead of the object reference. The value of the control is a different object than the option, but the matching option is selected.&#x27;,
284
+ status: &#x27;stable&#x27;,
285
+ imports: [
286
+ { name: &#x27;ReactiveFormsModule&#x27;, from: &#x27;@angular/forms&#x27; },
287
+ { name: &#x27;FormDirective&#x27;, from: &#x27;@rxap/forms&#x27; },
288
+ { name: &#x27;MatFormFieldModule&#x27;, from: &#x27;@angular/material/form-field&#x27; },
289
+ { name: &#x27;MatInputModule&#x27;, from: &#x27;@angular/material/input&#x27; },
290
+ { name: &#x27;MatSelectModule&#x27;, from: &#x27;@angular/material/select&#x27; },
291
+ ],
292
+ variants: [
293
+ {
294
+ name: &#x27;By id&#x27;,
295
+ host: { template: &#x60;&lt;form rxapForm style&#x3D;&quot;${ PRISM_FORM_STYLE }&quot;&gt;&lt;mat-form-field&gt;&lt;mat-label&gt;Role&lt;/mat-label&gt;&lt;mat-select formControlName&#x3D;&quot;role&quot; rxapCompareWith&#x3D;&quot;id&quot;&gt;&lt;mat-option [value]&#x3D;&quot;{ id: 1, label: &#x27;Administrator&#x27; }&quot;&gt;Administrator&lt;/mat-option&gt;&lt;mat-option [value]&#x3D;&quot;{ id: 2, label: &#x27;Editor&#x27; }&quot;&gt;Editor&lt;/mat-option&gt;&lt;/mat-select&gt;&lt;/mat-form-field&gt;&lt;/form&gt;&#x60; },
296
+ },
297
+ {
298
+ name: &#x27;By label&#x27;,
299
+ host: { template: &#x60;&lt;form rxapForm style&#x3D;&quot;${ PRISM_FORM_STYLE }&quot;&gt;&lt;mat-form-field&gt;&lt;mat-label&gt;Role&lt;/mat-label&gt;&lt;mat-select formControlName&#x3D;&quot;role&quot; rxapCompareWith&#x3D;&quot;label&quot;&gt;&lt;mat-option [value]&#x3D;&quot;{ id: 1, label: &#x27;Administrator&#x27; }&quot;&gt;Administrator&lt;/mat-option&gt;&lt;mat-option [value]&#x3D;&quot;{ id: 2, label: &#x27;Editor&#x27; }&quot;&gt;Editor&lt;/mat-option&gt;&lt;/mat-select&gt;&lt;/mat-form-field&gt;&lt;/form&gt;&#x60; },
300
+ },
301
+ ],
302
+ })
234
303
  @Directive({
235
304
  selector: &#x27;mat-select[rxapCompareWith]&#x27;,
236
305
  standalone: true,
@@ -326,6 +395,24 @@ export class CompareWithDirective implements OnInit {
326
395
 
327
396
  <script>
328
397
  $darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
398
+ var updateDarkModeSwitchOffset = function () {
399
+ var content = document.querySelector('.content');
400
+ var scrollbarWidth = 0;
401
+
402
+ if (content) {
403
+ scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
404
+ }
405
+
406
+ document.documentElement.style.setProperty(
407
+ '--content-scrollbar-width',
408
+ scrollbarWidth + 'px'
409
+ );
410
+ };
411
+
412
+ updateDarkModeSwitchOffset();
413
+ requestAnimationFrame(updateDarkModeSwitchOffset);
414
+ window.addEventListener('resize', updateDarkModeSwitchOffset);
415
+
329
416
  checkToggle(darkModeState);
330
417
  if ($darkModeToggleSwitchers.length > 0) {
331
418
  for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
@@ -341,14 +428,12 @@ export class CompareWithDirective implements OnInit {
341
428
  <script src="../js/libs/lit-html.js"></script>
342
429
 
343
430
  <script src="../js/menu-wc.js" defer></script>
344
- <script nomodule src="../js/menu-wc_es5.js" defer></script>
345
431
 
346
432
  <script src="../js/libs/bootstrap-native.js"></script>
347
433
 
348
434
  <script src="../js/libs/es6-shim.min.js"></script>
349
435
  <script src="../js/libs/EventDispatcher.js"></script>
350
436
  <script src="../js/libs/promise.min.js"></script>
351
- <script src="../js/libs/zepto.min.js"></script>
352
437
 
353
438
  <script src="../js/compodoc.js"></script>
354
439