@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,202 +1,1196 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/schema",
3
- "$id": "form-table-action",
4
- "type": "object",
5
- "properties": {
6
- "tableName": {
7
- "alias": "table",
8
- "type": "string",
9
- "description": "The name of the table action"
3
+ "$id": "form-table-action-schematic",
4
+ "allOf": [
5
+ {
6
+ "$ref": "#/definitions/tableActionSchematic"
10
7
  },
11
- "type": {
12
- "alias": "actionType",
13
- "type": "string",
14
- "description": "The table action type string",
15
- "x-prompt": "Enter the table action type string?"
8
+ {
9
+ "type": "object",
10
+ "properties": {
11
+ "formInitial": {
12
+ "type": "object",
13
+ "description": "The mapping from the row object to the form initial object"
14
+ },
15
+ "formComponent": {
16
+ "type": "string"
17
+ },
18
+ "customComponent": {
19
+ "type": "boolean",
20
+ "default": false,
21
+ "description": "If true the schematic will not coerce the form component"
22
+ },
23
+ "loadFrom": {
24
+ "type": "object",
25
+ "properties": {
26
+ "operationId": {
27
+ "type": "string"
28
+ },
29
+ "scope": {
30
+ "type": "string",
31
+ "description": "The scope of package for the openapi classes"
32
+ },
33
+ "body": {
34
+ "oneOf": [
35
+ {
36
+ "type": "boolean",
37
+ "description": "Pass the full row as body for the operation request"
38
+ },
39
+ {
40
+ "type": "object",
41
+ "description": "Mapping of table columns to body properties - [request property]: [table column]",
42
+ "additionalProperties": true
43
+ }
44
+ ]
45
+ },
46
+ "parameters": {
47
+ "oneOf": [
48
+ {
49
+ "type": "boolean",
50
+ "description": "Pass the full row as parameters for the operation request"
51
+ },
52
+ {
53
+ "type": "object",
54
+ "description": "Mapping of table columns to parameters properties - [request property]: [table column]",
55
+ "additionalProperties": true
56
+ }
57
+ ]
58
+ }
59
+ }
60
+ },
61
+ "formOptions": {
62
+ "$ref": "#/definitions/formComponent"
63
+ }
64
+ }
65
+ }
66
+ ],
67
+ "definitions": {
68
+ "abstractControl": {
69
+ "allOf": [
70
+ {
71
+ "$ref": "#/definitions/property"
72
+ },
73
+ {
74
+ "type": "object",
75
+ "properties": {
76
+ "name": {
77
+ "type": "string",
78
+ "description": "The name of the control"
79
+ },
80
+ "isArray": {
81
+ "type": "boolean",
82
+ "description": "Whether the control value is an array",
83
+ "default": false
84
+ },
85
+ "state": {
86
+ "type": "string",
87
+ "description": "The initial state of the control"
88
+ },
89
+ "isRequired": {
90
+ "type": "boolean",
91
+ "description": "Whether the control value is required",
92
+ "default": false
93
+ },
94
+ "isReadonly": {
95
+ "type": "boolean",
96
+ "description": "Whether the control value is readonly",
97
+ "default": false
98
+ },
99
+ "isDisabled": {
100
+ "type": "boolean",
101
+ "description": "Whether the control value is disabled",
102
+ "default": false
103
+ },
104
+ "validatorList": {
105
+ "type": "array",
106
+ "items": {
107
+ "type": "string"
108
+ }
109
+ },
110
+ "kind": {
111
+ "type": "string",
112
+ "description": "The kind of the control",
113
+ "default": "default"
114
+ },
115
+ "importList": {
116
+ "type": "array",
117
+ "items": {
118
+ "$ref": "#/definitions/type"
119
+ }
120
+ },
121
+ "template": {
122
+ "type": "string",
123
+ "description": "The template of the control"
124
+ },
125
+ "role": {
126
+ "type": "string",
127
+ "description": "The role of the control",
128
+ "enum": [
129
+ "control",
130
+ "group",
131
+ "array"
132
+ ],
133
+ "default": "control"
134
+ }
135
+ },
136
+ "additionalProperties": true
137
+ }
138
+ ]
16
139
  },
17
- "project": {
18
- "type": "string",
19
- "description": "The target project where the table action should be added."
140
+ "accordionIdentifier": {
141
+ "type": "object",
142
+ "properties": {
143
+ "property": {
144
+ "$ref": "#/definitions/property"
145
+ },
146
+ "source": {
147
+ "type": "string",
148
+ "enum": [
149
+ "route"
150
+ ]
151
+ }
152
+ },
153
+ "required": [
154
+ "property"
155
+ ]
20
156
  },
21
- "feature": {
22
- "type": "string",
23
- "description": "The feature name where the table action should be added.",
24
- "x-prompt": "To which feature should the table action be added?"
157
+ "angular": {
158
+ "allOf": [
159
+ {
160
+ "$ref": "#/definitions/general"
161
+ },
162
+ {
163
+ "type": "object",
164
+ "properties": {
165
+ "componentName": {
166
+ "type": "string"
167
+ },
168
+ "name": {
169
+ "type": "string"
170
+ },
171
+ "context": {
172
+ "type": "string",
173
+ "description": "The context use to generate proper names for class, files, etc"
174
+ },
175
+ "nestModule": {
176
+ "type": "string",
177
+ "description": "The module name for the table nest operations"
178
+ },
179
+ "controllerName": {
180
+ "type": "string"
181
+ },
182
+ "backend": {
183
+ "$ref": "#/definitions/backend"
184
+ },
185
+ "directory": {
186
+ "type": "string",
187
+ "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"
188
+ },
189
+ "shared": {
190
+ "type": "boolean",
191
+ "description": "Whether the generated code is used across the project",
192
+ "default": false
193
+ },
194
+ "scope": {
195
+ "type": "string"
196
+ },
197
+ "prefix": {
198
+ "type": "string"
199
+ },
200
+ "openApi": {
201
+ "type": "object",
202
+ "additionalProperties": true
203
+ }
204
+ }
205
+ }
206
+ ]
207
+ },
208
+ "autocompleteTableSelectFormControl": {
209
+ "allOf": [
210
+ {
211
+ "$ref": "#/definitions/baseFormControl"
212
+ },
213
+ {
214
+ "type": "object",
215
+ "properties": {
216
+ "formField": {
217
+ "$ref": "#/definitions/formField"
218
+ },
219
+ "kind": {
220
+ "type": "string",
221
+ "const": "autocomplete-table-select"
222
+ },
223
+ "placeholder": {
224
+ "type": "string"
225
+ },
226
+ "columnList": {
227
+ "alias": "column",
228
+ "type": "array",
229
+ "items": {
230
+ "description": "table column name",
231
+ "type": "object",
232
+ "properties": {
233
+ "name": {
234
+ "type": "string",
235
+ "description": "table column name"
236
+ },
237
+ "title": {
238
+ "type": "string",
239
+ "description": "table column label"
240
+ },
241
+ "hasFilter": {
242
+ "type": "boolean",
243
+ "description": "Whether the column has a filter"
244
+ },
245
+ "kind": {
246
+ "type": "string",
247
+ "description": "The kind of data in the column"
248
+ }
249
+ }
250
+ },
251
+ "description": "List of table column names"
252
+ },
253
+ "title": {
254
+ "type": "string",
255
+ "description": "The title of the table select window"
256
+ },
257
+ "toDisplay": {
258
+ "type": "object",
259
+ "properties": {
260
+ "property": {
261
+ "$ref": "#/definitions/property"
262
+ }
263
+ }
264
+ },
265
+ "toValue": {
266
+ "type": "object",
267
+ "properties": {
268
+ "property": {
269
+ "$ref": "#/definitions/property"
270
+ }
271
+ }
272
+ },
273
+ "upstream": {
274
+ "$ref": "#/definitions/upstream"
275
+ },
276
+ "resolver": {
277
+ "type": "object",
278
+ "properties": {
279
+ "upstream": {
280
+ "$ref": "#/definitions/upstream"
281
+ }
282
+ }
283
+ }
284
+ }
285
+ }
286
+ ]
25
287
  },
26
288
  "backend": {
27
289
  "type": "string",
28
290
  "description": "The backend that should be used to handel data",
29
291
  "enum": [
30
292
  "none",
31
- "local",
32
293
  "nestjs",
33
- "open-api"
294
+ "open-api",
295
+ "local"
34
296
  ],
35
297
  "default": "none"
36
298
  },
37
- "shared": {
38
- "type": "boolean",
39
- "description": "Whether the table action is shared across applications",
40
- "default": false
41
- },
42
- "refresh": {
43
- "type": "boolean",
44
- "description": "Whether the table action should refresh the table after execution",
45
- "default": false
46
- },
47
- "confirm": {
48
- "type": "boolean",
49
- "description": "Whether the table action should confirm before execution",
50
- "default": false
51
- },
52
- "tooltip": {
53
- "type": "string",
54
- "description": "The tooltip for the table action"
55
- },
56
- "errorMessage": {
57
- "type": "string",
58
- "description": "The error message for the table action"
299
+ "baseFormArray": {
300
+ "allOf": [
301
+ {
302
+ "$ref": "#/definitions/abstractControl"
303
+ },
304
+ {
305
+ "type": "object",
306
+ "properties": {
307
+ "controlList": {
308
+ "type": "array",
309
+ "description": "The list of controls in the group",
310
+ "items": {
311
+ "$ref": "#/definitions/control"
312
+ }
313
+ },
314
+ "legend": {
315
+ "type": "string"
316
+ },
317
+ "groupLegend": {
318
+ "type": "string"
319
+ },
320
+ "kind": {
321
+ "type": "string",
322
+ "description": "The kind of the array",
323
+ "const": "default",
324
+ "default": "default"
325
+ },
326
+ "role": {
327
+ "type": "string",
328
+ "const": "array"
329
+ }
330
+ }
331
+ }
332
+ ]
59
333
  },
60
- "successMessage": {
61
- "type": "string",
62
- "description": "The success message for the table action"
334
+ "baseFormControl": {
335
+ "allOf": [
336
+ {
337
+ "$ref": "#/definitions/abstractControl"
338
+ },
339
+ {
340
+ "type": "object",
341
+ "properties": {
342
+ "label": {
343
+ "type": "string",
344
+ "description": "The label of the control"
345
+ },
346
+ "role": {
347
+ "type": "string",
348
+ "const": "control"
349
+ }
350
+ }
351
+ }
352
+ ]
63
353
  },
64
- "checkFunction": {
65
- "type": "string",
66
- "description": "The check function for the table action"
354
+ "baseFormGroup": {
355
+ "allOf": [
356
+ {
357
+ "$ref": "#/definitions/abstractControl"
358
+ },
359
+ {
360
+ "type": "object",
361
+ "properties": {
362
+ "controlList": {
363
+ "type": "array",
364
+ "description": "The list of controls in the group",
365
+ "items": {
366
+ "$ref": "#/definitions/control"
367
+ }
368
+ },
369
+ "legend": {
370
+ "type": "string"
371
+ },
372
+ "kind": {
373
+ "type": "string",
374
+ "description": "The kind of the group",
375
+ "const": "default",
376
+ "default": "default"
377
+ },
378
+ "role": {
379
+ "type": "string",
380
+ "const": "group"
381
+ }
382
+ }
383
+ }
384
+ ]
67
385
  },
68
- "priority": {
69
- "type": "number",
70
- "description": "The priority of the table action"
386
+ "button": {
387
+ "type": "object",
388
+ "properties": {
389
+ "svgIcon": {
390
+ "type": "string"
391
+ },
392
+ "icon": {
393
+ "type": "string"
394
+ },
395
+ "directiveList": {
396
+ "type": "array",
397
+ "items": {
398
+ "$ref": "#/definitions/type"
399
+ }
400
+ },
401
+ "importList": {
402
+ "type": "array",
403
+ "items": {
404
+ "$ref": "#/definitions/type"
405
+ }
406
+ }
407
+ }
71
408
  },
72
- "directory": {
73
- "type": "string",
74
- "description": "A directory name or absolute path for the table action. relative to the feature base path"
409
+ "checkboxFormControl": {
410
+ "allOf": [
411
+ {
412
+ "$ref": "#/definitions/baseFormControl"
413
+ },
414
+ {
415
+ "type": "object",
416
+ "properties": {
417
+ "kind": {
418
+ "type": "string",
419
+ "const": "checkbox"
420
+ },
421
+ "labelPosition": {
422
+ "type": "string",
423
+ "enum": [
424
+ "before",
425
+ "after"
426
+ ]
427
+ }
428
+ }
429
+ }
430
+ ]
75
431
  },
76
- "nestModule": {
77
- "type": "string",
78
- "description": "The module name for the table nest operations"
432
+ "control": {
433
+ "oneOf": [
434
+ {
435
+ "$ref": "#/definitions/formGroup"
436
+ },
437
+ {
438
+ "$ref": "#/definitions/formArray"
439
+ },
440
+ {
441
+ "$ref": "#/definitions/formControl"
442
+ }
443
+ ]
79
444
  },
80
- "overwrite": {
81
- "anyOf": [
445
+ "cssClass": {
446
+ "oneOf": [
82
447
  {
83
- "type": "boolean"
448
+ "type": "string"
84
449
  },
85
450
  {
86
451
  "type": "array",
87
452
  "items": {
88
453
  "type": "string"
89
454
  }
455
+ },
456
+ {
457
+ "type": "object",
458
+ "properties": {
459
+ "name": {
460
+ "type": "string"
461
+ }
462
+ }
463
+ },
464
+ {
465
+ "type": "array",
466
+ "items": {
467
+ "type": "object",
468
+ "properties": {
469
+ "name": {
470
+ "type": "string"
471
+ }
472
+ }
473
+ }
90
474
  }
91
- ],
92
- "description": "Overwrite existing files",
93
- "default": false
475
+ ]
94
476
  },
95
- "context": {
96
- "type": "string",
97
- "description": "The context use to generate proper names for class, files, etc"
98
- },
99
- "formInitial": {
100
- "type": "object",
101
- "description": "The mapping from the row object to the form initial object"
477
+ "formArray": {
478
+ "allOf": [
479
+ {
480
+ "type": "object",
481
+ "properties": {
482
+ "role": {
483
+ "type": "string",
484
+ "const": "array"
485
+ }
486
+ }
487
+ },
488
+ {
489
+ "oneOf": [
490
+ {
491
+ "allOf": [
492
+ {
493
+ "$ref": "#/definitions/baseFormArray"
494
+ },
495
+ {
496
+ "type": "object",
497
+ "properties": {
498
+ "kind": {
499
+ "type": "string",
500
+ "const": "default"
501
+ }
502
+ }
503
+ }
504
+ ]
505
+ }
506
+ ]
507
+ }
508
+ ]
102
509
  },
103
510
  "formComponent": {
104
- "type": "string"
511
+ "allOf": [
512
+ {
513
+ "$ref": "#/definitions/formDefinition"
514
+ },
515
+ {
516
+ "type": "object",
517
+ "properties": {
518
+ "window": {
519
+ "type": "boolean",
520
+ "description": "Whether the form can be opened in a window"
521
+ },
522
+ "role": {
523
+ "type": "string",
524
+ "description": "Define the role of the form"
525
+ },
526
+ "matFormFieldDefaultOptions": {
527
+ "appearance": {
528
+ "type": "string",
529
+ "description": "The appearance of the mat form field",
530
+ "enum": [
531
+ "legacy",
532
+ "standard",
533
+ "fill",
534
+ "outline"
535
+ ]
536
+ }
537
+ },
538
+ "identifier": {
539
+ "$ref": "#/definitions/accordionIdentifier"
540
+ }
541
+ }
542
+ }
543
+ ]
105
544
  },
106
- "customComponent": {
107
- "type": "boolean",
108
- "default": false,
109
- "description": "If true the schematic will not coerce the form component"
545
+ "formControl": {
546
+ "allOf": [
547
+ {
548
+ "type": "object",
549
+ "properties": {
550
+ "role": {
551
+ "type": "string",
552
+ "const": "control",
553
+ "default": "control"
554
+ }
555
+ }
556
+ },
557
+ {
558
+ "oneOf": [
559
+ {
560
+ "allOf": [
561
+ {
562
+ "$ref": "#/definitions/baseFormControl"
563
+ },
564
+ {
565
+ "type": "object",
566
+ "properties": {
567
+ "kind": {
568
+ "type": "string",
569
+ "const": "default"
570
+ }
571
+ }
572
+ }
573
+ ]
574
+ },
575
+ {
576
+ "$ref": "#/definitions/inputFormControl"
577
+ },
578
+ {
579
+ "$ref": "#/definitions/selectFormControl"
580
+ },
581
+ {
582
+ "$ref": "#/definitions/checkboxFormControl"
583
+ },
584
+ {
585
+ "$ref": "#/definitions/textareaFormControl"
586
+ },
587
+ {
588
+ "$ref": "#/definitions/tableSelectFormControl"
589
+ },
590
+ {
591
+ "$ref": "#/definitions/slideToggleFormControl"
592
+ },
593
+ {
594
+ "$ref": "#/definitions/autocompleteTableSelectFormControl"
595
+ }
596
+ ]
597
+ }
598
+ ]
110
599
  },
111
- "loadFrom": {
600
+ "formDefinition": {
112
601
  "type": "object",
113
602
  "properties": {
114
- "operationId": {
603
+ "controlList": {
604
+ "alias": "control",
605
+ "type": "array",
606
+ "items": {
607
+ "$ref": "#/definitions/control"
608
+ }
609
+ }
610
+ },
611
+ "required": [
612
+ "controlList"
613
+ ]
614
+ },
615
+ "formField": {
616
+ "type": "object",
617
+ "properties": {
618
+ "label": {
115
619
  "type": "string"
116
620
  },
117
- "scope": {
118
- "type": "string",
119
- "description": "The scope of package for the openapi classes"
621
+ "prefixButton": {
622
+ "$ref": "#/definitions/button"
623
+ },
624
+ "suffixButton": {
625
+ "$ref": "#/definitions/button"
120
626
  },
121
- "body": {
627
+ "hasClearButton": {
628
+ "type": "boolean"
629
+ },
630
+ "cssClass": {
631
+ "$ref": "#/definitions/cssClass"
632
+ }
633
+ }
634
+ },
635
+ "formGroup": {
636
+ "allOf": [
637
+ {
638
+ "type": "object",
639
+ "properties": {
640
+ "role": {
641
+ "type": "string",
642
+ "const": "group"
643
+ }
644
+ }
645
+ },
646
+ {
122
647
  "oneOf": [
123
648
  {
124
- "type": "boolean",
125
- "description": "Pass the full row as body for the operation request"
126
- },
127
- {
128
- "type": "object",
129
- "description": "Mapping of table columns to body properties - [request property]: [table column]",
130
- "additionalProperties": true
649
+ "allOf": [
650
+ {
651
+ "$ref": "#/definitions/baseFormGroup"
652
+ },
653
+ {
654
+ "type": "object",
655
+ "properties": {
656
+ "kind": {
657
+ "type": "string",
658
+ "const": "default"
659
+ }
660
+ }
661
+ }
662
+ ]
131
663
  }
132
664
  ]
665
+ }
666
+ ]
667
+ },
668
+ "general": {
669
+ "type": "object",
670
+ "properties": {
671
+ "project": {
672
+ "type": "string",
673
+ "description": "Project name where the files should be generated"
133
674
  },
134
- "parameters": {
135
- "oneOf": [
675
+ "feature": {
676
+ "type": "string",
677
+ "description": "Feature name where the files should be generated"
678
+ },
679
+ "overwrite": {
680
+ "anyOf": [
136
681
  {
137
- "type": "boolean",
138
- "description": "Pass the full row as parameters for the operation request"
682
+ "type": "boolean"
139
683
  },
140
684
  {
141
- "type": "object",
142
- "description": "Mapping of table columns to parameters properties - [request property]: [table column]",
143
- "additionalProperties": true
685
+ "type": "array",
686
+ "items": {
687
+ "type": "string"
688
+ }
144
689
  }
145
- ]
690
+ ],
691
+ "description": "Overwrite existing files",
692
+ "default": false
693
+ },
694
+ "overwriteHtml": {
695
+ "type": "boolean",
696
+ "default": false
697
+ },
698
+ "replace": {
699
+ "type": "boolean",
700
+ "default": false
146
701
  }
147
702
  }
148
703
  },
149
- "formOptions": {
704
+ "inputFormControl": {
705
+ "allOf": [
706
+ {
707
+ "$ref": "#/definitions/baseFormControl"
708
+ },
709
+ {
710
+ "type": "object",
711
+ "properties": {
712
+ "kind": {
713
+ "type": "string",
714
+ "const": "input"
715
+ },
716
+ "formField": {
717
+ "$ref": "#/definitions/formField"
718
+ },
719
+ "inputType": {
720
+ "type": "string",
721
+ "enum": [
722
+ "text",
723
+ "password",
724
+ "email",
725
+ "number",
726
+ "tel",
727
+ "url",
728
+ "checkbox",
729
+ "color",
730
+ "date",
731
+ "time",
732
+ "datetime-local",
733
+ "file",
734
+ "hidden",
735
+ "image",
736
+ "month",
737
+ "radio",
738
+ "reset",
739
+ "button",
740
+ "search",
741
+ "submit",
742
+ "week",
743
+ "range"
744
+ ]
745
+ },
746
+ "placeholder": {
747
+ "type": "string"
748
+ }
749
+ }
750
+ }
751
+ ]
752
+ },
753
+ "property": {
754
+ "oneOf": [
755
+ {
756
+ "type": "string"
757
+ },
758
+ {
759
+ "type": "object",
760
+ "properties": {
761
+ "name": {
762
+ "type": "string"
763
+ },
764
+ "type": {
765
+ "$ref": "#/definitions/type"
766
+ },
767
+ "isArray": {
768
+ "type": "boolean"
769
+ },
770
+ "isRequired": {
771
+ "type": "boolean"
772
+ },
773
+ "source": {
774
+ "type": "string"
775
+ },
776
+ "memberList": {
777
+ "type": "array",
778
+ "items": {
779
+ "additionalProperties": true
780
+ }
781
+ }
782
+ }
783
+ }
784
+ ]
785
+ },
786
+ "selectFormControl": {
787
+ "allOf": [
788
+ {
789
+ "$ref": "#/definitions/baseFormControl"
790
+ },
791
+ {
792
+ "type": "object",
793
+ "properties": {
794
+ "formField": {
795
+ "$ref": "#/definitions/formField"
796
+ },
797
+ "kind": {
798
+ "type": "string",
799
+ "const": "select"
800
+ },
801
+ "upstream": {
802
+ "$ref": "#/definitions/upstream"
803
+ },
804
+ "optionList": {
805
+ "type": "array",
806
+ "items": {
807
+ "type": "object",
808
+ "properties": {
809
+ "display": {
810
+ "type": "string"
811
+ },
812
+ "value": {
813
+ "oneOf": [
814
+ {
815
+ "type": "string"
816
+ },
817
+ {
818
+ "type": "number"
819
+ },
820
+ {
821
+ "type": "boolean"
822
+ },
823
+ {
824
+ "type": "object",
825
+ "additionalProperties": true
826
+ }
827
+ ]
828
+ }
829
+ }
830
+ }
831
+ },
832
+ "backend": {
833
+ "$ref": "#/definitions/backend"
834
+ },
835
+ "multiple": {
836
+ "alias": "multi",
837
+ "type": "boolean",
838
+ "description": "Whether the select form control is multiple mode"
839
+ }
840
+ }
841
+ }
842
+ ]
843
+ },
844
+ "slideToggleFormControl": {
845
+ "allOf": [
846
+ {
847
+ "$ref": "#/definitions/baseFormControl"
848
+ },
849
+ {
850
+ "type": "object",
851
+ "properties": {
852
+ "kind": {
853
+ "type": "string",
854
+ "const": "slide-toggle"
855
+ },
856
+ "labelPosition": {
857
+ "type": "string",
858
+ "enum": [
859
+ "before",
860
+ "after"
861
+ ]
862
+ }
863
+ }
864
+ }
865
+ ]
866
+ },
867
+ "tableAction": {
150
868
  "type": "object",
151
869
  "properties": {
870
+ "type": {
871
+ "type": "string"
872
+ },
873
+ "refresh": {
874
+ "type": "boolean"
875
+ },
876
+ "confirm": {
877
+ "type": "boolean"
878
+ },
879
+ "tooltip": {
880
+ "type": "string"
881
+ },
882
+ "errorMessage": {
883
+ "type": "string"
884
+ },
885
+ "successMessage": {
886
+ "type": "string"
887
+ },
888
+ "priority": {
889
+ "type": "number"
890
+ },
891
+ "checkFunction": {
892
+ "type": "string"
893
+ },
894
+ "inHeader": {
895
+ "type": "boolean"
896
+ },
152
897
  "role": {
898
+ "type": "string"
899
+ },
900
+ "icon": {
901
+ "type": "string"
902
+ },
903
+ "svgIcon": {
904
+ "type": "string"
905
+ },
906
+ "permission": {
907
+ "type": "string"
908
+ },
909
+ "color": {
153
910
  "type": "string",
154
- "description": "Define the role of the form"
911
+ "description": "Value for the color input of the mat-button / mat-icon component"
155
912
  },
156
- "window": {
157
- "type": "boolean",
158
- "description": "Whether the form can be opened in a window"
913
+ "cssClass": {
914
+ "$ref": "#/definitions/cssClass"
159
915
  },
160
- "controlList": {
161
- "alias": "control",
162
- "type": "array",
163
- "items": {
164
- "type": "object",
165
- "properties": {
166
- "type": {
167
- "type": "string"
168
- },
169
- "name": {
170
- "type": "string"
171
- },
172
- "state": {
173
- "type": "string",
174
- "description": "The initial state of the control"
175
- },
176
- "isRequired": {
177
- "type": "boolean",
178
- "description": "Whether the control value is required",
179
- "default": false
916
+ "options": {
917
+ "type": "object",
918
+ "additionalProperties": true
919
+ }
920
+ },
921
+ "required": [
922
+ "type"
923
+ ]
924
+ },
925
+ "tableActionSchematic": {
926
+ "allOf": [
927
+ {
928
+ "$ref": "#/definitions/angular"
929
+ },
930
+ {
931
+ "$ref": "#/definitions/tableAction"
932
+ },
933
+ {
934
+ "type": "object",
935
+ "properties": {
936
+ "tableName": {
937
+ "alias": "table",
938
+ "type": "string",
939
+ "description": "The name of the table action"
940
+ }
941
+ }
942
+ }
943
+ ]
944
+ },
945
+ "tableSelectFormControl": {
946
+ "allOf": [
947
+ {
948
+ "$ref": "#/definitions/baseFormControl"
949
+ },
950
+ {
951
+ "type": "object",
952
+ "properties": {
953
+ "formField": {
954
+ "$ref": "#/definitions/formField"
955
+ },
956
+ "kind": {
957
+ "type": "string",
958
+ "const": "table-select"
959
+ },
960
+ "placeholder": {
961
+ "type": "string"
962
+ },
963
+ "columnList": {
964
+ "alias": "column",
965
+ "type": "array",
966
+ "items": {
967
+ "description": "table column name",
968
+ "type": "object",
969
+ "properties": {
970
+ "name": {
971
+ "type": "string",
972
+ "description": "table column name"
973
+ },
974
+ "title": {
975
+ "type": "string",
976
+ "description": "table column label"
977
+ },
978
+ "hasFilter": {
979
+ "type": "boolean",
980
+ "description": "Whether the column has a filter"
981
+ },
982
+ "kind": {
983
+ "type": "string",
984
+ "description": "The kind of data in the column"
985
+ }
986
+ }
180
987
  },
181
- "validatorList": {
182
- "type": "array",
183
- "items": {
184
- "type": "string"
988
+ "description": "List of table column names"
989
+ },
990
+ "title": {
991
+ "type": "string",
992
+ "description": "The title of the table select window"
993
+ },
994
+ "toDisplay": {
995
+ "type": "object",
996
+ "properties": {
997
+ "property": {
998
+ "$ref": "#/definitions/property"
185
999
  }
186
1000
  }
187
1001
  },
188
- "required": [
189
- "name"
190
- ]
1002
+ "toValue": {
1003
+ "type": "object",
1004
+ "properties": {
1005
+ "property": {
1006
+ "$ref": "#/definitions/property"
1007
+ }
1008
+ }
1009
+ },
1010
+ "upstream": {
1011
+ "$ref": "#/definitions/upstream"
1012
+ },
1013
+ "resolver": {
1014
+ "type": "object",
1015
+ "properties": {
1016
+ "upstream": {
1017
+ "$ref": "#/definitions/upstream"
1018
+ }
1019
+ }
1020
+ },
1021
+ "identifier": {
1022
+ "$ref": "#/definitions/accordionIdentifier"
1023
+ }
191
1024
  }
192
1025
  }
193
- },
194
- "additionalProperties": true
1026
+ ]
1027
+ },
1028
+ "textareaFormControl": {
1029
+ "allOf": [
1030
+ {
1031
+ "$ref": "#/definitions/baseFormControl"
1032
+ },
1033
+ {
1034
+ "type": "object",
1035
+ "properties": {
1036
+ "formField": {
1037
+ "$ref": "#/definitions/formField"
1038
+ },
1039
+ "kind": {
1040
+ "type": "string",
1041
+ "const": "textarea"
1042
+ },
1043
+ "placeholder": {
1044
+ "type": "string"
1045
+ },
1046
+ "autosize": {
1047
+ "type": "object",
1048
+ "properties": {
1049
+ "minRows": {
1050
+ "type": "number"
1051
+ },
1052
+ "maxRows": {
1053
+ "type": "number"
1054
+ }
1055
+ }
1056
+ }
1057
+ }
1058
+ }
1059
+ ]
1060
+ },
1061
+ "type": {
1062
+ "oneOf": [
1063
+ {
1064
+ "type": "string"
1065
+ },
1066
+ {
1067
+ "type": "object",
1068
+ "properties": {
1069
+ "name": {
1070
+ "type": "string"
1071
+ },
1072
+ "isTypeOnly": {
1073
+ "type": "boolean"
1074
+ },
1075
+ "moduleSpecifier": {
1076
+ "type": "string"
1077
+ },
1078
+ "namedImport": {
1079
+ "type": "string"
1080
+ },
1081
+ "namespaceImport": {
1082
+ "type": "string"
1083
+ },
1084
+ "defaultImport": {
1085
+ "type": "string"
1086
+ }
1087
+ },
1088
+ "required": [
1089
+ "name"
1090
+ ]
1091
+ }
1092
+ ]
1093
+ },
1094
+ "upstream": {
1095
+ "oneOf": [
1096
+ {
1097
+ "type": "object",
1098
+ "properties": {
1099
+ "kind": {
1100
+ "type": "string",
1101
+ "enum": [
1102
+ "open-api"
1103
+ ]
1104
+ },
1105
+ "operationId": {
1106
+ "type": "string"
1107
+ },
1108
+ "scope": {
1109
+ "type": "string"
1110
+ },
1111
+ "mapper": {
1112
+ "oneOf": [
1113
+ {
1114
+ "type": "object",
1115
+ "properties": {
1116
+ "kind": {
1117
+ "type": "string",
1118
+ "const": "paged"
1119
+ },
1120
+ "pageIndex": {
1121
+ "type": "string"
1122
+ },
1123
+ "pageSize": {
1124
+ "type": "string"
1125
+ },
1126
+ "sortBy": {
1127
+ "type": "string"
1128
+ },
1129
+ "sortDirection": {
1130
+ "type": "string"
1131
+ },
1132
+ "list": {
1133
+ "type": "string"
1134
+ },
1135
+ "total": {
1136
+ "type": "string"
1137
+ },
1138
+ "filter": {
1139
+ "type": "object",
1140
+ "properties": {
1141
+ "eq": {
1142
+ "type": "string"
1143
+ },
1144
+ "join": {
1145
+ "type": "string"
1146
+ }
1147
+ }
1148
+ }
1149
+ }
1150
+ },
1151
+ {
1152
+ "type": "object",
1153
+ "properties": {
1154
+ "kind": {
1155
+ "type": "string",
1156
+ "const": "options"
1157
+ },
1158
+ "toFunction": {
1159
+ "type": "string",
1160
+ "enum": [
1161
+ "ToOptions",
1162
+ "ToOptionsFromObject"
1163
+ ]
1164
+ },
1165
+ "toValue": {
1166
+ "type": "string"
1167
+ },
1168
+ "toDisplay": {
1169
+ "type": "string"
1170
+ }
1171
+ }
1172
+ },
1173
+ {
1174
+ "type": "object",
1175
+ "properties": {
1176
+ "kind": {
1177
+ "type": "string",
1178
+ "const": "resolve"
1179
+ },
1180
+ "value": {
1181
+ "type": "string"
1182
+ }
1183
+ }
1184
+ }
1185
+ ]
1186
+ }
1187
+ },
1188
+ "required": [
1189
+ "kind",
1190
+ "operationId"
1191
+ ]
1192
+ }
1193
+ ]
195
1194
  }
196
- },
197
- "required": [
198
- "type",
199
- "project",
200
- "feature"
201
- ]
202
- }
1195
+ }
1196
+ }