@rxap/schematic-angular 16.2.0-dev.21 → 16.2.0-dev.23

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 (86) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -1
  3. package/collection.json +5 -0
  4. package/package.json +9 -9
  5. package/src/lib/accordion-header.js +7 -4
  6. package/src/lib/accordion-header.js.map +1 -1
  7. package/src/lib/accordion-item.js +17 -17
  8. package/src/lib/accordion-item.js.map +1 -1
  9. package/src/lib/coerce-form-component.js +3 -2
  10. package/src/lib/coerce-form-component.js.map +1 -1
  11. package/src/lib/css-class.d.ts +8 -0
  12. package/src/lib/css-class.js +28 -0
  13. package/src/lib/css-class.js.map +1 -0
  14. package/src/lib/data-grid-item.js +10 -7
  15. package/src/lib/data-grid-item.js.map +1 -1
  16. package/src/lib/form/control/autocomplete-table-select-form-control.d.ts +6 -0
  17. package/src/lib/form/control/autocomplete-table-select-form-control.js +34 -0
  18. package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -0
  19. package/src/lib/form/control/form-control-kind.d.ts +2 -1
  20. package/src/lib/form/control/form-control-kind.js +1 -0
  21. package/src/lib/form/control/form-control-kind.js.map +1 -1
  22. package/src/lib/form/control/form-control.d.ts +1 -1
  23. package/src/lib/form/control/form-control.js +3 -0
  24. package/src/lib/form/control/form-control.js.map +1 -1
  25. package/src/lib/load-handlebars-template.d.ts +1 -0
  26. package/src/lib/load-handlebars-template.js +5 -1
  27. package/src/lib/load-handlebars-template.js.map +1 -1
  28. package/src/lib/minimum-table-options.d.ts +3 -0
  29. package/src/lib/minimum-table-options.js +2 -0
  30. package/src/lib/minimum-table-options.js.map +1 -1
  31. package/src/lib/table-action.js.map +1 -1
  32. package/src/lib/table-column.d.ts +3 -1
  33. package/src/lib/table-column.js +2 -2
  34. package/src/lib/table-column.js.map +1 -1
  35. package/src/lib/table-row-action.d.ts +4 -2
  36. package/src/lib/table-row-action.js +8 -7
  37. package/src/lib/table-row-action.js.map +1 -1
  38. package/src/schema.json +159 -3
  39. package/src/schematic-input.schema.json +19 -0
  40. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +83 -0
  41. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +120 -3
  42. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +120 -3
  43. package/src/schematics/autocomplete-table-select-form-control.schema.json +96 -0
  44. package/src/schematics/css-class.schema.json +34 -0
  45. package/src/schematics/data-grid-component/index.js +1 -0
  46. package/src/schematics/data-grid-component/index.js.map +1 -1
  47. package/src/schematics/data-grid-component/schema.json +83 -0
  48. package/src/schematics/form/control/autocomplete-table-select-form-control/index.d.ts +10 -0
  49. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +247 -0
  50. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -0
  51. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.d.ts +4 -0
  52. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +453 -0
  53. package/src/schematics/form/control/autocomplete-table-select-form-control/template.schema.json +39 -0
  54. package/src/schematics/form/form-array/schema.json +83 -0
  55. package/src/schematics/form/form-component/schema.json +83 -0
  56. package/src/schematics/form/form-control/schema.json +83 -0
  57. package/src/schematics/form/form-definition/schema.json +83 -0
  58. package/src/schematics/form/form-group/schema.json +83 -0
  59. package/src/schematics/form-control.schema.json +6 -0
  60. package/src/schematics/minimum-table.schema.json +6 -0
  61. package/src/schematics/table/action/dialog-table-action/schema.json +33 -2
  62. package/src/schematics/table/action/form-table-action/schema.json +116 -2
  63. package/src/schematics/table/action/navigation-table-action/schema.json +33 -2
  64. package/src/schematics/table/action/open-api-table-action/schema.json +33 -2
  65. package/src/schematics/table/action/operation-table-action/schema.json +33 -2
  66. package/src/schematics/table/header-button/form-table-header-button/schema.json +83 -0
  67. package/src/schematics/table/table-action/schema.json +33 -2
  68. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +7 -5
  69. package/src/schematics/table/table-component/index.js +1 -0
  70. package/src/schematics/table/table-component/index.js.map +1 -1
  71. package/src/schematics/table/table-component/schema.json +120 -3
  72. package/src/schematics/table/templates/boolean-table-column.hbs +3 -2
  73. package/src/schematics/table/templates/component-table-column.hbs +3 -2
  74. package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +3 -2
  75. package/src/schematics/table/templates/date-table-column.hbs +3 -2
  76. package/src/schematics/table/templates/default-table-column.hbs +1 -1
  77. package/src/schematics/table/templates/icon-table-column.hbs +3 -2
  78. package/src/schematics/table/templates/link-table-column.hbs +3 -2
  79. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +7 -5
  80. package/src/schematics/table/tree-table-component/index.js +1 -0
  81. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  82. package/src/schematics/table/tree-table-component/schema.json +120 -3
  83. package/src/schematics/table-action.schema.json +7 -3
  84. package/src/schematics/table-column.schema.json +4 -1
  85. package/src/schematics/templates/css-class.hbs +1 -0
  86. package/src/template.schema.json +9 -0
