@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
@@ -133,6 +133,86 @@
133
133
  }
134
134
  ]
135
135
  },
136
+ "autocompleteTableSelectFormControl": {
137
+ "allOf": [
138
+ {
139
+ "$ref": "#/definitions/baseFormControl"
140
+ },
141
+ {
142
+ "type": "object",
143
+ "properties": {
144
+ "formField": {
145
+ "$ref": "#/definitions/formField"
146
+ },
147
+ "kind": {
148
+ "type": "string",
149
+ "const": "table-select"
150
+ },
151
+ "placeholder": {
152
+ "type": "string"
153
+ },
154
+ "columnList": {
155
+ "alias": "column",
156
+ "type": "array",
157
+ "items": {
158
+ "description": "table column name",
159
+ "type": "object",
160
+ "properties": {
161
+ "name": {
162
+ "type": "string",
163
+ "description": "table column name"
164
+ },
165
+ "title": {
166
+ "type": "string",
167
+ "description": "table column label"
168
+ },
169
+ "hasFilter": {
170
+ "type": "boolean",
171
+ "description": "Whether the column has a filter"
172
+ },
173
+ "kind": {
174
+ "type": "string",
175
+ "description": "The kind of data in the column"
176
+ }
177
+ }
178
+ },
179
+ "description": "List of table column names"
180
+ },
181
+ "title": {
182
+ "type": "string",
183
+ "description": "The title of the table select window"
184
+ },
185
+ "toDisplay": {
186
+ "type": "object",
187
+ "properties": {
188
+ "property": {
189
+ "$ref": "#/definitions/property"
190
+ }
191
+ }
192
+ },
193
+ "toValue": {
194
+ "type": "object",
195
+ "properties": {
196
+ "property": {
197
+ "$ref": "#/definitions/property"
198
+ }
199
+ }
200
+ },
201
+ "upstream": {
202
+ "$ref": "#/definitions/upstream"
203
+ },
204
+ "resolver": {
205
+ "type": "object",
206
+ "properties": {
207
+ "upstream": {
208
+ "$ref": "#/definitions/upstream"
209
+ }
210
+ }
211
+ }
212
+ }
213
+ }
214
+ ]
215
+ },
136
216
  "backend": {
137
217
  "type": "string",
138
218
  "description": "The backend that should be used to handel data",
@@ -210,6 +290,38 @@
210
290
  }
211
291
  ]
212
292
  },
293
+ "cssClass": {
294
+ "oneOf": [
295
+ {
296
+ "type": "string"
297
+ },
298
+ {
299
+ "type": "array",
300
+ "items": {
301
+ "type": "string"
302
+ }
303
+ },
304
+ {
305
+ "type": "object",
306
+ "properties": {
307
+ "name": {
308
+ "type": "string"
309
+ }
310
+ }
311
+ },
312
+ {
313
+ "type": "array",
314
+ "items": {
315
+ "type": "object",
316
+ "properties": {
317
+ "name": {
318
+ "type": "string"
319
+ }
320
+ }
321
+ }
322
+ }
323
+ ]
324
+ },
213
325
  "formControl": {
214
326
  "allOf": [
215
327
  {
@@ -257,6 +369,9 @@
257
369
  },
258
370
  {
259
371
  "$ref": "#/definitions/slideToggleFormControl"
372
+ },
373
+ {
374
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
260
375
  }
261
376
  ]
262
377
  }
@@ -442,6 +557,9 @@
442
557
  "type": "string"
443
558
  },
444
559
  "description": "The table modifiers"
560
+ },
561
+ "cssClass": {
562
+ "$ref": "#/definitions/cssClass"
445
563
  }
446
564
  }
447
565
  },
@@ -622,8 +740,7 @@
622
740
  "description": "Value for the color input of the mat-button / mat-icon component"
623
741
  },
624
742
  "cssClass": {
625
- "type": "string",
626
- "description": "Additional CSS classes added to the button element"
743
+ "$ref": "#/definitions/cssClass"
627
744
  },
628
745
  "options": {
629
746
  "type": "object",
@@ -668,7 +785,7 @@
668
785
  "type": "boolean"
669
786
  },
670
787
  "cssClass": {
671
- "type": "string"
788
+ "$ref": "#/definitions/cssClass"
672
789
  },
673
790
  "title": {
674
791
  "type": "string"
@@ -47,8 +47,7 @@
47
47
  "description": "Value for the color input of the mat-button / mat-icon component"
48
48
  },
49
49
  "cssClass": {
50
- "type": "string",
51
- "description": "Additional CSS classes added to the button element"
50
+ "$ref": "#/definitions/cssClass"
52
51
  },
53
52
  "options": {
54
53
  "type": "object",
@@ -57,5 +56,10 @@
57
56
  },
58
57
  "required": [
59
58
  "type"
60
- ]
59
+ ],
60
+ "definitions": {
61
+ "cssClass": {
62
+ "$ref": "./css-class.schema.json"
63
+ }
64
+ }
61
65
  }
@@ -34,7 +34,7 @@
34
34
  "type": "boolean"
35
35
  },
36
36
  "cssClass": {
37
- "type": "string"
37
+ "$ref": "#/definitions/cssClass"
38
38
  },
39
39
  "title": {
40
40
  "type": "string"
@@ -70,6 +70,9 @@
70
70
  },
71
71
  "pipe": {
72
72
  "$ref": "./pipe.schema.json"
73
+ },
74
+ "cssClass": {
75
+ "$ref": "./css-class.schema.json"
73
76
  }
74
77
  }
75
78
  }
@@ -0,0 +1 @@
1
+ class="{{#each cssClass}}{{this.name}}{{#unless @last}} {{/unless}}{{/each}}"
@@ -64,6 +64,9 @@
64
64
  "tableSelectFormControlSchematic": {
65
65
  "$ref": "schematics/form/control/table-select-form-control/template.schema.json"
66
66
  },
67
+ "autocompleteTableSelectFormControlSchematic": {
68
+ "$ref": "schematics/form/control/autocomplete-table-select-form-control/template.schema.json"
69
+ },
67
70
  "formControlSchematic": {
68
71
  "$ref": "schematics/form/form-control/template.schema.json"
69
72
  },
@@ -109,6 +112,9 @@
109
112
  "angular": {
110
113
  "$ref": "schematics/angular.schema.json"
111
114
  },
115
+ "autocompleteTableSelectFormControl": {
116
+ "$ref": "schematics/autocomplete-table-select-form-control.schema.json"
117
+ },
112
118
  "backend": {
113
119
  "$ref": "schematics/backend.schema.json"
114
120
  },
@@ -130,6 +136,9 @@
130
136
  "control": {
131
137
  "$ref": "schematics/control.schema.json"
132
138
  },
139
+ "cssClass": {
140
+ "$ref": "schematics/css-class.schema.json"
141
+ },
133
142
  "dataGridItem": {
134
143
  "$ref": "schematics/data-grid-item.schema.json"
135
144
  },