@ibiz-template/vue3-util 0.6.1-dev.0 → 0.6.1-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.css +1 -1
- package/lib/_virtual/_commonjsHelpers.cjs +46 -0
- package/lib/common/badge/badge.cjs +34 -0
- package/lib/common/badge/badge.css +1 -0
- package/lib/common/code-list/code-list.cjs +105 -0
- package/lib/common/code-list/code-list.css +1 -0
- package/lib/common/control-base/control-base.cjs +102 -0
- package/lib/common/control-base/control-base.css +1 -0
- package/lib/common/control-loading-placeholder/control-loading-placeholder.cjs +32 -0
- package/lib/common/control-shell/control-shell.cjs +58 -0
- package/lib/common/control-shell/control-shell.css +1 -0
- package/lib/common/icon/icon.cjs +103 -0
- package/lib/common/index.cjs +21 -0
- package/lib/common/router-view/router-view.cjs +77 -0
- package/lib/common/view-shell/view-shell.cjs +137 -0
- package/lib/common/view-shell/view-shell.css +1 -0
- package/lib/control/index.cjs +10 -0
- package/lib/control/panel/index.cjs +9 -0
- package/lib/control/panel/panel/index.cjs +18 -0
- package/lib/control/panel/panel/panel.cjs +142 -0
- package/lib/control/panel/panel/panel.css +1 -0
- package/lib/control/panel/panel/panel.provider.cjs +10 -0
- package/lib/control/panel/view-layout-panel/index.cjs +24 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +144 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.css +1 -0
- package/lib/control/panel/view-layout-panel/view-layout-panel.provider.cjs +10 -0
- package/lib/hooks/app/app.hooks.cjs +26 -0
- package/lib/hooks/index.cjs +7 -0
- package/lib/interface/index.cjs +5 -0
- package/lib/interface/util/index.cjs +5 -0
- package/lib/interface/util/route/route.cjs +3 -0
- package/lib/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.cjs +540 -0
- package/lib/panel-component/grid-container/grid-container.cjs +108 -0
- package/lib/panel-component/grid-container/grid-container.controller.cjs +14 -0
- package/lib/panel-component/grid-container/grid-container.css +1 -0
- package/lib/panel-component/grid-container/grid-container.provider.cjs +17 -0
- package/lib/panel-component/grid-container/grid-container.state.cjs +9 -0
- package/lib/panel-component/grid-container/index.cjs +25 -0
- package/lib/panel-component/index.cjs +73 -0
- package/lib/panel-component/multi-data-container/index.cjs +28 -0
- package/lib/panel-component/multi-data-container/multi-data-container-item.controller.cjs +119 -0
- package/lib/panel-component/multi-data-container/multi-data-container-itm.state.cjs +19 -0
- package/lib/panel-component/multi-data-container/multi-data-container.cjs +89 -0
- package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +262 -0
- package/lib/panel-component/multi-data-container/multi-data-container.css +1 -0
- package/lib/panel-component/multi-data-container/multi-data-container.provider.cjs +17 -0
- package/lib/panel-component/multi-data-container/multi-data-container.state.cjs +19 -0
- package/lib/panel-component/nav-pos/index.cjs +22 -0
- package/lib/panel-component/nav-pos/nav-pos.cjs +107 -0
- package/lib/panel-component/nav-pos/nav-pos.controller.cjs +312 -0
- package/lib/panel-component/nav-pos/nav-pos.css +1 -0
- package/lib/panel-component/nav-pos/nav-pos.provider.cjs +26 -0
- package/lib/panel-component/nav-pos/nav-pos.state.cjs +49 -0
- package/lib/panel-component/panel-container/index.cjs +29 -0
- package/lib/panel-component/panel-container/panel-container.cjs +72 -0
- package/lib/panel-component/panel-container/panel-container.controller.cjs +14 -0
- package/lib/panel-component/panel-container/panel-container.css +1 -0
- package/lib/panel-component/panel-container/panel-container.provider.cjs +17 -0
- package/lib/panel-component/panel-container/panel-container.state.cjs +9 -0
- package/lib/panel-component/panel-container-group/index.cjs +28 -0
- package/lib/panel-component/panel-container-group/panel-container-group.cjs +110 -0
- package/lib/panel-component/panel-container-group/panel-container-group.controller.cjs +37 -0
- package/lib/panel-component/panel-container-group/panel-container-group.css +1 -0
- package/lib/panel-component/panel-container-group/panel-container-group.provider.cjs +17 -0
- package/lib/panel-component/panel-container-group/panel-container-group.state.cjs +9 -0
- package/lib/panel-component/panel-container-image/index.cjs +28 -0
- package/lib/panel-component/panel-container-image/panel-container-image.cjs +95 -0
- package/lib/panel-component/panel-container-image/panel-container-image.controller.cjs +14 -0
- package/lib/panel-component/panel-container-image/panel-container-image.css +1 -0
- package/lib/panel-component/panel-container-image/panel-container-image.provider.cjs +17 -0
- package/lib/panel-component/panel-container-image/panel-container-image.state.cjs +9 -0
- package/lib/panel-component/panel-ctrl-pos/index.cjs +20 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.cjs +47 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.cjs +25 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +1 -0
- package/lib/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.cjs +17 -0
- package/lib/panel-component/panel-field/index.cjs +20 -0
- package/lib/panel-component/panel-field/panel-field.cjs +78 -0
- package/lib/panel-component/panel-field/panel-field.controller.cjs +132 -0
- package/lib/panel-component/panel-field/panel-field.css +1 -0
- package/lib/panel-component/panel-field/panel-field.provider.cjs +17 -0
- package/lib/panel-component/panel-field/panel-field.state.cjs +9 -0
- package/lib/panel-component/panel-item-render/index.cjs +24 -0
- package/lib/panel-component/panel-item-render/panel-item-render.cjs +49 -0
- package/lib/panel-component/panel-item-render/panel-item-render.controller.cjs +31 -0
- package/lib/panel-component/panel-item-render/panel-item-render.provider.cjs +17 -0
- package/lib/panel-component/panel-rawitem/index.cjs +32 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +61 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.controller.cjs +30 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.css +1 -0
- package/lib/panel-component/panel-rawitem/panel-rawitem.provider.cjs +17 -0
- package/lib/panel-component/panel-tab-page/index.cjs +18 -0
- package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +65 -0
- package/lib/panel-component/panel-tab-page/panel-tab-page.provider.cjs +17 -0
- package/lib/panel-component/scroll-container/index.cjs +55 -0
- package/lib/panel-component/scroll-container/scroll-container/index.cjs +9 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +114 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.cjs +14 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.css +1 -0
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.provider.cjs +17 -0
- package/lib/panel-component/scroll-container/scroll-container-item/index.cjs +9 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +66 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.cjs +9 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +1 -0
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.cjs +17 -0
- package/lib/panel-component/single-data-container/index.cjs +28 -0
- package/lib/panel-component/single-data-container/single-data-container.cjs +79 -0
- package/lib/panel-component/single-data-container/single-data-container.controller.cjs +287 -0
- package/lib/panel-component/single-data-container/single-data-container.css +1 -0
- package/lib/panel-component/single-data-container/single-data-container.provider.cjs +17 -0
- package/lib/panel-component/single-data-container/single-data-container.state.cjs +19 -0
- package/lib/plugin/index.cjs +7 -0
- package/{src/plugin/plugin-factory/plugin-factory.ts → lib/plugin/plugin-factory/plugin-factory.cjs} +137 -182
- package/lib/props/common.cjs +17 -0
- package/lib/props/editor/array.cjs +14 -0
- package/lib/props/editor/autocomplete.cjs +14 -0
- package/lib/props/editor/cascader.cjs +14 -0
- package/lib/props/editor/check-box-list.cjs +14 -0
- package/lib/props/editor/check-box.cjs +14 -0
- package/lib/props/editor/code.cjs +23 -0
- package/lib/props/editor/color-picker.cjs +14 -0
- package/lib/props/editor/common.cjs +62 -0
- package/lib/props/editor/data-picker.cjs +14 -0
- package/lib/props/editor/date-picker.cjs +14 -0
- package/lib/props/editor/date-range.cjs +14 -0
- package/lib/props/editor/dropdown-list.cjs +14 -0
- package/lib/props/editor/html.cjs +14 -0
- package/lib/props/editor/index.cjs +86 -0
- package/lib/props/editor/list-box.cjs +14 -0
- package/lib/props/editor/markdown.cjs +22 -0
- package/lib/props/editor/number-range.cjs +14 -0
- package/lib/props/editor/radio-button-list.cjs +14 -0
- package/lib/props/editor/rate.cjs +14 -0
- package/lib/props/editor/raw.cjs +14 -0
- package/lib/props/editor/slider.cjs +14 -0
- package/lib/props/editor/span.cjs +14 -0
- package/lib/props/editor/stepper.cjs +14 -0
- package/lib/props/editor/switch.cjs +14 -0
- package/lib/props/editor/text-box.cjs +30 -0
- package/lib/props/editor/upload.cjs +14 -0
- package/lib/props/index.cjs +89 -0
- package/lib/use/click-outside/click-outside.cjs +50 -0
- package/lib/use/control/index.cjs +7 -0
- package/lib/use/control/use-control-controller/use-control-controller.cjs +78 -0
- package/lib/use/event/event.cjs +39 -0
- package/lib/use/focus-blur/focus-blur.cjs +48 -0
- package/lib/use/index.cjs +34 -0
- package/lib/use/namespace/namespace.cjs +10 -0
- package/lib/use/route/route.cjs +31 -0
- package/lib/use/util/index.cjs +14 -0
- package/lib/use/view/index.cjs +7 -0
- package/lib/use/view/use-view-controller/use-view-controller.cjs +86 -0
- package/lib/use/vue/vue.cjs +64 -0
- package/lib/util/control/prepare-control.cjs +24 -0
- package/lib/util/index.cjs +43 -0
- package/lib/util/install.cjs +11 -0
- package/lib/util/overlay-container/overlay-container.cjs +116 -0
- package/lib/util/overlay-popover-container/overlay-popover-container.cjs +12 -0
- package/lib/util/overlay-view-util/overlay-view-util.cjs +70 -0
- package/lib/util/render/render.cjs +22 -0
- package/lib/util/route/route-listener.cjs +75 -0
- package/lib/util/route/route.cjs +302 -0
- package/lib/util/router-callback/router-callback-item.cjs +74 -0
- package/{src/util/router-callback/router-callback.ts → lib/util/router-callback/router-callback.cjs} +28 -40
- package/lib/util/store/app-store/app-store.cjs +12 -0
- package/lib/util/store/index.cjs +12 -0
- package/lib/util/store/ui-store/ui-store.cjs +17 -0
- package/lib/util/store/ui-store/z-index.cjs +20 -0
- package/lib/view/app-redirect-view/app-redirect-view.cjs +29 -0
- package/lib/view/common/index.cjs +15 -0
- package/lib/view/common/view.cjs +129 -0
- package/lib/view/common/view.css +1 -0
- package/lib/view/common/view.provider.cjs +10 -0
- package/lib/view/de-redirect-view/de-redirect-view.cjs +64 -0
- package/lib/view/de-redirect-view/de-redirect-view.provider.cjs +10 -0
- package/lib/view/de-redirect-view/index.cjs +22 -0
- package/lib/view/index.cjs +15 -0
- package/lib/view/portal-view/index.cjs +23 -0
- package/lib/view/portal-view/portal-view.cjs +95 -0
- package/lib/view/portal-view/portal-view.provider.cjs +10 -0
- package/lib/view/todo-redirect/todo-redirect.cjs +54 -0
- package/package.json +11 -7
- package/src/common/badge/badge.scss +0 -29
- package/src/common/badge/badge.tsx +0 -26
- package/src/common/code-list/code-list.scss +0 -15
- package/src/common/code-list/code-list.tsx +0 -127
- package/src/common/control-base/control-base.scss +0 -4
- package/src/common/control-base/control-base.tsx +0 -130
- package/src/common/control-loading-placeholder/control-loading-placeholder.tsx +0 -22
- package/src/common/control-shell/control-shell.scss +0 -5
- package/src/common/control-shell/control-shell.tsx +0 -70
- package/src/common/icon/icon.tsx +0 -82
- package/src/common/index.ts +0 -8
- package/src/common/router-view/router-view.tsx +0 -74
- package/src/common/view-shell/view-shell.scss +0 -5
- package/src/common/view-shell/view-shell.tsx +0 -163
- package/src/control/index.ts +0 -1
- package/src/control/panel/index.ts +0 -2
- package/src/control/panel/panel/index.ts +0 -12
- package/src/control/panel/panel/panel.provider.ts +0 -14
- package/src/control/panel/panel/panel.scss +0 -9
- package/src/control/panel/panel/panel.tsx +0 -166
- package/src/control/panel/view-layout-panel/index.ts +0 -18
- package/src/control/panel/view-layout-panel/view-layout-panel.provider.ts +0 -14
- package/src/control/panel/view-layout-panel/view-layout-panel.scss +0 -9
- package/src/control/panel/view-layout-panel/view-layout-panel.tsx +0 -178
- package/src/hooks/app/app.hooks.ts +0 -31
- package/src/hooks/index.ts +0 -1
- package/src/index.ts +0 -18
- package/src/interface/index.ts +0 -1
- package/src/interface/util/index.ts +0 -1
- package/src/interface/util/route/route.ts +0 -116
- package/src/panel-component/grid-container/grid-container.controller.ts +0 -18
- package/src/panel-component/grid-container/grid-container.provider.ts +0 -30
- package/src/panel-component/grid-container/grid-container.scss +0 -17
- package/src/panel-component/grid-container/grid-container.state.ts +0 -12
- package/src/panel-component/grid-container/grid-container.tsx +0 -119
- package/src/panel-component/grid-container/index.ts +0 -19
- package/src/panel-component/index.ts +0 -13
- package/src/panel-component/multi-data-container/index.ts +0 -22
- package/src/panel-component/multi-data-container/multi-data-container-item.controller.ts +0 -166
- package/src/panel-component/multi-data-container/multi-data-container-itm.state.ts +0 -20
- package/src/panel-component/multi-data-container/multi-data-container.controller.ts +0 -308
- package/src/panel-component/multi-data-container/multi-data-container.provider.ts +0 -30
- package/src/panel-component/multi-data-container/multi-data-container.scss +0 -10
- package/src/panel-component/multi-data-container/multi-data-container.state.ts +0 -20
- package/src/panel-component/multi-data-container/multi-data-container.tsx +0 -109
- package/src/panel-component/nav-pos/index.ts +0 -16
- package/src/panel-component/nav-pos/nav-pos.controller.ts +0 -401
- package/src/panel-component/nav-pos/nav-pos.provider.ts +0 -38
- package/src/panel-component/nav-pos/nav-pos.scss +0 -4
- package/src/panel-component/nav-pos/nav-pos.state.ts +0 -52
- package/src/panel-component/nav-pos/nav-pos.tsx +0 -121
- package/src/panel-component/panel-container/index.ts +0 -27
- package/src/panel-component/panel-container/panel-container.controller.ts +0 -18
- package/src/panel-component/panel-container/panel-container.provider.ts +0 -30
- package/src/panel-component/panel-container/panel-container.scss +0 -15
- package/src/panel-component/panel-container/panel-container.state.ts +0 -12
- package/src/panel-component/panel-container/panel-container.tsx +0 -72
- package/src/panel-component/panel-container-group/index.ts +0 -22
- package/src/panel-component/panel-container-group/panel-container-group.controller.ts +0 -43
- package/src/panel-component/panel-container-group/panel-container-group.provider.ts +0 -30
- package/src/panel-component/panel-container-group/panel-container-group.scss +0 -91
- package/src/panel-component/panel-container-group/panel-container-group.state.ts +0 -12
- package/src/panel-component/panel-container-group/panel-container-group.tsx +0 -112
- package/src/panel-component/panel-container-image/index.ts +0 -22
- package/src/panel-component/panel-container-image/panel-container-image.controller.ts +0 -18
- package/src/panel-component/panel-container-image/panel-container-image.provider.ts +0 -30
- package/src/panel-component/panel-container-image/panel-container-image.scss +0 -18
- package/src/panel-component/panel-container-image/panel-container-image.state.ts +0 -12
- package/src/panel-component/panel-container-image/panel-container-image.tsx +0 -95
- package/src/panel-component/panel-ctrl-pos/index.ts +0 -14
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.ts +0 -53
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.ts +0 -30
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +0 -8
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +0 -53
- package/src/panel-component/panel-field/index.ts +0 -14
- package/src/panel-component/panel-field/panel-field.controller.ts +0 -174
- package/src/panel-component/panel-field/panel-field.provider.ts +0 -28
- package/src/panel-component/panel-field/panel-field.scss +0 -36
- package/src/panel-component/panel-field/panel-field.state.ts +0 -12
- package/src/panel-component/panel-field/panel-field.tsx +0 -81
- package/src/panel-component/panel-item-render/index.ts +0 -18
- package/src/panel-component/panel-item-render/panel-item-render.controller.ts +0 -52
- package/src/panel-component/panel-item-render/panel-item-render.provider.ts +0 -30
- package/src/panel-component/panel-item-render/panel-item-render.tsx +0 -50
- package/src/panel-component/panel-rawitem/index.ts +0 -26
- package/src/panel-component/panel-rawitem/panel-rawitem.controller.ts +0 -34
- package/src/panel-component/panel-rawitem/panel-rawitem.provider.ts +0 -28
- package/src/panel-component/panel-rawitem/panel-rawitem.scss +0 -8
- package/src/panel-component/panel-rawitem/panel-rawitem.tsx +0 -61
- package/src/panel-component/panel-tab-page/index.ts +0 -12
- package/src/panel-component/panel-tab-page/panel-tab-page.provider.ts +0 -27
- package/src/panel-component/panel-tab-page/panel-tab-page.tsx +0 -55
- package/src/panel-component/scroll-container/index.ts +0 -44
- package/src/panel-component/scroll-container/scroll-container/index.ts +0 -2
- package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +0 -32
- package/src/panel-component/scroll-container/scroll-container/scroll-container.provider.ts +0 -30
- package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +0 -34
- package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +0 -110
- package/src/panel-component/scroll-container/scroll-container-item/index.ts +0 -2
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +0 -25
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.ts +0 -30
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +0 -9
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +0 -60
- package/src/panel-component/single-data-container/index.ts +0 -22
- package/src/panel-component/single-data-container/single-data-container.controller.ts +0 -345
- package/src/panel-component/single-data-container/single-data-container.provider.ts +0 -30
- package/src/panel-component/single-data-container/single-data-container.scss +0 -10
- package/src/panel-component/single-data-container/single-data-container.state.ts +0 -20
- package/src/panel-component/single-data-container/single-data-container.tsx +0 -95
- package/src/plugin/index.ts +0 -1
- package/src/props/common.ts +0 -30
- package/src/props/editor/array.ts +0 -27
- package/src/props/editor/autocomplete.ts +0 -27
- package/src/props/editor/cascader.ts +0 -27
- package/src/props/editor/check-box-list.ts +0 -27
- package/src/props/editor/check-box.ts +0 -27
- package/src/props/editor/code.ts +0 -36
- package/src/props/editor/color-picker.ts +0 -27
- package/src/props/editor/common.ts +0 -94
- package/src/props/editor/data-picker.ts +0 -27
- package/src/props/editor/date-picker.ts +0 -27
- package/src/props/editor/date-range.ts +0 -23
- package/src/props/editor/dropdown-list.ts +0 -27
- package/src/props/editor/html.ts +0 -27
- package/src/props/editor/index.ts +0 -25
- package/src/props/editor/list-box.ts +0 -27
- package/src/props/editor/markdown.ts +0 -35
- package/src/props/editor/number-range.ts +0 -23
- package/src/props/editor/radio-button-list.ts +0 -27
- package/src/props/editor/rate.ts +0 -23
- package/src/props/editor/raw.ts +0 -23
- package/src/props/editor/slider.ts +0 -23
- package/src/props/editor/span.ts +0 -27
- package/src/props/editor/stepper.ts +0 -23
- package/src/props/editor/switch.ts +0 -23
- package/src/props/editor/text-box.ts +0 -79
- package/src/props/editor/upload.ts +0 -27
- package/src/props/index.ts +0 -2
- package/src/types/index.d.ts +0 -8
- package/src/use/click-outside/click-outside.ts +0 -72
- package/src/use/control/index.ts +0 -1
- package/src/use/control/use-control-controller/use-control-controller.ts +0 -153
- package/src/use/event/event.ts +0 -57
- package/src/use/focus-blur/focus-blur.ts +0 -83
- package/src/use/index.ts +0 -9
- package/src/use/namespace/namespace.ts +0 -14
- package/src/use/route/route.ts +0 -47
- package/src/use/util/index.ts +0 -26
- package/src/use/view/index.ts +0 -1
- package/src/use/view/use-view-controller/use-view-controller.ts +0 -153
- package/src/use/vue/vue.ts +0 -142
- package/src/util/control/prepare-control.ts +0 -33
- package/src/util/index.ts +0 -10
- package/src/util/install.ts +0 -14
- package/src/util/overlay-container/overlay-container.ts +0 -155
- package/src/util/overlay-popover-container/overlay-popover-container.ts +0 -30
- package/src/util/overlay-view-util/overlay-view-util.ts +0 -89
- package/src/util/render/render.ts +0 -28
- package/src/util/route/route-listener.ts +0 -91
- package/src/util/route/route.ts +0 -520
- package/src/util/router-callback/router-callback-item.ts +0 -98
- package/src/util/store/app-store/app-store.ts +0 -10
- package/src/util/store/index.ts +0 -6
- package/src/util/store/ui-store/ui-store.ts +0 -27
- package/src/util/store/ui-store/z-index.ts +0 -53
- package/src/view/app-redirect-view/app-redirect-view.tsx +0 -26
- package/src/view/common/index.ts +0 -10
- package/src/view/common/view.provider.ts +0 -14
- package/src/view/common/view.scss +0 -38
- package/src/view/common/view.tsx +0 -152
- package/src/view/de-redirect-view/de-redirect-view.provider.ts +0 -14
- package/src/view/de-redirect-view/de-redirect-view.tsx +0 -62
- package/src/view/de-redirect-view/index.ts +0 -17
- package/src/view/index.ts +0 -5
- package/src/view/portal-view/index.ts +0 -18
- package/src/view/portal-view/portal-view.provider.ts +0 -14
- package/src/view/portal-view/portal-view.tsx +0 -79
- package/src/view/todo-redirect/todo-redirect.tsx +0 -51
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vueRouter = require('vue-router');
|
|
5
|
+
var navPos_controller = require('./nav-pos.controller.cjs');
|
|
6
|
+
require('./nav-pos.css');
|
|
7
|
+
require('../../use/index.cjs');
|
|
8
|
+
require('../../util/index.cjs');
|
|
9
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
10
|
+
var route = require('../../util/route/route.cjs');
|
|
11
|
+
|
|
12
|
+
"use strict";
|
|
13
|
+
function _isSlot(s) {
|
|
14
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
15
|
+
}
|
|
16
|
+
const NavPos = /* @__PURE__ */ vue.defineComponent({
|
|
17
|
+
name: "IBizNavPos",
|
|
18
|
+
props: {
|
|
19
|
+
modelData: {
|
|
20
|
+
type: Object,
|
|
21
|
+
required: true
|
|
22
|
+
},
|
|
23
|
+
controller: {
|
|
24
|
+
type: navPos_controller.NavPosController,
|
|
25
|
+
required: true
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
setup(props) {
|
|
29
|
+
const c = props.controller;
|
|
30
|
+
const ns = namespace.useNamespace("nav-pos");
|
|
31
|
+
const onViewCreated = (event) => {
|
|
32
|
+
c.onViewCreated(event);
|
|
33
|
+
};
|
|
34
|
+
const router = vueRouter.useRouter();
|
|
35
|
+
const route$1 = vueRouter.useRoute();
|
|
36
|
+
c.setRouter(router);
|
|
37
|
+
if (c.routeDepth) {
|
|
38
|
+
const expViewRoutePath = route.getNestedRoutePath(route$1, c.routeDepth);
|
|
39
|
+
vue.watch(() => route$1.fullPath, () => {
|
|
40
|
+
const currentRoutePath = route.getNestedRoutePath(route$1, c.routeDepth);
|
|
41
|
+
if (expViewRoutePath === currentRoutePath && route$1.matched.length > c.routeDepth) {
|
|
42
|
+
c.onRouteChange(route$1);
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
immediate: true
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
ns,
|
|
50
|
+
c,
|
|
51
|
+
onViewCreated
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
render() {
|
|
55
|
+
const {
|
|
56
|
+
viewModals,
|
|
57
|
+
state
|
|
58
|
+
} = this.c;
|
|
59
|
+
const {
|
|
60
|
+
currentKey,
|
|
61
|
+
cacheKeys,
|
|
62
|
+
navViewMsgs,
|
|
63
|
+
cache
|
|
64
|
+
} = state;
|
|
65
|
+
let content = null;
|
|
66
|
+
if (state.routeOpen) {
|
|
67
|
+
content = vue.createVNode(vue.resolveComponent("iBizRouterView"), {
|
|
68
|
+
"manualKey": currentKey,
|
|
69
|
+
"modal": viewModals[currentKey],
|
|
70
|
+
"onCreated": this.onViewCreated
|
|
71
|
+
}, {
|
|
72
|
+
default: ({
|
|
73
|
+
Component
|
|
74
|
+
}) => {
|
|
75
|
+
const routerContent = currentKey === "" || !Component ? null : vue.createVNode(Component, null, null);
|
|
76
|
+
return cache ? vue.createVNode(vue.resolveComponent("keepAlive"), {
|
|
77
|
+
"include": cacheKeys,
|
|
78
|
+
"max": 30,
|
|
79
|
+
"isKey": true
|
|
80
|
+
}, _isSlot(routerContent) ? routerContent : {
|
|
81
|
+
default: () => [routerContent]
|
|
82
|
+
}) : routerContent;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
} else {
|
|
86
|
+
const view = currentKey ? vue.h(vue.resolveComponent("IBizViewShell"), {
|
|
87
|
+
context: navViewMsgs[currentKey].context,
|
|
88
|
+
params: navViewMsgs[currentKey].params,
|
|
89
|
+
key: currentKey,
|
|
90
|
+
viewId: navViewMsgs[currentKey].viewId,
|
|
91
|
+
onCreated: this.onViewCreated
|
|
92
|
+
}) : null;
|
|
93
|
+
content = cache ? vue.createVNode(vue.resolveComponent("keepAlive"), {
|
|
94
|
+
"include": cacheKeys,
|
|
95
|
+
"max": 30,
|
|
96
|
+
"isKey": true
|
|
97
|
+
}, _isSlot(view) ? view : {
|
|
98
|
+
default: () => [view]
|
|
99
|
+
}) : view;
|
|
100
|
+
}
|
|
101
|
+
return vue.createVNode("div", {
|
|
102
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.id), ...this.controller.containerClass]
|
|
103
|
+
}, [content]);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
exports.NavPos = NavPos;
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
var qxUtil = require('qx-util');
|
|
5
|
+
var ramda = require('ramda');
|
|
6
|
+
var navPos_state = require('./nav-pos.state.cjs');
|
|
7
|
+
require('../../util/index.cjs');
|
|
8
|
+
var route = require('../../util/route/route.cjs');
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
const excludeKeys = ["is404", "isRoutePushed"];
|
|
12
|
+
class NavPosController extends runtime.PanelItemController {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
/**
|
|
16
|
+
* 导航视图的modal
|
|
17
|
+
*
|
|
18
|
+
* @type {{ [key: string]: IModal }}
|
|
19
|
+
* @memberof NavPosController
|
|
20
|
+
*/
|
|
21
|
+
this.viewModals = {};
|
|
22
|
+
/**
|
|
23
|
+
* 关联部件标识集合
|
|
24
|
+
* @author lxm
|
|
25
|
+
* @date 2023-08-10 07:35:08
|
|
26
|
+
* @type {string[]}
|
|
27
|
+
*/
|
|
28
|
+
this.refCtrlKeys = [];
|
|
29
|
+
/**
|
|
30
|
+
* 自定义补充参数
|
|
31
|
+
*
|
|
32
|
+
* @author zk
|
|
33
|
+
* @date 2023-09-27 03:09:02
|
|
34
|
+
* @type {IData}
|
|
35
|
+
* @memberof NavPosController
|
|
36
|
+
*/
|
|
37
|
+
this.rawItemParams = {};
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Route 对象
|
|
41
|
+
*
|
|
42
|
+
* @author zk
|
|
43
|
+
* @date 2023-06-29 04:06:59
|
|
44
|
+
* @type {RouteLocationNormalizedLoaded}
|
|
45
|
+
* @memberof NavPosController
|
|
46
|
+
*/
|
|
47
|
+
get route() {
|
|
48
|
+
return this.router.currentRoute.value;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* 导航项是否缓存
|
|
52
|
+
*
|
|
53
|
+
* @author zk
|
|
54
|
+
* @date 2023-09-27 03:09:49
|
|
55
|
+
* @param {INavViewMsg} navViewMsg
|
|
56
|
+
* @return {*} {boolean}
|
|
57
|
+
* @memberof NavPosController
|
|
58
|
+
*/
|
|
59
|
+
getExpItemIsCache(navViewMsg) {
|
|
60
|
+
if (this.rawItemParams.expcache === "CACHE") {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
if (this.rawItemParams.expcache === "NO_CACHE") {
|
|
64
|
+
return false;
|
|
65
|
+
}
|
|
66
|
+
return navViewMsg.isCache;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* 设置 Router 对象
|
|
70
|
+
*
|
|
71
|
+
* @param {Router} router
|
|
72
|
+
* @memberof NavPosController
|
|
73
|
+
*/
|
|
74
|
+
setRouter(router) {
|
|
75
|
+
this.router = router;
|
|
76
|
+
}
|
|
77
|
+
async onInit() {
|
|
78
|
+
var _a;
|
|
79
|
+
await super.onInit();
|
|
80
|
+
this.handleRawItemParams();
|
|
81
|
+
if ((_a = this.model.rawItem) == null ? void 0 : _a.rawItemParams) {
|
|
82
|
+
this.model.rawItem.rawItemParams.find((item) => {
|
|
83
|
+
if (item.key === "REFCTRL" && item.value) {
|
|
84
|
+
this.refCtrlKeys = item.value.split(";").map((str) => str.toLowerCase());
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
return false;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
this.panel.evt.on("onControlEvent", (event) => {
|
|
91
|
+
const isRefCtrl = this.refCtrlKeys.length === 0 || this.refCtrlKeys.includes(event.triggerControlName);
|
|
92
|
+
if (isRefCtrl && event.triggerEventName === "onNavViewChange") {
|
|
93
|
+
const triggerEvent = event.triggerEvent;
|
|
94
|
+
this.openView(triggerEvent.navViewMsg);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
const expRoute = this.rawItemParams.expmode || this.panel.view.params.expmode;
|
|
98
|
+
if (expRoute === "ROUTE" && this.routeDepth) {
|
|
99
|
+
this.state.routeOpen = true;
|
|
100
|
+
} else if (expRoute === "NO_ROUTE") {
|
|
101
|
+
this.state.routeOpen = false;
|
|
102
|
+
} else {
|
|
103
|
+
this.state.routeOpen = !!this.routeDepth;
|
|
104
|
+
}
|
|
105
|
+
if (this.panel.view.params.expmode) {
|
|
106
|
+
delete this.panel.view.params.expmode;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* 创建导航占位状态对象
|
|
111
|
+
*
|
|
112
|
+
* @protected
|
|
113
|
+
* @return {*} {NavPosState}
|
|
114
|
+
* @memberof NavPosController
|
|
115
|
+
*/
|
|
116
|
+
createState() {
|
|
117
|
+
var _a;
|
|
118
|
+
return new navPos_state.NavPosState((_a = this.parent) == null ? void 0 : _a.state);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* 当前路由视图的层级
|
|
122
|
+
*
|
|
123
|
+
* @readonly
|
|
124
|
+
* @type {(number | undefined)}
|
|
125
|
+
* @memberof NavPosController
|
|
126
|
+
*/
|
|
127
|
+
get routeDepth() {
|
|
128
|
+
return this.panel.view.modal.routeDepth;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* 计算缓存 key 标识
|
|
132
|
+
*
|
|
133
|
+
* @author chitanda
|
|
134
|
+
* @date 2023-12-03 13:12:25
|
|
135
|
+
* @protected
|
|
136
|
+
* @param {INavViewMsg} msg
|
|
137
|
+
* @return {*} {string}
|
|
138
|
+
*/
|
|
139
|
+
calcCacheKey(msg) {
|
|
140
|
+
if (msg) {
|
|
141
|
+
return "".concat(msg.viewId, "___").concat(msg.key);
|
|
142
|
+
}
|
|
143
|
+
return "";
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* 路由改变
|
|
147
|
+
*
|
|
148
|
+
* @memberof NavPosController
|
|
149
|
+
*/
|
|
150
|
+
onRouteChange(route) {
|
|
151
|
+
if (this.curNavViewMsg) {
|
|
152
|
+
const cacheKey = this.calcCacheKey(this.curNavViewMsg);
|
|
153
|
+
this.state.currentKey = cacheKey;
|
|
154
|
+
this.state.navViewMsgs[cacheKey].fullPath = route.fullPath;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* 设置导航视图信息
|
|
159
|
+
*
|
|
160
|
+
* @author zk
|
|
161
|
+
* @date 2023-06-29 02:06:41
|
|
162
|
+
* @param {INavViewMsg} navViewMsg 导航视图信息
|
|
163
|
+
* @memberof NavPosController
|
|
164
|
+
*/
|
|
165
|
+
setNavViewMsgs(navViewMsg) {
|
|
166
|
+
navViewMsg.isRoutePushed = navViewMsg.isRoutePushed === true;
|
|
167
|
+
const cacheKey = this.calcCacheKey(navViewMsg);
|
|
168
|
+
if (this.state.navViewMsgs[cacheKey]) {
|
|
169
|
+
ramda.mergeLeft(this.state.navViewMsgs[cacheKey], navViewMsg);
|
|
170
|
+
excludeKeys.forEach((key) => {
|
|
171
|
+
if (Object.prototype.hasOwnProperty.call(navViewMsg, key)) {
|
|
172
|
+
this.state.navViewMsgs[cacheKey][key] = void 0;
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
} else {
|
|
176
|
+
this.state.navViewMsgs[cacheKey] = navViewMsg;
|
|
177
|
+
if (this.getExpItemIsCache(navViewMsg)) {
|
|
178
|
+
this.state.cacheKeys.push(cacheKey);
|
|
179
|
+
}
|
|
180
|
+
this.viewModals[cacheKey] = new runtime.Modal({
|
|
181
|
+
mode: this.routeDepth ? runtime.ViewMode.ROUTE : runtime.ViewMode.EMBED,
|
|
182
|
+
routeDepth: this.routeDepth ? this.routeDepth + 1 : void 0,
|
|
183
|
+
dismiss: () => {
|
|
184
|
+
this.dismiss(cacheKey);
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
this.curNavViewMsg = this.state.navViewMsgs[cacheKey];
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* 自身的dismiss相关操作
|
|
192
|
+
*
|
|
193
|
+
* @param {string} key
|
|
194
|
+
* @memberof NavPosController
|
|
195
|
+
*/
|
|
196
|
+
dismiss(key) {
|
|
197
|
+
ibiz.log.debug(this.constructor.name, "dismiss", key);
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* 监听视图创建
|
|
201
|
+
*
|
|
202
|
+
* @param {EventBase} event
|
|
203
|
+
* @memberof NavPosController
|
|
204
|
+
*/
|
|
205
|
+
onViewCreated(event) {
|
|
206
|
+
ibiz.log.debug(this.constructor.name, "onViewCreated", event);
|
|
207
|
+
}
|
|
208
|
+
toBlankRoute() {
|
|
209
|
+
const blankRoute = route.getNestedRoutePath(this.route, this.routeDepth);
|
|
210
|
+
this.router.push(blankRoute);
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* 打开视图
|
|
214
|
+
*
|
|
215
|
+
* @param {INavViewMsg} openViewMsg
|
|
216
|
+
* @memberof NavPosController
|
|
217
|
+
*/
|
|
218
|
+
openView(openViewMsg) {
|
|
219
|
+
if (!openViewMsg.key) {
|
|
220
|
+
this.state.currentKey = this.calcCacheKey(openViewMsg);
|
|
221
|
+
if (this.routeDepth && this.state.routeOpen) {
|
|
222
|
+
this.toBlankRoute();
|
|
223
|
+
}
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
if (this.routeDepth && this.state.routeOpen) {
|
|
227
|
+
this.openViewByPath(openViewMsg);
|
|
228
|
+
} else {
|
|
229
|
+
this.openViewByModel(openViewMsg);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* 通过路由打开视图
|
|
234
|
+
*
|
|
235
|
+
* @param {INavViewMsg} openViewMsg
|
|
236
|
+
* @memberof NavPosController
|
|
237
|
+
*/
|
|
238
|
+
openViewByPath(openViewMsg) {
|
|
239
|
+
var _a, _b;
|
|
240
|
+
const cacheKey = this.calcCacheKey(openViewMsg);
|
|
241
|
+
this.setNavViewMsgs(openViewMsg);
|
|
242
|
+
const isRoutePushed = openViewMsg.isRoutePushed === true;
|
|
243
|
+
if (isRoutePushed) {
|
|
244
|
+
this.state.currentKey = cacheKey;
|
|
245
|
+
this.state.navViewMsgs[this.calcCacheKey(this.curNavViewMsg)].fullPath = this.route.fullPath;
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
if (openViewMsg.is404) {
|
|
249
|
+
const selfPath = route.getNestedRoutePath(this.route, this.routeDepth, false);
|
|
250
|
+
if ((_a = openViewMsg.modalOptions) == null ? void 0 : _a.replace) {
|
|
251
|
+
this.router.replace("".concat(selfPath, "/404"));
|
|
252
|
+
} else {
|
|
253
|
+
this.router.push("".concat(selfPath, "/404"));
|
|
254
|
+
}
|
|
255
|
+
} else if (
|
|
256
|
+
// 如果启用缓存并且有之前存过的fullPath则push回fullPath。
|
|
257
|
+
this.state.navViewMsgs[cacheKey].fullPath && this.getExpItemIsCache(openViewMsg)
|
|
258
|
+
) {
|
|
259
|
+
if ((_b = openViewMsg.modalOptions) == null ? void 0 : _b.replace) {
|
|
260
|
+
this.router.replace(this.state.navViewMsgs[cacheKey].fullPath);
|
|
261
|
+
} else {
|
|
262
|
+
this.router.push(this.state.navViewMsgs[cacheKey].fullPath);
|
|
263
|
+
}
|
|
264
|
+
} else {
|
|
265
|
+
const tempContext = Object.assign(openViewMsg.context.clone(), {
|
|
266
|
+
toRouteDepth: this.routeDepth + 1
|
|
267
|
+
});
|
|
268
|
+
if (this.getExpItemIsCache(openViewMsg)) {
|
|
269
|
+
this.state.cacheKeys.push(cacheKey);
|
|
270
|
+
}
|
|
271
|
+
ibiz.commands.execute(
|
|
272
|
+
runtime.OpenAppViewCommand.TAG,
|
|
273
|
+
openViewMsg.viewId,
|
|
274
|
+
tempContext,
|
|
275
|
+
openViewMsg.params,
|
|
276
|
+
{ openMode: "INDEXVIEWTAB", ...openViewMsg.modalOptions }
|
|
277
|
+
);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
/**
|
|
281
|
+
* 通过模型绘制视图
|
|
282
|
+
*
|
|
283
|
+
* @param {INavViewMsg} openViewMsg
|
|
284
|
+
* @memberof NavPosController
|
|
285
|
+
*/
|
|
286
|
+
openViewByModel(openViewMsg) {
|
|
287
|
+
this.setNavViewMsgs(openViewMsg);
|
|
288
|
+
this.state.currentKey = this.calcCacheKey(openViewMsg);
|
|
289
|
+
}
|
|
290
|
+
/**
|
|
291
|
+
* 处理自定义补充参数 [{key:'name',value:'data'}] => {name:'data'}
|
|
292
|
+
*
|
|
293
|
+
* @author zk
|
|
294
|
+
* @date 2023-09-27 03:09:55
|
|
295
|
+
* @protected
|
|
296
|
+
* @memberof NavPosController
|
|
297
|
+
*/
|
|
298
|
+
handleRawItemParams() {
|
|
299
|
+
var _a;
|
|
300
|
+
let params = {};
|
|
301
|
+
const rawItemParams = (_a = this.model.rawItem) == null ? void 0 : _a.rawItemParams;
|
|
302
|
+
if (qxUtil.notNilEmpty(rawItemParams)) {
|
|
303
|
+
params = rawItemParams.reduce((param, item) => {
|
|
304
|
+
param[item.key.toLowerCase()] = item.value;
|
|
305
|
+
return param;
|
|
306
|
+
}, {});
|
|
307
|
+
}
|
|
308
|
+
Object.assign(this.rawItemParams, params);
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
exports.NavPosController = NavPosController;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-nav-pos{width:100%;height:100%}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var navPos_controller = require('./nav-pos.controller.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class NavPosProvider {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.component = "IBizNavPos";
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 创建控制器
|
|
12
|
+
*
|
|
13
|
+
* @param {IPanelItem} panelItem
|
|
14
|
+
* @param {PanelController} panel
|
|
15
|
+
* @param {(PanelItemController | undefined)} parent
|
|
16
|
+
* @return {*} {Promise<IPanelItemNavPosController>}
|
|
17
|
+
* @memberof NavPosProvider
|
|
18
|
+
*/
|
|
19
|
+
async createController(panelItem, panel, parent) {
|
|
20
|
+
const c = new navPos_controller.NavPosController(panelItem, panel, parent);
|
|
21
|
+
await c.init();
|
|
22
|
+
return c;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.NavPosProvider = NavPosProvider;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class NavPosState extends runtime.PanelItemState {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
/**
|
|
10
|
+
* 是否启用缓存
|
|
11
|
+
*
|
|
12
|
+
* @type {boolean}
|
|
13
|
+
* @memberof NavPosState
|
|
14
|
+
*/
|
|
15
|
+
this.cache = true;
|
|
16
|
+
/**
|
|
17
|
+
* 是否是路由打开
|
|
18
|
+
*
|
|
19
|
+
* @author zk
|
|
20
|
+
* @date 2023-09-26 04:09:23
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof NavPosState
|
|
23
|
+
*/
|
|
24
|
+
this.routeOpen = true;
|
|
25
|
+
/**
|
|
26
|
+
* 当前导航视图标识
|
|
27
|
+
* @author lxm
|
|
28
|
+
* @date 2023-05-25 06:24:48
|
|
29
|
+
* @type {string}
|
|
30
|
+
*/
|
|
31
|
+
this.currentKey = "";
|
|
32
|
+
/**
|
|
33
|
+
* 缓存的视图标识
|
|
34
|
+
* @author lxm
|
|
35
|
+
* @date 2023-05-25 06:25:21
|
|
36
|
+
* @type {string[]}
|
|
37
|
+
*/
|
|
38
|
+
this.cacheKeys = ["RouterShell"];
|
|
39
|
+
/**
|
|
40
|
+
* 导航视图详细信息
|
|
41
|
+
* @author lxm
|
|
42
|
+
* @date 2023-05-25 07:07:05
|
|
43
|
+
* @type {INavViewMsg[]}
|
|
44
|
+
*/
|
|
45
|
+
this.navViewMsgs = {};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
exports.NavPosState = NavPosState;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
require('../../util/index.cjs');
|
|
7
|
+
var panelContainer = require('./panel-container.cjs');
|
|
8
|
+
var panelContainer_provider = require('./panel-container.provider.cjs');
|
|
9
|
+
var panelContainer_state = require('./panel-container.state.cjs');
|
|
10
|
+
var panelContainer_controller = require('./panel-container.controller.cjs');
|
|
11
|
+
var install = require('../../util/install.cjs');
|
|
12
|
+
|
|
13
|
+
"use strict";
|
|
14
|
+
const IBizPanelContainer = install.withInstall(
|
|
15
|
+
panelContainer.PanelContainer,
|
|
16
|
+
function(v) {
|
|
17
|
+
v.component(panelContainer.PanelContainer.name, panelContainer.PanelContainer);
|
|
18
|
+
runtime.registerPanelItemProvider("CONTAINER", () => new panelContainer_provider.PanelContainerProvider());
|
|
19
|
+
runtime.registerPanelItemProvider(
|
|
20
|
+
"CONTAINER_DEFAULT",
|
|
21
|
+
() => new panelContainer_provider.PanelContainerProvider()
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
exports.PanelContainerState = panelContainer_state.PanelContainerState;
|
|
27
|
+
exports.PanelContainerController = panelContainer_controller.PanelContainerController;
|
|
28
|
+
exports.IBizPanelContainer = IBizPanelContainer;
|
|
29
|
+
exports.default = IBizPanelContainer;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
require('../../use/index.cjs');
|
|
5
|
+
var panelContainer_controller = require('./panel-container.controller.cjs');
|
|
6
|
+
require('./panel-container.css');
|
|
7
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
function _isSlot(s) {
|
|
11
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
12
|
+
}
|
|
13
|
+
const PanelContainer = /* @__PURE__ */ vue.defineComponent({
|
|
14
|
+
name: "IBizPanelContainer",
|
|
15
|
+
props: {
|
|
16
|
+
modelData: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
controller: {
|
|
21
|
+
type: panelContainer_controller.PanelContainerController,
|
|
22
|
+
required: true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
setup(props) {
|
|
26
|
+
const ns = namespace.useNamespace("panel-container");
|
|
27
|
+
const {
|
|
28
|
+
id
|
|
29
|
+
} = props.modelData;
|
|
30
|
+
const classArr = vue.computed(() => {
|
|
31
|
+
let result = [ns.b(), ns.m(id)];
|
|
32
|
+
result = [...result, ...props.controller.containerClass, ns.is("hidden", !props.controller.state.visible)];
|
|
33
|
+
return result;
|
|
34
|
+
});
|
|
35
|
+
return {
|
|
36
|
+
ns,
|
|
37
|
+
classArr
|
|
38
|
+
};
|
|
39
|
+
},
|
|
40
|
+
render() {
|
|
41
|
+
var _a, _b;
|
|
42
|
+
let _slot;
|
|
43
|
+
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
44
|
+
const content = vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
45
|
+
"slot": "content",
|
|
46
|
+
"layout": this.modelData.layout
|
|
47
|
+
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
48
|
+
const props = slot.props;
|
|
49
|
+
if (!props || !props.controller) {
|
|
50
|
+
return slot;
|
|
51
|
+
}
|
|
52
|
+
return vue.createVNode(vue.resolveComponent("iBizCol"), {
|
|
53
|
+
"layoutPos": props.modelData.layoutPos,
|
|
54
|
+
"state": props.controller.state
|
|
55
|
+
}, _isSlot(slot) ? slot : {
|
|
56
|
+
default: () => [slot]
|
|
57
|
+
});
|
|
58
|
+
})) ? _slot : {
|
|
59
|
+
default: () => [_slot]
|
|
60
|
+
});
|
|
61
|
+
return vue.createVNode("div", {
|
|
62
|
+
"class": this.classArr,
|
|
63
|
+
"onClick": () => {
|
|
64
|
+
this.controller.onClick();
|
|
65
|
+
}
|
|
66
|
+
}, [this.controller.model.cssStyle ? vue.createVNode("style", {
|
|
67
|
+
"type": "text/css"
|
|
68
|
+
}, [this.controller.model.cssStyle]) : null, content]);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
exports.PanelContainer = PanelContainer;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
var panelContainer_state = require('./panel-container.state.cjs');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
class PanelContainerController extends runtime.PanelItemController {
|
|
8
|
+
createState() {
|
|
9
|
+
var _a;
|
|
10
|
+
return new panelContainer_state.PanelContainerState((_a = this.parent) == null ? void 0 : _a.state);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.PanelContainerController = PanelContainerController;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-panel-container{width:100%;height:100%}.ibiz-panel-container>.ibiz-row{height:100%;overflow-x:hidden;overflow-y:auto}.ibiz-panel-container.is-hidden{display:none}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var panelContainer_controller = require('./panel-container.controller.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class PanelContainerProvider {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.component = "IBizPanelContainer";
|
|
9
|
+
}
|
|
10
|
+
async createController(panelItem, panel, parent) {
|
|
11
|
+
const c = new panelContainer_controller.PanelContainerController(panelItem, panel, parent);
|
|
12
|
+
await c.init();
|
|
13
|
+
return c;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
exports.PanelContainerProvider = PanelContainerProvider;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
var panelContainerGroup_state = require('./panel-container-group.state.cjs');
|
|
7
|
+
var panelContainerGroup_provider = require('./panel-container-group.provider.cjs');
|
|
8
|
+
var panelContainerGroup_controller = require('./panel-container-group.controller.cjs');
|
|
9
|
+
var panelContainerGroup = require('./panel-container-group.cjs');
|
|
10
|
+
require('../../util/index.cjs');
|
|
11
|
+
var install = require('../../util/install.cjs');
|
|
12
|
+
|
|
13
|
+
"use strict";
|
|
14
|
+
const IBizPanelContainerGroup = install.withInstall(
|
|
15
|
+
panelContainerGroup.PanelContainerGroup,
|
|
16
|
+
function(v) {
|
|
17
|
+
v.component(panelContainerGroup.PanelContainerGroup.name, panelContainerGroup.PanelContainerGroup);
|
|
18
|
+
runtime.registerPanelItemProvider(
|
|
19
|
+
"CONTAINER_CONTAINER_GROUP",
|
|
20
|
+
() => new panelContainerGroup_provider.PanelContainerGroupProvider()
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
exports.PanelContainerGroupState = panelContainerGroup_state.PanelContainerGroupState;
|
|
26
|
+
exports.PanelContainerGroupController = panelContainerGroup_controller.PanelContainerGroupController;
|
|
27
|
+
exports.IBizPanelContainerGroup = IBizPanelContainerGroup;
|
|
28
|
+
exports.default = IBizPanelContainerGroup;
|