@rxap/schematic-angular 16.2.0 → 16.3.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 (59) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/package.json +2 -2
  3. package/src/lib/angular-options.js +2 -1
  4. package/src/lib/angular-options.js.map +1 -1
  5. package/src/lib/backend-types.d.ts +2 -1
  6. package/src/lib/backend-types.js +1 -0
  7. package/src/lib/backend-types.js.map +1 -1
  8. package/src/lib/coerce-minimum-table-component.d.ts +4 -1
  9. package/src/lib/coerce-minimum-table-component.js +5 -0
  10. package/src/lib/coerce-minimum-table-component.js.map +1 -1
  11. package/src/lib/table/column/options-table-column.d.ts +11 -0
  12. package/src/lib/table/column/options-table-column.js +23 -0
  13. package/src/lib/table/column/options-table-column.js.map +1 -0
  14. package/src/lib/table/table-column-kind.d.ts +2 -1
  15. package/src/lib/table/table-column-kind.js +1 -0
  16. package/src/lib/table/table-column-kind.js.map +1 -1
  17. package/src/lib/table/table-column.js +3 -0
  18. package/src/lib/table/table-column.js.map +1 -1
  19. package/src/schema.json +57 -24
  20. package/src/schematics/accordion/accordion-component/schema.json +57 -24
  21. package/src/schematics/accordion/accordion-item-component/schema.json +57 -24
  22. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +28 -24
  23. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +57 -24
  24. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +57 -24
  25. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +57 -24
  26. package/src/schematics/accordion/templates/switch-accordion-item.hbs +1 -1
  27. package/src/schematics/backend.schema.json +2 -1
  28. package/src/schematics/data-grid-component/schema.json +28 -24
  29. package/src/schematics/dialog-component/schema.json +2 -1
  30. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +2 -1
  31. package/src/schematics/form/control/input-form-control/schema.json +2 -1
  32. package/src/schematics/form/control/select-form-control/schema.json +28 -24
  33. package/src/schematics/form/control/table-select-form-control/schema.json +2 -1
  34. package/src/schematics/form/form-array/schema.json +28 -24
  35. package/src/schematics/form/form-component/schema.json +28 -24
  36. package/src/schematics/form/form-control/schema.json +28 -24
  37. package/src/schematics/form/form-definition/schema.json +28 -24
  38. package/src/schematics/form/form-group/schema.json +28 -24
  39. package/src/schematics/option.schema.json +27 -0
  40. package/src/schematics/options-table-column.schema.json +33 -0
  41. package/src/schematics/route-component/schema.json +2 -1
  42. package/src/schematics/select-form-control.schema.json +4 -23
  43. package/src/schematics/table/action/dialog-table-action/schema.json +2 -1
  44. package/src/schematics/table/action/form-table-action/schema.json +28 -24
  45. package/src/schematics/table/action/navigation-table-action/schema.json +2 -1
  46. package/src/schematics/table/action/open-api-table-action/schema.json +2 -1
  47. package/src/schematics/table/action/operation-table-action/schema.json +2 -1
  48. package/src/schematics/table/header-button/form-table-header-button/schema.json +28 -24
  49. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +2 -1
  50. package/src/schematics/table/table-action/schema.json +2 -1
  51. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +3 -0
  52. package/src/schematics/table/table-component/schema.json +57 -24
  53. package/src/schematics/table/table-header-button/schema.json +2 -1
  54. package/src/schematics/table/templates/options-table-column.hbs +26 -0
  55. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +3 -0
  56. package/src/schematics/table/tree-table-component/schema.json +57 -24
  57. package/src/schematics/table-column.schema.json +6 -0
  58. package/src/schematics/tree-component/schema.json +2 -1
  59. package/src/template.schema.json +6 -0
@@ -273,7 +273,8 @@
273
273
  "none",
274
274
  "nestjs",
275
275
  "open-api",
276
- "local"
276
+ "local",
277
+ "data-source"
277
278
  ],
278
279
  "default": "none"
279
280
  },
