@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
@@ -311,6 +311,41 @@
311
311
  "name"
312
312
  ]
313
313
  },
314
+ "baseFormArray": {
315
+ "allOf": [
316
+ {
317
+ "$ref": "#/definitions/abstractControl"
318
+ },
319
+ {
320
+ "type": "object",
321
+ "properties": {
322
+ "controlList": {
323
+ "type": "array",
324
+ "description": "The list of controls in the group",
325
+ "items": {
326
+ "$ref": "#/definitions/control"
327
+ }
328
+ },
329
+ "legend": {
330
+ "type": "string"
331
+ },
332
+ "groupLegend": {
333
+ "type": "string"
334
+ },
335
+ "kind": {
336
+ "type": "string",
337
+ "description": "The kind of the array",
338
+ "const": "default",
339
+ "default": "default"
340
+ },
341
+ "role": {
342
+ "type": "string",
343
+ "const": "array"
344
+ }
345
+ }
346
+ }
347
+ ]
348
+ },
314
349
  "baseFormControl": {
315
350
  "allOf": [
316
351
  {
@@ -331,6 +366,93 @@
331
366
  }
332
367
  ]
333
368
  },
369
+ "baseFormGroup": {
370
+ "allOf": [
371
+ {
372
+ "$ref": "#/definitions/abstractControl"
373
+ },
374
+ {
375
+ "type": "object",
376
+ "properties": {
377
+ "controlList": {
378
+ "type": "array",
379
+ "description": "The list of controls in the group",
380
+ "items": {
381
+ "$ref": "#/definitions/control"
382
+ }
383
+ },
384
+ "legend": {
385
+ "type": "string"
386
+ },
387
+ "kind": {
388
+ "type": "string",
389
+ "description": "The kind of the group",
390
+ "const": "default",
391
+ "default": "default"
392
+ },
393
+ "role": {
394
+ "type": "string",
395
+ "const": "group"
396
+ }
397
+ }
398
+ }
399
+ ]
400
+ },
401
+ "baseTableAction": {
402
+ "type": "object",
403
+ "properties": {
404
+ "type": {
405
+ "type": "string"
406
+ },
407
+ "refresh": {
408
+ "type": "boolean"
409
+ },
410
+ "confirm": {
411
+ "type": "boolean"
412
+ },
413
+ "tooltip": {
414
+ "type": "string"
415
+ },
416
+ "errorMessage": {
417
+ "type": "string"
418
+ },
419
+ "successMessage": {
420
+ "type": "string"
421
+ },
422
+ "priority": {
423
+ "type": "number"
424
+ },
425
+ "checkFunction": {
426
+ "type": "string"
427
+ },
428
+ "inHeader": {
429
+ "type": "boolean"
430
+ },
431
+ "kind": {
432
+ "alias": "role",
433
+ "type": "string"
434
+ },
435
+ "icon": {
436
+ "type": "string"
437
+ },
438
+ "svgIcon": {
439
+ "type": "string"
440
+ },
441
+ "permission": {
442
+ "type": "string"
443
+ },
444
+ "color": {
445
+ "type": "string",
446
+ "description": "Value for the color input of the mat-button / mat-icon component"
447
+ },
448
+ "cssClass": {
449
+ "$ref": "#/definitions/cssClass"
450
+ }
451
+ },
452
+ "required": [
453
+ "type"
454
+ ]
455
+ },
334
456
  "baseTableColumn": {
335
457
  "type": "object",
336
458
  "properties": {
@@ -483,6 +605,19 @@
483
605
  }
484
606
  ]
485
607
  },
608
+ "control": {
609
+ "oneOf": [
610
+ {
611
+ "$ref": "#/definitions/formGroup"
612
+ },
613
+ {
614
+ "$ref": "#/definitions/formArray"
615
+ },
616
+ {
617
+ "$ref": "#/definitions/formControl"
618
+ }
619
+ ]
620
+ },
486
621
  "copyToClipboardTableColumn": {
487
622
  "allOf": [
488
623
  {
@@ -579,6 +714,138 @@
579
714
  }
580
715
  ]
581
716
  },
