@rxap/schematic-angular 16.2.0-dev.22 → 16.2.0-dev.24

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 (103) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/README.md +1 -1
  3. package/package.json +13 -13
  4. package/src/lib/accordion-header.js +7 -4
  5. package/src/lib/accordion-header.js.map +1 -1
  6. package/src/lib/accordion-identifier.d.ts +2 -2
  7. package/src/lib/accordion-identifier.js +2 -1
  8. package/src/lib/accordion-identifier.js.map +1 -1
  9. package/src/lib/accordion-item.js +17 -17
  10. package/src/lib/accordion-item.js.map +1 -1
  11. package/src/lib/coerce-form-component.js +3 -2
  12. package/src/lib/coerce-form-component.js.map +1 -1
  13. package/src/lib/css-class.d.ts +8 -0
  14. package/src/lib/css-class.js +28 -0
  15. package/src/lib/css-class.js.map +1 -0
  16. package/src/lib/data-grid-item.js +15 -10
  17. package/src/lib/data-grid-item.js.map +1 -1
  18. package/src/lib/form/control/autocomplete-table-select-form-control.js +11 -1
  19. package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -1
  20. package/src/lib/form/control/table-select-form-control.d.ts +3 -0
  21. package/src/lib/form/control/table-select-form-control.js +11 -1
  22. package/src/lib/form/control/table-select-form-control.js.map +1 -1
  23. package/src/lib/load-handlebars-template.d.ts +1 -0
  24. package/src/lib/load-handlebars-template.js +5 -1
  25. package/src/lib/load-handlebars-template.js.map +1 -1
  26. package/src/lib/minimum-table-options.d.ts +6 -0
  27. package/src/lib/minimum-table-options.js +9 -0
  28. package/src/lib/minimum-table-options.js.map +1 -1
  29. package/src/lib/table/table-filter-column-rule.js +2 -3
  30. package/src/lib/table/table-filter-column-rule.js.map +1 -1
  31. package/src/lib/table-action.js.map +1 -1
  32. package/src/lib/table-column.d.ts +3 -1
  33. package/src/lib/table-column.js +7 -3
  34. package/src/lib/table-column.js.map +1 -1
  35. package/src/lib/table-row-action.d.ts +4 -2
  36. package/src/lib/table-row-action.js +8 -7
  37. package/src/lib/table-row-action.js.map +1 -1
  38. package/src/schema.json +279 -167
  39. package/src/schematics/accordion/accordion-component/schema.json +1427 -116
  40. package/src/schematics/accordion/accordion-item-component/schema.json +1427 -116
  41. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +72 -62
  42. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +3 -14
  43. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +1411 -166
  44. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +3 -64
  45. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +119 -77
  46. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +3 -26
  47. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +119 -77
  48. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +3 -26
  49. package/src/schematics/accordion-identifier.schema.json +1 -2
  50. package/src/schematics/accordion-item.schema.json +43 -50
  51. package/src/schematics/autocomplete-table-select-form-control.schema.json +1 -1
  52. package/src/schematics/base-accordion-item.schema.json +52 -0
  53. package/src/schematics/css-class.schema.json +34 -0
  54. package/src/schematics/data-grid-accordion-item.schema.json +34 -0
  55. package/src/schematics/data-grid-component/index.js +9 -4
  56. package/src/schematics/data-grid-component/index.js.map +1 -1
  57. package/src/schematics/data-grid-component/schema.json +6 -7
  58. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +8 -6
  59. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -1
  60. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +2 -5
  61. package/src/schematics/form/control/input-form-control/schema.json +1 -4
  62. package/src/schematics/form/control/select-form-control/schema.json +1 -4
  63. package/src/schematics/form/control/table-select-form-control/index.js +8 -6
  64. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  65. package/src/schematics/form/control/table-select-form-control/schema.json +21 -4
  66. package/src/schematics/form/form-array/schema.json +22 -5
  67. package/src/schematics/form/form-component/schema.json +6 -7
  68. package/src/schematics/form/form-control/schema.json +22 -5
  69. package/src/schematics/form/form-definition/schema.json +22 -5
  70. package/src/schematics/form/form-group/schema.json +22 -5
  71. package/src/schematics/minimum-table.schema.json +12 -0
  72. package/src/schematics/property.schema.json +1 -4
  73. package/src/schematics/switch-accordion-item.schema.json +82 -0
  74. package/src/schematics/table/action/dialog-table-action/schema.json +33 -2
  75. package/src/schematics/table/action/form-table-action/schema.json +39 -9
  76. package/src/schematics/table/action/navigation-table-action/schema.json +33 -2
  77. package/src/schematics/table/action/open-api-table-action/schema.json +33 -2
  78. package/src/schematics/table/action/operation-table-action/schema.json +33 -2
  79. package/src/schematics/table/header-button/form-table-header-button/schema.json +6 -7
  80. package/src/schematics/table/table-action/schema.json +33 -2
  81. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +11 -9
  82. package/src/schematics/table/table-component/index.d.ts +0 -3
  83. package/src/schematics/table/table-component/index.js +2 -9
  84. package/src/schematics/table/table-component/index.js.map +1 -1
  85. package/src/schematics/table/table-component/schema.json +62 -8
  86. package/src/schematics/table/templates/boolean-table-column.hbs +3 -2
  87. package/src/schematics/table/templates/component-table-column.hbs +3 -2
  88. package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +3 -2
  89. package/src/schematics/table/templates/date-table-column.hbs +3 -2
  90. package/src/schematics/table/templates/default-table-column.hbs +4 -1
  91. package/src/schematics/table/templates/icon-table-column.hbs +3 -2
  92. package/src/schematics/table/templates/link-table-column.hbs +3 -2
  93. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +13 -11
  94. package/src/schematics/table/tree-table-component/index.js +1 -0
  95. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  96. package/src/schematics/table/tree-table-component/schema.json +62 -8
  97. package/src/schematics/table-accordion-item.schema.json +41 -0
  98. package/src/schematics/table-action.schema.json +7 -3
  99. package/src/schematics/table-column.schema.json +4 -1
  100. package/src/schematics/table-select-form-control.schema.json +6 -0
  101. package/src/schematics/templates/css-class.hbs +1 -0
  102. package/src/schematics/tree-table-accordion-item.schema.json +41 -0
  103. package/src/template.schema.json +18 -0
