@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
@@ -431,6 +431,61 @@
431
431
  }
432
432
  ]
433
433
  },
434
+ "baseTableAction": {
435
+ "type": "object",
436
+ "properties": {
437
+ "type": {
438
+ "type": "string"
439
+ },
440
+ "refresh": {
441
+ "type": "boolean"
442
+ },
443
+ "confirm": {
444
+ "type": "boolean"
445
+ },
446
+ "tooltip": {
447
+ "type": "string"
448
+ },
449
+ "errorMessage": {
450
+ "type": "string"
451
+ },
452
+ "successMessage": {
453
+ "type": "string"
454
+ },
455
+ "priority": {
456
+ "type": "number"
457
+ },
458
+ "checkFunction": {
459
+ "type": "string"
460
+ },
461
+ "inHeader": {
462
+ "type": "boolean"
463
+ },
464
+ "kind": {
465
+ "alias": "role",
466
+ "type": "string"
467
+ },
468
+ "icon": {
469
+ "type": "string"
470
+ },
471
+ "svgIcon": {
472
+ "type": "string"
473
+ },
474
+ "permission": {
475
+ "type": "string"
476
+ },
477
+ "color": {
478
+ "type": "string",
479
+ "description": "Value for the color input of the mat-button / mat-icon component"
480
+ },
481
+ "cssClass": {
482
+ "$ref": "#/definitions/cssClass"
483
+ }
484
+ },
485
+ "required": [
486
+ "type"
487
+ ]
488
+ },
434
489
  "baseTableColumn": {
435
490
  "type": "object",
436
491
  "properties": {
@@ -811,6 +866,66 @@
811
866
  }
812
867
  ]
813
868
  },
869
+ "dialogTableAction": {
870
+ "allOf": [
871
+ {
872
+ "$ref": "#/definitions/baseTableAction"
873
+ },
874
+ {
875
+ "type": "object",
876
+ "properties": {
877
+ "kind": {
878
+ "type": "string",
879
+ "const": "dialog",
880
+ "default": "dialog"
881
+ },
882
+ "withoutBody": {
883
+ "type": "boolean",
884
+ "description": "Whether the table action operation should be without body",
885
+ "default": false
886
+ },
887
+ "actionList": {
888
+ "alias": "action",
889
+ "type": "array",
890
+ "description": "The list of actions to be added to the dialog",
891
+ "items": {
892
+ "oneOf": [
893
+ {
894
+ "type": "string"
895
+ },
896
+ {
897
+ "type": "object",
898
+ "properties": {
899
+ "label": {
900
+ "type": "string"
901
+ },
902
+ "color": {
903
+ "type": "string"
904
+ },
905
+ "role": {
906
+ "type": "string",
907
+ "enum": [
908
+ "submit",
909
+ "close"
910
+ ]
911
+ }
912
+ }
913
+ }
914
+ ]
915
+ }
916
+ },
917
+ "title": {
918
+ "type": "string",
919
+ "description": "The title for the dialog"
920
+ }
921
+ },
922
+ "required": [
923
+ "kind",
924
+ "title"
925
+ ]
926
+ }
927
+ ]
928
+ },
814
929
  "formArray": {
815
930
  "allOf": [
816
931
  {
@@ -848,6 +963,41 @@
848
963
  }
849
964
  ]
850
965
  },
966
+ "formComponent": {
967
+ "allOf": [
968
+ {
969
+ "$ref": "#/definitions/formDefinition"
970
+ },
971
+ {
972
+ "type": "object",
973
+ "properties": {
974
+ "window": {
975
+ "type": "boolean",
976
+ "description": "Whether the form can be opened in a window"
977
+ },
978
+ "role": {
979
+ "type": "string",
980
+ "description": "Define the role of the form"
981
+ },
982
+ "matFormFieldDefaultOptions": {
983
+ "appearance": {
984
+ "type": "string",
985
+ "description": "The appearance of the mat form field",
986
+ "enum": [
987
+ "legacy",
988
+ "standard",
989
+ "fill",
990
+ "outline"
991
+ ]
992
+ }
993
+ },
994
+ "identifier": {
995
+ "$ref": "#/definitions/accordionIdentifier"
996
+ }
997
+ }
998
+ }
999
+ ]
1000
+ },
851
1001
  "formControl": {
852
1002
  "allOf": [
853
1003
  {
@@ -904,6 +1054,21 @@
904
1054
  }
905
1055
  ]
906
1056
  },
