bkui-vue 1.0.0 → 1.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 (261) hide show
  1. package/README.md +1 -0
  2. package/dist/index.cjs.js +47 -47
  3. package/dist/index.esm.js +10405 -10394
  4. package/dist/index.umd.js +47 -47
  5. package/dist/locale/en.esm.js +1 -1
  6. package/dist/locale/en.esm.js.map +1 -1
  7. package/dist/locale/en.umd.js +1 -1
  8. package/dist/locale/en.umd.js.map +1 -1
  9. package/dist/locale/zh-cn.esm.js +1 -1
  10. package/dist/locale/zh-cn.esm.js.map +1 -1
  11. package/dist/locale/zh-cn.umd.js +1 -1
  12. package/dist/locale/zh-cn.umd.js.map +1 -1
  13. package/dist/style.css +1 -1
  14. package/dist/style.variable.css +1 -1
  15. package/lib/affix/index.d.ts +57 -111
  16. package/lib/affix/index.js +19 -19
  17. package/lib/alert/alert.d.ts +1 -1
  18. package/lib/alert/index.d.ts +82 -132
  19. package/lib/alert/index.js +20 -20
  20. package/lib/animate-number/index.d.ts +33 -96
  21. package/lib/backtop/index.d.ts +69 -117
  22. package/lib/badge/badge.d.ts +1 -1
  23. package/lib/badge/index.d.ts +120 -153
  24. package/lib/badge/index.js +19 -19
  25. package/lib/breadcrumb/index.d.ts +67 -119
  26. package/lib/breadcrumb/index.js +17 -17
  27. package/lib/button/button.d.ts +2 -2
  28. package/lib/button/index.d.ts +119 -155
  29. package/lib/button/index.js +19 -20
  30. package/lib/card/card.d.ts +1 -1
  31. package/lib/card/index.d.ts +129 -158
  32. package/lib/card/index.js +20 -22
  33. package/lib/cascader/cascader.d.ts +3 -3
  34. package/lib/cascader/index.d.ts +393 -354
  35. package/lib/cascader/index.js +233 -234
  36. package/lib/checkbox/checkbox.d.ts +1 -1
  37. package/lib/checkbox/index.d.ts +119 -161
  38. package/lib/checkbox/index.js +39 -41
  39. package/lib/code-diff/index.d.ts +65 -82
  40. package/lib/code-diff/index.js +381 -438
  41. package/lib/collapse/index.d.ts +144 -168
  42. package/lib/collapse/index.js +21 -21
  43. package/lib/collapse-transition/index.d.ts +19 -94
  44. package/lib/color-picker/color-picker.d.ts +1 -1
  45. package/lib/color-picker/index.d.ts +128 -154
  46. package/lib/color-picker/index.js +25 -28
  47. package/lib/config-provider/config-provider.d.ts +9 -0
  48. package/lib/config-provider/index.d.ts +168 -223
  49. package/lib/config-provider/index.js +19 -19
  50. package/lib/config-provider/token.d.ts +3 -0
  51. package/lib/container/container.d.ts +1 -1
  52. package/lib/container/index.d.ts +74 -85
  53. package/lib/container/index.js +19 -19
  54. package/lib/date-picker/base/picker-dropdown.d.ts +1 -1
  55. package/lib/date-picker/base/time-spinner.d.ts +3 -3
  56. package/lib/date-picker/date-picker.d.ts +3 -3
  57. package/lib/date-picker/index.d.ts +384 -351
  58. package/lib/date-picker/index.js +92 -104
  59. package/lib/date-picker/panel/date-range.d.ts +1 -1
  60. package/lib/date-picker/panel/date.d.ts +1 -1
  61. package/lib/date-picker/panel/time-range.d.ts +2 -2
  62. package/lib/date-picker/panel/time.d.ts +1 -1
  63. package/lib/date-picker/time-picker.d.ts +3 -3
  64. package/lib/dialog/index.d.ts +355 -309
  65. package/lib/dialog/index.js +227 -228
  66. package/lib/directives/index.js +27 -27
  67. package/lib/divider/index.d.ts +57 -111
  68. package/lib/dropdown/dropdown.d.ts +1 -1
  69. package/lib/dropdown/index.d.ts +94 -136
  70. package/lib/dropdown/index.js +17 -17
  71. package/lib/exception/index.d.ts +41 -102
  72. package/lib/exception/index.js +18 -19
  73. package/lib/fixed-navbar/index.d.ts +59 -113
  74. package/lib/form/form.css +3 -0
  75. package/lib/form/form.d.ts +1 -1
  76. package/lib/form/form.less +3 -0
  77. package/lib/form/form.variable.css +3 -0
  78. package/lib/form/index.d.ts +80 -132
  79. package/lib/form/index.js +29 -27
  80. package/lib/icon/angle-double-down-line.js +21 -21
  81. package/lib/icon/angle-double-left-line.js +21 -21
  82. package/lib/icon/angle-double-left.js +21 -21
  83. package/lib/icon/angle-double-right-line.js +21 -21
  84. package/lib/icon/angle-double-right.js +21 -21
  85. package/lib/icon/angle-double-up-line.js +21 -21
  86. package/lib/icon/angle-down-fill.js +21 -21
  87. package/lib/icon/angle-down-line.js +21 -21
  88. package/lib/icon/angle-down.js +21 -21
  89. package/lib/icon/angle-left.js +21 -21
  90. package/lib/icon/angle-right.js +21 -21
  91. package/lib/icon/angle-up-fill.js +21 -21
  92. package/lib/icon/angle-up.js +21 -21
  93. package/lib/icon/archive-fill.js +21 -21
  94. package/lib/icon/arrows-left.js +21 -21
  95. package/lib/icon/arrows-right.js +21 -21
  96. package/lib/icon/assistant.js +21 -21
  97. package/lib/icon/audio-fill.js +21 -21
  98. package/lib/icon/bk.js +21 -21
  99. package/lib/icon/circle.js +21 -21
  100. package/lib/icon/close-line.js +21 -21
  101. package/lib/icon/close.js +21 -21
  102. package/lib/icon/code.js +21 -21
  103. package/lib/icon/cog-shape.js +21 -21
  104. package/lib/icon/collapse-left.js +21 -21
  105. package/lib/icon/copy-shape.js +21 -21
  106. package/lib/icon/copy.js +21 -21
  107. package/lib/icon/data-shape.js +21 -21
  108. package/lib/icon/del.js +21 -21
  109. package/lib/icon/doc-fill.js +21 -21
  110. package/lib/icon/done.js +21 -21
  111. package/lib/icon/down-shape.js +21 -21
  112. package/lib/icon/down-small.js +21 -21
  113. package/lib/icon/edit-line.js +21 -21
  114. package/lib/icon/ellipsis.js +21 -21
  115. package/lib/icon/enlarge-line.js +21 -21
  116. package/lib/icon/error.js +21 -21
  117. package/lib/icon/excel-fill.js +21 -21
  118. package/lib/icon/exclamation-circle-shape.js +21 -21
  119. package/lib/icon/eye.js +21 -21
  120. package/lib/icon/filliscreen-line.js +21 -21
  121. package/lib/icon/fix-line.js +21 -21
  122. package/lib/icon/fix-shape.js +21 -21
  123. package/lib/icon/folder-open.js +21 -21
  124. package/lib/icon/folder-shape-open.js +21 -21
  125. package/lib/icon/folder-shape.js +21 -21
  126. package/lib/icon/folder.js +21 -21
  127. package/lib/icon/funnel.js +21 -21
  128. package/lib/icon/grag-fill.js +21 -21
  129. package/lib/icon/help-document-fill.js +21 -21
  130. package/lib/icon/help-fill.js +21 -21
  131. package/lib/icon/help.js +21 -21
  132. package/lib/icon/image-fill.js +22 -22
  133. package/lib/icon/img-error.js +22 -22
  134. package/lib/icon/img-placehoulder.js +22 -22
  135. package/lib/icon/index.js +192 -192
  136. package/lib/icon/info-line.js +22 -22
  137. package/lib/icon/info.js +22 -22
  138. package/lib/icon/left-shape.js +22 -22
  139. package/lib/icon/left-turn-line.js +22 -22
  140. package/lib/icon/loading.js +22 -22
  141. package/lib/icon/narrow-line.js +22 -22
  142. package/lib/icon/original.js +22 -22
  143. package/lib/icon/pdf-fill.js +22 -22
  144. package/lib/icon/play-shape.js +22 -22
  145. package/lib/icon/plus.js +22 -22
  146. package/lib/icon/ppt-fill.js +22 -22
  147. package/lib/icon/qq.js +22 -22
  148. package/lib/icon/right-shape.js +22 -22
  149. package/lib/icon/right-turn-line.js +22 -22
  150. package/lib/icon/search.js +22 -22
  151. package/lib/icon/share.js +22 -22
  152. package/lib/icon/spinner.js +22 -22
  153. package/lib/icon/success.js +22 -22
  154. package/lib/icon/switcher-loading.js +22 -22
  155. package/lib/icon/text-file.js +22 -22
  156. package/lib/icon/text-fill.js +22 -22
  157. package/lib/icon/transfer.js +22 -22
  158. package/lib/icon/tree-application-shape.js +22 -22
  159. package/lib/icon/unfull-screen.js +22 -22
  160. package/lib/icon/unvisible.js +22 -22
  161. package/lib/icon/up-shape.js +22 -22
  162. package/lib/icon/upload.js +22 -22
  163. package/lib/icon/video-fill.js +22 -22
  164. package/lib/icon/warn.js +22 -22
  165. package/lib/icon/weixin-pro.js +22 -22
  166. package/lib/icon/weixin.js +22 -22
  167. package/lib/image/index.d.ts +113 -149
  168. package/lib/image/index.js +19 -19
  169. package/lib/info-box/index.js +231 -232
  170. package/lib/input/index.d.ts +326 -293
  171. package/lib/input/index.js +256 -258
  172. package/lib/link/index.d.ts +73 -122
  173. package/lib/loading/index.d.ts +132 -158
  174. package/lib/loading/index.js +23 -25
  175. package/lib/loading/loading.d.ts +4 -4
  176. package/lib/locale/index.js +8 -12
  177. package/lib/locale/lang/en.d.ts +3 -0
  178. package/lib/menu/index.d.ts +51 -112
  179. package/lib/menu/index.js +25 -25
  180. package/lib/message/index.js +28 -30
  181. package/lib/message/messageConstructor.d.ts +5 -5
  182. package/lib/modal/index.d.ts +261 -249
  183. package/lib/modal/index.js +492 -33
  184. package/lib/navigation/index.d.ts +152 -188
  185. package/lib/notify/index.js +22 -24
  186. package/lib/notify/notifyConstructor.d.ts +1 -1
  187. package/lib/overflow-title/index.d.ts +314 -242
  188. package/lib/overflow-title/index.js +1 -1
  189. package/lib/pagination/index.d.ts +194 -205
  190. package/lib/pagination/index.js +49 -56
  191. package/lib/plugin-popover/index.js +192 -98
  192. package/lib/pop-confirm/index.d.ts +126 -159
  193. package/lib/pop-confirm/index.js +0 -1
  194. package/lib/pop-confirm/pop-confirm.d.ts +1 -1
  195. package/lib/popover/content.d.ts +1 -1
  196. package/lib/popover/index.d.ts +374 -330
  197. package/lib/popover/index.js +192 -98
  198. package/lib/popover2/index.d.ts +8 -83
  199. package/lib/process/index.d.ts +93 -137
  200. package/lib/process/index.js +225 -226
  201. package/lib/progress/index.d.ts +178 -187
  202. package/lib/progress/index.js +19 -19
  203. package/lib/progress/progress.d.ts +2 -2
  204. package/lib/radio/index.d.ts +83 -135
  205. package/lib/radio/index.js +41 -43
  206. package/lib/rate/index.d.ts +55 -112
  207. package/lib/rate/index.js +19 -20
  208. package/lib/resize-layout/index.d.ts +156 -185
  209. package/lib/resize-layout/index.js +20 -21
  210. package/lib/resize-layout/resize-layout.d.ts +2 -2
  211. package/lib/search-select/index.d.ts +292 -327
  212. package/lib/search-select/index.js +239 -240
  213. package/lib/search-select/input.d.ts +2 -2
  214. package/lib/search-select/search-select.d.ts +3 -3
  215. package/lib/search-select/selected.d.ts +2 -2
  216. package/lib/select/index.d.ts +1234 -1135
  217. package/lib/select/index.js +259 -262
  218. package/lib/select/select.d.ts +121 -161
  219. package/lib/select/selectTagInput.d.ts +2 -2
  220. package/lib/shared/helper.d.ts +4 -0
  221. package/lib/shared/index.js +81 -63
  222. package/lib/sideslider/index.d.ts +247 -233
  223. package/lib/sideslider/index.js +241 -247
  224. package/lib/slider/index.d.ts +204 -204
  225. package/lib/slider/index.js +208 -209
  226. package/lib/steps/index.d.ts +114 -150
  227. package/lib/steps/index.js +227 -228
  228. package/lib/swiper/index.d.ts +81 -127
  229. package/lib/swiper/index.js +18 -18
  230. package/lib/switcher/index.d.ts +152 -174
  231. package/lib/switcher/index.js +20 -22
  232. package/lib/tab/index.d.ts +199 -211
  233. package/lib/tab/index.js +23 -25
  234. package/lib/table/components/table-column.d.ts +2 -2
  235. package/lib/table/index.d.ts +605 -593
  236. package/lib/table/index.js +81 -95
  237. package/lib/table/plugins/use-pagination.d.ts +1 -1
  238. package/lib/table/table.d.ts +1 -1
  239. package/lib/table/use-common.d.ts +67 -34
  240. package/lib/table-column/index.d.ts +207 -243
  241. package/lib/table-column/index.js +18 -19
  242. package/lib/tag/index.d.ts +95 -142
  243. package/lib/tag/index.js +19 -19
  244. package/lib/tag-input/index.d.ts +690 -498
  245. package/lib/tag-input/index.js +54 -62
  246. package/lib/tag-input/tag-input.d.ts +5 -5
  247. package/lib/time-picker/index.d.ts +442 -385
  248. package/lib/timeline/index.d.ts +50 -109
  249. package/lib/timeline/index.js +6 -6
  250. package/lib/transfer/index.d.ts +191 -206
  251. package/lib/tree/index.d.ts +322 -288
  252. package/lib/tree/index.js +36 -39
  253. package/lib/tree/tree.d.ts +1 -1
  254. package/lib/tree/use-tree-init.d.ts +1 -1
  255. package/lib/upload/index.d.ts +281 -254
  256. package/lib/upload/index.js +254 -257
  257. package/lib/upload/upload.d.ts +2 -2
  258. package/lib/virtual-render/index.d.ts +337 -242
  259. package/lib/virtual-render/index.js +30 -30
  260. package/lib/virtual-render/virtual-render.d.ts +1 -1
  261. package/package.json +6 -13
