@rxap/schematic-angular 16.2.0-dev.14 → 16.2.0-dev.16
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 +27 -0
- package/README.md +1 -1
- package/package.json +8 -8
- package/src/lib/accordion-identifier.d.ts +4 -0
- package/src/lib/accordion-identifier.js.map +1 -1
- package/src/lib/accordion-item.d.ts +13 -6
- package/src/lib/accordion-item.js +19 -4
- package/src/lib/accordion-item.js.map +1 -1
- package/src/lib/coerce-accordion-component.js +1 -1
- package/src/lib/coerce-accordion-component.js.map +1 -1
- package/src/lib/coerce-accordion-item-table-component.js +1 -1
- package/src/lib/coerce-accordion-item-table-component.js.map +1 -1
- package/src/lib/data-grid-options.d.ts +9 -1
- package/src/lib/data-grid-options.js +36 -6
- package/src/lib/data-grid-options.js.map +1 -1
- package/src/lib/form-control.d.ts +9 -3
- package/src/lib/form-control.js +19 -54
- package/src/lib/form-control.js.map +1 -1
- package/src/lib/merge-with-column-list.js +3 -1
- package/src/lib/merge-with-column-list.js.map +1 -1
- package/src/lib/minimum-table-component-options.js +2 -2
- package/src/lib/minimum-table-component-options.js.map +1 -1
- package/src/lib/pipe-option.js +0 -2
- package/src/lib/pipe-option.js.map +1 -1
- package/src/lib/table-column.d.ts +9 -5
- package/src/lib/table-column.js +36 -60
- package/src/lib/table-column.js.map +1 -1
- package/src/schema.json +2368 -0
- package/src/schematic-input.schema.json +607 -0
- package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
- package/src/schematics/accordion/accordion-component/index.js +51 -25
- package/src/schematics/accordion/accordion-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
- package/src/schematics/accordion/accordion-component/schema.json +183 -360
- package/src/schematics/accordion/accordion-component/template.schema.json +22 -25
- package/src/schematics/accordion/accordion-item-component/index.d.ts +7 -2
- package/src/schematics/accordion/accordion-item-component/index.js +70 -49
- package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
- package/src/schematics/accordion/accordion-item-component/schema.json +167 -336
- package/src/schematics/accordion/accordion-item-component/template.schema.json +8 -15
- 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 +21 -25
- 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 +331 -429
- package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +9 -15
- 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 +14 -6
- package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
- package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +174 -346
- package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +6 -15
- 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 +11 -13
- 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 +453 -614
- package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +9 -18
- 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 +37 -61
- 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 +431 -592
- package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +10 -19
- package/src/schematics/accordion-identifier.schema.json +25 -0
- package/src/schematics/accordion-item.schema.json +24 -0
- package/src/schematics/angular.schema.json +11 -3
- package/src/schematics/button.schema.json +1 -1
- package/src/schematics/data-grid-component/index.d.ts +2 -3
- package/src/schematics/data-grid-component/index.js +42 -45
- package/src/schematics/data-grid-component/index.js.map +1 -1
- package/src/schematics/data-grid-component/schema.json +261 -375
- package/src/schematics/data-grid-component/template.schema.json +6 -15
- package/src/schematics/data-grid-item.schema.json +4 -1
- package/src/schematics/data-grid.schema.json +26 -4
- package/src/schematics/dialog-component/schema.json +72 -158
- package/src/schematics/dialog-component/template.schema.json +3 -6
- package/src/schematics/form/control/input-form-control/schema.json +108 -306
- package/src/schematics/form/control/input-form-control/template.schema.json +6 -9
- package/src/schematics/form/control/select-form-control/schema.json +120 -307
- package/src/schematics/form/control/select-form-control/template.schema.json +6 -9
- package/src/schematics/form/control/table-select-form-control/index.d.ts +7 -1
- package/src/schematics/form/control/table-select-form-control/index.js +195 -149
- package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
- package/src/schematics/form/control/table-select-form-control/schema.json +101 -296
- package/src/schematics/form/control/table-select-form-control/template.schema.json +11 -6
- package/src/schematics/form/form-component/index.d.ts +2 -0
- package/src/schematics/form/form-component/index.js +6 -4
- package/src/schematics/form/form-component/index.js.map +1 -1
- package/src/schematics/form/form-component/schema.d.ts +3 -1
- package/src/schematics/form/form-component/schema.json +176 -233
- package/src/schematics/form/form-component/template.schema.json +6 -9
- package/src/schematics/form/form-control/schema.json +68 -176
- package/src/schematics/form/form-control/template.schema.json +6 -9
- package/src/schematics/form/form-definition/schema.json +125 -230
- package/src/schematics/form/form-definition/template.schema.json +6 -9
- package/src/schematics/form-component.schema.json +9 -3
- package/src/schematics/form-definition.schema.json +3 -3
- package/src/schematics/general.schema.json +1 -4
- package/src/schematics/input-form-control.schema.json +11 -3
- package/src/schematics/minimum-table.schema.json +11 -5
- package/src/schematics/pipe.schema.json +1 -1
- package/src/schematics/select-form-control.schema.json +15 -4
- package/src/schematics/table/action/dialog-table-action/schema.json +150 -230
- package/src/schematics/table/action/dialog-table-action/template.schema.json +3 -6
- package/src/schematics/table/action/form-table-action/schema.json +317 -310
- package/src/schematics/table/action/form-table-action/template.schema.json +6 -6
- package/src/schematics/table/action/navigation-table-action/schema.json +150 -230
- package/src/schematics/table/action/navigation-table-action/template.schema.json +3 -6
- package/src/schematics/table/action/open-api-table-action/schema.json +150 -230
- package/src/schematics/table/action/open-api-table-action/template.schema.json +3 -6
- package/src/schematics/table/action/operation-table-action/schema.json +138 -218
- package/src/schematics/table/action/operation-table-action/template.schema.json +3 -6
- package/src/schematics/table/header-button/form-table-header-button/schema.json +217 -261
- package/src/schematics/table/header-button/form-table-header-button/template.schema.json +6 -6
- package/src/schematics/table/header-button/navigation-table-header-button/schema.json +131 -211
- package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +3 -6
- package/src/schematics/table/table-action/schema.json +56 -139
- package/src/schematics/table/table-action/template.schema.json +6 -6
- package/src/schematics/table/table-component/index.d.ts +10 -2
- package/src/schematics/table/table-component/index.js +13 -1
- package/src/schematics/table/table-component/index.js.map +1 -1
- package/src/schematics/table/table-component/schema.json +352 -547
- package/src/schematics/table/table-component/template.schema.json +6 -18
- package/src/schematics/table/table-header-button/schema.json +56 -139
- package/src/schematics/table/table-header-button/template.schema.json +6 -6
- package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +6 -0
- package/src/schematics/table/tree-table-component/index.d.ts +3 -0
- package/src/schematics/table/tree-table-component/index.js +11 -3
- package/src/schematics/table/tree-table-component/index.js.map +1 -1
- package/src/schematics/table/tree-table-component/schema.json +352 -547
- package/src/schematics/table/tree-table-component/template.schema.json +6 -18
- package/src/schematics/table-column.schema.json +4 -1
- package/src/schematics/table.schema.json +4 -1
- package/src/schematics/tree-component/schema.json +70 -62
- package/src/schematics/tree-component/template.schema.json +7 -2
- package/src/schematics/tree-table.schema.json +3 -3
- package/src/schematics/value.schema.json +1 -1
- package/src/template.schema.json +173 -0
|
@@ -3,178 +3,7 @@
|
|
|
3
3
|
"$id": "table-select-form-control-schematic",
|
|
4
4
|
"allOf": [
|
|
5
5
|
{
|
|
6
|
-
"
|
|
7
|
-
{
|
|
8
|
-
"allOf": [
|
|
9
|
-
{
|
|
10
|
-
"type": "object",
|
|
11
|
-
"properties": {
|
|
12
|
-
"project": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "Project name where the files should be generated"
|
|
15
|
-
},
|
|
16
|
-
"feature": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Feature name where the files should be generated"
|
|
19
|
-
},
|
|
20
|
-
"overwrite": {
|
|
21
|
-
"anyOf": [
|
|
22
|
-
{
|
|
23
|
-
"type": "boolean"
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"type": "array",
|
|
27
|
-
"items": {
|
|
28
|
-
"type": "string"
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"description": "Overwrite existing files",
|
|
33
|
-
"default": false
|
|
34
|
-
},
|
|
35
|
-
"overwriteHtml": {
|
|
36
|
-
"type": "boolean",
|
|
37
|
-
"default": false
|
|
38
|
-
},
|
|
39
|
-
"replace": {
|
|
40
|
-
"type": "boolean",
|
|
41
|
-
"default": false
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"required": [
|
|
45
|
-
"project"
|
|
46
|
-
]
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"type": "object",
|
|
50
|
-
"properties": {
|
|
51
|
-
"componentName": {
|
|
52
|
-
"type": "string"
|
|
53
|
-
},
|
|
54
|
-
"name": {
|
|
55
|
-
"type": "string"
|
|
56
|
-
},
|
|
57
|
-
"context": {
|
|
58
|
-
"type": "string",
|
|
59
|
-
"description": "The context use to generate proper names for class, files, etc"
|
|
60
|
-
},
|
|
61
|
-
"nestModule": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"description": "The module name for the table nest operations"
|
|
64
|
-
},
|
|
65
|
-
"controllerName": {
|
|
66
|
-
"type": "string"
|
|
67
|
-
},
|
|
68
|
-
"backend": {
|
|
69
|
-
"type": "string",
|
|
70
|
-
"description": "The backend that should be used to handel data",
|
|
71
|
-
"enum": [
|
|
72
|
-
"none",
|
|
73
|
-
"nestjs",
|
|
74
|
-
"open-api",
|
|
75
|
-
"local"
|
|
76
|
-
],
|
|
77
|
-
"default": "none"
|
|
78
|
-
},
|
|
79
|
-
"directory": {
|
|
80
|
-
"type": "string",
|
|
81
|
-
"description": "A directory name or absolute path where the files should be generated. Relative to the project and feature base path if a feature is defined"
|
|
82
|
-
},
|
|
83
|
-
"shared": {
|
|
84
|
-
"type": "boolean",
|
|
85
|
-
"description": "Whether the generated code is used across the project",
|
|
86
|
-
"default": false
|
|
87
|
-
},
|
|
88
|
-
"scope": {
|
|
89
|
-
"type": "string"
|
|
90
|
-
},
|
|
91
|
-
"prefix": {
|
|
92
|
-
"type": "string"
|
|
93
|
-
},
|
|
94
|
-
"openApi": {
|
|
95
|
-
"type": "object",
|
|
96
|
-
"additionalProperties": true
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"type": "object",
|
|
104
|
-
"properties": {
|
|
105
|
-
"name": {
|
|
106
|
-
"type": "string",
|
|
107
|
-
"description": "The name of the control"
|
|
108
|
-
},
|
|
109
|
-
"type": {
|
|
110
|
-
"$ref": "#/definitions/type"
|
|
111
|
-
},
|
|
112
|
-
"isArray": {
|
|
113
|
-
"type": "boolean",
|
|
114
|
-
"description": "Whether the control value is an array",
|
|
115
|
-
"default": false
|
|
116
|
-
},
|
|
117
|
-
"state": {
|
|
118
|
-
"type": "string",
|
|
119
|
-
"description": "The initial state of the control"
|
|
120
|
-
},
|
|
121
|
-
"isRequired": {
|
|
122
|
-
"type": "boolean",
|
|
123
|
-
"description": "Whether the control value is required",
|
|
124
|
-
"default": false
|
|
125
|
-
},
|
|
126
|
-
"isReadonly": {
|
|
127
|
-
"type": "boolean",
|
|
128
|
-
"description": "Whether the control value is readonly",
|
|
129
|
-
"default": false
|
|
130
|
-
},
|
|
131
|
-
"isDisabled": {
|
|
132
|
-
"type": "boolean",
|
|
133
|
-
"description": "Whether the control value is disabled",
|
|
134
|
-
"default": false
|
|
135
|
-
},
|
|
136
|
-
"validatorList": {
|
|
137
|
-
"type": "array",
|
|
138
|
-
"items": {
|
|
139
|
-
"type": "string"
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
"kind": {
|
|
143
|
-
"type": "string",
|
|
144
|
-
"description": "The name of the template",
|
|
145
|
-
"enum": [
|
|
146
|
-
"default",
|
|
147
|
-
"input",
|
|
148
|
-
"select",
|
|
149
|
-
"checkbox",
|
|
150
|
-
"autocomplete-table-select",
|
|
151
|
-
"table-select",
|
|
152
|
-
"textarea",
|
|
153
|
-
"slide-toggle"
|
|
154
|
-
],
|
|
155
|
-
"default": "default"
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
"required": [
|
|
159
|
-
"name"
|
|
160
|
-
],
|
|
161
|
-
"additionalProperties": true
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
"type": "object",
|
|
165
|
-
"properties": {
|
|
166
|
-
"formName": {
|
|
167
|
-
"alias": "form",
|
|
168
|
-
"type": "string",
|
|
169
|
-
"description": "The name of the form where the form control should be added",
|
|
170
|
-
"x-prompt": "Enter the name of the form where the form control should be added"
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
"required": [
|
|
174
|
-
"formName"
|
|
175
|
-
]
|
|
176
|
-
}
|
|
177
|
-
]
|
|
6
|
+
"$ref": "#/definitions/formControl"
|
|
178
7
|
},
|
|
179
8
|
{
|
|
180
9
|
"type": "object",
|
|
@@ -228,43 +57,79 @@
|
|
|
228
57
|
},
|
|
229
58
|
"upstream": {
|
|
230
59
|
"$ref": "#/definitions/upstream"
|
|
60
|
+
},
|
|
61
|
+
"resolver": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"upstream": {
|
|
65
|
+
"$ref": "#/definitions/upstream"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
231
68
|
}
|
|
232
69
|
}
|
|
233
70
|
}
|
|
234
71
|
],
|
|
235
72
|
"definitions": {
|
|
236
|
-
"
|
|
237
|
-
"
|
|
238
|
-
|
|
239
|
-
|
|
73
|
+
"formControl": {
|
|
74
|
+
"type": "object",
|
|
75
|
+
"properties": {
|
|
76
|
+
"name": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "The name of the control"
|
|
240
79
|
},
|
|
241
|
-
{
|
|
242
|
-
"
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
80
|
+
"type": {
|
|
81
|
+
"$ref": "#/definitions/type"
|
|
82
|
+
},
|
|
83
|
+
"isArray": {
|
|
84
|
+
"type": "boolean",
|
|
85
|
+
"description": "Whether the control value is an array",
|
|
86
|
+
"default": false
|
|
87
|
+
},
|
|
88
|
+
"state": {
|
|
89
|
+
"type": "string",
|
|
90
|
+
"description": "The initial state of the control"
|
|
91
|
+
},
|
|
92
|
+
"isRequired": {
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"description": "Whether the control value is required",
|
|
95
|
+
"default": false
|
|
96
|
+
},
|
|
97
|
+
"isReadonly": {
|
|
98
|
+
"type": "boolean",
|
|
99
|
+
"description": "Whether the control value is readonly",
|
|
100
|
+
"default": false
|
|
101
|
+
},
|
|
102
|
+
"isDisabled": {
|
|
103
|
+
"type": "boolean",
|
|
104
|
+
"description": "Whether the control value is disabled",
|
|
105
|
+
"default": false
|
|
106
|
+
},
|
|
107
|
+
"validatorList": {
|
|
108
|
+
"type": "array",
|
|
109
|
+
"items": {
|
|
110
|
+
"type": "string"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"kind": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "The name of the template",
|
|
116
|
+
"enum": [
|
|
117
|
+
"default",
|
|
118
|
+
"input",
|
|
119
|
+
"select",
|
|
120
|
+
"checkbox",
|
|
121
|
+
"autocomplete-table-select",
|
|
122
|
+
"table-select",
|
|
123
|
+
"textarea",
|
|
124
|
+
"slide-toggle"
|
|
125
|
+
],
|
|
126
|
+
"default": "default"
|
|
266
127
|
}
|
|
267
|
-
|
|
128
|
+
},
|
|
129
|
+
"required": [
|
|
130
|
+
"name"
|
|
131
|
+
],
|
|
132
|
+
"additionalProperties": true
|
|
268
133
|
},
|
|
269
134
|
"property": {
|
|
270
135
|
"oneOf": [
|
|
@@ -288,100 +153,7 @@
|
|
|
288
153
|
"name"
|
|
289
154
|
]
|
|
290
155
|
}
|
|
291
|
-
]
|
|
292
|
-
"definitions": {
|
|
293
|
-
"type": {
|
|
294
|
-
"oneOf": [
|
|
295
|
-
{
|
|
296
|
-
"type": "string"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"type": "object",
|
|
300
|
-
"properties": {
|
|
301
|
-
"name": {
|
|
302
|
-
"type": "string"
|
|
303
|
-
},
|
|
304
|
-
"isTypeOnly": {
|
|
305
|
-
"type": "boolean"
|
|
306
|
-
},
|
|
307
|
-
"moduleSpecifier": {
|
|
308
|
-
"type": "string"
|
|
309
|
-
},
|
|
310
|
-
"namedImport": {
|
|
311
|
-
"type": "string"
|
|
312
|
-
},
|
|
313
|
-
"namespaceImport": {
|
|
314
|
-
"type": "string"
|
|
315
|
-
},
|
|
316
|
-
"defaultImport": {
|
|
317
|
-
"type": "string"
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
"required": [
|
|
321
|
-
"name"
|
|
322
|
-
]
|
|
323
|
-
}
|
|
324
|
-
]
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
"button": {
|
|
329
|
-
"type": "object",
|
|
330
|
-
"properties": {
|
|
331
|
-
"svgIcon": {
|
|
332
|
-
"type": "string"
|
|
333
|
-
},
|
|
334
|
-
"icon": {
|
|
335
|
-
"type": "string"
|
|
336
|
-
},
|
|
337
|
-
"directiveList": {
|
|
338
|
-
"type": "array",
|
|
339
|
-
"items": {
|
|
340
|
-
"$ref": "#/definitions/type"
|
|
341
|
-
}
|
|
342
|
-
},
|
|
343
|
-
"importList": {
|
|
344
|
-
"type": "array",
|
|
345
|
-
"items": {
|
|
346
|
-
"$ref": "#/definitions/type"
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
"definitions": {
|
|
351
|
-
"type": {
|
|
352
|
-
"oneOf": [
|
|
353
|
-
{
|
|
354
|
-
"type": "string"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
"type": "object",
|
|
358
|
-
"properties": {
|
|
359
|
-
"name": {
|
|
360
|
-
"type": "string"
|
|
361
|
-
},
|
|
362
|
-
"isTypeOnly": {
|
|
363
|
-
"type": "boolean"
|
|
364
|
-
},
|
|
365
|
-
"moduleSpecifier": {
|
|
366
|
-
"type": "string"
|
|
367
|
-
},
|
|
368
|
-
"namedImport": {
|
|
369
|
-
"type": "string"
|
|
370
|
-
},
|
|
371
|
-
"namespaceImport": {
|
|
372
|
-
"type": "string"
|
|
373
|
-
},
|
|
374
|
-
"defaultImport": {
|
|
375
|
-
"type": "string"
|
|
376
|
-
}
|
|
377
|
-
},
|
|
378
|
-
"required": [
|
|
379
|
-
"name"
|
|
380
|
-
]
|
|
381
|
-
}
|
|
382
|
-
]
|
|
383
|
-
}
|
|
384
|
-
}
|
|
156
|
+
]
|
|
385
157
|
},
|
|
386
158
|
"upstream": {
|
|
387
159
|
"oneOf": [
|
|
@@ -441,6 +213,39 @@
|
|
|
441
213
|
]
|
|
442
214
|
}
|
|
443
215
|
]
|
|
216
|
+
},
|
|
217
|
+
"type": {
|
|
218
|
+
"oneOf": [
|
|
219
|
+
{
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"type": "object",
|
|
224
|
+
"properties": {
|
|
225
|
+
"name": {
|
|
226
|
+
"type": "string"
|
|
227
|
+
},
|
|
228
|
+
"isTypeOnly": {
|
|
229
|
+
"type": "boolean"
|
|
230
|
+
},
|
|
231
|
+
"moduleSpecifier": {
|
|
232
|
+
"type": "string"
|
|
233
|
+
},
|
|
234
|
+
"namedImport": {
|
|
235
|
+
"type": "string"
|
|
236
|
+
},
|
|
237
|
+
"namespaceImport": {
|
|
238
|
+
"type": "string"
|
|
239
|
+
},
|
|
240
|
+
"defaultImport": {
|
|
241
|
+
"type": "string"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"required": [
|
|
245
|
+
"name"
|
|
246
|
+
]
|
|
247
|
+
}
|
|
248
|
+
]
|
|
444
249
|
}
|
|
445
250
|
}
|
|
446
251
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "table-select-form-control-schematic",
|
|
4
4
|
"allOf": [
|
|
5
5
|
{
|
|
6
|
-
"$ref": "
|
|
6
|
+
"$ref": "#/definitions/formControl"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"type": "object",
|
|
@@ -57,20 +57,25 @@
|
|
|
57
57
|
},
|
|
58
58
|
"upstream": {
|
|
59
59
|
"$ref": "#/definitions/upstream"
|
|
60
|
+
},
|
|
61
|
+
"resolver": {
|
|
62
|
+
"type": "object",
|
|
63
|
+
"properties": {
|
|
64
|
+
"upstream": {
|
|
65
|
+
"$ref": "#/definitions/upstream"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
60
68
|
}
|
|
61
69
|
}
|
|
62
70
|
}
|
|
63
71
|
],
|
|
64
72
|
"definitions": {
|
|
65
|
-
"
|
|
66
|
-
"$ref": "
|
|
73
|
+
"formControl": {
|
|
74
|
+
"$ref": "../../form-control/template.schema.json"
|
|
67
75
|
},
|
|
68
76
|
"property": {
|
|
69
77
|
"$ref": "../../../property.schema.json"
|
|
70
78
|
},
|
|
71
|
-
"button": {
|
|
72
|
-
"$ref": "../../../button.schema.json"
|
|
73
|
-
},
|
|
74
79
|
"upstream": {
|
|
75
80
|
"$ref": "../../../upstream.schema.json"
|
|
76
81
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
|
2
2
|
import { DtoClassProperty } from '@rxap/schematics-ts-morph';
|
|
3
3
|
import { Normalized } from '@rxap/utilities';
|
|
4
|
+
import { NormalizedAccordionIdentifier } from '../../../lib/accordion-identifier';
|
|
4
5
|
import { NormalizedAngularOptions } from '../../../lib/angular-options';
|
|
5
6
|
import { NormalizedFormComponentControl } from '../../../lib/form-component-control';
|
|
6
7
|
import { NormalizedMatFormFieldDefaultOptions } from '../../../lib/mat-form-field-default-options';
|
|
@@ -11,6 +12,7 @@ export interface NormalizedFormComponentOptions extends Omit<Readonly<Normalized
|
|
|
11
12
|
controlList: ReadonlyArray<NormalizedFormComponentControl>;
|
|
12
13
|
name: string;
|
|
13
14
|
matFormFieldDefaultOptions: NormalizedMatFormFieldDefaultOptions | null;
|
|
15
|
+
identifier: NormalizedAccordionIdentifier | null;
|
|
14
16
|
}
|
|
15
17
|
export declare function NormalizeFormComponentOptions(options: Readonly<FormComponentOptions>): Readonly<NormalizedFormComponentOptions>;
|
|
16
18
|
export declare function FormComponentControlToDtoClassProperty(control: NormalizedFormComponentControl): DtoClassProperty;
|
|
@@ -7,6 +7,7 @@ const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
|
7
7
|
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
8
8
|
const utilities_1 = require("@rxap/utilities");
|
|
9
9
|
const path_1 = require("path");
|
|
10
|
+
const accordion_identifier_1 = require("../../../lib/accordion-identifier");
|
|
10
11
|
const angular_options_1 = require("../../../lib/angular-options");
|
|
11
12
|
const backend_types_1 = require("../../../lib/backend-types");
|
|
12
13
|
const coerce_form_component_1 = require("../../../lib/coerce-form-component");
|
|
@@ -23,7 +24,7 @@ function NormalizeFormComponentOptions(options) {
|
|
|
23
24
|
nestModule,
|
|
24
25
|
});
|
|
25
26
|
return Object.freeze(Object.assign(Object.assign({}, normalizedAngularOptions), { window: (_b = options.window) !== null && _b !== void 0 ? _b : false, directory: (0, path_1.join)((_c = options.directory) !== null && _c !== void 0 ? _c : '', componentName), role: (_d = options.role) !== null && _d !== void 0 ? _d : null, componentName,
|
|
26
|
-
controllerName, controlList: (0, form_component_control_1.NormalizeFormComponentControlList)(options.controlList), context: options.context ? (0, utilities_1.dasherize)(options.context) : null, matFormFieldDefaultOptions: (0, mat_form_field_default_options_1.NormalizeMatFormFieldDefaultOptions)(options.matFormFieldDefaultOptions) }));
|
|
27
|
+
controllerName, controlList: (0, form_component_control_1.NormalizeFormComponentControlList)(options.controlList), context: options.context ? (0, utilities_1.dasherize)(options.context) : null, matFormFieldDefaultOptions: (0, mat_form_field_default_options_1.NormalizeMatFormFieldDefaultOptions)(options.matFormFieldDefaultOptions), identifier: (0, accordion_identifier_1.NormalizeAccordionIdentifier)(options.identifier) }));
|
|
27
28
|
}
|
|
28
29
|
exports.NormalizeFormComponentOptions = NormalizeFormComponentOptions;
|
|
29
30
|
function FormComponentControlToDtoClassProperty(control) {
|
|
@@ -108,7 +109,7 @@ function formSubmitProviderRule(normalizedOptions) {
|
|
|
108
109
|
]);
|
|
109
110
|
}
|
|
110
111
|
function formSubmitBackendRule(normalizedOptions) {
|
|
111
|
-
const { backend, project, feature, controlList, controllerName, nestModule, shared, } = normalizedOptions;
|
|
112
|
+
const { backend, project, feature, controlList, controllerName, nestModule, shared, identifier, } = normalizedOptions;
|
|
112
113
|
switch (backend) {
|
|
113
114
|
case backend_types_1.BackendTypes.NESTJS:
|
|
114
115
|
return (0, schematics_1.chain)([
|
|
@@ -119,6 +120,7 @@ function formSubmitBackendRule(normalizedOptions) {
|
|
|
119
120
|
feature,
|
|
120
121
|
shared,
|
|
121
122
|
nestModule,
|
|
123
|
+
idProperty: identifier === null || identifier === void 0 ? void 0 : identifier.property,
|
|
122
124
|
propertyList: controlList.map(FormComponentControlToDtoClassProperty),
|
|
123
125
|
bodyDtoName: controllerName,
|
|
124
126
|
}),
|
|
@@ -154,12 +156,12 @@ function windowRule(normalizedOptions) {
|
|
|
154
156
|
return (0, schematics_1.noop)();
|
|
155
157
|
}
|
|
156
158
|
function getSubmitOperationId(normalizedOptions) {
|
|
157
|
-
const { project, feature, shared, controllerName, } = normalizedOptions;
|
|
159
|
+
const { project, feature, shared, controllerName, identifier, } = normalizedOptions;
|
|
158
160
|
return (0, schematics_ts_morph_1.buildOperationId)({
|
|
159
161
|
project,
|
|
160
162
|
feature,
|
|
161
163
|
shared,
|
|
162
|
-
}, 'submit', controllerName);
|
|
164
|
+
}, identifier ? 'submitById' : 'submit', controllerName);
|
|
163
165
|
}
|
|
164
166
|
function printFormComponentOptions(options) {
|
|
165
167
|
(0, angular_options_1.PrintAngularOptions)('form-component', options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/form/form-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAUoC;AACpC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/angular/src/schematics/form/form-component/index.ts"],"names":[],"mappings":";;;AAAA,+CAA+C;AAC/C,2DAUoC;AACpC,mEASmC;AACnC,qEAGoC;AACpC,+CAGyB;AACzB,+BAA4B;AAC5B,4EAG2C;AAC3C,kEAKsC;AACtC,8DAA0D;AAC1D,8EAA6E;AAC7E,gFAG6C;AAC7C,gGAGqD;AAcrD,SAAgB,6BAA6B,CAC3C,OAAuC;;IAEvC,MAAM,wBAAwB,GAAG,IAAA,yCAAuB,EAAC,OAAO,CAAC,CAAC;IAClE,IAAA,kDAAgC,EAAC,wBAAwB,CAAC,CAAC;IAC3D,MAAM,EACJ,IAAI,EACJ,UAAU,GACX,GAAG,wBAAwB,CAAC;IAC7B,MAAM,aAAa,GAAG,IAAA,mCAAY,EAAC,IAAI,E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../../lib/angular-options';
|
|
3
|
+
import { FormComponentControl } from '../../../lib/form-component-control';
|
|
3
4
|
import { MatFormFieldDefaultOptions } from '../../../lib/mat-form-field-default-options';
|
|
4
5
|
|
|
5
6
|
export interface FormComponentOptions extends AngularOptions {
|
|
@@ -7,4 +8,5 @@ export interface FormComponentOptions extends AngularOptions {
|
|
|
7
8
|
controlList?: Array<FormComponentControl>;
|
|
8
9
|
role?: string;
|
|
9
10
|
matFormFieldDefaultOptions?: MatFormFieldDefaultOptions;
|
|
11
|
+
identifier?: AccordionIdentifier;
|
|
10
12
|
}
|