bkui-vue 0.0.1-beta.8 → 0.0.1-beta.82
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/README.md +31 -19
- package/dist/index.cjs.js +57 -0
- package/dist/index.esm.js +24606 -0
- package/dist/index.umd.js +57 -0
- package/dist/style.css +1 -2348
- 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 +102 -0
- package/lib/affix/index.d.ts +143 -0
- package/lib/affix/index.js +1 -0
- package/lib/alert/alert.css +2 -0
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.less +2 -0
- package/lib/alert/alert.variable.css +31 -0
- package/lib/alert/index.d.ts +180 -0
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +12 -7
- package/lib/animate-number/index.d.ts +97 -0
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +29 -0
- package/lib/backtop/index.d.ts +166 -0
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.css +5 -5
- package/lib/badge/badge.d.ts +64 -22
- package/lib/badge/badge.less +5 -6
- package/lib/badge/badge.variable.css +34 -5
- package/lib/badge/index.d.ts +267 -0
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +18 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +47 -1
- package/lib/breadcrumb/index.d.ts +194 -0
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.css +73 -44
- package/lib/button/button.d.ts +66 -30
- package/lib/button/button.less +68 -47
- package/lib/button/button.variable.css +102 -44
- package/lib/button/index.d.ts +237 -0
- package/lib/button/index.js +1 -1
- package/lib/card/card.css +53 -1
- package/lib/card/card.d.ts +74 -18
- package/lib/card/card.less +50 -2
- package/lib/card/card.variable.css +82 -1
- package/lib/card/index.d.ts +283 -0
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +48 -0
- package/lib/cascader/cascader.css +130 -0
- package/lib/cascader/cascader.d.ts +271 -0
- package/lib/cascader/cascader.less +146 -0
- package/lib/cascader/cascader.variable.css +229 -0
- package/lib/cascader/index.d.ts +721 -0
- package/lib/cascader/index.js +1 -0
- package/lib/cascader/interface.d.ts +44 -0
- package/lib/cascader/node.d.ts +24 -0
- package/lib/cascader/store.d.ts +15 -0
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.css +15 -2
- package/lib/checkbox/checkbox.d.ts +33 -30
- package/lib/checkbox/checkbox.less +20 -2
- package/lib/checkbox/checkbox.variable.css +44 -2
- package/lib/checkbox/common.d.ts +3 -3
- package/lib/checkbox/index.d.ts +253 -0
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +4 -8
- package/lib/code-diff/code-diff.css +186 -0
- package/lib/code-diff/code-diff.d.ts +80 -0
- package/lib/code-diff/code-diff.less +238 -0
- package/lib/code-diff/code-diff.variable.css +285 -0
- package/lib/code-diff/index.d.ts +154 -0
- package/lib/code-diff/index.js +1 -0
- package/lib/collapse/collapse.css +25 -1
- package/lib/collapse/collapse.d.ts +51 -22
- package/lib/collapse/collapse.less +34 -2
- package/lib/collapse/collapse.variable.css +124 -1
- package/lib/collapse/index.d.ts +182 -0
- package/lib/collapse/index.js +1 -1
- package/lib/collapse/utils.d.ts +11 -0
- package/lib/components.d.ts +25 -4
- package/lib/components.js +1 -0
- package/lib/container/col.d.ts +51 -0
- package/lib/container/container.css +48 -0
- package/lib/container/container.d.ts +83 -0
- package/lib/container/container.less +20 -0
- package/lib/container/container.variable.css +147 -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/date-picker.css +408 -0
- package/lib/date-picker/date-picker.d.ts +312 -0
- package/lib/date-picker/date-picker.less +527 -0
- package/lib/date-picker/date-picker.variable.css +507 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +753 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/props.d.ts +118 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.css +52 -0
- package/lib/dialog/dialog.d.ts +305 -52
- package/lib/dialog/dialog.less +20 -0
- package/lib/dialog/dialog.variable.css +52 -0
- package/lib/dialog/index.d.ts +772 -0
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +3 -23
- package/lib/directives/index.d.ts +3 -0
- package/lib/directives/index.js +2 -15
- package/lib/directives/index.js.LICENSE.txt +14 -0
- package/lib/directives/tooltips.d.ts +17 -0
- package/lib/dist.index.js +1 -0
- package/lib/divider/divider.css +38 -0
- package/lib/divider/divider.d.ts +48 -0
- package/lib/divider/divider.less +53 -0
- package/lib/divider/divider.variable.css +137 -0
- package/lib/divider/index.d.ts +142 -0
- package/lib/divider/index.js +1 -0
- package/lib/divider/props.d.ts +21 -0
- package/lib/dropdown/dropdown-item.d.ts +19 -0
- package/lib/dropdown/dropdown-menu.d.ts +16 -0
- package/lib/dropdown/dropdown.css +47 -0
- package/lib/dropdown/dropdown.d.ts +63 -0
- package/lib/dropdown/dropdown.less +59 -0
- package/lib/dropdown/dropdown.variable.css +146 -0
- package/lib/dropdown/index.d.ts +200 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +29 -0
- package/lib/exception/index.d.ts +96 -0
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +29 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +29 -0
- package/lib/fixed-navbar/index.d.ts +147 -0
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/common.d.ts +3 -0
- package/lib/form/compose-form-item.d.ts +16 -0
- package/lib/form/form-item.d.ts +155 -0
- package/lib/form/form.css +125 -0
- package/lib/form/form.d.ts +67 -0
- package/lib/form/form.less +152 -0
- package/lib/form/form.variable.css +224 -0
- package/lib/form/index.d.ts +280 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +22 -0
- package/lib/form/validator.d.ts +8 -0
- package/lib/icon/angle-double-down-line.d.ts +4 -0
- package/lib/icon/angle-double-down-line.js +1 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +1 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-left.js +1 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +1 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-double-right.js +1 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +1 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +1 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down-line.js +1 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-down.js +1 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-left.js +1 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-right.js +1 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +1 -0
- package/lib/icon/angle-up.js +1 -0
- package/lib/icon/archive-fill.d.ts +4 -0
- package/lib/icon/archive-fill.js +1 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +1 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +1 -0
- package/lib/icon/audio-fill.d.ts +4 -0
- package/lib/icon/audio-fill.js +1 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +1 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +1 -0
- package/lib/icon/close-line.d.ts +4 -0
- package/lib/icon/close-line.js +1 -0
- package/lib/icon/close.js +1 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +1 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +1 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +1 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +1 -0
- 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.d.ts +4 -0
- package/lib/icon/done.js +1 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-shape.js +1 -0
- package/lib/icon/down-small.js +1 -0
- package/lib/icon/edit-line.d.ts +4 -0
- package/lib/icon/edit-line.js +1 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +1 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/error.js +1 -0
- 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 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +1 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +1 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +1 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/funnel.d.ts +4 -0
- package/lib/icon/funnel.js +1 -0
- package/lib/icon/help-document-fill.js +1 -0
- package/lib/icon/help-fill.js +1 -0
- package/lib/icon/help.js +1 -0
- package/lib/icon/image-fill.d.ts +4 -0
- package/lib/icon/image-fill.js +1 -0
- package/lib/icon/index.d.ts +69 -0
- package/lib/icon/index.js +1 -15
- package/lib/icon/info-line.js +1 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +1 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.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.d.ts +4 -0
- package/lib/icon/play-shape.js +1 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/plus.js +1 -0
- package/lib/icon/ppt-fill.d.ts +4 -0
- package/lib/icon/ppt-fill.js +1 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +1 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +1 -0
- package/lib/icon/search.js +1 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +1 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +1 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +1 -0
- package/lib/icon/switcher-loading.js +1 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +1 -0
- package/lib/icon/text-fill.d.ts +4 -0
- package/lib/icon/text-fill.js +1 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +1 -0
- package/lib/icon/unvisible.js +1 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +1 -0
- package/lib/icon/upload.d.ts +4 -0
- package/lib/icon/upload.js +1 -0
- package/lib/icon/video-fill.d.ts +4 -0
- package/lib/icon/video-fill.js +1 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/icon/warn.js +1 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +1 -0
- package/lib/input/index.d.ts +541 -0
- package/lib/input/index.js +1 -15
- package/lib/input/input.css +78 -4
- package/lib/input/input.d.ts +178 -48
- package/lib/input/input.less +89 -8
- package/lib/input/input.variable.css +108 -4
- package/lib/link/index.d.ts +164 -0
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +29 -0
- package/lib/loading/index.d.ts +172 -0
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.css +122 -75
- package/lib/loading/loading.d.ts +67 -20
- package/lib/loading/loading.less +79 -60
- package/lib/loading/loading.variable.css +151 -75
- package/lib/menu/index.d.ts +176 -0
- package/lib/menu/index.js +1 -0
- package/lib/menu/menu-group.d.ts +14 -0
- package/lib/menu/menu-item.d.ts +16 -0
- package/lib/menu/menu.css +190 -0
- package/lib/menu/menu.d.ts +55 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +289 -0
- package/lib/menu/submenu.css +3 -0
- package/lib/menu/submenu.d.ts +22 -0
- package/lib/menu/submenu.less +5 -0
- package/lib/menu/submenu.variable.css +102 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/{message.d.ts → index.d.ts} +0 -0
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +27 -1
- package/lib/message/message.less +30 -1
- package/lib/message/message.variable.css +56 -1
- package/lib/message/messageConstructor.d.ts +71 -20
- package/lib/modal/index.d.ts +605 -0
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.css +30 -1
- package/lib/modal/modal.d.ts +195 -24
- package/lib/modal/modal.less +39 -1
- package/lib/modal/modal.variable.css +30 -1
- package/lib/modal/props.mixin.d.ts +82 -10
- package/lib/navigation/index.d.ts +292 -0
- package/lib/navigation/index.js +1 -0
- package/lib/navigation/navigation-title.d.ts +25 -0
- package/lib/navigation/navigation.css +184 -0
- package/lib/navigation/navigation.d.ts +111 -0
- package/lib/navigation/navigation.less +210 -0
- package/lib/navigation/navigation.variable.css +283 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +65 -0
- package/lib/notify/notify.less +76 -0
- package/lib/notify/notify.variable.css +164 -0
- package/lib/notify/notifyConstructor.d.ts +135 -0
- package/lib/pagination/index.d.ts +395 -0
- package/lib/pagination/index.js +1 -0
- package/lib/pagination/pagination.css +179 -0
- package/lib/pagination/pagination.d.ts +220 -0
- package/lib/pagination/pagination.less +201 -0
- package/lib/pagination/pagination.variable.css +278 -0
- package/lib/pagination/type.d.ts +6 -0
- package/lib/pagination/use-limit.d.ts +8 -0
- package/lib/pagination/use-list.d.ts +8 -0
- package/lib/pagination/use-small-list.d.ts +5 -0
- package/lib/pagination/use-total.d.ts +5 -0
- package/lib/popover/index.d.ts +364 -0
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +28 -16
- package/lib/popover/popover.d.ts +111 -45
- package/lib/popover/popover.less +59 -46
- package/lib/popover/popover.variable.css +57 -16
- package/lib/popover/props.d.ts +99 -0
- package/lib/preset.d.ts +2 -3
- package/lib/preset.js +1 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/index.js +1 -0
- package/lib/process/process.css +138 -0
- package/lib/process/process.d.ts +131 -0
- package/lib/process/process.less +178 -0
- package/lib/process/process.variable.css +237 -0
- package/lib/progress/index.d.ts +398 -0
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +8 -3
- package/lib/progress/progress.d.ts +88 -35
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +37 -3
- package/lib/radio/common.d.ts +5 -5
- package/lib/radio/index.d.ts +278 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +29 -20
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +14 -8
- package/lib/radio/radio.d.ts +27 -17
- package/lib/radio/radio.less +16 -9
- package/lib/radio/radio.variable.css +44 -9
- package/lib/radio/type.d.ts +10 -5
- package/lib/rate/index.d.ts +113 -0
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +13 -10
- package/lib/rate/star.d.ts +33 -16
- package/lib/resize-layout/index.d.ts +336 -0
- package/lib/resize-layout/index.js +1 -0
- package/lib/resize-layout/resize-layout.css +189 -0
- package/lib/resize-layout/resize-layout.d.ts +127 -0
- package/lib/resize-layout/resize-layout.less +233 -0
- package/lib/resize-layout/resize-layout.variable.css +288 -0
- package/lib/select/common.d.ts +23 -17
- package/lib/select/index.d.ts +1728 -0
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +21 -21
- package/lib/select/optionGroup.d.ts +54 -0
- package/lib/select/select.css +229 -41
- package/lib/select/select.d.ts +388 -156
- package/lib/select/select.less +242 -53
- package/lib/select/select.variable.css +258 -41
- package/lib/select/selectTagInput.d.ts +71 -0
- package/lib/select/type.d.ts +35 -0
- package/lib/shared/{bk-helper-core.d.ts → helper.d.ts} +6 -1
- package/lib/shared/index.d.ts +71 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/{bk-mask-manager.d.ts → mask-manager.d.ts} +33 -3
- package/lib/shared/{bk-pop-manager.d.ts → pop-manager.d.ts} +10 -2
- package/lib/shared/{bk-popover.d.ts → popover.d.ts} +60 -6
- package/lib/shared/token.d.ts +2 -0
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +12 -7
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +533 -0
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.css +48 -3
- package/lib/sideslider/sideslider.d.ts +205 -30
- package/lib/sideslider/sideslider.less +65 -6
- package/lib/sideslider/sideslider.variable.css +77 -3
- package/lib/slider/index.d.ts +440 -0
- package/lib/slider/index.js +1 -0
- package/lib/slider/slider-button.d.ts +80 -0
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +201 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +248 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/index.js +1 -15
- package/lib/steps/steps.css +4 -1
- package/lib/steps/steps.d.ts +42 -29
- package/lib/steps/steps.less +5 -1
- package/lib/steps/steps.variable.css +33 -1
- package/lib/styles/index.d.ts +51 -0
- 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 +8 -0
- package/lib/styles/mixins/mixins.less +1 -0
- package/lib/styles/mixins/mixins.variable.css +8 -0
- package/lib/styles/mixins/popper.css +43 -0
- package/lib/styles/mixins/popper.less +52 -0
- package/lib/styles/mixins/popper.variable.css +43 -0
- package/lib/styles/mixins/size.less +9 -0
- package/lib/styles/reset.css +273 -0
- package/lib/styles/reset.less +313 -0
- package/lib/styles/reset.variable.css +273 -0
- package/lib/styles/themes/themes.less +45 -1
- package/lib/swiper/index.d.ts +181 -0
- package/lib/swiper/index.js +1 -0
- package/lib/swiper/swiper.css +91 -0
- package/lib/swiper/swiper.d.ts +65 -0
- package/lib/swiper/swiper.less +107 -0
- package/lib/swiper/swiper.variable.css +91 -0
- package/lib/switcher/index.d.ts +286 -0
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +157 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +211 -153
- package/lib/switcher/switcher.variable.css +186 -135
- package/lib/tab/index.d.ts +440 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/props.d.ts +194 -0
- package/lib/tab/tab-nav.d.ts +169 -0
- package/lib/tab/tab-panel.d.ts +73 -0
- package/lib/tab/tab.css +167 -0
- package/lib/tab/tab.d.ts +139 -0
- package/lib/tab/tab.less +228 -0
- package/lib/tab/tab.variable.css +266 -0
- package/lib/table/const.d.ts +30 -0
- package/lib/table/index.d.ts +389 -0
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +68 -0
- package/lib/table/plugins/head-filter.less +83 -0
- package/lib/table/plugins/head-filter.variable.css +167 -0
- package/lib/table/plugins/head-sort.css +22 -0
- package/lib/table/plugins/head-sort.less +28 -0
- package/lib/table/plugins/head-sort.variable.css +121 -0
- package/lib/table/plugins/settings.css +110 -0
- package/lib/table/plugins/settings.less +136 -0
- package/lib/table/plugins/settings.variable.css +209 -0
- package/lib/table/props.d.ts +190 -0
- package/lib/table/render.d.ts +115 -0
- package/lib/table/table.css +387 -0
- package/lib/table/table.d.ts +126 -36
- package/lib/table/table.less +229 -1
- package/lib/table/table.variable.css +416 -0
- package/lib/table/use-common.d.ts +19 -0
- package/lib/table/utils.d.ts +93 -0
- package/lib/tag/index.d.ts +229 -0
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +97 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +110 -2
- package/lib/tag/tag.variable.css +126 -0
- package/lib/tag-input/common.d.ts +24 -0
- package/lib/tag-input/index.d.ts +894 -0
- package/lib/tag-input/index.js +1 -0
- package/lib/tag-input/list-tag-render.d.ts +47 -0
- package/lib/tag-input/tag-input.css +209 -0
- package/lib/tag-input/tag-input.d.ts +374 -0
- package/lib/tag-input/tag-input.less +251 -0
- package/lib/tag-input/tag-input.variable.css +308 -0
- package/lib/tag-input/tag-props.d.ts +131 -0
- package/lib/tag-input/tag-render.d.ts +38 -0
- package/lib/timeline/index.d.ts +129 -0
- package/lib/timeline/index.js +1 -0
- package/lib/timeline/timeline.css +235 -0
- package/lib/timeline/timeline.d.ts +81 -0
- package/lib/timeline/timeline.less +239 -0
- package/lib/timeline/timeline.variable.css +334 -0
- package/lib/transfer/index.d.ts +351 -0
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/transfer.css +139 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.less +144 -0
- package/lib/transfer/transfer.variable.css +238 -0
- package/lib/tree/constant.d.ts +43 -0
- package/lib/tree/index.d.ts +449 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +159 -0
- package/lib/tree/tree.css +53 -0
- package/lib/tree/tree.d.ts +193 -0
- package/lib/tree/tree.less +66 -0
- package/lib/tree/tree.variable.css +152 -0
- package/lib/tree/use-empty.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +11 -0
- package/lib/tree/use-node-async.d.ts +5 -0
- package/lib/tree/use-node-attribute.d.ts +31 -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 +66 -0
- package/lib/upload/index.d.ts +2 -0
- package/lib/upload/index.js +1 -0
- package/lib/upload/props.d.ts +113 -0
- package/lib/upload/upload-list.d.ts +46 -0
- package/lib/upload/upload-trigger.d.ts +54 -0
- package/lib/upload/upload.css +374 -0
- package/lib/upload/upload.d.ts +252 -0
- package/lib/upload/upload.less +455 -0
- package/lib/upload/upload.type.d.ts +78 -0
- package/lib/upload/upload.variable.css +473 -0
- package/lib/upload/use-ajax-upload.d.ts +3 -0
- package/lib/upload/use-file-handler.d.ts +44 -0
- package/lib/use-form.d.ts +3 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +579 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +167 -0
- package/lib/virtual-render/use-tag-render.d.ts +7 -0
- package/lib/virtual-render/v-virtual-render.d.ts +6 -0
- package/lib/virtual-render/virtual-render.css +33 -0
- package/lib/virtual-render/virtual-render.d.ts +255 -0
- package/lib/virtual-render/virtual-render.less +43 -0
- package/lib/virtual-render/virtual-render.variable.css +33 -0
- package/package.json +108 -81
- package/dist/bkui-vue.cjs.js +0 -5171
- package/dist/bkui-vue.esm.js +0 -5137
- package/dist/bkui-vue.umd.js +0 -5174
- package/lib/styles/index.js +0 -1
- package/lib/table/common.d.ts +0 -3
- package/lib/table/table-layout.d.ts +0 -14
- package/lib/table/type.d.ts +0 -12
@@ -0,0 +1 @@
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("js-calendar"),require("date-fns"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../directives","../icon","js-calendar","date-fns"],t);else{var n="object"==typeof exports?t(require("../shared"),require("vue"),require("../directives"),require("../icon"),require("js-calendar"),require("date-fns")):t(e["../shared"],e.vue,e["../directives"],e["../icon"],e["js-calendar"],e["date-fns"]);for(var a in n)("object"==typeof exports?exports:e)[a]=n[a]}}(self,((e,t,n,a,r,i)=>(()=>{"use strict";var l={4061:e=>{e.exports=n},6870:e=>{e.exports=a},4212:t=>{t.exports=e},7876:e=>{e.exports=i},7926:e=>{e.exports=r},748:e=>{e.exports=t}},o={};function c(e){var t=o[e];if(void 0!==t)return t.exports;var n=o[e]={exports:{}};return l[e](n,n.exports,c),n.exports}c.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return c.d(t,{a:t}),t},c.d=(e,t)=>{for(var n in t)c.o(t,n)&&!c.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),c.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};return(()=>{c.r(u),c.d(u,{default:()=>ie});var e=c(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function n(e,n){if(e){if("string"==typeof e)return t(e,n);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?t(e,n):void 0}}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],l=!0,o=!1;try{for(n=n.call(e);!(l=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);l=!0);}catch(e){o=!0,r=e}finally{try{l||null==n.return||n.return()}finally{if(o)throw r}}return i}}(e,t)||n(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||n(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.")}()}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)}var l=c(748),o=c(4061),s={placement:{type:String,default:"bottom-start",validator:function(e){return!(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0&&(console.error("placement property is not valid: '".concat(e,"'")),1))}},className:{type:String},extPopoverCls:{type:String},appendToBody:{type:Boolean},triggerRef:{type:Object},onClick:Function};const d=(0,l.defineComponent)({props:s,emits:["changeVisible"],setup:function(t,n){var a=n.emit,r=Object.create(null),i=(0,l.ref)(null);(0,l.onMounted)((function(){c()})),(0,l.onBeforeUnmount)((function(){o()}));var o=function(){if(r&&0!==Object.keys(r).length){var e=r;e.isShow&&e.hide(),e.destroy(),r=null,a("changeVisible",!1)}},c=function(){r&&0!==Object.keys(r).length?(0,l.nextTick)((function(){r.update()})):(0,l.nextTick)((function(){r=new e.BKPopover(t.triggerRef,i.value,{placement:t.placement,trigger:"manual",modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},{name:"offset",options:{offset:[0,4]}}]})}))},u=(0,l.computed)((function(){var n={};return t.appendToBody&&(n["z-index"]=1060+e.bkZIndexManager.getModalNextIndex()),n})),s=(0,l.reactive)({styles:u});return Object.assign(Object.assign({},(0,l.toRefs)(s)),{refContentRef:i,updateDropdown:c,destoryDropdown:o})},render:function(){var e,t,n;return(0,l.createVNode)("div",{ref:"refContentRef",class:["bk-date-picker-dropdown",this.className,this.extPopoverCls],style:this.styles,onClick:this.onClick},[null!==(n=null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==n?n:""])}});var f=c(6870),p={showTime:{type:Boolean,required:!0},isTime:{type:Boolean,default:!1},timeDisabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0}};const h=(0,l.defineComponent)({props:p,emits:["pick-clear","pick-success","pick-toggle-time"],setup:function(e,t){var n=t.emit,a=(0,l.computed)((function(){return{time:e.isTime?"选择日期":"选择时间",clear:"清除",ok:"确定"}})),i=(0,l.ref)(null);return{labels:a,handleClear:function(){n("pick-clear")},handleSuccess:function(){n("pick-success")},handleToggleTime:function(){e.timeDisabled||n("pick-toggle-time")},handleTab:function(e){var t=r(i.value.children)[e.shiftKey?"shift":"pop"]();document.activeElement===t&&(e.preventDefault(),e.stopPropagation())}}},render:function(){return(0,l.createVNode)("div",{class:"bk-picker-confirm",ref:"elRef",onKeydown:this.handleTab},[this.showTime?(0,l.createVNode)("a",{href:"javascript: void(0);",class:"bk-picker-confirm-time",disabled:this.timeDisabled,onClick:this.handleToggleTime},[this.labels.time]):"",this.clearable?(0,l.createVNode)("a",{href:"javascript: void(0);",onClick:this.handleClear,onKeydown:this.handleClear},[this.labels.clear]):"",(0,l.createVNode)("a",{href:"javascript: void(0);",class:"confirm",onClick:this.handleSuccess,onKeydown_enter:this.handleSuccess},[this.labels.ok])])}});function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=c(7926),v=c.n(y),g=c(7876),b={},k=/d{1,4}|M{1,4}|yy(?:yy)?|S{1,3}|Do|ZZ|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,D=/\d\d?/,w=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,S=function(){};function V(e,t){for(var n=[],a=0,r=e.length;a<r;a++)n.push(e[a].substr(0,t));return n}function M(e){return function(t,n,a){var r=a[e].indexOf(n.charAt(0).toUpperCase()+n.substr(1).toLowerCase());~r&&(t.month=r)}}function P(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=String(e);n.length<t;)n="0".concat(n);return n}var N=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],C=["January","February","March","April","May","June","July","August","September","October","November","December"],T=V(C,3),x=V(N,3);b.i18n={dayNamesShort:x,dayNames:N,monthNamesShort:T,monthNames:C,amPm:["am","pm"],DoFn:function(e){return e+["th","st","nd","rd"][e%10>3?0:(e-e%10!=10)*e%10]}};var F={D:function(e){return e.getDay()},DD:function(e){return P(e.getDay())},Do:function(e,t){return t.DoFn(e.getDate())},d:function(e){return e.getDate()},dd:function(e){return P(e.getDate())},ddd:function(e,t){return t.dayNamesShort[e.getDay()]},dddd:function(e,t){return t.dayNames[e.getDay()]},M:function(e){return e.getMonth()+1},MM:function(e){return P(e.getMonth()+1)},MMM:function(e,t){return t.monthNamesShort[e.getMonth()]},MMMM:function(e,t){return t.monthNames[e.getMonth()]},yy:function(e){return String(e.getFullYear()).substr(2)},yyyy:function(e){return e.getFullYear()},h:function(e){return e.getHours()%12||12},hh:function(e){return P(e.getHours()%12||12)},H:function(e){return e.getHours()},HH:function(e){return P(e.getHours())},m:function(e){return e.getMinutes()},mm:function(e){return P(e.getMinutes())},s:function(e){return e.getSeconds()},ss:function(e){return P(e.getSeconds())},S:function(e){return Math.round(e.getMilliseconds()/100)},SS:function(e){return P(Math.round(e.getMilliseconds()/10),2)},SSS:function(e){return P(e.getMilliseconds(),3)},a:function(e,t){return e.getHours()<12?t.amPm[0]:t.amPm[1]},A:function(e,t){return e.getHours()<12?t.amPm[0].toUpperCase():t.amPm[1].toUpperCase()},ZZ:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+P(100*Math.floor(Math.abs(t)/60)+Math.abs(t)%60,4)}},O={d:[D,function(e,t){e.day=t}],M:[D,function(e,t){e.month=t-1}],yy:[D,function(e,t){var n=new Date,a=+"".concat(n.getFullYear()).substr(0,2);e.year="".concat(t>68?a-1:a).concat(t)}],h:[D,function(e,t){e.hour=t}],m:[D,function(e,t){e.minute=t}],s:[D,function(e,t){e.second=t}],yyyy:[/\d{4}/,function(e,t){e.year=t}],S:[/\d/,function(e,t){e.millisecond=100*t}],SS:[/\d{2}/,function(e,t){e.millisecond=10*t}],SSS:[/\d{3}/,function(e,t){e.millisecond=t}],D:[D,S],ddd:[w,S],MMM:[w,M("monthNamesShort")],MMMM:[w,M("monthNames")],a:[w,function(e,t,n){var a=t.toLowerCase();a===n.amPm[0]?e.isPm=!1:a===n.amPm[1]&&(e.isPm=!0)}],ZZ:[/[\\+\\-]\d\d:?\d\d/,function(e,t){var n,a="".concat(t).match(/([\\+\\-]|\d\d)/gi);a&&(n=60*a[1]+parseInt(a[2],10),e.timezoneOffset="+"===a[0]?n:-n)}]};O.DD=O.D,O.dddd=O.ddd,O.Do=O.dd=O.d,O.mm=O.m,O.hh=O.H=O.HH=O.h,O.MM=O.M,O.ss=O.s,O.A=O.a,b.masks={default:"ddd MMM dd yyyy HH:mm:ss",shortDate:"M/D/yy",mediumDate:"MMM d, yyyy",longDate:"MMMM d, yyyy",fullDate:"dddd, MMMM d, yyyy",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},b.format=function(e,t,n){var a=n||b.i18n;if("number"==typeof e&&(e=new Date(e)),"[object Date]"!==Object.prototype.toString.call(e)||isNaN(e.getTime()))throw new Error("Invalid Date in fecha.format");return(t=b.masks[t]||t||b.masks.default).replace(k,(function(t){return t in F?F[t](e,a):t.slice(1,t.length-1)}))},b.parse=function(e,t,n){var a=n||b.i18n;if("string"!=typeof t)throw new Error("Invalid format in fecha.parse");if(t=b.masks[t]||t,e.length>1e3)return!1;var r=!0,i={};if(t.replace(k,(function(t){if(O[t]){var n=O[t],l=e.search(n[0]);~l?e.replace(n[0],(function(t){return n[1](i,t,a),e=e.substr(l+t.length),t})):r=!1}return O[t]?"":t.slice(1,t.length-1)})),!r)return!1;var l,o=new Date;return!0===i.isPm&&null!==i.hour&&12!=+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12==+i.hour&&(i.hour=0),null!==i.timezoneOffset&&void 0!==i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,l=new Date(Date.UTC(i.year||o.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):l=new Date(i.year||o.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),l};const H=b;var L=" - ",A=function(e,t){var n=(0,g.toDate)(new Date(e));return!n||isNaN(n.getTime())?"":(0,g.format)(n,t||"yyyy-MM-dd")},j=function(e,t){if(Array.isArray(e)&&2===e.length){var n=e[0],a=e[1];if(n&&a)return A(n,t)+L+A(a,t)}else if(!Array.isArray(e)&&e instanceof Date)return A(e,t);return""},B=function(e,t){var n=Array.isArray(e)?e:e.split(L);if(2===n.length){var a=n[0],r=n[1];return[a instanceof Date?a:H.parse(a,t||"yyyy-MM-dd"),r instanceof Date?r:H.parse(r,t||"yyyy-MM-dd")]}return[]},R={default:{formatter:function(e){return e?"".concat(e):""},parser:function(e){return void 0===e||""===e?null:e}},date:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return H.parse(e,t||"yyyy-MM-dd")}},datetime:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return H.parse(e,t||"yyyy-MM-dd")}},daterange:{formatter:j,parser:B},datetimerange:{formatter:j,parser:B},timerange:{formatter:j,parser:B},time:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return H.parse(e,t||"yyyy-MM-dd")}},month:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return H.parse(e,t||"yyyy-MM-dd")}},year:{formatter:function(e,t){return A(e,t)},parser:function(e,t){return H.parse(e,t||"yyyy-MM-dd")}},multiple:{formatter:function(e,t){return e.filter(Boolean).map((function(e){return A(e,t)})).join(",")},parser:function(e,t){return("string"==typeof e?e.split(","):e).map((function(e){if(e instanceof Date)return e;var n=e;return"string"==typeof e?n=e.trim():"number"==typeof e||e||(n=""),H.parse(n,t||"yyyy-MM-dd")}))}},number:{formatter:function(e){return e?"".concat(e):""},parser:function(e){var t=Number(e);return isNaN(e)?null:t}}},z=function(e){return e?[e.getHours(),e.getMinutes(),e.getSeconds()]:[0,0,0]},I={date:"yyyy-MM-dd",month:"yyyy-MM",year:"yyyy",datetime:"yyyy-MM-dd HH:mm:ss",time:"HH:mm:ss",timerange:"HH:mm:ss",daterange:"yyyy-MM-dd",datetimerange:"yyyy-MM-dd HH:mm:ss"},Y=function(e,t,n,r){var i=t.includes("range"),l=(R[t]||R.default).parser,o=r||I[t],c=R.multiple.parser,u=e;if(!e||"time"!==t||e instanceof Date)if(n&&e)u=c(e,o);else if(i)if(e)if("string"==typeof e)u=l(e,o);else if("timerange"===t)u=l(e,o).map((function(e){return e||""}));else{var s=a(e,2),d=s[0],f=s[1];d instanceof Date&&f instanceof Date?u=e.map((function(e){return new Date(e)})):"string"==typeof d&&"string"==typeof f?u=l(e.join(L),o):d&&f||(u=[null,null])}else u=[null,null];else"string"==typeof e&&0!==t.indexOf("time")&&(u=l(e,o)||null);else u=l(e,o);return i||n?u||[]:[u]},q=function(e,t,n,a){var r=I[t];return n?(0,R.multiple.formatter)(e,a||r):(0,(R[t]||R.default).formatter)(e,a||r)},E=Symbol("date-picker");function U(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return["bk-picker-panel-icon-btn","bk-date-picker-".concat(e,"-btn"),"bk-date-picker-".concat(e,"-btn-arrow").concat(t)]}var $,K,J=function(e,t){var n,a=new Date(e),r=a.getMonth()+t,i=(n=a.getFullYear(),new Date(n,r+1,0).getDate());return i<a.getDate()&&a.setDate(i),a.setMonth(r),a},Z=($={yyyy:function(e){return e.getFullYear()},m:function(e){return e.getMonth()+1},mm:function(e){return"0".concat(e.getMonth()+1).slice(-2)},mmm:function(e,t){return e.toLocaleDateString(t,{month:"long"}).slice(0,3)},Mmm:function(e,t){var n=e.toLocaleDateString(t,{month:"long"});return(n[0].toUpperCase()+n.slice(1).toLowerCase()).slice(0,3)},mmmm:function(e,t){return e.toLocaleDateString(t,{month:"long"})},Mmmm:function(e,t){var n=e.toLocaleDateString(t,{month:"long"});return n[0].toUpperCase()+n.slice(1).toLowerCase()}},K=new RegExp(["yyyy","Mmmm","mmmm","Mmm","mmm","mm","m"].join("|"),"g"),function(e,t,n){var a=t.match(/(\[[^\]]+\])([^\\[\]]+)(\[[^\]]+\])/).slice(1);return{separator:a[1],labels:[a[0],a[2]].map((function(t){return{label:t.replace(/\[[^\]]+\]/,(function(t){return t.slice(1,-1).replace(K,(function(t){return $[t](n,e)}))})),type:-1!==t.indexOf("yy")?"year":"month"}}))}}),_=function(e){var t=new Date(e);return t.setHours(0,0,0,0),t.getTime()},W=function(e,t,n){if(!t||!n)return!1;var r=a([t,n].sort(),2),i=r[0],l=r[1];return e>=i&&e<=l},G={tableDate:{type:Date,required:!0},disableDate:Function,selectionMode:{type:String,required:!0},modelValue:{type:[Date,String,Number,Array]},rangeState:{type:Object,default:function(){return{from:null,to:null,selecting:!1}}},focusedDate:{type:Date,required:!0}};const Q=(0,l.defineComponent)({props:G,emits:["pick","pick-click","changeRange"],setup:function(e,t){var n=t.emit,r=(0,l.computed)((function(){return new(v().Generator)({onlyDays:!0,weekStart:0})})),i=(0,l.computed)((function(){var e=["日","一","二","三","四","五","六"];return e.splice(0,7).concat(e.splice(0,0))})),o=(0,l.computed)((function(){return"range"===e.selectionMode&&e.rangeState.selecting?[e.rangeState.from]:e.modelValue}));return{headerDays:i,cells:(0,l.computed)((function(){var t=e.tableDate.getFullYear(),n=e.tableDate.getMonth(),i=_(new Date),l=o.value.filter(Boolean).map(_),c=a(o.value.map(_),2),u=c[0],s=c[1],d=e.rangeState.from&&_(e.rangeState.from),f=e.rangeState.to&&_(e.rangeState.to),p="range"===e.selectionMode,h="function"==typeof e.disableDate&&e.disableDate;return r.value(t,n,(function(e){e.date instanceof Date&&e.date.setTime(e.date.getTime()+6e4*e.date.getTimezoneOffset());var t=e.date&&_(e.date),a=e.date&&n===e.date.getMonth();return Object.assign(Object.assign({},e),{type:t===i?"today":e.type,selected:a&&l.includes(t),disabled:e.date&&h&&h(new Date(t)),range:a&&p&&W(t,d,f),start:a&&p&&t===u,end:a&&p&&t===s})})).cells.slice(0)})),getCellCls:function(e){var t;return["bk-date-picker-cells-cell",(t={},m(t,"bk-date-picker-cells-cell-selected",e.selected||e.start||e.end),m(t,"bk-date-picker-cells-cell-disabled",e.disabled),m(t,"bk-date-picker-cells-cell-today","today"===e.type),m(t,"bk-date-picker-cells-cell-prev-month","prevMonth"===e.type),m(t,"bk-date-picker-cells-cell-next-month","nextMonth"===e.type),m(t,"bk-date-picker-cells-cell-week-label","weekLabel"===e.type),m(t,"bk-date-picker-cells-cell-range",e.range&&!e.start&&!e.end),t)]},handleClick:function(e){if(!e.disabled&&"weekLabel"!==e.type){var t=new Date(_(e.date));n("pick",t),n("pick-click")}},handleMouseMove:function(t){if(e.rangeState.selecting&&!t.disabled){var a=t.date;n("changeRange",a)}}}},render:function(){var e=this;return(0,l.createVNode)("div",{class:"bk-date-picker-cells"},[(0,l.createVNode)("div",{class:"bk-date-picker-cells-header"},[this.headerDays.map((function(e){return(0,l.createVNode)("span",null,[e])}))]),this.cells.map((function(t){return(0,l.createVNode)("span",{class:e.getCellCls(t),onClick:function(){return e.handleClick(t)},onMouseenter:function(){return e.handleMouseMove(t)}},[(0,l.createVNode)("em",null,[t.desc])])}))])}});var X={modelValue:{type:[Date,String,Number,Array]},shortcuts:{type:Array,default:function(){return[]}},multiple:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0&&(console.error("selectionMode property is not valid: '".concat(e,"'")),1))}},startDate:{type:Date},disableDate:Function,focusedDate:{type:Date,required:!0},confirm:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1}};const ee=(0,l.defineComponent)({props:X,emits:["pick","pick-success","pick-clear"],setup:function(e,t){var n=this,a=t.slots,r=t.emit,i=function(e){return e.match(/^time/)?"time-picker":"".concat(e,"-table")},o=e.modelValue.slice().sort(),c=(0,l.reactive)({currentView:e.selectionMode||"date",pickerTable:i(e.selectionMode),dates:o,panelDate:e.startDate||o[0]||new Date}),u=function(){setTimeout((function(){c.currentView=e.selectionMode}),500)},s=function(e){c.panelDate=e,"year-table"===c.pickerTable?c.pickerTable="month-table":c.pickerTable=i(c.currentView)},d=function(t,n){var a;a="year"===e.selectionMode?new Date(t.getFullYear(),0,1):"month"===e.selectionMode?new Date(c.panelDate.getFullYear(),t.getMonth(),1):new Date(t),c.dates=[a],r("pick",a,!1,n||e.selectionMode)},f=function(){u(),r("pick-success")},p=(0,l.ref)(null),h=(0,l.ref)(null),m=(0,l.computed)((function(){return c.pickerTable==="".concat(c.currentView,"-table")?d:s})),y=(0,l.computed)((function(){var e=c.panelDate,t=Z("zh-CN","[yyyy]-[mm]",e),n=t.labels;return{separator:t.separator,labels:n.map((function(e){var t,n=e;return n.handler=(t=e.type,function(){c.pickerTable=i(t)}),n}))}})),v=(0,l.computed)((function(){return"year"===y.value.labels[0].type||"date"===c.currentView})),g=(0,l.computed)((function(){return"year"===y.value.labels[1].type||"date"===c.currentView})),b=(0,l.computed)((function(){return"time"===c.currentView})),k=(0,l.computed)((function(){return!!a.shortcuts}));return Object.assign(Object.assign({},(0,l.toRefs)(c)),{panelPickerHandlers:m,datePanelLabel:y,showLabelFirst:v,showLabelSecond:g,handleShortcutClick:function(t){t.value&&r("pick",t.value(),!1,void 0,t),t.onClick&&t.onClick(n),e.shortcutClose&&f()},changeYear:function(t){"year"===e.selectionMode||"year-table"===c.pickerTable?c.panelDate=new Date(c.panelDate.getFullYear()+10*t,0,1):c.panelDate=J(c.panelDate,12*t)},changeMonth:function(e){c.panelDate=J(c.panelDate,e)},reset:function(){c.currentView=e.selectionMode,c.pickerTable=i(c.currentView)},isTime:b,hasShortcuts:k,onToggleVisibility:function(e){var t,n;e&&(null===(t=null==p?void 0:p.value)||void 0===t||t.updateScroll(),null===(n=null==h?void 0:h.value)||void 0===n||n.updateScroll())},handleToggleTime:function(){c.currentView="time"===c.currentView?"date":"time"},handlePickSuccess:f,handlePickClear:function(){u(),r("pick-clear")}})},render:function(){var e,t,n,a=this;return(0,l.createVNode)("div",{class:["bk-picker-panel-body-wrapper",this.shortcuts.length||this.hasShortcuts?"bk-picker-panel-with-sidebar":""],onMousedown:function(e){e.preventDefault()}},[this.shortcuts.length?(0,l.createVNode)("div",{class:"bk-picker-panel-sidebar"},[this.shortcuts.map((function(e){return(0,l.createVNode)("div",{class:"bk-picker-panel-shortcut",onClick:function(){return a.handleShortcutClick(e)}},[e.text])}))]):"",(0,l.createVNode)("div",{class:"bk-picker-panel-body",style:"width: 261px;"},[(0,l.withDirectives)((0,l.createVNode)("div",{class:"bk-date-picker-header"},[(0,l.createVNode)("span",{class:U("prev","-double"),onClick:function(){return a.changeYear(-1)}},[(0,l.createVNode)(f.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?(0,l.withDirectives)((0,l.createVNode)("span",{class:U("prev"),onClick:function(){return a.changeMonth(-1)}},[(0,l.createVNode)(f.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[l.vShow,"date"===this.currentView]]):"",this.datePanelLabel&&Object.keys(this.datePanelLabel).length>0?(0,l.createVNode)("span",null,[(0,l.withDirectives)((0,l.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return a.datePanelLabel.labels[0].handler}},[this.datePanelLabel.labels[0].label]),[[l.vShow,this.showLabelFirst]]),"date"===this.currentView?" ".concat(this.datePanelLabel.separator," "):" ",(0,l.withDirectives)((0,l.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return a.datePanelLabel.labels[1].handler}},[this.datePanelLabel.labels[1].label]),[[l.vShow,this.showLabelSecond]])]):"",(0,l.createVNode)("span",{class:U("next","-double"),onClick:function(){return a.changeYear(1)}},[(0,l.createVNode)(f.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.pickerTable?(0,l.withDirectives)((0,l.createVNode)("span",{class:U("next"),onClick:function(){return a.changeMonth(1)}},[(0,l.createVNode)(f.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[l.vShow,"date"===this.currentView]]):""]),[[l.vShow,"time"!==this.currentView]]),(0,l.createVNode)("div",{class:"bk-picker-panel-content"},["time"!==this.currentView?"date-table"===a.pickerTable?(0,l.createVNode)(Q,{tableDate:a.panelDate,disableDate:a.disableDate,selectionMode:a.selectionMode,modelValue:a.dates,focusedDate:a.focusedDate,onPick:a.panelPickerHandlers},null):null:""]),this.confirm?(0,l.createVNode)(h,{clearable:this.clearable,showTime:this.showTime,isTime:this.isTime,"onPick-toggle-time":this.handleToggleTime,"onPick-clear":this.handlePickClear,"onPick-success":this.handlePickSuccess},null):""]),this.hasShortcuts?(0,l.createVNode)("div",{class:"bk-picker-panel-sidebar"},[null!==(n=null===(t=(e=this.$slots).shortcuts)||void 0===t?void 0:t.call(e))&&void 0!==n?n:null]):null])}});var te={modelValue:{type:[Date,String,Number,Array]},type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0&&(console.error("type property is not valid: '".concat(e,"'")),1))}},shortcuts:{type:Array,default:function(){return[]}},clearable:{type:Boolean,default:!0},splitPanels:{type:Boolean,default:!0},shortcutClose:{type:Boolean,default:!1},showTime:{type:Boolean,default:!1},selectionMode:{type:String,default:"date",validator:function(e){return!(["year","month","date","time"].indexOf(e)<0&&(console.error("selectionMode property is not valid: '".concat(e,"'")),1))}},startDate:{type:Date},upToNow:{type:Boolean,default:!1},disableDate:Function,focusedDate:{type:Date,required:!0},confirm:{type:Boolean,default:!1}};const ne=(0,l.defineComponent)({props:te,emits:["pick"],setup:function(e,t){var n=t.slots,r=t.emit,i=e.modelValue.map((function(e){return e||function(){var e=new Date;return e.setHours(0),e.setMinutes(0),e.setSeconds(0),e}()})),o=a(i,2),c=o[0],u=o[1],s=e.startDate?e.startDate:c,d=(0,l.reactive)({currentView:e.selectionMode||"date",leftPickerTable:"".concat(e.selectionMode,"-table"),rightPickerTable:"".concat(e.selectionMode,"-table"),leftPanelDate:s,rightPanelDate:new Date(s.getFullYear(),s.getMonth()+1,1),rangeState:{from:e.modelValue[0],to:e.modelValue[1],selecting:c&&!u},upToNowEnable:!1,dates:e.modelValue}),f=function(e,t){return e&&t?e.getTime()-t.getTime():0},p=(0,l.ref)(null),h=(0,l.ref)(null),m=function t(n,a,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],l=new Date(d["".concat(n,"PanelDate")]);if(l["set".concat(a)](l["get".concat(a)]()+r),d["".concat(n,"PanelDate")]=l,i)if(e.splitPanels){var o="left"===n?"right":"left";"left"===n&&d.leftPanelDate>=d.rightPanelDate&&t(o,a,1),"right"===n&&d.rightPanelDate<=d.leftPanelDate&&t(o,a,-1)}else{var c="left"===n?"right":"left",u=d["".concat(c,"PanelDate")],s=new Date(u);if("Month"===a){var f=new Date(s.getFullYear(),s.getMonth()+r+1,0).getDate();s.setDate(Math.min(f,s.getDate()))}s["set".concat(a)](s["get".concat(a)]()+r),d["".concat(c,"PanelDate")]=s}},y=function(e){d["".concat(e,"PickerTable")]="year-table"},v=function(e){d["".concat(e,"PickerTable")]="month-table"},g=function(e){var t=d["".concat(e,"PanelDate")],n=Z("zh-CN","[yyyy]-[mm]",t),a=n.labels;return{separator:n.separator,labels:a.map((function(t){var n,a,r=t;return r.handler=(n=t.type,a="month"===n?v:y,function(){return a(e)}),r}))}},b=function(t,n){if(console.warn("handleRangePick"),d.rangeState.selecting||"time"===d.currentView){if("time"===d.currentView)d.dates=t;else{var i=a([d.rangeState.from,t].sort(f),2),l=i[0],o=i[1],c="upToNow"===n?new Date:new Date(new Date(new Date(o.setHours(23)).setMinutes(59)).setSeconds(59));d.dates=[l,c],d.rangeState={from:l,to:c,selecting:!1}}!function(t,n){r("pick",d.dates,!1,n||e.type)}(0,n||"date")}else d.upToNowEnable=new Date(t).getTime()<(new Date).getTime(),d.rangeState={from:t,to:null,selecting:!0}},k=function(t,n){d["".concat(t,"PanelDate")]=n;var a=d["".concat(t,"PickerTable")];if(d["".concat(t,"PickerTable")]="year-table"===a?"month-table":"".concat(d.currentView,"-table"),!e.splitPanels){var r="left"===t?"right":"left";d["".concat(r,"PanelDate")]=n,m(r,"Month","left"===r?-1:1,!1)}};(0,l.watch)((function(){return e.selectionMode}),(function(e){d.currentView=e||"range"}));var D=(0,l.computed)((function(){return"time"===d.currentView})),w=(0,l.computed)((function(){return g("left")})),S=(0,l.computed)((function(){return g("right")})),V=(0,l.computed)((function(){return d.leftPickerTable.split("-").shift()})),M=(0,l.computed)((function(){return d.rightPickerTable.split("-").shift()})),P=(0,l.computed)((function(){return"year"===w.value.labels[0].type||"date"===d.currentView})),N=(0,l.computed)((function(){return"year"===w.value.labels[1].type||"date"===d.currentView})),C=(0,l.computed)((function(){return"year"===S.value.labels[0].type||"date"===d.currentView})),T=(0,l.computed)((function(){return"year"===S.value.labels[1].type||"date"===d.currentView})),x=(0,l.computed)((function(){var e="".concat(d.currentView,"-table");return{left:d.leftPickerTable!==e,right:d.rightPickerTable!==e}})),F=(0,l.computed)((function(){return{left:x.value.left?k.bind("left"):b,right:x.value.right?k.bind("right"):b}})),O=(0,l.computed)((function(){return!!n.shortcuts}));return Object.assign(Object.assign({},(0,l.toRefs)(d)),{isTime:D,hasShortcuts:O,prevYear:function(e){var t="year"===d.currentView?-10:-1;m(e,"FullYear",t)},nextYear:function(e){var t="year"===d.currentView?10:1;m(e,"FullYear",t)},prevMonth:function(e){m(e,"Month",-1)},nextMonth:function(e){m(e,"Month",1)},leftDatePanelLabel:w,rightDatePanelLabel:S,leftDatePanelView:V,rightDatePanelView:M,leftShowLabelFirst:P,leftShowLabelSecond:N,rightShowLabelFirst:C,rightShowLabelSecond:T,preSelecting:x,panelPickerHandlers:F,reset:function(){d.currentView=e.selectionMode,d.leftPickerTable="".concat(d.currentView,"-table"),d.rightPickerTable="".concat(d.currentView,"-table")},onToggleVisibility:function(e){var t,n;e&&(null===(t=null==p?void 0:p.value)||void 0===t||t.updateScroll(),null===(n=null==h?void 0:h.value)||void 0===n||n.updateScroll())},handleRangePick:b,handleChangeRange:function(e){d.rangeState.to=e}})},render:function(){var e,t,n,a=this;return(0,l.createVNode)("div",{class:["bk-picker-panel-body-wrapper","bk-date-picker-with-range",this.shortcuts.length||this.$slots.shortcuts?"bk-picker-panel-with-sidebar":""],onMousedown:function(e){e.preventDefault()}},[(0,l.createVNode)("div",{class:["bk-picker-panel-body",this.showTime?"bk-picker-panel-body-time":"bk-picker-panel-body-date"]},[(0,l.withDirectives)((0,l.createVNode)("div",{class:"bk-picker-panel-content bk-picker-panel-content-left",style:"width: 261px;"},[(0,l.withDirectives)((0,l.createVNode)("div",{class:"bk-date-picker-header"},[(0,l.createVNode)("span",{class:U("prev","-double"),onClick:function(){return a.prevYear("left")}},[(0,l.createVNode)(f.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.leftPickerTable?(0,l.withDirectives)((0,l.createVNode)("span",{class:U("prev"),onClick:function(){return a.prevMonth("left")}},[(0,l.createVNode)(f.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[l.vShow,"date"===this.currentView]]):"",this.leftDatePanelLabel&&Object.keys(this.leftDatePanelLabel).length>0?(0,l.createVNode)("span",null,[(0,l.withDirectives)((0,l.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return a.leftDatePanelLabel.labels[0].handler}},[this.leftDatePanelLabel.labels[0].label]),[[l.vShow,this.leftShowLabelFirst]]),"date"===this.leftDatePanelView?" ".concat(this.leftDatePanelLabel.separator," "):" ",(0,l.withDirectives)((0,l.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return a.leftDatePanelLabel.labels[1].handler}},[this.leftDatePanelLabel.labels[1].label]),[[l.vShow,this.leftShowLabelSecond]])]):"",this.splitPanels||"date-table"!==this.leftPickerTable?(0,l.createVNode)("span",{class:U("next","-double"),onClick:function(){return a.nextYear("left")}},[(0,l.createVNode)(f.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels||"date-table"===this.leftPickerTable?(0,l.withDirectives)((0,l.createVNode)("span",{class:U("next"),onClick:function(){return a.nextMonth("left")}},[(0,l.createVNode)(f.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[l.vShow,"date"===this.currentView]]):""]),[[l.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===a.leftPickerTable?(0,l.createVNode)(Q,{selectionMode:"range",tableDate:a.leftPanelDate,disableDate:a.disableDate,rangeState:a.rangeState,modelValue:a.preSelecting.left?[a.dates[0]]:a.dates,focusedDate:a.focusedDate,onChangeRange:a.handleChangeRange,onPick:a.panelPickerHandlers.left},null):null:""]),[[l.vShow,!this.isTime]]),(0,l.withDirectives)((0,l.createVNode)("div",{class:"bk-picker-panel-content bk-picker-panel-content-right",style:"width: 261px;"},[(0,l.withDirectives)((0,l.createVNode)("div",{class:"bk-date-picker-header"},[this.splitPanels||"date-table"!==this.rightPickerTable?(0,l.createVNode)("span",{class:U("prev","-double"),onClick:function(){return a.prevYear("right")}},[(0,l.createVNode)(f.AngleDoubleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]):"",this.splitPanels&&"date-table"===this.rightPickerTable?(0,l.withDirectives)((0,l.createVNode)("span",{class:U("prev","-double"),onClick:function(){return a.prevMonth("right")}},[(0,l.createVNode)(f.AngleLeft,{style:{fontSize:"20px",lineHeight:1}},null)]),[[l.vShow,"date"===this.currentView]]):"",this.rightDatePanelLabel&&Object.keys(this.rightDatePanelLabel).length>0?(0,l.createVNode)("span",null,[(0,l.withDirectives)((0,l.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return a.rightDatePanelLabel.labels[0].handler}},[this.rightDatePanelLabel.labels[0].label]),[[l.vShow,this.rightShowLabelFirst]]),"date"===this.rightDatePanelView?" ".concat(this.rightDatePanelLabel.separator," "):" ",(0,l.withDirectives)((0,l.createVNode)("span",{class:"bk-date-picker-header-label",onClick:function(){return a.rightDatePanelLabel.labels[1].handler}},[this.rightDatePanelLabel.labels[1].label]),[[l.vShow,this.rightShowLabelSecond]])]):"",this.upToNow?(a.rangeState.selecting||"time"===a.currentView)&&a.upToNowEnable?(0,l.createVNode)("span",{class:"up-to-now",onClick:function(){return a.handleRangePick(new Date,"upToNow")}},[(0,l.createTextVNode)("至今")]):(0,l.createVNode)("span",{class:"up-to-now disabled"},[(0,l.createTextVNode)("至今")]):"",(0,l.createVNode)("span",{class:U("next","-double"),onClick:function(){return a.nextYear("right")}},[(0,l.createVNode)(f.AngleDoubleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),"date-table"===this.rightPickerTable?(0,l.withDirectives)((0,l.createVNode)("span",{class:U("next"),onClick:function(){return a.nextMonth("right")}},[(0,l.createVNode)(f.AngleRight,{style:{fontSize:"20px",lineHeight:1}},null)]),[[l.vShow,"date"===this.currentView]]):""]),[[l.vShow,"time"!==this.currentView]]),"time"!==this.currentView?"date-table"===a.rightPickerTable?(0,l.createVNode)(Q,{selectionMode:"range",tableDate:a.rightPanelDate,disableDate:a.disableDate,rangeState:a.rangeState,modelValue:a.preSelecting.right?[a.dates[a.dates.length-1]]:a.dates,focusedDate:a.focusedDate,onChangeRange:a.handleChangeRange,onPick:a.panelPickerHandlers.right},null):null:""]),[[l.vShow,!this.isTime]])]),this.hasShortcuts?(0,l.createVNode)("div",{class:"bk-picker-panel-sidebar"},[null!==(n=null===(t=(e=this.$slots).shortcuts)||void 0===t?void 0:t.call(e))&&void 0!==n?n:null]):null])}});var ae={type:{type:String,default:"date",validator:function(e){return!(["year","month","date","daterange","datetime","datetimerange","time","timerange"].indexOf(e)<0&&(console.error("type property is not valid: '".concat(e,"'")),1))}},extPopoverCls:{type:String,default:""},format:String,readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},editable:{type:Boolean,default:!0},clearable:{type:Boolean,default:!0},open:{type:Boolean,default:null},multiple:{type:Boolean,default:!1},timePickerOptions:{type:Object,default:function(){return{}}},splitPanels:{type:Boolean,default:!0},startDate:Date,placeholder:{type:String,default:""},placement:{type:String,default:"bottom-start",validator:function(e){return!(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end"].indexOf(e)<0&&(console.error("placement property is not valid: '".concat(e,"'")),1))}},transfer:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},shortcuts:{type:Array,default:function(){return[]}},shortcutClose:{type:Boolean,default:!1},modelValue:{type:[Date,String,Number,Array]},value:{type:[Date,String,Number,Array]},options:{type:Object,default:function(){return{}}},fontSize:{type:String,default:"normal"},upToNow:{type:Boolean,default:!1},useShortcutText:{type:Boolean,default:!1},shortcutSelectedIndex:{type:Number,default:-1},headerSlotCls:{type:String,default:""},footerSlotCls:{type:String,default:""},allowCrossDay:{type:Boolean,default:!1},behavior:{type:String,default:"normal",validator:function(e){return["simplicity","normal"].indexOf(e)>-1}},disableDate:Function};const re=(0,l.defineComponent)({name:"DatePicker",directives:{clickoutside:o.clickoutside},props:ae,emits:["open-change","input","change","update:modelValue","clear","shortcut-change","pick-success"],slots:["header"],setup:function(e,t){var n=t.slots,o=t.emit,c=e.type.includes("range"),u=c?[null,null]:[null],s=((c?e.modelValue:[e.modelValue])||[]).every((function(e){return!e||"string"==typeof e&&""===e.trim()}))?u:Y(e.modelValue,e.type,e.multiple,e.format),d=null;-1!==e.shortcutSelectedIndex&&(d=e.shortcuts[e.shortcutSelectedIndex]||null)&&(s=d.value());var f=(0,l.reactive)({showClose:!1,visible:!1,internalValue:s,disableClickOutSide:!1,disableCloseUnderTransfer:!1,selectionMode:"date",forceInputRerender:1,isFocused:!1,focusedDate:s[0]||e.startDate||new Date,focusedTime:{column:0,picker:0,time:s.map(z),active:!1},internalFocus:!1,timeEnterMode:!0,shortcut:d,onSelectionModeChange:p});function p(e){var t=e;return e.match(/^date/)&&(t="date"),f.selectionMode=["year","month","date","time"].indexOf(t)>-1&&t,f.selectionMode}var h=(0,l.computed)((function(){if(e.multiple)return f.internalValue.slice();var t=e.type.includes("range"),n=f.internalValue.map((function(e){return e instanceof Date?new Date(e):e||""}));return e.type.match(/^time/)&&(n=n.map((function(t){return q(t,e.type,e.multiple,e.format)}))),t||e.multiple?n:n[0]})),m=(0,l.computed)((function(){return e.type.match(/^time/)?h.value:e.multiple?q(h.value,e.type,e.multiple,e.format):Array.isArray(h.value)?h.value.map((function(t){return q(t,e.type,e.multiple,e.format)})):q(h.value,e.type,e.multiple,e.format)})),y=(0,l.computed)((function(){return"daterange"===e.type||"datetimerange"===e.type?"DateRangePanel":"DatePanel"})),v=(0,l.computed)((function(){return null===e.open?f.visible:e.open})),g=(0,l.computed)((function(){return q(f.internalValue,e.type,e.multiple,e.format)})),b=(0,l.computed)((function(){var t;return(null===(t=f.shortcut)||void 0===t?void 0:t.text)&&e.useShortcutText?f.shortcut.text:g.value})),k=(0,l.computed)((function(){return!!n.trigger||"datetime"===e.type||"datetimerange"===e.type||e.multiple})),D=(0,l.computed)((function(){return!!n.header})),w=(0,l.computed)((function(){return!!n.footer})),S=(0,l.computed)((function(){return!!n.shortcuts})),V=(0,l.computed)((function(){var t="";return"medium"===e.fontSize?t="medium-font":"large"===e.fontSize&&(t="large-font"),t})),M=(0,l.computed)((function(){var t="";return"medium"===e.fontSize?t="medium-width":"large"===e.fontSize&&(t="large-width"),t})),P=(0,l.computed)((function(){var t;return!(!(null===(t=f.shortcut)||void 0===t?void 0:t.text)||!e.useShortcutText)||!e.editable||e.readonly})),N=(0,l.computed)((function(){return"RangeTimePickerPanel"===y.value&&e.allowCrossDay})),C=(0,l.ref)(null);(0,l.watch)((function(){return f.visible}),(function(e){var t,n;!1===e&&(null===(t=T.value)||void 0===t||t.destoryDropdown()),null===(n=T.value)||void 0===n||n.updateDropdown(),o("open-change",e)}));var T=(0,l.ref)(null);(0,l.watch)((function(){return e.modelValue}),(function(t){f.internalValue=Y(t,e.type,e.multiple,e.format)})),(0,l.watch)((function(){return e.open}),(function(e){f.visible=!0===e})),(0,l.watch)((function(){return e.type}),(function(e){p(e)})),(0,l.watch)((function(){return h}),(function(e,t){(JSON.stringify(e)!==JSON.stringify(t)||i(e)!==i(t))&&o("input",e)})),(0,l.onMounted)((function(){e.type.indexOf("date"),f.timeEnterMode=!0;var t=e.modelValue,n=h.value;i(t)===i(n)&&JSON.stringify(t)===JSON.stringify(n)||o("input",h.value),null!==e.open&&(f.visible=e.open),(0,l.provide)(E,{props:e,focus:function(){var e;null===(e=null==C?void 0:C.value)||void 0===e||e.focus()}})}));var x=(0,l.ref)(null),F=function(e){var t;if(f.disableCloseUnderTransfer)return f.disableCloseUnderTransfer=!1,!1;if(e&&"mousedown"===e.type&&f.visible)return e.preventDefault(),void e.stopPropagation();if(f.visible){var n=null===(t=null==x?void 0:x.value)||void 0===t?void 0:t.$el;if(e&&n&&n.contains(e.target))return;return f.visible=!1,null==e||e.preventDefault(),void(null==e||e.stopPropagation())}f.isFocused=!1,f.disableClickOutSide=!1},O=function(t){(0,l.nextTick)((function(){var n;o("change",m.value,t),o("update:modelValue",h.value),e.type.indexOf("time")<0&&(null===(n=null==C?void 0:C.value)||void 0===n||n.blur())}))},H=function(){var e;null===(e=null==x?void 0:x.value)||void 0===e||e.reset()},L=function(){var e;f.visible=!1,console.error("onPickSuccess"),(0,l.nextTick)((function(){o("pick-success")})),null===(e=null==C?void 0:C.value)||void 0===e||e.blur(),H()},A=(0,l.ref)(null);return Object.assign(Object.assign({},(0,l.toRefs)(f)),{panel:y,publicStringValue:m,opened:v,visualValue:g,displayValue:b,isConfirm:k,hasHeader:D,hasFooter:w,hasShortcuts:S,fontSizeCls:V,longWidthCls:M,localReadonly:P,allowCrossDayProp:N,pickerDropdownRef:T,inputRef:C,triggerRef:A,pickerPanelRef:x,handleClose:F,handleIconClick:function(){var e,t;null===(e=null==C?void 0:C.value)||void 0===e||e.focus(),null===(t=null==C?void 0:C.value)||void 0===t||t.click()},handleInputMouseenter:function(){e.readonly||e.disabled||(null==g?void 0:g.value)&&(f.showClose=!0)},handleInputMouseleave:function(e){var t;(null===(t=e.toElement)||void 0===t?void 0:t.classList.contains("clear-action"))||(f.showClose=!1)},handleFocus:function(t){e.readonly||(f.isFocused=!0,t&&"focus"===t.type||e.disabled||(f.visible=!0))},handleBlur:function(t){var n;f.internalFocus?f.internalFocus=!1:f.visible?t.preventDefault():(f.isFocused=!1,p(e.type),f.internalValue=f.internalValue.slice(),H(),null===(n=null==x?void 0:x.value)||void 0===n||n.onToggleVisibility(!1))},handleKeydown:function(e){var t=e.keyCode;if(9===t&&f.visible)if(e.stopPropagation(),e.preventDefault(),k.value){var n=T.value.$el.querySelectorAll(".bk-picker-confirm > *");f.internalFocus=!0,r(n)[e.shiftKey?"pop":"shift"]().focus()}else F();var a=[37,38,39,40];f.visible||!a.includes(t)?(27===t&&f.visible&&(e.stopPropagation(),F()),a.includes(t)&&f.focusedTime.active&&e.preventDefault()):f.visible=!0},handleInputChange:function(t){var n,a=e.type.includes("range")||e.multiple,r=g.value,i=t.target.value,l=Y(i,e.type,e.multiple,e.format),o=a?l:l[0],c=null===(n=e.disableDate)||void 0===n?void 0:n.call(e,o),u=l.reduce((function(e,t){return e&&t instanceof Date}),!0);i!==r&&!c&&u?(O(e.type),f.internalValue=l):f.forceInputRerender=f.forceInputRerender+1},handleClear:function(){f.visible=!1,f.internalValue=f.internalValue.map((function(){return null})),o("clear"),O(e.type),H(),f.showClose=!1,f.shortcut=null,setTimeout((function(){return p(e.type)}),500)},handleTransferClick:function(){e.appendToBody&&(f.disableCloseUnderTransfer=!0)},onPick:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,c=t;if(e.multiple){var u=c.getTime(),s=f.internalValue.findIndex((function(e){return e&&e.getTime()===u})),d=[].concat(r(f.internalValue),[c]).filter(Boolean),h=d.map((function(e){return e.getTime()})).filter((function(e,t,n){return n.indexOf(e)===t&&t!==s}));f.internalValue=h.map((function(e){return new Date(e)}))}else c=Y(t,e.type,e.multiple,e.format),f.internalValue=Array.isArray(c)?c:[c];if(f.internalValue[0]){var m=a(f.internalValue,1),y=m[0];f.focusedDate=y}f.focusedTime=Object.assign(Object.assign({},f.focusedTime),{time:f.internalValue.map(z)}),k.value||(p(e.type),f.visible=n),"upToNow"===i&&"daterange"===e.type&&L(),f.shortcut=l,O(i);var v=e.shortcuts.findIndex((function(e){return e===f.shortcut}));o("shortcut-change",f.shortcut,v)},onPickSuccess:L})},render:function(){var e,t,n,a,r,i,o,c,u,s=this,f=(0,l.createVNode)("div",null,[(0,l.createVNode)("span",{class:["icon-wrapper",this.disabled?"disabled":""],onClick:this.handleIconClick,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave},["time"===this.type||"timerange"===this.type?(0,l.createVNode)("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[(0,l.createVNode)("g",{id:"time"},[(0,l.createVNode)("path",{fill:"#c4c6cc",d:"M512,128c51.9,0,102.2,10.1,149.5,30.2c45.7,19.3,86.8,47,122.1,82.3s63,76.4,82.3,122.1c20,47.3,30.2,97.6,30.2,149.5S886,614.3,865.9,661.6c-19.3,45.7-47,86.8-82.3,122.1s-76.4,63-122.1,82.3c-47.3,20-97.6,30.2-149.5,30.2S409.8,886.1,362.5,866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2,30.2-149.5c19.3-45.7,47-86.8,82.3-122.1s76.4-63,122.1-82.3C409.8,138.1,460.1,128,512,128 M512,64C264.6,64,64,264.6,64,512s200.6,448,448,448s448-200.6,448-448S759.4,64,512,64L512,64z"},null),(0,l.createVNode)("polygon",{fill:"#c4c6cc",points:"512,512 512,256 448,256 448,512 448,576 512,576 768,576 768,512"},null)])]):(0,l.createVNode)("svg",{class:"picker-icon",x:"0px",y:"0px",viewBox:"0 0 1024 1024"},[(0,l.createVNode)("g",{id:"date"},[(0,l.createVNode)("path",{fill:"#c4c6cc",d:"M896,128h-96v64h64v112H160V192h64v-64h-96c-17.7,0-32,14.3-32,32v736c0,17.7,14.3,32,32,32h768c17.7,0,32-14.3,32-32V160C928,142.3,913.7,128,896,128z M160,864V368h704v496H160z"},null),(0,l.createVNode)("rect",{x:"416",y:"128",fill:"#c4c6cc",width:"192",height:"64"},null),(0,l.createVNode)("rect",{x:"288",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),(0,l.createVNode)("rect",{x:"672",y:"96",fill:"#c4c6cc",width:"64",height:"128"},null),(0,l.createVNode)("polygon",{fill:"#c4c6cc",points:"403.7,514.4 557.1,514.4 557.1,515.3 420.1,765.5 483.5,765.5 620.3,504.3 620.3,466.5 403.7,466.5"},null)])])]),(0,l.createVNode)("input",{type:"text",class:["bk-date-picker-editor",this.readonly?"readonly":"",this.fontSizeCls,"simplicity"===this.behavior?"only-bottom-border":""],ref:"inputRef",key:this.forceInputRerender,readonly:this.localReadonly,disabled:this.disabled,placeholder:this.placeholder,value:this.displayValue,onFocus:this.handleFocus,onClick:this.handleFocus,onBlur:this.handleBlur,onMouseenter:this.handleInputMouseenter,onMouseleave:this.handleInputMouseleave,onKeydown:this.handleKeydown,onChange:this.handleInputChange},null),this.clearable&&this.showClose?(0,l.createVNode)("i",{class:"bk-icon icon-close-circle-shape clear-action",onClick:this.handleClear},null):""]),p=this.hasShortcuts?{shortcuts:function(){var e,t;return(null===(t=(e=s.$slots).shortcuts)||void 0===t?void 0:t.call(e))||null}}:{};return(0,l.withDirectives)((0,l.createVNode)("div",{class:["bk-date-picker","datetimerange"===this.type?"long":"",this.longWidthCls]},[(0,l.createVNode)("div",{ref:"triggerRef",class:"bk-date-picker-rel"},[null!==(n=null===(t=(e=this.$slots).trigger)||void 0===t?void 0:t.call(e))&&void 0!==n?n:f]),(0,l.createVNode)(l.Teleport,{to:"body",disabled:!this.appendToBody},{default:function(){return[(0,l.createVNode)(l.Transition,{name:"bk-fade-down-transition"},{default:function(){return[(0,l.withDirectives)((0,l.createVNode)(d,{class:[s.appendToBody?"bk-date-picker-transfer":""],ref:"pickerDropdownRef",triggerRef:s.triggerRef,placement:s.placement,extPopoverCls:s.extPopoverCls,appendToBody:s.appendToBody,onClick:s.handleTransferClick},{default:function(){return[s.hasHeader?(0,l.createVNode)("div",{class:["bk-date-picker-top-wrapper",s.headerSlotCls]},[null!==(i=null===(r=(a=s.$slots).header)||void 0===r?void 0:r.call(a))&&void 0!==i?i:null]):null,"DateRangePanel"===s.panel?(0,l.createVNode)(ne,{ref:"pickerPanelRef",type:s.type,confirm:s.isConfirm,shortcuts:s.shortcuts,modelValue:s.internalValue,selectionMode:s.selectionMode,startDate:s.startDate,disableDate:s.disableDate,focusedDate:s.focusedDate,onPick:s.onPick,"onPick-success":s.onPickSuccess},p):(0,l.createVNode)(ee,{ref:"pickerPanelRef",clearable:s.clearable,showTime:"datetime"===s.type||"datetimerange"===s.type,confirm:s.isConfirm,shortcuts:s.shortcuts,multiple:s.multiple,shortcutClose:s.shortcutClose,selectionMode:s.selectionMode,modelValue:s.internalValue,startDate:s.startDate,disableDate:s.disableDate,focusedDate:s.focusedDate,onPick:s.onPick,"onPick-clear":s.handleClear,"onPick-success":s.onPickSuccess},p),s.hasFooter?(0,l.createVNode)("div",{class:["bk-date-picker-footer-wrapper",s.footerSlotCls]},[null!==(u=null===(c=(o=s.$slots).footer)||void 0===c?void 0:c.call(o))&&void 0!==u?u:null]):null]}}),[[l.vShow,s.opened]])]}})]}})]),[[(0,l.resolveDirective)("clickoutside"),this.handleClose]])}}),ie=(0,e.withInstall)(re)})(),u})()));
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import type { ComputedPlacement } from '@popperjs/core';
|
2
|
+
import type { DatePickerProps } from './props';
|
3
|
+
export declare type DatePickerPlacementType = ComputedPlacement;
|
4
|
+
export declare type DatePickerTypeType = 'year' | 'month' | 'date' | 'daterange' | 'datetime' | 'datetimerange';
|
5
|
+
export declare type TimePickerTypeType = 'time' | 'timerange';
|
6
|
+
export declare type PickerTypeType = DatePickerTypeType | TimePickerTypeType;
|
7
|
+
export interface IDatePickerShortcut {
|
8
|
+
text: string;
|
9
|
+
value?: () => Date[];
|
10
|
+
onClick?: (picker: any) => void;
|
11
|
+
}
|
12
|
+
export declare type DatePickerShortcutsType = IDatePickerShortcut[];
|
13
|
+
declare type ValueType = Date | string | number;
|
14
|
+
export declare type DatePickerValueType = ValueType | [ValueType, ValueType];
|
15
|
+
export declare type DisableDateType = (date: number | Date) => boolean;
|
16
|
+
export interface IDatePickerCtx {
|
17
|
+
props: DatePickerProps;
|
18
|
+
focus: () => void;
|
19
|
+
}
|
20
|
+
export declare type DatePickerPanelType = 'DateRangePanel' | 'DatePanel' | 'RangeTimePickerPanel' | 'TimePickerPanel';
|
21
|
+
export declare type SelectionModeType = 'year' | 'month' | 'date' | 'time';
|
22
|
+
export {};
|
@@ -0,0 +1,118 @@
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
2
|
+
import { PropType } from 'vue';
|
3
|
+
import type { DatePickerShortcutsType, DatePickerValueType, DisableDateType, PickerTypeType } from './interface';
|
4
|
+
export declare const datePickerProps: {
|
5
|
+
readonly type: {
|
6
|
+
readonly type: PropType<PickerTypeType>;
|
7
|
+
readonly default: "date";
|
8
|
+
readonly validator: (value: any) => boolean;
|
9
|
+
};
|
10
|
+
readonly extPopoverCls: {
|
11
|
+
readonly type: StringConstructor;
|
12
|
+
readonly default: "";
|
13
|
+
};
|
14
|
+
readonly format: StringConstructor;
|
15
|
+
readonly readonly: {
|
16
|
+
readonly type: BooleanConstructor;
|
17
|
+
readonly default: false;
|
18
|
+
};
|
19
|
+
readonly disabled: {
|
20
|
+
readonly type: BooleanConstructor;
|
21
|
+
readonly default: false;
|
22
|
+
};
|
23
|
+
readonly editable: {
|
24
|
+
readonly type: BooleanConstructor;
|
25
|
+
readonly default: true;
|
26
|
+
};
|
27
|
+
readonly clearable: {
|
28
|
+
readonly type: BooleanConstructor;
|
29
|
+
readonly default: true;
|
30
|
+
};
|
31
|
+
readonly open: {
|
32
|
+
readonly type: BooleanConstructor;
|
33
|
+
readonly default: any;
|
34
|
+
};
|
35
|
+
readonly multiple: {
|
36
|
+
readonly type: BooleanConstructor;
|
37
|
+
readonly default: false;
|
38
|
+
};
|
39
|
+
readonly timePickerOptions: {
|
40
|
+
readonly type: PropType<Record<string, any>>;
|
41
|
+
readonly default: () => {};
|
42
|
+
};
|
43
|
+
readonly splitPanels: {
|
44
|
+
readonly type: BooleanConstructor;
|
45
|
+
readonly default: true;
|
46
|
+
};
|
47
|
+
readonly startDate: DateConstructor;
|
48
|
+
readonly placeholder: {
|
49
|
+
readonly type: StringConstructor;
|
50
|
+
readonly default: "";
|
51
|
+
};
|
52
|
+
readonly placement: {
|
53
|
+
readonly type: PropType<import("@popperjs/core").ComputedPlacement>;
|
54
|
+
readonly default: "bottom-start";
|
55
|
+
readonly validator: (value: any) => boolean;
|
56
|
+
};
|
57
|
+
readonly transfer: {
|
58
|
+
readonly type: BooleanConstructor;
|
59
|
+
readonly default: false;
|
60
|
+
};
|
61
|
+
readonly appendToBody: {
|
62
|
+
readonly type: BooleanConstructor;
|
63
|
+
readonly default: false;
|
64
|
+
};
|
65
|
+
readonly shortcuts: {
|
66
|
+
readonly type: PropType<DatePickerShortcutsType>;
|
67
|
+
readonly default: () => any[];
|
68
|
+
};
|
69
|
+
readonly shortcutClose: {
|
70
|
+
readonly type: BooleanConstructor;
|
71
|
+
readonly default: false;
|
72
|
+
};
|
73
|
+
readonly modelValue: {
|
74
|
+
readonly type: PropType<DatePickerValueType>;
|
75
|
+
};
|
76
|
+
readonly value: {
|
77
|
+
readonly type: PropType<DatePickerValueType>;
|
78
|
+
};
|
79
|
+
readonly options: {
|
80
|
+
readonly type: ObjectConstructor;
|
81
|
+
readonly default: () => {};
|
82
|
+
};
|
83
|
+
readonly fontSize: {
|
84
|
+
readonly type: PropType<"large" | "normal" | "medium">;
|
85
|
+
readonly default: "normal";
|
86
|
+
};
|
87
|
+
readonly upToNow: {
|
88
|
+
readonly type: BooleanConstructor;
|
89
|
+
readonly default: false;
|
90
|
+
};
|
91
|
+
readonly useShortcutText: {
|
92
|
+
readonly type: BooleanConstructor;
|
93
|
+
readonly default: false;
|
94
|
+
};
|
95
|
+
readonly shortcutSelectedIndex: {
|
96
|
+
readonly type: NumberConstructor;
|
97
|
+
readonly default: -1;
|
98
|
+
};
|
99
|
+
readonly headerSlotCls: {
|
100
|
+
readonly type: StringConstructor;
|
101
|
+
readonly default: "";
|
102
|
+
};
|
103
|
+
readonly footerSlotCls: {
|
104
|
+
readonly type: StringConstructor;
|
105
|
+
readonly default: "";
|
106
|
+
};
|
107
|
+
readonly allowCrossDay: {
|
108
|
+
readonly type: BooleanConstructor;
|
109
|
+
readonly default: false;
|
110
|
+
};
|
111
|
+
readonly behavior: {
|
112
|
+
readonly type: PropType<"normal" | "simplicity">;
|
113
|
+
readonly default: "normal";
|
114
|
+
readonly validator: (v: any) => boolean;
|
115
|
+
};
|
116
|
+
readonly disableDate: PropType<DisableDateType>;
|
117
|
+
};
|
118
|
+
export declare type DatePickerProps = Readonly<ExtractPropTypes<typeof datePickerProps>>;
|
@@ -0,0 +1,97 @@
|
|
1
|
+
import type { InjectionKey } from 'vue';
|
2
|
+
import type { IDatePickerCtx, PickerTypeType } from './interface';
|
3
|
+
export declare const RANGE_SEPARATOR = " - ";
|
4
|
+
export declare const typeValueResolver: {
|
5
|
+
default: {
|
6
|
+
formatter(value: any): string;
|
7
|
+
parser(text: any): any;
|
8
|
+
};
|
9
|
+
date: {
|
10
|
+
formatter: (value: any, format: any) => string;
|
11
|
+
parser: (text: any, format: any) => any;
|
12
|
+
};
|
13
|
+
datetime: {
|
14
|
+
formatter: (value: any, format: any) => string;
|
15
|
+
parser: (text: any, format: any) => any;
|
16
|
+
};
|
17
|
+
daterange: {
|
18
|
+
formatter: (value: any, format: any) => string;
|
19
|
+
parser: (text: any, format: any) => any[];
|
20
|
+
};
|
21
|
+
datetimerange: {
|
22
|
+
formatter: (value: any, format: any) => string;
|
23
|
+
parser: (text: any, format: any) => any[];
|
24
|
+
};
|
25
|
+
timerange: {
|
26
|
+
formatter: (value: any, format: any) => string;
|
27
|
+
parser: (text: any, format: any) => any[];
|
28
|
+
};
|
29
|
+
time: {
|
30
|
+
formatter: (value: any, format: any) => string;
|
31
|
+
parser: (text: any, format: any) => any;
|
32
|
+
};
|
33
|
+
month: {
|
34
|
+
formatter: (value: any, format: any) => string;
|
35
|
+
parser: (text: any, format: any) => any;
|
36
|
+
};
|
37
|
+
year: {
|
38
|
+
formatter: (value: any, format: any) => string;
|
39
|
+
parser: (text: any, format: any) => any;
|
40
|
+
};
|
41
|
+
multiple: {
|
42
|
+
formatter(value: any, format: any): any;
|
43
|
+
parser(v: any, format: any): any;
|
44
|
+
};
|
45
|
+
number: {
|
46
|
+
formatter(value: any): string;
|
47
|
+
parser(text: any): number;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
/**
|
51
|
+
* 设置时间,当天的零点时间
|
52
|
+
*
|
53
|
+
* @return {Date} date 对象
|
54
|
+
*/
|
55
|
+
export declare const initTime: () => Date;
|
56
|
+
/**
|
57
|
+
* 判断数组中的每个值是否为空
|
58
|
+
* 0, '', null, undefined 均判断为空
|
59
|
+
*
|
60
|
+
* @param {Array} arr 待判断的数组
|
61
|
+
*
|
62
|
+
* @return {boolean} 判断结果
|
63
|
+
*/
|
64
|
+
export declare const isAllEmptyArr: (arr: any[]) => boolean;
|
65
|
+
export declare const keyValueMapper: {
|
66
|
+
40: string;
|
67
|
+
39: string;
|
68
|
+
38: string;
|
69
|
+
37: string;
|
70
|
+
};
|
71
|
+
export declare const mapPossibleValues: (key: string, horizontal: number, vertical: number) => number;
|
72
|
+
export declare const extractTime: (date: Date) => number[];
|
73
|
+
export declare const DEFAULT_FORMATS: Record<PickerTypeType, string>;
|
74
|
+
export declare const parseDate: (val: any, type: any, multiple: any, format: any) => any;
|
75
|
+
export declare const formatDate: (val: any, type: any, multiple: any, format: any) => any;
|
76
|
+
export declare const datePickerKey: InjectionKey<IDatePickerCtx>;
|
77
|
+
/**
|
78
|
+
* 寻找子组件
|
79
|
+
*
|
80
|
+
* @param {Object} context 上下文
|
81
|
+
* @param {string} componentName 要找的组件类型名称
|
82
|
+
*
|
83
|
+
* @return {Array} 组件集合
|
84
|
+
*/
|
85
|
+
export declare function findChildComponents(context: any, componentName: any): any;
|
86
|
+
export declare function iconBtnCls(direction: any, type?: string): string[];
|
87
|
+
export declare const getDayCountOfMonth: (year: any, month: any) => number;
|
88
|
+
export declare const siblingMonth: (src: any, diff: any) => Date;
|
89
|
+
export declare const formatDateLabels: (locale: any, format: any, date: any) => {
|
90
|
+
separator: any;
|
91
|
+
labels: {
|
92
|
+
label: any;
|
93
|
+
type: string;
|
94
|
+
}[];
|
95
|
+
};
|
96
|
+
export declare const clearHours: (time: any) => number;
|
97
|
+
export declare const isInRange: (time: any, a: any, b: any) => boolean;
|
package/lib/dialog/dialog.css
CHANGED
@@ -1,3 +1,43 @@
|
|
1
|
+
.bk-modal-wrapper {
|
2
|
+
position: absolute;
|
3
|
+
top: 50%;
|
4
|
+
left: 50%;
|
5
|
+
transform: translate(-50%, -50%);
|
6
|
+
}
|
7
|
+
.bk-modal-wrapper .bk-modal-outside {
|
8
|
+
position: fixed;
|
9
|
+
top: 0;
|
10
|
+
right: 0;
|
11
|
+
bottom: 0;
|
12
|
+
left: 0;
|
13
|
+
}
|
14
|
+
.bk-modal-wrapper.bk-model-fullscreen {
|
15
|
+
width: 100%;
|
16
|
+
height: 100%;
|
17
|
+
background: #fff;
|
18
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
19
|
+
}
|
20
|
+
.bk-modal-wrapper.normal {
|
21
|
+
width: 480px;
|
22
|
+
height: 240px;
|
23
|
+
}
|
24
|
+
.bk-modal-wrapper.small {
|
25
|
+
width: 400px;
|
26
|
+
height: 200px;
|
27
|
+
}
|
28
|
+
.bk-modal-wrapper.medium {
|
29
|
+
width: 640px;
|
30
|
+
height: 400px;
|
31
|
+
}
|
32
|
+
.bk-modal-wrapper.large {
|
33
|
+
width: 960px;
|
34
|
+
height: 720px;
|
35
|
+
}
|
36
|
+
.bk-modal-wrapper .bk-modal-body {
|
37
|
+
height: 100%;
|
38
|
+
background: #fff;
|
39
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
40
|
+
}
|
1
41
|
.bk-modal-wrapper.bk-dialog-wrapper {
|
2
42
|
position: relative;
|
3
43
|
}
|
@@ -8,6 +48,9 @@
|
|
8
48
|
.bk-modal-wrapper.bk-dialog-wrapper.scroll-able .bk-modal-content {
|
9
49
|
overflow: auto;
|
10
50
|
}
|
51
|
+
.bk-modal-wrapper.bk-dialog-wrapper.multi-instance {
|
52
|
+
position: absolute;
|
53
|
+
}
|
11
54
|
.bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-tool {
|
12
55
|
position: absolute;
|
13
56
|
top: 0;
|
@@ -33,6 +76,15 @@
|
|
33
76
|
justify-content: center;
|
34
77
|
align-items: center;
|
35
78
|
}
|
79
|
+
.bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-tool .close-icon {
|
80
|
+
display: none;
|
81
|
+
}
|
82
|
+
.bk-modal-wrapper.bk-dialog-wrapper .move {
|
83
|
+
cursor: move;
|
84
|
+
}
|
85
|
+
.bk-modal-wrapper.bk-dialog-wrapper .content-dragging {
|
86
|
+
user-select: none;
|
87
|
+
}
|
36
88
|
.bk-modal-wrapper.bk-dialog-wrapper .bk-dialog-header {
|
37
89
|
padding: 24px;
|
38
90
|
font-size: 20px;
|