@rxap/schematic-angular 16.2.0 → 16.3.0

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 (60) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +1 -1
  3. package/package.json +6 -6
  4. package/src/lib/angular-options.js +2 -1
  5. package/src/lib/angular-options.js.map +1 -1
  6. package/src/lib/backend-types.d.ts +2 -1
  7. package/src/lib/backend-types.js +1 -0
  8. package/src/lib/backend-types.js.map +1 -1
  9. package/src/lib/coerce-minimum-table-component.d.ts +4 -1
  10. package/src/lib/coerce-minimum-table-component.js +5 -0
  11. package/src/lib/coerce-minimum-table-component.js.map +1 -1
  12. package/src/lib/table/column/options-table-column.d.ts +11 -0
  13. package/src/lib/table/column/options-table-column.js +23 -0
  14. package/src/lib/table/column/options-table-column.js.map +1 -0
  15. package/src/lib/table/table-column-kind.d.ts +2 -1
  16. package/src/lib/table/table-column-kind.js +1 -0
  17. package/src/lib/table/table-column-kind.js.map +1 -1
  18. package/src/lib/table/table-column.js +3 -0
  19. package/src/lib/table/table-column.js.map +1 -1
  20. package/src/schema.json +57 -24
  21. package/src/schematics/accordion/accordion-component/schema.json +57 -24
  22. package/src/schematics/accordion/accordion-item-component/schema.json +57 -24
  23. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +28 -24
  24. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +57 -24
  25. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +57 -24
  26. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +57 -24
  27. package/src/schematics/accordion/templates/switch-accordion-item.hbs +1 -1
  28. package/src/schematics/backend.schema.json +2 -1
  29. package/src/schematics/data-grid-component/schema.json +28 -24
  30. package/src/schematics/dialog-component/schema.json +2 -1
  31. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +2 -1
  32. package/src/schematics/form/control/input-form-control/schema.json +2 -1
  33. package/src/schematics/form/control/select-form-control/schema.json +28 -24
  34. package/src/schematics/form/control/table-select-form-control/schema.json +2 -1
  35. package/src/schematics/form/form-array/schema.json +28 -24
  36. package/src/schematics/form/form-component/schema.json +28 -24
  37. package/src/schematics/form/form-control/schema.json +28 -24
  38. package/src/schematics/form/form-definition/schema.json +28 -24
  39. package/src/schematics/form/form-group/schema.json +28 -24
  40. package/src/schematics/option.schema.json +27 -0
  41. package/src/schematics/options-table-column.schema.json +33 -0
  42. package/src/schematics/route-component/schema.json +2 -1
  43. package/src/schematics/select-form-control.schema.json +4 -23
  44. package/src/schematics/table/action/dialog-table-action/schema.json +2 -1
  45. package/src/schematics/table/action/form-table-action/schema.json +28 -24
  46. package/src/schematics/table/action/navigation-table-action/schema.json +2 -1
  47. package/src/schematics/table/action/open-api-table-action/schema.json +2 -1
  48. package/src/schematics/table/action/operation-table-action/schema.json +2 -1
  49. package/src/schematics/table/header-button/form-table-header-button/schema.json +28 -24
  50. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +2 -1
  51. package/src/schematics/table/table-action/schema.json +2 -1
  52. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +3 -0
  53. package/src/schematics/table/table-component/schema.json +57 -24
  54. package/src/schematics/table/table-header-button/schema.json +2 -1
  55. package/src/schematics/table/templates/options-table-column.hbs +26 -0
  56. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +3 -0
  57. package/src/schematics/table/tree-table-component/schema.json +57 -24
  58. package/src/schematics/table-column.schema.json +6 -0
  59. package/src/schematics/tree-component/schema.json +2 -1
  60. package/src/template.schema.json +6 -0
@@ -240,7 +240,8 @@
240
240
  "none",
241
241
  "nestjs",
242
242
  "open-api",
243
- "local"
243
+ "local",
244
+ "data-source"
244
245
  ],
245
246
  "default": "none"
246
247
  },
@@ -713,6 +714,31 @@
713
714
  }
714
715
  ]
715
716
  },
