@rxap/schematic-angular 16.2.0-dev.7 → 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 (31) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/package.json +8 -8
  4. package/src/lib/table-column.js +43 -41
  5. package/src/lib/table-column.js.map +1 -1
  6. package/src/schematics/accordion/accordion-component/schema.json +372 -0
  7. package/src/schematics/accordion/accordion-item-component/schema.json +295 -0
  8. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +396 -0
  9. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +352 -0
  10. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +654 -0
  11. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +637 -0
  12. package/src/schematics/data-grid-component/schema.json +358 -0
  13. package/src/schematics/dialog-component/schema.json +240 -0
  14. package/src/schematics/form/control/input-form-control/schema.json +388 -0
  15. package/src/schematics/form/control/select-form-control/schema.json +394 -0
  16. package/src/schematics/form/control/table-select-form-control/schema.json +443 -0
  17. package/src/schematics/form/form-component/schema.json +352 -0
  18. package/src/schematics/form/form-control/schema.json +325 -0
  19. package/src/schematics/form/form-definition/schema.json +333 -0
  20. package/src/schematics/table/action/dialog-table-action/schema.json +309 -0
  21. package/src/schematics/table/action/form-table-action/schema.json +422 -0
  22. package/src/schematics/table/action/navigation-table-action/schema.json +279 -0
  23. package/src/schematics/table/action/open-api-table-action/schema.json +307 -0
  24. package/src/schematics/table/action/operation-table-action/schema.json +265 -0
  25. package/src/schematics/table/header-button/form-table-header-button/schema.json +338 -0
  26. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +260 -0
  27. package/src/schematics/table/table-action/schema.json +261 -0
  28. package/src/schematics/table/table-component/schema.json +604 -0
  29. package/src/schematics/table/table-header-button/schema.json +242 -0
  30. package/src/schematics/table/tree-table-component/schema.json +587 -0
  31. package/src/schematics/tree-component/schema.json +123 -0