@@ -1189,6 +1190,57 @@
1189
1190
  }
1190
1191
  }
1191
1192
  },
1193
+ "option": {
1194
+ "type": "object",
1195
+ "properties": {
1196
+ "display": {
1197
+ "type": "string"
1198
+ },
1199
+ "value": {
1200
+ "oneOf": [
1201
+ {
1202
+ "type": "string"
1203
+ },
1204
+ {
1205
+ "type": "number"
1206
+ },
1207
+ {
1208
+ "type": "boolean"
1209
+ },
1210
+ {
1211
+ "type": "object",
1212
+ "additionalProperties": true
1213
+ }
1214
+ ]
1215
+ }
1216
+ }
1217
+ },
1218
+ "optionsTableColumn": {
1219
+ "allOf": [
1220
+ {
1221
+ "$ref": "#/definitions/baseTableColumn"
1222
+ },
1223
+ {
1224
+ "type": "object",
1225
+ "properties": {
1226
+ "kind": {
1227
+ "type": "string",
1228
+ "const": "options"
1229
+ },
1230
+ "optionList": {
1231
+ "type": "array",
1232
+ "items": {
1233
+ "$ref": "#/definitions/option"
1234
+ }
1235
+ }
1236
+ },
1237
+ "required": [
1238
+ "kind",
1239
+ "optionList"
1240
+ ]
1241
+ }
1242
+ ]
1243
+ },
1192
1244
  "pipe": {
1193
1245
  "oneOf": [
1194
1246
  {
@@ -1271,29 +1323,7 @@
1271
1323
  "optionList": {
1272
1324
  "type": "array",
1273
1325
  "items": {
1274
- "type": "object",
1275
- "properties": {
1276
- "display": {
1277
- "type": "string"
1278
- },
1279
- "value": {
1280
- "oneOf": [
1281
- {
1282
- "type": "string"
1283
- },
1284
- {
1285
- "type": "number"
1286
- },
1287
- {
1288
- "type": "boolean"
1289
- },
1290
- {
1291
- "type": "object",
1292
- "additionalProperties": true
1293
- }
1294
- ]
1295
- }
1296
- }
1326
+ "$ref": "#/definitions/option"
1297
1327
  }
1298
1328
  },
1299
1329
  "backend": {
@@ -1621,6 +1651,9 @@
1621
1651
  },
1622
1652
  {
1623
1653
  "$ref": "#/definitions/spinnerTableColumn"
1654
+ },
1655
+ {
1656
+ "$ref": "#/definitions/optionsTableColumn"
1624
1657
  }
1625
1658
  ]
1626
1659
  },
@@ -240,7 +240,8 @@
240
240
  "none",
241
241
  "nestjs",
242
242
  "open-api",
243
- "local"
243
+ "local",
244
+ "data-source"
244
245
  ],
245
246
  "default": "none"
246
247
  },
@@ -883,6 +884,57 @@
883
884
  }
884
885
  }
885
886
  },