717
+ "dialogTableAction": {
718
+ "allOf": [
719
+ {
720
+ "$ref": "#/definitions/baseTableAction"
721
+ },
722
+ {
723
+ "type": "object",
724
+ "properties": {
725
+ "kind": {
726
+ "type": "string",
727
+ "const": "dialog",
728
+ "default": "dialog"
729
+ },
730
+ "withoutBody": {
731
+ "type": "boolean",
732
+ "description": "Whether the table action operation should be without body",
733
+ "default": false
734
+ },
735
+ "actionList": {
736
+ "alias": "action",
737
+ "type": "array",
738
+ "description": "The list of actions to be added to the dialog",
739
+ "items": {
740
+ "oneOf": [
741
+ {
742
+ "type": "string"
743
+ },
744
+ {
745
+ "type": "object",
746
+ "properties": {
747
+ "label": {
748
+ "type": "string"
749
+ },
750
+ "color": {
751
+ "type": "string"
752
+ },
753
+ "role": {
754
+ "type": "string",
755
+ "enum": [
756
+ "submit",
757
+ "close"
758
+ ]
759
+ }
760
+ }
761
+ }
762
+ ]
763
+ }
764
+ },
765
+ "title": {
766
+ "type": "string",
767
+ "description": "The title for the dialog"
768
+ }
769
+ },
770
+ "required": [
771
+ "kind",
772
+ "title"
773
+ ]
774
+ }
775
+ ]
776
+ },
777
+ "formArray": {
778
+ "allOf": [
779
+ {
780
+ "type": "object",
781
+ "properties": {
782
+ "role": {
783
+ "type": "string",
784
+ "const": "array"
785
+ }
786
+ },
787
+ "required": [
788
+ "role"
789
+ ]
790
+ },
791
+ {
792
+ "oneOf": [
793
+ {
794
+ "allOf": [
795
+ {
796
+ "$ref": "#/definitions/baseFormArray"
797
+ },
798
+ {
799
+ "type": "object",
800
+ "properties": {
801
+ "kind": {
802
+ "type": "string",
803
+ "const": "default",
804
+ "default": "default"
805
+ }
806
+ }
807
+ }
808
+ ]
809
+ }
810
+ ]
811
+ }
812
+ ]
813
+ },
814
+ "formComponent": {
815
+ "allOf": [
816
+ {
817
+ "$ref": "#/definitions/formDefinition"
818
+ },
819
+ {
820
+ "type": "object",
821
+ "properties": {
822
+ "window": {
823
+ "type": "boolean",
824
+ "description": "Whether the form can be opened in a window"
825
+ },
826
+ "role": {
827
+ "type": "string",
828
+ "description": "Define the role of the form"
829
+ },
830
+ "matFormFieldDefaultOptions": {
831
+ "appearance": {
832
+ "type": "string",
833
+ "description": "The appearance of the mat form field",
834
+ "enum": [
835
+ "legacy",
836
+ "standard",
837
+ "fill",
838
+ "outline"
839
+ ]
840
+ }
841
+ },
842
+ "identifier": {
843
+ "$ref": "#/definitions/accordionIdentifier"
844
+ }
845
+ }
846
+ }
847
+ ]
848
+ },
582
849
  "formControl": {
583
850
  "allOf": [
584
851
  {
@@ -635,6 +902,21 @@
635
902
  }
636
903
  ]
637
904
  },
905
+ "formDefinition": {
906
+ "type": "object",
907
+ "properties": {
908
+ "controlList": {
909
+ "alias": "control",
910
+ "type": "array",
911
+ "items": {
912
+ "$ref": "#/definitions/control"
913
+ }
914
+ }
915
+ },
916
+ "required": [
917
+ "controlList"
918
+ ]
919
+ },
638
920
  "formField": {
639
921
  "type": "object",
640
922
  "properties": {
@@ -655,6 +937,126 @@
655
937
  }
656
938
  }
657
939
  },
