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

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 (63) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -1
  3. package/package.json +4 -4
  4. package/src/lib/table/column/boolean-table-column.d.ts +8 -0
  5. package/src/lib/table/column/boolean-table-column.js +10 -0
  6. package/src/lib/table/column/boolean-table-column.js.map +1 -0
  7. package/src/lib/table/column/custom-table-column.d.ts +11 -0
  8. package/src/lib/table/column/custom-table-column.js +11 -0
  9. package/src/lib/table/column/custom-table-column.js.map +1 -0
  10. package/src/lib/table/column/date-table-column.js +1 -1
  11. package/src/lib/table/column/date-table-column.js.map +1 -1
  12. package/src/lib/table/table-column-kind.d.ts +1 -0
  13. package/src/lib/table/table-column-kind.js +1 -0
  14. package/src/lib/table/table-column-kind.js.map +1 -1
  15. package/src/lib/table/table-column.js +6 -0
  16. package/src/lib/table/table-column.js.map +1 -1
  17. package/src/schema.json +118 -25
  18. package/src/schematics/accordion/accordion-component/schema.json +118 -25
  19. package/src/schematics/accordion/accordion-item-component/schema.json +118 -25
  20. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +46 -13
  21. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +118 -25
  22. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +94 -18
  23. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +94 -18
  24. package/src/schematics/autocomplete-table-select-form-control.schema.json +2 -1
  25. package/src/schematics/boolean-table-column.schema.json +2 -1
  26. package/src/schematics/checkbox-form-control.schema.json +2 -1
  27. package/src/schematics/component-table-column.schema.json +2 -1
  28. package/src/schematics/copy-to-clipboard-table-column.schema.json +2 -1
  29. package/src/schematics/custom-table-column.schema.json +27 -0
  30. package/src/schematics/data-grid-accordion-item.schema.json +2 -1
  31. package/src/schematics/data-grid-component/schema.json +42 -12
  32. package/src/schematics/date-table-column.schema.json +2 -1
  33. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +4 -1
  34. package/src/schematics/form/control/input-form-control/schema.json +4 -1
  35. package/src/schematics/form/control/select-form-control/schema.json +4 -1
  36. package/src/schematics/form/control/table-select-form-control/schema.json +4 -1
  37. package/src/schematics/form/form-array/schema.json +42 -12
  38. package/src/schematics/form/form-component/schema.json +42 -12
  39. package/src/schematics/form/form-control/schema.json +30 -8
  40. package/src/schematics/form/form-definition/schema.json +42 -12
  41. package/src/schematics/form/form-group/schema.json +42 -12
  42. package/src/schematics/form-array.schema.json +4 -2
  43. package/src/schematics/form-control.schema.json +2 -1
  44. package/src/schematics/form-group.schema.json +4 -2
  45. package/src/schematics/icon-table-column.schema.json +2 -1
  46. package/src/schematics/input-form-control.schema.json +2 -1
  47. package/src/schematics/link-table-column.schema.json +2 -1
  48. package/src/schematics/select-form-control.schema.json +2 -1
  49. package/src/schematics/slide-toggle-form-control.schema.json +2 -1
  50. package/src/schematics/spinner-table-column.schema.json +2 -1
  51. package/src/schematics/switch-accordion-item.schema.json +2 -1
  52. package/src/schematics/table/action/form-table-action/schema.json +42 -12
  53. package/src/schematics/table/header-button/form-table-header-button/schema.json +42 -12
  54. package/src/schematics/table/table-component/schema.json +90 -17
  55. package/src/schematics/table/templates/custom-table-column.hbs +23 -0
  56. package/src/schematics/table/tree-table-component/schema.json +90 -17
  57. package/src/schematics/table-accordion-item.schema.json +2 -1
  58. package/src/schematics/table-column.schema.json +8 -1
  59. package/src/schematics/table-select-form-control.schema.json +2 -1
  60. package/src/schematics/textarea-form-control.schema.json +2 -1
  61. package/src/schematics/tree-table-accordion-item.schema.json +2 -1
  62. package/src/schematics/tree-table-column.schema.json +2 -1
  63. package/src/template.schema.json +3 -0
@@ -340,7 +340,10 @@
340
340
  }