887
+ "option": {
888
+ "type": "object",
889
+ "properties": {
890
+ "display": {
891
+ "type": "string"
892
+ },
893
+ "value": {
894
+ "oneOf": [
895
+ {
896
+ "type": "string"
897
+ },
898
+ {
899
+ "type": "number"
900
+ },
901
+ {
902
+ "type": "boolean"
903
+ },
904
+ {
905
+ "type": "object",
906
+ "additionalProperties": true
907
+ }
908
+ ]
909
+ }
910
+ }
911
+ },
912
+ "optionsTableColumn": {
913
+ "allOf": [
914
+ {
915
+ "$ref": "#/definitions/baseTableColumn"
916
+ },
917
+ {
918
+ "type": "object",
919
+ "properties": {
920
+ "kind": {
921
+ "type": "string",
922
+ "const": "options"
923
+ },
924
+ "optionList": {
925
+ "type": "array",
926
+ "items": {
927
+ "$ref": "#/definitions/option"
928
+ }
929
+ }
930
+ },
931
+ "required": [
932
+ "kind",
933
+ "optionList"
934
+ ]
935
+ }
936
+ ]
937
+ },
886
938
  "pipe": {
887
939
  "oneOf": [
888
940
  {
@@ -965,29 +1017,7 @@
965
1017
  "optionList": {
966
1018
  "type": "array",
967
1019
  "items": {
968
- "type": "object",
969
- "properties": {
970
- "display": {
971
- "type": "string"
972
- },
973
- "value": {
974
- "oneOf": [
975
- {
976
- "type": "string"
977
- },
978
- {
979
- "type": "number"
980
- },
981
- {
982
- "type": "boolean"
983
- },
984
- {
985
- "type": "object",
986
- "additionalProperties": true
987
- }
988
- ]
989
- }
990
- }
1020
+ "$ref": "#/definitions/option"
991
1021
  }
992
1022
  },
993
1023
  "backend": {
@@ -1236,6 +1266,9 @@
1236
1266
  },
1237
1267
  {
1238
1268
  "$ref": "#/definitions/spinnerTableColumn"
1269
+ },
1270
+ {
1271
+ "$ref": "#/definitions/optionsTableColumn"
1239
1272
  }
1240
1273
  ]
1241
1274
  },
@@ -240,7 +240,8 @@
240
240
  "none",
241
241
  "nestjs",
242
242
  "open-api",
243
- "local"
243
+ "local",
244
+ "data-source"
244
245
  ],
245
246
  "default": "none"
246
247
  },
@@ -883,6 +884,57 @@
883
884
  }
884
885
  }
885
886
  },
887
+ "option": {
888
+ "type": "object",
889
+ "properties": {
890
+ "display": {
891
+ "type": "string"
892
+ },
893
+ "value": {
894
+ "oneOf": [
895
+ {
896
+ "type": "string"
897
+ },
898
+ {
899
+ "type": "number"
900
+ },
901
+ {
902
+ "type": "boolean"
903
+ },
904
+ {
905
+ "type": "object",
906
+ "additionalProperties": true
907
+ }
908
+ ]
909
+ }
910
+ }
911
+ },
912
+ "optionsTableColumn": {
913
+ "allOf": [
914
+ {
915
+ "$ref": "#/definitions/baseTableColumn"
916
+ },
917
+ {
918
+ "type": "object",
919
+ "properties": {
920
+ "kind": {
921
+ "type": "string",
922
+ "const": "options"
923
+ },
924
+ "optionList": {
925
+ "type": "array",
926
+ "items": {
927
+ "$ref": "#/definitions/option"
928
+ }
929
+ }
930
+ },
931
+ "required": [
932
+ "kind",
933
+ "optionList"
934
+ ]
935
+ }
936
+ ]
937
+ },
886
938
  "pipe": {
887
939
  "oneOf": [
888
940
  {
@@ -965,29 +1017,7 @@
965
1017
  "optionList": {
966
1018
  "type": "array",
967
1019
  "items": {
968
- "type": "object",
969
- "properties": {
970
- "display": {
971
- "type": "string"
972
- },
973
- "value": {
974
- "oneOf": [
975
- {
976
- "type": "string"
977
- },
978
- {
979
- "type": "number"
980
- },
981
- {
982
- "type": "boolean"
983
- },
984
- {
985
- "type": "object",
986
- "additionalProperties": true
987
- }
988
- ]
989
- }
990
- }
1020
+ "$ref": "#/definitions/option"
991
1021
  }
992
1022
  },
993
1023
  "backend": {
@@ -1154,6 +1184,9 @@
1154
1184
  },
1155
1185
  {
1156
1186
  "$ref": "#/definitions/spinnerTableColumn"
1187
+ },
1188
+ {
1189
+ "$ref": "#/definitions/optionsTableColumn"
1157
1190
  }
1158
1191
  ]
1159
1192
  },
@@ -1,7 +1,7 @@
1
1
 
2
2
  <ng-container [ngSwitch]="data.{{item.switch.property.name}}">
3
3
  {{#each item.switch.case}}
4
- <ng-template [ngSwitchCase]="{{this.test}}">
4
+ <ng-template [ngSwitchCase]="{{propertyValue this.test}}">
5
5
  {{#each this.itemList}}
6
6
  {{#if this.permission}}
7
7
  <ng-template rxapIfHasPermission="{{item.permission}}">
@@ -7,7 +7,8 @@
7
7
  "none",
8
8
  "nestjs",
9
9
  "open-api",
10
- "local"
10
+ "local",
11
+ "data-source"
11
12
  ],
12
13
  "default": "none"
13
14
  }
@@ -240,7 +240,8 @@
240
240
  "none",
241
241
  "nestjs",
242
242
  "open-api",
243
- "local"
243
+ "local",
244
+ "data-source"
244
245
  ],
245
246
  "default": "none"
246
247
  },
@@ -755,6 +756,31 @@
755
756
  }
756
757
  ]
757
758
  },