940
+ "formGroup": {
941
+ "allOf": [
942
+ {
943
+ "type": "object",
944
+ "properties": {
945
+ "role": {
946
+ "type": "string",
947
+ "const": "group"
948
+ }
949
+ },
950
+ "required": [
951
+ "role"
952
+ ]
953
+ },
954
+ {
955
+ "oneOf": [
956
+ {
957
+ "allOf": [
958
+ {
959
+ "$ref": "#/definitions/baseFormGroup"
960
+ },
961
+ {
962
+ "type": "object",
963
+ "properties": {
964
+ "kind": {
965
+ "type": "string",
966
+ "const": "default",
967
+ "default": "default"
968
+ }
969
+ }
970
+ }
971
+ ]
972
+ }
973
+ ]
974
+ }
975
+ ]
976
+ },
977
+ "formTableAction": {
978
+ "allOf": [
979
+ {
980
+ "$ref": "#/definitions/baseTableAction"
981
+ },
982
+ {
983
+ "type": "object",
984
+ "properties": {
985
+ "kind": {
986
+ "type": "string",
987
+ "const": "form",
988
+ "default": "form"
989
+ },
990
+ "formInitial": {
991
+ "oneOf": [
992
+ {
993
+ "type": "object",
994
+ "description": "The mapping from the row object to the form initial object"
995
+ },
996
+ {
997
+ "type": "boolean",
998
+ "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.",
999
+ "default": false
1000
+ }
1001
+ ]
1002
+ },
1003
+ "formComponent": {
1004
+ "type": "string"
1005
+ },
1006
+ "customComponent": {
1007
+ "type": "boolean",
1008
+ "default": false,
1009
+ "description": "If true the schematic will not coerce the form component"
1010
+ },
1011
+ "loadFrom": {
1012
+ "type": "object",
1013
+ "properties": {
1014
+ "operationId": {
1015
+ "type": "string"
1016
+ },
1017
+ "scope": {
1018
+ "type": "string",
1019
+ "description": "The scope of package for the openapi classes"
1020
+ },
1021
+ "body": {
1022
+ "oneOf": [
1023
+ {
1024
+ "type": "boolean",
1025
+ "description": "Pass the full row as body for the operation request"
1026
+ },
1027
+ {
1028
+ "type": "object",
1029
+ "description": "Mapping of table columns to body properties - [request property]: [table column]",
1030
+ "additionalProperties": true
1031
+ }
1032
+ ]
1033
+ },
1034
+ "parameters": {
1035
+ "oneOf": [
1036
+ {
1037
+ "type": "boolean",
1038
+ "description": "Pass the full row as parameters for the operation request"
1039
+ },
1040
+ {
1041
+ "type": "object",
1042
+ "description": "Mapping of table columns to parameters properties - [request property]: [table column]",
1043
+ "additionalProperties": true
1044
+ }
1045
+ ]
1046
+ }
1047
+ }
1048
+ },
1049
+ "form": {
1050
+ "alias": "formOptions",
1051
+ "$ref": "#/definitions/formComponent"
1052
+ }
1053
+ },
1054
+ "required": [
1055
+ "kind"
1056
+ ]
1057
+ }
1058
+ ]
1059
+ },
658
1060
  "general": {
659
1061
  "type": "object",
660
1062
  "properties": {
@@ -837,6 +1239,14 @@
837
1239
  "rowId": {
838
1240
  "$ref": "#/definitions/property"
839
1241
  },
1242
+ "filterList": {
1243
+ "alias": "filter",
1244
+ "type": "array",
1245
+ "items": {
1246
+ "$ref": "#/definitions/formControl"
1247
+ },
1248
+ "description": "List of table filter controls"
1249
+ },
840
1250
  "columnList": {
841
1251
  "alias": "column",
842
1252
  "type": "array",
@@ -909,6 +1319,111 @@
909
1319
  }
910
1320
  }
911
1321
  },
