@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.
Files changed (135) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +1 -1
  3. package/package.json +8 -8
  4. package/src/lib/accordion-identifier.d.ts +4 -0
  5. package/src/lib/accordion-identifier.js.map +1 -1
  6. package/src/lib/accordion-item.d.ts +13 -6
  7. package/src/lib/accordion-item.js +19 -4
  8. package/src/lib/accordion-item.js.map +1 -1
  9. package/src/lib/coerce-accordion-component.js +1 -1
  10. package/src/lib/coerce-accordion-component.js.map +1 -1
  11. package/src/lib/coerce-accordion-item-table-component.js +1 -1
  12. package/src/lib/coerce-accordion-item-table-component.js.map +1 -1
  13. package/src/lib/data-grid-options.d.ts +9 -1
  14. package/src/lib/data-grid-options.js +36 -6
  15. package/src/lib/data-grid-options.js.map +1 -1
  16. package/src/lib/form-control.d.ts +9 -3
  17. package/src/lib/form-control.js +19 -54
  18. package/src/lib/form-control.js.map +1 -1
  19. package/src/lib/merge-with-column-list.js +3 -1
  20. package/src/lib/merge-with-column-list.js.map +1 -1
  21. package/src/lib/minimum-table-component-options.js +2 -2
  22. package/src/lib/minimum-table-component-options.js.map +1 -1
  23. package/src/lib/pipe-option.js +0 -2
  24. package/src/lib/pipe-option.js.map +1 -1
  25. package/src/lib/table-column.d.ts +9 -5
  26. package/src/lib/table-column.js +36 -60
  27. package/src/lib/table-column.js.map +1 -1
  28. package/src/schema.json +2368 -0
  29. package/src/schematic-input.schema.json +607 -0
  30. package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
  31. package/src/schematics/accordion/accordion-component/index.js +51 -25
  32. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  33. package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
  34. package/src/schematics/accordion/accordion-component/schema.json +183 -360
  35. package/src/schematics/accordion/accordion-component/template.schema.json +22 -25
  36. package/src/schematics/accordion/accordion-item-component/index.d.ts +7 -2
  37. package/src/schematics/accordion/accordion-item-component/index.js +70 -49
  38. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  39. package/src/schematics/accordion/accordion-item-component/schema.json +167 -336
  40. package/src/schematics/accordion/accordion-item-component/template.schema.json +8 -15
  41. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
  42. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +21 -25
  43. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  44. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +331 -429
  45. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +9 -15
  46. package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
  47. package/src/schematics/accordion/item/accordion-item-switch-component/index.js +14 -6
  48. package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
  49. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +174 -346
  50. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +6 -15
  51. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
  52. package/src/schematics/accordion/item/accordion-item-table-component/index.js +11 -13
  53. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  54. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +453 -614
  55. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +9 -18
  56. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
  57. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +37 -61
  58. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  59. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +431 -592
  60. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +10 -19
  61. package/src/schematics/accordion-identifier.schema.json +25 -0
  62. package/src/schematics/accordion-item.schema.json +24 -0
  63. package/src/schematics/angular.schema.json +11 -3
  64. package/src/schematics/button.schema.json +1 -1
  65. package/src/schematics/data-grid-component/index.d.ts +2 -3
  66. package/src/schematics/data-grid-component/index.js +42 -45
  67. package/src/schematics/data-grid-component/index.js.map +1 -1
  68. package/src/schematics/data-grid-component/schema.json +261 -375
  69. package/src/schematics/data-grid-component/template.schema.json +6 -15
  70. package/src/schematics/data-grid-item.schema.json +4 -1
  71. package/src/schematics/data-grid.schema.json +26 -4
  72. package/src/schematics/dialog-component/schema.json +72 -158
  73. package/src/schematics/dialog-component/template.schema.json +3 -6
  74. package/src/schematics/form/control/input-form-control/schema.json +108 -306
  75. package/src/schematics/form/control/input-form-control/template.schema.json +6 -9
  76. package/src/schematics/form/control/select-form-control/schema.json +120 -307
  77. package/src/schematics/form/control/select-form-control/template.schema.json +6 -9
  78. package/src/schematics/form/control/table-select-form-control/index.d.ts +7 -1
  79. package/src/schematics/form/control/table-select-form-control/index.js +195 -149
  80. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  81. package/src/schematics/form/control/table-select-form-control/schema.json +101 -296
  82. package/src/schematics/form/control/table-select-form-control/template.schema.json +11 -6
  83. package/src/schematics/form/form-component/index.d.ts +2 -0
  84. package/src/schematics/form/form-component/index.js +6 -4
  85. package/src/schematics/form/form-component/index.js.map +1 -1
  86. package/src/schematics/form/form-component/schema.d.ts +3 -1
  87. package/src/schematics/form/form-component/schema.json +176 -233
  88. package/src/schematics/form/form-component/template.schema.json +6 -9
  89. package/src/schematics/form/form-control/schema.json +68 -176
  90. package/src/schematics/form/form-control/template.schema.json +6 -9
  91. package/src/schematics/form/form-definition/schema.json +125 -230
  92. package/src/schematics/form/form-definition/template.schema.json +6 -9
  93. package/src/schematics/form-component.schema.json +9 -3
  94. package/src/schematics/form-definition.schema.json +3 -3
  95. package/src/schematics/general.schema.json +1 -4
  96. package/src/schematics/input-form-control.schema.json +11 -3
  97. package/src/schematics/minimum-table.schema.json +11 -5
  98. package/src/schematics/pipe.schema.json +1 -1
  99. package/src/schematics/select-form-control.schema.json +15 -4
  100. package/src/schematics/table/action/dialog-table-action/schema.json +150 -230
  101. package/src/schematics/table/action/dialog-table-action/template.schema.json +3 -6
  102. package/src/schematics/table/action/form-table-action/schema.json +317 -310
  103. package/src/schematics/table/action/form-table-action/template.schema.json +6 -6
  104. package/src/schematics/table/action/navigation-table-action/schema.json +150 -230
  105. package/src/schematics/table/action/navigation-table-action/template.schema.json +3 -6
  106. package/src/schematics/table/action/open-api-table-action/schema.json +150 -230
  107. package/src/schematics/table/action/open-api-table-action/template.schema.json +3 -6
  108. package/src/schematics/table/action/operation-table-action/schema.json +138 -218
  109. package/src/schematics/table/action/operation-table-action/template.schema.json +3 -6
  110. package/src/schematics/table/header-button/form-table-header-button/schema.json +217 -261
  111. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +6 -6
  112. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +131 -211
  113. package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +3 -6
  114. package/src/schematics/table/table-action/schema.json +56 -139
  115. package/src/schematics/table/table-action/template.schema.json +6 -6
  116. package/src/schematics/table/table-component/index.d.ts +10 -2
  117. package/src/schematics/table/table-component/index.js +13 -1
  118. package/src/schematics/table/table-component/index.js.map +1 -1
  119. package/src/schematics/table/table-component/schema.json +352 -547
  120. package/src/schematics/table/table-component/template.schema.json +6 -18
  121. package/src/schematics/table/table-header-button/schema.json +56 -139
  122. package/src/schematics/table/table-header-button/template.schema.json +6 -6
  123. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +6 -0
  124. package/src/schematics/table/tree-table-component/index.d.ts +3 -0
  125. package/src/schematics/table/tree-table-component/index.js +11 -3
  126. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  127. package/src/schematics/table/tree-table-component/schema.json +352 -547
  128. package/src/schematics/table/tree-table-component/template.schema.json +6 -18
  129. package/src/schematics/table-column.schema.json +4 -1
  130. package/src/schematics/table.schema.json +4 -1
  131. package/src/schematics/tree-component/schema.json +70 -62
  132. package/src/schematics/tree-component/template.schema.json +7 -2
  133. package/src/schematics/tree-table.schema.json +3 -3
  134. package/src/schematics/value.schema.json +1 -1
  135. package/src/template.schema.json +173 -0