341
341
  }
342
342
  }
343
- }
343
+ },
344
+ "required": [
345
+ "kind"
346
+ ]
344
347
  }
345
348
  ]
346
349
  },
@@ -560,7 +563,10 @@
560
563
  "type": "string",
561
564
  "const": "boolean"
562
565
  }
563
- }
566
+ },
567
+ "required": [
568
+ "kind"
569
+ ]
564
570
  }
565
571
  ]
566
572
  },
@@ -606,7 +612,10 @@
606
612
  "after"
607
613
  ]
608
614
  }
609
- }
615
+ },
616
+ "required": [
617
+ "kind"
618
+ ]
610
619
  }
611
620
  ]
612
621
  },
@@ -622,7 +631,10 @@
622
631
  "type": "string",
623
632
  "const": "component"
624
633
  }
625
- }
634
+ },
635
+ "required": [
636
+ "kind"
637
+ ]
626
638
  }
627
639
  ]
628
640
  },
@@ -651,7 +663,10 @@
651
663
  "type": "string",
652
664
  "const": "copy-to-clipboard"
653
665
  }
654
- }
666
+ },
667
+ "required": [
668
+ "kind"
669
+ ]
655
670
  }
656
671
  ]
657
672
  },
@@ -687,6 +702,29 @@
687
702
  }
688
703
  ]
689
704
  },
705
+ "customTableColumn": {
706
+ "allOf": [
707
+ {
708
+ "$ref": "#/definitions/baseTableColumn"
709
+ },
710
+ {
711
+ "type": "object",
712
+ "properties": {
713
+ "kind": {
714
+ "type": "string",
715
+ "const": "custom"
716
+ },
717
+ "html": {
718
+ "type": "string"
719
+ }
720
+ },
721
+ "required": [
722
+ "kind",
723
+ "html"
724
+ ]
725
+ }
726
+ ]
727
+ },
690
728
  "dataGrid": {
691
729
  "type": "object",
692
730
  "properties": {
@@ -749,7 +787,10 @@
749
787
  "type": "string",
750
788
  "const": "data-grid"
751
789
  }
752
- }
790
+ },
791
+ "required": [
792
+ "kind"
793
+ ]
753
794
  },
754
795
  {
755
796
  "type": "object",
@@ -818,7 +859,10 @@
818
859
  "format": {
819
860
  "type": "string"
820
861
  }
821
- }
862
+ },
863
+ "required": [
864
+ "kind"
865
+ ]
822
866
  }
823
867
  ]
824
868
  },
@@ -831,7 +875,10 @@
831
875
  "type": "string",
832
876
  "const": "array"
833
877
  }
834
- }
878
+ },
879
+ "required": [
880
+ "role"
881
+ ]
835
882
  },
836
883
  {
837
884
  "oneOf": [
@@ -845,7 +892,8 @@
845
892
  "properties": {
846
893
  "kind": {
847
894
  "type": "string",
848
- "const": "default"
895
+ "const": "default",
896
+ "default": "default"
849
897
  }
850
898
  }
851
899
  }
@@ -879,7 +927,8 @@
879
927
  "properties": {
880
928
  "kind": {
881
929
  "type": "string",
882
- "const": "default"
930
+ "const": "default",
931
+ "default": "default"
883
932
  }
884
933
  }
885
934
  }
@@ -939,7 +988,10 @@
939
988
  "type": "string",
940
989
  "const": "group"
941
990
  }
942
- }
991
+ },
992
+ "required": [
993
+ "role"
994
+ ]
943
995
  },
944
996
  {
945
997
  "oneOf": [
@@ -953,7 +1005,8 @@
953
1005
  "properties": {
954
1006
  "kind": {
955
1007
  "type": "string",
956
- "const": "default"
1008
+ "const": "default",
1009
+ "default": "default"
957
1010
  }
958
1011
  }
959
1012
  }
@@ -1051,7 +1104,10 @@
1051
1104
  "type": "string",
1052
1105
  "const": "icon"
1053
1106
  }
1054
- }
1107
+ },
1108
+ "required": [
1109
+ "kind"
1110
+ ]
1055
1111
  }
1056
1112
  ]
