@rxap/schematic-angular 16.2.0-dev.53 → 16.2.0-dev.55

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 (81) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/README.md +1 -1
  3. package/package.json +10 -10
  4. package/src/lib/accordion-identifier.d.ts +2 -2
  5. package/src/lib/accordion-identifier.js +2 -2
  6. package/src/lib/accordion-identifier.js.map +1 -1
  7. package/src/lib/minimum-table-options.d.ts +2 -0
  8. package/src/lib/minimum-table-options.js +3 -2
  9. package/src/lib/minimum-table-options.js.map +1 -1
  10. package/src/lib/table/column/base-table-column.js +1 -1
  11. package/src/lib/table/column/base-table-column.js.map +1 -1
  12. package/src/lib/table/column/boolean-table-column.d.ts +8 -0
  13. package/src/lib/table/column/boolean-table-column.js +10 -0
  14. package/src/lib/table/column/boolean-table-column.js.map +1 -0
  15. package/src/lib/table/column/custom-table-column.d.ts +11 -0
  16. package/src/lib/table/column/custom-table-column.js +11 -0
  17. package/src/lib/table/column/custom-table-column.js.map +1 -0
  18. package/src/lib/table/column/date-table-column.js +1 -1
  19. package/src/lib/table/column/date-table-column.js.map +1 -1
  20. package/src/lib/table/table-column-kind.d.ts +1 -0
  21. package/src/lib/table/table-column-kind.js +1 -0
  22. package/src/lib/table/table-column-kind.js.map +1 -1
  23. package/src/lib/table/table-column.js +6 -0
  24. package/src/lib/table/table-column.js.map +1 -1
  25. package/src/schema.json +122 -26
  26. package/src/schematics/accordion/accordion-component/schema.json +122 -26
  27. package/src/schematics/accordion/accordion-item-component/schema.json +122 -26
  28. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +46 -13
  29. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +122 -26
  30. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +98 -19
  31. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +98 -19
  32. package/src/schematics/autocomplete-table-select-form-control.schema.json +2 -1
  33. package/src/schematics/base-table-column.schema.json +1 -1
  34. package/src/schematics/boolean-table-column.schema.json +2 -1
  35. package/src/schematics/checkbox-form-control.schema.json +2 -1
  36. package/src/schematics/component-table-column.schema.json +2 -1
  37. package/src/schematics/copy-to-clipboard-table-column.schema.json +2 -1
  38. package/src/schematics/custom-table-column.schema.json +27 -0
  39. package/src/schematics/data-grid-accordion-item.schema.json +2 -1
  40. package/src/schematics/data-grid-component/schema.json +42 -12
  41. package/src/schematics/date-table-column.schema.json +2 -1
  42. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +1 -0
  43. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -1
  44. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +4 -1
  45. package/src/schematics/form/control/input-form-control/schema.json +4 -1
  46. package/src/schematics/form/control/select-form-control/schema.json +4 -1
  47. package/src/schematics/form/control/table-select-form-control/index.js +1 -0
  48. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  49. package/src/schematics/form/control/table-select-form-control/schema.json +4 -1
  50. package/src/schematics/form/form-array/schema.json +42 -12
  51. package/src/schematics/form/form-component/schema.json +42 -12
  52. package/src/schematics/form/form-control/schema.json +30 -8
  53. package/src/schematics/form/form-definition/schema.json +42 -12
  54. package/src/schematics/form/form-group/schema.json +42 -12
  55. package/src/schematics/form/templates/autocomplete-table-select-form-control.hbs +1 -1
  56. package/src/schematics/form/templates/table-select-form-control.hbs +1 -1
  57. package/src/schematics/form-array.schema.json +4 -2
  58. package/src/schematics/form-control.schema.json +2 -1
  59. package/src/schematics/form-group.schema.json +4 -2
  60. package/src/schematics/icon-table-column.schema.json +2 -1
  61. package/src/schematics/input-form-control.schema.json +2 -1
  62. package/src/schematics/link-table-column.schema.json +2 -1
  63. package/src/schematics/minimum-table.schema.json +3 -0
  64. package/src/schematics/select-form-control.schema.json +2 -1
  65. package/src/schematics/slide-toggle-form-control.schema.json +2 -1
  66. package/src/schematics/spinner-table-column.schema.json +2 -1
  67. package/src/schematics/switch-accordion-item.schema.json +2 -1
  68. package/src/schematics/table/action/form-table-action/schema.json +42 -12
  69. package/src/schematics/table/header-button/form-table-header-button/schema.json +42 -12
  70. package/src/schematics/table/table-component/index.js +2 -1
  71. package/src/schematics/table/table-component/index.js.map +1 -1
  72. package/src/schematics/table/table-component/schema.json +94 -18
  73. package/src/schematics/table/templates/custom-table-column.hbs +23 -0
  74. package/src/schematics/table/tree-table-component/schema.json +94 -18
  75. package/src/schematics/table-accordion-item.schema.json +2 -1
  76. package/src/schematics/table-column.schema.json +8 -1
  77. package/src/schematics/table-select-form-control.schema.json +2 -1
  78. package/src/schematics/textarea-form-control.schema.json +2 -1
  79. package/src/schematics/tree-table-accordion-item.schema.json +2 -1
  80. package/src/schematics/tree-table-column.schema.json +2 -1
  81. package/src/template.schema.json +3 -0