package/src/schema.json CHANGED
@@ -186,8 +186,7 @@
186
186
  "type": "string",
187
187
  "enum": [
188
188
  "route"
189
- ],
190
- "default": "route"
189
+ ]
191
190
  }
192
191
  },
193
192
  "required": [
@@ -195,50 +194,37 @@
195
194
  ]
196
195
  },
197
196
  "accordionItem": {
198
- "type": "object",
199
- "properties": {
200
- "kind": {
201
- "type": "string",
202
- "enum": [
203
- "default",
204
- "table",
205
- "data-grid",
206
- "data-grid-collection",
207
- "tree-table",
208
- "switch"
209
- ],
210
- "description": "The type of the accordion item",
211
- "default": "panel"
212
- },
213
- "modifiers": {
214
- "alias": "modifier",
215
- "type": "array",
216
- "items": {
217
- "type": "string"
218
- },
219
- "description": "The modifiers to apply to the accordion item type"
220
- },
221
- "identifier": {
222
- "$ref": "#/definitions/accordionIdentifier"
197
+ "oneOf": [
198
+ {
199
+ "allOf": [
200
+ {
201
+ "$ref": "#/definitions/baseAccordionItem"
202
+ },
203
+ {
204
+ "type": "object",
205
+ "properties": {
206
+ "kind": {
207
+ "type": "string",
208
+ "const": "default",
209
+ "default": "default"
210
+ }
211
+ }
212
+ }
213
+ ]
223
214
  },
224
- "title": {
225
- "type": "string"
215
+ {
216
+ "$ref": "#/definitions/switchAccordionItem"
226
217
  },
227
- "description": {
228
- "type": "string"
218
+ {
219
+ "$ref": "#/definitions/tableAccordionItem"
229
220
  },
230
- "upstream": {
231
- "$ref": "#/definitions/upstream"
221
+ {
222
+ "$ref": "#/definitions/dataGridAccordionItem"
232
223
  },
233
- "propertyList": {
234
- "alias": "property",
235
- "type": "array",
236
- "items": {
237
- "$ref": "#/definitions/property"
238
- }
224
+ {
225
+ "$ref": "#/definitions/treeTableAccordionItem"
239
226
  }
240
- },
241
- "additionalProperties": true
227
+ ]
242
228
  },
243
229
  "accordionItemComponentSchematic": {
244
230
  "allOf": [
@@ -268,15 +254,7 @@
268
254
  "$ref": "#/definitions/angular"
269
255
  },
270
256
  {
271
- "$ref": "#/definitions/accordionItem"
272
- },
273
- {
274
- "type": "object",
275
- "properties": {
276
- "dataGrid": {
277
- "$ref": "#/definitions/dataGrid"
278
- }
279
- }
257
+ "$ref": "#/definitions/dataGridAccordionItem"
280
258
  }
281
259
  ]
282
260
  },
@@ -286,73 +264,7 @@
286
264
  "$ref": "#/definitions/angular"
287
265
  },
288
266
  {
289
- "$ref": "#/definitions/accordionItem"
290
- },
291
- {
292
- "type": "object",
293
- "properties": {
294
- "switch": {
295
- "type": "object",
296
- "properties": {
297
- "property": {
298
- "$ref": "#/definitions/property"
299
- },
300
- "defaultCase": {
301
- "type": "object",
302
- "properties": {
303
- "itemList": {
304
- "alias": "item",
305
- "type": "array",
306
- "items": {
307
- "$ref": "#/definitions/accordionItem"
308
- },
309
- "description": "The list of accordion expansion panels"
310
- }
311
- },
312
- "required": [
313
- "itemList"
314
- ]
315
- },
316
- "case": {
317
- "type": "array",
318
- "items": {
319
- "type": "object",
320
- "properties": {
321
- "test": {
322
- "anyOf": [
323
- {
324
- "type": "string"
325
- },
326
- {
327
- "type": "number"
328
- },
329
- {
330
- "type": "boolean"
331
- }
332
- ]
333
- },
334
- "itemList": {
335
- "alias": "item",
336
- "type": "array",
337
- "items": {
338
- "$ref": "#/definitions/accordionItem"
339
- },
340
- "description": "The list of accordion expansion panels"
341
- }
342
- },
343
- "required": [
344
- "test",
345
- "itemList"
346
- ]
347
- }
348
- }
349
- },
350
- "required": [
351
- "property",
352
- "case"
353
- ]
354
- }
355
- }
267
+ "$ref": "#/definitions/switchAccordionItem"
356
268
  }
357
269
  ]
358
270
  },
@@ -362,27 +274,7 @@
362
274
  "$ref": "#/definitions/angular"
363
275
  },
