@rxap/schematic-angular 16.1.0-dev.9 → 16.1.1-dev.0
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 +358 -0
- package/README.md +1 -1
- package/collection.json +5 -0
- package/package.json +48 -41
- package/src/lib/accordion-item.d.ts +2 -2
- package/src/lib/accordion-item.js +4 -4
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/adapter-options.d.ts +11 -5
- package/src/lib/adapter-options.js +8 -5
- package/src/lib/adapter-options.js.map +1 -1
- package/src/lib/angular-options.js +1 -1
- package/src/lib/angular-options.js.map +1 -1
- package/src/lib/data-grid-item.d.ts +1 -1
- package/src/lib/data-grid-item.js +2 -2
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-options.d.ts +3 -3
- package/src/lib/data-grid-options.js +1 -1
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/dialog-action.d.ts +1 -1
- package/src/lib/dialog-action.js +2 -2
- package/src/lib/dialog-action.js.map +1 -1
- package/src/lib/existing-method.d.ts +11 -2
- package/src/lib/existing-method.js +8 -2
- package/src/lib/existing-method.js.map +1 -1
- package/src/lib/form-component-control.d.ts +1 -1
- package/src/lib/form-component-control.js +2 -2
- package/src/lib/form-component-control.js.map +1 -1
- package/src/lib/form-definition-control.d.ts +1 -1
- package/src/lib/form-definition-control.js +6 -4
- package/src/lib/form-definition-control.js.map +1 -1
- package/src/lib/minimum-table-component-options.d.ts +6 -4
- package/src/lib/minimum-table-component-options.js +87 -29
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/minimum-table-options.d.ts +10 -7
- package/src/lib/minimum-table-options.js +9 -6
- package/src/lib/minimum-table-options.js.map +1 -1
- package/src/lib/table-action.d.ts +1 -1
- package/src/lib/table-action.js +11 -5
- package/src/lib/table-action.js.map +1 -1
- package/src/lib/table-column.d.ts +16 -4
- package/src/lib/table-column.js +93 -6
- package/src/lib/table-column.js.map +1 -1
- package/src/lib/table-header-button.d.ts +4 -6
- package/src/lib/table-header-button.js +2 -1
- package/src/lib/table-header-button.js.map +1 -1
- package/src/lib/table-open-api-options.d.ts +3 -2
- package/src/lib/table-open-api-options.js +1 -1
- package/src/lib/table-open-api-options.js.map +1 -1
- package/src/lib/table-options.d.ts +9 -5
- package/src/lib/table-options.js +1 -1
- package/src/lib/table-options.js.map +1 -1
- package/src/lib/table-property.d.ts +14 -0
- package/src/lib/table-property.js +46 -0
- package/src/lib/table-property.js.map +1 -0
- package/src/lib/table-row-action.d.ts +5 -1
- package/src/lib/table-row-action.js +9 -7
- package/src/lib/table-row-action.js.map +1 -1
- package/src/lib/tree-table-options.d.ts +10 -6
- package/src/lib/tree-table-options.js +3 -3
- package/src/lib/tree-table-options.js.map +1 -1
- package/src/lib/type-import.d.ts +4 -0
- package/src/lib/type-import.js +38 -0
- package/src/lib/type-import.js.map +1 -0
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.ts.template +5 -5
- package/src/schematics/accordion/accordion-component/index.d.ts +3 -1
- package/src/schematics/accordion/accordion-component/index.js +15 -8
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.json +13 -3
- package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.html.template +2 -2
- package/src/schematics/accordion/accordion-item-component/files/component/__componentName__.component.ts.template +0 -2
- package/src/schematics/accordion/accordion-item-component/index.js +3 -3
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.json +13 -3
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +3 -3
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +9 -7
- 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.json +13 -3
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +7 -4
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +5 -5
- 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 +57 -8
- package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.html.template +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/files/component/__componentName__.component.ts.template +3 -3
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +4 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +1 -1
- 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 +62 -9
- package/src/schematics/angular.schema.json +61 -0
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +1 -1
- package/src/schematics/data-grid-component/index.d.ts +1 -1
- package/src/schematics/data-grid-component/index.js +8 -7
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +13 -3
- package/src/schematics/dialog-component/files/component/__componentName__.component.html.template +1 -1
- package/src/schematics/dialog-component/index.js +3 -3
- package/src/schematics/dialog-component/index.js.map +1 -1
- package/src/schematics/dialog-component/schema.json +13 -3
- package/src/schematics/form/control/input-form-control/index.js +1 -1
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/control/select-form-control/index.js +1 -1
- package/src/schematics/form/control/select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/index.d.ts +2 -2
- package/src/schematics/form/control/table-select-form-control/index.js +3 -3
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/form-component/files/component/__componentName__.component.ts.template +0 -2
- package/src/schematics/form/form-component/index.d.ts +1 -1
- package/src/schematics/form/form-component/index.js +1 -1
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-control/index.js +1 -1
- 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 +16 -9
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/form/form-definition/schema.d.ts +2 -1
- package/src/schematics/form/form-definition/schema.json +5 -0
- package/src/schematics/general.schema.json +41 -0
- package/src/schematics/table/action/dialog-table-action/index.d.ts +3 -1
- package/src/schematics/table/action/dialog-table-action/index.js +1 -1
- package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
- package/src/schematics/table/action/dialog-table-action/schema.json +12 -2
- package/src/schematics/table/action/form-table-action/index.d.ts +6 -3
- package/src/schematics/table/action/form-table-action/index.js +46 -18
- package/src/schematics/table/action/form-table-action/index.js.map +1 -1
- package/src/schematics/table/action/form-table-action/schema.d.ts +13 -1
- package/src/schematics/table/action/form-table-action/schema.json +71 -3
- package/src/schematics/table/action/navigation-table-action/index.js +4 -3
- package/src/schematics/table/action/navigation-table-action/index.js.map +1 -1
- package/src/schematics/table/action/navigation-table-action/schema.d.ts +1 -0
- package/src/schematics/table/action/navigation-table-action/schema.json +5 -0
- package/src/schematics/table/action/open-api-table-action/index.d.ts +10 -0
- package/src/schematics/table/action/open-api-table-action/index.js +50 -0
- package/src/schematics/table/action/open-api-table-action/index.js.map +1 -0
- package/src/schematics/table/action/open-api-table-action/schema.d.ts +9 -0
- package/src/schematics/table/action/open-api-table-action/schema.json +121 -0
- package/src/schematics/table/action/operation-table-action/index.js +1 -1
- 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 +10 -3
- package/src/schematics/table/header-button/form-table-header-button/index.js +57 -48
- package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
- package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +8 -0
- package/src/schematics/table/header-button/form-table-header-button/schema.json +17 -1
- package/src/schematics/table/header-button/navigation-table-header-button/index.js +30 -8
- package/src/schematics/table/header-button/navigation-table-header-button/index.js.map +1 -1
- package/src/schematics/table/header-button/navigation-table-header-button/schema.d.ts +1 -0
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +8 -6
- package/src/schematics/table/table-action/index.js +1 -1
- package/src/schematics/table/table-action/index.js.map +1 -1
- package/src/schematics/table/table-action/schema.json +8 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +31 -40
- package/src/schematics/table/table-component/files/component/__componentName__.component.ts.template +17 -5
- package/src/schematics/table/table-component/index.d.ts +6 -8
- package/src/schematics/table/table-component/index.js +41 -28
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +297 -218
- package/src/schematics/table/table-header-button/index.d.ts +2 -4
- package/src/schematics/table/table-header-button/index.js +1 -1
- package/src/schematics/table/table-header-button/index.js.map +1 -1
- package/src/schematics/table/table-header-button/schema.d.ts +2 -1
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +94 -82
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.ts.template +17 -6
- package/src/schematics/table/tree-table-component/index.d.ts +1 -1
- package/src/schematics/table/tree-table-component/index.js +20 -25
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +90 -7
- package/src/schematics/tree-component/index.d.ts +2 -2
- package/src/schematics/tree-component/index.js +2 -2
- package/src/schematics/tree-component/index.js.map +1 -1
- package/src/schematics/tree-component/schema.json +11 -1
|
@@ -93,6 +93,39 @@
|
|
|
93
93
|
"type": "string"
|
|
94
94
|
},
|
|
95
95
|
"type": {
|
|
96
|
+
"oneOf": [
|
|
97
|
+
{
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "object",
|
|
102
|
+
"properties": {
|
|
103
|
+
"name": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
},
|
|
106
|
+
"isTypeOnly": {
|
|
107
|
+
"type": "boolean"
|
|
108
|
+
},
|
|
109
|
+
"moduleSpecifier": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
"namedImport": {
|
|
113
|
+
"type": "string"
|
|
114
|
+
},
|
|
115
|
+
"namespaceImport": {
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
"defaultImport": {
|
|
119
|
+
"type": "string"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"required": [
|
|
123
|
+
"name"
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"role": {
|
|
96
129
|
"type": "string"
|
|
97
130
|
},
|
|
98
131
|
"modifiers": {
|
|
@@ -101,6 +134,38 @@
|
|
|
101
134
|
"type": "string"
|
|
102
135
|
}
|
|
103
136
|
},
|
|
137
|
+
"template": {
|
|
138
|
+
"type": "string"
|
|
139
|
+
},
|
|
140
|
+
"pipeList": {
|
|
141
|
+
"type": "array",
|
|
142
|
+
"items": {
|
|
143
|
+
"oneOf": [
|
|
144
|
+
{
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"type": "object",
|
|
149
|
+
"properties": {
|
|
150
|
+
"name": {
|
|
151
|
+
"type": "string"
|
|
152
|
+
},
|
|
153
|
+
"namedImport": {
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
"moduleSpecifier": {
|
|
157
|
+
"type": "string"
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"required": [
|
|
161
|
+
"name",
|
|
162
|
+
"namedImport",
|
|
163
|
+
"moduleSpecifier"
|
|
164
|
+
]
|
|
165
|
+
}
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
},
|
|
104
169
|
"hasFilter": {
|
|
105
170
|
"type": "boolean"
|
|
106
171
|
},
|
|
@@ -198,7 +263,17 @@
|
|
|
198
263
|
}
|
|
199
264
|
},
|
|
200
265
|
"overwrite": {
|
|
201
|
-
"
|
|
266
|
+
"anyOf": [
|
|
267
|
+
{
|
|
268
|
+
"type": "boolean"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"type": "array",
|
|
272
|
+
"items": {
|
|
273
|
+
"type": "string"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
],
|
|
202
277
|
"description": "Overwrite existing files",
|
|
203
278
|
"default": false
|
|
204
279
|
},
|
|
@@ -209,28 +284,36 @@
|
|
|
209
284
|
"tableRootMethod": {
|
|
210
285
|
"type": "object",
|
|
211
286
|
"properties": {
|
|
212
|
-
"
|
|
287
|
+
"name": {
|
|
213
288
|
"type": "string",
|
|
214
289
|
"description": "The name of the table method class"
|
|
215
290
|
},
|
|
216
|
-
"
|
|
291
|
+
"moduleSpecifier": {
|
|
217
292
|
"type": "string",
|
|
218
293
|
"description": "The import path for the table method class"
|
|
219
294
|
}
|
|
220
|
-
}
|
|
295
|
+
},
|
|
296
|
+
"required": [
|
|
297
|
+
"name",
|
|
298
|
+
"moduleSpecifier"
|
|
299
|
+
]
|
|
221
300
|
},
|
|
222
301
|
"tableChildMethod": {
|
|
223
302
|
"type": "object",
|
|
224
303
|
"properties": {
|
|
225
|
-
"
|
|
304
|
+
"name": {
|
|
226
305
|
"type": "string",
|
|
227
306
|
"description": "The name of the table method class"
|
|
228
307
|
},
|
|
229
|
-
"
|
|
308
|
+
"moduleSpecifier": {
|
|
230
309
|
"type": "string",
|
|
231
310
|
"description": "The import path for the table method class"
|
|
232
311
|
}
|
|
233
|
-
}
|
|
312
|
+
},
|
|
313
|
+
"required": [
|
|
314
|
+
"name",
|
|
315
|
+
"moduleSpecifier"
|
|
316
|
+
]
|
|
234
317
|
}
|
|
235
318
|
},
|
|
236
319
|
"required": [
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { TreeComponentOptions } from './schema';
|
|
2
|
-
import { NormalizedAngularOptions } from '../../lib/angular-options';
|
|
3
1
|
import { Normalized } from '@rxap/utilities';
|
|
2
|
+
import { NormalizedAngularOptions } from '../../lib/angular-options';
|
|
3
|
+
import { TreeComponentOptions } from './schema';
|
|
4
4
|
export interface NormalizedTreeComponentOptions extends Readonly<Normalized<TreeComponentOptions> & NormalizedAngularOptions> {
|
|
5
5
|
name: string;
|
|
6
6
|
controllerName: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.NormalizeTreeComponentOptions = void 0;
|
|
4
|
-
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
5
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
5
|
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
6
|
+
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
7
7
|
const angular_options_1 = require("../../lib/angular-options");
|
|
8
8
|
function NormalizeTreeComponentOptions(options) {
|
|
9
9
|
var _a, _b, _c;
|
|
@@ -11,7 +11,7 @@ function NormalizeTreeComponentOptions(options) {
|
|
|
11
11
|
(0, angular_options_1.AssertAngularOptionsNameProperty)(normalizedAngularOptions);
|
|
12
12
|
const { name } = normalizedAngularOptions;
|
|
13
13
|
const componentName = (0, schematics_utilities_1.CoerceSuffix)((0, schematics_utilities_1.dasherize)(name), '-tree');
|
|
14
|
-
return Object.
|
|
14
|
+
return Object.freeze(Object.assign(Object.assign({}, normalizedAngularOptions), { modifiers: (_a = options.modifiers) !== null && _a !== void 0 ? _a : [], controllerName: (_b = options.controllerName) !== null && _b !== void 0 ? _b : componentName, componentName, fullTree: (_c = options.fullTree) !== null && _c !== void 0 ? _c : true }));
|
|
15
15
|
}
|
|
16
16
|
exports.NormalizeTreeComponentOptions = NormalizeTreeComponentOptions;
|
|
17
17
|
function default_1(options) {
|
|
@@ -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":";;;AAAA,2DAAmD;AACnD,mEAAoE;AACpE,qEAGoC;AAEpC,+DAImC;AAUnC,SAAgB,6BAA6B,CAC3C,OAA6B;;IAE7B,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,IAAA,kDAAgC,EAAC,wBAAwB,CAAC,CAAC;IAC3D,MAAM,EAAE,IAAI,EAAE,GAAG,wBAAwB,CAAC;IAC1C,MAAM,aAAa,GAAG,IAAA,mCAAY,EAAC,IAAA,gCAAS,EAAC,IAAI,CAAC,EAAE,OAAO,CAAC,CAAC;IAC7D,OAAO,MAAM,CAAC,MAAM,iCACf,wBAAwB,KAC3B,SAAS,EAAE,MAAA,OAAO,CAAC,SAAS,mCAAI,EAAE,EAClC,cAAc,EAAE,MAAA,OAAO,CAAC,cAAc,mCAAI,aAAa,EACvD,aAAa,EACb,QAAQ,EAAE,MAAA,OAAO,CAAC,QAAQ,mCAAI,IAAI,IAClC,CAAC;AACL,CAAC;AAdD,sEAcC;AAED,mBAAyB,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,IAAA,kBAAK,EAAC;YACX,IAAA,6CAAuB,EAAC;gBACtB,OAAO;gBACP,OAAO;gBACP,MAAM;gBACN,cAAc;gBACd,QAAQ;aACT,CAAC;SACH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAtBD,4BAsBC"}
|
|
@@ -58,7 +58,17 @@
|
|
|
58
58
|
"description": "The controller name for the tree nest operations"
|
|
59
59
|
},
|
|
60
60
|
"overwrite": {
|
|
61
|
-
"
|
|
61
|
+
"anyOf": [
|
|
62
|
+
{
|
|
63
|
+
"type": "boolean"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "string"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
],
|
|
62
72
|
"description": "Overwrite existing files",
|
|
63
73
|
"default": false
|
|
64
74
|
},
|