@ibiz-template/vue3-util 0.6.0 → 0.6.1-alpha.2

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 (367) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/index.system.min.js +1 -1
  3. package/es/panel-component/nav-pos/nav-pos.controller.d.ts.map +1 -1
  4. package/es/panel-component/nav-pos/nav-pos.controller.mjs +12 -3
  5. package/es/util/overlay-container/overlay-container.mjs +1 -1
  6. package/es/util/router-callback/router-callback.d.ts +1 -1
  7. package/es/util/router-callback/router-callback.d.ts.map +1 -1
  8. package/es/util/router-callback/router-callback.mjs +6 -2
  9. package/lib/_virtual/_commonjsHelpers.cjs +46 -0
  10. package/lib/common/badge/badge.cjs +34 -0
  11. package/lib/common/badge/badge.css +1 -0
  12. package/lib/common/code-list/code-list.cjs +105 -0
  13. package/lib/common/code-list/code-list.css +1 -0
  14. package/lib/common/control-base/control-base.cjs +102 -0
  15. package/lib/common/control-base/control-base.css +1 -0
  16. package/lib/common/control-loading-placeholder/control-loading-placeholder.cjs +32 -0
  17. package/lib/common/control-shell/control-shell.cjs +58 -0
  18. package/lib/common/control-shell/control-shell.css +1 -0
  19. package/lib/common/icon/icon.cjs +103 -0
  20. package/lib/common/index.cjs +21 -0
  21. package/lib/common/router-view/router-view.cjs +77 -0
  22. package/lib/common/view-shell/view-shell.cjs +137 -0
  23. package/lib/common/view-shell/view-shell.css +1 -0
  24. package/lib/control/index.cjs +10 -0
  25. package/lib/control/panel/index.cjs +9 -0
  26. package/lib/control/panel/panel/index.cjs +18 -0
  27. package/lib/control/panel/panel/panel.cjs +142 -0
  28. package/lib/control/panel/panel/panel.css +1 -0
  29. package/lib/control/panel/panel/panel.provider.cjs +10 -0
  30. package/lib/control/panel/view-layout-panel/index.cjs +24 -0
  31. package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +144 -0
  32. package/lib/control/panel/view-layout-panel/view-layout-panel.css +1 -0
  33. package/lib/control/panel/view-layout-panel/view-layout-panel.provider.cjs +10 -0
  34. package/lib/hooks/app/app.hooks.cjs +26 -0
  35. package/lib/hooks/index.cjs +7 -0
  36. package/lib/interface/index.cjs +5 -0
  37. package/lib/interface/util/index.cjs +5 -0
  38. package/lib/interface/util/route/route.cjs +3 -0
  39. package/lib/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.cjs +540 -0
  40. package/lib/panel-component/grid-container/grid-container.cjs +108 -0
  41. package/lib/panel-component/grid-container/grid-container.controller.cjs +14 -0
  42. package/lib/panel-component/grid-container/grid-container.css +1 -0
  43. package/lib/panel-component/grid-container/grid-container.provider.cjs +17 -0
  44. package/lib/panel-component/grid-container/grid-container.state.cjs +9 -0
  45. package/lib/panel-component/grid-container/index.cjs +25 -0
  46. package/lib/panel-component/index.cjs +73 -0
  47. package/lib/panel-component/multi-data-container/index.cjs +28 -0
  48. package/lib/panel-component/multi-data-container/multi-data-container-item.controller.cjs +119 -0
  49. package/lib/panel-component/multi-data-container/multi-data-container-itm.state.cjs +19 -0
  50. package/lib/panel-component/multi-data-container/multi-data-container.cjs +89 -0
  51. package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +262 -0
  52. package/lib/panel-component/multi-data-container/multi-data-container.css +1 -0
  53. package/lib/panel-component/multi-data-container/multi-data-container.provider.cjs +17 -0
  54. package/lib/panel-component/multi-data-container/multi-data-container.state.cjs +19 -0
  55. package/lib/panel-component/nav-pos/index.cjs +22 -0
  56. package/lib/panel-component/nav-pos/nav-pos.cjs +107 -0
  57. package/lib/panel-component/nav-pos/nav-pos.controller.cjs +312 -0
  58. package/lib/panel-component/nav-pos/nav-pos.css +1 -0
  59. package/lib/panel-component/nav-pos/nav-pos.provider.cjs +26 -0
  60. package/lib/panel-component/nav-pos/nav-pos.state.cjs +49 -0
  61. package/lib/panel-component/panel-container/index.cjs +29 -0
  62. package/lib/panel-component/panel-container/panel-container.cjs +72 -0
  63. package/lib/panel-component/panel-container/panel-container.controller.cjs +14 -0
  64. package/lib/panel-component/panel-container/panel-container.css +1 -0
  65. package/lib/panel-component/panel-container/panel-container.provider.cjs +17 -0
  66. package/lib/panel-component/panel-container/panel-container.state.cjs +9 -0
  67. package/lib/panel-component/panel-container-group/index.cjs +28 -0
  68. package/lib/panel-component/panel-container-group/panel-container-group.cjs +110 -0
  69. package/lib/panel-component/panel-container-group/panel-container-group.controller.cjs +37 -0
  70. package/lib/panel-component/panel-container-group/panel-container-group.css +1 -0
  71. package/lib/panel-component/panel-container-group/panel-container-group.provider.cjs +17 -0
  72. package/lib/panel-component/panel-container-group/panel-container-group.state.cjs +9 -0
  73. package/lib/panel-component/panel-container-image/index.cjs +28 -0
  74. package/lib/panel-component/panel-container-image/panel-container-image.cjs +95 -0
  75. package/lib/panel-component/panel-container-image/panel-container-image.controller.cjs +14 -0
  76. package/lib/panel-component/panel-container-image/panel-container-image.css +1 -0
  77. package/lib/panel-component/panel-container-image/panel-container-image.provider.cjs +17 -0
  78. package/lib/panel-component/panel-container-image/panel-container-image.state.cjs +9 -0
  79. package/lib/panel-component/panel-ctrl-pos/index.cjs +20 -0
  80. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +47 -0
  81. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.cjs +25 -0
  82. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +1 -0
  83. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.cjs +17 -0
  84. package/lib/panel-component/panel-field/index.cjs +20 -0
  85. package/lib/panel-component/panel-field/panel-field.cjs +78 -0
  86. package/lib/panel-component/panel-field/panel-field.controller.cjs +132 -0
  87. package/lib/panel-component/panel-field/panel-field.css +1 -0
  88. package/lib/panel-component/panel-field/panel-field.provider.cjs +17 -0
  89. package/lib/panel-component/panel-field/panel-field.state.cjs +9 -0
  90. package/lib/panel-component/panel-item-render/index.cjs +24 -0
  91. package/lib/panel-component/panel-item-render/panel-item-render.cjs +49 -0
  92. package/lib/panel-component/panel-item-render/panel-item-render.controller.cjs +31 -0
  93. package/lib/panel-component/panel-item-render/panel-item-render.provider.cjs +17 -0
  94. package/lib/panel-component/panel-rawitem/index.cjs +32 -0
  95. package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +61 -0
  96. package/lib/panel-component/panel-rawitem/panel-rawitem.controller.cjs +30 -0
  97. package/lib/panel-component/panel-rawitem/panel-rawitem.css +1 -0
  98. package/lib/panel-component/panel-rawitem/panel-rawitem.provider.cjs +17 -0
  99. package/lib/panel-component/panel-tab-page/index.cjs +18 -0
  100. package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +65 -0
  101. package/lib/panel-component/panel-tab-page/panel-tab-page.provider.cjs +17 -0
  102. package/lib/panel-component/scroll-container/index.cjs +55 -0
  103. package/lib/panel-component/scroll-container/scroll-container/index.cjs +9 -0
  104. package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +114 -0
  105. package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.cjs +14 -0
  106. package/lib/panel-component/scroll-container/scroll-container/scroll-container.css +1 -0
  107. package/lib/panel-component/scroll-container/scroll-container/scroll-container.provider.cjs +17 -0
  108. package/lib/panel-component/scroll-container/scroll-container-item/index.cjs +9 -0
  109. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +66 -0
  110. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.cjs +9 -0
  111. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +1 -0
  112. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.cjs +17 -0
  113. package/lib/panel-component/single-data-container/index.cjs +28 -0
  114. package/lib/panel-component/single-data-container/single-data-container.cjs +79 -0
  115. package/lib/panel-component/single-data-container/single-data-container.controller.cjs +287 -0
  116. package/lib/panel-component/single-data-container/single-data-container.css +1 -0
  117. package/lib/panel-component/single-data-container/single-data-container.provider.cjs +17 -0
  118. package/lib/panel-component/single-data-container/single-data-container.state.cjs +19 -0
  119. package/lib/plugin/index.cjs +7 -0
  120. package/{src/plugin/plugin-factory/plugin-factory.ts → lib/plugin/plugin-factory/plugin-factory.cjs} +137 -182
  121. package/lib/props/common.cjs +17 -0
  122. package/lib/props/editor/array.cjs +14 -0
  123. package/lib/props/editor/autocomplete.cjs +14 -0
  124. package/lib/props/editor/cascader.cjs +14 -0
  125. package/lib/props/editor/check-box-list.cjs +14 -0
  126. package/lib/props/editor/check-box.cjs +14 -0
  127. package/lib/props/editor/code.cjs +23 -0
  128. package/lib/props/editor/color-picker.cjs +14 -0
  129. package/lib/props/editor/common.cjs +62 -0
  130. package/lib/props/editor/data-picker.cjs +14 -0
  131. package/lib/props/editor/date-picker.cjs +14 -0
  132. package/lib/props/editor/date-range.cjs +14 -0
  133. package/lib/props/editor/dropdown-list.cjs +14 -0
  134. package/lib/props/editor/html.cjs +14 -0
  135. package/lib/props/editor/index.cjs +86 -0
  136. package/lib/props/editor/list-box.cjs +14 -0
  137. package/lib/props/editor/markdown.cjs +22 -0
  138. package/lib/props/editor/number-range.cjs +14 -0
  139. package/lib/props/editor/radio-button-list.cjs +14 -0
  140. package/lib/props/editor/rate.cjs +14 -0
  141. package/lib/props/editor/raw.cjs +14 -0
  142. package/lib/props/editor/slider.cjs +14 -0
  143. package/lib/props/editor/span.cjs +14 -0
  144. package/lib/props/editor/stepper.cjs +14 -0
  145. package/lib/props/editor/switch.cjs +14 -0
  146. package/lib/props/editor/text-box.cjs +30 -0
  147. package/lib/props/editor/upload.cjs +14 -0
  148. package/lib/props/index.cjs +89 -0
  149. package/lib/use/click-outside/click-outside.cjs +50 -0
  150. package/lib/use/control/index.cjs +7 -0
  151. package/lib/use/control/use-control-controller/use-control-controller.cjs +78 -0
  152. package/lib/use/event/event.cjs +39 -0
  153. package/lib/use/focus-blur/focus-blur.cjs +48 -0
  154. package/lib/use/index.cjs +34 -0
  155. package/lib/use/namespace/namespace.cjs +10 -0
  156. package/lib/use/route/route.cjs +31 -0
  157. package/lib/use/util/index.cjs +14 -0
  158. package/lib/use/view/index.cjs +7 -0
  159. package/lib/use/view/use-view-controller/use-view-controller.cjs +86 -0
  160. package/lib/use/vue/vue.cjs +64 -0
  161. package/lib/util/control/prepare-control.cjs +24 -0
  162. package/lib/util/index.cjs +43 -0
  163. package/lib/util/install.cjs +11 -0
  164. package/lib/util/overlay-container/overlay-container.cjs +116 -0
  165. package/lib/util/overlay-popover-container/overlay-popover-container.cjs +12 -0
  166. package/lib/util/overlay-view-util/overlay-view-util.cjs +70 -0
  167. package/lib/util/render/render.cjs +22 -0
  168. package/lib/util/route/route-listener.cjs +75 -0
  169. package/lib/util/route/route.cjs +302 -0
  170. package/lib/util/router-callback/router-callback-item.cjs +74 -0
  171. package/{src/util/router-callback/router-callback.ts → lib/util/router-callback/router-callback.cjs} +33 -37
  172. package/lib/util/store/app-store/app-store.cjs +12 -0
  173. package/lib/util/store/index.cjs +12 -0
  174. package/lib/util/store/ui-store/ui-store.cjs +17 -0
  175. package/lib/util/store/ui-store/z-index.cjs +20 -0
  176. package/lib/view/app-redirect-view/app-redirect-view.cjs +29 -0
  177. package/lib/view/common/index.cjs +15 -0
  178. package/lib/view/common/view.cjs +129 -0
  179. package/lib/view/common/view.css +1 -0
  180. package/lib/view/common/view.provider.cjs +10 -0
  181. package/lib/view/de-redirect-view/de-redirect-view.cjs +64 -0
  182. package/lib/view/de-redirect-view/de-redirect-view.provider.cjs +10 -0
  183. package/lib/view/de-redirect-view/index.cjs +22 -0
  184. package/lib/view/index.cjs +15 -0
  185. package/lib/view/portal-view/index.cjs +23 -0
  186. package/lib/view/portal-view/portal-view.cjs +95 -0
  187. package/lib/view/portal-view/portal-view.provider.cjs +10 -0
  188. package/lib/view/todo-redirect/todo-redirect.cjs +54 -0
  189. package/package.json +14 -10
  190. package/src/common/badge/badge.scss +0 -29
  191. package/src/common/badge/badge.tsx +0 -26
  192. package/src/common/code-list/code-list.scss +0 -15
  193. package/src/common/code-list/code-list.tsx +0 -127
  194. package/src/common/control-base/control-base.scss +0 -4
  195. package/src/common/control-base/control-base.tsx +0 -130
  196. package/src/common/control-loading-placeholder/control-loading-placeholder.tsx +0 -22
  197. package/src/common/control-shell/control-shell.scss +0 -5
  198. package/src/common/control-shell/control-shell.tsx +0 -70
  199. package/src/common/icon/icon.tsx +0 -82
  200. package/src/common/index.ts +0 -8
  201. package/src/common/router-view/router-view.tsx +0 -74
  202. package/src/common/view-shell/view-shell.scss +0 -5
  203. package/src/common/view-shell/view-shell.tsx +0 -163
  204. package/src/control/index.ts +0 -1
  205. package/src/control/panel/index.ts +0 -2
  206. package/src/control/panel/panel/index.ts +0 -12
  207. package/src/control/panel/panel/panel.provider.ts +0 -14
  208. package/src/control/panel/panel/panel.scss +0 -9
  209. package/src/control/panel/panel/panel.tsx +0 -166
  210. package/src/control/panel/view-layout-panel/index.ts +0 -18
  211. package/src/control/panel/view-layout-panel/view-layout-panel.provider.ts +0 -14
  212. package/src/control/panel/view-layout-panel/view-layout-panel.scss +0 -9
  213. package/src/control/panel/view-layout-panel/view-layout-panel.tsx +0 -178
  214. package/src/hooks/app/app.hooks.ts +0 -31
  215. package/src/hooks/index.ts +0 -1
  216. package/src/index.ts +0 -18
  217. package/src/interface/index.ts +0 -1
  218. package/src/interface/util/index.ts +0 -1
  219. package/src/interface/util/route/route.ts +0 -116
  220. package/src/panel-component/grid-container/grid-container.controller.ts +0 -18
  221. package/src/panel-component/grid-container/grid-container.provider.ts +0 -30
  222. package/src/panel-component/grid-container/grid-container.scss +0 -17
  223. package/src/panel-component/grid-container/grid-container.state.ts +0 -12
  224. package/src/panel-component/grid-container/grid-container.tsx +0 -119
  225. package/src/panel-component/grid-container/index.ts +0 -19
  226. package/src/panel-component/index.ts +0 -13
  227. package/src/panel-component/multi-data-container/index.ts +0 -22
  228. package/src/panel-component/multi-data-container/multi-data-container-item.controller.ts +0 -166
  229. package/src/panel-component/multi-data-container/multi-data-container-itm.state.ts +0 -20
  230. package/src/panel-component/multi-data-container/multi-data-container.controller.ts +0 -308
  231. package/src/panel-component/multi-data-container/multi-data-container.provider.ts +0 -30
  232. package/src/panel-component/multi-data-container/multi-data-container.scss +0 -10
  233. package/src/panel-component/multi-data-container/multi-data-container.state.ts +0 -20
  234. package/src/panel-component/multi-data-container/multi-data-container.tsx +0 -109
  235. package/src/panel-component/nav-pos/index.ts +0 -16
  236. package/src/panel-component/nav-pos/nav-pos.controller.ts +0 -393
  237. package/src/panel-component/nav-pos/nav-pos.provider.ts +0 -38
  238. package/src/panel-component/nav-pos/nav-pos.scss +0 -4
  239. package/src/panel-component/nav-pos/nav-pos.state.ts +0 -52
  240. package/src/panel-component/nav-pos/nav-pos.tsx +0 -121
  241. package/src/panel-component/panel-container/index.ts +0 -27
  242. package/src/panel-component/panel-container/panel-container.controller.ts +0 -18
  243. package/src/panel-component/panel-container/panel-container.provider.ts +0 -30
  244. package/src/panel-component/panel-container/panel-container.scss +0 -15
  245. package/src/panel-component/panel-container/panel-container.state.ts +0 -12
  246. package/src/panel-component/panel-container/panel-container.tsx +0 -72
  247. package/src/panel-component/panel-container-group/index.ts +0 -22
  248. package/src/panel-component/panel-container-group/panel-container-group.controller.ts +0 -43
  249. package/src/panel-component/panel-container-group/panel-container-group.provider.ts +0 -30
  250. package/src/panel-component/panel-container-group/panel-container-group.scss +0 -91
  251. package/src/panel-component/panel-container-group/panel-container-group.state.ts +0 -12
  252. package/src/panel-component/panel-container-group/panel-container-group.tsx +0 -112
  253. package/src/panel-component/panel-container-image/index.ts +0 -22
  254. package/src/panel-component/panel-container-image/panel-container-image.controller.ts +0 -18
  255. package/src/panel-component/panel-container-image/panel-container-image.provider.ts +0 -30
  256. package/src/panel-component/panel-container-image/panel-container-image.scss +0 -18
  257. package/src/panel-component/panel-container-image/panel-container-image.state.ts +0 -12
  258. package/src/panel-component/panel-container-image/panel-container-image.tsx +0 -95
  259. package/src/panel-component/panel-ctrl-pos/index.ts +0 -14
  260. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.ts +0 -53
  261. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.ts +0 -30
  262. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +0 -8
  263. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +0 -53
  264. package/src/panel-component/panel-field/index.ts +0 -14
  265. package/src/panel-component/panel-field/panel-field.controller.ts +0 -174
  266. package/src/panel-component/panel-field/panel-field.provider.ts +0 -28
  267. package/src/panel-component/panel-field/panel-field.scss +0 -36
  268. package/src/panel-component/panel-field/panel-field.state.ts +0 -12
  269. package/src/panel-component/panel-field/panel-field.tsx +0 -81
  270. package/src/panel-component/panel-item-render/index.ts +0 -18
  271. package/src/panel-component/panel-item-render/panel-item-render.controller.ts +0 -52
  272. package/src/panel-component/panel-item-render/panel-item-render.provider.ts +0 -30
  273. package/src/panel-component/panel-item-render/panel-item-render.tsx +0 -50
  274. package/src/panel-component/panel-rawitem/index.ts +0 -26
  275. package/src/panel-component/panel-rawitem/panel-rawitem.controller.ts +0 -34
  276. package/src/panel-component/panel-rawitem/panel-rawitem.provider.ts +0 -28
  277. package/src/panel-component/panel-rawitem/panel-rawitem.scss +0 -8
  278. package/src/panel-component/panel-rawitem/panel-rawitem.tsx +0 -61
  279. package/src/panel-component/panel-tab-page/index.ts +0 -12
  280. package/src/panel-component/panel-tab-page/panel-tab-page.provider.ts +0 -27
  281. package/src/panel-component/panel-tab-page/panel-tab-page.tsx +0 -55
  282. package/src/panel-component/scroll-container/index.ts +0 -44
  283. package/src/panel-component/scroll-container/scroll-container/index.ts +0 -2
  284. package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +0 -32
  285. package/src/panel-component/scroll-container/scroll-container/scroll-container.provider.ts +0 -30
  286. package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +0 -34
  287. package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +0 -110
  288. package/src/panel-component/scroll-container/scroll-container-item/index.ts +0 -2
  289. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +0 -25
  290. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.ts +0 -30
  291. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +0 -9
  292. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +0 -60
  293. package/src/panel-component/single-data-container/index.ts +0 -22
  294. package/src/panel-component/single-data-container/single-data-container.controller.ts +0 -345
  295. package/src/panel-component/single-data-container/single-data-container.provider.ts +0 -30
  296. package/src/panel-component/single-data-container/single-data-container.scss +0 -10
  297. package/src/panel-component/single-data-container/single-data-container.state.ts +0 -20
  298. package/src/panel-component/single-data-container/single-data-container.tsx +0 -95
  299. package/src/plugin/index.ts +0 -1
  300. package/src/props/common.ts +0 -30
  301. package/src/props/editor/array.ts +0 -27
  302. package/src/props/editor/autocomplete.ts +0 -27
  303. package/src/props/editor/cascader.ts +0 -27
  304. package/src/props/editor/check-box-list.ts +0 -27
  305. package/src/props/editor/check-box.ts +0 -27
  306. package/src/props/editor/code.ts +0 -36
  307. package/src/props/editor/color-picker.ts +0 -27
  308. package/src/props/editor/common.ts +0 -94
  309. package/src/props/editor/data-picker.ts +0 -27
  310. package/src/props/editor/date-picker.ts +0 -27
  311. package/src/props/editor/date-range.ts +0 -23
  312. package/src/props/editor/dropdown-list.ts +0 -27
  313. package/src/props/editor/html.ts +0 -27
  314. package/src/props/editor/index.ts +0 -25
  315. package/src/props/editor/list-box.ts +0 -27
  316. package/src/props/editor/markdown.ts +0 -35
  317. package/src/props/editor/number-range.ts +0 -23
  318. package/src/props/editor/radio-button-list.ts +0 -27
  319. package/src/props/editor/rate.ts +0 -23
  320. package/src/props/editor/raw.ts +0 -23
  321. package/src/props/editor/slider.ts +0 -23
  322. package/src/props/editor/span.ts +0 -27
  323. package/src/props/editor/stepper.ts +0 -23
  324. package/src/props/editor/switch.ts +0 -23
  325. package/src/props/editor/text-box.ts +0 -79
  326. package/src/props/editor/upload.ts +0 -27
  327. package/src/props/index.ts +0 -2
  328. package/src/types/index.d.ts +0 -8
  329. package/src/use/click-outside/click-outside.ts +0 -72
  330. package/src/use/control/index.ts +0 -1
  331. package/src/use/control/use-control-controller/use-control-controller.ts +0 -153
  332. package/src/use/event/event.ts +0 -57
  333. package/src/use/focus-blur/focus-blur.ts +0 -83
  334. package/src/use/index.ts +0 -9
  335. package/src/use/namespace/namespace.ts +0 -14
  336. package/src/use/route/route.ts +0 -47
  337. package/src/use/util/index.ts +0 -26
  338. package/src/use/view/index.ts +0 -1
  339. package/src/use/view/use-view-controller/use-view-controller.ts +0 -153
  340. package/src/use/vue/vue.ts +0 -142
  341. package/src/util/control/prepare-control.ts +0 -33
  342. package/src/util/index.ts +0 -10
  343. package/src/util/install.ts +0 -14
  344. package/src/util/overlay-container/overlay-container.ts +0 -155
  345. package/src/util/overlay-popover-container/overlay-popover-container.ts +0 -30
  346. package/src/util/overlay-view-util/overlay-view-util.ts +0 -89
  347. package/src/util/render/render.ts +0 -28
  348. package/src/util/route/route-listener.ts +0 -91
  349. package/src/util/route/route.ts +0 -520
  350. package/src/util/router-callback/router-callback-item.ts +0 -98
  351. package/src/util/store/app-store/app-store.ts +0 -10
  352. package/src/util/store/index.ts +0 -6
  353. package/src/util/store/ui-store/ui-store.ts +0 -27
  354. package/src/util/store/ui-store/z-index.ts +0 -53
  355. package/src/view/app-redirect-view/app-redirect-view.tsx +0 -26
  356. package/src/view/common/index.ts +0 -10
  357. package/src/view/common/view.provider.ts +0 -14
  358. package/src/view/common/view.scss +0 -38
  359. package/src/view/common/view.tsx +0 -152
  360. package/src/view/de-redirect-view/de-redirect-view.provider.ts +0 -14
  361. package/src/view/de-redirect-view/de-redirect-view.tsx +0 -62
  362. package/src/view/de-redirect-view/index.ts +0 -17
  363. package/src/view/index.ts +0 -5
  364. package/src/view/portal-view/index.ts +0 -18
  365. package/src/view/portal-view/portal-view.provider.ts +0 -14
  366. package/src/view/portal-view/portal-view.tsx +0 -79
  367. package/src/view/todo-redirect/todo-redirect.tsx +0 -51
