@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.
- package/dist/index.min.css +1 -0
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/es/_virtual/_commonjsHelpers.mjs +40 -0
- package/es/common/code-list/code-list.css +1 -0
- package/es/common/code-list/code-list.d.ts +58 -0
- package/es/common/code-list/code-list.d.ts.map +1 -0
- package/es/common/code-list/code-list.mjs +85 -0
- package/es/common/control-base/control-base.css +1 -0
- package/es/common/control-base/control-base.d.ts +2 -0
- package/es/common/control-base/control-base.d.ts.map +1 -0
- package/es/common/control-base/control-base.mjs +99 -0
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +31 -0
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts.map +1 -0
- package/es/common/control-loading-placeholder/control-loading-placeholder.mjs +30 -0
- package/es/common/control-shell/control-shell.css +1 -0
- package/es/common/control-shell/control-shell.d.ts +21 -0
- package/es/common/control-shell/control-shell.d.ts.map +1 -0
- package/es/common/control-shell/control-shell.mjs +56 -0
- package/es/common/icon/icon.d.ts +29 -0
- package/es/common/icon/icon.d.ts.map +1 -0
- package/es/common/icon/icon.mjs +89 -0
- package/es/common/index.d.ts +9 -0
- package/es/common/index.d.ts.map +1 -0
- package/es/common/index.mjs +9 -0
- package/es/common/router-view/router-view.d.ts +30 -0
- package/es/common/router-view/router-view.d.ts.map +1 -0
- package/es/common/router-view/router-view.mjs +75 -0
- package/es/common/view-shell/view-shell.css +1 -0
- package/es/common/view-shell/view-shell.d.ts +40 -0
- package/es/common/view-shell/view-shell.d.ts.map +1 -0
- package/es/common/view-shell/view-shell.mjs +77 -0
- package/{out → es}/index.d.ts +3 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.mjs +95 -0
- package/es/interface/index.mjs +3 -0
- package/es/interface/util/index.mjs +3 -0
- package/es/interface/util/route/route.mjs +1 -0
- package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +535 -0
- package/es/panel-component/grid-container/grid-container.controller.d.ts +15 -0
- package/es/panel-component/grid-container/grid-container.controller.d.ts.map +1 -0
- package/es/panel-component/grid-container/grid-container.controller.mjs +12 -0
- package/es/panel-component/grid-container/grid-container.css +1 -0
- package/es/panel-component/grid-container/grid-container.d.ts +38 -0
- package/es/panel-component/grid-container/grid-container.d.ts.map +1 -0
- package/es/panel-component/grid-container/grid-container.mjs +106 -0
- package/es/panel-component/grid-container/grid-container.provider.d.ts +16 -0
- package/es/panel-component/grid-container/grid-container.provider.d.ts.map +1 -0
- package/es/panel-component/grid-container/grid-container.provider.mjs +15 -0
- package/es/panel-component/grid-container/grid-container.state.d.ts +13 -0
- package/es/panel-component/grid-container/grid-container.state.d.ts.map +1 -0
- package/es/panel-component/grid-container/grid-container.state.mjs +7 -0
- package/es/panel-component/grid-container/index.d.ts +38 -0
- package/es/panel-component/grid-container/index.d.ts.map +1 -0
- package/es/panel-component/grid-container/index.mjs +18 -0
- package/es/panel-component/index.d.ts +10 -0
- package/es/panel-component/index.d.ts.map +1 -0
- package/es/panel-component/index.mjs +28 -0
- package/es/panel-component/multi-data-container/index.d.ts +37 -0
- package/es/panel-component/multi-data-container/index.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/index.mjs +21 -0
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.d.ts +61 -0
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.mjs +117 -0
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.d.ts +20 -0
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.mjs +17 -0
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts +107 -0
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +260 -0
- package/es/panel-component/multi-data-container/multi-data-container.css +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.d.ts +36 -0
- package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.mjs +87 -0
- package/es/panel-component/multi-data-container/multi-data-container.provider.d.ts +16 -0
- package/es/panel-component/multi-data-container/multi-data-container.provider.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.provider.mjs +15 -0
- package/es/panel-component/multi-data-container/multi-data-container.state.d.ts +20 -0
- package/es/panel-component/multi-data-container/multi-data-container.state.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.state.mjs +17 -0
- package/es/panel-component/nav-pos/index.d.ts +28 -0
- package/es/panel-component/nav-pos/index.d.ts.map +1 -0
- package/es/panel-component/nav-pos/index.mjs +15 -0
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts +163 -0
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts.map +1 -0
- package/es/panel-component/nav-pos/nav-pos.controller.mjs +283 -0
- package/es/panel-component/nav-pos/nav-pos.css +1 -0
- package/es/panel-component/nav-pos/nav-pos.d.ts +29 -0
- package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -0
- package/es/panel-component/nav-pos/nav-pos.mjs +105 -0
- package/es/panel-component/nav-pos/nav-pos.provider.d.ts +23 -0
- package/es/panel-component/nav-pos/nav-pos.provider.d.ts.map +1 -0
- package/es/panel-component/nav-pos/nav-pos.provider.mjs +24 -0
- package/es/panel-component/nav-pos/nav-pos.state.d.ts +50 -0
- package/es/panel-component/nav-pos/nav-pos.state.d.ts.map +1 -0
- package/es/panel-component/nav-pos/nav-pos.state.mjs +47 -0
- package/es/panel-component/panel-container/index.d.ts +27 -0
- package/es/panel-component/panel-container/index.d.ts.map +1 -0
- package/es/panel-component/panel-container/index.mjs +22 -0
- package/es/panel-component/panel-container/panel-container.controller.d.ts +15 -0
- package/es/panel-component/panel-container/panel-container.controller.d.ts.map +1 -0
- package/es/panel-component/panel-container/panel-container.controller.mjs +12 -0
- package/es/panel-component/panel-container/panel-container.css +1 -0
- package/es/panel-component/panel-container/panel-container.d.ts +27 -0
- package/es/panel-component/panel-container/panel-container.d.ts.map +1 -0
- package/es/panel-component/panel-container/panel-container.mjs +70 -0
- package/es/panel-component/panel-container/panel-container.provider.d.ts +16 -0
- package/es/panel-component/panel-container/panel-container.provider.d.ts.map +1 -0
- package/es/panel-component/panel-container/panel-container.provider.mjs +15 -0
- package/es/panel-component/panel-container/panel-container.state.d.ts +13 -0
- package/es/panel-component/panel-container/panel-container.state.d.ts.map +1 -0
- package/es/panel-component/panel-container/panel-container.state.mjs +7 -0
- package/es/panel-component/panel-ctrl-pos/index.d.ts +25 -0
- package/es/panel-component/panel-ctrl-pos/index.d.ts.map +1 -0
- package/es/panel-component/panel-ctrl-pos/index.mjs +14 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +36 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts.map +1 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.mjs +23 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +1 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +25 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +45 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.d.ts +17 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.d.ts.map +1 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.mjs +15 -0
- package/es/panel-component/panel-field/index.d.ts +26 -0
- package/es/panel-component/panel-field/index.d.ts.map +1 -0
- package/es/panel-component/panel-field/index.mjs +14 -0
- package/es/panel-component/panel-field/panel-field.controller.d.ts +75 -0
- package/es/panel-component/panel-field/panel-field.controller.d.ts.map +1 -0
- package/es/panel-component/panel-field/panel-field.controller.mjs +90 -0
- package/es/panel-component/panel-field/panel-field.css +1 -0
- package/es/panel-component/panel-field/panel-field.d.ts +28 -0
- package/es/panel-component/panel-field/panel-field.d.ts.map +1 -0
- package/es/panel-component/panel-field/panel-field.mjs +73 -0
- package/es/panel-component/panel-field/panel-field.provider.d.ts +15 -0
- package/es/panel-component/panel-field/panel-field.provider.d.ts.map +1 -0
- package/es/panel-component/panel-field/panel-field.provider.mjs +15 -0
- package/es/panel-component/panel-field/panel-field.state.d.ts +13 -0
- package/es/panel-component/panel-field/panel-field.state.d.ts.map +1 -0
- package/es/panel-component/panel-field/panel-field.state.mjs +7 -0
- package/es/panel-component/panel-rawitem/index.d.ts +25 -0
- package/es/panel-component/panel-rawitem/index.d.ts.map +1 -0
- package/es/panel-component/panel-rawitem/index.mjs +18 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.d.ts +29 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.d.ts.map +1 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.mjs +28 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.css +1 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +27 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts.map +1 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.mjs +50 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.d.ts +15 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.d.ts.map +1 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.mjs +15 -0
- package/es/panel-component/scroll-container/index.d.ts +26 -0
- package/es/panel-component/scroll-container/index.d.ts.map +1 -0
- package/es/panel-component/scroll-container/index.mjs +46 -0
- package/es/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
- package/es/panel-component/scroll-container/scroll-container/index.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container/index.mjs +4 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +23 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.mjs +12 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.css +1 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +27 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +112 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.d.ts +17 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.mjs +15 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.mjs +4 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +22 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.mjs +7 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +27 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +64 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.d.ts +17 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.mjs +15 -0
- package/es/panel-component/single-data-container/index.d.ts +37 -0
- package/es/panel-component/single-data-container/index.d.ts.map +1 -0
- package/es/panel-component/single-data-container/index.mjs +21 -0
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts +122 -0
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts.map +1 -0
- package/es/panel-component/single-data-container/single-data-container.controller.mjs +285 -0
- package/es/panel-component/single-data-container/single-data-container.css +1 -0
- package/es/panel-component/single-data-container/single-data-container.d.ts +36 -0
- package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -0
- package/es/panel-component/single-data-container/single-data-container.mjs +77 -0
- package/es/panel-component/single-data-container/single-data-container.provider.d.ts +16 -0
- package/es/panel-component/single-data-container/single-data-container.provider.d.ts.map +1 -0
- package/es/panel-component/single-data-container/single-data-container.provider.mjs +15 -0
- package/es/panel-component/single-data-container/single-data-container.state.d.ts +20 -0
- package/es/panel-component/single-data-container/single-data-container.state.d.ts.map +1 -0
- package/es/panel-component/single-data-container/single-data-container.state.mjs +17 -0
- package/es/plugin/index.mjs +3 -0
- package/es/plugin/plugin-factory/plugin-factory.mjs +292 -0
- package/es/props/common.mjs +15 -0
- package/es/props/editor/array.mjs +11 -0
- package/es/props/editor/autocomplete.mjs +11 -0
- package/es/props/editor/cascader.mjs +11 -0
- package/es/props/editor/check-box-list.mjs +11 -0
- package/es/props/editor/check-box.mjs +11 -0
- package/es/props/editor/code.mjs +20 -0
- package/es/props/editor/color-picker.mjs +11 -0
- package/es/props/editor/common.mjs +48 -0
- package/es/props/editor/data-picker.mjs +11 -0
- package/es/props/editor/date-picker.mjs +11 -0
- package/es/props/editor/date-range.mjs +11 -0
- package/es/props/editor/dropdown-list.mjs +11 -0
- package/es/props/editor/html.mjs +11 -0
- package/es/props/editor/index.mjs +27 -0
- package/es/props/editor/list-box.mjs +11 -0
- package/es/props/editor/markdown.mjs +19 -0
- package/es/props/editor/number-range.mjs +11 -0
- package/es/props/editor/radio-button-list.mjs +11 -0
- package/es/props/editor/rate.mjs +11 -0
- package/es/props/editor/raw.mjs +11 -0
- package/es/props/editor/slider.mjs +11 -0
- package/{out → es}/props/editor/span.d.ts +2 -2
- package/es/props/editor/span.mjs +11 -0
- package/es/props/editor/stepper.mjs +11 -0
- package/es/props/editor/switch.mjs +11 -0
- package/es/props/editor/text-box.mjs +23 -0
- package/es/props/editor/upload.mjs +11 -0
- package/es/props/index.mjs +29 -0
- package/es/use/click-outside/click-outside.mjs +48 -0
- package/es/use/control/index.mjs +3 -0
- package/es/use/control/use-control-controller/use-control-controller.mjs +74 -0
- package/es/use/event/event.mjs +37 -0
- package/es/use/focus-blur/focus-blur.mjs +46 -0
- package/es/use/index.mjs +13 -0
- package/es/use/namespace/namespace.mjs +8 -0
- package/es/use/route/route.mjs +28 -0
- package/es/use/util/index.mjs +11 -0
- package/{out/use/view/index.js → es/use/view/index.mjs} +3 -1
- package/es/use/view/use-view-controller/use-view-controller.mjs +72 -0
- package/es/use/vue/vue.mjs +55 -0
- package/es/util/control/prepare-control.mjs +22 -0
- package/es/util/index.d.ts +11 -0
- package/es/util/index.d.ts.map +1 -0
- package/es/util/index.mjs +14 -0
- package/es/util/install.mjs +9 -0
- package/es/util/overlay-container/overlay-container.d.ts +93 -0
- package/es/util/overlay-container/overlay-container.d.ts.map +1 -0
- package/es/util/overlay-container/overlay-container.mjs +114 -0
- package/es/util/overlay-popover-container/overlay-popover-container.d.ts +17 -0
- package/es/util/overlay-popover-container/overlay-popover-container.d.ts.map +1 -0
- package/es/util/overlay-popover-container/overlay-popover-container.mjs +10 -0
- package/es/util/overlay-view-util/overlay-view-util.d.ts +9 -0
- package/es/util/overlay-view-util/overlay-view-util.d.ts.map +1 -0
- package/es/util/overlay-view-util/overlay-view-util.mjs +63 -0
- package/es/util/render/render.mjs +20 -0
- package/es/util/route/route-listener.mjs +73 -0
- package/{out → es}/util/route/route.d.ts +20 -20
- package/es/util/route/route.d.ts.map +1 -0
- package/es/util/route/route.mjs +252 -0
- package/es/util/router-callback/router-callback-item.d.ts +62 -0
- package/es/util/router-callback/router-callback-item.d.ts.map +1 -0
- package/es/util/router-callback/router-callback-item.mjs +72 -0
- package/es/util/router-callback/router-callback.d.ts +60 -0
- package/es/util/router-callback/router-callback.d.ts.map +1 -0
- package/es/util/router-callback/router-callback.mjs +86 -0
- package/es/util/store/app-store/app-store.d.ts +10 -0
- package/es/util/store/app-store/app-store.d.ts.map +1 -0
- package/es/util/store/app-store/app-store.mjs +10 -0
- package/es/util/store/index.d.ts +4 -0
- package/es/util/store/index.d.ts.map +1 -0
- package/es/util/store/index.mjs +8 -0
- package/es/util/store/ui-store/ui-store.d.ts +32 -0
- package/es/util/store/ui-store/ui-store.d.ts.map +1 -0
- package/es/util/store/ui-store/ui-store.mjs +15 -0
- package/es/util/store/ui-store/z-index.d.ts +35 -0
- package/es/util/store/ui-store/z-index.d.ts.map +1 -0
- package/es/util/store/ui-store/z-index.mjs +18 -0
- package/es/view/app-redirect-view/app-redirect-view.d.ts +2 -0
- package/es/view/app-redirect-view/app-redirect-view.d.ts.map +1 -0
- package/es/view/app-redirect-view/app-redirect-view.mjs +27 -0
- package/es/view/common/index.d.ts +49 -0
- package/es/view/common/index.d.ts.map +1 -0
- package/es/view/common/index.mjs +13 -0
- package/es/view/common/view.css +1 -0
- package/es/view/common/view.d.ts +53 -0
- package/es/view/common/view.d.ts.map +1 -0
- package/es/view/common/view.mjs +143 -0
- package/es/view/common/view.provider.d.ts +14 -0
- package/es/view/common/view.provider.d.ts.map +1 -0
- package/es/view/common/view.provider.mjs +8 -0
- package/es/view/index.d.ts +5 -0
- package/es/view/index.d.ts.map +1 -0
- package/es/view/index.mjs +6 -0
- package/es/view/portal-view/index.d.ts +41 -0
- package/es/view/portal-view/index.d.ts.map +1 -0
- package/es/view/portal-view/index.mjs +21 -0
- package/es/view/portal-view/portal-view.d.ts +44 -0
- package/es/view/portal-view/portal-view.d.ts.map +1 -0
- package/es/view/portal-view/portal-view.mjs +93 -0
- package/es/view/portal-view/portal-view.provider.d.ts +14 -0
- package/es/view/portal-view/portal-view.provider.d.ts.map +1 -0
- package/es/view/portal-view/portal-view.provider.mjs +8 -0
- package/es/view/todo-redirect/todo-redirect.d.ts +2 -0
- package/es/view/todo-redirect/todo-redirect.d.ts.map +1 -0
- package/es/view/todo-redirect/todo-redirect.mjs +52 -0
- package/lib/index.cjs +236 -0
- package/package.json +20 -16
- package/src/common/code-list/code-list.scss +5 -0
- package/src/common/code-list/code-list.tsx +108 -0
- package/src/common/control-base/control-base.scss +4 -0
- package/src/common/control-base/control-base.tsx +129 -0
- package/src/common/control-loading-placeholder/control-loading-placeholder.tsx +22 -0
- package/src/common/control-shell/control-shell.scss +5 -0
- package/src/common/control-shell/control-shell.tsx +70 -0
- package/src/common/icon/icon.tsx +69 -0
- package/src/common/index.ts +8 -0
- package/src/common/router-view/router-view.tsx +74 -0
- package/src/common/view-shell/view-shell.scss +5 -0
- package/src/common/view-shell/view-shell.tsx +70 -0
- package/src/index.ts +3 -0
- package/src/panel-component/grid-container/grid-container.controller.ts +18 -0
- package/src/panel-component/grid-container/grid-container.provider.ts +30 -0
- package/src/panel-component/grid-container/grid-container.scss +17 -0
- package/src/panel-component/grid-container/grid-container.state.ts +12 -0
- package/src/panel-component/grid-container/grid-container.tsx +119 -0
- package/src/panel-component/grid-container/index.ts +19 -0
- package/src/panel-component/index.ts +9 -0
- package/src/panel-component/multi-data-container/index.ts +22 -0
- package/src/panel-component/multi-data-container/multi-data-container-item.controller.ts +166 -0
- package/src/panel-component/multi-data-container/multi-data-container-itm.state.ts +20 -0
- package/src/panel-component/multi-data-container/multi-data-container.controller.ts +308 -0
- package/src/panel-component/multi-data-container/multi-data-container.provider.ts +30 -0
- package/src/panel-component/multi-data-container/multi-data-container.scss +10 -0
- package/src/panel-component/multi-data-container/multi-data-container.state.ts +20 -0
- package/src/panel-component/multi-data-container/multi-data-container.tsx +109 -0
- package/src/panel-component/nav-pos/index.ts +16 -0
- package/src/panel-component/nav-pos/nav-pos.controller.ts +373 -0
- package/src/panel-component/nav-pos/nav-pos.provider.ts +38 -0
- package/src/panel-component/nav-pos/nav-pos.scss +4 -0
- package/src/panel-component/nav-pos/nav-pos.state.ts +52 -0
- package/src/panel-component/nav-pos/nav-pos.tsx +121 -0
- package/src/panel-component/panel-container/index.ts +27 -0
- package/src/panel-component/panel-container/panel-container.controller.ts +18 -0
- package/src/panel-component/panel-container/panel-container.provider.ts +30 -0
- package/src/panel-component/panel-container/panel-container.scss +15 -0
- package/src/panel-component/panel-container/panel-container.state.ts +12 -0
- package/src/panel-component/panel-container/panel-container.tsx +72 -0
- package/src/panel-component/panel-ctrl-pos/index.ts +14 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.ts +53 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.ts +30 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +8 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +53 -0
- package/src/panel-component/panel-field/index.ts +14 -0
- package/src/panel-component/panel-field/panel-field.controller.ts +130 -0
- package/src/panel-component/panel-field/panel-field.provider.ts +28 -0
- package/src/panel-component/panel-field/panel-field.scss +36 -0
- package/src/panel-component/panel-field/panel-field.state.ts +12 -0
- package/src/panel-component/panel-field/panel-field.tsx +78 -0
- package/src/panel-component/panel-rawitem/index.ts +18 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.controller.ts +34 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.provider.ts +28 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.scss +8 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.tsx +51 -0
- package/src/panel-component/scroll-container/index.ts +44 -0
- package/src/panel-component/scroll-container/scroll-container/index.ts +2 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +32 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.provider.ts +30 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +34 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +110 -0
- package/src/panel-component/scroll-container/scroll-container-item/index.ts +2 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +25 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.ts +30 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +9 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +60 -0
- package/src/panel-component/single-data-container/index.ts +22 -0
- package/src/panel-component/single-data-container/single-data-container.controller.ts +345 -0
- package/src/panel-component/single-data-container/single-data-container.provider.ts +30 -0
- package/src/panel-component/single-data-container/single-data-container.scss +10 -0
- package/src/panel-component/single-data-container/single-data-container.state.ts +20 -0
- package/src/panel-component/single-data-container/single-data-container.tsx +95 -0
- package/src/props/editor/span.ts +1 -1
- package/src/util/index.ts +5 -0
- package/src/util/overlay-container/overlay-container.ts +155 -0
- package/src/util/overlay-popover-container/overlay-popover-container.ts +30 -0
- package/src/util/overlay-view-util/overlay-view-util.ts +89 -0
- package/src/util/route/route.ts +142 -142
- package/src/util/router-callback/router-callback-item.ts +98 -0
- package/src/util/router-callback/router-callback.ts +97 -0
- package/src/util/store/app-store/app-store.ts +10 -0
- package/src/util/store/index.ts +6 -0
- package/src/util/store/ui-store/ui-store.ts +27 -0
- package/src/util/store/ui-store/z-index.ts +53 -0
- package/src/view/app-redirect-view/app-redirect-view.tsx +26 -0
- package/src/view/common/index.ts +10 -0
- package/src/view/common/view.provider.ts +14 -0
- package/src/view/common/view.scss +38 -0
- package/src/view/common/view.tsx +180 -0
- package/src/view/index.ts +4 -0
- package/src/view/portal-view/index.ts +18 -0
- package/src/view/portal-view/portal-view.provider.ts +14 -0
- package/src/view/portal-view/portal-view.tsx +79 -0
- package/src/view/todo-redirect/todo-redirect.tsx +51 -0
- package/dist/index.esm.js +0 -1859
- package/out/index.d.ts.map +0 -1
- package/out/index.js +0 -5
- package/out/interface/index.js +0 -1
- package/out/interface/util/index.js +0 -1
- package/out/interface/util/route/route.js +0 -1
- package/out/plugin/index.js +0 -1
- package/out/plugin/plugin-factory/plugin-factory.js +0 -297
- package/out/props/common.js +0 -23
- package/out/props/editor/array.js +0 -25
- package/out/props/editor/autocomplete.js +0 -25
- package/out/props/editor/cascader.js +0 -25
- package/out/props/editor/check-box-list.js +0 -25
- package/out/props/editor/check-box.js +0 -25
- package/out/props/editor/code.js +0 -29
- package/out/props/editor/color-picker.js +0 -25
- package/out/props/editor/common.js +0 -79
- package/out/props/editor/data-picker.js +0 -25
- package/out/props/editor/date-picker.js +0 -25
- package/out/props/editor/date-range.js +0 -21
- package/out/props/editor/dropdown-list.js +0 -25
- package/out/props/editor/html.js +0 -25
- package/out/props/editor/index.js +0 -25
- package/out/props/editor/list-box.js +0 -25
- package/out/props/editor/markdown.js +0 -28
- package/out/props/editor/number-range.js +0 -21
- package/out/props/editor/radio-button-list.js +0 -25
- package/out/props/editor/rate.js +0 -21
- package/out/props/editor/raw.js +0 -21
- package/out/props/editor/slider.js +0 -21
- package/out/props/editor/span.js +0 -25
- package/out/props/editor/stepper.js +0 -21
- package/out/props/editor/switch.js +0 -21
- package/out/props/editor/text-box.js +0 -73
- package/out/props/editor/upload.js +0 -25
- package/out/props/index.js +0 -2
- package/out/use/click-outside/click-outside.js +0 -50
- package/out/use/control/index.js +0 -1
- package/out/use/control/use-control-controller/use-control-controller.js +0 -94
- package/out/use/event/event.js +0 -39
- package/out/use/focus-blur/focus-blur.js +0 -63
- package/out/use/index.js +0 -9
- package/out/use/namespace/namespace.js +0 -13
- package/out/use/route/route.js +0 -41
- package/out/use/util/index.js +0 -23
- package/out/use/view/use-view-controller/use-view-controller.js +0 -94
- package/out/use/vue/vue.js +0 -112
- package/out/util/control/prepare-control.js +0 -25
- package/out/util/index.d.ts +0 -6
- package/out/util/index.d.ts.map +0 -1
- package/out/util/index.js +0 -5
- package/out/util/install.js +0 -6
- package/out/util/render/render.js +0 -28
- package/out/util/route/route-listener.js +0 -76
- package/out/util/route/route.d.ts.map +0 -1
- package/out/util/route/route.js +0 -385
- /package/{out → es}/interface/index.d.ts +0 -0
- /package/{out → es}/interface/index.d.ts.map +0 -0
- /package/{out → es}/interface/util/index.d.ts +0 -0
- /package/{out → es}/interface/util/index.d.ts.map +0 -0
- /package/{out → es}/interface/util/route/route.d.ts +0 -0
- /package/{out → es}/interface/util/route/route.d.ts.map +0 -0
- /package/{out → es}/plugin/index.d.ts +0 -0
- /package/{out → es}/plugin/index.d.ts.map +0 -0
- /package/{out → es}/plugin/plugin-factory/plugin-factory.d.ts +0 -0
- /package/{out → es}/plugin/plugin-factory/plugin-factory.d.ts.map +0 -0
- /package/{out → es}/props/common.d.ts +0 -0
- /package/{out → es}/props/common.d.ts.map +0 -0
- /package/{out → es}/props/editor/array.d.ts +0 -0
- /package/{out → es}/props/editor/array.d.ts.map +0 -0
- /package/{out → es}/props/editor/autocomplete.d.ts +0 -0
- /package/{out → es}/props/editor/autocomplete.d.ts.map +0 -0
- /package/{out → es}/props/editor/cascader.d.ts +0 -0
- /package/{out → es}/props/editor/cascader.d.ts.map +0 -0
- /package/{out → es}/props/editor/check-box-list.d.ts +0 -0
- /package/{out → es}/props/editor/check-box-list.d.ts.map +0 -0
- /package/{out → es}/props/editor/check-box.d.ts +0 -0
- /package/{out → es}/props/editor/check-box.d.ts.map +0 -0
- /package/{out → es}/props/editor/code.d.ts +0 -0
- /package/{out → es}/props/editor/code.d.ts.map +0 -0
- /package/{out → es}/props/editor/color-picker.d.ts +0 -0
- /package/{out → es}/props/editor/color-picker.d.ts.map +0 -0
- /package/{out → es}/props/editor/common.d.ts +0 -0
- /package/{out → es}/props/editor/common.d.ts.map +0 -0
- /package/{out → es}/props/editor/data-picker.d.ts +0 -0
- /package/{out → es}/props/editor/data-picker.d.ts.map +0 -0
- /package/{out → es}/props/editor/date-picker.d.ts +0 -0
- /package/{out → es}/props/editor/date-picker.d.ts.map +0 -0
- /package/{out → es}/props/editor/date-range.d.ts +0 -0
- /package/{out → es}/props/editor/date-range.d.ts.map +0 -0
- /package/{out → es}/props/editor/dropdown-list.d.ts +0 -0
- /package/{out → es}/props/editor/dropdown-list.d.ts.map +0 -0
- /package/{out → es}/props/editor/html.d.ts +0 -0
- /package/{out → es}/props/editor/html.d.ts.map +0 -0
- /package/{out → es}/props/editor/index.d.ts +0 -0
- /package/{out → es}/props/editor/index.d.ts.map +0 -0
- /package/{out → es}/props/editor/list-box.d.ts +0 -0
- /package/{out → es}/props/editor/list-box.d.ts.map +0 -0
- /package/{out → es}/props/editor/markdown.d.ts +0 -0
- /package/{out → es}/props/editor/markdown.d.ts.map +0 -0
- /package/{out → es}/props/editor/number-range.d.ts +0 -0
- /package/{out → es}/props/editor/number-range.d.ts.map +0 -0
- /package/{out → es}/props/editor/radio-button-list.d.ts +0 -0
- /package/{out → es}/props/editor/radio-button-list.d.ts.map +0 -0
- /package/{out → es}/props/editor/rate.d.ts +0 -0
- /package/{out → es}/props/editor/rate.d.ts.map +0 -0
- /package/{out → es}/props/editor/raw.d.ts +0 -0
- /package/{out → es}/props/editor/raw.d.ts.map +0 -0
- /package/{out → es}/props/editor/slider.d.ts +0 -0
- /package/{out → es}/props/editor/slider.d.ts.map +0 -0
- /package/{out → es}/props/editor/span.d.ts.map +0 -0
- /package/{out → es}/props/editor/stepper.d.ts +0 -0
- /package/{out → es}/props/editor/stepper.d.ts.map +0 -0
- /package/{out → es}/props/editor/switch.d.ts +0 -0
- /package/{out → es}/props/editor/switch.d.ts.map +0 -0
- /package/{out → es}/props/editor/text-box.d.ts +0 -0
- /package/{out → es}/props/editor/text-box.d.ts.map +0 -0
- /package/{out → es}/props/editor/upload.d.ts +0 -0
- /package/{out → es}/props/editor/upload.d.ts.map +0 -0
- /package/{out → es}/props/index.d.ts +0 -0
- /package/{out → es}/props/index.d.ts.map +0 -0
- /package/{out → es}/use/click-outside/click-outside.d.ts +0 -0
- /package/{out → es}/use/click-outside/click-outside.d.ts.map +0 -0
- /package/{out → es}/use/control/index.d.ts +0 -0
- /package/{out → es}/use/control/index.d.ts.map +0 -0
- /package/{out → es}/use/control/use-control-controller/use-control-controller.d.ts +0 -0
- /package/{out → es}/use/control/use-control-controller/use-control-controller.d.ts.map +0 -0
- /package/{out → es}/use/event/event.d.ts +0 -0
- /package/{out → es}/use/event/event.d.ts.map +0 -0
- /package/{out → es}/use/focus-blur/focus-blur.d.ts +0 -0
- /package/{out → es}/use/focus-blur/focus-blur.d.ts.map +0 -0
- /package/{out → es}/use/index.d.ts +0 -0
- /package/{out → es}/use/index.d.ts.map +0 -0
- /package/{out → es}/use/namespace/namespace.d.ts +0 -0
- /package/{out → es}/use/namespace/namespace.d.ts.map +0 -0
- /package/{out → es}/use/route/route.d.ts +0 -0
- /package/{out → es}/use/route/route.d.ts.map +0 -0
- /package/{out → es}/use/util/index.d.ts +0 -0
- /package/{out → es}/use/util/index.d.ts.map +0 -0
- /package/{out → es}/use/view/index.d.ts +0 -0
- /package/{out → es}/use/view/index.d.ts.map +0 -0
- /package/{out → es}/use/view/use-view-controller/use-view-controller.d.ts +0 -0
- /package/{out → es}/use/view/use-view-controller/use-view-controller.d.ts.map +0 -0
- /package/{out → es}/use/vue/vue.d.ts +0 -0
- /package/{out → es}/use/vue/vue.d.ts.map +0 -0
- /package/{out → es}/util/control/prepare-control.d.ts +0 -0
- /package/{out → es}/util/control/prepare-control.d.ts.map +0 -0
- /package/{out → es}/util/install.d.ts +0 -0
- /package/{out → es}/util/install.d.ts.map +0 -0
- /package/{out → es}/util/render/render.d.ts +0 -0
- /package/{out → es}/util/render/render.d.ts.map +0 -0
- /package/{out → es}/util/route/route-listener.d.ts +0 -0
- /package/{out → es}/util/route/route-listener.d.ts.map +0 -0
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { Namespace } from '@ibiz-template/core';
|
|
2
|
-
/**
|
|
3
|
-
* css 命名空间
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2022-09-06 15:09:04
|
|
7
|
-
* @export
|
|
8
|
-
* @param {string} block
|
|
9
|
-
* @return {*} {Namespace}
|
|
10
|
-
*/
|
|
11
|
-
export function useNamespace(block) {
|
|
12
|
-
return new Namespace(block, ibiz.env.namespace);
|
|
13
|
-
}
|
package/out/use/route/route.js
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { useRoute } from 'vue-router';
|
|
2
|
-
import { ref, watch } from 'vue';
|
|
3
|
-
import { RouteListener } from '../../util';
|
|
4
|
-
/**
|
|
5
|
-
* 获取路由查询参数
|
|
6
|
-
*
|
|
7
|
-
* @author chitanda
|
|
8
|
-
* @date 2022-08-15 15:08:28
|
|
9
|
-
* @export
|
|
10
|
-
* @return {*} {IParams}
|
|
11
|
-
*/
|
|
12
|
-
export function useRouterQuery() {
|
|
13
|
-
const route = useRoute();
|
|
14
|
-
const { query } = route;
|
|
15
|
-
return query;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* 监听普通的key变更,在路由下次更新后再改变赋给新的RouteKey
|
|
19
|
-
* 第一次默认值会直接赋给routeKey
|
|
20
|
-
*
|
|
21
|
-
* @export
|
|
22
|
-
* @param {Ref<string>} originKey 监听的原始Ref
|
|
23
|
-
* @param {RouteLocationNormalizedLoaded} route 路由
|
|
24
|
-
* @param {Ref<string>} [routeKey] 预先提供的转换后的Ref
|
|
25
|
-
* @returns {*} {Ref<string>}
|
|
26
|
-
*/
|
|
27
|
-
export function useRouteKey(originKey, route, routeKey) {
|
|
28
|
-
if (!routeKey) {
|
|
29
|
-
routeKey = ref('');
|
|
30
|
-
}
|
|
31
|
-
routeKey.value = originKey.value;
|
|
32
|
-
const routeListener = new RouteListener(route);
|
|
33
|
-
watch(originKey, (newVal, oldVal) => {
|
|
34
|
-
if (newVal !== oldVal) {
|
|
35
|
-
routeListener.nextChange(() => {
|
|
36
|
-
routeKey.value = newVal;
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
return routeKey;
|
|
41
|
-
}
|
package/out/use/util/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { inject } from 'vue';
|
|
2
|
-
/**
|
|
3
|
-
* 获取视图上下文环境对象
|
|
4
|
-
*
|
|
5
|
-
* @author chitanda
|
|
6
|
-
* @date 2023-06-16 15:06:16
|
|
7
|
-
* @export
|
|
8
|
-
* @return {*} {CTX}
|
|
9
|
-
*/
|
|
10
|
-
export function useCtx() {
|
|
11
|
-
return inject('ctx');
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* 获取移动端视图上下文环境对象
|
|
15
|
-
*
|
|
16
|
-
* @author chitanda
|
|
17
|
-
* @date 2023-06-16 16:06:51
|
|
18
|
-
* @export
|
|
19
|
-
* @return {*} {CTX<IMobViewController>}
|
|
20
|
-
*/
|
|
21
|
-
export function useMobCtx() {
|
|
22
|
-
return inject('ctx');
|
|
23
|
-
}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { clearAll } from 'qx-util';
|
|
2
|
-
import { getCurrentInstance, inject, onBeforeUnmount, provide, reactive, watch, } from 'vue';
|
|
3
|
-
import { useForce, useProps } from '../../vue/vue';
|
|
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, view) {
|
|
12
|
-
watch(() => ({ context: props.context, params: props.params }), newVal => {
|
|
13
|
-
// 不改变引用的情况下,重置控制器里的上下文和视图参数。
|
|
14
|
-
view.context.reset({}, newVal.context);
|
|
15
|
-
clearAll(view.params);
|
|
16
|
-
Object.assign(view.params, newVal.params);
|
|
17
|
-
// 重新计算上下文和视图参数
|
|
18
|
-
view.handleContextParams();
|
|
19
|
-
ibiz.log.debug(`${view.model.id}的上下文或视图参数变更:`, newVal);
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* 监听并更新state
|
|
24
|
-
* @author lxm
|
|
25
|
-
* @date 2023-05-26 03:43:23
|
|
26
|
-
* @param {IData} props
|
|
27
|
-
* @param {IViewController} view
|
|
28
|
-
*/
|
|
29
|
-
function watchAndUpdateState(props, view) {
|
|
30
|
-
watch(() => {
|
|
31
|
-
return props.state ? Object.assign({}, props.state) : {};
|
|
32
|
-
}, (newVal, oldVal) => {
|
|
33
|
-
const changeProps = {};
|
|
34
|
-
Object.keys(newVal).forEach(key => {
|
|
35
|
-
if (newVal[key] !== (oldVal || {})[key]) {
|
|
36
|
-
changeProps[key] = newVal[key];
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
ibiz.log.debug(`视图 [${view.model.name}] state 变更`, changeProps);
|
|
40
|
-
Object.keys(changeProps).forEach(key => {
|
|
41
|
-
view.state[key] = changeProps[key];
|
|
42
|
-
});
|
|
43
|
-
}, { immediate: true });
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* 初始化视图控制器
|
|
47
|
-
*
|
|
48
|
-
* @description 此视图暂时控制器实例化只用于路由一级视图
|
|
49
|
-
* @author chitanda
|
|
50
|
-
* @date 2022-08-15 15:08:04
|
|
51
|
-
* @export
|
|
52
|
-
* @template T
|
|
53
|
-
* @param {(context: IContext, params: IParams, ctx?: CTX) => T} fn
|
|
54
|
-
* @return {*} {T}
|
|
55
|
-
*/
|
|
56
|
-
export function useViewController(fn) {
|
|
57
|
-
// 获取 props
|
|
58
|
-
const props = useProps();
|
|
59
|
-
// 获取上层组件的ctx
|
|
60
|
-
const ctx = inject('ctx', undefined);
|
|
61
|
-
// 上下文里提前预告部件
|
|
62
|
-
ctx === null || ctx === void 0 ? void 0 : ctx.evt.emit('onForecast', props.modelData.name);
|
|
63
|
-
// 实例化视图控制器
|
|
64
|
-
const provider = props.provider;
|
|
65
|
-
let c;
|
|
66
|
-
if (provider === null || provider === void 0 ? void 0 : provider.createController) {
|
|
67
|
-
// 如果适配器给了创建方法使用适配器的方法
|
|
68
|
-
c = provider.createController(props.modelData, props.context, props.params, ctx);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
c = fn(props.modelData, props.context, props.params, ctx);
|
|
72
|
-
}
|
|
73
|
-
watchAndUpdateContextParams(props, c);
|
|
74
|
-
watchAndUpdateState(props, c);
|
|
75
|
-
// 提供自身的ctx给下层组件
|
|
76
|
-
provide('ctx', c.ctx);
|
|
77
|
-
// 让state 响应式
|
|
78
|
-
c.state = reactive(c.state);
|
|
79
|
-
// 让state 响应式
|
|
80
|
-
c.slotProps = reactive(c.slotProps);
|
|
81
|
-
// 从props赋值modal,如果存在的话。
|
|
82
|
-
if (props.modal) {
|
|
83
|
-
c.modal = props.modal;
|
|
84
|
-
}
|
|
85
|
-
c.force = useForce();
|
|
86
|
-
const vue = getCurrentInstance().proxy;
|
|
87
|
-
c.evt.onAll((eventName, event) => {
|
|
88
|
-
vue.$emit(eventName.slice(2), event);
|
|
89
|
-
});
|
|
90
|
-
c.created();
|
|
91
|
-
// 卸载时销毁
|
|
92
|
-
onBeforeUnmount(() => c.destroyed());
|
|
93
|
-
return c;
|
|
94
|
-
}
|
package/out/use/vue/vue.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { isFunc } from 'qx-util';
|
|
2
|
-
import { createCommentVNode, getCurrentInstance, isReactive, toRaw, watch, } from 'vue';
|
|
3
|
-
/**
|
|
4
|
-
* 获取组件的props,只能在setup里使用
|
|
5
|
-
*
|
|
6
|
-
* @author chitanda
|
|
7
|
-
* @date 2022-08-14 16:08:19
|
|
8
|
-
* @export
|
|
9
|
-
* @return {*}
|
|
10
|
-
*/
|
|
11
|
-
export function useProps() {
|
|
12
|
-
const vue = getCurrentInstance().proxy;
|
|
13
|
-
return vue.$props;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* 如果是reactive代理过的对象,返回原始对象
|
|
17
|
-
*
|
|
18
|
-
* @author lxm
|
|
19
|
-
* @date 2023-02-15 10:56:00
|
|
20
|
-
* @export
|
|
21
|
-
* @param {*} val
|
|
22
|
-
* @returns {*}
|
|
23
|
-
*/
|
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25
|
-
export function getOrigin(val) {
|
|
26
|
-
return isReactive(val) ? toRaw(val) : val;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* 监听props的属性
|
|
30
|
-
*
|
|
31
|
-
* @author lxm
|
|
32
|
-
* @date 2022-08-22 22:08:11
|
|
33
|
-
* @export
|
|
34
|
-
* @param {string} key props的属性名
|
|
35
|
-
* @param {(newVal: T, oldVal: T) => void} callback 监听回调
|
|
36
|
-
* @param {(WatchOptions | undefined)} [options] 监听参数
|
|
37
|
-
*/
|
|
38
|
-
export function usePropsWatch(key, callback, options) {
|
|
39
|
-
const props = useProps();
|
|
40
|
-
if (Object.prototype.hasOwnProperty.call(props, key)) {
|
|
41
|
-
watch(() => props[key], (newVal, oldVal) => {
|
|
42
|
-
callback(getOrigin(newVal), getOrigin(oldVal));
|
|
43
|
-
}, options);
|
|
44
|
-
// immediate无效,模拟第一次赋值
|
|
45
|
-
callback(getOrigin(props[key]), undefined);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* 获取force方法
|
|
50
|
-
*
|
|
51
|
-
* @author lxm
|
|
52
|
-
* @date 2022-08-24 11:08:56
|
|
53
|
-
* @export
|
|
54
|
-
* @returns {*} {(callback?: () => void) => void} callback回调会在这次更新渲染完成之后执行
|
|
55
|
-
*/
|
|
56
|
-
export function useForce() {
|
|
57
|
-
const vue = getCurrentInstance().proxy;
|
|
58
|
-
return (callback) => {
|
|
59
|
-
vue.$forceUpdate();
|
|
60
|
-
if (callback && isFunc(callback)) {
|
|
61
|
-
vue.$nextTick(() => {
|
|
62
|
-
callback();
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* controller的force执行时,一起执行自己的force
|
|
69
|
-
*
|
|
70
|
-
* @author lxm
|
|
71
|
-
* @date 2022-08-22 23:08:36
|
|
72
|
-
* @export
|
|
73
|
-
* @param {{
|
|
74
|
-
* force: (callback?: () => void) => void;
|
|
75
|
-
* }} controller
|
|
76
|
-
*/
|
|
77
|
-
export function useForceTogether(vue, controller) {
|
|
78
|
-
const orignForce = controller.force;
|
|
79
|
-
const selfForce = useForce();
|
|
80
|
-
controller.force = (callback) => {
|
|
81
|
-
orignForce(callback);
|
|
82
|
-
selfForce();
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* 控制器通用的vue实例能力绑定
|
|
87
|
-
*
|
|
88
|
-
* @author lxm
|
|
89
|
-
* @date 2022-09-15 09:09:06
|
|
90
|
-
* @export
|
|
91
|
-
* @param {Vue} vue
|
|
92
|
-
* @param {IData} controller
|
|
93
|
-
*/
|
|
94
|
-
export function useController(controller) {
|
|
95
|
-
controller.force = useForce();
|
|
96
|
-
}
|
|
97
|
-
/** 全局唯一的空节点 */
|
|
98
|
-
export const EmptyVNode = createCommentVNode('EmptyVNode');
|
|
99
|
-
/**
|
|
100
|
-
* 配合EmptyVNode,判断是否是空节点
|
|
101
|
-
* @author lxm
|
|
102
|
-
* @date 2023-03-28 02:20:06
|
|
103
|
-
* @export
|
|
104
|
-
* @param {(VNode[] | VNode)} nodes
|
|
105
|
-
* @return {*} {boolean}
|
|
106
|
-
*/
|
|
107
|
-
export function isEmptyVNode(nodes) {
|
|
108
|
-
if (!Array.isArray(nodes)) {
|
|
109
|
-
return nodes === EmptyVNode;
|
|
110
|
-
}
|
|
111
|
-
return nodes.length === 1 && nodes[0] === EmptyVNode;
|
|
112
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { useNamespace } from '../../use';
|
|
2
|
-
/**
|
|
3
|
-
* 部件UI组件准备参数
|
|
4
|
-
* @author lxm
|
|
5
|
-
* @date 2023-06-15 09:51:23
|
|
6
|
-
* @export
|
|
7
|
-
* @param {IControlController} c
|
|
8
|
-
* @return {*}
|
|
9
|
-
*/
|
|
10
|
-
export function prepareControl(c) {
|
|
11
|
-
const commonNs = useNamespace('control');
|
|
12
|
-
const { controlType, sysCss, codeName } = c.model;
|
|
13
|
-
const typeClass = controlType.toLowerCase();
|
|
14
|
-
const sysCssName = sysCss === null || sysCss === void 0 ? void 0 : sysCss.cssName;
|
|
15
|
-
const ns = useNamespace(`control-${typeClass}`);
|
|
16
|
-
const controlClass = [
|
|
17
|
-
commonNs.b(),
|
|
18
|
-
commonNs.b(typeClass),
|
|
19
|
-
commonNs.m(codeName),
|
|
20
|
-
];
|
|
21
|
-
if (sysCssName) {
|
|
22
|
-
controlClass.push(sysCssName);
|
|
23
|
-
}
|
|
24
|
-
return { controlClass, ns };
|
|
25
|
-
}
|
package/out/util/index.d.ts
DELETED
package/out/util/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,WAAW,CAAC;AAC1B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
package/out/util/index.js
DELETED
package/out/util/install.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { isNil } from 'ramda';
|
|
2
|
-
/**
|
|
3
|
-
* 把未知格式的值绘制成字符串
|
|
4
|
-
* - 空值输出空字符串
|
|
5
|
-
* - 对象,数组输出成JSON字符串
|
|
6
|
-
* - 其他类型转成字符串输出
|
|
7
|
-
* @author lxm
|
|
8
|
-
* @date 2023-10-09 02:29:13
|
|
9
|
-
* @export
|
|
10
|
-
* @param {unknown} value
|
|
11
|
-
* @return {*} {string}
|
|
12
|
-
*/
|
|
13
|
-
export function renderString(value) {
|
|
14
|
-
if (isNil(value)) {
|
|
15
|
-
return '';
|
|
16
|
-
}
|
|
17
|
-
if (typeof value === 'string') {
|
|
18
|
-
return value;
|
|
19
|
-
}
|
|
20
|
-
try {
|
|
21
|
-
const str = value.toString();
|
|
22
|
-
return str;
|
|
23
|
-
}
|
|
24
|
-
catch (error) {
|
|
25
|
-
ibiz.log.error(value, '转换成字符串失败', error);
|
|
26
|
-
}
|
|
27
|
-
return '';
|
|
28
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
|
-
import { watch } from 'vue';
|
|
3
|
-
/**
|
|
4
|
-
* 监听路由变更,提供下一次变更执行的一次性回调。
|
|
5
|
-
*
|
|
6
|
-
* @export
|
|
7
|
-
* @class RouteListener
|
|
8
|
-
*/
|
|
9
|
-
export class RouteListener {
|
|
10
|
-
constructor(route, wait) {
|
|
11
|
-
/**
|
|
12
|
-
* 回调集合
|
|
13
|
-
*
|
|
14
|
-
* @memberof RouteListener
|
|
15
|
-
*/
|
|
16
|
-
this.callbacks = [];
|
|
17
|
-
/**
|
|
18
|
-
* 计时器集合
|
|
19
|
-
*
|
|
20
|
-
* @private
|
|
21
|
-
* @type {any[]}
|
|
22
|
-
* @memberof RouteListener
|
|
23
|
-
*/
|
|
24
|
-
this.timers = [];
|
|
25
|
-
/**
|
|
26
|
-
* 等待路由响应时间
|
|
27
|
-
*
|
|
28
|
-
* @private
|
|
29
|
-
* @type {number}
|
|
30
|
-
* @memberof RouteListener
|
|
31
|
-
*/
|
|
32
|
-
this.wait = 500;
|
|
33
|
-
if (wait) {
|
|
34
|
-
this.wait = wait;
|
|
35
|
-
}
|
|
36
|
-
watch(() => route.path, (newVal, oldVal) => {
|
|
37
|
-
if (newVal !== oldVal) {
|
|
38
|
-
// 执行所有回调
|
|
39
|
-
if (this.callbacks.length) {
|
|
40
|
-
for (let index = 0; index < this.callbacks.length; index++) {
|
|
41
|
-
const fn = this.callbacks[index];
|
|
42
|
-
fn();
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
// 清空所有回调
|
|
46
|
-
this.callbacks = [];
|
|
47
|
-
// 清空所有计时器
|
|
48
|
-
if (this.timers.length) {
|
|
49
|
-
for (let index = 0; index < this.timers.length; index++) {
|
|
50
|
-
const timer = this.timers[index];
|
|
51
|
-
clearTimeout(timer);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
this.timers = [];
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* 下一次路由变更后执行回调,只执行一次
|
|
60
|
-
*
|
|
61
|
-
* @param {ChangeCallback} callback
|
|
62
|
-
* @memberof RouteListener
|
|
63
|
-
*/
|
|
64
|
-
nextChange(callback) {
|
|
65
|
-
if (callback) {
|
|
66
|
-
// 设定计时器,经过一段时间等不到时,执行回调,并删除回调集合里的回调
|
|
67
|
-
this.timers.push(setTimeout(() => {
|
|
68
|
-
callback();
|
|
69
|
-
const index = this.callbacks.findIndex(item => item === callback);
|
|
70
|
-
this.callbacks.splice(index, 1);
|
|
71
|
-
}, this.wait));
|
|
72
|
-
// 存入回调集合等待被调用
|
|
73
|
-
this.callbacks.push(callback);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"route.d.ts","sourceRoot":"","sources":["../../../src/util/route/route.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,6BAA6B,IAAI,KAAK,EAAY,MAAM,YAAY,CAAC;AAE9E,OAAO,EAGL,WAAW,EAEZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAkB,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAE7E;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAS7D;AAED;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAYpC,CAAC;AAEF;;;;;;;;;GASG;AACH,wBAAsB,gBAAgB,CACpC,SAAS,EAAE,UAAU,EACrB,OAAO,EAAE,QAAQ,EACjB,eAAe,CAAC,EAAE,MAAM,GACvB,OAAO,CAAC,IAAI,CAAC,CA2Bf;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,iBAAiB,CACrC,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,KAAK,EACZ,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,GAC3B,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAwD3B;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,cAAc,CAAC,CAqDzB;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU,CA+DxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,UAAU,GAAG,MAAM,CAuD9D;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,MAAM,EACb,QAAQ,GAAE,OAAc,GACvB,MAAM,CAwBR;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,CAAC,IAAI,EAAE;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,KAAK,IAAI,EAClE,KAAK,EAAE,MAAM,GACZ,IAAI,CAaN"}
|