@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
@@ -226,7 +226,10 @@
226
226
  }
227
227
  }
228
228
  }
229
- }
229
+ },
230
+ "required": [
231
+ "kind"
232
+ ]
230
233
  }
231
234
  ]
232
235
  },
@@ -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
  },
@@ -910,7 +961,10 @@
910
961
  "type": "boolean",
911
962
  "description": "Whether the select form control is multiple mode"
912
963
  }
913
- }
964
+ },
965
+ "required": [
966
+ "kind"
967
+ ]
914
968
  }
915
969
  ]
916
970
  },
@@ -933,7 +987,10 @@
933
987
  "after"
934
988
  ]
935
989
  }
936
- }
990
+ },
991
+ "required": [
992
+ "kind"
993
+ ]
937
994
  }
938
995
  ]
939
996
  },
@@ -949,7 +1006,10 @@
949
1006
  "type": "string",
950
1007
  "const": "spinner"
951
1008
  }
952
- }
1009
+ },
1010
+ "required": [
1011
+ "kind"
1012
+ ]
953
1013
  }
954
1014
  ]
955
1015
  },
@@ -1024,7 +1084,8 @@
1024
1084
  "properties": {
1025
1085
  "kind": {
1026
1086
  "type": "string",
1027
- "const": "default"
1087
+ "const": "default",
1088
+ "default": "default"
1028
1089
  }
1029
1090
  }
1030
1091
  }
@@ -1033,6 +1094,9 @@
1033
1094
  {
1034
1095
  "$ref": "#/definitions/dateTableColumn"
1035
1096
  },
1097
+ {
1098
+ "$ref": "#/definitions/customTableColumn"
1099
+ },
1036
1100
  {
1037
1101
  "$ref": "#/definitions/linkTableColumn"
1038
1102
  },
@@ -1135,7 +1199,10 @@
1135
1199
  "identifier": {
1136
1200
  "$ref": "#/definitions/accordionIdentifier"
1137
1201
  }
1138
- }
1202
+ },
1203
+ "required": [
1204
+ "kind"
1205
+ ]
1139
1206
  }
1140
1207
  ]
1141
1208
  },
@@ -1168,7 +1235,10 @@
1168
1235
  }
1169
1236
  }
1170
1237
  }
1171
- }
1238
+ },
1239
+ "required": [
1240
+ "kind"
1241
+ ]
1172
1242
  }
1173
1243
  ]
1174
1244
  },
@@ -1235,7 +1305,10 @@
1235
1305
  "table": {
1236
1306
  "$ref": "#/definitions/treeTable"
1237
1307
  }
1238
- }
1308
+ },
1309
+ "required": [
1310
+ "kind"
1311
+ ]
1239
1312
  }
1240
1313
  ]
1241
1314
  },
@@ -1251,7 +1324,10 @@
1251
1324
  "type": "string",
1252
1325
  "const": "tree"
1253
1326
  }
1254
- }
1327
+ },
1328
+ "required": [
1329
+ "kind"
1330
+ ]
1255
1331
  }
1256
1332
  ]
1257
1333
  },
@@ -76,7 +76,8 @@
76
76
  }
77
77
  }
78
78
  }
79
- }
79
+ },
80
+ "required": ["kind"]
80
81
  }
81
82
  ],
82
83
  "definitions": {
@@ -12,7 +12,8 @@
12
12
  "type": "string",
13
13
  "const": "boolean"
14
14
  }
15
- }
15
+ },
16
+ "required": ["kind"]
16
17
  }
17
18
  ],
18
19
  "definitions": {
@@ -19,7 +19,8 @@
19
19
  "after"
20
20
  ]
21
21
  }
22
- }
22
+ },
23
+ "required": ["kind"]
23
24
  }
24
25
  ],
25
26
  "definitions": {
@@ -12,7 +12,8 @@
12
12
  "type": "string",
13
13
  "const": "component"
14
14
  }
15
- }
15
+ },
16
+ "required": ["kind"]
16
17
  }
17
18
  ],
18
19
  "definitions": {
@@ -12,7 +12,8 @@
12
12
  "type": "string",
13
13
  "const": "copy-to-clipboard"
14
14
  }
15
- }
15
+ },
16
+ "required": ["kind"]
16
17
  }
