@ibiz-template/vue3-components 0.0.1-alpha.2 → 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 (476) hide show
  1. package/es/common/action-toolbar/action-toolbar.d.ts +64 -0
  2. package/es/common/app-col/app-col.d.ts +11 -10
  3. package/es/common/app-col/app-col.js +29 -25
  4. package/es/common/app-icon/app-icon.d.ts +0 -1
  5. package/es/common/app-icon/app-icon.js +1 -2
  6. package/es/common/app-router-view/app-router-view.js +2 -1
  7. package/es/common/app-row/app-row.js +2 -1
  8. package/es/{layout → common}/control-base/control-base.js +6 -13
  9. package/es/common/index.d.ts +5 -4
  10. package/es/common/index.js +23 -5
  11. package/es/control/app-menu/app-menu-provider.js +1 -1
  12. package/es/control/app-menu/app-menu.controller.d.ts +5 -3
  13. package/es/control/app-menu/app-menu.controller.js +11 -3
  14. package/es/control/app-menu/app-menu.d.ts +4 -3
  15. package/es/control/app-menu/app-menu.js +4 -8
  16. package/es/control/app-menu/index.js +7 -3
  17. package/es/control/form/form/form.controller.d.ts +2 -2
  18. package/es/control/form/form/form.controller.js +3 -7
  19. package/es/control/form/form/index.js +4 -4
  20. package/es/control/form/form-detail/form-detail/form-detail-state.js +2 -2
  21. package/es/control/form/form-detail/form-detail/form-detail.js +4 -10
  22. package/es/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts +1 -1
  23. package/es/control/form/form-detail/form-group-panel/form-group-panel.controller.js +9 -5
  24. package/es/control/form/form-detail/form-item/form-item.d.ts +0 -1
  25. package/es/control/form/form-detail/form-page/form-page-item.d.ts +0 -1
  26. package/es/control/form/search-form/index.js +4 -4
  27. package/es/control/form/search-form/search-form-provider.js +1 -1
  28. package/es/control/form/search-form/search-form-state.d.ts +7 -0
  29. package/es/control/form/search-form/search-form-state.js +16 -0
  30. package/es/control/form/search-form/search-form.controller.d.ts +9 -2
  31. package/es/control/form/search-form/search-form.controller.js +14 -0
  32. package/es/control/form/search-form/search-form.d.ts +2 -1
  33. package/es/control/grid/grid/grid-column.controller.d.ts +1 -1
  34. package/es/control/grid/grid/grid-row.controller.js +3 -0
  35. package/es/control/grid/grid/grid.controller.d.ts +13 -2
  36. package/es/control/grid/grid/grid.controller.js +15 -11
  37. package/es/control/grid/grid-ua-column/grid-ua-column-provider.d.ts +17 -0
  38. package/es/control/grid/grid-ua-column/grid-ua-column-provider.js +20 -0
  39. package/es/control/grid/grid-ua-column/grid-ua-column.controller.d.ts +28 -0
  40. package/es/control/grid/grid-ua-column/grid-ua-column.controller.js +62 -0
  41. package/es/control/grid/grid-ua-column/grid-ua-column.d.ts +46 -0
  42. package/es/control/grid/index.js +9 -5
  43. package/es/control/index.d.ts +1 -0
  44. package/es/control/index.js +1 -0
  45. package/es/control/panel/index.js +6 -10
  46. package/es/control/panel/panel/index.d.ts +4 -0
  47. package/es/control/panel/panel/index.js +4 -0
  48. package/es/control/panel/panel/panel-item-state.js +2 -2
  49. package/es/control/panel/panel/panel-item.controller.js +4 -10
  50. package/es/control/panel/panel/panel.controller.d.ts +4 -4
  51. package/es/control/panel/panel/panel.controller.js +3 -8
  52. package/es/control/panel/view-layout-panel/index.d.ts +3 -0
  53. package/es/control/panel/view-layout-panel/index.js +3 -0
  54. package/es/control/panel/view-layout-panel/view-layout-panel-provider.js +1 -1
  55. package/es/control/panel/view-layout-panel/view-layout-panel.controller.d.ts +3 -3
  56. package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +3 -5
  57. package/es/control/toolbar/index.js +3 -3
  58. package/es/control/toolbar/toolbar-control.d.ts +2 -1
  59. package/es/control/toolbar/toolbar.controllerr.d.ts +10 -10
  60. package/es/control/toolbar/toolbar.controllerr.js +23 -27
  61. package/es/editor/index.js +2 -2
  62. package/es/editor/text-box/ibiz-input/ibiz-input.d.ts +41 -3
  63. package/es/index.d.ts +4 -2
  64. package/es/index.js +13 -23
  65. package/es/panel-component/auth-userinfo/auth-userinfo-provider.d.ts +16 -0
  66. package/es/panel-component/auth-userinfo/auth-userinfo-provider.js +20 -0
  67. package/es/panel-component/auth-userinfo/index.js +19 -0
  68. package/es/panel-component/index.d.ts +10 -0
  69. package/es/panel-component/index.js +25 -0
  70. package/es/panel-component/nav-pos/index.js +20 -0
  71. package/es/panel-component/nav-pos/nav-pos-provider.d.ts +17 -0
  72. package/es/{control/form/form-detail/form-page/form-page-provider.js → panel-component/nav-pos/nav-pos-provider.js} +6 -6
  73. package/es/panel-component/nav-pos/nav-pos-state.d.ts +14 -0
  74. package/es/{views/index-view/index-view-provider.js → panel-component/nav-pos/nav-pos-state.js} +6 -3
  75. package/es/panel-component/nav-pos/nav-pos.controller.d.ts +66 -0
  76. package/es/panel-component/nav-pos/nav-pos.controller.js +103 -0
  77. package/{lib/control/panel/panel-ctrl-pos/panel-ctrl-pos.d.ts → es/panel-component/nav-pos/nav-pos.d.ts} +10 -6
  78. package/es/panel-component/nav-tabs/index.js +16 -0
  79. package/es/panel-component/nav-tabs/nav-tabs-provider.d.ts +17 -0
  80. package/es/{control/form/form-detail/form-item/form-item-provider.js → panel-component/nav-tabs/nav-tabs-provider.js} +6 -6
  81. package/es/panel-component/nav-tabs/nav-tabs-state.d.ts +21 -0
  82. package/es/panel-component/nav-tabs/nav-tabs-state.js +18 -0
  83. package/es/panel-component/nav-tabs/nav-tabs.controller.js +124 -0
  84. package/es/panel-component/nav-tabs/nav-tabs.d.ts +35 -0
  85. package/es/{control/panel → panel-component}/panel-container/index.js +3 -2
  86. package/{lib/control/panel → es/panel-component}/panel-container/panel-container-provider.d.ts +1 -2
  87. package/{lib/control/panel → es/panel-component}/panel-container/panel-container-state.d.ts +1 -1
  88. package/es/{control/panel → panel-component}/panel-container/panel-container-state.js +1 -1
  89. package/es/{control/panel → panel-component}/panel-container/panel-container.controller.d.ts +1 -1
  90. package/es/{control/panel → panel-component}/panel-container/panel-container.controller.js +1 -1
  91. package/es/{control/panel → panel-component}/panel-ctrl-pos/index.js +3 -2
  92. package/es/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos-provider.d.ts +3 -3
  93. package/es/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +1 -2
  94. package/es/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.controller.js +1 -1
  95. package/es/panel-component/scroll-container/index.js +43 -0
  96. package/es/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
  97. package/es/panel-component/scroll-container/scroll-container/index.js +3 -0
  98. package/es/panel-component/scroll-container/scroll-container/scroll-container-provider.d.ts +17 -0
  99. package/es/panel-component/scroll-container/scroll-container/scroll-container-provider.js +20 -0
  100. package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +22 -0
  101. package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.js +11 -0
  102. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +26 -0
  103. package/es/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
  104. package/es/panel-component/scroll-container/scroll-container-item/index.js +3 -0
  105. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.d.ts +17 -0
  106. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.js +20 -0
  107. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +21 -0
  108. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.js +6 -0
  109. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +26 -0
  110. package/es/{views/view → view}/index.js +3 -3
  111. package/es/view-engine/grid-view-engine.d.ts +48 -0
  112. package/es/view-engine/grid-view-engine.js +158 -0
  113. package/es/view-engine/index-view-engine.d.ts +9 -0
  114. package/es/view-engine/index-view-engine.js +20 -0
  115. package/es/view-engine/index.d.ts +6 -0
  116. package/es/view-engine/index.js +23 -0
  117. package/lib/common/action-toolbar/action-toolbar.d.ts +64 -0
  118. package/lib/common/app-col/app-col.d.ts +11 -10
  119. package/lib/common/app-col/app-col.js +29 -25
  120. package/lib/common/app-icon/app-icon.d.ts +0 -1
  121. package/lib/common/app-icon/app-icon.js +1 -2
  122. package/lib/common/app-router-view/app-router-view.js +2 -1
  123. package/lib/common/app-row/app-row.js +2 -1
  124. package/lib/{layout → common}/control-base/control-base.js +5 -12
  125. package/lib/common/index.d.ts +5 -4
  126. package/lib/common/index.js +23 -40
  127. package/lib/control/app-menu/app-menu-provider.js +1 -1
  128. package/lib/control/app-menu/app-menu.controller.d.ts +5 -3
  129. package/lib/control/app-menu/app-menu.controller.js +11 -3
  130. package/lib/control/app-menu/app-menu.d.ts +4 -3
  131. package/lib/control/app-menu/app-menu.js +4 -8
  132. package/lib/control/app-menu/index.js +33 -3
  133. package/lib/control/form/form/form.controller.d.ts +2 -2
  134. package/lib/control/form/form/form.controller.js +2 -6
  135. package/lib/control/form/form/index.js +5 -5
  136. package/lib/control/form/form-detail/form-detail/form-detail-state.js +2 -2
  137. package/lib/control/form/form-detail/form-detail/form-detail.js +3 -9
  138. package/lib/control/form/form-detail/form-group-panel/form-group-panel.controller.d.ts +1 -1
  139. package/lib/control/form/form-detail/form-group-panel/form-group-panel.controller.js +8 -4
  140. package/lib/control/form/form-detail/form-item/form-item.d.ts +0 -1
  141. package/lib/control/form/form-detail/form-page/form-page-item.d.ts +0 -1
  142. package/lib/control/form/search-form/index.js +4 -4
  143. package/lib/control/form/search-form/search-form-provider.js +1 -1
  144. package/lib/control/form/search-form/search-form-state.d.ts +7 -0
  145. package/lib/control/form/search-form/search-form-state.js +16 -0
  146. package/lib/control/form/search-form/search-form.controller.d.ts +9 -2
  147. package/lib/control/form/search-form/search-form.controller.js +14 -0
  148. package/lib/control/form/search-form/search-form.d.ts +2 -1
  149. package/lib/control/grid/grid/grid-column.controller.d.ts +1 -1
  150. package/lib/control/grid/grid/grid-row.controller.js +3 -0
  151. package/lib/control/grid/grid/grid.controller.d.ts +13 -2
  152. package/lib/control/grid/grid/grid.controller.js +14 -10
  153. package/lib/control/grid/grid-ua-column/grid-ua-column-provider.d.ts +17 -0
  154. package/lib/control/grid/grid-ua-column/grid-ua-column-provider.js +20 -0
  155. package/lib/control/grid/grid-ua-column/grid-ua-column.controller.d.ts +28 -0
  156. package/lib/control/grid/grid-ua-column/grid-ua-column.controller.js +62 -0
  157. package/lib/control/grid/grid-ua-column/grid-ua-column.d.ts +46 -0
  158. package/lib/control/grid/index.js +9 -5
  159. package/lib/control/index.d.ts +1 -0
  160. package/lib/control/index.js +8 -0
  161. package/lib/control/panel/index.js +10 -12
  162. package/lib/control/panel/panel/index.d.ts +4 -0
  163. package/lib/control/panel/panel/index.js +34 -0
  164. package/lib/control/panel/panel/panel-item-state.js +2 -2
  165. package/lib/control/panel/panel/panel-item.controller.js +3 -9
  166. package/lib/control/panel/panel/panel.controller.d.ts +4 -4
  167. package/lib/control/panel/panel/panel.controller.js +2 -7
  168. package/lib/control/panel/view-layout-panel/index.d.ts +3 -0
  169. package/lib/control/panel/view-layout-panel/index.js +26 -0
  170. package/lib/control/panel/view-layout-panel/view-layout-panel-provider.js +1 -1
  171. package/lib/control/panel/view-layout-panel/view-layout-panel.controller.d.ts +3 -3
  172. package/lib/control/panel/view-layout-panel/view-layout-panel.d.ts +3 -5
  173. package/lib/control/toolbar/index.js +3 -3
  174. package/lib/control/toolbar/toolbar-control.d.ts +2 -1
  175. package/lib/control/toolbar/toolbar.controllerr.d.ts +10 -10
  176. package/lib/control/toolbar/toolbar.controllerr.js +22 -26
  177. package/lib/editor/index.js +2 -2
  178. package/lib/editor/text-box/ibiz-input/ibiz-input.d.ts +41 -3
  179. package/lib/index.d.ts +4 -2
  180. package/lib/index.js +28 -26
  181. package/lib/panel-component/auth-userinfo/auth-userinfo-provider.d.ts +16 -0
  182. package/lib/{control/form/form-detail/form-page/form-page-provider.js → panel-component/auth-userinfo/auth-userinfo-provider.js} +6 -6
  183. package/lib/panel-component/auth-userinfo/index.js +23 -0
  184. package/lib/panel-component/index.d.ts +10 -0
  185. package/lib/panel-component/index.js +55 -0
  186. package/lib/panel-component/nav-pos/index.js +30 -0
  187. package/lib/panel-component/nav-pos/nav-pos-provider.d.ts +17 -0
  188. package/lib/{control/form/form-detail/form-item/form-item-provider.js → panel-component/nav-pos/nav-pos-provider.js} +6 -6
  189. package/lib/panel-component/nav-pos/nav-pos-state.d.ts +14 -0
  190. package/lib/{views/index-view/index-view-provider.js → panel-component/nav-pos/nav-pos-state.js} +6 -3
  191. package/lib/panel-component/nav-pos/nav-pos.controller.d.ts +66 -0
  192. package/lib/panel-component/nav-pos/nav-pos.controller.js +103 -0
  193. package/{es/control/panel/panel-ctrl-pos/panel-ctrl-pos.d.ts → lib/panel-component/nav-pos/nav-pos.d.ts} +10 -6
  194. package/lib/panel-component/nav-tabs/index.js +20 -0
  195. package/lib/panel-component/nav-tabs/nav-tabs-provider.d.ts +17 -0
  196. package/lib/panel-component/nav-tabs/nav-tabs-provider.js +20 -0
  197. package/lib/panel-component/nav-tabs/nav-tabs-state.d.ts +21 -0
  198. package/lib/panel-component/nav-tabs/nav-tabs-state.js +18 -0
  199. package/lib/panel-component/nav-tabs/nav-tabs.controller.js +124 -0
  200. package/lib/panel-component/nav-tabs/nav-tabs.d.ts +35 -0
  201. package/lib/{control/panel → panel-component}/panel-container/index.js +4 -3
  202. package/{es/control/panel → lib/panel-component}/panel-container/panel-container-provider.d.ts +1 -2
  203. package/{es/control/panel → lib/panel-component}/panel-container/panel-container-state.d.ts +1 -1
  204. package/lib/{control/panel → panel-component}/panel-container/panel-container-state.js +1 -1
  205. package/lib/{control/panel → panel-component}/panel-container/panel-container.controller.d.ts +1 -1
  206. package/lib/{control/panel → panel-component}/panel-container/panel-container.controller.js +2 -2
  207. package/lib/{control/panel → panel-component}/panel-ctrl-pos/index.js +4 -3
  208. package/lib/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos-provider.d.ts +3 -3
  209. package/lib/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +1 -2
  210. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.js +6 -0
  211. package/lib/panel-component/scroll-container/index.js +57 -0
  212. package/lib/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
  213. package/lib/panel-component/scroll-container/scroll-container/index.js +26 -0
  214. package/lib/panel-component/scroll-container/scroll-container/scroll-container-provider.d.ts +17 -0
  215. package/lib/panel-component/scroll-container/scroll-container/scroll-container-provider.js +20 -0
  216. package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +22 -0
  217. package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.js +11 -0
  218. package/lib/panel-component/scroll-container/scroll-container/scroll-container.d.ts +26 -0
  219. package/lib/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
  220. package/lib/panel-component/scroll-container/scroll-container-item/index.js +26 -0
  221. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.d.ts +17 -0
  222. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.js +20 -0
  223. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +21 -0
  224. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.js +6 -0
  225. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +26 -0
  226. package/lib/{views/view → view}/index.js +3 -3
  227. package/lib/view-engine/grid-view-engine.d.ts +48 -0
  228. package/lib/view-engine/grid-view-engine.js +158 -0
  229. package/lib/view-engine/index-view-engine.d.ts +9 -0
  230. package/lib/view-engine/index-view-engine.js +20 -0
  231. package/lib/view-engine/index.d.ts +6 -0
  232. package/lib/view-engine/index.js +35 -0
  233. package/package.json +1 -1
  234. package/src/common/action-toolbar/action-toolbar.scss +31 -0
  235. package/src/common/action-toolbar/action-toolbar.tsx +117 -0
  236. package/src/common/app-col/app-col.tsx +34 -13
  237. package/src/common/app-icon/app-icon.tsx +0 -1
  238. package/src/common/app-router-view/app-router-view.tsx +2 -1
  239. package/src/common/app-row/app-row.tsx +2 -1
  240. package/src/{layout/control-layout/control-layout.scss → common/control-base/control-base.scss} +1 -1
  241. package/src/{layout → common}/control-base/control-base.tsx +4 -7
  242. package/src/common/index.ts +23 -4
  243. package/src/control/app-menu/app-menu-provider.ts +1 -1
  244. package/src/control/app-menu/app-menu.controller.ts +24 -5
  245. package/src/control/app-menu/app-menu.tsx +4 -13
  246. package/src/control/app-menu/index.ts +8 -3
  247. package/src/control/form/form/form-control.tsx +1 -1
  248. package/src/control/form/form/form.controller.ts +8 -9
  249. package/src/control/form/form/index.ts +4 -4
  250. package/src/control/form/form-detail/form-detail/form-detail-state.ts +2 -2
  251. package/src/control/form/form-detail/form-detail/form-detail.ts +7 -13
  252. package/src/control/form/form-detail/form-group-panel/form-group-panel.controller.ts +9 -5
  253. package/src/control/form/form-detail/form-item/form-item.controller.ts +2 -1
  254. package/src/control/form/form-detail/form-item/form-item.tsx +2 -4
  255. package/src/control/form/form-detail/form-page/form-page-item.tsx +3 -6
  256. package/src/control/form/search-form/index.ts +4 -4
  257. package/src/control/form/search-form/search-form-provider.ts +1 -1
  258. package/src/control/form/search-form/search-form-state.ts +9 -1
  259. package/src/control/form/search-form/search-form.controller.ts +21 -1
  260. package/src/control/form/search-form/search-form.tsx +4 -3
  261. package/src/control/grid/grid/grid-control.tsx +1 -1
  262. package/src/control/grid/grid/grid-row.controller.ts +4 -4
  263. package/src/control/grid/grid/grid.controller.ts +22 -14
  264. package/src/control/grid/grid/grid.scss +1 -0
  265. package/src/control/grid/grid-ua-column/grid-ua-column-provider.ts +26 -0
  266. package/src/control/grid/grid-ua-column/grid-ua-column.controller.ts +80 -0
  267. package/src/control/grid/grid-ua-column/grid-ua-column.scss +20 -0
  268. package/src/control/grid/grid-ua-column/grid-ua-column.tsx +75 -0
  269. package/src/control/grid/index.ts +13 -5
  270. package/src/control/index.ts +1 -0
  271. package/src/control/panel/index.ts +6 -10
  272. package/src/control/panel/panel/index.ts +4 -0
  273. package/src/control/panel/panel/panel-item-state.ts +2 -2
  274. package/src/control/panel/panel/panel-item.controller.ts +7 -13
  275. package/src/control/panel/panel/panel.controller.ts +10 -12
  276. package/src/control/panel/view-layout-panel/index.ts +3 -0
  277. package/src/control/panel/view-layout-panel/view-layout-panel-provider.ts +1 -1
  278. package/src/control/panel/view-layout-panel/view-layout-panel.controller.ts +9 -2
  279. package/src/control/panel/view-layout-panel/view-layout-panel.scss +6 -0
  280. package/src/control/panel/view-layout-panel/view-layout-panel.tsx +5 -10
  281. package/src/control/toolbar/index.ts +3 -3
  282. package/src/control/toolbar/toolbar-control.tsx +1 -2
  283. package/src/control/toolbar/toolbar.controllerr.ts +30 -36
  284. package/src/editor/index.ts +2 -2
  285. package/src/index.ts +14 -37
  286. package/src/panel-component/auth-userinfo/auth-userinfo-provider.ts +26 -0
  287. package/src/panel-component/auth-userinfo/auth-userinfo.scss +34 -0
  288. package/src/{common/app-user/app-user.tsx → panel-component/auth-userinfo/auth-userinfo.tsx} +18 -6
  289. package/src/panel-component/auth-userinfo/index.ts +17 -0
  290. package/src/panel-component/index.ts +26 -0
  291. package/src/panel-component/nav-pos/index.ts +16 -0
  292. package/src/panel-component/nav-pos/nav-pos-provider.ts +27 -0
  293. package/src/panel-component/nav-pos/nav-pos-state.ts +16 -0
  294. package/src/panel-component/nav-pos/nav-pos.controller.ts +117 -0
  295. package/src/panel-component/nav-pos/nav-pos.scss +4 -0
  296. package/src/panel-component/nav-pos/nav-pos.tsx +79 -0
  297. package/src/panel-component/nav-tabs/index.ts +14 -0
  298. package/src/panel-component/nav-tabs/nav-tabs-provider.ts +27 -0
  299. package/src/panel-component/nav-tabs/nav-tabs-state.ts +24 -0
  300. package/src/panel-component/nav-tabs/nav-tabs.controller.ts +146 -0
  301. package/src/panel-component/nav-tabs/nav-tabs.scss +64 -0
  302. package/src/panel-component/nav-tabs/nav-tabs.tsx +141 -0
  303. package/src/{control/panel → panel-component}/panel-container/index.ts +3 -2
  304. package/src/{control/panel → panel-component}/panel-container/panel-container-provider.ts +1 -2
  305. package/src/{control/panel → panel-component}/panel-container/panel-container-state.ts +1 -1
  306. package/src/{control/panel → panel-component}/panel-container/panel-container.controller.ts +1 -1
  307. package/src/{control/panel → panel-component}/panel-container/panel-container.tsx +2 -4
  308. package/src/{control/panel → panel-component}/panel-ctrl-pos/index.ts +3 -2
  309. package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos-provider.ts +2 -3
  310. package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.controller.ts +1 -2
  311. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +4 -0
  312. package/src/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos.tsx +3 -2
  313. package/src/panel-component/scroll-container/index.ts +44 -0
  314. package/src/panel-component/scroll-container/scroll-container/index.ts +3 -0
  315. package/src/panel-component/scroll-container/scroll-container/scroll-container-provider.ts +27 -0
  316. package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +32 -0
  317. package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +30 -0
  318. package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +108 -0
  319. package/src/panel-component/scroll-container/scroll-container-item/index.ts +3 -0
  320. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item-provider.ts +27 -0
  321. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +25 -0
  322. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +5 -0
  323. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +59 -0
  324. package/src/view/ibiz-view.scss +13 -0
  325. package/src/view/ibiz-view.tsx +75 -0
  326. package/src/{views/view → view}/index.ts +3 -3
  327. package/src/view-engine/grid-view-engine.ts +200 -0
  328. package/src/view-engine/index-view-engine.ts +34 -0
  329. package/src/view-engine/index.ts +24 -0
  330. package/es/common/app-user/app-user.d.ts +0 -8
  331. package/es/common/app-user/app-user.js +0 -60
  332. package/es/common/quick-search/quick-search.d.ts +0 -30
  333. package/es/common/quick-search/quick-search.js +0 -63
  334. package/es/common/tab-page-exp/tab-page-exp.d.ts +0 -70
  335. package/es/common/tab-page-exp/tab-page-exp.js +0 -117
  336. package/es/control/app-menu/index.d.ts +0 -53
  337. package/es/control/form/form/index.d.ts +0 -35
  338. package/es/control/form/form-detail/form-item/form-item-state.js +0 -46
  339. package/es/control/form/form-detail/form-item/form-item.controller.js +0 -268
  340. package/es/control/form/form-detail/form-item/index.js +0 -3
  341. package/es/control/form/form-detail/form-page/form-page-item.js +0 -67
  342. package/es/control/form/form-detail/form-page/form-page-state.js +0 -6
  343. package/es/control/form/form-detail/form-page/form-page.controller.js +0 -11
  344. package/es/control/form/search-form/index.d.ts +0 -33
  345. package/es/control/grid/grid/grid-control.d.ts +0 -159
  346. package/es/control/grid/index.d.ts +0 -115
  347. package/es/control/panel/index.d.ts +0 -43
  348. package/es/control/panel/panel-container/index.d.ts +0 -30
  349. package/es/control/panel/panel-ctrl-pos/index.d.ts +0 -26
  350. package/es/control/panel/panel-ctrl-pos/panel-ctrl-pos.js +0 -40
  351. package/es/control/panel/view-layout-panel/view-layout-panel.js +0 -106
  352. package/es/control/toolbar/index.d.ts +0 -35
  353. package/es/layout/app-layout/app-layout.d.ts +0 -33
  354. package/es/layout/control-base/control-base.d.ts +0 -17
  355. package/es/layout/control-layout/control-layout.d.ts +0 -19
  356. package/es/layout/index.d.ts +0 -7
  357. package/es/layout/index.js +0 -14
  358. package/es/layout/md-view-base/md-view-base.d.ts +0 -12
  359. package/es/layout/md-view-base/md-view-base.js +0 -35
  360. package/es/layout/view-base/view-base.d.ts +0 -18
  361. package/es/layout/view-layout/view-layout.d.ts +0 -45
  362. package/es/util/install.d.ts +0 -3
  363. package/es/util/install.js +0 -9
  364. package/es/views/grid-view/grid-view-engine.d.ts +0 -21
  365. package/es/views/grid-view/grid-view-engine.js +0 -59
  366. package/es/views/grid-view/index.d.ts +0 -2
  367. package/es/views/grid-view/index.js +0 -12
  368. package/es/views/index-view/index-view-default.d.ts +0 -23
  369. package/es/views/index-view/index-view-default.js +0 -117
  370. package/es/views/index-view/index-view-engine.d.ts +0 -6
  371. package/es/views/index-view/index-view-engine.js +0 -9
  372. package/es/views/index-view/index-view-exp.d.ts +0 -998
  373. package/es/views/index-view/index-view-exp.js +0 -177
  374. package/es/views/index-view/index-view-provider.d.ts +0 -13
  375. package/es/views/index-view/index-view.d.ts +0 -46
  376. package/es/views/index-view/index-view.js +0 -157
  377. package/es/views/index-view/index.d.ts +0 -45
  378. package/es/views/index-view/index.js +0 -14
  379. package/es/views/index.d.ts +0 -3
  380. package/es/views/index.js +0 -3
  381. package/es/views/view/ibiz-view.d.ts +0 -35
  382. package/es/views/view/ibiz-view.js +0 -59
  383. package/es/views/view/index.d.ts +0 -34
  384. package/lib/common/app-user/app-user.d.ts +0 -8
  385. package/lib/common/app-user/app-user.js +0 -60
  386. package/lib/common/quick-search/quick-search.d.ts +0 -30
  387. package/lib/common/quick-search/quick-search.js +0 -63
  388. package/lib/common/tab-page-exp/tab-page-exp.d.ts +0 -70
  389. package/lib/common/tab-page-exp/tab-page-exp.js +0 -117
  390. package/lib/control/app-menu/index.d.ts +0 -53
  391. package/lib/control/form/form/index.d.ts +0 -35
  392. package/lib/control/form/form-detail/form-item/form-item-state.js +0 -46
  393. package/lib/control/form/form-detail/form-item/form-item.controller.js +0 -268
  394. package/lib/control/form/form-detail/form-item/index.js +0 -26
  395. package/lib/control/form/form-detail/form-page/form-page-item.js +0 -67
  396. package/lib/control/form/form-detail/form-page/form-page-state.js +0 -6
  397. package/lib/control/form/form-detail/form-page/form-page.controller.js +0 -11
  398. package/lib/control/form/search-form/index.d.ts +0 -33
  399. package/lib/control/grid/grid/grid-control.d.ts +0 -159
  400. package/lib/control/grid/index.d.ts +0 -115
  401. package/lib/control/panel/index.d.ts +0 -43
  402. package/lib/control/panel/panel-container/index.d.ts +0 -30
  403. package/lib/control/panel/panel-ctrl-pos/index.d.ts +0 -26
  404. package/lib/control/panel/panel-ctrl-pos/panel-ctrl-pos.controller.js +0 -6
  405. package/lib/control/panel/panel-ctrl-pos/panel-ctrl-pos.js +0 -40
  406. package/lib/control/panel/view-layout-panel/view-layout-panel.js +0 -106
  407. package/lib/control/toolbar/index.d.ts +0 -35
  408. package/lib/layout/app-layout/app-layout.d.ts +0 -33
  409. package/lib/layout/control-base/control-base.d.ts +0 -17
  410. package/lib/layout/control-layout/control-layout.d.ts +0 -19
  411. package/lib/layout/index.d.ts +0 -7
  412. package/lib/layout/index.js +0 -32
  413. package/lib/layout/md-view-base/md-view-base.d.ts +0 -12
  414. package/lib/layout/md-view-base/md-view-base.js +0 -35
  415. package/lib/layout/view-base/view-base.d.ts +0 -18
  416. package/lib/layout/view-layout/view-layout.d.ts +0 -45
  417. package/lib/util/install.d.ts +0 -3
  418. package/lib/util/install.js +0 -9
  419. package/lib/views/grid-view/grid-view-engine.d.ts +0 -21
  420. package/lib/views/grid-view/grid-view-engine.js +0 -59
  421. package/lib/views/grid-view/index.d.ts +0 -2
  422. package/lib/views/grid-view/index.js +0 -12
  423. package/lib/views/index-view/index-view-default.d.ts +0 -23
  424. package/lib/views/index-view/index-view-default.js +0 -117
  425. package/lib/views/index-view/index-view-engine.d.ts +0 -6
  426. package/lib/views/index-view/index-view-engine.js +0 -9
  427. package/lib/views/index-view/index-view-exp.d.ts +0 -998
  428. package/lib/views/index-view/index-view-exp.js +0 -177
  429. package/lib/views/index-view/index-view-provider.d.ts +0 -13
  430. package/lib/views/index-view/index-view.d.ts +0 -46
  431. package/lib/views/index-view/index-view.js +0 -157
  432. package/lib/views/index-view/index.d.ts +0 -45
  433. package/lib/views/index-view/index.js +0 -14
  434. package/lib/views/index.d.ts +0 -3
  435. package/lib/views/index.js +0 -26
  436. package/lib/views/view/ibiz-view.d.ts +0 -35
  437. package/lib/views/view/ibiz-view.js +0 -59
  438. package/lib/views/view/index.d.ts +0 -34
  439. package/src/common/app-user/app-user.scss +0 -32
  440. package/src/common/quick-search/quick-search.scss +0 -15
  441. package/src/common/quick-search/quick-search.tsx +0 -59
  442. package/src/common/tab-page-exp/tab-page-exp.scss +0 -43
  443. package/src/common/tab-page-exp/tab-page-exp.tsx +0 -125
  444. package/src/control/panel/view-layout-panel.json +0 -141
  445. package/src/layout/app-layout/app-layout.scss +0 -133
  446. package/src/layout/app-layout/app-layout.tsx +0 -149
  447. package/src/layout/control-layout/control-layout.tsx +0 -29
  448. package/src/layout/index.ts +0 -15
  449. package/src/layout/md-view-base/md-view-base.tsx +0 -69
  450. package/src/layout/view-base/view-base.scss +0 -11
  451. package/src/layout/view-base/view-base.tsx +0 -147
  452. package/src/layout/view-layout/view-layout.scss +0 -198
  453. package/src/layout/view-layout/view-layout.tsx +0 -115
  454. package/src/util/install.ts +0 -11
  455. package/src/views/grid-view/grid-view-engine.ts +0 -68
  456. package/src/views/grid-view/index.ts +0 -12
  457. package/src/views/index-view/index-view-default.ts +0 -168
  458. package/src/views/index-view/index-view-engine.ts +0 -10
  459. package/src/views/index-view/index-view-exp.ts +0 -261
  460. package/src/views/index-view/index-view-provider.ts +0 -14
  461. package/src/views/index-view/index-view.tsx +0 -249
  462. package/src/views/index-view/index.ts +0 -14
  463. package/src/views/index.ts +0 -3
  464. package/src/views/view/ibiz-view.tsx +0 -49
  465. /package/es/{control/panel → panel-component}/panel-container/panel-container-provider.js +0 -0
  466. /package/es/{control/panel → panel-component}/panel-container/panel-container.d.ts +0 -0
  467. /package/es/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos-provider.js +0 -0
  468. /package/es/{views/view → view}/view-provider.d.ts +0 -0
  469. /package/es/{views/view → view}/view-provider.js +0 -0
  470. /package/lib/{control/panel → panel-component}/panel-container/panel-container-provider.js +0 -0
  471. /package/lib/{control/panel → panel-component}/panel-container/panel-container.d.ts +0 -0
  472. /package/lib/{control/panel → panel-component}/panel-ctrl-pos/panel-ctrl-pos-provider.js +0 -0
  473. /package/lib/{views/view → view}/view-provider.d.ts +0 -0
  474. /package/lib/{views/view → view}/view-provider.js +0 -0
  475. /package/src/{control/panel → panel-component}/panel-container/panel-container.scss +0 -0
  476. /package/src/{views/view → view}/view-provider.ts +0 -0
