bkui-vue 0.0.1-beta.463 → 0.0.1-beta.465
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/dist/index.cjs.js +63 -67
- package/dist/index.esm.js +15199 -14529
- package/dist/index.umd.js +65 -69
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.d.ts +1 -1
- package/lib/affix/index.d.ts +58 -34
- package/lib/alert/alert.d.ts +1 -1
- package/lib/alert/index.d.ts +60 -40
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/animate-number.d.ts +3 -3
- package/lib/animate-number/index.d.ts +60 -27
- package/lib/backtop/backtop.d.ts +2 -2
- package/lib/backtop/index.d.ts +61 -43
- package/lib/badge/badge.d.ts +1 -1
- package/lib/badge/index.d.ts +63 -60
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb/breadcrumb.d.ts +2 -2
- package/lib/breadcrumb/index.d.ts +61 -39
- package/lib/button/button-group.d.ts +4 -4
- package/lib/button/button.d.ts +3 -3
- package/lib/button/index.d.ts +74 -68
- package/lib/button/index.js +1 -1
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +63 -64
- package/lib/card/index.js +1 -1
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.d.ts +2 -2
- package/lib/cascader/index.d.ts +81 -146
- package/lib/cascader/index.js +2 -1
- package/lib/cascader/index.js.LICENSE.txt +1 -0
- package/lib/checkbox/checkbox-group.d.ts +2 -2
- package/lib/checkbox/checkbox.d.ts +10 -10
- package/lib/checkbox/index.d.ts +76 -64
- package/lib/checkbox/index.js +1 -1
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/code-diff.d.ts +6 -6
- package/lib/code-diff/index.d.ts +30 -43
- package/lib/code-diff/index.js +1 -1
- package/lib/collapse/collapse-panel.d.ts +1 -1
- package/lib/collapse/collapse.d.ts +1 -1
- package/lib/collapse/index.d.ts +68 -74
- package/lib/collapse-transition/collapse-transition.d.ts +2 -2
- package/lib/color-picker/color-picker.d.ts +2 -2
- package/lib/color-picker/components/color-input.d.ts +2 -2
- package/lib/color-picker/components/hue-slider.d.ts +2 -2
- package/lib/color-picker/components/input-container.d.ts +2 -2
- package/lib/color-picker/components/recommend-colors.d.ts +2 -2
- package/lib/color-picker/components/saturation-panel.d.ts +2 -2
- package/lib/color-picker/index.d.ts +63 -62
- package/lib/color-picker/index.js +1 -1
- package/lib/config-provider/config-provider.d.ts +3 -3
- package/lib/config-provider/index.d.ts +175 -138
- package/lib/container/col.d.ts +2 -2
- package/lib/container/container.d.ts +2 -2
- package/lib/container/index.d.ts +29 -48
- package/lib/container/row.d.ts +2 -2
- package/lib/date-picker/base/confirm.d.ts +5 -5
- package/lib/date-picker/base/date-table.d.ts +3 -3
- package/lib/date-picker/base/month-table.d.ts +4 -4
- package/lib/date-picker/base/picker-dropdown.d.ts +4 -4
- package/lib/date-picker/base/time-spinner.d.ts +2 -2
- package/lib/date-picker/base/year-table.d.ts +4 -4
- package/lib/date-picker/date-picker.d.ts +37 -28
- package/lib/date-picker/index.d.ts +162 -209
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/interface.d.ts +10 -10
- package/lib/date-picker/panel/date-range.d.ts +18 -15
- package/lib/date-picker/panel/date.d.ts +12 -12
- package/lib/date-picker/panel/time-range.d.ts +8 -2
- package/lib/date-picker/panel/time.d.ts +5 -2
- package/lib/date-picker/props.d.ts +3 -3
- package/lib/date-picker/time-picker.d.ts +11 -2
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/dialog/index.d.ts +90 -163
- package/lib/dialog/index.js +2 -1
- package/lib/dialog/index.js.LICENSE.txt +1 -0
- package/lib/divider/divider.d.ts +2 -2
- package/lib/divider/index.d.ts +61 -37
- package/lib/dropdown/dropdown-item.d.ts +1 -1
- package/lib/dropdown/dropdown-menu.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +2 -2
- package/lib/dropdown/index.d.ts +66 -54
- package/lib/exception/exception.d.ts +2 -2
- package/lib/exception/index.d.ts +60 -29
- package/lib/exception/index.js +1 -1
- package/lib/exception/typings/index.d.ts +2 -2
- package/lib/fixed-navbar/fixed-navbar.d.ts +1 -1
- package/lib/fixed-navbar/index.d.ts +58 -34
- package/lib/form/compose-form-item.d.ts +2 -2
- package/lib/form/form-item.d.ts +3 -3
- package/lib/form/form.d.ts +3 -3
- package/lib/form/index.d.ts +62 -40
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/fix-line.js +1 -1
- package/lib/icon/fix-shape.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/original.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/image-viewer.d.ts +2 -2
- package/lib/image/image.d.ts +1 -1
- package/lib/image/index.d.ts +63 -57
- package/lib/info-box/index.d.ts +1 -1
- package/lib/info-box/index.js +2 -1
- package/lib/info-box/index.js.LICENSE.txt +1 -0
- package/lib/input/index.d.ts +82 -119
- package/lib/input/index.js +1 -1
- package/lib/input/input.d.ts +6 -6
- package/lib/link/index.d.ts +59 -40
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/directive.d.ts +2 -2
- package/lib/loading/index.d.ts +67 -71
- package/lib/loading/index.js +1 -1
- package/lib/loading/loading.d.ts +3 -3
- package/lib/locale/lang/en.d.ts +1 -1
- package/lib/menu/index.d.ts +69 -32
- package/lib/menu/index.js +1 -1
- package/lib/menu/menu-group.d.ts +2 -2
- package/lib/menu/menu-item.d.ts +5 -1
- package/lib/menu/menu.d.ts +1 -1
- package/lib/menu/submenu.d.ts +5 -1
- package/lib/menu/utils.d.ts +1 -1
- package/lib/message/index.js +1 -1
- package/lib/message/messageConstructor.d.ts +5 -5
- package/lib/modal/index.d.ts +84 -123
- package/lib/modal/modal.d.ts +3 -3
- package/lib/navigation/index.d.ts +84 -65
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation-title.d.ts +6 -3
- package/lib/navigation/navigation.d.ts +10 -3
- package/lib/notify/index.js +1 -1
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/components/overflow-title.d.ts +2 -2
- package/lib/overflow-title/index.d.ts +62 -37
- package/lib/overflow-title/props.d.ts +2 -2
- package/lib/pagination/index.d.ts +75 -94
- package/lib/pagination/index.js +1 -1
- package/lib/pagination/pagination.d.ts +6 -6
- package/lib/pagination/type.d.ts +1 -1
- package/lib/plugin-popover/index.js +1 -1
- package/lib/pop-confirm/index.d.ts +66 -63
- package/lib/pop-confirm/pop-confirm.d.ts +2 -2
- package/lib/popover/arrow.d.ts +1 -1
- package/lib/popover/content.d.ts +2 -2
- package/lib/popover/index.d.ts +82 -153
- package/lib/popover/index.js +1 -1
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +1 -1
- package/lib/popover/props.d.ts +2 -2
- package/lib/popover/reference.d.ts +1 -1
- package/lib/popover/root.d.ts +2 -2
- package/lib/popover/use-floating.d.ts +3 -3
- package/lib/popover2/index.d.ts +55 -10
- package/lib/popover2/popover.d.ts +1 -1
- package/lib/process/index.d.ts +60 -46
- package/lib/process/index.js +2 -1
- package/lib/process/index.js.LICENSE.txt +1 -0
- package/lib/process/process.d.ts +2 -2
- package/lib/progress/index.d.ts +76 -103
- package/lib/progress/index.js +1 -1
- package/lib/progress/progress.d.ts +6 -6
- package/lib/radio/index.d.ts +63 -41
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio-button.d.ts +5 -5
- package/lib/radio/radio-group.d.ts +2 -2
- package/lib/radio/radio.d.ts +2 -2
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.d.ts +61 -34
- package/lib/rate/rate.d.ts +3 -3
- package/lib/rate/star.d.ts +1 -1
- package/lib/resize-layout/index.d.ts +65 -66
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/search-select/index.d.ts +70 -69
- package/lib/search-select/index.js +2 -1
- package/lib/search-select/index.js.LICENSE.txt +1 -0
- package/lib/search-select/input.d.ts +1 -1
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.d.ts +2 -2
- package/lib/search-select/selected.d.ts +2 -2
- package/lib/search-select/utils.d.ts +4 -4
- package/lib/select/index.d.ts +296 -500
- package/lib/select/index.js +2 -1
- package/lib/select/index.js.LICENSE.txt +1 -0
- package/lib/select/option.d.ts +2 -2
- package/lib/select/optionGroup.d.ts +2 -2
- package/lib/select/select.d.ts +70 -60
- package/lib/select/selectTagInput.d.ts +2 -2
- package/lib/select/type.d.ts +3 -3
- package/lib/shared/index.d.ts +2 -2
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +2 -2
- package/lib/shared/popover.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +7 -7
- package/lib/sideslider/index.d.ts +84 -125
- package/lib/sideslider/index.js +2 -1
- package/lib/sideslider/index.js.LICENSE.txt +1 -0
- package/lib/sideslider/sideslider.d.ts +3 -3
- package/lib/slider/index.d.ts +73 -103
- package/lib/slider/index.js +2 -1
- package/lib/slider/index.js.LICENSE.txt +1 -0
- package/lib/slider/slider-button.d.ts +1 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/steps/index.d.ts +68 -62
- package/lib/steps/index.js +2 -1
- package/lib/steps/index.js.LICENSE.txt +1 -0
- package/lib/steps/steps.d.ts +5 -5
- package/lib/swiper/index.d.ts +60 -44
- package/lib/swiper/swiper.d.ts +1 -1
- package/lib/switcher/index.d.ts +72 -77
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.d.ts +3 -3
- package/lib/tab/index.d.ts +81 -99
- package/lib/tab/index.js +1 -1
- package/lib/tab/props.d.ts +1 -1
- package/lib/tab/tab-nav.d.ts +2 -2
- package/lib/tab/tab-panel.d.ts +2 -2
- package/lib/tab/tab.d.ts +3 -3
- package/lib/table/components/table-cell.d.ts +2 -2
- package/lib/table/components/table-column.d.ts +18 -12
- package/lib/table/components/table-row.d.ts +1 -1
- package/lib/table/index.d.ts +213 -302
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/body-empty.d.ts +1 -1
- package/lib/table/plugins/col-group.d.ts +2 -2
- package/lib/table/plugins/head-filter.d.ts +1 -1
- package/lib/table/plugins/head-sort.d.ts +1 -1
- package/lib/table/plugins/settings.d.ts +1 -1
- package/lib/table/plugins/use-active-columns.d.ts +3 -3
- package/lib/table/plugins/use-fixed-column.d.ts +3 -3
- package/lib/table/props.d.ts +19 -19
- package/lib/table/table.d.ts +6 -6
- package/lib/table/use-column.d.ts +4 -4
- package/lib/table/use-common.d.ts +1 -1
- package/lib/table-column/index.d.ts +113 -106
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.d.ts +68 -50
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.d.ts +5 -1
- package/lib/tag-input/index.d.ts +99 -311
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/list-tag-render.d.ts +2 -2
- package/lib/tag-input/tag-input.d.ts +3 -3
- package/lib/tag-input/tag-props.d.ts +1 -1
- package/lib/tag-input/tag-render.d.ts +2 -2
- package/lib/time-picker/index.d.ts +116 -187
- package/lib/timeline/index.d.ts +57 -28
- package/lib/timeline/timeline.d.ts +2 -2
- package/lib/transfer/index.d.ts +67 -82
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/tree/index.d.ts +84 -146
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +4 -4
- package/lib/tree/tree.d.ts +3 -3
- package/lib/upload/index.d.ts +93 -150
- package/lib/upload/index.js +2 -1
- package/lib/upload/index.js.LICENSE.txt +1 -0
- package/lib/upload/upload-list.d.ts +1 -1
- package/lib/upload/upload-trigger.d.ts +1 -1
- package/lib/upload/upload.d.ts +4 -4
- package/lib/upload/upload.type.d.ts +12 -12
- package/lib/upload/use-file-handler.d.ts +1 -24
- package/lib/virtual-render/index.d.ts +64 -160
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +1 -1
- package/lib/virtual-render/virtual-render.d.ts +16 -3
- package/package.json +38 -37
@@ -17,7 +17,7 @@ declare const timeRangeProps: {
|
|
17
17
|
default: boolean;
|
18
18
|
};
|
19
19
|
};
|
20
|
-
export
|
20
|
+
export type TimeRangePanelProps = Readonly<ExtractPropTypes<typeof timeRangeProps>>;
|
21
21
|
declare const _default: import("vue").DefineComponent<{
|
22
22
|
steps: {
|
23
23
|
type: PropType<number[]>;
|
@@ -185,14 +185,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
185
185
|
toLocaleString: {
|
186
186
|
(): string;
|
187
187
|
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
188
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
188
189
|
};
|
189
190
|
toLocaleDateString: {
|
190
191
|
(): string;
|
191
192
|
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
193
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
192
194
|
};
|
193
195
|
toLocaleTimeString: {
|
194
196
|
(): string;
|
195
197
|
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
198
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
196
199
|
};
|
197
200
|
valueOf: () => number;
|
198
201
|
getTime: () => number;
|
@@ -245,14 +248,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
245
248
|
toLocaleString: {
|
246
249
|
(): string;
|
247
250
|
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
251
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
248
252
|
};
|
249
253
|
toLocaleDateString: {
|
250
254
|
(): string;
|
251
255
|
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
256
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
252
257
|
};
|
253
258
|
toLocaleTimeString: {
|
254
259
|
(): string;
|
255
260
|
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
261
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
256
262
|
};
|
257
263
|
valueOf: () => number;
|
258
264
|
getTime: () => number;
|
@@ -485,5 +491,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
485
491
|
disabledSeconds: unknown[];
|
486
492
|
hideDisabledOptions: boolean;
|
487
493
|
enterMode: boolean;
|
488
|
-
}>;
|
494
|
+
}, {}>;
|
489
495
|
export default _default;
|
@@ -22,7 +22,7 @@ declare const timeProps: {
|
|
22
22
|
default: boolean;
|
23
23
|
};
|
24
24
|
};
|
25
|
-
export
|
25
|
+
export type TimePanelProps = Readonly<ExtractPropTypes<typeof timeProps>>;
|
26
26
|
declare const _default: import("vue").DefineComponent<{
|
27
27
|
disabledDate: {
|
28
28
|
type: FunctionConstructor;
|
@@ -194,14 +194,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
194
194
|
toLocaleString: {
|
195
195
|
(): string;
|
196
196
|
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
197
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
197
198
|
};
|
198
199
|
toLocaleDateString: {
|
199
200
|
(): string;
|
200
201
|
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
202
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
201
203
|
};
|
202
204
|
toLocaleTimeString: {
|
203
205
|
(): string;
|
204
206
|
(locales?: string | string[], options?: Intl.DateTimeFormatOptions): string;
|
207
|
+
(locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions): string;
|
205
208
|
};
|
206
209
|
valueOf: () => number;
|
207
210
|
getTime: () => number;
|
@@ -444,5 +447,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
444
447
|
disabledSeconds: unknown[];
|
445
448
|
hideDisabledOptions: boolean;
|
446
449
|
enterMode: boolean;
|
447
|
-
}>;
|
450
|
+
}, {}>;
|
448
451
|
export default _default;
|
@@ -119,7 +119,7 @@ export declare const datePickerProps: {
|
|
119
119
|
readonly default: true;
|
120
120
|
};
|
121
121
|
};
|
122
|
-
export
|
122
|
+
export type DatePickerProps = Readonly<ExtractPropTypes<typeof datePickerProps>>;
|
123
123
|
export declare const timePanelProps: {
|
124
124
|
readonly disabledHours: {
|
125
125
|
readonly type: ArrayConstructor;
|
@@ -146,7 +146,7 @@ export declare const timePanelProps: {
|
|
146
146
|
readonly default: true;
|
147
147
|
};
|
148
148
|
};
|
149
|
-
export
|
149
|
+
export type TimePanelProps = Readonly<ExtractPropTypes<typeof timePanelProps>>;
|
150
150
|
export declare const timePickerProps: {
|
151
151
|
type: {
|
152
152
|
type: PropType<PickerTypeType>;
|
@@ -158,4 +158,4 @@ export declare const timePickerProps: {
|
|
158
158
|
default: boolean;
|
159
159
|
};
|
160
160
|
};
|
161
|
-
export
|
161
|
+
export type TimePickerProps = Readonly<ExtractPropTypes<typeof timePickerProps>>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { SlotsType } from 'vue';
|
1
2
|
import type { DatePickerPanelType, SelectionModeType } from './interface';
|
2
3
|
declare const _default: import("vue").DefineComponent<{
|
3
4
|
disabledHours: {
|
@@ -195,7 +196,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
195
196
|
timeEnterMode: import("vue").Ref<boolean>;
|
196
197
|
shortcut: import("vue").Ref<any>;
|
197
198
|
onSelectionModeChange: import("vue").Ref<(_type: any) => SelectionModeType>;
|
198
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
199
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change")[], "input" | "change" | "clear" | "update:modelValue" | "pick-success" | "open-change" | "shortcut-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
199
200
|
disabledHours: {
|
200
201
|
readonly type: ArrayConstructor;
|
201
202
|
readonly default: () => any[];
|
@@ -377,5 +378,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
377
378
|
disabledSeconds: unknown[];
|
378
379
|
hideDisabledOptions: boolean;
|
379
380
|
enterMode: boolean;
|
380
|
-
}
|
381
|
+
}, SlotsType<{
|
382
|
+
header?: () => any;
|
383
|
+
trigger?: () => any;
|
384
|
+
footer?: () => any;
|
385
|
+
shortcuts?: (arg?: {
|
386
|
+
change: Function;
|
387
|
+
}) => any;
|
388
|
+
confirm?: {};
|
389
|
+
}>>;
|
381
390
|
export default _default;
|
package/lib/dialog/dialog.d.ts
CHANGED
@@ -139,7 +139,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
139
139
|
localCancelText: import("vue").ComputedRef<string>;
|
140
140
|
localPrevText: import("vue").ComputedRef<string>;
|
141
141
|
localNextText: import("vue").ComputedRef<string>;
|
142
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next" | "
|
142
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next" | "confirm" | "closed" | "update:isShow" | "value-change")[], "prev" | "next" | "confirm" | "closed" | "update:isShow" | "value-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
143
143
|
width: import("vue-types").VueTypeDef<string | number> & {
|
144
144
|
default: string | number;
|
145
145
|
};
|
@@ -296,5 +296,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
296
296
|
headerAlign: "left" | "center" | "right";
|
297
297
|
footerAlign: "left" | "center" | "right";
|
298
298
|
isLoading: boolean;
|
299
|
-
}>;
|
299
|
+
}, {}>;
|
300
300
|
export default _default;
|
package/lib/dialog/index.d.ts
CHANGED
@@ -2,164 +2,91 @@ declare const BkDialog: {
|
|
2
2
|
new (...args: any[]): {
|
3
3
|
$: import("vue").ComponentInternalInstance;
|
4
4
|
$data: {};
|
5
|
-
$props:
|
6
|
-
title
|
7
|
-
transfer
|
8
|
-
width
|
9
|
-
height
|
10
|
-
maxHeight
|
11
|
-
extCls
|
12
|
-
direction
|
13
|
-
isShow
|
14
|
-
theme
|
15
|
-
zIndex
|
16
|
-
draggable
|
17
|
-
showMask
|
18
|
-
multiInstance
|
19
|
-
renderDirective
|
20
|
-
quickClose
|
21
|
-
scrollable
|
22
|
-
closeIcon
|
23
|
-
escClose
|
24
|
-
fullscreen
|
25
|
-
animateType
|
26
|
-
confirmText
|
27
|
-
cancelText
|
28
|
-
prevText
|
29
|
-
nextText
|
30
|
-
current
|
31
|
-
totalStep
|
32
|
-
headerAlign
|
33
|
-
footerAlign
|
34
|
-
isLoading
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
}
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
}
|
57
|
-
|
58
|
-
}
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
};
|
70
|
-
|
71
|
-
|
72
|
-
}
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
}
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
default: boolean;
|
84
|
-
} & {
|
85
|
-
default: boolean;
|
86
|
-
};
|
87
|
-
extCls: (import("vue-types").VueTypeValidableDef<string> & {
|
88
|
-
default: string;
|
89
|
-
}) | (import("vue-types").VueTypeValidableDef<unknown[]> & {
|
90
|
-
default: () => unknown[];
|
91
|
-
});
|
92
|
-
scrollable: import("vue-types").VueTypeValidableDef<boolean> & {
|
93
|
-
default: boolean;
|
94
|
-
} & {
|
95
|
-
default: boolean;
|
96
|
-
};
|
97
|
-
showMask: import("vue-types").VueTypeValidableDef<boolean> & {
|
98
|
-
default: boolean;
|
99
|
-
} & {
|
100
|
-
default: boolean;
|
101
|
-
};
|
102
|
-
closeIcon: import("vue-types").VueTypeValidableDef<boolean> & {
|
103
|
-
default: boolean;
|
104
|
-
} & {
|
105
|
-
default: boolean;
|
106
|
-
};
|
107
|
-
escClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
108
|
-
default: boolean;
|
109
|
-
} & {
|
110
|
-
default: boolean;
|
111
|
-
};
|
112
|
-
fullscreen: import("vue-types").VueTypeValidableDef<boolean> & {
|
113
|
-
default: boolean;
|
114
|
-
} & {
|
115
|
-
default: boolean;
|
116
|
-
};
|
117
|
-
size: import("vue-types").VueTypeDef<"small" | "medium" | "large" | "normal">;
|
118
|
-
draggable: import("vue-types").VueTypeValidableDef<boolean> & {
|
119
|
-
default: boolean;
|
120
|
-
} & {
|
121
|
-
default: boolean;
|
122
|
-
};
|
123
|
-
quickClose: import("vue-types").VueTypeValidableDef<boolean> & {
|
124
|
-
default: boolean;
|
125
|
-
} & {
|
126
|
-
default: boolean;
|
127
|
-
};
|
128
|
-
transfer: import("vue-types").VueTypeDef<string | boolean | HTMLElement> & {
|
129
|
-
default: string | boolean | (() => HTMLElement);
|
130
|
-
};
|
131
|
-
zIndex: import("vue-types").VueTypeDef<string | number> & {
|
132
|
-
default: string | number;
|
133
|
-
};
|
134
|
-
maxHeight: import("vue-types").VueTypeValidableDef<string> & {
|
135
|
-
default: string;
|
136
|
-
};
|
137
|
-
direction: import("vue-types").VueTypeValidableDef<string> & {
|
138
|
-
default: string;
|
139
|
-
};
|
140
|
-
animateType: import("vue-types").VueTypeValidableDef<string> & {
|
141
|
-
default: string;
|
142
|
-
} & {
|
143
|
-
default: string;
|
144
|
-
};
|
145
|
-
renderDirective: import("vue-types").VueTypeValidableDef<"if" | "show"> & {
|
146
|
-
default: "if" | "show";
|
147
|
-
};
|
148
|
-
beforeClose: import("vue-types").VueTypeDef<unknown>;
|
149
|
-
multiInstance: import("vue-types").VueTypeValidableDef<boolean> & {
|
150
|
-
default: boolean;
|
151
|
-
} & {
|
152
|
-
default: boolean;
|
153
|
-
};
|
154
|
-
infoType: import("vue-types").VueTypeDef<"success" | "warning" | "danger" | "primary">;
|
155
|
-
}>> & {
|
5
|
+
$props: {
|
6
|
+
title?: string;
|
7
|
+
transfer?: string | boolean | HTMLElement;
|
8
|
+
width?: string | number;
|
9
|
+
height?: string | number;
|
10
|
+
maxHeight?: string;
|
11
|
+
extCls?: string | unknown[];
|
12
|
+
direction?: string;
|
13
|
+
isShow?: boolean;
|
14
|
+
theme?: "success" | "warning" | "danger" | "primary";
|
15
|
+
zIndex?: string | number;
|
16
|
+
draggable?: boolean;
|
17
|
+
showMask?: boolean;
|
18
|
+
multiInstance?: boolean;
|
19
|
+
renderDirective?: "if" | "show";
|
20
|
+
quickClose?: boolean;
|
21
|
+
scrollable?: boolean;
|
22
|
+
closeIcon?: boolean;
|
23
|
+
escClose?: boolean;
|
24
|
+
fullscreen?: boolean;
|
25
|
+
animateType?: string;
|
26
|
+
confirmText?: string;
|
27
|
+
cancelText?: string;
|
28
|
+
prevText?: string;
|
29
|
+
nextText?: string;
|
30
|
+
current?: number;
|
31
|
+
totalStep?: number;
|
32
|
+
headerAlign?: "left" | "center" | "right";
|
33
|
+
footerAlign?: "left" | "center" | "right";
|
34
|
+
isLoading?: boolean;
|
35
|
+
class?: unknown;
|
36
|
+
style?: unknown;
|
37
|
+
readonly dialogType?: "process" | "show" | "operation" | "confirm";
|
38
|
+
key?: string | number | symbol;
|
39
|
+
ref?: import("vue").VNodeRef;
|
40
|
+
ref_for?: boolean;
|
41
|
+
ref_key?: string;
|
42
|
+
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
43
|
+
[key: string]: any;
|
44
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
45
|
+
[key: string]: any;
|
46
|
+
}>) => void)[];
|
47
|
+
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
48
|
+
[key: string]: any;
|
49
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
50
|
+
[key: string]: any;
|
51
|
+
}>) => void)[];
|
52
|
+
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
53
|
+
[key: string]: any;
|
54
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
55
|
+
[key: string]: any;
|
56
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
57
|
+
[key: string]: any;
|
58
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
59
|
+
[key: string]: any;
|
60
|
+
}>) => void)[];
|
61
|
+
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
62
|
+
[key: string]: any;
|
63
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
64
|
+
[key: string]: any;
|
65
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
66
|
+
[key: string]: any;
|
67
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
68
|
+
[key: string]: any;
|
69
|
+
}>) => void)[];
|
70
|
+
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
71
|
+
[key: string]: any;
|
72
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
73
|
+
[key: string]: any;
|
74
|
+
}>) => void)[];
|
75
|
+
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
76
|
+
[key: string]: any;
|
77
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
78
|
+
[key: string]: any;
|
79
|
+
}>) => void)[];
|
80
|
+
readonly size?: "small" | "medium" | "large" | "normal";
|
81
|
+
readonly beforeClose?: unknown;
|
82
|
+
readonly infoType?: "success" | "warning" | "danger" | "primary";
|
156
83
|
onConfirm?: (...args: any[]) => any;
|
157
84
|
onPrev?: (...args: any[]) => any;
|
158
85
|
onNext?: (...args: any[]) => any;
|
159
86
|
onClosed?: (...args: any[]) => any;
|
160
87
|
"onUpdate:isShow"?: (...args: any[]) => any;
|
161
88
|
"onValue-change"?: (...args: any[]) => any;
|
162
|
-
}
|
89
|
+
};
|
163
90
|
$attrs: {
|
164
91
|
[x: string]: unknown;
|
165
92
|
};
|
@@ -167,11 +94,11 @@ declare const BkDialog: {
|
|
167
94
|
[x: string]: unknown;
|
168
95
|
};
|
169
96
|
$slots: Readonly<{
|
170
|
-
[name: string]: import("vue").Slot
|
97
|
+
[name: string]: import("vue").Slot<any>;
|
171
98
|
}>;
|
172
|
-
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
173
|
-
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
174
|
-
$emit: (event: "prev" | "next" | "
|
99
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
100
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
101
|
+
$emit: (event: "prev" | "next" | "confirm" | "closed" | "update:isShow" | "value-change", ...args: any[]) => void;
|
175
102
|
$el: any;
|
176
103
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
177
104
|
width: import("vue-types").VueTypeDef<string | number> & {
|
@@ -321,7 +248,7 @@ declare const BkDialog: {
|
|
321
248
|
localCancelText: import("vue").ComputedRef<string>;
|
322
249
|
localPrevText: import("vue").ComputedRef<string>;
|
323
250
|
localNextText: import("vue").ComputedRef<string>;
|
324
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next" | "
|
251
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next" | "confirm" | "closed" | "update:isShow" | "value-change")[], string, {
|
325
252
|
title: string;
|
326
253
|
transfer: string | boolean | HTMLElement;
|
327
254
|
width: string | number;
|
@@ -351,7 +278,7 @@ declare const BkDialog: {
|
|
351
278
|
headerAlign: "left" | "center" | "right";
|
352
279
|
footerAlign: "left" | "center" | "right";
|
353
280
|
isLoading: boolean;
|
354
|
-
}> & {
|
281
|
+
}, {}, string, {}> & {
|
355
282
|
beforeCreate?: (() => void) | (() => void)[];
|
356
283
|
created?: (() => void) | (() => void)[];
|
357
284
|
beforeMount?: (() => void) | (() => void)[];
|
@@ -366,11 +293,11 @@ declare const BkDialog: {
|
|
366
293
|
unmounted?: (() => void) | (() => void)[];
|
367
294
|
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
368
295
|
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
369
|
-
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}
|
296
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
370
297
|
};
|
371
298
|
$forceUpdate: () => void;
|
372
299
|
$nextTick: typeof import("vue").nextTick;
|
373
|
-
$watch
|
300
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
374
301
|
} & Readonly<import("vue").ExtractPropTypes<{
|
375
302
|
width: import("vue-types").VueTypeDef<string | number> & {
|
376
303
|
default: string | number;
|
@@ -519,7 +446,7 @@ declare const BkDialog: {
|
|
519
446
|
localCancelText: import("vue").ComputedRef<string>;
|
520
447
|
localPrevText: import("vue").ComputedRef<string>;
|
521
448
|
localNextText: import("vue").ComputedRef<string>;
|
522
|
-
}> & {} &
|
449
|
+
}> & {} & import("vue").ComponentCustomProperties & {};
|
523
450
|
__isFragment?: never;
|
524
451
|
__isTeleport?: never;
|
525
452
|
__isSuspense?: never;
|
@@ -671,7 +598,7 @@ declare const BkDialog: {
|
|
671
598
|
localCancelText: import("vue").ComputedRef<string>;
|
672
599
|
localPrevText: import("vue").ComputedRef<string>;
|
673
600
|
localNextText: import("vue").ComputedRef<string>;
|
674
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next" | "
|
601
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("prev" | "next" | "confirm" | "closed" | "update:isShow" | "value-change")[], "prev" | "next" | "confirm" | "closed" | "update:isShow" | "value-change", {
|
675
602
|
title: string;
|
676
603
|
transfer: string | boolean | HTMLElement;
|
677
604
|
width: string | number;
|
@@ -701,5 +628,5 @@ declare const BkDialog: {
|
|
701
628
|
headerAlign: "left" | "center" | "right";
|
702
629
|
footerAlign: "left" | "center" | "right";
|
703
630
|
isLoading: boolean;
|
704
|
-
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("
|
631
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
705
632
|
export default BkDialog;
|
package/lib/dialog/index.js
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../button"),require("../config-provider"),require("../icon"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../config-provider","../icon","../modal"],t);else{var r="object"==typeof exports?t(require("../shared"),require("vue"),require("../button"),require("../config-provider"),require("../icon"),require("../modal")):t(e["../shared"],e.vue,e["../button"],e["../config-provider"],e["../icon"],e["../modal"]);for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,((e,t,r,o,n,i)=>(()=>{var a={7162:(e,t,r)=>{e.exports=r(5047)},5047:e=>{var t=function(e){"use strict";var t,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,r){return e[t]=r}}function s(e,t,r,o){var n=t&&t.prototype instanceof m?t:m,i=Object.create(n.prototype),a=new P(o||[]);return i._invoke=function(e,t,r){var o=f;return function(n,i){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===n)throw i;return O()}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var l=L(a,r);if(l){if(l===v)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===f)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var c=u(e,t,r);if("normal"===c.type){if(o=r.done?h:d,c.arg===v)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=h,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function u(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={};function m(){}function g(){}function y(){}var x={};c(x,i,(function(){return this}));var w=Object.getPrototypeOf,b=w&&w(w(j([])));b&&b!==r&&o.call(b,i)&&(x=b);var T=y.prototype=m.prototype=Object.create(x);function N(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(n,i,a,l){var c=u(e[n],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==typeof f&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,l)}),(function(e){r("throw",e,a,l)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,l)}))}l(c.arg)}var n;this._invoke=function(e,o){function i(){return new t((function(t,n){r(e,o,t,n)}))}return n=n?n.then(i,i):i()}}function L(e,r){var o=e.iterator[r.method];if(o===t){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var n=u(o,e.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,v;var i=n.arg;return i?i.done?(r[e.resultName]=i.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function j(e){if(e){var r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function r(){for(;++n<e.length;)if(o.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return g.prototype=y,c(T,"constructor",y),c(y,"constructor",g),g.displayName=c(y,l,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,c(e,l,"GeneratorFunction")),e.prototype=Object.create(T),e},e.awrap=function(e){return{__await:e}},N(C.prototype),c(C.prototype,a,(function(){return this})),e.AsyncIterator=C,e.async=function(t,r,o,n,i){void 0===i&&(i=Promise);var a=new C(s(t,r,o,n),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},N(T),c(T,l,"Generator"),c(T,i,(function(){return this})),c(T,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var o=t.pop();if(o in e)return r.value=o,r.done=!1,r}return r.done=!0,r}},e.values=j,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(E),!e)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(o,n){return l.type="throw",l.arg=e,r.next=o,n&&(r.method="next",r.arg=t),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),s=o.call(a,"finallyLoc");if(c&&s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var o=r.completion;if("throw"===o.type){var n=o.arg;E(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:j(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},4976:e=>{"use strict";e.exports=r},2717:e=>{"use strict";e.exports=o},6870:e=>{"use strict";e.exports=n},8014:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var r=l[e]={exports:{}};return a[e](r,r.exports,c),r.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 r in t)c.o(t,r)&&!c.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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 s={};return(()=>{"use strict";c.r(s),c.d(s,{default:()=>h});var e=c(4212),t=c(748),r=c(7162),o=c.n(r);Object.create,Object.create;var n=c(4976),i=c.n(n),a=c(2717),l=c(6870),u=c(8014),f=c.n(u);const d=Object.assign(Object.assign({},u.propsMixin),{width:e.PropTypes.oneOfType([String,Number]).def(""),height:e.PropTypes.oneOfType([String,Number]).def(""),confirmText:e.PropTypes.string,cancelText:e.PropTypes.string,prevText:e.PropTypes.string,nextText:e.PropTypes.string,current:e.PropTypes.number.def(1),totalStep:e.PropTypes.number,title:e.PropTypes.string.def("title"),headerAlign:(0,e.alignType)().def(e.AlignEnum.LEFT),footerAlign:(0,e.alignType)().def(e.AlignEnum.RIGHT),theme:e.PropTypes.theme().def(e.ThemeEnum.PRIMARY),dialogType:(0,e.dialogTypeUnion)(),isLoading:e.PropTypes.bool.def(!1)}),p=(0,t.defineComponent)({name:"Dialog",components:{BkModal:f(),BkButton:i()},props:d,emits:["closed","update:isShow","confirm","prev","next","value-change"],setup:function(e,r){var n=this,i=r.emit,l=(0,a.useLocale)("dialog"),c=(0,t.computed)((function(){return void 0===e.confirmText?l.value.ok:e.confirmText})),s=(0,t.computed)((function(){return void 0===e.cancelText?l.value.cancel:e.cancelText})),u=(0,t.computed)((function(){return void 0===e.prevText?l.value.prev:e.prevText})),f=(0,t.computed)((function(){return void 0===e.nextText?l.value.next:e.nextText})),d=(0,t.reactive)({positionX:0,positionY:0,moveStyle:{top:"",left:""}}),p=(0,t.ref)(e.isShow);(0,t.onMounted)((function(){e.escClose&&addEventListener("keydown",m)})),(0,t.onBeforeUnmount)((function(){e.escClose&&removeEventListener("keydown",m)})),(0,t.watch)((function(){return e.isShow}),(function(e){e?p.value=!0:setTimeout((function(){d.moveStyle={top:"50%",left:"50%"},d.positionX=0,d.positionY=0,p.value=!1}),250),i("value-change",e)}));var h=function(){return t=n,r=void 0,a=void 0,l=o().mark((function t(){var r;return o().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(r=!0,"function"!=typeof e.beforeClose){t.next=5;break}return t.next=4,e.beforeClose();case 4:r=t.sent;case 5:r&&(i("update:isShow",!1),i("closed"),p.value=!1);case 6:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,o){function n(e){try{c(l.next(e))}catch(e){o(e)}}function i(e){try{c(l.throw(e))}catch(e){o(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof a?r:new a((function(e){e(r)}))).then(n,i)}c((l=l.apply(t,r||[])).next())}));var t,r,a,l},v=(0,t.computed)((function(){return["process","operation","confirm"].includes(e.dialogType)})),m=function(t){e.isShow&&e.closeIcon&&27===t.keyCode&&h()};return{data:d,handleClose:h,handleConfirm:function(){i("update:isShow",!1),i("confirm")},escCloseHandler:m,moveHandler:function(t){if(e.fullscreen)return!1;if(!e.draggable)return!1;var r,o,n=t.target,i=t.currentTarget.parentNode.parentNode.offsetHeight,a=t.currentTarget.parentNode.parentNode.offsetWidth;0!==d.positionX&&0!==d.positionY?(r=t.clientX-d.positionX,o=t.clientY-d.positionY):(r=t.clientX-n.offsetLeft,o=t.clientY-n.offsetTop),document.onmousemove=function(e){var t=window.innerWidth-a,n=window.innerHeight-i,l=e.clientX-r,c=e.clientY-o;t/2-l<=0?l=t/2:t/2+l<=0&&(l=-t/2),n/2-c<=0?c=n/2:n/2+c<=0&&(c=-n/2),d.positionX=l,d.positionY=c,d.moveStyle.left="calc(50% + ".concat(l,"px)"),d.moveStyle.top="calc(50% + ".concat(c,"px)")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}},handlePrevStep:function(){i("prev")},handleNextStep:function(){i("next")},hasFooter:v,isModalShow:p,localConfirmText:c,localCancelText:s,localPrevText:u,localNextText:f}},render:function(){var r,o=this,n={header:function(){var r,n,i,a,c,s;return[(0,t.createVNode)("div",{class:[(0,e.resolveClassName)("dialog-tool"),o.fullscreen||!o.draggable?"":"move",o.draggable?"content-dragging":""],onMousedown:o.moveHandler},[null!==(i=null===(n=(r=o.$slots).tools)||void 0===n?void 0:n.call(r))&&void 0!==i?i:""]),(0,t.createVNode)("div",{class:(0,e.resolveClassName)("dialog-header")},[(0,t.createVNode)("div",{class:(0,e.resolveClassName)("header-icon")},[o.infoType?{loading:(0,t.createVNode)(l.Spinner,{class:[(0,e.resolveClassName)("info-icon"),"primary"]},null),warning:(0,t.createVNode)(l.Warn,{class:[(0,e.resolveClassName)("info-icon"),"warning"]},null),success:(0,t.createVNode)(l.Success,{class:[(0,e.resolveClassName)("info-icon"),"success"]},null),danger:(0,t.createVNode)(l.Close,{class:[(0,e.resolveClassName)("info-icon"),"danger"]},null)}[o.infoType]:(0,t.createVNode)("slot",{name:"info-icon"},null)]),(0,t.createVNode)("span",{class:(0,e.resolveClassName)("dialog-title"),style:"text-align: ".concat(o.headerAlign)},[null!==(s=null===(c=(a=o.$slots).header)||void 0===c?void 0:c.call(a))&&void 0!==s?s:o.title])])]},default:function(){var e,t,r;return null!==(r=null===(t=(e=o.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==r?r:"default"},footer:function(){var r,n,a,l,c,s,u,f,d;return(0,t.createVNode)("div",{class:(0,e.resolveClassName)("dialog-footer"),style:"text-align: ".concat(o.footerAlign)},["process"===o.dialogType?null!==(a=null===(n=(r=o.$slots).footer)||void 0===n?void 0:n.call(r))&&void 0!==a?a:(0,t.createVNode)(t.Fragment,null,[1===o.current?"":(0,t.createVNode)(i(),{class:(0,e.resolveClassName)("dialog-perv"),onClick:o.handlePrevStep},{default:function(){return[o.localPrevText]}}),o.current===o.totalStep?"":(0,t.createVNode)(i(),{class:(0,e.resolveClassName)("dialog-next"),onClick:o.handleNextStep},{default:function(){return[o.localNextText]}}),o.current===o.totalStep?(0,t.createVNode)(i(),{onClick:o.handleConfirm,theme:o.theme,loading:o.isLoading},{default:function(){return[o.localConfirmText]}}):"",(0,t.createVNode)(i(),{class:(0,e.resolveClassName)("dialog-cancel"),onClick:o.handleClose,disabled:o.isLoading},{default:function(){return[o.localCancelText]}})]):"","operation"===o.dialogType?null!==(s=null===(c=(l=o.$slots).footer)||void 0===c?void 0:c.call(l))&&void 0!==s?s:(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)(i(),{onClick:o.handleConfirm,theme:o.theme,loading:o.isLoading},{default:function(){return[o.localConfirmText]}}),(0,t.createVNode)(i(),{class:(0,e.resolveClassName)("dialog-cancel"),onClick:o.handleClose,disabled:o.isLoading},{default:function(){return[o.localCancelText]}})]):"","confirm"===o.dialogType?null!==(d=null===(f=(u=o.$slots).footer)||void 0===f?void 0:f.call(u))&&void 0!==d?d:(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)(i(),{onClick:o.handleConfirm,theme:o.theme,loading:o.isLoading},{default:function(){return[o.localConfirmText]}})]):""])},close:function(){return(0,t.createVNode)(l.Error,{onClick:o.handleClose},null)}},a="".concat((0,e.resolveClassName)("dialog-wrapper ")," ").concat(this.scrollable?"scroll-able":""," ").concat(this.multiInstance?"multi-instance":""," ").concat(this.hasFooter?"has-footer":"no-footer");return(0,t.createVNode)(f(),(0,t.mergeProps)(this.$props,{class:a,onClose:this.handleClose,isShow:this.isModalShow,style:this.data.moveStyle}),"function"==typeof(r=n)||"[object Object]"===Object.prototype.toString.call(r)&&!(0,t.isVNode)(r)?n:{default:function(){return[n]}})}}),h=(0,e.withInstall)(p)})(),s})()));
|
1
|
+
/*! For license information please see index.js.LICENSE.txt */
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"),require("../button"),require("../config-provider"),require("../icon"),require("../modal"));else if("function"==typeof define&&define.amd)define(["../shared","vue","../button","../config-provider","../icon","../modal"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue"),require("../button"),require("../config-provider"),require("../icon"),require("../modal")):t(e["../shared"],e.vue,e["../button"],e["../config-provider"],e["../icon"],e["../modal"]);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t,o,r,n,i)=>(()=>{var a={4976:e=>{"use strict";e.exports=o},2717:e=>{"use strict";e.exports=r},6870:e=>{"use strict";e.exports=n},8014:e=>{"use strict";e.exports=i},4212:t=>{"use strict";t.exports=e},748:e=>{"use strict";e.exports=t},7609:(e,t,o)=>{var r=o(7425).default;function n(){"use strict";e.exports=n=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},o=Object.prototype,i=o.hasOwnProperty,a=Object.defineProperty||function(e,t,o){e[t]=o.value},l="function"==typeof Symbol?Symbol:{},c=l.iterator||"@@iterator",s=l.asyncIterator||"@@asyncIterator",u=l.toStringTag||"@@toStringTag";function f(e,t,o){return Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,o){return e[t]=o}}function d(e,t,o,r){var n=t&&t.prototype instanceof v?t:v,i=Object.create(n.prototype),l=new j(r||[]);return a(i,"_invoke",{value:C(e,o,l)}),i}function p(e,t,o){try{return{type:"normal",arg:e.call(t,o)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h={};function v(){}function m(){}function y(){}var g={};f(g,c,(function(){return this}));var x=Object.getPrototypeOf,b=x&&x(x(P([])));b&&b!==o&&i.call(b,c)&&(g=b);var w=y.prototype=v.prototype=Object.create(g);function T(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function N(e,t){function o(n,a,l,c){var s=p(e[n],e,a);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==r(f)&&i.call(f,"__await")?t.resolve(f.__await).then((function(e){o("next",e,l,c)}),(function(e){o("throw",e,l,c)})):t.resolve(f).then((function(e){u.value=e,l(u)}),(function(e){return o("throw",e,l,c)}))}c(s.arg)}var n;a(this,"_invoke",{value:function(e,r){function i(){return new t((function(t,n){o(e,r,t,n)}))}return n=n?n.then(i,i):i()}})}function C(e,t,o){var r="suspendedStart";return function(n,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===n)throw i;return{value:void 0,done:!0}}for(o.method=n,o.arg=i;;){var a=o.delegate;if(a){var l=S(a,o);if(l){if(l===h)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===r)throw r="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);r="executing";var c=p(e,t,o);if("normal"===c.type){if(r=o.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(r="completed",o.method="throw",o.arg=c.arg)}}}function S(e,t){var o=t.method,r=e.iterator[o];if(void 0===r)return t.delegate=null,"throw"===o&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==o&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+o+"' method")),h;var n=p(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,h;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function L(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(L,this),this.reset(!0)}function P(e){if(e){var t=e[c];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,r=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return m.prototype=y,a(w,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:m,configurable:!0}),m.displayName=f(y,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,f(e,u,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},T(N.prototype),f(N.prototype,s,(function(){return this})),t.AsyncIterator=N,t.async=function(e,o,r,n,i){void 0===i&&(i=Promise);var a=new N(d(e,o,r,n),i);return t.isGeneratorFunction(o)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(w),f(w,u,"Generator"),f(w,c,(function(){return this})),f(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),o=[];for(var r in t)o.push(r);return o.reverse(),function e(){for(;o.length;){var r=o.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=P,j.prototype={constructor:j,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function o(o,r){return a.type="throw",a.arg=e,t.next=o,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r],a=n.completion;if("root"===n.tryLoc)return o("end");if(n.tryLoc<=this.prev){var l=i.call(n,"catchLoc"),c=i.call(n,"finallyLoc");if(l&&c){if(this.prev<n.catchLoc)return o(n.catchLoc,!0);if(this.prev<n.finallyLoc)return o(n.finallyLoc)}else if(l){if(this.prev<n.catchLoc)return o(n.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return o(n.finallyLoc)}}}},abrupt:function(e,t){for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var n=r;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=t&&t<=n.finallyLoc&&(n=null);var a=n?n.completion:{};return a.type=e,a.arg=t,n?(this.method="next",this.next=n.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),E(o),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var o=this.tryEntries[t];if(o.tryLoc===e){var r=o.completion;if("throw"===r.type){var n=r.arg;E(o)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,o){return this.delegate={iterator:P(e),resultName:t,nextLoc:o},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(o){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(o)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,o)=>{var r=o(7609)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},l={};function c(e){var t=l[e];if(void 0!==t)return t.exports;var o=l[e]={exports:{}};return a[e](o,o.exports,c),o.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 o in t)c.o(t,o)&&!c.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},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 s={};return(()=>{"use strict";c.r(s),c.d(s,{default:()=>h});var e=c(4212),t=c(748),o=c(2841),r=c.n(o);Object.create,Object.create,"function"==typeof SuppressedError&&SuppressedError;var n=c(4976),i=c.n(n),a=c(2717),l=c(6870),u=c(8014),f=c.n(u);const d=Object.assign(Object.assign({},u.propsMixin),{width:e.PropTypes.oneOfType([String,Number]).def(""),height:e.PropTypes.oneOfType([String,Number]).def(""),confirmText:e.PropTypes.string,cancelText:e.PropTypes.string,prevText:e.PropTypes.string,nextText:e.PropTypes.string,current:e.PropTypes.number.def(1),totalStep:e.PropTypes.number,title:e.PropTypes.string.def("title"),headerAlign:(0,e.alignType)().def(e.AlignEnum.LEFT),footerAlign:(0,e.alignType)().def(e.AlignEnum.RIGHT),theme:e.PropTypes.theme().def(e.ThemeEnum.PRIMARY),dialogType:(0,e.dialogTypeUnion)(),isLoading:e.PropTypes.bool.def(!1)}),p=(0,t.defineComponent)({name:"Dialog",components:{BkModal:f(),BkButton:i()},props:d,emits:["closed","update:isShow","confirm","prev","next","value-change"],setup:function(e,o){var n=this,i=o.emit,l=(0,a.useLocale)("dialog"),c=(0,t.computed)((function(){return void 0===e.confirmText?l.value.ok:e.confirmText})),s=(0,t.computed)((function(){return void 0===e.cancelText?l.value.cancel:e.cancelText})),u=(0,t.computed)((function(){return void 0===e.prevText?l.value.prev:e.prevText})),f=(0,t.computed)((function(){return void 0===e.nextText?l.value.next:e.nextText})),d=(0,t.reactive)({positionX:0,positionY:0,moveStyle:{top:"",left:""}}),p=(0,t.ref)(e.isShow);(0,t.onMounted)((function(){e.escClose&&addEventListener("keydown",m)})),(0,t.onBeforeUnmount)((function(){e.escClose&&removeEventListener("keydown",m)})),(0,t.watch)((function(){return e.isShow}),(function(e){e?p.value=!0:setTimeout((function(){d.moveStyle={top:"50%",left:"50%"},d.positionX=0,d.positionY=0,p.value=!1}),250),i("value-change",e)}));var h=function(){return t=n,o=void 0,a=void 0,l=r().mark((function t(){var o;return r().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=!0,"function"!=typeof e.beforeClose){t.next=5;break}return t.next=4,e.beforeClose();case 4:o=t.sent;case 5:o&&(i("update:isShow",!1),i("closed"),p.value=!1);case 6:case"end":return t.stop()}}),t)})),new(a||(a=Promise))((function(e,r){function n(e){try{c(l.next(e))}catch(e){r(e)}}function i(e){try{c(l.throw(e))}catch(e){r(e)}}function c(t){var o;t.done?e(t.value):(o=t.value,o instanceof a?o:new a((function(e){e(o)}))).then(n,i)}c((l=l.apply(t,o||[])).next())}));var t,o,a,l},v=(0,t.computed)((function(){return["process","operation","confirm"].includes(e.dialogType)})),m=function(t){e.isShow&&e.closeIcon&&27===t.keyCode&&h()};return{data:d,handleClose:h,handleConfirm:function(){i("update:isShow",!1),i("confirm")},escCloseHandler:m,moveHandler:function(t){if(e.fullscreen)return!1;if(!e.draggable)return!1;var o,r,n=t.target,i=t.currentTarget.parentNode.parentNode.offsetHeight,a=t.currentTarget.parentNode.parentNode.offsetWidth;0!==d.positionX&&0!==d.positionY?(o=t.clientX-d.positionX,r=t.clientY-d.positionY):(o=t.clientX-n.offsetLeft,r=t.clientY-n.offsetTop),document.onmousemove=function(e){var t=window.innerWidth-a,n=window.innerHeight-i,l=e.clientX-o,c=e.clientY-r;t/2-l<=0?l=t/2:t/2+l<=0&&(l=-t/2),n/2-c<=0?c=n/2:n/2+c<=0&&(c=-n/2),d.positionX=l,d.positionY=c,d.moveStyle.left="calc(50% + ".concat(l,"px)"),d.moveStyle.top="calc(50% + ".concat(c,"px)")},document.onmouseup=function(){document.onmousemove=null,document.onmouseup=null}},handlePrevStep:function(){i("prev")},handleNextStep:function(){i("next")},hasFooter:v,isModalShow:p,localConfirmText:c,localCancelText:s,localPrevText:u,localNextText:f}},render:function(){var o,r=this,n={header:function(){var o,n,i,a,c,s;return[(0,t.createVNode)("div",{class:[(0,e.resolveClassName)("dialog-tool"),r.fullscreen||!r.draggable?"":"move",r.draggable?"content-dragging":""],onMousedown:r.moveHandler},[null!==(i=null===(n=(o=r.$slots).tools)||void 0===n?void 0:n.call(o))&&void 0!==i?i:""]),(0,t.createVNode)("div",{class:(0,e.resolveClassName)("dialog-header")},[(0,t.createVNode)("div",{class:(0,e.resolveClassName)("header-icon")},[r.infoType?{loading:(0,t.createVNode)(l.Spinner,{class:[(0,e.resolveClassName)("info-icon"),"primary"]},null),warning:(0,t.createVNode)(l.Warn,{class:[(0,e.resolveClassName)("info-icon"),"warning"]},null),success:(0,t.createVNode)(l.Success,{class:[(0,e.resolveClassName)("info-icon"),"success"]},null),danger:(0,t.createVNode)(l.Close,{class:[(0,e.resolveClassName)("info-icon"),"danger"]},null)}[r.infoType]:(0,t.createVNode)("slot",{name:"info-icon"},null)]),(0,t.createVNode)("span",{class:(0,e.resolveClassName)("dialog-title"),style:"text-align: ".concat(r.headerAlign)},[null!==(s=null===(c=(a=r.$slots).header)||void 0===c?void 0:c.call(a))&&void 0!==s?s:r.title])])]},default:function(){var e,t,o;return null!==(o=null===(t=(e=r.$slots).default)||void 0===t?void 0:t.call(e))&&void 0!==o?o:"default"},footer:function(){var o,n,a,l,c,s,u,f,d;return(0,t.createVNode)("div",{class:(0,e.resolveClassName)("dialog-footer"),style:"text-align: ".concat(r.footerAlign)},["process"===r.dialogType?null!==(a=null===(n=(o=r.$slots).footer)||void 0===n?void 0:n.call(o))&&void 0!==a?a:(0,t.createVNode)(t.Fragment,null,[1===r.current?"":(0,t.createVNode)(i(),{class:(0,e.resolveClassName)("dialog-perv"),onClick:r.handlePrevStep},{default:function(){return[r.localPrevText]}}),r.current===r.totalStep?"":(0,t.createVNode)(i(),{class:(0,e.resolveClassName)("dialog-next"),onClick:r.handleNextStep},{default:function(){return[r.localNextText]}}),r.current===r.totalStep?(0,t.createVNode)(i(),{onClick:r.handleConfirm,theme:r.theme,loading:r.isLoading},{default:function(){return[r.localConfirmText]}}):"",(0,t.createVNode)(i(),{class:(0,e.resolveClassName)("dialog-cancel"),onClick:r.handleClose,disabled:r.isLoading},{default:function(){return[r.localCancelText]}})]):"","operation"===r.dialogType?null!==(s=null===(c=(l=r.$slots).footer)||void 0===c?void 0:c.call(l))&&void 0!==s?s:(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)(i(),{onClick:r.handleConfirm,theme:r.theme,loading:r.isLoading},{default:function(){return[r.localConfirmText]}}),(0,t.createVNode)(i(),{class:(0,e.resolveClassName)("dialog-cancel"),onClick:r.handleClose,disabled:r.isLoading},{default:function(){return[r.localCancelText]}})]):"","confirm"===r.dialogType?null!==(d=null===(f=(u=r.$slots).footer)||void 0===f?void 0:f.call(u))&&void 0!==d?d:(0,t.createVNode)(t.Fragment,null,[(0,t.createVNode)(i(),{onClick:r.handleConfirm,theme:r.theme,loading:r.isLoading},{default:function(){return[r.localConfirmText]}})]):""])},close:function(){return(0,t.createVNode)(l.Error,{onClick:r.handleClose},null)}},a="".concat((0,e.resolveClassName)("dialog-wrapper ")," ").concat(this.scrollable?"scroll-able":""," ").concat(this.multiInstance?"multi-instance":""," ").concat(this.hasFooter?"has-footer":"no-footer");return(0,t.createVNode)(f(),(0,t.mergeProps)(this.$props,{class:a,onClose:this.handleClose,isShow:this.isModalShow,style:this.data.moveStyle}),"function"==typeof(o=n)||"[object Object]"===Object.prototype.toString.call(o)&&!(0,t.isVNode)(o)?n:{default:function(){return[n]}})}}),h=(0,e.withInstall)(p)})(),s})()));
|
@@ -0,0 +1 @@
|
|
1
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
package/lib/divider/divider.d.ts
CHANGED
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
18
18
|
type: import("vue-types").VueTypeDef<"dashed" | "solid"> & {
|
19
19
|
default: "dashed" | "solid";
|
20
20
|
};
|
21
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
21
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
22
22
|
direction: import("vue-types").VueTypeDef<"horizontal" | "vertical"> & {
|
23
23
|
default: "horizontal" | "vertical";
|
24
24
|
};
|
@@ -44,5 +44,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
44
44
|
direction: "horizontal" | "vertical";
|
45
45
|
color: string;
|
46
46
|
align: "left" | "center" | "right";
|
47
|
-
}>;
|
47
|
+
}, {}>;
|
48
48
|
export default _default;
|