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