bitboss-ui 2.0.78 → 2.0.79
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 +1 -1
- 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 +5 -2
- package/dist/index206.js +16 -8
- package/dist/index207.js +16 -3
- package/dist/index208.js +18 -40
- package/dist/index209.js +19 -6
- package/dist/index21.js +14 -14
- package/dist/index210.js +27 -7
- package/dist/index211.js +3 -5
- package/dist/index212.js +2 -16
- package/dist/index213.js +8 -16
- package/dist/index214.js +249 -19
- package/dist/index215.js +51 -18
- package/dist/index216.js +44 -27
- package/dist/index217.js +5 -3
- package/dist/index218.js +60 -2
- package/dist/index219.js +47 -243
- package/dist/index221.js +13 -44
- package/dist/index222.js +20 -5
- package/dist/index223.js +4 -60
- package/dist/index224.js +124 -51
- package/dist/index225.js +127 -0
- package/dist/index226.js +2 -13
- package/dist/index227.js +39 -162
- package/dist/index228.js +5 -83
- package/dist/index229.js +7 -0
- package/dist/index23.js +188 -187
- package/dist/index230.js +12 -3
- package/dist/index231.js +353 -110
- package/dist/index232.js +81 -125
- package/dist/index233.js +3 -2
- package/dist/index234.js +2 -20
- package/dist/index235.js +4 -5
- package/dist/index236.js +2 -369
- package/dist/index237.js +164 -4
- package/dist/index238.js +84 -2
- package/dist/index240.js +3 -2
- package/dist/index241.js +7 -2
- package/dist/index242.js +2 -106
- package/dist/index244.js +53 -47
- package/dist/index246.js +100 -2
- 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 +3 -2
- package/dist/index260.js +7 -2
- package/dist/index261.js +176 -2
- package/dist/index262.js +281 -2
- package/dist/index263.js +6 -2
- package/dist/index264.js +2 -2
- package/dist/index265.js +2 -2
- package/dist/index266.js +2 -2
- package/dist/index267.js +2 -2
- package/dist/index268.js +2 -28
- package/dist/index269.js +2 -22
- package/dist/index27.js +1 -1
- package/dist/index270.js +4 -0
- package/dist/index271.js +2 -7
- package/dist/index272.js +2 -431
- package/dist/index273.js +2 -89
- package/dist/index274.js +27 -8
- package/dist/index275.js +22 -3
- package/dist/index277.js +2 -200
- package/dist/index278.js +126 -3
- package/dist/index279.js +430 -11
- package/dist/index280.js +21 -8
- package/dist/index282.js +2 -17
- package/dist/index283.js +223 -3
- package/dist/index284.js +200 -224
- package/dist/index285.js +436 -2
- package/dist/index286.js +121 -120
- package/dist/index287.js +3 -175
- package/dist/index288.js +3 -22
- package/dist/index289.js +14 -0
- package/dist/index29.js +3 -3
- package/dist/index290.js +9 -4
- package/dist/index291.js +9 -436
- package/dist/index292.js +16 -126
- package/dist/index293.js +4 -2
- package/dist/index294.js +89 -3
- 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 +6 -6
- package/dist/index308.js +6 -18
- package/dist/index309.js +18 -32
- package/dist/index31.js +2 -2
- package/dist/index310.js +32 -10
- package/dist/index311.js +3 -46
- package/dist/index312.js +47 -12
- package/dist/index313.js +10 -479
- 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 +99 -98
- package/dist/index39.js +4 -4
- package/dist/index41.js +2 -2
- package/dist/index43.js +2 -2
- package/dist/index45.js +8 -8
- 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/index220.js +0 -54
- package/dist/index239.js +0 -6
- package/dist/index256.js +0 -283
- package/dist/index259.js +0 -4
- package/dist/index281.js +0 -11
- package/dist/index316.js +0 -4
- /package/dist/{index247.js → index243.js} +0 -0
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 "./index240.js";
|
3
|
+
import { useFocusTrap as fe } from "./index227.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 "./index228.js";
|
7
|
+
import { useModalsState as _ } from "./index241.js";
|
8
|
+
import { useLogger as pe } from "./index213.js";
|
9
|
+
import me from "./index230.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
|
};
|
package/dist/index253.js
ADDED
package/dist/index254.js
CHANGED
@@ -1,8 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
const e = {
|
2
|
+
inert: ":not([inert]):not([inert] *)",
|
3
|
+
negTabIndex: ':not([tabindex^="-"])',
|
4
|
+
disabled: ":not(:disabled)"
|
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
|
+
];
|
5
23
|
export {
|
6
|
-
|
7
|
-
f as default
|
24
|
+
n as default
|
8
25
|
};
|
package/dist/index255.js
CHANGED
@@ -1,18 +1,91 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
1
|
+
import { defineComponent as h, toRef as y, ref as n, computed as a, watch as $, openBlock as b, createBlock as A, withCtx as k, createElementBlock as x, mergeProps as o, createElementVNode as c, renderSlot as B } from "vue";
|
2
|
+
import C from "./index230.js";
|
3
|
+
import f from "./index315.js";
|
4
|
+
import { useFloating as D, arrow as E } from "./index224.js";
|
5
|
+
import { autoUpdate as P, flip as F, offset as S, shift as M } from "./index231.js";
|
6
|
+
const j = /* @__PURE__ */ h({
|
7
|
+
__name: "CommonFloating",
|
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(
|
8
24
|
r,
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
25
|
+
l,
|
26
|
+
{
|
27
|
+
placement: e.placement,
|
28
|
+
whileElementsMounted: P,
|
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
|
+
}));
|
13
87
|
}
|
14
|
-
|
15
|
-
}, null);
|
88
|
+
});
|
16
89
|
export {
|
17
|
-
|
90
|
+
j as default
|
18
91
|
};
|
package/dist/index257.js
CHANGED
@@ -1,8 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
return
|
1
|
+
function u(e, i) {
|
2
|
+
let t;
|
3
|
+
return function(...o) {
|
4
|
+
t !== void 0 && clearTimeout(t), t = setTimeout(() => {
|
5
|
+
e.apply(this, o);
|
6
|
+
}, i);
|
7
|
+
};
|
4
8
|
}
|
5
9
|
export {
|
6
|
-
|
7
|
-
l as getDefaultExportFromCjs
|
10
|
+
u as debounce
|
8
11
|
};
|
package/dist/index258.js
CHANGED