@rxap/schematic-angular 16.2.0-dev.20 → 16.2.0-dev.22

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 (189) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +1 -1
  3. package/collection.json +15 -0
  4. package/package.json +7 -7
  5. package/src/lib/coerce-form-component.js +15 -3
  6. package/src/lib/coerce-form-component.js.map +1 -1
  7. package/src/lib/data-grid-item.d.ts +3 -3
  8. package/src/lib/data-grid-item.js +2 -2
  9. package/src/lib/data-grid-item.js.map +1 -1
  10. package/src/lib/form/abstract-control.d.ts +29 -0
  11. package/src/lib/form/abstract-control.js +37 -0
  12. package/src/lib/form/abstract-control.js.map +1 -0
  13. package/src/lib/form/array/base-form-array.d.ts +18 -0
  14. package/src/lib/form/array/base-form-array.js +40 -0
  15. package/src/lib/form/array/base-form-array.js.map +1 -0
  16. package/src/lib/form/array/form-array-kind.d.ts +3 -0
  17. package/src/lib/form/array/form-array-kind.js +8 -0
  18. package/src/lib/form/array/form-array-kind.js.map +1 -0
  19. package/src/lib/form/array/form-array.d.ts +12 -0
  20. package/src/lib/form/array/form-array.js +18 -0
  21. package/src/lib/form/array/form-array.js.map +1 -0
  22. package/src/lib/form/coerce-control-component-imports.d.ts +3 -0
  23. package/src/lib/form/coerce-control-component-imports.js +18 -0
  24. package/src/lib/form/coerce-control-component-imports.js.map +1 -0
  25. package/src/lib/form/control/autocomplete-table-select-form-control.d.ts +6 -0
  26. package/src/lib/form/control/autocomplete-table-select-form-control.js +34 -0
  27. package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -0
  28. package/src/lib/form/control/base-form-control.d.ts +14 -0
  29. package/src/lib/form/control/base-form-control.js +19 -0
  30. package/src/lib/form/control/base-form-control.js.map +1 -0
  31. package/src/lib/form/control/checkbox-form-control.d.ts +11 -0
  32. package/src/lib/form/control/checkbox-form-control.js +23 -0
  33. package/src/lib/form/control/checkbox-form-control.js.map +1 -0
  34. package/src/lib/form/control/form-control-kind.d.ts +9 -0
  35. package/src/lib/form/control/form-control-kind.js +14 -0
  36. package/src/lib/form/control/form-control-kind.js.map +1 -0
  37. package/src/lib/form/control/form-control.d.ts +18 -0
  38. package/src/lib/form/control/form-control.js +43 -0
  39. package/src/lib/form/control/form-control.js.map +1 -0
  40. package/src/lib/form/control/form-field-form-control.d.ts +33 -0
  41. package/src/lib/form/control/form-field-form-control.js +76 -0
  42. package/src/lib/form/control/form-field-form-control.js.map +1 -0
  43. package/src/lib/form/control/input-form-control.d.ts +14 -0
  44. package/src/lib/form/control/input-form-control.js +71 -0
  45. package/src/lib/form/control/input-form-control.js.map +1 -0
  46. package/src/lib/form/control/select-form-control.d.ts +18 -0
  47. package/src/lib/form/control/select-form-control.js +29 -0
  48. package/src/lib/form/control/select-form-control.js.map +1 -0
  49. package/src/lib/form/control/slide-toggle-form-control.d.ts +11 -0
  50. package/src/lib/form/control/slide-toggle-form-control.js +23 -0
  51. package/src/lib/form/control/slide-toggle-form-control.js.map +1 -0
  52. package/src/lib/form/control/table-select-form-control.d.ts +43 -0
  53. package/src/lib/form/control/table-select-form-control.js +69 -0
  54. package/src/lib/form/control/table-select-form-control.js.map +1 -0
  55. package/src/lib/form/control.d.ts +8 -0
  56. package/src/lib/form/control.js +38 -0
  57. package/src/lib/form/control.js.map +1 -0
  58. package/src/lib/form/generate-form-template.d.ts +2 -2
  59. package/src/lib/form/group/base-form-group.d.ts +17 -0
  60. package/src/lib/form/group/base-form-group.js +20 -0
  61. package/src/lib/form/group/base-form-group.js.map +1 -0
  62. package/src/lib/form/group/form-group-kind.d.ts +3 -0
  63. package/src/lib/form/group/form-group-kind.js +8 -0
  64. package/src/lib/form/group/form-group-kind.js.map +1 -0
  65. package/src/lib/form/group/form-group.d.ts +12 -0
  66. package/src/lib/form/group/form-group.js +18 -0
  67. package/src/lib/form/group/form-group.js.map +1 -0
  68. package/src/lib/table-column.d.ts +4 -3
  69. package/src/lib/table-column.js +5 -4
  70. package/src/lib/table-column.js.map +1 -1
  71. package/src/schema.json +1691 -1311
  72. package/src/schematic-input.schema.json +109 -156
  73. package/src/schematics/abstract-control.schema.json +78 -0
  74. package/src/schematics/accordion/accordion-component/schema.json +127 -127
  75. package/src/schematics/accordion/accordion-item-component/schema.json +18 -18
  76. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +685 -81
  77. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +76 -76
  78. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +555 -97
  79. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +537 -79
  80. package/src/schematics/autocomplete-table-select-form-control.schema.json +96 -0
  81. package/src/schematics/base-form-array.schema.json +45 -0
  82. package/src/schematics/base-form-control.schema.json +27 -0
  83. package/src/schematics/base-form-group.schema.json +42 -0
  84. package/src/schematics/checkbox-form-control.schema.json +30 -0
  85. package/src/schematics/control.schema.json +26 -0
  86. package/src/schematics/data-grid-component/index.js +4 -0
  87. package/src/schematics/data-grid-component/index.js.map +1 -1
  88. package/src/schematics/data-grid-component/schema.json +685 -81
  89. package/src/schematics/data-grid-item.schema.json +3 -3
  90. package/src/schematics/form/control/autocomplete-table-select-form-control/index.d.ts +10 -0
  91. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +247 -0
  92. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -0
  93. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.d.ts +4 -0
  94. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +453 -0
  95. package/src/schematics/form/control/autocomplete-table-select-form-control/template.schema.json +39 -0
  96. package/src/schematics/form/control/input-form-control/index.d.ts +1 -1
  97. package/src/schematics/form/control/input-form-control/index.js +4 -4
  98. package/src/schematics/form/control/input-form-control/index.js.map +1 -1
  99. package/src/schematics/form/control/input-form-control/schema.d.ts +2 -2
  100. package/src/schematics/form/control/input-form-control/schema.json +256 -86
  101. package/src/schematics/form/control/input-form-control/template.schema.json +16 -3
  102. package/src/schematics/form/control/select-form-control/index.d.ts +2 -2
  103. package/src/schematics/form/control/select-form-control/index.js +21 -14
  104. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  105. package/src/schematics/form/control/select-form-control/schema.d.ts +2 -3
  106. package/src/schematics/form/control/select-form-control/schema.json +249 -90
  107. package/src/schematics/form/control/select-form-control/template.schema.json +16 -3
  108. package/src/schematics/form/control/table-select-form-control/index.d.ts +3 -9
  109. package/src/schematics/form/control/table-select-form-control/index.js +24 -18
  110. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  111. package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -3
  112. package/src/schematics/form/control/table-select-form-control/schema.json +325 -123
  113. package/src/schematics/form/control/table-select-form-control/template.schema.json +16 -60
  114. package/src/schematics/form/form-array/index.d.ts +9 -0
  115. package/src/schematics/form/form-array/index.js +54 -0
  116. package/src/schematics/form/form-array/index.js.map +1 -0
  117. package/src/schematics/form/form-array/schema.d.ts +4 -0
  118. package/src/schematics/form/form-array/schema.json +906 -0
  119. package/src/schematics/form/form-array/template.schema.json +33 -0
  120. package/src/schematics/form/form-component/files/component/__componentName__.component.html.hbs +4 -1
  121. package/src/schematics/form/form-component/index.d.ts +2 -4
  122. package/src/schematics/form/form-component/index.js +8 -24
  123. package/src/schematics/form/form-component/index.js.map +1 -1
  124. package/src/schematics/form/form-component/schema.d.ts +2 -2
  125. package/src/schematics/form/form-component/schema.json +749 -86
  126. package/src/schematics/form/form-control/index.d.ts +3 -5
  127. package/src/schematics/form/form-control/index.js +8 -20
  128. package/src/schematics/form/form-control/index.js.map +1 -1
  129. package/src/schematics/form/form-control/schema.d.ts +2 -4
  130. package/src/schematics/form/form-control/schema.json +599 -59
  131. package/src/schematics/form/form-control/template.schema.json +1 -2
  132. package/src/schematics/form/form-definition/index.d.ts +2 -2
  133. package/src/schematics/form/form-definition/index.js +28 -15
  134. package/src/schematics/form/form-definition/index.js.map +1 -1
  135. package/src/schematics/form/form-definition/schema.d.ts +2 -2
  136. package/src/schematics/form/form-definition/schema.json +743 -56
  137. package/src/schematics/form/form-group/index.d.ts +9 -0
  138. package/src/schematics/form/form-group/index.js +54 -0
  139. package/src/schematics/form/form-group/index.js.map +1 -0
  140. package/src/schematics/form/form-group/schema.d.ts +4 -0
  141. package/src/schematics/form/form-group/schema.json +906 -0
  142. package/src/schematics/form/form-group/template.schema.json +33 -0
  143. package/src/schematics/form/templates/checkbox-form-control.hbs +1 -1
  144. package/src/schematics/form/templates/default-form-array.hbs +27 -0
  145. package/src/schematics/form/templates/default-form-group.hbs +13 -0
  146. package/src/schematics/form/templates/input-form-control.hbs +7 -7
  147. package/src/schematics/form/templates/select-form-control.hbs +5 -0
  148. package/src/schematics/form/templates/table-select-form-control.hbs +16 -16
  149. package/src/schematics/form-array.schema.json +40 -0
  150. package/src/schematics/form-control.schema.json +69 -54
  151. package/src/schematics/form-definition.schema.json +3 -3
  152. package/src/schematics/form-group.schema.json +40 -0
  153. package/src/schematics/input-form-control.schema.json +10 -6
  154. package/src/schematics/select-form-control.schema.json +8 -4
  155. package/src/schematics/slide-toggle-form-control.schema.json +30 -0
  156. package/src/schematics/table/action/dialog-table-action/schema.json +20 -20
  157. package/src/schematics/table/action/form-table-action/index.d.ts +2 -2
  158. package/src/schematics/table/action/form-table-action/index.js +3 -4
  159. package/src/schematics/table/action/form-table-action/index.js.map +1 -1
  160. package/src/schematics/table/action/form-table-action/schema.d.ts +2 -2
  161. package/src/schematics/table/action/form-table-action/schema.json +750 -87
  162. package/src/schematics/table/action/navigation-table-action/schema.json +20 -20
  163. package/src/schematics/table/action/open-api-table-action/schema.json +20 -20
  164. package/src/schematics/table/action/operation-table-action/schema.json +20 -20
  165. package/src/schematics/table/header-button/form-table-header-button/index.d.ts +2 -2
  166. package/src/schematics/table/header-button/form-table-header-button/index.js +2 -2
  167. package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
  168. package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +2 -2
  169. package/src/schematics/table/header-button/form-table-header-button/schema.json +818 -81
  170. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +4 -22
  171. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +20 -20
  172. package/src/schematics/table/table-action/schema.json +47 -47
  173. package/src/schematics/table/table-component/index.d.ts +2 -2
  174. package/src/schematics/table/table-component/schema.json +537 -79
  175. package/src/schematics/table/table-header-button/schema.json +40 -40
  176. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +1 -1
  177. package/src/schematics/table/tree-table-component/schema.json +521 -63
  178. package/src/schematics/table-select-form-control.schema.json +96 -0
  179. package/src/schematics/textarea-form-control.schema.json +32 -0
  180. package/src/template.schema.json +45 -0
  181. package/src/lib/form-component-control.d.ts +0 -8
  182. package/src/lib/form-component-control.js +0 -15
  183. package/src/lib/form-component-control.js.map +0 -1
  184. package/src/lib/form-control.d.ts +0 -136
  185. package/src/lib/form-control.js +0 -265
  186. package/src/lib/form-control.js.map +0 -1
  187. package/src/lib/form-definition-control.d.ts +0 -5
  188. package/src/lib/form-definition-control.js +0 -30
  189. package/src/lib/form-definition-control.js.map +0 -1
