bkui-vue 1.0.3-beta.60.scrollbar.4 → 1.0.3-beta.61

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 (210) hide show
  1. package/dist/index.cjs.js +50 -52
  2. package/dist/index.esm.js +13994 -14680
  3. package/dist/index.umd.js +50 -52
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/affix/index.js +1 -1
  7. package/lib/alert/index.js +1 -1
  8. package/lib/animate-number/index.js +7 -8
  9. package/lib/badge/index.js +1 -1
  10. package/lib/breadcrumb/index.js +1 -1
  11. package/lib/button/index.js +1 -1
  12. package/lib/card/index.js +1 -1
  13. package/lib/cascader/index.js +38 -42
  14. package/lib/checkbox/index.js +6 -7
  15. package/lib/collapse/index.js +11 -12
  16. package/lib/collapse-transition/index.js +3 -4
  17. package/lib/color-picker/index.js +10 -13
  18. package/lib/components.d.ts +1 -0
  19. package/lib/components.js +2 -1
  20. package/lib/config-provider/index.js +1 -1
  21. package/lib/container/index.js +10 -12
  22. package/lib/date-picker/index.js +2 -2
  23. package/lib/dialog/dialog.css +7 -9
  24. package/lib/dialog/dialog.variable.css +7 -9
  25. package/lib/dialog/index.js +4 -4
  26. package/lib/directives/index.js +1 -1
  27. package/lib/divider/index.js +2 -3
  28. package/lib/dropdown/index.js +6 -8
  29. package/lib/exception/index.js +1 -1
  30. package/lib/fixed-navbar/index.js +2 -3
  31. package/lib/form/index.js +1 -1
  32. package/lib/icon/angle-double-down-line.js +1 -1
  33. package/lib/icon/angle-double-left-line.js +1 -1
  34. package/lib/icon/angle-double-left.js +1 -1
  35. package/lib/icon/angle-double-right-line.js +1 -1
  36. package/lib/icon/angle-double-right.js +1 -1
  37. package/lib/icon/angle-double-up-line.js +1 -1
  38. package/lib/icon/angle-down-fill.js +1 -1
  39. package/lib/icon/angle-down-line.js +1 -1
  40. package/lib/icon/angle-down.js +1 -1
  41. package/lib/icon/angle-left.js +1 -1
  42. package/lib/icon/angle-right.js +1 -1
  43. package/lib/icon/angle-up-fill.js +1 -1
  44. package/lib/icon/angle-up.js +1 -1
  45. package/lib/icon/archive-fill.js +1 -1
  46. package/lib/icon/arrows-left.js +1 -1
  47. package/lib/icon/arrows-right.js +1 -1
  48. package/lib/icon/assistant.js +1 -1
  49. package/lib/icon/audio-fill.js +1 -1
  50. package/lib/icon/bk.js +1 -1
  51. package/lib/icon/circle.js +1 -1
  52. package/lib/icon/close-line.js +1 -1
  53. package/lib/icon/close.js +1 -1
  54. package/lib/icon/code.js +1 -1
  55. package/lib/icon/cog-shape.js +1 -1
  56. package/lib/icon/collapse-left.js +1 -1
  57. package/lib/icon/copy-shape.js +1 -1
  58. package/lib/icon/copy.js +1 -1
  59. package/lib/icon/data-shape.js +1 -1
  60. package/lib/icon/del.js +1 -1
  61. package/lib/icon/doc-fill.js +1 -1
  62. package/lib/icon/done.js +1 -1
  63. package/lib/icon/down-shape.js +1 -1
  64. package/lib/icon/down-small.js +1 -1
  65. package/lib/icon/edit-line.js +1 -1
  66. package/lib/icon/ellipsis.js +1 -1
  67. package/lib/icon/enlarge-line.js +1 -1
  68. package/lib/icon/error.js +1 -1
  69. package/lib/icon/excel-fill.js +1 -1
  70. package/lib/icon/exclamation-circle-shape.js +1 -1
  71. package/lib/icon/eye.js +1 -1
  72. package/lib/icon/filliscreen-line.js +1 -1
  73. package/lib/icon/fix-line.js +1 -1
  74. package/lib/icon/fix-shape.js +1 -1
  75. package/lib/icon/folder-open.js +1 -1
  76. package/lib/icon/folder-shape-open.js +1 -1
  77. package/lib/icon/folder-shape.js +1 -1
  78. package/lib/icon/folder.js +1 -1
  79. package/lib/icon/funnel.js +1 -1
  80. package/lib/icon/grag-fill.js +1 -1
  81. package/lib/icon/help-document-fill.js +1 -1
  82. package/lib/icon/help-fill.js +1 -1
  83. package/lib/icon/help.js +1 -1
  84. package/lib/icon/image-fill.js +1 -1
  85. package/lib/icon/img-error.js +1 -1
  86. package/lib/icon/img-placehoulder.js +1 -1
  87. package/lib/icon/info-line.js +1 -1
  88. package/lib/icon/info.js +1 -1
  89. package/lib/icon/left-shape.js +1 -1
  90. package/lib/icon/left-turn-line.js +1 -1
  91. package/lib/icon/loading.js +1 -1
  92. package/lib/icon/narrow-line.js +1 -1
  93. package/lib/icon/original.js +1 -1
  94. package/lib/icon/pdf-fill.js +1 -1
  95. package/lib/icon/play-shape.js +1 -1
  96. package/lib/icon/plus.js +1 -1
  97. package/lib/icon/ppt-fill.js +1 -1
  98. package/lib/icon/qq.js +1 -1
  99. package/lib/icon/right-shape.js +1 -1
  100. package/lib/icon/right-turn-line.js +1 -1
  101. package/lib/icon/search.js +1 -1
  102. package/lib/icon/share.js +1 -1
  103. package/lib/icon/spinner.js +1 -1
  104. package/lib/icon/success.js +1 -1
  105. package/lib/icon/switcher-loading.js +1 -1
  106. package/lib/icon/text-all.js +1 -1
  107. package/lib/icon/text-file.js +1 -1
  108. package/lib/icon/text-fill.js +1 -1
  109. package/lib/icon/transfer.js +1 -1
  110. package/lib/icon/tree-application-shape.js +1 -1
  111. package/lib/icon/unfull-screen.js +1 -1
  112. package/lib/icon/unvisible.js +1 -1
  113. package/lib/icon/up-shape.js +1 -1
  114. package/lib/icon/upload.js +1 -1
  115. package/lib/icon/video-fill.js +1 -1
  116. package/lib/icon/warn.js +1 -1
  117. package/lib/icon/weixin-pro.js +1 -1
  118. package/lib/icon/weixin.js +1 -1
  119. package/lib/image/index.js +10 -11
  120. package/lib/info-box/index.js +5 -4
  121. package/lib/input/index.js +4 -4
  122. package/lib/link/index.js +2 -2
  123. package/lib/loading/index.js +11 -12
  124. package/lib/menu/index.js +2 -3
  125. package/lib/message/index.js +1 -1
  126. package/lib/modal/hooks.d.ts +1 -1
  127. package/lib/modal/index.d.ts +3 -0
  128. package/lib/modal/index.js +25 -26
  129. package/lib/modal/modal.css +7 -9
  130. package/lib/modal/modal.d.ts +1 -0
  131. package/lib/modal/modal.less +11 -18
  132. package/lib/modal/modal.variable.css +7 -9
  133. package/lib/navigation/index.js +7 -9
  134. package/lib/notify/index.js +1 -1
  135. package/lib/overflow-title/index.js +9 -10
  136. package/lib/pagination/index.js +1 -1
  137. package/lib/plugin-popover/index.js +26 -30
  138. package/lib/pop-confirm/index.js +4 -5
  139. package/lib/popover/index.js +26 -30
  140. package/lib/popover2/index.js +2 -2
  141. package/lib/process/index.js +4 -4
  142. package/lib/progress/index.js +5 -6
  143. package/lib/radio/index.js +6 -7
  144. package/lib/rate/index.js +1 -1
  145. package/lib/resize-layout/index.js +1 -1
  146. package/lib/search-select/index.d.ts +327 -12
  147. package/lib/search-select/index.js +630 -353
  148. package/lib/search-select/input.d.ts +6 -1
  149. package/lib/search-select/search-select.css +20 -6
  150. package/lib/search-select/search-select.d.ts +109 -4
  151. package/lib/search-select/search-select.less +16 -12
  152. package/lib/search-select/search-select.variable.css +20 -6
  153. package/lib/search-select/selected.d.ts +107 -5
  154. package/lib/search-select/utils.d.ts +13 -1
  155. package/lib/select/index.d.ts +56 -0
  156. package/lib/select/index.js +12 -7
  157. package/lib/select/select.css +19 -5
  158. package/lib/select/select.d.ts +22 -0
  159. package/lib/select/select.less +26 -6
  160. package/lib/select/select.variable.css +19 -5
  161. package/lib/select/selectTagInput.d.ts +7 -0
  162. package/lib/shared/index.js +5 -8
  163. package/lib/sideslider/index.js +4 -4
  164. package/lib/sideslider/sideslider.css +0 -5
  165. package/lib/sideslider/sideslider.less +8 -14
  166. package/lib/sideslider/sideslider.variable.css +0 -5
  167. package/lib/slider/index.js +19 -20
  168. package/lib/steps/index.js +4 -4
  169. package/lib/swiper/index.js +1 -1
  170. package/lib/switcher/index.js +1 -1
  171. package/lib/tab/index.js +3 -4
  172. package/lib/table/const.d.ts +1 -1
  173. package/lib/table/index.js +24 -26
  174. package/lib/table/plugins/use-fixed-column.d.ts +1 -1
  175. package/lib/table/table.css +42 -96
  176. package/lib/table/table.less +56 -41
  177. package/lib/table/table.variable.css +42 -96
  178. package/lib/table/use-render.d.ts +1 -1
  179. package/lib/table-column/index.js +2 -2
  180. package/lib/tag/index.js +1 -1
  181. package/lib/tag-input/index.js +3 -4
  182. package/lib/timeline/index.js +1 -0
  183. package/lib/tree/index.js +10 -12
  184. package/lib/tree/tree.css +2 -75
  185. package/lib/tree/tree.variable.css +2 -75
  186. package/lib/upload/index.d.ts +12 -0
  187. package/lib/upload/index.js +25 -34
  188. package/lib/upload/props.d.ts +3 -0
  189. package/lib/upload/upload-trigger.d.ts +6 -0
  190. package/lib/upload/upload.d.ts +6 -0
  191. package/lib/virtual-render/index.d.ts +0 -4
  192. package/lib/virtual-render/index.js +235 -2436
  193. package/lib/virtual-render/props.d.ts +0 -7
  194. package/lib/virtual-render/use-fix-top.d.ts +7 -2
  195. package/lib/virtual-render/v-virtual-render.d.ts +1 -2
  196. package/lib/virtual-render/virtual-render.css +2 -75
  197. package/lib/virtual-render/virtual-render.d.ts +0 -2
  198. package/lib/virtual-render/virtual-render.less +2 -2
  199. package/lib/virtual-render/virtual-render.variable.css +2 -75
  200. package/package.json +1 -5
  201. package/lib/virtual-render/bk-scrollbar.css +0 -74
  202. package/lib/virtual-render/bk-scrollbar.d.ts +0 -10
  203. package/lib/virtual-render/bk-scrollbar.less +0 -93
  204. package/lib/virtual-render/bk-scrollbar.variable.css +0 -203
  205. package/lib/virtual-render/scrollbar-core/can-use-dom.d.ts +0 -2
  206. package/lib/virtual-render/scrollbar-core/helpers.d.ts +0 -5
  207. package/lib/virtual-render/scrollbar-core/index.d.ts +0 -213
  208. package/lib/virtual-render/scrollbar-core/mouse-wheel.d.ts +0 -5
  209. package/lib/virtual-render/scrollbar-core/scrollbar-width.d.ts +0 -1
  210. package/lib/virtual-render/use-scrollbar.d.ts +0 -23
