@rxap/schematic-angular 16.2.0-dev.5 → 16.2.0-dev.50

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 (389) hide show
  1. package/CHANGELOG.md +361 -0
  2. package/README.md +1 -1
  3. package/collection.json +20 -0
  4. package/package.json +16 -14
  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/angular-options.d.ts +2 -2
  18. package/src/lib/angular-options.js.map +1 -1
  19. package/src/lib/coerce-accordion-component.js +6 -4
  20. package/src/lib/coerce-accordion-component.js.map +1 -1
  21. package/src/lib/coerce-accordion-item-table-component.js +1 -1
  22. package/src/lib/coerce-accordion-item-table-component.js.map +1 -1
  23. package/src/lib/coerce-form-component.js +18 -2
  24. package/src/lib/coerce-form-component.js.map +1 -1
  25. package/src/lib/coerce-minimum-table-component.js +22 -7
  26. package/src/lib/coerce-minimum-table-component.js.map +1 -1
  27. package/src/lib/coerce-tree-table-component.js +15 -3
  28. package/src/lib/coerce-tree-table-component.js.map +1 -1
  29. package/src/lib/component-options.d.ts +10 -0
  30. package/src/lib/component-options.js +14 -0
  31. package/src/lib/component-options.js.map +1 -0
  32. package/src/lib/css-class.d.ts +9 -0
  33. package/src/lib/css-class.js +52 -0
  34. package/src/lib/css-class.js.map +1 -0
  35. package/src/lib/data-grid-item.d.ts +46 -11
  36. package/src/lib/data-grid-item.js +102 -6
  37. package/src/lib/data-grid-item.js.map +1 -1
  38. package/src/lib/data-grid-mode.d.ts +4 -0
  39. package/src/lib/data-grid-mode.js +9 -0
  40. package/src/lib/data-grid-mode.js.map +1 -0
  41. package/src/lib/data-grid-options.d.ts +12 -5
  42. package/src/lib/data-grid-options.js +44 -13
  43. package/src/lib/data-grid-options.js.map +1 -1
  44. package/src/lib/form/abstract-control.d.ts +31 -0
  45. package/src/lib/form/abstract-control.js +48 -0
  46. package/src/lib/form/abstract-control.js.map +1 -0
  47. package/src/lib/form/array/base-form-array.d.ts +18 -0
  48. package/src/lib/form/array/base-form-array.js +41 -0
  49. package/src/lib/form/array/base-form-array.js.map +1 -0
  50. package/src/lib/form/array/form-array-kind.d.ts +3 -0
  51. package/src/lib/form/array/form-array-kind.js +8 -0
  52. package/src/lib/form/array/form-array-kind.js.map +1 -0
  53. package/src/lib/form/array/form-array.d.ts +12 -0
  54. package/src/lib/form/array/form-array.js +18 -0
  55. package/src/lib/form/array/form-array.js.map +1 -0
  56. package/src/lib/form/coerce-control-component-imports.d.ts +3 -0
  57. package/src/lib/form/coerce-control-component-imports.js +18 -0
  58. package/src/lib/form/coerce-control-component-imports.js.map +1 -0
  59. package/src/lib/form/control/autocomplete-table-select-form-control.d.ts +9 -0
  60. package/src/lib/form/control/autocomplete-table-select-form-control.js +58 -0
  61. package/src/lib/form/control/autocomplete-table-select-form-control.js.map +1 -0
  62. package/src/lib/form/control/base-form-control.d.ts +15 -0
  63. package/src/lib/form/control/base-form-control.js +19 -0
  64. package/src/lib/form/control/base-form-control.js.map +1 -0
  65. package/src/lib/form/control/checkbox-form-control.d.ts +11 -0
  66. package/src/lib/form/control/checkbox-form-control.js +23 -0
  67. package/src/lib/form/control/checkbox-form-control.js.map +1 -0
  68. package/src/lib/form/control/form-control-kind.d.ts +10 -0
  69. package/src/lib/form/control/form-control-kind.js +15 -0
  70. package/src/lib/form/control/form-control-kind.js.map +1 -0
  71. package/src/lib/form/control/form-control.d.ts +20 -0
  72. package/src/lib/form/control/form-control.js +46 -0
  73. package/src/lib/form/control/form-control.js.map +1 -0
  74. package/src/lib/form/control/form-field-form-control.d.ts +39 -0
  75. package/src/lib/form/control/form-field-form-control.js +87 -0
  76. package/src/lib/form/control/form-field-form-control.js.map +1 -0
  77. package/src/lib/form/control/input-form-control.d.ts +15 -0
  78. package/src/lib/form/control/input-form-control.js +75 -0
  79. package/src/lib/form/control/input-form-control.js.map +1 -0
  80. package/src/lib/form/control/select-form-control.d.ts +22 -0
  81. package/src/lib/form/control/select-form-control.js +47 -0
  82. package/src/lib/form/control/select-form-control.js.map +1 -0
  83. package/src/lib/form/control/slide-toggle-form-control.d.ts +11 -0
  84. package/src/lib/form/control/slide-toggle-form-control.js +23 -0
  85. package/src/lib/form/control/slide-toggle-form-control.js.map +1 -0
  86. package/src/lib/form/control/table-select-form-control.d.ts +46 -0
  87. package/src/lib/form/control/table-select-form-control.js +81 -0
  88. package/src/lib/form/control/table-select-form-control.js.map +1 -0
  89. package/src/lib/form/control/textarea-form-control.d.ts +22 -0
  90. package/src/lib/form/control/textarea-form-control.js +52 -0
  91. package/src/lib/form/control/textarea-form-control.js.map +1 -0
  92. package/src/lib/form/control.d.ts +8 -0
  93. package/src/lib/form/control.js +38 -0
  94. package/src/lib/form/control.js.map +1 -0
  95. package/src/lib/form/generate-form-template.d.ts +5 -0
  96. package/src/lib/form/generate-form-template.js +12 -0
  97. package/src/lib/form/generate-form-template.js.map +1 -0
  98. package/src/lib/form/group/base-form-group.d.ts +17 -0
  99. package/src/lib/form/group/base-form-group.js +20 -0
  100. package/src/lib/form/group/base-form-group.js.map +1 -0
  101. package/src/lib/form/group/form-group-kind.d.ts +3 -0
  102. package/src/lib/form/group/form-group-kind.js +8 -0
  103. package/src/lib/form/group/form-group-kind.js.map +1 -0
  104. package/src/lib/form/group/form-group.d.ts +12 -0
  105. package/src/lib/form/group/form-group.js +18 -0
  106. package/src/lib/form/group/form-group.js.map +1 -0
  107. package/src/lib/load-handlebars-template.d.ts +6 -0
  108. package/src/lib/load-handlebars-template.js +36 -0
  109. package/src/lib/load-handlebars-template.js.map +1 -0
  110. package/src/lib/minimum-table-component-options.d.ts +1 -1
  111. package/src/lib/minimum-table-component-options.js +19 -13
  112. package/src/lib/minimum-table-component-options.js.map +1 -1
  113. package/src/lib/minimum-table-options.d.ts +17 -3
  114. package/src/lib/minimum-table-options.js +32 -5
  115. package/src/lib/minimum-table-options.js.map +1 -1
  116. package/src/lib/pipe-option.d.ts +11 -0
  117. package/src/lib/pipe-option.js +75 -0
  118. package/src/lib/pipe-option.js.map +1 -0
  119. package/src/lib/route-component.d.ts +16 -0
  120. package/src/lib/route-component.js +15 -0
  121. package/src/lib/route-component.js.map +1 -0
  122. package/src/lib/table/table-filter-column-rule.js +5 -4
  123. package/src/lib/table/table-filter-column-rule.js.map +1 -1
  124. package/src/lib/table-action.js.map +1 -1
  125. package/src/lib/table-column.d.ts +46 -13
  126. package/src/lib/table-column.js +179 -120
  127. package/src/lib/table-column.js.map +1 -1
  128. package/src/lib/table-options.d.ts +3 -2
  129. package/src/lib/table-options.js +22 -3
  130. package/src/lib/table-options.js.map +1 -1
  131. package/src/lib/table-row-action.d.ts +4 -2
  132. package/src/lib/table-row-action.js +8 -7
  133. package/src/lib/table-row-action.js.map +1 -1
  134. package/src/lib/tree-table-options.d.ts +3 -2
  135. package/src/lib/tree-table-options.js +39 -3
  136. package/src/lib/tree-table-options.js.map +1 -1
  137. package/src/lib/value-option.d.ts +12 -0
  138. package/src/lib/value-option.js +66 -0
  139. package/src/lib/value-option.js.map +1 -0
  140. package/src/schema.json +3013 -0
  141. package/src/schematic-input.schema.json +579 -0
  142. package/src/schematics/abstract-control.schema.json +78 -0
  143. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.hbs +34 -0
  144. package/src/schematics/accordion/accordion-component/index.d.ts +6 -2
  145. package/src/schematics/accordion/accordion-component/index.js +77 -139
  146. package/src/schematics/accordion/accordion-component/index.js.map +1 -1
  147. package/src/schematics/accordion/accordion-component/schema.d.ts +6 -0
  148. package/src/schematics/accordion/accordion-component/schema.json +1710 -132
  149. package/src/schematics/accordion/accordion-component/template.schema.json +105 -0
  150. package/src/schematics/accordion/accordion-item-component/index.d.ts +9 -4
  151. package/src/schematics/accordion/accordion-item-component/index.js +115 -87
  152. package/src/schematics/accordion/accordion-item-component/index.js.map +1 -1
  153. package/src/schematics/accordion/accordion-item-component/schema.d.ts +2 -2
  154. package/src/schematics/accordion/accordion-item-component/schema.json +1670 -62
  155. package/src/schematics/accordion/accordion-item-component/template.schema.json +32 -0
  156. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.d.ts +1 -1
  157. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js +32 -62
  158. package/src/schematics/accordion/item/accordion-item-data-grid-component/index.js.map +1 -1
  159. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.d.ts +1 -1
  160. package/src/schematics/accordion/item/accordion-item-data-grid-component/schema.json +1158 -72
  161. package/src/schematics/accordion/item/accordion-item-data-grid-component/template.schema.json +20 -0
  162. package/src/schematics/accordion/item/accordion-item-switch-component/index.d.ts +1 -1
  163. package/src/schematics/accordion/item/accordion-item-switch-component/index.js +16 -8
  164. package/src/schematics/accordion/item/accordion-item-switch-component/index.js.map +1 -1
  165. package/src/schematics/accordion/item/accordion-item-switch-component/schema.d.ts +1 -1
  166. package/src/schematics/accordion/item/accordion-item-switch-component/schema.json +1640 -178
  167. package/src/schematics/accordion/item/accordion-item-switch-component/template.schema.json +20 -0
  168. package/src/schematics/accordion/item/accordion-item-table-component/index.d.ts +1 -1
  169. package/src/schematics/accordion/item/accordion-item-table-component/index.js +9 -56
  170. package/src/schematics/accordion/item/accordion-item-table-component/index.js.map +1 -1
  171. package/src/schematics/accordion/item/accordion-item-table-component/schema.d.ts +1 -1
  172. package/src/schematics/accordion/item/accordion-item-table-component/schema.json +1208 -292
  173. package/src/schematics/accordion/item/accordion-item-table-component/template.schema.json +20 -0
  174. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.d.ts +1 -1
  175. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js +25 -84
  176. package/src/schematics/accordion/item/accordion-item-tree-table-component/index.js.map +1 -1
  177. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.d.ts +1 -1
  178. package/src/schematics/accordion/item/accordion-item-tree-table-component/schema.json +1165 -261
  179. package/src/schematics/accordion/item/accordion-item-tree-table-component/template.schema.json +20 -0
  180. package/src/schematics/accordion/templates/accordion-header.hbs +10 -0
  181. package/src/schematics/accordion/templates/data-grid-accordion-item.hbs +15 -0
  182. package/src/schematics/accordion/templates/default-accordion-item.hbs +15 -0
  183. package/src/schematics/accordion/templates/switch-accordion-item.hbs +29 -0
  184. package/src/schematics/accordion/templates/table-accordion-item.hbs +15 -0
  185. package/src/schematics/accordion/templates/tree-table-accordion-item.hbs +15 -0
  186. package/src/schematics/accordion-identifier.schema.json +24 -0
  187. package/src/schematics/accordion-item.schema.json +52 -0
  188. package/src/schematics/angular.schema.json +11 -11
  189. package/src/schematics/autocomplete-table-select-form-control.schema.json +96 -0
  190. package/src/schematics/backend.schema.json +13 -0
  191. package/src/schematics/base-accordion-item.schema.json +52 -0
  192. package/src/schematics/base-form-array.schema.json +45 -0
  193. package/src/schematics/base-form-control.schema.json +27 -0
  194. package/src/schematics/base-form-group.schema.json +42 -0
  195. package/src/schematics/button.schema.json +30 -0
  196. package/src/schematics/checkbox-form-control.schema.json +30 -0
  197. package/src/schematics/component.schema.json +16 -0
  198. package/src/schematics/control.schema.json +26 -0
  199. package/src/schematics/css-class.schema.json +34 -0
  200. package/src/schematics/data-grid-accordion-item.schema.json +34 -0
  201. package/src/schematics/data-grid-component/files/component/__componentName__.component.html.hbs +41 -0
  202. package/src/schematics/data-grid-component/index.d.ts +2 -4
  203. package/src/schematics/data-grid-component/index.js +105 -68
  204. package/src/schematics/data-grid-component/index.js.map +1 -1
  205. package/src/schematics/data-grid-component/schema.json +1107 -129
  206. package/src/schematics/data-grid-component/template.schema.json +20 -0
  207. package/src/schematics/data-grid-component/templates/default-data-grid-item.hbs +3 -0
  208. package/src/schematics/data-grid-component/templates/link-data-grid-item.hbs +8 -0
  209. package/src/schematics/data-grid-item.schema.json +50 -0
  210. package/src/schematics/data-grid.schema.json +66 -0
  211. package/src/schematics/dialog-component/schema.json +141 -65
  212. package/src/schematics/dialog-component/template.schema.json +62 -0
  213. package/src/schematics/form/control/autocomplete-table-select-form-control/index.d.ts +10 -0
  214. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js +285 -0
  215. package/src/schematics/form/control/autocomplete-table-select-form-control/index.js.map +1 -0
  216. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.d.ts +4 -0
  217. package/src/schematics/form/control/autocomplete-table-select-form-control/schema.json +539 -0
  218. package/src/schematics/form/control/autocomplete-table-select-form-control/template.schema.json +39 -0
  219. package/src/schematics/form/control/input-form-control/index.d.ts +2 -2
  220. package/src/schematics/form/control/input-form-control/index.js +4 -27
  221. package/src/schematics/form/control/input-form-control/index.js.map +1 -1
  222. package/src/schematics/form/control/input-form-control/schema.d.ts +2 -3
  223. package/src/schematics/form/control/input-form-control/schema.json +384 -93
  224. package/src/schematics/form/control/input-form-control/template.schema.json +33 -0
  225. package/src/schematics/form/control/select-form-control/index.d.ts +4 -2
  226. package/src/schematics/form/control/select-form-control/index.js +141 -98
  227. package/src/schematics/form/control/select-form-control/index.js.map +1 -1
  228. package/src/schematics/form/control/select-form-control/schema.d.ts +2 -4
  229. package/src/schematics/form/control/select-form-control/schema.json +494 -79
  230. package/src/schematics/form/control/select-form-control/template.schema.json +33 -0
  231. package/src/schematics/form/control/table-select-form-control/index.d.ts +5 -7
  232. package/src/schematics/form/control/table-select-form-control/index.js +209 -143
  233. package/src/schematics/form/control/table-select-form-control/index.js.map +1 -1
  234. package/src/schematics/form/control/table-select-form-control/schema.d.ts +2 -5
  235. package/src/schematics/form/control/table-select-form-control/schema.json +536 -83
  236. package/src/schematics/form/control/table-select-form-control/template.schema.json +39 -0
  237. package/src/schematics/form/form-array/index.d.ts +9 -0
  238. package/src/schematics/form/form-array/index.js +54 -0
  239. package/src/schematics/form/form-array/index.js.map +1 -0
  240. package/src/schematics/form/form-array/schema.d.ts +4 -0
  241. package/src/schematics/form/form-array/schema.json +1026 -0
  242. package/src/schematics/form/form-array/template.schema.json +33 -0
  243. package/src/schematics/form/form-component/files/component/{__componentName__.component.html.template → __componentName__.component.html.hbs} +7 -4
  244. package/src/schematics/form/form-component/index.d.ts +4 -4
  245. package/src/schematics/form/form-component/index.js +23 -23
  246. package/src/schematics/form/form-component/index.js.map +1 -1
  247. package/src/schematics/form/form-component/schema.d.ts +4 -2
  248. package/src/schematics/form/form-component/schema.json +1026 -136
  249. package/src/schematics/form/form-component/template.schema.json +20 -0
  250. package/src/schematics/form/form-control/index.d.ts +6 -6
  251. package/src/schematics/form/form-control/index.js +25 -24
  252. package/src/schematics/form/form-control/index.js.map +1 -1
  253. package/src/schematics/form/form-control/schema.d.ts +2 -4
  254. package/src/schematics/form/form-control/schema.json +855 -67
  255. package/src/schematics/form/form-control/template.schema.json +33 -0
  256. package/src/schematics/form/form-definition/index.d.ts +2 -2
  257. package/src/schematics/form/form-definition/index.js +30 -4
  258. package/src/schematics/form/form-definition/index.js.map +1 -1
  259. package/src/schematics/form/form-definition/schema.d.ts +2 -2
  260. package/src/schematics/form/form-definition/schema.json +1007 -117
  261. package/src/schematics/form/form-definition/template.schema.json +30 -0
  262. package/src/schematics/form/form-group/index.d.ts +9 -0
  263. package/src/schematics/form/form-group/index.js +54 -0
  264. package/src/schematics/form/form-group/index.js.map +1 -0
  265. package/src/schematics/form/form-group/schema.d.ts +4 -0
  266. package/src/schematics/form/form-group/schema.json +1026 -0
  267. package/src/schematics/form/form-group/template.schema.json +33 -0
  268. package/src/schematics/form/templates/autocomplete-table-select-form-control.hbs +34 -0
  269. package/src/schematics/form/templates/checkbox-form-control.hbs +11 -0
  270. package/src/schematics/form/templates/default-form-array.hbs +29 -0
  271. package/src/schematics/form/templates/default-form-control.hbs +2 -0
  272. package/src/schematics/form/templates/default-form-group.hbs +15 -0
  273. package/src/schematics/form/templates/input-form-control.hbs +16 -0
  274. package/src/schematics/form/templates/mat-form-field.hbs +31 -0
  275. package/src/schematics/form/templates/select-form-control.hbs +18 -0
  276. package/src/schematics/form/templates/slide-toggle-form-control.hbs +10 -0
  277. package/src/schematics/form/templates/table-select-form-control.hbs +25 -0
  278. package/src/schematics/form/templates/textarea-form-control.hbs +25 -0
  279. package/src/schematics/form-array.schema.json +40 -0
  280. package/src/schematics/form-component.schema.json +45 -0
  281. package/src/schematics/form-control.schema.json +83 -0
  282. package/src/schematics/form-definition.schema.json +22 -0
  283. package/src/schematics/form-field.schema.json +30 -0
  284. package/src/schematics/form-group.schema.json +40 -0
  285. package/src/schematics/general.schema.json +1 -4
  286. package/src/schematics/header-button.schema.json +42 -0
  287. package/src/schematics/input-form-control.schema.json +59 -0
  288. package/src/schematics/minimum-table.schema.json +76 -0
  289. package/src/schematics/pipe.schema.json +38 -0
  290. package/src/schematics/property.schema.json +38 -0
  291. package/src/schematics/route-component/files/component/__componentName__.component.html.hbs +1 -0
  292. package/src/schematics/route-component/index.d.ts +8 -0
  293. package/src/schematics/route-component/index.js +101 -0
  294. package/src/schematics/route-component/index.js.map +1 -0
  295. package/src/schematics/route-component/schema.d.ts +5 -0
  296. package/src/schematics/route-component/schema.json +154 -0
  297. package/src/schematics/route-component/template.schema.json +20 -0
  298. package/src/schematics/route-component.schema.json +35 -0
  299. package/src/schematics/select-form-control.schema.json +74 -0
  300. package/src/schematics/slide-toggle-form-control.schema.json +30 -0
  301. package/src/schematics/switch-accordion-item.schema.json +82 -0
  302. package/src/schematics/table/action/dialog-table-action/index.js +1 -0
  303. package/src/schematics/table/action/dialog-table-action/index.js.map +1 -1
  304. package/src/schematics/table/action/dialog-table-action/schema.json +234 -119
  305. package/src/schematics/table/action/dialog-table-action/template.schema.json +58 -0
  306. package/src/schematics/table/action/form-table-action/index.d.ts +2 -2
  307. package/src/schematics/table/action/form-table-action/index.js +6 -5
  308. package/src/schematics/table/action/form-table-action/index.js.map +1 -1
  309. package/src/schematics/table/action/form-table-action/schema.d.ts +2 -2
  310. package/src/schematics/table/action/form-table-action/schema.json +1132 -138
  311. package/src/schematics/table/action/form-table-action/template.schema.json +75 -0
  312. package/src/schematics/table/action/navigation-table-action/schema.json +218 -80
  313. package/src/schematics/table/action/navigation-table-action/template.schema.json +28 -0
  314. package/src/schematics/table/action/open-api-table-action/schema.json +232 -92
  315. package/src/schematics/table/action/open-api-table-action/template.schema.json +56 -0
  316. package/src/schematics/table/action/operation-table-action/index.js +2 -1
  317. package/src/schematics/table/action/operation-table-action/index.js.map +1 -1
  318. package/src/schematics/table/action/operation-table-action/schema.json +205 -84
  319. package/src/schematics/table/action/operation-table-action/template.schema.json +14 -0
  320. package/src/schematics/table/header-button/form-table-header-button/index.d.ts +2 -2
  321. package/src/schematics/table/header-button/form-table-header-button/index.js +2 -2
  322. package/src/schematics/table/header-button/form-table-header-button/index.js.map +1 -1
  323. package/src/schematics/table/header-button/form-table-header-button/schema.d.ts +2 -2
  324. package/src/schematics/table/header-button/form-table-header-button/schema.json +1095 -98
  325. package/src/schematics/table/header-button/form-table-header-button/template.schema.json +33 -0
  326. package/src/schematics/table/header-button/navigation-table-header-button/schema.json +167 -71
  327. package/src/schematics/table/header-button/navigation-table-header-button/template.schema.json +28 -0
  328. package/src/schematics/table/table-action/schema.json +195 -77
  329. package/src/schematics/table/table-action/template.schema.json +30 -0
  330. package/src/schematics/table/table-component/files/component/__componentName__.component.html.hbs +286 -0
  331. package/src/schematics/table/table-component/index.d.ts +0 -5
  332. package/src/schematics/table/table-component/index.js +20 -33
  333. package/src/schematics/table/table-component/index.js.map +1 -1
  334. package/src/schematics/table/table-component/schema.json +1133 -295
  335. package/src/schematics/table/table-component/template.schema.json +20 -0
  336. package/src/schematics/table/table-header-button/schema.json +145 -63
  337. package/src/schematics/table/table-header-button/template.schema.json +30 -0
  338. package/src/schematics/table/templates/boolean-table-column.hbs +23 -0
  339. package/src/schematics/table/templates/component-table-column.hbs +25 -0
  340. package/src/schematics/table/templates/copy-to-clipboard-table-column.hbs +23 -0
  341. package/src/schematics/table/templates/date-table-column.hbs +24 -0
  342. package/src/schematics/table/templates/default-table-column.hbs +23 -0
  343. package/src/schematics/table/templates/icon-table-column.hbs +23 -0
  344. package/src/schematics/table/templates/link-table-column.hbs +23 -0
  345. package/src/schematics/table/templates/mat-column-def.hbs +3 -0
  346. package/src/schematics/table/templates/spinner-table-column.hbs +27 -0
  347. package/src/schematics/table/templates/tree-table-column.hbs +21 -0
  348. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.hbs +286 -0
  349. package/src/schematics/table/tree-table-component/index.d.ts +3 -0
  350. package/src/schematics/table/tree-table-component/index.js +30 -9
  351. package/src/schematics/table/tree-table-component/index.js.map +1 -1
  352. package/src/schematics/table/tree-table-component/schema.json +1114 -264
  353. package/src/schematics/table/tree-table-component/template.schema.json +20 -0
  354. package/src/schematics/table-accordion-item.schema.json +41 -0
  355. package/src/schematics/table-action.schema.json +65 -0
  356. package/src/schematics/table-column.schema.json +81 -0
  357. package/src/schematics/table-select-form-control.schema.json +102 -0
  358. package/src/schematics/table.schema.json +58 -0
  359. package/src/schematics/templates/css-class.hbs +1 -0
  360. package/src/schematics/templates/pipe.hbs +4 -0
  361. package/src/schematics/textarea-form-control.schema.json +43 -0
  362. package/src/schematics/tree-component/index.js +2 -1
  363. package/src/schematics/tree-component/index.js.map +1 -1
  364. package/src/schematics/tree-component/schema.json +115 -70
  365. package/src/schematics/tree-component/template.schema.json +36 -0
  366. package/src/schematics/tree-table-accordion-item.schema.json +41 -0
  367. package/src/schematics/tree-table.schema.json +41 -0
  368. package/src/schematics/type.schema.json +35 -0
  369. package/src/schematics/upstream.schema.json +95 -0
  370. package/src/schematics/value.schema.json +26 -0
  371. package/src/template.schema.json +245 -0
  372. package/src/lib/accordion-itme-types.d.ts +0 -8
  373. package/src/lib/accordion-itme-types.js +0 -16
  374. package/src/lib/accordion-itme-types.js.map +0 -1
  375. package/src/lib/form-component-control.d.ts +0 -12
  376. package/src/lib/form-component-control.js +0 -15
  377. package/src/lib/form-component-control.js.map +0 -1
  378. package/src/lib/form-definition-control.d.ts +0 -59
  379. package/src/lib/form-definition-control.js +0 -156
  380. package/src/lib/form-definition-control.js.map +0 -1
  381. package/src/lib/merge-with-column-list.d.ts +0 -3
  382. package/src/lib/merge-with-column-list.js +0 -18
  383. package/src/lib/merge-with-column-list.js.map +0 -1
  384. package/src/schematics/accordion/accordion-component/files/component/__componentName__.component.html.template +0 -94
  385. package/src/schematics/accordion/accordion-component/files/header-component/accordion-header.component.html.template +0 -10
  386. package/src/schematics/data-grid-component/files/form/__componentName__.component.html.template +0 -42
  387. package/src/schematics/data-grid-component/files/plain/__componentName__.component.html.template +0 -25
  388. package/src/schematics/table/table-component/files/component/__componentName__.component.html.template +0 -299
  389. package/src/schematics/table/tree-table-component/files/component/__componentName__.component.html.template +0 -259
