@ibiz-template/vue3-util 0.2.11 → 0.2.13

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 (557) hide show
  1. package/dist/index.min.css +1 -0
  2. package/dist/index.system.min.js +1 -1
  3. package/dist/index.system.min.js.map +1 -1
  4. package/es/_virtual/_commonjsHelpers.mjs +40 -0
  5. package/es/common/code-list/code-list.css +1 -0
  6. package/es/common/code-list/code-list.d.ts +58 -0
  7. package/es/common/code-list/code-list.d.ts.map +1 -0
  8. package/es/common/code-list/code-list.mjs +85 -0
  9. package/es/common/control-base/control-base.css +1 -0
  10. package/es/common/control-base/control-base.d.ts +2 -0
  11. package/es/common/control-base/control-base.d.ts.map +1 -0
  12. package/es/common/control-base/control-base.mjs +99 -0
  13. package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +31 -0
  14. package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts.map +1 -0
  15. package/es/common/control-loading-placeholder/control-loading-placeholder.mjs +30 -0
  16. package/es/common/control-shell/control-shell.css +1 -0
  17. package/es/common/control-shell/control-shell.d.ts +21 -0
  18. package/es/common/control-shell/control-shell.d.ts.map +1 -0
  19. package/es/common/control-shell/control-shell.mjs +56 -0
  20. package/es/common/icon/icon.d.ts +29 -0
  21. package/es/common/icon/icon.d.ts.map +1 -0
  22. package/es/common/icon/icon.mjs +89 -0
  23. package/es/common/index.d.ts +9 -0
  24. package/es/common/index.d.ts.map +1 -0
  25. package/es/common/index.mjs +9 -0
  26. package/es/common/router-view/router-view.d.ts +30 -0
  27. package/es/common/router-view/router-view.d.ts.map +1 -0
  28. package/es/common/router-view/router-view.mjs +75 -0
  29. package/es/common/view-shell/view-shell.css +1 -0
  30. package/es/common/view-shell/view-shell.d.ts +40 -0
  31. package/es/common/view-shell/view-shell.d.ts.map +1 -0
  32. package/es/common/view-shell/view-shell.mjs +77 -0
  33. package/{out → es}/index.d.ts +3 -0
  34. package/es/index.d.ts.map +1 -0
  35. package/es/index.mjs +95 -0
  36. package/es/interface/index.mjs +3 -0
  37. package/es/interface/util/index.mjs +3 -0
  38. package/es/interface/util/route/route.mjs +1 -0
  39. package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +535 -0
  40. package/es/panel-component/grid-container/grid-container.controller.d.ts +15 -0
  41. package/es/panel-component/grid-container/grid-container.controller.d.ts.map +1 -0
  42. package/es/panel-component/grid-container/grid-container.controller.mjs +12 -0
  43. package/es/panel-component/grid-container/grid-container.css +1 -0
  44. package/es/panel-component/grid-container/grid-container.d.ts +38 -0
  45. package/es/panel-component/grid-container/grid-container.d.ts.map +1 -0
  46. package/es/panel-component/grid-container/grid-container.mjs +106 -0
  47. package/es/panel-component/grid-container/grid-container.provider.d.ts +16 -0
  48. package/es/panel-component/grid-container/grid-container.provider.d.ts.map +1 -0
  49. package/es/panel-component/grid-container/grid-container.provider.mjs +15 -0
  50. package/es/panel-component/grid-container/grid-container.state.d.ts +13 -0
  51. package/es/panel-component/grid-container/grid-container.state.d.ts.map +1 -0
  52. package/es/panel-component/grid-container/grid-container.state.mjs +7 -0
  53. package/es/panel-component/grid-container/index.d.ts +38 -0
  54. package/es/panel-component/grid-container/index.d.ts.map +1 -0
  55. package/es/panel-component/grid-container/index.mjs +18 -0
  56. package/es/panel-component/index.d.ts +10 -0
  57. package/es/panel-component/index.d.ts.map +1 -0
  58. package/es/panel-component/index.mjs +28 -0
  59. package/es/panel-component/multi-data-container/index.d.ts +37 -0
  60. package/es/panel-component/multi-data-container/index.d.ts.map +1 -0
  61. package/es/panel-component/multi-data-container/index.mjs +21 -0
  62. package/es/panel-component/multi-data-container/multi-data-container-item.controller.d.ts +61 -0
  63. package/es/panel-component/multi-data-container/multi-data-container-item.controller.d.ts.map +1 -0
  64. package/es/panel-component/multi-data-container/multi-data-container-item.controller.mjs +117 -0
  65. package/es/panel-component/multi-data-container/multi-data-container-itm.state.d.ts +20 -0
  66. package/es/panel-component/multi-data-container/multi-data-container-itm.state.d.ts.map +1 -0
  67. package/es/panel-component/multi-data-container/multi-data-container-itm.state.mjs +17 -0
  68. package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts +107 -0
  69. package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts.map +1 -0
  70. package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +260 -0
  71. package/es/panel-component/multi-data-container/multi-data-container.css +1 -0
  72. package/es/panel-component/multi-data-container/multi-data-container.d.ts +36 -0
  73. package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -0
  74. package/es/panel-component/multi-data-container/multi-data-container.mjs +87 -0
  75. package/es/panel-component/multi-data-container/multi-data-container.provider.d.ts +16 -0
  76. package/es/panel-component/multi-data-container/multi-data-container.provider.d.ts.map +1 -0
  77. package/es/panel-component/multi-data-container/multi-data-container.provider.mjs +15 -0
  78. package/es/panel-component/multi-data-container/multi-data-container.state.d.ts +20 -0
  79. package/es/panel-component/multi-data-container/multi-data-container.state.d.ts.map +1 -0
  80. package/es/panel-component/multi-data-container/multi-data-container.state.mjs +17 -0
  81. package/es/panel-component/nav-pos/index.d.ts +28 -0
  82. package/es/panel-component/nav-pos/index.d.ts.map +1 -0
  83. package/es/panel-component/nav-pos/index.mjs +15 -0
  84. package/es/panel-component/nav-pos/nav-pos.controller.d.ts +163 -0
  85. package/es/panel-component/nav-pos/nav-pos.controller.d.ts.map +1 -0
  86. package/es/panel-component/nav-pos/nav-pos.controller.mjs +283 -0
  87. package/es/panel-component/nav-pos/nav-pos.css +1 -0
  88. package/es/panel-component/nav-pos/nav-pos.d.ts +29 -0
  89. package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -0
  90. package/es/panel-component/nav-pos/nav-pos.mjs +105 -0
  91. package/es/panel-component/nav-pos/nav-pos.provider.d.ts +23 -0
  92. package/es/panel-component/nav-pos/nav-pos.provider.d.ts.map +1 -0
  93. package/es/panel-component/nav-pos/nav-pos.provider.mjs +24 -0
  94. package/es/panel-component/nav-pos/nav-pos.state.d.ts +50 -0
  95. package/es/panel-component/nav-pos/nav-pos.state.d.ts.map +1 -0
  96. package/es/panel-component/nav-pos/nav-pos.state.mjs +47 -0
  97. package/es/panel-component/panel-container/index.d.ts +27 -0
  98. package/es/panel-component/panel-container/index.d.ts.map +1 -0
  99. package/es/panel-component/panel-container/index.mjs +22 -0
  100. package/es/panel-component/panel-container/panel-container.controller.d.ts +15 -0
  101. package/es/panel-component/panel-container/panel-container.controller.d.ts.map +1 -0
  102. package/es/panel-component/panel-container/panel-container.controller.mjs +12 -0
  103. package/es/panel-component/panel-container/panel-container.css +1 -0
  104. package/es/panel-component/panel-container/panel-container.d.ts +27 -0
  105. package/es/panel-component/panel-container/panel-container.d.ts.map +1 -0
  106. package/es/panel-component/panel-container/panel-container.mjs +70 -0
  107. package/es/panel-component/panel-container/panel-container.provider.d.ts +16 -0
  108. package/es/panel-component/panel-container/panel-container.provider.d.ts.map +1 -0
  109. package/es/panel-component/panel-container/panel-container.provider.mjs +15 -0
  110. package/es/panel-component/panel-container/panel-container.state.d.ts +13 -0
  111. package/es/panel-component/panel-container/panel-container.state.d.ts.map +1 -0
  112. package/es/panel-component/panel-container/panel-container.state.mjs +7 -0
  113. package/es/panel-component/panel-ctrl-pos/index.d.ts +25 -0
  114. package/es/panel-component/panel-ctrl-pos/index.d.ts.map +1 -0
  115. package/es/panel-component/panel-ctrl-pos/index.mjs +14 -0
  116. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +36 -0
  117. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts.map +1 -0
  118. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.mjs +23 -0
  119. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +1 -0
  120. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +25 -0
  121. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -0
  122. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +45 -0
  123. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.d.ts +17 -0
  124. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.d.ts.map +1 -0
  125. package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.mjs +15 -0
  126. package/es/panel-component/panel-field/index.d.ts +26 -0
  127. package/es/panel-component/panel-field/index.d.ts.map +1 -0
  128. package/es/panel-component/panel-field/index.mjs +14 -0
  129. package/es/panel-component/panel-field/panel-field.controller.d.ts +75 -0
  130. package/es/panel-component/panel-field/panel-field.controller.d.ts.map +1 -0
  131. package/es/panel-component/panel-field/panel-field.controller.mjs +90 -0
  132. package/es/panel-component/panel-field/panel-field.css +1 -0
  133. package/es/panel-component/panel-field/panel-field.d.ts +28 -0
  134. package/es/panel-component/panel-field/panel-field.d.ts.map +1 -0
  135. package/es/panel-component/panel-field/panel-field.mjs +73 -0
  136. package/es/panel-component/panel-field/panel-field.provider.d.ts +15 -0
  137. package/es/panel-component/panel-field/panel-field.provider.d.ts.map +1 -0
  138. package/es/panel-component/panel-field/panel-field.provider.mjs +15 -0
  139. package/es/panel-component/panel-field/panel-field.state.d.ts +13 -0
  140. package/es/panel-component/panel-field/panel-field.state.d.ts.map +1 -0
  141. package/es/panel-component/panel-field/panel-field.state.mjs +7 -0
  142. package/es/panel-component/panel-rawitem/index.d.ts +25 -0
  143. package/es/panel-component/panel-rawitem/index.d.ts.map +1 -0
  144. package/es/panel-component/panel-rawitem/index.mjs +18 -0
  145. package/es/panel-component/panel-rawitem/panel-rawitem.controller.d.ts +29 -0
  146. package/es/panel-component/panel-rawitem/panel-rawitem.controller.d.ts.map +1 -0
  147. package/es/panel-component/panel-rawitem/panel-rawitem.controller.mjs +28 -0
  148. package/es/panel-component/panel-rawitem/panel-rawitem.css +1 -0
  149. package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +27 -0
  150. package/es/panel-component/panel-rawitem/panel-rawitem.d.ts.map +1 -0
  151. package/es/panel-component/panel-rawitem/panel-rawitem.mjs +50 -0
  152. package/es/panel-component/panel-rawitem/panel-rawitem.provider.d.ts +15 -0
  153. package/es/panel-component/panel-rawitem/panel-rawitem.provider.d.ts.map +1 -0
  154. package/es/panel-component/panel-rawitem/panel-rawitem.provider.mjs +15 -0
  155. package/es/panel-component/scroll-container/index.d.ts +26 -0
  156. package/es/panel-component/scroll-container/index.d.ts.map +1 -0
  157. package/es/panel-component/scroll-container/index.mjs +46 -0
  158. package/es/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
  159. package/es/panel-component/scroll-container/scroll-container/index.d.ts.map +1 -0
  160. package/es/panel-component/scroll-container/scroll-container/index.mjs +4 -0
  161. package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +23 -0
  162. package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts.map +1 -0
  163. package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.mjs +12 -0
  164. package/es/panel-component/scroll-container/scroll-container/scroll-container.css +1 -0
  165. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +27 -0
  166. package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -0
  167. package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +112 -0
  168. package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.d.ts +17 -0
  169. package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.d.ts.map +1 -0
  170. package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.mjs +15 -0
  171. package/es/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
  172. package/es/panel-component/scroll-container/scroll-container-item/index.d.ts.map +1 -0
  173. package/es/panel-component/scroll-container/scroll-container-item/index.mjs +4 -0
  174. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +22 -0
  175. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts.map +1 -0
  176. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.mjs +7 -0
  177. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +1 -0
  178. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +27 -0
  179. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts.map +1 -0
  180. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +64 -0
  181. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.d.ts +17 -0
  182. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.d.ts.map +1 -0
  183. package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.mjs +15 -0
  184. package/es/panel-component/single-data-container/index.d.ts +37 -0
  185. package/es/panel-component/single-data-container/index.d.ts.map +1 -0
  186. package/es/panel-component/single-data-container/index.mjs +21 -0
  187. package/es/panel-component/single-data-container/single-data-container.controller.d.ts +122 -0
  188. package/es/panel-component/single-data-container/single-data-container.controller.d.ts.map +1 -0
  189. package/es/panel-component/single-data-container/single-data-container.controller.mjs +285 -0
  190. package/es/panel-component/single-data-container/single-data-container.css +1 -0
  191. package/es/panel-component/single-data-container/single-data-container.d.ts +36 -0
  192. package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -0
  193. package/es/panel-component/single-data-container/single-data-container.mjs +77 -0
  194. package/es/panel-component/single-data-container/single-data-container.provider.d.ts +16 -0
  195. package/es/panel-component/single-data-container/single-data-container.provider.d.ts.map +1 -0
  196. package/es/panel-component/single-data-container/single-data-container.provider.mjs +15 -0
  197. package/es/panel-component/single-data-container/single-data-container.state.d.ts +20 -0
  198. package/es/panel-component/single-data-container/single-data-container.state.d.ts.map +1 -0
  199. package/es/panel-component/single-data-container/single-data-container.state.mjs +17 -0
  200. package/es/plugin/index.mjs +3 -0
  201. package/es/plugin/plugin-factory/plugin-factory.mjs +292 -0
  202. package/es/props/common.mjs +15 -0
  203. package/es/props/editor/array.mjs +11 -0
  204. package/es/props/editor/autocomplete.mjs +11 -0
  205. package/es/props/editor/cascader.mjs +11 -0
  206. package/es/props/editor/check-box-list.mjs +11 -0
  207. package/es/props/editor/check-box.mjs +11 -0
  208. package/es/props/editor/code.mjs +20 -0
  209. package/es/props/editor/color-picker.mjs +11 -0
  210. package/es/props/editor/common.mjs +48 -0
  211. package/es/props/editor/data-picker.mjs +11 -0
  212. package/es/props/editor/date-picker.mjs +11 -0
  213. package/es/props/editor/date-range.mjs +11 -0
  214. package/es/props/editor/dropdown-list.mjs +11 -0
  215. package/es/props/editor/html.mjs +11 -0
  216. package/es/props/editor/index.mjs +27 -0
  217. package/es/props/editor/list-box.mjs +11 -0
  218. package/es/props/editor/markdown.mjs +19 -0
  219. package/es/props/editor/number-range.mjs +11 -0
  220. package/es/props/editor/radio-button-list.mjs +11 -0
  221. package/es/props/editor/rate.mjs +11 -0
  222. package/es/props/editor/raw.mjs +11 -0
  223. package/es/props/editor/slider.mjs +11 -0
  224. package/{out → es}/props/editor/span.d.ts +2 -2
  225. package/es/props/editor/span.mjs +11 -0
  226. package/es/props/editor/stepper.mjs +11 -0
  227. package/es/props/editor/switch.mjs +11 -0
  228. package/es/props/editor/text-box.mjs +23 -0
  229. package/es/props/editor/upload.mjs +11 -0
  230. package/es/props/index.mjs +29 -0
  231. package/es/use/click-outside/click-outside.mjs +48 -0
  232. package/es/use/control/index.mjs +3 -0
  233. package/es/use/control/use-control-controller/use-control-controller.mjs +74 -0
  234. package/es/use/event/event.mjs +37 -0
  235. package/es/use/focus-blur/focus-blur.mjs +46 -0
  236. package/es/use/index.mjs +13 -0
  237. package/es/use/namespace/namespace.mjs +8 -0
  238. package/es/use/route/route.mjs +28 -0
  239. package/es/use/util/index.mjs +11 -0
  240. package/{out/use/view/index.js → es/use/view/index.mjs} +3 -1
  241. package/es/use/view/use-view-controller/use-view-controller.mjs +72 -0
  242. package/es/use/vue/vue.mjs +55 -0
  243. package/es/util/control/prepare-control.mjs +22 -0
  244. package/es/util/index.d.ts +11 -0
  245. package/es/util/index.d.ts.map +1 -0
  246. package/es/util/index.mjs +14 -0
  247. package/es/util/install.mjs +9 -0
  248. package/es/util/overlay-container/overlay-container.d.ts +93 -0
  249. package/es/util/overlay-container/overlay-container.d.ts.map +1 -0
  250. package/es/util/overlay-container/overlay-container.mjs +114 -0
  251. package/es/util/overlay-popover-container/overlay-popover-container.d.ts +17 -0
  252. package/es/util/overlay-popover-container/overlay-popover-container.d.ts.map +1 -0
  253. package/es/util/overlay-popover-container/overlay-popover-container.mjs +10 -0
  254. package/es/util/overlay-view-util/overlay-view-util.d.ts +9 -0
  255. package/es/util/overlay-view-util/overlay-view-util.d.ts.map +1 -0
  256. package/es/util/overlay-view-util/overlay-view-util.mjs +63 -0
  257. package/es/util/render/render.mjs +20 -0
  258. package/es/util/route/route-listener.mjs +73 -0
  259. package/{out → es}/util/route/route.d.ts +20 -20
  260. package/es/util/route/route.d.ts.map +1 -0
  261. package/es/util/route/route.mjs +252 -0
  262. package/es/util/router-callback/router-callback-item.d.ts +62 -0
  263. package/es/util/router-callback/router-callback-item.d.ts.map +1 -0
  264. package/es/util/router-callback/router-callback-item.mjs +72 -0
  265. package/es/util/router-callback/router-callback.d.ts +60 -0
  266. package/es/util/router-callback/router-callback.d.ts.map +1 -0
  267. package/es/util/router-callback/router-callback.mjs +86 -0
  268. package/es/util/store/app-store/app-store.d.ts +10 -0
  269. package/es/util/store/app-store/app-store.d.ts.map +1 -0
  270. package/es/util/store/app-store/app-store.mjs +10 -0
  271. package/es/util/store/index.d.ts +4 -0
  272. package/es/util/store/index.d.ts.map +1 -0
  273. package/es/util/store/index.mjs +8 -0
  274. package/es/util/store/ui-store/ui-store.d.ts +32 -0
  275. package/es/util/store/ui-store/ui-store.d.ts.map +1 -0
  276. package/es/util/store/ui-store/ui-store.mjs +15 -0
  277. package/es/util/store/ui-store/z-index.d.ts +35 -0
  278. package/es/util/store/ui-store/z-index.d.ts.map +1 -0
  279. package/es/util/store/ui-store/z-index.mjs +18 -0
  280. package/es/view/app-redirect-view/app-redirect-view.d.ts +2 -0
  281. package/es/view/app-redirect-view/app-redirect-view.d.ts.map +1 -0
  282. package/es/view/app-redirect-view/app-redirect-view.mjs +27 -0
  283. package/es/view/common/index.d.ts +49 -0
  284. package/es/view/common/index.d.ts.map +1 -0
  285. package/es/view/common/index.mjs +13 -0
  286. package/es/view/common/view.css +1 -0
  287. package/es/view/common/view.d.ts +53 -0
  288. package/es/view/common/view.d.ts.map +1 -0
  289. package/es/view/common/view.mjs +143 -0
  290. package/es/view/common/view.provider.d.ts +14 -0
  291. package/es/view/common/view.provider.d.ts.map +1 -0
  292. package/es/view/common/view.provider.mjs +8 -0
  293. package/es/view/index.d.ts +5 -0
  294. package/es/view/index.d.ts.map +1 -0
  295. package/es/view/index.mjs +6 -0
  296. package/es/view/portal-view/index.d.ts +41 -0
  297. package/es/view/portal-view/index.d.ts.map +1 -0
  298. package/es/view/portal-view/index.mjs +21 -0
  299. package/es/view/portal-view/portal-view.d.ts +44 -0
  300. package/es/view/portal-view/portal-view.d.ts.map +1 -0
  301. package/es/view/portal-view/portal-view.mjs +93 -0
  302. package/es/view/portal-view/portal-view.provider.d.ts +14 -0
  303. package/es/view/portal-view/portal-view.provider.d.ts.map +1 -0
  304. package/es/view/portal-view/portal-view.provider.mjs +8 -0
  305. package/es/view/todo-redirect/todo-redirect.d.ts +2 -0
  306. package/es/view/todo-redirect/todo-redirect.d.ts.map +1 -0
  307. package/es/view/todo-redirect/todo-redirect.mjs +52 -0
  308. package/lib/index.cjs +236 -0
  309. package/package.json +20 -16
  310. package/src/common/code-list/code-list.scss +5 -0
  311. package/src/common/code-list/code-list.tsx +108 -0
  312. package/src/common/control-base/control-base.scss +4 -0
  313. package/src/common/control-base/control-base.tsx +129 -0
  314. package/src/common/control-loading-placeholder/control-loading-placeholder.tsx +22 -0
  315. package/src/common/control-shell/control-shell.scss +5 -0
  316. package/src/common/control-shell/control-shell.tsx +70 -0
  317. package/src/common/icon/icon.tsx +69 -0
  318. package/src/common/index.ts +8 -0
  319. package/src/common/router-view/router-view.tsx +74 -0
  320. package/src/common/view-shell/view-shell.scss +5 -0
  321. package/src/common/view-shell/view-shell.tsx +70 -0
  322. package/src/index.ts +3 -0
  323. package/src/panel-component/grid-container/grid-container.controller.ts +18 -0
  324. package/src/panel-component/grid-container/grid-container.provider.ts +30 -0
  325. package/src/panel-component/grid-container/grid-container.scss +17 -0
  326. package/src/panel-component/grid-container/grid-container.state.ts +12 -0
  327. package/src/panel-component/grid-container/grid-container.tsx +119 -0
  328. package/src/panel-component/grid-container/index.ts +19 -0
  329. package/src/panel-component/index.ts +9 -0
  330. package/src/panel-component/multi-data-container/index.ts +22 -0
  331. package/src/panel-component/multi-data-container/multi-data-container-item.controller.ts +166 -0
  332. package/src/panel-component/multi-data-container/multi-data-container-itm.state.ts +20 -0
  333. package/src/panel-component/multi-data-container/multi-data-container.controller.ts +308 -0
  334. package/src/panel-component/multi-data-container/multi-data-container.provider.ts +30 -0
  335. package/src/panel-component/multi-data-container/multi-data-container.scss +10 -0
  336. package/src/panel-component/multi-data-container/multi-data-container.state.ts +20 -0
  337. package/src/panel-component/multi-data-container/multi-data-container.tsx +109 -0
  338. package/src/panel-component/nav-pos/index.ts +16 -0
  339. package/src/panel-component/nav-pos/nav-pos.controller.ts +373 -0
  340. package/src/panel-component/nav-pos/nav-pos.provider.ts +38 -0
  341. package/src/panel-component/nav-pos/nav-pos.scss +4 -0
  342. package/src/panel-component/nav-pos/nav-pos.state.ts +52 -0
  343. package/src/panel-component/nav-pos/nav-pos.tsx +121 -0
  344. package/src/panel-component/panel-container/index.ts +27 -0
  345. package/src/panel-component/panel-container/panel-container.controller.ts +18 -0
  346. package/src/panel-component/panel-container/panel-container.provider.ts +30 -0
  347. package/src/panel-component/panel-container/panel-container.scss +15 -0
  348. package/src/panel-component/panel-container/panel-container.state.ts +12 -0
  349. package/src/panel-component/panel-container/panel-container.tsx +72 -0
  350. package/src/panel-component/panel-ctrl-pos/index.ts +14 -0
  351. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.ts +53 -0
  352. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.ts +30 -0
  353. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +8 -0
  354. package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +53 -0
  355. package/src/panel-component/panel-field/index.ts +14 -0
  356. package/src/panel-component/panel-field/panel-field.controller.ts +130 -0
  357. package/src/panel-component/panel-field/panel-field.provider.ts +28 -0
  358. package/src/panel-component/panel-field/panel-field.scss +36 -0
  359. package/src/panel-component/panel-field/panel-field.state.ts +12 -0
  360. package/src/panel-component/panel-field/panel-field.tsx +78 -0
  361. package/src/panel-component/panel-rawitem/index.ts +18 -0
  362. package/src/panel-component/panel-rawitem/panel-rawitem.controller.ts +34 -0
  363. package/src/panel-component/panel-rawitem/panel-rawitem.provider.ts +28 -0
  364. package/src/panel-component/panel-rawitem/panel-rawitem.scss +8 -0
  365. package/src/panel-component/panel-rawitem/panel-rawitem.tsx +51 -0
  366. package/src/panel-component/scroll-container/index.ts +44 -0
  367. package/src/panel-component/scroll-container/scroll-container/index.ts +2 -0
  368. package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +32 -0
  369. package/src/panel-component/scroll-container/scroll-container/scroll-container.provider.ts +30 -0
  370. package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +34 -0
  371. package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +110 -0
  372. package/src/panel-component/scroll-container/scroll-container-item/index.ts +2 -0
  373. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +25 -0
  374. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.ts +30 -0
  375. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +9 -0
  376. package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +60 -0
  377. package/src/panel-component/single-data-container/index.ts +22 -0
  378. package/src/panel-component/single-data-container/single-data-container.controller.ts +345 -0
  379. package/src/panel-component/single-data-container/single-data-container.provider.ts +30 -0
  380. package/src/panel-component/single-data-container/single-data-container.scss +10 -0
  381. package/src/panel-component/single-data-container/single-data-container.state.ts +20 -0
  382. package/src/panel-component/single-data-container/single-data-container.tsx +95 -0
  383. package/src/props/editor/span.ts +1 -1
  384. package/src/util/index.ts +5 -0
  385. package/src/util/overlay-container/overlay-container.ts +155 -0
  386. package/src/util/overlay-popover-container/overlay-popover-container.ts +30 -0
  387. package/src/util/overlay-view-util/overlay-view-util.ts +89 -0
  388. package/src/util/route/route.ts +142 -142
  389. package/src/util/router-callback/router-callback-item.ts +98 -0
  390. package/src/util/router-callback/router-callback.ts +97 -0
  391. package/src/util/store/app-store/app-store.ts +10 -0
  392. package/src/util/store/index.ts +6 -0
  393. package/src/util/store/ui-store/ui-store.ts +27 -0
  394. package/src/util/store/ui-store/z-index.ts +53 -0
  395. package/src/view/app-redirect-view/app-redirect-view.tsx +26 -0
  396. package/src/view/common/index.ts +10 -0
  397. package/src/view/common/view.provider.ts +14 -0
  398. package/src/view/common/view.scss +38 -0
  399. package/src/view/common/view.tsx +180 -0
  400. package/src/view/index.ts +4 -0
  401. package/src/view/portal-view/index.ts +18 -0
  402. package/src/view/portal-view/portal-view.provider.ts +14 -0
  403. package/src/view/portal-view/portal-view.tsx +79 -0
  404. package/src/view/todo-redirect/todo-redirect.tsx +51 -0
  405. package/dist/index.esm.js +0 -1859
  406. package/out/index.d.ts.map +0 -1
  407. package/out/index.js +0 -5
  408. package/out/interface/index.js +0 -1
  409. package/out/interface/util/index.js +0 -1
  410. package/out/interface/util/route/route.js +0 -1
  411. package/out/plugin/index.js +0 -1
  412. package/out/plugin/plugin-factory/plugin-factory.js +0 -297
  413. package/out/props/common.js +0 -23
  414. package/out/props/editor/array.js +0 -25
  415. package/out/props/editor/autocomplete.js +0 -25
  416. package/out/props/editor/cascader.js +0 -25
  417. package/out/props/editor/check-box-list.js +0 -25
  418. package/out/props/editor/check-box.js +0 -25
  419. package/out/props/editor/code.js +0 -29
  420. package/out/props/editor/color-picker.js +0 -25
  421. package/out/props/editor/common.js +0 -79
  422. package/out/props/editor/data-picker.js +0 -25
  423. package/out/props/editor/date-picker.js +0 -25
  424. package/out/props/editor/date-range.js +0 -21
  425. package/out/props/editor/dropdown-list.js +0 -25
  426. package/out/props/editor/html.js +0 -25
  427. package/out/props/editor/index.js +0 -25
  428. package/out/props/editor/list-box.js +0 -25
  429. package/out/props/editor/markdown.js +0 -28
  430. package/out/props/editor/number-range.js +0 -21
  431. package/out/props/editor/radio-button-list.js +0 -25
  432. package/out/props/editor/rate.js +0 -21
  433. package/out/props/editor/raw.js +0 -21
  434. package/out/props/editor/slider.js +0 -21
  435. package/out/props/editor/span.js +0 -25
  436. package/out/props/editor/stepper.js +0 -21
  437. package/out/props/editor/switch.js +0 -21
  438. package/out/props/editor/text-box.js +0 -73
  439. package/out/props/editor/upload.js +0 -25
  440. package/out/props/index.js +0 -2
  441. package/out/use/click-outside/click-outside.js +0 -50
  442. package/out/use/control/index.js +0 -1
  443. package/out/use/control/use-control-controller/use-control-controller.js +0 -94
  444. package/out/use/event/event.js +0 -39
  445. package/out/use/focus-blur/focus-blur.js +0 -63
  446. package/out/use/index.js +0 -9
  447. package/out/use/namespace/namespace.js +0 -13
  448. package/out/use/route/route.js +0 -41
  449. package/out/use/util/index.js +0 -23
  450. package/out/use/view/use-view-controller/use-view-controller.js +0 -94
  451. package/out/use/vue/vue.js +0 -112
  452. package/out/util/control/prepare-control.js +0 -25
  453. package/out/util/index.d.ts +0 -6
  454. package/out/util/index.d.ts.map +0 -1
  455. package/out/util/index.js +0 -5
  456. package/out/util/install.js +0 -6
  457. package/out/util/render/render.js +0 -28
  458. package/out/util/route/route-listener.js +0 -76
  459. package/out/util/route/route.d.ts.map +0 -1
  460. package/out/util/route/route.js +0 -385
  461. /package/{out → es}/interface/index.d.ts +0 -0
  462. /package/{out → es}/interface/index.d.ts.map +0 -0
  463. /package/{out → es}/interface/util/index.d.ts +0 -0
  464. /package/{out → es}/interface/util/index.d.ts.map +0 -0
  465. /package/{out → es}/interface/util/route/route.d.ts +0 -0
  466. /package/{out → es}/interface/util/route/route.d.ts.map +0 -0
  467. /package/{out → es}/plugin/index.d.ts +0 -0
  468. /package/{out → es}/plugin/index.d.ts.map +0 -0
  469. /package/{out → es}/plugin/plugin-factory/plugin-factory.d.ts +0 -0
  470. /package/{out → es}/plugin/plugin-factory/plugin-factory.d.ts.map +0 -0
  471. /package/{out → es}/props/common.d.ts +0 -0
  472. /package/{out → es}/props/common.d.ts.map +0 -0
  473. /package/{out → es}/props/editor/array.d.ts +0 -0
  474. /package/{out → es}/props/editor/array.d.ts.map +0 -0
  475. /package/{out → es}/props/editor/autocomplete.d.ts +0 -0
  476. /package/{out → es}/props/editor/autocomplete.d.ts.map +0 -0
  477. /package/{out → es}/props/editor/cascader.d.ts +0 -0
  478. /package/{out → es}/props/editor/cascader.d.ts.map +0 -0
  479. /package/{out → es}/props/editor/check-box-list.d.ts +0 -0
  480. /package/{out → es}/props/editor/check-box-list.d.ts.map +0 -0
  481. /package/{out → es}/props/editor/check-box.d.ts +0 -0
  482. /package/{out → es}/props/editor/check-box.d.ts.map +0 -0
  483. /package/{out → es}/props/editor/code.d.ts +0 -0
  484. /package/{out → es}/props/editor/code.d.ts.map +0 -0
  485. /package/{out → es}/props/editor/color-picker.d.ts +0 -0
  486. /package/{out → es}/props/editor/color-picker.d.ts.map +0 -0
  487. /package/{out → es}/props/editor/common.d.ts +0 -0
  488. /package/{out → es}/props/editor/common.d.ts.map +0 -0
  489. /package/{out → es}/props/editor/data-picker.d.ts +0 -0
  490. /package/{out → es}/props/editor/data-picker.d.ts.map +0 -0
  491. /package/{out → es}/props/editor/date-picker.d.ts +0 -0
  492. /package/{out → es}/props/editor/date-picker.d.ts.map +0 -0
  493. /package/{out → es}/props/editor/date-range.d.ts +0 -0
  494. /package/{out → es}/props/editor/date-range.d.ts.map +0 -0
  495. /package/{out → es}/props/editor/dropdown-list.d.ts +0 -0
  496. /package/{out → es}/props/editor/dropdown-list.d.ts.map +0 -0
  497. /package/{out → es}/props/editor/html.d.ts +0 -0
  498. /package/{out → es}/props/editor/html.d.ts.map +0 -0
  499. /package/{out → es}/props/editor/index.d.ts +0 -0
  500. /package/{out → es}/props/editor/index.d.ts.map +0 -0
  501. /package/{out → es}/props/editor/list-box.d.ts +0 -0
  502. /package/{out → es}/props/editor/list-box.d.ts.map +0 -0
  503. /package/{out → es}/props/editor/markdown.d.ts +0 -0
  504. /package/{out → es}/props/editor/markdown.d.ts.map +0 -0
  505. /package/{out → es}/props/editor/number-range.d.ts +0 -0
  506. /package/{out → es}/props/editor/number-range.d.ts.map +0 -0
  507. /package/{out → es}/props/editor/radio-button-list.d.ts +0 -0
  508. /package/{out → es}/props/editor/radio-button-list.d.ts.map +0 -0
  509. /package/{out → es}/props/editor/rate.d.ts +0 -0
  510. /package/{out → es}/props/editor/rate.d.ts.map +0 -0
  511. /package/{out → es}/props/editor/raw.d.ts +0 -0
  512. /package/{out → es}/props/editor/raw.d.ts.map +0 -0
  513. /package/{out → es}/props/editor/slider.d.ts +0 -0
  514. /package/{out → es}/props/editor/slider.d.ts.map +0 -0
  515. /package/{out → es}/props/editor/span.d.ts.map +0 -0
  516. /package/{out → es}/props/editor/stepper.d.ts +0 -0
  517. /package/{out → es}/props/editor/stepper.d.ts.map +0 -0
  518. /package/{out → es}/props/editor/switch.d.ts +0 -0
  519. /package/{out → es}/props/editor/switch.d.ts.map +0 -0
  520. /package/{out → es}/props/editor/text-box.d.ts +0 -0
  521. /package/{out → es}/props/editor/text-box.d.ts.map +0 -0
  522. /package/{out → es}/props/editor/upload.d.ts +0 -0
  523. /package/{out → es}/props/editor/upload.d.ts.map +0 -0
  524. /package/{out → es}/props/index.d.ts +0 -0
  525. /package/{out → es}/props/index.d.ts.map +0 -0
  526. /package/{out → es}/use/click-outside/click-outside.d.ts +0 -0
  527. /package/{out → es}/use/click-outside/click-outside.d.ts.map +0 -0
  528. /package/{out → es}/use/control/index.d.ts +0 -0
  529. /package/{out → es}/use/control/index.d.ts.map +0 -0
  530. /package/{out → es}/use/control/use-control-controller/use-control-controller.d.ts +0 -0
  531. /package/{out → es}/use/control/use-control-controller/use-control-controller.d.ts.map +0 -0
  532. /package/{out → es}/use/event/event.d.ts +0 -0
  533. /package/{out → es}/use/event/event.d.ts.map +0 -0
  534. /package/{out → es}/use/focus-blur/focus-blur.d.ts +0 -0
  535. /package/{out → es}/use/focus-blur/focus-blur.d.ts.map +0 -0
  536. /package/{out → es}/use/index.d.ts +0 -0
  537. /package/{out → es}/use/index.d.ts.map +0 -0
  538. /package/{out → es}/use/namespace/namespace.d.ts +0 -0
  539. /package/{out → es}/use/namespace/namespace.d.ts.map +0 -0
  540. /package/{out → es}/use/route/route.d.ts +0 -0
  541. /package/{out → es}/use/route/route.d.ts.map +0 -0
  542. /package/{out → es}/use/util/index.d.ts +0 -0
  543. /package/{out → es}/use/util/index.d.ts.map +0 -0
  544. /package/{out → es}/use/view/index.d.ts +0 -0
  545. /package/{out → es}/use/view/index.d.ts.map +0 -0
  546. /package/{out → es}/use/view/use-view-controller/use-view-controller.d.ts +0 -0
  547. /package/{out → es}/use/view/use-view-controller/use-view-controller.d.ts.map +0 -0
  548. /package/{out → es}/use/vue/vue.d.ts +0 -0
  549. /package/{out → es}/use/vue/vue.d.ts.map +0 -0
  550. /package/{out → es}/util/control/prepare-control.d.ts +0 -0
  551. /package/{out → es}/util/control/prepare-control.d.ts.map +0 -0
  552. /package/{out → es}/util/install.d.ts +0 -0
  553. /package/{out → es}/util/install.d.ts.map +0 -0
  554. /package/{out → es}/util/render/render.d.ts +0 -0
  555. /package/{out → es}/util/render/render.d.ts.map +0 -0
  556. /package/{out → es}/util/route/route-listener.d.ts +0 -0
  557. /package/{out → es}/util/route/route-listener.d.ts.map +0 -0
