@rxap/schematic-angular 16.2.0-dev.20 → 16.2.0-dev.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +1 -1
- package/collection.json +15 -0
- package/package.json +7 -7
- package/src/lib/coerce-form-component.js +15 -3
- package/src/lib/coerce-form-component.js.map +1 -1
- package/src/lib/data-grid-item.d.ts +3 -3
- package/src/lib/data-grid-item.js +2 -2
- package/src/lib/data-grid-item.js.map +1 -1
- package/src/lib/form/abstract-control.d.ts +29 -0
- package/src/lib/form/abstract-control.js +37 -0
- package/src/lib/form/abstract-control.js.map +1 -0
- package/src/lib/form/array/base-form-array.d.ts +18 -0
- package/src/lib/form/array/base-form-array.js +40 -0
- package/src/lib/form/array/base-form-array.js.map +1 -0
- package/src/lib/form/array/form-array-kind.d.ts +3 -0
- package/src/lib/form/array/form-array-kind.js +8 -0
- package/src/lib/form/array/form-array-kind.js.map +1 -0
- package/src/lib/form/array/form-array.d.ts +12 -0
- package/src/lib/form/array/form-array.js +18 -0
- package/src/lib/form/array/form-array.js.map +1 -0
- package/src/lib/form/coerce-control-component-imports.d.ts +3 -0
- package/src/lib/form/coerce-control-component-imports.js +18 -0
- package/src/lib/form/coerce-control-component-imports.js.map +1 -0
- package/src/lib/form/control/autocomplete-table-select-form-control.d.ts +6 -0
- package/src/lib/form/control/autocomplete-table-select-form-control.js +34 -0
- package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -0
- package/src/lib/form/control/base-form-control.d.ts +14 -0
- package/src/lib/form/control/base-form-control.js +19 -0
- package/src/lib/form/control/base-form-control.js.map +1 -0
- package/src/lib/form/control/checkbox-form-control.d.ts +11 -0
- package/src/lib/form/control/checkbox-form-control.js +23 -0
- package/src/lib/form/control/checkbox-form-control.js.map +1 -0
- package/src/lib/form/control/form-control-kind.d.ts +9 -0
- package/src/lib/form/control/form-control-kind.js +14 -0
- package/src/lib/form/control/form-control-kind.js.map +1 -0
- package/src/lib/form/control/form-control.d.ts +18 -0
- package/src/lib/form/control/form-control.js +43 -0
- package/src/lib/form/control/form-control.js.map +1 -0
- package/src/lib/form/control/form-field-form-control.d.ts +33 -0
- package/src/lib/form/control/form-field-form-control.js +76 -0
- package/src/lib/form/control/form-field-form-control.js.map +1 -0
- package/src/lib/form/control/input-form-control.d.ts +14 -0
- package/src/lib/form/control/input-form-control.js +71 -0
- package/src/lib/form/control/input-form-control.js.map +1 -0
- package/src/lib/form/control/select-form-control.d.ts +18 -0
- package/src/lib/form/control/select-form-control.js +29 -0
- package/src/lib/form/control/select-form-control.js.map +1 -0
- package/src/lib/form/control/slide-toggle-form-control.d.ts +11 -0
- package/src/lib/form/control/slide-toggle-form-control.js +23 -0
- package/src/lib/form/control/slide-toggle-form-control.js.map +1 -0
- package/src/lib/form/control/table-select-form-control.d.ts +43 -0
- package/src/lib/form/control/table-select-form-control.js +69 -0
- package/src/lib/form/control/table-select-form-control.js.map +1 -0
- package/src/lib/form/control.d.ts +8 -0
- package/src/lib/form/control.js +38 -0
- package/src/lib/form/control.js.map +1 -0
- package/src/lib/form/generate-form-template.d.ts +2 -2
- package/src/lib/form/group/base-form-group.d.ts +17 -0
- package/src/lib/form/group/base-form-group.js +20 -0
- package/src/lib/form/group/base-form-group.js.map +1 -0
- package/src/lib/form/group/form-group-kind.d.ts +3 -0
- package/src/lib/form/group/form-group-kind.js +8 -0
- package/src/lib/form/group/form-group-kind.js.map +1 -0
- package/src/lib/form/group/form-group.d.ts +12 -0
- package/src/lib/form/group/form-group.js +18 -0
- package/src/lib/form/group/form-group.js.map +1 -0
- package/src/lib/table-column.d.ts +4 -3
- package/src/lib/table-column.js +5 -4
- package/src/lib/table-column.js.map +1 -1
- package/src/schema.json +1691 -1311
- package/src/schematic-input.schema.json +109 -156
- package/src/schematics/abstract-control.schema.json +78 -0
- package/src/schematics/accordion/accordion-component/schema.json +127 -127
- package/src/schematics/accordion/accordion-item-component/schema.json +18 -18
- package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +685 -81
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +76 -76
- package/src/schematics/accordion/item/accordion-item-table-component/schema.json +555 -97
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +537 -79
- package/src/schematics/autocomplete-table-select-form-control.schema.json +96 -0
- package/src/schematics/base-form-array.schema.json +45 -0
- package/src/schematics/base-form-control.schema.json +27 -0
- package/src/schematics/base-form-group.schema.json +42 -0
- package/src/schematics/checkbox-form-control.schema.json +30 -0
- package/src/schematics/control.schema.json +26 -0
- package/src/schematics/data-grid-component/index.js +4 -0
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +685 -81
- package/src/schematics/data-grid-item.schema.json +3 -3
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.d.ts +10 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +247 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/schema.d.ts +4 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +453 -0
- package/src/schematics/form/control/autocomplete-table-select-form-control/template.schema.json +39 -0
- package/src/schematics/form/control/input-form-control/index.d.ts +1 -1
- package/src/schematics/form/control/input-form-control/index.js +4 -4
- 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 -2
- package/src/schematics/form/control/input-form-control/schema.json +256 -86
- package/src/schematics/form/control/input-form-control/template.schema.json +16 -3
- package/src/schematics/form/control/select-form-control/index.d.ts +2 -2
- package/src/schematics/form/control/select-form-control/index.js +21 -14
- 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/schema.json +249 -90
- package/src/schematics/form/control/select-form-control/template.schema.json +16 -3
- package/src/schematics/form/control/table-select-form-control/index.d.ts +3 -9
- package/src/schematics/form/control/table-select-form-control/index.js +24 -18
- 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 -3
- package/src/schematics/form/control/table-select-form-control/schema.json +325 -123
- package/src/schematics/form/control/table-select-form-control/template.schema.json +16 -60
- package/src/schematics/form/form-array/index.d.ts +9 -0
- package/src/schematics/form/form-array/index.js +54 -0
- package/src/schematics/form/form-array/index.js.map +1 -0
- package/src/schematics/form/form-array/schema.d.ts +4 -0
- package/src/schematics/form/form-array/schema.json +906 -0
- package/src/schematics/form/form-array/template.schema.json +33 -0
- package/src/schematics/form/form-component/files/component/__componentName__.component.html.hbs +4 -1
- package/src/schematics/form/form-component/index.d.ts +2 -4
- package/src/schematics/form/form-component/index.js +8 -24
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.d.ts +2 -2
- package/src/schematics/form/form-component/schema.json +749 -86
- package/src/schematics/form/form-control/index.d.ts +3 -5
- package/src/schematics/form/form-control/index.js +8 -20
- package/src/schematics/form/form-control/index.js.map +1 -1
- package/src/schematics/form/form-control/schema.d.ts +2 -4
- package/src/schematics/form/form-control/schema.json +599 -59
- package/src/schematics/form/form-control/template.schema.json +1 -2
- package/src/schematics/form/form-definition/index.d.ts +2 -2
- package/src/schematics/form/form-definition/index.js +28 -15
- package/src/schematics/form/form-definition/index.js.map +1 -1
- package/src/schematics/form/form-definition/schema.d.ts +2 -2
- package/src/schematics/form/form-definition/schema.json +743 -56
- package/src/schematics/form/form-group/index.d.ts +9 -0
- package/src/schematics/form/form-group/index.js +54 -0
- package/src/schematics/form/form-group/index.js.map +1 -0
- package/src/schematics/form/form-group/schema.d.ts +4 -0
- package/src/schematics/form/form-group/schema.json +906 -0
- package/src/schematics/form/form-group/template.schema.json +33 -0
- package/src/schematics/form/templates/checkbox-form-control.hbs +1 -1
- package/src/schematics/form/templates/default-form-array.hbs +27 -0
- package/src/schematics/form/templates/default-form-group.hbs +13 -0
- package/src/schematics/form/templates/input-form-control.hbs +7 -7
- package/src/schematics/form/templates/select-form-control.hbs +5 -0
- package/src/schematics/form/templates/table-select-form-control.hbs +16 -16
- package/src/schematics/form-array.schema.json +40 -0
- package/src/schematics/form-control.schema.json +69 -54
- package/src/schematics/form-definition.schema.json +3 -3
- package/src/schematics/form-group.schema.json +40 -0
- package/src/schematics/input-form-control.schema.json +10 -6
- package/src/schematics/select-form-control.schema.json +8 -4
- package/src/schematics/slide-toggle-form-control.schema.json +30 -0
- package/src/schematics/table/action/dialog-table-action/schema.json +20 -20
- package/src/schematics/table/action/form-table-action/index.d.ts +2 -2
- package/src/schematics/table/action/form-table-action/index.js +3 -4
- package/src/schematics/table/action/form-table-action/index.js.map +1 -1
- package/src/schematics/table/action/form-table-action/schema.d.ts +2 -2
- package/src/schematics/table/action/form-table-action/schema.json +750 -87
- package/src/schematics/table/action/navigation-table-action/schema.json +20 -20
- package/src/schematics/table/action/open-api-table-action/schema.json +20 -20
- package/src/schematics/table/action/operation-table-action/schema.json +20 -20
- package/src/schematics/table/header-button/form-table-header-button/index.d.ts +2 -2
- package/src/schematics/table/header-button/form-table-header-button/index.js +2 -2
- 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 +2 -2
- package/src/schematics/table/header-button/form-table-header-button/schema.json +818 -81
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +4 -22
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +20 -20
- package/src/schematics/table/table-action/schema.json +47 -47
- package/src/schematics/table/table-component/index.d.ts +2 -2
- package/src/schematics/table/table-component/schema.json +537 -79
- package/src/schematics/table/table-header-button/schema.json +40 -40
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +1 -1
- package/src/schematics/table/tree-table-component/schema.json +521 -63
- package/src/schematics/table-select-form-control.schema.json +96 -0
- package/src/schematics/textarea-form-control.schema.json +32 -0
- package/src/template.schema.json +45 -0
- package/src/lib/form-component-control.d.ts +0 -8
- package/src/lib/form-component-control.js +0 -15
- package/src/lib/form-component-control.js.map +0 -1
- package/src/lib/form-control.d.ts +0 -136
- package/src/lib/form-control.js +0 -265
- package/src/lib/form-control.js.map +0 -1
- package/src/lib/form-definition-control.d.ts +0 -5
- package/src/lib/form-definition-control.js +0 -30
- package/src/lib/form-definition-control.js.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "form-group-schematic",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/formGroup"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"formName": {
|
|
15
|
+
"alias": "form",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the form where the form control should be added"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": [
|
|
21
|
+
"formName"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"definitions": {
|
|
26
|
+
"angular": {
|
|
27
|
+
"$ref": "../../angular.schema.json"
|
|
28
|
+
},
|
|
29
|
+
"formGroup": {
|
|
30
|
+
"$ref": "../../form-group.schema.json"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
<fieldset
|
|
3
|
+
formArrayName="{{control.name}}"
|
|
4
|
+
class="flex flex-col gap-3 border border-solid border-gray-300 p-3"
|
|
5
|
+
{{#if parentControlContainer}}parentControlContainer{{/if~}}
|
|
6
|
+
>
|
|
7
|
+
{{#if control.legend}}
|
|
8
|
+
<legend class="text-sm" i18n>{{control.legend}}</legend>
|
|
9
|
+
{{/if}}
|
|
10
|
+
<button i18n mat-stroked-button rxapFormArrayItemAddButton>Add new entry</button>
|
|
11
|
+
<ng-container *rxapForFormArrayItem="let group">
|
|
12
|
+
<fieldset [formGroup]="group" class="flex flex-row gap-4 items-center border border-solid border-gray-300 p-3" rxapFormArrayRemovable>
|
|
13
|
+
{{#if control.groupLegend}}
|
|
14
|
+
<legend class="text-sm" i18n>{{control.groupLegend}}</legend>
|
|
15
|
+
{{/if}}
|
|
16
|
+
{{#each control.controlList}}
|
|
17
|
+
{{indent (compile this.handlebars control=this prefix=../prefix) 6}}
|
|
18
|
+
{{/each}}
|
|
19
|
+
<button color="warn" mat-icon-button rxapFormArrayItemRemoveButton>
|
|
20
|
+
<mat-icon>do_not_disturb_on</mat-icon>
|
|
21
|
+
</button>
|
|
22
|
+
<button color="accent" mat-icon-button rxapFormArrayItemRestoreButton>
|
|
23
|
+
<mat-icon>settings_backup_restore</mat-icon>
|
|
24
|
+
</button>
|
|
25
|
+
</fieldset>
|
|
26
|
+
</ng-container>
|
|
27
|
+
</fieldset>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
|
|
2
|
+
<fieldset
|
|
3
|
+
formGroupName="{{control.name}}"
|
|
4
|
+
class="flex flex-col gap-3 border border-solid border-gray-300 p-3"
|
|
5
|
+
{{#if parentControlContainer}}parentControlContainer{{/if~}}
|
|
6
|
+
>
|
|
7
|
+
{{#if control.legend}}
|
|
8
|
+
<legend class="text-sm" i18n>{{control.legend}}</legend>
|
|
9
|
+
{{/if}}
|
|
10
|
+
{{#each control.controlList}}
|
|
11
|
+
{{indent (compile this.handlebars control=this prefix=../prefix) 2}}
|
|
12
|
+
{{/each}}
|
|
13
|
+
</fieldset>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{{#> matFormField control=control}}
|
|
2
|
-
<input
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/>
|
|
2
|
+
<input
|
|
3
|
+
matInput
|
|
4
|
+
formControlName="{{control.name}}"
|
|
5
|
+
type="{{control.inputType}}"
|
|
6
|
+
{{#if parentControlContainer}}parentControlContainer{{/if~}}
|
|
7
|
+
{{#if control.placeholder}}i18n-placeholder placeholder="{{control.placeholder}}"{{/if~}}
|
|
8
|
+
/>
|
|
9
9
|
{{/matFormField}}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{{#> matFormField control=control}}
|
|
2
|
+
<mat-select formControlName="{{control.name}}"{{#if parentControlContainer}} parentControlContainer{{/if}}>
|
|
3
|
+
<mat-option *rxapInputSelectOptions="let option" [value]="option.value">\{{option.display}}</mat-option>
|
|
4
|
+
</mat-select>
|
|
5
|
+
{{/matFormField}}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{{#> matFormField control=control}}
|
|
2
|
-
<eurogard-table-select-input
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
>
|
|
8
|
-
</eurogard-table-select-input>
|
|
9
|
-
<button
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
>
|
|
16
|
-
|
|
17
|
-
</button>
|
|
2
|
+
<eurogard-table-select-input
|
|
3
|
+
eurogardOpenTableSelectWindow
|
|
4
|
+
formControlName="{{control.name}}"
|
|
5
|
+
{{#if control.title}}i18n-label label="{{control.title}}"{{/if~}}
|
|
6
|
+
{{#if parentControlContainer}}parentControlContainer{{/if~}}
|
|
7
|
+
>
|
|
8
|
+
</eurogard-table-select-input>
|
|
9
|
+
<button
|
|
10
|
+
eurogardOpenTableSelectWindow
|
|
11
|
+
mat-icon-button
|
|
12
|
+
matPrefix
|
|
13
|
+
tabindex="-1"
|
|
14
|
+
{{#if control.title}}i18n-label label="{{control.title}}"{{/if~}}
|
|
15
|
+
>
|
|
16
|
+
<mat-icon svgIcon="table-eye"></mat-icon>
|
|
17
|
+
</button>
|
|
18
18
|
{{/matFormField}}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "form-array",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"role": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "array"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"oneOf": [
|
|
16
|
+
{
|
|
17
|
+
"allOf": [
|
|
18
|
+
{
|
|
19
|
+
"$ref": "#/definitions/baseFormArray"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"kind": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"const": "default"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"definitions": {
|
|
36
|
+
"baseFormArray": {
|
|
37
|
+
"$ref": "./base-form-array.schema.json"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -1,68 +1,83 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/schema",
|
|
3
3
|
"$id": "form-control",
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"role": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "control",
|
|
11
|
+
"default": "control"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
9
14
|
},
|
|
10
|
-
|
|
11
|
-
"
|
|
15
|
+
{
|
|
16
|
+
"oneOf": [
|
|
17
|
+
{
|
|
18
|
+
"allOf": [
|
|
19
|
+
{
|
|
20
|
+
"$ref": "#/definitions/baseFormControl"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"type": "object",
|
|
24
|
+
"properties": {
|
|
25
|
+
"kind": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"const": "default"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"$ref": "#/definitions/inputFormControl"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"$ref": "#/definitions/selectFormControl"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"$ref": "#/definitions/checkboxFormControl"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"$ref": "#/definitions/textareaFormControl"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"$ref": "#/definitions/tableSelectFormControl"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"$ref": "#/definitions/slideToggleFormControl"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"$ref": "#/definitions/autocompleteTableSelectFormControl"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
],
|
|
57
|
+
"definitions": {
|
|
58
|
+
"baseFormControl": {
|
|
59
|
+
"$ref": "./base-form-control.schema.json"
|
|
12
60
|
},
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"description": "Whether the control value is an array",
|
|
16
|
-
"default": false
|
|
61
|
+
"inputFormControl": {
|
|
62
|
+
"$ref": "./input-form-control.schema.json"
|
|
17
63
|
},
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"description": "The initial state of the control"
|
|
64
|
+
"selectFormControl": {
|
|
65
|
+
"$ref": "./select-form-control.schema.json"
|
|
21
66
|
},
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"description": "Whether the control value is required",
|
|
25
|
-
"default": false
|
|
67
|
+
"checkboxFormControl": {
|
|
68
|
+
"$ref": "./checkbox-form-control.schema.json"
|
|
26
69
|
},
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"description": "Whether the control value is readonly",
|
|
30
|
-
"default": false
|
|
70
|
+
"textareaFormControl": {
|
|
71
|
+
"$ref": "./textarea-form-control.schema.json"
|
|
31
72
|
},
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"description": "Whether the control value is disabled",
|
|
35
|
-
"default": false
|
|
73
|
+
"tableSelectFormControl": {
|
|
74
|
+
"$ref": "./table-select-form-control.schema.json"
|
|
36
75
|
},
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"items": {
|
|
40
|
-
"type": "string"
|
|
41
|
-
}
|
|
76
|
+
"autocompleteTableSelectFormControl": {
|
|
77
|
+
"$ref": "./autocomplete-table-select-form-control.schema.json"
|
|
42
78
|
},
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"description": "The name of the template",
|
|
46
|
-
"enum": [
|
|
47
|
-
"default",
|
|
48
|
-
"input",
|
|
49
|
-
"select",
|
|
50
|
-
"checkbox",
|
|
51
|
-
"autocomplete-table-select",
|
|
52
|
-
"table-select",
|
|
53
|
-
"textarea",
|
|
54
|
-
"slide-toggle"
|
|
55
|
-
],
|
|
56
|
-
"default": "default"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"required": [
|
|
60
|
-
"name"
|
|
61
|
-
],
|
|
62
|
-
"additionalProperties": true,
|
|
63
|
-
"definitions": {
|
|
64
|
-
"type": {
|
|
65
|
-
"$ref": "./type.schema.json"
|
|
79
|
+
"slideToggleFormControl": {
|
|
80
|
+
"$ref": "./slide-toggle-form-control.schema.json"
|
|
66
81
|
}
|
|
67
82
|
}
|
|
68
83
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"alias": "control",
|
|
8
8
|
"type": "array",
|
|
9
9
|
"items": {
|
|
10
|
-
"$ref": "#/definitions/
|
|
10
|
+
"$ref": "#/definitions/control"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
},
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"controlList"
|
|
16
16
|
],
|
|
17
17
|
"definitions": {
|
|
18
|
-
"
|
|
19
|
-
"$ref": "./
|
|
18
|
+
"control": {
|
|
19
|
+
"$ref": "./control.schema.json"
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "form-group",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"role": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "group"
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"oneOf": [
|
|
16
|
+
{
|
|
17
|
+
"allOf": [
|
|
18
|
+
{
|
|
19
|
+
"$ref": "#/definitions/baseFormGroup"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"kind": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"const": "default"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
}
|
|
34
|
+
],
|
|
35
|
+
"definitions": {
|
|
36
|
+
"baseFormGroup": {
|
|
37
|
+
"$ref": "./base-form-group.schema.json"
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -3,11 +3,18 @@
|
|
|
3
3
|
"$id": "input-form-control",
|
|
4
4
|
"allOf": [
|
|
5
5
|
{
|
|
6
|
-
"$ref": "#/definitions/
|
|
6
|
+
"$ref": "#/definitions/baseFormControl"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"type": "object",
|
|
10
10
|
"properties": {
|
|
11
|
+
"kind": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "input"
|
|
14
|
+
},
|
|
15
|
+
"formField": {
|
|
16
|
+
"$ref": "#/definitions/formField"
|
|
17
|
+
},
|
|
11
18
|
"inputType": {
|
|
12
19
|
"type": "string",
|
|
13
20
|
"enum": [
|
|
@@ -37,9 +44,6 @@
|
|
|
37
44
|
},
|
|
38
45
|
"placeholder": {
|
|
39
46
|
"type": "string"
|
|
40
|
-
},
|
|
41
|
-
"formField": {
|
|
42
|
-
"$ref": "#/definitions/formField"
|
|
43
47
|
}
|
|
44
48
|
}
|
|
45
49
|
}
|
|
@@ -48,8 +52,8 @@
|
|
|
48
52
|
"formField": {
|
|
49
53
|
"$ref": "./form-field.schema.json"
|
|
50
54
|
},
|
|
51
|
-
"
|
|
52
|
-
"$ref": "./form-control.schema.json"
|
|
55
|
+
"baseFormControl": {
|
|
56
|
+
"$ref": "./base-form-control.schema.json"
|
|
53
57
|
}
|
|
54
58
|
}
|
|
55
59
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "select-form-control",
|
|
4
4
|
"allOf": [
|
|
5
5
|
{
|
|
6
|
-
"$ref": "#/definitions/
|
|
6
|
+
"$ref": "#/definitions/baseFormControl"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"type": "object",
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
"formField": {
|
|
12
12
|
"$ref": "#/definitions/formField"
|
|
13
13
|
},
|
|
14
|
-
"
|
|
14
|
+
"kind": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "select"
|
|
17
|
+
},
|
|
18
|
+
"optionList": {
|
|
15
19
|
"type": "array",
|
|
16
20
|
"items": {
|
|
17
21
|
"type": "object",
|
|
@@ -57,8 +61,8 @@
|
|
|
57
61
|
"formField": {
|
|
58
62
|
"$ref": "./form-field.schema.json"
|
|
59
63
|
},
|
|
60
|
-
"
|
|
61
|
-
"$ref": "./form-control.schema.json"
|
|
64
|
+
"baseFormControl": {
|
|
65
|
+
"$ref": "./base-form-control.schema.json"
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
68
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/schema",
|
|
3
|
+
"$id": "slide-toggle-form-control",
|
|
4
|
+
"allOf": [
|
|
5
|
+
{
|
|
6
|
+
"$ref": "#/definitions/baseFormControl"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"kind": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"const": "slide-toggle"
|
|
14
|
+
},
|
|
15
|
+
"labelPosition": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"enum": [
|
|
18
|
+
"before",
|
|
19
|
+
"after"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
],
|
|
25
|
+
"definitions": {
|
|
26
|
+
"baseFormControl": {
|
|
27
|
+
"$ref": "./base-form-control.schema.json"
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -51,26 +51,6 @@
|
|
|
51
51
|
}
|
|
52
52
|
],
|
|
53
53
|
"definitions": {
|
|
54
|
-
"tableActionSchematic": {
|
|
55
|
-
"allOf": [
|
|
56
|
-
{
|
|
57
|
-
"$ref": "#/definitions/angular"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"$ref": "#/definitions/tableAction"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
"type": "object",
|
|
64
|
-
"properties": {
|
|
65
|
-
"tableName": {
|
|
66
|
-
"alias": "table",
|
|
67
|
-
"type": "string",
|
|
68
|
-
"description": "The name of the table action"
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
},
|
|
74
54
|
"angular": {
|
|
75
55
|
"allOf": [
|
|
76
56
|
{
|
|
@@ -227,6 +207,26 @@
|
|
|
227
207
|
"required": [
|
|
228
208
|
"type"
|
|
229
209
|
]
|
|
210
|
+
},
|
|
211
|
+
"tableActionSchematic": {
|
|
212
|
+
"allOf": [
|
|
213
|
+
{
|
|
214
|
+
"$ref": "#/definitions/angular"
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"$ref": "#/definitions/tableAction"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"type": "object",
|
|
221
|
+
"properties": {
|
|
222
|
+
"tableName": {
|
|
223
|
+
"alias": "table",
|
|
224
|
+
"type": "string",
|
|
225
|
+
"description": "The name of the table action"
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
]
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Rule, Tree } from '@angular-devkit/schematics';
|
|
2
2
|
import { Normalized } from '@rxap/utilities';
|
|
3
3
|
import { OptionalKind, SourceFile, TypeAliasDeclarationStructure } from 'ts-morph';
|
|
4
|
-
import {
|
|
4
|
+
import { NormalizedControl } from '../../../../lib/form/control';
|
|
5
5
|
import { NormalizedOperationTableActionOptions } from '../operation-table-action';
|
|
6
6
|
import { FormTableActionOptions } from './schema';
|
|
7
7
|
export interface NormalizedFormTableActionOptions extends Omit<Readonly<Normalized<FormTableActionOptions> & NormalizedOperationTableActionOptions>, 'formOptions'> {
|
|
8
8
|
formComponent: string;
|
|
9
9
|
formOptions: {
|
|
10
|
-
controlList: ReadonlyArray<
|
|
10
|
+
controlList: ReadonlyArray<NormalizedControl>;
|
|
11
11
|
role: string | null;
|
|
12
12
|
window: boolean;
|
|
13
13
|
};
|
|
@@ -9,8 +9,7 @@ const path_1 = require("path");
|
|
|
9
9
|
const angular_options_1 = require("../../../../lib/angular-options");
|
|
10
10
|
const assert_table_component_exists_1 = require("../../../../lib/assert-table-component-exists");
|
|
11
11
|
const backend_types_1 = require("../../../../lib/backend-types");
|
|
12
|
-
const
|
|
13
|
-
const index_1 = require("../../../form/form-component/index");
|
|
12
|
+
const control_1 = require("../../../../lib/form/control");
|
|
14
13
|
const operation_table_action_1 = require("../operation-table-action");
|
|
15
14
|
function NormalizeFormTableActionOptions(options) {
|
|
16
15
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
@@ -25,7 +24,7 @@ function NormalizeFormTableActionOptions(options) {
|
|
|
25
24
|
}), formComponent: (0, utilities_1.CoerceSuffix)((0, utilities_1.dasherize)((_d = options.formComponent) !== null && _d !== void 0 ? _d : type), '-form'), loadFrom: Object.keys(loadFrom !== null && loadFrom !== void 0 ? loadFrom : {}).length ? loadFrom : null, formInitial: Object.keys(formInitial !== null && formInitial !== void 0 ? formInitial : {}).length ? formInitial : null, customComponent: (_e = options.customComponent) !== null && _e !== void 0 ? _e : false, formOptions: {
|
|
26
25
|
window: (_f = formOptions.window) !== null && _f !== void 0 ? _f : true,
|
|
27
26
|
role: (_g = formOptions.role) !== null && _g !== void 0 ? _g : type,
|
|
28
|
-
controlList: (0,
|
|
27
|
+
controlList: (0, control_1.NormalizeControlList)(formOptions.controlList),
|
|
29
28
|
} });
|
|
30
29
|
}
|
|
31
30
|
exports.NormalizeFormTableActionOptions = NormalizeFormTableActionOptions;
|
|
@@ -78,7 +77,7 @@ function nestjsBackendRule(normalizedOptions) {
|
|
|
78
77
|
const { className, filePath, } = (0, schematics_ts_morph_1.CoerceDtoClass)({
|
|
79
78
|
project,
|
|
80
79
|
name: controllerName,
|
|
81
|
-
propertyList: (_b = (_a = normalizedOptions.formOptions) === null || _a === void 0 ? void 0 : _a.controlList.map(control => (0,
|
|
80
|
+
propertyList: (_b = (_a = normalizedOptions.formOptions) === null || _a === void 0 ? void 0 : _a.controlList.map(control => (0, control_1.ControlToDtoClassProperty)(control))) !== null && _b !== void 0 ? _b : [],
|
|
82
81
|
});
|
|
83
82
|
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
84
83
|
namedImports: [className],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/form-table-action/index.ts"],"names":[],"mappings":";;;AAAA,2DAKoC;AACpC,mEAemC;AACnC,qEAA8D;AAC9D,+CAKyB;AACzB,+BAA4B;AAO5B,qEAAsE;AACtE,iGAA2F;AAC3F,iEAA6D;AAC7D,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/schematic/angular/src/schematics/table/action/form-table-action/index.ts"],"names":[],"mappings":";;;AAAA,2DAKoC;AACpC,mEAemC;AACnC,qEAA8D;AAC9D,+CAKyB;AACzB,+BAA4B;AAO5B,qEAAsE;AACtE,iGAA2F;AAC3F,iEAA6D;AAC7D,0DAIsC;AACtC,sEAGmC;AAcnC,SAAgB,+BAA+B,CAC7C,OAAyC;;IAEzC,MAAM,iBAAiB,GAAG,IAAA,6DAAoC,EAAC,OAAO,CAAC,CAAC;IACxE,MAAM,EACJ,cAAc,EACd,IAAI,EACJ,UAAU,EACV,SAAS,GACV,GAAG,iBAAiB,CAAC;IACtB,MAAM,QAAQ,GAAG,MAAA,OAAO,CAAC,QAAQ,mCAAI,IAAI,CAAC;IAC1C,MAAM,WAAW,GAAG,MAAA,OAAO,CAAC,WAAW,mCAAI,IAAI,CAAC;IAChD,MAAM,WAAW,GAAG,MAAA,OAAO,CAAC,WAAW,mCAAI,EAAE,CAAC;IAC9C,uCACK,iBAAiB,KACpB,cAAc,EAAE,IAAA,6CAAuB,EAAC;YACtC,UAAU;YACV,cAAc,EAAE,CAAE,IAAI,EAAE,QAAQ,CAAE,CAAC,IAAI,CAAC,GAAG,CAAC;SAC7C,CAAC,EACF,aAAa,EAAE,IAAA,wBAAY,EAAC,IAAA,qBAAS,EAAC,MAAA,OAAO,CAAC,aAAa,mCAAI,IAAI,CAAC,EAAE,OAAO,CAAC,EAC9E,QAAQ,EAAE,MAAM,CAAC,IAAI,CAAC,Q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,EAAC,aAAa,CAAE,cAAc,CAAE;yBACjE;qBACF,CACF,CAAC;gBACJ,CAAC;aACF,CAAC;SACH,CAAC;QAEF,IAAI,CAAC,eAAe,EAAE;YACpB,QAAQ,CAAC,IAAI,CACX,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,CAAC,EAClD,IAAA,uCAAgB,EAAC,gBAAgB,kCAC5B,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,EAAE,KACpB,OAAO,EACP,IAAI,EAAE,aAAa,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,EACzC,OAAO;gBACP,SAAS;gBACT,MAAM;gBACN,UAAU;gBACV,cAAc;gBACd,SAAS;gBACT,OAAO;gBACP,OAAO,IACP,EACF,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,CAAC,EAC3C,WAAW,CAAC,iBAAiB,CAAC,CAC/B,CAAC;SACH;QAED,QAAQ,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC;QAExC,OAAO,IAAA,kBAAK,EAAC,QAAQ,CAAC,CAAC;IACzB,CAAC,CAAC;AACJ,CAAC;AA3GD,4BA2GC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LoadFromTableActionOptions } from '@rxap/schematics-ts-morph';
|
|
2
|
-
import {
|
|
2
|
+
import { Control } from '../../../../lib/form/control';
|
|
3
3
|
import { OperationTableActionOptions } from '../operation-table-action/schema';
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
@@ -9,7 +9,7 @@ export interface FormTableActionOptions extends OperationTableActionOptions {
|
|
|
9
9
|
formComponent?: string;
|
|
10
10
|
customComponent: boolean;
|
|
11
11
|
formOptions?: {
|
|
12
|
-
controlList?: Array<
|
|
12
|
+
controlList?: Array<Control>;
|
|
13
13
|
role?: string;
|
|
14
14
|
window?: boolean;
|
|
15
15
|
};
|