@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
@@ -14,8 +14,7 @@
14
14
  "formName": {
15
15
  "alias": "form",
16
16
  "type": "string",
17
- "description": "The name of the form where the form control should be added",
18
- "x-prompt": "Enter the name of the form where the form control should be added"
17
+ "description": "The name of the form where the form control should be added"
19
18
  }
20
19
  },
21
20
  "required": [
@@ -24,6 +23,78 @@
24
23
  }
25
24
  ],
26
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
+ },
27
98
  "angular": {
28
99
  "allOf": [
29
100
  {
@@ -75,77 +146,151 @@
75
146
  }
76
147
  ]
77
148
  },
78
- "formControl": {
149
+ "backend": {
150
+ "type": "string",
151
+ "description": "The backend that should be used to handel data",
152
+ "enum": [
153
+ "none",
154
+ "nestjs",
155
+ "open-api",
156
+ "local"
157
+ ],
158
+ "default": "none"
159
+ },
160
+ "baseFormControl": {
161
+ "allOf": [
162
+ {
163
+ "$ref": "#/definitions/abstractControl"
164
+ },
165
+ {
166
+ "type": "object",
167
+ "properties": {
168
+ "label": {
169
+ "type": "string",
170
+ "description": "The label of the control"
171
+ },
172
+ "role": {
173
+ "type": "string",
174
+ "const": "control"
175
+ }
176
+ }
177
+ }
178
+ ]
179
+ },
180
+ "button": {
79
181
  "type": "object",
80
182
  "properties": {
81
- "name": {
82
- "type": "string",
83
- "description": "The name of the control"
84
- },
85
- "type": {
86
- "$ref": "#/definitions/type"
87
- },
88
- "isArray": {
89
- "type": "boolean",
90
- "description": "Whether the control value is an array",
91
- "default": false
92
- },
93
- "state": {
94
- "type": "string",
95
- "description": "The initial state of the control"
96
- },
97
- "isRequired": {
98
- "type": "boolean",
99
- "description": "Whether the control value is required",
100
- "default": false
183
+ "svgIcon": {
184
+ "type": "string"
101
185
  },
102
- "isReadonly": {
103
- "type": "boolean",
104
- "description": "Whether the control value is readonly",
105
- "default": false
186
+ "icon": {
187
+ "type": "string"
106
188
  },
107
- "isDisabled": {
108
- "type": "boolean",
109
- "description": "Whether the control value is disabled",
110
- "default": false
189
+ "directiveList": {
190
+ "type": "array",
191
+ "items": {
192
+ "$ref": "#/definitions/type"
193
+ }
111
194
  },
112
- "validatorList": {
195
+ "importList": {
113
196
  "type": "array",
114
197
  "items": {
115
- "type": "string"
198
+ "$ref": "#/definitions/type"
116
199
  }
200
+ }
201
+ }
202
+ },
203
+ "checkboxFormControl": {
204
+ "allOf": [
205
+ {
206
+ "$ref": "#/definitions/baseFormControl"
117
207
  },
118
- "kind": {
119
- "type": "string",
120
- "description": "The name of the template",
121
- "enum": [
122
- "default",
123
- "input",
124
- "select",
125
- "checkbox",
126
- "autocomplete-table-select",
127
- "table-select",
128
- "textarea",
129
- "slide-toggle"
130
- ],
131
- "default": "default"
208
+ {
209
+ "type": "object",
210
+ "properties": {
211
+ "kind": {
212
+ "type": "string",
213
+ "const": "checkbox"
214
+ },
215
+ "labelPosition": {
216
+ "type": "string",
217
+ "enum": [
218
+ "before",
219
+ "after"
220
+ ]
221
+ }
222
+ }
132
223
  }
133
- },
134
- "required": [
135
- "name"
136
- ],
137
- "additionalProperties": true
224
+ ]
138
225
  },
139
- "backend": {
140
- "type": "string",
141
- "description": "The backend that should be used to handel data",
142
- "enum": [
143
- "none",
144
- "nestjs",
145
- "open-api",
146
- "local"
147
- ],
148
- "default": "none"
226
+ "formControl": {
227
+ "allOf": [
228
+ {
229
+ "type": "object",
230
+ "properties": {
231
+ "role": {
232
+ "type": "string",
233
+ "const": "control",
234
+ "default": "control"
235
+ }
236
+ }
237
+ },
238
+ {
239
+ "oneOf": [
240
+ {
241
+ "allOf": [
242
+ {
243
+ "$ref": "#/definitions/baseFormControl"
244
+ },
245
+ {
246
+ "type": "object",
247
+ "properties": {
248
+ "kind": {
249
+ "type": "string",
250
+ "const": "default"
251
+ }
252
+ }
253
+ }
254
+ ]
255
+ },
256
+ {
257
+ "$ref": "#/definitions/inputFormControl"
258
+ },
259
+ {
260
+ "$ref": "#/definitions/selectFormControl"
261
+ },
262
+ {
263
+ "$ref": "#/definitions/checkboxFormControl"
264
+ },
265
+ {
266
+ "$ref": "#/definitions/textareaFormControl"
267
+ },
268
+ {
269
+ "$ref": "#/definitions/tableSelectFormControl"
270
+ },
271
+ {
272
+ "$ref": "#/definitions/slideToggleFormControl"
273
+ }
274
+ ]
275
+ }
276
+ ]
277
+ },
278
+ "formField": {
279
+ "type": "object",
280
+ "properties": {
281
+ "label": {
282
+ "type": "string"
283
+ },
284
+ "prefixButton": {
285
+ "$ref": "#/definitions/button"
286
+ },
287
+ "suffixButton": {
288
+ "$ref": "#/definitions/button"
289
+ },
290
+ "hasClearButton": {
291
+ "type": "boolean"
292
+ }
293
+ }
149
294
  },
150
295
  "general": {
151
296
  "type": "object",
@@ -183,6 +328,259 @@
183
328
  }
184
329
  }
185
330
  },
331
+ "inputFormControl": {
332
+ "allOf": [
333
+ {
334
+ "$ref": "#/definitions/baseFormControl"
335
+ },
336
+ {
337
+ "type": "object",
338
+ "properties": {
339
+ "kind": {
340
+ "type": "string",
341
+ "const": "input"
342
+ },
343
+ "formField": {
344
+ "$ref": "#/definitions/formField"
345
+ },
346
+ "inputType": {
347
+ "type": "string",
348
+ "enum": [
349
+ "text",
350
+ "password",
351
+ "email",
352
+ "number",
353
+ "tel",
354
+ "url",
355
+ "checkbox",
356
+ "color",
357
+ "date",
358
+ "time",
359
+ "datetime-local",
360
+ "file",
361
+ "hidden",
362
+ "image",
363
+ "month",
364
+ "radio",
365
+ "reset",
366
+ "button",
367
+ "search",
368
+ "submit",
369
+ "week",
370
+ "range"
371
+ ]
372
+ },
373
+ "placeholder": {
374
+ "type": "string"
375
+ }
376
+ }
377
+ }
378
+ ]
379
+ },
380
+ "property": {
381
+ "oneOf": [
382
+ {
383
+ "type": "string"
384
+ },
385
+ {
386
+ "type": "object",
387
+ "properties": {
388
+ "name": {
389
+ "type": "string"
390
+ },
391
+ "type": {
392
+ "$ref": "#/definitions/type"
393
+ },
394
+ "isArray": {
395
+ "type": "boolean"
396
+ }
397
+ },
398
+ "required": [
399
+ "name"
400
+ ]
401
+ }
402
+ ]
403
+ },
404
+ "selectFormControl": {
405
+ "allOf": [
406
+ {
407
+ "$ref": "#/definitions/baseFormControl"
408
+ },
409
+ {
410
+ "type": "object",
411
+ "properties": {
412
+ "formField": {
413
+ "$ref": "#/definitions/formField"
414
+ },
415
+ "kind": {
416
+ "type": "string",
417
+ "const": "select"
418
+ },
419
+ "optionList": {
420
+ "type": "array",
421
+ "items": {
422
+ "type": "object",
423
+ "properties": {
424
+ "display": {
425
+ "type": "string"
426
+ },
427
+ "value": {
428
+ "oneOf": [
429
+ {
430
+ "type": "string"
431
+ },
432
+ {
433
+ "type": "number"
434
+ },
435
+ {
436
+ "type": "boolean"
437
+ },
438
+ {
439
+ "type": "object",
440
+ "additionalProperties": true
441
+ }
442
+ ]
443
+ }
444
+ }
445
+ }
446
+ },
447
+ "backend": {
448
+ "$ref": "#/definitions/backend"
449
+ },
450
+ "multiple": {
451
+ "alias": "multi",
452
+ "type": "boolean",
453
+ "description": "Whether the select form control is multiple mode"
454
+ }
455
+ }
456
+ }
457
+ ]
458
+ },
459
+ "slideToggleFormControl": {
460
+ "allOf": [
461
+ {
462
+ "$ref": "#/definitions/baseFormControl"
463
+ },
464
+ {
465
+ "type": "object",
466
+ "properties": {
467
+ "kind": {
468
+ "type": "string",
469
+ "const": "slide-toggle"
470
+ },
471
+ "labelPosition": {
472
+ "type": "string",
473
+ "enum": [
474
+ "before",
475
+ "after"
476
+ ]
477
+ }
478
+ }
479
+ }
480
+ ]
481
+ },
482
+ "tableSelectFormControl": {
483
+ "allOf": [
484
+ {
485
+ "$ref": "#/definitions/baseFormControl"
486
+ },
487
+ {
488
+ "type": "object",
489
+ "properties": {
490
+ "formField": {
491
+ "$ref": "#/definitions/formField"
492
+ },
493
+ "kind": {
494
+ "type": "string",
495
+ "const": "table-select"
496
+ },
497
+ "placeholder": {
498
+ "type": "string"
499
+ },
500
+ "columnList": {
501
+ "alias": "column",
502
+ "type": "array",
503
+ "items": {
504
+ "description": "table column name",
505
+ "type": "object",
506
+ "properties": {
507
+ "name": {
508
+ "type": "string",
509
+ "description": "table column name"
510
+ },
511
+ "title": {
512
+ "type": "string",
513
+ "description": "table column label"
514
+ },
515
+ "hasFilter": {
516
+ "type": "boolean",
517
+ "description": "Whether the column has a filter"
518
+ },
519
+ "kind": {
520
+ "type": "string",
521
+ "description": "The kind of data in the column"
522
+ }
523
+ }
524
+ },
525
+ "description": "List of table column names"
526
+ },
527
+ "title": {
528
+ "type": "string",
529
+ "description": "The title of the table select window"
530
+ },
531
+ "toDisplay": {
532
+ "type": "object",
533
+ "properties": {
534
+ "property": {
535
+ "$ref": "#/definitions/property"
536
+ }
537
+ }
538
+ },
539
+ "toValue": {
540
+ "type": "object",
541
+ "properties": {
542
+ "property": {
543
+ "$ref": "#/definitions/property"
544
+ }
545
+ }
546
+ },
547
+ "upstream": {
548
+ "$ref": "#/definitions/upstream"
549
+ },
550
+ "resolver": {
551
+ "type": "object",
552
+ "properties": {
553
+ "upstream": {
554
+ "$ref": "#/definitions/upstream"
555
+ }
556
+ }
557
+ }
558
+ }
559
+ }
560
+ ]
561
+ },
562
+ "textareaFormControl": {
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": "textarea"
576
+ },
577
+ "placeholder": {
578
+ "type": "string"
579
+ }
580
+ }
581
+ }
582
+ ]
583
+ },
186
584
  "type": {
187
585
  "oneOf": [
188
586
  {
@@ -215,6 +613,65 @@
215
613
  ]
216
614
  }
217
615
  ]
