@rxap/schematic-angular 18.1.0-dev.3 → 18.1.0-dev.5
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.
- package/CHANGELOG.md +17 -0
- package/collection.json +5 -0
- package/package.json +2 -2
- package/src/lib/accordion/header/base-accordion-header.js +1 -1
- package/src/lib/accordion/header/base-accordion-header.js.map +1 -1
- package/src/lib/accordion/item/base-accordion-item.d.ts +5 -0
- package/src/lib/accordion/item/base-accordion-item.js +7 -1
- package/src/lib/accordion/item/base-accordion-item.js.map +1 -1
- package/src/lib/accordion/item/nested-accordion-item.js +10 -1
- package/src/lib/accordion/item/nested-accordion-item.js.map +1 -1
- package/src/lib/accordion/item/switch-accordion-item.js +7 -5
- package/src/lib/accordion/item/switch-accordion-item.js.map +1 -1
- package/src/lib/angular-options.d.ts +1 -1
- package/src/lib/angular-options.js +1 -1
- package/src/lib/angular-options.js.map +1 -1
- package/src/lib/backend/backend-options.d.ts +1 -1
- package/src/lib/backend/backend-options.js +1 -1
- package/src/lib/backend/backend-options.js.map +1 -1
- package/src/lib/backend/backend-types.js.map +1 -0
- package/src/lib/backend/base-backend-options.d.ts +1 -1
- package/src/lib/backend/nest-js-backend-options.d.ts +1 -1
- package/src/lib/backend/nest-js-backend-options.js +1 -1
- package/src/lib/backend/nest-js-backend-options.js.map +1 -1
- package/src/lib/coerce-accordion-component.js +2 -12
- package/src/lib/coerce-accordion-component.js.map +1 -1
- package/src/lib/coerce-minimum-table-component.js +1 -1
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/data-source/base-data-source-options.d.ts +7 -0
- package/src/lib/data-source/base-data-source-options.js +12 -0
- package/src/lib/data-source/base-data-source-options.js.map +1 -0
- package/src/lib/data-source/data-source-kinds.d.ts +4 -0
- package/src/lib/data-source/data-source-kinds.js +9 -0
- package/src/lib/data-source/data-source-kinds.js.map +1 -0
- package/src/lib/data-source/data-source-options.d.ts +7 -0
- package/src/lib/data-source/data-source-options.js +29 -0
- package/src/lib/data-source/data-source-options.js.map +1 -0
- package/src/lib/data-source/import-data-source-options.d.ts +13 -0
- package/src/lib/data-source/import-data-source-options.js +14 -0
- package/src/lib/data-source/import-data-source-options.js.map +1 -0
- package/src/lib/form/control/autocomplete-form-control.d.ts +1 -1
- package/src/lib/form/control/autocomplete-form-control.js +1 -1
- package/src/lib/form/control/autocomplete-form-control.js.map +1 -1
- package/src/lib/form/control/autocomplete-table-select-form-control.js +3 -2
- package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -1
- package/src/lib/form/control/select-form-control.d.ts +4 -1
- package/src/lib/form/control/select-form-control.js +3 -2
- package/src/lib/form/control/select-form-control.js.map +1 -1
- package/src/lib/form/control/table-select-form-control.d.ts +15 -1
- package/src/lib/form/control/table-select-form-control.js +24 -3
- package/src/lib/form/control/table-select-form-control.js.map +1 -1
- package/src/lib/method/base-method-options.d.ts +7 -0
- package/src/lib/method/base-method-options.js +12 -0
- package/src/lib/method/base-method-options.js.map +1 -0
- package/src/lib/method/import-method-options.d.ts +13 -0
- package/src/lib/method/import-method-options.js +14 -0
- package/src/lib/method/import-method-options.js.map +1 -0
- package/src/lib/method/method-kinds.d.ts +5 -0
- package/src/lib/method/method-kinds.js +10 -0
- package/src/lib/method/method-kinds.js.map +1 -0
- package/src/lib/method/method-options.d.ts +11 -0
- package/src/lib/method/method-options.js +42 -0
- package/src/lib/method/method-options.js.map +1 -0
- package/src/lib/method/open-api-method-options.d.ts +12 -0
- package/src/lib/method/open-api-method-options.js +13 -0
- package/src/lib/method/open-api-method-options.js.map +1 -0
- package/src/lib/minimum-table-component-options.js +41 -32
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +2 -2
- package/src/lib/minimum-table-options.js +2 -2
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/table/header-button/base-header-button.d.ts +16 -0
- package/src/lib/table/header-button/base-header-button.js +23 -0
- package/src/lib/table/header-button/base-header-button.js.map +1 -0
- package/src/lib/table/header-button/form-header-button.d.ts +14 -0
- package/src/lib/table/header-button/form-header-button.js +22 -0
- package/src/lib/table/header-button/form-header-button.js.map +1 -0
- package/src/lib/table/header-button/method-header-button.d.ts +14 -0
- package/src/lib/table/header-button/method-header-button.js +22 -0
- package/src/lib/table/header-button/method-header-button.js.map +1 -0
- package/src/lib/table/header-button/navigation-header-button.d.ts +17 -0
- package/src/lib/table/header-button/navigation-header-button.js +22 -0
- package/src/lib/table/header-button/navigation-header-button.js.map +1 -0
- package/src/lib/table/header-button-kind.d.ts +6 -0
- package/src/lib/table/header-button-kind.js +11 -0
- package/src/lib/table/header-button-kind.js.map +1 -0
- package/src/lib/table/table-header-button.d.ts +7 -0
- package/src/lib/table/table-header-button.js +25 -0
- package/src/lib/table/table-header-button.js.map +1 -0
- package/src/schema.json +329 -62
- package/src/schematic-input.schema.json +19 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +1 -0
- package/src/schematics/accordion/accordion-component/index.js +48 -2
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.json +301 -36
- package/src/schematics/accordion/accordion-item-component/index.js +6 -2
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.json +301 -36
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +164 -0
- package/src/schematics/accordion/item/accordion-item-nested-component/schema.json +301 -36
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +301 -36
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +299 -34
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +299 -34
- package/src/schematics/autocomplete-table-select-form-control.schema.json +20 -0
- package/src/schematics/base-data-source.schema.json +10 -0
- package/src/schematics/base-header-button.schema.json +41 -0
- package/src/schematics/base-method.schema.json +10 -0
- package/src/schematics/data-grid-component/index.js +1 -1
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +164 -0
- package/src/schematics/data-source.schema.json +34 -0
- package/src/schematics/form/control/autocomplete-form-control/index.js +3 -3
- package/src/schematics/form/control/autocomplete-form-control/index.js.map +1 -1
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.d.ts +2 -1
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +343 -215
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +150 -0
- package/src/schematics/form/control/select-form-control/index.js +72 -6
- package/src/schematics/form/control/select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/schema.json +150 -0
- package/src/schematics/form/form-array/schema.json +164 -0
- package/src/schematics/form/form-component/index.js +1 -1
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.json +164 -0
- package/src/schematics/form/form-control/schema.json +164 -0
- package/src/schematics/form/form-definition/schema.json +164 -0
- package/src/schematics/form/form-group/schema.json +164 -0
- package/src/schematics/form-header-button.schema.json +31 -0
- package/src/schematics/header-button.schema.json +37 -33
- package/src/schematics/import-data-source.schema.json +31 -0
- package/src/schematics/import-method.schema.json +31 -0
- package/src/schematics/method-header-button.schema.json +31 -0
- package/src/schematics/method.schema.json +40 -0
- package/src/schematics/navigation-header-button.schema.json +31 -0
- package/src/schematics/open-api-method.schema.json +28 -0
- package/src/schematics/property-accordion-header.schema.json +2 -2
- package/src/schematics/table/action/dialog-table-action/schema.json +164 -0
- package/src/schematics/table/action/form-table-action/index.js +8 -2
- package/src/schematics/table/action/form-table-action/index.js.map +1 -1
- package/src/schematics/table/action/form-table-action/schema.json +164 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +164 -0
- package/src/schematics/table/action/open-api-table-action/schema.json +164 -0
- package/src/schematics/table/action/operation-table-action/index.js +1 -1
- package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
- package/src/schematics/table/action/operation-table-action/schema.json +164 -0
- package/src/schematics/table/header-button/form-table-header-button/index.d.ts +3 -11
- package/src/schematics/table/header-button/form-table-header-button/index.js +21 -24
- package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
- package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +4 -13
- package/src/schematics/table/header-button/form-table-header-button/schema.json +297 -45
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +3 -16
- package/src/schematics/table/header-button/method-table-header-button/index.d.ts +8 -0
- package/src/schematics/table/header-button/method-table-header-button/index.js +91 -0
- package/src/schematics/table/header-button/method-table-header-button/index.js.map +1 -0
- package/src/schematics/table/header-button/method-table-header-button/schema.d.ts +6 -0
- package/src/schematics/table/header-button/method-table-header-button/schema.json +1502 -0
- package/src/schematics/table/header-button/method-table-header-button/template.schema.json +20 -0
- package/src/schematics/table/header-button/navigation-table-header-button/index.d.ts +3 -3
- package/src/schematics/table/header-button/navigation-table-header-button/index.js +9 -4
- package/src/schematics/table/header-button/navigation-table-header-button/index.js.map +1 -1
- package/src/schematics/table/header-button/navigation-table-header-button/schema.d.ts +4 -4
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +1342 -49
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +4 -12
- package/src/schematics/table/table-action/schema.json +164 -0
- package/src/schematics/table/table-component/index.js +1 -1
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +299 -34
- package/src/schematics/table/table-header-button/index.d.ts +4 -4
- package/src/schematics/table/table-header-button/index.js +2 -2
- package/src/schematics/table/table-header-button/index.js.map +1 -1
- package/src/schematics/table/table-header-button/schema.d.ts +2 -3
- package/src/schematics/table/table-header-button/schema.json +1333 -29
- package/src/schematics/table/tree-table-component/index.js +1 -1
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +299 -34
- package/src/schematics/table-select-form-control.schema.json +20 -0
- package/src/template.schema.json +36 -0
- package/src/lib/backend-types.js.map +0 -1
- package/src/lib/table-header-button.d.ts +0 -16
- package/src/lib/table-header-button.js +0 -78
- package/src/lib/table-header-button.js.map +0 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.stories.ts.hbs +0 -34
- /package/src/lib/{backend-types.d.ts → backend/backend-types.d.ts} +0 -0
- /package/src/lib/{backend-types.js → backend/backend-types.js} +0 -0
|
@@ -217,6 +217,17 @@
|
|
|
217
217
|
"type": "string",
|
|
218
218
|
"const": "autocomplete-table-select"
|
|
219
219
|
},
|
|
220
|
+
"dataSource": {
|
|
221
|
+
"$ref": "#/definitions/dataSource"
|
|
222
|
+
},
|
|
223
|
+
"options": {
|
|
224
|
+
"type": "object",
|
|
225
|
+
"properties": {
|
|
226
|
+
"method": {
|
|
227
|
+
"$ref": "#/definitions/method"
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
},
|
|
220
231
|
"placeholder": {
|
|
221
232
|
"type": "string"
|
|
222
233
|
},
|
|
@@ -275,6 +286,9 @@
|
|
|
275
286
|
"properties": {
|
|
276
287
|
"upstream": {
|
|
277
288
|
"$ref": "#/definitions/upstream"
|
|
289
|
+
},
|
|
290
|
+
"method": {
|
|
291
|
+
"$ref": "#/definitions/method"
|
|
278
292
|
}
|
|
279
293
|
}
|
|
280
294
|
}
|
|
@@ -322,6 +336,14 @@
|
|
|
322
336
|
"description": "The backend that should be used to handel data",
|
|
323
337
|
"default": "none"
|
|
324
338
|
},
|
|
339
|
+
"baseDataSource": {
|
|
340
|
+
"type": "object",
|
|
341
|
+
"properties": {
|
|
342
|
+
"kind": {
|
|
343
|
+
"type": "string"
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
},
|
|
325
347
|
"baseFormArray": {
|
|
326
348
|
"allOf": [
|
|
327
349
|
{
|
|
@@ -409,6 +431,53 @@
|
|
|
409
431
|
}
|
|
410
432
|
]
|
|
411
433
|
},
|
|
434
|
+
"baseHeaderButton": {
|
|
435
|
+
"type": "object",
|
|
436
|
+
"properties": {
|
|
437
|
+
"kind": {
|
|
438
|
+
"type": "string"
|
|
439
|
+
},
|
|
440
|
+
"permission": {
|
|
441
|
+
"type": "string"
|
|
442
|
+
},
|
|
443
|
+
"icon": {
|
|
444
|
+
"type": "string"
|
|
445
|
+
},
|
|
446
|
+
"svgIcon": {
|
|
447
|
+
"type": "string"
|
|
448
|
+
},
|
|
449
|
+
"refresh": {
|
|
450
|
+
"type": "boolean",
|
|
451
|
+
"description": "Whether the table action should refresh the table after execution",
|
|
452
|
+
"default": false
|
|
453
|
+
},
|
|
454
|
+
"confirm": {
|
|
455
|
+
"type": "boolean",
|
|
456
|
+
"description": "Whether the table action should confirm before execution",
|
|
457
|
+
"default": false
|
|
458
|
+
},
|
|
459
|
+
"tooltip": {
|
|
460
|
+
"type": "string",
|
|
461
|
+
"description": "The tooltip for the table action"
|
|
462
|
+
},
|
|
463
|
+
"errorMessage": {
|
|
464
|
+
"type": "string",
|
|
465
|
+
"description": "The error message for the table action"
|
|
466
|
+
},
|
|
467
|
+
"successMessage": {
|
|
468
|
+
"type": "string",
|
|
469
|
+
"description": "The success message for the table action"
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"baseMethod": {
|
|
474
|
+
"type": "object",
|
|
475
|
+
"properties": {
|
|
476
|
+
"kind": {
|
|
477
|
+
"type": "string"
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
},
|
|
412
481
|
"baseTableAction": {
|
|
413
482
|
"type": "object",
|
|
414
483
|
"properties": {
|
|
@@ -703,6 +772,30 @@
|
|
|
703
772
|
}
|
|
704
773
|
]
|
|
705
774
|
},
|
|
775
|
+
"dataSource": {
|
|
776
|
+
"oneOf": [
|
|
777
|
+
{
|
|
778
|
+
"allOf": [
|
|
779
|
+
{
|
|
780
|
+
"$ref": "#/definitions/baseDataSource"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"type": "object",
|
|
784
|
+
"properties": {
|
|
785
|
+
"kind": {
|
|
786
|
+
"type": "string",
|
|
787
|
+
"const": "default",
|
|
788
|
+
"default": "default"
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
]
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"$ref": "#/definitions/importDataSource"
|
|
796
|
+
}
|
|
797
|
+
]
|
|
798
|
+
},
|
|
706
799
|
"dateTableColumn": {
|
|
707
800
|
"allOf": [
|
|
708
801
|
{
|
|
@@ -988,6 +1081,29 @@
|
|
|
988
1081
|
}
|
|
989
1082
|
]
|
|
990
1083
|
},
|
|
1084
|
+
"formHeaderButton": {
|
|
1085
|
+
"allOf": [
|
|
1086
|
+
{
|
|
1087
|
+
"$ref": "#/definitions/baseHeaderButton"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"type": "object",
|
|
1091
|
+
"properties": {
|
|
1092
|
+
"kind": {
|
|
1093
|
+
"type": "string",
|
|
1094
|
+
"const": "form",
|
|
1095
|
+
"default": "form"
|
|
1096
|
+
},
|
|
1097
|
+
"form": {
|
|
1098
|
+
"$ref": "#/definitions/formComponent"
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
"required": [
|
|
1102
|
+
"form"
|
|
1103
|
+
]
|
|
1104
|
+
}
|
|
1105
|
+
]
|
|
1106
|
+
},
|
|
991
1107
|
"formTableAction": {
|
|
992
1108
|
"allOf": [
|
|
993
1109
|
{
|
|
@@ -1108,44 +1224,34 @@
|
|
|
1108
1224
|
}
|
|
1109
1225
|
},
|
|
1110
1226
|
"headerButton": {
|
|
1111
|
-
"
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
"type": "boolean",
|
|
1129
|
-
"description": "Whether the table action should confirm before execution",
|
|
1130
|
-
"default": false
|
|
1131
|
-
},
|
|
1132
|
-
"tooltip": {
|
|
1133
|
-
"type": "string",
|
|
1134
|
-
"description": "The tooltip for the table action"
|
|
1227
|
+
"oneOf": [
|
|
1228
|
+
{
|
|
1229
|
+
"allOf": [
|
|
1230
|
+
{
|
|
1231
|
+
"$ref": "#/definitions/baseHeaderButton"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
"type": "object",
|
|
1235
|
+
"properties": {
|
|
1236
|
+
"kind": {
|
|
1237
|
+
"type": "string",
|
|
1238
|
+
"const": "default",
|
|
1239
|
+
"default": "default"
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
]
|
|
1135
1244
|
},
|
|
1136
|
-
|
|
1137
|
-
"
|
|
1138
|
-
"description": "The error message for the table action"
|
|
1245
|
+
{
|
|
1246
|
+
"$ref": "#/definitions/formHeaderButton"
|
|
1139
1247
|
},
|
|
1140
|
-
|
|
1141
|
-
"
|
|
1142
|
-
"description": "The success message for the table action"
|
|
1248
|
+
{
|
|
1249
|
+
"$ref": "#/definitions/navigationHeaderButton"
|
|
1143
1250
|
},
|
|
1144
|
-
|
|
1145
|
-
"
|
|
1146
|
-
"additionalProperties": true
|
|
1251
|
+
{
|
|
1252
|
+
"$ref": "#/definitions/methodHeaderButton"
|
|
1147
1253
|
}
|
|
1148
|
-
|
|
1254
|
+
]
|
|
1149
1255
|
},
|
|
1150
1256
|
"iconTableColumn": {
|
|
1151
1257
|
"allOf": [
|
|
@@ -1166,6 +1272,52 @@
|
|
|
1166
1272
|
}
|
|
1167
1273
|
]
|
|
1168
1274
|
},
|
|
1275
|
+
"importDataSource": {
|
|
1276
|
+
"allOf": [
|
|
1277
|
+
{
|
|
1278
|
+
"$ref": "#/definitions/baseDataSource"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"type": "object",
|
|
1282
|
+
"properties": {
|
|
1283
|
+
"kind": {
|
|
1284
|
+
"type": "string",
|
|
1285
|
+
"const": "import",
|
|
1286
|
+
"default": "import"
|
|
1287
|
+
},
|
|
1288
|
+
"import": {
|
|
1289
|
+
"$ref": "#/definitions/type"
|
|
1290
|
+
}
|
|
1291
|
+
},
|
|
1292
|
+
"required": [
|
|
1293
|
+
"import"
|
|
1294
|
+
]
|
|
1295
|
+
}
|
|
1296
|
+
]
|
|
1297
|
+
},
|
|
1298
|
+
"importMethod": {
|
|
1299
|
+
"allOf": [
|
|
1300
|
+
{
|
|
1301
|
+
"$ref": "#/definitions/baseMethod"
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"type": "object",
|
|
1305
|
+
"properties": {
|
|
1306
|
+
"kind": {
|
|
1307
|
+
"type": "string",
|
|
1308
|
+
"const": "import",
|
|
1309
|
+
"default": "import"
|
|
1310
|
+
},
|
|
1311
|
+
"import": {
|
|
1312
|
+
"$ref": "#/definitions/type"
|
|
1313
|
+
}
|
|
1314
|
+
},
|
|
1315
|
+
"required": [
|
|
1316
|
+
"import"
|
|
1317
|
+
]
|
|
1318
|
+
}
|
|
1319
|
+
]
|
|
1320
|
+
},
|
|
1169
1321
|
"inputFormControl": {
|
|
1170
1322
|
"allOf": [
|
|
1171
1323
|
{
|
|
@@ -1237,6 +1389,56 @@
|
|
|
1237
1389
|
}
|
|
1238
1390
|
]
|
|
1239
1391
|
},
|
|
1392
|
+
"method": {
|
|
1393
|
+
"oneOf": [
|
|
1394
|
+
{
|
|
1395
|
+
"allOf": [
|
|
1396
|
+
{
|
|
1397
|
+
"$ref": "#/definitions/baseMethod"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"type": "object",
|
|
1401
|
+
"properties": {
|
|
1402
|
+
"kind": {
|
|
1403
|
+
"type": "string",
|
|
1404
|
+
"const": "default",
|
|
1405
|
+
"default": "default"
|
|
1406
|
+
}
|
|
1407
|
+
}
|
|
1408
|
+
}
|
|
1409
|
+
]
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"$ref": "#/definitions/importMethod"
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
"$ref": "#/definitions/openApiMethod"
|
|
1416
|
+
}
|
|
1417
|
+
]
|
|
1418
|
+
},
|
|
1419
|
+
"methodHeaderButton": {
|
|
1420
|
+
"allOf": [
|
|
1421
|
+
{
|
|
1422
|
+
"$ref": "#/definitions/baseHeaderButton"
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
"type": "object",
|
|
1426
|
+
"properties": {
|
|
1427
|
+
"kind": {
|
|
1428
|
+
"type": "string",
|
|
1429
|
+
"const": "method",
|
|
1430
|
+
"default": "method"
|
|
1431
|
+
},
|
|
1432
|
+
"method": {
|
|
1433
|
+
"$ref": "#/definitions/method"
|
|
1434
|
+
}
|
|
1435
|
+
},
|
|
1436
|
+
"required": [
|
|
1437
|
+
"method"
|
|
1438
|
+
]
|
|
1439
|
+
}
|
|
1440
|
+
]
|
|
1441
|
+
},
|
|
1240
1442
|
"minimumTable": {
|
|
1241
1443
|
"type": "object",
|
|
1242
1444
|
"properties": {
|
|
@@ -1333,6 +1535,32 @@
|
|
|
1333
1535
|
}
|
|
1334
1536
|
}
|
|
1335
1537
|
},
|
|
1538
|
+
"navigationHeaderButton": {
|
|
1539
|
+
"allOf": [
|
|
1540
|
+
{
|
|
1541
|
+
"$ref": "#/definitions/baseHeaderButton"
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"type": "object",
|
|
1545
|
+
"properties": {
|
|
1546
|
+
"kind": {
|
|
1547
|
+
"type": "string",
|
|
1548
|
+
"const": "navigation",
|
|
1549
|
+
"default": "navigation"
|
|
1550
|
+
},
|
|
1551
|
+
"route": {
|
|
1552
|
+
"type": "string"
|
|
1553
|
+
},
|
|
1554
|
+
"relativeTo": {
|
|
1555
|
+
"type": "boolean"
|
|
1556
|
+
}
|
|
1557
|
+
},
|
|
1558
|
+
"required": [
|
|
1559
|
+
"route"
|
|
1560
|
+
]
|
|
1561
|
+
}
|
|
1562
|
+
]
|
|
1563
|
+
},
|
|
1336
1564
|
"navigationTableAction": {
|
|
1337
1565
|
"allOf": [
|
|
1338
1566
|
{
|
|
@@ -1363,6 +1591,29 @@
|
|
|
1363
1591
|
}
|
|
1364
1592
|
]
|
|
1365
1593
|
},
|
|
1594
|
+
"openApiMethod": {
|
|
1595
|
+
"allOf": [
|
|
1596
|
+
{
|
|
1597
|
+
"$ref": "#/definitions/baseMethod"
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
"type": "object",
|
|
1601
|
+
"properties": {
|
|
1602
|
+
"kind": {
|
|
1603
|
+
"type": "string",
|
|
1604
|
+
"const": "open-api",
|
|
1605
|
+
"default": "open-api"
|
|
1606
|
+
},
|
|
1607
|
+
"operationId": {
|
|
1608
|
+
"type": "string"
|
|
1609
|
+
}
|
|
1610
|
+
},
|
|
1611
|
+
"required": [
|
|
1612
|
+
"operationId"
|
|
1613
|
+
]
|
|
1614
|
+
}
|
|
1615
|
+
]
|
|
1616
|
+
},
|
|
1366
1617
|
"openApiTableAction": {
|
|
1367
1618
|
"allOf": [
|
|
1368
1619
|
{
|
|
@@ -1786,6 +2037,17 @@
|
|
|
1786
2037
|
"type": "string",
|
|
1787
2038
|
"const": "table-select"
|
|
1788
2039
|
},
|
|
2040
|
+
"dataSource": {
|
|
2041
|
+
"$ref": "#/definitions/dataSource"
|
|
2042
|
+
},
|
|
2043
|
+
"options": {
|
|
2044
|
+
"type": "object",
|
|
2045
|
+
"properties": {
|
|
2046
|
+
"method": {
|
|
2047
|
+
"$ref": "#/definitions/method"
|
|
2048
|
+
}
|
|
2049
|
+
}
|
|
2050
|
+
},
|
|
1789
2051
|
"placeholder": {
|
|
1790
2052
|
"type": "string"
|
|
1791
2053
|
},
|
|
@@ -1844,6 +2106,9 @@
|
|
|
1844
2106
|
"properties": {
|
|
1845
2107
|
"upstream": {
|
|
1846
2108
|
"$ref": "#/definitions/upstream"
|
|
2109
|
+
},
|
|
2110
|
+
"method": {
|
|
2111
|
+
"$ref": "#/definitions/method"
|
|
1847
2112
|
}
|
|
1848
2113
|
}
|
|
1849
2114
|
},
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Tree } from '@angular-devkit/schematics';
|
|
2
2
|
import { Normalized } from '@rxap/utilities';
|
|
3
|
-
import { NormalizedAngularOptions } from '../../../lib/angular-options';
|
|
4
|
-
import {
|
|
3
|
+
import { AngularOptions, NormalizedAngularOptions } from '../../../lib/angular-options';
|
|
4
|
+
import { HeaderButton, NormalizedHeaderButton } from '../../../lib/table/table-header-button';
|
|
5
5
|
import { TableHeaderButtonOptions } from './schema';
|
|
6
|
-
export type NormalizedTableHeaderButtonOptions
|
|
7
|
-
export declare function NormalizeTableHeaderButtonOptions
|
|
6
|
+
export type NormalizedTableHeaderButtonOptions = Readonly<Normalized<Omit<TableHeaderButtonOptions, keyof AngularOptions | keyof HeaderButton>> & NormalizedAngularOptions & NormalizedHeaderButton>;
|
|
7
|
+
export declare function NormalizeTableHeaderButtonOptions(options: Readonly<TableHeaderButtonOptions>): NormalizedTableHeaderButtonOptions;
|
|
8
8
|
export default function (options: TableHeaderButtonOptions): (host: Tree) => import("@angular-devkit/schematics").Rule;
|
|
@@ -6,10 +6,10 @@ const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
|
6
6
|
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
7
7
|
const angular_options_1 = require("../../../lib/angular-options");
|
|
8
8
|
const assert_table_component_exists_1 = require("../../../lib/assert-table-component-exists");
|
|
9
|
-
const table_header_button_1 = require("../../../lib/table-header-button");
|
|
9
|
+
const table_header_button_1 = require("../../../lib/table/table-header-button");
|
|
10
10
|
function NormalizeTableHeaderButtonOptions(options) {
|
|
11
11
|
const normalizedAngularOptions = (0, angular_options_1.NormalizeAngularOptions)(options);
|
|
12
|
-
const normalizedTableHeaderButton = (0, table_header_button_1.
|
|
12
|
+
const normalizedTableHeaderButton = (0, table_header_button_1.NormalizeHeaderButton)(options, options.tableName);
|
|
13
13
|
if (!normalizedTableHeaderButton) {
|
|
14
14
|
throw new Error('FATAL: should never happen');
|
|
15
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-header-button/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAA8E;AAC9E,qEAGoC;AAEpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/table-header-button/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAA8E;AAC9E,qEAGoC;AAEpC,kEAKsC;AACtC,8FAAwF;AACxF,gFAIgD;AAKhD,SAAgB,iCAAiC,CAC/C,OAA2C;IAE3C,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,MAAM,2BAA2B,GAAG,IAAA,2CAAqB,EAAC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;IACtF,IAAI,CAAC,2BAA2B,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;IAChD,CAAC;IACD,MAAM,SAAS,GAAG,IAAA,mCAAY,EAAC,IAAA,gCAAS,EAAC,OAAO,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,CAAC;IACvE,OAAO,MAAM,CAAC,MAAM,+CACf,2BAA2B,GAC3B,wBAAwB,KAC3B,SAAS,IACT,CAAC;AACL,CAAC;AAdD,8EAcC;AAED,SAAS,YAAY,CAAC,OAA2C;IAC/D,IAAA,qCAAmB,EAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAED,mBAAyB,OAAiC;IACxD,MAAM,iBAAiB,GAAG,iCAAiC,CAAC,OAAO,CAAC,CAAC;IACrE,MAAM,EACJ,OAAO,EACP,OAAO,EACP,OAAO,EACP,YAAY,EACZ,cAAc,EACd,SAAS,EACT,OAAO,EACP,OAAO,EACP,MAAM,EACN,SAAS,EACT,SAAS,GACV,GAAG,iBAAiB,CAAC;IAEtB,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAEhC,OAAO,CAAC,IAAU,EAAE,EAAE;QAEpB,IAAA,0DAA0B,EAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAEpD,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,+DAA+D,CAAC;YACpF,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,uCAAuC,CAAC;YAC1D,IAAA,uDAAiC,EAAC;gBAChC,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,SAAS;gBACT,SAAS;gBACT,SAAS;gBACT,OAAO;gBACP,OAAO;gBACP,OAAO;gBACP,YAAY;gBACZ,cAAc;aACf,CAAC;YACF,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAzCD,4BAyCC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { AngularOptions } from '../../../lib/angular-options';
|
|
2
|
-
import {
|
|
2
|
+
import { HeaderButton } from '../../../lib/table/table-header-button';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
export
|
|
6
|
-
extends AngularOptions, TableHeaderButton<Options> {
|
|
5
|
+
export type TableHeaderButtonOptions = AngularOptions & HeaderButton & {
|
|
7
6
|
tableName: string;
|
|
8
7
|
}
|