1057
1113
  },
@@ -1100,7 +1156,10 @@
1100
1156
  "placeholder": {
1101
1157
  "type": "string"
1102
1158
  }
1103
- }
1159
+ },
1160
+ "required": [
1161
+ "kind"
1162
+ ]
1104
1163
  }
1105
1164
  ]
1106
1165
  },
@@ -1116,7 +1175,10 @@
1116
1175
  "type": "string",
1117
1176
  "const": "link"
1118
1177
  }
1119
- }
1178
+ },
1179
+ "required": [
1180
+ "kind"
1181
+ ]
1120
1182
  }
1121
1183
  ]
1122
1184
  },
@@ -1286,7 +1348,10 @@
1286
1348
  "type": "boolean",
1287
1349
  "description": "Whether the select form control is multiple mode"
1288
1350
  }
1289
- }
1351
+ },
1352
+ "required": [
1353
+ "kind"
1354
+ ]
1290
1355
  }
1291
1356
  ]
1292
1357
  },
@@ -1309,7 +1374,10 @@
1309
1374
  "after"
1310
1375
  ]
1311
1376
  }
1312
- }
1377
+ },
1378
+ "required": [
1379
+ "kind"
1380
+ ]
1313
1381
  }
1314
1382
  ]
1315
1383
  },
@@ -1325,7 +1393,10 @@
1325
1393
  "type": "string",
1326
1394
  "const": "spinner"
1327
1395
  }
1328
- }
1396
+ },
1397
+ "required": [
1398
+ "kind"
1399
+ ]
1329
1400
  }
1330
1401
  ]
1331
1402
  },
@@ -1401,7 +1472,10 @@
1401
1472
  "property"
1402
1473
  ]
1403
1474
  }
1404
- }
1475
+ },
1476
+ "required": [
1477
+ "kind"
1478
+ ]
1405
1479
  }
1406
1480
  ]
1407
1481
  },
@@ -1480,7 +1554,10 @@
1480
1554
  "table": {
1481
1555
  "$ref": "#/definitions/table"
1482
1556
  }
1483
- }
1557
+ },
1558
+ "required": [
1559
+ "kind"
1560
+ ]
1484
1561
  }
1485
1562
  ]
1486
1563
  },
@@ -1555,7 +1632,8 @@
1555
1632
  "properties": {
1556
1633
  "kind": {
1557
1634
  "type": "string",
1558
- "const": "default"
1635
+ "const": "default",
1636
+ "default": "default"
1559
1637
  }
1560
1638
  }
1561
1639
  }
@@ -1564,6 +1642,9 @@
1564
1642
  {
1565
1643
  "$ref": "#/definitions/dateTableColumn"
1566
1644
  },
1645
+ {
1646
+ "$ref": "#/definitions/customTableColumn"
1647
+ },
1567
1648
  {
1568
1649
  "$ref": "#/definitions/linkTableColumn"
1569
1650
  },
@@ -1666,7 +1747,10 @@
1666
1747
  "identifier": {
1667
1748
  "$ref": "#/definitions/accordionIdentifier"
1668
1749
  }
1669
- }
1750
+ },
1751
+ "required": [
1752
+ "kind"
1753
+ ]
1670
1754
  }
1671
1755
  ]
1672
1756
  },
@@ -1699,7 +1783,10 @@
1699
1783
  }
1700
1784
  }
1701
1785
  }
1702
- }
1786
+ },
1787
+ "required": [
1788
+ "kind"
1789
+ ]
1703
1790
  }
1704
1791
  ]
1705
1792
  },
@@ -1766,7 +1853,10 @@
1766
1853
  "table": {
1767
1854
  "$ref": "#/definitions/treeTable"
1768
1855
  }
1769
- }
1856
+ },
1857
+ "required": [
1858
+ "kind"
1859
+ ]
1770
1860
  }
1771
1861
  ]
1772
1862
  },
@@ -1782,7 +1872,10 @@
1782
1872
  "type": "string",
1783
1873
  "const": "tree"
1784
1874
  }
1785
- }
1875
+ },
1876
+ "required": [
1877
+ "kind"
1878
+ ]
1786
1879
  }
1787
1880
  ]
1788
1881
  },
