@ibiz-template/vue3-util 0.6.1-dev.0 → 0.6.1-dev.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 (360) hide show
  1. package/dist/index.min.css +1 -1
  2. package/lib/_virtual/_commonjsHelpers.cjs +46 -0
  3. package/lib/common/badge/badge.cjs +34 -0
  4. package/lib/common/badge/badge.css +1 -0
  5. package/lib/common/code-list/code-list.cjs +105 -0
  6. package/lib/common/code-list/code-list.css +1 -0
  7. package/lib/common/control-base/control-base.cjs +102 -0
  8. package/lib/common/control-base/control-base.css +1 -0
  9. package/lib/common/control-loading-placeholder/control-loading-placeholder.cjs +32 -0
  10. package/lib/common/control-shell/control-shell.cjs +58 -0
  11. package/lib/common/control-shell/control-shell.css +1 -0
  12. package/lib/common/icon/icon.cjs +103 -0
  13. package/lib/common/index.cjs +21 -0
  14. package/lib/common/router-view/router-view.cjs +77 -0
  15. package/lib/common/view-shell/view-shell.cjs +137 -0
  16. package/lib/common/view-shell/view-shell.css +1 -0
  17. package/lib/control/index.cjs +10 -0
  18. package/lib/control/panel/index.cjs +9 -0
  19. package/lib/control/panel/panel/index.cjs +18 -0
  20. package/lib/control/panel/panel/panel.cjs +142 -0
  21. package/lib/control/panel/panel/panel.css +1 -0
  22. package/lib/control/panel/panel/panel.provider.cjs +10 -0
  23. package/lib/control/panel/view-layout-panel/index.cjs +24 -0
  24. package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +144 -0
  25. package/lib/control/panel/view-layout-panel/view-layout-panel.css +1 -0
  26. package/lib/control/panel/view-layout-panel/view-layout-panel.provider.cjs +10 -0
  27. package/lib/hooks/app/app.hooks.cjs +26 -0
  28. package/lib/hooks/index.cjs +7 -0
  29. package/lib/interface/index.cjs +5 -0
  30. package/lib/interface/util/index.cjs +5 -0
  31. package/lib/interface/util/route/route.cjs +3 -0
  32. package/lib/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.cjs +540 -0
  33. package/lib/panel-component/grid-container/grid-container.cjs +108 -0
  34. package/lib/panel-component/grid-container/grid-container.controller.cjs +14 -0
  35. package/lib/panel-component/grid-container/grid-container.css +1 -0
  36. package/lib/panel-component/grid-container/grid-container.provider.cjs +17 -0
  37. package/lib/panel-component/grid-container/grid-container.state.cjs +9 -0
  38. package/lib/panel-component/grid-container/index.cjs +25 -0
  39. package/lib/panel-component/index.cjs +73 -0
  40. package/lib/panel-component/multi-data-container/index.cjs +28 -0
  41. package/lib/panel-component/multi-data-container/multi-data-container-item.controller.cjs +119 -0
  42. package/lib/panel-component/multi-data-container/multi-data-container-itm.state.cjs +19 -0
  43. package/lib/panel-component/multi-data-container/multi-data-container.cjs +89 -0
  44. package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +262 -0
  45. package/lib/panel-component/multi-data-container/multi-data-container.css +1 -0
  46. package/lib/panel-component/multi-data-container/multi-data-container.provider.cjs +17 -0
  47. package/lib/panel-component/multi-data-container/multi-data-container.state.cjs +19 -0
  48. package/lib/panel-component/nav-pos/index.cjs +22 -0
  49. package/lib/panel-component/nav-pos/nav-pos.cjs +107 -0
  50. package/lib/panel-component/nav-pos/nav-pos.controller.cjs +312 -0
  51. package/lib/panel-component/nav-pos/nav-pos.css +1 -0
  52. package/lib/panel-component/nav-pos/nav-pos.provider.cjs +26 -0
  53. package/lib/panel-component/nav-pos/nav-pos.state.cjs +49 -0
  54. package/lib/panel-component/panel-container/index.cjs +29 -0
  55. package/lib/panel-component/panel-container/panel-container.cjs +72 -0
  56. package/lib/panel-component/panel-container/panel-container.controller.cjs +14 -0
  57. package/lib/panel-component/panel-container/panel-container.css +1 -0
  58. package/lib/panel-component/panel-container/panel-container.provider.cjs +17 -0
  59. package/lib/panel-component/panel-container/panel-container.state.cjs +9 -0
  60. package/lib/panel-component/panel-container-group/index.cjs +28 -0
  61. package/lib/panel-component/panel-container-group/panel-container-group.cjs +110 -0
  62. package/lib/panel-component/panel-container-group/panel-container-group.controller.cjs +37 -0
  63. package/lib/panel-component/panel-container-group/panel-container-group.css +1 -0
  64. package/lib/panel-component/panel-container-group/panel-container-group.provider.cjs +17 -0
  65. package/lib/panel-component/panel-container-group/panel-container-group.state.cjs +9 -0
  66. package/lib/panel-component/panel-container-image/index.cjs +28 -0
  67. package/lib/panel-component/panel-container-image/panel-container-image.cjs +95 -0
  68. package/lib/panel-component/panel-container-image/panel-container-image.controller.cjs +14 -0
  69. package/lib/panel-component/panel-container-image/panel-container-image.css +1 -0
  70. package/lib/panel-component/panel-container-image/panel-container-image.provider.cjs +17 -0
  71. package/lib/panel-component/panel-container-image/panel-container-image.state.cjs +9 -0
  72. package/lib/panel-component/panel-ctrl-pos/index.cjs +20 -0
  73. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +47 -0
  74. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.cjs +25 -0
  75. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +1 -0
  76. package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.cjs +17 -0
  77. package/lib/panel-component/panel-field/index.cjs +20 -0
  78. package/lib/panel-component/panel-field/panel-field.cjs +78 -0
  79. package/lib/panel-component/panel-field/panel-field.controller.cjs +132 -0
  80. package/lib/panel-component/panel-field/panel-field.css +1 -0
  81. package/lib/panel-component/panel-field/panel-field.provider.cjs +17 -0
  82. package/lib/panel-component/panel-field/panel-field.state.cjs +9 -0
  83. package/lib/panel-component/panel-item-render/index.cjs +24 -0
  84. package/lib/panel-component/panel-item-render/panel-item-render.cjs +49 -0
  85. package/lib/panel-component/panel-item-render/panel-item-render.controller.cjs +31 -0
  86. package/lib/panel-component/panel-item-render/panel-item-render.provider.cjs +17 -0
  87. package/lib/panel-component/panel-rawitem/index.cjs +32 -0
  88. package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +61 -0
  89. package/lib/panel-component/panel-rawitem/panel-rawitem.controller.cjs +30 -0
  90. package/lib/panel-component/panel-rawitem/panel-rawitem.css +1 -0
  91. package/lib/panel-component/panel-rawitem/panel-rawitem.provider.cjs +17 -0
  92. package/lib/panel-component/panel-tab-page/index.cjs +18 -0
  93. package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +65 -0
  94. package/lib/panel-component/panel-tab-page/panel-tab-page.provider.cjs +17 -0
  95. package/lib/panel-component/scroll-container/index.cjs +55 -0
  96. package/lib/panel-component/scroll-container/scroll-container/index.cjs +9 -0
  97. package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +114 -0
  98. package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.cjs +14 -0
  99. package/lib/panel-component/scroll-container/scroll-container/scroll-container.css +1 -0
  100. package/lib/panel-component/scroll-container/scroll-container/scroll-container.provider.cjs +17 -0
  101. package/lib/panel-component/scroll-container/scroll-container-item/index.cjs +9 -0
  102. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +66 -0
  103. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.cjs +9 -0
  104. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +1 -0
  105. package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.cjs +17 -0
  106. package/lib/panel-component/single-data-container/index.cjs +28 -0
  107. package/lib/panel-component/single-data-container/single-data-container.cjs +79 -0
  108. package/lib/panel-component/single-data-container/single-data-container.controller.cjs +287 -0
  109. package/lib/panel-component/single-data-container/single-data-container.css +1 -0
  110. package/lib/panel-component/single-data-container/single-data-container.provider.cjs +17 -0
  111. package/lib/panel-component/single-data-container/single-data-container.state.cjs +19 -0
  112. package/lib/plugin/index.cjs +7 -0
  113. package/{src/plugin/plugin-factory/plugin-factory.ts → lib/plugin/plugin-factory/plugin-factory.cjs} +137 -182
  114. package/lib/props/common.cjs +17 -0
  115. package/lib/props/editor/array.cjs +14 -0
  116. package/lib/props/editor/autocomplete.cjs +14 -0
  117. package/lib/props/editor/cascader.cjs +14 -0
  118. package/lib/props/editor/check-box-list.cjs +14 -0
  119. package/lib/props/editor/check-box.cjs +14 -0
  120. package/lib/props/editor/code.cjs +23 -0
  121. package/lib/props/editor/color-picker.cjs +14 -0
  122. package/lib/props/editor/common.cjs +62 -0
  123. package/lib/props/editor/data-picker.cjs +14 -0
  124. package/lib/props/editor/date-picker.cjs +14 -0
  125. package/lib/props/editor/date-range.cjs +14 -0
  126. package/lib/props/editor/dropdown-list.cjs +14 -0
  127. package/lib/props/editor/html.cjs +14 -0
  128. package/lib/props/editor/index.cjs +86 -0
  129. package/lib/props/editor/list-box.cjs +14 -0
  130. package/lib/props/editor/markdown.cjs +22 -0
  131. package/lib/props/editor/number-range.cjs +14 -0
  132. package/lib/props/editor/radio-button-list.cjs +14 -0
  133. package/lib/props/editor/rate.cjs +14 -0
  134. package/lib/props/editor/raw.cjs +14 -0
  135. package/lib/props/editor/slider.cjs +14 -0
  136. package/lib/props/editor/span.cjs +14 -0
  137. package/lib/props/editor/stepper.cjs +14 -0
  138. package/lib/props/editor/switch.cjs +14 -0
  139. package/lib/props/editor/text-box.cjs +30 -0
  140. package/lib/props/editor/upload.cjs +14 -0
  141. package/lib/props/index.cjs +89 -0
  142. package/lib/use/click-outside/click-outside.cjs +50 -0
  143. package/lib/use/control/index.cjs +7 -0
  144. package/lib/use/control/use-control-controller/use-control-controller.cjs +78 -0
  145. package/lib/use/event/event.cjs +39 -0
  146. package/lib/use/focus-blur/focus-blur.cjs +48 -0
  147. package/lib/use/index.cjs +34 -0
  148. package/lib/use/namespace/namespace.cjs +10 -0
  149. package/lib/use/route/route.cjs +31 -0
  150. package/lib/use/util/index.cjs +14 -0
  151. package/lib/use/view/index.cjs +7 -0
  152. package/lib/use/view/use-view-controller/use-view-controller.cjs +86 -0
  153. package/lib/use/vue/vue.cjs +64 -0
  154. package/lib/util/control/prepare-control.cjs +24 -0
  155. package/lib/util/index.cjs +43 -0
  156. package/lib/util/install.cjs +11 -0
  157. package/lib/util/overlay-container/overlay-container.cjs +116 -0
  158. package/lib/util/overlay-popover-container/overlay-popover-container.cjs +12 -0
  159. package/lib/util/overlay-view-util/overlay-view-util.cjs +70 -0
  160. package/lib/util/render/render.cjs +22 -0
  161. package/lib/util/route/route-listener.cjs +75 -0
  162. package/lib/util/route/route.cjs +302 -0
  163. package/lib/util/router-callback/router-callback-item.cjs +74 -0
  164. package/{src/util/router-callback/router-callback.ts → lib/util/router-callback/router-callback.cjs} +28 -40
  165. package/lib/util/store/app-store/app-store.cjs +12 -0
  166. package/lib/util/store/index.cjs +12 -0
  167. package/lib/util/store/ui-store/ui-store.cjs +17 -0
  168. package/lib/util/store/ui-store/z-index.cjs +20 -0
  169. package/lib/view/app-redirect-view/app-redirect-view.cjs +29 -0
  170. package/lib/view/common/index.cjs +15 -0
  171. package/lib/view/common/view.cjs +129 -0
  172. package/lib/view/common/view.css +1 -0
  173. package/lib/view/common/view.provider.cjs +10 -0
  174. package/lib/view/de-redirect-view/de-redirect-view.cjs +64 -0
  175. package/lib/view/de-redirect-view/de-redirect-view.provider.cjs +10 -0
  176. package/lib/view/de-redirect-view/index.cjs +22 -0
  177. package/lib/view/index.cjs +15 -0
  178. package/lib/view/portal-view/index.cjs +23 -0
  179. package/lib/view/portal-view/portal-view.cjs +95 -0
  180. package/lib/view/portal-view/portal-view.provider.cjs +10 -0
  181. package/lib/view/todo-redirect/todo-redirect.cjs +54 -0
  182. package/package.json +11 -7
  183. package/src/common/badge/badge.scss +0 -29
  184. package/src/common/badge/badge.tsx +0 -26
  185. package/src/common/code-list/code-list.scss +0 -15
  186. package/src/common/code-list/code-list.tsx +0 -127
  187. package/src/common/control-base/control-base.scss +0 -4
  188. package/src/common/control-base/control-base.tsx +0 -130
  189. package/src/common/control-loading-placeholder/control-loading-placeholder.tsx +0 -22
  190. package/src/common/control-shell/control-shell.scss +0 -5
  191. package/src/common/control-shell/control-shell.tsx +0 -70
  192. package/src/common/icon/icon.tsx +0 -82
  193. package/src/common/index.ts +0 -8
  194. package/src/common/router-view/router-view.tsx +0 -74
  195. package/src/common/view-shell/view-shell.scss +0 -5
  196. package/src/common/view-shell/view-shell.tsx +0 -163
  197. package/src/control/index.ts +0 -1
  198. package/src/control/panel/index.ts +0 -2
  199. package/src/control/panel/panel/index.ts +0 -12
  200. package/src/control/panel/panel/panel.provider.ts +0 -14
  201. package/src/control/panel/panel/panel.scss +0 -9
  202. package/src/control/panel/panel/panel.tsx +0 -166
  203. package/src/control/panel/view-layout-panel/index.ts +0 -18
  204. package/src/control/panel/view-layout-panel/view-layout-panel.provider.ts +0 -14
  205. package/src/control/panel/view-layout-panel/view-layout-panel.scss +0 -9
  206. package/src/control/panel/view-layout-panel/view-layout-panel.tsx +0 -178
  207. package/src/hooks/app/app.hooks.ts +0 -31
  208. package/src/hooks/index.ts +0 -1
  209. package/src/index.ts +0 -18
  210. package/src/interface/index.ts +0 -1
  211. package/src/interface/util/index.ts +0 -1
  212. package/src/interface/util/route/route.ts +0 -116
  213. package/src/panel-component/grid-container/grid-container.controller.ts +0 -18
  214. package/src/panel-component/grid-container/grid-container.provider.ts +0 -30
  215. package/src/panel-component/grid-container/grid-container.scss +0 -17
  216. package/src/panel-component/grid-container/grid-container.state.ts +0 -12
  217. package/src/panel-component/grid-container/grid-container.tsx +0 -119
  218. package/src/panel-component/grid-container/index.ts +0 -19
  219. package/src/panel-component/index.ts +0 -13
  220. package/src/panel-component/multi-data-container/index.ts +0 -22
  221. package/src/panel-component/multi-data-container/multi-data-container-item.controller.ts +0 -166
  222. package/src/panel-component/multi-data-container/multi-data-container-itm.state.ts +0 -20
  223. package/src/panel-component/multi-data-container/multi-data-container.controller.ts +0 -308
  224. package/src/panel-component/multi-data-container/multi-data-container.provider.ts +0 -30
  225. package/src/panel-component/multi-data-container/multi-data-container.scss +0 -10
  226. package/src/panel-component/multi-data-container/multi-data-container.state.ts +0 -20
  227. package/src/panel-component/multi-data-container/multi-data-container.tsx +0 -109
  228. package/src/panel-component/nav-pos/index.ts +0 -16
  229. package/src/panel-component/nav-pos/nav-pos.controller.ts +0 -401
  230. package/src/panel-component/nav-pos/nav-pos.provider.ts +0 -38
  231. package/src/panel-component/nav-pos/nav-pos.scss +0 -4
  232. package/src/panel-component/nav-pos/nav-pos.state.ts +0 -52
  233. package/src/panel-component/nav-pos/nav-pos.tsx +0 -121
  234. package/src/panel-component/panel-container/index.ts +0 -27
  235. package/src/panel-component/panel-container/panel-container.controller.ts +0 -18
  236. package/src/panel-component/panel-container/panel-container.provider.ts +0 -30
  237. package/src/panel-component/panel-container/panel-container.scss +0 -15
  238. package/src/panel-component/panel-container/panel-container.state.ts +0 -12
  239. package/src/panel-component/panel-container/panel-container.tsx +0 -72
  240. package/src/panel-component/panel-container-group/index.ts +0 -22
  241. package/src/panel-component/panel-container-group/panel-container-group.controller.ts +0 -43
  242. package/src/panel-component/panel-container-group/panel-container-group.provider.ts +0 -30
  243. package/src/panel-component/panel-container-group/panel-container-group.scss +0 -91
  244. package/src/panel-component/panel-container-group/panel-container-group.state.ts +0 -12
  245. package/src/panel-component/panel-container-group/panel-container-group.tsx +0 -112
  246. package/src/panel-component/panel-container-image/index.ts +0 -22
  247. package/src/panel-component/panel-container-image/panel-container-image.controller.ts +0 -18
  248. package/src/panel-component/panel-container-image/panel-container-image.provider.ts +0 -30
  249. package/src/panel-component/panel-container-image/panel-container-image.scss +0 -18
  250. package/src/panel-component/panel-container-image/panel-container-image.state.ts +0 -12
  251. package/src/panel-component/panel-container-image/panel-container-image.tsx +0 -95
  252. package/src/panel-component/panel-ctrl-pos/index.ts +0 -14
  253. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.ts +0 -53
  254. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.ts +0 -30
  255. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +0 -8
  256. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +0 -53
  257. package/src/panel-component/panel-field/index.ts +0 -14
  258. package/src/panel-component/panel-field/panel-field.controller.ts +0 -174
  259. package/src/panel-component/panel-field/panel-field.provider.ts +0 -28
  260. package/src/panel-component/panel-field/panel-field.scss +0 -36
  261. package/src/panel-component/panel-field/panel-field.state.ts +0 -12
  262. package/src/panel-component/panel-field/panel-field.tsx +0 -81
  263. package/src/panel-component/panel-item-render/index.ts +0 -18
  264. package/src/panel-component/panel-item-render/panel-item-render.controller.ts +0 -52
  265. package/src/panel-component/panel-item-render/panel-item-render.provider.ts +0 -30
  266. package/src/panel-component/panel-item-render/panel-item-render.tsx +0 -50
  267. package/src/panel-component/panel-rawitem/index.ts +0 -26
  268. package/src/panel-component/panel-rawitem/panel-rawitem.controller.ts +0 -34
  269. package/src/panel-component/panel-rawitem/panel-rawitem.provider.ts +0 -28
  270. package/src/panel-component/panel-rawitem/panel-rawitem.scss +0 -8
  271. package/src/panel-component/panel-rawitem/panel-rawitem.tsx +0 -61
  272. package/src/panel-component/panel-tab-page/index.ts +0 -12
  273. package/src/panel-component/panel-tab-page/panel-tab-page.provider.ts +0 -27
  274. package/src/panel-component/panel-tab-page/panel-tab-page.tsx +0 -55
  275. package/src/panel-component/scroll-container/index.ts +0 -44
  276. package/src/panel-component/scroll-container/scroll-container/index.ts +0 -2
  277. package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +0 -32
  278. package/src/panel-component/scroll-container/scroll-container/scroll-container.provider.ts +0 -30
  279. package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +0 -34
  280. package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +0 -110
  281. package/src/panel-component/scroll-container/scroll-container-item/index.ts +0 -2
  282. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +0 -25
  283. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.ts +0 -30
  284. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +0 -9
  285. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +0 -60
  286. package/src/panel-component/single-data-container/index.ts +0 -22
  287. package/src/panel-component/single-data-container/single-data-container.controller.ts +0 -345
  288. package/src/panel-component/single-data-container/single-data-container.provider.ts +0 -30
  289. package/src/panel-component/single-data-container/single-data-container.scss +0 -10
  290. package/src/panel-component/single-data-container/single-data-container.state.ts +0 -20
  291. package/src/panel-component/single-data-container/single-data-container.tsx +0 -95
  292. package/src/plugin/index.ts +0 -1
  293. package/src/props/common.ts +0 -30
  294. package/src/props/editor/array.ts +0 -27
  295. package/src/props/editor/autocomplete.ts +0 -27
  296. package/src/props/editor/cascader.ts +0 -27
  297. package/src/props/editor/check-box-list.ts +0 -27
  298. package/src/props/editor/check-box.ts +0 -27
  299. package/src/props/editor/code.ts +0 -36
  300. package/src/props/editor/color-picker.ts +0 -27
  301. package/src/props/editor/common.ts +0 -94
  302. package/src/props/editor/data-picker.ts +0 -27
  303. package/src/props/editor/date-picker.ts +0 -27
  304. package/src/props/editor/date-range.ts +0 -23
  305. package/src/props/editor/dropdown-list.ts +0 -27
  306. package/src/props/editor/html.ts +0 -27
  307. package/src/props/editor/index.ts +0 -25
  308. package/src/props/editor/list-box.ts +0 -27
  309. package/src/props/editor/markdown.ts +0 -35
  310. package/src/props/editor/number-range.ts +0 -23
  311. package/src/props/editor/radio-button-list.ts +0 -27
  312. package/src/props/editor/rate.ts +0 -23
  313. package/src/props/editor/raw.ts +0 -23
  314. package/src/props/editor/slider.ts +0 -23
  315. package/src/props/editor/span.ts +0 -27
  316. package/src/props/editor/stepper.ts +0 -23
  317. package/src/props/editor/switch.ts +0 -23
  318. package/src/props/editor/text-box.ts +0 -79
  319. package/src/props/editor/upload.ts +0 -27
  320. package/src/props/index.ts +0 -2
  321. package/src/types/index.d.ts +0 -8
  322. package/src/use/click-outside/click-outside.ts +0 -72
  323. package/src/use/control/index.ts +0 -1
  324. package/src/use/control/use-control-controller/use-control-controller.ts +0 -153
  325. package/src/use/event/event.ts +0 -57
  326. package/src/use/focus-blur/focus-blur.ts +0 -83
  327. package/src/use/index.ts +0 -9
  328. package/src/use/namespace/namespace.ts +0 -14
  329. package/src/use/route/route.ts +0 -47
  330. package/src/use/util/index.ts +0 -26
  331. package/src/use/view/index.ts +0 -1
  332. package/src/use/view/use-view-controller/use-view-controller.ts +0 -153
  333. package/src/use/vue/vue.ts +0 -142
  334. package/src/util/control/prepare-control.ts +0 -33
  335. package/src/util/index.ts +0 -10
  336. package/src/util/install.ts +0 -14
  337. package/src/util/overlay-container/overlay-container.ts +0 -155
  338. package/src/util/overlay-popover-container/overlay-popover-container.ts +0 -30
  339. package/src/util/overlay-view-util/overlay-view-util.ts +0 -89
  340. package/src/util/render/render.ts +0 -28
  341. package/src/util/route/route-listener.ts +0 -91
  342. package/src/util/route/route.ts +0 -520
  343. package/src/util/router-callback/router-callback-item.ts +0 -98
  344. package/src/util/store/app-store/app-store.ts +0 -10
  345. package/src/util/store/index.ts +0 -6
  346. package/src/util/store/ui-store/ui-store.ts +0 -27
  347. package/src/util/store/ui-store/z-index.ts +0 -53
  348. package/src/view/app-redirect-view/app-redirect-view.tsx +0 -26
  349. package/src/view/common/index.ts +0 -10
  350. package/src/view/common/view.provider.ts +0 -14
  351. package/src/view/common/view.scss +0 -38
  352. package/src/view/common/view.tsx +0 -152
  353. package/src/view/de-redirect-view/de-redirect-view.provider.ts +0 -14
  354. package/src/view/de-redirect-view/de-redirect-view.tsx +0 -62
  355. package/src/view/de-redirect-view/index.ts +0 -17
  356. package/src/view/index.ts +0 -5
  357. package/src/view/portal-view/index.ts +0 -18
  358. package/src/view/portal-view/portal-view.provider.ts +0 -14
  359. package/src/view/portal-view/portal-view.tsx +0 -79
  360. package/src/view/todo-redirect/todo-redirect.tsx +0 -51
