@rxap/schematic-angular 16.2.0-dev.14 → 16.2.0-dev.16

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 (135) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +1 -1
  3. package/package.json +8 -8
  4. package/src/lib/accordion-identifier.d.ts +4 -0
  5. package/src/lib/accordion-identifier.js.map +1 -1
  6. package/src/lib/accordion-item.d.ts +13 -6
  7. package/src/lib/accordion-item.js +19 -4
  8. package/src/lib/accordion-item.js.map +1 -1
  9. package/src/lib/coerce-accordion-component.js +1 -1
  10. package/src/lib/coerce-accordion-component.js.map +1 -1
  11. package/src/lib/coerce-accordion-item-table-component.js +1 -1
  12. package/src/lib/coerce-accordion-item-table-component.js.map +1 -1
  13. package/src/lib/data-grid-options.d.ts +9 -1
  14. package/src/lib/data-grid-options.js +36 -6
  15. package/src/lib/data-grid-options.js.map +1 -1
  16. package/src/lib/form-control.d.ts +9 -3
  17. package/src/lib/form-control.js +19 -54
  18. package/src/lib/form-control.js.map +1 -1
  19. package/src/lib/merge-with-column-list.js +3 -1
  20. package/src/lib/merge-with-column-list.js.map +1 -1
  21. package/src/lib/minimum-table-component-options.js +2 -2
  22. package/src/lib/minimum-table-component-options.js.map +1 -1
  23. package/src/lib/pipe-option.js +0 -2
  24. package/src/lib/pipe-option.js.map +1 -1
  25. package/src/lib/table-column.d.ts +9 -5
  26. package/src/lib/table-column.js +36 -60
  27. package/src/lib/table-column.js.map +1 -1
  28. package/src/schema.json +2368 -0
  29. package/src/schematic-input.schema.json +607 -0
  30. package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
  31. package/src/schematics/accordion/accordion-component/index.js +51 -25
  32. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  33. package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
  34. package/src/schematics/accordion/accordion-component/schema.json +183 -360
  35. package/src/schematics/accordion/accordion-component/template.schema.json +22 -25
  36. package/src/schematics/accordion/accordion-item-component/index.d.ts +7 -2
  37. package/src/schematics/accordion/accordion-item-component/index.js +70 -49
  38. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  39. package/src/schematics/accordion/accordion-item-component/schema.json +167 -336
  40. package/src/schematics/accordion/accordion-item-component/template.schema.json +8 -15
  41. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
  42. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +21 -25
  43. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  44. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +331 -429
  45. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +9 -15
  46. package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
  47. package/src/schematics/accordion/item/accordion-item-switch-component/index.js +14 -6
  48. package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
  49. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +174 -346
  50. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +6 -15
  51. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
  52. package/src/schematics/accordion/item/accordion-item-table-component/index.js +11 -13
  53. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  54. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +453 -614
  55. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +9 -18
  56. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
  57. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +37 -61
  58. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  59. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +431 -592
  60. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +10 -19
  61. package/src/schematics/accordion-identifier.schema.json +25 -0
  62. package/src/schematics/accordion-item.schema.json +24 -0
  63. package/src/schematics/angular.schema.json +11 -3
  64. package/src/schematics/button.schema.json +1 -1
  65. package/src/schematics/data-grid-component/index.d.ts +2 -3
  66. package/src/schematics/data-grid-component/index.js +42 -45
  67. package/src/schematics/data-grid-component/index.js.map +1 -1
  68. package/src/schematics/data-grid-component/schema.json +261 -375
  69. package/src/schematics/data-grid-component/template.schema.json +6 -15
  70. package/src/schematics/data-grid-item.schema.json +4 -1
  71. package/src/schematics/data-grid.schema.json +26 -4
  72. package/src/schematics/dialog-component/schema.json +72 -158
  73. package/src/schematics/dialog-component/template.schema.json +3 -6
  74. package/src/schematics/form/control/input-form-control/schema.json +108 -306
  75. package/src/schematics/form/control/input-form-control/template.schema.json +6 -9
  76. package/src/schematics/form/control/select-form-control/schema.json +120 -307
  77. package/src/schematics/form/control/select-form-control/template.schema.json +6 -9
  78. package/src/schematics/form/control/table-select-form-control/index.d.ts +7 -1
  79. package/src/schematics/form/control/table-select-form-control/index.js +195 -149
  80. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  81. package/src/schematics/form/control/table-select-form-control/schema.json +101 -296
  82. package/src/schematics/form/control/table-select-form-control/template.schema.json +11 -6
  83. package/src/schematics/form/form-component/index.d.ts +2 -0
  84. package/src/schematics/form/form-component/index.js +6 -4
  85. package/src/schematics/form/form-component/index.js.map +1 -1
  86. package/src/schematics/form/form-component/schema.d.ts +3 -1
  87. package/src/schematics/form/form-component/schema.json +176 -233
  88. package/src/schematics/form/form-component/template.schema.json +6 -9
  89. package/src/schematics/form/form-control/schema.json +68 -176
  90. package/src/schematics/form/form-control/template.schema.json +6 -9
  91. package/src/schematics/form/form-definition/schema.json +125 -230
  92. package/src/schematics/form/form-definition/template.schema.json +6 -9
  93. package/src/schematics/form-component.schema.json +9 -3
  94. package/src/schematics/form-definition.schema.json +3 -3
  95. package/src/schematics/general.schema.json +1 -4
  96. package/src/schematics/input-form-control.schema.json +11 -3
  97. package/src/schematics/minimum-table.schema.json +11 -5
  98. package/src/schematics/pipe.schema.json +1 -1
  99. package/src/schematics/select-form-control.schema.json +15 -4
  100. package/src/schematics/table/action/dialog-table-action/schema.json +150 -230
  101. package/src/schematics/table/action/dialog-table-action/template.schema.json +3 -6
  102. package/src/schematics/table/action/form-table-action/schema.json +317 -310
  103. package/src/schematics/table/action/form-table-action/template.schema.json +6 -6
  104. package/src/schematics/table/action/navigation-table-action/schema.json +150 -230
  105. package/src/schematics/table/action/navigation-table-action/template.schema.json +3 -6
  106. package/src/schematics/table/action/open-api-table-action/schema.json +150 -230
  107. package/src/schematics/table/action/open-api-table-action/template.schema.json +3 -6
  108. package/src/schematics/table/action/operation-table-action/schema.json +138 -218
  109. package/src/schematics/table/action/operation-table-action/template.schema.json +3 -6
  110. package/src/schematics/table/header-button/form-table-header-button/schema.json +217 -261
  111. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +6 -6
  112. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +131 -211
  113. package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +3 -6
  114. package/src/schematics/table/table-action/schema.json +56 -139
  115. package/src/schematics/table/table-action/template.schema.json +6 -6
  116. package/src/schematics/table/table-component/index.d.ts +10 -2
  117. package/src/schematics/table/table-component/index.js +13 -1
  118. package/src/schematics/table/table-component/index.js.map +1 -1
  119. package/src/schematics/table/table-component/schema.json +352 -547
  120. package/src/schematics/table/table-component/template.schema.json +6 -18
  121. package/src/schematics/table/table-header-button/schema.json +56 -139
  122. package/src/schematics/table/table-header-button/template.schema.json +6 -6
  123. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +6 -0
  124. package/src/schematics/table/tree-table-component/index.d.ts +3 -0
  125. package/src/schematics/table/tree-table-component/index.js +11 -3
  126. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  127. package/src/schematics/table/tree-table-component/schema.json +352 -547
  128. package/src/schematics/table/tree-table-component/template.schema.json +6 -18
  129. package/src/schematics/table-column.schema.json +4 -1
  130. package/src/schematics/table.schema.json +4 -1
  131. package/src/schematics/tree-component/schema.json +70 -62
  132. package/src/schematics/tree-component/template.schema.json +7 -2
  133. package/src/schematics/tree-table.schema.json +3 -3
  134. package/src/schematics/value.schema.json +1 -1
  135. package/src/template.schema.json +173 -0
