v-datepicker-lite 0.0.7 → 0.0.8
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/index.js +159 -161
- package/package.json +1 -1
- package/style.css +1 -1
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as J, computed as H, createElementBlock as
|
|
1
|
+
import { defineComponent as J, computed as H, createElementBlock as O, openBlock as k, createElementVNode as x, Fragment as L, renderList as F, unref as w, toDisplayString as j, normalizeClass as A, ref as C, watch as le, nextTick as K, onMounted as Ve, createBlock as te, createCommentVNode as U, normalizeStyle as Mt, createVNode as Ge, renderSlot as Le, normalizeProps as Fe, guardReactiveProps as je, onUnmounted as zt, resolveDynamicComponent as Gt, Teleport as Ut, withCtx as Ae, createTextVNode as Jt, onBeforeUnmount as Zt } from "vue";
|
|
2
2
|
const St = (e, t = "YYYY-MM-DD") => {
|
|
3
3
|
const n = e.getFullYear(), o = String(e.getMonth() + 1).padStart(2, "0"), r = String(e.getDate()).padStart(2, "0"), l = String(e.getHours()).padStart(2, "0"), c = String(e.getMinutes()).padStart(2, "0"), i = String(e.getSeconds()).padStart(2, "0"), a = String(e.getMilliseconds()).padStart(3, "0");
|
|
4
4
|
return t.replace("YYYY", n.toString()).replace("MM", o).replace("DD", r).replace("HH", l).replace("mm", c).replace("ss", i).replace("sss", a);
|
|
5
|
-
},
|
|
5
|
+
}, qe = (e) => {
|
|
6
6
|
if (!e) return null;
|
|
7
7
|
const t = new Date(e);
|
|
8
8
|
return isNaN(t.getTime()) ? null : t;
|
|
@@ -121,19 +121,19 @@ const St = (e, t = "YYYY-MM-DD") => {
|
|
|
121
121
|
}), c = (i) => {
|
|
122
122
|
i.isDisabled || o("select", i.date);
|
|
123
123
|
};
|
|
124
|
-
return (i, a) => (k(),
|
|
124
|
+
return (i, a) => (k(), O("div", en, [
|
|
125
125
|
x("table", tn, [
|
|
126
126
|
x("thead", null, [
|
|
127
127
|
x("tr", nn, [
|
|
128
|
-
(k(!0),
|
|
128
|
+
(k(!0), O(L, null, F(w(Tt), (u) => (k(), O("th", { key: u }, j(u), 1))), 128))
|
|
129
129
|
])
|
|
130
130
|
]),
|
|
131
131
|
x("tbody", rn, [
|
|
132
|
-
(k(!0),
|
|
132
|
+
(k(!0), O(L, null, F(l.value, (u, p) => (k(), O("tr", {
|
|
133
133
|
key: p,
|
|
134
134
|
class: "date-picker-week-row"
|
|
135
135
|
}, [
|
|
136
|
-
(k(!0),
|
|
136
|
+
(k(!0), O(L, null, F(u, (d) => (k(), O("td", {
|
|
137
137
|
key: `${d.year}-${d.month}-${d.day}`,
|
|
138
138
|
class: "date-picker-day-cell"
|
|
139
139
|
}, [
|
|
@@ -179,16 +179,16 @@ const St = (e, t = "YYYY-MM-DD") => {
|
|
|
179
179
|
const i = ((a = c.days.find((u) => u.isCurrentMonth)) == null ? void 0 : a.date) || c.days[0].date;
|
|
180
180
|
o("select", i);
|
|
181
181
|
};
|
|
182
|
-
return (c, i) => (k(),
|
|
182
|
+
return (c, i) => (k(), O("div", sn, [
|
|
183
183
|
x("table", ln, [
|
|
184
184
|
x("thead", null, [
|
|
185
185
|
x("tr", cn, [
|
|
186
186
|
i[0] || (i[0] = x("th", { class: "date-picker-weekday date-picker-week-header" }, "Wk", -1)),
|
|
187
|
-
(k(!0),
|
|
187
|
+
(k(!0), O(L, null, F(w(Tt), (a) => (k(), O("th", { key: a }, j(a), 1))), 128))
|
|
188
188
|
])
|
|
189
189
|
]),
|
|
190
190
|
x("tbody", un, [
|
|
191
|
-
(k(!0),
|
|
191
|
+
(k(!0), O(L, null, F(r.value, (a) => (k(), O("tr", {
|
|
192
192
|
key: a.weekNumber,
|
|
193
193
|
class: A([
|
|
194
194
|
"date-picker-week-row",
|
|
@@ -201,7 +201,7 @@ const St = (e, t = "YYYY-MM-DD") => {
|
|
|
201
201
|
x("td", fn, [
|
|
202
202
|
x("div", pn, j(a.weekNumber), 1)
|
|
203
203
|
]),
|
|
204
|
-
(k(!0),
|
|
204
|
+
(k(!0), O(L, null, F(a.days, (u) => (k(), O("td", {
|
|
205
205
|
key: `${u.year}-${u.month}-${u.day}`,
|
|
206
206
|
class: "date-picker-day-cell"
|
|
207
207
|
}, [
|
|
@@ -235,10 +235,10 @@ function vn(e, t = "24h", n = 15, o) {
|
|
|
235
235
|
}, p = () => {
|
|
236
236
|
const s = [], f = i.value ? 1 : 0;
|
|
237
237
|
for (let v = 0; v < (i.value ? 2 : 1); v++) {
|
|
238
|
-
const
|
|
238
|
+
const _ = i.value ? v === 0 ? " AM" : " PM" : "";
|
|
239
239
|
for (let S = f; S <= (i.value ? 12 : 23); S++)
|
|
240
240
|
for (let D = 0; D < 60; D += n) {
|
|
241
|
-
const y = (i.value, S), h = i.value ? S === 12 ? v === 0 ? 0 : 12 : S + v * 12 : S, P = `${String(y).padStart(2, "0")}:${String(D).padStart(2, "0")}` +
|
|
241
|
+
const y = (i.value, S), h = i.value ? S === 12 ? v === 0 ? 0 : 12 : S + v * 12 : S, P = `${String(y).padStart(2, "0")}:${String(D).padStart(2, "0")}` + _;
|
|
242
242
|
s.push({
|
|
243
243
|
display: P,
|
|
244
244
|
value: `${String(h).padStart(2, "0")}:${String(D).padStart(2, "0")}`,
|
|
@@ -277,14 +277,14 @@ function vn(e, t = "24h", n = 15, o) {
|
|
|
277
277
|
f = parseInt(S), v = parseInt(D);
|
|
278
278
|
}
|
|
279
279
|
r.value = f, l.value = v;
|
|
280
|
-
const
|
|
281
|
-
|
|
280
|
+
const _ = e ? new Date(e.getTime()) : /* @__PURE__ */ new Date();
|
|
281
|
+
_.setHours(f, v, 0, 0), o("update", _);
|
|
282
282
|
},
|
|
283
283
|
scrollToSelected: (s) => {
|
|
284
284
|
if (!s) return;
|
|
285
285
|
const f = c.value.findIndex((v) => v === d());
|
|
286
286
|
if (f >= 0) {
|
|
287
|
-
const
|
|
287
|
+
const _ = s.clientHeight, S = f * 30 - _ / 2 + 30 / 2;
|
|
288
288
|
s.scrollTop = Math.max(0, S);
|
|
289
289
|
}
|
|
290
290
|
},
|
|
@@ -325,13 +325,13 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
325
325
|
p(r.value);
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
|
-
),
|
|
328
|
+
), Ve(() => {
|
|
329
329
|
c(), K(() => {
|
|
330
330
|
setTimeout(() => {
|
|
331
331
|
p(r.value);
|
|
332
332
|
}, 3);
|
|
333
333
|
});
|
|
334
|
-
}), (d, b) => (k(),
|
|
334
|
+
}), (d, b) => (k(), O("div", hn, [
|
|
335
335
|
x("div", {
|
|
336
336
|
ref_key: "timeListRef",
|
|
337
337
|
ref: r,
|
|
@@ -339,7 +339,7 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
339
339
|
role: "listbox",
|
|
340
340
|
"aria-label": "Time Selection"
|
|
341
341
|
}, [
|
|
342
|
-
(k(!0),
|
|
342
|
+
(k(!0), O(L, null, F(w(l), (g) => (k(), O("div", {
|
|
343
343
|
key: g,
|
|
344
344
|
class: A(["time-option", {
|
|
345
345
|
selected: g === w(a)()
|
|
@@ -378,10 +378,10 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
378
378
|
}, p = (d) => {
|
|
379
379
|
o("month-select", d.month);
|
|
380
380
|
};
|
|
381
|
-
return (d, b) => (k(),
|
|
381
|
+
return (d, b) => (k(), O("div", yn, [
|
|
382
382
|
x("div", bn, [
|
|
383
383
|
x("div", wn, [
|
|
384
|
-
(k(!0),
|
|
384
|
+
(k(!0), O(L, null, F(c.value, (g) => (k(), O("button", {
|
|
385
385
|
key: g,
|
|
386
386
|
class: A([
|
|
387
387
|
"year-item",
|
|
@@ -397,11 +397,11 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
397
397
|
x("div", Dn, [
|
|
398
398
|
x("table", xn, [
|
|
399
399
|
x("tbody", Mn, [
|
|
400
|
-
(k(!0),
|
|
400
|
+
(k(!0), O(L, null, F(a.value, (g, m) => (k(), O("tr", {
|
|
401
401
|
key: m,
|
|
402
402
|
class: "date-picker-months-row"
|
|
403
403
|
}, [
|
|
404
|
-
(k(!0),
|
|
404
|
+
(k(!0), O(L, null, F(g, (s) => (k(), O("td", {
|
|
405
405
|
key: s.month,
|
|
406
406
|
class: "date-picker-month-cell"
|
|
407
407
|
}, [
|
|
@@ -442,14 +442,14 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
442
442
|
}), c = (i) => {
|
|
443
443
|
o("select", i.month);
|
|
444
444
|
};
|
|
445
|
-
return (i, a) => (k(),
|
|
445
|
+
return (i, a) => (k(), O("div", On, [
|
|
446
446
|
x("table", Tn, [
|
|
447
447
|
x("tbody", Pn, [
|
|
448
|
-
(k(!0),
|
|
448
|
+
(k(!0), O(L, null, F(l.value, (u, p) => (k(), O("tr", {
|
|
449
449
|
key: p,
|
|
450
450
|
class: "date-picker-months-row"
|
|
451
451
|
}, [
|
|
452
|
-
(k(!0),
|
|
452
|
+
(k(!0), O(L, null, F(u, (d) => (k(), O("td", {
|
|
453
453
|
key: d.month,
|
|
454
454
|
class: "date-picker-month-cell"
|
|
455
455
|
}, [
|
|
@@ -500,7 +500,7 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
500
500
|
}, a = () => {
|
|
501
501
|
o("current-date");
|
|
502
502
|
};
|
|
503
|
-
return (u, p) => (k(),
|
|
503
|
+
return (u, p) => (k(), O("div", En, [
|
|
504
504
|
x("button", {
|
|
505
505
|
class: "date-picker-title",
|
|
506
506
|
onClick: i,
|
|
@@ -545,15 +545,15 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
545
545
|
}
|
|
546
546
|
});
|
|
547
547
|
function Wn(e, t) {
|
|
548
|
-
const n = C(/* @__PURE__ */ new Date()), o = C("date"), r = H(() => e.value ? e.value instanceof Date ? e.value :
|
|
548
|
+
const n = C(/* @__PURE__ */ new Date()), o = C("date"), r = H(() => e.value ? e.value instanceof Date ? e.value : qe(e.value) : null), l = H(() => {
|
|
549
549
|
if (!e.minDate) return !0;
|
|
550
|
-
const h =
|
|
550
|
+
const h = qe(e.minDate);
|
|
551
551
|
if (!h) return !0;
|
|
552
552
|
const M = n.value.getFullYear(), P = n.value.getMonth();
|
|
553
553
|
return new Date(M, P, 1) > h;
|
|
554
554
|
}), c = H(() => {
|
|
555
555
|
if (!e.maxDate) return !0;
|
|
556
|
-
const h =
|
|
556
|
+
const h = qe(e.maxDate);
|
|
557
557
|
if (!h) return !0;
|
|
558
558
|
const M = n.value.getFullYear(), P = n.value.getMonth();
|
|
559
559
|
return new Date(M, P + 1, 0) < h;
|
|
@@ -586,7 +586,7 @@ function Wn(e, t) {
|
|
|
586
586
|
y(h);
|
|
587
587
|
}, v = (h) => {
|
|
588
588
|
n.value = new Date(n.value.getFullYear(), h, 1), o.value = "date", e.mode === "month" && y(new Date(n.value.getFullYear(), h, 1));
|
|
589
|
-
},
|
|
589
|
+
}, _ = (h) => {
|
|
590
590
|
n.value = new Date(h, n.value.getMonth(), 1), o.value = "date";
|
|
591
591
|
}, S = (h) => {
|
|
592
592
|
const M = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?$/, P = /^\d{4}-\d{2}-\d{2}$/;
|
|
@@ -615,14 +615,14 @@ function Wn(e, t) {
|
|
|
615
615
|
onDateSelect: s,
|
|
616
616
|
onWeekSelect: f,
|
|
617
617
|
onMonthSelect: v,
|
|
618
|
-
onYearSelect:
|
|
618
|
+
onYearSelect: _,
|
|
619
619
|
emitValue: y
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
622
|
const Rn = { class: "date-picker" }, Bn = {
|
|
623
623
|
key: 0,
|
|
624
624
|
class: "date-picker-time-section"
|
|
625
|
-
},
|
|
625
|
+
}, po = /* @__PURE__ */ J({
|
|
626
626
|
__name: "DatePicker",
|
|
627
627
|
props: {
|
|
628
628
|
value: {},
|
|
@@ -651,7 +651,7 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
651
651
|
goToPrevDecade: s,
|
|
652
652
|
goToNextDecade: f,
|
|
653
653
|
goToCurrentDate: v,
|
|
654
|
-
onHeaderClick:
|
|
654
|
+
onHeaderClick: _,
|
|
655
655
|
onDateSelect: S,
|
|
656
656
|
onWeekSelect: D,
|
|
657
657
|
onMonthSelect: y,
|
|
@@ -664,12 +664,12 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
664
664
|
} else
|
|
665
665
|
M(T);
|
|
666
666
|
};
|
|
667
|
-
return
|
|
667
|
+
return Ve(async () => {
|
|
668
668
|
K(() => {
|
|
669
669
|
r.value && (l.value = r.value.clientHeight);
|
|
670
670
|
});
|
|
671
|
-
}), (T, $) => (k(),
|
|
672
|
-
T.mode !== "time" ? (k(),
|
|
671
|
+
}), (T, $) => (k(), O("div", Rn, [
|
|
672
|
+
T.mode !== "time" ? (k(), te(In, {
|
|
673
673
|
key: 0,
|
|
674
674
|
"current-date": w(c),
|
|
675
675
|
"view-mode": w(i),
|
|
@@ -677,7 +677,7 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
677
677
|
"can-go-next": w(p),
|
|
678
678
|
onPrev: $[0] || ($[0] = (Y) => w(i) === "year" ? w(s)() : w(i) === "month" ? w(g)() : w(d)()),
|
|
679
679
|
onNext: $[1] || ($[1] = (Y) => w(i) === "year" ? w(f)() : w(i) === "month" ? w(m)() : w(b)()),
|
|
680
|
-
onHeaderClick: w(
|
|
680
|
+
onHeaderClick: w(_),
|
|
681
681
|
onCurrentDate: w(v)
|
|
682
682
|
}, null, 8, ["current-date", "view-mode", "can-go-prev", "can-go-next", "onHeaderClick", "onCurrentDate"])) : U("", !0),
|
|
683
683
|
x("div", {
|
|
@@ -693,7 +693,7 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
693
693
|
ref_key: "datePickerContent",
|
|
694
694
|
ref: r
|
|
695
695
|
}, [
|
|
696
|
-
w(i) === "date" && (T.mode === "date" || T.mode === "dateTime") ? (k(),
|
|
696
|
+
w(i) === "date" && (T.mode === "date" || T.mode === "dateTime") ? (k(), te(an, {
|
|
697
697
|
key: 0,
|
|
698
698
|
"current-date": w(c),
|
|
699
699
|
"selected-date": w(a),
|
|
@@ -702,19 +702,19 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
702
702
|
"disabled-dates": T.disabledDates,
|
|
703
703
|
onSelect: w(S)
|
|
704
704
|
}, null, 8, ["current-date", "selected-date", "min-date", "max-date", "disabled-dates", "onSelect"])) : U("", !0),
|
|
705
|
-
T.mode === "week" && w(i) === "date" ? (k(),
|
|
705
|
+
T.mode === "week" && w(i) === "date" ? (k(), te(mn, {
|
|
706
706
|
key: 1,
|
|
707
707
|
"current-date": w(c),
|
|
708
708
|
"selected-date": w(a),
|
|
709
709
|
onSelect: w(D)
|
|
710
710
|
}, null, 8, ["current-date", "selected-date", "onSelect"])) : U("", !0),
|
|
711
|
-
w(i) !== "year" && (w(i) === "month" || T.mode === "month") ? (k(),
|
|
711
|
+
w(i) !== "year" && (w(i) === "month" || T.mode === "month") ? (k(), te(Cn, {
|
|
712
712
|
key: 2,
|
|
713
713
|
"current-date": w(c),
|
|
714
714
|
"selected-date": w(a),
|
|
715
715
|
onSelect: w(y)
|
|
716
716
|
}, null, 8, ["current-date", "selected-date", "onSelect"])) : U("", !0),
|
|
717
|
-
w(i) === "year" ? (k(),
|
|
717
|
+
w(i) === "year" ? (k(), te(_n, {
|
|
718
718
|
key: 3,
|
|
719
719
|
"current-date": w(c),
|
|
720
720
|
"selected-date": w(a),
|
|
@@ -722,8 +722,8 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
722
722
|
onMonthSelect: w(y)
|
|
723
723
|
}, null, 8, ["current-date", "selected-date", "onSelect", "onMonthSelect"])) : U("", !0)
|
|
724
724
|
], 512),
|
|
725
|
-
T.mode === "dateTime" && w(i) === "date" ? (k(),
|
|
726
|
-
|
|
725
|
+
T.mode === "dateTime" && w(i) === "date" ? (k(), O("div", Bn, [
|
|
726
|
+
Ge(pt, {
|
|
727
727
|
"selected-time": w(a),
|
|
728
728
|
"time-format": T.timeFormat,
|
|
729
729
|
"time-interval": T.timeInterval,
|
|
@@ -731,7 +731,7 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
731
731
|
}, null, 8, ["selected-time", "time-format", "time-interval"])
|
|
732
732
|
])) : U("", !0)
|
|
733
733
|
], 6),
|
|
734
|
-
T.mode === "time" ? (k(),
|
|
734
|
+
T.mode === "time" ? (k(), te(pt, {
|
|
735
735
|
key: 1,
|
|
736
736
|
"selected-time": w(a),
|
|
737
737
|
"time-format": T.timeFormat,
|
|
@@ -773,7 +773,7 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
773
773
|
}, m = (s) => {
|
|
774
774
|
r("select-period", s);
|
|
775
775
|
};
|
|
776
|
-
return t({ scrollToSelected: d }), (s, f) => (k(),
|
|
776
|
+
return t({ scrollToSelected: d }), (s, f) => (k(), O("div", {
|
|
777
777
|
ref_key: "dropdownRef",
|
|
778
778
|
ref: l,
|
|
779
779
|
class: "time-picker-dropdown"
|
|
@@ -785,11 +785,11 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
785
785
|
ref: c,
|
|
786
786
|
class: "time-picker-options-scroll"
|
|
787
787
|
}, [
|
|
788
|
-
(k(!0),
|
|
788
|
+
(k(!0), O(L, null, F(u.value, (v) => (k(), O("button", {
|
|
789
789
|
key: v,
|
|
790
790
|
type: "button",
|
|
791
791
|
class: A(["time-picker-option-button", { selected: v === s.selectedHour }]),
|
|
792
|
-
onClick: (
|
|
792
|
+
onClick: (_) => b(v)
|
|
793
793
|
}, j(String(v).padStart(2, "0")), 11, Gn))), 128))
|
|
794
794
|
], 512)
|
|
795
795
|
]),
|
|
@@ -799,15 +799,15 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
799
799
|
ref: i,
|
|
800
800
|
class: "time-picker-options-scroll"
|
|
801
801
|
}, [
|
|
802
|
-
(k(!0),
|
|
802
|
+
(k(!0), O(L, null, F(p.value, (v) => (k(), O("button", {
|
|
803
803
|
key: v,
|
|
804
804
|
type: "button",
|
|
805
805
|
class: A(["time-picker-option-button", { selected: v === s.selectedMinute }]),
|
|
806
|
-
onClick: (
|
|
806
|
+
onClick: (_) => g(v)
|
|
807
807
|
}, j(String(v).padStart(2, "0")), 11, Jn))), 128))
|
|
808
808
|
], 512)
|
|
809
809
|
]),
|
|
810
|
-
s.is12Hour ? (k(),
|
|
810
|
+
s.is12Hour ? (k(), O("div", Zn, [
|
|
811
811
|
x("div", {
|
|
812
812
|
ref_key: "periodScroll",
|
|
813
813
|
ref: a,
|
|
@@ -846,7 +846,7 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
846
846
|
} else
|
|
847
847
|
return `${String(t.hour).padStart(2, "0")}:${o}`;
|
|
848
848
|
});
|
|
849
|
-
return (o, r) =>
|
|
849
|
+
return (o, r) => Le(o.$slots, "default", Fe(je({ displayTime: n.value })), () => [
|
|
850
850
|
x("button", {
|
|
851
851
|
type: "button",
|
|
852
852
|
class: A(["time-picker-input", o.triggerClass])
|
|
@@ -883,7 +883,7 @@ function He(e) {
|
|
|
883
883
|
return Pt(e);
|
|
884
884
|
}
|
|
885
885
|
const er = typeof window > "u" || !window.navigator ? !1 : /iP(?:ad|hone|od)/.test(window.navigator.userAgent) || window.navigator.maxTouchPoints > 2 && /iPad|Macintosh/.test(window.navigator.userAgent);
|
|
886
|
-
function
|
|
886
|
+
function ze(e, t, n, o) {
|
|
887
887
|
return e.addEventListener(t, n, o), () => e.removeEventListener(t, n, o);
|
|
888
888
|
}
|
|
889
889
|
let mt = !1;
|
|
@@ -918,16 +918,16 @@ function tr(e, t, n = {}) {
|
|
|
918
918
|
};
|
|
919
919
|
let d = !1;
|
|
920
920
|
const b = [
|
|
921
|
-
|
|
921
|
+
ze(o, "click", (m) => {
|
|
922
922
|
d || (d = !0, setTimeout(() => {
|
|
923
923
|
d = !1;
|
|
924
924
|
}, 0), p(m));
|
|
925
925
|
}, { passive: !0, capture: l }),
|
|
926
|
-
|
|
926
|
+
ze(o, "pointerdown", (m) => {
|
|
927
927
|
const s = He(e);
|
|
928
928
|
a = !u(m) && !!(s && !m.composedPath().includes(s));
|
|
929
929
|
}, { passive: !0 }),
|
|
930
|
-
c &&
|
|
930
|
+
c && ze(o, "blur", (m) => {
|
|
931
931
|
setTimeout(() => {
|
|
932
932
|
var s;
|
|
933
933
|
const f = He(e);
|
|
@@ -1021,7 +1021,7 @@ const hr = {
|
|
|
1021
1021
|
function Z(e) {
|
|
1022
1022
|
return e.split("-")[0];
|
|
1023
1023
|
}
|
|
1024
|
-
var ce = Math.max,
|
|
1024
|
+
var ce = Math.max, Ne = Math.min, me = Math.round;
|
|
1025
1025
|
function Ue() {
|
|
1026
1026
|
var e = navigator.userAgentData;
|
|
1027
1027
|
return e != null && e.brands && Array.isArray(e.brands) ? e.brands.map(function(t) {
|
|
@@ -1076,13 +1076,13 @@ function ee(e) {
|
|
|
1076
1076
|
function gr(e) {
|
|
1077
1077
|
return ["table", "td", "th"].indexOf(Q(e)) >= 0;
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function ne(e) {
|
|
1080
1080
|
return ((ue(e) ? e.ownerDocument : (
|
|
1081
1081
|
// $FlowFixMe[prop-missing]
|
|
1082
1082
|
e.document
|
|
1083
1083
|
)) || window.document).documentElement;
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Ie(e) {
|
|
1086
1086
|
return Q(e) === "html" ? e : (
|
|
1087
1087
|
// this is a quicker (but less type safe) way to save quite some bytes from the bundle
|
|
1088
1088
|
// $FlowFixMe[incompatible-return]
|
|
@@ -1091,7 +1091,7 @@ function We(e) {
|
|
|
1091
1091
|
e.parentNode || // DOM Element detected
|
|
1092
1092
|
(Qe(e) ? e.host : null) || // ShadowRoot detected
|
|
1093
1093
|
// $FlowFixMe[incompatible-call]: HTMLElement is a Node
|
|
1094
|
-
|
|
1094
|
+
ne(e)
|
|
1095
1095
|
);
|
|
1096
1096
|
}
|
|
1097
1097
|
function ht(e) {
|
|
@@ -1105,7 +1105,7 @@ function yr(e) {
|
|
|
1105
1105
|
if (o.position === "fixed")
|
|
1106
1106
|
return null;
|
|
1107
1107
|
}
|
|
1108
|
-
var r =
|
|
1108
|
+
var r = Ie(e);
|
|
1109
1109
|
for (Qe(r) && (r = r.host); R(r) && ["html", "body"].indexOf(Q(r)) < 0; ) {
|
|
1110
1110
|
var l = ee(r);
|
|
1111
1111
|
if (l.transform !== "none" || l.perspective !== "none" || l.contain === "paint" || ["transform", "perspective"].indexOf(l.willChange) !== -1 || t && l.willChange === "filter" || t && l.filter && l.filter !== "none")
|
|
@@ -1123,7 +1123,7 @@ function Ke(e) {
|
|
|
1123
1123
|
return ["top", "bottom"].indexOf(e) >= 0 ? "x" : "y";
|
|
1124
1124
|
}
|
|
1125
1125
|
function ke(e, t, n) {
|
|
1126
|
-
return ce(e,
|
|
1126
|
+
return ce(e, Ne(t, n));
|
|
1127
1127
|
}
|
|
1128
1128
|
function br(e, t, n) {
|
|
1129
1129
|
var o = ke(e, t, n);
|
|
@@ -1153,7 +1153,7 @@ var wr = function(e, t) {
|
|
|
1153
1153
|
function kr(e) {
|
|
1154
1154
|
var t, n = e.state, o = e.name, r = e.options, l = n.elements.arrow, c = n.modifiersData.popperOffsets, i = Z(n.placement), a = Ke(i), u = [V, q].indexOf(i) >= 0, p = u ? "height" : "width";
|
|
1155
1155
|
if (!(!l || !c)) {
|
|
1156
|
-
var d = wr(r.padding, n), b = Xe(l), g = a === "y" ? N : V, m = a === "y" ? B : q, s = n.rects.reference[p] + n.rects.reference[a] - c[a] - n.rects.popper[p], f = c[a] - n.rects.reference[a], v = _e(l),
|
|
1156
|
+
var d = wr(r.padding, n), b = Xe(l), g = a === "y" ? N : V, m = a === "y" ? B : q, s = n.rects.reference[p] + n.rects.reference[a] - c[a] - n.rects.popper[p], f = c[a] - n.rects.reference[a], v = _e(l), _ = v ? a === "y" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, S = s / 2 - f / 2, D = d[g], y = _ - b[p] - d[m], h = _ / 2 - b[p] / 2 + S, M = ke(D, h, y), P = a;
|
|
1157
1157
|
n.modifiersData[o] = (t = {}, t[P] = M, t.centerOffset = M - h, t);
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
@@ -1195,10 +1195,10 @@ function gt(e) {
|
|
|
1195
1195
|
y: s
|
|
1196
1196
|
};
|
|
1197
1197
|
g = f.x, s = f.y;
|
|
1198
|
-
var v = c.hasOwnProperty("x"),
|
|
1198
|
+
var v = c.hasOwnProperty("x"), _ = c.hasOwnProperty("y"), S = V, D = N, y = window;
|
|
1199
1199
|
if (u) {
|
|
1200
1200
|
var h = _e(n), M = "clientHeight", P = "clientWidth";
|
|
1201
|
-
if (h === W(n) && (h =
|
|
1201
|
+
if (h === W(n) && (h = ne(n), ee(h).position !== "static" && i === "absolute" && (M = "scrollHeight", P = "scrollWidth")), h = h, r === N || (r === V || r === q) && l === xe) {
|
|
1202
1202
|
D = B;
|
|
1203
1203
|
var T = d && h === y && y.visualViewport ? y.visualViewport.height : (
|
|
1204
1204
|
// $FlowFixMe[prop-missing]
|
|
@@ -1226,9 +1226,9 @@ function gt(e) {
|
|
|
1226
1226
|
};
|
|
1227
1227
|
if (g = z.x, s = z.y, a) {
|
|
1228
1228
|
var E;
|
|
1229
|
-
return Object.assign({}, Y, (E = {}, E[D] =
|
|
1229
|
+
return Object.assign({}, Y, (E = {}, E[D] = _ ? "0" : "", E[S] = v ? "0" : "", E.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + g + "px, " + s + "px)" : "translate3d(" + g + "px, " + s + "px, 0)", E));
|
|
1230
1230
|
}
|
|
1231
|
-
return Object.assign({}, Y, (t = {}, t[D] =
|
|
1231
|
+
return Object.assign({}, Y, (t = {}, t[D] = _ ? s + "px" : "", t[S] = v ? g + "px" : "", t.transform = "", t));
|
|
1232
1232
|
}
|
|
1233
1233
|
function _r(e) {
|
|
1234
1234
|
var t = e.state, n = e.options, o = n.gpuAcceleration, r = o === void 0 ? !0 : o, l = n.adaptive, c = l === void 0 ? !0 : l, i = n.roundOffsets, a = i === void 0 ? !0 : i, u = {
|
|
@@ -1288,7 +1288,7 @@ var $r = {
|
|
|
1288
1288
|
bottom: "top",
|
|
1289
1289
|
top: "bottom"
|
|
1290
1290
|
};
|
|
1291
|
-
function
|
|
1291
|
+
function Ee(e) {
|
|
1292
1292
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
1293
1293
|
return $r[t];
|
|
1294
1294
|
});
|
|
@@ -1310,10 +1310,10 @@ function et(e) {
|
|
|
1310
1310
|
};
|
|
1311
1311
|
}
|
|
1312
1312
|
function tt(e) {
|
|
1313
|
-
return ve(
|
|
1313
|
+
return ve(ne(e)).left + et(e).scrollLeft;
|
|
1314
1314
|
}
|
|
1315
1315
|
function Hr(e, t) {
|
|
1316
|
-
var n = W(e), o =
|
|
1316
|
+
var n = W(e), o = ne(e), r = n.visualViewport, l = o.clientWidth, c = o.clientHeight, i = 0, a = 0;
|
|
1317
1317
|
if (r) {
|
|
1318
1318
|
l = r.width, c = r.height;
|
|
1319
1319
|
var u = Ht();
|
|
@@ -1327,7 +1327,7 @@ function Hr(e, t) {
|
|
|
1327
1327
|
};
|
|
1328
1328
|
}
|
|
1329
1329
|
function Yr(e) {
|
|
1330
|
-
var t, n =
|
|
1330
|
+
var t, n = ne(e), o = et(e), r = (t = e.ownerDocument) == null ? void 0 : t.body, l = ce(n.scrollWidth, n.clientWidth, r ? r.scrollWidth : 0, r ? r.clientWidth : 0), c = ce(n.scrollHeight, n.clientHeight, r ? r.scrollHeight : 0, r ? r.clientHeight : 0), i = -o.scrollLeft + tt(e), a = -o.scrollTop;
|
|
1331
1331
|
return ee(r || n).direction === "rtl" && (i += ce(n.clientWidth, r ? r.clientWidth : 0) - l), {
|
|
1332
1332
|
width: l,
|
|
1333
1333
|
height: c,
|
|
@@ -1340,7 +1340,7 @@ function nt(e) {
|
|
|
1340
1340
|
return /auto|scroll|overlay|hidden/.test(n + r + o);
|
|
1341
1341
|
}
|
|
1342
1342
|
function Ft(e) {
|
|
1343
|
-
return ["html", "body", "#document"].indexOf(Q(e)) >= 0 ? e.ownerDocument.body : R(e) && nt(e) ? e : Ft(
|
|
1343
|
+
return ["html", "body", "#document"].indexOf(Q(e)) >= 0 ? e.ownerDocument.body : R(e) && nt(e) ? e : Ft(Ie(e));
|
|
1344
1344
|
}
|
|
1345
1345
|
function De(e, t) {
|
|
1346
1346
|
var n;
|
|
@@ -1348,7 +1348,7 @@ function De(e, t) {
|
|
|
1348
1348
|
var o = Ft(e), r = o === ((n = e.ownerDocument) == null ? void 0 : n.body), l = W(o), c = r ? [l].concat(l.visualViewport || [], nt(o) ? o : []) : o, i = t.concat(c);
|
|
1349
1349
|
return r ? i : (
|
|
1350
1350
|
// $FlowFixMe[incompatible-call]: isBody tells us target will be an HTMLElement here
|
|
1351
|
-
i.concat(De(
|
|
1351
|
+
i.concat(De(Ie(c)))
|
|
1352
1352
|
);
|
|
1353
1353
|
}
|
|
1354
1354
|
function Je(e) {
|
|
@@ -1364,10 +1364,10 @@ function Ar(e, t) {
|
|
|
1364
1364
|
return n.top = n.top + e.clientTop, n.left = n.left + e.clientLeft, n.bottom = n.top + e.clientHeight, n.right = n.left + e.clientWidth, n.width = e.clientWidth, n.height = e.clientHeight, n.x = n.left, n.y = n.top, n;
|
|
1365
1365
|
}
|
|
1366
1366
|
function bt(e, t, n) {
|
|
1367
|
-
return t === $t ? Je(Hr(e, n)) : ue(t) ? Ar(t, n) : Je(Yr(
|
|
1367
|
+
return t === $t ? Je(Hr(e, n)) : ue(t) ? Ar(t, n) : Je(Yr(ne(e)));
|
|
1368
1368
|
}
|
|
1369
1369
|
function Er(e) {
|
|
1370
|
-
var t = De(
|
|
1370
|
+
var t = De(Ie(e)), n = ["absolute", "fixed"].indexOf(ee(e).position) >= 0, o = n && R(e) ? _e(e) : e;
|
|
1371
1371
|
return ue(o) ? t.filter(function(r) {
|
|
1372
1372
|
return ue(r) && Yt(r, o) && Q(r) !== "body";
|
|
1373
1373
|
}) : [];
|
|
@@ -1375,7 +1375,7 @@ function Er(e) {
|
|
|
1375
1375
|
function Lr(e, t, n, o) {
|
|
1376
1376
|
var r = t === "clippingParents" ? Er(e) : [].concat(t), l = [].concat(r, [n]), c = l[0], i = l.reduce(function(a, u) {
|
|
1377
1377
|
var p = bt(e, u, o);
|
|
1378
|
-
return a.top = ce(p.top, a.top), a.right =
|
|
1378
|
+
return a.top = ce(p.top, a.top), a.right = Ne(p.right, a.right), a.bottom = Ne(p.bottom, a.bottom), a.left = ce(p.left, a.left), a;
|
|
1379
1379
|
}, bt(e, c, o));
|
|
1380
1380
|
return i.width = i.right - i.left, i.height = i.bottom - i.top, i.x = i.left, i.y = i.top, i;
|
|
1381
1381
|
}
|
|
@@ -1428,7 +1428,7 @@ function jt(e) {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
function Me(e, t) {
|
|
1430
1430
|
t === void 0 && (t = {});
|
|
1431
|
-
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, l = n.strategy, c = l === void 0 ? e.strategy : l, i = n.boundary, a = i === void 0 ? nr : i, u = n.rootBoundary, p = u === void 0 ? $t : u, d = n.elementContext, b = d === void 0 ? be : d, g = n.altBoundary, m = g === void 0 ? !1 : g, s = n.padding, f = s === void 0 ? 0 : s, v = Et(typeof f != "number" ? f : Lt(f, Se)),
|
|
1431
|
+
var n = t, o = n.placement, r = o === void 0 ? e.placement : o, l = n.strategy, c = l === void 0 ? e.strategy : l, i = n.boundary, a = i === void 0 ? nr : i, u = n.rootBoundary, p = u === void 0 ? $t : u, d = n.elementContext, b = d === void 0 ? be : d, g = n.altBoundary, m = g === void 0 ? !1 : g, s = n.padding, f = s === void 0 ? 0 : s, v = Et(typeof f != "number" ? f : Lt(f, Se)), _ = b === be ? rr : be, S = e.rects.popper, D = e.elements[m ? _ : b], y = Lr(ue(D) ? D : D.contextElement || ne(e.elements.popper), a, p, c), h = ve(e.elements.reference), M = jt({
|
|
1432
1432
|
reference: h,
|
|
1433
1433
|
element: S,
|
|
1434
1434
|
placement: r
|
|
@@ -1441,8 +1441,8 @@ function Me(e, t) {
|
|
|
1441
1441
|
if (b === be && Y) {
|
|
1442
1442
|
var z = Y[r];
|
|
1443
1443
|
Object.keys($).forEach(function(E) {
|
|
1444
|
-
var
|
|
1445
|
-
$[E] += z[
|
|
1444
|
+
var re = [q, B].indexOf(E) >= 0 ? 1 : -1, oe = [N, B].indexOf(E) >= 0 ? "y" : "x";
|
|
1445
|
+
$[E] += z[oe] * re;
|
|
1446
1446
|
});
|
|
1447
1447
|
}
|
|
1448
1448
|
return $;
|
|
@@ -1470,14 +1470,14 @@ function Fr(e, t) {
|
|
|
1470
1470
|
function jr(e) {
|
|
1471
1471
|
if (Z(e) === Ze)
|
|
1472
1472
|
return [];
|
|
1473
|
-
var t =
|
|
1473
|
+
var t = Ee(e);
|
|
1474
1474
|
return [yt(e), t, yt(t)];
|
|
1475
1475
|
}
|
|
1476
1476
|
function Nr(e) {
|
|
1477
1477
|
var t = e.state, n = e.options, o = e.name;
|
|
1478
1478
|
if (!t.modifiersData[o]._skip) {
|
|
1479
|
-
for (var r = n.mainAxis, l = r === void 0 ? !0 : r, c = n.altAxis, i = c === void 0 ? !0 : c, a = n.fallbackPlacements, u = n.padding, p = n.boundary, d = n.rootBoundary, b = n.altBoundary, g = n.flipVariations, m = g === void 0 ? !0 : g, s = n.allowedAutoPlacements, f = t.options.placement, v = Z(f),
|
|
1480
|
-
return
|
|
1479
|
+
for (var r = n.mainAxis, l = r === void 0 ? !0 : r, c = n.altAxis, i = c === void 0 ? !0 : c, a = n.fallbackPlacements, u = n.padding, p = n.boundary, d = n.rootBoundary, b = n.altBoundary, g = n.flipVariations, m = g === void 0 ? !0 : g, s = n.allowedAutoPlacements, f = t.options.placement, v = Z(f), _ = v === f, S = a || (_ || !m ? [Ee(f)] : jr(f)), D = [f].concat(S).reduce(function(se, X) {
|
|
1480
|
+
return se.concat(Z(X) === Ze ? Fr(t, {
|
|
1481
1481
|
placement: X,
|
|
1482
1482
|
boundary: p,
|
|
1483
1483
|
rootBoundary: d,
|
|
@@ -1486,36 +1486,36 @@ function Nr(e) {
|
|
|
1486
1486
|
allowedAutoPlacements: s
|
|
1487
1487
|
}) : X);
|
|
1488
1488
|
}, []), y = t.rects.reference, h = t.rects.popper, M = /* @__PURE__ */ new Map(), P = !0, T = D[0], $ = 0; $ < D.length; $++) {
|
|
1489
|
-
var Y = D[$], z = Z(Y), E = he(Y) === pe,
|
|
1489
|
+
var Y = D[$], z = Z(Y), E = he(Y) === pe, re = [N, B].indexOf(z) >= 0, oe = re ? "width" : "height", I = Me(t, {
|
|
1490
1490
|
placement: Y,
|
|
1491
1491
|
boundary: p,
|
|
1492
1492
|
rootBoundary: d,
|
|
1493
1493
|
altBoundary: b,
|
|
1494
1494
|
padding: u
|
|
1495
|
-
}), G =
|
|
1496
|
-
y[
|
|
1497
|
-
var Oe =
|
|
1498
|
-
if (l &&
|
|
1499
|
-
return
|
|
1495
|
+
}), G = re ? E ? q : V : E ? B : N;
|
|
1496
|
+
y[oe] > h[oe] && (G = Ee(G));
|
|
1497
|
+
var Oe = Ee(G), ae = [];
|
|
1498
|
+
if (l && ae.push(I[z] <= 0), i && ae.push(I[G] <= 0, I[Oe] <= 0), ae.every(function(se) {
|
|
1499
|
+
return se;
|
|
1500
1500
|
})) {
|
|
1501
1501
|
T = Y, P = !1;
|
|
1502
1502
|
break;
|
|
1503
1503
|
}
|
|
1504
|
-
M.set(Y,
|
|
1504
|
+
M.set(Y, ae);
|
|
1505
1505
|
}
|
|
1506
1506
|
if (P)
|
|
1507
|
-
for (var Te = m ? 3 : 1,
|
|
1507
|
+
for (var Te = m ? 3 : 1, We = function(se) {
|
|
1508
1508
|
var X = D.find(function($e) {
|
|
1509
1509
|
var ye = M.get($e);
|
|
1510
1510
|
if (ye)
|
|
1511
|
-
return ye.slice(0,
|
|
1511
|
+
return ye.slice(0, se).every(function(de) {
|
|
1512
1512
|
return de;
|
|
1513
1513
|
});
|
|
1514
1514
|
});
|
|
1515
1515
|
if (X)
|
|
1516
1516
|
return T = X, "break";
|
|
1517
1517
|
}, ge = Te; ge > 0; ge--) {
|
|
1518
|
-
var Pe =
|
|
1518
|
+
var Pe = We(ge);
|
|
1519
1519
|
if (Pe === "break") break;
|
|
1520
1520
|
}
|
|
1521
1521
|
t.placement !== T && (t.modifiersData[o]._skip = !0, t.placement = T, t.reset = !0);
|
|
@@ -1619,7 +1619,7 @@ function Jr(e) {
|
|
|
1619
1619
|
rootBoundary: u,
|
|
1620
1620
|
padding: d,
|
|
1621
1621
|
altBoundary: p
|
|
1622
|
-
}), v = Z(t.placement),
|
|
1622
|
+
}), v = Z(t.placement), _ = he(t.placement), S = !_, D = Ke(v), y = Ur(D), h = t.modifiersData.popperOffsets, M = t.rects.reference, P = t.rects.popper, T = typeof s == "function" ? s(Object.assign({}, t.rects, {
|
|
1623
1623
|
placement: t.placement
|
|
1624
1624
|
})) : s, $ = typeof T == "number" ? {
|
|
1625
1625
|
mainAxis: T,
|
|
@@ -1633,15 +1633,15 @@ function Jr(e) {
|
|
|
1633
1633
|
};
|
|
1634
1634
|
if (h) {
|
|
1635
1635
|
if (l) {
|
|
1636
|
-
var E,
|
|
1636
|
+
var E, re = D === "y" ? N : V, oe = D === "y" ? B : q, I = D === "y" ? "height" : "width", G = h[D], Oe = G + f[re], ae = G - f[oe], Te = g ? -P[I] / 2 : 0, We = _ === pe ? M[I] : P[I], ge = _ === pe ? -P[I] : -M[I], Pe = t.elements.arrow, se = g && Pe ? Xe(Pe) : {
|
|
1637
1637
|
width: 0,
|
|
1638
1638
|
height: 0
|
|
1639
|
-
}, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : At(), $e = X[
|
|
1639
|
+
}, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : At(), $e = X[re], ye = X[oe], de = ke(0, M[I], se[I]), Nt = S ? M[I] / 2 - Te - de - $e - $.mainAxis : We - de - $e - $.mainAxis, Vt = S ? -M[I] / 2 + Te + de + ye + $.mainAxis : ge + de + ye + $.mainAxis, Re = t.elements.arrow && _e(t.elements.arrow), It = Re ? D === "y" ? Re.clientTop || 0 : Re.clientLeft || 0 : 0, rt = (E = Y == null ? void 0 : Y[D]) != null ? E : 0, Wt = G + Nt - rt - It, Rt = G + Vt - rt, ot = ke(g ? Ne(Oe, Wt) : Oe, G, g ? ce(ae, Rt) : ae);
|
|
1640
1640
|
h[D] = ot, z[D] = ot - G;
|
|
1641
1641
|
}
|
|
1642
1642
|
if (i) {
|
|
1643
|
-
var at, Bt = D === "x" ? N : V, qt = D === "x" ? B : q,
|
|
1644
|
-
h[y] = dt, z[y] = dt -
|
|
1643
|
+
var at, Bt = D === "x" ? N : V, qt = D === "x" ? B : q, ie = h[y], Ce = y === "y" ? "height" : "width", st = ie + f[Bt], it = ie - f[qt], Be = [N, V].indexOf(v) !== -1, lt = (at = Y == null ? void 0 : Y[y]) != null ? at : 0, ct = Be ? st : ie - M[Ce] - P[Ce] - lt + $.altAxis, ut = Be ? ie + M[Ce] + P[Ce] - lt - $.altAxis : it, dt = g && Be ? br(ct, ie, ut) : ke(g ? ct : st, ie, g ? ut : it);
|
|
1644
|
+
h[y] = dt, z[y] = dt - ie;
|
|
1645
1645
|
}
|
|
1646
1646
|
t.modifiersData[o] = z;
|
|
1647
1647
|
}
|
|
@@ -1668,7 +1668,7 @@ function Kr(e) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
function eo(e, t, n) {
|
|
1670
1670
|
n === void 0 && (n = !1);
|
|
1671
|
-
var o = R(t), r = R(t) && Kr(t), l =
|
|
1671
|
+
var o = R(t), r = R(t) && Kr(t), l = ne(t), c = ve(e, r, n), i = {
|
|
1672
1672
|
scrollLeft: 0,
|
|
1673
1673
|
scrollTop: 0
|
|
1674
1674
|
}, a = {
|
|
@@ -1769,8 +1769,8 @@ function ao(e) {
|
|
|
1769
1769
|
popper: De(i)
|
|
1770
1770
|
};
|
|
1771
1771
|
var v = no(oo([].concat(o, u.options.modifiers)));
|
|
1772
|
-
return u.orderedModifiers = v.filter(function(
|
|
1773
|
-
return
|
|
1772
|
+
return u.orderedModifiers = v.filter(function(_) {
|
|
1773
|
+
return _.enabled;
|
|
1774
1774
|
}), g(), b.update();
|
|
1775
1775
|
},
|
|
1776
1776
|
// Sync update – it will always be executed, even if not necessary. This
|
|
@@ -1788,12 +1788,12 @@ function ao(e) {
|
|
|
1788
1788
|
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(P) {
|
|
1789
1789
|
return u.modifiersData[P.name] = Object.assign({}, P.data);
|
|
1790
1790
|
});
|
|
1791
|
-
for (var
|
|
1791
|
+
for (var _ = 0; _ < u.orderedModifiers.length; _++) {
|
|
1792
1792
|
if (u.reset === !0) {
|
|
1793
|
-
u.reset = !1,
|
|
1793
|
+
u.reset = !1, _ = -1;
|
|
1794
1794
|
continue;
|
|
1795
1795
|
}
|
|
1796
|
-
var S = u.orderedModifiers[
|
|
1796
|
+
var S = u.orderedModifiers[_], D = S.fn, y = S.options, h = y === void 0 ? {} : y, M = S.name;
|
|
1797
1797
|
typeof D == "function" && (u = D({
|
|
1798
1798
|
state: u,
|
|
1799
1799
|
options: h,
|
|
@@ -1822,13 +1822,13 @@ function ao(e) {
|
|
|
1822
1822
|
});
|
|
1823
1823
|
function g() {
|
|
1824
1824
|
u.orderedModifiers.forEach(function(s) {
|
|
1825
|
-
var f = s.name, v = s.options,
|
|
1825
|
+
var f = s.name, v = s.options, _ = v === void 0 ? {} : v, S = s.effect;
|
|
1826
1826
|
if (typeof S == "function") {
|
|
1827
1827
|
var D = S({
|
|
1828
1828
|
state: u,
|
|
1829
1829
|
name: f,
|
|
1830
1830
|
instance: b,
|
|
1831
|
-
options:
|
|
1831
|
+
options: _
|
|
1832
1832
|
}), y = function() {
|
|
1833
1833
|
};
|
|
1834
1834
|
p.push(D || y);
|
|
@@ -1919,14 +1919,14 @@ function lo(e, t = [0, 8], n, o = {}) {
|
|
|
1919
1919
|
(y = c.value) == null || y.forceUpdate();
|
|
1920
1920
|
}, v = () => {
|
|
1921
1921
|
d(), c.value && (c.value.destroy(), c.value = null);
|
|
1922
|
-
},
|
|
1922
|
+
}, _ = () => {
|
|
1923
1923
|
n === "hover" && g();
|
|
1924
1924
|
}, S = () => {
|
|
1925
1925
|
n === "hover" && m();
|
|
1926
1926
|
}, D = (y) => !o.ignoreClickOutside || o.ignoreClickOutside.length === 0 ? !1 : o.ignoreClickOutside.some((h) => h.startsWith("#") ? y.id === h.substring(1) || y.closest(h) !== null : h.startsWith(".") ? y.classList.contains(h.substring(1)) || y.closest(h) !== null : y.matches(h) || y.closest(h) !== null);
|
|
1927
|
-
return
|
|
1927
|
+
return Ve(async () => {
|
|
1928
1928
|
var y, h, M;
|
|
1929
|
-
await K(), n === "click" && ((y = r.value) == null || y.addEventListener("click", s)), n === "hover" && ((h = r.value) == null || h.addEventListener("mouseenter",
|
|
1929
|
+
await K(), n === "click" && ((y = r.value) == null || y.addEventListener("click", s)), n === "hover" && ((h = r.value) == null || h.addEventListener("mouseenter", _), (M = r.value) == null || M.addEventListener("mouseleave", S)), tr(l, (P) => {
|
|
1930
1930
|
if (a.value && n === "click") {
|
|
1931
1931
|
const T = P.target;
|
|
1932
1932
|
D(T) || m();
|
|
@@ -1934,7 +1934,7 @@ function lo(e, t = [0, 8], n, o = {}) {
|
|
|
1934
1934
|
});
|
|
1935
1935
|
}), Zt(() => {
|
|
1936
1936
|
var y, h, M;
|
|
1937
|
-
v(), n === "click" && ((y = r.value) == null || y.removeEventListener("click", s)), n === "hover" && ((h = r.value) == null || h.removeEventListener("mouseenter",
|
|
1937
|
+
v(), n === "click" && ((y = r.value) == null || y.removeEventListener("click", s)), n === "hover" && ((h = r.value) == null || h.removeEventListener("mouseenter", _), (M = r.value) == null || M.removeEventListener("mouseleave", S));
|
|
1938
1938
|
}), le(
|
|
1939
1939
|
() => e,
|
|
1940
1940
|
() => {
|
|
@@ -1942,7 +1942,7 @@ function lo(e, t = [0, 8], n, o = {}) {
|
|
|
1942
1942
|
}
|
|
1943
1943
|
), le(a, (y) => {
|
|
1944
1944
|
n === "hover" && K(() => {
|
|
1945
|
-
y && l.value && (l.value.addEventListener("mouseenter",
|
|
1945
|
+
y && l.value && (l.value.addEventListener("mouseenter", _), l.value.addEventListener("mouseleave", S));
|
|
1946
1946
|
});
|
|
1947
1947
|
}), {
|
|
1948
1948
|
triggerRef: r,
|
|
@@ -1983,24 +1983,24 @@ const co = { class: "tooltip-wrapper" }, uo = /* @__PURE__ */ J({
|
|
|
1983
1983
|
const d = c.value;
|
|
1984
1984
|
return d.includes("top") ? "tooltip-arrow--bottom" : d.includes("bottom") ? "tooltip-arrow--top" : d.includes("left") ? "tooltip-arrow--right" : d.includes("right") ? "tooltip-arrow--left" : "tooltip-arrow--top";
|
|
1985
1985
|
});
|
|
1986
|
-
return
|
|
1986
|
+
return Ve(() => {
|
|
1987
1987
|
i();
|
|
1988
1988
|
}), zt(() => {
|
|
1989
1989
|
a();
|
|
1990
|
-
}), (d, b) => (k(),
|
|
1990
|
+
}), (d, b) => (k(), O("div", co, [
|
|
1991
1991
|
x("span", {
|
|
1992
1992
|
ref_key: "triggerRef",
|
|
1993
1993
|
ref: r,
|
|
1994
1994
|
class: A(["tooltip-trigger", d.triggerClass])
|
|
1995
1995
|
}, [
|
|
1996
|
-
|
|
1996
|
+
Le(d.$slots, "trigger", Fe(je({ isOpen: w(u) })))
|
|
1997
1997
|
], 2),
|
|
1998
|
-
w(u) ? (k(),
|
|
1998
|
+
w(u) ? (k(), te(Gt(d.teleport ? Ut : "div"), {
|
|
1999
1999
|
key: 0,
|
|
2000
2000
|
to: "body"
|
|
2001
2001
|
}, {
|
|
2002
|
-
default:
|
|
2003
|
-
w(u) ? (k(),
|
|
2002
|
+
default: Ae(() => [
|
|
2003
|
+
w(u) ? (k(), O("div", {
|
|
2004
2004
|
key: 0,
|
|
2005
2005
|
style: Mt(d.styles),
|
|
2006
2006
|
ref_key: "containerRef",
|
|
@@ -2012,11 +2012,11 @@ const co = { class: "tooltip-wrapper" }, uo = /* @__PURE__ */ J({
|
|
|
2012
2012
|
x("div", {
|
|
2013
2013
|
class: A(["tooltip-content", d.contentClass])
|
|
2014
2014
|
}, [
|
|
2015
|
-
|
|
2015
|
+
Le(d.$slots, "default", Fe(je({ isOpen: w(u) })), () => [
|
|
2016
2016
|
Jt(j(d.content), 1)
|
|
2017
2017
|
])
|
|
2018
2018
|
], 2),
|
|
2019
|
-
d.arrow ? (k(),
|
|
2019
|
+
d.arrow ? (k(), O("div", {
|
|
2020
2020
|
key: 0,
|
|
2021
2021
|
class: A(["tooltip-arrow", p.value])
|
|
2022
2022
|
}, null, 2)) : U("", !0)
|
|
@@ -2026,7 +2026,7 @@ const co = { class: "tooltip-wrapper" }, uo = /* @__PURE__ */ J({
|
|
|
2026
2026
|
})) : U("", !0)
|
|
2027
2027
|
]));
|
|
2028
2028
|
}
|
|
2029
|
-
}),
|
|
2029
|
+
}), mo = /* @__PURE__ */ J({
|
|
2030
2030
|
__name: "TimePicker",
|
|
2031
2031
|
props: {
|
|
2032
2032
|
modelValue: { default: null },
|
|
@@ -2039,8 +2039,8 @@ const co = { class: "tooltip-wrapper" }, uo = /* @__PURE__ */ J({
|
|
|
2039
2039
|
setup(e, { emit: t }) {
|
|
2040
2040
|
const n = e, o = t, r = C(12), l = C(0), c = C("AM"), i = C(null), a = H(() => n.timeFormat === "12h"), u = () => {
|
|
2041
2041
|
if (n.modelValue) {
|
|
2042
|
-
const [s, f] = n.modelValue.split(":"), v = parseInt(s),
|
|
2043
|
-
l.value =
|
|
2042
|
+
const [s, f] = n.modelValue.split(":"), v = parseInt(s), _ = parseInt(f);
|
|
2043
|
+
l.value = _, a.value ? v === 0 ? (r.value = 12, c.value = "AM") : v === 12 ? (r.value = 12, c.value = "PM") : v > 12 ? (r.value = v - 12, c.value = "PM") : (r.value = v, c.value = "AM") : r.value = v;
|
|
2044
2044
|
} else {
|
|
2045
2045
|
const s = /* @__PURE__ */ new Date(), f = s.getHours(), v = s.getMinutes();
|
|
2046
2046
|
l.value = v, a.value ? f === 0 ? (r.value = 12, c.value = "AM") : f === 12 ? (r.value = 12, c.value = "PM") : f > 12 ? (r.value = f - 12, c.value = "PM") : (r.value = f, c.value = "AM") : r.value = f;
|
|
@@ -2060,48 +2060,46 @@ const co = { class: "tooltip-wrapper" }, uo = /* @__PURE__ */ J({
|
|
|
2060
2060
|
var s;
|
|
2061
2061
|
(s = i == null ? void 0 : i.value) == null || s.scrollToSelected();
|
|
2062
2062
|
};
|
|
2063
|
-
return le(() => n.modelValue, u, { immediate: !0 }), le(() => n.timeFormat, u), (s, f) => (k(),
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
}
|
|
2080
|
-
default
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
}, 8, ["class-name", "styles"])
|
|
2101
|
-
]));
|
|
2063
|
+
return le(() => n.modelValue, u, { immediate: !0 }), le(() => n.timeFormat, u), (s, f) => (k(), te(w(uo), {
|
|
2064
|
+
trigger: "click",
|
|
2065
|
+
placement: "bottom-start",
|
|
2066
|
+
onOnShow: m,
|
|
2067
|
+
teleport: "",
|
|
2068
|
+
"class-name": `v-time-picker ${s.className}`,
|
|
2069
|
+
styles: s.style
|
|
2070
|
+
}, {
|
|
2071
|
+
trigger: Ae(() => [
|
|
2072
|
+
Ge(Kn, {
|
|
2073
|
+
hour: r.value,
|
|
2074
|
+
minute: l.value,
|
|
2075
|
+
period: c.value,
|
|
2076
|
+
"is12-hour": a.value,
|
|
2077
|
+
"trigger-class": s.triggerClass
|
|
2078
|
+
}, {
|
|
2079
|
+
default: Ae(({ displayTime: v }) => [
|
|
2080
|
+
Le(s.$slots, "default", Fe(je({ displayTime: v })))
|
|
2081
|
+
]),
|
|
2082
|
+
_: 3
|
|
2083
|
+
}, 8, ["hour", "minute", "period", "is12-hour", "trigger-class"])
|
|
2084
|
+
]),
|
|
2085
|
+
default: Ae(() => [
|
|
2086
|
+
Ge(Qn, {
|
|
2087
|
+
ref_key: "dropdownRef",
|
|
2088
|
+
ref: i,
|
|
2089
|
+
"selected-hour": r.value,
|
|
2090
|
+
"selected-minute": l.value,
|
|
2091
|
+
"selected-period": c.value,
|
|
2092
|
+
"is12-hour": a.value,
|
|
2093
|
+
onSelectHour: d,
|
|
2094
|
+
onSelectMinute: b,
|
|
2095
|
+
onSelectPeriod: g
|
|
2096
|
+
}, null, 8, ["selected-hour", "selected-minute", "selected-period", "is12-hour"])
|
|
2097
|
+
]),
|
|
2098
|
+
_: 3
|
|
2099
|
+
}, 8, ["class-name", "styles"]));
|
|
2102
2100
|
}
|
|
2103
2101
|
});
|
|
2104
2102
|
export {
|
|
2105
|
-
|
|
2106
|
-
|
|
2103
|
+
mo as TimePicker,
|
|
2104
|
+
po as default
|
|
2107
2105
|
};
|
package/package.json
CHANGED
package/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--date-picker-primary: #2d66ed;--date-picker-primary-fg: #ffffff;--date-picker-text: inherit;--date-picker-border: #00000020;--date-picker-secondary: #00000010;--date-picker-hover: #00000010;--date-picker-disabled: #000000b4;--date-picker-today: #00000010;--date-picker-radius: .375em;--timer-picker-bg: white;--timer-picker-input-bg: white;--timer-picker-input-border: #00000020;--timer-picker-input-text: inherit;--timer-picker-input-text-size: .875em;--timer-picker-input-border-radius: .375em;--timer-picker-input-padding: .5em .75em}.ml-auto{margin-left:auto}.date-picker{position:relative;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;color:var(--date-picker-text)}.date-picker-content{padding:0 .5em .5em}.date-picker-table{width:100%;border-collapse:collapse;border-spacing:0;margin:0}.date-picker-table:not(.date-picker-week-table) .date-picker-day-cell{padding:.13em}td,th{padding:0;margin:0;border:none}.date-picker-weekdays-row th{padding:.6em 0;font-size:.78em}.date-picker-weekday{display:flex;align-items:center;justify-content:center;height:2em;font-size:.75em;font-weight:500;opacity:.5;padding:.25em}.date-picker-days-body tr{border:none}.date-picker-day{display:flex;align-items:center;justify-content:center;width:100%;height:2em;border:none;background:none;border-radius:var(--date-picker-radius);cursor:pointer;font-size:.95em;color:var(--date-picker-text)}.date-picker-day:hover{background:var(--date-picker-hover)}.date-picker-day.other-month{opacity:.4}.date-picker-day.today{background:var(--date-picker-today);font-weight:400}.date-picker-day.selected{background:var(--date-picker-primary);color:var(--date-picker-primary-fg)}.date-picker-day.disabled{cursor:not-allowed;opacity:.5}.date-picker-day.disabled:hover{background:none}.date-picker-datetime-layout{display:flex;gap:.65em;width:100%}.date-picker-date-section{flex:1;height:100%}.date-picker-datetime-layout .date-picker-date-section{width:75%}.date-picker-time-section{width:100%;max-width:74px;border-left:1px solid var(--date-picker-border);display:flex;flex-direction:column}.date-picker-time-section .time-picker-container{flex:1;overflow-y:auto}.date-picker-week-table .date-picker-week-row{cursor:pointer}.date-picker-week-table .date-picker-week-row:not(.selected):hover td{background:var(--date-picker-hover)}.date-picker-week-table td{border-radius:0;padding:0}.date-picker-week-table .date-picker-day-cell .date-picker-day{border-radius:0}.date-picker-week-header{text-align:center}.date-picker-week-row .date-picker-week-number-cell{height:90%;padding-right:5px;background:var(--date-picker-secondary);opacity:.7;border-bottom:1px solid var(--date-picker-border);text-align:center;width:2.5em;font-size:.8em}.date-picker-week-row:last-child .date-picker-week-number-cell{border-bottom:none}.date-picker-week-row.selected .date-picker-day{background:var(--date-picker-primary);color:var(--date-picker-primary-fg)}.date-picker-months-table{width:100%}.date-picker-months-body .date-picker-month-cell{padding:2px}.date-picker-month{display:flex;align-items:center;justify-content:center;width:100%;height:2.5em;border:none;background:none;border-radius:var(--date-picker-radius);cursor:pointer;font-size:inherit;color:var(--date-picker-text)}.date-picker-month:hover{background:var(--date-picker-hover)}.date-picker-month.selected{background:var(--date-picker-primary);color:var(--date-picker-primary-fg)}.year-view-layout{display:flex;gap:1px;height:100%;padding-right:2px}.years-section{width:25%;min-width:60px;max-width:80px;border-right:1px solid var(--date-picker-border);display:flex;flex-direction:column;height:100%}.years-list{display:flex;flex-direction:column;flex:1;overflow-y:auto;overflow-x:hidden}.year-item{display:flex;align-items:center;justify-content:center;padding:.5em;border:none;background:none;cursor:pointer;font-size:.875em;color:var(--date-picker-text);transition:background-color .15s ease;white-space:nowrap;flex-shrink:0}.year-item:hover{background:var(--date-picker-hover)}.year-item.selected{background:var(--date-picker-primary);color:var(--date-picker-primary-fg)}.year-item.current{font-weight:600}.months-section{width:75%;display:flex;flex-direction:column;height:100%}.months-section .date-picker-months-table{overflow:auto;flex:1}.year-view-layout .months-section{padding:5px 3px;height:94.5%}.time-picker-container{height:100%;display:flex;flex-direction:column}.time-wheel{height:100%;overflow-y:auto;display:flex;flex-direction:column;border:1px solid var(--date-picker-border);border-radius:var(--date-picker-radius)}.time-option{height:30px;display:flex;align-items:center;justify-content:center;width:100%;cursor:pointer;font-size:.875em;color:var(--date-picker-text);flex-shrink:0}.time-option:hover{background:var(--date-picker-hover)}.time-option.selected{background:var(--date-picker-primary);color:var(--date-picker-primary-fg);font-weight:500}.date-picker-time-section .time-wheel{border:none;border-radius:0;height:100%;max-height:none}.date-picker-header{display:flex;align-items:center;justify-content:space-between;padding:.45em .4em;gap:.2em;border-bottom:1px solid var(--date-picker-border)}.date-picker-nav-button{display:flex;align-items:center;justify-content:center;width:1.65em;height:1.65em;border:none;background:none;border-radius:var(--date-picker-radius);cursor:pointer;transition:background-color .15s ease;opacity:.7}.date-picker-nav-button:hover:not(:disabled){background:var(--date-picker-hover)}.date-picker-nav-button:disabled{opacity:.5;cursor:not-allowed}.date-picker-nav-icon,.date-picker-header *{color:inherit!important}.date-picker-nav-icon svg{width:1.3em;height:1.3em;color:inherit!important;fill:currentColor!important}.date-picker-title{font-weight:600;font-size:1em;cursor:pointer;padding:.25em .5em;border-radius:var(--date-picker-radius);transition:background-color .15s ease;border:none;background:none;color:inherit}.date-picker-title:hover{background:var(--date-picker-hover)}.date-picker svg{display:flex;color:inherit}.date-picker *::-webkit-scrollbar{height:3px;width:3px}.date-picker *::-webkit-scrollbar-track{border-radius:5px;background-color:transparent}.date-picker *::-webkit-scrollbar-track:hover{background-color:transparent}.date-picker *::-webkit-scrollbar-track:active{background-color:transparent}.date-picker *::-webkit-scrollbar-thumb{border-radius:2px;background-color:var(--date-picker-border)}.date-picker *::-webkit-scrollbar-thumb:hover{background-color:var(--date-picker-border)}.date-picker *::-webkit-scrollbar-thumb:active{background-color:var(--date-picker-border)}.time-picker-dropdown{background:var(--timer-picker-bg);border:1px solid var(--date-picker-border, #00000020);border-radius:var(--date-picker-radius, .375rem)}.time-picker-sections{display:flex}.time-picker-time-section{border-right:1px solid var(--date-picker-border, #00000020);display:flex;flex-direction:column;min-width:3.8em;padding:.05em}.time-picker-time-section:last-child{border-right:none}.time-picker-period-section{min-width:60px}.time-picker-options-scroll{max-height:200px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;padding:2px}.time-picker-option-button{padding:.5rem;border:none;background:transparent;border-radius:var(--date-picker-radius, .375rem);cursor:pointer;font-size:.875em;color:var(--date-picker-text, inherit);transition:all .15s ease;text-align:center}.time-picker-option-button:hover{background:var(--date-picker-hover, #00000010)}.time-picker-option-button.selected{background:var(--date-picker-primary, #2d66ed);color:var(--date-picker-primary-fg, #ffffff);font-weight:500}.time-picker-options-scroll::-webkit-scrollbar{width:0px}.time-picker-options-scroll::-webkit-scrollbar-track{background:transparent}.v-time-picker{
|
|
1
|
+
:root{--date-picker-primary: #2d66ed;--date-picker-primary-fg: #ffffff;--date-picker-text: inherit;--date-picker-border: #00000020;--date-picker-secondary: #00000010;--date-picker-hover: #00000010;--date-picker-disabled: #000000b4;--date-picker-today: #00000010;--date-picker-radius: .375em;--timer-picker-bg: white;--timer-picker-input-bg: white;--timer-picker-input-border: #00000020;--timer-picker-input-text: inherit;--timer-picker-input-text-size: .875em;--timer-picker-input-border-radius: .375em;--timer-picker-input-padding: .5em .75em}.ml-auto{margin-left:auto}.date-picker{position:relative;display:inline-block;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;font-size:14px;color:var(--date-picker-text)}.date-picker-content{padding:0 .5em .5em}.date-picker-table{width:100%;border-collapse:collapse;border-spacing:0;margin:0}.date-picker-table:not(.date-picker-week-table) .date-picker-day-cell{padding:.13em}td,th{padding:0;margin:0;border:none}.date-picker-weekdays-row th{padding:.6em 0;font-size:.78em}.date-picker-weekday{display:flex;align-items:center;justify-content:center;height:2em;font-size:.75em;font-weight:500;opacity:.5;padding:.25em}.date-picker-days-body tr{border:none}.date-picker-day{display:flex;align-items:center;justify-content:center;width:100%;height:2em;border:none;background:none;border-radius:var(--date-picker-radius);cursor:pointer;font-size:.95em;color:var(--date-picker-text)}.date-picker-day:hover{background:var(--date-picker-hover)}.date-picker-day.other-month{opacity:.4}.date-picker-day.today{background:var(--date-picker-today);font-weight:400}.date-picker-day.selected{background:var(--date-picker-primary);color:var(--date-picker-primary-fg)}.date-picker-day.disabled{cursor:not-allowed;opacity:.5}.date-picker-day.disabled:hover{background:none}.date-picker-datetime-layout{display:flex;gap:.65em;width:100%}.date-picker-date-section{flex:1;height:100%}.date-picker-datetime-layout .date-picker-date-section{width:75%}.date-picker-time-section{width:100%;max-width:74px;border-left:1px solid var(--date-picker-border);display:flex;flex-direction:column}.date-picker-time-section .time-picker-container{flex:1;overflow-y:auto}.date-picker-week-table .date-picker-week-row{cursor:pointer}.date-picker-week-table .date-picker-week-row:not(.selected):hover td{background:var(--date-picker-hover)}.date-picker-week-table td{border-radius:0;padding:0}.date-picker-week-table .date-picker-day-cell .date-picker-day{border-radius:0}.date-picker-week-header{text-align:center}.date-picker-week-row .date-picker-week-number-cell{height:90%;padding-right:5px;background:var(--date-picker-secondary);opacity:.7;border-bottom:1px solid var(--date-picker-border);text-align:center;width:2.5em;font-size:.8em}.date-picker-week-row:last-child .date-picker-week-number-cell{border-bottom:none}.date-picker-week-row.selected .date-picker-day{background:var(--date-picker-primary);color:var(--date-picker-primary-fg)}.date-picker-months-table{width:100%}.date-picker-months-body .date-picker-month-cell{padding:2px}.date-picker-month{display:flex;align-items:center;justify-content:center;width:100%;height:2.5em;border:none;background:none;border-radius:var(--date-picker-radius);cursor:pointer;font-size:inherit;color:var(--date-picker-text)}.date-picker-month:hover{background:var(--date-picker-hover)}.date-picker-month.selected{background:var(--date-picker-primary);color:var(--date-picker-primary-fg)}.year-view-layout{display:flex;gap:1px;height:100%;padding-right:2px}.years-section{width:25%;min-width:60px;max-width:80px;border-right:1px solid var(--date-picker-border);display:flex;flex-direction:column;height:100%}.years-list{display:flex;flex-direction:column;flex:1;overflow-y:auto;overflow-x:hidden}.year-item{display:flex;align-items:center;justify-content:center;padding:.5em;border:none;background:none;cursor:pointer;font-size:.875em;color:var(--date-picker-text);transition:background-color .15s ease;white-space:nowrap;flex-shrink:0}.year-item:hover{background:var(--date-picker-hover)}.year-item.selected{background:var(--date-picker-primary);color:var(--date-picker-primary-fg)}.year-item.current{font-weight:600}.months-section{width:75%;display:flex;flex-direction:column;height:100%}.months-section .date-picker-months-table{overflow:auto;flex:1}.year-view-layout .months-section{padding:5px 3px;height:94.5%}.time-picker-container{height:100%;display:flex;flex-direction:column}.time-wheel{height:100%;overflow-y:auto;display:flex;flex-direction:column;border:1px solid var(--date-picker-border);border-radius:var(--date-picker-radius)}.time-option{height:30px;display:flex;align-items:center;justify-content:center;width:100%;cursor:pointer;font-size:.875em;color:var(--date-picker-text);flex-shrink:0}.time-option:hover{background:var(--date-picker-hover)}.time-option.selected{background:var(--date-picker-primary);color:var(--date-picker-primary-fg);font-weight:500}.date-picker-time-section .time-wheel{border:none;border-radius:0;height:100%;max-height:none}.date-picker-header{display:flex;align-items:center;justify-content:space-between;padding:.45em .4em;gap:.2em;border-bottom:1px solid var(--date-picker-border)}.date-picker-nav-button{display:flex;align-items:center;justify-content:center;width:1.65em;height:1.65em;border:none;background:none;border-radius:var(--date-picker-radius);cursor:pointer;transition:background-color .15s ease;opacity:.7}.date-picker-nav-button:hover:not(:disabled){background:var(--date-picker-hover)}.date-picker-nav-button:disabled{opacity:.5;cursor:not-allowed}.date-picker-nav-icon,.date-picker-header *{color:inherit!important}.date-picker-nav-icon svg{width:1.3em;height:1.3em;color:inherit!important;fill:currentColor!important}.date-picker-title{font-weight:600;font-size:1em;cursor:pointer;padding:.25em .5em;border-radius:var(--date-picker-radius);transition:background-color .15s ease;border:none;background:none;color:inherit}.date-picker-title:hover{background:var(--date-picker-hover)}.date-picker svg{display:flex;color:inherit}.date-picker *::-webkit-scrollbar{height:3px;width:3px}.date-picker *::-webkit-scrollbar-track{border-radius:5px;background-color:transparent}.date-picker *::-webkit-scrollbar-track:hover{background-color:transparent}.date-picker *::-webkit-scrollbar-track:active{background-color:transparent}.date-picker *::-webkit-scrollbar-thumb{border-radius:2px;background-color:var(--date-picker-border)}.date-picker *::-webkit-scrollbar-thumb:hover{background-color:var(--date-picker-border)}.date-picker *::-webkit-scrollbar-thumb:active{background-color:var(--date-picker-border)}.time-picker-dropdown{background:var(--timer-picker-bg);border:1px solid var(--date-picker-border, #00000020);border-radius:var(--date-picker-radius, .375rem)}.time-picker-sections{display:flex}.time-picker-time-section{border-right:1px solid var(--date-picker-border, #00000020);display:flex;flex-direction:column;min-width:3.8em;padding:.05em}.time-picker-time-section:last-child{border-right:none}.time-picker-period-section{min-width:60px}.time-picker-options-scroll{max-height:200px;overflow-y:auto;display:flex;flex-direction:column;gap:2px;padding:2px}.time-picker-option-button{padding:.5rem;border:none;background:transparent;border-radius:var(--date-picker-radius, .375rem);cursor:pointer;font-size:.875em;color:var(--date-picker-text, inherit);transition:all .15s ease;text-align:center}.time-picker-option-button:hover{background:var(--date-picker-hover, #00000010)}.time-picker-option-button.selected{background:var(--date-picker-primary, #2d66ed);color:var(--date-picker-primary-fg, #ffffff);font-weight:500}.time-picker-options-scroll::-webkit-scrollbar{width:0px}.time-picker-options-scroll::-webkit-scrollbar-track{background:transparent}.v-time-picker{z-index:999999999999}.time-picker-input{width:100%;display:flex;align-items:center;justify-content:space-between;padding:var(--timer-picker-input-padding);border:1px solid var(--timer-picker-input-border);border-radius:var(--timer-picker-input-border-radius);background:var(--timer-picker-input-bg);cursor:pointer;font-size:var(--timer-picker-input-text-size);color:var(--date-picker-text, inherit);transition:all .15s ease}.time-display{font-weight:500}.time-picker-clock-icon{opacity:.6}
|