@@ -1,92 +1,1700 @@
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"
74
726
  },
727
+ "cssClass": {
728
+ "$ref": "#/definitions/cssClass"
729
+ }
730
+ }
731
+ },
732
+ "formGroup": {
733
+ "allOf": [
734
+ {
735
+ "type": "object",
736
+ "properties": {
737
+ "role": {
738
+ "type": "string",
739
+ "const": "group"
740
+ }
741
+ }
742
+ },
743
+ {
744
+ "oneOf": [
745
+ {
746
+ "allOf": [
747
+ {
748
+ "$ref": "#/definitions/baseFormGroup"
749
+ },
750
+ {
751
+ "type": "object",
752
+ "properties": {
753
+ "kind": {
754
+ "type": "string",
755
+ "const": "default"
756
+ }
757
+ }
758
+ }
759
+ ]
760
+ }
761
+ ]
762
+ }
763
+ ]
764
+ },
765
+ "general": {
766
+ "type": "object",
767
+ "properties": {
768
+ "project": {
769
+ "type": "string",
770
+ "description": "Project name where the files should be generated"
771
+ },
772
+ "feature": {
773
+ "type": "string",
774
+ "description": "Feature name where the files should be generated"
775
+ },
776
+ "overwrite": {
777
+ "anyOf": [
778
+ {
779
+ "type": "boolean"
780
+ },
781
+ {
782
+ "type": "array",
783
+ "items": {
784
+ "type": "string"
785
+ }
786
+ }
787
+ ],
788
+ "description": "Overwrite existing files",
789
+ "default": false
790
+ },
791
+ "overwriteHtml": {
792
+ "type": "boolean",
793
+ "default": false
794
+ },
795
+ "replace": {
796
+ "type": "boolean",
797
+ "default": false
798
+ }
799
+ }
800
+ },
801
+ "headerButton": {
802
+ "type": "object",
803
+ "properties": {
804
+ "permission": {
805
+ "type": "string"
806
+ },
807
+ "icon": {
808
+ "type": "string"
809
+ },
810
+ "svgIcon": {
811
+ "type": "string"
812
+ },
813
+ "refresh": {
814
+ "type": "boolean",
815
+ "description": "Whether the table action should refresh the table after execution",
816
+ "default": false
817
+ },
818
+ "confirm": {
819
+ "type": "boolean",
820
+ "description": "Whether the table action should confirm before execution",
821
+ "default": false
822
+ },
823
+ "tooltip": {
824
+ "type": "string",
825
+ "description": "The tooltip for the table action"
826
+ },
827
+ "errorMessage": {
828
+ "type": "string",
829
+ "description": "The error message for the table action"
830
+ },
831
+ "successMessage": {
832
+ "type": "string",
833
+ "description": "The success message for the table action"
834
+ },
835
+ "options": {
836
+ "type": "object",
837
+ "additionalProperties": true
838
+ }
839
+ }
840
+ },
841
+ "inputFormControl": {
842
+ "allOf": [
843
+ {
844
+ "$ref": "#/definitions/baseFormControl"
845
+ },
846
+ {
847
+ "type": "object",
848
+ "properties": {
849
+ "kind": {
850
+ "type": "string",
851
+ "const": "input"
852
+ },
853
+ "formField": {
854
+ "$ref": "#/definitions/formField"
855
+ },
856
+ "inputType": {
857
+ "type": "string",
858
+ "enum": [
859
+ "text",
860
+ "password",
861
+ "email",
862
+ "number",
863
+ "tel",
864
+ "url",
865
+ "checkbox",
866
+ "color",
867
+ "date",
868
+ "time",
869
+ "datetime-local",
870
+ "file",
871
+ "hidden",
872
+ "image",
873
+ "month",
874
+ "radio",
875
+ "reset",
876
+ "button",
877
+ "search",
878
+ "submit",
879
+ "week",
880
+ "range"
881
+ ]
882
+ },
883
+ "placeholder": {
884
+ "type": "string"
885
+ }
886
+ }
887
+ }
888
+ ]
889
+ },
890
+ "minimumTable": {
891
+ "type": "object",
892
+ "properties": {
893
+ "propertyList": {
894
+ "alias": "property",
895
+ "type": "array",
896
+ "items": {
897
+ "$ref": "#/definitions/property"
898
+ }
899
+ },
900
+ "upstream": {
901
+ "$ref": "#/definitions/upstream"
902
+ },
903
+ "columnList": {
904
+ "alias": "column",
905
+ "type": "array",
906
+ "items": {
907
+ "$ref": "#/definitions/tableColumn"
908
+ },
909
+ "description": "List of table column names"
910
+ },
911
+ "actionList": {
912
+ "alias": "action",
913
+ "type": "array",
914
+ "items": {
915
+ "$ref": "#/definitions/tableAction"
916
+ }
917
+ },
918
+ "headerButton": {
919
+ "$ref": "#/definitions/headerButton"
920
+ },
921
+ "modifiers": {
922
+ "alias": "modifier",
923
+ "type": "array",
924
+ "items": {
925
+ "type": "string"
926
+ },
927
+ "description": "The table modifiers"
928
+ },
929
+ "cssClass": {
930
+ "$ref": "#/definitions/cssClass"
931
+ },
932
+ "identifier": {
933
+ "$ref": "#/definitions/accordionIdentifier"
934
+ },
935
+ "sortable": {
936
+ "type": "boolean",
937
+ "description": "Whether the table is sortable"
938
+ }
939
+ }
940
+ },
941
+ "pipe": {
942
+ "oneOf": [
943
+ {
944
+ "type": "string"
945
+ },
946
+ {
947
+ "allOf": [
948
+ {
949
+ "$ref": "#/definitions/type"
950
+ },
951
+ {
952
+ "type": "object",
953
+ "properties": {
954
+ "argumentList": {
955
+ "type": "array",
956
+ "items": {
957
+ "$ref": "#/definitions/value"
958
+ }
959
+ }
960
+ },
961
+ "required": [
962
+ "name"
963
+ ]
964
+ }
965
+ ]
966
+ }
967
+ ]
968
+ },
969
+ "property": {
970
+ "oneOf": [
971
+ {
972
+ "type": "string"
973
+ },
974
+ {
975
+ "type": "object",
976
+ "properties": {
977
+ "name": {
978
+ "type": "string"
979
+ },
980
+ "type": {
981
+ "$ref": "#/definitions/type"
982
+ },
983
+ "isArray": {
984
+ "type": "boolean"
985
+ },
986
+ "isRequired": {
987
+ "type": "boolean"
988
+ },
989
+ "source": {
990
+ "type": "string"
991
+ },
992
+ "memberList": {
993
+ "type": "array",
994
+ "items": {
995
+ "additionalProperties": true
996
+ }
997
+ }
998
+ }
999
+ }
1000
+ ]
1001
+ },
1002
+ "selectFormControl": {
1003
+ "allOf": [
1004
+ {
1005
+ "$ref": "#/definitions/baseFormControl"
1006
+ },
75
1007
  {
1008
+ "type": "object",
1009
+ "properties": {
1010
+ "formField": {
1011
+ "$ref": "#/definitions/formField"
1012
+ },
1013
+ "kind": {
1014
+ "type": "string",
1015
+ "const": "select"
1016
+ },
1017
+ "upstream": {
1018
+ "$ref": "#/definitions/upstream"
1019
+ },
1020
+ "optionList": {
1021
+ "type": "array",
1022
+ "items": {
1023
+ "type": "object",
1024
+ "properties": {
1025
+ "display": {
1026
+ "type": "string"
1027
+ },
1028
+ "value": {
1029
+ "oneOf": [
1030
+ {
1031
+ "type": "string"
1032
+ },
1033
+ {
1034
+ "type": "number"
1035
+ },
1036
+ {
1037
+ "type": "boolean"
1038
+ },
1039
+ {
1040
+ "type": "object",
1041
+ "additionalProperties": true
1042
+ }
1043
+ ]
1044
+ }
1045
+ }
1046
+ }
1047
+ },
1048
+ "backend": {
1049
+ "$ref": "#/definitions/backend"
1050
+ },
1051
+ "multiple": {
1052
+ "alias": "multi",
1053
+ "type": "boolean",
1054
+ "description": "Whether the select form control is multiple mode"
1055
+ }
1056
+ }
1057
+ }
1058
+ ]
1059
+ },
1060
+ "slideToggleFormControl": {
1061
+ "allOf": [
1062
+ {
1063
+ "$ref": "#/definitions/baseFormControl"
1064
+ },
1065
+ {
1066
+ "type": "object",
1067
+ "properties": {
1068
+ "kind": {
1069
+ "type": "string",
1070
+ "const": "slide-toggle"
1071
+ },
1072
+ "labelPosition": {
1073
+ "type": "string",
1074
+ "enum": [
1075
+ "before",
1076
+ "after"
1077
+ ]
1078
+ }
1079
+ }
1080
+ }
1081
+ ]
1082
+ },
1083
+ "switchAccordionItem": {
1084
+ "allOf": [
1085
+ {
1086
+ "$ref": "#/definitions/baseAccordionItem"
1087
+ },
1088
+ {
1089
+ "type": "object",
1090
+ "properties": {
1091
+ "kind": {
1092
+ "type": "string",
1093
+ "const": "switch"
1094
+ },
1095
+ "switch": {
1096
+ "type": "object",
1097
+ "properties": {
1098
+ "property": {
1099
+ "$ref": "#/definitions/property"
1100
+ },
1101
+ "defaultCase": {
1102
+ "type": "object",
1103
+ "properties": {
1104
+ "itemList": {
1105
+ "alias": "item",
1106
+ "type": "array",
1107
+ "items": {
1108
+ "$ref": "#/definitions/accordionItem"
1109
+ },
1110
+ "description": "The list of accordion expansion panels"
1111
+ }
1112
+ },
1113
+ "required": [
1114
+ "itemList"
1115
+ ]
1116
+ },
1117
+ "case": {
1118
+ "type": "array",
1119
+ "items": {
1120
+ "type": "object",
1121
+ "properties": {
1122
+ "test": {
1123
+ "anyOf": [
1124
+ {
1125
+ "type": "string"
1126
+ },
1127
+ {
1128
+ "type": "number"
1129
+ },
1130
+ {
1131
+ "type": "boolean"
1132
+ }
1133
+ ]
1134
+ },
1135
+ "itemList": {
1136
+ "alias": "item",
1137
+ "type": "array",
1138
+ "items": {
1139
+ "$ref": "#/definitions/accordionItem"
1140
+ },
1141
+ "description": "The list of accordion expansion panels"
1142
+ }
1143
+ },
1144
+ "required": [
1145
+ "test",
1146
+ "itemList"
1147
+ ]
1148
+ }
1149
+ }
1150
+ },
1151
+ "required": [
1152
+ "property"
1153
+ ]
1154
+ }
1155
+ }
1156
+ }
1157
+ ]
1158
+ },
1159
+ "table": {
1160
+ "allOf": [
1161
+ {
1162
+ "$ref": "#/definitions/minimumTable"
1163
+ },
1164
+ {
1165
+ "type": "object",
1166
+ "properties": {
1167
+ "tableMethod": {
1168
+ "$ref": "#/definitions/type"
1169
+ },
1170
+ "openApi": {
1171
+ "type": "object",
1172
+ "properties": {
1173
+ "operationId": {
1174
+ "type": "string",
1175
+ "description": "The operationId for the open api operation"
1176
+ },
1177
+ "adapter": {
1178
+ "$ref": "#/definitions/type"
1179
+ }
1180
+ },
1181
+ "required": [
1182
+ "operationId"
1183
+ ]
1184
+ },
1185
+ "modifiers": {
1186
+ "alias": "modifier",
1187
+ "type": "array",
1188
+ "items": {
1189
+ "type": "string",
1190
+ "enum": [
1191
+ "navigation-back-header",
1192
+ "without-title",
1193
+ "show-archived-slide",
1194
+ "with-header"
1195
+ ]
1196
+ },
1197
+ "description": "The table modifiers"
1198
+ },
1199
+ "selectColumn": {
1200
+ "type": "boolean",
1201
+ "description": "Whether to add a select column to the table"
1202
+ }
1203
+ }
1204
+ }
1205
+ ]
1206
+ },
1207
+ "tableAccordionItem": {
1208
+ "allOf": [
1209
+ {
1210
+ "$ref": "#/definitions/baseAccordionItem"
1211
+ },
1212
+ {
1213
+ "type": "object",
1214
+ "properties": {
1215
+ "kind": {
1216
+ "type": "string",
1217
+ "const": "table"
1218
+ },
1219
+ "modifiers": {
1220
+ "alias": "modifier",
1221
+ "type": "array",
1222
+ "items": {
1223
+ "type": "string",
1224
+ "enum": [
1225
+ "navigation-back-header",
1226
+ "without-title"
1227
+ ]
1228
+ },
1229
+ "description": "The table modifiers"
1230
+ },
1231
+ "table": {
1232
+ "$ref": "#/definitions/table"
1233
+ }
1234
+ }
1235
+ }
1236
+ ]
1237
+ },
1238
+ "tableAction": {
1239
+ "type": "object",
1240
+ "properties": {
1241
+ "type": {
1242
+ "type": "string"
1243
+ },
1244
+ "refresh": {
1245
+ "type": "boolean"
1246
+ },
1247
+ "confirm": {
1248
+ "type": "boolean"
1249
+ },
1250
+ "tooltip": {
1251
+ "type": "string"
1252
+ },
1253
+ "errorMessage": {
1254
+ "type": "string"
1255
+ },
1256
+ "successMessage": {
1257
+ "type": "string"
1258
+ },
1259
+ "priority": {
1260
+ "type": "number"
1261
+ },
1262
+ "checkFunction": {
1263
+ "type": "string"
1264
+ },
1265
+ "inHeader": {
1266
+ "type": "boolean"
1267
+ },
1268
+ "role": {
1269
+ "type": "string"
1270
+ },
1271
+ "icon": {
1272
+ "type": "string"
1273
+ },
1274
+ "svgIcon": {
1275
+ "type": "string"
1276
+ },
1277
+ "permission": {
1278
+ "type": "string"
1279
+ },
1280
+ "color": {
1281
+ "type": "string",
1282
+ "description": "Value for the color input of the mat-button / mat-icon component"
1283
+ },
1284
+ "cssClass": {
1285
+ "$ref": "#/definitions/cssClass"
1286
+ },
1287
+ "options": {
1288
+ "type": "object",
1289
+ "additionalProperties": true
1290
+ }
1291
+ },
1292
+ "required": [
1293
+ "type"
1294
+ ]
1295
+ },
1296
+ "tableColumn": {
1297
+ "type": "object",
1298
+ "properties": {
1299
+ "name": {
1300
+ "type": "string"
1301
+ },
1302
+ "type": {
1303
+ "$ref": "#/definitions/type"
1304
+ },
1305
+ "kind": {
1306
+ "type": "string"
1307
+ },
1308
+ "modifiers": {
76
1309
  "type": "array",
77
1310
  "items": {
78
1311
  "type": "string"
79
1312
  }
1313
+ },
1314
+ "template": {
1315
+ "type": "string"
1316
+ },
1317
+ "pipeList": {
1318
+ "type": "array",
1319
+ "items": {
1320
+ "$ref": "#/definitions/pipe"
1321
+ }
1322
+ },
1323
+ "hasFilter": {
1324
+ "type": "boolean"
1325
+ },
1326
+ "sortable": {
1327
+ "type": "boolean"
1328
+ },
1329
+ "nowrap": {
1330
+ "type": "boolean"
1331
+ },
1332
+ "cssClass": {
1333
+ "$ref": "#/definitions/cssClass"
1334
+ },
1335
+ "title": {
1336
+ "type": "string"
1337
+ },
1338
+ "propertyPath": {
1339
+ "type": "string"
1340
+ },
1341
+ "hidden": {
1342
+ "type": "boolean"
1343
+ },
1344
+ "active": {
1345
+ "type": "boolean"
1346
+ },
1347
+ "inactive": {
1348
+ "type": "boolean"
1349
+ },
1350
+ "show": {
1351
+ "type": "boolean"
1352
+ },
1353
+ "filterControl": {
1354
+ "$ref": "#/definitions/formControl"
1355
+ }
1356
+ },
1357
+ "required": [
1358
+ "name"
1359
+ ]
1360
+ },
1361
+ "tableSelectFormControl": {
1362
+ "allOf": [
1363
+ {
1364
+ "$ref": "#/definitions/baseFormControl"
1365
+ },
1366
+ {
1367
+ "type": "object",
1368
+ "properties": {
1369
+ "formField": {
1370
+ "$ref": "#/definitions/formField"
1371
+ },
1372
+ "kind": {
1373
+ "type": "string",
1374
+ "const": "table-select"
1375
+ },
1376
+ "placeholder": {
1377
+ "type": "string"
1378
+ },
1379
+ "columnList": {
1380
+ "alias": "column",
1381
+ "type": "array",
1382
+ "items": {
1383
+ "description": "table column name",
1384
+ "type": "object",
1385
+ "properties": {
1386
+ "name": {
1387
+ "type": "string",
1388
+ "description": "table column name"
1389
+ },
1390
+ "title": {
1391
+ "type": "string",
1392
+ "description": "table column label"
1393
+ },
1394
+ "hasFilter": {
1395
+ "type": "boolean",
1396
+ "description": "Whether the column has a filter"
1397
+ },
1398
+ "kind": {
1399
+ "type": "string",
1400
+ "description": "The kind of data in the column"
1401
+ }
1402
+ }
1403
+ },
1404
+ "description": "List of table column names"
1405
+ },
1406
+ "title": {
1407
+ "type": "string",
1408
+ "description": "The title of the table select window"
1409
+ },
1410
+ "toDisplay": {
1411
+ "type": "object",
1412
+ "properties": {
1413
+ "property": {
1414
+ "$ref": "#/definitions/property"
1415
+ }
1416
+ }
1417
+ },
1418
+ "toValue": {
1419
+ "type": "object",
1420
+ "properties": {
1421
+ "property": {
1422
+ "$ref": "#/definitions/property"
1423
+ }
1424
+ }
1425
+ },
1426
+ "upstream": {
1427
+ "$ref": "#/definitions/upstream"
1428
+ },
1429
+ "resolver": {
1430
+ "type": "object",
1431
+ "properties": {
1432
+ "upstream": {
1433
+ "$ref": "#/definitions/upstream"
1434
+ }
1435
+ }
1436
+ },
1437
+ "identifier": {
1438
+ "$ref": "#/definitions/accordionIdentifier"
1439
+ }
1440
+ }
1441
+ }
1442
+ ]
1443
+ },
1444
+ "textareaFormControl": {
1445
+ "allOf": [
1446
+ {
1447
+ "$ref": "#/definitions/baseFormControl"
1448
+ },
1449
+ {
1450
+ "type": "object",
1451
+ "properties": {
1452
+ "formField": {
1453
+ "$ref": "#/definitions/formField"
1454
+ },
1455
+ "kind": {
1456
+ "type": "string",
1457
+ "const": "textarea"
1458
+ },
1459
+ "placeholder": {
1460
+ "type": "string"
1461
+ },
1462
+ "autosize": {
1463
+ "type": "object",
1464
+ "properties": {
1465
+ "minRows": {
1466
+ "type": "number"
1467
+ },
1468
+ "maxRows": {
1469
+ "type": "number"
1470
+ }
1471
+ }
1472
+ }
1473
+ }
1474
+ }
1475
+ ]
1476
+ },
1477
+ "treeTable": {
1478
+ "allOf": [
1479
+ {
1480
+ "$ref": "#/definitions/minimumTable"
1481
+ },
1482
+ {
1483
+ "type": "object",
1484
+ "properties": {
1485
+ "modifiers": {
1486
+ "alias": "modifier",
1487
+ "type": "array",
1488
+ "items": {
1489
+ "type": "string",
1490
+ "enum": [
1491
+ "navigation-back-header",
1492
+ "without-title",
1493
+ "with-header"
1494
+ ]
1495
+ },
1496
+ "description": "The table modifiers"
1497
+ },
1498
+ "tableRootMethod": {
1499
+ "$ref": "#/definitions/type"
1500
+ },
1501
+ "tableChildMethod": {
1502
+ "$ref": "#/definitions/type"
1503
+ }
1504
+ }
80
1505
  }
81
1506
  ],
82
- "description": "Overwrite existing files",
83
- "default": false
1507
+ "definitions": {
1508
+ "minimumTable": {
1509
+ "ref": "./minimum-table.schema.json"
1510
+ }
1511
+ }
1512
+ },
1513
+ "treeTableAccordionItem": {
1514
+ "allOf": [
1515
+ {
1516
+ "$ref": "#/definitions/baseAccordionItem"
1517
+ },
1518
+ {
1519
+ "type": "object",
1520
+ "properties": {
1521
+ "kind": {
1522
+ "type": "string",
1523
+ "const": "tree-table"
1524
+ },
1525
+ "modifiers": {
1526
+ "alias": "modifier",
1527
+ "type": "array",
1528
+ "items": {
1529
+ "type": "string",
1530
+ "enum": [
1531
+ "navigation-back-header",
1532
+ "without-title"
1533
+ ]
1534
+ },
1535
+ "description": "The table modifiers"
1536
+ },
1537
+ "table": {
1538
+ "$ref": "#/definitions/treeTable"
1539
+ }
1540
+ }
1541
+ }
1542
+ ]
1543
+ },
1544
+ "type": {
1545
+ "oneOf": [
1546
+ {
1547
+ "type": "string"
1548
+ },
1549
+ {
1550
+ "type": "object",
1551
+ "properties": {
1552
+ "name": {
1553
+ "type": "string"
1554
+ },
1555
+ "isTypeOnly": {
1556
+ "type": "boolean"
1557
+ },
1558
+ "moduleSpecifier": {
1559
+ "type": "string"
1560
+ },
1561
+ "namedImport": {
1562
+ "type": "string"
1563
+ },
1564
+ "namespaceImport": {
1565
+ "type": "string"
1566
+ },
1567
+ "defaultImport": {
1568
+ "type": "string"
1569
+ }
1570
+ },
1571
+ "required": [
1572
+ "name"
1573
+ ]
1574
+ }
1575
+ ]
1576
+ },
1577
+ "upstream": {
1578
+ "oneOf": [
1579
+ {
1580
+ "type": "object",
1581
+ "properties": {
1582
+ "kind": {
1583
+ "type": "string",
1584
+ "enum": [
1585
+ "open-api"
1586
+ ]
1587
+ },
1588
+ "operationId": {
1589
+ "type": "string"
1590
+ },
1591
+ "scope": {
1592
+ "type": "string"
1593
+ },
1594
+ "mapper": {
1595
+ "oneOf": [
1596
+ {
1597
+ "type": "object",
1598
+ "properties": {
1599
+ "kind": {
1600
+ "type": "string",
1601
+ "const": "paged"
1602
+ },
1603
+ "pageIndex": {
1604
+ "type": "string"
1605
+ },
1606
+ "pageSize": {
1607
+ "type": "string"
1608
+ },
1609
+ "sortBy": {
1610
+ "type": "string"
1611
+ },
1612
+ "sortDirection": {
1613
+ "type": "string"
1614
+ },
1615
+ "list": {
1616
+ "type": "string"
1617
+ },
1618
+ "total": {
1619
+ "type": "string"
1620
+ },
1621
+ "filter": {
1622
+ "type": "object",
1623
+ "properties": {
1624
+ "eq": {
1625
+ "type": "string"
1626
+ },
1627
+ "join": {
1628
+ "type": "string"
1629
+ }
1630
+ }
1631
+ }
1632
+ }
1633
+ },
1634
+ {
1635
+ "type": "object",
1636
+ "properties": {
1637
+ "kind": {
1638
+ "type": "string",
1639
+ "const": "options"
1640
+ },
1641
+ "toFunction": {
1642
+ "type": "string",
1643
+ "enum": [
1644
+ "ToOptions",
1645
+ "ToOptionsFromObject"
1646
+ ]
1647
+ },
1648
+ "toValue": {
1649
+ "type": "string"
1650
+ },
1651
+ "toDisplay": {
1652
+ "type": "string"
1653
+ }
1654
+ }
1655
+ },
1656
+ {
1657
+ "type": "object",
1658
+ "properties": {
1659
+ "kind": {
1660
+ "type": "string",
1661
+ "const": "resolve"
1662
+ },
1663
+ "value": {
1664
+ "type": "string"
1665
+ }
1666
+ }
1667
+ }
1668
+ ]
1669
+ }
1670
+ },
1671
+ "required": [
1672
+ "kind",
1673
+ "operationId"
1674
+ ]
1675
+ }
1676
+ ]
1677
+ },
1678
+ "value": {
1679
+ "oneOf": [
1680
+ {
1681
+ "type": "string"
1682
+ },
1683
+ {
1684
+ "type": "object",
1685
+ "properties": {
1686
+ "type": {
1687
+ "$ref": "#/definitions/type"
1688
+ },
1689
+ "value": {
1690
+ "type": "string"
1691
+ }
1692
+ },
1693
+ "required": [
1694
+ "value"
1695
+ ]
1696
+ }
1697
+ ]
84
1698
  }
85
- },
86
- "additionalProperties": true,
87
- "required": [
88
- "itemName",
89
- "project",
90
- "feature"
91
- ]
92
- }
1699
+ }
1700
+ }