bkui-vue 0.0.1-beta.99 → 0.0.1
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 +360 -36
- package/dist/index.esm.js +30153 -24448
- package/dist/index.umd.js +360 -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.d.ts +2 -2
- package/lib/affix/affix.variable.css +29 -6
- package/lib/affix/index.d.ts +60 -36
- package/lib/alert/alert.css +4 -0
- package/lib/alert/alert.d.ts +11 -9
- package/lib/alert/alert.less +24 -19
- package/lib/alert/alert.variable.css +33 -6
- package/lib/alert/index.d.ts +82 -58
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +2 -2
- package/lib/animate-number/index.d.ts +58 -25
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +4 -4
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +37 -6
- package/lib/backtop/index.d.ts +65 -47
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +2 -5
- package/lib/badge/badge.d.ts +3 -3
- package/lib/badge/badge.less +4 -5
- package/lib/badge/badge.variable.css +31 -11
- package/lib/badge/index.d.ts +67 -64
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +5 -3
- package/lib/breadcrumb/breadcrumb.css +43 -0
- package/lib/breadcrumb/breadcrumb.d.ts +2 -2
- package/lib/breadcrumb/breadcrumb.variable.css +77 -11
- package/lib/breadcrumb/index.d.ts +65 -41
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +4 -4
- package/lib/button/button.css +21 -3
- package/lib/button/button.d.ts +46 -33
- package/lib/button/button.less +25 -5
- package/lib/button/button.variable.css +50 -9
- package/lib/button/index.d.ts +121 -96
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +45 -2
- package/lib/card/card.d.ts +2 -1
- package/lib/card/card.less +2 -2
- package/lib/card/card.variable.css +78 -12
- package/lib/card/index.d.ts +66 -64
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +60 -6
- package/lib/cascader/cascader.css +197 -11
- package/lib/cascader/cascader.d.ts +108 -25
- package/lib/cascader/cascader.less +148 -11
- package/lib/cascader/cascader.variable.css +234 -25
- package/lib/cascader/index.d.ts +378 -176
- package/lib/cascader/index.js +2 -1
- package/lib/cascader/index.js.LICENSE.txt +1 -0
- package/lib/cascader/interface.d.ts +8 -1
- package/lib/cascader/node.d.ts +9 -2
- package/lib/cascader/store.d.ts +13 -1
- package/lib/checkbox/checkbox-group.d.ts +18 -2
- package/lib/checkbox/checkbox.css +38 -11
- package/lib/checkbox/checkbox.d.ts +40 -18
- package/lib/checkbox/checkbox.less +68 -33
- package/lib/checkbox/checkbox.variable.css +67 -17
- package/lib/checkbox/common.d.ts +1 -0
- package/lib/checkbox/index.d.ts +133 -72
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.css +27 -7
- package/lib/code-diff/code-diff.d.ts +7 -7
- package/lib/code-diff/code-diff.less +42 -7
- package/lib/code-diff/code-diff.variable.css +56 -13
- package/lib/code-diff/index.d.ts +30 -43
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse-panel.d.ts +104 -0
- package/lib/collapse/collapse.css +58 -19
- package/lib/collapse/collapse.d.ts +59 -42
- package/lib/collapse/collapse.less +106 -46
- package/lib/collapse/collapse.variable.css +87 -25
- package/lib/collapse/index.d.ts +271 -46
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/props.d.ts +131 -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 +255 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +13 -0
- package/lib/components.js +1 -1
- 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/{popover2/popover2.variable.css → config-provider/config-provider.variable.css} +29 -31
- package/lib/config-provider/index.d.ts +646 -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 +3 -3
- package/lib/container/container.css +43 -0
- package/lib/container/container.d.ts +2 -2
- package/lib/container/container.less +4 -4
- package/lib/container/container.variable.css +72 -6
- package/lib/container/index.d.ts +30 -49
- package/lib/container/index.js +1 -1
- package/lib/container/interface.d.ts +7 -0
- package/lib/container/row.d.ts +2 -2
- 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 +30 -1
- package/lib/date-picker/date-picker.d.ts +55 -35
- package/lib/date-picker/date-picker.less +109 -74
- package/lib/date-picker/date-picker.variable.css +59 -7
- package/lib/date-picker/index.d.ts +198 -218
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +20 -10
- package/lib/date-picker/panel/date-range.d.ts +345 -0
- package/lib/date-picker/panel/date.d.ts +206 -0
- package/lib/date-picker/panel/time-range.d.ts +495 -0
- package/lib/date-picker/panel/time.d.ts +451 -0
- package/lib/date-picker/props.d.ts +48 -5
- package/lib/date-picker/time-picker.d.ts +390 -0
- package/lib/date-picker/utils.d.ts +22 -2
- package/lib/dialog/dialog.css +94 -34
- package/lib/dialog/dialog.d.ts +57 -93
- package/lib/dialog/dialog.less +85 -43
- package/lib/dialog/dialog.variable.css +216 -34
- package/lib/dialog/index.d.ts +194 -334
- package/lib/dialog/index.js +2 -1
- package/lib/dialog/index.js.LICENSE.txt +1 -0
- 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 -1
- package/lib/divider/divider.d.ts +17 -17
- package/lib/divider/divider.variable.css +29 -6
- package/lib/divider/index.d.ts +85 -61
- package/lib/divider/index.js +1 -1
- package/lib/divider/props.d.ts +6 -6
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +2 -2
- package/lib/dropdown/dropdown.css +34 -7
- package/lib/dropdown/dropdown.d.ts +46 -15
- package/lib/dropdown/dropdown.less +42 -36
- package/lib/dropdown/dropdown.variable.css +63 -13
- package/lib/dropdown/index.d.ts +136 -65
- package/lib/dropdown/index.js +1 -1
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +33 -13
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +69 -20
- package/lib/exception/index.d.ts +91 -43
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +2 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +29 -6
- package/lib/fixed-navbar/index.d.ts +60 -36
- package/lib/form/compose-form-item.d.ts +4 -2
- package/lib/form/form-item.d.ts +15 -9
- package/lib/form/form.css +32 -8
- package/lib/form/form.d.ts +25 -7
- package/lib/form/form.less +85 -53
- package/lib/form/form.variable.css +61 -14
- package/lib/form/index.d.ts +109 -51
- package/lib/form/index.js +1 -1
- package/lib/form/type.d.ts +5 -4
- package/lib/form/utils.d.ts +2 -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.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- 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.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- 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.js +1 -1
- 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.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- 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 -0
- 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.js +1 -1
- 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 -69
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- 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.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- 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 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.d.ts +4 -0
- package/lib/icon/transfer.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.d.ts +4 -0
- package/lib/icon/unfull-screen.js +1 -0
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.d.ts +4 -0
- package/lib/icon/weixin-pro.js +1 -0
- package/lib/icon/weixin.js +1 -1
- 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 +252 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -1
- package/lib/info-box/index.d.ts +7 -0
- package/lib/info-box/index.js +2 -0
- package/lib/info-box/index.js.LICENSE.txt +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 +178 -228
- package/lib/input/index.js +1 -1
- package/lib/input/input.css +168 -23
- package/lib/input/input.d.ts +59 -37
- package/lib/input/input.less +104 -22
- package/lib/input/input.variable.css +228 -61
- package/lib/link/index.d.ts +80 -53
- package/lib/link/index.js +1 -1
- 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 +41 -18
- package/lib/loading/directive.d.ts +14 -0
- package/lib/loading/index.d.ts +160 -56
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +72 -29
- package/lib/loading/loading.d.ts +91 -15
- package/lib/loading/loading.less +21 -19
- package/lib/loading/loading.variable.css +117 -51
- 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 +75 -34
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +2 -2
- package/lib/menu/menu-item.d.ts +5 -1
- package/lib/menu/menu.css +43 -0
- package/lib/menu/menu.d.ts +2 -2
- package/lib/menu/menu.variable.css +90 -24
- package/lib/menu/submenu.d.ts +5 -1
- package/lib/menu/submenu.variable.css +29 -6
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +2 -1
- package/lib/message/index.js.LICENSE.txt +6 -0
- package/lib/message/message.css +166 -2
- package/lib/message/message.less +222 -7
- package/lib/message/message.variable.css +195 -8
- package/lib/message/messageConstructor.d.ts +136 -27
- package/lib/modal/index.d.ts +201 -246
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +39 -6
- package/lib/modal/modal.d.ts +54 -61
- package/lib/modal/modal.less +8 -10
- package/lib/modal/modal.variable.css +161 -6
- package/lib/modal/props.mixin.d.ts +16 -23
- package/lib/navigation/index.d.ts +90 -68
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +6 -3
- package/lib/navigation/navigation.d.ts +12 -4
- package/lib/navigation/navigation.variable.css +29 -6
- package/lib/notify/index.js +1 -1
- package/lib/notify/notify.css +8 -4
- package/lib/notify/notify.less +18 -13
- package/lib/notify/notify.variable.css +37 -10
- package/lib/notify/notifyConstructor.d.ts +19 -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 +195 -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 +89 -90
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +17 -6
- package/lib/pagination/pagination.less +59 -30
- package/lib/pagination/pagination.variable.css +83 -34
- package/lib/pagination/type.d.ts +1 -1
- 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 +249 -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 +409 -173
- package/lib/popover/index.js +1 -1
- package/lib/popover/plugin-popover.d.ts +12 -0
- package/lib/popover/popover.css +10 -53
- package/lib/popover/popover.d.ts +189 -58
- package/lib/popover/popover.less +19 -68
- package/lib/popover/popover.variable.css +40 -60
- package/lib/popover/props.d.ts +90 -37
- package/lib/popover/reference.d.ts +2 -0
- package/lib/popover/root.d.ts +27 -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 +54 -393
- package/lib/popover2/index.js +1 -1
- package/lib/popover2/popover.d.ts +2 -0
- package/lib/preset.d.ts +264 -2
- package/lib/preset.js +1 -1
- package/lib/process/index.d.ts +69 -52
- package/lib/process/index.js +2 -1
- package/lib/process/index.js.LICENSE.txt +1 -0
- package/lib/process/process.css +22 -0
- package/lib/process/process.d.ts +5 -4
- package/lib/process/process.less +36 -8
- package/lib/process/process.variable.css +51 -6
- package/lib/progress/index.d.ts +100 -121
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +43 -0
- package/lib/progress/progress.d.ts +17 -15
- package/lib/progress/progress.less +8 -8
- package/lib/progress/progress.variable.css +76 -10
- package/lib/radio/index.d.ts +116 -58
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +12 -9
- package/lib/radio/radio-group.d.ts +36 -5
- package/lib/radio/radio.css +133 -62
- package/lib/radio/radio.d.ts +9 -5
- package/lib/radio/radio.less +262 -173
- package/lib/radio/radio.variable.css +166 -72
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +78 -28
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +14 -3
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +82 -80
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.css +6 -15
- package/lib/resize-layout/resize-layout.d.ts +10 -9
- package/lib/resize-layout/resize-layout.less +32 -41
- package/lib/resize-layout/resize-layout.variable.css +35 -21
- package/lib/search-select/index.d.ts +892 -0
- package/lib/search-select/index.js +2 -0
- package/lib/search-select/index.js.LICENSE.txt +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 +4 -11
- package/lib/select/index.d.ts +1471 -918
- package/lib/select/index.js +2 -1
- package/lib/select/index.js.LICENSE.txt +1 -0
- package/lib/select/option.d.ts +17 -6
- package/lib/select/optionGroup.d.ts +2 -2
- package/lib/select/select.css +211 -140
- package/lib/select/select.d.ts +654 -205
- package/lib/select/select.less +331 -189
- package/lib/select/select.variable.css +240 -146
- package/lib/select/selectTagInput.d.ts +38 -15
- package/lib/select/type.d.ts +20 -14
- 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 +16 -12
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +18 -5
- package/lib/shared/pop-manager.d.ts +13 -3
- package/lib/shared/popover.d.ts +1 -1
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/utils.d.ts +19 -0
- package/lib/shared/vue-types.d.ts +116 -13
- package/lib/sideslider/index.d.ts +158 -252
- package/lib/sideslider/index.js +2 -1
- package/lib/sideslider/index.js.LICENSE.txt +1 -0
- package/lib/sideslider/sideslider.css +10 -8
- package/lib/sideslider/sideslider.d.ts +46 -71
- package/lib/sideslider/sideslider.less +19 -17
- package/lib/sideslider/sideslider.variable.css +39 -14
- package/lib/slider/index.d.ts +82 -112
- package/lib/slider/index.js +2 -1
- package/lib/slider/index.js.LICENSE.txt +1 -0
- package/lib/slider/slider-button.d.ts +3 -2
- package/lib/slider/slider.d.ts +6 -6
- package/lib/slider/slider.variable.css +29 -6
- package/lib/steps/index.d.ts +105 -96
- package/lib/steps/index.js +2 -1
- package/lib/steps/index.js.LICENSE.txt +1 -0
- package/lib/steps/steps.css +1 -0
- package/lib/steps/steps.d.ts +35 -34
- package/lib/steps/steps.less +63 -62
- package/lib/steps/steps.variable.css +30 -6
- package/lib/styles/index.d.ts +6 -2
- package/lib/styles/mixins/mixins.css +43 -0
- package/lib/styles/mixins/mixins.less +1 -0
- package/lib/styles/mixins/mixins.variable.css +43 -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 +37 -6
- package/lib/swiper/index.d.ts +60 -44
- package/lib/swiper/index.js +1 -1
- package/lib/swiper/swiper.d.ts +1 -1
- package/lib/swiper/swiper.less +15 -13
- package/lib/swiper/swiper.variable.css +122 -0
- package/lib/switcher/index.d.ts +94 -87
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +44 -1
- package/lib/switcher/switcher.d.ts +17 -11
- package/lib/switcher/switcher.less +29 -52
- package/lib/switcher/switcher.variable.css +90 -24
- package/lib/tab/index.d.ts +163 -124
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +92 -43
- package/lib/tab/tab-nav.d.ts +46 -14
- package/lib/tab/tab-panel.d.ts +16 -9
- package/lib/tab/tab.css +135 -58
- package/lib/tab/tab.d.ts +42 -20
- package/lib/tab/tab.less +164 -77
- package/lib/tab/tab.variable.css +164 -64
- 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 +305 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +94 -6
- package/lib/table/index.d.ts +697 -169
- package/lib/table/index.js +1 -1
- 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 +59 -20
- 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 +36 -9
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +43 -6
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +52 -7
- package/lib/table/plugins/settings.variable.css +72 -12
- 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 +271 -23
- package/lib/table/render.d.ts +32 -12
- package/lib/table/table.css +961 -69
- package/lib/table/table.d.ts +170 -27
- package/lib/table/table.less +195 -69
- package/lib/table/table.variable.css +990 -75
- package/lib/table/use-column.d.ts +12 -0
- package/lib/table/use-common.d.ts +71 -11
- package/lib/table/utils.d.ts +33 -7
- package/lib/table-column/index.d.ts +797 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +89 -68
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +46 -13
- package/lib/tag/tag.d.ts +17 -12
- package/lib/tag/tag.less +58 -21
- package/lib/tag/tag.variable.css +75 -19
- package/lib/tag-input/common.d.ts +13 -1
- package/lib/tag-input/index.d.ts +570 -269
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/list-tag-render.d.ts +2 -5
- package/lib/tag-input/tag-input.css +23 -27
- package/lib/tag-input/tag-input.d.ts +304 -45
- package/lib/tag-input/tag-input.less +103 -106
- package/lib/tag-input/tag-input.variable.css +52 -33
- package/lib/tag-input/tag-props.d.ts +142 -8
- package/lib/tag-input/tag-render.d.ts +31 -5
- package/lib/time-picker/index.d.ts +833 -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 +64 -32
- package/lib/timeline/index.js +1 -1
- package/lib/timeline/timeline.css +11 -4
- package/lib/timeline/timeline.d.ts +4 -3
- package/lib/timeline/timeline.less +48 -36
- package/lib/timeline/timeline.variable.css +40 -10
- package/lib/transfer/index.d.ts +152 -81
- package/lib/transfer/index.js +1 -1
- package/lib/transfer/props.d.ts +5 -0
- package/lib/transfer/transfer.css +121 -41
- package/lib/transfer/transfer.d.ts +35 -3
- package/lib/transfer/transfer.less +103 -46
- package/lib/transfer/transfer.variable.css +155 -52
- package/lib/tree/constant.d.ts +22 -2
- package/lib/tree/index.d.ts +236 -141
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +68 -12
- package/lib/tree/tree.css +176 -7
- package/lib/tree/tree.d.ts +91 -20
- package/lib/tree/tree.less +49 -1
- package/lib/tree/tree.variable.css +205 -13
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +3 -2
- package/lib/tree/use-node-attribute.d.ts +11 -0
- package/lib/tree/use-node-drag.d.ts +1 -1
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/tree/util.d.ts +2 -0
- package/lib/upload/index.d.ts +508 -1
- package/lib/upload/index.js +2 -1
- package/lib/upload/index.js.LICENSE.txt +1 -0
- package/lib/upload/props.d.ts +0 -2
- package/lib/upload/upload-list.d.ts +3 -2
- package/lib/upload/upload-trigger.d.ts +1 -4
- package/lib/upload/upload.css +58 -5
- package/lib/upload/upload.d.ts +10 -16
- package/lib/upload/upload.less +19 -8
- package/lib/upload/upload.type.d.ts +12 -12
- package/lib/upload/upload.variable.css +113 -37
- package/lib/upload/use-file-handler.d.ts +2 -25
- package/lib/virtual-render/index.d.ts +100 -150
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +15 -1
- package/lib/virtual-render/virtual-render.css +17 -17
- package/lib/virtual-render/virtual-render.d.ts +39 -4
- 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 +47 -41
- package/LICENSE.txt +0 -22
- package/lib/popover2/arrow.d.ts +0 -2
- package/lib/popover2/content.d.ts +0 -24
- package/lib/popover2/popover2.css +0 -25
- package/lib/popover2/popover2.d.ts +0 -180
- package/lib/popover2/popover2.less +0 -35
- package/lib/popover2/props.d.ts +0 -92
- package/lib/popover2/reference.d.ts +0 -2
- package/lib/popover2/use-floating.d.ts +0 -15
- package/lib/popover2/use-popper-id.d.ts +0 -5
package/lib/select/type.d.ts
CHANGED
@@ -1,26 +1,32 @@
|
|
1
|
-
import Popover from '
|
1
|
+
import Popover from '../popover';
|
2
|
+
import { SelectedTypeEnum } from '../shared';
|
2
3
|
import Option from './option';
|
3
4
|
import Group from './optionGroup';
|
4
5
|
import SelectTagInput from './selectTagInput';
|
5
|
-
export
|
6
|
-
|
7
|
-
|
8
|
-
export
|
6
|
+
export interface OptionInstanceType extends InstanceType<typeof Option> {
|
7
|
+
optionID: string;
|
8
|
+
}
|
9
|
+
export type GroupInstanceType = InstanceType<typeof Group>;
|
10
|
+
export type PopoverInstanceType = InstanceType<typeof Popover>;
|
11
|
+
export type SelectTagInputType = InstanceType<typeof SelectTagInput>;
|
9
12
|
export interface ISelectContext {
|
10
13
|
multiple?: boolean;
|
11
|
-
selected:
|
14
|
+
selected: ISelected[];
|
12
15
|
activeOptionValue: any;
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
16
|
+
showSelectedIcon: boolean;
|
17
|
+
selectedStyle: SelectedTypeEnum;
|
18
|
+
register(key: any, option: OptionInstanceType): any;
|
19
|
+
unregister(key: any): any;
|
20
|
+
registerGroup(key: any, option: GroupInstanceType): any;
|
21
|
+
unregisterGroup(key: any): any;
|
17
22
|
handleOptionSelected(option: OptionInstanceType): void;
|
23
|
+
handleGetLabelByValue(value: any): string | number;
|
18
24
|
}
|
19
25
|
export interface IOptionGroupContext {
|
20
26
|
disabled: boolean;
|
21
27
|
groupCollapse: boolean;
|
22
|
-
register(option: OptionInstanceType): any;
|
23
|
-
unregister(
|
28
|
+
register(key: any, option: OptionInstanceType): any;
|
29
|
+
unregister(key: any): any;
|
24
30
|
}
|
25
31
|
export interface ISelectState {
|
26
32
|
currentPlaceholder: string;
|
@@ -29,7 +35,7 @@ export interface ISelectState {
|
|
29
35
|
export interface IPopoverConfig {
|
30
36
|
popoverMinWidth: number;
|
31
37
|
}
|
32
|
-
export interface
|
33
|
-
value:
|
38
|
+
export interface ISelected {
|
39
|
+
value: string;
|
34
40
|
label: string | number;
|
35
41
|
}
|
package/lib/shared/helper.d.ts
CHANGED
@@ -90,3 +90,12 @@ export declare function mergerIfFn(key: string, target: any, source: any): void;
|
|
90
90
|
* @returns
|
91
91
|
*/
|
92
92
|
export declare function isElement(obj: any): boolean;
|
93
|
+
/**
|
94
|
+
* Whether the text content is clipped due to CSS overflow, as in showing `...`.
|
95
|
+
*/
|
96
|
+
export declare function hasOverflowEllipsis(element: HTMLElement): boolean;
|
97
|
+
/**
|
98
|
+
* Sets the `title` attribute in the event's element target, when the text
|
99
|
+
* content is clipped due to CSS overflow, as in showing `...`.
|
100
|
+
*/
|
101
|
+
export declare function maybeShowTooltip(target: HTMLElement, title: string): void;
|
package/lib/shared/index.d.ts
CHANGED
@@ -23,18 +23,19 @@
|
|
23
23
|
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
24
24
|
* IN THE SOFTWARE.
|
25
25
|
*/
|
26
|
-
import { Plugin } from 'vue';
|
27
|
-
export * from './
|
28
|
-
export * from './popover';
|
29
|
-
export * from './pop-manager';
|
30
|
-
export * from './mask-manager';
|
26
|
+
import { Directive, Plugin } from 'vue';
|
27
|
+
export * from './dom';
|
31
28
|
export * from './helper';
|
32
|
-
export * from './vue-types';
|
33
|
-
export * from './scrollbar-width';
|
34
|
-
export * from './utils';
|
35
|
-
export * from './token';
|
36
29
|
export * from './hooks/use-form';
|
37
30
|
export * from './hooks/use-form-item';
|
31
|
+
export * from './mask-manager';
|
32
|
+
export * from './pop-manager';
|
33
|
+
export * from './popover';
|
34
|
+
export * from './scrollbar-width';
|
35
|
+
export * from './token';
|
36
|
+
export * from './utils';
|
37
|
+
export * from './vue-types';
|
38
|
+
export * from './z-index-manager';
|
38
39
|
export declare function classes(dynamicCls: object, constCls?: string): string;
|
39
40
|
export declare const EMPTY_OBJ: any;
|
40
41
|
export declare const noop: () => void;
|
@@ -44,8 +45,11 @@ export interface OriginComponent {
|
|
44
45
|
name: string;
|
45
46
|
install?: Plugin;
|
46
47
|
}
|
47
|
-
export declare const withInstall: <T extends OriginComponent>(component: T) => T & Plugin
|
48
|
-
export declare const withInstallProps: <T extends OriginComponent, K extends Record<string, unknown>>(component: T, childComponents: K, isProps?: boolean
|
48
|
+
export declare const withInstall: <T extends OriginComponent>(component: T) => T & Plugin<any[]>;
|
49
|
+
export declare const withInstallProps: <T extends OriginComponent, K extends Record<string, unknown>, D extends Directive<any, any>>(component: T, childComponents: K, isProps?: boolean, directive?: {
|
50
|
+
name: string;
|
51
|
+
directive: D;
|
52
|
+
}) => T & Plugin<any[]> & Readonly<K>;
|
49
53
|
/**
|
50
54
|
* 解析当前组件ClassName,自动添加前缀
|
51
55
|
* @param clsName 当前ClassName
|
@@ -70,4 +74,4 @@ export declare function debounce(delay: number, fn: Function, immediate?: boolea
|
|
70
74
|
* @returns object 去除属性之后的对象
|
71
75
|
*/
|
72
76
|
export declare function filterProperty(data: object, filter: string[]): any;
|
73
|
-
export declare function arrayEqual(arr1?: string[]
|
77
|
+
export declare function arrayEqual(arr1?: Array<string | number | string[]>, arr2?: Array<string | number | string[]>): any;
|
package/lib/shared/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@popperjs/core"),require("vue-types"),require("vue"));else if("function"==typeof define&&define.amd)define(["@popperjs/core","vue-types","vue"],t);else{var n="object"==typeof exports?t(require("@popperjs/core"),require("vue-types"),require("vue")):t(e["@popperjs/core"],e["vue-types"],e.vue);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n)=>(()=>{var r={8022:(e,t,n)=>{var r=n(4481),i=n(6426),o=i;o.v1=r,o.v4=i,e.exports=o},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var r=n||0,i=t;return[i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],"-",i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]],i[e[r++]]].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 r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},4481:(e,t,n)=>{var r,i,o=n(9157),s=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],p=(e=e||{}).node||r,f=void 0!==e.clockseq?e.clockseq:i;if(null==p||null==f){var d=o();null==p&&(p=r=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==f&&(f=i=16383&(d[6]<<8|d[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,y=h-a+(v-u)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||h>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,u=v,i=f;var g=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var b=0;b<6;++b)l[c+b]=p[b];return t||s(l)}},6426:(e,t,n)=>{var r=n(9157),i=n(8725);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||r)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||i(s)}},5798:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=n},210:e=>{"use strict";e.exports=t}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={exports:{}};return r[e](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";function e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function n(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i,a;o.r(s),o.d(s,{BKLAYERD_INDEX_EFAULT_VALUE:()=>u,BKLAYERTYPE:()=>a,BKPopover:()=>P,BkMaskManager:()=>U,EMPTY_OBJ:()=>ne,Placements:()=>H,PropTypes:()=>J,Size:()=>F,arrayEqual:()=>pe,bKMaskManager:()=>C,bkPopIndexManager:()=>_,bkZIndexManager:()=>c,classes:()=>te,clone:()=>x,debounce:()=>ce,elementsEqual:()=>O,filterProperty:()=>le,finiteOrDefault:()=>k,formItemKey:()=>$,formKey:()=>Z,getPopContainerId:()=>L,isArray:()=>g,isElement:()=>M,isEmpty:()=>y,isEmptyObj:()=>oe,isFinite:()=>b,isNullOrUndef:()=>v,isObject:()=>m,merge:()=>T,mergeIf:()=>E,mergerFn:()=>w,mergerIfFn:()=>j,noop:()=>re,random:()=>R,renderEmptyVNode:()=>ie,resolveClassName:()=>ue,scrollbarWidth:()=>W,stringEnum:()=>G,useForm:()=>Q,useFormItem:()=>ee,valueOrDefault:()=>I,withInstall:()=>se,withInstallProps:()=>ae}),function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(a||(a={}));var u=(r(i={},a.BOTTOM,0),r(i,a.CONTENT,1),r(i,a.NAVI,100),r(i,a.FULLSCREEN,1e3),r(i,a.MODAL,3e3),r(i,a.PLUGINS,8e3),r(i,a.MESSAGE,1e4),r(i,a.POPPER,99999),i),c=new(function(){function t(){e(this,t),this.storageLayerIndexValue={},this.copyDefaultValue()}return n(t,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[a.MODAL]=this.storageLayerIndexValue[a.MODAL]+1,this.storageLayerIndexValue[a.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(a.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(a.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(a.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(a.NAVI)}},{key:"getPopperIndex",value:function(){return u.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,r({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,r({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(u).reduce((function(e,t){return Object.assign(e,r({},t,{value:u[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(u,e)}}]),t}());function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return p(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)?p(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var d=o(8022),h=o(5798);function v(e){return null==e}function y(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return""===e||!!t&&v(e)}function g(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function m(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var b=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function k(e,t){return b(e)?e:t}function I(e,t){return void 0===e?t:e}function O(e,t){var n,r,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function x(e){if(g(e))return e.map(x);if(m(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=x(e[n[i]]);return t}return e}function S(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function w(e,t,n,r){if(S(e)){var i=t[e],o=n[e];m(i)&&m(o)?T(i,o,r):t[e]=x(o)}}function T(e,t,n){var r=g(t)?t:[t],i=r.length;if(!m(e))return e;for(var o=(n=n||{}).merger||w,s=0;s<i;++s)if(m(t=r[s]))for(var a=Object.keys(t),u=0,c=a.length;u<c;++u)o(a[u],e,t,n);return e}function E(e,t){return T(e,t,{merger:j})}function j(e,t,n){if(S(e)){var r=t[e],i=n[e];m(r)&&m(i)?E(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=x(i))}}function M(e){try{return e instanceof HTMLElement}catch(t){return"object"===l(e)&&1===e.nodeType&&"object"===l(e.style)&&"object"===l(e.ownerDocument)}}var P=function(){function t(n,r,i){var o,s;e(this,t),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(n),this.popperRefer=this.resolveInputSelectorToHtmlElement(r),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(o=this.popperRefer)||void 0===o?void 0:o.parentElement,this.isShow=!!(null===(s=this.instanceOptions)||void 0===s?void 0:s.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return n(t,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(f(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;this.always||(null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(f(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();M(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();M(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=T({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),r=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof r&&(r.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,h.createPopper)(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===l(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return M(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):!e.isShow||e.isSameElement(t.target,e.popperRefer)||e.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),t}(),A=null,L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===A){A="id_".concat((0,d.v4)());var t=document.createElement("div");t.setAttribute("id",A),t.setAttribute("data-popper-id",A),document.body.append(t)}return"".concat(e).concat(A)},N="abcdefghijklmnopqrstuvwxyz0123456789",R=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N,n="",r=0;r<e;r++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},U=function(){function t(n){e(this,t),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"absolute",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"};var r=n||{},i=r.multiInstance,o=void 0!==i&&i,s=r.maskAttrTag,a=void 0===s?"auto":s,u=r.parentNode,c=void 0===u?document.body:u,l=r.maskStyle,p=void 0===l?{}:l;this.activeInstance=void 0,this.multiInstance=o,this.uniqueMaskAttrTag=this.getMaskAttrTag(a),this.parentNode=c||document,this.mask=this.getMask(),this.backupMask=this.createMask("data-bk-backup-uid"),this.setMaskStyle(Object.assign({},this.maskStyle,p))}return n(t,[{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=null!=i?i:R(16),a=/-?\d+/.test("".concat(t))?t:c.getModalNextIndex(),u=Object.assign({},this.maskStyle,r||{});if(!n&&this.lastUUID){var l=this.zIndexStore.get(this.lastUUID);u=l.style}this.storeMaskInsCfg({zIndex:a,style:Object.assign({},u),uuid:s,preUID:this.lastUUID}),this.setMaskStyle(u),this.mask.style.setProperty("display","block"),this.mask.style.setProperty("z-index","".concat(a)),this.backupMask.style.setProperty("z-index","".concat(a-1)),e&&(o&&e.style.setProperty("z-index","".concat(a+1)),this.activeInstance=e,o||this.appendContentToMask(e))}},{key:"hide",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=null!=r?r:this.lastUUID;this.mask.style.setProperty("display","none"),t||(null==n||n.remove(),null===(e=this.activeInstance)||void 0===e||e.remove()),this.activeInstance=void 0,this.popIndexStore(i)}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){e&&this.backupMask.append(e)}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"getMask",value:function(){if(this.multiInstance)return this.createMask();var e=this.parentNode.querySelector("[data-bkmask-uid='".concat(this.uniqueMaskAttrTag,"']"));return e||(e=this.createMask()),e}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?"__bk_mask_".concat(R(16)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),t}(),C=new U({}),D=function(){function t(){e(this,t),this.popInstanceList=[],this.uuidAttrName="data-bk-pop-uuid"}return n(t,[{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(e){var o="number"==typeof i?i:c.getModalNextIndex(),s=R(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.push({uuid:s,zIndex:o,content:e,showMask:t,appendStyle:n}),t&&C.backupActiveInstance(),C.show(e,o,t,n,s,r)}else console.warn("pop show error: content is null or undefined")}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();C.popIndexStore(t.uuid),t.remove()}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],r=n.zIndex,i=n.content,o=n.showMask,s=n.appendStyle,a=n.uuid;C.show(i,r,o,s,a)}else C.hide()}}},{key:"hide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null==e?void 0:e.getAttribute(this.uuidAttrName);if(n){var r=this.popInstanceList.findIndex((function(e){return e.uuid===n}));r>=0&&(t||this.popInstanceList[r].content.remove(),this.popInstanceList.splice(r,1),C.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):C.hide(t))}else null==e||e.remove()}}]),t}(),_=new D;function V(e,t){return V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},V(e,t)}function B(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}var z=o(210);var F,H,K=(0,z.createTypes)({});function G(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}!function(e){e.Small="small",e.Large="large"}(F||(F={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(H||(H={}));var Y,J=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(s,t);var r,i,o=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=q(r);if(i){var n=q(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return B(this,e)});function s(){return e(this,s),o.apply(this,arguments)}return n(s,null,[{key:"size",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["small","default","large"];return(0,z.toType)("Size",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid size, ".concat(t,", the size must be one of 【").concat(e.join(" | "),"】")),1))},default:"default"})}},{key:"theme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["primary","warning","success","danger"];return(0,z.toType)("Theme",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))}})}},{key:"placement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top","left","right","bottom"];return(0,z.toType)("Placements",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid placements, ".concat(t,", the placement must be one of 【").concat(e.join(" | "),"】")),1))},default:"top"})}},{key:"commonType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"commonType";return(0,z.toType)(t.replace(/^\S/,(function(e){return e.toUpperCase()})),{type:String,validator:function(n){var r=e.includes(n);return r||console.error("invalid ".concat(t,", ").concat(n,", the ").concat(t," must be one of 【").concat(e.join(" | "),"】")),r},default:e[0]})}},{key:"style",value:function(){return(0,z.toType)("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return(0,z.toType)("positions",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),1))},default:"top-center"})}}]),s}(K);function W(){if(void 0!==Y)return Y;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var r=n.offsetWidth;return e.parentNode.removeChild(e),Y=t-r}var Z=Symbol("form"),$=Symbol("formItem"),X=o(748),Q=function(){return(0,X.inject)(Z)},ee=function(){return(0,X.inject)($,ne)};function te(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")}var ne=Object.create({}),re=function(){},ie=function(){return null},oe=function(e){return Object.keys(e).length<1},se=function(e){return e.install=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.prefix,i=t.config.globalProperties.bkUIPrefix||r||"Bk";t.component(i+e.name,e)},e},ae=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.install=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.prefix,s=r.config.globalProperties.bkUIPrefix||o||"Bk";r.component(s+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(s+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk";return"".concat(t,"-").concat(e)}function ce(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,s=arguments;if(e&&clearTimeout(e),i){var a=!e;e=setTimeout((function(){e=null}),n),a&&(t=r.apply(o,s))}else e=setTimeout((function(){r.apply(o,s)}),n);return t};return o.cancel=function(){clearTimeout(e),e=null},o}function le(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function pe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}})(),s})()));
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"),require("lodash"),require("@popperjs/core"),require("vue-types"));else if("function"==typeof define&&define.amd)define(["vue","lodash","@popperjs/core","vue-types"],t);else{var n="object"==typeof exports?t(require("vue"),require("lodash"),require("@popperjs/core"),require("vue-types")):t(e.vue,e.lodash,e["@popperjs/core"],e["vue-types"]);for(var i in n)("object"==typeof exports?exports:e)[i]=n[i]}}(self,((e,t,n,i)=>(()=>{var r={8022:(e,t,n)=>{var i=n(4481),r=n(6426),o=r;o.v1=i,o.v4=r,e.exports=o},8725:e=>{for(var t=[],n=0;n<256;++n)t[n]=(n+256).toString(16).substr(1);e.exports=function(e,n){var i=n||0,r=t;return[r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],"-",r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]],r[e[i++]]].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 i=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),i[t]=e>>>((3&t)<<3)&255;return i}}},4481:(e,t,n)=>{var i,r,o=n(9157),s=n(8725),a=0,u=0;e.exports=function(e,t,n){var c=t&&n||0,l=t||[],p=(e=e||{}).node||i,f=void 0!==e.clockseq?e.clockseq:r;if(null==p||null==f){var d=o();null==p&&(p=i=[1|d[0],d[1],d[2],d[3],d[4],d[5]]),null==f&&(f=r=16383&(d[6]<<8|d[7]))}var h=void 0!==e.msecs?e.msecs:(new Date).getTime(),v=void 0!==e.nsecs?e.nsecs:u+1,y=h-a+(v-u)/1e4;if(y<0&&void 0===e.clockseq&&(f=f+1&16383),(y<0||h>a)&&void 0===e.nsecs&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=h,u=v,r=f;var g=(1e4*(268435455&(h+=122192928e5))+v)%4294967296;l[c++]=g>>>24&255,l[c++]=g>>>16&255,l[c++]=g>>>8&255,l[c++]=255&g;var m=h/4294967296*1e4&268435455;l[c++]=m>>>8&255,l[c++]=255&m,l[c++]=m>>>24&15|16,l[c++]=m>>>16&255,l[c++]=f>>>8|128,l[c++]=255&f;for(var k=0;k<6;++k)l[c+k]=p[k];return t||s(l)}},6426:(e,t,n)=>{var i=n(9157),r=n(8725);e.exports=function(e,t,n){var o=t&&n||0;"string"==typeof e&&(t="binary"===e?new Array(16):null,e=null);var s=(e=e||{}).random||(e.rng||i)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t)for(var a=0;a<16;++a)t[o+a]=s[a];return t||r(s)}},5798:e=>{"use strict";e.exports=n},467:e=>{"use strict";e.exports=t},748:t=>{"use strict";t.exports=e},210:e=>{"use strict";e.exports=i}},o={};function s(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return r[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{"use strict";s.r(a),s.d(a,{AlignEnum:()=>ce,BKLAYERD_INDEX_EFAULT_VALUE:()=>H,BKLAYERTYPE:()=>N,BKPopIndexManager:()=>K,BKPopover:()=>$,BkMaskManager:()=>q,DialogTypeEnum:()=>he,DirectionEnum:()=>ve,EMPTY_OBJ:()=>Pe,InputBehaviorEnum:()=>me,InputBehaviorType:()=>je,LineStyleEnum:()=>ye,PlacementEnum:()=>pe,Placements:()=>ae,PropTypes:()=>Le,RenderDirectiveEnum:()=>ue,RenderType:()=>de,SelectedType:()=>Ne,SelectedTypeEnum:()=>Re,SizeEnum:()=>se,TagThemeEnum:()=>ge,TagThemeType:()=>Ae,ThemeEnum:()=>le,TriggerEnum:()=>fe,alignType:()=>Oe,arrayEqual:()=>ze,bKMaskManager:()=>z,bkPopIndexManager:()=>W,bkZIndexManager:()=>B,capitalize:()=>U,checkOverflow:()=>_,classes:()=>Ce,clone:()=>h,debounce:()=>Ve,dialogTypeUnion:()=>Se,directionType:()=>we,elementsEqual:()=>d,filterProperty:()=>qe,finiteOrDefault:()=>p,formItemKey:()=>E,formKey:()=>M,getPopContainerId:()=>ee,hasOverflowEllipsis:()=>I,isArray:()=>u,isElement:()=>b,isEmpty:()=>o,isEmptyObj:()=>_e,isFinite:()=>l,isNullOrUndef:()=>r,isObject:()=>c,lineStyleType:()=>xe,maybeShowTooltip:()=>O,merge:()=>g,mergeIf:()=>m,mergerFn:()=>y,mergerIfFn:()=>k,noop:()=>De,observerResize:()=>D,off:()=>t,on:()=>e,placementType:()=>Te,random:()=>P,renderDirectiveType:()=>Ie,renderEmptyVNode:()=>Ue,renderType:()=>Ee,resolveClassName:()=>Be,scrollTop:()=>n,scrollbarWidth:()=>te,stringEnum:()=>be,triggerType:()=>Me,useForm:()=>S,useFormItem:()=>w,valueOrDefault:()=>f,withInstall:()=>Fe,withInstallProps:()=>He});var e=document.addEventListener?function(e,t,n){e&&t&&n&&e.addEventListener(t,n,!0)}:function(e,t,n){e&&t&&n&&e.attachEvent("on".concat(t),n)},t=document.removeEventListener?function(e,t,n){e&&t&&e.removeEventListener(t,n,!0)}:function(e,t,n){e&&t&&e.detachEvent("on".concat(t),n)};function n(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:500,r=arguments.length>4?arguments[4]:void 0,o=Math.abs(t-n);!function t(n,i,o){if(n!==i){var s=n+o>i?i:n+o;n>i&&(s=n-o<i?i:n-o),e===window?window.scrollTo(s,s):e.scrollTop=s,window.requestAnimationFrame((function(){return t(s,i,o)}))}else null==r||r()}(t,n,Math.ceil(o/i*50))}function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e){return null==e}function o(e){return""===e||!(arguments.length>1&&void 0!==arguments[1]&&!arguments[1])&&r(e)}function u(e){if(Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.substr(0,7)&&"Array]"===t.substr(-6)}function c(e){return null!==e&&/^\[object (Object|Module)\]/.test(Object.prototype.toString.call(e))}var l=function(e){return("number"==typeof e||e instanceof Number)&&isFinite(+e)};function p(e,t){return l(e)?e:t}function f(e,t){return void 0===e?t:e}function d(e,t){var n,i,r,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,i=e.length;n<i;++n)if(r=e[n],o=t[n],r.datasetIndex!==o.datasetIndex||r.index!==o.index)return!1;return!0}function h(e){if(u(e))return e.map(h);if(c(e)){for(var t=Object.create(null),n=Object.keys(e),i=n.length,r=0;r<i;++r)t[n[r]]=h(e[n[r]]);return t}return e}function v(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function y(e,t,n,i){if(v(e)){var r=t[e],o=n[e];c(r)&&c(o)?g(r,o,i):t[e]=h(o)}}function g(e,t,n){var i=u(t)?t:[t],r=i.length;if(!c(e))return e;for(var o=(n=n||{}).merger||y,s=0;s<r;++s)if(c(t=i[s]))for(var a=Object.keys(t),l=0,p=a.length;l<p;++l)o(a[l],e,t,n);return e}function m(e,t){return g(e,t,{merger:k})}function k(e,t,n){if(v(e)){var i=t[e],r=n[e];c(i)&&c(r)?m(i,r):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=h(r))}}function b(e){try{return e instanceof HTMLElement}catch(t){return"object"===i(e)&&1===e.nodeType&&"object"===i(e.style)&&"object"===i(e.ownerDocument)}}function I(e){return e.offsetWidth<e.scrollWidth||e.offsetHeight<e.scrollHeight}function O(e,t){I(e)?e.setAttribute("title",t):e.removeAttribute("title")}var T=s(748),M=Symbol("form"),E=Symbol("formItem"),S=function(){return(0,T.inject)(M)},w=function(){return(0,T.inject)(E,void 0)};function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}function j(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,A(i.key),i)}}function R(e,t,n){return t&&j(e.prototype,t),n&&j(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var L,N,C=s(467),P=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"abcdefghijklmnopqrstuvwxyz0123456789",n="",i=0;i<e;i++)n+=t[parseInt((Math.random()*t.length).toString(),10)];return n},D=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=(0,C.throttle)((function(){"function"==typeof t&&t()}),n),o=new ResizeObserver((function(){r()}));return i&&"function"==typeof t&&t(),{start:function(){o.observe(e)},stop:function(){o.disconnect(),o.unobserve(e)}}},U=function(e){return e[0].toUpperCase()+e.slice(1)};function _(e){if(!e)return!1;var t=!1;try{var n=window.getComputedStyle(e,null);if("none"!==n.webkitLineClamp){var i=parseFloat(n.height),r=function(e,t){var n=document.createElement("div"),i=parseFloat(t.width)?"".concat(Math.ceil(parseFloat(t.width)),"px"):t.width;return n.style.cssText="\n width: ".concat(i,";\n line-height: ").concat(t["line-height"],";\n font-size: ").concat(t["font-size"],";\n word-break: ").concat(t["word-break"],";\n padding: ").concat(t.padding,";\n "),n.textContent=e.textContent,n}(e,n);document.body.appendChild(r);var o=window.getComputedStyle(r,null).height;document.body.removeChild(r),t=i<parseFloat(o)}else t=e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight}catch(e){console.warn("There is an error when check element overflow state: ",e)}return t}function F(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BOTTOM="bottom",e.CONTENT="content",e.NAVI="navi",e.FULLSCREEN="fullScreen",e.PLUGINS="plugins",e.MODAL="modal",e.MESSAGE="message",e.POPPER="popper"}(N||(N={}));var H=(F(L={},N.BOTTOM,0),F(L,N.CONTENT,1),F(L,N.NAVI,100),F(L,N.FULLSCREEN,1e3),F(L,N.MODAL,3e3),F(L,N.PLUGINS,8e3),F(L,N.MESSAGE,1e4),F(L,N.POPPER,99999),L),B=new(function(){function e(){x(this,e),this.storageLayerIndexValue={},this.copyDefaultValue()}return R(e,[{key:"getNextIndex",value:function(e){return Object.prototype.hasOwnProperty.call(this.storageLayerIndexValue,e)?(this.storageLayerIndexValue[e]=this.storageLayerIndexValue[e]+1,this.storageLayerIndexValue[e]):(this.storageLayerIndexValue[N.MODAL]=this.storageLayerIndexValue[N.MODAL]+1,this.storageLayerIndexValue[N.MODAL])}},{key:"getModalNextIndex",value:function(){return this.getNextIndex(N.MODAL)}},{key:"getMessageNextIndex",value:function(){return this.getNextIndex(N.MESSAGE)}},{key:"getFullScreenNextIndex",value:function(){return this.getNextIndex(N.FULLSCREEN)}},{key:"getNaviNextIndex",value:function(){return this.getNextIndex(N.NAVI)}},{key:"getPopperIndex",value:function(){return H.popper}},{key:"setDefaultZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue.__proto__,n)&&Object.assign(t.storageLayerIndexValue.__proto__,F({},n,e[n]))})),this.copyDefaultValue()}},{key:"resetZIndex",value:function(e){var t=this;Object.keys(e||{}).forEach((function(n){Object.prototype.hasOwnProperty.call(t.storageLayerIndexValue,n)&&Object.assign(t.storageLayerIndexValue,F({},n,e[n]))}))}},{key:"copyDefaultValue",value:function(){var e=Object.keys(H).reduce((function(e,t){return Object.assign(e,F({},t,{value:H[t],writable:!0,configurable:!0}))}),{});this.storageLayerIndexValue=Object.create(H,e)}}]),e}());"__bk_mask_".concat(P(16));var V=new(function(){function e(){x(this,e),this.timer=null,this.store=[],this.maskMap=new WeakMap}return R(e,[{key:"appendMaker",value:function(e){this.store.push(e),this.executeMaker()}},{key:"pushMaskStyle",value:function(e,t){var n=this.getMaskMap(e);(null==n?void 0:n.styles)?n.styles.push(t):this.setMaskMap(e,Object.assign({styles:[t]},n||{}))}},{key:"getMaskStyles",value:function(e){var t;return(null===(t=this.getMaskMap(e))||void 0===t?void 0:t.styles)||[]}},{key:"setMaskId",value:function(e,t){var n=this.getMaskMap(e);n?(Object.assign(n,{id:t}),this.setMaskMap(e,n)):this.setMaskMap(e,Object.assign({id:t},n||{}))}},{key:"getMaskId",value:function(e){var t;return null===(t=this.getMaskMap(e))||void 0===t?void 0:t.id}},{key:"setMaskMap",value:function(e,t){this.maskMap.set(e,t)}},{key:"getMaskMap",value:function(e){return this.maskMap.get(e)}},{key:"executeMaker",value:function(){var e=this;this.timer&&cancelAnimationFrame(this.timer),this.timer=requestAnimationFrame((function(){var t=e.store.pop();"function"==typeof t&&(Reflect.apply(t,e,[]),e.executeMaker())}))}}]),e}()),q=function(){function e(t){var n=this;x(this,e),this.multiInstance=!1,this.uniqueMaskAttrTag="",this.parentNode=document.body,this.activeInstance=void 0,this.zIndexStore=new Map,this.lastUUID=null,this.maskStyle={position:"fixed",left:0,top:0,bottom:0,right:0,display:"none","background-color":"rgba(0,0,0,.6)"},this.isInit=!1,this.maskAttrTag="auto";var i=t||{},r=i.multiInstance,o=void 0!==r&&r,s=i.maskAttrTag,a=void 0===s?"auto":s,u=i.parentNode,c=void 0===u?document.body:u,l=i.maskStyle,p=void 0===l?{}:l,f=i.onClick,d=void 0===f?null:f,h=i.popInstance,v=void 0===h?null:h;this.parentNode=c||document,this.maskAttrTag=a,this.onClick=d,this.activeInstance=void 0,this.multiInstance=o,this.popInstance=v,this.uniqueMaskAttrTag=this.getMaskAttrTag(a),V.appendMaker((function(){n.initInstance(p)}))}return R(e,[{key:"setOption",value:function(e){var t=e||{},n=t.parentNode,i=void 0===n?document.body:n,r=t.maskStyle,o=void 0===r?{}:r,s=t.onClick,a=void 0===s?null:s,u=t.maskAttrTag,c=void 0===u?this.maskAttrTag:u;this.onClick=a,this.parentNode=i||document,this.setMaskStyle(Object.assign({},this.maskStyle,o)),this.uniqueMaskAttrTag=this.getMaskAttrTag(c)}},{key:"show",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=null!=r?r:P(16),a=/-?\d+/.test("".concat(t))?t:B.getModalNextIndex(),u=Object.assign({},this.maskStyle,i||{});if(!n&&this.lastUUID){var c=this.zIndexStore.get(this.lastUUID);c&&(u=null==c?void 0:c.style)}this.storeMaskInsCfg({zIndex:a,style:Object.assign({},u),uuid:s,preUID:this.lastUUID}),Object.assign(u,{display:"block","z-index":"".concat(a),"pointer-events":"all"}),this.initInstance(u),this.catchClickEvent(),this.setMaskStyle(u),V.pushMaskStyle(this.parentNode,Object.assign({},u)),this.backupMask.style.setProperty("z-index","".concat(a-1)),n||(this.mask.style.setProperty("pointer-events","none"),null==e||e.style.setProperty("pointer-events","all")),e&&(o&&e.style.setProperty("z-index","".concat(a+1)),this.activeInstance=e,this.appendContentToMask(e))}},{key:"hide",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=null!=i?i:this.lastUUID;t||(null==n||n.remove(),null===(e=this.activeInstance)||void 0===e||e.remove()),this.removeClickEvent(),this.activeInstance=void 0,this.popIndexStore(r);var o=V.getMaskStyles(this.parentNode);if(null==o||o.pop(),null==o?void 0:o.length){var s=o.slice(-1)[0];this.setMaskStyle(s)}else this.mask.style.setProperty("display","none")}},{key:"storeMaskInsCfg",value:function(e){return this.zIndexStore.set(e.uuid,e),this.lastUUID=e.uuid,this.zIndexStore.get(e.uuid)}},{key:"popIndexStore",value:function(e){if(this.zIndexStore.has(e)){var t=this.zIndexStore.get(e);return this.lastUUID=t.preUID,this.zIndexStore.delete(e)}return this.lastUUID=null,!1}},{key:"backupActiveInstance",value:function(){this.activeInstance&&this.backupMask.append(this.activeInstance)}},{key:"backupContentElement",value:function(e){e&&this.backupMask.append(e)}},{key:"getActiveContentInstance",value:function(){return this.activeInstance}},{key:"initInstance",value:function(e){if(!this.isInit){this.isInit=!0;var t=this.getMask(),n=t.instance,i=t.isExist;this.mask=n,this.backupMask=this.getBackupMask(),!i&&this.setMaskStyle(Object.assign({},this.maskStyle,e))}}},{key:"getMask",value:function(){if(this.multiInstance)return{instance:this.createMask(),isExist:!1};var e=!0,t=this.parentNode.querySelector("[data-bk-mask-uid='".concat(this.uniqueMaskAttrTag,"']"));return t||(e=!1,t=this.createMask()),{instance:t,isExist:e}}},{key:"catchClickEvent",value:function(){var e=this;this.mask&&this.mask.addEventListener("click",(function(t){return e.handleMaskClick(t)}),!0)}},{key:"removeClickEvent",value:function(){this.mask&&this.mask.removeEventListener("click",this.handleMaskClick)}},{key:"handleMaskClick",value:function(e){e.target===this.mask&&"function"==typeof this.onClick&&Reflect.apply(this.onClick,this.popInstance||this,[e])}},{key:"getBackupMask",value:function(){var e="data-bk-backup-uid",t=this.parentNode.querySelector("[".concat(e,"]"));return t||(t=this.createMask(e)),t}},{key:"createMask",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"data-bk-mask-uid",t=document.createElement("div");return t.setAttribute(e,this.uniqueMaskAttrTag),this.parentNode.append(t),t}},{key:"setMaskStyle",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.mask&&Object.entries(t).forEach((function(t){return e.mask.style.setProperty(t[0],t[1])}))}},{key:"getMaskAttrTag",value:function(e){return/^(auto|\s+)$/i.test(e)||null==e||""===e?(V.getMaskId(this.parentNode)||V.setMaskId(this.parentNode,"__bk_mask_".concat(P(16))),V.getMaskId(this.parentNode)):e}},{key:"appendContentToMask",value:function(e){this.mask.append(e)}}]),e}(),z=new q({}),K=function(){function e(t){x(this,e),this.popInstanceList=[],this.clickFn=void 0,this.uuidAttrName="data-bk-pop-uuid",this.bKMaskManagerInstance=new q({parentNode:this.getParentNode(null==t?void 0:t.transfer),popInstance:this,onClick:this.onMaskClickFn})}return R(e,[{key:"getParentNode",value:function(e){if("string"==typeof e){var t=document.querySelector(e);if(t)return t}return b(e)?e:document.body}},{key:"onMaskClick",value:function(e,t){this.clickFn={fn:e,target:t}}},{key:"show",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;if(e){var o="number"==typeof r?r:B.getModalNextIndex(),s=P(16);e.setAttribute(this.uuidAttrName,s),this.popInstanceList.push({uuid:s,zIndex:o,content:e,showMask:t,appendStyle:n}),t&&this.bKMaskManagerInstance.backupActiveInstance(),this.bKMaskManagerInstance.show(e,o,t,n,s,i)}else console.warn("pop show error: content is null or undefined")}},{key:"destroy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.clickFn=void 0,this.hide(e,t)}},{key:"popHide",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.popInstanceList.length){if(e){var t=this.popInstanceList.pop();this.bKMaskManagerInstance.popIndexStore(t.uuid),t.remove()}if(this.popInstanceList.length){var n=this.popInstanceList.slice(-1)[0],i=n.zIndex,r=n.content,o=n.showMask,s=n.appendStyle,a=n.uuid;this.bKMaskManagerInstance.show(r,i,o,s,a)}else this.bKMaskManagerInstance.hide()}}},{key:"hide",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=null==e?void 0:e.getAttribute(this.uuidAttrName);if(n){var i=this.popInstanceList.findIndex((function(e){return e.uuid===n}));i>=0&&(t||this.popInstanceList[i].content.remove(),this.popInstanceList.splice(i,1),this.bKMaskManagerInstance.popIndexStore(n),this.popInstanceList.length?this.popHide(!1):this.bKMaskManagerInstance.hide(t))}else null==e||e.remove()}},{key:"onMaskClickFn",value:function(e){if(this.clickFn){var t=this.clickFn.fn;t&&Reflect.apply(t,this,[e])}}}]),e}(),W=new K;function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function Y(e){return function(e){if(Array.isArray(e))return G(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return G(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)?G(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var Z,J=s(8022),X=s(5798),$=function(){function e(t,n,i){var r,o;x(this,e),this.isShow=!1,this.trigger=void 0,this.instance=void 0,this.always=!1,this.reference=void 0,this.referenceTarget=void 0,this.popperRefer=void 0,this.delay=50,this.isInnerPopper=!1,this.disabled=!1,this.afterShow=null,this.afterHidden=null,this.appendTo="parent",this.container=null,this.fixOnBoundary=!1,this.instanceOptions=this.initDefaultOptions(i),this.reference=this.resolveInputSelectorToHtmlElement(t),this.popperRefer=this.resolveInputSelectorToHtmlElement(n),this.referenceTarget=this.getTargetReferenceElement(),this.container=null===(r=this.popperRefer)||void 0===r?void 0:r.parentElement,this.isShow=!!(null===(o=this.instanceOptions)||void 0===o?void 0:o.isShow),this.always=this.instanceOptions.always,this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.appendTo=this.instanceOptions.appendTo,this.afterHidden="function"==typeof i.afterHidden?i.afterHidden:function(){},this.afterShow="function"==typeof i.afterShow?i.afterShow:function(){},this.fixOnBoundary=this.instanceOptions.fixOnBoundary,this.initInstance(),this.registerEvents(),(this.isShow||this.always)&&this.show(null)}return R(e,[{key:"forceUpdate",value:function(){var e;null===(e=this.instance)||void 0===e||e.forceUpdate()}},{key:"update",value:function(){var e;null===(e=this.instance)||void 0===e||e.update()}},{key:"updateOptions",value:function(e){var t;this.instanceOptions=this.initDefaultOptions(e),this.isShow=!!(null===(t=this.instanceOptions)||void 0===t?void 0:t.isShow),this.trigger=this.instanceOptions.trigger,this.disabled=this.instanceOptions.disabled,this.setOptions(this.instanceOptions)}},{key:"setOptions",value:function(e){var t;null===(t=this.instance)||void 0===t||t.setOptions(e)}},{key:"destroy",value:function(){var e;null===(e=this.instance)||void 0===e||e.destroy()}},{key:"updateDisabled",value:function(e){this.disabled=null!=e?e:!this.disabled,this.disabled&&this.hide()}},{key:"show",value:function(e){var t;this.disabled||(null===(t=this.popperRefer)||void 0===t||t.setAttribute("data-show",""),this.setOptions({modifiers:[].concat(Y(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!0}])}),this.update(),this.isShow=!0,this.afterShow(),this.fixOnBoundary||this.appendToTarget())}},{key:"hide",value:function(){var e;this.always||(null===(e=this.popperRefer)||void 0===e||e.removeAttribute("data-show"),this.setOptions({modifiers:[].concat(Y(this.instanceOptions.modifiers||[]),[{name:"eventListeners",enabled:!1}])}),this.isShow=!1,this.isInnerPopper=!1,this.afterHidden(),this.fixOnBoundary||this.restorePopContent())}},{key:"restorePopContent",value:function(){var e=this.getAppendToTarget();b(e)&&e.contains(this.popperRefer)&&this.container&&!this.container.contains(this.popperRefer)&&this.container.append(this.popperRefer)}},{key:"appendToTarget",value:function(){var e=this.getAppendToTarget();b(e)&&e.contains(this.popperRefer)&&e.append(this.popperRefer)}},{key:"getAppendToTarget",value:function(){var e=this.appendTo,t=e;return"parent"!==e&&"string"==typeof e&&(t=document.querySelector(e)),t}},{key:"initDefaultOptions",value:function(e){var t=this,n=g({placement:"top",modifiers:[{name:"offset",options:{offset:[0,8]}}],strategy:"absolute",onFirstUpdate:void 0,isShow:!1,theme:"dark",trigger:"hover",disabled:!1},e||{}),i=n.onFirstUpdate;return n.onFirstUpdate=function(e){"function"==typeof i&&(i.call(t,e),t.handleFirstUpdate())},n}},{key:"handleFirstUpdate",value:function(){this.fixOnBoundary&&this.appendToTarget()}},{key:"getTargetReferenceElement",value:function(){return this.isElement(this.reference)&&1===this.reference.childElementCount?this.reference.firstElementChild:this.reference}},{key:"initInstance",value:function(){var e,t;this.referenceTarget&&(this.referenceTarget&&this.popperRefer?(this.instance=(0,X.createPopper)(this.referenceTarget,this.popperRefer,this.instanceOptions),null===(e=this.popperRefer)||void 0===e||e.setAttribute("data-theme",null!==(t=this.instanceOptions.theme)&&void 0!==t?t:"dark")):console.error("reference or popperRefer is null, please check html element."))}},{key:"resolveInputSelectorToHtmlElement",value:function(e){if(this.isElement(e))return e;if("string"==typeof e)return document.querySelector(e);if("object"===i(e)){if(Object.prototype.hasOwnProperty.call(e,"getBoundingClientRect"))return e}else console.error("'getBoundingClientRect' is needed when use virtual elements");return null}},{key:"isElement",value:function(e){return b(e)}},{key:"registerEvents",value:function(){var e=this;this.isElement(this.referenceTarget)&&"hover"===this.trigger&&(["mouseenter","focus"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(n){"mouseenter"===t&&(e.isInnerPopper=!0),e.show(n)}))})),["mouseleave","blur"].forEach((function(t){e.referenceTarget.addEventListener(t,(function(){e.isInnerPopper=!1,setTimeout((function(){!e.isInnerPopper&&e.hide()}),e.delay)}))})),this.isElement(this.popperRefer)&&["mouseenter","mouseleave"].forEach((function(t){e.popperRefer.addEventListener(t,(function(){"mouseenter"===t&&(e.isInnerPopper=!0),"mouseleave"===t&&e.hide()}))}))),"click"===this.trigger&&["click"].forEach((function(t){document.body.addEventListener(t,(function(t){e.isSameElement(t.target,e.reference)||e.reference.contains(t.target)?e.show(t):!e.isShow||e.isSameElement(t.target,e.popperRefer)||e.popperRefer.contains(t.target)||e.hide()}))}))}},{key:"isSameElement",value:function(e,t){return e&&(e===t||e===t.firstElementChild)}}]),e}(),Q=null,ee=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#";if(null===Q){Q="id_".concat((0,J.v4)());var t=document.createElement("div");t.setAttribute("id",Q),t.setAttribute("data-popper-id",Q),document.body.append(t)}return"".concat(e).concat(Q)};function te(){if(void 0!==Z)return Z;var e=document.createElement("div");e.className="bk-scrollbar-wrap",e.style.visibility="hidden",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var t=e.offsetWidth;e.style.overflow="scroll";var n=document.createElement("div");n.style.width="100%",e.appendChild(n);var i=n.offsetWidth;return e.parentNode.removeChild(e),Z=t-i}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}var re=s(210);function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ie(e);if(t){var o=ie(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}var se,ae,ue,ce,le,pe,fe,de,he,ve,ye,ge,me,ke=(0,re.createTypes)({});function be(e){return e.reduce((function(e,t){return e[t]=t,e}),Object.create(null))}function Ie(){return(0,re.string)().def(ue.SHOW)}function Oe(){return(0,re.string)().def(ce.LEFT)}function Te(){return(0,re.string)().def(pe.BOTTOM)}function Me(){return(0,re.string)().def(fe.HOVER)}function Ee(){return(0,re.toType)("popRenderType",{}).def(de.SHOWN)}function Se(){return(0,re.toType)("dialogType",{default:he.OPERATION})}function we(){return(0,re.toType)("direction",{}).def(ve.HORIZONTAL)}function xe(){return(0,re.toType)("lineType",{}).def(ye.DASHED)}function Ae(){return(0,re.toType)("tagTheme",{}).def()}function je(){return(0,re.toType)("behavior",{}).def(me.NORMAL)}!function(e){e.SMALL="small",e.LARGE="large",e.DEFAULT="default"}(se||(se={})),function(e){e.Top="top",e.Left="left",e.Right="right",e.Bottom="bottom"}(ae||(ae={})),function(e){e.IF="if",e.SHOW="show"}(ue||(ue={})),function(e){e.LEFT="left",e.CENTER="center",e.RIGHT="right"}(ce||(ce={})),function(e){e.PRIMARY="primary",e.WARNING="warning",e.SUCCESS="success",e.DANGER="danger"}(le||(le={})),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"}(pe||(pe={})),function(e){e.HOVER="hover",e.CLICK="click",e.MANUAL="manual"}(fe||(fe={})),function(e){e.AUTO="auto",e.SHOWN="shown"}(de||(de={})),function(e){e.SHOW="show",e.OPERATION="operation",e.CONFIRM="confirm",e.PROCESS="process"}(he||(he={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(ve||(ve={})),function(e){e.DASHED="dashed",e.SOLID="solid"}(ye||(ye={})),function(e){e.SUCCESS="success",e.INFO="info",e.WARNING="warning",e.DANGER="danger"}(ge||(ge={})),function(e){e.SIMPLICITY="simplicity",e.NORMAL="normal"}(me||(me={}));var Re,Le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(n,e);var t=oe(n);function n(){return x(this,n),t.apply(this,arguments)}return R(n,null,[{key:"size",value:function(){var e=["small","default","large"];return(0,re.toType)("Size",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))},default:"default"})}},{key:"theme",value:function(){var e=["primary","warning","success","danger"];return(0,re.toType)("Theme",{validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid theme, ".concat(t,", the theme must be one of 【").concat(e.join(" | "),"】")),1))}})}},{key:"placement",value:function(){var e=["top","left","right","bottom"];return(0,re.toType)("Placements",{validator:function(t){return!(t&&!e.includes(t))},default:"top"})}},{key:"style",value:function(){return(0,re.toType)("Style",{type:[String,Object]})}},{key:"position",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["top-left","top-right","bottom-left","bottom-right"];return(0,re.toType)("positions",{type:String,validator:function(t){return!(t&&!e.includes(t)&&(console.error("invalid positions, ".concat(t,", the position must be one of 【").concat(e.join(" | "),"】")),1))},default:"top-center"})}}]),n}(ke);function Ne(){return(0,re.toType)("selectedStyle",{}).def(Re.CHECK)}function Ce(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.entries(e).filter((function(e){return e[1]})).map((function(e){return e[0]})).join(" ").concat(t?" ".concat(t):"")}!function(e){e.CHECKBOX="checkbox",e.CHECK="check"}(Re||(Re={}));var Pe=Object.create({}),De=function(){},Ue=function(){return null},_e=function(e){return Object.keys(e).length<1},Fe=function(e){return e.install=function(t){var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).prefix,i=t.config.globalProperties.bkUIPrefix||n||"Bk";t.component(i+e.name,e)},e},He=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;return e.install=function(r){var o=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).prefix,s=r.config.globalProperties.bkUIPrefix||o||"Bk";i&&r.directive(s+i.name,i.directive),r.component(s+e.name,e),!n&&Object.values(t).forEach((function(e){r.component(s+e.name,e)}))},Object.keys(t).forEach((function(n){e[n]=t[n]})),e};function Be(e){return"".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"bk","-").concat(e)}function Ve(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:300,i=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=function(){var o=this,s=arguments;if(e&&clearTimeout(e),r){var a=!e;e=setTimeout((function(){e=null}),n),a&&(t=i.apply(o,s))}else e=setTimeout((function(){i.apply(o,s)}),n);return t};return o.cancel=function(){clearTimeout(e),e=null},o}function qe(e,t){return JSON.parse(JSON.stringify(e,(function(e,n){if(!t.includes(e))return n})))}function ze(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){if(Array.isArray(e[n]))return ze(e[n],t[n]);if(e[n]!==t[n])return!1}return!0}})(),a})()));
|
@@ -1,10 +1,13 @@
|
|
1
|
-
|
1
|
+
import { BKPopIndexManager } from './pop-manager';
|
2
|
+
type BkMaskManagerConfig = {
|
2
3
|
multiInstance?: boolean;
|
3
4
|
maskAttrTag?: string;
|
4
5
|
parentNode?: HTMLElement | Document;
|
5
6
|
maskStyle?: any;
|
7
|
+
onClick?: (e: MouseEvent) => void;
|
8
|
+
popInstance?: BKPopIndexManager;
|
6
9
|
};
|
7
|
-
|
10
|
+
type MaskConfigStore = {
|
8
11
|
zIndex: number;
|
9
12
|
style: any;
|
10
13
|
uuid?: string;
|
@@ -12,13 +15,13 @@ declare type MaskConfigStore = {
|
|
12
15
|
};
|
13
16
|
export declare class BkMaskManager {
|
14
17
|
/** 遮罩容器 */
|
15
|
-
private
|
18
|
+
private mask;
|
16
19
|
/** 遮罩备份容器,用于多个组件实例显示,遮罩只显示最后一个 **/
|
17
|
-
private
|
20
|
+
private backupMask;
|
18
21
|
/** 是否允许多个遮罩实例 */
|
19
22
|
private readonly multiInstance;
|
20
23
|
/** 遮罩控制器唯一标识 */
|
21
|
-
private
|
24
|
+
private uniqueMaskAttrTag;
|
22
25
|
/** 设置弹出层父级组件,默认是body */
|
23
26
|
private parentNode;
|
24
27
|
/** 遮罩当前显示组件实例 **/
|
@@ -29,6 +32,10 @@ export declare class BkMaskManager {
|
|
29
32
|
private lastUUID;
|
30
33
|
/** 遮罩样式 **/
|
31
34
|
private readonly maskStyle;
|
35
|
+
private onClick;
|
36
|
+
private isInit;
|
37
|
+
private maskAttrTag;
|
38
|
+
private popInstance?;
|
32
39
|
/**
|
33
40
|
* 遮罩管理器
|
34
41
|
*
|
@@ -36,6 +43,7 @@ export declare class BkMaskManager {
|
|
36
43
|
* @param maskAttrTag 遮罩DOM唯一标志,支持自定义和 auto
|
37
44
|
*/
|
38
45
|
constructor(config?: BkMaskManagerConfig);
|
46
|
+
setOption(option: BkMaskManagerConfig): void;
|
39
47
|
/**
|
40
48
|
* 显示遮罩
|
41
49
|
* @param content 遮罩内容
|
@@ -54,11 +62,16 @@ export declare class BkMaskManager {
|
|
54
62
|
backupActiveInstance(): void;
|
55
63
|
backupContentElement(content?: HTMLElement): void;
|
56
64
|
getActiveContentInstance(): HTMLElement;
|
65
|
+
private initInstance;
|
57
66
|
/**
|
58
67
|
* 初始化当前遮罩管理器
|
59
68
|
* @returns 当前遮罩容器
|
60
69
|
*/
|
61
70
|
private getMask;
|
71
|
+
private catchClickEvent;
|
72
|
+
private removeClickEvent;
|
73
|
+
private handleMaskClick;
|
74
|
+
private getBackupMask;
|
62
75
|
/**
|
63
76
|
* 创建遮罩层DOM
|
64
77
|
* @returns 返回DOM
|
@@ -1,8 +1,12 @@
|
|
1
|
-
declare class BKPopIndexManager {
|
1
|
+
export declare class BKPopIndexManager {
|
2
2
|
/** 用来缓存弹出层实例 */
|
3
3
|
private popInstanceList;
|
4
4
|
private readonly uuidAttrName;
|
5
|
-
|
5
|
+
private clickFn?;
|
6
|
+
private bKMaskManagerInstance;
|
7
|
+
constructor(options?: any);
|
8
|
+
getParentNode(transfer: any): any;
|
9
|
+
onMaskClick(callFn: (e: MouseEvent) => void, target: HTMLElement): void;
|
6
10
|
/**
|
7
11
|
* 展示弹窗
|
8
12
|
* @param content 弹窗内容
|
@@ -12,6 +16,12 @@ declare class BKPopIndexManager {
|
|
12
16
|
* @returns
|
13
17
|
*/
|
14
18
|
show(content?: HTMLElement, showMask?: boolean, appendStyle?: {}, transfer?: boolean, zindex?: any): void;
|
19
|
+
/**
|
20
|
+
* 销毁指定实例
|
21
|
+
* @param content 指定实例内容
|
22
|
+
* @param transfer
|
23
|
+
*/
|
24
|
+
destroy(content?: HTMLElement, transfer?: boolean): void;
|
15
25
|
/**
|
16
26
|
* 关闭最后一个弹窗 如果当前还有父级弹窗,则激活父级弹窗
|
17
27
|
* @param removeLastContent 默认:true 是否自动关闭最后一个弹窗实例 某些场景下,已经主动关闭最后一个弹窗,此处只需要处理其他逻辑
|
@@ -22,6 +32,6 @@ declare class BKPopIndexManager {
|
|
22
32
|
* @param content { HTMLElement } 关闭弹窗内容
|
23
33
|
* **/
|
24
34
|
hide(content?: HTMLElement, transfer?: boolean): void;
|
35
|
+
private onMaskClickFn;
|
25
36
|
}
|
26
37
|
export declare const bkPopIndexManager: BKPopIndexManager;
|
27
|
-
export {};
|
package/lib/shared/popover.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Instance, Modifier, Placement, PositioningStrategy, State } from '@popperjs/core';
|
2
|
-
export
|
2
|
+
export type OnFirstUpdateFnType = (instance: Partial<State>) => void;
|
3
3
|
export declare type IOptions = {
|
4
4
|
placement?: Placement;
|
5
5
|
modifiers?: Array<Partial<Modifier<any, any>>>;
|
package/lib/shared/token.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
import type { InjectionKey } from 'vue';
|
2
|
-
import { IFormContext, IFormItemContext } from '
|
2
|
+
import { IFormContext, IFormItemContext } from '../form';
|
3
3
|
export declare const formKey: InjectionKey<IFormContext>;
|
4
4
|
export declare const formItemKey: InjectionKey<IFormItemContext>;
|
package/lib/shared/utils.d.ts
CHANGED
@@ -4,3 +4,22 @@
|
|
4
4
|
* @param str,默认26位字母及数字
|
5
5
|
*/
|
6
6
|
export declare const random: (n: number, str?: string) => string;
|
7
|
+
/**
|
8
|
+
* 监听目标元素的Resize事件
|
9
|
+
* @param root 目标元素
|
10
|
+
* @param callbackFn 执行函数
|
11
|
+
* @param delay 延迟执行时间,默认 60
|
12
|
+
* @param immediate 是否立即执行回调函数
|
13
|
+
* @returns "{ start: () => void, stop: () => void }"
|
14
|
+
*/
|
15
|
+
export declare const observerResize: (root: HTMLElement, callbackFn: () => void, delay?: number, immediate?: boolean) => {
|
16
|
+
start: () => void;
|
17
|
+
stop: () => void;
|
18
|
+
};
|
19
|
+
export declare const capitalize: (str: any) => any;
|
20
|
+
/**
|
21
|
+
* 判断元素是否溢出容器
|
22
|
+
* @param {*} el
|
23
|
+
* @returns
|
24
|
+
*/
|
25
|
+
export declare function checkOverflow(el: any): boolean;
|
@@ -89,18 +89,19 @@ declare const propTypesNS: {
|
|
89
89
|
toType<T_2_1 = unknown>(name: string, obj: import("vue-types/dist/types").PropOptions<T_2_1, T_2_1>, validable?: boolean): VueTypeDef<T_2_1> | import("vue-types").VueTypeValidableDef<T_2_1>;
|
90
90
|
};
|
91
91
|
};
|
92
|
-
export
|
93
|
-
export
|
92
|
+
export type VueNode = VNodeChild | JSX.Element;
|
93
|
+
export type ElementType<T extends ReadonlyArray<unknown>> = T extends ReadonlyArray<infer ElementType> ? ElementType : never;
|
94
94
|
export declare function stringEnum<T extends string>(o: Array<T>): {
|
95
95
|
[K in T]: K;
|
96
96
|
};
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
export
|
101
|
-
export declare enum
|
102
|
-
|
103
|
-
|
97
|
+
type UnionToIntersection<T> = (T extends any ? (v: T) => void : never) extends (v: infer V) => void ? V : never;
|
98
|
+
type LastOf<T> = UnionToIntersection<T extends any ? () => T : never> extends () => infer R ? R : never;
|
99
|
+
type Push<T extends any[], V> = [...T, V];
|
100
|
+
export type UnionToArrayType<T, L = LastOf<T>, N = [T] extends [never] ? true : false> = N extends true ? [] : Push<UnionToArrayType<Exclude<T, L>>, L>;
|
101
|
+
export declare enum SizeEnum {
|
102
|
+
SMALL = "small",
|
103
|
+
LARGE = "large",
|
104
|
+
DEFAULT = "default"
|
104
105
|
}
|
105
106
|
export declare enum Placements {
|
106
107
|
Top = "top",
|
@@ -108,12 +109,114 @@ export declare enum Placements {
|
|
108
109
|
Right = "right",
|
109
110
|
Bottom = "bottom"
|
110
111
|
}
|
112
|
+
export declare enum RenderDirectiveEnum {
|
113
|
+
IF = "if",
|
114
|
+
SHOW = "show"
|
115
|
+
}
|
116
|
+
export declare function renderDirectiveType(): import("vue-types").VueTypeValidableDef<"show" | "if"> & {
|
117
|
+
default: "show" | "if";
|
118
|
+
};
|
119
|
+
export declare enum AlignEnum {
|
120
|
+
LEFT = "left",
|
121
|
+
CENTER = "center",
|
122
|
+
RIGHT = "right"
|
123
|
+
}
|
124
|
+
export declare function alignType(): import("vue-types").VueTypeValidableDef<"right" | "left" | "center"> & {
|
125
|
+
default: "right" | "left" | "center";
|
126
|
+
};
|
127
|
+
export declare enum ThemeEnum {
|
128
|
+
PRIMARY = "primary",
|
129
|
+
WARNING = "warning",
|
130
|
+
SUCCESS = "success",
|
131
|
+
DANGER = "danger"
|
132
|
+
}
|
133
|
+
/** 弹层出现位置选项 */
|
134
|
+
export declare enum PlacementEnum {
|
135
|
+
AUTO = "auto",
|
136
|
+
AUTO_START = "auto-start",
|
137
|
+
AUTO_END = "auto-end",
|
138
|
+
TOP = "top",
|
139
|
+
RIGHT = "right",
|
140
|
+
BOTTOM = "bottom",
|
141
|
+
LEFT = "left",
|
142
|
+
TOP_START = "top-start",
|
143
|
+
TOP_END = "top-end",
|
144
|
+
BOTTOM_START = "bottom-start",
|
145
|
+
BOTTOM_END = "bottom-end",
|
146
|
+
RIGHT_START = "right-start",
|
147
|
+
RIGHT_END = "right-end",
|
148
|
+
LEFT_START = "left-start",
|
149
|
+
LEFT_END = "left-end"
|
150
|
+
}
|
151
|
+
export declare function placementType(): import("vue-types").VueTypeValidableDef<"auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end"> & {
|
152
|
+
default: "auto" | "auto-start" | "auto-end" | "top" | "right" | "bottom" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
153
|
+
};
|
154
|
+
/** 弹层触发选项 */
|
155
|
+
export declare enum TriggerEnum {
|
156
|
+
HOVER = "hover",
|
157
|
+
CLICK = "click",
|
158
|
+
MANUAL = "manual"
|
159
|
+
}
|
160
|
+
export declare function triggerType(): import("vue-types").VueTypeValidableDef<"click" | "hover" | "manual"> & {
|
161
|
+
default: "click" | "hover" | "manual";
|
162
|
+
};
|
163
|
+
/** 内容渲染类型:目前是在popover内容渲染时使用 */
|
164
|
+
export declare enum RenderType {
|
165
|
+
AUTO = "auto",
|
166
|
+
SHOWN = "shown"
|
167
|
+
}
|
168
|
+
export declare function renderType(): VueTypeDef<"auto" | "shown"> & {
|
169
|
+
default: "auto" | "shown";
|
170
|
+
};
|
171
|
+
export declare enum DialogTypeEnum {
|
172
|
+
SHOW = "show",
|
173
|
+
OPERATION = "operation",
|
174
|
+
CONFIRM = "confirm",
|
175
|
+
PROCESS = "process"
|
176
|
+
}
|
177
|
+
export declare function dialogTypeUnion(): VueTypeDef<"process" | "show" | "operation" | "confirm">;
|
178
|
+
export declare enum DirectionEnum {
|
179
|
+
HORIZONTAL = "horizontal",
|
180
|
+
VERTICAL = "vertical"
|
181
|
+
}
|
182
|
+
export declare function directionType(): VueTypeDef<"horizontal" | "vertical"> & {
|
183
|
+
default: "horizontal" | "vertical";
|
184
|
+
};
|
185
|
+
export declare enum LineStyleEnum {
|
186
|
+
DASHED = "dashed",
|
187
|
+
SOLID = "solid"
|
188
|
+
}
|
189
|
+
export declare function lineStyleType(): VueTypeDef<"dashed" | "solid"> & {
|
190
|
+
default: "dashed" | "solid";
|
191
|
+
};
|
192
|
+
export declare enum TagThemeEnum {
|
193
|
+
SUCCESS = "success",
|
194
|
+
INFO = "info",
|
195
|
+
WARNING = "warning",
|
196
|
+
DANGER = "danger"
|
197
|
+
}
|
198
|
+
export declare function TagThemeType(): VueTypeDef<"info" | "success" | "warning" | "danger"> & {
|
199
|
+
default: "info" | "success" | "warning" | "danger";
|
200
|
+
};
|
201
|
+
export declare enum InputBehaviorEnum {
|
202
|
+
SIMPLICITY = "simplicity",
|
203
|
+
NORMAL = "normal"
|
204
|
+
}
|
205
|
+
export declare function InputBehaviorType(): VueTypeDef<"normal" | "simplicity"> & {
|
206
|
+
default: "normal" | "simplicity";
|
207
|
+
};
|
111
208
|
export declare class PropTypes extends propTypesNS {
|
112
|
-
static size(
|
113
|
-
static theme(
|
114
|
-
static placement(
|
115
|
-
static commonType(types?: string[], name?: string): VueTypeDef<string>;
|
209
|
+
static size(): VueTypeDef<"small" | "large" | "default">;
|
210
|
+
static theme(): VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
211
|
+
static placement(): VueTypeDef<"top" | "right" | "bottom" | "left">;
|
116
212
|
static style(): VueTypeDef<CSSProperties>;
|
117
213
|
static position(positions?: string[]): VueTypeDef<string>;
|
118
214
|
}
|
215
|
+
export declare enum SelectedTypeEnum {
|
216
|
+
CHECKBOX = "checkbox",
|
217
|
+
CHECK = "check"
|
218
|
+
}
|
219
|
+
export declare function SelectedType(): VueTypeDef<"checkbox" | "check"> & {
|
220
|
+
default: "checkbox" | "check";
|
221
|
+
};
|
119
222
|
export {};
|