bkui-vue 2.0.2-beta.9 → 2.0.2-beta.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/License.txt +1 -2
- package/dist/cli.css +1 -0
- package/dist/index.cjs.js +166 -138
- package/dist/index.esm.js +24631 -18441
- package/dist/index.umd.js +166 -138
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/ja-jp.esm.js +2 -0
- package/dist/locale/ja-jp.esm.js.map +1 -0
- package/dist/locale/ja-jp.umd.js +2 -0
- package/dist/locale/ja-jp.umd.js.map +1 -0
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.variable.css +2 -1
- package/lib/affix/index.js +2 -2
- package/lib/alert/alert.variable.css +2 -1
- package/lib/alert/index.js +16 -5
- package/lib/animate-number/index.js +2 -2
- package/lib/backtop/backtop.variable.css +2 -1
- package/lib/backtop/index.js +2 -2
- package/lib/badge/badge.variable.css +2 -1
- package/lib/badge/index.js +2 -2
- package/lib/breadcrumb/breadcrumb.variable.css +2 -1
- package/lib/breadcrumb/index.js +3 -3
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.variable.css +2 -1
- package/lib/button/index.js +3 -3
- package/lib/card/card.variable.css +2 -1
- package/lib/card/index.js +2 -2
- package/lib/cascader/cascader.css +52 -25
- package/lib/cascader/cascader.d.ts +309 -0
- package/lib/cascader/cascader.less +109 -75
- package/lib/cascader/cascader.variable.css +54 -26
- package/lib/cascader/index.d.ts +618 -0
- package/lib/cascader/index.js +147 -65
- package/lib/checkbox/checkbox.variable.css +2 -1
- package/lib/checkbox/index.js +5 -5
- package/lib/code-diff/code-diff.variable.css +2 -1
- package/lib/code-diff/index.js +2 -2
- package/lib/collapse/collapse.variable.css +2 -1
- package/lib/collapse/index.js +3 -3
- package/lib/collapse-transition/collapse-transition.variable.css +2 -1
- package/lib/collapse-transition/index.js +2 -2
- package/lib/color-picker/color-picker.variable.css +2 -1
- package/lib/color-picker/index.js +64 -55
- package/lib/components.js +1 -1
- package/lib/config-provider/config-provider.variable.css +2 -1
- package/lib/config-provider/index.d.ts +1 -1
- package/lib/config-provider/index.js +6 -6
- package/lib/container/container.variable.css +2 -1
- package/lib/container/index.js +5 -5
- package/lib/date-picker/date-picker.d.ts +2 -1
- package/lib/date-picker/date-picker.variable.css +2 -1
- package/lib/date-picker/index.d.ts +6 -2
- package/lib/date-picker/index.js +79 -76
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/date-picker/panel/time.d.ts +1 -1
- package/lib/date-picker/utils.d.ts +5 -17
- package/lib/dialog/dialog.css +20 -1
- package/lib/dialog/dialog.variable.css +22 -2
- package/lib/dialog/index.js +13 -36
- package/lib/directives/index.js +8 -9
- package/lib/dist.index.js +1 -1
- package/lib/divider/divider.variable.css +2 -1
- package/lib/divider/index.js +3 -3
- package/lib/dropdown/dropdown.d.ts +1 -0
- package/lib/dropdown/dropdown.variable.css +2 -1
- package/lib/dropdown/index.d.ts +3 -0
- package/lib/dropdown/index.js +15 -10
- package/lib/exception/exception.variable.css +2 -1
- package/lib/exception/index.js +2 -2
- package/lib/fixed-navbar/fixed-navbar.variable.css +2 -1
- package/lib/fixed-navbar/index.js +2 -2
- package/lib/form/form-item.d.ts +19 -0
- package/lib/form/form.css +17 -4
- package/lib/form/form.less +25 -6
- package/lib/form/form.variable.css +19 -5
- package/lib/form/index.d.ts +13 -0
- package/lib/form/index.js +43 -50
- package/lib/hooks.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/assistant.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/fix-line.js +1 -1
- package/lib/icon/fix-shape.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/grag-fill.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/index.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/loading.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/original.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-all.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/image-viewer.variable.css +2 -1
- package/lib/image/image.variable.css +2 -1
- package/lib/image/index.js +11 -12
- package/lib/index.js +1 -1
- package/lib/info-box/index.js +22 -7
- package/lib/info-box/info-box.css +20 -1
- package/lib/info-box/info-box.d.ts +1 -0
- package/lib/info-box/info-box.less +28 -2
- package/lib/info-box/info-box.variable.css +23 -3
- package/lib/input/index.d.ts +45 -20
- package/lib/input/index.js +57 -29
- package/lib/input/input.css +6 -0
- package/lib/input/input.d.ts +35 -17
- package/lib/input/input.less +7 -0
- package/lib/input/input.variable.css +8 -1
- package/lib/link/index.js +2 -2
- package/lib/link/link.variable.css +2 -1
- package/lib/loading/index.js +15 -7
- package/lib/loading/loading.variable.css +2 -1
- package/lib/locale/index.d.ts +1 -0
- package/lib/locale/index.js +172 -4
- package/lib/locale/lang/ja-jp.d.ts +3 -0
- package/lib/menu/index.js +12 -9
- package/lib/menu/menu.css +5 -4
- package/lib/menu/menu.less +1 -0
- package/lib/menu/menu.variable.css +7 -5
- package/lib/menu/submenu.variable.css +2 -1
- package/lib/message/index.js +62 -28
- package/lib/message/message.variable.css +2 -1
- package/lib/message/messageConstructor.d.ts +1 -1
- package/lib/modal/index.js +19 -8
- package/lib/modal/modal.css +20 -1
- package/lib/modal/modal.variable.css +22 -2
- package/lib/navigation/index.js +3 -3
- package/lib/navigation/navigation.css +29 -29
- package/lib/navigation/navigation.less +29 -29
- package/lib/navigation/navigation.variable.css +31 -30
- package/lib/notify/index.js +43 -24
- package/lib/notify/notify.variable.css +2 -1
- package/lib/overflow-title/components/overflow-title.d.ts +6 -2
- package/lib/overflow-title/index.d.ts +12 -4
- package/lib/overflow-title/index.js +3 -3
- package/lib/overflow-title/props.d.ts +3 -1
- package/lib/pagination/index.js +22 -14
- package/lib/pagination/pagination.css +1 -0
- package/lib/pagination/pagination.less +1 -0
- package/lib/pagination/pagination.variable.css +3 -1
- package/lib/pop-confirm/index.d.ts +592 -0
- package/lib/pop-confirm/index.js +10 -6
- package/lib/pop-confirm/pop-confirm.d.ts +296 -0
- package/lib/pop-confirm/pop-confirm.variable.css +2 -1
- package/lib/pop-confirm/props.d.ts +148 -0
- package/lib/popover/index.d.ts +18 -10
- package/lib/popover/index.js +281 -76
- package/lib/popover/popover.d.ts +8 -4
- package/lib/popover/popover.variable.css +2 -1
- package/lib/popover/props.d.ts +3 -1
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -2
- package/lib/popover/use-popper-id.d.ts +3 -1
- package/lib/popover2/index.js +2 -2
- package/lib/preset.js +1 -1
- package/lib/process/index.js +2 -2
- package/lib/process/process.d.ts +1 -1
- package/lib/process/process.variable.css +2 -1
- package/lib/progress/index.js +4 -4
- package/lib/progress/progress.variable.css +2 -1
- package/lib/radio/index.js +5 -5
- package/lib/radio/radio.variable.css +2 -1
- package/lib/rate/index.js +3 -3
- package/lib/rate/rate.variable.css +2 -1
- package/lib/resize-layout/index.js +2 -2
- package/lib/resize-layout/resize-layout.css +1 -0
- package/lib/resize-layout/resize-layout.less +1 -0
- package/lib/resize-layout/resize-layout.variable.css +3 -1
- package/lib/scrollbar/css/scrollbar.variable.css +2 -1
- package/lib/scrollbar/index.js +6 -6
- package/lib/search-select/index.d.ts +43 -15
- package/lib/search-select/index.js +88 -37
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/search-select.d.ts +14 -5
- package/lib/search-select/search-select.variable.css +2 -1
- package/lib/search-select/selected.d.ts +10 -2
- package/lib/search-select/utils.d.ts +1 -0
- package/lib/select/common.d.ts +0 -1
- package/lib/select/index.d.ts +58 -11
- package/lib/select/index.js +68 -66
- package/lib/select/optionGroup.d.ts +12 -1
- package/lib/select/select.d.ts +21 -4
- package/lib/select/select.variable.css +2 -1
- package/lib/select/type.d.ts +1 -0
- package/lib/shared/index.d.ts +1 -1
- package/lib/shared/index.js +10 -10
- package/lib/shared/z-index-manager.d.ts +1 -1
- package/lib/sideslider/index.d.ts +129 -2
- package/lib/sideslider/index.js +149 -11
- package/lib/sideslider/sideslider.css +62 -0
- package/lib/sideslider/sideslider.d.ts +59 -1
- package/lib/sideslider/sideslider.less +83 -0
- package/lib/sideslider/sideslider.variable.css +64 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +5 -4
- package/lib/slider/slider-button.d.ts +1 -1
- package/lib/slider/slider.d.ts +1 -1
- package/lib/slider/slider.variable.css +2 -1
- package/lib/steps/index.js +13 -14
- package/lib/steps/steps.css +24 -11
- package/lib/steps/steps.d.ts +1 -1
- package/lib/steps/steps.less +28 -10
- package/lib/steps/steps.variable.css +26 -12
- package/lib/styles/mixins/animate.variable.css +2 -1
- package/lib/styles/mixins/popper.variable.css +2 -1
- package/lib/styles/mixins/scroll.variable.css +2 -1
- package/lib/styles/reset.variable.css +2 -1
- package/lib/styles/themes/themes.less +4 -1
- package/lib/swiper/index.js +2 -2
- package/lib/swiper/swiper.variable.css +2 -1
- package/lib/switcher/index.js +2 -2
- package/lib/switcher/switcher.variable.css +2 -1
- package/lib/tab/index.d.ts +12 -0
- package/lib/tab/index.js +22 -17
- package/lib/tab/props.d.ts +3 -0
- package/lib/tab/tab.d.ts +6 -0
- package/lib/tab/tab.variable.css +2 -1
- package/lib/table/index.js +35 -36
- package/lib/table/plugins/head-filter.variable.css +2 -1
- package/lib/table/plugins/head-sort.variable.css +2 -1
- package/lib/table/plugins/settings.variable.css +2 -1
- package/lib/table/table.css +1 -0
- package/lib/table/table.variable.css +3 -1
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.d.ts +23 -0
- package/lib/tag/index.js +10 -5
- package/lib/tag/tag.d.ts +11 -0
- package/lib/tag/tag.variable.css +2 -1
- package/lib/tag-input/index.d.ts +82 -9
- package/lib/tag-input/index.js +1639 -54
- package/lib/tag-input/tag-input.css +31 -0
- package/lib/tag-input/tag-input.d.ts +36 -4
- package/lib/tag-input/tag-input.less +36 -0
- package/lib/tag-input/tag-input.variable.css +33 -1
- package/lib/tag-input/tag-props.d.ts +13 -1
- package/lib/tag-input/tag-render.d.ts +24 -2
- package/lib/time-picker/index.js +1 -1
- package/lib/time-picker/time-picker.variable.css +2 -1
- package/lib/timeline/index.d.ts +7 -7
- package/lib/timeline/index.js +1375 -9
- package/lib/timeline/timeline.d.ts +5 -5
- package/lib/timeline/timeline.variable.css +2 -1
- package/lib/transfer/index.d.ts +1 -24
- package/lib/transfer/index.js +21 -11
- package/lib/transfer/props.d.ts +0 -5
- package/lib/transfer/transfer.css +26 -8
- package/lib/transfer/transfer.d.ts +1 -12
- package/lib/transfer/transfer.less +18 -8
- package/lib/transfer/transfer.variable.css +28 -9
- package/lib/tree/constant.d.ts +2 -0
- package/lib/tree/index.d.ts +67 -11
- package/lib/tree/index.js +17694 -103
- package/lib/tree/props.d.ts +37 -3
- package/lib/tree/tree.css +34 -0
- package/lib/tree/tree.d.ts +31 -5
- package/lib/tree/tree.less +41 -2
- package/lib/tree/tree.variable.css +36 -1
- package/lib/tree/use-array-move.d.ts +6 -0
- package/lib/tree/use-node-action.d.ts +3 -1
- package/lib/tree/use-node-attribute.d.ts +3 -0
- package/lib/upload/index.js +8 -8
- package/lib/upload/upload.variable.css +2 -1
- package/lib/virtual-render/index.js +7 -7
- package/lib/virtual-render/virtual-render.variable.css +2 -1
- package/lib/volar.components.d.ts +2 -1
- package/package.json +13 -2
- package/dist/style.css +0 -1
|
@@ -33,9 +33,10 @@ declare const BkSearchSelect: {
|
|
|
33
33
|
validator(v: import("./utils").ValueBehavior): boolean;
|
|
34
34
|
};
|
|
35
35
|
}>> & {
|
|
36
|
+
onCopy?: (...args: any[]) => any;
|
|
37
|
+
onSearch?: (...args: any[]) => any;
|
|
36
38
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
37
39
|
onSelectKey?: (...args: any[]) => any;
|
|
38
|
-
onSearch?: (...args: any[]) => any;
|
|
39
40
|
}, {
|
|
40
41
|
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
41
42
|
data: {
|
|
@@ -90,6 +91,7 @@ declare const BkSearchSelect: {
|
|
|
90
91
|
menuList: import("vue").Ref<import("./utils").ISearchItem[]>;
|
|
91
92
|
menuHoverId: import("vue").Ref<string>;
|
|
92
93
|
isFocus: import("vue").Ref<boolean>;
|
|
94
|
+
isComposition: import("vue").Ref<boolean>;
|
|
93
95
|
usingItem: import("vue").Ref<import("./utils").SelectedItem>;
|
|
94
96
|
showPopover: import("vue").Ref<boolean>;
|
|
95
97
|
showNoSelectValueError: import("vue").Ref<boolean>;
|
|
@@ -113,7 +115,7 @@ declare const BkSearchSelect: {
|
|
|
113
115
|
inputClearForWrapper: () => void;
|
|
114
116
|
deleteInputTextNode: () => void;
|
|
115
117
|
customPanelSubmit: (value: string) => void;
|
|
116
|
-
|
|
118
|
+
refreshMenuHover: () => void;
|
|
117
119
|
t: import("vue").ComputedRef<{
|
|
118
120
|
pleaseSelect: string;
|
|
119
121
|
loading: string;
|
|
@@ -125,6 +127,9 @@ declare const BkSearchSelect: {
|
|
|
125
127
|
logical: string;
|
|
126
128
|
}>;
|
|
127
129
|
inputKey: import("vue").Ref<string>;
|
|
130
|
+
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
131
|
+
handleCompositionStart: () => void;
|
|
132
|
+
handleInputCopy: (event: ClipboardEvent) => void;
|
|
128
133
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
129
134
|
data: {
|
|
130
135
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
|
@@ -223,6 +228,7 @@ declare const BkSearchSelect: {
|
|
|
223
228
|
menuList: import("vue").Ref<import("./utils").ISearchItem[]>;
|
|
224
229
|
menuHoverId: import("vue").Ref<string>;
|
|
225
230
|
isFocus: import("vue").Ref<boolean>;
|
|
231
|
+
isComposition: import("vue").Ref<boolean>;
|
|
226
232
|
usingItem: import("vue").Ref<import("./utils").SelectedItem>;
|
|
227
233
|
showPopover: import("vue").Ref<boolean>;
|
|
228
234
|
showNoSelectValueError: import("vue").Ref<boolean>;
|
|
@@ -246,7 +252,7 @@ declare const BkSearchSelect: {
|
|
|
246
252
|
inputClearForWrapper: () => void;
|
|
247
253
|
deleteInputTextNode: () => void;
|
|
248
254
|
customPanelSubmit: (value: string) => void;
|
|
249
|
-
|
|
255
|
+
refreshMenuHover: () => void;
|
|
250
256
|
t: import("vue").ComputedRef<{
|
|
251
257
|
pleaseSelect: string;
|
|
252
258
|
loading: string;
|
|
@@ -258,6 +264,9 @@ declare const BkSearchSelect: {
|
|
|
258
264
|
logical: string;
|
|
259
265
|
}>;
|
|
260
266
|
inputKey: import("vue").Ref<string>;
|
|
267
|
+
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
268
|
+
handleCompositionStart: () => void;
|
|
269
|
+
handleInputCopy: (event: ClipboardEvent) => void;
|
|
261
270
|
}, {}, {}, {}, {
|
|
262
271
|
maxHeight: number;
|
|
263
272
|
mode: import("./utils").SearchInputMode;
|
|
@@ -374,7 +383,7 @@ declare const BkSearchSelect: {
|
|
|
374
383
|
handleWrapClick: () => void;
|
|
375
384
|
handleInputFocus: (v: boolean) => void;
|
|
376
385
|
handleResize: () => void;
|
|
377
|
-
handleClearAll: () => void;
|
|
386
|
+
handleClearAll: (e: MouseEvent) => void;
|
|
378
387
|
handleInputOutside: (target: Node) => boolean;
|
|
379
388
|
handleAddSelected: (item: import("./utils").SelectedItem) => void;
|
|
380
389
|
handleDeleteSelected: (index?: number) => void;
|
|
@@ -392,7 +401,7 @@ declare const BkSearchSelect: {
|
|
|
392
401
|
and: string;
|
|
393
402
|
logical: string;
|
|
394
403
|
}>;
|
|
395
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
404
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("copy" | "search" | "update:modelValue" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
396
405
|
data: {
|
|
397
406
|
type: import("vue").PropType<Omit<import("./utils").ISearchItem, "value" | "isSelected">[]>;
|
|
398
407
|
default: () => any[];
|
|
@@ -426,9 +435,10 @@ declare const BkSearchSelect: {
|
|
|
426
435
|
validator(v: import("./utils").ValueBehavior): boolean;
|
|
427
436
|
};
|
|
428
437
|
}>> & {
|
|
438
|
+
onCopy?: (...args: any[]) => any;
|
|
439
|
+
onSearch?: (...args: any[]) => any;
|
|
429
440
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
430
441
|
onSelectKey?: (...args: any[]) => any;
|
|
431
|
-
onSearch?: (...args: any[]) => any;
|
|
432
442
|
}, {
|
|
433
443
|
data: Omit<import("./utils").ISearchItem, "value" | "isSelected">[];
|
|
434
444
|
maxHeight: number;
|
|
@@ -489,9 +499,10 @@ declare const BkSearchSelect: {
|
|
|
489
499
|
validator(v: import("./utils").ValueBehavior): boolean;
|
|
490
500
|
};
|
|
491
501
|
}>> & {
|
|
502
|
+
onCopy?: (...args: any[]) => any;
|
|
503
|
+
onSearch?: (...args: any[]) => any;
|
|
492
504
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
493
505
|
onSelectKey?: (...args: any[]) => any;
|
|
494
|
-
onSearch?: (...args: any[]) => any;
|
|
495
506
|
}, {
|
|
496
507
|
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
497
508
|
data: {
|
|
@@ -546,6 +557,7 @@ declare const BkSearchSelect: {
|
|
|
546
557
|
menuList: import("vue").Ref<import("./utils").ISearchItem[]>;
|
|
547
558
|
menuHoverId: import("vue").Ref<string>;
|
|
548
559
|
isFocus: import("vue").Ref<boolean>;
|
|
560
|
+
isComposition: import("vue").Ref<boolean>;
|
|
549
561
|
usingItem: import("vue").Ref<import("./utils").SelectedItem>;
|
|
550
562
|
showPopover: import("vue").Ref<boolean>;
|
|
551
563
|
showNoSelectValueError: import("vue").Ref<boolean>;
|
|
@@ -569,7 +581,7 @@ declare const BkSearchSelect: {
|
|
|
569
581
|
inputClearForWrapper: () => void;
|
|
570
582
|
deleteInputTextNode: () => void;
|
|
571
583
|
customPanelSubmit: (value: string) => void;
|
|
572
|
-
|
|
584
|
+
refreshMenuHover: () => void;
|
|
573
585
|
t: import("vue").ComputedRef<{
|
|
574
586
|
pleaseSelect: string;
|
|
575
587
|
loading: string;
|
|
@@ -581,6 +593,9 @@ declare const BkSearchSelect: {
|
|
|
581
593
|
logical: string;
|
|
582
594
|
}>;
|
|
583
595
|
inputKey: import("vue").Ref<string>;
|
|
596
|
+
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
597
|
+
handleCompositionStart: () => void;
|
|
598
|
+
handleInputCopy: (event: ClipboardEvent) => void;
|
|
584
599
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
585
600
|
data: {
|
|
586
601
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
|
@@ -679,6 +694,7 @@ declare const BkSearchSelect: {
|
|
|
679
694
|
menuList: import("vue").Ref<import("./utils").ISearchItem[]>;
|
|
680
695
|
menuHoverId: import("vue").Ref<string>;
|
|
681
696
|
isFocus: import("vue").Ref<boolean>;
|
|
697
|
+
isComposition: import("vue").Ref<boolean>;
|
|
682
698
|
usingItem: import("vue").Ref<import("./utils").SelectedItem>;
|
|
683
699
|
showPopover: import("vue").Ref<boolean>;
|
|
684
700
|
showNoSelectValueError: import("vue").Ref<boolean>;
|
|
@@ -702,7 +718,7 @@ declare const BkSearchSelect: {
|
|
|
702
718
|
inputClearForWrapper: () => void;
|
|
703
719
|
deleteInputTextNode: () => void;
|
|
704
720
|
customPanelSubmit: (value: string) => void;
|
|
705
|
-
|
|
721
|
+
refreshMenuHover: () => void;
|
|
706
722
|
t: import("vue").ComputedRef<{
|
|
707
723
|
pleaseSelect: string;
|
|
708
724
|
loading: string;
|
|
@@ -714,6 +730,9 @@ declare const BkSearchSelect: {
|
|
|
714
730
|
logical: string;
|
|
715
731
|
}>;
|
|
716
732
|
inputKey: import("vue").Ref<string>;
|
|
733
|
+
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
734
|
+
handleCompositionStart: () => void;
|
|
735
|
+
handleInputCopy: (event: ClipboardEvent) => void;
|
|
717
736
|
}, {}, {}, {}, {
|
|
718
737
|
maxHeight: number;
|
|
719
738
|
mode: import("./utils").SearchInputMode;
|
|
@@ -830,7 +849,7 @@ declare const BkSearchSelect: {
|
|
|
830
849
|
handleWrapClick: () => void;
|
|
831
850
|
handleInputFocus: (v: boolean) => void;
|
|
832
851
|
handleResize: () => void;
|
|
833
|
-
handleClearAll: () => void;
|
|
852
|
+
handleClearAll: (e: MouseEvent) => void;
|
|
834
853
|
handleInputOutside: (target: Node) => boolean;
|
|
835
854
|
handleAddSelected: (item: import("./utils").SelectedItem) => void;
|
|
836
855
|
handleDeleteSelected: (index?: number) => void;
|
|
@@ -894,9 +913,10 @@ declare const BkSearchSelect: {
|
|
|
894
913
|
validator(v: import("./utils").ValueBehavior): boolean;
|
|
895
914
|
};
|
|
896
915
|
}>> & {
|
|
916
|
+
onCopy?: (...args: any[]) => any;
|
|
917
|
+
onSearch?: (...args: any[]) => any;
|
|
897
918
|
"onUpdate:modelValue"?: (...args: any[]) => any;
|
|
898
919
|
onSelectKey?: (...args: any[]) => any;
|
|
899
|
-
onSearch?: (...args: any[]) => any;
|
|
900
920
|
}, {
|
|
901
921
|
inputRef: import("vue").Ref<import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
902
922
|
data: {
|
|
@@ -951,6 +971,7 @@ declare const BkSearchSelect: {
|
|
|
951
971
|
menuList: import("vue").Ref<import("./utils").ISearchItem[]>;
|
|
952
972
|
menuHoverId: import("vue").Ref<string>;
|
|
953
973
|
isFocus: import("vue").Ref<boolean>;
|
|
974
|
+
isComposition: import("vue").Ref<boolean>;
|
|
954
975
|
usingItem: import("vue").Ref<import("./utils").SelectedItem>;
|
|
955
976
|
showPopover: import("vue").Ref<boolean>;
|
|
956
977
|
showNoSelectValueError: import("vue").Ref<boolean>;
|
|
@@ -974,7 +995,7 @@ declare const BkSearchSelect: {
|
|
|
974
995
|
inputClearForWrapper: () => void;
|
|
975
996
|
deleteInputTextNode: () => void;
|
|
976
997
|
customPanelSubmit: (value: string) => void;
|
|
977
|
-
|
|
998
|
+
refreshMenuHover: () => void;
|
|
978
999
|
t: import("vue").ComputedRef<{
|
|
979
1000
|
pleaseSelect: string;
|
|
980
1001
|
loading: string;
|
|
@@ -986,6 +1007,9 @@ declare const BkSearchSelect: {
|
|
|
986
1007
|
logical: string;
|
|
987
1008
|
}>;
|
|
988
1009
|
inputKey: import("vue").Ref<string>;
|
|
1010
|
+
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
1011
|
+
handleCompositionStart: () => void;
|
|
1012
|
+
handleInputCopy: (event: ClipboardEvent) => void;
|
|
989
1013
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "delete" | "add" | "selectKey")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
990
1014
|
data: {
|
|
991
1015
|
type: import("vue").PropType<import("./utils").ISearchItem[]>;
|
|
@@ -1084,6 +1108,7 @@ declare const BkSearchSelect: {
|
|
|
1084
1108
|
menuList: import("vue").Ref<import("./utils").ISearchItem[]>;
|
|
1085
1109
|
menuHoverId: import("vue").Ref<string>;
|
|
1086
1110
|
isFocus: import("vue").Ref<boolean>;
|
|
1111
|
+
isComposition: import("vue").Ref<boolean>;
|
|
1087
1112
|
usingItem: import("vue").Ref<import("./utils").SelectedItem>;
|
|
1088
1113
|
showPopover: import("vue").Ref<boolean>;
|
|
1089
1114
|
showNoSelectValueError: import("vue").Ref<boolean>;
|
|
@@ -1107,7 +1132,7 @@ declare const BkSearchSelect: {
|
|
|
1107
1132
|
inputClearForWrapper: () => void;
|
|
1108
1133
|
deleteInputTextNode: () => void;
|
|
1109
1134
|
customPanelSubmit: (value: string) => void;
|
|
1110
|
-
|
|
1135
|
+
refreshMenuHover: () => void;
|
|
1111
1136
|
t: import("vue").ComputedRef<{
|
|
1112
1137
|
pleaseSelect: string;
|
|
1113
1138
|
loading: string;
|
|
@@ -1119,6 +1144,9 @@ declare const BkSearchSelect: {
|
|
|
1119
1144
|
logical: string;
|
|
1120
1145
|
}>;
|
|
1121
1146
|
inputKey: import("vue").Ref<string>;
|
|
1147
|
+
handleCompositionEnd: (event: CompositionEvent) => void;
|
|
1148
|
+
handleCompositionStart: () => void;
|
|
1149
|
+
handleInputCopy: (event: ClipboardEvent) => void;
|
|
1122
1150
|
}, {}, {}, {}, {
|
|
1123
1151
|
maxHeight: number;
|
|
1124
1152
|
mode: import("./utils").SearchInputMode;
|
|
@@ -1235,7 +1263,7 @@ declare const BkSearchSelect: {
|
|
|
1235
1263
|
handleWrapClick: () => void;
|
|
1236
1264
|
handleInputFocus: (v: boolean) => void;
|
|
1237
1265
|
handleResize: () => void;
|
|
1238
|
-
handleClearAll: () => void;
|
|
1266
|
+
handleClearAll: (e: MouseEvent) => void;
|
|
1239
1267
|
handleInputOutside: (target: Node) => boolean;
|
|
1240
1268
|
handleAddSelected: (item: import("./utils").SelectedItem) => void;
|
|
1241
1269
|
handleDeleteSelected: (index?: number) => void;
|
|
@@ -1253,7 +1281,7 @@ declare const BkSearchSelect: {
|
|
|
1253
1281
|
and: string;
|
|
1254
1282
|
logical: string;
|
|
1255
1283
|
}>;
|
|
1256
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("search" | "update:modelValue" | "selectKey")[], "search" | "update:modelValue" | "selectKey", {
|
|
1284
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("copy" | "search" | "update:modelValue" | "selectKey")[], "copy" | "search" | "update:modelValue" | "selectKey", {
|
|
1257
1285
|
data: Omit<import("./utils").ISearchItem, "value" | "isSelected">[];
|
|
1258
1286
|
maxHeight: number;
|
|
1259
1287
|
clearable: boolean;
|
|
@@ -1100,7 +1100,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
1100
1100
|
* Tencent is pleased to support the open source community by making
|
|
1101
1101
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1102
1102
|
*
|
|
1103
|
-
* Copyright (C)
|
|
1103
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1104
1104
|
*
|
|
1105
1105
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1106
1106
|
*
|
|
@@ -1228,7 +1228,7 @@ const popover_namespaceObject = popover_x({ ["$bkPopover"]: () => __WEBPACK_EXTE
|
|
|
1228
1228
|
* Tencent is pleased to support the open source community by making
|
|
1229
1229
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1230
1230
|
*
|
|
1231
|
-
* Copyright (C)
|
|
1231
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1232
1232
|
*
|
|
1233
1233
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1234
1234
|
*
|
|
@@ -1340,7 +1340,7 @@ var normalize_wheel_default = /*#__PURE__*/__webpack_require__.n(normalize_wheel
|
|
|
1340
1340
|
* Tencent is pleased to support the open source community by making
|
|
1341
1341
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1342
1342
|
*
|
|
1343
|
-
* Copyright (C)
|
|
1343
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1344
1344
|
*
|
|
1345
1345
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1346
1346
|
*
|
|
@@ -1428,7 +1428,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
1428
1428
|
* Tencent is pleased to support the open source community by making
|
|
1429
1429
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1430
1430
|
*
|
|
1431
|
-
* Copyright (C)
|
|
1431
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1432
1432
|
*
|
|
1433
1433
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1434
1434
|
*
|
|
@@ -1483,9 +1483,6 @@ var tooltips = {
|
|
|
1483
1483
|
hide(el);
|
|
1484
1484
|
}, 100);
|
|
1485
1485
|
});
|
|
1486
|
-
el.addEventListener('click', function () {
|
|
1487
|
-
hide(el);
|
|
1488
|
-
});
|
|
1489
1486
|
popper.addEventListener('mouseleave', function () {
|
|
1490
1487
|
clearTimeout(delayTimeout);
|
|
1491
1488
|
hideTimeout = setTimeout(function () {
|
|
@@ -1499,7 +1496,7 @@ var tooltips = {
|
|
|
1499
1496
|
show(el);
|
|
1500
1497
|
clearTimeout(delayTimeout);
|
|
1501
1498
|
}, opts.delay);
|
|
1502
|
-
} else if (popper.hasAttribute('data-show')) {
|
|
1499
|
+
} else if (!el.contains(event.target) && popper.hasAttribute('data-show')) {
|
|
1503
1500
|
hide(el);
|
|
1504
1501
|
}
|
|
1505
1502
|
});
|
|
@@ -1608,6 +1605,7 @@ function renderArrow() {
|
|
|
1608
1605
|
* @returns popper实例
|
|
1609
1606
|
*/
|
|
1610
1607
|
function createPopperInstance(el, popper) {
|
|
1608
|
+
if (!tooltips_nodeList.get(el)) return;
|
|
1611
1609
|
var _nodeList$get = tooltips_nodeList.get(el),
|
|
1612
1610
|
opts = _nodeList$get.opts;
|
|
1613
1611
|
var placement = opts.placement,
|
|
@@ -1648,6 +1646,7 @@ function createPopperInstance(el, popper) {
|
|
|
1648
1646
|
* @param el
|
|
1649
1647
|
*/
|
|
1650
1648
|
function show(el) {
|
|
1649
|
+
if (!tooltips_nodeList.get(el)) return;
|
|
1651
1650
|
var _nodeList$get2 = tooltips_nodeList.get(el),
|
|
1652
1651
|
popper = _nodeList$get2.popper,
|
|
1653
1652
|
opts = _nodeList$get2.opts;
|
|
@@ -1723,7 +1722,7 @@ const external_overflow_title_namespaceObject = external_overflow_title_x({ });
|
|
|
1723
1722
|
* Tencent is pleased to support the open source community by making
|
|
1724
1723
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
1725
1724
|
*
|
|
1726
|
-
* Copyright (C)
|
|
1725
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
1727
1726
|
*
|
|
1728
1727
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
1729
1728
|
*
|
|
@@ -2203,7 +2202,7 @@ function _createClass(Constructor, protoProps, staticProps) {
|
|
|
2203
2202
|
* Tencent is pleased to support the open source community by making
|
|
2204
2203
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2205
2204
|
*
|
|
2206
|
-
* Copyright (C)
|
|
2205
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2207
2206
|
*
|
|
2208
2207
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2209
2208
|
*
|
|
@@ -2464,7 +2463,7 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
|
2464
2463
|
* Tencent is pleased to support the open source community by making
|
|
2465
2464
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2466
2465
|
*
|
|
2467
|
-
* Copyright (C)
|
|
2466
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2468
2467
|
*
|
|
2469
2468
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2470
2469
|
*
|
|
@@ -2583,11 +2582,11 @@ var SelectedItem = /*#__PURE__*/function () {
|
|
|
2583
2582
|
var _keyword;
|
|
2584
2583
|
if (!str) return str;
|
|
2585
2584
|
var keyword = props.keyword;
|
|
2586
|
-
|
|
2587
|
-
|
|
2585
|
+
if (!((_keyword = keyword) !== null && _keyword !== void 0 && _keyword.trim().length) || !str.toLocaleLowerCase().includes(keyword.toLocaleLowerCase().trim())) return str;
|
|
2586
|
+
var len = keyword.trim().length;
|
|
2588
2587
|
var list = [];
|
|
2589
2588
|
var lastIndex = -1;
|
|
2590
|
-
keyword = keyword.replace(/([.*/]{1})/gim, '\\$1');
|
|
2589
|
+
keyword = keyword.replace(/([.*/]{1})/gim, '\\$1').trim();
|
|
2591
2590
|
str.replace(new RegExp("".concat(keyword), 'igm'), function (key, index) {
|
|
2592
2591
|
if (list.length === 0 && index !== 0) {
|
|
2593
2592
|
list.push(str.slice(0, index));
|
|
@@ -2715,7 +2714,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
2715
2714
|
* Tencent is pleased to support the open source community by making
|
|
2716
2715
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
2717
2716
|
*
|
|
2718
|
-
* Copyright (C)
|
|
2717
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
2719
2718
|
*
|
|
2720
2719
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
2721
2720
|
*
|
|
@@ -2804,12 +2803,14 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
2804
2803
|
var _useSearchSelectInjec = useSearchSelectInject(),
|
|
2805
2804
|
editKey = _useSearchSelectInjec.editKey,
|
|
2806
2805
|
onValidate = _useSearchSelectInjec.onValidate,
|
|
2807
|
-
searchData = _useSearchSelectInjec.searchData
|
|
2806
|
+
searchData = _useSearchSelectInjec.searchData,
|
|
2807
|
+
onCopy = _useSearchSelectInjec.onCopy;
|
|
2808
2808
|
var valueLogic = (0,external_vue_namespaceObject.computed)(function () {
|
|
2809
2809
|
var _usingItem$value;
|
|
2810
2810
|
return ((_usingItem$value = usingItem.value) === null || _usingItem$value === void 0 ? void 0 : _usingItem$value.logical) || SearchLogical.OR;
|
|
2811
2811
|
});
|
|
2812
2812
|
var inputKey = (0,external_vue_namespaceObject.ref)((0,shared_namespaceObject.random)(10));
|
|
2813
|
+
var isComposition = (0,external_vue_namespaceObject.ref)(false);
|
|
2813
2814
|
(0,external_vue_namespaceObject.watch)(editKey, function () {
|
|
2814
2815
|
if (props.mode === SearchInputMode.DEFAULT && editKey.value) {
|
|
2815
2816
|
showPopover.value = false;
|
|
@@ -2959,7 +2960,9 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
2959
2960
|
debounceSetMenuList();
|
|
2960
2961
|
}
|
|
2961
2962
|
function handleInputChange(event) {
|
|
2962
|
-
|
|
2963
|
+
if (isComposition.value) return;
|
|
2964
|
+
clearInputBr();
|
|
2965
|
+
var text = event.target.innerText;
|
|
2963
2966
|
if (!usingItem.value) {
|
|
2964
2967
|
keyword.value = text;
|
|
2965
2968
|
debounceSetMenuList();
|
|
@@ -2978,7 +2981,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
2978
2981
|
return;
|
|
2979
2982
|
}
|
|
2980
2983
|
}
|
|
2981
|
-
keyword.value = usingItem.value.isSpecialType() ? text : text.replace(usingItem.value.name, '').replace(':', '')
|
|
2984
|
+
keyword.value = usingItem.value.isSpecialType() ? text : text.replace(usingItem.value.name, '').replace(':', '');
|
|
2982
2985
|
debounceSetMenuList();
|
|
2983
2986
|
}
|
|
2984
2987
|
function handleInputKeyup(event) {
|
|
@@ -2991,9 +2994,11 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
2991
2994
|
// }
|
|
2992
2995
|
// return;
|
|
2993
2996
|
// }
|
|
2997
|
+
if (isComposition.value) return;
|
|
2994
2998
|
switch (event.code) {
|
|
2995
2999
|
case 'Enter':
|
|
2996
3000
|
case 'NumpadEnter':
|
|
3001
|
+
event.preventDefault();
|
|
2997
3002
|
if (props.valueBehavior === ValueBehavior.NEED_KEY && menuList.value.some(function (item) {
|
|
2998
3003
|
return item.id === menuHoverId.value;
|
|
2999
3004
|
})) {
|
|
@@ -3008,12 +3013,20 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3008
3013
|
});
|
|
3009
3014
|
break;
|
|
3010
3015
|
case 'Backspace':
|
|
3016
|
+
case 'Delete':
|
|
3011
3017
|
handleKeyBackspace(event);
|
|
3018
|
+
break;
|
|
3012
3019
|
default:
|
|
3013
3020
|
showNoSelectValueError.value = false;
|
|
3014
3021
|
break;
|
|
3015
3022
|
}
|
|
3016
3023
|
}
|
|
3024
|
+
var handleInputCopy = function handleInputCopy(event) {
|
|
3025
|
+
var copyText = window.getSelection().toString();
|
|
3026
|
+
if (copyText) {
|
|
3027
|
+
onCopy(event, copyText, usingItem.value.toValue());
|
|
3028
|
+
}
|
|
3029
|
+
};
|
|
3017
3030
|
function handleKeyEnter(_x) {
|
|
3018
3031
|
return _handleKeyEnter.apply(this, arguments);
|
|
3019
3032
|
}
|
|
@@ -3114,7 +3127,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3114
3127
|
setInputFocus(false, false);
|
|
3115
3128
|
return;
|
|
3116
3129
|
}
|
|
3117
|
-
} else if (!keyword.value) {
|
|
3130
|
+
} else if (!keyword.value || keyword.value.length === 1) {
|
|
3118
3131
|
usingItem.value = null;
|
|
3119
3132
|
keyword.value = '';
|
|
3120
3133
|
setMenuList();
|
|
@@ -3322,7 +3335,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3322
3335
|
function _setMenuList() {
|
|
3323
3336
|
_setMenuList = _asyncToGenerator( /*#__PURE__*/regenerator_default().mark(function _callee5() {
|
|
3324
3337
|
var _props$data, _usingItem$value$sear, _usingItem$value$valu;
|
|
3325
|
-
var list, _usingItem$value14, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
|
|
3338
|
+
var list, _usingItem$value14, _usingItem$value15, _keyword$value3, _iterator, _step, item, isMatched, _list, filterList, _iterator2, _step2, child, _list2, _filterList, _iterator3, _step3, _child, hoverItem;
|
|
3326
3339
|
return regenerator_default().wrap(function _callee5$(_context5) {
|
|
3327
3340
|
while (1) switch (_context5.prev = _context5.next) {
|
|
3328
3341
|
case 0:
|
|
@@ -3333,7 +3346,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3333
3346
|
}
|
|
3334
3347
|
loading.value = true;
|
|
3335
3348
|
_context5.next = 5;
|
|
3336
|
-
return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value)["catch"](function () {
|
|
3349
|
+
return props.getMenuList((_usingItem$value14 = usingItem.value) === null || _usingItem$value14 === void 0 ? void 0 : _usingItem$value14.searchItem, keyword.value.trim() || ((_usingItem$value15 = usingItem.value) === null || _usingItem$value15 === void 0 || (_usingItem$value15 = _usingItem$value15.values) === null || _usingItem$value15 === void 0 || (_usingItem$value15 = _usingItem$value15[0]) === null || _usingItem$value15 === void 0 ? void 0 : _usingItem$value15.name) || '')["catch"](function () {
|
|
3337
3350
|
return [];
|
|
3338
3351
|
});
|
|
3339
3352
|
case 5:
|
|
@@ -3390,7 +3403,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3390
3403
|
try {
|
|
3391
3404
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
3392
3405
|
_child = _step3.value;
|
|
3393
|
-
if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase())) {
|
|
3406
|
+
if (_child.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase().trim())) {
|
|
3394
3407
|
_filterList.push(input_objectSpread(input_objectSpread({}, item), {}, {
|
|
3395
3408
|
realId: item.id,
|
|
3396
3409
|
id: (0,shared_namespaceObject.random)(10),
|
|
@@ -3424,7 +3437,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3424
3437
|
list = props.conditions;
|
|
3425
3438
|
} else if (!((_usingItem$value$valu = usingItem.value.values) !== null && _usingItem$value$valu !== void 0 && _usingItem$value$valu.length) || usingItem.value.multiple || props.mode === SearchInputMode.EDIT) {
|
|
3426
3439
|
list = usingItem.value.children.filter(function (item) {
|
|
3427
|
-
return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase());
|
|
3440
|
+
return item.name.toLocaleLowerCase().includes(keyword.value.toLocaleLowerCase().trim());
|
|
3428
3441
|
});
|
|
3429
3442
|
}
|
|
3430
3443
|
case 10:
|
|
@@ -3563,11 +3576,29 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3563
3576
|
(0,external_vue_namespaceObject.nextTick)(clearInput);
|
|
3564
3577
|
}
|
|
3565
3578
|
}
|
|
3579
|
+
function clearInputBr() {
|
|
3580
|
+
if (!inputRef.value) return;
|
|
3581
|
+
var brs = inputRef.value.querySelectorAll('br');
|
|
3582
|
+
brs === null || brs === void 0 || brs.forEach(function (br) {
|
|
3583
|
+
return br.remove();
|
|
3584
|
+
});
|
|
3585
|
+
}
|
|
3566
3586
|
function clearInput() {
|
|
3567
3587
|
if (!inputRef.value) return;
|
|
3588
|
+
// magic code 判断是否是 windows 系统
|
|
3589
|
+
// const isWindows = navigator.userAgent.includes('Windows');
|
|
3590
|
+
// if (isWindows) {
|
|
3591
|
+
// setTimeout(() => {
|
|
3592
|
+
// keyword.value = '';
|
|
3593
|
+
// inputRef.value.innerText = '';
|
|
3594
|
+
// clearInputBr();
|
|
3595
|
+
// }, 32);
|
|
3596
|
+
// return;
|
|
3597
|
+
// }
|
|
3568
3598
|
keyword.value = '';
|
|
3569
3599
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
|
3570
|
-
|
|
3600
|
+
inputRef.value.innerText = '';
|
|
3601
|
+
clearInputBr();
|
|
3571
3602
|
});
|
|
3572
3603
|
}
|
|
3573
3604
|
function str2SelectedItem(str) {
|
|
@@ -3643,11 +3674,19 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3643
3674
|
return v && clearInput();
|
|
3644
3675
|
});
|
|
3645
3676
|
}
|
|
3646
|
-
function
|
|
3677
|
+
function refreshMenuHover() {
|
|
3647
3678
|
if (!usingItem.value) {
|
|
3648
3679
|
menuHoverId.value = '';
|
|
3649
3680
|
}
|
|
3650
3681
|
}
|
|
3682
|
+
function handleCompositionEnd(event) {
|
|
3683
|
+
isComposition.value = false;
|
|
3684
|
+
keyword.value = event.data;
|
|
3685
|
+
handleInputChange(event);
|
|
3686
|
+
}
|
|
3687
|
+
function handleCompositionStart() {
|
|
3688
|
+
isComposition.value = true;
|
|
3689
|
+
}
|
|
3651
3690
|
// expose
|
|
3652
3691
|
expose({
|
|
3653
3692
|
inputFocusForWrapper: inputFocusForWrapper,
|
|
@@ -3655,7 +3694,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3655
3694
|
inputClearForWrapper: inputClearForWrapper,
|
|
3656
3695
|
handleInputFocus: handleInputFocus,
|
|
3657
3696
|
isFocus: isFocus,
|
|
3658
|
-
|
|
3697
|
+
refreshMenuHover: refreshMenuHover
|
|
3659
3698
|
});
|
|
3660
3699
|
return {
|
|
3661
3700
|
popoverRef: popoverRef,
|
|
@@ -3666,6 +3705,7 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3666
3705
|
menuList: menuList,
|
|
3667
3706
|
menuHoverId: menuHoverId,
|
|
3668
3707
|
isFocus: isFocus,
|
|
3708
|
+
isComposition: isComposition,
|
|
3669
3709
|
usingItem: usingItem,
|
|
3670
3710
|
showPopover: showPopover,
|
|
3671
3711
|
showNoSelectValueError: showNoSelectValueError,
|
|
@@ -3686,9 +3726,12 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3686
3726
|
inputClearForWrapper: inputClearForWrapper,
|
|
3687
3727
|
deleteInputTextNode: deleteInputTextNode,
|
|
3688
3728
|
customPanelSubmit: customPanelSubmit,
|
|
3689
|
-
|
|
3729
|
+
refreshMenuHover: refreshMenuHover,
|
|
3690
3730
|
t: t,
|
|
3691
|
-
inputKey: inputKey
|
|
3731
|
+
inputKey: inputKey,
|
|
3732
|
+
handleCompositionEnd: handleCompositionEnd,
|
|
3733
|
+
handleCompositionStart: handleCompositionStart,
|
|
3734
|
+
handleInputCopy: handleInputCopy
|
|
3692
3735
|
};
|
|
3693
3736
|
},
|
|
3694
3737
|
render: function render() {
|
|
@@ -3715,9 +3758,12 @@ function input_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
|
3715
3758
|
'input-after': showInputAfter
|
|
3716
3759
|
},
|
|
3717
3760
|
"contenteditable": true,
|
|
3718
|
-
"data-placeholder": !inputInnerHtml && !_this.keyword ? _this.placeholder : '',
|
|
3719
|
-
"data-tips": placeholder || '',
|
|
3761
|
+
"data-placeholder": !_this.isComposition && !inputInnerHtml && !_this.keyword ? _this.placeholder : '',
|
|
3762
|
+
"data-tips": !_this.isComposition ? placeholder || '' : '',
|
|
3720
3763
|
"spellcheck": "false",
|
|
3764
|
+
"onCompositionend": _this.handleCompositionEnd,
|
|
3765
|
+
"onCompositionstart": _this.handleCompositionStart,
|
|
3766
|
+
"onCopy": _this.handleInputCopy,
|
|
3721
3767
|
"onFocus": _this.handleInputFocus,
|
|
3722
3768
|
"onInput": _this.handleInputChange,
|
|
3723
3769
|
"onKeydown": _this.handleInputKeyup,
|
|
@@ -3811,7 +3857,7 @@ function selected_objectSpread(e) { for (var r = 1; r < arguments.length; r++) {
|
|
|
3811
3857
|
* Tencent is pleased to support the open source community by making
|
|
3812
3858
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
3813
3859
|
*
|
|
3814
|
-
* Copyright (C)
|
|
3860
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
3815
3861
|
*
|
|
3816
3862
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
3817
3863
|
*
|
|
@@ -3981,7 +4027,7 @@ function search_select_arrayLikeToArray(arr, len) { if (len == null || len > arr
|
|
|
3981
4027
|
* Tencent is pleased to support the open source community by making
|
|
3982
4028
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
3983
4029
|
*
|
|
3984
|
-
* Copyright (C)
|
|
4030
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
3985
4031
|
*
|
|
3986
4032
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
3987
4033
|
*
|
|
@@ -4071,7 +4117,7 @@ var SearchSelectProps = {
|
|
|
4071
4117
|
clickoutside: clickoutside
|
|
4072
4118
|
},
|
|
4073
4119
|
props: SearchSelectProps,
|
|
4074
|
-
emits: ['update:modelValue', 'search', 'selectKey'],
|
|
4120
|
+
emits: ['update:modelValue', 'search', 'selectKey', 'copy'],
|
|
4075
4121
|
slots: Object,
|
|
4076
4122
|
setup: function setup(props, _ref) {
|
|
4077
4123
|
var emit = _ref.emit;
|
|
@@ -4220,6 +4266,9 @@ var SearchSelectProps = {
|
|
|
4220
4266
|
(0,external_vue_namespaceObject.onBeforeUnmount)(function () {
|
|
4221
4267
|
removeListener(wrapRef.value.querySelector(".".concat(resolveClassName('search-select-container'))), debounceResize);
|
|
4222
4268
|
});
|
|
4269
|
+
var onCopy = function onCopy(event, text, item) {
|
|
4270
|
+
emit('copy', event, text, item);
|
|
4271
|
+
};
|
|
4223
4272
|
// edit item
|
|
4224
4273
|
useSearchSelectProvider({
|
|
4225
4274
|
onEditClick: onEditClick,
|
|
@@ -4230,7 +4279,8 @@ var SearchSelectProps = {
|
|
|
4230
4279
|
searchData: (0,external_vue_namespaceObject.computed)(function () {
|
|
4231
4280
|
return props.data;
|
|
4232
4281
|
}),
|
|
4233
|
-
isClickOutside: handleInputOutside
|
|
4282
|
+
isClickOutside: handleInputOutside,
|
|
4283
|
+
onCopy: onCopy
|
|
4234
4284
|
});
|
|
4235
4285
|
function onEditClick(item, index) {
|
|
4236
4286
|
editKey.value = "".concat(item.id, "_").concat(index);
|
|
@@ -4285,7 +4335,8 @@ var SearchSelectProps = {
|
|
|
4285
4335
|
inputRef.value.inputFocusForWrapper();
|
|
4286
4336
|
}
|
|
4287
4337
|
}
|
|
4288
|
-
function handleClearAll() {
|
|
4338
|
+
function handleClearAll(e) {
|
|
4339
|
+
e.stopPropagation();
|
|
4289
4340
|
selectedList.value = [];
|
|
4290
4341
|
overflowIndex.value = -1;
|
|
4291
4342
|
inputRef.value.inputClearForWrapper();
|
|
@@ -4307,7 +4358,7 @@ var SearchSelectProps = {
|
|
|
4307
4358
|
var list = selectedList.value.slice();
|
|
4308
4359
|
list.splice(typeof index === 'number' ? index : selectedList.value.length - 1, 1);
|
|
4309
4360
|
onValidate('');
|
|
4310
|
-
inputRef.value.
|
|
4361
|
+
inputRef.value.refreshMenuHover();
|
|
4311
4362
|
emit('update:modelValue', list.map(function (item) {
|
|
4312
4363
|
return item.toValue();
|
|
4313
4364
|
}));
|
|
@@ -4428,7 +4479,7 @@ var SearchSelectProps = {
|
|
|
4428
4479
|
* Tencent is pleased to support the open source community by making
|
|
4429
4480
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
|
4430
4481
|
*
|
|
4431
|
-
* Copyright (C)
|
|
4482
|
+
* Copyright (C) 2025 Tencent. All rights reserved.
|
|
4432
4483
|
*
|
|
4433
4484
|
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
|
4434
4485
|
*
|