@ibiz-template/vue3-util 0.7.41-alpha.5 → 0.7.41-alpha.52
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.map +1 -1
- package/es/common/control-base/control-base.mjs +35 -4
- 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 +15 -3
- 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 +18 -3
- 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 +33 -2
- 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 +14 -2
- 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 +18 -3
- 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
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { IBasicPoint, Point } from './point';
|
|
2
|
+
/**
|
|
3
|
+
* @description 用于创建和计算三次贝塞尔曲线,支持从点数组生成曲线实例
|
|
4
|
+
* @export
|
|
5
|
+
* @class Bezier
|
|
6
|
+
*/
|
|
7
|
+
export declare class Bezier {
|
|
8
|
+
startPoint: Point;
|
|
9
|
+
control2: IBasicPoint;
|
|
10
|
+
control1: IBasicPoint;
|
|
11
|
+
endPoint: Point;
|
|
12
|
+
startWidth: number;
|
|
13
|
+
endWidth: number;
|
|
14
|
+
/**
|
|
15
|
+
* 从点数组创建贝塞尔曲线
|
|
16
|
+
* @param points 点数组,至少需要4个点来计算曲线
|
|
17
|
+
* @param widths 包含起点和终点宽度的对象
|
|
18
|
+
* @returns 新创建的贝塞尔曲线实例
|
|
19
|
+
*/
|
|
20
|
+
static fromPoints(points: Point[], widths: {
|
|
21
|
+
start: number;
|
|
22
|
+
end: number;
|
|
23
|
+
}): Bezier;
|
|
24
|
+
/**
|
|
25
|
+
* 计算贝塞尔曲线的控制点
|
|
26
|
+
* @param s1 第一个点
|
|
27
|
+
* @param s2 第二个点(中间点)
|
|
28
|
+
* @param s3 第三个点
|
|
29
|
+
* @returns 包含两个控制点的对象
|
|
30
|
+
*/
|
|
31
|
+
private static calculateControlPoints;
|
|
32
|
+
/**
|
|
33
|
+
* 贝塞尔曲线构造函数
|
|
34
|
+
* @param startPoint 起始点
|
|
35
|
+
* @param control2 第二个控制点
|
|
36
|
+
* @param control1 第一个控制点
|
|
37
|
+
* @param endPoint 结束点
|
|
38
|
+
* @param startWidth 起始点宽度
|
|
39
|
+
* @param endWidth 结束点宽度
|
|
40
|
+
*/
|
|
41
|
+
constructor(startPoint: Point, control2: IBasicPoint, control1: IBasicPoint, endPoint: Point, startWidth: number, endWidth: number);
|
|
42
|
+
/**
|
|
43
|
+
* 计算贝塞尔曲线的近似长度
|
|
44
|
+
* @returns 曲线的近似长度
|
|
45
|
+
*/
|
|
46
|
+
length(): number;
|
|
47
|
+
/**
|
|
48
|
+
* 计算三次贝塞尔曲线在参数t处的x或y坐标值
|
|
49
|
+
* @param t 参数t,范围0到1
|
|
50
|
+
* @param start 起始点的坐标值(x或y)
|
|
51
|
+
* @param c1 第一个控制点的坐标值(x或y)
|
|
52
|
+
* @param c2 第二个控制点的坐标值(x或y)
|
|
53
|
+
* @param end 结束点的坐标值(x或y)
|
|
54
|
+
* @returns 计算得到的坐标值
|
|
55
|
+
*/
|
|
56
|
+
private point;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=bezier.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bezier.d.ts","sourceRoot":"","sources":["../../../../src/common/signature-pad/util/bezier.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAE7C;;;;GAIG;AACH,qBAAa,MAAM;IA6ER,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,KAAK;IACf,UAAU,EAAE,MAAM;IAClB,QAAQ,EAAE,MAAM;IAjFzB;;;;;OAKG;WACW,UAAU,CACtB,MAAM,EAAE,KAAK,EAAE,EACf,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,GACrC,MAAM;IAST;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAyCrC;;;;;;;;OAQG;gBAEM,UAAU,EAAE,KAAK,EACjB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,WAAW,EACrB,QAAQ,EAAE,KAAK,EACf,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM;IAGzB;;;OAGG;IACI,MAAM,IAAI,MAAM;IA0CvB;;;;;;;;OAQG;IACH,OAAO,CAAC,KAAK;CAcd"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { Point } from './point.mjs';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
class Bezier {
|
|
5
|
+
/**
|
|
6
|
+
* 贝塞尔曲线构造函数
|
|
7
|
+
* @param startPoint 起始点
|
|
8
|
+
* @param control2 第二个控制点
|
|
9
|
+
* @param control1 第一个控制点
|
|
10
|
+
* @param endPoint 结束点
|
|
11
|
+
* @param startWidth 起始点宽度
|
|
12
|
+
* @param endWidth 结束点宽度
|
|
13
|
+
*/
|
|
14
|
+
constructor(startPoint, control2, control1, endPoint, startWidth, endWidth) {
|
|
15
|
+
this.startPoint = startPoint;
|
|
16
|
+
this.control2 = control2;
|
|
17
|
+
this.control1 = control1;
|
|
18
|
+
this.endPoint = endPoint;
|
|
19
|
+
this.startWidth = startWidth;
|
|
20
|
+
this.endWidth = endWidth;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 从点数组创建贝塞尔曲线
|
|
24
|
+
* @param points 点数组,至少需要4个点来计算曲线
|
|
25
|
+
* @param widths 包含起点和终点宽度的对象
|
|
26
|
+
* @returns 新创建的贝塞尔曲线实例
|
|
27
|
+
*/
|
|
28
|
+
static fromPoints(points, widths) {
|
|
29
|
+
const c2 = this.calculateControlPoints(points[0], points[1], points[2]).c2;
|
|
30
|
+
const c3 = this.calculateControlPoints(points[1], points[2], points[3]).c1;
|
|
31
|
+
return new Bezier(points[1], c2, c3, points[2], widths.start, widths.end);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 计算贝塞尔曲线的控制点
|
|
35
|
+
* @param s1 第一个点
|
|
36
|
+
* @param s2 第二个点(中间点)
|
|
37
|
+
* @param s3 第三个点
|
|
38
|
+
* @returns 包含两个控制点的对象
|
|
39
|
+
*/
|
|
40
|
+
static calculateControlPoints(s1, s2, s3) {
|
|
41
|
+
const dx1 = s1.x - s2.x;
|
|
42
|
+
const dy1 = s1.y - s2.y;
|
|
43
|
+
const dx2 = s2.x - s3.x;
|
|
44
|
+
const dy2 = s2.y - s3.y;
|
|
45
|
+
const m1 = { x: (s1.x + s2.x) / 2, y: (s1.y + s2.y) / 2 };
|
|
46
|
+
const m2 = { x: (s2.x + s3.x) / 2, y: (s2.y + s3.y) / 2 };
|
|
47
|
+
const l1 = Math.sqrt(dx1 * dx1 + dy1 * dy1);
|
|
48
|
+
const l2 = Math.sqrt(dx2 * dx2 + dy2 * dy2);
|
|
49
|
+
const dxm = m1.x - m2.x;
|
|
50
|
+
const dym = m1.y - m2.y;
|
|
51
|
+
const k = l1 + l2 === 0 ? 0 : l2 / (l1 + l2);
|
|
52
|
+
const cm = { x: m2.x + dxm * k, y: m2.y + dym * k };
|
|
53
|
+
const tx = s2.x - cm.x;
|
|
54
|
+
const ty = s2.y - cm.y;
|
|
55
|
+
return {
|
|
56
|
+
c1: new Point(m1.x + tx, m1.y + ty),
|
|
57
|
+
c2: new Point(m2.x + tx, m2.y + ty)
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* 计算贝塞尔曲线的近似长度
|
|
62
|
+
* @returns 曲线的近似长度
|
|
63
|
+
*/
|
|
64
|
+
length() {
|
|
65
|
+
const steps = 10;
|
|
66
|
+
let length = 0;
|
|
67
|
+
let px;
|
|
68
|
+
let py;
|
|
69
|
+
for (let i = 0; i <= steps; i += 1) {
|
|
70
|
+
const t = i / steps;
|
|
71
|
+
const cx = this.point(
|
|
72
|
+
t,
|
|
73
|
+
this.startPoint.x,
|
|
74
|
+
this.control1.x,
|
|
75
|
+
this.control2.x,
|
|
76
|
+
this.endPoint.x
|
|
77
|
+
);
|
|
78
|
+
const cy = this.point(
|
|
79
|
+
t,
|
|
80
|
+
this.startPoint.y,
|
|
81
|
+
this.control1.y,
|
|
82
|
+
this.control2.y,
|
|
83
|
+
this.endPoint.y
|
|
84
|
+
);
|
|
85
|
+
if (i > 0) {
|
|
86
|
+
const xdiff = cx - px;
|
|
87
|
+
const ydiff = cy - py;
|
|
88
|
+
length += Math.sqrt(xdiff * xdiff + ydiff * ydiff);
|
|
89
|
+
}
|
|
90
|
+
px = cx;
|
|
91
|
+
py = cy;
|
|
92
|
+
}
|
|
93
|
+
return length;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* 计算三次贝塞尔曲线在参数t处的x或y坐标值
|
|
97
|
+
* @param t 参数t,范围0到1
|
|
98
|
+
* @param start 起始点的坐标值(x或y)
|
|
99
|
+
* @param c1 第一个控制点的坐标值(x或y)
|
|
100
|
+
* @param c2 第二个控制点的坐标值(x或y)
|
|
101
|
+
* @param end 结束点的坐标值(x或y)
|
|
102
|
+
* @returns 计算得到的坐标值
|
|
103
|
+
*/
|
|
104
|
+
point(t, start, c1, c2, end) {
|
|
105
|
+
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;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { Bezier };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @description 基础点接口,定义了点的基本属性
|
|
3
|
+
* @export
|
|
4
|
+
* @interface IBasicPoint
|
|
5
|
+
*/
|
|
6
|
+
export interface IBasicPoint {
|
|
7
|
+
/** X坐标 */
|
|
8
|
+
x: number;
|
|
9
|
+
/** Y坐标 */
|
|
10
|
+
y: number;
|
|
11
|
+
/** 压力值(例如绘画时的笔触压力) */
|
|
12
|
+
pressure: number;
|
|
13
|
+
/** 时间戳(记录点创建的时间) */
|
|
14
|
+
time: number;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* @description 点类,实现了BasicPoint接口,提供了点的常用操作方法
|
|
18
|
+
* @export
|
|
19
|
+
* @class Point
|
|
20
|
+
* @implements {IBasicPoint}
|
|
21
|
+
*/
|
|
22
|
+
export declare class Point implements IBasicPoint {
|
|
23
|
+
x: number;
|
|
24
|
+
y: number;
|
|
25
|
+
pressure: number;
|
|
26
|
+
time: number;
|
|
27
|
+
/**
|
|
28
|
+
* 构造函数,创建一个Point实例
|
|
29
|
+
* @param x X坐标
|
|
30
|
+
* @param y Y坐标
|
|
31
|
+
* @param pressure 压力值,可选,默认为0
|
|
32
|
+
* @param time 时间戳,可选,默认为当前时间
|
|
33
|
+
* @throws 如果x或y是NaN,抛出错误
|
|
34
|
+
*/
|
|
35
|
+
constructor(x: number, y: number, pressure?: number, time?: number);
|
|
36
|
+
/**
|
|
37
|
+
* 计算当前点到另一个点的直线距离
|
|
38
|
+
* @param start 起始点(另一个点)
|
|
39
|
+
* @returns 两点之间的距离
|
|
40
|
+
*/
|
|
41
|
+
distanceTo(start: IBasicPoint): number;
|
|
42
|
+
/**
|
|
43
|
+
* 判断当前点是否与另一个点相等
|
|
44
|
+
* @param other 要比较的另一个点
|
|
45
|
+
* @returns 如果所有属性都相等则返回true,否则返回false
|
|
46
|
+
*/
|
|
47
|
+
equals(other: IBasicPoint): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* 计算从起始点到当前点的移动速度
|
|
50
|
+
* @param start 起始点
|
|
51
|
+
* @returns 速度值(距离/时间),如果时间相同则返回0
|
|
52
|
+
*/
|
|
53
|
+
velocityFrom(start: IBasicPoint): number;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=point.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"point.d.ts","sourceRoot":"","sources":["../../../../src/common/signature-pad/util/point.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,WAAW;IAC1B,UAAU;IACV,CAAC,EAAE,MAAM,CAAC;IACV,UAAU;IACV,CAAC,EAAE,MAAM,CAAC;IACV,sBAAsB;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB;IACpB,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;GAKG;AACH,qBAAa,KAAM,YAAW,WAAW;IAEhC,CAAC,EAAE,MAAM,CAAC;IAGV,CAAC,EAAE,MAAM,CAAC;IAGV,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAEpB;;;;;;;OAOG;gBACS,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM;IAiBlE;;;;OAIG;IACI,UAAU,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM;IAK7C;;;;OAIG;IACI,MAAM,CAAC,KAAK,EAAE,WAAW,GAAG,OAAO;IAS1C;;;;OAIG;IACI,YAAY,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM;CAMhD"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
class Point {
|
|
3
|
+
/**
|
|
4
|
+
* 构造函数,创建一个Point实例
|
|
5
|
+
* @param x X坐标
|
|
6
|
+
* @param y Y坐标
|
|
7
|
+
* @param pressure 压力值,可选,默认为0
|
|
8
|
+
* @param time 时间戳,可选,默认为当前时间
|
|
9
|
+
* @throws 如果x或y是NaN,抛出错误
|
|
10
|
+
*/
|
|
11
|
+
constructor(x, y, pressure, time) {
|
|
12
|
+
if (Number.isNaN(x) || Number.isNaN(y)) {
|
|
13
|
+
throw new Error(
|
|
14
|
+
ibiz.i18n.t("vue3Util.common.invalidPointCoordinates", {
|
|
15
|
+
x,
|
|
16
|
+
y
|
|
17
|
+
})
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
this.x = +x;
|
|
21
|
+
this.y = +y;
|
|
22
|
+
this.pressure = pressure || 0;
|
|
23
|
+
this.time = time || Date.now();
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* 计算当前点到另一个点的直线距离
|
|
27
|
+
* @param start 起始点(另一个点)
|
|
28
|
+
* @returns 两点之间的距离
|
|
29
|
+
*/
|
|
30
|
+
distanceTo(start) {
|
|
31
|
+
return Math.sqrt((this.x - start.x) ** 2 + (this.y - start.y) ** 2);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 判断当前点是否与另一个点相等
|
|
35
|
+
* @param other 要比较的另一个点
|
|
36
|
+
* @returns 如果所有属性都相等则返回true,否则返回false
|
|
37
|
+
*/
|
|
38
|
+
equals(other) {
|
|
39
|
+
return this.x === other.x && this.y === other.y && this.pressure === other.pressure && this.time === other.time;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* 计算从起始点到当前点的移动速度
|
|
43
|
+
* @param start 起始点
|
|
44
|
+
* @returns 速度值(距离/时间),如果时间相同则返回0
|
|
45
|
+
*/
|
|
46
|
+
velocityFrom(start) {
|
|
47
|
+
return this.time !== start.time ? this.distanceTo(start) / (this.time - start.time) : 0;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { Point };
|