bkui-vue 2.0.1-beta.12 → 2.0.1-beta.13
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 +165 -165
- package/dist/index.esm.js +31258 -31263
- package/dist/index.umd.js +165 -165
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +7 -7
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/index.d.ts +11 -11
- package/lib/backtop/backtop.d.ts +1 -1
- package/lib/backtop/index.d.ts +3 -3
- package/lib/backtop/index.js +6 -6
- package/lib/badge/index.js +1 -1
- package/lib/button/button.d.ts +7 -7
- package/lib/button/index.d.ts +8 -8
- package/lib/button/index.js +6 -6
- package/lib/cascader/cascader-panel.d.ts +1 -1
- package/lib/cascader/cascader.d.ts +1 -1
- package/lib/cascader/index.js +31 -32
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/index.js +3 -3
- package/lib/checkbox/type.d.ts +1 -1
- package/lib/code-diff/index.js +8 -8
- package/lib/collapse/index.js +2 -2
- package/lib/collapse/utils.d.ts +2 -2
- package/lib/color-picker/index.js +44 -44
- package/lib/components.d.ts +32 -32
- package/lib/components.js +31 -31
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/container/index.js +6 -6
- package/lib/date-picker/base/date-table.d.ts +1 -1
- package/lib/date-picker/base/month-table.d.ts +1 -1
- package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
- package/lib/date-picker/base/year-table.d.ts +1 -1
- package/lib/date-picker/index.js +189 -188
- package/lib/date-picker/interface.d.ts +9 -9
- package/lib/date-picker/panel/date-range.d.ts +1 -1
- package/lib/date-picker/panel/date.d.ts +1 -1
- package/lib/date-picker/panel/time-range.d.ts +1 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/props.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +1 -1
- package/lib/dialog/dialog.d.ts +18 -18
- package/lib/dialog/index.d.ts +40 -40
- package/lib/dialog/index.js +22 -22
- package/lib/dialog/props.d.ts +7 -7
- package/lib/directives/index.d.ts +3 -3
- package/lib/directives/index.js +166 -166
- package/lib/directives/tooltips.d.ts +1 -1
- package/lib/dist.index.js +3 -2
- package/lib/divider/divider.d.ts +5 -5
- package/lib/divider/index.d.ts +11 -11
- package/lib/divider/index.js +2 -2
- package/lib/divider/props.d.ts +2 -2
- package/lib/dropdown/dropdown.d.ts +5 -5
- package/lib/dropdown/index.d.ts +11 -11
- package/lib/dropdown/index.js +7 -7
- package/lib/exception/exception.d.ts +9 -9
- package/lib/exception/index.d.ts +11 -11
- package/lib/exception/index.js +10 -10
- package/lib/exception/typings/index.d.ts +1 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form.d.ts +2 -2
- package/lib/form/index.js +14 -14
- package/lib/form/type.d.ts +2 -2
- package/lib/icon/index.d.ts +11 -11
- package/lib/icon/index.js +11 -11
- package/lib/image/image-viewer.d.ts +1 -1
- package/lib/image/index.js +20 -20
- package/lib/index.d.ts +4 -3
- package/lib/index.js +4 -4
- package/lib/info-box/index.js +13 -13
- package/lib/info-box/info-box.d.ts +15 -15
- package/lib/input/index.d.ts +15 -15
- package/lib/input/index.js +16 -16
- package/lib/input/input.d.ts +15 -15
- package/lib/link/index.d.ts +11 -11
- package/lib/link/index.js +3 -3
- package/lib/link/link.d.ts +5 -5
- package/lib/loading/index.d.ts +4 -4
- package/lib/loading/index.js +6 -6
- package/lib/loading/loading.d.ts +6 -6
- package/lib/locale/index.d.ts +1 -1
- package/lib/menu/index.js +0 -1
- package/lib/menu/utils.d.ts +3 -3
- package/lib/message/index.js +18 -18
- package/lib/message/messageConstructor.d.ts +11 -11
- package/lib/modal/index.d.ts +3 -3
- package/lib/modal/index.js +7 -7
- package/lib/modal/modal.d.ts +1 -1
- package/lib/navigation/index.js +20 -20
- package/lib/navigation/navigation.d.ts +1 -1
- package/lib/notify/index.js +4 -4
- package/lib/overflow-title/components/overflow-title.d.ts +9 -9
- package/lib/overflow-title/index.d.ts +19 -19
- package/lib/overflow-title/index.js +61 -11
- package/lib/overflow-title/props.d.ts +18 -18
- package/lib/pagination/index.js +16 -16
- package/lib/pagination/type.d.ts +1 -1
- package/lib/pagination/use-limit.d.ts +1 -1
- package/lib/pagination/use-total.d.ts +1 -1
- package/lib/plugin-popover/index.js +18 -19
- package/lib/pop-confirm/index.d.ts +11 -11
- package/lib/pop-confirm/index.js +9 -9
- package/lib/pop-confirm/pop-confirm.d.ts +5 -5
- package/lib/pop-confirm/props.d.ts +4 -4
- package/lib/popover/const.d.ts +3 -3
- package/lib/popover/index.d.ts +19 -19
- package/lib/popover/index.js +18 -19
- package/lib/popover/plugin-popover.d.ts +1 -1
- package/lib/popover/popover.d.ts +7 -7
- package/lib/popover/props.d.ts +4 -4
- package/lib/preset.d.ts +0 -1
- package/lib/preset.js +0 -1
- package/lib/process/index.js +3 -3
- package/lib/progress/index.d.ts +11 -11
- package/lib/progress/index.js +10 -10
- package/lib/progress/progress.d.ts +7 -7
- package/lib/radio/index.js +10 -10
- package/lib/radio/type.d.ts +1 -1
- package/lib/rate/index.js +8 -8
- package/lib/resize-layout/index.d.ts +11 -11
- package/lib/resize-layout/index.js +7 -8
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/scrollbar/index.js +0 -1
- package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
- package/lib/search-select/index.js +66 -66
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/selected.d.ts +1 -1
- package/lib/search-select/utils.d.ts +3 -3
- package/lib/select/index.d.ts +61 -61
- package/lib/select/index.js +69 -73
- package/lib/select/option.d.ts +1 -1
- package/lib/select/select.d.ts +24 -24
- package/lib/select/selectTagInput.d.ts +6 -6
- package/lib/select/type.d.ts +2 -2
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +38 -46
- package/lib/shared/popover.d.ts +3 -3
- package/lib/shared/token.d.ts +1 -1
- package/lib/shared/vue-types.d.ts +46 -46
- package/lib/shared/z-index-manager.d.ts +6 -6
- package/lib/sideslider/index.d.ts +3 -3
- package/lib/sideslider/index.js +11 -11
- package/lib/sideslider/sideslider.d.ts +1 -1
- package/lib/slider/index.js +21 -23
- package/lib/steps/index.d.ts +11 -11
- package/lib/steps/index.js +3 -3
- package/lib/steps/steps.d.ts +7 -7
- package/lib/swiper/index.js +5 -5
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.d.ts +2 -2
- package/lib/tab/index.d.ts +22 -22
- package/lib/tab/index.js +15 -15
- package/lib/tab/props.d.ts +15 -15
- package/lib/tab/tab-nav.d.ts +10 -10
- package/lib/tab/tab.d.ts +10 -10
- package/lib/table/components/table-column.d.ts +27 -87
- package/lib/table/const.d.ts +8 -8
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +194 -244
- package/lib/table/index.js +124 -127
- package/lib/table/props.d.ts +33 -33
- package/lib/table/table.d.ts +47 -47
- package/lib/table/use-attributes.d.ts +3 -3
- package/lib/table/use-column.d.ts +9 -129
- package/lib/table/use-common.d.ts +4 -4
- package/lib/table/utils.d.ts +5 -5
- package/lib/table-column/index.d.ts +42 -172
- package/lib/table-column/index.js +18 -18
- package/lib/tag/index.d.ts +11 -11
- package/lib/tag/index.js +2 -2
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag-input/common.d.ts +1 -1
- package/lib/tag-input/index.d.ts +8 -8
- package/lib/tag-input/index.js +30 -30
- package/lib/tag-input/tag-input.d.ts +4 -4
- package/lib/tag-input/tag-props.d.ts +2 -2
- package/lib/timeline/index.js +2 -2
- package/lib/transfer/const.d.ts +2 -2
- package/lib/transfer/index.js +3 -5
- package/lib/tree/constant.d.ts +20 -20
- package/lib/tree/index.d.ts +20 -20
- package/lib/tree/index.js +36 -36
- package/lib/tree/props.d.ts +6 -6
- package/lib/tree/tree.d.ts +6 -6
- package/lib/tree/use-empty.d.ts +1 -1
- package/lib/tree/use-node-action.d.ts +2 -2
- package/lib/tree/use-search.d.ts +1 -1
- package/lib/upload/index.js +25 -26
- package/lib/upload/props.d.ts +1 -1
- package/lib/upload/upload.type.d.ts +6 -6
- package/lib/upload/use-file-handler.d.ts +1 -1
- package/package.json +17 -55
@@ -1,7 +1,7 @@
|
|
1
1
|
declare const BkResizeLayout: {
|
2
2
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
3
|
-
placement: import("vue-types").VueTypeDef<"
|
4
|
-
default: "
|
3
|
+
placement: import("vue-types").VueTypeDef<"bottom" | "left" | "right" | "top"> & {
|
4
|
+
default: "bottom" | "left" | "right" | "top";
|
5
5
|
};
|
6
6
|
min: import("vue-types").VueTypeValidableDef<number> & {
|
7
7
|
default: number;
|
@@ -70,8 +70,8 @@ declare const BkResizeLayout: {
|
|
70
70
|
setCollapse: (collapse: any) => void;
|
71
71
|
resolveClassName: (cls: string) => string;
|
72
72
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("before-resize" | "resizing" | "after-resize" | "collapse-change")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
73
|
-
placement: import("vue-types").VueTypeDef<"
|
74
|
-
default: "
|
73
|
+
placement: import("vue-types").VueTypeDef<"bottom" | "left" | "right" | "top"> & {
|
74
|
+
default: "bottom" | "left" | "right" | "top";
|
75
75
|
};
|
76
76
|
min: import("vue-types").VueTypeValidableDef<number> & {
|
77
77
|
default: number;
|
@@ -120,7 +120,7 @@ declare const BkResizeLayout: {
|
|
120
120
|
"onCollapse-change"?: (...args: any[]) => any;
|
121
121
|
}, {
|
122
122
|
disabled: boolean;
|
123
|
-
placement: "
|
123
|
+
placement: "bottom" | "left" | "right" | "top";
|
124
124
|
border: boolean;
|
125
125
|
max: number;
|
126
126
|
min: number;
|
@@ -138,8 +138,8 @@ declare const BkResizeLayout: {
|
|
138
138
|
M: {};
|
139
139
|
Defaults: {};
|
140
140
|
}, Readonly<import("vue").ExtractPropTypes<{
|
141
|
-
placement: import("vue-types").VueTypeDef<"
|
142
|
-
default: "
|
141
|
+
placement: import("vue-types").VueTypeDef<"bottom" | "left" | "right" | "top"> & {
|
142
|
+
default: "bottom" | "left" | "right" | "top";
|
143
143
|
};
|
144
144
|
min: import("vue-types").VueTypeValidableDef<number> & {
|
145
145
|
default: number;
|
@@ -209,7 +209,7 @@ declare const BkResizeLayout: {
|
|
209
209
|
resolveClassName: (cls: string) => string;
|
210
210
|
}, {}, {}, {}, {
|
211
211
|
disabled: boolean;
|
212
|
-
placement: "
|
212
|
+
placement: "bottom" | "left" | "right" | "top";
|
213
213
|
border: boolean;
|
214
214
|
max: number;
|
215
215
|
min: number;
|
@@ -224,8 +224,8 @@ declare const BkResizeLayout: {
|
|
224
224
|
__isTeleport?: never;
|
225
225
|
__isSuspense?: never;
|
226
226
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
227
|
-
placement: import("vue-types").VueTypeDef<"
|
228
|
-
default: "
|
227
|
+
placement: import("vue-types").VueTypeDef<"bottom" | "left" | "right" | "top"> & {
|
228
|
+
default: "bottom" | "left" | "right" | "top";
|
229
229
|
};
|
230
230
|
min: import("vue-types").VueTypeValidableDef<number> & {
|
231
231
|
default: number;
|
@@ -295,7 +295,7 @@ declare const BkResizeLayout: {
|
|
295
295
|
resolveClassName: (cls: string) => string;
|
296
296
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("before-resize" | "resizing" | "after-resize" | "collapse-change")[], "before-resize" | "resizing" | "after-resize" | "collapse-change", {
|
297
297
|
disabled: boolean;
|
298
|
-
placement: "
|
298
|
+
placement: "bottom" | "left" | "right" | "top";
|
299
299
|
border: boolean;
|
300
300
|
max: number;
|
301
301
|
min: number;
|
@@ -293,7 +293,6 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
|
|
293
293
|
}
|
294
294
|
var asideRect = asideRef.value.getBoundingClientRect();
|
295
295
|
// 最小化同时设置为已折叠,此时展开以初始化initial-divide数据为参考
|
296
|
-
// eslint-disable-next-line no-multi-assign
|
297
296
|
minimized.value = collapsed.value = asideRect[cssPropKey.value] <= parseAutoMinimize.value;
|
298
297
|
if (!minimized.value) {
|
299
298
|
asideContentVisible.value = true;
|
@@ -366,18 +365,18 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
|
|
366
365
|
"ref": "bkResizeLayoutRef",
|
367
366
|
"class": bkResizeLayoutClass
|
368
367
|
}, [(0,external_vue_namespaceObject.createVNode)("aside", {
|
369
|
-
"class": "".concat(this.resolveClassName('resize-layout-aside')),
|
370
368
|
"ref": "asideRef",
|
371
|
-
"style": this.asideStyle
|
369
|
+
"style": this.asideStyle,
|
370
|
+
"class": "".concat(this.resolveClassName('resize-layout-aside'))
|
372
371
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
373
372
|
"class": "".concat(this.resolveClassName('resize-layout-aside-content'))
|
374
373
|
}, [(_this$$slots$aside = (_this$$slots = this.$slots).aside) === null || _this$$slots$aside === void 0 ? void 0 : _this$$slots$aside.call(_this$$slots)]), [[external_vue_namespaceObject.vShow, this.asideContentVisible]]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("i", {
|
375
|
-
"class": "".concat(this.resolveClassName('resize-trigger')),
|
376
374
|
"style": this.triggerStyle,
|
375
|
+
"class": "".concat(this.resolveClassName('resize-trigger')),
|
377
376
|
"onMousedown": (0,external_vue_namespaceObject.withModifiers)(this.handleMousedown, ['left'])
|
378
377
|
}, null), [[external_vue_namespaceObject.vShow, !this.disabled && (!this.collapsed || this.autoMinimize)]]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("i", {
|
379
|
-
"
|
380
|
-
"
|
378
|
+
"ref": "resizeProxyRef",
|
379
|
+
"class": ["".concat(this.resolveClassName('resize-proxy')), this.placement]
|
381
380
|
}, null), [[external_vue_namespaceObject.vShow, !this.collapsed || this.autoMinimize]]), this.collapsible && (((_this$$slots$collapse = (_this$$slots2 = this.$slots)['collapse-trigger']) === null || _this$$slots$collapse === void 0 ? void 0 : _this$$slots$collapse.call(_this$$slots2)) || (this.collapsed ? (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.AngleRight, {
|
382
381
|
"width": 26,
|
383
382
|
"height": 26,
|
@@ -391,8 +390,8 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
|
|
391
390
|
}, null)))]), (0,external_vue_namespaceObject.createVNode)("main", {
|
392
391
|
"class": "".concat(this.resolveClassName('resize-layout-main'))
|
393
392
|
}, [(_this$$slots$main = (_this$$slots3 = this.$slots).main) === null || _this$$slots$main === void 0 ? void 0 : _this$$slots$main.call(_this$$slots3)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
394
|
-
"
|
395
|
-
"
|
393
|
+
"ref": "resizeMaskRef",
|
394
|
+
"class": "".concat(this.resolveClassName('resize-mask'))
|
396
395
|
}, null)]);
|
397
396
|
}
|
398
397
|
}));
|
@@ -1,6 +1,6 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
-
placement: import("vue-types").VueTypeDef<"
|
3
|
-
default: "
|
2
|
+
placement: import("vue-types").VueTypeDef<"bottom" | "left" | "right" | "top"> & {
|
3
|
+
default: "bottom" | "left" | "right" | "top";
|
4
4
|
};
|
5
5
|
min: import("vue-types").VueTypeValidableDef<number> & {
|
6
6
|
default: number;
|
@@ -64,8 +64,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
64
64
|
setCollapse: (collapse: any) => void;
|
65
65
|
resolveClassName: (cls: string) => string;
|
66
66
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("before-resize" | "resizing" | "after-resize" | "collapse-change")[], "before-resize" | "resizing" | "after-resize" | "collapse-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
67
|
-
placement: import("vue-types").VueTypeDef<"
|
68
|
-
default: "
|
67
|
+
placement: import("vue-types").VueTypeDef<"bottom" | "left" | "right" | "top"> & {
|
68
|
+
default: "bottom" | "left" | "right" | "top";
|
69
69
|
};
|
70
70
|
min: import("vue-types").VueTypeValidableDef<number> & {
|
71
71
|
default: number;
|
@@ -114,7 +114,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
114
114
|
"onCollapse-change"?: (...args: any[]) => any;
|
115
115
|
}, {
|
116
116
|
disabled: boolean;
|
117
|
-
placement: "
|
117
|
+
placement: "bottom" | "left" | "right" | "top";
|
118
118
|
border: boolean;
|
119
119
|
max: number;
|
120
120
|
min: number;
|
package/lib/scrollbar/index.js
CHANGED
@@ -18202,7 +18202,6 @@ var BkScrollbarCore = /*#__PURE__*/function () {
|
|
18202
18202
|
// Hack for https://github.com/WICG/ResizeObserver/issues/38
|
18203
18203
|
var resizeObserverStarted = false;
|
18204
18204
|
var resizeObserver = elWindow.ResizeObserver || ResizeObserver;
|
18205
|
-
// eslint-disable-next-line new-cap
|
18206
18205
|
this.resizeObserver = new resizeObserver(function () {
|
18207
18206
|
if (!resizeObserverStarted) return;
|
18208
18207
|
elWindow.requestAnimationFrame(function () {
|
@@ -24,7 +24,7 @@ interface DebouncedFunc<T extends (...args: any[]) => any> {
|
|
24
24
|
flush(): ReturnType<T> | undefined;
|
25
25
|
}
|
26
26
|
export interface Options {
|
27
|
-
forceVisible:
|
27
|
+
forceVisible: Axis | boolean;
|
28
28
|
clickOnTrack: boolean;
|
29
29
|
scrollbarMinSize: number;
|
30
30
|
scrollbarMaxSize: number;
|
@@ -67,9 +67,9 @@ type ClassNames = {
|
|
67
67
|
type Axis = 'x' | 'y';
|
68
68
|
type AxisProps = {
|
69
69
|
scrollOffsetAttr: 'scrollLeft' | 'scrollTop';
|
70
|
-
sizeAttr: '
|
71
|
-
scrollSizeAttr: '
|
72
|
-
offsetSizeAttr: '
|
70
|
+
sizeAttr: 'height' | 'width';
|
71
|
+
scrollSizeAttr: 'scrollHeight' | 'scrollWidth';
|
72
|
+
offsetSizeAttr: 'offsetHeight' | 'offsetWidth';
|
73
73
|
offsetAttr: 'left' | 'top';
|
74
74
|
overflowAttr: 'overflowX' | 'overflowY';
|
75
75
|
dragOffset: number;
|
@@ -160,11 +160,11 @@ export default class BkScrollbarCore {
|
|
160
160
|
* 模拟滚动条内部缩略滚动器滚动位置缓存器
|
161
161
|
*/
|
162
162
|
wrapperScrollMap: {};
|
163
|
-
onMouseMove:
|
164
|
-
onWindowResize:
|
165
|
-
onStopScrolling:
|
166
|
-
onMouseEntered:
|
167
|
-
onMouseWheel:
|
163
|
+
onMouseMove: (() => void) | DebouncedFunc<any>;
|
164
|
+
onWindowResize: (() => void) | DebouncedFunc<any>;
|
165
|
+
onStopScrolling: (() => void) | DebouncedFunc<any>;
|
166
|
+
onMouseEntered: (() => void) | DebouncedFunc<any>;
|
167
|
+
onMouseWheel: (() => void) | DebouncedFunc<any>;
|
168
168
|
constructor(element: HTMLElement, options?: Partial<Options>);
|
169
169
|
getScrollbarWidth(): number;
|
170
170
|
init(): void;
|
@@ -481,6 +481,18 @@ function _defineProperty(obj, key, value) {
|
|
481
481
|
var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
482
482
|
var external_vue_y = x => () => x
|
483
483
|
const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["resolveDirective"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.resolveDirective, ["shallowRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.shallowRef, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch, ["withDirectives"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.withDirectives });
|
484
|
+
;// CONCATENATED MODULE: external "../config-provider"
|
485
|
+
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
486
|
+
var config_provider_y = x => () => x
|
487
|
+
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
488
|
+
;// CONCATENATED MODULE: external "../directives"
|
489
|
+
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
490
|
+
var directives_y = x => () => x
|
491
|
+
const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
|
492
|
+
;// CONCATENATED MODULE: external "../icon"
|
493
|
+
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
494
|
+
var icon_y = x => () => x
|
495
|
+
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ExclamationCircleShape, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search });
|
484
496
|
;// CONCATENATED MODULE: ../../node_modules/resize-detector/esm/index.js
|
485
497
|
var raf = null;
|
486
498
|
function requestAnimationFrame (callback) {
|
@@ -797,18 +809,6 @@ function resetTriggers (elem) {
|
|
797
809
|
|
798
810
|
|
799
811
|
|
800
|
-
;// CONCATENATED MODULE: external "../config-provider"
|
801
|
-
var config_provider_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
802
|
-
var config_provider_y = x => () => x
|
803
|
-
const config_provider_namespaceObject = config_provider_x({ ["useLocale"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.useLocale, ["usePrefix"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__.usePrefix });
|
804
|
-
;// CONCATENATED MODULE: external "../directives"
|
805
|
-
var directives_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
806
|
-
var directives_y = x => () => x
|
807
|
-
const directives_namespaceObject = directives_x({ ["clickoutside"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_directives_45d4776f__.clickoutside });
|
808
|
-
;// CONCATENATED MODULE: external "../icon"
|
809
|
-
var icon_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
|
810
|
-
var icon_y = x => () => x
|
811
|
-
const icon_namespaceObject = icon_x({ ["Close"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Close, ["Error"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Error, ["ExclamationCircleShape"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.ExclamationCircleShape, ["Search"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_icon_a97c79c3__.Search });
|
812
812
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js
|
813
813
|
function _arrayWithHoles(arr) {
|
814
814
|
if (Array.isArray(arr)) return arr;
|
@@ -1409,9 +1409,9 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1409
1409
|
"class": "menu-content"
|
1410
1410
|
}, [(_this$list = this.list) === null || _this$list === void 0 ? void 0 : _this$list.map(function (item) {
|
1411
1411
|
return (0,external_vue_namespaceObject.createVNode)("li", {
|
1412
|
-
"class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
|
1413
|
-
"key": item.id,
|
1414
1412
|
"id": item.id,
|
1413
|
+
"key": item.id,
|
1414
|
+
"class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
|
1415
1415
|
"tabindex": "-1",
|
1416
1416
|
"onClick": function onClick() {
|
1417
1417
|
return !item.disabled && _this.handleClick(item);
|
@@ -1421,8 +1421,8 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1421
1421
|
return _this.handleSelectedChange(e, item);
|
1422
1422
|
}
|
1423
1423
|
}, [(0,external_vue_namespaceObject.createVNode)(checkbox_namespaceObject["default"], {
|
1424
|
-
"
|
1425
|
-
"
|
1424
|
+
"class": "is-selected",
|
1425
|
+
"modelValue": _this.selected.includes(item.id)
|
1426
1426
|
}, null)]), _this.getSearchNode(item)])]);
|
1427
1427
|
})]);
|
1428
1428
|
var getListMenu = function getListMenu() {
|
@@ -1434,17 +1434,17 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
1434
1434
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
1435
1435
|
"class": "menu-condition-title"
|
1436
1436
|
}, [_this.t.logical]), (0,external_vue_namespaceObject.createVNode)(radio_namespaceObject["default"], {
|
1437
|
+
"label": "|",
|
1437
1438
|
"modelValue": _this.logical,
|
1438
|
-
"onChange": _this.handleLogicalChange
|
1439
|
-
"label": "|"
|
1439
|
+
"onChange": _this.handleLogicalChange
|
1440
1440
|
}, {
|
1441
1441
|
"default": function _default() {
|
1442
1442
|
return [_this.t.or, (0,external_vue_namespaceObject.createTextVNode)(" |")];
|
1443
1443
|
}
|
1444
1444
|
}), (0,external_vue_namespaceObject.createVNode)(radio_namespaceObject["default"], {
|
1445
|
+
"label": "&",
|
1445
1446
|
"modelValue": _this.logical,
|
1446
|
-
"onChange": _this.handleLogicalChange
|
1447
|
-
"label": "&"
|
1447
|
+
"onChange": _this.handleLogicalChange
|
1448
1448
|
}, {
|
1449
1449
|
"default": function _default() {
|
1450
1450
|
return [_this.t.and, (0,external_vue_namespaceObject.createTextVNode)(" &")];
|
@@ -2397,32 +2397,32 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2397
2397
|
"data-placeholder": !inputInnerHtml && !_this.keyword ? _this.placeholder : '',
|
2398
2398
|
"data-tips": placeholder || '',
|
2399
2399
|
"spellcheck": "false",
|
2400
|
-
"onPaste": _this.handleInputPaste,
|
2401
2400
|
"onFocus": _this.handleInputFocus,
|
2402
2401
|
"onInput": _this.handleInputChange,
|
2403
|
-
"onKeydown": _this.handleInputKeyup
|
2402
|
+
"onKeydown": _this.handleInputKeyup,
|
2403
|
+
"onPaste": _this.handleInputPaste
|
2404
2404
|
}, [((_this$usingItem = _this.usingItem) === null || _this$usingItem === void 0 ? void 0 : _this$usingItem.name) && (!_this.usingItem.isSpecialType() ? (0,external_vue_namespaceObject.createVNode)("span", {
|
2405
|
+
"key": _this.usingItem.nameRenderkey,
|
2406
|
+
"style": {
|
2407
|
+
color: '#979BA5'
|
2408
|
+
},
|
2409
|
+
"contenteditable": false,
|
2405
2410
|
"data-key": _this.usingItem.name,
|
2406
2411
|
"data-type": _this.usingItem.type,
|
2407
|
-
"key": _this.usingItem.nameRenderkey,
|
2408
2412
|
"onMousedown": function onMousedown(e) {
|
2409
2413
|
return e.preventDefault();
|
2410
|
-
},
|
2411
|
-
"contenteditable": false,
|
2412
|
-
"style": {
|
2413
|
-
color: '#979BA5'
|
2414
2414
|
}
|
2415
2415
|
}, [_this.usingItem.name, (0,external_vue_namespaceObject.createTextVNode)(":\xA0")]) : (0,external_vue_namespaceObject.createVNode)("span", {
|
2416
|
+
"key": _this.usingItem.nameRenderkey,
|
2416
2417
|
"data-key": _this.usingItem.name,
|
2417
|
-
"data-type": _this.usingItem.type
|
2418
|
-
"key": _this.usingItem.nameRenderkey
|
2418
|
+
"data-type": _this.usingItem.type
|
2419
2419
|
}, [_this.usingItem.name])), (_this$usingItem2 = _this.usingItem) === null || _this$usingItem2 === void 0 || (_this$usingItem2 = _this$usingItem2.values) === null || _this$usingItem2 === void 0 ? void 0 : _this$usingItem2.map(function (item, index) {
|
2420
2420
|
return (0,external_vue_namespaceObject.createVNode)("span", {
|
2421
2421
|
"key": index,
|
2422
|
-
"data-key": item.name,
|
2423
|
-
"data-type": "value",
|
2424
2422
|
"data-id": item.id,
|
2425
|
-
"data-index": index
|
2423
|
+
"data-index": index,
|
2424
|
+
"data-key": item.name,
|
2425
|
+
"data-type": "value"
|
2426
2426
|
}, [item.name, index < _this.usingItem.values.length - 1 ? " ".concat(_this.usingItem.logical, " ") : '']);
|
2427
2427
|
})]), [[(0,external_vue_namespaceObject.resolveDirective)("clickoutside"), _this.handleClickOutside]]);
|
2428
2428
|
};
|
@@ -2450,29 +2450,29 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2450
2450
|
"ref": "popoverRef",
|
2451
2451
|
"class": _this.resolveClassName('search-select-popover')
|
2452
2452
|
}, [(0,external_vue_namespaceObject.createVNode)(menu, {
|
2453
|
-
"
|
2453
|
+
"conditions": showCondition ? _this.conditions : [],
|
2454
|
+
"hoverId": _this.menuHoverId,
|
2454
2455
|
"keyword": _this.keyword,
|
2456
|
+
"list": _this.menuList,
|
2457
|
+
"logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
|
2455
2458
|
"multiple": !!multiple,
|
2456
|
-
"hoverId": _this.menuHoverId,
|
2457
2459
|
"selected": (values === null || values === void 0 ? void 0 : values.map(function (item) {
|
2458
2460
|
return item.id;
|
2459
2461
|
})) || [],
|
2460
|
-
"conditions": showCondition ? _this.conditions : [],
|
2461
|
-
"logical": (_this$usingItem4 = _this.usingItem) === null || _this$usingItem4 === void 0 ? void 0 : _this$usingItem4.logical,
|
2462
2462
|
"showLogical": (_this$usingItem5 = _this.usingItem) === null || _this$usingItem5 === void 0 ? void 0 : _this$usingItem5.showLogical,
|
2463
|
-
"
|
2464
|
-
"onSelectItem": _this.handleSelectItem,
|
2463
|
+
"onFooterClick": _this.handleMenuFooterClick,
|
2465
2464
|
"onSelectCondition": _this.handleSelectCondtionItem,
|
2466
|
-
"
|
2465
|
+
"onSelectItem": _this.handleSelectItem,
|
2466
|
+
"onUpdate:logical": _this.handleLogicalChange
|
2467
2467
|
}, null)]) : undefined;
|
2468
2468
|
};
|
2469
2469
|
return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
|
2470
|
-
"trigger": "manual",
|
2471
|
-
"theme": "light",
|
2472
|
-
"placement": "bottom-start",
|
2473
2470
|
"arrow": false,
|
2474
2471
|
"disableOutsideClick": true,
|
2475
|
-
"isShow": showPopover
|
2472
|
+
"isShow": showPopover,
|
2473
|
+
"placement": "bottom-start",
|
2474
|
+
"theme": "light",
|
2475
|
+
"trigger": "manual"
|
2476
2476
|
}, {
|
2477
2477
|
"default": inputContent,
|
2478
2478
|
content: popoverContent
|
@@ -2598,19 +2598,19 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2598
2598
|
var _this = this;
|
2599
2599
|
var contentComponent = function contentComponent(item, index) {
|
2600
2600
|
return _this.editKey === "".concat(item.id, "_").concat(index) ? (0,external_vue_namespaceObject.createVNode)("div", {
|
2601
|
-
"class": "selected-input",
|
2602
2601
|
"key": _this.editKey.toString(),
|
2603
|
-
"ref": "selectedInputRef"
|
2602
|
+
"ref": "selectedInputRef",
|
2603
|
+
"class": "selected-input"
|
2604
2604
|
}, [(0,external_vue_namespaceObject.createVNode)(input, {
|
2605
|
-
"ref": "inputRef",
|
2606
2605
|
"key": _this.editKey.toString(),
|
2607
|
-
"
|
2608
|
-
"
|
2609
|
-
"showCondition": false,
|
2606
|
+
"ref": "inputRef",
|
2607
|
+
"clickOutside": _this.handleInputOutside,
|
2610
2608
|
"conditions": _this.conditions,
|
2609
|
+
"data": _this.data,
|
2611
2610
|
"defautUsingItem": _this.copySeletedItem(item),
|
2612
|
-
"clickOutside": _this.handleInputOutside,
|
2613
2611
|
"getMenuList": _this.getMenuList,
|
2612
|
+
"mode": SearchInputMode.EDIT,
|
2613
|
+
"showCondition": false,
|
2614
2614
|
"validateValues": _this.validateValues,
|
2615
2615
|
"valueBehavior": _this.valueBehavior,
|
2616
2616
|
"onAdd": function onAdd(v) {
|
@@ -2618,8 +2618,8 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
2618
2618
|
},
|
2619
2619
|
"onFocus": _this.handleInputFocus
|
2620
2620
|
}, selected_objectSpread({}, _this.$slots))]) : (0,external_vue_namespaceObject.createVNode)("li", {
|
2621
|
-
"
|
2622
|
-
"
|
2621
|
+
"key": "".concat(item.id, "_").concat(index),
|
2622
|
+
"class": "search-container-selected ".concat(!(_this.overflowIndex >= 0 ? index < _this.overflowIndex : index >= 0) ? 'hidden-selected' : '')
|
2623
2623
|
}, [(0,external_vue_namespaceObject.createVNode)("span", {
|
2624
2624
|
"class": "selected-name",
|
2625
2625
|
"onClick": function onClick(e) {
|
@@ -2990,24 +2990,24 @@ var SearchSelectProps = {
|
|
2990
2990
|
} : {});
|
2991
2991
|
// render
|
2992
2992
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
2993
|
-
"
|
2994
|
-
"
|
2993
|
+
"ref": "wrapRef",
|
2994
|
+
"class": this.resolveClassName('search-select')
|
2995
2995
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2996
2996
|
"class": _defineProperty(_defineProperty({}, this.resolveClassName('search-select-container'), true), 'is-focus', this.isFocus),
|
2997
2997
|
"onClick": this.handleWrapClick
|
2998
2998
|
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
2999
2999
|
"class": "search-prefix"
|
3000
3000
|
}, [(_this$$slots$prepend = (_this$$slots2 = this.$slots).prepend) === null || _this$$slots$prepend === void 0 ? void 0 : _this$$slots$prepend.call(_this$$slots2)]), (0,external_vue_namespaceObject.createVNode)("div", {
|
3001
|
-
"class": "search-container",
|
3002
3001
|
"style": {
|
3003
3002
|
maxHeight: maxHeight
|
3004
|
-
}
|
3003
|
+
},
|
3004
|
+
"class": "search-container"
|
3005
3005
|
}, [(0,external_vue_namespaceObject.createVNode)(selected, {
|
3006
|
-
"data": this.copyData,
|
3007
3006
|
"conditions": this.localConditions,
|
3008
|
-
"
|
3009
|
-
"overflowIndex": this.overflowIndex,
|
3007
|
+
"data": this.copyData,
|
3010
3008
|
"getMenuList": this.getMenuList,
|
3009
|
+
"overflowIndex": this.overflowIndex,
|
3010
|
+
"selectedList": this.selectedList,
|
3011
3011
|
"validateValues": this.validateValues,
|
3012
3012
|
"valueBehavior": this.valueBehavior,
|
3013
3013
|
"onDelete": this.handleDeleteSelected,
|
@@ -3016,13 +3016,13 @@ var SearchSelectProps = {
|
|
3016
3016
|
"class": "search-container-input"
|
3017
3017
|
}, [(0,external_vue_namespaceObject.createVNode)(input, {
|
3018
3018
|
"ref": "inputRef",
|
3019
|
-
"data": this.copyData,
|
3020
|
-
"showInputBefore": !this.selectedList.length,
|
3021
|
-
"showCondition": showCondition,
|
3022
|
-
"conditions": this.localConditions,
|
3023
|
-
"placeholder": this.placeholder || this.t.pleaseSelect,
|
3024
3019
|
"clickOutside": this.handleInputOutside,
|
3020
|
+
"conditions": this.localConditions,
|
3021
|
+
"data": this.copyData,
|
3025
3022
|
"getMenuList": this.getMenuList,
|
3023
|
+
"placeholder": this.placeholder || this.t.pleaseSelect,
|
3024
|
+
"showCondition": showCondition,
|
3025
|
+
"showInputBefore": !this.selectedList.length,
|
3026
3026
|
"validateValues": this.validateValues,
|
3027
3027
|
"valueBehavior": this.valueBehavior,
|
3028
3028
|
"onAdd": this.handleAddSelected,
|
@@ -3035,8 +3035,8 @@ var SearchSelectProps = {
|
|
3035
3035
|
"class": "search-clear",
|
3036
3036
|
"onClick": this.handleClearAll
|
3037
3037
|
}, null), this.$slots.append ? this.$slots.append() : (0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
|
3038
|
-
"
|
3039
|
-
"
|
3038
|
+
"class": "search-nextfix-icon ".concat(this.isFocus ? 'is-focus' : ''),
|
3039
|
+
"onClick": this.handleClickSearch
|
3040
3040
|
}, null)])]), !!this.validateStr.length && (0,external_vue_namespaceObject.createVNode)("div", {
|
3041
3041
|
"class": this.resolveClassName('search-select-tips')
|
3042
3042
|
}, [this.$slots.validate ? this.$slots.validate() : (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.ExclamationCircleShape, {
|
@@ -39,7 +39,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
39
39
|
handleSelectedChange: (e: MouseEvent, item: ICommonItem) => void;
|
40
40
|
handleLogicalChange: (value: unknown) => void;
|
41
41
|
filterList: import("vue").ComputedRef<ICommonItem[]>;
|
42
|
-
getSearchNode: (item: ICommonItem) =>
|
42
|
+
getSearchNode: (item: ICommonItem) => (VNode | string)[] | string;
|
43
43
|
localFooterBtns: import("vue").ComputedRef<IMenuFooterItem[] | ({
|
44
44
|
id: string;
|
45
45
|
name: string;
|
@@ -232,7 +232,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
232
232
|
showCondition: boolean;
|
233
233
|
}>>;
|
234
234
|
selectedInputRef: import("vue").Ref<HTMLDivElement>;
|
235
|
-
editKey: import("vue").Ref<
|
235
|
+
editKey: import("vue").Ref<string>;
|
236
236
|
copySeletedItem: (item: SelectedItem) => SelectedItem;
|
237
237
|
handleDeleteSelected: (index: number) => void;
|
238
238
|
handleEditSeleted: (e: MouseEvent, item: SelectedItem, index: number) => void;
|
@@ -26,7 +26,7 @@ export interface ISearchSelectProvider {
|
|
26
26
|
onEditEnter: (item: SelectedItem, index: number) => void;
|
27
27
|
onEditBlur: () => void;
|
28
28
|
onValidate: (str: string) => void;
|
29
|
-
editKey: Ref<
|
29
|
+
editKey: Ref<string>;
|
30
30
|
searchData: ComputedRef<ISearchItem[]>;
|
31
31
|
isClickOutside: (target: Node) => boolean;
|
32
32
|
}
|
@@ -73,11 +73,11 @@ export declare enum SearchLogical {
|
|
73
73
|
OR = "|"
|
74
74
|
}
|
75
75
|
export interface IMenuFooterItem {
|
76
|
-
id: '
|
76
|
+
id: 'cancel' | 'confirm';
|
77
77
|
name: string;
|
78
78
|
disabled?: boolean;
|
79
79
|
}
|
80
|
-
export type SearchItemType = '
|
80
|
+
export type SearchItemType = 'condition' | 'default' | 'text';
|
81
81
|
export declare class SelectedItem {
|
82
82
|
searchItem: ISearchItem;
|
83
83
|
type: SearchItemType;
|