@rxap/material-form-system 22.0.0-dev.0 → 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.
- package/CHANGELOG.md +19 -0
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +64 -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 +46 -5
- 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 +196 -0
- package/compodoc/miscellaneous/functions.html +51 -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 +921 -736
- 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 +40 -4
- 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 +1 -1
- 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 +30 -27
- 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 +29 -26
- package/docs/wiki/Class.InputClearButtonDirective.md +9 -9
- package/docs/wiki/Class.RequiredDirective.md +5 -5
- 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/package.json +31 -31
- package/types/rxap-material-form-system.d.ts +1 -0
|
@@ -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" >ControlErrorDirective</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/control-error.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/control-error.directive.ts</code>
|
|
118
|
-
</p>
|
|
119
|
-
|
|
120
149
|
|
|
121
150
|
|
|
122
151
|
|
|
@@ -124,8 +153,8 @@
|
|
|
124
153
|
<h3>Implements</h3>
|
|
125
154
|
</p>
|
|
126
155
|
<p class="comment">
|
|
127
|
-
|
|
128
|
-
|
|
156
|
+
<code><a href="https://angular.dev/api/core/AfterContentInit" target="_blank" >AfterContentInit</a></code>
|
|
157
|
+
<code><a href="https://angular.dev/api/core/OnDestroy" target="_blank" >OnDestroy</a></code>
|
|
129
158
|
</p>
|
|
130
159
|
|
|
131
160
|
|
|
@@ -150,34 +179,56 @@
|
|
|
150
179
|
</table>
|
|
151
180
|
</section>
|
|
152
181
|
|
|
182
|
+
<section data-compodoc="block-relationships">
|
|
183
|
+
<h3>Relationships</h3>
|
|
184
|
+
|
|
185
|
+
<div class="row pt-3">
|
|
186
|
+
<div class="col-sm-6">
|
|
187
|
+
<h4>Used by</h4>
|
|
188
|
+
<p class="comment"><i>No results matching.</i></p>
|
|
189
|
+
</div>
|
|
190
|
+
|
|
191
|
+
<div class="col-sm-6">
|
|
192
|
+
<h4>Depends on</h4>
|
|
193
|
+
<ul class="list-unstyled relationships-list">
|
|
194
|
+
<li>
|
|
195
|
+
<code><a href="https://angular.dev/api/core/AfterContentInit" target="_blank" >AfterContentInit</a></code>
|
|
196
|
+
</li>
|
|
197
|
+
<li>
|
|
198
|
+
<code><a href="https://angular.dev/api/core/OnDestroy" target="_blank" >OnDestroy</a></code>
|
|
199
|
+
</li>
|
|
200
|
+
</ul>
|
|
201
|
+
</div>
|
|
202
|
+
</div>
|
|
203
|
+
</section>
|
|
204
|
+
|
|
205
|
+
</div>
|
|
206
|
+
|
|
207
|
+
<div class="tab-pane fade " id="api">
|
|
153
208
|
<section data-compodoc="block-index">
|
|
154
209
|
<h3 id="index">Index</h3>
|
|
155
|
-
|
|
156
|
-
|
|
210
|
+
<table class="table table-sm table-bordered index-table">
|
|
211
|
+
<tbody>
|
|
157
212
|
<tr>
|
|
158
|
-
<td class="col-md-
|
|
213
|
+
<td class="col-md-3">
|
|
159
214
|
<h6><b>Properties</b></h6>
|
|
160
215
|
</td>
|
|
161
|
-
|
|
162
|
-
<tr>
|
|
163
|
-
<td class="col-md-4">
|
|
216
|
+
<td class="col-md-9">
|
|
164
217
|
<ul class="index-list">
|
|
165
218
|
<li>
|
|
219
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
|
|
166
220
|
<span class="modifier">Protected</span>
|
|
167
221
|
<span class="modifier">Readonly</span>
|
|
168
222
|
<a href="#cdr" >cdr</a>
|
|
169
223
|
</li>
|
|
170
224
|
<li>
|
|
171
|
-
|
|
172
|
-
<span class="modifier">Readonly</span>
|
|
173
|
-
<a href="#key" >key</a>
|
|
174
|
-
</li>
|
|
175
|
-
<li>
|
|
225
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
|
|
176
226
|
<span class="modifier">Protected</span>
|
|
177
227
|
<span class="modifier">Readonly</span>
|
|
178
228
|
<a href="#template" >template</a>
|
|
179
229
|
</li>
|
|
180
230
|
<li>
|
|
231
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">P</span>
|
|
181
232
|
<span class="modifier">Protected</span>
|
|
182
233
|
<span class="modifier">Readonly</span>
|
|
183
234
|
<a href="#viewContainerRef" >viewContainerRef</a>
|
|
@@ -185,36 +236,85 @@
|
|
|
185
236
|
</ul>
|
|
186
237
|
</td>
|
|
187
238
|
</tr>
|
|
239
|
+
</tbody>
|
|
240
|
+
</table>
|
|
188
241
|
|
|
242
|
+
<table class="table table-sm table-bordered index-table">
|
|
243
|
+
<tbody>
|
|
189
244
|
<tr>
|
|
190
|
-
<td class="col-md-
|
|
245
|
+
<td class="col-md-3">
|
|
191
246
|
<h6><b>Methods</b></h6>
|
|
192
247
|
</td>
|
|
193
|
-
|
|
194
|
-
<tr>
|
|
195
|
-
<td class="col-md-4">
|
|
248
|
+
<td class="col-md-9">
|
|
196
249
|
<ul class="index-list">
|
|
197
250
|
<li>
|
|
251
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
198
252
|
<span class="modifier">Static</span>
|
|
199
253
|
<a href="#ngTemplateContextGuard" >ngTemplateContextGuard</a>
|
|
200
254
|
</li>
|
|
201
255
|
<li>
|
|
256
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
202
257
|
<span class="modifier">Protected</span>
|
|
203
258
|
<a href="#render" >render</a>
|
|
204
259
|
</li>
|
|
205
260
|
</ul>
|
|
206
261
|
</td>
|
|
207
262
|
</tr>
|
|
263
|
+
</tbody>
|
|
264
|
+
</table>
|
|
208
265
|
|
|
266
|
+
<table class="table table-sm table-bordered index-table">
|
|
267
|
+
<tbody>
|
|
268
|
+
<tr>
|
|
269
|
+
<td class="col-md-3">
|
|
270
|
+
<h6><b>Inputs</b></h6>
|
|
271
|
+
</td>
|
|
272
|
+
<td class="col-md-9">
|
|
273
|
+
<ul class="index-list">
|
|
274
|
+
<li>
|
|
275
|
+
<span class="reference-badge reference-badge--property" aria-hidden="true">I</span><a href="#rxapControlErrorKey" >rxapControlErrorKey</a>
|
|
276
|
+
</li>
|
|
277
|
+
</ul>
|
|
278
|
+
</td>
|
|
279
|
+
</tr>
|
|
280
|
+
</tbody>
|
|
281
|
+
</table>
|
|
209
282
|
|
|
210
283
|
|
|
211
284
|
|
|
212
285
|
|
|
213
|
-
</tbody>
|
|
214
|
-
</table>
|
|
215
286
|
</section>
|
|
216
287
|
|
|
217
288
|
|
|
289
|
+
<section data-compodoc="block-inputs">
|
|
290
|
+
<h3 id="inputs">Inputs</h3>
|
|
291
|
+
<table class="table table-sm table-bordered">
|
|
292
|
+
<tbody>
|
|
293
|
+
<tr>
|
|
294
|
+
<td class="col-md-4">
|
|
295
|
+
<a name="rxapControlErrorKey"></a>
|
|
296
|
+
<b>rxapControlErrorKey</b>
|
|
297
|
+
</td>
|
|
298
|
+
</tr>
|
|
299
|
+
<tr>
|
|
300
|
+
<td class="col-md-4">
|
|
301
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
302
|
+
|
|
303
|
+
</td>
|
|
304
|
+
</tr>
|
|
305
|
+
<tr>
|
|
306
|
+
<td class="col-md-4">
|
|
307
|
+
<i>Required : </i> <b>true</b>
|
|
308
|
+
</td>
|
|
309
|
+
</tr>
|
|
310
|
+
<tr>
|
|
311
|
+
<td class="col-md-2" colspan="2">
|
|
312
|
+
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/control-error.directive.ts:30</a></div>
|
|
313
|
+
</td>
|
|
314
|
+
</tr>
|
|
315
|
+
</tbody>
|
|
316
|
+
</table>
|
|
317
|
+
</section>
|
|
218
318
|
|
|
219
319
|
|
|
220
320
|
|
|
@@ -239,7 +339,7 @@
|
|
|
239
339
|
<tr>
|
|
240
340
|
<td class="col-md-4">
|
|
241
341
|
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
242
|
-
<code>ngTemplateContextGuard(dir: <a href="../directives/ControlErrorDirective.html" target="_self">ControlErrorDirective</a>, ctx: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
342
|
+
<code>ngTemplateContextGuard<T>(dir: <a href="../directives/ControlErrorDirective.html" target="_self">ControlErrorDirective</a>, ctx: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
243
343
|
</td>
|
|
244
344
|
</tr>
|
|
245
345
|
|
|
@@ -383,6 +483,7 @@
|
|
|
383
483
|
</tbody>
|
|
384
484
|
</table>
|
|
385
485
|
</section>
|
|
486
|
+
|
|
386
487
|
<section data-compodoc="block-properties">
|
|
387
488
|
|
|
388
489
|
<h3 id="inputs">
|
|
@@ -403,39 +504,18 @@
|
|
|
403
504
|
</tr>
|
|
404
505
|
<tr>
|
|
405
506
|
<td class="col-md-4">
|
|
406
|
-
<i>
|
|
507
|
+
<i>Type : </i> <code>unknown</code>
|
|
508
|
+
|
|
407
509
|
</td>
|
|
408
510
|
</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
511
|
<tr>
|
|
432
512
|
<td class="col-md-4">
|
|
433
|
-
<i>Default value : </i><code>
|
|
513
|
+
<i>Default value : </i><code>inject<ChangeDetectorRef>(ChangeDetectorRef)</code>
|
|
434
514
|
</td>
|
|
435
515
|
</tr>
|
|
436
516
|
<tr>
|
|
437
517
|
<td class="col-md-4">
|
|
438
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
518
|
+
<div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/control-error.directive.ts:28</a></div>
|
|
439
519
|
</td>
|
|
440
520
|
</tr>
|
|
441
521
|
|
|
@@ -455,6 +535,12 @@
|
|
|
455
535
|
</span>
|
|
456
536
|
</td>
|
|
457
537
|
</tr>
|
|
538
|
+
<tr>
|
|
539
|
+
<td class="col-md-4">
|
|
540
|
+
<i>Type : </i> <code>unknown</code>
|
|
541
|
+
|
|
542
|
+
</td>
|
|
543
|
+
</tr>
|
|
458
544
|
<tr>
|
|
459
545
|
<td class="col-md-4">
|
|
460
546
|
<i>Default value : </i><code>inject<TemplateRef<ControlErrorDirectiveContext>>(TemplateRef)</code>
|
|
@@ -482,6 +568,12 @@
|
|
|
482
568
|
</span>
|
|
483
569
|
</td>
|
|
484
570
|
</tr>
|
|
571
|
+
<tr>
|
|
572
|
+
<td class="col-md-4">
|
|
573
|
+
<i>Type : </i> <code>unknown</code>
|
|
574
|
+
|
|
575
|
+
</td>
|
|
576
|
+
</tr>
|
|
485
577
|
<tr>
|
|
486
578
|
<td class="col-md-4">
|
|
487
579
|
<i>Default value : </i><code>inject<ViewContainerRef>(ViewContainerRef)</code>
|
|
@@ -498,7 +590,6 @@
|
|
|
498
590
|
</table>
|
|
499
591
|
</section>
|
|
500
592
|
|
|
501
|
-
|
|
502
593
|
</div>
|
|
503
594
|
|
|
504
595
|
|
|
@@ -630,6 +721,24 @@ export class ControlErrorDirective implements AfterContentInit, OnDestroy {
|
|
|
630
721
|
|
|
631
722
|
<script>
|
|
632
723
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
724
|
+
var updateDarkModeSwitchOffset = function () {
|
|
725
|
+
var content = document.querySelector('.content');
|
|
726
|
+
var scrollbarWidth = 0;
|
|
727
|
+
|
|
728
|
+
if (content) {
|
|
729
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
document.documentElement.style.setProperty(
|
|
733
|
+
'--content-scrollbar-width',
|
|
734
|
+
scrollbarWidth + 'px'
|
|
735
|
+
);
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
updateDarkModeSwitchOffset();
|
|
739
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
740
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
741
|
+
|
|
633
742
|
checkToggle(darkModeState);
|
|
634
743
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
635
744
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -645,14 +754,12 @@ export class ControlErrorDirective implements AfterContentInit, OnDestroy {
|
|
|
645
754
|
<script src="../js/libs/lit-html.js"></script>
|
|
646
755
|
|
|
647
756
|
<script src="../js/menu-wc.js" defer></script>
|
|
648
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
649
757
|
|
|
650
758
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
651
759
|
|
|
652
760
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
653
761
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
654
762
|
<script src="../js/libs/promise.min.js"></script>
|
|
655
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
656
763
|
|
|
657
764
|
<script src="../js/compodoc.js"></script>
|
|
658
765
|
|