@@ -259,7 +259,10 @@
259
259
  }
260
260
  }
261
261
  }
262
- }
262
+ },
263
+ "required": [
264
+ "kind"
265
+ ]
263
266
  }
264
267
  ]
265
268
  },
@@ -444,7 +447,7 @@
444
447
  "title": {
445
448
  "type": "string"
446
449
  },
447
- "propertyPath": {
450
+ "source": {
448
451
  "type": "string"
449
452
  },
450
453
  "hidden": {
@@ -479,7 +482,10 @@
479
482
  "type": "string",
480
483
  "const": "boolean"
481
484
  }
482
- }
485
+ },
486
+ "required": [
487
+ "kind"
488
+ ]
483
489
  }
484
490
  ]
485
491
  },
@@ -525,7 +531,10 @@
525
531
  "after"
526
532
  ]
527
533
  }
528
- }
534
+ },
535
+ "required": [
536
+ "kind"
537
+ ]
529
538
  }
530
539
  ]
531
540
  },
@@ -541,7 +550,10 @@
541
550
  "type": "string",
542
551
  "const": "component"
543
552
  }
544
- }
553
+ },
554
+ "required": [
555
+ "kind"
556
+ ]
545
557
  }
546
558
  ]
547
559
  },
@@ -570,7 +582,10 @@
570
582
  "type": "string",
571
583
  "const": "copy-to-clipboard"
572
584
  }
573
- }
585
+ },
586
+ "required": [
587
+ "kind"
588
+ ]
574
589
  }
575
590
  ]
576
591
  },
@@ -606,6 +621,29 @@
606
621
  }
607
622
  ]
608
623
  },
624
+ "customTableColumn": {
625
+ "allOf": [
626
+ {
627
+ "$ref": "#/definitions/baseTableColumn"
628
+ },
629
+ {
630
+ "type": "object",
631
+ "properties": {
632
+ "kind": {
633
+ "type": "string",
634
+ "const": "custom"
635
+ },
636
+ "html": {
637
+ "type": "string"
638
+ }
639
+ },
640
+ "required": [
641
+ "kind",
642
+ "html"
643
+ ]
644
+ }
645
+ ]
646
+ },
609
647
  "dataGrid": {
610
648
  "type": "object",
611
649
  "properties": {
@@ -668,7 +706,10 @@
668
706
  "type": "string",
669
707
  "const": "data-grid"
670
708
  }
671
- }
709
+ },
710
+ "required": [
711
+ "kind"
712
+ ]
672
713
  },
673
714
  {
674
715
  "type": "object",
@@ -737,7 +778,10 @@
737
778
  "format": {
738
779
  "type": "string"
739
780
  }
740
- }
781
+ },
782
+ "required": [
783
+ "kind"
784
+ ]
741
785
  }
742
786
  ]
743
787
  },
@@ -750,7 +794,10 @@
750
794
  "type": "string",
751
795
  "const": "array"
752
796
  }
753
- }
797
+ },
798
+ "required": [
799
+ "role"
800
+ ]
754
801
  },
