@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,153 +3,7 @@
|
|
|
3
3
|
"$id": "navigation-table-header-button-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
|
-
"permission": {
|
|
106
|
-
"type": "string"
|
|
107
|
-
},
|
|
108
|
-
"icon": {
|
|
109
|
-
"type": "string"
|
|
110
|
-
},
|
|
111
|
-
"svgIcon": {
|
|
112
|
-
"type": "string"
|
|
113
|
-
},
|
|
114
|
-
"refresh": {
|
|
115
|
-
"type": "boolean",
|
|
116
|
-
"description": "Whether the table action should refresh the table after execution",
|
|
117
|
-
"default": false
|
|
118
|
-
},
|
|
119
|
-
"confirm": {
|
|
120
|
-
"type": "boolean",
|
|
121
|
-
"description": "Whether the table action should confirm before execution",
|
|
122
|
-
"default": false
|
|
123
|
-
},
|
|
124
|
-
"tooltip": {
|
|
125
|
-
"type": "string",
|
|
126
|
-
"description": "The tooltip for the table action"
|
|
127
|
-
},
|
|
128
|
-
"errorMessage": {
|
|
129
|
-
"type": "string",
|
|
130
|
-
"description": "The error message for the table action"
|
|
131
|
-
},
|
|
132
|
-
"successMessage": {
|
|
133
|
-
"type": "string",
|
|
134
|
-
"description": "The success message for the table action"
|
|
135
|
-
},
|
|
136
|
-
"options": {
|
|
137
|
-
"type": "object",
|
|
138
|
-
"additionalProperties": true
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"type": "object",
|
|
144
|
-
"properties": {
|
|
145
|
-
"tableName": {
|
|
146
|
-
"alias": "table",
|
|
147
|
-
"type": "string",
|
|
148
|
-
"description": "The name of the table action"
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
]
|
|
6
|
+
"$ref": "#/definitions/tableHeaderButtonSchematic"
|
|
153
7
|
},
|
|
154
8
|
{
|
|
155
9
|
"type": "object",
|
|
@@ -167,95 +21,161 @@
|
|
|
167
21
|
}
|
|
168
22
|
],
|
|
169
23
|
"definitions": {
|
|
170
|
-
"
|
|
171
|
-
"
|
|
24
|
+
"tableHeaderButtonSchematic": {
|
|
25
|
+
"allOf": [
|
|
172
26
|
{
|
|
173
|
-
"
|
|
27
|
+
"$ref": "#/definitions/angular"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"$ref": "#/definitions/headerButton"
|
|
174
31
|
},
|
|
175
32
|
{
|
|
176
33
|
"type": "object",
|
|
177
34
|
"properties": {
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
"type": "boolean"
|
|
183
|
-
},
|
|
184
|
-
"moduleSpecifier": {
|
|
185
|
-
"type": "string"
|
|
186
|
-
},
|
|
187
|
-
"namedImport": {
|
|
188
|
-
"type": "string"
|
|
189
|
-
},
|
|
190
|
-
"namespaceImport": {
|
|
191
|
-
"type": "string"
|
|
192
|
-
},
|
|
193
|
-
"defaultImport": {
|
|
194
|
-
"type": "string"
|
|
35
|
+
"tableName": {
|
|
36
|
+
"alias": "table",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "The name of the table action"
|
|
195
39
|
}
|
|
196
|
-
}
|
|
197
|
-
"required": [
|
|
198
|
-
"name"
|
|
199
|
-
]
|
|
40
|
+
}
|
|
200
41
|
}
|
|
201
42
|
]
|
|
202
43
|
},
|
|
203
|
-
"
|
|
204
|
-
"
|
|
44
|
+
"angular": {
|
|
45
|
+
"allOf": [
|
|
205
46
|
{
|
|
206
|
-
"
|
|
47
|
+
"$ref": "#/definitions/general"
|
|
207
48
|
},
|
|
208
49
|
{
|
|
209
50
|
"type": "object",
|
|
210
51
|
"properties": {
|
|
52
|
+
"componentName": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
211
55
|
"name": {
|
|
212
56
|
"type": "string"
|
|
213
57
|
},
|
|
214
|
-
"
|
|
215
|
-
"
|
|
58
|
+
"context": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "The context use to generate proper names for class, files, etc"
|
|
216
61
|
},
|
|
217
|
-
"
|
|
218
|
-
"type": "
|
|
62
|
+
"nestModule": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "The module name for the table nest operations"
|
|
65
|
+
},
|
|
66
|
+
"controllerName": {
|
|
67
|
+
"type": "string"
|
|
68
|
+
},
|
|
69
|
+
"backend": {
|
|
70
|
+
"$ref": "#/definitions/backend"
|
|
71
|
+
},
|
|
72
|
+
"directory": {
|
|
73
|
+
"type": "string",
|
|
74
|
+
"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"
|
|
75
|
+
},
|
|
76
|
+
"shared": {
|
|
77
|
+
"type": "boolean",
|
|
78
|
+
"description": "Whether the generated code is used across the project",
|
|
79
|
+
"default": false
|
|
80
|
+
},
|
|
81
|
+
"scope": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"prefix": {
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
"openApi": {
|
|
88
|
+
"type": "object",
|
|
89
|
+
"additionalProperties": true
|
|
219
90
|
}
|
|
220
|
-
}
|
|
221
|
-
"required": [
|
|
222
|
-
"name"
|
|
223
|
-
]
|
|
91
|
+
}
|
|
224
92
|
}
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
"backend": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"description": "The backend that should be used to handel data",
|
|
98
|
+
"enum": [
|
|
99
|
+
"none",
|
|
100
|
+
"nestjs",
|
|
101
|
+
"open-api",
|
|
102
|
+
"local"
|
|
225
103
|
],
|
|
226
|
-
"
|
|
227
|
-
|
|
228
|
-
|
|
104
|
+
"default": "none"
|
|
105
|
+
},
|
|
106
|
+
"general": {
|
|
107
|
+
"type": "object",
|
|
108
|
+
"properties": {
|
|
109
|
+
"project": {
|
|
110
|
+
"type": "string",
|
|
111
|
+
"description": "Project name where the files should be generated"
|
|
112
|
+
},
|
|
113
|
+
"feature": {
|
|
114
|
+
"type": "string",
|
|
115
|
+
"description": "Feature name where the files should be generated"
|
|
116
|
+
},
|
|
117
|
+
"overwrite": {
|
|
118
|
+
"anyOf": [
|
|
229
119
|
{
|
|
230
|
-
"type": "
|
|
120
|
+
"type": "boolean"
|
|
231
121
|
},
|
|
232
122
|
{
|
|
233
|
-
"type": "
|
|
234
|
-
"
|
|
235
|
-
"
|
|
236
|
-
|
|
237
|
-
},
|
|
238
|
-
"isTypeOnly": {
|
|
239
|
-
"type": "boolean"
|
|
240
|
-
},
|
|
241
|
-
"moduleSpecifier": {
|
|
242
|
-
"type": "string"
|
|
243
|
-
},
|
|
244
|
-
"namedImport": {
|
|
245
|
-
"type": "string"
|
|
246
|
-
},
|
|
247
|
-
"namespaceImport": {
|
|
248
|
-
"type": "string"
|
|
249
|
-
},
|
|
250
|
-
"defaultImport": {
|
|
251
|
-
"type": "string"
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
"required": [
|
|
255
|
-
"name"
|
|
256
|
-
]
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
}
|
|
257
127
|
}
|
|
258
|
-
]
|
|
128
|
+
],
|
|
129
|
+
"description": "Overwrite existing files",
|
|
130
|
+
"default": false
|
|
131
|
+
},
|
|
132
|
+
"overwriteHtml": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"default": false
|
|
135
|
+
},
|
|
136
|
+
"replace": {
|
|
137
|
+
"type": "boolean",
|
|
138
|
+
"default": false
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"headerButton": {
|
|
143
|
+
"type": "object",
|
|
144
|
+
"properties": {
|
|
145
|
+
"permission": {
|
|
146
|
+
"type": "string"
|
|
147
|
+
},
|
|
148
|
+
"icon": {
|
|
149
|
+
"type": "string"
|
|
150
|
+
},
|
|
151
|
+
"svgIcon": {
|
|
152
|
+
"type": "string"
|
|
153
|
+
},
|
|
154
|
+
"refresh": {
|
|
155
|
+
"type": "boolean",
|
|
156
|
+
"description": "Whether the table action should refresh the table after execution",
|
|
157
|
+
"default": false
|
|
158
|
+
},
|
|
159
|
+
"confirm": {
|
|
160
|
+
"type": "boolean",
|
|
161
|
+
"description": "Whether the table action should confirm before execution",
|
|
162
|
+
"default": false
|
|
163
|
+
},
|
|
164
|
+
"tooltip": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"description": "The tooltip for the table action"
|
|
167
|
+
},
|
|
168
|
+
"errorMessage": {
|
|
169
|
+
"type": "string",
|
|
170
|
+
"description": "The error message for the table action"
|
|
171
|
+
},
|
|
172
|
+
"successMessage": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"description": "The success message for the table action"
|
|
175
|
+
},
|
|
176
|
+
"options": {
|
|
177
|
+
"type": "object",
|
|
178
|
+
"additionalProperties": true
|
|
259
179
|
}
|
|
260
180
|
}
|
|
261
181
|
}
|
package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"$id": "navigation-table-header-button-schematic",
|
|
4
4
|
"allOf": [
|
|
5
5
|
{
|
|
6
|
-
"$ref": "
|
|
6
|
+
"$ref": "#/definitions/tableHeaderButtonSchematic"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
9
|
"type": "object",
|
|
@@ -21,11 +21,8 @@
|
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
23
|
"definitions": {
|
|
24
|
-
"
|
|
25
|
-
"$ref": "
|
|
26
|
-
},
|
|
27
|
-
"property": {
|
|
28
|
-
"$ref": "../../../property.schema.json"
|
|
24
|
+
"tableHeaderButtonSchematic": {
|
|
25
|
+
"$ref": "../../table-header-button/template.schema.json"
|
|
29
26
|
}
|
|
30
27
|
}
|
|
31
28
|
}
|
|
@@ -3,45 +3,27 @@
|
|
|
3
3
|
"$id": "table-action-schematic",
|
|
4
4
|
"allOf": [
|
|
5
5
|
{
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"$ref": "#/definitions/tableAction"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"tableName": {
|
|
15
|
+
"alias": "table",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The name of the table action"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"definitions": {
|
|
23
|
+
"angular": {
|
|
6
24
|
"allOf": [
|
|
7
25
|
{
|
|
8
|
-
"
|
|
9
|
-
"properties": {
|
|
10
|
-
"project": {
|
|
11
|
-
"type": "string",
|
|
12
|
-
"description": "Project name where the files should be generated"
|
|
13
|
-
},
|
|
14
|
-
"feature": {
|
|
15
|
-
"type": "string",
|
|
16
|
-
"description": "Feature name where the files should be generated"
|
|
17
|
-
},
|
|
18
|
-
"overwrite": {
|
|
19
|
-
"anyOf": [
|
|
20
|
-
{
|
|
21
|
-
"type": "boolean"
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"type": "array",
|
|
25
|
-
"items": {
|
|
26
|
-
"type": "string"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
],
|
|
30
|
-
"description": "Overwrite existing files",
|
|
31
|
-
"default": false
|
|
32
|
-
},
|
|
33
|
-
"overwriteHtml": {
|
|
34
|
-
"type": "boolean",
|
|
35
|
-
"default": false
|
|
36
|
-
},
|
|
37
|
-
"replace": {
|
|
38
|
-
"type": "boolean",
|
|
39
|
-
"default": false
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"required": [
|
|
43
|
-
"project"
|
|
44
|
-
]
|
|
26
|
+
"$ref": "#/definitions/general"
|
|
45
27
|
},
|
|
46
28
|
{
|
|
47
29
|
"type": "object",
|
|
@@ -64,15 +46,7 @@
|
|
|
64
46
|
"type": "string"
|
|
65
47
|
},
|
|
66
48
|
"backend": {
|
|
67
|
-
"
|
|
68
|
-
"description": "The backend that should be used to handel data",
|
|
69
|
-
"enum": [
|
|
70
|
-
"none",
|
|
71
|
-
"nestjs",
|
|
72
|
-
"open-api",
|
|
73
|
-
"local"
|
|
74
|
-
],
|
|
75
|
-
"default": "none"
|
|
49
|
+
"$ref": "#/definitions/backend"
|
|
76
50
|
},
|
|
77
51
|
"directory": {
|
|
78
52
|
"type": "string",
|
|
@@ -97,7 +71,7 @@
|
|
|
97
71
|
}
|
|
98
72
|
]
|
|
99
73
|
},
|
|
100
|
-
{
|
|
74
|
+
"tableAction": {
|
|
101
75
|
"type": "object",
|
|
102
76
|
"properties": {
|
|
103
77
|
"type": {
|
|
@@ -156,107 +130,50 @@
|
|
|
156
130
|
"type"
|
|
157
131
|
]
|
|
158
132
|
},
|
|
159
|
-
{
|
|
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": {
|
|
160
145
|
"type": "object",
|
|
161
146
|
"properties": {
|
|
162
|
-
"
|
|
163
|
-
"alias": "table",
|
|
147
|
+
"project": {
|
|
164
148
|
"type": "string",
|
|
165
|
-
"description": "
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
"definitions": {
|
|
171
|
-
"type": {
|
|
172
|
-
"oneOf": [
|
|
173
|
-
{
|
|
174
|
-
"type": "string"
|
|
149
|
+
"description": "Project name where the files should be generated"
|
|
175
150
|
},
|
|
176
|
-
{
|
|
177
|
-
"type": "
|
|
178
|
-
"
|
|
179
|
-
"name": {
|
|
180
|
-
"type": "string"
|
|
181
|
-
},
|
|
182
|
-
"isTypeOnly": {
|
|
183
|
-
"type": "boolean"
|
|
184
|
-
},
|
|
185
|
-
"moduleSpecifier": {
|
|
186
|
-
"type": "string"
|
|
187
|
-
},
|
|
188
|
-
"namedImport": {
|
|
189
|
-
"type": "string"
|
|
190
|
-
},
|
|
191
|
-
"namespaceImport": {
|
|
192
|
-
"type": "string"
|
|
193
|
-
},
|
|
194
|
-
"defaultImport": {
|
|
195
|
-
"type": "string"
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
"required": [
|
|
199
|
-
"name"
|
|
200
|
-
]
|
|
201
|
-
}
|
|
202
|
-
]
|
|
203
|
-
},
|
|
204
|
-
"property": {
|
|
205
|
-
"oneOf": [
|
|
206
|
-
{
|
|
207
|
-
"type": "string"
|
|
151
|
+
"feature": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"description": "Feature name where the files should be generated"
|
|
208
154
|
},
|
|
209
|
-
{
|
|
210
|
-
"
|
|
211
|
-
"properties": {
|
|
212
|
-
"name": {
|
|
213
|
-
"type": "string"
|
|
214
|
-
},
|
|
215
|
-
"type": {
|
|
216
|
-
"$ref": "#/definitions/type"
|
|
217
|
-
},
|
|
218
|
-
"isArray": {
|
|
219
|
-
"type": "boolean"
|
|
220
|
-
}
|
|
221
|
-
},
|
|
222
|
-
"required": [
|
|
223
|
-
"name"
|
|
224
|
-
]
|
|
225
|
-
}
|
|
226
|
-
],
|
|
227
|
-
"definitions": {
|
|
228
|
-
"type": {
|
|
229
|
-
"oneOf": [
|
|
155
|
+
"overwrite": {
|
|
156
|
+
"anyOf": [
|
|
230
157
|
{
|
|
231
|
-
"type": "
|
|
158
|
+
"type": "boolean"
|
|
232
159
|
},
|
|
233
160
|
{
|
|
234
|
-
"type": "
|
|
235
|
-
"
|
|
236
|
-
"
|
|
237
|
-
|
|
238
|
-
},
|
|
239
|
-
"isTypeOnly": {
|
|
240
|
-
"type": "boolean"
|
|
241
|
-
},
|
|
242
|
-
"moduleSpecifier": {
|
|
243
|
-
"type": "string"
|
|
244
|
-
},
|
|
245
|
-
"namedImport": {
|
|
246
|
-
"type": "string"
|
|
247
|
-
},
|
|
248
|
-
"namespaceImport": {
|
|
249
|
-
"type": "string"
|
|
250
|
-
},
|
|
251
|
-
"defaultImport": {
|
|
252
|
-
"type": "string"
|
|
253
|
-
}
|
|
254
|
-
},
|
|
255
|
-
"required": [
|
|
256
|
-
"name"
|
|
257
|
-
]
|
|
161
|
+
"type": "array",
|
|
162
|
+
"items": {
|
|
163
|
+
"type": "string"
|
|
164
|
+
}
|
|
258
165
|
}
|
|
259
|
-
]
|
|
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
|
|
260
177
|
}
|
|
261
178
|
}
|
|
262
179
|
}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
"$id": "table-action-schematic",
|
|
4
4
|
"allOf": [
|
|
5
5
|
{
|
|
6
|
-
"$ref": "
|
|
6
|
+
"$ref": "#/definitions/angular"
|
|
7
7
|
},
|
|
8
8
|
{
|
|
9
|
-
"$ref": "
|
|
9
|
+
"$ref": "#/definitions/tableAction"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"type": "object",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
22
|
"definitions": {
|
|
23
|
-
"
|
|
24
|
-
"$ref": "../../
|
|
23
|
+
"angular": {
|
|
24
|
+
"$ref": "../../angular.schema.json"
|
|
25
25
|
},
|
|
26
|
-
"
|
|
27
|
-
"$ref": "../../
|
|
26
|
+
"tableAction": {
|
|
27
|
+
"$ref": "../../table-action.schema.json"
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import { FormDefinitionControl
|
|
2
|
+
import { FormDefinitionControl } from '@rxap/schematics-ts-morph';
|
|
3
3
|
import { NormalizedDataProperty } from '@rxap/ts-morph';
|
|
4
4
|
import { Normalized } from '@rxap/utilities';
|
|
5
5
|
import { NormalizedAngularOptions } from '../../../lib/angular-options';
|
|
@@ -11,6 +11,14 @@ export interface NormalizedTableComponentOptions extends Readonly<Normalized<Omi
|
|
|
11
11
|
readonly controllerName: string;
|
|
12
12
|
}
|
|
13
13
|
export declare function NormalizeTableComponentOptions(options: Readonly<TableComponentOptions>): NormalizedTableComponentOptions;
|
|
14
|
-
|
|
14
|
+
/**
|
|
15
|
+
* // TODO : refactor
|
|
16
|
+
* Options 1: remove this function and create the propertyList in the normalize functions
|
|
17
|
+
* Options 1: use the CoerceArrayItems function with merge = true
|
|
18
|
+
* @param columnList
|
|
19
|
+
* @param propertyList
|
|
20
|
+
* @constructor
|
|
21
|
+
*/
|
|
22
|
+
export declare function TableColumnListAndPropertyListToGetPageOperationPropertyList(columnList: ReadonlyArray<Pick<NormalizedTableColumn, 'name' | 'type' | 'propertyPath' | 'isArray'>>, propertyList?: ReadonlyArray<NormalizedDataProperty>): NormalizedDataProperty[];
|
|
15
23
|
export declare function TableColumnToFormControl(column: NormalizedTableColumn): FormDefinitionControl;
|
|
16
24
|
export default function (options: TableComponentOptions): () => Rule;
|