@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,422 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "form-table-action-schematic",
4
+ "allOf": [
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
+ "type": {
106
+ "type": "string"
107
+ },
108
+ "refresh": {
109
+ "type": "boolean"
110
+ },
111
+ "confirm": {
112
+ "type": "boolean"
113
+ },
114
+ "tooltip": {
115
+ "type": "string"
116
+ },
117
+ "errorMessage": {
118
+ "type": "string"
119
+ },
120
+ "successMessage": {
121
+ "type": "string"
122
+ },
123
+ "priority": {
124
+ "type": "number"
125
+ },
126
+ "checkFunction": {
127
+ "type": "string"
128
+ },
129
+ "inHeader": {
130
+ "type": "boolean"
131
+ },
132
+ "role": {
133
+ "type": "string"
134
+ },
135
+ "icon": {
136
+ "type": "string"
137
+ },
138
+ "svgIcon": {
139
+ "type": "string"
140
+ },
141
+ "permission": {
142
+ "type": "string"
143
+ },
144
+ "color": {
145
+ "type": "string",
146
+ "description": "Value for the color input of the mat-button / mat-icon component"
147
+ },
148
+ "cssClass": {
149
+ "type": "string",
150
+ "description": "Additional CSS classes added to the button element"
151
+ },
152
+ "options": {
153
+ "type": "object",
154
+ "additionalProperties": true
155
+ }
156
+ },
157
+ "required": [
158
+ "type"
159
+ ]
160
+ },
161
+ {
162
+ "type": "object",
163
+ "properties": {
164
+ "tableName": {
165
+ "alias": "table",
166
+ "type": "string",
167
+ "description": "The name of the table action"
168
+ }
169
+ }
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "type": "object",
175
+ "properties": {
176
+ "formInitial": {
177
+ "type": "object",
178
+ "description": "The mapping from the row object to the form initial object"
179
+ },
180
+ "formComponent": {
181
+ "type": "string"
182
+ },
183
+ "customComponent": {
184
+ "type": "boolean",
185
+ "default": false,
186
+ "description": "If true the schematic will not coerce the form component"
187
+ },
188
+ "loadFrom": {
189
+ "type": "object",
190
+ "properties": {
191
+ "operationId": {
192
+ "type": "string"
193
+ },
194
+ "scope": {
195
+ "type": "string",
196
+ "description": "The scope of package for the openapi classes"
197
+ },
198
+ "body": {
199
+ "oneOf": [
200
+ {
201
+ "type": "boolean",
202
+ "description": "Pass the full row as body for the operation request"
203
+ },
204
+ {
205
+ "type": "object",
206
+ "description": "Mapping of table columns to body properties - [request property]: [table column]",
207
+ "additionalProperties": true
208
+ }
209
+ ]
210
+ },
211
+ "parameters": {
212
+ "oneOf": [
213
+ {
214
+ "type": "boolean",
215
+ "description": "Pass the full row as parameters for the operation request"
216
+ },
217
+ {
218
+ "type": "object",
219
+ "description": "Mapping of table columns to parameters properties - [request property]: [table column]",
220
+ "additionalProperties": true
221
+ }
222
+ ]
223
+ }
224
+ }
225
+ },
226
+ "formOptions": {
227
+ "allOf": [
228
+ {
229
+ "type": "object",
230
+ "properties": {
231
+ "controlList": {
232
+ "alias": "control",
233
+ "type": "array",
234
+ "items": {
235
+ "type": "object",
236
+ "properties": {
237
+ "name": {
238
+ "type": "string",
239
+ "description": "The name of the control"
240
+ },
241
+ "type": {
242
+ "$ref": "#/definitions/type"
243
+ },
244
+ "isArray": {
245
+ "type": "boolean",
246
+ "description": "Whether the control value is an array",
247
+ "default": false
248
+ },
249
+ "state": {
250
+ "type": "string",
251
+ "description": "The initial state of the control"
252
+ },
253
+ "isRequired": {
254
+ "type": "boolean",
255
+ "description": "Whether the control value is required",
256
+ "default": false
257
+ },
258
+ "isReadonly": {
259
+ "type": "boolean",
260
+ "description": "Whether the control value is readonly",
261
+ "default": false
262
+ },
263
+ "isDisabled": {
264
+ "type": "boolean",
265
+ "description": "Whether the control value is disabled",
266
+ "default": false
267
+ },
268
+ "validatorList": {
269
+ "type": "array",
270
+ "items": {
271
+ "type": "string"
272
+ }
273
+ },
274
+ "kind": {
275
+ "type": "string",
276
+ "description": "The name of the template",
277
+ "enum": [
278
+ "default",
279
+ "input",
280
+ "select",
281
+ "checkbox",
282
+ "autocomplete-table-select",
283
+ "table-select",
284
+ "textarea",
285
+ "slide-toggle"
286
+ ],
287
+ "default": "default"
288
+ }
289
+ },
290
+ "required": [
291
+ "name"
292
+ ],
293
+ "additionalProperties": true
294
+ }
295
+ }
296
+ },
297
+ "required": [
298
+ "controlList"
299
+ ]
300
+ },
301
+ {
302
+ "type": "object",
303
+ "properties": {
304
+ "window": {
305
+ "type": "boolean",
306
+ "description": "Whether the form can be opened in a window"
307
+ },
308
+ "role": {
309
+ "type": "string",
310
+ "description": "Define the role of the form"
311
+ },
312
+ "matFormFieldDefaultOptions": {
313
+ "appearance": {
314
+ "type": "string",
315
+ "description": "The appearance of the mat form field",
316
+ "enum": [
317
+ "legacy",
318
+ "standard",
319
+ "fill",
320
+ "outline"
321
+ ]
322
+ }
323
+ }
324
+ }
325
+ }
326
+ ]
327
+ }
328
+ }
329
+ }
330
+ ],
331
+ "definitions": {
332
+ "type": {
333
+ "oneOf": [
334
+ {
335
+ "type": "string"
336
+ },
337
+ {
338
+ "type": "object",
339
+ "properties": {
340
+ "name": {
341
+ "type": "string"
342
+ },
343
+ "isTypeOnly": {
344
+ "type": "boolean"
345
+ },
346
+ "moduleSpecifier": {
347
+ "type": "string"
348
+ },
349
+ "namedImport": {
350
+ "type": "string"
351
+ },
352
+ "namespaceImport": {
353
+ "type": "string"
354
+ },
355
+ "defaultImport": {
356
+ "type": "string"
357
+ }
358
+ },
359
+ "required": [
360
+ "name"
361
+ ]
362
+ }
363
+ ]
364
+ },
365
+ "property": {
366
+ "oneOf": [
367
+ {
368
+ "type": "string"
369
+ },
370
+ {
371
+ "type": "object",
372
+ "properties": {
373
+ "name": {
374
+ "type": "string"
375
+ },
376
+ "type": {
377
+ "$ref": "#/definitions/type"
378
+ }
379
+ },
380
+ "required": [
381
+ "name"
382
+ ]
383
+ }
384
+ ],
385
+ "definitions": {
386
+ "type": {
387
+ "oneOf": [
388
+ {
389
+ "type": "string"
390
+ },
391
+ {
392
+ "type": "object",
393
+ "properties": {
394
+ "name": {
395
+ "type": "string"
396
+ },
397
+ "isTypeOnly": {
398
+ "type": "boolean"
399
+ },
400
+ "moduleSpecifier": {
401
+ "type": "string"
402
+ },
403
+ "namedImport": {
404
+ "type": "string"
405
+ },
406
+ "namespaceImport": {
407
+ "type": "string"
408
+ },
409
+ "defaultImport": {
410
+ "type": "string"
411
+ }
412
+ },
413
+ "required": [
414
+ "name"
415
+ ]
416
+ }
417
+ ]
418
+ }
419
+ }
420
+ }
421
+ }
422
+ }
@@ -0,0 +1,279 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "navigation-table-action-schematic",
4
+ "allOf": [
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
+ "type": {
106
+ "type": "string"
107
+ },
108
+ "refresh": {
109
+ "type": "boolean"
110
+ },
111
+ "confirm": {
112
+ "type": "boolean"
113
+ },
114
+ "tooltip": {
115
+ "type": "string"
116
+ },
117
+ "errorMessage": {
118
+ "type": "string"
119
+ },
120
+ "successMessage": {
121
+ "type": "string"
122
+ },
123
+ "priority": {
124
+ "type": "number"
125
+ },
126
+ "checkFunction": {
127
+ "type": "string"
128
+ },
129
+ "inHeader": {
130
+ "type": "boolean"
131
+ },
132
+ "role": {
133
+ "type": "string"
134
+ },
135
+ "icon": {
136
+ "type": "string"
137
+ },
138
+ "svgIcon": {
139
+ "type": "string"
140
+ },
141
+ "permission": {
142
+ "type": "string"
143
+ },
144
+ "color": {
145
+ "type": "string",
146
+ "description": "Value for the color input of the mat-button / mat-icon component"
147
+ },
148
+ "cssClass": {
149
+ "type": "string",
150
+ "description": "Additional CSS classes added to the button element"
151
+ },
152
+ "options": {
153
+ "type": "object",
154
+ "additionalProperties": true
155
+ }
156
+ },
157
+ "required": [
158
+ "type"
159
+ ]
160
+ },
161
+ {
162
+ "type": "object",
163
+ "properties": {
164
+ "tableName": {
165
+ "alias": "table",
166
+ "type": "string",
167
+ "description": "The name of the table action"
168
+ }
169
+ }
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "type": "object",
175
+ "properties": {
176
+ "route": {
177
+ "type": "string",
178
+ "description": "The route for the table action"
179
+ },
180
+ "relativeTo": {
181
+ "type": "boolean",
182
+ "description": "Use the current ActivatedRoute to resolve the route or not",
183
+ "default": false
184
+ }
185
+ }
186
+ }
187
+ ],
188
+ "definitions": {
189
+ "type": {
190
+ "oneOf": [
191
+ {
192
+ "type": "string"
193
+ },
194
+ {
195
+ "type": "object",
196
+ "properties": {
197
+ "name": {
198
+ "type": "string"
199
+ },
200
+ "isTypeOnly": {
201
+ "type": "boolean"
202
+ },
203
+ "moduleSpecifier": {
204
+ "type": "string"
205
+ },
206
+ "namedImport": {
207
+ "type": "string"
208
+ },
209
+ "namespaceImport": {
210
+ "type": "string"
211
+ },
212
+ "defaultImport": {
213
+ "type": "string"
214
+ }
215
+ },
216
+ "required": [
217
+ "name"
218
+ ]
219
+ }
220
+ ]
221
+ },
222
+ "property": {
223
+ "oneOf": [
224
+ {
225
+ "type": "string"
226
+ },
227
+ {
228
+ "type": "object",
229
+ "properties": {
230
+ "name": {
231
+ "type": "string"
232
+ },
233
+ "type": {
234
+ "$ref": "#/definitions/type"
235
+ }
236
+ },
237
+ "required": [
238
+ "name"
239
+ ]
240
+ }
241
+ ],
242
+ "definitions": {
243
+ "type": {
244
+ "oneOf": [
245
+ {
246
+ "type": "string"
247
+ },
248
+ {
249
+ "type": "object",
250
+ "properties": {
251
+ "name": {
252
+ "type": "string"
253
+ },
254
+ "isTypeOnly": {
255
+ "type": "boolean"
256
+ },
257
+ "moduleSpecifier": {
258
+ "type": "string"
259
+ },
260
+ "namedImport": {
261
+ "type": "string"
262
+ },
263
+ "namespaceImport": {
264
+ "type": "string"
265
+ },
266
+ "defaultImport": {
267
+ "type": "string"
268
+ }
269
+ },
270
+ "required": [
271
+ "name"
272
+ ]
273
+ }
274
+ ]
275
+ }
276
+ }
277
+ }
278
+ }
279
+ }