717
+ "option": {
718
+ "type": "object",
719
+ "properties": {
720
+ "display": {
721
+ "type": "string"
722
+ },
723
+ "value": {
724
+ "oneOf": [
725
+ {
726
+ "type": "string"
727
+ },
728
+ {
729
+ "type": "number"
730
+ },
731
+ {
732
+ "type": "boolean"
733
+ },
734
+ {
735
+ "type": "object",
736
+ "additionalProperties": true
737
+ }
738
+ ]
739
+ }
740
+ }
741
+ },
716
742
  "property": {
717
743
  "oneOf": [
718
744
  {
@@ -767,29 +793,7 @@
767
793
  "optionList": {
768
794
  "type": "array",
769
795
  "items": {
770
- "type": "object",
771
- "properties": {
772
- "display": {
773
- "type": "string"
774
- },
775
- "value": {
776
- "oneOf": [
777
- {
778
- "type": "string"
779
- },
780
- {
781
- "type": "number"
782
- },
783
- {
784
- "type": "boolean"
785
- },
786
- {
787
- "type": "object",
788
- "additionalProperties": true
789
- }
790
- ]
791
- }
792
- }
796
+ "$ref": "#/definitions/option"
793
797
  }
794
798
  },
795
799
  "backend": {
@@ -253,7 +253,8 @@
253
253
  "none",
254
254
  "nestjs",
255
255
  "open-api",
256
- "local"
256
+ "local",
257
+ "data-source"
257
258
  ],
258
259
  "default": "none"
259
260
  },
@@ -522,6 +523,31 @@
522
523
  }
523
524
  ]
524
525
  },
526
+ "option": {
527
+ "type": "object",
528
+ "properties": {
529
+ "display": {
530
+ "type": "string"
531
+ },
532
+ "value": {
533
+ "oneOf": [
534
+ {
535
+ "type": "string"
536
+ },
537
+ {
538
+ "type": "number"
539
+ },
540
+ {
541
+ "type": "boolean"
542
+ },
543
+ {
544
+ "type": "object",
545
+ "additionalProperties": true
546
+ }
547
+ ]
548
+ }
549
+ }
550
+ },
525
551
  "property": {
526
552
  "oneOf": [
527
553
  {
@@ -576,29 +602,7 @@
576
602
  "optionList": {
577
603
  "type": "array",
578
604
  "items": {
579
- "type": "object",
580
- "properties": {
581
- "display": {
582
- "type": "string"
583
- },
584
- "value": {
585
- "oneOf": [
586
- {
587
- "type": "string"
588
- },
589
- {
590
- "type": "number"
591
- },
592
- {
593
- "type": "boolean"
594
- },
595
- {
596
- "type": "object",
597
- "additionalProperties": true
598
- }
599
- ]
600
- }
601
- }
605
+ "$ref": "#/definitions/option"
602
606
  }
603
607
  },
604
608
  "backend": {
@@ -250,7 +250,8 @@
250
250
  "none",
251
251
  "nestjs",
252
252
  "open-api",
253
- "local"
253
+ "local",
254
+ "data-source"
254
255
  ],
255
256
  "default": "none"
256
257
  },
@@ -688,6 +689,31 @@
688
689
  }
689
690
  ]
690
691
  },
692
+ "option": {
693
+ "type": "object",
694
+ "properties": {
695
+ "display": {
696
+ "type": "string"
697
+ },
698
+ "value": {
699
+ "oneOf": [
700
+ {
701
+ "type": "string"
702
+ },
703
+ {
704
+ "type": "number"
705
+ },
706
+ {
707
+ "type": "boolean"
708
+ },
709
+ {
710
+ "type": "object",
711
+ "additionalProperties": true
712
+ }
713
+ ]
714
+ }
715
+ }
716
+ },
691
717
  "property": {
692
718
  "oneOf": [
693
719
  {
@@ -742,29 +768,7 @@
742
768
  "optionList": {
743
769
  "type": "array",
744
770
  "items": {
745
- "type": "object",
746
- "properties": {
747
- "display": {
748
- "type": "string"
749
- },
750
- "value": {
751
- "oneOf": [
752
- {
753
- "type": "string"
754
- },
755
- {
756
- "type": "number"
757
- },
758
- {
759
- "type": "boolean"
760
- },
761
- {
762
- "type": "object",
763
- "additionalProperties": true
764
- }
765
- ]
766
- }
767
- }
771
+ "$ref": "#/definitions/option"
768
772
  }
769
773
  },
770
774
  "backend": {
@@ -253,7 +253,8 @@
253
253
  "none",
254
254
  "nestjs",
255
255
  "open-api",
256
- "local"
256
+ "local",
257
+ "data-source"
257
258
  ],
258
259
  "default": "none"
259
260
  },
@@ -676,6 +677,31 @@
676
677
  }
677
678
  ]
