@rxap/schematic-angular 16.2.0-dev.8 → 16.2.0-dev.9

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 (28) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/package.json +2 -2
  3. package/src/schematics/accordion/accordion-component/schema.json +372 -0
  4. package/src/schematics/accordion/accordion-item-component/schema.json +295 -0
  5. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +396 -0
  6. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +352 -0
  7. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +654 -0
  8. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +637 -0
  9. package/src/schematics/data-grid-component/schema.json +358 -0
  10. package/src/schematics/dialog-component/schema.json +240 -0
  11. package/src/schematics/form/control/input-form-control/schema.json +388 -0
  12. package/src/schematics/form/control/select-form-control/schema.json +394 -0
  13. package/src/schematics/form/control/table-select-form-control/schema.json +443 -0
  14. package/src/schematics/form/form-component/schema.json +352 -0
  15. package/src/schematics/form/form-control/schema.json +325 -0
  16. package/src/schematics/form/form-definition/schema.json +333 -0
  17. package/src/schematics/table/action/dialog-table-action/schema.json +309 -0
  18. package/src/schematics/table/action/form-table-action/schema.json +422 -0
  19. package/src/schematics/table/action/navigation-table-action/schema.json +279 -0
  20. package/src/schematics/table/action/open-api-table-action/schema.json +307 -0
  21. package/src/schematics/table/action/operation-table-action/schema.json +265 -0
  22. package/src/schematics/table/header-button/form-table-header-button/schema.json +338 -0
  23. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +260 -0
  24. package/src/schematics/table/table-action/schema.json +261 -0
  25. package/src/schematics/table/table-component/schema.json +604 -0
  26. package/src/schematics/table/table-header-button/schema.json +242 -0
  27. package/src/schematics/table/tree-table-component/schema.json +587 -0
  28. package/src/schematics/tree-component/schema.json +123 -0