1322
+ "navigationTableAction": {
1323
+ "allOf": [
1324
+ {
1325
+ "$ref": "#/definitions/baseTableAction"
1326
+ },
1327
+ {
1328
+ "type": "object",
1329
+ "properties": {
1330
+ "kind": {
1331
+ "type": "string",
1332
+ "const": "navigation",
1333
+ "default": "navigation"
1334
+ },
1335
+ "route": {
1336
+ "type": "string",
1337
+ "description": "The route for the table action"
1338
+ },
1339
+ "relativeTo": {
1340
+ "type": "boolean",
1341
+ "description": "Use the current ActivatedRoute to resolve the route or not",
1342
+ "default": false
1343
+ }
1344
+ },
1345
+ "required": [
1346
+ "kind",
1347
+ "route"
1348
+ ]
1349
+ }
1350
+ ]
1351
+ },
1352
+ "openApiTableAction": {
1353
+ "allOf": [
1354
+ {
1355
+ "$ref": "#/definitions/baseTableAction"
1356
+ },
1357
+ {
1358
+ "type": "object",
1359
+ "properties": {
1360
+ "kind": {
1361
+ "type": "string",
1362
+ "const": "open-api",
1363
+ "default": "open-api"
1364
+ },
1365
+ "operationId": {
1366
+ "type": "string",
1367
+ "description": "The open api operationId for the table action"
1368
+ },
1369
+ "scope": {
1370
+ "type": "string",
1371
+ "description": "The scope of package for the openapi classes"
1372
+ },
1373
+ "body": {
1374
+ "oneOf": [
1375
+ {
1376
+ "type": "boolean",
1377
+ "description": "Pass the full row as body for the operation request"
1378
+ },
1379
+ {
1380
+ "type": "object",
1381
+ "description": "Mapping of table columns to body properties - [request property]: [table column]",
1382
+ "additionalProperties": true
1383
+ }
1384
+ ]
1385
+ },
1386
+ "parameters": {
1387
+ "oneOf": [
1388
+ {
1389
+ "type": "boolean",
1390
+ "description": "Pass the full row as parameters for the operation request"
1391
+ },
1392
+ {
1393
+ "type": "object",
1394
+ "description": "Mapping of table columns to parameters properties - [request property]: [table column]",
1395
+ "additionalProperties": true
1396
+ }
1397
+ ]
1398
+ }
1399
+ },
1400
+ "required": [
1401
+ "kind",
1402
+ "operationId"
1403
+ ]
1404
+ }
1405
+ ]
1406
+ },
1407
+ "operationTableAction": {
1408
+ "allOf": [
1409
+ {
1410
+ "$ref": "#/definitions/baseTableAction"
1411
+ },
1412
+ {
1413
+ "type": "object",
1414
+ "properties": {
1415
+ "kind": {
1416
+ "type": "string",
1417
+ "const": "operation",
1418
+ "default": "operation"
1419
+ }
1420
+ },
1421
+ "required": [
1422
+ "kind"
1423
+ ]
1424
+ }
1425
+ ]
1426
+ },
912
1427
  "option": {
913
1428
  "type": "object",
914
1429
  "properties": {
@@ -1107,60 +1622,39 @@
1107
1622
  },
1108
1623
  "tableAction": {
1109
1624
  "type": "object",
1110
- "properties": {
1111
- "type": {
1112
- "type": "string"
1113
- },
1114
- "refresh": {
1115
- "type": "boolean"
1116
- },
1117
- "confirm": {
1118
- "type": "boolean"
1119
- },
1120
- "tooltip": {
1121
- "type": "string"
1122
- },
1123
- "errorMessage": {
1124
- "type": "string"
1125
- },
1126
- "successMessage": {
1127
- "type": "string"
1128
- },
1129
- "priority": {
1130
- "type": "number"
1131
- },
1132
- "checkFunction": {
1133
- "type": "string"
1134
- },
1135
- "inHeader": {
1136
- "type": "boolean"
1137
- },
1138
- "role": {
1139
- "type": "string"
1140
- },
1141
- "icon": {
1142
- "type": "string"
1625
+ "oneOf": [
1626
+ {
1627
+ "allOf": [
1628
+ {
1629
+ "$ref": "#/definitions/baseTableAction"
1630
+ },
1631
+ {
1632
+ "type": "object",
1633
+ "properties": {
1634
+ "kind": {
1635
+ "type": "string",
1636
+ "const": "default",
1637
+ "default": "default"
1638
+ }
1639
+ }
1640
+ }
1641
+ ]
1143
1642
  },
1144
- "svgIcon": {
1145
- "type": "string"
1643
+ {
1644
+ "$ref": "#/definitions/dialogTableAction"
1146
1645
  },
1147
- "permission": {
1148
- "type": "string"
1646
+ {
1647
+ "$ref": "#/definitions/formTableAction"
1149
1648
  },
1150
- "color": {
1151
- "type": "string",
1152
- "description": "Value for the color input of the mat-button / mat-icon component"
1649
+ {
1650
+ "$ref": "#/definitions/navigationTableAction"
1153
1651
  },
1154
- "cssClass": {
1155
- "$ref": "#/definitions/cssClass"
1652
+ {
1653
+ "$ref": "#/definitions/openApiTableAction"
1156
1654
  },
1157
- "options": {
1158
- "type": "object",
1159
- "additionalProperties": true
1655
+ {
1656
+ "$ref": "#/definitions/operationTableAction"
1160
1657
  }
1161
- },
1162
- "required": [
1163
- "type"
1164
1658
  ]
1165
1659
  },
1166
1660
  "tableColumn": {
@@ -0,0 +1,2 @@
1
+ <rxap-navigate-back-button>
2
+ </rxap-navigate-back-button>
@@ -1,10 +1,5 @@
1
1
  <rxap-navigate-back-button>
2
2
  <ng-container *rxapDataSource="let data from accordionDataSource">
3
- {{#if header.title}}
4
- <h1>{{header.title}}</h1>
5
- {{/if}}
6
- {{#if header.property}}
7
3
  <h1>\{{ data.{{header.property.name}} }}</h1>
8
- {{/if}}
9
4
  </ng-container>
10
5
  </rxap-navigate-back-button>
@@ -0,0 +1,3 @@
1
+ <rxap-navigate-back-button>
2
+ <h1>{{header.title}}</h1>
3
+ </rxap-navigate-back-button>