755
802
  {
756
803
  "oneOf": [
@@ -764,7 +811,8 @@
764
811
  "properties": {
765
812
  "kind": {
766
813
  "type": "string",
767
- "const": "default"
814
+ "const": "default",
815
+ "default": "default"
768
816
  }
769
817
  }
770
818
  }
@@ -798,7 +846,8 @@
798
846
  "properties": {
799
847
  "kind": {
800
848
  "type": "string",
801
- "const": "default"
849
+ "const": "default",
850
+ "default": "default"
802
851
  }
803
852
  }
804
853
  }
@@ -858,7 +907,10 @@
858
907
  "type": "string",
859
908
  "const": "group"
860
909
  }
861
- }
910
+ },
911
+ "required": [
912
+ "role"
913
+ ]
862
914
  },
863
915
  {
864
916
  "oneOf": [
@@ -872,7 +924,8 @@
872
924
  "properties": {
873
925
  "kind": {
874
926
  "type": "string",
875
- "const": "default"
927
+ "const": "default",
928
+ "default": "default"
876
929
  }
877
930
  }
878
931
  }
@@ -970,7 +1023,10 @@
970
1023
  "type": "string",
971
1024
  "const": "icon"
972
1025
  }
973
- }
1026
+ },
1027
+ "required": [
1028
+ "kind"
1029
+ ]
974
1030
  }
975
1031
  ]
976
1032
  },
@@ -1019,7 +1075,10 @@
1019
1075
  "placeholder": {
1020
1076
  "type": "string"
1021
1077
  }
1022
- }
1078
+ },
1079
+ "required": [
1080
+ "kind"
1081
+ ]
1023
1082
  }
1024
1083
  ]
1025
1084
  },
@@ -1035,7 +1094,10 @@
1035
1094
  "type": "string",
1036
1095
  "const": "link"
1037
1096
  }
1038
- }
1097
+ },
1098
+ "required": [
1099
+ "kind"
1100
+ ]
1039
1101
  }
1040
1102
  ]
1041
1103
  },
@@ -1052,6 +1114,9 @@
1052
1114
  "upstream": {
1053
1115
  "$ref": "#/definitions/upstream"
1054
1116
  },
1117
+ "rowId": {
1118
+ "$ref": "#/definitions/property"
1119
+ },
1055
1120
  "columnList": {
1056
1121
  "alias": "column",
1057
1122
  "type": "array",
@@ -1205,7 +1270,10 @@
1205
1270
  "type": "boolean",
1206
1271
  "description": "Whether the select form control is multiple mode"
1207
1272
  }
1208
- }
1273
+ },
1274
+ "required": [
1275
+ "kind"
1276
+ ]
1209
1277
  }
1210
1278
  ]
1211
1279
  },
@@ -1228,7 +1296,10 @@
1228
1296
  "after"
1229
1297
  ]
1230
1298
  }
1231
- }
1299
+ },
1300
+ "required": [
1301
+ "kind"
1302
+ ]
1232
1303
  }
1233
1304
  ]
1234
1305
  },
@@ -1244,7 +1315,10 @@
1244
1315
  "type": "string",
1245
1316
  "const": "spinner"
1246
1317
  }
1247
- }
1318
+ },
1319
+ "required": [
1320
+ "kind"
1321
+ ]
1248
1322
  }
1249
1323
  ]
1250
1324
  },
@@ -1320,7 +1394,10 @@
1320
1394
  "property"
1321
1395
  ]
1322
1396
  }
1323
- }
1397
+ },
1398
+ "required": [
1399
+ "kind"
1400
+ ]
1324
1401
  }
1325
1402
  ]
1326
1403
  },
@@ -1399,7 +1476,10 @@
1399
1476
  "table": {
1400
1477
  "$ref": "#/definitions/table"
1401
1478
  }
1402
- }
1479
+ },
1480
+ "required": [
1481
+ "kind"
1482
+ ]
1403
1483
  }
1404
1484
  ]
1405
1485
  },
@@ -1474,7 +1554,8 @@
1474
1554
  "properties": {
1475
1555
  "kind": {
1476
1556
  "type": "string",
1477
- "const": "default"
1557
+ "const": "default",
1558
+ "default": "default"
1478
1559
  }
1479
1560
  }
