@ibiz-template/vue3-util 0.2.11 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.min.css +1 -0
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/es/_virtual/_commonjsHelpers.mjs +40 -0
- package/es/common/code-list/code-list.css +1 -0
- package/es/common/code-list/code-list.d.ts +58 -0
- package/es/common/code-list/code-list.d.ts.map +1 -0
- package/es/common/code-list/code-list.mjs +85 -0
- package/es/common/control-base/control-base.css +1 -0
- package/es/common/control-base/control-base.d.ts +2 -0
- package/es/common/control-base/control-base.d.ts.map +1 -0
- package/es/common/control-base/control-base.mjs +99 -0
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +31 -0
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts.map +1 -0
- package/es/common/control-loading-placeholder/control-loading-placeholder.mjs +30 -0
- package/es/common/control-shell/control-shell.css +1 -0
- package/es/common/control-shell/control-shell.d.ts +21 -0
- package/es/common/control-shell/control-shell.d.ts.map +1 -0
- package/es/common/control-shell/control-shell.mjs +56 -0
- package/es/common/icon/icon.d.ts +29 -0
- package/es/common/icon/icon.d.ts.map +1 -0
- package/es/common/icon/icon.mjs +89 -0
- package/es/common/index.d.ts +9 -0
- package/es/common/index.d.ts.map +1 -0
- package/es/common/index.mjs +9 -0
- package/es/common/router-view/router-view.d.ts +30 -0
- package/es/common/router-view/router-view.d.ts.map +1 -0
- package/es/common/router-view/router-view.mjs +75 -0
- package/es/common/view-shell/view-shell.css +1 -0
- package/es/common/view-shell/view-shell.d.ts +40 -0
- package/es/common/view-shell/view-shell.d.ts.map +1 -0
- package/es/common/view-shell/view-shell.mjs +77 -0
- package/{out → es}/index.d.ts +3 -0
- package/es/index.d.ts.map +1 -0
- package/es/index.mjs +95 -0
- package/es/interface/index.mjs +3 -0
- package/es/interface/util/index.mjs +3 -0
- package/es/interface/util/route/route.mjs +1 -0
- package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +535 -0
- package/es/panel-component/grid-container/grid-container.controller.d.ts +15 -0
- package/es/panel-component/grid-container/grid-container.controller.d.ts.map +1 -0
- package/es/panel-component/grid-container/grid-container.controller.mjs +12 -0
- package/es/panel-component/grid-container/grid-container.css +1 -0
- package/es/panel-component/grid-container/grid-container.d.ts +38 -0
- package/es/panel-component/grid-container/grid-container.d.ts.map +1 -0
- package/es/panel-component/grid-container/grid-container.mjs +106 -0
- package/es/panel-component/grid-container/grid-container.provider.d.ts +16 -0
- package/es/panel-component/grid-container/grid-container.provider.d.ts.map +1 -0
- package/es/panel-component/grid-container/grid-container.provider.mjs +15 -0
- package/es/panel-component/grid-container/grid-container.state.d.ts +13 -0
- package/es/panel-component/grid-container/grid-container.state.d.ts.map +1 -0
- package/es/panel-component/grid-container/grid-container.state.mjs +7 -0
- package/es/panel-component/grid-container/index.d.ts +38 -0
- package/es/panel-component/grid-container/index.d.ts.map +1 -0
- package/es/panel-component/grid-container/index.mjs +18 -0
- package/es/panel-component/index.d.ts +10 -0
- package/es/panel-component/index.d.ts.map +1 -0
- package/es/panel-component/index.mjs +28 -0
- package/es/panel-component/multi-data-container/index.d.ts +37 -0
- package/es/panel-component/multi-data-container/index.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/index.mjs +21 -0
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.d.ts +61 -0
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container-item.controller.mjs +117 -0
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.d.ts +20 -0
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container-itm.state.mjs +17 -0
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts +107 -0
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +260 -0
- package/es/panel-component/multi-data-container/multi-data-container.css +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.d.ts +36 -0
- package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.mjs +87 -0
- package/es/panel-component/multi-data-container/multi-data-container.provider.d.ts +16 -0
- package/es/panel-component/multi-data-container/multi-data-container.provider.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.provider.mjs +15 -0
- package/es/panel-component/multi-data-container/multi-data-container.state.d.ts +20 -0
- package/es/panel-component/multi-data-container/multi-data-container.state.d.ts.map +1 -0
- package/es/panel-component/multi-data-container/multi-data-container.state.mjs +17 -0
- package/es/panel-component/nav-pos/index.d.ts +28 -0
- package/es/panel-component/nav-pos/index.d.ts.map +1 -0
- package/es/panel-component/nav-pos/index.mjs +15 -0
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts +163 -0
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts.map +1 -0
- package/es/panel-component/nav-pos/nav-pos.controller.mjs +283 -0
- package/es/panel-component/nav-pos/nav-pos.css +1 -0
- package/es/panel-component/nav-pos/nav-pos.d.ts +29 -0
- package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -0
- package/es/panel-component/nav-pos/nav-pos.mjs +105 -0
- package/es/panel-component/nav-pos/nav-pos.provider.d.ts +23 -0
- package/es/panel-component/nav-pos/nav-pos.provider.d.ts.map +1 -0
- package/es/panel-component/nav-pos/nav-pos.provider.mjs +24 -0
- package/es/panel-component/nav-pos/nav-pos.state.d.ts +50 -0
- package/es/panel-component/nav-pos/nav-pos.state.d.ts.map +1 -0
- package/es/panel-component/nav-pos/nav-pos.state.mjs +47 -0
- package/es/panel-component/panel-container/index.d.ts +27 -0
- package/es/panel-component/panel-container/index.d.ts.map +1 -0
- package/es/panel-component/panel-container/index.mjs +22 -0
- package/es/panel-component/panel-container/panel-container.controller.d.ts +15 -0
- package/es/panel-component/panel-container/panel-container.controller.d.ts.map +1 -0
- package/es/panel-component/panel-container/panel-container.controller.mjs +12 -0
- package/es/panel-component/panel-container/panel-container.css +1 -0
- package/es/panel-component/panel-container/panel-container.d.ts +27 -0
- package/es/panel-component/panel-container/panel-container.d.ts.map +1 -0
- package/es/panel-component/panel-container/panel-container.mjs +70 -0
- package/es/panel-component/panel-container/panel-container.provider.d.ts +16 -0
- package/es/panel-component/panel-container/panel-container.provider.d.ts.map +1 -0
- package/es/panel-component/panel-container/panel-container.provider.mjs +15 -0
- package/es/panel-component/panel-container/panel-container.state.d.ts +13 -0
- package/es/panel-component/panel-container/panel-container.state.d.ts.map +1 -0
- package/es/panel-component/panel-container/panel-container.state.mjs +7 -0
- package/es/panel-component/panel-ctrl-pos/index.d.ts +25 -0
- package/es/panel-component/panel-ctrl-pos/index.d.ts.map +1 -0
- package/es/panel-component/panel-ctrl-pos/index.mjs +14 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts +36 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.d.ts.map +1 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.mjs +23 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.css +1 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +25 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +45 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.d.ts +17 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.d.ts.map +1 -0
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.mjs +15 -0
- package/es/panel-component/panel-field/index.d.ts +26 -0
- package/es/panel-component/panel-field/index.d.ts.map +1 -0
- package/es/panel-component/panel-field/index.mjs +14 -0
- package/es/panel-component/panel-field/panel-field.controller.d.ts +75 -0
- package/es/panel-component/panel-field/panel-field.controller.d.ts.map +1 -0
- package/es/panel-component/panel-field/panel-field.controller.mjs +90 -0
- package/es/panel-component/panel-field/panel-field.css +1 -0
- package/es/panel-component/panel-field/panel-field.d.ts +28 -0
- package/es/panel-component/panel-field/panel-field.d.ts.map +1 -0
- package/es/panel-component/panel-field/panel-field.mjs +73 -0
- package/es/panel-component/panel-field/panel-field.provider.d.ts +15 -0
- package/es/panel-component/panel-field/panel-field.provider.d.ts.map +1 -0
- package/es/panel-component/panel-field/panel-field.provider.mjs +15 -0
- package/es/panel-component/panel-field/panel-field.state.d.ts +13 -0
- package/es/panel-component/panel-field/panel-field.state.d.ts.map +1 -0
- package/es/panel-component/panel-field/panel-field.state.mjs +7 -0
- package/es/panel-component/panel-rawitem/index.d.ts +25 -0
- package/es/panel-component/panel-rawitem/index.d.ts.map +1 -0
- package/es/panel-component/panel-rawitem/index.mjs +18 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.d.ts +29 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.d.ts.map +1 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.controller.mjs +28 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.css +1 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +27 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts.map +1 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.mjs +50 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.d.ts +15 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.d.ts.map +1 -0
- package/es/panel-component/panel-rawitem/panel-rawitem.provider.mjs +15 -0
- package/es/panel-component/scroll-container/index.d.ts +26 -0
- package/es/panel-component/scroll-container/index.d.ts.map +1 -0
- package/es/panel-component/scroll-container/index.mjs +46 -0
- package/es/panel-component/scroll-container/scroll-container/index.d.ts +3 -0
- package/es/panel-component/scroll-container/scroll-container/index.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container/index.mjs +4 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +23 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.mjs +12 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.css +1 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +27 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +112 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.d.ts +17 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container/scroll-container.provider.mjs +15 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.d.ts +3 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/index.mjs +4 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +22 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.mjs +7 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.css +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +27 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +64 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.d.ts +17 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.d.ts.map +1 -0
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.mjs +15 -0
- package/es/panel-component/single-data-container/index.d.ts +37 -0
- package/es/panel-component/single-data-container/index.d.ts.map +1 -0
- package/es/panel-component/single-data-container/index.mjs +21 -0
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts +122 -0
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts.map +1 -0
- package/es/panel-component/single-data-container/single-data-container.controller.mjs +285 -0
- package/es/panel-component/single-data-container/single-data-container.css +1 -0
- package/es/panel-component/single-data-container/single-data-container.d.ts +36 -0
- package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -0
- package/es/panel-component/single-data-container/single-data-container.mjs +77 -0
- package/es/panel-component/single-data-container/single-data-container.provider.d.ts +16 -0
- package/es/panel-component/single-data-container/single-data-container.provider.d.ts.map +1 -0
- package/es/panel-component/single-data-container/single-data-container.provider.mjs +15 -0
- package/es/panel-component/single-data-container/single-data-container.state.d.ts +20 -0
- package/es/panel-component/single-data-container/single-data-container.state.d.ts.map +1 -0
- package/es/panel-component/single-data-container/single-data-container.state.mjs +17 -0
- package/es/plugin/index.mjs +3 -0
- package/es/plugin/plugin-factory/plugin-factory.mjs +292 -0
- package/es/props/common.mjs +15 -0
- package/es/props/editor/array.mjs +11 -0
- package/es/props/editor/autocomplete.mjs +11 -0
- package/es/props/editor/cascader.mjs +11 -0
- package/es/props/editor/check-box-list.mjs +11 -0
- package/es/props/editor/check-box.mjs +11 -0
- package/es/props/editor/code.mjs +20 -0
- package/es/props/editor/color-picker.mjs +11 -0
- package/es/props/editor/common.mjs +48 -0
- package/es/props/editor/data-picker.mjs +11 -0
- package/es/props/editor/date-picker.mjs +11 -0
- package/es/props/editor/date-range.mjs +11 -0
- package/es/props/editor/dropdown-list.mjs +11 -0
- package/es/props/editor/html.mjs +11 -0
- package/es/props/editor/index.mjs +27 -0
- package/es/props/editor/list-box.mjs +11 -0
- package/es/props/editor/markdown.mjs +19 -0
- package/es/props/editor/number-range.mjs +11 -0
- package/es/props/editor/radio-button-list.mjs +11 -0
- package/es/props/editor/rate.mjs +11 -0
- package/es/props/editor/raw.mjs +11 -0
- package/es/props/editor/slider.mjs +11 -0
- package/{out → es}/props/editor/span.d.ts +2 -2
- package/es/props/editor/span.mjs +11 -0
- package/es/props/editor/stepper.mjs +11 -0
- package/es/props/editor/switch.mjs +11 -0
- package/es/props/editor/text-box.mjs +23 -0
- package/es/props/editor/upload.mjs +11 -0
- package/es/props/index.mjs +29 -0
- package/es/use/click-outside/click-outside.mjs +48 -0
- package/es/use/control/index.mjs +3 -0
- package/es/use/control/use-control-controller/use-control-controller.mjs +74 -0
- package/es/use/event/event.mjs +37 -0
- package/es/use/focus-blur/focus-blur.mjs +46 -0
- package/es/use/index.mjs +13 -0
- package/es/use/namespace/namespace.mjs +8 -0
- package/es/use/route/route.mjs +28 -0
- package/es/use/util/index.mjs +11 -0
- package/{out/use/view/index.js → es/use/view/index.mjs} +3 -1
- package/es/use/view/use-view-controller/use-view-controller.mjs +72 -0
- package/es/use/vue/vue.mjs +55 -0
- package/es/util/control/prepare-control.mjs +22 -0
- package/es/util/index.d.ts +11 -0
- package/es/util/index.d.ts.map +1 -0
- package/es/util/index.mjs +14 -0
- package/es/util/install.mjs +9 -0
- package/es/util/overlay-container/overlay-container.d.ts +93 -0
- package/es/util/overlay-container/overlay-container.d.ts.map +1 -0
- package/es/util/overlay-container/overlay-container.mjs +114 -0
- package/es/util/overlay-popover-container/overlay-popover-container.d.ts +17 -0
- package/es/util/overlay-popover-container/overlay-popover-container.d.ts.map +1 -0
- package/es/util/overlay-popover-container/overlay-popover-container.mjs +10 -0
- package/es/util/overlay-view-util/overlay-view-util.d.ts +9 -0
- package/es/util/overlay-view-util/overlay-view-util.d.ts.map +1 -0
- package/es/util/overlay-view-util/overlay-view-util.mjs +63 -0
- package/es/util/render/render.mjs +20 -0
- package/es/util/route/route-listener.mjs +73 -0
- package/{out → es}/util/route/route.d.ts +20 -20
- package/es/util/route/route.d.ts.map +1 -0
- package/es/util/route/route.mjs +252 -0
- package/es/util/router-callback/router-callback-item.d.ts +62 -0
- package/es/util/router-callback/router-callback-item.d.ts.map +1 -0
- package/es/util/router-callback/router-callback-item.mjs +72 -0
- package/es/util/router-callback/router-callback.d.ts +60 -0
- package/es/util/router-callback/router-callback.d.ts.map +1 -0
- package/es/util/router-callback/router-callback.mjs +86 -0
- package/es/util/store/app-store/app-store.d.ts +10 -0
- package/es/util/store/app-store/app-store.d.ts.map +1 -0
- package/es/util/store/app-store/app-store.mjs +10 -0
- package/es/util/store/index.d.ts +4 -0
- package/es/util/store/index.d.ts.map +1 -0
- package/es/util/store/index.mjs +8 -0
- package/es/util/store/ui-store/ui-store.d.ts +32 -0
- package/es/util/store/ui-store/ui-store.d.ts.map +1 -0
- package/es/util/store/ui-store/ui-store.mjs +15 -0
- package/es/util/store/ui-store/z-index.d.ts +35 -0
- package/es/util/store/ui-store/z-index.d.ts.map +1 -0
- package/es/util/store/ui-store/z-index.mjs +18 -0
- package/es/view/app-redirect-view/app-redirect-view.d.ts +2 -0
- package/es/view/app-redirect-view/app-redirect-view.d.ts.map +1 -0
- package/es/view/app-redirect-view/app-redirect-view.mjs +27 -0
- package/es/view/common/index.d.ts +49 -0
- package/es/view/common/index.d.ts.map +1 -0
- package/es/view/common/index.mjs +13 -0
- package/es/view/common/view.css +1 -0
- package/es/view/common/view.d.ts +53 -0
- package/es/view/common/view.d.ts.map +1 -0
- package/es/view/common/view.mjs +143 -0
- package/es/view/common/view.provider.d.ts +14 -0
- package/es/view/common/view.provider.d.ts.map +1 -0
- package/es/view/common/view.provider.mjs +8 -0
- package/es/view/index.d.ts +5 -0
- package/es/view/index.d.ts.map +1 -0
- package/es/view/index.mjs +6 -0
- package/es/view/portal-view/index.d.ts +41 -0
- package/es/view/portal-view/index.d.ts.map +1 -0
- package/es/view/portal-view/index.mjs +21 -0
- package/es/view/portal-view/portal-view.d.ts +44 -0
- package/es/view/portal-view/portal-view.d.ts.map +1 -0
- package/es/view/portal-view/portal-view.mjs +93 -0
- package/es/view/portal-view/portal-view.provider.d.ts +14 -0
- package/es/view/portal-view/portal-view.provider.d.ts.map +1 -0
- package/es/view/portal-view/portal-view.provider.mjs +8 -0
- package/es/view/todo-redirect/todo-redirect.d.ts +2 -0
- package/es/view/todo-redirect/todo-redirect.d.ts.map +1 -0
- package/es/view/todo-redirect/todo-redirect.mjs +52 -0
- package/lib/index.cjs +236 -0
- package/package.json +20 -16
- package/src/common/code-list/code-list.scss +5 -0
- package/src/common/code-list/code-list.tsx +108 -0
- package/src/common/control-base/control-base.scss +4 -0
- package/src/common/control-base/control-base.tsx +129 -0
- package/src/common/control-loading-placeholder/control-loading-placeholder.tsx +22 -0
- package/src/common/control-shell/control-shell.scss +5 -0
- package/src/common/control-shell/control-shell.tsx +70 -0
- package/src/common/icon/icon.tsx +69 -0
- package/src/common/index.ts +8 -0
- package/src/common/router-view/router-view.tsx +74 -0
- package/src/common/view-shell/view-shell.scss +5 -0
- package/src/common/view-shell/view-shell.tsx +70 -0
- package/src/index.ts +3 -0
- package/src/panel-component/grid-container/grid-container.controller.ts +18 -0
- package/src/panel-component/grid-container/grid-container.provider.ts +30 -0
- package/src/panel-component/grid-container/grid-container.scss +17 -0
- package/src/panel-component/grid-container/grid-container.state.ts +12 -0
- package/src/panel-component/grid-container/grid-container.tsx +119 -0
- package/src/panel-component/grid-container/index.ts +19 -0
- package/src/panel-component/index.ts +9 -0
- package/src/panel-component/multi-data-container/index.ts +22 -0
- package/src/panel-component/multi-data-container/multi-data-container-item.controller.ts +166 -0
- package/src/panel-component/multi-data-container/multi-data-container-itm.state.ts +20 -0
- package/src/panel-component/multi-data-container/multi-data-container.controller.ts +308 -0
- package/src/panel-component/multi-data-container/multi-data-container.provider.ts +30 -0
- package/src/panel-component/multi-data-container/multi-data-container.scss +10 -0
- package/src/panel-component/multi-data-container/multi-data-container.state.ts +20 -0
- package/src/panel-component/multi-data-container/multi-data-container.tsx +109 -0
- package/src/panel-component/nav-pos/index.ts +16 -0
- package/src/panel-component/nav-pos/nav-pos.controller.ts +373 -0
- package/src/panel-component/nav-pos/nav-pos.provider.ts +38 -0
- package/src/panel-component/nav-pos/nav-pos.scss +4 -0
- package/src/panel-component/nav-pos/nav-pos.state.ts +52 -0
- package/src/panel-component/nav-pos/nav-pos.tsx +121 -0
- package/src/panel-component/panel-container/index.ts +27 -0
- package/src/panel-component/panel-container/panel-container.controller.ts +18 -0
- package/src/panel-component/panel-container/panel-container.provider.ts +30 -0
- package/src/panel-component/panel-container/panel-container.scss +15 -0
- package/src/panel-component/panel-container/panel-container.state.ts +12 -0
- package/src/panel-component/panel-container/panel-container.tsx +72 -0
- package/src/panel-component/panel-ctrl-pos/index.ts +14 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.controller.ts +53 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.provider.ts +30 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.scss +8 -0
- package/src/panel-component/panel-ctrl-pos/panel-ctrl-pos.tsx +53 -0
- package/src/panel-component/panel-field/index.ts +14 -0
- package/src/panel-component/panel-field/panel-field.controller.ts +130 -0
- package/src/panel-component/panel-field/panel-field.provider.ts +28 -0
- package/src/panel-component/panel-field/panel-field.scss +36 -0
- package/src/panel-component/panel-field/panel-field.state.ts +12 -0
- package/src/panel-component/panel-field/panel-field.tsx +78 -0
- package/src/panel-component/panel-rawitem/index.ts +18 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.controller.ts +34 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.provider.ts +28 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.scss +8 -0
- package/src/panel-component/panel-rawitem/panel-rawitem.tsx +51 -0
- package/src/panel-component/scroll-container/index.ts +44 -0
- package/src/panel-component/scroll-container/scroll-container/index.ts +2 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.controller.ts +32 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.provider.ts +30 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.scss +34 -0
- package/src/panel-component/scroll-container/scroll-container/scroll-container.tsx +110 -0
- package/src/panel-component/scroll-container/scroll-container-item/index.ts +2 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.ts +25 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.provider.ts +30 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.scss +9 -0
- package/src/panel-component/scroll-container/scroll-container-item/scroll-container-item.tsx +60 -0
- package/src/panel-component/single-data-container/index.ts +22 -0
- package/src/panel-component/single-data-container/single-data-container.controller.ts +345 -0
- package/src/panel-component/single-data-container/single-data-container.provider.ts +30 -0
- package/src/panel-component/single-data-container/single-data-container.scss +10 -0
- package/src/panel-component/single-data-container/single-data-container.state.ts +20 -0
- package/src/panel-component/single-data-container/single-data-container.tsx +95 -0
- package/src/props/editor/span.ts +1 -1
- package/src/util/index.ts +5 -0
- package/src/util/overlay-container/overlay-container.ts +155 -0
- package/src/util/overlay-popover-container/overlay-popover-container.ts +30 -0
- package/src/util/overlay-view-util/overlay-view-util.ts +89 -0
- package/src/util/route/route.ts +142 -142
- package/src/util/router-callback/router-callback-item.ts +98 -0
- package/src/util/router-callback/router-callback.ts +97 -0
- package/src/util/store/app-store/app-store.ts +10 -0
- package/src/util/store/index.ts +6 -0
- package/src/util/store/ui-store/ui-store.ts +27 -0
- package/src/util/store/ui-store/z-index.ts +53 -0
- package/src/view/app-redirect-view/app-redirect-view.tsx +26 -0
- package/src/view/common/index.ts +10 -0
- package/src/view/common/view.provider.ts +14 -0
- package/src/view/common/view.scss +38 -0
- package/src/view/common/view.tsx +180 -0
- package/src/view/index.ts +4 -0
- package/src/view/portal-view/index.ts +18 -0
- package/src/view/portal-view/portal-view.provider.ts +14 -0
- package/src/view/portal-view/portal-view.tsx +79 -0
- package/src/view/todo-redirect/todo-redirect.tsx +51 -0
- package/dist/index.esm.js +0 -1859
- package/out/index.d.ts.map +0 -1
- package/out/index.js +0 -5
- package/out/interface/index.js +0 -1
- package/out/interface/util/index.js +0 -1
- package/out/interface/util/route/route.js +0 -1
- package/out/plugin/index.js +0 -1
- package/out/plugin/plugin-factory/plugin-factory.js +0 -297
- package/out/props/common.js +0 -23
- package/out/props/editor/array.js +0 -25
- package/out/props/editor/autocomplete.js +0 -25
- package/out/props/editor/cascader.js +0 -25
- package/out/props/editor/check-box-list.js +0 -25
- package/out/props/editor/check-box.js +0 -25
- package/out/props/editor/code.js +0 -29
- package/out/props/editor/color-picker.js +0 -25
- package/out/props/editor/common.js +0 -79
- package/out/props/editor/data-picker.js +0 -25
- package/out/props/editor/date-picker.js +0 -25
- package/out/props/editor/date-range.js +0 -21
- package/out/props/editor/dropdown-list.js +0 -25
- package/out/props/editor/html.js +0 -25
- package/out/props/editor/index.js +0 -25
- package/out/props/editor/list-box.js +0 -25
- package/out/props/editor/markdown.js +0 -28
- package/out/props/editor/number-range.js +0 -21
- package/out/props/editor/radio-button-list.js +0 -25
- package/out/props/editor/rate.js +0 -21
- package/out/props/editor/raw.js +0 -21
- package/out/props/editor/slider.js +0 -21
- package/out/props/editor/span.js +0 -25
- package/out/props/editor/stepper.js +0 -21
- package/out/props/editor/switch.js +0 -21
- package/out/props/editor/text-box.js +0 -73
- package/out/props/editor/upload.js +0 -25
- package/out/props/index.js +0 -2
- package/out/use/click-outside/click-outside.js +0 -50
- package/out/use/control/index.js +0 -1
- package/out/use/control/use-control-controller/use-control-controller.js +0 -94
- package/out/use/event/event.js +0 -39
- package/out/use/focus-blur/focus-blur.js +0 -63
- package/out/use/index.js +0 -9
- package/out/use/namespace/namespace.js +0 -13
- package/out/use/route/route.js +0 -41
- package/out/use/util/index.js +0 -23
- package/out/use/view/use-view-controller/use-view-controller.js +0 -94
- package/out/use/vue/vue.js +0 -112
- package/out/util/control/prepare-control.js +0 -25
- package/out/util/index.d.ts +0 -6
- package/out/util/index.d.ts.map +0 -1
- package/out/util/index.js +0 -5
- package/out/util/install.js +0 -6
- package/out/util/render/render.js +0 -28
- package/out/util/route/route-listener.js +0 -76
- package/out/util/route/route.d.ts.map +0 -1
- package/out/util/route/route.js +0 -385
- /package/{out → es}/interface/index.d.ts +0 -0
- /package/{out → es}/interface/index.d.ts.map +0 -0
- /package/{out → es}/interface/util/index.d.ts +0 -0
- /package/{out → es}/interface/util/index.d.ts.map +0 -0
- /package/{out → es}/interface/util/route/route.d.ts +0 -0
- /package/{out → es}/interface/util/route/route.d.ts.map +0 -0
- /package/{out → es}/plugin/index.d.ts +0 -0
- /package/{out → es}/plugin/index.d.ts.map +0 -0
- /package/{out → es}/plugin/plugin-factory/plugin-factory.d.ts +0 -0
- /package/{out → es}/plugin/plugin-factory/plugin-factory.d.ts.map +0 -0
- /package/{out → es}/props/common.d.ts +0 -0
- /package/{out → es}/props/common.d.ts.map +0 -0
- /package/{out → es}/props/editor/array.d.ts +0 -0
- /package/{out → es}/props/editor/array.d.ts.map +0 -0
- /package/{out → es}/props/editor/autocomplete.d.ts +0 -0
- /package/{out → es}/props/editor/autocomplete.d.ts.map +0 -0
- /package/{out → es}/props/editor/cascader.d.ts +0 -0
- /package/{out → es}/props/editor/cascader.d.ts.map +0 -0
- /package/{out → es}/props/editor/check-box-list.d.ts +0 -0
- /package/{out → es}/props/editor/check-box-list.d.ts.map +0 -0
- /package/{out → es}/props/editor/check-box.d.ts +0 -0
- /package/{out → es}/props/editor/check-box.d.ts.map +0 -0
- /package/{out → es}/props/editor/code.d.ts +0 -0
- /package/{out → es}/props/editor/code.d.ts.map +0 -0
- /package/{out → es}/props/editor/color-picker.d.ts +0 -0
- /package/{out → es}/props/editor/color-picker.d.ts.map +0 -0
- /package/{out → es}/props/editor/common.d.ts +0 -0
- /package/{out → es}/props/editor/common.d.ts.map +0 -0
- /package/{out → es}/props/editor/data-picker.d.ts +0 -0
- /package/{out → es}/props/editor/data-picker.d.ts.map +0 -0
- /package/{out → es}/props/editor/date-picker.d.ts +0 -0
- /package/{out → es}/props/editor/date-picker.d.ts.map +0 -0
- /package/{out → es}/props/editor/date-range.d.ts +0 -0
- /package/{out → es}/props/editor/date-range.d.ts.map +0 -0
- /package/{out → es}/props/editor/dropdown-list.d.ts +0 -0
- /package/{out → es}/props/editor/dropdown-list.d.ts.map +0 -0
- /package/{out → es}/props/editor/html.d.ts +0 -0
- /package/{out → es}/props/editor/html.d.ts.map +0 -0
- /package/{out → es}/props/editor/index.d.ts +0 -0
- /package/{out → es}/props/editor/index.d.ts.map +0 -0
- /package/{out → es}/props/editor/list-box.d.ts +0 -0
- /package/{out → es}/props/editor/list-box.d.ts.map +0 -0
- /package/{out → es}/props/editor/markdown.d.ts +0 -0
- /package/{out → es}/props/editor/markdown.d.ts.map +0 -0
- /package/{out → es}/props/editor/number-range.d.ts +0 -0
- /package/{out → es}/props/editor/number-range.d.ts.map +0 -0
- /package/{out → es}/props/editor/radio-button-list.d.ts +0 -0
- /package/{out → es}/props/editor/radio-button-list.d.ts.map +0 -0
- /package/{out → es}/props/editor/rate.d.ts +0 -0
- /package/{out → es}/props/editor/rate.d.ts.map +0 -0
- /package/{out → es}/props/editor/raw.d.ts +0 -0
- /package/{out → es}/props/editor/raw.d.ts.map +0 -0
- /package/{out → es}/props/editor/slider.d.ts +0 -0
- /package/{out → es}/props/editor/slider.d.ts.map +0 -0
- /package/{out → es}/props/editor/span.d.ts.map +0 -0
- /package/{out → es}/props/editor/stepper.d.ts +0 -0
- /package/{out → es}/props/editor/stepper.d.ts.map +0 -0
- /package/{out → es}/props/editor/switch.d.ts +0 -0
- /package/{out → es}/props/editor/switch.d.ts.map +0 -0
- /package/{out → es}/props/editor/text-box.d.ts +0 -0
- /package/{out → es}/props/editor/text-box.d.ts.map +0 -0
- /package/{out → es}/props/editor/upload.d.ts +0 -0
- /package/{out → es}/props/editor/upload.d.ts.map +0 -0
- /package/{out → es}/props/index.d.ts +0 -0
- /package/{out → es}/props/index.d.ts.map +0 -0
- /package/{out → es}/use/click-outside/click-outside.d.ts +0 -0
- /package/{out → es}/use/click-outside/click-outside.d.ts.map +0 -0
- /package/{out → es}/use/control/index.d.ts +0 -0
- /package/{out → es}/use/control/index.d.ts.map +0 -0
- /package/{out → es}/use/control/use-control-controller/use-control-controller.d.ts +0 -0
- /package/{out → es}/use/control/use-control-controller/use-control-controller.d.ts.map +0 -0
- /package/{out → es}/use/event/event.d.ts +0 -0
- /package/{out → es}/use/event/event.d.ts.map +0 -0
- /package/{out → es}/use/focus-blur/focus-blur.d.ts +0 -0
- /package/{out → es}/use/focus-blur/focus-blur.d.ts.map +0 -0
- /package/{out → es}/use/index.d.ts +0 -0
- /package/{out → es}/use/index.d.ts.map +0 -0
- /package/{out → es}/use/namespace/namespace.d.ts +0 -0
- /package/{out → es}/use/namespace/namespace.d.ts.map +0 -0
- /package/{out → es}/use/route/route.d.ts +0 -0
- /package/{out → es}/use/route/route.d.ts.map +0 -0
- /package/{out → es}/use/util/index.d.ts +0 -0
- /package/{out → es}/use/util/index.d.ts.map +0 -0
- /package/{out → es}/use/view/index.d.ts +0 -0
- /package/{out → es}/use/view/index.d.ts.map +0 -0
- /package/{out → es}/use/view/use-view-controller/use-view-controller.d.ts +0 -0
- /package/{out → es}/use/view/use-view-controller/use-view-controller.d.ts.map +0 -0
- /package/{out → es}/use/vue/vue.d.ts +0 -0
- /package/{out → es}/use/vue/vue.d.ts.map +0 -0
- /package/{out → es}/util/control/prepare-control.d.ts +0 -0
- /package/{out → es}/util/control/prepare-control.d.ts.map +0 -0
- /package/{out → es}/util/install.d.ts +0 -0
- /package/{out → es}/util/install.d.ts.map +0 -0
- /package/{out → es}/util/render/render.d.ts +0 -0
- /package/{out → es}/util/render/render.d.ts.map +0 -0
- /package/{out → es}/util/route/route-listener.d.ts +0 -0
- /package/{out → es}/util/route/route-listener.d.ts.map +0 -0
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ModelError,
|
|
3
|
+
RuntimeError,
|
|
4
|
+
RuntimeModelError,
|
|
5
|
+
} from '@ibiz-template/core';
|
|
6
|
+
import {
|
|
7
|
+
execDELogicById,
|
|
8
|
+
getAllPanelField,
|
|
9
|
+
getPanelItemProvider,
|
|
10
|
+
IPanelDataContainerController,
|
|
11
|
+
IPanelItemContainerController,
|
|
12
|
+
IPanelItemController,
|
|
13
|
+
IPanelItemProvider,
|
|
14
|
+
isDataContainer,
|
|
15
|
+
IViewController,
|
|
16
|
+
PanelController,
|
|
17
|
+
PanelData,
|
|
18
|
+
PanelItemController,
|
|
19
|
+
PanelNotifyState,
|
|
20
|
+
} from '@ibiz-template/runtime';
|
|
21
|
+
import { IPanelContainer, IPanelItem, IPanelTabPanel } from '@ibiz/model-core';
|
|
22
|
+
import { SingleDataContainerState } from './single-data-container.state';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 单项数据容器控制器
|
|
26
|
+
*
|
|
27
|
+
* @export
|
|
28
|
+
* @class SingleDataContainerController
|
|
29
|
+
* @extends {PanelItemController}
|
|
30
|
+
*/
|
|
31
|
+
export class SingleDataContainerController
|
|
32
|
+
extends PanelItemController<IPanelContainer>
|
|
33
|
+
implements IPanelDataContainerController
|
|
34
|
+
{
|
|
35
|
+
declare state: SingleDataContainerState;
|
|
36
|
+
|
|
37
|
+
readonly isDataContainer = true;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 所有面板成员的控制器
|
|
41
|
+
*
|
|
42
|
+
* @author lxm
|
|
43
|
+
* @date 2022-08-24 20:08:07
|
|
44
|
+
* @type {{ [key: string]: IPanelItemController }}
|
|
45
|
+
*/
|
|
46
|
+
panelItems: { [key: string]: IPanelItemController } = {};
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 所有面板成员的适配器
|
|
50
|
+
*
|
|
51
|
+
* @author lxm
|
|
52
|
+
* @date 2022-08-24 20:08:07
|
|
53
|
+
* @type {{ [key: string]: IPanelItemProvider }}
|
|
54
|
+
*/
|
|
55
|
+
providers: { [key: string]: IPanelItemProvider } = {};
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 单项数据容器,根据数据模式
|
|
59
|
+
* @author lxm
|
|
60
|
+
* @date 2023-07-14 10:59:02
|
|
61
|
+
* @readonly
|
|
62
|
+
* @type {IData}
|
|
63
|
+
*/
|
|
64
|
+
get data(): IData {
|
|
65
|
+
return this.state.data;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
protected createState(): SingleDataContainerState {
|
|
69
|
+
return new SingleDataContainerState(this.parent?.state);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
protected async onInit(): Promise<void> {
|
|
73
|
+
await super.onInit();
|
|
74
|
+
await this.initPanelItemControllers();
|
|
75
|
+
this.initContainerData();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* 初始化面板成员控制器
|
|
80
|
+
*
|
|
81
|
+
* @author lxm
|
|
82
|
+
* @date 2022-08-24 21:08:48
|
|
83
|
+
* @protected
|
|
84
|
+
*/
|
|
85
|
+
protected async initPanelItemControllers(
|
|
86
|
+
panelItems: IPanelItem[] | undefined = this.model.panelItems,
|
|
87
|
+
panel: PanelController = this.panel,
|
|
88
|
+
parent: IPanelItemContainerController | undefined = this,
|
|
89
|
+
): Promise<void> {
|
|
90
|
+
if (!panelItems) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
await Promise.all(
|
|
94
|
+
panelItems.map(async panelItem => {
|
|
95
|
+
// 生成面板成员控制器
|
|
96
|
+
const panelItemProvider = await getPanelItemProvider(panelItem);
|
|
97
|
+
if (!panelItemProvider) {
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
this.providers[panelItem.id!] = panelItemProvider;
|
|
101
|
+
const panelItemController = await panelItemProvider.createController(
|
|
102
|
+
panelItem,
|
|
103
|
+
panel,
|
|
104
|
+
parent,
|
|
105
|
+
);
|
|
106
|
+
this.panelItems[panelItem.id!] = panelItemController;
|
|
107
|
+
// 有子成员的,且不是数据容器的。生成子控制器
|
|
108
|
+
if (
|
|
109
|
+
(panelItem as IPanelContainer).panelItems?.length &&
|
|
110
|
+
!isDataContainer(panelItem)
|
|
111
|
+
) {
|
|
112
|
+
await this.initPanelItemControllers(
|
|
113
|
+
(panelItem as IPanelContainer).panelItems,
|
|
114
|
+
panel,
|
|
115
|
+
panelItemController as IPanelItemContainerController,
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
if ((panelItem as IPanelTabPanel).panelTabPages?.length) {
|
|
119
|
+
await this.initPanelItemControllers(
|
|
120
|
+
(panelItem as IPanelTabPanel).panelTabPages,
|
|
121
|
+
panel,
|
|
122
|
+
panelItemController as IPanelItemContainerController,
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
}),
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* 根据来源类型初始化容器数据
|
|
131
|
+
* @author lxm
|
|
132
|
+
* @date 2023-08-04 03:05:59
|
|
133
|
+
* @protected
|
|
134
|
+
*/
|
|
135
|
+
protected initContainerData(): void {
|
|
136
|
+
const { dataSourceType, dataName } = this.model;
|
|
137
|
+
switch (dataSourceType) {
|
|
138
|
+
case 'DEACTION':
|
|
139
|
+
case 'DEDATASET':
|
|
140
|
+
this.setDataByDeMethod();
|
|
141
|
+
break;
|
|
142
|
+
case 'APPGLOBALPARAM':
|
|
143
|
+
this.setDataByAppGlobalParam();
|
|
144
|
+
break;
|
|
145
|
+
case 'DELOGIC':
|
|
146
|
+
this.setDataByDeLogic();
|
|
147
|
+
break;
|
|
148
|
+
case 'TOPVIEWSESSIONPARAM': {
|
|
149
|
+
if (!dataName) {
|
|
150
|
+
throw new RuntimeModelError(this.model, '没有配置数据对象名称');
|
|
151
|
+
}
|
|
152
|
+
this.bindViewData(this.panel.getTopView(), dataName);
|
|
153
|
+
break;
|
|
154
|
+
}
|
|
155
|
+
case 'VIEWSESSIONPARAM': {
|
|
156
|
+
if (!dataName) {
|
|
157
|
+
throw new RuntimeModelError(this.model, '没有配置数据对象名称');
|
|
158
|
+
}
|
|
159
|
+
this.bindViewData(this.panel.view, dataName);
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
default:
|
|
163
|
+
throw new ModelError(this.model, `数据源类型${dataSourceType}暂未支持`);
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* 面板状态变更通知
|
|
169
|
+
*
|
|
170
|
+
* @author lxm
|
|
171
|
+
* @date 2022-09-20 18:09:07
|
|
172
|
+
*/
|
|
173
|
+
childrenStateNotify(state: PanelNotifyState): void {
|
|
174
|
+
Object.values(this.panelItems).forEach(panelItem => {
|
|
175
|
+
panelItem.panelStateNotify(state);
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* 设置数据
|
|
181
|
+
* @author lxm
|
|
182
|
+
* @date 2023-09-05 05:42:09
|
|
183
|
+
* @param {IData[]} items
|
|
184
|
+
*/
|
|
185
|
+
async setData(data: IData): Promise<void> {
|
|
186
|
+
const fields = getAllPanelField(this.model);
|
|
187
|
+
const fieldKeys = fields.map(item => item.id!);
|
|
188
|
+
const panelData = new PanelData(fields, data);
|
|
189
|
+
|
|
190
|
+
// 面板属性变更的触发变更通知
|
|
191
|
+
panelData._evt.on('change', key => {
|
|
192
|
+
if (fieldKeys.includes(key)) {
|
|
193
|
+
this.childDataChangeNotify([key]);
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
// 清空上一个,如果存在的话。
|
|
197
|
+
this.data.destroy?.();
|
|
198
|
+
this.state.data = panelData;
|
|
199
|
+
this.childrenStateNotify(PanelNotifyState.LOAD);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* 通过实体设置视图逻辑
|
|
204
|
+
* @author lxm
|
|
205
|
+
* @date 2023-08-04 03:00:31
|
|
206
|
+
* @protected
|
|
207
|
+
* @return {*} {Promise<void>}
|
|
208
|
+
*/
|
|
209
|
+
protected async setDataByDeLogic(): Promise<void> {
|
|
210
|
+
const { appDataEntityId, appDELogicId } = this.model;
|
|
211
|
+
if (!appDELogicId) {
|
|
212
|
+
throw new RuntimeModelError(this.model, '没有配置实体逻辑');
|
|
213
|
+
}
|
|
214
|
+
if (!appDataEntityId) {
|
|
215
|
+
throw new RuntimeModelError(this.model, '没有配置实体');
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
const data = await execDELogicById(
|
|
219
|
+
appDELogicId,
|
|
220
|
+
appDataEntityId,
|
|
221
|
+
this.panel.context,
|
|
222
|
+
[],
|
|
223
|
+
this.panel.params,
|
|
224
|
+
);
|
|
225
|
+
|
|
226
|
+
if (!data) {
|
|
227
|
+
throw new RuntimeError(`实体逻辑${appDELogicId}没有返回值`);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
this.setData(data as IData);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* 设置全局变量为当前容器数据
|
|
235
|
+
* @author lxm
|
|
236
|
+
* @date 2023-08-04 01:55:07
|
|
237
|
+
* @protected
|
|
238
|
+
*/
|
|
239
|
+
protected setDataByAppGlobalParam(): void {
|
|
240
|
+
const { dataName } = this.model;
|
|
241
|
+
const originData = dataName ? ibiz.appData![dataName] : ibiz.appData!;
|
|
242
|
+
if (originData) {
|
|
243
|
+
this.setData(originData as IData);
|
|
244
|
+
} else {
|
|
245
|
+
ibiz.log.error(`全局变量里没有${dataName}属性`);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* 请求实体行为并把返回值设置为当前容器的数据
|
|
251
|
+
* @author lxm
|
|
252
|
+
* @date 2023-08-04 11:47:17
|
|
253
|
+
* @protected
|
|
254
|
+
* @return {*} {Promise<void>}
|
|
255
|
+
*/
|
|
256
|
+
protected async setDataByDeMethod(): Promise<void> {
|
|
257
|
+
const { appDEMethodId, appDataEntityId } = this.model;
|
|
258
|
+
if (!appDEMethodId) {
|
|
259
|
+
throw new RuntimeModelError(this.model, '没有配置实体行为');
|
|
260
|
+
}
|
|
261
|
+
if (!appDataEntityId) {
|
|
262
|
+
throw new RuntimeModelError(this.model, '没有配置实体');
|
|
263
|
+
}
|
|
264
|
+
const app = ibiz.hub.getApp(this.panel.context.srfappid);
|
|
265
|
+
const res = await app.deService.exec(
|
|
266
|
+
appDataEntityId,
|
|
267
|
+
appDEMethodId,
|
|
268
|
+
this.panel.context,
|
|
269
|
+
[],
|
|
270
|
+
this.panel.params,
|
|
271
|
+
);
|
|
272
|
+
if (res.ok && res.data) {
|
|
273
|
+
this.setData(res.data as IData);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* 绑定指定视图会话的变量
|
|
279
|
+
* @author lxm
|
|
280
|
+
* @date 2023-07-14 02:03:56
|
|
281
|
+
* @protected
|
|
282
|
+
* @param {IViewController} view 绑定视图控制器
|
|
283
|
+
* @param {string} dataName 变量名称
|
|
284
|
+
*/
|
|
285
|
+
protected bindViewData(view: IViewController, dataName: string): void {
|
|
286
|
+
if (!Object.prototype.hasOwnProperty.call(view.state, dataName)) {
|
|
287
|
+
ibiz.log.error(`绑定视图的会话不存在${dataName}`);
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
const updateData = (): void => {
|
|
291
|
+
const originData = (view.state as IData)[dataName] as IData;
|
|
292
|
+
if (originData) {
|
|
293
|
+
this.setData(originData);
|
|
294
|
+
} else {
|
|
295
|
+
ibiz.log.error(`视图state里没有${dataName}属性`);
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
updateData(); // 先绑定一次
|
|
299
|
+
|
|
300
|
+
// 每次视图数据变更之后更新一下
|
|
301
|
+
view.evt.on('onDataChange', () => {
|
|
302
|
+
updateData();
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* 通知所有子面板成员面板操作过程中的数据变更
|
|
308
|
+
*
|
|
309
|
+
* @author lxm
|
|
310
|
+
* @date 2022-09-20 18:09:40
|
|
311
|
+
* @param {string[]} names
|
|
312
|
+
*/
|
|
313
|
+
childDataChangeNotify(names: string[]): void {
|
|
314
|
+
Object.values(this.panelItems).forEach(panelItem => {
|
|
315
|
+
panelItem.dataChangeNotify(names);
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* 设置面板数据的值
|
|
321
|
+
*
|
|
322
|
+
* @param {string} name 要设置的数据的属性名称
|
|
323
|
+
* @param {unknown} value 要设置的值
|
|
324
|
+
*/
|
|
325
|
+
async setDataValue(name: string, value: unknown): Promise<void> {
|
|
326
|
+
if (
|
|
327
|
+
Object.prototype.hasOwnProperty.call(this.state.data, name) &&
|
|
328
|
+
this.state.data[name] === value
|
|
329
|
+
) {
|
|
330
|
+
// *`面板里没有属性${name}或者${name}的值未发生改变`
|
|
331
|
+
return;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// 改变值
|
|
335
|
+
this.state.data[name] = value;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
destroy(): void {
|
|
339
|
+
super.destroy();
|
|
340
|
+
this.data.destroy?.();
|
|
341
|
+
Object.values(this.panelItems).forEach(item => {
|
|
342
|
+
item.destroy();
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
}
|
|
@@ -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 { SingleDataContainerController } from './single-data-container.controller';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 单项数据容器适配器
|
|
11
|
+
*
|
|
12
|
+
* @author lxm
|
|
13
|
+
* @date 2022-09-19 22:09:03
|
|
14
|
+
* @export
|
|
15
|
+
* @class SingleDataContainerProvider
|
|
16
|
+
* @implements {EditorProvider}
|
|
17
|
+
*/
|
|
18
|
+
export class SingleDataContainerProvider implements IPanelItemProvider {
|
|
19
|
+
component: string = 'IBizSingleDataContainer';
|
|
20
|
+
|
|
21
|
+
async createController(
|
|
22
|
+
panelItem: IPanelContainer,
|
|
23
|
+
panel: PanelController,
|
|
24
|
+
parent: PanelItemController | undefined,
|
|
25
|
+
): Promise<PanelItemController> {
|
|
26
|
+
const c = new SingleDataContainerController(panelItem, panel, parent);
|
|
27
|
+
await c.init();
|
|
28
|
+
return c;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
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 SingleDataContainerState
|
|
10
|
+
* @extends {PanelItemState}
|
|
11
|
+
*/
|
|
12
|
+
export class SingleDataContainerState extends PanelItemState {
|
|
13
|
+
/**
|
|
14
|
+
* 单项数据容器数据
|
|
15
|
+
* @author lxm
|
|
16
|
+
* @date 2023-07-14 12:07:45
|
|
17
|
+
* @type {(IData | IData[])}
|
|
18
|
+
*/
|
|
19
|
+
data: IData = {};
|
|
20
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IPanelItemProvider,
|
|
3
|
+
IPanelItemController,
|
|
4
|
+
} from '@ibiz-template/runtime';
|
|
5
|
+
import { IPanelContainer, IPanelItem } from '@ibiz/model-core';
|
|
6
|
+
import {
|
|
7
|
+
computed,
|
|
8
|
+
defineComponent,
|
|
9
|
+
inject,
|
|
10
|
+
PropType,
|
|
11
|
+
reactive,
|
|
12
|
+
VNode,
|
|
13
|
+
} from 'vue';
|
|
14
|
+
import { useNamespace } from '../../use';
|
|
15
|
+
import { SingleDataContainerController } from './single-data-container.controller';
|
|
16
|
+
import './single-data-container.scss';
|
|
17
|
+
|
|
18
|
+
export const SingleDataContainer = defineComponent({
|
|
19
|
+
name: 'IBizSingleDataContainer',
|
|
20
|
+
props: {
|
|
21
|
+
modelData: {
|
|
22
|
+
type: Object as PropType<IPanelContainer>,
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
controller: {
|
|
26
|
+
type: SingleDataContainerController,
|
|
27
|
+
required: true,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
setup(props) {
|
|
31
|
+
const ns = useNamespace('single-data-container');
|
|
32
|
+
const { id } = props.modelData;
|
|
33
|
+
|
|
34
|
+
// 面板成员state响应式
|
|
35
|
+
const keys = Object.keys(props.controller.panelItems);
|
|
36
|
+
keys.forEach(key => {
|
|
37
|
+
const panelItem = props.controller.panelItems[key];
|
|
38
|
+
panelItem.state = reactive(panelItem.state);
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
// 获取上层的绘制函数
|
|
42
|
+
const renderPanelItem = inject<
|
|
43
|
+
(
|
|
44
|
+
panelItem: IPanelItem,
|
|
45
|
+
options?: {
|
|
46
|
+
providers: {
|
|
47
|
+
[key: string]: IPanelItemProvider;
|
|
48
|
+
};
|
|
49
|
+
panelItems: {
|
|
50
|
+
[key: string]: IPanelItemController;
|
|
51
|
+
};
|
|
52
|
+
},
|
|
53
|
+
) => VNode | null
|
|
54
|
+
>('renderPanelItem')!;
|
|
55
|
+
|
|
56
|
+
// 类名控制
|
|
57
|
+
const classArr = computed(() => {
|
|
58
|
+
const result: Array<string | false> = [
|
|
59
|
+
ns.b(),
|
|
60
|
+
ns.m(id),
|
|
61
|
+
...props.controller.containerClass,
|
|
62
|
+
];
|
|
63
|
+
return result;
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
return { ns, classArr, renderPanelItem };
|
|
67
|
+
},
|
|
68
|
+
render() {
|
|
69
|
+
let content: VNode | VNode[];
|
|
70
|
+
if (this.$slots.default) {
|
|
71
|
+
content = this.$slots.default();
|
|
72
|
+
} else {
|
|
73
|
+
// 内容区默认插槽处理,封装app-col
|
|
74
|
+
content = (
|
|
75
|
+
<iBizRow class={this.ns.b('content')} layout={this.modelData.layout}>
|
|
76
|
+
{this.modelData.panelItems?.map(panelItem => {
|
|
77
|
+
const childController = this.controller.panelItems[panelItem.id!];
|
|
78
|
+
return (
|
|
79
|
+
<iBizCol
|
|
80
|
+
layoutPos={panelItem.layoutPos}
|
|
81
|
+
state={childController.state}
|
|
82
|
+
>
|
|
83
|
+
{this.renderPanelItem(panelItem, {
|
|
84
|
+
providers: this.controller.providers,
|
|
85
|
+
panelItems: this.controller.panelItems,
|
|
86
|
+
})}
|
|
87
|
+
</iBizCol>
|
|
88
|
+
);
|
|
89
|
+
})}
|
|
90
|
+
</iBizRow>
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
return <div class={this.classArr}>{content}</div>;
|
|
94
|
+
},
|
|
95
|
+
});
|
package/src/props/editor/span.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { getEditorProps, getGridEditorCommonProps } from './common';
|
|
|
10
10
|
* @returns {*}
|
|
11
11
|
*/
|
|
12
12
|
export function getSpanProps<C>() {
|
|
13
|
-
return { ...getEditorProps<C>(), value: [String, Number] };
|
|
13
|
+
return { ...getEditorProps<C>(), value: [String, Number, Object, Array] };
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
/**
|
package/src/util/index.ts
CHANGED
|
@@ -3,3 +3,8 @@ export * from './route/route-listener';
|
|
|
3
3
|
export * from './install';
|
|
4
4
|
export * from './control/prepare-control';
|
|
5
5
|
export * from './render/render';
|
|
6
|
+
export { OverlayContainer } from './overlay-container/overlay-container';
|
|
7
|
+
export { OverlayPopoverContainer } from './overlay-popover-container/overlay-popover-container';
|
|
8
|
+
export * from './overlay-view-util/overlay-view-util';
|
|
9
|
+
export { routerCallback } from './router-callback/router-callback';
|
|
10
|
+
export * from './store';
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
/* eslint-disable no-unused-vars */
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
|
+
import { QXEvent } from 'qx-util';
|
|
4
|
+
import { IOverlayContainer } from '@ibiz-template/runtime';
|
|
5
|
+
import { App, Component, h, VNode } from 'vue';
|
|
6
|
+
import { RuntimeError } from '@ibiz-template/core';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 全局弹出承载组件
|
|
10
|
+
*
|
|
11
|
+
* @author chitanda
|
|
12
|
+
* @date 2022-11-09 12:11:09
|
|
13
|
+
* @export
|
|
14
|
+
* @class OverlayContainer
|
|
15
|
+
*/
|
|
16
|
+
export class OverlayContainer<O> implements IOverlayContainer {
|
|
17
|
+
protected vm?: App;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 具体模态组件
|
|
21
|
+
*
|
|
22
|
+
* @author chitanda
|
|
23
|
+
* @date 2022-11-09 12:11:34
|
|
24
|
+
* @protected
|
|
25
|
+
* @type {*}
|
|
26
|
+
*/
|
|
27
|
+
protected modal: any;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* 外面调用dismiss时传的result结果
|
|
31
|
+
*
|
|
32
|
+
* @author lxm
|
|
33
|
+
* @date 2022-11-09 20:11:06
|
|
34
|
+
* @protected
|
|
35
|
+
* @type {unknown}
|
|
36
|
+
*/
|
|
37
|
+
protected result?: unknown;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* 内部事件
|
|
41
|
+
*
|
|
42
|
+
* @author chitanda
|
|
43
|
+
* @date 2022-11-09 12:11:42
|
|
44
|
+
* @protected
|
|
45
|
+
*/
|
|
46
|
+
protected evt: QXEvent<{ dismiss: (data?: unknown) => void }> = new QXEvent();
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* 创建全局呈现
|
|
50
|
+
*
|
|
51
|
+
* @author chitanda
|
|
52
|
+
* @date 2022-11-09 14:11:52
|
|
53
|
+
* @param {unknown} component
|
|
54
|
+
* @param {(h: CreateElement) => VNode} render
|
|
55
|
+
* @param {IPopoverOptions} [opts]
|
|
56
|
+
*/
|
|
57
|
+
constructor(
|
|
58
|
+
protected component: unknown,
|
|
59
|
+
protected render: (...args: any[]) => VNode,
|
|
60
|
+
protected opts?: O,
|
|
61
|
+
) {
|
|
62
|
+
this.init();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
static createVueApp(
|
|
66
|
+
_rootComponent: Component,
|
|
67
|
+
_rootProps?: IData,
|
|
68
|
+
): App<Element> {
|
|
69
|
+
throw new RuntimeError('没有注入createVueApp方法');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* 初始化飘窗
|
|
74
|
+
*
|
|
75
|
+
* @author chitanda
|
|
76
|
+
* @date 2022-11-09 12:11:55
|
|
77
|
+
* @protected
|
|
78
|
+
* @return {*} {void}
|
|
79
|
+
*/
|
|
80
|
+
protected init(): void {
|
|
81
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
82
|
+
const self = this;
|
|
83
|
+
const { render, opts } = this;
|
|
84
|
+
const container = document.createElement('div');
|
|
85
|
+
document.body.appendChild(container);
|
|
86
|
+
const vm = OverlayContainer.createVueApp({
|
|
87
|
+
mounted() {
|
|
88
|
+
self.modal = this.$refs.root;
|
|
89
|
+
},
|
|
90
|
+
unmounted() {
|
|
91
|
+
document.body.removeChild(container);
|
|
92
|
+
self.evt.emit('dismiss', self.result);
|
|
93
|
+
},
|
|
94
|
+
render() {
|
|
95
|
+
return h(
|
|
96
|
+
self.component as string,
|
|
97
|
+
{
|
|
98
|
+
ref: 'root',
|
|
99
|
+
opts,
|
|
100
|
+
onDismiss(data: IData) {
|
|
101
|
+
self.result = data;
|
|
102
|
+
vm.unmount();
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
{ default: render },
|
|
106
|
+
);
|
|
107
|
+
},
|
|
108
|
+
});
|
|
109
|
+
ibiz.plugin.register(vm);
|
|
110
|
+
vm.mount(container);
|
|
111
|
+
this.vm = vm;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* 打开飘窗
|
|
116
|
+
*
|
|
117
|
+
* @author chitanda
|
|
118
|
+
* @date 2022-11-09 12:11:52
|
|
119
|
+
* @param {HTMLElement} target
|
|
120
|
+
* @return {*} {Promise<void>}
|
|
121
|
+
*/
|
|
122
|
+
async present(): Promise<void> {
|
|
123
|
+
return this.modal.present();
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* 手动调用关闭飘窗
|
|
128
|
+
*
|
|
129
|
+
* @author chitanda
|
|
130
|
+
* @date 2022-11-09 12:11:39
|
|
131
|
+
* @param {unknown} [data]
|
|
132
|
+
* @return {*} {Promise<void>}
|
|
133
|
+
*/
|
|
134
|
+
async dismiss(data?: unknown): Promise<void> {
|
|
135
|
+
this.modal.dismiss(data);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* 订阅窗口关闭
|
|
140
|
+
*
|
|
141
|
+
* @author chitanda
|
|
142
|
+
* @date 2022-11-09 12:11:20
|
|
143
|
+
* @template T
|
|
144
|
+
* @return {*} {Promise<T>}
|
|
145
|
+
*/
|
|
146
|
+
async onWillDismiss<T = unknown>(): Promise<T> {
|
|
147
|
+
return new Promise<T>(resolve => {
|
|
148
|
+
const callback = (data: unknown) => {
|
|
149
|
+
resolve(data as T);
|
|
150
|
+
this.evt.off('dismiss', callback);
|
|
151
|
+
};
|
|
152
|
+
this.evt.on('dismiss', callback);
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* eslint-disable no-unused-vars */
|
|
2
|
+
/* eslint-disable no-dupe-class-members */
|
|
3
|
+
import {
|
|
4
|
+
IPopoverOptions,
|
|
5
|
+
IOverlayPopoverContainer,
|
|
6
|
+
} from '@ibiz-template/runtime';
|
|
7
|
+
import { OverlayContainer } from '../overlay-container/overlay-container';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* 飘窗组件呈现容器
|
|
11
|
+
*
|
|
12
|
+
* @author chitanda
|
|
13
|
+
* @date 2022-11-09 14:11:46
|
|
14
|
+
* @export
|
|
15
|
+
* @class OverlayPopoverContainer
|
|
16
|
+
* @extends {OverlayContainer<IPopoverOptions>}
|
|
17
|
+
* @implements {IOverlayPopoverContainer}
|
|
18
|
+
*/
|
|
19
|
+
export class OverlayPopoverContainer
|
|
20
|
+
extends OverlayContainer<IPopoverOptions>
|
|
21
|
+
implements IOverlayPopoverContainer
|
|
22
|
+
{
|
|
23
|
+
present(): Promise<void>;
|
|
24
|
+
|
|
25
|
+
present(target: HTMLElement): Promise<void>;
|
|
26
|
+
|
|
27
|
+
present(target?: HTMLElement): Promise<void> {
|
|
28
|
+
return this.modal.present(target);
|
|
29
|
+
}
|
|
30
|
+
}
|