@rxap/schematic-angular 16.2.0-dev.22 → 16.2.0-dev.24

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 (103) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +1 -1
  3. package/package.json +13 -13
  4. package/src/lib/accordion-header.js +7 -4
  5. package/src/lib/accordion-header.js.map +1 -1
  6. package/src/lib/accordion-identifier.d.ts +2 -2
  7. package/src/lib/accordion-identifier.js +2 -1
  8. package/src/lib/accordion-identifier.js.map +1 -1
  9. package/src/lib/accordion-item.js +17 -17
  10. package/src/lib/accordion-item.js.map +1 -1
  11. package/src/lib/coerce-form-component.js +3 -2
  12. package/src/lib/coerce-form-component.js.map +1 -1
  13. package/src/lib/css-class.d.ts +8 -0
  14. package/src/lib/css-class.js +28 -0
  15. package/src/lib/css-class.js.map +1 -0
  16. package/src/lib/data-grid-item.js +15 -10
  17. package/src/lib/data-grid-item.js.map +1 -1
  18. package/src/lib/form/control/autocomplete-table-select-form-control.js +11 -1
  19. package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -1
  20. package/src/lib/form/control/table-select-form-control.d.ts +3 -0
  21. package/src/lib/form/control/table-select-form-control.js +11 -1
  22. package/src/lib/form/control/table-select-form-control.js.map +1 -1
  23. package/src/lib/load-handlebars-template.d.ts +1 -0
  24. package/src/lib/load-handlebars-template.js +5 -1
  25. package/src/lib/load-handlebars-template.js.map +1 -1
  26. package/src/lib/minimum-table-options.d.ts +6 -0
  27. package/src/lib/minimum-table-options.js +9 -0
  28. package/src/lib/minimum-table-options.js.map +1 -1
  29. package/src/lib/table/table-filter-column-rule.js +2 -3
  30. package/src/lib/table/table-filter-column-rule.js.map +1 -1
  31. package/src/lib/table-action.js.map +1 -1
  32. package/src/lib/table-column.d.ts +3 -1
  33. package/src/lib/table-column.js +7 -3
  34. package/src/lib/table-column.js.map +1 -1
  35. package/src/lib/table-row-action.d.ts +4 -2
  36. package/src/lib/table-row-action.js +8 -7
  37. package/src/lib/table-row-action.js.map +1 -1
  38. package/src/schema.json +279 -167
  39. package/src/schematics/accordion/accordion-component/schema.json +1427 -116
  40. package/src/schematics/accordion/accordion-item-component/schema.json +1427 -116
  41. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +72 -62
  42. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +3 -14
  43. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +1411 -166
  44. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +3 -64
  45. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +119 -77
  46. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +3 -26
  47. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +119 -77
  48. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +3 -26
  49. package/src/schematics/accordion-identifier.schema.json +1 -2
  50. package/src/schematics/accordion-item.schema.json +43 -50
  51. package/src/schematics/autocomplete-table-select-form-control.schema.json +1 -1
  52. package/src/schematics/base-accordion-item.schema.json +52 -0
  53. package/src/schematics/css-class.schema.json +34 -0
  54. package/src/schematics/data-grid-accordion-item.schema.json +34 -0
  55. package/src/schematics/data-grid-component/index.js +9 -4
  56. package/src/schematics/data-grid-component/index.js.map +1 -1
  57. package/src/schematics/data-grid-component/schema.json +6 -7
  58. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +8 -6
  59. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -1
  60. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +2 -5
  61. package/src/schematics/form/control/input-form-control/schema.json +1 -4
  62. package/src/schematics/form/control/select-form-control/schema.json +1 -4
  63. package/src/schematics/form/control/table-select-form-control/index.js +8 -6
  64. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  65. package/src/schematics/form/control/table-select-form-control/schema.json +21 -4
  66. package/src/schematics/form/form-array/schema.json +22 -5
  67. package/src/schematics/form/form-component/schema.json +6 -7
  68. package/src/schematics/form/form-control/schema.json +22 -5
  69. package/src/schematics/form/form-definition/schema.json +22 -5
  70. package/src/schematics/form/form-group/schema.json +22 -5
  71. package/src/schematics/minimum-table.schema.json +12 -0
  72. package/src/schematics/property.schema.json +1 -4
  73. package/src/schematics/switch-accordion-item.schema.json +82 -0
  74. package/src/schematics/table/action/dialog-table-action/schema.json +33 -2
  75. package/src/schematics/table/action/form-table-action/schema.json +39 -9
  76. package/src/schematics/table/action/navigation-table-action/schema.json +33 -2
  77. package/src/schematics/table/action/open-api-table-action/schema.json +33 -2
  78. package/src/schematics/table/action/operation-table-action/schema.json +33 -2
  79. package/src/schematics/table/header-button/form-table-header-button/schema.json +6 -7
  80. package/src/schematics/table/table-action/schema.json +33 -2
  81. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +11 -9
  82. package/src/schematics/table/table-component/index.d.ts +0 -3
  83. package/src/schematics/table/table-component/index.js +2 -9
  84. package/src/schematics/table/table-component/index.js.map +1 -1
  85. package/src/schematics/table/table-component/schema.json +62 -8
  86. package/src/schematics/table/templates/boolean-table-column.hbs +3 -2
  87. package/src/schematics/table/templates/component-table-column.hbs +3 -2
  88. package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +3 -2
  89. package/src/schematics/table/templates/date-table-column.hbs +3 -2
  90. package/src/schematics/table/templates/default-table-column.hbs +4 -1
  91. package/src/schematics/table/templates/icon-table-column.hbs +3 -2
  92. package/src/schematics/table/templates/link-table-column.hbs +3 -2
  93. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +13 -11
  94. package/src/schematics/table/tree-table-component/index.js +1 -0
  95. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  96. package/src/schematics/table/tree-table-component/schema.json +62 -8
  97. package/src/schematics/table-accordion-item.schema.json +41 -0
  98. package/src/schematics/table-action.schema.json +7 -3
  99. package/src/schematics/table-column.schema.json +4 -1
  100. package/src/schematics/table-select-form-control.schema.json +6 -0
  101. package/src/schematics/templates/css-class.hbs +1 -0
  102. package/src/schematics/tree-table-accordion-item.schema.json +41 -0
  103. package/src/template.schema.json +18 -0
