@rxap/schematic-angular 16.2.0-dev.4 → 16.2.0-dev.40

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 (364) hide show
  1. package/CHANGELOG.md +285 -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 +9 -0
  28. package/src/lib/css-class.js +52 -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 +9 -0
  55. package/src/lib/form/control/autocomplete-table-select-form-control.js +58 -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 +15 -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 +20 -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 +39 -0
  70. package/src/lib/form/control/form-field-form-control.js +81 -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 +12 -2
  106. package/src/lib/minimum-table-options.js +22 -5
  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 +46 -13
  116. package/src/lib/table-column.js +147 -120
  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 +4 -2
  123. package/src/lib/tree-table-options.js +40 -4
  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 +2871 -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 +1636 -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 +1597 -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 +36 -54
  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 +1575 -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 +1139 -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 +1091 -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 +101 -68
  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 +283 -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 +140 -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 +25 -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/autocomplete-table-select-form-control.hbs +25 -0
  259. package/src/schematics/form/templates/checkbox-form-control.hbs +9 -0
  260. package/src/schematics/form/templates/default-form-array.hbs +27 -0
  261. package/src/schematics/form/templates/default-form-control.hbs +2 -0
  262. package/src/schematics/form/templates/default-form-group.hbs +13 -0
  263. package/src/schematics/form/templates/input-form-control.hbs +9 -0
  264. package/src/schematics/form/templates/mat-form-field.hbs +31 -0
  265. package/src/schematics/form/templates/select-form-control.hbs +5 -0
  266. package/src/schematics/form/templates/slide-toggle-form-control.hbs +8 -0
  267. package/src/schematics/form/templates/table-select-form-control.hbs +19 -0
  268. package/src/schematics/form-array.schema.json +40 -0
  269. package/src/schematics/form-component.schema.json +45 -0
  270. package/src/schematics/form-control.schema.json +83 -0
  271. package/src/schematics/form-definition.schema.json +22 -0
  272. package/src/schematics/form-field.schema.json +24 -0
  273. package/src/schematics/form-group.schema.json +40 -0
  274. package/src/schematics/general.schema.json +1 -4
  275. package/src/schematics/header-button.schema.json +42 -0
  276. package/src/schematics/input-form-control.schema.json +59 -0
  277. package/src/schematics/minimum-table.schema.json +76 -0
  278. package/src/schematics/pipe.schema.json +38 -0
  279. package/src/schematics/property.schema.json +28 -0
  280. package/src/schematics/select-form-control.schema.json +74 -0
  281. package/src/schematics/slide-toggle-form-control.schema.json +30 -0
  282. package/src/schematics/switch-accordion-item.schema.json +82 -0
  283. package/src/schematics/table/action/dialog-table-action/schema.json +234 -119
  284. package/src/schematics/table/action/dialog-table-action/template.schema.json +58 -0
  285. package/src/schematics/table/action/form-table-action/index.d.ts +2 -2
  286. package/src/schematics/table/action/form-table-action/index.js +3 -4
  287. package/src/schematics/table/action/form-table-action/index.js.map +1 -1
  288. package/src/schematics/table/action/form-table-action/schema.d.ts +2 -2
  289. package/src/schematics/table/action/form-table-action/schema.json +1064 -138
  290. package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
  291. package/src/schematics/table/action/navigation-table-action/schema.json +218 -80
  292. package/src/schematics/table/action/navigation-table-action/template.schema.json +28 -0
  293. package/src/schematics/table/action/open-api-table-action/schema.json +232 -92
  294. package/src/schematics/table/action/open-api-table-action/template.schema.json +56 -0
  295. package/src/schematics/table/action/operation-table-action/schema.json +205 -84
  296. package/src/schematics/table/action/operation-table-action/template.schema.json +14 -0
  297. package/src/schematics/table/header-button/form-table-header-button/index.d.ts +2 -2
  298. package/src/schematics/table/header-button/form-table-header-button/index.js +2 -2
  299. package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
  300. package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +2 -2
  301. package/src/schematics/table/header-button/form-table-header-button/schema.json +995 -98
  302. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +33 -0
  303. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +167 -71
  304. package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +28 -0
  305. package/src/schematics/table/table-action/schema.json +195 -77
  306. package/src/schematics/table/table-action/template.schema.json +30 -0
  307. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +248 -0
  308. package/src/schematics/table/table-component/index.d.ts +0 -5
  309. package/src/schematics/table/table-component/index.js +16 -128
  310. package/src/schematics/table/table-component/index.js.map +1 -1
  311. package/src/schematics/table/table-component/schema.json +1064 -295
  312. package/src/schematics/table/table-component/template.schema.json +20 -0
  313. package/src/schematics/table/table-header-button/schema.json +145 -63
  314. package/src/schematics/table/table-header-button/template.schema.json +30 -0
  315. package/src/schematics/table/templates/boolean-table-column.hbs +17 -0
  316. package/src/schematics/table/templates/component-table-column.hbs +19 -0
  317. package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +17 -0
  318. package/src/schematics/table/templates/date-table-column.hbs +18 -0
  319. package/src/schematics/table/templates/default-table-column.hbs +17 -0
  320. package/src/schematics/table/templates/icon-table-column.hbs +17 -0
  321. package/src/schematics/table/templates/link-table-column.hbs +17 -0
  322. package/src/schematics/table/templates/mat-column-def.hbs +3 -0
  323. package/src/schematics/table/templates/spinner-table-column.hbs +21 -0
  324. package/src/schematics/table/templates/tree-table-column.hbs +15 -0
  325. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +253 -0
  326. package/src/schematics/table/tree-table-component/index.d.ts +3 -0
  327. package/src/schematics/table/tree-table-component/index.js +33 -7
  328. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  329. package/src/schematics/table/tree-table-component/schema.json +1041 -264
  330. package/src/schematics/table/tree-table-component/template.schema.json +20 -0
  331. package/src/schematics/table-accordion-item.schema.json +41 -0
  332. package/src/schematics/table-action.schema.json +65 -0
  333. package/src/schematics/table-column.schema.json +81 -0
  334. package/src/schematics/table-select-form-control.schema.json +102 -0
  335. package/src/schematics/table.schema.json +57 -0
  336. package/src/schematics/templates/css-class.hbs +1 -0
  337. package/src/schematics/templates/pipe.hbs +4 -0
  338. package/src/schematics/textarea-form-control.schema.json +32 -0
  339. package/src/schematics/tree-component/schema.json +115 -70
  340. package/src/schematics/tree-component/template.schema.json +36 -0
  341. package/src/schematics/tree-table-accordion-item.schema.json +41 -0
  342. package/src/schematics/tree-table.schema.json +41 -0
  343. package/src/schematics/type.schema.json +35 -0
  344. package/src/schematics/upstream.schema.json +56 -0
  345. package/src/schematics/value.schema.json +26 -0
  346. package/src/template.schema.json +236 -0
  347. package/src/lib/accordion-itme-types.d.ts +0 -8
  348. package/src/lib/accordion-itme-types.js +0 -16
  349. package/src/lib/accordion-itme-types.js.map +0 -1
  350. package/src/lib/form-component-control.d.ts +0 -12
  351. package/src/lib/form-component-control.js +0 -15
  352. package/src/lib/form-component-control.js.map +0 -1
  353. package/src/lib/form-definition-control.d.ts +0 -59
  354. package/src/lib/form-definition-control.js +0 -156
  355. package/src/lib/form-definition-control.js.map +0 -1
  356. package/src/lib/merge-with-column-list.d.ts +0 -3
  357. package/src/lib/merge-with-column-list.js +0 -18
  358. package/src/lib/merge-with-column-list.js.map +0 -1
  359. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
  360. package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
  361. package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
  362. package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
  363. package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
  364. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -259
