@rxap/schematic-angular 16.2.0-dev.1 → 16.2.0-dev.11
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 +79 -0
- package/README.md +1 -1
- package/package.json +13 -11
- package/src/lib/accordion-header.d.ts +5 -0
- package/src/lib/accordion-header.js +8 -2
- package/src/lib/accordion-header.js.map +1 -1
- package/src/lib/accordion-item.d.ts +17 -16
- package/src/lib/accordion-item.js +56 -32
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/accordion-itme-kinds.d.ts +8 -0
- package/src/lib/accordion-itme-kinds.js +16 -0
- package/src/lib/accordion-itme-kinds.js.map +1 -0
- package/src/lib/coerce-accordion-component.js +6 -2
- package/src/lib/coerce-accordion-component.js.map +1 -1
- package/src/lib/coerce-form-component.js +5 -2
- package/src/lib/coerce-form-component.js.map +1 -1
- package/src/lib/coerce-minimum-table-component.js +9 -3
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/coerce-tree-table-component.js +16 -0
- package/src/lib/coerce-tree-table-component.js.map +1 -1
- package/src/lib/data-grid-item.d.ts +4 -7
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-options.d.ts +2 -0
- package/src/lib/data-grid-options.js +7 -3
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/form/generate-form-template.d.ts +5 -0
- package/src/lib/form/generate-form-template.js +12 -0
- package/src/lib/form/generate-form-template.js.map +1 -0
- package/src/lib/form-component-control.d.ts +2 -6
- package/src/lib/form-component-control.js.map +1 -1
- package/src/lib/form-control.d.ts +125 -0
- package/src/lib/form-control.js +304 -0
- package/src/lib/form-control.js.map +1 -0
- package/src/lib/form-definition-control.d.ts +3 -57
- package/src/lib/form-definition-control.js +18 -144
- package/src/lib/form-definition-control.js.map +1 -1
- package/src/lib/load-handlebars-template.d.ts +3 -0
- package/src/lib/load-handlebars-template.js +24 -0
- package/src/lib/load-handlebars-template.js.map +1 -0
- package/src/lib/minimum-table-component-options.d.ts +12 -2
- package/src/lib/minimum-table-component-options.js +14 -17
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/table/table-filter-column-rule.d.ts +13 -0
- package/src/lib/table/table-filter-column-rule.js +88 -0
- package/src/lib/table/table-filter-column-rule.js.map +1 -0
- package/src/lib/table-column.d.ts +8 -2
- package/src/lib/table-column.js +110 -43
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +10 -0
- package/src/lib/use-pick-from-table-interface-as-form-type.js +32 -0
- package/src/lib/use-pick-from-table-interface-as-form-type.js.map +1 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
- package/src/schematics/accordion/accordion-component/index.js +6 -98
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.json +313 -132
- package/src/schematics/accordion/accordion-component/template.schema.json +102 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +2 -2
- package/src/schematics/accordion/accordion-item-component/index.js +49 -44
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -2
- package/src/schematics/accordion/accordion-item-component/schema.json +281 -78
- package/src/schematics/accordion/accordion-item-component/template.schema.json +33 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +17 -29
- 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.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +366 -103
- package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +31 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js +4 -4
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +317 -191
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +84 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +8 -8
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +584 -264
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +46 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +11 -10
- 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.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +556 -253
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +46 -0
- package/src/schematics/accordion/templates/accordion-header.hbs +6 -0
- package/src/schematics/accordion/templates/data-grid-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/default-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/switch-accordion-item.hbs +21 -0
- package/src/schematics/accordion/templates/table-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/tree-table-accordion-item.hbs +15 -0
- package/src/schematics/accordion-item.schema.json +35 -0
- package/src/schematics/angular.schema.json +2 -10
- package/src/schematics/backend.schema.json +13 -0
- package/src/schematics/button.schema.json +30 -0
- package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +34 -0
- package/src/schematics/data-grid-component/index.d.ts +0 -1
- package/src/schematics/data-grid-component/index.js +31 -25
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +326 -144
- package/src/schematics/data-grid-component/template.schema.json +23 -0
- package/src/schematics/data-grid-item.schema.json +23 -0
- package/src/schematics/data-grid.schema.json +44 -0
- package/src/schematics/dialog-component/schema.json +225 -66
- package/src/schematics/dialog-component/template.schema.json +65 -0
- package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
- package/src/schematics/form/control/input-form-control/index.js +4 -27
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/control/input-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/input-form-control/schema.json +380 -108
- package/src/schematics/form/control/input-form-control/template.schema.json +23 -0
- package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
- package/src/schematics/form/control/select-form-control/index.js +132 -96
- package/src/schematics/form/control/select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/select-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/select-form-control/schema.json +386 -94
- package/src/schematics/form/control/select-form-control/template.schema.json +23 -0
- package/src/schematics/form/control/table-select-form-control/index.d.ts +4 -6
- package/src/schematics/form/control/table-select-form-control/index.js +80 -69
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -4
- package/src/schematics/form/control/table-select-form-control/schema.json +434 -97
- package/src/schematics/form/control/table-select-form-control/template.schema.json +78 -0
- package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +3 -3
- package/src/schematics/form/form-component/index.js +9 -3
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.json +325 -146
- package/src/schematics/form/form-component/template.schema.json +23 -0
- package/src/schematics/form/form-control/index.d.ts +3 -1
- package/src/schematics/form/form-control/index.js +19 -8
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-control/schema.json +316 -83
- package/src/schematics/form/form-control/template.schema.json +37 -0
- package/src/schematics/form/form-definition/index.js +14 -1
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/form/form-definition/schema.json +312 -127
- package/src/schematics/form/form-definition/template.schema.json +33 -0
- package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
- package/src/schematics/form/templates/default-form-control.hbs +2 -0
- package/src/schematics/form/templates/input-form-control.hbs +9 -0
- package/src/schematics/form/templates/mat-form-field.hbs +31 -0
- package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
- package/src/schematics/form/templates/table-select-form-control.hbs +18 -0
- package/src/schematics/form-component.schema.json +39 -0
- package/src/schematics/form-control.schema.json +68 -0
- package/src/schematics/form-definition.schema.json +22 -0
- package/src/schematics/form-field.schema.json +24 -0
- package/src/schematics/header-button.schema.json +42 -0
- package/src/schematics/input-form-control.schema.json +47 -0
- package/src/schematics/minimum-table.schema.json +54 -0
- package/src/schematics/property.schema.json +28 -0
- package/src/schematics/select-form-control.schema.json +53 -0
- package/src/schematics/table/action/dialog-table-action/schema.json +294 -133
- package/src/schematics/table/action/dialog-table-action/template.schema.json +61 -0
- package/src/schematics/table/action/form-table-action/schema.json +392 -172
- package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +272 -88
- package/src/schematics/table/action/navigation-table-action/template.schema.json +31 -0
- package/src/schematics/table/action/open-api-table-action/schema.json +288 -102
- package/src/schematics/table/action/open-api-table-action/template.schema.json +59 -0
- package/src/schematics/table/action/operation-table-action/schema.json +259 -92
- package/src/schematics/table/action/operation-table-action/template.schema.json +17 -0
- package/src/schematics/table/header-button/form-table-header-button/schema.json +325 -126
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +51 -0
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +254 -81
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +31 -0
- package/src/schematics/table/table-action/schema.json +254 -87
- package/src/schematics/table/table-action/template.schema.json +30 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +241 -0
- package/src/schematics/table/table-component/index.d.ts +2 -2
- package/src/schematics/table/table-component/index.js +11 -104
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +461 -197
- package/src/schematics/table/table-component/template.schema.json +26 -0
- package/src/schematics/table/table-header-button/schema.json +235 -73
- package/src/schematics/table/table-header-button/template.schema.json +30 -0
- package/src/schematics/table/templates/boolean-table-column.hbs +10 -0
- package/src/schematics/table/templates/component-table-column.hbs +12 -0
- package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +10 -0
- package/src/schematics/table/templates/date-table-column.hbs +11 -0
- package/src/schematics/table/templates/default-table-column.hbs +8 -0
- package/src/schematics/table/templates/icon-table-column.hbs +10 -0
- package/src/schematics/table/templates/link-table-column.hbs +10 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +249 -0
- package/src/schematics/table/tree-table-component/index.js +11 -4
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +521 -250
- package/src/schematics/table/tree-table-component/template.schema.json +26 -0
- package/src/schematics/table-action.schema.json +61 -0
- package/src/schematics/table-column.schema.json +69 -0
- package/src/schematics/table.schema.json +54 -0
- package/src/schematics/tree-component/schema.json +113 -76
- package/src/schematics/tree-component/template.schema.json +31 -0
- package/src/schematics/tree-table.schema.json +40 -0
- package/src/schematics/type.schema.json +35 -0
- package/src/schematics/upstream.schema.json +56 -0
- package/src/lib/accordion-itme-types.d.ts +0 -8
- package/src/lib/accordion-itme-types.js +0 -16
- package/src/lib/accordion-itme-types.js.map +0 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -213
|
@@ -10,27 +10,32 @@ const utilities_1 = require("@rxap/utilities");
|
|
|
10
10
|
const path_1 = require("path");
|
|
11
11
|
const ts_morph_2 = require("ts-morph");
|
|
12
12
|
const accordion_item_1 = require("../../../lib/accordion-item");
|
|
13
|
-
const
|
|
13
|
+
const accordion_itme_kinds_1 = require("../../../lib/accordion-itme-kinds");
|
|
14
14
|
const angular_options_1 = require("../../../lib/angular-options");
|
|
15
15
|
const backend_types_1 = require("../../../lib/backend-types");
|
|
16
16
|
function NormalizeAccordionItemStandaloneComponentOptions(options) {
|
|
17
|
-
var _a, _b;
|
|
17
|
+
var _a, _b, _c;
|
|
18
18
|
const normalizedAngularOptions = (0, angular_options_1.NormalizeAngularOptions)(options);
|
|
19
|
-
const { feature } = normalizedAngularOptions;
|
|
20
|
-
const
|
|
21
|
-
const componentName = (0, schematics_utilities_1.CoerceSuffix)(
|
|
19
|
+
const { feature, controllerName } = normalizedAngularOptions;
|
|
20
|
+
const name = (0, schematics_utilities_1.dasherize)(options.name);
|
|
21
|
+
const componentName = (0, schematics_utilities_1.CoerceSuffix)(name, '-panel');
|
|
22
22
|
let accordionName = (_a = options.accordionName) !== null && _a !== void 0 ? _a : feature;
|
|
23
23
|
accordionName = (0, schematics_utilities_1.CoerceSuffix)((0, schematics_utilities_1.dasherize)(accordionName), '-accordion');
|
|
24
|
-
|
|
24
|
+
const nestModule = (_b = options.nestModule) !== null && _b !== void 0 ? _b : accordionName;
|
|
25
|
+
return Object.freeze(Object.assign(Object.assign(Object.assign({}, normalizedAngularOptions), (0, accordion_item_1.NormalizeAccordionItem)(Object.assign({ kind: accordion_itme_kinds_1.AccordionItemKinds.Default }, options))), { controllerName: controllerName !== null && controllerName !== void 0 ? controllerName : (0, schematics_ts_morph_1.BuildNestControllerName)({
|
|
26
|
+
controllerName: name,
|
|
27
|
+
nestModule,
|
|
28
|
+
}), name,
|
|
29
|
+
nestModule, modifiers: (_c = options.modifiers) !== null && _c !== void 0 ? _c : [], accordionName: accordionName, directory: (0, path_1.join)(accordionName, componentName), componentName }));
|
|
25
30
|
}
|
|
26
31
|
exports.NormalizeAccordionItemStandaloneComponentOptions = NormalizeAccordionItemStandaloneComponentOptions;
|
|
27
32
|
function NormalizeAccordionItemComponentOptions(options) {
|
|
28
33
|
var _a;
|
|
29
|
-
const
|
|
30
|
-
if (!(0,
|
|
31
|
-
throw new schematics_1.SchematicsException(`The type "${
|
|
34
|
+
const kind = (_a = options.kind) !== null && _a !== void 0 ? _a : accordion_itme_kinds_1.AccordionItemKinds.Default;
|
|
35
|
+
if (!(0, accordion_itme_kinds_1.IsAccordionItemKind)(kind)) {
|
|
36
|
+
throw new schematics_1.SchematicsException(`The type "${kind}" is not a valid accordion item type`);
|
|
32
37
|
}
|
|
33
|
-
return Object.freeze(Object.assign(Object.assign({}, NormalizeAccordionItemStandaloneComponentOptions(options)), {
|
|
38
|
+
return Object.freeze(Object.assign(Object.assign({}, NormalizeAccordionItemStandaloneComponentOptions(options)), { kind }));
|
|
34
39
|
}
|
|
35
40
|
exports.NormalizeAccordionItemComponentOptions = NormalizeAccordionItemComponentOptions;
|
|
36
41
|
function printAccordionItemComponentOptions(options) {
|
|
@@ -38,16 +43,16 @@ function printAccordionItemComponentOptions(options) {
|
|
|
38
43
|
}
|
|
39
44
|
// region panel item
|
|
40
45
|
function panelItemOpenApiDataSourceRule(normalizedOptions) {
|
|
41
|
-
const {
|
|
46
|
+
const { name, nestModule, directory, project, feature, shared, scope, } = normalizedOptions;
|
|
42
47
|
const controllerName = (0, schematics_ts_morph_1.BuildNestControllerName)({
|
|
43
|
-
controllerName:
|
|
48
|
+
controllerName: name,
|
|
44
49
|
nestModule,
|
|
45
50
|
});
|
|
46
51
|
const operationId = (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, 'getById', controllerName);
|
|
47
52
|
return (0, schematics_1.chain)([
|
|
48
53
|
() => console.log(`Coerce getById operation ...`),
|
|
49
54
|
(0, schematics_ts_morph_1.CoerceGetByIdOperation)({
|
|
50
|
-
controllerName:
|
|
55
|
+
controllerName: name,
|
|
51
56
|
project,
|
|
52
57
|
feature,
|
|
53
58
|
shared,
|
|
@@ -59,7 +64,7 @@ function panelItemOpenApiDataSourceRule(normalizedOptions) {
|
|
|
59
64
|
feature,
|
|
60
65
|
shared,
|
|
61
66
|
directory,
|
|
62
|
-
name: (0, schematics_utilities_1.CoerceSuffix)(
|
|
67
|
+
name: (0, schematics_utilities_1.CoerceSuffix)(name, '-panel'),
|
|
63
68
|
tsMorphTransform: (project, sourceFile, classDeclaration) => {
|
|
64
69
|
classDeclaration.setExtends(`PanelAccordionDataSource<${(0, schematics_ts_morph_1.OperationIdToResponseClassName)(operationId)}>`);
|
|
65
70
|
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
@@ -89,7 +94,7 @@ function panelItemOpenApiDataSourceRule(normalizedOptions) {
|
|
|
89
94
|
]);
|
|
90
95
|
}
|
|
91
96
|
function panelItemLocalDataSourceRule(normalizedOptions) {
|
|
92
|
-
const {
|
|
97
|
+
const { name, directory, project, feature, shared, componentName, overwrite, } = normalizedOptions;
|
|
93
98
|
return (0, schematics_1.chain)([
|
|
94
99
|
() => console.log(`Coerce panel data source ...`),
|
|
95
100
|
(0, schematics_ts_morph_1.CoerceInterfaceRule)({
|
|
@@ -97,7 +102,7 @@ function panelItemLocalDataSourceRule(normalizedOptions) {
|
|
|
97
102
|
feature,
|
|
98
103
|
shared,
|
|
99
104
|
directory,
|
|
100
|
-
name,
|
|
105
|
+
name: componentName,
|
|
101
106
|
structure: {
|
|
102
107
|
isExported: true,
|
|
103
108
|
properties: [],
|
|
@@ -108,7 +113,7 @@ function panelItemLocalDataSourceRule(normalizedOptions) {
|
|
|
108
113
|
feature,
|
|
109
114
|
shared,
|
|
110
115
|
directory,
|
|
111
|
-
name,
|
|
116
|
+
name: componentName,
|
|
112
117
|
tsMorphTransform: (project, sourceFile) => {
|
|
113
118
|
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, [
|
|
114
119
|
{
|
|
@@ -116,12 +121,12 @@ function panelItemLocalDataSourceRule(normalizedOptions) {
|
|
|
116
121
|
moduleSpecifier: '@faker-js/faker',
|
|
117
122
|
},
|
|
118
123
|
{
|
|
119
|
-
namedImports: [(0, utilities_1.classify)(
|
|
120
|
-
moduleSpecifier: `./${(0, schematics_utilities_1.dasherize)(
|
|
124
|
+
namedImports: [(0, utilities_1.classify)(componentName)],
|
|
125
|
+
moduleSpecifier: `./${(0, schematics_utilities_1.dasherize)(componentName)}`,
|
|
121
126
|
},
|
|
122
127
|
]);
|
|
123
128
|
return {
|
|
124
|
-
returnType: (0, utilities_1.classify)(
|
|
129
|
+
returnType: (0, utilities_1.classify)(componentName),
|
|
125
130
|
statements: [
|
|
126
131
|
`console.log('parameters: ', parameters);`,
|
|
127
132
|
'return {} as any;',
|
|
@@ -134,16 +139,16 @@ function panelItemLocalDataSourceRule(normalizedOptions) {
|
|
|
134
139
|
feature,
|
|
135
140
|
shared,
|
|
136
141
|
directory,
|
|
137
|
-
name: (0, schematics_utilities_1.CoerceSuffix)(
|
|
142
|
+
name: (0, schematics_utilities_1.CoerceSuffix)(name, '-panel'),
|
|
138
143
|
tsMorphTransform: (project, sourceFile, classDeclaration) => {
|
|
139
|
-
classDeclaration.setExtends(`PanelAccordionDataSource<${(0, utilities_1.classify)(
|
|
144
|
+
classDeclaration.setExtends(`PanelAccordionDataSource<${(0, utilities_1.classify)(componentName)}>`);
|
|
140
145
|
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
141
|
-
namedImports: [(0, utilities_1.classify)(
|
|
142
|
-
moduleSpecifier: `./${(0, schematics_utilities_1.dasherize)(
|
|
146
|
+
namedImports: [(0, utilities_1.classify)(componentName)],
|
|
147
|
+
moduleSpecifier: `./${(0, schematics_utilities_1.dasherize)(componentName)}`,
|
|
143
148
|
});
|
|
144
149
|
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
145
|
-
namedImports: [(0, utilities_1.classify)(
|
|
146
|
-
moduleSpecifier: `./${(0, schematics_utilities_1.dasherize)(
|
|
150
|
+
namedImports: [(0, utilities_1.classify)(componentName) + 'Method'],
|
|
151
|
+
moduleSpecifier: `./${(0, schematics_utilities_1.dasherize)(componentName)}.method`,
|
|
147
152
|
});
|
|
148
153
|
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
149
154
|
moduleSpecifier: '@angular/core',
|
|
@@ -160,22 +165,22 @@ function panelItemLocalDataSourceRule(normalizedOptions) {
|
|
|
160
165
|
(0, ts_morph_1.CoerceClassProperty)(classDeclaration, 'method', {
|
|
161
166
|
scope: ts_morph_2.Scope.Protected,
|
|
162
167
|
hasOverrideKeyword: true,
|
|
163
|
-
initializer: `inject(${(0, utilities_1.classify)(
|
|
168
|
+
initializer: `inject(${(0, utilities_1.classify)(componentName) + 'Method'})`,
|
|
164
169
|
isReadonly: true,
|
|
165
170
|
});
|
|
166
171
|
},
|
|
167
172
|
}),
|
|
168
173
|
(0, schematics_ts_morph_1.CoerceComponentRule)({
|
|
169
174
|
project,
|
|
170
|
-
name,
|
|
175
|
+
name: componentName,
|
|
171
176
|
feature,
|
|
172
177
|
directory,
|
|
173
178
|
overwrite,
|
|
174
179
|
tsMorphTransform: (project, [sourceFile]) => {
|
|
175
|
-
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, (0, utilities_1.classify)(
|
|
180
|
+
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, (0, utilities_1.classify)(componentName) + 'Method', [
|
|
176
181
|
{
|
|
177
|
-
moduleSpecifier: `./${(0, schematics_utilities_1.dasherize)(
|
|
178
|
-
namedImports: [(0, utilities_1.classify)(
|
|
182
|
+
moduleSpecifier: `./${(0, schematics_utilities_1.dasherize)(componentName)}.method`,
|
|
183
|
+
namedImports: [(0, utilities_1.classify)(componentName) + 'Method'],
|
|
179
184
|
},
|
|
180
185
|
]);
|
|
181
186
|
},
|
|
@@ -193,8 +198,8 @@ function panelItemBackendRule(normalizedOptions) {
|
|
|
193
198
|
return (0, schematics_1.noop)();
|
|
194
199
|
}
|
|
195
200
|
function panelItemRule(normalizedOptions) {
|
|
196
|
-
const {
|
|
197
|
-
const templateOptions = Object.assign(Object.assign(
|
|
201
|
+
const { name, directory, project, feature, shared, overwrite, componentName, } = normalizedOptions;
|
|
202
|
+
const templateOptions = Object.assign(Object.assign({}, core_1.strings), normalizedOptions);
|
|
198
203
|
return (0, schematics_1.chain)([
|
|
199
204
|
(0, schematics_ts_morph_1.CoerceComponentRule)({
|
|
200
205
|
name: componentName,
|
|
@@ -212,10 +217,10 @@ function panelItemRule(normalizedOptions) {
|
|
|
212
217
|
(0, ts_morph_1.CoerceComponentImport)(classDeclaration, { name: 'DataSourceErrorComponent', moduleSpecifier: '@rxap/data-source' });
|
|
213
218
|
(0, ts_morph_1.CoerceComponentImport)(classDeclaration, { name: 'AsyncPipe', moduleSpecifier: '@angular/common' });
|
|
214
219
|
(0, ts_morph_1.CoerceComponentImport)(classDeclaration, { name: 'JsonPipe', moduleSpecifier: '@angular/common' });
|
|
215
|
-
const pipeDataSourceName = `${(0, utilities_1.classify)(
|
|
220
|
+
const pipeDataSourceName = `${(0, utilities_1.classify)(name)}PanelDataSource`;
|
|
216
221
|
(0, schematics_ts_morph_1.AddComponentProvider)(sourceFile, pipeDataSourceName);
|
|
217
222
|
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
218
|
-
moduleSpecifier: `./${(0, schematics_utilities_1.dasherize)(
|
|
223
|
+
moduleSpecifier: `./${(0, schematics_utilities_1.dasherize)(name)}-panel.data-source`,
|
|
219
224
|
namedImports: [pipeDataSourceName],
|
|
220
225
|
});
|
|
221
226
|
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
@@ -243,28 +248,28 @@ function GetItemOptions(normalizedOptions) {
|
|
|
243
248
|
}
|
|
244
249
|
exports.GetItemOptions = GetItemOptions;
|
|
245
250
|
function itemRule(normalizedOptions) {
|
|
246
|
-
const {
|
|
251
|
+
const { kind, } = normalizedOptions;
|
|
247
252
|
const rules = [
|
|
248
|
-
() => console.log(`Modify accordion item component for type '${
|
|
253
|
+
() => console.log(`Modify accordion item component for type '${kind}' ...`),
|
|
249
254
|
];
|
|
250
|
-
switch (
|
|
251
|
-
case
|
|
255
|
+
switch (kind) {
|
|
256
|
+
case accordion_itme_kinds_1.AccordionItemKinds.Default:
|
|
252
257
|
rules.push(panelItemRule(normalizedOptions));
|
|
253
258
|
break;
|
|
254
|
-
case
|
|
259
|
+
case accordion_itme_kinds_1.AccordionItemKinds.Table:
|
|
255
260
|
rules.push((0, schematics_utilities_1.ExecuteSchematic)('accordion-item-table-component', normalizedOptions));
|
|
256
261
|
break;
|
|
257
|
-
case
|
|
262
|
+
case accordion_itme_kinds_1.AccordionItemKinds.DataGrid:
|
|
258
263
|
rules.push((0, schematics_utilities_1.ExecuteSchematic)('accordion-item-data-grid-component', normalizedOptions));
|
|
259
264
|
break;
|
|
260
|
-
case
|
|
265
|
+
case accordion_itme_kinds_1.AccordionItemKinds.TreeTable:
|
|
261
266
|
rules.push((0, schematics_utilities_1.ExecuteSchematic)('accordion-item-tree-table-component', normalizedOptions));
|
|
262
267
|
break;
|
|
263
|
-
case
|
|
268
|
+
case accordion_itme_kinds_1.AccordionItemKinds.Switch:
|
|
264
269
|
rules.push((0, schematics_utilities_1.ExecuteSchematic)('accordion-item-switch-component', normalizedOptions));
|
|
265
270
|
break;
|
|
266
271
|
default:
|
|
267
|
-
throw new schematics_1.SchematicsException(`Invalid accordion item type '${
|
|
272
|
+
throw new schematics_1.SchematicsException(`Invalid accordion item type '${kind}'!`);
|
|
268
273
|
}
|
|
269
274
|
return (0, schematics_1.chain)(rules);
|
|
270
275
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/accordion/accordion-item-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAKoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/accordion/accordion-item-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAKoC;AACpC,mEAgBmC;AACnC,qEAIoC;AACpC,6CAGwB;AACxB,+CAGyB;AACzB,+BAA4B;AAC5B,uCAKkB;AAClB,gEAGqC;AACrC,4EAG2C;AAC3C,kEAIsC;AACtC,8DAA0D;AAU1D,SAAgB,gDAAgD,CAC9D,OAA0D;;IAE1D,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,wBAAwB,CAAC;IAC7D,MAAM,IAAI,GAAG,IAAA,gCAAS,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,aAAa,GAAG,IAAA,mCAAY,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACnD,IAAI,aAAa,GAAG,MAAA,OAAO,CAAC,aAAa,mCAAI,OAAO,CAAC;IACrD,aAAa,GAAG,IAAA,mCAAY,EAAC,IAAA,gCAAS,EAAC,aAAa,CAAC,EAAE,YAAY,CAAC,CAAC;IACrE,MAAM,UAAU,GAAG,MAAA,OAAO,CAAC,UAAU,mCAAI,aAAa,CAAC;IACvD,OAAO,MAAM,CAAC,MAAM,+CACf,wBAAwB,GACxB,IAAA,uCAAsB,kBACvB,IAAI,EAAE,yCAAkB,CAAC,OAAO,IAC7B,OAAO,EACV,KACF,cAAc,EAAE,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,IAAA,6CAAuB,EAAC;YACxD,cAAc,EAAE,IAAI;YACpB,UAAU;SACX,CAAC,EACF,IAAI;QACJ,UAAU,EACV,SAAS,EAAE,MAAA,OAAO,CAAC,SAAS,mCAAI,EAAE,EAClC,aAAa,EAAE,aAAa,EAC5B,SAAS,EAAE,IAAA,WAAI,EAAC,aAAa,EAAE,aAAa,CAAC,EAC7C,aAAa,IACb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O,IAAA,kBAAK,EAAC,KAAK,CAAC,CAAC;AAEtB,CAAC;AAED,mBAAyB,OAAsC;IAC7D,MAAM,iBAAiB,GAAG,sCAAsC,CAAC,OAAO,CAAC,CAAC;IAE1E,kCAAkC,CAAC,iBAAiB,CAAC,CAAC;IACtD,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,kBAAK,EAAC;YACX,oCAAoC;YACpC,QAAQ,CAAC,iBAAiB,CAAC;SAC5B,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAVD,4BAUC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseAccordionItem } from '../../../lib/accordion-item';
|
|
2
2
|
import { AngularOptions } from '../../../lib/angular-options';
|
|
3
3
|
|
|
4
|
-
export interface AccordionItemComponentOptions extends
|
|
5
|
-
|
|
4
|
+
export interface AccordionItemComponentOptions extends AngularOptions, BaseAccordionItem {
|
|
5
|
+
name: string;
|
|
6
6
|
accordionName: string;
|
|
7
7
|
}
|
|
@@ -1,92 +1,295 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
|
-
"$id": "accordion-item-component",
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
3
|
+
"$id": "accordion-item-component-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"allOf": [
|
|
7
|
+
{
|
|
8
|
+
"type": "object",
|
|
9
|
+
"properties": {
|
|
10
|
+
"project": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Project name where the files should be generated"
|
|
13
|
+
},
|
|
14
|
+
"feature": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Feature name where the files should be generated"
|
|
17
|
+
},
|
|
18
|
+
"overwrite": {
|
|
19
|
+
"anyOf": [
|
|
20
|
+
{
|
|
21
|
+
"type": "boolean"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "array",
|
|
25
|
+
"items": {
|
|
26
|
+
"type": "string"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"description": "Overwrite existing files",
|
|
31
|
+
"default": false
|
|
32
|
+
},
|
|
33
|
+
"overwriteHtml": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"default": false
|
|
36
|
+
},
|
|
37
|
+
"replace": {
|
|
38
|
+
"type": "boolean",
|
|
39
|
+
"default": false
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": [
|
|
43
|
+
"project"
|
|
44
|
+
]
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "object",
|
|
48
|
+
"properties": {
|
|
49
|
+
"componentName": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
},
|
|
52
|
+
"name": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"context": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "The context use to generate proper names for class, files, etc"
|
|
58
|
+
},
|
|
59
|
+
"nestModule": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"description": "The module name for the table nest operations"
|
|
62
|
+
},
|
|
63
|
+
"controllerName": {
|
|
64
|
+
"type": "string"
|
|
65
|
+
},
|
|
66
|
+
"backend": {
|
|
67
|
+
"type": "string",
|
|
68
|
+
"description": "The backend that should be used to handel data",
|
|
69
|
+
"enum": [
|
|
70
|
+
"none",
|
|
71
|
+
"nestjs",
|
|
72
|
+
"open-api",
|
|
73
|
+
"local"
|
|
74
|
+
],
|
|
75
|
+
"default": "none"
|
|
76
|
+
},
|
|
77
|
+
"directory": {
|
|
78
|
+
"type": "string",
|
|
79
|
+
"description": "A directory name or absolute path where the files should be generated. Relative to the project and feature base path if a feature is defined"
|
|
80
|
+
},
|
|
81
|
+
"shared": {
|
|
82
|
+
"type": "boolean",
|
|
83
|
+
"description": "Whether the generated code is used across the project",
|
|
84
|
+
"default": false
|
|
85
|
+
},
|
|
86
|
+
"scope": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"prefix": {
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
"openApi": {
|
|
93
|
+
"type": "object",
|
|
94
|
+
"additionalProperties": true
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
]
|
|
55
99
|
},
|
|
56
|
-
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
100
|
+
{
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {
|
|
103
|
+
"kind": {
|
|
104
|
+
"type": "string",
|
|
105
|
+
"enum": [
|
|
106
|
+
"default",
|
|
107
|
+
"table",
|
|
108
|
+
"data-grid",
|
|
109
|
+
"data-grid-collection",
|
|
110
|
+
"tree-table",
|
|
111
|
+
"switch"
|
|
112
|
+
],
|
|
113
|
+
"description": "The type of the accordion item",
|
|
114
|
+
"default": "panel"
|
|
115
|
+
},
|
|
116
|
+
"modifiers": {
|
|
117
|
+
"alias": "modifier",
|
|
118
|
+
"type": "array",
|
|
119
|
+
"items": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
"description": "The modifiers to apply to the accordion item type"
|
|
123
|
+
},
|
|
124
|
+
"title": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
"description": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
}
|
|
61
130
|
},
|
|
62
|
-
"
|
|
63
|
-
},
|
|
64
|
-
"title": {
|
|
65
|
-
"type": "string"
|
|
131
|
+
"additionalProperties": true
|
|
66
132
|
},
|
|
67
|
-
|
|
68
|
-
"type": "
|
|
133
|
+
{
|
|
134
|
+
"type": "object",
|
|
135
|
+
"properties": {
|
|
136
|
+
"accordionName": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"description": "The name of the accordion module where the item should be added."
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"required": [
|
|
142
|
+
"accordionName"
|
|
143
|
+
]
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"definitions": {
|
|
147
|
+
"type": {
|
|
148
|
+
"oneOf": [
|
|
149
|
+
{
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"type": "object",
|
|
154
|
+
"properties": {
|
|
155
|
+
"name": {
|
|
156
|
+
"type": "string"
|
|
157
|
+
},
|
|
158
|
+
"isTypeOnly": {
|
|
159
|
+
"type": "boolean"
|
|
160
|
+
},
|
|
161
|
+
"moduleSpecifier": {
|
|
162
|
+
"type": "string"
|
|
163
|
+
},
|
|
164
|
+
"namedImport": {
|
|
165
|
+
"type": "string"
|
|
166
|
+
},
|
|
167
|
+
"namespaceImport": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"defaultImport": {
|
|
171
|
+
"type": "string"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"required": [
|
|
175
|
+
"name"
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
]
|
|
69
179
|
},
|
|
70
|
-
"
|
|
71
|
-
"
|
|
180
|
+
"property": {
|
|
181
|
+
"oneOf": [
|
|
72
182
|
{
|
|
73
|
-
"type": "
|
|
183
|
+
"type": "string"
|
|
74
184
|
},
|
|
75
185
|
{
|
|
186
|
+
"type": "object",
|
|
187
|
+
"properties": {
|
|
188
|
+
"name": {
|
|
189
|
+
"type": "string"
|
|
190
|
+
},
|
|
191
|
+
"type": {
|
|
192
|
+
"$ref": "#/definitions/type"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"required": [
|
|
196
|
+
"name"
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
],
|
|
200
|
+
"definitions": {
|
|
201
|
+
"type": {
|
|
202
|
+
"oneOf": [
|
|
203
|
+
{
|
|
204
|
+
"type": "string"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"type": "object",
|
|
208
|
+
"properties": {
|
|
209
|
+
"name": {
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
"isTypeOnly": {
|
|
213
|
+
"type": "boolean"
|
|
214
|
+
},
|
|
215
|
+
"moduleSpecifier": {
|
|
216
|
+
"type": "string"
|
|
217
|
+
},
|
|
218
|
+
"namedImport": {
|
|
219
|
+
"type": "string"
|
|
220
|
+
},
|
|
221
|
+
"namespaceImport": {
|
|
222
|
+
"type": "string"
|
|
223
|
+
},
|
|
224
|
+
"defaultImport": {
|
|
225
|
+
"type": "string"
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"required": [
|
|
229
|
+
"name"
|
|
230
|
+
]
|
|
231
|
+
}
|
|
232
|
+
]
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"button": {
|
|
237
|
+
"type": "object",
|
|
238
|
+
"properties": {
|
|
239
|
+
"svgIcon": {
|
|
240
|
+
"type": "string"
|
|
241
|
+
},
|
|
242
|
+
"icon": {
|
|
243
|
+
"type": "string"
|
|
244
|
+
},
|
|
245
|
+
"directiveList": {
|
|
76
246
|
"type": "array",
|
|
77
247
|
"items": {
|
|
78
|
-
"
|
|
248
|
+
"$ref": "#/definitions/type"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"importList": {
|
|
252
|
+
"type": "array",
|
|
253
|
+
"items": {
|
|
254
|
+
"$ref": "#/definitions/type"
|
|
79
255
|
}
|
|
80
256
|
}
|
|
81
|
-
|
|
82
|
-
"
|
|
83
|
-
|
|
257
|
+
},
|
|
258
|
+
"definitions": {
|
|
259
|
+
"type": {
|
|
260
|
+
"oneOf": [
|
|
261
|
+
{
|
|
262
|
+
"type": "string"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"type": "object",
|
|
266
|
+
"properties": {
|
|
267
|
+
"name": {
|
|
268
|
+
"type": "string"
|
|
269
|
+
},
|
|
270
|
+
"isTypeOnly": {
|
|
271
|
+
"type": "boolean"
|
|
272
|
+
},
|
|
273
|
+
"moduleSpecifier": {
|
|
274
|
+
"type": "string"
|
|
275
|
+
},
|
|
276
|
+
"namedImport": {
|
|
277
|
+
"type": "string"
|
|
278
|
+
},
|
|
279
|
+
"namespaceImport": {
|
|
280
|
+
"type": "string"
|
|
281
|
+
},
|
|
282
|
+
"defaultImport": {
|
|
283
|
+
"type": "string"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
"required": [
|
|
287
|
+
"name"
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
}
|
|
84
293
|
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
"required": [
|
|
88
|
-
"itemName",
|
|
89
|
-
"project",
|
|
90
|
-
"feature"
|
|
91
|
-
]
|
|
92
|
-
}
|
|
294
|
+
}
|
|
295
|
+
}
|