@ibiz-template/vue3-components 0.0.1-alpha.1 → 0.0.1-alpha.3

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 (593) hide show
  1. package/es/common/action-toolbar/action-toolbar.d.ts +64 -0
  2. package/es/common/app-col/app-col.d.ts +45 -0
  3. package/es/common/app-col/app-col.js +91 -0
  4. package/es/common/app-icon/app-icon.d.ts +1 -1
  5. package/es/common/app-icon/app-icon.js +1 -2
  6. package/es/common/app-router-view/app-router-view.d.ts +1 -0
  7. package/es/common/app-router-view/app-router-view.js +2 -1
  8. package/es/common/app-row/app-row.d.ts +9 -0
  9. package/es/common/app-row/app-row.js +41 -0
  10. package/es/{layout → common}/control-base/control-base.js +6 -13
  11. package/es/common/index.d.ts +7 -5
  12. package/es/common/index.js +24 -5
  13. package/es/control/app-menu/app-menu-provider.js +1 -1
  14. package/es/control/app-menu/app-menu-state.d.ts +23 -0
  15. package/es/control/app-menu/app-menu-state.js +23 -0
  16. package/es/control/app-menu/app-menu.controller.d.ts +52 -0
  17. package/es/control/app-menu/app-menu.controller.js +91 -0
  18. package/es/control/app-menu/app-menu.d.ts +10 -7
  19. package/es/control/app-menu/app-menu.js +6 -10
  20. package/es/control/app-menu/index.js +10 -6
  21. package/es/control/form/form/form-control.d.ts +34 -0
  22. package/es/control/form/form/form-state.d.ts +36 -0
  23. package/es/control/form/form/form-state.js +39 -0
  24. package/es/control/form/form/form.controller.d.ts +129 -0
  25. package/es/control/form/form/form.controller.js +199 -0
  26. package/es/control/form/form/index.js +27 -0
  27. package/es/control/form/form-detail/form-detail/form-detail-state.d.ts +55 -0
  28. package/es/control/form/form-detail/form-detail/form-detail-state.js +72 -0
  29. package/es/control/form/form-detail/form-detail/form-detail.d.ts +106 -0
  30. package/es/control/form/form-detail/form-detail/form-detail.js +176 -0
  31. package/es/control/form/form-detail/form-detail/index.d.ts +2 -0
  32. package/es/control/form/form-detail/form-detail/index.js +2 -0
  33. package/es/control/form/form-detail/form-group-panel/form-group-panel-provider.d.ts +17 -0
  34. package/es/control/form/form-detail/form-group-panel/form-group-panel-provider.js +20 -0
  35. package/es/control/form/form-detail/form-group-panel/form-group-panel-state.d.ts +27 -0
  36. package/es/control/form/form-detail/form-group-panel/form-group-panel-state.js +29 -0
  37. package/es/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts +35 -0
  38. package/es/control/form/form-detail/form-group-panel/form-group-panel.controller.js +59 -0
  39. package/es/control/form/form-detail/form-group-panel/index.d.ts +3 -0
  40. package/es/control/form/form-detail/form-group-panel/index.js +3 -0
  41. package/es/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +43 -0
  42. package/es/control/form/form-detail/form-item/form-item-provider.d.ts +18 -0
  43. package/es/control/form/form-detail/form-item/form-item-state.d.ts +27 -0
  44. package/es/control/form/form-detail/form-item/form-item.controller.d.ts +139 -0
  45. package/es/control/form/form-detail/form-item/form-item.d.ts +28 -0
  46. package/es/control/form/form-detail/form-item/index.d.ts +3 -0
  47. package/es/control/form/form-detail/form-page/form-page-item.d.ts +32 -0
  48. package/es/control/form/form-detail/form-page/form-page-provider.d.ts +17 -0
  49. package/es/control/form/form-detail/form-page/form-page-state.d.ts +12 -0
  50. package/es/control/form/form-detail/form-page/form-page.controller.d.ts +16 -0
  51. package/es/{layout/control-layout/control-layout.d.ts → control/form/form-detail/form-page/form-page.d.ts} +7 -9
  52. package/es/control/form/form-detail/index.d.ts +3 -0
  53. package/es/control/form/form-detail/index.js +3 -0
  54. package/es/control/form/index.d.ts +8 -0
  55. package/es/control/form/index.js +12 -0
  56. package/es/control/form/search-form/index.js +15 -0
  57. package/es/control/form/search-form/search-form-provider.d.ts +13 -0
  58. package/es/{views/index-view/index-view-provider.js → control/form/search-form/search-form-provider.js} +3 -3
  59. package/es/control/form/search-form/search-form-state.d.ts +19 -0
  60. package/es/control/form/search-form/search-form-state.js +22 -0
  61. package/es/control/form/search-form/search-form.controller.d.ts +86 -0
  62. package/es/control/form/search-form/search-form.controller.js +128 -0
  63. package/{lib/layout/view-shell/view-shell.d.ts → es/control/form/search-form/search-form.d.ts} +17 -22
  64. package/es/control/grid/grid/grid-column.controller.d.ts +76 -0
  65. package/es/control/grid/grid/grid-column.controller.js +89 -0
  66. package/{lib/control/grid-control → es/control/grid/grid}/grid-control.util.d.ts +3 -2
  67. package/es/control/grid/grid/grid-row.controller.d.ts +77 -0
  68. package/es/control/grid/grid/grid-row.controller.js +85 -0
  69. package/es/control/grid/grid/grid-state.d.ts +19 -0
  70. package/es/control/grid/grid/grid-state.js +23 -0
  71. package/es/control/grid/grid/grid.controller.d.ts +225 -0
  72. package/es/control/grid/grid/grid.controller.js +386 -0
  73. package/es/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.d.ts +3 -1
  74. package/es/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.js +1 -1
  75. package/es/control/grid/grid-field-column/grid-field-column.controller.d.ts +83 -0
  76. package/es/control/grid/grid-field-column/grid-field-column.controller.js +144 -0
  77. package/es/control/{grid-control → grid}/grid-field-column/grid-field-column.d.ts +9 -7
  78. package/es/{common → control/grid}/grid-pagination/grid-pagination.d.ts +1 -1
  79. package/es/control/grid/grid-ua-column/grid-ua-column-provider.d.ts +17 -0
  80. package/es/control/grid/grid-ua-column/grid-ua-column-provider.js +20 -0
  81. package/es/control/grid/grid-ua-column/grid-ua-column.controller.d.ts +28 -0
  82. package/es/control/grid/grid-ua-column/grid-ua-column.controller.js +62 -0
  83. package/es/control/grid/grid-ua-column/grid-ua-column.d.ts +46 -0
  84. package/es/control/grid/index.js +31 -0
  85. package/es/control/index.d.ts +4 -2
  86. package/es/control/index.js +4 -2
  87. package/es/control/panel/index.js +19 -0
  88. package/es/control/panel/panel/index.d.ts +4 -0
  89. package/es/control/panel/panel/index.js +4 -0
  90. package/es/control/panel/panel/panel-item-state.d.ts +47 -0
  91. package/es/control/panel/panel/panel-item-state.js +58 -0
  92. package/es/control/panel/panel/panel-item.controller.d.ts +71 -0
  93. package/es/control/panel/panel/panel-item.controller.js +135 -0
  94. package/es/control/panel/panel/panel-state.d.ts +21 -0
  95. package/es/control/panel/panel/panel-state.js +24 -0
  96. package/es/control/panel/panel/panel.controller.d.ts +114 -0
  97. package/es/control/panel/panel/panel.controller.js +187 -0
  98. package/es/control/panel/view-layout-panel/index.d.ts +3 -0
  99. package/es/control/panel/view-layout-panel/index.js +3 -0
  100. package/es/control/panel/view-layout-panel/view-layout-panel-provider.d.ts +13 -0
  101. package/es/control/panel/view-layout-panel/view-layout-panel-provider.js +14 -0
  102. package/es/control/panel/view-layout-panel/view-layout-panel.controller.d.ts +38 -0
  103. package/es/control/panel/view-layout-panel/view-layout-panel.controller.js +57 -0
  104. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +41 -0
  105. package/es/control/toolbar/index.js +12 -0
  106. package/{lib/control/toolbar-control → es/control/toolbar}/toolbar-control.d.ts +4 -10
  107. package/es/control/toolbar/toolbar-state.d.ts +24 -0
  108. package/es/control/toolbar/toolbar-state.js +29 -0
  109. package/es/control/toolbar/toolbar.controllerr.d.ts +33 -0
  110. package/es/control/toolbar/toolbar.controllerr.js +81 -0
  111. package/es/editor/index.d.ts +5 -0
  112. package/es/editor/index.js +14 -0
  113. package/es/editor/text-box/ibiz-input/ibiz-input.d.ts +51 -0
  114. package/es/editor/text-box/index.d.ts +1 -0
  115. package/es/editor/text-box/index.js +4 -0
  116. package/es/editor/text-box/text-box-provider.d.ts +18 -0
  117. package/es/editor/text-box/text-box-provider.js +29 -0
  118. package/es/editor/text-box/text-box.controller.d.ts +20 -0
  119. package/es/editor/text-box/text-box.controller.js +22 -0
  120. package/es/index.d.ts +9 -2
  121. package/es/index.js +30 -3
  122. package/es/panel-component/auth-userinfo/auth-userinfo-provider.d.ts +16 -0
  123. package/es/panel-component/auth-userinfo/auth-userinfo-provider.js +20 -0
  124. package/es/panel-component/auth-userinfo/index.js +19 -0
  125. package/es/panel-component/index.d.ts +10 -0
  126. package/es/panel-component/index.js +25 -0
  127. package/es/panel-component/nav-pos/index.js +20 -0
  128. package/es/panel-component/nav-pos/nav-pos-provider.d.ts +17 -0
  129. package/es/panel-component/nav-pos/nav-pos-provider.js +20 -0
  130. package/es/panel-component/nav-pos/nav-pos-state.d.ts +14 -0
  131. package/es/panel-component/nav-pos/nav-pos-state.js +17 -0
  132. package/es/panel-component/nav-pos/nav-pos.controller.d.ts +66 -0
  133. package/es/panel-component/nav-pos/nav-pos.controller.js +103 -0
  134. package/es/panel-component/nav-pos/nav-pos.d.ts +27 -0
  135. package/es/panel-component/nav-tabs/index.js +16 -0
  136. package/es/panel-component/nav-tabs/nav-tabs-provider.d.ts +17 -0
  137. package/es/panel-component/nav-tabs/nav-tabs-provider.js +20 -0
  138. package/es/panel-component/nav-tabs/nav-tabs-state.d.ts +21 -0
  139. package/es/panel-component/nav-tabs/nav-tabs-state.js +18 -0
  140. package/es/panel-component/nav-tabs/nav-tabs.controller.js +124 -0
  141. package/es/panel-component/nav-tabs/nav-tabs.d.ts +35 -0
  142. package/es/panel-component/panel-container/index.js +23 -0
  143. package/es/panel-component/panel-container/panel-container-provider.d.ts +16 -0
  144. package/es/panel-component/panel-container/panel-container-provider.js +20 -0
  145. package/es/panel-component/panel-container/panel-container-state.d.ts +12 -0
  146. package/es/panel-component/panel-container/panel-container-state.js +6 -0
  147. package/es/panel-component/panel-container/panel-container.controller.d.ts +14 -0
  148. package/es/panel-component/panel-container/panel-container.controller.js +11 -0
  149. package/es/panel-component/panel-container/panel-container.d.ts +28 -0
  150. package/es/panel-component/panel-ctrl-pos/index.js +18 -0
  151. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.d.ts +17 -0
  152. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.js +20 -0
  153. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +21 -0
  154. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.js +6 -0
  155. package/es/panel-component/scroll-container/index.js +43 -0
  156. package/es/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
  157. package/es/panel-component/scroll-container/scroll-container/index.js +3 -0
  158. package/es/panel-component/scroll-container/scroll-container/scroll-container-provider.d.ts +17 -0
  159. package/es/panel-component/scroll-container/scroll-container/scroll-container-provider.js +20 -0
  160. package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +22 -0
  161. package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.js +11 -0
  162. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +26 -0
  163. package/es/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
  164. package/es/panel-component/scroll-container/scroll-container-item/index.js +3 -0
  165. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.d.ts +17 -0
  166. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.js +20 -0
  167. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +21 -0
  168. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.js +6 -0
  169. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +26 -0
  170. package/es/view/index.js +13 -0
  171. package/{lib/views/grid-view/grid-view-provider.d.ts → es/view/view-provider.d.ts} +3 -3
  172. package/es/{views/grid-view/grid-view-provider.js → view/view-provider.js} +3 -3
  173. package/es/view-engine/grid-view-engine.d.ts +48 -0
  174. package/es/view-engine/grid-view-engine.js +158 -0
  175. package/es/view-engine/index-view-engine.d.ts +9 -0
  176. package/es/view-engine/index-view-engine.js +20 -0
  177. package/es/view-engine/index.d.ts +6 -0
  178. package/es/view-engine/index.js +23 -0
  179. package/lib/common/action-toolbar/action-toolbar.d.ts +64 -0
  180. package/lib/common/app-col/app-col.d.ts +45 -0
  181. package/lib/common/app-col/app-col.js +91 -0
  182. package/lib/common/app-icon/app-icon.d.ts +1 -1
  183. package/lib/common/app-icon/app-icon.js +1 -2
  184. package/lib/common/app-router-view/app-router-view.d.ts +1 -0
  185. package/lib/common/app-router-view/app-router-view.js +2 -1
  186. package/lib/common/app-row/app-row.d.ts +9 -0
  187. package/lib/common/app-row/app-row.js +41 -0
  188. package/lib/{layout → common}/control-base/control-base.js +5 -12
  189. package/lib/common/index.d.ts +7 -5
  190. package/lib/common/index.js +26 -35
  191. package/lib/control/app-menu/app-menu-provider.js +1 -1
  192. package/lib/control/app-menu/app-menu-state.d.ts +23 -0
  193. package/lib/control/app-menu/app-menu-state.js +23 -0
  194. package/lib/control/app-menu/app-menu.controller.d.ts +52 -0
  195. package/lib/control/app-menu/app-menu.controller.js +91 -0
  196. package/lib/control/app-menu/app-menu.d.ts +10 -7
  197. package/lib/control/app-menu/app-menu.js +7 -11
  198. package/lib/control/app-menu/index.js +35 -5
  199. package/lib/control/form/form/form-control.d.ts +34 -0
  200. package/lib/control/form/form/form-state.d.ts +36 -0
  201. package/lib/control/form/form/form-state.js +39 -0
  202. package/lib/control/form/form/form.controller.d.ts +129 -0
  203. package/lib/control/form/form/form.controller.js +199 -0
  204. package/lib/control/form/form/index.js +46 -0
  205. package/lib/control/form/form-detail/form-detail/form-detail-state.d.ts +55 -0
  206. package/lib/control/form/form-detail/form-detail/form-detail-state.js +72 -0
  207. package/lib/control/form/form-detail/form-detail/form-detail.d.ts +106 -0
  208. package/lib/control/form/form-detail/form-detail/form-detail.js +176 -0
  209. package/lib/control/form/form-detail/form-detail/index.d.ts +2 -0
  210. package/lib/{views → control/form/form-detail/form-detail}/index.js +6 -8
  211. package/lib/control/form/form-detail/form-group-panel/form-group-panel-provider.d.ts +17 -0
  212. package/lib/control/form/form-detail/form-group-panel/form-group-panel-provider.js +20 -0
  213. package/lib/control/form/form-detail/form-group-panel/form-group-panel-state.d.ts +27 -0
  214. package/lib/control/form/form-detail/form-group-panel/form-group-panel-state.js +29 -0
  215. package/lib/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts +35 -0
  216. package/lib/control/form/form-detail/form-group-panel/form-group-panel.controller.js +59 -0
  217. package/lib/control/form/form-detail/form-group-panel/index.d.ts +3 -0
  218. package/lib/control/form/form-detail/form-group-panel/index.js +26 -0
  219. package/lib/control/form/form-detail/form-item/form-item-container/form-item-container.d.ts +43 -0
  220. package/lib/control/form/form-detail/form-item/form-item-provider.d.ts +18 -0
  221. package/lib/control/form/form-detail/form-item/form-item-state.d.ts +27 -0
  222. package/lib/control/form/form-detail/form-item/form-item.controller.d.ts +139 -0
  223. package/lib/control/form/form-detail/form-item/form-item.d.ts +28 -0
  224. package/lib/control/form/form-detail/form-item/index.d.ts +3 -0
  225. package/lib/control/form/form-detail/form-page/form-page-item.d.ts +32 -0
  226. package/lib/control/form/form-detail/form-page/form-page-provider.d.ts +17 -0
  227. package/lib/control/form/form-detail/form-page/form-page-state.d.ts +12 -0
  228. package/lib/control/form/form-detail/form-page/form-page.controller.d.ts +16 -0
  229. package/lib/{layout/control-layout/control-layout.d.ts → control/form/form-detail/form-page/form-page.d.ts} +7 -9
  230. package/lib/control/form/form-detail/index.d.ts +3 -0
  231. package/lib/control/form/form-detail/index.js +26 -0
  232. package/lib/control/form/index.d.ts +8 -0
  233. package/lib/control/form/index.js +32 -0
  234. package/lib/control/form/search-form/index.js +15 -0
  235. package/lib/control/form/search-form/search-form-provider.d.ts +13 -0
  236. package/lib/{views/index-view/index-view-provider.js → control/form/search-form/search-form-provider.js} +3 -3
  237. package/lib/control/form/search-form/search-form-state.d.ts +19 -0
  238. package/lib/control/form/search-form/search-form-state.js +22 -0
  239. package/lib/control/form/search-form/search-form.controller.d.ts +86 -0
  240. package/lib/control/form/search-form/search-form.controller.js +128 -0
  241. package/{es/layout/view-shell/view-shell.d.ts → lib/control/form/search-form/search-form.d.ts} +17 -22
  242. package/lib/control/grid/grid/grid-column.controller.d.ts +76 -0
  243. package/lib/control/grid/grid/grid-column.controller.js +89 -0
  244. package/{es/control/grid-control → lib/control/grid/grid}/grid-control.util.d.ts +3 -2
  245. package/lib/control/grid/grid/grid-row.controller.d.ts +77 -0
  246. package/lib/control/grid/grid/grid-row.controller.js +85 -0
  247. package/lib/control/grid/grid/grid-state.d.ts +19 -0
  248. package/lib/control/grid/grid/grid-state.js +23 -0
  249. package/lib/control/grid/grid/grid.controller.d.ts +225 -0
  250. package/lib/control/grid/grid/grid.controller.js +386 -0
  251. package/lib/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.d.ts +3 -1
  252. package/lib/control/{grid-control → grid/grid-field-column}/grid-field-column-provider.js +2 -2
  253. package/lib/control/grid/grid-field-column/grid-field-column.controller.d.ts +83 -0
  254. package/lib/control/grid/grid-field-column/grid-field-column.controller.js +144 -0
  255. package/lib/control/{grid-control → grid}/grid-field-column/grid-field-column.d.ts +9 -7
  256. package/lib/{common → control/grid}/grid-pagination/grid-pagination.d.ts +1 -1
  257. package/lib/control/grid/grid-ua-column/grid-ua-column-provider.d.ts +17 -0
  258. package/lib/control/grid/grid-ua-column/grid-ua-column-provider.js +20 -0
  259. package/lib/control/grid/grid-ua-column/grid-ua-column.controller.d.ts +28 -0
  260. package/lib/control/grid/grid-ua-column/grid-ua-column.controller.js +62 -0
  261. package/lib/control/grid/grid-ua-column/grid-ua-column.d.ts +46 -0
  262. package/lib/control/grid/index.js +35 -0
  263. package/lib/control/index.d.ts +4 -2
  264. package/lib/control/index.js +22 -6
  265. package/lib/control/panel/index.js +35 -0
  266. package/lib/control/panel/panel/index.d.ts +4 -0
  267. package/lib/control/panel/panel/index.js +34 -0
  268. package/lib/control/panel/panel/panel-item-state.d.ts +47 -0
  269. package/lib/control/panel/panel/panel-item-state.js +58 -0
  270. package/lib/control/panel/panel/panel-item.controller.d.ts +71 -0
  271. package/lib/control/panel/panel/panel-item.controller.js +135 -0
  272. package/lib/control/panel/panel/panel-state.d.ts +21 -0
  273. package/lib/control/panel/panel/panel-state.js +24 -0
  274. package/lib/control/panel/panel/panel.controller.d.ts +114 -0
  275. package/lib/control/panel/panel/panel.controller.js +187 -0
  276. package/lib/control/panel/view-layout-panel/index.d.ts +3 -0
  277. package/lib/control/panel/view-layout-panel/index.js +26 -0
  278. package/lib/control/panel/view-layout-panel/view-layout-panel-provider.d.ts +13 -0
  279. package/lib/control/panel/view-layout-panel/view-layout-panel-provider.js +14 -0
  280. package/lib/control/panel/view-layout-panel/view-layout-panel.controller.d.ts +38 -0
  281. package/lib/control/panel/view-layout-panel/view-layout-panel.controller.js +57 -0
  282. package/lib/control/panel/view-layout-panel/view-layout-panel.d.ts +41 -0
  283. package/lib/control/{toolbar-control → toolbar}/index.js +5 -5
  284. package/{es/control/toolbar-control → lib/control/toolbar}/toolbar-control.d.ts +4 -10
  285. package/lib/control/toolbar/toolbar-state.d.ts +24 -0
  286. package/lib/control/toolbar/toolbar-state.js +29 -0
  287. package/lib/control/toolbar/toolbar.controllerr.d.ts +33 -0
  288. package/lib/control/toolbar/toolbar.controllerr.js +81 -0
  289. package/lib/editor/index.d.ts +5 -0
  290. package/lib/editor/index.js +14 -0
  291. package/lib/editor/text-box/ibiz-input/ibiz-input.d.ts +51 -0
  292. package/lib/editor/text-box/index.d.ts +1 -0
  293. package/lib/editor/text-box/index.js +7 -0
  294. package/lib/editor/text-box/text-box-provider.d.ts +18 -0
  295. package/lib/editor/text-box/text-box-provider.js +29 -0
  296. package/lib/editor/text-box/text-box.controller.d.ts +20 -0
  297. package/lib/editor/text-box/text-box.controller.js +22 -0
  298. package/lib/index.d.ts +9 -2
  299. package/lib/index.js +45 -12
  300. package/lib/panel-component/auth-userinfo/auth-userinfo-provider.d.ts +16 -0
  301. package/lib/panel-component/auth-userinfo/auth-userinfo-provider.js +20 -0
  302. package/lib/panel-component/auth-userinfo/index.js +23 -0
  303. package/lib/panel-component/index.d.ts +10 -0
  304. package/lib/panel-component/index.js +55 -0
  305. package/lib/panel-component/nav-pos/index.js +30 -0
  306. package/lib/panel-component/nav-pos/nav-pos-provider.d.ts +17 -0
  307. package/lib/panel-component/nav-pos/nav-pos-provider.js +20 -0
  308. package/lib/panel-component/nav-pos/nav-pos-state.d.ts +14 -0
  309. package/lib/panel-component/nav-pos/nav-pos-state.js +17 -0
  310. package/lib/panel-component/nav-pos/nav-pos.controller.d.ts +66 -0
  311. package/lib/panel-component/nav-pos/nav-pos.controller.js +103 -0
  312. package/lib/panel-component/nav-pos/nav-pos.d.ts +27 -0
  313. package/lib/panel-component/nav-tabs/index.js +20 -0
  314. package/lib/panel-component/nav-tabs/nav-tabs-provider.d.ts +17 -0
  315. package/lib/panel-component/nav-tabs/nav-tabs-provider.js +20 -0
  316. package/lib/panel-component/nav-tabs/nav-tabs-state.d.ts +21 -0
  317. package/lib/panel-component/nav-tabs/nav-tabs-state.js +18 -0
  318. package/lib/panel-component/nav-tabs/nav-tabs.controller.js +124 -0
  319. package/lib/panel-component/nav-tabs/nav-tabs.d.ts +35 -0
  320. package/lib/panel-component/panel-container/index.js +33 -0
  321. package/lib/panel-component/panel-container/panel-container-provider.d.ts +16 -0
  322. package/lib/panel-component/panel-container/panel-container-provider.js +20 -0
  323. package/lib/panel-component/panel-container/panel-container-state.d.ts +12 -0
  324. package/lib/panel-component/panel-container/panel-container-state.js +6 -0
  325. package/lib/panel-component/panel-container/panel-container.controller.d.ts +14 -0
  326. package/lib/panel-component/panel-container/panel-container.controller.js +11 -0
  327. package/lib/panel-component/panel-container/panel-container.d.ts +28 -0
  328. package/lib/panel-component/panel-ctrl-pos/index.js +25 -0
  329. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.d.ts +17 -0
  330. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos-provider.js +20 -0
  331. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +21 -0
  332. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.js +6 -0
  333. package/lib/panel-component/scroll-container/index.js +57 -0
  334. package/lib/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
  335. package/lib/panel-component/scroll-container/scroll-container/index.js +26 -0
  336. package/lib/panel-component/scroll-container/scroll-container/scroll-container-provider.d.ts +17 -0
  337. package/lib/panel-component/scroll-container/scroll-container/scroll-container-provider.js +20 -0
  338. package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +22 -0
  339. package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.js +11 -0
  340. package/lib/panel-component/scroll-container/scroll-container/scroll-container.d.ts +26 -0
  341. package/lib/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
  342. package/lib/panel-component/scroll-container/scroll-container-item/index.js +26 -0
  343. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.d.ts +17 -0
  344. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.js +20 -0
  345. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +21 -0
  346. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.js +6 -0
  347. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +26 -0
  348. package/lib/view/index.js +15 -0
  349. package/{es/views/grid-view/grid-view-provider.d.ts → lib/view/view-provider.d.ts} +3 -3
  350. package/lib/{views/grid-view/grid-view-provider.js → view/view-provider.js} +3 -3
  351. package/lib/view-engine/grid-view-engine.d.ts +48 -0
  352. package/lib/view-engine/grid-view-engine.js +158 -0
  353. package/lib/view-engine/index-view-engine.d.ts +9 -0
  354. package/lib/view-engine/index-view-engine.js +20 -0
  355. package/lib/view-engine/index.d.ts +6 -0
  356. package/lib/view-engine/index.js +35 -0
  357. package/package.json +16 -16
  358. package/src/common/action-toolbar/action-toolbar.scss +31 -0
  359. package/src/common/action-toolbar/action-toolbar.tsx +117 -0
  360. package/src/common/app-col/app-col.tsx +34 -13
  361. package/src/common/app-icon/app-icon.tsx +0 -1
  362. package/src/common/app-router-view/app-router-view.tsx +2 -1
  363. package/src/common/app-row/app-row.tsx +2 -1
  364. package/src/{layout/control-layout/control-layout.scss → common/control-base/control-base.scss} +1 -1
  365. package/src/{layout → common}/control-base/control-base.tsx +4 -7
  366. package/src/common/index.ts +23 -4
  367. package/src/control/app-menu/app-menu-provider.ts +1 -1
  368. package/src/control/app-menu/app-menu.controller.ts +24 -5
  369. package/src/control/app-menu/app-menu.tsx +4 -13
  370. package/src/control/app-menu/index.ts +8 -3
  371. package/src/control/form/form/form-control.tsx +1 -1
  372. package/src/control/form/form/form.controller.ts +8 -9
  373. package/src/control/form/form/index.ts +4 -4
  374. package/src/control/form/form-detail/form-detail/form-detail-state.ts +2 -2
  375. package/src/control/form/form-detail/form-detail/form-detail.ts +7 -13
  376. package/src/control/form/form-detail/form-group-panel/form-group-panel.controller.ts +9 -5
  377. package/src/control/form/form-detail/form-item/form-item.controller.ts +2 -1
  378. package/src/control/form/form-detail/form-item/form-item.tsx +2 -4
  379. package/src/control/form/form-detail/form-page/form-page-item.tsx +3 -6
  380. package/src/control/form/search-form/index.ts +4 -4
  381. package/src/control/form/search-form/search-form-provider.ts +1 -1
  382. package/src/control/form/search-form/search-form-state.ts +9 -1
  383. package/src/control/form/search-form/search-form.controller.ts +21 -1
  384. package/src/control/form/search-form/search-form.tsx +4 -3
  385. package/src/control/grid/grid/grid-control.tsx +1 -1
  386. package/src/control/grid/grid/grid-row.controller.ts +4 -4
  387. package/src/control/grid/grid/grid.controller.ts +22 -14
  388. package/src/control/grid/grid/grid.scss +1 -0
  389. package/src/control/grid/grid-ua-column/grid-ua-column-provider.ts +26 -0
  390. package/src/control/grid/grid-ua-column/grid-ua-column.controller.ts +80 -0
  391. package/src/control/grid/grid-ua-column/grid-ua-column.scss +20 -0
  392. package/src/control/grid/grid-ua-column/grid-ua-column.tsx +75 -0
  393. package/src/control/grid/index.ts +13 -5
  394. package/src/control/index.ts +1 -0
  395. package/src/control/panel/index.ts +6 -10
  396. package/src/control/panel/panel/index.ts +4 -0
  397. package/src/control/panel/panel/panel-item-state.ts +2 -2
  398. package/src/control/panel/panel/panel-item.controller.ts +7 -13
  399. package/src/control/panel/panel/panel.controller.ts +10 -12
  400. package/src/control/panel/view-layout-panel/index.ts +3 -0
  401. package/src/control/panel/view-layout-panel/view-layout-panel-provider.ts +1 -1
  402. package/src/control/panel/view-layout-panel/view-layout-panel.controller.ts +9 -2
  403. package/src/control/panel/view-layout-panel/view-layout-panel.scss +6 -0
  404. package/src/control/panel/view-layout-panel/view-layout-panel.tsx +5 -10
  405. package/src/control/toolbar/index.ts +3 -3
  406. package/src/control/toolbar/toolbar-control.tsx +1 -2
  407. package/src/control/toolbar/toolbar.controllerr.ts +30 -36
  408. package/src/editor/index.ts +2 -2
  409. package/src/index.ts +14 -37
  410. package/src/panel-component/auth-userinfo/auth-userinfo-provider.ts +26 -0
  411. package/src/panel-component/auth-userinfo/auth-userinfo.scss +34 -0
  412. package/src/{common/app-user/app-user.tsx → panel-component/auth-userinfo/auth-userinfo.tsx} +18 -6
  413. package/src/panel-component/auth-userinfo/index.ts +17 -0
  414. package/src/panel-component/index.ts +26 -0
  415. package/src/panel-component/nav-pos/index.ts +16 -0
  416. package/src/panel-component/nav-pos/nav-pos-provider.ts +27 -0
  417. package/src/panel-component/nav-pos/nav-pos-state.ts +16 -0
  418. package/src/panel-component/nav-pos/nav-pos.controller.ts +117 -0
  419. package/src/panel-component/nav-pos/nav-pos.scss +4 -0
  420. package/src/panel-component/nav-pos/nav-pos.tsx +79 -0
  421. package/src/panel-component/nav-tabs/index.ts +14 -0
  422. package/src/panel-component/nav-tabs/nav-tabs-provider.ts +27 -0
  423. package/src/panel-component/nav-tabs/nav-tabs-state.ts +24 -0
  424. package/src/panel-component/nav-tabs/nav-tabs.controller.ts +146 -0
  425. package/src/panel-component/nav-tabs/nav-tabs.scss +64 -0
  426. package/src/panel-component/nav-tabs/nav-tabs.tsx +141 -0
  427. package/src/{control/panel → panel-component}/panel-container/index.ts +3 -2
  428. package/src/{control/panel → panel-component}/panel-container/panel-container-provider.ts +1 -2
  429. package/src/{control/panel → panel-component}/panel-container/panel-container-state.ts +1 -1
  430. package/src/{control/panel → panel-component}/panel-container/panel-container.controller.ts +1 -1
  431. package/src/{control/panel → panel-component}/panel-container/panel-container.tsx +2 -4
  432. package/src/{control/panel → panel-component}/panel-ctrl-pos/index.ts +3 -2
  433. package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos-provider.ts +2 -3
  434. package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.controller.ts +1 -2
  435. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +4 -0
  436. package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.tsx +3 -2
  437. package/src/panel-component/scroll-container/index.ts +44 -0
  438. package/src/panel-component/scroll-container/scroll-container/index.ts +3 -0
  439. package/src/panel-component/scroll-container/scroll-container/scroll-container-provider.ts +27 -0
  440. package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +32 -0
  441. package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +30 -0
  442. package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +108 -0
  443. package/src/panel-component/scroll-container/scroll-container-item/index.ts +3 -0
  444. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.ts +27 -0
  445. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +25 -0
  446. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +5 -0
  447. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +59 -0
  448. package/src/view/ibiz-view.scss +13 -0
  449. package/src/view/ibiz-view.tsx +75 -0
  450. package/src/{views/view → view}/index.ts +3 -3
  451. package/src/view-engine/grid-view-engine.ts +200 -0
  452. package/src/view-engine/index-view-engine.ts +34 -0
  453. package/src/view-engine/index.ts +24 -0
  454. package/es/common/app-user/app-user.d.ts +0 -8
  455. package/es/common/app-user/app-user.js +0 -60
  456. package/es/common/grid-pagination/index.d.ts +0 -40
  457. package/es/common/grid-pagination/index.js +0 -9
  458. package/es/common/quick-search/quick-search.d.ts +0 -30
  459. package/es/common/quick-search/quick-search.js +0 -63
  460. package/es/common/tab-page-exp/tab-page-exp.d.ts +0 -69
  461. package/es/common/tab-page-exp/tab-page-exp.js +0 -117
  462. package/es/control/app-menu/index.d.ts +0 -53
  463. package/es/control/grid-control/grid-control.d.ts +0 -158
  464. package/es/control/grid-control/index.d.ts +0 -114
  465. package/es/control/grid-control/index.js +0 -23
  466. package/es/control/toolbar-control/index.d.ts +0 -43
  467. package/es/control/toolbar-control/index.js +0 -12
  468. package/es/layout/app-layout/app-layout.d.ts +0 -32
  469. package/es/layout/control-base/control-base.d.ts +0 -17
  470. package/es/layout/control-shell/control-shell.d.ts +0 -18
  471. package/es/layout/index.d.ts +0 -10
  472. package/es/layout/index.js +0 -20
  473. package/es/layout/md-view-base/md-view-base.d.ts +0 -12
  474. package/es/layout/md-view-base/md-view-base.js +0 -35
  475. package/es/layout/router-shell/router-shell.d.ts +0 -27
  476. package/es/layout/router-shell/router-shell.js +0 -96
  477. package/es/layout/view-base/view-base.d.ts +0 -18
  478. package/es/layout/view-layout/view-layout.d.ts +0 -44
  479. package/es/util/install.d.ts +0 -3
  480. package/es/util/install.js +0 -9
  481. package/es/views/edit-view/index.d.ts +0 -3
  482. package/es/views/edit-view/index.js +0 -9
  483. package/es/views/edit-view/src/edit-view.css +0 -6
  484. package/es/views/edit-view/src/edit-view.d.ts +0 -3
  485. package/es/views/edit-view/src/edit-view.js +0 -15
  486. package/es/views/grid-view/grid-view-engine.d.ts +0 -8
  487. package/es/views/grid-view/grid-view-engine.js +0 -21
  488. package/es/views/grid-view/grid-view.d.ts +0 -32
  489. package/es/views/grid-view/grid-view.js +0 -64
  490. package/es/views/grid-view/index.d.ts +0 -32
  491. package/es/views/grid-view/index.js +0 -14
  492. package/es/views/index-view/index-view-default.d.ts +0 -22
  493. package/es/views/index-view/index-view-default.js +0 -117
  494. package/es/views/index-view/index-view-engine.d.ts +0 -6
  495. package/es/views/index-view/index-view-engine.js +0 -9
  496. package/es/views/index-view/index-view-exp.d.ts +0 -29
  497. package/es/views/index-view/index-view-exp.js +0 -177
  498. package/es/views/index-view/index-view-provider.d.ts +0 -13
  499. package/es/views/index-view/index-view.d.ts +0 -44
  500. package/es/views/index-view/index-view.js +0 -155
  501. package/es/views/index-view/index.d.ts +0 -44
  502. package/es/views/index-view/index.js +0 -14
  503. package/es/views/index.d.ts +0 -4
  504. package/es/views/index.js +0 -6
  505. package/lib/common/app-user/app-user.d.ts +0 -8
  506. package/lib/common/app-user/app-user.js +0 -60
  507. package/lib/common/grid-pagination/index.d.ts +0 -40
  508. package/lib/common/grid-pagination/index.js +0 -9
  509. package/lib/common/quick-search/quick-search.d.ts +0 -30
  510. package/lib/common/quick-search/quick-search.js +0 -63
  511. package/lib/common/tab-page-exp/tab-page-exp.d.ts +0 -69
  512. package/lib/common/tab-page-exp/tab-page-exp.js +0 -117
  513. package/lib/control/app-menu/index.d.ts +0 -53
  514. package/lib/control/grid-control/grid-control.d.ts +0 -158
  515. package/lib/control/grid-control/index.d.ts +0 -114
  516. package/lib/control/grid-control/index.js +0 -24
  517. package/lib/control/toolbar-control/index.d.ts +0 -43
  518. package/lib/layout/app-layout/app-layout.d.ts +0 -32
  519. package/lib/layout/control-base/control-base.d.ts +0 -17
  520. package/lib/layout/control-shell/control-shell.d.ts +0 -18
  521. package/lib/layout/index.d.ts +0 -10
  522. package/lib/layout/index.js +0 -44
  523. package/lib/layout/md-view-base/md-view-base.d.ts +0 -12
  524. package/lib/layout/md-view-base/md-view-base.js +0 -35
  525. package/lib/layout/router-shell/router-shell.d.ts +0 -27
  526. package/lib/layout/router-shell/router-shell.js +0 -96
  527. package/lib/layout/view-base/view-base.d.ts +0 -18
  528. package/lib/layout/view-layout/view-layout.d.ts +0 -44
  529. package/lib/util/install.d.ts +0 -3
  530. package/lib/util/install.js +0 -9
  531. package/lib/views/edit-view/index.d.ts +0 -3
  532. package/lib/views/edit-view/index.js +0 -8
  533. package/lib/views/edit-view/src/edit-view.css +0 -6
  534. package/lib/views/edit-view/src/edit-view.d.ts +0 -3
  535. package/lib/views/edit-view/src/edit-view.js +0 -14
  536. package/lib/views/grid-view/grid-view-engine.d.ts +0 -8
  537. package/lib/views/grid-view/grid-view-engine.js +0 -21
  538. package/lib/views/grid-view/grid-view.d.ts +0 -32
  539. package/lib/views/grid-view/grid-view.js +0 -64
  540. package/lib/views/grid-view/index.d.ts +0 -32
  541. package/lib/views/grid-view/index.js +0 -14
  542. package/lib/views/index-view/index-view-default.d.ts +0 -22
  543. package/lib/views/index-view/index-view-default.js +0 -117
  544. package/lib/views/index-view/index-view-engine.d.ts +0 -6
  545. package/lib/views/index-view/index-view-engine.js +0 -9
  546. package/lib/views/index-view/index-view-exp.d.ts +0 -29
  547. package/lib/views/index-view/index-view-exp.js +0 -177
  548. package/lib/views/index-view/index-view-provider.d.ts +0 -13
  549. package/lib/views/index-view/index-view.d.ts +0 -44
  550. package/lib/views/index-view/index-view.js +0 -155
  551. package/lib/views/index-view/index.d.ts +0 -44
  552. package/lib/views/index-view/index.js +0 -14
  553. package/lib/views/index.d.ts +0 -4
  554. package/src/common/app-user/app-user.scss +0 -32
  555. package/src/common/quick-search/quick-search.scss +0 -15
  556. package/src/common/quick-search/quick-search.tsx +0 -59
  557. package/src/common/tab-page-exp/tab-page-exp.scss +0 -43
  558. package/src/common/tab-page-exp/tab-page-exp.tsx +0 -125
  559. package/src/control/panel/view-layout-panel.json +0 -141
  560. package/src/layout/app-layout/app-layout.scss +0 -133
  561. package/src/layout/app-layout/app-layout.tsx +0 -149
  562. package/src/layout/control-layout/control-layout.tsx +0 -29
  563. package/src/layout/index.ts +0 -15
  564. package/src/layout/md-view-base/md-view-base.tsx +0 -69
  565. package/src/layout/view-base/view-base.scss +0 -11
  566. package/src/layout/view-base/view-base.tsx +0 -147
  567. package/src/layout/view-layout/view-layout.scss +0 -198
  568. package/src/layout/view-layout/view-layout.tsx +0 -115
  569. package/src/util/install.ts +0 -11
  570. package/src/views/grid-view/grid-view-engine.ts +0 -68
  571. package/src/views/grid-view/index.ts +0 -12
  572. package/src/views/index-view/index-view-default.ts +0 -168
  573. package/src/views/index-view/index-view-engine.ts +0 -10
  574. package/src/views/index-view/index-view-exp.ts +0 -261
  575. package/src/views/index-view/index-view-provider.ts +0 -14
  576. package/src/views/index-view/index-view.tsx +0 -249
  577. package/src/views/index-view/index.ts +0 -14
  578. package/src/views/index.ts +0 -3
  579. package/src/views/view/ibiz-view.tsx +0 -49
  580. /package/es/control/{grid-control → grid/grid}/grid-control.util.js +0 -0
  581. /package/es/control/{grid-control → grid/grid}/grid-provider.d.ts +0 -0
  582. /package/es/control/{grid-control → grid/grid}/grid-provider.js +0 -0
  583. /package/es/{common → control/grid}/grid-pagination/grid-pagination.js +0 -0
  584. /package/es/control/{toolbar-control → toolbar}/toolbar-provider.d.ts +0 -0
  585. /package/es/control/{toolbar-control → toolbar}/toolbar-provider.js +0 -0
  586. /package/lib/control/{grid-control → grid/grid}/grid-control.util.js +0 -0
  587. /package/lib/control/{grid-control → grid/grid}/grid-provider.d.ts +0 -0
  588. /package/lib/control/{grid-control → grid/grid}/grid-provider.js +0 -0
  589. /package/lib/{common → control/grid}/grid-pagination/grid-pagination.js +0 -0
  590. /package/lib/control/{toolbar-control → toolbar}/toolbar-provider.d.ts +0 -0
  591. /package/lib/control/{toolbar-control → toolbar}/toolbar-provider.js +0 -0
  592. /package/src/{control/panel → panel-component}/panel-container/panel-container.scss +0 -0
  593. /package/src/{views/view → view}/view-provider.ts +0 -0