@@ -3,45 +3,17 @@
3
3
  "$id": "form-component-schematic",
4
4
  "allOf": [
5
5
  {
6
+ "$ref": "#/definitions/angular"
7
+ },
8
+ {
9
+ "$ref": "#/definitions/formComponent"
10
+ }
11
+ ],
12
+ "definitions": {
13
+ "angular": {
6
14
  "allOf": [
7
15
  {
8
- "type": "object",
9
- "properties": {
10
- "project": {
11
- "type": "string",
12
- "description": "Project name where the files should be generated"
13
- },
14
- "feature": {
15
- "type": "string",
16
- "description": "Feature name where the files should be generated"
17
- },
18
- "overwrite": {
19
- "anyOf": [
20
- {
21
- "type": "boolean"
22
- },
23
- {
24
- "type": "array",
25
- "items": {
26
- "type": "string"
27
- }
28
- }
29
- ],
30
- "description": "Overwrite existing files",
31
- "default": false
32
- },
33
- "overwriteHtml": {
34
- "type": "boolean",
35
- "default": false
36
- },
37
- "replace": {
38
- "type": "boolean",
39
- "default": false
40
- }
41
- },
42
- "required": [
43
- "project"
44
- ]
16
+ "$ref": "#/definitions/general"
45
17
  },
46
18
  {
47
19
  "type": "object",
@@ -64,15 +36,7 @@
64
36
  "type": "string"
65
37
  },
66
38
  "backend": {
67
- "type": "string",
68
- "description": "The backend that should be used to handel data",
69
- "enum": [
70
- "none",
71
- "nestjs",
72
- "open-api",
73
- "local"
74
- ],
75
- "default": "none"
39
+ "$ref": "#/definitions/backend"
76
40
  },
77
41
  "directory": {
78
42
  "type": "string",
@@ -97,80 +61,10 @@
97
61
  }
98
62
  ]
99
63
  },
100
- {
64
+ "formComponent": {
101
65
  "allOf": [
102
66
  {
103
- "type": "object",
104
- "properties": {
105
- "controlList": {
106
- "alias": "control",
107
- "type": "array",
108
- "items": {
109
- "type": "object",
110
- "properties": {
111
- "name": {
112
- "type": "string",
113
- "description": "The name of the control"
114
- },
115
- "type": {
116
- "$ref": "#/definitions/type"
117
- },
118
- "isArray": {
119
- "type": "boolean",
120
- "description": "Whether the control value is an array",
121
- "default": false
122
- },
123
- "state": {
124
- "type": "string",
125
- "description": "The initial state of the control"
126
- },
127
- "isRequired": {
128
- "type": "boolean",
129
- "description": "Whether the control value is required",
130
- "default": false
131
- },
132
- "isReadonly": {
133
- "type": "boolean",
134
- "description": "Whether the control value is readonly",
135
- "default": false
136
- },
137
- "isDisabled": {
138
- "type": "boolean",
139
- "description": "Whether the control value is disabled",
140
- "default": false
141
- },
142
- "validatorList": {
143
- "type": "array",
144
- "items": {
145
- "type": "string"
146
- }
147
- },
148
- "kind": {
149
- "type": "string",
150
- "description": "The name of the template",
151
- "enum": [
152
- "default",
153
- "input",
154
- "select",
155
- "checkbox",
156
- "autocomplete-table-select",
157
- "table-select",
158
- "textarea",
159
- "slide-toggle"
160
- ],
161
- "default": "default"
162
- }
163
- },
164
- "required": [
165
- "name"
166
- ],
167
- "additionalProperties": true
168
- }
169
- }
170
- },
171
- "required": [
172
- "controlList"
173
- ]
67
+ "$ref": "#/definitions/formDefinition"
174
68
  },
175
69
  {
176
70
  "type": "object",
@@ -194,14 +88,156 @@
194
88
  "outline"
195
89
  ]
196
90
  }
91
+ },
92
+ "identifier": {
93
+ "$ref": "#/definitions/accordionIdentifier"
197
94
  }
198
95
  }
199
96
  }
