@ibiz-template/vue3-util 0.2.11 → 0.2.12
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 +107 -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 +39 -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 +38 -0
- package/es/panel-component/multi-data-container/index.d.ts +38 -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 +29 -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 +162 -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 +261 -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 +28 -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 +26 -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 +27 -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 +26 -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 +4 -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 +5 -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 +4 -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 +5 -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 +38 -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 +51 -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 +8 -0
- package/es/view/portal-view/index.d.ts +43 -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 +260 -0
- package/package.json +19 -14
- 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 +26 -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 +351 -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 +31 -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 +15 -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 +19 -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 +3 -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 +3 -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 +26 -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 +140 -140
- 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 +12 -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 +20 -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
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EventBase,
|
|
3
|
+
IModal,
|
|
4
|
+
Modal,
|
|
5
|
+
OpenAppViewCommand,
|
|
6
|
+
IPanelItemNavPosController,
|
|
7
|
+
ViewMode,
|
|
8
|
+
INavViewMsg,
|
|
9
|
+
NavViewChangeEvent,
|
|
10
|
+
PanelItemController,
|
|
11
|
+
} from '@ibiz-template/runtime';
|
|
12
|
+
import { IPanelRawItem } from '@ibiz/model-core';
|
|
13
|
+
import { RouteLocationNormalizedLoaded, Router } from 'vue-router';
|
|
14
|
+
import { notNilEmpty } from 'qx-util';
|
|
15
|
+
import { mergeLeft } from 'ramda';
|
|
16
|
+
import { NavPosState } from './nav-pos.state';
|
|
17
|
+
/**
|
|
18
|
+
* 导航占位控制器
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @class NavPosController
|
|
22
|
+
* @extends {PanelItemController}
|
|
23
|
+
*/
|
|
24
|
+
export class NavPosController
|
|
25
|
+
extends PanelItemController<IPanelRawItem>
|
|
26
|
+
implements IPanelItemNavPosController
|
|
27
|
+
{
|
|
28
|
+
/**
|
|
29
|
+
* 导航占位状态
|
|
30
|
+
*
|
|
31
|
+
* @type {NavPosState}
|
|
32
|
+
* @memberof NavPosController
|
|
33
|
+
*/
|
|
34
|
+
declare state: NavPosState;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* 导航视图的modal
|
|
38
|
+
*
|
|
39
|
+
* @type {{ [key: string]: IModal }}
|
|
40
|
+
* @memberof NavPosController
|
|
41
|
+
*/
|
|
42
|
+
viewModals: { [key: string]: IModal } = {};
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 当前导航视图
|
|
46
|
+
*
|
|
47
|
+
* @type {INavViewMsg}
|
|
48
|
+
* @memberof NavPosController
|
|
49
|
+
*/
|
|
50
|
+
curNavViewMsg!: INavViewMsg;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Router 对象
|
|
54
|
+
*
|
|
55
|
+
* @type {Router}
|
|
56
|
+
* @memberof NavPosController
|
|
57
|
+
*/
|
|
58
|
+
router!: Router;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* 关联部件标识集合
|
|
62
|
+
* @author lxm
|
|
63
|
+
* @date 2023-08-10 07:35:08
|
|
64
|
+
* @type {string[]}
|
|
65
|
+
*/
|
|
66
|
+
refCtrlKeys: string[] = [];
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 自定义补充参数
|
|
70
|
+
*
|
|
71
|
+
* @author zk
|
|
72
|
+
* @date 2023-09-27 03:09:02
|
|
73
|
+
* @type {IData}
|
|
74
|
+
* @memberof NavPosController
|
|
75
|
+
*/
|
|
76
|
+
rawItemParams: IData = {};
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Route 对象
|
|
80
|
+
*
|
|
81
|
+
* @author zk
|
|
82
|
+
* @date 2023-06-29 04:06:59
|
|
83
|
+
* @type {RouteLocationNormalizedLoaded}
|
|
84
|
+
* @memberof NavPosController
|
|
85
|
+
*/
|
|
86
|
+
get route(): RouteLocationNormalizedLoaded {
|
|
87
|
+
return this.router.currentRoute.value;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* 导航项是否缓存
|
|
92
|
+
*
|
|
93
|
+
* @author zk
|
|
94
|
+
* @date 2023-09-27 03:09:49
|
|
95
|
+
* @param {INavViewMsg} navViewMsg
|
|
96
|
+
* @return {*} {boolean}
|
|
97
|
+
* @memberof NavPosController
|
|
98
|
+
*/
|
|
99
|
+
getExpItemIsCache(navViewMsg: INavViewMsg): boolean {
|
|
100
|
+
if (this.rawItemParams.expcache === 'CACHE') {
|
|
101
|
+
return true;
|
|
102
|
+
}
|
|
103
|
+
if (this.rawItemParams.expcache === 'NO_CACHE') {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
return navViewMsg.isCache as boolean;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* 设置 Router 对象
|
|
111
|
+
*
|
|
112
|
+
* @param {Router} router
|
|
113
|
+
* @memberof NavPosController
|
|
114
|
+
*/
|
|
115
|
+
setRouter(router: Router): void {
|
|
116
|
+
this.router = router;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
protected async onInit(): Promise<void> {
|
|
120
|
+
await super.onInit();
|
|
121
|
+
this.handleRawItemParams();
|
|
122
|
+
if (this.model.rawItem?.rawItemParams) {
|
|
123
|
+
this.model.rawItem.rawItemParams.find(item => {
|
|
124
|
+
if (item.key === 'REFCTRL' && item.value) {
|
|
125
|
+
this.refCtrlKeys = item.value
|
|
126
|
+
.split(';')
|
|
127
|
+
.map(str => str.toLowerCase());
|
|
128
|
+
return true;
|
|
129
|
+
}
|
|
130
|
+
return false;
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
this.panel.evt.on('onControlEvent', event => {
|
|
135
|
+
// 是否是关联部件,如果没有配置都监控,配置了只监控指定部件
|
|
136
|
+
const isRefCtrl =
|
|
137
|
+
this.refCtrlKeys.length === 0 ||
|
|
138
|
+
this.refCtrlKeys.includes(event.triggerControlName);
|
|
139
|
+
if (isRefCtrl && event.triggerEventName === 'onNavViewChange') {
|
|
140
|
+
const triggerEvent = event.triggerEvent as NavViewChangeEvent;
|
|
141
|
+
this.openView(triggerEvent.navViewMsg);
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
// 根据 导航占位参数 || 视图参数 判断是否用路由打开视图 不使用:NO_ROUTE 使用 :ROUTE
|
|
146
|
+
// 导航占位参数优先级大于视图参数
|
|
147
|
+
const expRoute =
|
|
148
|
+
this.rawItemParams.expmode || this.panel.view.params.expmode;
|
|
149
|
+
|
|
150
|
+
// 路由模式下 必须为路由打开
|
|
151
|
+
if (expRoute === 'ROUTE' && this.routeDepth) {
|
|
152
|
+
this.state.routeOpen = true;
|
|
153
|
+
} else if (expRoute === 'NO_ROUTE') {
|
|
154
|
+
this.state.routeOpen = false;
|
|
155
|
+
} else {
|
|
156
|
+
this.state.routeOpen = !!this.routeDepth;
|
|
157
|
+
}
|
|
158
|
+
// 消费完参数销毁 expmode
|
|
159
|
+
if (this.panel.view.params.expmode) {
|
|
160
|
+
delete this.panel.view.params.expmode;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* 创建导航占位状态对象
|
|
166
|
+
*
|
|
167
|
+
* @protected
|
|
168
|
+
* @return {*} {NavPosState}
|
|
169
|
+
* @memberof NavPosController
|
|
170
|
+
*/
|
|
171
|
+
protected createState(): NavPosState {
|
|
172
|
+
return new NavPosState(this.parent?.state);
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* 当前路由视图的层级
|
|
177
|
+
*
|
|
178
|
+
* @readonly
|
|
179
|
+
* @type {(number | undefined)}
|
|
180
|
+
* @memberof NavPosController
|
|
181
|
+
*/
|
|
182
|
+
get routeDepth(): number | undefined {
|
|
183
|
+
return this.panel.view.modal.routeDepth;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* 路由改变
|
|
188
|
+
*
|
|
189
|
+
* @memberof NavPosController
|
|
190
|
+
*/
|
|
191
|
+
onRouteChange(route: RouteLocationNormalizedLoaded): void {
|
|
192
|
+
// 没有当前导航视图信息时不做任何处理
|
|
193
|
+
if (this.curNavViewMsg) {
|
|
194
|
+
// 路由打开的视图,currentKey在路由变更之后改值。此时新建的视图才能识别到跳转之后的路由。
|
|
195
|
+
this.state.currentKey = this.curNavViewMsg.key;
|
|
196
|
+
|
|
197
|
+
// 更新fullPath信息
|
|
198
|
+
this.state.navViewMsgs[this.curNavViewMsg.key].fullPath = route.fullPath;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* 设置导航视图信息
|
|
204
|
+
*
|
|
205
|
+
* @author zk
|
|
206
|
+
* @date 2023-06-29 02:06:41
|
|
207
|
+
* @param {INavViewMsg} navViewMsg 导航视图信息
|
|
208
|
+
* @memberof NavPosController
|
|
209
|
+
*/
|
|
210
|
+
setNavViewMsgs(navViewMsg: INavViewMsg): void {
|
|
211
|
+
// 已经存在的更新数据
|
|
212
|
+
if (this.state.navViewMsgs[navViewMsg.key]) {
|
|
213
|
+
mergeLeft(this.state.navViewMsgs[navViewMsg.key], navViewMsg);
|
|
214
|
+
} else {
|
|
215
|
+
// 不存在的走新建流程
|
|
216
|
+
this.state.navViewMsgs[navViewMsg.key] = navViewMsg;
|
|
217
|
+
if (this.getExpItemIsCache(navViewMsg)) {
|
|
218
|
+
// 往缓存keys里添加新视图的key
|
|
219
|
+
this.state.cacheKeys.push(navViewMsg.key);
|
|
220
|
+
}
|
|
221
|
+
this.viewModals[navViewMsg.key] = new Modal({
|
|
222
|
+
mode: this.routeDepth ? ViewMode.ROUTE : ViewMode.EMBED,
|
|
223
|
+
routeDepth: this.routeDepth ? this.routeDepth + 1 : undefined,
|
|
224
|
+
dismiss: () => {
|
|
225
|
+
// 执行对应key的dismiss方法
|
|
226
|
+
this.dismiss(navViewMsg.key);
|
|
227
|
+
},
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
// todo 换个方式
|
|
232
|
+
this.curNavViewMsg = this.state.navViewMsgs[navViewMsg.key];
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* 自身的dismiss相关操作
|
|
237
|
+
*
|
|
238
|
+
* @param {string} key
|
|
239
|
+
* @memberof NavPosController
|
|
240
|
+
*/
|
|
241
|
+
dismiss(key: string): void {
|
|
242
|
+
ibiz.log.debug(this.constructor.name, 'dismiss', key);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* 监听视图创建
|
|
247
|
+
*
|
|
248
|
+
* @param {EventBase} event
|
|
249
|
+
* @memberof NavPosController
|
|
250
|
+
*/
|
|
251
|
+
onViewCreated(event: EventBase): void {
|
|
252
|
+
ibiz.log.debug(this.constructor.name, 'onViewCreated', event);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* 打开视图
|
|
257
|
+
*
|
|
258
|
+
* @param {INavViewMsg} openViewMsg
|
|
259
|
+
* @memberof NavPosController
|
|
260
|
+
*/
|
|
261
|
+
openView(openViewMsg: INavViewMsg): void {
|
|
262
|
+
// 当key为空时,直接切换currentKey,绘制null
|
|
263
|
+
if (!openViewMsg.key) {
|
|
264
|
+
this.state.currentKey = openViewMsg.key;
|
|
265
|
+
return;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
if (this.routeDepth && this.state.routeOpen) {
|
|
269
|
+
this.openViewByPath(openViewMsg);
|
|
270
|
+
} else {
|
|
271
|
+
this.openViewByModel(openViewMsg);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* 通过路由打开视图
|
|
277
|
+
*
|
|
278
|
+
* @param {INavViewMsg} openViewMsg
|
|
279
|
+
* @memberof NavPosController
|
|
280
|
+
*/
|
|
281
|
+
openViewByPath(openViewMsg: INavViewMsg): void {
|
|
282
|
+
this.setNavViewMsgs(openViewMsg);
|
|
283
|
+
const isRoutePushed =
|
|
284
|
+
this.state.navViewMsgs[this.curNavViewMsg.key].isRoutePushed === true;
|
|
285
|
+
// * 外部跳转过了的场景不需要这边跳转路由了,直接处理后续内容。
|
|
286
|
+
if (isRoutePushed) {
|
|
287
|
+
this.state.currentKey = openViewMsg.key;
|
|
288
|
+
this.state.navViewMsgs[this.curNavViewMsg.key].fullPath =
|
|
289
|
+
this.route.fullPath;
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
// * 路由跳转
|
|
294
|
+
// 如果启用缓存并且有之前存过的fullPath则push回fullPath。
|
|
295
|
+
if (
|
|
296
|
+
this.state.navViewMsgs[openViewMsg.key].fullPath &&
|
|
297
|
+
this.getExpItemIsCache(openViewMsg)
|
|
298
|
+
) {
|
|
299
|
+
this.router.push(this.state.navViewMsgs[openViewMsg.key].fullPath!);
|
|
300
|
+
} else {
|
|
301
|
+
// 走视图路由打开逻辑计算并push
|
|
302
|
+
const tempContext = Object.assign(openViewMsg.context!.clone(), {
|
|
303
|
+
toRouteDepth: this.routeDepth! + 1,
|
|
304
|
+
});
|
|
305
|
+
if (this.getExpItemIsCache(openViewMsg)) {
|
|
306
|
+
this.state.cacheKeys.push(openViewMsg.key);
|
|
307
|
+
}
|
|
308
|
+
ibiz.commands.execute(
|
|
309
|
+
OpenAppViewCommand.TAG,
|
|
310
|
+
openViewMsg.viewId,
|
|
311
|
+
tempContext,
|
|
312
|
+
openViewMsg.params,
|
|
313
|
+
{ openMode: 'INDEXVIEWTAB' },
|
|
314
|
+
);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
// !跳转路由过后,修改currentKey由onRouteChange那边路由变更之后处理。
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/**
|
|
321
|
+
* 通过模型绘制视图
|
|
322
|
+
*
|
|
323
|
+
* @param {INavViewMsg} openViewMsg
|
|
324
|
+
* @memberof NavPosController
|
|
325
|
+
*/
|
|
326
|
+
openViewByModel(openViewMsg: INavViewMsg): void {
|
|
327
|
+
this.setNavViewMsgs(openViewMsg);
|
|
328
|
+
// 切换currentKey,重新渲染openViewMsg
|
|
329
|
+
this.state.currentKey = openViewMsg.key;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* 处理自定义补充参数 [{key:'name',value:'data'}] => {name:'data'}
|
|
334
|
+
*
|
|
335
|
+
* @author zk
|
|
336
|
+
* @date 2023-09-27 03:09:55
|
|
337
|
+
* @protected
|
|
338
|
+
* @memberof NavPosController
|
|
339
|
+
*/
|
|
340
|
+
protected handleRawItemParams(): void {
|
|
341
|
+
let params = {};
|
|
342
|
+
const rawItemParams = this.model.rawItem?.rawItemParams;
|
|
343
|
+
if (notNilEmpty(rawItemParams)) {
|
|
344
|
+
params = rawItemParams!.reduce((param: IData, item) => {
|
|
345
|
+
param[item.key!.toLowerCase()] = item.value;
|
|
346
|
+
return param;
|
|
347
|
+
}, {});
|
|
348
|
+
}
|
|
349
|
+
Object.assign(this.rawItemParams, params);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IPanelItemNavPosController,
|
|
3
|
+
IPanelItemProvider,
|
|
4
|
+
PanelController,
|
|
5
|
+
PanelItemController,
|
|
6
|
+
} from '@ibiz-template/runtime';
|
|
7
|
+
import { IPanelItem } from '@ibiz/model-core';
|
|
8
|
+
import { NavPosController } from './nav-pos.controller';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 导航占位适配器
|
|
12
|
+
*
|
|
13
|
+
* @export
|
|
14
|
+
* @class NavPosProvider
|
|
15
|
+
* @implements {IPanelItemProvider}
|
|
16
|
+
*/
|
|
17
|
+
export class NavPosProvider implements IPanelItemProvider {
|
|
18
|
+
component: string = 'IBizNavPos';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* 创建控制器
|
|
22
|
+
*
|
|
23
|
+
* @param {IPanelItem} panelItem
|
|
24
|
+
* @param {PanelController} panel
|
|
25
|
+
* @param {(PanelItemController | undefined)} parent
|
|
26
|
+
* @return {*} {Promise<IPanelItemNavPosController>}
|
|
27
|
+
* @memberof NavPosProvider
|
|
28
|
+
*/
|
|
29
|
+
async createController(
|
|
30
|
+
panelItem: IPanelItem,
|
|
31
|
+
panel: PanelController,
|
|
32
|
+
parent: PanelItemController | undefined,
|
|
33
|
+
): Promise<IPanelItemNavPosController> {
|
|
34
|
+
const c = new NavPosController(panelItem, panel, parent);
|
|
35
|
+
await c.init();
|
|
36
|
+
return c;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { INavViewMsg, PanelItemState } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 导航占位状态
|
|
5
|
+
*
|
|
6
|
+
* @export
|
|
7
|
+
* @class NavPosState
|
|
8
|
+
* @extends {PanelItemState}
|
|
9
|
+
*/
|
|
10
|
+
export class NavPosState extends PanelItemState {
|
|
11
|
+
/**
|
|
12
|
+
* 是否启用缓存
|
|
13
|
+
*
|
|
14
|
+
* @type {boolean}
|
|
15
|
+
* @memberof NavPosState
|
|
16
|
+
*/
|
|
17
|
+
cache: boolean = true;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 是否是路由打开
|
|
21
|
+
*
|
|
22
|
+
* @author zk
|
|
23
|
+
* @date 2023-09-26 04:09:23
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof NavPosState
|
|
26
|
+
*/
|
|
27
|
+
routeOpen: boolean = true;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 当前导航视图标识
|
|
31
|
+
* @author lxm
|
|
32
|
+
* @date 2023-05-25 06:24:48
|
|
33
|
+
* @type {string}
|
|
34
|
+
*/
|
|
35
|
+
currentKey: string = '';
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* 缓存的视图标识
|
|
39
|
+
* @author lxm
|
|
40
|
+
* @date 2023-05-25 06:25:21
|
|
41
|
+
* @type {string[]}
|
|
42
|
+
*/
|
|
43
|
+
cacheKeys: string[] = ['RouterShell'];
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 导航视图详细信息
|
|
47
|
+
* @author lxm
|
|
48
|
+
* @date 2023-05-25 07:07:05
|
|
49
|
+
* @type {INavViewMsg[]}
|
|
50
|
+
*/
|
|
51
|
+
navViewMsgs: { [p: string]: INavViewMsg } = {};
|
|
52
|
+
}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import {
|
|
2
|
+
defineComponent,
|
|
3
|
+
h,
|
|
4
|
+
PropType,
|
|
5
|
+
resolveComponent,
|
|
6
|
+
VNode,
|
|
7
|
+
watch,
|
|
8
|
+
} from 'vue';
|
|
9
|
+
import { IPanelRawItem } from '@ibiz/model-core';
|
|
10
|
+
import { EventBase } from '@ibiz-template/runtime';
|
|
11
|
+
import { useRoute, useRouter } from 'vue-router';
|
|
12
|
+
import { NavPosController } from './nav-pos.controller';
|
|
13
|
+
import './nav-pos.scss';
|
|
14
|
+
import { useNamespace } from '../../use';
|
|
15
|
+
import { getNestedRoutePath } from '../../util';
|
|
16
|
+
|
|
17
|
+
export const NavPos = defineComponent({
|
|
18
|
+
name: 'IBizNavPos',
|
|
19
|
+
props: {
|
|
20
|
+
modelData: {
|
|
21
|
+
type: Object as PropType<IPanelRawItem>,
|
|
22
|
+
required: true,
|
|
23
|
+
},
|
|
24
|
+
controller: {
|
|
25
|
+
type: NavPosController,
|
|
26
|
+
required: true,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
setup(props) {
|
|
30
|
+
const c = props.controller;
|
|
31
|
+
const ns = useNamespace('nav-pos');
|
|
32
|
+
const onViewCreated = (event: EventBase): void => {
|
|
33
|
+
c.onViewCreated(event);
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
const router = useRouter();
|
|
37
|
+
const route = useRoute();
|
|
38
|
+
|
|
39
|
+
c.setRouter(router);
|
|
40
|
+
|
|
41
|
+
if (c.routeDepth) {
|
|
42
|
+
// 计算当前导航视图对应层级路由的路径,删除了srfnav
|
|
43
|
+
const expViewRoutePath = getNestedRoutePath(route, c.routeDepth!);
|
|
44
|
+
watch(
|
|
45
|
+
() => route.fullPath,
|
|
46
|
+
() => {
|
|
47
|
+
const currentRoutePath = getNestedRoutePath(route, c.routeDepth!);
|
|
48
|
+
// 前面路由不是当前导航视图的不走
|
|
49
|
+
// 路由跳转匹配层级不比导航视图层级高的不走。如分页关系的表单对应的事导航视图的路由。
|
|
50
|
+
if (
|
|
51
|
+
expViewRoutePath === currentRoutePath &&
|
|
52
|
+
route.matched.length > c.routeDepth!
|
|
53
|
+
) {
|
|
54
|
+
c.onRouteChange(route);
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{ immediate: true },
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return { ns, c, onViewCreated };
|
|
62
|
+
},
|
|
63
|
+
render() {
|
|
64
|
+
const { viewModals, state } = this.c;
|
|
65
|
+
const { currentKey, cacheKeys, navViewMsgs, cache } = state;
|
|
66
|
+
let content: VNode | null = null;
|
|
67
|
+
if (state.routeOpen) {
|
|
68
|
+
content = (
|
|
69
|
+
<iBizRouterView
|
|
70
|
+
manualKey={currentKey}
|
|
71
|
+
modal={viewModals[currentKey]}
|
|
72
|
+
onCreated={this.onViewCreated}
|
|
73
|
+
>
|
|
74
|
+
{({ Component }: { Component: string }): VNode | null => {
|
|
75
|
+
const routerContent =
|
|
76
|
+
currentKey === '' || !Component
|
|
77
|
+
? null
|
|
78
|
+
: ((<Component />) as VNode);
|
|
79
|
+
|
|
80
|
+
return cache ? (
|
|
81
|
+
<keepAlive include={cacheKeys} max={30} isKey>
|
|
82
|
+
{routerContent}
|
|
83
|
+
</keepAlive>
|
|
84
|
+
) : (
|
|
85
|
+
routerContent
|
|
86
|
+
);
|
|
87
|
+
}}
|
|
88
|
+
</iBizRouterView>
|
|
89
|
+
);
|
|
90
|
+
} else {
|
|
91
|
+
const view = currentKey
|
|
92
|
+
? h(resolveComponent('IBizViewShell'), {
|
|
93
|
+
context: navViewMsgs[currentKey].context,
|
|
94
|
+
params: navViewMsgs[currentKey].params,
|
|
95
|
+
key: navViewMsgs[currentKey].key,
|
|
96
|
+
viewId: navViewMsgs[currentKey].viewId,
|
|
97
|
+
onCreated: this.onViewCreated,
|
|
98
|
+
})
|
|
99
|
+
: null;
|
|
100
|
+
content = cache ? (
|
|
101
|
+
<keepAlive include={cacheKeys} max={30} isKey>
|
|
102
|
+
{view}
|
|
103
|
+
</keepAlive>
|
|
104
|
+
) : (
|
|
105
|
+
view
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return (
|
|
110
|
+
<div
|
|
111
|
+
class={[
|
|
112
|
+
this.ns.b(),
|
|
113
|
+
this.ns.m(this.modelData.id),
|
|
114
|
+
...this.controller.containerClass,
|
|
115
|
+
]}
|
|
116
|
+
>
|
|
117
|
+
{content}
|
|
118
|
+
</div>
|
|
119
|
+
);
|
|
120
|
+
},
|
|
121
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { registerPanelItemProvider } from '@ibiz-template/runtime';
|
|
3
|
+
import { withInstall } from '../../util';
|
|
4
|
+
import { PanelContainer } from './panel-container';
|
|
5
|
+
import { PanelContainerProvider } from './panel-container.provider';
|
|
6
|
+
import { PanelContainerState } from './panel-container.state';
|
|
7
|
+
import { PanelContainerController } from './panel-container.controller';
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
PanelContainerProvider,
|
|
11
|
+
PanelContainerState,
|
|
12
|
+
PanelContainerController,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export const IBizPanelContainer = withInstall(
|
|
16
|
+
PanelContainer,
|
|
17
|
+
function (v: App) {
|
|
18
|
+
v.component(PanelContainer.name, PanelContainer);
|
|
19
|
+
registerPanelItemProvider('CONTAINER', () => new PanelContainerProvider());
|
|
20
|
+
registerPanelItemProvider(
|
|
21
|
+
'CONTAINER_DEFAULT',
|
|
22
|
+
() => new PanelContainerProvider(),
|
|
23
|
+
);
|
|
24
|
+
// registerPanelItemProvider(
|
|
25
|
+
// 'CONTAINER_CONTAINER_GRID',
|
|
26
|
+
// () => new PanelContainerProvider(),
|
|
27
|
+
// );
|
|
28
|
+
},
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
export default IBizPanelContainer;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { PanelItemController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IPanelContainer } from '@ibiz/model-core';
|
|
3
|
+
import { PanelContainerState } from './panel-container.state';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* 面板容器控制器
|
|
7
|
+
*
|
|
8
|
+
* @export
|
|
9
|
+
* @class PanelContainerController
|
|
10
|
+
* @extends {PanelItemController}
|
|
11
|
+
*/
|
|
12
|
+
export class PanelContainerController extends PanelItemController<IPanelContainer> {
|
|
13
|
+
declare state: PanelContainerState;
|
|
14
|
+
|
|
15
|
+
protected createState(): PanelContainerState {
|
|
16
|
+
return new PanelContainerState(this.parent?.state);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IPanelItemProvider,
|
|
3
|
+
PanelController,
|
|
4
|
+
PanelItemController,
|
|
5
|
+
} from '@ibiz-template/runtime';
|
|
6
|
+
import { IPanelContainer } from '@ibiz/model-core';
|
|
7
|
+
import { PanelContainerController } from './panel-container.controller';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 面板容器适配器
|
|
11
|
+
*
|
|
12
|
+
* @author lxm
|
|
13
|
+
* @date 2022-09-19 22:09:03
|
|
14
|
+
* @export
|
|
15
|
+
* @class PanelContainerProvider
|
|
16
|
+
* @implements {EditorProvider}
|
|
17
|
+
*/
|
|
18
|
+
export class PanelContainerProvider implements IPanelItemProvider {
|
|
19
|
+
component: string = 'IBizPanelContainer';
|
|
20
|
+
|
|
21
|
+
async createController(
|
|
22
|
+
panelItem: IPanelContainer,
|
|
23
|
+
panel: PanelController,
|
|
24
|
+
parent: PanelItemController | undefined,
|
|
25
|
+
): Promise<PanelItemController> {
|
|
26
|
+
const c = new PanelContainerController(panelItem, panel, parent);
|
|
27
|
+
await c.init();
|
|
28
|
+
return c;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PanelItemState } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* 面板容器状态
|
|
5
|
+
*
|
|
6
|
+
* @author lxm
|
|
7
|
+
* @date 2023-02-07 06:04:27
|
|
8
|
+
* @export
|
|
9
|
+
* @class PanelContainerState
|
|
10
|
+
* @extends {PanelItemState}
|
|
11
|
+
*/
|
|
12
|
+
export class PanelContainerState extends PanelItemState {}
|