@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,394 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "select-form-control-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
+ "$ref": "#/allOf/1/allOf/1/properties/backend"
70
+ },
71
+ "directory": {
72
+ "type": "string",
73
+ "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"
74
+ },
75
+ "shared": {
76
+ "type": "boolean",
77
+ "description": "Whether the generated code is used across the project",
78
+ "default": false
79
+ },
80
+ "scope": {
81
+ "type": "string"
82
+ },
83
+ "prefix": {
84
+ "type": "string"
85
+ },
86
+ "openApi": {
87
+ "type": "object",
88
+ "additionalProperties": true
89
+ }
90
+ }
91
+ }
92
+ ]
93
+ },
94
+ {
95
+ "type": "object",
96
+ "properties": {
97
+ "name": {
98
+ "type": "string",
99
+ "description": "The name of the control"
100
+ },
101
+ "type": {
102
+ "$ref": "#/definitions/type"
103
+ },
104
+ "isArray": {
105
+ "type": "boolean",
106
+ "description": "Whether the control value is an array",
107
+ "default": false
108
+ },
109
+ "state": {
110
+ "type": "string",
111
+ "description": "The initial state of the control"
112
+ },
113
+ "isRequired": {
114
+ "type": "boolean",
115
+ "description": "Whether the control value is required",
116
+ "default": false
117
+ },
118
+ "isReadonly": {
119
+ "type": "boolean",
120
+ "description": "Whether the control value is readonly",
121
+ "default": false
122
+ },
123
+ "isDisabled": {
124
+ "type": "boolean",
125
+ "description": "Whether the control value is disabled",
126
+ "default": false
127
+ },
128
+ "validatorList": {
129
+ "type": "array",
130
+ "items": {
131
+ "type": "string"
132
+ }
133
+ },
134
+ "kind": {
135
+ "type": "string",
136
+ "description": "The name of the template",
137
+ "enum": [
138
+ "default",
139
+ "input",
140
+ "select",
141
+ "checkbox",
142
+ "autocomplete-table-select",
143
+ "table-select",
144
+ "textarea",
145
+ "slide-toggle"
146
+ ],
147
+ "default": "default"
148
+ }
149
+ },
150
+ "required": [
151
+ "name"
152
+ ],
153
+ "additionalProperties": true
154
+ },
155
+ {
156
+ "type": "object",
157
+ "properties": {
158
+ "formName": {
159
+ "alias": "form",
160
+ "type": "string",
161
+ "description": "The name of the form where the form control should be added",
162
+ "x-prompt": "Enter the name of the form where the form control should be added"
163
+ }
164
+ },
165
+ "required": [
166
+ "formName"
167
+ ]
168
+ }
169
+ ]
170
+ },
171
+ {
172
+ "allOf": [
173
+ {
174
+ "$ref": "#/allOf/0/allOf/1"
175
+ },
176
+ {
177
+ "type": "object",
178
+ "properties": {
179
+ "formField": {
180
+ "type": "object",
181
+ "properties": {
182
+ "label": {
183
+ "type": "string"
184
+ },
185
+ "prefixButton": {
186
+ "$ref": "#/definitions/button"
187
+ },
188
+ "suffixButton": {
189
+ "$ref": "#/definitions/button"
190
+ },
191
+ "hasClearButton": {
192
+ "type": "boolean"
193
+ }
194
+ }
195
+ },
196
+ "options": {
197
+ "type": "array",
198
+ "items": {
199
+ "type": "object",
200
+ "properties": {
201
+ "display": {
202
+ "type": "string"
203
+ },
204
+ "value": {
205
+ "oneOf": [
206
+ {
207
+ "type": "string"
208
+ },
209
+ {
210
+ "type": "number"
211
+ },
212
+ {
213
+ "type": "boolean"
214
+ },
215
+ {
216
+ "type": "object",
217
+ "additionalProperties": true
218
+ }
219
+ ]
220
+ }
221
+ }
222
+ }
223
+ },
224
+ "backend": {
225
+ "type": "string",
226
+ "description": "The backend that should be used to handel data",
227
+ "enum": [
228
+ "none",
229
+ "nestjs",
230
+ "open-api",
231
+ "local"
232
+ ],
233
+ "default": "none"
234
+ },
235
+ "multiple": {
236
+ "alias": "multi",
237
+ "type": "boolean",
238
+ "description": "Whether the select form control is multiple mode"
239
+ }
240
+ }
241
+ }
242
+ ]
243
+ }
244
+ ],
245
+ "definitions": {
246
+ "type": {
247
+ "oneOf": [
248
+ {
249
+ "type": "string"
250
+ },
251
+ {
252
+ "type": "object",
253
+ "properties": {
254
+ "name": {
255
+ "type": "string"
256
+ },
257
+ "isTypeOnly": {
258
+ "type": "boolean"
259
+ },
260
+ "moduleSpecifier": {
261
+ "type": "string"
262
+ },
263
+ "namedImport": {
264
+ "type": "string"
265
+ },
266
+ "namespaceImport": {
267
+ "type": "string"
268
+ },
269
+ "defaultImport": {
270
+ "type": "string"
271
+ }
272
+ },
273
+ "required": [
274
+ "name"
275
+ ]
276
+ }
277
+ ]
278
+ },
279
+ "property": {
280
+ "oneOf": [
281
+ {
282
+ "type": "string"
283
+ },
284
+ {
285
+ "type": "object",
286
+ "properties": {
287
+ "name": {
288
+ "type": "string"
289
+ },
290
+ "type": {
291
+ "$ref": "#/definitions/type"
292
+ }
293
+ },
294
+ "required": [
295
+ "name"
296
+ ]
297
+ }
298
+ ],
299
+ "definitions": {
300
+ "type": {
301
+ "oneOf": [
302
+ {
303
+ "type": "string"
304
+ },
305
+ {
306
+ "type": "object",
307
+ "properties": {
308
+ "name": {
309
+ "type": "string"
310
+ },
311
+ "isTypeOnly": {
312
+ "type": "boolean"
313
+ },
314
+ "moduleSpecifier": {
315
+ "type": "string"
316
+ },
317
+ "namedImport": {
318
+ "type": "string"
319
+ },
320
+ "namespaceImport": {
321
+ "type": "string"
322
+ },
323
+ "defaultImport": {
324
+ "type": "string"
325
+ }
326
+ },
327
+ "required": [
328
+ "name"
329
+ ]
330
+ }
331
+ ]
332
+ }
333
+ }
334
+ },
335
+ "button": {
336
+ "type": "object",
337
+ "properties": {
338
+ "svgIcon": {
339
+ "type": "string"
340
+ },
341
+ "icon": {
342
+ "type": "string"
343
+ },
344
+ "directiveList": {
345
+ "type": "array",
346
+ "items": {
347
+ "$ref": "#/definitions/type"
348
+ }
349
+ },
350
+ "importList": {
351
+ "type": "array",
352
+ "items": {
353
+ "$ref": "#/definitions/type"
354
+ }
355
+ }
356
+ },
357
+ "definitions": {
358
+ "type": {
359
+ "oneOf": [
360
+ {
361
+ "type": "string"
362
+ },
363
+ {
364
+ "type": "object",
365
+ "properties": {
366
+ "name": {
367
+ "type": "string"
368
+ },
369
+ "isTypeOnly": {
370
+ "type": "boolean"
371
+ },
372
+ "moduleSpecifier": {
373
+ "type": "string"
374
+ },
375
+ "namedImport": {
376
+ "type": "string"
377
+ },
378
+ "namespaceImport": {
379
+ "type": "string"
380
+ },
381
+ "defaultImport": {
382
+ "type": "string"
383
+ }
384
+ },
385
+ "required": [
386
+ "name"
387
+ ]
388
+ }
389
+ ]
390
+ }
391
+ }
392
+ }
393
+ }
394
+ }