bkui-vue 2.0.1-beta.10 → 2.0.1-beta.11
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 +28601 -28591
- 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 +32 -31
- 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 +188 -189
- 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 +2 -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 +3 -3
- package/lib/index.js +3 -3
- 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 +1 -0
- 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 +11 -61
- 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 +19 -18
- package/lib/pop-confirm/index.d.ts +11 -11
- package/lib/pop-confirm/index.js +11 -10
- 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 +19 -18
- 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/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 +8 -7
- package/lib/resize-layout/resize-layout.d.ts +5 -5
- package/lib/scrollbar/index.js +1 -0
- 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 +73 -69
- 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 +46 -38
- 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 +23 -21
- 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 +87 -27
- package/lib/table/const.d.ts +8 -8
- package/lib/table/events.d.ts +21 -21
- package/lib/table/index.d.ts +244 -194
- package/lib/table/index.js +127 -124
- 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 +129 -9
- package/lib/table/use-common.d.ts +4 -4
- package/lib/table/utils.d.ts +5 -5
- package/lib/table-column/index.d.ts +172 -42
- 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 +5 -3
- package/lib/tree/constant.d.ts +20 -20
- package/lib/tree/index.d.ts +20 -20
- package/lib/tree/index.js +41 -37
- package/lib/tree/props.d.ts +6 -6
- package/lib/tree/tree.d.ts +8 -14
- 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 +26 -25
- 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 +49 -13
@@ -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<"top" | "right" | "bottom" | "left"> & {
|
4
|
+
default: "top" | "right" | "bottom" | "left";
|
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<"top" | "right" | "bottom" | "left"> & {
|
74
|
+
default: "top" | "right" | "bottom" | "left";
|
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: "top" | "right" | "bottom" | "left";
|
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<"top" | "right" | "bottom" | "left"> & {
|
142
|
+
default: "top" | "right" | "bottom" | "left";
|
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: "top" | "right" | "bottom" | "left";
|
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<"top" | "right" | "bottom" | "left"> & {
|
228
|
+
default: "top" | "right" | "bottom" | "left";
|
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: "top" | "right" | "bottom" | "left";
|
299
299
|
border: boolean;
|
300
300
|
max: number;
|
301
301
|
min: number;
|
@@ -293,6 +293,7 @@ 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
|
296
297
|
minimized.value = collapsed.value = asideRect[cssPropKey.value] <= parseAutoMinimize.value;
|
297
298
|
if (!minimized.value) {
|
298
299
|
asideContentVisible.value = true;
|
@@ -365,18 +366,18 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
|
|
365
366
|
"ref": "bkResizeLayoutRef",
|
366
367
|
"class": bkResizeLayoutClass
|
367
368
|
}, [(0,external_vue_namespaceObject.createVNode)("aside", {
|
369
|
+
"class": "".concat(this.resolveClassName('resize-layout-aside')),
|
368
370
|
"ref": "asideRef",
|
369
|
-
"style": this.asideStyle
|
370
|
-
"class": "".concat(this.resolveClassName('resize-layout-aside'))
|
371
|
+
"style": this.asideStyle
|
371
372
|
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
372
373
|
"class": "".concat(this.resolveClassName('resize-layout-aside-content'))
|
373
374
|
}, [(_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", {
|
374
|
-
"style": this.triggerStyle,
|
375
375
|
"class": "".concat(this.resolveClassName('resize-trigger')),
|
376
|
+
"style": this.triggerStyle,
|
376
377
|
"onMousedown": (0,external_vue_namespaceObject.withModifiers)(this.handleMousedown, ['left'])
|
377
378
|
}, null), [[external_vue_namespaceObject.vShow, !this.disabled && (!this.collapsed || this.autoMinimize)]]), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("i", {
|
378
|
-
"
|
379
|
-
"
|
379
|
+
"class": ["".concat(this.resolveClassName('resize-proxy')), this.placement],
|
380
|
+
"ref": "resizeProxyRef"
|
380
381
|
}, 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, {
|
381
382
|
"width": 26,
|
382
383
|
"height": 26,
|
@@ -390,8 +391,8 @@ const icon_namespaceObject = icon_x({ ["AngleLeft"]: () => __WEBPACK_EXTERNAL_MO
|
|
390
391
|
}, null)))]), (0,external_vue_namespaceObject.createVNode)("main", {
|
391
392
|
"class": "".concat(this.resolveClassName('resize-layout-main'))
|
392
393
|
}, [(_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", {
|
393
|
-
"
|
394
|
-
"
|
394
|
+
"class": "".concat(this.resolveClassName('resize-mask')),
|
395
|
+
"ref": "resizeMaskRef"
|
395
396
|
}, null)]);
|
396
397
|
}
|
397
398
|
}));
|
@@ -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<"top" | "right" | "bottom" | "left"> & {
|
3
|
+
default: "top" | "right" | "bottom" | "left";
|
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<"top" | "right" | "bottom" | "left"> & {
|
68
|
+
default: "top" | "right" | "bottom" | "left";
|
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: "top" | "right" | "bottom" | "left";
|
118
118
|
border: boolean;
|
119
119
|
max: number;
|
120
120
|
min: number;
|
package/lib/scrollbar/index.js
CHANGED
@@ -18202,6 +18202,7 @@ 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
|
18205
18206
|
this.resizeObserver = new resizeObserver(function () {
|
18206
18207
|
if (!resizeObserverStarted) return;
|
18207
18208
|
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: boolean | Axis;
|
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: 'width' | 'height';
|
71
|
+
scrollSizeAttr: 'scrollWidth' | 'scrollHeight';
|
72
|
+
offsetSizeAttr: 'offsetWidth' | 'offsetHeight';
|
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: (() => void)
|
164
|
-
onWindowResize: (() => void)
|
165
|
-
onStopScrolling: (() => void)
|
166
|
-
onMouseEntered: (() => void)
|
167
|
-
onMouseWheel: (() => void)
|
163
|
+
onMouseMove: DebouncedFunc<any> | (() => void);
|
164
|
+
onWindowResize: DebouncedFunc<any> | (() => void);
|
165
|
+
onStopScrolling: DebouncedFunc<any> | (() => void);
|
166
|
+
onMouseEntered: DebouncedFunc<any> | (() => void);
|
167
|
+
onMouseWheel: DebouncedFunc<any> | (() => void);
|
168
168
|
constructor(element: HTMLElement, options?: Partial<Options>);
|
169
169
|
getScrollbarWidth(): number;
|
170
170
|
init(): void;
|
@@ -481,18 +481,6 @@ 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 });
|
496
484
|
;// CONCATENATED MODULE: ../../node_modules/resize-detector/esm/index.js
|
497
485
|
var raf = null;
|
498
486
|
function requestAnimationFrame (callback) {
|
@@ -809,6 +797,18 @@ function resetTriggers (elem) {
|
|
809
797
|
|
810
798
|
|
811
799
|
|
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
|
-
"id": item.id,
|
1413
|
-
"key": item.id,
|
1414
1412
|
"class": "menu-item ".concat(item.disabled ? 'is-disabled' : '', " ").concat(_this.hoverId === item.id && !item.disabled ? 'is-hover' : ''),
|
1413
|
+
"key": item.id,
|
1414
|
+
"id": item.id,
|
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
|
+
"modelValue": _this.selected.includes(item.id),
|
1425
|
+
"class": "is-selected"
|
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": "|",
|
1438
1437
|
"modelValue": _this.logical,
|
1439
|
-
"onChange": _this.handleLogicalChange
|
1438
|
+
"onChange": _this.handleLogicalChange,
|
1439
|
+
"label": "|"
|
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": "&",
|
1446
1445
|
"modelValue": _this.logical,
|
1447
|
-
"onChange": _this.handleLogicalChange
|
1446
|
+
"onChange": _this.handleLogicalChange,
|
1447
|
+
"label": "&"
|
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,
|
2400
2401
|
"onFocus": _this.handleInputFocus,
|
2401
2402
|
"onInput": _this.handleInputChange,
|
2402
|
-
"onKeydown": _this.handleInputKeyup
|
2403
|
-
"onPaste": _this.handleInputPaste
|
2403
|
+
"onKeydown": _this.handleInputKeyup
|
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,
|
2410
2405
|
"data-key": _this.usingItem.name,
|
2411
2406
|
"data-type": _this.usingItem.type,
|
2407
|
+
"key": _this.usingItem.nameRenderkey,
|
2412
2408
|
"onMousedown": function onMousedown(e) {
|
2413
2409
|
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,
|
2417
2416
|
"data-key": _this.usingItem.name,
|
2418
|
-
"data-type": _this.usingItem.type
|
2417
|
+
"data-type": _this.usingItem.type,
|
2418
|
+
"key": _this.usingItem.nameRenderkey
|
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-id": item.id,
|
2423
|
-
"data-index": index,
|
2424
2422
|
"data-key": item.name,
|
2425
|
-
"data-type": "value"
|
2423
|
+
"data-type": "value",
|
2424
|
+
"data-id": item.id,
|
2425
|
+
"data-index": index
|
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
|
-
"conditions": showCondition ? _this.conditions : [],
|
2454
|
-
"hoverId": _this.menuHoverId,
|
2455
|
-
"keyword": _this.keyword,
|
2456
2453
|
"list": _this.menuList,
|
2457
|
-
"
|
2454
|
+
"keyword": _this.keyword,
|
2458
2455
|
"multiple": !!multiple,
|
2456
|
+
"hoverId": _this.menuHoverId,
|
2459
2457
|
"selected": (values === null || values === void 0 ? void 0 : values.map(function (item) {
|
2460
2458
|
return item.id;
|
2461
2459
|
})) || [],
|
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
|
-
"onSelectCondition": _this.handleSelectCondtionItem,
|
2463
|
+
"onUpdate:logical": _this.handleLogicalChange,
|
2465
2464
|
"onSelectItem": _this.handleSelectItem,
|
2466
|
-
"
|
2465
|
+
"onSelectCondition": _this.handleSelectCondtionItem,
|
2466
|
+
"onFooterClick": _this.handleMenuFooterClick
|
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",
|
2470
2473
|
"arrow": false,
|
2471
2474
|
"disableOutsideClick": true,
|
2472
|
-
"isShow": showPopover
|
2473
|
-
"placement": "bottom-start",
|
2474
|
-
"theme": "light",
|
2475
|
-
"trigger": "manual"
|
2475
|
+
"isShow": showPopover
|
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",
|
2601
2602
|
"key": _this.editKey.toString(),
|
2602
|
-
"ref": "selectedInputRef"
|
2603
|
-
"class": "selected-input"
|
2603
|
+
"ref": "selectedInputRef"
|
2604
2604
|
}, [(0,external_vue_namespaceObject.createVNode)(input, {
|
2605
|
-
"key": _this.editKey.toString(),
|
2606
2605
|
"ref": "inputRef",
|
2607
|
-
"
|
2608
|
-
"
|
2606
|
+
"key": _this.editKey.toString(),
|
2607
|
+
"mode": SearchInputMode.EDIT,
|
2609
2608
|
"data": _this.data,
|
2609
|
+
"showCondition": false,
|
2610
|
+
"conditions": _this.conditions,
|
2610
2611
|
"defautUsingItem": _this.copySeletedItem(item),
|
2612
|
+
"clickOutside": _this.handleInputOutside,
|
2611
2613
|
"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
|
+
"class": "search-container-selected ".concat(!(_this.overflowIndex >= 0 ? index < _this.overflowIndex : index >= 0) ? 'hidden-selected' : ''),
|
2622
|
+
"key": "".concat(item.id, "_").concat(index)
|
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
|
+
"class": this.resolveClassName('search-select'),
|
2994
|
+
"ref": "wrapRef"
|
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",
|
3001
3002
|
"style": {
|
3002
3003
|
maxHeight: maxHeight
|
3003
|
-
}
|
3004
|
-
"class": "search-container"
|
3004
|
+
}
|
3005
3005
|
}, [(0,external_vue_namespaceObject.createVNode)(selected, {
|
3006
|
-
"conditions": this.localConditions,
|
3007
3006
|
"data": this.copyData,
|
3008
|
-
"
|
3009
|
-
"overflowIndex": this.overflowIndex,
|
3007
|
+
"conditions": this.localConditions,
|
3010
3008
|
"selectedList": this.selectedList,
|
3009
|
+
"overflowIndex": this.overflowIndex,
|
3010
|
+
"getMenuList": this.getMenuList,
|
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
|
-
"clickOutside": this.handleInputOutside,
|
3020
|
-
"conditions": this.localConditions,
|
3021
3019
|
"data": this.copyData,
|
3022
|
-
"getMenuList": this.getMenuList,
|
3023
|
-
"placeholder": this.placeholder || this.t.pleaseSelect,
|
3024
|
-
"showCondition": showCondition,
|
3025
3020
|
"showInputBefore": !this.selectedList.length,
|
3021
|
+
"showCondition": showCondition,
|
3022
|
+
"conditions": this.localConditions,
|
3023
|
+
"placeholder": this.placeholder || this.t.pleaseSelect,
|
3024
|
+
"clickOutside": this.handleInputOutside,
|
3025
|
+
"getMenuList": this.getMenuList,
|
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
|
+
"onClick": this.handleClickSearch,
|
3039
|
+
"class": "search-nextfix-icon ".concat(this.isFocus ? 'is-focus' : '')
|
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) => string | (string | VNode)[];
|
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: 'confirm' | 'cancel';
|
77
77
|
name: string;
|
78
78
|
disabled?: boolean;
|
79
79
|
}
|
80
|
-
export type SearchItemType = '
|
80
|
+
export type SearchItemType = 'text' | 'default' | 'condition';
|
81
81
|
export declare class SelectedItem {
|
82
82
|
searchItem: ISearchItem;
|
83
83
|
type: SearchItemType;
|