@@ -0,0 +1,64 @@
1
+ import { PropType } from 'vue';
2
+ import { IButtonContainerState } from '@ibiz-template/runtime';
3
+ import { IUIActionGroupDetail } from '@ibiz/model-core';
4
+ import './action-toolbar.scss';
5
+ export declare const ActionToolbar: import("vue").DefineComponent<{
6
+ actionDetails: {
7
+ type: {
8
+ (arrayLength: number): IUIActionGroupDetail[];
9
+ (...items: IUIActionGroupDetail[]): IUIActionGroupDetail[];
10
+ new (arrayLength: number): IUIActionGroupDetail[];
11
+ new (...items: IUIActionGroupDetail[]): IUIActionGroupDetail[];
12
+ isArray(arg: any): arg is any[];
13
+ readonly prototype: any[];
14
+ from<T>(arrayLike: ArrayLike<T>): T[];
15
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
16
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
17
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
18
+ of<T_4>(...items: T_4[]): T_4[];
19
+ readonly [Symbol.species]: ArrayConstructor;
20
+ };
21
+ required: true;
22
+ };
23
+ actionsState: {
24
+ type: PropType<IButtonContainerState>;
25
+ required: true;
26
+ };
27
+ caption: StringConstructor;
28
+ mode: {
29
+ type: PropType<"dropdown" | "buttons">;
30
+ default: string;
31
+ };
32
+ }, {
33
+ ns: import("@ibiz-template/core").Namespace;
34
+ handleClick: (detail: IUIActionGroupDetail, event: MouseEvent) => Promise<void>;
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ actionDetails: {
37
+ type: {
38
+ (arrayLength: number): IUIActionGroupDetail[];
39
+ (...items: IUIActionGroupDetail[]): IUIActionGroupDetail[];
40
+ new (arrayLength: number): IUIActionGroupDetail[];
41
+ new (...items: IUIActionGroupDetail[]): IUIActionGroupDetail[];
42
+ isArray(arg: any): arg is any[];
43
+ readonly prototype: any[];
44
+ from<T>(arrayLike: ArrayLike<T>): T[];
45
+ from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
46
+ from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
47
+ from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
48
+ of<T_4>(...items: T_4[]): T_4[];
49
+ readonly [Symbol.species]: ArrayConstructor;
50
+ };
51
+ required: true;
52
+ };
53
+ actionsState: {
54
+ type: PropType<IButtonContainerState>;
55
+ required: true;
56
+ };
57
+ caption: StringConstructor;
58
+ mode: {
59
+ type: PropType<"dropdown" | "buttons">;
60
+ default: string;
61
+ };
62
+ }>>, {
63
+ mode: "dropdown" | "buttons";
64
+ }>;
@@ -1,5 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { ILayoutPos } from '@ibiz/model-core';
3
+ import { ILayoutController } from '@ibiz-template/runtime';
3
4
  export declare const AppCol: import("vue").DefineComponent<{
4
5
  layoutPos: PropType<ILayoutPos>;
5
6
  controller: {
@@ -15,25 +16,25 @@ export declare const AppCol: import("vue").DefineComponent<{
15
16
  lg?: undefined;
16
17
  } | {
17
18
  xs: {
18
- span: number;
19
- offset: number;
19
+ span?: number | undefined;
20
+ offset?: number | undefined;
20
21
  };
21
22
  sm: {
22
- span: number;
23
- offset: number;
23
+ span?: number | undefined;
24
+ offset?: number | undefined;
24
25
  };
25
26
  md: {
26
- span: number;
27
- offset: number;
27
+ span?: number | undefined;
28
+ offset?: number | undefined;
28
29
  };
29
30
  lg: {
30
- span: number;
31
- offset: number;
31
+ span?: number | undefined;
32
+ offset?: number | undefined;
32
33
  };
33
34
  }>;
34
35
  cssVars: import("vue").ComputedRef<{
35
- width: any;
36
- height: any;
36
+ width: string;
37
+ height: string;
37
38
  }>;
38
39
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
39
40
  layoutPos: PropType<ILayoutPos>;
@@ -1,5 +1,18 @@
1
1
  import { defineComponent, computed, createVNode, h, resolveComponent } from "vue";
2
2
  import { useNamespace } from "@ibiz-template/vue3-util";
3
+ function calcGridSpanOffset(span, offset, layout) {
4
+ const multiplier = layout === "TABLE_24COL" ? 1 : 2;
5
+ const spanDefault = layout === "TABLE_24COL" ? 24 : 12;
6
+ const _span = !span || span === -1 ? spanDefault : span;
7
+ const _offset = !offset || offset === -1 ? 0 : offset;
8
+ const result = {
9
+ span: _span * multiplier
10
+ };
11
+ if (_offset !== 0) {
12
+ result.offset = _offset;
13
+ }
14
+ return result;
15
+ }
3
16
  const AppCol = /* @__PURE__ */ defineComponent({
4
17
  name: "AppCol",
5
18
  props: {
@@ -16,32 +29,21 @@ const AppCol = /* @__PURE__ */ defineComponent({
16
29
  if (gridLayoutPos.layout === "FLEX") {
17
30
  return {};
18
31
  }
19
- const colXS = gridLayoutPos.colXS || 0;
20
- const colXSOffset = gridLayoutPos.colXSOffset || 0;
21
- const colSM = gridLayoutPos.colSM || 0;
22
- const colSMOffset = gridLayoutPos.colSMOffset || 0;
23
- const colMD = gridLayoutPos.colMD || 0;
24
- const colMDOffset = gridLayoutPos.colMDOffset || 0;
25
- const colLG = gridLayoutPos.colLG || 0;
26
- const colLGOffset = gridLayoutPos.colLGOffset || 0;
27
- const multiplier = gridLayoutPos.layout === "TABLE_24COL" ? 1 : 2;
32
+ const {
33
+ colXS,
34
+ colXSOffset,
35
+ colSM,
36
+ colSMOffset,
37
+ colMD,
38
+ colMDOffset,
39
+ colLG,
40
+ colLGOffset
41
+ } = gridLayoutPos;
28
42
  return {
29
- xs: {
30
- span: colXS * multiplier,
31
- offset: colXSOffset * multiplier
32
- },
33
- sm: {
34
- span: colSM * multiplier,
35
- offset: colSMOffset * multiplier
36
- },
37
- md: {
38
- span: colMD * multiplier,
39
- offset: colMDOffset * multiplier
40
- },
41
- lg: {
42
- span: colLG * multiplier,
43
- offset: colLGOffset * multiplier
44
- }
43
+ xs: calcGridSpanOffset(colXS, colXSOffset, gridLayoutPos.layout),
44
+ sm: calcGridSpanOffset(colSM, colSMOffset, gridLayoutPos.layout),
45
+ md: calcGridSpanOffset(colMD, colMDOffset, gridLayoutPos.layout),
46
+ lg: calcGridSpanOffset(colLG, colLGOffset, gridLayoutPos.layout)
45
47
  };
46
48
  });
47
49
  const cssVars = computed(() => {
@@ -69,6 +71,8 @@ const AppCol = /* @__PURE__ */ defineComponent({
69
71
  "class": [this.ns.b(), this.ns.m("flex"), this.controller.extraClass],
70
72
  "style": {
71
73
  flexGrow: this.layoutPos.grow,
74
+ // 修复flex时flex-grow和flex-shrink时高度被内容撑开,没法压缩
75
+ minHeight: 0,
72
76
  ...this.cssVars
73
77
  }
74
78
  }, [defaultSlot]);
@@ -17,4 +17,3 @@ export declare const AppIcon: import("vue").DefineComponent<{
17
17
  type: PropType<"small" | "medium" | "large">;
18
18
  };
19
19
  }>>, {}>;
20
- export default AppIcon;
@@ -66,6 +66,5 @@ const AppIcon = /* @__PURE__ */ defineComponent({
66
66
  }
67
67
  });
68
68
  export {
69
- AppIcon,
70
- AppIcon as default
69
+ AppIcon
71
70
  };
@@ -1,4 +1,5 @@
1
1
  import { defineComponent, watch, createVNode, resolveComponent, h } from "vue";
2
+ import { isNotNil } from "ramda";
2
3
  const AppRouterView = /* @__PURE__ */ defineComponent({
3
4
  name: "AppRouterView",
4
5
  inheritAttrs: false,
@@ -18,7 +19,7 @@ const AppRouterView = /* @__PURE__ */ defineComponent({
18
19
  const cache = {};
19
20
  let isActive = true;
20
21
  watch(() => props.manualKey, (newVal, oldVal) => {
21
- if (newVal && newVal !== oldVal) {
22
+ if (isNotNil(newVal) && newVal !== oldVal) {
22
23
  isActive = true;
23
24
  }
24
25
  });
@@ -23,9 +23,10 @@ const AppRow = /* @__PURE__ */ defineComponent({
23
23
  align,
24
24
  valign
25
25
  } = this.layout;
26
+ const _dir = dir || "column";
26
27
  return createVNode("div", {
27
28
  "class": [this.ns.b(), this.ns.m("flex")],
28
- "style": `display:flex;flex-direction: ${dir};justify-content: ${align};align-items: ${valign};`
29
+ "style": `display:flex;flex-direction: ${_dir};justify-content: ${align};align-items: ${valign};`
29
30
  }, [defaultSlot]);
30
31
  }
31
32
  return createVNode(resolveComponent("el-row"), {
@@ -1,6 +1,5 @@
1
- import { defineComponent, createVNode, resolveComponent } from "vue";
1
+ import { defineComponent, createVNode } from "vue";
2
2
  import { useNamespace } from "@ibiz-template/vue3-util";
3
- import { kebabCase } from "lodash-es";
4
3
  const ControlBase = /* @__PURE__ */ defineComponent({
5
4
  props: {
6
5
  controller: {
@@ -17,24 +16,18 @@ const ControlBase = /* @__PURE__ */ defineComponent({
17
16
  } = props.controller.model;
18
17
  const typeClass = controlType.toLowerCase();
19
18
  const sysCssName = sysCss == null ? void 0 : sysCss.cssName;
20
- const modelClass = kebabCase(codeName);
21
19
  return {
22
20
  ns,
23
21
  typeClass,
24
22
  sysCssName,
25
- modelClass
23
+ codeName
26
24
  };
27
25
  },
28
26
  render() {
29
- return createVNode(resolveComponent("control-layout"), {
30
- "modelData": this.controller.model,
31
- "class": [this.ns.b(), this.ns.b(this.typeClass), this.ns.m(this.modelClass), this.sysCssName]
32
- }, {
33
- default: () => {
34
- var _a, _b;
35
- return [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)];
36
- }
37
- });
27
+ var _a, _b;
28
+ return createVNode("div", {
29
+ "class": [this.ns.b(), this.ns.b(this.typeClass), this.ns.m(this.codeName), this.sysCssName]
30
+ }, [(_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)]);
38
31
  }
39
32
  });
40
33
  export {
@@ -1,9 +1,10 @@
1
+ import { App } from 'vue';
1
2
  export * from './app-icon/app-icon';
2
3
  export * from './app-keep-alive/app-keep-alive';
3
- export * from './app-keep-alive/scheduler';
4
4
  export * from './app-router-view/app-router-view';
5
- export * from './app-user/app-user';
6
- export * from './tab-page-exp/tab-page-exp';
7
- export * from './quick-search/quick-search';
8
5
  export * from './app-col/app-col';
9
6
  export * from './app-row/app-row';
7
+ export declare const IBizCommonComponents: {
8
+ install: (v: App) => void;
9
+ };
10
+ export default IBizCommonComponents;
@@ -1,9 +1,27 @@
1
+ import { ActionToolbar } from "./action-toolbar/action-toolbar";
2
+ import { AppCol } from "./app-col/app-col";
3
+ export * from "./app-col/app-col";
4
+ import { AppIcon } from "./app-icon/app-icon";
1
5
  export * from "./app-icon/app-icon";
6
+ import { AppKeepAlive } from "./app-keep-alive/app-keep-alive";
2
7
  export * from "./app-keep-alive/app-keep-alive";
3
- export * from "./app-keep-alive/scheduler";
8
+ import { AppRouterView } from "./app-router-view/app-router-view";
4
9
  export * from "./app-router-view/app-router-view";
5
- export * from "./app-user/app-user";
6
- export * from "./tab-page-exp/tab-page-exp";
7
- export * from "./quick-search/quick-search";
8
- export * from "./app-col/app-col";
10
+ import { AppRow } from "./app-row/app-row";
9
11
  export * from "./app-row/app-row";
12
+ import { ControlBase } from "./control-base/control-base";
13
+ const IBizCommonComponents = {
14
+ install: (v) => {
15
+ v.component("ControlBase", ControlBase);
16
+ v.component("AppKeepAlive", AppKeepAlive);
17
+ v.component("AppIcon", AppIcon);
18
+ v.component("AppRow", AppRow);
19
+ v.component("AppCol", AppCol);
20
+ v.component("AppRouterView", AppRouterView);
21
+ v.component("ActionToolbar", ActionToolbar);
22
+ }
23
+ };
24
+ export {
25
+ IBizCommonComponents,
26
+ IBizCommonComponents as default
27
+ };
@@ -6,7 +6,7 @@ var __publicField = (obj, key, value) => {
6
6
  };
7
7
  class AppMenuProvider {
8
8
  constructor() {
9
- __publicField(this, "component", "AppMenu");
9
+ __publicField(this, "component", "AppMenuControl");
10
10
  }
11
11
  }
12
12
  export {
@@ -1,4 +1,4 @@
1
- import { ControlController } from '@ibiz-template/runtime';
1
+ import { ControlController, IAppMenuController, ControllerEvent, IAppMenuEvent, Application } from '@ibiz-template/runtime';
2
2
  import { IAppMenu, IAppMenuItem } from '@ibiz/model-core';
3
3
  import { AppMenuState } from './app-menu-state';
4
4
  /**
@@ -10,8 +10,9 @@ import { AppMenuState } from './app-menu-state';
10
10
  * @class AppMenuController
11
11
  * @extends {ControlController}
12
12
  */
13
- export declare class AppMenuController extends ControlController<IAppMenu> {
13
+ export declare class AppMenuController extends ControlController<IAppMenu> implements IAppMenuController {
14
14
  state: AppMenuState;
15
+ evt: ControllerEvent<IAppMenuEvent>;
15
16
  /**
16
17
  * 菜单项状态
17
18
  *
@@ -26,6 +27,7 @@ export declare class AppMenuController extends ControlController<IAppMenu> {
26
27
  permitted: boolean;
27
28
  };
28
29
  };
30
+ app: Application;
29
31
  protected doCreated(): Promise<void>;
30
32
  /**
31
33
  * 菜单项点击回调,触发对应的应用功能
@@ -35,7 +37,7 @@ export declare class AppMenuController extends ControlController<IAppMenu> {
35
37
  * @param {string} id
36
38
  * @return {*} {Promise<void>}
37
39
  */
38
- onClickMenuItem(id: string): Promise<void>;
40
+ onClickMenuItem(id: string, event: MouseEvent): Promise<void>;
39
41
  /**
40
42
  * 初始化菜单项状态
41
43
  *
@@ -20,10 +20,12 @@ class AppMenuController extends ControlController {
20
20
  * @type {{ [p: string]: { visible: boolean; permitted: boolean } }}
21
21
  */
22
22
  __publicField(this, "menuItemsState", {});
23
+ __publicField(this, "app");
23
24
  }
24
25
  async doCreated() {
25
26
  var _a;
26
27
  await super.doCreated();
28
+ this.app = await ibiz.hub.getApp(this.context.srfappid);
27
29
  (_a = this.model.appMenuItems) == null ? void 0 : _a.forEach((item) => {
28
30
  this.initMenuItemState(item);
29
31
  });
@@ -36,7 +38,7 @@ class AppMenuController extends ControlController {
36
38
  * @param {string} id
37
39
  * @return {*} {Promise<void>}
38
40
  */
39
- async onClickMenuItem(id) {
41
+ async onClickMenuItem(id, event) {
40
42
  const menuItem = findRecursiveChild(this.model, id, {
41
43
  compareField: "id",
42
44
  childrenFields: ["appMenuItems"]
@@ -44,7 +46,10 @@ class AppMenuController extends ControlController {
44
46
  if (!menuItem) {
45
47
  throw new RuntimeError(`找不到名为${id}的菜单项`);
46
48
  }
47
- console.log(menuItem);
49
+ this.evt.emit("onClick", {
50
+ eventArg: id,
51
+ event
52
+ });
48
53
  await ibiz.commands.execute(
49
54
  AppFuncCommand.TAG,
50
55
  menuItem.appFuncId,
@@ -62,7 +67,10 @@ class AppMenuController extends ControlController {
62
67
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
63
68
  initMenuItemState(menu) {
64
69
  var _a;
65
- const permitted = true;
70
+ let permitted = true;
71
+ if (menu.accessKey) {
72
+ permitted = this.app.authority.calcByResCode(menu.accessKey);
73
+ }
66
74
  let visible = permitted;
67
75
  if ((_a = menu.appMenuItems) == null ? void 0 : _a.length) {
68
76
  const childrenState = menu.appMenuItems.map((child) => {
@@ -2,6 +2,7 @@ import { Namespace } from '@ibiz-template/core';
2
2
  import { IAppMenu } from '@ibiz/model-core';
3
3
  import { PropType, Ref } from 'vue';
4
4
  import './app-menu.scss';
5
+ import { AppMenuController } from './app-menu.controller';
5
6
  export declare const AppMenu: import("vue").DefineComponent<{
6
7
  modelData: {
7
8
  type: PropType<IAppMenu>;
@@ -23,9 +24,9 @@ export declare const AppMenu: import("vue").DefineComponent<{
23
24
  };
24
25
  }, {
25
26
  menus: Ref<IDatum[]>;
26
- c: any;
27
+ c: AppMenuController;
27
28
  key: Ref<string>;
28
- onClick: (key: string) => Promise<void>;
29
+ onClick: (key: string, event: MouseEvent) => Promise<void>;
29
30
  ns: Namespace;
30
31
  defaultActive: Ref<string>;
31
32
  defaultOpens: Ref<string[]>;
@@ -50,7 +51,7 @@ export declare const AppMenu: import("vue").DefineComponent<{
50
51
  default: string;
51
52
  };
52
53
  }>>, {
54
+ mode: string;
53
55
  params: IParams;
54
56
  collapse: boolean;
55
- mode: string;
56
57
  }>;
@@ -72,7 +72,7 @@ function renderSubmenu(isFirst, subMenu, collapse, ns, c) {
72
72
  });
73
73
  }
74
74
  const AppMenu = /* @__PURE__ */ defineComponent({
75
- name: "AppMenu",
75
+ name: "AppMenuControl",
76
76
  props: {
77
77
  modelData: {
78
78
  type: Object,
@@ -98,17 +98,13 @@ const AppMenu = /* @__PURE__ */ defineComponent({
98
98
  proxy
99
99
  } = getCurrentInstance();
100
100
  const c = useControlController((...args) => new AppMenuController(...args));
101
+ const ns = useNamespace(`control-${c.model.controlType.toLowerCase()}`);
101
102
  const menus = ref(getMenus(c.model.appMenuItems));
102
103
  const defaultActive = ref("");
103
104
  const defaultOpens = ref([]);
104
- let menuClickDoing = false;
105
- const onClick = async (key2) => {
106
- menuClickDoing = true;
107
- await c.onClickMenuItem(key2);
108
- menuClickDoing = false;
105
+ const onClick = async (key2, event) => {
106
+ await c.onClickMenuItem(key2, event);
109
107
  };
110
- console.log(menuClickDoing);
111
- const ns = useNamespace("control-menu");
112
108
  const key = ref(createUUID());
113
109
  const updateMenu = () => {
114
110
  setTimeout(() => {
@@ -1,10 +1,14 @@
1
- import { ControlType } from "@ibiz-template/runtime";
2
- import { withInstall } from "../../util/install";
1
+ import { registerControlProvider, ControlType } from "@ibiz-template/runtime";
2
+ import { withInstall } from "@ibiz-template/vue3-util";
3
3
  import { AppMenu } from "./app-menu";
4
+ export * from "./app-menu";
4
5
  import { AppMenuProvider } from "./app-menu-provider";
6
+ export * from "./app-menu-provider";
7
+ export * from "./app-menu-state";
8
+ export * from "./app-menu.controller";
5
9
  const IBizAppMenu = withInstall(AppMenu, function(v) {
6
10
  v.component(AppMenu.name, AppMenu);
7
- ibiz.register.control.register(ControlType.APP_MENU, new AppMenuProvider());
11
+ registerControlProvider(ControlType.APP_MENU, () => new AppMenuProvider());
8
12
  });
9
13
  export {
10
14
  IBizAppMenu,
@@ -1,4 +1,4 @@
1
- import { ControlController, ControllerEvent, ControlVO, FormNotifyState, IFormDetailProvider, IFormEvent } from '@ibiz-template/runtime';
1
+ import { ControlController, ControllerEvent, ControlVO, FormNotifyState, IFormController, IFormDetailProvider, IFormEvent } from '@ibiz-template/runtime';
2
2
  import { IDEForm, IDEFormDetail } from '@ibiz/model-core';
3
3
  import { FormDetailController } from '../form-detail/form-detail/form-detail';
4
4
  import { FormGroupPanelController } from '../form-detail/form-group-panel/form-group-panel.controller';
@@ -14,7 +14,7 @@ import { FormState } from './form-state';
14
14
  * @extends {ControlController<T>}
15
15
  * @template T
16
16
  */
17
- export declare abstract class FormController<T extends IDEForm = IDEForm> extends ControlController<T> {
17
+ export declare abstract class FormController<T extends IDEForm = IDEForm> extends ControlController<T> implements IFormController {
18
18
  evt: ControllerEvent<IFormEvent>;
19
19
  state: FormState;
20
20
  /**
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { RuntimeError, debounceAndAsyncMerge } from "@ibiz-template/core";
8
- import { ControlController } from "@ibiz-template/runtime";
8
+ import { ControlController, getFormDetailProvider } from "@ibiz-template/runtime";
9
9
  import { isNil } from "lodash-es";
10
10
  import { FormState } from "./form-state";
11
11
  class FormController extends ControlController {
@@ -122,16 +122,12 @@ class FormController extends ControlController {
122
122
  * @protected
123
123
  */
124
124
  async initDetailControllers(details = this.model.deformPages, form = this, parent = void 0) {
125
- const { formDetail: register } = ibiz.register;
126
- if (!register) {
127
- throw new RuntimeError("formDetail注册器不存在");
128
- }
129
125
  await Promise.all(
130
126
  details.map(async (detail) => {
131
127
  var _a;
132
- const detailProvider = await register.get(detail);
128
+ const detailProvider = await getFormDetailProvider(detail);
133
129
  if (!detailProvider) {
134
- throw new RuntimeError("找不到对应的适配器");
130
+ return;
135
131
  }
136
132
  form.providers[detail.id] = detailProvider;
137
133
  const detailController = await detailProvider.createController(
@@ -1,9 +1,10 @@
1
+ import { withInstall } from "@ibiz-template/vue3-util";
2
+ import { registerFormDetailProvider } from "@ibiz-template/runtime";
1
3
  import { FormItemProvider } from "../form-detail/form-item/form-item-provider";
2
4
  import IBizSearchForm from "../search-form";
3
5
  import { default as default2 } from "../search-form";
4
6
  import { FormControl } from "./form-control";
5
7
  export * from "./form-control";
6
- import { withInstall } from "../../../util/install";
7
8
  import FormPage from "../form-detail/form-page/form-page";
8
9
  import { FormPageItem } from "../form-detail/form-page/form-page-item";
9
10
  import { FormPageProvider } from "../form-detail/form-page/form-page-provider";
@@ -17,9 +18,8 @@ const IBizForm = withInstall(FormControl, function(v) {
17
18
  v.component(FormPageItem.name, FormPageItem);
18
19
  v.component(FormItemContainer.name, FormItemContainer);
19
20
  v.component(FormItem.name, FormItem);
20
- const { formDetail } = ibiz.register;
21
- formDetail.register("FORMITEM", new FormItemProvider());
22
- formDetail.register("FORMPAGE", new FormPageProvider());
21
+ registerFormDetailProvider("FORMITEM", () => new FormItemProvider());
22
+ registerFormDetailProvider("FORMPAGE", () => new FormPageProvider());
23
23
  });
24
24
  export {
25
25
  IBizForm,
@@ -31,8 +31,8 @@ class FormDetailState {
31
31
  * @type {ILayoutController}
32
32
  */
33
33
  __publicField(this, "layoutController", {
34
- width: "auto",
35
- height: "auto",
34
+ width: "",
35
+ height: "",
36
36
  extraStyle: {},
37
37
  extraClass: "",
38
38
  contentStyle: {}
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  import { isOverlap } from "@ibiz-template/core";
8
- import { calcLayoutContentStyle, verifyFormGroupLogic } from "@ibiz-template/runtime";
8
+ import { calcLayoutHeightWidth, verifyFormGroupLogic } from "@ibiz-template/runtime";
9
9
  import { FormDetailState } from "./form-detail-state";
10
10
  class FormDetailController {
11
11
  /**
@@ -74,11 +74,10 @@ class FormDetailController {
74
74
  }
75
75
  async onInit() {
76
76
  this.state.showMoreMode = this.model.showMoreMode;
77
- const { width, height, sysCss, detailType } = this.model;
78
- if (width) {
77
+ const { layoutPos, sysCss, detailType } = this.model;
78
+ if (layoutPos) {
79
+ const { width, height } = calcLayoutHeightWidth(layoutPos);
79
80
  this.state.layoutController.width = `${width}`;
80
- }
81
- if (height) {
82
81
  this.state.layoutController.height = `${height}`;
83
82
  }
84
83
  this.state.layoutController.extraClass = `ibiz-form-col__${detailType.toLowerCase()} `;
@@ -92,11 +91,6 @@ class FormDetailController {
92
91
  return this.state.visible;
93
92
  }
94
93
  });
95
- if (this.model.layoutPos) {
96
- this.state.layoutController.contentStyle = calcLayoutContentStyle(
97
- this.model.layoutPos
98
- );
99
- }
100
94
  }
101
95
  /**
102
96
  * 创建表单状态对象
@@ -22,7 +22,7 @@ export declare class FormGroupPanelController<T extends IDEFormGroupPanel = IDEF
22
22
  * @author lxm
23
23
  * @date 2022-09-07 21:09:43
24
24
  */
25
- initActionStates(): void;
25
+ initActionStates(): Promise<void>;
26
26
  /**
27
27
  * 触发操作列点击事件
28
28
  *
@@ -1,4 +1,4 @@
1
- import { ButtonContainerState, ButtonState } from "@ibiz-template/runtime";
1
+ import { ButtonContainerState, UIActionButtonState } from "@ibiz-template/runtime";
2
2
  import { FormDetailController } from "../form-detail/form-detail";
3
3
  import { FormGroupPanelState } from "./form-group-panel-state";
4
4
  class FormGroupPanelController extends FormDetailController {
@@ -8,7 +8,7 @@ class FormGroupPanelController extends FormDetailController {
8
8
  }
9
9
  async onInit() {
10
10
  super.onInit();
11
- this.initActionStates();
11
+ await this.initActionStates();
12
12
  }
13
13
  async formStateNotify(state) {
14
14
  super.calcDynamicLogic([], state);
@@ -22,7 +22,7 @@ class FormGroupPanelController extends FormDetailController {
22
22
  * @author lxm
23
23
  * @date 2022-09-07 21:09:43
24
24
  */
25
- initActionStates() {
25
+ async initActionStates() {
26
26
  var _a;
27
27
  const { uiactionGroup } = this.model;
28
28
  if (!((_a = uiactionGroup == null ? void 0 : uiactionGroup.uiactionGroupDetails) == null ? void 0 : _a.length)) {
@@ -32,11 +32,15 @@ class FormGroupPanelController extends FormDetailController {
32
32
  uiactionGroup.uiactionGroupDetails.forEach((detail) => {
33
33
  const actionid = detail.uiactionId;
34
34
  if (actionid) {
35
- const buttonState = new ButtonState(detail.id, actionid);
35
+ const buttonState = new UIActionButtonState(
36
+ detail.id,
37
+ this.form.context.srfappid,
38
+ actionid
39
+ );
36
40
  containerState.addState(detail.id, buttonState);
37
41
  }
38
42
  });
39
- containerState.update();
43
+ await containerState.update();
40
44
  this.state.actionGroupState = containerState;
41
45
  }
42
46
  /**