@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,191 +1,1687 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "$id": "accordion-module",
4
- "type": "object",
5
- "properties": {
6
- "name": {
7
- "alias": "accordionName",
8
- "type": "string",
9
- "description": "The name of the accordion",
10
- "x-prompt": "Which name should the accordion module have?"
11
- },
12
- "project": {
13
- "type": "string",
14
- "description": "The target project where the accordion module should be added.",
15
- "x-prompt": "To which project should the accordion module be added?"
16
- },
17
- "feature": {
18
- "type": "string",
19
- "description": "The feature name where the accordion module should be added.",
20
- "x-prompt": "To which feature should the accordion module be added?"
21
- },
22
- "multiple": {
23
- "type": "boolean",
24
- "description": "Whether the accordion should allow multiple panels to be expanded at the same time",
25
- "default": false,
26
- "alias": "multi"
27
- },
28
- "backend": {
29
- "type": "string",
30
- "description": "The backend that should be used to handel data",
31
- "enum": [
32
- "none",
33
- "local",
34
- "nestjs",
35
- "open-api"
36
- ],
37
- "default": "none"
3
+ "$id": "accordion-component-schematic",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/angular"
38
7
  },
39
- "persistent": {
40
- "oneOf": [
41
- {
42
- "type": "object",
43
- "properties": {
44
- "key": {
45
- "type": "string"
46
- }
47
- },
48
- "required": ["key"]
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "multiple": {
12
+ "type": "boolean",
13
+ "description": "Whether the accordion should allow multiple panels to be expanded at the same time",
14
+ "default": false,
15
+ "alias": "multi"
49
16
  },
50
- {
51
- "type": "object",
52
- "properties": {
53
- "property": {
17
+ "persistent": {
18
+ "oneOf": [
19
+ {
54
20
  "type": "object",
55
21
  "properties": {
56
- "name": {
22
+ "key": {
57
23
  "type": "string"
58
- },
59
- "type": {
24
+ }
25
+ },
26
+ "required": [
27
+ "key"
28
+ ]
29
+ },
30
+ {
31
+ "type": "object",
32
+ "properties": {
33
+ "property": {
34
+ "$ref": "#/definitions/property"
35
+ }
36
+ },
37
+ "required": [
38
+ "property"
39
+ ]
40
+ }
41
+ ]
42
+ },
43
+ "identifier": {
44
+ "$ref": "#/definitions/accordionIdentifier"
45
+ },
46
+ "header": {
47
+ "oneOf": [
48
+ {
49
+ "type": "object",
50
+ "properties": {
51
+ "title": {
60
52
  "type": "string"
61
53
  }
62
54
  },
63
- "required": ["name"]
55
+ "required": [
56
+ "title"
57
+ ]
58
+ },
59
+ {
60
+ "type": "object",
61
+ "properties": {
62
+ "property": {
63
+ "$ref": "#/definitions/property"
64
+ }
65
+ },
66
+ "required": [
67
+ "property"
68
+ ]
64
69
  }
70
+ ]
71
+ },
72
+ "itemList": {
73
+ "alias": "item",
74
+ "type": "array",
75
+ "items": {
76
+ "$ref": "#/definitions/accordionItem"
65
77
  },
66
- "required": ["property"]
78
+ "description": "The list of accordion expansion panels"
79
+ },
80
+ "upstream": {
81
+ "$ref": "#/definitions/upstream"
82
+ },
83
+ "propertyList": {
84
+ "alias": "property",
85
+ "type": "array",
86
+ "items": {
87
+ "$ref": "#/definitions/property"
88
+ }
67
89
  }
68
- ]
69
- },
70
- "identifier": {
71
- "type": "object",
72
- "properties": {
73
- "property": {
90
+ }
91
+ }
92
+ ],
93
+ "definitions": {
94
+ "abstractControl": {
95
+ "allOf": [
96
+ {
97
+ "$ref": "#/definitions/property"
98
+ },
99
+ {
74
100
  "type": "object",
75
101
  "properties": {
76
102
  "name": {
77
- "type": "string"
103
+ "type": "string",
104
+ "description": "The name of the control"
78
105
  },
79
- "type": {
80
- "type": "string"
106
+ "isArray": {
107
+ "type": "boolean",
108
+ "description": "Whether the control value is an array",
109
+ "default": false
110
+ },
111
+ "state": {
112
+ "type": "string",
113
+ "description": "The initial state of the control"
114
+ },
115
+ "isRequired": {
116
+ "type": "boolean",
117
+ "description": "Whether the control value is required",
118
+ "default": false
119
+ },
120
+ "isReadonly": {
121
+ "type": "boolean",
122
+ "description": "Whether the control value is readonly",
123
+ "default": false
124
+ },
125
+ "isDisabled": {
126
+ "type": "boolean",
127
+ "description": "Whether the control value is disabled",
128
+ "default": false
129
+ },
130
+ "validatorList": {
131
+ "type": "array",
132
+ "items": {
133
+ "type": "string"
134
+ }
135
+ },
136
+ "kind": {
137
+ "type": "string",
138
+ "description": "The kind of the control",
139
+ "default": "default"
140
+ },
141
+ "importList": {
142
+ "type": "array",
143
+ "items": {
144
+ "$ref": "#/definitions/type"
145
+ }
146
+ },
147
+ "template": {
148
+ "type": "string",
149
+ "description": "The template of the control"
150
+ },
151
+ "role": {
152
+ "type": "string",
153
+ "description": "The role of the control",
154
+ "enum": [
155
+ "control",
156
+ "group",
157
+ "array"
158
+ ],
159
+ "default": "control"
81
160
  }
82
161
  },
83
- "required": ["name"]
162
+ "additionalProperties": true
163
+ }
164
+ ]
165
+ },
166
+ "accordionIdentifier": {
167
+ "type": "object",
168
+ "properties": {
169
+ "property": {
170
+ "$ref": "#/definitions/property"
84
171
  },
85
172
  "source": {
86
173
  "type": "string",
87
174
  "enum": [
88
175
  "route"
89
- ],
90
- "default": "route"
176
+ ]
91
177
  }
92
178
  },
93
- "required": ["property"]
179
+ "required": [
180
+ "property"
181
+ ]
94
182
  },
95
- "header": {
183
+ "accordionItem": {
96
184
  "oneOf": [
185
+ {
186
+ "allOf": [
187
+ {
188
+ "$ref": "#/definitions/baseAccordionItem"
189
+ },
190
+ {
191
+ "type": "object",
192
+ "properties": {
193
+ "kind": {
194
+ "type": "string",
195
+ "const": "default",
196
+ "default": "default"
197
+ }
198
+ }
199
+ }
200
+ ]
201
+ },
202
+ {
203
+ "$ref": "#/definitions/switchAccordionItem"
204
+ },
205
+ {
206
+ "$ref": "#/definitions/tableAccordionItem"
207
+ },
208
+ {
209
+ "$ref": "#/definitions/dataGridAccordionItem"
210
+ },
211
+ {
212
+ "$ref": "#/definitions/treeTableAccordionItem"
213
+ }
214
+ ]
215
+ },
216
+ "angular": {
217
+ "allOf": [
218
+ {
219
+ "$ref": "#/definitions/general"
220
+ },
97
221
  {
98
222
  "type": "object",
99
223
  "properties": {
100
- "title": {
224
+ "componentName": {
225
+ "type": "string"
226
+ },
227
+ "name": {
228
+ "type": "string"
229
+ },
230
+ "context": {
231
+ "type": "string",
232
+ "description": "The context use to generate proper names for class, files, etc"
233
+ },
234
+ "nestModule": {
235
+ "type": "string",
236
+ "description": "The module name for the table nest operations"
237
+ },
238
+ "controllerName": {
239
+ "type": "string"
240
+ },
241
+ "backend": {
242
+ "$ref": "#/definitions/backend"
243
+ },
244
+ "directory": {
245
+ "type": "string",
246
+ "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"
247
+ },
248
+ "shared": {
249
+ "type": "boolean",
250
+ "description": "Whether the generated code is used across the project",
251
+ "default": false
252
+ },
253
+ "scope": {
254
+ "type": "string"
255
+ },
256
+ "prefix": {
101
257
  "type": "string"
258
+ },
259
+ "openApi": {
260
+ "type": "object",
261
+ "additionalProperties": true
102
262
  }
103
- },
104
- "required": ["title"]
263
+ }
264
+ }
265
+ ]
266
+ },
267
+ "autocompleteTableSelectFormControl": {
268
+ "allOf": [
269
+ {
270
+ "$ref": "#/definitions/baseFormControl"
105
271
  },
106
272
  {
107
273
  "type": "object",
108
274
  "properties": {
109
- "property": {
275
+ "formField": {
276
+ "$ref": "#/definitions/formField"
277
+ },
278
+ "kind": {
279
+ "type": "string",
280
+ "const": "autocomplete-table-select"
281
+ },
282
+ "placeholder": {
283
+ "type": "string"
284
+ },
285
+ "columnList": {
286
+ "alias": "column",
287
+ "type": "array",
288
+ "items": {
289
+ "description": "table column name",
290
+ "type": "object",
291
+ "properties": {
292
+ "name": {
293
+ "type": "string",
294
+ "description": "table column name"
295
+ },
296
+ "title": {
297
+ "type": "string",
298
+ "description": "table column label"
299
+ },
300
+ "hasFilter": {
301
+ "type": "boolean",
302
+ "description": "Whether the column has a filter"
303
+ },
304
+ "kind": {
305
+ "type": "string",
306
+ "description": "The kind of data in the column"
307
+ }
308
+ }
309
+ },
310
+ "description": "List of table column names"
311
+ },
312
+ "title": {
313
+ "type": "string",
314
+ "description": "The title of the table select window"
315
+ },
316
+ "toDisplay": {
110
317
  "type": "object",
111
318
  "properties": {
112
- "name": {
113
- "type": "string"
114
- },
115
- "type": {
116
- "type": "string"
319
+ "property": {
320
+ "$ref": "#/definitions/property"
117
321
  }
118
- },
119
- "required": ["name"]
322
+ }
323
+ },
324
+ "toValue": {
325
+ "type": "object",
326
+ "properties": {
327
+ "property": {
328
+ "$ref": "#/definitions/property"
329
+ }
330
+ }
331
+ },
332
+ "upstream": {
333
+ "$ref": "#/definitions/upstream"
334
+ },
335
+ "resolver": {
336
+ "type": "object",
337
+ "properties": {
338
+ "upstream": {
339
+ "$ref": "#/definitions/upstream"
340
+ }
341
+ }
120
342
  }
121
- },
122
- "required": ["property"]
343
+ }
123
344
  }
124
345
  ]
125
346
  },
126
- "itemList": {
127
- "alias": "item",
128
- "type": "array",
129
- "items": {
130
- "type": "object",
131
- "properties": {
132
- "name": {
347
+ "backend": {
348
+ "type": "string",
349
+ "description": "The backend that should be used to handel data",
350
+ "enum": [
351
+ "none",
352
+ "nestjs",
353
+ "open-api",
354
+ "local"
355
+ ],
356
+ "default": "none"
357
+ },
358
+ "baseAccordionItem": {
359
+ "type": "object",
360
+ "properties": {
361
+ "name": {
362
+ "type": "string"
363
+ },
364
+ "kind": {
365
+ "type": "string"
366
+ },
367
+ "modifiers": {
368
+ "alias": "modifier",
369
+ "type": "array",
370
+ "items": {
133
371
  "type": "string"
134
372
  },
135
- "type": {
136
- "type": "string",
137
- "enum": [
138
- "panel",
139
- "table",
140
- "data-grid",
141
- "data-grid-collection",
142
- "tree-table",
143
- "switch"
144
- ]
145
- },
146
- "modifiers": {
147
- "type": "array",
148
- "items": {
373
+ "description": "The modifiers to apply to the accordion item type"
374
+ },
375
+ "identifier": {
376
+ "$ref": "#/definitions/accordionIdentifier"
377
+ },
378
+ "title": {
379
+ "type": "string"
380
+ },
381
+ "description": {
382
+ "type": "string"
383
+ },
384
+ "upstream": {
385
+ "$ref": "#/definitions/upstream"
386
+ },
387
+ "propertyList": {
388
+ "alias": "property",
389
+ "type": "array",
390
+ "items": {
391
+ "$ref": "#/definitions/property"
392
+ }
393
+ }
394
+ },
395
+ "required": [
396
+ "name"
397
+ ]
398
+ },
399
+ "baseFormArray": {
400
+ "allOf": [
401
+ {
402
+ "$ref": "#/definitions/abstractControl"
403
+ },
404
+ {
405
+ "type": "object",
406
+ "properties": {
407
+ "controlList": {
408
+ "type": "array",
409
+ "description": "The list of controls in the group",
410
+ "items": {
411
+ "$ref": "#/definitions/control"
412
+ }
413
+ },
414
+ "legend": {
415
+ "type": "string"
416
+ },
417
+ "groupLegend": {
149
418
  "type": "string"
419
+ },
420
+ "kind": {
421
+ "type": "string",
422
+ "description": "The kind of the array",
423
+ "const": "default",
424
+ "default": "default"
425
+ },
426
+ "role": {
427
+ "type": "string",
428
+ "const": "array"
150
429
  }
151
- },
152
- "title": {
153
- "type": "string"
154
- },
155
- "description": {
156
- "type": "string"
157
- },
158
- "permission": {
159
- "type": "string"
160
430
  }
431
+ }
432
+ ]
433
+ },
434
+ "baseFormControl": {
435
+ "allOf": [
436
+ {
437
+ "$ref": "#/definitions/abstractControl"
161
438
  },
162
- "additionalProperties": true,
163
- "required": [
164
- "name"
165
- ],
166
- "description": "The name of the accordion expansion panel"
167
- },
168
- "description": "The list of accordion expansion panels"
439
+ {
440
+ "type": "object",
441
+ "properties": {
442
+ "label": {
443
+ "type": "string",
444
+ "description": "The label of the control"
445
+ },
446
+ "role": {
447
+ "type": "string",
448
+ "const": "control"
449
+ }
450
+ }
451
+ }
452
+ ]
169
453
  },
170
- "overwrite": {
171
- "anyOf": [
454
+ "baseFormGroup": {
455
+ "allOf": [
172
456
  {
173
- "type": "boolean"
457
+ "$ref": "#/definitions/abstractControl"
174
458
  },
175
459
  {
460
+ "type": "object",
461
+ "properties": {
462
+ "controlList": {
463
+ "type": "array",
464
+ "description": "The list of controls in the group",
465
+ "items": {
466
+ "$ref": "#/definitions/control"
467
+ }
468
+ },
469
+ "legend": {
470
+ "type": "string"
471
+ },
472
+ "kind": {
473
+ "type": "string",
474
+ "description": "The kind of the group",
475
+ "const": "default",
476
+ "default": "default"
477
+ },
478
+ "role": {
479
+ "type": "string",
480
+ "const": "group"
481
+ }
482
+ }
483
+ }
484
+ ]
485
+ },
486
+ "button": {
487
+ "type": "object",
488
+ "properties": {
489
+ "svgIcon": {
490
+ "type": "string"
491
+ },
492
+ "icon": {
493
+ "type": "string"
494
+ },
495
+ "directiveList": {
176
496
  "type": "array",
177
497
  "items": {
178
- "type": "string"
498
+ "$ref": "#/definitions/type"
499
+ }
500
+ },
501
+ "importList": {
502
+ "type": "array",
503
+ "items": {
504
+ "$ref": "#/definitions/type"
179
505
  }
180
506
  }
181
- ],
182
- "description": "Overwrite existing files",
183
- "default": false
507
+ }
508
+ },
509
+ "checkboxFormControl": {
510
+ "allOf": [
511
+ {
512
+ "$ref": "#/definitions/baseFormControl"
513
+ },
514
+ {
515
+ "type": "object",
516
+ "properties": {
517
+ "kind": {
518
+ "type": "string",
519
+ "const": "checkbox"
520
+ },
521
+ "labelPosition": {
522
+ "type": "string",
523
+ "enum": [
524
+ "before",
525
+ "after"
526
+ ]
527
+ }
528
+ }
529
+ }
530
+ ]
531
+ },
532
+ "control": {
533
+ "oneOf": [
534
+ {
535
+ "$ref": "#/definitions/formGroup"
536
+ },
537
+ {
538
+ "$ref": "#/definitions/formArray"
539
+ },
540
+ {
541
+ "$ref": "#/definitions/formControl"
542
+ }
543
+ ]
544
+ },
545
+ "cssClass": {
546
+ "oneOf": [
547
+ {
548
+ "type": "string"
549
+ },
550
+ {
551
+ "type": "array",
552
+ "items": {
553
+ "type": "string"
554
+ }
555
+ },
556
+ {
557
+ "type": "object",
558
+ "properties": {
559
+ "name": {
560
+ "type": "string"
561
+ }
562
+ }
563
+ },
564
+ {
565
+ "type": "array",
566
+ "items": {
567
+ "type": "object",
568
+ "properties": {
569
+ "name": {
570
+ "type": "string"
571
+ }
572
+ }
573
+ }
574
+ }
575
+ ]
576
+ },
577
+ "dataGrid": {
578
+ "type": "object",
579
+ "properties": {
580
+ "mode": {
581
+ "type": "string",
582
+ "description": "The mode of the form",
583
+ "enum": [
584
+ "form",
585
+ "plain"
586
+ ]
587
+ },
588
+ "collection": {
589
+ "type": "boolean",
590
+ "description": "Whether the data grid is used as collection."
591
+ },
592
+ "title": {
593
+ "type": "string",
594
+ "description": "The title of the data grid card component"
595
+ },
596
+ "subtitle": {
597
+ "type": "string",
598
+ "description": "The subtitle of the data grid card component"
599
+ },
600
+ "itemList": {
601
+ "alias": "item",
602
+ "type": "array",
603
+ "items": {
604
+ "$ref": "#/definitions/dataGridItem"
605
+ }
606
+ },
607
+ "inCard": {
608
+ "type": "boolean",
609
+ "description": "Whether the data grid is used in a card.",
610
+ "default": true
611
+ },
612
+ "upstream": {
613
+ "$ref": "#/definitions/upstream"
614
+ },
615
+ "propertyList": {
616
+ "alias": "property",
617
+ "type": "array",
618
+ "items": {
619
+ "$ref": "#/definitions/property"
620
+ }
621
+ },
622
+ "identifier": {
623
+ "$ref": "#/definitions/accordionIdentifier"
624
+ }
625
+ }
626
+ },
627
+ "dataGridAccordionItem": {
628
+ "allOf": [
629
+ {
630
+ "$ref": "#/definitions/baseAccordionItem"
631
+ },
632
+ {
633
+ "type": "object",
634
+ "properties": {
635
+ "kind": {
636
+ "type": "string",
637
+ "const": "data-grid"
638
+ }
639
+ }
640
+ },
641
+ {
642
+ "type": "object",
643
+ "properties": {
644
+ "dataGrid": {
645
+ "$ref": "#/definitions/dataGrid"
646
+ }
647
+ }
648
+ }
649
+ ]
650
+ },
651
+ "dataGridItem": {
652
+ "type": "object",
653
+ "properties": {
654
+ "name": {
655
+ "type": "string",
656
+ "description": "The name of the data grid item"
657
+ },
658
+ "header": {
659
+ "type": "string",
660
+ "description": "The name of the control"
661
+ },
662
+ "pipeList": {
663
+ "type": "array",
664
+ "items": {
665
+ "$ref": "#/definitions/pipe"
666
+ }
667
+ },
668
+ "formControl": {
669
+ "$ref": "#/definitions/control"
670
+ },
671
+ "template": {
672
+ "type": "string"
673
+ },
674
+ "kind": {
675
+ "type": "string",
676
+ "enum": [
677
+ "default",
678
+ "link"
679
+ ],
680
+ "default": "default"
681
+ },
682
+ "type": {
683
+ "$ref": "#/definitions/type"
684
+ },
685
+ "isArray": {
686
+ "type": "boolean"
687
+ }
688
+ },
689
+ "required": [
690
+ "name"
691
+ ]
692
+ },
693
+ "formArray": {
694
+ "allOf": [
695
+ {
696
+ "type": "object",
697
+ "properties": {
698
+ "role": {
699
+ "type": "string",
700
+ "const": "array"
701
+ }
702
+ }
703
+ },
704
+ {
705
+ "oneOf": [
706
+ {
707
+ "allOf": [
708
+ {
709
+ "$ref": "#/definitions/baseFormArray"
710
+ },
711
+ {
712
+ "type": "object",
713
+ "properties": {
714
+ "kind": {
715
+ "type": "string",
716
+ "const": "default"
717
+ }
718
+ }
719
+ }
720
+ ]
721
+ }
722
+ ]
723
+ }
724
+ ]
725
+ },
726
+ "formControl": {
727
+ "allOf": [
728
+ {
729
+ "type": "object",
730
+ "properties": {
731
+ "role": {
732
+ "type": "string",
733
+ "const": "control",
734
+ "default": "control"
735
+ }
736
+ }
737
+ },
738
+ {
739
+ "oneOf": [
740
+ {
741
+ "allOf": [
742
+ {
743
+ "$ref": "#/definitions/baseFormControl"
744
+ },
745
+ {
746
+ "type": "object",
747
+ "properties": {
748
+ "kind": {
749
+ "type": "string",
750
+ "const": "default"
751
+ }
752
+ }
753
+ }
754
+ ]
755
+ },
756
+ {
757
+ "$ref": "#/definitions/inputFormControl"
758
+ },
759
+ {
760
+ "$ref": "#/definitions/selectFormControl"
761
+ },
762
+ {
763
+ "$ref": "#/definitions/checkboxFormControl"
764
+ },
765
+ {
766
+ "$ref": "#/definitions/textareaFormControl"
767
+ },
768
+ {
769
+ "$ref": "#/definitions/tableSelectFormControl"
770
+ },
771
+ {
772
+ "$ref": "#/definitions/slideToggleFormControl"
773
+ },
774
+ {
775
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
776
+ }
777
+ ]
778
+ }
779
+ ]
780
+ },
781
+ "formField": {
782
+ "type": "object",
783
+ "properties": {
784
+ "label": {
785
+ "type": "string"
786
+ },
787
+ "prefixButton": {
788
+ "$ref": "#/definitions/button"
789
+ },
790
+ "suffixButton": {
791
+ "$ref": "#/definitions/button"
792
+ },
793
+ "hasClearButton": {
794
+ "type": "boolean"
795
+ }
796
+ }
797
+ },
798
+ "formGroup": {
799
+ "allOf": [
800
+ {
801
+ "type": "object",
802
+ "properties": {
803
+ "role": {
804
+ "type": "string",
805
+ "const": "group"
806
+ }
807
+ }
808
+ },
809
+ {
810
+ "oneOf": [
811
+ {
812
+ "allOf": [
813
+ {
814
+ "$ref": "#/definitions/baseFormGroup"
815
+ },
816
+ {
817
+ "type": "object",
818
+ "properties": {
819
+ "kind": {
820
+ "type": "string",
821
+ "const": "default"
822
+ }
823
+ }
824
+ }
825
+ ]
826
+ }
827
+ ]
828
+ }
829
+ ]
830
+ },
831
+ "general": {
832
+ "type": "object",
833
+ "properties": {
834
+ "project": {
835
+ "type": "string",
836
+ "description": "Project name where the files should be generated"
837
+ },
838
+ "feature": {
839
+ "type": "string",
840
+ "description": "Feature name where the files should be generated"
841
+ },
842
+ "overwrite": {
843
+ "anyOf": [
844
+ {
845
+ "type": "boolean"
846
+ },
847
+ {
848
+ "type": "array",
849
+ "items": {
850
+ "type": "string"
851
+ }
852
+ }
853
+ ],
854
+ "description": "Overwrite existing files",
855
+ "default": false
856
+ },
857
+ "overwriteHtml": {
858
+ "type": "boolean",
859
+ "default": false
860
+ },
861
+ "replace": {
862
+ "type": "boolean",
863
+ "default": false
864
+ }
865
+ }
866
+ },
867
+ "headerButton": {
868
+ "type": "object",
869
+ "properties": {
870
+ "permission": {
871
+ "type": "string"
872
+ },
873
+ "icon": {
874
+ "type": "string"
875
+ },
876
+ "svgIcon": {
877
+ "type": "string"
878
+ },
879
+ "refresh": {
880
+ "type": "boolean",
881
+ "description": "Whether the table action should refresh the table after execution",
882
+ "default": false
883
+ },
884
+ "confirm": {
885
+ "type": "boolean",
886
+ "description": "Whether the table action should confirm before execution",
887
+ "default": false
888
+ },
889
+ "tooltip": {
890
+ "type": "string",
891
+ "description": "The tooltip for the table action"
892
+ },
893
+ "errorMessage": {
894
+ "type": "string",
895
+ "description": "The error message for the table action"
896
+ },
897
+ "successMessage": {
898
+ "type": "string",
899
+ "description": "The success message for the table action"
900
+ },
901
+ "options": {
902
+ "type": "object",
903
+ "additionalProperties": true
904
+ }
905
+ }
906
+ },
907
+ "inputFormControl": {
908
+ "allOf": [
909
+ {
910
+ "$ref": "#/definitions/baseFormControl"
911
+ },
912
+ {
913
+ "type": "object",
914
+ "properties": {
915
+ "kind": {
916
+ "type": "string",
917
+ "const": "input"
918
+ },
919
+ "formField": {
920
+ "$ref": "#/definitions/formField"
921
+ },
922
+ "inputType": {
923
+ "type": "string",
924
+ "enum": [
925
+ "text",
926
+ "password",
927
+ "email",
928
+ "number",
929
+ "tel",
930
+ "url",
931
+ "checkbox",
932
+ "color",
933
+ "date",
934
+ "time",
935
+ "datetime-local",
936
+ "file",
937
+ "hidden",
938
+ "image",
939
+ "month",
940
+ "radio",
941
+ "reset",
942
+ "button",
943
+ "search",
944
+ "submit",
945
+ "week",
946
+ "range"
947
+ ]
948
+ },
949
+ "placeholder": {
950
+ "type": "string"
951
+ }
952
+ }
953
+ }
954
+ ]
955
+ },
956
+ "minimumTable": {
957
+ "type": "object",
958
+ "properties": {
959
+ "propertyList": {
960
+ "alias": "property",
961
+ "type": "array",
962
+ "items": {
963
+ "$ref": "#/definitions/property"
964
+ }
965
+ },
966
+ "upstream": {
967
+ "$ref": "#/definitions/upstream"
968
+ },
969
+ "columnList": {
970
+ "alias": "column",
971
+ "type": "array",
972
+ "items": {
973
+ "$ref": "#/definitions/tableColumn"
974
+ },
975
+ "description": "List of table column names"
976
+ },
977
+ "actionList": {
978
+ "alias": "action",
979
+ "type": "array",
980
+ "items": {
981
+ "$ref": "#/definitions/tableAction"
982
+ }
983
+ },
984
+ "headerButton": {
985
+ "$ref": "#/definitions/headerButton"
986
+ },
987
+ "modifiers": {
988
+ "alias": "modifier",
989
+ "type": "array",
990
+ "items": {
991
+ "type": "string"
992
+ },
993
+ "description": "The table modifiers"
994
+ },
995
+ "cssClass": {
996
+ "$ref": "#/definitions/cssClass"
997
+ },
998
+ "identifier": {
999
+ "$ref": "#/definitions/accordionIdentifier"
1000
+ }
1001
+ }
1002
+ },
1003
+ "pipe": {
1004
+ "oneOf": [
1005
+ {
1006
+ "type": "string"
1007
+ },
1008
+ {
1009
+ "allOf": [
1010
+ {
1011
+ "$ref": "#/definitions/type"
1012
+ },
1013
+ {
1014
+ "type": "object",
1015
+ "properties": {
1016
+ "argumentList": {
1017
+ "type": "array",
1018
+ "items": {
1019
+ "$ref": "#/definitions/value"
1020
+ }
1021
+ }
1022
+ },
1023
+ "required": [
1024
+ "name"
1025
+ ]
1026
+ }
1027
+ ]
1028
+ }
1029
+ ]
1030
+ },
1031
+ "property": {
1032
+ "oneOf": [
1033
+ {
1034
+ "type": "string"
1035
+ },
1036
+ {
1037
+ "type": "object",
1038
+ "properties": {
1039
+ "name": {
1040
+ "type": "string"
1041
+ },
1042
+ "type": {
1043
+ "$ref": "#/definitions/type"
1044
+ },
1045
+ "isArray": {
1046
+ "type": "boolean"
1047
+ }
1048
+ }
1049
+ }
1050
+ ]
1051
+ },
1052
+ "selectFormControl": {
1053
+ "allOf": [
1054
+ {
1055
+ "$ref": "#/definitions/baseFormControl"
1056
+ },
1057
+ {
1058
+ "type": "object",
1059
+ "properties": {
1060
+ "formField": {
1061
+ "$ref": "#/definitions/formField"
1062
+ },
1063
+ "kind": {
1064
+ "type": "string",
1065
+ "const": "select"
1066
+ },
1067
+ "upstream": {
1068
+ "$ref": "#/definitions/upstream"
1069
+ },
1070
+ "optionList": {
1071
+ "type": "array",
1072
+ "items": {
1073
+ "type": "object",
1074
+ "properties": {
1075
+ "display": {
1076
+ "type": "string"
1077
+ },
1078
+ "value": {
1079
+ "oneOf": [
1080
+ {
1081
+ "type": "string"
1082
+ },
1083
+ {
1084
+ "type": "number"
1085
+ },
1086
+ {
1087
+ "type": "boolean"
1088
+ },
1089
+ {
1090
+ "type": "object",
1091
+ "additionalProperties": true
1092
+ }
1093
+ ]
1094
+ }
1095
+ }
1096
+ }
1097
+ },
1098
+ "backend": {
1099
+ "$ref": "#/definitions/backend"
1100
+ },
1101
+ "multiple": {
1102
+ "alias": "multi",
1103
+ "type": "boolean",
1104
+ "description": "Whether the select form control is multiple mode"
1105
+ }
1106
+ }
1107
+ }
1108
+ ]
1109
+ },
1110
+ "slideToggleFormControl": {
1111
+ "allOf": [
1112
+ {
1113
+ "$ref": "#/definitions/baseFormControl"
1114
+ },
1115
+ {
1116
+ "type": "object",
1117
+ "properties": {
1118
+ "kind": {
1119
+ "type": "string",
1120
+ "const": "slide-toggle"
1121
+ },
1122
+ "labelPosition": {
1123
+ "type": "string",
1124
+ "enum": [
1125
+ "before",
1126
+ "after"
1127
+ ]
1128
+ }
1129
+ }
1130
+ }
1131
+ ]
1132
+ },
1133
+ "switchAccordionItem": {
1134
+ "allOf": [
1135
+ {
1136
+ "$ref": "#/definitions/baseAccordionItem"
1137
+ },
1138
+ {
1139
+ "type": "object",
1140
+ "properties": {
1141
+ "kind": {
1142
+ "type": "string",
1143
+ "const": "switch"
1144
+ },
1145
+ "switch": {
1146
+ "type": "object",
1147
+ "properties": {
1148
+ "property": {
1149
+ "$ref": "#/definitions/property"
1150
+ },
1151
+ "defaultCase": {
1152
+ "type": "object",
1153
+ "properties": {
1154
+ "itemList": {
1155
+ "alias": "item",
1156
+ "type": "array",
1157
+ "items": {
1158
+ "$ref": "#/definitions/accordionItem"
1159
+ },
1160
+ "description": "The list of accordion expansion panels"
1161
+ }
1162
+ },
1163
+ "required": [
1164
+ "itemList"
1165
+ ]
1166
+ },
1167
+ "case": {
1168
+ "type": "array",
1169
+ "items": {
1170
+ "type": "object",
1171
+ "properties": {
1172
+ "test": {
1173
+ "anyOf": [
1174
+ {
1175
+ "type": "string"
1176
+ },
1177
+ {
1178
+ "type": "number"
1179
+ },
1180
+ {
1181
+ "type": "boolean"
1182
+ }
1183
+ ]
1184
+ },
1185
+ "itemList": {
1186
+ "alias": "item",
1187
+ "type": "array",
1188
+ "items": {
1189
+ "$ref": "#/definitions/accordionItem"
1190
+ },
1191
+ "description": "The list of accordion expansion panels"
1192
+ }
1193
+ },
1194
+ "required": [
1195
+ "test",
1196
+ "itemList"
1197
+ ]
1198
+ }
1199
+ }
1200
+ },
1201
+ "required": [
1202
+ "property"
1203
+ ]
1204
+ }
1205
+ }
1206
+ }
1207
+ ]
1208
+ },
1209
+ "table": {
1210
+ "allOf": [
1211
+ {
1212
+ "$ref": "#/definitions/minimumTable"
1213
+ },
1214
+ {
1215
+ "type": "object",
1216
+ "properties": {
1217
+ "tableMethod": {
1218
+ "$ref": "#/definitions/type"
1219
+ },
1220
+ "openApi": {
1221
+ "type": "object",
1222
+ "properties": {
1223
+ "operationId": {
1224
+ "type": "string",
1225
+ "description": "The operationId for the open api operation"
1226
+ },
1227
+ "adapter": {
1228
+ "$ref": "#/definitions/type"
1229
+ }
1230
+ },
1231
+ "required": [
1232
+ "operationId"
1233
+ ]
1234
+ },
1235
+ "modifiers": {
1236
+ "alias": "modifier",
1237
+ "type": "array",
1238
+ "items": {
1239
+ "type": "string",
1240
+ "enum": [
1241
+ "navigation-back-header",
1242
+ "without-title",
1243
+ "show-archived-slide"
1244
+ ]
1245
+ },
1246
+ "description": "The table modifiers"
1247
+ },
1248
+ "selectColumn": {
1249
+ "type": "boolean",
1250
+ "description": "Whether to add a select column to the table"
1251
+ }
1252
+ }
1253
+ }
1254
+ ]
1255
+ },
1256
+ "tableAccordionItem": {
1257
+ "allOf": [
1258
+ {
1259
+ "$ref": "#/definitions/baseAccordionItem"
1260
+ },
1261
+ {
1262
+ "type": "object",
1263
+ "properties": {
1264
+ "kind": {
1265
+ "type": "string",
1266
+ "const": "table"
1267
+ },
1268
+ "modifiers": {
1269
+ "alias": "modifier",
1270
+ "type": "array",
1271
+ "items": {
1272
+ "type": "string",
1273
+ "enum": [
1274
+ "navigation-back-header",
1275
+ "without-title"
1276
+ ]
1277
+ },
1278
+ "description": "The table modifiers"
1279
+ },
1280
+ "table": {
1281
+ "$ref": "#/definitions/table"
1282
+ }
1283
+ }
1284
+ }
1285
+ ]
1286
+ },
1287
+ "tableAction": {
1288
+ "type": "object",
1289
+ "properties": {
1290
+ "type": {
1291
+ "type": "string"
1292
+ },
1293
+ "refresh": {
1294
+ "type": "boolean"
1295
+ },
1296
+ "confirm": {
1297
+ "type": "boolean"
1298
+ },
1299
+ "tooltip": {
1300
+ "type": "string"
1301
+ },
1302
+ "errorMessage": {
1303
+ "type": "string"
1304
+ },
1305
+ "successMessage": {
1306
+ "type": "string"
1307
+ },
1308
+ "priority": {
1309
+ "type": "number"
1310
+ },
1311
+ "checkFunction": {
1312
+ "type": "string"
1313
+ },
1314
+ "inHeader": {
1315
+ "type": "boolean"
1316
+ },
1317
+ "role": {
1318
+ "type": "string"
1319
+ },
1320
+ "icon": {
1321
+ "type": "string"
1322
+ },
1323
+ "svgIcon": {
1324
+ "type": "string"
1325
+ },
1326
+ "permission": {
1327
+ "type": "string"
1328
+ },
1329
+ "color": {
1330
+ "type": "string",
1331
+ "description": "Value for the color input of the mat-button / mat-icon component"
1332
+ },
1333
+ "cssClass": {
1334
+ "$ref": "#/definitions/cssClass"
1335
+ },
1336
+ "options": {
1337
+ "type": "object",
1338
+ "additionalProperties": true
1339
+ }
1340
+ },
1341
+ "required": [
1342
+ "type"
1343
+ ]
1344
+ },
1345
+ "tableColumn": {
1346
+ "type": "object",
1347
+ "properties": {
1348
+ "name": {
1349
+ "type": "string"
1350
+ },
1351
+ "type": {
1352
+ "$ref": "#/definitions/type"
1353
+ },
1354
+ "kind": {
1355
+ "type": "string"
1356
+ },
1357
+ "modifiers": {
1358
+ "type": "array",
1359
+ "items": {
1360
+ "type": "string"
1361
+ }
1362
+ },
1363
+ "template": {
1364
+ "type": "string"
1365
+ },
1366
+ "pipeList": {
1367
+ "type": "array",
1368
+ "items": {
1369
+ "$ref": "#/definitions/pipe"
1370
+ }
1371
+ },
1372
+ "hasFilter": {
1373
+ "type": "boolean"
1374
+ },
1375
+ "nowrap": {
1376
+ "type": "boolean"
1377
+ },
1378
+ "cssClass": {
1379
+ "$ref": "#/definitions/cssClass"
1380
+ },
1381
+ "title": {
1382
+ "type": "string"
1383
+ },
1384
+ "propertyPath": {
1385
+ "type": "string"
1386
+ },
1387
+ "hidden": {
1388
+ "type": "boolean"
1389
+ },
1390
+ "active": {
1391
+ "type": "boolean"
1392
+ },
1393
+ "inactive": {
1394
+ "type": "boolean"
1395
+ },
1396
+ "show": {
1397
+ "type": "boolean"
1398
+ },
1399
+ "filterControl": {
1400
+ "$ref": "#/definitions/formControl"
1401
+ }
1402
+ },
1403
+ "required": [
1404
+ "name"
1405
+ ]
1406
+ },
1407
+ "tableSelectFormControl": {
1408
+ "allOf": [
1409
+ {
1410
+ "$ref": "#/definitions/baseFormControl"
1411
+ },
1412
+ {
1413
+ "type": "object",
1414
+ "properties": {
1415
+ "formField": {
1416
+ "$ref": "#/definitions/formField"
1417
+ },
1418
+ "kind": {
1419
+ "type": "string",
1420
+ "const": "table-select"
1421
+ },
1422
+ "placeholder": {
1423
+ "type": "string"
1424
+ },
1425
+ "columnList": {
1426
+ "alias": "column",
1427
+ "type": "array",
1428
+ "items": {
1429
+ "description": "table column name",
1430
+ "type": "object",
1431
+ "properties": {
1432
+ "name": {
1433
+ "type": "string",
1434
+ "description": "table column name"
1435
+ },
1436
+ "title": {
1437
+ "type": "string",
1438
+ "description": "table column label"
1439
+ },
1440
+ "hasFilter": {
1441
+ "type": "boolean",
1442
+ "description": "Whether the column has a filter"
1443
+ },
1444
+ "kind": {
1445
+ "type": "string",
1446
+ "description": "The kind of data in the column"
1447
+ }
1448
+ }
1449
+ },
1450
+ "description": "List of table column names"
1451
+ },
1452
+ "title": {
1453
+ "type": "string",
1454
+ "description": "The title of the table select window"
1455
+ },
1456
+ "toDisplay": {
1457
+ "type": "object",
1458
+ "properties": {
1459
+ "property": {
1460
+ "$ref": "#/definitions/property"
1461
+ }
1462
+ }
1463
+ },
1464
+ "toValue": {
1465
+ "type": "object",
1466
+ "properties": {
1467
+ "property": {
1468
+ "$ref": "#/definitions/property"
1469
+ }
1470
+ }
1471
+ },
1472
+ "upstream": {
1473
+ "$ref": "#/definitions/upstream"
1474
+ },
1475
+ "resolver": {
1476
+ "type": "object",
1477
+ "properties": {
1478
+ "upstream": {
1479
+ "$ref": "#/definitions/upstream"
1480
+ }
1481
+ }
1482
+ },
1483
+ "identifier": {
1484
+ "$ref": "#/definitions/accordionIdentifier"
1485
+ }
1486
+ }
1487
+ }
1488
+ ]
1489
+ },
1490
+ "textareaFormControl": {
1491
+ "allOf": [
1492
+ {
1493
+ "$ref": "#/definitions/baseFormControl"
1494
+ },
1495
+ {
1496
+ "type": "object",
1497
+ "properties": {
1498
+ "formField": {
1499
+ "$ref": "#/definitions/formField"
1500
+ },
1501
+ "kind": {
1502
+ "type": "string",
1503
+ "const": "textarea"
1504
+ },
1505
+ "placeholder": {
1506
+ "type": "string"
1507
+ }
1508
+ }
1509
+ }
1510
+ ]
1511
+ },
1512
+ "treeTable": {
1513
+ "allOf": [
1514
+ {
1515
+ "$ref": "#/definitions/minimumTable"
1516
+ },
1517
+ {
1518
+ "type": "object",
1519
+ "properties": {
1520
+ "modifiers": {
1521
+ "alias": "modifier",
1522
+ "type": "array",
1523
+ "items": {
1524
+ "type": "string",
1525
+ "enum": [
1526
+ "navigation-back-header",
1527
+ "without-title"
1528
+ ]
1529
+ },
1530
+ "description": "The table modifiers"
1531
+ },
1532
+ "tableRootMethod": {
1533
+ "$ref": "#/definitions/type"
1534
+ },
1535
+ "tableChildMethod": {
1536
+ "$ref": "#/definitions/type"
1537
+ }
1538
+ }
1539
+ }
1540
+ ]
1541
+ },
1542
+ "treeTableAccordionItem": {
1543
+ "allOf": [
1544
+ {
1545
+ "$ref": "#/definitions/baseAccordionItem"
1546
+ },
1547
+ {
1548
+ "type": "object",
1549
+ "properties": {
1550
+ "kind": {
1551
+ "type": "string",
1552
+ "const": "tree-table"
1553
+ },
1554
+ "modifiers": {
1555
+ "alias": "modifier",
1556
+ "type": "array",
1557
+ "items": {
1558
+ "type": "string",
1559
+ "enum": [
1560
+ "navigation-back-header",
1561
+ "without-title"
1562
+ ]
1563
+ },
1564
+ "description": "The table modifiers"
1565
+ },
1566
+ "table": {
1567
+ "$ref": "#/definitions/treeTable"
1568
+ }
1569
+ }
1570
+ }
1571
+ ]
1572
+ },
1573
+ "type": {
1574
+ "oneOf": [
1575
+ {
1576
+ "type": "string"
1577
+ },
1578
+ {
1579
+ "type": "object",
1580
+ "properties": {
1581
+ "name": {
1582
+ "type": "string"
1583
+ },
1584
+ "isTypeOnly": {
1585
+ "type": "boolean"
1586
+ },
1587
+ "moduleSpecifier": {
1588
+ "type": "string"
1589
+ },
1590
+ "namedImport": {
1591
+ "type": "string"
1592
+ },
1593
+ "namespaceImport": {
1594
+ "type": "string"
1595
+ },
1596
+ "defaultImport": {
1597
+ "type": "string"
1598
+ }
1599
+ },
1600
+ "required": [
1601
+ "name"
1602
+ ]
1603
+ }
1604
+ ]
1605
+ },
1606
+ "upstream": {
1607
+ "oneOf": [
1608
+ {
1609
+ "type": "object",
1610
+ "properties": {
1611
+ "kind": {
1612
+ "type": "string",
1613
+ "enum": [
1614
+ "open-api"
1615
+ ]
1616
+ },
1617
+ "operationId": {
1618
+ "type": "string"
1619
+ },
1620
+ "scope": {
1621
+ "type": "string"
1622
+ },
1623
+ "mapper": {
1624
+ "type": "object",
1625
+ "properties": {
1626
+ "pageIndex": {
1627
+ "type": "string"
1628
+ },
1629
+ "pageSize": {
1630
+ "type": "string"
1631
+ },
1632
+ "sortBy": {
1633
+ "type": "string"
1634
+ },
1635
+ "sortDirection": {
1636
+ "type": "string"
1637
+ },
1638
+ "list": {
1639
+ "type": "string"
1640
+ },
1641
+ "total": {
1642
+ "type": "string"
1643
+ },
1644
+ "filter": {
1645
+ "type": "object",
1646
+ "properties": {
1647
+ "eq": {
1648
+ "type": "string"
1649
+ },
1650
+ "join": {
1651
+ "type": "string"
1652
+ }
1653
+ }
1654
+ }
1655
+ }
1656
+ }
1657
+ },
1658
+ "required": [
1659
+ "kind",
1660
+ "operationId"
1661
+ ]
1662
+ }
1663
+ ]
1664
+ },
1665
+ "value": {
1666
+ "oneOf": [
1667
+ {
1668
+ "type": "string"
1669
+ },
1670
+ {
1671
+ "type": "object",
1672
+ "properties": {
1673
+ "type": {
1674
+ "$ref": "#/definitions/type"
1675
+ },
1676
+ "value": {
1677
+ "type": "string"
1678
+ }
1679
+ },
1680
+ "required": [
1681
+ "value"
1682
+ ]
1683
+ }
1684
+ ]
184
1685
  }
185
- },
186
- "required": [
187
- "name",
188
- "project",
189
- "feature"
190
- ]
191
- }
1686
+ }
1687
+ }