bitboss-ui 2.0.77 → 2.0.78
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/dist/index110.js +4 -4
- package/dist/index118.js +1 -1
- package/dist/index120.js +51 -51
- package/dist/index122.js +1 -1
- package/dist/index126.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +2 -2
- package/dist/index206.js +7 -125
- package/dist/index207.js +3 -5
- package/dist/index208.js +40 -124
- package/dist/index209.js +6 -19
- package/dist/index21.js +14 -14
- package/dist/index210.js +7 -16
- package/dist/index211.js +5 -16
- package/dist/index212.js +16 -2
- package/dist/index213.js +16 -2
- package/dist/index214.js +18 -40
- package/dist/index215.js +18 -19
- package/dist/index216.js +27 -6
- package/dist/index217.js +3 -53
- package/dist/index218.js +4 -0
- package/dist/index219.js +249 -13
- package/dist/index220.js +52 -5
- package/dist/index221.js +44 -369
- package/dist/index222.js +5 -164
- package/dist/index223.js +54 -78
- package/dist/index224.js +55 -0
- package/dist/index226.js +13 -3
- package/dist/index227.js +164 -7
- package/dist/index228.js +82 -6
- package/dist/index23.js +15 -15
- package/dist/index230.js +3 -4
- package/dist/index231.js +126 -2
- package/dist/index232.js +122 -16
- package/dist/index233.js +2 -27
- package/dist/index234.js +20 -3
- package/dist/index235.js +5 -249
- package/dist/index236.js +367 -50
- package/dist/index237.js +4 -44
- package/dist/index238.js +2 -5
- package/dist/index239.js +4 -60
- package/dist/index240.js +2 -4
- package/dist/index241.js +2 -2
- package/dist/index242.js +105 -17
- package/dist/{index245.js → index244.js} +1 -1
- package/dist/index246.js +4 -0
- package/dist/index247.js +18 -2
- package/dist/index25.js +5 -5
- package/dist/index250.js +9 -281
- package/dist/index251.js +23 -6
- package/dist/index252.js +89 -2
- package/dist/index254.js +6 -2
- package/dist/index255.js +16 -2
- package/dist/index256.js +281 -2
- package/dist/index257.js +5 -125
- package/dist/index258.js +2 -431
- package/dist/index259.js +2 -176
- package/dist/index260.js +2 -3
- package/dist/index261.js +4 -0
- package/dist/index262.js +2 -7
- package/dist/index263.js +2 -22
- package/dist/index264.js +4 -0
- package/dist/index265.js +2 -3
- package/dist/index266.js +2 -12
- package/dist/index267.js +2 -9
- package/dist/index268.js +27 -8
- package/dist/index269.js +20 -15
- package/dist/index27.js +1 -1
- package/dist/index271.js +7 -224
- package/dist/index272.js +413 -418
- package/dist/index273.js +87 -125
- package/dist/index274.js +9 -200
- package/dist/index275.js +3 -89
- package/dist/index277.js +200 -2
- package/dist/index278.js +3 -2
- package/dist/index279.js +12 -2
- package/dist/index280.js +9 -2
- package/dist/index281.js +9 -2
- package/dist/index282.js +17 -2
- package/dist/index283.js +3 -27
- package/dist/index284.js +224 -22
- package/dist/index286.js +124 -7
- package/dist/index287.js +176 -3
- package/dist/index288.js +21 -8
- package/dist/index29.js +2 -2
- package/dist/index290.js +4 -6
- package/dist/index291.js +435 -15
- package/dist/index292.js +127 -3
- package/dist/index293.js +2 -3
- package/dist/index294.js +3 -211
- package/dist/index295.js +3 -5
- package/dist/index296.js +5 -66
- package/dist/index297.js +66 -2
- package/dist/index298.js +211 -33
- package/dist/index301.js +4 -7
- package/dist/index302.js +4 -19
- package/dist/index303.js +58 -6
- package/dist/index304.js +3 -11
- package/dist/index306.js +7 -89
- package/dist/index307.js +9 -0
- package/dist/index308.js +19 -4
- package/dist/index309.js +32 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +10 -58
- package/dist/index311.js +2 -2
- package/dist/index312.js +12 -2
- package/dist/{index315.js → index313.js} +2 -2
- package/dist/index314.js +2 -12
- package/dist/index316.js +2 -424
- package/dist/index317.js +424 -2
- package/dist/index318.js +2 -47
- package/dist/index319.js +47 -2
- package/dist/index33.js +2 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +13 -13
- package/dist/index39.js +3 -3
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +6 -6
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +1 -1
- package/dist/index75.js +35 -35
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +1 -1
- package/dist/index88.js +62 -62
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index225.js +0 -5
- package/dist/index229.js +0 -4
- package/dist/index243.js +0 -108
- package/dist/index270.js +0 -6
- package/dist/index276.js +0 -6
- package/dist/index289.js +0 -25
- /package/dist/{index253.js → index285.js} +0 -0
package/dist/index49.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as m, computed as b, openBlock as c, createElementBlock as f, Fragment as y, createVNode as p, normalizeClass as h, withCtx as n, renderSlot as r, createElementVNode as l, mergeProps as g } from "vue";
|
2
|
-
import B from "./
|
2
|
+
import B from "./index224.js";
|
3
3
|
/* empty css */
|
4
|
-
import k from "./
|
4
|
+
import k from "./index226.js";
|
5
5
|
const w = ["id", "aria-describedby", "aria-invalid", "autocomplete", "autofocus", "disabled", "name", "placeholder", "readonly", "required", "type", "value"], V = /* @__PURE__ */ m({
|
6
6
|
__name: "BaseTextInput",
|
7
7
|
props: {
|
package/dist/index55.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as z, computed as b, ref as o, onMounted as g, openBlock as l, createElementBlock as i, normalizeProps as h, guardReactiveProps as k, renderSlot as y } from "vue";
|
2
|
-
import { isCssColor as _ } from "./
|
2
|
+
import { isCssColor as _ } from "./index238.js";
|
3
3
|
import { wait as C } from "./index131.js";
|
4
4
|
const w = ["alt", "sizes", "src", "srcset"], B = {
|
5
5
|
key: 1,
|
package/dist/index57.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as p, useSlots as d, computed as n, openBlock as m, createElementBlock as u, normalizeClass as g, createElementVNode as s, renderSlot as l, mergeProps as f, createTextVNode as _, toDisplayString as y } from "vue";
|
2
|
-
import { isCssColor as r } from "./
|
2
|
+
import { isCssColor as r } from "./index238.js";
|
3
3
|
import { isNil as B } from "./index129.js";
|
4
4
|
const C = { class: "bb-badge__wrapper" }, h = { class: "bb-badge__content-inner" }, S = /* @__PURE__ */ p({
|
5
5
|
__name: "BbBadge",
|
package/dist/index75.js
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
import { defineComponent as
|
2
|
-
import { findRightIndex as H } from "./
|
3
|
-
import { useId as
|
4
|
-
import { wait as
|
5
|
-
import { useIntersectionObserver as
|
6
|
-
import
|
1
|
+
import { defineComponent as J, computed as A, ref as w, openBlock as T, createElementBlock as D, mergeProps as B, createElementVNode as C, renderSlot as g, normalizeProps as Q, guardReactiveProps as W, unref as h, createVNode as O, withCtx as K, normalizeStyle as X, Fragment as P, renderList as Y } from "vue";
|
2
|
+
import { findRightIndex as H } from "./index250.js";
|
3
|
+
import { useId as Z } from "./index8.js";
|
4
|
+
import { wait as x } from "./index131.js";
|
5
|
+
import { useIntersectionObserver as ee } from "./index132.js";
|
6
|
+
import te from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import j from "./
|
9
|
-
|
8
|
+
import j from "./index251.js";
|
9
|
+
import ne from "./index252.js";
|
10
|
+
/* empty css */
|
11
|
+
const pe = /* @__PURE__ */ J({
|
10
12
|
__name: "BbDropdown",
|
11
13
|
props: {
|
12
14
|
arrowPadding: { default: 10 },
|
@@ -23,21 +25,19 @@ const fe = /* @__PURE__ */ W({
|
|
23
25
|
width: { default: 200 }
|
24
26
|
},
|
25
27
|
setup(z) {
|
26
|
-
const
|
27
|
-
() => import("./index287.js")
|
28
|
-
), r = z, d = r.id ?? `bb_${ee().id.value}`, m = A(() => {
|
28
|
+
const r = z, d = r.id ?? `bb_${Z().id.value}`, m = A(() => {
|
29
29
|
let e = r.items.findIndex((t) => !t.disabled), o = H(
|
30
30
|
r.items,
|
31
31
|
(t) => !t.disabled
|
32
32
|
);
|
33
33
|
return r.items.map((t, n) => {
|
34
|
-
const i = `${d}-item-${t.key}`, { onClick:
|
34
|
+
const i = `${d}-item-${t.key}`, { onClick: q, ...F } = t, _ = async () => {
|
35
35
|
await b();
|
36
36
|
const s = document.querySelector(`#${d}`);
|
37
37
|
if (s) s instanceof HTMLElement && s.focus();
|
38
38
|
else return;
|
39
|
-
|
40
|
-
},
|
39
|
+
q && q();
|
40
|
+
}, G = (s) => {
|
41
41
|
if (s.target instanceof HTMLElement && s.target.dataset.dropdownItem) {
|
42
42
|
if (!a.value) return;
|
43
43
|
if (s.key === "ArrowDown") {
|
@@ -72,24 +72,24 @@ const fe = /* @__PURE__ */ W({
|
|
72
72
|
}
|
73
73
|
};
|
74
74
|
return {
|
75
|
-
...
|
76
|
-
disabled:
|
75
|
+
...F,
|
76
|
+
disabled: F.disabled || r.disabled,
|
77
77
|
id: i,
|
78
|
-
onClick:
|
79
|
-
onKeydown:
|
78
|
+
onClick: _,
|
79
|
+
onKeydown: G
|
80
80
|
};
|
81
81
|
});
|
82
82
|
}), v = w(), a = w();
|
83
|
-
|
83
|
+
ee(
|
84
84
|
v,
|
85
85
|
([{ intersectionRatio: e }]) => {
|
86
86
|
e !== 1 && l.value && b();
|
87
87
|
},
|
88
88
|
{ threshold: [0, 1] }
|
89
89
|
);
|
90
|
-
const c = w(!1), l = w(!1), f = w(!1), p = w(!0),
|
90
|
+
const c = w(!1), l = w(!1), f = w(!1), p = w(!0), N = () => {
|
91
91
|
c.value || f.value || (l.value ? b() : $());
|
92
|
-
},
|
92
|
+
}, R = async (e) => {
|
93
93
|
let o = r.items.findIndex((n) => !n.disabled), t = H(
|
94
94
|
r.items,
|
95
95
|
(n) => !n.disabled
|
@@ -131,29 +131,29 @@ const fe = /* @__PURE__ */ W({
|
|
131
131
|
}
|
132
132
|
b();
|
133
133
|
}
|
134
|
-
},
|
135
|
-
|
134
|
+
}, U = w(!1), $ = async () => {
|
135
|
+
U.value = !0, await x(50), l.value = !0, document.addEventListener("click", I, { passive: !0 }), document.addEventListener("focusin", M, { passive: !0 }), document.addEventListener("keydown", S, { passive: !0 });
|
136
136
|
}, b = async () => {
|
137
137
|
l.value = !1, document.removeEventListener("click", I), document.removeEventListener("focusin", M), document.removeEventListener("keydown", S);
|
138
|
-
},
|
138
|
+
}, V = A(() => ({
|
139
139
|
class: {
|
140
140
|
"bb-dropdown--block": r.block,
|
141
141
|
[`bb-dropdown--theme-${r.theme}`]: r.theme
|
142
142
|
}
|
143
143
|
}));
|
144
|
-
return (e, o) => (T(), D("span",
|
145
|
-
|
144
|
+
return (e, o) => (T(), D("span", B({ class: "bb-dropdown" }, V.value), [
|
145
|
+
C("span", {
|
146
146
|
ref_key: "wrapper",
|
147
147
|
ref: v,
|
148
148
|
class: "bb-dropdown__wrapper"
|
149
149
|
}, [
|
150
|
-
g(e.$slots, "activator",
|
150
|
+
g(e.$slots, "activator", Q(W({
|
151
151
|
props: {
|
152
152
|
"aria-expanded": l.value,
|
153
153
|
"aria-controls": `menu_${h(d)}`,
|
154
154
|
id: h(d),
|
155
|
-
onClick:
|
156
|
-
onKeydown:
|
155
|
+
onClick: N,
|
156
|
+
onKeydown: R,
|
157
157
|
disabled: e.disabled
|
158
158
|
},
|
159
159
|
closed: p.value,
|
@@ -164,7 +164,7 @@ const fe = /* @__PURE__ */ W({
|
|
164
164
|
placement: e.placement
|
165
165
|
})))
|
166
166
|
], 512),
|
167
|
-
O(
|
167
|
+
O(ne, {
|
168
168
|
"arrow-padding": e.arrowPadding,
|
169
169
|
"base-class": "bb-dropdown",
|
170
170
|
"container-attributes": {
|
@@ -182,11 +182,11 @@ const fe = /* @__PURE__ */ W({
|
|
182
182
|
wrapper: v.value
|
183
183
|
}, {
|
184
184
|
default: K(() => [
|
185
|
-
|
185
|
+
C("span", {
|
186
186
|
ref_key: "content",
|
187
187
|
ref: a,
|
188
188
|
class: "bb-dropdown__items-container",
|
189
|
-
style:
|
189
|
+
style: X({ width: `${e.width}px` })
|
190
190
|
}, [
|
191
191
|
g(e.$slots, "prepend", {
|
192
192
|
closed: p.value,
|
@@ -196,7 +196,7 @@ const fe = /* @__PURE__ */ W({
|
|
196
196
|
opening: c.value,
|
197
197
|
placement: e.placement
|
198
198
|
}),
|
199
|
-
(T(!0), D(P, null,
|
199
|
+
(T(!0), D(P, null, Y(m.value, (t, n) => (T(), D(P, {
|
200
200
|
key: t.key
|
201
201
|
}, [
|
202
202
|
g(e.$slots, "item:prepend", {
|
@@ -210,7 +210,7 @@ const fe = /* @__PURE__ */ W({
|
|
210
210
|
placement: e.placement,
|
211
211
|
text: t.text
|
212
212
|
}),
|
213
|
-
O(
|
213
|
+
O(te, B({
|
214
214
|
"aria-role": "menuitem",
|
215
215
|
class: ["bb-dropdown__item", {
|
216
216
|
"bb-dropdown__item--first": n === 0,
|
@@ -274,5 +274,5 @@ const fe = /* @__PURE__ */ W({
|
|
274
274
|
}
|
275
275
|
});
|
276
276
|
export {
|
277
|
-
|
277
|
+
pe as default
|
278
278
|
};
|
package/dist/index79.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as j, ref as g, watch as x, computed as m, openBlock as V, createBlock as G, resolveDynamicComponent as K, normalizeClass as O, withCtx as M, createElementVNode as c, withModifiers as y, renderSlot as U, normalizeProps as Y, guardReactiveProps as Z, createTextVNode as J, unref as Q, createVNode as W, createElementBlock as F, Fragment as X, renderList as ee, toDisplayString as te } from "vue";
|
2
|
-
import { findInTree as ae } from "./
|
2
|
+
import { findInTree as ae } from "./index255.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index127.js";
|
5
5
|
/* empty css */
|
@@ -53,7 +53,7 @@ const le = ["accept", "autofocus", "disabled", "multiple"], se = { class: "bb-dr
|
|
53
53
|
const r = a.accept[t];
|
54
54
|
if (r.includes("/")) e.push(r);
|
55
55
|
else {
|
56
|
-
b || (b = (await import("./
|
56
|
+
b || (b = (await import("./index254.js")).default);
|
57
57
|
const o = b.getType(r);
|
58
58
|
if (!o)
|
59
59
|
throw new Error(
|
package/dist/index81.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as h, ref as t, onMounted as m, onBeforeUnmount as p, openBlock as g, createBlock as b, resolveDynamicComponent as w, withCtx as _, renderSlot as I } from "vue";
|
2
|
-
import { throttle as c } from "./
|
2
|
+
import { throttle as c } from "./index207.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index84.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { defineComponent as te, ref as l, useAttrs as oe, getCurrentInstance as le, computed as p, nextTick as se, onBeforeUnmount as x, onMounted as ae, watch as ne, openBlock as g, createBlock as ie, Teleport as re, createElementVNode as s, mergeProps as O, createElementBlock as V, renderSlot as n, createTextVNode as ue, toDisplayString as S, createCommentVNode as z } from "vue";
|
2
|
-
import { useFocusTrap as ce } from "./
|
2
|
+
import { useFocusTrap as ce } from "./index208.js";
|
3
3
|
import { useId as A } from "./index8.js";
|
4
4
|
import { wait as E } from "./index131.js";
|
5
|
-
import { useModalsState as b } from "./
|
5
|
+
import { useModalsState as b } from "./index210.js";
|
6
6
|
const de = ["inert"], fe = { class: "bb-offcanvas-close" }, ve = ["aria-label"], ge = /* @__PURE__ */ te({
|
7
7
|
__name: "BbOffCanvas",
|
8
8
|
props: {
|
package/dist/index86.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as P, computed as _, ref as g, onMounted as A, onBeforeUnmount as E, openBlock as y, createElementBlock as k, normalizeClass as C, createElementVNode as i, createVNode as V, unref as S, withCtx as h, renderSlot as v, Fragment as W, renderList as R, toDisplayString as M, nextTick as $ } from "vue";
|
2
|
-
import { debounce as F } from "./
|
2
|
+
import { debounce as F } from "./index274.js";
|
3
3
|
/* empty css */
|
4
4
|
/* empty css */
|
5
5
|
import w from "./index13.js";
|
package/dist/index88.js
CHANGED
@@ -1,12 +1,14 @@
|
|
1
|
-
import { defineComponent as M,
|
2
|
-
import { useFocusTrap as
|
3
|
-
import { useId as
|
4
|
-
import { useIntersectionObserver as
|
5
|
-
import { waitFor as
|
6
|
-
import
|
1
|
+
import { defineComponent as M, ref as n, computed as v, openBlock as k, createElementBlock as O, mergeProps as F, createElementVNode as p, renderSlot as y, normalizeProps as S, guardReactiveProps as H, createVNode as V, withCtx as C, createBlock as q, createCommentVNode as I, nextTick as W } from "vue";
|
2
|
+
import { useFocusTrap as z } from "./index208.js";
|
3
|
+
import { useId as A } from "./index8.js";
|
4
|
+
import { useIntersectionObserver as R } from "./index132.js";
|
5
|
+
import { waitFor as j } from "./index209.js";
|
6
|
+
import G from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import
|
9
|
-
|
8
|
+
import J from "./index252.js";
|
9
|
+
/* empty css */
|
10
|
+
import { useDebounceFn as K } from "./index204.js";
|
11
|
+
const re = /* @__PURE__ */ M({
|
10
12
|
__name: "BbPopover",
|
11
13
|
props: {
|
12
14
|
arrowPadding: { default: 10 },
|
@@ -23,10 +25,8 @@ const ne = /* @__PURE__ */ M({
|
|
23
25
|
width: {}
|
24
26
|
},
|
25
27
|
emits: ["shown", "hidden"],
|
26
|
-
setup(
|
27
|
-
const B =
|
28
|
-
() => import("./index287.js")
|
29
|
-
), o = $, s = _, { id: P } = G(), p = `bbp_${P.value}`, n = r(), i = r(), { activate: N, deactivate: m } = j(i, {
|
28
|
+
setup(_, { expose: $, emit: T }) {
|
29
|
+
const t = _, s = T, { id: B } = A(), c = `bbp_${B.value}`, r = n(), i = n(), { activate: P, deactivate: m } = z(i, {
|
30
30
|
/**
|
31
31
|
* This traps all clicks outside so we are pressing
|
32
32
|
* the trigger we just allow and process that in its
|
@@ -36,10 +36,10 @@ const ne = /* @__PURE__ */ M({
|
|
36
36
|
*/
|
37
37
|
clickOutsideDeactivates: (e) => {
|
38
38
|
var h;
|
39
|
-
const
|
40
|
-
return
|
39
|
+
const o = e.target;
|
40
|
+
return o instanceof HTMLElement && (h = r.value) != null && h.contains(o) || (l(), s("hidden")), !0;
|
41
41
|
},
|
42
|
-
escapeDeactivates: () => (
|
42
|
+
escapeDeactivates: () => (W(async () => {
|
43
43
|
await l(), u(), s("hidden");
|
44
44
|
}), !0),
|
45
45
|
/* We don't return focus so that when
|
@@ -48,77 +48,77 @@ const ne = /* @__PURE__ */ M({
|
|
48
48
|
*/
|
49
49
|
returnFocusOnDeactivate: !1
|
50
50
|
});
|
51
|
-
|
52
|
-
|
51
|
+
R(
|
52
|
+
r,
|
53
53
|
async ([{ intersectionRatio: e }]) => {
|
54
54
|
e !== 1 && a.value && (m(), await l(), s("hidden"));
|
55
55
|
},
|
56
56
|
{ threshold: [0, 1] }
|
57
57
|
);
|
58
|
-
const
|
58
|
+
const N = v(() => ({
|
59
59
|
class: {
|
60
|
-
"bb-popover--block":
|
61
|
-
[`bb-popover--${
|
60
|
+
"bb-popover--block": t.block,
|
61
|
+
[`bb-popover--${t.theme}`]: !0
|
62
62
|
}
|
63
|
-
})),
|
64
|
-
|
63
|
+
})), D = n(!1), d = n(!1), a = n(!1), b = n(!1), w = n(!0), E = async () => {
|
64
|
+
D.value = !0, await j(() => !!i.value), a.value = !0;
|
65
65
|
}, l = async () => {
|
66
66
|
a.value = !1;
|
67
|
-
},
|
67
|
+
}, g = async () => {
|
68
68
|
if (a.value) {
|
69
69
|
await l(), u(), s("hidden");
|
70
70
|
return;
|
71
71
|
}
|
72
|
-
if (d.value ||
|
73
|
-
await
|
74
|
-
let e =
|
75
|
-
|
76
|
-
onPostActivate:
|
72
|
+
if (d.value || t.disabled) return;
|
73
|
+
await E();
|
74
|
+
let e = t.focusTarget ?? ".bb-popover__close";
|
75
|
+
P({
|
76
|
+
onPostActivate: K(() => {
|
77
77
|
if (i.value) {
|
78
|
-
const
|
79
|
-
|
78
|
+
const o = i.value.querySelector(e);
|
79
|
+
o instanceof HTMLElement && (o.focus(), s("shown"));
|
80
80
|
}
|
81
81
|
}, 150)
|
82
82
|
});
|
83
83
|
}, u = () => {
|
84
|
-
var
|
85
|
-
const e = (
|
84
|
+
var o;
|
85
|
+
const e = (o = r.value) == null ? void 0 : o.querySelector(`[aria-controls=popover_${c}]`);
|
86
86
|
e instanceof HTMLElement && e.focus({ preventScroll: !0 });
|
87
87
|
}, f = async () => {
|
88
88
|
m(), await l(), u(), s("hidden");
|
89
89
|
}, L = v(() => {
|
90
|
-
if (
|
90
|
+
if (t.width) {
|
91
91
|
let e;
|
92
|
-
if (typeof
|
93
|
-
if (
|
94
|
-
if (!
|
95
|
-
e = `${
|
92
|
+
if (typeof t.width == "string" && Number.isNaN(Number(t.width)))
|
93
|
+
if (t.width.includes("%")) {
|
94
|
+
if (!r.value) return;
|
95
|
+
e = `${r.value.clientWidth * (+t.width.replace("%", "") / 100)}`;
|
96
96
|
} else
|
97
|
-
e =
|
97
|
+
e = t.width;
|
98
98
|
else
|
99
|
-
e = `${
|
99
|
+
e = `${t.width}`;
|
100
100
|
return `${e}px`;
|
101
101
|
}
|
102
102
|
});
|
103
|
-
return
|
104
|
-
open:
|
103
|
+
return $({
|
104
|
+
open: g,
|
105
105
|
close: f,
|
106
106
|
closed: v(() => !a.value)
|
107
|
-
}), (e,
|
108
|
-
|
107
|
+
}), (e, o) => (k(), O("span", F({ class: "bb-popover" }, N.value), [
|
108
|
+
p("span", {
|
109
109
|
ref_key: "wrapper",
|
110
|
-
ref:
|
110
|
+
ref: r,
|
111
111
|
class: "bb-popover__wrapper"
|
112
112
|
}, [
|
113
|
-
|
113
|
+
y(e.$slots, "activator", S(H({
|
114
114
|
props: {
|
115
|
-
"aria-controls": `popover_${
|
115
|
+
"aria-controls": `popover_${c}`,
|
116
116
|
"aria-expanded": a.value,
|
117
|
-
onClick:
|
118
|
-
id:
|
117
|
+
onClick: g,
|
118
|
+
id: c,
|
119
119
|
disabled: !!e.disabled
|
120
120
|
},
|
121
|
-
closed:
|
121
|
+
closed: w.value,
|
122
122
|
closing: b.value,
|
123
123
|
disabled: !!e.disabled,
|
124
124
|
open: a.value,
|
@@ -126,11 +126,11 @@ const ne = /* @__PURE__ */ M({
|
|
126
126
|
placement: e.placement
|
127
127
|
})))
|
128
128
|
], 512),
|
129
|
-
|
129
|
+
V(J, {
|
130
130
|
"arrow-padding": e.arrowPadding,
|
131
131
|
"base-class": "bb-popover",
|
132
132
|
"container-attributes": {
|
133
|
-
id: `popover_${
|
133
|
+
id: `popover_${c}`,
|
134
134
|
style: { width: L.value }
|
135
135
|
},
|
136
136
|
eager: e.eager,
|
@@ -140,27 +140,27 @@ const ne = /* @__PURE__ */ M({
|
|
140
140
|
placement: e.placement,
|
141
141
|
theme: e.theme,
|
142
142
|
"transition-duration": e.transitionDuration,
|
143
|
-
wrapper:
|
143
|
+
wrapper: r.value
|
144
144
|
}, {
|
145
145
|
default: C(() => [
|
146
|
-
|
146
|
+
p("div", {
|
147
147
|
ref_key: "content",
|
148
148
|
ref: i,
|
149
149
|
class: "bb-popover__content"
|
150
150
|
}, [
|
151
|
-
e.showClose ? (
|
151
|
+
e.showClose ? (k(), q(G, {
|
152
152
|
key: 0,
|
153
153
|
class: "bb-popover__close",
|
154
154
|
onClick: f
|
155
155
|
}, {
|
156
|
-
default: C(() =>
|
157
|
-
|
158
|
-
|
156
|
+
default: C(() => o[0] || (o[0] = [
|
157
|
+
p("span", { class: "bb-popover__close-label sr-only" }, "Chiudi", -1),
|
158
|
+
p("svg", {
|
159
159
|
fill: "none",
|
160
160
|
viewBox: "0 0 24 24",
|
161
161
|
xmlns: "http://www.w3.org/2000/svg"
|
162
162
|
}, [
|
163
|
-
|
163
|
+
p("path", {
|
164
164
|
d: "M23 23L1 1M23 1L1 23",
|
165
165
|
stroke: "currentColor",
|
166
166
|
"stroke-linecap": "round",
|
@@ -169,10 +169,10 @@ const ne = /* @__PURE__ */ M({
|
|
169
169
|
], -1)
|
170
170
|
])),
|
171
171
|
_: 1
|
172
|
-
})) :
|
173
|
-
|
172
|
+
})) : I("", !0),
|
173
|
+
y(e.$slots, "default", {
|
174
174
|
close: f,
|
175
|
-
closed:
|
175
|
+
closed: w.value,
|
176
176
|
closing: b.value,
|
177
177
|
disabled: !!e.disabled,
|
178
178
|
open: a.value,
|
@@ -187,5 +187,5 @@ const ne = /* @__PURE__ */ M({
|
|
187
187
|
}
|
188
188
|
});
|
189
189
|
export {
|
190
|
-
|
190
|
+
re as default
|
191
191
|
};
|