v-datepicker-lite 0.0.7 → 0.0.9
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/components/time-picker/TimePicker.vue.d.ts +4 -0
- package/index.js +149 -141
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -4,6 +4,7 @@ interface Props {
|
|
|
4
4
|
triggerClass?: string;
|
|
5
5
|
style?: any;
|
|
6
6
|
className?: any;
|
|
7
|
+
offset?: [number, number];
|
|
7
8
|
}
|
|
8
9
|
declare function __VLS_template(): {
|
|
9
10
|
default?(_: {
|
|
@@ -13,16 +14,19 @@ declare function __VLS_template(): {
|
|
|
13
14
|
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
14
15
|
modelValue: any;
|
|
15
16
|
timeFormat: string;
|
|
17
|
+
offset: () => number[];
|
|
16
18
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
19
|
"update:modelValue": (value: string) => void;
|
|
18
20
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
|
|
19
21
|
modelValue: any;
|
|
20
22
|
timeFormat: string;
|
|
23
|
+
offset: () => number[];
|
|
21
24
|
}>>> & Readonly<{
|
|
22
25
|
"onUpdate:modelValue"?: (value: string) => any;
|
|
23
26
|
}>, {
|
|
24
27
|
timeFormat: "12h" | "24h";
|
|
25
28
|
modelValue: string | null;
|
|
29
|
+
offset: [number, number];
|
|
26
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
27
31
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
28
32
|
export default _default;
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as J, computed as H, createElementBlock as _, openBlock as k, createElementVNode as
|
|
1
|
+
import { defineComponent as J, computed as H, createElementBlock as _, openBlock as k, createElementVNode as M, 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 Ie, createBlock as ie, createCommentVNode as U, normalizeStyle as xt, createVNode as Ae, renderSlot as Fe, normalizeProps as je, guardReactiveProps as Ne, onUnmounted as zt, resolveDynamicComponent as Gt, Teleport as Ut, withCtx as Ee, 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);
|
|
@@ -122,13 +122,13 @@ const St = (e, t = "YYYY-MM-DD") => {
|
|
|
122
122
|
i.isDisabled || o("select", i.date);
|
|
123
123
|
};
|
|
124
124
|
return (i, a) => (k(), _("div", en, [
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
M("table", tn, [
|
|
126
|
+
M("thead", null, [
|
|
127
|
+
M("tr", nn, [
|
|
128
128
|
(k(!0), _(L, null, F(w(Tt), (u) => (k(), _("th", { key: u }, j(u), 1))), 128))
|
|
129
129
|
])
|
|
130
130
|
]),
|
|
131
|
-
|
|
131
|
+
M("tbody", rn, [
|
|
132
132
|
(k(!0), _(L, null, F(l.value, (u, p) => (k(), _("tr", {
|
|
133
133
|
key: p,
|
|
134
134
|
class: "date-picker-week-row"
|
|
@@ -137,7 +137,7 @@ const St = (e, t = "YYYY-MM-DD") => {
|
|
|
137
137
|
key: `${d.year}-${d.month}-${d.day}`,
|
|
138
138
|
class: "date-picker-day-cell"
|
|
139
139
|
}, [
|
|
140
|
-
|
|
140
|
+
M("button", {
|
|
141
141
|
class: A([
|
|
142
142
|
"date-picker-day",
|
|
143
143
|
{
|
|
@@ -180,14 +180,14 @@ const St = (e, t = "YYYY-MM-DD") => {
|
|
|
180
180
|
o("select", i);
|
|
181
181
|
};
|
|
182
182
|
return (c, i) => (k(), _("div", sn, [
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
i[0] || (i[0] =
|
|
183
|
+
M("table", ln, [
|
|
184
|
+
M("thead", null, [
|
|
185
|
+
M("tr", cn, [
|
|
186
|
+
i[0] || (i[0] = M("th", { class: "date-picker-weekday date-picker-week-header" }, "Wk", -1)),
|
|
187
187
|
(k(!0), _(L, null, F(w(Tt), (a) => (k(), _("th", { key: a }, j(a), 1))), 128))
|
|
188
188
|
])
|
|
189
189
|
]),
|
|
190
|
-
|
|
190
|
+
M("tbody", un, [
|
|
191
191
|
(k(!0), _(L, null, F(r.value, (a) => (k(), _("tr", {
|
|
192
192
|
key: a.weekNumber,
|
|
193
193
|
class: A([
|
|
@@ -198,14 +198,14 @@ const St = (e, t = "YYYY-MM-DD") => {
|
|
|
198
198
|
]),
|
|
199
199
|
onClick: (u) => l(a)
|
|
200
200
|
}, [
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
M("td", fn, [
|
|
202
|
+
M("div", pn, j(a.weekNumber), 1)
|
|
203
203
|
]),
|
|
204
204
|
(k(!0), _(L, null, F(a.days, (u) => (k(), _("td", {
|
|
205
205
|
key: `${u.year}-${u.month}-${u.day}`,
|
|
206
206
|
class: "date-picker-day-cell"
|
|
207
207
|
}, [
|
|
208
|
-
|
|
208
|
+
M("button", {
|
|
209
209
|
class: A([
|
|
210
210
|
"date-picker-day",
|
|
211
211
|
{
|
|
@@ -238,9 +238,9 @@ function vn(e, t = "24h", n = 15, o) {
|
|
|
238
238
|
const O = 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,
|
|
241
|
+
const y = (i.value, S), h = i.value ? S === 12 ? v === 0 ? 0 : 12 : S + v * 12 : S, $ = `${String(y).padStart(2, "0")}:${String(D).padStart(2, "0")}` + O;
|
|
242
242
|
s.push({
|
|
243
|
-
display:
|
|
243
|
+
display: $,
|
|
244
244
|
value: `${String(h).padStart(2, "0")}:${String(D).padStart(2, "0")}`,
|
|
245
245
|
hour: h,
|
|
246
246
|
minute: D
|
|
@@ -332,7 +332,7 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
332
332
|
}, 3);
|
|
333
333
|
});
|
|
334
334
|
}), (d, b) => (k(), _("div", hn, [
|
|
335
|
-
|
|
335
|
+
M("div", {
|
|
336
336
|
ref_key: "timeListRef",
|
|
337
337
|
ref: r,
|
|
338
338
|
class: "time-wheel",
|
|
@@ -351,7 +351,7 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
351
351
|
], 512)
|
|
352
352
|
]));
|
|
353
353
|
}
|
|
354
|
-
}), yn = { class: "year-view-layout" }, bn = { class: "years-section" }, wn = { class: "years-list" }, kn = ["onClick"], Dn = { class: "months-section" },
|
|
354
|
+
}), yn = { class: "year-view-layout" }, bn = { class: "years-section" }, wn = { class: "years-list" }, kn = ["onClick"], Dn = { class: "months-section" }, Mn = { class: "date-picker-table date-picker-months-table" }, xn = { class: "date-picker-months-body" }, Sn = ["onClick", "disabled"], _n = /* @__PURE__ */ J({
|
|
355
355
|
__name: "YearView",
|
|
356
356
|
props: {
|
|
357
357
|
currentDate: {},
|
|
@@ -379,8 +379,8 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
379
379
|
o("month-select", d.month);
|
|
380
380
|
};
|
|
381
381
|
return (d, b) => (k(), _("div", yn, [
|
|
382
|
-
|
|
383
|
-
|
|
382
|
+
M("div", bn, [
|
|
383
|
+
M("div", wn, [
|
|
384
384
|
(k(!0), _(L, null, F(c.value, (g) => (k(), _("button", {
|
|
385
385
|
key: g,
|
|
386
386
|
class: A([
|
|
@@ -394,9 +394,9 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
394
394
|
}, j(g), 11, kn))), 128))
|
|
395
395
|
])
|
|
396
396
|
]),
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
397
|
+
M("div", Dn, [
|
|
398
|
+
M("table", Mn, [
|
|
399
|
+
M("tbody", xn, [
|
|
400
400
|
(k(!0), _(L, null, F(a.value, (g, m) => (k(), _("tr", {
|
|
401
401
|
key: m,
|
|
402
402
|
class: "date-picker-months-row"
|
|
@@ -405,7 +405,7 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
405
405
|
key: s.month,
|
|
406
406
|
class: "date-picker-month-cell"
|
|
407
407
|
}, [
|
|
408
|
-
|
|
408
|
+
M("button", {
|
|
409
409
|
class: A([
|
|
410
410
|
"date-picker-month",
|
|
411
411
|
{
|
|
@@ -423,7 +423,7 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
423
423
|
])
|
|
424
424
|
]));
|
|
425
425
|
}
|
|
426
|
-
}), On = { class: "date-picker-content" }, Tn = { class: "date-picker-table date-picker-months-table" },
|
|
426
|
+
}), On = { class: "date-picker-content" }, Tn = { class: "date-picker-table date-picker-months-table" }, $n = { class: "date-picker-months-body" }, Pn = ["onClick", "disabled"], Cn = /* @__PURE__ */ J({
|
|
427
427
|
__name: "MonthView",
|
|
428
428
|
props: {
|
|
429
429
|
currentDate: {},
|
|
@@ -443,8 +443,8 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
443
443
|
o("select", i.month);
|
|
444
444
|
};
|
|
445
445
|
return (i, a) => (k(), _("div", On, [
|
|
446
|
-
|
|
447
|
-
|
|
446
|
+
M("table", Tn, [
|
|
447
|
+
M("tbody", $n, [
|
|
448
448
|
(k(!0), _(L, null, F(l.value, (u, p) => (k(), _("tr", {
|
|
449
449
|
key: p,
|
|
450
450
|
class: "date-picker-months-row"
|
|
@@ -453,7 +453,7 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
453
453
|
key: d.month,
|
|
454
454
|
class: "date-picker-month-cell"
|
|
455
455
|
}, [
|
|
456
|
-
|
|
456
|
+
M("button", {
|
|
457
457
|
class: A([
|
|
458
458
|
"date-picker-month",
|
|
459
459
|
{
|
|
@@ -463,7 +463,7 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
463
463
|
]),
|
|
464
464
|
onClick: (b) => c(d),
|
|
465
465
|
disabled: d.isDisabled
|
|
466
|
-
}, j(d.name), 11,
|
|
466
|
+
}, j(d.name), 11, Pn)
|
|
467
467
|
]))), 128))
|
|
468
468
|
]))), 128))
|
|
469
469
|
])
|
|
@@ -501,42 +501,42 @@ const hn = { class: "time-picker-container" }, gn = ["aria-selected", "onClick"]
|
|
|
501
501
|
o("current-date");
|
|
502
502
|
};
|
|
503
503
|
return (u, p) => (k(), _("div", En, [
|
|
504
|
-
|
|
504
|
+
M("button", {
|
|
505
505
|
class: "date-picker-title",
|
|
506
506
|
onClick: i,
|
|
507
507
|
type: "button"
|
|
508
508
|
}, j(r.value), 1),
|
|
509
|
-
|
|
509
|
+
M("button", {
|
|
510
510
|
class: "date-picker-nav-button ml-auto",
|
|
511
511
|
disabled: !u.canGoPrev,
|
|
512
512
|
onClick: l,
|
|
513
513
|
type: "button",
|
|
514
514
|
"aria-label": "Previous"
|
|
515
515
|
}, [
|
|
516
|
-
|
|
516
|
+
M("span", {
|
|
517
517
|
class: "date-picker-nav-icon",
|
|
518
518
|
innerHTML: w(Hn)
|
|
519
519
|
}, null, 8, Fn)
|
|
520
520
|
], 8, Ln),
|
|
521
|
-
|
|
521
|
+
M("button", {
|
|
522
522
|
class: "date-picker-nav-button",
|
|
523
523
|
onClick: a,
|
|
524
524
|
type: "button",
|
|
525
525
|
"aria-label": "Current Date"
|
|
526
526
|
}, [
|
|
527
|
-
|
|
527
|
+
M("span", {
|
|
528
528
|
class: "date-picker-nav-icon",
|
|
529
529
|
innerHTML: w(An)
|
|
530
530
|
}, null, 8, jn)
|
|
531
531
|
]),
|
|
532
|
-
|
|
532
|
+
M("button", {
|
|
533
533
|
class: "date-picker-nav-button",
|
|
534
534
|
disabled: !u.canGoNext,
|
|
535
535
|
onClick: c,
|
|
536
536
|
type: "button",
|
|
537
537
|
"aria-label": "Next"
|
|
538
538
|
}, [
|
|
539
|
-
|
|
539
|
+
M("span", {
|
|
540
540
|
class: "date-picker-nav-icon",
|
|
541
541
|
innerHTML: w(Yn)
|
|
542
542
|
}, null, 8, Vn)
|
|
@@ -549,14 +549,14 @@ function Wn(e, t) {
|
|
|
549
549
|
if (!e.minDate) return !0;
|
|
550
550
|
const h = ze(e.minDate);
|
|
551
551
|
if (!h) return !0;
|
|
552
|
-
const
|
|
553
|
-
return new Date(
|
|
552
|
+
const x = n.value.getFullYear(), $ = n.value.getMonth();
|
|
553
|
+
return new Date(x, $, 1) > h;
|
|
554
554
|
}), c = H(() => {
|
|
555
555
|
if (!e.maxDate) return !0;
|
|
556
556
|
const h = ze(e.maxDate);
|
|
557
557
|
if (!h) return !0;
|
|
558
|
-
const
|
|
559
|
-
return new Date(
|
|
558
|
+
const x = n.value.getFullYear(), $ = n.value.getMonth();
|
|
559
|
+
return new Date(x, $ + 1, 0) < h;
|
|
560
560
|
}), i = () => {
|
|
561
561
|
l.value && (n.value = new Date(n.value.getFullYear(), n.value.getMonth() - 1, 1));
|
|
562
562
|
}, a = () => {
|
|
@@ -589,14 +589,14 @@ function Wn(e, t) {
|
|
|
589
589
|
}, O = (h) => {
|
|
590
590
|
n.value = new Date(h, n.value.getMonth(), 1), o.value = "date";
|
|
591
591
|
}, S = (h) => {
|
|
592
|
-
const
|
|
593
|
-
return
|
|
594
|
-
}, D = (h,
|
|
595
|
-
const
|
|
596
|
-
return
|
|
592
|
+
const x = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{3})?Z?$/, $ = /^\d{4}-\d{2}-\d{2}$/;
|
|
593
|
+
return x.test(h) ? h.includes(".") ? "YYYY-MM-DDTHH:mm:ss.sssZ" : "YYYY-MM-DDTHH:mm:ssZ" : $.test(h) ? "YYYY-MM-DD" : e.format || "YYYY-MM-DD";
|
|
594
|
+
}, D = (h, x) => {
|
|
595
|
+
const $ = S(x);
|
|
596
|
+
return $.includes("T") ? $.includes(".sss") ? h.toISOString() : h.toISOString().replace(/\.\d{3}Z$/, "Z") : St(h, $);
|
|
597
597
|
}, y = (h) => {
|
|
598
|
-
let
|
|
599
|
-
typeof e.value == "string" ?
|
|
598
|
+
let x;
|
|
599
|
+
typeof e.value == "string" ? x = D(h, e.value) : x = h, t("update:value", x), t("change", x), t("select", x);
|
|
600
600
|
};
|
|
601
601
|
return {
|
|
602
602
|
currentDate: n,
|
|
@@ -656,39 +656,39 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
656
656
|
onWeekSelect: D,
|
|
657
657
|
onMonthSelect: y,
|
|
658
658
|
onYearSelect: h,
|
|
659
|
-
emitValue:
|
|
660
|
-
} = Wn(n, o),
|
|
659
|
+
emitValue: x
|
|
660
|
+
} = Wn(n, o), $ = (T) => {
|
|
661
661
|
if (n.mode === "dateTime" && a.value) {
|
|
662
|
-
const
|
|
663
|
-
|
|
662
|
+
const P = new Date(a.value.getTime());
|
|
663
|
+
P.setHours(T.getHours(), T.getMinutes(), 0, 0), x(P);
|
|
664
664
|
} else
|
|
665
|
-
|
|
665
|
+
x(T);
|
|
666
666
|
};
|
|
667
667
|
return Ie(async () => {
|
|
668
668
|
K(() => {
|
|
669
669
|
r.value && (l.value = r.value.clientHeight);
|
|
670
670
|
});
|
|
671
|
-
}), (T,
|
|
671
|
+
}), (T, P) => (k(), _("div", Rn, [
|
|
672
672
|
T.mode !== "time" ? (k(), ie(In, {
|
|
673
673
|
key: 0,
|
|
674
674
|
"current-date": w(c),
|
|
675
675
|
"view-mode": w(i),
|
|
676
676
|
"can-go-prev": w(u),
|
|
677
677
|
"can-go-next": w(p),
|
|
678
|
-
onPrev:
|
|
679
|
-
onNext:
|
|
678
|
+
onPrev: P[0] || (P[0] = (Y) => w(i) === "year" ? w(s)() : w(i) === "month" ? w(g)() : w(d)()),
|
|
679
|
+
onNext: P[1] || (P[1] = (Y) => w(i) === "year" ? w(f)() : w(i) === "month" ? w(m)() : w(b)()),
|
|
680
680
|
onHeaderClick: w(O),
|
|
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
|
+
M("div", {
|
|
684
684
|
class: A({
|
|
685
685
|
"date-picker-datetime-layout": T.mode === "dateTime" && w(i) === "date"
|
|
686
686
|
}),
|
|
687
|
-
style:
|
|
687
|
+
style: xt({
|
|
688
688
|
height: l.value !== 0 ? l.value + "px" : "100%"
|
|
689
689
|
})
|
|
690
690
|
}, [
|
|
691
|
-
|
|
691
|
+
M("div", {
|
|
692
692
|
class: "date-picker-date-section",
|
|
693
693
|
ref_key: "datePickerContent",
|
|
694
694
|
ref: r
|
|
@@ -727,7 +727,7 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
727
727
|
"selected-time": w(a),
|
|
728
728
|
"time-format": T.timeFormat,
|
|
729
729
|
"time-interval": T.timeInterval,
|
|
730
|
-
onUpdate:
|
|
730
|
+
onUpdate: $
|
|
731
731
|
}, null, 8, ["selected-time", "time-format", "time-interval"])
|
|
732
732
|
])) : U("", !0)
|
|
733
733
|
], 6),
|
|
@@ -736,7 +736,7 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
736
736
|
"selected-time": w(a),
|
|
737
737
|
"time-format": T.timeFormat,
|
|
738
738
|
"time-interval": T.timeInterval,
|
|
739
|
-
onUpdate:
|
|
739
|
+
onUpdate: $
|
|
740
740
|
}, null, 8, ["selected-time", "time-format", "time-interval"])) : U("", !0)
|
|
741
741
|
]));
|
|
742
742
|
}
|
|
@@ -778,9 +778,9 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
778
778
|
ref: l,
|
|
779
779
|
class: "time-picker-dropdown"
|
|
780
780
|
}, [
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
781
|
+
M("div", qn, [
|
|
782
|
+
M("div", zn, [
|
|
783
|
+
M("div", {
|
|
784
784
|
ref_key: "hourScroll",
|
|
785
785
|
ref: c,
|
|
786
786
|
class: "time-picker-options-scroll"
|
|
@@ -793,8 +793,8 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
793
793
|
}, j(String(v).padStart(2, "0")), 11, Gn))), 128))
|
|
794
794
|
], 512)
|
|
795
795
|
]),
|
|
796
|
-
|
|
797
|
-
|
|
796
|
+
M("div", Un, [
|
|
797
|
+
M("div", {
|
|
798
798
|
ref_key: "minuteScroll",
|
|
799
799
|
ref: i,
|
|
800
800
|
class: "time-picker-options-scroll"
|
|
@@ -808,17 +808,17 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
808
808
|
], 512)
|
|
809
809
|
]),
|
|
810
810
|
s.is12Hour ? (k(), _("div", Zn, [
|
|
811
|
-
|
|
811
|
+
M("div", {
|
|
812
812
|
ref_key: "periodScroll",
|
|
813
813
|
ref: a,
|
|
814
814
|
class: "time-picker-options-scroll"
|
|
815
815
|
}, [
|
|
816
|
-
|
|
816
|
+
M("button", {
|
|
817
817
|
type: "button",
|
|
818
818
|
class: A(["time-picker-option-button", { selected: s.selectedPeriod === "AM" }]),
|
|
819
819
|
onClick: f[0] || (f[0] = (v) => m("AM"))
|
|
820
820
|
}, " AM ", 2),
|
|
821
|
-
|
|
821
|
+
M("button", {
|
|
822
822
|
type: "button",
|
|
823
823
|
class: A(["time-picker-option-button", { selected: s.selectedPeriod === "PM" }]),
|
|
824
824
|
onClick: f[1] || (f[1] = (v) => m("PM"))
|
|
@@ -847,12 +847,12 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
847
847
|
return `${String(t.hour).padStart(2, "0")}:${o}`;
|
|
848
848
|
});
|
|
849
849
|
return (o, r) => Fe(o.$slots, "default", je(Ne({ displayTime: n.value })), () => [
|
|
850
|
-
|
|
850
|
+
M("button", {
|
|
851
851
|
type: "button",
|
|
852
852
|
class: A(["time-picker-input", o.triggerClass])
|
|
853
853
|
}, [
|
|
854
|
-
|
|
855
|
-
r[0] || (r[0] =
|
|
854
|
+
M("span", Xn, j(n.value), 1),
|
|
855
|
+
r[0] || (r[0] = M("svg", {
|
|
856
856
|
class: "time-picker-clock-icon",
|
|
857
857
|
xmlns: "http://www.w3.org/2000/svg",
|
|
858
858
|
width: "18",
|
|
@@ -864,23 +864,23 @@ const Rn = { class: "date-picker" }, Bn = {
|
|
|
864
864
|
"stroke-linecap": "round",
|
|
865
865
|
"stroke-linejoin": "round"
|
|
866
866
|
}, [
|
|
867
|
-
|
|
867
|
+
M("circle", {
|
|
868
868
|
cx: "12",
|
|
869
869
|
cy: "12",
|
|
870
870
|
r: "10"
|
|
871
871
|
}),
|
|
872
|
-
|
|
872
|
+
M("polyline", { points: "12,6 12,12 16,14" })
|
|
873
873
|
], -1))
|
|
874
874
|
], 2)
|
|
875
875
|
]);
|
|
876
876
|
}
|
|
877
877
|
}), fe = () => {
|
|
878
878
|
};
|
|
879
|
-
function
|
|
879
|
+
function $t(e) {
|
|
880
880
|
return typeof e == "function" ? e() : e && typeof e == "object" && "value" in e ? e.value : e;
|
|
881
881
|
}
|
|
882
882
|
function He(e) {
|
|
883
|
-
return
|
|
883
|
+
return $t(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
886
|
function Ge(e, t, n, o) {
|
|
@@ -897,7 +897,7 @@ function tr(e, t, n = {}) {
|
|
|
897
897
|
Array.from(o.document.body.children).forEach((s) => s.addEventListener("click", fe, m)), o.document.documentElement.addEventListener("click", fe, m);
|
|
898
898
|
}
|
|
899
899
|
let a = !0;
|
|
900
|
-
const u = (m) =>
|
|
900
|
+
const u = (m) => $t(r).some((s) => {
|
|
901
901
|
if (typeof s == "string")
|
|
902
902
|
return Array.from(o.document.querySelectorAll(s)).some((f) => f === m.target || m.composedPath().includes(f));
|
|
903
903
|
{
|
|
@@ -945,10 +945,10 @@ function tr(e, t, n = {}) {
|
|
|
945
945
|
}
|
|
946
946
|
} : g;
|
|
947
947
|
}
|
|
948
|
-
var N = "top", B = "bottom", q = "right", V = "left", Ze = "auto", Se = [N, B, q, V], pe = "start",
|
|
949
|
-
return e.concat([t + "-" + pe, t + "-" +
|
|
948
|
+
var N = "top", B = "bottom", q = "right", V = "left", Ze = "auto", Se = [N, B, q, V], pe = "start", Me = "end", nr = "clippingParents", Pt = "viewport", be = "popper", rr = "reference", vt = /* @__PURE__ */ Se.reduce(function(e, t) {
|
|
949
|
+
return e.concat([t + "-" + pe, t + "-" + Me]);
|
|
950
950
|
}, []), Ct = /* @__PURE__ */ [].concat(Se, [Ze]).reduce(function(e, t) {
|
|
951
|
-
return e.concat([t, t + "-" + pe, t + "-" +
|
|
951
|
+
return e.concat([t, t + "-" + pe, t + "-" + Me]);
|
|
952
952
|
}, []), or = "beforeRead", ar = "read", sr = "afterRead", ir = "beforeMain", lr = "main", cr = "afterMain", ur = "beforeWrite", dr = "write", fr = "afterWrite", pr = [or, ar, sr, ir, lr, cr, ur, dr, fr];
|
|
953
953
|
function Q(e) {
|
|
954
954
|
return e ? (e.nodeName || "").toLowerCase() : null;
|
|
@@ -1153,15 +1153,15 @@ 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), O = v ? a === "y" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, S = s / 2 - f / 2, D = d[g], y = O - b[p] - d[m], h = O / 2 - b[p] / 2 + S,
|
|
1157
|
-
n.modifiersData[o] = (t = {}, t[
|
|
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), O = v ? a === "y" ? v.clientHeight || 0 : v.clientWidth || 0 : 0, S = s / 2 - f / 2, D = d[g], y = O - b[p] - d[m], h = O / 2 - b[p] / 2 + S, x = ke(D, h, y), $ = a;
|
|
1157
|
+
n.modifiersData[o] = (t = {}, t[$] = x, t.centerOffset = x - h, t);
|
|
1158
1158
|
}
|
|
1159
1159
|
}
|
|
1160
1160
|
function Dr(e) {
|
|
1161
1161
|
var t = e.state, n = e.options, o = n.element, r = o === void 0 ? "[data-popper-arrow]" : o;
|
|
1162
1162
|
r != null && (typeof r == "string" && (r = t.elements.popper.querySelector(r), !r) || Yt(t.elements.popper, r) && (t.elements.arrow = r));
|
|
1163
1163
|
}
|
|
1164
|
-
const
|
|
1164
|
+
const Mr = {
|
|
1165
1165
|
name: "arrow",
|
|
1166
1166
|
enabled: !0,
|
|
1167
1167
|
phase: "main",
|
|
@@ -1173,7 +1173,7 @@ const xr = {
|
|
|
1173
1173
|
function he(e) {
|
|
1174
1174
|
return e.split("-")[1];
|
|
1175
1175
|
}
|
|
1176
|
-
var
|
|
1176
|
+
var xr = {
|
|
1177
1177
|
top: "auto",
|
|
1178
1178
|
right: "auto",
|
|
1179
1179
|
bottom: "auto",
|
|
@@ -1197,27 +1197,27 @@ function gt(e) {
|
|
|
1197
1197
|
g = f.x, s = f.y;
|
|
1198
1198
|
var v = c.hasOwnProperty("x"), O = c.hasOwnProperty("y"), S = V, D = N, y = window;
|
|
1199
1199
|
if (u) {
|
|
1200
|
-
var h = _e(n),
|
|
1201
|
-
if (h === W(n) && (h = te(n), ee(h).position !== "static" && i === "absolute" && (
|
|
1200
|
+
var h = _e(n), x = "clientHeight", $ = "clientWidth";
|
|
1201
|
+
if (h === W(n) && (h = te(n), ee(h).position !== "static" && i === "absolute" && (x = "scrollHeight", $ = "scrollWidth")), h = h, r === N || (r === V || r === q) && l === Me) {
|
|
1202
1202
|
D = B;
|
|
1203
1203
|
var T = d && h === y && y.visualViewport ? y.visualViewport.height : (
|
|
1204
1204
|
// $FlowFixMe[prop-missing]
|
|
1205
|
-
h[
|
|
1205
|
+
h[x]
|
|
1206
1206
|
);
|
|
1207
1207
|
s -= T - o.height, s *= a ? 1 : -1;
|
|
1208
1208
|
}
|
|
1209
|
-
if (r === V || (r === N || r === B) && l ===
|
|
1209
|
+
if (r === V || (r === N || r === B) && l === Me) {
|
|
1210
1210
|
S = q;
|
|
1211
|
-
var
|
|
1211
|
+
var P = d && h === y && y.visualViewport ? y.visualViewport.width : (
|
|
1212
1212
|
// $FlowFixMe[prop-missing]
|
|
1213
|
-
h[
|
|
1213
|
+
h[$]
|
|
1214
1214
|
);
|
|
1215
|
-
g -=
|
|
1215
|
+
g -= P - o.width, g *= a ? 1 : -1;
|
|
1216
1216
|
}
|
|
1217
1217
|
}
|
|
1218
1218
|
var Y = Object.assign({
|
|
1219
1219
|
position: i
|
|
1220
|
-
}, u &&
|
|
1220
|
+
}, u && xr), z = p === !0 ? Sr({
|
|
1221
1221
|
x: g,
|
|
1222
1222
|
y: s
|
|
1223
1223
|
}, W(n)) : {
|
|
@@ -1273,7 +1273,7 @@ function Tr(e) {
|
|
|
1273
1273
|
}), i && a.removeEventListener("resize", n.update, Ye);
|
|
1274
1274
|
};
|
|
1275
1275
|
}
|
|
1276
|
-
const
|
|
1276
|
+
const $r = {
|
|
1277
1277
|
name: "eventListeners",
|
|
1278
1278
|
enabled: !0,
|
|
1279
1279
|
phase: "write",
|
|
@@ -1282,7 +1282,7 @@ const Pr = {
|
|
|
1282
1282
|
effect: Tr,
|
|
1283
1283
|
data: {}
|
|
1284
1284
|
};
|
|
1285
|
-
var
|
|
1285
|
+
var Pr = {
|
|
1286
1286
|
left: "right",
|
|
1287
1287
|
right: "left",
|
|
1288
1288
|
bottom: "top",
|
|
@@ -1290,7 +1290,7 @@ var $r = {
|
|
|
1290
1290
|
};
|
|
1291
1291
|
function Le(e) {
|
|
1292
1292
|
return e.replace(/left|right|bottom|top/g, function(t) {
|
|
1293
|
-
return
|
|
1293
|
+
return Pr[t];
|
|
1294
1294
|
});
|
|
1295
1295
|
}
|
|
1296
1296
|
var Cr = {
|
|
@@ -1364,7 +1364,7 @@ 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 ===
|
|
1367
|
+
return t === Pt ? Je(Hr(e, n)) : ue(t) ? Ar(t, n) : Je(Yr(te(e)));
|
|
1368
1368
|
}
|
|
1369
1369
|
function Er(e) {
|
|
1370
1370
|
var t = De(We(e)), n = ["absolute", "fixed"].indexOf(ee(e).position) >= 0, o = n && R(e) ? _e(e) : e;
|
|
@@ -1419,20 +1419,20 @@ function jt(e) {
|
|
|
1419
1419
|
case pe:
|
|
1420
1420
|
a[u] = a[u] - (t[p] / 2 - n[p] / 2);
|
|
1421
1421
|
break;
|
|
1422
|
-
case
|
|
1422
|
+
case Me:
|
|
1423
1423
|
a[u] = a[u] + (t[p] / 2 - n[p] / 2);
|
|
1424
1424
|
break;
|
|
1425
1425
|
}
|
|
1426
1426
|
}
|
|
1427
1427
|
return a;
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function xe(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 ?
|
|
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 ? Pt : 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)), O = b === be ? rr : be, S = e.rects.popper, D = e.elements[m ? O : b], y = Lr(ue(D) ? D : D.contextElement || te(e.elements.popper), a, p, c), h = ve(e.elements.reference), x = jt({
|
|
1432
1432
|
reference: h,
|
|
1433
1433
|
element: S,
|
|
1434
1434
|
placement: r
|
|
1435
|
-
}),
|
|
1435
|
+
}), $ = Je(Object.assign({}, S, x)), T = b === be ? $ : h, P = {
|
|
1436
1436
|
top: y.top - T.top + v.top,
|
|
1437
1437
|
bottom: T.bottom - y.bottom + v.bottom,
|
|
1438
1438
|
left: y.left - T.left + v.left,
|
|
@@ -1440,12 +1440,12 @@ function Me(e, t) {
|
|
|
1440
1440
|
}, Y = e.modifiersData.offset;
|
|
1441
1441
|
if (b === be && Y) {
|
|
1442
1442
|
var z = Y[r];
|
|
1443
|
-
Object.keys(
|
|
1443
|
+
Object.keys(P).forEach(function(E) {
|
|
1444
1444
|
var ne = [q, B].indexOf(E) >= 0 ? 1 : -1, re = [N, B].indexOf(E) >= 0 ? "y" : "x";
|
|
1445
|
-
|
|
1445
|
+
P[E] += z[re] * ne;
|
|
1446
1446
|
});
|
|
1447
1447
|
}
|
|
1448
|
-
return
|
|
1448
|
+
return P;
|
|
1449
1449
|
}
|
|
1450
1450
|
function Fr(e, t) {
|
|
1451
1451
|
t === void 0 && (t = {});
|
|
@@ -1456,7 +1456,7 @@ function Fr(e, t) {
|
|
|
1456
1456
|
});
|
|
1457
1457
|
b.length === 0 && (b = d);
|
|
1458
1458
|
var g = b.reduce(function(m, s) {
|
|
1459
|
-
return m[s] =
|
|
1459
|
+
return m[s] = xe(e, {
|
|
1460
1460
|
placement: s,
|
|
1461
1461
|
boundary: r,
|
|
1462
1462
|
rootBoundary: l,
|
|
@@ -1485,8 +1485,8 @@ function Nr(e) {
|
|
|
1485
1485
|
flipVariations: m,
|
|
1486
1486
|
allowedAutoPlacements: s
|
|
1487
1487
|
}) : X);
|
|
1488
|
-
}, []), y = t.rects.reference, h = t.rects.popper,
|
|
1489
|
-
var Y = D[
|
|
1488
|
+
}, []), y = t.rects.reference, h = t.rects.popper, x = /* @__PURE__ */ new Map(), $ = !0, T = D[0], P = 0; P < D.length; P++) {
|
|
1489
|
+
var Y = D[P], z = Z(Y), E = he(Y) === pe, ne = [N, B].indexOf(z) >= 0, re = ne ? "width" : "height", I = xe(t, {
|
|
1490
1490
|
placement: Y,
|
|
1491
1491
|
boundary: p,
|
|
1492
1492
|
rootBoundary: d,
|
|
@@ -1498,15 +1498,15 @@ function Nr(e) {
|
|
|
1498
1498
|
if (l && oe.push(I[z] <= 0), i && oe.push(I[G] <= 0, I[Oe] <= 0), oe.every(function(ae) {
|
|
1499
1499
|
return ae;
|
|
1500
1500
|
})) {
|
|
1501
|
-
T = Y,
|
|
1501
|
+
T = Y, $ = !1;
|
|
1502
1502
|
break;
|
|
1503
1503
|
}
|
|
1504
|
-
|
|
1504
|
+
x.set(Y, oe);
|
|
1505
1505
|
}
|
|
1506
|
-
if (
|
|
1506
|
+
if ($)
|
|
1507
1507
|
for (var Te = m ? 3 : 1, Re = function(ae) {
|
|
1508
|
-
var X = D.find(function(
|
|
1509
|
-
var ye =
|
|
1508
|
+
var X = D.find(function(Pe) {
|
|
1509
|
+
var ye = x.get(Pe);
|
|
1510
1510
|
if (ye)
|
|
1511
1511
|
return ye.slice(0, ae).every(function(de) {
|
|
1512
1512
|
return de;
|
|
@@ -1515,8 +1515,8 @@ function Nr(e) {
|
|
|
1515
1515
|
if (X)
|
|
1516
1516
|
return T = X, "break";
|
|
1517
1517
|
}, ge = Te; ge > 0; ge--) {
|
|
1518
|
-
var
|
|
1519
|
-
if (
|
|
1518
|
+
var $e = Re(ge);
|
|
1519
|
+
if ($e === "break") break;
|
|
1520
1520
|
}
|
|
1521
1521
|
t.placement !== T && (t.modifiersData[o]._skip = !0, t.placement = T, t.reset = !0);
|
|
1522
1522
|
}
|
|
@@ -1548,9 +1548,9 @@ function kt(e) {
|
|
|
1548
1548
|
});
|
|
1549
1549
|
}
|
|
1550
1550
|
function Ir(e) {
|
|
1551
|
-
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, l = t.modifiersData.preventOverflow, c =
|
|
1551
|
+
var t = e.state, n = e.name, o = t.rects.reference, r = t.rects.popper, l = t.modifiersData.preventOverflow, c = xe(t, {
|
|
1552
1552
|
elementContext: "reference"
|
|
1553
|
-
}), i =
|
|
1553
|
+
}), i = xe(t, {
|
|
1554
1554
|
altBoundary: !0
|
|
1555
1555
|
}), a = wt(c, o), u = wt(i, r, l), p = kt(a), d = kt(u);
|
|
1556
1556
|
t.modifiersData[n] = {
|
|
@@ -1614,14 +1614,14 @@ function Ur(e) {
|
|
|
1614
1614
|
return e === "x" ? "y" : "x";
|
|
1615
1615
|
}
|
|
1616
1616
|
function Jr(e) {
|
|
1617
|
-
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, l = r === void 0 ? !0 : r, c = n.altAxis, i = c === void 0 ? !1 : c, a = n.boundary, u = n.rootBoundary, p = n.altBoundary, d = n.padding, b = n.tether, g = b === void 0 ? !0 : b, m = n.tetherOffset, s = m === void 0 ? 0 : m, f =
|
|
1617
|
+
var t = e.state, n = e.options, o = e.name, r = n.mainAxis, l = r === void 0 ? !0 : r, c = n.altAxis, i = c === void 0 ? !1 : c, a = n.boundary, u = n.rootBoundary, p = n.altBoundary, d = n.padding, b = n.tether, g = b === void 0 ? !0 : b, m = n.tetherOffset, s = m === void 0 ? 0 : m, f = xe(t, {
|
|
1618
1618
|
boundary: a,
|
|
1619
1619
|
rootBoundary: u,
|
|
1620
1620
|
padding: d,
|
|
1621
1621
|
altBoundary: p
|
|
1622
|
-
}), v = Z(t.placement), O = he(t.placement), S = !O, D = Ke(v), y = Ur(D), h = t.modifiersData.popperOffsets,
|
|
1622
|
+
}), v = Z(t.placement), O = he(t.placement), S = !O, D = Ke(v), y = Ur(D), h = t.modifiersData.popperOffsets, x = t.rects.reference, $ = t.rects.popper, T = typeof s == "function" ? s(Object.assign({}, t.rects, {
|
|
1623
1623
|
placement: t.placement
|
|
1624
|
-
})) : s,
|
|
1624
|
+
})) : s, P = typeof T == "number" ? {
|
|
1625
1625
|
mainAxis: T,
|
|
1626
1626
|
altAxis: T
|
|
1627
1627
|
} : Object.assign({
|
|
@@ -1633,14 +1633,14 @@ function Jr(e) {
|
|
|
1633
1633
|
};
|
|
1634
1634
|
if (h) {
|
|
1635
1635
|
if (l) {
|
|
1636
|
-
var E, ne = D === "y" ? N : V, re = D === "y" ? B : q, I = D === "y" ? "height" : "width", G = h[D], Oe = G + f[ne], oe = G - f[re], Te = g ?
|
|
1636
|
+
var E, ne = D === "y" ? N : V, re = D === "y" ? B : q, I = D === "y" ? "height" : "width", G = h[D], Oe = G + f[ne], oe = G - f[re], Te = g ? -$[I] / 2 : 0, Re = O === pe ? x[I] : $[I], ge = O === pe ? -$[I] : -x[I], $e = t.elements.arrow, ae = g && $e ? Xe($e) : {
|
|
1637
1637
|
width: 0,
|
|
1638
1638
|
height: 0
|
|
1639
|
-
}, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : At(),
|
|
1639
|
+
}, X = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : At(), Pe = X[ne], ye = X[re], de = ke(0, x[I], ae[I]), Nt = S ? x[I] / 2 - Te - de - Pe - P.mainAxis : Re - de - Pe - P.mainAxis, Vt = S ? -x[I] / 2 + Te + de + ye + P.mainAxis : ge + de + ye + P.mainAxis, Be = t.elements.arrow && _e(t.elements.arrow), It = Be ? D === "y" ? Be.clientTop || 0 : Be.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 ? Ve(Oe, Wt) : Oe, G, g ? ce(oe, Rt) : oe);
|
|
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, se = h[y], Ce = y === "y" ? "height" : "width", st = se + f[Bt], it = se - f[qt], qe = [N, V].indexOf(v) !== -1, lt = (at = Y == null ? void 0 : Y[y]) != null ? at : 0, ct = qe ? st : se -
|
|
1643
|
+
var at, Bt = D === "x" ? N : V, qt = D === "x" ? B : q, se = h[y], Ce = y === "y" ? "height" : "width", st = se + f[Bt], it = se - f[qt], qe = [N, V].indexOf(v) !== -1, lt = (at = Y == null ? void 0 : Y[y]) != null ? at : 0, ct = qe ? st : se - x[Ce] - $[Ce] - lt + P.altAxis, ut = qe ? se + x[Ce] + $[Ce] - lt - P.altAxis : it, dt = g && qe ? br(ct, se, ut) : ke(g ? ct : st, se, g ? ut : it);
|
|
1644
1644
|
h[y] = dt, z[y] = dt - se;
|
|
1645
1645
|
}
|
|
1646
1646
|
t.modifiersData[o] = z;
|
|
@@ -1737,7 +1737,7 @@ var Dt = {
|
|
|
1737
1737
|
modifiers: [],
|
|
1738
1738
|
strategy: "absolute"
|
|
1739
1739
|
};
|
|
1740
|
-
function
|
|
1740
|
+
function Mt() {
|
|
1741
1741
|
for (var e = arguments.length, t = new Array(e), n = 0; n < e; n++)
|
|
1742
1742
|
t[n] = arguments[n];
|
|
1743
1743
|
return !t.some(function(o) {
|
|
@@ -1781,23 +1781,23 @@ function ao(e) {
|
|
|
1781
1781
|
forceUpdate: function() {
|
|
1782
1782
|
if (!d) {
|
|
1783
1783
|
var s = u.elements, f = s.reference, v = s.popper;
|
|
1784
|
-
if (
|
|
1784
|
+
if (Mt(f, v)) {
|
|
1785
1785
|
u.rects = {
|
|
1786
1786
|
reference: eo(f, _e(v), u.options.strategy === "fixed"),
|
|
1787
1787
|
popper: Xe(v)
|
|
1788
|
-
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function(
|
|
1789
|
-
return u.modifiersData[
|
|
1788
|
+
}, u.reset = !1, u.placement = u.options.placement, u.orderedModifiers.forEach(function($) {
|
|
1789
|
+
return u.modifiersData[$.name] = Object.assign({}, $.data);
|
|
1790
1790
|
});
|
|
1791
1791
|
for (var O = 0; O < u.orderedModifiers.length; O++) {
|
|
1792
1792
|
if (u.reset === !0) {
|
|
1793
1793
|
u.reset = !1, O = -1;
|
|
1794
1794
|
continue;
|
|
1795
1795
|
}
|
|
1796
|
-
var S = u.orderedModifiers[O], D = S.fn, y = S.options, h = y === void 0 ? {} : y,
|
|
1796
|
+
var S = u.orderedModifiers[O], D = S.fn, y = S.options, h = y === void 0 ? {} : y, x = S.name;
|
|
1797
1797
|
typeof D == "function" && (u = D({
|
|
1798
1798
|
state: u,
|
|
1799
1799
|
options: h,
|
|
1800
|
-
name:
|
|
1800
|
+
name: x,
|
|
1801
1801
|
instance: b
|
|
1802
1802
|
}) || u);
|
|
1803
1803
|
}
|
|
@@ -1815,7 +1815,7 @@ function ao(e) {
|
|
|
1815
1815
|
m(), d = !0;
|
|
1816
1816
|
}
|
|
1817
1817
|
};
|
|
1818
|
-
if (!
|
|
1818
|
+
if (!Mt(c, i))
|
|
1819
1819
|
return b;
|
|
1820
1820
|
b.setOptions(a).then(function(s) {
|
|
1821
1821
|
!d && a.onFirstUpdate && a.onFirstUpdate(s);
|
|
@@ -1843,7 +1843,7 @@ function ao(e) {
|
|
|
1843
1843
|
return b;
|
|
1844
1844
|
};
|
|
1845
1845
|
}
|
|
1846
|
-
var so = [
|
|
1846
|
+
var so = [$r, Gr, Or, hr, qr, Vr, Zr, Mr, Wr], io = /* @__PURE__ */ ao({
|
|
1847
1847
|
defaultModifiers: so
|
|
1848
1848
|
});
|
|
1849
1849
|
function lo(e, t = [0, 8], n, o = {}) {
|
|
@@ -1925,16 +1925,16 @@ function lo(e, t = [0, 8], n, o = {}) {
|
|
|
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
1927
|
return Ie(async () => {
|
|
1928
|
-
var y, h,
|
|
1929
|
-
await K(), n === "click" && ((y = r.value) == null || y.addEventListener("click", s)), n === "hover" && ((h = r.value) == null || h.addEventListener("mouseenter", O), (
|
|
1928
|
+
var y, h, x;
|
|
1929
|
+
await K(), n === "click" && ((y = r.value) == null || y.addEventListener("click", s)), n === "hover" && ((h = r.value) == null || h.addEventListener("mouseenter", O), (x = r.value) == null || x.addEventListener("mouseleave", S)), tr(l, ($) => {
|
|
1930
1930
|
if (a.value && n === "click") {
|
|
1931
|
-
const T =
|
|
1931
|
+
const T = $.target;
|
|
1932
1932
|
D(T) || m();
|
|
1933
1933
|
}
|
|
1934
1934
|
});
|
|
1935
1935
|
}), Zt(() => {
|
|
1936
|
-
var y, h,
|
|
1937
|
-
v(), n === "click" && ((y = r.value) == null || y.removeEventListener("click", s)), n === "hover" && ((h = r.value) == null || h.removeEventListener("mouseenter", O), (
|
|
1936
|
+
var y, h, x;
|
|
1937
|
+
v(), n === "click" && ((y = r.value) == null || y.removeEventListener("click", s)), n === "hover" && ((h = r.value) == null || h.removeEventListener("mouseenter", O), (x = r.value) == null || x.removeEventListener("mouseleave", S));
|
|
1938
1938
|
}), le(
|
|
1939
1939
|
() => e,
|
|
1940
1940
|
() => {
|
|
@@ -1988,7 +1988,7 @@ const co = { class: "tooltip-wrapper" }, uo = /* @__PURE__ */ J({
|
|
|
1988
1988
|
}), zt(() => {
|
|
1989
1989
|
a();
|
|
1990
1990
|
}), (d, b) => (k(), _("div", co, [
|
|
1991
|
-
|
|
1991
|
+
M("span", {
|
|
1992
1992
|
ref_key: "triggerRef",
|
|
1993
1993
|
ref: r,
|
|
1994
1994
|
class: A(["tooltip-trigger", d.triggerClass])
|
|
@@ -2002,14 +2002,14 @@ const co = { class: "tooltip-wrapper" }, uo = /* @__PURE__ */ J({
|
|
|
2002
2002
|
default: Ee(() => [
|
|
2003
2003
|
w(u) ? (k(), _("div", {
|
|
2004
2004
|
key: 0,
|
|
2005
|
-
style:
|
|
2005
|
+
style: xt(d.styles),
|
|
2006
2006
|
ref_key: "containerRef",
|
|
2007
2007
|
ref: l,
|
|
2008
2008
|
class: A(["tooltip-container tooltip-container--open", d.className]),
|
|
2009
2009
|
role: "tooltip",
|
|
2010
2010
|
"aria-hidden": "true"
|
|
2011
2011
|
}, [
|
|
2012
|
-
|
|
2012
|
+
M("div", {
|
|
2013
2013
|
class: A(["tooltip-content", d.contentClass])
|
|
2014
2014
|
}, [
|
|
2015
2015
|
Fe(d.$slots, "default", je(Ne({ isOpen: w(u) })), () => [
|
|
@@ -2026,14 +2026,17 @@ const co = { class: "tooltip-wrapper" }, uo = /* @__PURE__ */ J({
|
|
|
2026
2026
|
})) : U("", !0)
|
|
2027
2027
|
]));
|
|
2028
2028
|
}
|
|
2029
|
-
}), fo = {
|
|
2029
|
+
}), fo = { style: {
|
|
2030
|
+
width: "100%"
|
|
2031
|
+
} }, vo = /* @__PURE__ */ J({
|
|
2030
2032
|
__name: "TimePicker",
|
|
2031
2033
|
props: {
|
|
2032
2034
|
modelValue: { default: null },
|
|
2033
2035
|
timeFormat: { default: "12h" },
|
|
2034
2036
|
triggerClass: {},
|
|
2035
2037
|
style: {},
|
|
2036
|
-
className: {}
|
|
2038
|
+
className: {},
|
|
2039
|
+
offset: { default: () => [0, 10] }
|
|
2037
2040
|
},
|
|
2038
2041
|
emits: ["update:modelValue"],
|
|
2039
2042
|
setup(e, { emit: t }) {
|
|
@@ -2066,8 +2069,13 @@ const co = { class: "tooltip-wrapper" }, uo = /* @__PURE__ */ J({
|
|
|
2066
2069
|
placement: "bottom-start",
|
|
2067
2070
|
onOnShow: m,
|
|
2068
2071
|
teleport: "",
|
|
2069
|
-
|
|
2070
|
-
|
|
2072
|
+
offset: s.offset,
|
|
2073
|
+
triggerClass: "w-full",
|
|
2074
|
+
"class-name": `v-time-picker ${s.className}`,
|
|
2075
|
+
styles: s.style,
|
|
2076
|
+
style: {
|
|
2077
|
+
width: "100%"
|
|
2078
|
+
}
|
|
2071
2079
|
}, {
|
|
2072
2080
|
trigger: Ee(() => [
|
|
2073
2081
|
Ae(Kn, {
|
|
@@ -2097,7 +2105,7 @@ const co = { class: "tooltip-wrapper" }, uo = /* @__PURE__ */ J({
|
|
|
2097
2105
|
}, null, 8, ["selected-hour", "selected-minute", "selected-period", "is12-hour"])
|
|
2098
2106
|
]),
|
|
2099
2107
|
_: 3
|
|
2100
|
-
}, 8, ["class-name", "styles"])
|
|
2108
|
+
}, 8, ["offset", "class-name", "styles"])
|
|
2101
2109
|
]));
|
|
2102
2110
|
}
|
|
2103
2111
|
});
|
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}
|