@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,178 +3,7 @@
3
3
  "$id": "table-select-form-control-schematic",
4
4
  "allOf": [
5
5
  {
6
- "allOf": [
7
- {
8
- "allOf": [
9
- {
10
- "type": "object",
11
- "properties": {
12
- "project": {
13
- "type": "string",
14
- "description": "Project name where the files should be generated"
15
- },
16
- "feature": {
17
- "type": "string",
18
- "description": "Feature name where the files should be generated"
19
- },
20
- "overwrite": {
21
- "anyOf": [
22
- {
23
- "type": "boolean"
24
- },
25
- {
26
- "type": "array",
27
- "items": {
28
- "type": "string"
29
- }
30
- }
31
- ],
32
- "description": "Overwrite existing files",
33
- "default": false
34
- },
35
- "overwriteHtml": {
36
- "type": "boolean",
37
- "default": false
38
- },
39
- "replace": {
40
- "type": "boolean",
41
- "default": false
42
- }
43
- },
44
- "required": [
45
- "project"
46
- ]
47
- },
48
- {
49
- "type": "object",
50
- "properties": {
51
- "componentName": {
52
- "type": "string"
53
- },
54
- "name": {
55
- "type": "string"
56
- },
57
- "context": {
58
- "type": "string",
59
- "description": "The context use to generate proper names for class, files, etc"
60
- },
61
- "nestModule": {
62
- "type": "string",
63
- "description": "The module name for the table nest operations"
64
- },
65
- "controllerName": {
66
- "type": "string"
67
- },
68
- "backend": {
69
- "type": "string",
70
- "description": "The backend that should be used to handel data",
71
- "enum": [
72
- "none",
73
- "nestjs",
74
- "open-api",
75
- "local"
76
- ],
77
- "default": "none"
78
- },
79
- "directory": {
80
- "type": "string",
81
- "description": "A directory name or absolute path where the files should be generated. Relative to the project and feature base path if a feature is defined"
82
- },
83
- "shared": {
84
- "type": "boolean",
85
- "description": "Whether the generated code is used across the project",
86
- "default": false
87
- },
88
- "scope": {
89
- "type": "string"
90
- },
91
- "prefix": {
92
- "type": "string"
93
- },
94
- "openApi": {
95
- "type": "object",
96
- "additionalProperties": true
97
- }
98
- }
99
- }
100
- ]
101
- },
102
- {
103
- "type": "object",
104
- "properties": {
105
- "name": {
106
- "type": "string",
107
- "description": "The name of the control"
108
- },
109
- "type": {
110
- "$ref": "#/definitions/type"
111
- },
112
- "isArray": {
113
- "type": "boolean",
114
- "description": "Whether the control value is an array",
115
- "default": false
116
- },
117
- "state": {
118
- "type": "string",
119
- "description": "The initial state of the control"
120
- },
121
- "isRequired": {
122
- "type": "boolean",
123
- "description": "Whether the control value is required",
124
- "default": false
125
- },
126
- "isReadonly": {
127
- "type": "boolean",
128
- "description": "Whether the control value is readonly",
129
- "default": false
130
- },
131
- "isDisabled": {
132
- "type": "boolean",
133
- "description": "Whether the control value is disabled",
134
- "default": false
135
- },
136
- "validatorList": {
137
- "type": "array",
138
- "items": {
139
- "type": "string"
140
- }
141
- },
142
- "kind": {
143
- "type": "string",
144
- "description": "The name of the template",
145
- "enum": [
146
- "default",
147
- "input",
148
- "select",
149
- "checkbox",
150
- "autocomplete-table-select",
151
- "table-select",
152
- "textarea",
153
- "slide-toggle"
154
- ],
155
- "default": "default"
156
- }
157
- },
158
- "required": [
159
- "name"
160
- ],
161
- "additionalProperties": true
162
- },
163
- {
164
- "type": "object",
165
- "properties": {
166
- "formName": {
167
- "alias": "form",
168
- "type": "string",
169
- "description": "The name of the form where the form control should be added",
170
- "x-prompt": "Enter the name of the form where the form control should be added"
171
- }
172
- },
173
- "required": [
174
- "formName"
175
- ]
176
- }
177
- ]
6
+ "$ref": "#/definitions/formControl"
178
7
  },
179
8
  {
180
9
  "type": "object",
@@ -233,38 +62,66 @@
233
62
  }
234
63
  ],