759
+ "option": {
760
+ "type": "object",
761
+ "properties": {
762
+ "display": {
763
+ "type": "string"
764
+ },
765
+ "value": {
766
+ "oneOf": [
767
+ {
768
+ "type": "string"
769
+ },
770
+ {
771
+ "type": "number"
772
+ },
773
+ {
774
+ "type": "boolean"
775
+ },
776
+ {
777
+ "type": "object",
778
+ "additionalProperties": true
779
+ }
780
+ ]
781
+ }
782
+ }
783
+ },
758
784
  "pipe": {
759
785
  "oneOf": [
760
786
  {
@@ -837,29 +863,7 @@
837
863
  "optionList": {
838
864
  "type": "array",
839
865
  "items": {
840
- "type": "object",
841
- "properties": {
842
- "display": {
843
- "type": "string"
844
- },
845
- "value": {
846
- "oneOf": [
847
- {
848
- "type": "string"
849
- },
850
- {
851
- "type": "number"
852
- },
853
- {
854
- "type": "boolean"
855
- },
856
- {
857
- "type": "object",
858
- "additionalProperties": true
859
- }
860
- ]
861
- }
862
- }
866
+ "$ref": "#/definitions/option"
863
867
  }
864
868
  },
865
869
  "backend": {
@@ -113,7 +113,8 @@
113
113
  "none",
114
114
  "nestjs",
115
115
  "open-api",
116
- "local"
116
+ "local",
117
+ "data-source"
117
118
  ],
118
119
  "default": "none"
119
120
  },
@@ -236,7 +236,8 @@
236
236
  "none",
237
237
  "nestjs",
238
238
  "open-api",
239
- "local"
239
+ "local",
240
+ "data-source"
240
241
  ],
241
242
  "default": "none"
242
243
  },
@@ -153,7 +153,8 @@
153
153
  "none",
154
154
  "nestjs",
155
155
  "open-api",
156
- "local"
156
+ "local",
157
+ "data-source"
157
158
  ],
158
159
  "default": "none"
159
160
  },
@@ -153,7 +153,8 @@
153
153
  "none",
154
154
  "nestjs",
155
155
  "open-api",
156
- "local"
156
+ "local",
157
+ "data-source"
157
158
  ],
158
159
  "default": "none"
159
160
  },
@@ -288,6 +289,31 @@
288
289
  }
289
290
  }
290
291
  },