1057
+ "formDefinition": {
1058
+ "type": "object",
1059
+ "properties": {
1060
+ "controlList": {
1061
+ "alias": "control",
1062
+ "type": "array",
1063
+ "items": {
1064
+ "$ref": "#/definitions/control"
1065
+ }
1066
+ }
1067
+ },
1068
+ "required": [
1069
+ "controlList"
1070
+ ]
1071
+ },
907
1072
  "formField": {
908
1073
  "type": "object",
909
1074
  "properties": {
@@ -961,6 +1126,89 @@
961
1126
  }
962
1127
  ]
963
1128
  },
1129
+ "formTableAction": {
1130
+ "allOf": [
1131
+ {
1132
+ "$ref": "#/definitions/baseTableAction"
1133
+ },
1134
+ {
1135
+ "type": "object",
1136
+ "properties": {
1137
+ "kind": {
1138
+ "type": "string",
1139
+ "const": "form",
1140
+ "default": "form"
1141
+ },
1142
+ "formInitial": {
1143
+ "oneOf": [
1144
+ {
1145
+ "type": "object",
1146
+ "description": "The mapping from the row object to the form initial object"
1147
+ },
1148
+ {
1149
+ "type": "boolean",
1150
+ "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.",
1151
+ "default": false
1152
+ }
1153
+ ]
1154
+ },
1155
+ "formComponent": {
1156
+ "type": "string"
1157
+ },
1158
+ "customComponent": {
1159
+ "type": "boolean",
1160
+ "default": false,
1161
+ "description": "If true the schematic will not coerce the form component"
1162
+ },
1163
+ "loadFrom": {
1164
+ "type": "object",
1165
+ "properties": {
1166
+ "operationId": {
1167
+ "type": "string"
1168
+ },
1169
+ "scope": {
1170
+ "type": "string",
1171
+ "description": "The scope of package for the openapi classes"
1172
+ },
1173
+ "body": {
1174
+ "oneOf": [
1175
+ {
1176
+ "type": "boolean",
1177
+ "description": "Pass the full row as body for the operation request"
1178
+ },
1179
+ {
1180
+ "type": "object",
1181
+ "description": "Mapping of table columns to body properties - [request property]: [table column]",
1182
+ "additionalProperties": true
1183
+ }
1184
+ ]
1185
+ },
1186
+ "parameters": {
1187
+ "oneOf": [
1188
+ {
1189
+ "type": "boolean",
1190
+ "description": "Pass the full row as parameters for the operation request"
1191
+ },
1192
+ {
1193
+ "type": "object",
1194
+ "description": "Mapping of table columns to parameters properties - [request property]: [table column]",
1195
+ "additionalProperties": true
1196
+ }
1197
+ ]
1198
+ }
1199
+ }
1200
+ },
1201
+ "form": {
1202
+ "alias": "formOptions",
1203
+ "$ref": "#/definitions/formComponent"
1204
+ }
1205
+ },
1206
+ "required": [
1207
+ "kind"
1208
+ ]
1209
+ }
1210
+ ]
1211
+ },
964
1212
  "general": {
965
1213
  "type": "object",
966
1214
  "properties": {
@@ -1215,6 +1463,111 @@
1215
1463
  }
1216
1464
  }
1217
1465
  },
