@rxap/schematic-angular 16.2.0-dev.23 → 16.2.0-dev.25

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 (86) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +1 -1
  3. package/package.json +10 -10
  4. package/src/lib/accordion-identifier.d.ts +2 -2
  5. package/src/lib/accordion-identifier.js +2 -1
  6. package/src/lib/accordion-identifier.js.map +1 -1
  7. package/src/lib/coerce-tree-table-component.js +1 -5
  8. package/src/lib/coerce-tree-table-component.js.map +1 -1
  9. package/src/lib/data-grid-item.js +5 -3
  10. package/src/lib/data-grid-item.js.map +1 -1
  11. package/src/lib/form/control/autocomplete-table-select-form-control.js +11 -1
  12. package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -1
  13. package/src/lib/form/control/table-select-form-control.d.ts +3 -0
  14. package/src/lib/form/control/table-select-form-control.js +11 -1
  15. package/src/lib/form/control/table-select-form-control.js.map +1 -1
  16. package/src/lib/load-handlebars-template.d.ts +1 -0
  17. package/src/lib/load-handlebars-template.js +5 -1
  18. package/src/lib/load-handlebars-template.js.map +1 -1
  19. package/src/lib/minimum-table-options.d.ts +3 -0
  20. package/src/lib/minimum-table-options.js +8 -1
  21. package/src/lib/minimum-table-options.js.map +1 -1
  22. package/src/lib/table/table-filter-column-rule.js +2 -3
  23. package/src/lib/table/table-filter-column-rule.js.map +1 -1
  24. package/src/lib/table-column.d.ts +17 -1
  25. package/src/lib/table-column.js +38 -3
  26. package/src/lib/table-column.js.map +1 -1
  27. package/src/lib/tree-table-options.js +28 -3
  28. package/src/lib/tree-table-options.js.map +1 -1
  29. package/src/schema.json +242 -164
  30. package/src/schematics/accordion/accordion-component/schema.json +1427 -116
  31. package/src/schematics/accordion/accordion-item-component/schema.json +1427 -116
  32. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +72 -62
  33. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +3 -14
  34. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +1411 -166
  35. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +3 -64
  36. package/src/schematics/accordion/item/accordion-item-table-component/index.js +5 -16
  37. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  38. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +82 -74
  39. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +3 -26
  40. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +4 -29
  41. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  42. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +82 -74
  43. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +3 -26
  44. package/src/schematics/accordion-identifier.schema.json +1 -2
  45. package/src/schematics/accordion-item.schema.json +43 -50
  46. package/src/schematics/autocomplete-table-select-form-control.schema.json +1 -1
  47. package/src/schematics/base-accordion-item.schema.json +52 -0
  48. package/src/schematics/data-grid-accordion-item.schema.json +34 -0
  49. package/src/schematics/data-grid-component/index.js +8 -4
  50. package/src/schematics/data-grid-component/index.js.map +1 -1
  51. package/src/schematics/data-grid-component/schema.json +6 -7
  52. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +8 -6
  53. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -1
  54. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +2 -5
  55. package/src/schematics/form/control/input-form-control/schema.json +1 -4
  56. package/src/schematics/form/control/select-form-control/schema.json +1 -4
  57. package/src/schematics/form/control/table-select-form-control/index.js +8 -6
  58. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  59. package/src/schematics/form/control/table-select-form-control/schema.json +21 -4
  60. package/src/schematics/form/form-array/schema.json +22 -5
  61. package/src/schematics/form/form-component/schema.json +6 -7
  62. package/src/schematics/form/form-control/schema.json +22 -5
  63. package/src/schematics/form/form-definition/schema.json +22 -5
  64. package/src/schematics/form/form-group/schema.json +22 -5
  65. package/src/schematics/minimum-table.schema.json +6 -0
  66. package/src/schematics/property.schema.json +1 -4
  67. package/src/schematics/switch-accordion-item.schema.json +82 -0
  68. package/src/schematics/table/action/form-table-action/schema.json +6 -7
  69. package/src/schematics/table/header-button/form-table-header-button/schema.json +6 -7
  70. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +4 -4
  71. package/src/schematics/table/table-component/index.d.ts +0 -3
  72. package/src/schematics/table/table-component/index.js +2 -9
  73. package/src/schematics/table/table-component/index.js.map +1 -1
  74. package/src/schematics/table/table-component/schema.json +25 -5
  75. package/src/schematics/table/templates/default-table-column.hbs +4 -1
  76. package/src/schematics/table/templates/mat-column-def.hbs +3 -0
  77. package/src/schematics/table/templates/spinner-table-column.hbs +12 -0
  78. package/src/schematics/table/templates/tree-table-column.hbs +9 -0
  79. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +6 -31
  80. package/src/schematics/table/tree-table-component/index.js +3 -1
  81. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  82. package/src/schematics/table/tree-table-component/schema.json +25 -5
  83. package/src/schematics/table-accordion-item.schema.json +41 -0
  84. package/src/schematics/table-select-form-control.schema.json +6 -0
  85. package/src/schematics/tree-table-accordion-item.schema.json +41 -0
  86. package/src/template.schema.json +15 -0
@@ -22,189 +22,1479 @@
22
22
  }
23
23
  ],