@@ -0,0 +1,453 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "autocomplete-table-select-form-control-schematic",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/angular"
7
+ },
8
+ {
9
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
10
+ },
11
+ {
12
+ "type": "object",
13
+ "properties": {
14
+ "formName": {
15
+ "alias": "form",
16
+ "type": "string",
17
+ "description": "The name of the form where the form control should be added"
18
+ }
19
+ },
20
+ "required": [
21
+ "formName"
22
+ ]
23
+ }
24
+ ],
25
+ "definitions": {
26
+ "abstractControl": {
27
+ "allOf": [
28
+ {
29
+ "$ref": "#/definitions/property"
30
+ },
31
+ {
32
+ "type": "object",
33
+ "properties": {
34
+ "name": {
35
+ "type": "string",
36
+ "description": "The name of the control"
37
+ },
38
+ "isArray": {
39
+ "type": "boolean",
40
+ "description": "Whether the control value is an array",
41
+ "default": false
42
+ },
43
+ "state": {
44
+ "type": "string",
45
+ "description": "The initial state of the control"
46
+ },
47
+ "isRequired": {
48
+ "type": "boolean",
49
+ "description": "Whether the control value is required",
50
+ "default": false
51
+ },
52
+ "isReadonly": {
53
+ "type": "boolean",
54
+ "description": "Whether the control value is readonly",
55
+ "default": false
56
+ },
57
+ "isDisabled": {
58
+ "type": "boolean",
59
+ "description": "Whether the control value is disabled",
60
+ "default": false
61
+ },
62
+ "validatorList": {
63
+ "type": "array",
64
+ "items": {
65
+ "type": "string"
66
+ }
67
+ },
68
+ "kind": {
69
+ "type": "string",
70
+ "description": "The kind of the control",
71
+ "default": "default"
72
+ },
73
+ "importList": {
74
+ "type": "array",
75
+ "items": {
76
+ "$ref": "#/definitions/type"
77
+ }
78
+ },
79
+ "template": {
80
+ "type": "string",
81
+ "description": "The template of the control"
82
+ },
83
+ "role": {
84
+ "type": "string",
85
+ "description": "The role of the control",
86
+ "enum": [
87
+ "control",
88
+ "group",
89
+ "array"
90
+ ],
91
+ "default": "control"
92
+ }
93
+ },
94
+ "additionalProperties": true
95
+ }
96
+ ]
97
+ },
98
+ "angular": {
99
+ "allOf": [
100
+ {
101
+ "$ref": "#/definitions/general"
102
+ },
103
+ {
104
+ "type": "object",
105
+ "properties": {
106
+ "componentName": {
107
+ "type": "string"
108
+ },
109
+ "name": {
110
+ "type": "string"
111
+ },
112
+ "context": {
113
+ "type": "string",
114
+ "description": "The context use to generate proper names for class, files, etc"
115
+ },
116
+ "nestModule": {
117
+ "type": "string",
118
+ "description": "The module name for the table nest operations"
119
+ },
120
+ "controllerName": {
121
+ "type": "string"
122
+ },
123
+ "backend": {
124
+ "$ref": "#/definitions/backend"
125
+ },
126
+ "directory": {
127
+ "type": "string",
128
+ "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"
129
+ },
130
+ "shared": {
131
+ "type": "boolean",
132
+ "description": "Whether the generated code is used across the project",
133
+ "default": false
134
+ },
135
+ "scope": {
136
+ "type": "string"
137
+ },
138
+ "prefix": {
139
+ "type": "string"
140
+ },
141
+ "openApi": {
142
+ "type": "object",
143
+ "additionalProperties": true
144
+ }
145
+ }
146
+ }
147
+ ]
148
+ },
149
+ "autocompleteTableSelectFormControl": {
150
+ "allOf": [
151
+ {
152
+ "$ref": "#/definitions/baseFormControl"
153
+ },
154
+ {
155
+ "type": "object",
156
+ "properties": {
157
+ "formField": {
158
+ "$ref": "#/definitions/formField"
159
+ },
160
+ "kind": {
161
+ "type": "string",
162
+ "const": "table-select"
163
+ },
164
+ "placeholder": {
165
+ "type": "string"
166
+ },
167
+ "columnList": {
168
+ "alias": "column",
169
+ "type": "array",
170
+ "items": {
171
+ "description": "table column name",
172
+ "type": "object",
173
+ "properties": {
174
+ "name": {
175
+ "type": "string",
176
+ "description": "table column name"
177
+ },
178
+ "title": {
179
+ "type": "string",
180
+ "description": "table column label"
181
+ },
182
+ "hasFilter": {
183
+ "type": "boolean",
184
+ "description": "Whether the column has a filter"
185
+ },
186
+ "kind": {
187
+ "type": "string",
188
+ "description": "The kind of data in the column"
189
+ }
190
+ }
191
+ },
192
+ "description": "List of table column names"
193
+ },
194
+ "title": {
195
+ "type": "string",
196
+ "description": "The title of the table select window"
197
+ },
198
+ "toDisplay": {
199
+ "type": "object",
200
+ "properties": {
201
+ "property": {
202
+ "$ref": "#/definitions/property"
203
+ }
204
+ }
205
+ },
206
+ "toValue": {
207
+ "type": "object",
208
+ "properties": {
209
+ "property": {
210
+ "$ref": "#/definitions/property"
211
+ }
212
+ }
213
+ },
214
+ "upstream": {
215
+ "$ref": "#/definitions/upstream"
216
+ },
217
+ "resolver": {
218
+ "type": "object",
219
+ "properties": {
220
+ "upstream": {
221
+ "$ref": "#/definitions/upstream"
222
+ }
223
+ }
224
+ }
225
+ }
226
+ }
227
+ ]
228
+ },
229
+ "backend": {
230
+ "type": "string",
231
+ "description": "The backend that should be used to handel data",
232
+ "enum": [
233
+ "none",
234
+ "nestjs",
235
+ "open-api",
236
+ "local"
237
+ ],
238
+ "default": "none"
239
+ },
240
+ "baseFormControl": {
241
+ "allOf": [
242
+ {
243
+ "$ref": "#/definitions/abstractControl"
244
+ },
245
+ {
246
+ "type": "object",
247
+ "properties": {
248
+ "label": {
249
+ "type": "string",
250
+ "description": "The label of the control"
251
+ },
252
+ "role": {
253
+ "type": "string",
254
+ "const": "control"
255
+ }
256
+ }
257
+ }
258
+ ]
259
+ },
260
+ "button": {
261
+ "type": "object",
262
+ "properties": {
263
+ "svgIcon": {
264
+ "type": "string"
265
+ },
266
+ "icon": {
267
+ "type": "string"
268
+ },
269
+ "directiveList": {
270
+ "type": "array",
271
+ "items": {
272
+ "$ref": "#/definitions/type"
273
+ }
274
+ },
275
+ "importList": {
276
+ "type": "array",
277
+ "items": {
278
+ "$ref": "#/definitions/type"
279
+ }
280
+ }
281
+ }
282
+ },
283
+ "formField": {
284
+ "type": "object",
285
+ "properties": {
286
+ "label": {
287
+ "type": "string"
288
+ },
289
+ "prefixButton": {
290
+ "$ref": "#/definitions/button"
291
+ },
292
+ "suffixButton": {
293
+ "$ref": "#/definitions/button"
294
+ },
295
+ "hasClearButton": {
296
+ "type": "boolean"
297
+ }
298
+ }
299
+ },
300
+ "general": {
301
+ "type": "object",
302
+ "properties": {
303
+ "project": {
304
+ "type": "string",
305
+ "description": "Project name where the files should be generated"
306
+ },
307
+ "feature": {
308
+ "type": "string",
309
+ "description": "Feature name where the files should be generated"
310
+ },
311
+ "overwrite": {
312
+ "anyOf": [
313
+ {
314
+ "type": "boolean"
315
+ },
316
+ {
317
+ "type": "array",
318
+ "items": {
319
+ "type": "string"
320
+ }
321
+ }
322
+ ],
323
+ "description": "Overwrite existing files",
324
+ "default": false
325
+ },
326
+ "overwriteHtml": {
327
+ "type": "boolean",
328
+ "default": false
329
+ },
330
+ "replace": {
331
+ "type": "boolean",
332
+ "default": false
333
+ }
334
+ }
335
+ },
336
+ "property": {
337
+ "oneOf": [
338
+ {
339
+ "type": "string"
340
+ },
341
+ {
342
+ "type": "object",
343
+ "properties": {
344
+ "name": {
345
+ "type": "string"
346
+ },
347
+ "type": {
348
+ "$ref": "#/definitions/type"
349
+ },
350
+ "isArray": {
351
+ "type": "boolean"
352
+ }
353
+ },
354
+ "required": [
355
+ "name"
356
+ ]
357
+ }
358
+ ]
359
+ },
360
+ "type": {
361
+ "oneOf": [
362
+ {
363
+ "type": "string"
364
+ },
365
+ {
366
+ "type": "object",
367
+ "properties": {
368
+ "name": {
369
+ "type": "string"
370
+ },
371
+ "isTypeOnly": {
372
+ "type": "boolean"
373
+ },
374
+ "moduleSpecifier": {
375
+ "type": "string"
376
+ },
377
+ "namedImport": {
378
+ "type": "string"
379
+ },
380
+ "namespaceImport": {
381
+ "type": "string"
382
+ },
383
+ "defaultImport": {
384
+ "type": "string"
385
+ }
386
+ },
387
+ "required": [
388
+ "name"
389
+ ]
390
+ }
391
+ ]
392
+ },
393
+ "upstream": {
394
+ "oneOf": [
395
+ {
396
+ "type": "object",
397
+ "properties": {
398
+ "kind": {
399
+ "type": "string",
400
+ "enum": [
401
+ "open-api"
402
+ ]
403
+ },
404
+ "operationId": {
405
+ "type": "string"
406
+ },
407
+ "scope": {
408
+ "type": "string"
409
+ },
410
+ "mapper": {
411
+ "type": "object",
412
+ "properties": {
413
+ "pageIndex": {
414
+ "type": "string"
415
+ },
416
+ "pageSize": {
417
+ "type": "string"
418
+ },
419
+ "sortBy": {
420
+ "type": "string"
421
+ },
422
+ "sortDirection": {
423
+ "type": "string"
424
+ },
425
+ "list": {
426
+ "type": "string"
427
+ },
428
+ "total": {
429
+ "type": "string"
430
+ },
431
+ "filter": {
432
+ "type": "object",
433
+ "properties": {
434
+ "eq": {
435
+ "type": "string"
436
+ },
437
+ "join": {
438
+ "type": "string"
439
+ }
440
+ }
441
+ }
442
+ }
443
+ }
444
+ },
445
+ "required": [
446
+ "kind",
447
+ "operationId"
448
+ ]
449
+ }
450
+ ]
451
+ }
452
+ }
453
+ }
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "autocomplete-table-select-form-control-schematic",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/angular"
7
+ },
8
+ {
9
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
10
+ },
11
+ {
12
+ "type": "object",
13
+ "properties": {
14
+ "formName": {
15
+ "alias": "form",
16
+ "type": "string",
17
+ "description": "The name of the form where the form control should be added"
18
+ }
19
+ },
20
+ "required": [
21
+ "formName"
22
+ ]
23
+ }
24
+ ],
25
+ "definitions": {
26
+ "angular": {
27
+ "$ref": "../../../angular.schema.json"
28
+ },
29
+ "property": {
30
+ "$ref": "../../../property.schema.json"
31
+ },
32
+ "upstream": {
33
+ "$ref": "../../../upstream.schema.json"
34
+ },
35
+ "autocompleteTableSelectFormControl": {
36
+ "$ref": "../../../autocomplete-table-select-form-control.schema.json"
37
+ }
38
+ }
39
+ }
@@ -146,6 +146,86 @@
146
146
  }