@@ -271,7 +271,10 @@
271
271
  }
272
272
  }
273
273
  }
274
- }
274
+ },
275
+ "required": [
276
+ "kind"
277
+ ]
275
278
  }
276
279
  ]
277
280
  },
@@ -491,7 +494,10 @@
491
494
  "type": "string",
492
495
  "const": "boolean"
493
496
  }
494
- }
497
+ },
498
+ "required": [
499
+ "kind"
500
+ ]
495
501
  }
496
502
  ]
497
503
  },
@@ -537,7 +543,10 @@
537
543
  "after"
538
544
  ]
539
545
  }
540
- }
546
+ },
547
+ "required": [
548
+ "kind"
549
+ ]
541
550
  }
542
551
  ]
543
552
  },
@@ -553,7 +562,10 @@
553
562
  "type": "string",
554
563
  "const": "component"
555
564
  }
556
- }
565
+ },
566
+ "required": [
567
+ "kind"
568
+ ]
557
569
  }
558
570
  ]
559
571
  },
@@ -582,7 +594,10 @@
582
594
  "type": "string",
583
595
  "const": "copy-to-clipboard"
584
596
  }
585
- }
597
+ },
598
+ "required": [
599
+ "kind"
600
+ ]
586
601
  }
587
602
  ]
588
603
  },
@@ -618,6 +633,29 @@
618
633
  }
619
634
  ]
620
635
  },
636
+ "customTableColumn": {
637
+ "allOf": [
638
+ {
639
+ "$ref": "#/definitions/baseTableColumn"
640
+ },
641
+ {
642
+ "type": "object",
643
+ "properties": {
644
+ "kind": {
645
+ "type": "string",
646
+ "const": "custom"
647
+ },
648
+ "html": {
649
+ "type": "string"
650
+ }
651
+ },
652
+ "required": [
653
+ "kind",
654
+ "html"
655
+ ]
656
+ }
657
+ ]
658
+ },
621
659
  "dataGrid": {
622
660
  "type": "object",
623
661
  "properties": {
@@ -680,7 +718,10 @@
680
718
  "type": "string",
681
719
  "const": "data-grid"
682
720
  }
683
- }
721
+ },
722
+ "required": [
723
+ "kind"
724
+ ]
684
725
  },
685
726
  {
686
727
  "type": "object",
@@ -749,7 +790,10 @@
749
790
  "format": {
750
791
  "type": "string"
751
792
  }
752
- }
793
+ },
794
+ "required": [
795
+ "kind"
796
+ ]
753
797
  }
754
798
  ]
755
799
  },
@@ -762,7 +806,10 @@
762
806
  "type": "string",
763
807
  "const": "array"
764
808
  }
765
- }
809
+ },
810
+ "required": [
811
+ "role"
812
+ ]
766
813
  },
767
814
  {
768
815
  "oneOf": [
@@ -776,7 +823,8 @@
776
823
  "properties": {
777
824
  "kind": {
778
825
  "type": "string",
779
- "const": "default"
826
+ "const": "default",
827
+ "default": "default"
780
828
  }
781
829
  }
782
830
  }
@@ -810,7 +858,8 @@
810
858
  "properties": {
811
859
  "kind": {
812
860
  "type": "string",
813
- "const": "default"
861
+ "const": "default",
862
+ "default": "default"
814
863
  }
815
864
  }
816
865
  }
@@ -870,7 +919,10 @@
870
919
  "type": "string",
871
920
  "const": "group"
872
921
  }
873
- }
922
+ },
923
+ "required": [
924
+ "role"
925
+ ]
874
926
  },
875
927
  {
876
928
  "oneOf": [
@@ -884,7 +936,8 @@
884
936
  "properties": {
885
937
  "kind": {
886
938
  "type": "string",
887
- "const": "default"
939
+ "const": "default",
940
+ "default": "default"
888
941
  }
889
942
  }
890
943
  }
@@ -982,7 +1035,10 @@
982
1035
  "type": "string",
983
1036
  "const": "icon"
984
1037
  }
985
- }
1038
+ },
1039
+ "required": [
1040
+ "kind"
1041
+ ]
986
1042
  }
987
1043
  ]
