bitboss-ui 3.0.0-beta.21 → 3.0.0-beta.22
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 +55 -3
- package/bin/bitboss-ui-mcp.mjs +419 -9
- package/bin/bitboss-ui.mjs +293 -22
- package/dist/ai/BbAccordion.md +21 -23
- package/dist/ai/BbAlert.md +6 -12
- package/dist/ai/BbAvatar.md +60 -24
- package/dist/ai/BbBadge.md +12 -20
- package/dist/ai/BbBaseButton.md +14 -16
- package/dist/ai/BbBaseCheckboxIcon.md +6 -10
- package/dist/ai/BbBaseRadioIcon.md +6 -10
- package/dist/ai/BbBaseSwitchIcon.md +5 -9
- package/dist/ai/BbBreadcrumbs.md +23 -34
- package/dist/ai/BbButton.md +35 -47
- package/dist/ai/BbCheckbox.md +21 -37
- package/dist/ai/BbCheckboxGroup.md +13 -13
- package/dist/ai/BbCollapsible.md +14 -26
- package/dist/ai/BbColorInput.md +13 -23
- package/dist/ai/BbColorPalette.md +23 -35
- package/dist/ai/BbConfirm.md +17 -32
- package/dist/ai/BbDatePickerInput.md +15 -21
- package/dist/ai/BbDialog.md +159 -62
- package/dist/ai/BbDropdown.md +21 -25
- package/dist/ai/BbDropdownButton.md +13 -30
- package/dist/ai/BbDropzone.md +9 -11
- package/dist/ai/BbIcon.md +44 -33
- package/dist/ai/BbIndicator.md +2 -2
- package/dist/ai/BbNumberInput.md +18 -20
- package/dist/ai/BbOffCanvas.md +42 -42
- package/dist/ai/BbPagination.md +21 -23
- package/dist/ai/BbPopover.md +15 -17
- package/dist/ai/BbProgress.md +40 -51
- package/dist/ai/BbRadio.md +9 -9
- package/dist/ai/BbRadioGroup.md +7 -11
- package/dist/ai/BbRating.md +8 -12
- package/dist/ai/BbSelect.md +32 -36
- package/dist/ai/BbSelectPopover.md +19 -31
- package/dist/ai/BbSlider.md +15 -19
- package/dist/ai/BbSmoothHeight.md +16 -31
- package/dist/ai/BbSpinner.md +118 -74
- package/dist/ai/BbSwitch.md +25 -18
- package/dist/ai/BbSwitchGroup.md +9 -14
- package/dist/ai/BbTable.md +102 -55
- package/dist/ai/BbTabs.md +59 -82
- package/dist/ai/BbTag.md +12 -23
- package/dist/ai/BbTextInput.md +20 -26
- package/dist/ai/BbTextarea.md +28 -34
- package/dist/ai/BbToast.md +14 -34
- package/dist/ai/BbTooltip.md +22 -20
- package/dist/ai/BbTree.md +46 -72
- package/dist/ai/changelog.json +169 -62
- package/dist/ai/components.json +1467 -9
- package/dist/ai/composables/useConfirm.md +5 -2
- package/dist/ai/composables/useToast.md +4 -2
- package/dist/ai/guides/agent-contract.md +7 -4
- package/dist/ai/guides/ai-router.md +37 -22
- package/dist/ai/guides/component-picker.md +23 -18
- package/dist/ai/guides/design-language.md +141 -13
- package/dist/ai/guides/design-tokens.md +29 -4
- package/dist/ai/guides/icons-policy.md +46 -21
- package/dist/ai/guides/installation-and-plugin-setup.md +253 -17
- package/dist/ai/guides/migration/components/bb-rating.md +26 -1
- package/dist/ai/guides/migration/components/bb-tooltip.md +18 -0
- package/dist/ai/guides/migration/v2-to-v3.md +50 -23
- package/dist/ai/index.md +1 -1
- package/dist/ai/recipes/inertia/approvals-inbox.md +3 -3
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +2 -2
- package/dist/ai/recipes/inertia/onboarding.md +2 -2
- package/dist/ai/recipes/inertia/ownership-atlas.md +6 -6
- package/dist/ai/recipes/inertia/record-form.md +5 -5
- package/dist/ai/recipes/inertia/records-workspace.md +4 -4
- package/dist/ai/recipes/inertia/upload-center.md +6 -6
- package/dist/ai/recipes/inertia/wizard-form.md +5 -5
- package/dist/ai/recipes/nuxt/approvals-inbox.md +3 -3
- package/dist/ai/recipes/nuxt/inline-edit-workspace.md +2 -2
- package/dist/ai/recipes/nuxt/onboarding.md +2 -2
- package/dist/ai/recipes/nuxt/record-form.md +5 -5
- package/dist/ai/recipes/nuxt/records-workspace.md +4 -4
- package/dist/ai/recipes/nuxt/upload-center.md +6 -6
- package/dist/ai/recipes/nuxt/wizard-form.md +5 -5
- package/dist/ai/recipes/vue/approvals-inbox.md +3 -3
- package/dist/ai/recipes/vue/inline-edit-workspace.md +2 -2
- package/dist/ai/recipes/vue/onboarding.md +2 -2
- package/dist/ai/recipes/vue/record-form.md +10 -10
- package/dist/ai/recipes/vue/records-workspace.md +4 -4
- package/dist/ai/recipes/vue/upload-center.md +6 -6
- package/dist/ai/recipes/vue/wizard-form.md +5 -5
- package/dist/ai/source/BbBadge.md +1 -1
- package/dist/ai/source/BbBaseCheckbox.md +1 -1
- package/dist/ai/source/BbBaseDatePicker.md +5 -5
- package/dist/ai/source/BbBaseDatePickerInput.md +2 -2
- package/dist/ai/source/BbBaseRadio.md +1 -1
- package/dist/ai/source/BbBaseRating.md +5 -5
- package/dist/ai/source/BbBaseSelect.md +1 -1
- package/dist/ai/source/BbBaseSlider.md +5 -5
- package/dist/ai/source/BbBaseSwitch.md +1 -1
- package/dist/ai/source/BbBaseTimePickerInput.md +1 -1
- package/dist/ai/source/BbBreadcrumbs.md +20 -1
- package/dist/ai/source/BbButton.md +2 -2
- package/dist/ai/source/BbDialog.md +39 -8
- package/dist/ai/source/BbDropdown.md +1 -1
- package/dist/ai/source/BbDropzone.md +5 -5
- package/dist/ai/source/BbIcon.md +23 -10
- package/dist/ai/source/BbOffCanvas.md +50 -28
- package/dist/ai/source/BbPagination.md +2 -2
- package/dist/ai/source/BbPopover.md +12 -1
- package/dist/ai/source/BbSelectPopover.md +45 -7
- package/dist/ai/source/BbSpinner.md +2 -2
- package/dist/ai/source/BbTable.md +11 -11
- package/dist/ai/source/BbTooltip.md +57 -10
- package/dist/ai/source/ChipsBox.md +1 -1
- package/dist/ai/source/CommaBox.md +1 -1
- package/dist/ai/source/GuidesComponent.md +14 -7
- package/dist/ai/source/OptionsContainer.md +1 -1
- package/dist/components/BbBadge/BadgeBodyContent.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBadge/BbBadge.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBaseCheckbox/BbBaseCheckbox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBaseDatePicker/BbBaseDatePicker.vue_vue_type_script_setup_true_lang.js +4 -4
- package/dist/components/BbBaseDatePicker/BbBaseDatePickerInputDaySelector.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBaseDatePickerInput/BbBaseDatePickerInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBaseInputContainer/BbBaseInputContainer.vue.d.ts +1 -1
- package/dist/components/BbBaseRadio/BbBaseRadio.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBaseRating/BbBaseRating.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbBaseSelect/BbBaseSelect.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBaseSlider/BbBaseSlider.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/BbBaseSwitch/BbBaseSwitch.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBaseTimePickerInput/BbBaseTimePickerInput.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue_vue_type_script_setup_true_lang.js +71 -71
- package/dist/components/BbButton/BbButton.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbDialog/BbDialog.vue_vue_type_script_setup_true_lang.js +102 -97
- package/dist/components/BbDropdown/AdaptiveDropdown.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbDropdown/BbDropdown.vue_vue_type_script_setup_true_lang.js +58 -58
- package/dist/components/BbDropzone/BbDropzone.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbIcon/BbIcon.vue_vue_type_script_setup_true_lang.js +33 -35
- package/dist/components/BbIcon/iconCache.d.ts +30 -0
- package/dist/components/BbIcon/iconCache.js +21 -3
- package/dist/components/BbOffCanvas/BbOffCanvas.vue_vue_type_script_setup_true_lang.js +57 -56
- package/dist/components/BbPagination/BbPagination.vue_vue_type_script_setup_true_lang.js +2 -2
- package/dist/components/BbPopover/BbPopover.vue_vue_type_script_setup_true_lang.js +138 -138
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +43 -43
- package/dist/components/BbSpinner/BbSpinner.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/BbSpinner/types.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue_vue_type_script_setup_true_lang.js +8 -8
- package/dist/components/BbTable/BbTableDataRow.js +2 -2
- package/dist/components/BbToast/BbToastRegion.vue_vue_type_script_setup_true_lang.js +62 -62
- package/dist/components/BbTooltip/BbTooltip.vue_vue_type_script_setup_true_lang.js +81 -78
- package/dist/components/BbTooltip/types.d.ts +8 -1
- package/dist/components/ChipsBox/ChipsBox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/CommaBox/CommaBox.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/components/OptionsContainer/OptionsContainer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/composables/useConfirm.d.ts +22 -0
- package/dist/composables/useConfirm.js +43 -40
- package/dist/composables/useSafeAreaInternal.js +1 -1
- package/dist/composables/useToast.d.ts +16 -0
- package/dist/composables/useToast.js +20 -16
- package/dist/composables/useViewportWidth.d.ts +20 -6
- package/dist/composables/useViewportWidth.js +8 -7
- package/dist/icon-scan.d.ts +276 -0
- package/dist/icon-scan.js +485 -0
- package/dist/icons-whitelist.d.ts +5 -4
- package/dist/llms-full.txt +1979 -1527
- package/dist/llms-medium.txt +461 -74
- package/dist/llms.txt +1 -1
- package/dist/nuxt.js +10 -7
- package/dist/plugin.js +1 -0
- package/dist/runtime/nuxt-plugin.js +2 -1
- package/dist/styles.css +1 -1
- package/dist/types/Config.d.ts +18 -0
- package/dist/utils/cssLayers.d.ts +91 -0
- package/dist/utils/cssLayers.js +43 -0
- package/dist/utils/injectLibraryStyles.d.ts +3 -1
- package/dist/utils/injectLibraryStyles.js +24 -23
- package/dist/vite-plugin.d.ts +74 -11
- package/dist/vite.js +292 -253
- package/llms.txt +1 -1
- package/package.json +7 -5
- package/scripts/lib/ensure-manifest.mjs +28 -5
- package/scripts/lib/eslint-plugin.d.ts +35 -0
- package/scripts/lib/eslint-plugin.mjs +299 -3
- package/scripts/lib/hand-roll-hints.mjs +50 -6
- package/scripts/lib/html-attributes.mjs +42 -0
- package/scripts/lib/mcp-config.mjs +38 -34
- package/scripts/lib/public-type-exports.mjs +246 -0
- package/scripts/lib/validate-bb-markup.mjs +205 -12
|
@@ -6,24 +6,24 @@ import { warnRemovedAttrs as i } from "../../utilities/functions/warnRemovedAttr
|
|
|
6
6
|
import { extractDomContainer as a } from "../../utilities/functions/extractDomContainer.js";
|
|
7
7
|
import { transitions as o } from "../../utilities/misc/transitions.js";
|
|
8
8
|
import ee from "../CommonPopover/CommonPopover.vue.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { Fragment as
|
|
15
|
-
import { useElementSize as
|
|
9
|
+
import { isTopEscapeEntry as te, pushEscapeEntry as ne, removeEscapeEntry as re } from "../../utils/overlayEscapeStack.js";
|
|
10
|
+
import { useMobile as ie } from "../../composables/useMobile.js";
|
|
11
|
+
import { useClosingInert as ae } from "../../composables/useClosingInert.js";
|
|
12
|
+
import oe from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
13
|
+
import { parseWidthString as s } from "../../utilities/functions/parseWidthString.js";
|
|
14
|
+
import { Fragment as se, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as ce, createSlots as le, defineComponent as f, mergeModels as p, mergeProps as m, nextTick as ue, normalizeClass as de, normalizeProps as fe, normalizeStyle as pe, onBeforeUnmount as me, onMounted as he, openBlock as h, ref as g, renderSlot as _, unref as v, useModel as ge, useTemplateRef as _e, watch as y, withCtx as b } from "vue";
|
|
15
|
+
import { useElementSize as ve, useIntersectionObserver as ye } from "@vueuse/core";
|
|
16
16
|
//#region src/components/BbPopover/BbPopover.vue?vue&type=script&setup=true&lang.ts
|
|
17
|
-
var
|
|
17
|
+
var be = ["inert"], xe = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "bb-popover__header"
|
|
20
|
-
},
|
|
20
|
+
}, Se = { class: "bb-popover__content scrollbar-border" }, Ce = {
|
|
21
21
|
key: 1,
|
|
22
22
|
class: "bb-popover__footer"
|
|
23
|
-
},
|
|
23
|
+
}, we = 500, Te = 10, x = /*@__PURE__*/ f({
|
|
24
24
|
inheritAttrs: !1,
|
|
25
25
|
__name: "BbPopover",
|
|
26
|
-
props: /*@__PURE__*/
|
|
26
|
+
props: /*@__PURE__*/ p({
|
|
27
27
|
activator: {},
|
|
28
28
|
adaptive: {
|
|
29
29
|
type: Boolean,
|
|
@@ -52,39 +52,39 @@ var xe = ["inert"], Se = {
|
|
|
52
52
|
},
|
|
53
53
|
modelModifiers: {}
|
|
54
54
|
}),
|
|
55
|
-
emits: /*@__PURE__*/
|
|
55
|
+
emits: /*@__PURE__*/ p([
|
|
56
56
|
"show",
|
|
57
57
|
"hide",
|
|
58
58
|
"shown",
|
|
59
59
|
"hidden"
|
|
60
60
|
], ["update:modelValue"]),
|
|
61
|
-
setup(o, { emit:
|
|
62
|
-
let
|
|
61
|
+
setup(o, { emit: f }) {
|
|
62
|
+
let p = ge(o, "modelValue"), x = o, S = f, Ee = e();
|
|
63
63
|
process.env.NODE_ENV !== "production" && i("BbPopover", r("BbPopover"));
|
|
64
|
-
let { id:
|
|
65
|
-
|
|
66
|
-
() =>
|
|
67
|
-
|
|
68
|
-
|
|
64
|
+
let { id: De } = t(), C = x.id ?? De.value, w = `bbp_${C}`, T = g(), E = _e("popoverRef"), D = c(() => a(E.value)), O = n(p), k = c(() => x.activator != null), { isMobile: A } = ie(), j = () => (x.adaptive ?? Ee.adaptive) && A.value ? "canvas" : "popover", M = g(j()), N = c(() => M.value === "canvas");
|
|
65
|
+
y([
|
|
66
|
+
() => x.adaptive,
|
|
67
|
+
A,
|
|
68
|
+
p
|
|
69
69
|
], () => {
|
|
70
|
-
|
|
70
|
+
p.value || (M.value = j());
|
|
71
71
|
});
|
|
72
|
-
let
|
|
72
|
+
let Oe = c(() => ({
|
|
73
73
|
side: "bottom",
|
|
74
74
|
size: "auto",
|
|
75
75
|
draggable: !0,
|
|
76
|
-
eager:
|
|
77
|
-
disabled:
|
|
78
|
-
focusTarget:
|
|
79
|
-
transitionDuration:
|
|
80
|
-
...
|
|
81
|
-
...
|
|
82
|
-
})),
|
|
83
|
-
|
|
84
|
-
},
|
|
85
|
-
let e =
|
|
76
|
+
eager: x.eager,
|
|
77
|
+
disabled: x.disabled,
|
|
78
|
+
focusTarget: x.focusTarget,
|
|
79
|
+
transitionDuration: x.transitionDuration,
|
|
80
|
+
...x.offCanvasProps,
|
|
81
|
+
...O.value && !x.offCanvasProps?.title ? { "aria-labelledby": C } : {}
|
|
82
|
+
})), ke = () => {
|
|
83
|
+
T.value?.focus(), S("hidden");
|
|
84
|
+
}, P = c(() => {
|
|
85
|
+
let e = x.trigger;
|
|
86
86
|
return new Set(Array.isArray(e) ? e : [e]);
|
|
87
|
-
}),
|
|
87
|
+
}), F = (e, t) => ({ getBoundingClientRect: () => ({
|
|
88
88
|
x: e,
|
|
89
89
|
y: t,
|
|
90
90
|
width: 0,
|
|
@@ -96,19 +96,19 @@ var xe = ["inert"], Se = {
|
|
|
96
96
|
toJSON() {
|
|
97
97
|
return this;
|
|
98
98
|
}
|
|
99
|
-
}) }),
|
|
100
|
-
clearTimeout(
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
let e =
|
|
99
|
+
}) }), I = g(null), Ae = c(() => x.placement === "cursor" && I.value ? I.value : T.value), L, R = null, z = !1, B = () => {
|
|
100
|
+
clearTimeout(L), R = null;
|
|
101
|
+
}, V = (e) => {
|
|
102
|
+
T.value = a(e) ?? void 0;
|
|
103
|
+
}, je = c(() => {
|
|
104
|
+
let e = P.value;
|
|
105
105
|
return {
|
|
106
|
-
"aria-expanded":
|
|
107
|
-
"aria-controls":
|
|
106
|
+
"aria-expanded": O.value ? p.value : void 0,
|
|
107
|
+
"aria-controls": O.value ? w : void 0,
|
|
108
108
|
"aria-haspopup": "dialog",
|
|
109
|
-
id:
|
|
110
|
-
disabled: !!
|
|
111
|
-
ref:
|
|
109
|
+
id: C,
|
|
110
|
+
disabled: !!x.disabled,
|
|
111
|
+
ref: V,
|
|
112
112
|
...e.has("click") ? { onClick: J } : {},
|
|
113
113
|
...e.has("contextMenu") ? {
|
|
114
114
|
onContextmenu: Y,
|
|
@@ -119,146 +119,146 @@ var xe = ["inert"], Se = {
|
|
|
119
119
|
} : {}
|
|
120
120
|
};
|
|
121
121
|
});
|
|
122
|
-
|
|
123
|
-
e &&
|
|
124
|
-
}, { immediate: !0 }),
|
|
125
|
-
if (!e || !
|
|
122
|
+
y(() => x.activator, (e) => {
|
|
123
|
+
e && V(e);
|
|
124
|
+
}, { immediate: !0 }), y([T, P], ([e, t], n, r) => {
|
|
125
|
+
if (!e || !k.value) return;
|
|
126
126
|
let i = [];
|
|
127
127
|
t.has("click") && (e.addEventListener("click", J), i.push(() => e.removeEventListener("click", J))), t.has("contextMenu") && (e.addEventListener("contextmenu", Y), e.addEventListener("pointerdown", X), e.addEventListener("pointermove", Z), e.addEventListener("pointerup", Q), e.addEventListener("pointercancel", Q), i.push(() => {
|
|
128
|
-
e.removeEventListener("contextmenu", Y), e.removeEventListener("pointerdown", X), e.removeEventListener("pointermove", Z), e.removeEventListener("pointerup", Q), e.removeEventListener("pointercancel", Q),
|
|
128
|
+
e.removeEventListener("contextmenu", Y), e.removeEventListener("pointerdown", X), e.removeEventListener("pointermove", Z), e.removeEventListener("pointerup", Q), e.removeEventListener("pointercancel", Q), B();
|
|
129
129
|
})), e.setAttribute("aria-haspopup", "dialog"), r(() => {
|
|
130
130
|
i.forEach((e) => e()), e.removeAttribute("aria-expanded"), e.removeAttribute("aria-controls"), e.removeAttribute("aria-haspopup");
|
|
131
131
|
});
|
|
132
|
-
}, { immediate: !0 }),
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
132
|
+
}, { immediate: !0 }), y([
|
|
133
|
+
T,
|
|
134
|
+
p,
|
|
135
|
+
O
|
|
136
136
|
], ([e, t, n]) => {
|
|
137
|
-
!e || !
|
|
138
|
-
}, { immediate: !0 }),
|
|
139
|
-
e
|
|
137
|
+
!e || !k.value || !n || (e.setAttribute("id", C), e.setAttribute("aria-expanded", String(t)), e.setAttribute("aria-controls", w));
|
|
138
|
+
}, { immediate: !0 }), ye(T, ([{ intersectionRatio: e }]) => {
|
|
139
|
+
!(e >= .99) && p.value && !N.value && $();
|
|
140
140
|
}, { threshold: [0, 1] });
|
|
141
|
-
let
|
|
141
|
+
let H = (e) => {
|
|
142
142
|
let t = e.target;
|
|
143
143
|
if (!(t instanceof Node)) return;
|
|
144
|
-
let n =
|
|
144
|
+
let n = D.value?.contains(t), r = T.value?.contains(t);
|
|
145
145
|
!n && !r && $();
|
|
146
|
-
},
|
|
147
|
-
e.key === "Escape" &&
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
},
|
|
153
|
-
if (
|
|
154
|
-
|
|
155
|
-
let e =
|
|
156
|
-
t instanceof HTMLElement && t.focus(),
|
|
146
|
+
}, U = Symbol("bb-popover"), W = (e) => {
|
|
147
|
+
e.key === "Escape" && te(U) && (e.preventDefault(), e.stopImmediatePropagation(), $());
|
|
148
|
+
}, Me = () => {
|
|
149
|
+
ne(U), document.addEventListener("click", H, { passive: !0 }), document.addEventListener("contextmenu", H, { passive: !0 }), document.addEventListener("keydown", W, { capture: !0 });
|
|
150
|
+
}, G = () => {
|
|
151
|
+
re(U), document.removeEventListener("click", H), document.removeEventListener("contextmenu", H), document.removeEventListener("keydown", W, { capture: !0 });
|
|
152
|
+
}, K = !1, Ne = async () => {
|
|
153
|
+
if (N.value) return;
|
|
154
|
+
K = !0, S("show"), Me(), await ue();
|
|
155
|
+
let e = x.focusTarget ?? "[tabindex]:not([tabindex=\"-1\"]), button, a, input, select, textarea", t = D.value?.querySelector(e);
|
|
156
|
+
t instanceof HTMLElement && t.focus(), S("shown");
|
|
157
157
|
}, Pe = () => {
|
|
158
|
-
|
|
159
|
-
}, Fe =
|
|
160
|
-
|
|
161
|
-
e ? (
|
|
162
|
-
}), ge(() => {
|
|
163
|
-
f.value && K();
|
|
158
|
+
K && (K = !1, S("hide"), G(), T.value && T.value.focus(), S("hidden"));
|
|
159
|
+
}, Fe = ae(p, () => x.transitionDuration);
|
|
160
|
+
y(p, (e) => {
|
|
161
|
+
e ? (M.value = j(), Ne()) : Pe();
|
|
164
162
|
}), he(() => {
|
|
165
|
-
|
|
163
|
+
p.value && Ne();
|
|
164
|
+
}), me(() => {
|
|
165
|
+
B(), G();
|
|
166
166
|
});
|
|
167
167
|
let q = () => {
|
|
168
|
-
|
|
168
|
+
x.disabled || (p.value = !0);
|
|
169
169
|
}, J = (e) => {
|
|
170
|
-
if (
|
|
170
|
+
if (p.value) {
|
|
171
171
|
$();
|
|
172
172
|
return;
|
|
173
173
|
}
|
|
174
|
-
if (
|
|
175
|
-
|
|
174
|
+
if (z) {
|
|
175
|
+
z = !1, e.preventDefault(), e.stopPropagation();
|
|
176
176
|
return;
|
|
177
177
|
}
|
|
178
|
-
e.stopImmediatePropagation(),
|
|
178
|
+
e.stopImmediatePropagation(), x.placement === "cursor" && (I.value = F(e.clientX, e.clientY)), q();
|
|
179
179
|
}, Y = (e) => {
|
|
180
|
-
|
|
180
|
+
x.disabled || (e.preventDefault(), e.stopPropagation(), !(x.placement === "cursor" && (I.value = F(e.clientX, e.clientY), p.value)) && (p.value ? $() : q()));
|
|
181
181
|
}, X = (e) => {
|
|
182
|
-
|
|
182
|
+
x.disabled || e.pointerType === "mouse" || (z = !1, R = {
|
|
183
183
|
x: e.clientX,
|
|
184
184
|
y: e.clientY
|
|
185
|
-
},
|
|
186
|
-
|
|
187
|
-
},
|
|
185
|
+
}, L = setTimeout(() => {
|
|
186
|
+
z = !0, x.placement === "cursor" && R && (I.value = F(R.x, R.y)), R = null, q();
|
|
187
|
+
}, we));
|
|
188
188
|
}, Z = (e) => {
|
|
189
|
-
if (!
|
|
190
|
-
let t = e.clientX -
|
|
191
|
-
Math.sqrt(t * t + n * n) >
|
|
189
|
+
if (!R) return;
|
|
190
|
+
let t = e.clientX - R.x, n = e.clientY - R.y;
|
|
191
|
+
Math.sqrt(t * t + n * n) > Te && B();
|
|
192
192
|
}, Q = () => {
|
|
193
|
-
|
|
193
|
+
B();
|
|
194
194
|
}, $ = () => {
|
|
195
|
-
|
|
196
|
-
}, Ie =
|
|
197
|
-
if (!
|
|
198
|
-
let { unit: e } =
|
|
195
|
+
p.value = !1;
|
|
196
|
+
}, Ie = c(() => {
|
|
197
|
+
if (!x.width) return !1;
|
|
198
|
+
let { unit: e } = s(x.width);
|
|
199
199
|
return e === "%";
|
|
200
|
-
}), { width: Le } =
|
|
200
|
+
}), { width: Le } = ve(c(() => Ie.value ? T.value : void 0), {
|
|
201
201
|
width: 0,
|
|
202
202
|
height: 0
|
|
203
|
-
}, { box: "border-box" }), Re =
|
|
204
|
-
if (!
|
|
205
|
-
let { value: e, unit: t } =
|
|
206
|
-
return t === "%" &&
|
|
203
|
+
}, { box: "border-box" }), Re = c(() => {
|
|
204
|
+
if (!x.width) return;
|
|
205
|
+
let { value: e, unit: t } = s(x.width);
|
|
206
|
+
return t === "%" && T.value ? `${Le.value * (e / 100)}px` : `${e}px`;
|
|
207
207
|
});
|
|
208
|
-
return (e, t) => (
|
|
209
|
-
props:
|
|
208
|
+
return (e, t) => (h(), d(se, null, [k.value ? u("", !0) : _(e.$slots, "activator", fe(m({ key: 0 }, {
|
|
209
|
+
props: je.value,
|
|
210
210
|
disabled: !!e.disabled,
|
|
211
|
-
isOpen:
|
|
211
|
+
isOpen: p.value,
|
|
212
212
|
placement: e.placement
|
|
213
|
-
}))),
|
|
213
|
+
}))), N.value ? (h(), l(oe, m({
|
|
214
214
|
key: 1,
|
|
215
|
-
id:
|
|
216
|
-
modelValue:
|
|
217
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
215
|
+
id: w,
|
|
216
|
+
modelValue: p.value,
|
|
217
|
+
"onUpdate:modelValue": t[0] ||= (e) => p.value = e,
|
|
218
218
|
class: "bb-popover-offcanvas"
|
|
219
219
|
}, {
|
|
220
220
|
...e.$attrs,
|
|
221
|
-
...
|
|
221
|
+
...Oe.value
|
|
222
222
|
}, {
|
|
223
|
-
onHidden:
|
|
224
|
-
onHide: t[1] ||= (e) =>
|
|
225
|
-
onShow: t[2] ||= (e) =>
|
|
226
|
-
onShown: t[3] ||= (e) =>
|
|
227
|
-
}),
|
|
228
|
-
default:
|
|
223
|
+
onHidden: ke,
|
|
224
|
+
onHide: t[1] ||= (e) => S("hide"),
|
|
225
|
+
onShow: t[2] ||= (e) => S("show"),
|
|
226
|
+
onShown: t[3] ||= (e) => S("shown")
|
|
227
|
+
}), le({
|
|
228
|
+
default: b(() => [_(e.$slots, "default", {
|
|
229
229
|
close: $,
|
|
230
230
|
disabled: !!e.disabled,
|
|
231
|
-
open:
|
|
231
|
+
open: p.value,
|
|
232
232
|
placement: e.placement
|
|
233
233
|
})]),
|
|
234
234
|
_: 2
|
|
235
235
|
}, [e.$slots.header ? {
|
|
236
236
|
name: "header",
|
|
237
|
-
fn:
|
|
237
|
+
fn: b(() => [_(e.$slots, "header", {
|
|
238
238
|
close: $,
|
|
239
239
|
disabled: !!e.disabled,
|
|
240
|
-
open:
|
|
240
|
+
open: p.value,
|
|
241
241
|
placement: e.placement
|
|
242
242
|
})]),
|
|
243
243
|
key: "0"
|
|
244
244
|
} : void 0, e.$slots.footer ? {
|
|
245
245
|
name: "footer",
|
|
246
|
-
fn:
|
|
246
|
+
fn: b(() => [_(e.$slots, "footer", {
|
|
247
247
|
close: $,
|
|
248
248
|
disabled: !!e.disabled,
|
|
249
|
-
open:
|
|
249
|
+
open: p.value,
|
|
250
250
|
placement: e.placement
|
|
251
251
|
})]),
|
|
252
252
|
key: "1"
|
|
253
|
-
} : void 0]), 1040, ["modelValue"])) : (
|
|
253
|
+
} : void 0]), 1040, ["modelValue"])) : (h(), l(ee, m({
|
|
254
254
|
key: 2,
|
|
255
|
-
id:
|
|
255
|
+
id: w,
|
|
256
256
|
ref_key: "popoverRef",
|
|
257
|
-
ref:
|
|
258
|
-
modelValue:
|
|
259
|
-
"onUpdate:modelValue": t[4] ||= (e) =>
|
|
260
|
-
anchor:
|
|
261
|
-
"aria-labelledby":
|
|
257
|
+
ref: E,
|
|
258
|
+
modelValue: p.value,
|
|
259
|
+
"onUpdate:modelValue": t[4] ||= (e) => p.value = e,
|
|
260
|
+
anchor: Ae.value,
|
|
261
|
+
"aria-labelledby": v(O) ? v(C) : void 0,
|
|
262
262
|
boundary: e.boundary,
|
|
263
263
|
class: "bb-popover",
|
|
264
264
|
dialog: "",
|
|
@@ -270,30 +270,30 @@ var xe = ["inert"], Se = {
|
|
|
270
270
|
style: { width: Re.value },
|
|
271
271
|
"transition-duration": e.transitionDuration
|
|
272
272
|
}, e.$attrs), {
|
|
273
|
-
default:
|
|
274
|
-
class:
|
|
275
|
-
inert:
|
|
276
|
-
style:
|
|
273
|
+
default: b(({ availableHeight: t }) => [ce("div", {
|
|
274
|
+
class: de(["bb-popover__panel", { "bb-popover__panel--scrollable": e.scrollable }]),
|
|
275
|
+
inert: v(Fe),
|
|
276
|
+
style: pe({ "--max-h": e.scrollable && t != null ? `${t}px` : void 0 })
|
|
277
277
|
}, [
|
|
278
|
-
e.$slots.header ? (
|
|
278
|
+
e.$slots.header ? (h(), d("div", xe, [_(e.$slots, "header", {
|
|
279
279
|
close: $,
|
|
280
280
|
disabled: !!e.disabled,
|
|
281
|
-
open:
|
|
281
|
+
open: p.value,
|
|
282
282
|
placement: e.placement
|
|
283
|
-
})])) :
|
|
284
|
-
|
|
283
|
+
})])) : u("", !0),
|
|
284
|
+
ce("div", Se, [_(e.$slots, "default", {
|
|
285
285
|
close: $,
|
|
286
286
|
disabled: !!e.disabled,
|
|
287
|
-
open:
|
|
287
|
+
open: p.value,
|
|
288
288
|
placement: e.placement
|
|
289
289
|
})]),
|
|
290
|
-
e.$slots.footer ? (
|
|
290
|
+
e.$slots.footer ? (h(), d("div", Ce, [_(e.$slots, "footer", {
|
|
291
291
|
close: $,
|
|
292
292
|
disabled: !!e.disabled,
|
|
293
|
-
open:
|
|
293
|
+
open: p.value,
|
|
294
294
|
placement: e.placement
|
|
295
|
-
})])) :
|
|
296
|
-
], 14,
|
|
295
|
+
})])) : u("", !0)
|
|
296
|
+
], 14, be)]),
|
|
297
297
|
_: 3
|
|
298
298
|
}, 16, [
|
|
299
299
|
"modelValue",
|
|
@@ -310,4 +310,4 @@ var xe = ["inert"], Se = {
|
|
|
310
310
|
}
|
|
311
311
|
});
|
|
312
312
|
//#endregion
|
|
313
|
-
export {
|
|
313
|
+
export { x as default };
|
package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -8,26 +8,26 @@ import { extractDomContainer as o } from "../../utilities/functions/extractDomCo
|
|
|
8
8
|
import { waitFor as s } from "../../utilities/functions/waitFor.js";
|
|
9
9
|
import { transitions as ee } from "../../utilities/misc/transitions.js";
|
|
10
10
|
import te from "../CommonPopover/CommonPopover.vue.js";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import { useClosingInert as ce } from "../../composables/useClosingInert.js";
|
|
11
|
+
import { isTopEscapeEntry as ne, pushEscapeEntry as re, removeEscapeEntry as ie } from "../../utils/overlayEscapeStack.js";
|
|
12
|
+
import { useMobile as ae } from "../../composables/useMobile.js";
|
|
13
|
+
import { provideSheetSurface as oe } from "../../composables/useSheetSurface.js";
|
|
14
|
+
import { useClosingInert as se } from "../../composables/useClosingInert.js";
|
|
16
15
|
import { wait as c } from "../../utilities/functions/wait.js";
|
|
17
|
-
import { get as
|
|
18
|
-
import { useLocale as
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import { isNil as
|
|
22
|
-
import { matchAnyKey as
|
|
23
|
-
import
|
|
24
|
-
import { useImeDismissBlur as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import { hash as
|
|
28
|
-
import { useArray as
|
|
29
|
-
import { useItemsGetter as
|
|
30
|
-
import { useHashedWatcher as
|
|
16
|
+
import { get as ce } from "../../utilities/functions/get.js";
|
|
17
|
+
import { useLocale as le } from "../../composables/useLocale.js";
|
|
18
|
+
import ue from "../BbIcon/BbIcon.vue.js";
|
|
19
|
+
import de from "../BbBadge/BbBadge.vue.js";
|
|
20
|
+
import { isNil as fe } from "../../utilities/functions/isNil.js";
|
|
21
|
+
import { matchAnyKey as pe } from "../../utilities/functions/matchAnyKey.js";
|
|
22
|
+
import me from "../../assets/svgs/search.svg_raw.js";
|
|
23
|
+
import { useImeDismissBlur as he } from "../../composables/useImeDismissBlur.js";
|
|
24
|
+
import ge from "../BbOffCanvas/BbOffCanvas.vue.js";
|
|
25
|
+
import _e from "../BbSmoothHeight/BbSmoothHeight.vue.js";
|
|
26
|
+
import { hash as ve } from "../../utilities/functions/hash.js";
|
|
27
|
+
import { useArray as ye } from "../../composables/useArray.js";
|
|
28
|
+
import { useItemsGetter as be } from "../../composables/useItemsGetter.js";
|
|
29
|
+
import { useHashedWatcher as xe } from "../../composables/useHashedWatcher.js";
|
|
30
|
+
import { parseWidthString as Se } from "../../utilities/functions/parseWidthString.js";
|
|
31
31
|
import Ce from "../ClearableButton/ClearableButton.vue.js";
|
|
32
32
|
import { useIndexById as we } from "../../composables/useIndexById.js";
|
|
33
33
|
import { useBaseOptions as Te } from "../../composables/useBaseOptions.js";
|
|
@@ -162,7 +162,7 @@ var qe = {
|
|
|
162
162
|
S(() => E.activator, (e) => {
|
|
163
163
|
e && ct(e);
|
|
164
164
|
}, { immediate: !0 });
|
|
165
|
-
let { isMobile: P } =
|
|
165
|
+
let { isMobile: P } = ae(), F = l(() => E.disableWriting === "mobile" ? !P.value : E.disableWriting === "desktop" ? P.value : !E.disableWriting), lt = l(() => E.disableWriting === "mobile" && P.value || E.disableWriting === "desktop" && !P.value ? "none" : void 0), { t: ut } = le(), dt = l(() => E.searchInputAriaLabel ?? ut("select.searchLabel").value), ft = l(() => !!E.clearable && (H.value.length > 0 || (E.multiple ? Array.isArray(E.modelValue) && E.modelValue.length > 0 : !fe(E.modelValue)))), I = E.id || t().id.value, pt = l(() => E.ariaInvalid ?? !!E.hasErrors ? "true" : void 0), mt = l(() => {
|
|
166
166
|
let e = E.ariaDescribedby;
|
|
167
167
|
if (Array.isArray(e)) return e.map((e) => e.trim()).filter(Boolean).join(" ") || void 0;
|
|
168
168
|
if (typeof e == "string") return e.trim() || void 0;
|
|
@@ -179,7 +179,7 @@ var qe = {
|
|
|
179
179
|
if (E.width === "auto") return "auto";
|
|
180
180
|
if (E.width == null || E.width === "") return N.value ? `${N.value}px` : "320px";
|
|
181
181
|
try {
|
|
182
|
-
let { value: e, unit: t } =
|
|
182
|
+
let { value: e, unit: t } = Se(E.width);
|
|
183
183
|
return t === "%" ? N.value ? `${N.value * (e / 100)}px` : "320px" : `${e}${t}`;
|
|
184
184
|
} catch {
|
|
185
185
|
return typeof E.width == "string" ? E.width.trim() : N.value ? `${N.value}px` : "320px";
|
|
@@ -215,7 +215,7 @@ var qe = {
|
|
|
215
215
|
let t = e.target instanceof Element ? e.target : e.target instanceof Text ? e.target.parentElement : null;
|
|
216
216
|
if (!t) return;
|
|
217
217
|
let n = M.value?.contains(t), r = !!t.closest(".bb-common-popover");
|
|
218
|
-
if (n || r) return;
|
|
218
|
+
if (n || r || e.type === "focusin" && M.value && t.contains(M.value)) return;
|
|
219
219
|
let i = t instanceof HTMLLabelElement ? t : t.closest("label");
|
|
220
220
|
i?.control && M.value?.contains(i.control) || (await Y(), On());
|
|
221
221
|
}, kt = l(() => !(E.readonly || E.disabled || G.value && !Ut.value.length)), At = new AbortController(), jt = async () => s(() => !!k.value, {
|
|
@@ -254,11 +254,11 @@ var qe = {
|
|
|
254
254
|
}, B = async () => {
|
|
255
255
|
K.value && (await Y(), L());
|
|
256
256
|
}, V = Symbol("bb-select-popover-escape"), Lt = (e) => {
|
|
257
|
-
!K.value || e.key !== "Escape" ||
|
|
258
|
-
}, H = v(""), Rt = v(!1), { getter: zt, debouncedGetter: Bt, clientReproducible: Vt, hydratedFromSsr: Ht, items: Ut, loading: Wt } =
|
|
257
|
+
!K.value || e.key !== "Escape" || ne(V) && (e.stopImmediatePropagation(), e.preventDefault(), B());
|
|
258
|
+
}, H = v(""), Rt = v(!1), { getter: zt, debouncedGetter: Bt, clientReproducible: Vt, hydratedFromSsr: Ht, items: Ut, loading: Wt } = be({
|
|
259
259
|
items: b(E, "items"),
|
|
260
260
|
debounce: E.queryDebounceTime
|
|
261
|
-
}), { array: Gt, add: Kt, remove: qt, set: Jt } =
|
|
261
|
+
}), { array: Gt, add: Kt, remove: qt, set: Jt } = ye(), Yt = l(() => E.multiple ? !!E.modelValue?.length : !fe(E.modelValue)), Xt = l(() => E.prefill === !1 && !Array.isArray(E.items) && F.value && !Yt.value), Zt = l(() => Xt.value && !H.value ? ut("select.searchToStart").value : E.noDataText), { hasPrefilled: Qt, isPrefilling: $t, canLoad: en, prefill: tn, markPrefilled: nn } = De({
|
|
262
262
|
alreadyLoaded: Ht,
|
|
263
263
|
clientReproducible: Vt,
|
|
264
264
|
trigger: l(() => Array.isArray(E.items) || E.prefill === !0 || E.enforceCoherence && Yt.value || E.prefill === "interaction" && Rt.value),
|
|
@@ -281,17 +281,17 @@ var qe = {
|
|
|
281
281
|
}), { coherent: sn, coherentValue: cn } = Ee({
|
|
282
282
|
modelValue: b(E, "modelValue"),
|
|
283
283
|
multiple: E.multiple,
|
|
284
|
-
iteratee: (e) => !!on.value[
|
|
285
|
-
}), W = l(() => [].concat(E.modelValue).map((e) => on.value[
|
|
284
|
+
iteratee: (e) => !!on.value[ve(e)]
|
|
285
|
+
}), W = l(() => [].concat(E.modelValue).map((e) => on.value[ve(e)]).filter(Boolean)), ln = (e) => ({
|
|
286
286
|
item: e.item,
|
|
287
287
|
text: e.text,
|
|
288
288
|
value: e.value,
|
|
289
289
|
selected: e.selected ?? !0,
|
|
290
290
|
disabled: e.disabled ?? !1
|
|
291
291
|
}), un = l(() => W.value.map(ln)), G = l(() => !!(Wt.value || E.loading)), dn = l(() => G.value && U.value.length > 0), fn = l(() => !!E.hasErrors), pn = l(() => !!E.hasWarning && !fn.value), mn = l(() => W.value.map((e) => e.text).filter(Boolean).join(", ") || "");
|
|
292
|
-
|
|
292
|
+
xe(() => E.modelValue, async () => {
|
|
293
293
|
en.value && (sn.value || (await zt(H.value, !0, E.modelValue), E.enforceCoherence && (D("update:modelValue", cn.value), k.value?.blur())));
|
|
294
|
-
}, { debounce: E.modelValueDebounceTime }),
|
|
294
|
+
}, { debounce: E.modelValueDebounceTime }), xe(() => [E.dependencies, E.items], async () => {
|
|
295
295
|
en.value && (await zt(H.value, !0, E.modelValue), E.enforceCoherence && !sn.value && (D("update:modelValue", cn.value), k.value?.blur()));
|
|
296
296
|
}, { debounce: E.depsDebounceTime });
|
|
297
297
|
let hn = async (e) => {
|
|
@@ -309,11 +309,11 @@ var qe = {
|
|
|
309
309
|
}, _n = l(() => {
|
|
310
310
|
if (!H.value || !E.multiple && W.value.some((e) => e.text === H.value)) return U.value;
|
|
311
311
|
let e = H.value.trim();
|
|
312
|
-
return E.filterBy.length ? U.value.filter((t) =>
|
|
313
|
-
}), vn = Symbol("default"), yn = (e) =>
|
|
312
|
+
return E.filterBy.length ? U.value.filter((t) => pe(t.item, E.filterBy, e)) : U.value.filter((t) => pe(t, ["text"], e));
|
|
313
|
+
}), vn = Symbol("default"), yn = (e) => fe(E.groupBy) ? vn : typeof E.groupBy == "function" ? E.groupBy(e.item) : ce(e.item, E.groupBy), bn = l(() => {
|
|
314
314
|
let e = {};
|
|
315
315
|
for (let t of _n.value) {
|
|
316
|
-
let n = yn(t), r =
|
|
316
|
+
let n = yn(t), r = ve(n);
|
|
317
317
|
e[r] || (e[r] = {
|
|
318
318
|
id: r,
|
|
319
319
|
data: n ?? null,
|
|
@@ -321,14 +321,14 @@ var qe = {
|
|
|
321
321
|
}), e[r].options.push(t);
|
|
322
322
|
}
|
|
323
323
|
return Object.values(e).filter((e) => e.options.length);
|
|
324
|
-
}), K = v(!1), xn = n(K), Sn =
|
|
324
|
+
}), K = v(!1), xn = n(K), Sn = se(K, () => E.transitionDuration), Cn = () => (E.adaptive ?? tt.adaptive) && P.value ? "canvas" : "popover", wn = v(Cn()), q = l(() => wn.value === "canvas");
|
|
325
325
|
S([
|
|
326
326
|
() => E.adaptive,
|
|
327
327
|
P,
|
|
328
328
|
K
|
|
329
329
|
], () => {
|
|
330
330
|
K.value || (wn.value = Cn());
|
|
331
|
-
}),
|
|
331
|
+
}), oe(q), he({
|
|
332
332
|
active: () => K.value && q.value,
|
|
333
333
|
input: () => A.value
|
|
334
334
|
});
|
|
@@ -343,9 +343,9 @@ var qe = {
|
|
|
343
343
|
...E.offCanvasProps?.title ? {} : { "aria-labelledby": Pn.value },
|
|
344
344
|
...E.offCanvasProps
|
|
345
345
|
})), J = async ({ focusPopoverContent: e = !0 } = {}) => {
|
|
346
|
-
E.disabled || E.readonly || K.value || (wn.value = Cn(), Rt.value = !0, K.value = !0, !(!Qt.value && !$t.value && !Xt.value && (await tn(), !K.value)) && (await Ie(), K.value && (q.value || (ht = !0, gt(),
|
|
346
|
+
E.disabled || E.readonly || K.value || (wn.value = Cn(), Rt.value = !0, K.value = !0, !(!Qt.value && !$t.value && !Xt.value && (await tn(), !K.value)) && (await Ie(), K.value && (q.value || (ht = !0, gt(), re(V), document.addEventListener("click", z, { capture: !0 }), document.addEventListener("focusin", z, { capture: !0 }), document.addEventListener("keydown", Lt, { capture: !0 }), e && (await c(0), K.value && (F.value ? R() : bt()))))));
|
|
347
347
|
}, Y = async () => {
|
|
348
|
-
K.value && (K.value = !1, k.value?.blur(), j.value = void 0, H.value = "", !q.value && (_t(),
|
|
348
|
+
K.value && (K.value = !1, k.value?.blur(), j.value = void 0, H.value = "", !q.value && (_t(), ie(V), document.removeEventListener("click", z, { capture: !0 }), document.removeEventListener("focusin", z, { capture: !0 }), document.removeEventListener("keydown", Lt, { capture: !0 })));
|
|
349
349
|
}, En = () => {
|
|
350
350
|
k.value?.blur(), j.value = void 0, H.value = "", On(), L();
|
|
351
351
|
}, Dn = () => K.value ? Y() : J(), X = v(!1), Z = () => {
|
|
@@ -436,7 +436,7 @@ var qe = {
|
|
|
436
436
|
], ([e, t, n, r, i, a, o, s]) => {
|
|
437
437
|
e && (e.setAttribute("aria-expanded", String(t)), o || e.setAttribute("aria-label", s), r == null ? e.removeAttribute("aria-invalid") : e.setAttribute("aria-invalid", r), n ? e.setAttribute("aria-controls", `${I}_listbox`) : e.removeAttribute("aria-controls"), i == null ? e.removeAttribute("aria-describedby") : e.setAttribute("aria-describedby", i), t && a ? e.setAttribute("aria-activedescendant", a) : e.removeAttribute("aria-activedescendant"));
|
|
438
438
|
}, { immediate: !0 }), ze(() => {
|
|
439
|
-
clearTimeout(An), $?.(), At.abort(),
|
|
439
|
+
clearTimeout(An), $?.(), At.abort(), ie(V), document.removeEventListener("click", z, { capture: !0 }), document.removeEventListener("focusin", z, { capture: !0 }), document.removeEventListener("keydown", Lt, { capture: !0 });
|
|
440
440
|
}), (e, t) => (_(), f(je, null, [
|
|
441
441
|
st.value ? d("", !0) : y(e.$slots, "activator", g(h({ key: 0 }, {
|
|
442
442
|
props: { ref: ct },
|
|
@@ -493,11 +493,11 @@ var qe = {
|
|
|
493
493
|
class: "bb-select-popover__search-warning-icon",
|
|
494
494
|
focusable: "false"
|
|
495
495
|
}),
|
|
496
|
-
p(
|
|
496
|
+
p(ue, {
|
|
497
497
|
"aria-hidden": "true",
|
|
498
498
|
class: "bb-select-popover__search-icon",
|
|
499
499
|
focusable: "false",
|
|
500
|
-
icon: x(
|
|
500
|
+
icon: x(me)
|
|
501
501
|
}, null, 8, ["icon"]),
|
|
502
502
|
e.clearable ? (_(), u(Ce, {
|
|
503
503
|
key: 0,
|
|
@@ -517,7 +517,7 @@ var qe = {
|
|
|
517
517
|
"aria-expanded": "true",
|
|
518
518
|
"aria-invalid": pt.value,
|
|
519
519
|
"aria-label": dt.value,
|
|
520
|
-
class: "bb-select-popover__focus-proxy sr-only",
|
|
520
|
+
class: "bb-select-popover__focus-proxy bb-sr-only",
|
|
521
521
|
role: "combobox",
|
|
522
522
|
tabindex: "-1",
|
|
523
523
|
type: "button",
|
|
@@ -573,7 +573,7 @@ var qe = {
|
|
|
573
573
|
])]),
|
|
574
574
|
_: 3
|
|
575
575
|
}),
|
|
576
|
-
q.value ? (_(), u(
|
|
576
|
+
q.value ? (_(), u(ge, h({
|
|
577
577
|
key: 1,
|
|
578
578
|
modelValue: K.value,
|
|
579
579
|
"onUpdate:modelValue": t[3] ||= (e) => K.value = e,
|
|
@@ -592,7 +592,7 @@ var qe = {
|
|
|
592
592
|
}]),
|
|
593
593
|
tabindex: "-1"
|
|
594
594
|
}, [
|
|
595
|
-
e.multiple && W.value.length ? (_(), f("div", Ze, [Me("div", Qe, [(_(!0), f(je, null, Be(W.value, (n) => (_(), u(
|
|
595
|
+
e.multiple && W.value.length ? (_(), f("div", Ze, [Me("div", Qe, [(_(!0), f(je, null, Be(W.value, (n) => (_(), u(de, {
|
|
596
596
|
key: n.valueHash,
|
|
597
597
|
class: "bb-select-popover__sheet-chip",
|
|
598
598
|
clearable: !e.disabled && !e.readonly,
|
|
@@ -605,7 +605,7 @@ var qe = {
|
|
|
605
605
|
_: 2
|
|
606
606
|
}, 1032, ["clearable", "onClick:clear"]))), 128))])])) : d("", !0),
|
|
607
607
|
p(x(rt)),
|
|
608
|
-
p(
|
|
608
|
+
p(_e, null, {
|
|
609
609
|
default: C(() => [p(x(at))]),
|
|
610
610
|
_: 1
|
|
611
611
|
})
|
|
@@ -7,7 +7,7 @@ import { createBlock as i, createElementBlock as a, createElementVNode as o, cre
|
|
|
7
7
|
var f = {
|
|
8
8
|
key: 0,
|
|
9
9
|
role: "status"
|
|
10
|
-
}, p = { class: "sr-only" }, m = /*@__PURE__*/ c({
|
|
10
|
+
}, p = { class: "bb-sr-only" }, m = /*@__PURE__*/ c({
|
|
11
11
|
__name: "BbSpinner",
|
|
12
12
|
props: {
|
|
13
13
|
size: { default: "md" },
|