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

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