200
97
  ]
201
- }
202
- ],
203
- "definitions": {
204
- "type": {
98
+ },
99
+ "accordionIdentifier": {
100
+ "type": "object",
101
+ "properties": {
102
+ "property": {
103
+ "$ref": "#/definitions/property"
104
+ },
105
+ "source": {
106
+ "type": "string",
107
+ "enum": [
108
+ "route"
109
+ ],
110
+ "default": "route"
111
+ }
112
+ },
113
+ "required": [
114
+ "property"
115
+ ]
116
+ },
117
+ "backend": {
118
+ "type": "string",
119
+ "description": "The backend that should be used to handel data",
120
+ "enum": [
121
+ "none",
122
+ "nestjs",
123
+ "open-api",
124
+ "local"
125
+ ],
126
+ "default": "none"
127
+ },
128
+ "formControl": {
129
+ "type": "object",
130
+ "properties": {
131
+ "name": {
132
+ "type": "string",
133
+ "description": "The name of the control"
134
+ },
135
+ "type": {
136
+ "$ref": "#/definitions/type"
137
+ },
138
+ "isArray": {
139
+ "type": "boolean",
140
+ "description": "Whether the control value is an array",
141
+ "default": false
142
+ },
143
+ "state": {
144
+ "type": "string",
145
+ "description": "The initial state of the control"
146
+ },
147
+ "isRequired": {
148
+ "type": "boolean",
149
+ "description": "Whether the control value is required",
150
+ "default": false
151
+ },
152
+ "isReadonly": {
153
+ "type": "boolean",
154
+ "description": "Whether the control value is readonly",
155
+ "default": false
156
+ },
157
+ "isDisabled": {
158
+ "type": "boolean",
159
+ "description": "Whether the control value is disabled",
160
+ "default": false
161
+ },
162
+ "validatorList": {
163
+ "type": "array",
164
+ "items": {
165
+ "type": "string"
166
+ }
167
+ },
168
+ "kind": {
169
+ "type": "string",
170
+ "description": "The name of the template",
171
+ "enum": [
172
+ "default",
173
+ "input",
174
+ "select",
175
+ "checkbox",
176
+ "autocomplete-table-select",
177
+ "table-select",
178
+ "textarea",
179
+ "slide-toggle"
180
+ ],
181
+ "default": "default"
182
+ }
183
+ },
184
+ "required": [
185
+ "name"
186
+ ],
187
+ "additionalProperties": true
188
+ },
189
+ "formDefinition": {
190
+ "type": "object",
191
+ "properties": {
192
+ "controlList": {
193
+ "alias": "control",
194
+ "type": "array",
195
+ "items": {
196
+ "$ref": "#/definitions/formControl"
197
+ }
198
+ }
199
+ },
200
+ "required": [
201
+ "controlList"
202
+ ]
203
+ },
204
+ "general": {
205
+ "type": "object",
206
+ "properties": {
207
+ "project": {
208
+ "type": "string",
209
+ "description": "Project name where the files should be generated"
210
+ },
211
+ "feature": {
212
+ "type": "string",
213
+ "description": "Feature name where the files should be generated"
214
+ },
215
+ "overwrite": {
216
+ "anyOf": [
217
+ {
218
+ "type": "boolean"
219
+ },
220
+ {
221
+ "type": "array",
222
+ "items": {
223
+ "type": "string"
224
+ }
225
+ }
226
+ ],
227
+ "description": "Overwrite existing files",
228
+ "default": false
229
+ },
230
+ "overwriteHtml": {
231
+ "type": "boolean",
232
+ "default": false
233
+ },
234
+ "replace": {
235
+ "type": "boolean",
236
+ "default": false
237
+ }
238
+ }
239
+ },
240
+ "property": {
205
241
  "oneOf": [
206
242
  {
207
243
  "type": "string"
@@ -212,20 +248,11 @@
212
248
  "name": {
213
249
  "type": "string"
214
250
  },
215
- "isTypeOnly": {
216
- "type": "boolean"
217
- },
218
- "moduleSpecifier": {
219
- "type": "string"
220
- },
221
- "namedImport": {
222
- "type": "string"
223
- },
224
- "namespaceImport": {
225
- "type": "string"
251
+ "type": {
252
+ "$ref": "#/definitions/type"
226
253
  },
227
- "defaultImport": {
228
- "type": "string"
254
+ "isArray": {
255
+ "type": "boolean"
229
256
  }
230
257
  },
231
258
  "required": [
@@ -234,7 +261,7 @@
234
261
  }
235
262
  ]
236
263
  },
237
- "property": {
264
+ "type": {
238
265
  "oneOf": [
239
266
  {
240
267
  "type": "string"
@@ -245,111 +272,27 @@
245
272
  "name": {
246
273
  "type": "string"
247
274
  },
248
- "type": {
249
- "$ref": "#/definitions/type"
250
- },
251
- "isArray": {
275
+ "isTypeOnly": {
252
276
  "type": "boolean"
253
- }
254
- },
255
- "required": [
256
- "name"
257
- ]
258
- }
259
- ],
260
- "definitions": {
261
- "type": {
262
- "oneOf": [
263
- {
277
+ },
278
+ "moduleSpecifier": {
264
279
  "type": "string"
265
280
  },
266
- {
267
- "type": "object",
268
- "properties": {
269
- "name": {
270
- "type": "string"
271
- },
272
- "isTypeOnly": {
273
- "type": "boolean"
274
- },
275
- "moduleSpecifier": {
276
- "type": "string"
277
- },
278
- "namedImport": {
279
- "type": "string"
280
- },
281
- "namespaceImport": {
282
- "type": "string"
283
- },
284
- "defaultImport": {
285
- "type": "string"
286
- }
287
- },
288
- "required": [
289
- "name"
290
- ]
291
- }
292
- ]
293
- }
294
- }
295
- },
296
- "button": {
297
- "type": "object",
298
- "properties": {
299
- "svgIcon": {
300
- "type": "string"
301
- },
302
- "icon": {
303
- "type": "string"
304
- },
305
- "directiveList": {
306
- "type": "array",
307
- "items": {
308
- "$ref": "#/definitions/type"
309
- }
310
- },
311
- "importList": {
312
- "type": "array",
313
- "items": {
314
- "$ref": "#/definitions/type"
315
- }
316
- }
317
- },
318
- "definitions": {
319
- "type": {
320
- "oneOf": [
321
- {
281
+ "namedImport": {
322
282
  "type": "string"
323
283
  },
324
- {
325
- "type": "object",
326
- "properties": {
327
- "name": {
328
- "type": "string"
329
- },
330
- "isTypeOnly": {
331
- "type": "boolean"
332
- },
333
- "moduleSpecifier": {
334
- "type": "string"
335
- },
336
- "namedImport": {
337
- "type": "string"
338
- },
339
- "namespaceImport": {
340
- "type": "string"
341
- },
342
- "defaultImport": {
343
- "type": "string"
344
- }
345
- },
346
- "required": [
347
- "name"
348
- ]
284
+ "namespaceImport": {
285
+ "type": "string"
286
+ },
287
+ "defaultImport": {
288
+ "type": "string"
349
289
  }
290
+ },
291
+ "required": [
292
+ "name"
350
293
  ]
351
294
  }
352
- }
295
+ ]
353
296
  }
354
297
  }
355
298
  }
@@ -3,21 +3,18 @@
3
3
  "$id": "form-component-schematic",
4
4
  "allOf": [
5
5
  {
6
- "$ref": "../../angular.schema.json"
6
+ "$ref": "#/definitions/angular"
7
7
  },
8
8
  {
9
- "$ref": "../../form-component.schema.json"
9
+ "$ref": "#/definitions/formComponent"
10
10
  }
11
11
  ],
12
12
  "definitions": {
13
- "type": {
14
- "$ref": "../../type.schema.json"
15
- },
16
- "property": {
17
- "$ref": "../../property.schema.json"
13
+ "angular": {
14
+ "$ref": "../../angular.schema.json"
18
15
  },
19
- "button": {
20
- "$ref": "../../button.schema.json"
16
+ "formComponent": {
17
+ "$ref": "../../form-component.schema.json"
21
18
  }
22
19
  }
23
20
  }