@rxap/schematic-angular 16.2.0-dev.7 → 16.2.0-dev.9

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +1 -1
  3. package/package.json +8 -8
  4. package/src/lib/table-column.js +43 -41
  5. package/src/lib/table-column.js.map +1 -1
  6. package/src/schematics/accordion/accordion-component/schema.json +372 -0
  7. package/src/schematics/accordion/accordion-item-component/schema.json +295 -0
  8. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +396 -0
  9. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +352 -0
  10. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +654 -0
  11. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +637 -0
  12. package/src/schematics/data-grid-component/schema.json +358 -0
  13. package/src/schematics/dialog-component/schema.json +240 -0
  14. package/src/schematics/form/control/input-form-control/schema.json +388 -0
  15. package/src/schematics/form/control/select-form-control/schema.json +394 -0
  16. package/src/schematics/form/control/table-select-form-control/schema.json +443 -0
  17. package/src/schematics/form/form-component/schema.json +352 -0
  18. package/src/schematics/form/form-control/schema.json +325 -0
  19. package/src/schematics/form/form-definition/schema.json +333 -0
  20. package/src/schematics/table/action/dialog-table-action/schema.json +309 -0
  21. package/src/schematics/table/action/form-table-action/schema.json +422 -0
  22. package/src/schematics/table/action/navigation-table-action/schema.json +279 -0
  23. package/src/schematics/table/action/open-api-table-action/schema.json +307 -0
  24. package/src/schematics/table/action/operation-table-action/schema.json +265 -0
  25. package/src/schematics/table/header-button/form-table-header-button/schema.json +338 -0
  26. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +260 -0
  27. package/src/schematics/table/table-action/schema.json +261 -0
  28. package/src/schematics/table/table-component/schema.json +604 -0
  29. package/src/schematics/table/table-header-button/schema.json +242 -0
  30. package/src/schematics/table/tree-table-component/schema.json +587 -0
  31. package/src/schematics/tree-component/schema.json +123 -0
