bkui-vue 2.0.1-beta.11 → 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.
Files changed (196) hide show
  1. package/dist/index.cjs.js +165 -165
  2. package/dist/index.esm.js +31260 -31265
  3. package/dist/index.umd.js +165 -165
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +7 -7
  7. package/lib/alert/alert.d.ts +5 -5
  8. package/lib/alert/index.d.ts +11 -11
  9. package/lib/backtop/backtop.d.ts +1 -1
  10. package/lib/backtop/index.d.ts +3 -3
  11. package/lib/backtop/index.js +6 -6
  12. package/lib/badge/index.js +1 -1
  13. package/lib/button/button.d.ts +7 -7
  14. package/lib/button/index.d.ts +8 -8
  15. package/lib/button/index.js +6 -6
  16. package/lib/cascader/cascader-panel.d.ts +1 -1
  17. package/lib/cascader/cascader.d.ts +1 -1
  18. package/lib/cascader/index.js +31 -32
  19. package/lib/cascader/interface.d.ts +1 -1
  20. package/lib/checkbox/index.js +3 -3
  21. package/lib/checkbox/type.d.ts +1 -1
  22. package/lib/code-diff/index.js +8 -8
  23. package/lib/collapse/index.js +2 -2
  24. package/lib/collapse/utils.d.ts +2 -2
  25. package/lib/color-picker/index.js +44 -44
  26. package/lib/components.d.ts +32 -32
  27. package/lib/components.js +31 -31
  28. package/lib/config-provider/index.d.ts +1 -1
  29. package/lib/container/index.js +6 -6
  30. package/lib/date-picker/base/date-table.d.ts +1 -1
  31. package/lib/date-picker/base/month-table.d.ts +1 -1
  32. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  33. package/lib/date-picker/base/year-table.d.ts +1 -1
  34. package/lib/date-picker/index.js +189 -188
  35. package/lib/date-picker/interface.d.ts +9 -9
  36. package/lib/date-picker/panel/date-range.d.ts +1 -1
  37. package/lib/date-picker/panel/date.d.ts +1 -1
  38. package/lib/date-picker/panel/time-range.d.ts +1 -1
  39. package/lib/date-picker/panel/time.d.ts +1 -1
  40. package/lib/date-picker/props.d.ts +1 -1
  41. package/lib/date-picker/utils.d.ts +1 -1
  42. package/lib/dialog/dialog.d.ts +18 -18
  43. package/lib/dialog/index.d.ts +40 -40
  44. package/lib/dialog/index.js +22 -22
  45. package/lib/dialog/props.d.ts +7 -7
  46. package/lib/directives/index.d.ts +3 -3
  47. package/lib/directives/index.js +166 -166
  48. package/lib/directives/tooltips.d.ts +1 -1
  49. package/lib/dist.index.js +3 -2
  50. package/lib/divider/divider.d.ts +5 -5
  51. package/lib/divider/index.d.ts +11 -11
  52. package/lib/divider/index.js +2 -2
  53. package/lib/divider/props.d.ts +2 -2
  54. package/lib/dropdown/dropdown.d.ts +5 -5
  55. package/lib/dropdown/index.d.ts +11 -11
  56. package/lib/dropdown/index.js +7 -7
  57. package/lib/exception/exception.d.ts +9 -9
  58. package/lib/exception/index.d.ts +11 -11
  59. package/lib/exception/index.js +10 -10
  60. package/lib/exception/typings/index.d.ts +1 -1
  61. package/lib/fixed-navbar/index.js +2 -2
  62. package/lib/form/form.d.ts +2 -2
  63. package/lib/form/index.js +14 -14
  64. package/lib/form/type.d.ts +2 -2
  65. package/lib/icon/index.d.ts +11 -11
  66. package/lib/icon/index.js +11 -11
  67. package/lib/image/image-viewer.d.ts +1 -1
  68. package/lib/image/index.js +20 -20
  69. package/lib/index.d.ts +4 -3
  70. package/lib/index.js +4 -4
  71. package/lib/info-box/index.js +13 -13
  72. package/lib/info-box/info-box.d.ts +15 -15
  73. package/lib/input/index.d.ts +15 -15
  74. package/lib/input/index.js +16 -16
  75. package/lib/input/input.d.ts +15 -15
  76. package/lib/link/index.d.ts +11 -11
  77. package/lib/link/index.js +3 -3
  78. package/lib/link/link.d.ts +5 -5
  79. package/lib/loading/index.d.ts +4 -4
  80. package/lib/loading/index.js +6 -6
  81. package/lib/loading/loading.d.ts +6 -6
  82. package/lib/locale/index.d.ts +1 -1
  83. package/lib/menu/index.js +0 -1
  84. package/lib/menu/utils.d.ts +3 -3
  85. package/lib/message/index.js +18 -18
  86. package/lib/message/messageConstructor.d.ts +11 -11
  87. package/lib/modal/index.d.ts +3 -3
  88. package/lib/modal/index.js +7 -7
  89. package/lib/modal/modal.d.ts +1 -1
  90. package/lib/navigation/index.js +20 -20
  91. package/lib/navigation/navigation.d.ts +1 -1
  92. package/lib/notify/index.js +4 -4
  93. package/lib/overflow-title/components/overflow-title.d.ts +9 -9
  94. package/lib/overflow-title/index.d.ts +19 -19
  95. package/lib/overflow-title/index.js +61 -11
  96. package/lib/overflow-title/props.d.ts +18 -18
  97. package/lib/pagination/index.js +16 -16
  98. package/lib/pagination/type.d.ts +1 -1
  99. package/lib/pagination/use-limit.d.ts +1 -1
  100. package/lib/pagination/use-total.d.ts +1 -1
  101. package/lib/plugin-popover/index.js +18 -19
  102. package/lib/pop-confirm/index.d.ts +11 -11
  103. package/lib/pop-confirm/index.js +9 -9
  104. package/lib/pop-confirm/pop-confirm.d.ts +5 -5
  105. package/lib/pop-confirm/props.d.ts +4 -4
  106. package/lib/popover/const.d.ts +3 -3
  107. package/lib/popover/index.d.ts +19 -19
  108. package/lib/popover/index.js +18 -19
  109. package/lib/popover/plugin-popover.d.ts +1 -1
  110. package/lib/popover/popover.d.ts +7 -7
  111. package/lib/popover/props.d.ts +4 -4
  112. package/lib/preset.d.ts +0 -1
  113. package/lib/preset.js +0 -1
  114. package/lib/process/index.js +3 -3
  115. package/lib/progress/index.d.ts +11 -11
  116. package/lib/progress/index.js +10 -10
  117. package/lib/progress/progress.d.ts +7 -7
  118. package/lib/radio/index.js +10 -10
  119. package/lib/radio/type.d.ts +1 -1
  120. package/lib/rate/index.js +8 -8
  121. package/lib/resize-layout/index.d.ts +11 -11
  122. package/lib/resize-layout/index.js +7 -8
  123. package/lib/resize-layout/resize-layout.d.ts +5 -5
  124. package/lib/scrollbar/index.js +0 -1
  125. package/lib/scrollbar/scrollbar-core/index.d.ts +9 -9
  126. package/lib/search-select/index.js +66 -66
  127. package/lib/search-select/menu.d.ts +1 -1
  128. package/lib/search-select/selected.d.ts +1 -1
  129. package/lib/search-select/utils.d.ts +3 -3
  130. package/lib/select/index.d.ts +61 -61
  131. package/lib/select/index.js +69 -73
  132. package/lib/select/option.d.ts +1 -1
  133. package/lib/select/select.d.ts +24 -24
  134. package/lib/select/selectTagInput.d.ts +6 -6
  135. package/lib/select/type.d.ts +2 -2
  136. package/lib/shared/index.d.ts +1 -1
  137. package/lib/shared/index.js +38 -46
  138. package/lib/shared/popover.d.ts +3 -3
  139. package/lib/shared/token.d.ts +1 -1
  140. package/lib/shared/vue-types.d.ts +46 -46
  141. package/lib/shared/z-index-manager.d.ts +6 -6
  142. package/lib/sideslider/index.d.ts +3 -3
  143. package/lib/sideslider/index.js +11 -11
  144. package/lib/sideslider/sideslider.d.ts +1 -1
  145. package/lib/slider/index.js +21 -23
  146. package/lib/steps/index.d.ts +11 -11
  147. package/lib/steps/index.js +3 -3
  148. package/lib/steps/steps.d.ts +7 -7
  149. package/lib/swiper/index.js +5 -5
  150. package/lib/switcher/index.js +2 -2
  151. package/lib/switcher/switcher.d.ts +2 -2
  152. package/lib/tab/index.d.ts +22 -22
  153. package/lib/tab/index.js +15 -15
  154. package/lib/tab/props.d.ts +15 -15
  155. package/lib/tab/tab-nav.d.ts +10 -10
  156. package/lib/tab/tab.d.ts +10 -10
  157. package/lib/table/components/table-column.d.ts +27 -87
  158. package/lib/table/const.d.ts +8 -8
  159. package/lib/table/events.d.ts +21 -21
  160. package/lib/table/index.d.ts +194 -244
  161. package/lib/table/index.js +126 -129
  162. package/lib/table/props.d.ts +33 -33
  163. package/lib/table/table.css +3 -4
  164. package/lib/table/table.d.ts +47 -47
  165. package/lib/table/table.less +4 -12
  166. package/lib/table/table.variable.css +3 -4
  167. package/lib/table/use-attributes.d.ts +3 -3
  168. package/lib/table/use-column.d.ts +9 -129
  169. package/lib/table/use-common.d.ts +4 -4
  170. package/lib/table/utils.d.ts +5 -5
  171. package/lib/table-column/index.d.ts +42 -172
  172. package/lib/table-column/index.js +18 -18
  173. package/lib/tag/index.d.ts +11 -11
  174. package/lib/tag/index.js +2 -2
  175. package/lib/tag/tag.d.ts +5 -5
  176. package/lib/tag-input/common.d.ts +1 -1
  177. package/lib/tag-input/index.d.ts +8 -8
  178. package/lib/tag-input/index.js +30 -30
  179. package/lib/tag-input/tag-input.d.ts +4 -4
  180. package/lib/tag-input/tag-props.d.ts +2 -2
  181. package/lib/timeline/index.js +2 -2
  182. package/lib/transfer/const.d.ts +2 -2
  183. package/lib/transfer/index.js +3 -5
  184. package/lib/tree/constant.d.ts +20 -20
  185. package/lib/tree/index.d.ts +20 -20
  186. package/lib/tree/index.js +36 -36
  187. package/lib/tree/props.d.ts +6 -6
  188. package/lib/tree/tree.d.ts +6 -6
  189. package/lib/tree/use-empty.d.ts +1 -1
  190. package/lib/tree/use-node-action.d.ts +2 -2
  191. package/lib/tree/use-search.d.ts +1 -1
  192. package/lib/upload/index.js +25 -26
  193. package/lib/upload/props.d.ts +1 -1
  194. package/lib/upload/upload.type.d.ts +6 -6
  195. package/lib/upload/use-file-handler.d.ts +1 -1
  196. 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<"top" | "right" | "bottom" | "left"> & {
4
- default: "top" | "right" | "bottom" | "left";
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<"top" | "right" | "bottom" | "left"> & {
74
- default: "top" | "right" | "bottom" | "left";
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: "top" | "right" | "bottom" | "left";
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<"top" | "right" | "bottom" | "left"> & {
142
- default: "top" | "right" | "bottom" | "left";
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: "top" | "right" | "bottom" | "left";
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<"top" | "right" | "bottom" | "left"> & {
228
- default: "top" | "right" | "bottom" | "left";
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: "top" | "right" | "bottom" | "left";
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
- "class": ["".concat(this.resolveClassName('resize-proxy')), this.placement],
380
- "ref": "resizeProxyRef"
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
- "class": "".concat(this.resolveClassName('resize-mask')),
395
- "ref": "resizeMaskRef"
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<"top" | "right" | "bottom" | "left"> & {
3
- default: "top" | "right" | "bottom" | "left";
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<"top" | "right" | "bottom" | "left"> & {
68
- default: "top" | "right" | "bottom" | "left";
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: "top" | "right" | "bottom" | "left";
117
+ placement: "bottom" | "left" | "right" | "top";
118
118
  border: boolean;
119
119
  max: number;
120
120
  min: number;
@@ -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: boolean | Axis;
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: 'width' | 'height';
71
- scrollSizeAttr: 'scrollWidth' | 'scrollHeight';
72
- offsetSizeAttr: 'offsetWidth' | 'offsetHeight';
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: DebouncedFunc<any> | (() => void);
164
- onWindowResize: DebouncedFunc<any> | (() => void);
165
- onStopScrolling: DebouncedFunc<any> | (() => void);
166
- onMouseEntered: DebouncedFunc<any> | (() => void);
167
- onMouseWheel: DebouncedFunc<any> | (() => void);
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
- "modelValue": _this.selected.includes(item.id),
1425
- "class": "is-selected"
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
- "list": _this.menuList,
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
- "onUpdate:logical": _this.handleLogicalChange,
2464
- "onSelectItem": _this.handleSelectItem,
2463
+ "onFooterClick": _this.handleMenuFooterClick,
2465
2464
  "onSelectCondition": _this.handleSelectCondtionItem,
2466
- "onFooterClick": _this.handleMenuFooterClick
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
- "mode": SearchInputMode.EDIT,
2608
- "data": _this.data,
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
- "class": "search-container-selected ".concat(!(_this.overflowIndex >= 0 ? index < _this.overflowIndex : index >= 0) ? 'hidden-selected' : ''),
2622
- "key": "".concat(item.id, "_").concat(index)
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
- "class": this.resolveClassName('search-select'),
2994
- "ref": "wrapRef"
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
- "selectedList": this.selectedList,
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
- "onClick": this.handleClickSearch,
3039
- "class": "search-nextfix-icon ".concat(this.isFocus ? 'is-focus' : '')
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) => string | (string | VNode)[];
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<String>;
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<String>;
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: 'confirm' | 'cancel';
76
+ id: 'cancel' | 'confirm';
77
77
  name: string;
78
78
  disabled?: boolean;
79
79
  }
80
- export type SearchItemType = 'text' | 'default' | 'condition';
80
+ export type SearchItemType = 'condition' | 'default' | 'text';
81
81
  export declare class SelectedItem {
82
82
  searchItem: ISearchItem;
83
83
  type: SearchItemType;