@@ -1,234 +1,178 @@
1
1
  declare const BkSearchSelect: {
2
- new (...args: any[]): {
3
- $: import("vue").ComponentInternalInstance;
4
- $data: {};
5
- $props: {
6
- data?: import("./utils").ISearchItem[];
7
- maxHeight?: number;
8
- minHeight?: number;
9
- clearable?: boolean;
10
- modelValue?: import("./utils").ISearchValue[];
11
- conditions?: import("./utils").ICommonItem[];
12
- valueBehavior?: "all" | "need-key";
13
- shrink?: boolean;
14
- uniqueSelect?: boolean;
15
- class?: unknown;
16
- style?: unknown;
17
- ref?: import("vue").VNodeRef;
18
- key?: string | number | symbol;
19
- ref_for?: boolean;
20
- ref_key?: string;
21
- onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
22
- [key: string]: any;
23
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
24
- [key: string]: any;
25
- }>) => void)[];
26
- onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
27
- [key: string]: any;
28
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
29
- [key: string]: any;
30
- }>) => void)[];
31
- onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
32
- [key: string]: any;
33
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
34
- [key: string]: any;
35
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
36
- [key: string]: any;
37
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
38
- [key: string]: any;
39
- }>) => void)[];
40
- onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
- [key: string]: any;
42
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
- [key: string]: any;
44
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
45
- [key: string]: any;
46
- }>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
47
- [key: string]: any;
48
- }>) => void)[];
49
- onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
50
- [key: string]: any;
51
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
52
- [key: string]: any;
53
- }>) => void)[];
54
- onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
55
- [key: string]: any;
56
- }>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
57
- [key: string]: any;
58
- }>) => void)[];
59
- readonly placeholder?: string;
60
- "onUpdate:modelValue"?: (...args: any[]) => any;
61
- readonly getMenuList?: import("./utils").GetMenuListFunc;
62
- readonly validateValues?: import("./utils").ValidateValuesFunc;
63
- onSearch?: (...args: any[]) => any;
64
- };
65
- $attrs: {
66
- [x: string]: unknown;
67
- };
68
- $refs: {
69
- [x: string]: unknown;
70
- };
71
- $slots: Readonly<{
72
- [name: string]: import("vue").Slot<any>;
73
- }>;
74
- $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
75
- $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
76
- $emit: (event: "search" | "update:modelValue", ...args: any[]) => void;
77
- $el: any;
78
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
2
+ new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
3
+ data: {
4
+ type: import("vue").PropType<import("./utils").ISearchItem[]>;
5
+ default: () => any[];
6
+ };
7
+ modelValue: {
8
+ type: import("vue").PropType<import("./utils").ISearchValue[]>;
9
+ default: () => any[];
10
+ };
11
+ shrink: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ maxHeight: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ minHeight: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ conditions: {
24
+ type: import("vue").PropType<import("./utils").ICommonItem[]>;
25
+ default: () => any[];
26
+ };
27
+ clearable: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ placeholder: StringConstructor;
32
+ getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
33
+ validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
34
+ uniqueSelect: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ valueBehavior: {
39
+ type: import("vue").PropType<"all" | "need-key">;
40
+ default: import("./utils").ValueBehavior;
41
+ validator(v: import("./utils").ValueBehavior): boolean;
42
+ };
43
+ }>> & {
44
+ "onUpdate:modelValue"?: (...args: any[]) => any;
45
+ onSearch?: (...args: any[]) => any;
46
+ }, {
47
+ inputRef: import("vue").Ref<import("vue").DefineComponent<{
79
48
  data: {
80
49
  type: import("vue").PropType<import("./utils").ISearchItem[]>;
81
- default: () => any[];
50
+ required: true;
82
51
  };
83
- modelValue: {
84
- type: import("vue").PropType<import("./utils").ISearchValue[]>;
52
+ showInputBefore: BooleanConstructor;
53
+ showCondition: BooleanConstructor;
54
+ clickOutside: FunctionConstructor;
55
+ placeholder: StringConstructor;
56
+ conditions: {
57
+ type: import("vue").PropType<import("./utils").ICommonItem[]>;
85
58
  default: () => any[];
86
59
  };
87
- shrink: {
88
- type: BooleanConstructor;
89
- default: boolean;
60
+ defautUsingItem: import("vue").PropType<import("./utils").SelectedItem>;
61
+ mode: {
62
+ type: import("vue").PropType<import("./utils").SearchInputMode>;
63
+ default: import("./utils").SearchInputMode;
90
64
  };
91
- maxHeight: {
92
- type: NumberConstructor;
93
- default: number;
65
+ getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
66
+ validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
67
+ valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
68
+ }, {
69
+ popoverRef: import("vue").Ref<HTMLDivElement>;
70
+ inputRef: import("vue").Ref<HTMLDivElement>;
71
+ keyword: import("vue").Ref<string>;
72
+ loading: import("vue").Ref<boolean>;
73
+ remoteMenuList: import("vue").Ref<{
74
+ id: string;
75
+ name: string;
76
+ disabled?: boolean;
77
+ realId?: string;
78
+ value?: {
79
+ name: string;
80
+ id: string;
81
+ realId?: string;
82
+ isSelected?: boolean;
83
+ logical?: import("./utils").SearchLogical;
84
+ };
85
+ isSelected?: boolean;
86
+ logical?: import("./utils").SearchLogical;
87
+ }[]>;
88
+ menuList: import("vue").Ref<import("./utils").ISearchItem[]>;
89
+ menuHoverId: import("vue").Ref<string>;
90
+ isFocus: import("vue").Ref<boolean>;
91
+ usingItem: import("vue").Ref<import("./utils").SelectedItem>;
92
+ showPopover: import("vue").Ref<boolean>;
93
+ showNoSelectValueError: import("vue").Ref<boolean>;
94
+ debounceSetMenuList: {
95
+ (this: any): any;
96
+ cancel(): void;
94
97
  };
95
- minHeight: {
96
- type: NumberConstructor;
97
- default: number;
98
+ documentArrowEvent: (e: KeyboardEvent) => void;
99
+ handleClickOutside: (e: MouseEvent) => void;
100
+ handleInputFocus: (e: FocusEvent) => void;
101
+ handleInputChange: (event: Event) => void;
102
+ handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
103
+ handleInputKeyup: (event: KeyboardEvent) => void;
104
+ handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
105
+ handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
106
+ handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
107
+ resolveClassName: (cls: string) => string;
108
+ t: import("vue").ComputedRef<{
109
+ pleaseSelect: string;
110
+ loading: string;
111
+ filterQueryMustHasValue: string;
112
+ ok: string;
113
+ cancel: string;
114
+ or: string;
115
+ and: string;
116
+ logical: string;
117
+ }>;
118
+ }, 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<{
119
+ data: {
120
+ type: import("vue").PropType<import("./utils").ISearchItem[]>;
121
+ required: true;
98
122
  };
123
+ showInputBefore: BooleanConstructor;
124
+ showCondition: BooleanConstructor;
125
+ clickOutside: FunctionConstructor;
126
+ placeholder: StringConstructor;
99
127
  conditions: {
100
128
  type: import("vue").PropType<import("./utils").ICommonItem[]>;
101
129
  default: () => any[];
102
130
  };
103
- clearable: {
104
- type: BooleanConstructor;
105
- default: boolean;
131
+ defautUsingItem: import("vue").PropType<import("./utils").SelectedItem>;
132
+ mode: {
133
+ type: import("vue").PropType<import("./utils").SearchInputMode>;
134
+ default: import("./utils").SearchInputMode;
106
135
  };
107
- placeholder: StringConstructor;
108
136
  getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
109
137
  validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
110
- uniqueSelect: {
111
- type: BooleanConstructor;
112
- default: boolean;
113
- };
114
- valueBehavior: {
115
- type: import("vue").PropType<"all" | "need-key">;
116
- default: import("./utils").ValueBehavior;
117
- validator(v: import("./utils").ValueBehavior): boolean;
118
- };
138
+ valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
119
139
  }>> & {
120
- "onUpdate:modelValue"?: (...args: any[]) => any;
121
- onSearch?: (...args: any[]) => any;
140
+ onFocus?: (...args: any[]) => any;
141
+ onDelete?: (...args: any[]) => any;
142
+ onAdd?: (...args: any[]) => any;
122
143
  }, {
123
- inputRef: import("vue").Ref<import("vue").DefineComponent<{
124
- data: {
125
- type: import("vue").PropType<import("./utils").ISearchItem[]>;
126
- required: true;
127
- };
128
- showInputBefore: BooleanConstructor;
129
- showCondition: BooleanConstructor;
130
- clickOutside: FunctionConstructor;
131
- placeholder: StringConstructor;
132
- conditions: {
133
- type: import("vue").PropType<import("./utils").ICommonItem[]>;
134
- default: () => any[];
135
- };
136
- defautUsingItem: import("vue").PropType<import("./utils").SelectedItem>;
137
- mode: {
138
- type: import("vue").PropType<import("./utils").SearchInputMode>;
139
- default: import("./utils").SearchInputMode;
140
- };
141
- getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
142
- validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
143
- valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
144
- }, {
145
- popoverRef: import("vue").Ref<HTMLDivElement>;
146
- inputRef: import("vue").Ref<HTMLDivElement>;
147
- keyword: import("vue").Ref<string>;
148
- loading: import("vue").Ref<boolean>;
149
- remoteMenuList: import("vue").Ref<{
150
- id: string;
144
+ mode: import("./utils").SearchInputMode;
145
+ conditions: import("./utils").ICommonItem[];
146
+ showInputBefore: boolean;
147
+ showCondition: boolean;
148
+ }, {}>>;
149
+ wrapRef: import("vue").Ref<HTMLDivElement>;
150
+ isFocus: import("vue").Ref<boolean>;
151
+ copyData: import("vue").ShallowRef<import("./utils").ISearchItem[]>;
152
+ selectedList: import("vue").Ref<{
153
+ id: string;
154
+ name: string;
155
+ values: {
156
+ id: string;
157
+ name: string;
158
+ disabled?: boolean;
159
+ realId?: string;
160
+ value?: {
151
161
  name: string;
152
- disabled?: boolean;
162
+ id: string;
153
163
  realId?: string;
154
- value?: {
155
- name: string;
156
- id: string;
157
- realId?: string;
158
- isSelected?: boolean;
159
- logical?: import("./utils").SearchLogical;
160
- };
161
164
  isSelected?: boolean;
162
165
  logical?: import("./utils").SearchLogical;
163
- }[]>;
164
- menuList: import("vue").Ref<import("./utils").ISearchItem[]>;
165
- menuHoverId: import("vue").Ref<string>;
166
- isFocus: import("vue").Ref<boolean>;
167
- usingItem: import("vue").Ref<import("./utils").SelectedItem>;
168
- showPopover: import("vue").Ref<boolean>;
169
- showNoSelectValueError: import("vue").Ref<boolean>;
170
- debounceSetMenuList: {
171
- (this: any): any;
172
- cancel(): void;
173
166
  };
174
- documentArrowEvent: (e: KeyboardEvent) => void;
175
- handleClickOutside: (e: MouseEvent) => void;
176
- handleInputFocus: (e: FocusEvent) => void;
177
- handleInputChange: (event: Event) => void;
178
- handleLogicalChange: (logical: import("./utils").SearchLogical) => void;
179
- handleInputKeyup: (event: KeyboardEvent) => void;
180
- handleSelectItem: (item: import("./utils").ICommonItem, type?: import("./utils").SearchItemType) => Promise<void>;
181
- handleSelectCondtionItem: (item: import("./utils").ICommonItem) => void;
182
- handleMenuFooterClick: (item: import("./utils").IMenuFooterItem) => void;
183
- resolveClassName: (cls: string) => string;
184
- t: import("vue").ComputedRef<{
185
- pleaseSelect: string;
186
- loading: string;
187
- filterQueryMustHasValue: string;
188
- ok: string;
189
- cancel: string;
190
- or: string;
191
- and: string;
192
- logical: string;
193
- }>;
194
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "add" | "delete")[], "focus" | "add" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
195
- data: {
196
- type: import("vue").PropType<import("./utils").ISearchItem[]>;
197
- required: true;
198
- };
199
- showInputBefore: BooleanConstructor;
200
- showCondition: BooleanConstructor;
201
- clickOutside: FunctionConstructor;
202
- placeholder: StringConstructor;
203
- conditions: {
204
- type: import("vue").PropType<import("./utils").ICommonItem[]>;
205
- default: () => any[];
206
- };
207
- defautUsingItem: import("vue").PropType<import("./utils").SelectedItem>;
208
- mode: {
209
- type: import("vue").PropType<import("./utils").SearchInputMode>;
210
- default: import("./utils").SearchInputMode;
211
- };
212
- getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
213
- validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
214
- valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
215
- }>> & {
216
- onFocus?: (...args: any[]) => any;
217
- onAdd?: (...args: any[]) => any;
218
- onDelete?: (...args: any[]) => any;
219
- }, {
220
- mode: import("./utils").SearchInputMode;
221
- conditions: import("./utils").ICommonItem[];
222
- showInputBefore: boolean;
223
- showCondition: boolean;
224
- }, {}>>;
225
- wrapRef: import("vue").Ref<HTMLDivElement>;
226
- isFocus: import("vue").Ref<boolean>;
227
- copyData: import("vue").ShallowRef<import("./utils").ISearchItem[]>;
228
- selectedList: import("vue").Ref<{
167
+ isSelected?: boolean;
168
+ logical?: import("./utils").SearchLogical;
169
+ }[];
170
+ condition: string;
171
+ logical: import("./utils").SearchLogical;
172
+ searchItem: {
229
173
  id: string;
230
174
  name: string;
231
- values: {
175
+ children?: {
232
176
  id: string;
233
177
  name: string;
234
178
  disabled?: boolean;
@@ -243,136 +187,147 @@ declare const BkSearchSelect: {
243
187
  isSelected?: boolean;
244
188
  logical?: import("./utils").SearchLogical;
245
189
  }[];
246
- condition: string;
247
- logical: import("./utils").SearchLogical;
248
- searchItem: {
190
+ multiple?: boolean;
191
+ async?: boolean;
192
+ noValidate?: boolean;
193
+ placeholder?: string;
194
+ disabled?: boolean;
195
+ value?: {
249
196
  id: string;
250
197
  name: string;
251
- children?: {
252
- id: string;
253
- name: string;
254
- disabled?: boolean;
255
- realId?: string;
256
- value?: {
257
- name: string;
258
- id: string;
259
- realId?: string;
260
- isSelected?: boolean;
261
- logical?: import("./utils").SearchLogical;
262
- };
263
- isSelected?: boolean;
264
- logical?: import("./utils").SearchLogical;
265
- }[];
266
- multiple?: boolean;
267
- async?: boolean;
268
- noValidate?: boolean;
269
- placeholder?: string;
270
198
  disabled?: boolean;
199
+ realId?: string;
271
200
  value?: {
272
- id: string;
273
201
  name: string;
274
- disabled?: boolean;
202
+ id: string;
275
203
  realId?: string;
276
- value?: {
277
- name: string;
278
- id: string;
279
- realId?: string;
280
- isSelected?: boolean;
281
- logical?: import("./utils").SearchLogical;
282
- };
283
204
  isSelected?: boolean;
284
205
  logical?: import("./utils").SearchLogical;
285
206
  };
286
207
  isSelected?: boolean;
287
- onlyRecommendChildren?: boolean;
288
208
  logical?: import("./utils").SearchLogical;
289
- showLogicalPanel?: boolean;
290
209
  };
291
- type: import("./utils").SearchItemType;
292
- readonly multiple: boolean;
293
- readonly placeholder: string;
294
- readonly children: {
295
- id: string;
210
+ isSelected?: boolean;
211
+ onlyRecommendChildren?: boolean;
212
+ logical?: import("./utils").SearchLogical;
213
+ showLogicalPanel?: boolean;
214
+ };
215
+ type: import("./utils").SearchItemType;
216
+ readonly multiple: boolean;
217
+ readonly placeholder: string;
218
+ readonly children: {
219
+ id: string;
220
+ name: string;
221
+ disabled?: boolean;
222
+ realId?: string;
223
+ value?: {
296
224
  name: string;
297
- disabled?: boolean;
225
+ id: string;
298
226
  realId?: string;
299
- value?: {
300
- name: string;
301
- id: string;
302
- realId?: string;
303
- isSelected?: boolean;
304
- logical?: import("./utils").SearchLogical;
305
- };
306
227
  isSelected?: boolean;
307
228
  logical?: import("./utils").SearchLogical;
308
- }[];
309
- readonly validate: boolean;
310
- readonly inputInnerHtml: string;
311
- readonly inputInnerText: string;
312
- readonly keyInnerHtml: string;
313
- readonly keyInnerText: string;
314
- readonly showLogical: boolean;
315
- isSpecialType: () => boolean;
316
- addValue: (item: import("./utils").ICommonItem) => void;
317
- toValue: () => import("./utils").ISearchValue;
318
- toValueKey: () => string;
319
- isInValueList: (item: import("./utils").ICommonItem) => boolean;
320
- }[]>;
321
- overflowIndex: import("vue").Ref<number>;
322
- validateStr: import("vue").Ref<string>;
323
- onEditClick: (item: import("./utils").SelectedItem, index: number) => void;
324
- onEditEnter: (item: import("./utils").SelectedItem, index: number) => void;
325
- handleWrapClick: () => void;
326
- handleInputFocus: (v: boolean) => void;
327
- handleResize: () => void;
328
- handleClearAll: () => void;
329
- handleInputOutside: (target: Node) => boolean;
330
- handleAddSelected: (item: import("./utils").SelectedItem) => void;
331
- handleDeleteSelected: (index?: number) => void;
332
- handleClickSearch: (e: MouseEvent) => void;
333
- localConditions: import("vue").ComputedRef<import("./utils").ICommonItem[]>;
334
- resolveClassName: (cls: string) => string;
335
- t: import("vue").ComputedRef<{
336
- pleaseSelect: string;
337
- loading: string;
338
- filterQueryMustHasValue: string;
339
- ok: string;
340
- cancel: string;
341
- or: string;
342
- and: string;
343
- logical: string;
344
- }>;
345
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue")[], string, {
346
- data: import("./utils").ISearchItem[];
347
- maxHeight: number;
348
- minHeight: number;
349
- clearable: boolean;
350
- modelValue: import("./utils").ISearchValue[];
351
- conditions: import("./utils").ICommonItem[];
352
- valueBehavior: "all" | "need-key";
353
- shrink: boolean;
354
- uniqueSelect: boolean;
355
- }, {}, string, {}> & {
356
- beforeCreate?: (() => void) | (() => void)[];
357
- created?: (() => void) | (() => void)[];
358
- beforeMount?: (() => void) | (() => void)[];
359
- mounted?: (() => void) | (() => void)[];
360
- beforeUpdate?: (() => void) | (() => void)[];
361
- updated?: (() => void) | (() => void)[];
362
- activated?: (() => void) | (() => void)[];
363
- deactivated?: (() => void) | (() => void)[];
364
- beforeDestroy?: (() => void) | (() => void)[];
365
- beforeUnmount?: (() => void) | (() => void)[];
366
- destroyed?: (() => void) | (() => void)[];
367
- unmounted?: (() => void) | (() => void)[];
368
- renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
369
- renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
370
- errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
371
- };
372
- $forceUpdate: () => void;
373
- $nextTick: typeof import("vue").nextTick;
374
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
375
- } & Readonly<import("vue").ExtractPropTypes<{
229
+ };
230
+ isSelected?: boolean;
231
+ logical?: import("./utils").SearchLogical;
232
+ }[];
233
+ readonly validate: boolean;
234
+ readonly inputInnerHtml: string;
235
+ readonly inputInnerText: string;
236
+ readonly keyInnerHtml: string;
237
+ readonly keyInnerText: string;
238
+ readonly showLogical: boolean;
239
+ isSpecialType: () => boolean;
240
+ addValue: (item: import("./utils").ICommonItem) => void;
241
+ toValue: () => import("./utils").ISearchValue;
242
+ toValueKey: () => string;
243
+ isInValueList: (item: import("./utils").ICommonItem) => boolean;
244
+ }[]>;
245
+ overflowIndex: import("vue").Ref<number>;
246
+ validateStr: import("vue").Ref<string>;
247
+ onEditClick: (item: import("./utils").SelectedItem, index: number) => void;
248
+ onEditEnter: (item: import("./utils").SelectedItem, index: number) => void;
249
+ handleWrapClick: () => void;
250
+ handleInputFocus: (v: boolean) => void;
251
+ handleResize: () => void;
252
+ handleClearAll: () => void;
253
+ handleInputOutside: (target: Node) => boolean;
254
+ handleAddSelected: (item: import("./utils").SelectedItem) => void;
255
+ handleDeleteSelected: (index?: number) => void;
256
+ handleClickSearch: (e: MouseEvent) => void;
257
+ localConditions: import("vue").ComputedRef<import("./utils").ICommonItem[]>;
258
+ resolveClassName: (cls: string) => string;
259
+ t: import("vue").ComputedRef<{
260
+ pleaseSelect: string;
261
+ loading: string;
262
+ filterQueryMustHasValue: string;
263
+ ok: string;
264
+ cancel: string;
265
+ or: string;
266
+ and: string;
267
+ logical: string;
268
+ }>;
269
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
270
+ data: {
271
+ type: import("vue").PropType<import("./utils").ISearchItem[]>;
272
+ default: () => any[];
273
+ };
274
+ modelValue: {
275
+ type: import("vue").PropType<import("./utils").ISearchValue[]>;
276
+ default: () => any[];
277
+ };
278
+ shrink: {
279
+ type: BooleanConstructor;
280
+ default: boolean;
281
+ };
282
+ maxHeight: {
283
+ type: NumberConstructor;
284
+ default: number;
285
+ };
286
+ minHeight: {
287
+ type: NumberConstructor;
288
+ default: number;
289
+ };
290
+ conditions: {
291
+ type: import("vue").PropType<import("./utils").ICommonItem[]>;
292
+ default: () => any[];
293
+ };
294
+ clearable: {
295
+ type: BooleanConstructor;
296
+ default: boolean;
297
+ };
298
+ placeholder: StringConstructor;
299
+ getMenuList: import("vue").PropType<import("./utils").GetMenuListFunc>;
300
+ validateValues: import("vue").PropType<import("./utils").ValidateValuesFunc>;
301
+ uniqueSelect: {
302
+ type: BooleanConstructor;
303
+ default: boolean;
304
+ };
305
+ valueBehavior: {
306
+ type: import("vue").PropType<"all" | "need-key">;
307
+ default: import("./utils").ValueBehavior;
308
+ validator(v: import("./utils").ValueBehavior): boolean;
309
+ };
310
+ }>> & {
311
+ "onUpdate:modelValue"?: (...args: any[]) => any;
312
+ onSearch?: (...args: any[]) => any;
313
+ }, {
314
+ data: import("./utils").ISearchItem[];
315
+ maxHeight: number;
316
+ clearable: boolean;
317
+ modelValue: import("./utils").ISearchValue[];
318
+ minHeight: number;
319
+ conditions: import("./utils").ICommonItem[];
320
+ valueBehavior: "all" | "need-key";
321
+ shrink: boolean;
322
+ uniqueSelect: boolean;
323
+ }, true, {}, {}, {
324
+ P: {};
325
+ B: {};
326
+ D: {};
327
+ C: {};
328
+ M: {};
329
+ Defaults: {};
330
+ }, Readonly<import("vue").ExtractPropTypes<{
376
331
  data: {
377
332
  type: import("vue").PropType<import("./utils").ISearchItem[]>;
378
333
  default: () => any[];
@@ -416,7 +371,7 @@ declare const BkSearchSelect: {
416
371
  }>> & {
417
372
  "onUpdate:modelValue"?: (...args: any[]) => any;
418
373
  onSearch?: (...args: any[]) => any;
419
- } & import("vue").ShallowUnwrapRef<{
374
+ }, {
420
375
  inputRef: import("vue").Ref<import("vue").DefineComponent<{
421
376
  data: {
422
377
  type: import("vue").PropType<import("./utils").ISearchItem[]>;
@@ -488,7 +443,7 @@ declare const BkSearchSelect: {
488
443
  and: string;
489
444
  logical: string;
490
445
  }>;
491
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "add" | "delete")[], "focus" | "add" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
446
+ }, 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<{
492
447
  data: {
493
448
  type: import("vue").PropType<import("./utils").ISearchItem[]>;
494
449
  required: true;
@@ -511,8 +466,8 @@ declare const BkSearchSelect: {
511
466
  valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
512
467
  }>> & {
513
468
  onFocus?: (...args: any[]) => any;
514
- onAdd?: (...args: any[]) => any;
515
469
  onDelete?: (...args: any[]) => any;
470
+ onAdd?: (...args: any[]) => any;
516
471
  }, {
517
472
  mode: import("./utils").SearchInputMode;
518
473
  conditions: import("./utils").ICommonItem[];
@@ -639,7 +594,17 @@ declare const BkSearchSelect: {
639
594
  and: string;
640
595
  logical: string;
641
596
  }>;
642
- }> & {} & import("vue").ComponentCustomProperties & {};
597
+ }, {}, {}, {}, {
598
+ data: import("./utils").ISearchItem[];
599
+ maxHeight: number;
600
+ clearable: boolean;
601
+ modelValue: import("./utils").ISearchValue[];
602
+ minHeight: number;
603
+ conditions: import("./utils").ICommonItem[];
604
+ valueBehavior: "all" | "need-key";
605
+ shrink: boolean;
606
+ uniqueSelect: boolean;
607
+ }>;
643
608
  __isFragment?: never;
644
609
  __isTeleport?: never;
645
610
  __isSuspense?: never;
@@ -759,7 +724,7 @@ declare const BkSearchSelect: {
759
724
  and: string;
760
725
  logical: string;
761
726
  }>;
762
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "add" | "delete")[], "focus" | "add" | "delete", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
727
+ }, 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<{
763
728
  data: {
764
729
  type: import("vue").PropType<import("./utils").ISearchItem[]>;
765
730
  required: true;
@@ -782,8 +747,8 @@ declare const BkSearchSelect: {
782
747
  valueBehavior: import("vue").PropType<import("./utils").ValueBehavior>;
783
748
  }>> & {
784
749
  onFocus?: (...args: any[]) => any;
785
- onAdd?: (...args: any[]) => any;
786
750
  onDelete?: (...args: any[]) => any;
751
+ onAdd?: (...args: any[]) => any;
787
752
  }, {
788
753
  mode: import("./utils").SearchInputMode;
789
754
  conditions: import("./utils").ICommonItem[];
@@ -913,9 +878,9 @@ declare const BkSearchSelect: {
913
878
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue")[], "search" | "update:modelValue", {
914
879
  data: import("./utils").ISearchItem[];
915
880
  maxHeight: number;
916
- minHeight: number;
917
881
  clearable: boolean;
918
882
  modelValue: import("./utils").ISearchValue[];
883
+ minHeight: number;
919
884
  conditions: import("./utils").ICommonItem[];
920
885
  valueBehavior: "all" | "need-key";
921
886
  shrink: boolean;