@@ -0,0 +1,338 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "form-table-header-button-schematic",
4
+ "allOf": [
5
+ {
6
+ "allOf": [
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
+ ]
153
+ },
154
+ {
155
+ "type": "object",
156
+ "properties": {
157
+ "formComponent": {
158
+ "type": "string"
159
+ },
160
+ "customComponent": {
161
+ "type": "boolean",
162
+ "default": false,
163
+ "description": "If true the schematic will not coerce the form component"
164
+ },
165
+ "formOptions": {
166
+ "type": "object",
167
+ "properties": {
168
+ "role": {
169
+ "type": "string",
170
+ "description": "Define the role of the form"
171
+ },
172
+ "window": {
173
+ "type": "boolean",
174
+ "description": "Whether the form can be opened in a window"
175
+ },
176
+ "controlList": {
177
+ "alias": "control",
178
+ "type": "array",
179
+ "items": {
180
+ "type": "object",
181
+ "properties": {
182
+ "name": {
183
+ "type": "string",
184
+ "description": "The name of the control"
185
+ },
186
+ "type": {
187
+ "$ref": "#/definitions/type"
188
+ },
189
+ "isArray": {
190
+ "type": "boolean",
191
+ "description": "Whether the control value is an array",
192
+ "default": false
193
+ },
194
+ "state": {
195
+ "type": "string",
196
+ "description": "The initial state of the control"
197
+ },
198
+ "isRequired": {
199
+ "type": "boolean",
200
+ "description": "Whether the control value is required",
201
+ "default": false
202
+ },
203
+ "isReadonly": {
204
+ "type": "boolean",
205
+ "description": "Whether the control value is readonly",
206
+ "default": false
207
+ },
208
+ "isDisabled": {
209
+ "type": "boolean",
210
+ "description": "Whether the control value is disabled",
211
+ "default": false
212
+ },
213
+ "validatorList": {
214
+ "type": "array",
215
+ "items": {
216
+ "type": "string"
217
+ }
218
+ },
219
+ "kind": {
220
+ "type": "string",
221
+ "description": "The name of the template",
222
+ "enum": [
223
+ "default",
224
+ "input",
225
+ "select",
226
+ "checkbox",
227
+ "autocomplete-table-select",
228
+ "table-select",
229
+ "textarea",
230
+ "slide-toggle"
231
+ ],
232
+ "default": "default"
233
+ }
234
+ },
235
+ "required": [
236
+ "name"
237
+ ],
238
+ "additionalProperties": true
239
+ }
240
+ }
241
+ },
242
+ "additionalProperties": true
243
+ }
244
+ }
245
+ }
246
+ ],
247
+ "definitions": {
248
+ "type": {
249
+ "oneOf": [
250
+ {
251
+ "type": "string"
252
+ },
253
+ {
254
+ "type": "object",
255
+ "properties": {
256
+ "name": {
257
+ "type": "string"
258
+ },
259
+ "isTypeOnly": {
260
+ "type": "boolean"
261
+ },
262
+ "moduleSpecifier": {
263
+ "type": "string"
264
+ },
265
+ "namedImport": {
266
+ "type": "string"
267
+ },
268
+ "namespaceImport": {
269
+ "type": "string"
270
+ },
271
+ "defaultImport": {
272
+ "type": "string"
273
+ }
274
+ },
275
+ "required": [
276
+ "name"
277
+ ]
278
+ }
279
+ ]
280
+ },
281
+ "property": {
282
+ "oneOf": [
283
+ {
284
+ "type": "string"
285
+ },
286
+ {
287
+ "type": "object",
288
+ "properties": {
289
+ "name": {
290
+ "type": "string"
291
+ },
292
+ "type": {
293
+ "$ref": "#/definitions/type"
294
+ }
295
+ },
296
+ "required": [
297
+ "name"
298
+ ]
299
+ }
300
+ ],
301
+ "definitions": {
302
+ "type": {
303
+ "oneOf": [
304
+ {
305
+ "type": "string"
306
+ },
307
+ {
308
+ "type": "object",
309
+ "properties": {
310
+ "name": {
311
+ "type": "string"
312
+ },
313
+ "isTypeOnly": {
314
+ "type": "boolean"
315
+ },
316
+ "moduleSpecifier": {
317
+ "type": "string"
318
+ },
319
+ "namedImport": {
320
+ "type": "string"
321
+ },
322
+ "namespaceImport": {
323
+ "type": "string"
324
+ },
325
+ "defaultImport": {
326
+ "type": "string"
327
+ }
328
+ },
329
+ "required": [
330
+ "name"
331
+ ]
332
+ }
333
+ ]
334
+ }
335
+ }
336
+ }
337
+ }
338
+ }
@@ -0,0 +1,260 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "navigation-table-header-button-schematic",
4
+ "allOf": [
5
+ {
6
+ "allOf": [
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
+ ]
153
+ },
154
+ {
155
+ "type": "object",
156
+ "properties": {
157
+ "route": {
158
+ "type": "string",
159
+ "description": "The route path for the table action"
160
+ },
161
+ "relativeTo": {
162
+ "type": "boolean",
163
+ "description": "Indicates if the route path should be relative to the current activated route",
164
+ "default": false
165
+ }
166
+ }
167
+ }
168
+ ],
169
+ "definitions": {
170
+ "type": {
171
+ "oneOf": [
172
+ {
173
+ "type": "string"
174
+ },
175
+ {
176
+ "type": "object",
177
+ "properties": {
178
+ "name": {
179
+ "type": "string"
180
+ },
181
+ "isTypeOnly": {
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"
195
+ }
196
+ },
197
+ "required": [
198
+ "name"
199
+ ]
200
+ }
201
+ ]
202
+ },
203
+ "property": {
204
+ "oneOf": [
205
+ {
206
+ "type": "string"
207
+ },
208
+ {
209
+ "type": "object",
210
+ "properties": {
211
+ "name": {
212
+ "type": "string"
213
+ },
214
+ "type": {
215
+ "$ref": "#/definitions/type"
216
+ }
217
+ },
218
+ "required": [
219
+ "name"
220
+ ]
221
+ }
222
+ ],
223
+ "definitions": {
224
+ "type": {
225
+ "oneOf": [
226
+ {
227
+ "type": "string"
228
+ },
229
+ {
230
+ "type": "object",
231
+ "properties": {
232
+ "name": {
233
+ "type": "string"
234
+ },
235
+ "isTypeOnly": {
236
+ "type": "boolean"
237
+ },
238
+ "moduleSpecifier": {
239
+ "type": "string"
240
+ },
241
+ "namedImport": {
242
+ "type": "string"
243
+ },
244
+ "namespaceImport": {
245
+ "type": "string"
246
+ },
247
+ "defaultImport": {
248
+ "type": "string"
249
+ }
250
+ },
251
+ "required": [
252
+ "name"
253
+ ]
254
+ }
255
+ ]
256
+ }
257
+ }
258
+ }
259
+ }
260
+ }