1480
1561
  }
@@ -1483,6 +1564,9 @@
1483
1564
  {
1484
1565
  "$ref": "#/definitions/dateTableColumn"
1485
1566
  },
1567
+ {
1568
+ "$ref": "#/definitions/customTableColumn"
1569
+ },
1486
1570
  {
1487
1571
  "$ref": "#/definitions/linkTableColumn"
1488
1572
  },
@@ -1585,7 +1669,10 @@
1585
1669
  "identifier": {
1586
1670
  "$ref": "#/definitions/accordionIdentifier"
1587
1671
  }
1588
- }
1672
+ },
1673
+ "required": [
1674
+ "kind"
1675
+ ]
1589
1676
  }
1590
1677
  ]
1591
1678
  },
@@ -1618,7 +1705,10 @@
1618
1705
  }
1619
1706
  }
1620
1707
  }
1621
- }
1708
+ },
1709
+ "required": [
1710
+ "kind"
1711
+ ]
1622
1712
  }
1623
1713
  ]
1624
1714
  },
@@ -1685,7 +1775,10 @@
1685
1775
  "table": {
1686
1776
  "$ref": "#/definitions/treeTable"
1687
1777
  }
1688
- }
1778
+ },
1779
+ "required": [
1780
+ "kind"
1781
+ ]
1689
1782
  }
1690
1783
  ]
1691
1784
  },
@@ -1701,7 +1794,10 @@
1701
1794
  "type": "string",
1702
1795
  "const": "tree"
1703
1796
  }
1704
- }
1797
+ },
1798
+ "required": [
1799
+ "kind"
1800
+ ]
1705
1801
  }
1706
1802
  ]
1707
1803
  },
@@ -226,7 +226,10 @@
226
226
  }
227
227
  }
228
228
  }
229
- }
229
+ },
230
+ "required": [
231
+ "kind"
232
+ ]
230
233
  }
231
234
  ]
232
235
  },
@@ -344,7 +347,7 @@
344
347
  "title": {
345
348
  "type": "string"
346
349
  },
347
- "propertyPath": {
350
+ "source": {
348
351
  "type": "string"
349
352
  },
350
353
  "hidden": {
@@ -379,7 +382,10 @@
379
382
  "type": "string",
380
383
  "const": "boolean"
381
384
  }
382
- }
385
+ },
386
+ "required": [
387
+ "kind"
388
+ ]
383
389
  }
384
390
  ]
385
391
  },
@@ -425,7 +431,10 @@
425
431
  "after"
426
432
  ]
427
433
  }
428
- }
434
+ },
435
+ "required": [
436
+ "kind"
437
+ ]
429
438
  }
430
439
  ]
431
440
  },
@@ -441,7 +450,10 @@
441
450
  "type": "string",
442
451
  "const": "component"
443
452
  }
444
- }
453
+ },
454
+ "required": [
455
+ "kind"
456
+ ]
445
457
  }
446
458
  ]
447
459
  },
@@ -457,7 +469,10 @@
457
469
  "type": "string",
458
470
  "const": "copy-to-clipboard"
459
471
  }
460
- }
472
+ },
473
+ "required": [
474
+ "kind"
475
+ ]
461
476
  }
462
477
  ]
463
478
  },
@@ -493,6 +508,29 @@
493
508
  }
494
509
  ]
495
510
  },
511
+ "customTableColumn": {
512
+ "allOf": [
513
+ {
514
+ "$ref": "#/definitions/baseTableColumn"
515
+ },
516
+ {
517
+ "type": "object",
518
+ "properties": {
519
+ "kind": {
520
+ "type": "string",
521
+ "const": "custom"
522
+ },
523
+ "html": {
524
+ "type": "string"
525
+ }
526
+ },
527
+ "required": [
528
+ "kind",
529
+ "html"
530
+ ]
531
+ }
532
+ ]
533
+ },
496
534
  "dateTableColumn": {
497
535
  "allOf": [
498
536
  {
@@ -508,7 +546,10 @@
508
546
  "format": {
509
547
  "type": "string"
510
548
  }
511
- }
549
+ },
550
+ "required": [
551
+ "kind"
552
+ ]
512
553
  }
