@stenajs-webui/calendar 21.35.0 → 21.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +244 -244
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/index.es.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".
|
|
2
|
-
import { jsx as o, jsxs as N, Fragment as
|
|
3
|
-
import { Box as Y, Text as
|
|
4
|
-
import { FlatButton as tt, stenaAngleDown as
|
|
5
|
-
import { isAfter as V, eachDayOfInterval as Ze, isSameDay as P, endOfMonth as Qe, startOfMonth as Xe, min as xn, addDays as v, max as _n, subDays as gt, format as U, getISOWeek as
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("._calendar_hknk7_1{--swui-calendar-day-width: 48px;--swui-calendar-day-height: 48px;--swui-calendar-day-border-radius: var(--swui-max-border-radius);--swui-calendar-week-number-bg-color: transparent;--swui-calendar-week-number-text-color: var(--lhds-color-ui-500);--swui-calendar-week-number-clickable-text-color: var(--lhds-color-ui-500);--swui-calendar-week-day-text-color: var(--lhds-color-ui-500);--swui-calendar-week-day-clickable-text-color: var(--lhds-color-ui-500);--swui-calendar-wrapper-selected-border: var(--modern-blue);--swui-calendar-wrapper-selected-background: var(--modern-blue);--swui-calendar-wrapper-range-border: var(--lhds-color-blue-100);--swui-calendar-wrapper-range-background: var(--lhds-color-blue-100);--swui-calendar-wrapper-today-border: var(--lhds-color-ui-200);--swui-calendar-wrapper-today-background: var(--lhds-color-ui-50);--swui-calendar-text-selected-color: #fff;--swui-calendar-text-disabled-color: var(--swui-text-disabled-color);--swui-calendar-text-in-other-month-color: var(--swui-text-disabled-color)}._calendar_hknk7_1 table{border-spacing:0 4px}._calendar_hknk7_1 tr td:last-child{border-top-right-radius:var(--swui-calendar-day-border-radius);border-bottom-right-radius:var(--swui-calendar-day-border-radius)}._calendar_hknk7_1._weekNumberVisible_hknk7_41 tr td:nth-child(2),._calendar_hknk7_1:not(._weekNumberVisible_hknk7_41) tr td:first-child{border-top-left-radius:var(--swui-calendar-day-border-radius);border-bottom-left-radius:var(--swui-calendar-day-border-radius)}._calendar_hknk7_1 td{padding:0;width:var(--swui-calendar-day-width);height:var(--swui-calendar-day-height)}._timePicker_1w05d_1{overflow:hidden;width:180px}._timePickerColumn_1w05d_6{overflow-y:hidden;flex:1}._timePickerColumn_1w05d_6:hover{overflow-y:scroll}._travelDateCell_1t2af_1{position:relative}._travelDateCell_1t2af_1._smaller_1t2af_4{width:40px;height:40px}._travelDateCell_1t2af_1._small_1t2af_4{width:44px;height:44px}._travelDateCell_1t2af_1._medium_1t2af_14{width:48px;height:48px}._travelDateCell_1t2af_1._large_1t2af_19{width:56px;height:28px}._travelDateCell_1t2af_1{border-radius:var(--swui-max-border-radius)}._travelDateCell_1t2af_1:focus{outline:none}._travelDateCell_1t2af_1:focus-visible ._outline_1t2af_31{outline:var(--swui-focus-outline);outline-width:var(--swui-focus-outline-width);background:transparent;position:absolute;border-radius:var(--swui-max-border-radius);top:0;bottom:0;left:0;right:0;z-index:10}._travelDateCell_1t2af_1:focus-visible ._contentWrapper_1t2af_44._contentWrapper_1t2af_44._contentWrapper_1t2af_44{border-color:transparent}._travelDateCell_1t2af_1 ._contentWrapper_1t2af_44{cursor:pointer;border-radius:var(--swui-max-border-radius);border-width:2px;border-style:solid;border-color:transparent;background:transparent;position:absolute;display:flex;align-items:center;justify-content:center;left:0;right:0;top:0;bottom:0}._travelDateCell_1t2af_1 ._contentWrapper_1t2af_44._disabled_1t2af_65{cursor:not-allowed}._travelDateCell_1t2af_1 ._contentWrapper_1t2af_44._isToday_1t2af_68{border-color:var(--lhds-color-ui-400)}._travelDateCell_1t2af_1 ._contentWrapper_1t2af_44._isSelectionStart_1t2af_72,._travelDateCell_1t2af_1 ._contentWrapper_1t2af_44._isSelectionEnd_1t2af_73{border-color:var(--selection-background-color)}._travelDateCell_1t2af_1 ._contentWrapper_1t2af_44._isSelectionStart_1t2af_72{background:var(--selection-background-color)}._travelDateCell_1t2af_1 ._contentWrapper_1t2af_44._isSelectionStart_1t2af_72 span{color:#fff}._travelDateCell_1t2af_1 ._contentWrapper_1t2af_44._isSelectionEnd_1t2af_73:not(._isSelectionStart_1t2af_72){background:#fff}._travelDateCell_1t2af_1 ._contentWrapper_1t2af_44._hover_1t2af_88{border-color:var(--selection-background-color)}._travelDateCell_1t2af_1 ._contentWrapper_1t2af_44._hover_1t2af_88._startSelected_1t2af_91:not(._endSelected_1t2af_91):not(._isSelectionStart_1t2af_72){background:#fff}._travelDateCell_1t2af_1 ._contentWrapper_1t2af_44._hover_1t2af_88._startSelected_1t2af_91:not(._endSelected_1t2af_91):not(._isSelectionStart_1t2af_72) span{color:var(--swui-text-primary-color)}._travelDateCellBackground_45q5d_1._smaller_45q5d_2{width:20px;height:40px}._travelDateCellBackground_45q5d_1._small_45q5d_2{width:22px;height:44px}._travelDateCellBackground_45q5d_1._medium_45q5d_12{width:24px;height:48px}._travelDateCellBackground_45q5d_1._large_45q5d_17{width:28px;height:56px}._travelCalendar_ib2y4_1{border-spacing:0 4px;width:-webkit-fit-content;width:fit-content;--selection-background-color: var( --travel-calendar-selection-background-color, var(--modern-blue) );--selection-range-background-color: var( --travel-calendar-selection-range-background-color, var(--himmel) )}._travelCalendar_ib2y4_1 td{padding:0}._travelDateRangeInput_1j7rp_1 ._overlay_1j7rp_2{transition:opacity var(--swui-animation-time-fast) ease-in-out;opacity:1}._travelDateRangeInput_1j7rp_1 ._overlay_1j7rp_2:not(._travelDateRangeInput_1j7rp_1 ._overlay_1j7rp_2._calendarVisible_1j7rp_6){opacity:0}._travelDateInput_hmfbf_1 ._overlay_hmfbf_2{transition:opacity var(--swui-animation-time-fast) ease-in-out;opacity:1}._travelDateInput_hmfbf_1 ._overlay_hmfbf_2:not(._travelDateInput_hmfbf_1 ._overlay_hmfbf_2._calendarVisible_hmfbf_6){opacity:0}")),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
+
import { jsx as o, jsxs as N, Fragment as fe } from "react/jsx-runtime";
|
|
3
|
+
import { Box as Y, Text as yt, Clickable as Ke, Row as $, Spacing as bn, useToday as Jt, Column as Q, Heading as Pt, exhaustSwitchCase as he, Space as St, Indent as At, SeparatorLine as wn, parseIntElseUndefined as Se, useBoolean as ce, useDelayedFalse as Te, useOnClickOutside as qe } from "@stenajs-webui/core";
|
|
4
|
+
import { FlatButton as tt, stenaAngleDown as me, PrimaryButton as It, stenaAngleLeft as yn, stenaAngleRight as Mn, SecondaryButton as ft, stenaAngleLeftDouble as kn, stenaArrowLeft as Zt, stenaArrowRight as Ht, stenaAngleRightDouble as Sn, TextInputButton as Tn, stenaCalendar as Nt, Icon as ze, stenaArrowWideRight as Rn, stenaClock as Ge, Label as In, stenaAngleUp as En, CardBody as Je } from "@stenajs-webui/elements";
|
|
5
|
+
import { isAfter as V, eachDayOfInterval as Ze, isSameDay as P, endOfMonth as Qe, startOfMonth as Xe, min as xn, addDays as v, max as _n, subDays as gt, format as U, getISOWeek as ge, getDate as Qt, startOfWeek as Kt, addWeeks as An, getMonth as pt, getWeek as ve, getYear as Lt, getISODay as Nn, addHours as Ve, isBefore as ct, parse as bt, addMonths as $t, isSameMonth as ot, addYears as Ln, subMonths as pe, subYears as Bn, setWeek as Yn, isValid as Pn, isSameYear as Hn } from "date-fns";
|
|
6
6
|
import { enGB as qt, enUS as $n, enIE as Wn, deAT as On, nlBE as Un, nl as Re, de as Ie, nb as Ee, sv as xe, da as _e, lv as Ae, lt as Ne, it as Le, et as Be, fi as Ye, cs as Pe, es as He, fr as $e, pl as We } from "date-fns/locale";
|
|
7
|
-
import { last as Fn, startCase as Bt, chunk as tn, debounce as Cn, padStart as jn, range as
|
|
8
|
-
import * as
|
|
9
|
-
import { useMemo as R, useRef as F, useEffect as nt, useCallback as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
7
|
+
import { last as Fn, startCase as Bt, chunk as tn, debounce as Cn, padStart as jn, range as De } from "lodash-es";
|
|
8
|
+
import * as be from "react";
|
|
9
|
+
import { useMemo as R, useRef as F, useEffect as nt, useCallback as y, useId as we, useState as I, useLayoutEffect as en } from "react";
|
|
10
|
+
import wt from "classnames";
|
|
11
|
+
import ee from "@emotion/styled";
|
|
12
12
|
import { TextInput as mt, TextInputBox as Kn, LabelledTextInput as qn } from "@stenajs-webui/forms";
|
|
13
13
|
import { ControlledPopover as Wt } from "@stenajs-webui/tooltip";
|
|
14
|
-
import { cssColor as
|
|
14
|
+
import { cssColor as ye } from "@stenajs-webui/theme";
|
|
15
15
|
import { useMaskedInput as zn } from "@stenajs-webui/input-mask";
|
|
16
16
|
const at = {
|
|
17
17
|
yearAndMonth: "yyyy-MM",
|
|
@@ -49,7 +49,7 @@ const at = {
|
|
|
49
49
|
_n([e, gt(r, 1)]),
|
|
50
50
|
xn([n, v(s, 1)])
|
|
51
51
|
) : Yt(t, e, n), ri = (t, e, n) => {
|
|
52
|
-
const r = U(e, at.yearAndMonth), s =
|
|
52
|
+
const r = U(e, at.yearAndMonth), s = ge(e), i = Qt(e);
|
|
53
53
|
return {
|
|
54
54
|
...t,
|
|
55
55
|
[r]: {
|
|
@@ -64,7 +64,7 @@ const at = {
|
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
}, si = (t, e, n) => {
|
|
67
|
-
const r = U(e, at.yearAndMonth), s =
|
|
67
|
+
const r = U(e, at.yearAndMonth), s = ge(e), i = Qt(e);
|
|
68
68
|
return {
|
|
69
69
|
...t,
|
|
70
70
|
[r]: {
|
|
@@ -81,7 +81,7 @@ const at = {
|
|
|
81
81
|
}
|
|
82
82
|
};
|
|
83
83
|
}, ht = (t, e, n) => {
|
|
84
|
-
const r = e.getMonth() + 1, s = `${e.getFullYear()}-${r < 10 ? "0" : ""}${r}`, i =
|
|
84
|
+
const r = e.getMonth() + 1, s = `${e.getFullYear()}-${r < 10 ? "0" : ""}${r}`, i = ge(e), c = Qt(e), a = t && t[s] && t[s][i] && t[s][i][c];
|
|
85
85
|
return {
|
|
86
86
|
...t,
|
|
87
87
|
[s]: {
|
|
@@ -125,9 +125,9 @@ var Xn = /* @__PURE__ */ ((t) => (t[t.JANUARY = 0] = "JANUARY", t[t.FEBRUARY = 1
|
|
|
125
125
|
const Oe = (t, e, n, r) => {
|
|
126
126
|
const s = [];
|
|
127
127
|
for (let i = 0; i < n; i++)
|
|
128
|
-
s.push(
|
|
128
|
+
s.push(Xt(t, e + i, r));
|
|
129
129
|
return s;
|
|
130
|
-
},
|
|
130
|
+
}, Xt = (t, e, n) => {
|
|
131
131
|
if (isNaN(t) || isNaN(e))
|
|
132
132
|
throw new Error("getMonthInYear() received NaN.");
|
|
133
133
|
const r = t + Math.floor(e / 12), s = e % 12, i = new Date(r, s, 1);
|
|
@@ -180,7 +180,7 @@ const Oe = (t, e, n, r) => {
|
|
|
180
180
|
}, er = (t, e) => Ze({
|
|
181
181
|
start: t,
|
|
182
182
|
end: v(t, 6)
|
|
183
|
-
}).map((n) => tr(n, e)), nr = (t, e) => e > 11 ? { year: t + Math.floor(e / 12), month: e % 12 } : e < 0 ? { year: t + Math.floor(e / 12), month: 12 + e % 12 } : { year: t, month: e }, rr = "
|
|
183
|
+
}).map((n) => tr(n, e)), nr = (t, e) => e > 11 ? { year: t + Math.floor(e / 12), month: e % 12 } : e < 0 ? { year: t + Math.floor(e / 12), month: 12 + e % 12 } : { year: t, month: e }, rr = "_calendar_hknk7_1", sr = "_weekNumberVisible_hknk7_41", Ue = {
|
|
184
184
|
calendar: rr,
|
|
185
185
|
weekNumberVisible: sr
|
|
186
186
|
}, ir = (t, e, n) => !!(e && e.indexOf(n) >= 0 || t && t.highlights && t.highlights.indexOf(n) >= 0), ut = (t, e, n, r, s) => {
|
|
@@ -336,7 +336,7 @@ const Oe = (t, e, n, r) => {
|
|
|
336
336
|
justifyContent: "center",
|
|
337
337
|
alignItems: "center",
|
|
338
338
|
children: /* @__PURE__ */ o(
|
|
339
|
-
|
|
339
|
+
yt,
|
|
340
340
|
{
|
|
341
341
|
size: "small",
|
|
342
342
|
color: t ? n.WeekDay.clickableTextColor : n.WeekDay.textColor,
|
|
@@ -373,7 +373,7 @@ const Oe = (t, e, n, r) => {
|
|
|
373
373
|
justifyContent: "center",
|
|
374
374
|
alignItems: "center",
|
|
375
375
|
children: /* @__PURE__ */ o(
|
|
376
|
-
|
|
376
|
+
yt,
|
|
377
377
|
{
|
|
378
378
|
...a.CalendarDay.textProps && a.CalendarDay.textProps(
|
|
379
379
|
d,
|
|
@@ -387,7 +387,7 @@ const Oe = (t, e, n, r) => {
|
|
|
387
387
|
}
|
|
388
388
|
)
|
|
389
389
|
}
|
|
390
|
-
), m =
|
|
390
|
+
), m = ee.td({
|
|
391
391
|
...a.CalendarDay.tdStyle && a.CalendarDay.tdStyle(
|
|
392
392
|
d,
|
|
393
393
|
s,
|
|
@@ -396,7 +396,7 @@ const Oe = (t, e, n, r) => {
|
|
|
396
396
|
r,
|
|
397
397
|
i
|
|
398
398
|
)
|
|
399
|
-
}), f =
|
|
399
|
+
}), f = ee.div({
|
|
400
400
|
...a.CalendarDay.innerWrapperStyle && a.CalendarDay.innerWrapperStyle(
|
|
401
401
|
d,
|
|
402
402
|
s,
|
|
@@ -407,7 +407,7 @@ const Oe = (t, e, n, r) => {
|
|
|
407
407
|
),
|
|
408
408
|
width: "100%",
|
|
409
409
|
height: "100%"
|
|
410
|
-
}), h =
|
|
410
|
+
}), h = ee.div({
|
|
411
411
|
...a.CalendarDay.cellWrapperStyle && a.CalendarDay.cellWrapperStyle(
|
|
412
412
|
d,
|
|
413
413
|
s,
|
|
@@ -424,7 +424,7 @@ const Oe = (t, e, n, r) => {
|
|
|
424
424
|
m,
|
|
425
425
|
{
|
|
426
426
|
onClick: g ? void 0 : (b) => c == null ? void 0 : c(e, i, b),
|
|
427
|
-
children: /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o(h, { children: e.month === r.monthInYear && /* @__PURE__ */ N(
|
|
427
|
+
children: /* @__PURE__ */ o(f, { children: /* @__PURE__ */ o(h, { children: e.month === r.monthInYear && /* @__PURE__ */ N(fe, { children: [
|
|
428
428
|
l && /* @__PURE__ */ o(
|
|
429
429
|
l,
|
|
430
430
|
{
|
|
@@ -464,7 +464,7 @@ const Oe = (t, e, n, r) => {
|
|
|
464
464
|
children: [
|
|
465
465
|
r && /* @__PURE__ */ o(Y, { position: "absolute", children: r }),
|
|
466
466
|
/* @__PURE__ */ o(Y, { position: "absolute", children: /* @__PURE__ */ N(
|
|
467
|
-
|
|
467
|
+
yt,
|
|
468
468
|
{
|
|
469
469
|
color: t ? e.WeekNumber.clickableTextColor : e.WeekNumber.textColor,
|
|
470
470
|
children: [
|
|
@@ -523,9 +523,9 @@ function hr({
|
|
|
523
523
|
theme: h = Mt,
|
|
524
524
|
extraDayContent: g,
|
|
525
525
|
defaultHighlights: b,
|
|
526
|
-
showWeekNumber:
|
|
526
|
+
showWeekNumber: w
|
|
527
527
|
}) {
|
|
528
|
-
return /* @__PURE__ */ o(
|
|
528
|
+
return /* @__PURE__ */ o(fe, { children: /* @__PURE__ */ N(Y, { alignItems: "stretch", children: [
|
|
529
529
|
/* @__PURE__ */ N(
|
|
530
530
|
$,
|
|
531
531
|
{
|
|
@@ -537,9 +537,9 @@ function hr({
|
|
|
537
537
|
{
|
|
538
538
|
onClick: () => d(t),
|
|
539
539
|
label: t.name + " " + String(t.year),
|
|
540
|
-
rightIcon:
|
|
540
|
+
rightIcon: me
|
|
541
541
|
}
|
|
542
|
-
) : /* @__PURE__ */ N(
|
|
542
|
+
) : /* @__PURE__ */ N(yt, { whiteSpace: "nowrap", children: [
|
|
543
543
|
t.name,
|
|
544
544
|
" ",
|
|
545
545
|
t.year
|
|
@@ -550,7 +550,7 @@ function hr({
|
|
|
550
550
|
),
|
|
551
551
|
/* @__PURE__ */ o("table", { children: /* @__PURE__ */ N("tbody", { children: [
|
|
552
552
|
/* @__PURE__ */ N("tr", { children: [
|
|
553
|
-
|
|
553
|
+
w && /* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(Y, { width: h.width, height: h.height }) }),
|
|
554
554
|
t.weeks[0].days.map((p) => /* @__PURE__ */ o("td", { children: m ? m(p.name, h, l) : /* @__PURE__ */ o(
|
|
555
555
|
ar,
|
|
556
556
|
{
|
|
@@ -561,7 +561,7 @@ function hr({
|
|
|
561
561
|
) }, p.name))
|
|
562
562
|
] }),
|
|
563
563
|
t.weeks.map((p) => /* @__PURE__ */ N("tr", { children: [
|
|
564
|
-
|
|
564
|
+
w && /* @__PURE__ */ o("td", { children: u ? u(p, h, a) : /* @__PURE__ */ o(
|
|
565
565
|
dr,
|
|
566
566
|
{
|
|
567
567
|
week: p,
|
|
@@ -608,7 +608,7 @@ function mr({
|
|
|
608
608
|
extraDayContent: h,
|
|
609
609
|
defaultHighlights: g,
|
|
610
610
|
showWeekNumber: b,
|
|
611
|
-
theme:
|
|
611
|
+
theme: w = Mt
|
|
612
612
|
}) {
|
|
613
613
|
const p = R(
|
|
614
614
|
() => s ? bt(s, "yyyy-MM-dd", /* @__PURE__ */ new Date()) : void 0,
|
|
@@ -620,7 +620,7 @@ function mr({
|
|
|
620
620
|
return /* @__PURE__ */ o(
|
|
621
621
|
"div",
|
|
622
622
|
{
|
|
623
|
-
className:
|
|
623
|
+
className: wt(
|
|
624
624
|
Ue.calendar,
|
|
625
625
|
b && Ue.weekNumberVisible
|
|
626
626
|
),
|
|
@@ -635,7 +635,7 @@ function mr({
|
|
|
635
635
|
onClickWeekDay: a,
|
|
636
636
|
onClickWeek: l,
|
|
637
637
|
onClickMonth: d,
|
|
638
|
-
theme:
|
|
638
|
+
theme: w,
|
|
639
639
|
renderWeekNumber: m,
|
|
640
640
|
renderWeekDay: u,
|
|
641
641
|
headerRightContent: f,
|
|
@@ -650,7 +650,7 @@ function mr({
|
|
|
650
650
|
}
|
|
651
651
|
);
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function oe(t) {
|
|
654
654
|
const e = gr(t.year, t.month, t.date), { year: n, month: r } = nr(
|
|
655
655
|
e.year,
|
|
656
656
|
e.month
|
|
@@ -691,7 +691,7 @@ const gr = (t, e, n) => {
|
|
|
691
691
|
month: pt(r),
|
|
692
692
|
year: Lt(r)
|
|
693
693
|
};
|
|
694
|
-
}, pr = (t, e, n, r, s) => r == null ? [[
|
|
694
|
+
}, pr = (t, e, n, r, s) => r == null ? [[Xt(t, e, n)]] : s == null ? [Oe(t, e, r, n)] : tn(Oe(t, e, r, n), s), sn = (t, e) => `${t.row}-${t.column}-${e}`, Dr = (t, e, n, r) => {
|
|
695
695
|
let s = e;
|
|
696
696
|
for (let i = 0; i < r; i++) {
|
|
697
697
|
s = br(s, t, r);
|
|
@@ -744,17 +744,17 @@ const gr = (t, e, n) => {
|
|
|
744
744
|
if (Tt[t])
|
|
745
745
|
return t;
|
|
746
746
|
if (e) {
|
|
747
|
-
const r =
|
|
747
|
+
const r = wr(t);
|
|
748
748
|
if (r)
|
|
749
749
|
return r;
|
|
750
750
|
}
|
|
751
751
|
return n;
|
|
752
|
-
}, Rt = (t) => Tt[t],
|
|
752
|
+
}, Rt = (t) => Tt[t], wr = (t) => {
|
|
753
753
|
const [e] = t.split("-"), n = Object.keys(Tt);
|
|
754
754
|
for (const r of n)
|
|
755
755
|
if (r.startsWith(e))
|
|
756
756
|
return r;
|
|
757
|
-
}, ai = () => Tt.sv,
|
|
757
|
+
}, ai = () => Tt.sv, yr = (t) => {
|
|
758
758
|
const e = Object.keys(Tt);
|
|
759
759
|
for (const n of e)
|
|
760
760
|
if (Tt[n].code === t.code)
|
|
@@ -783,16 +783,16 @@ const gr = (t, e, n) => {
|
|
|
783
783
|
var b;
|
|
784
784
|
(b = m.current) == null || b.focus();
|
|
785
785
|
}, []);
|
|
786
|
-
const g =
|
|
786
|
+
const g = y(
|
|
787
787
|
(b) => {
|
|
788
788
|
var p;
|
|
789
|
-
const
|
|
789
|
+
const w = Dr(
|
|
790
790
|
b.key,
|
|
791
791
|
c,
|
|
792
792
|
i,
|
|
793
793
|
4
|
|
794
794
|
);
|
|
795
|
-
|
|
795
|
+
w && ((p = document.getElementById(w)) == null || p.focus());
|
|
796
796
|
},
|
|
797
797
|
[i, c]
|
|
798
798
|
);
|
|
@@ -859,16 +859,16 @@ const gr = (t, e, n) => {
|
|
|
859
859
|
nt(() => {
|
|
860
860
|
m(!0);
|
|
861
861
|
}, []);
|
|
862
|
-
const g =
|
|
862
|
+
const g = y(
|
|
863
863
|
(b) => {
|
|
864
864
|
b.key === "Escape" && (i == null || i(), b.preventDefault(), b.stopPropagation());
|
|
865
865
|
},
|
|
866
866
|
[i]
|
|
867
867
|
);
|
|
868
|
-
return /* @__PURE__ */ o(Q, { gap: 1, maxWidth: Sr(c), onKeyDown: g, children: f.yearOrder.map((b,
|
|
868
|
+
return /* @__PURE__ */ o(Q, { gap: 1, maxWidth: Sr(c), onKeyDown: g, children: f.yearOrder.map((b, w) => {
|
|
869
869
|
const { rows: p } = f.years[b];
|
|
870
|
-
return /* @__PURE__ */ N(
|
|
871
|
-
(
|
|
870
|
+
return /* @__PURE__ */ N(be.Fragment, { children: [
|
|
871
|
+
(w !== 0 || b !== l.getFullYear()) && /* @__PURE__ */ o(Pt, { variant: "h4", children: b }),
|
|
872
872
|
/* @__PURE__ */ o("table", { style: { borderSpacing: "0 8px" }, children: /* @__PURE__ */ o("tbody", { children: p.map((D) => {
|
|
873
873
|
const { columns: M } = f.rows[D];
|
|
874
874
|
return /* @__PURE__ */ o("tr", { children: M.map(({ month: k, position: T }) => /* @__PURE__ */ o("td", { children: /* @__PURE__ */ o(
|
|
@@ -900,7 +900,7 @@ const gr = (t, e, n) => {
|
|
|
900
900
|
case "large":
|
|
901
901
|
return "448px";
|
|
902
902
|
default:
|
|
903
|
-
return
|
|
903
|
+
return he(t, "336px");
|
|
904
904
|
}
|
|
905
905
|
}, Tr = (t) => {
|
|
906
906
|
switch (t) {
|
|
@@ -911,7 +911,7 @@ const gr = (t, e, n) => {
|
|
|
911
911
|
case "large":
|
|
912
912
|
return 4;
|
|
913
913
|
default:
|
|
914
|
-
return
|
|
914
|
+
return he(t, 4);
|
|
915
915
|
}
|
|
916
916
|
}, Rr = (t) => [
|
|
917
917
|
{
|
|
@@ -948,12 +948,12 @@ const gr = (t, e, n) => {
|
|
|
948
948
|
tt,
|
|
949
949
|
{
|
|
950
950
|
size: "small",
|
|
951
|
-
leftIcon:
|
|
951
|
+
leftIcon: yn,
|
|
952
952
|
disabled: e === 0,
|
|
953
953
|
onClick: () => n(e - 1)
|
|
954
954
|
}
|
|
955
955
|
),
|
|
956
|
-
/* @__PURE__ */ o(
|
|
956
|
+
/* @__PURE__ */ o(yt, { children: s.label }),
|
|
957
957
|
/* @__PURE__ */ o(
|
|
958
958
|
tt,
|
|
959
959
|
{
|
|
@@ -967,7 +967,7 @@ const gr = (t, e, n) => {
|
|
|
967
967
|
}
|
|
968
968
|
),
|
|
969
969
|
/* @__PURE__ */ o(St, {}),
|
|
970
|
-
/* @__PURE__ */ o(Q, { alignItems: "center", children: s.presets.map((i) => /* @__PURE__ */ N(
|
|
970
|
+
/* @__PURE__ */ o(Q, { alignItems: "center", children: s.presets.map((i) => /* @__PURE__ */ N(be.Fragment, { children: [
|
|
971
971
|
/* @__PURE__ */ o(
|
|
972
972
|
It,
|
|
973
973
|
{
|
|
@@ -989,20 +989,20 @@ const gr = (t, e, n) => {
|
|
|
989
989
|
...l
|
|
990
990
|
}) {
|
|
991
991
|
const d = R(
|
|
992
|
-
() => e == null ? "en-GB" :
|
|
992
|
+
() => e == null ? "en-GB" : yr(e) ?? "en-GB",
|
|
993
993
|
[e]
|
|
994
|
-
), u = Jt(), m =
|
|
994
|
+
), u = Jt(), m = y(
|
|
995
995
|
(h) => {
|
|
996
996
|
s && s(h), c("calendar");
|
|
997
997
|
},
|
|
998
998
|
[s, c]
|
|
999
|
-
), f =
|
|
999
|
+
), f = y(() => {
|
|
1000
1000
|
c("month");
|
|
1001
1001
|
}, [c]);
|
|
1002
1002
|
switch (i) {
|
|
1003
1003
|
case "calendar":
|
|
1004
1004
|
return /* @__PURE__ */ o(
|
|
1005
|
-
|
|
1005
|
+
oe,
|
|
1006
1006
|
{
|
|
1007
1007
|
...l,
|
|
1008
1008
|
date: n,
|
|
@@ -1041,16 +1041,16 @@ const gr = (t, e, n) => {
|
|
|
1041
1041
|
) });
|
|
1042
1042
|
}
|
|
1043
1043
|
}, xr = (t, e, n, r) => {
|
|
1044
|
-
const s =
|
|
1044
|
+
const s = y(() => {
|
|
1045
1045
|
const l = $t(t, n ?? r ?? 1);
|
|
1046
1046
|
e == null || e(l);
|
|
1047
|
-
}, [e, t, n, r]), i =
|
|
1047
|
+
}, [e, t, n, r]), i = y(() => {
|
|
1048
1048
|
const l = Ln(t, 1);
|
|
1049
1049
|
e == null || e(l);
|
|
1050
|
-
}, [e, t]), c =
|
|
1051
|
-
const l =
|
|
1050
|
+
}, [e, t]), c = y(() => {
|
|
1051
|
+
const l = pe(t, n ?? r ?? 1);
|
|
1052
1052
|
e == null || e(l);
|
|
1053
|
-
}, [e, t, n, r]), a =
|
|
1053
|
+
}, [e, t, n, r]), a = y(() => {
|
|
1054
1054
|
const l = Bn(t, 1);
|
|
1055
1055
|
e == null || e(l);
|
|
1056
1056
|
}, [e, t]);
|
|
@@ -1109,7 +1109,7 @@ function kt({
|
|
|
1109
1109
|
prevMonth: m,
|
|
1110
1110
|
nextYear: f,
|
|
1111
1111
|
prevYear: h,
|
|
1112
|
-
children: /* @__PURE__ */ o(
|
|
1112
|
+
children: /* @__PURE__ */ o(oe, { ...d, theme: e, date: n })
|
|
1113
1113
|
}
|
|
1114
1114
|
);
|
|
1115
1115
|
case "header":
|
|
@@ -1144,7 +1144,7 @@ function kt({
|
|
|
1144
1144
|
}
|
|
1145
1145
|
) });
|
|
1146
1146
|
default:
|
|
1147
|
-
return /* @__PURE__ */ o(
|
|
1147
|
+
return /* @__PURE__ */ o(oe, { ...d, theme: e, date: n });
|
|
1148
1148
|
}
|
|
1149
1149
|
}
|
|
1150
1150
|
const Nr = (t, e) => t || (e || 1) > 1 ? "below" : "header", Lr = (t) => ({
|
|
@@ -1167,7 +1167,7 @@ const Nr = (t, e) => t || (e || 1) > 1 ? "below" : "header", Lr = (t) => ({
|
|
|
1167
1167
|
endDate: t.startDate
|
|
1168
1168
|
} : t, li = (t) => t.startDate && t.endDate ? Lr(
|
|
1169
1169
|
ln(Br(t))
|
|
1170
|
-
) : t, Yr = (t, e, n, r) =>
|
|
1170
|
+
) : t, Yr = (t, e, n, r) => y(
|
|
1171
1171
|
(s) => {
|
|
1172
1172
|
const i = {
|
|
1173
1173
|
startDate: n === "startDate" ? s.date : t == null ? void 0 : t.startDate,
|
|
@@ -1182,8 +1182,8 @@ const Nr = (t, e) => t || (e || 1) > 1 ? "below" : "header", Lr = (t) => ({
|
|
|
1182
1182
|
t == null ? void 0 : t.endDate,
|
|
1183
1183
|
t == null ? void 0 : t.startDate
|
|
1184
1184
|
]
|
|
1185
|
-
),
|
|
1186
|
-
const [e, n] = I("calendar"), r =
|
|
1185
|
+
), vt = (t) => {
|
|
1186
|
+
const [e, n] = I("calendar"), r = y(
|
|
1187
1187
|
(s) => {
|
|
1188
1188
|
n(s), t == null || t(s);
|
|
1189
1189
|
},
|
|
@@ -1202,7 +1202,7 @@ const Nr = (t, e) => t || (e || 1) > 1 ? "below" : "header", Lr = (t) => ({
|
|
|
1202
1202
|
onChangePanel: i,
|
|
1203
1203
|
initialDateInFocus: c
|
|
1204
1204
|
}) => {
|
|
1205
|
-
const { currentPanel: a, setCurrentPanel: l } =
|
|
1205
|
+
const { currentPanel: a, setCurrentPanel: l } = vt(i), [d, u] = I(
|
|
1206
1206
|
() => c ?? /* @__PURE__ */ new Date()
|
|
1207
1207
|
), m = Yr(
|
|
1208
1208
|
e,
|
|
@@ -1246,7 +1246,7 @@ const ui = () => {
|
|
|
1246
1246
|
statePerMonth: n,
|
|
1247
1247
|
onChangePanel: r
|
|
1248
1248
|
}) => {
|
|
1249
|
-
const { currentPanel: s, setCurrentPanel: i } =
|
|
1249
|
+
const { currentPanel: s, setCurrentPanel: i } = vt(r), [c, a] = I(() => e ?? /* @__PURE__ */ new Date()), l = y(
|
|
1250
1250
|
(u) => {
|
|
1251
1251
|
t && t(u.date);
|
|
1252
1252
|
},
|
|
@@ -1278,7 +1278,7 @@ const $r = ({
|
|
|
1278
1278
|
statePerMonth: n,
|
|
1279
1279
|
onChangePanel: r
|
|
1280
1280
|
}) => {
|
|
1281
|
-
const { currentPanel: s, setCurrentPanel: i } =
|
|
1281
|
+
const { currentPanel: s, setCurrentPanel: i } = vt(r), [c, a] = I(() => /* @__PURE__ */ new Date()), l = y(
|
|
1282
1282
|
(u) => {
|
|
1283
1283
|
if (!t)
|
|
1284
1284
|
return;
|
|
@@ -1311,23 +1311,23 @@ const Wr = ({
|
|
|
1311
1311
|
locale: s = qt
|
|
1312
1312
|
}) => {
|
|
1313
1313
|
const [i, c] = I(() => {
|
|
1314
|
-
const h =
|
|
1314
|
+
const h = ne(e, s);
|
|
1315
1315
|
return h ? h.days[0].date : /* @__PURE__ */ new Date();
|
|
1316
|
-
}), { currentPanel: a, setCurrentPanel: l } =
|
|
1316
|
+
}), { currentPanel: a, setCurrentPanel: l } = vt(r), d = y(
|
|
1317
1317
|
(h) => {
|
|
1318
1318
|
t && t(Fe(Me(h.date, s)));
|
|
1319
1319
|
},
|
|
1320
1320
|
[s, t]
|
|
1321
|
-
), u =
|
|
1321
|
+
), u = y(
|
|
1322
1322
|
(h) => {
|
|
1323
1323
|
t && t(Fe(h));
|
|
1324
1324
|
},
|
|
1325
1325
|
[t]
|
|
1326
1326
|
), m = R(() => {
|
|
1327
|
-
const h =
|
|
1327
|
+
const h = ne(e, s);
|
|
1328
1328
|
return h ? Zn(n, h) : n;
|
|
1329
1329
|
}, [e, s, n]), f = R(() => {
|
|
1330
|
-
const h =
|
|
1330
|
+
const h = ne(e, s);
|
|
1331
1331
|
return h ? h.days[0].date : /* @__PURE__ */ new Date();
|
|
1332
1332
|
}, [s, e]);
|
|
1333
1333
|
return {
|
|
@@ -1343,7 +1343,7 @@ const Wr = ({
|
|
|
1343
1343
|
}, Fe = (t) => {
|
|
1344
1344
|
if (t)
|
|
1345
1345
|
return `${t.endYear}-${t.weekNumber}`;
|
|
1346
|
-
},
|
|
1346
|
+
}, ne = (t, e) => {
|
|
1347
1347
|
if (!t)
|
|
1348
1348
|
return;
|
|
1349
1349
|
const n = t.split("-"), r = parseInt(n[1], 10), s = parseInt(n[0], 10), i = /* @__PURE__ */ new Date();
|
|
@@ -1356,9 +1356,9 @@ function hi(t) {
|
|
|
1356
1356
|
return /* @__PURE__ */ o(kt, { ...t, ...e });
|
|
1357
1357
|
}
|
|
1358
1358
|
const Ut = "bottom", Or = (t, e, n) => {
|
|
1359
|
-
const [r, s] = I(n || !1), i =
|
|
1359
|
+
const [r, s] = I(n || !1), i = y(() => (s(!0), !0), [s]), c = y(() => {
|
|
1360
1360
|
s(!1), e && e();
|
|
1361
|
-
}, [s, e]), a =
|
|
1361
|
+
}, [s, e]), a = y(
|
|
1362
1362
|
(l) => {
|
|
1363
1363
|
t && t(l), setTimeout(c, 150);
|
|
1364
1364
|
},
|
|
@@ -1387,12 +1387,12 @@ const Ut = "bottom", Or = (t, e, n) => {
|
|
|
1387
1387
|
portalTarget: h,
|
|
1388
1388
|
zIndex: g
|
|
1389
1389
|
}) => {
|
|
1390
|
-
const { hideCalendar: b, showingCalendar:
|
|
1390
|
+
const { hideCalendar: b, showingCalendar: w, onSelectDate: p, showCalendar: D } = Or(a, c, i);
|
|
1391
1391
|
return /* @__PURE__ */ o(Y, { width: d, children: /* @__PURE__ */ o(
|
|
1392
1392
|
Wt,
|
|
1393
1393
|
{
|
|
1394
1394
|
hideArrow: !0,
|
|
1395
|
-
open:
|
|
1395
|
+
open: w,
|
|
1396
1396
|
onRequestClose: b,
|
|
1397
1397
|
appendTo: h,
|
|
1398
1398
|
zIndex: g,
|
|
@@ -1427,9 +1427,9 @@ const Ut = "bottom", Or = (t, e, n) => {
|
|
|
1427
1427
|
}
|
|
1428
1428
|
) });
|
|
1429
1429
|
}, Ur = (t, e) => {
|
|
1430
|
-
const n = F(null), r = F(null), [s, i] = I(!1), [c, a] = I(void 0), l =
|
|
1430
|
+
const n = F(null), r = F(null), [s, i] = I(!1), [c, a] = I(void 0), l = y(() => (a("startDate"), i(!0), !0), [a, i]), d = y(() => (a("endDate"), i(!0), !0), [a, i]), u = y(() => {
|
|
1431
1431
|
i(!1);
|
|
1432
|
-
}, [i]), m =
|
|
1432
|
+
}, [i]), m = y(
|
|
1433
1433
|
(h) => {
|
|
1434
1434
|
var g, b;
|
|
1435
1435
|
c === "startDate" ? (e == null || e({
|
|
@@ -1475,7 +1475,7 @@ function gi({
|
|
|
1475
1475
|
}) {
|
|
1476
1476
|
const [h, g] = I("calendar"), {
|
|
1477
1477
|
hideCalendar: b,
|
|
1478
|
-
showCalendarEndDate:
|
|
1478
|
+
showCalendarEndDate: w,
|
|
1479
1479
|
showCalendarStartDate: p,
|
|
1480
1480
|
showingCalendar: D,
|
|
1481
1481
|
focusedInput: M,
|
|
@@ -1515,7 +1515,7 @@ function gi({
|
|
|
1515
1515
|
ze,
|
|
1516
1516
|
{
|
|
1517
1517
|
icon: Rn,
|
|
1518
|
-
color:
|
|
1518
|
+
color: ye("--lhds-color-ui-500"),
|
|
1519
1519
|
size: 14
|
|
1520
1520
|
}
|
|
1521
1521
|
),
|
|
@@ -1524,7 +1524,7 @@ function gi({
|
|
|
1524
1524
|
mt,
|
|
1525
1525
|
{
|
|
1526
1526
|
iconLeft: Nt,
|
|
1527
|
-
onFocus:
|
|
1527
|
+
onFocus: w,
|
|
1528
1528
|
value: r != null && r.endDate ? U(r.endDate, t) : "",
|
|
1529
1529
|
placeholder: n,
|
|
1530
1530
|
width: i,
|
|
@@ -1574,25 +1574,25 @@ const pi = ({
|
|
|
1574
1574
|
zIndex: g,
|
|
1575
1575
|
...b
|
|
1576
1576
|
}) => {
|
|
1577
|
-
const [
|
|
1578
|
-
p(!
|
|
1579
|
-
}, [p,
|
|
1577
|
+
const [w, p] = I(!1), D = y(() => {
|
|
1578
|
+
p(!w);
|
|
1579
|
+
}, [p, w]), M = y(() => {
|
|
1580
1580
|
p(!1);
|
|
1581
|
-
}, [p]), k =
|
|
1581
|
+
}, [p]), k = y(
|
|
1582
1582
|
(A) => {
|
|
1583
1583
|
s && s(A);
|
|
1584
1584
|
},
|
|
1585
1585
|
[s]
|
|
1586
|
-
), T =
|
|
1586
|
+
), T = y(
|
|
1587
1587
|
(A) => {
|
|
1588
|
-
A && (k(U(A, n)), e && setTimeout(() => p(!
|
|
1588
|
+
A && (k(U(A, n)), e && setTimeout(() => p(!w), 200));
|
|
1589
1589
|
},
|
|
1590
1590
|
[
|
|
1591
1591
|
k,
|
|
1592
1592
|
n,
|
|
1593
1593
|
e,
|
|
1594
1594
|
p,
|
|
1595
|
-
|
|
1595
|
+
w
|
|
1596
1596
|
]
|
|
1597
1597
|
), L = !!c && !/^[-/\\.0-9]+$/.test(c), _ = !!c && Pn(bt(c, n, /* @__PURE__ */ new Date())), S = !!c && c.length >= n.length && !_ || L;
|
|
1598
1598
|
return /* @__PURE__ */ o(Y, { width: a, children: /* @__PURE__ */ o(
|
|
@@ -1626,7 +1626,7 @@ const pi = ({
|
|
|
1626
1626
|
}
|
|
1627
1627
|
),
|
|
1628
1628
|
hideArrow: !0,
|
|
1629
|
-
open:
|
|
1629
|
+
open: w,
|
|
1630
1630
|
placement: Ut,
|
|
1631
1631
|
onRequestClose: M,
|
|
1632
1632
|
children: /* @__PURE__ */ o(
|
|
@@ -1675,7 +1675,7 @@ const pi = ({
|
|
|
1675
1675
|
throw new Error("Invalid minute string");
|
|
1676
1676
|
}
|
|
1677
1677
|
}, Fr = (t) => {
|
|
1678
|
-
if (!
|
|
1678
|
+
if (!ae(t))
|
|
1679
1679
|
return { time: t, success: !1 };
|
|
1680
1680
|
const e = t && t.split(/-|:|,|;|[/]|[.]| /);
|
|
1681
1681
|
if (e && e.length === 2)
|
|
@@ -1709,7 +1709,7 @@ const pi = ({
|
|
|
1709
1709
|
}
|
|
1710
1710
|
}
|
|
1711
1711
|
return { time: t, success: !1 };
|
|
1712
|
-
},
|
|
1712
|
+
}, ae = (t) => t ? /^[-:.,/; 0-9]+$/.test(t) : !0, Di = ({
|
|
1713
1713
|
onValueChange: t,
|
|
1714
1714
|
showPlaceholder: e = !0,
|
|
1715
1715
|
useIcon: n = !0,
|
|
@@ -1718,14 +1718,14 @@ const pi = ({
|
|
|
1718
1718
|
variant: i,
|
|
1719
1719
|
...c
|
|
1720
1720
|
}) => {
|
|
1721
|
-
const [a, l] = I(() =>
|
|
1721
|
+
const [a, l] = I(() => ae(r)), d = "hh:mm", u = y(() => {
|
|
1722
1722
|
if (r) {
|
|
1723
1723
|
const f = Fr(r);
|
|
1724
1724
|
l(f.success), f.success && t && t(f.time);
|
|
1725
1725
|
}
|
|
1726
|
-
}, [r, t, l]), m =
|
|
1726
|
+
}, [r, t, l]), m = y(
|
|
1727
1727
|
(f) => {
|
|
1728
|
-
const h = f.target.value, g =
|
|
1728
|
+
const h = f.target.value, g = ae(h);
|
|
1729
1729
|
l(g && h.length <= d.length), t && t(h);
|
|
1730
1730
|
},
|
|
1731
1731
|
[t, l]
|
|
@@ -1761,7 +1761,7 @@ const pi = ({
|
|
|
1761
1761
|
valueLeft: h,
|
|
1762
1762
|
valueRight: g,
|
|
1763
1763
|
minLeft: b,
|
|
1764
|
-
maxLeft:
|
|
1764
|
+
maxLeft: w,
|
|
1765
1765
|
minRight: p,
|
|
1766
1766
|
maxRight: D,
|
|
1767
1767
|
onClickLeft: M,
|
|
@@ -1788,22 +1788,22 @@ const pi = ({
|
|
|
1788
1788
|
B === 0 && (O == null || O());
|
|
1789
1789
|
}, 10),
|
|
1790
1790
|
[O]
|
|
1791
|
-
), lt =
|
|
1791
|
+
), lt = y(
|
|
1792
1792
|
(B) => {
|
|
1793
1793
|
W.current++, K(W.current), S && S(B);
|
|
1794
1794
|
},
|
|
1795
1795
|
[S, W, K]
|
|
1796
|
-
), rt =
|
|
1796
|
+
), rt = y(
|
|
1797
1797
|
(B) => {
|
|
1798
1798
|
W.current++, K(W.current), A && A(B);
|
|
1799
1799
|
},
|
|
1800
1800
|
[A, W, K]
|
|
1801
|
-
), st =
|
|
1801
|
+
), st = y(
|
|
1802
1802
|
(B) => {
|
|
1803
1803
|
W.current--, K(W.current), _ && _(B);
|
|
1804
1804
|
},
|
|
1805
1805
|
[_, W, K]
|
|
1806
|
-
), j =
|
|
1806
|
+
), j = y(
|
|
1807
1807
|
(B) => {
|
|
1808
1808
|
W.current--, K(W.current), E && E(B);
|
|
1809
1809
|
},
|
|
@@ -1825,12 +1825,12 @@ const pi = ({
|
|
|
1825
1825
|
size: "small"
|
|
1826
1826
|
}
|
|
1827
1827
|
) }),
|
|
1828
|
-
z ? /* @__PURE__ */ N(
|
|
1829
|
-
/* @__PURE__ */ o($, { height: "22px", children: /* @__PURE__ */ o(
|
|
1828
|
+
z ? /* @__PURE__ */ N(fe, { children: [
|
|
1829
|
+
/* @__PURE__ */ o($, { height: "22px", children: /* @__PURE__ */ o(wn, { vertical: !0 }) }),
|
|
1830
1830
|
/* @__PURE__ */ o(At, { num: 0.5, children: /* @__PURE__ */ o(
|
|
1831
1831
|
tt,
|
|
1832
1832
|
{
|
|
1833
|
-
leftIcon:
|
|
1833
|
+
leftIcon: me,
|
|
1834
1834
|
onClick: L,
|
|
1835
1835
|
disabled: G,
|
|
1836
1836
|
size: "small"
|
|
@@ -1858,7 +1858,7 @@ const pi = ({
|
|
|
1858
1858
|
type: d,
|
|
1859
1859
|
autoFocus: t,
|
|
1860
1860
|
min: b,
|
|
1861
|
-
max:
|
|
1861
|
+
max: w
|
|
1862
1862
|
}
|
|
1863
1863
|
) }),
|
|
1864
1864
|
/* @__PURE__ */ o($, { indent: 0.5, alignItems: "center", justifyContent: "center", children: /* @__PURE__ */ o(
|
|
@@ -1866,7 +1866,7 @@ const pi = ({
|
|
|
1866
1866
|
{
|
|
1867
1867
|
icon: c,
|
|
1868
1868
|
size: 12,
|
|
1869
|
-
color:
|
|
1869
|
+
color: ye("--lhds-color-ui-500")
|
|
1870
1870
|
}
|
|
1871
1871
|
) }),
|
|
1872
1872
|
/* @__PURE__ */ o(Y, { width: X, children: /* @__PURE__ */ o(
|
|
@@ -1996,7 +1996,7 @@ const pi = ({
|
|
|
1996
1996
|
},
|
|
1997
1997
|
i
|
|
1998
1998
|
)) });
|
|
1999
|
-
}, Jr =
|
|
1999
|
+
}, Jr = De(0, 24), Zr = De(0, 60), Qr = ({
|
|
2000
2000
|
value: t,
|
|
2001
2001
|
onValueChange: e
|
|
2002
2002
|
}) => {
|
|
@@ -2007,14 +2007,14 @@ const pi = ({
|
|
|
2007
2007
|
s(u), c(d);
|
|
2008
2008
|
}
|
|
2009
2009
|
}, [t]);
|
|
2010
|
-
const a =
|
|
2010
|
+
const a = y(
|
|
2011
2011
|
(d) => {
|
|
2012
2012
|
s(d), e == null || e(
|
|
2013
2013
|
`${zt(String(d ?? 0))}:${Gt(String(i ?? 0))}`
|
|
2014
2014
|
);
|
|
2015
2015
|
},
|
|
2016
2016
|
[i, e]
|
|
2017
|
-
), l =
|
|
2017
|
+
), l = y(
|
|
2018
2018
|
(d) => {
|
|
2019
2019
|
c(d), e == null || e(
|
|
2020
2020
|
`${zt(String(r ?? 0))}:${Gt(String(d ?? 0))}`
|
|
@@ -2068,7 +2068,7 @@ const pi = ({
|
|
|
2068
2068
|
localDate: d,
|
|
2069
2069
|
setLocalDate: u
|
|
2070
2070
|
}, m) => {
|
|
2071
|
-
const f =
|
|
2071
|
+
const f = y(
|
|
2072
2072
|
(D) => {
|
|
2073
2073
|
if (!D)
|
|
2074
2074
|
return;
|
|
@@ -2096,7 +2096,7 @@ const pi = ({
|
|
|
2096
2096
|
n,
|
|
2097
2097
|
u
|
|
2098
2098
|
]
|
|
2099
|
-
), h =
|
|
2099
|
+
), h = y(
|
|
2100
2100
|
(D) => {
|
|
2101
2101
|
if (D)
|
|
2102
2102
|
if (t) {
|
|
@@ -2109,31 +2109,31 @@ const pi = ({
|
|
|
2109
2109
|
l(D);
|
|
2110
2110
|
},
|
|
2111
2111
|
[e, t, d, l]
|
|
2112
|
-
), g =
|
|
2112
|
+
), g = y(
|
|
2113
2113
|
(D) => {
|
|
2114
2114
|
D.target.value[0] !== "0" && f(D.target.valueAsDate);
|
|
2115
2115
|
},
|
|
2116
2116
|
[f]
|
|
2117
|
-
), b =
|
|
2117
|
+
), b = y(
|
|
2118
2118
|
(D) => h(D.target.value),
|
|
2119
2119
|
[h]
|
|
2120
|
-
),
|
|
2120
|
+
), w = y(() => {
|
|
2121
2121
|
n(t || /* @__PURE__ */ new Date()), c("calendar"), r();
|
|
2122
|
-
}, [t, c, r, n]), p =
|
|
2122
|
+
}, [t, c, r, n]), p = y(() => {
|
|
2123
2123
|
i(void 0), s();
|
|
2124
2124
|
}, [i, s]);
|
|
2125
2125
|
return {
|
|
2126
2126
|
inputLeftChangeHandler: g,
|
|
2127
2127
|
inputRightChangeHandler: b,
|
|
2128
2128
|
hideCalendar: p,
|
|
2129
|
-
showCalendar:
|
|
2129
|
+
showCalendar: w,
|
|
2130
2130
|
onChangeTime: h,
|
|
2131
2131
|
onChangeDate: f
|
|
2132
2132
|
};
|
|
2133
2133
|
}, Vr = (t) => {
|
|
2134
|
-
const [e, n] = I(void 0), [r, s] = I(void 0), [i, c, a] =
|
|
2134
|
+
const [e, n] = I(void 0), [r, s] = I(void 0), [i, c, a] = ce(!1), [l, d, u] = ce(!1), [m, f] = I(void 0), [h, g] = I(
|
|
2135
2135
|
() => t ?? /* @__PURE__ */ new Date()
|
|
2136
|
-
), [b,
|
|
2136
|
+
), [b, w] = I("calendar");
|
|
2137
2137
|
return {
|
|
2138
2138
|
isCalendarVisible: i,
|
|
2139
2139
|
showCalendarInternal: c,
|
|
@@ -2143,7 +2143,7 @@ const pi = ({
|
|
|
2143
2143
|
dateInFocus: h,
|
|
2144
2144
|
setDateInFocus: g,
|
|
2145
2145
|
currentPanel: b,
|
|
2146
|
-
setCurrentPanel:
|
|
2146
|
+
setCurrentPanel: w,
|
|
2147
2147
|
isTimePickerVisible: l,
|
|
2148
2148
|
showTimePicker: d,
|
|
2149
2149
|
hideTimePicker: u,
|
|
@@ -2158,18 +2158,18 @@ const pi = ({
|
|
|
2158
2158
|
showTimePicker: c,
|
|
2159
2159
|
hideTimePicker: a
|
|
2160
2160
|
}) => {
|
|
2161
|
-
const l =
|
|
2161
|
+
const l = y(() => {
|
|
2162
2162
|
s || n(), i("calendar"), a();
|
|
2163
|
-
}, [a, s, i, n]), d =
|
|
2163
|
+
}, [a, s, i, n]), d = y(() => {
|
|
2164
2164
|
r(), c();
|
|
2165
|
-
}, [r, c]), u =
|
|
2165
|
+
}, [r, c]), u = y(
|
|
2166
2166
|
(g) => {
|
|
2167
2167
|
t(g.date), r(), c();
|
|
2168
2168
|
},
|
|
2169
2169
|
[t, r, c]
|
|
2170
|
-
), m =
|
|
2170
|
+
), m = y(() => {
|
|
2171
2171
|
i("presets"), n();
|
|
2172
|
-
}, [i, n]), f =
|
|
2172
|
+
}, [i, n]), f = y(() => {
|
|
2173
2173
|
var g;
|
|
2174
2174
|
s ? r() : ((g = e.current) == null || g.focus(), i("calendar"), n());
|
|
2175
2175
|
}, [
|
|
@@ -2178,7 +2178,7 @@ const pi = ({
|
|
|
2178
2178
|
e,
|
|
2179
2179
|
i,
|
|
2180
2180
|
n
|
|
2181
|
-
]), h =
|
|
2181
|
+
]), h = y(
|
|
2182
2182
|
(g) => {
|
|
2183
2183
|
g.key === "Escape" && r();
|
|
2184
2184
|
},
|
|
@@ -2208,7 +2208,7 @@ const pi = ({
|
|
|
2208
2208
|
zIndex: f,
|
|
2209
2209
|
appendTo: h
|
|
2210
2210
|
}) => {
|
|
2211
|
-
const g = F(null), b = F(null),
|
|
2211
|
+
const g = F(null), b = F(null), w = Vr(t), {
|
|
2212
2212
|
setCurrentPanel: p,
|
|
2213
2213
|
currentPanel: D,
|
|
2214
2214
|
isCalendarVisible: M,
|
|
@@ -2218,14 +2218,14 @@ const pi = ({
|
|
|
2218
2218
|
hideTimePicker: _,
|
|
2219
2219
|
localTime: E,
|
|
2220
2220
|
localDate: S
|
|
2221
|
-
} =
|
|
2221
|
+
} = w, {
|
|
2222
2222
|
showCalendar: A,
|
|
2223
2223
|
hideCalendar: H,
|
|
2224
2224
|
inputLeftChangeHandler: x,
|
|
2225
2225
|
inputRightChangeHandler: J,
|
|
2226
2226
|
onChangeTime: C,
|
|
2227
2227
|
onChangeDate: q
|
|
2228
|
-
} = vr(t, e,
|
|
2228
|
+
} = vr(t, e, w, g), {
|
|
2229
2229
|
onKeyDownHandler: O,
|
|
2230
2230
|
onFocusRight: z,
|
|
2231
2231
|
onFocusLeft: Z,
|
|
@@ -2237,7 +2237,7 @@ const pi = ({
|
|
|
2237
2237
|
g,
|
|
2238
2238
|
A,
|
|
2239
2239
|
H,
|
|
2240
|
-
|
|
2240
|
+
w
|
|
2241
2241
|
);
|
|
2242
2242
|
Xr(t, T, g);
|
|
2243
2243
|
const K = R(() => {
|
|
@@ -2246,7 +2246,7 @@ const pi = ({
|
|
|
2246
2246
|
"singleSelected",
|
|
2247
2247
|
"selected"
|
|
2248
2248
|
]) : {};
|
|
2249
|
-
}, [S, t]), lt =
|
|
2249
|
+
}, [S, t]), lt = y(() => {
|
|
2250
2250
|
H(), _();
|
|
2251
2251
|
}, [H, _]), rt = R(
|
|
2252
2252
|
() => t ? Kr(t) : E,
|
|
@@ -2324,14 +2324,14 @@ const pi = ({
|
|
|
2324
2324
|
}) => {
|
|
2325
2325
|
const r = String(n);
|
|
2326
2326
|
return /* @__PURE__ */ o($, { justifyContent: "center", children: t === n ? /* @__PURE__ */ o(It, { label: r, onClick: () => e == null ? void 0 : e(n) }) : /* @__PURE__ */ o(tt, { label: r, onClick: () => e == null ? void 0 : e(n) }) });
|
|
2327
|
-
},
|
|
2327
|
+
}, wi = ({
|
|
2328
2328
|
value: t,
|
|
2329
2329
|
onValueChange: e,
|
|
2330
2330
|
initialLastYear: n
|
|
2331
2331
|
}) => {
|
|
2332
2332
|
const [r, s] = I(() => t ? t + 4 : n ?? (/* @__PURE__ */ new Date()).getFullYear() + 4), i = R(() => {
|
|
2333
2333
|
const c = r - 11;
|
|
2334
|
-
return tn(
|
|
2334
|
+
return tn(De(c, r + 1), 3);
|
|
2335
2335
|
}, [r]);
|
|
2336
2336
|
return nt(() => {
|
|
2337
2337
|
s((c) => ns(t, c));
|
|
@@ -2414,7 +2414,7 @@ const pi = ({
|
|
|
2414
2414
|
setFirstFocusedInput: c,
|
|
2415
2415
|
setCurrentPanel: a
|
|
2416
2416
|
}) => {
|
|
2417
|
-
const l =
|
|
2417
|
+
const l = y(
|
|
2418
2418
|
(f) => {
|
|
2419
2419
|
f.target.value[0] !== "0" && (n == null || n({
|
|
2420
2420
|
startDate: f.target.valueAsDate ?? void 0,
|
|
@@ -2422,7 +2422,7 @@ const pi = ({
|
|
|
2422
2422
|
}));
|
|
2423
2423
|
},
|
|
2424
2424
|
[n, e]
|
|
2425
|
-
), d =
|
|
2425
|
+
), d = y(
|
|
2426
2426
|
(f) => {
|
|
2427
2427
|
f.target.value[0] !== "0" && (n == null || n({
|
|
2428
2428
|
startDate: t,
|
|
@@ -2430,12 +2430,12 @@ const pi = ({
|
|
|
2430
2430
|
}));
|
|
2431
2431
|
},
|
|
2432
2432
|
[n, t]
|
|
2433
|
-
), u =
|
|
2433
|
+
), u = y(
|
|
2434
2434
|
(f) => {
|
|
2435
2435
|
f != null ? r(f) : r(t || e || /* @__PURE__ */ new Date()), a("calendar"), s();
|
|
2436
2436
|
},
|
|
2437
2437
|
[t, e, a, s, r]
|
|
2438
|
-
), m =
|
|
2438
|
+
), m = y(() => {
|
|
2439
2439
|
c(void 0), i();
|
|
2440
2440
|
}, [c, i]);
|
|
2441
2441
|
return {
|
|
@@ -2447,7 +2447,7 @@ const pi = ({
|
|
|
2447
2447
|
showCalendar: u
|
|
2448
2448
|
};
|
|
2449
2449
|
}, is = (t, e) => {
|
|
2450
|
-
const [n, r, s] =
|
|
2450
|
+
const [n, r, s] = ce(!1), [i, c] = I(void 0), [a, l] = I("startDate"), [d, u] = I(() => (a === "startDate" ? t : a === "endDate" ? e : void 0) ?? /* @__PURE__ */ new Date()), [m, f] = I("calendar");
|
|
2451
2451
|
return {
|
|
2452
2452
|
isCalendarVisible: n,
|
|
2453
2453
|
showCalendarInternal: r,
|
|
@@ -2470,7 +2470,7 @@ const pi = ({
|
|
|
2470
2470
|
setCurrentPanel: f,
|
|
2471
2471
|
setDateInFocus: h
|
|
2472
2472
|
}) => {
|
|
2473
|
-
const g =
|
|
2473
|
+
const g = y(() => {
|
|
2474
2474
|
a == null && l("startDate"), u("startDate"), d ? t != null && h(t) : i(t);
|
|
2475
2475
|
}, [
|
|
2476
2476
|
a,
|
|
@@ -2480,7 +2480,7 @@ const pi = ({
|
|
|
2480
2480
|
l,
|
|
2481
2481
|
i,
|
|
2482
2482
|
h
|
|
2483
|
-
]), b =
|
|
2483
|
+
]), b = y(() => {
|
|
2484
2484
|
a == null && l("endDate"), u("endDate"), d ? e != null && h(e) : i(e);
|
|
2485
2485
|
}, [
|
|
2486
2486
|
a,
|
|
@@ -2490,7 +2490,7 @@ const pi = ({
|
|
|
2490
2490
|
l,
|
|
2491
2491
|
i,
|
|
2492
2492
|
h
|
|
2493
|
-
]),
|
|
2493
|
+
]), w = y(
|
|
2494
2494
|
(k) => {
|
|
2495
2495
|
var T, L, _, E;
|
|
2496
2496
|
m === "startDate" ? e != null && V(k.date, e) ? (n == null || n({
|
|
@@ -2521,9 +2521,9 @@ const pi = ({
|
|
|
2521
2521
|
t,
|
|
2522
2522
|
r
|
|
2523
2523
|
]
|
|
2524
|
-
), p =
|
|
2524
|
+
), p = y(() => {
|
|
2525
2525
|
f("presets"), i();
|
|
2526
|
-
}, [f, i]), D =
|
|
2526
|
+
}, [f, i]), D = y(() => {
|
|
2527
2527
|
var k;
|
|
2528
2528
|
d ? c() : (u("startDate"), l("startDate"), (k = r.current) == null || k.focus(), f("calendar"), i());
|
|
2529
2529
|
}, [
|
|
@@ -2534,7 +2534,7 @@ const pi = ({
|
|
|
2534
2534
|
r,
|
|
2535
2535
|
f,
|
|
2536
2536
|
i
|
|
2537
|
-
]), M =
|
|
2537
|
+
]), M = y(
|
|
2538
2538
|
(k) => {
|
|
2539
2539
|
k.key === "Escape" && c();
|
|
2540
2540
|
},
|
|
@@ -2543,13 +2543,13 @@ const pi = ({
|
|
|
2543
2543
|
return {
|
|
2544
2544
|
onFocusLeft: g,
|
|
2545
2545
|
onFocusRight: b,
|
|
2546
|
-
onClickDay:
|
|
2546
|
+
onClickDay: w,
|
|
2547
2547
|
onClickArrowButton: p,
|
|
2548
2548
|
onClickCalendarButton: D,
|
|
2549
2549
|
onKeyDownHandler: M
|
|
2550
2550
|
};
|
|
2551
2551
|
};
|
|
2552
|
-
function
|
|
2552
|
+
function yi({
|
|
2553
2553
|
value: t,
|
|
2554
2554
|
onValueChange: e,
|
|
2555
2555
|
autoFocus: n,
|
|
@@ -2567,7 +2567,7 @@ function wi({
|
|
|
2567
2567
|
zIndex: g,
|
|
2568
2568
|
appendTo: b
|
|
2569
2569
|
}) {
|
|
2570
|
-
const { startDate:
|
|
2570
|
+
const { startDate: w, endDate: p } = t || {}, D = F(null), M = F(null), k = is(w, p), {
|
|
2571
2571
|
dateInFocus: T,
|
|
2572
2572
|
setDateInFocus: L,
|
|
2573
2573
|
isCalendarVisible: _,
|
|
@@ -2578,7 +2578,7 @@ function wi({
|
|
|
2578
2578
|
hideCalendar: H,
|
|
2579
2579
|
inputLeftChangeHandler: x,
|
|
2580
2580
|
inputRightChangeHandler: J
|
|
2581
|
-
} = ss(
|
|
2581
|
+
} = ss(w, p, e, k), {
|
|
2582
2582
|
onKeyDownHandler: C,
|
|
2583
2583
|
onFocusRight: q,
|
|
2584
2584
|
onFocusLeft: O,
|
|
@@ -2586,7 +2586,7 @@ function wi({
|
|
|
2586
2586
|
onClickCalendarButton: Z,
|
|
2587
2587
|
onClickArrowButton: X
|
|
2588
2588
|
} = cs(
|
|
2589
|
-
|
|
2589
|
+
w,
|
|
2590
2590
|
p,
|
|
2591
2591
|
e,
|
|
2592
2592
|
D,
|
|
@@ -2596,23 +2596,23 @@ function wi({
|
|
|
2596
2596
|
k
|
|
2597
2597
|
);
|
|
2598
2598
|
rs(
|
|
2599
|
-
|
|
2599
|
+
w,
|
|
2600
2600
|
p,
|
|
2601
2601
|
L,
|
|
2602
2602
|
D,
|
|
2603
2603
|
M
|
|
2604
2604
|
);
|
|
2605
2605
|
const G = R(
|
|
2606
|
-
() =>
|
|
2607
|
-
[
|
|
2606
|
+
() => w && p && V(w, p),
|
|
2607
|
+
[w, p]
|
|
2608
2608
|
), W = R(
|
|
2609
2609
|
() => Gn(
|
|
2610
2610
|
l == null ? void 0 : l.statePerMonth,
|
|
2611
|
-
|
|
2611
|
+
w,
|
|
2612
2612
|
p,
|
|
2613
2613
|
T
|
|
2614
2614
|
),
|
|
2615
|
-
[l == null ? void 0 : l.statePerMonth,
|
|
2615
|
+
[l == null ? void 0 : l.statePerMonth, w, p, T]
|
|
2616
2616
|
);
|
|
2617
2617
|
return /* @__PURE__ */ o(Y, { onKeyDown: C, children: /* @__PURE__ */ o(
|
|
2618
2618
|
Wt,
|
|
@@ -2675,7 +2675,7 @@ function wi({
|
|
|
2675
2675
|
}
|
|
2676
2676
|
) });
|
|
2677
2677
|
}
|
|
2678
|
-
const
|
|
2678
|
+
const le = ({
|
|
2679
2679
|
onChange: t,
|
|
2680
2680
|
onValueChange: e,
|
|
2681
2681
|
mask: n,
|
|
@@ -2692,7 +2692,7 @@ const de = ({
|
|
|
2692
2692
|
placeholder: h,
|
|
2693
2693
|
valueWhenBlurred: g,
|
|
2694
2694
|
label: b,
|
|
2695
|
-
variant:
|
|
2695
|
+
variant: w,
|
|
2696
2696
|
...p
|
|
2697
2697
|
}) => {
|
|
2698
2698
|
const D = F(null), [M, k] = I(!1), { onChange: T } = zn(
|
|
@@ -2707,18 +2707,18 @@ const de = ({
|
|
|
2707
2707
|
a,
|
|
2708
2708
|
l,
|
|
2709
2709
|
M
|
|
2710
|
-
), L =
|
|
2710
|
+
), L = y(
|
|
2711
2711
|
(S) => {
|
|
2712
2712
|
u == null || u(S), k(!0);
|
|
2713
2713
|
},
|
|
2714
2714
|
[u]
|
|
2715
|
-
), _ =
|
|
2715
|
+
), _ = y(
|
|
2716
2716
|
(S) => {
|
|
2717
2717
|
m == null || m(S), k(!1);
|
|
2718
2718
|
},
|
|
2719
2719
|
[m]
|
|
2720
2720
|
), E = M ? h : f ?? h;
|
|
2721
|
-
return
|
|
2721
|
+
return w === "standard" ? /* @__PURE__ */ o(In, { text: b ?? "", children: /* @__PURE__ */ o(
|
|
2722
2722
|
mt,
|
|
2723
2723
|
{
|
|
2724
2724
|
...p,
|
|
@@ -2759,7 +2759,7 @@ const de = ({
|
|
|
2759
2759
|
case "large":
|
|
2760
2760
|
return "196px";
|
|
2761
2761
|
default:
|
|
2762
|
-
return
|
|
2762
|
+
return he(t, "168px");
|
|
2763
2763
|
}
|
|
2764
2764
|
}, os = [/[1-2]/, /\d/, /\d/, /\d/], as = [/[0-1]/, /\d/], ls = [/[0-3]/, /\d/], hn = (t) => us(t).flatMap(ds), ds = (t) => {
|
|
2765
2765
|
switch (t) {
|
|
@@ -2815,7 +2815,7 @@ const de = ({
|
|
|
2815
2815
|
return U(t, Et(r), {
|
|
2816
2816
|
locale: Rt(r)
|
|
2817
2817
|
});
|
|
2818
|
-
},
|
|
2818
|
+
}, de = (t, e) => {
|
|
2819
2819
|
const n = Dt(t, e);
|
|
2820
2820
|
if (n != null)
|
|
2821
2821
|
return _t(n, e);
|
|
@@ -2842,7 +2842,7 @@ const de = ({
|
|
|
2842
2842
|
}, [n]);
|
|
2843
2843
|
return /* @__PURE__ */ N($, { children: [
|
|
2844
2844
|
/* @__PURE__ */ o(
|
|
2845
|
-
|
|
2845
|
+
le,
|
|
2846
2846
|
{
|
|
2847
2847
|
mask: f,
|
|
2848
2848
|
value: t == null ? void 0 : t.startDate,
|
|
@@ -2850,7 +2850,7 @@ const de = ({
|
|
|
2850
2850
|
e == null || e({ startDate: g });
|
|
2851
2851
|
},
|
|
2852
2852
|
onBlur: (g) => {
|
|
2853
|
-
const b =
|
|
2853
|
+
const b = de(
|
|
2854
2854
|
g.target.value,
|
|
2855
2855
|
n
|
|
2856
2856
|
);
|
|
@@ -2867,13 +2867,13 @@ const de = ({
|
|
|
2867
2867
|
}
|
|
2868
2868
|
),
|
|
2869
2869
|
/* @__PURE__ */ o(
|
|
2870
|
-
|
|
2870
|
+
le,
|
|
2871
2871
|
{
|
|
2872
2872
|
mask: f,
|
|
2873
2873
|
value: t == null ? void 0 : t.endDate,
|
|
2874
2874
|
onValueChange: (g) => e == null ? void 0 : e({ endDate: g }),
|
|
2875
2875
|
onBlur: (g) => {
|
|
2876
|
-
const b =
|
|
2876
|
+
const b = de(
|
|
2877
2877
|
g.target.value,
|
|
2878
2878
|
n
|
|
2879
2879
|
);
|
|
@@ -2890,7 +2890,7 @@ const de = ({
|
|
|
2890
2890
|
}
|
|
2891
2891
|
)
|
|
2892
2892
|
] });
|
|
2893
|
-
},
|
|
2893
|
+
}, ue = (t, e, n) => {
|
|
2894
2894
|
const r = Hn(t, e) ? "" : " y";
|
|
2895
2895
|
return n.code.startsWith("en") ? U(t, "eee MMM d" + r, { locale: n }).replace(".", "") : U(t, "eee d MMM" + r, { locale: n }).replace(".", "");
|
|
2896
2896
|
}, gn = (t, e, n, r) => {
|
|
@@ -2910,26 +2910,26 @@ const de = ({
|
|
|
2910
2910
|
},
|
|
2911
2911
|
[l.length, n, t == null ? void 0 : t.endDate]
|
|
2912
2912
|
), m = R(
|
|
2913
|
-
() => d != null ?
|
|
2913
|
+
() => d != null ? ue(d, c, s) : void 0,
|
|
2914
2914
|
[s, d, c]
|
|
2915
2915
|
), f = R(
|
|
2916
|
-
() => u != null ?
|
|
2916
|
+
() => u != null ? ue(u, c, s) : void 0,
|
|
2917
2917
|
[s, u, c]
|
|
2918
2918
|
), [h, g] = I(
|
|
2919
2919
|
r ?? d ?? /* @__PURE__ */ new Date()
|
|
2920
|
-
), b =
|
|
2920
|
+
), b = y(
|
|
2921
2921
|
(x) => {
|
|
2922
2922
|
ot(x, c) || V(x, c) ? g(x) : g(c);
|
|
2923
2923
|
},
|
|
2924
2924
|
[c]
|
|
2925
|
-
),
|
|
2926
|
-
() =>
|
|
2925
|
+
), w = R(
|
|
2926
|
+
() => Xt(
|
|
2927
2927
|
h.getFullYear(),
|
|
2928
2928
|
h.getMonth(),
|
|
2929
2929
|
s
|
|
2930
2930
|
),
|
|
2931
2931
|
[s, h]
|
|
2932
|
-
), p = R(() => Bt(U(h, "MMMM yyyy", { locale: s })), [s, h]), D = R(() => ot(c, h), [c, h]), [M, k] = I(), [T, L] = I("calendar"), _ =
|
|
2932
|
+
), p = R(() => Bt(U(h, "MMMM yyyy", { locale: s })), [s, h]), D = R(() => ot(c, h), [c, h]), [M, k] = I(), [T, L] = I("calendar"), _ = y(
|
|
2933
2933
|
(x) => {
|
|
2934
2934
|
var q, O;
|
|
2935
2935
|
const J = ((q = x == null ? void 0 : x.startDate) == null ? void 0 : q.length) === l.length ? Dt(x.startDate, n) : void 0, C = ((O = x == null ? void 0 : x.endDate) == null ? void 0 : O.length) === l.length ? Dt(x.endDate, n) : void 0;
|
|
@@ -2953,7 +2953,7 @@ const de = ({
|
|
|
2953
2953
|
[u, d]
|
|
2954
2954
|
);
|
|
2955
2955
|
return {
|
|
2956
|
-
isDateDisabled:
|
|
2956
|
+
isDateDisabled: y(
|
|
2957
2957
|
(x) => !P(x, c) && ct(x, c),
|
|
2958
2958
|
[c]
|
|
2959
2959
|
),
|
|
@@ -2978,7 +2978,7 @@ const de = ({
|
|
|
2978
2978
|
visiblePanel: T,
|
|
2979
2979
|
setVisiblePanel: L,
|
|
2980
2980
|
setVisibleMonth: g,
|
|
2981
|
-
visibleMonthData:
|
|
2981
|
+
visibleMonthData: w,
|
|
2982
2982
|
todayIsInVisibleMonth: D,
|
|
2983
2983
|
hoverDate: M,
|
|
2984
2984
|
setHoverDate: k,
|
|
@@ -2989,7 +2989,7 @@ const de = ({
|
|
|
2989
2989
|
valueWhenBlurredStartDate: m,
|
|
2990
2990
|
valueWhenBlurredEndDate: f
|
|
2991
2991
|
};
|
|
2992
|
-
},
|
|
2992
|
+
}, Vt = ({
|
|
2993
2993
|
previousMonthButtonAriaLabel: t,
|
|
2994
2994
|
nextMonthButtonAriaLabel: e,
|
|
2995
2995
|
monthPickerButtonLabel: n,
|
|
@@ -3010,7 +3010,7 @@ const de = ({
|
|
|
3010
3010
|
{
|
|
3011
3011
|
"aria-live": "polite",
|
|
3012
3012
|
label: n,
|
|
3013
|
-
rightIcon: r === "calendar" ?
|
|
3013
|
+
rightIcon: r === "calendar" ? me : En,
|
|
3014
3014
|
onClick: () => s(
|
|
3015
3015
|
r === "calendar" ? "month-picker" : "calendar"
|
|
3016
3016
|
),
|
|
@@ -3023,7 +3023,7 @@ const de = ({
|
|
|
3023
3023
|
ft,
|
|
3024
3024
|
{
|
|
3025
3025
|
leftIcon: Zt,
|
|
3026
|
-
onClick: () => c(
|
|
3026
|
+
onClick: () => c(pe(a, 1)),
|
|
3027
3027
|
disabled: l,
|
|
3028
3028
|
"aria-label": t,
|
|
3029
3029
|
size: f,
|
|
@@ -3042,7 +3042,7 @@ const de = ({
|
|
|
3042
3042
|
)
|
|
3043
3043
|
] })
|
|
3044
3044
|
] });
|
|
3045
|
-
}, fs = "
|
|
3045
|
+
}, fs = "_travelDateCell_1t2af_1", hs = "_smaller_1t2af_4", ms = "_small_1t2af_4", gs = "_medium_1t2af_14", ps = "_large_1t2af_19", Ds = "_outline_1t2af_31", bs = "_contentWrapper_1t2af_44", ws = "_disabled_1t2af_65", ys = "_isToday_1t2af_68", Ms = "_isSelectionStart_1t2af_72", ks = "_isSelectionEnd_1t2af_73", Ss = "_hover_1t2af_88", Ts = "_startSelected_1t2af_91", Rs = "_endSelected_1t2af_91", et = {
|
|
3046
3046
|
travelDateCell: fs,
|
|
3047
3047
|
smaller: hs,
|
|
3048
3048
|
small: ms,
|
|
@@ -3050,14 +3050,14 @@ const de = ({
|
|
|
3050
3050
|
large: ps,
|
|
3051
3051
|
outline: Ds,
|
|
3052
3052
|
contentWrapper: bs,
|
|
3053
|
-
disabled:
|
|
3054
|
-
isToday:
|
|
3053
|
+
disabled: ws,
|
|
3054
|
+
isToday: ys,
|
|
3055
3055
|
isSelectionStart: Ms,
|
|
3056
3056
|
isSelectionEnd: ks,
|
|
3057
3057
|
hover: Ss,
|
|
3058
3058
|
startSelected: Ts,
|
|
3059
3059
|
endSelected: Rs
|
|
3060
|
-
}, dt =
|
|
3060
|
+
}, dt = "var(--selection-range-background-color)", Is = (t, e, n, r, s, i) => {
|
|
3061
3061
|
if (!s)
|
|
3062
3062
|
return {
|
|
3063
3063
|
left: "transparent",
|
|
@@ -3112,7 +3112,7 @@ const de = ({
|
|
|
3112
3112
|
}, Es = (t, e) => {
|
|
3113
3113
|
switch (e) {
|
|
3114
3114
|
case "PageUp":
|
|
3115
|
-
return
|
|
3115
|
+
return pe(t, 1);
|
|
3116
3116
|
case "PageDown":
|
|
3117
3117
|
return $t(t, 1);
|
|
3118
3118
|
case "Home":
|
|
@@ -3130,7 +3130,7 @@ const de = ({
|
|
|
3130
3130
|
default:
|
|
3131
3131
|
return;
|
|
3132
3132
|
}
|
|
3133
|
-
},
|
|
3133
|
+
}, re = (t, e) => U(Ve(t, 12), at.fullDate) + e, xs = "_travelDateCellBackground_45q5d_1", _s = "_smaller_45q5d_2", As = "_small_45q5d_2", Ns = "_medium_45q5d_12", Ls = "_large_45q5d_17", Ct = {
|
|
3134
3134
|
travelDateCellBackground: xs,
|
|
3135
3135
|
smaller: _s,
|
|
3136
3136
|
small: As,
|
|
@@ -3140,14 +3140,14 @@ const de = ({
|
|
|
3140
3140
|
/* @__PURE__ */ o(
|
|
3141
3141
|
Y,
|
|
3142
3142
|
{
|
|
3143
|
-
className:
|
|
3143
|
+
className: wt(Ct.travelDateCellBackground, Ct[t]),
|
|
3144
3144
|
background: e
|
|
3145
3145
|
}
|
|
3146
3146
|
),
|
|
3147
3147
|
/* @__PURE__ */ o(
|
|
3148
3148
|
Y,
|
|
3149
3149
|
{
|
|
3150
|
-
className:
|
|
3150
|
+
className: wt(Ct.travelDateCellBackground, Ct[t]),
|
|
3151
3151
|
background: n
|
|
3152
3152
|
}
|
|
3153
3153
|
)
|
|
@@ -3169,13 +3169,13 @@ const de = ({
|
|
|
3169
3169
|
size: g,
|
|
3170
3170
|
dateTestId: b
|
|
3171
3171
|
}) => {
|
|
3172
|
-
const
|
|
3172
|
+
const w = y(
|
|
3173
3173
|
async (_) => {
|
|
3174
3174
|
var S;
|
|
3175
3175
|
const E = Es(r.date, _.key);
|
|
3176
|
-
E && !h(E) && (a(E), ot(r.date, E) ? (S = document.getElementById(
|
|
3176
|
+
E && !h(E) && (a(E), ot(r.date, E) ? (S = document.getElementById(re(E, f))) == null || S.focus() : (n(E), setTimeout(() => {
|
|
3177
3177
|
var A;
|
|
3178
|
-
(A = document.getElementById(
|
|
3178
|
+
(A = document.getElementById(re(E, f))) == null || A.focus();
|
|
3179
3179
|
}, 10))), (_.key === "Enter" || _.code === "Space") && t(r.date);
|
|
3180
3180
|
},
|
|
3181
3181
|
[
|
|
@@ -3197,7 +3197,7 @@ const de = ({
|
|
|
3197
3197
|
return /* @__PURE__ */ N(
|
|
3198
3198
|
"td",
|
|
3199
3199
|
{
|
|
3200
|
-
className:
|
|
3200
|
+
className: wt(et.travelDateCell, et[g]),
|
|
3201
3201
|
onClick: D ? void 0 : () => t(r.date),
|
|
3202
3202
|
onMouseOver: D ? void 0 : () => p && a(r.date),
|
|
3203
3203
|
onMouseOut: D ? void 0 : () => p && l(r.date),
|
|
@@ -3208,8 +3208,8 @@ const de = ({
|
|
|
3208
3208
|
e,
|
|
3209
3209
|
m
|
|
3210
3210
|
),
|
|
3211
|
-
id: D ? void 0 :
|
|
3212
|
-
onKeyDown: D ? void 0 :
|
|
3211
|
+
id: D ? void 0 : re(r.date, f),
|
|
3212
|
+
onKeyDown: D ? void 0 : w,
|
|
3213
3213
|
...D ? void 0 : { "aria-selected": M || k },
|
|
3214
3214
|
"data-testid": b == null ? void 0 : b(r.date),
|
|
3215
3215
|
children: [
|
|
@@ -3225,7 +3225,7 @@ const de = ({
|
|
|
3225
3225
|
p && /* @__PURE__ */ o(
|
|
3226
3226
|
"div",
|
|
3227
3227
|
{
|
|
3228
|
-
className:
|
|
3228
|
+
className: wt(
|
|
3229
3229
|
et.contentWrapper,
|
|
3230
3230
|
T ? et.isToday : void 0,
|
|
3231
3231
|
i ? et.startSelected : void 0,
|
|
@@ -3236,10 +3236,10 @@ const de = ({
|
|
|
3236
3236
|
D && et.disabled
|
|
3237
3237
|
),
|
|
3238
3238
|
children: /* @__PURE__ */ o(
|
|
3239
|
-
|
|
3239
|
+
yt,
|
|
3240
3240
|
{
|
|
3241
3241
|
variant: "bold",
|
|
3242
|
-
color: D ?
|
|
3242
|
+
color: D ? ye("--lhds-color-ui-500") : void 0,
|
|
3243
3243
|
children: r.dayOfMonth
|
|
3244
3244
|
}
|
|
3245
3245
|
)
|
|
@@ -3251,9 +3251,9 @@ const de = ({
|
|
|
3251
3251
|
}, Ps = (t, e, n, r, s) => {
|
|
3252
3252
|
const i = e ? ot(e, r) : !1;
|
|
3253
3253
|
return (e && i ? P(t.date, e) : n) || !i && !s && t.date.getDate() === 1 ? 0 : -1;
|
|
3254
|
-
}, Hs = "
|
|
3254
|
+
}, Hs = "_travelCalendar_ib2y4_1", $s = {
|
|
3255
3255
|
travelCalendar: Hs
|
|
3256
|
-
},
|
|
3256
|
+
}, te = ({
|
|
3257
3257
|
visibleMonthData: t,
|
|
3258
3258
|
onClickDate: e,
|
|
3259
3259
|
setHoverDate: n,
|
|
@@ -3277,8 +3277,8 @@ const de = ({
|
|
|
3277
3277
|
role: "grid",
|
|
3278
3278
|
...g ? { "aria-multiselectable": !0 } : void 0,
|
|
3279
3279
|
children: /* @__PURE__ */ N("tbody", { children: [
|
|
3280
|
-
/* @__PURE__ */ o("tr", { children: t.weeks[0].days.map((
|
|
3281
|
-
t.weeks.map((
|
|
3280
|
+
/* @__PURE__ */ o("tr", { children: t.weeks[0].days.map((w) => /* @__PURE__ */ o("th", { abbr: w.fullName, children: /* @__PURE__ */ o(yt, { children: w.name }) }, w.name)) }),
|
|
3281
|
+
t.weeks.map((w) => /* @__PURE__ */ o(be.Fragment, { children: /* @__PURE__ */ o("tr", { children: w.days.map((p) => /* @__PURE__ */ o(
|
|
3282
3282
|
Ys,
|
|
3283
3283
|
{
|
|
3284
3284
|
size: h,
|
|
@@ -3299,10 +3299,10 @@ const de = ({
|
|
|
3299
3299
|
dateTestId: b
|
|
3300
3300
|
},
|
|
3301
3301
|
p.dateString
|
|
3302
|
-
)) },
|
|
3302
|
+
)) }, w.weekNumber) }, w.weekNumber))
|
|
3303
3303
|
] })
|
|
3304
3304
|
}
|
|
3305
|
-
), Ws = "_travelDateRangeInput_1j7rp_1", Os = "_overlay_1j7rp_2", Us = "_calendarVisible_1j7rp_6",
|
|
3305
|
+
), Ws = "_travelDateRangeInput_1j7rp_1", Os = "_overlay_1j7rp_2", Us = "_calendarVisible_1j7rp_6", se = {
|
|
3306
3306
|
travelDateRangeInput: Ws,
|
|
3307
3307
|
overlay: Os,
|
|
3308
3308
|
calendarVisible: Us
|
|
@@ -3323,7 +3323,7 @@ const de = ({
|
|
|
3323
3323
|
firstMonthInMonthPicker: h = /* @__PURE__ */ new Date(),
|
|
3324
3324
|
zIndex: g = 1e3,
|
|
3325
3325
|
zIndexWhenClosed: b,
|
|
3326
|
-
onHideCalendar:
|
|
3326
|
+
onHideCalendar: w,
|
|
3327
3327
|
renderBelowCalendar: p,
|
|
3328
3328
|
size: D = "medium",
|
|
3329
3329
|
dateTestId: M,
|
|
@@ -3335,15 +3335,15 @@ const de = ({
|
|
|
3335
3335
|
// Sane defaults, this will be updated with actual data from DOM.
|
|
3336
3336
|
width: 336,
|
|
3337
3337
|
height: 66
|
|
3338
|
-
}), J = D === "large" ? "8.8rem" : "6.6rem", C = F(!1), q =
|
|
3338
|
+
}), J = D === "large" ? "8.8rem" : "6.6rem", C = F(!1), q = y(() => {
|
|
3339
3339
|
C.current = !0, A(!0), setTimeout(() => {
|
|
3340
3340
|
E(!0);
|
|
3341
3341
|
}, 10);
|
|
3342
|
-
}, []), O =
|
|
3343
|
-
S && (E(!1), C.current = !1,
|
|
3342
|
+
}, []), O = y(() => {
|
|
3343
|
+
S && (E(!1), C.current = !1, w == null || w(), setTimeout(() => {
|
|
3344
3344
|
C.current || A(!1);
|
|
3345
3345
|
}, 120));
|
|
3346
|
-
}, [S,
|
|
3346
|
+
}, [S, w]), z = F(null), Z = F(null);
|
|
3347
3347
|
qe(z, O), en(() => {
|
|
3348
3348
|
var xt, ke;
|
|
3349
3349
|
const B = (xt = Z.current) == null ? void 0 : xt.offsetWidth, it = (ke = Z.current) == null ? void 0 : ke.offsetHeight;
|
|
@@ -3361,7 +3361,7 @@ const de = ({
|
|
|
3361
3361
|
setVisibleMonth: lt,
|
|
3362
3362
|
setVisiblePanel: rt,
|
|
3363
3363
|
monthPickerButtonRef: st
|
|
3364
|
-
} = X, j =
|
|
3364
|
+
} = X, j = y(
|
|
3365
3365
|
(B) => {
|
|
3366
3366
|
B.key === "Escape" && O();
|
|
3367
3367
|
},
|
|
@@ -3371,7 +3371,7 @@ const de = ({
|
|
|
3371
3371
|
Y,
|
|
3372
3372
|
{
|
|
3373
3373
|
position: "relative",
|
|
3374
|
-
className:
|
|
3374
|
+
className: se.travelDateRangeInput,
|
|
3375
3375
|
ref: z,
|
|
3376
3376
|
onKeyDown: j,
|
|
3377
3377
|
height: H.height,
|
|
@@ -3408,7 +3408,7 @@ const de = ({
|
|
|
3408
3408
|
zIndex: g - 1,
|
|
3409
3409
|
left: "-2.4rem",
|
|
3410
3410
|
top: u ? "-8.0rem" : "-2.4rem",
|
|
3411
|
-
className:
|
|
3411
|
+
className: wt(se.overlay, _ && se.calendarVisible),
|
|
3412
3412
|
children: /* @__PURE__ */ o(
|
|
3413
3413
|
Y,
|
|
3414
3414
|
{
|
|
@@ -3419,7 +3419,7 @@ const de = ({
|
|
|
3419
3419
|
u && /* @__PURE__ */ o(Pt, { variant: "h2", as: m, children: u }),
|
|
3420
3420
|
/* @__PURE__ */ o(Y, { height: J }),
|
|
3421
3421
|
/* @__PURE__ */ o(
|
|
3422
|
-
|
|
3422
|
+
Vt,
|
|
3423
3423
|
{
|
|
3424
3424
|
...X,
|
|
3425
3425
|
previousMonthButtonAriaLabel: c,
|
|
@@ -3430,7 +3430,7 @@ const de = ({
|
|
|
3430
3430
|
}
|
|
3431
3431
|
),
|
|
3432
3432
|
G === "calendar" && /* @__PURE__ */ o(
|
|
3433
|
-
|
|
3433
|
+
te,
|
|
3434
3434
|
{
|
|
3435
3435
|
...X,
|
|
3436
3436
|
size: D,
|
|
@@ -3465,7 +3465,7 @@ const de = ({
|
|
|
3465
3465
|
]
|
|
3466
3466
|
}
|
|
3467
3467
|
);
|
|
3468
|
-
}, Fs = "_travelDateInput_hmfbf_1", Cs = "_overlay_hmfbf_2", js = "_calendarVisible_hmfbf_6",
|
|
3468
|
+
}, Fs = "_travelDateInput_hmfbf_1", Cs = "_overlay_hmfbf_2", js = "_calendarVisible_hmfbf_6", ie = {
|
|
3469
3469
|
travelDateInput: Fs,
|
|
3470
3470
|
overlay: Cs,
|
|
3471
3471
|
calendarVisible: js
|
|
@@ -3488,13 +3488,13 @@ const de = ({
|
|
|
3488
3488
|
};
|
|
3489
3489
|
}, [r]);
|
|
3490
3490
|
return /* @__PURE__ */ o($, { children: /* @__PURE__ */ o(
|
|
3491
|
-
|
|
3491
|
+
le,
|
|
3492
3492
|
{
|
|
3493
3493
|
mask: d,
|
|
3494
3494
|
value: t,
|
|
3495
3495
|
onValueChange: e,
|
|
3496
3496
|
onBlur: (m) => {
|
|
3497
|
-
const f =
|
|
3497
|
+
const f = de(m.target.value, r);
|
|
3498
3498
|
f && f !== t && (e == null || e(f));
|
|
3499
3499
|
},
|
|
3500
3500
|
onFocus: s,
|
|
@@ -3514,23 +3514,23 @@ const de = ({
|
|
|
3514
3514
|
() => (t == null ? void 0 : t.length) === l.length ? Dt(t, n) : void 0,
|
|
3515
3515
|
[l.length, n, t]
|
|
3516
3516
|
), u = R(
|
|
3517
|
-
() => d != null ?
|
|
3517
|
+
() => d != null ? ue(d, c, s) : void 0,
|
|
3518
3518
|
[s, d, c]
|
|
3519
3519
|
), [m, f] = I(
|
|
3520
3520
|
r ?? d ?? /* @__PURE__ */ new Date()
|
|
3521
|
-
), h =
|
|
3521
|
+
), h = y(
|
|
3522
3522
|
(S) => {
|
|
3523
3523
|
ot(S, c) || V(S, c) ? f(S) : f(c);
|
|
3524
3524
|
},
|
|
3525
3525
|
[c]
|
|
3526
3526
|
), g = R(
|
|
3527
|
-
() =>
|
|
3527
|
+
() => Xt(
|
|
3528
3528
|
m.getFullYear(),
|
|
3529
3529
|
m.getMonth(),
|
|
3530
3530
|
s
|
|
3531
3531
|
),
|
|
3532
3532
|
[s, m]
|
|
3533
|
-
), b = R(() => Bt(U(m, "MMMM yyyy", { locale: s })), [s, m]),
|
|
3533
|
+
), b = R(() => Bt(U(m, "MMMM yyyy", { locale: s })), [s, m]), w = R(() => ot(c, m), [c, m]), [p, D] = I(), [M, k] = I("calendar"), T = y(
|
|
3534
3534
|
(S) => {
|
|
3535
3535
|
const A = (S == null ? void 0 : S.length) === l.length ? Dt(S, n) : void 0;
|
|
3536
3536
|
A && h(A), e == null || e(S);
|
|
@@ -3541,7 +3541,7 @@ const de = ({
|
|
|
3541
3541
|
[c, m]
|
|
3542
3542
|
);
|
|
3543
3543
|
return {
|
|
3544
|
-
isDateDisabled:
|
|
3544
|
+
isDateDisabled: y(
|
|
3545
3545
|
(S) => !P(S, c) && ct(S, c),
|
|
3546
3546
|
[c]
|
|
3547
3547
|
),
|
|
@@ -3557,7 +3557,7 @@ const de = ({
|
|
|
3557
3557
|
setVisiblePanel: k,
|
|
3558
3558
|
setVisibleMonth: f,
|
|
3559
3559
|
visibleMonthData: g,
|
|
3560
|
-
todayIsInVisibleMonth:
|
|
3560
|
+
todayIsInVisibleMonth: w,
|
|
3561
3561
|
hoverDate: p,
|
|
3562
3562
|
setHoverDate: D,
|
|
3563
3563
|
selectedDate: d,
|
|
@@ -3582,7 +3582,7 @@ const de = ({
|
|
|
3582
3582
|
zIndexWhenClosed: h,
|
|
3583
3583
|
onHideCalendar: g,
|
|
3584
3584
|
renderBelowCalendar: b,
|
|
3585
|
-
size:
|
|
3585
|
+
size: w = "medium",
|
|
3586
3586
|
dateTestId: p,
|
|
3587
3587
|
previousMonthButtonTestId: D,
|
|
3588
3588
|
nextMonthButtonTestId: M,
|
|
@@ -3592,11 +3592,11 @@ const de = ({
|
|
|
3592
3592
|
// Sane defaults, this will be updated with actual data from DOM.
|
|
3593
3593
|
width: 336,
|
|
3594
3594
|
height: 66
|
|
3595
|
-
}), H =
|
|
3595
|
+
}), H = w === "large" ? "8.8rem" : "6.6rem", x = F(!1), J = y(() => {
|
|
3596
3596
|
x.current = !0, E(!0), setTimeout(() => {
|
|
3597
3597
|
L(!0);
|
|
3598
3598
|
}, 10);
|
|
3599
|
-
}, []), C =
|
|
3599
|
+
}, []), C = y(() => {
|
|
3600
3600
|
_ && (L(!1), x.current = !1, g == null || g(), setTimeout(() => {
|
|
3601
3601
|
x.current || E(!1);
|
|
3602
3602
|
}, 120));
|
|
@@ -3619,7 +3619,7 @@ const de = ({
|
|
|
3619
3619
|
setVisibleMonth: K,
|
|
3620
3620
|
setVisiblePanel: lt,
|
|
3621
3621
|
monthPickerButtonRef: rt
|
|
3622
|
-
} = z, st =
|
|
3622
|
+
} = z, st = y(
|
|
3623
3623
|
(j) => {
|
|
3624
3624
|
j.key === "Escape" && C();
|
|
3625
3625
|
},
|
|
@@ -3629,7 +3629,7 @@ const de = ({
|
|
|
3629
3629
|
Y,
|
|
3630
3630
|
{
|
|
3631
3631
|
position: "relative",
|
|
3632
|
-
className:
|
|
3632
|
+
className: ie.travelDateInput,
|
|
3633
3633
|
ref: q,
|
|
3634
3634
|
onKeyDown: st,
|
|
3635
3635
|
height: S.height,
|
|
@@ -3650,7 +3650,7 @@ const de = ({
|
|
|
3650
3650
|
localeCode: r,
|
|
3651
3651
|
label: n,
|
|
3652
3652
|
onFocus: J,
|
|
3653
|
-
calendarSize:
|
|
3653
|
+
calendarSize: w,
|
|
3654
3654
|
placeholderWhenBlurred: a,
|
|
3655
3655
|
variant: k
|
|
3656
3656
|
}
|
|
@@ -3664,7 +3664,7 @@ const de = ({
|
|
|
3664
3664
|
zIndex: f - 1,
|
|
3665
3665
|
left: "-2.4rem",
|
|
3666
3666
|
top: l ? "-8.0rem" : "-2.4rem",
|
|
3667
|
-
className:
|
|
3667
|
+
className: wt(ie.overlay, T && ie.calendarVisible),
|
|
3668
3668
|
children: /* @__PURE__ */ o(
|
|
3669
3669
|
Y,
|
|
3670
3670
|
{
|
|
@@ -3675,21 +3675,21 @@ const de = ({
|
|
|
3675
3675
|
l && /* @__PURE__ */ o(Pt, { variant: "h2", as: d, children: l }),
|
|
3676
3676
|
/* @__PURE__ */ o(Y, { height: H }),
|
|
3677
3677
|
/* @__PURE__ */ o(
|
|
3678
|
-
|
|
3678
|
+
Vt,
|
|
3679
3679
|
{
|
|
3680
3680
|
...z,
|
|
3681
3681
|
previousMonthButtonAriaLabel: i,
|
|
3682
3682
|
nextMonthButtonAriaLabel: c,
|
|
3683
|
-
calendarSize:
|
|
3683
|
+
calendarSize: w,
|
|
3684
3684
|
previousMonthButtonTestId: D,
|
|
3685
3685
|
nextMonthButtonTestId: M
|
|
3686
3686
|
}
|
|
3687
3687
|
),
|
|
3688
3688
|
Z === "calendar" && /* @__PURE__ */ o(
|
|
3689
|
-
|
|
3689
|
+
te,
|
|
3690
3690
|
{
|
|
3691
3691
|
...z,
|
|
3692
|
-
size:
|
|
3692
|
+
size: w,
|
|
3693
3693
|
isValidDateRange: !!W,
|
|
3694
3694
|
selectedStartDate: W,
|
|
3695
3695
|
selectedEndDate: W,
|
|
@@ -3703,7 +3703,7 @@ const de = ({
|
|
|
3703
3703
|
firstMonth: m,
|
|
3704
3704
|
numMonths: u,
|
|
3705
3705
|
value: X,
|
|
3706
|
-
size:
|
|
3706
|
+
size: w,
|
|
3707
3707
|
localeCode: r,
|
|
3708
3708
|
onValueChange: (j) => {
|
|
3709
3709
|
var B;
|
|
@@ -3741,7 +3741,7 @@ const de = ({
|
|
|
3741
3741
|
size: h = "medium",
|
|
3742
3742
|
previousMonthButtonTestId: g,
|
|
3743
3743
|
nextMonthButtonTestId: b,
|
|
3744
|
-
textInputVariant:
|
|
3744
|
+
textInputVariant: w = "standard"
|
|
3745
3745
|
}) => {
|
|
3746
3746
|
const p = Dn(
|
|
3747
3747
|
t,
|
|
@@ -3769,11 +3769,11 @@ const de = ({
|
|
|
3769
3769
|
label: n,
|
|
3770
3770
|
calendarSize: h,
|
|
3771
3771
|
placeholderWhenBlurred: a,
|
|
3772
|
-
variant:
|
|
3772
|
+
variant: w
|
|
3773
3773
|
}
|
|
3774
3774
|
),
|
|
3775
3775
|
/* @__PURE__ */ o(
|
|
3776
|
-
|
|
3776
|
+
Vt,
|
|
3777
3777
|
{
|
|
3778
3778
|
...p,
|
|
3779
3779
|
previousMonthButtonAriaLabel: i,
|
|
@@ -3784,7 +3784,7 @@ const de = ({
|
|
|
3784
3784
|
}
|
|
3785
3785
|
),
|
|
3786
3786
|
D === "calendar" && /* @__PURE__ */ o(
|
|
3787
|
-
|
|
3787
|
+
te,
|
|
3788
3788
|
{
|
|
3789
3789
|
...p,
|
|
3790
3790
|
size: h,
|
|
@@ -3831,7 +3831,7 @@ const de = ({
|
|
|
3831
3831
|
dateTestId: h,
|
|
3832
3832
|
previousMonthButtonTestId: g,
|
|
3833
3833
|
nextMonthButtonTestId: b,
|
|
3834
|
-
placeholderWhenBlurredStartDate:
|
|
3834
|
+
placeholderWhenBlurredStartDate: w,
|
|
3835
3835
|
placeholderWhenBlurredEndDate: p,
|
|
3836
3836
|
textInputVariant: D = "standard"
|
|
3837
3837
|
}) => {
|
|
@@ -3860,13 +3860,13 @@ const de = ({
|
|
|
3860
3860
|
startDateLabel: n,
|
|
3861
3861
|
endDateLabel: r,
|
|
3862
3862
|
calendarSize: f,
|
|
3863
|
-
placeholderWhenBlurredStartDate:
|
|
3863
|
+
placeholderWhenBlurredStartDate: w,
|
|
3864
3864
|
placeholderWhenBlurredEndDate: p,
|
|
3865
3865
|
variant: D
|
|
3866
3866
|
}
|
|
3867
3867
|
),
|
|
3868
3868
|
/* @__PURE__ */ o(
|
|
3869
|
-
|
|
3869
|
+
Vt,
|
|
3870
3870
|
{
|
|
3871
3871
|
...M,
|
|
3872
3872
|
previousMonthButtonAriaLabel: c,
|
|
@@ -3877,7 +3877,7 @@ const de = ({
|
|
|
3877
3877
|
}
|
|
3878
3878
|
),
|
|
3879
3879
|
k === "calendar" && /* @__PURE__ */ o(
|
|
3880
|
-
|
|
3880
|
+
te,
|
|
3881
3881
|
{
|
|
3882
3882
|
...M,
|
|
3883
3883
|
size: f,
|
|
@@ -3906,11 +3906,11 @@ const de = ({
|
|
|
3906
3906
|
] });
|
|
3907
3907
|
};
|
|
3908
3908
|
export {
|
|
3909
|
-
|
|
3909
|
+
oe as Calendar,
|
|
3910
3910
|
rn as CalendarDay,
|
|
3911
3911
|
mi as DateInput,
|
|
3912
3912
|
di as DateRangeCalendar,
|
|
3913
|
-
|
|
3913
|
+
yi as DateRangeDualTextInput,
|
|
3914
3914
|
gi as DateRangeInput,
|
|
3915
3915
|
pi as DateTextInput,
|
|
3916
3916
|
bi as DateTimeInput,
|
|
@@ -3928,7 +3928,7 @@ export {
|
|
|
3928
3928
|
vn as WeekDay,
|
|
3929
3929
|
ar as WeekDayCell,
|
|
3930
3930
|
dr as WeekNumberCell,
|
|
3931
|
-
|
|
3931
|
+
wi as YearPicker,
|
|
3932
3932
|
ht as addDayStateHighlights,
|
|
3933
3933
|
nn as addDayStateHighlightsOnSingleDay,
|
|
3934
3934
|
Zn as addWeekRangeHighlights,
|
|
@@ -3951,17 +3951,17 @@ export {
|
|
|
3951
3951
|
Et as getDateFormatForLocaleCode,
|
|
3952
3952
|
er as getDaysForWeekForDate,
|
|
3953
3953
|
ai as getDefaultLocaleForFormatting,
|
|
3954
|
-
|
|
3954
|
+
yr as getLocaleCodeForLocale,
|
|
3955
3955
|
Rt as getLocaleForLocaleCode,
|
|
3956
|
-
|
|
3956
|
+
Xt as getMonthInYear,
|
|
3957
3957
|
Oe as getMonthsInYear,
|
|
3958
3958
|
on as getSupportedLocaleCode,
|
|
3959
|
-
|
|
3959
|
+
wr as getSupportedLocaleCodeMatchingLanguage,
|
|
3960
3960
|
Me as getWeekForDate,
|
|
3961
3961
|
Vn as getWeeksForMonth,
|
|
3962
3962
|
an as isDateRangeInvalid,
|
|
3963
3963
|
Dt as parseLocalizedDateString,
|
|
3964
|
-
|
|
3964
|
+
de as reformatLocalizedDateString,
|
|
3965
3965
|
ri as setDayStateValue,
|
|
3966
3966
|
si as setDayStateValueFunction,
|
|
3967
3967
|
Br as stringsToDateRange,
|