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