@rxap/schematic-angular 16.2.0-dev.23 → 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 (69) hide show
  1. package/CHANGELOG.md +9 -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/data-grid-item.js +5 -3
  8. package/src/lib/data-grid-item.js.map +1 -1
  9. package/src/lib/form/control/autocomplete-table-select-form-control.js +11 -1
  10. package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -1
  11. package/src/lib/form/control/table-select-form-control.d.ts +3 -0
  12. package/src/lib/form/control/table-select-form-control.js +11 -1
  13. package/src/lib/form/control/table-select-form-control.js.map +1 -1
  14. package/src/lib/minimum-table-options.d.ts +3 -0
  15. package/src/lib/minimum-table-options.js +7 -0
  16. package/src/lib/minimum-table-options.js.map +1 -1
  17. package/src/lib/table/table-filter-column-rule.js +2 -3
  18. package/src/lib/table/table-filter-column-rule.js.map +1 -1
  19. package/src/lib/table-column.js +5 -1
  20. package/src/lib/table-column.js.map +1 -1
  21. package/src/schema.json +242 -164
  22. package/src/schematics/accordion/accordion-component/schema.json +1427 -116
  23. package/src/schematics/accordion/accordion-item-component/schema.json +1427 -116
  24. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +72 -62
  25. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +3 -14
  26. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +1411 -166
  27. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +3 -64
  28. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +82 -74
  29. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +3 -26
  30. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +82 -74
  31. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +3 -26
  32. package/src/schematics/accordion-identifier.schema.json +1 -2
  33. package/src/schematics/accordion-item.schema.json +43 -50
  34. package/src/schematics/autocomplete-table-select-form-control.schema.json +1 -1
  35. package/src/schematics/base-accordion-item.schema.json +52 -0
  36. package/src/schematics/data-grid-accordion-item.schema.json +34 -0
  37. package/src/schematics/data-grid-component/index.js +8 -4
  38. package/src/schematics/data-grid-component/index.js.map +1 -1
  39. package/src/schematics/data-grid-component/schema.json +6 -7
  40. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +8 -6
  41. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -1
  42. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +2 -5
  43. package/src/schematics/form/control/input-form-control/schema.json +1 -4
  44. package/src/schematics/form/control/select-form-control/schema.json +1 -4
  45. package/src/schematics/form/control/table-select-form-control/index.js +8 -6
  46. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  47. package/src/schematics/form/control/table-select-form-control/schema.json +21 -4
  48. package/src/schematics/form/form-array/schema.json +22 -5
  49. package/src/schematics/form/form-component/schema.json +6 -7
  50. package/src/schematics/form/form-control/schema.json +22 -5
  51. package/src/schematics/form/form-definition/schema.json +22 -5
  52. package/src/schematics/form/form-group/schema.json +22 -5
  53. package/src/schematics/minimum-table.schema.json +6 -0
  54. package/src/schematics/property.schema.json +1 -4
  55. package/src/schematics/switch-accordion-item.schema.json +82 -0
  56. package/src/schematics/table/action/form-table-action/schema.json +6 -7
  57. package/src/schematics/table/header-button/form-table-header-button/schema.json +6 -7
  58. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +4 -4
  59. package/src/schematics/table/table-component/index.d.ts +0 -3
  60. package/src/schematics/table/table-component/index.js +1 -9
  61. package/src/schematics/table/table-component/index.js.map +1 -1
  62. package/src/schematics/table/table-component/schema.json +25 -5
  63. package/src/schematics/table/templates/default-table-column.hbs +4 -1
  64. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +6 -6
  65. package/src/schematics/table/tree-table-component/schema.json +25 -5
  66. package/src/schematics/table-accordion-item.schema.json +41 -0
  67. package/src/schematics/table-select-form-control.schema.json +6 -0
  68. package/src/schematics/tree-table-accordion-item.schema.json +41 -0
  69. package/src/template.schema.json +15 -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
  {
@@ -809,6 +722,30 @@
809
722
  }
810
723
  }
811
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
+ },
812
749
  "dataGridComponentSchematic": {
813
750
  "allOf": [
814
751
  {
@@ -1531,6 +1468,9 @@
1531
1468
  },
1532
1469
  "cssClass": {
1533
1470
  "$ref": "#/definitions/cssClass"
1471
+ },
1472
+ "identifier": {
1473
+ "$ref": "#/definitions/accordionIdentifier"
1534
1474
  }
1535
1475
  }
1536
1476
  },
@@ -1677,10 +1617,7 @@
1677
1617
  "isArray": {
1678
1618
  "type": "boolean"
1679
1619
  }
1680
- },
1681
- "required": [
1682
- "name"
1683
- ]
1620
+ }
1684
1621
  }
1685
1622
  ]
1686
1623
  },
@@ -2254,6 +2191,82 @@
2254
2191
  }
2255
2192
  ]
2256
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
+ },
2257
2270
  "table": {
2258
2271
  "allOf": [
2259
2272
  {
@@ -2301,6 +2314,37 @@
2301
2314
  }
2302
2315
  ]
2303
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
+ },
2304
2348
  "tableAction": {
2305
2349
  "type": "object",
2306
2350
  "properties": {
@@ -2546,6 +2590,9 @@
2546
2590
  "$ref": "#/definitions/upstream"
2547
2591
  }
2548
2592
  }
2593
+ },
2594
+ "identifier": {
2595
+ "$ref": "#/definitions/accordionIdentifier"
2549
2596
  }
2550
2597
  }
2551
2598
  }
@@ -2655,6 +2702,37 @@
2655
2702
  }
2656
2703
  ]
2657
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
+ },
2658
2736
  "treeTableComponentSchematic": {
2659
2737
  "allOf": [
2660
2738
  {