bkui-vue 0.0.1-beta.2 → 0.0.1-beta.20
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 +25 -17
- package/README_EN.md +89 -0
- package/dist/bkui-vue.cjs.js +9736 -1174
- package/dist/bkui-vue.esm.js +9873 -1358
- package/dist/bkui-vue.umd.js +9736 -1174
- package/dist/style.css +3189 -166
- package/lib/alert/alert.d.ts +24 -15
- package/lib/alert/alert.variable.css +32 -0
- package/lib/alert/index.d.ts +180 -3
- 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 -2
- package/lib/animate-number/index.js +1 -1
- package/lib/backtop/backtop.d.ts +27 -13
- package/lib/backtop/backtop.variable.css +32 -0
- package/lib/backtop/index.d.ts +166 -2
- package/lib/backtop/index.js +1 -1
- package/lib/badge/badge.d.ts +40 -19
- package/lib/badge/badge.variable.css +32 -0
- package/lib/badge/index.d.ts +217 -2
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +13 -9
- package/lib/breadcrumb/breadcrumb.css +10 -1
- package/lib/breadcrumb/breadcrumb.d.ts +37 -9
- package/lib/breadcrumb/breadcrumb.less +13 -2
- package/lib/breadcrumb/breadcrumb.variable.css +42 -1
- package/lib/breadcrumb/index.d.ts +144 -43
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/button-group.d.ts +3 -5
- package/lib/button/button.d.ts +35 -30
- package/lib/button/button.less +6 -6
- package/lib/button/button.variable.css +32 -0
- package/lib/button/index.d.ts +187 -3
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +30 -15
- package/lib/card/card.variable.css +32 -0
- package/lib/card/index.d.ts +187 -2
- package/lib/card/index.js +1 -1
- package/lib/checkbox/checkbox-group.d.ts +13 -9
- package/lib/checkbox/checkbox.d.ts +31 -22
- package/lib/checkbox/checkbox.variable.css +32 -0
- package/lib/checkbox/index.d.ts +261 -2
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +6 -5
- package/lib/collapse/collapse.css +8 -0
- package/lib/collapse/collapse.d.ts +50 -18
- package/lib/collapse/collapse.less +10 -0
- package/lib/collapse/collapse.variable.css +8 -0
- package/lib/collapse/index.d.ts +166 -2
- package/lib/collapse/index.js +1 -1
- package/lib/components.d.ts +37 -0
- package/lib/date-picker/date-picker.css +407 -0
- package/lib/date-picker/date-picker.d.ts +404 -0
- package/lib/date-picker/date-picker.less +526 -0
- package/lib/date-picker/date-picker.variable.css +500 -0
- package/lib/date-picker/fecha.d.ts +6 -0
- package/lib/date-picker/index.d.ts +713 -0
- package/lib/date-picker/index.js +1 -0
- package/lib/date-picker/interface.d.ts +22 -0
- package/lib/date-picker/utils.d.ts +97 -0
- package/lib/dialog/dialog.d.ts +57 -27
- package/lib/dialog/index.d.ts +286 -2
- package/lib/dialog/index.js +1 -1
- package/lib/directives/clickoutside.d.ts +23 -0
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/index.js +14 -14
- package/lib/directives/tooltips.d.ts +17 -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 +131 -0
- package/lib/divider/index.d.ts +142 -0
- package/lib/divider/index.js +1 -0
- package/lib/dropdown/dropdown-item.d.ts +19 -0
- package/lib/dropdown/dropdown-menu.d.ts +16 -0
- package/lib/dropdown/dropdown.css +43 -0
- package/lib/dropdown/dropdown.d.ts +61 -0
- package/lib/dropdown/dropdown.less +54 -0
- package/lib/dropdown/dropdown.variable.css +136 -0
- package/lib/dropdown/index.d.ts +192 -0
- package/lib/dropdown/index.js +1 -0
- package/lib/exception/exception.d.ts +11 -9
- package/lib/exception/exception.variable.css +32 -0
- package/lib/exception/index.d.ts +95 -1
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/fixed-navbar.d.ts +15 -9
- package/lib/fixed-navbar/fixed-navbar.variable.css +32 -0
- package/lib/fixed-navbar/index.d.ts +112 -2
- package/lib/fixed-navbar/index.js +1 -1
- package/lib/form/common.d.ts +3 -0
- package/lib/form/form-item.d.ts +159 -0
- package/lib/form/form.css +39 -0
- package/lib/form/form.d.ts +84 -0
- package/lib/form/form.less +50 -0
- package/lib/form/form.variable.css +39 -0
- package/lib/form/index.d.ts +286 -0
- package/lib/form/index.js +1 -0
- package/lib/form/type.d.ts +21 -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 +15 -0
- package/lib/icon/angle-double-left-line.d.ts +4 -0
- package/lib/icon/angle-double-left-line.js +15 -0
- package/lib/icon/angle-double-left.d.ts +4 -0
- package/lib/icon/angle-double-left.js +15 -0
- package/lib/icon/angle-double-right-line.d.ts +4 -0
- package/lib/icon/angle-double-right-line.js +15 -0
- package/lib/icon/angle-double-right.d.ts +4 -0
- package/lib/icon/angle-double-right.js +15 -0
- package/lib/icon/angle-double-up-line.d.ts +4 -0
- package/lib/icon/angle-double-up-line.js +15 -0
- package/lib/icon/angle-down-fill.d.ts +4 -0
- package/lib/icon/angle-down-fill.js +15 -0
- package/lib/icon/angle-down-line.d.ts +4 -0
- package/lib/icon/angle-down-line.js +15 -0
- package/lib/icon/angle-down.d.ts +4 -0
- package/lib/icon/angle-down.js +15 -0
- package/lib/icon/angle-left.d.ts +4 -0
- package/lib/icon/angle-left.js +15 -0
- package/lib/icon/angle-right.d.ts +4 -0
- package/lib/icon/angle-right.js +15 -0
- package/lib/icon/angle-up-fill.d.ts +4 -0
- package/lib/icon/angle-up-fill.js +15 -0
- package/lib/icon/angle-up.d.ts +4 -0
- package/lib/icon/angle-up.js +15 -0
- package/lib/icon/arrows-left.d.ts +4 -0
- package/lib/icon/arrows-left.js +15 -0
- package/lib/icon/arrows-right.d.ts +4 -0
- package/lib/icon/arrows-right.js +15 -0
- package/lib/icon/bk.d.ts +4 -0
- package/lib/icon/bk.js +15 -0
- package/lib/icon/circle.d.ts +4 -0
- package/lib/icon/circle.js +15 -0
- package/lib/icon/close.d.ts +4 -0
- package/lib/icon/close.js +15 -0
- package/lib/icon/code.d.ts +4 -0
- package/lib/icon/code.js +15 -0
- package/lib/icon/cog-shape.d.ts +4 -0
- package/lib/icon/cog-shape.js +15 -0
- package/lib/icon/collapse-left.d.ts +4 -0
- package/lib/icon/collapse-left.js +15 -0
- package/lib/icon/copy.d.ts +4 -0
- package/lib/icon/copy.js +15 -0
- package/lib/icon/done.d.ts +4 -0
- package/lib/icon/done.js +15 -0
- package/lib/icon/down-shape.d.ts +4 -0
- package/lib/icon/down-shape.js +15 -0
- package/lib/icon/down-small.d.ts +4 -0
- package/lib/icon/down-small.js +15 -0
- package/lib/icon/ellipsis.d.ts +4 -0
- package/lib/icon/ellipsis.js +15 -0
- package/lib/icon/error.d.ts +4 -0
- package/lib/icon/error.js +15 -0
- package/lib/icon/eye.d.ts +4 -0
- package/lib/icon/eye.js +15 -0
- package/lib/icon/folder-open.d.ts +4 -0
- package/lib/icon/folder-open.js +15 -0
- package/lib/icon/folder-shape-open.d.ts +4 -0
- package/lib/icon/folder-shape-open.js +15 -0
- package/lib/icon/folder-shape.d.ts +4 -0
- package/lib/icon/folder-shape.js +15 -0
- package/lib/icon/folder.d.ts +4 -0
- package/lib/icon/folder.js +15 -0
- package/lib/icon/help-document-fill.d.ts +4 -0
- package/lib/icon/help-document-fill.js +15 -0
- package/lib/icon/help-fill.d.ts +4 -0
- package/lib/icon/help-fill.js +15 -0
- package/lib/icon/help.d.ts +4 -0
- package/lib/icon/help.js +15 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/icon.js +15 -0
- package/lib/icon/index.d.ts +42 -0
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.d.ts +4 -0
- package/lib/icon/info-line.js +15 -0
- package/lib/icon/info.d.ts +4 -0
- package/lib/icon/info.js +15 -0
- package/lib/icon/left-shape.d.ts +4 -0
- package/lib/icon/left-shape.js +15 -0
- package/lib/icon/play-shape.d.ts +4 -0
- package/lib/icon/play-shape.js +15 -0
- package/lib/icon/plus.d.ts +4 -0
- package/lib/icon/plus.js +15 -0
- package/lib/icon/qq.d.ts +4 -0
- package/lib/icon/qq.js +15 -0
- package/lib/icon/right-shape.d.ts +4 -0
- package/lib/icon/right-shape.js +15 -0
- package/lib/icon/search.d.ts +4 -0
- package/lib/icon/search.js +15 -0
- package/lib/icon/share.d.ts +4 -0
- package/lib/icon/share.js +15 -0
- package/lib/icon/spinner.d.ts +4 -0
- package/lib/icon/spinner.js +15 -0
- package/lib/icon/success.d.ts +4 -0
- package/lib/icon/success.js +15 -0
- package/lib/icon/switcher-loading.d.ts +4 -0
- package/lib/icon/switcher-loading.js +15 -0
- package/lib/icon/text-file.d.ts +4 -0
- package/lib/icon/text-file.js +15 -0
- package/lib/icon/tree-application-shape.d.ts +4 -0
- package/lib/icon/tree-application-shape.js +15 -0
- package/lib/icon/unvisible.d.ts +4 -0
- package/lib/icon/unvisible.js +15 -0
- package/lib/icon/up-shape.d.ts +4 -0
- package/lib/icon/up-shape.js +15 -0
- package/lib/icon/warn.d.ts +4 -0
- package/lib/icon/warn.js +15 -0
- package/lib/icon/weixin.d.ts +4 -0
- package/lib/icon/weixin.js +15 -0
- package/lib/index.d.ts +4 -0
- package/lib/input/index.d.ts +363 -2
- package/lib/input/index.js +2 -2
- package/lib/input/input.css +1 -0
- package/lib/input/input.d.ts +68 -46
- package/lib/input/input.less +4 -3
- package/lib/input/input.variable.css +33 -0
- package/lib/link/index.d.ts +164 -2
- package/lib/link/index.js +1 -1
- package/lib/link/link.d.ts +25 -13
- package/lib/link/link.variable.css +32 -0
- package/lib/loading/index.d.ts +124 -2
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.d.ts +26 -15
- package/lib/loading/loading.variable.css +32 -0
- package/lib/menu/index.d.ts +188 -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 +182 -0
- package/lib/menu/menu.d.ts +64 -0
- package/lib/menu/menu.less +180 -0
- package/lib/menu/menu.variable.css +275 -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 +96 -0
- package/lib/menu/utils.d.ts +41 -0
- package/lib/message/index.d.ts +2 -0
- package/lib/message/index.js +1 -0
- package/lib/message/message.css +53 -0
- package/lib/message/message.less +61 -0
- package/lib/message/message.variable.css +146 -0
- package/lib/message/messageConstructor.d.ts +73 -0
- package/lib/modal/index.d.ts +214 -3
- package/lib/modal/index.js +1 -1
- package/lib/modal/modal.d.ts +33 -15
- package/lib/modal/props.mixin.d.ts +5 -1
- package/lib/navigation/index.d.ts +2 -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 +277 -0
- package/lib/notify/index.d.ts +2 -0
- package/lib/notify/index.js +1 -0
- package/lib/notify/notify.css +49 -0
- package/lib/notify/notify.less +58 -0
- package/lib/notify/notify.variable.css +142 -0
- package/lib/notify/notifyConstructor.d.ts +91 -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 +272 -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 +287 -27
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +23 -14
- package/lib/popover/popover.d.ts +74 -45
- package/lib/popover/popover.less +57 -46
- package/lib/popover/popover.variable.css +55 -14
- package/lib/popover/props.d.ts +77 -0
- package/lib/preset.d.ts +7 -0
- package/lib/process/index.d.ts +205 -0
- package/lib/process/index.js +15 -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 +231 -0
- package/lib/progress/index.d.ts +398 -2
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.css +0 -3
- package/lib/progress/progress.d.ts +88 -35
- package/lib/progress/progress.less +0 -4
- package/lib/progress/progress.variable.css +32 -3
- package/lib/radio/index.d.ts +277 -2
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +24 -16
- package/lib/radio/radio-group.d.ts +11 -10
- package/lib/radio/radio.css +6 -0
- package/lib/radio/radio.d.ts +23 -13
- package/lib/radio/radio.less +7 -0
- package/lib/radio/radio.variable.css +38 -0
- package/lib/rate/index.d.ts +113 -2
- 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/select/common.d.ts +13 -3
- package/lib/select/index.d.ts +962 -2
- package/lib/select/index.js +15 -1
- package/lib/select/option.d.ts +12 -19
- package/lib/select/optionGroup.d.ts +130 -0
- package/lib/select/select.css +130 -14
- package/lib/select/select.d.ts +152 -150
- package/lib/select/select.less +164 -26
- package/lib/select/select.variable.css +162 -14
- package/lib/shared/bk-helper-core.d.ts +6 -0
- package/lib/shared/bk-mask-manager.d.ts +32 -3
- package/lib/shared/bk-pop-manager.d.ts +8 -1
- package/lib/shared/bk-popover.d.ts +56 -5
- package/lib/shared/index.d.ts +24 -0
- package/lib/shared/index.js +1 -1
- package/lib/shared/utils.d.ts +6 -0
- package/lib/shared/vue-types.d.ts +3 -6
- package/lib/shared/z-index-manager.d.ts +6 -1
- package/lib/sideslider/index.d.ts +206 -2
- package/lib/sideslider/index.js +1 -1
- package/lib/sideslider/sideslider.d.ts +39 -18
- package/lib/sideslider/sideslider.variable.css +32 -0
- package/{index.d.ts → lib/slider/index.d.ts} +4 -5
- package/lib/slider/index.js +15 -0
- package/{commitlint.config.js → lib/slider/slider-button.d.ts} +50 -42
- package/lib/slider/slider.css +149 -0
- package/lib/slider/slider.d.ts +189 -0
- package/lib/slider/slider.less +179 -0
- package/lib/slider/slider.variable.css +242 -0
- package/lib/steps/index.d.ts +250 -0
- package/lib/steps/index.js +15 -0
- package/lib/steps/steps.css +288 -0
- package/lib/steps/steps.d.ts +161 -0
- package/lib/steps/steps.less +324 -0
- package/lib/steps/steps.variable.css +381 -0
- package/lib/styles/index.d.ts +43 -25
- package/lib/styles/index.js +1 -1
- 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 +52 -2
- package/lib/switcher/index.d.ts +286 -2
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.css +149 -135
- package/lib/switcher/switcher.d.ts +48 -32
- package/lib/switcher/switcher.less +210 -154
- package/lib/switcher/switcher.variable.css +181 -135
- package/lib/tab/index.d.ts +552 -0
- package/lib/tab/index.js +1 -0
- package/lib/tab/tab-nav.d.ts +190 -0
- package/lib/tab/tab-panel.d.ts +48 -0
- package/lib/tab/tab.css +147 -0
- package/lib/tab/tab.d.ts +163 -0
- package/lib/tab/tab.less +221 -0
- package/lib/tab/tab.variable.css +240 -0
- package/lib/table/const.d.ts +4 -0
- package/lib/table/index.d.ts +259 -2
- package/lib/table/index.js +1 -1
- package/lib/table/props.d.ts +110 -0
- package/lib/table/render.d.ts +72 -0
- package/lib/table/table.css +83 -0
- package/lib/table/table.d.ts +75 -38
- package/lib/table/table.less +107 -1
- package/lib/table/table.variable.css +115 -0
- package/lib/table/utils.d.ts +69 -0
- package/lib/tag/index.d.ts +229 -2
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.css +91 -0
- package/lib/tag/tag.d.ts +83 -53
- package/lib/tag/tag.less +103 -2
- package/lib/tag/tag.variable.css +123 -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 +328 -0
- package/{changelog.config.js → lib/transfer/index.d.ts} +2 -8
- package/lib/transfer/index.js +1 -0
- package/lib/transfer/transfer.css +158 -0
- package/lib/transfer/transfer.d.ts +185 -0
- package/lib/transfer/transfer.less +171 -0
- package/lib/transfer/transfer.variable.css +251 -0
- package/lib/tree/index.d.ts +254 -0
- package/lib/tree/index.js +1 -0
- package/lib/tree/props.d.ts +80 -0
- package/lib/tree/tree.css +44 -0
- package/lib/tree/tree.d.ts +98 -0
- package/lib/tree/tree.less +55 -0
- package/lib/tree/tree.variable.css +44 -0
- package/lib/tree/util.d.ts +57 -0
- package/lib/use-form.d.ts +3 -0
- package/lib/use-message.d.ts +2 -0
- package/lib/virtual-render/index.d.ts +556 -0
- package/lib/virtual-render/index.js +1 -0
- package/lib/virtual-render/props.d.ts +157 -0
- package/lib/virtual-render/v-virtual-render.d.ts +7 -0
- package/lib/virtual-render/virtual-render.css +40 -0
- package/lib/virtual-render/virtual-render.d.ts +244 -0
- package/lib/virtual-render/virtual-render.less +51 -0
- package/lib/virtual-render/virtual-render.variable.css +40 -0
- package/package.json +63 -48
- package/index.html +0 -40
- package/lib/checkbox-group/index.d.ts +0 -2
- package/lib/checkbox-group/index.js +0 -1
- package/lib/radio-button/index.d.ts +0 -2
- package/lib/radio-button/index.js +0 -1
- package/lib/radio-group/index.d.ts +0 -2
- package/lib/radio-group/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
package/lib/dialog/index.d.ts
CHANGED
@@ -1,2 +1,286 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
declare const BkDialog: {
|
2
|
+
new (...args: any[]): {
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
4
|
+
$data: {};
|
5
|
+
$props: Partial<{
|
6
|
+
title: string;
|
7
|
+
showMask: boolean;
|
8
|
+
width: string | number;
|
9
|
+
height: string | number;
|
10
|
+
isShow: boolean;
|
11
|
+
customClass: string | unknown[];
|
12
|
+
scrollable: boolean;
|
13
|
+
confirmText: string;
|
14
|
+
cancelText: string;
|
15
|
+
headerAlign: string;
|
16
|
+
footerAlign: string;
|
17
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
18
|
+
confirmText: {
|
19
|
+
type: StringConstructor;
|
20
|
+
default: string;
|
21
|
+
};
|
22
|
+
cancelText: {
|
23
|
+
type: StringConstructor;
|
24
|
+
default: string;
|
25
|
+
};
|
26
|
+
title: {
|
27
|
+
type: StringConstructor;
|
28
|
+
default: string;
|
29
|
+
};
|
30
|
+
headerAlign: {
|
31
|
+
type: StringConstructor;
|
32
|
+
default: string;
|
33
|
+
validator: (value: string) => boolean;
|
34
|
+
};
|
35
|
+
footerAlign: {
|
36
|
+
type: StringConstructor;
|
37
|
+
default: string;
|
38
|
+
validator: (value: string) => boolean;
|
39
|
+
};
|
40
|
+
isShow: {
|
41
|
+
type: BooleanConstructor;
|
42
|
+
default: boolean;
|
43
|
+
};
|
44
|
+
width: {
|
45
|
+
type: (NumberConstructor | StringConstructor)[];
|
46
|
+
default: string;
|
47
|
+
};
|
48
|
+
height: {
|
49
|
+
type: (NumberConstructor | StringConstructor)[];
|
50
|
+
default: string;
|
51
|
+
};
|
52
|
+
customClass: {
|
53
|
+
type: (ArrayConstructor | StringConstructor)[];
|
54
|
+
default: string;
|
55
|
+
};
|
56
|
+
scrollable: {
|
57
|
+
type: BooleanConstructor;
|
58
|
+
default: boolean;
|
59
|
+
};
|
60
|
+
showMask: {
|
61
|
+
type: BooleanConstructor;
|
62
|
+
default: boolean;
|
63
|
+
};
|
64
|
+
}>> & {
|
65
|
+
onClosed?: (...args: any[]) => any;
|
66
|
+
"onUpdate:isShow"?: (...args: any[]) => any;
|
67
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "title" | "showMask" | "width" | "height" | "isShow" | "customClass" | "scrollable" | "confirmText" | "cancelText" | "headerAlign" | "footerAlign">;
|
68
|
+
$attrs: {
|
69
|
+
[x: string]: unknown;
|
70
|
+
};
|
71
|
+
$refs: {
|
72
|
+
[x: string]: unknown;
|
73
|
+
};
|
74
|
+
$slots: Readonly<{
|
75
|
+
[name: string]: import("vue").Slot;
|
76
|
+
}>;
|
77
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
78
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
79
|
+
$emit: (event: "closed" | "update:isShow", ...args: any[]) => void;
|
80
|
+
$el: any;
|
81
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
82
|
+
confirmText: {
|
83
|
+
type: StringConstructor;
|
84
|
+
default: string;
|
85
|
+
};
|
86
|
+
cancelText: {
|
87
|
+
type: StringConstructor;
|
88
|
+
default: string;
|
89
|
+
};
|
90
|
+
title: {
|
91
|
+
type: StringConstructor;
|
92
|
+
default: string;
|
93
|
+
};
|
94
|
+
headerAlign: {
|
95
|
+
type: StringConstructor;
|
96
|
+
default: string;
|
97
|
+
validator: (value: string) => boolean;
|
98
|
+
};
|
99
|
+
footerAlign: {
|
100
|
+
type: StringConstructor;
|
101
|
+
default: string;
|
102
|
+
validator: (value: string) => boolean;
|
103
|
+
};
|
104
|
+
isShow: {
|
105
|
+
type: BooleanConstructor;
|
106
|
+
default: boolean;
|
107
|
+
};
|
108
|
+
width: {
|
109
|
+
type: (NumberConstructor | StringConstructor)[];
|
110
|
+
default: string;
|
111
|
+
};
|
112
|
+
height: {
|
113
|
+
type: (NumberConstructor | StringConstructor)[];
|
114
|
+
default: string;
|
115
|
+
};
|
116
|
+
customClass: {
|
117
|
+
type: (ArrayConstructor | StringConstructor)[];
|
118
|
+
default: string;
|
119
|
+
};
|
120
|
+
scrollable: {
|
121
|
+
type: BooleanConstructor;
|
122
|
+
default: boolean;
|
123
|
+
};
|
124
|
+
showMask: {
|
125
|
+
type: BooleanConstructor;
|
126
|
+
default: boolean;
|
127
|
+
};
|
128
|
+
}>> & {
|
129
|
+
onClosed?: (...args: any[]) => any;
|
130
|
+
"onUpdate:isShow"?: (...args: any[]) => any;
|
131
|
+
}, unknown, unknown, {}, {
|
132
|
+
handleClose(): void;
|
133
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], string, {
|
134
|
+
title: string;
|
135
|
+
showMask: boolean;
|
136
|
+
width: string | number;
|
137
|
+
height: string | number;
|
138
|
+
isShow: boolean;
|
139
|
+
customClass: string | unknown[];
|
140
|
+
scrollable: boolean;
|
141
|
+
confirmText: string;
|
142
|
+
cancelText: string;
|
143
|
+
headerAlign: string;
|
144
|
+
footerAlign: string;
|
145
|
+
}> & {
|
146
|
+
beforeCreate?: (() => void) | (() => void)[];
|
147
|
+
created?: (() => void) | (() => void)[];
|
148
|
+
beforeMount?: (() => void) | (() => void)[];
|
149
|
+
mounted?: (() => void) | (() => void)[];
|
150
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
151
|
+
updated?: (() => void) | (() => void)[];
|
152
|
+
activated?: (() => void) | (() => void)[];
|
153
|
+
deactivated?: (() => void) | (() => void)[];
|
154
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
155
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
156
|
+
destroyed?: (() => void) | (() => void)[];
|
157
|
+
unmounted?: (() => void) | (() => void)[];
|
158
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
159
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
160
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
161
|
+
};
|
162
|
+
$forceUpdate: () => void;
|
163
|
+
$nextTick: typeof import("vue").nextTick;
|
164
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
165
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
166
|
+
confirmText: {
|
167
|
+
type: StringConstructor;
|
168
|
+
default: string;
|
169
|
+
};
|
170
|
+
cancelText: {
|
171
|
+
type: StringConstructor;
|
172
|
+
default: string;
|
173
|
+
};
|
174
|
+
title: {
|
175
|
+
type: StringConstructor;
|
176
|
+
default: string;
|
177
|
+
};
|
178
|
+
headerAlign: {
|
179
|
+
type: StringConstructor;
|
180
|
+
default: string;
|
181
|
+
validator: (value: string) => boolean;
|
182
|
+
};
|
183
|
+
footerAlign: {
|
184
|
+
type: StringConstructor;
|
185
|
+
default: string;
|
186
|
+
validator: (value: string) => boolean;
|
187
|
+
};
|
188
|
+
isShow: {
|
189
|
+
type: BooleanConstructor;
|
190
|
+
default: boolean;
|
191
|
+
};
|
192
|
+
width: {
|
193
|
+
type: (NumberConstructor | StringConstructor)[];
|
194
|
+
default: string;
|
195
|
+
};
|
196
|
+
height: {
|
197
|
+
type: (NumberConstructor | StringConstructor)[];
|
198
|
+
default: string;
|
199
|
+
};
|
200
|
+
customClass: {
|
201
|
+
type: (ArrayConstructor | StringConstructor)[];
|
202
|
+
default: string;
|
203
|
+
};
|
204
|
+
scrollable: {
|
205
|
+
type: BooleanConstructor;
|
206
|
+
default: boolean;
|
207
|
+
};
|
208
|
+
showMask: {
|
209
|
+
type: BooleanConstructor;
|
210
|
+
default: boolean;
|
211
|
+
};
|
212
|
+
}>> & {
|
213
|
+
onClosed?: (...args: any[]) => any;
|
214
|
+
"onUpdate:isShow"?: (...args: any[]) => any;
|
215
|
+
} & import("vue").ShallowUnwrapRef<{}> & {} & {} & {
|
216
|
+
handleClose(): void;
|
217
|
+
} & import("vue").ComponentCustomProperties;
|
218
|
+
__isFragment?: never;
|
219
|
+
__isTeleport?: never;
|
220
|
+
__isSuspense?: never;
|
221
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
222
|
+
confirmText: {
|
223
|
+
type: StringConstructor;
|
224
|
+
default: string;
|
225
|
+
};
|
226
|
+
cancelText: {
|
227
|
+
type: StringConstructor;
|
228
|
+
default: string;
|
229
|
+
};
|
230
|
+
title: {
|
231
|
+
type: StringConstructor;
|
232
|
+
default: string;
|
233
|
+
};
|
234
|
+
headerAlign: {
|
235
|
+
type: StringConstructor;
|
236
|
+
default: string;
|
237
|
+
validator: (value: string) => boolean;
|
238
|
+
};
|
239
|
+
footerAlign: {
|
240
|
+
type: StringConstructor;
|
241
|
+
default: string;
|
242
|
+
validator: (value: string) => boolean;
|
243
|
+
};
|
244
|
+
isShow: {
|
245
|
+
type: BooleanConstructor;
|
246
|
+
default: boolean;
|
247
|
+
};
|
248
|
+
width: {
|
249
|
+
type: (NumberConstructor | StringConstructor)[];
|
250
|
+
default: string;
|
251
|
+
};
|
252
|
+
height: {
|
253
|
+
type: (NumberConstructor | StringConstructor)[];
|
254
|
+
default: string;
|
255
|
+
};
|
256
|
+
customClass: {
|
257
|
+
type: (ArrayConstructor | StringConstructor)[];
|
258
|
+
default: string;
|
259
|
+
};
|
260
|
+
scrollable: {
|
261
|
+
type: BooleanConstructor;
|
262
|
+
default: boolean;
|
263
|
+
};
|
264
|
+
showMask: {
|
265
|
+
type: BooleanConstructor;
|
266
|
+
default: boolean;
|
267
|
+
};
|
268
|
+
}>> & {
|
269
|
+
onClosed?: (...args: any[]) => any;
|
270
|
+
"onUpdate:isShow"?: (...args: any[]) => any;
|
271
|
+
}, unknown, unknown, {}, {
|
272
|
+
handleClose(): void;
|
273
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("closed" | "update:isShow")[], "closed" | "update:isShow", {
|
274
|
+
title: string;
|
275
|
+
showMask: boolean;
|
276
|
+
width: string | number;
|
277
|
+
height: string | number;
|
278
|
+
isShow: boolean;
|
279
|
+
customClass: string | unknown[];
|
280
|
+
scrollable: boolean;
|
281
|
+
confirmText: string;
|
282
|
+
cancelText: string;
|
283
|
+
headerAlign: string;
|
284
|
+
footerAlign: string;
|
285
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
286
|
+
export default BkDialog;
|
package/lib/dialog/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../modal"),require("../button")):"function"==typeof define&&define.amd?define(["exports","vue","../modal","../button"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Modal,e.Button)}(this,(function(e,t,o,n){"use strict";function
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue"),require("../modal"),require("../button"),require("../shared")):"function"==typeof define&&define.amd?define(["exports","vue","../modal","../button","../shared"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Vue,e.Modal,e.Button,e.Shared)}(this,(function(e,t,o,l,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(o),i=r(l);var d=t.defineComponent({name:"Dialog",components:{BkModal:a.default,BkButton:i.default},props:Object.assign(Object.assign({},o.propsMixin),{confirmText:{type:String,default:"确定"},cancelText:{type:String,default:"取消"},title:{type:String,default:"Title"},headerAlign:{type:String,default:"left",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0)||(console.error("headerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),!1)}},footerAlign:{type:String,default:"right",validator:function(e){var t=["left","center","right"];return!(t.indexOf(e)<0)||(console.error("footerAlign property is not valid: '".concat(e,"',【").concat(t.join(" | "),"】")),!1)}}}),emits:["closed","update:isShow"],methods:{handleClose:function(){this.$emit("update:isShow",!1),this.$emit("closed")}},render:function(){var e,o=this,l={header:function(){var e,l,n;return t.createVNode(t.Fragment,null,[t.createVNode("div",{class:"bk-dialog-tool"},[t.createVNode("span",{class:"bk-dialog-close",onClick:o.handleClose},[t.createTextVNode("+")])]),t.createVNode("div",{class:"bk-dialog-header"},[t.createVNode("span",{class:"bk-dialog-title",style:"text-align: ".concat(o.headerAlign)},[null!==(n=null===(l=(e=o.$slots).header)||void 0===l?void 0:l.call(e))&&void 0!==n?n:o.title])])])},default:function(){var e,t,l;return null!==(l=null===(t=(e=o.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==l?l:"default"},footer:function(){var e,l,n;return t.createVNode("div",{class:"bk-dialog-footer",style:"text-align: ".concat(o.footerAlign)},[null!==(n=null===(l=(e=o.$slots).footer)||void 0===l?void 0:l.call(e))&&void 0!==n?n:t.createVNode(t.Fragment,null,[t.createVNode(i.default,{onClick:o.handleClose,theme:"primary"},{default:function(){return[o.confirmText]}}),t.createVNode(i.default,{onClick:o.handleClose},{default:function(){return[o.cancelText]}})])])}},n="bk-dialog-wrapper ".concat(this.scrollable?"scroll-able":"");return t.createVNode(a.default,t.mergeProps(this.$props,{class:n}),"function"==typeof(e=l)||"[object Object]"===Object.prototype.toString.call(e)&&!t.isVNode(e)?l:{default:function(){return[l]}})}}),c=n.withInstall(d);e.default=c,Object.defineProperty(e,"__esModule",{value:!0})}));
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { ObjectDirective } from 'vue';
|
2
|
+
export interface IOption {
|
3
|
+
handler: Function;
|
4
|
+
capture: boolean;
|
5
|
+
disabled: boolean;
|
6
|
+
events: string[];
|
7
|
+
detectIframe: boolean;
|
8
|
+
exclude: Node[];
|
9
|
+
}
|
10
|
+
export interface IEventData {
|
11
|
+
el: HTMLElement;
|
12
|
+
event: Event;
|
13
|
+
handler: Function;
|
14
|
+
disabled: boolean;
|
15
|
+
}
|
16
|
+
export interface IEventConfig {
|
17
|
+
event: string;
|
18
|
+
target: HTMLElement | Window;
|
19
|
+
capture: boolean;
|
20
|
+
handler: (event: Event) => any;
|
21
|
+
}
|
22
|
+
declare const clickoutside: ObjectDirective;
|
23
|
+
export default clickoutside;
|
package/lib/directives/index.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
!function(e,
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("../shared"),require("../styles/mixins/popper.less")):"function"==typeof define&&define.amd?define(["exports","../shared","../styles/mixins/popper.less"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bkuiVue={},e.Shared)}(this,(function(e,t){"use strict";function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var r,o,i,a,s,c,f,u,p,l,d,m,h,v,b,g=!1;function y(){if(!g){g=!0;var e=navigator.userAgent,t=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(e),n=/(Mac OS X)|(Windows)|(Linux)/.exec(e);if(m=/\b(iPhone|iP[ao]d)/.exec(e),h=/\b(iP[ao]d)/.exec(e),l=/Android/i.exec(e),v=/FBAN\/\w+;/i.exec(e),b=/Mobile/i.exec(e),d=!!/Win64/.exec(e),t){(r=t[1]?parseFloat(t[1]):t[5]?parseFloat(t[5]):NaN)&&document&&document.documentMode&&(r=document.documentMode);var y=/(?:Trident\/(\d+.\d+))/.exec(e);c=y?parseFloat(y[1])+4:r,o=t[2]?parseFloat(t[2]):NaN,i=t[3]?parseFloat(t[3]):NaN,(a=t[4]?parseFloat(t[4]):NaN)?(t=/(?:Chrome\/(\d+\.\d+))/.exec(e),s=t&&t[1]?parseFloat(t[1]):NaN):s=NaN}else r=o=i=s=a=NaN;if(n){if(n[1]){var x=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(e);f=!x||parseFloat(x[1].replace("_","."))}else f=!1;u=!!n[2],p=!!n[3]}else f=u=p=!1}}var x,w={ie:function(){return y()||r},ieCompatibilityMode:function(){return y()||c>r},ie64:function(){return w.ie()&&d},firefox:function(){return y()||o},opera:function(){return y()||i},webkit:function(){return y()||a},safari:function(){return w.webkit()},chrome:function(){return y()||s},windows:function(){return y()||u},osx:function(){return y()||f},linux:function(){return y()||p},iphone:function(){return y()||m},mobile:function(){return y()||m||h||l||b},nativeApp:function(){return y()||v},android:function(){return y()||l},ipad:function(){return y()||h}},O=w,E=!("undefined"==typeof window||!window.document||!window.document.createElement),j={canUseDOM:E,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:E&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:E&&!!window.screen,isInWorker:!E};j.canUseDOM&&(x=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""))
|
2
2
|
/**
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
*/;var y=N,O=function(e,n){if(!F.canUseDOM||n&&!("addEventListener"in document))return!1;var t="on"+e,i=t in document;if(!i){var o=document.createElement("div");o.setAttribute(t,"return;"),i="function"==typeof o[t]}return!i&&h&&"wheel"===e&&(i=document.implementation.hasFeature("Events.wheel","3.0")),i};function D(e){var n=0,t=0,i=0,o=0;return"detail"in e&&(t=e.detail),"wheelDelta"in e&&(t=-e.wheelDelta/120),"wheelDeltaY"in e&&(t=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(n=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(n=t,t=0),i=10*n,o=10*t,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(i=e.deltaX),(i||o)&&e.deltaMode&&(1==e.deltaMode?(i*=40,o*=40):(i*=800,o*=800)),i&&!n&&(n=i<1?-1:1),o&&!t&&(t=o<1?-1:1),{spinX:n,spinY:t,pixelX:i,pixelY:o}}D.getEventType=function(){return y.firefox()?"DOMMouseScroll":O("wheel")?"wheel":"mousewheel"};var E=D,A="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,X={beforeMount:function(e,n){var t,i;console.error(e,n),t=e,i=n.value,(null==t?void 0:t.addEventListener)&&t.addEventListener(A?"DOMMouseScroll":"mousewheel",(function(e){var n=E(e);null==i||i.apply(this,[e,n])}))}};e.mousewheel=X,Object.defineProperty(e,"__esModule",{value:!0})}));
|
3
|
+
* Checks if an event is supported in the current execution environment.
|
4
|
+
*
|
5
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
6
|
+
* `reset`, `load`, `error`, and `select`.
|
7
|
+
*
|
8
|
+
* Borrows from Modernizr.
|
9
|
+
*
|
10
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
11
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
12
|
+
* @return {boolean} True if the event is supported.
|
13
|
+
* @internal
|
14
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
15
|
+
*/;var A=O,S=function(e,t){if(!j.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var o=document.createElement("div");o.setAttribute(n,"return;"),r="function"==typeof o[n]}return!r&&x&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r};function M(e){var t=0,n=0,r=0,o=0;return"detail"in e&&(n=e.detail),"wheelDelta"in e&&(n=-e.wheelDelta/120),"wheelDeltaY"in e&&(n=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=n,n=0),r=10*t,o=10*n,"deltaY"in e&&(o=e.deltaY),"deltaX"in e&&(r=e.deltaX),(r||o)&&e.deltaMode&&(1==e.deltaMode?(r*=40,o*=40):(r*=800,o*=800)),r&&!t&&(t=r<1?-1:1),o&&!n&&(n=o<1?-1:1),{spinX:t,spinY:n,pixelX:r,pixelY:o}}M.getEventType=function(){return A.firefox()?"DOMMouseScroll":S("wheel")?"wheel":"mousewheel"};var D=M,k="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>-1,N={beforeMount:function(e,t){var n,r;console.error(e,t),n=e,r=t.value,(null==n?void 0:n.addEventListener)&&n.addEventListener(k?"DOMMouseScroll":"mousewheel",(function(e){var t=D(e);null==r||r.apply(this,[e,t])}))}},P=new Map;function L(e){var t={handler:function(){},capture:!0,disabled:!1,detectIframe:!0,exclude:[],events:"ontouchstart"in window||(null===navigator||void 0===navigator?void 0:navigator.maxTouchPoints)>0?["ontouchstart"]:["click"]};return"function"==typeof e?(t.handler=e,t):Object.assign({},t)}function _(e,t){var n=t.events.map((function(n){return{event:n,target:document.documentElement,capture:t.capture,handler:function(n){return function(e){var t,n=e.el,r=e.event,o=e.handler,i=e.disabled,a=null===(t=r.composedPath)||void 0===t?void 0:t.call(r);(a?a.indexOf(n)<0:!n.contains(r.target))&&!i&&o(r)}({el:e,event:n,handler:t.handler,disabled:t.disabled})}}}));return t.detectIframe&&n.push({event:"blur",target:window,capture:t.capture,handler:function(n){return function(e){var t=document.activeElement,n=e.el,r=e.handler,o=e.disabled,i=e.event;!t||"IFRAME"!==t.tagName||n.contains(t)||o||r(i)}({el:e,event:n,handler:t.handler,disabled:t.disabled})}}),n}function T(e){var t;(null!==(t=P.get(e))&&void 0!==t?t:[]).forEach((function(e){var t=e.target,n=e.event,r=e.handler,o=e.capture;t.removeEventListener(n,r,o)})),P.delete(e)}var q={beforeMount:function(e,t){var n=L(t.value);n.disabled||P.set(e,_(e,n))},updated:function(e,t){var n=L(t.value);n.disabled&&!P.has(e)||function(e,t){P.has(e)&&T(e);var n=_(e,t);P.set(e,n),n.forEach((function(e){var t=e.target,n=e.event,r=e.handler,o=e.capture;t.addEventListener(n,r,o)}))}(e,n)},unmounted:function(e){T(e)}},I={exports:{}},W={exports:{}},V={exports:{}};!function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports}(V),function(e){var t=V.exports;e.exports=function(e){if(Array.isArray(e))return t(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(W);var C={exports:{}};!function(e){e.exports=function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(C);var H={exports:{}};!function(e){var t=V.exports;e.exports=function(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports}(H);var F={exports:{}};!function(e){e.exports=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.")},e.exports.__esModule=!0,e.exports.default=e.exports}(F),function(e){var t=W.exports,n=C.exports,r=H.exports,o=F.exports;e.exports=function(e){return t(e)||n(e)||r(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports}(I);var B=n(I.exports),R={exports:{}};!function(e){function t(n){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(R);var U=n(R.exports),X="top",Y="bottom",z="right",G="left",Z="auto",J=[X,Y,z,G],K="start",$="end",Q="viewport",ee="popper",te=J.reduce((function(e,t){return e.concat([t+"-"+K,t+"-"+$])}),[]),ne=[].concat(J,[Z]).reduce((function(e,t){return e.concat([t,t+"-"+K,t+"-"+$])}),[]),re=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function oe(e){return e?(e.nodeName||"").toLowerCase():null}function ie(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function ae(e){return e instanceof ie(e).Element||e instanceof Element}function se(e){return e instanceof ie(e).HTMLElement||e instanceof HTMLElement}function ce(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ie(e).ShadowRoot||e instanceof ShadowRoot)}var fe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];se(o)&&oe(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});se(r)&&oe(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function ue(e){return e.split("-")[0]}var pe=Math.max,le=Math.min,de=Math.round;function me(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;if(se(e)&&t){var i=e.offsetHeight,a=e.offsetWidth;a>0&&(r=de(n.width)/a||1),i>0&&(o=de(n.height)/i||1)}return{width:n.width/r,height:n.height/o,top:n.top/o,right:n.right/r,bottom:n.bottom/o,left:n.left/r,x:n.left/r,y:n.top/o}}function he(e){var t=me(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function ve(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&ce(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function be(e){return ie(e).getComputedStyle(e)}function ge(e){return["table","td","th"].indexOf(oe(e))>=0}function ye(e){return((ae(e)?e.ownerDocument:e.document)||window.document).documentElement}function xe(e){return"html"===oe(e)?e:e.assignedSlot||e.parentNode||(ce(e)?e.host:null)||ye(e)}function we(e){return se(e)&&"fixed"!==be(e).position?e.offsetParent:null}function Oe(e){for(var t=ie(e),n=we(e);n&&ge(n)&&"static"===be(n).position;)n=we(n);return n&&("html"===oe(n)||"body"===oe(n)&&"static"===be(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&se(e)&&"fixed"===be(e).position)return null;var n=xe(e);for(ce(n)&&(n=n.host);se(n)&&["html","body"].indexOf(oe(n))<0;){var r=be(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Ee(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function je(e,t,n){return pe(e,le(t,n))}function Ae(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Se(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var Me={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ue(n.placement),c=Ee(s),f=[G,z].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Ae("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Se(e,J))}(o.padding,n),p=he(i),l="y"===c?X:G,d="y"===c?Y:z,m=n.rects.reference[f]+n.rects.reference[c]-a[c]-n.rects.popper[f],h=a[c]-n.rects.reference[c],v=Oe(i),b=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,g=m/2-h/2,y=u[l],x=b-p[f]-u[d],w=b/2-p[f]/2+g,O=je(y,w,x),E=c;n.modifiersData[r]=((t={})[E]=O,t.centerOffset=O-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&("production"!==process.env.NODE_ENV&&(se(r)||console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).',"To use an SVG arrow, wrap it in an HTMLElement that will be used as","the arrow."].join(" "))),ve(t.elements.popper,r)?t.elements.arrow=r:"production"!==process.env.NODE_ENV&&console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper',"element."].join(" ")))},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function De(e){return e.split("-")[1]}var ke={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ne(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,f=e.adaptive,u=e.roundOffsets,p=e.isFixed,l=a.x,d=void 0===l?0:l,m=a.y,h=void 0===m?0:m,v="function"==typeof u?u({x:d,y:h}):{x:d,y:h};d=v.x,h=v.y;var b=a.hasOwnProperty("x"),g=a.hasOwnProperty("y"),y=G,x=X,w=window;if(f){var O=Oe(n),E="clientHeight",j="clientWidth";if(O===ie(n)&&"static"!==be(O=ye(n)).position&&"absolute"===s&&(E="scrollHeight",j="scrollWidth"),O=O,o===X||(o===G||o===z)&&i===$)x=Y,h-=(p&&O===w&&w.visualViewport?w.visualViewport.height:O[E])-r.height,h*=c?1:-1;if(o===G||(o===X||o===Y)&&i===$)y=z,d-=(p&&O===w&&w.visualViewport?w.visualViewport.width:O[j])-r.width,d*=c?1:-1}var A,S=Object.assign({position:s},f&&ke),M=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:de(t*r)/r||0,y:de(n*r)/r||0}}({x:d,y:h}):{x:d,y:h};return d=M.x,h=M.y,c?Object.assign({},S,((A={})[x]=g?"0":"",A[y]=b?"0":"",A.transform=(w.devicePixelRatio||1)<=1?"translate("+d+"px, "+h+"px)":"translate3d("+d+"px, "+h+"px, 0)",A)):Object.assign({},S,((t={})[x]=g?h+"px":"",t[y]=b?d+"px":"",t.transform="",t))}var Pe={passive:!0};var Le={left:"right",right:"left",bottom:"top",top:"bottom"};function _e(e){return e.replace(/left|right|bottom|top/g,(function(e){return Le[e]}))}var Te={start:"end",end:"start"};function qe(e){return e.replace(/start|end/g,(function(e){return Te[e]}))}function Ie(e){var t=ie(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function We(e){return me(ye(e)).left+Ie(e).scrollLeft}function Ve(e){var t=be(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ce(e){return["html","body","#document"].indexOf(oe(e))>=0?e.ownerDocument.body:se(e)&&Ve(e)?e:Ce(xe(e))}function He(e,t){var n;void 0===t&&(t=[]);var r=Ce(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=ie(r),a=o?[i].concat(i.visualViewport||[],Ve(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(He(xe(a)))}function Fe(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Be(e,t){return t===Q?Fe(function(e){var t=ie(e),n=ye(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+We(e),y:s}}(e)):ae(t)?function(e){var t=me(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Fe(function(e){var t,n=ye(e),r=Ie(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=pe(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=pe(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+We(e),c=-r.scrollTop;return"rtl"===be(o||n).direction&&(s+=pe(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(ye(e)))}function Re(e,t,n){var r="clippingParents"===t?function(e){var t=He(xe(e)),n=["absolute","fixed"].indexOf(be(e).position)>=0&&se(e)?Oe(e):e;return ae(n)?t.filter((function(e){return ae(e)&&ve(e,n)&&"body"!==oe(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Be(e,n);return t.top=pe(r.top,t.top),t.right=le(r.right,t.right),t.bottom=le(r.bottom,t.bottom),t.left=pe(r.left,t.left),t}),Be(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ue(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?ue(o):null,a=o?De(o):null,s=n.x+n.width/2-r.width/2,c=n.y+n.height/2-r.height/2;switch(i){case X:t={x:s,y:n.y-r.height};break;case Y:t={x:s,y:n.y+n.height};break;case z:t={x:n.x+n.width,y:c};break;case G:t={x:n.x-r.width,y:c};break;default:t={x:n.x,y:n.y}}var f=i?Ee(i):null;if(null!=f){var u="y"===f?"height":"width";switch(a){case K:t[f]=t[f]-(n[u]/2-r[u]/2);break;case $:t[f]=t[f]+(n[u]/2-r[u]/2)}}return t}function Xe(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,s=n.rootBoundary,c=void 0===s?Q:s,f=n.elementContext,u=void 0===f?ee:f,p=n.altBoundary,l=void 0!==p&&p,d=n.padding,m=void 0===d?0:d,h=Ae("number"!=typeof m?m:Se(m,J)),v=u===ee?"reference":ee,b=e.rects.popper,g=e.elements[l?v:u],y=Re(ae(g)?g:g.contextElement||ye(e.elements.popper),a,c),x=me(e.elements.reference),w=Ue({reference:x,element:b,strategy:"absolute",placement:o}),O=Fe(Object.assign({},b,w)),E=u===ee?O:x,j={top:y.top-E.top+h.top,bottom:E.bottom-y.bottom+h.bottom,left:y.left-E.left+h.left,right:E.right-y.right+h.right},A=e.modifiersData.offset;if(u===ee&&A){var S=A[o];Object.keys(j).forEach((function(e){var t=[z,Y].indexOf(e)>=0?1:-1,n=[X,Y].indexOf(e)>=0?"y":"x";j[e]+=S[n]*t}))}return j}function Ye(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,f=void 0===c?ne:c,u=De(r),p=u?s?te:te.filter((function(e){return De(e)===u})):J,l=p.filter((function(e){return f.indexOf(e)>=0}));0===l.length&&(l=p,"production"!==process.env.NODE_ENV&&console.error(["Popper: The `allowedAutoPlacements` option did not allow any","placements. Ensure the `placement` option matches the variation","of the allowed placements.",'For example, "auto" cannot be used to allow "bottom-start".','Use "auto-start" instead.'].join(" ")));var d=l.reduce((function(t,n){return t[n]=Xe(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[ue(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}var ze={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,f=n.padding,u=n.boundary,p=n.rootBoundary,l=n.altBoundary,d=n.flipVariations,m=void 0===d||d,h=n.allowedAutoPlacements,v=t.options.placement,b=ue(v),g=c||(b===v||!m?[_e(v)]:function(e){if(ue(e)===Z)return[];var t=_e(e);return[qe(e),t,qe(t)]}(v)),y=[v].concat(g).reduce((function(e,n){return e.concat(ue(n)===Z?Ye(t,{placement:n,boundary:u,rootBoundary:p,padding:f,flipVariations:m,allowedAutoPlacements:h}):n)}),[]),x=t.rects.reference,w=t.rects.popper,O=new Map,E=!0,j=y[0],A=0;A<y.length;A++){var S=y[A],M=ue(S),D=De(S)===K,k=[X,Y].indexOf(M)>=0,N=k?"width":"height",P=Xe(t,{placement:S,boundary:u,rootBoundary:p,altBoundary:l,padding:f}),L=k?D?z:G:D?Y:X;x[N]>w[N]&&(L=_e(L));var _=_e(L),T=[];if(i&&T.push(P[M]<=0),s&&T.push(P[L]<=0,P[_]<=0),T.every((function(e){return e}))){j=S,E=!1;break}O.set(S,T)}if(E)for(var q=function(e){var t=y.find((function(t){var n=O.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return j=t,"break"},I=m?3:1;I>0;I--){if("break"===q(I))break}t.placement!==j&&(t.modifiersData[r]._skip=!0,t.placement=j,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ge(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Ze(e){return[X,z,Y,G].some((function(t){return e[t]>=0}))}var Je={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=ne.reduce((function(e,n){return e[n]=function(e,t,n){var r=ue(e),o=[G,X].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[G,z].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],c=s.x,f=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[r]=a}};var Ke={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,f=n.rootBoundary,u=n.altBoundary,p=n.padding,l=n.tether,d=void 0===l||l,m=n.tetherOffset,h=void 0===m?0:m,v=Xe(t,{boundary:c,rootBoundary:f,padding:p,altBoundary:u}),b=ue(t.placement),g=De(t.placement),y=!g,x=Ee(b),w="x"===x?"y":"x",O=t.modifiersData.popperOffsets,E=t.rects.reference,j=t.rects.popper,A="function"==typeof h?h(Object.assign({},t.rects,{placement:t.placement})):h,S="number"==typeof A?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(O){if(i){var k,N="y"===x?X:G,P="y"===x?Y:z,L="y"===x?"height":"width",_=O[x],T=_+v[N],q=_-v[P],I=d?-j[L]/2:0,W=g===K?E[L]:j[L],V=g===K?-j[L]:-E[L],C=t.elements.arrow,H=d&&C?he(C):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[N],R=F[P],U=je(0,E[L],H[L]),Z=y?E[L]/2-I-U-B-S.mainAxis:W-U-B-S.mainAxis,J=y?-E[L]/2+I+U+R+S.mainAxis:V+U+R+S.mainAxis,$=t.elements.arrow&&Oe(t.elements.arrow),Q=$?"y"===x?$.clientTop||0:$.clientLeft||0:0,ee=null!=(k=null==M?void 0:M[x])?k:0,te=_+J-ee,ne=je(d?le(T,_+Z-ee-Q):T,_,d?pe(q,te):q);O[x]=ne,D[x]=ne-_}if(s){var re,oe="x"===x?X:G,ie="x"===x?Y:z,ae=O[w],se="y"===w?"height":"width",ce=ae+v[oe],fe=ae-v[ie],de=-1!==[X,G].indexOf(b),me=null!=(re=null==M?void 0:M[w])?re:0,ve=de?ce:ae-E[se]-j[se]-me+S.altAxis,be=de?ae+E[se]+j[se]-me-S.altAxis:fe,ge=d&&de?function(e,t,n){var r=je(e,t,n);return r>n?n:r}(ve,ae,be):je(d?ve:ce,ae,d?be:fe);O[w]=ge,D[w]=ge-ae}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function $e(e,t,n){void 0===n&&(n=!1);var r,o,i=se(t),a=se(t)&&function(e){var t=e.getBoundingClientRect(),n=de(t.width)/e.offsetWidth||1,r=de(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=ye(t),c=me(e,a),f={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==oe(t)||Ve(s))&&(f=(r=t)!==ie(r)&&se(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:Ie(r)),se(t)?((u=me(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=We(s))),{x:c.left+f.scrollLeft-u.x,y:c.top+f.scrollTop-u.y,width:c.width,height:c.height}}function Qe(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function et(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return[].concat(n).reduce((function(e,t){return e.replace(/%s/,t)}),e)}var tt='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',nt=["name","enabled","phase","fn","effect","requires","options"];var rt="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",ot={placement:"bottom",modifiers:[],strategy:"absolute"};function it(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function at(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ot:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ot,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],f=!1,u={state:s,setOptions:function(n){var o="function"==typeof n?n(s.options):n;p(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:ae(e)?He(e):e.contextElement?He(e.contextElement):[],popper:He(t)};var a,f,l,d=function(e){var t=Qe(e);return re.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,s.options.modifiers)));if(s.orderedModifiers=d.filter((function(e){return e.enabled})),"production"!==process.env.NODE_ENV){if(function(e){e.forEach((function(t){[].concat(Object.keys(t),nt).filter((function(e,t,n){return n.indexOf(e)===t})).forEach((function(n){switch(n){case"name":"string"!=typeof t.name&&console.error(et(tt,String(t.name),'"name"','"string"','"'+String(t.name)+'"'));break;case"enabled":"boolean"!=typeof t.enabled&&console.error(et(tt,t.name,'"enabled"','"boolean"','"'+String(t.enabled)+'"'));break;case"phase":re.indexOf(t.phase)<0&&console.error(et(tt,t.name,'"phase"',"either "+re.join(", "),'"'+String(t.phase)+'"'));break;case"fn":"function"!=typeof t.fn&&console.error(et(tt,t.name,'"fn"','"function"','"'+String(t.fn)+'"'));break;case"effect":null!=t.effect&&"function"!=typeof t.effect&&console.error(et(tt,t.name,'"effect"','"function"','"'+String(t.fn)+'"'));break;case"requires":null==t.requires||Array.isArray(t.requires)||console.error(et(tt,t.name,'"requires"','"array"','"'+String(t.requires)+'"'));break;case"requiresIfExists":Array.isArray(t.requiresIfExists)||console.error(et(tt,t.name,'"requiresIfExists"','"array"','"'+String(t.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+t.name+'" modifier, valid properties are '+nt.map((function(e){return'"'+e+'"'})).join(", ")+'; but "'+n+'" was provided.')}t.requires&&t.requires.forEach((function(n){null==e.find((function(e){return e.name===n}))&&console.error(et('Popper: modifier "%s" requires "%s", but "%s" modifier is not available',String(t.name),n,n))}))}))}))}((a=[].concat(d,s.options.modifiers),f=function(e){return e.name},l=new Set,a.filter((function(e){var t=f(e);if(!l.has(t))return l.add(t),!0})))),ue(s.options.placement)===Z)s.orderedModifiers.find((function(e){return"flip"===e.name}))||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "));var m=be(t);[m.marginTop,m.marginRight,m.marginBottom,m.marginLeft].some((function(e){return parseFloat(e)}))&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:r}),a=function(){};c.push(i||a)}})),u.update()},forceUpdate:function(){if(!f){var e=s.elements,t=e.reference,n=e.popper;if(it(t,n)){s.rects={reference:$e(t,Oe(n),"fixed"===s.options.strategy),popper:he(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0,o=0;o<s.orderedModifiers.length;o++){if("production"!==process.env.NODE_ENV&&(r+=1)>100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var i=s.orderedModifiers[o],a=i.fn,c=i.options,p=void 0===c?{}:c,l=i.name;"function"==typeof a&&(s=a({state:s,options:p,name:l,instance:u})||s)}else s.reset=!1,o=-1}}else"production"!==process.env.NODE_ENV&&console.error(rt)}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){p(),f=!0}};if(!it(e,t))return"production"!==process.env.NODE_ENV&&console.error(rt),u;function p(){c.forEach((function(e){return e()})),c=[]}return u.setOptions(n).then((function(e){!f&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var st=at({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=ie(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&f.forEach((function(e){e.addEventListener("scroll",n.update,Pe)})),s&&c.addEventListener("resize",n.update,Pe),function(){i&&f.forEach((function(e){e.removeEventListener("scroll",n.update,Pe)})),s&&c.removeEventListener("resize",n.update,Pe)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Ue({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s;if("production"!==process.env.NODE_ENV){var f=be(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return f.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var u={placement:ue(t.placement),variation:De(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Ne(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Ne(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},fe,Je,ze,Ke,Me,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Xe(t,{elementContext:"reference"}),s=Xe(t,{altBoundary:!0}),c=Ge(a,r),f=Ge(s,o,i),u=Ze(c),p=Ze(f);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),ct={mounted:function(e,n){var r={arrow:!0,disabled:!1,trigger:"hover",theme:"dark",content:"",showOnInit:!1,placement:"top",distance:8,onShow:function(){},onHide:function(){}};"object"===U(n.value)?Object.assign(r,n.value):r.content=n.value;var o=r.disabled,i=r.arrow,a=r.theme;if(!o){var s=function(e,n,r){var o=t.bkZIndexManager.getPopperIndex(),i=document.createElement("div");if(i.className="bk-popper ".concat(r?"light":"dark"),i.innerText=e,i.style.zIndex=String(o),n){var a=function(){var e=document.createElement("div");return e.className="bk-popper-arrow",e.setAttribute("data-popper-arrow",""),e}();i.appendChild(a)}return document.body.appendChild(i),i}(r.content,i,"light"===a);!function(e,t,n){var r=n.placement,o=n.distance,i=n.trigger,a=n.showOnInit,s=n.onShow,c=n.onHide,f=st(e,t,{placement:r,modifiers:[{name:"offset",options:{offset:[0,o]}}]});if("hover"===i){var u=["mouseleave","blur"];["mouseenter","focus"].forEach((function(t){e.addEventListener(t,p)})),u.forEach((function(t){e.addEventListener(t,l)}))}else"click"===i&&document.body.addEventListener("click",(function(n){e.contains(n.target)&&!t.hasAttribute("data-show")?p():t.hasAttribute("data-show")&&l()}));a&&p();function p(){t.setAttribute("data-show",""),s(),f.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(B(e.modifiers),[{name:"eventListeners",enabled:!0}])})})),f.update()}function l(){t.removeAttribute("data-show"),c(),f.setOptions((function(e){return Object.assign(Object.assign({},e),{modifiers:[].concat(B(e.modifiers),[{name:"eventListeners",enabled:!1}])})}))}}(e,s,r)}}};e.bkTooltips=ct,e.clickoutside=q,e.mousewheel=N,Object.defineProperty(e,"__esModule",{value:!0})}));
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { ObjectDirective } from 'vue';
|
2
|
+
import { Placement } from '@popperjs/core';
|
3
|
+
import '@bkui-vue/styles/mixins/popper.less';
|
4
|
+
export declare type IOptions = {
|
5
|
+
arrow: boolean;
|
6
|
+
disabled: boolean;
|
7
|
+
placement: Placement;
|
8
|
+
content: string;
|
9
|
+
showOnInit: boolean;
|
10
|
+
theme: string;
|
11
|
+
trigger: string;
|
12
|
+
distance: number;
|
13
|
+
onShow: () => void;
|
14
|
+
onHide: () => void;
|
15
|
+
};
|
16
|
+
declare const tooltips: ObjectDirective;
|
17
|
+
export default tooltips;
|
@@ -0,0 +1,38 @@
|
|
1
|
+
.bk-divider {
|
2
|
+
position: relative;
|
3
|
+
background: #c4c6cc;
|
4
|
+
}
|
5
|
+
.bk-divider-horizontal {
|
6
|
+
width: 100%;
|
7
|
+
height: 1px;
|
8
|
+
margin: 1em 0;
|
9
|
+
}
|
10
|
+
.bk-divider-info {
|
11
|
+
position: absolute;
|
12
|
+
top: 50%;
|
13
|
+
padding: 0 1.4em;
|
14
|
+
color: #63656e;
|
15
|
+
background-color: white;
|
16
|
+
transform: translateY(-50%);
|
17
|
+
}
|
18
|
+
.bk-divider-info-center {
|
19
|
+
left: 50%;
|
20
|
+
transform: translateX(-50%) translateY(-50%);
|
21
|
+
}
|
22
|
+
.bk-divider-info .bk-divider-horizontal-left {
|
23
|
+
left: 2em;
|
24
|
+
}
|
25
|
+
.bk-divider-info .bk-divider-horizontal-right {
|
26
|
+
right: 2em;
|
27
|
+
}
|
28
|
+
.bk-divider-vertical .bk-divider-info {
|
29
|
+
padding: 20px 0;
|
30
|
+
}
|
31
|
+
.bk-divider-vertical {
|
32
|
+
display: inline-block;
|
33
|
+
width: 1px;
|
34
|
+
height: 100%;
|
35
|
+
min-height: 1em;
|
36
|
+
margin: 0 8px;
|
37
|
+
vertical-align: middle;
|
38
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
2
|
+
direction: import("vue-types").VueTypeDef<string> & {
|
3
|
+
default: string;
|
4
|
+
};
|
5
|
+
align: import("vue-types").VueTypeDef<string> & {
|
6
|
+
default: string;
|
7
|
+
};
|
8
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
9
|
+
default: string;
|
10
|
+
} & {
|
11
|
+
default: string;
|
12
|
+
};
|
13
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
14
|
+
default: number;
|
15
|
+
} & {
|
16
|
+
default: number;
|
17
|
+
};
|
18
|
+
type: import("vue-types").VueTypeDef<string> & {
|
19
|
+
default: string;
|
20
|
+
};
|
21
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
22
|
+
direction: import("vue-types").VueTypeDef<string> & {
|
23
|
+
default: string;
|
24
|
+
};
|
25
|
+
align: import("vue-types").VueTypeDef<string> & {
|
26
|
+
default: string;
|
27
|
+
};
|
28
|
+
color: import("vue-types").VueTypeValidableDef<string> & {
|
29
|
+
default: string;
|
30
|
+
} & {
|
31
|
+
default: string;
|
32
|
+
};
|
33
|
+
width: import("vue-types").VueTypeValidableDef<number> & {
|
34
|
+
default: number;
|
35
|
+
} & {
|
36
|
+
default: number;
|
37
|
+
};
|
38
|
+
type: import("vue-types").VueTypeDef<string> & {
|
39
|
+
default: string;
|
40
|
+
};
|
41
|
+
}>>, {
|
42
|
+
width: number;
|
43
|
+
type: string;
|
44
|
+
color: string;
|
45
|
+
direction: string;
|
46
|
+
align: string;
|
47
|
+
}>;
|
48
|
+
export default _default;
|
@@ -0,0 +1,53 @@
|
|
1
|
+
@import '../styles/themes/themes.less';
|
2
|
+
.@{bk-prefix}-divider {
|
3
|
+
position: relative;
|
4
|
+
background: @light-gray;
|
5
|
+
|
6
|
+
&-horizontal {
|
7
|
+
width: 100%;
|
8
|
+
height: 1px;
|
9
|
+
margin: 1em 0;
|
10
|
+
}
|
11
|
+
|
12
|
+
&-info {
|
13
|
+
position: absolute;
|
14
|
+
top: 50%;
|
15
|
+
padding: 0 1.4em;
|
16
|
+
color: @default-color;
|
17
|
+
background-color: @white-color;
|
18
|
+
transform: translateY(-50%);
|
19
|
+
|
20
|
+
&-center {
|
21
|
+
left: 50%;
|
22
|
+
transform: translateX(-50%) translateY(-50%)
|
23
|
+
}
|
24
|
+
|
25
|
+
.bk-divider-horizontal {
|
26
|
+
&-left {
|
27
|
+
left: 2em;
|
28
|
+
}
|
29
|
+
|
30
|
+
&-right {
|
31
|
+
right: 2em;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
.bk-divider-vertical & {
|
36
|
+
padding: 20px 0;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
&-vertical {
|
41
|
+
display: inline-block;
|
42
|
+
width: 1px;
|
43
|
+
height: 100%;
|
44
|
+
min-height: 1em;
|
45
|
+
margin: 0 8px;
|
46
|
+
vertical-align: middle;
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
|