292
+ "option": {
293
+ "type": "object",
294
+ "properties": {
295
+ "display": {
296
+ "type": "string"
297
+ },
298
+ "value": {
299
+ "oneOf": [
300
+ {
301
+ "type": "string"
302
+ },
303
+ {
304
+ "type": "number"
305
+ },
306
+ {
307
+ "type": "boolean"
308
+ },
309
+ {
310
+ "type": "object",
311
+ "additionalProperties": true
312
+ }
313
+ ]
314
+ }
315
+ }
316
+ },
291
317
  "property": {
292
318
  "oneOf": [
293
319
  {
@@ -342,29 +368,7 @@
342
368
  "optionList": {
343
369
  "type": "array",
344
370
  "items": {
345
- "type": "object",
346
- "properties": {
347
- "display": {
348
- "type": "string"
349
- },
350
- "value": {
351
- "oneOf": [
352
- {
353
- "type": "string"
354
- },
355
- {
356
- "type": "number"
357
- },
358
- {
359
- "type": "boolean"
360
- },
361
- {
362
- "type": "object",
363
- "additionalProperties": true
364
- }
365
- ]
366
- }
367
- }
371
+ "$ref": "#/definitions/option"
368
372
  }
369
373
  },
370
374
  "backend": {
@@ -170,7 +170,8 @@
170
170
  "none",
171
171
  "nestjs",
172
172
  "open-api",
173
- "local"
173
+ "local",
174
+ "data-source"
174
175
  ],
175
176
  "default": "none"
176
177
  },
@@ -253,7 +253,8 @@
253
253
  "none",
254
254
  "nestjs",
255
255
  "open-api",
256
- "local"
256
+ "local",
257
+ "data-source"
257
258
  ],
258
259
  "default": "none"
259
260
  },
@@ -676,6 +677,31 @@
676
677
  }
677
678
  ]
678
679
  },
680
+ "option": {
681
+ "type": "object",
682
+ "properties": {
683
+ "display": {
684
+ "type": "string"
685
+ },
686
+ "value": {
687
+ "oneOf": [
688
+ {
689
+ "type": "string"
690
+ },
691
+ {
692
+ "type": "number"
693
+ },
694
+ {
695
+ "type": "boolean"
696
+ },
697
+ {
698
+ "type": "object",
699
+ "additionalProperties": true
700
+ }
701
+ ]
702
+ }
703
+ }
704
+ },
679
705
  "property": {
680
706
  "oneOf": [
681
707
  {
@@ -730,29 +756,7 @@
730
756
  "optionList": {
731
757
  "type": "array",
732
758
  "items": {
733
- "type": "object",
734
- "properties": {
735
- "display": {
736
- "type": "string"
737
- },
738
- "value": {
739
- "oneOf": [
740
- {
741
- "type": "string"
742
- },
743
- {
744
- "type": "number"
745
- },
746
- {
747
- "type": "boolean"
748
- },
749
- {
750
- "type": "object",
751
- "additionalProperties": true
752
- }
753
- ]
754
- }
755
- }
759
+ "$ref": "#/definitions/option"
756
760
  }
757
761
  },
758
762
  "backend": {
@@ -240,7 +240,8 @@
240
240
  "none",
241
241
  "nestjs",
242
242
  "open-api",
243
- "local"
243
+ "local",
244
+ "data-source"
244
245
  ],
245
246
  "default": "none"
246
247
  },
@@ -713,6 +714,31 @@
713
714
  }
714
715
  ]
715
716
  },
717
+ "option": {
718
+ "type": "object",
719
+ "properties": {
720
+ "display": {
721
+ "type": "string"
722
+ },
723
+ "value": {
724
+ "oneOf": [
725
+ {
726
+ "type": "string"
727
+ },
728
+ {
729
+ "type": "number"
730
+ },
731
+ {
732
+ "type": "boolean"
733
+ },
734
+ {
735
+ "type": "object",
736
+ "additionalProperties": true
737
+ }
738
+ ]
739
+ }
740
+ }
741
+ },
716
742
  "property": {
717
743
  "oneOf": [
718
744
  {
@@ -767,29 +793,7 @@
767
793
  "optionList": {
768
794
  "type": "array",
769
795
  "items": {
770
- "type": "object",
771
- "properties": {
772
- "display": {
773
- "type": "string"
774
- },
775
- "value": {
776
- "oneOf": [
777
- {
778
- "type": "string"
779
- },
780
- {
781
- "type": "number"
782
- },
783
- {
784
- "type": "boolean"
785
- },
786
- {
787
- "type": "object",
788
- "additionalProperties": true
789
- }
790
- ]
791
- }
792
- }
796
+ "$ref": "#/definitions/option"
793
797
  }
794
798
  },
795
799
  "backend": {