@rxap/schematic-angular 16.1.0-dev.7 → 16.1.0-dev.9
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 +12 -0
- package/README.md +1 -1
- package/package.json +14 -13
- package/src/lib/accordion-item.js +19 -17
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/accordion-itme-types.js +7 -3
- package/src/lib/accordion-itme-types.js.map +1 -1
- package/src/lib/adapter-options.js +6 -2
- package/src/lib/adapter-options.js.map +1 -1
- package/src/lib/angular-options.js +22 -31
- package/src/lib/angular-options.js.map +1 -1
- package/src/lib/assert-table-component-exists.js +9 -5
- package/src/lib/assert-table-component-exists.js.map +1 -1
- package/src/lib/backend-types.js +5 -2
- package/src/lib/backend-types.js.map +1 -1
- package/src/lib/data-grid-item.js +12 -5
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-options.js +13 -8
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/dialog-action.js +14 -7
- package/src/lib/dialog-action.js.map +1 -1
- package/src/lib/existing-method.js +5 -1
- package/src/lib/existing-method.js.map +1 -1
- package/src/lib/form-component-control.js +16 -9
- package/src/lib/form-component-control.js.map +1 -1
- package/src/lib/form-definition-control.js +17 -9
- package/src/lib/form-definition-control.js.map +1 -1
- package/src/lib/minimum-table-component-options.js +92 -121
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.js +17 -12
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/table-action.js +37 -33
- package/src/lib/table-action.js.map +1 -1
- package/src/lib/table-column.js +27 -20
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/table-header-button.js +20 -15
- package/src/lib/table-header-button.js.map +1 -1
- package/src/lib/table-open-api-options.js +8 -4
- package/src/lib/table-open-api-options.js.map +1 -1
- package/src/lib/table-options.js +15 -13
- package/src/lib/table-options.js.map +1 -1
- package/src/lib/table-row-action.js +18 -13
- package/src/lib/table-row-action.js.map +1 -1
- package/src/lib/to-title.js +8 -4
- package/src/lib/to-title.js.map +1 -1
- package/src/lib/tree-table-options.js +13 -11
- package/src/lib/tree-table-options.js.map +1 -1
- package/src/schematics/accordion/accordion-component/index.js +105 -125
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/index.js +107 -119
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +54 -55
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +36 -38
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +52 -54
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/index.js +81 -87
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/dialog-component/index.js +20 -21
- package/src/schematics/dialog-component/index.js.map +1 -1
- package/src/schematics/form/control/input-form-control/index.js +18 -15
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/control/select-form-control/index.js +43 -41
- package/src/schematics/form/control/select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/index.js +58 -56
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/form-component/index.js +54 -62
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-control/index.js +23 -22
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-definition/index.js +18 -16
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/table/action/dialog-table-action/index.js +30 -30
- package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
- package/src/schematics/table/action/form-table-action/index.js +56 -67
- package/src/schematics/table/action/form-table-action/index.js.map +1 -1
- package/src/schematics/table/action/navigation-table-action/index.js +20 -17
- package/src/schematics/table/action/navigation-table-action/index.js.map +1 -1
- package/src/schematics/table/action/operation-table-action/index.js +31 -30
- package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
- package/src/schematics/table/header-button/form-table-header-button/index.js +29 -36
- package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
- package/src/schematics/table/header-button/navigation-table-header-button/index.js +23 -21
- package/src/schematics/table/header-button/navigation-table-header-button/index.js.map +1 -1
- package/src/schematics/table/table-action/index.js +23 -22
- package/src/schematics/table/table-action/index.js.map +1 -1
- package/src/schematics/table/table-component/index.js +93 -92
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-header-button/index.js +21 -20
- package/src/schematics/table/table-header-button/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/index.js +63 -66
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/tree-component/index.js +18 -18
- package/src/schematics/tree-component/index.js.map +1 -1
|
@@ -1,51 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NormalizeSelectFormControlOptions = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
6
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
const ts_morph_1 = require("ts-morph");
|
|
9
|
+
const angular_options_1 = require("../../../../lib/angular-options");
|
|
10
|
+
const form_control_1 = require("../../form-control");
|
|
11
|
+
function NormalizeSelectFormControlOptions(options) {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
const normalizedOptions = (0, form_control_1.NormalizeFormControlOptions)(options);
|
|
10
14
|
let { isArray } = normalizedOptions;
|
|
11
|
-
const multiple = options.multiple
|
|
15
|
+
const multiple = (_a = options.multiple) !== null && _a !== void 0 ? _a : false;
|
|
12
16
|
isArray = multiple ? true : isArray;
|
|
13
|
-
return Object.seal({
|
|
14
|
-
|
|
15
|
-
isArray,
|
|
16
|
-
multiple,
|
|
17
|
-
staticDataSource: options.staticDataSource ?? false,
|
|
18
|
-
});
|
|
17
|
+
return Object.seal(Object.assign(Object.assign({}, normalizedOptions), { isArray,
|
|
18
|
+
multiple, staticDataSource: (_b = options.staticDataSource) !== null && _b !== void 0 ? _b : false }));
|
|
19
19
|
}
|
|
20
|
+
exports.NormalizeSelectFormControlOptions = NormalizeSelectFormControlOptions;
|
|
20
21
|
function printOptions(options) {
|
|
21
|
-
PrintAngularOptions('select-form-control', options);
|
|
22
|
+
(0, angular_options_1.PrintAngularOptions)('select-form-control', options);
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
+
function default_1(options) {
|
|
24
25
|
const normalizedOptions = NormalizeSelectFormControlOptions(options);
|
|
25
26
|
const { name, project, feature, directory, formName, type, isArray, state, isRequired, validatorList, staticDataSource, nestModule, controllerName, context, scope, } = normalizedOptions;
|
|
26
27
|
printOptions(normalizedOptions);
|
|
27
28
|
const optionsOperationName = ['get', name, 'options'].join('-');
|
|
28
29
|
const optionsOperationPath = ['options', name].join('/');
|
|
29
|
-
const optionsOperationId = buildOperationId(normalizedOptions, optionsOperationName, BuildNestControllerName({
|
|
30
|
+
const optionsOperationId = (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, optionsOperationName, (0, schematics_ts_morph_1.BuildNestControllerName)({
|
|
30
31
|
controllerName,
|
|
31
32
|
nestModule,
|
|
32
33
|
}));
|
|
33
|
-
const optionsDataSourceName = classify([name, 'options', 'data-source'].join('-'));
|
|
34
|
-
const optionsDataSourceImportPath = `./data-sources/${dasherize(name)}-options.data-source`;
|
|
35
|
-
const optionsDataSourceDirectory = join(directory
|
|
34
|
+
const optionsDataSourceName = (0, schematics_utilities_1.classify)([name, 'options', 'data-source'].join('-'));
|
|
35
|
+
const optionsDataSourceImportPath = `./data-sources/${(0, schematics_utilities_1.dasherize)(name)}-options.data-source`;
|
|
36
|
+
const optionsDataSourceDirectory = (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'data-sources');
|
|
36
37
|
return () => {
|
|
37
|
-
return chain([
|
|
38
|
+
return (0, schematics_1.chain)([
|
|
38
39
|
() => console.group('\x1b[32m[@rxap/schematics-angular:select-form-control]\x1b[0m'),
|
|
39
|
-
ExecuteSchematic('form-control', normalizedOptions),
|
|
40
|
+
(0, schematics_utilities_1.ExecuteSchematic)('form-control', normalizedOptions),
|
|
40
41
|
() => staticDataSource
|
|
41
|
-
? chain([
|
|
42
|
-
CoerceOptionsDataSourceRule({
|
|
42
|
+
? (0, schematics_1.chain)([
|
|
43
|
+
(0, schematics_ts_morph_1.CoerceOptionsDataSourceRule)({
|
|
43
44
|
project,
|
|
44
45
|
feature,
|
|
45
46
|
directory: optionsDataSourceDirectory,
|
|
46
47
|
name: [name, 'options'].join('-'),
|
|
47
48
|
}),
|
|
48
|
-
CoerceFormProviderRule({
|
|
49
|
+
(0, schematics_ts_morph_1.CoerceFormProviderRule)({
|
|
49
50
|
project,
|
|
50
51
|
feature,
|
|
51
52
|
directory,
|
|
@@ -58,7 +59,7 @@ export default function (options) {
|
|
|
58
59
|
],
|
|
59
60
|
}),
|
|
60
61
|
])
|
|
61
|
-
: CoerceOptionsOperationRule({
|
|
62
|
+
: (0, schematics_ts_morph_1.CoerceOptionsOperationRule)({
|
|
62
63
|
project,
|
|
63
64
|
feature,
|
|
64
65
|
nestModule,
|
|
@@ -68,7 +69,7 @@ export default function (options) {
|
|
|
68
69
|
control: normalizedOptions,
|
|
69
70
|
context,
|
|
70
71
|
}),
|
|
71
|
-
CoerceFormDefinitionControl({
|
|
72
|
+
(0, schematics_ts_morph_1.CoerceFormDefinitionControl)({
|
|
72
73
|
project,
|
|
73
74
|
feature,
|
|
74
75
|
directory,
|
|
@@ -80,32 +81,32 @@ export default function (options) {
|
|
|
80
81
|
isRequired,
|
|
81
82
|
validatorList,
|
|
82
83
|
coerceFormControl: (sourceFile, classDeclaration, control) => {
|
|
83
|
-
const { propertyDeclaration, decoratorDeclaration, } = CoerceFormControl(sourceFile, classDeclaration, control);
|
|
84
|
+
const { propertyDeclaration, decoratorDeclaration, } = (0, schematics_ts_morph_1.CoerceFormControl)(sourceFile, classDeclaration, control);
|
|
84
85
|
if (staticDataSource) {
|
|
85
|
-
CoerceDecorator(propertyDeclaration, 'UseOptionsDataSource').set({
|
|
86
|
+
(0, schematics_ts_morph_1.CoerceDecorator)(propertyDeclaration, 'UseOptionsDataSource').set({
|
|
86
87
|
arguments: [optionsDataSourceName],
|
|
87
88
|
});
|
|
88
|
-
CoerceImports(sourceFile, {
|
|
89
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
89
90
|
namedImports: [optionsDataSourceName],
|
|
90
91
|
moduleSpecifier: optionsDataSourceImportPath,
|
|
91
92
|
});
|
|
92
|
-
CoerceImports(sourceFile, {
|
|
93
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
93
94
|
namedImports: ['UseOptionsDataSource'],
|
|
94
95
|
moduleSpecifier: '@rxap/form-system',
|
|
95
96
|
});
|
|
96
97
|
}
|
|
97
98
|
else {
|
|
98
|
-
CoerceDecorator(propertyDeclaration, 'UseOptionsMethod').set({
|
|
99
|
+
(0, schematics_ts_morph_1.CoerceDecorator)(propertyDeclaration, 'UseOptionsMethod').set({
|
|
99
100
|
arguments: [
|
|
100
|
-
OperationIdToClassName(optionsOperationId),
|
|
101
|
-
Writers.object({ withoutParameters: 'true' }),
|
|
101
|
+
(0, schematics_ts_morph_1.OperationIdToClassName)(optionsOperationId),
|
|
102
|
+
ts_morph_1.Writers.object({ withoutParameters: 'true' }),
|
|
102
103
|
],
|
|
103
104
|
});
|
|
104
|
-
CoerceImports(sourceFile, {
|
|
105
|
-
namedImports: [OperationIdToClassName(optionsOperationId)],
|
|
106
|
-
moduleSpecifier: OperationIdToClassImportPath(optionsOperationId, scope),
|
|
105
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
106
|
+
namedImports: [(0, schematics_ts_morph_1.OperationIdToClassName)(optionsOperationId)],
|
|
107
|
+
moduleSpecifier: (0, schematics_ts_morph_1.OperationIdToClassImportPath)(optionsOperationId, scope),
|
|
107
108
|
});
|
|
108
|
-
CoerceImports(sourceFile, {
|
|
109
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
109
110
|
namedImports: ['UseOptionsMethod'],
|
|
110
111
|
moduleSpecifier: '@rxap/form-system',
|
|
111
112
|
});
|
|
@@ -116,9 +117,10 @@ export default function (options) {
|
|
|
116
117
|
};
|
|
117
118
|
},
|
|
118
119
|
}),
|
|
119
|
-
EnforceUseFormControlOrderRule(normalizedOptions),
|
|
120
|
+
(0, schematics_ts_morph_1.EnforceUseFormControlOrderRule)(normalizedOptions),
|
|
120
121
|
() => console.groupEnd(),
|
|
121
122
|
]);
|
|
122
123
|
};
|
|
123
124
|
}
|
|
125
|
+
exports.default = default_1;
|
|
124
126
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/form/control/select-form-control/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/form/control/select-form-control/index.ts"],"names":[],"mappings":";;;AAAA,2DAAmD;AACnD,mEAcmC;AACnC,qEAIoC;AAEpC,+BAA4B;AAC5B,uCAIkB;AAClB,qEAAsE;AACtE,qDAG4B;AAK5B,SAAgB,iCAAiC,CAC/C,OAAiC;;IAEjC,MAAM,iBAAiB,GAAG,IAAA,0CAA2B,EAAC,OAAO,CAAC,CAAC;IAC/D,IAAI,EAAE,OAA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AiB,CAAC;YACjD,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAxID,4BAwIC"}
|
|
@@ -1,85 +1,86 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TableColumnListToTableSelectColumnMap = exports.TableColumnToTableSelectColumn = exports.NormalizeTableSelectFormControlOptions = void 0;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
6
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
7
|
+
const utilities_1 = require("@rxap/utilities");
|
|
8
|
+
const path_1 = require("path");
|
|
9
|
+
const ts_morph_1 = require("ts-morph");
|
|
10
|
+
const angular_options_1 = require("../../../../lib/angular-options");
|
|
11
|
+
const table_column_1 = require("../../../../lib/table-column");
|
|
12
|
+
const table_component_1 = require("../../../table/table-component");
|
|
13
|
+
const form_control_1 = require("../../form-control");
|
|
14
|
+
function NormalizeTableSelectFormControlOptions(options) {
|
|
15
|
+
var _a;
|
|
16
|
+
const normalizedOptions = (0, form_control_1.NormalizeFormControlOptions)(options);
|
|
13
17
|
let { isArray } = normalizedOptions;
|
|
14
|
-
const multiple = options.multiple
|
|
18
|
+
const multiple = (_a = options.multiple) !== null && _a !== void 0 ? _a : false;
|
|
15
19
|
isArray = multiple ? true : isArray;
|
|
16
|
-
const columnList = NormalizeTableColumnList(options.columnList);
|
|
17
|
-
return Object.seal({
|
|
18
|
-
...normalizedOptions,
|
|
19
|
-
isArray,
|
|
20
|
+
const columnList = (0, table_column_1.NormalizeTableColumnList)(options.columnList);
|
|
21
|
+
return Object.seal(Object.assign(Object.assign({}, normalizedOptions), { isArray,
|
|
20
22
|
multiple,
|
|
21
|
-
columnList
|
|
22
|
-
});
|
|
23
|
+
columnList }));
|
|
23
24
|
}
|
|
24
|
-
|
|
25
|
+
exports.NormalizeTableSelectFormControlOptions = NormalizeTableSelectFormControlOptions;
|
|
26
|
+
function TableColumnToTableSelectColumn(options) {
|
|
25
27
|
const { type, name, title, hasFilter, } = options;
|
|
26
28
|
const properties = {};
|
|
27
|
-
properties['label'] = `$localize\`${title
|
|
29
|
+
properties['label'] = `$localize\`${title !== null && title !== void 0 ? title : (0, schematics_utilities_1.capitalize)(name)}\``;
|
|
28
30
|
if (hasFilter) {
|
|
29
31
|
properties['filter'] = 'true';
|
|
30
32
|
}
|
|
31
33
|
properties['type'] = (w) => w.quote(type);
|
|
32
|
-
return Writers.object(properties);
|
|
34
|
+
return ts_morph_1.Writers.object(properties);
|
|
33
35
|
}
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
[column.name]: TableColumnToTableSelectColumn(column),
|
|
38
|
-
}), {}));
|
|
36
|
+
exports.TableColumnToTableSelectColumn = TableColumnToTableSelectColumn;
|
|
37
|
+
function TableColumnListToTableSelectColumnMap(columnList) {
|
|
38
|
+
return ts_morph_1.Writers.object(columnList.reduce((properties, column) => (Object.assign(Object.assign({}, properties), { [column.name]: TableColumnToTableSelectColumn(column) })), {}));
|
|
39
39
|
}
|
|
40
|
+
exports.TableColumnListToTableSelectColumnMap = TableColumnListToTableSelectColumnMap;
|
|
40
41
|
function printOptions(options) {
|
|
41
|
-
PrintAngularOptions('table-select-form-control', options);
|
|
42
|
+
(0, angular_options_1.PrintAngularOptions)('table-select-form-control', options);
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
+
function default_1(options) {
|
|
44
45
|
const normalizedOptions = NormalizeTableSelectFormControlOptions(options);
|
|
45
46
|
const { name, project, feature, directory, formName, type, isArray, state, isRequired, validatorList, nestModule, controllerName, columnList, shared, context, scope, } = normalizedOptions;
|
|
46
47
|
printOptions(normalizedOptions);
|
|
47
48
|
const optionsOperationName = ['get', name, 'option', 'page'].join('-');
|
|
48
49
|
const optionsOperationPath = ['options', name, 'page'].join('/');
|
|
49
|
-
const optionsOperationId = buildOperationId(normalizedOptions, optionsOperationName, BuildNestControllerName({
|
|
50
|
+
const optionsOperationId = (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, optionsOperationName, (0, schematics_ts_morph_1.BuildNestControllerName)({
|
|
50
51
|
controllerName,
|
|
51
52
|
nestModule,
|
|
52
53
|
}));
|
|
53
54
|
const resolveValueOperationName = ['resolve', name, 'option', 'value'].join('-');
|
|
54
55
|
const resolveValueOperationPath = ['options', name, 'resolve', ':value'].join('/');
|
|
55
|
-
const resolveValueOperationId = buildOperationId(normalizedOptions, resolveValueOperationName, BuildNestControllerName({
|
|
56
|
+
const resolveValueOperationId = (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, resolveValueOperationName, (0, schematics_ts_morph_1.BuildNestControllerName)({
|
|
56
57
|
controllerName,
|
|
57
58
|
nestModule,
|
|
58
59
|
}));
|
|
59
|
-
const tableDataSourceName = classify([name, 'select-table', 'data-source'].join('-'));
|
|
60
|
-
const tableDataSourceImportPath = `./data-sources/${dasherize(name)}-select-table.data-source`;
|
|
61
|
-
const tableDataSourceDirectory = join(directory
|
|
62
|
-
const resolveValueMethodName = classify([dasherize(name), 'table-select', 'value', 'resolver', 'method'].join('-'));
|
|
63
|
-
const resolveValueMethodImportPath = `./methods/${dasherize(name)}-table-select-value-resolver.method`;
|
|
64
|
-
const resolveValueMethodDirectory = join(directory
|
|
65
|
-
const tableResponseDtoName = joinWithDash([context, name, 'table-select']);
|
|
60
|
+
const tableDataSourceName = (0, schematics_utilities_1.classify)([name, 'select-table', 'data-source'].join('-'));
|
|
61
|
+
const tableDataSourceImportPath = `./data-sources/${(0, schematics_utilities_1.dasherize)(name)}-select-table.data-source`;
|
|
62
|
+
const tableDataSourceDirectory = (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'data-sources');
|
|
63
|
+
const resolveValueMethodName = (0, schematics_utilities_1.classify)([(0, schematics_utilities_1.dasherize)(name), 'table-select', 'value', 'resolver', 'method'].join('-'));
|
|
64
|
+
const resolveValueMethodImportPath = `./methods/${(0, schematics_utilities_1.dasherize)(name)}-table-select-value-resolver.method`;
|
|
65
|
+
const resolveValueMethodDirectory = (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'methods');
|
|
66
|
+
const tableResponseDtoName = (0, utilities_1.joinWithDash)([context, name, 'table-select']);
|
|
66
67
|
return () => {
|
|
67
|
-
return chain([
|
|
68
|
+
return (0, schematics_1.chain)([
|
|
68
69
|
() => console.group('\x1b[32m[@rxap/schematics-angular:table-select-form-control]\x1b[0m'),
|
|
69
|
-
ExecuteSchematic('form-control', normalizedOptions),
|
|
70
|
-
CoerceTableSelectOperationRule({
|
|
70
|
+
(0, schematics_utilities_1.ExecuteSchematic)('form-control', normalizedOptions),
|
|
71
|
+
(0, schematics_ts_morph_1.CoerceTableSelectOperationRule)({
|
|
71
72
|
project,
|
|
72
73
|
feature,
|
|
73
74
|
nestModule,
|
|
74
75
|
controllerName,
|
|
75
|
-
columnList: columnList.map(TableColumnToGetPageOperationColumn),
|
|
76
|
+
columnList: columnList.map(table_component_1.TableColumnToGetPageOperationColumn),
|
|
76
77
|
operationName: optionsOperationName,
|
|
77
78
|
path: optionsOperationPath,
|
|
78
79
|
skipCoerceTableSuffix: true,
|
|
79
80
|
responseDtoName: tableResponseDtoName,
|
|
80
81
|
context,
|
|
81
82
|
}),
|
|
82
|
-
CoerceTableSelectValueResolveOperationRule({
|
|
83
|
+
(0, schematics_ts_morph_1.CoerceTableSelectValueResolveOperationRule)({
|
|
83
84
|
project,
|
|
84
85
|
feature,
|
|
85
86
|
nestModule,
|
|
@@ -89,7 +90,7 @@ export default function (options) {
|
|
|
89
90
|
responseDtoName: tableResponseDtoName,
|
|
90
91
|
context,
|
|
91
92
|
}),
|
|
92
|
-
CoerceFormProviderRule({
|
|
93
|
+
(0, schematics_ts_morph_1.CoerceFormProviderRule)({
|
|
93
94
|
project,
|
|
94
95
|
feature,
|
|
95
96
|
directory,
|
|
@@ -101,7 +102,7 @@ export default function (options) {
|
|
|
101
102
|
},
|
|
102
103
|
],
|
|
103
104
|
}),
|
|
104
|
-
CoerceFormProviderRule({
|
|
105
|
+
(0, schematics_ts_morph_1.CoerceFormProviderRule)({
|
|
105
106
|
project,
|
|
106
107
|
feature,
|
|
107
108
|
directory,
|
|
@@ -113,7 +114,7 @@ export default function (options) {
|
|
|
113
114
|
},
|
|
114
115
|
],
|
|
115
116
|
}),
|
|
116
|
-
CoerceTableDataSourceRule({
|
|
117
|
+
(0, schematics_ts_morph_1.CoerceTableDataSourceRule)({
|
|
117
118
|
scope,
|
|
118
119
|
project,
|
|
119
120
|
feature,
|
|
@@ -122,7 +123,7 @@ export default function (options) {
|
|
|
122
123
|
name: [name, 'select-table'].join('-'),
|
|
123
124
|
operationId: optionsOperationId,
|
|
124
125
|
}),
|
|
125
|
-
CoerceTableSelectResolveValueMethodRule({
|
|
126
|
+
(0, schematics_ts_morph_1.CoerceTableSelectResolveValueMethodRule)({
|
|
126
127
|
scope,
|
|
127
128
|
project,
|
|
128
129
|
feature,
|
|
@@ -131,7 +132,7 @@ export default function (options) {
|
|
|
131
132
|
name: [name, 'table-select', 'value', 'resolver'].join('-'),
|
|
132
133
|
operationId: resolveValueOperationId,
|
|
133
134
|
}),
|
|
134
|
-
CoerceFormDefinitionControl({
|
|
135
|
+
(0, schematics_ts_morph_1.CoerceFormDefinitionControl)({
|
|
135
136
|
project,
|
|
136
137
|
feature,
|
|
137
138
|
directory,
|
|
@@ -143,25 +144,25 @@ export default function (options) {
|
|
|
143
144
|
isRequired,
|
|
144
145
|
validatorList,
|
|
145
146
|
coerceFormControl: (sourceFile, classDeclaration, control) => {
|
|
146
|
-
const { propertyDeclaration, decoratorDeclaration, } = CoerceFormControl(sourceFile, classDeclaration, control);
|
|
147
|
-
CoerceDecorator(propertyDeclaration, 'UseTableSelectDataSource').set({
|
|
147
|
+
const { propertyDeclaration, decoratorDeclaration, } = (0, schematics_ts_morph_1.CoerceFormControl)(sourceFile, classDeclaration, control);
|
|
148
|
+
(0, schematics_ts_morph_1.CoerceDecorator)(propertyDeclaration, 'UseTableSelectDataSource').set({
|
|
148
149
|
arguments: [tableDataSourceName],
|
|
149
150
|
});
|
|
150
|
-
CoerceImports(sourceFile, {
|
|
151
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
151
152
|
namedImports: [tableDataSourceName],
|
|
152
153
|
moduleSpecifier: tableDataSourceImportPath,
|
|
153
154
|
});
|
|
154
|
-
CoerceDecorator(propertyDeclaration, 'UseTableSelectMethod').set({
|
|
155
|
+
(0, schematics_ts_morph_1.CoerceDecorator)(propertyDeclaration, 'UseTableSelectMethod').set({
|
|
155
156
|
arguments: [resolveValueMethodName],
|
|
156
157
|
});
|
|
157
|
-
CoerceImports(sourceFile, {
|
|
158
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
158
159
|
namedImports: [resolveValueMethodName],
|
|
159
160
|
moduleSpecifier: resolveValueMethodImportPath,
|
|
160
161
|
});
|
|
161
|
-
CoerceDecorator(propertyDeclaration, 'UseTableSelectColumns').set({
|
|
162
|
+
(0, schematics_ts_morph_1.CoerceDecorator)(propertyDeclaration, 'UseTableSelectColumns').set({
|
|
162
163
|
arguments: [TableColumnListToTableSelectColumnMap(columnList)],
|
|
163
164
|
});
|
|
164
|
-
CoerceImports(sourceFile, {
|
|
165
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
165
166
|
namedImports: [
|
|
166
167
|
'UseTableSelectDataSource',
|
|
167
168
|
'UseTableSelectColumns',
|
|
@@ -175,9 +176,10 @@ export default function (options) {
|
|
|
175
176
|
};
|
|
176
177
|
},
|
|
177
178
|
}),
|
|
178
|
-
EnforceUseFormControlOrderRule(normalizedOptions),
|
|
179
|
+
(0, schematics_ts_morph_1.EnforceUseFormControlOrderRule)(normalizedOptions),
|
|
179
180
|
() => console.groupEnd(),
|
|
180
181
|
]);
|
|
181
182
|
};
|
|
182
183
|
}
|
|
184
|
+
exports.default = default_1;
|
|
183
185
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/form/control/table-select-form-control/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/form/control/table-select-form-control/index.ts"],"names":[],"mappings":";;;AAAA,2DAAmD;AACnD,mEAcmC;AACnC,qEAKoC;AACpC,+CAGyB;AACzB,+BAA4B;AAC5B,uCAKkB;AAClB,qEAAsE;AACtE,+DAGsC;AACtC,oEAAqF;AACrF,qDAG4B;AAQ5B,SAAgB,sCAAsC,CACpD,OAAsC;;IAEtC,MAAM,iBAAiB,GAAG,IAAA,0CAA2B,EAAC,OAAO,CAAC,CAAC;IAC/D,IAAI,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAAC;IACpC,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,QAAQ,mCAAI,KAAK,CAAC;IAC3C,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC;IACpC,MAAM,UAAU,GAAG,IAAA,uCAAwB,EAAC,OAAO,CAAC,UAAU,CAAC,CAAC;IAChE,OAAO,MAAM,CAAC,IAAI,iCACb,iBAAiB,KACpB,OAAO;QACP,QAAQ;QACR,UAAU,IACV,CAAC;AACL,CAAC;AAdD,wFAcC;AAED,SAAgB,8BAA8B,CAAC,OAA8B;IAC3E,MAAM,EACJ,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,GACV,GAAG,OAAO,CAAC;IACZ,MAAM,U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