@@ -1,2 +0,0 @@
1
- export * from './view-layout-panel';
2
- export * from './panel';
@@ -1,12 +0,0 @@
1
- import { registerControlProvider, ControlType } from '@ibiz-template/runtime';
2
- import { App } from 'vue';
3
- import { PanelControl } from './panel';
4
- import { PanelProvider } from './panel.provider';
5
- import { withInstall } from '../../../util';
6
-
7
- export const IBizPanelControl = withInstall(PanelControl, function (v: App) {
8
- v.component(PanelControl.name, PanelControl);
9
- registerControlProvider(ControlType.PANEL, () => new PanelProvider());
10
- });
11
-
12
- export default IBizPanelControl;
@@ -1,14 +0,0 @@
1
- import { IControlProvider } from '@ibiz-template/runtime';
2
-
3
- /**
4
- * 面板部件适配器
5
- *
6
- * @author lxm
7
- * @date 2022-10-25 18:10:57
8
- * @export
9
- * @class ViewLayoutPanelProvider
10
- * @implements {IControlProvider}
11
- */
12
- export class PanelProvider implements IControlProvider {
13
- component: string = 'IBizPanelControl';
14
- }
@@ -1,9 +0,0 @@
1
- @include b(control-panel) {
2
- width: 100%;
3
- height: 100%;
4
- }
5
-
6
- @include b(control-panel-content) {
7
- width: 100%;
8
- height: 100%;
9
- }
@@ -1,166 +0,0 @@
1
- import {
2
- defineComponent,
3
- PropType,
4
- resolveComponent,
5
- h,
6
- VNode,
7
- reactive,
8
- ComponentPublicInstance,
9
- watch,
10
- } from 'vue';
11
- import {
12
- IPanel,
13
- IPanelContainer,
14
- IPanelField,
15
- IPanelItem,
16
- IPanelTabPanel,
17
- } from '@ibiz/model-core';
18
- import './panel.scss';
19
- import {
20
- IControlProvider,
21
- IController,
22
- PanelController,
23
- } from '@ibiz-template/runtime';
24
- import { useControlController, useNamespace } from '../../../use';
25
-
26
- /**
27
- * 绘制面板成员
28
- *
29
- * @author lxm
30
- * @date 2023-02-07 05:58:43
31
- * @param {IPanelItem} panelItem
32
- * @param {PanelController} c
33
- * @returns {*} {(VNode | undefined)}
34
- */
35
- function renderPanelItem(
36
- panelItem: IPanelItem,
37
- c: PanelController,
38
- ins: ComponentPublicInstance,
39
- ): VNode | undefined {
40
- if ((panelItem as IPanelField).hidden) {
41
- return;
42
- }
43
- const { providers, panelItems } = c;
44
- const provider = providers[panelItem.id!];
45
- if (!provider) {
46
- return (
47
- <div>
48
- 暂未支持的面板项: {panelItem.id} - {panelItem.itemType}
49
- </div>
50
- );
51
- }
52
- const component = resolveComponent(provider.component);
53
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
54
- let children: any;
55
- // 占位类型成员填充外部对应的插槽。
56
- if (panelItem.itemType === 'CTRLPOS' && ins.$slots[panelItem.id!]) {
57
- children = (): VNode[] => {
58
- return ins.$slots[panelItem.id!]!();
59
- };
60
- } else if (
61
- panelItem.itemType === 'TABPANEL' &&
62
- (panelItem as IPanelTabPanel).panelTabPages?.length
63
- ) {
64
- children = (): (VNode | undefined)[] => {
65
- return (panelItem as IPanelTabPanel).panelTabPages!.map(child => {
66
- return renderPanelItem(child, c, ins);
67
- });
68
- };
69
- } else if ((panelItem as IPanelContainer).panelItems?.length) {
70
- children = (): (VNode | undefined)[] => {
71
- return (panelItem as IPanelContainer).panelItems!.map(child => {
72
- return renderPanelItem(child, c, ins);
73
- });
74
- };
75
- }
76
-
77
- // 直接样式
78
- let tempStyle = '';
79
- if (panelItem.cssStyle) {
80
- tempStyle = panelItem.cssStyle;
81
- }
82
- return h(
83
- component,
84
- {
85
- modelData: panelItem,
86
- controller: panelItems[panelItem.id!],
87
- key: panelItem.id,
88
- style: tempStyle,
89
- },
90
- children,
91
- );
92
- }
93
-
94
- /**
95
- * 视图布局面板组件
96
- */
97
- export const PanelControl = defineComponent({
98
- name: 'IBizPanelControl',
99
- props: {
100
- modelData: {
101
- type: Object as PropType<IPanel>,
102
- required: true,
103
- },
104
- context: { type: Object as PropType<IContext>, required: true },
105
- params: { type: Object as PropType<IParams>, default: () => ({}) },
106
- provider: { type: Object as PropType<IControlProvider> },
107
- container: { type: Object as PropType<IController> },
108
- data: Object as PropType<IData>,
109
- loadDefault: { type: Boolean, default: true },
110
- },
111
- setup(props) {
112
- const c = useControlController<PanelController>(
113
- (...args) => new PanelController(...args, props.container),
114
- );
115
- const ns = useNamespace(`control-${c.model.controlType!.toLowerCase()}`);
116
-
117
- watch(
118
- () => props.data,
119
- newVal => {
120
- if (newVal) {
121
- c.setInputData(newVal);
122
- c.load();
123
- }
124
- },
125
- {
126
- immediate: true,
127
- },
128
- );
129
-
130
- c.evt.on('onCreated', () => {
131
- // 面板成员state响应式
132
- const keys = Object.keys(c.panelItems);
133
- keys.forEach(key => {
134
- const panelItem = c.panelItems[key];
135
- panelItem.state = reactive(panelItem.state);
136
- });
137
- });
138
-
139
- return { c, ns };
140
- },
141
- render() {
142
- const { state, model } = this.c;
143
- return (
144
- <iBizControlBase controller={this.c}>
145
- <iBizRow class={this.ns.b('content')} layout={{ layout: 'FLEX' }}>
146
- {state.isCreated &&
147
- (this.$slots.default
148
- ? this.$slots.default({
149
- panelItems: this.c.panelItems,
150
- })
151
- : model.rootPanelItems?.map(panelItem => {
152
- const subC = this.c.panelItems[panelItem.id!];
153
- // 视图布局面板的子默认布局改成flex
154
- // eslint-disable-next-line no-param-reassign
155
- panelItem.layoutPos!.layout = 'FLEX';
156
- return (
157
- <iBizCol layoutPos={panelItem.layoutPos} state={subC.state}>
158
- {renderPanelItem(panelItem, this.c, this)}
159
- </iBizCol>
160
- );
161
- }))}
162
- </iBizRow>
163
- </iBizControlBase>
164
- );
165
- },
166
- });
@@ -1,18 +0,0 @@
1
- import { registerControlProvider, ControlType } from '@ibiz-template/runtime';
2
- import { App } from 'vue';
3
- import { ViewLayoutPanelControl } from './view-layout-panel';
4
- import { ViewLayoutPanelProvider } from './view-layout-panel.provider';
5
- import { withInstall } from '../../../util';
6
-
7
- export const IBizViewLayoutPanelControl = withInstall(
8
- ViewLayoutPanelControl,
9
- function (v: App) {
10
- v.component(ViewLayoutPanelControl.name, ViewLayoutPanelControl);
11
- registerControlProvider(
12
- ControlType.VIEW_LAYOUT_PANEL,
13
- () => new ViewLayoutPanelProvider(),
14
- );
15
- },
16
- );
17
-
18
- export default IBizViewLayoutPanelControl;
@@ -1,14 +0,0 @@
1
- import { IControlProvider } from '@ibiz-template/runtime';
2
-
3
- /**
4
- * 视图布局面板部件适配器
5
- *
6
- * @author lxm
7
- * @date 2022-10-25 18:10:57
8
- * @export
9
- * @class ViewLayoutPanelProvider
10
- * @implements {IControlProvider}
11
- */
12
- export class ViewLayoutPanelProvider implements IControlProvider {
13
- component: string = 'IBizViewLayoutPanelControl';
14
- }
@@ -1,9 +0,0 @@
1
- @include b(control-viewlayoutpanel) {
2
- width: 100%;
3
- height: 100%;
4
- }
5
-
6
- @include b(control-viewlayoutpanel-content) {
7
- width: 100%;
8
- height: 100%;
9
- }
@@ -1,178 +0,0 @@
1
- import {
2
- defineComponent,
3
- PropType,
4
- resolveComponent,
5
- h,
6
- VNode,
7
- reactive,
8
- watch,
9
- provide,
10
- } from 'vue';
11
- import {
12
- IPanelContainer,
13
- IPanelField,
14
- IPanelItem,
15
- IPanelTabPanel,
16
- IViewLayoutPanel,
17
- } from '@ibiz/model-core';
18
- import './view-layout-panel.scss';
19
- import {
20
- IController,
21
- IControlProvider,
22
- IPanelItemController,
23
- IPanelItemProvider,
24
- isDataContainer,
25
- ViewLayoutPanelController,
26
- } from '@ibiz-template/runtime';
27
- import { useControlController, useNamespace } from '../../../use';
28
-
29
- /**
30
- * 视图布局面板组件
31
- */
32
- export const ViewLayoutPanelControl = defineComponent({
33
- name: 'IBizViewLayoutPanelControl',
34
- props: {
35
- modelData: {
36
- type: Object as PropType<IViewLayoutPanel>,
37
- required: true,
38
- },
39
- context: { type: Object as PropType<IContext>, required: true },
40
- params: { type: Object as PropType<IParams>, default: () => ({}) },
41
- provider: { type: Object as PropType<IControlProvider> },
42
- container: { type: Object as PropType<IController> },
43
- data: Object as PropType<IData>,
44
- },
45
- setup(props, { slots }) {
46
- const c = useControlController(
47
- (...args) => new ViewLayoutPanelController(...args, props.container),
48
- );
49
- const ns = useNamespace(`control-${c.model.controlType!.toLowerCase()}`);
50
-
51
- watch(
52
- () => props.data,
53
- newVal => {
54
- if (newVal) {
55
- c.setInputData(newVal);
56
- c.load();
57
- }
58
- },
59
- {
60
- immediate: true,
61
- },
62
- );
63
-
64
- c.evt.on('onCreated', () => {
65
- // 面板成员state响应式
66
- const keys = Object.keys(c.panelItems);
67
- keys.forEach(key => {
68
- const panelItem = c.panelItems[key];
69
- panelItem.state = reactive(panelItem.state);
70
- });
71
- });
72
-
73
- /**
74
- * 绘制面板成员
75
- * @author lxm
76
- * @date 2023-08-25 04:09:07
77
- * @param {IPanelItem} panelItem
78
- * @return {*} {(VNode | null)}
79
- */
80
- const renderPanelItem = (
81
- panelItem: IPanelItem,
82
- options?: {
83
- providers: {
84
- [key: string]: IPanelItemProvider;
85
- };
86
- panelItems: {
87
- [key: string]: IPanelItemController;
88
- };
89
- },
90
- ): VNode | null => {
91
- if ((panelItem as IPanelField).hidden) {
92
- return null;
93
- }
94
- const { providers, panelItems } = options || c;
95
- const provider = providers[panelItem.id!];
96
- if (!provider) {
97
- return (
98
- <div>
99
- 暂未支持的面板项: {panelItem.id} - {panelItem.itemType}
100
- </div>
101
- );
102
- }
103
- const component = resolveComponent(provider.component);
104
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
105
- let children: any;
106
- // 占位类型成员填充外部对应的插槽。
107
- if (panelItem.itemType === 'CTRLPOS' && slots[panelItem.id!]) {
108
- children = () => {
109
- return slots[panelItem.id!]!();
110
- };
111
- } else if (
112
- panelItem.itemType === 'TABPANEL' &&
113
- (panelItem as IPanelTabPanel).panelTabPages?.length
114
- ) {
115
- children = () => {
116
- return (panelItem as IPanelTabPanel).panelTabPages!.map(child => {
117
- return renderPanelItem(child, options);
118
- });
119
- };
120
- } else if (isDataContainer(panelItem)) {
121
- // 单项数据容器,多项数据容器不给子
122
- children = undefined;
123
- } else if ((panelItem as IPanelContainer).panelItems?.length) {
124
- children = () => {
125
- return (panelItem as IPanelContainer).panelItems!.map(child => {
126
- return renderPanelItem(child, options);
127
- });
128
- };
129
- }
130
-
131
- // 直接样式
132
- let tempStyle = '';
133
- if (panelItem.cssStyle) {
134
- tempStyle = panelItem.cssStyle;
135
- }
136
- return h(
137
- component,
138
- {
139
- modelData: panelItem,
140
- controller: panelItems[panelItem.id!],
141
- key: panelItem.id,
142
- style: tempStyle,
143
- },
144
- children,
145
- );
146
- };
147
-
148
- provide('renderPanelItem', renderPanelItem);
149
-
150
- return { c, ns, renderPanelItem };
151
- },
152
- render() {
153
- const { state, model } = this.c;
154
-
155
- return (
156
- <iBizControlBase controller={this.c}>
157
- <iBizRow class={this.ns.b('content')} layout={{ layout: 'FLEX' }}>
158
- {state.isCreated &&
159
- (this.$slots.default
160
- ? this.$slots.default({
161
- panelItems: this.c.panelItems,
162
- })
163
- : model.rootPanelItems?.map(panelItem => {
164
- const subC = this.c.panelItems[panelItem.id!];
165
- // 视图布局面板的子默认布局改成flex
166
- // eslint-disable-next-line no-param-reassign
167
- panelItem.layoutPos!.layout = 'FLEX';
168
- return (
169
- <iBizCol layoutPos={panelItem.layoutPos} state={subC.state}>
170
- {this.renderPanelItem(panelItem)}
171
- </iBizCol>
172
- );
173
- }))}
174
- </iBizRow>
175
- </iBizControlBase>
176
- );
177
- },
178
- });
@@ -1,31 +0,0 @@
1
- import { SyncSeriesHook } from 'qx-util';
2
- import { App } from 'vue';
3
-
4
- /**
5
- * 应用钩子(内部使用)
6
- *
7
- * @author chitanda
8
- * @date 2024-02-04 17:02:18
9
- * @export
10
- * @class AppHooks
11
- */
12
- export class AppHooks {
13
- /**
14
- * 创建 Vue 应用实例
15
- *
16
- * @author chitanda
17
- * @date 2024-02-04 17:02:41
18
- * @static
19
- */
20
- static createApp = new SyncSeriesHook<App>();
21
-
22
- /**
23
- * 用于在多实例下,挂载到已经创建的 Vue 实例上插件
24
- *
25
- * @author chitanda
26
- * @date 2024-02-04 18:02:49
27
- * @static
28
- */
29
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
30
- static useComponent = new SyncSeriesHook<any>();
31
- }
@@ -1 +0,0 @@
1
- export { AppHooks } from './app/app.hooks';
package/src/index.ts DELETED
@@ -1,18 +0,0 @@
1
- import { App } from 'vue';
2
-
3
- export * from './hooks';
4
- export * from './common';
5
- export * from './panel-component';
6
- export * from './view';
7
- export * from './control';
8
- export * from './interface';
9
- export * from './plugin';
10
- export * from './use';
11
- export * from './util';
12
- export * from './props';
13
-
14
- declare global {
15
- interface Window {
16
- vueInstances: Map<App, App>;
17
- }
18
- }
@@ -1 +0,0 @@
1
- export * from './util';
@@ -1 +0,0 @@
1
- export * from './route/route';
@@ -1,116 +0,0 @@
1
- import { IAppView } from '@ibiz/model-core';
2
-
3
- /**
4
- * 路由壳绘制需要的视图数据
5
- *
6
- * @author lxm
7
- * @date 2022-08-17 22:08:18
8
- * @export
9
- * @interface IRouteViewData
10
- */
11
- export interface IRouteViewData {
12
- /**
13
- * 视图模型
14
- * @author lxm
15
- * @date 2023-04-19 01:44:13
16
- * @type {IAppView}
17
- */
18
- viewModel?: IAppView;
19
-
20
- /**
21
- *视图上下文
22
- *
23
- * @author lxm
24
- * @date 2022-08-17 23:08:15
25
- * @type {IParams}
26
- */
27
- context?: IParams;
28
-
29
- /**
30
- *视图参数
31
- *
32
- * @author lxm
33
- * @date 2022-08-17 23:08:25
34
- * @type {IParams}
35
- */
36
- params?: IParams;
37
-
38
- /**
39
- * 视图导航参数
40
- * @author lxm
41
- * @date 2023-03-14 08:41:50
42
- * @type {string}
43
- */
44
- srfnav?: string;
45
- }
46
-
47
- /**
48
- * 路由路径每一级路径节点
49
- *
50
- * @author lxm
51
- * @date 2022-08-18 11:08:24
52
- * @export
53
- * @interface IRoutePathNode
54
- */
55
- export interface IRoutePathNode {
56
- /**
57
- * 视图名称
58
- *
59
- * @author lxm
60
- * @date 2022-08-18 11:08:42
61
- * @type {string}
62
- */
63
- viewName: string;
64
-
65
- /**
66
- * 上下文参数
67
- *
68
- * @author lxm
69
- * @date 2022-08-18 11:08:53
70
- * @type {IParams}
71
- */
72
- context?: IParams;
73
-
74
- /**
75
- * 视图参数对象
76
- *
77
- * @author lxm
78
- * @date 2022-08-18 11:08:25
79
- * @type {IParams}
80
- */
81
- params?: IParams;
82
-
83
- /**
84
- * 视图导航参数(视图自身解析的额外路由参数)
85
- * @author lxm
86
- * @date 2023-03-14 08:39:36
87
- * @type {string}
88
- */
89
- srfnav?: string;
90
- }
91
-
92
- /**
93
- * 路由路径对象,按照路径定义描述
94
- *
95
- * @author lxm
96
- * @date 2022-08-18 11:08:40
97
- * @export
98
- * @interface IRoutePath
99
- */
100
- export interface IRoutePath {
101
- /**
102
- * 应用上下文
103
- *
104
- * @type {IParams}
105
- * @memberof IRoutePath
106
- */
107
- appContext?: IParams;
108
-
109
- /**
110
- *
111
- * @author lxm
112
- * @date 2022-08-18 11:08:48
113
- * @type {IRoutePathNode[]}
114
- */
115
- pathNodes: IRoutePathNode[];
116
- }
@@ -1,18 +0,0 @@
1
- import { PanelItemController } from '@ibiz-template/runtime';
2
- import { IPanelContainer } from '@ibiz/model-core';
3
- import { GridContainerState } from './grid-container.state';
4
-
5
- /**
6
- * 面板栅格容器控制器
7
- *
8
- * @export
9
- * @class GridContainerController
10
- * @extends {PanelItemController}
11
- */
12
- export class GridContainerController extends PanelItemController<IPanelContainer> {
13
- declare state: GridContainerState;
14
-
15
- protected createState(): GridContainerState {
16
- return new GridContainerState(this.parent?.state);
17
- }
18
- }
@@ -1,30 +0,0 @@
1
- import {
2
- IPanelItemProvider,
3
- PanelController,
4
- PanelItemController,
5
- } from '@ibiz-template/runtime';
6
- import { IPanelContainer } from '@ibiz/model-core';
7
- import { GridContainerController } from './grid-container.controller';
8
-
9
- /**
10
- * 面板容器适配器
11
- *
12
- * @author lxm
13
- * @date 2022-09-19 22:09:03
14
- * @export
15
- * @class GridContainerProvider
16
- * @implements {EditorProvider}
17
- */
18
- export class GridContainerProvider implements IPanelItemProvider {
19
- component: string = 'IBizGridContainer';
20
-
21
- async createController(
22
- panelItem: IPanelContainer,
23
- panel: PanelController,
24
- parent: PanelItemController | undefined,
25
- ): Promise<PanelItemController> {
26
- const c = new GridContainerController(panelItem, panel, parent);
27
- await c.init();
28
- return c;
29
- }
30
- }
@@ -1,17 +0,0 @@
1
- $grid-container: (
2
- 'bg-color': getCssVar('bg-color', 'overlay'),
3
- 'padding': getCssVar('padding'),
4
- );
5
-
6
- // 默认样式
7
- @include b(grid-container) {
8
- @include set-component-css-var('grid-container', $grid-container);
9
-
10
- width: 100%;
11
- height: 100%;
12
- overflow: auto;
13
-
14
- @include when(hidden) {
15
- display: none;
16
- }
17
- }
@@ -1,12 +0,0 @@
1
- import { PanelItemState } from '@ibiz-template/runtime';
2
-
3
- /**
4
- * 面板栅格容器状态
5
- *
6
- * @author lxm
7
- * @date 2023-02-07 06:04:27
8
- * @export
9
- * @class GridContainerState
10
- * @extends {PanelItemState}
11
- */
12
- export class GridContainerState extends PanelItemState {}