@rxap/schematic-angular 16.2.0-dev.13 → 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 (124) hide show
  1. package/CHANGELOG.md +23 -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-item.js +3 -0
  11. package/src/lib/data-grid-item.js.map +1 -1
  12. package/src/lib/data-grid-options.d.ts +3 -0
  13. package/src/lib/data-grid-options.js +2 -0
  14. package/src/lib/data-grid-options.js.map +1 -1
  15. package/src/lib/form-control.d.ts +2 -2
  16. package/src/lib/form-control.js +14 -43
  17. package/src/lib/form-control.js.map +1 -1
  18. package/src/lib/minimum-table-component-options.js +2 -2
  19. package/src/lib/minimum-table-component-options.js.map +1 -1
  20. package/src/lib/table-column.d.ts +9 -5
  21. package/src/lib/table-column.js +37 -59
  22. package/src/lib/table-column.js.map +1 -1
  23. package/src/schema.json +2347 -0
  24. package/src/schematic-input.schema.json +607 -0
  25. package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
  26. package/src/schematics/accordion/accordion-component/index.js +51 -25
  27. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  28. package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
  29. package/src/schematics/accordion/accordion-component/schema.json +183 -360
  30. package/src/schematics/accordion/accordion-component/template.schema.json +22 -25
  31. package/src/schematics/accordion/accordion-item-component/index.d.ts +7 -2
  32. package/src/schematics/accordion/accordion-item-component/index.js +70 -49
  33. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  34. package/src/schematics/accordion/accordion-item-component/schema.json +167 -336
  35. package/src/schematics/accordion/accordion-item-component/template.schema.json +8 -15
  36. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
  37. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +21 -25
  38. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  39. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +321 -429
  40. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +9 -15
  41. package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
  42. package/src/schematics/accordion/item/accordion-item-switch-component/index.js +14 -6
  43. package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
  44. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +174 -346
  45. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +6 -15
  46. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
  47. package/src/schematics/accordion/item/accordion-item-table-component/index.js +11 -13
  48. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  49. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +453 -614
  50. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +9 -18
  51. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
  52. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +37 -61
  53. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  54. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +431 -592
  55. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +10 -19
  56. package/src/schematics/accordion-identifier.schema.json +25 -0
  57. package/src/schematics/accordion-item.schema.json +24 -0
  58. package/src/schematics/angular.schema.json +11 -3
  59. package/src/schematics/button.schema.json +1 -1
  60. package/src/schematics/data-grid-component/index.js +17 -16
  61. package/src/schematics/data-grid-component/index.js.map +1 -1
  62. package/src/schematics/data-grid-component/schema.json +212 -378
  63. package/src/schematics/data-grid-component/template.schema.json +6 -15
  64. package/src/schematics/data-grid-item.schema.json +4 -1
  65. package/src/schematics/data-grid.schema.json +10 -4
  66. package/src/schematics/dialog-component/schema.json +72 -158
  67. package/src/schematics/dialog-component/template.schema.json +3 -6
  68. package/src/schematics/form/control/input-form-control/schema.json +108 -306
  69. package/src/schematics/form/control/input-form-control/template.schema.json +6 -9
  70. package/src/schematics/form/control/select-form-control/schema.json +120 -307
  71. package/src/schematics/form/control/select-form-control/template.schema.json +6 -9
  72. package/src/schematics/form/control/table-select-form-control/index.js +1 -1
  73. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  74. package/src/schematics/form/control/table-select-form-control/schema.json +93 -296
  75. package/src/schematics/form/control/table-select-form-control/template.schema.json +3 -6
  76. package/src/schematics/form/form-component/schema.json +136 -238
  77. package/src/schematics/form/form-component/template.schema.json +6 -9
  78. package/src/schematics/form/form-control/schema.json +68 -176
  79. package/src/schematics/form/form-control/template.schema.json +6 -9
  80. package/src/schematics/form/form-definition/schema.json +125 -230
  81. package/src/schematics/form/form-definition/template.schema.json +6 -9
  82. package/src/schematics/form-component.schema.json +3 -3
  83. package/src/schematics/form-definition.schema.json +3 -3
  84. package/src/schematics/general.schema.json +1 -4
  85. package/src/schematics/input-form-control.schema.json +11 -3
  86. package/src/schematics/minimum-table.schema.json +11 -5
  87. package/src/schematics/pipe.schema.json +1 -1
  88. package/src/schematics/select-form-control.schema.json +15 -4
  89. package/src/schematics/table/action/dialog-table-action/schema.json +150 -230
  90. package/src/schematics/table/action/dialog-table-action/template.schema.json +3 -6
  91. package/src/schematics/table/action/form-table-action/schema.json +283 -321
  92. package/src/schematics/table/action/form-table-action/template.schema.json +6 -6
  93. package/src/schematics/table/action/navigation-table-action/schema.json +150 -230
  94. package/src/schematics/table/action/navigation-table-action/template.schema.json +3 -6
  95. package/src/schematics/table/action/open-api-table-action/schema.json +150 -230
  96. package/src/schematics/table/action/open-api-table-action/template.schema.json +3 -6
  97. package/src/schematics/table/action/operation-table-action/schema.json +138 -218
  98. package/src/schematics/table/action/operation-table-action/template.schema.json +3 -6
  99. package/src/schematics/table/header-button/form-table-header-button/schema.json +217 -261
  100. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +6 -6
  101. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +131 -211
  102. package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +3 -6
  103. package/src/schematics/table/table-action/schema.json +56 -139
  104. package/src/schematics/table/table-action/template.schema.json +6 -6
  105. package/src/schematics/table/table-component/index.d.ts +1 -1
  106. package/src/schematics/table/table-component/index.js +2 -0
  107. package/src/schematics/table/table-component/index.js.map +1 -1
  108. package/src/schematics/table/table-component/schema.json +352 -547
  109. package/src/schematics/table/table-component/template.schema.json +6 -18
  110. package/src/schematics/table/table-header-button/schema.json +56 -139
  111. package/src/schematics/table/table-header-button/template.schema.json +6 -6
  112. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +6 -0
  113. package/src/schematics/table/tree-table-component/index.d.ts +3 -0
  114. package/src/schematics/table/tree-table-component/index.js +11 -3
  115. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  116. package/src/schematics/table/tree-table-component/schema.json +352 -547
  117. package/src/schematics/table/tree-table-component/template.schema.json +6 -18
  118. package/src/schematics/table-column.schema.json +4 -1
  119. package/src/schematics/table.schema.json +4 -1
  120. package/src/schematics/tree-component/schema.json +70 -62
  121. package/src/schematics/tree-component/template.schema.json +7 -2
  122. package/src/schematics/tree-table.schema.json +3 -3
  123. package/src/schematics/value.schema.json +1 -1
  124. package/src/template.schema.json +173 -0
