@rxap/schematic-angular 18.0.3-dev.1 → 18.1.0-dev.1

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 (216) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/package.json +12 -11
  3. package/src/lib/accordion/accordion-header-kind.d.ts +6 -0
  4. package/src/lib/accordion/accordion-header-kind.js +11 -0
  5. package/src/lib/accordion/accordion-header-kind.js.map +1 -0
  6. package/src/lib/accordion/accordion-header.d.ts +6 -0
  7. package/src/lib/accordion/accordion-header.js +22 -0
  8. package/src/lib/accordion/accordion-header.js.map +1 -0
  9. package/src/lib/{accordion-itme-kinds.js → accordion/accordion-item-kind.js} +1 -1
  10. package/src/lib/accordion/accordion-item-kind.js.map +1 -0
  11. package/src/lib/accordion/accordion-item.d.ts +9 -0
  12. package/src/lib/accordion/accordion-item.js +29 -0
  13. package/src/lib/accordion/accordion-item.js.map +1 -0
  14. package/src/lib/accordion/header/base-accordion-header.d.ts +18 -0
  15. package/src/lib/accordion/header/base-accordion-header.js +35 -0
  16. package/src/lib/accordion/header/base-accordion-header.js.map +1 -0
  17. package/src/lib/accordion/header/property-accordion-header.d.ts +14 -0
  18. package/src/lib/accordion/header/property-accordion-header.js +23 -0
  19. package/src/lib/accordion/header/property-accordion-header.js.map +1 -0
  20. package/src/lib/accordion/header/static-accordion-header.d.ts +11 -0
  21. package/src/lib/accordion/header/static-accordion-header.js +13 -0
  22. package/src/lib/accordion/header/static-accordion-header.js.map +1 -0
  23. package/src/lib/accordion/item/base-accordion-item.d.ts +31 -0
  24. package/src/lib/accordion/item/base-accordion-item.js +59 -0
  25. package/src/lib/accordion/item/base-accordion-item.js.map +1 -0
  26. package/src/lib/accordion/item/data-grid-accordion-item.d.ts +14 -0
  27. package/src/lib/accordion/item/data-grid-accordion-item.js +29 -0
  28. package/src/lib/accordion/item/data-grid-accordion-item.js.map +1 -0
  29. package/src/lib/accordion/item/switch-accordion-item.d.ts +32 -0
  30. package/src/lib/accordion/item/switch-accordion-item.js +89 -0
  31. package/src/lib/accordion/item/switch-accordion-item.js.map +1 -0
  32. package/src/lib/accordion/item/table-accordion-item.d.ts +14 -0
  33. package/src/lib/accordion/item/table-accordion-item.js +21 -0
  34. package/src/lib/accordion/item/table-accordion-item.js.map +1 -0
  35. package/src/lib/accordion/item/tree-table-accordion-item.d.ts +14 -0
  36. package/src/lib/accordion/item/tree-table-accordion-item.js +21 -0
  37. package/src/lib/accordion/item/tree-table-accordion-item.js.map +1 -0
  38. package/src/lib/coerce-accordion-component.js +9 -6
  39. package/src/lib/coerce-accordion-component.js.map +1 -1
  40. package/src/lib/coerce-minimum-table-component.js +9 -2
  41. package/src/lib/coerce-minimum-table-component.js.map +1 -1
  42. package/src/lib/form/control/form-control.d.ts +1 -0
  43. package/src/lib/form/control/form-control.js +6 -1
  44. package/src/lib/form/control/form-control.js.map +1 -1
  45. package/src/lib/form/form-component.d.ts +15 -0
  46. package/src/lib/form/form-component.js +12 -0
  47. package/src/lib/form/form-component.js.map +1 -0
  48. package/src/lib/form/form-definition.d.ts +8 -0
  49. package/src/lib/form/form-definition.js +11 -0
  50. package/src/lib/form/form-definition.js.map +1 -0
  51. package/src/lib/load-handlebars-template.js +3 -0
  52. package/src/lib/load-handlebars-template.js.map +1 -1
  53. package/src/lib/mat-form-field-default-options.d.ts +8 -2
  54. package/src/lib/mat-form-field-default-options.js +8 -1
  55. package/src/lib/mat-form-field-default-options.js.map +1 -1
  56. package/src/lib/minimum-table-component-options.js +28 -35
  57. package/src/lib/minimum-table-component-options.js.map +1 -1
  58. package/src/lib/minimum-table-options.d.ts +6 -3
  59. package/src/lib/minimum-table-options.js +4 -1
  60. package/src/lib/minimum-table-options.js.map +1 -1
  61. package/src/lib/table/action/base-table-action.d.ts +25 -0
  62. package/src/lib/table/action/base-table-action.js +32 -0
  63. package/src/lib/table/action/base-table-action.js.map +1 -0
  64. package/src/lib/table/action/dialog-table-action.d.ts +15 -0
  65. package/src/lib/table/action/dialog-table-action.js +23 -0
  66. package/src/lib/table/action/dialog-table-action.js.map +1 -0
  67. package/src/lib/table/action/form-table-action.d.ts +19 -0
  68. package/src/lib/table/action/form-table-action.js +26 -0
  69. package/src/lib/table/action/form-table-action.js.map +1 -0
  70. package/src/lib/table/action/navigation-table-action.d.ts +12 -0
  71. package/src/lib/table/action/navigation-table-action.js +14 -0
  72. package/src/lib/table/action/navigation-table-action.js.map +1 -0
  73. package/src/lib/table/action/open-api-table-action.d.ts +16 -0
  74. package/src/lib/table/action/open-api-table-action.js +14 -0
  75. package/src/lib/table/action/open-api-table-action.js.map +1 -0
  76. package/src/lib/table/action/operation-table-action.d.ts +8 -0
  77. package/src/lib/table/action/operation-table-action.js +10 -0
  78. package/src/lib/table/action/operation-table-action.js.map +1 -0
  79. package/src/lib/table/table-action-kind.d.ts +9 -0
  80. package/src/lib/table/table-action-kind.js +17 -0
  81. package/src/lib/table/table-action-kind.js.map +1 -0
  82. package/src/lib/table/table-action.d.ts +11 -0
  83. package/src/lib/table/table-action.js +35 -0
  84. package/src/lib/table/table-action.js.map +1 -0
  85. package/src/lib/table/table-filter-column-rule.js +9 -5
  86. package/src/lib/table/table-filter-column-rule.js.map +1 -1
  87. package/src/lib/table-options.d.ts +5 -9
  88. package/src/lib/table-options.js.map +1 -1
  89. package/src/lib/tree-table-options.d.ts +5 -10
  90. package/src/lib/tree-table-options.js.map +1 -1
  91. package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +3 -1
  92. package/src/lib/use-pick-from-table-interface-as-form-type.js +19 -5
  93. package/src/lib/use-pick-from-table-interface-as-form-type.js.map +1 -1
  94. package/src/lib/utilities/if-truthy.d.ts +8 -0
  95. package/src/lib/utilities/if-truthy.js +14 -0
  96. package/src/lib/utilities/if-truthy.js.map +1 -0
  97. package/src/schema.json +309 -86
  98. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +6 -0
  99. package/src/schematics/accordion/accordion-component/index.d.ts +5 -4
  100. package/src/schematics/accordion/accordion-component/index.js +29 -12
  101. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  102. package/src/schematics/accordion/accordion-component/schema.d.ts +5 -3
  103. package/src/schematics/accordion/accordion-component/schema.json +488 -72
  104. package/src/schematics/accordion/accordion-component/template.schema.json +4 -20
  105. package/src/schematics/accordion/accordion-item-component/index.d.ts +2 -2
  106. package/src/schematics/accordion/accordion-item-component/index.js +17 -14
  107. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  108. package/src/schematics/accordion/accordion-item-component/schema.d.ts +1 -1
  109. package/src/schematics/accordion/accordion-item-component/schema.json +388 -48
  110. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
  111. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +5 -4
  112. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  113. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +1 -1
  114. package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
  115. package/src/schematics/accordion/item/accordion-item-switch-component/index.js +3 -3
  116. package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
  117. package/src/schematics/accordion/item/accordion-item-switch-component/schema.d.ts +1 -1
  118. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +388 -48
  119. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
  120. package/src/schematics/accordion/item/accordion-item-table-component/index.js +3 -3
  121. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  122. package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +1 -1
  123. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +542 -48
  124. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
  125. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +6 -4
  126. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  127. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +1 -1
  128. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +542 -48
  129. package/src/schematics/accordion/templates/default-accordion-header.hbs +2 -0
  130. package/src/schematics/accordion/templates/{accordion-header.hbs → property-accordion-header.hbs} +0 -5
  131. package/src/schematics/accordion/templates/static-accordion-header.hbs +3 -0
  132. package/src/schematics/accordion/templates/switch-accordion-item.hbs +12 -0
  133. package/src/schematics/accordion-header.schema.json +40 -0
  134. package/src/schematics/base-accordion-header.schema.json +35 -0
  135. package/src/schematics/base-table-action.schema.json +62 -0
  136. package/src/schematics/data-grid-component/index.js +4 -2
  137. package/src/schematics/data-grid-component/index.js.map +1 -1
  138. package/src/schematics/dialog-table-action.schema.json +65 -0
  139. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +7 -4
  140. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -1
  141. package/src/schematics/form/control/select-form-control/index.js +2 -1
  142. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  143. package/src/schematics/form/control/table-select-form-control/index.js +5 -3
  144. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  145. package/src/schematics/form/form-component/index.d.ts +2 -7
  146. package/src/schematics/form/form-component/index.js +7 -6
  147. package/src/schematics/form/form-component/index.js.map +1 -1
  148. package/src/schematics/form/form-component/schema.d.ts +2 -9
  149. package/src/schematics/form-table-action.schema.json +92 -0
  150. package/src/schematics/minimum-table.schema.json +11 -0
  151. package/src/schematics/navigation-table-action.schema.json +35 -0
  152. package/src/schematics/open-api-table-action.schema.json +60 -0
  153. package/src/schematics/operation-table-action.schema.json +26 -0
  154. package/src/schematics/property-accordion-header.schema.json +31 -0
  155. package/src/schematics/static-accordion-header.schema.json +29 -0
  156. package/src/schematics/table/action/dialog-table-action/index.d.ts +5 -9
  157. package/src/schematics/table/action/dialog-table-action/index.js +13 -21
  158. package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
  159. package/src/schematics/table/action/dialog-table-action/schema.d.ts +4 -6
  160. package/src/schematics/table/action/dialog-table-action/schema.json +1293 -100
  161. package/src/schematics/table/action/dialog-table-action/template.schema.json +4 -42
  162. package/src/schematics/table/action/form-table-action/index.d.ts +3 -11
  163. package/src/schematics/table/action/form-table-action/index.js +20 -18
  164. package/src/schematics/table/action/form-table-action/index.js.map +1 -1
  165. package/src/schematics/table/action/form-table-action/schema.d.ts +4 -14
  166. package/src/schematics/table/action/form-table-action/schema.json +331 -104
  167. package/src/schematics/table/action/form-table-action/template.schema.json +4 -59
  168. package/src/schematics/table/action/navigation-table-action/index.d.ts +3 -3
  169. package/src/schematics/table/action/navigation-table-action/index.js +2 -3
  170. package/src/schematics/table/action/navigation-table-action/index.js.map +1 -1
  171. package/src/schematics/table/action/navigation-table-action/schema.d.ts +4 -4
  172. package/src/schematics/table/action/navigation-table-action/schema.json +1293 -70
  173. package/src/schematics/table/action/navigation-table-action/template.schema.json +4 -12
  174. package/src/schematics/table/action/open-api-table-action/index.d.ts +2 -4
  175. package/src/schematics/table/action/open-api-table-action/index.js +2 -4
  176. package/src/schematics/table/action/open-api-table-action/index.js.map +1 -1
  177. package/src/schematics/table/action/open-api-table-action/schema.d.ts +4 -6
  178. package/src/schematics/table/action/open-api-table-action/schema.json +1286 -91
  179. package/src/schematics/table/action/open-api-table-action/template.schema.json +4 -40
  180. package/src/schematics/table/action/operation-table-action/index.d.ts +2 -1
  181. package/src/schematics/table/action/operation-table-action/index.js +8 -6
  182. package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
  183. package/src/schematics/table/action/operation-table-action/schema.d.ts +5 -3
  184. package/src/schematics/table/action/operation-table-action/schema.json +1296 -59
  185. package/src/schematics/table/action/operation-table-action/template.schema.json +6 -0
  186. package/src/schematics/table/table-action/index.d.ts +2 -1
  187. package/src/schematics/table/table-action/index.js +3 -2
  188. package/src/schematics/table/table-action/index.js.map +1 -1
  189. package/src/schematics/table/table-action/schema.d.ts +2 -2
  190. package/src/schematics/table/table-action/schema.json +1286 -52
  191. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +19 -1
  192. package/src/schematics/table/table-component/index.js +6 -5
  193. package/src/schematics/table/table-component/index.js.map +1 -1
  194. package/src/schematics/table/table-component/schema.json +542 -48
  195. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +19 -1
  196. package/src/schematics/table/tree-table-component/index.js +5 -3
  197. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  198. package/src/schematics/table/tree-table-component/schema.json +542 -48
  199. package/src/schematics/table-action.schema.json +47 -53
  200. package/src/schematics/tree-component/index.js +2 -1
  201. package/src/schematics/tree-component/index.js.map +1 -1
  202. package/src/template.schema.json +30 -0
  203. package/src/lib/accordion-header.d.ts +0 -32
  204. package/src/lib/accordion-header.js +0 -57
  205. package/src/lib/accordion-header.js.map +0 -1
  206. package/src/lib/accordion-item.d.ts +0 -91
  207. package/src/lib/accordion-item.js +0 -206
  208. package/src/lib/accordion-item.js.map +0 -1
  209. package/src/lib/accordion-itme-kinds.js.map +0 -1
  210. package/src/lib/table-action.d.ts +0 -13
  211. package/src/lib/table-action.js +0 -102
  212. package/src/lib/table-action.js.map +0 -1
  213. package/src/lib/table-row-action.d.ts +0 -21
  214. package/src/lib/table-row-action.js +0 -25
  215. package/src/lib/table-row-action.js.map +0 -1
  216. /package/src/lib/{accordion-itme-kinds.d.ts → accordion/accordion-item-kind.d.ts} +0 -0