@@ -3,99 +3,7 @@
3
3
  "$id": "accordion-component-schematic",
4
4
  "allOf": [
5
5
  {
6
- "allOf": [
7
- {
8
- "type": "object",
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
- ]
45
- },
46
- {
47
- "type": "object",
48
- "properties": {
49
- "componentName": {
50
- "type": "string"
51
- },
52
- "name": {
53
- "type": "string"
54
- },
55
- "context": {
56
- "type": "string",
57
- "description": "The context use to generate proper names for class, files, etc"
58
- },
59
- "nestModule": {
60
- "type": "string",
61
- "description": "The module name for the table nest operations"
62
- },
63
- "controllerName": {
64
- "type": "string"
65
- },
66
- "backend": {
67
- "type": "string",
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"
76
- },
77
- "directory": {
78
- "type": "string",
79
- "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"
80
- },
81
- "shared": {
82
- "type": "boolean",
83
- "description": "Whether the generated code is used across the project",
84
- "default": false
85
- },
86
- "scope": {
87
- "type": "string"
88
- },
89
- "prefix": {
90
- "type": "string"
91
- },
92
- "openApi": {
93
- "type": "object",
94
- "additionalProperties": true
95
- }
96
- }
97
- }
98
- ]
6
+ "$ref": "#/definitions/angular"
99
7
  },