@@ -95,6 +95,23 @@
95
95
  }
96
96
  ]
97
97
  },
98
+ "accordionIdentifier": {
99
+ "type": "object",
100
+ "properties": {
101
+ "property": {
102
+ "$ref": "#/definitions/property"
103
+ },
104
+ "source": {
105
+ "type": "string",
106
+ "enum": [
107
+ "route"
108
+ ]
109
+ }
110
+ },
111
+ "required": [
112
+ "property"
113
+ ]
114
+ },
98
115
  "angular": {
99
116
  "allOf": [
100
117
  {
@@ -159,7 +176,7 @@
159
176
  },
160
177
  "kind": {
161
178
  "type": "string",
162
- "const": "table-select"
179
+ "const": "autocomplete-table-select"
163
180
  },
164
181
  "placeholder": {
165
182
  "type": "string"
@@ -623,10 +640,7 @@
623
640
  "isArray": {
624
641
  "type": "boolean"
625
642
  }
626
- },
627
- "required": [
628
- "name"
629
- ]
643
+ }
630
644
  }
631
645
  ]
632
646
  },
@@ -783,6 +797,9 @@
783
797
  "$ref": "#/definitions/upstream"
784
798
  }
785
799
  }
800
+ },
801
+ "identifier": {
802
+ "$ref": "#/definitions/accordionIdentifier"
786
803
  }
787
804
  }
788
805
  }
@@ -92,8 +92,7 @@
92
92
  "type": "string",
93
93
  "enum": [
94
94
  "route"
95
- ],
96
- "default": "route"
95
+ ]
97
96
  }
98
97
  },
99
98
  "required": [
@@ -164,7 +163,7 @@
164
163
  },
165
164
  "kind": {
166
165
  "type": "string",
167
- "const": "table-select"
166
+ "const": "autocomplete-table-select"
168
167
  },
169
168
  "placeholder": {
170
169
  "type": "string"
@@ -678,10 +677,7 @@
678
677
  "isArray": {
679
678
  "type": "boolean"
680
679
  }
681
- },
682
- "required": [
683
- "name"
684
- ]
680
+ }
685
681
  }
686
682
  ]
687
683
  },
@@ -838,6 +834,9 @@
838
834
  "$ref": "#/definitions/upstream"
839
835
  }
840
836
  }
837
+ },
838
+ "identifier": {
839
+ "$ref": "#/definitions/accordionIdentifier"
841
840
  }
842
841
  }
843
842
  }
@@ -95,6 +95,23 @@
95
95
  }
96
96
  ]
97
97
  },
