bkui-vue 0.0.1-beta.46 → 0.0.1-beta.460
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/License.txt +14 -0
- package/dist/index.cjs.js +364 -36
- package/dist/index.esm.js +30105 -19372
- package/dist/index.umd.js +364 -36
- package/dist/locale/en.esm.js +2 -0
- package/dist/locale/en.esm.js.map +1 -0
- package/dist/locale/en.umd.js +2 -0
- package/dist/locale/en.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js +2 -0
- package/dist/locale/zh-cn.esm.js.map +1 -0
- package/dist/locale/zh-cn.umd.js +2 -0
- package/dist/locale/zh-cn.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +125 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +9 -3
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.less +29 -20
- package/lib/alert/alert.variable.css +41 -7
- package/lib/alert/index.d.ts +11 -11
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +1 -1
- package/lib/animate-number/index.d.ts +4 -4
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +3 -3
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +40 -4
- package/lib/backtop/index.d.ts +10 -10
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +7 -10
- package/lib/badge/badge.d.ts +28 -7
- package/lib/badge/badge.less +9 -11
- package/lib/badge/badge.variable.css +39 -14
- package/lib/badge/index.d.ts +68 -18
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +4 -2
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.variable.css +88 -9
- package/lib/breadcrumb/index.d.ts +4 -2
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.css +85 -50
- package/lib/button/button.d.ts +44 -24
- package/lib/button/button.less +72 -42
- package/lib/button/button.variable.css +117 -54
- package/lib/button/index.d.ts +74 -44
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +97 -2
- package/lib/card/card.d.ts +47 -6
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +133 -10
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +102 -0
- package/lib/cascader/cascader.css +316 -0
- package/lib/cascader/cascader.d.ts +354 -0
- package/lib/cascader/cascader.less +283 -0
- package/lib/cascader/cascader.variable.css +438 -0
- package/lib/cascader/index.d.ts +988 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +51 -0
- package/lib/cascader/node.d.ts +31 -0
- package/lib/cascader/store.d.ts +27 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +51 -11
- package/lib/checkbox/checkbox.d.ts +36 -24
- package/lib/checkbox/checkbox.less +85 -32
- package/lib/checkbox/checkbox.variable.css +83 -15
- package/lib/checkbox/common.d.ts +4 -3
- package/lib/checkbox/index.d.ts +70 -38
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +2 -6
- package/lib/code-diff/code-diff.css +27 -7
- package/lib/code-diff/code-diff.d.ts +8 -8
- package/lib/code-diff/code-diff.less +42 -7
- package/lib/code-diff/code-diff.variable.css +59 -11
- package/lib/code-diff/index.d.ts +11 -11
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse-panel.d.ts +103 -0
- package/lib/collapse/collapse.css +69 -14
- package/lib/collapse/collapse.d.ts +66 -52
- package/lib/collapse/collapse.less +112 -30
- package/lib/collapse/collapse.variable.css +191 -14
- package/lib/collapse/index.d.ts +266 -20
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +131 -0
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/collapse-transition/collapse-transition.css +93 -0
- package/lib/collapse-transition/collapse-transition.d.ts +15 -0
- package/lib/collapse-transition/collapse-transition.less +111 -0
- package/lib/collapse-transition/collapse-transition.variable.css +215 -0
- package/lib/collapse-transition/index.d.ts +2 -0
- package/lib/collapse-transition/index.js +1 -0
- package/lib/color-picker/color-picker.css +275 -0
- package/lib/color-picker/color-picker.d.ts +144 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +397 -0
- package/lib/color-picker/components/color-input.d.ts +42 -0
- package/lib/color-picker/components/hue-slider.d.ts +41 -0
- package/lib/color-picker/components/input-container.d.ts +42 -0
- package/lib/color-picker/components/recommend-colors.d.ts +51 -0
- package/lib/color-picker/components/saturation-panel.d.ts +41 -0
- package/lib/color-picker/index.d.ts +254 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +31 -8
- package/lib/components.js +1 -0
- package/lib/config-provider/config-provider.css +0 -0
- package/lib/config-provider/config-provider.d.ts +402 -0
- package/lib/config-provider/config-provider.less +1 -0
- package/lib/config-provider/config-provider.variable.css +122 -0
- package/lib/config-provider/index.d.ts +609 -0
- package/lib/config-provider/index.js +1 -0
- package/lib/config-provider/token.d.ts +128 -0
- package/lib/config-provider/use-global-config.d.ts +5 -0
- package/lib/config-provider/use-locale.d.ts +3 -0
- package/lib/config-provider/use-prefix.d.ts +9 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +213 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/interface.d.ts +7 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/base/confirm.d.ts +74 -0
- package/lib/date-picker/base/date-table.d.ts +96 -0
- package/lib/date-picker/base/month-table.d.ts +117 -0
- package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
- package/lib/date-picker/base/time-spinner.d.ts +170 -0
- package/lib/date-picker/base/year-table.d.ts +117 -0
- package/lib/date-picker/date-picker.css +28 -1
- package/lib/date-picker/date-picker.d.ts +49 -20
- package/lib/date-picker/date-picker.less +106 -74
- package/lib/date-picker/date-picker.variable.css +60 -5
- package/lib/date-picker/index.d.ts +121 -54
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +11 -1
- package/lib/date-picker/panel/date-range.d.ts +328 -0
- package/lib/date-picker/panel/date.d.ts +206 -0
- package/lib/date-picker/panel/time-range.d.ts +489 -0
- package/lib/date-picker/panel/time.d.ts +448 -0
- package/lib/date-picker/props.d.ts +55 -5
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -2
- package/lib/dialog/dialog.css +135 -26
- package/lib/dialog/dialog.d.ts +218 -103
- package/lib/dialog/dialog.less +99 -41
- package/lib/dialog/dialog.variable.css +257 -26
- package/lib/dialog/index.d.ts +488 -224
- package/lib/dialog/index.js +1 -1
- package/lib/dialog/props.d.ts +122 -0
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +2 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +15 -15
- package/lib/divider/divider.variable.css +32 -4
- package/lib/divider/index.d.ts +34 -34
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +6 -6
- package/lib/dropdown/dropdown.css +13 -7
- package/lib/dropdown/dropdown.d.ts +46 -14
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +45 -11
- package/lib/dropdown/index.d.ts +99 -35
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +31 -11
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +72 -18
- package/lib/exception/index.d.ts +43 -26
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -4
- package/lib/fixed-navbar/index.d.ts +40 -5
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +22 -7
- package/lib/form/form.css +103 -15
- package/lib/form/form.d.ts +48 -14
- package/lib/form/form.less +152 -46
- package/lib/form/form.variable.css +225 -15
- package/lib/form/index.d.ts +122 -35
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +11 -8
- package/lib/form/utils.d.ts +2 -0
- package/lib/form/validator.d.ts +1 -0
- package/lib/hooks.d.ts +1 -0
- package/lib/hooks.js +1 -0
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.d.ts +4 -0
- package/lib/icon/copy-shape.js +1 -0
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/fix-line.d.ts +4 -0
- package/lib/icon/fix-line.js +1 -0
- package/lib/icon/fix-shape.d.ts +4 -0
- package/lib/icon/fix-shape.js +1 -0
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-error.js +1 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +83 -54
- package/lib/icon/index.js +1 -0
- package/lib/icon/info-line.js +1 -0
- package/lib/icon/info.js +1 -0
- package/lib/icon/left-shape.js +1 -0
- package/lib/icon/left-turn-line.d.ts +4 -0
- package/lib/icon/left-turn-line.js +1 -0
- package/lib/icon/narrow-line.d.ts +4 -0
- package/lib/icon/narrow-line.js +1 -0
- package/lib/icon/original.d.ts +4 -0
- package/lib/icon/original.js +1 -0
- package/lib/icon/pdf-fill.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.js +1 -0
- package/lib/icon/plus.js +1 -0
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.js +1 -0
- package/lib/icon/right-shape.js +1 -0
- package/lib/icon/right-turn-line.d.ts +4 -0
- package/lib/icon/right-turn-line.js +1 -0
- package/lib/icon/search.js +1 -0
- package/lib/icon/share.js +1 -0
- package/lib/icon/spinner.js +1 -0
- package/lib/icon/success.js +1 -0
- package/lib/icon/switcher-loading.js +1 -0
- package/lib/icon/text-file.js +1 -0
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/transfer.d.ts +4 -0
- package/lib/icon/transfer.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -0
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -0
- package/lib/icon/up-shape.js +1 -0
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.js +1 -0
- package/lib/icon/weixin-pro.d.ts +4 -0
- package/lib/icon/weixin-pro.js +1 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/image/image-viewer.css +142 -0
- package/lib/image/image-viewer.d.ts +73 -0
- package/lib/image/image-viewer.less +168 -0
- package/lib/image/image-viewer.variable.css +142 -0
- package/lib/image/image.css +37 -0
- package/lib/image/image.d.ts +93 -0
- package/lib/image/image.less +44 -0
- package/lib/image/image.variable.css +37 -0
- package/lib/image/index.d.ts +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +3 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +7 -0
- package/lib/info-box/index.js +1 -0
- package/lib/info-box/info-box.css +37 -0
- package/lib/info-box/info-box.d.ts +29 -0
- package/lib/info-box/info-box.less +51 -0
- package/lib/info-box/info-box.variable.css +159 -0
- package/lib/input/index.d.ts +175 -90
- package/lib/input/index.js +1 -0
- package/lib/input/input.css +183 -19
- package/lib/input/input.d.ts +119 -36
- package/lib/input/input.less +112 -18
- package/lib/input/input.variable.css +246 -55
- package/lib/link/index.d.ts +29 -21
- package/lib/link/index.js +1 -0
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +10 -8
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +44 -16
- package/lib/loading/directive.d.ts +14 -0
- package/lib/loading/index.d.ts +135 -19
- package/lib/loading/index.js +1 -0
- package/lib/loading/loading.css +86 -33
- package/lib/loading/loading.d.ts +94 -12
- package/lib/loading/loading.less +27 -23
- package/lib/loading/loading.variable.css +134 -53
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/index.js +1 -0
- package/lib/locale/lang/en.d.ts +126 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/menu/index.d.ts +16 -24
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +7 -16
- package/lib/menu/menu.variable.css +101 -22
- package/lib/menu/submenu.variable.css +32 -4
- package/lib/message/index.js +2 -0
- package/lib/message/index.js.LICENSE.txt +6 -0
- package/lib/message/message.css +170 -6
- package/lib/message/message.less +222 -7
- package/lib/message/message.variable.css +202 -10
- package/lib/message/messageConstructor.d.ts +134 -25
- package/lib/modal/index.d.ts +399 -162
- package/lib/modal/index.js +1 -0
- package/lib/modal/modal.css +52 -10
- package/lib/modal/modal.d.ts +151 -63
- package/lib/modal/modal.less +36 -25
- package/lib/modal/modal.variable.css +174 -10
- package/lib/modal/props.mixin.d.ts +63 -28
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +12 -3
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +33 -5
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +25 -5
- package/lib/notify/notify.less +29 -6
- package/lib/notify/notify.variable.css +57 -9
- package/lib/notify/notifyConstructor.d.ts +62 -21
- package/lib/overflow-title/components/overflow-title.d.ts +57 -0
- package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
- package/lib/overflow-title/index.d.ts +170 -0
- package/lib/overflow-title/index.js +1 -0
- package/lib/overflow-title/overflow.css +11 -0
- package/lib/overflow-title/overflow.less +13 -0
- package/lib/overflow-title/overflow.variable.css +11 -0
- package/lib/overflow-title/props.d.ts +43 -0
- package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
- package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
- package/lib/pagination/index.d.ts +35 -20
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +18 -8
- package/lib/pagination/pagination.less +59 -30
- package/lib/pagination/pagination.variable.css +86 -32
- package/lib/pagination/use-limit.d.ts +3 -1
- package/lib/pagination/use-total.d.ts +3 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/pop-confirm/index.d.ts +246 -0
- package/lib/pop-confirm/index.js +1 -0
- package/lib/pop-confirm/pop-confirm.css +28 -0
- package/lib/pop-confirm/pop-confirm.d.ts +95 -0
- package/lib/pop-confirm/pop-confirm.less +34 -0
- package/lib/pop-confirm/pop-confirm.variable.css +150 -0
- package/lib/pop-confirm/props.d.ts +67 -0
- package/lib/popover/arrow.d.ts +2 -0
- package/lib/popover/const.d.ts +16 -0
- package/lib/popover/content.d.ts +43 -0
- package/lib/popover/index.d.ts +484 -108
- package/lib/popover/index.js +1 -0
- package/lib/popover/plugin-popover.d.ts +12 -0
- package/lib/popover/popover.css +10 -50
- package/lib/popover/popover.d.ts +213 -49
- package/lib/popover/popover.less +19 -66
- package/lib/popover/popover.variable.css +42 -54
- package/lib/popover/props.d.ts +103 -35
- package/lib/popover/reference.d.ts +2 -0
- package/lib/popover/root.d.ts +16 -0
- package/lib/popover/use-floating.d.ts +34 -0
- package/lib/popover/use-platform.d.ts +30 -0
- package/lib/popover/use-popover-init.d.ts +23 -0
- package/lib/popover/use-popper-id.d.ts +6 -0
- package/lib/popover/utils.d.ts +8 -0
- package/lib/popover2/index.d.ts +44 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/popover.d.ts +2 -0
- package/lib/preset.d.ts +264 -2
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +9 -9
- package/lib/process/index.js +1 -0
- package/lib/process/process.css +22 -0
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.less +30 -2
- package/lib/process/process.variable.css +54 -4
- package/lib/progress/index.d.ts +34 -34
- package/lib/progress/index.js +1 -0
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +13 -13
- package/lib/progress/progress.variable.css +87 -8
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +36 -18
- package/lib/radio/index.js +1 -0
- package/lib/radio/radio-button.d.ts +7 -8
- package/lib/radio/radio-group.d.ts +26 -0
- package/lib/radio/radio.css +137 -66
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +262 -173
- package/lib/radio/radio.variable.css +172 -73
- package/lib/radio/type.d.ts +9 -4
- package/lib/rate/index.d.ts +28 -5
- package/lib/rate/index.js +1 -0
- package/lib/rate/rate.d.ts +13 -2
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +21 -21
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +6 -15
- package/lib/resize-layout/resize-layout.d.ts +8 -8
- package/lib/resize-layout/resize-layout.less +10 -19
- package/lib/resize-layout/resize-layout.variable.css +38 -19
- package/lib/search-select/index.d.ts +891 -0
- package/lib/search-select/index.js +1 -0
- package/lib/search-select/input.d.ts +101 -0
- package/lib/search-select/menu.d.ts +77 -0
- package/lib/search-select/search-select.css +427 -0
- package/lib/search-select/search-select.d.ts +361 -0
- package/lib/search-select/search-select.less +384 -0
- package/lib/search-select/search-select.variable.css +549 -0
- package/lib/search-select/selected.d.ts +155 -0
- package/lib/search-select/utils.d.ts +88 -0
- package/lib/select/common.d.ts +5 -12
- package/lib/select/index.d.ts +1831 -690
- package/lib/select/index.js +1 -0
- package/lib/select/option.d.ts +20 -4
- package/lib/select/optionGroup.d.ts +1 -1
- package/lib/select/select.css +209 -113
- package/lib/select/select.d.ts +722 -147
- package/lib/select/select.less +342 -197
- package/lib/select/select.variable.css +241 -117
- package/lib/select/selectTagInput.d.ts +94 -0
- package/lib/select/type.d.ts +23 -13
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/helper.d.ts +9 -0
- package/lib/shared/hooks/use-form-item.d.ts +2 -0
- package/lib/shared/hooks/use-form.d.ts +2 -0
- package/lib/shared/index.d.ts +32 -7
- package/lib/shared/index.js +1 -0
- package/lib/shared/mask-manager.d.ts +19 -5
- package/lib/shared/pop-manager.d.ts +16 -5
- package/lib/shared/popover.d.ts +6 -2
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +19 -0
- package/lib/shared/vue-types.d.ts +114 -7
- package/lib/sideslider/index.d.ts +290 -138
- package/lib/sideslider/index.js +1 -0
- package/lib/sideslider/sideslider.css +58 -11
- package/lib/sideslider/sideslider.d.ts +135 -64
- package/lib/sideslider/sideslider.less +75 -14
- package/lib/sideslider/sideslider.variable.css +90 -15
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -0
- package/lib/slider/slider-button.d.ts +2 -1
- package/lib/slider/slider.d.ts +4 -4
- package/lib/slider/slider.variable.css +32 -4
- package/lib/steps/index.d.ts +55 -55
- package/lib/steps/index.js +1 -0
- package/lib/steps/steps.css +15 -3
- package/lib/steps/steps.d.ts +33 -33
- package/lib/steps/steps.less +24 -3
- package/lib/steps/steps.variable.css +47 -7
- package/lib/styles/index.d.ts +10 -1
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +51 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +51 -0
- package/lib/styles/mixins/popper.css +1 -1
- package/lib/styles/mixins/popper.less +12 -11
- package/lib/styles/mixins/popper.variable.css +123 -1
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +139 -0
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -2
- package/lib/styles/reset.variable.css +36 -0
- package/lib/styles/themes/themes.less +42 -4
- package/lib/swiper/index.js +1 -0
- package/lib/switcher/index.d.ts +42 -30
- package/lib/switcher/index.js +1 -0
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +19 -13
- package/lib/switcher/switcher.less +3 -26
- package/lib/switcher/switcher.variable.css +106 -27
- package/lib/tab/index.d.ts +122 -68
- package/lib/tab/index.js +1 -0
- package/lib/tab/props.d.ts +93 -41
- package/lib/tab/tab-nav.d.ts +50 -14
- package/lib/tab/tab-panel.d.ts +15 -8
- package/lib/tab/tab.css +151 -55
- package/lib/tab/tab.d.ts +42 -21
- package/lib/tab/tab.less +179 -86
- package/lib/tab/tab.variable.css +183 -59
- package/lib/table/cache.d.ts +6 -0
- package/lib/table/components/index.d.ts +3 -0
- package/lib/table/components/table-cell.d.ts +51 -0
- package/lib/table/components/table-column.d.ts +299 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +128 -1
- package/lib/table/index.d.ts +1405 -51
- package/lib/table/index.js +1 -0
- package/lib/table/plugins/body-empty.d.ts +36 -0
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/common.d.ts +6 -0
- package/lib/table/plugins/head-filter.css +30 -14
- package/lib/table/plugins/head-filter.d.ts +26 -0
- package/lib/table/plugins/head-filter.less +79 -52
- package/lib/table/plugins/head-filter.variable.css +62 -18
- package/lib/table/plugins/head-sort.css +7 -3
- package/lib/table/plugins/head-sort.d.ts +29 -0
- package/lib/table/plugins/head-sort.less +8 -4
- package/lib/table/plugins/head-sort.variable.css +39 -7
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +147 -0
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +181 -0
- package/lib/table/plugins/settings.variable.css +269 -0
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +15 -0
- package/lib/table/plugins/use-fixed-column.d.ts +26 -0
- package/lib/table/plugins/use-pagination.d.ts +16 -0
- package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
- package/lib/table/props.d.ts +359 -11
- package/lib/table/render.d.ts +46 -18
- package/lib/table/table.css +1251 -16
- package/lib/table/table.d.ts +270 -20
- package/lib/table/table.less +311 -18
- package/lib/table/table.variable.css +1293 -30
- package/lib/table/use-column.d.ts +12 -0
- package/lib/table/use-common.d.ts +113 -0
- package/lib/table/utils.d.ts +51 -12
- package/lib/table-column/index.d.ts +790 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +29 -29
- package/lib/tag/index.js +1 -0
- package/lib/tag/tag.css +46 -13
- package/lib/tag/tag.d.ts +12 -12
- package/lib/tag/tag.less +46 -10
- package/lib/tag/tag.variable.css +78 -17
- package/lib/tag-input/common.d.ts +13 -1
- package/lib/tag-input/index.d.ts +1406 -1
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +0 -3
- package/lib/tag-input/tag-input.css +23 -26
- package/lib/tag-input/tag-input.d.ts +302 -43
- package/lib/tag-input/tag-input.less +102 -104
- package/lib/tag-input/tag-input.variable.css +55 -30
- package/lib/tag-input/tag-props.d.ts +141 -7
- package/lib/tag-input/tag-render.d.ts +30 -4
- package/lib/time-picker/index.d.ts +904 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +337 -0
- package/lib/timeline/index.d.ts +6 -6
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +16 -9
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.less +22 -9
- package/lib/timeline/timeline.variable.css +48 -13
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +247 -150
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/props.d.ts +59 -0
- package/lib/transfer/transfer.css +153 -92
- package/lib/transfer/transfer.d.ts +101 -95
- package/lib/transfer/transfer.less +142 -112
- package/lib/transfer/transfer.variable.css +191 -102
- package/lib/tree/constant.d.ts +62 -0
- package/lib/tree/index.d.ts +402 -60
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +135 -0
- package/lib/tree/tree.css +181 -9
- package/lib/tree/tree.d.ts +183 -19
- package/lib/tree/tree.less +54 -3
- package/lib/tree/tree.variable.css +213 -13
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +12 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +42 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +4 -6
- package/lib/upload/index.d.ts +566 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +111 -0
- package/lib/upload/upload-list.d.ts +47 -0
- package/lib/upload/upload-trigger.d.ts +51 -0
- package/lib/upload/upload.css +427 -0
- package/lib/upload/upload.d.ts +246 -0
- package/lib/upload/upload.less +466 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +549 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +50 -4
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +15 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +0 -1
- package/lib/virtual-render/virtual-render.css +17 -17
- package/lib/virtual-render/virtual-render.d.ts +23 -1
- package/lib/virtual-render/virtual-render.less +2 -23
- package/lib/virtual-render/virtual-render.variable.css +139 -17
- package/lib/volar.components.d.ts +102 -0
- package/package.json +38 -17
- package/LICENSE.txt +0 -22
- package/lib/form/common.d.ts +0 -3
- package/lib/use-form.d.ts +0 -3
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["../shared","vue","vue-types"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("vue-types")):t(e["../shared"],e.vue,e["vue-types"]);for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,((e,t,n)=>(()=>{var o={8022:(e,t,n)=>{var o=n(4481),r=n(6426),i=r;i.v1=o,i.v4=r,e.exports=i},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var o=n||0,r=t;return[r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],"-",r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]],r[e[o++]]].join("")}},9157:e=>{var t="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(t){var n=new Uint8Array(16);e.exports=function(){return t(n),n}}else{var o=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),o[t]=e>>>((3&t)<<3)&255;return o}}},4481:(e,t,n)=>{var o,r,i=n(9157),l=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,s=t||[],f=(e=e||{}).node||o,d=void 0!==e.clockseq?e.clockseq:r;if(null==f||null==d){var p=i();null==f&&(f=o=[1|p[0],p[1],p[2],p[3],p[4],p[5]]),null==d&&(d=r=16383&(p[6]<<8|p[7]))}var v=void 0!==e.msecs?e.msecs:(new Date).getTime(),m=void 0!==e.nsecs?e.nsecs:u+1,h=v-a+(m-u)/1e4;if(h<0&&void 0===e.clockseq&&(d=d+1&16383),(h<0||v>a)&&void 0===e.nsecs&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=v,u=m,r=d;var y=(1e4*(268435455&(v+=122192928e5))+m)%4294967296;s[c++]=y>>>24&255,s[c++]=y>>>16&255,s[c++]=y>>>8&255,s[c++]=255&y;var g=v/4294967296*1e4&268435455;s[c++]=g>>>8&255,s[c++]=255&g,s[c++]=g>>>24&15|16,s[c++]=g>>>16&255,s[c++]=d>>>8|128,s[c++]=255&d;for(var b=0;b<6;++b)s[c+b]=f[b];return t||l(s)}},6426:(e,t,n)=>{var o=n(9157),r=n(8725);e.exports=function(e,t,n){var i=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var l=(e=e||{}).random||(e.rng||o)();if(l[6]=15&l[6]|64,l[8]=63&l[8]|128,t)for(var a=0;a<16;++a)t[i+a]=l[a];return t||r(l)}},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},210:e=>{"use strict";e.exports=n}},r={};function i(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,i),n.exports}i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};return(()=>{"use strict";i.r(l),i.d(l,{$bkPopover:()=>ze,PopoverProps:()=>D,default:()=>Ge});var e=i(4212),t=i(748);function n(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,l=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw l}}}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var r,a=new Map;function u(e,t){var n=[];return Array.isArray(t.arg)?n=t.arg:function(e){return"undefined"!=typeof Element&&e instanceof Element}(t.arg)&&n.push(t.arg),function(o,r){var i=t.instance.popperRef,l=o.target,a=null==r?void 0:r.target,u=!t||!t.instance,c=!l||!a,s=e.contains(l)||e.contains(a),f=e===l,d=n.length&&n.some((function(e){return null==e?void 0:e.contains(l)}))||n.length&&n.includes(a),p=i&&(i.contains(l)||i.contains(a));u||c||s||f||d||p||t.value(o,r)}}document.addEventListener("mousedown",(function(e){return r=e})),document.addEventListener("mouseup",(function(e){var t,o=n(a.values());try{for(o.s();!(t=o.n()).done;){var i,l=n(t.value);try{for(l.s();!(i=l.n()).done;)(0,i.value.documentHandler)(e,r)}catch(e){l.e(e)}finally{l.f()}}}catch(e){o.e(e)}finally{o.f()}}));var c={beforeMount:function(e,t){a.has(e)||a.set(e,[]),a.get(e).push({documentHandler:u(e,t),bindingFn:t.value})},updated:function(e,t){a.has(e)||a.set(e,[]);var n=a.get(e),o=n.findIndex((function(e){return e.bindingFn===t.oldValue})),r={documentHandler:u(e,t),bindingFn:t.value};o>=0?n.splice(o,1,r):n.push(r)},unmounted:function(e){a.delete(e)},install:function(e){e.directive("bkTooltips",c)}};const s=c,f=(0,t.defineComponent)({name:"PopArrow",render:function(){var n=(0,e.resolveClassName)("pop2-arrow");return(0,t.createVNode)("div",{class:n},null)}});function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p,v,m=function(){return!0};!function(e){e.SHOW="show",e.HIDE="hide",e.CLICK_OUTSIDE="clickoutside",e.CONTENT_MOUSEENTER="contentMouseenter",e.CONTENT_MOUSELEAVE="contentMouseleave",e.STOP_HIDE="stopHide"}(v||(v={}));var h=(d(p={},v.SHOW,m),d(p,v.HIDE,m),d(p,v.CLICK_OUTSIDE,m),d(p,v.CONTENT_MOUSEENTER,m),d(p,v.CONTENT_MOUSELEAVE,m),d(p,v.STOP_HIDE,m),p);const y=(0,t.defineComponent)({name:"PopContent",props:{width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),maxHeight:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),extCls:e.PropTypes.string.def("")},setup:function(e){var n=function(e){return/^\d+\.?\d*$/.test("".concat(e))?"".concat(e,"px"):e};return{style:(0,t.computed)((function(){return{width:n(e.width),height:n(e.height),maxHeight:n(e.maxHeight)}}))}},render:function(){var n,o,r,i,l,a,u=[(0,e.resolveClassName)("popover"),(0,e.resolveClassName)("pop2-content"),this.extCls];return(0,t.createVNode)("div",{class:u,tabindex:"-1",style:this.style},[null!==(r=null===(o=(n=this.$slots).arrow)||void 0===o?void 0:o.call(n))&&void 0!==r?r:"",null!==(a=null===(l=(i=this.$slots).default)||void 0===l?void 0:l.call(i))&&void 0!==a?a:""])}});var g,b,w,T,x,P,R,E,O,A,C,S,N,H,I=i(210);(0,I.createTypes)({}),function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(g||(g={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(b||(b={})),function(e){e.IF="if",e.SHOW="show"}(w||(w={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(T||(T={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(x||(x={})),function(e){e.AUTO="auto",e.AUTO_START="auto-start",e.AUTO_END="auto-end",e.TOP="top",e.RIGHT="right",e.BOTTOM="bottom",e.LEFT="left",e.TOP_START="top-start",e.TOP_END="top-end",e.BOTTOM_START="bottom-start",e.BOTTOM_END="bottom-end",e.RIGHT_START="right-start",e.RIGHT_END="right-end",e.LEFT_START="left-start",e.LEFT_END="left-end"}(P||(P={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(R||(R={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(E||(E={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(O||(O={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(A||(A={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(C||(C={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(S||(S={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(N||(N={})),function(e){e.CHECKBOX="checkbox",e.CHECK="check"}(H||(H={}));var L={onAfterHidden:Function,onAfterShow:Function},D=Object.assign({isShow:e.PropTypes.bool.def(!1),always:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),width:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),height:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),maxHeight:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number]).def("auto"),content:e.PropTypes.oneOfType([e.PropTypes.string,e.PropTypes.number,e.PropTypes.any]).def(""),allowHtml:e.PropTypes.bool.def(!1),placement:(0,e.placementType)().def(P.TOP_START),theme:e.PropTypes.string.def("dark"),trigger:(0,I.string)().def(R.HOVER),renderType:(0,I.toType)("popRenderType",{}).def(E.SHOWN),arrow:e.PropTypes.bool.def(!0),padding:e.PropTypes.number.def(5),offset:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.shape({})]).def(6),boundary:e.PropTypes.oneOfType([e.PropTypes.string.def("parent"),e.PropTypes.instanceOf(HTMLElement)]),zIndex:e.PropTypes.number.def(void 0),disableTeleport:e.PropTypes.bool.def(!1),autoPlacement:e.PropTypes.bool.def(!1),autoVisibility:e.PropTypes.bool.def(!0),disableOutsideClick:e.PropTypes.bool.def(!1),disableTransform:e.PropTypes.bool.def(!1),reference:e.PropTypes.any.def(null),modifiers:e.PropTypes.array.def([]),popoverDelay:e.PropTypes.oneOfType([e.PropTypes.number,e.PropTypes.arrayOf(e.PropTypes.number)]).def(100),extCls:e.PropTypes.string.def("")},L);const M=(0,t.defineComponent)({name:"PopReference",render:function(){var e,t,n;return null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""}}),j=(0,t.defineComponent)({props:{class:e.PropTypes.string.def("")},render:function(){var e,n;return(0,t.createVNode)(t.Fragment,null,[null===(n=(e=this.$slots).default)||void 0===n?void 0:n.call(e)])}});function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,r,i=[],l=!0,a=!1;try{for(n=n.call(e);!(l=(o=n.next()).done)&&(i.push(o.value),!t||i.length!==t);l=!0);}catch(e){a=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(a)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?V(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function F(e){return e.split("-")[0]}function _(e){return e.split("-")[1]}function U(e){return["top","bottom"].includes(F(e))?"x":"y"}function $(e){return"y"===e?"height":"width"}function B(e,t,n){let{reference:o,floating:r}=e;const i=o.x+o.width/2-r.width/2,l=o.y+o.height/2-r.height/2,a=U(t),u=$(a),c=o[u]/2-r[u]/2,s="x"===a;let f;switch(F(t)){case"top":f={x:i,y:o.y-r.height};break;case"bottom":f={x:i,y:o.y+o.height};break;case"right":f={x:o.x+o.width,y:l};break;case"left":f={x:o.x-r.width,y:l};break;default:f={x:o.x,y:o.y}}switch(_(t)){case"start":f[a]-=c*(n&&s?-1:1);break;case"end":f[a]+=c*(n&&s?-1:1)}return f}function W(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function q(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function z(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:a,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:s="viewport",elementContext:f="floating",altBoundary:d=!1,padding:p=0}=t,v=W(p),m=a[d?"floating"===f?"reference":"floating":f],h=q(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(a.floating)),boundary:c,rootBoundary:s,strategy:u})),y=q(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:"floating"===f?{...l.floating,x:o,y:r}:l.reference,offsetParent:await(null==i.getOffsetParent?void 0:i.getOffsetParent(a.floating)),strategy:u}):l[f]);return{top:h.top-y.top+v.top,bottom:y.bottom-h.bottom+v.bottom,left:h.left-y.left+v.left,right:y.right-h.right+v.right}}const G=Math.min,K=Math.max;function Y(e,t,n){return K(e,G(t,n))}const X={left:"right",right:"left",bottom:"top",top:"bottom"};function Z(e){return e.replace(/left|right|bottom|top/g,(e=>X[e]))}function J(e,t,n){void 0===n&&(n=!1);const o=_(e),r=U(e),i=$(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Z(l)),{main:l,cross:Z(l)}}const Q={start:"end",end:"start"};function ee(e){return e.replace(/start|end/g,(e=>Q[e]))}const te=["top","right","bottom","left"],ne=te.reduce(((e,t)=>e.concat(t,t+"-start",t+"-end")),[]);function oe(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function re(e){return te.some((t=>e[t]>=0))}const ie=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){const{x:n,y:o}=t,r=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=F(n),a=_(n),u="x"===U(n),c=["left","top"].includes(l)?-1:1,s=i&&u?-1:1,f="function"==typeof t?t(e):t;let{mainAxis:d,crossAxis:p,alignmentAxis:v}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return a&&"number"==typeof v&&(p="end"===a?-1*v:v),u?{x:p*s,y:d*c}:{x:d*c,y:p*s}}(t,e);return{x:n+r.x,y:o+r.y,data:r}}}};const le=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=e,c={x:n,y:o},s=await z(t,u),f=U(F(r)),d=function(e){return"x"===e?"y":"x"}(f);let p=c[f],v=c[d];if(i){const e="y"===f?"bottom":"right";p=Y(p+s["y"===f?"top":"left"],p,p-s[e])}if(l){const e="y"===d?"bottom":"right";v=Y(v+s["y"===d?"top":"left"],v,v-s[e])}const m=a.fn({...t,[f]:p,[d]:v});return{...m,data:{x:m.x-n,y:m.y-o}}}}};function ae(e){return e&&e.document&&e.location&&e.alert&&e.setInterval}function ue(e){if(null==e)return window;if(!ae(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function ce(e){return ue(e).getComputedStyle(e)}function se(e){return ae(e)?"":e?(e.nodeName||"").toLowerCase():""}function fe(){const e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((e=>e.brand+"/"+e.version)).join(" "):navigator.userAgent}function de(e){return e instanceof ue(e).HTMLElement}function pe(e){return e instanceof ue(e).Element}function ve(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ue(e).ShadowRoot||e instanceof ShadowRoot)}function me(e){const{overflow:t,overflowX:n,overflowY:o}=ce(e);return/auto|scroll|overlay|hidden/.test(t+o+n)}function he(e){return["table","td","th"].includes(se(e))}function ye(e){const t=/firefox/i.test(fe()),n=ce(e);return"none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||["transform","perspective"].includes(n.willChange)||t&&"filter"===n.willChange||t&&!!n.filter&&"none"!==n.filter}function ge(){return!/^((?!chrome|android).)*safari/i.test(fe())}const be=Math.min,we=Math.max,Te=Math.round;function xe(e,t,n){var o,r,i,l;void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect();let u=1,c=1;t&&de(e)&&(u=e.offsetWidth>0&&Te(a.width)/e.offsetWidth||1,c=e.offsetHeight>0&&Te(a.height)/e.offsetHeight||1);const s=pe(e)?ue(e):window,f=!ge()&&n,d=(a.left+(f&&null!=(o=null==(r=s.visualViewport)?void 0:r.offsetLeft)?o:0))/u,p=(a.top+(f&&null!=(i=null==(l=s.visualViewport)?void 0:l.offsetTop)?i:0))/c,v=a.width/u,m=a.height/c;return{width:v,height:m,top:p,right:d+v,bottom:p+m,left:d,x:d,y:p}}function Pe(e){return(t=e,(t instanceof ue(t).Node?e.ownerDocument:e.document)||window.document).documentElement;var t}function Re(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ee(e){return xe(Pe(e)).left+Re(e).scrollLeft}function Oe(e,t,n){const o=de(t),r=Pe(t),i=xe(e,o&&function(e){const t=xe(e);return Te(t.width)!==e.offsetWidth||Te(t.height)!==e.offsetHeight}(t),"fixed"===n);let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&"fixed"!==n)if(("body"!==se(t)||me(r))&&(l=Re(t)),de(t)){const e=xe(t,!0);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=Ee(r));return{x:i.left+l.scrollLeft-a.x,y:i.top+l.scrollTop-a.y,width:i.width,height:i.height}}function Ae(e){return"html"===se(e)?e:e.assignedSlot||e.parentNode||(ve(e)?e.host:null)||Pe(e)}function Ce(e){return de(e)&&"fixed"!==getComputedStyle(e).position?e.offsetParent:null}function Se(e){const t=ue(e);let n=Ce(e);for(;n&&he(n)&&"static"===getComputedStyle(n).position;)n=Ce(n);return n&&("html"===se(n)||"body"===se(n)&&"static"===getComputedStyle(n).position&&!ye(n))?t:n||function(e){let t=Ae(e);for(ve(t)&&(t=t.host);de(t)&&!["html","body"].includes(se(t));){if(ye(t))return t;t=t.parentNode}return null}(e)||t}function Ne(e){if(de(e))return{width:e.offsetWidth,height:e.offsetHeight};const t=xe(e);return{width:t.width,height:t.height}}function He(e){const t=Ae(e);return["html","body","#document"].includes(se(t))?e.ownerDocument.body:de(t)&&me(t)?t:He(t)}function Ie(e,t){var n;void 0===t&&(t=[]);const o=He(e),r=o===(null==(n=e.ownerDocument)?void 0:n.body),i=ue(o),l=r?[i].concat(i.visualViewport||[],me(o)?o:[]):o,a=t.concat(l);return r?a:a.concat(Ie(l))}function Le(e,t,n){return"viewport"===t?q(function(e,t){const n=ue(e),o=Pe(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,a=0,u=0;if(r){i=r.width,l=r.height;const e=ge();(e||!e&&"fixed"===t)&&(a=r.offsetLeft,u=r.offsetTop)}return{width:i,height:l,x:a,y:u}}(e,n)):pe(t)?function(e,t){const n=xe(e,!1,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft;return{top:o,left:r,x:r,y:o,right:r+e.clientWidth,bottom:o+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}(t,n):q(function(e){var t;const n=Pe(e),o=Re(e),r=null==(t=e.ownerDocument)?void 0:t.body,i=we(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),l=we(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0);let a=-o.scrollLeft+Ee(e);const u=-o.scrollTop;return"rtl"===ce(r||n).direction&&(a+=we(n.clientWidth,r?r.clientWidth:0)-i),{width:i,height:l,x:a,y:u}}(Pe(e)))}function De(e){const t=Ie(e),n=["absolute","fixed"].includes(ce(e).position)&&de(e)?Se(e):e;return pe(n)?t.filter((e=>pe(e)&&function(e,t){const n=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&ve(n)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}(e,n)&&"body"!==se(e))):[]}const Me={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?De(t):[].concat(n),o],l=i[0],a=i.reduce(((e,n)=>{const o=Le(t,n,r);return e.top=we(o.top,e.top),e.right=be(o.right,e.right),e.bottom=be(o.bottom,e.bottom),e.left=we(o.left,e.left),e}),Le(t,l,r));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=de(n),i=Pe(n);if(n===i)return t;let l={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((r||!r&&"fixed"!==o)&&(("body"!==se(n)||me(i))&&(l=Re(n)),de(n))){const e=xe(n,!0);a.x=e.x+n.clientLeft,a.y=e.y+n.clientTop}return{...t,x:t.x-l.scrollLeft+a.x,y:t.y-l.scrollTop+a.y}},isElement:pe,getDimensions:Ne,getOffsetParent:Se,getDocumentElement:Pe,getElementRects:e=>{let{reference:t,floating:n,strategy:o}=e;return{reference:Oe(t,Se(n),o),floating:{...Ne(n),x:0,y:0}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>"rtl"===ce(e).direction},je=(e,t,n)=>(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,a=await(null==l.isRTL?void 0:l.isRTL(t));let u=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:s}=B(u,o,a),f=o,d={};for(let n=0;n<i.length;n++){const{name:p,fn:v}=i[n],{x:m,y:h,data:y,reset:g}=await v({x:c,y:s,initialPlacement:o,placement:f,strategy:r,middlewareData:d,rects:u,platform:l,elements:{reference:e,floating:t}});c=null!=m?m:c,s=null!=h?h:s,d={...d,[p]:{...d[p],...y}},g&&("object"==typeof g&&(g.placement&&(f=g.placement),g.rects&&(u=!0===g.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):g.rects),({x:c,y:s}=B(u,f,a))),n=-1)}return{x:c,y:s,placement:f,strategy:r,middlewareData:d}})(e,t,{platform:Me,...n});var Ve=i(8022),ke={},Fe=function(e){return document.querySelector(e)instanceof HTMLElement},_e=function(e){return e instanceof Element||e instanceof HTMLDocument},Ue=function(e){if(_e(e))return{isElement:!0,content:e,vNode:void 0};if(/^(#|\.)/.test(e)){var t=document.querySelector(e),n=_e(t);return{isElement:n,content:n?t:e,vNode:n?void 0:e}}return{isElement:!1,content:e,vNode:e}};const $e=function(n,o,r){var i=r.refReference,l=r.refContent,a=r.refArrow,u=r.refRoot,c=(0,t.ref)(!1),s=(0,t.ref)(),f=function(){var e,t,n,o=T(null===(e=i.value)||void 0===e?void 0:e.$el);return(null===(t=document.fullscreenElement)||void 0===t?void 0:t.shadowRoot)?document.fullscreenElement.shadowRoot.contains(o):null===(n=document.fullscreenElement)||void 0===n?void 0:n.contains(o)},p=["dark","light"],m=(0,t.computed)((function(){var e,t,o=null!==(t=null===(e=n.theme)||void 0===e?void 0:e.split(/\s+/))&&void 0!==t?t:[];return o.sort((function(e,t){return Number(p.includes(t))-Number(p.includes(e))})),{systemThemes:o,customThemes:o.filter((function(e){return!p.includes(e)}))}})),h=function(){return n.autoVisibility},y=function(){return n.autoPlacement},g=function(){var e,t,o,r,c=T(null===(e=i.value)||void 0===e?void 0:e.$el),s=T(null===(t=l.value)||void 0===t?void 0:t.$el),f=n.arrow?T(null===(o=a.value)||void 0===o?void 0:o.$el):null,d=T(null===(r=u.value)||void 0===r?void 0:r.$el),p=Ue(n.content),v=p.isElement,m=p.content;return s&&v&&!(null==s?void 0:s.contains(m))&&s.append(m),{elReference:c,elContent:s,elArrow:f,root:d}},b=function(){var e={};return Array.isArray(n.modifiers)&&n.modifiers.forEach((function(t){var n,o,r,i,l;if("offset"===t.name){if("number"==typeof(null===(n=t.options)||void 0===n?void 0:n.offset)&&(l=null===(o=t.options)||void 0===o?void 0:o.offset),Array.isArray(null===(r=t.options)||void 0===r?void 0:r.offset)){var a=k(null===(i=t.options)||void 0===i?void 0:i.offset,2);l={mainAxis:a[0],crossAxis:a[1]}}Object.assign(e,{offset:l})}})),e},w=function(e,t){var n,o,r=b(),i=[ie(r.offset||t.offset),le({padding:t.padding})],l={placement:t.placement,middleware:i};if(t.arrow&&i.push((e=>({name:"arrow",options:e,async fn(t){const{element:n,padding:o=0}=null!=e?e:{},{x:r,y:i,placement:l,rects:a,platform:u}=t;if(null==n)return{};const c=W(o),s={x:r,y:i},f=U(l),d=_(l),p=$(f),v=await u.getDimensions(n),m="y"===f?"top":"left",h="y"===f?"bottom":"right",y=a.reference[p]+a.reference[f]-s[f]-a.floating[p],g=s[f]-a.reference[f],b=await(null==u.getOffsetParent?void 0:u.getOffsetParent(n));let w=b?"y"===f?b.clientHeight||0:b.clientWidth||0:0;0===w&&(w=a.floating[p]);const T=y/2-g/2,x=c[m],P=w-v[p]-c[h],R=w/2-v[p]/2+T,E=Y(x,R,P),O=("start"===d?c[m]:c[h])>0&&R!==E&&a.reference[p]<=a.floating[p];return{[f]:s[f]-(O?R<x?x-R:P-R:0),data:{[f]:E,centerOffset:R-E}}}}))({element:e})),y()?i.push(function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r,i,l;const{x:a,y:u,rects:c,middlewareData:s,placement:f,platform:d,elements:p}=t,{alignment:v=null,allowedPlacements:m=ne,autoAlignment:h=!0,...y}=e,g=function(e,t,n){return(e?[...n.filter((t=>_(t)===e)),...n.filter((t=>_(t)!==e))]:n.filter((e=>F(e)===e))).filter((n=>!e||_(n)===e||!!t&&ee(n)!==n))}(v,h,m),b=await z(t,y),w=null!=(n=null==(o=s.autoPlacement)?void 0:o.index)?n:0,T=g[w];if(null==T)return{};const{main:x,cross:P}=J(T,c,await(null==d.isRTL?void 0:d.isRTL(p.floating)));if(f!==T)return{x:a,y:u,reset:{placement:g[0]}};const R=[b[F(T)],b[x],b[P]],E=[...null!=(r=null==(i=s.autoPlacement)?void 0:i.overflows)?r:[],{placement:T,overflows:R}],O=g[w+1];if(O)return{data:{index:w+1,overflows:E},reset:{placement:O}};const A=E.slice().sort(((e,t)=>e.overflows[0]-t.overflows[0])),C=null==(l=A.find((e=>{let{overflows:t}=e;return t.every((e=>e<=0))})))?void 0:l.placement,S=null!=C?C:A[0].placement;return S!==f?{data:{index:w+1,overflows:E},reset:{placement:S}}:{}}}}()):(i.unshift(function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){var n;const{placement:o,elements:r,rects:i,platform:l,strategy:a}=t,{padding:u=2,x:c,y:s}=e,f=q(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:i.reference,offsetParent:await(null==l.getOffsetParent?void 0:l.getOffsetParent(r.floating)),strategy:a}):i.reference),d=null!=(n=await(null==l.getClientRects?void 0:l.getClientRects(r.reference)))?n:[],p=W(u),v=await l.getElementRects({reference:{getBoundingClientRect:function(){var e;if(2===d.length&&d[0].left>d[1].right&&null!=c&&null!=s)return null!=(e=d.find((e=>c>e.left-p.left&&c<e.right+p.right&&s>e.top-p.top&&s<e.bottom+p.bottom)))?e:f;if(d.length>=2){if("x"===U(o)){const e=d[0],t=d[d.length-1],n="top"===F(o),r=e.top,i=t.bottom,l=n?e.left:t.left,a=n?e.right:t.right;return{top:r,bottom:i,left:l,right:a,width:a-l,height:i-r,x:l,y:r}}const e="left"===F(o),t=K(...d.map((e=>e.right))),n=G(...d.map((e=>e.left))),r=d.filter((o=>e?o.left===n:o.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:n,right:t,width:t-n,height:l-i,x:n,y:i}}return f}},floating:r.floating,strategy:a});return i.reference.x!==v.reference.x||i.reference.y!==v.reference.y||i.reference.width!==v.reference.width||i.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}}()),i.push(function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n;const{placement:o,middlewareData:r,rects:i,initialPlacement:l,platform:a,elements:u}=t,{mainAxis:c=!0,crossAxis:s=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",flipAlignment:p=!0,...v}=e,m=F(o),h=f||(m!==l&&p?function(e){const t=Z(e);return[ee(e),t,ee(t)]}(l):[Z(l)]),y=[l,...h],g=await z(t,v),b=[];let w=(null==(n=r.flip)?void 0:n.overflows)||[];if(c&&b.push(g[m]),s){const{main:e,cross:t}=J(o,i,await(null==a.isRTL?void 0:a.isRTL(u.floating)));b.push(g[e],g[t])}if(w=[...w,{placement:o,overflows:b}],!b.every((e=>e<=0))){var T,x;const e=(null!=(T=null==(x=r.flip)?void 0:x.index)?T:0)+1,t=y[e];if(t)return{data:{index:e,overflows:w},reset:{placement:t}};let n="bottom";switch(d){case"bestFit":{var P;const e=null==(P=w.map((e=>[e,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:P[0].placement;e&&(n=e);break}case"initialPlacement":n=l}if(o!==n)return{reset:{placement:n}}}return{}}}}())),h()&&l.middleware.push(function(e){let{strategy:t="referenceHidden",...n}={};return{name:"hide",async fn(e){const{rects:o}=e;switch(t){case"referenceHidden":{const t=oe(await z(e,{...n,elementContext:"reference"}),o.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:re(t)}}}case"escaped":{const t=oe(await z(e,{...n,altBoundary:!0}),o.floating);return{data:{escapedOffsets:t,escaped:re(t)}}}default:return{}}}}}()),f()||t.isVirtualEl){var a=(o=s.value,{getElementRects:function(e){var t=e.reference,n=e.floating,o=t.getBoundingClientRect(),r=n.getBoundingClientRect();return{reference:{width:o.width,height:o.height,x:o.x,y:o.y},floating:{width:r.width,height:r.height,x:r.x,y:r.y}}},getDimensions:function(e){var t=e.getBoundingClientRect();return{width:t.width,height:t.height}},getClippingRect:function(e){var t;!function(e){if(null==e)throw new TypeError("Cannot destructure undefined")}(e);var n=null!==(t=null==o?void 0:o.getBoundingClientRect())&&void 0!==t?t:{},r=n.width,i=void 0===r?0:r,l=n.height;return{width:i,height:void 0===l?0:l,x:0,y:0}}}),u=a.getElementRects,c=a.getDimensions,d=a.getClippingRect;Object.assign(l,{platform:Object.assign(Object.assign({},null!==(n=null==t?void 0:t.platform)&&void 0!==n?n:{}),{getElementRects:u,getDimensions:c,getClippingRect:d})})}return l},T=function e(t){return t instanceof HTMLElement?t:t instanceof Text?e(t.nextElementSibling):"function"==typeof(null==t?void 0:t.getBoundingClientRect)?t:null},x=m.value.customThemes.join(" "),P=m.value.customThemes.reduce((function(e,t){return Object.assign(d({},"data-".concat(t,"-theme"),!0),e)}),{}),R="".concat(x),E=null,O=function(e){var t=window.devicePixelRatio||1;return Math.round(e*t)/t||0},A=function(e,t,o,r){var i;n.disableTransform?Object.assign(e.style,{left:"".concat(O(t),"px"),top:"".concat(O(o),"px")}):Object.assign(e.style,{left:"0",top:"0",transform:"translate3d(".concat(O(t),"px,").concat(O(o),"px,0)")});var l=!!h()&&(null===(i=r.hide)||void 0===i?void 0:i.referenceHidden);Object.assign(e.style,{visibility:l?"hidden":"visible"})},C=function(e,t,o){var r;if(n.arrow){var i=null!==(r=o.arrow)&&void 0!==r?r:{},l=i.x,a=i.y;e.setAttribute("data-arrow",t),Object.assign(e.style,{left:"",top:"",bottom:"",right:""});var u={top:"bottom",right:"left",bottom:"top",left:"right"}[t];Object.assign(e.style,d({left:null!==l?"".concat(l,"px"):"",top:null!==a?"".concat(a,"px"):""},u,"-4px"))}},S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=g(),o=n.elReference,r=n.elContent,i=n.elArrow,l=e||o;if(l&&r){var a=w(i,t);je(l,r,a).then((function(e){var t=e.x,n=e.y,o=e.placement,l=e.middlewareData,a=r.className;r.className="".concat(a.replace(R,"")," ").concat(R).replace(/\s+/gm," ").replace(/^\s+|\s+$/g,""),Object.keys(P).forEach((function(e){r.setAttribute(e,P[e])}));var u=o.split("-")[0],c=u;["left","right","top","bottom"].includes(u)||(c="top"),A(r,t,n,l),C(i,c,l)}))}},N=void 0,H=void 0,I=!1,L=function(){return Array.isArray(n.popoverDelay)?[n.popoverDelay[0],n.popoverDelay.slice(-1)[0]]:[n.popoverDelay,n.popoverDelay]},D=function(){var e=L()[0];H=setTimeout((function(){N&&clearTimeout(N),n.disabled||(c.value=!0)}),e)},M=function(){var e=L()[1];N=setTimeout((function(){H&&clearTimeout(H),c.value=!1}),e)},j=function(){c.value?M():D()},V=function(){j()},B=function(){"hover"===n.trigger&&(N&&(I=!0,clearTimeout(N),N=void 0),Q())},X=function(){I&&(M(),I=!1,te())},Q=function(){o.emit(v.CONTENT_MOUSEENTER)},te=function(){o.emit(v.CONTENT_MOUSELEAVE)};return(0,t.watch)((function(){return n.isShow}),(function(e){c.value=e})),(0,t.watch)(c,(function(t){var r,i;t?((i=T(null===(r=l.value)||void 0===r?void 0:r.$el)).style.setProperty("display","block"),i.style.setProperty("z-index","".concat(n.zIndex?n.zIndex:e.bkZIndexManager.getPopperIndex())),S(),o.emit("afterShow",{isShow:!0})):function(){var e;T(null===(e=l.value)||void 0===e?void 0:e.$el).style.setProperty("display","none"),o.emit("afterHidden",{isShow:!1})}()})),{showPopover:D,hidePopover:M,resolveTriggerEvents:function(){var e;return null!==(e={hover:{content:[["mouseenter",B],["mouseleave",X]],reference:[["mouseenter",D],["mouseleave",M],["focus",D],["blur",M]]},click:[["click",V]],manual:{content:[["mouseenter",Q],["mouseleave",te]],reference:[[]]}}[n.trigger])&&void 0!==e?e:[]},updatePopover:S,triggerPopover:j,resolvePopElements:g,isElementFullScreen:f,resolveTargetElement:T,createPopInstance:function(){var e=g(),t=e.elReference,o=e.elContent;E=function(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l=!0,animationFrame:a=!1}=o,u=r&&!a,c=i&&!a,s=u||c?[...pe(e)?Ie(e):[],...Ie(t)]:[];s.forEach((e=>{u&&e.addEventListener("scroll",n,{passive:!0}),c&&e.addEventListener("resize",n)}));let f,d=null;l&&(d=new ResizeObserver(n),pe(e)&&!a&&d.observe(e),d.observe(t));let p=a?xe(e):null;return a&&function t(){const o=xe(e);!p||o.x===p.x&&o.y===p.y&&o.width===p.width&&o.height===p.height||n(),p=o,f=requestAnimationFrame(t)}(),l||n(),()=>{var e;s.forEach((e=>{u&&e.removeEventListener("scroll",n),c&&e.removeEventListener("resize",n)})),null==(e=d)||e.disconnect(),d=null,a&&cancelAnimationFrame(f)}}(t,o,(function(){c.value&&S(null,n)}))},updateFullscreenTarget:function(e){s.value=e},getFullscreenRoot:function(e){return f()?document.fullscreenElement.shadowRoot?document.fullscreenElement.shadowRoot.querySelector(e):document.fullscreenElement.querySelector(e):document.body},stopHide:function(){N&&(I=!0,clearTimeout(N),N=void 0)},localIsShow:c,cleanup:E}};var Be=null,We=null;const qe=(0,t.defineComponent)({name:"Popover",components:{Content:y,Arrow:f,Root:j},directives:{clickoutside:s},props:D,emits:h,setup:function(n,o){var r=n.content,i=n.theme,l=n.disableTeleport,a=(0,t.toRefs)(n).reference,u=(0,t.ref)(),c=(0,t.ref)(),s=(0,t.ref)(),f=(0,t.ref)(),d=(0,t.computed)((function(){return a.value||u.value})),p=function(e,n,o){var r=o.refReference,i=o.refContent,l=o.refArrow,a=o.refRoot,u=null,c=(0,t.ref)(!1),s=(ke.fullscreenReferId||(ke.fullscreenReferId="id_".concat((0,Ve.v4)())),ke.fullscreenReferId),f=(0,t.ref)(),d=$e(e,n,{refReference:r,refContent:i,refArrow:l,refRoot:a}),p=d.localIsShow,m=d.showPopover,h=d.hidePopover,y=d.updatePopover,g=d.resolveTriggerEvents,b=d.resolvePopElements,w=d.isElementFullScreen,T=d.updateFullscreenTarget,x=d.createPopInstance,P=d.getFullscreenRoot,R=d.stopHide,E=function(){h()},O=function(){x(),e.always?m():A()},A=function(){var e=b(),t=e.elReference,n=e.elContent;if(u=g(),Array.isArray(u))C(t,u);else{var o=u,r=o.content,i=o.reference;C(t,i),C(n,r)}},C=function(e,t){t.forEach((function(t){var n=k(t,2),o=n[0],r=n[1];o&&"function"==typeof r&&e.addEventListener(o,r)}))},S=function(){var e=b(),t=e.elReference,n=e.root;c.value?I.value=null==f?void 0:f.value:I.value=H(n||t)},N=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#",n=function(n){var o=null,r=function(e){null===o&&e()};return r((function(){if(/^parent$/i.test(e.boundary)){o="".concat(t).concat(Be);var r=(n||{}).parentNode;(null==r?void 0:r.parentNode)&&(r.parentNode.setAttribute("data-pnode-id",We),o="[data-pnode-id=".concat(We,"]"))}})),r((function(){if(!/^body$/i.test(e.boundary)){if("string"==typeof e.boundary)return Fe(e.boundary)?void(o=e.boundary):(console.error("props.boundary is not available selector"),void(o="body"));if(_e(e.boundary))return void(o=e.boundary)}})),r((function(){o="string"==typeof e.boundary?e.boundary:"".concat(t).concat(Be)})),o};if(null===Be||!Fe("#".concat(Be))){Be="id_".concat((0,Ve.v4)());var o=document.createElement("div");o.setAttribute("id",Be),o.setAttribute("data-popper-id",Be),document.body.append(o)}return null===We&&(We="id_".concat((0,Ve.v4)())),{popContainerId:Be,prefixId:n(),getPrefixId:n}}(e,"#"),H=N.getPrefixId,I=(0,t.ref)(),L=function(){!function(){if(null==u?void 0:u.length){var e=b().elReference;e&&u.forEach((function(t){var n=k(t,2),o=n[0],r=n[1];o&&"function"==typeof r&&e.removeEventListener(o,r)})),u=null}}()},D=function(e){var t;f.value=e,T(e),c.value=w(),null===(t=null==f?void 0:f.value)||void 0===t||t.setAttribute("data-fllsrn-id",s)},M=function(t){var n,o,r;document.fullscreenElement||(r="[data-fllsrn-id=".concat(s,"]"),(null!==(o=null===(n=null==f?void 0:f.value)||void 0===n?void 0:n.querySelectorAll(r))&&void 0!==o?o:[]).forEach((function(e){null==e||e.removeAttribute("data-fllsrn-id")}))),D(t.target),S(),y(null,e)};return{onMountedFn:function(){if(!e.disabled){if(O(),w()){var t="[data-fllsrn-id=".concat(s,"]"),n=P(t);D(n)}S(),document.body.addEventListener("fullscreenchange",M)}},onUnmountedFn:function(){L(),document.body.removeEventListener("fullscreenchange",M)},handleClickOutside:function(t){n.emit(v.CLICK_OUTSIDE,{isShow:p.value,event:t}),e.disableOutsideClick||e.always||e.disabled||"manual"===e.trigger||p.value&&E()},beforeInstanceUnmount:L,updateBoundary:S,initPopInstance:O,updatePopover:y,showPopover:m,hidePopover:h,showFn:function(){m()},hideFn:E,stopHide:R,isFullscreen:c,boundary:I,localIsShow:p}}(n,o,{refReference:d,refContent:c,refArrow:s,refRoot:f}),m=p.onMountedFn,h=p.onUnmountedFn,y=p.handleClickOutside,g=p.beforeInstanceUnmount,b=p.updateBoundary,w=p.initPopInstance,T=p.showFn,x=p.hideFn,P=p.showPopover,R=p.hidePopover,E=p.updatePopover,O=p.stopHide,A=p.localIsShow,C=p.boundary;n.always||n.disabled||(0,t.watch)((function(){return n.isShow}),(function(){n.isShow?P():R()}),{immediate:!0}),(0,t.watch)((function(){return[n.disabled]}),(function(e){e[0]?g():w()})),b(),(0,t.onMounted)(m),(0,t.onBeforeUnmount)(h);var S=(0,t.computed)((function(){return!l})),N=(0,t.computed)((function(){return n.renderType===e.RenderType.AUTO||A.value}));return{boundary:C,arrow:n.arrow,refDefaultReference:u,refContent:c,refArrow:s,content:r,theme:i,transBoundary:S,handleClickOutside:y,updatePopover:E,hide:function(){x()},show:function(){T()},stopHide:O,contentIsShow:N,renderContent:function(){return n.allowHtml?Ue(n.content).vNode:r}}},render:function(){var e,n,o,r,i,l,a=this;return(0,t.createVNode)(j,{ref:"refRoot"},{default:function(){return[(0,t.createVNode)(M,{ref:"refDefaultReference"},{default:function(){return[null!==(o=null===(n=(e=a.$slots).default)||void 0===n?void 0:n.call(e))&&void 0!==o?o:(0,t.createVNode)("span",null,null)]}}),(0,t.createVNode)(t.Teleport,{to:a.boundary,disabled:!a.transBoundary},{default:function(){return[(0,t.withDirectives)((0,t.createVNode)(y,{ref:"refContent","data-theme":a.theme,extCls:a.extCls,width:a.width,height:a.height,maxHeight:a.maxHeight},{default:function(){return[a.contentIsShow?null!==(l=null===(i=(r=a.$slots).content)||void 0===i?void 0:i.call(r))&&void 0!==l?l:a.renderContent():""]},arrow:function(){var e,n;return a.arrow?(0,t.createVNode)(f,{ref:"refArrow"},{default:function(){return[null===(n=(e=a.$slots).arrow)||void 0===n?void 0:n.call(e)]}}):""}}),[[(0,t.resolveDirective)("clickoutside"),a.handleClickOutside]])]}})]}})}});function ze(e){var n,o=null,r=null,i=null,l=Object.assign(Object.assign({boundary:"body",placement:"top",autoVisibility:!1},e),{trigger:"manual"}),a={name:"$popover",setup:function(e,n){var o=n.expose,r=(0,t.ref)(l),i=(0,t.ref)(),a=(0,t.ref)({position:"absolute",pointerEvents:"none",left:0,top:0,width:"auto",height:"auto",transform:""}),u=function(e){if(_e(e)){var t=e.getBoundingClientRect(),n=t.x,o=t.y,r=t.width,i=t.height;Object.assign(a.value,{width:"".concat(r,"px"),height:"".concat(i,"px"),transform:"translate3d(".concat(n,"px,").concat(o,"px,0)")})}else{var l=e.clientX,u=e.clientY;Object.assign(a.value,{transform:"translate3d(".concat(l,"px,").concat(u,"px,0)"),width:"10px",height:"10px"})}};u(r.value.target);var c=(0,t.computed)((function(){var e=["target"];return Object.keys(r.value).filter((function(t){return!e.includes(t)})).reduce((function(e,t){return Object.assign(Object.assign({},e),d({},t,r.value[t]))}),{})})),s=function(){var e;null===(e=l.onContentMouseenter)||void 0===e||e.call(l)},f=function(){var e;null===(e=l.onContentMouseleave)||void 0===e||e.call(l)};return o({show:function(){var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.show)||void 0===t||t.call(e)},hide:function(){var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.hide)||void 0===t||t.call(e)},updateTarget:function(e){var n,o;r.value.target=e,u(e),null===(o=null===(n=i.value)||void 0===n?void 0:n.updatePopover)||void 0===o||o.call(n),(0,t.nextTick)((function(){var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.updatePopover)||void 0===t||t.call(e)}))},stopHide:function(){var e,t;null===(t=null===(e=i.value)||void 0===e?void 0:e.stopHide)||void 0===t||t.call(e)}}),function(){return(0,t.createVNode)(qe,(0,t.mergeProps)(c.value,{ref:i,onContentMouseenter:s,onContentMouseleave:f}),{default:function(){return[(0,t.createVNode)("span",{style:a.value},null)]}})}}};return null===o&&(i=document.createElement("div"),(n=l.boundary,/^body$/i.test(n)?document.body:/^parent$/i.test(n)?_e(l.target)?l.target.parentNode:l.target.target.parentNode:"string"==typeof n&&Fe(n)?document.querySelector(n):document.body).append(i),o=(0,t.createApp)(a),r=o.mount(i)),{close:function(){o&&(o.unmount(),r=null,o=null,i.remove())},show:function(){null==r||r.show()},hide:function(){null==r||r.hide()},update:function(e){null==r||r.updateTarget(e)},get vm(){return r},get $el(){return r.$el}}}const Ge=(0,e.withInstall)(qe)})(),l})()));
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { PopoverPropTypes } from './props';
|
2
|
+
export declare type $Popover = PopoverPropTypes & {
|
3
|
+
target: HTMLElement | HTMLElement | MouseEvent;
|
4
|
+
};
|
5
|
+
export default function createPopoverComponent(options: $Popover): {
|
6
|
+
close: () => void;
|
7
|
+
show: () => void;
|
8
|
+
hide: () => void;
|
9
|
+
update: (e: MouseEvent) => void;
|
10
|
+
readonly vm: any;
|
11
|
+
readonly $el: HTMLElement;
|
12
|
+
};
|
package/lib/popover/popover.css
CHANGED
@@ -1,16 +1,5 @@
|
|
1
|
-
.bk-popover
|
2
|
-
|
3
|
-
}
|
4
|
-
.bk-popover .fade-in-enter-active,
|
5
|
-
.bk-popover .fade-in-linear-leave-active {
|
6
|
-
transition: opacity 200ms linear;
|
7
|
-
}
|
8
|
-
.bk-popover .fade-in-enter,
|
9
|
-
.bk-popover .fade-in-leave,
|
10
|
-
.bk-popover .fade-in-leave-active {
|
11
|
-
opacity: 0;
|
12
|
-
}
|
13
|
-
.bk-popover-content {
|
1
|
+
.bk-popover.bk-pop2-content {
|
2
|
+
position: absolute;
|
14
3
|
display: none;
|
15
4
|
padding: 7px 14px;
|
16
5
|
font-size: 12px;
|
@@ -19,47 +8,18 @@
|
|
19
8
|
border-radius: 4px;
|
20
9
|
box-sizing: border-box;
|
21
10
|
}
|
22
|
-
.bk-popover-content
|
23
|
-
color: #fff;
|
24
|
-
background: #26323d;
|
25
|
-
}
|
26
|
-
.bk-popover-content[data-theme^='light'] {
|
27
|
-
color: #26323d;
|
28
|
-
background-color: #fff;
|
29
|
-
box-shadow: 0 0 6px 0 #dcdee5;
|
30
|
-
}
|
31
|
-
.bk-popover-content[data-theme^='light'][data-show] {
|
32
|
-
box-shadow: 0 0 6px 0 #dcdee5;
|
33
|
-
}
|
34
|
-
.bk-popover-content[data-show] {
|
35
|
-
display: block;
|
36
|
-
}
|
37
|
-
.bk-popover-content .arrow {
|
38
|
-
position: absolute;
|
39
|
-
z-index: -1;
|
40
|
-
width: 8px;
|
41
|
-
height: 8px;
|
42
|
-
background: inherit;
|
43
|
-
visibility: hidden;
|
44
|
-
}
|
45
|
-
.bk-popover-content .arrow::before {
|
11
|
+
.bk-popover.bk-pop2-content .bk-pop2-arrow {
|
46
12
|
position: absolute;
|
47
13
|
width: 8px;
|
48
14
|
height: 8px;
|
49
|
-
background:
|
50
|
-
content: '';
|
51
|
-
visibility: visible;
|
15
|
+
background: #333;
|
52
16
|
transform: rotate(45deg);
|
53
17
|
}
|
54
|
-
.bk-popover-content[data-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
top: -4px;
|
59
|
-
}
|
60
|
-
.bk-popover-content[data-popper-placement^='left'] > .arrow {
|
61
|
-
right: -4px;
|
18
|
+
.bk-popover.bk-pop2-content[data-theme^='light'] {
|
19
|
+
color: #26323d;
|
20
|
+
background-color: #fff;
|
21
|
+
box-shadow: 0 0 6px 0 #dcdee5;
|
62
22
|
}
|
63
|
-
.bk-popover-content[data-
|
64
|
-
|
23
|
+
.bk-popover.bk-pop2-content[data-theme^='light'] .bk-pop2-arrow {
|
24
|
+
background-color: #fff;
|
65
25
|
}
|
package/lib/popover/popover.d.ts
CHANGED
@@ -6,57 +6,139 @@ declare const _default: import("vue").DefineComponent<{
|
|
6
6
|
} & {
|
7
7
|
default: boolean;
|
8
8
|
};
|
9
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
10
|
+
default: boolean;
|
11
|
+
} & {
|
12
|
+
default: boolean;
|
13
|
+
};
|
14
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
15
|
+
default: boolean;
|
16
|
+
} & {
|
17
|
+
default: boolean;
|
18
|
+
};
|
9
19
|
width: import("vue-types").VueTypeDef<string | number> & {
|
10
20
|
default: string | number;
|
11
21
|
};
|
12
22
|
height: import("vue-types").VueTypeDef<string | number> & {
|
13
23
|
default: string | number;
|
14
24
|
};
|
15
|
-
|
25
|
+
maxHeight: import("vue-types").VueTypeDef<string | number> & {
|
16
26
|
default: string | number;
|
17
27
|
};
|
18
|
-
|
19
|
-
default:
|
28
|
+
content: import("vue-types").VueTypeDef<any> & {
|
29
|
+
default: any;
|
30
|
+
};
|
31
|
+
allowHtml: import("vue-types").VueTypeValidableDef<boolean> & {
|
32
|
+
default: boolean;
|
20
33
|
} & {
|
21
|
-
default:
|
34
|
+
default: boolean;
|
22
35
|
};
|
23
|
-
placement: import("vue-types").
|
24
|
-
default:
|
36
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
|
37
|
+
default: "auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
25
38
|
};
|
26
39
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
27
40
|
default: string;
|
28
41
|
} & {
|
29
42
|
default: string;
|
30
43
|
};
|
31
|
-
|
32
|
-
|
33
|
-
default: () => void;
|
44
|
+
trigger: import("vue-types").VueTypeValidableDef<"click" | "hover" | "manual"> & {
|
45
|
+
default: "click" | "hover" | "manual";
|
34
46
|
};
|
35
|
-
|
36
|
-
default:
|
37
|
-
} & {
|
38
|
-
default: string;
|
47
|
+
renderType: import("vue-types").VueTypeDef<"auto" | "shown"> & {
|
48
|
+
default: "auto" | "shown";
|
39
49
|
};
|
40
50
|
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
41
51
|
default: boolean;
|
42
52
|
} & {
|
43
53
|
default: boolean;
|
44
54
|
};
|
45
|
-
|
46
|
-
default:
|
55
|
+
padding: import("vue-types").VueTypeValidableDef<number> & {
|
56
|
+
default: number;
|
47
57
|
} & {
|
48
|
-
default:
|
58
|
+
default: number;
|
59
|
+
};
|
60
|
+
offset: import("vue-types").VueTypeDef<number | {
|
61
|
+
mainAxis?: number;
|
62
|
+
crossAxis?: number;
|
63
|
+
alignmentAxis?: number;
|
64
|
+
}> & {
|
65
|
+
default: number | (() => {
|
66
|
+
mainAxis?: number;
|
67
|
+
crossAxis?: number;
|
68
|
+
alignmentAxis?: number;
|
69
|
+
});
|
49
70
|
};
|
50
71
|
boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
|
51
|
-
|
72
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
73
|
+
default: number;
|
74
|
+
} & {
|
75
|
+
default: number;
|
76
|
+
};
|
77
|
+
disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
|
52
78
|
default: boolean;
|
53
79
|
} & {
|
54
80
|
default: boolean;
|
55
81
|
};
|
56
|
-
|
57
|
-
default:
|
82
|
+
autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
|
83
|
+
default: boolean;
|
84
|
+
} & {
|
85
|
+
default: boolean;
|
58
86
|
};
|
59
|
-
|
87
|
+
autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
|
88
|
+
default: boolean;
|
89
|
+
} & {
|
90
|
+
default: boolean;
|
91
|
+
};
|
92
|
+
disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
93
|
+
default: boolean;
|
94
|
+
} & {
|
95
|
+
default: boolean;
|
96
|
+
};
|
97
|
+
disableTransform: import("vue-types").VueTypeValidableDef<boolean> & {
|
98
|
+
default: boolean;
|
99
|
+
} & {
|
100
|
+
default: boolean;
|
101
|
+
};
|
102
|
+
reference: import("vue-types").VueTypeValidableDef<any> & {
|
103
|
+
default: any;
|
104
|
+
};
|
105
|
+
modifiers: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
106
|
+
default: () => unknown[];
|
107
|
+
} & {
|
108
|
+
default: () => unknown[];
|
109
|
+
};
|
110
|
+
popoverDelay: import("vue-types").VueTypeDef<number | number[]> & {
|
111
|
+
default: number | (() => number[]);
|
112
|
+
};
|
113
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
114
|
+
default: string;
|
115
|
+
} & {
|
116
|
+
default: string;
|
117
|
+
};
|
118
|
+
}, {
|
119
|
+
boundary: import("vue").Ref<any>;
|
120
|
+
arrow: boolean;
|
121
|
+
refDefaultReference: import("vue").Ref<any>;
|
122
|
+
refContent: import("vue").Ref<any>;
|
123
|
+
refArrow: import("vue").Ref<any>;
|
124
|
+
content: any;
|
125
|
+
theme: string;
|
126
|
+
transBoundary: import("vue").ComputedRef<boolean>;
|
127
|
+
handleClickOutside: (_e: MouseEvent) => void;
|
128
|
+
updatePopover: (virtualEl?: any, props?: {}) => void;
|
129
|
+
hide: () => void;
|
130
|
+
show: () => void;
|
131
|
+
stopHide: () => void;
|
132
|
+
contentIsShow: import("vue").ComputedRef<boolean>;
|
133
|
+
renderContent: () => any;
|
134
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
135
|
+
show: (..._args: any[]) => boolean;
|
136
|
+
hide: (..._args: any[]) => boolean;
|
137
|
+
clickoutside: (..._args: any[]) => boolean;
|
138
|
+
contentMouseenter: (..._args: any[]) => boolean;
|
139
|
+
contentMouseleave: (..._args: any[]) => boolean;
|
140
|
+
stopHide: (..._args: any[]) => boolean;
|
141
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
60
142
|
onAfterHidden: FunctionConstructor;
|
61
143
|
onAfterShow: FunctionConstructor;
|
62
144
|
isShow: import("vue-types").VueTypeValidableDef<boolean> & {
|
@@ -64,69 +146,151 @@ declare const _default: import("vue").DefineComponent<{
|
|
64
146
|
} & {
|
65
147
|
default: boolean;
|
66
148
|
};
|
149
|
+
always: import("vue-types").VueTypeValidableDef<boolean> & {
|
150
|
+
default: boolean;
|
151
|
+
} & {
|
152
|
+
default: boolean;
|
153
|
+
};
|
154
|
+
disabled: import("vue-types").VueTypeValidableDef<boolean> & {
|
155
|
+
default: boolean;
|
156
|
+
} & {
|
157
|
+
default: boolean;
|
158
|
+
};
|
67
159
|
width: import("vue-types").VueTypeDef<string | number> & {
|
68
160
|
default: string | number;
|
69
161
|
};
|
70
162
|
height: import("vue-types").VueTypeDef<string | number> & {
|
71
163
|
default: string | number;
|
72
164
|
};
|
73
|
-
|
165
|
+
maxHeight: import("vue-types").VueTypeDef<string | number> & {
|
74
166
|
default: string | number;
|
75
167
|
};
|
76
|
-
|
77
|
-
default:
|
168
|
+
content: import("vue-types").VueTypeDef<any> & {
|
169
|
+
default: any;
|
170
|
+
};
|
171
|
+
allowHtml: import("vue-types").VueTypeValidableDef<boolean> & {
|
172
|
+
default: boolean;
|
78
173
|
} & {
|
79
|
-
default:
|
174
|
+
default: boolean;
|
80
175
|
};
|
81
|
-
placement: import("vue-types").
|
82
|
-
default:
|
176
|
+
placement: import("vue-types").VueTypeValidableDef<"auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
|
177
|
+
default: "auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
83
178
|
};
|
84
179
|
theme: import("vue-types").VueTypeValidableDef<string> & {
|
85
180
|
default: string;
|
86
181
|
} & {
|
87
182
|
default: string;
|
88
183
|
};
|
89
|
-
|
90
|
-
|
91
|
-
default: () => void;
|
184
|
+
trigger: import("vue-types").VueTypeValidableDef<"click" | "hover" | "manual"> & {
|
185
|
+
default: "click" | "hover" | "manual";
|
92
186
|
};
|
93
|
-
|
94
|
-
default:
|
95
|
-
} & {
|
96
|
-
default: string;
|
187
|
+
renderType: import("vue-types").VueTypeDef<"auto" | "shown"> & {
|
188
|
+
default: "auto" | "shown";
|
97
189
|
};
|
98
190
|
arrow: import("vue-types").VueTypeValidableDef<boolean> & {
|
99
191
|
default: boolean;
|
100
192
|
} & {
|
101
193
|
default: boolean;
|
102
194
|
};
|
103
|
-
|
104
|
-
default:
|
195
|
+
padding: import("vue-types").VueTypeValidableDef<number> & {
|
196
|
+
default: number;
|
105
197
|
} & {
|
106
|
-
default:
|
198
|
+
default: number;
|
199
|
+
};
|
200
|
+
offset: import("vue-types").VueTypeDef<number | {
|
201
|
+
mainAxis?: number;
|
202
|
+
crossAxis?: number;
|
203
|
+
alignmentAxis?: number;
|
204
|
+
}> & {
|
205
|
+
default: number | (() => {
|
206
|
+
mainAxis?: number;
|
207
|
+
crossAxis?: number;
|
208
|
+
alignmentAxis?: number;
|
209
|
+
});
|
107
210
|
};
|
108
211
|
boundary: import("vue-types").VueTypeDef<string | HTMLElement>;
|
109
|
-
|
212
|
+
zIndex: import("vue-types").VueTypeValidableDef<number> & {
|
213
|
+
default: number;
|
214
|
+
} & {
|
215
|
+
default: number;
|
216
|
+
};
|
217
|
+
disableTeleport: import("vue-types").VueTypeValidableDef<boolean> & {
|
218
|
+
default: boolean;
|
219
|
+
} & {
|
220
|
+
default: boolean;
|
221
|
+
};
|
222
|
+
autoPlacement: import("vue-types").VueTypeValidableDef<boolean> & {
|
223
|
+
default: boolean;
|
224
|
+
} & {
|
225
|
+
default: boolean;
|
226
|
+
};
|
227
|
+
autoVisibility: import("vue-types").VueTypeValidableDef<boolean> & {
|
228
|
+
default: boolean;
|
229
|
+
} & {
|
230
|
+
default: boolean;
|
231
|
+
};
|
232
|
+
disableOutsideClick: import("vue-types").VueTypeValidableDef<boolean> & {
|
110
233
|
default: boolean;
|
111
234
|
} & {
|
112
235
|
default: boolean;
|
113
236
|
};
|
114
|
-
|
115
|
-
default:
|
237
|
+
disableTransform: import("vue-types").VueTypeValidableDef<boolean> & {
|
238
|
+
default: boolean;
|
239
|
+
} & {
|
240
|
+
default: boolean;
|
241
|
+
};
|
242
|
+
reference: import("vue-types").VueTypeValidableDef<any> & {
|
243
|
+
default: any;
|
244
|
+
};
|
245
|
+
modifiers: import("vue-types").VueTypeValidableDef<unknown[]> & {
|
246
|
+
default: () => unknown[];
|
247
|
+
} & {
|
248
|
+
default: () => unknown[];
|
249
|
+
};
|
250
|
+
popoverDelay: import("vue-types").VueTypeDef<number | number[]> & {
|
251
|
+
default: number | (() => number[]);
|
116
252
|
};
|
117
|
-
|
253
|
+
extCls: import("vue-types").VueTypeValidableDef<string> & {
|
254
|
+
default: string;
|
255
|
+
} & {
|
256
|
+
default: string;
|
257
|
+
};
|
258
|
+
}>> & {
|
259
|
+
onShow?: (...args: any[]) => any;
|
260
|
+
onHide?: (...args: any[]) => any;
|
261
|
+
onClickoutside?: (...args: any[]) => any;
|
262
|
+
onContentMouseenter?: (...args: any[]) => any;
|
263
|
+
onContentMouseleave?: (...args: any[]) => any;
|
264
|
+
onStopHide?: (...args: any[]) => any;
|
265
|
+
}, {
|
118
266
|
width: string | number;
|
119
267
|
height: string | number;
|
120
|
-
|
121
|
-
|
122
|
-
content: string | number;
|
123
|
-
theme: string;
|
124
|
-
transition: string;
|
125
|
-
trigger: string;
|
268
|
+
maxHeight: string | number;
|
269
|
+
extCls: string;
|
126
270
|
arrow: boolean;
|
127
271
|
isShow: boolean;
|
128
|
-
|
129
|
-
|
130
|
-
|
272
|
+
always: boolean;
|
273
|
+
disabled: boolean;
|
274
|
+
content: any;
|
275
|
+
allowHtml: boolean;
|
276
|
+
placement: "auto" | "left" | "right" | "auto-start" | "auto-end" | "top" | "bottom" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
277
|
+
theme: string;
|
278
|
+
trigger: "click" | "hover" | "manual";
|
279
|
+
renderType: "auto" | "shown";
|
280
|
+
padding: number;
|
281
|
+
offset: number | {
|
282
|
+
mainAxis?: number;
|
283
|
+
crossAxis?: number;
|
284
|
+
alignmentAxis?: number;
|
285
|
+
};
|
286
|
+
zIndex: number;
|
287
|
+
disableTeleport: boolean;
|
288
|
+
autoPlacement: boolean;
|
289
|
+
autoVisibility: boolean;
|
290
|
+
disableOutsideClick: boolean;
|
291
|
+
disableTransform: boolean;
|
292
|
+
reference: any;
|
293
|
+
modifiers: unknown[];
|
294
|
+
popoverDelay: number | number[];
|
131
295
|
}>;
|
132
296
|
export default _default;
|
package/lib/popover/popover.less
CHANGED
@@ -1,82 +1,35 @@
|
|
1
1
|
@import '../styles/themes/themes.less';
|
2
2
|
|
3
|
-
.@{bk-prefix}-popover {
|
4
|
-
.bk-popover-reference {
|
5
|
-
display: inline-block;
|
6
|
-
}
|
7
|
-
|
8
|
-
.fade-in-enter-active,
|
9
|
-
.fade-in-linear-leave-active {
|
10
|
-
transition: opacity 200ms linear;
|
11
|
-
}
|
12
3
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
.bk-popover-content {
|
21
|
-
display: none;
|
22
|
-
padding: 7px 14px;
|
23
|
-
font-size: 12px;
|
24
|
-
color: #fff;
|
25
|
-
background: #26323d;
|
26
|
-
border-radius: 4px;
|
27
|
-
box-sizing: border-box;
|
4
|
+
.@{bk-prefix}-popover {
|
5
|
+
&.@{bk-prefix}-pop2-content {
|
6
|
+
position: absolute;
|
7
|
+
display: none;
|
8
|
+
|
9
|
+
padding: 7px 14px;
|
28
10
|
|
29
|
-
|
11
|
+
font-size: 12px;
|
30
12
|
color: #fff;
|
31
13
|
background: #26323d;
|
32
|
-
|
33
|
-
|
34
|
-
&[data-theme^='light'] {
|
35
|
-
color: #26323d;
|
36
|
-
background-color: #fff;
|
37
|
-
box-shadow: 0 0 6px 0 #dcdee5;
|
38
|
-
|
39
|
-
&[data-show] {
|
40
|
-
box-shadow: 0 0 6px 0 #dcdee5;
|
41
|
-
}
|
42
|
-
}
|
43
|
-
|
44
|
-
&[data-show] {
|
45
|
-
display: block;
|
46
|
-
}
|
14
|
+
border-radius: 4px;
|
15
|
+
box-sizing: border-box;
|
47
16
|
|
48
|
-
|
49
|
-
position: absolute;
|
50
|
-
z-index: -1;
|
51
|
-
width: 8px;
|
52
|
-
height: 8px;
|
53
|
-
background: inherit;
|
54
|
-
visibility: hidden;
|
55
|
-
|
56
|
-
&::before {
|
17
|
+
.@{bk-prefix}-pop2-arrow {
|
57
18
|
position: absolute;
|
58
19
|
width: 8px;
|
59
20
|
height: 8px;
|
60
|
-
background:
|
61
|
-
content: '';
|
62
|
-
visibility: visible;
|
21
|
+
background: #333;
|
63
22
|
transform: rotate(45deg);
|
64
23
|
}
|
65
|
-
}
|
66
24
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
&[data-popper-placement^='bottom'] > .arrow {
|
72
|
-
top: -4px;
|
73
|
-
}
|
74
|
-
|
75
|
-
&[data-popper-placement^='left'] > .arrow {
|
76
|
-
right: -4px;
|
77
|
-
}
|
25
|
+
&[data-theme^='light'] {
|
26
|
+
color: #26323d;
|
27
|
+
background-color: #fff;
|
28
|
+
box-shadow: 0 0 6px 0 #dcdee5;
|
78
29
|
|
79
|
-
|
80
|
-
|
30
|
+
.@{bk-prefix}-pop2-arrow {
|
31
|
+
background-color: #fff;
|
32
|
+
}
|
33
|
+
}
|
81
34
|
}
|
82
35
|
}
|