@rxap/schematic-angular 16.2.0-dev.2 → 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 (332) hide show
  1. package/CHANGELOG.md +159 -0
  2. package/README.md +1 -1
  3. package/collection.json +10 -0
  4. package/package.json +11 -9
  5. package/src/lib/accordion-header.d.ts +5 -0
  6. package/src/lib/accordion-header.js +9 -3
  7. package/src/lib/accordion-header.js.map +1 -1
  8. package/src/lib/accordion-identifier.d.ts +4 -0
  9. package/src/lib/accordion-identifier.js.map +1 -1
  10. package/src/lib/accordion-item.d.ts +25 -17
  11. package/src/lib/accordion-item.js +72 -33
  12. package/src/lib/accordion-item.js.map +1 -1
  13. package/src/lib/accordion-itme-kinds.d.ts +8 -0
  14. package/src/lib/accordion-itme-kinds.js +16 -0
  15. package/src/lib/accordion-itme-kinds.js.map +1 -0
  16. package/src/lib/coerce-accordion-component.js +7 -3
  17. package/src/lib/coerce-accordion-component.js.map +1 -1
  18. package/src/lib/coerce-accordion-item-table-component.js +1 -1
  19. package/src/lib/coerce-accordion-item-table-component.js.map +1 -1
  20. package/src/lib/coerce-form-component.js +17 -2
  21. package/src/lib/coerce-form-component.js.map +1 -1
  22. package/src/lib/coerce-minimum-table-component.js +9 -3
  23. package/src/lib/coerce-minimum-table-component.js.map +1 -1
  24. package/src/lib/coerce-tree-table-component.js +16 -0
  25. package/src/lib/coerce-tree-table-component.js.map +1 -1
  26. package/src/lib/data-grid-item.d.ts +46 -11
  27. package/src/lib/data-grid-item.js +81 -6
  28. package/src/lib/data-grid-item.js.map +1 -1
  29. package/src/lib/data-grid-mode.d.ts +4 -0
  30. package/src/lib/data-grid-mode.js +9 -0
  31. package/src/lib/data-grid-mode.js.map +1 -0
  32. package/src/lib/data-grid-options.d.ts +12 -5
  33. package/src/lib/data-grid-options.js +43 -13
  34. package/src/lib/data-grid-options.js.map +1 -1
  35. package/src/lib/form/abstract-control.d.ts +29 -0
  36. package/src/lib/form/abstract-control.js +37 -0
  37. package/src/lib/form/abstract-control.js.map +1 -0
  38. package/src/lib/form/array/base-form-array.d.ts +18 -0
  39. package/src/lib/form/array/base-form-array.js +40 -0
  40. package/src/lib/form/array/base-form-array.js.map +1 -0
  41. package/src/lib/form/array/form-array-kind.d.ts +3 -0
  42. package/src/lib/form/array/form-array-kind.js +8 -0
  43. package/src/lib/form/array/form-array-kind.js.map +1 -0
  44. package/src/lib/form/array/form-array.d.ts +12 -0
  45. package/src/lib/form/array/form-array.js +18 -0
  46. package/src/lib/form/array/form-array.js.map +1 -0
  47. package/src/lib/form/coerce-control-component-imports.d.ts +3 -0
  48. package/src/lib/form/coerce-control-component-imports.js +18 -0
  49. package/src/lib/form/coerce-control-component-imports.js.map +1 -0
  50. package/src/lib/form/control/base-form-control.d.ts +14 -0
  51. package/src/lib/form/control/base-form-control.js +19 -0
  52. package/src/lib/form/control/base-form-control.js.map +1 -0
  53. package/src/lib/form/control/checkbox-form-control.d.ts +11 -0
  54. package/src/lib/form/control/checkbox-form-control.js +23 -0
  55. package/src/lib/form/control/checkbox-form-control.js.map +1 -0
  56. package/src/lib/form/control/form-control-kind.d.ts +8 -0
  57. package/src/lib/form/control/form-control-kind.js +13 -0
  58. package/src/lib/form/control/form-control-kind.js.map +1 -0
  59. package/src/lib/form/control/form-control.d.ts +18 -0
  60. package/src/lib/form/control/form-control.js +40 -0
  61. package/src/lib/form/control/form-control.js.map +1 -0
  62. package/src/lib/form/control/form-field-form-control.d.ts +33 -0
  63. package/src/lib/form/control/form-field-form-control.js +76 -0
  64. package/src/lib/form/control/form-field-form-control.js.map +1 -0
  65. package/src/lib/form/control/input-form-control.d.ts +14 -0
  66. package/src/lib/form/control/input-form-control.js +71 -0
  67. package/src/lib/form/control/input-form-control.js.map +1 -0
  68. package/src/lib/form/control/select-form-control.d.ts +18 -0
  69. package/src/lib/form/control/select-form-control.js +29 -0
  70. package/src/lib/form/control/select-form-control.js.map +1 -0
  71. package/src/lib/form/control/slide-toggle-form-control.d.ts +11 -0
  72. package/src/lib/form/control/slide-toggle-form-control.js +23 -0
  73. package/src/lib/form/control/slide-toggle-form-control.js.map +1 -0
  74. package/src/lib/form/control/table-select-form-control.d.ts +43 -0
  75. package/src/lib/form/control/table-select-form-control.js +69 -0
  76. package/src/lib/form/control/table-select-form-control.js.map +1 -0
  77. package/src/lib/form/control.d.ts +8 -0
  78. package/src/lib/form/control.js +38 -0
  79. package/src/lib/form/control.js.map +1 -0
  80. package/src/lib/form/generate-form-template.d.ts +5 -0
  81. package/src/lib/form/generate-form-template.js +12 -0
  82. package/src/lib/form/generate-form-template.js.map +1 -0
  83. package/src/lib/form/group/base-form-group.d.ts +17 -0
  84. package/src/lib/form/group/base-form-group.js +20 -0
  85. package/src/lib/form/group/base-form-group.js.map +1 -0
  86. package/src/lib/form/group/form-group-kind.d.ts +3 -0
  87. package/src/lib/form/group/form-group-kind.js +8 -0
  88. package/src/lib/form/group/form-group-kind.js.map +1 -0
  89. package/src/lib/form/group/form-group.d.ts +12 -0
  90. package/src/lib/form/group/form-group.js +18 -0
  91. package/src/lib/form/group/form-group.js.map +1 -0
  92. package/src/lib/load-handlebars-template.d.ts +4 -0
  93. package/src/lib/load-handlebars-template.js +28 -0
  94. package/src/lib/load-handlebars-template.js.map +1 -0
  95. package/src/lib/merge-with-column-list.js +3 -1
  96. package/src/lib/merge-with-column-list.js.map +1 -1
  97. package/src/lib/minimum-table-component-options.d.ts +12 -2
  98. package/src/lib/minimum-table-component-options.js +14 -17
  99. package/src/lib/minimum-table-component-options.js.map +1 -1
  100. package/src/lib/minimum-table-options.d.ts +1 -1
  101. package/src/lib/minimum-table-options.js +2 -2
  102. package/src/lib/minimum-table-options.js.map +1 -1
  103. package/src/lib/pipe-option.d.ts +11 -0
  104. package/src/lib/pipe-option.js +75 -0
  105. package/src/lib/pipe-option.js.map +1 -0
  106. package/src/lib/table/table-filter-column-rule.d.ts +13 -0
  107. package/src/lib/table/table-filter-column-rule.js +88 -0
  108. package/src/lib/table/table-filter-column-rule.js.map +1 -0
  109. package/src/lib/table-column.d.ts +20 -9
  110. package/src/lib/table-column.js +133 -113
  111. package/src/lib/table-column.js.map +1 -1
  112. package/src/lib/table-options.d.ts +1 -1
  113. package/src/lib/tree-table-options.d.ts +1 -1
  114. package/src/lib/use-pick-from-table-interface-as-form-type.d.ts +10 -0
  115. package/src/lib/use-pick-from-table-interface-as-form-type.js +32 -0
  116. package/src/lib/use-pick-from-table-interface-as-form-type.js.map +1 -0
  117. package/src/lib/value-option.d.ts +12 -0
  118. package/src/lib/value-option.js +66 -0
  119. package/src/lib/value-option.js.map +1 -0
  120. package/src/schema.json +2626 -0
  121. package/src/schematic-input.schema.json +541 -0
  122. package/src/schematics/abstract-control.schema.json +78 -0
  123. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +25 -0
  124. package/src/schematics/accordion/accordion-component/index.d.ts +5 -2
  125. package/src/schematics/accordion/accordion-component/index.js +56 -122
  126. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  127. package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
  128. package/src/schematics/accordion/accordion-component/schema.json +321 -139
  129. package/src/schematics/accordion/accordion-component/template.schema.json +105 -0
  130. package/src/schematics/accordion/accordion-item-component/index.d.ts +9 -4
  131. package/src/schematics/accordion/accordion-item-component/index.js +112 -86
  132. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  133. package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -2
  134. package/src/schematics/accordion/accordion-item-component/schema.json +282 -70
  135. package/src/schematics/accordion/accordion-item-component/template.schema.json +32 -0
  136. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
  137. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +35 -51
  138. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  139. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +1 -1
  140. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +963 -73
  141. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +31 -0
  142. package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
  143. package/src/schematics/accordion/item/accordion-item-switch-component/index.js +16 -8
  144. package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
  145. package/src/schematics/accordion/item/accordion-item-switch-component/schema.d.ts +1 -1
  146. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +321 -189
  147. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +81 -0
  148. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
  149. package/src/schematics/accordion/item/accordion-item-table-component/index.js +16 -19
  150. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  151. package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +1 -1
  152. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +1005 -293
  153. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +43 -0
  154. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
  155. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +48 -84
  156. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  157. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +1 -1
  158. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +968 -273
  159. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +43 -0
  160. package/src/schematics/accordion/templates/accordion-header.hbs +6 -0
  161. package/src/schematics/accordion/templates/data-grid-accordion-item.hbs +15 -0
  162. package/src/schematics/accordion/templates/default-accordion-item.hbs +15 -0
  163. package/src/schematics/accordion/templates/switch-accordion-item.hbs +21 -0
  164. package/src/schematics/accordion/templates/table-accordion-item.hbs +15 -0
  165. package/src/schematics/accordion/templates/tree-table-accordion-item.hbs +15 -0
  166. package/src/schematics/accordion-identifier.schema.json +25 -0
  167. package/src/schematics/accordion-item.schema.json +59 -0
  168. package/src/schematics/angular.schema.json +11 -11
  169. package/src/schematics/backend.schema.json +13 -0
  170. package/src/schematics/base-form-array.schema.json +45 -0
  171. package/src/schematics/base-form-control.schema.json +27 -0
  172. package/src/schematics/base-form-group.schema.json +42 -0
  173. package/src/schematics/button.schema.json +30 -0
  174. package/src/schematics/checkbox-form-control.schema.json +30 -0
  175. package/src/schematics/control.schema.json +26 -0
  176. package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +35 -0
  177. package/src/schematics/data-grid-component/index.d.ts +2 -4
  178. package/src/schematics/data-grid-component/index.js +87 -52
  179. package/src/schematics/data-grid-component/index.js.map +1 -1
  180. package/src/schematics/data-grid-component/schema.json +924 -131
  181. package/src/schematics/data-grid-component/template.schema.json +20 -0
  182. package/src/schematics/data-grid-component/templates/default-data-grid-item.hbs +3 -0
  183. package/src/schematics/data-grid-component/templates/link-data-grid-item.hbs +8 -0
  184. package/src/schematics/data-grid-item.schema.json +50 -0
  185. package/src/schematics/data-grid.schema.json +66 -0
  186. package/src/schematics/dialog-component/schema.json +141 -65
  187. package/src/schematics/dialog-component/template.schema.json +62 -0
  188. package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
  189. package/src/schematics/form/control/input-form-control/index.js +4 -27
  190. package/src/schematics/form/control/input-form-control/index.js.map +1 -1
  191. package/src/schematics/form/control/input-form-control/schema.d.ts +2 -3
  192. package/src/schematics/form/control/input-form-control/schema.json +341 -94
  193. package/src/schematics/form/control/input-form-control/template.schema.json +33 -0
  194. package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
  195. package/src/schematics/form/control/select-form-control/index.js +140 -97
  196. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  197. package/src/schematics/form/control/select-form-control/schema.d.ts +2 -4
  198. package/src/schematics/form/control/select-form-control/schema.json +348 -81
  199. package/src/schematics/form/control/select-form-control/template.schema.json +33 -0
  200. package/src/schematics/form/control/table-select-form-control/index.d.ts +5 -7
  201. package/src/schematics/form/control/table-select-form-control/index.js +205 -143
  202. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  203. package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -5
  204. package/src/schematics/form/control/table-select-form-control/schema.json +431 -84
  205. package/src/schematics/form/control/table-select-form-control/template.schema.json +39 -0
  206. package/src/schematics/form/form-array/index.d.ts +9 -0
  207. package/src/schematics/form/form-array/index.js +54 -0
  208. package/src/schematics/form/form-array/index.js.map +1 -0
  209. package/src/schematics/form/form-array/schema.d.ts +4 -0
  210. package/src/schematics/form/form-array/schema.json +823 -0
  211. package/src/schematics/form/form-array/template.schema.json +33 -0
  212. package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +7 -4
  213. package/src/schematics/form/form-component/index.d.ts +4 -4
  214. package/src/schematics/form/form-component/index.js +22 -23
  215. package/src/schematics/form/form-component/index.js.map +1 -1
  216. package/src/schematics/form/form-component/schema.d.ts +4 -2
  217. package/src/schematics/form/form-component/schema.json +841 -136
  218. package/src/schematics/form/form-component/template.schema.json +20 -0
  219. package/src/schematics/form/form-control/index.d.ts +6 -6
  220. package/src/schematics/form/form-control/index.js +23 -24
  221. package/src/schematics/form/form-control/index.js.map +1 -1
  222. package/src/schematics/form/form-control/schema.d.ts +2 -4
  223. package/src/schematics/form/form-control/schema.json +652 -67
  224. package/src/schematics/form/form-control/template.schema.json +33 -0
  225. package/src/schematics/form/form-definition/index.d.ts +2 -2
  226. package/src/schematics/form/form-definition/index.js +30 -4
  227. package/src/schematics/form/form-definition/index.js.map +1 -1
  228. package/src/schematics/form/form-definition/schema.d.ts +2 -2
  229. package/src/schematics/form/form-definition/schema.json +805 -118
  230. package/src/schematics/form/form-definition/template.schema.json +30 -0
  231. package/src/schematics/form/form-group/index.d.ts +9 -0
  232. package/src/schematics/form/form-group/index.js +54 -0
  233. package/src/schematics/form/form-group/index.js.map +1 -0
  234. package/src/schematics/form/form-group/schema.d.ts +4 -0
  235. package/src/schematics/form/form-group/schema.json +823 -0
  236. package/src/schematics/form/form-group/template.schema.json +33 -0
  237. package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
  238. package/src/schematics/form/templates/default-form-array.hbs +27 -0
  239. package/src/schematics/form/templates/default-form-control.hbs +2 -0
  240. package/src/schematics/form/templates/default-form-group.hbs +13 -0
  241. package/src/schematics/form/templates/input-form-control.hbs +9 -0
  242. package/src/schematics/form/templates/mat-form-field.hbs +31 -0
  243. package/src/schematics/form/templates/select-form-control.hbs +5 -0
  244. package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
  245. package/src/schematics/form/templates/table-select-form-control.hbs +18 -0
  246. package/src/schematics/form-array.schema.json +40 -0
  247. package/src/schematics/form-component.schema.json +45 -0
  248. package/src/schematics/form-control.schema.json +77 -0
  249. package/src/schematics/form-definition.schema.json +22 -0
  250. package/src/schematics/form-field.schema.json +24 -0
  251. package/src/schematics/form-group.schema.json +40 -0
  252. package/src/schematics/general.schema.json +1 -4
  253. package/src/schematics/header-button.schema.json +42 -0
  254. package/src/schematics/input-form-control.schema.json +59 -0
  255. package/src/schematics/minimum-table.schema.json +60 -0
  256. package/src/schematics/pipe.schema.json +38 -0
  257. package/src/schematics/property.schema.json +31 -0
  258. package/src/schematics/select-form-control.schema.json +68 -0
  259. package/src/schematics/slide-toggle-form-control.schema.json +30 -0
  260. package/src/schematics/table/action/dialog-table-action/schema.json +207 -123
  261. package/src/schematics/table/action/dialog-table-action/template.schema.json +58 -0
  262. package/src/schematics/table/action/form-table-action/index.d.ts +2 -2
  263. package/src/schematics/table/action/form-table-action/index.js +3 -4
  264. package/src/schematics/table/action/form-table-action/index.js.map +1 -1
  265. package/src/schematics/table/action/form-table-action/schema.d.ts +2 -2
  266. package/src/schematics/table/action/form-table-action/schema.json +949 -139
  267. package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
  268. package/src/schematics/table/action/navigation-table-action/schema.json +187 -80
  269. package/src/schematics/table/action/navigation-table-action/template.schema.json +28 -0
  270. package/src/schematics/table/action/open-api-table-action/schema.json +203 -94
  271. package/src/schematics/table/action/open-api-table-action/template.schema.json +56 -0
  272. package/src/schematics/table/action/operation-table-action/schema.json +174 -84
  273. package/src/schematics/table/action/operation-table-action/template.schema.json +14 -0
  274. package/src/schematics/table/header-button/form-table-header-button/index.d.ts +2 -2
  275. package/src/schematics/table/header-button/form-table-header-button/index.js +2 -2
  276. package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
  277. package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +2 -2
  278. package/src/schematics/table/header-button/form-table-header-button/schema.json +910 -98
  279. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +33 -0
  280. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +167 -71
  281. package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +28 -0
  282. package/src/schematics/table/table-action/schema.json +165 -78
  283. package/src/schematics/table/table-action/template.schema.json +30 -0
  284. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +241 -0
  285. package/src/schematics/table/table-component/index.d.ts +2 -4
  286. package/src/schematics/table/table-component/index.js +14 -120
  287. package/src/schematics/table/table-component/index.js.map +1 -1
  288. package/src/schematics/table/table-component/schema.json +898 -276
  289. package/src/schematics/table/table-component/template.schema.json +20 -0
  290. package/src/schematics/table/table-header-button/schema.json +145 -63
  291. package/src/schematics/table/table-header-button/template.schema.json +30 -0
  292. package/src/schematics/table/templates/boolean-table-column.hbs +10 -0
  293. package/src/schematics/table/templates/component-table-column.hbs +12 -0
  294. package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +10 -0
  295. package/src/schematics/table/templates/date-table-column.hbs +11 -0
  296. package/src/schematics/table/templates/default-table-column.hbs +8 -0
  297. package/src/schematics/table/templates/icon-table-column.hbs +10 -0
  298. package/src/schematics/table/templates/link-table-column.hbs +10 -0
  299. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +255 -0
  300. package/src/schematics/table/tree-table-component/index.d.ts +3 -0
  301. package/src/schematics/table/tree-table-component/index.js +28 -7
  302. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  303. package/src/schematics/table/tree-table-component/schema.json +889 -260
  304. package/src/schematics/table/tree-table-component/template.schema.json +20 -0
  305. package/src/schematics/table-action.schema.json +61 -0
  306. package/src/schematics/table-column.schema.json +75 -0
  307. package/src/schematics/table-select-form-control.schema.json +96 -0
  308. package/src/schematics/table.schema.json +57 -0
  309. package/src/schematics/templates/pipe.hbs +4 -0
  310. package/src/schematics/textarea-form-control.schema.json +32 -0
  311. package/src/schematics/tree-component/schema.json +115 -70
  312. package/src/schematics/tree-component/template.schema.json +36 -0
  313. package/src/schematics/tree-table.schema.json +40 -0
  314. package/src/schematics/type.schema.json +35 -0
  315. package/src/schematics/upstream.schema.json +56 -0
  316. package/src/schematics/value.schema.json +26 -0
  317. package/src/template.schema.json +212 -0
  318. package/src/lib/accordion-itme-types.d.ts +0 -8
  319. package/src/lib/accordion-itme-types.js +0 -16
  320. package/src/lib/accordion-itme-types.js.map +0 -1
  321. package/src/lib/form-component-control.d.ts +0 -12
  322. package/src/lib/form-component-control.js +0 -15
  323. package/src/lib/form-component-control.js.map +0 -1
  324. package/src/lib/form-definition-control.d.ts +0 -59
  325. package/src/lib/form-definition-control.js +0 -156
  326. package/src/lib/form-definition-control.js.map +0 -1
  327. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
  328. package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
  329. package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
  330. package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
  331. package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
  332. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -213