98
+ "accordionIdentifier": {
99
+ "type": "object",
100
+ "properties": {
101
+ "property": {
102
+ "$ref": "#/definitions/property"
103
+ },
104
+ "source": {
105
+ "type": "string",
106
+ "enum": [
107
+ "route"
108
+ ]
109
+ }
110
+ },
111
+ "required": [
112
+ "property"
113
+ ]
114
+ },
98
115
  "angular": {
99
116
  "allOf": [
100
117
  {
@@ -159,7 +176,7 @@
159
176
  },
160
177
  "kind": {
161
178
  "type": "string",
162
- "const": "table-select"
179
+ "const": "autocomplete-table-select"
163
180
  },
164
181
  "placeholder": {
165
182
  "type": "string"
@@ -477,10 +494,7 @@
477
494
  "isArray": {
478
495
  "type": "boolean"
479
496
  }
480
- },
481
- "required": [
482
- "name"
483
- ]
497
+ }
484
498
  }
485
499
  ]
486
500
  },
@@ -637,6 +651,9 @@
637
651
  "$ref": "#/definitions/upstream"
638
652
  }
639
653
  }
654
+ },
655
+ "identifier": {
656
+ "$ref": "#/definitions/accordionIdentifier"
640
657
  }
641
658
  }
642
659
  }
@@ -92,6 +92,23 @@
92
92
  }
93
93
  ]
94
94
  },
95
+ "accordionIdentifier": {
96
+ "type": "object",
97
+ "properties": {
98
+ "property": {
99
+ "$ref": "#/definitions/property"
100
+ },
101
+ "source": {
102
+ "type": "string",
103
+ "enum": [
104
+ "route"
105
+ ]
106
+ }
107
+ },
108
+ "required": [
109
+ "property"
110
+ ]
111
+ },
95
112
  "angular": {
96
113
  "allOf": [
97
114
  {
@@ -156,7 +173,7 @@
156
173
  },
157
174
  "kind": {
158
175
  "type": "string",
159
- "const": "table-select"
176
+ "const": "autocomplete-table-select"
160
177
  },
161
178
  "placeholder": {
162
179
  "type": "string"
@@ -635,10 +652,7 @@
635
652
  "isArray": {
636
653
  "type": "boolean"
637
654
  }
638
- },
639
- "required": [
640
- "name"
641
- ]
655
+ }
642
656
  }
643
657
  ]
644
658
  },
@@ -795,6 +809,9 @@
795
809
  "$ref": "#/definitions/upstream"
796
810
  }
797
811
  }
812
+ },
813
+ "identifier": {
814
+ "$ref": "#/definitions/accordionIdentifier"
798
815
  }
799
816
  }
800
817
  }
@@ -95,6 +95,23 @@
95
95
  }
96
96
  ]
97
97
  },
98
+ "accordionIdentifier": {
99
+ "type": "object",
100
+ "properties": {
101
+ "property": {
102
+ "$ref": "#/definitions/property"
103
+ },
104
+ "source": {
105
+ "type": "string",
106
+ "enum": [
107
+ "route"
108
+ ]
109
+ }
110
+ },
111
+ "required": [
112
+ "property"
113
+ ]
114
+ },
98
115
  "angular": {
99
116
  "allOf": [
100
117
  {
@@ -159,7 +176,7 @@
159
176
  },
160
177
  "kind": {
161
178
  "type": "string",
162
- "const": "table-select"
179
+ "const": "autocomplete-table-select"
163
180
  },
164
181
  "placeholder": {
165
182
  "type": "string"
@@ -623,10 +640,7 @@
623
640
  "isArray": {
624
641
  "type": "boolean"
625
642
  }
626
- },
627
- "required": [
628
- "name"
629
- ]
643
+ }
630
644
  }
631
645
  ]
632
646
  },
@@ -783,6 +797,9 @@
783
797
  "$ref": "#/definitions/upstream"
784
798
  }
785
799
  }
800
+ },
801
+ "identifier": {
802
+ "$ref": "#/definitions/accordionIdentifier"
786
803
  }
787
804
  }
788
805
  }
@@ -38,6 +38,12 @@
38
38
  "type": "string"
39
39
  },
40
40
  "description": "The table modifiers"
41
+ },
42
+ "cssClass": {
43
+ "$ref": "#/definitions/cssClass"
44
+ },
45
+ "identifier": {
46
+ "$ref": "#/definitions/accordionIdentifier"
41
47
  }
42
48
  },
43
49
  "definitions": {
@@ -55,6 +61,12 @@
55
61
  },
56
62
  "upstream": {
57
63
  "$ref": "./upstream.schema.json"
64
+ },
65
+ "cssClass": {
66
+ "$ref": "./css-class.schema.json"
67
+ },
68
+ "accordionIdentifier": {
69
+ "$ref": "./accordion-identifier.schema.json"
58
70
  }
59
71
  }
60
72
  }
@@ -17,10 +17,7 @@
17
17
  "isArray": {
18
18
  "type": "boolean"
19
19
  }