@@ -270,6 +270,41 @@
270
270
  "description": "The backend that should be used to handel data",
271
271
  "default": "none"
272
272
  },
273
+ "baseFormArray": {
274
+ "allOf": [
275
+ {
276
+ "$ref": "#/definitions/abstractControl"
277
+ },
278
+ {
279
+ "type": "object",
280
+ "properties": {
281
+ "controlList": {
282
+ "type": "array",
283
+ "description": "The list of controls in the group",
284
+ "items": {
285
+ "$ref": "#/definitions/control"
286
+ }
287
+ },
288
+ "legend": {
289
+ "type": "string"
290
+ },
291
+ "groupLegend": {
292
+ "type": "string"
293
+ },
294
+ "kind": {
295
+ "type": "string",
296
+ "description": "The kind of the array",
297
+ "const": "default",
298
+ "default": "default"
299
+ },
300
+ "role": {
301
+ "type": "string",
302
+ "const": "array"
303
+ }
304
+ }
305
+ }
306
+ ]
307
+ },
273
308
  "baseFormControl": {
274
309
  "allOf": [
275
310
  {
@@ -290,6 +325,93 @@
290
325
  }
291
326
  ]
292
327
  },
328
+ "baseFormGroup": {
329
+ "allOf": [
330
+ {
331
+ "$ref": "#/definitions/abstractControl"
332
+ },
333
+ {
334
+ "type": "object",
335
+ "properties": {
336
+ "controlList": {
337
+ "type": "array",
338
+ "description": "The list of controls in the group",
339
+ "items": {
340
+ "$ref": "#/definitions/control"
341
+ }
342
+ },
343
+ "legend": {
344
+ "type": "string"
345
+ },
346
+ "kind": {
347
+ "type": "string",
348
+ "description": "The kind of the group",
349
+ "const": "default",
350
+ "default": "default"
351
+ },
352
+ "role": {
353
+ "type": "string",
354
+ "const": "group"
355
+ }
356
+ }
357
+ }
358
+ ]
359
+ },
360
+ "baseTableAction": {
361
+ "type": "object",
362
+ "properties": {
363
+ "type": {
364
+ "type": "string"
365
+ },
366
+ "refresh": {
367
+ "type": "boolean"
368
+ },
369
+ "confirm": {
370
+ "type": "boolean"
371
+ },
372
+ "tooltip": {
373
+ "type": "string"
374
+ },
375
+ "errorMessage": {
376
+ "type": "string"
377
+ },
378
+ "successMessage": {
379
+ "type": "string"
380
+ },
381
+ "priority": {
382
+ "type": "number"
383
+ },
384
+ "checkFunction": {
385
+ "type": "string"
386
+ },
387
+ "inHeader": {
388
+ "type": "boolean"
389
+ },
390
+ "kind": {
391
+ "alias": "role",
392
+ "type": "string"
393
+ },
394
+ "icon": {
395
+ "type": "string"
396
+ },
397
+ "svgIcon": {
398
+ "type": "string"
399
+ },
400
+ "permission": {
401
+ "type": "string"
402
+ },
403
+ "color": {
404
+ "type": "string",
405
+ "description": "Value for the color input of the mat-button / mat-icon component"
406
+ },
407
+ "cssClass": {
408
+ "$ref": "#/definitions/cssClass"
409
+ }
410
+ },
411
+ "required": [
412
+ "type"
413
+ ]
414
+ },
293
415
  "baseTableColumn": {
294
416
  "type": "object",
295
417
  "properties": {
@@ -442,6 +564,19 @@
442
564
  }
443
565
  ]
