bitboss-ui 2.1.86 → 2.1.88
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/BaseSelect/BaseSelect.vue.d.ts +8 -0
- package/dist/components/BbSelect/BbSelect.vue.d.ts +6 -0
- package/dist/components/ListBox.vue.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index107.js +9 -9
- package/dist/index108.js +5 -3
- package/dist/index112.js +33 -24
- package/dist/index114.js +1 -1
- package/dist/index120.js +1 -1
- package/dist/index122.js +13 -13
- package/dist/index13.js +2 -2
- package/dist/index130.js +1 -1
- package/dist/index132.js +5 -5
- package/dist/index134.js +1 -1
- package/dist/index136.js +2 -2
- package/dist/index139.js +1 -1
- package/dist/index142.js +1 -1
- package/dist/index15.js +5 -5
- package/dist/index17.js +3 -3
- package/dist/index19.js +8 -8
- package/dist/index21.js +14 -14
- package/dist/index215.js +2 -2
- package/dist/index216.js +2 -2
- package/dist/index217.js +1 -1
- package/dist/index218.js +1 -1
- package/dist/index219.js +32 -3
- package/dist/index220.js +27 -12
- package/dist/index222.js +4 -201
- package/dist/index223.js +15 -0
- package/dist/index224.js +18 -133
- package/dist/index225.js +203 -0
- package/dist/index227.js +133 -26
- package/dist/index229.js +5 -2
- package/dist/index23.js +11 -11
- package/dist/index230.js +5 -2
- package/dist/index231.js +5 -3
- package/dist/index232.js +5 -3
- package/dist/index233.js +5 -7
- package/dist/index234.js +5 -2
- package/dist/index235.js +2 -86
- package/dist/{index249.js → index236.js} +1 -1
- package/dist/index237.js +3 -29
- package/dist/index238.js +2 -17
- package/dist/index239.js +16 -49
- package/dist/index240.js +11 -14
- package/dist/index241.js +51 -3
- package/dist/index242.js +14 -11
- package/dist/index243.js +11 -15
- package/dist/index244.js +17 -2
- package/dist/index245.js +27 -186
- package/dist/index246.js +16 -3
- package/dist/index247.js +4 -34
- package/dist/index248.js +106 -9
- package/dist/index25.js +3 -3
- package/dist/index250.js +100 -2
- package/dist/index252.js +229 -12
- package/dist/index253.js +13 -4
- package/dist/index254.js +30 -102
- package/dist/index255.js +11 -0
- package/dist/index256.js +2 -100
- package/dist/index257.js +190 -0
- package/dist/index258.js +3 -227
- package/dist/index259.js +5 -13
- package/dist/index260.js +6 -5
- package/dist/index261.js +8 -5
- package/dist/index262.js +268 -5
- package/dist/index263.js +52 -5
- package/dist/index264.js +52 -5
- package/dist/index265.js +32 -5
- package/dist/index266.js +59 -12
- package/dist/index267.js +13 -2
- package/dist/index268.js +9 -6
- package/dist/index269.js +3 -7
- package/dist/index27.js +1 -1
- package/dist/index270.js +4 -3
- package/dist/index271.js +3 -5
- package/dist/index272.js +2 -6
- package/dist/index273.js +84 -6
- package/dist/index275.js +2 -52
- package/dist/index276.js +7 -50
- package/dist/index277.js +52 -31
- package/dist/index278.js +21 -58
- package/dist/index279.js +8 -9
- package/dist/index280.js +23 -3
- package/dist/index281.js +6 -4
- package/dist/index282.js +15 -66
- package/dist/index283.js +9 -6
- package/dist/index284.js +2 -16
- package/dist/index285.js +7 -9
- package/dist/index286.js +7 -53
- package/dist/index287.js +66 -8
- package/dist/index288.js +11 -23
- package/dist/index289.js +5 -23
- package/dist/index29.js +3 -3
- package/dist/index290.js +3 -9
- package/dist/index291.js +3 -5
- package/dist/index292.js +7 -8
- package/dist/index293.js +3 -11
- package/dist/index294.js +10 -0
- package/dist/index295.js +7 -3
- package/dist/index296.js +3 -3
- package/dist/index298.js +3 -7
- package/dist/index299.js +280 -5
- package/dist/index300.js +2 -3
- package/dist/index301.js +124 -16
- package/dist/index302.js +2 -28
- package/dist/index303.js +15 -2
- package/dist/index304.js +2 -3
- package/dist/index305.js +16 -3
- package/dist/index306.js +2 -2
- package/dist/index307.js +16 -4
- package/dist/index308.js +2 -5
- package/dist/index309.js +17 -278
- package/dist/index31.js +2 -2
- package/dist/index310.js +2 -2
- package/dist/index311.js +2 -125
- package/dist/index312.js +4 -2
- package/dist/index313.js +3 -15
- package/dist/index314.js +3 -2
- package/dist/index315.js +2 -16
- package/dist/index316.js +28 -2
- package/dist/index317.js +17 -16
- package/dist/index318.js +27 -2
- package/dist/index319.js +2 -19
- package/dist/index320.js +2 -2
- package/dist/index321.js +1 -1
- package/dist/index322.js +2 -719
- package/dist/index323.js +2 -366
- package/dist/index324.js +2 -57
- package/dist/index325.js +3 -27
- package/dist/index326.js +719 -2
- package/dist/index327.js +366 -2
- package/dist/index328.js +57 -2
- package/dist/index329.js +1 -1
- package/dist/index33.js +8 -8
- package/dist/index330.js +4 -2
- package/dist/index331.js +5 -2
- package/dist/index332.js +7 -3
- package/dist/index333.js +5 -5
- package/dist/index334.js +7 -34
- package/dist/index335.js +35 -6
- package/dist/index336.js +6 -129
- package/dist/index337.js +113 -382
- package/dist/index338.js +397 -7
- package/dist/index339.js +5 -6
- package/dist/index340.js +57 -7
- package/dist/index341.js +57 -227
- package/dist/index342.js +6 -58
- package/dist/index343.js +133 -57
- package/dist/index344.js +6 -46
- package/dist/index345.js +19 -5
- package/dist/index346.js +8 -6
- package/dist/index347.js +13 -17
- package/dist/index348.js +5 -9
- package/dist/index349.js +46 -14
- package/dist/index35.js +4 -4
- package/dist/index351.js +21 -92
- package/dist/index353.js +518 -20
- package/dist/index354.js +95 -0
- package/dist/index355.js +222 -514
- package/dist/index37.js +59 -57
- package/dist/index39.js +7 -7
- package/dist/index41.js +2 -2
- package/dist/index43.js +8 -8
- package/dist/index45.js +6 -6
- 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 +5 -5
- package/dist/index67.js +1 -1
- package/dist/index80.js +6 -6
- package/dist/index82.js +1 -1
- package/dist/index84.js +2 -2
- package/dist/index86.js +3 -3
- package/dist/index88.js +1 -1
- package/dist/index91.js +3 -3
- package/dist/index93.js +2 -2
- package/dist/index95.js +5 -5
- package/dist/index97.js +1 -1
- package/package.json +1 -1
- package/dist/index221.js +0 -22
- package/dist/index226.js +0 -35
- package/dist/index251.js +0 -20
- package/dist/index274.js +0 -270
- package/dist/index297.js +0 -5
- package/dist/index352.js +0 -136
package/dist/index251.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { isNil as c } from "./index234.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
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
y as matchAnyKey
|
|
20
|
-
};
|
package/dist/index274.js
DELETED
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
import { defineComponent as pe, ref as T, computed as v, watch as be, createElementBlock as c, openBlock as u, withKeys as f, normalizeClass as O, withModifiers as m, createVNode as ge, withCtx as he, createElementVNode as E, Fragment as w, renderList as S, toDisplayString as x, renderSlot as C, nextTick as ye } from "vue";
|
|
2
|
-
import { chunk as _e } from "./index346.js";
|
|
3
|
-
import { identity as L } from "./index244.js";
|
|
4
|
-
import { isNotNil as ke } from "./index144.js";
|
|
5
|
-
import { last as ve } from "./index250.js";
|
|
6
|
-
import { sort as N } from "./index347.js";
|
|
7
|
-
import { validateDateFormat as R } from "./index272.js";
|
|
8
|
-
import { toInnerValue as Oe, toOuterValue as p } from "./index348.js";
|
|
9
|
-
import { isDateDisabled as we } from "./index349.js";
|
|
10
|
-
import g from "./index260.js";
|
|
11
|
-
import Se from "./index345.js";
|
|
12
|
-
const Ve = ["onKeydown"], De = { class: "bb-base-date-picker__header-container" }, Me = ["abbr"], Be = ["id", "aria-current", "aria-label", "aria-selected", "disabled", "tabindex"], Pe = /* @__PURE__ */ pe({
|
|
13
|
-
__name: "BaseDatePickerInputDaySelector",
|
|
14
|
-
props: {
|
|
15
|
-
cursor: {},
|
|
16
|
-
current: { type: Boolean },
|
|
17
|
-
disabled: { type: Boolean },
|
|
18
|
-
firstDayOfWeek: {},
|
|
19
|
-
id: {},
|
|
20
|
-
floating: { type: Boolean },
|
|
21
|
-
modelValue: {},
|
|
22
|
-
max: {},
|
|
23
|
-
min: {},
|
|
24
|
-
selectable: { type: Function },
|
|
25
|
-
range: { type: Boolean },
|
|
26
|
-
multiple: { type: Boolean },
|
|
27
|
-
readonly: { type: Boolean }
|
|
28
|
-
},
|
|
29
|
-
emits: ["update:modelValue", "update:cursor"],
|
|
30
|
-
setup(F, { emit: K }) {
|
|
31
|
-
const a = F, n = K, h = T(null), H = g().startOf("day");
|
|
32
|
-
a.min && R(a.min, "Min"), a.max && R(a.max, "Max");
|
|
33
|
-
const P = v(() => {
|
|
34
|
-
let e = 1 / 0, r = -1 / 0, s = {};
|
|
35
|
-
return a.modelValue && [].concat(a.modelValue).filter(L).map((i) => Oe(i, a.floating)).map((i) => i.valueOf()).forEach((i, y) => {
|
|
36
|
-
i < e && (e = i), i > r && (r = i), s[i] = y;
|
|
37
|
-
}), {
|
|
38
|
-
min: e,
|
|
39
|
-
max: r,
|
|
40
|
-
index: (t) => s[t.valueOf()],
|
|
41
|
-
selected: (t) => ke(s[t.valueOf()]),
|
|
42
|
-
isFirstOfRange: (t) => t.valueOf() === e,
|
|
43
|
-
isLastOfRange: (t) => t.valueOf() === r,
|
|
44
|
-
isBetween: (t) => t.valueOf() > e && t.valueOf() < r
|
|
45
|
-
};
|
|
46
|
-
}), Y = v(() => new Array(7).fill("").map((e, r) => g().day((r + a.firstDayOfWeek) % 7)).map((e) => ({
|
|
47
|
-
accessibleLabel: e.format("dddd"),
|
|
48
|
-
label: e.format("dd").slice(0, 1).toUpperCase(),
|
|
49
|
-
id: e.toISOString(),
|
|
50
|
-
original: e
|
|
51
|
-
}))), V = v(() => {
|
|
52
|
-
const e = a.cursor.year().toString(), r = a.cursor.month().toString(), t = a.cursor.clone().startOf("month").clone().startOf("week"), y = a.cursor.clone().endOf("month").clone().endOf("week"), re = g(a.cursor).startOf("day"), b = P.value, _ = a.range, oe = a.id, B = [];
|
|
53
|
-
for (let o = t; o.isBefore(y); o = o.add(1, "day"))
|
|
54
|
-
B.push(o.clone());
|
|
55
|
-
const ne = B.map((o) => {
|
|
56
|
-
const k = o.toISOString(), se = o.week().toString(), ie = b.selected(o), A = _ && b.isFirstOfRange(o), I = _ && b.isLastOfRange(o), de = _ && !A && !I && b.isBetween(o), le = o.month().toString() === r && o.year().toString() === e, ce = o.isSame(H), ue = o.isSame(re), fe = d(o), me = o.get("D").toString();
|
|
57
|
-
return {
|
|
58
|
-
buttonId: [oe, k].filter(L).join("_"),
|
|
59
|
-
current: ue,
|
|
60
|
-
disabled: fe,
|
|
61
|
-
first: A,
|
|
62
|
-
highlighted: le,
|
|
63
|
-
id: k,
|
|
64
|
-
label: me,
|
|
65
|
-
last: I,
|
|
66
|
-
middle: de,
|
|
67
|
-
original: o,
|
|
68
|
-
selected: ie,
|
|
69
|
-
slotName: k,
|
|
70
|
-
today: ce,
|
|
71
|
-
week: se
|
|
72
|
-
};
|
|
73
|
-
});
|
|
74
|
-
return _e(ne, 7);
|
|
75
|
-
}), d = (e) => we(e, {
|
|
76
|
-
min: a.min,
|
|
77
|
-
max: a.max,
|
|
78
|
-
selectable: a.selectable,
|
|
79
|
-
floating: a.floating
|
|
80
|
-
}), D = T("left"), $ = (e, r) => {
|
|
81
|
-
e && r && (D.value = e.isBefore(r) ? "left" : "right");
|
|
82
|
-
};
|
|
83
|
-
be(
|
|
84
|
-
() => a.cursor,
|
|
85
|
-
(e, r) => {
|
|
86
|
-
$(e, r);
|
|
87
|
-
}
|
|
88
|
-
);
|
|
89
|
-
const M = (e) => n("update:cursor", e), l = async () => {
|
|
90
|
-
if (!h.value) return;
|
|
91
|
-
await ye();
|
|
92
|
-
const e = ve([
|
|
93
|
-
...h.value.querySelectorAll(
|
|
94
|
-
".bb-base-date-picker__date--current button"
|
|
95
|
-
)
|
|
96
|
-
]);
|
|
97
|
-
e instanceof HTMLElement && e.focus();
|
|
98
|
-
}, U = (e) => {
|
|
99
|
-
if (!a.readonly && e.target instanceof HTMLButtonElement) {
|
|
100
|
-
const [, r] = e.target.id.split("_"), s = g(r);
|
|
101
|
-
if (a.cursor.month() !== s.month()) {
|
|
102
|
-
M(s);
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
const t = V.value.flat().find((i) => i.id === r);
|
|
106
|
-
if (!t || t.disabled) return;
|
|
107
|
-
M(s), j(t);
|
|
108
|
-
}
|
|
109
|
-
}, j = (e) => {
|
|
110
|
-
a.range ? W(e) : a.multiple ? q(e) : z(e);
|
|
111
|
-
}, W = (e) => {
|
|
112
|
-
if (Array.isArray(a.modelValue))
|
|
113
|
-
if (a.modelValue.length !== 1) {
|
|
114
|
-
const r = [p(e.original, a.floating)];
|
|
115
|
-
n("update:modelValue", r);
|
|
116
|
-
} else {
|
|
117
|
-
const r = N([
|
|
118
|
-
a.modelValue[0],
|
|
119
|
-
p(e.original, a.floating)
|
|
120
|
-
]);
|
|
121
|
-
n("update:modelValue", r);
|
|
122
|
-
}
|
|
123
|
-
}, q = (e) => {
|
|
124
|
-
if (Array.isArray(a.modelValue))
|
|
125
|
-
if (e.selected) {
|
|
126
|
-
const r = p(e.original, a.floating), s = a.modelValue.filter((t) => t !== r);
|
|
127
|
-
n("update:modelValue", s);
|
|
128
|
-
} else {
|
|
129
|
-
const r = N([
|
|
130
|
-
...a.modelValue,
|
|
131
|
-
p(e.original, a.floating)
|
|
132
|
-
]);
|
|
133
|
-
n("update:modelValue", r);
|
|
134
|
-
}
|
|
135
|
-
}, z = (e) => {
|
|
136
|
-
e.selected ? n("update:modelValue", null) : n("update:modelValue", p(e.original, a.floating));
|
|
137
|
-
}, G = () => {
|
|
138
|
-
const e = a.cursor.clone().add(1, "day");
|
|
139
|
-
d(e) || (n("update:cursor", e), l());
|
|
140
|
-
}, J = () => {
|
|
141
|
-
const e = a.cursor.clone().subtract(1, "day");
|
|
142
|
-
d(e) || (n("update:cursor", e), l());
|
|
143
|
-
}, Q = () => {
|
|
144
|
-
const e = a.cursor.clone().subtract(1, "week");
|
|
145
|
-
d(e) || (n("update:cursor", e), l());
|
|
146
|
-
}, X = () => {
|
|
147
|
-
const e = a.cursor.clone().add(1, "week");
|
|
148
|
-
d(e) || (n("update:cursor", e), l());
|
|
149
|
-
}, Z = () => {
|
|
150
|
-
const e = a.cursor.clone().endOf("week");
|
|
151
|
-
d(e) || (n("update:cursor", e), l());
|
|
152
|
-
}, ee = () => {
|
|
153
|
-
const e = a.cursor.clone().startOf("week");
|
|
154
|
-
d(e) || (n("update:cursor", e), l());
|
|
155
|
-
}, te = (e) => {
|
|
156
|
-
if (e.shiftKey) {
|
|
157
|
-
const r = a.cursor.clone().subtract(1, "year");
|
|
158
|
-
if (d(r)) return;
|
|
159
|
-
n("update:cursor", r);
|
|
160
|
-
} else {
|
|
161
|
-
const r = a.cursor.clone().subtract(1, "month");
|
|
162
|
-
if (d(r)) return;
|
|
163
|
-
n("update:cursor", r);
|
|
164
|
-
}
|
|
165
|
-
l();
|
|
166
|
-
}, ae = (e) => {
|
|
167
|
-
if (e.shiftKey) {
|
|
168
|
-
const r = a.cursor.clone().add(1, "year");
|
|
169
|
-
if (d(r)) return;
|
|
170
|
-
n("update:cursor", r);
|
|
171
|
-
} else {
|
|
172
|
-
const r = a.cursor.clone().add(1, "month");
|
|
173
|
-
if (d(r)) return;
|
|
174
|
-
n("update:cursor", r);
|
|
175
|
-
}
|
|
176
|
-
l();
|
|
177
|
-
};
|
|
178
|
-
return (e, r) => (u(), c("div", {
|
|
179
|
-
ref_key: "calendar",
|
|
180
|
-
ref: h,
|
|
181
|
-
"aria-label": "Calendar dates",
|
|
182
|
-
class: O(["bb-base-date-picker__days-selector", { "bb-base-date-picker__days-selector--hidden": !e.current }]),
|
|
183
|
-
role: "grid",
|
|
184
|
-
onKeydown: [
|
|
185
|
-
f(m(X, ["prevent"]), ["down"]),
|
|
186
|
-
f(m(Z, ["prevent"]), ["end"]),
|
|
187
|
-
f(m(ee, ["prevent"]), ["home"]),
|
|
188
|
-
f(m(J, ["prevent"]), ["left"]),
|
|
189
|
-
f(m(ae, ["prevent"]), ["page-down"]),
|
|
190
|
-
f(m(te, ["prevent"]), ["page-up"]),
|
|
191
|
-
f(m(G, ["prevent"]), ["right"]),
|
|
192
|
-
f(m(Q, ["prevent"]), ["up"])
|
|
193
|
-
]
|
|
194
|
-
}, [
|
|
195
|
-
ge(Se, {
|
|
196
|
-
direction: D.value,
|
|
197
|
-
gap: 30
|
|
198
|
-
}, {
|
|
199
|
-
default: he(() => [
|
|
200
|
-
(u(), c("div", {
|
|
201
|
-
key: e.cursor.month().toString(),
|
|
202
|
-
class: "bb-base-date-picker__month"
|
|
203
|
-
}, [
|
|
204
|
-
E("div", De, [
|
|
205
|
-
(u(!0), c(w, null, S(Y.value, (s) => (u(), c("div", {
|
|
206
|
-
key: s.id,
|
|
207
|
-
abbr: s.accessibleLabel,
|
|
208
|
-
class: "bb-base-date-picker__header-cell"
|
|
209
|
-
}, x(s.label), 9, Me))), 128))
|
|
210
|
-
]),
|
|
211
|
-
(u(!0), c(w, null, S(V.value, (s) => (u(), c("div", {
|
|
212
|
-
key: s[0].id,
|
|
213
|
-
class: "bb-base-date-picker__week"
|
|
214
|
-
}, [
|
|
215
|
-
(u(!0), c(w, null, S(s, (t) => (u(), c("div", {
|
|
216
|
-
key: t.id,
|
|
217
|
-
class: O({
|
|
218
|
-
"bb-base-date-picker__date--current": t.current,
|
|
219
|
-
"bb-base-date-picker__date--disabled": e.disabled || t.disabled,
|
|
220
|
-
"bb-base-date-picker__date--first": t.first,
|
|
221
|
-
"bb-base-date-picker__date--highlighted": t.highlighted,
|
|
222
|
-
"bb-base-date-picker__date--last": t.last,
|
|
223
|
-
"bb-base-date-picker__date--middle": t.middle,
|
|
224
|
-
"bb-base-date-picker__date--selected": t.selected,
|
|
225
|
-
"bb-base-date-picker__date--today": t.today,
|
|
226
|
-
"bb-base-date-picker__date": !0
|
|
227
|
-
})
|
|
228
|
-
}, [
|
|
229
|
-
E("button", {
|
|
230
|
-
id: t.buttonId,
|
|
231
|
-
"aria-current": t.today ? "date" : void 0,
|
|
232
|
-
"aria-label": `${t.original.format("dddd, MMMM D, YYYY")}${t.selected ? ", selected" : ""}`,
|
|
233
|
-
"aria-selected": t.selected,
|
|
234
|
-
class: O("bb-base-date-picker__date-button"),
|
|
235
|
-
disabled: e.disabled || t.disabled,
|
|
236
|
-
tabindex: Number(t.current) - 1,
|
|
237
|
-
type: "button",
|
|
238
|
-
role: "gridcell",
|
|
239
|
-
onClick: U
|
|
240
|
-
}, x(t.label), 9, Be),
|
|
241
|
-
C(e.$slots, "day", {
|
|
242
|
-
first: t.first,
|
|
243
|
-
highlighted: t.highlighted,
|
|
244
|
-
item: t.original,
|
|
245
|
-
label: t.label,
|
|
246
|
-
last: t.last,
|
|
247
|
-
middle: t.middle,
|
|
248
|
-
selected: t.selected
|
|
249
|
-
}),
|
|
250
|
-
C(e.$slots, t.slotName, {
|
|
251
|
-
first: t.first,
|
|
252
|
-
highlighted: t.highlighted,
|
|
253
|
-
item: t.original,
|
|
254
|
-
label: t.label,
|
|
255
|
-
last: t.last,
|
|
256
|
-
middle: t.middle,
|
|
257
|
-
selected: t.selected
|
|
258
|
-
})
|
|
259
|
-
], 2))), 128))
|
|
260
|
-
]))), 128))
|
|
261
|
-
]))
|
|
262
|
-
]),
|
|
263
|
-
_: 3
|
|
264
|
-
}, 8, ["direction"])
|
|
265
|
-
], 42, Ve));
|
|
266
|
-
}
|
|
267
|
-
});
|
|
268
|
-
export {
|
|
269
|
-
Pe as default
|
|
270
|
-
};
|
package/dist/index297.js
DELETED
package/dist/index352.js
DELETED
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
function c() {
|
|
2
|
-
return typeof window < "u";
|
|
3
|
-
}
|
|
4
|
-
function u(t) {
|
|
5
|
-
return p(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
6
|
-
}
|
|
7
|
-
function i(t) {
|
|
8
|
-
var e;
|
|
9
|
-
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
10
|
-
}
|
|
11
|
-
function N(t) {
|
|
12
|
-
var e;
|
|
13
|
-
return (e = (p(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
14
|
-
}
|
|
15
|
-
function p(t) {
|
|
16
|
-
return c() ? t instanceof Node || t instanceof i(t).Node : !1;
|
|
17
|
-
}
|
|
18
|
-
function m(t) {
|
|
19
|
-
return c() ? t instanceof Element || t instanceof i(t).Element : !1;
|
|
20
|
-
}
|
|
21
|
-
function w(t) {
|
|
22
|
-
return c() ? t instanceof HTMLElement || t instanceof i(t).HTMLElement : !1;
|
|
23
|
-
}
|
|
24
|
-
function f(t) {
|
|
25
|
-
return !c() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof i(t).ShadowRoot;
|
|
26
|
-
}
|
|
27
|
-
const E = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
28
|
-
function y(t) {
|
|
29
|
-
const {
|
|
30
|
-
overflow: e,
|
|
31
|
-
overflowX: n,
|
|
32
|
-
overflowY: o,
|
|
33
|
-
display: r
|
|
34
|
-
} = S(t);
|
|
35
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + o + n) && !E.has(r);
|
|
36
|
-
}
|
|
37
|
-
const T = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
38
|
-
function A(t) {
|
|
39
|
-
return T.has(u(t));
|
|
40
|
-
}
|
|
41
|
-
const v = [":popover-open", ":modal"];
|
|
42
|
-
function L(t) {
|
|
43
|
-
return v.some((e) => {
|
|
44
|
-
try {
|
|
45
|
-
return t.matches(e);
|
|
46
|
-
} catch {
|
|
47
|
-
return !1;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
const D = ["transform", "translate", "scale", "rotate", "perspective"], C = ["transform", "translate", "scale", "rotate", "perspective", "filter"], k = ["paint", "layout", "strict", "content"];
|
|
52
|
-
function V(t) {
|
|
53
|
-
const e = O(), n = m(t) ? S(t) : t;
|
|
54
|
-
return D.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || C.some((o) => (n.willChange || "").includes(o)) || k.some((o) => (n.contain || "").includes(o));
|
|
55
|
-
}
|
|
56
|
-
function B(t) {
|
|
57
|
-
let e = s(t);
|
|
58
|
-
for (; w(e) && !h(e); ) {
|
|
59
|
-
if (V(e))
|
|
60
|
-
return e;
|
|
61
|
-
if (L(e))
|
|
62
|
-
return null;
|
|
63
|
-
e = s(e);
|
|
64
|
-
}
|
|
65
|
-
return null;
|
|
66
|
-
}
|
|
67
|
-
function O() {
|
|
68
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
69
|
-
}
|
|
70
|
-
const R = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
71
|
-
function h(t) {
|
|
72
|
-
return R.has(u(t));
|
|
73
|
-
}
|
|
74
|
-
function S(t) {
|
|
75
|
-
return i(t).getComputedStyle(t);
|
|
76
|
-
}
|
|
77
|
-
function F(t) {
|
|
78
|
-
return m(t) ? {
|
|
79
|
-
scrollLeft: t.scrollLeft,
|
|
80
|
-
scrollTop: t.scrollTop
|
|
81
|
-
} : {
|
|
82
|
-
scrollLeft: t.scrollX,
|
|
83
|
-
scrollTop: t.scrollY
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
function s(t) {
|
|
87
|
-
if (u(t) === "html")
|
|
88
|
-
return t;
|
|
89
|
-
const e = (
|
|
90
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
91
|
-
t.assignedSlot || // DOM Element detected.
|
|
92
|
-
t.parentNode || // ShadowRoot detected.
|
|
93
|
-
f(t) && t.host || // Fallback.
|
|
94
|
-
N(t)
|
|
95
|
-
);
|
|
96
|
-
return f(e) ? e.host : e;
|
|
97
|
-
}
|
|
98
|
-
function b(t) {
|
|
99
|
-
const e = s(t);
|
|
100
|
-
return h(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : w(e) && y(e) ? e : b(e);
|
|
101
|
-
}
|
|
102
|
-
function d(t, e, n) {
|
|
103
|
-
var o;
|
|
104
|
-
e === void 0 && (e = []), n === void 0 && (n = !0);
|
|
105
|
-
const r = b(t), g = r === ((o = t.ownerDocument) == null ? void 0 : o.body), l = i(r);
|
|
106
|
-
if (g) {
|
|
107
|
-
const a = _(l);
|
|
108
|
-
return e.concat(l, l.visualViewport || [], y(r) ? r : [], a && n ? d(a) : []);
|
|
109
|
-
}
|
|
110
|
-
return e.concat(r, d(r, [], n));
|
|
111
|
-
}
|
|
112
|
-
function _(t) {
|
|
113
|
-
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
114
|
-
}
|
|
115
|
-
export {
|
|
116
|
-
S as getComputedStyle,
|
|
117
|
-
B as getContainingBlock,
|
|
118
|
-
N as getDocumentElement,
|
|
119
|
-
_ as getFrameElement,
|
|
120
|
-
b as getNearestOverflowAncestor,
|
|
121
|
-
u as getNodeName,
|
|
122
|
-
F as getNodeScroll,
|
|
123
|
-
d as getOverflowAncestors,
|
|
124
|
-
s as getParentNode,
|
|
125
|
-
i as getWindow,
|
|
126
|
-
V as isContainingBlock,
|
|
127
|
-
m as isElement,
|
|
128
|
-
w as isHTMLElement,
|
|
129
|
-
h as isLastTraversableNode,
|
|
130
|
-
p as isNode,
|
|
131
|
-
y as isOverflowElement,
|
|
132
|
-
f as isShadowRoot,
|
|
133
|
-
A as isTableElement,
|
|
134
|
-
L as isTopLayer,
|
|
135
|
-
O as isWebKit
|
|
136
|
-
};
|