@ibiz-template/vue3-util 0.6.1-dev.0 → 0.6.1-dev.1

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 +5 -5
  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,18 +0,0 @@
1
- // 默认样式
2
- @include b(panel-container-image) {
3
- position: relative;
4
- width: 100%;
5
- height: 100%;
6
- background-repeat: no-repeat;
7
- background-position: center center;
8
- > .#{bem('row')} {
9
- height: 100%;
10
- overflow-x: hidden;
11
- overflow-y: auto;
12
- }
13
-
14
- @include when(hidden) {
15
- display: none;
16
- }
17
-
18
- }
@@ -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 PanelContainerImageState
10
- * @extends {PanelItemState}
11
- */
12
- export class PanelContainerImageState extends PanelItemState {}
@@ -1,95 +0,0 @@
1
- import { IPanelContainer } from '@ibiz/model-core';
2
- import { computed, defineComponent, PropType, VNode } from 'vue';
3
- import { isSvg } from '@ibiz-template/core';
4
- import { useNamespace } from '../../use';
5
- import { PanelContainerImageController } from './panel-container-image.controller';
6
- import './panel-container-image.scss';
7
-
8
- export const PanelContainerImage = defineComponent({
9
- name: 'IBizPanelContainerImage',
10
- props: {
11
- modelData: {
12
- type: Object as PropType<IPanelContainer>,
13
- required: true,
14
- },
15
- controller: {
16
- type: PanelContainerImageController,
17
- required: true,
18
- },
19
- },
20
- setup(props) {
21
- const ns = useNamespace('panel-container-image');
22
- const { id } = props.modelData;
23
-
24
- // 类名控制
25
- const classArr = computed(() => {
26
- let result: Array<string | false> = [ns.b(), ns.m(id)];
27
- result = [
28
- ...result,
29
- ...props.controller.containerClass,
30
- ns.is('hidden', !props.controller.state.visible),
31
- ];
32
- return result;
33
- });
34
-
35
- const backgroundStyle = computed(() => {
36
- const image = props.controller.model.sysImage;
37
- const styles = {};
38
- let imgStr = '';
39
- if (image?.rawContent) {
40
- if (isSvg(image.rawContent)) {
41
- imgStr = `url(data:image/svg+xml;base64,${btoa(image.rawContent)})`;
42
- } else {
43
- imgStr = `url(${image.rawContent})`;
44
- }
45
- } else if (image?.imagePath) {
46
- imgStr = `url(${image.imagePath})`;
47
- }
48
- if (imgStr) {
49
- Object.assign(styles, {
50
- backgroundImage: imgStr,
51
- });
52
- }
53
- return styles;
54
- });
55
-
56
- return { ns, classArr, backgroundStyle };
57
- },
58
- render() {
59
- // 内容区默认插槽处理,封装app-col
60
- const defaultSlots: VNode[] = this.$slots.default?.() || [];
61
- const content = (
62
- <iBizRow slot='content' layout={this.modelData.layout}>
63
- {defaultSlots.map(slot => {
64
- const props = slot.props as IData;
65
- if (!props || !props.controller) {
66
- return slot;
67
- }
68
-
69
- return (
70
- <iBizCol
71
- layoutPos={props.modelData.layoutPos}
72
- state={props.controller.state}
73
- >
74
- {slot}
75
- </iBizCol>
76
- );
77
- })}
78
- </iBizRow>
79
- );
80
- return (
81
- <div
82
- class={this.classArr}
83
- onClick={() => {
84
- this.controller.onClick();
85
- }}
86
- style={this.backgroundStyle}
87
- >
88
- {this.controller.model.cssStyle ? (
89
- <style type='text/css'>{this.controller.model.cssStyle}</style>
90
- ) : null}
91
- {content}
92
- </div>
93
- );
94
- },
95
- });
@@ -1,14 +0,0 @@
1
- import { App } from 'vue';
2
- import { registerPanelItemProvider } from '@ibiz-template/runtime';
3
- import { withInstall } from '../../util';
4
- import { PanelCtrlPos } from './panel-ctrl-pos';
5
- import { PanelCtrlPosProvider } from './panel-ctrl-pos.provider';
6
- import { PanelCtrlPosController } from './panel-ctrl-pos.controller';
7
-
8
- export { PanelCtrlPosController };
9
- export const IBizPanelCtrlPos = withInstall(PanelCtrlPos, function (v: App) {
10
- v.component(PanelCtrlPos.name, PanelCtrlPos);
11
- registerPanelItemProvider('CTRLPOS', () => new PanelCtrlPosProvider());
12
- });
13
-
14
- export default IBizPanelCtrlPos;
@@ -1,53 +0,0 @@
1
- import {
2
- IControlController,
3
- PanelItemController,
4
- ViewLayoutPanelController,
5
- } from '@ibiz-template/runtime';
6
- import { IPanelCtrlPos } from '@ibiz/model-core';
7
-
8
- /**
9
- * 面板控件占位控制器
10
- *
11
- * @author lxm
12
- * @date 2023-02-07 06:05:23
13
- * @export
14
- * @class PanelButtonController
15
- * @extends {PanelItemController}
16
- */
17
- export class PanelCtrlPosController extends PanelItemController<IPanelCtrlPos> {
18
- /**
19
- * 面板控制器
20
- *
21
- * @author lxm
22
- * @date 2022-08-24 22:08:59
23
- * @type {PanelController}
24
- */
25
- declare panel: ViewLayoutPanelController;
26
-
27
- /**
28
- * 部件占位对应部件控制器
29
- * @author lxm
30
- * @date 2023-08-09 10:41:38
31
- * @type {IControlController}
32
- */
33
- control?: IControlController;
34
-
35
- /**
36
- * 绑定部件控制器
37
- * @author lxm
38
- * @date 2023-08-09 10:42:30
39
- * @param {IControlController} controller
40
- */
41
- bindControl(controller: IControlController): void {
42
- this.control = controller;
43
-
44
- // 绑定部件,并监听所有事件,通过面板转发部件的事件。
45
- controller.evt.onAll((eventName, event) => {
46
- this.panel.evt.emit('onControlEvent', {
47
- triggerControlName: this.model.id!,
48
- triggerEventName: eventName,
49
- triggerEvent: event,
50
- });
51
- });
52
- }
53
- }
@@ -1,30 +0,0 @@
1
- import {
2
- IPanelItemProvider,
3
- PanelController,
4
- PanelItemController,
5
- } from '@ibiz-template/runtime';
6
- import { IPanelCtrlPos } from '@ibiz/model-core';
7
- import { PanelCtrlPosController } from './panel-ctrl-pos.controller';
8
-
9
- /**
10
- * 面板控件占位适配器
11
- *
12
- * @author lxm
13
- * @date 2022-09-19 22:09:03
14
- * @export
15
- * @class PanelCtrlPosProvider
16
- * @implements {EditorProvider}
17
- */
18
- export class PanelCtrlPosProvider implements IPanelItemProvider {
19
- component: string = 'IBizPanelCtrlPos';
20
-
21
- async createController(
22
- panelItem: IPanelCtrlPos,
23
- panel: PanelController,
24
- parent: PanelItemController | undefined,
25
- ): Promise<PanelCtrlPosController> {
26
- const c = new PanelCtrlPosController(panelItem, panel, parent);
27
- await c.init();
28
- return c;
29
- }
30
- }
@@ -1,8 +0,0 @@
1
- @include b(panel-ctrl-pos) {
2
- width: 100%;
3
- height: 100%;
4
-
5
- @include when(hidden) {
6
- display: none;
7
- }
8
- }
@@ -1,53 +0,0 @@
1
- import { CTX, IControlController } from '@ibiz-template/runtime';
2
- import { IPanelCtrlPos } from '@ibiz/model-core';
3
- import { defineComponent, inject, PropType, VNode } from 'vue';
4
- import { useNamespace } from '../../use';
5
- import { PanelCtrlPosController } from './panel-ctrl-pos.controller';
6
- import './panel-ctrl-pos.scss';
7
-
8
- export const PanelCtrlPos = defineComponent({
9
- name: 'IBizPanelCtrlPos',
10
- props: {
11
- modelData: {
12
- type: Object as PropType<IPanelCtrlPos>,
13
- required: true,
14
- },
15
- controller: {
16
- type: Object as PropType<PanelCtrlPosController>,
17
- required: true,
18
- },
19
- },
20
- setup(props) {
21
- // 上下文里提前预告部件
22
- const ctx = inject('ctx') as CTX;
23
- ctx.evt.on('onRegister', (name, c) => {
24
- if (name === props.modelData.id) {
25
- props.controller.bindControl(c as IControlController);
26
- }
27
- });
28
-
29
- const ns = useNamespace('panel-ctrl-pos');
30
- return { ns };
31
- },
32
- render() {
33
- const { state } = this.controller;
34
- let content: VNode | VNode[] | undefined;
35
-
36
- if (this.$slots.default) {
37
- content = this.$slots.default();
38
- }
39
-
40
- return (
41
- <div
42
- class={[
43
- this.ns.b(),
44
- this.ns.m(this.modelData.id),
45
- ...this.controller.containerClass,
46
- this.ns.is('hidden', !state.visible),
47
- ]}
48
- >
49
- {content || (ibiz.env.dev ? `未提供${this.modelData.id}插槽` : '')}
50
- </div>
51
- );
52
- },
53
- });
@@ -1,14 +0,0 @@
1
- import { registerPanelItemProvider } from '@ibiz-template/runtime';
2
- import { App } from 'vue';
3
- import { withInstall } from '../../util';
4
- import { PanelField } from './panel-field';
5
- import { PanelFieldProvider } from './panel-field.provider';
6
-
7
- export * from './panel-field.controller';
8
-
9
- export const IBizPanelField = withInstall(PanelField, function (v: App) {
10
- v.component(PanelField.name, PanelField);
11
- registerPanelItemProvider('FIELD', () => new PanelFieldProvider());
12
- });
13
-
14
- export default IBizPanelField;
@@ -1,174 +0,0 @@
1
- import {
2
- getEditorProvider,
3
- IEditorContainerController,
4
- IEditorController,
5
- IEditorProvider,
6
- PanelItemController,
7
- PanelItemEventName,
8
- } from '@ibiz-template/runtime';
9
- import { IPanelField } from '@ibiz/model-core';
10
- import { PanelFieldState } from './panel-field.state';
11
-
12
- /**
13
- * 面板按钮控制器
14
- *
15
- * @export
16
- * @class PanelFieldController
17
- * @extends {PanelItemController<IPanelField>}
18
- */
19
- export class PanelFieldController
20
- extends PanelItemController<IPanelField>
21
- implements IEditorContainerController
22
- {
23
- declare state: PanelFieldState;
24
-
25
- unitName: string | undefined = undefined;
26
-
27
- /**
28
- * 值格式化
29
- * @author lxm
30
- * @date 2023-05-24 05:46:56
31
- * @readonly
32
- * @type {(string | undefined)}
33
- */
34
- get valueFormat(): string | undefined {
35
- return this.model.valueFormat;
36
- }
37
-
38
- get dataType(): number | undefined {
39
- return undefined;
40
- }
41
-
42
- get context(): IContext {
43
- return this.panel.context;
44
- }
45
-
46
- get params(): IParams {
47
- return this.panel.params;
48
- }
49
-
50
- /**
51
- * 父容器数据对象数据
52
- * @author lxm
53
- * @date 2023-07-15 01:33:58
54
- * @readonly
55
- * @type {IData}
56
- */
57
- get data(): IData {
58
- return this.dataParent.data;
59
- }
60
-
61
- /**
62
- * 面板属性成员的值
63
- * @author lxm
64
- * @date 2023-07-14 02:30:58
65
- * @readonly
66
- */
67
- get value(): string | number {
68
- return this.data[this.model.id!];
69
- }
70
-
71
- /**
72
- * 编辑器控制器
73
- *
74
- * @author lxm
75
- * @date 2022-08-24 20:08:42
76
- * @type {IEditorController}
77
- */
78
- editor?: IEditorController;
79
-
80
- /**
81
- * 编辑器适配器
82
- *
83
- * @author lxm
84
- * @date 2022-08-24 20:08:42
85
- */
86
- editorProvider?: IEditorProvider;
87
-
88
- protected createState(): PanelFieldState {
89
- return new PanelFieldState(this.parent?.state);
90
- }
91
-
92
- /**
93
- * 初始化
94
- *
95
- * @author lxm
96
- * @date 2022-08-24 20:08:42
97
- * @protected
98
- * @returns {*} {Promise<void>}
99
- */
100
- protected async onInit(): Promise<void> {
101
- await super.onInit();
102
- // 空输入默认值
103
- this.state.required = !this.model.allowEmpty;
104
- // 初始化编辑器控制器,除了隐藏都会需要适配器
105
- if (this.model.editor && this.model.editor.editorType !== 'HIDDEN') {
106
- this.editorProvider = await getEditorProvider(this.model.editor);
107
- if (this.editorProvider) {
108
- this.editor = await this.editorProvider.createController(
109
- this.model.editor,
110
- this,
111
- );
112
- }
113
- }
114
- }
115
-
116
- /**
117
- * 设置面板数据的值
118
- *
119
- * @author lxm
120
- * @date 2022-08-24 10:08:40
121
- * @param {unknown} value 要设置的值
122
- * @param {string} name 要设置的面板数据的属性名称
123
- */
124
- async setDataValue(value: unknown, name?: string): Promise<void> {
125
- const { id } = this.model;
126
- name = name || id;
127
- if (this.dataParent.setDataValue) {
128
- await this.dataParent.setDataValue(name!, value);
129
- }
130
- this.panel.evt.emit('onPanelItemEvent', {
131
- panelItemName: this.model.id!,
132
- panelItemEventName: PanelItemEventName.CHANGE,
133
- });
134
- }
135
-
136
- /**
137
- * 聚焦事件
138
- * @author lxm
139
- * @date 2023-10-11 05:03:26
140
- */
141
- onFocus(event: MouseEvent): void {
142
- this.panel.evt.emit('onPanelItemEvent', {
143
- panelItemName: this.model.id!,
144
- panelItemEventName: PanelItemEventName.FOCUS,
145
- event,
146
- });
147
- }
148
-
149
- /**
150
- * 失焦事件
151
- * @author lxm
152
- * @date 2023-10-11 05:03:26
153
- */
154
- onBlur(event: MouseEvent): void {
155
- this.panel.evt.emit('onPanelItemEvent', {
156
- panelItemName: this.model.id!,
157
- panelItemEventName: PanelItemEventName.BLUR,
158
- event,
159
- });
160
- }
161
-
162
- /**
163
- * 回车事件
164
- * @author lxm
165
- * @date 2023-10-11 05:03:26
166
- */
167
- onEnter(event: MouseEvent): void {
168
- this.panel.evt.emit('onPanelItemEvent', {
169
- panelItemName: this.model.id!,
170
- panelItemEventName: PanelItemEventName.ENTER,
171
- event,
172
- });
173
- }
174
- }
@@ -1,28 +0,0 @@
1
- import {
2
- IPanelItemProvider,
3
- PanelController,
4
- PanelItemController,
5
- } from '@ibiz-template/runtime';
6
- import { IPanelItem } from '@ibiz/model-core';
7
- import { PanelFieldController } from './panel-field.controller';
8
-
9
- /**
10
- * 面板属性适配器
11
- *
12
- * @export
13
- * @class PanelFieldProvider
14
- * @implements {IPanelItemProvider}
15
- */
16
- export class PanelFieldProvider implements IPanelItemProvider {
17
- component: string = 'IBizPanelField';
18
-
19
- async createController(
20
- panelItem: IPanelItem,
21
- panel: PanelController,
22
- parent: PanelItemController | undefined,
23
- ): Promise<PanelFieldController> {
24
- const c = new PanelFieldController(panelItem, panel, parent);
25
- await c.init();
26
- return c;
27
- }
28
- }
@@ -1,36 +0,0 @@
1
- $panel-field: (
2
- 'icon-margin': 6px,
3
- );
4
-
5
- // 三块定义该变量的地方,要改的话一起改!
6
- // form-item, panel-field, grid-edit-item
7
- $form-item: (
8
- 'label-color': getCssVar(color, text, 1),
9
- 'text-color': getCssVar(color, text, 2),
10
- 'hover-color': getCssVar(color, text, 0),
11
- 'hover-bg-color': getCssVar(color, fill, 1),
12
- 'readonly-color': getCssVar(color, disabled, text),
13
- 'border-color': transparent,
14
- 'font-size': getCssVar(font-size, regular),
15
- 'placeholder-color': getCssVar(color, text, 3),
16
- 'disabled-color': getCssVar(color, disabled, text),
17
- 'disabled-bg-color': getCssVar(color, disabled, fill),
18
- 'disabled-border-color': getCssVar(color, disabled, border),
19
- 'active-bg': getCssVar(color, fill, 2),
20
- 'active-border': getCssVar(active, bg),
21
- 'focus-bg': getCssVar(color, fill, 0),
22
- 'focus-border': getCssVar(color, focus, border),
23
- 'line-height': getCssVar(editor,default,line-height),
24
- 'font-weight': getCssVar(font-weight, regular),
25
- );
26
-
27
- @include b(panel-field) {
28
- @include set-component-css-var('form-item', $form-item);
29
-
30
- width: 100%;
31
- height: 100%;
32
-
33
- @include b(panel-field-content) {
34
- line-height: inherit ;
35
- }
36
- }
@@ -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 PanelFieldState
10
- * @extends {PanelItemState}
11
- */
12
- export class PanelFieldState extends PanelItemState {}
@@ -1,81 +0,0 @@
1
- import { IPanelField } from '@ibiz/model-core';
2
- import { computed, defineComponent, PropType, resolveComponent, h } from 'vue';
3
- import { useNamespace } from '../../use';
4
- import { PanelFieldController } from './panel-field.controller';
5
- import './panel-field.scss';
6
-
7
- export const PanelField = defineComponent({
8
- name: 'IBizPanelField',
9
- props: {
10
- modelData: {
11
- type: Object as PropType<IPanelField>,
12
- required: true,
13
- },
14
- controller: {
15
- type: PanelFieldController,
16
- required: true,
17
- },
18
- },
19
- setup(props) {
20
- const ns = useNamespace('panel-field');
21
-
22
- // 类名控制
23
- const classArr = computed(() => {
24
- const { id } = props.modelData;
25
- const result: Array<string | false> = [ns.b(), ns.m(id)];
26
- result.push(...props.controller.containerClass);
27
- return result;
28
- });
29
-
30
- const onValueChange = (val: unknown, name?: string): void => {
31
- props.controller.setDataValue(val, name);
32
- };
33
-
34
- return {
35
- ns,
36
- classArr,
37
- onValueChange,
38
- };
39
- },
40
- render() {
41
- // 编辑器内容
42
- let editor = null;
43
- if (this.controller.data) {
44
- const editorProps = {
45
- value: this.controller.value,
46
- data: this.controller.data,
47
- controller: this.controller.editor,
48
- disabled: this.controller.state.disabled,
49
- class: this.ns.b('content'),
50
- readonly: this.controller.model.editor!.readOnly,
51
- onChange: this.onValueChange,
52
- onFocus: (event: MouseEvent) => this.controller.onFocus(event),
53
- onBlur: (event: MouseEvent) => this.controller.onBlur(event),
54
- onEnter: (event: MouseEvent) => this.controller.onEnter(event),
55
- };
56
- if (this.$slots.default) {
57
- editor = this.$slots.default(editorProps);
58
- } else if (this.controller.editorProvider) {
59
- const component = resolveComponent(
60
- this.controller.editorProvider.formEditor,
61
- );
62
- editor = h(component, {
63
- ...editorProps,
64
- });
65
- } else {
66
- editor = <not-supported-editor modelData={this.modelData.editor} />;
67
- }
68
- }
69
-
70
- return (
71
- <div
72
- class={this.classArr}
73
- onClick={() => {
74
- this.controller.onClick();
75
- }}
76
- >
77
- {editor}
78
- </div>
79
- );
80
- },
81
- });
@@ -1,18 +0,0 @@
1
- import { registerPanelItemProvider } from '@ibiz-template/runtime';
2
- import { App } from 'vue';
3
- import { withInstall } from '../../util';
4
- import { PanelItemRender } from './panel-item-render';
5
- import { PanelItemRenderProvider } from './panel-item-render.provider';
6
-
7
- export const IBizPanelItemRender = withInstall(
8
- PanelItemRender,
9
- function (v: App) {
10
- v.component(PanelItemRender.name, PanelItemRender);
11
- registerPanelItemProvider(
12
- 'PREDEFINE_RENDER',
13
- () => new PanelItemRenderProvider(),
14
- );
15
- },
16
- );
17
-
18
- export default IBizPanelItemRender;