444
566
  },
567
+ "control": {
568
+ "oneOf": [
569
+ {
570
+ "$ref": "#/definitions/formGroup"
571
+ },
572
+ {
573
+ "$ref": "#/definitions/formArray"
574
+ },
575
+ {
576
+ "$ref": "#/definitions/formControl"
577
+ }
578
+ ]
579
+ },
445
580
  "copyToClipboardTableColumn": {
446
581
  "allOf": [
447
582
  {
@@ -538,6 +673,138 @@
538
673
  }
539
674
  ]
540
675
  },
676
+ "dialogTableAction": {
677
+ "allOf": [
678
+ {
679
+ "$ref": "#/definitions/baseTableAction"
680
+ },
681
+ {
682
+ "type": "object",
683
+ "properties": {
684
+ "kind": {
685
+ "type": "string",
686
+ "const": "dialog",
687
+ "default": "dialog"
688
+ },
689
+ "withoutBody": {
690
+ "type": "boolean",
691
+ "description": "Whether the table action operation should be without body",
692
+ "default": false
693
+ },
694
+ "actionList": {
695
+ "alias": "action",
696
+ "type": "array",
697
+ "description": "The list of actions to be added to the dialog",
698
+ "items": {
699
+ "oneOf": [
700
+ {
701
+ "type": "string"
702
+ },
703
+ {
704
+ "type": "object",
705
+ "properties": {
706
+ "label": {
707
+ "type": "string"
708
+ },
709
+ "color": {
710
+ "type": "string"
711
+ },
712
+ "role": {
713
+ "type": "string",
714
+ "enum": [
715
+ "submit",
716
+ "close"
717
+ ]
718
+ }
719
+ }
720
+ }
721
+ ]
722
+ }
723
+ },
724
+ "title": {
725
+ "type": "string",
726
+ "description": "The title for the dialog"
727
+ }
728
+ },
729
+ "required": [
730
+ "kind",
731
+ "title"
732
+ ]
733
+ }
734
+ ]
735
+ },
736
+ "formArray": {
737
+ "allOf": [
738
+ {
739
+ "type": "object",
740
+ "properties": {
741
+ "role": {
742
+ "type": "string",
743
+ "const": "array"
744
+ }
745
+ },
746
+ "required": [
747
+ "role"
748
+ ]
749
+ },
750
+ {
751
+ "oneOf": [
752
+ {
753
+ "allOf": [
754
+ {
755
+ "$ref": "#/definitions/baseFormArray"
756
+ },
757
+ {
758
+ "type": "object",
759
+ "properties": {
760
+ "kind": {
761
+ "type": "string",
762
+ "const": "default",
763
+ "default": "default"
764
+ }
765
+ }
766
+ }
767
+ ]
768
+ }
769
+ ]
770
+ }
771
+ ]
772
+ },
773
+ "formComponent": {
774
+ "allOf": [
775
+ {
776
+ "$ref": "#/definitions/formDefinition"
777
+ },
778
+ {
779
+ "type": "object",
780
+ "properties": {
781
+ "window": {
782
+ "type": "boolean",
783
+ "description": "Whether the form can be opened in a window"
784
+ },
785
+ "role": {
786
+ "type": "string",
787
+ "description": "Define the role of the form"
788
+ },
789
+ "matFormFieldDefaultOptions": {
790
+ "appearance": {
791
+ "type": "string",
792
+ "description": "The appearance of the mat form field",
793
+ "enum": [
794
+ "legacy",
795
+ "standard",
796
+ "fill",
797
+ "outline"
798
+ ]
799
+ }
800
+ },
801
+ "identifier": {
802
+ "$ref": "#/definitions/accordionIdentifier"
803
+ }
804
+ }
805
+ }
806
+ ]
807
+ },
541
808
  "formControl": {
542
809
  "allOf": [
543
810
  {
@@ -594,6 +861,21 @@
594
861
  }
595
862
  ]
596
863
  },
