@rxap/schematic-angular 16.2.0-dev.23 → 16.2.0-dev.25
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/package.json +10 -10
- package/src/lib/accordion-identifier.d.ts +2 -2
- package/src/lib/accordion-identifier.js +2 -1
- package/src/lib/accordion-identifier.js.map +1 -1
- package/src/lib/coerce-tree-table-component.js +1 -5
- package/src/lib/coerce-tree-table-component.js.map +1 -1
- package/src/lib/data-grid-item.js +5 -3
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/form/control/autocomplete-table-select-form-control.js +11 -1
- package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -1
- package/src/lib/form/control/table-select-form-control.d.ts +3 -0
- package/src/lib/form/control/table-select-form-control.js +11 -1
- package/src/lib/form/control/table-select-form-control.js.map +1 -1
- package/src/lib/load-handlebars-template.d.ts +1 -0
- package/src/lib/load-handlebars-template.js +5 -1
- package/src/lib/load-handlebars-template.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +3 -0
- package/src/lib/minimum-table-options.js +8 -1
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/table/table-filter-column-rule.js +2 -3
- package/src/lib/table/table-filter-column-rule.js.map +1 -1
- package/src/lib/table-column.d.ts +17 -1
- package/src/lib/table-column.js +38 -3
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/tree-table-options.js +28 -3
- package/src/lib/tree-table-options.js.map +1 -1
- package/src/schema.json +242 -164
- package/src/schematics/accordion/accordion-component/schema.json +1427 -116
- package/src/schematics/accordion/accordion-item-component/schema.json +1427 -116
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +72 -62
- package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +3 -14
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +1411 -166
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +3 -64
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +5 -16
- package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +82 -74
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +3 -26
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +4 -29
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +82 -74
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +3 -26
- package/src/schematics/accordion-identifier.schema.json +1 -2
- package/src/schematics/accordion-item.schema.json +43 -50
- package/src/schematics/autocomplete-table-select-form-control.schema.json +1 -1
- package/src/schematics/base-accordion-item.schema.json +52 -0
- package/src/schematics/data-grid-accordion-item.schema.json +34 -0
- package/src/schematics/data-grid-component/index.js +8 -4
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +6 -7
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +8 -6
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +2 -5
- package/src/schematics/form/control/input-form-control/schema.json +1 -4
- package/src/schematics/form/control/select-form-control/schema.json +1 -4
- package/src/schematics/form/control/table-select-form-control/index.js +8 -6
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/schema.json +21 -4
- package/src/schematics/form/form-array/schema.json +22 -5
- package/src/schematics/form/form-component/schema.json +6 -7
- package/src/schematics/form/form-control/schema.json +22 -5
- package/src/schematics/form/form-definition/schema.json +22 -5
- package/src/schematics/form/form-group/schema.json +22 -5
- package/src/schematics/minimum-table.schema.json +6 -0
- package/src/schematics/property.schema.json +1 -4
- package/src/schematics/switch-accordion-item.schema.json +82 -0
- package/src/schematics/table/action/form-table-action/schema.json +6 -7
- package/src/schematics/table/header-button/form-table-header-button/schema.json +6 -7
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +4 -4
- package/src/schematics/table/table-component/index.d.ts +0 -3
- package/src/schematics/table/table-component/index.js +2 -9
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +25 -5
- package/src/schematics/table/templates/default-table-column.hbs +4 -1
- package/src/schematics/table/templates/mat-column-def.hbs +3 -0
- package/src/schematics/table/templates/spinner-table-column.hbs +12 -0
- package/src/schematics/table/templates/tree-table-column.hbs +9 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +6 -31
- package/src/schematics/table/tree-table-component/index.js +3 -1
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +25 -5
- package/src/schematics/table-accordion-item.schema.json +41 -0
- package/src/schematics/table-select-form-control.schema.json +6 -0
- package/src/schematics/tree-table-accordion-item.schema.json +41 -0
- package/src/template.schema.json +15 -0
|
@@ -6,76 +6,15 @@
|
|
|
6
6
|
"$ref": "#/definitions/angular"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
|
-
"$ref": "#/definitions/
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"type": "object",
|
|
13
|
-
"properties": {
|
|
14
|
-
"switch": {
|
|
15
|
-
"type": "object",
|
|
16
|
-
"properties": {
|
|
17
|
-
"property": {
|
|
18
|
-
"$ref": "#/definitions/property"
|
|
19
|
-
},
|
|
20
|
-
"defaultCase": {
|
|
21
|
-
"type": "object",
|
|
22
|
-
"properties": {
|
|
23
|
-
"itemList": {
|
|
24
|
-
"alias": "item",
|
|
25
|
-
"type": "array",
|
|
26
|
-
"items": {
|
|
27
|
-
"$ref": "#/definitions/accordionItem"
|
|
28
|
-
},
|
|
29
|
-
"description": "The list of accordion expansion panels"
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
"required": ["itemList"]
|
|
33
|
-
},
|
|
34
|
-
"case": {
|
|
35
|
-
"type": "array",
|
|
36
|
-
"items": {
|
|
37
|
-
"type": "object",
|
|
38
|
-
"properties": {
|
|
39
|
-
"test": {
|
|
40
|
-
"anyOf": [
|
|
41
|
-
{
|
|
42
|
-
"type": "string"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"type": "number"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"type": "boolean"
|
|
49
|
-
}
|
|
50
|
-
]
|
|
51
|
-
},
|
|
52
|
-
"itemList": {
|
|
53
|
-
"alias": "item",
|
|
54
|
-
"type": "array",
|
|
55
|
-
"items": {
|
|
56
|
-
"$ref": "#/definitions/accordionItem"
|
|
57
|
-
},
|
|
58
|
-
"description": "The list of accordion expansion panels"
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
"required": ["test", "itemList"]
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"required": ["property", "case"]
|
|
66
|
-
}
|
|
67
|
-
}
|
|
9
|
+
"$ref": "#/definitions/switchAccordionItem"
|
|
68
10
|
}
|
|
69
11
|
],
|
|
70
12
|
"definitions": {
|
|
71
13
|
"angular": {
|
|
72
14
|
"$ref": "../../../angular.schema.json"
|
|
73
15
|
},
|
|
74
|
-
"
|
|
75
|
-
"$ref": "../../../accordion-item.schema.json"
|
|
76
|
-
},
|
|
77
|
-
"property": {
|
|
78
|
-
"$ref": "../../../property.schema.json"
|
|
16
|
+
"switchAccordionItem": {
|
|
17
|
+
"$ref": "../../../switch-accordion-item.schema.json"
|
|
79
18
|
}
|
|
80
19
|
}
|
|
81
20
|
}
|
|
@@ -39,28 +39,17 @@ function componentRule(normalizedOptions) {
|
|
|
39
39
|
]);
|
|
40
40
|
}
|
|
41
41
|
function tableComponentSchematicRule(normalizedOptions) {
|
|
42
|
-
var _a
|
|
43
|
-
const { directory, nestModule, name, project, feature, overwrite, backend, table, } = normalizedOptions;
|
|
42
|
+
var _a;
|
|
43
|
+
const { directory, nestModule, name, project, feature, overwrite, backend, table, controllerName, identifier } = normalizedOptions;
|
|
44
44
|
const { hasSharedModifier } = (0, accordion_item_component_1.GetItemOptions)(normalizedOptions);
|
|
45
45
|
return (0, schematics_1.chain)([
|
|
46
46
|
() => console.log(`Generate table component ...`),
|
|
47
|
-
(0, schematics_utilities_1.ExecuteSchematic)('table-component', {
|
|
48
|
-
shared: hasSharedModifier,
|
|
49
|
-
name,
|
|
47
|
+
(0, schematics_utilities_1.ExecuteSchematic)('table-component', Object.assign(Object.assign({}, table), { shared: hasSharedModifier, name,
|
|
50
48
|
project,
|
|
51
49
|
feature,
|
|
52
|
-
directory: hasSharedModifier ? undefined : directory,
|
|
53
|
-
nestModule: hasSharedModifier ? undefined : nestModule,
|
|
54
|
-
modifiers: [table_options_1.TableModifiers.WITHOUT_TITLE, ...(_a = table === null || table === void 0 ? void 0 : table.modifiers) !== null && _a !== void 0 ? _a : []],
|
|
55
|
-
overwrite,
|
|
50
|
+
controllerName, directory: hasSharedModifier ? undefined : directory, nestModule: hasSharedModifier ? undefined : nestModule, modifiers: [table_options_1.TableModifiers.WITHOUT_TITLE, ...(_a = table === null || table === void 0 ? void 0 : table.modifiers) !== null && _a !== void 0 ? _a : []], overwrite,
|
|
56
51
|
backend,
|
|
57
|
-
|
|
58
|
-
actionList: (_c = table === null || table === void 0 ? void 0 : table.actionList) !== null && _c !== void 0 ? _c : [],
|
|
59
|
-
title: table === null || table === void 0 ? void 0 : table.title,
|
|
60
|
-
headerButton: table === null || table === void 0 ? void 0 : table.headerButton,
|
|
61
|
-
tableMethod: table.tableMethod,
|
|
62
|
-
selectColumn: table.selectColumn,
|
|
63
|
-
}),
|
|
52
|
+
identifier })),
|
|
64
53
|
]);
|
|
65
54
|
}
|
|
66
55
|
function nestjsBackendRule(normalizedOptions) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/accordion/item/accordion-item-table-component/index.ts"],"names":[],"mappings":";;;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sources":["../../../../../../../../../packages/schematic/angular/src/schematics/accordion/item/accordion-item-table-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAGoC;AACpC,mEAAmE;AACnE,qEAA8D;AAG9D,mEAGwC;AACxC,+EAA0E;AAE1E,iEAA6D;AAC7D,iHAA8G;AAC9G,iEAA+D;AAC/D,6EAKwC;AAOxC,SAAgB,2CAA2C,CACzD,OAAqD;IAErD,MAAM,uCAAuC,GAAG,IAAA,2EAAgD,EAAC,OAAO,CAAC,CAAC;IAC1G,OAAO,MAAM,CAAC,MAAM,iCACf,uCAAuC,GACvC,IAAA,4CAA2B,kCACzB,OAAO,KACV,IAAI,EAAE,yCAAkB,CAAC,KAAK,IAC9B,EACF,CAAC;AACL,CAAC;AAXD,kGAWC;AAED,SAAS,YAAY,CAAC,OAAqD;IACzE,IAAA,6DAAkC,EAAC,OAAO,EAAE,gCAAgC,CAAC,CAAC;AAChF,CAAC;AAGD,SAAS,aAAa,CAAC,iBAA+D;IACpF,MAAM,EACJ,aAAa,EACb,OAAO,EACP,OAAO,EACP,SAAS,EACT,MAAM,EACN,SAAS,GACV,GAAG,iBAAiB,CAAC;IACtB,MAAM,eAAe,iDAChB,cAAO,GACP,iBAAiB,GACjB,IAAA,yCAAc,EAAC,iBAAiB,CAAC,CACrC,CAAC;IACF,OAAO,IAAA,kBAAK,EAAC;QACX,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC;QACxD,IAAA,6EAAqC,EAAC;YACpC,aAAa,EAAE,iBAAiB;YAChC,IAAI,EAAE,aAAa;YACnB,OAAO;YACP,OAAO;YACP,SAAS;YACT,MAAM;YACN,SAAS;YACT,QAAQ,EAAE;gBACR,OAAO,EAAE,eAAe;aACzB;SACF,CAAC;KACH,CAAC,CAAC;AACL,CAAC;AAED,SAAS,2BAA2B,CAAC,iBAA+D;;IAElG,MAAM,EACJ,SAAS,EACT,UAAU,EACV,IAAI,EACJ,OAAO,EACP,OA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AAO;YACP,OAAO;YACP,MAAM,EAAE,iBAAiB;YACzB,SAAS;YACT,YAAY,EAAE,iBAAiB,CAAC,KAAK,CAAC,YAAY;YAClD,UAAU,EAAE,IAAI;SACjB,CAAC;KACH,CAAC,CAAC;AAEL,CAAC;AAED,SAAS,WAAW,CAAC,iBAA+D;IAElF,MAAM,EAAE,OAAO,EAAE,GAAG,iBAAiB,CAAC;IAEtC,QAAQ,OAAO,EAAE;QAEf,KAAK,4BAAY,CAAC,MAAM;YACtB,OAAO,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;KAE/C;IAED,OAAO,IAAA,iBAAI,GAAE,CAAC;AAEhB,CAAC;AAED,mBAAyB,OAA2C;IAClE,MAAM,iBAAiB,GAAG,2CAA2C,CAAC,OAAO,CAAC,CAAC;IAC/E,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAChC,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,kBAAK,EAAC;YACX,aAAa,CAAC,iBAAiB,CAAC;YAChC,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,oDAAoD,CAAC;YACvE,2BAA2B,CAAC,iBAAiB,CAAC;YAC9C,WAAW,CAAC,iBAAiB,CAAC;SAC/B,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAXD,4BAWC"}
|
|
@@ -6,27 +6,7 @@
|
|
|
6
6
|
"$ref": "#/definitions/angular"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
|
-
"$ref": "#/definitions/
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"type": "object",
|
|
13
|
-
"properties": {
|
|
14
|
-
"modifiers": {
|
|
15
|
-
"alias": "modifier",
|
|
16
|
-
"type": "array",
|
|
17
|
-
"items": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"enum": [
|
|
20
|
-
"navigation-back-header",
|
|
21
|
-
"without-title"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"description": "The table modifiers"
|
|
25
|
-
},
|
|
26
|
-
"table": {
|
|
27
|
-
"$ref": "#/definitions/table"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
9
|
+
"$ref": "#/definitions/tableAccordionItem"
|
|
30
10
|
}
|
|
31
11
|
],
|
|
32
12
|
"definitions": {
|
|
@@ -112,60 +92,13 @@
|
|
|
112
92
|
"type": "string",
|
|
113
93
|
"enum": [
|
|
114
94
|
"route"
|
|
115
|
-
]
|
|
116
|
-
"default": "route"
|
|
95
|
+
]
|
|
117
96
|
}
|
|
118
97
|
},
|
|
119
98
|
"required": [
|
|
120
99
|
"property"
|
|
121
100
|
]
|
|
122
101
|
},
|
|
123
|
-
"accordionItem": {
|
|
124
|
-
"type": "object",
|
|
125
|
-
"properties": {
|
|
126
|
-
"kind": {
|
|
127
|
-
"type": "string",
|
|
128
|
-
"enum": [
|
|
129
|
-
"default",
|
|
130
|
-
"table",
|
|
131
|
-
"data-grid",
|
|
132
|
-
"data-grid-collection",
|
|
133
|
-
"tree-table",
|
|
134
|
-
"switch"
|
|
135
|
-
],
|
|
136
|
-
"description": "The type of the accordion item",
|
|
137
|
-
"default": "panel"
|
|
138
|
-
},
|
|
139
|
-
"modifiers": {
|
|
140
|
-
"alias": "modifier",
|
|
141
|
-
"type": "array",
|
|
142
|
-
"items": {
|
|
143
|
-
"type": "string"
|
|
144
|
-
},
|
|
145
|
-
"description": "The modifiers to apply to the accordion item type"
|
|
146
|
-
},
|
|
147
|
-
"identifier": {
|
|
148
|
-
"$ref": "#/definitions/accordionIdentifier"
|
|
149
|
-
},
|
|
150
|
-
"title": {
|
|
151
|
-
"type": "string"
|
|
152
|
-
},
|
|
153
|
-
"description": {
|
|
154
|
-
"type": "string"
|
|
155
|
-
},
|
|
156
|
-
"upstream": {
|
|
157
|
-
"$ref": "#/definitions/upstream"
|
|
158
|
-
},
|
|
159
|
-
"propertyList": {
|
|
160
|
-
"alias": "property",
|
|
161
|
-
"type": "array",
|
|
162
|
-
"items": {
|
|
163
|
-
"$ref": "#/definitions/property"
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"additionalProperties": true
|
|
168
|
-
},
|
|
169
102
|
"angular": {
|
|
170
103
|
"allOf": [
|
|
171
104
|
{
|
|
@@ -230,7 +163,7 @@
|
|
|
230
163
|
},
|
|
231
164
|
"kind": {
|
|
232
165
|
"type": "string",
|
|
233
|
-
"const": "table-select"
|
|
166
|
+
"const": "autocomplete-table-select"
|
|
234
167
|
},
|
|
235
168
|
"placeholder": {
|
|
236
169
|
"type": "string"
|
|
@@ -308,6 +241,47 @@
|
|
|
308
241
|
],
|
|
309
242
|
"default": "none"
|
|
310
243
|
},
|
|
244
|
+
"baseAccordionItem": {
|
|
245
|
+
"type": "object",
|
|
246
|
+
"properties": {
|
|
247
|
+
"name": {
|
|
248
|
+
"type": "string"
|
|
249
|
+
},
|
|
250
|
+
"kind": {
|
|
251
|
+
"type": "string"
|
|
252
|
+
},
|
|
253
|
+
"modifiers": {
|
|
254
|
+
"alias": "modifier",
|
|
255
|
+
"type": "array",
|
|
256
|
+
"items": {
|
|
257
|
+
"type": "string"
|
|
258
|
+
},
|
|
259
|
+
"description": "The modifiers to apply to the accordion item type"
|
|
260
|
+
},
|
|
261
|
+
"identifier": {
|
|
262
|
+
"$ref": "#/definitions/accordionIdentifier"
|
|
263
|
+
},
|
|
264
|
+
"title": {
|
|
265
|
+
"type": "string"
|
|
266
|
+
},
|
|
267
|
+
"description": {
|
|
268
|
+
"type": "string"
|
|
269
|
+
},
|
|
270
|
+
"upstream": {
|
|
271
|
+
"$ref": "#/definitions/upstream"
|
|
272
|
+
},
|
|
273
|
+
"propertyList": {
|
|
274
|
+
"alias": "property",
|
|
275
|
+
"type": "array",
|
|
276
|
+
"items": {
|
|
277
|
+
"$ref": "#/definitions/property"
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
"required": [
|
|
282
|
+
"name"
|
|
283
|
+
]
|
|
284
|
+
},
|
|
311
285
|
"baseFormControl": {
|
|
312
286
|
"allOf": [
|
|
313
287
|
{
|
|
@@ -644,6 +618,9 @@
|
|
|
644
618
|
},
|
|
645
619
|
"cssClass": {
|
|
646
620
|
"$ref": "#/definitions/cssClass"
|
|
621
|
+
},
|
|
622
|
+
"identifier": {
|
|
623
|
+
"$ref": "#/definitions/accordionIdentifier"
|
|
647
624
|
}
|
|
648
625
|
}
|
|
649
626
|
},
|
|
@@ -692,10 +669,7 @@
|
|
|
692
669
|
"isArray": {
|
|
693
670
|
"type": "boolean"
|
|
694
671
|
}
|
|
695
|
-
}
|
|
696
|
-
"required": [
|
|
697
|
-
"name"
|
|
698
|
-
]
|
|
672
|
+
}
|
|
699
673
|
}
|
|
700
674
|
]
|
|
701
675
|
},
|
|
@@ -824,6 +798,37 @@
|
|
|
824
798
|
}
|
|
825
799
|
]
|
|
826
800
|
},
|
|
801
|
+
"tableAccordionItem": {
|
|
802
|
+
"allOf": [
|
|
803
|
+
{
|
|
804
|
+
"$ref": "#/definitions/baseAccordionItem"
|
|
805
|
+
},
|
|
806
|
+
{
|
|
807
|
+
"type": "object",
|
|
808
|
+
"properties": {
|
|
809
|
+
"kind": {
|
|
810
|
+
"type": "string",
|
|
811
|
+
"const": "table"
|
|
812
|
+
},
|
|
813
|
+
"modifiers": {
|
|
814
|
+
"alias": "modifier",
|
|
815
|
+
"type": "array",
|
|
816
|
+
"items": {
|
|
817
|
+
"type": "string",
|
|
818
|
+
"enum": [
|
|
819
|
+
"navigation-back-header",
|
|
820
|
+
"without-title"
|
|
821
|
+
]
|
|
822
|
+
},
|
|
823
|
+
"description": "The table modifiers"
|
|
824
|
+
},
|
|
825
|
+
"table": {
|
|
826
|
+
"$ref": "#/definitions/table"
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
]
|
|
831
|
+
},
|
|
827
832
|
"tableAction": {
|
|
828
833
|
"type": "object",
|
|
829
834
|
"properties": {
|
|
@@ -1019,6 +1024,9 @@
|
|
|
1019
1024
|
"$ref": "#/definitions/upstream"
|
|
1020
1025
|
}
|
|
1021
1026
|
}
|
|
1027
|
+
},
|
|
1028
|
+
"identifier": {
|
|
1029
|
+
"$ref": "#/definitions/accordionIdentifier"
|
|
1022
1030
|
}
|
|
1023
1031
|
}
|
|
1024
1032
|
}
|
|
@@ -6,38 +6,15 @@
|
|
|
6
6
|
"$ref": "#/definitions/angular"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
|
-
"$ref": "#/definitions/
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"type": "object",
|
|
13
|
-
"properties": {
|
|
14
|
-
"modifiers": {
|
|
15
|
-
"alias": "modifier",
|
|
16
|
-
"type": "array",
|
|
17
|
-
"items": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"enum": [
|
|
20
|
-
"navigation-back-header",
|
|
21
|
-
"without-title"
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
|
-
"description": "The table modifiers"
|
|
25
|
-
},
|
|
26
|
-
"table": {
|
|
27
|
-
"$ref": "#/definitions/table"
|
|
28
|
-
}
|
|
29
|
-
}
|
|
9
|
+
"$ref": "#/definitions/tableAccordionItem"
|
|
30
10
|
}
|
|
31
11
|
],
|
|
32
12
|
"definitions": {
|
|
33
|
-
"
|
|
34
|
-
"$ref": "../../../accordion-item.schema.json"
|
|
13
|
+
"tableAccordionItem": {
|
|
14
|
+
"$ref": "../../../table-accordion-item.schema.json"
|
|
35
15
|
},
|
|
36
16
|
"angular": {
|
|
37
17
|
"$ref": "../../../angular.schema.json"
|
|
38
|
-
},
|
|
39
|
-
"table": {
|
|
40
|
-
"$ref": "../../../table.schema.json"
|
|
41
18
|
}
|
|
42
19
|
}
|
|
43
20
|
}
|
|
@@ -5,8 +5,6 @@ const core_1 = require("@angular-devkit/core");
|
|
|
5
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
6
|
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
7
7
|
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
8
|
-
const ts_morph_1 = require("@rxap/ts-morph");
|
|
9
|
-
const ts_morph_2 = require("ts-morph");
|
|
10
8
|
const accordion_item_1 = require("../../../../lib/accordion-item");
|
|
11
9
|
const accordion_itme_kinds_1 = require("../../../../lib/accordion-itme-kinds");
|
|
12
10
|
const backend_types_1 = require("../../../../lib/backend-types");
|
|
@@ -44,40 +42,17 @@ function componentRule(normalizedOptions) {
|
|
|
44
42
|
}
|
|
45
43
|
function treeTableComponentSchematicRule(normalizedOptions) {
|
|
46
44
|
var _a;
|
|
47
|
-
const { directory, nestModule, name, project, feature, table, overwrite, backend, controllerName, } = normalizedOptions;
|
|
45
|
+
const { directory, nestModule, name, project, feature, table, overwrite, backend, controllerName, identifier, } = normalizedOptions;
|
|
48
46
|
const { hasSharedModifier } = (0, accordion_item_component_1.GetItemOptions)(normalizedOptions);
|
|
49
47
|
return (0, schematics_1.chain)([
|
|
50
48
|
() => console.log(`Generate tree table component ...`),
|
|
51
|
-
(0, schematics_utilities_1.ExecuteSchematic)('tree-table-component', Object.assign(Object.assign({}, table), { shared: hasSharedModifier, name,
|
|
49
|
+
(0, schematics_utilities_1.ExecuteSchematic)('tree-table-component', Object.assign(Object.assign({}, table), { identifier, shared: hasSharedModifier, name,
|
|
52
50
|
project,
|
|
53
51
|
feature,
|
|
54
52
|
controllerName, directory: hasSharedModifier ? undefined : directory, nestModule: hasSharedModifier ? undefined : nestModule, modifiers: [tree_table_options_1.TreeTableModifiers.WITHOUT_TITLE, ...(_a = table === null || table === void 0 ? void 0 : table.modifiers) !== null && _a !== void 0 ? _a : []], overwrite,
|
|
55
53
|
backend })),
|
|
56
54
|
]);
|
|
57
55
|
}
|
|
58
|
-
function coerceIdentifierParameterResolver({ identifier }) {
|
|
59
|
-
return (project, sourceFile, classDeclaration) => {
|
|
60
|
-
if ((identifier === null || identifier === void 0 ? void 0 : identifier.source) === 'route') {
|
|
61
|
-
(0, ts_morph_1.CoerceImports)(sourceFile, {
|
|
62
|
-
moduleSpecifier: '@angular/router',
|
|
63
|
-
namedImports: ['ActivatedRoute'],
|
|
64
|
-
});
|
|
65
|
-
const [constructorDeclaration] = (0, ts_morph_1.CoerceClassConstructor)(classDeclaration);
|
|
66
|
-
(0, schematics_ts_morph_1.CoerceParameterDeclaration)(constructorDeclaration, 'route').set({
|
|
67
|
-
type: 'ActivatedRoute',
|
|
68
|
-
isReadonly: true,
|
|
69
|
-
scope: ts_morph_2.Scope.Private,
|
|
70
|
-
});
|
|
71
|
-
return {
|
|
72
|
-
statements: [
|
|
73
|
-
`const { ${identifier.property.name} } = this.route.snapshot.params;`,
|
|
74
|
-
`return { parameters: { ${identifier.property.name} } };`,
|
|
75
|
-
],
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
return {};
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
56
|
function nestjsBackendRule(normalizedOptions) {
|
|
82
57
|
const { nestModule, directory, project, feature, shared, scope, identifier, controllerName, } = normalizedOptions;
|
|
83
58
|
const { hasSharedModifier, } = (0, accordion_item_component_1.GetItemOptions)(normalizedOptions);
|
|
@@ -112,7 +87,7 @@ function nestjsBackendRule(normalizedOptions) {
|
|
|
112
87
|
directory,
|
|
113
88
|
scope,
|
|
114
89
|
getRootOperationId,
|
|
115
|
-
|
|
90
|
+
identifier,
|
|
116
91
|
}),
|
|
117
92
|
() => console.log(`Modify the get children proxy method ...`),
|
|
118
93
|
(0, schematics_ts_morph_1.CoerceTreeTableChildrenProxyRemoteMethodClass)({
|
|
@@ -122,7 +97,7 @@ function nestjsBackendRule(normalizedOptions) {
|
|
|
122
97
|
directory,
|
|
123
98
|
scope,
|
|
124
99
|
getChildrenOperationId,
|
|
125
|
-
|
|
100
|
+
identifier,
|
|
126
101
|
}),
|
|
127
102
|
]);
|
|
128
103
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/accordion/item/accordion-item-tree-table-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAGoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/accordion/item/accordion-item-tree-table-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAGoC;AACpC,mEAKmC;AACnC,qEAA8D;AAE9D,mEAGwC;AACxC,+EAA0E;AAE1E,iEAA6D;AAC7D,iHAA8G;AAC9G,2EAAwE;AACxE,8EAG6C;AAC7C,6EAKwC;AAOxC,SAAgB,+CAA+C,CAC7D,OAAyD;IAEzD,MAAM,uCAAuC,GAAG,IAAA,2EAAgD,EAAC,OAAO,CAAC,CAAC;IAC1G,OAAO,MAAM,CAAC,MAAM,iCACf,uCAAuC,GACvC,IAAA,gDAA+B,kCAC7B,OAAO,KACV,IAAI,EAAE,yCAAkB,CAAC,SAAS,IAClC,EACF,CAAC;AACL,CAAC;AAXD,0GAWC;AAED,SAAS,YAAY,CAAC,OAAyD;IAC7E,IAAA,6DAAkC,EAAC,OAAO,EAAE,qCAAqC,CAAC,CAAC;AACrF,CAAC;AAGD,SAAS,aAAa,CAAC,iBAAmE;IACxF,MAAM,EACJ,aAAa,EACb,OAAO,EACP,OAAO,EACP,SAAS,EACT,MAAM,EACN,SAAS,EACT,IAAI,GACL,GAAG,iBAAiB,CAAC;IACtB,MAAM,eAAe,+DAChB,cAAO,GACP,iBAAiB,KACpB,IAAI,KACD,IAAA,yCAAc,EAAC,iBAAiB,CAAC,CACrC,CAAC;IACF,OAAO,IAAA,kBAAK,EAAC;QACX,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC;QACxD,IAAA,6EAAqC,EAAC;YACpC,aAAa,EAAE,iBAAiB;YAChC,oBAAoB,EAAE,YAAY;YAClC,IAAI,EAAE,aAAa;YACnB,OAAO;YACP,OAAO;YACP,SAAS;YACT,MAAM;YACN,SAAS;Y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