@rxap/ngx-material-table-select 21.0.1-dev.0 → 21.0.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 +67 -0
- package/compodoc/changelog.html +65 -0
- package/compodoc/classes/MockWindowRef.html +13 -16
- package/compodoc/components/TableSelectInputComponent.html +163 -454
- package/compodoc/components/TableSelectWindowComponent.html +15 -89
- package/compodoc/components/WindowTestWrapperComponent.html +44 -69
- package/compodoc/dependencies.html +14 -14
- package/compodoc/directives/OpenTableSelectWindowDirective.html +671 -591
- package/compodoc/directives/TableSelectControlDirective.html +433 -280
- package/compodoc/graph/dependencies.svg +15 -145
- package/compodoc/injectables/OpenTableSelectWindowMethod.html +5 -76
- package/compodoc/interfaces/BooleanColumn.html +3 -14
- package/compodoc/interfaces/DateColumn.html +3 -14
- package/compodoc/interfaces/OpenTableSelectWindowMethodParameters.html +3 -14
- package/compodoc/interfaces/SelectColumn.html +4 -15
- package/compodoc/js/menu-wc.js +13 -63
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/variables.html +1 -1
- package/compodoc/modules.html +0 -17
- package/compodoc/overview.html +1 -177
- package/compodoc/properties.html +1 -1
- package/docs/documentation.json +4575 -4089
- package/docs/html/assets/hierarchy.js +1 -1
- package/docs/html/assets/navigation.js +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/ExtractTableSelectColumnMapMixin.html +2 -2
- package/docs/html/classes/ExtractTableSelectDataSourceMixin.html +2 -2
- package/docs/html/classes/ExtractTableSelectToDisplayMixin.html +2 -2
- package/docs/html/classes/ExtractTableSelectToValueMixin.html +2 -2
- package/docs/html/classes/MockWindowRef.html +5 -5
- package/docs/html/classes/OpenTableSelectWindowDirective.html +19 -29
- package/docs/html/classes/OpenTableSelectWindowMethod.html +2 -2
- package/docs/html/classes/TableSelectControlDirective.html +11 -25
- package/docs/html/classes/TableSelectInputComponent.html +23 -26
- package/docs/html/classes/TableSelectWindowComponent.html +2 -2
- package/docs/html/classes/WindowTestWrapperComponent.html +3 -3
- package/docs/html/functions/CreateFilterFormProvider.html +1 -1
- package/docs/html/functions/UseTableSelectColumns.html +1 -1
- package/docs/html/functions/UseTableSelectDataSource.html +1 -1
- package/docs/html/functions/UseTableSelectMethod.html +1 -1
- package/docs/html/functions/UseTableSelectToDisplay.html +1 -1
- package/docs/html/functions/UseTableSelectToValue.html +1 -1
- package/docs/html/hierarchy.html +1 -1
- package/docs/html/index.html +2 -2
- package/docs/html/interfaces/BooleanColumn.html +2 -2
- package/docs/html/interfaces/DateColumn.html +2 -2
- package/docs/html/interfaces/OpenTableSelectWindowMethodParameters.html +4 -4
- package/docs/html/interfaces/SelectColumn.html +2 -2
- package/docs/html/modules.html +1 -1
- package/docs/html/types/TableSelectColumn.html +1 -1
- package/docs/html/types/TableSelectColumnMap.html +1 -1
- package/docs/html/types/TableSelectToDisplayFunction.html +1 -1
- package/docs/html/types/TableSelectToValueFunction.html +1 -1
- package/docs/html/variables/TABLE_SELECT_COLUMN_MAP.html +1 -1
- package/docs/html/variables/TABLE_SELECT_DATA_SOURCE.html +1 -1
- package/docs/html/variables/TABLE_SELECT_METHOD.html +1 -1
- package/docs/html/variables/TABLE_SELECT_TO_DISPLAY.html +1 -1
- package/docs/html/variables/TABLE_SELECT_TO_VALUE.html +1 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/ExtractTableSelectColumnMapMixin.md +8 -8
- package/docs/markdown/classes/ExtractTableSelectDataSourceMixin.md +13 -13
- package/docs/markdown/classes/ExtractTableSelectToDisplayMixin.md +8 -8
- package/docs/markdown/classes/ExtractTableSelectToValueMixin.md +8 -8
- package/docs/markdown/classes/MockWindowRef.md +7 -7
- package/docs/markdown/classes/OpenTableSelectWindowDirective.md +107 -159
- package/docs/markdown/classes/OpenTableSelectWindowMethod.md +4 -16
- package/docs/markdown/classes/TableSelectControlDirective.md +73 -137
- package/docs/markdown/classes/TableSelectInputComponent.md +58 -117
- package/docs/markdown/classes/TableSelectWindowComponent.md +14 -28
- package/docs/markdown/classes/WindowTestWrapperComponent.md +11 -11
- package/docs/markdown/functions/CreateFilterFormProvider.md +2 -2
- package/docs/markdown/functions/UseTableSelectColumns.md +2 -2
- package/docs/markdown/functions/UseTableSelectDataSource.md +2 -2
- package/docs/markdown/functions/UseTableSelectMethod.md +2 -2
- package/docs/markdown/functions/UseTableSelectToDisplay.md +2 -2
- package/docs/markdown/functions/UseTableSelectToValue.md +2 -2
- package/docs/markdown/globals.md +2 -3
- package/docs/markdown/interfaces/BooleanColumn.md +5 -5
- package/docs/markdown/interfaces/DateColumn.md +6 -6
- package/docs/markdown/interfaces/OpenTableSelectWindowMethodParameters.md +14 -14
- package/docs/markdown/interfaces/SelectColumn.md +5 -5
- package/docs/markdown/type-aliases/TableSelectColumn.md +2 -2
- package/docs/markdown/type-aliases/TableSelectColumnMap.md +2 -2
- package/docs/markdown/type-aliases/TableSelectToDisplayFunction.md +2 -2
- package/docs/markdown/type-aliases/TableSelectToValueFunction.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_COLUMN_MAP.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_DATA_SOURCE.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_METHOD.md +3 -3
- package/docs/markdown/variables/TABLE_SELECT_TO_DISPLAY.md +2 -2
- package/docs/markdown/variables/TABLE_SELECT_TO_VALUE.md +2 -2
- package/docs/wiki/Class.ExtractTableSelectColumnMapMixin.md +7 -7
- package/docs/wiki/Class.ExtractTableSelectDataSourceMixin.md +12 -12
- package/docs/wiki/Class.ExtractTableSelectToDisplayMixin.md +7 -7
- package/docs/wiki/Class.ExtractTableSelectToValueMixin.md +7 -7
- package/docs/wiki/Class.MockWindowRef.md +6 -6
- package/docs/wiki/Class.OpenTableSelectWindowDirective.md +106 -158
- package/docs/wiki/Class.OpenTableSelectWindowMethod.md +3 -15
- package/docs/wiki/Class.TableSelectControlDirective.md +72 -136
- package/docs/wiki/Class.TableSelectInputComponent.md +57 -116
- package/docs/wiki/Class.TableSelectWindowComponent.md +13 -27
- package/docs/wiki/Class.WindowTestWrapperComponent.md +10 -10
- package/docs/wiki/Function.CreateFilterFormProvider.md +1 -1
- package/docs/wiki/Function.UseTableSelectColumns.md +1 -1
- package/docs/wiki/Function.UseTableSelectDataSource.md +1 -1
- package/docs/wiki/Function.UseTableSelectMethod.md +1 -1
- package/docs/wiki/Function.UseTableSelectToDisplay.md +1 -1
- package/docs/wiki/Function.UseTableSelectToValue.md +1 -1
- package/docs/wiki/Interface.BooleanColumn.md +4 -4
- package/docs/wiki/Interface.DateColumn.md +5 -5
- package/docs/wiki/Interface.OpenTableSelectWindowMethodParameters.md +13 -13
- package/docs/wiki/Interface.SelectColumn.md +4 -4
- package/docs/wiki/TypeAlias.TableSelectColumn.md +1 -1
- package/docs/wiki/TypeAlias.TableSelectColumnMap.md +1 -1
- package/docs/wiki/TypeAlias.TableSelectToDisplayFunction.md +1 -1
- package/docs/wiki/TypeAlias.TableSelectToValueFunction.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_COLUMN_MAP.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_DATA_SOURCE.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_METHOD.md +2 -2
- package/docs/wiki/Variable.TABLE_SELECT_TO_DISPLAY.md +1 -1
- package/docs/wiki/Variable.TABLE_SELECT_TO_VALUE.md +1 -1
- package/docs/wiki/_Sidebar.md +0 -1
- package/docs/wiki/globals.md +1 -2
- package/fesm2022/rxap-ngx-material-table-select.mjs +237 -322
- package/fesm2022/rxap-ngx-material-table-select.mjs.map +1 -1
- package/package.json +41 -41
- package/types/rxap-ngx-material-table-select.d.ts +73 -79
- package/docs/html/classes/TableSelectControlModule.html +0 -2
- package/docs/markdown/classes/TableSelectControlModule.md +0 -19
- package/docs/wiki/Class.TableSelectControlModule.md +0 -15
|
@@ -129,15 +129,6 @@
|
|
|
129
129
|
<code><a href="../classes/ExtractTableSelectColumnMapMixin.html" target="_self" >ExtractTableSelectColumnMapMixin</a></code>
|
|
130
130
|
</p>
|
|
131
131
|
|
|
132
|
-
<p class="comment">
|
|
133
|
-
<h3>Implements</h3>
|
|
134
|
-
</p>
|
|
135
|
-
<p class="comment">
|
|
136
|
-
<code>AfterViewInit</code>
|
|
137
|
-
<code>AfterContentInit</code>
|
|
138
|
-
<code>OnChanges</code>
|
|
139
|
-
<code>OnDestroy</code>
|
|
140
|
-
</p>
|
|
141
132
|
|
|
142
133
|
|
|
143
134
|
<section data-compodoc="block-metadata">
|
|
@@ -173,10 +164,30 @@
|
|
|
173
164
|
<tr>
|
|
174
165
|
<td class="col-md-4">
|
|
175
166
|
<ul class="index-list">
|
|
167
|
+
<li>
|
|
168
|
+
<span class="modifier">Public</span>
|
|
169
|
+
<span class="modifier">Readonly</span>
|
|
170
|
+
<a href="#columns" >columns</a>
|
|
171
|
+
</li>
|
|
172
|
+
<li>
|
|
173
|
+
<span class="modifier">Public</span>
|
|
174
|
+
<span class="modifier">Readonly</span>
|
|
175
|
+
<a href="#columnsInput" >columnsInput</a>
|
|
176
|
+
</li>
|
|
176
177
|
<li>
|
|
177
178
|
<span class="modifier">Public</span>
|
|
178
179
|
<a href="#control" >control</a>
|
|
179
180
|
</li>
|
|
181
|
+
<li>
|
|
182
|
+
<span class="modifier">Public</span>
|
|
183
|
+
<span class="modifier">Readonly</span>
|
|
184
|
+
<a href="#data" >data</a>
|
|
185
|
+
</li>
|
|
186
|
+
<li>
|
|
187
|
+
<span class="modifier">Public</span>
|
|
188
|
+
<span class="modifier">Readonly</span>
|
|
189
|
+
<a href="#dataInput" >dataInput</a>
|
|
190
|
+
</li>
|
|
180
191
|
<li>
|
|
181
192
|
<span class="modifier">Public</span>
|
|
182
193
|
<span class="modifier">Readonly</span>
|
|
@@ -184,6 +195,7 @@
|
|
|
184
195
|
</li>
|
|
185
196
|
<li>
|
|
186
197
|
<span class="modifier">Protected</span>
|
|
198
|
+
<span class="modifier">Readonly</span>
|
|
187
199
|
<a href="#disabled" >disabled</a>
|
|
188
200
|
</li>
|
|
189
201
|
<li>
|
|
@@ -196,25 +208,54 @@
|
|
|
196
208
|
<a href="#matFormField" >matFormField</a>
|
|
197
209
|
</li>
|
|
198
210
|
<li>
|
|
199
|
-
<span class="modifier"></span>
|
|
200
211
|
<span class="modifier">Public</span>
|
|
201
|
-
<span class="modifier">
|
|
212
|
+
<span class="modifier">Readonly</span>
|
|
202
213
|
<a href="#matLabel" >matLabel</a>
|
|
203
214
|
</li>
|
|
215
|
+
<li>
|
|
216
|
+
<span class="modifier">Public</span>
|
|
217
|
+
<span class="modifier">Readonly</span>
|
|
218
|
+
<a href="#multiple" >multiple</a>
|
|
219
|
+
</li>
|
|
204
220
|
<li>
|
|
205
221
|
<span class="modifier">Public</span>
|
|
206
222
|
<a href="#ngControl" >ngControl</a>
|
|
207
223
|
</li>
|
|
208
224
|
<li>
|
|
209
|
-
<span class="modifier"></span>
|
|
210
225
|
<span class="modifier">Public</span>
|
|
226
|
+
<span class="modifier">Readonly</span>
|
|
227
|
+
<a href="#openMethod" >openMethod</a>
|
|
228
|
+
</li>
|
|
229
|
+
<li>
|
|
230
|
+
<span class="modifier">Public</span>
|
|
231
|
+
<span class="modifier">Readonly</span>
|
|
211
232
|
<a href="#openTableSelectWindow" >openTableSelectWindow</a>
|
|
212
233
|
</li>
|
|
213
234
|
<li>
|
|
214
|
-
<span class="modifier"></span>
|
|
215
235
|
<span class="modifier">Public</span>
|
|
236
|
+
<span class="modifier">Readonly</span>
|
|
216
237
|
<a href="#tableSelectInput" >tableSelectInput</a>
|
|
217
238
|
</li>
|
|
239
|
+
<li>
|
|
240
|
+
<span class="modifier">Public</span>
|
|
241
|
+
<span class="modifier">Readonly</span>
|
|
242
|
+
<a href="#toDisplay" >toDisplay</a>
|
|
243
|
+
</li>
|
|
244
|
+
<li>
|
|
245
|
+
<span class="modifier">Public</span>
|
|
246
|
+
<span class="modifier">Readonly</span>
|
|
247
|
+
<a href="#toDisplayInput" >toDisplayInput</a>
|
|
248
|
+
</li>
|
|
249
|
+
<li>
|
|
250
|
+
<span class="modifier">Public</span>
|
|
251
|
+
<span class="modifier">Readonly</span>
|
|
252
|
+
<a href="#toValue" >toValue</a>
|
|
253
|
+
</li>
|
|
254
|
+
<li>
|
|
255
|
+
<span class="modifier">Public</span>
|
|
256
|
+
<span class="modifier">Readonly</span>
|
|
257
|
+
<a href="#toValueInput" >toValueInput</a>
|
|
258
|
+
</li>
|
|
218
259
|
<li>
|
|
219
260
|
<span class="modifier">Public</span>
|
|
220
261
|
<a href="#value" >value</a>
|
|
@@ -247,24 +288,9 @@
|
|
|
247
288
|
<tr>
|
|
248
289
|
<td class="col-md-4">
|
|
249
290
|
<ul class="index-list">
|
|
250
|
-
<li>
|
|
251
|
-
<a href="#columns" >columns</a>
|
|
252
|
-
</li>
|
|
253
|
-
<li>
|
|
254
|
-
<a href="#data" >data</a>
|
|
255
|
-
</li>
|
|
256
291
|
<li>
|
|
257
292
|
<a href="#multiple" >multiple</a>
|
|
258
293
|
</li>
|
|
259
|
-
<li>
|
|
260
|
-
<a href="#openMethod" >openMethod</a>
|
|
261
|
-
</li>
|
|
262
|
-
<li>
|
|
263
|
-
<a href="#toDisplay" >toDisplay</a>
|
|
264
|
-
</li>
|
|
265
|
-
<li>
|
|
266
|
-
<a href="#toValue" >toValue</a>
|
|
267
|
-
</li>
|
|
268
294
|
</ul>
|
|
269
295
|
</td>
|
|
270
296
|
</tr>
|
|
@@ -290,51 +316,27 @@
|
|
|
290
316
|
</table>
|
|
291
317
|
</section>
|
|
292
318
|
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
<h3 id="inputs">Inputs</h3>
|
|
319
|
+
<section data-compodoc="block-constructor">
|
|
320
|
+
<h3 id="constructor">Constructor</h3>
|
|
296
321
|
<table class="table table-sm table-bordered">
|
|
297
322
|
<tbody>
|
|
298
323
|
<tr>
|
|
299
324
|
<td class="col-md-4">
|
|
300
|
-
|
|
301
|
-
<b>columns</b>
|
|
302
|
-
</td>
|
|
303
|
-
</tr>
|
|
304
|
-
<tr>
|
|
305
|
-
<td class="col-md-4">
|
|
306
|
-
<i>Type : </i> <code><a href="../interfaces/SelectColumn.html" target="_self" >Map<string | TableSelectColumn> | Record<string | TableSelectColumn></a></code>
|
|
307
|
-
|
|
325
|
+
<code>constructor()</code>
|
|
308
326
|
</td>
|
|
309
327
|
</tr>
|
|
310
328
|
<tr>
|
|
311
|
-
<td class="col-md-
|
|
312
|
-
|
|
329
|
+
<td class="col-md-4">
|
|
330
|
+
<div class="io-line">Defined in <a href="" data-line="90" class="link-to-prism">src/lib/table-select-control.directive.ts:90</a></div>
|
|
313
331
|
</td>
|
|
314
332
|
</tr>
|
|
315
|
-
</tbody>
|
|
316
|
-
</table>
|
|
317
|
-
<table class="table table-sm table-bordered">
|
|
318
|
-
<tbody>
|
|
319
|
-
<tr>
|
|
320
|
-
<td class="col-md-4">
|
|
321
|
-
<a name="data"></a>
|
|
322
|
-
<b>data</b>
|
|
323
|
-
</td>
|
|
324
|
-
</tr>
|
|
325
|
-
<tr>
|
|
326
|
-
<td class="col-md-4">
|
|
327
|
-
<i>Type : </i> <code>Data[] | BaseDataSource<Data[]> | AbstractTableDataSource<Data></code>
|
|
328
333
|
|
|
329
|
-
</td>
|
|
330
|
-
</tr>
|
|
331
|
-
<tr>
|
|
332
|
-
<td class="col-md-2" colspan="2">
|
|
333
|
-
<div class="io-line">Defined in <a href="" data-line="64" class="link-to-prism">src/lib/table-select-control.directive.ts:64</a></div>
|
|
334
|
-
</td>
|
|
335
|
-
</tr>
|
|
336
334
|
</tbody>
|
|
337
335
|
</table>
|
|
336
|
+
</section>
|
|
337
|
+
|
|
338
|
+
<section data-compodoc="block-inputs">
|
|
339
|
+
<h3 id="inputs">Inputs</h3>
|
|
338
340
|
<table class="table table-sm table-bordered">
|
|
339
341
|
<tbody>
|
|
340
342
|
<tr>
|
|
@@ -342,84 +344,10 @@
|
|
|
342
344
|
<a name="multiple"></a>
|
|
343
345
|
<b>multiple</b>
|
|
344
346
|
</td>
|
|
345
|
-
</tr>
|
|
346
|
-
<tr>
|
|
347
|
-
<td class="col-md-4">
|
|
348
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
349
|
-
|
|
350
|
-
</td>
|
|
351
|
-
</tr>
|
|
352
|
-
<tr>
|
|
353
|
-
<td class="col-md-2" colspan="2">
|
|
354
|
-
<div class="io-line">Defined in <a href="" data-line="58" class="link-to-prism">src/lib/table-select-control.directive.ts:58</a></div>
|
|
355
|
-
</td>
|
|
356
|
-
</tr>
|
|
357
|
-
</tbody>
|
|
358
|
-
</table>
|
|
359
|
-
<table class="table table-sm table-bordered">
|
|
360
|
-
<tbody>
|
|
361
|
-
<tr>
|
|
362
|
-
<td class="col-md-4">
|
|
363
|
-
<a name="openMethod"></a>
|
|
364
|
-
<b>openMethod</b>
|
|
365
|
-
</td>
|
|
366
|
-
</tr>
|
|
367
|
-
<tr>
|
|
368
|
-
<td class="col-md-4">
|
|
369
|
-
<i>Type : </i> <code>Method<Data[] | WindowTableSelectOptions<Data>></code>
|
|
370
|
-
|
|
371
|
-
</td>
|
|
372
347
|
</tr>
|
|
373
348
|
<tr>
|
|
374
349
|
<td class="col-md-2" colspan="2">
|
|
375
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
376
|
-
</td>
|
|
377
|
-
</tr>
|
|
378
|
-
</tbody>
|
|
379
|
-
</table>
|
|
380
|
-
<table class="table table-sm table-bordered">
|
|
381
|
-
<tbody>
|
|
382
|
-
<tr>
|
|
383
|
-
<td class="col-md-4">
|
|
384
|
-
<a name="toDisplay"></a>
|
|
385
|
-
<b>toDisplay</b>
|
|
386
|
-
</td>
|
|
387
|
-
</tr>
|
|
388
|
-
<tr>
|
|
389
|
-
<td class="col-md-4">
|
|
390
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/function" target="_blank" >function</a></code>
|
|
391
|
-
|
|
392
|
-
</td>
|
|
393
|
-
</tr>
|
|
394
|
-
<tr>
|
|
395
|
-
<td class="col-md-4">
|
|
396
|
-
<i>Default value : </i><code>value => value as any</code>
|
|
397
|
-
</td>
|
|
398
|
-
</tr>
|
|
399
|
-
<tr>
|
|
400
|
-
<td class="col-md-2" colspan="2">
|
|
401
|
-
<div class="io-line">Defined in <a href="" data-line="97" class="link-to-prism">src/lib/table-select-control.directive.ts:97</a></div>
|
|
402
|
-
</td>
|
|
403
|
-
</tr>
|
|
404
|
-
</tbody>
|
|
405
|
-
</table>
|
|
406
|
-
<table class="table table-sm table-bordered">
|
|
407
|
-
<tbody>
|
|
408
|
-
<tr>
|
|
409
|
-
<td class="col-md-4">
|
|
410
|
-
<a name="toValue"></a>
|
|
411
|
-
<b>toValue</b>
|
|
412
|
-
</td>
|
|
413
|
-
</tr>
|
|
414
|
-
<tr>
|
|
415
|
-
<td class="col-md-4">
|
|
416
|
-
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/function" target="_blank" >function</a></code>
|
|
417
|
-
|
|
418
|
-
</td>
|
|
419
|
-
</tr>
|
|
420
|
-
<tr>
|
|
421
|
-
<td class="col-md-2" colspan="2">
|
|
422
|
-
<div class="io-line">Defined in <a href="" data-line="84" class="link-to-prism">src/lib/table-select-control.directive.ts:84</a></div>
|
|
350
|
+
<div class="io-line">Defined in <a href="" data-line="56" class="link-to-prism">src/lib/table-select-control.directive.ts:56</a></div>
|
|
423
351
|
</td>
|
|
424
352
|
</tr>
|
|
425
353
|
</tbody>
|
|
@@ -484,6 +412,60 @@
|
|
|
484
412
|
<h3 id="inputs">
|
|
485
413
|
Properties
|
|
486
414
|
</h3>
|
|
415
|
+
<table class="table table-sm table-bordered">
|
|
416
|
+
<tbody>
|
|
417
|
+
<tr>
|
|
418
|
+
<td class="col-md-4">
|
|
419
|
+
<a name="columns"></a>
|
|
420
|
+
<span class="name">
|
|
421
|
+
<span class="modifier">Public</span>
|
|
422
|
+
<span class="modifier">Readonly</span>
|
|
423
|
+
<span ><b>columns</b></span>
|
|
424
|
+
<a href="#columns"><span class="icon ion-ios-link"></span></a>
|
|
425
|
+
</span>
|
|
426
|
+
</td>
|
|
427
|
+
</tr>
|
|
428
|
+
<tr>
|
|
429
|
+
<td class="col-md-4">
|
|
430
|
+
<i>Default value : </i><code>linkedSignal(() => this.columnsInput())</code>
|
|
431
|
+
</td>
|
|
432
|
+
</tr>
|
|
433
|
+
<tr>
|
|
434
|
+
<td class="col-md-4">
|
|
435
|
+
<div class="io-line">Defined in <a href="" data-line="64" class="link-to-prism">src/lib/table-select-control.directive.ts:64</a></div>
|
|
436
|
+
</td>
|
|
437
|
+
</tr>
|
|
438
|
+
|
|
439
|
+
|
|
440
|
+
</tbody>
|
|
441
|
+
</table>
|
|
442
|
+
<table class="table table-sm table-bordered">
|
|
443
|
+
<tbody>
|
|
444
|
+
<tr>
|
|
445
|
+
<td class="col-md-4">
|
|
446
|
+
<a name="columnsInput"></a>
|
|
447
|
+
<span class="name">
|
|
448
|
+
<span class="modifier">Public</span>
|
|
449
|
+
<span class="modifier">Readonly</span>
|
|
450
|
+
<span ><b>columnsInput</b></span>
|
|
451
|
+
<a href="#columnsInput"><span class="icon ion-ios-link"></span></a>
|
|
452
|
+
</span>
|
|
453
|
+
</td>
|
|
454
|
+
</tr>
|
|
455
|
+
<tr>
|
|
456
|
+
<td class="col-md-4">
|
|
457
|
+
<i>Default value : </i><code>input<Map<string, TableSelectColumn> | Record<string, TableSelectColumn>>(undefined, { alias: 'columns' })</code>
|
|
458
|
+
</td>
|
|
459
|
+
</tr>
|
|
460
|
+
<tr>
|
|
461
|
+
<td class="col-md-4">
|
|
462
|
+
<div class="io-line">Defined in <a href="" data-line="63" class="link-to-prism">src/lib/table-select-control.directive.ts:63</a></div>
|
|
463
|
+
</td>
|
|
464
|
+
</tr>
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
</tbody>
|
|
468
|
+
</table>
|
|
487
469
|
<table class="table table-sm table-bordered">
|
|
488
470
|
<tbody>
|
|
489
471
|
<tr>
|
|
@@ -504,7 +486,61 @@
|
|
|
504
486
|
</tr>
|
|
505
487
|
<tr>
|
|
506
488
|
<td class="col-md-4">
|
|
507
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
489
|
+
<div class="io-line">Defined in <a href="" data-line="70" class="link-to-prism">src/lib/table-select-control.directive.ts:70</a></div>
|
|
490
|
+
</td>
|
|
491
|
+
</tr>
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
</tbody>
|
|
495
|
+
</table>
|
|
496
|
+
<table class="table table-sm table-bordered">
|
|
497
|
+
<tbody>
|
|
498
|
+
<tr>
|
|
499
|
+
<td class="col-md-4">
|
|
500
|
+
<a name="data"></a>
|
|
501
|
+
<span class="name">
|
|
502
|
+
<span class="modifier">Public</span>
|
|
503
|
+
<span class="modifier">Readonly</span>
|
|
504
|
+
<span ><b>data</b></span>
|
|
505
|
+
<a href="#data"><span class="icon ion-ios-link"></span></a>
|
|
506
|
+
</span>
|
|
507
|
+
</td>
|
|
508
|
+
</tr>
|
|
509
|
+
<tr>
|
|
510
|
+
<td class="col-md-4">
|
|
511
|
+
<i>Default value : </i><code>linkedSignal(() => this.dataInput())</code>
|
|
512
|
+
</td>
|
|
513
|
+
</tr>
|
|
514
|
+
<tr>
|
|
515
|
+
<td class="col-md-4">
|
|
516
|
+
<div class="io-line">Defined in <a href="" data-line="61" class="link-to-prism">src/lib/table-select-control.directive.ts:61</a></div>
|
|
517
|
+
</td>
|
|
518
|
+
</tr>
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
</tbody>
|
|
522
|
+
</table>
|
|
523
|
+
<table class="table table-sm table-bordered">
|
|
524
|
+
<tbody>
|
|
525
|
+
<tr>
|
|
526
|
+
<td class="col-md-4">
|
|
527
|
+
<a name="dataInput"></a>
|
|
528
|
+
<span class="name">
|
|
529
|
+
<span class="modifier">Public</span>
|
|
530
|
+
<span class="modifier">Readonly</span>
|
|
531
|
+
<span ><b>dataInput</b></span>
|
|
532
|
+
<a href="#dataInput"><span class="icon ion-ios-link"></span></a>
|
|
533
|
+
</span>
|
|
534
|
+
</td>
|
|
535
|
+
</tr>
|
|
536
|
+
<tr>
|
|
537
|
+
<td class="col-md-4">
|
|
538
|
+
<i>Default value : </i><code>input<Data[] | BaseDataSource<Data[]> | AbstractTableDataSource<Data>>(undefined, { alias: 'data' })</code>
|
|
539
|
+
</td>
|
|
540
|
+
</tr>
|
|
541
|
+
<tr>
|
|
542
|
+
<td class="col-md-4">
|
|
543
|
+
<div class="io-line">Defined in <a href="" data-line="60" class="link-to-prism">src/lib/table-select-control.directive.ts:60</a></div>
|
|
508
544
|
</td>
|
|
509
545
|
</tr>
|
|
510
546
|
|
|
@@ -531,7 +567,7 @@
|
|
|
531
567
|
</tr>
|
|
532
568
|
<tr>
|
|
533
569
|
<td class="col-md-4">
|
|
534
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
570
|
+
<div class="io-line">Defined in <a href="" data-line="81" class="link-to-prism">src/lib/table-select-control.directive.ts:81</a></div>
|
|
535
571
|
</td>
|
|
536
572
|
</tr>
|
|
537
573
|
|
|
@@ -545,6 +581,7 @@
|
|
|
545
581
|
<a name="disabled"></a>
|
|
546
582
|
<span class="name">
|
|
547
583
|
<span class="modifier">Protected</span>
|
|
584
|
+
<span class="modifier">Readonly</span>
|
|
548
585
|
<span ><b>disabled</b></span>
|
|
549
586
|
<a href="#disabled"><span class="icon ion-ios-link"></span></a>
|
|
550
587
|
</span>
|
|
@@ -552,12 +589,12 @@
|
|
|
552
589
|
</tr>
|
|
553
590
|
<tr>
|
|
554
591
|
<td class="col-md-4">
|
|
555
|
-
<i>Default value : </i><code>false</code>
|
|
592
|
+
<i>Default value : </i><code>signal(false)</code>
|
|
556
593
|
</td>
|
|
557
594
|
</tr>
|
|
558
595
|
<tr>
|
|
559
596
|
<td class="col-md-4">
|
|
560
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
597
|
+
<div class="io-line">Defined in <a href="" data-line="82" class="link-to-prism">src/lib/table-select-control.directive.ts:82</a></div>
|
|
561
598
|
</td>
|
|
562
599
|
</tr>
|
|
563
600
|
|
|
@@ -590,7 +627,7 @@
|
|
|
590
627
|
</tr>
|
|
591
628
|
<tr>
|
|
592
629
|
<td class="col-md-4">
|
|
593
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
630
|
+
<div class="io-line">Defined in <a href="" data-line="79" class="link-to-prism">src/lib/table-select-control.directive.ts:79</a></div>
|
|
594
631
|
</td>
|
|
595
632
|
</tr>
|
|
596
633
|
|
|
@@ -622,7 +659,7 @@
|
|
|
622
659
|
</tr>
|
|
623
660
|
<tr>
|
|
624
661
|
<td class="col-md-4">
|
|
625
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
662
|
+
<div class="io-line">Defined in <a href="" data-line="83" class="link-to-prism">src/lib/table-select-control.directive.ts:83</a></div>
|
|
626
663
|
</td>
|
|
627
664
|
</tr>
|
|
628
665
|
|
|
@@ -635,9 +672,8 @@
|
|
|
635
672
|
<td class="col-md-4">
|
|
636
673
|
<a name="matLabel"></a>
|
|
637
674
|
<span class="name">
|
|
638
|
-
<span class="modifier"></span>
|
|
639
675
|
<span class="modifier">Public</span>
|
|
640
|
-
<span class="modifier">
|
|
676
|
+
<span class="modifier">Readonly</span>
|
|
641
677
|
<span ><b>matLabel</b></span>
|
|
642
678
|
<a href="#matLabel"><span class="icon ion-ios-link"></span></a>
|
|
643
679
|
</span>
|
|
@@ -645,22 +681,34 @@
|
|
|
645
681
|
</tr>
|
|
646
682
|
<tr>
|
|
647
683
|
<td class="col-md-4">
|
|
648
|
-
<i>
|
|
649
|
-
|
|
650
|
-
</td>
|
|
651
|
-
</tr>
|
|
652
|
-
<tr>
|
|
653
|
-
<td class="col-md-4">
|
|
654
|
-
<b>Decorators : </b>
|
|
655
|
-
<br />
|
|
656
|
-
<code>
|
|
657
|
-
@ContentChild('mat-label')<br />
|
|
658
|
-
</code>
|
|
684
|
+
<i>Default value : </i><code>contentChild<ElementRef>('mat-label')</code>
|
|
659
685
|
</td>
|
|
660
686
|
</tr>
|
|
661
687
|
<tr>
|
|
662
688
|
<td class="col-md-4">
|
|
663
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
689
|
+
<div class="io-line">Defined in <a href="" data-line="76" class="link-to-prism">src/lib/table-select-control.directive.ts:76</a></div>
|
|
690
|
+
</td>
|
|
691
|
+
</tr>
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
</tbody>
|
|
695
|
+
</table>
|
|
696
|
+
<table class="table table-sm table-bordered">
|
|
697
|
+
<tbody>
|
|
698
|
+
<tr>
|
|
699
|
+
<td class="col-md-4">
|
|
700
|
+
<a name="multiple"></a>
|
|
701
|
+
<span class="name">
|
|
702
|
+
<span class="modifier">Public</span>
|
|
703
|
+
<span class="modifier">Readonly</span>
|
|
704
|
+
<span ><b>multiple</b></span>
|
|
705
|
+
<a href="#multiple"><span class="icon ion-ios-link"></span></a>
|
|
706
|
+
</span>
|
|
707
|
+
</td>
|
|
708
|
+
</tr>
|
|
709
|
+
<tr>
|
|
710
|
+
<td class="col-md-4">
|
|
711
|
+
<div class="io-line">Defined in <a href="" data-line="56" class="link-to-prism">src/lib/table-select-control.directive.ts:56</a></div>
|
|
664
712
|
</td>
|
|
665
713
|
</tr>
|
|
666
714
|
|
|
@@ -692,7 +740,34 @@
|
|
|
692
740
|
</tr>
|
|
693
741
|
<tr>
|
|
694
742
|
<td class="col-md-4">
|
|
695
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
743
|
+
<div class="io-line">Defined in <a href="" data-line="66" class="link-to-prism">src/lib/table-select-control.directive.ts:66</a></div>
|
|
744
|
+
</td>
|
|
745
|
+
</tr>
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
</tbody>
|
|
749
|
+
</table>
|
|
750
|
+
<table class="table table-sm table-bordered">
|
|
751
|
+
<tbody>
|
|
752
|
+
<tr>
|
|
753
|
+
<td class="col-md-4">
|
|
754
|
+
<a name="openMethod"></a>
|
|
755
|
+
<span class="name">
|
|
756
|
+
<span class="modifier">Public</span>
|
|
757
|
+
<span class="modifier">Readonly</span>
|
|
758
|
+
<span ><b>openMethod</b></span>
|
|
759
|
+
<a href="#openMethod"><span class="icon ion-ios-link"></span></a>
|
|
760
|
+
</span>
|
|
761
|
+
</td>
|
|
762
|
+
</tr>
|
|
763
|
+
<tr>
|
|
764
|
+
<td class="col-md-4">
|
|
765
|
+
<i>Default value : </i><code>input.required<Method<Data[], WindowTableSelectOptions<Data>>>()</code>
|
|
766
|
+
</td>
|
|
767
|
+
</tr>
|
|
768
|
+
<tr>
|
|
769
|
+
<td class="col-md-4">
|
|
770
|
+
<div class="io-line">Defined in <a href="" data-line="58" class="link-to-prism">src/lib/table-select-control.directive.ts:58</a></div>
|
|
696
771
|
</td>
|
|
697
772
|
</tr>
|
|
698
773
|
|
|
@@ -705,8 +780,8 @@
|
|
|
705
780
|
<td class="col-md-4">
|
|
706
781
|
<a name="openTableSelectWindow"></a>
|
|
707
782
|
<span class="name">
|
|
708
|
-
<span class="modifier"></span>
|
|
709
783
|
<span class="modifier">Public</span>
|
|
784
|
+
<span class="modifier">Readonly</span>
|
|
710
785
|
<span ><b>openTableSelectWindow</b></span>
|
|
711
786
|
<a href="#openTableSelectWindow"><span class="icon ion-ios-link"></span></a>
|
|
712
787
|
</span>
|
|
@@ -714,22 +789,66 @@
|
|
|
714
789
|
</tr>
|
|
715
790
|
<tr>
|
|
716
791
|
<td class="col-md-4">
|
|
717
|
-
<i>
|
|
792
|
+
<i>Default value : </i><code>contentChildren(OpenTableSelectWindowDirective)</code>
|
|
793
|
+
</td>
|
|
794
|
+
</tr>
|
|
795
|
+
<tr>
|
|
796
|
+
<td class="col-md-4">
|
|
797
|
+
<div class="io-line">Defined in <a href="" data-line="72" class="link-to-prism">src/lib/table-select-control.directive.ts:72</a></div>
|
|
798
|
+
</td>
|
|
799
|
+
</tr>
|
|
718
800
|
|
|
801
|
+
|
|
802
|
+
</tbody>
|
|
803
|
+
</table>
|
|
804
|
+
<table class="table table-sm table-bordered">
|
|
805
|
+
<tbody>
|
|
806
|
+
<tr>
|
|
807
|
+
<td class="col-md-4">
|
|
808
|
+
<a name="tableSelectInput"></a>
|
|
809
|
+
<span class="name">
|
|
810
|
+
<span class="modifier">Public</span>
|
|
811
|
+
<span class="modifier">Readonly</span>
|
|
812
|
+
<span ><b>tableSelectInput</b></span>
|
|
813
|
+
<a href="#tableSelectInput"><span class="icon ion-ios-link"></span></a>
|
|
814
|
+
</span>
|
|
815
|
+
</td>
|
|
816
|
+
</tr>
|
|
817
|
+
<tr>
|
|
818
|
+
<td class="col-md-4">
|
|
819
|
+
<i>Default value : </i><code>contentChild.required(TableSelectInputComponent)</code>
|
|
719
820
|
</td>
|
|
720
821
|
</tr>
|
|
822
|
+
<tr>
|
|
823
|
+
<td class="col-md-4">
|
|
824
|
+
<div class="io-line">Defined in <a href="" data-line="74" class="link-to-prism">src/lib/table-select-control.directive.ts:74</a></div>
|
|
825
|
+
</td>
|
|
826
|
+
</tr>
|
|
827
|
+
|
|
828
|
+
|
|
829
|
+
</tbody>
|
|
830
|
+
</table>
|
|
831
|
+
<table class="table table-sm table-bordered">
|
|
832
|
+
<tbody>
|
|
833
|
+
<tr>
|
|
834
|
+
<td class="col-md-4">
|
|
835
|
+
<a name="toDisplay"></a>
|
|
836
|
+
<span class="name">
|
|
837
|
+
<span class="modifier">Public</span>
|
|
838
|
+
<span class="modifier">Readonly</span>
|
|
839
|
+
<span ><b>toDisplay</b></span>
|
|
840
|
+
<a href="#toDisplay"><span class="icon ion-ios-link"></span></a>
|
|
841
|
+
</span>
|
|
842
|
+
</td>
|
|
843
|
+
</tr>
|
|
721
844
|
<tr>
|
|
722
845
|
<td class="col-md-4">
|
|
723
|
-
<
|
|
724
|
-
<br />
|
|
725
|
-
<code>
|
|
726
|
-
@ContentChildren(OpenTableSelectWindowDirective)<br />
|
|
727
|
-
</code>
|
|
846
|
+
<i>Default value : </i><code>linkedSignal(() => this.toDisplayInput())</code>
|
|
728
847
|
</td>
|
|
729
848
|
</tr>
|
|
730
849
|
<tr>
|
|
731
850
|
<td class="col-md-4">
|
|
732
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
851
|
+
<div class="io-line">Defined in <a href="" data-line="90" class="link-to-prism">src/lib/table-select-control.directive.ts:90</a></div>
|
|
733
852
|
</td>
|
|
734
853
|
</tr>
|
|
735
854
|
|
|
@@ -740,33 +859,77 @@
|
|
|
740
859
|
<tbody>
|
|
741
860
|
<tr>
|
|
742
861
|
<td class="col-md-4">
|
|
743
|
-
<a name="
|
|
862
|
+
<a name="toDisplayInput"></a>
|
|
744
863
|
<span class="name">
|
|
745
|
-
<span class="modifier"></span>
|
|
746
864
|
<span class="modifier">Public</span>
|
|
747
|
-
|
|
748
|
-
<
|
|
865
|
+
<span class="modifier">Readonly</span>
|
|
866
|
+
<span ><b>toDisplayInput</b></span>
|
|
867
|
+
<a href="#toDisplayInput"><span class="icon ion-ios-link"></span></a>
|
|
749
868
|
</span>
|
|
750
869
|
</td>
|
|
751
870
|
</tr>
|
|
752
871
|
<tr>
|
|
753
872
|
<td class="col-md-4">
|
|
754
|
-
<i>
|
|
873
|
+
<i>Default value : </i><code>input<(value: Data) => string | Promise<string>>(value => value as any, { alias: 'toDisplay' })</code>
|
|
874
|
+
</td>
|
|
875
|
+
</tr>
|
|
876
|
+
<tr>
|
|
877
|
+
<td class="col-md-4">
|
|
878
|
+
<div class="io-line">Defined in <a href="" data-line="89" class="link-to-prism">src/lib/table-select-control.directive.ts:89</a></div>
|
|
879
|
+
</td>
|
|
880
|
+
</tr>
|
|
881
|
+
|
|
755
882
|
|
|
883
|
+
</tbody>
|
|
884
|
+
</table>
|
|
885
|
+
<table class="table table-sm table-bordered">
|
|
886
|
+
<tbody>
|
|
887
|
+
<tr>
|
|
888
|
+
<td class="col-md-4">
|
|
889
|
+
<a name="toValue"></a>
|
|
890
|
+
<span class="name">
|
|
891
|
+
<span class="modifier">Public</span>
|
|
892
|
+
<span class="modifier">Readonly</span>
|
|
893
|
+
<span ><b>toValue</b></span>
|
|
894
|
+
<a href="#toValue"><span class="icon ion-ios-link"></span></a>
|
|
895
|
+
</span>
|
|
896
|
+
</td>
|
|
897
|
+
</tr>
|
|
898
|
+
<tr>
|
|
899
|
+
<td class="col-md-4">
|
|
900
|
+
<i>Default value : </i><code>linkedSignal(() => this.toValueInput())</code>
|
|
756
901
|
</td>
|
|
757
902
|
</tr>
|
|
903
|
+
<tr>
|
|
904
|
+
<td class="col-md-4">
|
|
905
|
+
<div class="io-line">Defined in <a href="" data-line="78" class="link-to-prism">src/lib/table-select-control.directive.ts:78</a></div>
|
|
906
|
+
</td>
|
|
907
|
+
</tr>
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
</tbody>
|
|
911
|
+
</table>
|
|
912
|
+
<table class="table table-sm table-bordered">
|
|
913
|
+
<tbody>
|
|
914
|
+
<tr>
|
|
915
|
+
<td class="col-md-4">
|
|
916
|
+
<a name="toValueInput"></a>
|
|
917
|
+
<span class="name">
|
|
918
|
+
<span class="modifier">Public</span>
|
|
919
|
+
<span class="modifier">Readonly</span>
|
|
920
|
+
<span ><b>toValueInput</b></span>
|
|
921
|
+
<a href="#toValueInput"><span class="icon ion-ios-link"></span></a>
|
|
922
|
+
</span>
|
|
923
|
+
</td>
|
|
924
|
+
</tr>
|
|
758
925
|
<tr>
|
|
759
926
|
<td class="col-md-4">
|
|
760
|
-
<
|
|
761
|
-
<br />
|
|
762
|
-
<code>
|
|
763
|
-
@ContentChild(TableSelectInputComponent)<br />
|
|
764
|
-
</code>
|
|
927
|
+
<i>Default value : </i><code>input<(value: Data) => unknown | Promise<unknown>>(undefined, { alias: 'toValue' })</code>
|
|
765
928
|
</td>
|
|
766
929
|
</tr>
|
|
767
930
|
<tr>
|
|
768
931
|
<td class="col-md-4">
|
|
769
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
932
|
+
<div class="io-line">Defined in <a href="" data-line="77" class="link-to-prism">src/lib/table-select-control.directive.ts:77</a></div>
|
|
770
933
|
</td>
|
|
771
934
|
</tr>
|
|
772
935
|
|
|
@@ -798,7 +961,7 @@
|
|
|
798
961
|
</tr>
|
|
799
962
|
<tr>
|
|
800
963
|
<td class="col-md-4">
|
|
801
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
964
|
+
<div class="io-line">Defined in <a href="" data-line="68" class="link-to-prism">src/lib/table-select-control.directive.ts:68</a></div>
|
|
802
965
|
</td>
|
|
803
966
|
</tr>
|
|
804
967
|
|
|
@@ -827,7 +990,7 @@
|
|
|
827
990
|
</tr>
|
|
828
991
|
<tr>
|
|
829
992
|
<td class="col-md-4">
|
|
830
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
993
|
+
<div class="io-line">Defined in <a href="" data-line="85" class="link-to-prism">src/lib/table-select-control.directive.ts:85</a></div>
|
|
831
994
|
</td>
|
|
832
995
|
</tr>
|
|
833
996
|
|
|
@@ -840,21 +1003,21 @@
|
|
|
840
1003
|
|
|
841
1004
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
842
1005
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
843
|
-
|
|
844
|
-
AfterViewInit,
|
|
845
|
-
ContentChild,
|
|
846
|
-
ContentChildren,
|
|
1006
|
+
afterNextRender,
|
|
847
1007
|
Directive,
|
|
1008
|
+
effect,
|
|
848
1009
|
ElementRef,
|
|
849
1010
|
inject,
|
|
850
1011
|
INJECTOR,
|
|
851
1012
|
Injector,
|
|
852
|
-
|
|
1013
|
+
input,
|
|
853
1014
|
isDevMode,
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
1015
|
+
linkedSignal,
|
|
1016
|
+
contentChildren,
|
|
1017
|
+
contentChild,
|
|
1018
|
+
DestroyRef,
|
|
1019
|
+
signal,
|
|
1020
|
+
untracked,
|
|
858
1021
|
} from '@angular/core';
|
|
859
1022
|
import { NgControl } from '@angular/forms';
|
|
860
1023
|
import { MatFormField } from '@angular/material/form-field';
|
|
@@ -869,7 +1032,7 @@ import { WindowTableSelectOptions } from '@rxap/material-table-window-syste
|
|
|
869
1032
|
import { Mixin } from '@rxap/mixin';
|
|
870
1033
|
import { Method } from '@rxap/pattern';
|
|
871
1034
|
import { coerceArray } from '@rxap/utilities';
|
|
872
|
-
import {
|
|
1035
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
873
1036
|
import { tap } from 'rxjs/operators';
|
|
874
1037
|
import { ExtractTableSelectColumnMapMixin } from './extract-table-select-column-map.mixin';
|
|
875
1038
|
import { ExtractTableSelectDataSourceMixin } from './extract-table-select-data-source.mixin';
|
|
@@ -892,20 +1055,17 @@ export interface TableSelectControlDirective<Data extends Record<string, a
|
|
|
892
1055
|
selector: 'mat-form-field[rxapTableSelectControl]',
|
|
893
1056
|
standalone: true,
|
|
894
1057
|
})
|
|
895
|
-
export class TableSelectControlDirective<Data extends Record<string, any> = Record<string, any>>
|
|
896
|
-
implements AfterViewInit, AfterContentInit, OnChanges, OnDestroy {
|
|
1058
|
+
export class TableSelectControlDirective<Data extends Record<string, any> = Record<string, any>> {
|
|
897
1059
|
|
|
898
|
-
|
|
899
|
-
public multiple?: boolean;
|
|
1060
|
+
public readonly multiple = input<boolean>();
|
|
900
1061
|
|
|
901
|
-
|
|
902
|
-
public openMethod!: Method<Data[], WindowTableSelectOptions<Data>>;
|
|
1062
|
+
public readonly openMethod = input.required<Method<Data[], WindowTableSelectOptions<Data>>>();
|
|
903
1063
|
|
|
904
|
-
|
|
905
|
-
public data
|
|
1064
|
+
public readonly dataInput = input<Data[] | BaseDataSource<Data[]> | AbstractTableDataSource<Data>>(undefined, { alias: 'data' });
|
|
1065
|
+
public readonly data = linkedSignal(() => this.dataInput());
|
|
906
1066
|
|
|
907
|
-
|
|
908
|
-
public columns
|
|
1067
|
+
public readonly columnsInput = input<Map<string, TableSelectColumn> | Record<string, TableSelectColumn>>(undefined, { alias: 'columns' });
|
|
1068
|
+
public readonly columns = linkedSignal(() => this.columnsInput());
|
|
909
1069
|
|
|
910
1070
|
public ngControl: NgControl | null = null;
|
|
911
1071
|
|
|
@@ -913,130 +1073,123 @@ export class TableSelectControlDirective<Data extends Record<string, any&g
|
|
|
913
1073
|
|
|
914
1074
|
public control!: RxapFormControl;
|
|
915
1075
|
|
|
916
|
-
|
|
917
|
-
public openTableSelectWindow!: QueryList<OpenTableSelectWindowDirective<Data>>;
|
|
1076
|
+
public readonly openTableSelectWindow = contentChildren(OpenTableSelectWindowDirective);
|
|
918
1077
|
|
|
919
|
-
|
|
920
|
-
public tableSelectInput!: TableSelectInputComponent;
|
|
1078
|
+
public readonly tableSelectInput = contentChild.required(TableSelectInputComponent);
|
|
921
1079
|
|
|
922
|
-
|
|
923
|
-
public
|
|
924
|
-
|
|
925
|
-
public toValue?: (value: Data) => unknown | Promise<unknown>;
|
|
1080
|
+
public readonly matLabel = contentChild<ElementRef>('mat-label');
|
|
1081
|
+
public readonly toValueInput = input<(value: Data) => unknown | Promise<unknown>>(undefined, { alias: 'toValue' });
|
|
1082
|
+
public readonly toValue = linkedSignal(() => this.toValueInput());
|
|
926
1083
|
public readonly injector: Injector = inject(INJECTOR);
|
|
927
1084
|
// required for the use mixin ExtractDatasourceMixin
|
|
928
1085
|
public readonly dataSourceLoader = inject(DataSourceLoader);
|
|
929
|
-
protected disabled
|
|
1086
|
+
protected readonly disabled = signal(false);
|
|
930
1087
|
protected matFormField: MatFormField | null = null;
|
|
931
|
-
private readonly _subscription = new Subscription();
|
|
932
1088
|
|
|
933
1089
|
public get selected(): Data[] {
|
|
934
1090
|
return this.value !== null ? [ this.value ] : [];
|
|
935
1091
|
}
|
|
936
1092
|
|
|
937
|
-
|
|
938
|
-
public toDisplay
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
1093
|
+
public readonly toDisplayInput = input<(value: Data) => string | Promise<string>>(value => value as any, { alias: 'toDisplay' });
|
|
1094
|
+
public readonly toDisplay = linkedSignal(() => this.toDisplayInput());
|
|
1095
|
+
|
|
1096
|
+
constructor() {
|
|
1097
|
+
// push the resolved inputs into the projected open table select window directives
|
|
1098
|
+
effect(() => {
|
|
1099
|
+
const windows = this.openTableSelectWindow();
|
|
1100
|
+
const columns = this.columns();
|
|
1101
|
+
const data = this.data();
|
|
1102
|
+
const toValue = this.toValue();
|
|
1103
|
+
const matLabel = this.matLabel();
|
|
1104
|
+
untracked(() => this.updateOpenTableSelectWindow(windows, columns, data, toValue, matLabel));
|
|
1105
|
+
});
|
|
1106
|
+
effect(() => {
|
|
1107
|
+
const windows = this.openTableSelectWindow();
|
|
1108
|
+
const disabled = this.disabled();
|
|
1109
|
+
untracked(() => windows.forEach(openTableSelectWindow => openTableSelectWindow.setDisabled(disabled)));
|
|
1110
|
+
});
|
|
1111
|
+
// react to the selection of the projected open table select window directives
|
|
1112
|
+
effect((onCleanup) => {
|
|
1113
|
+
const subscriptions = this.openTableSelectWindow().map(openTableSelectWindow =>
|
|
1114
|
+
openTableSelectWindow.selectedChange.subscribe($event => this.onSelected($event as Data[])),
|
|
1115
|
+
);
|
|
1116
|
+
onCleanup(() => subscriptions.forEach(subscription => subscription.unsubscribe()));
|
|
1117
|
+
});
|
|
1118
|
+
effect(() => {
|
|
1119
|
+
const toDisplay = this.toDisplay();
|
|
1120
|
+
const tableSelectInput = this.tableSelectInput();
|
|
1121
|
+
untracked(() => {
|
|
1122
|
+
if (toDisplay) {
|
|
1123
|
+
tableSelectInput.toDisplay = toDisplay.bind(this);
|
|
1124
|
+
}
|
|
1125
|
+
});
|
|
1126
|
+
});
|
|
1127
|
+
afterNextRender(() => this.initFromFormField());
|
|
948
1128
|
}
|
|
949
1129
|
|
|
950
|
-
|
|
1130
|
+
private initFromFormField() {
|
|
951
1131
|
this.matFormField = this.injector.get(MatFormField, null);
|
|
952
1132
|
if (!this.matFormField) {
|
|
953
1133
|
throw new Error('The mat form field could not be injected');
|
|
954
1134
|
}
|
|
955
1135
|
this.ngControl = this.matFormField._control.ngControl as NgControl;
|
|
956
1136
|
if (this.ngControl) {
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
this.
|
|
960
|
-
this.
|
|
961
|
-
this.
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
).subscribe());
|
|
1137
|
+
const control = this.ngControl.control;
|
|
1138
|
+
if (control instanceof RxapFormControl) {
|
|
1139
|
+
this.control = control;
|
|
1140
|
+
this.data.set(this.extractTableSelectDataSource());
|
|
1141
|
+
this.toDisplay.set(this.extractTableSelectToDisplay() ?? this.toDisplay());
|
|
1142
|
+
this.toValue.set(this.extractTableSelectToValue() ?? this.toValue());
|
|
1143
|
+
this.columns.set(this.extractTableSelectColumnMap());
|
|
1144
|
+
control.disabled$.pipe(
|
|
1145
|
+
tap(disabled => this.disabled.set(disabled)),
|
|
1146
|
+
takeUntilDestroyed(this.destroyRef),
|
|
1147
|
+
).subscribe();
|
|
969
1148
|
}
|
|
970
1149
|
} else {
|
|
971
1150
|
if (isDevMode()) {
|
|
972
1151
|
console.log('standalone mode');
|
|
973
1152
|
}
|
|
974
1153
|
}
|
|
975
|
-
this.updateTableSelectInput();
|
|
976
|
-
}
|
|
977
|
-
|
|
978
|
-
public ngAfterContentInit() {
|
|
979
|
-
this.updateOpenTableSelectWindow();
|
|
980
|
-
for (const openTableSelectWindow of this.openTableSelectWindow) {
|
|
981
|
-
this._subscription.add(openTableSelectWindow.selectedChange.pipe(
|
|
982
|
-
tap($event => this.onSelected($event)),
|
|
983
|
-
).subscribe());
|
|
984
|
-
}
|
|
985
|
-
|
|
986
|
-
}
|
|
987
|
-
|
|
988
|
-
public ngOnDestroy() {
|
|
989
|
-
this._subscription?.unsubscribe();
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
private updateTableSelectInput() {
|
|
993
|
-
if (this.toDisplay) {
|
|
994
|
-
this.tableSelectInput.toDisplay = this.toDisplay.bind(this);
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
private updateOpenTableSelectWindowDisabledState() {
|
|
999
|
-
for (const openTableSelectWindow of this.openTableSelectWindow) {
|
|
1000
|
-
openTableSelectWindow.disabled = this.disabled;
|
|
1001
|
-
openTableSelectWindow.checkInputs();
|
|
1002
|
-
}
|
|
1003
1154
|
}
|
|
1004
1155
|
|
|
1005
|
-
private
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1156
|
+
private readonly destroyRef = inject(DestroyRef);
|
|
1157
|
+
|
|
1158
|
+
private updateOpenTableSelectWindow(
|
|
1159
|
+
windows: readonly OpenTableSelectWindowDirective<any, any>[],
|
|
1160
|
+
columns: Map<string, TableSelectColumn> | Record<string, TableSelectColumn> | undefined,
|
|
1161
|
+
data: Data[] | BaseDataSource<Data[]> | AbstractTableDataSource<Data> | undefined,
|
|
1162
|
+
toValue: ((value: Data) => unknown | Promise<unknown>) | undefined,
|
|
1163
|
+
matLabel: ElementRef | undefined,
|
|
1164
|
+
) {
|
|
1165
|
+
for (const openTableSelectWindow of windows) {
|
|
1166
|
+
if (columns) {
|
|
1167
|
+
openTableSelectWindow.columns.set(columns);
|
|
1010
1168
|
}
|
|
1011
|
-
if (
|
|
1012
|
-
openTableSelectWindow.data
|
|
1169
|
+
if (data) {
|
|
1170
|
+
openTableSelectWindow.data.set(data);
|
|
1013
1171
|
}
|
|
1014
|
-
if (
|
|
1015
|
-
openTableSelectWindow.compareWith
|
|
1016
|
-
if (this.toValue) {
|
|
1017
|
-
return this.toValue(o1) === this.toValue(o2);
|
|
1018
|
-
}
|
|
1019
|
-
return o1 === o2;
|
|
1020
|
-
});
|
|
1172
|
+
if (toValue) {
|
|
1173
|
+
openTableSelectWindow.compareWith.set((o1: Data, o2: Data) => toValue(o1) === toValue(o2));
|
|
1021
1174
|
}
|
|
1022
|
-
if (
|
|
1023
|
-
openTableSelectWindow.label
|
|
1175
|
+
if (matLabel) {
|
|
1176
|
+
openTableSelectWindow.label.set(matLabel.nativeElement.innerText);
|
|
1024
1177
|
}
|
|
1025
1178
|
if (this.ngControl) {
|
|
1026
1179
|
const control = this.ngControl.control;
|
|
1027
1180
|
if (control?.value) {
|
|
1028
|
-
openTableSelectWindow.selected
|
|
1181
|
+
openTableSelectWindow.selected.set(coerceArray(control.value));
|
|
1029
1182
|
}
|
|
1030
1183
|
}
|
|
1031
|
-
openTableSelectWindow.checkInputs();
|
|
1032
1184
|
}
|
|
1033
1185
|
}
|
|
1034
1186
|
|
|
1035
1187
|
private async onSelected($event: Data[]) {
|
|
1188
|
+
const tableSelectInput = this.tableSelectInput();
|
|
1036
1189
|
if ($event?.length) {
|
|
1037
|
-
|
|
1190
|
+
tableSelectInput.display = await this.toDisplay()($event[0]);
|
|
1038
1191
|
this.value = $event[0];
|
|
1039
|
-
|
|
1192
|
+
tableSelectInput.setValue(this.value);
|
|
1040
1193
|
} else {
|
|
1041
1194
|
this.value = null;
|
|
1042
1195
|
}
|