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

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 (144) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/package.json +10 -9
  3. package/src/lib/backend/nest-js-backend-options.d.ts +1 -1
  4. package/src/lib/backend/nest-js-backend-options.js +1 -1
  5. package/src/lib/backend/nest-js-backend-options.js.map +1 -1
  6. package/src/lib/coerce-minimum-table-component.js +9 -2
  7. package/src/lib/coerce-minimum-table-component.js.map +1 -1
  8. package/src/lib/form/control/form-control.d.ts +1 -0
  9. package/src/lib/form/control/form-control.js +6 -1
  10. package/src/lib/form/control/form-control.js.map +1 -1
  11. package/src/lib/form/control.d.ts +1 -1
  12. package/src/lib/form/form-component.d.ts +15 -0
  13. package/src/lib/form/form-component.js +12 -0
  14. package/src/lib/form/form-component.js.map +1 -0
  15. package/src/lib/form/form-definition.d.ts +8 -0
  16. package/src/lib/form/form-definition.js +11 -0
  17. package/src/lib/form/form-definition.js.map +1 -0
  18. package/src/lib/mat-form-field-default-options.d.ts +8 -2
  19. package/src/lib/mat-form-field-default-options.js +8 -1
  20. package/src/lib/mat-form-field-default-options.js.map +1 -1
  21. package/src/lib/minimum-table-component-options.js +28 -35
  22. package/src/lib/minimum-table-component-options.js.map +1 -1
  23. package/src/lib/minimum-table-options.d.ts +6 -3
  24. package/src/lib/minimum-table-options.js +4 -1
  25. package/src/lib/minimum-table-options.js.map +1 -1
  26. package/src/lib/table/action/base-table-action.d.ts +25 -0
  27. package/src/lib/table/action/base-table-action.js +32 -0
  28. package/src/lib/table/action/base-table-action.js.map +1 -0
  29. package/src/lib/table/action/dialog-table-action.d.ts +15 -0
  30. package/src/lib/table/action/dialog-table-action.js +23 -0
  31. package/src/lib/table/action/dialog-table-action.js.map +1 -0
  32. package/src/lib/table/action/form-table-action.d.ts +19 -0
  33. package/src/lib/table/action/form-table-action.js +26 -0
  34. package/src/lib/table/action/form-table-action.js.map +1 -0
  35. package/src/lib/table/action/navigation-table-action.d.ts +12 -0
  36. package/src/lib/table/action/navigation-table-action.js +14 -0
  37. package/src/lib/table/action/navigation-table-action.js.map +1 -0
  38. package/src/lib/table/action/open-api-table-action.d.ts +16 -0
  39. package/src/lib/table/action/open-api-table-action.js +14 -0
  40. package/src/lib/table/action/open-api-table-action.js.map +1 -0
  41. package/src/lib/table/action/operation-table-action.d.ts +8 -0
  42. package/src/lib/table/action/operation-table-action.js +10 -0
  43. package/src/lib/table/action/operation-table-action.js.map +1 -0
  44. package/src/lib/table/table-action-kind.d.ts +9 -0
  45. package/src/lib/table/table-action-kind.js +17 -0
  46. package/src/lib/table/table-action-kind.js.map +1 -0
  47. package/src/lib/table/table-action.d.ts +11 -0
  48. package/src/lib/table/table-action.js +35 -0
  49. package/src/lib/table/table-action.js.map +1 -0
  50. package/src/lib/table/table-filter-column-rule.js +9 -5
  51. package/src/lib/table/table-filter-column-rule.js.map +1 -1
  52. package/src/lib/table-options.d.ts +5 -9
  53. package/src/lib/table-options.js.map +1 -1
  54. package/src/lib/tree-table-options.d.ts +5 -10
  55. package/src/lib/tree-table-options.js.map +1 -1
  56. package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +3 -1
  57. package/src/lib/use-pick-from-table-interface-as-form-type.js +19 -5
  58. package/src/lib/use-pick-from-table-interface-as-form-type.js.map +1 -1
  59. package/src/schema.json +201 -62
  60. package/src/schematics/accordion/accordion-component/index.js +5 -2
  61. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  62. package/src/schematics/accordion/accordion-component/schema.json +380 -48
  63. package/src/schematics/accordion/accordion-item-component/index.js +7 -4
  64. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  65. package/src/schematics/accordion/accordion-item-component/schema.json +380 -48
  66. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +2 -1
  67. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  68. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +380 -48
  69. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +534 -48
  70. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +3 -1
  71. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  72. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +534 -48
  73. package/src/schematics/base-table-action.schema.json +62 -0
  74. package/src/schematics/data-grid-component/index.js +4 -2
  75. package/src/schematics/data-grid-component/index.js.map +1 -1
  76. package/src/schematics/dialog-table-action.schema.json +65 -0
  77. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +7 -4
  78. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -1
  79. package/src/schematics/form/control/select-form-control/index.js +2 -1
  80. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  81. package/src/schematics/form/control/table-select-form-control/index.js +5 -3
  82. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  83. package/src/schematics/form/form-component/index.d.ts +2 -7
  84. package/src/schematics/form/form-component/index.js +7 -6
  85. package/src/schematics/form/form-component/index.js.map +1 -1
  86. package/src/schematics/form/form-component/schema.d.ts +2 -9
  87. package/src/schematics/form-table-action.schema.json +92 -0
  88. package/src/schematics/minimum-table.schema.json +11 -0
  89. package/src/schematics/navigation-table-action.schema.json +35 -0
  90. package/src/schematics/open-api-table-action.schema.json +60 -0
  91. package/src/schematics/operation-table-action.schema.json +26 -0
  92. package/src/schematics/table/action/dialog-table-action/index.d.ts +5 -9
  93. package/src/schematics/table/action/dialog-table-action/index.js +14 -22
  94. package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
  95. package/src/schematics/table/action/dialog-table-action/schema.d.ts +4 -6
  96. package/src/schematics/table/action/dialog-table-action/schema.json +1293 -100
  97. package/src/schematics/table/action/dialog-table-action/template.schema.json +4 -42
  98. package/src/schematics/table/action/form-table-action/index.d.ts +3 -11
  99. package/src/schematics/table/action/form-table-action/index.js +21 -18
  100. package/src/schematics/table/action/form-table-action/index.js.map +1 -1
  101. package/src/schematics/table/action/form-table-action/schema.d.ts +4 -14
  102. package/src/schematics/table/action/form-table-action/schema.json +331 -104
  103. package/src/schematics/table/action/form-table-action/template.schema.json +4 -59
  104. package/src/schematics/table/action/navigation-table-action/index.d.ts +3 -3
  105. package/src/schematics/table/action/navigation-table-action/index.js +2 -3
  106. package/src/schematics/table/action/navigation-table-action/index.js.map +1 -1
  107. package/src/schematics/table/action/navigation-table-action/schema.d.ts +4 -4
  108. package/src/schematics/table/action/navigation-table-action/schema.json +1293 -70
  109. package/src/schematics/table/action/navigation-table-action/template.schema.json +4 -12
  110. package/src/schematics/table/action/open-api-table-action/index.d.ts +2 -4
  111. package/src/schematics/table/action/open-api-table-action/index.js +2 -4
  112. package/src/schematics/table/action/open-api-table-action/index.js.map +1 -1
  113. package/src/schematics/table/action/open-api-table-action/schema.d.ts +4 -6
  114. package/src/schematics/table/action/open-api-table-action/schema.json +1286 -91
  115. package/src/schematics/table/action/open-api-table-action/template.schema.json +4 -40
  116. package/src/schematics/table/action/operation-table-action/index.d.ts +2 -1
  117. package/src/schematics/table/action/operation-table-action/index.js +8 -6
  118. package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
  119. package/src/schematics/table/action/operation-table-action/schema.d.ts +5 -3
  120. package/src/schematics/table/action/operation-table-action/schema.json +1296 -59
  121. package/src/schematics/table/action/operation-table-action/template.schema.json +6 -0
  122. package/src/schematics/table/table-action/index.d.ts +2 -1
  123. package/src/schematics/table/table-action/index.js +3 -2
  124. package/src/schematics/table/table-action/index.js.map +1 -1
  125. package/src/schematics/table/table-action/schema.d.ts +2 -2
  126. package/src/schematics/table/table-action/schema.json +1286 -52
  127. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +19 -1
  128. package/src/schematics/table/table-component/index.js +6 -5
  129. package/src/schematics/table/table-component/index.js.map +1 -1
  130. package/src/schematics/table/table-component/schema.json +534 -48
  131. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +19 -1
  132. package/src/schematics/table/tree-table-component/index.js +5 -3
  133. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  134. package/src/schematics/table/tree-table-component/schema.json +534 -48
  135. package/src/schematics/table-action.schema.json +47 -53
  136. package/src/schematics/tree-component/index.js +2 -1
  137. package/src/schematics/tree-component/index.js.map +1 -1
  138. package/src/template.schema.json +18 -0
  139. package/src/lib/table-action.d.ts +0 -13
  140. package/src/lib/table-action.js +0 -102
  141. package/src/lib/table-action.js.map +0 -1
  142. package/src/lib/table-row-action.d.ts +0 -21
  143. package/src/lib/table-row-action.js +0 -25
  144. package/src/lib/table-row-action.js.map +0 -1
