@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
@@ -0,0 +1,70 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+
5
+ "use strict";
6
+ function createOverlayView(props) {
7
+ return (modal) => {
8
+ const viewShell = vue.resolveComponent("IBizViewShell");
9
+ return vue.h(viewShell, {
10
+ ...props,
11
+ modal
12
+ });
13
+ };
14
+ }
15
+ async function openViewModal(props, opts) {
16
+ const overlay = ibiz.overlay.createModal(
17
+ createOverlayView(props),
18
+ void 0,
19
+ opts
20
+ );
21
+ overlay.present();
22
+ const result = await overlay.onWillDismiss();
23
+ return result || { ok: false };
24
+ }
25
+ async function openViewFloatWindow(props, opts) {
26
+ const overlay = ibiz.overlay.createFloatWindow(
27
+ createOverlayView(props),
28
+ void 0,
29
+ opts
30
+ );
31
+ overlay.present();
32
+ const result = await overlay.onWillDismiss();
33
+ return result || { ok: false };
34
+ }
35
+ async function openViewDrawer(props, opts) {
36
+ const overlay = ibiz.overlay.createDrawer(
37
+ createOverlayView(props),
38
+ void 0,
39
+ opts
40
+ );
41
+ await overlay.present();
42
+ const result = await overlay.onWillDismiss();
43
+ return result || { ok: false };
44
+ }
45
+ async function openViewPopover(event, props, opts) {
46
+ const overlay = ibiz.overlay.createPopover(
47
+ createOverlayView(props),
48
+ void 0,
49
+ opts
50
+ );
51
+ overlay.present(event.target);
52
+ const result = await overlay.onWillDismiss();
53
+ return result || { ok: false };
54
+ }
55
+ const PlacementMap = {
56
+ DRAWER_LEFT: "left",
57
+ DRAWER_RIGHT: "right",
58
+ DRAWER_TOP: "top",
59
+ DRAWER_BOTTOM: "bottom"
60
+ };
61
+ function getDrawerPlacement(openMode) {
62
+ return PlacementMap[openMode] || "right";
63
+ }
64
+
65
+ exports.createOverlayView = createOverlayView;
66
+ exports.getDrawerPlacement = getDrawerPlacement;
67
+ exports.openViewDrawer = openViewDrawer;
68
+ exports.openViewFloatWindow = openViewFloatWindow;
69
+ exports.openViewModal = openViewModal;
70
+ exports.openViewPopover = openViewPopover;
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ var ramda = require('ramda');
4
+
5
+ "use strict";
6
+ function renderString(value) {
7
+ if (ramda.isNil(value)) {
8
+ return "";
9
+ }
10
+ if (typeof value === "string") {
11
+ return value;
12
+ }
13
+ try {
14
+ const str = value.toString();
15
+ return str;
16
+ } catch (error) {
17
+ ibiz.log.error(value, "\u8F6C\u6362\u6210\u5B57\u7B26\u4E32\u5931\u8D25", error);
18
+ }
19
+ return "";
20
+ }
21
+
22
+ exports.renderString = renderString;
@@ -0,0 +1,75 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+
5
+ "use strict";
6
+ class RouteListener {
7
+ constructor(route, wait) {
8
+ /**
9
+ * 回调集合
10
+ *
11
+ * @memberof RouteListener
12
+ */
13
+ this.callbacks = [];
14
+ /**
15
+ * 计时器集合
16
+ *
17
+ * @private
18
+ * @type {any[]}
19
+ * @memberof RouteListener
20
+ */
21
+ this.timers = [];
22
+ /**
23
+ * 等待路由响应时间
24
+ *
25
+ * @private
26
+ * @type {number}
27
+ * @memberof RouteListener
28
+ */
29
+ this.wait = 500;
30
+ if (wait) {
31
+ this.wait = wait;
32
+ }
33
+ vue.watch(
34
+ () => route.path,
35
+ (newVal, oldVal) => {
36
+ if (newVal !== oldVal) {
37
+ if (this.callbacks.length) {
38
+ for (let index = 0; index < this.callbacks.length; index++) {
39
+ const fn = this.callbacks[index];
40
+ fn();
41
+ }
42
+ }
43
+ this.callbacks = [];
44
+ if (this.timers.length) {
45
+ for (let index = 0; index < this.timers.length; index++) {
46
+ const timer = this.timers[index];
47
+ clearTimeout(timer);
48
+ }
49
+ }
50
+ this.timers = [];
51
+ }
52
+ }
53
+ );
54
+ }
55
+ /**
56
+ * 下一次路由变更后执行回调,只执行一次
57
+ *
58
+ * @param {ChangeCallback} callback
59
+ * @memberof RouteListener
60
+ */
61
+ nextChange(callback) {
62
+ if (callback) {
63
+ this.timers.push(
64
+ setTimeout(() => {
65
+ callback();
66
+ const index = this.callbacks.findIndex((item) => item === callback);
67
+ this.callbacks.splice(index, 1);
68
+ }, this.wait)
69
+ );
70
+ this.callbacks.push(callback);
71
+ }
72
+ }
73
+ }
74
+
75
+ exports.RouteListener = RouteListener;
@@ -0,0 +1,302 @@
1
+ 'use strict';
2
+
3
+ var qxUtil = require('qx-util');
4
+ var core = require('@ibiz-template/core');
5
+ var qs = require('qs');
6
+ var vueRouter = require('vue-router');
7
+ var vue = require('vue');
8
+ var runtime = require('@ibiz-template/runtime');
9
+
10
+ "use strict";
11
+ function route2routePath(route, isRouteModal = false) {
12
+ const depth = route.matched.length;
13
+ let path = route.path;
14
+ if (isRouteModal) {
15
+ path = path.replace(new RegExp("/".concat(runtime.RouteConst.ROUTE_MODAL_TAG), "g"), "");
16
+ }
17
+ const items = path.split("/");
18
+ const pathNodes = [];
19
+ for (let index = 1; index <= depth; index++) {
20
+ const viewName = items[index * 2];
21
+ const paramsStr = route.params["params".concat(index)];
22
+ let params;
23
+ let context;
24
+ let srfnav;
25
+ if (!paramsStr || paramsStr === ibiz.env.routePlaceholder) {
26
+ params = void 0;
27
+ } else {
28
+ params = qs.parse(paramsStr, {
29
+ strictNullHandling: true,
30
+ delimiter: ";"
31
+ });
32
+ }
33
+ if (params) {
34
+ if (index === 1) {
35
+ context = params;
36
+ params = void 0;
37
+ } else {
38
+ if (params.srfnavctx) {
39
+ context = JSON.parse(decodeURIComponent(params.srfnavctx));
40
+ delete params.srfnavctx;
41
+ }
42
+ if (params.srfnav) {
43
+ srfnav = params.srfnav;
44
+ delete params.srfnav;
45
+ }
46
+ }
47
+ }
48
+ pathNodes.push({ viewName, context, params, srfnav });
49
+ }
50
+ let appContext;
51
+ if (route.params.appContext && route.params.appContext !== ibiz.env.routePlaceholder) {
52
+ appContext = qs.parse(route.params.appContext, {
53
+ strictNullHandling: true,
54
+ delimiter: ";"
55
+ });
56
+ }
57
+ return { appContext, pathNodes };
58
+ }
59
+ function routePath2string(routePath) {
60
+ let pathStr = "";
61
+ if (routePath.appContext) {
62
+ pathStr += "/".concat(qs.stringify(routePath.appContext, {
63
+ delimiter: ";",
64
+ strictNullHandling: true
65
+ }));
66
+ } else {
67
+ pathStr += "/".concat(ibiz.env.routePlaceholder);
68
+ }
69
+ routePath.pathNodes.forEach((pathNode, index) => {
70
+ pathStr += "/".concat(pathNode.viewName, "/");
71
+ let routeParams = {};
72
+ if (index === 0) {
73
+ if (qxUtil.notNilEmpty(pathNode.context)) {
74
+ routeParams = pathNode.context;
75
+ }
76
+ } else {
77
+ routeParams = qxUtil.notNilEmpty(pathNode.params) ? pathNode.params : {};
78
+ if (qxUtil.notNilEmpty(pathNode.context)) {
79
+ const objStr = JSON.stringify(pathNode.context);
80
+ if (objStr !== "{}") {
81
+ routeParams.srfnavctx = encodeURIComponent(objStr);
82
+ }
83
+ }
84
+ if (pathNode.srfnav) {
85
+ routeParams.srfnav = pathNode.srfnav;
86
+ }
87
+ }
88
+ const paramsStr = qs.stringify(routeParams, {
89
+ delimiter: ";",
90
+ strictNullHandling: true,
91
+ skipNulls: true
92
+ });
93
+ if (qxUtil.notNilEmpty(paramsStr)) {
94
+ pathStr += paramsStr;
95
+ } else {
96
+ pathStr += ibiz.env.routePlaceholder;
97
+ }
98
+ });
99
+ return pathStr;
100
+ }
101
+ function getOwnRouteContext(context) {
102
+ const ownContext = context.getOwnContext();
103
+ const excludeKeys = [
104
+ "srfsessionid",
105
+ "srfappid",
106
+ "currentSrfNav",
107
+ "toRouteDepth"
108
+ ];
109
+ Object.keys(ownContext).forEach((key) => {
110
+ if (excludeKeys.includes(key)) {
111
+ delete ownContext[key];
112
+ }
113
+ });
114
+ return ownContext;
115
+ }
116
+ const excludeViewTypes = [
117
+ runtime.ViewType.DE_GRID_VIEW,
118
+ runtime.ViewType.DE_GRID_EXP_VIEW,
119
+ runtime.ViewType.DE_LIST_VIEW,
120
+ runtime.ViewType.DE_LIST_EXP_VIEW,
121
+ runtime.ViewType.DE_DATA_VIEW,
122
+ runtime.ViewType.DE_DATAVIEW_EXP_VIEW,
123
+ runtime.ViewType.DE_CALENDAR_VIEW,
124
+ runtime.ViewType.DE_CALENDAR_EXP_VIEW,
125
+ runtime.ViewType.DE_CHART_VIEW,
126
+ runtime.ViewType.DE_CHART_EXP_VIEW,
127
+ runtime.ViewType.DE_KANBAN_VIEW
128
+ ];
129
+ async function calcResRoutePath(routePath, context, appDataEntityId, appId) {
130
+ if (!appDataEntityId) {
131
+ routePath.pathNodes[0].context = void 0;
132
+ } else {
133
+ const entity = await ibiz.hub.getAppDataEntity(appDataEntityId, appId);
134
+ let match = runtime.getMatchResPath(context, entity);
135
+ if (!match) {
136
+ match = { path: "", keys: [entity.codeName.toLowerCase()] };
137
+ }
138
+ if (match) {
139
+ const currentContext = routePath.pathNodes[1].context;
140
+ const resContext = {};
141
+ match.keys.forEach((key) => {
142
+ if (context && Object.prototype.hasOwnProperty.call(context, key)) {
143
+ resContext[key] = context[key];
144
+ if (currentContext) {
145
+ delete currentContext[key];
146
+ }
147
+ }
148
+ });
149
+ routePath.pathNodes[0].context = resContext;
150
+ }
151
+ }
152
+ }
153
+ async function generateRoutePath(appView, route, context, params) {
154
+ const routePath = route2routePath(route);
155
+ let depth = context.srfdefaulttoroutedepth || 2;
156
+ if (context.toRouteDepth) {
157
+ depth = context.toRouteDepth;
158
+ context.toRouteDepth = void 0;
159
+ } else if (ibiz.env.isMob) {
160
+ routePath.pathNodes[0] = {
161
+ viewName: "home"
162
+ };
163
+ }
164
+ routePath.pathNodes.splice(depth - 1, routePath.pathNodes.length - depth + 1);
165
+ if (context.currentSrfNav) {
166
+ const currentNode = routePath.pathNodes[routePath.pathNodes.length - 1];
167
+ currentNode.params = currentNode.params || {};
168
+ currentNode.srfnav = context.currentSrfNav;
169
+ context.currentSrfNav = void 0;
170
+ }
171
+ if (route.fullPath.startsWith("/appredirectview")) {
172
+ if (params == null ? void 0 : params.srfindexname) {
173
+ routePath.pathNodes[0].viewName = params.srfindexname;
174
+ delete params.srfindexname;
175
+ } else {
176
+ routePath.pathNodes[0].viewName = "index";
177
+ }
178
+ }
179
+ routePath.pathNodes.push({
180
+ viewName: appView.codeName.toLowerCase(),
181
+ context: getOwnRouteContext(context),
182
+ params
183
+ });
184
+ if (depth === 2) {
185
+ await calcResRoutePath(
186
+ routePath,
187
+ context,
188
+ appView.appDataEntityId,
189
+ appView.appId
190
+ );
191
+ if (excludeViewTypes.includes(appView.viewType)) {
192
+ const deName = runtime.calcDeCodeNameById(appView.appDataEntityId);
193
+ delete routePath.pathNodes[0].context[deName];
194
+ }
195
+ }
196
+ return { path: routePath2string(routePath) };
197
+ }
198
+ async function generateRoutePathByModal(appView, route, context, params) {
199
+ const routePath = route2routePath(route);
200
+ const findIndex = routePath.pathNodes.findIndex(
201
+ (item) => item.viewName === runtime.RouteConst.ROUTE_MODAL_TAG
202
+ );
203
+ if (findIndex !== -1) {
204
+ routePath.pathNodes = routePath.pathNodes.slice(0, findIndex);
205
+ }
206
+ if (context.currentSrfNav) {
207
+ const currentNode = routePath.pathNodes[routePath.pathNodes.length - 1];
208
+ currentNode.params = currentNode.params || {};
209
+ currentNode.srfnav = context.currentSrfNav;
210
+ context.currentSrfNav = void 0;
211
+ }
212
+ routePath.pathNodes.push({
213
+ viewName: "".concat(runtime.RouteConst.ROUTE_MODAL_TAG, "/").concat(appView.codeName.toLowerCase()),
214
+ context: getOwnRouteContext(context),
215
+ params
216
+ });
217
+ return { path: routePath2string(routePath) };
218
+ }
219
+ async function parseRouteViewData(route, depth, isRouteModal = false) {
220
+ var _a;
221
+ const routePath = route2routePath(route, isRouteModal);
222
+ let viewCodeName = routePath.pathNodes[depth - 1].viewName;
223
+ if (!viewCodeName) {
224
+ throw new core.RuntimeError("\u7B2C".concat(depth, "\u7EA7\u8DEF\u7531\u4E0D\u5B58\u5728\u89C6\u56FE\u6807\u8BC6"));
225
+ }
226
+ if (viewCodeName === runtime.RouteConst.ROUTE_MODAL_TAG) {
227
+ viewCodeName = routePath.pathNodes[depth].viewName;
228
+ }
229
+ if (viewCodeName === "index") {
230
+ viewCodeName = ibiz.hub.defaultAppIndexViewName;
231
+ }
232
+ const viewModel = await ibiz.hub.getAppView(viewCodeName);
233
+ if (!viewModel) {
234
+ throw new core.RuntimeError("\u627E\u4E0D\u5230\u89C6\u56FE".concat(viewCodeName));
235
+ }
236
+ const context = {};
237
+ if ((_a = ibiz.appData) == null ? void 0 : _a.context) {
238
+ Object.assign(context, ibiz.appData.context);
239
+ }
240
+ if (routePath.appContext) {
241
+ Object.assign(context, routePath.appContext);
242
+ }
243
+ if (depth !== 1) {
244
+ for (let index = 0; index < depth; index++) {
245
+ const pathNode = routePath.pathNodes[index];
246
+ if (qxUtil.notNilEmpty(pathNode.context)) {
247
+ Object.assign(context, pathNode.context);
248
+ }
249
+ }
250
+ }
251
+ const { params, srfnav } = routePath.pathNodes[depth - 1];
252
+ return {
253
+ viewModel,
254
+ context,
255
+ params,
256
+ srfnav
257
+ };
258
+ }
259
+ function getNestedRoutePath(route, depth, noSrfNav = true) {
260
+ if (route.matched.length < depth) {
261
+ return "";
262
+ }
263
+ if (route.matched.length === depth && route.name) {
264
+ return route.path;
265
+ }
266
+ const routePath = route2routePath(route);
267
+ if (routePath.pathNodes.length < depth) {
268
+ return route.path;
269
+ }
270
+ if (routePath.pathNodes.length > depth) {
271
+ routePath.pathNodes = routePath.pathNodes.slice(0, depth);
272
+ }
273
+ if (noSrfNav) {
274
+ delete routePath.pathNodes[depth - 1].srfnav;
275
+ }
276
+ return routePath2string(routePath);
277
+ }
278
+ function onRouteChange(callback, depth) {
279
+ const route = vueRouter.useRoute();
280
+ if (!route) {
281
+ throw new core.RuntimeError("\u65E0\u6CD5\u6B63\u786E\u83B7\u53D6route,\u53EF\u80FD\u662F\u4F9D\u8D56\u95EE\u9898");
282
+ }
283
+ vue.watch(
284
+ () => route == null ? void 0 : route.path,
285
+ () => {
286
+ const currentKey = getNestedRoutePath(route, depth);
287
+ callback({ currentKey, fullPath: route.fullPath });
288
+ },
289
+ { immediate: true }
290
+ );
291
+ }
292
+
293
+ exports.calcResRoutePath = calcResRoutePath;
294
+ exports.excludeViewTypes = excludeViewTypes;
295
+ exports.generateRoutePath = generateRoutePath;
296
+ exports.generateRoutePathByModal = generateRoutePathByModal;
297
+ exports.getNestedRoutePath = getNestedRoutePath;
298
+ exports.getOwnRouteContext = getOwnRouteContext;
299
+ exports.onRouteChange = onRouteChange;
300
+ exports.parseRouteViewData = parseRouteViewData;
301
+ exports.route2routePath = route2routePath;
302
+ exports.routePath2string = routePath2string;
@@ -0,0 +1,74 @@
1
+ 'use strict';
2
+
3
+ "use strict";
4
+ class RouterCallbackItem {
5
+ constructor(from, to) {
6
+ this.from = from;
7
+ this.to = to;
8
+ /**
9
+ * 是否已经有打开的视图认领此回调,如果在一定时间内没有被认领,则会被清除
10
+ *
11
+ * @author chitanda
12
+ * @date 2023-07-13 21:07:35
13
+ */
14
+ this.isActivated = false;
15
+ ibiz.log.debug("openRouter: ", from, to);
16
+ }
17
+ /**
18
+ * 等待视图关闭
19
+ *
20
+ * @author chitanda
21
+ * @date 2023-07-13 21:07:34
22
+ * @return {*} {Promise<IModalData>}
23
+ */
24
+ onWillDismiss() {
25
+ if (!this.promise) {
26
+ this.promise = new Promise((resolve) => {
27
+ this.resolve = resolve;
28
+ });
29
+ }
30
+ return this.promise.then((modal) => {
31
+ ibiz.log.debug("onWillDismiss: ", this.from, this.to, modal);
32
+ return modal;
33
+ });
34
+ }
35
+ /**
36
+ * 关闭视图
37
+ *
38
+ * @author chitanda
39
+ * @date 2023-07-13 21:07:06
40
+ * @param {IModalData} modal
41
+ */
42
+ close(modal) {
43
+ ibiz.log.debug("closeRouter: ", this.from, this.to, modal);
44
+ if (this.resolve) {
45
+ this.resolve(modal);
46
+ this.resolve = void 0;
47
+ }
48
+ }
49
+ /**
50
+ * 激活回调
51
+ *
52
+ * @author chitanda
53
+ * @date 2023-07-13 21:07:29
54
+ */
55
+ active() {
56
+ ibiz.log.debug("activeRouter: ", this.from, this.to);
57
+ this.isActivated = true;
58
+ }
59
+ /**
60
+ * 销毁回调
61
+ *
62
+ * @author chitanda
63
+ * @date 2023-07-13 21:07:21
64
+ */
65
+ destroy() {
66
+ ibiz.log.debug("destroyRouter: ", this.from, this.to);
67
+ if (this.resolve) {
68
+ this.resolve({ ok: false });
69
+ this.resolve = void 0;
70
+ }
71
+ }
72
+ }
73
+
74
+ exports.RouterCallbackItem = RouterCallbackItem;
@@ -1,26 +1,20 @@
1
- import { IModalData } from '@ibiz-template/runtime';
2
- import { Router } from 'vue-router';
3
- import { RouterCallbackItem } from './router-callback-item';
1
+ 'use strict';
4
2
 