24
24
  "definitions": {
25
+ "abstractControl": {
26
+ "allOf": [
27
+ {
28
+ "$ref": "#/definitions/property"
29
+ },
30
+ {
31
+ "type": "object",
32
+ "properties": {
33
+ "name": {
34
+ "type": "string",
35
+ "description": "The name of the control"
36
+ },
37
+ "isArray": {
38
+ "type": "boolean",
39
+ "description": "Whether the control value is an array",
40
+ "default": false
41
+ },
42
+ "state": {
43
+ "type": "string",
44
+ "description": "The initial state of the control"
45
+ },
46
+ "isRequired": {
47
+ "type": "boolean",
48
+ "description": "Whether the control value is required",
49
+ "default": false
50
+ },
51
+ "isReadonly": {
52
+ "type": "boolean",
53
+ "description": "Whether the control value is readonly",
54
+ "default": false
55
+ },
56
+ "isDisabled": {
57
+ "type": "boolean",
58
+ "description": "Whether the control value is disabled",
59
+ "default": false
60
+ },
61
+ "validatorList": {
62
+ "type": "array",
63
+ "items": {
64
+ "type": "string"
65
+ }
66
+ },
67
+ "kind": {
68
+ "type": "string",
69
+ "description": "The kind of the control",
70
+ "default": "default"
71
+ },
72
+ "importList": {
73
+ "type": "array",
74
+ "items": {
75
+ "$ref": "#/definitions/type"
76
+ }
77
+ },
78
+ "template": {
79
+ "type": "string",
80
+ "description": "The template of the control"
81
+ },
82
+ "role": {
83
+ "type": "string",
84
+ "description": "The role of the control",
85
+ "enum": [
86
+ "control",
87
+ "group",
88
+ "array"
89
+ ],
90
+ "default": "control"
91
+ }
92
+ },
93
+ "additionalProperties": true
94
+ }
95
+ ]
96
+ },
25
97
  "accordionIdentifier": {
26
98
  "type": "object",
27
99
  "properties": {
28
- "property": {
29
- "$ref": "#/definitions/property"
100
+ "property": {
101
+ "$ref": "#/definitions/property"
102
+ },
103
+ "source": {
104
+ "type": "string",
105
+ "enum": [
106
+ "route"
107
+ ]
108
+ }
109
+ },
110
+ "required": [
111
+ "property"
112
+ ]
113
+ },
114
+ "accordionItem": {
115
+ "oneOf": [
116
+ {
117
+ "allOf": [
118
+ {
119
+ "$ref": "#/definitions/baseAccordionItem"
120
+ },
121
+ {
122
+ "type": "object",
123
+ "properties": {
124
+ "kind": {
125
+ "type": "string",
126
+ "const": "default",
127
+ "default": "default"
128
+ }
129
+ }
130
+ }
131
+ ]
132
+ },
133
+ {
134
+ "$ref": "#/definitions/switchAccordionItem"
135
+ },
136
+ {
137
+ "$ref": "#/definitions/tableAccordionItem"
138
+ },
139
+ {
140
+ "$ref": "#/definitions/dataGridAccordionItem"
141
+ },
142
+ {
143
+ "$ref": "#/definitions/treeTableAccordionItem"
144
+ }
145
+ ]
146
+ },
147
+ "angular": {
148
+ "allOf": [
149
+ {
150
+ "$ref": "#/definitions/general"
151
+ },
152
+ {
153
+ "type": "object",
154
+ "properties": {
155
+ "componentName": {
156
+ "type": "string"
157
+ },
158
+ "name": {
159
+ "type": "string"
160
+ },
161
+ "context": {
162
+ "type": "string",
163
+ "description": "The context use to generate proper names for class, files, etc"
164
+ },
165
+ "nestModule": {
166
+ "type": "string",
167
+ "description": "The module name for the table nest operations"
168
+ },
169
+ "controllerName": {
170
+ "type": "string"
171
+ },
172
+ "backend": {
173
+ "$ref": "#/definitions/backend"
174
+ },
175
+ "directory": {
176
+ "type": "string",
177
+ "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"
178
+ },
179
+ "shared": {
180
+ "type": "boolean",
181
+ "description": "Whether the generated code is used across the project",
182
+ "default": false
183
+ },
184
+ "scope": {
185
+ "type": "string"
186
+ },
187
+ "prefix": {
188
+ "type": "string"
189
+ },
190
+ "openApi": {
191
+ "type": "object",
192
+ "additionalProperties": true
193
+ }
194
+ }
195
+ }
196
+ ]
197
+ },
198
+ "autocompleteTableSelectFormControl": {
199
+ "allOf": [
200
+ {
201
+ "$ref": "#/definitions/baseFormControl"
202
+ },
203
+ {
204
+ "type": "object",
205
+ "properties": {
206
+ "formField": {
207
+ "$ref": "#/definitions/formField"
208
+ },
209
+ "kind": {
210
+ "type": "string",
211
+ "const": "autocomplete-table-select"
212
+ },
213
+ "placeholder": {
214
+ "type": "string"
215
+ },
216
+ "columnList": {
217
+ "alias": "column",
218
+ "type": "array",
219
+ "items": {
220
+ "description": "table column name",
221
+ "type": "object",
222
+ "properties": {
223
+ "name": {
224
+ "type": "string",
225
+ "description": "table column name"
226
+ },
227
+ "title": {
228
+ "type": "string",
229
+ "description": "table column label"
230
+ },
231
+ "hasFilter": {
232
+ "type": "boolean",
233
+ "description": "Whether the column has a filter"
234
+ },
235
+ "kind": {
236
+ "type": "string",
237
+ "description": "The kind of data in the column"
238
+ }
239
+ }
240
+ },
241
+ "description": "List of table column names"
242
+ },
243
+ "title": {
244
+ "type": "string",
245
+ "description": "The title of the table select window"
246
+ },
247
+ "toDisplay": {
248
+ "type": "object",
249
+ "properties": {
250
+ "property": {
251
+ "$ref": "#/definitions/property"
252
+ }
253
+ }
254
+ },
255
+ "toValue": {
256
+ "type": "object",
257
+ "properties": {
258
+ "property": {
259
+ "$ref": "#/definitions/property"
260
+ }
261
+ }
262
+ },
263
+ "upstream": {
264
+ "$ref": "#/definitions/upstream"
265
+ },
266
+ "resolver": {
267
+ "type": "object",
268
+ "properties": {
269
+ "upstream": {
270
+ "$ref": "#/definitions/upstream"
271
+ }
272
+ }
273
+ }
274
+ }
275
+ }
276
+ ]
277
+ },
278
+ "backend": {
279
+ "type": "string",
280
+ "description": "The backend that should be used to handel data",
281
+ "enum": [
282
+ "none",
283
+ "nestjs",
284
+ "open-api",
285
+ "local"
286
+ ],
287
+ "default": "none"
288
+ },
289
+ "baseAccordionItem": {
290
+ "type": "object",
291
+ "properties": {
292
+ "name": {
293
+ "type": "string"
294
+ },
295
+ "kind": {
296
+ "type": "string"
297
+ },
298
+ "modifiers": {
299
+ "alias": "modifier",
300
+ "type": "array",
301
+ "items": {
302
+ "type": "string"
303
+ },
304
+ "description": "The modifiers to apply to the accordion item type"
305
+ },
306
+ "identifier": {
307
+ "$ref": "#/definitions/accordionIdentifier"
308
+ },
309
+ "title": {
310
+ "type": "string"
311
+ },
312
+ "description": {
313
+ "type": "string"
314
+ },
315
+ "upstream": {
316
+ "$ref": "#/definitions/upstream"
317
+ },
318
+ "propertyList": {
319
+ "alias": "property",
320
+ "type": "array",
321
+ "items": {
322
+ "$ref": "#/definitions/property"
323
+ }
324
+ }
325
+ },
326
+ "required": [
327
+ "name"
328
+ ]
329
+ },
330
+ "baseFormArray": {
331
+ "allOf": [
332
+ {
333
+ "$ref": "#/definitions/abstractControl"
334
+ },
335
+ {
336
+ "type": "object",
337
+ "properties": {
338
+ "controlList": {
339
+ "type": "array",
340
+ "description": "The list of controls in the group",
341
+ "items": {
342
+ "$ref": "#/definitions/control"
343
+ }
344
+ },
345
+ "legend": {
346
+ "type": "string"
347
+ },
348
+ "groupLegend": {
349
+ "type": "string"
350
+ },
351
+ "kind": {
352
+ "type": "string",
353
+ "description": "The kind of the array",
354
+ "const": "default",
355
+ "default": "default"
356
+ },
357
+ "role": {
358
+ "type": "string",
359
+ "const": "array"
360
+ }
361
+ }
362
+ }
363
+ ]
364
+ },
365
+ "baseFormControl": {
366
+ "allOf": [
367
+ {
368
+ "$ref": "#/definitions/abstractControl"
369
+ },
370
+ {
371
+ "type": "object",
372
+ "properties": {
373
+ "label": {
374
+ "type": "string",
375
+ "description": "The label of the control"
376
+ },
377
+ "role": {
378
+ "type": "string",
379
+ "const": "control"
380
+ }
381
+ }
382
+ }
383
+ ]
384
+ },
385
+ "baseFormGroup": {
386
+ "allOf": [
387
+ {
388
+ "$ref": "#/definitions/abstractControl"
389
+ },
390
+ {
391
+ "type": "object",
392
+ "properties": {
393
+ "controlList": {
394
+ "type": "array",
395
+ "description": "The list of controls in the group",
396
+ "items": {
397
+ "$ref": "#/definitions/control"
398
+ }
399
+ },
400
+ "legend": {
401
+ "type": "string"
402
+ },
403
+ "kind": {
404
+ "type": "string",
405
+ "description": "The kind of the group",
406
+ "const": "default",
407
+ "default": "default"
408
+ },
409
+ "role": {
410
+ "type": "string",
411
+ "const": "group"
412
+ }
413
+ }
414
+ }
415
+ ]
416
+ },
417
+ "button": {
418
+ "type": "object",
419
+ "properties": {
420
+ "svgIcon": {
421
+ "type": "string"
422
+ },
423
+ "icon": {
424
+ "type": "string"
425
+ },
426
+ "directiveList": {
427
+ "type": "array",
428
+ "items": {
429
+ "$ref": "#/definitions/type"
430
+ }
431
+ },
432
+ "importList": {
433
+ "type": "array",
434
+ "items": {
435
+ "$ref": "#/definitions/type"
436
+ }
437
+ }
438
+ }
439
+ },
440
+ "checkboxFormControl": {
441
+ "allOf": [
442
+ {
443
+ "$ref": "#/definitions/baseFormControl"
444
+ },
445
+ {
446
+ "type": "object",
447
+ "properties": {
448
+ "kind": {
449
+ "type": "string",
450
+ "const": "checkbox"
451
+ },
452
+ "labelPosition": {
453
+ "type": "string",
454
+ "enum": [
455
+ "before",
456
+ "after"
457
+ ]
458
+ }
459
+ }
460
+ }
461
+ ]
462
+ },
463
+ "control": {
464
+ "oneOf": [
465
+ {
466
+ "$ref": "#/definitions/formGroup"
467
+ },
468
+ {
469
+ "$ref": "#/definitions/formArray"
470
+ },
471
+ {
472
+ "$ref": "#/definitions/formControl"
473
+ }
474
+ ]
475
+ },
476
+ "cssClass": {
477
+ "oneOf": [
478
+ {
479
+ "type": "string"
480
+ },
481
+ {
482
+ "type": "array",
483
+ "items": {
484
+ "type": "string"
485
+ }
486
+ },
487
+ {
488
+ "type": "object",
489
+ "properties": {
490
+ "name": {
491
+ "type": "string"
492
+ }
493
+ }
494
+ },
495
+ {
496
+ "type": "array",
497
+ "items": {
498
+ "type": "object",
499
+ "properties": {
500
+ "name": {
501
+ "type": "string"
502
+ }
503
+ }
504
+ }
505
+ }
506
+ ]
507
+ },
508
+ "dataGrid": {
509
+ "type": "object",
510
+ "properties": {
511
+ "mode": {
512
+ "type": "string",
513
+ "description": "The mode of the form",
514
+ "enum": [
515
+ "form",
516
+ "plain"
517
+ ]
518
+ },
519
+ "collection": {
520
+ "type": "boolean",
521
+ "description": "Whether the data grid is used as collection."
522
+ },
523
+ "title": {
524
+ "type": "string",
525
+ "description": "The title of the data grid card component"
526
+ },
527
+ "subtitle": {
528
+ "type": "string",
529
+ "description": "The subtitle of the data grid card component"
530
+ },
531
+ "itemList": {
532
+ "alias": "item",
533
+ "type": "array",
534
+ "items": {
535
+ "$ref": "#/definitions/dataGridItem"
536
+ }
537
+ },
538
+ "inCard": {
539
+ "type": "boolean",
540
+ "description": "Whether the data grid is used in a card.",
541
+ "default": true
542
+ },
543
+ "upstream": {
544
+ "$ref": "#/definitions/upstream"
545
+ },
546
+ "propertyList": {
547
+ "alias": "property",
548
+ "type": "array",
549
+ "items": {
550
+ "$ref": "#/definitions/property"
551
+ }
552
+ },
553
+ "identifier": {
554
+ "$ref": "#/definitions/accordionIdentifier"
555
+ }
556
+ }
557
+ },
558
+ "dataGridAccordionItem": {
559
+ "allOf": [
560
+ {
561
+ "$ref": "#/definitions/baseAccordionItem"
562
+ },
563
+ {
564
+ "type": "object",
565
+ "properties": {
566
+ "kind": {
567
+ "type": "string",
568
+ "const": "data-grid"
569
+ }
570
+ }
571
+ },
572
+ {
573
+ "type": "object",
574
+ "properties": {
575
+ "dataGrid": {
576
+ "$ref": "#/definitions/dataGrid"
577
+ }
578
+ }
579
+ }
580
+ ]
581
+ },
582
+ "dataGridItem": {
583
+ "type": "object",
584
+ "properties": {
585
+ "name": {
586
+ "type": "string",
587
+ "description": "The name of the data grid item"
588
+ },
589
+ "header": {
590
+ "type": "string",
591
+ "description": "The name of the control"
592
+ },
593
+ "pipeList": {
594
+ "type": "array",
595
+ "items": {
596
+ "$ref": "#/definitions/pipe"
597
+ }
598
+ },
599
+ "formControl": {
600
+ "$ref": "#/definitions/control"
601
+ },
602
+ "template": {
603
+ "type": "string"
604
+ },
605
+ "kind": {
606
+ "type": "string",
607
+ "enum": [
608
+ "default",
609
+ "link"
610
+ ],
611
+ "default": "default"
612
+ },
613
+ "type": {
614
+ "$ref": "#/definitions/type"
615
+ },
616
+ "isArray": {
617
+ "type": "boolean"
618
+ }
619
+ },
620
+ "required": [
621
+ "name"
622
+ ]
623
+ },
624
+ "formArray": {
625
+ "allOf": [
626
+ {
627
+ "type": "object",
628
+ "properties": {
629
+ "role": {
630
+ "type": "string",
631
+ "const": "array"
632
+ }
633
+ }
634
+ },
635
+ {
636
+ "oneOf": [
637
+ {
638
+ "allOf": [
639
+ {
640
+ "$ref": "#/definitions/baseFormArray"
641
+ },
642
+ {
643
+ "type": "object",
644
+ "properties": {
645
+ "kind": {
646
+ "type": "string",
647
+ "const": "default"
648
+ }
649
+ }
650
+ }
651
+ ]
652
+ }
653
+ ]
654
+ }
655
+ ]
656
+ },
657
+ "formControl": {
658
+ "allOf": [
659
+ {
660
+ "type": "object",
661
+ "properties": {
662
+ "role": {
663
+ "type": "string",
664
+ "const": "control",
665
+ "default": "control"
666
+ }
667
+ }
668
+ },
669
+ {
670
+ "oneOf": [
671
+ {
672
+ "allOf": [
673
+ {
674
+ "$ref": "#/definitions/baseFormControl"
675
+ },
676
+ {
677
+ "type": "object",
678
+ "properties": {
679
+ "kind": {
680
+ "type": "string",
681
+ "const": "default"
682
+ }
683
+ }
684
+ }
685
+ ]
686
+ },
687
+ {
688
+ "$ref": "#/definitions/inputFormControl"
689
+ },
690
+ {
691
+ "$ref": "#/definitions/selectFormControl"
692
+ },
693
+ {
694
+ "$ref": "#/definitions/checkboxFormControl"
695
+ },
696
+ {
697
+ "$ref": "#/definitions/textareaFormControl"
698
+ },
699
+ {
700
+ "$ref": "#/definitions/tableSelectFormControl"
701
+ },
702
+ {
703
+ "$ref": "#/definitions/slideToggleFormControl"
704
+ },
705
+ {
706
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
707
+ }
708
+ ]
709
+ }
710
+ ]
711
+ },
712
+ "formField": {
713
+ "type": "object",
714
+ "properties": {
715
+ "label": {
716
+ "type": "string"
717
+ },
718
+ "prefixButton": {
719
+ "$ref": "#/definitions/button"
720
+ },
721
+ "suffixButton": {
722
+ "$ref": "#/definitions/button"
723
+ },
724
+ "hasClearButton": {
725
+ "type": "boolean"
726
+ }
727
+ }
728
+ },
729
+ "formGroup": {
730
+ "allOf": [
731
+ {
732
+ "type": "object",
733
+ "properties": {
734
+ "role": {
735
+ "type": "string",
736
+ "const": "group"
737
+ }
738
+ }
739
+ },
740
+ {
741
+ "oneOf": [
742
+ {
743
+ "allOf": [
744
+ {
745
+ "$ref": "#/definitions/baseFormGroup"
746
+ },
747
+ {
748
+ "type": "object",
749
+ "properties": {
750
+ "kind": {
751
+ "type": "string",
752
+ "const": "default"
753
+ }
754
+ }
755
+ }
756
+ ]
757
+ }
758
+ ]
759
+ }
760
+ ]
761
+ },
762
+ "general": {
763
+ "type": "object",
764
+ "properties": {
765
+ "project": {
766
+ "type": "string",
767
+ "description": "Project name where the files should be generated"
768
+ },
769
+ "feature": {
770
+ "type": "string",
771
+ "description": "Feature name where the files should be generated"
772
+ },
773
+ "overwrite": {
774
+ "anyOf": [
775
+ {
776
+ "type": "boolean"
777
+ },
778
+ {
779
+ "type": "array",
780
+ "items": {
781
+ "type": "string"
782
+ }
783
+ }
784
+ ],
785
+ "description": "Overwrite existing files",
786
+ "default": false
787
+ },
788
+ "overwriteHtml": {
789
+ "type": "boolean",
790
+ "default": false
791
+ },
792
+ "replace": {
793
+ "type": "boolean",
794
+ "default": false
795
+ }
796
+ }
797
+ },
798
+ "headerButton": {
799
+ "type": "object",
800
+ "properties": {
801
+ "permission": {
802
+ "type": "string"
803
+ },
804
+ "icon": {
805
+ "type": "string"
806
+ },
807
+ "svgIcon": {
808
+ "type": "string"
809
+ },
810
+ "refresh": {
811
+ "type": "boolean",
812
+ "description": "Whether the table action should refresh the table after execution",
813
+ "default": false
814
+ },
815
+ "confirm": {
816
+ "type": "boolean",
817
+ "description": "Whether the table action should confirm before execution",
818
+ "default": false
819
+ },
820
+ "tooltip": {
821
+ "type": "string",
822
+ "description": "The tooltip for the table action"
823
+ },
824
+ "errorMessage": {
825
+ "type": "string",
826
+ "description": "The error message for the table action"
827
+ },
828
+ "successMessage": {
829
+ "type": "string",
830
+ "description": "The success message for the table action"
831
+ },
832
+ "options": {
833
+ "type": "object",
834
+ "additionalProperties": true
835
+ }
836
+ }
837
+ },
838
+ "inputFormControl": {
839
+ "allOf": [
840
+ {
841
+ "$ref": "#/definitions/baseFormControl"
842
+ },
843
+ {
844
+ "type": "object",
845
+ "properties": {
846
+ "kind": {
847
+ "type": "string",
848
+ "const": "input"
849
+ },
850
+ "formField": {
851
+ "$ref": "#/definitions/formField"
852
+ },
853
+ "inputType": {
854
+ "type": "string",
855
+ "enum": [
856
+ "text",
857
+ "password",
858
+ "email",
859
+ "number",
860
+ "tel",
861
+ "url",
862
+ "checkbox",
863
+ "color",
864
+ "date",
865
+ "time",
866
+ "datetime-local",
867
+ "file",
868
+ "hidden",
869
+ "image",
870
+ "month",
871
+ "radio",
872
+ "reset",
873
+ "button",
874
+ "search",
875
+ "submit",
876
+ "week",
877
+ "range"
878
+ ]
879
+ },
880
+ "placeholder": {
881
+ "type": "string"
882
+ }
883
+ }
884
+ }
885
+ ]
886
+ },
887
+ "minimumTable": {
888
+ "type": "object",
889
+ "properties": {
890
+ "propertyList": {
891
+ "alias": "property",
892
+ "type": "array",
893
+ "items": {
894
+ "$ref": "#/definitions/property"
895
+ }
896
+ },
897
+ "upstream": {
898
+ "$ref": "#/definitions/upstream"
899
+ },
900
+ "columnList": {
901
+ "alias": "column",
902
+ "type": "array",
903
+ "items": {
904
+ "$ref": "#/definitions/tableColumn"
905
+ },
906
+ "description": "List of table column names"
907
+ },
908
+ "actionList": {
909
+ "alias": "action",
910
+ "type": "array",
911
+ "items": {
912
+ "$ref": "#/definitions/tableAction"
913
+ }
914
+ },
915
+ "headerButton": {
916
+ "$ref": "#/definitions/headerButton"
917
+ },
918
+ "modifiers": {
919
+ "alias": "modifier",
920
+ "type": "array",
921
+ "items": {
922
+ "type": "string"
923
+ },
924
+ "description": "The table modifiers"
925
+ },
926
+ "cssClass": {
927
+ "$ref": "#/definitions/cssClass"
928
+ },
929
+ "identifier": {
930
+ "$ref": "#/definitions/accordionIdentifier"
931
+ }
932
+ }
933
+ },
934
+ "pipe": {
935
+ "oneOf": [
936
+ {
937
+ "type": "string"
938
+ },
939
+ {
940
+ "allOf": [
941
+ {
942
+ "$ref": "#/definitions/type"
943
+ },
944
+ {
945
+ "type": "object",
946
+ "properties": {
947
+ "argumentList": {
948
+ "type": "array",
949
+ "items": {
950
+ "$ref": "#/definitions/value"
951
+ }
952
+ }
953
+ },
954
+ "required": [
955
+ "name"
956
+ ]
957
+ }
958
+ ]
959
+ }
960
+ ]
961
+ },
962
+ "property": {
963
+ "oneOf": [
964
+ {
965
+ "type": "string"
966
+ },
967
+ {
968
+ "type": "object",
969
+ "properties": {
970
+ "name": {
971
+ "type": "string"
972
+ },
973
+ "type": {
974
+ "$ref": "#/definitions/type"
975
+ },
976
+ "isArray": {
977
+ "type": "boolean"
978
+ }
979
+ }
980
+ }
981
+ ]
982
+ },
983
+ "selectFormControl": {
984
+ "allOf": [
985
+ {
986
+ "$ref": "#/definitions/baseFormControl"
987
+ },
988
+ {
989
+ "type": "object",
990
+ "properties": {
991
+ "formField": {
992
+ "$ref": "#/definitions/formField"
993
+ },
994
+ "kind": {
995
+ "type": "string",
996
+ "const": "select"
997
+ },
998
+ "optionList": {
999
+ "type": "array",
1000
+ "items": {
1001
+ "type": "object",
1002
+ "properties": {
1003
+ "display": {
1004
+ "type": "string"
1005
+ },
1006
+ "value": {
1007
+ "oneOf": [
1008
+ {
1009
+ "type": "string"
1010
+ },
1011
+ {
1012
+ "type": "number"
1013
+ },
1014
+ {
1015
+ "type": "boolean"
1016
+ },
1017
+ {
1018
+ "type": "object",
1019
+ "additionalProperties": true
1020
+ }
1021
+ ]
1022
+ }
1023
+ }
1024
+ }
1025
+ },
1026
+ "backend": {
1027
+ "$ref": "#/definitions/backend"
1028
+ },
1029
+ "multiple": {
1030
+ "alias": "multi",
1031
+ "type": "boolean",
1032
+ "description": "Whether the select form control is multiple mode"
1033
+ }
1034
+ }
1035
+ }
1036
+ ]
1037
+ },
1038
+ "slideToggleFormControl": {
1039
+ "allOf": [
1040
+ {
1041
+ "$ref": "#/definitions/baseFormControl"
1042
+ },
1043
+ {
1044
+ "type": "object",
1045
+ "properties": {
1046
+ "kind": {
1047
+ "type": "string",
1048
+ "const": "slide-toggle"
1049
+ },
1050
+ "labelPosition": {
1051
+ "type": "string",
1052
+ "enum": [
1053
+ "before",
1054
+ "after"
1055
+ ]
1056
+ }
1057
+ }
1058
+ }
1059
+ ]
1060
+ },
1061
+ "switchAccordionItem": {
1062
+ "allOf": [
1063
+ {
1064
+ "$ref": "#/definitions/baseAccordionItem"
1065
+ },
1066
+ {
1067
+ "type": "object",
1068
+ "properties": {
1069
+ "kind": {
1070
+ "type": "string",
1071
+ "const": "switch"
1072
+ },
1073
+ "switch": {
1074
+ "type": "object",
1075
+ "properties": {
1076
+ "property": {
1077
+ "$ref": "#/definitions/property"
1078
+ },
1079
+ "defaultCase": {
1080
+ "type": "object",
1081
+ "properties": {
1082
+ "itemList": {
1083
+ "alias": "item",
1084
+ "type": "array",
1085
+ "items": {
1086
+ "$ref": "#/definitions/accordionItem"
1087
+ },
1088
+ "description": "The list of accordion expansion panels"
1089
+ }
1090
+ },
1091
+ "required": [
1092
+ "itemList"
1093
+ ]
1094
+ },
1095
+ "case": {
1096
+ "type": "array",
1097
+ "items": {
1098
+ "type": "object",
1099
+ "properties": {
1100
+ "test": {
1101
+ "anyOf": [
1102
+ {
1103
+ "type": "string"
1104
+ },
1105
+ {
1106
+ "type": "number"
1107
+ },
1108
+ {
1109
+ "type": "boolean"
1110
+ }
1111
+ ]
1112
+ },
1113
+ "itemList": {
1114
+ "alias": "item",
1115
+ "type": "array",
1116
+ "items": {
1117
+ "$ref": "#/definitions/accordionItem"
1118
+ },
1119
+ "description": "The list of accordion expansion panels"
1120
+ }
1121
+ },
1122
+ "required": [
1123
+ "test",
1124
+ "itemList"
1125
+ ]
1126
+ }
1127
+ }
1128
+ },
1129
+ "required": [
1130
+ "property"
1131
+ ]
1132
+ }
1133
+ }
1134
+ }
1135
+ ]
1136
+ },
1137
+ "table": {
1138
+ "allOf": [
1139
+ {
1140
+ "$ref": "#/definitions/minimumTable"
1141
+ },
1142
+ {
1143
+ "type": "object",
1144
+ "properties": {
1145
+ "tableMethod": {
1146
+ "$ref": "#/definitions/type"
1147
+ },
1148
+ "openApi": {
1149
+ "type": "object",
1150
+ "properties": {
1151
+ "operationId": {
1152
+ "type": "string",
1153
+ "description": "The operationId for the open api operation"
1154
+ },
1155
+ "adapter": {
1156
+ "$ref": "#/definitions/type"
1157
+ }
1158
+ },
1159
+ "required": [
1160
+ "operationId"
1161
+ ]
1162
+ },
1163
+ "modifiers": {
1164
+ "alias": "modifier",
1165
+ "type": "array",
1166
+ "items": {
1167
+ "type": "string",
1168
+ "enum": [
1169
+ "navigation-back-header",
1170
+ "without-title",
1171
+ "show-archived-slide"
1172
+ ]
1173
+ },
1174
+ "description": "The table modifiers"
1175
+ },
1176
+ "selectColumn": {
1177
+ "type": "boolean",
1178
+ "description": "Whether to add a select column to the table"
1179
+ }
1180
+ }
1181
+ }
1182
+ ]
1183
+ },
1184
+ "tableAccordionItem": {
1185
+ "allOf": [
1186
+ {
1187
+ "$ref": "#/definitions/baseAccordionItem"
1188
+ },
1189
+ {
1190
+ "type": "object",
1191
+ "properties": {
1192
+ "kind": {
1193
+ "type": "string",
1194
+ "const": "table"
1195
+ },
1196
+ "modifiers": {
1197
+ "alias": "modifier",
1198
+ "type": "array",
1199
+ "items": {
1200
+ "type": "string",
1201
+ "enum": [
1202
+ "navigation-back-header",
1203
+ "without-title"
1204
+ ]
1205
+ },
1206
+ "description": "The table modifiers"
1207
+ },
1208
+ "table": {
1209
+ "$ref": "#/definitions/table"
1210
+ }
1211
+ }
1212
+ }
1213
+ ]
1214
+ },
1215
+ "tableAction": {
1216
+ "type": "object",
1217
+ "properties": {
1218
+ "type": {
1219
+ "type": "string"
30
1220
  },
31
- "source": {
1221
+ "refresh": {
1222
+ "type": "boolean"
1223
+ },
1224
+ "confirm": {
1225
+ "type": "boolean"
1226
+ },
1227
+ "tooltip": {
1228
+ "type": "string"
1229
+ },
1230
+ "errorMessage": {
1231
+ "type": "string"
1232
+ },
1233
+ "successMessage": {
1234
+ "type": "string"
1235
+ },
1236
+ "priority": {
1237
+ "type": "number"
1238
+ },
1239
+ "checkFunction": {
1240
+ "type": "string"
1241
+ },
1242
+ "inHeader": {
1243
+ "type": "boolean"
1244
+ },
1245
+ "role": {
1246
+ "type": "string"
1247
+ },
1248
+ "icon": {
1249
+ "type": "string"
1250
+ },
1251
+ "svgIcon": {
1252
+ "type": "string"
1253
+ },
1254
+ "permission": {
1255
+ "type": "string"
1256
+ },
1257
+ "color": {
32
1258
  "type": "string",
33
- "enum": [
34
- "route"
35
- ],
36
- "default": "route"
1259
+ "description": "Value for the color input of the mat-button / mat-icon component"
1260
+ },
1261
+ "cssClass": {
1262
+ "$ref": "#/definitions/cssClass"
1263
+ },
1264
+ "options": {
1265
+ "type": "object",
1266
+ "additionalProperties": true
37
1267
  }
38
1268
  },
39
1269
  "required": [
40
- "property"
1270
+ "type"
41
1271
  ]
42
1272
  },
43
- "accordionItem": {
1273
+ "tableColumn": {
44
1274
  "type": "object",
45
1275
  "properties": {
1276
+ "name": {
1277
+ "type": "string"
1278
+ },
1279
+ "type": {
1280
+ "$ref": "#/definitions/type"
1281
+ },
46
1282
  "kind": {
47
- "type": "string",
48
- "enum": [
49
- "default",
50
- "table",
51
- "data-grid",
52
- "data-grid-collection",
53
- "tree-table",
54
- "switch"
55
- ],
56
- "description": "The type of the accordion item",
57
- "default": "panel"
1283
+ "type": "string"
58
1284
  },
59
1285
  "modifiers": {
60
- "alias": "modifier",
61
1286
  "type": "array",
62
1287
  "items": {
63
1288
  "type": "string"
64
- },
65
- "description": "The modifiers to apply to the accordion item type"
1289
+ }
66
1290
  },
67
- "identifier": {
68
- "$ref": "#/definitions/accordionIdentifier"
1291
+ "template": {
1292
+ "type": "string"
1293
+ },
1294
+ "pipeList": {
1295
+ "type": "array",
1296
+ "items": {
1297
+ "$ref": "#/definitions/pipe"
1298
+ }
1299
+ },
1300
+ "hasFilter": {
1301
+ "type": "boolean"
1302
+ },
1303
+ "nowrap": {
1304
+ "type": "boolean"
1305
+ },
1306
+ "cssClass": {
1307
+ "$ref": "#/definitions/cssClass"
69
1308
  },
70
1309
  "title": {
71
1310
  "type": "string"
72
1311
  },
73
- "description": {
1312
+ "propertyPath": {
74
1313
  "type": "string"
75
1314
  },
76
- "upstream": {
77
- "$ref": "#/definitions/upstream"
1315
+ "hidden": {
1316
+ "type": "boolean"
78
1317
  },
79
- "propertyList": {
80
- "alias": "property",
81
- "type": "array",
82
- "items": {
83
- "$ref": "#/definitions/property"
84
- }
1318
+ "active": {
1319
+ "type": "boolean"
1320
+ },
1321
+ "inactive": {
1322
+ "type": "boolean"
1323
+ },
1324
+ "show": {
1325
+ "type": "boolean"
1326
+ },
1327
+ "filterControl": {
1328
+ "$ref": "#/definitions/formControl"
85
1329
  }
86
1330
  },
87
- "additionalProperties": true
1331
+ "required": [
1332
+ "name"
1333
+ ]
88
1334
  },
89
- "angular": {
1335
+ "tableSelectFormControl": {
90
1336
  "allOf": [
91
1337
  {
92
- "$ref": "#/definitions/general"
1338
+ "$ref": "#/definitions/baseFormControl"
93
1339
  },
94
1340
  {
95
1341
  "type": "object",
96
1342
  "properties": {
97
- "componentName": {
98
- "type": "string"
1343
+ "formField": {
1344
+ "$ref": "#/definitions/formField"
99
1345
  },
100
- "name": {
101
- "type": "string"
102
- },
103
- "context": {
104
- "type": "string",
105
- "description": "The context use to generate proper names for class, files, etc"
106
- },
107
- "nestModule": {
1346
+ "kind": {
108
1347
  "type": "string",
109
- "description": "The module name for the table nest operations"
1348
+ "const": "table-select"
110
1349
  },
111
- "controllerName": {
1350
+ "placeholder": {
112
1351
  "type": "string"
113
1352
  },
114
- "backend": {
115
- "$ref": "#/definitions/backend"
1353
+ "columnList": {
1354
+ "alias": "column",
1355
+ "type": "array",
1356
+ "items": {
1357
+ "description": "table column name",
1358
+ "type": "object",
1359
+ "properties": {
1360
+ "name": {
1361
+ "type": "string",
1362
+ "description": "table column name"
1363
+ },
1364
+ "title": {
1365
+ "type": "string",
1366
+ "description": "table column label"
1367
+ },
1368
+ "hasFilter": {
1369
+ "type": "boolean",
1370
+ "description": "Whether the column has a filter"
1371
+ },
1372
+ "kind": {
1373
+ "type": "string",
1374
+ "description": "The kind of data in the column"
1375
+ }
1376
+ }
1377
+ },
1378
+ "description": "List of table column names"
116
1379
  },
117
- "directory": {
1380
+ "title": {
118
1381
  "type": "string",
119
- "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"
1382
+ "description": "The title of the table select window"
120
1383
  },
121
- "shared": {
122
- "type": "boolean",
123
- "description": "Whether the generated code is used across the project",
124
- "default": false
1384
+ "toDisplay": {
1385
+ "type": "object",
1386
+ "properties": {
1387
+ "property": {
1388
+ "$ref": "#/definitions/property"
1389
+ }
1390
+ }
125
1391
  },
126
- "scope": {
127
- "type": "string"
1392
+ "toValue": {
1393
+ "type": "object",
1394
+ "properties": {
1395
+ "property": {
1396
+ "$ref": "#/definitions/property"
1397
+ }
1398
+ }
128
1399
  },
129
- "prefix": {
130
- "type": "string"
1400
+ "upstream": {
1401
+ "$ref": "#/definitions/upstream"
131
1402
  },
132
- "openApi": {
1403
+ "resolver": {
133
1404
  "type": "object",
134
- "additionalProperties": true
1405
+ "properties": {
1406
+ "upstream": {
1407
+ "$ref": "#/definitions/upstream"
1408
+ }
1409
+ }
1410
+ },
1411
+ "identifier": {
1412
+ "$ref": "#/definitions/accordionIdentifier"
135
1413
  }
136
1414
  }
137
1415
  }
138
1416
  ]
139
1417
  },
140
- "backend": {
141
- "type": "string",
142
- "description": "The backend that should be used to handel data",
143
- "enum": [
144
- "none",
145
- "nestjs",
146
- "open-api",
147
- "local"
148
- ],
149
- "default": "none"
150
- },
151
- "general": {
152
- "type": "object",
153
- "properties": {
154
- "project": {
155
- "type": "string",
156
- "description": "Project name where the files should be generated"
157
- },
158
- "feature": {
159
- "type": "string",
160
- "description": "Feature name where the files should be generated"
1418
+ "textareaFormControl": {
1419
+ "allOf": [
1420
+ {
1421
+ "$ref": "#/definitions/baseFormControl"
161
1422
  },
162
- "overwrite": {
163
- "anyOf": [
164
- {
165
- "type": "boolean"
1423
+ {
1424
+ "type": "object",
1425
+ "properties": {
1426
+ "formField": {
1427
+ "$ref": "#/definitions/formField"
166
1428
  },
167
- {
1429
+ "kind": {
1430
+ "type": "string",
1431
+ "const": "textarea"
1432
+ },
1433
+ "placeholder": {
1434
+ "type": "string"
1435
+ }
1436
+ }
1437
+ }
1438
+ ]
1439
+ },
1440
+ "treeTable": {
1441
+ "allOf": [
1442
+ {
1443
+ "$ref": "#/definitions/minimumTable"
1444
+ },
1445
+ {
1446
+ "type": "object",
1447
+ "properties": {
1448
+ "modifiers": {
1449
+ "alias": "modifier",
168
1450
  "type": "array",
169
1451
  "items": {
170
- "type": "string"
171
- }
1452
+ "type": "string",
1453
+ "enum": [
1454
+ "navigation-back-header",
1455
+ "without-title"
1456
+ ]
1457
+ },
1458
+ "description": "The table modifiers"
1459
+ },
1460
+ "tableRootMethod": {
1461
+ "$ref": "#/definitions/type"
1462
+ },
1463
+ "tableChildMethod": {
1464
+ "$ref": "#/definitions/type"
172
1465
  }
173
- ],
174
- "description": "Overwrite existing files",
175
- "default": false
176
- },
177
- "overwriteHtml": {
178
- "type": "boolean",
179
- "default": false
180
- },
181
- "replace": {
182
- "type": "boolean",
183
- "default": false
1466
+ }
184
1467
  }
185
- }
1468
+ ]
186
1469
  },
187
- "property": {
188
- "oneOf": [
1470
+ "treeTableAccordionItem": {
1471
+ "allOf": [
189
1472
  {
190
- "type": "string"
1473
+ "$ref": "#/definitions/baseAccordionItem"
191
1474
  },
192
1475
  {
193
1476
  "type": "object",
194
1477
  "properties": {
195
- "name": {
196
- "type": "string"
1478
+ "kind": {
1479
+ "type": "string",
1480
+ "const": "tree-table"
197
1481
  },
198
- "type": {
199
- "$ref": "#/definitions/type"
1482
+ "modifiers": {
1483
+ "alias": "modifier",
1484
+ "type": "array",
1485
+ "items": {
1486
+ "type": "string",
1487
+ "enum": [
1488
+ "navigation-back-header",
1489
+ "without-title"
1490
+ ]
1491
+ },
1492
+ "description": "The table modifiers"
200
1493
  },
201
- "isArray": {
202
- "type": "boolean"
1494
+ "table": {
1495
+ "$ref": "#/definitions/treeTable"
203
1496
  }
204
- },
205
- "required": [
206
- "name"
207
- ]
1497
+ }
208
1498
  }
209
1499
  ]
210
1500
  },
@@ -299,6 +1589,27 @@
299
1589
  ]
300
1590
  }
301
1591
  ]
1592
+ },
1593
+ "value": {
1594
+ "oneOf": [
1595
+ {
1596
+ "type": "string"
1597
+ },
1598
+ {
1599
+ "type": "object",
1600
+ "properties": {
1601
+ "type": {
1602
+ "$ref": "#/definitions/type"
1603
+ },
1604
+ "value": {
1605
+ "type": "string"
1606
+ }
1607
+ },
1608
+ "required": [
1609
+ "value"
1610
+ ]
1611
+ }
1612
+ ]
302
1613
  }
303
1614
  }
304
1615
  }