@@ -1,191 +1,1695 @@
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
+ "sortable": {
1002
+ "type": "boolean",
1003
+ "description": "Whether the table is sortable"
1004
+ }
1005
+ }
1006
+ },
1007
+ "pipe": {
1008
+ "oneOf": [
1009
+ {
1010
+ "type": "string"
1011
+ },
1012
+ {
1013
+ "allOf": [
1014
+ {
1015
+ "$ref": "#/definitions/type"
1016
+ },
1017
+ {
1018
+ "type": "object",
1019
+ "properties": {
1020
+ "argumentList": {
1021
+ "type": "array",
1022
+ "items": {
1023
+ "$ref": "#/definitions/value"
1024
+ }
1025
+ }
1026
+ },
1027
+ "required": [
1028
+ "name"
1029
+ ]
1030
+ }
1031
+ ]
1032
+ }
1033
+ ]
1034
+ },
1035
+ "property": {
1036
+ "oneOf": [
1037
+ {
1038
+ "type": "string"
1039
+ },
1040
+ {
1041
+ "type": "object",
1042
+ "properties": {
1043
+ "name": {
1044
+ "type": "string"
1045
+ },
1046
+ "type": {
1047
+ "$ref": "#/definitions/type"
1048
+ },
1049
+ "isArray": {
1050
+ "type": "boolean"
1051
+ }
1052
+ }
1053
+ }
1054
+ ]
1055
+ },
1056
+ "selectFormControl": {
1057
+ "allOf": [
1058
+ {
1059
+ "$ref": "#/definitions/baseFormControl"
1060
+ },
1061
+ {
1062
+ "type": "object",
1063
+ "properties": {
1064
+ "formField": {
1065
+ "$ref": "#/definitions/formField"
1066
+ },
1067
+ "kind": {
1068
+ "type": "string",
1069
+ "const": "select"
1070
+ },
1071
+ "upstream": {
1072
+ "$ref": "#/definitions/upstream"
1073
+ },
1074
+ "optionList": {
1075
+ "type": "array",
1076
+ "items": {
1077
+ "type": "object",
1078
+ "properties": {
1079
+ "display": {
1080
+ "type": "string"
1081
+ },
1082
+ "value": {
1083
+ "oneOf": [
1084
+ {
1085
+ "type": "string"
1086
+ },
1087
+ {
1088
+ "type": "number"
1089
+ },
1090
+ {
1091
+ "type": "boolean"
1092
+ },
1093
+ {
1094
+ "type": "object",
1095
+ "additionalProperties": true
1096
+ }
1097
+ ]
1098
+ }
1099
+ }
1100
+ }
1101
+ },
1102
+ "backend": {
1103
+ "$ref": "#/definitions/backend"
1104
+ },
1105
+ "multiple": {
1106
+ "alias": "multi",
1107
+ "type": "boolean",
1108
+ "description": "Whether the select form control is multiple mode"
1109
+ }
1110
+ }
1111
+ }
1112
+ ]
1113
+ },
1114
+ "slideToggleFormControl": {
1115
+ "allOf": [
1116
+ {
1117
+ "$ref": "#/definitions/baseFormControl"
1118
+ },
1119
+ {
1120
+ "type": "object",
1121
+ "properties": {
1122
+ "kind": {
1123
+ "type": "string",
1124
+ "const": "slide-toggle"
1125
+ },
1126
+ "labelPosition": {
1127
+ "type": "string",
1128
+ "enum": [
1129
+ "before",
1130
+ "after"
1131
+ ]
1132
+ }
1133
+ }
1134
+ }
1135
+ ]
1136
+ },
1137
+ "switchAccordionItem": {
1138
+ "allOf": [
1139
+ {
1140
+ "$ref": "#/definitions/baseAccordionItem"
1141
+ },
1142
+ {
1143
+ "type": "object",
1144
+ "properties": {
1145
+ "kind": {
1146
+ "type": "string",
1147
+ "const": "switch"
1148
+ },
1149
+ "switch": {
1150
+ "type": "object",
1151
+ "properties": {
1152
+ "property": {
1153
+ "$ref": "#/definitions/property"
1154
+ },
1155
+ "defaultCase": {
1156
+ "type": "object",
1157
+ "properties": {
1158
+ "itemList": {
1159
+ "alias": "item",
1160
+ "type": "array",
1161
+ "items": {
1162
+ "$ref": "#/definitions/accordionItem"
1163
+ },
1164
+ "description": "The list of accordion expansion panels"
1165
+ }
1166
+ },
1167
+ "required": [
1168
+ "itemList"
1169
+ ]
1170
+ },
1171
+ "case": {
1172
+ "type": "array",
1173
+ "items": {
1174
+ "type": "object",
1175
+ "properties": {
1176
+ "test": {
1177
+ "anyOf": [
1178
+ {
1179
+ "type": "string"
1180
+ },
1181
+ {
1182
+ "type": "number"
1183
+ },
1184
+ {
1185
+ "type": "boolean"
1186
+ }
1187
+ ]
1188
+ },
1189
+ "itemList": {
1190
+ "alias": "item",
1191
+ "type": "array",
1192
+ "items": {
1193
+ "$ref": "#/definitions/accordionItem"
1194
+ },
1195
+ "description": "The list of accordion expansion panels"
1196
+ }
1197
+ },
1198
+ "required": [
1199
+ "test",
1200
+ "itemList"
1201
+ ]
1202
+ }
1203
+ }
1204
+ },
1205
+ "required": [
1206
+ "property"
1207
+ ]
1208
+ }
1209
+ }
1210
+ }
1211
+ ]
1212
+ },
1213
+ "table": {
1214
+ "allOf": [
1215
+ {
1216
+ "$ref": "#/definitions/minimumTable"
1217
+ },
1218
+ {
1219
+ "type": "object",
1220
+ "properties": {
1221
+ "tableMethod": {
1222
+ "$ref": "#/definitions/type"
1223
+ },
1224
+ "openApi": {
1225
+ "type": "object",
1226
+ "properties": {
1227
+ "operationId": {
1228
+ "type": "string",
1229
+ "description": "The operationId for the open api operation"
1230
+ },
1231
+ "adapter": {
1232
+ "$ref": "#/definitions/type"
1233
+ }
1234
+ },
1235
+ "required": [
1236
+ "operationId"
1237
+ ]
1238
+ },
1239
+ "modifiers": {
1240
+ "alias": "modifier",
1241
+ "type": "array",
1242
+ "items": {
1243
+ "type": "string",
1244
+ "enum": [
1245
+ "navigation-back-header",
1246
+ "without-title",
1247
+ "show-archived-slide"
1248
+ ]
1249
+ },
1250
+ "description": "The table modifiers"
1251
+ },
1252
+ "selectColumn": {
1253
+ "type": "boolean",
1254
+ "description": "Whether to add a select column to the table"
1255
+ }
1256
+ }
1257
+ }
1258
+ ]
1259
+ },
1260
+ "tableAccordionItem": {
1261
+ "allOf": [
1262
+ {
1263
+ "$ref": "#/definitions/baseAccordionItem"
1264
+ },
1265
+ {
1266
+ "type": "object",
1267
+ "properties": {
1268
+ "kind": {
1269
+ "type": "string",
1270
+ "const": "table"
1271
+ },
1272
+ "modifiers": {
1273
+ "alias": "modifier",
1274
+ "type": "array",
1275
+ "items": {
1276
+ "type": "string",
1277
+ "enum": [
1278
+ "navigation-back-header",
1279
+ "without-title"
1280
+ ]
1281
+ },
1282
+ "description": "The table modifiers"
1283
+ },
1284
+ "table": {
1285
+ "$ref": "#/definitions/table"
1286
+ }
1287
+ }
1288
+ }
1289
+ ]
1290
+ },
1291
+ "tableAction": {
1292
+ "type": "object",
1293
+ "properties": {
1294
+ "type": {
1295
+ "type": "string"
1296
+ },
1297
+ "refresh": {
1298
+ "type": "boolean"
1299
+ },
1300
+ "confirm": {
1301
+ "type": "boolean"
1302
+ },
1303
+ "tooltip": {
1304
+ "type": "string"
1305
+ },
1306
+ "errorMessage": {
1307
+ "type": "string"
1308
+ },
1309
+ "successMessage": {
1310
+ "type": "string"
1311
+ },
1312
+ "priority": {
1313
+ "type": "number"
1314
+ },
1315
+ "checkFunction": {
1316
+ "type": "string"
1317
+ },
1318
+ "inHeader": {
1319
+ "type": "boolean"
1320
+ },
1321
+ "role": {
1322
+ "type": "string"
1323
+ },
1324
+ "icon": {
1325
+ "type": "string"
1326
+ },
1327
+ "svgIcon": {
1328
+ "type": "string"
1329
+ },
1330
+ "permission": {
1331
+ "type": "string"
1332
+ },
1333
+ "color": {
1334
+ "type": "string",
1335
+ "description": "Value for the color input of the mat-button / mat-icon component"
1336
+ },
1337
+ "cssClass": {
1338
+ "$ref": "#/definitions/cssClass"
1339
+ },
1340
+ "options": {
1341
+ "type": "object",
1342
+ "additionalProperties": true
1343
+ }
1344
+ },
1345
+ "required": [
1346
+ "type"
1347
+ ]
1348
+ },
1349
+ "tableColumn": {
1350
+ "type": "object",
1351
+ "properties": {
1352
+ "name": {
1353
+ "type": "string"
1354
+ },
1355
+ "type": {
1356
+ "$ref": "#/definitions/type"
1357
+ },
1358
+ "kind": {
1359
+ "type": "string"
1360
+ },
1361
+ "modifiers": {
1362
+ "type": "array",
1363
+ "items": {
1364
+ "type": "string"
1365
+ }
1366
+ },
1367
+ "template": {
1368
+ "type": "string"
1369
+ },
1370
+ "pipeList": {
1371
+ "type": "array",
1372
+ "items": {
1373
+ "$ref": "#/definitions/pipe"
1374
+ }
1375
+ },
1376
+ "hasFilter": {
1377
+ "type": "boolean"
1378
+ },
1379
+ "sortable": {
1380
+ "type": "boolean"
1381
+ },
1382
+ "nowrap": {
1383
+ "type": "boolean"
1384
+ },
1385
+ "cssClass": {
1386
+ "$ref": "#/definitions/cssClass"
1387
+ },
1388
+ "title": {
1389
+ "type": "string"
1390
+ },
1391
+ "propertyPath": {
1392
+ "type": "string"
1393
+ },
1394
+ "hidden": {
1395
+ "type": "boolean"
1396
+ },
1397
+ "active": {
1398
+ "type": "boolean"
1399
+ },
1400
+ "inactive": {
1401
+ "type": "boolean"
1402
+ },
1403
+ "show": {
1404
+ "type": "boolean"
1405
+ },
1406
+ "filterControl": {
1407
+ "$ref": "#/definitions/formControl"
1408
+ }
1409
+ },
1410
+ "required": [
1411
+ "name"
1412
+ ]
1413
+ },
1414
+ "tableSelectFormControl": {
1415
+ "allOf": [
1416
+ {
1417
+ "$ref": "#/definitions/baseFormControl"
1418
+ },
1419
+ {
1420
+ "type": "object",
1421
+ "properties": {
1422
+ "formField": {
1423
+ "$ref": "#/definitions/formField"
1424
+ },
1425
+ "kind": {
1426
+ "type": "string",
1427
+ "const": "table-select"
1428
+ },
1429
+ "placeholder": {
1430
+ "type": "string"
1431
+ },
1432
+ "columnList": {
1433
+ "alias": "column",
1434
+ "type": "array",
1435
+ "items": {
1436
+ "description": "table column name",
1437
+ "type": "object",
1438
+ "properties": {
1439
+ "name": {
1440
+ "type": "string",
1441
+ "description": "table column name"
1442
+ },
1443
+ "title": {
1444
+ "type": "string",
1445
+ "description": "table column label"
1446
+ },
1447
+ "hasFilter": {
1448
+ "type": "boolean",
1449
+ "description": "Whether the column has a filter"
1450
+ },
1451
+ "kind": {
1452
+ "type": "string",
1453
+ "description": "The kind of data in the column"
1454
+ }
1455
+ }
1456
+ },
1457
+ "description": "List of table column names"
1458
+ },
1459
+ "title": {
1460
+ "type": "string",
1461
+ "description": "The title of the table select window"
1462
+ },
1463
+ "toDisplay": {
1464
+ "type": "object",
1465
+ "properties": {
1466
+ "property": {
1467
+ "$ref": "#/definitions/property"
1468
+ }
1469
+ }
1470
+ },
1471
+ "toValue": {
1472
+ "type": "object",
1473
+ "properties": {
1474
+ "property": {
1475
+ "$ref": "#/definitions/property"
1476
+ }
1477
+ }
1478
+ },
1479
+ "upstream": {
1480
+ "$ref": "#/definitions/upstream"
1481
+ },
1482
+ "resolver": {
1483
+ "type": "object",
1484
+ "properties": {
1485
+ "upstream": {
1486
+ "$ref": "#/definitions/upstream"
1487
+ }
1488
+ }
1489
+ },
1490
+ "identifier": {
1491
+ "$ref": "#/definitions/accordionIdentifier"
1492
+ }
1493
+ }
1494
+ }
1495
+ ]
1496
+ },
1497
+ "textareaFormControl": {
1498
+ "allOf": [
1499
+ {
1500
+ "$ref": "#/definitions/baseFormControl"
1501
+ },
1502
+ {
1503
+ "type": "object",
1504
+ "properties": {
1505
+ "formField": {
1506
+ "$ref": "#/definitions/formField"
1507
+ },
1508
+ "kind": {
1509
+ "type": "string",
1510
+ "const": "textarea"
1511
+ },
1512
+ "placeholder": {
1513
+ "type": "string"
1514
+ }
1515
+ }
1516
+ }
1517
+ ]
1518
+ },
1519
+ "treeTable": {
1520
+ "allOf": [
1521
+ {
1522
+ "$ref": "#/definitions/minimumTable"
1523
+ },
1524
+ {
1525
+ "type": "object",
1526
+ "properties": {
1527
+ "modifiers": {
1528
+ "alias": "modifier",
1529
+ "type": "array",
1530
+ "items": {
1531
+ "type": "string",
1532
+ "enum": [
1533
+ "navigation-back-header",
1534
+ "without-title",
1535
+ "without-header"
1536
+ ]
1537
+ },
1538
+ "description": "The table modifiers"
1539
+ },
1540
+ "tableRootMethod": {
1541
+ "$ref": "#/definitions/type"
1542
+ },
1543
+ "tableChildMethod": {
1544
+ "$ref": "#/definitions/type"
1545
+ }
1546
+ }
1547
+ }
1548
+ ]
1549
+ },
1550
+ "treeTableAccordionItem": {
1551
+ "allOf": [
1552
+ {
1553
+ "$ref": "#/definitions/baseAccordionItem"
1554
+ },
1555
+ {
1556
+ "type": "object",
1557
+ "properties": {
1558
+ "kind": {
1559
+ "type": "string",
1560
+ "const": "tree-table"
1561
+ },
1562
+ "modifiers": {
1563
+ "alias": "modifier",
1564
+ "type": "array",
1565
+ "items": {
1566
+ "type": "string",
1567
+ "enum": [
1568
+ "navigation-back-header",
1569
+ "without-title"
1570
+ ]
1571
+ },
1572
+ "description": "The table modifiers"
1573
+ },
1574
+ "table": {
1575
+ "$ref": "#/definitions/treeTable"
1576
+ }
1577
+ }
1578
+ }
1579
+ ]
1580
+ },
1581
+ "type": {
1582
+ "oneOf": [
1583
+ {
1584
+ "type": "string"
1585
+ },
1586
+ {
1587
+ "type": "object",
1588
+ "properties": {
1589
+ "name": {
1590
+ "type": "string"
1591
+ },
1592
+ "isTypeOnly": {
1593
+ "type": "boolean"
1594
+ },
1595
+ "moduleSpecifier": {
1596
+ "type": "string"
1597
+ },
1598
+ "namedImport": {
1599
+ "type": "string"
1600
+ },
1601
+ "namespaceImport": {
1602
+ "type": "string"
1603
+ },
1604
+ "defaultImport": {
1605
+ "type": "string"
1606
+ }
1607
+ },
1608
+ "required": [
1609
+ "name"
1610
+ ]
1611
+ }
1612
+ ]
1613
+ },
1614
+ "upstream": {
1615
+ "oneOf": [
1616
+ {
1617
+ "type": "object",
1618
+ "properties": {
1619
+ "kind": {
1620
+ "type": "string",
1621
+ "enum": [
1622
+ "open-api"
1623
+ ]
1624
+ },
1625
+ "operationId": {
1626
+ "type": "string"
1627
+ },
1628
+ "scope": {
1629
+ "type": "string"
1630
+ },
1631
+ "mapper": {
1632
+ "type": "object",
1633
+ "properties": {
1634
+ "pageIndex": {
1635
+ "type": "string"
1636
+ },
1637
+ "pageSize": {
1638
+ "type": "string"
1639
+ },
1640
+ "sortBy": {
1641
+ "type": "string"
1642
+ },
1643
+ "sortDirection": {
1644
+ "type": "string"
1645
+ },
1646
+ "list": {
1647
+ "type": "string"
1648
+ },
1649
+ "total": {
1650
+ "type": "string"
1651
+ },
1652
+ "filter": {
1653
+ "type": "object",
1654
+ "properties": {
1655
+ "eq": {
1656
+ "type": "string"
1657
+ },
1658
+ "join": {
1659
+ "type": "string"
1660
+ }
1661
+ }
1662
+ }
1663
+ }
1664
+ }
1665
+ },
1666
+ "required": [
1667
+ "kind",
1668
+ "operationId"
1669
+ ]
1670
+ }
1671
+ ]
1672
+ },
1673
+ "value": {
1674
+ "oneOf": [
1675
+ {
1676
+ "type": "string"
1677
+ },
1678
+ {
1679
+ "type": "object",
1680
+ "properties": {
1681
+ "type": {
1682
+ "$ref": "#/definitions/type"
1683
+ },
1684
+ "value": {
1685
+ "type": "string"
1686
+ }
1687
+ },
1688
+ "required": [
1689
+ "value"
1690
+ ]
1691
+ }
1692
+ ]
184
1693
  }
185
- },
186
- "required": [
187
- "name",
188
- "project",
189
- "feature"
190
- ]
191
- }
1694
+ }
1695
+ }