235
64
  "definitions": {
236
- "type": {
237
- "oneOf": [
238
- {
239
- "type": "string"
65
+ "formControl": {
66
+ "type": "object",
67
+ "properties": {
68
+ "name": {
69
+ "type": "string",
70
+ "description": "The name of the control"
240
71
  },
241
- {
242
- "type": "object",
243
- "properties": {
244
- "name": {
245
- "type": "string"
246
- },
247
- "isTypeOnly": {
248
- "type": "boolean"
249
- },
250
- "moduleSpecifier": {
251
- "type": "string"
252
- },
253
- "namedImport": {
254
- "type": "string"
255
- },
256
- "namespaceImport": {
257
- "type": "string"
258
- },
259
- "defaultImport": {
260
- "type": "string"
261
- }
262
- },
263
- "required": [
264
- "name"
265
- ]
72
+ "type": {
73
+ "$ref": "#/definitions/type"
74
+ },
75
+ "isArray": {
76
+ "type": "boolean",
77
+ "description": "Whether the control value is an array",
78
+ "default": false
79
+ },
80
+ "state": {
81
+ "type": "string",
82
+ "description": "The initial state of the control"
83
+ },
84
+ "isRequired": {
85
+ "type": "boolean",
86
+ "description": "Whether the control value is required",
87
+ "default": false
88
+ },
89
+ "isReadonly": {
90
+ "type": "boolean",
91
+ "description": "Whether the control value is readonly",
92
+ "default": false
93
+ },
94
+ "isDisabled": {
95
+ "type": "boolean",
96
+ "description": "Whether the control value is disabled",
97
+ "default": false
98
+ },
99
+ "validatorList": {
100
+ "type": "array",
101
+ "items": {
102
+ "type": "string"
103
+ }
104
+ },
105
+ "kind": {
106
+ "type": "string",
107
+ "description": "The name of the template",
108
+ "enum": [
109
+ "default",
110
+ "input",
111
+ "select",
112
+ "checkbox",
113
+ "autocomplete-table-select",
114
+ "table-select",
115
+ "textarea",
116
+ "slide-toggle"
117
+ ],
118
+ "default": "default"
266
119
  }
267
- ]
120
+ },
121
+ "required": [
122
+ "name"
123
+ ],
124
+ "additionalProperties": true
268
125
  },
269
126
  "property": {
270
127
  "oneOf": [
@@ -288,100 +145,7 @@
288
145
  "name"
289
146
  ]
290
147
  }
291
- ],
292
- "definitions": {
293
- "type": {
294
- "oneOf": [
295
- {
296
- "type": "string"
297
- },
298
- {
299
- "type": "object",
300
- "properties": {
301
- "name": {
302
- "type": "string"
303
- },
304
- "isTypeOnly": {
305
- "type": "boolean"
306
- },
307
- "moduleSpecifier": {
308
- "type": "string"
309
- },
310
- "namedImport": {
311
- "type": "string"
312
- },
313
- "namespaceImport": {
314
- "type": "string"
315
- },
316
- "defaultImport": {
317
- "type": "string"
318
- }
319
- },
320
- "required": [
321
- "name"
322
- ]
323
- }
324
- ]
325
- }
326
- }
327
- },
328
- "button": {
329
- "type": "object",
330
- "properties": {
331
- "svgIcon": {
332
- "type": "string"
333
- },
334
- "icon": {
335
- "type": "string"
336
- },
337
- "directiveList": {
338
- "type": "array",
339
- "items": {
340
- "$ref": "#/definitions/type"
341
- }
342
- },
343
- "importList": {
344
- "type": "array",
345
- "items": {
346
- "$ref": "#/definitions/type"
347
- }
348
- }
349
- },
350
- "definitions": {
351
- "type": {
352
- "oneOf": [
353
- {
354
- "type": "string"
355
- },
356
- {
357
- "type": "object",
358
- "properties": {
359
- "name": {
360
- "type": "string"
361
- },
362
- "isTypeOnly": {
363
- "type": "boolean"
364
- },
365
- "moduleSpecifier": {
366
- "type": "string"
367
- },
368
- "namedImport": {
369
- "type": "string"
370
- },
371
- "namespaceImport": {
372
- "type": "string"
373
- },
374
- "defaultImport": {
375
- "type": "string"
376
- }
377
- },
378
- "required": [
379
- "name"
380
- ]
381
- }
382
- ]
383
- }
384
- }
148
+ ]
385
149
  },
386
150
  "upstream": {
387
151
  "oneOf": [
@@ -441,6 +205,39 @@
441
205
  ]
442
206
  }
443
207
  ]
208
+ },
209
+ "type": {
210
+ "oneOf": [
211
+ {
212
+ "type": "string"
213
+ },
214
+ {
215
+ "type": "object",
216
+ "properties": {
217
+ "name": {
218
+ "type": "string"
219
+ },
220
+ "isTypeOnly": {
221
+ "type": "boolean"
222
+ },
223
+ "moduleSpecifier": {
224
+ "type": "string"
225
+ },
226
+ "namedImport": {
227
+ "type": "string"
228
+ },
229
+ "namespaceImport": {
230
+ "type": "string"
231
+ },
232
+ "defaultImport": {
233
+ "type": "string"
234
+ }
235
+ },
236
+ "required": [
237
+ "name"
238
+ ]
239
+ }
240
+ ]
444
241
  }
445
242
  }
446
243
  }
@@ -3,7 +3,7 @@
3
3
  "$id": "table-select-form-control-schematic",
4
4
  "allOf": [
5
5
  {
6
- "$ref": "../../form-control/template.schema.json"
6
+ "$ref": "#/definitions/formControl"
7
7
  },
8
8
  {
9
9
  "type": "object",
@@ -62,15 +62,12 @@
62
62
  }
63
63
  ],
64
64
  "definitions": {
65
- "type": {
66
- "$ref": "../../../type.schema.json"
65
+ "formControl": {
66
+ "$ref": "../../form-control/template.schema.json"
67
67
  },
68
68
  "property": {
69
69
  "$ref": "../../../property.schema.json"
70
70
  },
71
- "button": {
72
- "$ref": "../../../button.schema.json"
73
- },
74
71
  "upstream": {
75
72
  "$ref": "../../../upstream.schema.json"
76
73
  }