@@ -53,14 +53,19 @@ declare const _default: import("vue").DefineComponent<{
53
53
  };
54
54
  documentArrowEvent: (e: KeyboardEvent) => void;
55
55
  handleClickOutside: (e: MouseEvent) => void;
56
- handleInputFocus: (e: FocusEvent) => void;
56
+ handleInputFocus: () => void;
57
57
  handleInputChange: (event: Event) => void;
58
+ handleInputPaste: (event: ClipboardEvent) => void;
58
59
  handleLogicalChange: (logical: SearchLogical) => void;
59
60
  handleInputKeyup: (event: KeyboardEvent) => void;
60
61
  handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
61
62
  handleSelectCondtionItem: (item: ICommonItem) => void;
62
63
  handleMenuFooterClick: (item: IMenuFooterItem) => void;
63
64
  resolveClassName: (cls: string) => string;
65
+ inputFocusForWrapper: () => void;
66
+ inputEnterForWrapper: () => Promise<void>;
67
+ inputClearForWrapper: () => void;
68
+ deleteInputTextNode: () => void;
64
69
  t: import("vue").ComputedRef<{
65
70
  pleaseSelect: string;
66
71
  loading: string;
@@ -189,6 +189,7 @@
189
189
  margin-top: -4px;
190
190
  color: #63656e;
191
191
  border: none;
192
+ flex: 1;
192
193
  }