864
+ "formDefinition": {
865
+ "type": "object",
866
+ "properties": {
867
+ "controlList": {
868
+ "alias": "control",
869
+ "type": "array",
870
+ "items": {
871
+ "$ref": "#/definitions/control"
872
+ }
873
+ }
874
+ },
875
+ "required": [
876
+ "controlList"
877
+ ]
878
+ },
597
879
  "formField": {
598
880
  "type": "object",
599
881
  "properties": {
@@ -614,6 +896,126 @@
614
896
  }
615
897
  }
616
898
  },
899
+ "formGroup": {
900
+ "allOf": [
901
+ {
902
+ "type": "object",
903
+ "properties": {
904
+ "role": {
905
+ "type": "string",
906
+ "const": "group"
907
+ }
908
+ },
909
+ "required": [
910
+ "role"
911
+ ]
912
+ },
913
+ {
914
+ "oneOf": [
915
+ {
916
+ "allOf": [
917
+ {
918
+ "$ref": "#/definitions/baseFormGroup"
919
+ },
920
+ {
921
+ "type": "object",
922
+ "properties": {
923
+ "kind": {
924
+ "type": "string",
925
+ "const": "default",
926
+ "default": "default"
927
+ }
928
+ }
929
+ }
930
+ ]
931
+ }
932
+ ]
933
+ }
934
+ ]
935
+ },
936
+ "formTableAction": {
937
+ "allOf": [
938
+ {
939
+ "$ref": "#/definitions/baseTableAction"
940
+ },
941
+ {
942
+ "type": "object",
943
+ "properties": {
944
+ "kind": {
945
+ "type": "string",
946
+ "const": "form",
947
+ "default": "form"
948
+ },
949
+ "formInitial": {
950
+ "oneOf": [
951
+ {
952
+ "type": "object",
953
+ "description": "The mapping from the row object to the form initial object"
954
+ },
955
+ {
956
+ "type": "boolean",
957
+ "description": "If true the row object will be used as form initial object. If false the form initial object will be empty. Default is false.",
958
+ "default": false
959
+ }
960
+ ]
961
+ },
962
+ "formComponent": {
963
+ "type": "string"
964
+ },
965
+ "customComponent": {
966
+ "type": "boolean",
967
+ "default": false,
968
+ "description": "If true the schematic will not coerce the form component"
969
+ },
970
+ "loadFrom": {
971
+ "type": "object",
972
+ "properties": {
973
+ "operationId": {
974
+ "type": "string"
975
+ },
976
+ "scope": {
977
+ "type": "string",
978
+ "description": "The scope of package for the openapi classes"
979
+ },
980
+ "body": {
981
+ "oneOf": [
982
+ {
983
+ "type": "boolean",
984
+ "description": "Pass the full row as body for the operation request"
985
+ },
986
+ {
987
+ "type": "object",
988
+ "description": "Mapping of table columns to body properties - [request property]: [table column]",
989
+ "additionalProperties": true
990
+ }
991
+ ]
992
+ },
993
+ "parameters": {
994
+ "oneOf": [
995
+ {
996
+ "type": "boolean",
997
+ "description": "Pass the full row as parameters for the operation request"
998
+ },
999
+ {
1000
+ "type": "object",
1001
+ "description": "Mapping of table columns to parameters properties - [request property]: [table column]",
1002
+ "additionalProperties": true
1003
+ }
1004
+ ]
1005
+ }
1006
+ }
1007
+ },
1008
+ "form": {
1009
+ "alias": "formOptions",
1010
+ "$ref": "#/definitions/formComponent"
1011
+ }
1012
+ },
1013
+ "required": [
1014
+ "kind"
1015
+ ]
1016
+ }
1017
+ ]
1018
+ },
617
1019
  "general": {
618
1020
  "type": "object",
619
1021
  "properties": {
@@ -796,6 +1198,14 @@
796
1198
  "rowId": {
797
1199
  "$ref": "#/definitions/property"
798
1200
  },
1201
+ "filterList": {
1202
+ "alias": "filter",
1203
+ "type": "array",
1204
+ "items": {
1205
+ "$ref": "#/definitions/formControl"
1206
+ },
1207
+ "description": "List of table filter controls"
1208
+ },
799
1209
  "columnList": {
800
1210
  "alias": "column",
801
1211
  "type": "array",
@@ -868,6 +1278,111 @@
868
1278
  }
869
1279
  }
870
1280
  },