@@ -3,183 +3,78 @@
3
3
  "$id": "input-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
- ]
6
+ "$ref": "#/definitions/formControl"
7
+ },
8
+ {
9
+ "$ref": "#/definitions/inputFormControl"
10
+ }
11
+ ],
12
+ "definitions": {
13
+ "formControl": {
14
+ "type": "object",
15
+ "properties": {
16
+ "name": {
17
+ "type": "string",
18
+ "description": "The name of the control"
101
19
  },
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
20
+ "type": {
21
+ "$ref": "#/definitions/type"
162
22
  },
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
- ]
23
+ "isArray": {
24
+ "type": "boolean",
25
+ "description": "Whether the control value is an array",
26
+ "default": false
27
+ },
28
+ "state": {
29
+ "type": "string",
30
+ "description": "The initial state of the control"
31
+ },
32
+ "isRequired": {
33
+ "type": "boolean",
34
+ "description": "Whether the control value is required",
35
+ "default": false
36
+ },
37
+ "isReadonly": {
38
+ "type": "boolean",
39
+ "description": "Whether the control value is readonly",
40
+ "default": false
41
+ },
42
+ "isDisabled": {
43
+ "type": "boolean",
44
+ "description": "Whether the control value is disabled",
45
+ "default": false
46
+ },
47
+ "validatorList": {
48
+ "type": "array",
49
+ "items": {
50
+ "type": "string"
51
+ }
52
+ },
53
+ "kind": {
54
+ "type": "string",
55
+ "description": "The name of the template",
56
+ "enum": [
57
+ "default",
58
+ "input",
59
+ "select",
60
+ "checkbox",
61
+ "autocomplete-table-select",
62
+ "table-select",
63
+ "textarea",
64
+ "slide-toggle"
65
+ ],
66
+ "default": "default"
176
67
  }
177
- ]
68
+ },
69
+ "required": [
70
+ "name"
71
+ ],
72
+ "additionalProperties": true
178
73
  },
179
- {
74
+ "inputFormControl": {
180
75
  "allOf": [
181
76
  {
182
- "$ref": "#/allOf/0/allOf/1"
77
+ "$ref": "#/definitions/formControl"
183
78
  },
184
79
  {
185
80
  "type": "object",
@@ -215,28 +110,52 @@
215
110
  "type": "string"
216
111
  },
217
112
  "formField": {
218
- "type": "object",
219
- "properties": {
220
- "label": {
221
- "type": "string"
222
- },
223
- "prefixButton": {
224
- "$ref": "#/definitions/button"
225
- },
226
- "suffixButton": {
227
- "$ref": "#/definitions/button"
228
- },
229
- "hasClearButton": {
230
- "type": "boolean"
231
- }
232
- }
113
+ "$ref": "#/definitions/formField"
233
114
  }
234
115
  }
235
116
  }
236
117
  ]