@@ -0,0 +1,352 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "form-component-schematic",
4
+ "allOf": [
5
+ {
6
+ "allOf": [
7
+ {
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
+ ]
45
+ },
46
+ {
47
+ "type": "object",
48
+ "properties": {
49
+ "componentName": {
50
+ "type": "string"
51
+ },
52
+ "name": {
53
+ "type": "string"
54
+ },
55
+ "context": {
56
+ "type": "string",
57
+ "description": "The context use to generate proper names for class, files, etc"
58
+ },
59
+ "nestModule": {
60
+ "type": "string",
61
+ "description": "The module name for the table nest operations"
62
+ },
63
+ "controllerName": {
64
+ "type": "string"
65
+ },
66
+ "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"
76
+ },
77
+ "directory": {
78
+ "type": "string",
79
+ "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"
80
+ },
81
+ "shared": {
82
+ "type": "boolean",
83
+ "description": "Whether the generated code is used across the project",
84
+ "default": false
85
+ },
86
+ "scope": {
87
+ "type": "string"
88
+ },
89
+ "prefix": {
90
+ "type": "string"
91
+ },
92
+ "openApi": {
93
+ "type": "object",
94
+ "additionalProperties": true
95
+ }
96
+ }
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "allOf": [
102
+ {
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
+ ]
174
+ },
175
+ {
176
+ "type": "object",
177
+ "properties": {
178
+ "window": {
179
+ "type": "boolean",
180
+ "description": "Whether the form can be opened in a window"
181
+ },
182
+ "role": {
183
+ "type": "string",
184
+ "description": "Define the role of the form"
185
+ },
186
+ "matFormFieldDefaultOptions": {
187
+ "appearance": {
188
+ "type": "string",
189
+ "description": "The appearance of the mat form field",
190
+ "enum": [
191
+ "legacy",
192
+ "standard",
193
+ "fill",
194
+ "outline"
195
+ ]
196
+ }
197
+ }
198
+ }
199
+ }
200
+ ]
201
+ }
202
+ ],
203
+ "definitions": {
204
+ "type": {
205
+ "oneOf": [
206
+ {
207
+ "type": "string"
208
+ },
209
+ {
210
+ "type": "object",
211
+ "properties": {
212
+ "name": {
213
+ "type": "string"
214
+ },
215
+ "isTypeOnly": {
216
+ "type": "boolean"
217
+ },
218
+ "moduleSpecifier": {
219
+ "type": "string"
220
+ },
221
+ "namedImport": {
222
+ "type": "string"
223
+ },
224
+ "namespaceImport": {
225
+ "type": "string"
226
+ },
227
+ "defaultImport": {
228
+ "type": "string"
229
+ }
230
+ },
231
+ "required": [
232
+ "name"
233
+ ]
234
+ }
235
+ ]
236
+ },
237
+ "property": {
238
+ "oneOf": [
239
+ {
240
+ "type": "string"
241
+ },
242
+ {
243
+ "type": "object",
244
+ "properties": {
245
+ "name": {
246
+ "type": "string"
247
+ },
248
+ "type": {
249
+ "$ref": "#/definitions/type"
250
+ }
251
+ },
252
+ "required": [
253
+ "name"
254
+ ]
255
+ }
256
+ ],
257
+ "definitions": {
258
+ "type": {
259
+ "oneOf": [
260
+ {
261
+ "type": "string"
262
+ },
263
+ {
264
+ "type": "object",
265
+ "properties": {
266
+ "name": {
267
+ "type": "string"
268
+ },
269
+ "isTypeOnly": {
270
+ "type": "boolean"
271
+ },
272
+ "moduleSpecifier": {
273
+ "type": "string"
274
+ },
275
+ "namedImport": {
276
+ "type": "string"
277
+ },
278
+ "namespaceImport": {
279
+ "type": "string"
280
+ },
281
+ "defaultImport": {
282
+ "type": "string"
283
+ }
284
+ },
285
+ "required": [
286
+ "name"
287
+ ]
288
+ }
289
+ ]
290
+ }
291
+ }
292
+ },
293
+ "button": {
294
+ "type": "object",
295
+ "properties": {
296
+ "svgIcon": {
297
+ "type": "string"
298
+ },
299
+ "icon": {
300
+ "type": "string"
301
+ },
302
+ "directiveList": {
303
+ "type": "array",
304
+ "items": {
305
+ "$ref": "#/definitions/type"
306
+ }
307
+ },
308
+ "importList": {
309
+ "type": "array",
310
+ "items": {
311
+ "$ref": "#/definitions/type"
312
+ }
313
+ }
314
+ },
315
+ "definitions": {
316
+ "type": {
317
+ "oneOf": [
318
+ {
319
+ "type": "string"
320
+ },
321
+ {
322
+ "type": "object",
323
+ "properties": {
324
+ "name": {
325
+ "type": "string"
326
+ },
327
+ "isTypeOnly": {
328
+ "type": "boolean"
329
+ },
330
+ "moduleSpecifier": {
331
+ "type": "string"
332
+ },
333
+ "namedImport": {
334
+ "type": "string"
335
+ },
336
+ "namespaceImport": {
337
+ "type": "string"
338
+ },
339
+ "defaultImport": {
340
+ "type": "string"
341
+ }
342
+ },
343
+ "required": [
344
+ "name"
345
+ ]
346
+ }
347
+ ]
348
+ }
349
+ }
350
+ }
351
+ }
352
+ }
@@ -0,0 +1,325 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "form-control-schematic",
4
+ "allOf": [
5
+ {
6
+ "allOf": [
7
+ {
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
+ ]
45
+ },
46
+ {
47
+ "type": "object",
48
+ "properties": {
49
+ "componentName": {
50
+ "type": "string"
51
+ },
52
+ "name": {
53
+ "type": "string"
54
+ },
55
+ "context": {
56
+ "type": "string",
57
+ "description": "The context use to generate proper names for class, files, etc"
58
+ },
59
+ "nestModule": {
60
+ "type": "string",
61
+ "description": "The module name for the table nest operations"
62
+ },
63
+ "controllerName": {
64
+ "type": "string"
65
+ },
66
+ "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"
76
+ },
77
+ "directory": {
78
+ "type": "string",
79
+ "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"
80
+ },
81
+ "shared": {
82
+ "type": "boolean",
83
+ "description": "Whether the generated code is used across the project",
84
+ "default": false
85
+ },
86
+ "scope": {
87
+ "type": "string"
88
+ },
89
+ "prefix": {
90
+ "type": "string"
91
+ },
92
+ "openApi": {
93
+ "type": "object",
94
+ "additionalProperties": true
95
+ }
96
+ }
97
+ }
98
+ ]
99
+ },
100
+ {
101
+ "type": "object",
102
+ "properties": {
103
+ "name": {
104
+ "type": "string",
105
+ "description": "The name of the control"
106
+ },
107
+ "type": {
108
+ "$ref": "#/definitions/type"
109
+ },
110
+ "isArray": {
111
+ "type": "boolean",
112
+ "description": "Whether the control value is an array",
113
+ "default": false
114
+ },
115
+ "state": {
116
+ "type": "string",
117
+ "description": "The initial state of the control"
118
+ },
119
+ "isRequired": {
120
+ "type": "boolean",
121
+ "description": "Whether the control value is required",
122
+ "default": false
123
+ },
124
+ "isReadonly": {
125
+ "type": "boolean",
126
+ "description": "Whether the control value is readonly",
127
+ "default": false
128
+ },
129
+ "isDisabled": {
130
+ "type": "boolean",
131
+ "description": "Whether the control value is disabled",
132
+ "default": false
133
+ },
134
+ "validatorList": {
135
+ "type": "array",
136
+ "items": {
137
+ "type": "string"
138
+ }
139
+ },
140
+ "kind": {
141
+ "type": "string",
142
+ "description": "The name of the template",
143
+ "enum": [
144
+ "default",
145
+ "input",
146
+ "select",
147
+ "checkbox",
148
+ "autocomplete-table-select",
149
+ "table-select",
150
+ "textarea",
151
+ "slide-toggle"
152
+ ],
153
+ "default": "default"
154
+ }
155
+ },
156
+ "required": [
157
+ "name"
158
+ ],
159
+ "additionalProperties": true
160
+ },
161
+ {
162
+ "type": "object",
163
+ "properties": {
164
+ "formName": {
165
+ "alias": "form",
166
+ "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"
169
+ }
170
+ },
171
+ "required": [
172
+ "formName"
173
+ ]
174
+ }
175
+ ],
176
+ "definitions": {
177
+ "type": {
178
+ "oneOf": [
179
+ {
180
+ "type": "string"
181
+ },
182
+ {
183
+ "type": "object",
184
+ "properties": {
185
+ "name": {
186
+ "type": "string"
187
+ },
188
+ "isTypeOnly": {
189
+ "type": "boolean"
190
+ },
191
+ "moduleSpecifier": {
192
+ "type": "string"
193
+ },
194
+ "namedImport": {
195
+ "type": "string"
196
+ },
197
+ "namespaceImport": {
198
+ "type": "string"
199
+ },
200
+ "defaultImport": {
201
+ "type": "string"
202
+ }
203
+ },
204
+ "required": [
205
+ "name"
206
+ ]
207
+ }
208
+ ]
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
+ },
225
+ "required": [
226
+ "name"
227
+ ]
228
+ }
229
+ ],
230
+ "definitions": {
231
+ "type": {
232
+ "oneOf": [
233
+ {
234
+ "type": "string"
235
+ },
236
+ {
237
+ "type": "object",
238
+ "properties": {
239
+ "name": {
240
+ "type": "string"
241
+ },
242
+ "isTypeOnly": {
243
+ "type": "boolean"
244
+ },
245
+ "moduleSpecifier": {
246
+ "type": "string"
247
+ },
248
+ "namedImport": {
249
+ "type": "string"
250
+ },
251
+ "namespaceImport": {
252
+ "type": "string"
253
+ },
254
+ "defaultImport": {
255
+ "type": "string"
256
+ }
257
+ },
258
+ "required": [
259
+ "name"
260
+ ]
261
+ }
262
+ ]
263
+ }
264
+ }
265
+ },
266
+ "button": {
267
+ "type": "object",
268
+ "properties": {
269
+ "svgIcon": {
270
+ "type": "string"
271
+ },
272
+ "icon": {
273
+ "type": "string"
274
+ },
275
+ "directiveList": {
276
+ "type": "array",
277
+ "items": {
278
+ "$ref": "#/definitions/type"
279
+ }
280
+ },
281
+ "importList": {
282
+ "type": "array",
283
+ "items": {
284
+ "$ref": "#/definitions/type"
285
+ }
286
+ }
287
+ },
288
+ "definitions": {
289
+ "type": {
290
+ "oneOf": [
291
+ {
292
+ "type": "string"
293
+ },
294
+ {
295
+ "type": "object",
296
+ "properties": {
297
+ "name": {
298
+ "type": "string"
299
+ },
300
+ "isTypeOnly": {
301
+ "type": "boolean"
302
+ },
303
+ "moduleSpecifier": {
304
+ "type": "string"
305
+ },
306
+ "namedImport": {
307
+ "type": "string"
308
+ },
309
+ "namespaceImport": {
310
+ "type": "string"
311
+ },
312
+ "defaultImport": {
313
+ "type": "string"
314
+ }
315
+ },
316
+ "required": [
317
+ "name"
318
+ ]
319
+ }
320
+ ]
321
+ }
322
+ }
323
+ }
324
+ }
325
+ }