616
+ },
617
+ "upstream": {
618
+ "oneOf": [
619
+ {
620
+ "type": "object",
621
+ "properties": {
622
+ "kind": {
623
+ "type": "string",
624
+ "enum": [
625
+ "open-api"
626
+ ]
627
+ },
628
+ "operationId": {
629
+ "type": "string"
630
+ },
631
+ "scope": {
632
+ "type": "string"
633
+ },
634
+ "mapper": {
635
+ "type": "object",
636
+ "properties": {
637
+ "pageIndex": {
638
+ "type": "string"
639
+ },
640
+ "pageSize": {
641
+ "type": "string"
642
+ },
643
+ "sortBy": {
644
+ "type": "string"
645
+ },
646
+ "sortDirection": {
647
+ "type": "string"
648
+ },
649
+ "list": {
650
+ "type": "string"
651
+ },
652
+ "total": {
653
+ "type": "string"
654
+ },
655
+ "filter": {
656
+ "type": "object",
657
+ "properties": {
658
+ "eq": {
659
+ "type": "string"
660
+ },
661
+ "join": {
662
+ "type": "string"
663
+ }
664
+ }
665
+ }
666
+ }
667
+ }
668
+ },
669
+ "required": [
670
+ "kind",
671
+ "operationId"
672
+ ]
673
+ }
674
+ ]
218
675
  }
