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.
Files changed (208) hide show
  1. package/dist/index.cjs.js +133 -159
  2. package/dist/index.esm.js +26188 -29904
  3. package/dist/index.umd.js +133 -159
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/affix.css +0 -130
  7. package/lib/affix/affix.variable.css +1 -261
  8. package/lib/alert/alert.css +3 -133
  9. package/lib/alert/alert.variable.css +1 -261
  10. package/lib/backtop/backtop.css +3 -133
  11. package/lib/backtop/backtop.variable.css +4 -394
  12. package/lib/badge/badge.css +26 -156
  13. package/lib/badge/badge.variable.css +1 -261
  14. package/lib/breadcrumb/breadcrumb.css +5 -135
  15. package/lib/breadcrumb/breadcrumb.variable.css +6 -396
  16. package/lib/button/button.css +143 -273
  17. package/lib/button/button.variable.css +1 -261
  18. package/lib/button/index.d.ts +2 -1
  19. package/lib/card/card.css +4 -134
  20. package/lib/card/card.variable.css +5 -395
  21. package/lib/cascader/cascader.css +27 -153
  22. package/lib/cascader/cascader.d.ts +2 -2
  23. package/lib/cascader/cascader.less +5 -0
  24. package/lib/cascader/cascader.variable.css +28 -414
  25. package/lib/cascader/index.d.ts +6 -6
  26. package/lib/cascader/index.js +15 -747
  27. package/lib/checkbox/checkbox.css +10 -140
  28. package/lib/checkbox/checkbox.variable.css +1 -261
  29. package/lib/code-diff/code-diff.css +0 -130
  30. package/lib/code-diff/code-diff.variable.css +1 -261
  31. package/lib/collapse/collapse.css +1 -131
  32. package/lib/collapse/collapse.variable.css +1 -261
  33. package/lib/collapse-transition/collapse-transition.css +0 -130
  34. package/lib/collapse-transition/collapse-transition.variable.css +1 -261
  35. package/lib/color-picker/color-picker.css +0 -130
  36. package/lib/color-picker/color-picker.variable.css +1 -261
  37. package/lib/color-picker/index.js +8 -254
  38. package/lib/config-provider/config-provider.css +0 -130
  39. package/lib/config-provider/config-provider.variable.css +1 -261
  40. package/lib/container/container.css +0 -130
  41. package/lib/container/container.variable.css +1 -391
  42. package/lib/date-picker/date-picker.css +17 -147
  43. package/lib/date-picker/date-picker.variable.css +1 -261
  44. package/lib/date-picker/index.d.ts +2 -1
  45. package/lib/date-picker/index.js +103 -92
  46. package/lib/dialog/dialog.css +8 -138
  47. package/lib/dialog/dialog.variable.css +9 -399
  48. package/lib/directives/index.d.ts +1 -0
  49. package/lib/directives/index.js +1 -2
  50. package/lib/divider/divider.css +3 -133
  51. package/lib/divider/divider.variable.css +1 -261
  52. package/lib/dropdown/dropdown.css +0 -130
  53. package/lib/dropdown/dropdown.variable.css +1 -391
  54. package/lib/exception/exception.css +0 -130
  55. package/lib/exception/exception.variable.css +1 -261
  56. package/lib/fixed-navbar/fixed-navbar.css +4 -134
  57. package/lib/fixed-navbar/fixed-navbar.variable.css +1 -261
  58. package/lib/form/form.css +0 -130
  59. package/lib/form/form.variable.css +1 -261
  60. package/lib/image/image-viewer.css +0 -130
  61. package/lib/image/image-viewer.variable.css +1 -261
  62. package/lib/image/image.css +0 -130
  63. package/lib/image/image.variable.css +1 -391
  64. package/lib/index.js +1 -1
  65. package/lib/info-box/info-box.css +4 -134
  66. package/lib/info-box/info-box.variable.css +1 -261
  67. package/lib/input/input.css +75 -205
  68. package/lib/input/input.variable.css +76 -466
  69. package/lib/link/link.css +16 -146
  70. package/lib/link/link.variable.css +1 -261
  71. package/lib/loading/loading.css +16 -146
  72. package/lib/loading/loading.variable.css +17 -407
  73. package/lib/menu/menu.css +20 -150
  74. package/lib/menu/menu.variable.css +21 -411
  75. package/lib/menu/submenu.css +0 -130
  76. package/lib/menu/submenu.variable.css +1 -261
  77. package/lib/message/message.css +21 -151
  78. package/lib/message/message.variable.css +1 -261
  79. package/lib/modal/index.js +3 -0
  80. package/lib/modal/modal.css +4 -134
  81. package/lib/modal/modal.variable.css +5 -395
  82. package/lib/navigation/navigation.css +2 -132
  83. package/lib/navigation/navigation.variable.css +1 -261
  84. package/lib/notify/notify.css +7 -137
  85. package/lib/notify/notify.variable.css +1 -261
  86. package/lib/overflow-title/components/overflow-title.d.ts +20 -0
  87. package/lib/overflow-title/index.d.ts +40 -0
  88. package/lib/overflow-title/index.js +2 -1
  89. package/lib/overflow-title/overflow-title.css +3 -0
  90. package/lib/overflow-title/overflow-title.less +4 -0
  91. package/lib/overflow-title/overflow-title.variable.css +3 -0
  92. package/lib/overflow-title/props.d.ts +10 -0
  93. package/lib/pagination/index.d.ts +3 -3
  94. package/lib/pagination/pagination.css +1 -131
  95. package/lib/pagination/pagination.d.ts +1 -1
  96. package/lib/pagination/pagination.variable.css +1 -261
  97. package/lib/plugin-popover/index.d.ts +1 -1
  98. package/lib/plugin-popover/index.js +32 -21265
  99. package/lib/pop-confirm/index.d.ts +8 -0
  100. package/lib/pop-confirm/index.js +16 -8
  101. package/lib/pop-confirm/pop-confirm.css +0 -130
  102. package/lib/pop-confirm/pop-confirm.d.ts +4 -0
  103. package/lib/pop-confirm/pop-confirm.variable.css +1 -261
  104. package/lib/pop-confirm/props.d.ts +3 -0
  105. package/lib/popover/index.d.ts +49 -3
  106. package/lib/popover/index.js +87 -17449
  107. package/lib/popover/popover.css +0 -130
  108. package/lib/popover/popover.d.ts +23 -1
  109. package/lib/popover/popover.variable.css +1 -261
  110. package/lib/popover/props.d.ts +16 -0
  111. package/lib/popover/use-popover-init.d.ts +1 -2
  112. package/lib/popover/utils.d.ts +1 -1
  113. package/lib/process/process.css +13 -143
  114. package/lib/process/process.variable.css +1 -261
  115. package/lib/progress/progress.css +4 -134
  116. package/lib/progress/progress.variable.css +5 -395
  117. package/lib/radio/radio.css +42 -172
  118. package/lib/radio/radio.variable.css +1 -261
  119. package/lib/rate/rate.css +0 -130
  120. package/lib/rate/rate.variable.css +1 -261
  121. package/lib/resize-layout/resize-layout.css +0 -130
  122. package/lib/resize-layout/resize-layout.variable.css +1 -261
  123. package/lib/scrollbar/css/scrollbar.css +0 -130
  124. package/lib/scrollbar/css/scrollbar.variable.css +1 -261
  125. package/lib/search-select/index.d.ts +6 -0
  126. package/lib/search-select/index.js +36 -9
  127. package/lib/search-select/input.d.ts +1 -0
  128. package/lib/search-select/search-select.css +78 -208
  129. package/lib/search-select/search-select.d.ts +2 -0
  130. package/lib/search-select/search-select.less +39 -39
  131. package/lib/search-select/search-select.variable.css +79 -469
  132. package/lib/search-select/selected.d.ts +2 -0
  133. package/lib/select/index.d.ts +78 -7
  134. package/lib/select/index.js +83 -74
  135. package/lib/select/select.css +42 -169
  136. package/lib/select/select.d.ts +32 -2
  137. package/lib/select/select.less +4 -0
  138. package/lib/select/select.variable.css +43 -430
  139. package/lib/sideslider/sideslider.css +1 -131
  140. package/lib/sideslider/sideslider.variable.css +1 -261
  141. package/lib/slider/slider.css +5 -135
  142. package/lib/slider/slider.variable.css +1 -261
  143. package/lib/steps/steps.css +38 -168
  144. package/lib/steps/steps.variable.css +1 -261
  145. package/lib/styles/mixins/animate.css +0 -130
  146. package/lib/styles/mixins/animate.variable.css +1 -261
  147. package/lib/styles/mixins/mixins.css +0 -130
  148. package/lib/styles/mixins/mixins.variable.css +0 -130
  149. package/lib/styles/mixins/popper.css +0 -130
  150. package/lib/styles/mixins/popper.variable.css +1 -261
  151. package/lib/styles/mixins/scroll.css +0 -130
  152. package/lib/styles/mixins/scroll.variable.css +1 -261
  153. package/lib/styles/reset.css +0 -130
  154. package/lib/styles/reset.variable.css +1 -261
  155. package/lib/styles/themes/themes.less +130 -299
  156. package/lib/swiper/swiper.css +0 -130
  157. package/lib/swiper/swiper.variable.css +1 -261
  158. package/lib/switcher/switcher.css +17 -147
  159. package/lib/switcher/switcher.variable.css +18 -408
  160. package/lib/tab/tab.css +26 -156
  161. package/lib/tab/tab.variable.css +1 -261
  162. package/lib/table/components/table-column.d.ts +1 -1
  163. package/lib/table/index.d.ts +7 -7
  164. package/lib/table/index.js +59 -17260
  165. package/lib/table/plugins/head-filter.css +0 -130
  166. package/lib/table/plugins/head-filter.variable.css +1 -261
  167. package/lib/table/plugins/head-sort.css +0 -130
  168. package/lib/table/plugins/head-sort.variable.css +1 -261
  169. package/lib/table/plugins/settings.css +0 -130
  170. package/lib/table/plugins/settings.variable.css +1 -261
  171. package/lib/table/table.css +189 -319
  172. package/lib/table/table.d.ts +2 -2
  173. package/lib/table/table.variable.css +190 -580
  174. package/lib/table-column/index.d.ts +3 -3
  175. package/lib/table-column/index.js +9 -17991
  176. package/lib/tag/tag.css +5 -135
  177. package/lib/tag/tag.variable.css +1 -261
  178. package/lib/tag-input/index.d.ts +52 -10
  179. package/lib/tag-input/index.js +134 -17399
  180. package/lib/tag-input/tag-input.css +21 -148
  181. package/lib/tag-input/tag-input.d.ts +24 -4
  182. package/lib/tag-input/tag-input.less +4 -0
  183. package/lib/tag-input/tag-input.variable.css +4 -261
  184. package/lib/tag-input/tag-props.d.ts +11 -1
  185. package/lib/tag-input/tag-render.d.ts +2 -2
  186. package/lib/time-picker/time-picker.css +0 -130
  187. package/lib/time-picker/time-picker.variable.css +1 -261
  188. package/lib/timeline/timeline.css +19 -149
  189. package/lib/timeline/timeline.variable.css +1 -261
  190. package/lib/transfer/index.d.ts +3 -3
  191. package/lib/transfer/transfer.css +19 -149
  192. package/lib/transfer/transfer.d.ts +1 -1
  193. package/lib/transfer/transfer.variable.css +1 -261
  194. package/lib/tree/index.d.ts +3 -3
  195. package/lib/tree/index.js +11 -17270
  196. package/lib/tree/tree.css +10 -140
  197. package/lib/tree/tree.d.ts +1 -1
  198. package/lib/tree/tree.variable.css +11 -401
  199. package/lib/upload/upload.css +27 -157
  200. package/lib/upload/upload.variable.css +28 -418
  201. package/lib/virtual-render/index.d.ts +3 -3
  202. package/lib/virtual-render/index.js +8 -17267
  203. package/lib/virtual-render/virtual-render.css +0 -130
  204. package/lib/virtual-render/virtual-render.d.ts +1 -1
  205. package/lib/virtual-render/virtual-render.variable.css +1 -391
  206. package/package.json +1 -1
  207. package/lib/styles/themes/themes.css +0 -130
  208. 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 = 27;
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(!!props.getMenuList || props.valueBehavior === ValueBehavior.NEED_KEY && !!menuHoverId.value);
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 27:
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 = 30;
1972
+ _context2.next = 31;
1949
1973
  return validateUsingItemValues(usingItem.value.values);
1950
- case 30:
1974
+ case 31:
1951
1975
  if (_context2.sent) {
1952
- _context2.next = 32;
1976
+ _context2.next = 33;
1953
1977
  break;
1954
1978
  }
1955
1979
  return _context2.abrupt("return");
1956
- case 32:
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 34:
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[]>;