@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">
|
|
@@ -96,47 +117,99 @@
|
|
|
96
117
|
|
|
97
118
|
|
|
98
119
|
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
99
124
|
<ol class="breadcrumb">
|
|
100
125
|
<li class="breadcrumb-item">Dependencies</li>
|
|
101
126
|
</ol>
|
|
102
|
-
<
|
|
103
|
-
<
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
127
|
+
<div class="dependencies-table-wrapper">
|
|
128
|
+
<table class="table table-sm table-bordered dependencies-table">
|
|
129
|
+
<thead>
|
|
130
|
+
<tr>
|
|
131
|
+
<th>Name</th>
|
|
132
|
+
<th>Version</th>
|
|
133
|
+
</tr>
|
|
134
|
+
</thead>
|
|
135
|
+
<tbody>
|
|
136
|
+
<tr>
|
|
137
|
+
<td><b>@nx/devkit</b></td>
|
|
138
|
+
<td>24.0.6</td>
|
|
139
|
+
</tr>
|
|
140
|
+
<tr>
|
|
141
|
+
<td><b>tslib</b></td>
|
|
142
|
+
<td>2.9.1</td>
|
|
143
|
+
</tr>
|
|
144
|
+
</tbody>
|
|
145
|
+
</table>
|
|
146
|
+
</div>
|
|
108
147
|
|
|
109
148
|
|
|
110
149
|
<br/>
|
|
111
150
|
<ol class="breadcrumb">
|
|
112
151
|
<li class="breadcrumb-item">Peer dependencies</li>
|
|
113
152
|
</ol>
|
|
114
|
-
<
|
|
115
|
-
<
|
|
116
|
-
<
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
153
|
+
<div class="dependencies-table-wrapper">
|
|
154
|
+
<table class="table table-sm table-bordered dependencies-table">
|
|
155
|
+
<thead>
|
|
156
|
+
<tr>
|
|
157
|
+
<th>Name</th>
|
|
158
|
+
<th>Version</th>
|
|
159
|
+
</tr>
|
|
160
|
+
</thead>
|
|
161
|
+
<tbody>
|
|
162
|
+
<tr>
|
|
163
|
+
<td><b>@angular/cdk</b></td>
|
|
164
|
+
<td>^22.0.0</td>
|
|
165
|
+
</tr>
|
|
166
|
+
<tr>
|
|
167
|
+
<td><b>@angular/common</b></td>
|
|
168
|
+
<td>^22.0.0</td>
|
|
169
|
+
</tr>
|
|
170
|
+
<tr>
|
|
171
|
+
<td><b>@angular/core</b></td>
|
|
172
|
+
<td>^22.0.0</td>
|
|
173
|
+
</tr>
|
|
174
|
+
<tr>
|
|
175
|
+
<td><b>@angular/forms</b></td>
|
|
176
|
+
<td>^22.0.0</td>
|
|
177
|
+
</tr>
|
|
178
|
+
<tr>
|
|
179
|
+
<td><b>@angular/material</b></td>
|
|
180
|
+
<td>^22.0.0</td>
|
|
181
|
+
</tr>
|
|
182
|
+
<tr>
|
|
183
|
+
<td><b>@angular/router</b></td>
|
|
184
|
+
<td>^22.0.0</td>
|
|
185
|
+
</tr>
|
|
186
|
+
<tr>
|
|
187
|
+
<td><b>@rxap/form-system</b></td>
|
|
188
|
+
<td>^22.0.0-dev.1</td>
|
|
189
|
+
</tr>
|
|
190
|
+
<tr>
|
|
191
|
+
<td><b>@rxap/forms</b></td>
|
|
192
|
+
<td>^22.0.0-dev.1</td>
|
|
193
|
+
</tr>
|
|
194
|
+
<tr>
|
|
195
|
+
<td><b>@rxap/mixin</b></td>
|
|
196
|
+
<td>^16.0.18-dev.0</td>
|
|
197
|
+
</tr>
|
|
198
|
+
<tr>
|
|
199
|
+
<td><b>@rxap/reflect-metadata</b></td>
|
|
200
|
+
<td>^1.0.19-dev.0</td>
|
|
201
|
+
</tr>
|
|
202
|
+
<tr>
|
|
203
|
+
<td><b>@rxap/utilities</b></td>
|
|
204
|
+
<td>^16.5.3-dev.0</td>
|
|
205
|
+
</tr>
|
|
206
|
+
<tr>
|
|
207
|
+
<td><b>rxjs</b></td>
|
|
208
|
+
<td>^7.0.0</td>
|
|
209
|
+
</tr>
|
|
210
|
+
</tbody>
|
|
211
|
+
</table>
|
|
212
|
+
</div>
|
|
140
213
|
|
|
141
214
|
|
|
142
215
|
|
|
@@ -175,6 +248,24 @@
|
|
|
175
248
|
|
|
176
249
|
<script>
|
|
177
250
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
251
|
+
var updateDarkModeSwitchOffset = function () {
|
|
252
|
+
var content = document.querySelector('.content');
|
|
253
|
+
var scrollbarWidth = 0;
|
|
254
|
+
|
|
255
|
+
if (content) {
|
|
256
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
document.documentElement.style.setProperty(
|
|
260
|
+
'--content-scrollbar-width',
|
|
261
|
+
scrollbarWidth + 'px'
|
|
262
|
+
);
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
updateDarkModeSwitchOffset();
|
|
266
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
267
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
268
|
+
|
|
178
269
|
checkToggle(darkModeState);
|
|
179
270
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
180
271
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -190,14 +281,12 @@
|
|
|
190
281
|
<script src="./js/libs/lit-html.js"></script>
|
|
191
282
|
|
|
192
283
|
<script src="./js/menu-wc.js" defer></script>
|
|
193
|
-
<script nomodule src="./js/menu-wc_es5.js" defer></script>
|
|
194
284
|
|
|
195
285
|
<script src="./js/libs/bootstrap-native.js"></script>
|
|
196
286
|
|
|
197
287
|
<script src="./js/libs/es6-shim.min.js"></script>
|
|
198
288
|
<script src="./js/libs/EventDispatcher.js"></script>
|
|
199
289
|
<script src="./js/libs/promise.min.js"></script>
|
|
200
|
-
<script src="./js/libs/zepto.min.js"></script>
|
|
201
290
|
|
|
202
291
|
<script src="./js/compodoc.js"></script>
|
|
203
292
|
|
|
@@ -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" >ChipInputAdapterDirective</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/chip-input-adapter.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/chip-input-adapter.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/OnDestroy" target="_blank" >OnDestroy</a></code>
|
|
157
|
+
<code><a href="https://angular.dev/api/core/OnInit" target="_blank" >OnInit</a></code>
|
|
129
158
|
</p>
|
|
130
159
|
|
|
131
160
|
|
|
@@ -150,6 +179,32 @@
|
|
|
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/OnDestroy" target="_blank" >OnDestroy</a></code>
|
|
196
|
+
</li>
|
|
197
|
+
<li>
|
|
198
|
+
<code><a href="https://angular.dev/api/core/OnInit" target="_blank" >OnInit</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
|
|
|
154
209
|
<section data-compodoc="block-constructor">
|
|
155
210
|
<h3 id="constructor">Constructor</h3>
|
|
@@ -176,7 +231,6 @@
|
|
|
176
231
|
|
|
177
232
|
|
|
178
233
|
|
|
179
|
-
|
|
180
234
|
</div>
|
|
181
235
|
|
|
182
236
|
|
|
@@ -281,6 +335,24 @@ export class ChipInputAdapterDirective implements OnDestroy, OnInit {
|
|
|
281
335
|
|
|
282
336
|
<script>
|
|
283
337
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
338
|
+
var updateDarkModeSwitchOffset = function () {
|
|
339
|
+
var content = document.querySelector('.content');
|
|
340
|
+
var scrollbarWidth = 0;
|
|
341
|
+
|
|
342
|
+
if (content) {
|
|
343
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
document.documentElement.style.setProperty(
|
|
347
|
+
'--content-scrollbar-width',
|
|
348
|
+
scrollbarWidth + 'px'
|
|
349
|
+
);
|
|
350
|
+
};
|
|
351
|
+
|
|
352
|
+
updateDarkModeSwitchOffset();
|
|
353
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
354
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
355
|
+
|
|
284
356
|
checkToggle(darkModeState);
|
|
285
357
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
286
358
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -296,14 +368,12 @@ export class ChipInputAdapterDirective implements OnDestroy, OnInit {
|
|
|
296
368
|
<script src="../js/libs/lit-html.js"></script>
|
|
297
369
|
|
|
298
370
|
<script src="../js/menu-wc.js" defer></script>
|
|
299
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
300
371
|
|
|
301
372
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
302
373
|
|
|
303
374
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
304
375
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
305
376
|
<script src="../js/libs/promise.min.js"></script>
|
|
306
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
307
377
|
|
|
308
378
|
<script src="../js/compodoc.js"></script>
|
|
309
379
|
|
|
@@ -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" >ChipListIteratorDirective</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/chip-list-iterator.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/chip-list-iterator.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/OnInit" target="_blank" >OnInit</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,33 +179,58 @@
|
|
|
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/OnInit" target="_blank" >OnInit</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
|
-
<table class="table table-sm table-bordered index-table">
|
|
156
|
-
<tbody>
|
|
157
210
|
|
|
211
|
+
<table class="table table-sm table-bordered index-table">
|
|
212
|
+
<tbody>
|
|
158
213
|
<tr>
|
|
159
|
-
<td class="col-md-
|
|
214
|
+
<td class="col-md-3">
|
|
160
215
|
<h6><b>Methods</b></h6>
|
|
161
216
|
</td>
|
|
162
|
-
|
|
163
|
-
<tr>
|
|
164
|
-
<td class="col-md-4">
|
|
217
|
+
<td class="col-md-9">
|
|
165
218
|
<ul class="index-list">
|
|
166
219
|
<li>
|
|
220
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
167
221
|
<span class="modifier">Protected</span>
|
|
168
222
|
<a href="#applyChanges" >applyChanges</a>
|
|
169
223
|
</li>
|
|
170
224
|
</ul>
|
|
171
225
|
</td>
|
|
172
226
|
</tr>
|
|
227
|
+
</tbody>
|
|
228
|
+
</table>
|
|
173
229
|
|
|
174
230
|
|
|
175
231
|
|
|
176
232
|
|
|
177
233
|
|
|
178
|
-
</tbody>
|
|
179
|
-
</table>
|
|
180
234
|
</section>
|
|
181
235
|
|
|
182
236
|
|
|
@@ -211,8 +265,8 @@
|
|
|
211
265
|
|
|
212
266
|
<tr>
|
|
213
267
|
<td class="col-md-4">
|
|
214
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
215
|
-
class="link-to-prism">src/lib/chip-list-iterator.directive.ts:
|
|
268
|
+
<div class="io-line">Defined in <a href="" data-line="83"
|
|
269
|
+
class="link-to-prism">src/lib/chip-list-iterator.directive.ts:83</a></div>
|
|
216
270
|
</td>
|
|
217
271
|
</tr>
|
|
218
272
|
|
|
@@ -265,7 +319,7 @@
|
|
|
265
319
|
|
|
266
320
|
|
|
267
321
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
268
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { Directive, EmbeddedViewRef, IterableChangeRecord, IterableChanges, IterableDiffer, IterableDiffers, OnDestroy, OnInit, TemplateRef, ViewContainerRef, inject } from '@angular/core';
|
|
322
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { ChangeDetectorRef, Directive, EmbeddedViewRef, IterableChangeRecord, IterableChanges, IterableDiffer, IterableDiffers, OnDestroy, OnInit, TemplateRef, ViewContainerRef, inject } from '@angular/core';
|
|
269
323
|
import { NgControl } from '@angular/forms';
|
|
270
324
|
import { MatChipEvent } from '@angular/material/chips';
|
|
271
325
|
import { Subscription } from 'rxjs';
|
|
@@ -301,6 +355,7 @@ export class ChipListIteratorDirective implements OnInit, OnDestroy {
|
|
|
301
355
|
private readonly viewContainerRef = inject(ViewContainerRef);
|
|
302
356
|
private readonly ngControl = inject(NgControl);
|
|
303
357
|
private readonly differs = inject(IterableDiffers);
|
|
358
|
+
private readonly cdr = inject(ChangeDetectorRef);
|
|
304
359
|
|
|
305
360
|
private _subscription?: Subscription;
|
|
306
361
|
|
|
@@ -331,6 +386,10 @@ export class ChipListIteratorDirective implements OnInit, OnDestroy {
|
|
|
331
386
|
const changes = this._differ.diff(items);
|
|
332
387
|
if (changes) {
|
|
333
388
|
this.applyChanges(changes);
|
|
389
|
+
// the values can change outside of an Angular tracked event (e.g. a
|
|
390
|
+
// programmatic setValue after an async load). Without zone.js the
|
|
391
|
+
// created/updated embedded views must be marked for a refresh explicitly.
|
|
392
|
+
this.cdr.markForCheck();
|
|
334
393
|
}
|
|
335
394
|
}
|
|
336
395
|
}),
|
|
@@ -459,6 +518,24 @@ export class ChipListIteratorDirective implements OnInit, OnDestroy {
|
|
|
459
518
|
|
|
460
519
|
<script>
|
|
461
520
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
521
|
+
var updateDarkModeSwitchOffset = function () {
|
|
522
|
+
var content = document.querySelector('.content');
|
|
523
|
+
var scrollbarWidth = 0;
|
|
524
|
+
|
|
525
|
+
if (content) {
|
|
526
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
document.documentElement.style.setProperty(
|
|
530
|
+
'--content-scrollbar-width',
|
|
531
|
+
scrollbarWidth + 'px'
|
|
532
|
+
);
|
|
533
|
+
};
|
|
534
|
+
|
|
535
|
+
updateDarkModeSwitchOffset();
|
|
536
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
537
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
538
|
+
|
|
462
539
|
checkToggle(darkModeState);
|
|
463
540
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
464
541
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -474,14 +551,12 @@ export class ChipListIteratorDirective implements OnInit, OnDestroy {
|
|
|
474
551
|
<script src="../js/libs/lit-html.js"></script>
|
|
475
552
|
|
|
476
553
|
<script src="../js/menu-wc.js" defer></script>
|
|
477
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
478
554
|
|
|
479
555
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
480
556
|
|
|
481
557
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
482
558
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
483
559
|
<script src="../js/libs/promise.min.js"></script>
|
|
484
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
485
560
|
|
|
486
561
|
<script src="../js/compodoc.js"></script>
|
|
487
562
|
|