@@ -0,0 +1,176 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
+ var __publicField = (obj, key, value) => {
5
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
6
+ return value;
7
+ };
8
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
9
+ const core = require("@ibiz-template/core");
10
+ const runtime = require("@ibiz-template/runtime");
11
+ const formDetailState = require("./form-detail-state");
12
+ class FormDetailController {
13
+ /**
14
+ * Creates an instance of FormDetailController.
15
+ * @author lxm
16
+ * @date 2022-08-24 20:08:22
17
+ * @param {T} model
18
+ */
19
+ constructor(model, form, parent) {
20
+ /**
21
+ * 表单成员模型
22
+ *
23
+ * @author lxm
24
+ * @date 2022-08-24 20:08:19
25
+ * @type {T}
26
+ */
27
+ __publicField(this, "model");
28
+ /**
29
+ * 表单项状态
30
+ *
31
+ * @author chitanda
32
+ * @date 2023-01-04 09:01:04
33
+ * @type {FormDetailState}
34
+ */
35
+ __publicField(this, "state");
36
+ /**
37
+ * 表单控制器
38
+ *
39
+ * @author lxm
40
+ * @date 2022-08-24 22:08:59
41
+ * @type {FormController}
42
+ */
43
+ __publicField(this, "form");
44
+ /**
45
+ * 父容器控制器(除了表单分页都存在)
46
+ *
47
+ * @author lxm
48
+ * @date 2022-08-24 22:08:59
49
+ * @type {FormController}
50
+ */
51
+ __publicField(this, "parent");
52
+ this.model = model;
53
+ this.form = form;
54
+ this.parent = parent;
55
+ this.state = this.createState();
56
+ }
57
+ /**
58
+ * 表单数据
59
+ *
60
+ * @author lxm
61
+ * @date 2022-09-01 22:09:48
62
+ * @readonly
63
+ */
64
+ get data() {
65
+ return this.form.data;
66
+ }
67
+ /**
68
+ * 子类不可覆盖或重写此方法,在 init 时需要重写的使用 onInit 方法。
69
+ *
70
+ * @author lxm
71
+ * @date 2022-08-18 22:08:30
72
+ * @returns {*} {Promise<void>}
73
+ */
74
+ async init() {
75
+ await this.onInit();
76
+ }
77
+ async onInit() {
78
+ this.state.showMoreMode = this.model.showMoreMode;
79
+ const { layoutPos, sysCss, detailType } = this.model;
80
+ if (layoutPos) {
81
+ const { width, height } = runtime.calcLayoutHeightWidth(layoutPos);
82
+ this.state.layoutController.width = `${width}`;
83
+ this.state.layoutController.height = `${height}`;
84
+ }
85
+ this.state.layoutController.extraClass = `ibiz-form-col__${detailType.toLowerCase()} `;
86
+ if (sysCss) {
87
+ this.state.layoutController.extraClass = sysCss.cssName;
88
+ }
89
+ Object.defineProperty(this.state.layoutController, "visible", {
90
+ configurable: true,
91
+ enumerable: true,
92
+ get: () => {
93
+ return this.state.visible;
94
+ }
95
+ });
96
+ }
97
+ /**
98
+ * 创建表单状态对象
99
+ *
100
+ * @author chitanda
101
+ * @date 2023-01-04 10:01:00
102
+ * @protected
103
+ * @return {*} {FormDetailState}
104
+ */
105
+ createState() {
106
+ var _a;
107
+ return new formDetailState.FormDetailState((_a = this.parent) == null ? void 0 : _a.state);
108
+ }
109
+ /**
110
+ * 表单数据变更通知(由表单控制器调用)
111
+ *
112
+ * @author lxm
113
+ * @date 2022-09-20 18:09:56
114
+ * @param {string[]} names
115
+ */
116
+ async dataChangeNotify(names) {
117
+ this.calcDynamicLogic(names);
118
+ }
119
+ /**
120
+ * 表单状态变更通知
121
+ *
122
+ * @author lxm
123
+ * @date 2022-09-20 18:09:07
124
+ */
125
+ async formStateNotify(state) {
126
+ this.calcDynamicLogic([], state);
127
+ }
128
+ /**
129
+ * 计算动态逻辑
130
+ *
131
+ * @author lxm
132
+ * @date 2022-09-20 19:09:20
133
+ * @protected
134
+ * @param {string[]} names 变更的属性集合
135
+ * @param {FormNotifyState} [state] 表单通知状态
136
+ * @returns {*} {void}
137
+ */
138
+ calcDynamicLogic(names, state) {
139
+ var _a;
140
+ if (this.parent && !this.parent.state.visible) {
141
+ return;
142
+ }
143
+ (_a = this.model.defdgroupLogics) == null ? void 0 : _a.forEach((logic) => {
144
+ const relatedNames = logic.relatedDetailNames || [];
145
+ if (state || core.isOverlap(relatedNames, names)) {
146
+ try {
147
+ const ok = runtime.verifyFormGroupLogic(this.form.data, logic);
148
+ switch (logic.logicCat) {
149
+ case "ITEMBLANK":
150
+ this.state.required = !ok;
151
+ break;
152
+ case "ITEMENABLE":
153
+ this.state.disabled = !ok;
154
+ break;
155
+ case "PANELVISIBLE":
156
+ this.state.visible = ok;
157
+ break;
158
+ default:
159
+ }
160
+ } catch (error) {
161
+ ibiz.log.error(error);
162
+ }
163
+ }
164
+ });
165
+ }
166
+ /**
167
+ * 强制更新视图
168
+ *
169
+ * @author lxm
170
+ * @date 2022-09-15 09:09:05
171
+ * @param {() => void} [_callback] 更新之后,组件渲染完成后的回调
172
+ */
173
+ force(_callback) {
174
+ }
175
+ }
176
+ exports.FormDetailController = FormDetailController;
@@ -0,0 +1,2 @@
1
+ export * from './form-detail-state';
2
+ export * from './form-detail';
@@ -1,20 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const editView = require("./edit-view");
4
- const indexView = require("./index-view");
5
- const gridView = require("./grid-view");
6
- exports.EditView = editView;
7
- Object.keys(indexView).forEach((k) => {
3
+ const formDetailState = require("./form-detail-state");
4
+ const formDetail = require("./form-detail");
5
+ Object.keys(formDetailState).forEach((k) => {
8
6
  if (k !== "default" && !exports.hasOwnProperty(k))
9
7
  Object.defineProperty(exports, k, {
10
8
  enumerable: true,
11
- get: () => indexView[k]
9
+ get: () => formDetailState[k]
12
10
  });
13
11
  });
14
- Object.keys(gridView).forEach((k) => {
12
+ Object.keys(formDetail).forEach((k) => {
15
13
  if (k !== "default" && !exports.hasOwnProperty(k))
16
14
  Object.defineProperty(exports, k, {
17
15
  enumerable: true,
18
- get: () => gridView[k]
16
+ get: () => formDetail[k]
19
17
  });
20
18
  });
@@ -0,0 +1,17 @@
1
+ import { IFormDetailProvider } from '@ibiz-template/runtime';
2
+ import { IDEFormGroupPanel } from '@ibiz/model-core';
3
+ import { FormController } from '../../form/form.controller';
4
+ import { FormGroupPanelController } from './form-group-panel.controller';
5
+ /**
6
+ * 表单分组面板适配器
7
+ *
8
+ * @author lxm
9
+ * @date 2022-09-19 22:09:03
10
+ * @export
11
+ * @class FormGroupPanelProvider
12
+ * @implements {EditorProvider}
13
+ */
14
+ export declare class FormGroupPanelProvider implements IFormDetailProvider {
15
+ component: string;
16
+ createController(detailModel: IDEFormGroupPanel, form: FormController, parent: FormGroupPanelController | undefined): Promise<FormGroupPanelController>;
17
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
+ var __publicField = (obj, key, value) => {
5
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
6
+ return value;
7
+ };
8
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
9
+ const formGroupPanel_controller = require("./form-group-panel.controller");
10
+ class FormGroupPanelProvider {
11
+ constructor() {
12
+ __publicField(this, "component", "FormGroupPanel");
13
+ }
14
+ async createController(detailModel, form, parent) {
15
+ const c = new formGroupPanel_controller.FormGroupPanelController(detailModel, form, parent);
16
+ await c.init();
17
+ return c;
18
+ }
19
+ }
20
+ exports.FormGroupPanelProvider = FormGroupPanelProvider;
@@ -0,0 +1,27 @@
1
+ import { IButtonContainerState } from '@ibiz-template/runtime';
2
+ import { FormDetailState } from '../form-detail/form-detail-state';
3
+ /**
4
+ * 表单分组状态
5
+ *
6
+ * @author chitanda
7
+ * @date 2023-01-04 10:01:28
8
+ * @export
9
+ * @class FormGroupPanelState
10
+ * @extends {FormContainerState}
11
+ */
12
+ export declare class FormGroupPanelState extends FormDetailState {
13
+ /**
14
+ * 是否显示更多内容
15
+ * @author lxm
16
+ * @date 2023-03-17 02:14:30
17
+ * @type {boolean}
18
+ */
19
+ isShowMore: boolean;
20
+ /**
21
+ * 界面行为组状态
22
+ *
23
+ * @type {(IButtonContainerState | null)}
24
+ * @memberof PortletPartState
25
+ */
26
+ actionGroupState: IButtonContainerState | null;
27
+ }
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4
+ var __publicField = (obj, key, value) => {
5
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
6
+ return value;
7
+ };
8
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
9
+ const formDetailState = require("../form-detail/form-detail-state");
10
+ class FormGroupPanelState extends formDetailState.FormDetailState {
11
+ constructor() {
12
+ super(...arguments);
13
+ /**
14
+ * 是否显示更多内容
15
+ * @author lxm
16
+ * @date 2023-03-17 02:14:30
17
+ * @type {boolean}
18
+ */
19
+ __publicField(this, "isShowMore", false);
20
+ /**
21
+ * 界面行为组状态
22
+ *
23
+ * @type {(IButtonContainerState | null)}
24
+ * @memberof PortletPartState
25
+ */
26
+ __publicField(this, "actionGroupState", null);
27
+ }
28
+ }
29
+ exports.FormGroupPanelState = FormGroupPanelState;
@@ -0,0 +1,35 @@
1
+ import { FormNotifyState } from '@ibiz-template/runtime';
2
+ import { IDEFormGroupPanel, IUIActionGroupDetail } from '@ibiz/model-core';
3
+ import { FormDetailController } from '../form-detail/form-detail';
4
+ import { FormGroupPanelState } from './form-group-panel-state';
5
+ /**
6
+ * 表单分组面板控制器
7
+ *
8
+ * @author lxm
9
+ * @date 2022-09-04 15:09:52
10
+ * @export
11
+ * @class FormGroupPanelController
12
+ * @extends {FormContainerController}
13
+ */
14
+ export declare class FormGroupPanelController<T extends IDEFormGroupPanel = IDEFormGroupPanel> extends FormDetailController<T> {
15
+ state: FormGroupPanelState;
16
+ protected createState(): FormGroupPanelState;
17
+ protected onInit(): Promise<void>;
18
+ formStateNotify(state: FormNotifyState): Promise<void>;
19
+ /**
20
+ * 初始化标题右侧界面行为按钮的状态
21
+ *
22
+ * @author lxm
23
+ * @date 2022-09-07 21:09:43
24
+ */
25
+ initActionStates(): Promise<void>;
26
+ /**
27
+ * 触发操作列点击事件
28
+ *
29
+ * @author lxm
30
+ * @date 2022-09-07 22:09:46
31
+ * @param {IPSUIActionGroupDetail} detail
32
+ * @param {MouseEvent} event
33
+ */
34
+ onActionClick(_detail: IUIActionGroupDetail, _event: MouseEvent): Promise<void>;
35
+ }
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const runtime = require("@ibiz-template/runtime");
4
+ const formDetail = require("../form-detail/form-detail");
5
+ const formGroupPanelState = require("./form-group-panel-state");
6
+ class FormGroupPanelController extends formDetail.FormDetailController {
7
+ createState() {
8
+ var _a;
9
+ return new formGroupPanelState.FormGroupPanelState((_a = this.parent) == null ? void 0 : _a.state);
10
+ }
11
+ async onInit() {
12
+ super.onInit();
13
+ await this.initActionStates();
14
+ }
15
+ async formStateNotify(state) {
16
+ super.calcDynamicLogic([], state);
17
+ if (this.state.actionGroupState) {
18
+ this.state.actionGroupState.update(this.form.data.getOrigin());
19
+ }
20
+ }
21
+ /**
22
+ * 初始化标题右侧界面行为按钮的状态
23
+ *
24
+ * @author lxm
25
+ * @date 2022-09-07 21:09:43
26
+ */
27
+ async initActionStates() {
28
+ var _a;
29
+ const { uiactionGroup } = this.model;
30
+ if (!((_a = uiactionGroup == null ? void 0 : uiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
31
+ return;
32
+ }
33
+ const containerState = new runtime.ButtonContainerState();
34
+ uiactionGroup.uiactionGroupDetails.forEach((detail) => {
35
+ const actionid = detail.uiactionId;
36
+ if (actionid) {
37
+ const buttonState = new runtime.UIActionButtonState(
38
+ detail.id,
39
+ this.form.context.srfappid,
40
+ actionid
41
+ );
42
+ containerState.addState(detail.id, buttonState);
43
+ }
44
+ });
45
+ await containerState.update();
46
+ this.state.actionGroupState = containerState;
47
+ }
48
+ /**
49
+ * 触发操作列点击事件
50
+ *
51
+ * @author lxm
52
+ * @date 2022-09-07 22:09:46
53
+ * @param {IPSUIActionGroupDetail} detail
54
+ * @param {MouseEvent} event
55
+ */
56
+ async onActionClick(_detail, _event) {
57
+ }
58
+ }
59
+ exports.FormGroupPanelController = FormGroupPanelController;
@@ -0,0 +1,3 @@
1
+ export * from './form-group-panel-provider';
2
+ export * from './form-group-panel-state';
3
+ export * from './form-group-panel.controller';
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const formGroupPanelProvider = require("./form-group-panel-provider");
4
+ const formGroupPanelState = require("./form-group-panel-state");
5
+ const formGroupPanel_controller = require("./form-group-panel.controller");
6
+ Object.keys(formGroupPanelProvider).forEach((k) => {
7
+ if (k !== "default" && !exports.hasOwnProperty(k))
8
+ Object.defineProperty(exports, k, {
9
+ enumerable: true,
10
+ get: () => formGroupPanelProvider[k]
11
+ });
12
+ });
13
+ Object.keys(formGroupPanelState).forEach((k) => {
14
+ if (k !== "default" && !exports.hasOwnProperty(k))
15
+ Object.defineProperty(exports, k, {
16
+ enumerable: true,
17
+ get: () => formGroupPanelState[k]
18
+ });
19
+ });
20
+ Object.keys(formGroupPanel_controller).forEach((k) => {
21
+ if (k !== "default" && !exports.hasOwnProperty(k))
22
+ Object.defineProperty(exports, k, {
23
+ enumerable: true,
24
+ get: () => formGroupPanel_controller[k]
25
+ });
26
+ });
@@ -0,0 +1,43 @@
1
+ import './form-item-container.scss';
2
+ export declare const FormItemContainer: import("vue").DefineComponent<{
3
+ required: {
4
+ type: BooleanConstructor;
5
+ required: true;
6
+ };
7
+ error: {
8
+ type: StringConstructor;
9
+ };
10
+ label: {
11
+ type: StringConstructor;
12
+ };
13
+ labelPos: {
14
+ type: StringConstructor;
15
+ required: true;
16
+ };
17
+ labelWidth: {
18
+ type: NumberConstructor;
19
+ required: true;
20
+ };
21
+ }, {
22
+ ns: import("@ibiz-template/core").Namespace;
23
+ cssVars: import("vue").ComputedRef<Record<string, string>>;
24
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
25
+ required: {
26
+ type: BooleanConstructor;
27
+ required: true;
28
+ };
29
+ error: {
30
+ type: StringConstructor;
31
+ };
32
+ label: {
33
+ type: StringConstructor;
34
+ };
35
+ labelPos: {
36
+ type: StringConstructor;
37
+ required: true;
38
+ };
39
+ labelWidth: {
40
+ type: NumberConstructor;
41
+ required: true;
42
+ };
43
+ }>>, {}>;
@@ -0,0 +1,18 @@
1
+ import { IFormDetailProvider } from '@ibiz-template/runtime';
2
+ import { IDEFormDetail } from '@ibiz/model-core';
3
+ import { FormController } from '../../form/form.controller';
4
+ import { FormGroupPanelController } from '../form-group-panel/form-group-panel.controller';
5
+ import { FormItemController } from './form-item.controller';
6
+ /**
7
+ * 表单项适配器
8
+ *
9
+ * @author lxm
10
+ * @date 2022-09-19 22:09:03
11
+ * @export
12
+ * @class FormItemProvider
13
+ * @implements {EditorProvider}
14
+ */
15
+ export declare class FormItemProvider implements IFormDetailProvider {
16
+ component: string;
17
+ createController(detailModel: IDEFormDetail, form: FormController, parent: FormGroupPanelController | undefined): Promise<FormItemController>;
18
+ }
@@ -0,0 +1,27 @@
1
+ import { FormDetailState } from '../form-detail/form-detail-state';
2
+ import { FormGroupPanelState } from '../form-group-panel/form-group-panel-state';
3
+ /**
4
+ * 表单项状态
5
+ * @return {*}
6
+ * @author: zhujiamin
7
+ * @Date: 2023-01-04 10:26:34
8
+ */
9
+ export declare class FormItemState extends FormDetailState {
10
+ protected parent?: FormGroupPanelState | undefined;
11
+ constructor(parent?: FormGroupPanelState | undefined);
12
+ /**
13
+ * 值规则校验错误信息
14
+ *
15
+ * @author lxm
16
+ * @date 2022-09-01 22:09:02
17
+ * @type {string}
18
+ */
19
+ error: string | null;
20
+ /**
21
+ * 启用条件的禁用状态
22
+ *
23
+ * @author lxm
24
+ * @date 2022-09-19 16:09:18
25
+ */
26
+ enableCondDisabled: boolean;
27
+ }
@@ -0,0 +1,139 @@
1
+ import { EditorController, FormNotifyState, IEditorProvider } from '@ibiz-template/runtime';
2
+ import { IDEFormItem } from '@ibiz/model-core';
3
+ import { FormController } from '../../form/form.controller';
4
+ import { FormDetailController } from '../form-detail/form-detail';
5
+ import { FormGroupPanelController } from '../form-group-panel/form-group-panel.controller';
6
+ import { FormItemState } from './form-item-state';
7
+ export declare class FormItemController extends FormDetailController<IDEFormItem> {
8
+ state: FormItemState;
9
+ protected createState(): FormItemState;
10
+ /**
11
+ * 上下文
12
+ *
13
+ * @author lxm
14
+ * @date 2022-08-24 20:08:55
15
+ * @type {IContext}
16
+ */
17
+ readonly context: IContext;
18
+ /**
19
+ * 视图参数
20
+ *
21
+ * @author lxm
22
+ * @date 2022-08-24 20:08:52
23
+ * @type {IParams}
24
+ */
25
+ readonly params: IParams;
26
+ /**
27
+ * 编辑器控制器
28
+ *
29
+ * @author lxm
30
+ * @date 2022-08-24 20:08:42
31
+ * @type {EditorController}
32
+ */
33
+ editor: EditorController | null;
34
+ /**
35
+ * 编辑器适配器
36
+ *
37
+ * @author lxm
38
+ * @date 2022-08-24 20:08:42
39
+ */
40
+ editorProvider?: IEditorProvider;
41
+ /**
42
+ * 表单项校验器实例
43
+ *
44
+ * @author lxm
45
+ * @date 2022-09-04 18:09:56
46
+ * @private
47
+ * @type {Schema}
48
+ */
49
+ private validator;
50
+ /**
51
+ * 值规则
52
+ *
53
+ * @author lxm
54
+ * @date 2022-09-01 22:09:49
55
+ * @type {IData}
56
+ */
57
+ rules: IData;
58
+ /**
59
+ * 表单项名称
60
+ *
61
+ * @author lxm
62
+ * @date 2022-09-04 18:09:32
63
+ * @readonly
64
+ */
65
+ get name(): string;
66
+ /**
67
+ * 表单项对应属性的值
68
+ *
69
+ * @author lxm
70
+ * @date 2022-08-24 22:08:25
71
+ * @readonly
72
+ * @type {unknown}
73
+ */
74
+ get value(): unknown;
75
+ /**
76
+ * Creates an instance of FormItemController.
77
+ * @author lxm
78
+ * @date 2022-08-24 20:08:24
79
+ * @param {FormItemModel} model 表单项模型
80
+ * @param {IContext} context 上下对象
81
+ * @param {IParams} [params={}] 视图参数
82
+ */
83
+ constructor(model: IDEFormItem, form: FormController, parent?: FormGroupPanelController);
84
+ /**
85
+ * 初始化
86
+ *
87
+ * @author lxm
88
+ * @date 2022-08-24 20:08:42
89
+ * @protected
90
+ * @returns {*} {Promise<void>}
91
+ */
92
+ protected onInit(): Promise<void>;
93
+ /**
94
+ * 初始化值规则
95
+ *
96
+ * @author lxm
97
+ * @date 2022-09-02 09:09:27
98
+ * @protected
99
+ * @returns {*}
100
+ */
101
+ protected initRules(): Promise<void>;
102
+ /**
103
+ * 计算启用条件的禁用
104
+ *
105
+ * @author lxm
106
+ * @date 2022-09-20 00:09:57
107
+ * @param {(string | FormNotifyState)} name
108
+ * @returns {*}
109
+ */
110
+ calcEnableCond(): void;
111
+ dataChangeNotify(name: string[]): Promise<void>;
112
+ formStateNotify(state: FormNotifyState): Promise<void>;
113
+ protected calcDynamicLogic(names: string[], state?: FormNotifyState): void;
114
+ /**
115
+ * 表单项值规则校验
116
+ * 如果表单项不显示则不校验直接返回true
117
+ *
118
+ * @author lxm
119
+ * @date 2022-09-01 22:09:29
120
+ */
121
+ validate(): Promise<boolean>;
122
+ /**
123
+ * 设置表单数据的值
124
+ *
125
+ * @author lxm
126
+ * @date 2022-08-24 10:08:40
127
+ * @param {unknown} value 要设置的值
128
+ * @param {string} name 要设置的表单数据的属性名称
129
+ */
130
+ setDataValue(value: unknown, name?: string): Promise<void>;
131
+ /**
132
+ * 设置默认值
133
+ *
134
+ * @author lxm
135
+ * @date 2022-09-15 22:09:52
136
+ * @param {boolean} isCreate 新建默认值还是更新默认值
137
+ */
138
+ setDefaultValue(isCreate: boolean): void;
139
+ }
@@ -0,0 +1,28 @@
1
+ import { PropType } from 'vue';
2
+ import './form-item.scss';
3
+ import { IDEFormItem } from '@ibiz/model-core';
4
+ import { FormItemController } from './form-item.controller';
5
+ export declare const FormItem: import("vue").DefineComponent<{
6
+ modelData: {
7
+ type: PropType<IDEFormItem>;
8
+ required: true;
9
+ };
10
+ controller: {
11
+ type: typeof FormItemController;
12
+ required: true;
13
+ };
14
+ }, {
15
+ ns: import("@ibiz-template/core").Namespace;
16
+ c: FormItemController;
17
+ onValueChange: (val: unknown, name?: string) => void;
18
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
+ modelData: {
20
+ type: PropType<IDEFormItem>;
21
+ required: true;
22
+ };
23
+ controller: {
24
+ type: typeof FormItemController;
25
+ required: true;
26
+ };
27
+ }>>, {}>;
28
+ export default FormItem;