1466
+ "navigationTableAction": {
1467
+ "allOf": [
1468
+ {
1469
+ "$ref": "#/definitions/baseTableAction"
1470
+ },
1471
+ {
1472
+ "type": "object",
1473
+ "properties": {
1474
+ "kind": {
1475
+ "type": "string",
1476
+ "const": "navigation",
1477
+ "default": "navigation"
1478
+ },
1479
+ "route": {
1480
+ "type": "string",
1481
+ "description": "The route for the table action"
1482
+ },
1483
+ "relativeTo": {
1484
+ "type": "boolean",
1485
+ "description": "Use the current ActivatedRoute to resolve the route or not",
1486
+ "default": false
1487
+ }
1488
+ },
1489
+ "required": [
1490
+ "kind",
1491
+ "route"
1492
+ ]
1493
+ }
1494
+ ]
1495
+ },
1496
+ "openApiTableAction": {
1497
+ "allOf": [
1498
+ {
1499
+ "$ref": "#/definitions/baseTableAction"
1500
+ },
1501
+ {
1502
+ "type": "object",
1503
+ "properties": {
1504
+ "kind": {
1505
+ "type": "string",
1506
+ "const": "open-api",
1507
+ "default": "open-api"
1508
+ },
1509
+ "operationId": {
1510
+ "type": "string",
1511
+ "description": "The open api operationId for the table action"
1512
+ },
1513
+ "scope": {
1514
+ "type": "string",
1515
+ "description": "The scope of package for the openapi classes"
1516
+ },
1517
+ "body": {
1518
+ "oneOf": [
1519
+ {
1520
+ "type": "boolean",
1521
+ "description": "Pass the full row as body for the operation request"
1522
+ },
1523
+ {
1524
+ "type": "object",
1525
+ "description": "Mapping of table columns to body properties - [request property]: [table column]",
1526
+ "additionalProperties": true
1527
+ }
1528
+ ]
1529
+ },
1530
+ "parameters": {
1531
+ "oneOf": [
1532
+ {
1533
+ "type": "boolean",
1534
+ "description": "Pass the full row as parameters for the operation request"
1535
+ },
1536
+ {
1537
+ "type": "object",
1538
+ "description": "Mapping of table columns to parameters properties - [request property]: [table column]",
1539
+ "additionalProperties": true
1540
+ }
1541
+ ]
1542
+ }
1543
+ },
1544
+ "required": [
1545
+ "kind",
1546
+ "operationId"
1547
+ ]
1548
+ }
1549
+ ]
1550
+ },
1551
+ "operationTableAction": {
1552
+ "allOf": [
1553
+ {
1554
+ "$ref": "#/definitions/baseTableAction"
1555
+ },
1556
+ {
1557
+ "type": "object",
1558
+ "properties": {
1559
+ "kind": {
1560
+ "type": "string",
1561
+ "const": "operation",
1562
+ "default": "operation"
1563
+ }
1564
+ },
1565
+ "required": [
1566
+ "kind"
1567
+ ]
1568
+ }
1569
+ ]
1570
+ },
1218
1571
  "option": {
1219
1572
  "type": "object",
1220
1573
  "properties": {
@@ -1574,60 +1927,39 @@
1574
1927
  },
1575
1928
  "tableAction": {
1576
1929
  "type": "object",
1577
- "properties": {
1578
- "type": {
1579
- "type": "string"
1580
- },
1581
- "refresh": {
1582
- "type": "boolean"
1583
- },
1584
- "confirm": {
1585
- "type": "boolean"
1586
- },
1587
- "tooltip": {
1588
- "type": "string"
1589
- },
1590
- "errorMessage": {
1591
- "type": "string"
1592
- },
1593
- "successMessage": {
1594
- "type": "string"
1595
- },
1596
- "priority": {
1597
- "type": "number"
1598
- },
1599
- "checkFunction": {
1600
- "type": "string"
1601
- },
1602
- "inHeader": {
1603
- "type": "boolean"
1604
- },
1605
- "role": {
1606
- "type": "string"
1607
- },
1608
- "icon": {
1609
- "type": "string"
1930
+ "oneOf": [
1931
+ {
1932
+ "allOf": [
1933
+ {
1934
+ "$ref": "#/definitions/baseTableAction"
1935
+ },
1936
+ {
1937
+ "type": "object",
1938
+ "properties": {
1939
+ "kind": {
1940
+ "type": "string",
1941
+ "const": "default",
1942
+ "default": "default"
1943
+ }
1944
+ }
1945
+ }
1946
+ ]
1610
1947
  },
1611
- "svgIcon": {
1612
- "type": "string"
1948
+ {
1949
+ "$ref": "#/definitions/dialogTableAction"
1613
1950
  },
1614
- "permission": {
1615
- "type": "string"
1951
+ {
1952
+ "$ref": "#/definitions/formTableAction"
1616
1953
  },
1617
- "color": {
1618
- "type": "string",
1619
- "description": "Value for the color input of the mat-button / mat-icon component"
1954
+ {
1955
+ "$ref": "#/definitions/navigationTableAction"
1620
1956
  },
1621
- "cssClass": {
1622
- "$ref": "#/definitions/cssClass"
1957
+ {
1958
+ "$ref": "#/definitions/openApiTableAction"
1623
1959
  },
1624
- "options": {
1625
- "type": "object",
1626
- "additionalProperties": true
1960
+ {
1961
+ "$ref": "#/definitions/operationTableAction"
1627
1962
  }
1628
- },
1629
- "required": [
1630
- "type"
1631
1963
  ]
1632
1964
  },
1633
1965
  "tableColumn": {