@rxap/data-grid 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.
Files changed (68) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/compodoc/changelog.html +44 -0
  3. package/compodoc/components/DataGridComponent.html +517 -564
  4. package/compodoc/dependencies.html +5 -5
  5. package/compodoc/directives/DataGridCellDefDirective.html +9 -79
  6. package/compodoc/directives/DataGridEditCellDefDirective.html +7 -77
  7. package/compodoc/directives/DataGridHeaderCellDefDirective.html +7 -77
  8. package/compodoc/directives/DataGridRowDefDirective.html +139 -179
  9. package/compodoc/graph/dependencies.svg +15 -153
  10. package/compodoc/interfaces/DataGridCellDefDirectiveContext.html +3 -11
  11. package/compodoc/interfaces/DataGridEditCellDefDirectiveContext.html +3 -11
  12. package/compodoc/interfaces/DataGridHeaderCellDefDirectiveContext.html +3 -11
  13. package/compodoc/js/menu-wc.js +0 -52
  14. package/compodoc/js/menu-wc_es5.js +1 -1
  15. package/compodoc/js/search/search_index.js +2 -2
  16. package/compodoc/miscellaneous/functions.html +85 -25
  17. package/compodoc/modules.html +0 -17
  18. package/compodoc/overview.html +1 -185
  19. package/compodoc/properties.html +1 -1
  20. package/docs/documentation.json +1009 -1136
  21. package/docs/html/assets/navigation.js +1 -1
  22. package/docs/html/assets/search.js +1 -1
  23. package/docs/html/classes/DataGridCellDefDirective.html +2 -2
  24. package/docs/html/classes/DataGridComponent.html +11 -14
  25. package/docs/html/classes/DataGridEditCellDefDirective.html +2 -2
  26. package/docs/html/classes/DataGridHeaderCellDefDirective.html +2 -2
  27. package/docs/html/classes/DataGridRowDefDirective.html +7 -7
  28. package/docs/html/classes/DataGridValuePipe.html +2 -2
  29. package/docs/html/classes/IsEmptyPipe.html +2 -2
  30. package/docs/html/enums/DataGridMode.html +3 -3
  31. package/docs/html/index.html +2 -2
  32. package/docs/html/interfaces/DataGridCellDefDirectiveContext.html +2 -2
  33. package/docs/html/interfaces/DataGridEditCellDefDirectiveContext.html +2 -2
  34. package/docs/html/interfaces/DataGridHeaderCellDefDirectiveContext.html +2 -2
  35. package/docs/html/modules.html +1 -1
  36. package/docs/markdown/README.md +1 -1
  37. package/docs/markdown/classes/DataGridCellDefDirective.md +7 -15
  38. package/docs/markdown/classes/DataGridComponent.md +64 -104
  39. package/docs/markdown/classes/DataGridEditCellDefDirective.md +5 -13
  40. package/docs/markdown/classes/DataGridHeaderCellDefDirective.md +5 -13
  41. package/docs/markdown/classes/DataGridRowDefDirective.md +19 -19
  42. package/docs/markdown/classes/DataGridValuePipe.md +3 -3
  43. package/docs/markdown/classes/IsEmptyPipe.md +3 -3
  44. package/docs/markdown/enumerations/DataGridMode.md +4 -4
  45. package/docs/markdown/globals.md +2 -3
  46. package/docs/markdown/interfaces/DataGridCellDefDirectiveContext.md +4 -4
  47. package/docs/markdown/interfaces/DataGridEditCellDefDirectiveContext.md +4 -4
  48. package/docs/markdown/interfaces/DataGridHeaderCellDefDirectiveContext.md +3 -3
  49. package/docs/wiki/Class.DataGridCellDefDirective.md +6 -14
  50. package/docs/wiki/Class.DataGridComponent.md +63 -103
  51. package/docs/wiki/Class.DataGridEditCellDefDirective.md +4 -12
  52. package/docs/wiki/Class.DataGridHeaderCellDefDirective.md +4 -12
  53. package/docs/wiki/Class.DataGridRowDefDirective.md +18 -18
  54. package/docs/wiki/Class.DataGridValuePipe.md +2 -2
  55. package/docs/wiki/Class.IsEmptyPipe.md +2 -2
  56. package/docs/wiki/Enumeration.DataGridMode.md +3 -3
  57. package/docs/wiki/Interface.DataGridCellDefDirectiveContext.md +3 -3
  58. package/docs/wiki/Interface.DataGridEditCellDefDirectiveContext.md +3 -3
  59. package/docs/wiki/Interface.DataGridHeaderCellDefDirectiveContext.md +2 -2
  60. package/docs/wiki/_Sidebar.md +0 -1
  61. package/docs/wiki/globals.md +1 -2
  62. package/fesm2022/rxap-data-grid.mjs +98 -169
  63. package/fesm2022/rxap-data-grid.mjs.map +1 -1
  64. package/package.json +16 -16
  65. package/types/rxap-data-grid.d.ts +40 -51
  66. package/docs/html/classes/DataGridModule.html +0 -2
  67. package/docs/markdown/classes/DataGridModule.md +0 -19
  68. package/docs/wiki/Class.DataGridModule.md +0 -15
@@ -132,7 +132,6 @@
132
132
  <p class="comment">
133
133
  <code>OnInit</code>
134
134
  <code>OnDestroy</code>
135
- <code>AfterContentInit</code>
136
135
  </p>
137
136
 
138
137
 
@@ -171,7 +170,9 @@
171
170
  <code>GetFromObjectPipe</code>
172
171
  <code>ReplacePipe</code>
173
172
  <code>EscapeQuotationMarkPipe</code>
174
- <code>RxapFormsModule</code>
173
+ <code>FormSubmitFailedDirective</code>
174
+ <code>FormSubmitSuccessfulDirective</code>
175
+ <code>FormSubmitInvalidDirective</code>
175
176
  <code>DataGridValuePipe</code>
176
177
  <code>MatProgressSpinnerModule</code>
177
178
  <code>MatDividerModule</code>
@@ -217,6 +218,16 @@
217
218
  <tr>
218
219
  <td class="col-md-4">
219
220
  <ul class="index-list">
221
+ <li>
222
+ <span class="modifier">Protected</span>
223
+ <span class="modifier">Readonly</span>
224
+ <a href="#currentData" >currentData</a>
225
+ </li>
226
+ <li>
227
+ <span class="modifier">Public</span>
228
+ <span class="modifier">Readonly</span>
229
+ <a href="#data" >data</a>
230
+ </li>
220
231
  <li>
221
232
  <span class="modifier">Public</span>
222
233
  <a href="#data$" >data$</a>
@@ -225,10 +236,35 @@
225
236
  <span class="modifier">Public</span>
226
237
  <a href="#dataLoading$" >dataLoading$</a>
227
238
  </li>
239
+ <li>
240
+ <span class="modifier">Public</span>
241
+ <span class="modifier">Readonly</span>
242
+ <a href="#dataSource" >dataSource</a>
243
+ </li>
244
+ <li>
245
+ <span class="modifier">Public</span>
246
+ <span class="modifier">Readonly</span>
247
+ <a href="#displayProperties" >displayProperties</a>
248
+ </li>
249
+ <li>
250
+ <span class="modifier">Public</span>
251
+ <span class="modifier">Readonly</span>
252
+ <a href="#editModeChange" >editModeChange</a>
253
+ </li>
228
254
  <li>
229
255
  <span class="modifier">Public</span>
230
256
  <a href="#hasError$" >hasError$</a>
231
257
  </li>
258
+ <li>
259
+ <span class="modifier">Public</span>
260
+ <span class="modifier">Readonly</span>
261
+ <a href="#header" >header</a>
262
+ </li>
263
+ <li>
264
+ <span class="modifier">Public</span>
265
+ <span class="modifier">Readonly</span>
266
+ <a href="#hideEmptyProperties" >hideEmptyProperties</a>
267
+ </li>
232
268
  <li>
233
269
  <span class="modifier">Public</span>
234
270
  <a href="#isDevMode" >isDevMode</a>
@@ -252,20 +288,31 @@
252
288
  <span class="modifier">Public</span>
253
289
  <a href="#loading$" >loading$</a>
254
290
  </li>
291
+ <li>
292
+ <span class="modifier">Public</span>
293
+ <span class="modifier">Readonly</span>
294
+ <a href="#mode" >mode</a>
295
+ </li>
255
296
  <li>
256
297
  <span class="modifier">Public</span>
257
298
  <span class="modifier">Readonly</span>
258
299
  <a href="#mode$" >mode$</a>
259
300
  </li>
260
301
  <li>
261
- <span class="modifier"></span>
262
302
  <span class="modifier">Public</span>
303
+ <span class="modifier">Readonly</span>
263
304
  <a href="#rows" >rows</a>
264
305
  </li>
265
306
  <li>
266
307
  <span class="modifier">Public</span>
308
+ <span class="modifier">Readonly</span>
267
309
  <a href="#rows$" >rows$</a>
268
310
  </li>
311
+ <li>
312
+ <span class="modifier">Public</span>
313
+ <span class="modifier">Readonly</span>
314
+ <a href="#viewer" >viewer</a>
315
+ </li>
269
316
  </ul>
270
317
  </td>
271
318
  </tr>
@@ -324,21 +371,6 @@
324
371
  <li>
325
372
  <a href="#data" >data</a>
326
373
  </li>
327
- <li>
328
- <a href="#dataSource" >dataSource</a>
329
- </li>
330
- <li>
331
- <a href="#displayProperties" >displayProperties</a>
332
- </li>
333
- <li>
334
- <a href="#header" >header</a>
335
- </li>
336
- <li>
337
- <a href="#hideEmptyProperties" >hideEmptyProperties</a>
338
- </li>
339
- <li>
340
- <a href="#mode" >mode</a>
341
- </li>
342
374
  <li>
343
375
  <a href="#viewer" >viewer</a>
344
376
  </li>
@@ -346,20 +378,6 @@
346
378
  </td>
347
379
  </tr>
348
380
 
349
- <tr>
350
- <td class="col-md-4">
351
- <h6><b>Outputs</b></h6>
352
- </td>
353
- </tr>
354
- <tr>
355
- <td class="col-md-4">
356
- <ul class="index-list">
357
- <li>
358
- <a href="#editModeChange" >editModeChange</a>
359
- </li>
360
- </ul>
361
- </td>
362
- </tr>
363
381
 
364
382
 
365
383
 
@@ -371,9 +389,6 @@
371
389
  <tr>
372
390
  <td class="col-md-4">
373
391
  <ul class="index-list">
374
- <li>
375
- <a href="#mode" >mode</a>
376
- </li>
377
392
  <li>
378
393
  <a href="#isFormModeOrHasAnyEditCells" >isFormModeOrHasAnyEditCells</a>
379
394
  </li>
@@ -399,78 +414,6 @@
399
414
  </table>
400
415
  </section>
401
416
 