5
- /**
6
- * 路由打开视图回调,连通上级视图的关闭
7
- *
8
- * @author chitanda
9
- * @date 2023-07-13 20:07:20
10
- * @export
11
- * @class RouterCallback
12
- */
13
- export class RouterCallback {
14
- /**
15
- * 回调实例
16
- *
17
- * @author chitanda
18
- * @date 2023-07-13 20:07:12
19
- * @protected
20
- * @type {Map<string, RouterCallbackItem>}
21
- */
22
- protected map: Map<string, RouterCallbackItem> = new Map();
3
+ var routerCallbackItem = require('./router-callback-item.cjs');
23
4
 
5
+ "use strict";
6
+ class RouterCallback {
7
+ constructor() {
8
+ /**
9
+ * 回调实例
10
+ *
11
+ * @author chitanda
12
+ * @date 2023-07-13 20:07:12
13
+ * @protected
14
+ * @type {Map<string, RouterCallbackItem>}
15
+ */
16
+ this.map = /* @__PURE__ */ new Map();
17
+ }
24
18
  /**
25
19
  * 打开视图
26
20
  *
@@ -30,20 +24,23 @@ export class RouterCallback {
30
24
  * @param {string} path
31
25
  * @return {*} {Promise<IModalData>}
32
26
  */
33
- async open(router: Router, path: string): Promise<IModalData> {
27
+ async open(router, path, modalOptions = {}) {
34
28
  const from = router.currentRoute.value.fullPath;
35
- router.push({ path });
29
+ if (modalOptions.replace) {
30
+ router.replace({ path });
31
+ } else {
32
+ router.push({ path });
33
+ }
36
34
  const to = path;
37
35
  if (this.map.has(to)) {
38
- const item = this.map.get(to)!;
39
- return item.onWillDismiss();
36
+ const item2 = this.map.get(to);
37
+ return item2.onWillDismiss();
40
38
  }
41
- const item = new RouterCallbackItem(from, to);
39
+ const item = new routerCallbackItem.RouterCallbackItem(from, to);
42
40
  this.map.set(to, item);
43
41
  this.scheduledDestruction(item);
44
42
  return item.onWillDismiss();
45
43
  }
46
-
47
44
  /**
48
45
  * 关闭视图回调
49
46
  *
@@ -52,14 +49,13 @@ export class RouterCallback {
52
49
  * @param {string} toFullPath
53
50
  * @param {IModalData} modal
54
51
  */
55
- close(toFullPath: string, modal: IModalData): void {
52
+ close(toFullPath, modal) {
56
53
  const item = this.map.get(toFullPath);
57
54
  if (item) {
58
55
  item.close(modal);
59
56
  this.map.delete(toFullPath);
60
57
  }
61
58
  }
62
-
63
59
  /**
64
60
  * 激活回调
65
61
  *
@@ -67,15 +63,14 @@ export class RouterCallback {
67
63
  * @date 2023-07-13 21:07:03
68
64
  * @param {string} toFullPath
69
65
  */
70
- active(toFullPath: string): void {
66
+ active(toFullPath) {
71
67
  const item = this.map.get(toFullPath);
72
68
  if (item) {
73
69
  window.clearTimeout(item.timeout);
74
- item.timeout = undefined;
70
+ item.timeout = void 0;
75
71
  item.active();
76
72
  }
77
73
  }
78
-
79
74
  /**
80
75
  * 一分钟内未激活的视图回调会被清除
81
76
  *
@@ -84,14 +79,15 @@ export class RouterCallback {
84
79
  * @protected
85
80
  * @param {RouterCallbackItem} item
86
81
  */
87
- protected scheduledDestruction(item: RouterCallbackItem): void {
82
+ scheduledDestruction(item) {
88
83
  item.timeout = window.setTimeout(() => {
89
- item.timeout = undefined;
84
+ item.timeout = void 0;
90
85
  item.destroy();
91
86
  this.map.delete(item.to);
92
- }, 10 * 1000);
87
+ }, 10 * 1e3);
93
88
  }
94
89
  }
90
+ const routerCallback = new RouterCallback();
95
91
 
96
- // 路由打开视图回调,连通上级视图的关闭工具类
97
- export const routerCallback = new RouterCallback();
92
+ exports.RouterCallback = RouterCallback;
93
+ exports.routerCallback = routerCallback;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var pinia = require('pinia');
4
+ var vue = require('vue');
5
+
6
+ "use strict";
7
+ const useAppStore = pinia.defineStore("appStore", () => {
8
+ const appStore = vue.reactive({});
9
+ return { appStore };
10
+ });
11
+
12
+ exports.useAppStore = useAppStore;
@@ -0,0 +1,12 @@
1
+ 'use strict';
2
+
3
+ var pinia = require('pinia');
4
+ var appStore = require('./app-store/app-store.cjs');
5
+ var uiStore = require('./ui-store/ui-store.cjs');
6
+
7
+ "use strict";
8
+ const piniaInstance = pinia.createPinia();
9
+
10
+ exports.useAppStore = appStore.useAppStore;
11
+ exports.useUIStore = uiStore.useUIStore;
12
+ exports.piniaInstance = piniaInstance;