@rxap/schematic-angular 16.2.0-dev.6 → 16.2.0-dev.8
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 +29 -0
- package/README.md +1 -1
- package/package.json +10 -8
- package/src/lib/accordion-header.d.ts +5 -0
- package/src/lib/accordion-header.js +8 -2
- package/src/lib/accordion-header.js.map +1 -1
- package/src/lib/accordion-item.d.ts +17 -16
- package/src/lib/accordion-item.js +44 -32
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/accordion-itme-kinds.d.ts +8 -0
- package/src/lib/accordion-itme-kinds.js +16 -0
- package/src/lib/accordion-itme-kinds.js.map +1 -0
- package/src/lib/coerce-accordion-component.js +2 -2
- package/src/lib/coerce-accordion-component.js.map +1 -1
- package/src/lib/coerce-form-component.js +5 -2
- package/src/lib/coerce-form-component.js.map +1 -1
- package/src/lib/coerce-minimum-table-component.js +6 -3
- package/src/lib/coerce-minimum-table-component.js.map +1 -1
- package/src/lib/coerce-tree-table-component.js +2 -0
- package/src/lib/coerce-tree-table-component.js.map +1 -1
- package/src/lib/data-grid-item.d.ts +4 -7
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/data-grid-options.d.ts +2 -0
- package/src/lib/data-grid-options.js +7 -3
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/form/generate-form-template.d.ts +5 -0
- package/src/lib/form/generate-form-template.js +12 -0
- package/src/lib/form/generate-form-template.js.map +1 -0
- package/src/lib/form-component-control.d.ts +2 -6
- package/src/lib/form-component-control.js.map +1 -1
- package/src/lib/form-control.d.ts +125 -0
- package/src/lib/form-control.js +303 -0
- package/src/lib/form-control.js.map +1 -0
- package/src/lib/form-definition-control.d.ts +3 -57
- package/src/lib/form-definition-control.js +18 -144
- package/src/lib/form-definition-control.js.map +1 -1
- package/src/lib/load-handlebars-template.d.ts +3 -0
- package/src/lib/load-handlebars-template.js +24 -0
- package/src/lib/load-handlebars-template.js.map +1 -0
- package/src/lib/minimum-table-component-options.d.ts +1 -1
- package/src/lib/minimum-table-component-options.js +3 -3
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/table-column.d.ts +8 -2
- package/src/lib/table-column.js +63 -44
- package/src/lib/table-column.js.map +1 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
- package/src/schematics/accordion/accordion-component/index.js +6 -98
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/template.schema.json +102 -0
- package/src/schematics/accordion/accordion-item-component/index.d.ts +2 -2
- package/src/schematics/accordion/accordion-item-component/index.js +42 -42
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -2
- package/src/schematics/accordion/accordion-item-component/template.schema.json +33 -0
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +17 -29
- 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 +1 -1
- package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +31 -0
- package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js +4 -4
- 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 +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +84 -0
- package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/index.js +8 -8
- 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 +1 -1
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +46 -0
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +10 -10
- 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 +1 -1
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +46 -0
- package/src/schematics/accordion/templates/accordion-header.hbs +6 -0
- package/src/schematics/accordion/templates/data-grid-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/default-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/switch-accordion-item.hbs +21 -0
- package/src/schematics/accordion/templates/table-accordion-item.hbs +15 -0
- package/src/schematics/accordion/templates/tree-table-accordion-item.hbs +15 -0
- package/src/schematics/accordion-item.schema.json +35 -0
- package/src/schematics/angular.schema.json +2 -10
- package/src/schematics/backend.schema.json +13 -0
- package/src/schematics/button.schema.json +30 -0
- package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +34 -0
- package/src/schematics/data-grid-component/index.d.ts +0 -1
- package/src/schematics/data-grid-component/index.js +21 -7
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/template.schema.json +23 -0
- package/src/schematics/data-grid-item.schema.json +23 -0
- package/src/schematics/data-grid.schema.json +44 -0
- package/src/schematics/dialog-component/template.schema.json +65 -0
- package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
- package/src/schematics/form/control/input-form-control/index.js +4 -27
- package/src/schematics/form/control/input-form-control/index.js.map +1 -1
- package/src/schematics/form/control/input-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/input-form-control/template.schema.json +23 -0
- package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
- package/src/schematics/form/control/select-form-control/index.js +132 -96
- package/src/schematics/form/control/select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/select-form-control/schema.d.ts +2 -3
- package/src/schematics/form/control/select-form-control/template.schema.json +23 -0
- package/src/schematics/form/control/table-select-form-control/index.d.ts +4 -6
- package/src/schematics/form/control/table-select-form-control/index.js +80 -68
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -4
- package/src/schematics/form/control/table-select-form-control/template.schema.json +78 -0
- package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +3 -3
- package/src/schematics/form/form-component/index.js +4 -1
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/template.schema.json +23 -0
- package/src/schematics/form/form-control/index.d.ts +3 -1
- package/src/schematics/form/form-control/index.js +19 -8
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-control/template.schema.json +37 -0
- package/src/schematics/form/form-definition/index.js +14 -1
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/form/form-definition/template.schema.json +33 -0
- package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
- package/src/schematics/form/templates/default-form-control.hbs +2 -0
- package/src/schematics/form/templates/input-form-control.hbs +9 -0
- package/src/schematics/form/templates/mat-form-field.hbs +31 -0
- package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
- package/src/schematics/form/templates/table-select-form-control.hbs +18 -0
- package/src/schematics/form-component.schema.json +39 -0
- package/src/schematics/form-control.schema.json +68 -0
- package/src/schematics/form-definition.schema.json +22 -0
- package/src/schematics/form-field.schema.json +24 -0
- package/src/schematics/header-button.schema.json +42 -0
- package/src/schematics/input-form-control.schema.json +47 -0
- package/src/schematics/minimum-table.schema.json +54 -0
- package/src/schematics/property.schema.json +28 -0
- package/src/schematics/select-form-control.schema.json +53 -0
- package/src/schematics/table/action/dialog-table-action/template.schema.json +61 -0
- package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
- package/src/schematics/table/action/navigation-table-action/template.schema.json +31 -0
- package/src/schematics/table/action/open-api-table-action/template.schema.json +59 -0
- package/src/schematics/table/action/operation-table-action/template.schema.json +17 -0
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +51 -0
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +31 -0
- package/src/schematics/table/table-action/template.schema.json +30 -0
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +241 -0
- package/src/schematics/table/table-component/index.d.ts +1 -1
- package/src/schematics/table/table-component/index.js +2 -2
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/template.schema.json +26 -0
- package/src/schematics/table/table-header-button/template.schema.json +30 -0
- package/src/schematics/table/templates/boolean-table-column.hbs +10 -0
- package/src/schematics/table/templates/component-table-column.hbs +12 -0
- package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +10 -0
- package/src/schematics/table/templates/date-table-column.hbs +11 -0
- package/src/schematics/table/templates/default-table-column.hbs +8 -0
- package/src/schematics/table/templates/icon-table-column.hbs +10 -0
- package/src/schematics/table/templates/link-table-column.hbs +10 -0
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +249 -0
- package/src/schematics/table/tree-table-component/template.schema.json +26 -0
- package/src/schematics/table-action.schema.json +61 -0
- package/src/schematics/table-column.schema.json +69 -0
- package/src/schematics/table.schema.json +54 -0
- package/src/schematics/tree-component/template.schema.json +31 -0
- package/src/schematics/tree-table.schema.json +40 -0
- package/src/schematics/type.schema.json +35 -0
- package/src/schematics/upstream.schema.json +56 -0
- package/src/lib/accordion-itme-types.d.ts +0 -8
- package/src/lib/accordion-itme-types.js +0 -16
- package/src/lib/accordion-itme-types.js.map +0 -1
- package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
- package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
- package/src/schematics/accordion/accordion-component/schema.json +0 -191
- package/src/schematics/accordion/accordion-item-component/schema.json +0 -92
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +0 -133
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +0 -226
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +0 -334
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +0 -334
- package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
- package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
- package/src/schematics/data-grid-component/schema.json +0 -176
- package/src/schematics/dialog-component/schema.json +0 -81
- package/src/schematics/form/control/input-form-control/schema.json +0 -116
- package/src/schematics/form/control/select-form-control/schema.json +0 -102
- package/src/schematics/form/control/table-select-form-control/schema.json +0 -106
- package/src/schematics/form/form-component/schema.json +0 -173
- package/src/schematics/form/form-control/schema.json +0 -92
- package/src/schematics/form/form-definition/schema.json +0 -148
- package/src/schematics/table/action/dialog-table-action/schema.json +0 -148
- package/src/schematics/table/action/form-table-action/schema.json +0 -202
- package/src/schematics/table/action/navigation-table-action/schema.json +0 -95
- package/src/schematics/table/action/open-api-table-action/schema.json +0 -121
- package/src/schematics/table/action/operation-table-action/schema.json +0 -98
- package/src/schematics/table/header-button/form-table-header-button/schema.json +0 -139
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +0 -87
- package/src/schematics/table/table-action/schema.json +0 -94
- package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
- package/src/schematics/table/table-component/schema.json +0 -340
- package/src/schematics/table/table-header-button/schema.json +0 -80
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -259
- package/src/schematics/table/tree-table-component/schema.json +0 -316
- package/src/schematics/tree-component/schema.json +0 -86
|
@@ -1,34 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NormalizeInputFormControlOptions =
|
|
3
|
+
exports.NormalizeInputFormControlOptions = void 0;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
6
5
|
const angular_options_1 = require("../../../../lib/angular-options");
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
function GuessInputType(type) {
|
|
10
|
-
switch (type) {
|
|
11
|
-
case 'boolean':
|
|
12
|
-
return 'checkbox';
|
|
13
|
-
case 'number':
|
|
14
|
-
return 'number';
|
|
15
|
-
case 'date':
|
|
16
|
-
return 'date';
|
|
17
|
-
case 'string':
|
|
18
|
-
default:
|
|
19
|
-
return 'text';
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.GuessInputType = GuessInputType;
|
|
6
|
+
const form_control_1 = require("../../../../lib/form-control");
|
|
7
|
+
const form_control_2 = require("../../form-control");
|
|
23
8
|
function NormalizeInputFormControlOptions(options) {
|
|
24
|
-
|
|
25
|
-
const normalizedOptions = (0, form_control_1.NormalizeFormControlOptions)(options);
|
|
26
|
-
const { type, template } = normalizedOptions;
|
|
27
|
-
if (!(0, form_definition_control_1.IsNormalizedInputFormControlTemplate)(template)) {
|
|
28
|
-
throw new Error('The control is not a input form control');
|
|
29
|
-
}
|
|
30
|
-
const inputType = (_a = template.type) !== null && _a !== void 0 ? _a : GuessInputType(type.name);
|
|
31
|
-
return Object.freeze(Object.assign(Object.assign({}, normalizedOptions), { inputType }));
|
|
9
|
+
return Object.freeze(Object.assign(Object.assign({}, (0, form_control_2.NormalizeFormControlOptions)(options)), (0, form_control_1.NormalizeInputFormControl)(options)));
|
|
32
10
|
}
|
|
33
11
|
exports.NormalizeInputFormControlOptions = NormalizeInputFormControlOptions;
|
|
34
12
|
function printOptions(options) {
|
|
@@ -40,7 +18,6 @@ function default_1(options) {
|
|
|
40
18
|
return () => {
|
|
41
19
|
return (0, schematics_1.chain)([
|
|
42
20
|
() => console.group('\x1b[32m[@rxap/schematics-angular:input-form-control]\x1b[0m'),
|
|
43
|
-
(0, schematics_utilities_1.ExecuteSchematic)('form-control', normalizedOptions),
|
|
44
21
|
() => console.groupEnd(),
|
|
45
22
|
]);
|
|
46
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/form/control/input-form-control/index.ts"],"names":[],"mappings":";;;AAAA,2DAAmD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/form/control/input-form-control/index.ts"],"names":[],"mappings":";;;AAAA,2DAAmD;AAGnD,qEAAsE;AACtE,+DAGsC;AACtC,qDAG4B;AAM5B,SAAgB,gCAAgC,CAC9C,OAAgC;IAEhC,OAAO,MAAM,CAAC,MAAM,iCACf,IAAA,0CAA2B,EAAC,OAAO,CAAC,GACpC,IAAA,wCAAyB,EAAC,OAAO,CAAC,EACrC,CAAC;AACL,CAAC;AAPD,4EAOC;AAED,SAAS,YAAY,CAAC,OAA0C;IAC9D,IAAA,qCAAmB,EAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;AACrD,CAAC;AAED,mBAAyB,OAAgC;IACvD,MAAM,iBAAiB,GAAG,gCAAgC,CAAC,OAAO,CAAC,CAAC;IACpE,YAAY,CAAC,iBAAiB,CAAC,CAAC;IAChC,OAAO,GAAG,EAAE;QACV,OAAO,IAAA,kBAAK,EAAC;YACX,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,8DAA8D,CAAC;YACnF,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AATD,4BASC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
+
import { InputFormControl } from '../../../../lib/form-control';
|
|
1
2
|
import { FormControlOptions } from '../../form-control/schema';
|
|
2
3
|
|
|
3
|
-
export interface InputFormControlOptions extends FormControlOptions {
|
|
4
|
-
inputType?: string;
|
|
5
|
-
}
|
|
4
|
+
export interface InputFormControlOptions extends FormControlOptions, InputFormControl {}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "input-form-control-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "../../form-control/template.schema.json"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "../../../input-form-control.schema.json"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"definitions": {
|
|
13
|
+
"type": {
|
|
14
|
+
"$ref": "../../../type.schema.json"
|
|
15
|
+
},
|
|
16
|
+
"property": {
|
|
17
|
+
"$ref": "../../../property.schema.json"
|
|
18
|
+
},
|
|
19
|
+
"button": {
|
|
20
|
+
"$ref": "../../../button.schema.json"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
1
2
|
import { Normalized } from '@rxap/utilities';
|
|
3
|
+
import { NormalizedSelectFormControl } from '../../../../lib/form-control';
|
|
2
4
|
import { NormalizedFormControlOptions } from '../../form-control';
|
|
3
5
|
import { SelectFormControlOptions } from './schema';
|
|
4
|
-
export type NormalizedSelectFormControlOptions = Readonly<Normalized<SelectFormControlOptions
|
|
6
|
+
export type NormalizedSelectFormControlOptions = Readonly<Normalized<Omit<SelectFormControlOptions, 'options'>>> & NormalizedFormControlOptions & NormalizedSelectFormControl;
|
|
5
7
|
export declare function NormalizeSelectFormControlOptions(options: SelectFormControlOptions): NormalizedSelectFormControlOptions;
|
|
6
|
-
export default function (options: SelectFormControlOptions): () =>
|
|
8
|
+
export default function (options: SelectFormControlOptions): () => Rule;
|
|
@@ -7,116 +7,152 @@ const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
|
7
7
|
const path_1 = require("path");
|
|
8
8
|
const ts_morph_1 = require("ts-morph");
|
|
9
9
|
const angular_options_1 = require("../../../../lib/angular-options");
|
|
10
|
-
const
|
|
10
|
+
const backend_types_1 = require("../../../../lib/backend-types");
|
|
11
|
+
const form_control_1 = require("../../../../lib/form-control");
|
|
12
|
+
const form_control_2 = require("../../form-control");
|
|
11
13
|
function NormalizeSelectFormControlOptions(options) {
|
|
12
|
-
|
|
13
|
-
const normalizedOptions = (0, form_control_1.NormalizeFormControlOptions)(options);
|
|
14
|
-
let { isArray } = normalizedOptions;
|
|
15
|
-
const multiple = (_a = options.multiple) !== null && _a !== void 0 ? _a : false;
|
|
16
|
-
isArray = multiple ? true : isArray;
|
|
17
|
-
return Object.freeze(Object.assign(Object.assign({}, normalizedOptions), { isArray,
|
|
18
|
-
multiple, staticDataSource: (_b = options.staticDataSource) !== null && _b !== void 0 ? _b : false }));
|
|
14
|
+
return Object.freeze(Object.assign(Object.assign({}, (0, form_control_2.NormalizeFormControlOptions)(options)), (0, form_control_1.NormalizeSelectFormControl)(options)));
|
|
19
15
|
}
|
|
20
16
|
exports.NormalizeSelectFormControlOptions = NormalizeSelectFormControlOptions;
|
|
21
17
|
function printOptions(options) {
|
|
22
18
|
(0, angular_options_1.PrintAngularOptions)('select-form-control', options);
|
|
23
19
|
}
|
|
24
|
-
function
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
const
|
|
20
|
+
function noneBackendOptionsRule(normalizedOptions) {
|
|
21
|
+
const { name, project, feature, directory, formName, type, isArray, state, isRequired, validatorList, } = normalizedOptions;
|
|
22
|
+
const optionsDataSourceDirectory = (0, path_1.join)(directory !== null && directory !== void 0 ? directory : '', 'data-sources');
|
|
23
|
+
const optionsDataSourceName = (0, schematics_utilities_1.classify)([name, 'options', 'data-source'].join('-'));
|
|
24
|
+
const optionsDataSourceImportPath = `./data-sources/${(0, schematics_utilities_1.dasherize)(name)}-options.data-source`;
|
|
25
|
+
return (0, schematics_1.chain)([
|
|
26
|
+
(0, schematics_ts_morph_1.CoerceOptionsDataSourceRule)({
|
|
27
|
+
project,
|
|
28
|
+
feature,
|
|
29
|
+
directory: optionsDataSourceDirectory,
|
|
30
|
+
name: [name, 'options'].join('-'),
|
|
31
|
+
}),
|
|
32
|
+
(0, schematics_ts_morph_1.CoerceFormProviderRule)({
|
|
33
|
+
project,
|
|
34
|
+
feature,
|
|
35
|
+
directory,
|
|
36
|
+
providerObject: optionsDataSourceName,
|
|
37
|
+
importStructures: [
|
|
38
|
+
{
|
|
39
|
+
namedImports: [optionsDataSourceName],
|
|
40
|
+
moduleSpecifier: optionsDataSourceImportPath,
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
}),
|
|
44
|
+
(0, schematics_ts_morph_1.CoerceFormDefinitionControl)({
|
|
45
|
+
project,
|
|
46
|
+
feature,
|
|
47
|
+
directory,
|
|
48
|
+
formName,
|
|
49
|
+
name,
|
|
50
|
+
type,
|
|
51
|
+
isArray,
|
|
52
|
+
state,
|
|
53
|
+
isRequired,
|
|
54
|
+
validatorList,
|
|
55
|
+
coerceFormControl: (sourceFile, classDeclaration, control) => {
|
|
56
|
+
const { propertyDeclaration, decoratorDeclaration, } = (0, schematics_ts_morph_1.CoerceFormControl)(sourceFile, classDeclaration, control);
|
|
57
|
+
(0, schematics_ts_morph_1.CoerceDecorator)(propertyDeclaration, 'UseOptionsDataSource').set({
|
|
58
|
+
arguments: [optionsDataSourceName],
|
|
59
|
+
});
|
|
60
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
61
|
+
namedImports: [optionsDataSourceName],
|
|
62
|
+
moduleSpecifier: optionsDataSourceImportPath,
|
|
63
|
+
});
|
|
64
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
65
|
+
namedImports: ['UseOptionsDataSource'],
|
|
66
|
+
moduleSpecifier: '@rxap/form-system',
|
|
67
|
+
});
|
|
68
|
+
return {
|
|
69
|
+
propertyDeclaration,
|
|
70
|
+
decoratorDeclaration,
|
|
71
|
+
};
|
|
72
|
+
},
|
|
73
|
+
})
|
|
74
|
+
]);
|
|
75
|
+
}
|
|
76
|
+
function nestJsBackendOptionsRule(normalizedOptions) {
|
|
77
|
+
const { name, project, feature, directory, formName, type, isArray, state, isRequired, validatorList, nestModule, controllerName, context, scope, } = normalizedOptions;
|
|
29
78
|
const optionsOperationPath = ['options', name].join('/');
|
|
79
|
+
const optionsOperationName = ['get', name, 'options'].join('-');
|
|
30
80
|
const optionsOperationId = (0, schematics_ts_morph_1.buildOperationId)(normalizedOptions, optionsOperationName, (0, schematics_ts_morph_1.BuildNestControllerName)({
|
|
31
81
|
controllerName,
|
|
32
82
|
nestModule,
|
|
33
83
|
}));
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
84
|
+
return (0, schematics_1.chain)([
|
|
85
|
+
(0, schematics_ts_morph_1.CoerceOptionsOperationRule)({
|
|
86
|
+
project,
|
|
87
|
+
feature,
|
|
88
|
+
nestModule,
|
|
89
|
+
controllerName,
|
|
90
|
+
operationName: optionsOperationName,
|
|
91
|
+
path: optionsOperationPath,
|
|
92
|
+
control: normalizedOptions,
|
|
93
|
+
context,
|
|
94
|
+
}),
|
|
95
|
+
(0, schematics_ts_morph_1.CoerceFormDefinitionControl)({
|
|
96
|
+
project,
|
|
97
|
+
feature,
|
|
98
|
+
directory,
|
|
99
|
+
formName,
|
|
100
|
+
name,
|
|
101
|
+
type,
|
|
102
|
+
isArray,
|
|
103
|
+
state,
|
|
104
|
+
isRequired,
|
|
105
|
+
validatorList,
|
|
106
|
+
coerceFormControl: (sourceFile, classDeclaration, control) => {
|
|
107
|
+
const { propertyDeclaration, decoratorDeclaration, } = (0, schematics_ts_morph_1.CoerceFormControl)(sourceFile, classDeclaration, control);
|
|
108
|
+
(0, schematics_ts_morph_1.CoerceDecorator)(propertyDeclaration, 'UseOptionsMethod').set({
|
|
109
|
+
arguments: [
|
|
110
|
+
(0, schematics_ts_morph_1.OperationIdToClassName)(optionsOperationId),
|
|
111
|
+
ts_morph_1.Writers.object({ withoutParameters: 'true' }),
|
|
112
|
+
],
|
|
113
|
+
});
|
|
114
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
115
|
+
namedImports: [(0, schematics_ts_morph_1.OperationIdToClassName)(optionsOperationId)],
|
|
116
|
+
moduleSpecifier: (0, schematics_ts_morph_1.OperationIdToClassImportPath)(optionsOperationId, scope),
|
|
117
|
+
});
|
|
118
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
119
|
+
namedImports: ['UseOptionsMethod'],
|
|
120
|
+
moduleSpecifier: '@rxap/form-system',
|
|
121
|
+
});
|
|
122
|
+
return {
|
|
123
|
+
propertyDeclaration,
|
|
124
|
+
decoratorDeclaration,
|
|
125
|
+
};
|
|
126
|
+
},
|
|
127
|
+
})
|
|
128
|
+
]);
|
|
129
|
+
}
|
|
130
|
+
function openApiBackendOptionsRule(normalizedOptions) {
|
|
131
|
+
return () => {
|
|
132
|
+
throw new schematics_1.SchematicsException('The open api backend is not supported yet!');
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function optionsRule(normalizedOptions) {
|
|
136
|
+
const { backend } = normalizedOptions;
|
|
137
|
+
switch (backend) {
|
|
138
|
+
case backend_types_1.BackendTypes.LOCAL:
|
|
139
|
+
case backend_types_1.BackendTypes.NONE:
|
|
140
|
+
return noneBackendOptionsRule(normalizedOptions);
|
|
141
|
+
case backend_types_1.BackendTypes.NESTJS:
|
|
142
|
+
return nestJsBackendOptionsRule(normalizedOptions);
|
|
143
|
+
case backend_types_1.BackendTypes.OPEN_API:
|
|
144
|
+
return openApiBackendOptionsRule(normalizedOptions);
|
|
145
|
+
default:
|
|
146
|
+
throw new schematics_1.SchematicsException(`The backend type "${backend}" is not supported!`);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
function default_1(options) {
|
|
150
|
+
const normalizedOptions = NormalizeSelectFormControlOptions(options);
|
|
151
|
+
printOptions(normalizedOptions);
|
|
37
152
|
return () => {
|
|
38
153
|
return (0, schematics_1.chain)([
|
|
39
154
|
() => console.group('\x1b[32m[@rxap/schematics-angular:select-form-control]\x1b[0m'),
|
|
40
|
-
(
|
|
41
|
-
() => staticDataSource
|
|
42
|
-
? (0, schematics_1.chain)([
|
|
43
|
-
(0, schematics_ts_morph_1.CoerceOptionsDataSourceRule)({
|
|
44
|
-
project,
|
|
45
|
-
feature,
|
|
46
|
-
directory: optionsDataSourceDirectory,
|
|
47
|
-
name: [name, 'options'].join('-'),
|
|
48
|
-
}),
|
|
49
|
-
(0, schematics_ts_morph_1.CoerceFormProviderRule)({
|
|
50
|
-
project,
|
|
51
|
-
feature,
|
|
52
|
-
directory,
|
|
53
|
-
providerObject: optionsDataSourceName,
|
|
54
|
-
importStructures: [
|
|
55
|
-
{
|
|
56
|
-
namedImports: [optionsDataSourceName],
|
|
57
|
-
moduleSpecifier: optionsDataSourceImportPath,
|
|
58
|
-
},
|
|
59
|
-
],
|
|
60
|
-
}),
|
|
61
|
-
])
|
|
62
|
-
: (0, schematics_ts_morph_1.CoerceOptionsOperationRule)({
|
|
63
|
-
project,
|
|
64
|
-
feature,
|
|
65
|
-
nestModule,
|
|
66
|
-
controllerName,
|
|
67
|
-
operationName: optionsOperationName,
|
|
68
|
-
path: optionsOperationPath,
|
|
69
|
-
control: normalizedOptions,
|
|
70
|
-
context,
|
|
71
|
-
}),
|
|
72
|
-
(0, schematics_ts_morph_1.CoerceFormDefinitionControl)({
|
|
73
|
-
project,
|
|
74
|
-
feature,
|
|
75
|
-
directory,
|
|
76
|
-
formName,
|
|
77
|
-
name,
|
|
78
|
-
type,
|
|
79
|
-
isArray,
|
|
80
|
-
state,
|
|
81
|
-
isRequired,
|
|
82
|
-
validatorList,
|
|
83
|
-
coerceFormControl: (sourceFile, classDeclaration, control) => {
|
|
84
|
-
const { propertyDeclaration, decoratorDeclaration, } = (0, schematics_ts_morph_1.CoerceFormControl)(sourceFile, classDeclaration, control);
|
|
85
|
-
if (staticDataSource) {
|
|
86
|
-
(0, schematics_ts_morph_1.CoerceDecorator)(propertyDeclaration, 'UseOptionsDataSource').set({
|
|
87
|
-
arguments: [optionsDataSourceName],
|
|
88
|
-
});
|
|
89
|
-
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
90
|
-
namedImports: [optionsDataSourceName],
|
|
91
|
-
moduleSpecifier: optionsDataSourceImportPath,
|
|
92
|
-
});
|
|
93
|
-
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
94
|
-
namedImports: ['UseOptionsDataSource'],
|
|
95
|
-
moduleSpecifier: '@rxap/form-system',
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
(0, schematics_ts_morph_1.CoerceDecorator)(propertyDeclaration, 'UseOptionsMethod').set({
|
|
100
|
-
arguments: [
|
|
101
|
-
(0, schematics_ts_morph_1.OperationIdToClassName)(optionsOperationId),
|
|
102
|
-
ts_morph_1.Writers.object({ withoutParameters: 'true' }),
|
|
103
|
-
],
|
|
104
|
-
});
|
|
105
|
-
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
106
|
-
namedImports: [(0, schematics_ts_morph_1.OperationIdToClassName)(optionsOperationId)],
|
|
107
|
-
moduleSpecifier: (0, schematics_ts_morph_1.OperationIdToClassImportPath)(optionsOperationId, scope),
|
|
108
|
-
});
|
|
109
|
-
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
110
|
-
namedImports: ['UseOptionsMethod'],
|
|
111
|
-
moduleSpecifier: '@rxap/form-system',
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
return {
|
|
115
|
-
propertyDeclaration,
|
|
116
|
-
decoratorDeclaration,
|
|
117
|
-
};
|
|
118
|
-
},
|
|
119
|
-
}),
|
|
155
|
+
optionsRule(normalizedOptions),
|
|
120
156
|
(0, schematics_ts_morph_1.EnforceUseFormControlOrderRule)(normalizedOptions),
|
|
121
157
|
() => console.groupEnd(),
|
|
122
158
|
]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/form/control/select-form-control/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/form/control/select-form-control/index.ts"],"names":[],"mappings":";;;AAAA,2DAIoC;AACpC,mEAcmC;AACnC,qEAIoC;AAEpC,+BAA4B;AAC5B,uCAIkB;AAClB,qEAAsE;AACtE,iEAA6D;AAC7D,+DAGsC;AACtC,qDAG4B;AAM5B,SAAgB,iCAAiC,CAC/C,OAAiC;IAEjC,OAAO,MAAM,CAAC,MAAM,iCACf,IAAA,0CAA2B,EAAC,OAAO,CAAC,GACpC,IAAA,yCAA0B,EAAC,OAAO,CAAC,EACtC,CAAC;AACL,CAAC;AAPD,8EAOC;AAED,SAAS,YAAY,CAAC,OAA2C;IAC/D,IAAA,qCAAmB,EAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAED,SAAS,sBAAsB,CAAC,iBAAqD;IACnF,MAAM,EACJ,IAAI,EACJ,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,OAAO,EACP,KAAK,EACL,UAAU,EACV,aAAa,GACd,GAAG,iBAAiB,CAAC;IACtB,MAAM,0BAA0B,GAAG,IAAA,WAAI,EAAC,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,EAAE,cAAc,CAAC,CAAC;IACzE,MAAM,qBAAqB,GAAG,IAAA,+BAAQ,EACpC,CAAE,IAAI,EAAE,SAAS,EAAE,aAAa,CAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAC7C,CAAC;IACF,MAAM,2BAA2B,GAAG,kBAAmB,IAAA,gCAAS,EAC9D,IAAI,CACJ,sBAAsB,CAAC;IACzB,OAAO,IAAA,kBAAK,EAAC;QACX,IAAA,iDAA2B,EAAC;YAC1B,OAAO;YACP,OAAO;YACP,SAAS,EAAE,0BAA0B;YACrC,IAAI,EAAE,CAAE,IAAI,EAAE,SAAS,CAAE,CAAC,IAAI,CAAC,GAAG,CAAC;SACpC,CAAC;QACF,IAAA,4CAAsB,EAAC;YACrB,OAAO;YACP,OAAO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AAE;SACzB,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAXD,4BAWC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
+
import { SelectFormControl } from '../../../../lib/form-control';
|
|
1
2
|
import { FormControlOptions } from '../../form-control/schema';
|
|
2
3
|
|
|
3
|
-
export interface SelectFormControlOptions extends FormControlOptions {
|
|
4
|
-
multiple?: boolean;
|
|
5
|
-
staticDataSource?: boolean;
|
|
4
|
+
export interface SelectFormControlOptions extends FormControlOptions, SelectFormControl {
|
|
6
5
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "select-form-control-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "../../form-control/template.schema.json"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "../../../select-form-control.schema.json"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"definitions": {
|
|
13
|
+
"type": {
|
|
14
|
+
"$ref": "../../../type.schema.json"
|
|
15
|
+
},
|
|
16
|
+
"property": {
|
|
17
|
+
"$ref": "../../../property.schema.json"
|
|
18
|
+
},
|
|
19
|
+
"button": {
|
|
20
|
+
"$ref": "../../../button.schema.json"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { Normalized } from '@rxap/utilities';
|
|
2
2
|
import { WriterFunction } from 'ts-morph';
|
|
3
|
-
import {
|
|
3
|
+
import { NormalizedTableSelectColumn, NormalizedTableSelectFormControl } from '../../../../lib/form-control';
|
|
4
4
|
import { NormalizedFormControlOptions } from '../../form-control';
|
|
5
5
|
import { TableSelectFormControlOptions } from './schema';
|
|
6
|
-
export
|
|
7
|
-
columnList: ReadonlyArray<NormalizedTableColumn>;
|
|
8
|
-
}
|
|
6
|
+
export type NormalizedTableSelectFormControlOptions = Readonly<Normalized<Omit<TableSelectFormControlOptions, 'columnList' | 'propertyList'>> & NormalizedFormControlOptions & NormalizedTableSelectFormControl>;
|
|
9
7
|
export declare function NormalizeTableSelectFormControlOptions(options: TableSelectFormControlOptions): NormalizedTableSelectFormControlOptions;
|
|
10
|
-
export declare function TableColumnToTableSelectColumn(
|
|
11
|
-
export declare function TableColumnListToTableSelectColumnMap(columnList:
|
|
8
|
+
export declare function TableColumnToTableSelectColumn(column: NormalizedTableSelectColumn): WriterFunction;
|
|
9
|
+
export declare function TableColumnListToTableSelectColumnMap(columnList: Array<NormalizedTableSelectColumn>): WriterFunction;
|
|
12
10
|
export default function (options: TableSelectFormControlOptions): () => import("@angular-devkit/schematics").Rule;
|