402
- <section data-compodoc="block-constructor">
403
- <h3 id="constructor">Constructor</h3>
404
- <table class="table table-sm table-bordered">
405
- <tbody>
406
- <tr>
407
- <td class="col-md-4">
408
- <code>constructor(cdr: ChangeDetectorRef, router: Router, formDirective?: FormDirective)</code>
409
- </td>
410
- </tr>
411
- <tr>
412
- <td class="col-md-4">
413
- <div class="io-line">Defined in <a href="" data-line="142" class="link-to-prism">src/lib/data-grid.component.ts:142</a></div>
414
- </td>
415
- </tr>
416
-
417
- <tr>
418
- <td class="col-md-4">
419
- <div>
420
- <b>Parameters :</b>
421
- <table class="params">
422
- <thead>
423
- <tr>
424
- <td>Name</td>
425
- <td>Type</td>
426
- <td>Optional</td>
427
- </tr>
428
- </thead>
429
- <tbody>
430
- <tr>
431
- <td>cdr</td>
432
-
433
- <td>
434
- <code>ChangeDetectorRef</code>
435
- </td>
436
-
437
- <td>
438
- No
439
- </td>
440
-
441
- </tr>
442
- <tr>
443
- <td>router</td>
444
-
445
- <td>
446
- <code>Router</code>
447
- </td>
448
-
449
- <td>
450
- No
451
- </td>
452
-
453
- </tr>
454
- <tr>
455
- <td>formDirective</td>
456
-
457
- <td>
458
- <code>FormDirective</code>
459
- </td>
460
-
461
- <td>
462
- Yes
463
- </td>
464
-
465
- </tr>
466
- </tbody>
467
- </table>
468
- </div>
469
- </td>
470
- </tr>
471
- </tbody>
472
- </table>
473
- </section>
474
417
 
475
418
  <section data-compodoc="block-inputs">
476
419
  <h3 id="inputs">Inputs</h3>
@@ -481,136 +424,10 @@
481
424
  <a name="data"></a>
482
425
  <b>data</b>
483
426
  </td>
484
- </tr>
485
- <tr>
486
- <td class="col-md-4">
487
- <i>Type : </i> <code>T</code>
488
-
489
- </td>
490
- </tr>
491
- <tr>
492
- <td class="col-md-2" colspan="2">
493
- <div class="io-line">Defined in <a href="" data-line="116" class="link-to-prism">src/lib/data-grid.component.ts:116</a></div>
494
- </td>
495
- </tr>
496
- </tbody>
497
- </table>
498
- <table class="table table-sm table-bordered">
499
- <tbody>
500
- <tr>
501
- <td class="col-md-4">
502
- <a name="dataSource"></a>
503
- <b>dataSource</b>
504
- </td>
505
- </tr>
506
- <tr>
507
- <td class="col-md-4">
508
- <i>Type : </i> <code>DataSource&lt;T&gt;</code>
509
-
510
- </td>
511
- </tr>
512
- <tr>
513
- <td class="col-md-2" colspan="2">
514
- <div class="io-line">Defined in <a href="" data-line="108" class="link-to-prism">src/lib/data-grid.component.ts:108</a></div>
515
- </td>
516
- </tr>
517
- </tbody>
518
- </table>
519
- <table class="table table-sm table-bordered">
520
- <tbody>
521
- <tr>
522
- <td class="col-md-4">
523
- <a name="displayProperties"></a>
524
- <b>displayProperties</b>
525
- </td>
526
- </tr>
527
- <tr>
528
- <td class="col-md-4">
529
- <i>Type : </i> <code>string[] | null</code>
530
-
531
- </td>
532
- </tr>
533
- <tr>
534
- <td class="col-md-4">
535
- <i>Default value : </i><code>null</code>
536
- </td>
537
- </tr>
538
- <tr>
539
- <td class="col-md-2" colspan="2">
540
- <div class="io-line">Defined in <a href="" data-line="119" class="link-to-prism">src/lib/data-grid.component.ts:119</a></div>
541
- </td>
542
- </tr>
543
- </tbody>
544
- </table>
545
- <table class="table table-sm table-bordered">
546
- <tbody>
547
- <tr>
548
- <td class="col-md-4">
549
- <a name="header"></a>
550
- <b>header</b>
551
- </td>
552
- </tr>
553
- <tr>
554
- <td class="col-md-4">
555
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
556
-
557
- </td>
558
- </tr>
559
- <tr>
560
- <td class="col-md-4">
561
- <i>Default value : </i><code>false</code>
562
- </td>
563
- </tr>
564
- <tr>
565
- <td class="col-md-2" colspan="2">
566
- <div class="io-line">Defined in <a href="" data-line="105" class="link-to-prism">src/lib/data-grid.component.ts:105</a></div>
567
- </td>
568
- </tr>
569
- </tbody>
570
- </table>
571
- <table class="table table-sm table-bordered">
572
- <tbody>
573
- <tr>
574
- <td class="col-md-4">
575
- <a name="hideEmptyProperties"></a>
576
- <b>hideEmptyProperties</b>
577
- </td>
578
- </tr>
579
- <tr>
580
- <td class="col-md-4">
581
- <i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
582
-
583
- </td>
584
- </tr>
585
- <tr>
586
- <td class="col-md-4">
587
- <i>Default value : </i><code>false</code>
588
- </td>
589
- </tr>
590
- <tr>
591
- <td class="col-md-2" colspan="2">
592
- <div class="io-line">Defined in <a href="" data-line="122" class="link-to-prism">src/lib/data-grid.component.ts:122</a></div>
593
- </td>
594
- </tr>
595
- </tbody>
596
- </table>
597
- <table class="table table-sm table-bordered">
598
- <tbody>
599
- <tr>
600
- <td class="col-md-4">
601
- <a name="mode"></a>
602
- <b>mode</b>
603
- </td>
604
- </tr>
605
- <tr>
606
- <td class="col-md-4">
607
- <i>Type : </i> <code><a href="../miscellaneous/enumerations.html#DataGridMode" target="_self" >DataGridMode | string</a></code>
608
-
609
- </td>
610
427
  </tr>
611
428
  <tr>
612
429
  <td class="col-md-2" colspan="2">
613
- <div class="io-line">Defined in <a href="" data-line="157" class="link-to-prism">src/lib/data-grid.component.ts:157</a></div>
430
+ <div class="io-line">Defined in <a href="" data-line="104" class="link-to-prism">src/lib/data-grid.component.ts:104</a></div>
614
431
  </td>
615
432
  </tr>
616
433
  </tbody>
@@ -623,12 +440,6 @@
623
440
  <b>viewer</b>
624
441
  </td>
625
442
  </tr>
626
- <tr>
627
- <td class="col-md-4">
628
- <i>Type : </i> <code>DataSourceViewer</code>
629
-
630
- </td>
631
- </tr>
632
443
  <tr>
633
444
  <td class="col-md-4">
634
445
  <i>Default value : </i><code>this</code>
@@ -636,36 +447,13 @@
636
447
  </tr>
637
448
  <tr>
638
449
  <td class="col-md-2" colspan="2">
639
- <div class="io-line">Defined in <a href="" data-line="113" class="link-to-prism">src/lib/data-grid.component.ts:113</a></div>
450
+ <div class="io-line">Defined in <a href="" data-line="102" class="link-to-prism">src/lib/data-grid.component.ts:102</a></div>
640
451
  </td>
641
452
  </tr>
642
453
  </tbody>
643
454
  </table>
644
455
  </section>
645
- <section data-compodoc="block-outputs">
646
- <h3 id="outputs">Outputs</h3>
647
- <table class="table table-sm table-bordered">
648
- <tbody>
649
- <tr>
650
- <td class="col-md-4">
651
- <a name="editModeChange"></a>
652
- <b>editModeChange</b>
653
- </td>
654
- </tr>
655
- <tr>
656
- <td class="col-md-4">
657
- <i>Type : </i> <code>EventEmitter</code>
658
456
 
659
- </td>
660
- </tr>
661
- <tr>
662
- <td class="col-md-2" colspan="2">
663
- <div class="io-line">Defined in <a href="" data-line="127" class="link-to-prism">src/lib/data-grid.component.ts:127</a></div>
664
- </td>
665
- </tr>
666
- </tbody>
667
- </table>
668
- </section>
669
457
 
670
458
 
671
459
  <section data-compodoc="block-methods">
@@ -695,8 +483,8 @@
695
483
 
696
484
  <tr>
697
485
  <td class="col-md-4">
698
- <div class="io-line">Defined in <a href="" data-line="366"
699
- class="link-to-prism">src/lib/data-grid.component.ts:366</a></div>
486
+ <div class="io-line">Defined in <a href="" data-line="331"
487
+ class="link-to-prism">src/lib/data-grid.component.ts:331</a></div>
700
488
  </td>
701
489
  </tr>
702
490
 
@@ -734,8 +522,8 @@
734
522
 
735
523
  <tr>
736
524
  <td class="col-md-4">
737
- <div class="io-line">Defined in <a href="" data-line="286"
738
- class="link-to-prism">src/lib/data-grid.component.ts:286</a></div>
525
+ <div class="io-line">Defined in <a href="" data-line="250"
526
+ class="link-to-prism">src/lib/data-grid.component.ts:250</a></div>
739
527
  </td>
740
528
  </tr>
741
529
 
@@ -773,8 +561,8 @@
773
561
 
774
562
  <tr>
775
563
  <td class="col-md-4">
776
- <div class="io-line">Defined in <a href="" data-line="264"
777
- class="link-to-prism">src/lib/data-grid.component.ts:264</a></div>
564
+ <div class="io-line">Defined in <a href="" data-line="227"
565
+ class="link-to-prism">src/lib/data-grid.component.ts:227</a></div>
778
566
  </td>
779
567
  </tr>
780
568
 
@@ -842,8 +630,8 @@
842
630
 
843
631
  <tr>
844
632
  <td class="col-md-4">
845
- <div class="io-line">Defined in <a href="" data-line="199"
846
- class="link-to-prism">src/lib/data-grid.component.ts:199</a></div>
633
+ <div class="io-line">Defined in <a href="" data-line="160"
634
+ class="link-to-prism">src/lib/data-grid.component.ts:160</a></div>
847
635
  </td>
848
636
  </tr>
849
637
 
@@ -881,8 +669,8 @@
881
669
 
882
670
  <tr>
883
671
  <td class="col-md-4">
884
- <div class="io-line">Defined in <a href="" data-line="358"
885
- class="link-to-prism">src/lib/data-grid.component.ts:358</a></div>
672
+ <div class="io-line">Defined in <a href="" data-line="322"
673
+ class="link-to-prism">src/lib/data-grid.component.ts:322</a></div>
886
674
  </td>
887
675
  </tr>
888
676
 
@@ -917,129 +705,301 @@
917
705
  </td>
918
706
  </tr>
919
707
 