364
276
  {
365
- "$ref": "#/definitions/accordionItem"
366
- },
367
- {
368
- "type": "object",
369
- "properties": {
370
- "modifiers": {
371
- "alias": "modifier",
372
- "type": "array",
373
- "items": {
374
- "type": "string",
375
- "enum": [
376
- "navigation-back-header",
377
- "without-title"
378
- ]
379
- },
380
- "description": "The table modifiers"
381
- },
382
- "table": {
383
- "$ref": "#/definitions/table"
384
- }
385
- }
277
+ "$ref": "#/definitions/tableAccordionItem"
386
278
  }
387
279
  ]
388
280
  },
@@ -392,27 +284,7 @@
392
284
  "$ref": "#/definitions/angular"
393
285
  },
394
286
  {
395
- "$ref": "#/definitions/accordionItem"
396
- },
397
- {
398
- "type": "object",
399
- "properties": {
400
- "modifiers": {
401
- "alias": "modifier",
402
- "type": "array",
403
- "items": {
404
- "type": "string",
405
- "enum": [
406
- "navigation-back-header",
407
- "without-title"
408
- ]
409
- },
410
- "description": "The table modifiers"
411
- },
412
- "table": {
413
- "$ref": "#/definitions/treeTable"
414
- }
415
- }
287
+ "$ref": "#/definitions/treeTableAccordionItem"
416
288
  }
417
289
  ]
418
290
  },
@@ -480,7 +352,7 @@
480
352
  },
481
353
  "kind": {
482
354
  "type": "string",
483
- "const": "table-select"
355
+ "const": "autocomplete-table-select"
484
356
  },
485
357
  "placeholder": {
486
358
  "type": "string"
@@ -581,6 +453,47 @@
581
453
  ],
582
454
  "default": "none"
583
455
  },
