bitboss-ui 2.0.78 → 2.0.80
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/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +1 -1
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +1 -1
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +1 -1
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +1 -1
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +1 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +1 -1
- package/dist/components/BbSwitchGroup/BbSwitchGroup.vue.d.ts +1 -1
- package/dist/components/OptionsContainer.vue.d.ts +1 -1
- package/dist/index110.js +5 -5
- package/dist/index118.js +25 -21
- package/dist/index120.js +5 -5
- package/dist/index122.js +1 -1
- package/dist/index126.js +14 -14
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index13.js +1 -1
- package/dist/index130.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 +2 -2
- package/dist/index204.js +2 -81
- package/dist/index205.js +2 -2
- package/dist/index206.js +4 -8
- package/dist/index207.js +2 -3
- package/dist/index208.js +3 -41
- package/dist/index209.js +41 -6
- package/dist/index21.js +14 -14
- package/dist/index210.js +6 -7
- package/dist/index211.js +7 -5
- package/dist/index212.js +8 -16
- package/dist/index213.js +12 -16
- package/dist/index214.js +53 -19
- package/dist/index216.js +13 -27
- package/dist/index217.js +20 -3
- package/dist/index218.js +4 -2
- package/dist/index219.js +122 -245
- package/dist/index220.js +5 -52
- package/dist/index221.js +125 -44
- package/dist/index222.js +19 -5
- package/dist/index223.js +15 -59
- package/dist/index224.js +15 -52
- package/dist/index225.js +4 -0
- package/dist/index226.js +2 -13
- package/dist/index227.js +5 -164
- package/dist/index228.js +368 -83
- package/dist/index229.js +166 -0
- package/dist/index23.js +188 -187
- package/dist/index230.js +84 -3
- package/dist/index232.js +81 -125
- package/dist/index233.js +19 -2
- package/dist/index234.js +26 -19
- package/dist/index235.js +3 -5
- package/dist/index236.js +246 -366
- package/dist/index237.js +52 -4
- package/dist/index238.js +44 -2
- package/dist/index239.js +5 -4
- package/dist/index240.js +60 -2
- package/dist/index241.js +3 -2
- package/dist/index242.js +1 -1
- package/dist/index244.js +1 -1
- package/dist/index246.js +1 -1
- package/dist/index248.js +2 -10
- package/dist/index249.js +9 -2
- package/dist/index25.js +109 -105
- package/dist/index250.js +2 -8
- package/dist/index251.js +6 -23
- package/dist/index252.js +14 -87
- package/dist/index253.js +11 -0
- package/dist/index254.js +23 -6
- package/dist/index255.js +87 -14
- package/dist/index257.js +8 -5
- package/dist/index258.js +4 -2
- package/dist/index259.js +3 -2
- package/dist/index261.js +7 -2
- package/dist/index262.js +176 -2
- package/dist/index263.js +431 -2
- package/dist/index264.js +1 -1
- package/dist/index265.js +89 -2
- package/dist/index266.js +200 -2
- package/dist/index267.js +3 -2
- package/dist/index268.js +12 -28
- package/dist/index269.js +8 -21
- package/dist/index27.js +1 -1
- package/dist/index270.js +11 -0
- package/dist/index271.js +17 -7
- package/dist/index272.js +3 -430
- package/dist/index273.js +280 -88
- package/dist/index274.js +5 -8
- package/dist/index275.js +2 -3
- package/dist/index276.js +4 -0
- package/dist/index277.js +2 -200
- package/dist/index278.js +2 -3
- package/dist/index279.js +2 -12
- package/dist/index280.js +124 -7
- package/dist/index281.js +20 -7
- package/dist/index283.js +435 -3
- package/dist/index284.js +121 -218
- package/dist/index285.js +2 -2
- package/dist/index286.js +2 -126
- package/dist/index287.js +2 -176
- package/dist/index288.js +1 -21
- package/dist/index289.js +4 -0
- package/dist/index29.js +3 -3
- package/dist/index290.js +2 -4
- package/dist/index291.js +23 -431
- package/dist/index292.js +21 -126
- package/dist/index294.js +224 -3
- package/dist/index295.js +1 -1
- package/dist/index296.js +3 -5
- package/dist/index297.js +204 -59
- package/dist/index298.js +2 -211
- package/dist/index299.js +5 -5
- package/dist/index300.js +66 -8
- package/dist/index304.js +1 -1
- package/dist/index305.js +4 -3
- package/dist/index306.js +7 -6
- package/dist/index307.js +32 -6
- package/dist/index308.js +3 -18
- package/dist/index309.js +6 -32
- package/dist/index31.js +2 -2
- package/dist/index310.js +46 -10
- package/dist/index311.js +10 -46
- package/dist/index312.js +7 -12
- package/dist/index313.js +19 -480
- package/dist/index314.js +1 -1
- package/dist/index315.js +482 -0
- package/dist/index317.js +1 -1
- package/dist/index318.js +47 -2
- package/dist/index319.js +2 -47
- package/dist/index33.js +2 -2
- package/dist/index35.js +3 -3
- package/dist/index37.js +97 -96
- package/dist/index39.js +4 -4
- 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/index61.js +2 -2
- package/dist/index75.js +3 -3
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +110 -106
- package/dist/index86.js +1 -1
- package/dist/index88.js +4 -4
- package/dist/index90.js +1 -1
- package/package.json +1 -1
- package/dist/index215.js +0 -21
- package/dist/index231.js +0 -128
- package/dist/index256.js +0 -283
- package/dist/index260.js +0 -4
- package/dist/index282.js +0 -19
- package/dist/index293.js +0 -4
- package/dist/index316.js +0 -4
package/dist/index238.js
CHANGED
@@ -1,4 +1,46 @@
|
|
1
|
-
|
1
|
+
import { defineComponent as _, computed as a, openBlock as o, createElementBlock as c, createElementVNode as p, Fragment as b, renderList as h, createBlock as k, normalizeClass as f, withCtx as y, createTextVNode as x, toDisplayString as B } from "vue";
|
2
|
+
import C from "./index13.js";
|
3
|
+
/* empty css */
|
4
|
+
const M = { class: "bb-base-date-picker__button-menu bb-base-date-picker__month-selector" }, v = { class: "content" }, E = /* @__PURE__ */ _({
|
5
|
+
__name: "BaseDatePickerMonthSelector",
|
6
|
+
props: {
|
7
|
+
cursor: {},
|
8
|
+
disabled: { type: Boolean }
|
9
|
+
},
|
10
|
+
emits: ["update:month"],
|
11
|
+
setup(l, { emit: d }) {
|
12
|
+
const s = l, m = d, i = a(() => s.cursor.month()), u = a(
|
13
|
+
() => new Array(12).fill(0).map((r, t) => {
|
14
|
+
const n = s.cursor.clone().startOf("year").add(t, "month");
|
15
|
+
return {
|
16
|
+
text: n.format("MMMM"),
|
17
|
+
key: n.unix(),
|
18
|
+
selected: n.month() === i.value,
|
19
|
+
handler: () => m("update:month", t)
|
20
|
+
};
|
21
|
+
})
|
22
|
+
);
|
23
|
+
return (r, t) => (o(), c("div", M, [
|
24
|
+
p("div", v, [
|
25
|
+
(o(!0), c(b, null, h(u.value, (e) => (o(), k(C, {
|
26
|
+
key: e.key,
|
27
|
+
class: f({
|
28
|
+
content__btn: !0,
|
29
|
+
"content__btn--selected": e.selected
|
30
|
+
}),
|
31
|
+
disabled: r.disabled,
|
32
|
+
type: "button",
|
33
|
+
onClick: e.handler
|
34
|
+
}, {
|
35
|
+
default: y(() => [
|
36
|
+
x(B(e.text), 1)
|
37
|
+
]),
|
38
|
+
_: 2
|
39
|
+
}, 1032, ["class", "disabled", "onClick"]))), 128))
|
40
|
+
])
|
41
|
+
]));
|
42
|
+
}
|
43
|
+
});
|
2
44
|
export {
|
3
|
-
|
45
|
+
E as default
|
4
46
|
};
|
package/dist/index239.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import
|
2
|
-
|
1
|
+
import o from "./index292.js";
|
2
|
+
/* empty css */
|
3
|
+
import t from "./index261.js";
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-8c6b13bd"]]);
|
3
5
|
export {
|
4
|
-
|
5
|
-
s as when
|
6
|
+
m as default
|
6
7
|
};
|
package/dist/index240.js
CHANGED
@@ -1,4 +1,62 @@
|
|
1
|
-
|
1
|
+
import { defineComponent as g, ref as i, computed as d, onMounted as h, openBlock as u, createElementBlock as m, createElementVNode as y, Fragment as x, renderList as B, createBlock as C, normalizeClass as S, withCtx as T, createTextVNode as E, toDisplayString as w } from "vue";
|
2
|
+
import { range as H } from "./index309.js";
|
3
|
+
import M from "./index13.js";
|
4
|
+
/* empty css */
|
5
|
+
const n = 10, l = 3, V = /* @__PURE__ */ g({
|
6
|
+
__name: "BaseDatePickerYearSelector",
|
7
|
+
props: {
|
8
|
+
cursor: {},
|
9
|
+
disabled: { type: Boolean }
|
10
|
+
},
|
11
|
+
emits: ["update:year"],
|
12
|
+
setup(p, { emit: _ }) {
|
13
|
+
const f = p, b = _, o = i(), r = d(() => f.cursor.year()), c = i(r.value - n * l), s = i(r.value + n * l), v = d(
|
14
|
+
() => H(c.value, s.value).map((e) => ({
|
15
|
+
text: e,
|
16
|
+
key: e,
|
17
|
+
selected: e === r.value,
|
18
|
+
handler: () => b("update:year", e)
|
19
|
+
}))
|
20
|
+
), k = (e) => {
|
21
|
+
const t = e.target;
|
22
|
+
t.scrollTop <= 100 ? c.value = Math.max(
|
23
|
+
c.value - n * l,
|
24
|
+
r.value - 200
|
25
|
+
) : t.scrollHeight - t.scrollTop === t.clientHeight && (s.value = Math.min(s.value + n * l, 2101));
|
26
|
+
};
|
27
|
+
return h(() => {
|
28
|
+
if (!o.value) return;
|
29
|
+
const e = o.value.querySelector(
|
30
|
+
".content__btn--selected"
|
31
|
+
);
|
32
|
+
e && (e.parentElement.scrollTop = e.offsetTop - e.parentElement.clientHeight / 2 + 16);
|
33
|
+
}), (e, t) => (u(), m("div", {
|
34
|
+
ref_key: "container",
|
35
|
+
ref: o,
|
36
|
+
class: "bb-base-date-picker__button-menu bb-base-date-picker__year-selector scrollbar-border"
|
37
|
+
}, [
|
38
|
+
y("div", {
|
39
|
+
class: "content",
|
40
|
+
onScrollPassive: k
|
41
|
+
}, [
|
42
|
+
(u(!0), m(x, null, B(v.value, (a) => (u(), C(M, {
|
43
|
+
key: a.key,
|
44
|
+
class: S({
|
45
|
+
content__btn: !0,
|
46
|
+
"content__btn--selected": a.selected
|
47
|
+
}),
|
48
|
+
disabled: e.disabled,
|
49
|
+
onClick: a.handler
|
50
|
+
}, {
|
51
|
+
default: T(() => [
|
52
|
+
E(w(a.text), 1)
|
53
|
+
]),
|
54
|
+
_: 2
|
55
|
+
}, 1032, ["class", "disabled", "onClick"]))), 128))
|
56
|
+
], 32)
|
57
|
+
], 512));
|
58
|
+
}
|
59
|
+
});
|
2
60
|
export {
|
3
|
-
|
61
|
+
V as default
|
4
62
|
};
|
package/dist/index241.js
CHANGED
package/dist/index242.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as y, ref as F, computed as H, watch as N, openBlock as p, createElementBlock as L, Fragment as S, renderList as V, createBlock as A, normalizeClass as O, withModifiers as P, withCtx as $, createTextVNode as z, toDisplayString as D } from "vue";
|
2
|
-
import { hash as d } from "./
|
2
|
+
import { hash as d } from "./index235.js";
|
3
3
|
import { isNil as l } from "./index129.js";
|
4
4
|
import E from "./index124.js";
|
5
5
|
/* empty css */
|
package/dist/index244.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent as F, ref as H, computed as L, watch as N, openBlock as d, createElementBlock as v, Fragment as S, renderList as A, normalizeClass as O, withModifiers as P, toDisplayString as V } from "vue";
|
2
|
-
import { hash as f } from "./
|
2
|
+
import { hash as f } from "./index235.js";
|
3
3
|
import { isNil as i } from "./index129.js";
|
4
4
|
const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
|
5
5
|
__name: "CommaBox",
|
package/dist/index246.js
CHANGED
package/dist/index248.js
CHANGED
package/dist/index249.js
CHANGED
package/dist/index25.js
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
import { defineComponent as ae, ref as o, getCurrentInstance as se, computed as m, nextTick as N, useAttrs as ne, onMounted as ie, onBeforeUnmount as F, watch as re, openBlock as k, createBlock as ue,
|
2
|
-
import { throttle as ve } from "./
|
3
|
-
import { useFocusTrap as fe } from "./
|
1
|
+
import { defineComponent as ae, ref as o, getCurrentInstance as se, computed as m, nextTick as N, useAttrs as ne, onMounted as ie, onBeforeUnmount as F, watch as re, openBlock as k, createBlock as ue, withCtx as de, createElementVNode as a, mergeProps as G, createElementBlock as $, renderSlot as u, createTextVNode as ce, toDisplayString as P, createCommentVNode as z } from "vue";
|
2
|
+
import { throttle as ve } from "./index208.js";
|
3
|
+
import { useFocusTrap as fe } from "./index209.js";
|
4
4
|
import { useId as K } from "./index8.js";
|
5
5
|
import { wait as H } from "./index131.js";
|
6
|
-
import { waitFor as be } from "./
|
7
|
-
import { useModalsState as
|
8
|
-
import { useLogger as pe } from "./
|
9
|
-
|
6
|
+
import { waitFor as be } from "./index210.js";
|
7
|
+
import { useModalsState as _ } from "./index211.js";
|
8
|
+
import { useLogger as pe } from "./index212.js";
|
9
|
+
import me from "./index213.js";
|
10
|
+
const ge = { class: "bb-base-dialog-close" }, ye = ["aria-label"], ze = /* @__PURE__ */ ae({
|
10
11
|
__name: "BaseDialog",
|
11
12
|
props: {
|
12
13
|
closeLabel: { default: "Chiudi modale" },
|
@@ -29,10 +30,10 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
|
|
29
30
|
emits: ["shown", "hidden", "update:modelValue"],
|
30
31
|
setup(U, { emit: j }) {
|
31
32
|
var I, R;
|
32
|
-
const t = U, d = j,
|
33
|
-
const { openedModals: e } =
|
33
|
+
const t = U, d = j, C = `title_${K().id.value}`, B = `description_${K().id.value}`, g = o(null), c = o(null), T = o(null), y = o(null), v = o(null), s = o(null), f = o(null), q = o(null), L = !!((R = (I = se()) == null ? void 0 : I.proxy) != null && R.$nuxt), h = o(0), J = m(() => {
|
34
|
+
const { openedModals: e } = _();
|
34
35
|
return e.value && e.value === h.value;
|
35
|
-
}), { activate: Q, deactivate: M } = fe(
|
36
|
+
}), { activate: Q, deactivate: M } = fe(T, {
|
36
37
|
initialFocus: t.focusTarget ?? void 0,
|
37
38
|
clickOutsideDeactivates: (e) => e.target === c.value,
|
38
39
|
allowOutsideClick: !0,
|
@@ -46,28 +47,28 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
|
|
46
47
|
}), F(() => {
|
47
48
|
window.removeEventListener("resize", r);
|
48
49
|
});
|
49
|
-
const V = o(!1), b = o(!1), D = o(!0), p = o(!1), i = o(t.eager || t.modelValue),
|
50
|
+
const V = o(!1), b = o(!1), D = o(!0), p = o(!1), i = o(t.eager || t.modelValue), x = m(() => b.value || p.value), Z = () => {
|
50
51
|
if (!globalThis.document) return;
|
51
52
|
const e = window.innerWidth - document.documentElement.clientWidth;
|
52
53
|
document.body.style.overflow = "hidden", document.body.style.paddingRight = `${e}px`;
|
53
|
-
},
|
54
|
+
}, O = () => {
|
54
55
|
globalThis.document && (document.body.style.overflow = "auto", document.body.style.paddingRight = "0px");
|
55
56
|
};
|
56
57
|
F(() => {
|
57
58
|
if (t.modelValue) {
|
58
|
-
const { openedModals: e, modalHasClosed: l } =
|
59
|
-
e.value && (l(), h.value = 0,
|
59
|
+
const { openedModals: e, modalHasClosed: l } = _();
|
60
|
+
e.value && (l(), h.value = 0, O());
|
60
61
|
}
|
61
62
|
});
|
62
63
|
const S = async () => {
|
63
64
|
if (t.modelValue) {
|
64
65
|
i.value || (i.value = !0, await be(() => !!s.value), await N(), s.value && (g.value = new ResizeObserver(r), g.value.observe(s.value))), D.value = !1, p.value = !1, b.value = !0;
|
65
|
-
const { modalHasOpened: e, openedModals: l } =
|
66
|
+
const { modalHasOpened: e, openedModals: l } = _();
|
66
67
|
e(), h.value = l.value, Z(), await H(t.transitionDuration), b.value = !1, V.value = !0, d("shown"), Q();
|
67
68
|
} else {
|
68
69
|
M(), b.value = !1, V.value = !1, p.value = !0, await H(t.transitionDuration), p.value = !1, D.value = !0;
|
69
|
-
const { modalHasClosed: e, openedModals: l } =
|
70
|
-
e(), h.value = 0, l.value ||
|
70
|
+
const { modalHasClosed: e, openedModals: l } = _();
|
71
|
+
e(), h.value = 0, l.value || O(), d("hidden");
|
71
72
|
}
|
72
73
|
};
|
73
74
|
re(
|
@@ -80,9 +81,9 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
|
|
80
81
|
const w = (e) => {
|
81
82
|
e.target === c.value && e.preventDefault();
|
82
83
|
}, ee = (e) => {
|
83
|
-
t.disabled ||
|
84
|
+
t.disabled || x.value || c.value && e.target === c.value && (t.persistent || d("update:modelValue", !1));
|
84
85
|
}, A = () => {
|
85
|
-
t.disabled ||
|
86
|
+
t.disabled || x.value || (M(), d("update:modelValue", !1));
|
86
87
|
}, te = m(() => {
|
87
88
|
const e = [
|
88
89
|
{
|
@@ -122,7 +123,7 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
|
|
122
123
|
role: "dialog",
|
123
124
|
"aria-modal": !0
|
124
125
|
};
|
125
|
-
i.value && (t.title && (l["aria-labelledby"] =
|
126
|
+
i.value && (t.title && (l["aria-labelledby"] = C), t.description && (l["aria-describedby"] = B));
|
126
127
|
let n;
|
127
128
|
const W = {
|
128
129
|
sm: 384,
|
@@ -164,98 +165,101 @@ const me = { class: "bb-base-dialog-close" }, ge = ["aria-label"], De = /* @__PU
|
|
164
165
|
200,
|
165
166
|
{ trailing: !0 }
|
166
167
|
);
|
167
|
-
return (e, l) => (k(), ue(
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
a("div", G(le.value, {
|
173
|
-
ref_key: "panel",
|
174
|
-
ref: $
|
168
|
+
return (e, l) => (k(), ue(me, null, {
|
169
|
+
default: de(() => [
|
170
|
+
a("div", G(te.value, {
|
171
|
+
ref_key: "overlay",
|
172
|
+
ref: c
|
175
173
|
}), [
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
class: "bb-base-dialog__header"
|
174
|
+
a("div", G(le.value, {
|
175
|
+
ref_key: "panel",
|
176
|
+
ref: T
|
177
|
+
}), [
|
178
|
+
i.value ? (k(), $("div", {
|
179
|
+
key: 0,
|
180
|
+
ref_key: "content",
|
181
|
+
ref: y,
|
182
|
+
class: "bb-base-dialog__content"
|
186
183
|
}, [
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
},
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
a("span", me, [
|
201
|
-
e.showClose ? (k(), T("button", {
|
202
|
-
key: 0,
|
203
|
-
"aria-label": Y.value,
|
204
|
-
type: "button",
|
205
|
-
onClick: A
|
184
|
+
a("div", {
|
185
|
+
ref_key: "header",
|
186
|
+
ref: v,
|
187
|
+
class: "bb-base-dialog__header"
|
188
|
+
}, [
|
189
|
+
u(e.$slots, "header", {
|
190
|
+
close: A,
|
191
|
+
title: e.title,
|
192
|
+
titleId: C
|
193
|
+
}, () => [
|
194
|
+
a("span", {
|
195
|
+
id: C,
|
196
|
+
class: "bb-base-dialog__title"
|
206
197
|
}, [
|
207
|
-
u(e.$slots, "
|
208
|
-
|
209
|
-
a("svg", {
|
210
|
-
"aria-hidden": "true",
|
211
|
-
fill: "none",
|
212
|
-
viewBox: "0 0 24 24",
|
213
|
-
xmlns: "http://www.w3.org/2000/svg"
|
214
|
-
}, [
|
215
|
-
a("path", {
|
216
|
-
d: "M23 23L1 1M23 1L1 23",
|
217
|
-
stroke: "currentColor",
|
218
|
-
"stroke-linecap": "round",
|
219
|
-
"stroke-width": "2"
|
220
|
-
})
|
221
|
-
])
|
222
|
-
], -1))
|
198
|
+
u(e.$slots, "title", { text: e.title }, () => [
|
199
|
+
ce(P(e.title), 1)
|
223
200
|
])
|
224
|
-
]
|
201
|
+
]),
|
202
|
+
a("span", ge, [
|
203
|
+
e.showClose ? (k(), $("button", {
|
204
|
+
key: 0,
|
205
|
+
"aria-label": Y.value,
|
206
|
+
type: "button",
|
207
|
+
onClick: A
|
208
|
+
}, [
|
209
|
+
u(e.$slots, "close", {}, () => [
|
210
|
+
l[0] || (l[0] = a("span", { class: "bb-base-dialog-close__icon" }, [
|
211
|
+
a("svg", {
|
212
|
+
"aria-hidden": "true",
|
213
|
+
fill: "none",
|
214
|
+
viewBox: "0 0 24 24",
|
215
|
+
xmlns: "http://www.w3.org/2000/svg"
|
216
|
+
}, [
|
217
|
+
a("path", {
|
218
|
+
d: "M23 23L1 1M23 1L1 23",
|
219
|
+
stroke: "currentColor",
|
220
|
+
"stroke-linecap": "round",
|
221
|
+
"stroke-width": "2"
|
222
|
+
})
|
223
|
+
])
|
224
|
+
], -1))
|
225
|
+
])
|
226
|
+
], 8, ye)) : z("", !0)
|
227
|
+
])
|
225
228
|
])
|
226
|
-
])
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
], 512)
|
253
|
-
],
|
229
|
+
], 512),
|
230
|
+
a("div", {
|
231
|
+
ref_key: "body",
|
232
|
+
ref: s,
|
233
|
+
class: "bb-base-dialog__body scrollbar-border"
|
234
|
+
}, [
|
235
|
+
u(e.$slots, "description", {
|
236
|
+
descriptionId: B,
|
237
|
+
text: e.description
|
238
|
+
}, () => [
|
239
|
+
e.description ? (k(), $("div", {
|
240
|
+
key: 0,
|
241
|
+
id: B,
|
242
|
+
class: "bb-base-dialog__description sr-only"
|
243
|
+
}, P(e.description), 1)) : z("", !0)
|
244
|
+
]),
|
245
|
+
u(e.$slots, "default")
|
246
|
+
], 512),
|
247
|
+
l[1] || (l[1] = a("div", { style: { flex: "10000 10000 0%" } }, null, -1)),
|
248
|
+
a("div", {
|
249
|
+
ref_key: "footer",
|
250
|
+
ref: f,
|
251
|
+
class: "bb-base-dialog__footer"
|
252
|
+
}, [
|
253
|
+
u(e.$slots, "footer")
|
254
|
+
], 512)
|
255
|
+
], 512)) : z("", !0)
|
256
|
+
], 16)
|
254
257
|
], 16)
|
255
|
-
],
|
256
|
-
|
258
|
+
]),
|
259
|
+
_: 3
|
260
|
+
}));
|
257
261
|
}
|
258
262
|
});
|
259
263
|
export {
|
260
|
-
|
264
|
+
ze as default
|
261
265
|
};
|
package/dist/index250.js
CHANGED
package/dist/index251.js
CHANGED
@@ -1,25 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
}, n = [
|
6
|
-
`a[href]${e.inert}${e.negTabIndex}`,
|
7
|
-
`area[href]${e.inert}${e.negTabIndex}`,
|
8
|
-
`input:not([type="hidden"]):not([type="radio"])${e.inert}${e.negTabIndex}${e.disabled}`,
|
9
|
-
`input[type="radio"]${e.inert}${e.negTabIndex}${e.disabled}`,
|
10
|
-
`select${e.inert}${e.negTabIndex}${e.disabled}`,
|
11
|
-
`textarea${e.inert}${e.negTabIndex}${e.disabled}`,
|
12
|
-
`button${e.inert}${e.negTabIndex}${e.disabled}`,
|
13
|
-
`details${e.inert} > summary:first-of-type${e.negTabIndex}`,
|
14
|
-
// Discard until Firefox supports `:has()`
|
15
|
-
// See: https://github.com/KittyGiraudel/focusable-selectors/issues/12
|
16
|
-
// `details:not(:has(> summary))${not.inert}${not.negTabIndex}`,
|
17
|
-
`iframe${e.inert}${e.negTabIndex}`,
|
18
|
-
`audio[controls]${e.inert}${e.negTabIndex}`,
|
19
|
-
`video[controls]${e.inert}${e.negTabIndex}`,
|
20
|
-
`[contenteditable]${e.inert}${e.negTabIndex}`,
|
21
|
-
`[tabindex]${e.inert}${e.negTabIndex}`
|
22
|
-
];
|
1
|
+
import e from "./index301.js";
|
2
|
+
import r from "./index302.js";
|
3
|
+
import o from "./index303.js";
|
4
|
+
const f = new o(r, e)._freeze();
|
23
5
|
export {
|
24
|
-
|
6
|
+
o as Mime,
|
7
|
+
f as default
|
25
8
|
};
|
package/dist/index252.js
CHANGED
@@ -1,91 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
const
|
7
|
-
|
8
|
-
props: {
|
9
|
-
arrowPadding: {},
|
10
|
-
eager: { type: Boolean },
|
11
|
-
offset: {},
|
12
|
-
padding: {},
|
13
|
-
placement: {},
|
14
|
-
theme: {},
|
15
|
-
transitionDuration: {},
|
16
|
-
containerAttributes: { default: () => ({}) },
|
17
|
-
bubbleAttributes: {},
|
18
|
-
wrapper: {},
|
19
|
-
baseClass: {},
|
20
|
-
open: { type: Boolean }
|
21
|
-
},
|
22
|
-
setup(d) {
|
23
|
-
const e = d, m = y(e, "wrapper"), r = n(), l = n(), i = n(), { floatingStyles: g, placement: w, middlewareData: s } = D(
|
1
|
+
const e = (o, r, f) => o.reduce((t, n) => {
|
2
|
+
if (t) return t;
|
3
|
+
if (f(n))
|
4
|
+
return n;
|
5
|
+
if (r in n) {
|
6
|
+
const i = e(
|
7
|
+
[].concat(n[r]),
|
24
8
|
r,
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
middleware: [
|
30
|
-
F(),
|
31
|
-
S(e.offset),
|
32
|
-
M({ padding: e.padding }),
|
33
|
-
E({
|
34
|
-
element: i,
|
35
|
-
padding: e.arrowPadding
|
36
|
-
})
|
37
|
-
]
|
38
|
-
}
|
39
|
-
), _ = a(() => {
|
40
|
-
if (s.value.arrow) {
|
41
|
-
const { x: t, y: u } = s.value.arrow;
|
42
|
-
return {
|
43
|
-
style: {
|
44
|
-
left: `${t}px`,
|
45
|
-
top: `${u}px`
|
46
|
-
}
|
47
|
-
};
|
48
|
-
}
|
49
|
-
}), p = a(() => f({}, e.containerAttributes, {
|
50
|
-
class: {
|
51
|
-
"bb-floating": !0,
|
52
|
-
[`bb-floating--${w.value}`]: !0,
|
53
|
-
[`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
|
54
|
-
"bb-floating--hidden": !e.open,
|
55
|
-
"bb-floating--open": e.open
|
56
|
-
},
|
57
|
-
style: {
|
58
|
-
...g.value,
|
59
|
-
"--transition-duration": `${e.transitionDuration}ms`
|
60
|
-
},
|
61
|
-
tabindex: e.open ? void 0 : -1
|
62
|
-
})), v = a(() => f({}, e.bubbleAttributes, {}));
|
63
|
-
return $(
|
64
|
-
() => e.open,
|
65
|
-
(t) => {
|
66
|
-
t && (r.value = m.value);
|
67
|
-
}
|
68
|
-
), (t, u) => (b(), A(C, null, {
|
69
|
-
default: k(() => [
|
70
|
-
(b(), x("span", o(p.value, {
|
71
|
-
key: p.value.id,
|
72
|
-
ref_key: "content",
|
73
|
-
ref: l
|
74
|
-
}), [
|
75
|
-
c("span", o({
|
76
|
-
ref_key: "bubblearrow",
|
77
|
-
ref: i,
|
78
|
-
class: "bb-floating__arrow"
|
79
|
-
}, _.value), null, 16),
|
80
|
-
c("span", o({ class: "bb-floating__bubble" }, v.value), [
|
81
|
-
B(t.$slots, "default")
|
82
|
-
], 16)
|
83
|
-
], 16))
|
84
|
-
]),
|
85
|
-
_: 3
|
86
|
-
}));
|
9
|
+
f
|
10
|
+
);
|
11
|
+
if (i)
|
12
|
+
return i;
|
87
13
|
}
|
88
|
-
|
14
|
+
return t;
|
15
|
+
}, null);
|
89
16
|
export {
|
90
|
-
|
17
|
+
e as findInTree
|
91
18
|
};
|