920
-
708
+
709
+ <tr>
710
+ <td class="col-md-4">
711
+ <div class="io-line">Defined in <a href="" data-line="312"
712
+ class="link-to-prism">src/lib/data-grid.component.ts:312</a></div>
713
+ </td>
714
+ </tr>
715
+
716
+
717
+ <tr>
718
+ <td class="col-md-4">
719
+
720
+ <div class="io-description">
721
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
722
+
723
+ </div>
724
+ </td>
725
+ </tr>
726
+ </tbody>
727
+ </table>
728
+ <table class="table table-sm table-bordered">
729
+ <tbody>
730
+ <tr>
731
+ <td class="col-md-4">
732
+ <a name="retry"></a>
733
+ <span class="name">
734
+ <span ><b>retry</b></span>
735
+ <a href="#retry"><span class="icon ion-ios-link"></span></a>
736
+ </span>
737
+ </td>
738
+ </tr>
739
+ <tr>
740
+ <td class="col-md-4">
741
+ <code>retry()</code>
742
+ </td>
743
+ </tr>
744
+
745
+
746
+ <tr>
747
+ <td class="col-md-4">
748
+ <div class="io-line">Defined in <a href="" data-line="336"
749
+ class="link-to-prism">src/lib/data-grid.component.ts:336</a></div>
750
+ </td>
751
+ </tr>
752
+
753
+
754
+ <tr>
755
+ <td class="col-md-4">
756
+
757
+ <div class="io-description">
758
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
759
+
760
+ </div>
761
+ </td>
762
+ </tr>
763
+ </tbody>
764
+ </table>
765
+ <table class="table table-sm table-bordered">
766
+ <tbody>
767
+ <tr>
768
+ <td class="col-md-4">
769
+ <a name="submit"></a>
770
+ <span class="name">
771
+ <span class="modifier">Public</span>
772
+ <span ><b>submit</b></span>
773
+ <a href="#submit"><span class="icon ion-ios-link"></span></a>
774
+ </span>
775
+ </td>
776
+ </tr>
777
+ <tr>
778
+ <td class="col-md-4">
779
+ <span class="modifier-icon icon ion-ios-reset"></span>
780
+ <code>submit()</code>
781
+ </td>
782
+ </tr>
783
+
784
+
785
+ <tr>
786
+ <td class="col-md-4">
787
+ <div class="io-line">Defined in <a href="" data-line="266"
788
+ class="link-to-prism">src/lib/data-grid.component.ts:266</a></div>
789
+ </td>
790
+ </tr>
791
+
792
+
793
+ <tr>
794
+ <td class="col-md-4">
795
+
796
+ <div class="io-description">
797
+ <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
798
+
799
+ </div>
800
+ </td>
801
+ </tr>
802
+ </tbody>
803
+ </table>
804
+ </section>
805
+ <section data-compodoc="block-properties">
806
+
807
+ <h3 id="inputs">
808
+ Properties
809
+ </h3>
810
+ <table class="table table-sm table-bordered">
811
+ <tbody>
812
+ <tr>
813
+ <td class="col-md-4">
814
+ <a name="currentData"></a>
815
+ <span class="name">
816
+ <span class="modifier">Protected</span>
817
+ <span class="modifier">Readonly</span>
818
+ <span ><b>currentData</b></span>
819
+ <a href="#currentData"><span class="icon ion-ios-link"></span></a>
820
+ </span>
821
+ </td>
822
+ </tr>
823
+ <tr>
824
+ <td class="col-md-4">
825
+ <i>Default value : </i><code>linkedSignal(() &#x3D;&gt; this.data())</code>
826
+ </td>
827
+ </tr>
828
+ <tr>
829
+ <td class="col-md-4">
830
+ <div class="io-line">Defined in <a href="" data-line="109" class="link-to-prism">src/lib/data-grid.component.ts:109</a></div>
831
+ </td>
832
+ </tr>
833
+
834
+ <tr>
835
+ <td class="col-md-4">
836
+ <div class="io-description"><p>The current data. Initialized from the data input and updated with the values emitted by the data source</p>
837
+ </div>
838
+ </td>
839
+ </tr>
840
+
841
+ </tbody>
842
+ </table>
843
+ <table class="table table-sm table-bordered">
844
+ <tbody>
845
+ <tr>
846
+ <td class="col-md-4">
847
+ <a name="data"></a>
848
+ <span class="name">
849
+ <span class="modifier">Public</span>
850
+ <span class="modifier">Readonly</span>
851
+ <span ><b>data</b></span>
852
+ <a href="#data"><span class="icon ion-ios-link"></span></a>
853
+ </span>
854
+ </td>
855
+ </tr>
856
+ <tr>
857
+ <td class="col-md-4">
858
+ <div class="io-line">Defined in <a href="" data-line="104" class="link-to-prism">src/lib/data-grid.component.ts:104</a></div>
859
+ </td>
860
+ </tr>
861
+
862
+
863
+ </tbody>
864
+ </table>
865
+ <table class="table table-sm table-bordered">
866
+ <tbody>
867
+ <tr>
868
+ <td class="col-md-4">
869
+ <a name="data$"></a>
870
+ <span class="name">
871
+ <span class="modifier">Public</span>
872
+ <span ><b>data$</b></span>
873
+ <a href="#data$"><span class="icon ion-ios-link"></span></a>
874
+ </span>
875
+ </td>
876
+ </tr>
877
+ <tr>
878
+ <td class="col-md-4">
879
+ <i>Type : </i> <code>Observable&lt;T&gt;</code>
880
+
881
+ </td>
882
+ </tr>
883
+ <tr>
884
+ <td class="col-md-4">
885
+ <div class="io-line">Defined in <a href="" data-line="100" class="link-to-prism">src/lib/data-grid.component.ts:100</a></div>
886
+ </td>
887
+ </tr>
888
+
889
+
890
+ </tbody>
891
+ </table>
892
+ <table class="table table-sm table-bordered">
893
+ <tbody>
894
+ <tr>
895
+ <td class="col-md-4">
896
+ <a name="dataLoading$"></a>
897
+ <span class="name">
898
+ <span class="modifier">Public</span>
899
+ <span ><b>dataLoading$</b></span>
900
+ <a href="#dataLoading$"><span class="icon ion-ios-link"></span></a>
901
+ </span>
902
+ </td>
903
+ </tr>
904
+ <tr>
905
+ <td class="col-md-4">
906
+ <i>Type : </i> <code>Observable&lt;boolean&gt;</code>
907
+
908
+ </td>
909
+ </tr>
910
+ <tr>
911
+ <td class="col-md-4">
912
+ <i>Default value : </i><code>of(false)</code>
913
+ </td>
914
+ </tr>
921
915
  <tr>
922
916
  <td class="col-md-4">
923
- <div class="io-line">Defined in <a href="" data-line="349"
924
- class="link-to-prism">src/lib/data-grid.component.ts:349</a></div>
917
+ <div class="io-line">Defined in <a href="" data-line="123" class="link-to-prism">src/lib/data-grid.component.ts:123</a></div>
925
918
  </td>
926
919
  </tr>
927
920
 
928
921
 
929
- <tr>
930
- <td class="col-md-4">
931
-
932
- <div class="io-description">
933
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
934
-
935
- </div>
936
- </td>
937
- </tr>
938
922
  </tbody>
939
923
  </table>
940
924
  <table class="table table-sm table-bordered">
941
925
  <tbody>
942
926
  <tr>
943
927
  <td class="col-md-4">
944
- <a name="retry"></a>
928
+ <a name="dataSource"></a>
945
929
  <span class="name">
946
- <span ><b>retry</b></span>
947
- <a href="#retry"><span class="icon ion-ios-link"></span></a>
930
+ <span class="modifier">Public</span>
931
+ <span class="modifier">Readonly</span>
932
+ <span ><b>dataSource</b></span>
933
+ <a href="#dataSource"><span class="icon ion-ios-link"></span></a>
948
934
  </span>
949
935
  </td>
950
936
  </tr>
951
- <tr>
952
- <td class="col-md-4">
953
- <code>retry()</code>
954
- </td>
955
- </tr>
956
-
957
-
937
+ <tr>
938
+ <td class="col-md-4">
939
+ <i>Default value : </i><code>input&lt;DataSource&lt;T&gt;&gt;()</code>
940
+ </td>
941
+ </tr>
958
942
  <tr>
959
943
  <td class="col-md-4">
960
- <div class="io-line">Defined in <a href="" data-line="371"
961
- class="link-to-prism">src/lib/data-grid.component.ts:371</a></div>
944
+ <div class="io-line">Defined in <a href="" data-line="98" class="link-to-prism">src/lib/data-grid.component.ts:98</a></div>
962
945
  </td>
963
946
  </tr>
964
947
 
965
948
 
966
- <tr>
967
- <td class="col-md-4">
968
-
969
- <div class="io-description">
970
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
971
-
972
- </div>
973
- </td>
974
- </tr>
975
949
  </tbody>
976
950
  </table>
977
951
  <table class="table table-sm table-bordered">
978
952
  <tbody>
979
953
  <tr>
980
954
  <td class="col-md-4">
981
- <a name="submit"></a>
955
+ <a name="displayProperties"></a>
982
956
  <span class="name">
983
957
  <span class="modifier">Public</span>
984
- <span ><b>submit</b></span>
985
- <a href="#submit"><span class="icon ion-ios-link"></span></a>
958
+ <span class="modifier">Readonly</span>
959
+ <span ><b>displayProperties</b></span>
960
+ <a href="#displayProperties"><span class="icon ion-ios-link"></span></a>
986
961
  </span>
987
962
  </td>
988
963
  </tr>
989
- <tr>
990
- <td class="col-md-4">
991
- <span class="modifier-icon icon ion-ios-reset"></span>
992
- <code>submit()</code>
993
- </td>
994
- </tr>
995
-
996
-
964
+ <tr>
965
+ <td class="col-md-4">
966
+ <i>Default value : </i><code>input&lt;string[] | null&gt;(null)</code>
967
+ </td>
968
+ </tr>
997
969
  <tr>
998
970
  <td class="col-md-4">
999
- <div class="io-line">Defined in <a href="" data-line="302"
1000
- class="link-to-prism">src/lib/data-grid.component.ts:302</a></div>
971
+ <div class="io-line">Defined in <a href="" data-line="111" class="link-to-prism">src/lib/data-grid.component.ts:111</a></div>
1001
972
  </td>
1002
973
  </tr>
1003
974
 
1004
975
 
1005
- <tr>
1006
- <td class="col-md-4">
1007
-
1008
- <div class="io-description">
1009
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
1010
-
1011
- </div>
1012
- </td>
1013
- </tr>
1014
976
  </tbody>
1015
977
  </table>
1016
- </section>
1017
- <section data-compodoc="block-properties">
1018
-
1019
- <h3 id="inputs">
1020
- Properties
1021
- </h3>
1022
978
  <table class="table table-sm table-bordered">
1023
979
  <tbody>
1024
980
  <tr>
1025
981
  <td class="col-md-4">
1026
- <a name="data$"></a>
982
+ <a name="editModeChange"></a>
1027
983
  <span class="name">
1028
984
  <span class="modifier">Public</span>
1029
- <span ><b>data$</b></span>
1030
- <a href="#data$"><span class="icon ion-ios-link"></span></a>
985
+ <span class="modifier">Readonly</span>
986
+ <span ><b>editModeChange</b></span>
987
+ <a href="#editModeChange"><span class="icon ion-ios-link"></span></a>
1031
988
  </span>
1032
989
  </td>
1033
990
  </tr>
1034
991
  <tr>
1035
992
  <td class="col-md-4">
1036
- <i>Type : </i> <code>Observable&lt;T&gt;</code>
1037
-
993
+ <i>Default value : </i><code>output&lt;{
994
+ mode: boolean;
995
+ data?: T;
996
+ done: () &#x3D;&gt; void;
997
+ }&gt;()</code>
1038
998
  </td>
1039
999
  </tr>
1040
1000
  <tr>
1041
1001
  <td class="col-md-4">
1042
- <div class="io-line">Defined in <a href="" data-line="110" class="link-to-prism">src/lib/data-grid.component.ts:110</a></div>
1002
+ <div class="io-line">Defined in <a href="" data-line="116" class="link-to-prism">src/lib/data-grid.component.ts:116</a></div>
1043
1003
  </td>
1044
1004
  </tr>
1045
1005
 
@@ -1050,11 +1010,11 @@
1050
1010
  <tbody>
1051
1011
  <tr>
1052
1012
  <td class="col-md-4">
1053
- <a name="dataLoading$"></a>
1013
+ <a name="hasError$"></a>
1054
1014
  <span class="name">
1055
1015
  <span class="modifier">Public</span>
1056
- <span ><b>dataLoading$</b></span>
1057
- <a href="#dataLoading$"><span class="icon ion-ios-link"></span></a>
1016
+ <span ><b>hasError$</b></span>
1017
+ <a href="#hasError$"><span class="icon ion-ios-link"></span></a>
1058
1018
  </span>
1059
1019
  </td>
1060
1020
  </tr>
@@ -1071,7 +1031,7 @@
1071
1031
  </tr>
1072
1032
  <tr>
1073
1033
  <td class="col-md-4">
1074
- <div class="io-line">Defined in <a href="" data-line="134" class="link-to-prism">src/lib/data-grid.component.ts:134</a></div>
1034
+ <div class="io-line">Defined in <a href="" data-line="122" class="link-to-prism">src/lib/data-grid.component.ts:122</a></div>
1075
1035
  </td>
1076
1036
  </tr>
1077
1037
 
@@ -1082,28 +1042,50 @@
1082
1042
  <tbody>
1083
1043
  <tr>
1084
1044
  <td class="col-md-4">
1085
- <a name="hasError$"></a>
1045
+ <a name="header"></a>
1086
1046
  <span class="name">
1087
1047
  <span class="modifier">Public</span>
1088
- <span ><b>hasError$</b></span>
1089
- <a href="#hasError$"><span class="icon ion-ios-link"></span></a>
1048
+ <span class="modifier">Readonly</span>
1049
+ <span ><b>header</b></span>
1050
+ <a href="#header"><span class="icon ion-ios-link"></span></a>
1090
1051
  </span>
1091
1052
  </td>
1092
1053
  </tr>
1093
1054
  <tr>
1094
1055
  <td class="col-md-4">
1095
- <i>Type : </i> <code>Observable&lt;boolean&gt;</code>
1096
-
1056
+ <i>Default value : </i><code>input(false, { transform: coerceBoolean })</code>
1097
1057
  </td>
1098
1058
  </tr>
1059
+ <tr>
1060
+ <td class="col-md-4">
1061
+ <div class="io-line">Defined in <a href="" data-line="96" class="link-to-prism">src/lib/data-grid.component.ts:96</a></div>
1062
+ </td>
1063
+ </tr>
1064
+
1065
+
1066
+ </tbody>
1067
+ </table>
1068
+ <table class="table table-sm table-bordered">
1069
+ <tbody>
1070
+ <tr>
1071
+ <td class="col-md-4">
1072
+ <a name="hideEmptyProperties"></a>
1073
+ <span class="name">
1074
+ <span class="modifier">Public</span>
1075
+ <span class="modifier">Readonly</span>
1076
+ <span ><b>hideEmptyProperties</b></span>
1077
+ <a href="#hideEmptyProperties"><span class="icon ion-ios-link"></span></a>
1078
+ </span>
1079
+ </td>
1080
+ </tr>
1099
1081
  <tr>
1100
1082
  <td class="col-md-4">
1101
- <i>Default value : </i><code>of(false)</code>
1083
+ <i>Default value : </i><code>input(false, { transform: coerceBoolean })</code>
1102
1084
  </td>
1103
1085
  </tr>
1104
1086
  <tr>
1105
1087
  <td class="col-md-4">
1106
- <div class="io-line">Defined in <a href="" data-line="133" class="link-to-prism">src/lib/data-grid.component.ts:133</a></div>
1088
+ <div class="io-line">Defined in <a href="" data-line="113" class="link-to-prism">src/lib/data-grid.component.ts:113</a></div>
1107
1089
  </td>
1108
1090
  </tr>
1109
1091
 
@@ -1129,7 +1111,7 @@
1129
1111
  </tr>
1130
1112
  <tr>
1131
1113
  <td class="col-md-4">
1132
- <div class="io-line">Defined in <a href="" data-line="102" class="link-to-prism">src/lib/data-grid.component.ts:102</a></div>
1114
+ <div class="io-line">Defined in <a href="" data-line="94" class="link-to-prism">src/lib/data-grid.component.ts:94</a></div>
1133
1115
  </td>
1134
1116
  </tr>
1135
1117
 
@@ -1154,10 +1136,15 @@
1154
1136
  <i>Type : </i> <code>Observable&lt;boolean&gt;</code>
1155
1137
 
1156
1138
  </td>
1139
+ </tr>
1140
+ <tr>
1141
+ <td class="col-md-4">
1142
+ <i>Default value : </i><code>toObservable(this._editMode)</code>
1143
+ </td>
1157
1144
  </tr>
1158
1145
  <tr>
1159
1146
  <td class="col-md-4">
1160
- <div class="io-line">Defined in <a href="" data-line="136" class="link-to-prism">src/lib/data-grid.component.ts:136</a></div>
1147
+ <div class="io-line">Defined in <a href="" data-line="127" class="link-to-prism">src/lib/data-grid.component.ts:127</a></div>
1161
1148
  </td>
1162
1149
  </tr>
1163
1150
 
@@ -1182,10 +1169,15 @@
1182
1169
  <i>Type : </i> <code>Observable&lt;boolean&gt;</code>
1183
1170
 
1184
1171
  </td>
1172
+ </tr>
1173
+ <tr>
1174
+ <td class="col-md-4">
1175
+ <i>Default value : </i><code>this.mode$.pipe(map(mode &#x3D;&gt; mode &#x3D;&#x3D;&#x3D; DataGridMode.FORM))</code>
1176
+ </td>
1185
1177
  </tr>
1186
1178
  <tr>
1187
1179
  <td class="col-md-4">
1188
- <div class="io-line">Defined in <a href="" data-line="138" class="link-to-prism">src/lib/data-grid.component.ts:138</a></div>
1180
+ <div class="io-line">Defined in <a href="" data-line="129" class="link-to-prism">src/lib/data-grid.component.ts:129</a></div>
1189
1181
  </td>
1190
1182
  </tr>
1191
1183
 
@@ -1210,10 +1202,15 @@
1210
1202
  <i>Type : </i> <code>Observable&lt;boolean&gt;</code>
1211
1203
 
1212
1204
  </td>
1205
+ </tr>
1206
+ <tr>
1207
+ <td class="col-md-4">
1208
+ <i>Default value : </i><code>this.mode$.pipe(map(mode &#x3D;&gt; mode &#x3D;&#x3D;&#x3D; DataGridMode.PLAIN))</code>
1209
+ </td>
1213
1210
  </tr>
1214
1211
  <tr>
1215
1212
  <td class="col-md-4">
1216
- <div class="io-line">Defined in <a href="" data-line="139" class="link-to-prism">src/lib/data-grid.component.ts:139</a></div>
1213
+ <div class="io-line">Defined in <a href="" data-line="130" class="link-to-prism">src/lib/data-grid.component.ts:130</a></div>
1217
1214
  </td>
1218
1215
  </tr>
1219
1216
 
@@ -1239,7 +1236,34 @@
1239
1236
  </tr>
1240
1237
  <tr>
1241
1238
  <td class="col-md-4">
1242
- <div class="io-line">Defined in <a href="" data-line="135" class="link-to-prism">src/lib/data-grid.component.ts:135</a></div>
1239
+ <div class="io-line">Defined in <a href="" data-line="124" class="link-to-prism">src/lib/data-grid.component.ts:124</a></div>
1240
+ </td>
1241
+ </tr>
1242
+
1243
+
1244
+ </tbody>
1245
+ </table>
1246
+ <table class="table table-sm table-bordered">
1247
+ <tbody>
1248
+ <tr>
1249
+ <td class="col-md-4">
1250
+ <a name="mode"></a>
1251
+ <span class="name">
1252
+ <span class="modifier">Public</span>
1253
+ <span class="modifier">Readonly</span>
1254
+ <span ><b>mode</b></span>
1255
+ <a href="#mode"><span class="icon ion-ios-link"></span></a>
1256
+ </span>
1257
+ </td>
1258
+ </tr>
1259
+ <tr>
1260
+ <td class="col-md-4">
1261
+ <i>Default value : </i><code>input&lt;DataGridMode, DataGridMode | string&gt;(DataGridMode.PLAIN, { transform: coerceDataGridMode })</code>
1262
+ </td>
1263
+ </tr>
1264
+ <tr>
1265
+ <td class="col-md-4">
1266
+ <div class="io-line">Defined in <a href="" data-line="125" class="link-to-prism">src/lib/data-grid.component.ts:125</a></div>
1243
1267
  </td>
1244
1268
  </tr>
1245
1269
 
@@ -1264,10 +1288,15 @@
1264
1288
  <i>Type : </i> <code><a href="../miscellaneous/enumerations.html#DataGridMode" target="_self" >Observable&lt;DataGridMode&gt;</a></code>
1265
1289
 
1266
1290
  </td>
1291
+ </tr>
1292
+ <tr>
1293
+ <td class="col-md-4">
1294
+ <i>Default value : </i><code>toObservable(this.mode)</code>
1295
+ </td>
1267
1296
  </tr>
1268
1297
  <tr>
1269
1298
  <td class="col-md-4">
1270
- <div class="io-line">Defined in <a href="" data-line="137" class="link-to-prism">src/lib/data-grid.component.ts:137</a></div>
1299
+ <div class="io-line">Defined in <a href="" data-line="128" class="link-to-prism">src/lib/data-grid.component.ts:128</a></div>
1271
1300
  </td>
1272
1301
  </tr>
1273
1302
 
@@ -1280,8 +1309,8 @@
1280
1309
  <td class="col-md-4">
1281
1310
  <a name="rows"></a>
1282
1311
  <span class="name">
1283
- <span class="modifier"></span>
1284
1312
  <span class="modifier">Public</span>
1313
+ <span class="modifier">Readonly</span>
1285
1314
  <span ><b>rows</b></span>
1286
1315
  <a href="#rows"><span class="icon ion-ios-link"></span></a>
1287
1316
  </span>
@@ -1289,22 +1318,12 @@
1289
1318
  </tr>
1290
1319
  <tr>
1291
1320
  <td class="col-md-4">
1292
- <i>Type : </i> <code><a href="../directives/DataGridRowDefDirective.html" target="_self" >QueryList&lt;DataGridRowDefDirective&lt;T&gt;&gt;</a></code>
1293
-
1294
- </td>
1295
- </tr>
1296
- <tr>
1297
- <td class="col-md-4">
1298
- <b>Decorators : </b>
1299
- <br />
1300
- <code>
1301
- @ContentChildren(DataGridRowDefDirective)<br />
1302
- </code>
1321
+ <i>Default value : </i><code>contentChildren(DataGridRowDefDirective)</code>
1303
1322
  </td>
1304
1323
  </tr>
1305
1324
  <tr>
1306
1325
  <td class="col-md-4">
1307
- <div class="io-line">Defined in <a href="" data-line="125" class="link-to-prism">src/lib/data-grid.component.ts:125</a></div>
1326
+ <div class="io-line">Defined in <a href="" data-line="115" class="link-to-prism">src/lib/data-grid.component.ts:115</a></div>
1308
1327
  </td>
1309
1328
  </tr>
1310
1329
 
@@ -1318,6 +1337,7 @@
1318
1337
  <a name="rows$"></a>
1319
1338
  <span class="name">
1320
1339
  <span class="modifier">Public</span>
1340
+ <span class="modifier">Readonly</span>
1321
1341
  <span ><b>rows$</b></span>
1322
1342
  <a href="#rows$"><span class="icon ion-ios-link"></span></a>
1323
1343
  </span>
@@ -1325,18 +1345,39 @@
1325
1345
  </tr>
1326
1346
  <tr>
1327
1347
  <td class="col-md-4">
1328
- <i>Type : </i> <code><a href="../directives/DataGridRowDefDirective.html" target="_self" >Observable&lt;QueryList&lt;DataGridRowDefDirective&lt;T&gt;&gt;&gt;</a></code>
1329
-
1348
+ <i>Default value : </i><code>toObservable(this.rows)</code>
1330
1349
  </td>
1331
1350
  </tr>
1351
+ <tr>
1352
+ <td class="col-md-4">
1353
+ <div class="io-line">Defined in <a href="" data-line="121" class="link-to-prism">src/lib/data-grid.component.ts:121</a></div>
1354
+ </td>
1355
+ </tr>
1356
+
1357
+
1358
+ </tbody>
1359
+ </table>
1360
+ <table class="table table-sm table-bordered">
1361
+ <tbody>
1362
+ <tr>
1363
+ <td class="col-md-4">
1364
+ <a name="viewer"></a>
1365
+ <span class="name">
1366
+ <span class="modifier">Public</span>
1367
+ <span class="modifier">Readonly</span>
1368
+ <span ><b>viewer</b></span>
1369
+ <a href="#viewer"><span class="icon ion-ios-link"></span></a>
1370
+ </span>
1371
+ </td>
1372
+ </tr>
1332
1373
  <tr>
1333
1374
  <td class="col-md-4">
1334
- <i>Default value : </i><code>EMPTY</code>
1375
+ <i>Default value : </i><code>this</code>
1335
1376
  </td>
1336
1377
  </tr>
1337
1378
  <tr>
1338
1379
  <td class="col-md-4">
1339
- <div class="io-line">Defined in <a href="" data-line="132" class="link-to-prism">src/lib/data-grid.component.ts:132</a></div>
1380
+ <div class="io-line">Defined in <a href="" data-line="102" class="link-to-prism">src/lib/data-grid.component.ts:102</a></div>
1340
1381
  </td>
1341
1382
  </tr>
1342
1383
 
@@ -1349,65 +1390,6 @@
1349
1390
  <h3 id="accessors">
1350
1391
  Accessors
1351
1392
  </h3>
1352
- <table class="table table-sm table-bordered">
1353
- <tbody>
1354
- <tr>
1355
- <td class="col-md-4">
1356
- <a name="mode"></a>
1357
- <span class="name"><b>mode</b><a href="#mode"><span class="icon ion-ios-link"></span></a></span>
1358
- </td>
1359
- </tr>
1360
-
1361
-
1362
- <tr>
1363
- <td class="col-md-4">
1364
- <span class="accessor"><b>set</b><code>mode(value: <a href="../undefineds/DataGridMode.html" target="_self">DataGridMode | string</a>)</code></span>
1365
- </td>
1366
- </tr>
1367
- <tr>
1368
- <td class="col-md-4">
1369
- <div class="io-line">Defined in <a href="" data-line="157" class="link-to-prism">src/lib/data-grid.component.ts:157</a></div>
1370
- </td>
1371
- </tr>
1372
- <tr>
1373
- <td class="col-md-4">
1374
-
1375
- <div class="io-description">
1376
- <b>Parameters :</b>
1377
- <table class="params">
1378
- <thead>
1379
- <tr>
1380
- <td>Name</td>
1381
- <td>Type</td>
1382
- <td>Optional</td>
1383
- </tr>
1384
- </thead>
1385
- <tbody>
1386
- <tr>
1387
- <td>value</td>
1388
-
1389
- <td>
1390
- <code><a href="../miscellaneous/enumerations.html#DataGridMode" target="_self" >DataGridMode | string</a></code>
1391
- </td>
1392
-
1393
- <td>
1394
- No
1395
- </td>
1396
-
1397
- </tr>
1398
- </tbody>
1399
- </table>
1400
- </div>
1401
- <div>
1402
- </div>
1403
- <div class="io-description">
1404
- <b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
1405
-
1406
- </div>
1407
- </td>
1408
- </tr>
1409
- </tbody>
1410
- </table>
1411
1393
  <table class="table table-sm table-bordered">
1412
1394
  <tbody>
1413
1395
  <tr>
@@ -1424,7 +1406,7 @@
1424
1406
  </tr>
1425
1407
  <tr>
1426
1408
  <td class="col-md-4">
1427
- <div class="io-line">Defined in <a href="" data-line="165" class="link-to-prism">src/lib/data-grid.component.ts:165</a></div>
1409
+ <div class="io-line">Defined in <a href="" data-line="133" class="link-to-prism">src/lib/data-grid.component.ts:133</a></div>
1428
1410
  </td>
1429
1411
  </tr>
1430
1412
 
@@ -1446,7 +1428,7 @@
1446
1428
  </tr>
1447
1429
  <tr>
1448
1430
  <td class="col-md-4">
1449
- <div class="io-line">Defined in <a href="" data-line="169" class="link-to-prism">src/lib/data-grid.component.ts:169</a></div>
1431
+ <div class="io-line">Defined in <a href="" data-line="137" class="link-to-prism">src/lib/data-grid.component.ts:137</a></div>
1450
1432
  </td>
1451
1433
  </tr>
1452
1434
 
@@ -1468,7 +1450,7 @@
1468
1450
  </tr>
1469
1451
  <tr>
1470
1452
  <td class="col-md-4">
1471
- <div class="io-line">Defined in <a href="" data-line="173" class="link-to-prism">src/lib/data-grid.component.ts:173</a></div>
1453
+ <div class="io-line">Defined in <a href="" data-line="141" class="link-to-prism">src/lib/data-grid.component.ts:141</a></div>
1472
1454
  </td>
1473
1455
  </tr>
1474
1456
 
@@ -1490,7 +1472,7 @@
1490
1472
  </tr>
1491
1473
  <tr>
1492
1474
  <td class="col-md-4">
1493
- <div class="io-line">Defined in <a href="" data-line="177" class="link-to-prism">src/lib/data-grid.component.ts:177</a></div>
1475
+ <div class="io-line">Defined in <a href="" data-line="145" class="link-to-prism">src/lib/data-grid.component.ts:145</a></div>
1494
1476
  </td>
1495
1477
  </tr>
1496
1478
 
@@ -1513,7 +1495,7 @@
1513
1495
  </tr>
1514
1496
  <tr>
1515
1497
  <td class="col-md-4">
1516
- <div class="io-line">Defined in <a href="" data-line="181" class="link-to-prism">src/lib/data-grid.component.ts:181</a></div>
1498
+ <div class="io-line">Defined in <a href="" data-line="149" class="link-to-prism">src/lib/data-grid.component.ts:149</a></div>
1517
1499
  </td>
1518
1500
  </tr>
1519
1501
  <tr>
@@ -1571,7 +1553,7 @@
1571
1553
  </tr>
1572
1554
  <tr>
1573
1555
  <td class="col-md-4">
1574
- <div class="io-line">Defined in <a href="" data-line="188" class="link-to-prism">src/lib/data-grid.component.ts:188</a></div>
1556
+ <div class="io-line">Defined in <a href="" data-line="156" class="link-to-prism">src/lib/data-grid.component.ts:156</a></div>
1575
1557
  </td>
1576
1558
  </tr>
1577
1559
  <tr>
@@ -1590,21 +1572,8 @@
1590
1572
 
1591
1573
  <div class="tab-pane fade tab-source-code" id="source">
1592
1574
  <pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { AsyncPipe, NgClass, NgTemplateOutlet } from &#x27;@angular/common&#x27;;
1593
- import {
1594
- AfterContentInit,
1595
- ChangeDetectionStrategy,
1596
- ChangeDetectorRef,
1597
- Component,
1598
- ContentChildren,
1599
- EventEmitter,
1600
- Input,
1601
- isDevMode,
1602
- OnDestroy,
1603
- OnInit,
1604
- Optional,
1605
- Output,
1606
- QueryList,
1607
- } from &#x27;@angular/core&#x27;;
1575
+ import { ChangeDetectionStrategy, Component, isDevMode, OnDestroy, OnInit, input, output, contentChildren, inject, linkedSignal, signal } from &#x27;@angular/core&#x27;;
1576
+ import { outputToObservable, toObservable } from &#x27;@angular/core/rxjs-interop&#x27;;
1608
1577
  import { MatButtonModule } from &#x27;@angular/material/button&#x27;;
1609
1578
  import { MatDividerModule } from &#x27;@angular/material/divider&#x27;;
1610
1579
  import { MatFormFieldModule } from &#x27;@angular/material/form-field&#x27;;
@@ -1614,10 +1583,7 @@ import {
1614
1583
  ActivationEnd,
1615
1584
  Router,
1616
1585
  } from &#x27;@angular/router&#x27;;
1617
- import {
1618
- FormDirective,
1619
- RxapFormsModule,
1620
- } from &#x27;@rxap/forms&#x27;;
1586
+ import { FormDirective, FormSubmitFailedDirective, FormSubmitSuccessfulDirective, FormSubmitInvalidDirective } from &#x27;@rxap/forms&#x27;;
1621
1587
  import {
1622
1588
  DataSource,
1623
1589
  DataSourceViewer,
@@ -1628,13 +1594,11 @@ import {
1628
1594
  ReplacePipe,
1629
1595
  } from &#x27;@rxap/pipes&#x27;;
1630
1596
  import { ToggleSubject } from &#x27;@rxap/rxjs&#x27;;
1631
- import { clone } from &#x27;@rxap/utilities&#x27;;
1597
+ import { clone, coerceBoolean } from &#x27;@rxap/utilities&#x27;;
1632
1598
  import {
1633
- BehaviorSubject,
1634
1599
  combineLatest,
1635
1600
  debounceTime,
1636
1601
  EMPTY,
1637
- merge,
1638
1602
  Observable,
1639
1603
  of,
1640
1604
  Subscription,
@@ -1665,6 +1629,13 @@ function IsDataGridMode(value: string): value is DataGridMode {
1665
1629
  return [ DataGridMode.PLAIN, DataGridMode.FORM ].includes(value as any);
1666
1630
  }
1667
1631
 
1632
+ function coerceDataGridMode(value: DataGridMode | string): DataGridMode {
1633
+ if (IsDataGridMode(value)) {
1634
+ return value;
1635
+ }
1636
+ throw new Error(&#x60;The data grid mode only support &#x27;plain&#x27; and &#x27;form&#x27; - given &#x27;${ value }&#x27;&#x60;);
1637
+ }
1638
+
1668
1639
  @Component({
1669
1640
  // eslint-disable-next-line @angular-eslint/component-selector
1670
1641
  selector: &#x27;rxap-data-grid&#x27;,
@@ -1678,7 +1649,7 @@ function IsDataGridMode(value: string): value is DataGridMode {
1678
1649
  GetFromObjectPipe,
1679
1650
  ReplacePipe,
1680
1651
  EscapeQuotationMarkPipe,
1681
- RxapFormsModule,
1652
+ FormSubmitFailedDirective, FormSubmitSuccessfulDirective, FormSubmitInvalidDirective,
1682
1653
  DataGridValuePipe,
1683
1654
  MatProgressSpinnerModule,
1684
1655
  MatDividerModule,
@@ -1688,89 +1659,68 @@ function IsDataGridMode(value: string): value is DataGridMode {
1688
1659
  IsEmptyPipe
1689
1660
  ]
1690
1661
  })
1691
- export class DataGridComponent&lt;T extends Record&lt;string, any&gt;&gt; implements OnInit, OnDestroy, AfterContentInit {
1662
+ export class DataGridComponent&lt;T extends Record&lt;string, any&gt;&gt; implements OnInit, OnDestroy {
1663
+ private readonly router &#x3D; inject(Router);
1664
+ private readonly formDirective &#x3D; inject(FormDirective, { optional: true });
1665
+
1692
1666
 
1693
1667
  public isDevMode &#x3D; isDevMode();
1694
1668
 
1695
- @Input()
1696
- public header &#x3D; false;
1669
+ public readonly header &#x3D; input(false, { transform: coerceBoolean });
1697
1670
 
1698
- @Input()
1699
- public dataSource?: DataSource&lt;T&gt;;
1671
+ public readonly dataSource &#x3D; input&lt;DataSource&lt;T&gt;&gt;();
1700
1672
 
1701
1673
  public data$!: Observable&lt;T&gt;;
1702
1674
 
1703
- @Input()
1704
- public viewer: DataSourceViewer &#x3D; this;
1675
+ public readonly viewer &#x3D; input&lt;DataSourceViewer&gt;(this);
1676
+
1677
+ public readonly data &#x3D; input&lt;T&gt;();
1705
1678
 
1706
- @Input()
1707
- public data?: T;
1679
+ /**
1680
+ * The current data. Initialized from the data input and updated with the values emitted by the data source
1681
+ */
1682
+ protected readonly currentData &#x3D; linkedSignal(() &#x3D;&gt; this.data());
1708
1683
 
1709
- @Input()
1710
- public displayProperties: string[] | null &#x3D; null;
1684
+ public readonly displayProperties &#x3D; input&lt;string[] | null&gt;(null);
1711
1685
 
1712
- @Input()
1713
- public hideEmptyProperties &#x3D; false;
1686
+ public readonly hideEmptyProperties &#x3D; input(false, { transform: coerceBoolean });
1714
1687
 
1715
- @ContentChildren(DataGridRowDefDirective)
1716
- public rows!: QueryList&lt;DataGridRowDefDirective&lt;T&gt;&gt;;
1717
- @Output()
1718
- public editModeChange &#x3D; new EventEmitter&lt;{
1719
- mode: boolean,
1720
- data?: T,
1721
- done: () &#x3D;&gt; void
1722
- }&gt;();
1723
- public rows$: Observable&lt;QueryList&lt;DataGridRowDefDirective&lt;T&gt;&gt;&gt; &#x3D; EMPTY;
1688
+ public readonly rows &#x3D; contentChildren(DataGridRowDefDirective);
1689
+ public readonly editModeChange &#x3D; output&lt;{
1690
+ mode: boolean;
1691
+ data?: T;
1692
+ done: () &#x3D;&gt; void;
1693
+ }&gt;();
1694
+ public readonly rows$ &#x3D; toObservable(this.rows);
1724
1695
  public hasError$: Observable&lt;boolean&gt; &#x3D; of(false);
1725
1696
  public dataLoading$: Observable&lt;boolean&gt; &#x3D; of(false);
1726
1697
  public loading$ &#x3D; new ToggleSubject();
1727
- public readonly isEditMode$: Observable&lt;boolean&gt;;
1728
- public readonly mode$: Observable&lt;DataGridMode&gt;;
1729
- public readonly isFormMode$: Observable&lt;boolean&gt;;
1730
- public readonly isPlainMode$: Observable&lt;boolean&gt;;
1731
- private _editMode$ &#x3D; new BehaviorSubject&lt;boolean&gt;(false);
1732
- private _mode$ &#x3D; new BehaviorSubject&lt;DataGridMode&gt;(DataGridMode.PLAIN);
1698
+ public readonly mode &#x3D; input&lt;DataGridMode, DataGridMode | string&gt;(DataGridMode.PLAIN, { transform: coerceDataGridMode });
1699
+ private readonly _editMode &#x3D; signal(false);
1700
+ public readonly isEditMode$: Observable&lt;boolean&gt; &#x3D; toObservable(this._editMode);
1701
+ public readonly mode$: Observable&lt;DataGridMode&gt; &#x3D; toObservable(this.mode);
1702
+ public readonly isFormMode$: Observable&lt;boolean&gt; &#x3D; this.mode$.pipe(map(mode &#x3D;&gt; mode &#x3D;&#x3D;&#x3D; DataGridMode.FORM));
1703
+ public readonly isPlainMode$: Observable&lt;boolean&gt; &#x3D; this.mode$.pipe(map(mode &#x3D;&gt; mode &#x3D;&#x3D;&#x3D; DataGridMode.PLAIN));
1733
1704
  private _routerEventSubscription: Subscription | null &#x3D; null;
1734
1705
 
1735
- constructor(
1736
- private readonly cdr: ChangeDetectorRef,
1737
- private readonly router: Router,
1738
- @Optional()
1739
- private readonly formDirective?: FormDirective,
1740
- ) {
1741
- this.isEditMode$ &#x3D; this._editMode$.asObservable();
1742
- this.mode$ &#x3D; this._mode$.asObservable();
1743
- this.isFormMode$ &#x3D; this.mode$.pipe(map(mode &#x3D;&gt; mode &#x3D;&#x3D;&#x3D; DataGridMode.FORM));
1744
- this.isPlainMode$ &#x3D; this.mode$.pipe(map(mode &#x3D;&gt; mode &#x3D;&#x3D;&#x3D; DataGridMode.PLAIN));
1745
- }
1746
-
1747
- @Input()
1748
- public set mode(value: DataGridMode | string) {
1749
- if (IsDataGridMode(value)) {
1750
- this._mode$.next(value);
1751
- } else {
1752
- throw new Error(&#x60;The data grid mode only support &#x27;plain&#x27; and &#x27;form&#x27; - given &#x27;${ value }&#x27;&#x60;);
1753
- }
1754
- }
1755
-
1756
1706
  public get isFormModeOrHasAnyEditCells() {
1757
- return this._mode$.value &#x3D;&#x3D;&#x3D; DataGridMode.FORM || this.hasAnyEditCells;
1707
+ return this.mode() &#x3D;&#x3D;&#x3D; DataGridMode.FORM || this.hasAnyEditCells;
1758
1708
  }
1759
1709
 
1760
1710
  public get isFormMode() {
1761
- return this._mode$.value &#x3D;&#x3D;&#x3D; DataGridMode.FORM;
1711
+ return this.mode() &#x3D;&#x3D;&#x3D; DataGridMode.FORM;
1762
1712
  }
1763
1713
 
1764
1714
  public get hasAnyEditCells() {
1765
- return this.rows?.some(row &#x3D;&gt; !!row.editCell) ?? false;
1715
+ return this.rows()?.some(row &#x3D;&gt; !!row.editCell()) ?? false;
1766
1716
  }
1767
1717
 
1768
1718
  public get isEditMode() {
1769
- return this._editMode$.value;
1719
+ return this._editMode();
1770
1720
  }
1771
1721
 
1772
1722
  public set editMode(value: boolean) {
1773
- this._editMode$.next(value);
1723
+ this._editMode.set(value);
1774
1724
  }
1775
1725
 
1776
1726
  /**
@@ -1780,13 +1730,6 @@ export class DataGridComponent&lt;T extends Record&lt;string, any&gt;&gt; implem
1780
1730
  return this.loading$.value;
1781
1731
  }
1782
1732
 
1783
- public ngAfterContentInit() {
1784
- this.rows$ &#x3D; merge(
1785
- of(this.rows),
1786
- this.rows.changes,
1787
- );
1788
- }
1789
-
1790
1733
  public logCurrentFormState() {
1791
1734
  console.log(clone(this.formDirective?.form.value));
1792
1735
  }
@@ -1799,18 +1742,20 @@ export class DataGridComponent&lt;T extends Record&lt;string, any&gt;&gt; implem
1799
1742
  tap(() &#x3D;&gt; this.disableEditMode()),
1800
1743
  ).subscribe();
1801
1744
 
1802
- if (this.dataSource &amp;&amp; this.data) {
1745
+ const dataSource &#x3D; this.dataSource();
1746
+ const dataValue &#x3D; this.currentData();
1747
+ if (dataSource &amp;&amp; dataValue) {
1803
1748
  throw new Error(&#x27;You can not use both dataSource and data input&#x27;);
1804
1749
  }
1805
1750
 
1806
1751
  let data$: Observable&lt;T&gt; &#x3D; EMPTY;
1807
1752
 
1808
- if (this.dataSource) {
1809
- data$ &#x3D; this.dataSource.connect(this.viewer);
1753
+ if (dataSource) {
1754
+ data$ &#x3D; dataSource.connect(this.viewer());
1810
1755
  }
1811
1756
 
1812
- if (this.data) {
1813
- data$ &#x3D; of(this.data);
1757
+ if (dataValue) {
1758
+ data$ &#x3D; of(dataValue);
1814
1759
  }
1815
1760
 
1816
1761
  if (data$ &#x3D;&#x3D;&#x3D; EMPTY &amp;&amp; isDevMode()) {
@@ -1819,7 +1764,7 @@ export class DataGridComponent&lt;T extends Record&lt;string, any&gt;&gt; implem
1819
1764
 
1820
1765
  this.data$ &#x3D; data$.pipe(
1821
1766
  debounceTime(100),
1822
- tap(data &#x3D;&gt; this.data &#x3D; data),
1767
+ tap(data &#x3D;&gt; this.currentData.set(data)),
1823
1768
  tap(data &#x3D;&gt; {
1824
1769
  if (this.formDirective &amp;&amp; this.isFormMode) {
1825
1770
  this.formDirective.form.patchValue(data, {
@@ -1833,14 +1778,14 @@ export class DataGridComponent&lt;T extends Record&lt;string, any&gt;&gt; implem
1833
1778
  }),
1834
1779
  shareReplay(1),
1835
1780
  );
1836
- if (this.dataSource) {
1837
- this.hasError$ &#x3D; this.dataSource.hasError$ ?? this.hasError$;
1838
- this.dataLoading$ &#x3D; this.dataSource.loading$ ?? this.dataLoading$;
1781
+ if (dataSource) {
1782
+ this.hasError$ &#x3D; dataSource.hasError$ ?? this.hasError$;
1783
+ this.dataLoading$ &#x3D; dataSource.loading$ ?? this.dataLoading$;
1839
1784
  }
1840
1785
  if (this.formDirective &amp;&amp; this.isFormMode) {
1841
1786
  this.formDirective.form.disabledWhile(combineLatest([
1842
- this._editMode$,
1843
- this._mode$,
1787
+ this.isEditMode$,
1788
+ this.mode$,
1844
1789
  ]).pipe(
1845
1790
  map(([ editMode, mode ]) &#x3D;&gt; !editMode &amp;&amp; mode &#x3D;&#x3D;&#x3D; &#x27;form&#x27;),
1846
1791
  ), {onlySelf: false});
@@ -1848,7 +1793,7 @@ export class DataGridComponent&lt;T extends Record&lt;string, any&gt;&gt; implem
1848
1793
  }
1849
1794
 
1850
1795
  public ngOnDestroy() {
1851
- this.dataSource?.disconnect(this.viewer);
1796
+ this.dataSource()?.disconnect(this.viewer());
1852
1797
  this._routerEventSubscription?.unsubscribe();
1853
1798
  }
1854
1799
 
@@ -1866,8 +1811,9 @@ export class DataGridComponent&lt;T extends Record&lt;string, any&gt;&gt; implem
1866
1811
  return;
1867
1812
  }
1868
1813
  this.editMode &#x3D; true;
1869
- if (!skipPatchValue &amp;&amp; this.data) {
1870
- this.formDirective.form.patchValue(this.data, {
1814
+ const data &#x3D; this.currentData();
1815
+ if (!skipPatchValue &amp;&amp; data) {
1816
+ this.formDirective.form.patchValue(data, {
1871
1817
  coerce: true,
1872
1818
  strict: true,
1873
1819
  });
@@ -1906,14 +1852,13 @@ export class DataGridComponent&lt;T extends Record&lt;string, any&gt;&gt; implem
1906
1852
  this.loading$.enable();
1907
1853
  this.formDirective.form.markAllAsDirty();
1908
1854
  this.formDirective.form.markAllAsTouched();
1909
- this.formDirective.cdr.markForCheck();
1910
- this.formDirective.rxapSubmit.pipe(
1855
+ outputToObservable(this.formDirective.rxapSubmit).pipe(
1911
1856
  take(1),
1912
1857
  tap(() &#x3D;&gt; {
1913
1858
  this.disableEditMode();
1914
1859
  }),
1915
1860
  ).subscribe();
1916
- this.formDirective.invalidSubmit.pipe(
1861
+ outputToObservable(this.formDirective.invalidSubmit).pipe(
1917
1862
  take(1),
1918
1863
  tap(() &#x3D;&gt; {
1919
1864
  this.loading$.disable();
@@ -1927,7 +1872,7 @@ export class DataGridComponent&lt;T extends Record&lt;string, any&gt;&gt; implem
1927
1872
  this.enableEditMode(true);
1928
1873
  }),
1929
1874
  ).subscribe();
1930
- this.formDirective.submitSuccessful$.pipe(
1875
+ outputToObservable(this.formDirective.submitSuccessful$).pipe(
1931
1876
  take(1),
1932
1877
  tap(() &#x3D;&gt; {
1933
1878
  this.loading$.disable();
@@ -1938,8 +1883,9 @@ export class DataGridComponent&lt;T extends Record&lt;string, any&gt;&gt; implem
1938
1883
  }
1939
1884
 
1940
1885
  public reset() {
1941
- if (this.formDirective &amp;&amp; this.data &amp;&amp; this.isFormModeOrHasAnyEditCells) {
1942
- this.formDirective.form.patchValue(this.data, {
1886
+ const data &#x3D; this.currentData();
1887
+ if (this.formDirective &amp;&amp; data &amp;&amp; this.isFormModeOrHasAnyEditCells) {
1888
+ this.formDirective.form.patchValue(data, {
1943
1889
  coerce: true,
1944
1890
  strict: true,
1945
1891
  });
@@ -1947,8 +1893,9 @@ export class DataGridComponent&lt;T extends Record&lt;string, any&gt;&gt; implem
1947
1893
  }
1948
1894
 
1949
1895
  public refresh() {
1950
- if (this.dataSource) {
1951
- this.dataSource.refresh();
1896
+ const dataSource &#x3D; this.dataSource();
1897
+ if (dataSource) {
1898
+ dataSource.refresh();
1952
1899
  } else if (isDevMode()) {
1953
1900
  console.warn(&#x27;can not refresh the data. data source is not defined&#x27;);
1954
1901
  }
@@ -1984,7 +1931,7 @@ never shown. --&gt;
1984
1931
  &lt;!-- eslint-disable-next-line @angular-eslint/template/no-negated-async --&gt;
1985
1932
  @if (!(hasError$ | async) &amp;&amp; !(dataLoading$ | async)) {
1986
1933
  &lt;table class&#x3D;&quot;w-full table-auto&quot;&gt;
1987
- @if (header) {
1934
+ @if (header()) {
1988
1935
  &lt;thead&gt;
1989
1936
  &lt;tr&gt;
1990
1937
  &lt;th class&#x3D;&quot;py-2&quot; i18n&gt;Label&lt;/th&gt;
@@ -1994,20 +1941,22 @@ never shown. --&gt;
1994
1941
  }
1995
1942
  &lt;tbody&gt;
1996
1943
  @for (row of rows$ | async; track row; let first &#x3D; $first) {
1997
- @if ((!displayProperties || row.isSubHeader || (row.name &amp;&amp; displayProperties.includes(row.name))) &amp;&amp; (!hideEmptyProperties || false &#x3D;&#x3D;&#x3D; (data$ | isEmpty: row.name | async))) {
1944
+ @if ((!displayProperties() || row.isSubHeader || (row.name() &amp;&amp; displayProperties()?.includes(row.name()!))) &amp;&amp; (!hideEmptyProperties() || row.isSubHeader || false &#x3D;&#x3D;&#x3D; (data$ | isEmpty: row.name() | async))) {
1998
1945
  &lt;!-- region horizontal view --&gt;
1999
- @if (row.flip) {
1946
+ @if (row.flip()) {
2000
1947
  &lt;tr&gt;
2001
1948
  &lt;td class&#x3D;&quot;py-2&quot; colspan&#x3D;&quot;2&quot;&gt;
2002
1949
  &lt;mat-divider&gt;&lt;/mat-divider&gt;
2003
1950
  &lt;/td&gt;
2004
1951
  &lt;/tr&gt;
2005
- &lt;tr [attr.data-name]&#x3D;&quot;row.name + &#x27;-header&#x27;&quot;&gt;
1952
+ &lt;tr [attr.data-name]&#x3D;&quot;row.name() + &#x27;-header&#x27;&quot;&gt;
2006
1953
  &lt;ng-container
2007
- *ngTemplateOutlet&#x3D;&quot;row.headerCell?.template ?? defaultHeaderCell; context: { $implicit: row.name }&quot;&gt;&lt;/ng-container&gt;
1954
+ *ngTemplateOutlet&#x3D;&quot;row.headerCell()?.template ?? defaultHeaderCell; context: { $implicit: row.name() }&quot;&gt;&lt;/ng-container&gt;
2008
1955
  &lt;/tr&gt;
2009
- &lt;tr [attr.data-name]&#x3D;&quot;row.name + &#x27;-value&#x27;&quot;&gt;
2010
- &lt;ng-template [ngIfThen]&#x3D;&quot;content&quot; [ngIf]&#x3D;&quot;row.name&quot;&gt;&lt;/ng-template&gt;
1956
+ &lt;tr [attr.data-name]&#x3D;&quot;row.name() + &#x27;-value&#x27;&quot;&gt;
1957
+ @if (row.name()) {
1958
+ &lt;ng-container *ngTemplateOutlet&#x3D;&quot;content&quot;&gt;&lt;/ng-container&gt;
1959
+ }
2011
1960
  &lt;/tr&gt;
2012
1961
  &lt;tr&gt;
2013
1962
  &lt;td class&#x3D;&quot;py-4&quot; colspan&#x3D;&quot;2&quot;&gt;
@@ -2022,10 +1971,12 @@ never shown. --&gt;
2022
1971
  &lt;/td&gt;
2023
1972
  &lt;/tr&gt;
2024
1973
  }
2025
- &lt;tr [attr.data-name]&#x3D;&quot;row.name&quot; [ngClass]&#x3D;&quot;{ &#x27;sub-header text-2xl&#x27;: row.isSubHeader }&quot;&gt;
1974
+ &lt;tr [attr.data-name]&#x3D;&quot;row.name()&quot; [ngClass]&#x3D;&quot;{ &#x27;sub-header text-2xl&#x27;: row.isSubHeader }&quot;&gt;
2026
1975
  &lt;ng-container
2027
- *ngTemplateOutlet&#x3D;&quot;row.headerCell?.template ?? defaultHeaderCell; context: { $implicit: row.name }&quot;&gt;&lt;/ng-container&gt;
2028
- &lt;ng-template [ngIfThen]&#x3D;&quot;content&quot; [ngIf]&#x3D;&quot;row.name&quot;&gt;&lt;/ng-template&gt;
1976
+ *ngTemplateOutlet&#x3D;&quot;row.headerCell()?.template ?? defaultHeaderCell; context: { $implicit: row.name() }&quot;&gt;&lt;/ng-container&gt;
1977
+ @if (row.name()) {
1978
+ &lt;ng-container *ngTemplateOutlet&#x3D;&quot;content&quot;&gt;&lt;/ng-container&gt;
1979
+ }
2029
1980
  &lt;/tr&gt;
2030
1981
  }
2031
1982
  &lt;!-- endregion --&gt;
@@ -2033,20 +1984,22 @@ never shown. --&gt;
2033
1984
  &lt;!-- endregion --&gt;
2034
1985
  }
2035
1986
  &lt;ng-template #content&gt;
2036
- &lt;td [attr.colspan]&#x3D;&quot;row.flip ? 2 : 1&quot; [ngClass]&#x3D;&quot;{
2037
- &#x27;h-20&#x27;: row.editCell?.template &amp;&amp; (isEditMode || isFormMode) &amp;&amp; false,
1987
+ &lt;td [attr.colspan]&#x3D;&quot;row.flip() ? 2 : 1&quot; [ngClass]&#x3D;&quot;{
1988
+ &#x27;h-20&#x27;: row.editCell()?.template &amp;&amp; (isEditMode || isFormMode) &amp;&amp; false,
2038
1989
  }&quot; class&#x3D;&quot;pl-8 pr-4 w-full py-2&quot;&gt;
2039
- &lt;ng-template [ngIfThen]&#x3D;&quot;editMode&quot; [ngIf]&#x3D;&quot;row.editCell?.template &amp;&amp; (isEditMode || isFormMode)&quot;&gt;&lt;/ng-template&gt;
2040
- &lt;ng-template [ngIfThen]&#x3D;&quot;viewMode&quot;
2041
- [ngIf]&#x3D;&quot;!row.editCell?.template || (!isEditMode &amp;&amp; !isFormMode)&quot;&gt;&lt;/ng-template&gt;
1990
+ @if (row.editCell()?.template &amp;&amp; (isEditMode || isFormMode)) {
1991
+ &lt;ng-container *ngTemplateOutlet&#x3D;&quot;editMode&quot;&gt;&lt;/ng-container&gt;
1992
+ } @else {
1993
+ &lt;ng-container *ngTemplateOutlet&#x3D;&quot;viewMode&quot;&gt;&lt;/ng-container&gt;
1994
+ }
2042
1995
  &lt;/td&gt;
2043
1996
  &lt;ng-template #viewMode&gt;
2044
1997
  &lt;ng-container
2045
- *ngTemplateOutlet&#x3D;&quot;row.cell?.template ?? defaultCell;context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }&quot;&gt;&lt;/ng-container&gt;
1998
+ *ngTemplateOutlet&#x3D;&quot;row.cell()?.template ?? defaultCell;context: { $implicit: data$ | dataGridValue: row.name() | async, data: data$ | async }&quot;&gt;&lt;/ng-container&gt;
2046
1999
  &lt;/ng-template&gt;
2047
2000
  &lt;ng-template #editMode&gt;
2048
2001
  &lt;ng-container
2049
- *ngTemplateOutlet&#x3D;&quot;row.editCell?.template ?? row.cell?.template ?? defaultCell;context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }&quot;&gt;&lt;/ng-container&gt;
2002
+ *ngTemplateOutlet&#x3D;&quot;row.editCell()?.template ?? row.cell()?.template ?? defaultCell;context: { $implicit: data$ | dataGridValue: row.name() | async, data: data$ | async }&quot;&gt;&lt;/ng-container&gt;
2050
2003
  &lt;/ng-template&gt;
2051
2004
  &lt;/ng-template&gt;
2052
2005
  }
@@ -2154,7 +2107,7 @@ never shown. --&gt;
2154
2107
  <script src="../js/libs/htmlparser.js"></script>
2155
2108
  <script src="../js/libs/deep-iterator.js"></script>
2156
2109
  <script>
2157
- var COMPONENT_TEMPLATE = '<div>@if ((hasError$ | async)) { <div class="flex flex-col items-center justify-center gap-y-8"> <span i18n>Something has gone wrong!</span> <button (click)="retry()" i18n mat-stroked-button type="button">Retry</button> </div>}@if ((dataLoading$ | async)) { <div class="flex flex-col items-center justify-center gap-y-8"> <mat-spinner></mat-spinner> </div>}<!-- if the dataSource input is used. It is possible the the hasError$ or loading$ property is === EMPTY. this wouldresults in an null as output. If the === false check is used this can result into the behavior that the data grid isnever shown. --><!-- eslint-disable-next-line @angular-eslint/template/no-negated-async -->@if (!(hasError$ | async) && !(dataLoading$ | async)) { <table class="w-full table-auto"> @if (header) { <thead> <tr> <th class="py-2" i18n>Label</th> <th class="py-2" i18n>Value</th> </tr> </thead> } <tbody> @for (row of rows$ | async; track row; let first = $first) { @if ((!displayProperties || row.isSubHeader || (row.name && displayProperties.includes(row.name))) && (!hideEmptyProperties || false === (data$ | isEmpty: row.name | async))) { <!-- region horizontal view --> @if (row.flip) { <tr> <td class="py-2" colspan="2"> <mat-divider></mat-divider> </td> </tr> <tr [attr.data-name]="row.name + \'-header\'"> <ng-container *ngTemplateOutlet="row.headerCell?.template ?? defaultHeaderCell; context: { $implicit: row.name }"></ng-container> </tr> <tr [attr.data-name]="row.name + \'-value\'"> <ng-template [ngIfThen]="content" [ngIf]="row.name"></ng-template> </tr> <tr> <td class="py-4" colspan="2"> <mat-divider></mat-divider> </td> </tr> } @else { @if (!first && row.isSubHeader) { <tr> <td class="py-4" colspan="2"> <mat-divider></mat-divider> </td> </tr> } <tr [attr.data-name]="row.name" [ngClass]="{ \'sub-header text-2xl\': row.isSubHeader }"> <ng-container *ngTemplateOutlet="row.headerCell?.template ?? defaultHeaderCell; context: { $implicit: row.name }"></ng-container> <ng-template [ngIfThen]="content" [ngIf]="row.name"></ng-template> </tr> } <!-- endregion --> <!-- region normal view --> <!-- endregion --> } <ng-template #content> <td [attr.colspan]="row.flip ? 2 : 1" [ngClass]="{ \'h-20\': row.editCell?.template && (isEditMode || isFormMode) && false, }" class="pl-8 pr-4 w-full py-2"> <ng-template [ngIfThen]="editMode" [ngIf]="row.editCell?.template && (isEditMode || isFormMode)"></ng-template> <ng-template [ngIfThen]="viewMode" [ngIf]="!row.editCell?.template || (!isEditMode && !isFormMode)"></ng-template> </td> <ng-template #viewMode> <ng-container *ngTemplateOutlet="row.cell?.template ?? defaultCell;context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }"></ng-container> </ng-template> <ng-template #editMode> <ng-container *ngTemplateOutlet="row.editCell?.template ?? row.cell?.template ?? defaultCell;context: { $implicit: data$ | dataGridValue: row.name | async, data: data$ | async }"></ng-container> </ng-template> </ng-template> } </tbody> @if (hasAnyEditCells) { <tfoot> <tr> <td class="py-2" colspan="2"> @if (isEditMode) { <div class="pt-8 flex flex-col gap-y-6"> <div class="flex flex-row gap-x-6 items-center justify-start"> <button (click)="submit()" [disabled]="loading$ | async" color="primary" mat-raised-button type="button"> <span class="flex flex-row gap-x-6 items-center justify-center"> <span i18n>Save</span> @if (loading$ | async) { <mat-spinner color="accent" diameter="15"></mat-spinner> } </span> </button> <button (click)="reset()" [disabled]="loading$ | async" mat-stroked-button type="button"> <ng-container i18n>Reset</ng-container> </button> <button (click)="cancel()" [disabled]="loading$ | async" color="warn" mat-stroked-button type="button"> <ng-container i18n>Cancel</ng-container> </button> @if (isDevMode) { <button (click)="logCurrentFormState()" mat-button type="button"> <ng-container i18n>Current Form State</ng-container> </button> } </div> <ng-template rxapFormSubmitInvalid> <mat-error i18n>Ensure all formula fields are valid.</mat-error> </ng-template> <ng-template let-error rxapFormSubmitFailed> <mat-error>{{ error.error?.message ?? error.message }}</mat-error> </ng-template> <ng-template rxapFormSubmitSuccessful> <span i18n>Submit successfully.</span> </ng-template> </div> } @else { <div class="pt-8"> <button (click)="enableEditMode()" color="primary" mat-raised-button type="button"> <span class="flex flex-row gap-x-6 items-center justify-center"> <span i18n>Edit</span> @if (loading$ | async) { <mat-spinner color="accent" diameter="15"></mat-spinner> } </span> </button> </div> } </td> </tr> </tfoot> } </table>}<ng-template #defaultCell let-value> <span>{{ value }}</span></ng-template><ng-template #defaultHeaderCell let-name> <th class="py-2 whitespace-nowrap">{{ name }}</th></ng-template></div>'
2110
+ var COMPONENT_TEMPLATE = '<div>@if ((hasError$ | async)) { <div class="flex flex-col items-center justify-center gap-y-8"> <span i18n>Something has gone wrong!</span> <button (click)="retry()" i18n mat-stroked-button type="button">Retry</button> </div>}@if ((dataLoading$ | async)) { <div class="flex flex-col items-center justify-center gap-y-8"> <mat-spinner></mat-spinner> </div>}<!-- if the dataSource input is used. It is possible the the hasError$ or loading$ property is === EMPTY. this wouldresults in an null as output. If the === false check is used this can result into the behavior that the data grid isnever shown. --><!-- eslint-disable-next-line @angular-eslint/template/no-negated-async -->@if (!(hasError$ | async) && !(dataLoading$ | async)) { <table class="w-full table-auto"> @if (header()) { <thead> <tr> <th class="py-2" i18n>Label</th> <th class="py-2" i18n>Value</th> </tr> </thead> } <tbody> @for (row of rows$ | async; track row; let first = $first) { @if ((!displayProperties() || row.isSubHeader || (row.name() && displayProperties()?.includes(row.name()!))) && (!hideEmptyProperties() || row.isSubHeader || false === (data$ | isEmpty: row.name() | async))) { <!-- region horizontal view --> @if (row.flip()) { <tr> <td class="py-2" colspan="2"> <mat-divider></mat-divider> </td> </tr> <tr [attr.data-name]="row.name() + \'-header\'"> <ng-container *ngTemplateOutlet="row.headerCell()?.template ?? defaultHeaderCell; context: { $implicit: row.name() }"></ng-container> </tr> <tr [attr.data-name]="row.name() + \'-value\'"> @if (row.name()) { <ng-container *ngTemplateOutlet="content"></ng-container> } </tr> <tr> <td class="py-4" colspan="2"> <mat-divider></mat-divider> </td> </tr> } @else { @if (!first && row.isSubHeader) { <tr> <td class="py-4" colspan="2"> <mat-divider></mat-divider> </td> </tr> } <tr [attr.data-name]="row.name()" [ngClass]="{ \'sub-header text-2xl\': row.isSubHeader }"> <ng-container *ngTemplateOutlet="row.headerCell()?.template ?? defaultHeaderCell; context: { $implicit: row.name() }"></ng-container> @if (row.name()) { <ng-container *ngTemplateOutlet="content"></ng-container> } </tr> } <!-- endregion --> <!-- region normal view --> <!-- endregion --> } <ng-template #content> <td [attr.colspan]="row.flip() ? 2 : 1" [ngClass]="{ \'h-20\': row.editCell()?.template && (isEditMode || isFormMode) && false, }" class="pl-8 pr-4 w-full py-2"> @if (row.editCell()?.template && (isEditMode || isFormMode)) { <ng-container *ngTemplateOutlet="editMode"></ng-container> } @else { <ng-container *ngTemplateOutlet="viewMode"></ng-container> } </td> <ng-template #viewMode> <ng-container *ngTemplateOutlet="row.cell()?.template ?? defaultCell;context: { $implicit: data$ | dataGridValue: row.name() | async, data: data$ | async }"></ng-container> </ng-template> <ng-template #editMode> <ng-container *ngTemplateOutlet="row.editCell()?.template ?? row.cell()?.template ?? defaultCell;context: { $implicit: data$ | dataGridValue: row.name() | async, data: data$ | async }"></ng-container> </ng-template> </ng-template> } </tbody> @if (hasAnyEditCells) { <tfoot> <tr> <td class="py-2" colspan="2"> @if (isEditMode) { <div class="pt-8 flex flex-col gap-y-6"> <div class="flex flex-row gap-x-6 items-center justify-start"> <button (click)="submit()" [disabled]="loading$ | async" color="primary" mat-raised-button type="button"> <span class="flex flex-row gap-x-6 items-center justify-center"> <span i18n>Save</span> @if (loading$ | async) { <mat-spinner color="accent" diameter="15"></mat-spinner> } </span> </button> <button (click)="reset()" [disabled]="loading$ | async" mat-stroked-button type="button"> <ng-container i18n>Reset</ng-container> </button> <button (click)="cancel()" [disabled]="loading$ | async" color="warn" mat-stroked-button type="button"> <ng-container i18n>Cancel</ng-container> </button> @if (isDevMode) { <button (click)="logCurrentFormState()" mat-button type="button"> <ng-container i18n>Current Form State</ng-container> </button> } </div> <ng-template rxapFormSubmitInvalid> <mat-error i18n>Ensure all formula fields are valid.</mat-error> </ng-template> <ng-template let-error rxapFormSubmitFailed> <mat-error>{{ error.error?.message ?? error.message }}</mat-error> </ng-template> <ng-template rxapFormSubmitSuccessful> <span i18n>Submit successfully.</span> </ng-template> </div> } @else { <div class="pt-8"> <button (click)="enableEditMode()" color="primary" mat-raised-button type="button"> <span class="flex flex-row gap-x-6 items-center justify-center"> <span i18n>Edit</span> @if (loading$ | async) { <mat-spinner color="accent" diameter="15"></mat-spinner> } </span> </button> </div> } </td> </tr> </tfoot> } </table>}<ng-template #defaultCell let-value> <span>{{ value }}</span></ng-template><ng-template #defaultHeaderCell let-name> <th class="py-2 whitespace-nowrap">{{ name }}</th></ng-template></div>'
2158
2111
  var COMPONENTS = [{'name': 'DataGridComponent', 'selector': 'rxap-data-grid'}];
2159
2112
  var DIRECTIVES = [{'name': 'DataGridCellDefDirective', 'selector': '[rxapDataGridCellDef]'},{'name': 'DataGridEditCellDefDirective', 'selector': '[rxapDataGridEditCellDef]'},{'name': 'DataGridHeaderCellDefDirective', 'selector': '[rxapDataGridHeaderCellDef]'},{'name': 'DataGridRowDefDirective', 'selector': '[rxapDataGridRowDef]'}];
2160
2113
  var ACTUAL_COMPONENT = {'name': 'DataGridComponent'};