100
8
  {
101
9
  "type": "object",
@@ -133,22 +41,7 @@
133
41
  ]
134
42
  },
135
43
  "identifier": {
136
- "type": "object",
137
- "properties": {
138
- "property": {
139
- "$ref": "#/definitions/property"
140
- },
141
- "source": {
142
- "type": "string",
143
- "enum": [
144
- "route"
145
- ],
146
- "default": "route"
147
- }
148
- },
149
- "required": [
150
- "property"
151
- ]
44
+ "$ref": "#/definitions/accordionIdentifier"
152
45
  },
153
46
  "header": {
154
47
  "oneOf": [
@@ -183,11 +76,72 @@
183
76
  "$ref": "#/definitions/accordionItem"
184
77
  },
185
78
  "description": "The list of accordion expansion panels"
79
+ },
80
+ "upstream": {
81
+ "$ref": "#/definitions/upstream"
82
+ },
83
+ "propertyList": {
84
+ "alias": "property",
85
+ "type": "array",
86
+ "items": {
87
+ "$ref": "#/definitions/property"
88
+ }
186
89
  }
187
90
  }
188
91
  }
189
92
  ],
190
93
  "definitions": {
94
+ "angular": {
95
+ "allOf": [
96
+ {
97
+ "$ref": "#/definitions/general"
98
+ },
99
+ {
100
+ "type": "object",
101
+ "properties": {
102
+ "componentName": {
103
+ "type": "string"
104
+ },
105
+ "name": {
106
+ "type": "string"
107
+ },
108
+ "context": {
109
+ "type": "string",
110
+ "description": "The context use to generate proper names for class, files, etc"
111
+ },
112
+ "nestModule": {
113
+ "type": "string",
114
+ "description": "The module name for the table nest operations"
115
+ },
116
+ "controllerName": {
117
+ "type": "string"
118
+ },
119
+ "backend": {
120
+ "$ref": "#/definitions/backend"
121
+ },
122
+ "directory": {
123
+ "type": "string",
124
+ "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"
125
+ },
126
+ "shared": {
127
+ "type": "boolean",
128
+ "description": "Whether the generated code is used across the project",
129
+ "default": false
130
+ },
131
+ "scope": {
132
+ "type": "string"
133
+ },
134
+ "prefix": {
135
+ "type": "string"
136
+ },
137
+ "openApi": {
138
+ "type": "object",
139
+ "additionalProperties": true
140
+ }
141
+ }
142
+ }
143
+ ]
144
+ },
191
145
  "accordionItem": {
192
146
  "type": "object",
193
147
  "properties": {
@@ -212,48 +166,28 @@
212
166
  },
213
167
  "description": "The modifiers to apply to the accordion item type"
214
168
  },
169
+ "identifier": {
170
+ "$ref": "#/definitions/accordionIdentifier"
171
+ },
215
172
  "title": {
216
173
  "type": "string"
217
174
  },
218
175
  "description": {
219
176
  "type": "string"
177
+ },
178
+ "upstream": {
179
+ "$ref": "#/definitions/upstream"
180
+ },
181
+ "propertyList": {
182
+ "alias": "property",
183
+ "type": "array",
184
+ "items": {
185
+ "$ref": "#/definitions/property"
186
+ }
220
187
  }
221
188
  },
222
189
  "additionalProperties": true