20
- },
21
- "required": [
22
- "name"
23
- ]
20
+ }
24
21
  }
25
22
  ],
26
23
  "definitions": {
@@ -0,0 +1,82 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "switch-accordion-item",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/baseAccordionItem"
7
+ },
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "kind": {
12
+ "type": "string",
13
+ "const": "switch"
14
+ },
15
+ "switch": {
16
+ "type": "object",
17
+ "properties": {
18
+ "property": {
19
+ "$ref": "#/definitions/property"
20
+ },
21
+ "defaultCase": {
22
+ "type": "object",
23
+ "properties": {
24
+ "itemList": {
25
+ "alias": "item",
26
+ "type": "array",
27
+ "items": {
28
+ "$ref": "#/definitions/accordionItem"
29
+ },
30
+ "description": "The list of accordion expansion panels"
31
+ }
32
+ },
33
+ "required": ["itemList"]
34
+ },
35
+ "case": {
36
+ "type": "array",
37
+ "items": {
38
+ "type": "object",
39
+ "properties": {
40
+ "test": {
41
+ "anyOf": [
42
+ {
43
+ "type": "string"
44
+ },
45
+ {
46
+ "type": "number"
47
+ },
48
+ {
49
+ "type": "boolean"
50
+ }
51
+ ]
52
+ },
53
+ "itemList": {
54
+ "alias": "item",
55
+ "type": "array",
56
+ "items": {
57
+ "$ref": "#/definitions/accordionItem"
58
+ },
59
+ "description": "The list of accordion expansion panels"
60
+ }
61
+ },
62
+ "required": ["test", "itemList"]
63
+ }
64
+ }
65
+ },
66
+ "required": ["property"]
67
+ }
68
+ }
69
+ }
70
+ ],
71
+ "definitions": {
72
+ "baseAccordionItem": {
73
+ "$ref": "./base-accordion-item.schema.json"
74
+ },
75
+ "accordionItem": {
76
+ "$ref": "./accordion-item.schema.json"
77
+ },
78
+ "property": {
79
+ "$ref": "./property.schema.json"
80
+ }
81
+ }
82
+ }
@@ -113,6 +113,38 @@
113
113
  ],
114
114
  "default": "none"
115
115
  },
116
+ "cssClass": {
117
+ "oneOf": [
118
+ {
119
+ "type": "string"
120
+ },
121
+ {
122
+ "type": "array",
123
+ "items": {
124
+ "type": "string"
125
+ }
126
+ },
127
+ {
128
+ "type": "object",
129
+ "properties": {
130
+ "name": {
131
+ "type": "string"
132
+ }
133
+ }
134
+ },
135
+ {
136
+ "type": "array",
137
+ "items": {
138
+ "type": "object",
139
+ "properties": {
140
+ "name": {
141
+ "type": "string"
142
+ }
143
+ }
144
+ }
145
+ }
146
+ ]
147
+ },
116
148
  "general": {
117
149
  "type": "object",
118
150
  "properties": {
@@ -196,8 +228,7 @@
196
228
  "description": "Value for the color input of the mat-button / mat-icon component"
197
229
  },
198
230
  "cssClass": {
199
- "type": "string",
200
- "description": "Additional CSS classes added to the button element"
231
+ "$ref": "#/definitions/cssClass"
201
232
  },
202
233
  "options": {
203
234
  "type": "object",
@@ -147,8 +147,7 @@
147
147
  "type": "string",
148
148
  "enum": [
149
149
  "route"
150
- ],
151
- "default": "route"
150
+ ]
152
151
  }
153
152
  },
154
153
  "required": [
@@ -219,7 +218,7 @@
219
218
  },
220
219
  "kind": {
221
220
  "type": "string",
222
- "const": "table-select"
221
+ "const": "autocomplete-table-select"
223
222
  },
224
223
  "placeholder": {
225
224
  "type": "string"
@@ -443,6 +442,38 @@
443
442
  }
444
443
  ]
445
444
  },
445
+ "cssClass": {
446
+ "oneOf": [
447
+ {
448
+ "type": "string"
449
+ },
450
+ {
451
+ "type": "array",
452
+ "items": {
453
+ "type": "string"
454
+ }
455
+ },
456
+ {
457
+ "type": "object",
458
+ "properties": {
459
+ "name": {
460
+ "type": "string"
461
+ }
462
+ }
463
+ },
464
+ {
465
+ "type": "array",
466
+ "items": {
467
+ "type": "object",
468
+ "properties": {
469
+ "name": {
470
+ "type": "string"
471
+ }
472
+ }
473
+ }
474
+ }
475
+ ]
476
+ },
446
477
  "formArray": {
447
478
  "allOf": [
448
479
  {
@@ -733,10 +764,7 @@
733
764
  "isArray": {
734
765
  "type": "boolean"
735
766
  }
736
- },
737
- "required": [
738
- "name"
739
- ]
767
+ }
740
768
  }