@@ -0,0 +1,358 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "data-grid-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
+ "type": "object",
102
+ "properties": {
103
+ "mode": {
104
+ "type": "string",
105
+ "description": "The mode of the form",
106
+ "enum": [
107
+ "form",
108
+ "plain"
109
+ ]
110
+ },
111
+ "collection": {
112
+ "type": "boolean",
113
+ "description": "Whether the data grid is used as collection."
114
+ },
115
+ "title": {
116
+ "type": "string",
117
+ "description": "The title of the data grid card component"
118
+ },
119
+ "subtitle": {
120
+ "type": "string",
121
+ "description": "The subtitle of the data grid card component"
122
+ },
123
+ "itemList": {
124
+ "alias": "item",
125
+ "type": "array",
126
+ "items": {
127
+ "allOf": [
128
+ {
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
+ {
190
+ "type": "object",
191
+ "properties": {
192
+ "header": {
193
+ "type": "string",
194
+ "description": "The name of the control"
195
+ }
196
+ }
197
+ }
198
+ ]
199
+ }
200
+ },
201
+ "inCard": {
202
+ "type": "boolean",
203
+ "description": "Whether the data grid is used in a card.",
204
+ "default": true
205
+ }
206
+ }
207
+ }
208
+ ],
209
+ "definitions": {
210
+ "type": {
211
+ "oneOf": [
212
+ {
213
+ "type": "string"
214
+ },
215
+ {
216
+ "type": "object",
217
+ "properties": {
218
+ "name": {
219
+ "type": "string"
220
+ },
221
+ "isTypeOnly": {
222
+ "type": "boolean"
223
+ },
224
+ "moduleSpecifier": {
225
+ "type": "string"
226
+ },
227
+ "namedImport": {
228
+ "type": "string"
229
+ },
230
+ "namespaceImport": {
231
+ "type": "string"
232
+ },
233
+ "defaultImport": {
234
+ "type": "string"
235
+ }
236
+ },
237
+ "required": [
238
+ "name"
239
+ ]
240
+ }
241
+ ]
242
+ },
243
+ "property": {
244
+ "oneOf": [
245
+ {
246
+ "type": "string"
247
+ },
248
+ {
249
+ "type": "object",
250
+ "properties": {
251
+ "name": {
252
+ "type": "string"
253
+ },
254
+ "type": {
255
+ "$ref": "#/definitions/type"
256
+ }
257
+ },
258
+ "required": [
259
+ "name"
260
+ ]
261
+ }
262
+ ],
263
+ "definitions": {
264
+ "type": {
265
+ "oneOf": [
266
+ {
267
+ "type": "string"
268
+ },
269
+ {
270
+ "type": "object",
271
+ "properties": {
272
+ "name": {
273
+ "type": "string"
274
+ },
275
+ "isTypeOnly": {
276
+ "type": "boolean"
277
+ },
278
+ "moduleSpecifier": {
279
+ "type": "string"
280
+ },
281
+ "namedImport": {
282
+ "type": "string"
283
+ },
284
+ "namespaceImport": {
285
+ "type": "string"
286
+ },
287
+ "defaultImport": {
288
+ "type": "string"
289
+ }
290
+ },
291
+ "required": [
292
+ "name"
293
+ ]
294
+ }
295
+ ]
296
+ }
297
+ }
298
+ },
299
+ "button": {
300
+ "type": "object",
301
+ "properties": {
302
+ "svgIcon": {
303
+ "type": "string"
304
+ },
305
+ "icon": {
306
+ "type": "string"
307
+ },
308
+ "directiveList": {
309
+ "type": "array",
310
+ "items": {
311
+ "$ref": "#/definitions/type"
312
+ }
313
+ },
314
+ "importList": {
315
+ "type": "array",
316
+ "items": {
317
+ "$ref": "#/definitions/type"
318
+ }
319
+ }
320
+ },
321
+ "definitions": {
322
+ "type": {
323
+ "oneOf": [
324
+ {
325
+ "type": "string"
326
+ },
327
+ {
328
+ "type": "object",
329
+ "properties": {
330
+ "name": {
331
+ "type": "string"
332
+ },
333
+ "isTypeOnly": {
334
+ "type": "boolean"
335
+ },
336
+ "moduleSpecifier": {
337
+ "type": "string"
338
+ },
339
+ "namedImport": {
340
+ "type": "string"
341
+ },
342
+ "namespaceImport": {
343
+ "type": "string"
344
+ },
345
+ "defaultImport": {
346
+ "type": "string"
347
+ }
348
+ },
349
+ "required": [
350
+ "name"
351
+ ]
352
+ }
353
+ ]
354
+ }
355
+ }
356
+ }
357
+ }
358
+ }
@@ -0,0 +1,240 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "dialog-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
+ "type": "object",
102
+ "properties": {
103
+ "dialogName": {
104
+ "alias": "name",
105
+ "type": "string",
106
+ "description": "The name of the dialog",
107
+ "x-prompt": "Which name should the dialog module have?"
108
+ },
109
+ "title": {
110
+ "type": "string",
111
+ "description": "The title of the dialog"
112
+ },
113
+ "actionList": {
114
+ "alias": "action",
115
+ "type": "array",
116
+ "description": "The list of actions to be added to the dialog",
117
+ "items": {
118
+ "oneOf": [
119
+ {
120
+ "type": "string"
121
+ },
122
+ {
123
+ "type": "object",
124
+ "properties": {
125
+ "label": {
126
+ "type": "string"
127
+ },
128
+ "color": {
129
+ "type": "string"
130
+ },
131
+ "role": {
132
+ "type": "string",
133
+ "enum": [
134
+ "submit",
135
+ "close"
136
+ ]
137
+ }
138
+ }
139
+ }
140
+ ]
141
+ }
142
+ }
143
+ },
144
+ "required": [
145
+ "dialogName"
146
+ ]
147
+ }
148
+ ],
149
+ "definitions": {
150
+ "type": {
151
+ "oneOf": [
152
+ {
153
+ "type": "string"
154
+ },
155
+ {
156
+ "type": "object",
157
+ "properties": {
158
+ "name": {
159
+ "type": "string"
160
+ },
161
+ "isTypeOnly": {
162
+ "type": "boolean"
163
+ },
164
+ "moduleSpecifier": {
165
+ "type": "string"
166
+ },
167
+ "namedImport": {
168
+ "type": "string"
169
+ },
170
+ "namespaceImport": {
171
+ "type": "string"
172
+ },
173
+ "defaultImport": {
174
+ "type": "string"
175
+ }
176
+ },
177
+ "required": [
178
+ "name"
179
+ ]
180
+ }
181
+ ]
182
+ },
183
+ "property": {
184
+ "oneOf": [
185
+ {
186
+ "type": "string"
187
+ },
188
+ {
189
+ "type": "object",
190
+ "properties": {
191
+ "name": {
192
+ "type": "string"
193
+ },
194
+ "type": {
195
+ "$ref": "#/definitions/type"
196
+ }
197
+ },
198
+ "required": [
199
+ "name"
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
+ }
238
+ }
239
+ }
240
+ }