237
- }
238
- ],
239
- "definitions": {
118
+ },
119
+ "button": {
120
+ "type": "object",
121
+ "properties": {
122
+ "svgIcon": {
123
+ "type": "string"
124
+ },
125
+ "icon": {
126
+ "type": "string"
127
+ },
128
+ "directiveList": {
129
+ "type": "array",
130
+ "items": {
131
+ "$ref": "#/definitions/type"
132
+ }
133
+ },
134
+ "importList": {
135
+ "type": "array",
136
+ "items": {
137
+ "$ref": "#/definitions/type"
138
+ }
139
+ }
140
+ }
141
+ },
142
+ "formField": {
143
+ "type": "object",
144
+ "properties": {
145
+ "label": {
146
+ "type": "string"
147
+ },
148
+ "prefixButton": {
149
+ "$ref": "#/definitions/button"
150
+ },
151
+ "suffixButton": {
152
+ "$ref": "#/definitions/button"
153
+ },
154
+ "hasClearButton": {
155
+ "type": "boolean"
156
+ }
157
+ }
158
+ },
240
159
  "type": {
241
160
  "oneOf": [
242
161
  {
@@ -269,123 +188,6 @@
269
188
  ]
270
189
  }
271
190
  ]
272
- },
273
- "property": {
274
- "oneOf": [
275
- {
276
- "type": "string"
277
- },
278
- {
279
- "type": "object",
280
- "properties": {
281
- "name": {
282
- "type": "string"
283
- },
284
- "type": {
285
- "$ref": "#/definitions/type"
286
- },
287
- "isArray": {
288
- "type": "boolean"
289
- }
290
- },
291
- "required": [
292
- "name"
293
- ]
294
- }
295
- ],
296
- "definitions": {
297
- "type": {
298
- "oneOf": [
299
- {
300
- "type": "string"
301
- },
302
- {
303
- "type": "object",
304
- "properties": {
305
- "name": {
306
- "type": "string"
307
- },
308
- "isTypeOnly": {
309
- "type": "boolean"
310
- },
311
- "moduleSpecifier": {
312
- "type": "string"
313
- },
314
- "namedImport": {
315
- "type": "string"
316
- },
317
- "namespaceImport": {
318
- "type": "string"
319
- },
320
- "defaultImport": {
321
- "type": "string"
322
- }
323
- },
324
- "required": [
325
- "name"
326
- ]
327
- }
328
- ]
329
- }
330
- }
331
- },
332
- "button": {
333
- "type": "object",
334
- "properties": {
335
- "svgIcon": {
336
- "type": "string"
337
- },
338
- "icon": {
339
- "type": "string"
340
- },
341
- "directiveList": {
342
- "type": "array",
343
- "items": {
344
- "$ref": "#/definitions/type"
345
- }
346
- },
347
- "importList": {
348
- "type": "array",
349
- "items": {
350
- "$ref": "#/definitions/type"
351
- }
352
- }
353
- },
354
- "definitions": {
355
- "type": {
356
- "oneOf": [
357
- {
358
- "type": "string"
359
- },
360
- {
361
- "type": "object",
362
- "properties": {
363
- "name": {
364
- "type": "string"
365
- },
366
- "isTypeOnly": {
367
- "type": "boolean"
368
- },
369
- "moduleSpecifier": {
370
- "type": "string"
371
- },
372
- "namedImport": {
373
- "type": "string"
374
- },
375
- "namespaceImport": {
376
- "type": "string"
377
- },
378
- "defaultImport": {
379
- "type": "string"
380
- }
381
- },
382
- "required": [
383
- "name"
384
- ]
385
- }
386
- ]
387
- }
388
- }
389
191
  }
390
192
  }
391
193
  }
@@ -3,21 +3,18 @@
3
3
  "$id": "input-form-control-schematic",
4
4
  "allOf": [
5
5
  {
6
- "$ref": "../../form-control/template.schema.json"
6
+ "$ref": "#/definitions/formControl"
7
7
  },
8
8
  {
9
- "$ref": "../../../input-form-control.schema.json"
9
+ "$ref": "#/definitions/inputFormControl"
10
10
  }
11
11
  ],
12
12
  "definitions": {
13
- "type": {
14
- "$ref": "../../../type.schema.json"
15
- },
16
- "property": {
17
- "$ref": "../../../property.schema.json"
13
+ "formControl": {
14
+ "$ref": "../../form-control/template.schema.json"
18
15
  },
19
- "button": {
20
- "$ref": "../../../button.schema.json"
16
+ "inputFormControl": {
17
+ "$ref": "../../../input-form-control.schema.json"
21
18
  }
22
19
  }
23
20
  }