741
769
  ]
742
770
  },
@@ -865,8 +893,7 @@
865
893
  "description": "Value for the color input of the mat-button / mat-icon component"
866
894
  },
867
895
  "cssClass": {
868
- "type": "string",
869
- "description": "Additional CSS classes added to the button element"
896
+ "$ref": "#/definitions/cssClass"
870
897
  },
871
898
  "options": {
872
899
  "type": "object",
@@ -972,6 +999,9 @@
972
999
  "$ref": "#/definitions/upstream"
973
1000
  }
974
1001
  }
1002
+ },
1003
+ "identifier": {
1004
+ "$ref": "#/definitions/accordionIdentifier"
975
1005
  }
976
1006
  }
977
1007
  }
@@ -83,6 +83,38 @@
83
83
  ],
84
84
  "default": "none"
85
85
  },
86
+ "cssClass": {
87
+ "oneOf": [
88
+ {
89
+ "type": "string"
90
+ },
91
+ {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "string"
95
+ }
96
+ },
97
+ {
98
+ "type": "object",
99
+ "properties": {
100
+ "name": {
101
+ "type": "string"
102
+ }
103
+ }
104
+ },
105
+ {
106
+ "type": "array",
107
+ "items": {
108
+ "type": "object",
109
+ "properties": {
110
+ "name": {
111
+ "type": "string"
112
+ }
113
+ }
114
+ }
115
+ }
116
+ ]
117
+ },
86
118
  "general": {
87
119
  "type": "object",
88
120
  "properties": {
@@ -166,8 +198,7 @@
166
198
  "description": "Value for the color input of the mat-button / mat-icon component"
167
199
  },
168
200
  "cssClass": {
169
- "type": "string",
170
- "description": "Additional CSS classes added to the button element"
201
+ "$ref": "#/definitions/cssClass"
171
202
  },
172
203
  "options": {
173
204
  "type": "object",
@@ -111,6 +111,38 @@
111
111
  ],
112
112
  "default": "none"
113
113
  },
114
+ "cssClass": {
115
+ "oneOf": [
116
+ {
117
+ "type": "string"
118
+ },
119
+ {
120
+ "type": "array",
121
+ "items": {
122
+ "type": "string"
123
+ }
124
+ },
125
+ {
126
+ "type": "object",
127
+ "properties": {
128
+ "name": {
129
+ "type": "string"
130
+ }
131
+ }
132
+ },
133
+ {
134
+ "type": "array",
135
+ "items": {
136
+ "type": "object",
137
+ "properties": {
138
+ "name": {
139
+ "type": "string"
140
+ }
141
+ }
142
+ }
143
+ }
144
+ ]
145
+ },
114
146
  "general": {
115
147
  "type": "object",
116
148
  "properties": {
@@ -194,8 +226,7 @@
194
226
  "description": "Value for the color input of the mat-button / mat-icon component"
195
227
  },
196
228
  "cssClass": {
197
- "type": "string",
198
- "description": "Additional CSS classes added to the button element"
229
+ "$ref": "#/definitions/cssClass"
199
230
  },
200
231
  "options": {
201
232
  "type": "object",
@@ -69,6 +69,38 @@
69
69
  ],
70
70
  "default": "none"
71
71
  },
72
+ "cssClass": {
73
+ "oneOf": [
74
+ {
75
+ "type": "string"
76
+ },
77
+ {
78
+ "type": "array",
79
+ "items": {
80
+ "type": "string"
81
+ }
82
+ },
83
+ {
84
+ "type": "object",
85
+ "properties": {
86
+ "name": {
87
+ "type": "string"
88
+ }
89
+ }
90
+ },
91
+ {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "object",
95
+ "properties": {
96
+ "name": {
97
+ "type": "string"
98
+ }
99
+ }
100
+ }
101
+ }
102
+ ]
103
+ },
72
104
  "general": {
73
105
  "type": "object",
74
106
  "properties": {
@@ -152,8 +184,7 @@
152
184
  "description": "Value for the color input of the mat-button / mat-icon component"
153
185
  },
154
186
  "cssClass": {
155
- "type": "string",
156
- "description": "Additional CSS classes added to the button element"
187
+ "$ref": "#/definitions/cssClass"
157
188
  },
158
189
  "options": {
159
190
  "type": "object",