@rxap/schematic-angular 16.2.0-dev.20 → 16.2.0-dev.21
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 +13 -0
- package/README.md +1 -1
- package/collection.json +10 -0
- package/package.json +4 -4
- 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/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 +8 -0
- package/src/lib/form/control/form-control-kind.js +13 -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 +40 -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 +1673 -1415
- package/src/schematic-input.schema.json +90 -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 +602 -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 +486 -111
- package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +458 -83
- 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 +602 -81
- package/src/schematics/data-grid-item.schema.json +3 -3
- 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 +823 -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 +666 -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 +519 -62
- 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 +664 -60
- 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 +823 -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 +64 -55
- 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 +667 -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 +735 -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 +470 -95
- 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 +453 -78
- 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 +39 -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
|
@@ -17,35 +17,17 @@
|
|
|
17
17
|
"description": "If true the schematic will not coerce the form component"
|
|
18
18
|
},
|
|
19
19
|
"formOptions": {
|
|
20
|
-
"
|
|
21
|
-
"properties": {
|
|
22
|
-
"role": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"description": "Define the role of the form"
|
|
25
|
-
},
|
|
26
|
-
"window": {
|
|
27
|
-
"type": "boolean",
|
|
28
|
-
"description": "Whether the form can be opened in a window"
|
|
29
|
-
},
|
|
30
|
-
"controlList": {
|
|
31
|
-
"alias": "control",
|
|
32
|
-
"type": "array",
|
|
33
|
-
"items": {
|
|
34
|
-
"$ref": "#/definitions/formControl"
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"additionalProperties": true
|
|
20
|
+
"$ref": "#/definitions/formComponent"
|
|
39
21
|
}
|
|
40
22
|
}
|
|
41
23
|
}
|
|
42
24
|
],
|
|
43
25
|
"definitions": {
|
|
44
|
-
"formControl": {
|
|
45
|
-
"$ref": "../../../form-control.schema.json"
|
|
46
|
-
},
|
|
47
26
|
"tableHeaderButtonSchematic": {
|
|
48
27
|
"$ref": "../../table-header-button/template.schema.json"
|
|
28
|
+
},
|
|
29
|
+
"formComponent": {
|
|
30
|
+
"$ref": "../../../form-component.schema.json"
|
|
49
31
|
}
|
|
50
32
|
}
|
|
51
33
|
}
|
|
@@ -21,26 +21,6 @@
|
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
23
|
"definitions": {
|
|
24
|
-
"tableHeaderButtonSchematic": {
|
|
25
|
-
"allOf": [
|
|
26
|
-
{
|
|
27
|
-
"$ref": "#/definitions/angular"
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"$ref": "#/definitions/headerButton"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
"type": "object",
|
|
34
|
-
"properties": {
|
|
35
|
-
"tableName": {
|
|
36
|
-
"alias": "table",
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "The name of the table action"
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
24
|
"angular": {
|
|
45
25
|
"allOf": [
|
|
46
26
|
{
|
|
@@ -178,6 +158,26 @@
|
|
|
178
158
|
"additionalProperties": true
|
|
179
159
|
}
|
|
180
160
|
}
|
|
161
|
+
},
|
|
162
|
+
"tableHeaderButtonSchematic": {
|
|
163
|
+
"allOf": [
|
|
164
|
+
{
|
|
165
|
+
"$ref": "#/definitions/angular"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"$ref": "#/definitions/headerButton"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"type": "object",
|
|
172
|
+
"properties": {
|
|
173
|
+
"tableName": {
|
|
174
|
+
"alias": "table",
|
|
175
|
+
"type": "string",
|
|
176
|
+
"description": "The name of the table action"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
}
|
|
@@ -71,6 +71,53 @@
|
|
|
71
71
|
}
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
|
+
"backend": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "The backend that should be used to handel data",
|
|
77
|
+
"enum": [
|
|
78
|
+
"none",
|
|
79
|
+
"nestjs",
|
|
80
|
+
"open-api",
|
|
81
|
+
"local"
|
|
82
|
+
],
|
|
83
|
+
"default": "none"
|
|
84
|
+
},
|
|
85
|
+
"general": {
|
|
86
|
+
"type": "object",
|
|
87
|
+
"properties": {
|
|
88
|
+
"project": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "Project name where the files should be generated"
|
|
91
|
+
},
|
|
92
|
+
"feature": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "Feature name where the files should be generated"
|
|
95
|
+
},
|
|
96
|
+
"overwrite": {
|
|
97
|
+
"anyOf": [
|
|
98
|
+
{
|
|
99
|
+
"type": "boolean"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"type": "array",
|
|
103
|
+
"items": {
|
|
104
|
+
"type": "string"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
],
|
|
108
|
+
"description": "Overwrite existing files",
|
|
109
|
+
"default": false
|
|
110
|
+
},
|
|
111
|
+
"overwriteHtml": {
|
|
112
|
+
"type": "boolean",
|
|
113
|
+
"default": false
|
|
114
|
+
},
|
|
115
|
+
"replace": {
|
|
116
|
+
"type": "boolean",
|
|
117
|
+
"default": false
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
},
|
|
74
121
|
"tableAction": {
|
|
75
122
|
"type": "object",
|
|
76
123
|
"properties": {
|
|
@@ -129,53 +176,6 @@
|
|
|
129
176
|
"required": [
|
|
130
177
|
"type"
|
|
131
178
|
]
|
|
132
|
-
},
|
|
133
|
-
"backend": {
|
|
134
|
-
"type": "string",
|
|
135
|
-
"description": "The backend that should be used to handel data",
|
|
136
|
-
"enum": [
|
|
137
|
-
"none",
|
|
138
|
-
"nestjs",
|
|
139
|
-
"open-api",
|
|
140
|
-
"local"
|
|
141
|
-
],
|
|
142
|
-
"default": "none"
|
|
143
|
-
},
|
|
144
|
-
"general": {
|
|
145
|
-
"type": "object",
|
|
146
|
-
"properties": {
|
|
147
|
-
"project": {
|
|
148
|
-
"type": "string",
|
|
149
|
-
"description": "Project name where the files should be generated"
|
|
150
|
-
},
|
|
151
|
-
"feature": {
|
|
152
|
-
"type": "string",
|
|
153
|
-
"description": "Feature name where the files should be generated"
|
|
154
|
-
},
|
|
155
|
-
"overwrite": {
|
|
156
|
-
"anyOf": [
|
|
157
|
-
{
|
|
158
|
-
"type": "boolean"
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
"type": "array",
|
|
162
|
-
"items": {
|
|
163
|
-
"type": "string"
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"description": "Overwrite existing files",
|
|
168
|
-
"default": false
|
|
169
|
-
},
|
|
170
|
-
"overwriteHtml": {
|
|
171
|
-
"type": "boolean",
|
|
172
|
-
"default": false
|
|
173
|
-
},
|
|
174
|
-
"replace": {
|
|
175
|
-
"type": "boolean",
|
|
176
|
-
"default": false
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import {
|
|
2
|
+
import { AbstractControl } from '@rxap/schematics-ts-morph';
|
|
3
3
|
import { Normalized } from '@rxap/utilities';
|
|
4
4
|
import { NormalizedAngularOptions } from '../../../lib/angular-options';
|
|
5
5
|
import { NormalizedTableColumn } from '../../../lib/table-column';
|
|
@@ -10,5 +10,5 @@ export interface NormalizedTableComponentOptions extends Readonly<Normalized<Omi
|
|
|
10
10
|
readonly controllerName: string;
|
|
11
11
|
}
|
|
12
12
|
export declare function NormalizeTableComponentOptions(options: Readonly<TableComponentOptions>): NormalizedTableComponentOptions;
|
|
13
|
-
export declare function TableColumnToFormControl(column: NormalizedTableColumn):
|
|
13
|
+
export declare function TableColumnToFormControl(column: NormalizedTableColumn): AbstractControl;
|
|
14
14
|
export default function (options: TableComponentOptions): () => Rule;
|