@rxap/schematic-angular 16.2.0-dev.3 → 16.2.0-dev.32

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