147
147
  ]
148
148
  },
149
+ "autocompleteTableSelectFormControl": {
150
+ "allOf": [
151
+ {
152
+ "$ref": "#/definitions/baseFormControl"
153
+ },
154
+ {
155
+ "type": "object",
156
+ "properties": {
157
+ "formField": {
158
+ "$ref": "#/definitions/formField"
159
+ },
160
+ "kind": {
161
+ "type": "string",
162
+ "const": "table-select"
163
+ },
164
+ "placeholder": {
165
+ "type": "string"
166
+ },
167
+ "columnList": {
168
+ "alias": "column",
169
+ "type": "array",
170
+ "items": {
171
+ "description": "table column name",
172
+ "type": "object",
173
+ "properties": {
174
+ "name": {
175
+ "type": "string",
176
+ "description": "table column name"
177
+ },
178
+ "title": {
179
+ "type": "string",
180
+ "description": "table column label"
181
+ },
182
+ "hasFilter": {
183
+ "type": "boolean",
184
+ "description": "Whether the column has a filter"
185
+ },
186
+ "kind": {
187
+ "type": "string",
188
+ "description": "The kind of data in the column"
189
+ }
190
+ }
191
+ },
192
+ "description": "List of table column names"
193
+ },
194
+ "title": {
195
+ "type": "string",
196
+ "description": "The title of the table select window"
197
+ },
198
+ "toDisplay": {
199
+ "type": "object",
200
+ "properties": {
201
+ "property": {
202
+ "$ref": "#/definitions/property"
203
+ }
204
+ }
205
+ },
206
+ "toValue": {
207
+ "type": "object",
208
+ "properties": {
209
+ "property": {
210
+ "$ref": "#/definitions/property"
211
+ }
212
+ }
213
+ },
214
+ "upstream": {
215
+ "$ref": "#/definitions/upstream"
216
+ },
217
+ "resolver": {
218
+ "type": "object",
219
+ "properties": {
220
+ "upstream": {
221
+ "$ref": "#/definitions/upstream"
222
+ }
223
+ }
224
+ }
225
+ }
226
+ }
227
+ ]
228
+ },
149
229
  "backend": {
150
230
  "type": "string",
151
231
  "description": "The backend that should be used to handel data",
@@ -383,6 +463,9 @@
383
463
  },