@@ -1,25 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取下拉列表的props
4
- *
5
- * @author lxm
6
- * @date 2022-11-01 19:11:12
7
- * @export
8
- * @template C
9
- * @returns {*}
10
- */
11
- export function getDropdownProps() {
12
- return Object.assign(Object.assign({}, getEditorProps()), { value: [String, Number] });
13
- }
14
- /**
15
- * 获取表格下拉列表的props
16
- *
17
- * @author lxm
18
- * @date 2022-11-01 19:11:12
19
- * @export
20
- * @template C
21
- * @returns {*}
22
- */
23
- export function getGridDropdownProps() {
24
- return Object.assign(Object.assign({}, getDropdownProps()), getGridEditorCommonProps());
25
- }
@@ -1,25 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取html编辑框的props
4
- *
5
- * @author lxm
6
- * @date 2022-11-01 19:11:12
7
- * @export
8
- * @template C
9
- * @returns {*}
10
- */
11
- export function getHtmlProps() {
12
- return Object.assign(Object.assign({}, getEditorProps()), { value: String });
13
- }
14
- /**
15
- * 获取表格html编辑框的props
16
- *
17
- * @author lxm
18
- * @date 2022-11-01 19:11:12
19
- * @export
20
- * @template C
21
- * @returns {*}
22
- */
23
- export function getGridHtmlProps() {
24
- return Object.assign(Object.assign({}, getHtmlProps()), getGridEditorCommonProps());
25
- }
@@ -1,25 +0,0 @@
1
- export * from './text-box';
2
- export * from './span';
3
- export * from './common';
4
- export * from './dropdown-list';
5
- export * from './check-box-list';
6
- export * from './check-box';
7
- export * from './data-picker';
8
- export * from './date-picker';
9
- export * from './date-range';
10
- export * from './list-box';
11
- export * from './number-range';
12
- export * from './radio-button-list';
13
- export * from './rate';
14
- export * from './raw';
15
- export * from './slider';
16
- export * from './stepper';
17
- export * from './switch';
18
- export * from './upload';
19
- export * from './autocomplete';
20
- export * from './code';
21
- export * from './html';
22
- export * from './markdown';
23
- export * from './array';
24
- export * from './cascader';
25
- export * from './color-picker';
@@ -1,25 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取列表框的props
4
- *
5
- * @author lxm
6
- * @date 2022-11-01 19:11:12
7
- * @export
8
- * @template C
9
- * @returns {*}
10
- */
11
- export function getListBoxProps() {
12
- return Object.assign(Object.assign({}, getEditorProps()), { value: [String, Number] });
13
- }
14
- /**
15
- * 获取表格列表框的props
16
- *
17
- * @author lxm
18
- * @date 2022-11-01 19:11:12
19
- * @export
20
- * @template C
21
- * @returns {*}
22
- */
23
- export function getGridListBoxProps() {
24
- return Object.assign(Object.assign({}, getListBoxProps()), getGridEditorCommonProps());
25
- }
@@ -1,28 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取MARKDOWN的props
4
- *
5
- * @author lxm
6
- * @date 2022-11-01 19:11:12
7
- * @export
8
- * @template C
9
- * @returns {*}
10
- */
11
- export function getMarkDownProps() {
12
- return Object.assign(Object.assign({}, getEditorProps()), { data: { type: Object, required: false }, controller: { type: Object, required: false }, disabled: {
13
- type: Boolean,
14
- required: false,
15
- } });
16
- }
17
- /**
18
- * 获取表格MARKDOWN的props
19
- *
20
- * @author lxm
21
- * @date 2022-11-01 19:11:12
22
- * @export
23
- * @template C
24
- * @returns {*}
25
- */
26
- export function getGridMarkDownProps() {
27
- return Object.assign(Object.assign({}, getMarkDownProps()), getGridEditorCommonProps());
28
- }
@@ -1,21 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取数值范围的props
4
- *
5
- * @export
6
- * @template C
7
- * @returns {*}
8
- */
9
- export function getNumberRangeProps() {
10
- return Object.assign(Object.assign({}, getEditorProps()), { value: [String, Number] });
11
- }
12
- /**
13
- * 获取表格数值范围的props
14
- *
15
- * @export
16
- * @template C
17
- * @returns {*}
18
- */
19
- export function getGridNumberRangeProps() {
20
- return Object.assign(Object.assign({}, getNumberRangeProps()), getGridEditorCommonProps());
21
- }
@@ -1,25 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取单选框的props
4
- *
5
- * @author lxm
6
- * @date 2022-11-01 19:11:12
7
- * @export
8
- * @template C
9
- * @returns {*}
10
- */
11
- export function getRadioProps() {
12
- return Object.assign(Object.assign({}, getEditorProps()), { value: [String, Number] });
13
- }
14
- /**
15
- * 获取表格单选框的props
16
- *
17
- * @author lxm
18
- * @date 2022-11-01 19:11:12
19
- * @export
20
- * @template C
21
- * @returns {*}
22
- */
23
- export function getGridRadioProps() {
24
- return Object.assign(Object.assign({}, getRadioProps()), getGridEditorCommonProps());
25
- }
@@ -1,21 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取评分器的props
4
- *
5
- * @export
6
- * @template C
7
- * @returns {*}
8
- */
9
- export function getRateProps() {
10
- return Object.assign(Object.assign({}, getEditorProps()), { value: [String, Number] });
11
- }
12
- /**
13
- * 获取表格评分器的props
14
- *
15
- * @export
16
- * @template C
17
- * @returns {*}
18
- */
19
- export function getGridRateProps() {
20
- return Object.assign(Object.assign({}, getRateProps()), getGridEditorCommonProps());
21
- }
@@ -1,21 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取直接内容的props
4
- *
5
- * @export
6
- * @template C
7
- * @returns {*}
8
- */
9
- export function getRawProps() {
10
- return Object.assign(Object.assign({}, getEditorProps()), { value: [String, Number, Array] });
11
- }
12
- /**
13
- * 获取表格步进器的props
14
- *
15
- * @export
16
- * @template C
17
- * @returns {*}
18
- */
19
- export function getGridRawProps() {
20
- return Object.assign(Object.assign({}, getRawProps()), getGridEditorCommonProps());
21
- }
@@ -1,21 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取滑动输入条的props
4
- *
5
- * @export
6
- * @template C
7
- * @returns {*}
8
- */
9
- export function getSliderProps() {
10
- return Object.assign(Object.assign({}, getEditorProps()), { value: [String, Number] });
11
- }
12
- /**
13
- * 获取表格滑动输入条的props
14
- *
15
- * @export
16
- * @template C
17
- * @returns {*}
18
- */
19
- export function getGridSliderProps() {
20
- return Object.assign(Object.assign({}, getSliderProps()), getGridEditorCommonProps());
21
- }
@@ -1,25 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取标签的props
4
- *
5
- * @author lxm
6
- * @date 2022-11-01 19:11:12
7
- * @export
8
- * @template C
9
- * @returns {*}
10
- */
11
- export function getSpanProps() {
12
- return Object.assign(Object.assign({}, getEditorProps()), { value: [String, Number] });
13
- }
14
- /**
15
- * 获取表格标签的props
16
- *
17
- * @author lxm
18
- * @date 2022-11-01 19:11:12
19
- * @export
20
- * @template C
21
- * @returns {*}
22
- */
23
- export function getGridSpanProps() {
24
- return Object.assign(Object.assign({}, getSpanProps()), getGridEditorCommonProps());
25
- }
@@ -1,21 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取步进器的props
4
- *
5
- * @export
6
- * @template C
7
- * @returns {*}
8
- */
9
- export function getStepperProps() {
10
- return Object.assign(Object.assign({}, getEditorProps()), { value: [String, Number] });
11
- }
12
- /**
13
- * 获取表格步进器的props
14
- *
15
- * @export
16
- * @template C
17
- * @returns {*}
18
- */
19
- export function getGridStepperProps() {
20
- return Object.assign(Object.assign({}, getStepperProps()), getGridEditorCommonProps());
21
- }
@@ -1,21 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取开关的props
4
- *
5
- * @export
6
- * @template C
7
- * @returns {*}
8
- */
9
- export function getSwitchProps() {
10
- return Object.assign(Object.assign({}, getEditorProps()), { value: [String, Number] });
11
- }
12
- /**
13
- * 获取表格步进器的props
14
- *
15
- * @export
16
- * @template C
17
- * @returns {*}
18
- */
19
- export function getGridSwitchProps() {
20
- return Object.assign(Object.assign({}, getSwitchProps()), getGridEditorCommonProps());
21
- }
@@ -1,73 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取文本框的props
4
- *
5
- * @author lxm
6
- * @date 2022-11-01 19:11:12
7
- * @export
8
- * @template C
9
- * @returns {*}
10
- */
11
- export function getInputProps() {
12
- return Object.assign(Object.assign({}, getEditorProps()), { value: [String, Number] });
13
- }
14
- /**
15
- * 获取表格文本框的props
16
- *
17
- * @author lxm
18
- * @date 2022-11-01 19:11:12
19
- * @export
20
- * @template C
21
- * @returns {*}
22
- */
23
- export function getGridInputProps() {
24
- return Object.assign(Object.assign({}, getInputProps()), getGridEditorCommonProps());
25
- }
26
- /**
27
- * 获取数值框的props
28
- *
29
- * @author lxm
30
- * @date 2022-11-01 19:11:12
31
- * @export
32
- * @template C
33
- * @returns {*}
34
- */
35
- export function getInputNumberProps() {
36
- return Object.assign(Object.assign({}, getEditorProps()), { value: Number });
37
- }
38
- /**
39
- * 获取表格数值框的props
40
- *
41
- * @author lxm
42
- * @date 2022-11-01 19:11:12
43
- * @export
44
- * @template C
45
- * @returns {*}
46
- */
47
- export function getGridInputNumberProps() {
48
- return Object.assign(Object.assign({}, getInputNumberProps()), getGridEditorCommonProps());
49
- }
50
- /**
51
- * 获取ip框的props
52
- *
53
- * @author lxm
54
- * @date 2022-11-01 19:11:12
55
- * @export
56
- * @template C
57
- * @returns {*}
58
- */
59
- export function getInputIpProps() {
60
- return Object.assign(Object.assign({}, getEditorProps()), { value: String });
61
- }
62
- /**
63
- * 获取表格ip框的props
64
- *
65
- * @author lxm
66
- * @date 2022-11-01 19:11:12
67
- * @export
68
- * @template C
69
- * @returns {*}
70
- */
71
- export function getGridInputIpProps() {
72
- return Object.assign(Object.assign({}, getInputIpProps()), getGridEditorCommonProps());
73
- }
@@ -1,25 +0,0 @@
1
- import { getEditorProps, getGridEditorCommonProps } from './common';
2
- /**
3
- * 获取上传的props
4
- *
5
- * @author lxm
6
- * @date 2022-11-01 19:11:12
7
- * @export
8
- * @template C
9
- * @returns {*}
10
- */
11
- export function getUploadProps() {
12
- return Object.assign(Object.assign({}, getEditorProps()), { value: String });
13
- }
14
- /**
15
- * 获取表格上传的props
16
- *
17
- * @author lxm
18
- * @date 2022-11-01 19:11:12
19
- * @export
20
- * @template C
21
- * @returns {*}
22
- */
23
- export function getGridUploadProps() {
24
- return Object.assign(Object.assign({}, getUploadProps()), getGridEditorCommonProps());
25
- }
@@ -1,2 +0,0 @@
1
- export * from './common';
2
- export * from './editor';
@@ -1,50 +0,0 @@
1
- import { NOOP, onClickOutside, } from '@ibiz-template/core';
2
- import { isNil } from 'ramda';
3
- import { onBeforeUnmount, watch } from 'vue';
4
- /**
5
- * 使用点击组件外部监听事件
6
- *
7
- * @author lxm
8
- * @date 2022-10-31 14:10:12
9
- * @export
10
- * @param {Ref} elRef 组件的ref对象
11
- * @param {OnClickOutsideHandler} handler 处理回调
12
- * @param {OnClickOutsideOptions} [options={}] 额外配置参数
13
- * @returns {*} {OnClickOutsideResult}
14
- */
15
- export function useClickOutside(elRef, handler, options = {}) {
16
- let stop = NOOP;
17
- let pause = NOOP;
18
- let proceed = NOOP;
19
- // 移除监听,清空方法
20
- const destroy = () => {
21
- stop();
22
- stop = NOOP;
23
- pause = NOOP;
24
- proceed = NOOP;
25
- };
26
- watch(elRef, (newVal, oldVal) => {
27
- if (newVal !== oldVal) {
28
- if (isNil(newVal)) {
29
- destroy();
30
- }
31
- else {
32
- const result = onClickOutside((newVal === null || newVal === void 0 ? void 0 : newVal.$el) || newVal, handler, options);
33
- stop = result.stop;
34
- pause = result.pause;
35
- proceed = result.proceed;
36
- }
37
- }
38
- }, { immediate: true });
39
- // 组件销毁前销毁监听
40
- onBeforeUnmount(() => {
41
- if (stop !== NOOP) {
42
- destroy();
43
- }
44
- });
45
- return {
46
- stop: () => stop(),
47
- pause: () => pause(),
48
- proceed: () => proceed(),
49
- };
50
- }
@@ -1 +0,0 @@
1
- export * from './use-control-controller/use-control-controller';
@@ -1,94 +0,0 @@
1
- import { getCurrentInstance, onBeforeUnmount, reactive, watch } from 'vue';
2
- import { useForce, useProps } from '../../vue/vue';
3
- import { useCtx } from '../../util';
4
- /**
5
- * 监听并更新上下文和视图参数(引用不变)
6
- * @author lxm
7
- * @date 2023-05-25 01:48:14
8
- * @param {IData} props
9
- * @param {IViewController} view
10
- */
11
- function watchAndUpdateContextParams(props, control) {
12
- watch(() => ({ context: props.context, params: props.params }), newVal => {
13
- // 不改变引用的情况下,重置控制器里的上下文和视图参数。
14
- // 重新计算上下文和视图参数
15
- control.updateContextParams(Object.assign({}, newVal));
16
- ibiz.log.debug(`${control.model.id}的上下文或视图参数变更:`, newVal);
17
- });
18
- }
19
- /**
20
- * 监听部件的props并更新部件state状态
21
- * 排除部分keys,如context,params
22
- * @author lxm
23
- * @date 2023-10-27 01:46:23
24
- * @param {IData} props
25
- * @param {IControlController} control
26
- */
27
- function watchAndUpdateState(props, control) {
28
- const excludeKeys = ['context', 'params', 'modelData'];
29
- watch(() => {
30
- const watchProps = {};
31
- Object.keys(props).forEach(key => {
32
- if (!excludeKeys.includes(key)) {
33
- watchProps[key] = props[key];
34
- }
35
- });
36
- return watchProps;
37
- }, (newVal, oldVal) => {
38
- const changeProps = {};
39
- Object.keys(newVal).forEach(key => {
40
- if (newVal[key] !== (oldVal || {})[key]) {
41
- changeProps[key] = newVal[key];
42
- }
43
- });
44
- ibiz.log.debug(`部件 [${control.model.name}] state 变更`, changeProps);
45
- Object.keys(changeProps).forEach(key => {
46
- if (changeProps[key] !== undefined) {
47
- control.state[key] = changeProps[key];
48
- }
49
- });
50
- }, { immediate: true });
51
- }
52
- /**
53
- * 初始化部件控制器
54
- *
55
- * @author chitanda
56
- * @date 2022-08-15 17:08:47
57
- * @export
58
- * @template T
59
- * @param {() => T} fn
60
- * @return {*} {T}
61
- */
62
- export function useControlController(fn) {
63
- // 获取上层组件的ctx
64
- const ctx = useCtx();
65
- // 获取 props
66
- const props = useProps();
67
- // 上下文里提前预告部件
68
- ctx.evt.emit('onForecast', props.modelData.name);
69
- // 实例化部件控制器
70
- const provider = props.provider;
71
- let c;
72
- if (provider === null || provider === void 0 ? void 0 : provider.createController) {
73
- // 如果适配器给了创建方法使用适配器的方法
74
- c = provider.createController(props.modelData, props.context, props.params, ctx);
75
- }
76
- else {
77
- c = fn(props.modelData, props.context, props.params, ctx);
78
- }
79
- watchAndUpdateContextParams(props, c);
80
- watchAndUpdateState(props, c);
81
- c.state = reactive(c.state);
82
- // 挂载强制更新方法
83
- c.force = useForce();
84
- const vue = getCurrentInstance().proxy;
85
- c.evt.onAll((eventName, event) => {
86
- vue.$emit(eventName.slice(2), event);
87
- });
88
- // vue组件级事件最早的抛出controller
89
- vue.$emit('controllerAppear', c);
90
- c.created();
91
- // 卸载时销毁
92
- onBeforeUnmount(() => c.destroyed());
93
- return c;
94
- }
@@ -1,39 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-explicit-any */
2
- import { listenJSEvent, NOOP } from '@ibiz-template/core';
3
- import { isNil } from 'ramda';
4
- import { onBeforeUnmount, watch } from 'vue';
5
- /**
6
- * 监听JS原生事件,返回cleanup回调,调用后删除该监听
7
- *
8
- * @author lxm
9
- * @date 2022-10-28 18:10:36
10
- * @export
11
- * @param {Ref} elRef 监听组件的ref
12
- * @param {string} eventName 监听事件名称
13
- * @param {(..._args: any[]) => any} listener 监听回调
14
- * @param {AddEventListenerOptions} options 额外参数
15
- * @returns {*} {() => void}
16
- */
17
- export function useEventListener(elRef, eventName, listener, options = {}) {
18
- let cleanup = NOOP;
19
- watch(elRef, (newVal, oldVal) => {
20
- if (newVal !== oldVal) {
21
- if (isNil(newVal)) {
22
- cleanup();
23
- cleanup = NOOP;
24
- }
25
- else {
26
- cleanup = listenJSEvent((newVal === null || newVal === void 0 ? void 0 : newVal.$el) || newVal, eventName, listener, options);
27
- }
28
- }
29
- }, { immediate: true });
30
- // 组件销毁前销毁监听
31
- onBeforeUnmount(() => {
32
- if (cleanup !== NOOP) {
33
- cleanup();
34
- }
35
- });
36
- return () => {
37
- cleanup();
38
- };
39
- }
@@ -1,63 +0,0 @@
1
- import { ref } from 'vue';
2
- import { useClickOutside } from '../click-outside/click-outside';
3
- import { useEventListener } from '../event/event';
4
- /**
5
- * 给指定元素添加聚焦和失焦事件
6
- * 点击指定元素时会触发聚焦事件
7
- * 已经聚焦之后,点击指定元素外部会触发失焦事件。
8
- * @author lxm
9
- * @date 2023-05-31 08:36:04
10
- * @export
11
- * @return {*}
12
- */
13
- export function useFocusAndBlur(focus, blur) {
14
- /** 添加事件的元素ref */
15
- const componentRef = ref();
16
- const isFocus = ref(false);
17
- let outsideFuns;
18
- /**
19
- * 手动触发失焦事件
20
- * @author lxm
21
- * @date 2023-05-31 08:43:54
22
- */
23
- const doBlur = () => {
24
- if (!isFocus.value) {
25
- ibiz.log.debug('没有聚焦,不触发失焦');
26
- }
27
- blur();
28
- outsideFuns.stop();
29
- isFocus.value = false;
30
- };
31
- /**
32
- * 暂停外部点击的监听
33
- * 用于某些组件操作过程中会触发外部点击的场景
34
- * @author lxm
35
- * @date 2023-05-31 08:47:53
36
- */
37
- const pause = () => {
38
- if (outsideFuns) {
39
- outsideFuns.pause();
40
- }
41
- };
42
- /**
43
- * 暂停外部点击的监听
44
- * 用于某些组件操作过程中会触发外部点击的场景
45
- * @author lxm
46
- * @date 2023-05-31 08:47:53
47
- */
48
- const stop = () => {
49
- if (outsideFuns) {
50
- outsideFuns.stop();
51
- }
52
- };
53
- useEventListener(componentRef, 'click', _evt => {
54
- if (!isFocus.value) {
55
- outsideFuns = useClickOutside(componentRef, () => {
56
- doBlur();
57
- });
58
- isFocus.value = true;
59
- focus();
60
- }
61
- }, { capture: true });
62
- return { componentRef, isFocus, doBlur, pause, stop };
63
- }
package/out/use/index.js 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';