456
+ "baseAccordionItem": {
457
+ "type": "object",
458
+ "properties": {
459
+ "name": {
460
+ "type": "string"
461
+ },
462
+ "kind": {
463
+ "type": "string"
464
+ },
465
+ "modifiers": {
466
+ "alias": "modifier",
467
+ "type": "array",
468
+ "items": {
469
+ "type": "string"
470
+ },
471
+ "description": "The modifiers to apply to the accordion item type"
472
+ },
473
+ "identifier": {
474
+ "$ref": "#/definitions/accordionIdentifier"
475
+ },
476
+ "title": {
477
+ "type": "string"
478
+ },
479
+ "description": {
480
+ "type": "string"
481
+ },
482
+ "upstream": {
483
+ "$ref": "#/definitions/upstream"
484
+ },
485
+ "propertyList": {
486
+ "alias": "property",
487
+ "type": "array",
488
+ "items": {
489
+ "$ref": "#/definitions/property"
490
+ }
491
+ }
492
+ },
493
+ "required": [
494
+ "name"
495
+ ]
496
+ },
584
497
  "baseFormArray": {
585
498
  "allOf": [
586
499
  {
@@ -727,6 +640,38 @@
727
640
  }
728
641
  ]
729
642
  },
643
+ "cssClass": {
644
+ "oneOf": [
645
+ {
646
+ "type": "string"
647
+ },
648
+ {
649
+ "type": "array",
650
+ "items": {
651
+ "type": "string"
652
+ }
653
+ },
654
+ {
655
+ "type": "object",
656
+ "properties": {
657
+ "name": {
658
+ "type": "string"
659
+ }
660
+ }
661
+ },
662
+ {
663
+ "type": "array",
664
+ "items": {
665
+ "type": "object",
666
+ "properties": {
667
+ "name": {
668
+ "type": "string"
669
+ }
670
+ }
671
+ }
672
+ }
673
+ ]
674
+ },
730
675
  "dataGrid": {
731
676
  "type": "object",
732
677
  "properties": {
@@ -777,6 +722,30 @@
777
722
  }
778
723
  }
779
724
  },
725
+ "dataGridAccordionItem": {
726
+ "allOf": [
727
+ {
728
+ "$ref": "#/definitions/baseAccordionItem"
729
+ },
730
+ {
731
+ "type": "object",
732
+ "properties": {
733
+ "kind": {
734
+ "type": "string",
735
+ "const": "data-grid"
736
+ }
737
+ }
738
+ },
739
+ {
740
+ "type": "object",
741
+ "properties": {
742
+ "dataGrid": {
743
+ "$ref": "#/definitions/dataGrid"
744
+ }
745
+ }
746
+ }
747
+ ]
748
+ },
780
749
  "dataGridComponentSchematic": {
781
750
  "allOf": [
782
751
  {
@@ -1496,6 +1465,12 @@
1496
1465
  "type": "string"
1497
1466
  },
1498
1467
  "description": "The table modifiers"
1468
+ },
1469
+ "cssClass": {
1470
+ "$ref": "#/definitions/cssClass"
1471
+ },
1472
+ "identifier": {
1473
+ "$ref": "#/definitions/accordionIdentifier"
1499
1474
  }
1500
1475
  }
1501
1476
  },
@@ -1642,10 +1617,7 @@
1642
1617
  "isArray": {
1643
1618
  "type": "boolean"
1644
1619
  }
1645
- },
1646
- "required": [
1647
- "name"
1648
- ]
1620
+ }
1649
1621
  }
1650
1622
  ]
1651
1623
  },
@@ -2219,6 +2191,82 @@
2219
2191
  }
2220
2192
  ]
2221
2193
  },
