bkui-vue 2.0.1-beta.98 → 2.0.1
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 +133 -159
- package/dist/index.esm.js +26188 -29904
- package/dist/index.umd.js +133 -159
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.css +0 -130
- package/lib/affix/affix.variable.css +1 -261
- package/lib/alert/alert.css +3 -133
- package/lib/alert/alert.variable.css +1 -261
- package/lib/backtop/backtop.css +3 -133
- package/lib/backtop/backtop.variable.css +4 -394
- package/lib/badge/badge.css +26 -156
- package/lib/badge/badge.variable.css +1 -261
- package/lib/breadcrumb/breadcrumb.css +5 -135
- package/lib/breadcrumb/breadcrumb.variable.css +6 -396
- package/lib/button/button.css +143 -273
- package/lib/button/button.variable.css +1 -261
- package/lib/button/index.d.ts +2 -1
- package/lib/card/card.css +4 -134
- package/lib/card/card.variable.css +5 -395
- package/lib/cascader/cascader.css +27 -153
- package/lib/cascader/cascader.d.ts +2 -2
- package/lib/cascader/cascader.less +5 -0
- package/lib/cascader/cascader.variable.css +28 -414
- package/lib/cascader/index.d.ts +6 -6
- package/lib/cascader/index.js +15 -747
- package/lib/checkbox/checkbox.css +10 -140
- package/lib/checkbox/checkbox.variable.css +1 -261
- package/lib/code-diff/code-diff.css +0 -130
- package/lib/code-diff/code-diff.variable.css +1 -261
- package/lib/collapse/collapse.css +1 -131
- package/lib/collapse/collapse.variable.css +1 -261
- package/lib/collapse-transition/collapse-transition.css +0 -130
- package/lib/collapse-transition/collapse-transition.variable.css +1 -261
- package/lib/color-picker/color-picker.css +0 -130
- package/lib/color-picker/color-picker.variable.css +1 -261
- package/lib/color-picker/index.js +8 -254
- package/lib/config-provider/config-provider.css +0 -130
- package/lib/config-provider/config-provider.variable.css +1 -261
- package/lib/container/container.css +0 -130
- package/lib/container/container.variable.css +1 -391
- package/lib/date-picker/date-picker.css +17 -147
- package/lib/date-picker/date-picker.variable.css +1 -261
- package/lib/date-picker/index.d.ts +2 -1
- package/lib/date-picker/index.js +103 -92
- package/lib/dialog/dialog.css +8 -138
- package/lib/dialog/dialog.variable.css +9 -399
- package/lib/directives/index.d.ts +1 -0
- package/lib/directives/index.js +1 -2
- package/lib/divider/divider.css +3 -133
- package/lib/divider/divider.variable.css +1 -261
- package/lib/dropdown/dropdown.css +0 -130
- package/lib/dropdown/dropdown.variable.css +1 -391
- package/lib/exception/exception.css +0 -130
- package/lib/exception/exception.variable.css +1 -261
- package/lib/fixed-navbar/fixed-navbar.css +4 -134
- package/lib/fixed-navbar/fixed-navbar.variable.css +1 -261
- package/lib/form/form.css +0 -130
- package/lib/form/form.variable.css +1 -261
- package/lib/image/image-viewer.css +0 -130
- package/lib/image/image-viewer.variable.css +1 -261
- package/lib/image/image.css +0 -130
- package/lib/image/image.variable.css +1 -391
- package/lib/index.js +1 -1
- package/lib/info-box/info-box.css +4 -134
- package/lib/info-box/info-box.variable.css +1 -261
- package/lib/input/input.css +75 -205
- package/lib/input/input.variable.css +76 -466
- package/lib/link/link.css +16 -146
- package/lib/link/link.variable.css +1 -261
- package/lib/loading/loading.css +16 -146
- package/lib/loading/loading.variable.css +17 -407
- package/lib/menu/menu.css +20 -150
- package/lib/menu/menu.variable.css +21 -411
- package/lib/menu/submenu.css +0 -130
- package/lib/menu/submenu.variable.css +1 -261
- package/lib/message/message.css +21 -151
- package/lib/message/message.variable.css +1 -261
- package/lib/modal/index.js +3 -0
- package/lib/modal/modal.css +4 -134
- package/lib/modal/modal.variable.css +5 -395
- package/lib/navigation/navigation.css +2 -132
- package/lib/navigation/navigation.variable.css +1 -261
- package/lib/notify/notify.css +7 -137
- package/lib/notify/notify.variable.css +1 -261
- package/lib/overflow-title/components/overflow-title.d.ts +20 -0
- package/lib/overflow-title/index.d.ts +40 -0
- package/lib/overflow-title/index.js +2 -1
- package/lib/overflow-title/overflow-title.css +3 -0
- package/lib/overflow-title/overflow-title.less +4 -0
- package/lib/overflow-title/overflow-title.variable.css +3 -0
- package/lib/overflow-title/props.d.ts +10 -0
- package/lib/pagination/index.d.ts +3 -3
- package/lib/pagination/pagination.css +1 -131
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/pagination/pagination.variable.css +1 -261
- package/lib/plugin-popover/index.d.ts +1 -1
- package/lib/plugin-popover/index.js +32 -21265
- package/lib/pop-confirm/index.d.ts +8 -0
- package/lib/pop-confirm/index.js +16 -8
- package/lib/pop-confirm/pop-confirm.css +0 -130
- package/lib/pop-confirm/pop-confirm.d.ts +4 -0
- package/lib/pop-confirm/pop-confirm.variable.css +1 -261
- package/lib/pop-confirm/props.d.ts +3 -0
- package/lib/popover/index.d.ts +49 -3
- package/lib/popover/index.js +87 -17449
- package/lib/popover/popover.css +0 -130
- package/lib/popover/popover.d.ts +23 -1
- package/lib/popover/popover.variable.css +1 -261
- package/lib/popover/props.d.ts +16 -0
- package/lib/popover/use-popover-init.d.ts +1 -2
- package/lib/popover/utils.d.ts +1 -1
- package/lib/process/process.css +13 -143
- package/lib/process/process.variable.css +1 -261
- package/lib/progress/progress.css +4 -134
- package/lib/progress/progress.variable.css +5 -395
- package/lib/radio/radio.css +42 -172
- package/lib/radio/radio.variable.css +1 -261
- package/lib/rate/rate.css +0 -130
- package/lib/rate/rate.variable.css +1 -261
- package/lib/resize-layout/resize-layout.css +0 -130
- package/lib/resize-layout/resize-layout.variable.css +1 -261
- package/lib/scrollbar/css/scrollbar.css +0 -130
- package/lib/scrollbar/css/scrollbar.variable.css +1 -261
- package/lib/search-select/index.d.ts +6 -0
- package/lib/search-select/index.js +36 -9
- package/lib/search-select/input.d.ts +1 -0
- package/lib/search-select/search-select.css +78 -208
- package/lib/search-select/search-select.d.ts +2 -0
- package/lib/search-select/search-select.less +39 -39
- package/lib/search-select/search-select.variable.css +79 -469
- package/lib/search-select/selected.d.ts +2 -0
- package/lib/select/index.d.ts +78 -7
- package/lib/select/index.js +83 -74
- package/lib/select/select.css +42 -169
- package/lib/select/select.d.ts +32 -2
- package/lib/select/select.less +4 -0
- package/lib/select/select.variable.css +43 -430
- package/lib/sideslider/sideslider.css +1 -131
- package/lib/sideslider/sideslider.variable.css +1 -261
- package/lib/slider/slider.css +5 -135
- package/lib/slider/slider.variable.css +1 -261
- package/lib/steps/steps.css +38 -168
- package/lib/steps/steps.variable.css +1 -261
- package/lib/styles/mixins/animate.css +0 -130
- package/lib/styles/mixins/animate.variable.css +1 -261
- package/lib/styles/mixins/mixins.css +0 -130
- package/lib/styles/mixins/mixins.variable.css +0 -130
- package/lib/styles/mixins/popper.css +0 -130
- package/lib/styles/mixins/popper.variable.css +1 -261
- package/lib/styles/mixins/scroll.css +0 -130
- package/lib/styles/mixins/scroll.variable.css +1 -261
- package/lib/styles/reset.css +0 -130
- package/lib/styles/reset.variable.css +1 -261
- package/lib/styles/themes/themes.less +130 -299
- package/lib/swiper/swiper.css +0 -130
- package/lib/swiper/swiper.variable.css +1 -261
- package/lib/switcher/switcher.css +17 -147
- package/lib/switcher/switcher.variable.css +18 -408
- package/lib/tab/tab.css +26 -156
- package/lib/tab/tab.variable.css +1 -261
- package/lib/table/components/table-column.d.ts +1 -1
- package/lib/table/index.d.ts +7 -7
- package/lib/table/index.js +59 -17260
- package/lib/table/plugins/head-filter.css +0 -130
- package/lib/table/plugins/head-filter.variable.css +1 -261
- package/lib/table/plugins/head-sort.css +0 -130
- package/lib/table/plugins/head-sort.variable.css +1 -261
- package/lib/table/plugins/settings.css +0 -130
- package/lib/table/plugins/settings.variable.css +1 -261
- package/lib/table/table.css +189 -319
- package/lib/table/table.d.ts +2 -2
- package/lib/table/table.variable.css +190 -580
- package/lib/table-column/index.d.ts +3 -3
- package/lib/table-column/index.js +9 -17991
- package/lib/tag/tag.css +5 -135
- package/lib/tag/tag.variable.css +1 -261
- package/lib/tag-input/index.d.ts +52 -10
- package/lib/tag-input/index.js +134 -17399
- package/lib/tag-input/tag-input.css +21 -148
- package/lib/tag-input/tag-input.d.ts +24 -4
- package/lib/tag-input/tag-input.less +4 -0
- package/lib/tag-input/tag-input.variable.css +4 -261
- package/lib/tag-input/tag-props.d.ts +11 -1
- package/lib/tag-input/tag-render.d.ts +2 -2
- package/lib/time-picker/time-picker.css +0 -130
- package/lib/time-picker/time-picker.variable.css +1 -261
- package/lib/timeline/timeline.css +19 -149
- package/lib/timeline/timeline.variable.css +1 -261
- package/lib/transfer/index.d.ts +3 -3
- package/lib/transfer/transfer.css +19 -149
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/transfer/transfer.variable.css +1 -261
- package/lib/tree/index.d.ts +3 -3
- package/lib/tree/index.js +11 -17270
- package/lib/tree/tree.css +10 -140
- package/lib/tree/tree.d.ts +1 -1
- package/lib/tree/tree.variable.css +11 -401
- package/lib/upload/upload.css +27 -157
- package/lib/upload/upload.variable.css +28 -418
- package/lib/virtual-render/index.d.ts +3 -3
- package/lib/virtual-render/index.js +8 -17267
- package/lib/virtual-render/virtual-render.css +0 -130
- package/lib/virtual-render/virtual-render.d.ts +1 -1
- package/lib/virtual-render/virtual-render.variable.css +1 -391
- package/package.json +1 -1
- package/lib/styles/themes/themes.css +0 -130
- package/lib/styles/themes/themes.variable.css +0 -130
@@ -124,6 +124,7 @@ declare const BkSearchSelect: {
|
|
124
124
|
and: string;
|
125
125
|
logical: string;
|
126
126
|
}>;
|
127
|
+
inputKey: import("vue").Ref<string>;
|
127
128
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
128
129
|
data: {
|
129
130
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
@@ -256,6 +257,7 @@ declare const BkSearchSelect: {
|
|
256
257
|
and: string;
|
257
258
|
logical: string;
|
258
259
|
}>;
|
260
|
+
inputKey: import("vue").Ref<string>;
|
259
261
|
}, {}, {}, {}, {
|
260
262
|
maxHeight: number;
|
261
263
|
mode: import("./utils").SearchInputMode;
|
@@ -578,6 +580,7 @@ declare const BkSearchSelect: {
|
|
578
580
|
and: string;
|
579
581
|
logical: string;
|
580
582
|
}>;
|
583
|
+
inputKey: import("vue").Ref<string>;
|
581
584
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
582
585
|
data: {
|
583
586
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
@@ -710,6 +713,7 @@ declare const BkSearchSelect: {
|
|
710
713
|
and: string;
|
711
714
|
logical: string;
|
712
715
|
}>;
|
716
|
+
inputKey: import("vue").Ref<string>;
|
713
717
|
}, {}, {}, {}, {
|
714
718
|
maxHeight: number;
|
715
719
|
mode: import("./utils").SearchInputMode;
|
@@ -981,6 +985,7 @@ declare const BkSearchSelect: {
|
|
981
985
|
and: string;
|
982
986
|
logical: string;
|
983
987
|
}>;
|
988
|
+
inputKey: import("vue").Ref<string>;
|
984
989
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
985
990
|
data: {
|
986
991
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
@@ -1113,6 +1118,7 @@ declare const BkSearchSelect: {
|
|
1113
1118
|
and: string;
|
1114
1119
|
logical: string;
|
1115
1120
|
}>;
|
1121
|
+
inputKey: import("vue").Ref<string>;
|
1116
1122
|
}, {}, {}, {}, {
|
1117
1123
|
maxHeight: number;
|
1118
1124
|
mode: import("./utils").SearchInputMode;
|
@@ -1588,6 +1588,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1588
1588
|
var _usingItem$value;
|
1589
1589
|
return ((_usingItem$value = usingItem.value) === null || _usingItem$value === void 0 ? void 0 : _usingItem$value.logical) || SearchLogical.OR;
|
1590
1590
|
});
|
1591
|
+
var inputKey = (0,external_vue_namespaceObject.ref)((0,shared_namespaceObject.random)(10));
|
1591
1592
|
(0,external_vue_namespaceObject.watch)(editKey, function () {
|
1592
1593
|
if (props.mode === SearchInputMode.DEFAULT && editKey.value) {
|
1593
1594
|
showPopover.value = false;
|
@@ -1742,11 +1743,33 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1742
1743
|
keyword.value = text;
|
1743
1744
|
debounceSetMenuList();
|
1744
1745
|
return;
|
1746
|
+
} else {
|
1747
|
+
// command + a 全选删除特殊逻辑
|
1748
|
+
if (usingItem.value && !text) {
|
1749
|
+
inputKey.value = (0,shared_namespaceObject.random)(10);
|
1750
|
+
menuHoverId.value = '';
|
1751
|
+
usingItem.value = null;
|
1752
|
+
keyword.value = '';
|
1753
|
+
setTimeout(function () {
|
1754
|
+
setInputFocus(true, true);
|
1755
|
+
(0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
|
1756
|
+
}, 200);
|
1757
|
+
return;
|
1758
|
+
}
|
1745
1759
|
}
|
1746
1760
|
keyword.value = usingItem.value.isSpecialType() ? text : text.replace(usingItem.value.name, '').replace(':', '').trim();
|
1747
1761
|
debounceSetMenuList();
|
1748
1762
|
}
|
1749
1763
|
function handleInputKeyup(event) {
|
1764
|
+
// if ((event.ctrlKey || event.metaKey) && event.key === 'a') {
|
1765
|
+
// const selection = window.getSelection();
|
1766
|
+
// const range = selection.getRangeAt(0);
|
1767
|
+
// const startContainer = range.startContainer;
|
1768
|
+
// if (startContainer === inputRef.value) {
|
1769
|
+
// event?.preventDefault();
|
1770
|
+
// }
|
1771
|
+
// return;
|
1772
|
+
// }
|
1750
1773
|
switch (event.code) {
|
1751
1774
|
case 'Enter':
|
1752
1775
|
case 'NumpadEnter':
|
@@ -1921,7 +1944,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1921
1944
|
return _context2.abrupt("return");
|
1922
1945
|
case 18:
|
1923
1946
|
if (!(!usingItem.value || ((_usingItem$value9 = usingItem.value) === null || _usingItem$value9 === void 0 ? void 0 : _usingItem$value9.type) === 'condition')) {
|
1924
|
-
_context2.next =
|
1947
|
+
_context2.next = 28;
|
1925
1948
|
break;
|
1926
1949
|
}
|
1927
1950
|
usingItem.value = new SelectedItem(item, type !== null && type !== void 0 ? type : (_usingItem$value10 = usingItem.value) === null || _usingItem$value10 === void 0 ? void 0 : _usingItem$value10.type);
|
@@ -1938,29 +1961,30 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
1938
1961
|
setSelectedItem();
|
1939
1962
|
}
|
1940
1963
|
showPopover.value = isCondition || !!usingItem.value.children.length;
|
1941
|
-
setInputFocus(
|
1964
|
+
setInputFocus(props.valueBehavior === ValueBehavior.NEED_KEY && !!menuHoverId.value);
|
1965
|
+
typeof props.getMenuList === 'function' && (0,external_vue_namespaceObject.nextTick)(setCursorToEnd);
|
1942
1966
|
return _context2.abrupt("return");
|
1943
|
-
case
|
1967
|
+
case 28:
|
1944
1968
|
if (usingItem.value) {
|
1945
1969
|
usingItem.value.addValue(item);
|
1946
1970
|
(0,external_vue_namespaceObject.nextTick)(deleteInputTextNode);
|
1947
1971
|
}
|
1948
|
-
_context2.next =
|
1972
|
+
_context2.next = 31;
|
1949
1973
|
return validateUsingItemValues(usingItem.value.values);
|
1950
|
-
case
|
1974
|
+
case 31:
|
1951
1975
|
if (_context2.sent) {
|
1952
|
-
_context2.next =
|
1976
|
+
_context2.next = 33;
|
1953
1977
|
break;
|
1954
1978
|
}
|
1955
1979
|
return _context2.abrupt("return");
|
1956
|
-
case
|
1980
|
+
case 33:
|
1957
1981
|
if (!usingItem.value.multiple) {
|
1958
1982
|
setSelectedItem();
|
1959
1983
|
}
|
1960
1984
|
if (props.valueBehavior === ValueBehavior.NEED_KEY && (_usingItem$value12 = usingItem.value) !== null && _usingItem$value12 !== void 0 && _usingItem$value12.multiple) {
|
1961
1985
|
setInputFocus();
|
1962
1986
|
}
|
1963
|
-
case
|
1987
|
+
case 35:
|
1964
1988
|
case "end":
|
1965
1989
|
return _context2.stop();
|
1966
1990
|
}
|
@@ -2442,7 +2466,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2442
2466
|
deleteInputTextNode: deleteInputTextNode,
|
2443
2467
|
customPanelSubmit: customPanelSubmit,
|
2444
2468
|
refleshMenuHover: refleshMenuHover,
|
2445
|
-
t: t
|
2469
|
+
t: t,
|
2470
|
+
inputKey: inputKey
|
2446
2471
|
};
|
2447
2472
|
},
|
2448
2473
|
render: function render() {
|
@@ -2461,6 +2486,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2461
2486
|
var inputContent = function inputContent() {
|
2462
2487
|
var _this$keyword2, _this$usingItem, _this$usingItem2;
|
2463
2488
|
return (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("div", {
|
2489
|
+
"key": _this.inputKey,
|
2464
2490
|
"ref": "inputRef",
|
2465
2491
|
"class": {
|
2466
2492
|
'div-input': true,
|
@@ -2542,6 +2568,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
2542
2568
|
}, null)]) : undefined;
|
2543
2569
|
};
|
2544
2570
|
return (0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], {
|
2571
|
+
"key": this.inputKey,
|
2545
2572
|
"arrow": false,
|
2546
2573
|
"disableOutsideClick": true,
|
2547
2574
|
"isShow": showPopover,
|
@@ -83,6 +83,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
83
83
|
and: string;
|
84
84
|
logical: string;
|
85
85
|
}>;
|
86
|
+
inputKey: Ref<string>;
|
86
87
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], "focus" | "delete" | "add" | "selectKey", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
87
88
|
data: {
|
88
89
|
type: PropType<ISearchItem[]>;
|