384
464
  {
385
465
  "$ref": "#/definitions/slideToggleFormControl"
466
+ },
467
+ {
468
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
386
469
  }
387
470
  ]
388
471
  }
@@ -151,6 +151,86 @@
151
151
  }
152
152
  ]
153
153
  },
154
+ "autocompleteTableSelectFormControl": {
155
+ "allOf": [
156
+ {
157
+ "$ref": "#/definitions/baseFormControl"
158
+ },
159
+ {
160
+ "type": "object",
161
+ "properties": {
162
+ "formField": {
163
+ "$ref": "#/definitions/formField"
164
+ },
165
+ "kind": {
166
+ "type": "string",
167
+ "const": "table-select"
168
+ },
169
+ "placeholder": {
170
+ "type": "string"
171
+ },
172
+ "columnList": {
173
+ "alias": "column",
174
+ "type": "array",
175
+ "items": {
176
+ "description": "table column name",
177
+ "type": "object",
178
+ "properties": {
179
+ "name": {
180
+ "type": "string",
181
+ "description": "table column name"
182
+ },
183
+ "title": {
184
+ "type": "string",
185
+ "description": "table column label"
186
+ },
187
+ "hasFilter": {
188
+ "type": "boolean",
189
+ "description": "Whether the column has a filter"
190
+ },
191
+ "kind": {
192
+ "type": "string",
193
+ "description": "The kind of data in the column"
194
+ }
195
+ }
196
+ },
197
+ "description": "List of table column names"
198
+ },
199
+ "title": {
200
+ "type": "string",
201
+ "description": "The title of the table select window"
202
+ },
203
+ "toDisplay": {
204
+ "type": "object",
205
+ "properties": {
206
+ "property": {
207
+ "$ref": "#/definitions/property"
208
+ }
209
+ }
210
+ },
211
+ "toValue": {
212
+ "type": "object",
213
+ "properties": {
214
+ "property": {
215
+ "$ref": "#/definitions/property"
216
+ }
217
+ }
218
+ },
219
+ "upstream": {
220
+ "$ref": "#/definitions/upstream"
221
+ },
222
+ "resolver": {
223
+ "type": "object",
224
+ "properties": {
225
+ "upstream": {
226
+ "$ref": "#/definitions/upstream"
227
+ }
228
+ }
229
+ }
230
+ }
231
+ }
232
+ ]
233
+ },
154
234
  "backend": {
155
235
  "type": "string",
156
236
  "description": "The backend that should be used to handel data",
@@ -423,6 +503,9 @@
423
503
  },
424
504
  {
425
505
  "$ref": "#/definitions/slideToggleFormControl"
506
+ },
507
+ {
508
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
426
509
  }
427
510
  ]
428
511
  }