1281
+ "navigationTableAction": {
1282
+ "allOf": [
1283
+ {
1284
+ "$ref": "#/definitions/baseTableAction"
1285
+ },
1286
+ {
1287
+ "type": "object",
1288
+ "properties": {
1289
+ "kind": {
1290
+ "type": "string",
1291
+ "const": "navigation",
1292
+ "default": "navigation"
1293
+ },
1294
+ "route": {
1295
+ "type": "string",
1296
+ "description": "The route for the table action"
1297
+ },
1298
+ "relativeTo": {
1299
+ "type": "boolean",
1300
+ "description": "Use the current ActivatedRoute to resolve the route or not",
1301
+ "default": false
1302
+ }
1303
+ },
1304
+ "required": [
1305
+ "kind",
1306
+ "route"
1307
+ ]
1308
+ }
1309
+ ]
1310
+ },
1311
+ "openApiTableAction": {
1312
+ "allOf": [
1313
+ {
1314
+ "$ref": "#/definitions/baseTableAction"
1315
+ },
1316
+ {
1317
+ "type": "object",
1318
+ "properties": {
1319
+ "kind": {
1320
+ "type": "string",
1321
+ "const": "open-api",
1322
+ "default": "open-api"
1323
+ },
1324
+ "operationId": {
1325
+ "type": "string",
1326
+ "description": "The open api operationId for the table action"
1327
+ },
1328
+ "scope": {
1329
+ "type": "string",
1330
+ "description": "The scope of package for the openapi classes"
1331
+ },
1332
+ "body": {
1333
+ "oneOf": [
1334
+ {
1335
+ "type": "boolean",
1336
+ "description": "Pass the full row as body for the operation request"
1337
+ },
1338
+ {
1339
+ "type": "object",
1340
+ "description": "Mapping of table columns to body properties - [request property]: [table column]",
1341
+ "additionalProperties": true
1342
+ }
1343
+ ]
1344
+ },
1345
+ "parameters": {
1346
+ "oneOf": [
1347
+ {
1348
+ "type": "boolean",
1349
+ "description": "Pass the full row as parameters for the operation request"
1350
+ },
1351
+ {
1352
+ "type": "object",
1353
+ "description": "Mapping of table columns to parameters properties - [request property]: [table column]",
1354
+ "additionalProperties": true
1355
+ }
1356
+ ]
1357
+ }
1358
+ },
1359
+ "required": [
1360
+ "kind",
1361
+ "operationId"
1362
+ ]
1363
+ }
1364
+ ]
1365
+ },
1366
+ "operationTableAction": {
1367
+ "allOf": [
1368
+ {
1369
+ "$ref": "#/definitions/baseTableAction"
1370
+ },
1371
+ {
1372
+ "type": "object",
1373
+ "properties": {
1374
+ "kind": {
1375
+ "type": "string",
1376
+ "const": "operation",
1377
+ "default": "operation"
1378
+ }
1379
+ },
1380
+ "required": [
1381
+ "kind"
1382
+ ]
1383
+ }
1384
+ ]
1385
+ },
871
1386
  "option": {
872
1387
  "type": "object",
873
1388
  "properties": {
@@ -1066,60 +1581,39 @@
1066
1581
  },
1067
1582
  "tableAction": {
1068
1583
  "type": "object",
1069
- "properties": {
1070
- "type": {
1071
- "type": "string"
1072
- },
1073
- "refresh": {
1074
- "type": "boolean"
1075
- },
1076
- "confirm": {
1077
- "type": "boolean"
1078
- },
1079
- "tooltip": {
1080
- "type": "string"
1081
- },
1082
- "errorMessage": {
1083
- "type": "string"
1084
- },
1085
- "successMessage": {
1086
- "type": "string"
1087
- },
1088
- "priority": {
1089
- "type": "number"
1090
- },
1091
- "checkFunction": {
1092
- "type": "string"
1093
- },
1094
- "inHeader": {
1095
- "type": "boolean"
1096
- },
1097
- "role": {
1098
- "type": "string"
1099
- },
1100
- "icon": {
1101
- "type": "string"
1584
+ "oneOf": [
1585
+ {
1586
+ "allOf": [
1587
+ {
1588
+ "$ref": "#/definitions/baseTableAction"
1589
+ },
1590
+ {
1591
+ "type": "object",
1592
+ "properties": {
1593
+ "kind": {
1594
+ "type": "string",
1595
+ "const": "default",
1596
+ "default": "default"
1597
+ }
1598
+ }
1599
+ }
1600
+ ]
1102
1601
  },
1103
- "svgIcon": {
1104
- "type": "string"
1602
+ {
1603
+ "$ref": "#/definitions/dialogTableAction"
1105
1604
  },
1106
- "permission": {
1107
- "type": "string"
1605
+ {
1606
+ "$ref": "#/definitions/formTableAction"
1108
1607
  },
1109
- "color": {
1110
- "type": "string",
1111
- "description": "Value for the color input of the mat-button / mat-icon component"
1608
+ {
1609
+ "$ref": "#/definitions/navigationTableAction"
1112
1610
  },
1113
- "cssClass": {
1114
- "$ref": "#/definitions/cssClass"
1611
+ {
1612
+ "$ref": "#/definitions/openApiTableAction"
1115
1613
  },
1116
- "options": {
1117
- "type": "object",
1118
- "additionalProperties": true
1614
+ {
1615
+ "$ref": "#/definitions/operationTableAction"
1119
1616
  }
1120
- },
1121
- "required": [
1122
- "type"
1123
1617
  ]
1124
1618
  },
1125
1619
  "tableColumn": {