2194
+ "switchAccordionItem": {
2195
+ "allOf": [
2196
+ {
2197
+ "$ref": "#/definitions/baseAccordionItem"
2198
+ },
2199
+ {
2200
+ "type": "object",
2201
+ "properties": {
2202
+ "kind": {
2203
+ "type": "string",
2204
+ "const": "switch"
2205
+ },
2206
+ "switch": {
2207
+ "type": "object",
2208
+ "properties": {
2209
+ "property": {
2210
+ "$ref": "#/definitions/property"
2211
+ },
2212
+ "defaultCase": {
2213
+ "type": "object",
2214
+ "properties": {
2215
+ "itemList": {
2216
+ "alias": "item",
2217
+ "type": "array",
2218
+ "items": {
2219
+ "$ref": "#/definitions/accordionItem"
2220
+ },
2221
+ "description": "The list of accordion expansion panels"
2222
+ }
2223
+ },
2224
+ "required": [
2225
+ "itemList"
2226
+ ]
2227
+ },
2228
+ "case": {
2229
+ "type": "array",
2230
+ "items": {
2231
+ "type": "object",
2232
+ "properties": {
2233
+ "test": {
2234
+ "anyOf": [
2235
+ {
2236
+ "type": "string"
2237
+ },
2238
+ {
2239
+ "type": "number"
2240
+ },
2241
+ {
2242
+ "type": "boolean"
2243
+ }
2244
+ ]
2245
+ },
2246
+ "itemList": {
2247
+ "alias": "item",
2248
+ "type": "array",
2249
+ "items": {
2250
+ "$ref": "#/definitions/accordionItem"
2251
+ },
2252
+ "description": "The list of accordion expansion panels"
2253
+ }
2254
+ },
2255
+ "required": [
2256
+ "test",
2257
+ "itemList"
2258
+ ]
2259
+ }
2260
+ }
2261
+ },
2262
+ "required": [
2263
+ "property"
2264
+ ]
2265
+ }
2266
+ }
2267
+ }
2268
+ ]
2269
+ },
2222
2270
  "table": {
2223
2271
  "allOf": [
2224
2272
  {
@@ -2266,6 +2314,37 @@
2266
2314
  }
2267
2315
  ]
2268
2316
  },
2317
+ "tableAccordionItem": {
2318
+ "allOf": [
2319
+ {
2320
+ "$ref": "#/definitions/baseAccordionItem"
2321
+ },
2322
+ {
2323
+ "type": "object",
2324
+ "properties": {
2325
+ "kind": {
2326
+ "type": "string",
2327
+ "const": "table"
2328
+ },
2329
+ "modifiers": {
2330
+ "alias": "modifier",
2331
+ "type": "array",
2332
+ "items": {
2333
+ "type": "string",
2334
+ "enum": [
2335
+ "navigation-back-header",
2336
+ "without-title"
2337
+ ]
2338
+ },
2339
+ "description": "The table modifiers"
2340
+ },
2341
+ "table": {
2342
+ "$ref": "#/definitions/table"
2343
+ }
2344
+ }
2345
+ }
2346
+ ]
2347
+ },
2269
2348
  "tableAction": {
2270
2349
  "type": "object",
2271
2350
  "properties": {
@@ -2313,8 +2392,7 @@
2313
2392
  "description": "Value for the color input of the mat-button / mat-icon component"
2314
2393
  },
2315
2394
  "cssClass": {
2316
- "type": "string",
2317
- "description": "Additional CSS classes added to the button element"
2395
+ "$ref": "#/definitions/cssClass"
2318
2396
  },
2319
2397
  "options": {
2320
2398
  "type": "object",
@@ -2379,7 +2457,7 @@
2379
2457
  "type": "boolean"
2380
2458
  },
2381
2459
  "cssClass": {
2382
- "type": "string"
2460
+ "$ref": "#/definitions/cssClass"
2383
2461
  },
2384
2462
  "title": {
2385
2463
  "type": "string"
@@ -2512,6 +2590,9 @@
2512
2590
  "$ref": "#/definitions/upstream"
2513
2591
  }
2514
2592
  }
2593
+ },
2594
+ "identifier": {
2595
+ "$ref": "#/definitions/accordionIdentifier"
2515
2596
  }
2516
2597
  }
2517
2598
  }
@@ -2621,6 +2702,37 @@
2621
2702
  }
2622
2703
  ]
2623
2704
  },
2705
+ "treeTableAccordionItem": {
2706
+ "allOf": [
2707
+ {
2708
+ "$ref": "#/definitions/baseAccordionItem"
2709
+ },
2710
+ {
2711
+ "type": "object",
2712
+ "properties": {
2713
+ "kind": {
2714
+ "type": "string",
2715
+ "const": "tree-table"
2716
+ },
2717
+ "modifiers": {
2718
+ "alias": "modifier",
2719
+ "type": "array",
2720
+ "items": {
2721
+ "type": "string",
2722
+ "enum": [
2723
+ "navigation-back-header",
2724
+ "without-title"
2725
+ ]
2726
+ },
2727
+ "description": "The table modifiers"
2728
+ },
2729
+ "table": {
2730
+ "$ref": "#/definitions/treeTable"
2731
+ }
2732
+ }
2733
+ }
2734
+ ]
2735
+ },
2624
2736
  "treeTableComponentSchematic": {
2625
2737
  "allOf": [
2626
2738
  {