@ibiz-template/vue3-util 0.7.41-alpha.4 → 0.7.41-alpha.40
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/badge/badge.mjs +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 +43 -23
- 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 +5 -5
- 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.css +1 -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 +12 -10
- 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.css +1 -1
- 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.css +1 -0
- package/es/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.d.ts +5 -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 +4 -5
- 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.d.ts +12 -0
- package/es/panel-component/panel-field/panel-field.controller.d.ts.map +1 -1
- package/es/panel-component/panel-field/panel-field.controller.mjs +34 -3
- package/es/panel-component/panel-field/panel-field.css +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 +3 -5
- 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 +4 -2
- 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.d.ts +9 -0
- package/es/use/vue/vue.d.ts.map +1 -1
- package/es/use/vue/vue.mjs +15 -2
- 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/index.d.ts +0 -1
- package/es/util/index.d.ts.map +1 -1
- package/es/util/index.mjs +0 -1
- 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.cjs +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 +41 -21
- 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 +15 -6
- package/lib/locale/en/index.cjs +2 -1
- package/lib/locale/zh-CN/index.cjs +2 -1
- package/lib/panel-component/auth-wxmp-qrcode/auth-wxmp-qrcode.css +1 -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 +11 -9
- 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.css +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 +3 -4
- package/lib/panel-component/panel-ctrl-view-page-caption/panel-ctrl-view-page-caption.css +1 -0
- package/lib/panel-component/panel-field/panel-field.cjs +2 -4
- package/lib/panel-component/panel-field/panel-field.controller.cjs +34 -3
- package/lib/panel-component/panel-field/panel-field.css +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 +5 -0
- package/lib/use/popover/popover.cjs +8 -0
- package/lib/use/storage/index.cjs +16 -11
- package/lib/use/vue/vue.cjs +14 -0
- package/lib/use/vue-use/computed-async.cjs +68 -0
- package/lib/use/vue-use/index.cjs +7 -0
- package/lib/util/index.cjs +0 -2
- 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/es/util/control/prepare-control.d.ts +0 -15
- package/es/util/control/prepare-control.d.ts.map +0 -1
- package/es/util/control/prepare-control.mjs +0 -22
- package/lib/panel-component/panel-container/panel-container.controller.cjs +0 -14
- package/lib/panel-component/panel-container/panel-container.state.cjs +0 -9
- package/lib/util/control/prepare-control.cjs +0 -24
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { defineComponent,
|
|
2
|
-
import {
|
|
3
|
-
import { ViewController, getErrorViewProvider } from '@ibiz-template/runtime';
|
|
1
|
+
import { defineComponent, withDirectives, createVNode, resolveDirective, h, resolveComponent, ref, onBeforeMount } from 'vue';
|
|
2
|
+
import { getErrorViewProvider, HtmlViewController } from '@ibiz-template/runtime';
|
|
4
3
|
import '../../use/index.mjs';
|
|
5
4
|
import './html-view.css';
|
|
6
5
|
import { useNamespace } from '../../use/namespace/namespace.mjs';
|
|
@@ -29,7 +28,7 @@ const HtmlView = /* @__PURE__ */ defineComponent({
|
|
|
29
28
|
setup() {
|
|
30
29
|
var _a;
|
|
31
30
|
const ns = useNamespace("view");
|
|
32
|
-
const c = useViewController((...args) => new
|
|
31
|
+
const c = useViewController((model, ...args) => new HtmlViewController(model, ...args));
|
|
33
32
|
const controls = ((_a = c.model.viewLayoutPanel) == null ? void 0 : _a.controls) || c.model.controls;
|
|
34
33
|
const {
|
|
35
34
|
viewType,
|
|
@@ -40,16 +39,8 @@ const HtmlView = /* @__PURE__ */ defineComponent({
|
|
|
40
39
|
const sysCssName = sysCss == null ? void 0 : sysCss.cssName;
|
|
41
40
|
const viewClassNames = [ns.b(), ns.b(typeClass), ns.m(codeName), sysCssName];
|
|
42
41
|
const isLoading = ref(false);
|
|
43
|
-
const url = computed(() => {
|
|
44
|
-
const {
|
|
45
|
-
htmlUrl
|
|
46
|
-
} = c.model;
|
|
47
|
-
if (htmlUrl)
|
|
48
|
-
return StringUtil.fill(htmlUrl, c.context, c.params);
|
|
49
|
-
return "";
|
|
50
|
-
});
|
|
51
42
|
onBeforeMount(() => {
|
|
52
|
-
if (
|
|
43
|
+
if (c.state.htmlUrl) {
|
|
53
44
|
isLoading.value = true;
|
|
54
45
|
}
|
|
55
46
|
});
|
|
@@ -61,17 +52,18 @@ const HtmlView = /* @__PURE__ */ defineComponent({
|
|
|
61
52
|
ns,
|
|
62
53
|
controls,
|
|
63
54
|
viewClassNames,
|
|
64
|
-
url,
|
|
65
55
|
isLoading,
|
|
66
56
|
onLoad
|
|
67
57
|
};
|
|
68
58
|
},
|
|
69
59
|
render() {
|
|
70
|
-
if (this.
|
|
60
|
+
if (!this.c.state.isCreated)
|
|
61
|
+
return;
|
|
62
|
+
if (this.c.state.htmlUrl) {
|
|
71
63
|
return withDirectives(createVNode("div", {
|
|
72
64
|
"class": this.viewClassNames
|
|
73
65
|
}, [createVNode("iframe", {
|
|
74
|
-
"src": this.
|
|
66
|
+
"src": this.c.state.htmlUrl,
|
|
75
67
|
"onLoad": () => this.onLoad()
|
|
76
68
|
}, null)]), [[resolveDirective("loading"), this.isLoading]]);
|
|
77
69
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const IBizHtmlView: import("../../util").TypeWithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const IBizHtmlView: import("../../util").TypeWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
3
3
|
params: {
|
|
4
4
|
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
@@ -14,15 +14,14 @@ export declare const IBizHtmlView: import("../../util").TypeWithInstall<import("
|
|
|
14
14
|
state: {
|
|
15
15
|
type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
16
16
|
};
|
|
17
|
-
}
|
|
18
|
-
c: import("@ibiz-template/runtime").
|
|
17
|
+
}>, {
|
|
18
|
+
c: import("@ibiz-template/runtime").HtmlViewController<import("@ibiz/model-core").IAppDEHtmlView, import("@ibiz-template/runtime").IHtmlViewState, import("@ibiz-template/runtime").IViewEvent>;
|
|
19
19
|
ns: import("@ibiz-template/core").Namespace;
|
|
20
20
|
controls: import("@ibiz/model-core").IControl[] | undefined;
|
|
21
21
|
viewClassNames: (string | undefined)[];
|
|
22
|
-
|
|
23
|
-
isLoading: import("vue").Ref<boolean>;
|
|
22
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
24
23
|
onLoad: () => void;
|
|
25
|
-
},
|
|
24
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
25
|
context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
27
26
|
params: {
|
|
28
27
|
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
@@ -38,7 +37,7 @@ export declare const IBizHtmlView: import("../../util").TypeWithInstall<import("
|
|
|
38
37
|
state: {
|
|
39
38
|
type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
40
39
|
};
|
|
41
|
-
}
|
|
40
|
+
}>> & Readonly<{}>, {
|
|
42
41
|
params: import("@ibiz-template/core").IApiParams;
|
|
43
|
-
}, {}>>;
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
44
43
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/html-view/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/html-view/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAGvB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { CTX, IMDCustomViewState, IViewController, IViewEvent, IViewProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { IAppDECustomView } from '@ibiz/model-core';
|
|
3
|
+
/**
|
|
4
|
+
* @description 实体多数据自定义视图适配器
|
|
5
|
+
* @export
|
|
6
|
+
* @class MDCustomViewProvider
|
|
7
|
+
* @implements {IViewProvider}
|
|
8
|
+
*/
|
|
9
|
+
export declare class MDCustomViewProvider implements IViewProvider {
|
|
10
|
+
component: string;
|
|
11
|
+
createController(model: IAppDECustomView, context: IContext, params?: IParams | undefined, ctx?: CTX<IViewController<IAppDECustomView, IMDCustomViewState, IViewEvent>> | undefined): IViewController<IAppDECustomView, IMDCustomViewState, IViewEvent>;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=md-custom-view.provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"md-custom-view.provider.d.ts","sourceRoot":"","sources":["../../../src/view/md-custom-view/md-custom-view.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,GAAG,EACH,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,aAAa,EAEd,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD;;;;;GAKG;AACH,qBAAa,oBAAqB,YAAW,aAAa;IACxD,SAAS,EAAE,MAAM,CAAc;IAE/B,gBAAgB,CACd,KAAK,EAAE,gBAAgB,EACvB,OAAO,EAAE,QAAQ,EACjB,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,EAC5B,GAAG,CAAC,EACA,GAAG,CAAC,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,UAAU,CAAC,CAAC,GACtE,SAAS,GACZ,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,UAAU,CAAC;CAGrE"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { MDCustomViewController } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
class MDCustomViewProvider {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.component = "IBizView";
|
|
7
|
+
}
|
|
8
|
+
createController(model, context, params, ctx) {
|
|
9
|
+
return new MDCustomViewController(model, context, params, ctx);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export { MDCustomViewProvider };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const IBizPortalView: import("../../util").TypeWithInstall<import("vue").DefineComponent<{
|
|
1
|
+
export declare const IBizPortalView: import("../../util").TypeWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
3
3
|
params: {
|
|
4
4
|
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
@@ -14,12 +14,12 @@ export declare const IBizPortalView: import("../../util").TypeWithInstall<import
|
|
|
14
14
|
state: {
|
|
15
15
|
type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
16
16
|
};
|
|
17
|
-
}
|
|
17
|
+
}>, {
|
|
18
18
|
c: import("@ibiz-template/runtime").ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
|
|
19
19
|
ns: import("@ibiz-template/core").Namespace;
|
|
20
20
|
controls: import("@ibiz/model-core").IControl[] | undefined;
|
|
21
21
|
viewClassNames: (string | undefined)[];
|
|
22
|
-
},
|
|
22
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
23
|
context: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
24
24
|
params: {
|
|
25
25
|
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
@@ -35,7 +35,7 @@ export declare const IBizPortalView: import("../../util").TypeWithInstall<import
|
|
|
35
35
|
state: {
|
|
36
36
|
type: import("vue").PropType<import("@ibiz-template/core").IApiData>;
|
|
37
37
|
};
|
|
38
|
-
}
|
|
38
|
+
}>> & Readonly<{}>, {
|
|
39
39
|
params: import("@ibiz-template/core").IApiParams;
|
|
40
|
-
}, {}>>;
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
41
41
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/portal-view/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/view/portal-view/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAWzB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IModal, ViewController } from '@ibiz-template/runtime';
|
|
2
2
|
import { IAppPortalView } from '@ibiz/model-core';
|
|
3
3
|
import { PropType } from 'vue';
|
|
4
|
-
export declare const PortalView: import("vue").DefineComponent<{
|
|
4
|
+
export declare const PortalView: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
5
5
|
context: PropType<import("@ibiz-template/core").IApiContext>;
|
|
6
6
|
params: {
|
|
7
7
|
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
@@ -17,12 +17,12 @@ export declare const PortalView: import("vue").DefineComponent<{
|
|
|
17
17
|
state: {
|
|
18
18
|
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
19
19
|
};
|
|
20
|
-
}
|
|
20
|
+
}>, {
|
|
21
21
|
c: ViewController<import("@ibiz/model-core").IAppView, import("@ibiz-template/runtime").IViewState, import("@ibiz-template/runtime").IViewEvent>;
|
|
22
22
|
ns: import("@ibiz-template/core").Namespace;
|
|
23
23
|
controls: import("@ibiz/model-core").IControl[] | undefined;
|
|
24
24
|
viewClassNames: (string | undefined)[];
|
|
25
|
-
},
|
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
26
|
context: PropType<import("@ibiz-template/core").IApiContext>;
|
|
27
27
|
params: {
|
|
28
28
|
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
@@ -38,7 +38,7 @@ export declare const PortalView: import("vue").DefineComponent<{
|
|
|
38
38
|
state: {
|
|
39
39
|
type: PropType<import("@ibiz-template/core").IApiData>;
|
|
40
40
|
};
|
|
41
|
-
}
|
|
41
|
+
}>> & Readonly<{}>, {
|
|
42
42
|
params: import("@ibiz-template/core").IApiParams;
|
|
43
|
-
}, {}>;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
44
44
|
//# sourceMappingURL=portal-view.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"portal-view.d.ts","sourceRoot":"","sources":["../../../src/view/portal-view/portal-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAsB,QAAQ,EAAoB,MAAM,KAAK,CAAC;AAGrE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"portal-view.d.ts","sourceRoot":"","sources":["../../../src/view/portal-view/portal-view.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAsB,QAAQ,EAAoB,MAAM,KAAK,CAAC;AAGrE,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA6ErB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const TodoRedirect: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
1
|
+
export declare const TodoRedirect: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
2
|
//# sourceMappingURL=todo-redirect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"todo-redirect.d.ts","sourceRoot":"","sources":["../../../src/view/todo-redirect/todo-redirect.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"todo-redirect.d.ts","sourceRoot":"","sources":["../../../src/view/todo-redirect/todo-redirect.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY,iRA8CvB,CAAC"}
|
|
@@ -39,7 +39,7 @@ const IBizBadge = /* @__PURE__ */ vue.defineComponent({
|
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
return vue.createVNode("div", {
|
|
42
|
-
"class": [this.ns.b(), this.ns.m(this.type)]
|
|
42
|
+
"class": [this.ns.b(), this.ns.m(this.type), this.ns.is("mob", ibiz.env.isMob)]
|
|
43
43
|
}, [this.value > this.max ? "".concat(this.max, "+") : this.value]);
|
|
44
44
|
}
|
|
45
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-badge{display:inline-
|
|
1
|
+
.ibiz-badge{--ibiz-badge-bg-color:var(--ibiz-color-danger);--ibiz-badge-height:18px;--ibiz-badge-border-radius:10px;display:inline-flex;align-items:center;justify-content:center;width:auto;height:var(--ibiz-badge-height);padding:var(--ibiz-spacing-extra-tight);font-size:var(--ibiz-font-size-small);line-height:normal;color:var(--ibiz-color-danger-text);white-space:nowrap;background-color:var(--ibiz-badge-bg-color);border:1px solid transparent;border-radius:var(--ibiz-badge-border-radius)}.ibiz-badge--danger{--ibiz-badge-bg-color:var(--ibiz-color-danger)}.ibiz-badge--success{--ibiz-badge-bg-color:var(--ibiz-color-success)}.ibiz-badge--warning{--ibiz-badge-bg-color:var(--ibiz-color-warning)}.ibiz-badge--info{--ibiz-badge-bg-color:var(--ibiz-color-info)}.ibiz-badge--primary{--ibiz-badge-bg-color:var(--ibiz-color-primary)}.ibiz-badge.is-mob{--ibiz-panel-badge-text-color:var(--ibiz-color-white);--ibiz-panel-badge-font-weight:600;--ibiz-panel-badge-height:1.125rem;--ibiz-panel-badge-border-radius:0.625rem;font-weight:var(--ibiz-panel-badge-font-weight);color:var(--ibiz-panel-badge-text-color)}
|
|
@@ -5,6 +5,7 @@ var runtime = require('@ibiz-template/runtime');
|
|
|
5
5
|
var core = require('@ibiz-template/core');
|
|
6
6
|
var ramda = require('ramda');
|
|
7
7
|
require('../../use/index.cjs');
|
|
8
|
+
require('./control-base.css');
|
|
8
9
|
var namespace = require('../../use/namespace/namespace.cjs');
|
|
9
10
|
|
|
10
11
|
"use strict";
|
|
@@ -74,7 +75,7 @@ const IBizControlBase = /* @__PURE__ */ vue.defineComponent({
|
|
|
74
75
|
};
|
|
75
76
|
const getControlRender = (data) => {
|
|
76
77
|
var _a, _b;
|
|
77
|
-
const controlRenders = model.controlRenders ? model.controlRenders.filter((item) => item.id
|
|
78
|
+
const controlRenders = model.controlRenders ? model.controlRenders.filter((item) => !Object.values(runtime.PredefinedControlRender).includes(item.id)) : void 0;
|
|
78
79
|
if (!controlRenders || controlRenders.length === 0) {
|
|
79
80
|
return void 0;
|
|
80
81
|
}
|
|
@@ -107,6 +108,36 @@ const IBizControlBase = /* @__PURE__ */ vue.defineComponent({
|
|
|
107
108
|
const data = props.controller.data || props.controller.items;
|
|
108
109
|
return getControlRender(data);
|
|
109
110
|
});
|
|
111
|
+
const disableMaskInfoRender = () => {
|
|
112
|
+
const disableRender = model.controlRenders ? model.controlRenders.find((item) => item.id === runtime.PredefinedControlRender.DISABLEPANEL) : void 0;
|
|
113
|
+
if (!disableRender) {
|
|
114
|
+
return vue.createVNode("div", {
|
|
115
|
+
"innerHTML": props.controller.state.maskOption.maskInfo || "",
|
|
116
|
+
"class": [ns.e("disable-mask-text")]
|
|
117
|
+
}, null);
|
|
118
|
+
}
|
|
119
|
+
if (disableRender.renderType === "LAYOUTPANEL_MODEL" && disableRender.layoutPanelModel) {
|
|
120
|
+
const htmlCode = runtime.ScriptFactory.execScriptFn({
|
|
121
|
+
...props.controller.getEventArgs()
|
|
122
|
+
}, disableRender.layoutPanelModel, {
|
|
123
|
+
isAsync: false,
|
|
124
|
+
singleRowReturn: true
|
|
125
|
+
});
|
|
126
|
+
return vue.createVNode("div", {
|
|
127
|
+
"innerHTML": htmlCode,
|
|
128
|
+
"class": [ns.e("disable-mask-text")]
|
|
129
|
+
}, null);
|
|
130
|
+
}
|
|
131
|
+
if (disableRender.renderType === "LAYOUTPANEL" && disableRender.layoutPanel) {
|
|
132
|
+
return vue.createVNode(vue.resolveComponent("iBizControlShell"), {
|
|
133
|
+
"class": [ns.e("disable-mask-text")],
|
|
134
|
+
"data": {},
|
|
135
|
+
"params": props.controller.params,
|
|
136
|
+
"context": props.controller.context,
|
|
137
|
+
"modelData": disableRender.layoutPanel
|
|
138
|
+
}, null);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
110
141
|
return {
|
|
111
142
|
ns,
|
|
112
143
|
typeClass,
|
|
@@ -115,6 +146,7 @@ const IBizControlBase = /* @__PURE__ */ vue.defineComponent({
|
|
|
115
146
|
codeName,
|
|
116
147
|
controls,
|
|
117
148
|
customRender,
|
|
149
|
+
disableMaskInfoRender,
|
|
118
150
|
onLayoutPanelCreated
|
|
119
151
|
};
|
|
120
152
|
},
|
|
@@ -164,9 +196,11 @@ const IBizControlBase = /* @__PURE__ */ vue.defineComponent({
|
|
|
164
196
|
}, slots);
|
|
165
197
|
}
|
|
166
198
|
return vue.createVNode("div", {
|
|
167
|
-
"class": [this.ns.b(), this.ns.b(this.typeClass), this.ns.m(this.codeName), this.sysCssName],
|
|
199
|
+
"class": [this.ns.b(), this.ns.b(this.typeClass), this.ns.m(this.codeName), this.sysCssName, this.ns.is("disabled", state.disabled)],
|
|
168
200
|
"style": this.inlineStyle
|
|
169
|
-
}, [layoutPanel || this.customRender || ((_c = (_b = this.$slots).default) == null ? void 0 : _c.call(_b))
|
|
201
|
+
}, [layoutPanel || this.customRender || ((_c = (_b = this.$slots).default) == null ? void 0 : _c.call(_b)), state.disabled && vue.createVNode("div", {
|
|
202
|
+
"class": [this.ns.e("mask-container"), this.ns.m(state.maskOption.mode.toLowerCase())]
|
|
203
|
+
}, [state.maskOption.mode === "MASK" && this.disableMaskInfoRender()])]);
|
|
170
204
|
}
|
|
171
205
|
});
|
|
172
206
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control{width:100%;height:100%}.ibiz-control__control-render{width:100%;height:100%}
|
|
1
|
+
.ibiz-control{--ibiz-control-base-scrollbar-width:0px;--ibiz-control-base-mask-text-color:var(--ibiz-color-primary-text);--ibiz-control-base-mask-background-color-blank:transparent;--ibiz-control-base-mask-background-color-mask:rgba(0, 0, 0, 0.5);width:100%;height:100%}.ibiz-control__control-render{width:100%;height:100%}.ibiz-control.is-disabled{position:relative}.ibiz-control__mask-container{position:absolute;top:0;left:0;z-index:10;width:calc(100% - var(--ibiz-control-base-scrollbar-width));height:100%}.ibiz-control--blank{background-color:var(--ibiz-control-base-mask-background-color-blank)}.ibiz-control--mask{color:var(--ibiz-control-base-mask-text-color);background-color:var(--ibiz-control-base-mask-background-color-mask);display:flex;align-items:center;justify-content:center}
|
|
@@ -49,7 +49,7 @@ const IBizCustomRender = /* @__PURE__ */ vue.defineComponent({
|
|
|
49
49
|
if (!controlRenders || controlRenders.length === 0) {
|
|
50
50
|
return void 0;
|
|
51
51
|
}
|
|
52
|
-
const noDataRender = controlRenders.find((item) => item.id ===
|
|
52
|
+
const noDataRender = controlRenders.find((item) => item.id === runtime.PredefinedControlRender.EMPTYPANEL);
|
|
53
53
|
if (!noDataRender)
|
|
54
54
|
return void 0;
|
|
55
55
|
if (noDataRender.renderType === "LAYOUTPANEL_MODEL" && noDataRender.layoutPanelModel) {
|
package/lib/common/index.cjs
CHANGED
|
@@ -9,6 +9,7 @@ var codeList = require('./code-list/code-list.cjs');
|
|
|
9
9
|
var controlLoadingPlaceholder = require('./control-loading-placeholder/control-loading-placeholder.cjs');
|
|
10
10
|
var badge = require('./badge/badge.cjs');
|
|
11
11
|
var customRender = require('./custom-render/custom-render.cjs');
|
|
12
|
+
var signaturePad = require('./signature-pad/signature-pad.cjs');
|
|
12
13
|
|
|
13
14
|
"use strict";
|
|
14
15
|
|
|
@@ -21,3 +22,4 @@ exports.IBizCodeList = codeList.IBizCodeList;
|
|
|
21
22
|
exports.ControlLoadingPlaceholder = controlLoadingPlaceholder.ControlLoadingPlaceholder;
|
|
22
23
|
exports.IBizBadge = badge.IBizBadge;
|
|
23
24
|
exports.IBizCustomRender = customRender.IBizCustomRender;
|
|
25
|
+
exports.IBizSignaturePad = signaturePad.IBizSignaturePad;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var lodashEs = require('lodash-es');
|
|
5
|
+
require('../../use/index.cjs');
|
|
6
|
+
var signature_pad = require('./util/signature_pad.cjs');
|
|
7
|
+
require('./signature-pad.css');
|
|
8
|
+
var namespace = require('../../use/namespace/namespace.cjs');
|
|
9
|
+
|
|
10
|
+
"use strict";
|
|
11
|
+
const IBizSignaturePad = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
name: "IBizSignaturePad",
|
|
13
|
+
props: {
|
|
14
|
+
options: {
|
|
15
|
+
type: Object
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
setup(props) {
|
|
19
|
+
const ns = namespace.useNamespace("signature-pad");
|
|
20
|
+
const signaturePadRef = vue.ref();
|
|
21
|
+
const canvasRef = vue.ref();
|
|
22
|
+
const signaturePad = vue.ref();
|
|
23
|
+
const getSignatureOptions = () => {
|
|
24
|
+
const _options = {};
|
|
25
|
+
if (props.options) {
|
|
26
|
+
const {
|
|
27
|
+
dotsize,
|
|
28
|
+
minwidth,
|
|
29
|
+
maxwidth,
|
|
30
|
+
pencolor,
|
|
31
|
+
velocityfilterweight,
|
|
32
|
+
compositeoperation,
|
|
33
|
+
mindistance,
|
|
34
|
+
backgroundcolor,
|
|
35
|
+
throttle,
|
|
36
|
+
canvascontextoptions
|
|
37
|
+
} = props.options;
|
|
38
|
+
if (dotsize) {
|
|
39
|
+
Object.assign(_options, {
|
|
40
|
+
dotSize: Number(dotsize)
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
if (minwidth) {
|
|
44
|
+
Object.assign(_options, {
|
|
45
|
+
minWidth: Number(minwidth)
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
if (maxwidth) {
|
|
49
|
+
Object.assign(_options, {
|
|
50
|
+
maxWidth: Number(maxwidth)
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
if (velocityfilterweight) {
|
|
54
|
+
Object.assign(_options, {
|
|
55
|
+
velocityFilterWeight: Number(velocityfilterweight)
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
if (mindistance) {
|
|
59
|
+
Object.assign(_options, {
|
|
60
|
+
minDistance: Number(mindistance)
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (throttle) {
|
|
64
|
+
Object.assign(_options, {
|
|
65
|
+
throttle: Number(throttle)
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (pencolor) {
|
|
69
|
+
Object.assign(_options, {
|
|
70
|
+
penColor: String(pencolor)
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
if (compositeoperation) {
|
|
74
|
+
Object.assign(_options, {
|
|
75
|
+
compositeOperation: String(compositeoperation)
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
if (backgroundcolor) {
|
|
79
|
+
Object.assign(_options, {
|
|
80
|
+
backgroundColor: String(backgroundcolor)
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
if (canvascontextoptions) {
|
|
84
|
+
let canvasContextOptions = canvascontextoptions;
|
|
85
|
+
if (lodashEs.isString(canvascontextoptions)) {
|
|
86
|
+
try {
|
|
87
|
+
canvasContextOptions = JSON.parse(canvascontextoptions);
|
|
88
|
+
} catch (error) {
|
|
89
|
+
ibiz.log.error(error);
|
|
90
|
+
canvasContextOptions = void 0;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
Object.assign(_options, {
|
|
94
|
+
canvasContextOptions: {
|
|
95
|
+
...canvasContextOptions
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return _options;
|
|
101
|
+
};
|
|
102
|
+
const preventScroll = (_e) => {
|
|
103
|
+
_e.preventDefault();
|
|
104
|
+
};
|
|
105
|
+
const initSignaturePad = (_callback) => {
|
|
106
|
+
vue.nextTick(() => {
|
|
107
|
+
const canvas = canvasRef.value;
|
|
108
|
+
const signatures = signaturePadRef.value;
|
|
109
|
+
if (!canvas)
|
|
110
|
+
return;
|
|
111
|
+
const dpr = window.devicePixelRatio || 1;
|
|
112
|
+
const rect = signatures.getBoundingClientRect();
|
|
113
|
+
const canvasWidth = rect.width < 300 ? 300 : rect.width;
|
|
114
|
+
const canvasHeight = rect.height < 150 ? 150 : rect.height;
|
|
115
|
+
canvas.width = canvasWidth * dpr;
|
|
116
|
+
canvas.height = canvasHeight * dpr;
|
|
117
|
+
canvas.style.width = "".concat(canvasWidth, "px");
|
|
118
|
+
canvas.style.height = "".concat(canvasHeight, "px");
|
|
119
|
+
signaturePad.value = new signature_pad.default(canvas, {
|
|
120
|
+
...getSignatureOptions()
|
|
121
|
+
});
|
|
122
|
+
const ctx = canvas.getContext("2d");
|
|
123
|
+
ctx.scale(dpr, dpr);
|
|
124
|
+
canvas.addEventListener("touchstart", preventScroll, {
|
|
125
|
+
passive: false
|
|
126
|
+
});
|
|
127
|
+
canvas.addEventListener("touchmove", preventScroll, {
|
|
128
|
+
passive: false
|
|
129
|
+
});
|
|
130
|
+
_callback == null ? void 0 : _callback();
|
|
131
|
+
});
|
|
132
|
+
};
|
|
133
|
+
const updateSignaturePad = (_callback) => initSignaturePad(_callback);
|
|
134
|
+
const handleResize = () => {
|
|
135
|
+
if (signaturePad.value) {
|
|
136
|
+
signaturePad.value.off();
|
|
137
|
+
updateSignaturePad();
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
vue.onMounted(() => {
|
|
141
|
+
initSignaturePad();
|
|
142
|
+
window.addEventListener("resize", handleResize);
|
|
143
|
+
});
|
|
144
|
+
vue.onUnmounted(() => {
|
|
145
|
+
window.removeEventListener("resize", handleResize);
|
|
146
|
+
});
|
|
147
|
+
return {
|
|
148
|
+
ns,
|
|
149
|
+
canvasRef,
|
|
150
|
+
signaturePadRef,
|
|
151
|
+
signaturePad,
|
|
152
|
+
updateSignaturePad
|
|
153
|
+
};
|
|
154
|
+
},
|
|
155
|
+
render() {
|
|
156
|
+
return vue.createVNode("div", {
|
|
157
|
+
"class": this.ns.b(),
|
|
158
|
+
"ref": "signaturePadRef"
|
|
159
|
+
}, [vue.createVNode("div", {
|
|
160
|
+
"class": this.ns.e("container")
|
|
161
|
+
}, [vue.createVNode("canvas", {
|
|
162
|
+
"ref": "canvasRef"
|
|
163
|
+
}, null)])]);
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
|
|
167
|
+
exports.IBizSignaturePad = IBizSignaturePad;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-signature-pad{width:100%;height:100%}.ibiz-signature-pad__container{width:100%;height:100%;background-color:var(--ibiz-color-bg-1)}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var point = require('./point.cjs');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class Bezier {
|
|
7
|
+
/**
|
|
8
|
+
* 贝塞尔曲线构造函数
|
|
9
|
+
* @param startPoint 起始点
|
|
10
|
+
* @param control2 第二个控制点
|
|
11
|
+
* @param control1 第一个控制点
|
|
12
|
+
* @param endPoint 结束点
|
|
13
|
+
* @param startWidth 起始点宽度
|
|
14
|
+
* @param endWidth 结束点宽度
|
|
15
|
+
*/
|
|
16
|
+
constructor(startPoint, control2, control1, endPoint, startWidth, endWidth) {
|
|
17
|
+
this.startPoint = startPoint;
|
|
18
|
+
this.control2 = control2;
|
|
19
|
+
this.control1 = control1;
|
|
20
|
+
this.endPoint = endPoint;
|
|
21
|
+
this.startWidth = startWidth;
|
|
22
|
+
this.endWidth = endWidth;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* 从点数组创建贝塞尔曲线
|
|
26
|
+
* @param points 点数组,至少需要4个点来计算曲线
|
|
27
|
+
* @param widths 包含起点和终点宽度的对象
|
|
28
|
+
* @returns 新创建的贝塞尔曲线实例
|
|
29
|
+
*/
|
|
30
|
+
static fromPoints(points, widths) {
|
|
31
|
+
const c2 = this.calculateControlPoints(points[0], points[1], points[2]).c2;
|
|
32
|
+
const c3 = this.calculateControlPoints(points[1], points[2], points[3]).c1;
|
|
33
|
+
return new Bezier(points[1], c2, c3, points[2], widths.start, widths.end);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 计算贝塞尔曲线的控制点
|
|
37
|
+
* @param s1 第一个点
|
|
38
|
+
* @param s2 第二个点(中间点)
|
|
39
|
+
* @param s3 第三个点
|
|
40
|
+
* @returns 包含两个控制点的对象
|
|
41
|
+
*/
|
|
42
|
+
static calculateControlPoints(s1, s2, s3) {
|
|
43
|
+
const dx1 = s1.x - s2.x;
|
|
44
|
+
const dy1 = s1.y - s2.y;
|
|
45
|
+
const dx2 = s2.x - s3.x;
|
|
46
|
+
const dy2 = s2.y - s3.y;
|
|
47
|
+
const m1 = { x: (s1.x + s2.x) / 2, y: (s1.y + s2.y) / 2 };
|
|
48
|
+
const m2 = { x: (s2.x + s3.x) / 2, y: (s2.y + s3.y) / 2 };
|
|
49
|
+
const l1 = Math.sqrt(dx1 * dx1 + dy1 * dy1);
|
|
50
|
+
const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);
|
|
51
|
+
const dxm = m1.x - m2.x;
|
|
52
|
+
const dym = m1.y - m2.y;
|
|
53
|
+
const k = l1 + l2 === 0 ? 0 : l2 / (l1 + l2);
|
|
54
|
+
const cm = { x: m2.x + dxm * k, y: m2.y + dym * k };
|
|
55
|
+
const tx = s2.x - cm.x;
|
|
56
|
+
const ty = s2.y - cm.y;
|
|
57
|
+
return {
|
|
58
|
+
c1: new point.Point(m1.x + tx, m1.y + ty),
|
|
59
|
+
c2: new point.Point(m2.x + tx, m2.y + ty)
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 计算贝塞尔曲线的近似长度
|
|
64
|
+
* @returns 曲线的近似长度
|
|
65
|
+
*/
|
|
66
|
+
length() {
|
|
67
|
+
const steps = 10;
|
|
68
|
+
let length = 0;
|
|
69
|
+
let px;
|
|
70
|
+
let py;
|
|
71
|
+
for (let i = 0; i <= steps; i += 1) {
|
|
72
|
+
const t = i / steps;
|
|
73
|
+
const cx = this.point(
|
|
74
|
+
t,
|
|
75
|
+
this.startPoint.x,
|
|
76
|
+
this.control1.x,
|
|
77
|
+
this.control2.x,
|
|
78
|
+
this.endPoint.x
|
|
79
|
+
);
|
|
80
|
+
const cy = this.point(
|
|
81
|
+
t,
|
|
82
|
+
this.startPoint.y,
|
|
83
|
+
this.control1.y,
|
|
84
|
+
this.control2.y,
|
|
85
|
+
this.endPoint.y
|
|
86
|
+
);
|
|
87
|
+
if (i > 0) {
|
|
88
|
+
const xdiff = cx - px;
|
|
89
|
+
const ydiff = cy - py;
|
|
90
|
+
length += Math.sqrt(xdiff * xdiff + ydiff * ydiff);
|
|
91
|
+
}
|
|
92
|
+
px = cx;
|
|
93
|
+
py = cy;
|
|
94
|
+
}
|
|
95
|
+
return length;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* 计算三次贝塞尔曲线在参数t处的x或y坐标值
|
|
99
|
+
* @param t 参数t,范围0到1
|
|
100
|
+
* @param start 起始点的坐标值(x或y)
|
|
101
|
+
* @param c1 第一个控制点的坐标值(x或y)
|
|
102
|
+
* @param c2 第二个控制点的坐标值(x或y)
|
|
103
|
+
* @param end 结束点的坐标值(x或y)
|
|
104
|
+
* @returns 计算得到的坐标值
|
|
105
|
+
*/
|
|
106
|
+
point(t, start, c1, c2, end) {
|
|
107
|
+
return start * (1 - t) * (1 - t) * (1 - t) + 3 * c1 * (1 - t) * (1 - t) * t + 3 * c2 * (1 - t) * t * t + end * t * t * t;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
exports.Bezier = Bezier;
|