678
679
  },
680
+ "option": {
681
+ "type": "object",
682
+ "properties": {
683
+ "display": {
684
+ "type": "string"
685
+ },
686
+ "value": {
687
+ "oneOf": [
688
+ {
689
+ "type": "string"
690
+ },
691
+ {
692
+ "type": "number"
693
+ },
694
+ {
695
+ "type": "boolean"
696
+ },
697
+ {
698
+ "type": "object",
699
+ "additionalProperties": true
700
+ }
701
+ ]
702
+ }
703
+ }
704
+ },
679
705
  "property": {
680
706
  "oneOf": [
681
707
  {
@@ -730,29 +756,7 @@
730
756
  "optionList": {
731
757
  "type": "array",
732
758
  "items": {
733
- "type": "object",
734
- "properties": {
735
- "display": {
736
- "type": "string"
737
- },
738
- "value": {
739
- "oneOf": [
740
- {
741
- "type": "string"
742
- },
743
- {
744
- "type": "number"
745
- },
746
- {
747
- "type": "boolean"
748
- },
749
- {
750
- "type": "object",
751
- "additionalProperties": true
752
- }
753
- ]
754
- }
755
- }
759
+ "$ref": "#/definitions/option"
756
760
  }
757
761
  },
758
762
  "backend": {
@@ -0,0 +1,27 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "option",
4
+ "type": "object",
5
+ "properties": {
6
+ "display": {
7
+ "type": "string"
8
+ },
9
+ "value": {
10
+ "oneOf": [
11
+ {
12
+ "type": "string"
13
+ },
14
+ {
15
+ "type": "number"
16
+ },
17
+ {
18
+ "type": "boolean"
19
+ },
20
+ {
21
+ "type": "object",
22
+ "additionalProperties": true
23
+ }
24
+ ]
25
+ }
26
+ }
27
+ }
@@ -0,0 +1,33 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "options-table-column",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/baseTableColumn"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "kind": {
12
+ "type": "string",
13
+ "const": "options"
14
+ },
15
+ "optionList": {
16
+ "type": "array",
17
+ "items": {
18
+ "$ref": "#/definitions/option"
19
+ }
20
+ }
21
+ },
22
+ "required": ["kind", "optionList"]
23
+ }
24
+ ],
25
+ "definitions": {
26
+ "baseTableColumn": {
27
+ "$ref": "./base-table-column.schema.json"
28
+ },
29
+ "option": {
30
+ "$ref": "./option.schema.json"
31
+ }
32
+ }
33
+ }
@@ -68,7 +68,8 @@
68
68
  "none",
69
69
  "nestjs",
70
70
  "open-api",
71
- "local"
71
+ "local",
72
+ "data-source"
72
73
  ],
73
74
  "default": "none"
74
75
  },
@@ -21,29 +21,7 @@
21
21
  "optionList": {
22
22
  "type": "array",
23
23
  "items": {
24
- "type": "object",
25
- "properties": {
26
- "display": {
27
- "type": "string"
28
- },
29
- "value": {
30
- "oneOf": [
31
- {
32
- "type": "string"
33
- },
34
- {
35
- "type": "number"
36
- },
37
- {
38
- "type": "boolean"
39
- },
40
- {
41
- "type": "object",
42
- "additionalProperties": true
43
- }
44
- ]
45
- }
46
- }
24
+ "$ref": "#/definitions/option"
47
25
  }
48
26
  },
49
27
  "backend": {
@@ -70,6 +48,9 @@
70
48
  },
71
49
  "upstream": {
72
50
  "$ref": "./upstream.schema.json"
51
+ },
52
+ "option": {
53
+ "$ref": "./option.schema.json"
73
54
  }
74
55
  }
75
56
  }
@@ -109,7 +109,8 @@
109
109
  "none",
110
110
  "nestjs",
111
111
  "open-api",
112
- "local"
112
+ "local",
113
+ "data-source"
113
114
  ],
114
115
  "default": "none"
115
116
  },
@@ -295,7 +295,8 @@
295
295
  "none",
296
296
  "nestjs",
297
297
  "open-api",
298
- "local"
298
+ "local",
299
+ "data-source"
299
300
  ],
300
301
  "default": "none"
301
302
  },
@@ -768,6 +769,31 @@
768
769
  }
769
770
  ]
770
771
  },
