@moubing/bing-ui 0.11.2 → 0.12.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.
- package/README.md +300 -171
- package/dist/_virtual/_plugin-vue_export-helper.js +8 -0
- package/dist/bing-ui.css +1 -1
- package/dist/components/BingAnimatedText/BingAnimatedText.js +7 -0
- package/dist/components/BingAnimatedText/BingAnimatedText.vue_vue_type_script_setup_true_lang.js +194 -0
- package/dist/components/BingAppSwitcherTransition/BingAppSwitcherTransition.js +7 -0
- package/dist/components/BingAppSwitcherTransition/BingAppSwitcherTransition.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/components/BingAutocomplete/BingAutocomplete.js +7 -0
- package/dist/components/BingAutocomplete/BingAutocomplete.vue.d.ts +4 -4
- package/dist/components/BingAutocomplete/BingAutocomplete.vue_vue_type_script_setup_true_lang.js +560 -0
- package/dist/components/BingButton/BingButton.js +7 -0
- package/dist/components/BingButton/BingButton.vue.d.ts +2 -2
- package/dist/components/BingButton/BingButton.vue_vue_type_script_setup_true_lang.js +200 -0
- package/dist/components/BingCard/BingCard.js +7 -0
- package/dist/components/BingCard/BingCard.vue_vue_type_script_setup_true_lang.js +481 -0
- package/dist/components/BingCarouselTransition/BingCarouselTransition.js +7 -0
- package/dist/components/BingCarouselTransition/BingCarouselTransition.vue_vue_type_script_setup_true_lang.js +174 -0
- package/dist/components/BingCheckbox/BingCheckbox.js +7 -0
- package/dist/components/BingCheckbox/BingCheckbox.vue.d.ts +4 -4
- package/dist/components/BingCheckbox/BingCheckbox.vue_vue_type_script_setup_true_lang.js +233 -0
- package/dist/components/BingCheckboxGroup/BingCheckboxGroup.context.js +4 -0
- package/dist/components/BingCheckboxGroup/BingCheckboxGroup.js +7 -0
- package/dist/components/BingCheckboxGroup/BingCheckboxGroup.vue.d.ts +4 -4
- package/dist/components/BingCheckboxGroup/BingCheckboxGroup.vue_vue_type_script_setup_true_lang.js +105 -0
- package/dist/components/BingCodeBlock/BingCodeBlock.highlight.js +78 -0
- package/dist/components/BingCodeBlock/BingCodeBlock.js +7 -0
- package/dist/components/BingCodeBlock/BingCodeBlock.vue_vue_type_script_setup_true_lang.js +347 -0
- package/dist/components/BingColorPicker/BingColorPicker.js +7 -0
- package/dist/components/BingColorPicker/BingColorPicker.utils.d.ts +70 -0
- package/dist/components/BingColorPicker/BingColorPicker.utils.js +265 -0
- package/dist/components/BingColorPicker/BingColorPicker.vue.d.ts +7 -7
- package/dist/components/BingColorPicker/BingColorPicker.vue_vue_type_script_setup_true_lang.js +540 -0
- package/dist/components/BingColorPicker/BingColorPickerFormatEditor.js +7 -0
- package/dist/components/BingColorPicker/BingColorPickerFormatEditor.vue.d.ts +27 -0
- package/dist/components/BingColorPicker/BingColorPickerFormatEditor.vue_vue_type_script_setup_true_lang.js +142 -0
- package/dist/components/BingColorPicker/BingColorPickerSpectrum.js +7 -0
- package/dist/components/BingColorPicker/BingColorPickerSpectrum.vue.d.ts +26 -0
- package/dist/components/BingColorPicker/BingColorPickerSpectrum.vue_vue_type_script_setup_true_lang.js +168 -0
- package/dist/components/BingConfigProvider/BingConfigProvider.js +5 -0
- package/dist/components/BingConfigProvider/BingConfigProvider.types.d.ts +5 -0
- package/dist/components/BingConfigProvider/BingConfigProvider.vue.d.ts +18 -0
- package/dist/components/BingConfigProvider/BingConfigProvider.vue_vue_type_script_setup_true_lang.js +18 -0
- package/dist/components/BingConfigProvider/index.d.ts +3 -0
- package/dist/components/BingCursor/BingCursor.controller.js +240 -0
- package/dist/components/BingCursor/BingCursor.js +7 -0
- package/dist/components/BingCursor/BingCursor.native.js +20 -0
- package/dist/components/BingCursor/BingCursor.presets.js +60 -0
- package/dist/components/BingCursor/BingCursor.shapes.js +83 -0
- package/dist/components/BingCursor/BingCursor.styleSource.js +83 -0
- package/dist/components/BingCursor/BingCursor.vue_vue_type_script_setup_true_lang.js +73 -0
- package/dist/components/BingDatePicker/BingDatePicker.js +7 -0
- package/dist/components/BingDatePicker/BingDatePicker.utils.d.ts +26 -0
- package/dist/components/BingDatePicker/BingDatePicker.utils.js +137 -0
- package/dist/components/BingDatePicker/BingDatePicker.vue.d.ts +14 -14
- package/dist/components/BingDatePicker/BingDatePicker.vue_vue_type_script_setup_true_lang.js +804 -0
- package/dist/components/BingDatePicker/BingDatePickerCalendar.js +7 -0
- package/dist/components/BingDatePicker/BingDatePickerCalendar.vue.d.ts +37 -0
- package/dist/components/BingDatePicker/BingDatePickerCalendar.vue_vue_type_script_setup_true_lang.js +248 -0
- package/dist/components/BingDatePicker/BingDatePickerTimePanel.js +7 -0
- package/dist/components/BingDatePicker/BingDatePickerTimePanel.vue.d.ts +26 -0
- package/dist/components/BingDatePicker/BingDatePickerTimePanel.vue_vue_type_script_setup_true_lang.js +97 -0
- package/dist/components/BingDeckTransition/BingDeckTransition.js +7 -0
- package/dist/components/BingDeckTransition/BingDeckTransition.vue_vue_type_script_setup_true_lang.js +187 -0
- package/dist/components/BingDialog/BingDialog.js +7 -0
- package/dist/components/BingDialog/BingDialog.vue.d.ts +4 -5
- package/dist/components/BingDialog/BingDialog.vue_vue_type_script_setup_true_lang.js +558 -0
- package/dist/components/BingDropDown/BingDropDown.context.js +4 -0
- package/dist/components/BingDropDown/BingDropDown.js +7 -0
- package/dist/components/BingDropDown/BingDropDown.vue.d.ts +1 -2
- package/dist/components/BingDropDown/BingDropDown.vue_vue_type_script_setup_true_lang.js +649 -0
- package/dist/components/BingDropDown/BingDropDownItem.js +7 -0
- package/dist/components/BingDropDown/BingDropDownItem.vue.d.ts +1 -1
- package/dist/components/BingDropDown/BingDropDownItem.vue_vue_type_script_setup_true_lang.js +308 -0
- package/dist/components/BingFilePreview/BingFilePreview.js +7 -0
- package/dist/components/BingFilePreview/BingFilePreview.vue.d.ts +4 -5
- package/dist/components/BingFilePreview/BingFilePreview.vue_vue_type_script_setup_true_lang.js +589 -0
- package/dist/components/BingForm/BingForm.context.js +7 -0
- package/dist/components/BingForm/BingForm.js +7 -0
- package/dist/components/BingForm/BingForm.vue.d.ts +0 -1
- package/dist/components/BingForm/BingForm.vue_vue_type_script_setup_true_lang.js +300 -0
- package/dist/components/BingForm/formFocus.js +13 -0
- package/dist/components/BingForm/formTabOrder.js +27 -0
- package/dist/components/BingForm/useFormControl.d.ts +1 -1
- package/dist/components/BingForm/useFormControl.js +24 -0
- package/dist/components/BingForm/useFormNextHint.js +135 -0
- package/dist/components/BingFormItem/BingFormItem.js +7 -0
- package/dist/components/BingFormItem/BingFormItem.vue.d.ts +1 -1
- package/dist/components/BingFormItem/BingFormItem.vue_vue_type_script_setup_true_lang.js +252 -0
- package/dist/components/BingIcon/BingIcon.js +7 -0
- package/dist/components/BingIcon/BingIcon.vue_vue_type_script_setup_true_lang.js +48 -0
- package/dist/components/BingImage/BingImage.js +7 -0
- package/dist/components/BingImage/BingImage.vue_vue_type_script_setup_true_lang.js +244 -0
- package/dist/components/BingImagePreview/BingImagePreview.js +7 -0
- package/dist/components/BingImagePreview/BingImagePreview.vue.d.ts +4 -5
- package/dist/components/BingImagePreview/BingImagePreview.vue_vue_type_script_setup_true_lang.js +699 -0
- package/dist/components/BingInput/BingInput.js +7 -0
- package/dist/components/BingInput/BingInput.vue.d.ts +6 -6
- package/dist/components/BingInput/BingInput.vue_vue_type_script_setup_true_lang.js +311 -0
- package/dist/components/BingRadio/BingRadio.js +7 -0
- package/dist/components/BingRadio/BingRadio.vue.d.ts +4 -4
- package/dist/components/BingRadio/BingRadio.vue_vue_type_script_setup_true_lang.js +170 -0
- package/dist/components/BingRadioGroup/BingRadioGroup.context.js +4 -0
- package/dist/components/BingRadioGroup/BingRadioGroup.js +7 -0
- package/dist/components/BingRadioGroup/BingRadioGroup.vue.d.ts +4 -4
- package/dist/components/BingRadioGroup/BingRadioGroup.vue_vue_type_script_setup_true_lang.js +125 -0
- package/dist/components/BingResizable/BingResizable.js +7 -0
- package/dist/components/BingResizable/BingResizable.vue.d.ts +1 -1
- package/dist/components/BingResizable/BingResizable.vue_vue_type_script_setup_true_lang.js +555 -0
- package/dist/components/BingScrollbar/BingScrollbar.js +7 -0
- package/dist/components/BingScrollbar/BingScrollbar.vue.d.ts +2 -2
- package/dist/components/BingScrollbar/BingScrollbar.vue_vue_type_script_setup_true_lang.js +398 -0
- package/dist/components/BingSelect/BingSelect.js +7 -0
- package/dist/components/BingSelect/BingSelect.vue.d.ts +7 -7
- package/dist/components/BingSelect/BingSelect.vue_vue_type_script_setup_true_lang.js +1066 -0
- package/dist/components/BingSlider/BingSlider.js +7 -0
- package/dist/components/BingSlider/BingSlider.vue.d.ts +6 -6
- package/dist/components/BingSlider/BingSlider.vue_vue_type_script_setup_true_lang.js +130 -0
- package/dist/components/BingSortableList/BingSortableList.js +7 -0
- package/dist/components/BingSortableList/BingSortableList.vue_vue_type_script_setup_true_lang.js +334 -0
- package/dist/components/BingSortableList/BingSortableListItem.js +7 -0
- package/dist/components/BingSortableList/BingSortableListItem.vue_vue_type_script_setup_true_lang.js +76 -0
- package/dist/components/BingSplitPane/BingSplitPane.js +7 -0
- package/dist/components/BingSplitPane/BingSplitPane.vue_vue_type_script_setup_true_lang.js +167 -0
- package/dist/components/BingTable/BingTable.js +7 -0
- package/dist/components/BingTable/BingTable.measurements.js +72 -0
- package/dist/components/BingTable/BingTable.vue.d.ts +1 -2
- package/dist/components/BingTable/BingTable.vue_vue_type_script_setup_true_lang.js +1416 -0
- package/dist/components/BingTable/BingTableCellValue.js +7 -0
- package/dist/components/BingTable/BingTableCellValue.vue_vue_type_script_setup_true_lang.js +68 -0
- package/dist/components/BingTable/BingTableHeaderCell.js +5 -0
- package/dist/components/BingTable/BingTableHeaderCell.vue_vue_type_script_setup_true_lang.js +45 -0
- package/dist/components/BingTable/BingTableHeaderContent.js +7 -0
- package/dist/components/BingTable/BingTableHeaderContent.vue_vue_type_script_setup_true_lang.js +110 -0
- package/dist/components/BingTable/useTableColumns.js +126 -0
- package/dist/components/BingTableColumnControls/BingTableColumnControls.js +7 -0
- package/dist/components/BingTableColumnControls/BingTableColumnControls.vue.d.ts +1 -1
- package/dist/components/BingTableColumnControls/BingTableColumnControls.vue_vue_type_script_setup_true_lang.js +251 -0
- package/dist/components/BingTabs/BingTabs.js +7 -0
- package/dist/components/BingTabs/BingTabs.vue.d.ts +2 -3
- package/dist/components/BingTabs/BingTabs.vue_vue_type_script_setup_true_lang.js +320 -0
- package/dist/components/BingTag/BingTag.js +7 -0
- package/dist/components/BingTag/BingTag.vue.d.ts +0 -1
- package/dist/components/BingTag/BingTag.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/components/BingTextarea/BingTextarea.js +7 -0
- package/dist/components/BingTextarea/BingTextarea.vue.d.ts +6 -6
- package/dist/components/BingTextarea/BingTextarea.vue_vue_type_script_setup_true_lang.js +243 -0
- package/dist/components/BingToast/BingToast.js +7 -0
- package/dist/components/BingToast/BingToast.service.js +132 -0
- package/dist/components/BingToast/BingToast.types.d.ts +1 -1
- package/dist/components/BingToast/BingToast.types.js +19 -0
- package/dist/components/BingToast/BingToast.vue.d.ts +0 -1
- package/dist/components/BingToast/BingToast.vue_vue_type_script_setup_true_lang.js +307 -0
- package/dist/components/BingTooltip/BingTooltip.js +7 -0
- package/dist/components/BingTooltip/BingTooltip.shared.js +14 -0
- package/dist/components/BingTooltip/BingTooltip.vue.d.ts +4 -5
- package/dist/components/BingTooltip/BingTooltip.vue_vue_type_script_setup_true_lang.js +572 -0
- package/dist/components/BingTreeSelect/BingTreeSelect.js +7 -0
- package/dist/components/BingTreeSelect/BingTreeSelect.vue.d.ts +7 -7
- package/dist/components/BingTreeSelect/BingTreeSelect.vue_vue_type_script_setup_true_lang.js +1274 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/icons/LICENSE-lucide.txt +39 -0
- package/dist/icons/createIcon.d.ts +8 -0
- package/dist/icons/createIcon.js +36 -0
- package/dist/icons/icons.d.ts +51 -0
- package/dist/icons/icons.js +252 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/index.js +48 -0
- package/dist/motion/clickParticles.d.ts +1 -1
- package/dist/motion/clickParticles2.js +66 -0
- package/dist/motion/index.d.ts +1 -1
- package/dist/motion/index.js +17 -0
- package/dist/motion/liquidHover.js +36 -0
- package/dist/motion/optionDetailMotion.d.ts +7 -1
- package/dist/motion/optionDetailMotion.js +74 -0
- package/dist/motion/panelMotion.js +19 -0
- package/dist/motion/reducedMotion.d.ts +16 -0
- package/dist/motion/reducedMotion.js +28 -0
- package/dist/motion/selectPanelMotion.js +115 -0
- package/dist/motion/smoothScroll.d.ts +2 -0
- package/dist/motion/smoothScroll.js +276 -0
- package/dist/motion/useClickFeedback.js +47 -0
- package/dist/motion/useTextControlCaret.js +136 -0
- package/dist/utils/clipboard.d.ts +9 -0
- package/dist/utils/clipboard.js +16 -0
- package/dist/utils/config.d.ts +42 -0
- package/dist/utils/config.js +37 -0
- package/dist/utils/controlAttrs.js +37 -0
- package/dist/utils/floating.d.ts +86 -0
- package/dist/utils/floating.js +99 -0
- package/dist/utils/glass.js +25 -0
- package/dist/utils/overlay.js +94 -0
- package/dist/utils/scrollLock.js +44 -0
- package/dist/utils/search.d.ts +16 -0
- package/dist/utils/search.js +23 -0
- package/dist/utils/useClientReady.js +10 -0
- package/dist/utils/useDeferredBlurValidation.d.ts +18 -0
- package/dist/utils/useDeferredBlurValidation.js +34 -0
- package/dist/utils/useKeyboardScrollSync.d.ts +11 -0
- package/dist/utils/useKeyboardScrollSync.js +28 -0
- package/dist/utils/useOptionDetailPanel.d.ts +50 -0
- package/dist/utils/useOptionDetailPanel.js +180 -0
- package/dist/utils/useOutsidePointerDown.d.ts +8 -0
- package/dist/utils/useOutsidePointerDown.js +17 -0
- package/dist/utils/useSearchShortcutFocus.d.ts +18 -0
- package/dist/utils/useSearchShortcutFocus.js +47 -0
- package/dist/utils/useVirtualList.d.ts +42 -0
- package/dist/utils/useVirtualList.js +74 -0
- package/package.json +15 -9
- package/dist/bing-ui.es.js +0 -31278
- package/dist/bing-ui.umd.js +0 -229
|
@@ -0,0 +1,572 @@
|
|
|
1
|
+
import { useConfigZIndex as e } from "../../utils/config.js";
|
|
2
|
+
import { useReducedMotion as t } from "../../motion/reducedMotion.js";
|
|
3
|
+
import { useClickFeedback as n } from "../../motion/useClickFeedback.js";
|
|
4
|
+
import r from "../BingScrollbar/BingScrollbar.js";
|
|
5
|
+
import { useOverlay as i } from "../../utils/overlay.js";
|
|
6
|
+
import { useClientReady as a } from "../../utils/useClientReady.js";
|
|
7
|
+
import { createGlassCssVariables as ee, defaultGlassEffect as o } from "../../utils/glass.js";
|
|
8
|
+
import { computeFloatingPosition as te, snapToDevicePixel as s, useFloatingAutoUpdate as ne } from "../../utils/floating.js";
|
|
9
|
+
import { createTooltipOwnerId as re, registerTooltipOwner as ie, sharedTooltipActiveOwner as c, sharedTooltipHostId as ae, sharedTooltipPanelElement as l, sharedTooltipShouldRender as u, sharedTooltipSuppressRootClickOwnerId as d, unregisterTooltipOwner as oe } from "./BingTooltip.shared.js";
|
|
10
|
+
import { Teleport as se, computed as f, createBlock as ce, createCommentVNode as le, createElementBlock as ue, createElementVNode as p, createVNode as de, defineComponent as fe, getCurrentInstance as pe, nextTick as me, normalizeClass as he, normalizeStyle as ge, onBeforeUnmount as _e, openBlock as m, ref as h, renderSlot as ve, resolveDynamicComponent as ye, shallowRef as be, unref as xe, useSlots as Se, watch as g, withCtx as Ce, withModifiers as we } from "vue";
|
|
11
|
+
import { gsap as _ } from "gsap";
|
|
12
|
+
//#region src/components/BingTooltip/BingTooltip.vue?vue&type=script&setup=true&lang.ts
|
|
13
|
+
var Te = [
|
|
14
|
+
"aria-describedby",
|
|
15
|
+
"aria-controls",
|
|
16
|
+
"aria-expanded"
|
|
17
|
+
], Ee = { class: "bing-tooltip__anchor" }, De = [
|
|
18
|
+
"id",
|
|
19
|
+
"aria-label",
|
|
20
|
+
"aria-hidden"
|
|
21
|
+
], Oe = { class: "bing-tooltip__body-content" }, ke = /* @__PURE__ */ fe({
|
|
22
|
+
__name: "BingTooltip",
|
|
23
|
+
props: {
|
|
24
|
+
modelValue: { type: Boolean },
|
|
25
|
+
content: { default: void 0 },
|
|
26
|
+
trigger: { default: "hover" },
|
|
27
|
+
placement: { default: "top" },
|
|
28
|
+
align: { default: "center" },
|
|
29
|
+
disabled: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !1
|
|
32
|
+
},
|
|
33
|
+
interactive: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !0
|
|
36
|
+
},
|
|
37
|
+
openDelay: { default: 180 },
|
|
38
|
+
closeDelay: { default: 90 },
|
|
39
|
+
offset: { default: 10 },
|
|
40
|
+
viewportPadding: { default: 12 },
|
|
41
|
+
maxWidth: { default: 280 },
|
|
42
|
+
zIndex: {},
|
|
43
|
+
closeOnOutside: {
|
|
44
|
+
type: Boolean,
|
|
45
|
+
default: !0
|
|
46
|
+
},
|
|
47
|
+
closeOnEsc: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !0
|
|
50
|
+
},
|
|
51
|
+
id: { default: void 0 },
|
|
52
|
+
ariaLabel: { default: void 0 },
|
|
53
|
+
glass: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: o.glass
|
|
56
|
+
},
|
|
57
|
+
glassBlur: { default: void 0 },
|
|
58
|
+
glassOpacity: { default: void 0 },
|
|
59
|
+
glassSaturation: { default: void 0 }
|
|
60
|
+
},
|
|
61
|
+
emits: [
|
|
62
|
+
"update:modelValue",
|
|
63
|
+
"open",
|
|
64
|
+
"close"
|
|
65
|
+
],
|
|
66
|
+
setup(o, { expose: ke, emit: Ae }) {
|
|
67
|
+
let v = t(), { playClickFeedback: je } = n(), y = o, Me = Ae, Ne = e("tooltip", () => y.zIndex), Pe = a(), Fe = Se(), b = pe(), x = re(), Ie = `bing-tooltip-${x}`, S = h(null), C = h(null), w = h(null), T = be(void 0), Le = h(!1), E = h({
|
|
68
|
+
left: 0,
|
|
69
|
+
originX: 0,
|
|
70
|
+
originY: 0,
|
|
71
|
+
placement: y.placement,
|
|
72
|
+
top: 0
|
|
73
|
+
}), D, O, k, A = !1, j = !1, Re = !1, M = "manual", N = f(() => y.id ?? Ie), ze = !!(b?.vnode.props && (Object.prototype.hasOwnProperty.call(b.vnode.props, "modelValue") || Object.prototype.hasOwnProperty.call(b.vnode.props, "model-value"))), P = f(() => !y.disabled && (ze ? !!y.modelValue : Le.value)), F = ne(() => U(c.value), { enabled: () => !!c.value }), Be = i({
|
|
74
|
+
open: () => u.value && c.value?.id === x,
|
|
75
|
+
elements: () => [S.value, l.value],
|
|
76
|
+
zIndex: () => Ne.value,
|
|
77
|
+
closeOnEscape: () => y.closeOnEsc,
|
|
78
|
+
onEscape: () => X("escape")
|
|
79
|
+
}), I = f(() => {
|
|
80
|
+
let e = Array.isArray(y.trigger) ? y.trigger : [y.trigger], t = e.length > 0 ? e : ["manual"];
|
|
81
|
+
return [...new Set(t)];
|
|
82
|
+
}), L = f(() => I.value.includes("hover")), R = f(() => I.value.includes("click")), Ve = f(() => I.value.includes("manual")), He = f(() => Math.max(0, y.openDelay)), Ue = f(() => Math.max(0, y.closeDelay)), We = f(() => Math.max(0, y.offset)), Ge = f(() => Math.max(0, y.viewportPadding)), Ke = f(() => typeof y.maxWidth == "number" ? `${Math.max(1, y.maxWidth)}px` : y.maxWidth), qe = f(() => ee("bing-tooltip", {
|
|
83
|
+
glass: y.glass,
|
|
84
|
+
glassBlur: y.glassBlur,
|
|
85
|
+
glassOpacity: y.glassOpacity,
|
|
86
|
+
glassSaturation: y.glassSaturation
|
|
87
|
+
})), Je = f(() => !!(Fe.content || y.content)), z = f(() => ae.value === x), B = f(() => P.value && c.value?.id === x), V = f(() => c.value ?? T.value), Ye = f(() => V.value?.contentComponent), Xe = f(() => V.value?.getTooltipId() ?? N.value), Ze = f(() => ["bing-tooltip", {
|
|
88
|
+
"is-open": B.value,
|
|
89
|
+
"is-disabled": y.disabled
|
|
90
|
+
}]), Qe = f(() => {
|
|
91
|
+
let e = V.value;
|
|
92
|
+
return [
|
|
93
|
+
"bing-tooltip__content",
|
|
94
|
+
`is-placement-${E.value.placement}`,
|
|
95
|
+
`is-align-${e?.getAlign() ?? y.align}`,
|
|
96
|
+
{
|
|
97
|
+
"is-interactive": e?.getInteractive() ?? y.interactive,
|
|
98
|
+
"has-content": e?.getHasContent() ?? Je.value
|
|
99
|
+
}
|
|
100
|
+
];
|
|
101
|
+
}), $e = f(() => {
|
|
102
|
+
let e = V.value, t = e?.getMaxWidth() ?? Ke.value, n = e?.getViewportPadding() ?? Ge.value;
|
|
103
|
+
return {
|
|
104
|
+
...e?.getGlassStyle() ?? qe.value,
|
|
105
|
+
left: `${E.value.left}px`,
|
|
106
|
+
maxWidth: `min(${t}, calc(100vw - ${n * 2}px))`,
|
|
107
|
+
position: "fixed",
|
|
108
|
+
top: `${E.value.top}px`,
|
|
109
|
+
zIndex: e?.getZIndex() ?? Ne.value,
|
|
110
|
+
"--bing-tooltip-max-width": t,
|
|
111
|
+
"--bing-tooltip-origin-x": `${E.value.originX}px`,
|
|
112
|
+
"--bing-tooltip-origin-y": `${E.value.originY}px`,
|
|
113
|
+
"--bing-tooltip-viewport-padding": `${n}px`
|
|
114
|
+
};
|
|
115
|
+
}), et = fe({
|
|
116
|
+
name: "BingTooltipContentRenderer",
|
|
117
|
+
setup() {
|
|
118
|
+
return () => Fe.content?.() ?? y.content ?? "";
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
function H() {
|
|
122
|
+
return typeof window < "u" && typeof document < "u";
|
|
123
|
+
}
|
|
124
|
+
function tt(e, t, n) {
|
|
125
|
+
return n < t ? t : Math.min(n, Math.max(t, e));
|
|
126
|
+
}
|
|
127
|
+
function nt(e, t) {
|
|
128
|
+
let n = t.getViewportPadding(), r = e.getBoundingClientRect(), i = Math.max(1, window.innerWidth - n * 2), a = Math.max(1, window.innerHeight - n * 2);
|
|
129
|
+
return {
|
|
130
|
+
height: Math.min(Math.max(r.height || e.offsetHeight || 42, 1), a),
|
|
131
|
+
width: Math.min(Math.max(r.width || e.offsetWidth || 220, 1), i)
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
function rt(e) {
|
|
135
|
+
let t = e.getBoundingClientRect();
|
|
136
|
+
return {
|
|
137
|
+
height: t.height || e.offsetHeight || 1,
|
|
138
|
+
left: t.left,
|
|
139
|
+
top: t.top,
|
|
140
|
+
width: t.width || e.offsetWidth || 1
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
function it() {
|
|
144
|
+
let e = C.value;
|
|
145
|
+
e && (Z(), _.killTweensOf(Q([e, w.value])), _.set(e, { clearProps: "transform,width,height,overflow" }), w.value && _.set(w.value, { clearProps: "transform,opacity,visibility" }));
|
|
146
|
+
}
|
|
147
|
+
function at(e, t, n, r) {
|
|
148
|
+
return e === "top" ? {
|
|
149
|
+
originX: n,
|
|
150
|
+
originY: t.height
|
|
151
|
+
} : e === "bottom" ? {
|
|
152
|
+
originX: n,
|
|
153
|
+
originY: 0
|
|
154
|
+
} : e === "left" ? {
|
|
155
|
+
originX: t.width,
|
|
156
|
+
originY: r
|
|
157
|
+
} : {
|
|
158
|
+
originX: 0,
|
|
159
|
+
originY: r
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
function U(e = V.value) {
|
|
163
|
+
if (!H() || !e || !e.rootRef.value || !C.value) return;
|
|
164
|
+
let t = e.getViewportPadding(), n = e.rootRef.value.getBoundingClientRect(), r = nt(C.value, e), i = te({
|
|
165
|
+
anchor: n,
|
|
166
|
+
floating: r,
|
|
167
|
+
side: e.getPlacement(),
|
|
168
|
+
flip: "best",
|
|
169
|
+
align: e.getAlign(),
|
|
170
|
+
gap: e.getOffset(),
|
|
171
|
+
padding: t
|
|
172
|
+
}), a = i.side, ee = s(i.left), o = s(i.top), ne = n.left + n.width / 2, re = n.top + n.height / 2, ie = Math.min(14, r.width / 2), c = Math.min(14, r.height / 2), ae = at(a, r, s(tt(ne - ee, ie, r.width - ie)), s(tt(re - o, c, r.height - c)));
|
|
173
|
+
return E.value = {
|
|
174
|
+
left: ee,
|
|
175
|
+
originX: s(ae.originX),
|
|
176
|
+
originY: s(ae.originY),
|
|
177
|
+
placement: a,
|
|
178
|
+
top: o
|
|
179
|
+
}, r;
|
|
180
|
+
}
|
|
181
|
+
function W(e, t) {
|
|
182
|
+
return typeof Node > "u" || !(t instanceof Node) ? !1 : !!e?.contains(t);
|
|
183
|
+
}
|
|
184
|
+
function ot(e, t = c.value) {
|
|
185
|
+
return !!(W(t?.rootRef.value, e) || W(l.value, e));
|
|
186
|
+
}
|
|
187
|
+
function st(e) {
|
|
188
|
+
if (W(l.value, e.target)) return;
|
|
189
|
+
let t = c.value;
|
|
190
|
+
t && (W(t.rootRef.value, e.target) && (d.value = t.id), t.hide("outside"));
|
|
191
|
+
}
|
|
192
|
+
function ct(e) {
|
|
193
|
+
e.key === "Escape" && !e.defaultPrevented && c.value?.isTopLayer(e) && (e.preventDefault(), c.value?.hide("escape"));
|
|
194
|
+
}
|
|
195
|
+
function lt(e) {
|
|
196
|
+
!H() || A || !e?.getCloseOnOutside() || (window.addEventListener("pointerdown", st, !0), A = !0);
|
|
197
|
+
}
|
|
198
|
+
function G() {
|
|
199
|
+
!H() || !A || (window.removeEventListener("pointerdown", st, !0), A = !1);
|
|
200
|
+
}
|
|
201
|
+
function ut(e) {
|
|
202
|
+
!H() || j || !e?.getCloseOnEsc() || (window.addEventListener("keydown", ct), j = !0);
|
|
203
|
+
}
|
|
204
|
+
function K() {
|
|
205
|
+
!H() || !j || (window.removeEventListener("keydown", ct), j = !1);
|
|
206
|
+
}
|
|
207
|
+
function dt(e = c.value) {
|
|
208
|
+
if (!e) {
|
|
209
|
+
G(), K();
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
e.getCloseOnOutside() ? lt(e) : G(), e.getCloseOnEsc() ? ut(e) : K();
|
|
213
|
+
}
|
|
214
|
+
function q() {
|
|
215
|
+
!H() || O === void 0 || (window.clearTimeout(O), O = void 0);
|
|
216
|
+
}
|
|
217
|
+
function J() {
|
|
218
|
+
!H() || k === void 0 || (window.clearTimeout(k), k = void 0);
|
|
219
|
+
}
|
|
220
|
+
function ft() {
|
|
221
|
+
q(), J();
|
|
222
|
+
}
|
|
223
|
+
function pt() {
|
|
224
|
+
y.disabled || (c.value = $);
|
|
225
|
+
}
|
|
226
|
+
function mt() {
|
|
227
|
+
c.value?.id === x && (c.value = void 0);
|
|
228
|
+
}
|
|
229
|
+
function ht(e, t) {
|
|
230
|
+
e && y.disabled || P.value !== e && (M = t, ze || (Le.value = e), Me("update:modelValue", e));
|
|
231
|
+
}
|
|
232
|
+
function Y(e = "manual") {
|
|
233
|
+
if (J(), P.value) {
|
|
234
|
+
M = e, pt();
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
ht(!0, e);
|
|
238
|
+
}
|
|
239
|
+
function X(e = "manual") {
|
|
240
|
+
if (q(), !P.value) {
|
|
241
|
+
mt();
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
ht(!1, e);
|
|
245
|
+
}
|
|
246
|
+
function gt(e = "manual") {
|
|
247
|
+
if (B.value) {
|
|
248
|
+
X(e);
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
Y(e);
|
|
252
|
+
}
|
|
253
|
+
function _t(e) {
|
|
254
|
+
if (!y.disabled) {
|
|
255
|
+
if (J(), He.value === 0 || c.value) {
|
|
256
|
+
Y(e);
|
|
257
|
+
return;
|
|
258
|
+
}
|
|
259
|
+
q(), O = window.setTimeout(() => {
|
|
260
|
+
O = void 0, Y(e);
|
|
261
|
+
}, He.value);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
function vt(e) {
|
|
265
|
+
if (q(), Ue.value === 0) {
|
|
266
|
+
X(e);
|
|
267
|
+
return;
|
|
268
|
+
}
|
|
269
|
+
J(), k = window.setTimeout(() => {
|
|
270
|
+
k = void 0, X(e);
|
|
271
|
+
}, Ue.value);
|
|
272
|
+
}
|
|
273
|
+
function Z() {
|
|
274
|
+
D?.kill(), D = void 0;
|
|
275
|
+
}
|
|
276
|
+
function Q(e) {
|
|
277
|
+
return e.filter((e) => e !== null);
|
|
278
|
+
}
|
|
279
|
+
function yt(e, t) {
|
|
280
|
+
return e === "top" ? {
|
|
281
|
+
x: 0,
|
|
282
|
+
y: t
|
|
283
|
+
} : e === "bottom" ? {
|
|
284
|
+
x: 0,
|
|
285
|
+
y: -t
|
|
286
|
+
} : e === "left" ? {
|
|
287
|
+
x: t,
|
|
288
|
+
y: 0
|
|
289
|
+
} : {
|
|
290
|
+
x: -t,
|
|
291
|
+
y: 0
|
|
292
|
+
};
|
|
293
|
+
}
|
|
294
|
+
function bt(e) {
|
|
295
|
+
let t = C.value;
|
|
296
|
+
if (!t) return;
|
|
297
|
+
let n = w.value, r = Q([t, n]), i = yt(E.value.placement, 7);
|
|
298
|
+
if (Z(), _.killTweensOf(r), v()) {
|
|
299
|
+
_.set(r, {
|
|
300
|
+
autoAlpha: 1,
|
|
301
|
+
clearProps: "transform",
|
|
302
|
+
scale: 1,
|
|
303
|
+
x: 0,
|
|
304
|
+
y: 0
|
|
305
|
+
});
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
D = _.timeline({
|
|
309
|
+
defaults: {
|
|
310
|
+
duration: .2,
|
|
311
|
+
ease: "power3.out",
|
|
312
|
+
overwrite: !0
|
|
313
|
+
},
|
|
314
|
+
onComplete: () => {
|
|
315
|
+
D = void 0, _.set(t, { willChange: "auto" });
|
|
316
|
+
}
|
|
317
|
+
}), D.fromTo(t, {
|
|
318
|
+
autoAlpha: 0,
|
|
319
|
+
scale: .96,
|
|
320
|
+
transformOrigin: `${E.value.originX}px ${E.value.originY}px`,
|
|
321
|
+
x: i.x,
|
|
322
|
+
y: i.y,
|
|
323
|
+
willChange: "opacity, transform"
|
|
324
|
+
}, {
|
|
325
|
+
autoAlpha: 1,
|
|
326
|
+
scale: 1,
|
|
327
|
+
x: 0,
|
|
328
|
+
y: 0,
|
|
329
|
+
duration: .22
|
|
330
|
+
}, 0).fromTo(n, {
|
|
331
|
+
autoAlpha: .68,
|
|
332
|
+
y: e.getPlacement() === "top" ? -2 : 2
|
|
333
|
+
}, {
|
|
334
|
+
autoAlpha: 1,
|
|
335
|
+
y: 0,
|
|
336
|
+
duration: .18
|
|
337
|
+
}, .04);
|
|
338
|
+
}
|
|
339
|
+
function xt(e) {
|
|
340
|
+
let t = C.value;
|
|
341
|
+
if (!t) return;
|
|
342
|
+
let n = w.value, r = Q([t, n]), i = s(e.left - E.value.left), a = s(e.top - E.value.top);
|
|
343
|
+
if (Z(), _.killTweensOf(r), v()) {
|
|
344
|
+
_.set(r, {
|
|
345
|
+
autoAlpha: 1,
|
|
346
|
+
clearProps: "transform,width,height,overflow",
|
|
347
|
+
scale: 1,
|
|
348
|
+
x: 0,
|
|
349
|
+
y: 0
|
|
350
|
+
});
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
_.set(t, {
|
|
354
|
+
autoAlpha: 1,
|
|
355
|
+
scale: .985,
|
|
356
|
+
transformOrigin: `${E.value.originX}px ${E.value.originY}px`,
|
|
357
|
+
x: i,
|
|
358
|
+
y: a,
|
|
359
|
+
willChange: "opacity, transform"
|
|
360
|
+
}), n && _.set(n, {
|
|
361
|
+
autoAlpha: .72,
|
|
362
|
+
y: 2
|
|
363
|
+
}), D = _.timeline({
|
|
364
|
+
defaults: {
|
|
365
|
+
duration: .28,
|
|
366
|
+
ease: "power3.out",
|
|
367
|
+
overwrite: !0
|
|
368
|
+
},
|
|
369
|
+
onComplete: () => {
|
|
370
|
+
D = void 0, _.set(t, {
|
|
371
|
+
clearProps: "transform,width,height,overflow",
|
|
372
|
+
willChange: "auto"
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
}), D.to(t, {
|
|
376
|
+
autoAlpha: 1,
|
|
377
|
+
scale: 1,
|
|
378
|
+
x: 0,
|
|
379
|
+
y: 0,
|
|
380
|
+
duration: .22
|
|
381
|
+
}, 0), n && D.to(n, {
|
|
382
|
+
autoAlpha: 1,
|
|
383
|
+
y: 0,
|
|
384
|
+
duration: .18
|
|
385
|
+
}, .04);
|
|
386
|
+
}
|
|
387
|
+
function St() {
|
|
388
|
+
u.value = !1, T.value = void 0;
|
|
389
|
+
}
|
|
390
|
+
function Ct() {
|
|
391
|
+
let e = C.value;
|
|
392
|
+
if (!e) {
|
|
393
|
+
St();
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
let t = w.value, n = Q([e, t]), r = yt(E.value.placement, 5);
|
|
397
|
+
if (Z(), _.killTweensOf(n), v()) {
|
|
398
|
+
St();
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
D = _.timeline({
|
|
402
|
+
defaults: {
|
|
403
|
+
duration: .14,
|
|
404
|
+
ease: "power2.in",
|
|
405
|
+
overwrite: !0
|
|
406
|
+
},
|
|
407
|
+
onComplete: () => {
|
|
408
|
+
D = void 0, St();
|
|
409
|
+
}
|
|
410
|
+
}), D.to(e, {
|
|
411
|
+
autoAlpha: 0,
|
|
412
|
+
scale: .97,
|
|
413
|
+
x: r.x,
|
|
414
|
+
y: r.y
|
|
415
|
+
}, 0);
|
|
416
|
+
}
|
|
417
|
+
async function wt(e) {
|
|
418
|
+
if (e) {
|
|
419
|
+
let t = u.value && C.value ? rt(C.value) : void 0;
|
|
420
|
+
if (t && it(), T.value = e, u.value = !0, F.start(), dt(e), await me(), c.value?.id !== e.id) return;
|
|
421
|
+
let n = U(e);
|
|
422
|
+
t && n ? xt(t) : bt(e);
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
F.stop(), G(), K(), F.cancel(), Ct();
|
|
426
|
+
}
|
|
427
|
+
function Tt() {
|
|
428
|
+
L.value && _t("hover");
|
|
429
|
+
}
|
|
430
|
+
function Et() {
|
|
431
|
+
L.value && vt("hover");
|
|
432
|
+
}
|
|
433
|
+
function Dt() {
|
|
434
|
+
L.value && _t("focus");
|
|
435
|
+
}
|
|
436
|
+
function Ot(e) {
|
|
437
|
+
!L.value || ot(e.relatedTarget, $) || vt("focus");
|
|
438
|
+
}
|
|
439
|
+
function kt(e) {
|
|
440
|
+
let t = d.value === x;
|
|
441
|
+
d.value &&= void 0, !t && R.value && !y.disabled && !e.defaultPrevented && (je(e), gt("click"));
|
|
442
|
+
}
|
|
443
|
+
function At() {
|
|
444
|
+
let e = c.value;
|
|
445
|
+
e?.getInteractive() && e.getHasHoverTrigger() && e.clearCloseTimer();
|
|
446
|
+
}
|
|
447
|
+
function jt() {
|
|
448
|
+
let e = c.value;
|
|
449
|
+
e?.getInteractive() && e.getHasHoverTrigger() && e.scheduleClose("hover");
|
|
450
|
+
}
|
|
451
|
+
function Mt() {
|
|
452
|
+
let e = c.value;
|
|
453
|
+
e?.getInteractive() && e.getHasHoverTrigger() && e.clearCloseTimer();
|
|
454
|
+
}
|
|
455
|
+
function Nt(e) {
|
|
456
|
+
let t = c.value;
|
|
457
|
+
!t?.getInteractive() || !t.getHasHoverTrigger() || ot(e.relatedTarget, t) || t.scheduleClose("focus");
|
|
458
|
+
}
|
|
459
|
+
let $ = {
|
|
460
|
+
id: x,
|
|
461
|
+
rootRef: S,
|
|
462
|
+
contentComponent: et,
|
|
463
|
+
clearCloseTimer: J,
|
|
464
|
+
getAlign: () => y.align,
|
|
465
|
+
getAriaLabel: () => y.ariaLabel,
|
|
466
|
+
getCloseOnEsc: () => y.closeOnEsc,
|
|
467
|
+
getCloseOnOutside: () => y.closeOnOutside,
|
|
468
|
+
getHasContent: () => Je.value,
|
|
469
|
+
getHasHoverTrigger: () => L.value,
|
|
470
|
+
getInteractive: () => y.interactive,
|
|
471
|
+
getGlassStyle: () => qe.value,
|
|
472
|
+
getMaxWidth: () => Ke.value,
|
|
473
|
+
getOffset: () => We.value,
|
|
474
|
+
getPlacement: () => y.placement,
|
|
475
|
+
getTooltipId: () => N.value,
|
|
476
|
+
getViewportPadding: () => Ge.value,
|
|
477
|
+
getZIndex: () => Be.zIndex.value,
|
|
478
|
+
isTopLayer: (e) => Be.isTop(e),
|
|
479
|
+
hide: X,
|
|
480
|
+
scheduleClose: vt
|
|
481
|
+
};
|
|
482
|
+
return ie($), g(P, (e) => {
|
|
483
|
+
let t = M;
|
|
484
|
+
e ? pt() : mt(), Re && Me(e ? "open" : "close", t), M = "manual", Re = !0;
|
|
485
|
+
}, { immediate: !0 }), g(c, (e) => {
|
|
486
|
+
z.value && wt(e);
|
|
487
|
+
}), g(C, (e) => {
|
|
488
|
+
z.value && (l.value = e);
|
|
489
|
+
}), g(z, (e) => {
|
|
490
|
+
if (e) {
|
|
491
|
+
l.value = C.value, c.value && wt(c.value);
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
l.value === C.value && (l.value = null);
|
|
495
|
+
}, { immediate: !0 }), g(() => y.disabled, (e) => {
|
|
496
|
+
e && X("disabled");
|
|
497
|
+
}), g(() => [
|
|
498
|
+
y.align,
|
|
499
|
+
y.closeOnEsc,
|
|
500
|
+
y.closeOnOutside,
|
|
501
|
+
y.maxWidth,
|
|
502
|
+
y.offset,
|
|
503
|
+
y.placement,
|
|
504
|
+
y.viewportPadding
|
|
505
|
+
], () => {
|
|
506
|
+
B.value && (dt($), me(() => {
|
|
507
|
+
F.schedule();
|
|
508
|
+
}));
|
|
509
|
+
}), ke({
|
|
510
|
+
hide: X,
|
|
511
|
+
show: Y,
|
|
512
|
+
toggle: gt,
|
|
513
|
+
updatePosition: () => {
|
|
514
|
+
B.value && U($);
|
|
515
|
+
}
|
|
516
|
+
}), _e(() => {
|
|
517
|
+
ft(), z.value && (F.dispose(), G(), K(), Z(), _.killTweensOf(Q([C.value, w.value]))), l.value === C.value && (l.value = null), oe($);
|
|
518
|
+
}), (e, t) => (m(), ue("span", {
|
|
519
|
+
ref_key: "rootRef",
|
|
520
|
+
ref: S,
|
|
521
|
+
class: he(Ze.value),
|
|
522
|
+
"aria-describedby": B.value ? N.value : void 0,
|
|
523
|
+
"aria-controls": R.value || Ve.value ? N.value : void 0,
|
|
524
|
+
"aria-expanded": R.value || Ve.value ? B.value : void 0,
|
|
525
|
+
onPointerenter: Tt,
|
|
526
|
+
onPointerleave: Et,
|
|
527
|
+
onFocusin: Dt,
|
|
528
|
+
onFocusout: Ot,
|
|
529
|
+
onClick: kt
|
|
530
|
+
}, [p("span", Ee, [ve(e.$slots, "default", {
|
|
531
|
+
open: B.value,
|
|
532
|
+
show: Y,
|
|
533
|
+
hide: X,
|
|
534
|
+
toggle: gt
|
|
535
|
+
}, void 0, !0)]), xe(Pe) && z.value ? (m(), ce(se, {
|
|
536
|
+
key: 0,
|
|
537
|
+
to: "body"
|
|
538
|
+
}, [xe(u) && V.value ? (m(), ue("div", {
|
|
539
|
+
key: 0,
|
|
540
|
+
id: Xe.value,
|
|
541
|
+
ref_key: "panelRef",
|
|
542
|
+
ref: C,
|
|
543
|
+
class: he(Qe.value),
|
|
544
|
+
style: ge($e.value),
|
|
545
|
+
role: "tooltip",
|
|
546
|
+
"aria-label": V.value.getAriaLabel(),
|
|
547
|
+
"aria-hidden": !xe(c),
|
|
548
|
+
onPointerenter: At,
|
|
549
|
+
onPointerleave: jt,
|
|
550
|
+
onFocusin: Mt,
|
|
551
|
+
onFocusout: Nt,
|
|
552
|
+
onPointerdown: t[0] ||= we(() => {}, ["stop"]),
|
|
553
|
+
onClick: t[1] ||= we(() => {}, ["stop"])
|
|
554
|
+
}, [t[2] ||= p("span", {
|
|
555
|
+
class: "bing-tooltip__arrow",
|
|
556
|
+
"aria-hidden": "true"
|
|
557
|
+
}, null, -1), p("div", {
|
|
558
|
+
ref_key: "bodyRef",
|
|
559
|
+
ref: w,
|
|
560
|
+
class: "bing-tooltip__body"
|
|
561
|
+
}, [de(r, {
|
|
562
|
+
class: "bing-tooltip__scroll",
|
|
563
|
+
focusable: !1,
|
|
564
|
+
horizontal: ""
|
|
565
|
+
}, {
|
|
566
|
+
default: Ce(() => [p("div", Oe, [(m(), ce(ye(Ye.value), { key: V.value.id }))])]),
|
|
567
|
+
_: 1
|
|
568
|
+
})], 512)], 46, De)) : le("", !0)])) : le("", !0)], 42, Te));
|
|
569
|
+
}
|
|
570
|
+
});
|
|
571
|
+
//#endregion
|
|
572
|
+
export { ke as default };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import e from "../../_virtual/_plugin-vue_export-helper.js";
|
|
2
|
+
import t from "./BingTreeSelect.vue_vue_type_script_setup_true_lang.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/BingTreeSelect/BingTreeSelect.vue
|
|
5
|
+
var n = /* @__PURE__ */ e(t, [["__scopeId", "data-v-a828f02d"]]);
|
|
6
|
+
//#endregion
|
|
7
|
+
export { n as default };
|
|
@@ -23,22 +23,23 @@ type __VLS_Slots = {} & {
|
|
|
23
23
|
'node-detail'?: (props: typeof __VLS_137) => any;
|
|
24
24
|
};
|
|
25
25
|
declare const __VLS_base: import('vue').DefineComponent<BingTreeSelectProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
26
|
-
clear: () => any;
|
|
27
|
-
change: (payload: BingTreeSelectChangePayload) => any;
|
|
28
26
|
close: () => any;
|
|
29
|
-
"update:modelValue": (value: BingTreeSelectModelValue) => any;
|
|
30
27
|
open: () => any;
|
|
28
|
+
change: (payload: BingTreeSelectChangePayload) => any;
|
|
29
|
+
clear: () => any;
|
|
30
|
+
"update:modelValue": (value: BingTreeSelectModelValue) => any;
|
|
31
31
|
collapse: (payload: import('./BingTreeSelect.types').BingTreeSelectExpandPayload) => any;
|
|
32
32
|
expand: (payload: import('./BingTreeSelect.types').BingTreeSelectExpandPayload) => any;
|
|
33
33
|
}, string, import('vue').PublicProps, Readonly<BingTreeSelectProps> & Readonly<{
|
|
34
|
-
onClear?: (() => any) | undefined;
|
|
35
|
-
onChange?: ((payload: BingTreeSelectChangePayload) => any) | undefined;
|
|
36
34
|
onClose?: (() => any) | undefined;
|
|
37
|
-
"onUpdate:modelValue"?: ((value: BingTreeSelectModelValue) => any) | undefined;
|
|
38
35
|
onOpen?: (() => any) | undefined;
|
|
36
|
+
onChange?: ((payload: BingTreeSelectChangePayload) => any) | undefined;
|
|
37
|
+
onClear?: (() => any) | undefined;
|
|
38
|
+
"onUpdate:modelValue"?: ((value: BingTreeSelectModelValue) => any) | undefined;
|
|
39
39
|
onCollapse?: ((payload: import('./BingTreeSelect.types').BingTreeSelectExpandPayload) => any) | undefined;
|
|
40
40
|
onExpand?: ((payload: import('./BingTreeSelect.types').BingTreeSelectExpandPayload) => any) | undefined;
|
|
41
41
|
}>, {
|
|
42
|
+
status: "default" | "error" | "success" | "warning";
|
|
42
43
|
disabled: boolean;
|
|
43
44
|
id: string;
|
|
44
45
|
size: import('./BingTreeSelect.types').BingTreeSelectSize;
|
|
@@ -48,7 +49,6 @@ declare const __VLS_base: import('vue').DefineComponent<BingTreeSelectProps, {},
|
|
|
48
49
|
placeholder: string;
|
|
49
50
|
clearable: boolean;
|
|
50
51
|
ariaDescribedby: string;
|
|
51
|
-
status: "default" | "error" | "success" | "warning";
|
|
52
52
|
glass: boolean;
|
|
53
53
|
glassBlur: string | number;
|
|
54
54
|
glassOpacity: number;
|