@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,92 +1,1626 @@
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
+ }
439
+ },
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
+ ]
462
+ },
463
+ "control": {
464
+ "oneOf": [
465
+ {
466
+ "$ref": "#/definitions/formGroup"
467
+ },
468
+ {
469
+ "$ref": "#/definitions/formArray"
470
+ },
471
+ {
472
+ "$ref": "#/definitions/formControl"
473
+ }
474
+ ]
475
+ },
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
+ },
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
+ }
63
557
  },
64
- "title": {
65
- "type": "string"
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
+ ]
66
581
  },
67
- "description": {
68
- "type": "string"
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
+ ]
69
623
  },
70
- "overwrite": {
71
- "anyOf": [
624
+ "formArray": {
625
+ "allOf": [
626
+ {
627
+ "type": "object",
628
+ "properties": {
629
+ "role": {
630
+ "type": "string",
631
+ "const": "array"
632
+ }
633
+ }
634
+ },
72
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
+ "sortable": {
933
+ "type": "boolean",
934
+ "description": "Whether the table is sortable"
935
+ }
936
+ }
937
+ },
938
+ "pipe": {
939
+ "oneOf": [
940
+ {
941
+ "type": "string"
942
+ },
943
+ {
944
+ "allOf": [
945
+ {
946
+ "$ref": "#/definitions/type"
947
+ },
948
+ {
949
+ "type": "object",
950
+ "properties": {
951
+ "argumentList": {
952
+ "type": "array",
953
+ "items": {
954
+ "$ref": "#/definitions/value"
955
+ }
956
+ }
957
+ },
958
+ "required": [
959
+ "name"
960
+ ]
961
+ }
962
+ ]
963
+ }
964
+ ]
965
+ },
966
+ "property": {
967
+ "oneOf": [
968
+ {
969
+ "type": "string"
970
+ },
971
+ {
972
+ "type": "object",
973
+ "properties": {
974
+ "name": {
975
+ "type": "string"
976
+ },
977
+ "type": {
978
+ "$ref": "#/definitions/type"
979
+ },
980
+ "isArray": {
981
+ "type": "boolean"
982
+ }
79
983
  }
80
984
  }
81
- ],
82
- "description": "Overwrite existing files",
83
- "default": false
985
+ ]
986
+ },
987
+ "selectFormControl": {
988
+ "allOf": [
989
+ {
990
+ "$ref": "#/definitions/baseFormControl"
991
+ },
992
+ {
993
+ "type": "object",
994
+ "properties": {
995
+ "formField": {
996
+ "$ref": "#/definitions/formField"
997
+ },
998
+ "kind": {
999
+ "type": "string",
1000
+ "const": "select"
1001
+ },
1002
+ "upstream": {
1003
+ "$ref": "#/definitions/upstream"
1004
+ },
1005
+ "optionList": {
1006
+ "type": "array",
1007
+ "items": {
1008
+ "type": "object",
1009
+ "properties": {
1010
+ "display": {
1011
+ "type": "string"
1012
+ },
1013
+ "value": {
1014
+ "oneOf": [
1015
+ {
1016
+ "type": "string"
1017
+ },
1018
+ {
1019
+ "type": "number"
1020
+ },
1021
+ {
1022
+ "type": "boolean"
1023
+ },
1024
+ {
1025
+ "type": "object",
1026
+ "additionalProperties": true
1027
+ }
1028
+ ]
1029
+ }
1030
+ }
1031
+ }
1032
+ },
1033
+ "backend": {
1034
+ "$ref": "#/definitions/backend"
1035
+ },
1036
+ "multiple": {
1037
+ "alias": "multi",
1038
+ "type": "boolean",
1039
+ "description": "Whether the select form control is multiple mode"
1040
+ }
1041
+ }
1042
+ }
1043
+ ]
1044
+ },
1045
+ "slideToggleFormControl": {
1046
+ "allOf": [
1047
+ {
1048
+ "$ref": "#/definitions/baseFormControl"
1049
+ },
1050
+ {
1051
+ "type": "object",
1052
+ "properties": {
1053
+ "kind": {
1054
+ "type": "string",
1055
+ "const": "slide-toggle"
1056
+ },
1057
+ "labelPosition": {
1058
+ "type": "string",
1059
+ "enum": [
1060
+ "before",
1061
+ "after"
1062
+ ]
1063
+ }
1064
+ }
1065
+ }
1066
+ ]
1067
+ },
1068
+ "switchAccordionItem": {
1069
+ "allOf": [
1070
+ {
1071
+ "$ref": "#/definitions/baseAccordionItem"
1072
+ },
1073
+ {
1074
+ "type": "object",
1075
+ "properties": {
1076
+ "kind": {
1077
+ "type": "string",
1078
+ "const": "switch"
1079
+ },
1080
+ "switch": {
1081
+ "type": "object",
1082
+ "properties": {
1083
+ "property": {
1084
+ "$ref": "#/definitions/property"
1085
+ },
1086
+ "defaultCase": {
1087
+ "type": "object",
1088
+ "properties": {
1089
+ "itemList": {
1090
+ "alias": "item",
1091
+ "type": "array",
1092
+ "items": {
1093
+ "$ref": "#/definitions/accordionItem"
1094
+ },
1095
+ "description": "The list of accordion expansion panels"
1096
+ }
1097
+ },
1098
+ "required": [
1099
+ "itemList"
1100
+ ]
1101
+ },
1102
+ "case": {
1103
+ "type": "array",
1104
+ "items": {
1105
+ "type": "object",
1106
+ "properties": {
1107
+ "test": {
1108
+ "anyOf": [
1109
+ {
1110
+ "type": "string"
1111
+ },
1112
+ {
1113
+ "type": "number"
1114
+ },
1115
+ {
1116
+ "type": "boolean"
1117
+ }
1118
+ ]
1119
+ },
1120
+ "itemList": {
1121
+ "alias": "item",
1122
+ "type": "array",
1123
+ "items": {
1124
+ "$ref": "#/definitions/accordionItem"
1125
+ },
1126
+ "description": "The list of accordion expansion panels"
1127
+ }
1128
+ },
1129
+ "required": [
1130
+ "test",
1131
+ "itemList"
1132
+ ]
1133
+ }
1134
+ }
1135
+ },
1136
+ "required": [
1137
+ "property"
1138
+ ]
1139
+ }
1140
+ }
1141
+ }
1142
+ ]
1143
+ },
1144
+ "table": {
1145
+ "allOf": [
1146
+ {
1147
+ "$ref": "#/definitions/minimumTable"
1148
+ },
1149
+ {
1150
+ "type": "object",
1151
+ "properties": {
1152
+ "tableMethod": {
1153
+ "$ref": "#/definitions/type"
1154
+ },
1155
+ "openApi": {
1156
+ "type": "object",
1157
+ "properties": {
1158
+ "operationId": {
1159
+ "type": "string",
1160
+ "description": "The operationId for the open api operation"
1161
+ },
1162
+ "adapter": {
1163
+ "$ref": "#/definitions/type"
1164
+ }
1165
+ },
1166
+ "required": [
1167
+ "operationId"
1168
+ ]
1169
+ },
1170
+ "modifiers": {
1171
+ "alias": "modifier",
1172
+ "type": "array",
1173
+ "items": {
1174
+ "type": "string",
1175
+ "enum": [
1176
+ "navigation-back-header",
1177
+ "without-title",
1178
+ "show-archived-slide"
1179
+ ]
1180
+ },
1181
+ "description": "The table modifiers"
1182
+ },
1183
+ "selectColumn": {
1184
+ "type": "boolean",
1185
+ "description": "Whether to add a select column to the table"
1186
+ }
1187
+ }
1188
+ }
1189
+ ]
1190
+ },
1191
+ "tableAccordionItem": {
1192
+ "allOf": [
1193
+ {
1194
+ "$ref": "#/definitions/baseAccordionItem"
1195
+ },
1196
+ {
1197
+ "type": "object",
1198
+ "properties": {
1199
+ "kind": {
1200
+ "type": "string",
1201
+ "const": "table"
1202
+ },
1203
+ "modifiers": {
1204
+ "alias": "modifier",
1205
+ "type": "array",
1206
+ "items": {
1207
+ "type": "string",
1208
+ "enum": [
1209
+ "navigation-back-header",
1210
+ "without-title"
1211
+ ]
1212
+ },
1213
+ "description": "The table modifiers"
1214
+ },
1215
+ "table": {
1216
+ "$ref": "#/definitions/table"
1217
+ }
1218
+ }
1219
+ }
1220
+ ]
1221
+ },
1222
+ "tableAction": {
1223
+ "type": "object",
1224
+ "properties": {
1225
+ "type": {
1226
+ "type": "string"
1227
+ },
1228
+ "refresh": {
1229
+ "type": "boolean"
1230
+ },
1231
+ "confirm": {
1232
+ "type": "boolean"
1233
+ },
1234
+ "tooltip": {
1235
+ "type": "string"
1236
+ },
1237
+ "errorMessage": {
1238
+ "type": "string"
1239
+ },
1240
+ "successMessage": {
1241
+ "type": "string"
1242
+ },
1243
+ "priority": {
1244
+ "type": "number"
1245
+ },
1246
+ "checkFunction": {
1247
+ "type": "string"
1248
+ },
1249
+ "inHeader": {
1250
+ "type": "boolean"
1251
+ },
1252
+ "role": {
1253
+ "type": "string"
1254
+ },
1255
+ "icon": {
1256
+ "type": "string"
1257
+ },
1258
+ "svgIcon": {
1259
+ "type": "string"
1260
+ },
1261
+ "permission": {
1262
+ "type": "string"
1263
+ },
1264
+ "color": {
1265
+ "type": "string",
1266
+ "description": "Value for the color input of the mat-button / mat-icon component"
1267
+ },
1268
+ "cssClass": {
1269
+ "$ref": "#/definitions/cssClass"
1270
+ },
1271
+ "options": {
1272
+ "type": "object",
1273
+ "additionalProperties": true
1274
+ }
1275
+ },
1276
+ "required": [
1277
+ "type"
1278
+ ]
1279
+ },
1280
+ "tableColumn": {
1281
+ "type": "object",
1282
+ "properties": {
1283
+ "name": {
1284
+ "type": "string"
1285
+ },
1286
+ "type": {
1287
+ "$ref": "#/definitions/type"
1288
+ },
1289
+ "kind": {
1290
+ "type": "string"
1291
+ },
1292
+ "modifiers": {
1293
+ "type": "array",
1294
+ "items": {
1295
+ "type": "string"
1296
+ }
1297
+ },
1298
+ "template": {
1299
+ "type": "string"
1300
+ },
1301
+ "pipeList": {
1302
+ "type": "array",
1303
+ "items": {
1304
+ "$ref": "#/definitions/pipe"
1305
+ }
1306
+ },
1307
+ "hasFilter": {
1308
+ "type": "boolean"
1309
+ },
1310
+ "sortable": {
1311
+ "type": "boolean"
1312
+ },
1313
+ "nowrap": {
1314
+ "type": "boolean"
1315
+ },
1316
+ "cssClass": {
1317
+ "$ref": "#/definitions/cssClass"
1318
+ },
1319
+ "title": {
1320
+ "type": "string"
1321
+ },
1322
+ "propertyPath": {
1323
+ "type": "string"
1324
+ },
1325
+ "hidden": {
1326
+ "type": "boolean"
1327
+ },
1328
+ "active": {
1329
+ "type": "boolean"
1330
+ },
1331
+ "inactive": {
1332
+ "type": "boolean"
1333
+ },
1334
+ "show": {
1335
+ "type": "boolean"
1336
+ },
1337
+ "filterControl": {
1338
+ "$ref": "#/definitions/formControl"
1339
+ }
1340
+ },
1341
+ "required": [
1342
+ "name"
1343
+ ]
1344
+ },
1345
+ "tableSelectFormControl": {
1346
+ "allOf": [
1347
+ {
1348
+ "$ref": "#/definitions/baseFormControl"
1349
+ },
1350
+ {
1351
+ "type": "object",
1352
+ "properties": {
1353
+ "formField": {
1354
+ "$ref": "#/definitions/formField"
1355
+ },
1356
+ "kind": {
1357
+ "type": "string",
1358
+ "const": "table-select"
1359
+ },
1360
+ "placeholder": {
1361
+ "type": "string"
1362
+ },
1363
+ "columnList": {
1364
+ "alias": "column",
1365
+ "type": "array",
1366
+ "items": {
1367
+ "description": "table column name",
1368
+ "type": "object",
1369
+ "properties": {
1370
+ "name": {
1371
+ "type": "string",
1372
+ "description": "table column name"
1373
+ },
1374
+ "title": {
1375
+ "type": "string",
1376
+ "description": "table column label"
1377
+ },
1378
+ "hasFilter": {
1379
+ "type": "boolean",
1380
+ "description": "Whether the column has a filter"
1381
+ },
1382
+ "kind": {
1383
+ "type": "string",
1384
+ "description": "The kind of data in the column"
1385
+ }
1386
+ }
1387
+ },
1388
+ "description": "List of table column names"
1389
+ },
1390
+ "title": {
1391
+ "type": "string",
1392
+ "description": "The title of the table select window"
1393
+ },
1394
+ "toDisplay": {
1395
+ "type": "object",
1396
+ "properties": {
1397
+ "property": {
1398
+ "$ref": "#/definitions/property"
1399
+ }
1400
+ }
1401
+ },
1402
+ "toValue": {
1403
+ "type": "object",
1404
+ "properties": {
1405
+ "property": {
1406
+ "$ref": "#/definitions/property"
1407
+ }
1408
+ }
1409
+ },
1410
+ "upstream": {
1411
+ "$ref": "#/definitions/upstream"
1412
+ },
1413
+ "resolver": {
1414
+ "type": "object",
1415
+ "properties": {
1416
+ "upstream": {
1417
+ "$ref": "#/definitions/upstream"
1418
+ }
1419
+ }
1420
+ },
1421
+ "identifier": {
1422
+ "$ref": "#/definitions/accordionIdentifier"
1423
+ }
1424
+ }
1425
+ }
1426
+ ]
1427
+ },
1428
+ "textareaFormControl": {
1429
+ "allOf": [
1430
+ {
1431
+ "$ref": "#/definitions/baseFormControl"
1432
+ },
1433
+ {
1434
+ "type": "object",
1435
+ "properties": {
1436
+ "formField": {
1437
+ "$ref": "#/definitions/formField"
1438
+ },
1439
+ "kind": {
1440
+ "type": "string",
1441
+ "const": "textarea"
1442
+ },
1443
+ "placeholder": {
1444
+ "type": "string"
1445
+ }
1446
+ }
1447
+ }
1448
+ ]
1449
+ },
1450
+ "treeTable": {
1451
+ "allOf": [
1452
+ {
1453
+ "$ref": "#/definitions/minimumTable"
1454
+ },
1455
+ {
1456
+ "type": "object",
1457
+ "properties": {
1458
+ "modifiers": {
1459
+ "alias": "modifier",
1460
+ "type": "array",
1461
+ "items": {
1462
+ "type": "string",
1463
+ "enum": [
1464
+ "navigation-back-header",
1465
+ "without-title",
1466
+ "without-header"
1467
+ ]
1468
+ },
1469
+ "description": "The table modifiers"
1470
+ },
1471
+ "tableRootMethod": {
1472
+ "$ref": "#/definitions/type"
1473
+ },
1474
+ "tableChildMethod": {
1475
+ "$ref": "#/definitions/type"
1476
+ }
1477
+ }
1478
+ }
1479
+ ]
1480
+ },
1481
+ "treeTableAccordionItem": {
1482
+ "allOf": [
1483
+ {
1484
+ "$ref": "#/definitions/baseAccordionItem"
1485
+ },
1486
+ {
1487
+ "type": "object",
1488
+ "properties": {
1489
+ "kind": {
1490
+ "type": "string",
1491
+ "const": "tree-table"
1492
+ },
1493
+ "modifiers": {
1494
+ "alias": "modifier",
1495
+ "type": "array",
1496
+ "items": {
1497
+ "type": "string",
1498
+ "enum": [
1499
+ "navigation-back-header",
1500
+ "without-title"
1501
+ ]
1502
+ },
1503
+ "description": "The table modifiers"
1504
+ },
1505
+ "table": {
1506
+ "$ref": "#/definitions/treeTable"
1507
+ }
1508
+ }
1509
+ }
1510
+ ]
1511
+ },
1512
+ "type": {
1513
+ "oneOf": [
1514
+ {
1515
+ "type": "string"
1516
+ },
1517
+ {
1518
+ "type": "object",
1519
+ "properties": {
1520
+ "name": {
1521
+ "type": "string"
1522
+ },
1523
+ "isTypeOnly": {
1524
+ "type": "boolean"
1525
+ },
1526
+ "moduleSpecifier": {
1527
+ "type": "string"
1528
+ },
1529
+ "namedImport": {
1530
+ "type": "string"
1531
+ },
1532
+ "namespaceImport": {
1533
+ "type": "string"
1534
+ },
1535
+ "defaultImport": {
1536
+ "type": "string"
1537
+ }
1538
+ },
1539
+ "required": [
1540
+ "name"
1541
+ ]
1542
+ }
1543
+ ]
1544
+ },
1545
+ "upstream": {
1546
+ "oneOf": [
1547
+ {
1548
+ "type": "object",
1549
+ "properties": {
1550
+ "kind": {
1551
+ "type": "string",
1552
+ "enum": [
1553
+ "open-api"
1554
+ ]
1555
+ },
1556
+ "operationId": {
1557
+ "type": "string"
1558
+ },
1559
+ "scope": {
1560
+ "type": "string"
1561
+ },
1562
+ "mapper": {
1563
+ "type": "object",
1564
+ "properties": {
1565
+ "pageIndex": {
1566
+ "type": "string"
1567
+ },
1568
+ "pageSize": {
1569
+ "type": "string"
1570
+ },
1571
+ "sortBy": {
1572
+ "type": "string"
1573
+ },
1574
+ "sortDirection": {
1575
+ "type": "string"
1576
+ },
1577
+ "list": {
1578
+ "type": "string"
1579
+ },
1580
+ "total": {
1581
+ "type": "string"
1582
+ },
1583
+ "filter": {
1584
+ "type": "object",
1585
+ "properties": {
1586
+ "eq": {
1587
+ "type": "string"
1588
+ },
1589
+ "join": {
1590
+ "type": "string"
1591
+ }
1592
+ }
1593
+ }
1594
+ }
1595
+ }
1596
+ },
1597
+ "required": [
1598
+ "kind",
1599
+ "operationId"
1600
+ ]
1601
+ }
1602
+ ]
1603
+ },
1604
+ "value": {
1605
+ "oneOf": [
1606
+ {
1607
+ "type": "string"
1608
+ },
1609
+ {
1610
+ "type": "object",
1611
+ "properties": {
1612
+ "type": {
1613
+ "$ref": "#/definitions/type"
1614
+ },
1615
+ "value": {
1616
+ "type": "string"
1617
+ }
1618
+ },
1619
+ "required": [
1620
+ "value"
1621
+ ]
1622
+ }
1623
+ ]
84
1624
  }
85
- },
86
- "additionalProperties": true,
87
- "required": [
88
- "itemName",
89
- "project",
90
- "feature"
91
- ]
92
- }
1625
+ }
1626
+ }