772
+ "option": {
773
+ "type": "object",
774
+ "properties": {
775
+ "display": {
776
+ "type": "string"
777
+ },
778
+ "value": {
779
+ "oneOf": [
780
+ {
781
+ "type": "string"
782
+ },
783
+ {
784
+ "type": "number"
785
+ },
786
+ {
787
+ "type": "boolean"
788
+ },
789
+ {
790
+ "type": "object",
791
+ "additionalProperties": true
792
+ }
793
+ ]
794
+ }
795
+ }
796
+ },
771
797
  "property": {
772
798
  "oneOf": [
773
799
  {
@@ -822,29 +848,7 @@
822
848
  "optionList": {
823
849
  "type": "array",
824
850
  "items": {
825
- "type": "object",
826
- "properties": {
827
- "display": {
828
- "type": "string"
829
- },
830
- "value": {
831
- "oneOf": [
832
- {
833
- "type": "string"
834
- },
835
- {
836
- "type": "number"
837
- },
838
- {
839
- "type": "boolean"
840
- },
841
- {
842
- "type": "object",
843
- "additionalProperties": true
844
- }
845
- ]
846
- }
847
- }
851
+ "$ref": "#/definitions/option"
848
852
  }
849
853
  },
850
854
  "backend": {
@@ -79,7 +79,8 @@
79
79
  "none",
80
80
  "nestjs",
81
81
  "open-api",
82
- "local"
82
+ "local",
83
+ "data-source"
83
84
  ],
84
85
  "default": "none"
85
86
  },
@@ -107,7 +107,8 @@
107
107
  "none",
108
108
  "nestjs",
109
109
  "open-api",
110
- "local"
110
+ "local",
111
+ "data-source"
111
112
  ],
112
113
  "default": "none"
113
114
  },
@@ -65,7 +65,8 @@
65
65
  "none",
66
66
  "nestjs",
67
67
  "open-api",
68
- "local"
68
+ "local",
69
+ "data-source"
69
70
  ],
70
71
  "default": "none"
71
72
  },
@@ -253,7 +253,8 @@
253
253
  "none",
254
254
  "nestjs",
255
255
  "open-api",
256
- "local"
256
+ "local",
257
+ "data-source"
257
258
  ],
258
259
  "default": "none"
259
260
  },
@@ -766,6 +767,31 @@
766
767
  }
767
768
  ]
768
769
  },
770
+ "option": {
771
+ "type": "object",
772
+ "properties": {
773
+ "display": {
774
+ "type": "string"
775
+ },
776
+ "value": {
777
+ "oneOf": [
778
+ {
779
+ "type": "string"
780
+ },
781
+ {
782
+ "type": "number"
783
+ },
784
+ {
785
+ "type": "boolean"
786
+ },
787
+ {
788
+ "type": "object",
789
+ "additionalProperties": true
790
+ }
791
+ ]
792
+ }
793
+ }
794
+ },
769
795
  "property": {
770
796
  "oneOf": [
771
797
  {
@@ -820,29 +846,7 @@
820
846
  "optionList": {
821
847
  "type": "array",
822
848
  "items": {
823
- "type": "object",
824
- "properties": {
825
- "display": {
826
- "type": "string"
827
- },
828
- "value": {
829
- "oneOf": [
830
- {
831
- "type": "string"
832
- },
833
- {
834
- "type": "number"
835
- },
836
- {
837
- "type": "boolean"
838
- },
839
- {
840
- "type": "object",
841
- "additionalProperties": true
842
- }
843
- ]
844
- }
845
- }
849
+ "$ref": "#/definitions/option"
846
850
  }
847
851
  },
848
852
  "backend": {
@@ -79,7 +79,8 @@
79
79
  "none",
80
80
  "nestjs",
81
81
  "open-api",
82
- "local"
82
+ "local",
83
+ "data-source"
83
84
  ],
84
85
  "default": "none"
85
86
  },
@@ -78,7 +78,8 @@
78
78
  "none",
79
79
  "nestjs",
80
80
  "open-api",
81
- "local"
81
+ "local",
82
+ "data-source"
82
83
  ],
83
84
  "default": "none"
84
85
  },
@@ -90,6 +90,9 @@
90
90
  [ngClass]="{ 'hidden': tableDataSourceDirective.hasError$ | async }"
91
91
  mat-table
92
92
  #tableDataSourceDirective="rxapTableDataSource"
93
+ {{#ifeq backend "data-source"}}
94
+ [dataSource]="dataSource"
95
+ {{/ifeq}}
93
96
  rxapTableDataSource
94
97
  [parameters]="parameters"
95
98
  id="{{name}}"