@@ -0,0 +1,906 @@
1
+ {
2
+ "$schema": "http://json-schema.org/schema",
3
+ "$id": "form-group-schematic",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/angular"
7
+ },
8
+ {
9
+ "$ref": "#/definitions/formGroup"
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
+ "baseFormArray": {
241
+ "allOf": [
242
+ {
243
+ "$ref": "#/definitions/abstractControl"
244
+ },
245
+ {
246
+ "type": "object",
247
+ "properties": {
248
+ "controlList": {
249
+ "type": "array",
250
+ "description": "The list of controls in the group",
251
+ "items": {
252
+ "$ref": "#/definitions/control"
253
+ }
254
+ },
255
+ "legend": {
256
+ "type": "string"
257
+ },
258
+ "groupLegend": {
259
+ "type": "string"
260
+ },
261
+ "kind": {
262
+ "type": "string",
263
+ "description": "The kind of the array",
264
+ "const": "default",
265
+ "default": "default"
266
+ },
267
+ "role": {
268
+ "type": "string",
269
+ "const": "array"
270
+ }
271
+ }
272
+ }
273
+ ]
274
+ },
275
+ "baseFormControl": {
276
+ "allOf": [
277
+ {
278
+ "$ref": "#/definitions/abstractControl"
279
+ },
280
+ {
281
+ "type": "object",
282
+ "properties": {
283
+ "label": {
284
+ "type": "string",
285
+ "description": "The label of the control"
286
+ },
287
+ "role": {
288
+ "type": "string",
289
+ "const": "control"
290
+ }
291
+ }
292
+ }
293
+ ]
294
+ },
295
+ "baseFormGroup": {
296
+ "allOf": [
297
+ {
298
+ "$ref": "#/definitions/abstractControl"
299
+ },
300
+ {
301
+ "type": "object",
302
+ "properties": {
303
+ "controlList": {
304
+ "type": "array",
305
+ "description": "The list of controls in the group",
306
+ "items": {
307
+ "$ref": "#/definitions/control"
308
+ }
309
+ },
310
+ "legend": {
311
+ "type": "string"
312
+ },
313
+ "kind": {
314
+ "type": "string",
315
+ "description": "The kind of the group",
316
+ "const": "default",
317
+ "default": "default"
318
+ },
319
+ "role": {
320
+ "type": "string",
321
+ "const": "group"
322
+ }
323
+ }
324
+ }
325
+ ]
326
+ },
327
+ "button": {
328
+ "type": "object",
329
+ "properties": {
330
+ "svgIcon": {
331
+ "type": "string"
332
+ },
333
+ "icon": {
334
+ "type": "string"
335
+ },
336
+ "directiveList": {
337
+ "type": "array",
338
+ "items": {
339
+ "$ref": "#/definitions/type"
340
+ }
341
+ },
342
+ "importList": {
343
+ "type": "array",
344
+ "items": {
345
+ "$ref": "#/definitions/type"
346
+ }
347
+ }
348
+ }
349
+ },
350
+ "checkboxFormControl": {
351
+ "allOf": [
352
+ {
353
+ "$ref": "#/definitions/baseFormControl"
354
+ },
355
+ {
356
+ "type": "object",
357
+ "properties": {
358
+ "kind": {
359
+ "type": "string",
360
+ "const": "checkbox"
361
+ },
362
+ "labelPosition": {
363
+ "type": "string",
364
+ "enum": [
365
+ "before",
366
+ "after"
367
+ ]
368
+ }
369
+ }
370
+ }
371
+ ]
372
+ },
373
+ "control": {
374
+ "oneOf": [
375
+ {
376
+ "$ref": "#/definitions/formGroup"
377
+ },
378
+ {
379
+ "$ref": "#/definitions/formArray"
380
+ },
381
+ {
382
+ "$ref": "#/definitions/formControl"
383
+ }
384
+ ]
385
+ },
386
+ "formArray": {
387
+ "allOf": [
388
+ {
389
+ "type": "object",
390
+ "properties": {
391
+ "role": {
392
+ "type": "string",
393
+ "const": "array"
394
+ }
395
+ }
396
+ },
397
+ {
398
+ "oneOf": [
399
+ {
400
+ "allOf": [
401
+ {
402
+ "$ref": "#/definitions/baseFormArray"
403
+ },
404
+ {
405
+ "type": "object",
406
+ "properties": {
407
+ "kind": {
408
+ "type": "string",
409
+ "const": "default"
410
+ }
411
+ }
412
+ }
413
+ ]
414
+ }
415
+ ]
416
+ }
417
+ ]
418
+ },
419
+ "formControl": {
420
+ "allOf": [
421
+ {
422
+ "type": "object",
423
+ "properties": {
424
+ "role": {
425
+ "type": "string",
426
+ "const": "control",
427
+ "default": "control"
428
+ }
429
+ }
430
+ },
431
+ {
432
+ "oneOf": [
433
+ {
434
+ "allOf": [
435
+ {
436
+ "$ref": "#/definitions/baseFormControl"
437
+ },
438
+ {
439
+ "type": "object",
440
+ "properties": {
441
+ "kind": {
442
+ "type": "string",
443
+ "const": "default"
444
+ }
445
+ }
446
+ }
447
+ ]
448
+ },
449
+ {
450
+ "$ref": "#/definitions/inputFormControl"
451
+ },
452
+ {
453
+ "$ref": "#/definitions/selectFormControl"
454
+ },
455
+ {
456
+ "$ref": "#/definitions/checkboxFormControl"
457
+ },
458
+ {
459
+ "$ref": "#/definitions/textareaFormControl"
460
+ },
461
+ {
462
+ "$ref": "#/definitions/tableSelectFormControl"
463
+ },
464
+ {
465
+ "$ref": "#/definitions/slideToggleFormControl"
466
+ },
467
+ {
468
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
469
+ }
470
+ ]
471
+ }
472
+ ]
473
+ },
474
+ "formField": {
475
+ "type": "object",
476
+ "properties": {
477
+ "label": {
478
+ "type": "string"
479
+ },
480
+ "prefixButton": {
481
+ "$ref": "#/definitions/button"
482
+ },
483
+ "suffixButton": {
484
+ "$ref": "#/definitions/button"
485
+ },
486
+ "hasClearButton": {
487
+ "type": "boolean"
488
+ }
489
+ }
490
+ },
491
+ "formGroup": {
492
+ "allOf": [
493
+ {
494
+ "type": "object",
495
+ "properties": {
496
+ "role": {
497
+ "type": "string",
498
+ "const": "group"
499
+ }
500
+ }
501
+ },
502
+ {
503
+ "oneOf": [
504
+ {
505
+ "allOf": [
506
+ {
507
+ "$ref": "#/definitions/baseFormGroup"
508
+ },
509
+ {
510
+ "type": "object",
511
+ "properties": {
512
+ "kind": {
513
+ "type": "string",
514
+ "const": "default"
515
+ }
516
+ }
517
+ }
518
+ ]
519
+ }
520
+ ]
521
+ }
522
+ ]
523
+ },
524
+ "general": {
525
+ "type": "object",
526
+ "properties": {
527
+ "project": {
528
+ "type": "string",
529
+ "description": "Project name where the files should be generated"
530
+ },
531
+ "feature": {
532
+ "type": "string",
533
+ "description": "Feature name where the files should be generated"
534
+ },
535
+ "overwrite": {
536
+ "anyOf": [
537
+ {
538
+ "type": "boolean"
539
+ },
540
+ {
541
+ "type": "array",
542
+ "items": {
543
+ "type": "string"
544
+ }
545
+ }
546
+ ],
547
+ "description": "Overwrite existing files",
548
+ "default": false
549
+ },
550
+ "overwriteHtml": {
551
+ "type": "boolean",
552
+ "default": false
553
+ },
554
+ "replace": {
555
+ "type": "boolean",
556
+ "default": false
557
+ }
558
+ }
559
+ },
560
+ "inputFormControl": {
561
+ "allOf": [
562
+ {
563
+ "$ref": "#/definitions/baseFormControl"
564
+ },
565
+ {
566
+ "type": "object",
567
+ "properties": {
568
+ "kind": {
569
+ "type": "string",
570
+ "const": "input"
571
+ },
572
+ "formField": {
573
+ "$ref": "#/definitions/formField"
574
+ },
575
+ "inputType": {
576
+ "type": "string",
577
+ "enum": [
578
+ "text",
579
+ "password",
580
+ "email",
581
+ "number",
582
+ "tel",
583
+ "url",
584
+ "checkbox",
585
+ "color",
586
+ "date",
587
+ "time",
588
+ "datetime-local",
589
+ "file",
590
+ "hidden",
591
+ "image",
592
+ "month",
593
+ "radio",
594
+ "reset",
595
+ "button",
596
+ "search",
597
+ "submit",
598
+ "week",
599
+ "range"
600
+ ]
601
+ },
602
+ "placeholder": {
603
+ "type": "string"
604
+ }
605
+ }
606
+ }
607
+ ]
608
+ },
609
+ "property": {
610
+ "oneOf": [
611
+ {
612
+ "type": "string"
613
+ },
614
+ {
615
+ "type": "object",
616
+ "properties": {
617
+ "name": {
618
+ "type": "string"
619
+ },
620
+ "type": {
621
+ "$ref": "#/definitions/type"
622
+ },
623
+ "isArray": {
624
+ "type": "boolean"
625
+ }
626
+ },
627
+ "required": [
628
+ "name"
629
+ ]
630
+ }
631
+ ]
632
+ },
633
+ "selectFormControl": {
634
+ "allOf": [
635
+ {
636
+ "$ref": "#/definitions/baseFormControl"
637
+ },
638
+ {
639
+ "type": "object",
640
+ "properties": {
641
+ "formField": {
642
+ "$ref": "#/definitions/formField"
643
+ },
644
+ "kind": {
645
+ "type": "string",
646
+ "const": "select"
647
+ },
648
+ "optionList": {
649
+ "type": "array",
650
+ "items": {
651
+ "type": "object",
652
+ "properties": {
653
+ "display": {
654
+ "type": "string"
655
+ },
656
+ "value": {
657
+ "oneOf": [
658
+ {
659
+ "type": "string"
660
+ },
661
+ {
662
+ "type": "number"
663
+ },
664
+ {
665
+ "type": "boolean"
666
+ },
667
+ {
668
+ "type": "object",
669
+ "additionalProperties": true
670
+ }
671
+ ]
672
+ }
673
+ }
674
+ }
675
+ },
676
+ "backend": {
677
+ "$ref": "#/definitions/backend"
678
+ },
679
+ "multiple": {
680
+ "alias": "multi",
681
+ "type": "boolean",
682
+ "description": "Whether the select form control is multiple mode"
683
+ }
684
+ }
685
+ }
686
+ ]
687
+ },
688
+ "slideToggleFormControl": {
689
+ "allOf": [
690
+ {
691
+ "$ref": "#/definitions/baseFormControl"
692
+ },
693
+ {
694
+ "type": "object",
695
+ "properties": {
696
+ "kind": {
697
+ "type": "string",
698
+ "const": "slide-toggle"
699
+ },
700
+ "labelPosition": {
701
+ "type": "string",
702
+ "enum": [
703
+ "before",
704
+ "after"
705
+ ]
706
+ }
707
+ }
708
+ }
709
+ ]
710
+ },
711
+ "tableSelectFormControl": {
712
+ "allOf": [
713
+ {
714
+ "$ref": "#/definitions/baseFormControl"
715
+ },
716
+ {
717
+ "type": "object",
718
+ "properties": {
719
+ "formField": {
720
+ "$ref": "#/definitions/formField"
721
+ },
722
+ "kind": {
723
+ "type": "string",
724
+ "const": "table-select"
725
+ },
726
+ "placeholder": {
727
+ "type": "string"
728
+ },
729
+ "columnList": {
730
+ "alias": "column",
731
+ "type": "array",
732
+ "items": {
733
+ "description": "table column name",
734
+ "type": "object",
735
+ "properties": {
736
+ "name": {
737
+ "type": "string",
738
+ "description": "table column name"
739
+ },
740
+ "title": {
741
+ "type": "string",
742
+ "description": "table column label"
743
+ },
744
+ "hasFilter": {
745
+ "type": "boolean",
746
+ "description": "Whether the column has a filter"
747
+ },
748
+ "kind": {
749
+ "type": "string",
750
+ "description": "The kind of data in the column"
751
+ }
752
+ }
753
+ },
754
+ "description": "List of table column names"
755
+ },
756
+ "title": {
757
+ "type": "string",
758
+ "description": "The title of the table select window"
759
+ },
760
+ "toDisplay": {
761
+ "type": "object",
762
+ "properties": {
763
+ "property": {
764
+ "$ref": "#/definitions/property"
765
+ }
766
+ }
767
+ },
768
+ "toValue": {
769
+ "type": "object",
770
+ "properties": {
771
+ "property": {
772
+ "$ref": "#/definitions/property"
773
+ }
774
+ }
775
+ },
776
+ "upstream": {
777
+ "$ref": "#/definitions/upstream"
778
+ },
779
+ "resolver": {
780
+ "type": "object",
781
+ "properties": {
782
+ "upstream": {
783
+ "$ref": "#/definitions/upstream"
784
+ }
785
+ }
786
+ }
787
+ }
788
+ }
789
+ ]
790
+ },
791
+ "textareaFormControl": {
792
+ "allOf": [
793
+ {
794
+ "$ref": "#/definitions/baseFormControl"
795
+ },
796
+ {
797
+ "type": "object",
798
+ "properties": {
799
+ "formField": {
800
+ "$ref": "#/definitions/formField"
801
+ },
802
+ "kind": {
803
+ "type": "string",
804
+ "const": "textarea"
805
+ },
806
+ "placeholder": {
807
+ "type": "string"
808
+ }
809
+ }
810
+ }
811
+ ]
812
+ },
813
+ "type": {
814
+ "oneOf": [
815
+ {
816
+ "type": "string"
817
+ },
818
+ {
819
+ "type": "object",
820
+ "properties": {
821
+ "name": {
822
+ "type": "string"
823
+ },
824
+ "isTypeOnly": {
825
+ "type": "boolean"
826
+ },
827
+ "moduleSpecifier": {
828
+ "type": "string"
829
+ },
830
+ "namedImport": {
831
+ "type": "string"
832
+ },
833
+ "namespaceImport": {
834
+ "type": "string"
835
+ },
836
+ "defaultImport": {
837
+ "type": "string"
838
+ }
839
+ },
840
+ "required": [
841
+ "name"
842
+ ]
843
+ }
844
+ ]
845
+ },
846
+ "upstream": {
847
+ "oneOf": [
848
+ {
849
+ "type": "object",
850
+ "properties": {
851
+ "kind": {
852
+ "type": "string",
853
+ "enum": [
854
+ "open-api"
855
+ ]
856
+ },
857
+ "operationId": {
858
+ "type": "string"
859
+ },
860
+ "scope": {
861
+ "type": "string"
862
+ },
863
+ "mapper": {
864
+ "type": "object",
865
+ "properties": {
866
+ "pageIndex": {
867
+ "type": "string"
868
+ },
869
+ "pageSize": {
870
+ "type": "string"
871
+ },
872
+ "sortBy": {
873
+ "type": "string"
874
+ },
875
+ "sortDirection": {
876
+ "type": "string"
877
+ },
878
+ "list": {
879
+ "type": "string"
880
+ },
881
+ "total": {
882
+ "type": "string"
883
+ },
884
+ "filter": {
885
+ "type": "object",
886
+ "properties": {
887
+ "eq": {
888
+ "type": "string"
889
+ },
890
+ "join": {
891
+ "type": "string"
892
+ }
893
+ }
894
+ }
895
+ }
896
+ }
897
+ },
898
+ "required": [
899
+ "kind",
900
+ "operationId"
901
+ ]
902
+ }
903
+ ]
904
+ }
905
+ }
906
+ }