@@ -1,23 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
-
3
- /**
4
- * 获取开关的props
5
- *
6
- * @export
7
- * @template C
8
- * @returns {*}
9
- */
10
- export function getSwitchProps<C>() {
11
- return { ...getEditorProps<C>(), value: [String, Number] };
12
- }
13
-
14
- /**
15
- * 获取表格步进器的props
16
- *
17
- * @export
18
- * @template C
19
- * @returns {*}
20
- */
21
- export function getGridSwitchProps<C>() {
22
- return { ...getSwitchProps<C>(), ...getGridEditorCommonProps() };
23
- }
@@ -1,79 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
-
3
- /**
4
- * 获取文本框的props
5
- *
6
- * @author lxm
7
- * @date 2022-11-01 19:11:12
8
- * @export
9
- * @template C
10
- * @returns {*}
11
- */
12
- export function getInputProps<C>() {
13
- return { ...getEditorProps<C>(), value: [String, Number] };
14
- }
15
-
16
- /**
17
- * 获取表格文本框的props
18
- *
19
- * @author lxm
20
- * @date 2022-11-01 19:11:12
21
- * @export
22
- * @template C
23
- * @returns {*}
24
- */
25
- export function getGridInputProps<C>() {
26
- return { ...getInputProps<C>(), ...getGridEditorCommonProps() };
27
- }
28
-
29
- /**
30
- * 获取数值框的props
31
- *
32
- * @author lxm
33
- * @date 2022-11-01 19:11:12
34
- * @export
35
- * @template C
36
- * @returns {*}
37
- */
38
- export function getInputNumberProps<C>() {
39
- return { ...getEditorProps<C>(), value: Number };
40
- }
41
-
42
- /**
43
- * 获取表格数值框的props
44
- *
45
- * @author lxm
46
- * @date 2022-11-01 19:11:12
47
- * @export
48
- * @template C
49
- * @returns {*}
50
- */
51
- export function getGridInputNumberProps<C>() {
52
- return { ...getInputNumberProps<C>(), ...getGridEditorCommonProps() };
53
- }
54
-
55
- /**
56
- * 获取ip框的props
57
- *
58
- * @author lxm
59
- * @date 2022-11-01 19:11:12
60
- * @export
61
- * @template C
62
- * @returns {*}
63
- */
64
- export function getInputIpProps<C>() {
65
- return { ...getEditorProps<C>(), value: String };
66
- }
67
-
68
- /**
69
- * 获取表格ip框的props
70
- *
71
- * @author lxm
72
- * @date 2022-11-01 19:11:12
73
- * @export
74
- * @template C
75
- * @returns {*}
76
- */
77
- export function getGridInputIpProps<C>() {
78
- return { ...getInputIpProps<C>(), ...getGridEditorCommonProps() };
79
- }
@@ -1,27 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
-
3
- /**
4
- * 获取上传的props
5
- *
6
- * @author lxm
7
- * @date 2022-11-01 19:11:12
8
- * @export
9
- * @template C
10
- * @returns {*}
11
- */
12
- export function getUploadProps<C>() {
13
- return { ...getEditorProps<C>(), value: String };
14
- }
15
-
16
- /**
17
- * 获取表格上传的props
18
- *
19
- * @author lxm
20
- * @date 2022-11-01 19:11:12
21
- * @export
22
- * @template C
23
- * @returns {*}
24
- */
25
- export function getGridUploadProps<C>() {
26
- return { ...getUploadProps<C>(), ...getGridEditorCommonProps() };
27
- }
@@ -1,2 +0,0 @@
1
- export * from './common';
2
- export * from './editor';
@@ -1,8 +0,0 @@
1
- import VueRouter from 'vue-router';
2
-
3
- declare module 'vue/types/vue' {
4
- interface Vue {
5
- $route: IData;
6
- $router: VueRouter;
7
- }
8
- }
@@ -1,72 +0,0 @@
1
- import {
2
- NOOP,
3
- onClickOutside,
4
- OnClickOutsideHandler,
5
- OnClickOutsideOptions,
6
- OnClickOutsideResult,
7
- } from '@ibiz-template/core';
8
- import { isNil } from 'ramda';
9
- import { onBeforeUnmount, Ref, watch } from 'vue';
10
-
11
- /**
12
- * 使用点击组件外部监听事件
13
- *
14
- * @author lxm
15
- * @date 2022-10-31 14:10:12
16
- * @export
17
- * @param {Ref} elRef 组件的ref对象
18
- * @param {OnClickOutsideHandler} handler 处理回调
19
- * @param {OnClickOutsideOptions} [options={}] 额外配置参数
20
- * @returns {*} {OnClickOutsideResult}
21
- */
22
- export function useClickOutside(
23
- elRef: Ref,
24
- handler: OnClickOutsideHandler,
25
- options: OnClickOutsideOptions = {},
26
- ): OnClickOutsideResult {
27
- let stop = NOOP;
28
- let pause = NOOP;
29
- let proceed = NOOP;
30
-
31
- // 移除监听,清空方法
32
- const destroy = (): void => {
33
- stop();
34
- stop = NOOP;
35
- pause = NOOP;
36
- proceed = NOOP;
37
- };
38
-
39
- watch(
40
- elRef,
41
- (newVal, oldVal) => {
42
- if (newVal !== oldVal) {
43
- if (isNil(newVal)) {
44
- destroy();
45
- } else {
46
- const result = onClickOutside(
47
- newVal?.$el || newVal,
48
- handler,
49
- options,
50
- );
51
- stop = result.stop;
52
- pause = result.pause;
53
- proceed = result.proceed;
54
- }
55
- }
56
- },
57
- { immediate: true },
58
- );
59
-
60
- // 组件销毁前销毁监听
61
- onBeforeUnmount(() => {
62
- if (stop !== NOOP) {
63
- destroy();
64
- }
65
- });
66
-
67
- return {
68
- stop: () => stop(),
69
- pause: () => pause(),
70
- proceed: () => proceed(),
71
- };
72
- }
@@ -1 +0,0 @@
1
- export * from './use-control-controller/use-control-controller';
@@ -1,153 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any */
2
- import {
3
- ControlController,
4
- IControlController,
5
- IControlProvider,
6
- } from '@ibiz-template/runtime';
7
- import {
8
- getCurrentInstance,
9
- onActivated,
10
- onBeforeUnmount,
11
- onDeactivated,
12
- reactive,
13
- watch,
14
- } from 'vue';
15
- import { useForce, useProps } from '../../vue/vue';
16
- import { useCtx } from '../../util';
17
-
18
- /**
19
- * 监听并更新上下文和视图参数(引用不变)
20
- * @author lxm
21
- * @date 2023-05-25 01:48:14
22
- * @param {IData} props
23
- * @param {IViewController} view
24
- */
25
- function watchAndUpdateContextParams(
26
- props: IData,
27
- control: IControlController,
28
- ): void {
29
- watch(
30
- () => ({ context: props.context, params: props.params }),
31
- newVal => {
32
- // 不改变引用的情况下,重置控制器里的上下文和视图参数。
33
- // 重新计算上下文和视图参数
34
- control.updateContextParams({ ...newVal });
35
- ibiz.log.debug(`${control.model.id}的上下文或视图参数变更:`, newVal);
36
- },
37
- );
38
- }
39
-
40
- /**
41
- * 监听部件的props并更新部件state状态
42
- * 排除部分keys,如context,params
43
- * @author lxm
44
- * @date 2023-10-27 01:46:23
45
- * @param {IData} props
46
- * @param {IControlController} control
47
- */
48
- function watchAndUpdateState(
49
- props: IData,
50
- control: IControlController,
51
- excludeFields: string[] = [],
52
- ): void {
53
- const excludeKeys = ['context', 'params', 'modelData', ...excludeFields];
54
- watch(
55
- () => {
56
- const watchProps: IData = {};
57
- Object.keys(props).forEach(key => {
58
- if (!excludeKeys.includes(key)) {
59
- watchProps[key] = props[key];
60
- }
61
- });
62
- return watchProps;
63
- },
64
- (newVal, oldVal) => {
65
- const changeProps: IData = {};
66
- Object.keys(newVal).forEach(key => {
67
- if (newVal[key] !== (oldVal || {})[key]) {
68
- changeProps[key] = newVal[key];
69
- }
70
- });
71
- ibiz.log.debug(`部件 [${control.model.name}] state 变更`, changeProps);
72
- Object.keys(changeProps).forEach(key => {
73
- if (changeProps[key] !== undefined) {
74
- (control.state as any)[key] = changeProps[key];
75
- }
76
- });
77
- },
78
- { immediate: true },
79
- );
80
- }
81
-
82
- export interface extraOptions {
83
- /**
84
- * 排除监听的props里的key
85
- * @author lxm
86
- * @date 2023-11-22 06:11:45
87
- * @type {string[]}
88
- */
89
- excludePropsKeys: string[];
90
- }
91
-
92
- /**
93
- * 初始化部件控制器
94
- *
95
- * @author chitanda
96
- * @date 2022-08-15 17:08:47
97
- * @export
98
- * @template T
99
- * @param {() => T} fn
100
- * @return {*} {T}
101
- */
102
- export function useControlController<T extends IControlController>(
103
- fn: (...args: ConstructorParameters<typeof ControlController>) => T,
104
- opts?: Partial<extraOptions>,
105
- ): T {
106
- // 获取上层组件的ctx
107
- const ctx = useCtx();
108
- // 获取 props
109
- const props = useProps();
110
- // 上下文里提前预告部件
111
- ctx.evt.emit('onForecast', props.modelData.name!);
112
-
113
- // 实例化部件控制器
114
- const provider = props.provider as IControlProvider | undefined;
115
- let c: T;
116
- if (provider?.createController) {
117
- // 如果适配器给了创建方法使用适配器的方法
118
- c = provider.createController(
119
- props.modelData,
120
- props.context,
121
- props.params,
122
- ctx,
123
- ) as T;
124
- } else {
125
- c = fn(props.modelData, props.context, props.params, ctx);
126
- }
127
-
128
- watchAndUpdateContextParams(props, c);
129
- watchAndUpdateState(props, c, opts?.excludePropsKeys);
130
-
131
- c.state = reactive(c.state);
132
-
133
- onActivated(() => c.onActivated());
134
-
135
- onDeactivated(() => c.onDeactivated());
136
-
137
- // 挂载强制更新方法
138
- c.force = useForce();
139
-
140
- const vue = getCurrentInstance()!.proxy!;
141
- c.evt.onAll((eventName: string, event: unknown) => {
142
- vue.$emit(eventName.slice(2), event);
143
- });
144
-
145
- // vue组件级事件最早的抛出controller
146
- vue.$emit('controllerAppear', c);
147
-
148
- c.created();
149
-
150
- // 卸载时销毁
151
- onBeforeUnmount(() => c.destroyed());
152
- return c;
153
- }
@@ -1,57 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any */
2
-
3
- import { listenJSEvent, NOOP } from '@ibiz-template/core';
4
- import { isNil } from 'ramda';
5
- import { onBeforeUnmount, Ref, watch } from 'vue';
6
-
7
- /**
8
- * 监听JS原生事件,返回cleanup回调,调用后删除该监听
9
- *
10
- * @author lxm
11
- * @date 2022-10-28 18:10:36
12
- * @export
13
- * @param {Ref} elRef 监听组件的ref
14
- * @param {string} eventName 监听事件名称
15
- * @param {(..._args: any[]) => any} listener 监听回调
16
- * @param {AddEventListenerOptions} options 额外参数
17
- * @returns {*} {() => void}
18
- */
19
- export function useEventListener(
20
- elRef: Ref,
21
- eventName: string,
22
- listener: (..._args: any[]) => any,
23
- options: AddEventListenerOptions = {},
24
- ): () => void {
25
- let cleanup = NOOP;
26
-
27
- watch(
28
- elRef,
29
- (newVal, oldVal) => {
30
- if (newVal !== oldVal) {
31
- if (isNil(newVal)) {
32
- cleanup();
33
- cleanup = NOOP;
34
- } else {
35
- cleanup = listenJSEvent(
36
- newVal?.$el || newVal,
37
- eventName,
38
- listener,
39
- options,
40
- );
41
- }
42
- }
43
- },
44
- { immediate: true },
45
- );
46
-
47
- // 组件销毁前销毁监听
48
- onBeforeUnmount(() => {
49
- if (cleanup !== NOOP) {
50
- cleanup();
51
- }
52
- });
53
-
54
- return () => {
55
- cleanup();
56
- };
57
- }
@@ -1,83 +0,0 @@
1
- import { OnClickOutsideResult } from '@ibiz-template/core';
2
- import { Ref, ref } from 'vue';
3
- import { useClickOutside } from '../click-outside/click-outside';
4
- import { useEventListener } from '../event/event';
5
-
6
- /**
7
- * 给指定元素添加聚焦和失焦事件
8
- * 点击指定元素时会触发聚焦事件
9
- * 已经聚焦之后,点击指定元素外部会触发失焦事件。
10
- * @author lxm
11
- * @date 2023-05-31 08:36:04
12
- * @export
13
- * @return {*}
14
- */
15
- export function useFocusAndBlur(
16
- focus: () => void,
17
- blur: () => void,
18
- ): {
19
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
20
- componentRef: Ref<any>;
21
- isFocus: Ref<boolean>;
22
- doBlur: () => void;
23
- pause: () => void;
24
- stop: () => void;
25
- } {
26
- /** 添加事件的元素ref */
27
- const componentRef = ref();
28
- const isFocus = ref(false);
29
- let outsideFuns: OnClickOutsideResult;
30
- /**
31
- * 手动触发失焦事件
32
- * @author lxm
33
- * @date 2023-05-31 08:43:54
34
- */
35
- const doBlur = (): void => {
36
- if (!isFocus.value) {
37
- ibiz.log.debug('没有聚焦,不触发失焦');
38
- }
39
- blur();
40
- outsideFuns.stop();
41
- isFocus.value = false;
42
- };
43
-
44
- /**
45
- * 暂停外部点击的监听
46
- * 用于某些组件操作过程中会触发外部点击的场景
47
- * @author lxm
48
- * @date 2023-05-31 08:47:53
49
- */
50
- const pause = (): void => {
51
- if (outsideFuns) {
52
- outsideFuns.pause();
53
- }
54
- };
55
-
56
- /**
57
- * 暂停外部点击的监听
58
- * 用于某些组件操作过程中会触发外部点击的场景
59
- * @author lxm
60
- * @date 2023-05-31 08:47:53
61
- */
62
- const stop = (): void => {
63
- if (outsideFuns) {
64
- outsideFuns.stop();
65
- }
66
- };
67
-
68
- useEventListener(
69
- componentRef,
70
- 'click',
71
- _evt => {
72
- if (!isFocus.value) {
73
- outsideFuns = useClickOutside(componentRef, () => {
74
- doBlur();
75
- });
76
- isFocus.value = true;
77
- focus();
78
- }
79
- },
80
- { capture: true }, // 捕获防止内部ui拦截点击事件
81
- );
82
- return { componentRef, isFocus, doBlur, pause, stop };
83
- }
package/src/use/index.ts DELETED
@@ -1,9 +0,0 @@
1
- export * from './click-outside/click-outside';
2
- export * from './control';
3
- export * from './event/event';
4
- export * from './focus-blur/focus-blur';
5
- export * from './namespace/namespace';
6
- export * from './route/route';
7
- export * from './util';
8
- export * from './view';
9
- export * from './vue/vue';
@@ -1,14 +0,0 @@
1
- import { Namespace } from '@ibiz-template/core';
2
-
3
- /**
4
- * css 命名空间
5
- *
6
- * @author chitanda
7
- * @date 2022-09-06 15:09:04
8
- * @export
9
- * @param {string} block
10
- * @return {*} {Namespace}
11
- */
12
- export function useNamespace(block: string): Namespace {
13
- return new Namespace(block, ibiz.env.namespace);
14
- }
@@ -1,47 +0,0 @@
1
- import { RouteLocationNormalizedLoaded, useRoute } from 'vue-router';
2
- import { ref, Ref, watch } from 'vue';
3
- import { RouteListener } from '../../util';
4
-
5
- /**
6
- * 获取路由查询参数
7
- *
8
- * @author chitanda
9
- * @date 2022-08-15 15:08:28
10
- * @export
11
- * @return {*} {IParams}
12
- */
13
- export function useRouterQuery(): IParams {
14
- const route = useRoute();
15
- const { query } = route;
16
- return query;
17
- }
18
-
19
- /**
20
- * 监听普通的key变更,在路由下次更新后再改变赋给新的RouteKey
21
- * 第一次默认值会直接赋给routeKey
22
- *
23
- * @export
24
- * @param {Ref<string>} originKey 监听的原始Ref
25
- * @param {RouteLocationNormalizedLoaded} route 路由
26
- * @param {Ref<string>} [routeKey] 预先提供的转换后的Ref
27
- * @returns {*} {Ref<string>}
28
- */
29
- export function useRouteKey(
30
- originKey: Ref<string>,
31
- route: RouteLocationNormalizedLoaded,
32
- routeKey?: Ref<string>,
33
- ): Ref<string> {
34
- if (!routeKey) {
35
- routeKey = ref('');
36
- }
37
- routeKey.value = originKey.value;
38
- const routeListener = new RouteListener(route);
39
- watch(originKey, (newVal, oldVal) => {
40
- if (newVal !== oldVal) {
41
- routeListener.nextChange(() => {
42
- routeKey!.value = newVal;
43
- });
44
- }
45
- });
46
- return routeKey;
47
- }
@@ -1,26 +0,0 @@
1
- import { CTX, IMobViewController } from '@ibiz-template/runtime';
2
- import { inject } from 'vue';
3
-
4
- /**
5
- * 获取视图上下文环境对象
6
- *
7
- * @author chitanda
8
- * @date 2023-06-16 15:06:16
9
- * @export
10
- * @return {*} {CTX}
11
- */
12
- export function useCtx(): CTX {
13
- return inject('ctx') as CTX;
14
- }
15
-
16
- /**
17
- * 获取移动端视图上下文环境对象
18
- *
19
- * @author chitanda
20
- * @date 2023-06-16 16:06:51
21
- * @export
22
- * @return {*} {CTX<IMobViewController>}
23
- */
24
- export function useMobCtx(): CTX<IMobViewController> {
25
- return inject('ctx') as CTX;
26
- }
@@ -1 +0,0 @@
1
- export { useViewController } from './use-view-controller/use-view-controller';