@rxap/schematic-angular 16.2.0-dev.0 → 16.2.0-dev.2
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 +44 -0
- package/README.md +1 -1
- package/package.json +12 -11
- package/src/lib/accordion-header.d.ts +27 -0
- package/src/lib/accordion-header.js +48 -0
- package/src/lib/accordion-header.js.map +1 -0
- package/src/lib/accordion-identifier.d.ts +10 -0
- package/src/lib/accordion-identifier.js +15 -0
- package/src/lib/accordion-identifier.js.map +1 -0
- package/src/lib/accordion-item.d.ts +77 -4
- package/src/lib/accordion-item.js +151 -20
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/adapter-options.d.ts +1 -1
- package/src/lib/adapter-options.js +2 -2
- package/src/lib/adapter-options.js.map +1 -1
- package/src/lib/coerce-accordion-component.d.ts +6 -0
- package/src/lib/coerce-accordion-component.js +65 -0
- package/src/lib/coerce-accordion-component.js.map +1 -0
- package/src/lib/coerce-accordion-item-table-component.d.ts +7 -0
- package/src/lib/coerce-accordion-item-table-component.js +41 -0
- package/src/lib/coerce-accordion-item-table-component.js.map +1 -0
- package/src/lib/coerce-form-component.d.ts +6 -0
- package/src/lib/coerce-form-component.js +68 -0
- package/src/lib/coerce-form-component.js.map +1 -0
- package/src/lib/coerce-minimum-table-component.d.ts +6 -0
- package/src/lib/coerce-minimum-table-component.js +95 -0
- package/src/lib/coerce-minimum-table-component.js.map +1 -0
- package/src/lib/coerce-tree-table-component.d.ts +6 -0
- package/src/lib/coerce-tree-table-component.js +12 -0
- package/src/lib/coerce-tree-table-component.js.map +1 -0
- package/src/lib/data-grid-item.d.ts +11 -5
- package/src/lib/data-grid-item.js +4 -18
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-options.d.ts +1 -1
- package/src/lib/existing-method.d.ts +1 -1
- package/src/lib/existing-method.js +2 -2
- package/src/lib/existing-method.js.map +1 -1
- package/src/lib/form-component-control.d.ts +9 -10
- package/src/lib/form-component-control.js +3 -34
- package/src/lib/form-component-control.js.map +1 -1
- package/src/lib/form-definition-control.d.ts +50 -6
- package/src/lib/form-definition-control.js +133 -38
- package/src/lib/form-definition-control.js.map +1 -1
- package/src/lib/mat-form-field-default-options.d.ts +7 -0
- package/src/lib/mat-form-field-default-options.js +10 -0
- package/src/lib/mat-form-field-default-options.js.map +1 -0
- package/src/lib/merge-with-column-list.d.ts +3 -0
- package/src/lib/merge-with-column-list.js +18 -0
- package/src/lib/merge-with-column-list.js.map +1 -0
- package/src/lib/minimum-table-component-options.d.ts +3 -3
- package/src/lib/minimum-table-component-options.js +4 -3
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +11 -6
- package/src/lib/minimum-table-options.js +17 -5
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/persistent.d.ts +30 -0
- package/src/lib/persistent.js +39 -0
- package/src/lib/persistent.js.map +1 -0
- package/src/lib/table-action.d.ts +3 -1
- package/src/lib/table-action.js.map +1 -1
- package/src/lib/table-column.d.ts +32 -6
- package/src/lib/table-column.js +131 -45
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/table-options.d.ts +10 -3
- package/src/lib/table-options.js +13 -2
- package/src/lib/table-options.js.map +1 -1
- package/src/lib/tree-table-options.d.ts +9 -3
- package/src/lib/tree-table-options.js +12 -2
- package/src/lib/tree-table-options.js.map +1 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +25 -10
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +6 -1
- package/src/schematics/accordion/accordion-component/index.d.ts +10 -3
- package/src/schematics/accordion/accordion-component/index.js +125 -54
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.d.ts +8 -2
- package/src/schematics/accordion/accordion-component/schema.json +118 -29
- package/src/schematics/accordion/accordion-item-component/index.d.ts +2 -1
- package/src/schematics/accordion/accordion-item-component/index.js +46 -68
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -4
- package/src/schematics/accordion/accordion-item-component/schema.json +6 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +2 -3
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +32 -28
- 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 +2 -5
- package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +2 -15
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js +2 -25
- 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 +2 -17
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +14 -2
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +2 -3
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +7 -4
- 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 +2 -5
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +37 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +2 -3
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +8 -4
- 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 +2 -5
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +92 -69
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +1 -1
- package/src/schematics/data-grid-component/index.js +54 -24
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +82 -29
- package/src/schematics/form/control/input-form-control/index.js +7 -2
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/form-component/index.d.ts +4 -2
- package/src/schematics/form/form-component/index.js +5 -2
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.d.ts +3 -1
- package/src/schematics/form/form-component/schema.json +92 -24
- package/src/schematics/form/form-definition/schema.d.ts +1 -1
- package/src/schematics/form/form-definition/schema.json +84 -39
- package/src/schematics/table/table-component/index.d.ts +2 -2
- package/src/schematics/table/table-component/index.js +5 -3
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/index.js +5 -3
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +88 -95
- package/src/lib/table-property.d.ts +0 -14
- package/src/lib/table-property.js +0 -46
- package/src/lib/table-property.js.map +0 -1
- package/src/lib/type-import.d.ts +0 -4
- package/src/lib/type-import.js +0 -38
- package/src/lib/type-import.js.map +0 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.ts.template +0 -54
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.ts.template +0 -14
- package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.ts.template +0 -30
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid/__componentName__.component.ts.template +0 -14
- package/src/schematics/accordion/item/accordion-item-data-grid-component/files/data-grid-collection/__componentName__.component.ts.template +0 -32
- package/src/schematics/accordion/item/accordion-item-table-component/files/component/__componentName__.component.ts.template +0 -35
- package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.ts.template +0 -34
- package/src/schematics/data-grid-component/files/form/__componentName__.component.ts.template +0 -43
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.ts.template +0 -36
- package/src/schematics/form/form-component/files/component/__componentName__.component.ts.template +0 -50
- package/src/schematics/table/table-component/files/component/__componentName__.component.ts.template +0 -112
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.ts.template +0 -113
|
@@ -7,10 +7,11 @@ const ts_morph_1 = require("@rxap/ts-morph");
|
|
|
7
7
|
const utilities_1 = require("@rxap/utilities");
|
|
8
8
|
const angular_options_1 = require("../../../lib/angular-options");
|
|
9
9
|
const backend_types_1 = require("../../../lib/backend-types");
|
|
10
|
+
const coerce_tree_table_component_1 = require("../../../lib/coerce-tree-table-component");
|
|
10
11
|
const minimum_table_component_options_1 = require("../../../lib/minimum-table-component-options");
|
|
11
12
|
const tree_table_options_1 = require("../../../lib/tree-table-options");
|
|
12
13
|
function NormalizedTreeTableComponentOptions(options) {
|
|
13
|
-
const normalizedMinimumTableComponentOptions = (0, minimum_table_component_options_1.NormalizeMinimumTableComponentOptions)(options, '-tree-table');
|
|
14
|
+
const normalizedMinimumTableComponentOptions = (0, minimum_table_component_options_1.NormalizeMinimumTableComponentOptions)(options, tree_table_options_1.IsTreeTableModifiers, '-tree-table');
|
|
14
15
|
(0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedMinimumTableComponentOptions);
|
|
15
16
|
const { name } = normalizedMinimumTableComponentOptions;
|
|
16
17
|
const normalizedTreeTableOptions = (0, tree_table_options_1.NormalizeTreeTableOptions)(options, name);
|
|
@@ -34,10 +35,11 @@ function printOptions(options) {
|
|
|
34
35
|
}
|
|
35
36
|
function componentRule(normalizedOptions) {
|
|
36
37
|
const { project, feature, shared, componentName, directory, overwrite, modifiers, columnList, } = normalizedOptions;
|
|
37
|
-
const templateOptions = Object.assign(Object.assign({}, normalizedOptions), { hasNavigationBackHeader: modifiers.includes(
|
|
38
|
+
const templateOptions = Object.assign(Object.assign({}, normalizedOptions), { hasNavigationBackHeader: modifiers.includes(tree_table_options_1.TreeTableModifiers.NAVIGATION_BACK_HEADER), hasWithoutTitle: modifiers.includes(tree_table_options_1.TreeTableModifiers.WITHOUT_TITLE), hasColumnWithFilter: columnList.some((c) => c.hasFilter), exportDefault: !!feature && !directory });
|
|
38
39
|
return (0, schematics_1.chain)([
|
|
39
40
|
() => console.log(`Coerce the table component ${componentName}`),
|
|
40
|
-
(0,
|
|
41
|
+
(0, coerce_tree_table_component_1.CoerceTreeTableComponentRule)({
|
|
42
|
+
table: normalizedOptions,
|
|
41
43
|
project,
|
|
42
44
|
feature,
|
|
43
45
|
shared,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/tree-table-component/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAUmC;AACnC,6CAA6D;AAC7D,+CAGyB;AAKzB,kEAIsC;AACtC,8DAA0D;AAC1D,kGAMsD;AACtD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/table/tree-table-component/index.ts"],"names":[],"mappings":";;;AAAA,2DAGoC;AACpC,mEAUmC;AACnC,6CAA6D;AAC7D,+CAGyB;AAKzB,kEAIsC;AACtC,8DAA0D;AAC1D,0FAAwF;AACxF,kGAMsD;AACtD,wEAKyC;AASzC,SAAgB,mCAAmC,CACjD,OAA4C;IAE5C,MAAM,sCAAsC,GAAG,IAAA,uEAAqC,EAAC,OAAO,EAAE,yCAAoB,EAAE,aAAa,CAAC,CAAC;IACnI,IAAA,kDAAgC,EAAC,sCAAsC,CAAC,CAAC;IACzE,MAAM,EAAE,IAAI,EAAE,GAAG,sCAAsC,CAAC;IACxD,MAAM,0BAA0B,GAAG,IAAA,8CAAyB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IAC5E,OAAO,MAAM,CAAC,MAAM,iCACf,sCAAsC,GACtC,0BAA0B,EAC7B,CAAC;AACL,CAAC;AAXD,kFAWC;AAED,SAAS,YAAY,CAAC,OAA4C;IAChE,IAAA,qCAAmB,EAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;IACrD,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,wBAAyB,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,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C;gBACJ,CAAC;aACF,CAAC;SACH,CAAC,CAAC;KACJ;IAED,OAAO,IAAA,iBAAI,GAAE,CAAC;AAEhB,CAAC;AAED,mBAAyB,OAAkC;IACzD,MAAM,iBAAiB,GAAG,mCAAmC,CAAC,OAAO,CAAC,CAAC;IACvE,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAEhC,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,kBAAK,EAAC;YACX,IAAA,oDAAkB,EAAC,iBAAiB,CAAC;YACrC,aAAa,CAAC,iBAAiB,CAAC;YAChC,IAAA,gDAAc,EAAC,iBAAiB,CAAC;YACjC,IAAA,mDAAiB,EAAC,iBAAiB,CAAC;YACpC,IAAA,kDAAgB,EAAC,iBAAiB,CAAC;YACnC,WAAW,CAAC,iBAAiB,CAAC;YAC9B,mBAAmB,CAAC,iBAAiB,CAAC;SACvC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAfD,4BAeC"}
|
|
@@ -82,116 +82,109 @@
|
|
|
82
82
|
"alias": "column",
|
|
83
83
|
"type": "array",
|
|
84
84
|
"items": {
|
|
85
|
-
"
|
|
86
|
-
|
|
85
|
+
"type": "object",
|
|
86
|
+
"properties": {
|
|
87
|
+
"name": {
|
|
87
88
|
"type": "string"
|
|
88
89
|
},
|
|
89
|
-
{
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
"name": {
|
|
90
|
+
"type": {
|
|
91
|
+
"oneOf": [
|
|
92
|
+
{
|
|
93
93
|
"type": "string"
|
|
94
94
|
},
|
|
95
|
-
|
|
96
|
-
"
|
|
97
|
-
|
|
95
|
+
{
|
|
96
|
+
"type": "object",
|
|
97
|
+
"properties": {
|
|
98
|
+
"name": {
|
|
98
99
|
"type": "string"
|
|
99
100
|
},
|
|
100
|
-
{
|
|
101
|
-
"type": "
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
},
|
|
115
|
-
"namespaceImport": {
|
|
116
|
-
"type": "string"
|
|
117
|
-
},
|
|
118
|
-
"defaultImport": {
|
|
119
|
-
"type": "string"
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
"required": [
|
|
123
|
-
"name"
|
|
124
|
-
]
|
|
101
|
+
"isTypeOnly": {
|
|
102
|
+
"type": "boolean"
|
|
103
|
+
},
|
|
104
|
+
"moduleSpecifier": {
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
"namedImport": {
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
"namespaceImport": {
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"defaultImport": {
|
|
114
|
+
"type": "string"
|
|
125
115
|
}
|
|
116
|
+
},
|
|
117
|
+
"required": [
|
|
118
|
+
"name"
|
|
126
119
|
]
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
},
|
|
123
|
+
"role": {
|
|
124
|
+
"type": "string"
|
|
125
|
+
},
|
|
126
|
+
"modifiers": {
|
|
127
|
+
"type": "array",
|
|
128
|
+
"items": {
|
|
129
|
+
"type": "string"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"template": {
|
|
133
|
+
"type": "string"
|
|
134
|
+
},
|
|
135
|
+
"pipeList": {
|
|
136
|
+
"type": "array",
|
|
137
|
+
"items": {
|
|
138
|
+
"oneOf": [
|
|
139
|
+
{
|
|
134
140
|
"type": "string"
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
"pipeList": {
|
|
141
|
-
"type": "array",
|
|
142
|
-
"items": {
|
|
143
|
-
"oneOf": [
|
|
144
|
-
{
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"name": {
|
|
145
146
|
"type": "string"
|
|
146
147
|
},
|
|
147
|
-
{
|
|
148
|
-
"type": "
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
},
|
|
153
|
-
"namedImport": {
|
|
154
|
-
"type": "string"
|
|
155
|
-
},
|
|
156
|
-
"moduleSpecifier": {
|
|
157
|
-
"type": "string"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"required": [
|
|
161
|
-
"name",
|
|
162
|
-
"namedImport",
|
|
163
|
-
"moduleSpecifier"
|
|
164
|
-
]
|
|
148
|
+
"namedImport": {
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
"moduleSpecifier": {
|
|
152
|
+
"type": "string"
|
|
165
153
|
}
|
|
154
|
+
},
|
|
155
|
+
"required": [
|
|
156
|
+
"name",
|
|
157
|
+
"namedImport",
|
|
158
|
+
"moduleSpecifier"
|
|
166
159
|
]
|
|
167
160
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
"required": [
|
|
192
|
-
"name"
|
|
193
|
-
]
|
|
161
|
+
]
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
"hasFilter": {
|
|
165
|
+
"type": "boolean"
|
|
166
|
+
},
|
|
167
|
+
"title": {
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
"propertyPath": {
|
|
171
|
+
"type": "string"
|
|
172
|
+
},
|
|
173
|
+
"hidden": {
|
|
174
|
+
"type": "boolean"
|
|
175
|
+
},
|
|
176
|
+
"active": {
|
|
177
|
+
"type": "boolean"
|
|
178
|
+
},
|
|
179
|
+
"inactive": {
|
|
180
|
+
"type": "boolean"
|
|
181
|
+
},
|
|
182
|
+
"show": {
|
|
183
|
+
"type": "boolean"
|
|
194
184
|
}
|
|
185
|
+
},
|
|
186
|
+
"required": [
|
|
187
|
+
"name"
|
|
195
188
|
],
|
|
196
189
|
"description": "table column name"
|
|
197
190
|
},
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TypeImport } from '@rxap/ts-morph';
|
|
2
|
-
import { Normalized } from '@rxap/utilities';
|
|
3
|
-
import { NormalizedTableColumn } from './table-column';
|
|
4
|
-
import { NormalizedTypeImport } from './type-import';
|
|
5
|
-
export interface TableProperty {
|
|
6
|
-
name: string;
|
|
7
|
-
type?: string | TypeImport;
|
|
8
|
-
}
|
|
9
|
-
export interface NormalizedTableProperty extends Readonly<Normalized<TableProperty>> {
|
|
10
|
-
type: NormalizedTypeImport;
|
|
11
|
-
}
|
|
12
|
-
export declare function NormalizeTableProperty(property: string | TableProperty): NormalizedTableProperty;
|
|
13
|
-
export declare function NormalizeTablePropertyList(propertyList?: Array<string | TableProperty>): ReadonlyArray<NormalizedTableProperty>;
|
|
14
|
-
export declare function MergeWithColumnList(propertyList: ReadonlyArray<NormalizedTableProperty>, columnList: ReadonlyArray<NormalizedTableColumn>): ReadonlyArray<NormalizedTableProperty>;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MergeWithColumnList = exports.NormalizeTablePropertyList = exports.NormalizeTableProperty = void 0;
|
|
4
|
-
const type_import_1 = require("./type-import");
|
|
5
|
-
function NormalizeTableProperty(property) {
|
|
6
|
-
var _a;
|
|
7
|
-
let name;
|
|
8
|
-
let type = 'unknown';
|
|
9
|
-
if (typeof property === 'string') {
|
|
10
|
-
// name:type
|
|
11
|
-
// username:string
|
|
12
|
-
const fragments = property.split(':');
|
|
13
|
-
name = fragments[0];
|
|
14
|
-
type = fragments[1] || type; // convert an empty string to undefined
|
|
15
|
-
}
|
|
16
|
-
else {
|
|
17
|
-
name = property.name;
|
|
18
|
-
type = (_a = property.type) !== null && _a !== void 0 ? _a : type;
|
|
19
|
-
}
|
|
20
|
-
type !== null && type !== void 0 ? type : (type = 'unknown');
|
|
21
|
-
name = name.replace(/\.\?/g, '.').split('.').join('.?');
|
|
22
|
-
return Object.freeze({
|
|
23
|
-
name,
|
|
24
|
-
type: (0, type_import_1.NormalizeTypeImport)(type),
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
exports.NormalizeTableProperty = NormalizeTableProperty;
|
|
28
|
-
function NormalizeTablePropertyList(propertyList) {
|
|
29
|
-
var _a;
|
|
30
|
-
return Object.freeze((_a = propertyList === null || propertyList === void 0 ? void 0 : propertyList.map(NormalizeTableProperty)) !== null && _a !== void 0 ? _a : []);
|
|
31
|
-
}
|
|
32
|
-
exports.NormalizeTablePropertyList = NormalizeTablePropertyList;
|
|
33
|
-
function MergeWithColumnList(propertyList, columnList) {
|
|
34
|
-
const merged = [...propertyList];
|
|
35
|
-
for (const column of columnList) {
|
|
36
|
-
if (!merged.find((property) => property.name === column.propertyPath)) {
|
|
37
|
-
merged.push({
|
|
38
|
-
name: column.propertyPath,
|
|
39
|
-
type: column.type,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return Object.freeze(merged);
|
|
44
|
-
}
|
|
45
|
-
exports.MergeWithColumnList = MergeWithColumnList;
|
|
46
|
-
//# sourceMappingURL=table-property.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table-property.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/table-property.ts"],"names":[],"mappings":";;;AAGA,+CAGuB;AAWvB,SAAgB,sBAAsB,CAAC,QAAgC;;IACrE,IAAI,IAAY,CAAC;IACj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E;YACrE,MAAM,CAAC,IAAI,CAAC;gBACV,IAAI,EAAE,MAAM,CAAC,YAAY;gBACzB,IAAI,EAAE,MAAM,CAAC,IAAI;aAClB,CAAC,CAAC;SACJ;KACF;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/B,CAAC;AAdD,kDAcC"}
|
package/src/lib/type-import.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TypeImport } from '@rxap/ts-morph';
|
|
2
|
-
import { Normalized } from '@rxap/utilities';
|
|
3
|
-
export type NormalizedTypeImport = Readonly<Normalized<TypeImport>>;
|
|
4
|
-
export declare function NormalizeTypeImport(typeImport: Readonly<TypeImport> | string): NormalizedTypeImport;
|
package/src/lib/type-import.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NormalizeTypeImport = void 0;
|
|
4
|
-
function NormalizeTypeImport(typeImport) {
|
|
5
|
-
var _a, _b, _c, _d, _e;
|
|
6
|
-
let name;
|
|
7
|
-
let moduleSpecifier = null;
|
|
8
|
-
let namedImport = null;
|
|
9
|
-
let namespaceImport = null;
|
|
10
|
-
let isTypeOnly = false;
|
|
11
|
-
let defaultImport = null;
|
|
12
|
-
if (typeof typeImport === 'string') {
|
|
13
|
-
// name:moduleSpecifier:namedImport
|
|
14
|
-
// IconConfig:@rxap/utilities
|
|
15
|
-
const fragments = typeImport.split(':');
|
|
16
|
-
name = fragments[0];
|
|
17
|
-
moduleSpecifier = fragments[1] || null; // use || instead of ?? because the moduleSpecifier can be an empty string
|
|
18
|
-
namedImport = fragments[2] || null; // use || instead of ?? because the namedImport can be an empty string
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
name = typeImport.name;
|
|
22
|
-
moduleSpecifier = (_a = typeImport.moduleSpecifier) !== null && _a !== void 0 ? _a : moduleSpecifier;
|
|
23
|
-
namedImport = (_b = typeImport.namedImport) !== null && _b !== void 0 ? _b : namedImport;
|
|
24
|
-
namespaceImport = (_c = typeImport.namespaceImport) !== null && _c !== void 0 ? _c : namespaceImport;
|
|
25
|
-
isTypeOnly = (_d = typeImport.isTypeOnly) !== null && _d !== void 0 ? _d : isTypeOnly;
|
|
26
|
-
defaultImport = (_e = typeImport.defaultImport) !== null && _e !== void 0 ? _e : defaultImport;
|
|
27
|
-
}
|
|
28
|
-
return Object.freeze({
|
|
29
|
-
name,
|
|
30
|
-
moduleSpecifier,
|
|
31
|
-
namedImport,
|
|
32
|
-
namespaceImport,
|
|
33
|
-
isTypeOnly,
|
|
34
|
-
defaultImport,
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
exports.NormalizeTypeImport = NormalizeTypeImport;
|
|
38
|
-
//# sourceMappingURL=type-import.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type-import.js","sourceRoot":"","sources":["../../../../../../packages/schematic/angular/src/lib/type-import.ts"],"names":[],"mappings":";;;AAKA,SAAgB,mBAAmB,CAAC,UAAyC;;IAC3E,IAAI,IAAY,CAAC;IACjB,IAAI,eAAe,GAAkB,IAAI,CAAC;IAC1C,IAAI,WAAW,GAAkB,IAAI,CAAC;IACtC,IAAI,eAAe,GAAkB,IAAI,CAAC;IAC1C,IAAI,UAAU,GAAG,KAAK,CAAC;IACvB,IAAI,aAAa,GAAkB,IAAI,CAAC;IACxC,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE;QAClC,mCAAmC;QACnC,6BAA6B;QAC7B,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACxC,IAAI,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;QACpB,eAAe,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,0EAA0E;QAClH,WAAW,GAAG,SAAS,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,sEAAsE;KAC3G;SAAM;QACL,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;QACvB,eAAe,GAAG,MAAA,UAAU,CAAC,eAAe,mCAAI,eAAe,CAAC;QAChE,WAAW,GAAG,MAAA,UAAU,CAAC,WAAW,mCAAI,WAAW,CAAC;QACpD,eAAe,GAAG,MAAA,UAAU,CAAC,eAAe,mCAAI,eAAe,CAAC;QAChE,UAAU,GAAG,MAAA,UAAU,CAAC,UAAU,mCAAI,UAAU,CAAC;QACjD,aAAa,GAAG,MAAA,UAAU,CAAC,aAAa,mCAAI,aAAa,CAAC;KAC3D;IACD,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,IAAI;QACJ,eAAe;QACf,WAAW;QACX,eAAe;QACf,UAAU;QACV,aAAa;KACd,CAAC,CAAC;AACL,CAAC;AA9BD,kDA8BC"}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { <%= classify(componentName) %>DataSource } from './<%= componentName %>.data-source';
|
|
3
|
-
import { ACCORDION_DATA_SOURCE } from '@rxap/data-source/accordion';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
|
-
<% for (const item of itemList) { %>
|
|
6
|
-
import { <%= classify(item.name) %>PanelComponent } from './<%= item.name %>-panel/<%= item.name %>-panel.component';
|
|
7
|
-
<% } %>
|
|
8
|
-
import { DataSourceDirective } from '@rxap/data-source/directive';
|
|
9
|
-
import { NavigateBackButtonComponent } from '@rxap/components';
|
|
10
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
11
|
-
import { MatDividerModule } from '@angular/material/divider';
|
|
12
|
-
import { MatExpansionModule } from '@angular/material/expansion';
|
|
13
|
-
import { PersistentAccordionDirective } from '@rxap/material-directives/expansion';
|
|
14
|
-
import { DataSourceErrorComponent } from '@rxap/data-source';
|
|
15
|
-
import { AccordionHeaderComponent } from './accordion-header/accordion-header.component';
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
@Component({
|
|
19
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
20
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
21
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
22
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23
|
-
standalone: true,
|
|
24
|
-
imports: [
|
|
25
|
-
<% for (const item of itemList) { %>
|
|
26
|
-
<%= classify(item.name) %>PanelComponent,
|
|
27
|
-
<% } %>
|
|
28
|
-
DataSourceErrorComponent,
|
|
29
|
-
DataSourceDirective,
|
|
30
|
-
NavigateBackButtonComponent,
|
|
31
|
-
MatProgressBarModule,
|
|
32
|
-
MatDividerModule,
|
|
33
|
-
MatExpansionModule,
|
|
34
|
-
PersistentAccordionDirective,
|
|
35
|
-
CommonModule,
|
|
36
|
-
AccordionHeaderComponent,
|
|
37
|
-
],
|
|
38
|
-
providers: [
|
|
39
|
-
<%= classify(componentName) %>DataSource,
|
|
40
|
-
{
|
|
41
|
-
provide: ACCORDION_DATA_SOURCE,
|
|
42
|
-
useExisting: <%= classify(componentName) %>DataSource
|
|
43
|
-
},
|
|
44
|
-
],
|
|
45
|
-
})
|
|
46
|
-
export class <%= classify(componentName) %>Component {
|
|
47
|
-
|
|
48
|
-
constructor(
|
|
49
|
-
public readonly accordionDataSource: <%= classify(componentName) %>DataSource,
|
|
50
|
-
) {}
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
<% if (exportDefault) { %>export default <%= classify(componentName) %>Component<% } %>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { NavigateBackButtonComponent } from '@rxap/components';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: '<%= prefix %>-accordion-header',
|
|
6
|
-
templateUrl: './accordion-header.component.html',
|
|
7
|
-
styleUrls: [ './accordion-header.component.scss' ],
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [
|
|
11
|
-
NavigateBackButtonComponent,
|
|
12
|
-
],
|
|
13
|
-
})
|
|
14
|
-
export class AccordionHeaderComponent {}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { <%= classify(name) %>PanelDataSource } from './<%= name %>-panel.data-source';
|
|
3
|
-
import { DataSourceDirective } from '@rxap/data-source/directive';
|
|
4
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
5
|
-
import { DataSourceErrorComponent } from '@rxap/data-source';
|
|
6
|
-
import { CommonModule } from '@angular/common';
|
|
7
|
-
|
|
8
|
-
@Component({
|
|
9
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
10
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
11
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
12
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13
|
-
imports: [
|
|
14
|
-
DataSourceDirective,
|
|
15
|
-
MatProgressBarModule,
|
|
16
|
-
CommonModule,
|
|
17
|
-
DataSourceErrorComponent,
|
|
18
|
-
],
|
|
19
|
-
standalone: true,
|
|
20
|
-
providers: [
|
|
21
|
-
<%= classify(name) %>PanelDataSource,
|
|
22
|
-
],
|
|
23
|
-
})
|
|
24
|
-
export class <%= classify(componentName) %>Component {
|
|
25
|
-
|
|
26
|
-
constructor(
|
|
27
|
-
public readonly panelDataSource: <%= classify(name) %>PanelDataSource,
|
|
28
|
-
) {}
|
|
29
|
-
|
|
30
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { <%= classify(name) %>DataGridComponent } from './<%= name %>-data-grid/<%= name %>-data-grid.component';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
6
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
7
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
-
standalone: true,
|
|
10
|
-
imports: [
|
|
11
|
-
<%= classify(name) %>DataGridComponent,
|
|
12
|
-
],
|
|
13
|
-
})
|
|
14
|
-
export class <%= classify(componentName) %>Component { }
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { <%= classify(name) %>DataGridDataSource } from './<%= name %>-data-grid/<%= name %>-data-grid.data-source';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { <%= classify(name) %>DataGridComponent } from './<%= name %>-data-grid/<%= name %>-data-grid.component';
|
|
5
|
-
import { DataSourceDirective } from '@rxap/data-source/directive';
|
|
6
|
-
import { DataSourceErrorComponent } from '@rxap/data-source';
|
|
7
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
8
|
-
|
|
9
|
-
@Component({
|
|
10
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
11
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
12
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
13
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14
|
-
standalone: true,
|
|
15
|
-
imports: [
|
|
16
|
-
<%= classify(name) %>DataGridComponent,
|
|
17
|
-
DataSourceDirective,
|
|
18
|
-
CommonModule,
|
|
19
|
-
DataSourceErrorComponent,
|
|
20
|
-
MatProgressBarModule,
|
|
21
|
-
],
|
|
22
|
-
providers: [
|
|
23
|
-
<%= classify(name) %>DataGridDataSource,
|
|
24
|
-
],
|
|
25
|
-
})
|
|
26
|
-
export class <%= classify(componentName) %>Component {
|
|
27
|
-
|
|
28
|
-
constructor(
|
|
29
|
-
public readonly dataGridDataSource: <%= classify(name) %>DataGridDataSource,
|
|
30
|
-
) {}
|
|
31
|
-
|
|
32
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { map } from 'rxjs/operators';
|
|
5
|
-
import { throwIfEmpty } from '@rxap/rxjs';
|
|
6
|
-
<% if (hasSharedModifier) { %>
|
|
7
|
-
import { <%= classify(name) %>TableComponent } from '<%= scope %>/shared/feature/<%= feature %>/<%= name %>-table/<%= name %>-table.component';
|
|
8
|
-
<% } else { %>
|
|
9
|
-
import { <%= classify(name) %>TableComponent } from './<%= name %>-table/<%= name %>-table.component';
|
|
10
|
-
<% } %>
|
|
11
|
-
|
|
12
|
-
@Component({
|
|
13
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
14
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
15
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
16
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
|
-
standalone: true,
|
|
18
|
-
imports: [
|
|
19
|
-
<%= classify(name) %>TableComponent,
|
|
20
|
-
],
|
|
21
|
-
})
|
|
22
|
-
export class <%= classify(componentName) %>Component {
|
|
23
|
-
|
|
24
|
-
public readonly parameters$: Observable<{ uuid: string }>;
|
|
25
|
-
|
|
26
|
-
constructor(private readonly route: ActivatedRoute) {
|
|
27
|
-
this.parameters$ = this.route.params.pipe(
|
|
28
|
-
map(({ uuid }) => uuid),
|
|
29
|
-
throwIfEmpty('Could not extract the uuid from route'),
|
|
30
|
-
map((uuid) => ({ uuid })),
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute } from '@angular/router';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { map } from 'rxjs/operators';
|
|
5
|
-
import { throwIfEmpty } from '@rxap/rxjs';
|
|
6
|
-
<% if (hasSharedModifier) { %>
|
|
7
|
-
import { <%= classify(name) %>TreeTableComponent } from '<%= scope %>/shared/feature/<%= feature %>/<%= name %>-tree-table/<%= name %>-tree-table.component';
|
|
8
|
-
<% } else { %>
|
|
9
|
-
import { <%= classify(name) %>TreeTableComponent } from './<%= name %>-tree-table/<%= name %>-tree-table.component';
|
|
10
|
-
<% } %>
|
|
11
|
-
|
|
12
|
-
@Component({
|
|
13
|
-
selector: '<%= prefix %>-<%= componentName %>',
|
|
14
|
-
templateUrl: './<%= componentName %>.component.html',
|
|
15
|
-
styleUrls: [ './<%= componentName %>.component.scss' ],
|
|
16
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17
|
-
standalone: true,
|
|
18
|
-
imports: [
|
|
19
|
-
<%= classify(name) %>TreeTableComponent,
|
|
20
|
-
],
|
|
21
|
-
})
|
|
22
|
-
export class <%= classify(componentName) %>Component {
|
|
23
|
-
|
|
24
|
-
public readonly parameters$: Observable<{ uuid: string }>;
|
|
25
|
-
|
|
26
|
-
constructor(private readonly route: ActivatedRoute) {
|
|
27
|
-
this.parameters$ = this.route.params.pipe(
|
|
28
|
-
map(({ uuid }) => uuid),
|
|
29
|
-
throwIfEmpty('Could not extract the uuid from route'),
|
|
30
|
-
map((uuid) => ({ uuid })),
|
|
31
|
-
);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
}
|