@rxap/schematic-angular 16.1.0-dev.5 → 16.1.0-dev.7
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 +19 -0
- package/README.md +1 -1
- package/collection.json +16 -1
- package/package.json +10 -10
- package/src/lib/accordion-item.js +17 -19
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/accordion-itme-types.js +3 -7
- package/src/lib/accordion-itme-types.js.map +1 -1
- package/src/lib/adapter-options.js +2 -6
- package/src/lib/adapter-options.js.map +1 -1
- package/src/lib/angular-options.js +37 -22
- package/src/lib/angular-options.js.map +1 -1
- package/src/lib/assert-table-component-exists.js +5 -9
- package/src/lib/assert-table-component-exists.js.map +1 -1
- package/src/lib/backend-types.js +2 -5
- package/src/lib/backend-types.js.map +1 -1
- package/src/lib/data-grid-item.js +5 -12
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-options.js +8 -13
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/dialog-action.js +7 -14
- package/src/lib/dialog-action.js.map +1 -1
- package/src/lib/existing-method.js +1 -5
- package/src/lib/existing-method.js.map +1 -1
- package/src/lib/form-component-control.js +9 -16
- package/src/lib/form-component-control.js.map +1 -1
- package/src/lib/form-definition-control.js +9 -17
- package/src/lib/form-definition-control.js.map +1 -1
- package/src/lib/minimum-table-component-options.js +128 -202
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.js +12 -17
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/table-action.js +33 -37
- package/src/lib/table-action.js.map +1 -1
- package/src/lib/table-column.js +20 -27
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/table-header-button.d.ts +10 -1
- package/src/lib/table-header-button.js +27 -13
- package/src/lib/table-header-button.js.map +1 -1
- package/src/lib/table-open-api-options.js +4 -8
- package/src/lib/table-open-api-options.js.map +1 -1
- package/src/lib/table-options.js +13 -15
- package/src/lib/table-options.js.map +1 -1
- package/src/lib/table-row-action.js +13 -18
- package/src/lib/table-row-action.js.map +1 -1
- package/src/lib/to-title.js +4 -8
- package/src/lib/to-title.js.map +1 -1
- package/src/lib/tree-table-options.js +11 -13
- package/src/lib/tree-table-options.js.map +1 -1
- package/src/schematics/accordion/accordion-component/index.js +125 -105
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/index.js +119 -107
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +55 -54
- 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 +38 -36
- 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 +54 -52
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/index.js +87 -81
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/dialog-component/index.js +21 -20
- package/src/schematics/dialog-component/index.js.map +1 -1
- package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
- package/src/schematics/form/control/input-form-control/index.js +18 -17
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/control/select-form-control/index.js +43 -43
- 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 -58
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/form-component/index.js +82 -61
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.json +3 -6
- package/src/schematics/form/form-control/index.js +24 -23
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-definition/index.d.ts +2 -2
- package/src/schematics/form/form-definition/index.js +24 -19
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/table/action/dialog-table-action/index.js +32 -30
- package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
- package/src/schematics/table/action/form-table-action/index.js +89 -56
- package/src/schematics/table/action/form-table-action/index.js.map +1 -1
- package/src/schematics/table/action/navigation-table-action/index.js +19 -20
- package/src/schematics/table/action/navigation-table-action/index.js.map +1 -1
- package/src/schematics/table/action/operation-table-action/index.js +32 -31
- package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
- package/src/schematics/table/header-button/form-table-header-button/index.d.ts +11 -0
- package/src/schematics/table/header-button/form-table-header-button/index.js +90 -0
- package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -0
- package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +7 -0
- package/src/schematics/table/header-button/form-table-header-button/schema.json +123 -0
- package/src/schematics/table/header-button/navigation-table-header-button/index.d.ts +8 -0
- package/src/schematics/table/header-button/navigation-table-header-button/index.js +60 -0
- package/src/schematics/table/header-button/navigation-table-header-button/index.js.map +1 -0
- package/src/schematics/table/header-button/navigation-table-header-button/schema.d.ts +6 -0
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +85 -0
- package/src/schematics/table/table-action/index.js +24 -23
- package/src/schematics/table/table-action/index.js.map +1 -1
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +5 -8
- package/src/schematics/table/table-component/files/component/__componentName__.component.ts.template +2 -2
- package/src/schematics/table/table-component/index.js +94 -93
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +4 -0
- package/src/schematics/table/table-header-button/index.d.ts +10 -0
- package/src/schematics/table/table-header-button/index.js +49 -0
- package/src/schematics/table/table-header-button/index.js.map +1 -0
- package/src/schematics/table/table-header-button/schema.d.ts +7 -0
- package/src/schematics/table/table-header-button/schema.json +80 -0
- package/src/schematics/table/tree-table-component/index.js +66 -63
- 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
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "table-action",
|
|
4
|
+
"type": "object",
|
|
5
|
+
"properties": {
|
|
6
|
+
"tableName": {
|
|
7
|
+
"alias": "table",
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the table action"
|
|
10
|
+
},
|
|
11
|
+
"project": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "The target project where the table action should be added."
|
|
14
|
+
},
|
|
15
|
+
"feature": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The feature name where the table action should be added.",
|
|
18
|
+
"x-prompt": "To which feature should the table action be added?"
|
|
19
|
+
},
|
|
20
|
+
"backend": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The backend that should be used to handel data",
|
|
23
|
+
"enum": [
|
|
24
|
+
"none",
|
|
25
|
+
"local",
|
|
26
|
+
"nestjs",
|
|
27
|
+
"open-api"
|
|
28
|
+
],
|
|
29
|
+
"default": "none"
|
|
30
|
+
},
|
|
31
|
+
"shared": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"description": "Whether the table action is shared across applications",
|
|
34
|
+
"default": false
|
|
35
|
+
},
|
|
36
|
+
"refresh": {
|
|
37
|
+
"type": "boolean",
|
|
38
|
+
"description": "Whether the table action should refresh the table after execution",
|
|
39
|
+
"default": false
|
|
40
|
+
},
|
|
41
|
+
"confirm": {
|
|
42
|
+
"type": "boolean",
|
|
43
|
+
"description": "Whether the table action should confirm before execution",
|
|
44
|
+
"default": false
|
|
45
|
+
},
|
|
46
|
+
"tooltip": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "The tooltip for the table action"
|
|
49
|
+
},
|
|
50
|
+
"errorMessage": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "The error message for the table action"
|
|
53
|
+
},
|
|
54
|
+
"successMessage": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "The success message for the table action"
|
|
57
|
+
},
|
|
58
|
+
"directory": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "A directory name or absolute path for the table action. relative to the feature base path"
|
|
61
|
+
},
|
|
62
|
+
"permission": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"icon": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
"svgIcon": {
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"options": {
|
|
72
|
+
"type": "object",
|
|
73
|
+
"additionalProperties": true
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": [
|
|
77
|
+
"project",
|
|
78
|
+
"feature"
|
|
79
|
+
]
|
|
80
|
+
}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
function NormalizedTreeTableComponentOptions(options) {
|
|
12
|
-
const normalizedMinimumTableComponentOptions = (0, minimum_table_component_options_1.NormalizeMinimumTableComponentOptions)(options);
|
|
13
|
-
(0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedMinimumTableComponentOptions);
|
|
1
|
+
import { chain, noop, } from '@angular-devkit/schematics';
|
|
2
|
+
import { AddComponentProvider, buildOperationId, CoerceComponentRule, CoerceGetChildrenOperation, CoerceGetRootOperation, CoerceImports, CoerceMethodClass, CoerceTreeTableChildrenProxyRemoteMethodClass, CoerceTreeTableRootProxyRemoteMethodClass, } from '@rxap/schematics-ts-morph';
|
|
3
|
+
import { classify, } from '@rxap/utilities';
|
|
4
|
+
import { AssertAngularOptionsNameProperty, PrintAngularOptions, } from '../../../lib/angular-options';
|
|
5
|
+
import { BackendTypes } from '../../../lib/backend-types';
|
|
6
|
+
import { actionListRule, cellComponentRule, headerButtonRule, NormalizeMinimumTableComponentOptions, tableInterfaceRule, } from '../../../lib/minimum-table-component-options';
|
|
7
|
+
import { NormalizeTreeTableOptions, } from '../../../lib/tree-table-options';
|
|
8
|
+
export function NormalizedTreeTableComponentOptions(options) {
|
|
9
|
+
const normalizedMinimumTableComponentOptions = NormalizeMinimumTableComponentOptions(options);
|
|
10
|
+
AssertAngularOptionsNameProperty(normalizedMinimumTableComponentOptions);
|
|
14
11
|
const { name } = normalizedMinimumTableComponentOptions;
|
|
15
|
-
const normalizedTreeTableOptions =
|
|
16
|
-
return Object.seal(
|
|
12
|
+
const normalizedTreeTableOptions = NormalizeTreeTableOptions(options, name);
|
|
13
|
+
return Object.seal({
|
|
14
|
+
...normalizedMinimumTableComponentOptions,
|
|
15
|
+
...normalizedTreeTableOptions,
|
|
16
|
+
});
|
|
17
17
|
}
|
|
18
|
-
exports.NormalizedTreeTableComponentOptions = NormalizedTreeTableComponentOptions;
|
|
19
18
|
function printOptions(options) {
|
|
20
|
-
|
|
19
|
+
PrintAngularOptions('tree-table-component', options);
|
|
21
20
|
if (options.columnList.length) {
|
|
22
21
|
console.log(`=== columns: \x1b[34m${options.columnList.map((item) => item.name).join(', ')}\x1b[0m`);
|
|
23
22
|
}
|
|
@@ -33,10 +32,15 @@ function printOptions(options) {
|
|
|
33
32
|
}
|
|
34
33
|
function componentRule(normalizedOptions) {
|
|
35
34
|
const { project, feature, shared, componentName, directory, overwrite, modifiers, columnList, } = normalizedOptions;
|
|
36
|
-
const templateOptions =
|
|
37
|
-
|
|
35
|
+
const templateOptions = {
|
|
36
|
+
...normalizedOptions,
|
|
37
|
+
hasNavigationBackHeader: modifiers.includes('navigation-back-header'),
|
|
38
|
+
hasWithoutTitle: modifiers.includes('without-title'),
|
|
39
|
+
hasColumnWithFilter: columnList.some((c) => c.hasFilter),
|
|
40
|
+
};
|
|
41
|
+
return chain([
|
|
38
42
|
() => console.log(`Coerce the table component ${componentName}`),
|
|
39
|
-
|
|
43
|
+
CoerceComponentRule({
|
|
40
44
|
project,
|
|
41
45
|
feature,
|
|
42
46
|
shared,
|
|
@@ -47,7 +51,7 @@ function componentRule(normalizedOptions) {
|
|
|
47
51
|
options: templateOptions,
|
|
48
52
|
},
|
|
49
53
|
tsMorphTransform: (project, [sourceFile]) => {
|
|
50
|
-
|
|
54
|
+
AddComponentProvider(sourceFile, {
|
|
51
55
|
provide: 'TABLE_DATA_SOURCE',
|
|
52
56
|
useClass: 'TreeTableDataSource',
|
|
53
57
|
}, [
|
|
@@ -66,11 +70,11 @@ function componentRule(normalizedOptions) {
|
|
|
66
70
|
}
|
|
67
71
|
function nestjsBackendRule(normalizedOptions) {
|
|
68
72
|
const { nestModule, project, feature, shared, componentName, directory, overwrite, scope, controllerName, } = normalizedOptions;
|
|
69
|
-
const getRootOperationId =
|
|
70
|
-
const getChildrenOperationId =
|
|
71
|
-
return
|
|
73
|
+
const getRootOperationId = buildOperationId(normalizedOptions, 'get-root', controllerName);
|
|
74
|
+
const getChildrenOperationId = buildOperationId(normalizedOptions, 'get-children', controllerName);
|
|
75
|
+
return chain([
|
|
72
76
|
() => console.log(`Coerce the get root operation ${getRootOperationId}`),
|
|
73
|
-
|
|
77
|
+
CoerceGetRootOperation({
|
|
74
78
|
controllerName: componentName,
|
|
75
79
|
nestModule,
|
|
76
80
|
project,
|
|
@@ -78,7 +82,7 @@ function nestjsBackendRule(normalizedOptions) {
|
|
|
78
82
|
shared,
|
|
79
83
|
}),
|
|
80
84
|
() => console.log(`Coerce the get children operation ${getChildrenOperationId}`),
|
|
81
|
-
|
|
85
|
+
CoerceGetChildrenOperation({
|
|
82
86
|
controllerName: componentName,
|
|
83
87
|
nestModule,
|
|
84
88
|
project,
|
|
@@ -87,7 +91,7 @@ function nestjsBackendRule(normalizedOptions) {
|
|
|
87
91
|
skipCoerce: true,
|
|
88
92
|
}),
|
|
89
93
|
() => console.log(`Coerce the tree table root proxy remote method class`),
|
|
90
|
-
|
|
94
|
+
CoerceTreeTableRootProxyRemoteMethodClass({
|
|
91
95
|
scope,
|
|
92
96
|
project,
|
|
93
97
|
feature,
|
|
@@ -96,7 +100,7 @@ function nestjsBackendRule(normalizedOptions) {
|
|
|
96
100
|
getRootOperationId,
|
|
97
101
|
}),
|
|
98
102
|
() => console.log(`Coerce the tree table children proxy remote method class`),
|
|
99
|
-
|
|
103
|
+
CoerceTreeTableChildrenProxyRemoteMethodClass({
|
|
100
104
|
scope,
|
|
101
105
|
project,
|
|
102
106
|
feature,
|
|
@@ -105,7 +109,7 @@ function nestjsBackendRule(normalizedOptions) {
|
|
|
105
109
|
getChildrenOperationId,
|
|
106
110
|
}),
|
|
107
111
|
() => console.log(`Coerce the tree table providers`),
|
|
108
|
-
|
|
112
|
+
CoerceComponentRule({
|
|
109
113
|
project,
|
|
110
114
|
feature,
|
|
111
115
|
shared,
|
|
@@ -113,7 +117,7 @@ function nestjsBackendRule(normalizedOptions) {
|
|
|
113
117
|
directory,
|
|
114
118
|
overwrite,
|
|
115
119
|
tsMorphTransform: (project, [sourceFile]) => {
|
|
116
|
-
|
|
120
|
+
AddComponentProvider(sourceFile, {
|
|
117
121
|
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_ROOT_REMOTE_METHOD',
|
|
118
122
|
useClass: 'TreeTableRootProxyMethod',
|
|
119
123
|
}, [
|
|
@@ -126,7 +130,7 @@ function nestjsBackendRule(normalizedOptions) {
|
|
|
126
130
|
namedImports: ['TreeTableRootProxyMethod'],
|
|
127
131
|
},
|
|
128
132
|
]);
|
|
129
|
-
|
|
133
|
+
AddComponentProvider(sourceFile, {
|
|
130
134
|
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_CHILDREN_REMOTE_METHOD',
|
|
131
135
|
useClass: 'TreeTableChildrenProxyMethod',
|
|
132
136
|
}, [
|
|
@@ -145,8 +149,8 @@ function nestjsBackendRule(normalizedOptions) {
|
|
|
145
149
|
}
|
|
146
150
|
function localBackendRule(normalizedOptions) {
|
|
147
151
|
const { project, feature, shared, componentName, directory, overwrite, name, } = normalizedOptions;
|
|
148
|
-
return
|
|
149
|
-
|
|
152
|
+
return chain([
|
|
153
|
+
CoerceComponentRule({
|
|
150
154
|
project,
|
|
151
155
|
feature,
|
|
152
156
|
shared,
|
|
@@ -154,9 +158,9 @@ function localBackendRule(normalizedOptions) {
|
|
|
154
158
|
directory,
|
|
155
159
|
overwrite,
|
|
156
160
|
tsMorphTransform: (project, [sourceFile]) => {
|
|
157
|
-
|
|
161
|
+
AddComponentProvider(sourceFile, {
|
|
158
162
|
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_ROOT_REMOTE_METHOD',
|
|
159
|
-
useClass: `${
|
|
163
|
+
useClass: `${classify(name)}RootTableMethod`,
|
|
160
164
|
}, [
|
|
161
165
|
{
|
|
162
166
|
moduleSpecifier: '@rxap/data-source/table/tree',
|
|
@@ -164,12 +168,12 @@ function localBackendRule(normalizedOptions) {
|
|
|
164
168
|
},
|
|
165
169
|
{
|
|
166
170
|
moduleSpecifier: `./${name}-root-table.method`,
|
|
167
|
-
namedImports: [`${
|
|
171
|
+
namedImports: [`${classify(name)}RootTableMethod`],
|
|
168
172
|
},
|
|
169
173
|
]);
|
|
170
|
-
|
|
174
|
+
AddComponentProvider(sourceFile, {
|
|
171
175
|
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_CHILDREN_REMOTE_METHOD',
|
|
172
|
-
useClass: `${
|
|
176
|
+
useClass: `${classify(name)}ChildTableMethod`,
|
|
173
177
|
}, [
|
|
174
178
|
{
|
|
175
179
|
moduleSpecifier: '@rxap/data-source/table/tree',
|
|
@@ -177,13 +181,13 @@ function localBackendRule(normalizedOptions) {
|
|
|
177
181
|
},
|
|
178
182
|
{
|
|
179
183
|
moduleSpecifier: `./${name}-child-table.method`,
|
|
180
|
-
namedImports: [`${
|
|
184
|
+
namedImports: [`${classify(name)}ChildTableMethod`],
|
|
181
185
|
},
|
|
182
186
|
]);
|
|
183
187
|
},
|
|
184
188
|
}),
|
|
185
189
|
() => console.log(`Coerce local backend root method`),
|
|
186
|
-
|
|
190
|
+
CoerceMethodClass({
|
|
187
191
|
name: `${name}-root-table`,
|
|
188
192
|
project,
|
|
189
193
|
feature,
|
|
@@ -191,21 +195,21 @@ function localBackendRule(normalizedOptions) {
|
|
|
191
195
|
directory,
|
|
192
196
|
overwrite,
|
|
193
197
|
tsMorphTransform: (project, sourceFile, classDeclaration) => {
|
|
194
|
-
|
|
198
|
+
CoerceImports(sourceFile, [
|
|
195
199
|
{
|
|
196
200
|
moduleSpecifier: `./${name}-table`,
|
|
197
|
-
namedImports: [`I${
|
|
201
|
+
namedImports: [`I${classify(name)}Table`],
|
|
198
202
|
},
|
|
199
203
|
]);
|
|
200
204
|
return {
|
|
201
205
|
parameters: [],
|
|
202
206
|
statements: ['return [];'],
|
|
203
|
-
returnType: `I${
|
|
207
|
+
returnType: `I${classify(name)}Table[]`,
|
|
204
208
|
};
|
|
205
209
|
},
|
|
206
210
|
}),
|
|
207
211
|
() => console.log(`Coerce local backend child method`),
|
|
208
|
-
|
|
212
|
+
CoerceMethodClass({
|
|
209
213
|
name: `${name}-child-table`,
|
|
210
214
|
project,
|
|
211
215
|
feature,
|
|
@@ -213,25 +217,25 @@ function localBackendRule(normalizedOptions) {
|
|
|
213
217
|
directory,
|
|
214
218
|
overwrite,
|
|
215
219
|
tsMorphTransform: (project, sourceFile, classDeclaration) => {
|
|
216
|
-
|
|
220
|
+
CoerceImports(sourceFile, [
|
|
217
221
|
{
|
|
218
222
|
moduleSpecifier: '@rxap/data-structure-tree',
|
|
219
223
|
namedImports: ['Node'],
|
|
220
224
|
},
|
|
221
225
|
{
|
|
222
226
|
moduleSpecifier: `./${name}-table`,
|
|
223
|
-
namedImports: [`I${
|
|
227
|
+
namedImports: [`I${classify(name)}Table`],
|
|
224
228
|
},
|
|
225
229
|
]);
|
|
226
230
|
return {
|
|
227
231
|
parameters: [
|
|
228
232
|
{
|
|
229
233
|
name: 'node',
|
|
230
|
-
type: `Node<I${
|
|
234
|
+
type: `Node<I${classify(name)}Table>`,
|
|
231
235
|
},
|
|
232
236
|
],
|
|
233
237
|
statements: ['return [];'],
|
|
234
|
-
returnType: `I${
|
|
238
|
+
returnType: `I${classify(name)}Table[]`,
|
|
235
239
|
};
|
|
236
240
|
},
|
|
237
241
|
}),
|
|
@@ -240,18 +244,18 @@ function localBackendRule(normalizedOptions) {
|
|
|
240
244
|
function backendRule(normalizedOptions) {
|
|
241
245
|
const { backend, } = normalizedOptions;
|
|
242
246
|
switch (backend) {
|
|
243
|
-
case
|
|
247
|
+
case BackendTypes.NESTJS:
|
|
244
248
|
return nestjsBackendRule(normalizedOptions);
|
|
245
|
-
case
|
|
249
|
+
case BackendTypes.LOCAL:
|
|
246
250
|
return localBackendRule(normalizedOptions);
|
|
247
251
|
}
|
|
248
|
-
return
|
|
252
|
+
return noop();
|
|
249
253
|
}
|
|
250
254
|
function treeTableMethodRule(normalizedOptions) {
|
|
251
255
|
const { project, feature, shared, componentName, directory, overwrite, tableRootMethod, tableChildMethod, } = normalizedOptions;
|
|
252
256
|
if (tableRootMethod && tableChildMethod) {
|
|
253
|
-
return
|
|
254
|
-
|
|
257
|
+
return chain([
|
|
258
|
+
CoerceComponentRule({
|
|
255
259
|
project,
|
|
256
260
|
feature,
|
|
257
261
|
shared,
|
|
@@ -259,7 +263,7 @@ function treeTableMethodRule(normalizedOptions) {
|
|
|
259
263
|
directory,
|
|
260
264
|
overwrite,
|
|
261
265
|
tsMorphTransform: (project, [sourceFile]) => {
|
|
262
|
-
|
|
266
|
+
AddComponentProvider(sourceFile, {
|
|
263
267
|
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_ROOT_REMOTE_METHOD',
|
|
264
268
|
useClass: tableRootMethod.className,
|
|
265
269
|
}, [
|
|
@@ -272,7 +276,7 @@ function treeTableMethodRule(normalizedOptions) {
|
|
|
272
276
|
namedImports: [tableRootMethod.className],
|
|
273
277
|
},
|
|
274
278
|
]);
|
|
275
|
-
|
|
279
|
+
AddComponentProvider(sourceFile, {
|
|
276
280
|
provide: 'RXAP_TREE_TABLE_DATA_SOURCE_CHILDREN_REMOTE_METHOD',
|
|
277
281
|
useClass: tableChildMethod.className,
|
|
278
282
|
}, [
|
|
@@ -289,22 +293,21 @@ function treeTableMethodRule(normalizedOptions) {
|
|
|
289
293
|
}),
|
|
290
294
|
]);
|
|
291
295
|
}
|
|
292
|
-
return
|
|
296
|
+
return noop();
|
|
293
297
|
}
|
|
294
|
-
function
|
|
298
|
+
export default function (options) {
|
|
295
299
|
const normalizedOptions = NormalizedTreeTableComponentOptions(options);
|
|
296
300
|
printOptions(normalizedOptions);
|
|
297
301
|
return () => {
|
|
298
|
-
return
|
|
299
|
-
|
|
302
|
+
return chain([
|
|
303
|
+
tableInterfaceRule(normalizedOptions),
|
|
300
304
|
componentRule(normalizedOptions),
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
305
|
+
actionListRule(normalizedOptions),
|
|
306
|
+
cellComponentRule(normalizedOptions),
|
|
307
|
+
headerButtonRule(normalizedOptions),
|
|
304
308
|
backendRule(normalizedOptions),
|
|
305
309
|
treeTableMethodRule(normalizedOptions),
|
|
306
310
|
]);
|
|
307
311
|
};
|
|
308
312
|
}
|
|
309
|
-
exports.default = default_1;
|
|
310
313
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/tree-table-component/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/tree-table-component/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,EACL,IAAI,GACL,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,0BAA0B,EAC1B,sBAAsB,EACtB,aAAa,EACb,iBAAiB,EACjB,6CAA6C,EAC7C,yCAAyC,GAC1C,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,QAAQ,GAET,MAAM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C;SACvC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
function NormalizeTreeComponentOptions(options) {
|
|
9
|
-
var _a, _b, _c;
|
|
10
|
-
const normalizedAngularOptions = (0, angular_options_1.NormalizeAngularOptions)(options);
|
|
11
|
-
(0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedAngularOptions);
|
|
1
|
+
import { CoerceSuffix, dasherize, } from '@rxap/schematics-utilities';
|
|
2
|
+
import { chain } from '@angular-devkit/schematics';
|
|
3
|
+
import { CoerceTreeOperationRule } from '@rxap/schematics-ts-morph';
|
|
4
|
+
import { AssertAngularOptionsNameProperty, NormalizeAngularOptions, } from '../../lib/angular-options';
|
|
5
|
+
export function NormalizeTreeComponentOptions(options) {
|
|
6
|
+
const normalizedAngularOptions = NormalizeAngularOptions(options);
|
|
7
|
+
AssertAngularOptionsNameProperty(normalizedAngularOptions);
|
|
12
8
|
const { name } = normalizedAngularOptions;
|
|
13
|
-
const componentName =
|
|
14
|
-
return Object.seal(
|
|
9
|
+
const componentName = CoerceSuffix(dasherize(name), '-tree');
|
|
10
|
+
return Object.seal({
|
|
11
|
+
...normalizedAngularOptions,
|
|
12
|
+
modifiers: options.modifiers ?? [],
|
|
13
|
+
controllerName: options.controllerName ?? componentName,
|
|
14
|
+
componentName,
|
|
15
|
+
fullTree: options.fullTree ?? true,
|
|
16
|
+
});
|
|
15
17
|
}
|
|
16
|
-
|
|
17
|
-
function default_1(options) {
|
|
18
|
+
export default function (options) {
|
|
18
19
|
const normalizedOptions = NormalizeTreeComponentOptions(options);
|
|
19
20
|
const { fullTree, project, feature, shared, controllerName, } = normalizedOptions;
|
|
20
21
|
return () => {
|
|
21
|
-
return
|
|
22
|
-
|
|
22
|
+
return chain([
|
|
23
|
+
CoerceTreeOperationRule({
|
|
23
24
|
project,
|
|
24
25
|
feature,
|
|
25
26
|
shared,
|
|
@@ -29,5 +30,4 @@ function default_1(options) {
|
|
|
29
30
|
]);
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
|
-
exports.default = default_1;
|
|
33
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/angular/src/schematics/tree-component/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/angular/src/schematics/tree-component/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,YAAY,EACZ,SAAS,GACV,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EACL,gCAAgC,EAChC,uBAAuB,GAExB,MAAM,2BAA2B,CAAC;AAUnC,MAAM,UAAU,6BAA6B,CAC3C,OAA6B;IAE7B,MAAM,wBAAwB,GAAG,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAClE,gCAAgC,CAAC,wBAAwB,CAAC,CAAC;IAC3D,MAAM,EAAE,IAAI,EAAE,GAAG,wBAAwB,CAAC;IAC1C,MAAM,aAAa,GAAG,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;IAC7D,OAAO,MAAM,CAAC,IAAI,CAAC;QACjB,GAAG,wBAAwB;QAC3B,SAAS,EAAE,OAAO,CAAC,SAAS,IAAI,EAAE;QAClC,cAAc,EAAE,OAAO,CAAC,cAAc,IAAI,aAAa;QACvD,aAAa;QACb,QAAQ,EAAE,OAAO,CAAC,QAAQ,IAAI,IAAI;KACnC,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,OAAO,WAAW,OAA6B;IACpD,MAAM,iBAAiB,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAC;IACjE,MAAM,EACJ,QAAQ,EACR,OAAO,EACP,OAAO,EACP,MAAM,EACN,cAAc,GACf,GACC,iBAAiB,CAAC;IAEpB,OAAO,GAAG,EAAE;QACV,OAAO,KAAK,CAAC;YACX,uBAAuB,CAAC;gBACtB,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,cAAc;gBACd,QAAQ;aACT,CAAC;SACH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC"}
|