17
18
  ],
18
19
  "definitions": {
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "custom-table-column",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/baseTableColumn"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "kind": {
12
+ "type": "string",
13
+ "const": "custom"
14
+ },
15
+ "html": {
16
+ "type": "string"
17
+ }
18
+ },
19
+ "required": ["kind", "html"]
20
+ }
21
+ ],
22
+ "definitions": {
23
+ "baseTableColumn": {
24
+ "$ref": "./base-table-column.schema.json"
25
+ }
26
+ }
27
+ }
@@ -12,7 +12,8 @@
12
12
  "type": "string",
13
13
  "const": "data-grid"
14
14
  }
15
- }
15
+ },
16
+ "required": ["kind"]
16
17
  },
17
18
  {
18
19
  "type": "object",
@@ -226,7 +226,10 @@
226
226
  }
227
227
  }
228
228
  }
229
- }
229
+ },
230
+ "required": [
231
+ "kind"
232
+ ]
230
233
  }
231
234
  ]
232
235
  },
@@ -370,7 +373,10 @@
370
373
  "after"
371
374
  ]
372
375
  }
373
- }
376
+ },
377
+ "required": [
378
+ "kind"
379
+ ]
374
380
  }
375
381
  ]
376
382
  },
@@ -520,7 +526,10 @@
520
526
  "type": "string",
521
527
  "const": "array"
522
528
  }
523
- }
529
+ },
530
+ "required": [
531
+ "role"
532
+ ]
524
533
  },
525
534
  {
526
535
  "oneOf": [
@@ -534,7 +543,8 @@
534
543
  "properties": {
535
544
  "kind": {
536
545
  "type": "string",
537
- "const": "default"
546
+ "const": "default",
547
+ "default": "default"
538
548
  }
539
549
  }
540
550
  }
@@ -568,7 +578,8 @@
568
578
  "properties": {
569
579
  "kind": {
570
580
  "type": "string",
571
- "const": "default"
581
+ "const": "default",
582
+ "default": "default"
572
583
  }
573
584
  }
574
585
  }
@@ -628,7 +639,10 @@
628
639
  "type": "string",
629
640
  "const": "group"
630
641
  }
631
- }
642
+ },
643
+ "required": [
644
+ "role"
645
+ ]
632
646
  },
633
647
  {
634
648
  "oneOf": [
@@ -642,7 +656,8 @@
642
656
  "properties": {
643
657
  "kind": {
644
658
  "type": "string",
645
- "const": "default"
659
+ "const": "default",
660
+ "default": "default"
646
661
  }
647
662
  }
648
663
  }
@@ -733,7 +748,10 @@
733
748
  "placeholder": {
734
749
  "type": "string"
735
750
  }
736
- }
751
+ },
752
+ "required": [
753
+ "kind"
754
+ ]
737
755
  }
738
756
  ]
739
757
  },
@@ -852,7 +870,10 @@
852
870
  "type": "boolean",
853
871
  "description": "Whether the select form control is multiple mode"
854
872
  }
855
- }
873
+ },
874
+ "required": [
875
+ "kind"
876
+ ]
856
877
  }
857
878
  ]
858
879
  },
@@ -875,7 +896,10 @@
875
896
  "after"
876
897
  ]
877
898
  }
878
- }
899
+ },
900
+ "required": [
901
+ "kind"
902
+ ]
879
903
  }
880
904
  ]
881
905
  },
@@ -958,7 +982,10 @@
958
982
  "identifier": {
959
983
  "$ref": "#/definitions/accordionIdentifier"
960
984
  }
961
- }
985
+ },
986
+ "required": [
987
+ "kind"
988
+ ]
962
989
  }
963
990
  ]
964
991
  },
@@ -991,7 +1018,10 @@
991
1018
  }
992
1019
  }
993
1020
  }
994
- }
1021
+ },
1022
+ "required": [
1023
+ "kind"
1024
+ ]
995
1025
  }
996
1026
  ]
997
1027
  },
@@ -15,7 +15,8 @@
15
15
  "format": {
16
16
  "type": "string"
17
17
  }
18
- }
18
+ },
19
+ "required": ["kind"]
19
20
  }
20
21
  ],
21
22
  "definitions": {
@@ -222,7 +222,10 @@
222
222
  }