988
1044
  },
@@ -1031,7 +1087,10 @@
1031
1087
  "placeholder": {
1032
1088
  "type": "string"
1033
1089
  }
1034
- }
1090
+ },
1091
+ "required": [
1092
+ "kind"
1093
+ ]
1035
1094
  }
1036
1095
  ]
1037
1096
  },
@@ -1047,7 +1106,10 @@
1047
1106
  "type": "string",
1048
1107
  "const": "link"
1049
1108
  }
1050
- }
1109
+ },
1110
+ "required": [
1111
+ "kind"
1112
+ ]
1051
1113
  }
1052
1114
  ]
1053
1115
  },
@@ -1217,7 +1279,10 @@
1217
1279
  "type": "boolean",
1218
1280
  "description": "Whether the select form control is multiple mode"
1219
1281
  }
1220
- }
1282
+ },
1283
+ "required": [
1284
+ "kind"
1285
+ ]
1221
1286
  }
1222
1287
  ]
1223
1288
  },
@@ -1240,7 +1305,10 @@
1240
1305
  "after"
1241
1306
  ]
1242
1307
  }
1243
- }
1308
+ },
1309
+ "required": [
1310
+ "kind"
1311
+ ]
1244
1312
  }
1245
1313
  ]
1246
1314
  },
@@ -1256,7 +1324,10 @@
1256
1324
  "type": "string",
1257
1325
  "const": "spinner"
1258
1326
  }
1259
- }
1327
+ },
1328
+ "required": [
1329
+ "kind"
1330
+ ]
1260
1331
  }
1261
1332
  ]
1262
1333
  },
@@ -1332,7 +1403,10 @@
1332
1403
  "property"
1333
1404
  ]
1334
1405
  }
1335
- }
1406
+ },
1407
+ "required": [
1408
+ "kind"
1409
+ ]
1336
1410
  }
1337
1411
  ]
1338
1412
  },
@@ -1411,7 +1485,10 @@
1411
1485
  "table": {
1412
1486
  "$ref": "#/definitions/table"
1413
1487
  }
1414
- }
1488
+ },
1489
+ "required": [
1490
+ "kind"
1491
+ ]
1415
1492
  }
1416
1493
  ]
1417
1494
  },
@@ -1486,7 +1563,8 @@
1486
1563
  "properties": {
1487
1564
  "kind": {
1488
1565
  "type": "string",
1489
- "const": "default"
1566
+ "const": "default",
1567
+ "default": "default"
1490
1568
  }
1491
1569
  }
1492
1570
  }
@@ -1495,6 +1573,9 @@
1495
1573
  {
1496
1574
  "$ref": "#/definitions/dateTableColumn"
1497
1575
  },
1576
+ {
1577
+ "$ref": "#/definitions/customTableColumn"
1578
+ },
1498
1579
  {
1499
1580
  "$ref": "#/definitions/linkTableColumn"
1500
1581
  },
@@ -1597,7 +1678,10 @@
1597
1678
  "identifier": {
1598
1679
  "$ref": "#/definitions/accordionIdentifier"
1599
1680
  }
1600
- }
1681
+ },
1682
+ "required": [
1683
+ "kind"
1684
+ ]
1601
1685
  }
1602
1686
  ]
1603
1687
  },
@@ -1630,7 +1714,10 @@
1630
1714
  }
1631
1715
  }
1632
1716
  }
1633
- }
1717
+ },
1718
+ "required": [
1719
+ "kind"
1720
+ ]
1634
1721
  }
1635
1722
  ]
1636
1723
  },
@@ -1697,7 +1784,10 @@
1697
1784
  "table": {
1698
1785
  "$ref": "#/definitions/treeTable"
1699
1786
  }
1700
- }
1787
+ },
1788
+ "required": [
1789
+ "kind"
1790
+ ]
1701
1791
  }
1702
1792
  ]
1703
1793
  },
@@ -1713,7 +1803,10 @@
1713
1803
  "type": "string",
1714
1804
  "const": "tree"
1715
1805
  }
1716
- }
1806
+ },
1807
+ "required": [
1808
+ "kind"
1809
+ ]
1717
1810
  }
1718
1811
  ]
1719
1812
  },