@@ -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": {
@@ -909,6 +1311,111 @@
909
1311
  }
910
1312
  }
911
1313
  },
1314
+ "navigationTableAction": {
1315
+ "allOf": [
1316
+ {
1317
+ "$ref": "#/definitions/baseTableAction"
1318
+ },
1319
+ {
1320
+ "type": "object",
1321
+ "properties": {
1322
+ "kind": {
1323
+ "type": "string",
1324
+ "const": "navigation",
1325
+ "default": "navigation"
1326
+ },
1327
+ "route": {
1328
+ "type": "string",
1329
+ "description": "The route for the table action"
1330
+ },
1331
+ "relativeTo": {
1332
+ "type": "boolean",
1333
+ "description": "Use the current ActivatedRoute to resolve the route or not",
1334
+ "default": false
1335
+ }
1336
+ },
1337
+ "required": [
1338
+ "kind",
1339
+ "route"
1340
+ ]
1341
+ }
1342
+ ]
1343
+ },
1344
+ "openApiTableAction": {
1345
+ "allOf": [
1346
+ {
1347
+ "$ref": "#/definitions/baseTableAction"
1348
+ },
1349
+ {
1350
+ "type": "object",
1351
+ "properties": {
1352
+ "kind": {
1353
+ "type": "string",
1354
+ "const": "open-api",
1355
+ "default": "open-api"
1356
+ },
1357
+ "operationId": {
1358
+ "type": "string",
1359
+ "description": "The open api operationId for the table action"
1360
+ },
1361
+ "scope": {
1362
+ "type": "string",
1363
+ "description": "The scope of package for the openapi classes"
1364
+ },
1365
+ "body": {
1366
+ "oneOf": [
1367
+ {
1368
+ "type": "boolean",
1369
+ "description": "Pass the full row as body for the operation request"
1370
+ },
1371
+ {
1372
+ "type": "object",
1373
+ "description": "Mapping of table columns to body properties - [request property]: [table column]",
1374
+ "additionalProperties": true
1375
+ }
1376
+ ]
1377
+ },
1378
+ "parameters": {
1379
+ "oneOf": [
1380
+ {
1381
+ "type": "boolean",
1382
+ "description": "Pass the full row as parameters for the operation request"
1383
+ },
1384
+ {
1385
+ "type": "object",
1386
+ "description": "Mapping of table columns to parameters properties - [request property]: [table column]",
1387
+ "additionalProperties": true
1388
+ }
1389
+ ]
1390
+ }
1391
+ },
1392
+ "required": [
1393
+ "kind",
1394
+ "operationId"
1395
+ ]
1396
+ }
1397
+ ]
1398
+ },
1399
+ "operationTableAction": {
1400
+ "allOf": [
1401
+ {
1402
+ "$ref": "#/definitions/baseTableAction"
1403
+ },
1404
+ {
1405
+ "type": "object",
1406
+ "properties": {
1407
+ "kind": {
1408
+ "type": "string",
1409
+ "const": "operation",
1410
+ "default": "operation"
1411
+ }
1412
+ },
1413
+ "required": [
1414
+ "kind"
1415
+ ]
1416
+ }
1417
+ ]
1418
+ },
912
1419
  "option": {
913
1420
  "type": "object",
914
1421
  "properties": {
@@ -1189,60 +1696,39 @@
1189
1696
  },
1190
1697
  "tableAction": {
1191
1698
  "type": "object",
1192
- "properties": {
1193
- "type": {
1194
- "type": "string"
1195
- },
1196
- "refresh": {
1197
- "type": "boolean"
1198
- },
1199
- "confirm": {
1200
- "type": "boolean"
1201
- },
1202
- "tooltip": {
1203
- "type": "string"
1204
- },
1205
- "errorMessage": {
1206
- "type": "string"
1207
- },
1208
- "successMessage": {
1209
- "type": "string"
1210
- },
1211
- "priority": {
1212
- "type": "number"
1213
- },
1214
- "checkFunction": {
1215
- "type": "string"
1216
- },
1217
- "inHeader": {
1218
- "type": "boolean"
1219
- },
1220
- "role": {
1221
- "type": "string"
1222
- },
1223
- "icon": {
1224
- "type": "string"
1699
+ "oneOf": [
1700
+ {
1701
+ "allOf": [
1702
+ {
1703
+ "$ref": "#/definitions/baseTableAction"
1704
+ },
1705
+ {
1706
+ "type": "object",
1707
+ "properties": {
1708
+ "kind": {
1709
+ "type": "string",
1710
+ "const": "default",
1711
+ "default": "default"
1712
+ }
1713
+ }
1714
+ }
1715
+ ]
1225
1716
  },
1226
- "svgIcon": {
1227
- "type": "string"
1717
+ {
1718
+ "$ref": "#/definitions/dialogTableAction"
1228
1719
  },
1229
- "permission": {
1230
- "type": "string"
1720
+ {
1721
+ "$ref": "#/definitions/formTableAction"
1231
1722
  },
1232
- "color": {
1233
- "type": "string",
1234
- "description": "Value for the color input of the mat-button / mat-icon component"
1723
+ {
1724
+ "$ref": "#/definitions/navigationTableAction"
1235
1725
  },
1236
- "cssClass": {
1237
- "$ref": "#/definitions/cssClass"
1726
+ {
1727
+ "$ref": "#/definitions/openApiTableAction"
1238
1728
  },
1239
- "options": {
1240
- "type": "object",
1241
- "additionalProperties": true
1729
+ {
1730
+ "$ref": "#/definitions/operationTableAction"
1242
1731
  }
1243
- },
1244
- "required": [
1245
- "type"
1246
1732
  ]
1247
1733
  },
1248
1734
  "tableColumn": {
@@ -54,7 +54,7 @@ function treeTableComponentSchematicRule(normalizedOptions) {
54
54
  ]);
55
55
  }
56
56
  function nestjsBackendRule(normalizedOptions) {
57
- const { nestModule, directory, project, feature, shared, scope, identifier, controllerName, overwrite, } = normalizedOptions;
57
+ const { nestModule, directory, project, feature, shared, scope, identifier, controllerName, overwrite, backend, } = normalizedOptions;
58
58
  const { hasSharedModifier, } = (0, accordion_item_component_1.GetItemOptions)(normalizedOptions);
59
59
  const getRootOperationId = (0, tree_table_component_1.BuildTreeTableGetRootOperationId)(normalizedOptions);
60
60
  const getChildrenOperationId = (0, tree_table_component_1.BuildTreeTableGeChildrenOperationId)(normalizedOptions);
@@ -69,6 +69,7 @@ function nestjsBackendRule(normalizedOptions) {
69
69
  shared: hasSharedModifier,
70
70
  idProperty: identifier === null || identifier === void 0 ? void 0 : identifier.property,
71
71
  skipCoerce: true,
72
+ backend,
72
73
  }),
73
74
  () => console.log(`Modify the get children operation ...`),
74
75
  (0, schematics_ts_morph_1.CoerceGetChildrenOperation)({
@@ -80,6 +81,7 @@ function nestjsBackendRule(normalizedOptions) {
80
81
  shared: hasSharedModifier,
81
82
  idProperty: identifier === null || identifier === void 0 ? void 0 : identifier.property,
82
83
  skipCoerce: true,
84
+ backend,
83
85
  }),
84
86
  () => console.log(`Modify the get root proxy method ...`),
85
87
  (0, schematics_ts_morph_1.CoerceTreeTableRootProxyRemoteMethodClass)({
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/accordion/item/accordion-item-tree-table-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAGoC;AACpC,mEAKmC;AACnC,qEAA8D;AAE9D,mEAGwC;AACxC,+EAA0E;AAK1E,iEAA6D;AAC7D,iHAA8G;AAC9G,2EAAwE;AACxE,8EAG6C;AAC7C,6EAKwC;AAKxC,SAAgB,+CAA+C,CAC7D,OAAyD;IAEzD,MAAM,uCAAuC,GAAG,IAAA,2EAAgD,EAA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CAAC;SAC/B,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAXD,4BAWC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/accordion/item/accordion-item-tree-table-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAGoC;AACpC,mEAKmC;AACnC,qEAA8D;AAE9D,mEAGwC;AACxC,+EAA0E;AAK1E,iEAA6D;AAC7D,iHAA8G;AAC9G,2EAAwE;AACxE,8EAG6C;AAC7C,6EAKwC;AAKxC,SAAgB,+CAA+C,CAC7D,OAAyD;IAEzD,MAAM,uCAAuC,GAAG,IAAA,2EAAgD,EAAC,OAAO,CAAC,CAAC;IAC1G,OAAO,MAAM,CAAC,MAAM,iCACf,uCAAuC,GACvC,IAAA,gDAA+B,kCAC7B,OAAO,KACV,IAAI,EAAE,yCAAkB,CAAC,SAAS,IAClC,EACF,CAAC;AACL,CAAC;AAXD,0GAWC;AAED,SAAS,YAAY,CAAC,OAAyD;IAC7E,IAAA,6DAAkC,EAAC,OAAO,EAAE,qCAAqC,CAAC,CAAC;AACrF,CAAC;AAGD,SAAS,aAAa,CAAC,iBAAmE;IACxF,MAAM,EACJ,aAAa,EACb,OAAO,EACP,OAAO,EACP,SAAS,EACT,MAAM,EACN,SAAS,EACT,IAAI,GACL,GAAG,iBAAiB,CAAC;IACtB,MAAM,eAAe,+DAChB,cAAO,GACP,iBAAiB,KACpB,IAAI,KACD,IAAA,yCAAc,EAAC,iBAAiB,CAAC,CACrC,CAAC;IACF,OAAO,IAAA,kBAAK,EAAC;QACX,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC;QACxD,IAAA,6EAAqC,EAAC;YACpC,aAAa,EAAE,iBAAiB;YAChC,oBAAoB,EAAE,YAAY;YAClC,IAAI,EAAE,aAAa;YACnB,OAAO;YACP,OAAO;YACP,SAAS;YACT,MAAM;YACN,SAAS;YACT,QAAQ,EA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