@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,587 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "tree-table-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
+ "propertyList": {
106
+ "alias": "property",
107
+ "type": "array",
108
+ "items": {
109
+ "$ref": "#/definitions/property"
110
+ }
111
+ },
112
+ "upstream": {
113
+ "$ref": "#/definitions/upstream"
114
+ },
115
+ "columnList": {
116
+ "alias": "column",
117
+ "type": "array",
118
+ "items": {
119
+ "type": "object",
120
+ "properties": {
121
+ "name": {
122
+ "type": "string"
123
+ },
124
+ "type": {
125
+ "$ref": "#/definitions/type"
126
+ },
127
+ "kind": {
128
+ "type": "string"
129
+ },
130
+ "modifiers": {
131
+ "type": "array",
132
+ "items": {
133
+ "type": "string"
134
+ }
135
+ },
136
+ "template": {
137
+ "type": "string"
138
+ },
139
+ "pipeList": {
140
+ "type": "array",
141
+ "items": {
142
+ "$ref": "#/definitions/type"
143
+ }
144
+ },
145
+ "hasFilter": {
146
+ "type": "boolean"
147
+ },
148
+ "nowrap": {
149
+ "type": "boolean"
150
+ },
151
+ "cssClass": {
152
+ "type": "string"
153
+ },
154
+ "title": {
155
+ "type": "string"
156
+ },
157
+ "propertyPath": {
158
+ "type": "string"
159
+ },
160
+ "hidden": {
161
+ "type": "boolean"
162
+ },
163
+ "active": {
164
+ "type": "boolean"
165
+ },
166
+ "inactive": {
167
+ "type": "boolean"
168
+ },
169
+ "show": {
170
+ "type": "boolean"
171
+ },
172
+ "filterControl": {
173
+ "type": "object",
174
+ "properties": {
175
+ "name": {
176
+ "type": "string",
177
+ "description": "The name of the control"
178
+ },
179
+ "type": {
180
+ "$ref": "#/definitions/type"
181
+ },
182
+ "isArray": {
183
+ "type": "boolean",
184
+ "description": "Whether the control value is an array",
185
+ "default": false
186
+ },
187
+ "state": {
188
+ "type": "string",
189
+ "description": "The initial state of the control"
190
+ },
191
+ "isRequired": {
192
+ "type": "boolean",
193
+ "description": "Whether the control value is required",
194
+ "default": false
195
+ },
196
+ "isReadonly": {
197
+ "type": "boolean",
198
+ "description": "Whether the control value is readonly",
199
+ "default": false
200
+ },
201
+ "isDisabled": {
202
+ "type": "boolean",
203
+ "description": "Whether the control value is disabled",
204
+ "default": false
205
+ },
206
+ "validatorList": {
207
+ "type": "array",
208
+ "items": {
209
+ "type": "string"
210
+ }
211
+ },
212
+ "kind": {
213
+ "type": "string",
214
+ "description": "The name of the template",
215
+ "enum": [
216
+ "default",
217
+ "input",
218
+ "select",
219
+ "checkbox",
220
+ "autocomplete-table-select",
221
+ "table-select",
222
+ "textarea",
223
+ "slide-toggle"
224
+ ],
225
+ "default": "default"
226
+ }
227
+ },
228
+ "required": [
229
+ "name"
230
+ ],
231
+ "additionalProperties": true
232
+ }
233
+ },
234
+ "required": [
235
+ "name"
236
+ ]
237
+ },
238
+ "description": "List of table column names"
239
+ },
240
+ "actionList": {
241
+ "alias": "action",
242
+ "type": "array",
243
+ "items": {
244
+ "type": "object",
245
+ "properties": {
246
+ "type": {
247
+ "type": "string"
248
+ },
249
+ "refresh": {
250
+ "type": "boolean"
251
+ },
252
+ "confirm": {
253
+ "type": "boolean"
254
+ },
255
+ "tooltip": {
256
+ "type": "string"
257
+ },
258
+ "errorMessage": {
259
+ "type": "string"
260
+ },
261
+ "successMessage": {
262
+ "type": "string"
263
+ },
264
+ "priority": {
265
+ "type": "number"
266
+ },
267
+ "checkFunction": {
268
+ "type": "string"
269
+ },
270
+ "inHeader": {
271
+ "type": "boolean"
272
+ },
273
+ "role": {
274
+ "type": "string"
275
+ },
276
+ "icon": {
277
+ "type": "string"
278
+ },
279
+ "svgIcon": {
280
+ "type": "string"
281
+ },
282
+ "permission": {
283
+ "type": "string"
284
+ },
285
+ "color": {
286
+ "type": "string",
287
+ "description": "Value for the color input of the mat-button / mat-icon component"
288
+ },
289
+ "cssClass": {
290
+ "type": "string",
291
+ "description": "Additional CSS classes added to the button element"
292
+ },
293
+ "options": {
294
+ "type": "object",
295
+ "additionalProperties": true
296
+ }
297
+ },
298
+ "required": [
299
+ "type"
300
+ ]
301
+ }
302
+ },
303
+ "headerButton": {
304
+ "type": "object",
305
+ "properties": {
306
+ "permission": {
307
+ "type": "string"
308
+ },
309
+ "icon": {
310
+ "type": "string"
311
+ },
312
+ "svgIcon": {
313
+ "type": "string"
314
+ },
315
+ "refresh": {
316
+ "type": "boolean",
317
+ "description": "Whether the table action should refresh the table after execution",
318
+ "default": false
319
+ },
320
+ "confirm": {
321
+ "type": "boolean",
322
+ "description": "Whether the table action should confirm before execution",
323
+ "default": false
324
+ },
325
+ "tooltip": {
326
+ "type": "string",
327
+ "description": "The tooltip for the table action"
328
+ },
329
+ "errorMessage": {
330
+ "type": "string",
331
+ "description": "The error message for the table action"
332
+ },
333
+ "successMessage": {
334
+ "type": "string",
335
+ "description": "The success message for the table action"
336
+ },
337
+ "options": {
338
+ "type": "object",
339
+ "additionalProperties": true
340
+ }
341
+ }
342
+ },
343
+ "modifiers": {
344
+ "alias": "modifier",
345
+ "type": "array",
346
+ "items": {
347
+ "type": "string"
348
+ },
349
+ "description": "The table modifiers"
350
+ }
351
+ }
352
+ },
353
+ {
354
+ "type": "object",
355
+ "properties": {
356
+ "modifiers": {
357
+ "alias": "modifier",
358
+ "type": "array",
359
+ "items": {
360
+ "type": "string",
361
+ "enum": [
362
+ "navigation-back-header",
363
+ "without-title"
364
+ ]
365
+ },
366
+ "description": "The table modifiers"
367
+ },
368
+ "tableRootMethod": {
369
+ "$ref": "#/definitions/type"
370
+ },
371
+ "tableChildMethod": {
372
+ "$ref": "#/definitions/type"
373
+ }
374
+ }
375
+ }
376
+ ]
377
+ }
378
+ ],
379
+ "definitions": {
380
+ "type": {
381
+ "oneOf": [
382
+ {
383
+ "type": "string"
384
+ },
385
+ {
386
+ "type": "object",
387
+ "properties": {
388
+ "name": {
389
+ "type": "string"
390
+ },
391
+ "isTypeOnly": {
392
+ "type": "boolean"
393
+ },
394
+ "moduleSpecifier": {
395
+ "type": "string"
396
+ },
397
+ "namedImport": {
398
+ "type": "string"
399
+ },
400
+ "namespaceImport": {
401
+ "type": "string"
402
+ },
403
+ "defaultImport": {
404
+ "type": "string"
405
+ }
406
+ },
407
+ "required": [
408
+ "name"
409
+ ]
410
+ }
411
+ ]
412
+ },
413
+ "property": {
414
+ "oneOf": [
415
+ {
416
+ "type": "string"
417
+ },
418
+ {
419
+ "type": "object",
420
+ "properties": {
421
+ "name": {
422
+ "type": "string"
423
+ },
424
+ "type": {
425
+ "$ref": "#/definitions/type"
426
+ }
427
+ },
428
+ "required": [
429
+ "name"
430
+ ]
431
+ }
432
+ ],
433
+ "definitions": {
434
+ "type": {
435
+ "oneOf": [
436
+ {
437
+ "type": "string"
438
+ },
439
+ {
440
+ "type": "object",
441
+ "properties": {
442
+ "name": {
443
+ "type": "string"
444
+ },
445
+ "isTypeOnly": {
446
+ "type": "boolean"
447
+ },
448
+ "moduleSpecifier": {
449
+ "type": "string"
450
+ },
451
+ "namedImport": {
452
+ "type": "string"
453
+ },
454
+ "namespaceImport": {
455
+ "type": "string"
456
+ },
457
+ "defaultImport": {
458
+ "type": "string"
459
+ }
460
+ },
461
+ "required": [
462
+ "name"
463
+ ]
464
+ }
465
+ ]
466
+ }
467
+ }
468
+ },
469
+ "button": {
470
+ "type": "object",
471
+ "properties": {
472
+ "svgIcon": {
473
+ "type": "string"
474
+ },
475
+ "icon": {
476
+ "type": "string"
477
+ },
478
+ "directiveList": {
479
+ "type": "array",
480
+ "items": {
481
+ "$ref": "#/definitions/type"
482
+ }
483
+ },
484
+ "importList": {
485
+ "type": "array",
486
+ "items": {
487
+ "$ref": "#/definitions/type"
488
+ }
489
+ }
490
+ },
491
+ "definitions": {
492
+ "type": {
493
+ "oneOf": [
494
+ {
495
+ "type": "string"
496
+ },
497
+ {
498
+ "type": "object",
499
+ "properties": {
500
+ "name": {
501
+ "type": "string"
502
+ },
503
+ "isTypeOnly": {
504
+ "type": "boolean"
505
+ },
506
+ "moduleSpecifier": {
507
+ "type": "string"
508
+ },
509
+ "namedImport": {
510
+ "type": "string"
511
+ },
512
+ "namespaceImport": {
513
+ "type": "string"
514
+ },
515
+ "defaultImport": {
516
+ "type": "string"
517
+ }
518
+ },
519
+ "required": [
520
+ "name"
521
+ ]
522
+ }
523
+ ]
524
+ }
525
+ }
526
+ },
527
+ "upstream": {
528
+ "oneOf": [
529
+ {
530
+ "type": "object",
531
+ "properties": {
532
+ "kind": {
533
+ "type": "string",
534
+ "enum": [
535
+ "open-api"
536
+ ]
537
+ },
538
+ "operationId": {
539
+ "type": "string"
540
+ },
541
+ "scope": {
542
+ "type": "string"
543
+ },
544
+ "mapper": {
545
+ "type": "object",
546
+ "properties": {
547
+ "pageIndex": {
548
+ "type": "string"
549
+ },
550
+ "pageSize": {
551
+ "type": "string"
552
+ },
553
+ "sortBy": {
554
+ "type": "string"
555
+ },
556
+ "sortDirection": {
557
+ "type": "string"
558
+ },
559
+ "list": {
560
+ "type": "string"
561
+ },
562
+ "total": {
563
+ "type": "string"
564
+ },
565
+ "filter": {
566
+ "type": "object",
567
+ "properties": {
568
+ "eq": {
569
+ "type": "string"
570
+ },
571
+ "join": {
572
+ "type": "string"
573
+ }
574
+ }
575
+ }
576
+ }
577
+ }
578
+ },
579
+ "required": [
580
+ "kind",
581
+ "operationId"
582
+ ]
583
+ }
584
+ ]
585
+ }
586
+ }
587
+ }
@@ -0,0 +1,123 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "tree-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
+ "modifiers": {
104
+ "alias": "modifier",
105
+ "type": "array",
106
+ "items": {
107
+ "type": "string",
108
+ "enum": [
109
+ "navigation-back-header",
110
+ "without-title"
111
+ ]
112
+ },
113
+ "description": "The tree modifiers"
114
+ },
115
+ "fullTree": {
116
+ "type": "boolean",
117
+ "description": "Whether the tree should be a full tree",
118
+ "default": true
119
+ }
120
+ }
121
+ }
122
+ ]
123
+ }