@@ -1,202 +1,1012 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "$id": "form-table-action",
4
- "type": "object",
5
- "properties": {
6
- "tableName": {
7
- "alias": "table",
8
- "type": "string",
9
- "description": "The name of the table action"
3
+ "$id": "form-table-action-schematic",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/tableActionSchematic"
10
7
  },
11
- "type": {
12
- "alias": "actionType",
13
- "type": "string",
14
- "description": "The table action type string",
15
- "x-prompt": "Enter the table action type string?"
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "formInitial": {
12
+ "type": "object",
13
+ "description": "The mapping from the row object to the form initial object"
14
+ },
15
+ "formComponent": {
16
+ "type": "string"
17
+ },
18
+ "customComponent": {
19
+ "type": "boolean",
20
+ "default": false,
21
+ "description": "If true the schematic will not coerce the form component"
22
+ },
23
+ "loadFrom": {
24
+ "type": "object",
25
+ "properties": {
26
+ "operationId": {
27
+ "type": "string"
28
+ },
29
+ "scope": {
30
+ "type": "string",
31
+ "description": "The scope of package for the openapi classes"
32
+ },
33
+ "body": {
34
+ "oneOf": [
35
+ {
36
+ "type": "boolean",
37
+ "description": "Pass the full row as body for the operation request"
38
+ },
39
+ {
40
+ "type": "object",
41
+ "description": "Mapping of table columns to body properties - [request property]: [table column]",
42
+ "additionalProperties": true
43
+ }
44
+ ]
45
+ },
46
+ "parameters": {
47
+ "oneOf": [
48
+ {
49
+ "type": "boolean",
50
+ "description": "Pass the full row as parameters for the operation request"
51
+ },
52
+ {
53
+ "type": "object",
54
+ "description": "Mapping of table columns to parameters properties - [request property]: [table column]",
55
+ "additionalProperties": true
56
+ }
57
+ ]
58
+ }
59
+ }
60
+ },
61
+ "formOptions": {
62
+ "$ref": "#/definitions/formComponent"
63
+ }
64
+ }
65
+ }
66
+ ],
67
+ "definitions": {
68
+ "abstractControl": {
69
+ "allOf": [
70
+ {
71
+ "$ref": "#/definitions/property"
72
+ },
73
+ {
74
+ "type": "object",
75
+ "properties": {
76
+ "name": {
77
+ "type": "string",
78
+ "description": "The name of the control"
79
+ },
80
+ "isArray": {
81
+ "type": "boolean",
82
+ "description": "Whether the control value is an array",
83
+ "default": false
84
+ },
85
+ "state": {
86
+ "type": "string",
87
+ "description": "The initial state of the control"
88
+ },
89
+ "isRequired": {
90
+ "type": "boolean",
91
+ "description": "Whether the control value is required",
92
+ "default": false
93
+ },
94
+ "isReadonly": {
95
+ "type": "boolean",
96
+ "description": "Whether the control value is readonly",
97
+ "default": false
98
+ },
99
+ "isDisabled": {
100
+ "type": "boolean",
101
+ "description": "Whether the control value is disabled",
102
+ "default": false
103
+ },
104
+ "validatorList": {
105
+ "type": "array",
106
+ "items": {
107
+ "type": "string"
108
+ }
109
+ },
110
+ "kind": {
111
+ "type": "string",
112
+ "description": "The kind of the control",
113
+ "default": "default"
114
+ },
115
+ "importList": {
116
+ "type": "array",
117
+ "items": {
118
+ "$ref": "#/definitions/type"
119
+ }
120
+ },
121
+ "template": {
122
+ "type": "string",
123
+ "description": "The template of the control"
124
+ },
125
+ "role": {
126
+ "type": "string",
127
+ "description": "The role of the control",
128
+ "enum": [
129
+ "control",
130
+ "group",
131
+ "array"
132
+ ],
133
+ "default": "control"
134
+ }
135
+ },
136
+ "additionalProperties": true
137
+ }
138
+ ]
16
139
  },
17
- "project": {
18
- "type": "string",
19
- "description": "The target project where the table action should be added."
140
+ "accordionIdentifier": {
141
+ "type": "object",
142
+ "properties": {
143
+ "property": {
144
+ "$ref": "#/definitions/property"
145
+ },
146
+ "source": {
147
+ "type": "string",
148
+ "enum": [
149
+ "route"
150
+ ],
151
+ "default": "route"
152
+ }
153
+ },
154
+ "required": [
155
+ "property"
156
+ ]
20
157
  },
21
- "feature": {
22
- "type": "string",
23
- "description": "The feature name where the table action should be added.",
24
- "x-prompt": "To which feature should the table action be added?"
158
+ "angular": {
159
+ "allOf": [
160
+ {
161
+ "$ref": "#/definitions/general"
162
+ },
163
+ {
164
+ "type": "object",
165
+ "properties": {
166
+ "componentName": {
167
+ "type": "string"
168
+ },
169
+ "name": {
170
+ "type": "string"
171
+ },
172
+ "context": {
173
+ "type": "string",
174
+ "description": "The context use to generate proper names for class, files, etc"
175
+ },
176
+ "nestModule": {
177
+ "type": "string",
178
+ "description": "The module name for the table nest operations"
179
+ },
180
+ "controllerName": {
181
+ "type": "string"
182
+ },
183
+ "backend": {
184
+ "$ref": "#/definitions/backend"
185
+ },
186
+ "directory": {
187
+ "type": "string",
188
+ "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"
189
+ },
190
+ "shared": {
191
+ "type": "boolean",
192
+ "description": "Whether the generated code is used across the project",
193
+ "default": false
194
+ },
195
+ "scope": {
196
+ "type": "string"
197
+ },
198
+ "prefix": {
199
+ "type": "string"
200
+ },
201
+ "openApi": {
202
+ "type": "object",
203
+ "additionalProperties": true
204
+ }
205
+ }
206
+ }
207
+ ]
25
208
  },
26
209
  "backend": {
27
210
  "type": "string",
28
211
  "description": "The backend that should be used to handel data",
29
212
  "enum": [
30
213
  "none",
31
- "local",
32
214
  "nestjs",
33
- "open-api"
215
+ "open-api",
216
+ "local"
34
217
  ],
35
218
  "default": "none"
36
219
  },
37
- "shared": {
38
- "type": "boolean",
39
- "description": "Whether the table action is shared across applications",
40
- "default": false
41
- },
42
- "refresh": {
43
- "type": "boolean",
44
- "description": "Whether the table action should refresh the table after execution",
45
- "default": false
46
- },
47
- "confirm": {
48
- "type": "boolean",
49
- "description": "Whether the table action should confirm before execution",
50
- "default": false
220
+ "baseFormArray": {
221
+ "allOf": [
222
+ {
223
+ "$ref": "#/definitions/abstractControl"
224
+ },
225
+ {
226
+ "type": "object",
227
+ "properties": {
228
+ "controlList": {
229
+ "type": "array",
230
+ "description": "The list of controls in the group",
231
+ "items": {
232
+ "$ref": "#/definitions/control"
233
+ }
234
+ },
235
+ "legend": {
236
+ "type": "string"
237
+ },
238
+ "groupLegend": {
239
+ "type": "string"
240
+ },
241
+ "kind": {
242
+ "type": "string",
243
+ "description": "The kind of the array",
244
+ "const": "default",
245
+ "default": "default"
246
+ },
247
+ "role": {
248
+ "type": "string",
249
+ "const": "array"
250
+ }
251
+ }
252
+ }
253
+ ]
51
254
  },
52
- "tooltip": {
53
- "type": "string",
54
- "description": "The tooltip for the table action"
255
+ "baseFormControl": {
256
+ "allOf": [
257
+ {
258
+ "$ref": "#/definitions/abstractControl"
259
+ },
260
+ {
261
+ "type": "object",
262
+ "properties": {
263
+ "label": {
264
+ "type": "string",
265
+ "description": "The label of the control"
266
+ },
267
+ "role": {
268
+ "type": "string",
269
+ "const": "control"
270
+ }
271
+ }
272
+ }
273
+ ]
55
274
  },
56
- "errorMessage": {
57
- "type": "string",
58
- "description": "The error message for the table action"
275
+ "baseFormGroup": {
276
+ "allOf": [
277
+ {
278
+ "$ref": "#/definitions/abstractControl"
279
+ },
280
+ {
281
+ "type": "object",
282
+ "properties": {
283
+ "controlList": {
284
+ "type": "array",
285
+ "description": "The list of controls in the group",
286
+ "items": {
287
+ "$ref": "#/definitions/control"
288
+ }
289
+ },
290
+ "legend": {
291
+ "type": "string"
292
+ },
293
+ "kind": {
294
+ "type": "string",
295
+ "description": "The kind of the group",
296
+ "const": "default",
297
+ "default": "default"
298
+ },
299
+ "role": {
300
+ "type": "string",
301
+ "const": "group"
302
+ }
303
+ }
304
+ }
305
+ ]
59
306
  },
60
- "successMessage": {
61
- "type": "string",
62
- "description": "The success message for the table action"
307
+ "button": {
308
+ "type": "object",
309
+ "properties": {
310
+ "svgIcon": {
311
+ "type": "string"
312
+ },
313
+ "icon": {
314
+ "type": "string"
315
+ },
316
+ "directiveList": {
317
+ "type": "array",
318
+ "items": {
319
+ "$ref": "#/definitions/type"
320
+ }
321
+ },
322
+ "importList": {
323
+ "type": "array",
324
+ "items": {
325
+ "$ref": "#/definitions/type"
326
+ }
327
+ }
328
+ }
63
329
  },
64
- "checkFunction": {
65
- "type": "string",
66
- "description": "The check function for the table action"
330
+ "checkboxFormControl": {
331
+ "allOf": [
332
+ {
333
+ "$ref": "#/definitions/baseFormControl"
334
+ },
335
+ {
336
+ "type": "object",
337
+ "properties": {
338
+ "kind": {
339
+ "type": "string",
340
+ "const": "checkbox"
341
+ },
342
+ "labelPosition": {
343
+ "type": "string",
344
+ "enum": [
345
+ "before",
346
+ "after"
347
+ ]
348
+ }
349
+ }
350
+ }
351
+ ]
67
352
  },
68
- "priority": {
69
- "type": "number",
70
- "description": "The priority of the table action"
353
+ "control": {
354
+ "oneOf": [
355
+ {
356
+ "$ref": "#/definitions/formGroup"
357
+ },
358
+ {
359
+ "$ref": "#/definitions/formArray"
360
+ },
361
+ {
362
+ "$ref": "#/definitions/formControl"
363
+ }
364
+ ]
71
365
  },
72
- "directory": {
73
- "type": "string",
74
- "description": "A directory name or absolute path for the table action. relative to the feature base path"
366
+ "formArray": {
367
+ "allOf": [
368
+ {
369
+ "type": "object",
370
+ "properties": {
371
+ "role": {
372
+ "type": "string",
373
+ "const": "array"
374
+ }
375
+ }
376
+ },
377
+ {
378
+ "oneOf": [
379
+ {
380
+ "allOf": [
381
+ {
382
+ "$ref": "#/definitions/baseFormArray"
383
+ },
384
+ {
385
+ "type": "object",
386
+ "properties": {
387
+ "kind": {
388
+ "type": "string",
389
+ "const": "default"
390
+ }
391
+ }
392
+ }
393
+ ]
394
+ }
395
+ ]
396
+ }
397
+ ]
75
398
  },
76
- "nestModule": {
77
- "type": "string",
78
- "description": "The module name for the table nest operations"
399
+ "formComponent": {
400
+ "allOf": [
401
+ {
402
+ "$ref": "#/definitions/formDefinition"
403
+ },
404
+ {
405
+ "type": "object",
406
+ "properties": {
407
+ "window": {
408
+ "type": "boolean",
409
+ "description": "Whether the form can be opened in a window"
410
+ },
411
+ "role": {
412
+ "type": "string",
413
+ "description": "Define the role of the form"
414
+ },
415
+ "matFormFieldDefaultOptions": {
416
+ "appearance": {
417
+ "type": "string",
418
+ "description": "The appearance of the mat form field",
419
+ "enum": [
420
+ "legacy",
421
+ "standard",
422
+ "fill",
423
+ "outline"
424
+ ]
425
+ }
426
+ },
427
+ "identifier": {
428
+ "$ref": "#/definitions/accordionIdentifier"
429
+ }
430
+ }
431
+ }
432
+ ]
79
433
  },
80
- "overwrite": {
81
- "anyOf": [
434
+ "formControl": {
435
+ "allOf": [
82
436
  {
83
- "type": "boolean"
437
+ "type": "object",
438
+ "properties": {
439
+ "role": {
440
+ "type": "string",
441
+ "const": "control",
442
+ "default": "control"
443
+ }
444
+ }
84
445
  },
85
446
  {
447
+ "oneOf": [
448
+ {
449
+ "allOf": [
450
+ {
451
+ "$ref": "#/definitions/baseFormControl"
452
+ },
453
+ {
454
+ "type": "object",
455
+ "properties": {
456
+ "kind": {
457
+ "type": "string",
458
+ "const": "default"
459
+ }
460
+ }
461
+ }
462
+ ]
463
+ },
464
+ {
465
+ "$ref": "#/definitions/inputFormControl"
466
+ },
467
+ {
468
+ "$ref": "#/definitions/selectFormControl"
469
+ },
470
+ {
471
+ "$ref": "#/definitions/checkboxFormControl"
472
+ },
473
+ {
474
+ "$ref": "#/definitions/textareaFormControl"
475
+ },
476
+ {
477
+ "$ref": "#/definitions/tableSelectFormControl"
478
+ },
479
+ {
480
+ "$ref": "#/definitions/slideToggleFormControl"
481
+ }
482
+ ]
483
+ }
484
+ ]
485
+ },
486
+ "formDefinition": {
487
+ "type": "object",
488
+ "properties": {
489
+ "controlList": {
490
+ "alias": "control",
86
491
  "type": "array",
87
492
  "items": {
88
- "type": "string"
493
+ "$ref": "#/definitions/control"
89
494
  }
90
495
  }
91
- ],
92
- "description": "Overwrite existing files",
93
- "default": false
94
- },
95
- "context": {
96
- "type": "string",
97
- "description": "The context use to generate proper names for class, files, etc"
496
+ },
497
+ "required": [
498
+ "controlList"
499
+ ]
98
500
  },
99
- "formInitial": {
501
+ "formField": {
100
502
  "type": "object",
101
- "description": "The mapping from the row object to the form initial object"
102
- },
103
- "formComponent": {
104
- "type": "string"
503
+ "properties": {
504
+ "label": {
505
+ "type": "string"
506
+ },
507
+ "prefixButton": {
508
+ "$ref": "#/definitions/button"
509
+ },
510
+ "suffixButton": {
511
+ "$ref": "#/definitions/button"
512
+ },
513
+ "hasClearButton": {
514
+ "type": "boolean"
515
+ }
516
+ }
105
517
  },
106
- "customComponent": {
107
- "type": "boolean",
108
- "default": false,
109
- "description": "If true the schematic will not coerce the form component"
518
+ "formGroup": {
519
+ "allOf": [
520
+ {
521
+ "type": "object",
522
+ "properties": {
523
+ "role": {
524
+ "type": "string",
525
+ "const": "group"
526
+ }
527
+ }
528
+ },
529
+ {
530
+ "oneOf": [
531
+ {
532
+ "allOf": [
533
+ {
534
+ "$ref": "#/definitions/baseFormGroup"
535
+ },
536
+ {
537
+ "type": "object",
538
+ "properties": {
539
+ "kind": {
540
+ "type": "string",
541
+ "const": "default"
542
+ }
543
+ }
544
+ }
545
+ ]
546
+ }
547
+ ]
548
+ }
549
+ ]
110
550
  },
111
- "loadFrom": {
551
+ "general": {
112
552
  "type": "object",
113
553
  "properties": {
114
- "operationId": {
115
- "type": "string"
554
+ "project": {
555
+ "type": "string",
556
+ "description": "Project name where the files should be generated"
116
557
  },
117
- "scope": {
558
+ "feature": {
118
559
  "type": "string",
119
- "description": "The scope of package for the openapi classes"
560
+ "description": "Feature name where the files should be generated"
120
561
  },
121
- "body": {
122
- "oneOf": [
562
+ "overwrite": {
563
+ "anyOf": [
123
564
  {
124
- "type": "boolean",
125
- "description": "Pass the full row as body for the operation request"
565
+ "type": "boolean"
126
566
  },
127
567
  {
128
- "type": "object",
129
- "description": "Mapping of table columns to body properties - [request property]: [table column]",
130
- "additionalProperties": true
568
+ "type": "array",
569
+ "items": {
570
+ "type": "string"
571
+ }
572
+ }
573
+ ],
574
+ "description": "Overwrite existing files",
575
+ "default": false
576
+ },
577
+ "overwriteHtml": {
578
+ "type": "boolean",
579
+ "default": false
580
+ },
581
+ "replace": {
582
+ "type": "boolean",
583
+ "default": false
584
+ }
585
+ }
586
+ },
587
+ "inputFormControl": {
588
+ "allOf": [
589
+ {
590
+ "$ref": "#/definitions/baseFormControl"
591
+ },
592
+ {
593
+ "type": "object",
594
+ "properties": {
595
+ "kind": {
596
+ "type": "string",
597
+ "const": "input"
598
+ },
599
+ "formField": {
600
+ "$ref": "#/definitions/formField"
601
+ },
602
+ "inputType": {
603
+ "type": "string",
604
+ "enum": [
605
+ "text",
606
+ "password",
607
+ "email",
608
+ "number",
609
+ "tel",
610
+ "url",
611
+ "checkbox",
612
+ "color",
613
+ "date",
614
+ "time",
615
+ "datetime-local",
616
+ "file",
617
+ "hidden",
618
+ "image",
619
+ "month",
620
+ "radio",
621
+ "reset",
622
+ "button",
623
+ "search",
624
+ "submit",
625
+ "week",
626
+ "range"
627
+ ]
628
+ },
629
+ "placeholder": {
630
+ "type": "string"
631
+ }
632
+ }
633
+ }
634
+ ]
635
+ },
636
+ "property": {
637
+ "oneOf": [
638
+ {
639
+ "type": "string"
640
+ },
641
+ {
642
+ "type": "object",
643
+ "properties": {
644
+ "name": {
645
+ "type": "string"
646
+ },
647
+ "type": {
648
+ "$ref": "#/definitions/type"
649
+ },
650
+ "isArray": {
651
+ "type": "boolean"
131
652
  }
653
+ },
654
+ "required": [
655
+ "name"
132
656
  ]
657
+ }
658
+ ]
659
+ },
660
+ "selectFormControl": {
661
+ "allOf": [
662
+ {
663
+ "$ref": "#/definitions/baseFormControl"
133
664
  },
134
- "parameters": {
135
- "oneOf": [
136
- {
665
+ {
666
+ "type": "object",
667
+ "properties": {
668
+ "formField": {
669
+ "$ref": "#/definitions/formField"
670
+ },
671
+ "kind": {
672
+ "type": "string",
673
+ "const": "select"
674
+ },
675
+ "optionList": {
676
+ "type": "array",
677
+ "items": {
678
+ "type": "object",
679
+ "properties": {
680
+ "display": {
681
+ "type": "string"
682
+ },
683
+ "value": {
684
+ "oneOf": [
685
+ {
686
+ "type": "string"
687
+ },
688
+ {
689
+ "type": "number"
690
+ },
691
+ {
692
+ "type": "boolean"
693
+ },
694
+ {
695
+ "type": "object",
696
+ "additionalProperties": true
697
+ }
698
+ ]
699
+ }
700
+ }
701
+ }
702
+ },
703
+ "backend": {
704
+ "$ref": "#/definitions/backend"
705
+ },
706
+ "multiple": {
707
+ "alias": "multi",
137
708
  "type": "boolean",
138
- "description": "Pass the full row as parameters for the operation request"
709
+ "description": "Whether the select form control is multiple mode"
710
+ }
711
+ }
712
+ }
713
+ ]
714
+ },
715
+ "slideToggleFormControl": {
716
+ "allOf": [
717
+ {
718
+ "$ref": "#/definitions/baseFormControl"
719
+ },
720
+ {
721
+ "type": "object",
722
+ "properties": {
723
+ "kind": {
724
+ "type": "string",
725
+ "const": "slide-toggle"
139
726
  },
140
- {
141
- "type": "object",
142
- "description": "Mapping of table columns to parameters properties - [request property]: [table column]",
143
- "additionalProperties": true
727
+ "labelPosition": {
728
+ "type": "string",
729
+ "enum": [
730
+ "before",
731
+ "after"
732
+ ]
144
733
  }
145
- ]
734
+ }
146
735
  }
147
- }
736
+ ]
148
737
  },
149
- "formOptions": {
738
+ "tableAction": {
150
739
  "type": "object",
151
740
  "properties": {
741
+ "type": {
742
+ "type": "string"
743
+ },
744
+ "refresh": {
745
+ "type": "boolean"
746
+ },
747
+ "confirm": {
748
+ "type": "boolean"
749
+ },
750
+ "tooltip": {
751
+ "type": "string"
752
+ },
753
+ "errorMessage": {
754
+ "type": "string"
755
+ },
756
+ "successMessage": {
757
+ "type": "string"
758
+ },
759
+ "priority": {
760
+ "type": "number"
761
+ },
762
+ "checkFunction": {
763
+ "type": "string"
764
+ },
765
+ "inHeader": {
766
+ "type": "boolean"
767
+ },
152
768
  "role": {
769
+ "type": "string"
770
+ },
771
+ "icon": {
772
+ "type": "string"
773
+ },
774
+ "svgIcon": {
775
+ "type": "string"
776
+ },
777
+ "permission": {
778
+ "type": "string"
779
+ },
780
+ "color": {
153
781
  "type": "string",
154
- "description": "Define the role of the form"
782
+ "description": "Value for the color input of the mat-button / mat-icon component"
155
783
  },
156
- "window": {
157
- "type": "boolean",
158
- "description": "Whether the form can be opened in a window"
784
+ "cssClass": {
785
+ "type": "string",
786
+ "description": "Additional CSS classes added to the button element"
159
787
  },
160
- "controlList": {
161
- "alias": "control",
162
- "type": "array",
163
- "items": {
164
- "type": "object",
165
- "properties": {
166
- "type": {
167
- "type": "string"
168
- },
169
- "name": {
170
- "type": "string"
171
- },
172
- "state": {
173
- "type": "string",
174
- "description": "The initial state of the control"
175
- },
176
- "isRequired": {
177
- "type": "boolean",
178
- "description": "Whether the control value is required",
179
- "default": false
788
+ "options": {
789
+ "type": "object",
790
+ "additionalProperties": true
791
+ }
792
+ },
793
+ "required": [
794
+ "type"
795
+ ]
796
+ },
797
+ "tableActionSchematic": {
798
+ "allOf": [
799
+ {
800
+ "$ref": "#/definitions/angular"
801
+ },
802
+ {
803
+ "$ref": "#/definitions/tableAction"
804
+ },
805
+ {
806
+ "type": "object",
807
+ "properties": {
808
+ "tableName": {
809
+ "alias": "table",
810
+ "type": "string",
811
+ "description": "The name of the table action"
812
+ }
813
+ }
814
+ }
815
+ ]
816
+ },
817
+ "tableSelectFormControl": {
818
+ "allOf": [
819
+ {
820
+ "$ref": "#/definitions/baseFormControl"
821
+ },
822
+ {
823
+ "type": "object",
824
+ "properties": {
825
+ "formField": {
826
+ "$ref": "#/definitions/formField"
827
+ },
828
+ "kind": {
829
+ "type": "string",
830
+ "const": "table-select"
831
+ },
832
+ "placeholder": {
833
+ "type": "string"
834
+ },
835
+ "columnList": {
836
+ "alias": "column",
837
+ "type": "array",
838
+ "items": {
839
+ "description": "table column name",
840
+ "type": "object",
841
+ "properties": {
842
+ "name": {
843
+ "type": "string",
844
+ "description": "table column name"
845
+ },
846
+ "title": {
847
+ "type": "string",
848
+ "description": "table column label"
849
+ },
850
+ "hasFilter": {
851
+ "type": "boolean",
852
+ "description": "Whether the column has a filter"
853
+ },
854
+ "kind": {
855
+ "type": "string",
856
+ "description": "The kind of data in the column"
857
+ }
858
+ }
180
859
  },
181
- "validatorList": {
182
- "type": "array",
183
- "items": {
184
- "type": "string"
860
+ "description": "List of table column names"
861
+ },
862
+ "title": {
863
+ "type": "string",
864
+ "description": "The title of the table select window"
865
+ },
866
+ "toDisplay": {
867
+ "type": "object",
868
+ "properties": {
869
+ "property": {
870
+ "$ref": "#/definitions/property"
871
+ }
872
+ }
873
+ },
874
+ "toValue": {
875
+ "type": "object",
876
+ "properties": {
877
+ "property": {
878
+ "$ref": "#/definitions/property"
185
879
  }
186
880
  }
187
881
  },
188
- "required": [
189
- "name"
190
- ]
882
+ "upstream": {
883
+ "$ref": "#/definitions/upstream"
884
+ },
885
+ "resolver": {
886
+ "type": "object",
887
+ "properties": {
888
+ "upstream": {
889
+ "$ref": "#/definitions/upstream"
890
+ }
891
+ }
892
+ }
191
893
  }
192
894
  }
193
- },
194
- "additionalProperties": true
895
+ ]
896
+ },
897
+ "textareaFormControl": {
898
+ "allOf": [
899
+ {
900
+ "$ref": "#/definitions/baseFormControl"
901
+ },
902
+ {
903
+ "type": "object",
904
+ "properties": {
905
+ "formField": {
906
+ "$ref": "#/definitions/formField"
907
+ },
908
+ "kind": {
909
+ "type": "string",
910
+ "const": "textarea"
911
+ },
912
+ "placeholder": {
913
+ "type": "string"
914
+ }
915
+ }
916
+ }
917
+ ]
918
+ },
919
+ "type": {
920
+ "oneOf": [
921
+ {
922
+ "type": "string"
923
+ },
924
+ {
925
+ "type": "object",
926
+ "properties": {
927
+ "name": {
928
+ "type": "string"
929
+ },
930
+ "isTypeOnly": {
931
+ "type": "boolean"
932
+ },
933
+ "moduleSpecifier": {
934
+ "type": "string"
935
+ },
936
+ "namedImport": {
937
+ "type": "string"
938
+ },
939
+ "namespaceImport": {
940
+ "type": "string"
941
+ },
942
+ "defaultImport": {
943
+ "type": "string"
944
+ }
945
+ },
946
+ "required": [
947
+ "name"
948
+ ]
949
+ }
950
+ ]
951
+ },
952
+ "upstream": {
953
+ "oneOf": [
954
+ {
955
+ "type": "object",
956
+ "properties": {
957
+ "kind": {
958
+ "type": "string",
959
+ "enum": [
960
+ "open-api"
961
+ ]
962
+ },
963
+ "operationId": {
964
+ "type": "string"
965
+ },
966
+ "scope": {
967
+ "type": "string"
968
+ },
969
+ "mapper": {
970
+ "type": "object",
971
+ "properties": {
972
+ "pageIndex": {
973
+ "type": "string"
974
+ },
975
+ "pageSize": {
976
+ "type": "string"
977
+ },
978
+ "sortBy": {
979
+ "type": "string"
980
+ },
981
+ "sortDirection": {
982
+ "type": "string"
983
+ },
984
+ "list": {
985
+ "type": "string"
986
+ },
987
+ "total": {
988
+ "type": "string"
989
+ },
990
+ "filter": {
991
+ "type": "object",
992
+ "properties": {
993
+ "eq": {
994
+ "type": "string"
995
+ },
996
+ "join": {
997
+ "type": "string"
998
+ }
999
+ }
1000
+ }
1001
+ }
1002
+ }
1003
+ },
1004
+ "required": [
1005
+ "kind",
1006
+ "operationId"
1007
+ ]
1008
+ }
1009
+ ]
195
1010
  }
196
- },
197
- "required": [
198
- "type",
199
- "project",
200
- "feature"
201
- ]
202
- }
1011
+ }
1012
+ }