223
223
  }
224
224
  }
225
- }
225
+ },
226
+ "required": [
227
+ "kind"
228
+ ]
226
229
  }
227
230
  ]
228
231
  },
@@ -333,7 +333,10 @@
333
333
  "placeholder": {
334
334
  "type": "string"
335
335
  }
336
- }
336
+ },
337
+ "required": [
338
+ "kind"
339
+ ]
337
340
  }
338
341
  ]
339
342
  },
@@ -375,7 +375,10 @@
375
375
  "type": "boolean",
376
376
  "description": "Whether the select form control is multiple mode"
377
377
  }
378
- }
378
+ },
379
+ "required": [
380
+ "kind"
381
+ ]
379
382
  }
380
383
  ]
381
384
  },
@@ -417,7 +417,10 @@
417
417
  "identifier": {
418
418
  "$ref": "#/definitions/accordionIdentifier"
419
419
  }
420
- }
420
+ },
421
+ "required": [
422
+ "kind"
423
+ ]
421
424
  }
422
425
  ]
423
426
  },
@@ -239,7 +239,10 @@
239
239
  }
240
240
  }
241
241
  }
242
- }
242
+ },
243
+ "required": [
244
+ "kind"
245
+ ]
243
246
  }
244
247
  ]
245
248
  },
@@ -383,7 +386,10 @@
383
386
  "after"
384
387
  ]
385
388
  }
386
- }
389
+ },
390
+ "required": [
391
+ "kind"
392
+ ]
387
393
  }
388
394
  ]
389
395
  },
@@ -441,7 +447,10 @@
441
447
  "type": "string",
442
448
  "const": "array"
443
449
  }
444
- }
450
+ },
451
+ "required": [
452
+ "role"
453
+ ]
445
454
  },
446
455
  {
447
456
  "oneOf": [
@@ -455,7 +464,8 @@
455
464
  "properties": {
456
465
  "kind": {
457
466
  "type": "string",
458
- "const": "default"
467
+ "const": "default",
468
+ "default": "default"
459
469
  }
460
470
  }
461
471
  }
@@ -489,7 +499,8 @@
489
499
  "properties": {
490
500
  "kind": {
491
501
  "type": "string",
492
- "const": "default"
502
+ "const": "default",
503
+ "default": "default"
493
504
  }
494
505
  }
495
506
  }
@@ -549,7 +560,10 @@
549
560
  "type": "string",
550
561
  "const": "group"
551
562
  }
552
- }
563
+ },
564
+ "required": [
565
+ "role"
566
+ ]
553
567
  },
554
568
  {
555
569
  "oneOf": [
@@ -563,7 +577,8 @@
563
577
  "properties": {
564
578
  "kind": {
565
579
  "type": "string",
566
- "const": "default"
580
+ "const": "default",
581
+ "default": "default"
567
582
  }
568
583
  }
569
584
  }
@@ -654,7 +669,10 @@
654
669
  "placeholder": {
655
670
  "type": "string"
656
671
  }
657
- }
672
+ },
673
+ "required": [
674
+ "kind"
675
+ ]
658
676
  }
659
677
  ]
660
678
  },
@@ -745,7 +763,10 @@
745
763
  "type": "boolean",
746
764
  "description": "Whether the select form control is multiple mode"
747
765
  }
748
- }
766
+ },
767
+ "required": [
768
+ "kind"
769
+ ]
749
770
  }
750
771
  ]
751
772
  },
@@ -768,7 +789,10 @@
768
789
  "after"
769
790
  ]
770
791
  }
771
- }
792
+ },
793
+ "required": [
794
+ "kind"
795
+ ]
772
796
  }
773
797
  ]
774
798
  },
@@ -851,7 +875,10 @@
851
875
  "identifier": {
852
876
  "$ref": "#/definitions/accordionIdentifier"
853
877
  }
854
- }
878
+ },
879
+ "required": [
880
+ "kind"
881
+ ]
855
882
  }
856
883
  ]
857
884
  },
@@ -884,7 +911,10 @@
884
911
  }
885
912
  }
886
913
  }
887
- }
914
+ },
915
+ "required": [
916
+ "kind"
917
+ ]
888
918
  }
889
919
  ]
890
920
  },