bkui-vue 0.0.1-beta.43 → 0.0.1-beta.431
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 +160 -35
- package/dist/index.esm.js +35303 -14404
- package/dist/index.umd.js +160 -35
- package/dist/locale/en.esm.js +2 -0
- package/dist/locale/en.esm.js.map +1 -0
- package/dist/locale/en.umd.js +2 -0
- package/dist/locale/en.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js +2 -0
- package/dist/locale/zh-cn.esm.js.map +1 -0
- package/dist/locale/zh-cn.umd.js +2 -0
- package/dist/locale/zh-cn.umd.js.map +1 -0
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -0
- package/lib/affix/affix.css +3 -0
- package/lib/affix/affix.d.ts +47 -0
- package/lib/affix/affix.less +5 -0
- package/lib/affix/affix.variable.css +125 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +9 -3
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.less +29 -20
- package/lib/alert/alert.variable.css +41 -6
- package/lib/alert/index.d.ts +11 -11
- package/lib/alert/index.js +1 -0
- package/lib/animate-number/animate-number.d.ts +1 -1
- package/lib/animate-number/index.d.ts +4 -4
- package/lib/animate-number/{animate-number.js → index.js} +1 -1
- package/lib/backtop/backtop.css +8 -0
- package/lib/backtop/backtop.d.ts +3 -3
- package/lib/backtop/backtop.less +8 -0
- package/lib/backtop/backtop.variable.css +40 -3
- package/lib/backtop/index.d.ts +10 -10
- package/lib/backtop/index.js +1 -0
- package/lib/badge/badge.css +7 -10
- package/lib/badge/badge.d.ts +28 -7
- package/lib/badge/badge.less +9 -11
- package/lib/badge/badge.variable.css +39 -13
- package/lib/badge/index.d.ts +68 -18
- package/lib/badge/index.js +1 -0
- package/lib/breadcrumb/breadcrumb-item.d.ts +4 -2
- package/lib/breadcrumb/breadcrumb.css +51 -0
- package/lib/breadcrumb/breadcrumb.variable.css +88 -8
- package/lib/breadcrumb/index.d.ts +4 -2
- package/lib/breadcrumb/index.js +1 -0
- package/lib/button/button-group.d.ts +2 -2
- package/lib/button/button.css +85 -50
- package/lib/button/button.d.ts +44 -24
- package/lib/button/button.less +72 -42
- package/lib/button/button.variable.css +117 -53
- package/lib/button/index.d.ts +74 -44
- package/lib/button/index.js +1 -0
- package/lib/card/card.css +96 -1
- package/lib/card/card.d.ts +47 -6
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +132 -8
- package/lib/card/index.d.ts +113 -17
- package/lib/card/index.js +1 -0
- package/lib/cascader/cascader-panel.d.ts +100 -0
- package/lib/cascader/cascader.css +309 -0
- package/lib/cascader/cascader.d.ts +341 -0
- package/lib/cascader/cascader.less +276 -0
- package/lib/cascader/cascader.variable.css +431 -0
- package/lib/cascader/index.d.ts +957 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +51 -0
- package/lib/cascader/node.d.ts +31 -0
- package/lib/cascader/store.d.ts +25 -0
- package/lib/checkbox/checkbox-group.d.ts +16 -0
- package/lib/checkbox/checkbox.css +51 -11
- package/lib/checkbox/checkbox.d.ts +36 -24
- package/lib/checkbox/checkbox.less +85 -32
- package/lib/checkbox/checkbox.variable.css +83 -14
- package/lib/checkbox/common.d.ts +4 -3
- package/lib/checkbox/index.d.ts +70 -38
- package/lib/checkbox/index.js +1 -0
- package/lib/checkbox/type.d.ts +2 -6
- package/lib/code-diff/code-diff.css +27 -7
- package/lib/code-diff/code-diff.d.ts +1 -1
- package/lib/code-diff/code-diff.less +42 -7
- package/lib/code-diff/code-diff.variable.css +59 -10
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse-panel.d.ts +103 -0
- package/lib/collapse/collapse.css +69 -14
- package/lib/collapse/collapse.d.ts +66 -52
- package/lib/collapse/collapse.less +112 -30
- package/lib/collapse/collapse.variable.css +191 -14
- package/lib/collapse/index.d.ts +266 -20
- package/lib/collapse/index.js +1 -0
- package/lib/collapse/props.d.ts +131 -0
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/collapse-transition/collapse-transition.css +93 -0
- package/lib/collapse-transition/collapse-transition.d.ts +15 -0
- package/lib/collapse-transition/collapse-transition.less +111 -0
- package/lib/collapse-transition/collapse-transition.variable.css +215 -0
- package/lib/collapse-transition/index.d.ts +2 -0
- package/lib/collapse-transition/index.js +1 -0
- package/lib/color-picker/color-picker.css +275 -0
- package/lib/color-picker/color-picker.d.ts +144 -0
- package/lib/color-picker/color-picker.less +325 -0
- package/lib/color-picker/color-picker.variable.css +397 -0
- package/lib/color-picker/components/color-input.d.ts +42 -0
- package/lib/color-picker/components/hue-slider.d.ts +41 -0
- package/lib/color-picker/components/input-container.d.ts +42 -0
- package/lib/color-picker/components/recommend-colors.d.ts +51 -0
- package/lib/color-picker/components/saturation-panel.d.ts +41 -0
- package/lib/color-picker/index.d.ts +254 -0
- package/lib/color-picker/index.js +1 -0
- package/lib/color-picker/utils.d.ts +37 -0
- package/lib/components.d.ts +30 -8
- package/lib/components.js +1 -0
- package/lib/config-provider/config-provider.css +0 -0
- package/lib/config-provider/config-provider.d.ts +259 -0
- package/lib/config-provider/config-provider.less +1 -0
- package/lib/config-provider/config-provider.variable.css +122 -0
- package/lib/config-provider/index.d.ts +562 -0
- package/lib/config-provider/index.js +1 -0
- package/lib/config-provider/type.d.ts +125 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +91 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +213 -0
- package/lib/container/index.d.ts +223 -0
- package/lib/container/index.js +1 -0
- package/lib/container/row.d.ts +4 -0
- package/lib/date-picker/base/confirm.d.ts +74 -0
- package/lib/date-picker/base/date-table.d.ts +96 -0
- package/lib/date-picker/base/month-table.d.ts +117 -0
- package/lib/date-picker/base/picker-dropdown.d.ts +74 -0
- package/lib/date-picker/base/time-spinner.d.ts +170 -0
- package/lib/date-picker/base/year-table.d.ts +117 -0
- package/lib/date-picker/date-picker.css +28 -1
- package/lib/date-picker/date-picker.d.ts +49 -20
- package/lib/date-picker/date-picker.less +106 -74
- package/lib/date-picker/date-picker.variable.css +60 -4
- package/lib/date-picker/index.d.ts +121 -54
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +11 -1
- package/lib/date-picker/panel/date-range.d.ts +328 -0
- package/lib/date-picker/panel/date.d.ts +206 -0
- package/lib/date-picker/panel/time-range.d.ts +489 -0
- package/lib/date-picker/panel/time.d.ts +448 -0
- package/lib/date-picker/props.d.ts +55 -5
- package/lib/date-picker/time-picker.d.ts +381 -0
- package/lib/date-picker/utils.d.ts +22 -2
- package/lib/dialog/dialog.css +136 -24
- package/lib/dialog/dialog.d.ts +249 -58
- package/lib/dialog/dialog.less +100 -38
- package/lib/dialog/dialog.variable.css +258 -24
- package/lib/dialog/index.d.ts +553 -126
- package/lib/dialog/index.js +1 -0
- package/lib/dialog/props.d.ts +124 -0
- package/lib/directives/ellipsis.d.ts +7 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/index.js +2 -0
- package/lib/directives/tooltips.d.ts +2 -1
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.d.ts +15 -15
- package/lib/divider/divider.variable.css +32 -3
- package/lib/divider/index.d.ts +34 -34
- package/lib/divider/index.js +1 -0
- package/lib/divider/props.d.ts +6 -6
- package/lib/dropdown/dropdown.css +13 -7
- package/lib/dropdown/dropdown.d.ts +46 -14
- package/lib/dropdown/dropdown.less +47 -34
- package/lib/dropdown/dropdown.variable.css +45 -10
- package/lib/dropdown/index.d.ts +99 -35
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.css +40 -14
- package/lib/exception/exception.d.ts +31 -11
- package/lib/exception/exception.less +59 -22
- package/lib/exception/exception.variable.css +72 -17
- package/lib/exception/index.d.ts +43 -26
- package/lib/exception/index.js +1 -0
- package/lib/exception/typings/index.d.ts +4 -0
- package/lib/fixed-navbar/fixed-navbar.d.ts +16 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -3
- package/lib/fixed-navbar/index.d.ts +40 -5
- package/lib/fixed-navbar/{fixed-navbar.js → index.js} +1 -1
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +22 -7
- package/lib/form/form.css +103 -15
- package/lib/form/form.d.ts +47 -14
- package/lib/form/form.less +152 -46
- package/lib/form/form.variable.css +225 -15
- package/lib/form/index.d.ts +118 -35
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +11 -8
- package/lib/form/utils.d.ts +2 -0
- package/lib/form/validator.d.ts +1 -0
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.d.ts +4 -0
- package/lib/icon/data-shape.js +1 -0
- package/lib/icon/del.d.ts +4 -0
- package/lib/icon/del.js +1 -0
- package/lib/icon/doc-fill.d.ts +4 -0
- package/lib/icon/doc-fill.js +1 -0
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.d.ts +4 -0
- package/lib/icon/enlarge-line.js +1 -0
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.d.ts +4 -0
- package/lib/icon/excel-fill.js +1 -0
- package/lib/icon/exclamation-circle-shape.d.ts +4 -0
- package/lib/icon/exclamation-circle-shape.js +1 -0
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.d.ts +4 -0
- package/lib/icon/filliscreen-line.js +1 -0
- package/lib/icon/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.d.ts +4 -0
- 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.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/img-error.d.ts +4 -0
- package/lib/icon/img-placehoulder.d.ts +4 -0
- package/lib/icon/img-placehoulder.js +1 -0
- package/lib/icon/index.d.ts +79 -53
- package/lib/icon/index.js +1 -0
- 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.d.ts +4 -0
- package/lib/icon/pdf-fill.js +1 -0
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- 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.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/transfer.d.ts +4 -0
- package/lib/icon/transfer.js +1 -0
- package/lib/icon/tree-application-shape.js +1 -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.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.js +1 -1
- 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 +246 -0
- package/lib/image/index.js +1 -0
- package/lib/image/props.d.ts +71 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js +1 -0
- package/lib/info-box/index.d.ts +7 -0
- package/lib/info-box/index.js +1 -0
- package/lib/info-box/info-box.css +37 -0
- package/lib/info-box/info-box.d.ts +28 -0
- package/lib/info-box/info-box.less +51 -0
- package/lib/info-box/info-box.variable.css +159 -0
- package/lib/input/index.d.ts +175 -90
- package/lib/input/index.js +1 -0
- package/lib/input/input.css +183 -19
- package/lib/input/input.d.ts +119 -36
- package/lib/input/input.less +112 -18
- package/lib/input/input.variable.css +246 -54
- package/lib/link/index.d.ts +29 -21
- package/lib/link/index.js +1 -0
- package/lib/link/link.css +12 -12
- package/lib/link/link.d.ts +10 -8
- package/lib/link/link.less +16 -14
- package/lib/link/link.variable.css +44 -15
- package/lib/loading/directive.d.ts +14 -0
- package/lib/loading/index.d.ts +135 -19
- package/lib/loading/index.js +1 -0
- package/lib/loading/loading.css +86 -33
- package/lib/loading/loading.d.ts +94 -12
- package/lib/loading/loading.less +27 -23
- package/lib/loading/loading.variable.css +134 -52
- package/lib/locale/index.d.ts +3 -0
- package/lib/locale/index.js +1 -0
- package/lib/locale/lang/en.d.ts +120 -0
- package/lib/locale/lang/zh-cn.d.ts +3 -0
- package/lib/menu/index.d.ts +16 -24
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu.css +51 -0
- package/lib/menu/menu.d.ts +7 -16
- package/lib/menu/menu.variable.css +101 -21
- package/lib/menu/submenu.variable.css +32 -3
- package/lib/message/index.js +1 -0
- package/lib/message/message.css +17 -5
- package/lib/message/message.less +21 -6
- package/lib/message/message.variable.css +49 -8
- package/lib/message/messageConstructor.d.ts +14 -11
- package/lib/modal/index.d.ts +469 -78
- package/lib/modal/index.js +1 -0
- package/lib/modal/modal.css +63 -1
- package/lib/modal/modal.d.ts +179 -30
- package/lib/modal/modal.less +39 -3
- package/lib/modal/modal.variable.css +185 -1
- package/lib/modal/props.mixin.d.ts +76 -13
- package/lib/navigation/index.d.ts +310 -1
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation.css +1 -1
- package/lib/navigation/navigation.d.ts +11 -2
- package/lib/navigation/navigation.less +1 -1
- package/lib/navigation/navigation.variable.css +33 -4
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +25 -5
- package/lib/notify/notify.less +29 -6
- package/lib/notify/notify.variable.css +57 -8
- package/lib/notify/notifyConstructor.d.ts +62 -21
- package/lib/overflow-title/components/overflow-title.d.ts +38 -0
- package/lib/overflow-title/directive/overflow-title.d.ts +3 -0
- package/lib/overflow-title/index.d.ts +129 -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 +16 -0
- package/lib/overflow-title/utils/getActualWidthByCanvas.d.ts +3 -0
- package/lib/overflow-title/utils/getActualWidthByDom.d.ts +3 -0
- package/lib/pagination/index.d.ts +35 -20
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +54 -28
- package/lib/pagination/pagination.d.ts +18 -8
- package/lib/pagination/pagination.less +59 -30
- package/lib/pagination/pagination.variable.css +86 -31
- package/lib/pagination/use-limit.d.ts +3 -1
- package/lib/pagination/use-total.d.ts +3 -1
- package/lib/plugin-popover/index.d.ts +27 -0
- package/lib/plugin-popover/index.js +1 -0
- package/lib/plugins/index.d.ts +1 -0
- package/lib/plugins/index.js +1 -0
- package/lib/pop-confirm/index.d.ts +246 -0
- package/lib/pop-confirm/index.js +1 -0
- package/lib/pop-confirm/pop-confirm.css +28 -0
- package/lib/pop-confirm/pop-confirm.d.ts +95 -0
- package/lib/pop-confirm/pop-confirm.less +34 -0
- package/lib/pop-confirm/pop-confirm.variable.css +150 -0
- package/lib/pop-confirm/props.d.ts +67 -0
- package/lib/popover/arrow.d.ts +2 -0
- package/lib/popover/const.d.ts +16 -0
- package/lib/popover/content.d.ts +43 -0
- package/lib/popover/index.d.ts +504 -97
- package/lib/popover/index.js +1 -0
- package/lib/popover/plugin-popover.d.ts +12 -0
- package/lib/popover/popover.css +10 -50
- package/lib/popover/popover.d.ts +222 -43
- package/lib/popover/popover.less +19 -66
- package/lib/popover/popover.variable.css +42 -53
- package/lib/popover/props.d.ts +110 -30
- package/lib/popover/reference.d.ts +2 -0
- package/lib/popover/root.d.ts +16 -0
- package/lib/popover/use-floating.d.ts +34 -0
- package/lib/popover/use-platform.d.ts +30 -0
- package/lib/popover/use-popover-init.d.ts +23 -0
- package/lib/popover/use-popper-id.d.ts +6 -0
- package/lib/popover/utils.d.ts +3 -0
- package/lib/popover2/index.d.ts +44 -0
- package/lib/popover2/index.js +1 -0
- package/lib/popover2/popover.d.ts +2 -0
- package/lib/preset.d.ts +244 -2
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +9 -9
- package/lib/process/index.js +1 -0
- package/lib/process/process.css +22 -0
- package/lib/process/process.d.ts +2 -2
- package/lib/process/process.less +30 -2
- package/lib/process/process.variable.css +54 -3
- package/lib/progress/index.d.ts +31 -31
- package/lib/progress/index.js +1 -0
- package/lib/progress/progress.css +51 -0
- package/lib/progress/progress.d.ts +12 -12
- package/lib/progress/progress.variable.css +87 -7
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +36 -18
- package/lib/radio/index.js +1 -0
- package/lib/radio/radio-button.d.ts +7 -8
- package/lib/radio/radio-group.d.ts +26 -0
- package/lib/radio/radio.css +119 -66
- package/lib/radio/radio.d.ts +4 -4
- package/lib/radio/radio.less +253 -173
- package/lib/radio/radio.variable.css +154 -72
- package/lib/radio/type.d.ts +9 -4
- package/lib/rate/index.d.ts +28 -5
- package/lib/rate/index.js +1 -0
- package/lib/rate/rate.d.ts +13 -2
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +18 -18
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +6 -15
- package/lib/resize-layout/resize-layout.d.ts +7 -7
- package/lib/resize-layout/resize-layout.less +10 -19
- package/lib/resize-layout/resize-layout.variable.css +38 -18
- package/lib/search-select/index.d.ts +841 -0
- package/lib/search-select/index.js +1 -0
- package/lib/search-select/input.d.ts +98 -0
- package/lib/search-select/menu.d.ts +76 -0
- package/lib/search-select/search-select.css +424 -0
- package/lib/search-select/search-select.d.ts +343 -0
- package/lib/search-select/search-select.less +380 -0
- package/lib/search-select/search-select.variable.css +546 -0
- package/lib/search-select/selected.d.ts +152 -0
- package/lib/search-select/utils.d.ts +88 -0
- package/lib/select/common.d.ts +5 -12
- package/lib/select/index.d.ts +1792 -688
- package/lib/select/index.js +1 -0
- package/lib/select/option.d.ts +12 -4
- package/lib/select/optionGroup.d.ts +1 -1
- package/lib/select/select.css +186 -113
- package/lib/select/select.d.ts +707 -146
- package/lib/select/select.less +320 -202
- package/lib/select/select.variable.css +218 -116
- package/lib/select/selectTagInput.d.ts +94 -0
- package/lib/select/type.d.ts +21 -13
- package/lib/shared/dom.d.ts +3 -0
- package/lib/shared/helper.d.ts +9 -0
- package/lib/shared/hooks/use-form-item.d.ts +2 -0
- package/lib/shared/hooks/use-form.d.ts +2 -0
- package/lib/shared/index.d.ts +32 -7
- package/lib/shared/index.js +1 -0
- package/lib/shared/mask-manager.d.ts +6 -2
- package/lib/shared/pop-manager.d.ts +16 -4
- package/lib/shared/popover.d.ts +6 -2
- package/lib/shared/token.d.ts +4 -0
- package/lib/shared/utils.d.ts +19 -0
- package/lib/shared/vue-types.d.ts +107 -7
- package/lib/sideslider/index.d.ts +351 -69
- package/lib/sideslider/index.js +1 -0
- package/lib/sideslider/sideslider.css +55 -10
- package/lib/sideslider/sideslider.d.ts +164 -31
- package/lib/sideslider/sideslider.less +72 -13
- package/lib/sideslider/sideslider.variable.css +87 -13
- package/lib/slider/index.d.ts +414 -1
- package/lib/slider/index.js +1 -0
- package/lib/slider/slider-button.d.ts +2 -1
- package/lib/slider/slider.d.ts +4 -4
- package/lib/slider/slider.variable.css +32 -3
- package/lib/steps/index.d.ts +52 -52
- package/lib/steps/index.js +1 -0
- package/lib/steps/steps.css +15 -3
- package/lib/steps/steps.d.ts +32 -32
- package/lib/steps/steps.less +24 -3
- package/lib/steps/steps.variable.css +47 -6
- package/lib/styles/index.d.ts +10 -1
- package/lib/styles/mixins/clearfix.css +8 -0
- package/lib/styles/mixins/clearfix.less +10 -0
- package/lib/styles/mixins/clearfix.variable.css +8 -0
- package/lib/styles/mixins/mixins.css +51 -0
- package/lib/styles/mixins/mixins.less +2 -0
- package/lib/styles/mixins/mixins.variable.css +51 -0
- package/lib/styles/mixins/popper.css +1 -1
- package/lib/styles/mixins/popper.less +12 -11
- package/lib/styles/mixins/popper.variable.css +123 -1
- package/lib/styles/mixins/scroll.css +17 -0
- package/lib/styles/mixins/scroll.less +22 -0
- package/lib/styles/mixins/scroll.variable.css +139 -0
- package/lib/styles/reset.css +36 -0
- package/lib/styles/reset.less +26 -2
- package/lib/styles/reset.variable.css +36 -0
- package/lib/styles/themes/themes.less +42 -3
- package/lib/swiper/index.js +1 -0
- package/lib/switcher/index.d.ts +42 -30
- package/lib/switcher/index.js +1 -0
- package/lib/switcher/switcher.css +57 -6
- package/lib/switcher/switcher.d.ts +19 -13
- package/lib/switcher/switcher.less +5 -26
- package/lib/switcher/switcher.variable.css +106 -26
- package/lib/tab/index.d.ts +111 -64
- package/lib/tab/index.js +1 -0
- package/lib/tab/props.d.ts +58 -10
- package/lib/tab/tab-nav.d.ts +49 -13
- package/lib/tab/tab-panel.d.ts +7 -7
- package/lib/tab/tab.css +151 -55
- package/lib/tab/tab.d.ts +41 -20
- package/lib/tab/tab.less +179 -86
- package/lib/tab/tab.variable.css +183 -58
- 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 +202 -0
- package/lib/table/components/table-row.d.ts +2 -0
- package/lib/table/const.d.ts +123 -1
- package/lib/table/index.d.ts +1080 -44
- package/lib/table/index.js +1 -0
- package/lib/table/plugins/body-empty.d.ts +36 -0
- package/lib/table/plugins/col-group.d.ts +38 -0
- package/lib/table/plugins/common.d.ts +6 -0
- package/lib/table/plugins/head-filter.css +84 -0
- package/lib/table/plugins/head-filter.d.ts +26 -0
- package/lib/table/plugins/head-filter.less +110 -0
- package/lib/table/plugins/head-filter.variable.css +206 -0
- package/lib/table/plugins/head-sort.css +26 -0
- package/lib/table/plugins/head-sort.d.ts +22 -0
- package/lib/table/plugins/head-sort.less +32 -0
- package/lib/table/plugins/head-sort.variable.css +148 -0
- package/lib/table/plugins/index.d.ts +5 -0
- package/lib/table/plugins/settings.css +147 -0
- package/lib/table/plugins/settings.d.ts +37 -0
- package/lib/table/plugins/settings.less +181 -0
- package/lib/table/plugins/settings.variable.css +269 -0
- package/lib/table/plugins/use-active-columns.d.ts +16 -0
- package/lib/table/plugins/use-column-resize.d.ts +15 -0
- package/lib/table/plugins/use-fixed-column.d.ts +26 -0
- package/lib/table/plugins/use-pagination.d.ts +16 -0
- package/lib/table/plugins/use-scroll-loading.d.ts +5 -0
- package/lib/table/props.d.ts +358 -10
- package/lib/table/render.d.ts +48 -4
- package/lib/table/table.css +1214 -12
- package/lib/table/table.d.ts +256 -18
- package/lib/table/table.less +277 -16
- package/lib/table/table.variable.css +1256 -25
- package/lib/table/use-column.d.ts +12 -0
- package/lib/table/use-common.d.ts +113 -0
- package/lib/table/utils.d.ts +71 -11
- package/lib/table-column/index.d.ts +507 -0
- package/lib/table-column/index.js +1 -0
- package/lib/tag/index.d.ts +29 -29
- package/lib/tag/index.js +1 -0
- package/lib/tag/tag.css +46 -13
- package/lib/tag/tag.d.ts +12 -12
- package/lib/tag/tag.less +46 -10
- package/lib/tag/tag.variable.css +78 -16
- package/lib/tag-input/common.d.ts +13 -1
- package/lib/tag-input/index.d.ts +1406 -1
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +0 -3
- package/lib/tag-input/tag-input.css +23 -26
- package/lib/tag-input/tag-input.d.ts +303 -44
- package/lib/tag-input/tag-input.less +102 -104
- package/lib/tag-input/tag-input.variable.css +55 -29
- package/lib/tag-input/tag-props.d.ts +141 -7
- package/lib/tag-input/tag-render.d.ts +30 -4
- package/lib/time-picker/index.d.ts +904 -0
- package/lib/time-picker/index.js +1 -0
- package/lib/time-picker/time-picker.css +215 -0
- package/lib/time-picker/time-picker.less +260 -0
- package/lib/time-picker/time-picker.variable.css +337 -0
- package/lib/timeline/index.d.ts +6 -6
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +16 -9
- package/lib/timeline/timeline.d.ts +1 -1
- package/lib/timeline/timeline.less +22 -9
- package/lib/timeline/timeline.variable.css +48 -12
- package/lib/transfer/const.d.ts +5 -0
- package/lib/transfer/index.d.ts +247 -150
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/props.d.ts +59 -0
- package/lib/transfer/transfer.css +153 -92
- package/lib/transfer/transfer.d.ts +101 -95
- package/lib/transfer/transfer.less +142 -112
- package/lib/transfer/transfer.variable.css +191 -101
- package/lib/tree/constant.d.ts +62 -0
- package/lib/tree/index.d.ts +379 -60
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +124 -0
- package/lib/tree/tree.css +181 -9
- package/lib/tree/tree.d.ts +172 -19
- package/lib/tree/tree.less +54 -3
- package/lib/tree/tree.variable.css +213 -12
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +12 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +33 -0
- package/lib/tree/use-node-drag.d.ts +3 -0
- package/lib/tree/use-search.d.ts +11 -0
- package/lib/tree/use-tree-init.d.ts +15 -0
- package/lib/tree/util.d.ts +4 -6
- package/lib/upload/index.d.ts +566 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +111 -0
- package/lib/upload/upload-list.d.ts +47 -0
- package/lib/upload/upload-trigger.d.ts +51 -0
- package/lib/upload/upload.css +427 -0
- package/lib/upload/upload.d.ts +246 -0
- package/lib/upload/upload.less +466 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +549 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/virtual-render/index.d.ts +50 -4
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +15 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +0 -1
- package/lib/virtual-render/virtual-render.css +17 -17
- package/lib/virtual-render/virtual-render.d.ts +23 -1
- package/lib/virtual-render/virtual-render.less +2 -23
- package/lib/virtual-render/virtual-render.variable.css +139 -17
- package/lib/volar.components.d.ts +102 -0
- package/package.json +59 -26
- package/LICENSE.txt +0 -22
- package/lib/alert/alert.js +0 -1
- package/lib/backtop/backtop.js +0 -1
- package/lib/badge/badge.js +0 -1
- package/lib/breadcrumb/breadcrumb.js +0 -1
- package/lib/button/button.js +0 -1
- package/lib/card/card.js +0 -1
- package/lib/checkbox/checkbox.js +0 -1
- package/lib/code-diff/code-diff.js +0 -1
- package/lib/collapse/collapse.js +0 -1
- package/lib/date-picker/date-picker.js +0 -1
- package/lib/dialog/dialog.js +0 -1
- package/lib/directives/directives.js +0 -2
- package/lib/divider/divider.js +0 -1
- package/lib/dropdown/dropdown.js +0 -1
- package/lib/exception/exception.js +0 -1
- package/lib/form/common.d.ts +0 -3
- package/lib/form/form.js +0 -1
- package/lib/icon/icon.js +0 -1
- package/lib/input/input.js +0 -1
- package/lib/link/link.js +0 -1
- package/lib/loading/loading.js +0 -1
- package/lib/menu/menu.js +0 -1
- package/lib/message/message.js +0 -1
- package/lib/modal/modal.js +0 -1
- package/lib/navigation/navigation.js +0 -1
- package/lib/notify/notify.js +0 -1
- package/lib/pagination/pagination.js +0 -1
- package/lib/popover/popover.js +0 -1
- package/lib/process/process.js +0 -1
- package/lib/progress/progress.js +0 -1
- package/lib/radio/radio.js +0 -1
- package/lib/rate/rate.js +0 -1
- package/lib/resize-layout/resize-layout.js +0 -1
- package/lib/select/select.js +0 -1
- package/lib/shared/shared.js +0 -1
- package/lib/sideslider/sideslider.js +0 -1
- package/lib/slider/slider.js +0 -1
- package/lib/steps/steps.js +0 -1
- package/lib/swiper/swiper.js +0 -1
- package/lib/switcher/switcher.js +0 -1
- package/lib/tab/tab.js +0 -1
- package/lib/table/table.js +0 -1
- package/lib/tag/tag.js +0 -1
- package/lib/tag-input/tag-input.js +0 -1
- package/lib/timeline/timeline.js +0 -1
- package/lib/transfer/transfer.js +0 -1
- package/lib/tree/tree.js +0 -1
- package/lib/use-form.d.ts +0 -3
- package/lib/virtual-render/virtual-render.js +0 -1
- /package/lib/directives/{directives.js.LICENSE.txt → index.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../config-provider"),require("../directives"),require("../icon"),require("../popover"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../config-provider","../directives","../icon","../popover"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../config-provider"),require("../directives"),require("../icon"),require("../popover")):t(e["../shared"],e.vue,e["../config-provider"],e["../directives"],e["../icon"],e["../popover"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n,r,i,a)=>(()=>{var o={7162:(e,t,n)=>{e.exports=n(5047)},5047:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function s(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),o=new C(r||[]);return a._invoke=function(e,t,n){var r=d;return function(i,a){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw a;return N()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var l=L(o,n);if(l){if(l===p)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=c(e,t,n);if("normal"===u.type){if(r=n.done?h:v,u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,o),a}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var d="suspendedStart",v="suspendedYield",f="executing",h="completed",p={};function m(){}function g(){}function _(){}var y={};u(y,a,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(V([])));w&&w!==n&&r.call(w,a)&&(y=w);var x=_.prototype=m.prototype=Object.create(y);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,o,l){var u=c(e[i],e,a);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(d).then((function(e){s.value=e,o(s)}),(function(e){return n("throw",e,o,l)}))}l(u.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function L(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,L(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function V(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:N}}function N(){return{value:t,done:!0}}return g.prototype=_,u(x,"constructor",_),u(_,"constructor",g),g.displayName=u(_,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,u(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},e.awrap=function(e){return{__await:e}},k(E.prototype),u(E.prototype,o,(function(){return this})),e.AsyncIterator=E,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new E(s(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},k(x),u(x,l,"Generator"),u(x,a,(function(){return this})),u(x,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=V,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(I),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return l.type="throw",l.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],l=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var u=r.call(o,"catchLoc"),s=r.call(o,"finallyLoc");if(u&&s){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;I(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:V(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},2717:e=>{"use strict";e.exports=n},4061:e=>{"use strict";e.exports=r},6870:e=>{"use strict";e.exports=i},5537:e=>{"use strict";e.exports=a},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},l={};function u(e){var t=l[e];if(void 0!==t)return t.exports;var n=l[e]={exports:{}};return o[e](n,n.exports,u),n.exports}u.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return u.d(t,{a:t}),t},u.d=(e,t)=>{for(var n in t)u.o(t,n)&&!u.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),u.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";u.r(s),u.d(s,{BkSearchSelect:()=>B,default:()=>D});var e=u(4212),t=u(748),n=null,r=null;function i(e,t){void 0===t&&(t={});var n=document.createElement(e);return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}function a(e,t,n){return(window.getComputedStyle(e,n||null)||{display:"none"})[t]}function o(e){if(!document.documentElement.contains(e))return{detached:!0,rendered:!1};for(var t=e;t!==document;){if("none"===a(t,"display"))return{detached:!1,rendered:!1};t=t.parentNode}return{detached:!1,rendered:!0}}var l=0,c=null;function d(e,t){if(e.__resize_mutation_handler__||(e.__resize_mutation_handler__=v.bind(e)),!e.__resize_listeners__)if(e.__resize_listeners__=[],window.ResizeObserver){var n=e.offsetWidth,r=e.offsetHeight,u=new ResizeObserver((function(){(e.__resize_observer_triggered__||(e.__resize_observer_triggered__=!0,e.offsetWidth!==n||e.offsetHeight!==r))&&h(e)})),s=o(e),d=s.detached,m=s.rendered;e.__resize_observer_triggered__=!1===d&&!1===m,e.__resize_observer__=u,u.observe(e)}else if(e.attachEvent&&e.addEventListener)e.__resize_legacy_resize_handler__=function(){h(e)},e.attachEvent("onresize",e.__resize_legacy_resize_handler__),document.addEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);else if(l||(c=function(e){var t=document.createElement("style");return t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),(document.querySelector("head")||document.body).appendChild(t),t}('.resize-triggers{visibility:hidden;opacity:0;pointer-events:none}.resize-contract-trigger,.resize-contract-trigger:before,.resize-expand-trigger,.resize-triggers{content:"";position:absolute;top:0;left:0;height:100%;width:100%;overflow:hidden}.resize-contract-trigger,.resize-expand-trigger{background:#eee;overflow:auto}.resize-contract-trigger:before{width:200%;height:200%}')),function(e){var t=a(e,"position");t&&"static"!==t||(e.style.position="relative"),e.__resize_old_position__=t,e.__resize_last__={};var n=i("div",{className:"resize-triggers"}),r=i("div",{className:"resize-expand-trigger"}),o=i("div"),l=i("div",{className:"resize-contract-trigger"});r.appendChild(o),n.appendChild(r),n.appendChild(l),e.appendChild(n),e.__resize_triggers__={triggers:n,expand:r,expandChild:o,contract:l},p(e),e.addEventListener("scroll",f,!0),e.__resize_last__={width:e.offsetWidth,height:e.offsetHeight}}(e),e.__resize_rendered__=o(e).rendered,window.MutationObserver){var g=new MutationObserver(e.__resize_mutation_handler__);g.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),e.__resize_mutation_observer__=g}e.__resize_listeners__.push(t),l++}function v(){var e=o(this),t=e.rendered,n=e.detached;t!==this.__resize_rendered__&&(!n&&this.__resize_triggers__&&(p(this),this.addEventListener("scroll",f,!0)),this.__resize_rendered__=t,h(this))}function f(){var e,t,i=this;p(this),this.__resize_raf__&&(e=this.__resize_raf__,r||(r=(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||function(e){clearTimeout(e)}).bind(window)),r(e)),this.__resize_raf__=(t=function(){var e,t,n,r,a,o,l=(n=(t=(e=i).__resize_last__).width,r=t.height,a=e.offsetWidth,o=e.offsetHeight,a!==n||o!==r?{width:a,height:o}:null);l&&(i.__resize_last__=l,h(i))},n||(n=(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){return setTimeout(e,16)}).bind(window)),n(t))}function h(e){e&&e.__resize_listeners__&&e.__resize_listeners__.forEach((function(t){t.call(e,e)}))}function p(e){var t=e.__resize_triggers__,n=t.expand,r=t.expandChild,i=t.contract,a=i.scrollWidth,o=i.scrollHeight,l=n.offsetWidth,u=n.offsetHeight,s=n.scrollWidth,c=n.scrollHeight;i.scrollLeft=a,i.scrollTop=o,r.style.width=l+1+"px",r.style.height=u+1+"px",n.scrollLeft=s,n.scrollTop=c}var m=u(2717),g=u(4061),_=u(6870),y=u(7162),b=u.n(y);function w(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{u(r.next(e))}catch(e){a(e)}}function l(e){try{u(r.throw(e))}catch(e){a(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,l)}u((r=r.apply(e,t||[])).next())}))}Object.create,Object.create;var x=u(5537),k=u.n(x);const E=(0,t.defineComponent)({name:"SearchSelectMenu",props:{list:{type:Array},hoverId:String,keyword:{type:String,default:""},multiple:{type:Boolean,default:!1},selected:{type:Array,default:function(){return[]}},conditions:{type:Array},footerBtns:{type:Array,default:function(){return[]}}},emits:["selectItem","selectCondition","footerClick"],setup:function(e,n){var r=n.emit,i=(0,m.useLocale)("searchSelect"),a=(0,t.computed)((function(){return void 0===e.footerBtns||0===e.footerBtns.length?[{id:"confirm",name:i.value.ok},{id:"cancel",name:i.value.cancel,disabled:!1}]:e.footerBtns}));return{handleClick:function(e){r("selectItem",e)},handleClickCondition:function(e){r("selectCondition",e)},handleClickFooterBtn:function(e){r("footerClick",e)},filterList:(0,t.computed)((function(){var t,n;return(null===(t=e.list)||void 0===t?void 0:t.length)?(null===(n=e.keyword)||void 0===n?void 0:n.length)?e.list.filter((function(t){return t.name.toLocaleLowerCase().includes(e.keyword.toLocaleLowerCase())})):e.list:[]})),getSearchNode:function(n){var r;return(null===(r=n.value)||void 0===r?void 0:r.name)?[(0,t.createVNode)("span",{class:"menu-name"},[n.name,(0,t.createTextVNode)(":")]),n.value.name]:function(n){if(!n)return n;var r=e.keyword,i=r.length;if(!(null==r?void 0:r.trim().length)||!n.toLocaleLowerCase().includes(r.toLocaleLowerCase()))return n;var a=[],o=-1;return r=r.replace(/([.*/]{1})/gim,"\\$1"),n.replace(new RegExp("".concat(r),"igm"),(function(e,r){return 0===a.length&&0!==r?a.push(n.slice(0,r)):o>=0&&a.push(n.slice(o+e.length,r)),a.push((0,t.createVNode)("span",{class:"is-keyword"},[e])),o=r,e})),o>=0&&a.push(n.slice(o+i)),a.length?a:n}(n.name)},localFooterBtns:a}},render:function(){var e,n,r,i=this;return(0,t.createVNode)("div",{class:"bk-search-select-menu"},[!!(null===(e=this.conditions)||void 0===e?void 0:e.length)&&(0,t.createVNode)("ul",{class:"menu-header"},[this.conditions.map((function(e){return(0,t.createVNode)("li",{key:e.id,class:"menu-header-item ".concat(e.disabled?"is-disabled":""),onClick:function(){return!e.disabled&&i.handleClickCondition(e)}},[e.name])}))]),(0,t.createVNode)("ul",{class:"menu-content"},[null===(n=this.list)||void 0===n?void 0:n.map((function(e){return(0,t.createVNode)("li",{class:"menu-item ".concat(e.disabled?"is-disabled":""," ").concat(i.hoverId!==e.id||e.disabled?"":"is-hover"),key:e.id,id:e.id,tabindex:"-1",onClick:function(){return!e.disabled&&i.handleClick(e)}},[i.$slots.default?i.$slots.default({item:e,list:i.list,multiple:!!i.multiple,hoverId:i.hoverId,getSearchNode:i.getSearchNode}):(0,t.createVNode)(t.Fragment,null,[i.getSearchNode(e),i.multiple&&i.selected.includes(e.id)&&(0,t.createVNode)(_.Done,{class:"is-selected"},null)])])}))]),this.multiple&&(null===(r=this.localFooterBtns)||void 0===r?void 0:r.length)&&(0,t.createVNode)("div",{class:"menu-footer"},[this.localFooterBtns.map((function(e){return(0,t.createVNode)("span",{class:"menu-footer-btn ".concat(e.disabled?"is-disabled":""),key:e.id,onClick:function(){return!e.disabled&&i.handleClickFooterBtn(e)}},[e.name])}))])])}});function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(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)}}var I;!function(e){e.ALL="all",e.NEEDKEY="need-key"}(I||(I={}));var C,V=Symbol("SEARCH_SLECT_PROVIDER_KEY"),N=function(){return(0,t.inject)(V)};!function(e){e.DEFAULT="default",e.EDIT="edit"}(C||(C={}));var z=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"|";L(this,e),this.searchItem=t,this.type=n,this.splitCode=r,this.values=[],this.id=t.id,this.name=t.name}var t,n;return t=e,(n=[{key:"multiple",get:function(){return!!this.searchItem.multiple}},{key:"placeholder",get:function(){return this.searchItem.placeholder||""}},{key:"children",get:function(){return this.searchItem.children||[]}},{key:"validate",get:function(){return!this.searchItem.noValidate}},{key:"inputInnerHtml",get:function(){var e;return this.isSpecialType()?this.name:"".concat(this.keyInnerHtml).concat((null===(e=this.values)||void 0===e?void 0:e.map((function(e){return e.name})).join(this.splitCode))||"")}},{key:"inputInnerText",get:function(){var e;return this.isSpecialType()?this.name:"".concat(this.keyInnerText).concat((null===(e=this.values)||void 0===e?void 0:e.map((function(e){return e.name})).join(this.splitCode))||"")}},{key:"keyInnerHtml",get:function(){return this.isSpecialType()?this.name:this.name?"".concat(this.name,": "):""}},{key:"keyInnerText",get:function(){return this.isSpecialType()?this.name:this.name?"".concat(this.name,": "):""}},{key:"isSpecialType",value:function(){return["text","condition"].includes(this.type)}},{key:"addValue",value:function(e){if(this.multiple){var t=this.values.findIndex((function(t){return t.id===e.id}));return t>-1?void this.values.splice(t,1):void this.values.push(e)}this.values=[e]}},{key:"toValue",value:function(){var e,t={id:this.id,name:this.name};return(null===(e=this.values)||void 0===e?void 0:e.length)&&(t.values=this.values.map((function(e){return{id:e.id,name:e.name}}))),this.type&&"default"!==this.type&&(t.type=this.type),t}},{key:"toValueKey",value:function(){return JSON.stringify(this.toValue())}},{key:"isInValueList",value:function(e){return this.children.some((function(t){return t.id===(null==e?void 0:e.id)}))}}])&&S(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();const O=(0,t.defineComponent)({name:"SearchSelectInput",directives:{clickoutside:g.clickoutside},props:{data:{type:Array,required:!0},showInputBefore:Boolean,showCondition:Boolean,clickOutside:Function,conditions:{type:Array,default:function(){return[]}},defautUsingItem:Object,mode:{type:String,default:C.DEFAULT},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["focus","add","delete"],setup:function(n,r){var i=r.emit,a=r.expose,o=(0,m.useLocale)("searchSelect"),l=(0,t.ref)(null),u=(0,t.ref)(null),s=(0,t.ref)(""),c=(0,t.ref)(!1),d=(0,t.ref)(!1),v=(0,t.ref)(!1),f=(0,t.ref)(n.defautUsingItem),h=(0,t.ref)(""),p=(0,t.ref)(!1),g=(0,e.debounce)(300,M),_=!1,y=(0,t.ref)([]),x=(0,t.ref)([]),k=N(),E=k.editKey,L=k.onValidate,S=k.valueSplitCode;function V(e){switch(e.code){case"ArrowDown":case"ArrowUp":O(e);break;case"Enter":case"NumpadEnter":!function(e){if(_){e.preventDefault();var t=x.value.find((function(e){return e.id===h.value}));t&&j(t)}}(e)}}function O(e){var t;e.preventDefault(),null===(t=l.value)||void 0===t||t.blur();for(var n=x.value.length,r=n,i=x.value.findIndex((function(e){return e.id===h.value}));r>=0;){i=(i="ArrowDown"===e.code?i+1:i-1)>n-1?0:i<0?n-1:i;var a=x.value[i];if(a&&!a.disabled){r=-1;var o=document.getElementById(a.id);return null==o||o.focus(),void(h.value=a.id)}r-=1}}function T(e){A(),e&&M()}function F(e){var t;return w(this,void 0,void 0,b().mark((function r(){var a,o,l,u,d;return b().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==e||e.preventDefault(),r.next=3,new Promise((function(e){return setTimeout(e,0)}));case 3:if(f.value){r.next=16;break}if(s.value&&n.valueBehavior!==I.NEEDKEY){r.next=6;break}return r.abrupt("return");case 6:return a={id:s.value,name:s.value},r.next=9,B(a);case 9:if(r.sent){r.next=12;break}return r.abrupt("return");case 12:return i("add",new z(a,"text",S.value)),s.value="",M(),r.abrupt("return");case 16:if(null==(o=f.value.values)?void 0:o.length){r.next=43;break}if(!(null===(t=s.value)||void 0===t?void 0:t.length)){r.next=41;break}if(!s.value.includes(S.value)){r.next=29;break}return l=s.value.split(S.value),r.next=23,B({id:s.value,name:s.value});case 23:if(r.sent){r.next=26;break}return r.abrupt("return");case 26:l.forEach((function(e){return f.value.addValue({id:e,name:e})})),r.next=36;break;case 29:return u={id:s.value,name:s.value},r.next=32,B(u);case 32:if(r.sent){r.next=35;break}return r.abrupt("return");case 35:f.value.addValue(u);case 36:return i("add",f.value),s.value="",f.value=null,A(!0),r.abrupt("return");case 41:return c.value=!0,r.abrupt("return");case 43:if(!s.value){r.next=56;break}return d={id:s.value,name:s.value},r.next=47,B(d);case 47:if(r.sent){r.next=50;break}return r.abrupt("return");case 50:return f.value.addValue(d),i("add",f.value),s.value="",f.value=null,A(!0),r.abrupt("return");case 56:return r.next=58,B();case 58:if(r.sent){r.next=61;break}return r.abrupt("return");case 61:q();case 62:case"end":return r.stop()}}),r)})))}function j(e,t){var r,i,a,o,u;return w(this,void 0,void 0,b().mark((function c(){var d,p;return b().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(!(null===(r=e.value)||void 0===r?void 0:r.id)){c.next=8;break}if((n.valueBehavior!==I.NEEDKEY||!e.value)&&n.validateValues){c.next=8;break}return(d=new z(Object.assign(Object.assign({},e),{id:null!==(i=e.realId)&&void 0!==i?i:e.id}),t,S.value)).addValue(e.value),q(d),n.valueBehavior===I.NEEDKEY&&h.value&&A(!0),h.value="",c.abrupt("return");case 8:if(f.value&&(null===(a=null==l?void 0:l.value)||void 0===a?void 0:a.innerText)){c.next=16;break}return f.value=new z(e,t,S.value),s.value="",(p="condition"===t)&&q(),v.value=p||!!f.value.children.length,A(n.valueBehavior===I.NEEDKEY&&!!h.value),c.abrupt("return");case 16:if("condition"!==(null===(o=f.value)||void 0===o?void 0:o.type)){c.next=20;break}return f.value=new z(e,t,S.value),q(),c.abrupt("return");case 20:return f.value.addValue(e),c.next=23,B(e);case 23:if(c.sent){c.next=26;break}return c.abrupt("return");case 26:f.value.multiple||q(),n.valueBehavior===I.NEEDKEY&&(null===(u=f.value)||void 0===u?void 0:u.multiple)&&A();case 28:case"end":return c.stop()}}),c)})))}function B(e){return w(this,void 0,void 0,b().mark((function t(){var r,i,a,o;return b().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(f.value){t.next=4;break}return t.next=3,D(null,[e]);case 3:case 8:return t.abrupt("return",t.sent);case 4:if(r=f.value,i=r.searchItem,a=r.validate,o=r.values,!a||"function"!=typeof n.validateValues){t.next=9;break}return t.next=8,D(i,e?[e]:o);case 9:return L(""),t.abrupt("return",!0);case 11:case"end":return t.stop()}}),t)})))}function D(e,t){var r;return w(this,void 0,void 0,b().mark((function i(){var a;return b().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,null===(r=n.validateValues)||void 0===r?void 0:r.call(n,null!=e?e:null,t).catch((function(){return!1}));case 2:if("string"!=typeof(a=i.sent)&&!1!==a){i.next=6;break}return L(a||"校验错误"),i.abrupt("return",!1);case 6:return L(""),i.abrupt("return",!0);case 8:case"end":return i.stop()}}),i)})))}function A(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&(0,t.nextTick)().then((function(){M()})),d.value=!0,v.value=!0,c.value=!1;var n=setTimeout((function(){if(l.value){l.value.focus();var e=window.getSelection();0===e.focusOffset&&(e.selectAllChildren(l.value),e.collapseToEnd())}window.clearTimeout(n)}),0);i("focus",d.value)}function M(){var t,r,i,a,o;return w(this,void 0,void 0,b().mark((function l(){var u,c;return b().wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(u=[],"function"!=typeof n.getMenuList||void 0!==(null===(r=null===(t=f.value)||void 0===t?void 0:t.searchItem)||void 0===r?void 0:r.async)&&!0!==f.value.searchItem.async){l.next=9;break}return p.value=!0,l.next=5,n.getMenuList(null===(i=f.value)||void 0===i?void 0:i.searchItem,s.value).catch((function(){return[]}));case 5:u=l.sent,p.value=!1,l.next=10;break;case 9:(null==f?void 0:f.value)?"condition"===f.value.type?u=n.conditions:(null===(o=f.value.values)||void 0===o?void 0:o.length)&&!f.value.multiple&&n.mode!==C.EDIT||(u=f.value.children.filter((function(e){return e.name.toLocaleLowerCase().includes(s.value.toLocaleLowerCase())}))):(null===(a=s.value)||void 0===a?void 0:a.length)?n.data.filter((function(e){return!e.isSelected})).forEach((function(t){var n,r;t.name.toLocaleLowerCase().includes(s.value.toLocaleLowerCase())?(u.push(t),null===(n=t.children)||void 0===n||n.forEach((function(n){u.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:n}))})),u.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:{id:s.value,name:s.value}}))):(null===(r=t.children)||void 0===r||r.forEach((function(n){n.name.toLocaleLowerCase().includes(s.value.toLocaleLowerCase())&&u.push(Object.assign(Object.assign({},t),{realId:t.id,id:(0,e.random)(10),value:n}))})),u.push(Object.assign(Object.assign({},t),{value:{id:s.value,name:s.value}})))})):u=n.data.filter((function(e){return!e.isSelected})).slice();case 10:x.value=u,n.valueBehavior===I.NEEDKEY&&(c=u.find((function(e){return!e.disabled})))&&(!h.value||h.value&&!u.some((function(e){return e.id===h.value})))&&(h.value=c.id);case 12:case"end":return l.stop()}}),l)})))}function q(e){i("add",null!=e?e:f.value),f.value=null,s.value="",A(n.valueBehavior===I.NEEDKEY)}function K(){var e=l.value.innerText;"\n"===e[e.length-1]||"\r"===e[0]?(H(e.slice(0,-1)),K()):"\n"!==e[0]&&"\r"!==e[0]||(H(e.slice(1)),K())}function H(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";l.value&&(l.value.innerHTML=t||(null===(e=f.value)||void 0===e?void 0:e.inputInnerHtml)||"")}return(0,t.watch)(E,(function(){n.mode===C.DEFAULT&&E.value&&(v.value=!1)})),(0,t.watchEffect)((function(){s.value||H()}),{flush:"pre"}),(0,t.watch)([x,v],(function(){var e;(null===(e=x.value)||void 0===e?void 0:e.some((function(e){return!e.disabled})))&&v.value?_||(n.valueBehavior===I.NEEDKEY?h.value=x.value.find((function(e){return!e.disabled})).id:h.value="",_=!0,document.addEventListener("keydown",V)):(document.removeEventListener("keydown",V),_=!1,n.valueBehavior!==I.NEEDKEY&&(h.value=""))})),a({handleInputFocus:T,isFocus:d}),{popoverRef:u,inputRef:l,keyword:s,loading:p,remoteMenuList:y,menuList:x,menuHoverId:h,isFocus:d,usingItem:f,showPopover:v,showNoSelectValueError:c,debounceSetMenuList:g,documentArrowEvent:O,handleClickOutside:function(e){var t,r;!(null===(t=u.value)||void 0===t?void 0:t.contains(e.target))&&(null===(r=n.clickOutside)||void 0===r?void 0:r.call(n,e.target,u.value))&&(v.value=!1,d.value=!1,i("focus",d.value))},handleInputFocus:T,handleInputChange:function(e){var t,n,r,i,a,o,u,c,d;K();var v=e.target.innerText;if(/(\r|\n)/gm.test(v)||/\s{2}/gm.test(v))e.preventDefault(),v=v.replace(/(\r|\n)/gm,S.value).replace(/\s{2}/gm,""),l.value.innerText=v,A(),s.value=v.replace((null===(t=f.value)||void 0===t?void 0:t.keyInnerText)||"","").trim(),g();else if(!s.value&&v.length<((null===(r=null===(n=f.value)||void 0===n?void 0:n.inputInnerText)||void 0===r?void 0:r.length)||1)){var h=v.replace(" "," ").replace((null===(i=f.value)||void 0===i?void 0:i.keyInnerText.replace(" "," ").trim())||"","").trim();if(v&&(null===(a=f.value)||void 0===a?void 0:a.keyInnerText)&&v.replace(" "," ").includes(f.value.keyInnerText.replace(" "," ").trim())&&h&&(null===(o=f.value.values)||void 0===o?void 0:o.length))return s.value=h,console.info("outerText",h),void g();!h&&(null==v?void 0:v.length)||(f.value=null),s.value=h?v:"",g()}else(null===(c=null===(u=f.value)||void 0===u?void 0:u.values)||void 0===c?void 0:c.length)||(s.value=v.replace(" "," ").replace((null===(d=f.value)||void 0===d?void 0:d.keyInnerText.replace(" "," "))||"","").trim(),A(),g())},handleInputKeyup:function(e){switch(e.code){case"Enter":case"NumpadEnter":if(n.valueBehavior===I.NEEDKEY&&x.value.some((function(e){return e.id===h.value})))return;F(e);break;case"Backspace":!function(){var e,r;if(!f.value&&!s.value)return i("delete"),void(0,t.nextTick)(M);if(null===(e=f.value)||void 0===e?void 0:e.values.length){if((null===(r=f.value)||void 0===r?void 0:r.multiple)||f.value.isInValueList(f.value.values[0])||n.mode===C.EDIT&&!s.value)return f.value.values.splice(-1,1),s.value="",void A()}else s.value||(f.value=null,s.value="",M());L("")}();default:c.value=!1}},handleSelectItem:j,handleSelectCondtionItem:function(e){j(e,"condition")},handleMenuFooterClick:function(e){switch(e.id){case"confirm":F();break;case"cancel":f.value.values=[],v.value=!1}},t:o}},render:function(){var e,n,r=this,i=this.usingItem||{},a=i.multiple,o=i.values,l=i.placeholder,u=i.inputInnerHtml,s=!(null===(e=this.keyword)||void 0===e?void 0:e.length)&&!(null==o?void 0:o.length)&&l,c=this.loading||this.showNoSelectValueError||this.showPopover&&!!(null===(n=this.menuList)||void 0===n?void 0:n.length),d=!this.usingItem&&this.showCondition,v=Object.assign({},this.$slots.menu?{default:function(e){var t,n;return null===(n=(t=r.$slots).menu)||void 0===n?void 0:n.call(t,e)}}:{});return(0,t.createVNode)(k(),{trigger:"manual",theme:"light",placement:"bottom-start",arrow:!1,disableOutsideClick:!0,isShow:c},{default:function(){var e;return(0,t.withDirectives)((0,t.createVNode)("div",{ref:"inputRef",class:{"div-input":!0,"input-before":r.showInputBefore&&!(null===(e=r.keyword)||void 0===e?void 0:e.length),"input-after":s},contenteditable:!0,"data-placeholder":u||r.keyword?"":r.t.pleaseSelect,"data-tips":l||"",spellcheck:"false",onFocus:r.handleInputFocus,onInput:r.handleInputChange,onKeydown:r.handleInputKeyup},null),[[(0,t.resolveDirective)("clickoutside"),r.handleClickOutside]])},content:function(){var e;return r.loading?(0,t.createVNode)("div",null,[r.t.loading]):r.showNoSelectValueError?(0,t.createVNode)("div",null,[r.t.filterQueryMustHasValue]):(null===(e=r.menuList)||void 0===e?void 0:e.length)?(0,t.createVNode)("div",{ref:"popoverRef",class:"bk-search-select-popover"},[(0,t.createVNode)(E,{list:r.menuList,keyword:r.keyword,multiple:!!a,hoverId:r.menuHoverId,selected:(null==o?void 0:o.map((function(e){return e.id})))||[],conditions:d?r.conditions:[],onSelectItem:r.handleSelectItem,onSelectCondition:r.handleSelectCondtionItem,onFooterClick:r.handleMenuFooterClick},Object.assign({},v))]):void 0}})}}),T=(0,t.defineComponent)({name:"SearchSelected",props:{data:{type:Array,required:!0},selectedList:{type:Array,required:!0},overflowIndex:{type:Number,default:-1},conditions:{type:Array,default:function(){return[]}},getMenuList:Function,validateValues:Function,valueBehavior:String},emits:["delete"],setup:function(e,n){var r=n.emit,i=(0,t.ref)(null),a=N(),o=a.onEditClick,l=a.onEditEnter,u=a.onEditBlur,s=a.editKey,c=a.valueSplitCode;return{inputRef:i,editKey:s,copySeletedItem:function(e){var t=new z(e.searchItem,e.type,c.value);return t.values=e.values.slice(),t},handleDeleteSelected:function(e){r("delete",e)},handleEditSeleted:function(e,t,n){e.preventDefault(),e.stopPropagation(),o(t,n),setTimeout((function(){return i.value.handleInputFocus()}),200)},handleInputOutside:function(){return!0},handleAddSelected:function(e,t){l(e,t)},handleInputFocus:function(e){e||u()}}},render:function(){var e=this,n=function(n,r){return e.editKey==="".concat(n.id,"_").concat(r)?(0,t.createVNode)("div",{class:"selected-input",key:e.editKey.toString()},[(0,t.createVNode)(O,{ref:"inputRef",key:e.editKey.toString(),mode:C.EDIT,data:e.data,showCondition:!1,conditions:e.conditions,defautUsingItem:e.copySeletedItem(n),clickOutside:e.handleInputOutside,getMenuList:e.getMenuList,validateValues:e.validateValues,valueBehavior:e.valueBehavior,onAdd:function(t){return e.handleAddSelected(t,r)},onFocus:e.handleInputFocus},null)]):(0,t.createVNode)("li",{class:"search-container-selected ".concat((e.overflowIndex>=0?r<e.overflowIndex:r>=0)?"":"hidden-selected"),key:"".concat(n.id,"_").concat(r)},[(0,t.createVNode)("span",{class:"selected-name",onClick:function(t){return e.handleEditSeleted(t,n,r)}},[n.inputInnerText]),(0,t.createVNode)(_.Error,{class:"selected-clear",onClick:function(){return e.handleDeleteSelected(r)}},null)])};return(0,t.createVNode)(t.Fragment,null,[this.selectedList.map((function(r,i){return[e.overflowIndex>=0&&i===e.overflowIndex&&(0,t.createVNode)("div",{class:"search-container-selected overflow-selected"},[(0,t.createTextVNode)("+"),e.selectedList.length-e.overflowIndex]),n(r,i)]}))])}});var F={data:{type:Array,default:function(){return[]}},modelValue:{type:Array,default:function(){return[]}},shrink:{type:Boolean,default:!0},maxHeight:{type:Number,default:120},minHeight:{type:Number,default:26},conditions:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},getMenuList:Function,validateValues:Function,valueSplitCode:{type:String,default:"|"},uniqueSelect:{type:Boolean,default:!1},valueBehavior:{type:String,default:I.ALL,validator:function(e){return[I.ALL,I.NEEDKEY].includes(e)}}};const j=(0,t.defineComponent)({name:"SearchSelect",directives:{clickoutside:g.clickoutside},props:F,emits:["update:modelValue"],setup:function(n,r){var i,a=r.emit,o=(0,m.useLocale)("searchSelect"),u=(0,t.computed)((function(){return void 0===n.conditions?[{id:"or",name:o.value.or},{id:"and",name:o.value.and}]:n.conditions})),s=(0,t.ref)(null),v=(0,t.ref)(null),h=(0,t.ref)(!1),p=(0,t.ref)([]),g=(0,t.ref)(-1),_=(0,e.debounce)(32,S),y=(0,t.ref)(""),b=(0,t.ref)(""),w=(0,t.computed)((function(){return n.valueSplitCode})),x=(0,t.shallowRef)([]);function k(e,t){y.value="".concat(e.id,"_").concat(t)}function E(e,t){var n=p.value.slice();n.splice(t,1,e),a("update:modelValue",n.map((function(e){return e.toValue()}))),y.value=""}function L(e){b.value=e||""}function S(){if(h.value||p.value.length<1)g.value=-1;else{for(var e=v.value.querySelector(".bk-search-select-container"),t=v.value.querySelector(".search-container").clientWidth-6-2,r=e.querySelectorAll(".search-container-selected:not(.overflow-selected)"),i=0,a=0,o=0;0===a&&i<=t-40&&o<=r.length-1;){var l=r[o];if(l.clientHeight>n.minHeight)return void(g.value=o);(i+=l?l.clientWidth+6:0)>=t-40&&(a=o),o+=1}a===r.length-1&&i<=t?g.value=-1:g.value=i>=t-40?a:a-1}}return(0,t.watch)((function(){return n.data}),(function(){var e;x.value=JSON.parse(JSON.stringify(n.data)),null===(e=x.value)||void 0===e||e.forEach((function(e){e.isSelected=n.uniqueSelect&&!!n.modelValue.some((function(t){return t.id===e.id}))}))}),{immediate:!0}),(0,t.watch)((function(){return n.modelValue}),(function(e){var t,r;if(!(null==e?void 0:e.length))return p.value=[],void(null===(t=x.value)||void 0===t||t.forEach((function(e){e.isSelected=!1})));var i=[];e.forEach((function(e){var t,r=p.value.find((function(t){return t.id===e.id&&t.name===e.name}));if((null==r?void 0:r.toValueKey())===JSON.stringify(e))r.values=e.values||[],i.push(r);else{var a=n.data.find((function(t){return t.id===e.id})),o="default";a||(a=n.conditions.find((function(t){return t.id===e.id})))&&(o="condition"),a||(null===(t=e.values)||void 0===t?void 0:t.length)||(o="text");var l=new z(a||e,o,w.value);l.values=e.values||[],i.push(l)}})),p.value=i,null===(r=x.value)||void 0===r||r.forEach((function(e){e.isSelected=n.uniqueSelect&&!!i.some((function(t){return t.id===e.id}))}))}),{immediate:!0,deep:!0}),(0,t.onMounted)((function(){d(v.value.querySelector(".bk-search-select-container"),_)})),(0,t.onBeforeUnmount)((function(){!function(e,t){var n=e.__resize_listeners__;if(n){if(t&&n.splice(n.indexOf(t),1),!n.length||!t){if(e.detachEvent&&e.removeEventListener)return e.detachEvent("onresize",e.__resize_legacy_resize_handler__),void document.removeEventListener("DOMSubtreeModified",e.__resize_mutation_handler__);e.__resize_observer__?(e.__resize_observer__.unobserve(e),e.__resize_observer__.disconnect(),e.__resize_observer__=null):(e.__resize_mutation_observer__&&(e.__resize_mutation_observer__.disconnect(),e.__resize_mutation_observer__=null),e.removeEventListener("scroll",f),e.removeChild(e.__resize_triggers__.triggers),e.__resize_triggers__=null),e.__resize_listeners__=null}!--l&&c&&c.parentNode.removeChild(c)}}(v.value.querySelector(".bk-search-select-container"),_)})),i={onEditClick:k,onEditEnter:E,onEditBlur:function(){y.value="",L("")},onValidate:L,editKey:y,valueSplitCode:w},(0,t.provide)(V,i),{inputRef:s,wrapRef:v,isFocus:h,copyData:x,selectedList:p,overflowIndex:g,validateStr:b,splitCode:w,onEditClick:k,onEditEnter:E,handleWrapClick:function(){y.value||s.value.handleInputFocus()},handleInputFocus:function(e){e&&(g.value=-1),h.value=e},handleResize:S,handleClearAll:function(){p.value=[],g.value=-1,a("update:modelValue",[])},handleInputOutside:function(e){var t;return!(null===(t=v.value)||void 0===t?void 0:t.contains(e))},handleAddSelected:function(e){var t=p.value.slice();t.push(e),L(""),a("update:modelValue",t.map((function(e){return e.toValue()})))},handleDeleteSelected:function(e){var t=p.value.slice();t.splice("number"==typeof e?e:p.value.length-1,1),L(""),a("update:modelValue",t.map((function(e){return e.toValue()})))},localConditions:u}},render:function(){var e,n,r=this,i="".concat(!this.shrink||this.isFocus?this.maxHeight:this.minHeight,"px"),a=!!this.selectedList.length&&"condition"!==this.selectedList.slice(-1)[0].type,o=Object.assign({},this.$slots.menu?{menu:function(e){var t,n;return null===(n=(t=r.$slots).menu)||void 0===n?void 0:n.call(t,e)}}:{});return(0,t.createVNode)("div",{class:"bk-search-select",ref:"wrapRef"},[(0,t.createVNode)("div",{class:{"bk-search-select-container":!0,"is-focus":this.isFocus},onClick:this.handleWrapClick},[(0,t.createVNode)("div",{class:"search-prefix"},[null===(n=(e=this.$slots).prepend)||void 0===n?void 0:n.call(e)]),(0,t.createVNode)("div",{class:"search-container",style:{maxHeight:i}},[(0,t.createVNode)(T,{data:this.copyData,conditions:this.localConditions,selectedList:this.selectedList,overflowIndex:this.overflowIndex,getMenuList:this.getMenuList,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onDelete:this.handleDeleteSelected},Object.assign({},o)),(0,t.createVNode)("div",{class:"search-container-input"},[(0,t.createVNode)(O,{ref:"inputRef",data:this.copyData,showInputBefore:!this.selectedList.length,showCondition:a,conditions:this.localConditions,clickOutside:this.handleInputOutside,getMenuList:this.getMenuList,validateValues:this.validateValues,valueBehavior:this.valueBehavior,onAdd:this.handleAddSelected,onDelete:this.handleDeleteSelected,onFocus:this.handleInputFocus},Object.assign({},o))])]),(0,t.createVNode)("div",{class:"search-nextfix"},[this.clearable&&!!this.selectedList.length&&(0,t.createVNode)(_.Close,{class:"search-clear",onClick:this.handleClearAll},null),this.$slots.append?this.$slots.append():(0,t.createVNode)(_.Search,{class:"search-nextfix-icon ".concat(this.isFocus?"is-focus":"")},null)])]),!!this.validateStr.length&&(0,t.createVNode)("div",{class:"bk-search-select-tips"},[this.$slots.validate?this.$slots.validate():(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)(_.ExclamationCircleShape,{class:"select-tips"},null),this.validateStr||""])])])}});var B=(0,e.withInstall)(j);const D=B})(),s})()));
|
@@ -0,0 +1,98 @@
|
|
1
|
+
import { PropType, Ref } from 'vue';
|
2
|
+
import { GetMenuListFunc, ICommonItem, IMenuFooterItem, ISearchItem, SearchInputMode, SearchItemType, SelectedItem, ValidateValuesFunc, ValueBehavior } from './utils';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
data: {
|
5
|
+
type: PropType<ISearchItem[]>;
|
6
|
+
required: true;
|
7
|
+
};
|
8
|
+
showInputBefore: BooleanConstructor;
|
9
|
+
showCondition: BooleanConstructor;
|
10
|
+
clickOutside: FunctionConstructor;
|
11
|
+
conditions: {
|
12
|
+
type: PropType<ICommonItem[]>;
|
13
|
+
default: () => any[];
|
14
|
+
};
|
15
|
+
defautUsingItem: PropType<SelectedItem>;
|
16
|
+
mode: {
|
17
|
+
type: PropType<SearchInputMode>;
|
18
|
+
default: SearchInputMode;
|
19
|
+
};
|
20
|
+
getMenuList: PropType<GetMenuListFunc>;
|
21
|
+
validateValues: PropType<ValidateValuesFunc>;
|
22
|
+
valueBehavior: PropType<ValueBehavior>;
|
23
|
+
}, {
|
24
|
+
popoverRef: Ref<HTMLDivElement>;
|
25
|
+
inputRef: Ref<HTMLDivElement>;
|
26
|
+
keyword: Ref<string>;
|
27
|
+
loading: Ref<boolean>;
|
28
|
+
remoteMenuList: Ref<{
|
29
|
+
id: string;
|
30
|
+
name: string;
|
31
|
+
disabled?: boolean;
|
32
|
+
realId?: string;
|
33
|
+
value?: {
|
34
|
+
name: string;
|
35
|
+
id: string;
|
36
|
+
realId?: string;
|
37
|
+
isSelected?: boolean;
|
38
|
+
};
|
39
|
+
isSelected?: boolean;
|
40
|
+
}[]>;
|
41
|
+
menuList: Ref<ISearchItem[]>;
|
42
|
+
menuHoverId: Ref<string>;
|
43
|
+
isFocus: Ref<boolean>;
|
44
|
+
usingItem: Ref<SelectedItem>;
|
45
|
+
showPopover: Ref<boolean>;
|
46
|
+
showNoSelectValueError: Ref<boolean>;
|
47
|
+
debounceSetMenuList: {
|
48
|
+
(this: any): any;
|
49
|
+
cancel(): void;
|
50
|
+
};
|
51
|
+
documentArrowEvent: (e: KeyboardEvent) => void;
|
52
|
+
handleClickOutside: (e: MouseEvent) => void;
|
53
|
+
handleInputFocus: (e: FocusEvent) => void;
|
54
|
+
handleInputChange: (event: Event) => void;
|
55
|
+
handleInputKeyup: (event: KeyboardEvent) => void;
|
56
|
+
handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
|
57
|
+
handleSelectCondtionItem: (item: ICommonItem) => void;
|
58
|
+
handleMenuFooterClick: (item: IMenuFooterItem) => void;
|
59
|
+
t: import("vue").ComputedRef<{
|
60
|
+
pleaseSelect: string;
|
61
|
+
loading: string;
|
62
|
+
filterQueryMustHasValue: string;
|
63
|
+
ok: string;
|
64
|
+
cancel: string;
|
65
|
+
or: string;
|
66
|
+
and: string;
|
67
|
+
}>;
|
68
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "add" | "delete")[], "focus" | "add" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
69
|
+
data: {
|
70
|
+
type: PropType<ISearchItem[]>;
|
71
|
+
required: true;
|
72
|
+
};
|
73
|
+
showInputBefore: BooleanConstructor;
|
74
|
+
showCondition: BooleanConstructor;
|
75
|
+
clickOutside: FunctionConstructor;
|
76
|
+
conditions: {
|
77
|
+
type: PropType<ICommonItem[]>;
|
78
|
+
default: () => any[];
|
79
|
+
};
|
80
|
+
defautUsingItem: PropType<SelectedItem>;
|
81
|
+
mode: {
|
82
|
+
type: PropType<SearchInputMode>;
|
83
|
+
default: SearchInputMode;
|
84
|
+
};
|
85
|
+
getMenuList: PropType<GetMenuListFunc>;
|
86
|
+
validateValues: PropType<ValidateValuesFunc>;
|
87
|
+
valueBehavior: PropType<ValueBehavior>;
|
88
|
+
}>> & {
|
89
|
+
onFocus?: (...args: any[]) => any;
|
90
|
+
onAdd?: (...args: any[]) => any;
|
91
|
+
onDelete?: (...args: any[]) => any;
|
92
|
+
}, {
|
93
|
+
mode: SearchInputMode;
|
94
|
+
conditions: ICommonItem[];
|
95
|
+
showInputBefore: boolean;
|
96
|
+
showCondition: boolean;
|
97
|
+
}>;
|
98
|
+
export default _default;
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
2
|
+
import { ICommonItem, IMenuFooterItem } from './utils';
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
4
|
+
list: {
|
5
|
+
type: PropType<ICommonItem[]>;
|
6
|
+
};
|
7
|
+
hoverId: StringConstructor;
|
8
|
+
keyword: {
|
9
|
+
type: StringConstructor;
|
10
|
+
default: string;
|
11
|
+
};
|
12
|
+
multiple: {
|
13
|
+
type: BooleanConstructor;
|
14
|
+
default: boolean;
|
15
|
+
};
|
16
|
+
selected: {
|
17
|
+
type: PropType<string[]>;
|
18
|
+
default: () => any[];
|
19
|
+
};
|
20
|
+
conditions: {
|
21
|
+
type: PropType<ICommonItem[]>;
|
22
|
+
};
|
23
|
+
footerBtns: {
|
24
|
+
type: PropType<IMenuFooterItem[]>;
|
25
|
+
default: () => any[];
|
26
|
+
};
|
27
|
+
}, {
|
28
|
+
handleClick: (item: ICommonItem) => void;
|
29
|
+
handleClickCondition: (item: ICommonItem) => void;
|
30
|
+
handleClickFooterBtn: (item: IMenuFooterItem) => void;
|
31
|
+
filterList: import("vue").ComputedRef<ICommonItem[]>;
|
32
|
+
getSearchNode: (item: ICommonItem) => string | (string | VNode)[];
|
33
|
+
localFooterBtns: import("vue").ComputedRef<IMenuFooterItem[] | ({
|
34
|
+
id: string;
|
35
|
+
name: string;
|
36
|
+
disabled?: undefined;
|
37
|
+
} | {
|
38
|
+
id: string;
|
39
|
+
name: string;
|
40
|
+
disabled: boolean;
|
41
|
+
})[]>;
|
42
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("selectItem" | "selectCondition" | "footerClick")[], "selectItem" | "selectCondition" | "footerClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
43
|
+
list: {
|
44
|
+
type: PropType<ICommonItem[]>;
|
45
|
+
};
|
46
|
+
hoverId: StringConstructor;
|
47
|
+
keyword: {
|
48
|
+
type: StringConstructor;
|
49
|
+
default: string;
|
50
|
+
};
|
51
|
+
multiple: {
|
52
|
+
type: BooleanConstructor;
|
53
|
+
default: boolean;
|
54
|
+
};
|
55
|
+
selected: {
|
56
|
+
type: PropType<string[]>;
|
57
|
+
default: () => any[];
|
58
|
+
};
|
59
|
+
conditions: {
|
60
|
+
type: PropType<ICommonItem[]>;
|
61
|
+
};
|
62
|
+
footerBtns: {
|
63
|
+
type: PropType<IMenuFooterItem[]>;
|
64
|
+
default: () => any[];
|
65
|
+
};
|
66
|
+
}>> & {
|
67
|
+
onSelectItem?: (...args: any[]) => any;
|
68
|
+
onSelectCondition?: (...args: any[]) => any;
|
69
|
+
onFooterClick?: (...args: any[]) => any;
|
70
|
+
}, {
|
71
|
+
multiple: boolean;
|
72
|
+
selected: string[];
|
73
|
+
keyword: string;
|
74
|
+
footerBtns: IMenuFooterItem[];
|
75
|
+
}>;
|
76
|
+
export default _default;
|
@@ -0,0 +1,424 @@
|
|
1
|
+
/* stylelint-disable declaration-no-important */
|
2
|
+
@keyframes loading-scale-animate {
|
3
|
+
0% {
|
4
|
+
transform: scale(1);
|
5
|
+
}
|
6
|
+
100% {
|
7
|
+
transform: scale(0.6);
|
8
|
+
}
|
9
|
+
}
|
10
|
+
@keyframes fade {
|
11
|
+
100% {
|
12
|
+
background-color: transparent;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
.bk-fade-transtion .bk-fade-enter-active,
|
16
|
+
.bk-fade-transtion .bk-fade-leave-active {
|
17
|
+
transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
|
18
|
+
}
|
19
|
+
.bk-fade-transtion .bk-fade-enter,
|
20
|
+
.bk-fade-transtion .bk-fade-leave-to {
|
21
|
+
opacity: 0;
|
22
|
+
}
|
23
|
+
.clearfix-style::after {
|
24
|
+
display: block;
|
25
|
+
height: 0;
|
26
|
+
clear: both;
|
27
|
+
font-size: 0;
|
28
|
+
content: '';
|
29
|
+
visibility: hidden;
|
30
|
+
}
|
31
|
+
.bk-popper {
|
32
|
+
display: none;
|
33
|
+
padding: 7px 14px;
|
34
|
+
font-size: 12px;
|
35
|
+
color: #fff;
|
36
|
+
background: #333;
|
37
|
+
border-radius: 4px;
|
38
|
+
}
|
39
|
+
.bk-popper.light {
|
40
|
+
color: #63656e;
|
41
|
+
background: #fff;
|
42
|
+
box-shadow: #dcdee5 0 0 6px 0;
|
43
|
+
}
|
44
|
+
.bk-popper .bk-popper-arrow,
|
45
|
+
.bk-popper .bk-popper-arrow::before {
|
46
|
+
position: absolute;
|
47
|
+
width: 8px;
|
48
|
+
height: 8px;
|
49
|
+
background: inherit;
|
50
|
+
}
|
51
|
+
.bk-popper .bk-popper-arrow {
|
52
|
+
visibility: hidden;
|
53
|
+
}
|
54
|
+
.bk-popper .bk-popper-arrow::before {
|
55
|
+
content: '';
|
56
|
+
visibility: visible;
|
57
|
+
transform: rotate(45deg);
|
58
|
+
}
|
59
|
+
.bk-popper[data-show] {
|
60
|
+
display: block;
|
61
|
+
}
|
62
|
+
.bk-popper[data-popper-placement^='top'] > .bk-popper-arrow {
|
63
|
+
bottom: -4px;
|
64
|
+
}
|
65
|
+
.bk-popper[data-popper-placement^='bottom'] > .bk-popper-arrow {
|
66
|
+
top: -4px;
|
67
|
+
}
|
68
|
+
.bk-popper[data-popper-placement^='left'] > .bk-popper-arrow {
|
69
|
+
right: -4px;
|
70
|
+
}
|
71
|
+
.bk-popper[data-popper-placement^='right'] > .bk-popper-arrow {
|
72
|
+
left: -4px;
|
73
|
+
}
|
74
|
+
.bk-search-select {
|
75
|
+
position: relative;
|
76
|
+
z-index: 9;
|
77
|
+
height: 32px;
|
78
|
+
overflow: inherit;
|
79
|
+
}
|
80
|
+
.bk-search-select .focus {
|
81
|
+
color: #3c96ff;
|
82
|
+
background: #fff !important;
|
83
|
+
border-color: #3a84ff !important;
|
84
|
+
}
|
85
|
+
.bk-search-select .div-input {
|
86
|
+
height: 100%;
|
87
|
+
padding: 5px 0;
|
88
|
+
line-height: 20px;
|
89
|
+
word-break: break-all;
|
90
|
+
flex: 1 1 auto;
|
91
|
+
}
|
92
|
+
.bk-search-select .div-input:focus {
|
93
|
+
outline: none;
|
94
|
+
}
|
95
|
+
.bk-search-select-container {
|
96
|
+
position: relative;
|
97
|
+
display: flex;
|
98
|
+
min-height: 30px;
|
99
|
+
overflow: hidden;
|
100
|
+
font-size: 12px;
|
101
|
+
color: #63656e;
|
102
|
+
border: 1px solid #c4c6cc;
|
103
|
+
border-radius: 2px;
|
104
|
+
outline: none;
|
105
|
+
box-sizing: border-box;
|
106
|
+
transition: border 0.2s linear;
|
107
|
+
resize: none;
|
108
|
+
flex-direction: row;
|
109
|
+
align-items: center;
|
110
|
+
flex-wrap: wrap;
|
111
|
+
}
|
112
|
+
.bk-search-select-container.is-focus {
|
113
|
+
overflow: auto;
|
114
|
+
color: #3c96ff;
|
115
|
+
background: #fff !important;
|
116
|
+
border-color: #3a84ff !important;
|
117
|
+
}
|
118
|
+
.bk-search-select-container .search-prefix {
|
119
|
+
flex: 0 0 auto;
|
120
|
+
display: flex;
|
121
|
+
align-items: center;
|
122
|
+
height: 100%;
|
123
|
+
}
|
124
|
+
.bk-search-select-container .search-container {
|
125
|
+
position: relative;
|
126
|
+
display: flex;
|
127
|
+
min-height: 26px;
|
128
|
+
padding: 0 2px;
|
129
|
+
margin-top: 4px;
|
130
|
+
overflow: visible;
|
131
|
+
text-align: left;
|
132
|
+
transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
133
|
+
flex: 1;
|
134
|
+
flex-wrap: wrap;
|
135
|
+
align-items: center;
|
136
|
+
}
|
137
|
+
.bk-search-select-container .search-container-selected {
|
138
|
+
position: relative;
|
139
|
+
display: inline-block;
|
140
|
+
max-width: 99%;
|
141
|
+
padding-left: 8px;
|
142
|
+
margin: 0 0 4px 6px;
|
143
|
+
line-height: 22px;
|
144
|
+
color: #63656e;
|
145
|
+
background: #f0f1f5;
|
146
|
+
border-radius: 2px;
|
147
|
+
flex: 0 0 auto;
|
148
|
+
align-self: center;
|
149
|
+
}
|
150
|
+
.bk-search-select-container .search-container-selected.hidden-selected {
|
151
|
+
visibility: hidden;
|
152
|
+
}
|
153
|
+
.bk-search-select-container .search-container-selected.overflow-selected {
|
154
|
+
padding-right: 8px;
|
155
|
+
}
|
156
|
+
.bk-search-select-container .search-container-selected:hover {
|
157
|
+
background: #dcdee5;
|
158
|
+
}
|
159
|
+
.bk-search-select-container .search-container-selected:hover .selected-clear {
|
160
|
+
color: #63656e;
|
161
|
+
}
|
162
|
+
.bk-search-select-container .search-container-selected .selected-name {
|
163
|
+
display: inline-block;
|
164
|
+
margin-right: 20px;
|
165
|
+
word-break: break-all;
|
166
|
+
}
|
167
|
+
.bk-search-select-container .search-container-selected .selected-clear {
|
168
|
+
position: absolute;
|
169
|
+
top: 4px;
|
170
|
+
right: 3px;
|
171
|
+
display: inline-flex;
|
172
|
+
width: 14px;
|
173
|
+
height: 14px;
|
174
|
+
overflow: hidden;
|
175
|
+
font-size: 14px;
|
176
|
+
line-height: normal;
|
177
|
+
color: #979ba5;
|
178
|
+
text-align: center;
|
179
|
+
cursor: pointer;
|
180
|
+
align-items: center;
|
181
|
+
justify-content: center;
|
182
|
+
}
|
183
|
+
.bk-search-select-container .search-container-input {
|
184
|
+
position: relative;
|
185
|
+
display: flex;
|
186
|
+
height: 100%;
|
187
|
+
min-width: 40px;
|
188
|
+
padding: 0 10px;
|
189
|
+
margin-top: -4px;
|
190
|
+
color: #63656e;
|
191
|
+
border: none;
|
192
|
+
flex: 1 1 auto;
|
193
|
+
align-items: center;
|
194
|
+
}
|
195
|
+
.bk-search-select-container .search-container-input .input-before:before {
|
196
|
+
color: #c4c6cc;
|
197
|
+
content: attr(data-placeholder);
|
198
|
+
}
|
199
|
+
.bk-search-select-container .search-container-input .input-after:after {
|
200
|
+
padding-left: 2px;
|
201
|
+
color: #c4c6cc;
|
202
|
+
content: attr(data-tips);
|
203
|
+
}
|
204
|
+
.bk-search-select-container .search-container .selected-input {
|
205
|
+
position: relative;
|
206
|
+
display: flex;
|
207
|
+
height: 100%;
|
208
|
+
min-width: 40px;
|
209
|
+
padding: 0 10px;
|
210
|
+
margin-top: -4px;
|
211
|
+
color: #63656e;
|
212
|
+
border: none;
|
213
|
+
align-items: center;
|
214
|
+
}
|
215
|
+
.bk-search-select-container .search-nextfix {
|
216
|
+
color: #c4c6cc;
|
217
|
+
flex: 0 0 auto;
|
218
|
+
display: flex;
|
219
|
+
align-items: center;
|
220
|
+
height: 100%;
|
221
|
+
}
|
222
|
+
.bk-search-select-container .search-nextfix .search-clear {
|
223
|
+
display: flex;
|
224
|
+
width: 12px;
|
225
|
+
height: 12px;
|
226
|
+
margin-right: 6px;
|
227
|
+
font-size: 12px;
|
228
|
+
color: #c4c6cc;
|
229
|
+
align-items: center;
|
230
|
+
justify-content: center;
|
231
|
+
}
|
232
|
+
.bk-search-select-container .search-nextfix .search-clear:hover {
|
233
|
+
color: #979ba5;
|
234
|
+
cursor: pointer;
|
235
|
+
}
|
236
|
+
.bk-search-select-container .search-nextfix .search-nextfix-icon {
|
237
|
+
display: flex;
|
238
|
+
margin-right: 8px;
|
239
|
+
font-size: 16px;
|
240
|
+
transition: color 0.2s linear;
|
241
|
+
align-items: center;
|
242
|
+
justify-content: center;
|
243
|
+
}
|
244
|
+
.bk-search-select-container .search-nextfix .search-nextfix-icon.is-focus {
|
245
|
+
color: #3c96ff;
|
246
|
+
background: #fff !important;
|
247
|
+
border-color: #3a84ff !important;
|
248
|
+
}
|
249
|
+
.bk-search-select-container::-webkit-scrollbar {
|
250
|
+
width: 3px;
|
251
|
+
height: 5px;
|
252
|
+
}
|
253
|
+
.bk-search-select-container::-webkit-scrollbar-thumb {
|
254
|
+
background: #e6e9ea;
|
255
|
+
border-radius: 20px;
|
256
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
257
|
+
}
|
258
|
+
.bk-search-select-tips {
|
259
|
+
display: flex;
|
260
|
+
margin-top: 5px;
|
261
|
+
font-size: 12px;
|
262
|
+
line-height: 16px;
|
263
|
+
color: #ea3636;
|
264
|
+
align-items: center;
|
265
|
+
}
|
266
|
+
.bk-search-select-tips .select-tips {
|
267
|
+
display: flex;
|
268
|
+
width: 16px;
|
269
|
+
height: 16px;
|
270
|
+
margin-right: 5px;
|
271
|
+
overflow: hidden;
|
272
|
+
font-size: 16px;
|
273
|
+
align-items: center;
|
274
|
+
justify-content: center;
|
275
|
+
}
|
276
|
+
.bk-search-select-menu {
|
277
|
+
display: flex;
|
278
|
+
min-width: 160px;
|
279
|
+
font-size: 12px;
|
280
|
+
color: #63656e;
|
281
|
+
flex-direction: column;
|
282
|
+
}
|
283
|
+
.bk-search-select-menu .menu-list-mixin {
|
284
|
+
display: flex;
|
285
|
+
flex-direction: column;
|
286
|
+
}
|
287
|
+
.bk-search-select-menu .menu-item-mixin {
|
288
|
+
display: flex;
|
289
|
+
align-items: center;
|
290
|
+
width: 100%;
|
291
|
+
height: 32px;
|
292
|
+
padding: 0 12px;
|
293
|
+
flex: 0 0 32px;
|
294
|
+
outline: none;
|
295
|
+
}
|
296
|
+
.bk-search-select-menu .menu-item-mixin:hover {
|
297
|
+
cursor: pointer;
|
298
|
+
background-color: #f5f7fa;
|
299
|
+
}
|
300
|
+
.bk-search-select-menu .menu-disabled-mixin {
|
301
|
+
color: #c4c6cc;
|
302
|
+
}
|
303
|
+
.bk-search-select-menu .menu-disabled-mixin:hover {
|
304
|
+
cursor: not-allowed;
|
305
|
+
background-color: white;
|
306
|
+
}
|
307
|
+
.bk-search-select-menu .menu-header {
|
308
|
+
display: flex;
|
309
|
+
flex-direction: column;
|
310
|
+
border-bottom: 1px solid #c4c6cc;
|
311
|
+
}
|
312
|
+
.bk-search-select-menu .menu-header-item {
|
313
|
+
display: flex;
|
314
|
+
align-items: center;
|
315
|
+
width: 100%;
|
316
|
+
height: 32px;
|
317
|
+
padding: 0 12px;
|
318
|
+
flex: 0 0 32px;
|
319
|
+
outline: none;
|
320
|
+
}
|
321
|
+
.bk-search-select-menu .menu-header-item:hover {
|
322
|
+
cursor: pointer;
|
323
|
+
background-color: #f5f7fa;
|
324
|
+
}
|
325
|
+
.bk-search-select-menu .menu-header-item.is-disabled {
|
326
|
+
color: #c4c6cc;
|
327
|
+
}
|
328
|
+
.bk-search-select-menu .menu-header-item.is-disabled:hover {
|
329
|
+
cursor: not-allowed;
|
330
|
+
background-color: white;
|
331
|
+
}
|
332
|
+
.bk-search-select-menu .menu-content {
|
333
|
+
display: flex;
|
334
|
+
flex-direction: column;
|
335
|
+
flex: 1;
|
336
|
+
max-height: 240px;
|
337
|
+
overflow: auto;
|
338
|
+
}
|
339
|
+
.bk-search-select-menu .menu-content .menu-item {
|
340
|
+
display: flex;
|
341
|
+
align-items: center;
|
342
|
+
width: 100%;
|
343
|
+
height: 32px;
|
344
|
+
padding: 0 12px;
|
345
|
+
flex: 0 0 32px;
|
346
|
+
outline: none;
|
347
|
+
white-space: pre;
|
348
|
+
}
|
349
|
+
.bk-search-select-menu .menu-content .menu-item:hover {
|
350
|
+
cursor: pointer;
|
351
|
+
background-color: #f5f7fa;
|
352
|
+
}
|
353
|
+
.bk-search-select-menu .menu-content .menu-item .is-keyword {
|
354
|
+
display: inline-flex;
|
355
|
+
color: #3a84ff;
|
356
|
+
}
|
357
|
+
.bk-search-select-menu .menu-content .menu-item .is-selected {
|
358
|
+
display: flex;
|
359
|
+
width: 22px;
|
360
|
+
height: 22px;
|
361
|
+
margin-left: auto;
|
362
|
+
overflow: hidden;
|
363
|
+
font-size: 22px;
|
364
|
+
font-weight: bold;
|
365
|
+
color: #3a84ff;
|
366
|
+
align-items: center;
|
367
|
+
justify-content: center;
|
368
|
+
}
|
369
|
+
.bk-search-select-menu .menu-content .menu-item.is-hover {
|
370
|
+
color: #3a84ff;
|
371
|
+
background-color: #f5f7fa;
|
372
|
+
}
|
373
|
+
.bk-search-select-menu .menu-content .menu-item.is-hover .menu-name {
|
374
|
+
color: #3a84ff;
|
375
|
+
}
|
376
|
+
.bk-search-select-menu .menu-content .menu-item.is-disabled {
|
377
|
+
color: #c4c6cc;
|
378
|
+
}
|
379
|
+
.bk-search-select-menu .menu-content .menu-item.is-disabled:hover {
|
380
|
+
cursor: not-allowed;
|
381
|
+
background-color: white;
|
382
|
+
}
|
383
|
+
.bk-search-select-menu .menu-content .menu-item.is-disabled .menu-name {
|
384
|
+
color: #c4c6cc;
|
385
|
+
}
|
386
|
+
.bk-search-select-menu .menu-content .menu-item .menu-name {
|
387
|
+
display: flex;
|
388
|
+
max-width: 100px;
|
389
|
+
margin-right: 5px;
|
390
|
+
font-weight: bold;
|
391
|
+
color: #63656e;
|
392
|
+
align-items: center;
|
393
|
+
}
|
394
|
+
.bk-search-select-menu .menu-footer {
|
395
|
+
display: flex;
|
396
|
+
width: 100%;
|
397
|
+
height: 32px;
|
398
|
+
border-top: 1px solid #dcdee5;
|
399
|
+
align-items: center;
|
400
|
+
}
|
401
|
+
.bk-search-select-menu .menu-footer-btn {
|
402
|
+
flex: 1;
|
403
|
+
display: flex;
|
404
|
+
align-items: center;
|
405
|
+
justify-content: center;
|
406
|
+
height: 100%;
|
407
|
+
}
|
408
|
+
.bk-search-select-menu .menu-footer-btn:first-child {
|
409
|
+
border-right: 1px solid #dcdee5;
|
410
|
+
}
|
411
|
+
.bk-search-select-menu .menu-footer-btn:hover {
|
412
|
+
color: #3a84ff;
|
413
|
+
cursor: pointer;
|
414
|
+
}
|
415
|
+
.bk-search-select-menu .menu-footer-btn.is-disabled {
|
416
|
+
color: #c4c6cc;
|
417
|
+
}
|
418
|
+
.bk-search-select-menu .menu-footer-btn.is-disabled:hover {
|
419
|
+
cursor: not-allowed;
|
420
|
+
background-color: white;
|
421
|
+
}
|
422
|
+
.bk-search-select-popover {
|
423
|
+
margin: -7px -14px;
|
424
|
+
}
|