bitboss-ui 2.0.108 → 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/index100.js +9 -9
- package/dist/index111.js +12 -12
- package/dist/index119.js +1 -1
- package/dist/index121.js +6 -6
- package/dist/index125.js +1 -1
- package/dist/index127.js +1 -1
- package/dist/index128.js +1 -1
- package/dist/index129.js +1 -1
- package/dist/index13.js +2 -2
- package/dist/index131.js +1 -1
- package/dist/index132.js +2 -2
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index205.js +2 -115
- package/dist/index206.js +105 -116
- package/dist/index207.js +8 -281
- package/dist/index208.js +3 -125
- package/dist/index209.js +2 -16
- package/dist/index21.js +16 -16
- package/dist/index210.js +4 -16
- package/dist/index211.js +2 -19
- package/dist/index212.js +53 -15
- package/dist/index214.js +13 -2
- package/dist/index215.js +20 -41
- package/dist/index216.js +4 -13
- package/dist/index217.js +13 -20
- package/dist/index218.js +126 -6
- package/dist/index219.js +5 -15
- package/dist/index220.js +124 -52
- package/dist/index221.js +18 -0
- package/dist/index222.js +16 -13
- package/dist/index223.js +19 -5
- package/dist/index224.js +14 -368
- package/dist/index225.js +2 -4
- package/dist/index226.js +2 -8
- package/dist/index227.js +41 -3
- package/dist/index228.js +6 -2
- package/dist/index229.js +15 -4
- package/dist/index23.js +18 -18
- package/dist/index230.js +5 -2
- package/dist/index231.js +369 -2
- package/dist/index232.js +86 -19
- package/dist/index234.js +23 -248
- package/dist/index235.js +17 -52
- package/dist/index236.js +47 -43
- package/dist/index237.js +15 -5
- package/dist/index238.js +12 -60
- package/dist/index239.js +16 -3
- package/dist/index240.js +3 -3
- package/dist/index241.js +3 -7
- 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 +7 -7
- package/dist/index250.js +2 -2
- package/dist/index251.js +18 -2
- package/dist/index252.js +2 -2
- package/dist/index254.js +2 -2
- package/dist/index256.js +12 -2
- package/dist/index257.js +2 -18
- package/dist/index258.js +2 -12
- package/dist/index261.js +27 -8
- package/dist/index262.js +9 -23
- package/dist/index263.js +23 -90
- package/dist/index264.js +92 -0
- package/dist/index266.js +8 -0
- package/dist/index267.js +16 -7
- package/dist/index268.js +3 -175
- package/dist/index269.js +9 -7
- package/dist/index27.js +1 -1
- package/dist/index270.js +3 -11
- package/dist/index272.js +7 -16
- package/dist/index273.js +176 -9
- package/dist/index274.js +7 -8
- package/dist/index275.js +10 -27
- package/dist/index276.js +281 -4
- package/dist/index285.js +1 -1
- package/dist/index286.js +1 -1
- package/dist/index289.js +3 -9
- 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 -2
- package/dist/index296.js +1 -21
- package/dist/index297.js +4 -0
- package/dist/index298.js +2 -436
- package/dist/index299.js +2 -127
- package/dist/index300.js +21 -199
- package/dist/index302.js +89 -3
- package/dist/index303.js +197 -14
- package/dist/index304.js +428 -81
- package/dist/index305.js +127 -3
- package/dist/index306.js +1 -1
- package/dist/index307.js +3 -214
- package/dist/index308.js +214 -2
- package/dist/index31.js +2 -2
- package/dist/index310.js +1 -1
- package/dist/index311.js +2 -3
- package/dist/index312.js +1 -1
- package/dist/index313.js +1 -1
- package/dist/index314.js +2 -32
- package/dist/index315.js +4 -53
- package/dist/index316.js +3 -53
- package/dist/index317.js +3 -4
- package/dist/index318.js +58 -3
- package/dist/index319.js +33 -3
- package/dist/index320.js +52 -57
- package/dist/index321.js +53 -7
- package/dist/index322.js +45 -17
- package/dist/index324.js +6 -46
- package/dist/index325.js +19 -2
- package/dist/index326.js +2 -480
- package/dist/index327.js +482 -0
- package/dist/index329.js +420 -43
- package/dist/index33.js +8 -8
- package/dist/index330.js +47 -2
- package/dist/index331.js +4 -0
- package/dist/index35.js +4 -4
- package/dist/index37.js +101 -101
- package/dist/index39.js +5 -5
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +27 -27
- package/dist/index47.js +2 -2
- package/dist/index49.js +2 -2
- package/dist/index53.js +1 -1
- package/dist/index55.js +1 -1
- package/dist/index57.js +2 -2
- package/dist/index61.js +1 -1
- package/dist/index75.js +3 -3
- package/dist/index77.js +1 -1
- package/dist/index79.js +2 -2
- package/dist/index81.js +1 -1
- package/dist/index84.js +4 -4
- package/dist/index86.js +2 -2
- package/dist/index88.js +5 -5
- package/dist/index90.js +1 -1
- package/package.json +2 -2
- package/dist/index213.js +0 -4
- package/dist/index233.js +0 -29
- package/dist/index265.js +0 -5
- package/dist/index271.js +0 -8
- package/dist/index301.js +0 -226
- package/dist/index328.js +0 -426
package/dist/index249.js
CHANGED
@@ -1,18 +1,62 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
l.value
|
14
|
-
|
15
|
-
|
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 "./index323.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
|
+
});
|
16
60
|
export {
|
17
|
-
|
61
|
+
V as default
|
18
62
|
};
|
package/dist/index25.js
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { defineComponent as ne, ref as o, computed as u, getCurrentInstance as re, nextTick as N, useAttrs as ue, onMounted as de, onBeforeUnmount as G, watch as ce, openBlock as _, createBlock as ve, withCtx as fe, createElementVNode as a, mergeProps as P, createElementBlock as $, renderSlot as d, createTextVNode as be, toDisplayString as K, createCommentVNode as z } from "vue";
|
2
|
-
import { throttle as pe } from "./
|
3
|
-
import { useFocusTrap as me } from "./
|
2
|
+
import { throttle as pe } from "./index241.js";
|
3
|
+
import { useFocusTrap as me } from "./index227.js";
|
4
4
|
import { useId as U } from "./index8.js";
|
5
5
|
import { wait as H } from "./index130.js";
|
6
|
-
import { waitFor as ge } from "./
|
7
|
-
import { useModalsState as C } from "./
|
8
|
-
import { useLogger as ye } from "./
|
6
|
+
import { waitFor as ge } from "./index228.js";
|
7
|
+
import { useModalsState as C } from "./index242.js";
|
8
|
+
import { useLogger as ye } from "./index207.js";
|
9
9
|
import { useMobile as he } from "./index9.js";
|
10
|
-
import we from "./
|
11
|
-
import { useLocale as ke } from "./
|
10
|
+
import we from "./index229.js";
|
11
|
+
import { useLocale as ke } from "./index217.js";
|
12
12
|
const _e = { class: "bb-base-dialog-close" }, Ce = ["aria-label"], Se = /* @__PURE__ */ ne({
|
13
13
|
__name: "BaseDialog",
|
14
14
|
props: {
|
package/dist/index250.js
CHANGED
package/dist/index251.js
CHANGED
@@ -1,4 +1,20 @@
|
|
1
|
-
|
1
|
+
import { isNil as c } from "./index258.js";
|
2
|
+
const a = (t, r) => {
|
3
|
+
if (!Object.prototype.hasOwnProperty.call(t, r))
|
4
|
+
throw new Error(
|
5
|
+
`Object ${JSON.stringify(t, null, 2)} has no property named "${r.toString()}"`
|
6
|
+
);
|
7
|
+
}, l = (t) => typeof t == "string" ? t.toLocaleLowerCase() : JSON.stringify(t).toLowerCase(), y = (t, r, s) => {
|
8
|
+
const i = s.toLocaleLowerCase();
|
9
|
+
for (let e = 0; e < r.length; e++) {
|
10
|
+
const n = r[e];
|
11
|
+
a(t, n);
|
12
|
+
const o = t[n];
|
13
|
+
if (c(o)) continue;
|
14
|
+
if (l(o).includes(i)) return !0;
|
15
|
+
}
|
16
|
+
return !1;
|
17
|
+
};
|
2
18
|
export {
|
3
|
-
|
19
|
+
y as matchAnyKey
|
4
20
|
};
|
package/dist/index252.js
CHANGED
@@ -1,6 +1,6 @@
|
|
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 "./
|
3
|
-
import { isNil as l } from "./
|
2
|
+
import { hash as d } from "./index208.js";
|
3
|
+
import { isNil as l } from "./index258.js";
|
4
4
|
import E from "./index125.js";
|
5
5
|
/* empty css */
|
6
6
|
const K = /* @__PURE__ */ y({
|
package/dist/index254.js
CHANGED
@@ -1,6 +1,6 @@
|
|
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 "./
|
3
|
-
import { isNil as i } from "./
|
2
|
+
import { hash as f } from "./index208.js";
|
3
|
+
import { isNil as i } from "./index258.js";
|
4
4
|
const z = ["text", "onClick:clear"], j = /* @__PURE__ */ F({
|
5
5
|
__name: "CommaBox",
|
6
6
|
props: {
|
package/dist/index256.js
CHANGED
@@ -1,4 +1,14 @@
|
|
1
|
-
import
|
1
|
+
import { ref as t } from "vue";
|
2
|
+
const n = () => {
|
3
|
+
const e = t([]);
|
4
|
+
return { array: e, set: (...r) => {
|
5
|
+
e.value = r;
|
6
|
+
}, add: (...r) => {
|
7
|
+
e.value.push(...r);
|
8
|
+
}, remove: (r) => {
|
9
|
+
e.value = e.value.filter(r);
|
10
|
+
} };
|
11
|
+
};
|
2
12
|
export {
|
3
|
-
|
13
|
+
n as useArray
|
4
14
|
};
|
package/dist/index257.js
CHANGED
@@ -1,20 +1,4 @@
|
|
1
|
-
|
2
|
-
const a = (t, r) => {
|
3
|
-
if (!Object.prototype.hasOwnProperty.call(t, r))
|
4
|
-
throw new Error(
|
5
|
-
`Object ${JSON.stringify(t, null, 2)} has no property named "${r.toString()}"`
|
6
|
-
);
|
7
|
-
}, l = (t) => typeof t == "string" ? t.toLocaleLowerCase() : JSON.stringify(t).toLowerCase(), y = (t, r, s) => {
|
8
|
-
const i = s.toLocaleLowerCase();
|
9
|
-
for (let e = 0; e < r.length; e++) {
|
10
|
-
const n = r[e];
|
11
|
-
a(t, n);
|
12
|
-
const o = t[n];
|
13
|
-
if (c(o)) continue;
|
14
|
-
if (l(o).includes(i)) return !0;
|
15
|
-
}
|
16
|
-
return !1;
|
17
|
-
};
|
1
|
+
const o = (e) => e[0];
|
18
2
|
export {
|
19
|
-
|
3
|
+
o as head
|
20
4
|
};
|
package/dist/index258.js
CHANGED
@@ -1,14 +1,4 @@
|
|
1
|
-
|
2
|
-
const n = () => {
|
3
|
-
const e = t([]);
|
4
|
-
return { array: e, set: (...r) => {
|
5
|
-
e.value = r;
|
6
|
-
}, add: (...r) => {
|
7
|
-
e.value.push(...r);
|
8
|
-
}, remove: (r) => {
|
9
|
-
e.value = e.value.filter(r);
|
10
|
-
} };
|
11
|
-
};
|
1
|
+
const r = (e) => typeof e > "u" || e === null;
|
12
2
|
export {
|
13
|
-
|
3
|
+
r as isNil
|
14
4
|
};
|
package/dist/index261.js
CHANGED
@@ -1,11 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
function y(t, r) {
|
2
|
+
return t > r ? 1 : -1;
|
3
|
+
}
|
4
|
+
function c(t, r) {
|
5
|
+
var n = 5381;
|
6
|
+
if (typeof t == "object" && t !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
|
7
|
+
r || (r = /* @__PURE__ */ new WeakSet());
|
8
|
+
for (var p = Object.keys(t).sort(y), i = 0; i < p.length; i++) {
|
9
|
+
var s = p[i], e = t[s];
|
10
|
+
if (n = 33 * n ^ c(s, r), typeof e == "object" && e !== null && (t.toString === Object.prototype.toString || t.toString === Array.prototype.toString)) {
|
11
|
+
if (r.has(e)) continue;
|
12
|
+
r.add(e);
|
13
|
+
}
|
14
|
+
n = 33 * n ^ c(e, r);
|
15
|
+
}
|
16
|
+
return 33 * n ^ c(t.constructor, r);
|
6
17
|
}
|
7
|
-
|
8
|
-
|
18
|
+
var o = typeof t;
|
19
|
+
try {
|
20
|
+
t instanceof Date ? o += t.getTime() : o += String(t);
|
21
|
+
} catch {
|
22
|
+
o += String(Object.assign({}, t));
|
23
|
+
}
|
24
|
+
for (var a = 0; a < o.length; a++) n = 33 * n ^ o.charCodeAt(a);
|
25
|
+
return n;
|
26
|
+
}
|
9
27
|
export {
|
10
|
-
|
28
|
+
c as hash,
|
29
|
+
y as sortNumbers
|
11
30
|
};
|
package/dist/index262.js
CHANGED
@@ -1,25 +1,11 @@
|
|
1
|
-
const
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
+
const o = (n, t) => {
|
2
|
+
for (let e = n.length - 1; e >= 0; e--) {
|
3
|
+
const i = n[e];
|
4
|
+
if (t(i, e, n))
|
5
|
+
return e;
|
6
|
+
}
|
7
|
+
return -1;
|
8
|
+
};
|
23
9
|
export {
|
24
|
-
|
10
|
+
o as findRightIndex
|
25
11
|
};
|
package/dist/index263.js
CHANGED
@@ -1,92 +1,25 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
setup(d) {
|
24
|
-
const e = d, m = y(e, "wrapper"), n = r(), l = r(), i = r(), { floatingStyles: g, placement: w, middlewareData: s } = D(
|
25
|
-
n,
|
26
|
-
l,
|
27
|
-
{
|
28
|
-
placement: e.placement,
|
29
|
-
whileElementsMounted: P,
|
30
|
-
middleware: [
|
31
|
-
F(),
|
32
|
-
S(e.offset),
|
33
|
-
T({ padding: e.padding }),
|
34
|
-
E({
|
35
|
-
element: i,
|
36
|
-
padding: e.arrowPadding
|
37
|
-
})
|
38
|
-
]
|
39
|
-
}
|
40
|
-
), _ = a(() => {
|
41
|
-
if (s.value.arrow) {
|
42
|
-
const { x: t, y: u } = s.value.arrow;
|
43
|
-
return {
|
44
|
-
style: {
|
45
|
-
left: `${t}px`,
|
46
|
-
top: `${u}px`
|
47
|
-
}
|
48
|
-
};
|
49
|
-
}
|
50
|
-
}), p = a(() => f({}, e.containerAttributes, {
|
51
|
-
class: {
|
52
|
-
"bb-floating": !0,
|
53
|
-
[`bb-floating--${w.value}`]: !0,
|
54
|
-
[`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
|
55
|
-
"bb-floating--hidden": !e.open,
|
56
|
-
"bb-floating--open": e.open
|
57
|
-
},
|
58
|
-
style: {
|
59
|
-
...g.value,
|
60
|
-
"--transition-duration": `${e.transitionDuration}ms`
|
61
|
-
},
|
62
|
-
tabindex: e.open ? void 0 : -1
|
63
|
-
})), v = a(() => f({}, e.bubbleAttributes, {}));
|
64
|
-
return $(
|
65
|
-
() => e.open,
|
66
|
-
(t) => {
|
67
|
-
t && (n.value = m.value);
|
68
|
-
}
|
69
|
-
), (t, u) => (b(), A(C, { target: t.teleportTarget }, {
|
70
|
-
default: k(() => [
|
71
|
-
(b(), x("span", o(p.value, {
|
72
|
-
key: p.value.id,
|
73
|
-
ref_key: "content",
|
74
|
-
ref: l
|
75
|
-
}), [
|
76
|
-
c("span", o({
|
77
|
-
ref_key: "bubblearrow",
|
78
|
-
ref: i,
|
79
|
-
class: "bb-floating__arrow"
|
80
|
-
}, _.value), null, 16),
|
81
|
-
c("span", o({ class: "bb-floating__bubble" }, v.value), [
|
82
|
-
B(t.$slots, "default")
|
83
|
-
], 16)
|
84
|
-
], 16))
|
85
|
-
]),
|
86
|
-
_: 3
|
87
|
-
}, 8, ["target"]));
|
88
|
-
}
|
89
|
-
});
|
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
|
+
];
|
90
23
|
export {
|
91
|
-
|
24
|
+
n as default
|
92
25
|
};
|
package/dist/index264.js
ADDED
@@ -0,0 +1,92 @@
|
|
1
|
+
import { defineComponent as h, toRef as y, ref as r, 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 "./index229.js";
|
3
|
+
import f from "./index327.js";
|
4
|
+
import { useFloating as D, arrow as E } from "./index218.js";
|
5
|
+
import { autoUpdate as P, flip as F, offset as S, shift as T } from "./index231.js";
|
6
|
+
const W = /* @__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
|
+
teleportTarget: {}
|
22
|
+
},
|
23
|
+
setup(d) {
|
24
|
+
const e = d, m = y(e, "wrapper"), n = r(), l = r(), i = r(), { floatingStyles: g, placement: w, middlewareData: s } = D(
|
25
|
+
n,
|
26
|
+
l,
|
27
|
+
{
|
28
|
+
placement: e.placement,
|
29
|
+
whileElementsMounted: P,
|
30
|
+
middleware: [
|
31
|
+
F(),
|
32
|
+
S(e.offset),
|
33
|
+
T({ padding: e.padding }),
|
34
|
+
E({
|
35
|
+
element: i,
|
36
|
+
padding: e.arrowPadding
|
37
|
+
})
|
38
|
+
]
|
39
|
+
}
|
40
|
+
), _ = a(() => {
|
41
|
+
if (s.value.arrow) {
|
42
|
+
const { x: t, y: u } = s.value.arrow;
|
43
|
+
return {
|
44
|
+
style: {
|
45
|
+
left: `${t}px`,
|
46
|
+
top: `${u}px`
|
47
|
+
}
|
48
|
+
};
|
49
|
+
}
|
50
|
+
}), p = a(() => f({}, e.containerAttributes, {
|
51
|
+
class: {
|
52
|
+
"bb-floating": !0,
|
53
|
+
[`bb-floating--${w.value}`]: !0,
|
54
|
+
[`${e.baseClass}__bubble-container--${e.theme}`]: e.theme,
|
55
|
+
"bb-floating--hidden": !e.open,
|
56
|
+
"bb-floating--open": e.open
|
57
|
+
},
|
58
|
+
style: {
|
59
|
+
...g.value,
|
60
|
+
"--transition-duration": `${e.transitionDuration}ms`
|
61
|
+
},
|
62
|
+
tabindex: e.open ? void 0 : -1
|
63
|
+
})), v = a(() => f({}, e.bubbleAttributes, {}));
|
64
|
+
return $(
|
65
|
+
() => e.open,
|
66
|
+
(t) => {
|
67
|
+
t && (n.value = m.value);
|
68
|
+
}
|
69
|
+
), (t, u) => (b(), A(C, { target: t.teleportTarget }, {
|
70
|
+
default: k(() => [
|
71
|
+
(b(), x("span", o(p.value, {
|
72
|
+
key: p.value.id,
|
73
|
+
ref_key: "content",
|
74
|
+
ref: l
|
75
|
+
}), [
|
76
|
+
c("span", o({
|
77
|
+
ref_key: "bubblearrow",
|
78
|
+
ref: i,
|
79
|
+
class: "bb-floating__arrow"
|
80
|
+
}, _.value), null, 16),
|
81
|
+
c("span", o({ class: "bb-floating__bubble" }, v.value), [
|
82
|
+
B(t.$slots, "default")
|
83
|
+
], 16)
|
84
|
+
], 16))
|
85
|
+
]),
|
86
|
+
_: 3
|
87
|
+
}, 8, ["target"]));
|
88
|
+
}
|
89
|
+
});
|
90
|
+
export {
|
91
|
+
W as default
|
92
|
+
};
|
package/dist/index266.js
ADDED
package/dist/index267.js
CHANGED
@@ -1,9 +1,18 @@
|
|
1
|
-
const
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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]),
|
8
|
+
r,
|
9
|
+
f
|
10
|
+
);
|
11
|
+
if (i)
|
12
|
+
return i;
|
13
|
+
}
|
14
|
+
return t;
|
15
|
+
}, null);
|
7
16
|
export {
|
8
|
-
|
17
|
+
e as findInTree
|
9
18
|
};
|