@ibiz-template/vue3-util 0.7.41-alpha.3 → 0.7.41-alpha.31
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/dist/index.system.min.js +1 -1
- package/es/common/badge/badge.css +1 -1
- package/es/common/badge/badge.d.ts +5 -5
- package/es/common/badge/badge.d.ts.map +1 -1
- package/es/common/code-list/code-list.d.ts +8 -8
- package/es/common/code-list/code-list.d.ts.map +1 -1
- package/es/common/code-list/code-list.mjs +1 -1
- package/es/common/control-base/control-base.css +1 -1
- package/es/common/control-base/control-base.d.ts +1 -0
- package/es/common/control-base/control-base.d.ts.map +1 -1
- package/es/common/control-base/control-base.mjs +39 -5
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts +4 -4
- package/es/common/control-loading-placeholder/control-loading-placeholder.d.ts.map +1 -1
- package/es/common/control-shell/control-shell.d.ts +7 -7
- package/es/common/control-shell/control-shell.d.ts.map +1 -1
- package/es/common/control-shell/control-shell.mjs +1 -1
- package/es/common/custom-render/custom-render.d.ts +4 -4
- package/es/common/custom-render/custom-render.d.ts.map +1 -1
- package/es/common/custom-render/custom-render.mjs +2 -2
- package/es/common/icon/icon.d.ts +4 -4
- package/es/common/icon/icon.d.ts.map +1 -1
- package/es/common/index.d.ts +1 -0
- package/es/common/index.d.ts.map +1 -1
- package/es/common/index.mjs +1 -0
- package/es/common/router-view/router-view.d.ts +7 -8
- package/es/common/router-view/router-view.d.ts.map +1 -1
- package/es/common/router-view/router-view.mjs +1 -1
- package/es/common/signature-pad/signature-pad.css +1 -0
- package/es/common/signature-pad/signature-pad.d.ts +19 -0
- package/es/common/signature-pad/signature-pad.d.ts.map +1 -0
- package/es/common/signature-pad/signature-pad.mjs +165 -0
- package/es/common/signature-pad/util/bezier.d.ts +58 -0
- package/es/common/signature-pad/util/bezier.d.ts.map +1 -0
- package/es/common/signature-pad/util/bezier.mjs +109 -0
- package/es/common/signature-pad/util/point.d.ts +55 -0
- package/es/common/signature-pad/util/point.d.ts.map +1 -0
- package/es/common/signature-pad/util/point.mjs +51 -0
- package/es/common/signature-pad/util/signature_pad.d.ts +593 -0
- package/es/common/signature-pad/util/signature_pad.d.ts.map +1 -0
- package/es/common/signature-pad/util/signature_pad.mjs +1018 -0
- package/es/common/view-shell/view-shell.d.ts +19 -12
- package/es/common/view-shell/view-shell.d.ts.map +1 -1
- package/es/common/view-shell/view-shell.mjs +16 -5
- package/es/control/panel/panel/index.d.ts +5 -5
- package/es/control/panel/panel/index.d.ts.map +1 -1
- package/es/control/panel/panel/panel.d.ts +5 -5
- package/es/control/panel/panel/panel.d.ts.map +1 -1
- package/es/control/panel/panel/panel.mjs +12 -1
- package/es/control/panel/view-layout-panel/index.d.ts +5 -5
- package/es/control/panel/view-layout-panel/index.d.ts.map +1 -1
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +6 -6
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts.map +1 -1
- package/es/control/panel/view-layout-panel/view-layout-panel.mjs +13 -2
- package/es/index.mjs +4 -3
- package/es/locale/en/index.d.ts +1 -0
- package/es/locale/en/index.d.ts.map +1 -1
- package/es/locale/en/index.mjs +2 -1
- package/es/locale/zh-CN/index.d.ts +1 -0
- package/es/locale/zh-CN/index.d.ts.map +1 -1
- package/es/locale/zh-CN/index.mjs +2 -1
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts +4 -4
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.d.ts.map +1 -1
- package/es/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.mjs +1 -1
- package/es/panel-component/auth-wxmp-qrcode/index.d.ts +4 -4
- package/es/panel-component/auth-wxmp-qrcode/index.d.ts.map +1 -1
- package/es/panel-component/grid-container/grid-container.controller.d.ts +3 -3
- package/es/panel-component/grid-container/grid-container.controller.d.ts.map +1 -1
- package/es/panel-component/grid-container/grid-container.controller.mjs +2 -2
- package/es/panel-component/grid-container/grid-container.d.ts +6 -6
- package/es/panel-component/grid-container/grid-container.d.ts.map +1 -1
- package/es/panel-component/grid-container/grid-container.mjs +3 -3
- package/es/panel-component/grid-container/grid-container.state.d.ts +3 -3
- package/es/panel-component/grid-container/grid-container.state.d.ts.map +1 -1
- package/es/panel-component/grid-container/grid-container.state.mjs +2 -2
- package/es/panel-component/grid-container/index.d.ts +6 -6
- package/es/panel-component/grid-container/index.d.ts.map +1 -1
- package/es/panel-component/index.mjs +1 -2
- package/es/panel-component/multi-data-container/index.d.ts +4 -4
- package/es/panel-component/multi-data-container/index.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts +3 -3
- package/es/panel-component/multi-data-container/multi-data-container.controller.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.controller.mjs +12 -5
- package/es/panel-component/multi-data-container/multi-data-container.d.ts +5 -5
- package/es/panel-component/multi-data-container/multi-data-container.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.mjs +3 -3
- package/es/panel-component/multi-data-container/multi-data-container.state.d.ts +3 -3
- package/es/panel-component/multi-data-container/multi-data-container.state.d.ts.map +1 -1
- package/es/panel-component/multi-data-container/multi-data-container.state.mjs +2 -2
- package/es/panel-component/multi-data-container-raw/index.d.ts +4 -4
- package/es/panel-component/multi-data-container-raw/index.d.ts.map +1 -1
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.controller.d.ts +3 -3
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.controller.d.ts.map +1 -1
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.controller.mjs +2 -2
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts +5 -5
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.d.ts.map +1 -1
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.mjs +3 -3
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.state.d.ts +3 -3
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.state.d.ts.map +1 -1
- package/es/panel-component/multi-data-container-raw/multi-data-container-raw.state.mjs +2 -2
- package/es/panel-component/nav-pos/index.d.ts +5 -5
- package/es/panel-component/nav-pos/index.d.ts.map +1 -1
- package/es/panel-component/nav-pos/nav-pos.controller.d.ts +1 -1
- package/es/panel-component/nav-pos/nav-pos.d.ts +6 -6
- package/es/panel-component/nav-pos/nav-pos.d.ts.map +1 -1
- package/es/panel-component/nav-pos/nav-pos.mjs +2 -2
- package/es/panel-component/panel-container/index.d.ts +5 -6
- package/es/panel-component/panel-container/index.d.ts.map +1 -1
- package/es/panel-component/panel-container/index.mjs +1 -2
- package/es/panel-component/panel-container/panel-container.d.ts +5 -5
- package/es/panel-component/panel-container/panel-container.d.ts.map +1 -1
- package/es/panel-component/panel-container/panel-container.mjs +34 -8
- package/es/panel-component/panel-container/panel-container.provider.d.ts +2 -2
- package/es/panel-component/panel-container/panel-container.provider.d.ts.map +1 -1
- package/es/panel-component/panel-container/panel-container.provider.mjs +1 -1
- package/es/panel-component/panel-container-group/index.d.ts +5 -5
- package/es/panel-component/panel-container-group/index.d.ts.map +1 -1
- package/es/panel-component/panel-container-group/panel-container-group.controller.d.ts +3 -3
- package/es/panel-component/panel-container-group/panel-container-group.controller.d.ts.map +1 -1
- package/es/panel-component/panel-container-group/panel-container-group.controller.mjs +2 -2
- package/es/panel-component/panel-container-group/panel-container-group.css +1 -1
- package/es/panel-component/panel-container-group/panel-container-group.d.ts +5 -5
- package/es/panel-component/panel-container-group/panel-container-group.d.ts.map +1 -1
- package/es/panel-component/panel-container-group/panel-container-group.mjs +10 -8
- package/es/panel-component/panel-container-group/panel-container-group.state.d.ts +3 -3
- package/es/panel-component/panel-container-group/panel-container-group.state.d.ts.map +1 -1
- package/es/panel-component/panel-container-group/panel-container-group.state.mjs +2 -2
- package/es/panel-component/panel-container-image/index.d.ts +4 -4
- package/es/panel-component/panel-container-image/index.d.ts.map +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.controller.d.ts +3 -3
- package/es/panel-component/panel-container-image/panel-container-image.controller.d.ts.map +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.controller.mjs +2 -2
- package/es/panel-component/panel-container-image/panel-container-image.d.ts +4 -4
- package/es/panel-component/panel-container-image/panel-container-image.d.ts.map +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.mjs +4 -6
- package/es/panel-component/panel-container-image/panel-container-image.state.d.ts +3 -3
- package/es/panel-component/panel-container-image/panel-container-image.state.d.ts.map +1 -1
- package/es/panel-component/panel-container-image/panel-container-image.state.mjs +2 -2
- package/es/panel-component/panel-container-tabs/index.d.ts +6 -6
- package/es/panel-component/panel-container-tabs/index.d.ts.map +1 -1
- package/es/panel-component/panel-container-tabs/panel-container-tabs.d.ts +5 -5
- package/es/panel-component/panel-container-tabs/panel-container-tabs.d.ts.map +1 -1
- package/es/panel-component/panel-container-tabs/panel-container-tabs.mjs +1 -1
- package/es/panel-component/panel-container-tabs/panel-container-tabs.provider.d.ts +2 -2
- package/es/panel-component/panel-container-tabs/panel-container-tabs.provider.d.ts.map +1 -1
- package/es/panel-component/panel-container-tabs/panel-container-tabs.provider.mjs +1 -1
- package/es/panel-component/panel-ctrl-pos/index.d.ts +4 -4
- package/es/panel-component/panel-ctrl-pos/index.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts +4 -4
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-pos/panel-ctrl-pos.mjs +1 -1
- package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts +4 -4
- package/es/panel-component/panel-ctrl-view-page-caption/index.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts +4 -4
- package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts.map +1 -1
- package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.mjs +2 -4
- package/es/panel-component/panel-field/index.d.ts +4 -4
- package/es/panel-component/panel-field/index.d.ts.map +1 -1
- package/es/panel-component/panel-field/panel-field.controller.mjs +1 -1
- package/es/panel-component/panel-field/panel-field.d.ts +4 -4
- package/es/panel-component/panel-field/panel-field.d.ts.map +1 -1
- package/es/panel-component/panel-field/panel-field.mjs +2 -4
- package/es/panel-component/panel-item-render/index.d.ts +4 -4
- package/es/panel-component/panel-item-render/index.d.ts.map +1 -1
- package/es/panel-component/panel-item-render/panel-item-render.d.ts +4 -4
- package/es/panel-component/panel-item-render/panel-item-render.d.ts.map +1 -1
- package/es/panel-component/panel-item-render/panel-item-render.mjs +3 -2
- package/es/panel-component/panel-rawitem/index.d.ts +6 -6
- package/es/panel-component/panel-rawitem/index.d.ts.map +1 -1
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts +6 -6
- package/es/panel-component/panel-rawitem/panel-rawitem.d.ts.map +1 -1
- package/es/panel-component/panel-rawitem/panel-rawitem.mjs +3 -6
- package/es/panel-component/panel-tab-page/index.d.ts +6 -6
- package/es/panel-component/panel-tab-page/index.d.ts.map +1 -1
- package/es/panel-component/panel-tab-page/panel-tab-page.d.ts +8 -8
- package/es/panel-component/panel-tab-page/panel-tab-page.d.ts.map +1 -1
- package/es/panel-component/panel-tab-page/panel-tab-page.mjs +5 -5
- package/es/panel-component/panel-tab-page/panel-tab-page.provider.d.ts +2 -2
- package/es/panel-component/panel-tab-page/panel-tab-page.provider.d.ts.map +1 -1
- package/es/panel-component/panel-tab-page/panel-tab-page.provider.mjs +2 -2
- package/es/panel-component/scroll-container/index.d.ts +4 -4
- package/es/panel-component/scroll-container/index.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts +3 -3
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.controller.mjs +2 -2
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts +4 -4
- package/es/panel-component/scroll-container/scroll-container/scroll-container.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container/scroll-container.mjs +3 -3
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts +3 -3
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.mjs +2 -2
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts +4 -4
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.d.ts.map +1 -1
- package/es/panel-component/scroll-container/scroll-container-item/scroll-container-item.mjs +3 -3
- package/es/panel-component/single-data-container/index.d.ts +4 -4
- package/es/panel-component/single-data-container/index.d.ts.map +1 -1
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts +3 -3
- package/es/panel-component/single-data-container/single-data-container.controller.d.ts.map +1 -1
- package/es/panel-component/single-data-container/single-data-container.controller.mjs +2 -2
- package/es/panel-component/single-data-container/single-data-container.d.ts +5 -5
- package/es/panel-component/single-data-container/single-data-container.d.ts.map +1 -1
- package/es/panel-component/single-data-container/single-data-container.mjs +3 -3
- package/es/panel-component/single-data-container/single-data-container.state.d.ts +3 -3
- package/es/panel-component/single-data-container/single-data-container.state.d.ts.map +1 -1
- package/es/panel-component/single-data-container/single-data-container.state.mjs +2 -2
- package/es/panel-component/teleport-placeholder/index.d.ts +5 -5
- package/es/panel-component/teleport-placeholder/index.d.ts.map +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts +6 -5
- package/es/panel-component/teleport-placeholder/teleport-placeholder.d.ts.map +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.mjs +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.state.d.ts +1 -1
- package/es/panel-component/teleport-placeholder/teleport-placeholder.state.mjs +1 -1
- package/es/plugin/plugin-factory/plugin-factory.d.ts +13 -12
- package/es/plugin/plugin-factory/plugin-factory.d.ts.map +1 -1
- package/es/plugin/plugin-factory/plugin-factory.mjs +24 -18
- package/es/use/index.d.ts +1 -0
- package/es/use/index.d.ts.map +1 -1
- package/es/use/index.mjs +3 -1
- package/es/use/popover/popover.d.ts +7 -0
- package/es/use/popover/popover.d.ts.map +1 -1
- package/es/use/popover/popover.mjs +9 -2
- package/es/use/storage/index.d.ts +4 -6
- package/es/use/storage/index.d.ts.map +1 -1
- package/es/use/storage/index.mjs +16 -11
- package/es/use/vue/vue.mjs +1 -1
- package/es/use/vue-use/computed-async.d.ts +51 -0
- package/es/use/vue-use/computed-async.d.ts.map +1 -0
- package/es/use/vue-use/computed-async.mjs +66 -0
- package/es/use/vue-use/index.d.ts +2 -0
- package/es/use/vue-use/index.d.ts.map +1 -0
- package/es/use/vue-use/index.mjs +3 -0
- package/es/util/install.d.ts.map +1 -1
- package/es/util/overlay-container/overlay-container.d.ts +1 -1
- package/es/util/overlay-container/overlay-container.d.ts.map +1 -1
- package/es/util/overlay-container/overlay-container.mjs +7 -2
- package/es/util/overlay-view-util/overlay-view-util.d.ts +2 -2
- package/es/util/overlay-view-util/overlay-view-util.d.ts.map +1 -1
- package/es/util/overlay-view-util/overlay-view-util.mjs +2 -1
- package/es/util/render/render.d.ts.map +1 -1
- package/es/util/render/render.mjs +4 -1
- package/es/util/route/route.d.ts.map +1 -1
- package/es/util/route/route.mjs +19 -4
- package/es/util/store/app-store/app-store.d.ts +2 -2
- package/es/util/store/ui-store/ui-store.d.ts +2 -2
- package/es/view/app-redirect-view/app-redirect-view.d.ts +1 -1
- package/es/view/app-redirect-view/app-redirect-view.d.ts.map +1 -1
- package/es/view/app-redirect-view/app-redirect-view.mjs +1 -1
- package/es/view/common/index.d.ts +5 -5
- package/es/view/common/index.d.ts.map +1 -1
- package/es/view/common/index.mjs +2 -0
- package/es/view/common/view.d.ts +5 -5
- package/es/view/common/view.d.ts.map +1 -1
- package/es/view/common/view.mjs +15 -2
- package/es/view/de-redirect-view/de-redirect-view.d.ts +8 -8
- package/es/view/de-redirect-view/de-redirect-view.d.ts.map +1 -1
- package/es/view/de-redirect-view/de-redirect-view.mjs +1 -1
- package/es/view/de-redirect-view/index.d.ts +8 -8
- package/es/view/de-redirect-view/index.d.ts.map +1 -1
- package/es/view/html-view/html-view.d.ts +8 -9
- package/es/view/html-view/html-view.d.ts.map +1 -1
- package/es/view/html-view/html-view.mjs +8 -16
- package/es/view/html-view/index.d.ts +7 -8
- package/es/view/html-view/index.d.ts.map +1 -1
- package/es/view/md-custom-view/md-custom-view.provider.d.ts +13 -0
- package/es/view/md-custom-view/md-custom-view.provider.d.ts.map +1 -0
- package/es/view/md-custom-view/md-custom-view.provider.mjs +13 -0
- package/es/view/portal-view/index.d.ts +5 -5
- package/es/view/portal-view/index.d.ts.map +1 -1
- package/es/view/portal-view/portal-view.d.ts +5 -5
- package/es/view/portal-view/portal-view.d.ts.map +1 -1
- package/es/view/todo-redirect/todo-redirect.d.ts +1 -1
- package/es/view/todo-redirect/todo-redirect.d.ts.map +1 -1
- package/lib/common/badge/badge.css +1 -1
- package/lib/common/control-base/control-base.cjs +37 -3
- package/lib/common/control-base/control-base.css +1 -1
- package/lib/common/custom-render/custom-render.cjs +1 -1
- package/lib/common/index.cjs +2 -0
- package/lib/common/signature-pad/signature-pad.cjs +167 -0
- package/lib/common/signature-pad/signature-pad.css +1 -0
- package/lib/common/signature-pad/util/bezier.cjs +111 -0
- package/lib/common/signature-pad/util/point.cjs +53 -0
- package/lib/common/signature-pad/util/signature_pad.cjs +1022 -0
- package/lib/common/view-shell/view-shell.cjs +14 -3
- package/lib/control/panel/panel/panel.cjs +12 -1
- package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +12 -1
- package/lib/index.cjs +14 -4
- package/lib/locale/en/index.cjs +2 -1
- package/lib/locale/zh-CN/index.cjs +2 -1
- package/lib/panel-component/grid-container/grid-container.cjs +2 -2
- package/lib/panel-component/grid-container/grid-container.controller.cjs +1 -1
- package/lib/panel-component/grid-container/grid-container.state.cjs +1 -1
- package/lib/panel-component/index.cjs +9 -4
- package/lib/panel-component/multi-data-container/multi-data-container.cjs +2 -2
- package/lib/panel-component/multi-data-container/multi-data-container.controller.cjs +11 -4
- package/lib/panel-component/multi-data-container/multi-data-container.state.cjs +1 -1
- package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.cjs +2 -2
- package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.controller.cjs +1 -1
- package/lib/panel-component/multi-data-container-raw/multi-data-container-raw.state.cjs +1 -1
- package/lib/panel-component/panel-container/index.cjs +8 -4
- package/lib/panel-component/panel-container/panel-container.cjs +34 -8
- package/lib/panel-component/panel-container/panel-container.provider.cjs +2 -2
- package/lib/panel-component/panel-container-group/panel-container-group.cjs +9 -7
- package/lib/panel-component/panel-container-group/panel-container-group.controller.cjs +1 -1
- package/lib/panel-component/panel-container-group/panel-container-group.css +1 -1
- package/lib/panel-component/panel-container-group/panel-container-group.state.cjs +1 -1
- package/lib/panel-component/panel-container-image/panel-container-image.cjs +3 -5
- package/lib/panel-component/panel-container-image/panel-container-image.controller.cjs +1 -1
- package/lib/panel-component/panel-container-image/panel-container-image.state.cjs +1 -1
- package/lib/panel-component/panel-container-tabs/panel-container-tabs.cjs +2 -2
- package/lib/panel-component/panel-container-tabs/panel-container-tabs.provider.cjs +2 -2
- package/lib/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.cjs +1 -3
- package/lib/panel-component/panel-field/panel-field.cjs +1 -3
- package/lib/panel-component/panel-field/panel-field.controller.cjs +1 -1
- package/lib/panel-component/panel-item-render/panel-item-render.cjs +2 -1
- package/lib/panel-component/panel-rawitem/panel-rawitem.cjs +2 -5
- package/lib/panel-component/panel-tab-page/panel-tab-page.cjs +3 -3
- package/lib/panel-component/panel-tab-page/panel-tab-page.provider.cjs +1 -1
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.cjs +2 -2
- package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.cjs +1 -1
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs +2 -2
- package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.controller.cjs +1 -1
- package/lib/panel-component/single-data-container/single-data-container.cjs +2 -2
- package/lib/panel-component/single-data-container/single-data-container.controller.cjs +1 -1
- package/lib/panel-component/single-data-container/single-data-container.state.cjs +1 -1
- package/lib/panel-component/teleport-placeholder/teleport-placeholder.state.cjs +1 -1
- package/lib/plugin/plugin-factory/plugin-factory.cjs +24 -18
- package/lib/use/index.cjs +4 -0
- package/lib/use/popover/popover.cjs +8 -0
- package/lib/use/storage/index.cjs +16 -11
- package/lib/use/vue-use/computed-async.cjs +68 -0
- package/lib/use/vue-use/index.cjs +7 -0
- package/lib/util/overlay-container/overlay-container.cjs +7 -2
- package/lib/util/overlay-view-util/overlay-view-util.cjs +2 -1
- package/lib/util/render/render.cjs +4 -1
- package/lib/util/route/route.cjs +19 -4
- package/lib/view/common/index.cjs +2 -0
- package/lib/view/common/view.cjs +13 -0
- package/lib/view/html-view/html-view.cjs +6 -14
- package/lib/view/md-custom-view/md-custom-view.provider.cjs +15 -0
- package/package.json +7 -7
- package/es/panel-component/panel-container/panel-container.controller.d.ts +0 -21
- package/es/panel-component/panel-container/panel-container.controller.d.ts.map +0 -1
- package/es/panel-component/panel-container/panel-container.controller.mjs +0 -12
- package/es/panel-component/panel-container/panel-container.state.d.ts +0 -10
- package/es/panel-component/panel-container/panel-container.state.d.ts.map +0 -1
- package/es/panel-component/panel-container/panel-container.state.mjs +0 -7
- package/lib/panel-component/panel-container/panel-container.controller.cjs +0 -14
- package/lib/panel-component/panel-container/panel-container.state.cjs +0 -9
|
@@ -82,9 +82,7 @@ const PanelField = /* @__PURE__ */ vue.defineComponent({
|
|
|
82
82
|
}
|
|
83
83
|
return vue.createVNode("div", {
|
|
84
84
|
"class": this.classArr,
|
|
85
|
-
"onClick": () =>
|
|
86
|
-
this.controller.onClick();
|
|
87
|
-
}
|
|
85
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
88
86
|
}, [editor, this.controller.state.error && vue.createVNode("div", {
|
|
89
87
|
"class": this.ns.e("error")
|
|
90
88
|
}, [this.controller.state.error])]);
|
|
@@ -86,7 +86,7 @@ class PanelFieldController extends runtime.PanelItemController {
|
|
|
86
86
|
*/
|
|
87
87
|
async validate() {
|
|
88
88
|
var _a;
|
|
89
|
-
if (this.state.visible &&
|
|
89
|
+
if (this.state.visible && this.state.required && !this.value) {
|
|
90
90
|
this.state.error = ((_a = this.editor) == null ? void 0 : _a.model.placeHolder) || ibiz.i18n.t("vue3Util.panelComponent.cannotEmpty", {
|
|
91
91
|
caption: this.model.caption
|
|
92
92
|
});
|
|
@@ -47,7 +47,8 @@ const PanelItemRender = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
47
|
render() {
|
|
48
48
|
return vue.createVNode("div", {
|
|
49
49
|
"class": this.classArr,
|
|
50
|
-
"innerHTML": this.htmlCode
|
|
50
|
+
"innerHTML": this.htmlCode,
|
|
51
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
51
52
|
}, null);
|
|
52
53
|
}
|
|
53
54
|
});
|
|
@@ -79,15 +79,12 @@ const PanelRawItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
79
79
|
};
|
|
80
80
|
},
|
|
81
81
|
render() {
|
|
82
|
-
if (!this.controller.state.visible)
|
|
82
|
+
if (!this.controller.state.visible)
|
|
83
83
|
return;
|
|
84
|
-
}
|
|
85
84
|
return vue.createVNode("div", {
|
|
86
85
|
"class": this.classArr,
|
|
87
86
|
"style": this.tempStyle,
|
|
88
|
-
"onClick": (event) =>
|
|
89
|
-
this.controller.onClick(event);
|
|
90
|
-
}
|
|
87
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
91
88
|
}, [vue.createVNode(vue.resolveComponent("iBizRawItem"), {
|
|
92
89
|
"rawItem": this.modelData,
|
|
93
90
|
"content": this.content
|
|
@@ -24,7 +24,7 @@ const PanelTabPage = /* @__PURE__ */ vue.defineComponent({
|
|
|
24
24
|
* @description 面板分页控制器
|
|
25
25
|
*/
|
|
26
26
|
controller: {
|
|
27
|
-
type: runtime.
|
|
27
|
+
type: runtime.PanelContainerController,
|
|
28
28
|
required: true
|
|
29
29
|
}
|
|
30
30
|
},
|
|
@@ -47,7 +47,7 @@ const PanelTabPage = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
47
|
var _a, _b;
|
|
48
48
|
let _slot;
|
|
49
49
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
50
|
-
return vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
50
|
+
return vue.withDirectives(vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
51
51
|
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), this.classArr],
|
|
52
52
|
"layout": this.modelData.layout
|
|
53
53
|
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
@@ -64,7 +64,7 @@ const PanelTabPage = /* @__PURE__ */ vue.defineComponent({
|
|
|
64
64
|
});
|
|
65
65
|
})) ? _slot : {
|
|
66
66
|
default: () => [_slot]
|
|
67
|
-
});
|
|
67
|
+
}), [[vue.resolveDirective("loading"), this.controller.state.loading]]);
|
|
68
68
|
}
|
|
69
69
|
});
|
|
70
70
|
|
|
@@ -8,7 +8,7 @@ class PanelTabPageProvider {
|
|
|
8
8
|
this.component = "IBizPanelTabPage";
|
|
9
9
|
}
|
|
10
10
|
async createController(panelItem, panel, parent) {
|
|
11
|
-
const c = new runtime.
|
|
11
|
+
const c = new runtime.PanelContainerController(panelItem, panel, parent);
|
|
12
12
|
await c.init();
|
|
13
13
|
return c;
|
|
14
14
|
}
|
|
@@ -97,7 +97,7 @@ const ScrollContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
97
97
|
slotStylle[key].flexShrink = 0;
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
return vue.createVNode("div", {
|
|
100
|
+
return vue.withDirectives(vue.createVNode("div", {
|
|
101
101
|
"class": this.classArr
|
|
102
102
|
}, [vue.createVNode("div", {
|
|
103
103
|
"class": [this.ns.e("header")],
|
|
@@ -115,7 +115,7 @@ const ScrollContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
115
115
|
}, [right])]), vue.createVNode("div", {
|
|
116
116
|
"class": [this.ns.e("footer")],
|
|
117
117
|
"style": slotStylle.bottom
|
|
118
|
-
}, [bottom])]);
|
|
118
|
+
}, [bottom])]), [[vue.resolveDirective("loading"), this.controller.state.loading]]);
|
|
119
119
|
}
|
|
120
120
|
});
|
|
121
121
|
|
package/lib/panel-component/scroll-container/scroll-container/scroll-container.controller.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var runtime = require('@ibiz-template/runtime');
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
|
-
class ScrollContainerController extends runtime.
|
|
6
|
+
class ScrollContainerController extends runtime.PanelContainerController {
|
|
7
7
|
async onInit() {
|
|
8
8
|
await super.onInit();
|
|
9
9
|
this.state.layout.width = "100%";
|
package/lib/panel-component/scroll-container/scroll-container-item/scroll-container-item.cjs
CHANGED
|
@@ -46,7 +46,7 @@ const ScrollContainerItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
46
46
|
var _a, _b;
|
|
47
47
|
let _slot;
|
|
48
48
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
49
|
-
return vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
49
|
+
return vue.withDirectives(vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
50
50
|
"class": this.classArr,
|
|
51
51
|
"layout": {
|
|
52
52
|
layout: "FLEX"
|
|
@@ -65,7 +65,7 @@ const ScrollContainerItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
65
65
|
});
|
|
66
66
|
})) ? _slot : {
|
|
67
67
|
default: () => [_slot]
|
|
68
|
-
});
|
|
68
|
+
}), [[vue.resolveDirective("loading"), this.controller.state.loading]]);
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var runtime = require('@ibiz-template/runtime');
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
|
-
class ScrollContainerItemController extends runtime.
|
|
6
|
+
class ScrollContainerItemController extends runtime.PanelContainerController {
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
exports.ScrollContainerItemController = ScrollContainerItemController;
|
|
@@ -76,9 +76,9 @@ const SingleDataContainer = /* @__PURE__ */ vue.defineComponent({
|
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
return vue.createVNode("div", {
|
|
79
|
+
return vue.withDirectives(vue.createVNode("div", {
|
|
80
80
|
"class": this.classArr
|
|
81
|
-
}, [content]);
|
|
81
|
+
}, [content]), [[vue.resolveDirective("loading"), this.controller.state.loading]]);
|
|
82
82
|
}
|
|
83
83
|
});
|
|
84
84
|
|
|
@@ -5,7 +5,7 @@ var runtime = require('@ibiz-template/runtime');
|
|
|
5
5
|
var singleDataContainer_state = require('./single-data-container.state.cjs');
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
|
-
class SingleDataContainerController extends runtime.
|
|
8
|
+
class SingleDataContainerController extends runtime.PanelContainerController {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments);
|
|
11
11
|
/**
|
|
@@ -7,7 +7,7 @@ class TeleportPlaceholderState extends runtime.PanelItemState {
|
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
9
|
/**
|
|
10
|
-
* @description
|
|
10
|
+
* @description 嵌入视图中的部件可依据该参数找到传送占位面板项进行位置替换,参数默认格式为 “当前视图标识-需传送部件标识”;也可通过面板项参数(TeleportTag)来指定
|
|
11
11
|
* @exposedoc
|
|
12
12
|
* @type {string}
|
|
13
13
|
* @memberof TeleportPlaceholderState
|
|
@@ -36,12 +36,10 @@ class PluginFactory {
|
|
|
36
36
|
*/
|
|
37
37
|
this.pluginCache = /* @__PURE__ */ new Map();
|
|
38
38
|
/**
|
|
39
|
-
* 所有的插件
|
|
40
|
-
*
|
|
41
|
-
* @author chitanda
|
|
42
|
-
* @date 2023-02-02 16:02:55
|
|
39
|
+
* @description 所有的插件
|
|
43
40
|
* @protected
|
|
44
|
-
* @type {Plugin[]}
|
|
41
|
+
* @type {{ code: Plugin; extraParams: IParams }[]}
|
|
42
|
+
* @memberof PluginFactory
|
|
45
43
|
*/
|
|
46
44
|
this.pluginCodes = [];
|
|
47
45
|
/**
|
|
@@ -118,7 +116,7 @@ class PluginFactory {
|
|
|
118
116
|
*/
|
|
119
117
|
register(app) {
|
|
120
118
|
this.pluginCodes.forEach((plugin) => {
|
|
121
|
-
app.use(plugin);
|
|
119
|
+
app.use(plugin.code, plugin.extraParams);
|
|
122
120
|
});
|
|
123
121
|
}
|
|
124
122
|
/**
|
|
@@ -138,16 +136,15 @@ class PluginFactory {
|
|
|
138
136
|
}
|
|
139
137
|
}
|
|
140
138
|
/**
|
|
141
|
-
* 插件刚加载完成回来,设置到目前所有的 vue 实例当中
|
|
142
|
-
*
|
|
143
|
-
* @author chitanda
|
|
144
|
-
* @date 2023-02-02 17:02:38
|
|
139
|
+
* @description 插件刚加载完成回来,设置到目前所有的 vue 实例当中
|
|
145
140
|
* @protected
|
|
146
141
|
* @param {Plugin} code
|
|
142
|
+
* @param {IParams} [extraParams={}]
|
|
143
|
+
* @memberof PluginFactory
|
|
147
144
|
*/
|
|
148
|
-
setPluginCode(code) {
|
|
149
|
-
this.pluginCodes.push(code);
|
|
150
|
-
app_hooks.AppHooks.useComponent.callSync(null, code);
|
|
145
|
+
setPluginCode(code, extraParams = {}) {
|
|
146
|
+
this.pluginCodes.push({ code, extraParams });
|
|
147
|
+
app_hooks.AppHooks.useComponent.callSync(null, code, extraParams);
|
|
151
148
|
}
|
|
152
149
|
/**
|
|
153
150
|
* @description 加载插件
|
|
@@ -162,6 +159,7 @@ class PluginFactory {
|
|
|
162
159
|
if (pluginRef) {
|
|
163
160
|
const rtObjectName = pluginRef.rtobjectName;
|
|
164
161
|
const rtObjectRepo = pluginRef.rtobjectRepo;
|
|
162
|
+
const pluginParams = pluginRef.pluginParams || {};
|
|
165
163
|
if (this.isIgnore(rtObjectRepo)) {
|
|
166
164
|
return true;
|
|
167
165
|
}
|
|
@@ -181,7 +179,8 @@ class PluginFactory {
|
|
|
181
179
|
const p = this.loadPluginRef(
|
|
182
180
|
pluginRef.rtobjectName,
|
|
183
181
|
pluginRef.rtobjectRepo,
|
|
184
|
-
appId
|
|
182
|
+
appId,
|
|
183
|
+
{ ...pluginParams }
|
|
185
184
|
);
|
|
186
185
|
this.loadQueue.set(rtObjectRepo, p);
|
|
187
186
|
const result = await p;
|
|
@@ -203,10 +202,11 @@ class PluginFactory {
|
|
|
203
202
|
* @param {string} rtObjectName
|
|
204
203
|
* @param {string} rtObjectRepo
|
|
205
204
|
* @param {string} [appId=ibiz.env.appId]
|
|
205
|
+
* @param {IParams} [params={}]
|
|
206
206
|
* @returns {*} {Promise<boolean>}
|
|
207
207
|
* @memberof PluginFactory
|
|
208
208
|
*/
|
|
209
|
-
async loadPluginRef(rtObjectName, rtObjectRepo, appId = ibiz.env.appId) {
|
|
209
|
+
async loadPluginRef(rtObjectName, rtObjectRepo, appId = ibiz.env.appId, extraParams = {}) {
|
|
210
210
|
if (this.isIgnore(rtObjectRepo)) {
|
|
211
211
|
return true;
|
|
212
212
|
}
|
|
@@ -229,7 +229,7 @@ class PluginFactory {
|
|
|
229
229
|
}
|
|
230
230
|
configData = res.data;
|
|
231
231
|
}
|
|
232
|
-
Object.assign(configData, { appId });
|
|
232
|
+
Object.assign(configData, { appId, extraParams });
|
|
233
233
|
const remotePlugin = new runtime.RemotePluginItem(
|
|
234
234
|
rtObjectName,
|
|
235
235
|
rtObjectRepo,
|
|
@@ -258,7 +258,13 @@ class PluginFactory {
|
|
|
258
258
|
*/
|
|
259
259
|
async loadScript(remotePlugin) {
|
|
260
260
|
const pluginPath = remotePlugin.repo;
|
|
261
|
-
const {
|
|
261
|
+
const {
|
|
262
|
+
name,
|
|
263
|
+
appId,
|
|
264
|
+
system,
|
|
265
|
+
styles = [],
|
|
266
|
+
extraParams = {}
|
|
267
|
+
} = remotePlugin.config;
|
|
262
268
|
let scriptUrl = "";
|
|
263
269
|
scriptUrl = index.pathBrowserify.join(pluginPath, system);
|
|
264
270
|
if (scriptUrl) {
|
|
@@ -283,7 +289,7 @@ class PluginFactory {
|
|
|
283
289
|
data = await System.import(name);
|
|
284
290
|
if (data) {
|
|
285
291
|
if (data.default) {
|
|
286
|
-
this.setPluginCode(data.default);
|
|
292
|
+
this.setPluginCode(data.default, extraParams);
|
|
287
293
|
} else {
|
|
288
294
|
throw new core.RuntimeError(
|
|
289
295
|
ibiz.i18n.t("vue3Util.plugin.failedRemotePluginLoad")
|
package/lib/use/index.cjs
CHANGED
|
@@ -13,9 +13,11 @@ var codelistListen = require('./codeList-listen/codelist-listen.cjs');
|
|
|
13
13
|
var index$1 = require('./storage/index.cjs');
|
|
14
14
|
var autofocusBlur = require('./autofocus-blur/autofocus-blur.cjs');
|
|
15
15
|
var popover = require('./popover/popover.cjs');
|
|
16
|
+
require('./vue-use/index.cjs');
|
|
16
17
|
var useControlController = require('./control/use-control-controller/use-control-controller.cjs');
|
|
17
18
|
var useViewController = require('./view/use-view-controller/use-view-controller.cjs');
|
|
18
19
|
var useViewOperation = require('./view/use-view-operation/use-view-operation.cjs');
|
|
20
|
+
var computedAsync = require('./vue-use/computed-async.cjs');
|
|
19
21
|
|
|
20
22
|
"use strict";
|
|
21
23
|
|
|
@@ -39,8 +41,10 @@ exports.useCodeListListen = codelistListen.useCodeListListen;
|
|
|
39
41
|
exports.useLocalCacheKey = index$1.useLocalCacheKey;
|
|
40
42
|
exports.useAutoFocusBlur = autofocusBlur.useAutoFocusBlur;
|
|
41
43
|
exports.shareCommonAncestor = popover.shareCommonAncestor;
|
|
44
|
+
exports.useControlPopoverzIndex = popover.useControlPopoverzIndex;
|
|
42
45
|
exports.usePopoverVisible = popover.usePopoverVisible;
|
|
43
46
|
exports.usePopoverzIndex = popover.usePopoverzIndex;
|
|
44
47
|
exports.useControlController = useControlController.useControlController;
|
|
45
48
|
exports.useViewController = useViewController.useViewController;
|
|
46
49
|
exports.useViewOperation = useViewOperation.useViewOperation;
|
|
50
|
+
exports.computedAsync = computedAsync.computedAsync;
|
|
@@ -7,6 +7,13 @@ require('../../util/index.cjs');
|
|
|
7
7
|
var uiStore = require('../../util/store/ui-store/ui-store.cjs');
|
|
8
8
|
|
|
9
9
|
"use strict";
|
|
10
|
+
function useControlPopoverzIndex(controller) {
|
|
11
|
+
const { zIndex } = uiStore.useUIStore();
|
|
12
|
+
controller.state.zIndex = zIndex.increment();
|
|
13
|
+
vue.onUnmounted(() => {
|
|
14
|
+
zIndex.decrement();
|
|
15
|
+
});
|
|
16
|
+
}
|
|
10
17
|
function usePopoverzIndex() {
|
|
11
18
|
const popoverid = "popover_".concat(qxUtil.createUUID());
|
|
12
19
|
const setPopoverZIndex = (zIndexClass) => {
|
|
@@ -92,5 +99,6 @@ function usePopoverVisible(triggerRef, getElement) {
|
|
|
92
99
|
}
|
|
93
100
|
|
|
94
101
|
exports.shareCommonAncestor = shareCommonAncestor;
|
|
102
|
+
exports.useControlPopoverzIndex = useControlPopoverzIndex;
|
|
95
103
|
exports.usePopoverVisible = usePopoverVisible;
|
|
96
104
|
exports.usePopoverzIndex = usePopoverzIndex;
|
|
@@ -5,24 +5,29 @@ require('../../util/index.cjs');
|
|
|
5
5
|
var route = require('../../util/route/route.cjs');
|
|
6
6
|
|
|
7
7
|
"use strict";
|
|
8
|
-
function useLocalCacheKey(context, type, routeDepth, splitter = "@") {
|
|
8
|
+
function useLocalCacheKey(context, type, routeDepth, splitter = "@", noRouteTag = "") {
|
|
9
9
|
const router = vueRouter.useRouter();
|
|
10
10
|
return () => {
|
|
11
11
|
if (!router) {
|
|
12
12
|
return;
|
|
13
13
|
}
|
|
14
14
|
const userId = context.srfuserid;
|
|
15
|
-
const routePath = route.route2routePath(router.currentRoute.value);
|
|
16
15
|
routeDepth = context.srfdefaulttoroutedepth || routeDepth;
|
|
17
|
-
if (
|
|
18
|
-
routePath
|
|
19
|
-
routePath.pathNodes
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
if (routeDepth) {
|
|
17
|
+
const routePath = route.route2routePath(router.currentRoute.value);
|
|
18
|
+
if (userId && routePath.pathNodes[routeDepth - 2]) {
|
|
19
|
+
routePath.pathNodes = routePath.pathNodes.slice(0, routeDepth - 1);
|
|
20
|
+
routePath.pathNodes.forEach((pathNode) => {
|
|
21
|
+
if (pathNode.context) {
|
|
22
|
+
delete pathNode.context.srfnavctrlid;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const url = route.routePath2string(routePath);
|
|
26
|
+
return "".concat(type).concat(splitter).concat(userId).concat(splitter).concat(url);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
if (noRouteTag) {
|
|
30
|
+
return "".concat(type).concat(splitter).concat(userId).concat(splitter).concat(noRouteTag);
|
|
26
31
|
}
|
|
27
32
|
};
|
|
28
33
|
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var core = require('@ibiz-template/core');
|
|
4
|
+
var vue = require('vue');
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
function computedAsync(evaluationCallback, initialState, optionsOrRef) {
|
|
8
|
+
let options;
|
|
9
|
+
if (vue.isRef(optionsOrRef)) {
|
|
10
|
+
options = {
|
|
11
|
+
evaluating: optionsOrRef
|
|
12
|
+
};
|
|
13
|
+
} else {
|
|
14
|
+
options = optionsOrRef || {};
|
|
15
|
+
}
|
|
16
|
+
const {
|
|
17
|
+
lazy = false,
|
|
18
|
+
flush = "pre",
|
|
19
|
+
evaluating = void 0,
|
|
20
|
+
shallow = true,
|
|
21
|
+
onError = core.NOOP
|
|
22
|
+
} = options;
|
|
23
|
+
const started = vue.shallowRef(!lazy);
|
|
24
|
+
const current = shallow ? vue.shallowRef(initialState) : vue.ref(initialState);
|
|
25
|
+
let counter = 0;
|
|
26
|
+
vue.watchEffect(
|
|
27
|
+
async (onInvalidate) => {
|
|
28
|
+
if (!started.value)
|
|
29
|
+
return;
|
|
30
|
+
counter++;
|
|
31
|
+
const counterAtBeginning = counter;
|
|
32
|
+
let hasFinished = false;
|
|
33
|
+
if (evaluating) {
|
|
34
|
+
Promise.resolve().then(() => {
|
|
35
|
+
evaluating.value = true;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
try {
|
|
39
|
+
const result = await evaluationCallback((cancelCallback) => {
|
|
40
|
+
onInvalidate(() => {
|
|
41
|
+
if (evaluating)
|
|
42
|
+
evaluating.value = false;
|
|
43
|
+
if (!hasFinished)
|
|
44
|
+
cancelCallback();
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
if (counterAtBeginning === counter)
|
|
48
|
+
current.value = result;
|
|
49
|
+
} catch (e) {
|
|
50
|
+
onError(e);
|
|
51
|
+
} finally {
|
|
52
|
+
if (evaluating && counterAtBeginning === counter)
|
|
53
|
+
evaluating.value = false;
|
|
54
|
+
hasFinished = true;
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{ flush }
|
|
58
|
+
);
|
|
59
|
+
if (lazy) {
|
|
60
|
+
return vue.computed(() => {
|
|
61
|
+
started.value = true;
|
|
62
|
+
return current.value;
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
return current;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
exports.computedAsync = computedAsync;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var qxUtil = require('qx-util');
|
|
4
4
|
var vue = require('vue');
|
|
5
5
|
var core = require('@ibiz-template/core');
|
|
6
|
+
var lodashEs = require('lodash-es');
|
|
6
7
|
|
|
7
8
|
"use strict";
|
|
8
9
|
class OverlayContainer {
|
|
@@ -44,13 +45,17 @@ class OverlayContainer {
|
|
|
44
45
|
const self = this;
|
|
45
46
|
const { render, opts } = this;
|
|
46
47
|
const container = document.createElement("div");
|
|
47
|
-
document.body
|
|
48
|
+
let appendTo = document.body;
|
|
49
|
+
if (lodashEs.isElement(opts == null ? void 0 : opts.appendTo)) {
|
|
50
|
+
appendTo = opts == null ? void 0 : opts.appendTo;
|
|
51
|
+
}
|
|
52
|
+
appendTo.appendChild(container);
|
|
48
53
|
const vm = OverlayContainer.createVueApp({
|
|
49
54
|
mounted() {
|
|
50
55
|
self.modal = this.$refs.root;
|
|
51
56
|
},
|
|
52
57
|
unmounted() {
|
|
53
|
-
|
|
58
|
+
appendTo.removeChild(container);
|
|
54
59
|
self.evt.emit("dismiss", self.result);
|
|
55
60
|
},
|
|
56
61
|
render() {
|
|
@@ -4,10 +4,11 @@ var vue = require('vue');
|
|
|
4
4
|
|
|
5
5
|
"use strict";
|
|
6
6
|
function createOverlayView(props) {
|
|
7
|
-
return (modal) => {
|
|
7
|
+
return (modal, viewShellHooks) => {
|
|
8
8
|
const viewShell = vue.resolveComponent("IBizViewShell");
|
|
9
9
|
return vue.h(viewShell, {
|
|
10
10
|
...props,
|
|
11
|
+
viewShellHooks,
|
|
11
12
|
modal
|
|
12
13
|
});
|
|
13
14
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var ramda = require('ramda');
|
|
4
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
5
|
|
|
5
6
|
"use strict";
|
|
6
7
|
function renderString(value) {
|
|
@@ -26,7 +27,9 @@ const hasEmptyPanelRenderer = (c) => {
|
|
|
26
27
|
if (!controlRenders || controlRenders.length === 0) {
|
|
27
28
|
return false;
|
|
28
29
|
}
|
|
29
|
-
return !!controlRenders.find(
|
|
30
|
+
return !!controlRenders.find(
|
|
31
|
+
(item) => item.id === runtime.PredefinedControlRender.EMPTYPANEL
|
|
32
|
+
);
|
|
30
33
|
};
|
|
31
34
|
|
|
32
35
|
exports.hasEmptyPanelRenderer = hasEmptyPanelRenderer;
|
package/lib/util/route/route.cjs
CHANGED
|
@@ -38,7 +38,7 @@ function route2routePath(route, isRouteModal = false) {
|
|
|
38
38
|
params = void 0;
|
|
39
39
|
} else {
|
|
40
40
|
if (params.srfnavctx) {
|
|
41
|
-
context = JSON.parse(
|
|
41
|
+
context = JSON.parse(params.srfnavctx);
|
|
42
42
|
delete params.srfnavctx;
|
|
43
43
|
}
|
|
44
44
|
if (params.srfnav) {
|
|
@@ -119,8 +119,13 @@ function getOwnRouteContext(context) {
|
|
|
119
119
|
}
|
|
120
120
|
delete ownContext.attributekeys;
|
|
121
121
|
}
|
|
122
|
+
let srfKeepNull = false;
|
|
123
|
+
if (Object.prototype.hasOwnProperty.call(ownContext, "srfkeepnull")) {
|
|
124
|
+
srfKeepNull = ownContext.srfkeepnull === true || ownContext.srfkeepnull === "true";
|
|
125
|
+
delete ownContext.srfkeepnull;
|
|
126
|
+
}
|
|
122
127
|
Object.keys(ownContext).forEach((key) => {
|
|
123
|
-
if (excludeKeys.includes(key) || ramda.isNil(ownContext[key])) {
|
|
128
|
+
if (excludeKeys.includes(key) || !srfKeepNull && ramda.isNil(ownContext[key])) {
|
|
124
129
|
delete ownContext[key];
|
|
125
130
|
}
|
|
126
131
|
});
|
|
@@ -176,6 +181,7 @@ async function calcResRoutePath(routePath, context, appDataEntityId, appId) {
|
|
|
176
181
|
}
|
|
177
182
|
}
|
|
178
183
|
async function generateRoutePath(appView, route, context, params) {
|
|
184
|
+
var _a;
|
|
179
185
|
const routePath = route2routePath(route);
|
|
180
186
|
let depth = context.srfdefaulttoroutedepth || 2;
|
|
181
187
|
if (context.toRouteDepth) {
|
|
@@ -188,6 +194,10 @@ async function generateRoutePath(appView, route, context, params) {
|
|
|
188
194
|
};
|
|
189
195
|
}
|
|
190
196
|
}
|
|
197
|
+
let srfmenuitem = params == null ? void 0 : params.srfmenuitem;
|
|
198
|
+
if (!srfmenuitem && routePath.pathNodes.length > 1) {
|
|
199
|
+
srfmenuitem = (_a = routePath.pathNodes[1].params) == null ? void 0 : _a.srfmenuitem;
|
|
200
|
+
}
|
|
191
201
|
routePath.pathNodes.splice(depth - 1, routePath.pathNodes.length - depth + 1);
|
|
192
202
|
if (context.currentSrfNav) {
|
|
193
203
|
const currentNode = routePath.pathNodes[routePath.pathNodes.length - 1];
|
|
@@ -221,6 +231,10 @@ async function generateRoutePath(appView, route, context, params) {
|
|
|
221
231
|
delete routePath.pathNodes[0].context[deName];
|
|
222
232
|
}
|
|
223
233
|
}
|
|
234
|
+
if (srfmenuitem && routePath.pathNodes.length > 1) {
|
|
235
|
+
const tempParams = routePath.pathNodes[1].params || {};
|
|
236
|
+
routePath.pathNodes[1].params = { ...tempParams, srfmenuitem };
|
|
237
|
+
}
|
|
224
238
|
return { path: routePath2string(routePath) };
|
|
225
239
|
}
|
|
226
240
|
async function generateRoutePathByModal(appView, route, context, params) {
|
|
@@ -310,7 +324,7 @@ function getNestedRoutePath(route, depth, noSrfNav = true) {
|
|
|
310
324
|
if (noSrfNav) {
|
|
311
325
|
delete pathNode.srfnav;
|
|
312
326
|
}
|
|
313
|
-
if (pathNode.context) {
|
|
327
|
+
if (!ibiz.env.isMob && pathNode.context) {
|
|
314
328
|
delete pathNode.context.srfnavctrlid;
|
|
315
329
|
}
|
|
316
330
|
return routePath2string(routePath);
|
|
@@ -321,7 +335,8 @@ function onRouteChange(callback, depth) {
|
|
|
321
335
|
throw new core.RuntimeError(ibiz.i18n.t("vue3Util.util.routeCorrectly"));
|
|
322
336
|
}
|
|
323
337
|
vue.watch(
|
|
324
|
-
|
|
338
|
+
// fix: odoo脚本触发路径query变更未触发路由变更事件
|
|
339
|
+
() => route == null ? void 0 : route.fullPath,
|
|
325
340
|
() => {
|
|
326
341
|
const currentKey = getNestedRoutePath(route, depth);
|
|
327
342
|
callback({ currentKey, fullPath: route.fullPath });
|
|
@@ -5,6 +5,7 @@ require('../../util/index.cjs');
|
|
|
5
5
|
var view_provider = require('./view.provider.cjs');
|
|
6
6
|
var view = require('./view.cjs');
|
|
7
7
|
var appDataUploadView_provider = require('../app-data-upload-view/app-data-upload-view.provider.cjs');
|
|
8
|
+
var mdCustomView_provider = require('../md-custom-view/md-custom-view.provider.cjs');
|
|
8
9
|
var install = require('../../util/install.cjs');
|
|
9
10
|
|
|
10
11
|
"use strict";
|
|
@@ -15,6 +16,7 @@ const IBizView = install.withInstall(view.View, function(v) {
|
|
|
15
16
|
"APPDATAUPLOADVIEW",
|
|
16
17
|
() => new appDataUploadView_provider.AppDataUploadViewProvider()
|
|
17
18
|
);
|
|
19
|
+
runtime.registerViewProvider("DEMDCUSTOMVIEW", () => new mdCustomView_provider.MDCustomViewProvider());
|
|
18
20
|
});
|
|
19
21
|
|
|
20
22
|
exports.IBizView = IBizView;
|
package/lib/view/common/view.cjs
CHANGED
|
@@ -129,6 +129,19 @@ const View = /* @__PURE__ */ vue.defineComponent({
|
|
|
129
129
|
}
|
|
130
130
|
return vue.h(comp, ctrlProps);
|
|
131
131
|
};
|
|
132
|
+
let watermarkDestroy;
|
|
133
|
+
vue.onMounted(() => {
|
|
134
|
+
vue.nextTick(async () => {
|
|
135
|
+
const container = document.getElementById(c.id);
|
|
136
|
+
const appView = await ibiz.hub.config.view.get(c.model.id);
|
|
137
|
+
if (!container || !(appView == null ? void 0 : appView.waterMarkOption))
|
|
138
|
+
return;
|
|
139
|
+
watermarkDestroy = ibiz.util.watermark.mount(appView.waterMarkOption, container, c.context, c.params, c.state.srfactiveviewdata || {});
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
vue.onBeforeUnmount(() => {
|
|
143
|
+
watermarkDestroy == null ? void 0 : watermarkDestroy();
|
|
144
|
+
});
|
|
132
145
|
return {
|
|
133
146
|
c,
|
|
134
147
|
ns,
|