@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.
- package/CHANGELOG.md +39 -0
- package/README.md +5 -3
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +83 -5
- package/compodoc/classes/ExtractHideShowMixin.html +95 -21
- package/compodoc/classes/RecordViewTuple.html +71 -18
- package/compodoc/components/FormControlsComponent.html +269 -165
- package/compodoc/dependencies.html +124 -35
- package/compodoc/directives/ChipInputAdapterDirective.html +83 -13
- package/compodoc/directives/ChipListIteratorDirective.html +98 -23
- package/compodoc/directives/CompareWithDirective.html +142 -57
- package/compodoc/directives/ControlErrorDirective.html +163 -56
- package/compodoc/directives/ControlErrorsDirective.html +120 -26
- package/compodoc/directives/FormFieldHideShowDirective.html +122 -33
- package/compodoc/directives/InputClearButtonDirective.html +125 -47
- package/compodoc/directives/RequiredDirective.html +98 -20
- package/compodoc/index.html +50 -8
- package/compodoc/interfaces/ChipListTemplateContext.html +155 -95
- package/compodoc/interfaces/ControlErrorDirectiveContext.html +149 -94
- package/compodoc/interfaces/ControlErrorsDirectiveContext.html +149 -94
- package/compodoc/js/architecture-graph.js +288 -0
- package/compodoc/js/libs/bootstrap-native.js +4 -2
- package/compodoc/js/libs/jszip.min.js +13 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
- package/compodoc/js/libs/tablesort.min.js +3 -3
- package/compodoc/js/libs/tablesort.number.min.js +3 -3
- package/compodoc/js/libs/vis-network.min.js +78 -0
- package/compodoc/js/menu-wc.js +25 -12
- package/compodoc/js/menu.js +10 -11
- package/compodoc/js/routes/routes_index.js +1 -0
- package/compodoc/js/routes.js +142 -34
- package/compodoc/js/search/search-lunr.js +6 -8
- package/compodoc/js/search/search.js +118 -66
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/js/tabs.js +98 -15
- package/compodoc/js/tree.js +44 -7
- package/compodoc/license.html +48 -6
- package/compodoc/llms.txt +198 -0
- package/compodoc/miscellaneous/functions.html +132 -8
- package/compodoc/miscellaneous/variables.html +148 -5
- package/compodoc/modules.html +44 -3
- package/compodoc/overview.html +54 -3
- package/compodoc/properties.html +45 -4
- package/compodoc/routes.html +227 -0
- package/compodoc/styles/compodoc.css +365 -44
- package/compodoc/styles/dark.css +16 -0
- package/compodoc/template-playground/default-templates.json +192 -0
- package/compodoc/template-playground/hbs-render.service.ts +217 -0
- package/compodoc/template-playground/main.ts +9 -0
- package/compodoc/template-playground/template-editor.service.ts +173 -0
- package/compodoc/template-playground/template-playground.component.ts +614 -0
- package/compodoc/template-playground/template-playground.module.ts +29 -0
- package/compodoc/template-playground/zip-export.service.ts +86 -0
- package/compodoc/template-playground-app/app.js +1389 -0
- package/compodoc/template-playground-app/index.html +462 -0
- package/docs/documentation.json +951 -742
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/assets/highlight.css +1 -1
- package/docs/html/assets/icons.js +1 -1
- package/docs/html/assets/icons.svg +1 -1
- package/docs/html/assets/main.js +5 -5
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +265 -228
- package/docs/html/classes/ChipInputAdapterDirective.html +97 -6
- package/docs/html/classes/ChipListIteratorDirective.html +109 -7
- package/docs/html/classes/CompareWithDirective.html +95 -5
- package/docs/html/classes/ControlErrorDirective.html +160 -12
- package/docs/html/classes/ControlErrorsDirective.html +154 -11
- package/docs/html/classes/ExtractHideShowMixin.html +141 -8
- package/docs/html/classes/FormControlsComponent.html +183 -15
- package/docs/html/classes/FormFieldHideShowDirective.html +210 -15
- package/docs/html/classes/InputClearButtonDirective.html +122 -7
- package/docs/html/classes/RequiredDirective.html +81 -4
- package/docs/html/hierarchy.html +33 -1
- package/docs/html/index.html +44 -7
- package/docs/html/interfaces/ChipListTemplateContext.html +61 -3
- package/docs/html/interfaces/ControlErrorDirectiveContext.html +61 -3
- package/docs/html/interfaces/ControlErrorsDirectiveContext.html +61 -3
- package/docs/html/modules.html +40 -1
- package/docs/markdown/README.md +6 -4
- package/docs/markdown/classes/ChipInputAdapterDirective.md +8 -8
- package/docs/markdown/classes/ChipListIteratorDirective.md +8 -8
- package/docs/markdown/classes/CompareWithDirective.md +7 -7
- package/docs/markdown/classes/ControlErrorDirective.md +18 -16
- package/docs/markdown/classes/ControlErrorsDirective.md +17 -15
- package/docs/markdown/classes/ExtractHideShowMixin.md +23 -23
- package/docs/markdown/classes/FormControlsComponent.md +22 -20
- package/docs/markdown/classes/FormFieldHideShowDirective.md +31 -28
- package/docs/markdown/classes/InputClearButtonDirective.md +10 -10
- package/docs/markdown/classes/RequiredDirective.md +6 -6
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/interfaces/ChipListTemplateContext.md +5 -5
- package/docs/markdown/interfaces/ControlErrorDirectiveContext.md +4 -4
- package/docs/markdown/interfaces/ControlErrorsDirectiveContext.md +4 -4
- package/docs/wiki/Class.ChipInputAdapterDirective.md +7 -7
- package/docs/wiki/Class.ChipListIteratorDirective.md +7 -7
- package/docs/wiki/Class.CompareWithDirective.md +6 -6
- package/docs/wiki/Class.ControlErrorDirective.md +17 -15
- package/docs/wiki/Class.ControlErrorsDirective.md +16 -14
- package/docs/wiki/Class.ExtractHideShowMixin.md +22 -22
- package/docs/wiki/Class.FormControlsComponent.md +21 -19
- package/docs/wiki/Class.FormFieldHideShowDirective.md +30 -27
- package/docs/wiki/Class.InputClearButtonDirective.md +9 -9
- package/docs/wiki/Class.RequiredDirective.md +5 -5
- package/docs/wiki/Home.md +5 -3
- package/docs/wiki/Interface.ChipListTemplateContext.md +4 -4
- package/docs/wiki/Interface.ControlErrorDirectiveContext.md +3 -3
- package/docs/wiki/Interface.ControlErrorsDirectiveContext.md +3 -3
- package/docs/wiki/globals.md +1 -1
- package/fesm2022/rxap-material-form-system.mjs +793 -754
- package/fesm2022/rxap-material-form-system.mjs.map +1 -1
- package/generators.json +16 -0
- package/package.json +34 -36
- package/src/generators/init/generator.js +120 -0
- package/src/generators/init/index.js +6 -0
- package/src/generators/init/schema.json +8 -0
- package/src/generators/package.json +3 -0
- package/types/rxap-material-form-system.d.ts +1 -0
- package/compodoc/js/libs/vis.min.js +0 -47
- package/compodoc/js/menu-wc_es5.js +0 -40
- package/compodoc/modules/MaterialFormSystemModule/dependencies.svg +0 -162
- package/compodoc/modules/MaterialFormSystemModule.html +0 -466
- 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"
|
|
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>×</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
|
-
|
|
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
|
-
|
|
155
|
-
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
<table class="table table-sm table-bordered index-table">
|
|
209
|
+
<tbody>
|
|
156
210
|
<tr>
|
|
157
|
-
<td class="col-md-
|
|
158
|
-
<h6><b>
|
|
211
|
+
<td class="col-md-3">
|
|
212
|
+
<h6><b>Inputs</b></h6>
|
|
159
213
|
</td>
|
|
160
|
-
|
|
161
|
-
<tr>
|
|
162
|
-
<td class="col-md-4">
|
|
214
|
+
<td class="col-md-9">
|
|
163
215
|
<ul class="index-list">
|
|
164
216
|
<li>
|
|
165
|
-
|
|
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>
|
|
249
|
+
<i>Required : </i> <b>true</b>
|
|
209
250
|
</td>
|
|
210
251
|
</tr>
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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 '@rxap/utilities';
|
|
233
|
-
|
|
276
|
+
import { Showcase } from '@ng-prism/core';
|
|
277
|
+
|
|
278
|
+
const PRISM_FORM_STYLE = 'display: flex; flex-direction: column; gap: 8px; min-width: 280px';
|
|
279
|
+
|
|
280
|
+
@Showcase<CompareWithDirective>({
|
|
281
|
+
title: 'Compare With',
|
|
282
|
+
category: 'Material Form System',
|
|
283
|
+
description: '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.',
|
|
284
|
+
status: 'stable',
|
|
285
|
+
imports: [
|
|
286
|
+
{ name: 'ReactiveFormsModule', from: '@angular/forms' },
|
|
287
|
+
{ name: 'FormDirective', from: '@rxap/forms' },
|
|
288
|
+
{ name: 'MatFormFieldModule', from: '@angular/material/form-field' },
|
|
289
|
+
{ name: 'MatInputModule', from: '@angular/material/input' },
|
|
290
|
+
{ name: 'MatSelectModule', from: '@angular/material/select' },
|
|
291
|
+
],
|
|
292
|
+
variants: [
|
|
293
|
+
{
|
|
294
|
+
name: 'By id',
|
|
295
|
+
host: { template: `<form rxapForm style="${ PRISM_FORM_STYLE }"><mat-form-field><mat-label>Role</mat-label><mat-select formControlName="role" rxapCompareWith="id"><mat-option [value]="{ id: 1, label: 'Administrator' }">Administrator</mat-option><mat-option [value]="{ id: 2, label: 'Editor' }">Editor</mat-option></mat-select></mat-form-field></form>` },
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: 'By label',
|
|
299
|
+
host: { template: `<form rxapForm style="${ PRISM_FORM_STYLE }"><mat-form-field><mat-label>Role</mat-label><mat-select formControlName="role" rxapCompareWith="label"><mat-option [value]="{ id: 1, label: 'Administrator' }">Administrator</mat-option><mat-option [value]="{ id: 2, label: 'Editor' }">Editor</mat-option></mat-select></mat-form-field></form>` },
|
|
300
|
+
},
|
|
301
|
+
],
|
|
302
|
+
})
|
|
234
303
|
@Directive({
|
|
235
304
|
selector: 'mat-select[rxapCompareWith]',
|
|
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
|
|