bitboss-ui 2.0.107 → 2.0.109
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/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +4 -0
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +4 -0
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +1 -1
- package/dist/components/BbPopover/BbPopover.vue.d.ts +1 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -0
- package/dist/components/BbTeleport.vue.d.ts +4 -1
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +1 -1
- package/dist/components/CommonFloating.vue.d.ts +4 -0
- package/dist/index100.js +8 -8
- package/dist/index101.js +22 -20
- package/dist/index111.js +10 -10
- package/dist/index119.js +2 -2
- package/dist/index121.js +18 -16
- package/dist/index123.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index131.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index15.js +4 -4
- package/dist/index17.js +3 -3
- package/dist/index19.js +7 -7
- package/dist/index205.js +2 -115
- package/dist/index206.js +115 -2
- package/dist/index208.js +1 -1
- package/dist/index209.js +2 -53
- package/dist/index21.js +13 -13
- package/dist/index210.js +6 -0
- package/dist/index211.js +2 -13
- package/dist/index212.js +53 -3
- package/dist/index214.js +13 -6
- package/dist/index215.js +20 -7
- package/dist/index216.js +4 -12
- package/dist/index217.js +2 -2
- package/dist/index218.js +126 -2
- package/dist/index219.js +5 -4
- package/dist/index220.js +125 -2
- package/dist/index221.js +16 -3
- package/dist/index222.js +15 -19
- package/dist/index223.js +19 -4
- package/dist/index224.js +14 -280
- package/dist/index225.js +2 -16
- package/dist/index226.js +2 -16
- package/dist/index227.js +40 -18
- package/dist/index228.js +6 -15
- package/dist/index229.js +15 -19
- package/dist/index23.js +47 -43
- package/dist/index230.js +5 -27
- package/dist/index231.js +369 -2
- package/dist/index232.js +79 -243
- package/dist/index234.js +25 -44
- package/dist/index235.js +17 -5
- package/dist/index236.js +47 -59
- package/dist/index237.js +13 -124
- package/dist/index238.js +12 -125
- package/dist/index239.js +16 -2
- package/dist/index240.js +3 -5
- package/dist/index241.js +3 -369
- package/dist/index242.js +7 -86
- package/dist/index243.js +21 -0
- package/dist/index244.js +27 -25
- package/dist/index245.js +250 -17
- package/dist/index246.js +50 -46
- package/dist/index247.js +44 -15
- package/dist/index248.js +5 -12
- package/dist/index249.js +60 -16
- package/dist/index25.js +5 -5
- package/dist/index250.js +1 -1
- package/dist/index251.js +1 -1
- package/dist/index252.js +1 -1
- package/dist/index254.js +1 -1
- package/dist/index257.js +2 -2
- package/dist/index258.js +2 -2
- package/dist/index261.js +27 -8
- package/dist/index262.js +9 -23
- package/dist/index263.js +23 -89
- package/dist/index264.js +92 -0
- package/dist/index266.js +6 -16
- package/dist/index267.js +16 -9
- package/dist/index268.js +4 -9
- package/dist/index269.js +9 -8
- package/dist/index27.js +1 -1
- package/dist/index270.js +3 -28
- package/dist/index272.js +9 -0
- package/dist/index273.js +175 -6
- package/dist/index274.js +6 -430
- package/dist/index275.js +11 -2
- package/dist/index276.js +280 -88
- package/dist/index277.js +6 -7
- package/dist/index278.js +2 -11
- package/dist/index279.js +2 -4
- package/dist/index280.js +2 -224
- package/dist/index281.js +2 -200
- package/dist/index282.js +2 -176
- package/dist/index283.js +2 -6
- package/dist/index284.js +126 -2
- package/dist/index285.js +431 -2
- package/dist/index286.js +2 -2
- package/dist/index287.js +22 -2
- package/dist/index289.js +3 -2
- package/dist/index29.js +3 -3
- package/dist/index290.js +17 -2
- package/dist/index291.js +9 -2
- package/dist/index292.js +8 -2
- package/dist/index293.js +224 -2
- package/dist/index294.js +2 -2
- package/dist/index295.js +2 -22
- package/dist/index296.js +4 -0
- package/dist/index297.js +2 -2
- package/dist/index298.js +2 -126
- package/dist/index299.js +1 -21
- package/dist/index300.js +24 -0
- package/dist/index302.js +87 -15
- package/dist/index303.js +191 -427
- package/dist/index304.js +422 -113
- package/dist/index305.js +127 -3
- package/dist/index306.js +1 -1
- package/dist/index307.js +3 -214
- package/dist/index308.js +214 -3
- package/dist/index309.js +5 -3
- package/dist/index31.js +2 -2
- package/dist/index310.js +67 -3
- package/dist/index311.js +2 -58
- package/dist/index312.js +5 -2
- package/dist/index313.js +8 -67
- package/dist/index314.js +3 -5
- package/dist/index315.js +3 -32
- package/dist/index316.js +3 -7
- package/dist/index317.js +3 -19
- package/dist/index318.js +57 -52
- package/dist/index319.js +32 -52
- package/dist/index320.js +53 -47
- package/dist/index321.js +53 -7
- package/dist/index322.js +46 -4
- package/dist/index323.js +6 -7
- package/dist/index324.js +7 -480
- package/dist/index325.js +18 -3
- package/dist/index326.js +1 -1
- package/dist/index327.js +482 -0
- package/dist/index329.js +420 -43
- package/dist/index33.js +7 -7
- package/dist/index330.js +47 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +85 -81
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +7 -7
- package/dist/index45.js +27 -27
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index75.js +22 -20
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +3 -3
- package/dist/index86.js +1 -1
- package/dist/index88.js +40 -38
- package/dist/index90.js +1 -1
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +4 -0
- package/package.json +2 -2
- package/dist/index213.js +0 -43
- package/dist/index233.js +0 -54
- package/dist/index265.js +0 -8
- package/dist/index271.js +0 -5
- package/dist/index301.js +0 -5
- package/dist/index328.js +0 -426
- /package/dist/{index288.js → index331.js} +0 -0
package/dist/index75.js
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { defineComponent as X, computed as A, ref as y, openBlock as $, createElementBlock as
|
2
|
-
import { findRightIndex as I } from "./
|
1
|
+
import { defineComponent as X, computed as A, ref as y, openBlock as $, createElementBlock as D, mergeProps as B, createElementVNode as H, renderSlot as g, normalizeProps as Y, guardReactiveProps as Z, unref as h, createVNode as C, withCtx as O, normalizeStyle as x, Fragment as K, renderList as ee, createBlock as P, createCommentVNode as N, toDisplayString as te } from "vue";
|
2
|
+
import { findRightIndex as I } from "./index262.js";
|
3
3
|
import { useId as ne } from "./index8.js";
|
4
4
|
import { wait as oe } from "./index130.js";
|
5
5
|
import { useIntersectionObserver as ae } from "./index132.js";
|
6
6
|
import le from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import V from "./
|
9
|
-
import se from "./
|
8
|
+
import V from "./index263.js";
|
9
|
+
import se from "./index264.js";
|
10
10
|
/* empty css */
|
11
11
|
import j from "./index127.js";
|
12
12
|
/* empty css */
|
@@ -23,6 +23,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
23
23
|
placement: { default: "bottom" },
|
24
24
|
theme: { default: "default" },
|
25
25
|
transitionDuration: { default: 300 },
|
26
|
+
teleportTarget: {},
|
26
27
|
items: {},
|
27
28
|
width: { default: 200 }
|
28
29
|
},
|
@@ -45,24 +46,24 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
45
46
|
if (s.key === "ArrowDown") {
|
46
47
|
if (s.preventDefault(), a.value && n !== o) {
|
47
48
|
const d = a.value.querySelector(
|
48
|
-
V.map((
|
49
|
+
V.map((w) => `#${i} ~ ${w}`).join(",")
|
49
50
|
);
|
50
51
|
d && d instanceof HTMLElement && d.focus();
|
51
52
|
}
|
52
53
|
} else if (s.key === "ArrowUp") {
|
53
54
|
if (s.preventDefault(), a.value && n !== e) {
|
54
|
-
const d = I(r.items, (E,
|
55
|
+
const d = I(r.items, (E, T) => T < n && !E.disabled), k = Array.from(
|
55
56
|
a.value.querySelectorAll(".bb-dropdown__item")
|
56
57
|
)[d];
|
57
58
|
k && k instanceof HTMLElement && k.focus();
|
58
59
|
}
|
59
60
|
} else if (s.key === "Tab") {
|
60
61
|
if (n === o && !s.shiftKey) {
|
61
|
-
const d = V.join(","),
|
62
|
+
const d = V.join(","), w = Array.from(
|
62
63
|
document.querySelectorAll(d)
|
63
|
-
), k =
|
64
|
-
(
|
65
|
-
), E =
|
64
|
+
), k = w.findIndex(
|
65
|
+
(T) => T.id === u
|
66
|
+
), E = w[k + 1];
|
66
67
|
if (E) E instanceof HTMLElement && (s.preventDefault(), b(), E.focus());
|
67
68
|
else return;
|
68
69
|
} else if (n === e && s.shiftKey) {
|
@@ -143,13 +144,13 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
143
144
|
[`bb-dropdown--${r.theme}`]: r.theme
|
144
145
|
}
|
145
146
|
}));
|
146
|
-
return (e, o) => ($(),
|
147
|
+
return (e, o) => ($(), D("span", B({ class: "bb-dropdown" }, J.value), [
|
147
148
|
H("span", {
|
148
149
|
ref_key: "wrapper",
|
149
150
|
ref: v,
|
150
151
|
class: "bb-dropdown__wrapper"
|
151
152
|
}, [
|
152
|
-
|
153
|
+
g(e.$slots, "activator", Y(Z({
|
153
154
|
props: {
|
154
155
|
"aria-expanded": l.value,
|
155
156
|
"aria-controls": `menu_${h(u)}`,
|
@@ -179,6 +180,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
179
180
|
open: l.value,
|
180
181
|
padding: e.padding,
|
181
182
|
placement: e.placement,
|
183
|
+
"teleport-target": e.teleportTarget,
|
182
184
|
theme: e.theme,
|
183
185
|
"transition-duration": e.transitionDuration,
|
184
186
|
wrapper: v.value
|
@@ -190,7 +192,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
190
192
|
class: "bb-dropdown__items-container",
|
191
193
|
style: x({ width: `${e.width}px` })
|
192
194
|
}, [
|
193
|
-
|
195
|
+
g(e.$slots, "prepend", {
|
194
196
|
closed: f.value,
|
195
197
|
closing: p.value,
|
196
198
|
disabled: e.disabled,
|
@@ -198,10 +200,10 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
198
200
|
opening: c.value,
|
199
201
|
placement: e.placement
|
200
202
|
}),
|
201
|
-
($(!0),
|
203
|
+
($(!0), D(K, null, ee(m.value, (t, n) => ($(), D(K, {
|
202
204
|
key: t.key
|
203
205
|
}, [
|
204
|
-
|
206
|
+
g(e.$slots, "item:prepend", {
|
205
207
|
closed: f.value,
|
206
208
|
closing: p.value,
|
207
209
|
disabled: t.disabled,
|
@@ -222,7 +224,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
222
224
|
ref_for: !0
|
223
225
|
}, t), {
|
224
226
|
default: O(() => [
|
225
|
-
|
227
|
+
g(e.$slots, t.key, {
|
226
228
|
closed: f.value,
|
227
229
|
closing: p.value,
|
228
230
|
disabled: t.disabled,
|
@@ -233,7 +235,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
233
235
|
placement: e.placement,
|
234
236
|
text: t.text
|
235
237
|
}, () => [
|
236
|
-
|
238
|
+
g(e.$slots, "item", {
|
237
239
|
closed: f.value,
|
238
240
|
closing: p.value,
|
239
241
|
disabled: t.disabled,
|
@@ -260,7 +262,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
260
262
|
]),
|
261
263
|
_: 2
|
262
264
|
}, 1040, ["class"]),
|
263
|
-
|
265
|
+
g(e.$slots, "item:append", {
|
264
266
|
closed: f.value,
|
265
267
|
closing: p.value,
|
266
268
|
disabled: t.disabled,
|
@@ -272,7 +274,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
272
274
|
text: t.text
|
273
275
|
})
|
274
276
|
], 64))), 128)),
|
275
|
-
|
277
|
+
g(e.$slots, "append", {
|
276
278
|
closed: f.value,
|
277
279
|
closing: p.value,
|
278
280
|
disabled: e.disabled,
|
@@ -283,7 +285,7 @@ const ie = { class: "item__content" }, ke = /* @__PURE__ */ X({
|
|
283
285
|
], 4)
|
284
286
|
]),
|
285
287
|
_: 3
|
286
|
-
}, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])
|
288
|
+
}, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "teleport-target", "theme", "transition-duration", "wrapper"])
|
287
289
|
], 16));
|
288
290
|
}
|
289
291
|
});
|
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 "./index267.js";
|
3
3
|
import { useId as re } from "./index8.js";
|
4
4
|
import oe from "./index128.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("./index266.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 "./index241.js";
|
3
3
|
const M = /* @__PURE__ */ h({
|
4
4
|
__name: "BbIntersection",
|
5
5
|
props: {
|
package/dist/index84.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { defineComponent as se, ref as l, useAttrs as ae, computed as u, getCurrentInstance as ne, nextTick as ie, onBeforeUnmount as O, onMounted as re, watch as ue, openBlock as g, createBlock as ce, withCtx as de, createElementVNode as s, mergeProps as S, createElementBlock as z, renderSlot as n, createTextVNode as fe, toDisplayString as A, unref as ve, createCommentVNode as $ } from "vue";
|
2
|
-
import { useFocusTrap as pe } from "./
|
2
|
+
import { useFocusTrap as pe } from "./index227.js";
|
3
3
|
import { useId as E } from "./index8.js";
|
4
4
|
import { wait as H } from "./index130.js";
|
5
|
-
import { useModalsState as b } from "./
|
6
|
-
import be from "./
|
5
|
+
import { useModalsState as b } from "./index242.js";
|
6
|
+
import be from "./index229.js";
|
7
7
|
import { useMobile as me } from "./index9.js";
|
8
8
|
import { useLocale as ye } from "./index217.js";
|
9
9
|
const he = ["inert"], ge = { class: "bb-offcanvas-close" }, _e = ["aria-label"], Te = /* @__PURE__ */ se({
|
package/dist/index86.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as E, computed as h, ref as g, onMounted as P, onBeforeUnmount as W, openBlock as k, createElementBlock as V, normalizeClass as $, createElementVNode as i, createVNode as S, unref as v, withCtx as w, renderSlot as c, toDisplayString as m, Fragment as R, renderList as F, nextTick as x } from "vue";
|
2
|
-
import { debounce as T } from "./
|
2
|
+
import { debounce as T } from "./index269.js";
|
3
3
|
/* empty css */
|
4
4
|
/* empty css */
|
5
5
|
import z from "./index13.js";
|
package/dist/index88.js
CHANGED
@@ -1,15 +1,15 @@
|
|
1
|
-
import { defineComponent as O, ref as n, computed as v, openBlock as y, createElementBlock as S, mergeProps as F, createElementVNode as
|
2
|
-
import { useFocusTrap as j } from "./
|
1
|
+
import { defineComponent as O, ref as n, computed as v, openBlock as y, createElementBlock as S, mergeProps as F, createElementVNode as p, renderSlot as k, normalizeProps as H, guardReactiveProps as V, createVNode as q, withCtx as T, createBlock as I, toDisplayString as W, unref as z, createCommentVNode as A, nextTick as R } from "vue";
|
2
|
+
import { useFocusTrap as j } from "./index227.js";
|
3
3
|
import { useId as G } from "./index8.js";
|
4
4
|
import { useIntersectionObserver as J } from "./index132.js";
|
5
|
-
import { waitFor as K } from "./
|
5
|
+
import { waitFor as K } from "./index228.js";
|
6
6
|
import Q from "./index13.js";
|
7
7
|
/* empty css */
|
8
|
-
import U from "./
|
8
|
+
import U from "./index264.js";
|
9
9
|
/* empty css */
|
10
10
|
import { useLocale as X } from "./index217.js";
|
11
|
-
import { useDebounceFn as Y } from "./
|
12
|
-
const Z = { class: "bb-popover__close-label sr-only" },
|
11
|
+
import { useDebounceFn as Y } from "./index206.js";
|
12
|
+
const Z = { class: "bb-popover__close-label sr-only" }, ce = /* @__PURE__ */ O({
|
13
13
|
__name: "BbPopover",
|
14
14
|
props: {
|
15
15
|
arrowPadding: { default: 10 },
|
@@ -23,12 +23,13 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
|
|
23
23
|
showClose: { type: Boolean, default: !0 },
|
24
24
|
theme: { default: "default" },
|
25
25
|
transitionDuration: { default: 150 },
|
26
|
+
teleportTarget: {},
|
26
27
|
focusTarget: {},
|
27
28
|
width: {}
|
28
29
|
},
|
29
30
|
emits: ["shown", "hidden"],
|
30
|
-
setup(
|
31
|
-
const
|
31
|
+
setup(_, { expose: $, emit: C }) {
|
32
|
+
const t = _, s = C, { t: B } = X(), { id: L } = G(), c = `bbp_${L.value}`, r = n(), l = n(), { activate: P, deactivate: m } = j(l, {
|
32
33
|
/**
|
33
34
|
* This traps all clicks outside so we are pressing
|
34
35
|
* the trigger we just allow and process that in its
|
@@ -38,8 +39,8 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
|
|
38
39
|
*/
|
39
40
|
clickOutsideDeactivates: (e) => {
|
40
41
|
var h;
|
41
|
-
const
|
42
|
-
return
|
42
|
+
const o = e.target;
|
43
|
+
return o instanceof HTMLElement && (h = r.value) != null && h.contains(o) || (i(), s("hidden")), !0;
|
43
44
|
},
|
44
45
|
escapeDeactivates: () => (R(async () => {
|
45
46
|
await i(), u(), s("hidden");
|
@@ -59,8 +60,8 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
|
|
59
60
|
);
|
60
61
|
const D = v(() => ({
|
61
62
|
class: {
|
62
|
-
"bb-popover--block":
|
63
|
-
[`bb-popover--${
|
63
|
+
"bb-popover--block": t.block,
|
64
|
+
[`bb-popover--${t.theme}`]: !0
|
64
65
|
}
|
65
66
|
})), N = n(!1), d = n(!1), a = n(!1), b = n(!1), g = n(!0), E = async () => {
|
66
67
|
N.value = !0, await K(() => !!l.value), a.value = !0;
|
@@ -71,53 +72,53 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
|
|
71
72
|
await i(), u(), s("hidden");
|
72
73
|
return;
|
73
74
|
}
|
74
|
-
if (d.value ||
|
75
|
+
if (d.value || t.disabled) return;
|
75
76
|
await E();
|
76
|
-
let e =
|
77
|
+
let e = t.focusTarget ?? ".bb-popover__close";
|
77
78
|
P({
|
78
79
|
onPostActivate: Y(() => {
|
79
80
|
if (l.value) {
|
80
|
-
const
|
81
|
-
|
81
|
+
const o = l.value.querySelector(e);
|
82
|
+
o instanceof HTMLElement && (o.focus(), s("shown"));
|
82
83
|
}
|
83
84
|
}, 150)
|
84
85
|
});
|
85
86
|
}, u = () => {
|
86
|
-
var
|
87
|
-
const e = (
|
87
|
+
var o;
|
88
|
+
const e = (o = r.value) == null ? void 0 : o.querySelector(`[aria-controls=popover_${c}]`);
|
88
89
|
e instanceof HTMLElement && e.focus({ preventScroll: !0 });
|
89
90
|
}, f = async () => {
|
90
91
|
m(), await i(), u(), s("hidden");
|
91
92
|
}, M = v(() => {
|
92
|
-
if (
|
93
|
+
if (t.width) {
|
93
94
|
let e;
|
94
|
-
if (typeof
|
95
|
-
if (
|
95
|
+
if (typeof t.width == "string" && Number.isNaN(Number(t.width)))
|
96
|
+
if (t.width.includes("%")) {
|
96
97
|
if (!r.value) return;
|
97
|
-
e = `${r.value.clientWidth * (+
|
98
|
+
e = `${r.value.clientWidth * (+t.width.replace("%", "") / 100)}`;
|
98
99
|
} else
|
99
|
-
e =
|
100
|
+
e = t.width;
|
100
101
|
else
|
101
|
-
e = `${
|
102
|
+
e = `${t.width}`;
|
102
103
|
return `${e}px`;
|
103
104
|
}
|
104
105
|
});
|
105
|
-
return
|
106
|
+
return $({
|
106
107
|
open: w,
|
107
108
|
close: f,
|
108
109
|
closed: v(() => !a.value)
|
109
|
-
}), (e,
|
110
|
-
|
110
|
+
}), (e, o) => (y(), S("span", F({ class: "bb-popover" }, D.value), [
|
111
|
+
p("span", {
|
111
112
|
ref_key: "wrapper",
|
112
113
|
ref: r,
|
113
114
|
class: "bb-popover__wrapper"
|
114
115
|
}, [
|
115
116
|
k(e.$slots, "activator", H(V({
|
116
117
|
props: {
|
117
|
-
"aria-controls": `popover_${
|
118
|
+
"aria-controls": `popover_${c}`,
|
118
119
|
"aria-expanded": a.value,
|
119
120
|
onClick: w,
|
120
|
-
id:
|
121
|
+
id: c,
|
121
122
|
disabled: !!e.disabled
|
122
123
|
},
|
123
124
|
closed: g.value,
|
@@ -132,7 +133,7 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
|
|
132
133
|
"arrow-padding": e.arrowPadding,
|
133
134
|
"base-class": "bb-popover",
|
134
135
|
"container-attributes": {
|
135
|
-
id: `popover_${
|
136
|
+
id: `popover_${c}`,
|
136
137
|
style: { width: M.value }
|
137
138
|
},
|
138
139
|
eager: e.eager,
|
@@ -140,12 +141,13 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
|
|
140
141
|
open: a.value,
|
141
142
|
padding: e.padding,
|
142
143
|
placement: e.placement,
|
144
|
+
"teleport-target": e.teleportTarget,
|
143
145
|
theme: e.theme,
|
144
146
|
"transition-duration": e.transitionDuration,
|
145
147
|
wrapper: r.value
|
146
148
|
}, {
|
147
|
-
default:
|
148
|
-
|
149
|
+
default: T(() => [
|
150
|
+
p("div", {
|
149
151
|
ref_key: "content",
|
150
152
|
ref: l,
|
151
153
|
class: "bb-popover__content"
|
@@ -155,14 +157,14 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
|
|
155
157
|
class: "bb-popover__close",
|
156
158
|
onClick: f
|
157
159
|
}, {
|
158
|
-
default:
|
159
|
-
|
160
|
-
|
160
|
+
default: T(() => [
|
161
|
+
p("span", Z, W(e.closeLabel || z(B)("common.closeLabel").value), 1),
|
162
|
+
o[0] || (o[0] = p("svg", {
|
161
163
|
fill: "none",
|
162
164
|
viewBox: "0 0 24 24",
|
163
165
|
xmlns: "http://www.w3.org/2000/svg"
|
164
166
|
}, [
|
165
|
-
|
167
|
+
p("path", {
|
166
168
|
d: "M23 23L1 1M23 1L1 23",
|
167
169
|
stroke: "currentColor",
|
168
170
|
"stroke-linecap": "round",
|
@@ -184,10 +186,10 @@ const Z = { class: "bb-popover__close-label sr-only" }, pe = /* @__PURE__ */ O({
|
|
184
186
|
], 512)
|
185
187
|
]),
|
186
188
|
_: 3
|
187
|
-
}, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "theme", "transition-duration", "wrapper"])
|
189
|
+
}, 8, ["arrow-padding", "container-attributes", "eager", "offset", "open", "padding", "placement", "teleport-target", "theme", "transition-duration", "wrapper"])
|
188
190
|
], 16));
|
189
191
|
}
|
190
192
|
});
|
191
193
|
export {
|
192
|
-
|
194
|
+
ce as default
|
193
195
|
};
|
package/dist/index90.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as r, computed as a, openBlock as l, createElementBlock as s, normalizeClass as m, createElementVNode as n, normalizeStyle as c } from "vue";
|
2
|
-
import { clamp as p } from "./
|
2
|
+
import { clamp as p } from "./index205.js";
|
3
3
|
import { getAsPercentageBetween as i } from "./index131.js";
|
4
4
|
const _ = /* @__PURE__ */ r({
|
5
5
|
__name: "BbProgress",
|