219
676
  }
220
677
  }
@@ -14,8 +14,7 @@
14
14
  "formName": {
15
15
  "alias": "form",
16
16
  "type": "string",
17
- "description": "The name of the form where the form control should be added",
18
- "x-prompt": "Enter the name of the form where the form control should be added"
17
+ "description": "The name of the form where the form control should be added"
19
18
  }
20
19
  },
21
20
  "required": [
@@ -1,10 +1,10 @@
1
1
  import { Normalized } from '@rxap/utilities';
2
2
  import { NormalizedAngularOptions } from '../../../lib/angular-options';
3
- import { NormalizedFormDefinitionControl } from '../../../lib/form-definition-control';
3
+ import { NormalizedControl } from '../../../lib/form/control';
4
4
  import { FormDefinitionOptions } from './schema';
5
5
  export interface NormalizedFormDefinitionOptions extends Readonly<Normalized<Omit<FormDefinitionOptions, 'controlList'>> & NormalizedAngularOptions> {
6
6
  name: string;
7
- controlList: ReadonlyArray<NormalizedFormDefinitionControl>;
7
+ controlList: ReadonlyArray<NormalizedControl>;
8
8
  }
9
9
  export declare function NormalizeFormDefinitionOptions(options: Readonly<FormDefinitionOptions>): Readonly<NormalizedFormDefinitionOptions>;
10
10
  export default function (options: FormDefinitionOptions): () => import("@angular-devkit/schematics").Rule;