193
194
  .bk-search-select-container .search-container-input .input-before:before {
194
195
  color: #c4c6cc;
@@ -287,12 +288,16 @@
287
288
  }
288
289
  .bk-search-select-menu .menu-item-mixin {
289
290
  display: flex;
290
- align-items: center;
291
291
  width: 100%;
292
292
  height: 32px;
293
+ max-width: 500px;
293
294
  padding: 0 8px;
294
- flex: 0 0 32px;
295
+ overflow: hidden;
296
+ text-overflow: ellipsis;
297
+ white-space: nowrap;
295
298
  outline: none;
299
+ align-items: center;
300
+ flex: 0 0 32px;
296
301
  }
297
302
  .bk-search-select-menu .menu-item-mixin:hover {
298
303
  cursor: pointer;
@@ -312,12 +317,16 @@
312
317
  }
313
318
  .bk-search-select-menu .menu-header-item {
314
319
  display: flex;
315
- align-items: center;
316
320
  width: 100%;
317
321
  height: 32px;
322
+ max-width: 500px;
318
323
  padding: 0 8px;
319
- flex: 0 0 32px;
324
+ overflow: hidden;
325
+ text-overflow: ellipsis;
326
+ white-space: nowrap;
320
327
  outline: none;
328
+ align-items: center;
329
+ flex: 0 0 32px;
321
330
  }