223
190
  },
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
191
  "property": {
258
192
  "oneOf": [
259
193
  {
@@ -276,221 +210,133 @@
276
210
  "name"
277
211
  ]
278
212
  }
279
- ],
280
- "definitions": {
281
- "type": {
282
- "oneOf": [
283
- {
284
- "type": "string"
285
- },
286
- {
287
- "type": "object",
288
- "properties": {
289
- "name": {
290
- "type": "string"
291
- },
292
- "isTypeOnly": {
293
- "type": "boolean"
294
- },
295
- "moduleSpecifier": {
296
- "type": "string"
297
- },
298
- "namedImport": {
299
- "type": "string"
300
- },
301
- "namespaceImport": {
302
- "type": "string"
303
- },
304
- "defaultImport": {
305
- "type": "string"
306
- }
307
- },
308
- "required": [
309
- "name"
310
- ]
311
- }
312
- ]
313
- }
314
- }
213
+ ]
315
214
  },
316
- "button": {
215
+ "accordionIdentifier": {
317
216
  "type": "object",
318
217
  "properties": {
319
- "svgIcon": {
320
- "type": "string"
218
+ "property": {
219
+ "$ref": "#/definitions/property"
321
220
  },
322
- "icon": {
323
- "type": "string"
324
- },
325
- "directiveList": {
326
- "type": "array",
327
- "items": {
328
- "$ref": "#/definitions/type"
329
- }
330
- },
331
- "importList": {
332
- "type": "array",
333
- "items": {
334
- "$ref": "#/definitions/type"
335
- }
221
+ "source": {
222
+ "type": "string",
223
+ "enum": [
224
+ "route"
225
+ ],
226
+ "default": "route"
336
227
  }
337
228
  },
338
- "definitions": {
339
- "type": {
340
- "oneOf": [
341
- {
342
- "type": "string"
343
- },
344
- {
345
- "type": "object",
346
- "properties": {
347
- "name": {
348
- "type": "string"
349
- },
350
- "isTypeOnly": {
351
- "type": "boolean"
352
- },
353
- "moduleSpecifier": {
354
- "type": "string"
355
- },
356
- "namedImport": {
357
- "type": "string"
358
- },
359
- "namespaceImport": {
360
- "type": "string"
361
- },
362
- "defaultImport": {
363
- "type": "string"
364
- }
365
- },
366
- "required": [
367
- "name"
368
- ]
369
- }
370
- ]
371
- }
372
- }
229
+ "required": [
230
+ "property"
231
+ ]
373
232
  },
374
- "pipe": {
233
+ "upstream": {
375
234
  "oneOf": [
376
235
  {
377
- "type": "string"
378
- },
379
- {
380
- "allOf": [
381
- {
382
- "$ref": "#/definitions/type"
383
- },
384
- {
385
- "type": "object",
386
- "properties": {
387
- "argumentList": {
388
- "type": "array",
389
- "items": {
390
- "$ref": "#/definitions/value"
391
- }
392
- }
393
- },
394
- "required": [
395
- "name"
236
+ "type": "object",
237
+ "properties": {
238
+ "kind": {
239
+ "type": "string",
240
+ "enum": [
241
+ "open-api"
396
242
  ]
397
- }
398
- ]
399
- }
400
- ],
401
- "definitions": {
402
- "type": {
403
- "oneOf": [
404
- {
243
+ },
244
+ "operationId": {
405
245
  "type": "string"
406
246
  },
407
- {
247
+ "scope": {
248
+ "type": "string"
249
+ },
250
+ "mapper": {
408
251
  "type": "object",
409
252
  "properties": {
410
- "name": {
253
+ "pageIndex": {
411
254
  "type": "string"
412
255
  },
413
- "isTypeOnly": {
414
- "type": "boolean"
415
- },
416
- "moduleSpecifier": {
256
+ "pageSize": {
417
257
  "type": "string"
418
258
  },
419
- "namedImport": {
259
+ "sortBy": {
420
260
  "type": "string"
421
261
  },
422
- "namespaceImport": {
262
+ "sortDirection": {
423
263
  "type": "string"
424
264
  },
425
- "defaultImport": {
265
+ "list": {
426
266
  "type": "string"
427
- }
428
- },
429
- "required": [
430
- "name"
431
- ]
432
- }
433
- ]
434
- },
435
- "value": {
436
- "oneOf": [
437
- {
438
- "type": "string"
439
- },
440
- {
441
- "type": "object",
442
- "properties": {
443
- "type": {
444
- "$ref": "#/definitions/type"
445
267
  },
446
- "value": {
447
- "type": "string"
448
- }
449
- },
450
- "required": [
451
- "value"
452
- ]
453
- }
454
- ],
455
- "definitions": {
456
- "type": {
457
- "oneOf": [
458
- {
268
+ "total": {
459
269
  "type": "string"
460
270
  },
461
- {
271
+ "filter": {
462
272
  "type": "object",
463
273
  "properties": {
464
- "name": {
274
+ "eq": {
465
275
  "type": "string"
466
276
  },
467
- "isTypeOnly": {
468
- "type": "boolean"
469
- },
470
- "moduleSpecifier": {
471
- "type": "string"
472
- },
473
- "namedImport": {
474
- "type": "string"
475
- },
476
- "namespaceImport": {
477
- "type": "string"
478
- },
479
- "defaultImport": {
277
+ "join": {
480
278
  "type": "string"
481
279
  }
482
- },
483
- "required": [
484
- "name"
485
- ]
280
+ }
486
281
  }
487
- ]
282
+ }
488
283
  }
489
- }
284
+ },
285
+ "required": [
286
+ "kind",
287
+ "operationId"
288
+ ]
289
+ }
290
+ ]
291
+ },
292
+ "backend": {
293
+ "type": "string",
294
+ "description": "The backend that should be used to handel data",
295
+ "enum": [
296
+ "none",
297
+ "nestjs",
298
+ "open-api",
299
+ "local"
300
+ ],
301
+ "default": "none"
302
+ },
303
+ "general": {
304
+ "type": "object",
305
+ "properties": {
306
+ "project": {
307
+ "type": "string",
308
+ "description": "Project name where the files should be generated"
309
+ },
310
+ "feature": {
311
+ "type": "string",
312
+ "description": "Feature name where the files should be generated"
313
+ },
314
+ "overwrite": {
315
+ "anyOf": [
316
+ {
317
+ "type": "boolean"
318
+ },
319
+ {
320
+ "type": "array",
321
+ "items": {
322
+ "type": "string"
323
+ }
324
+ }
325
+ ],
326
+ "description": "Overwrite existing files",
327
+ "default": false
328
+ },
329
+ "overwriteHtml": {
330
+ "type": "boolean",
331
+ "default": false
332
+ },
333
+ "replace": {
334
+ "type": "boolean",
335
+ "default": false
490
336
  }
491
337
  }
492
338
  },
493
- "value": {
339
+ "type": {
494
340
  "oneOf": [
495
341
  {
496
342
  "type": "string"
@@ -498,53 +344,30 @@
498
344
  {
499
345
  "type": "object",
500
346
  "properties": {
501
- "type": {
502
- "$ref": "#/definitions/type"
347
+ "name": {
348
+ "type": "string"
349
+ },
350
+ "isTypeOnly": {
351
+ "type": "boolean"
503
352
  },
504
- "value": {
353
+ "moduleSpecifier": {
505
354
  "type": "string"
506
- }
507
- },
508
- "required": [
509
- "value"
510
- ]
511
- }
512
- ],
513
- "definitions": {
514
- "type": {
515
- "oneOf": [
516
- {
355
+ },
356
+ "namedImport": {
517
357
  "type": "string"
518
358
  },
519
- {
520
- "type": "object",
521
- "properties": {
522
- "name": {
523
- "type": "string"
524
- },
525
- "isTypeOnly": {
526
- "type": "boolean"
527
- },
528
- "moduleSpecifier": {
529
- "type": "string"
530
- },
531
- "namedImport": {
532
- "type": "string"
533
- },
534
- "namespaceImport": {
535
- "type": "string"
536
- },
537
- "defaultImport": {
538
- "type": "string"
539
- }
540
- },
541
- "required": [
542
- "name"
543
- ]
359
+ "namespaceImport": {
360
+ "type": "string"
361
+ },
362
+ "defaultImport": {
363
+ "type": "string"
544
364
  }
365
+ },
366
+ "required": [
367
+ "name"
545
368
  ]
546
369
  }
547
- }
370
+ ]
548
371
  }
549
372
  }
550
373
  }