513
554
  ]
514
555
  },
@@ -536,7 +577,8 @@
536
577
  "properties": {
537
578
  "kind": {
538
579
  "type": "string",
539
- "const": "default"
580
+ "const": "default",
581
+ "default": "default"
540
582
  }
541
583
  }
542
584
  }
@@ -675,7 +717,10 @@
675
717
  "type": "string",
676
718
  "const": "icon"
677
719
  }
678
- }
720
+ },
721
+ "required": [
722
+ "kind"
723
+ ]
679
724
  }
680
725
  ]
681
726
  },
@@ -724,7 +769,10 @@
724
769
  "placeholder": {
725
770
  "type": "string"
726
771
  }
727
- }
772
+ },
773
+ "required": [
774
+ "kind"
775
+ ]
728
776
  }
729
777
  ]
730
778
  },
@@ -740,7 +788,10 @@
740
788
  "type": "string",
741
789
  "const": "link"
742
790
  }
743
- }
791
+ },
792
+ "required": [
793
+ "kind"
794
+ ]
744
795
  }
745
796
  ]
746
797
  },
@@ -757,6 +808,9 @@
757
808
  "upstream": {
758
809
  "$ref": "#/definitions/upstream"
759
810
  },
811
+ "rowId": {
812
+ "$ref": "#/definitions/property"
813
+ },
760
814
  "columnList": {
761
815
  "alias": "column",
762
816
  "type": "array",
@@ -910,7 +964,10 @@
910
964
  "type": "boolean",
911
965
  "description": "Whether the select form control is multiple mode"
912
966
  }
913
- }
967
+ },
968
+ "required": [
969
+ "kind"
970
+ ]
914
971
  }
915
972
  ]
916
973
  },
@@ -933,7 +990,10 @@
933
990
  "after"
934
991
  ]
935
992
  }
936
- }
993
+ },
994
+ "required": [
995
+ "kind"
996
+ ]
937
997
  }
938
998
  ]
939
999
  },
@@ -949,7 +1009,10 @@
949
1009
  "type": "string",
950
1010
  "const": "spinner"
951
1011
  }
952
- }
1012
+ },
1013
+ "required": [
1014
+ "kind"
1015
+ ]
953
1016
  }
954
1017
  ]
955
1018
  },
@@ -1028,7 +1091,10 @@
1028
1091
  "table": {
1029
1092
  "$ref": "#/definitions/table"
1030
1093
  }
1031
- }
1094
+ },
1095
+ "required": [
1096
+ "kind"
1097
+ ]
1032
1098
  }
1033
1099
  ]
1034
1100
  },
@@ -1103,7 +1169,8 @@
1103
1169
  "properties": {
1104
1170
  "kind": {
1105
1171
  "type": "string",
1106
- "const": "default"
1172
+ "const": "default",
1173
+ "default": "default"
1107
1174
  }
1108
1175
  }
1109
1176
  }
@@ -1112,6 +1179,9 @@
1112
1179
  {
1113
1180
  "$ref": "#/definitions/dateTableColumn"
1114
1181
  },
1182
+ {
1183
+ "$ref": "#/definitions/customTableColumn"
1184
+ },
1115
1185
  {
1116
1186
  "$ref": "#/definitions/linkTableColumn"
1117
1187
  },
@@ -1214,7 +1284,10 @@
1214
1284
  "identifier": {
1215
1285
  "$ref": "#/definitions/accordionIdentifier"
1216
1286
  }
1217
- }
1287
+ },
1288
+ "required": [
1289
+ "kind"
1290
+ ]
1218
1291
  }
1219
1292
  ]
1220
1293
  },
@@ -1247,7 +1320,10 @@
1247
1320
  }
1248
1321
  }
1249
1322
  }
1250
- }
1323
+ },
1324
+ "required": [
1325
+ "kind"
1326
+ ]
1251
1327
  }
1252
1328
  ]
1253
1329
  },
@@ -1263,7 +1339,10 @@
1263
1339
  "type": "string",
1264
1340
  "const": "tree"
1265
1341
  }
1266
- }
1342
+ },
1343
+ "required": [
1344
+ "kind"
1345
+ ]
1267
1346
  }
1268
1347
  ]
1269
1348
  },