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

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