322
331
  .bk-search-select-menu .menu-header-item:hover {
323
332
  cursor: pointer;
@@ -360,18 +369,23 @@
360
369
  display: flex;
361
370
  max-height: 240px;
362
371
  padding: 4px 0;
372
+ margin: 0;
363
373
  overflow: auto;
364
374
  flex-direction: column;
365
375
  flex: 1;
366
376
  }
367
377
  .bk-search-select-menu .menu-content .menu-item {
368
378
  display: flex;
369
- align-items: center;
370
379
  width: 100%;
371
380
  height: 32px;
381
+ max-width: 500px;
372
382
  padding: 0 8px;
373
- flex: 0 0 32px;
383
+ overflow: hidden;
384
+ text-overflow: ellipsis;
385
+ white-space: nowrap;
374
386
  outline: none;
387
+ align-items: center;
388
+ flex: 0 0 32px;
375
389
  white-space: pre;
376
390
  }
377
391
  .bk-search-select-menu .menu-content .menu-item:hover {
@@ -84,7 +84,7 @@ declare const _default: import("vue").DefineComponent<{
84
84
  validator(v: ValueBehavior): boolean;
85
85
  };
86
86
  }, {
87
- inputRef: import("vue").Ref<import("vue").DefineComponent<{
87
+ inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
88
88
  data: {
89
89
  type: PropType<ISearchItem[]>;
90
90
  required: true;
@@ -105,6 +105,10 @@ declare const _default: import("vue").DefineComponent<{
105
105
  getMenuList: PropType<GetMenuListFunc>;
106
106
  validateValues: PropType<ValidateValuesFunc>;
107
107
  valueBehavior: PropType<ValueBehavior>;
108
+ }>> & {
109
+ onFocus?: (...args: any[]) => any;
110
+ onDelete?: (...args: any[]) => any;
111
+ onAdd?: (...args: any[]) => any;
108
112
  }, {
109
113
  popoverRef: import("vue").Ref<HTMLDivElement>;
110
114
  inputRef: import("vue").Ref<HTMLDivElement>;
@@ -137,14 +141,19 @@ declare const _default: import("vue").DefineComponent<{
137
141
  };
138
142
  documentArrowEvent: (e: KeyboardEvent) => void;
139
143
  handleClickOutside: (e: MouseEvent) => void;
140
- handleInputFocus: (e: FocusEvent) => void;
144
+ handleInputFocus: () => void;
141
145
  handleInputChange: (event: Event) => void;
146
+ handleInputPaste: (event: ClipboardEvent) => void;
142
147
  handleLogicalChange: (logical: SearchLogical) => void;
143
148
  handleInputKeyup: (event: KeyboardEvent) => void;
144
149
  handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
145
150
  handleSelectCondtionItem: (item: ICommonItem) => void;
146
151
  handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
147
152
  resolveClassName: (cls: string) => string;
153
+ inputFocusForWrapper: () => void;
154
+ inputEnterForWrapper: () => Promise<void>;
155
+ inputClearForWrapper: () => void;
156
+ deleteInputTextNode: () => void;
148
157
  t: import("vue").ComputedRef<{
149
158
  pleaseSelect: string;
150
159
  loading: string;
@@ -155,7 +164,7 @@ declare const _default: import("vue").DefineComponent<{
155
164
  and: string;
156
165
  logical: string;
157
166
  }>;
158
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], "focus" | "delete" | "add", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
167
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
159
168
  data: {
160
169
  type: PropType<ISearchItem[]>;
161
170
  required: true;
@@ -185,7 +194,99 @@ declare const _default: import("vue").DefineComponent<{
185
194
  conditions: ICommonItem[];
186
195
  showInputBefore: boolean;
187
196
  showCondition: boolean;
188
- }, {}>>;
197
+ }, true, {}, {}, {
198
+ P: {};
199
+ B: {};
200
+ D: {};
201
+ C: {};
202
+ M: {};
203
+ Defaults: {};
204
+ }, Readonly<import("vue").ExtractPropTypes<{
205
+ data: {
206
+ type: PropType<ISearchItem[]>;
207
+ required: true;
208
+ };
209
+ showInputBefore: BooleanConstructor;
210
+ showCondition: BooleanConstructor;
211
+ clickOutside: FunctionConstructor;
212
+ placeholder: StringConstructor;
213
+ conditions: {
214
+ type: PropType<ICommonItem[]>;
215
+ default: () => any[];
216
+ };
217
+ defautUsingItem: PropType<SelectedItem>;
218
+ mode: {
219
+ type: PropType<import("./utils").SearchInputMode>;
220
+ default: import("./utils").SearchInputMode;
221
+ };
222
+ getMenuList: PropType<GetMenuListFunc>;
223
+ validateValues: PropType<ValidateValuesFunc>;
224
+ valueBehavior: PropType<ValueBehavior>;
225
+ }>> & {
226
+ onFocus?: (...args: any[]) => any;
227
+ onDelete?: (...args: any[]) => any;
228
+ onAdd?: (...args: any[]) => any;
229
+ }, {
230
+ popoverRef: import("vue").Ref<HTMLDivElement>;
231
+ inputRef: import("vue").Ref<HTMLDivElement>;
232
+ keyword: import("vue").Ref<string>;
233
+ loading: import("vue").Ref<boolean>;
234
+ remoteMenuList: import("vue").Ref<{
235
+ id: string;
236
+ name: string;
237
+ disabled?: boolean;
238
+ realId?: string;
239
+ value?: {
240
+ name: string;
241
+ id: string;
242
+ realId?: string;
243
+ isSelected?: boolean;
244
+ logical?: SearchLogical;
245
+ };
246
+ isSelected?: boolean;
247
+ logical?: SearchLogical;
248
+ }[]>;
249
+ menuList: import("vue").Ref<ISearchItem[]>;
250
+ menuHoverId: import("vue").Ref<string>;
251
+ isFocus: import("vue").Ref<boolean>;
252
+ usingItem: import("vue").Ref<SelectedItem>;
253
+ showPopover: import("vue").Ref<boolean>;
254
+ showNoSelectValueError: import("vue").Ref<boolean>;
255
+ debounceSetMenuList: {
256
+ (this: any): any;
257
+ cancel(): void;
258
+ };
259
+ documentArrowEvent: (e: KeyboardEvent) => void;
260
+ handleClickOutside: (e: MouseEvent) => void;
261
+ handleInputFocus: () => void;
262
+ handleInputChange: (event: Event) => void;
263
+ handleInputPaste: (event: ClipboardEvent) => void;
264
+ handleLogicalChange: (logical: SearchLogical) => void;
265
+ handleInputKeyup: (event: KeyboardEvent) => void;
266
+ handleSelectItem: (item: ICommonItem, type?: SearchItemType) => Promise<void>;
267
+ handleSelectCondtionItem: (item: ICommonItem) => void;
268
+ handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
269
+ resolveClassName: (cls: string) => string;
270
+ inputFocusForWrapper: () => void;
271
+ inputEnterForWrapper: () => Promise<void>;
272
+ inputClearForWrapper: () => void;
273
+ deleteInputTextNode: () => void;
274
+ t: import("vue").ComputedRef<{
275
+ pleaseSelect: string;
276
+ loading: string;
277
+ filterQueryMustHasValue: string;
278
+ ok: string;
279
+ cancel: string;
280
+ or: string;
281
+ and: string;
282
+ logical: string;
283
+ }>;
284
+ }, {}, {}, {}, {
285
+ mode: import("./utils").SearchInputMode;
286
+ conditions: ICommonItem[];
287
+ showInputBefore: boolean;
288
+ showCondition: boolean;
289
+ }>>;
189
290
  wrapRef: import("vue").Ref<HTMLDivElement>;
190
291
  isFocus: import("vue").Ref<boolean>;
191
292
  copyData: ShallowRef<ISearchItem[]>;
@@ -209,6 +310,7 @@ declare const _default: import("vue").DefineComponent<{
209
310
  }[];
210
311
  condition: string;
211
312
  logical: SearchLogical;
313
+ nameRenderkey: string;
212
314
  searchItem: {
213
315
  id: string;
214
316
  name: string;
@@ -278,6 +380,9 @@ declare const _default: import("vue").DefineComponent<{
278
380
  readonly showLogical: boolean;
279
381
  isSpecialType: () => boolean;
280
382
  addValue: (item: ICommonItem) => void;
383
+ str2Values: (str: string) => ICommonItem[];
384
+ addValues: (str: string, mergeValues?: boolean) => void;
385
+ getValue: (str: string) => ICommonItem;
281
386
  toValue: () => ISearchValue;
282
387
  toValueKey: () => string;
283
388
  isInValueList: (item: ICommonItem) => boolean;
@@ -2,10 +2,8 @@
2
2
  @import '../styles/themes/themes.less';
3
3
  @import '../styles/mixins/mixins.less';
4
4
 
5
-
6
5
  @search-select-name: ~'@{bk-prefix}-search-select';
7
6
 
8
-
9
7
  .@{search-select-name} {
10
8
  position: relative;
11
9
  z-index: 9;
@@ -41,7 +39,7 @@
41
39
  border-radius: @border-radius-base;
42
40
  outline: none;
43
41
  box-sizing: border-box;
44
- transition: border .2s linear;
42
+ transition: border 0.2s linear;
45
43
  resize: none;
46
44
  flex-direction: row;
47
45
  align-items: center;
@@ -72,7 +70,7 @@
72
70
  margin-top: 4px;
73
71
  overflow: visible;
74
72
  text-align: left;
75
- transition: max-height .3s cubic-bezier(.4, 0, .2, 1);
73
+ transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
76
74
  flex: 1;
77
75
  flex-wrap: wrap;
78
76
  align-items: center;
@@ -91,7 +89,7 @@
91
89
  align-self: center;
92
90
 
93
91
  &.hidden-selected {
94
- visibility: hidden
92
+ visibility: hidden;
95
93
  }
96
94
 
97
95
  &.overflow-selected {
@@ -139,6 +137,7 @@
139
137
  margin-top: -4px;
140
138
  color: @search-select-font-color;
141
139
  border: none;
140
+ flex: 1;
142
141
 
143
142
  .input-before {
144
143
  &:before {
@@ -198,7 +197,7 @@
198
197
  display: flex;
199
198
  margin-right: 8px;
200
199
  font-size: 16px;
201
- transition: color .2s linear;
200
+ transition: color 0.2s linear;
202
201
  align-items: center;
203
202
  justify-content: center;
204
203
 
@@ -216,7 +215,7 @@
216
215
  &::-webkit-scrollbar-thumb {
217
216
  background: #e6e9ea;
218
217
  border-radius: 20px;
219
- box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
218
+ box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
220
219
  }
221
220
  }
222
221
 
@@ -255,12 +254,16 @@
255
254
 
256
255
  .menu-item-mixin {
257
256
  display: flex;
258
- align-items: center;
259
257
  width: 100%;
260
258
  height: 32px;
259
+ max-width: 500px;
261
260
  padding: 0 8px;
262
- flex: 0 0 32px;
261
+ overflow: hidden;
262
+ text-overflow: ellipsis;
263
+ white-space: nowrap;
263
264
  outline: none;
265
+ align-items: center;
266
+ flex: 0 0 32px;
264
267
 
265
268
  &:hover {
266
269
  cursor: pointer;
@@ -285,7 +288,7 @@
285
288
  .menu-item-mixin();
286
289
 
287
290
  &.is-disabled {
288
- .menu-disabled-mixin()
291
+ .menu-disabled-mixin();
289
292
  }
290
293
  }
291
294
  }
@@ -323,6 +326,7 @@
323
326
  display: flex;
324
327
  max-height: 240px;
325
328
  padding: 4px 0;
329
+ margin: 0;
326
330
  overflow: auto;
327
331
  flex-direction: column;
328
332
  flex: 1;
@@ -355,7 +359,7 @@
355
359
  .menu-disabled-mixin();
356
360
 
357
361
  .menu-name {
358
- color: @light-gray;;
362
+ color: @light-gray;
359
363
  }
360
364
  }
361
365
 
@@ -394,7 +398,7 @@
394
398
  }
395
399
 
396
400
  &.is-disabled {
397
- .menu-disabled-mixin()
401
+ .menu-disabled-mixin();
398
402
  }
399
403
  }
400
404
  }
@@ -318,6 +318,7 @@
318
318
  margin-top: -4px;
319
319
  color: #63656e;
320
320
  border: none;
321
+ flex: 1;
321
322
  }
322
323
  .bk-search-select-container .search-container-input .input-before:before {
323
324
  color: #c4c6cc;
@@ -416,12 +417,16 @@
416
417
  }
417
418
  .bk-search-select-menu .menu-item-mixin {
418
419
  display: flex;
419
- align-items: center;
420
420
  width: 100%;
421
421
  height: 32px;
422
+ max-width: 500px;
422
423
  padding: 0 8px;
423
- flex: 0 0 32px;
424
+ overflow: hidden;
425
+ text-overflow: ellipsis;
426
+ white-space: nowrap;
424
427
  outline: none;
428
+ align-items: center;
429
+ flex: 0 0 32px;
425
430
  }
426
431
  .bk-search-select-menu .menu-item-mixin:hover {
427
432
  cursor: pointer;
@@ -441,12 +446,16 @@
441
446
  }
442
447
  .bk-search-select-menu .menu-header-item {
443
448
  display: flex;
444
- align-items: center;
445
449
  width: 100%;
446
450
  height: 32px;
451
+ max-width: 500px;
447
452
  padding: 0 8px;
448
- flex: 0 0 32px;
453
+ overflow: hidden;
454
+ text-overflow: ellipsis;
455
+ white-space: nowrap;
449
456
  outline: none;
457
+ align-items: center;
458
+ flex: 0 0 32px;
450
459
  }
451
460
  .bk-search-select-menu .menu-header-item:hover {
452
461
  cursor: pointer;
@@ -489,18 +498,23 @@
489
498
  display: flex;
490
499
  max-height: 240px;
491
500
  padding: 4px 0;
501
+ margin: 0;
492
502
  overflow: auto;
493
503
  flex-direction: column;
494
504
  flex: 1;
495
505
  }
496
506
  .bk-search-select-menu .menu-content .menu-item {
497
507
  display: flex;
498
- align-items: center;
499
508
  width: 100%;
500
509
  height: 32px;
510
+ max-width: 500px;
501
511
  padding: 0 8px;
502
- flex: 0 0 32px;
512
+ overflow: hidden;
513
+ text-overflow: ellipsis;
514
+ white-space: nowrap;
503
515
  outline: none;
516
+ align-items: center;
517
+ flex: 0 0 32px;
504
518
  white-space: pre;
505
519
  }
506
520
  .bk-search-select-menu .menu-content .menu-item:hover {
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
21
21
  validateValues: PropType<ValidateValuesFunc>;
22
22
  valueBehavior: PropType<ValueBehavior>;
23
23
  }, {
24
- inputRef: import("vue").Ref<import("vue").DefineComponent<{
24
+ inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
25
25
  data: {
26
26
  type: PropType<ISearchItem[]>;
27
27
  required: true;
@@ -42,6 +42,10 @@ declare const _default: import("vue").DefineComponent<{
42
42
  getMenuList: PropType<GetMenuListFunc>;
43
43
  validateValues: PropType<ValidateValuesFunc>;
44
44
  valueBehavior: PropType<ValueBehavior>;
45
+ }>> & {
46
+ onFocus?: (...args: any[]) => any;
47
+ onDelete?: (...args: any[]) => any;
48
+ onAdd?: (...args: any[]) => any;
45
49
  }, {
46
50
  popoverRef: import("vue").Ref<HTMLDivElement>;
47
51
  inputRef: import("vue").Ref<HTMLDivElement>;
@@ -74,14 +78,19 @@ declare const _default: import("vue").DefineComponent<{
74
78
  };
75
79
  documentArrowEvent: (e: KeyboardEvent) => void;
76
80
  handleClickOutside: (e: MouseEvent) => void;
77
- handleInputFocus: (e: FocusEvent) => void;
81
+ handleInputFocus: () => void;
78
82
  handleInputChange: (event: Event) => void;
83
+ handleInputPaste: (event: ClipboardEvent) => void;
79
84
  handleLogicalChange: (logical: SearchLogical) => void;
80
85
  handleInputKeyup: (event: KeyboardEvent) => void;
81
86
  handleSelectItem: (item: ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
82
87
  handleSelectCondtionItem: (item: ICommonItem) => void;
83
88
  handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
84
89
  resolveClassName: (cls: string) => string;
90
+ inputFocusForWrapper: () => void;
91
+ inputEnterForWrapper: () => Promise<void>;
92
+ inputClearForWrapper: () => void;
93
+ deleteInputTextNode: () => void;
85
94
  t: import("vue").ComputedRef<{
86
95
  pleaseSelect: string;
87
96
  loading: string;
@@ -92,7 +101,7 @@ declare const _default: import("vue").DefineComponent<{
92
101
  and: string;
93
102
  logical: string;
94
103
  }>;
95
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], "focus" | "delete" | "add", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
104
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
96
105
  data: {
97
106
  type: PropType<ISearchItem[]>;
98
107
  required: true;
@@ -122,12 +131,105 @@ declare const _default: import("vue").DefineComponent<{
122
131
  conditions: ICommonItem[];
123
132
  showInputBefore: boolean;
124
133
  showCondition: boolean;
125
- }, {}>>;
134
+ }, true, {}, {}, {
135
+ P: {};
136
+ B: {};
137
+ D: {};
138
+ C: {};
139
+ M: {};
140
+ Defaults: {};
141
+ }, Readonly<import("vue").ExtractPropTypes<{
142
+ data: {
143
+ type: PropType<ISearchItem[]>;
144
+ required: true;
145
+ };
146
+ showInputBefore: BooleanConstructor;
147
+ showCondition: BooleanConstructor;
148
+ clickOutside: FunctionConstructor;
149
+ placeholder: StringConstructor;
150
+ conditions: {
151
+ type: PropType<ICommonItem[]>;
152
+ default: () => any[];
153
+ };
154
+ defautUsingItem: PropType<SelectedItem>;
155
+ mode: {
156
+ type: PropType<SearchInputMode>;
157
+ default: SearchInputMode;
158
+ };
159
+ getMenuList: PropType<GetMenuListFunc>;
160
+ validateValues: PropType<ValidateValuesFunc>;
161
+ valueBehavior: PropType<ValueBehavior>;
162
+ }>> & {
163
+ onFocus?: (...args: any[]) => any;
164
+ onDelete?: (...args: any[]) => any;
165
+ onAdd?: (...args: any[]) => any;
166
+ }, {
167
+ popoverRef: import("vue").Ref<HTMLDivElement>;
168
+ inputRef: import("vue").Ref<HTMLDivElement>;
169
+ keyword: import("vue").Ref<string>;
170
+ loading: import("vue").Ref<boolean>;
171
+ remoteMenuList: import("vue").Ref<{
172
+ id: string;
173
+ name: string;
174
+ disabled?: boolean;
175
+ realId?: string;
176
+ value?: {
177
+ name: string;
178
+ id: string;
179
+ realId?: string;
180
+ isSelected?: boolean;
181
+ logical?: SearchLogical;
182
+ };
183
+ isSelected?: boolean;
184
+ logical?: SearchLogical;
185
+ }[]>;
186
+ menuList: import("vue").Ref<ISearchItem[]>;
187
+ menuHoverId: import("vue").Ref<string>;
188
+ isFocus: import("vue").Ref<boolean>;
189
+ usingItem: import("vue").Ref<SelectedItem>;
190
+ showPopover: import("vue").Ref<boolean>;
191
+ showNoSelectValueError: import("vue").Ref<boolean>;
192
+ debounceSetMenuList: {
193
+ (this: any): any;
194
+ cancel(): void;
195
+ };
196
+ documentArrowEvent: (e: KeyboardEvent) => void;
197
+ handleClickOutside: (e: MouseEvent) => void;
198
+ handleInputFocus: () => void;
199
+ handleInputChange: (event: Event) => void;
200
+ handleInputPaste: (event: ClipboardEvent) => void;
201
+ handleLogicalChange: (logical: SearchLogical) => void;
202
+ handleInputKeyup: (event: KeyboardEvent) => void;
203
+ handleSelectItem: (item: ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
204
+ handleSelectCondtionItem: (item: ICommonItem) => void;
205
+ handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
206
+ resolveClassName: (cls: string) => string;
207
+ inputFocusForWrapper: () => void;
208
+ inputEnterForWrapper: () => Promise<void>;
209
+ inputClearForWrapper: () => void;
210
+ deleteInputTextNode: () => void;
211
+ t: import("vue").ComputedRef<{
212
+ pleaseSelect: string;
213
+ loading: string;
214
+ filterQueryMustHasValue: string;
215
+ ok: string;
216
+ cancel: string;
217
+ or: string;
218
+ and: string;
219
+ logical: string;
220
+ }>;
221
+ }, {}, {}, {}, {
222
+ mode: SearchInputMode;
223
+ conditions: ICommonItem[];
224
+ showInputBefore: boolean;
225
+ showCondition: boolean;
226
+ }>>;
227
+ selectedInputRef: import("vue").Ref<HTMLDivElement>;
126
228
  editKey: import("vue").Ref<String>;
127
229
  copySeletedItem: (item: SelectedItem) => SelectedItem;
128
230
  handleDeleteSelected: (index: number) => void;
129
231
  handleEditSeleted: (e: MouseEvent, item: SelectedItem, index: number) => void;
130
- handleInputOutside: () => boolean;
232
+ handleInputOutside: (target: Node) => boolean;
131
233
  handleAddSelected: (item: SelectedItem, index: number) => void;
132
234
  handleInputFocus: (isFocus: boolean) => void;
133
235
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "delete"[], "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
@@ -1,4 +1,4 @@
1
- import { InjectionKey, Ref, VNode } from 'vue';
1
+ import { ComputedRef, InjectionKey, Ref, VNode } from 'vue';
2
2
  /**
3
3
  * @description: 获取menu list方法
4
4
  * @param {ISearchItem} item 已选择的key字段 为空则代表当前并未选择key字段
@@ -9,6 +9,10 @@ export declare enum ValueBehavior {
9
9
  ALL = "all",
10
10
  NEEDKEY = "need-key"
11
11
  }
12
+ export declare enum DeleteBehavior {
13
+ CHAR = "delete-char",
14
+ VALUE = "delete-value"
15
+ }
12
16
  export type GetMenuListFunc = (item: ISearchItem, keyword: string) => Promise<ISearchItem[]>;
13
17
  export type ValidateValuesFunc = (item: ISearchItem, values: ICommonItem[]) => Promise<string | true>;
14
18
  export type MenuSlotParams = {
@@ -24,6 +28,8 @@ export interface ISearchSelectProvider {
24
28
  onEditBlur: () => void;
25
29
  onValidate: (str: string) => void;
26
30
  editKey: Ref<String>;
31
+ searchData: ComputedRef<ISearchItem[]>;
32
+ isClickOutside: (target: Node) => boolean;
27
33
  }
28
34
  export declare const SEARCH_SLECT_PROVIDER_KEY: InjectionKey<ISearchSelectProvider>;
29
35
  export declare const useSearchSelectProvider: (data: ISearchSelectProvider) => void;
@@ -45,6 +51,8 @@ export interface ISearchValue extends Omit<ICommonItem, 'disabled' | 'value'> {
45
51
  type?: SearchItemType;
46
52
  values?: Omit<ICommonItem, 'disabled' | 'logical'>[];
47
53
  }
54
+ export declare const ValueSplitRegex: RegExp;
55
+ export declare const ValueSplitTestRegex: RegExp;
48
56
  export interface ISearchItem {
49
57
  id: string;
50
58
  name: string;
@@ -78,6 +86,7 @@ export declare class SelectedItem {
78
86
  values: ICommonItem[];
79
87
  condition: string;
80
88
  logical: SearchLogical;
89
+ nameRenderkey: string;
81
90
  constructor(searchItem: ISearchItem, type?: SearchItemType);
82
91
  get multiple(): boolean;
83
92
  get placeholder(): string;
@@ -90,6 +99,9 @@ export declare class SelectedItem {
90
99
  get showLogical(): boolean;
91
100
  isSpecialType(): boolean;
92
101
  addValue(item: ICommonItem): void;
102
+ str2Values(str: string): ICommonItem[];
103
+ addValues(str: string, mergeValues?: boolean): void;
104
+ getValue(str: string): ICommonItem;
93
105
  toValue(): ISearchValue;
94
106
  toValueKey(): string;
95
107
  isInValueList(item: ICommonItem): boolean;