@adyen/adyen-platform-experience-web 1.0.2 → 1.0.3
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/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/components/internal/Calendar/calendar/facade/Calendar.js +221 -211
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.js +103 -94
- package/dist/es/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.js +201 -200
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/lastNDays.js +19 -18
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.js +18 -17
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.js +17 -20
- package/dist/es/components/internal/Calendar/calendar/timerange/presets/yearToDate.js +9 -12
- package/dist/es/components/internal/Calendar/calendar/timerange/utils.js +39 -43
- package/dist/es/components/internal/Calendar/calendar/timeslice/TimeSlice.js +10 -10
- package/dist/es/components/internal/Calendar/calendar/timeslice/index.js +25 -26
- package/dist/es/components/internal/Calendar/calendar/utils.js +64 -16
- package/dist/es/components/internal/Calendar/hooks/useCalendar.js +40 -38
- package/dist/es/components/internal/Calendar/hooks/useTimezone.js +2 -2
- package/dist/es/components/internal/DatePicker/DatePicker.js +17 -16
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/AmountFilter.js +14 -14
- package/dist/es/components/internal/FilterBar/filters/AmountFilter/RangeSelection.js +19 -17
- package/dist/es/components/internal/FilterBar/filters/DateFilter/DateFilterCore.js +81 -76
- package/dist/es/core/Http/utils.js +1 -1
- package/dist/es/core/Localization/datetime/restamper/utils.js +26 -26
- package/dist/es/core/core.js +1 -1
- package/dist/es/primitives/time/today/main.js +38 -43
- package/dist/style.css +1 -1
- package/dist/types/components/internal/Calendar/calendar/facade/Calendar.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/MonthFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts +3 -3
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/TimeFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeframe/frames/YearFrame.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/lastNDays.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetMonth.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/shared/offsetWeek.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/presets/yearToDate.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts +0 -5
- package/dist/types/components/internal/Calendar/calendar/timerange/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts +2 -2
- package/dist/types/components/internal/Calendar/calendar/timeslice/TimeSlice.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/timeslice/index.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts +6 -1
- package/dist/types/components/internal/Calendar/calendar/types.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/calendar/utils.d.ts +13 -4
- package/dist/types/components/internal/Calendar/calendar/utils.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts +1 -1
- package/dist/types/components/internal/Calendar/hooks/useCalendar.d.ts.map +1 -1
- package/dist/types/components/internal/Calendar/types.d.ts +1 -0
- package/dist/types/components/internal/Calendar/types.d.ts.map +1 -1
- package/dist/types/components/internal/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/AmountFilter/RangeSelection.d.ts.map +1 -1
- package/dist/types/components/internal/FilterBar/filters/DateFilter/DateFilterCore.d.ts.map +1 -1
- package/dist/types/core/Localization/datetime/restamper/utils.d.ts.map +1 -1
- package/dist/types/primitives/time/today/main.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -1,79 +1,81 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var li = Object.defineProperty;
|
|
2
|
+
var fi = (m, i, e) => i in m ? li(m, i, { enumerable: !0, configurable: !0, writable: !0, value: e }) : m[i] = e;
|
|
3
|
+
var _t = (m, i, e) => (fi(m, typeof i != "symbol" ? i + "" : i, e), e), Ht = (m, i, e) => {
|
|
4
4
|
if (!i.has(m))
|
|
5
5
|
throw TypeError("Cannot " + e);
|
|
6
6
|
};
|
|
7
|
-
var t = (m, i, e) => (
|
|
7
|
+
var t = (m, i, e) => (Ht(m, i, "read from private field"), e ? e.call(m) : i.get(m)), h = (m, i, e) => {
|
|
8
8
|
if (i.has(m))
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
|
10
10
|
i instanceof WeakSet ? i.add(m) : i.set(m, e);
|
|
11
|
-
}, r = (m, i, e, o) => (
|
|
12
|
-
var
|
|
11
|
+
}, r = (m, i, e, o) => (Ht(m, i, "write to private field"), o ? o.call(m, e) : i.set(m, e), e);
|
|
12
|
+
var l = (m, i, e) => (Ht(m, i, "access private method"), e);
|
|
13
13
|
import { InteractionKeyCode as g } from "../../../../types.js";
|
|
14
|
-
import { SELECT_NONE as
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import
|
|
14
|
+
import { SELECT_NONE as nt, CALENDAR_CONTROLS as jt, SHIFT_BLOCK as ui, SHIFT_PERIOD as wt, SHIFT_FRAME as mi, CALENDAR_SELECTIONS as di, SELECT_MANY as Y, FRAME_SIZES as Si, FIRST_WEEK_DAYS as Ei, CURSOR_NEXT_BLOCK as Oi, CURSOR_PREV_BLOCK as Ri, CURSOR_BLOCK_END as gi, CURSOR_LINE_END as Ci, CURSOR_BLOCK_START as Ti, CURSOR_LINE_START as pi, CURSOR_DOWNWARD as ki, CURSOR_UPWARD as Fi, CURSOR_FORWARD as bi, CURSOR_BACKWARD as yi, SELECT_ONE as ct, SELECTION_FROM as O, SELECTION_TO as N, CONTROLS_NONE as Ni, CONTROLS_MINIMAL as Ai, CONTROLS_ALL as Di, SELECTION_COLLAPSE as Ii } from "../constants.js";
|
|
15
|
+
import { withTimezone as Wt } from "../utils.js";
|
|
16
|
+
import { CalendarShiftControlsFlag as Vt, CalendarShiftControlFlag as j } from "../types.js";
|
|
17
|
+
import Gt from "../../../../../primitives/time/today/main.js";
|
|
18
|
+
import { createIndexed as Mt } from "../../../../../primitives/auxiliary/indexed/main.js";
|
|
19
|
+
import { createWatchlist as Li, isWatchlistUnsubscribeToken as _i } from "../../../../../primitives/reactive/watchlist/main.js";
|
|
20
|
+
import { pickFrom as V } from "../../../../../utils/collection/main.js";
|
|
21
|
+
import { boolify as G, boolOrTrue as Xt } from "../../../../../utils/value/bool.js";
|
|
22
|
+
import { createEffectStack as qt } from "../../../../../primitives/reactive/effectStack/main.js";
|
|
23
|
+
import Hi from "../timeframe/frames/MonthFrame.js";
|
|
24
|
+
import { timezoneToSystem as lt, systemToTimezone as ft } from "../../../../../core/Localization/datetime/restamper/utils.js";
|
|
23
25
|
import { EMPTY_OBJECT as X } from "../../../../../utils/value/constants.js";
|
|
24
|
-
import { withFreezeProxyHandlers as
|
|
25
|
-
import { isNullish as
|
|
26
|
-
import { noop as
|
|
27
|
-
import { isBitSafeInteger as
|
|
28
|
-
var
|
|
29
|
-
const
|
|
26
|
+
import { withFreezeProxyHandlers as wi, structFrom as Wi, struct as Mi } from "../../../../../utils/struct/main.js";
|
|
27
|
+
import { isNullish as ut, isFunction as L, isString as Jt, isUndefined as Zt } from "../../../../../utils/value/is.js";
|
|
28
|
+
import { noop as $t } from "../../../../../utils/common.js";
|
|
29
|
+
import { isBitSafeInteger as Pi } from "../../../../../utils/value/number.js";
|
|
30
|
+
var ti, ii, u, F, s, b, C, y, E, W, R, K, D, I, T, A, U, Z, _, p, St, H, x, M, $, Et, Ot, Rt, gt, Ct, Tt, pt, kt, si, Ft, ei, bt, hi, yt, z, mt, P, q, Q, Pt, Nt, ri, At, oi, Dt, ai, It, ni, tt, Bt, Lt, ci, B, J, it, Kt, v, dt, st, Ut, et, xt, ht, zt, rt, vt;
|
|
31
|
+
const f = class f {
|
|
30
32
|
constructor() {
|
|
31
33
|
h(this, P);
|
|
32
|
-
h(this, $);
|
|
33
|
-
h(this, Ft);
|
|
34
|
-
h(this, bt);
|
|
35
|
-
h(this, Nt);
|
|
36
|
-
h(this, yt);
|
|
37
34
|
h(this, Q);
|
|
35
|
+
h(this, Nt);
|
|
38
36
|
h(this, At);
|
|
39
|
-
h(this,
|
|
37
|
+
h(this, Dt);
|
|
38
|
+
h(this, It);
|
|
40
39
|
h(this, tt);
|
|
41
|
-
h(this,
|
|
40
|
+
h(this, Lt);
|
|
41
|
+
h(this, B);
|
|
42
42
|
h(this, it);
|
|
43
|
+
h(this, v);
|
|
43
44
|
h(this, st);
|
|
44
45
|
h(this, et);
|
|
45
46
|
h(this, ht);
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
h(this,
|
|
47
|
+
h(this, rt);
|
|
48
|
+
_t(this, "grid");
|
|
49
|
+
_t(this, "kill");
|
|
50
|
+
h(this, u, X);
|
|
51
|
+
h(this, F, !1);
|
|
50
52
|
h(this, s, void 0);
|
|
51
|
-
h(this,
|
|
53
|
+
h(this, b, void 0);
|
|
52
54
|
h(this, C, void 0);
|
|
53
|
-
h(this,
|
|
54
|
-
h(this, E,
|
|
55
|
-
h(this,
|
|
55
|
+
h(this, y, !1);
|
|
56
|
+
h(this, E, nt);
|
|
57
|
+
h(this, W, !1);
|
|
56
58
|
h(this, R, void 0);
|
|
57
|
-
h(this, K, (
|
|
58
|
-
h(this,
|
|
59
|
+
h(this, K, (ti = t(this, R)) == null ? void 0 : ti.join(" "));
|
|
60
|
+
h(this, D, void 0);
|
|
59
61
|
h(this, I, void 0);
|
|
60
|
-
h(this, k, void 0);
|
|
61
|
-
h(this, y, void 0);
|
|
62
|
-
h(this, U, void 0);
|
|
63
|
-
h(this, ft, Ni());
|
|
64
|
-
h(this, L, []);
|
|
65
62
|
h(this, T, void 0);
|
|
66
|
-
h(this,
|
|
63
|
+
h(this, A, void 0);
|
|
64
|
+
h(this, U, void 0);
|
|
65
|
+
h(this, Z, Gt());
|
|
66
|
+
h(this, _, []);
|
|
67
|
+
h(this, p, void 0);
|
|
68
|
+
h(this, St, new Proxy(Mt(() => {
|
|
67
69
|
var i;
|
|
68
|
-
return ((i = t(this,
|
|
69
|
-
},
|
|
70
|
+
return ((i = t(this, p)) == null ? void 0 : i.length) ?? 0;
|
|
71
|
+
}, l(this, tt, Bt).bind(this)), wi({
|
|
70
72
|
get: (i, e, o) => {
|
|
71
|
-
var
|
|
72
|
-
const
|
|
73
|
-
return
|
|
73
|
+
var a, c;
|
|
74
|
+
const n = ((a = t(this, p)) == null ? void 0 : a.indexOf(e)) ?? -1;
|
|
75
|
+
return n >= 0 ? (c = l(this, tt, Bt).call(this, n)) == null ? void 0 : c[1] : Reflect.get(i, e, o);
|
|
74
76
|
}
|
|
75
77
|
})));
|
|
76
|
-
h(this,
|
|
78
|
+
h(this, H, Li({
|
|
77
79
|
blocks: () => {
|
|
78
80
|
var i;
|
|
79
81
|
return (i = t(this, s)) == null ? void 0 : i.size;
|
|
@@ -82,7 +84,7 @@ const l = class l {
|
|
|
82
84
|
var i;
|
|
83
85
|
return (i = t(this, s)) == null ? void 0 : i.units;
|
|
84
86
|
},
|
|
85
|
-
controls: () =>
|
|
87
|
+
controls: () => V(jt, t(this, u).controls),
|
|
86
88
|
cursor: () => {
|
|
87
89
|
var i;
|
|
88
90
|
return (i = t(this, s)) == null ? void 0 : i.cursor;
|
|
@@ -96,27 +98,31 @@ const l = class l {
|
|
|
96
98
|
var i;
|
|
97
99
|
return (i = t(this, s)) == null ? void 0 : i.locale;
|
|
98
100
|
},
|
|
99
|
-
minified: () =>
|
|
101
|
+
minified: () => G(t(this, u).minified),
|
|
100
102
|
origin: () => {
|
|
101
103
|
var i;
|
|
102
104
|
return (i = t(this, s)) == null ? void 0 : i.getTimestampAtIndex(0);
|
|
103
105
|
},
|
|
106
|
+
timezone: () => {
|
|
107
|
+
var i;
|
|
108
|
+
return (i = t(this, s)) == null ? void 0 : i.timezone;
|
|
109
|
+
},
|
|
104
110
|
to: () => {
|
|
105
111
|
var i;
|
|
106
112
|
return (i = t(this, s)) == null ? void 0 : i.selectionEnd;
|
|
107
113
|
},
|
|
108
|
-
today: () => t(this,
|
|
114
|
+
today: () => t(this, Z).timestamp
|
|
109
115
|
}));
|
|
110
|
-
h(this, x, (
|
|
111
|
-
h(this, M,
|
|
116
|
+
h(this, x, (ii = t(this, H)) == null ? void 0 : ii.snapshot);
|
|
117
|
+
h(this, M, qt(() => {
|
|
112
118
|
var i;
|
|
113
|
-
return t(this,
|
|
119
|
+
return t(this, T) && ((i = t(this, H)) == null ? void 0 : i.requestNotification());
|
|
114
120
|
}));
|
|
115
|
-
h(this,
|
|
121
|
+
h(this, $, qt(() => {
|
|
116
122
|
var i;
|
|
117
|
-
return (i = t(this,
|
|
123
|
+
return (i = t(this, T)) == null ? void 0 : i.call(t(this, P, q));
|
|
118
124
|
}));
|
|
119
|
-
h(this,
|
|
125
|
+
h(this, Et, Wi(Mt(() => {
|
|
120
126
|
var i;
|
|
121
127
|
return ((i = t(this, s)) == null ? void 0 : i.size) ?? 0;
|
|
122
128
|
}, (i) => {
|
|
@@ -124,43 +130,43 @@ const l = class l {
|
|
|
124
130
|
return (e = t(this, s)) == null ? void 0 : e.frameBlocks[i];
|
|
125
131
|
}), {
|
|
126
132
|
config: {
|
|
127
|
-
value: Object.defineProperties((i) => (i &&
|
|
133
|
+
value: Object.defineProperties((i) => (i && l(this, At, oi).call(this, i), t(this, P, q)), {
|
|
128
134
|
cursorIndex: {
|
|
129
|
-
get: () => t(this,
|
|
135
|
+
get: () => t(this, D),
|
|
130
136
|
set: (i) => {
|
|
131
|
-
t(this,
|
|
137
|
+
t(this, F) || (ut(i) ? r(this, D, void 0) : L(i) && r(this, D, i));
|
|
132
138
|
}
|
|
133
139
|
},
|
|
134
140
|
shiftFactor: {
|
|
135
141
|
get: () => t(this, I),
|
|
136
142
|
set: (i) => {
|
|
137
|
-
t(this,
|
|
143
|
+
t(this, F) || (ut(i) ? r(this, I, void 0) : L(i) && r(this, I, i));
|
|
138
144
|
}
|
|
139
145
|
},
|
|
140
146
|
watch: {
|
|
141
|
-
get: () => t(this,
|
|
147
|
+
get: () => t(this, T),
|
|
142
148
|
set: (i) => {
|
|
143
|
-
var e, o,
|
|
144
|
-
if (!t(this,
|
|
145
|
-
if (
|
|
146
|
-
if (r(this,
|
|
147
|
-
const d = (e = t(this, M)) == null ? void 0 : e.bind(t(
|
|
148
|
-
d && (r(this,
|
|
149
|
+
var e, o, n, a, c;
|
|
150
|
+
if (!t(this, F))
|
|
151
|
+
if (L(i)) {
|
|
152
|
+
if (r(this, T, i), !t(this, A)) {
|
|
153
|
+
const d = (e = t(this, M)) == null ? void 0 : e.bind(t(f, yt).bind(this));
|
|
154
|
+
d && (r(this, A, (o = t(this, M)) == null ? void 0 : o.bind($t)), r(this, U, (a = t(this, H)) == null ? void 0 : a.subscribe((n = t(this, $)) == null ? void 0 : n.bind(d))), t(this, s) && (t(this, s).effect = t(this, A)));
|
|
149
155
|
}
|
|
150
|
-
if (!t(this,
|
|
156
|
+
if (!t(this, W))
|
|
151
157
|
return;
|
|
152
|
-
r(this,
|
|
158
|
+
r(this, W, !1), (c = t(this, A)) == null || c.call(this);
|
|
153
159
|
} else
|
|
154
|
-
|
|
160
|
+
ut(i) && r(this, T, void 0);
|
|
155
161
|
}
|
|
156
162
|
}
|
|
157
163
|
})
|
|
158
164
|
},
|
|
159
165
|
controls: {
|
|
160
|
-
value: t(this,
|
|
166
|
+
value: t(this, St)
|
|
161
167
|
},
|
|
162
168
|
cursor: {
|
|
163
|
-
value: Object.defineProperties((i) =>
|
|
169
|
+
value: Object.defineProperties((i) => l(f, z, mt).call(this, (e) => !!(e && l(this, Dt, ai).call(this, e)))(i), {
|
|
164
170
|
valueOf: {
|
|
165
171
|
value: () => {
|
|
166
172
|
var i;
|
|
@@ -171,22 +177,22 @@ const l = class l {
|
|
|
171
177
|
},
|
|
172
178
|
highlight: {
|
|
173
179
|
value: (() => {
|
|
174
|
-
const i = () => t(this,
|
|
175
|
-
var
|
|
176
|
-
if (!(t(this,
|
|
177
|
-
if (
|
|
178
|
-
return
|
|
179
|
-
i() ? (d = t(this, s)) == null || d.updateSelection(
|
|
180
|
+
const i = () => t(this, b) === t(this, C) && Zt(t(this, C)), e = (o) => (n) => l(f, z, mt).call(this, (a) => {
|
|
181
|
+
var c, d, S, k, w;
|
|
182
|
+
if (!(t(this, F) || !t(this, E) || t(this, E) === nt)) {
|
|
183
|
+
if (ut(a))
|
|
184
|
+
return l(this, it, Kt).call(this);
|
|
185
|
+
i() ? (d = t(this, s)) == null || d.updateSelection(a, Ii) : ((c = t(this, s)) == null || c.updateSelection(a, o), t(this, E) === Y && t(this, R) && l(this, v, dt).call(this, a, o === O ? N : O, t(this, R))), r(this, b, (S = t(this, s)) == null ? void 0 : S.selectionStart), r(this, C, (k = t(this, s)) == null ? void 0 : k.selectionEnd), (w = t(this, s)) == null || w.shiftFrameToTimestamp(o === O ? t(this, b) : t(this, C));
|
|
180
186
|
}
|
|
181
|
-
})(
|
|
182
|
-
return
|
|
187
|
+
})(n);
|
|
188
|
+
return Mi({
|
|
183
189
|
blank: {
|
|
184
190
|
get: i
|
|
185
191
|
},
|
|
186
192
|
from: {
|
|
187
193
|
get: () => {
|
|
188
194
|
var o;
|
|
189
|
-
return ((o = t(this, s)) == null ? void 0 : o.selectionStart) ?? t(this,
|
|
195
|
+
return ((o = t(this, s)) == null ? void 0 : o.selectionStart) ?? t(this, b);
|
|
190
196
|
},
|
|
191
197
|
set: e(O)
|
|
192
198
|
},
|
|
@@ -209,231 +215,235 @@ const l = class l {
|
|
|
209
215
|
weekdays: {
|
|
210
216
|
get: () => {
|
|
211
217
|
var i;
|
|
212
|
-
return ((i = t(this, s)) == null ? void 0 : i.daysOfWeek) ?? t(
|
|
218
|
+
return ((i = t(this, s)) == null ? void 0 : i.daysOfWeek) ?? t(f, gt);
|
|
213
219
|
}
|
|
214
220
|
}
|
|
215
221
|
}));
|
|
216
|
-
this.grid = t(this,
|
|
222
|
+
this.grid = t(this, Et), this.kill = l(this, It, ni).bind(this);
|
|
217
223
|
}
|
|
218
224
|
};
|
|
219
|
-
|
|
220
|
-
if (!
|
|
225
|
+
u = new WeakMap(), F = new WeakMap(), s = new WeakMap(), b = new WeakMap(), C = new WeakMap(), y = new WeakMap(), E = new WeakMap(), W = new WeakMap(), R = new WeakMap(), K = new WeakMap(), D = new WeakMap(), I = new WeakMap(), T = new WeakMap(), A = new WeakMap(), U = new WeakMap(), Z = new WeakMap(), _ = new WeakMap(), p = new WeakMap(), St = new WeakMap(), H = new WeakMap(), x = new WeakMap(), M = new WeakMap(), $ = new WeakMap(), Et = new WeakMap(), Ot = new WeakMap(), Rt = new WeakMap(), gt = new WeakMap(), Ct = new WeakMap(), Tt = new WeakMap(), pt = new WeakMap(), kt = new WeakSet(), si = function(i) {
|
|
226
|
+
if (!Jt(i) || !t(f, Ot).test(i))
|
|
221
227
|
return;
|
|
222
228
|
const e = i.split(/\s+/);
|
|
223
229
|
return Array.from({
|
|
224
230
|
length: 6
|
|
225
|
-
}, (o,
|
|
226
|
-
},
|
|
227
|
-
switch (i & ~
|
|
228
|
-
case
|
|
229
|
-
return
|
|
230
|
-
case
|
|
231
|
-
return
|
|
232
|
-
case
|
|
231
|
+
}, (o, n) => parseInt(e[n] ?? "0"));
|
|
232
|
+
}, Ft = new WeakSet(), ei = function(i) {
|
|
233
|
+
switch (i & ~j.PREV) {
|
|
234
|
+
case j.FRAME:
|
|
235
|
+
return mi;
|
|
236
|
+
case j.PERIOD:
|
|
237
|
+
return wt;
|
|
238
|
+
case j.BLOCK:
|
|
233
239
|
default:
|
|
234
|
-
return
|
|
240
|
+
return ui;
|
|
235
241
|
}
|
|
236
|
-
},
|
|
237
|
-
return i &
|
|
238
|
-
},
|
|
242
|
+
}, bt = new WeakSet(), hi = function(i) {
|
|
243
|
+
return i & j.PREV ? -1 : 1;
|
|
244
|
+
}, yt = new WeakMap(), z = new WeakSet(), mt = function(i) {
|
|
239
245
|
var e;
|
|
240
246
|
return ((e = t(this, M)) == null ? void 0 : e.bind(i)) ?? i;
|
|
241
247
|
}, P = new WeakSet(), q = function() {
|
|
242
248
|
return {
|
|
243
|
-
...t(this,
|
|
249
|
+
...t(this, u)
|
|
244
250
|
};
|
|
245
|
-
},
|
|
246
|
-
return new
|
|
247
|
-
},
|
|
251
|
+
}, Q = new WeakSet(), Pt = function() {
|
|
252
|
+
return new Hi();
|
|
253
|
+
}, Nt = new WeakSet(), ri = function(i) {
|
|
248
254
|
return !!t(this, s) && !(i > 0 ? t(this, s).isAtEnd : t(this, s).isAtStart);
|
|
249
|
-
},
|
|
250
|
-
var
|
|
251
|
-
if (t(this,
|
|
255
|
+
}, At = new WeakSet(), oi = function(i) {
|
|
256
|
+
var n, a;
|
|
257
|
+
if (t(this, F))
|
|
252
258
|
return;
|
|
253
259
|
r(this, R, void 0);
|
|
254
|
-
const e = i == null ? void 0 : i.highlight, o =
|
|
255
|
-
if (
|
|
256
|
-
...t(this,
|
|
260
|
+
const e = i == null ? void 0 : i.highlight, o = G(t(this, u).minified);
|
|
261
|
+
if (Jt(e) ? r(this, R, l(n = f, kt, si).call(n, e)) && r(this, E, Y) : r(this, E, V(di, e, t(this, E))), r(this, u, {
|
|
262
|
+
...t(this, u),
|
|
257
263
|
...i,
|
|
258
|
-
blocks:
|
|
259
|
-
controls:
|
|
260
|
-
firstWeekDay:
|
|
261
|
-
fixedBlockHeight:
|
|
264
|
+
blocks: V(Si, i == null ? void 0 : i.blocks, t(this, u).blocks),
|
|
265
|
+
controls: V(jt, i == null ? void 0 : i.controls, t(this, u).controls),
|
|
266
|
+
firstWeekDay: V(Ei, i == null ? void 0 : i.firstWeekDay, t(this, u).firstWeekDay),
|
|
267
|
+
fixedBlockHeight: G(i == null ? void 0 : i.fixedBlockHeight, t(this, u).fixedBlockHeight),
|
|
262
268
|
highlight: t(this, E),
|
|
263
|
-
minified:
|
|
264
|
-
trackCurrentDay:
|
|
265
|
-
}), !
|
|
266
|
-
t(this, s) ? r(this,
|
|
269
|
+
minified: G(i == null ? void 0 : i.minified, t(this, u).minified),
|
|
270
|
+
trackCurrentDay: G(i == null ? void 0 : i.trackCurrentDay, t(this, u).trackCurrentDay)
|
|
271
|
+
}), !L(t(this, T))) {
|
|
272
|
+
t(this, s) ? r(this, W, !0) : (r(this, s, t(this, Q, Pt)), l(this, et, xt).call(this), l(this, rt, vt).call(this), l(this, ht, zt).call(this));
|
|
267
273
|
return;
|
|
268
274
|
}
|
|
269
|
-
(!t(this, s) || o !== t(this,
|
|
270
|
-
},
|
|
271
|
-
if (i && t(this, s) &&
|
|
275
|
+
(!t(this, s) || o !== t(this, u).minified) && (r(this, s, t(this, Q, Pt)), t(this, s).effect = t(this, A)), l(this, et, xt).call(this), (a = t(this, A)) == null || a.call(this);
|
|
276
|
+
}, Dt = new WeakSet(), ai = function(i) {
|
|
277
|
+
if (i && t(this, s) && L(t(this, T))) {
|
|
272
278
|
if (i instanceof KeyboardEvent) {
|
|
273
279
|
switch (i.code) {
|
|
274
280
|
case g.ARROW_LEFT:
|
|
275
|
-
t(this, s).shiftFrameCursor(
|
|
281
|
+
t(this, s).shiftFrameCursor(yi);
|
|
276
282
|
break;
|
|
277
283
|
case g.ARROW_RIGHT:
|
|
278
|
-
t(this, s).shiftFrameCursor(
|
|
284
|
+
t(this, s).shiftFrameCursor(bi);
|
|
279
285
|
break;
|
|
280
286
|
case g.ARROW_UP:
|
|
281
|
-
t(this, s).shiftFrameCursor(
|
|
287
|
+
t(this, s).shiftFrameCursor(Fi);
|
|
282
288
|
break;
|
|
283
289
|
case g.ARROW_DOWN:
|
|
284
|
-
t(this, s).shiftFrameCursor(
|
|
290
|
+
t(this, s).shiftFrameCursor(ki);
|
|
285
291
|
break;
|
|
286
292
|
case g.HOME:
|
|
287
|
-
t(this, s).shiftFrameCursor(i.ctrlKey ?
|
|
293
|
+
t(this, s).shiftFrameCursor(i.ctrlKey ? Ti : pi);
|
|
288
294
|
break;
|
|
289
295
|
case g.END:
|
|
290
|
-
t(this, s).shiftFrameCursor(i.ctrlKey ?
|
|
296
|
+
t(this, s).shiftFrameCursor(i.ctrlKey ? gi : Ci);
|
|
291
297
|
break;
|
|
292
298
|
case g.PAGE_UP:
|
|
293
|
-
i.shiftKey ? t(this, s).shiftFrameByOffset(-1,
|
|
299
|
+
i.shiftKey ? t(this, s).shiftFrameByOffset(-1, wt) : t(this, s).shiftFrameCursor(Ri);
|
|
294
300
|
break;
|
|
295
301
|
case g.PAGE_DOWN:
|
|
296
|
-
i.shiftKey ? t(this, s).shiftFrameByOffset(1,
|
|
302
|
+
i.shiftKey ? t(this, s).shiftFrameByOffset(1, wt) : t(this, s).shiftFrameCursor(Oi);
|
|
297
303
|
break;
|
|
298
304
|
case g.SPACE:
|
|
299
305
|
case g.ENTER:
|
|
300
|
-
return
|
|
306
|
+
return l(this, B, J).call(this), !0;
|
|
301
307
|
default:
|
|
302
308
|
return;
|
|
303
309
|
}
|
|
304
|
-
return t(this,
|
|
310
|
+
return t(this, y) && l(this, B, J).call(this, X), !0;
|
|
305
311
|
}
|
|
306
|
-
if (i instanceof MouseEvent && t(
|
|
307
|
-
const e = t(this,
|
|
308
|
-
if (!
|
|
312
|
+
if (i instanceof MouseEvent && t(f, Rt).includes(i.type) && L(t(this, D))) {
|
|
313
|
+
const e = t(this, D).call(t(this, P, q), i);
|
|
314
|
+
if (!Pi(e))
|
|
309
315
|
return;
|
|
310
316
|
const o = i.type === "click";
|
|
311
|
-
if (!(o || t(this,
|
|
317
|
+
if (!(o || t(this, y)))
|
|
312
318
|
return;
|
|
313
319
|
if (t(this, s).shiftFrameCursor(e), t(this, s).cursor === e)
|
|
314
|
-
return o ?
|
|
320
|
+
return o ? l(this, B, J).call(this) : l(this, B, J).call(this, X), !0;
|
|
315
321
|
}
|
|
316
322
|
}
|
|
317
|
-
},
|
|
323
|
+
}, It = new WeakSet(), ni = function() {
|
|
318
324
|
var i;
|
|
319
|
-
t(this,
|
|
320
|
-
},
|
|
321
|
-
var o,
|
|
322
|
-
if (!t(this,
|
|
325
|
+
t(this, F) || ((i = t(this, U)) == null || i.call(this), r(this, M, r(this, $, r(this, D, r(this, s, r(this, E, r(this, K, r(this, x, r(this, R, r(this, I, r(this, U, r(this, H, r(this, A, r(this, T, void 0))))))))))))), r(this, u, X), r(this, y, r(this, W, !1)), r(this, F, !0));
|
|
326
|
+
}, tt = new WeakSet(), Bt = function(i) {
|
|
327
|
+
var o, n;
|
|
328
|
+
if (!t(this, p) || i < 0 || i >= t(this, p).length)
|
|
323
329
|
return;
|
|
324
|
-
const e = t(this,
|
|
325
|
-
if (!t(this,
|
|
326
|
-
const
|
|
327
|
-
t(this,
|
|
328
|
-
var
|
|
329
|
-
const
|
|
330
|
-
if (!(
|
|
331
|
-
return
|
|
332
|
-
const
|
|
333
|
-
return
|
|
330
|
+
const e = t(this, p)[i];
|
|
331
|
+
if (!t(this, _)[i]) {
|
|
332
|
+
const a = Vt[e], c = l(o = f, Ft, ei).call(o, a), d = l(n = f, bt, hi).call(n, a);
|
|
333
|
+
t(this, _)[i] = (...S) => l(f, z, mt).call(this, (...k) => {
|
|
334
|
+
var at;
|
|
335
|
+
const w = l(this, Nt, ri).call(this, d);
|
|
336
|
+
if (!(w && k.length))
|
|
337
|
+
return w;
|
|
338
|
+
const ot = l(this, Lt, ci).call(this, e, k[0]);
|
|
339
|
+
return Zt(ot) ? !1 : ((at = t(this, s)) == null || at.shiftFrameByOffset(d * ot, c), !0);
|
|
334
340
|
})(...S);
|
|
335
341
|
}
|
|
336
|
-
return [e, t(this,
|
|
337
|
-
},
|
|
338
|
-
if (!(t(this, s) &&
|
|
342
|
+
return [e, t(this, _)[i]];
|
|
343
|
+
}, Lt = new WeakSet(), ci = function(i, e) {
|
|
344
|
+
if (!(t(this, s) && L(t(this, T))))
|
|
339
345
|
return;
|
|
340
346
|
if (e instanceof MouseEvent) {
|
|
341
347
|
if (e.type !== "click")
|
|
342
348
|
return;
|
|
343
349
|
} else if (e instanceof KeyboardEvent) {
|
|
344
|
-
if (!t(
|
|
350
|
+
if (!t(f, Ct).includes(e.code))
|
|
345
351
|
return;
|
|
346
352
|
} else
|
|
347
353
|
return;
|
|
348
354
|
let o = 1;
|
|
349
|
-
if (
|
|
350
|
-
const
|
|
351
|
-
o = Number.isInteger(
|
|
355
|
+
if (L(t(this, I))) {
|
|
356
|
+
const n = Number(t(this, I).call(t(this, P, q), e, i));
|
|
357
|
+
o = Number.isInteger(n) && n >= 1 ? n : o;
|
|
352
358
|
}
|
|
353
359
|
return o;
|
|
354
360
|
}, B = new WeakSet(), J = function(i) {
|
|
355
|
-
if (t(this,
|
|
361
|
+
if (t(this, F) || !t(this, s))
|
|
356
362
|
return;
|
|
357
363
|
switch (t(this, E)) {
|
|
358
|
-
case
|
|
359
|
-
case
|
|
364
|
+
case Y:
|
|
365
|
+
case ct:
|
|
360
366
|
break;
|
|
361
|
-
case
|
|
367
|
+
case nt:
|
|
362
368
|
default:
|
|
363
369
|
return;
|
|
364
370
|
}
|
|
365
|
-
const e = t(this, s).cursor, o = Math.max(t(this, s).getTimestampAtIndex(e), t(this, s).timeslice.from),
|
|
366
|
-
if (t(this, E) ===
|
|
367
|
-
if (r(this,
|
|
368
|
-
const
|
|
369
|
-
|
|
371
|
+
const e = t(this, s).cursor, o = Math.max(t(this, s).getTimestampAtIndex(e), t(this, s).timeslice.from), n = Math.min(t(this, s).getTimestampAtIndex(e + 1) - 1, t(this, s).timeslice.to), a = t(this, R);
|
|
372
|
+
if (t(this, E) === ct || t(this, s).blankSelection || a)
|
|
373
|
+
if (r(this, y, !(t(this, E) === ct || a)), t(this, E) === Y && a) {
|
|
374
|
+
const c = n >= t(this, s).selectionEnd ? O : N;
|
|
375
|
+
c === O ? t(this, s).updateSelection(n, N) : t(this, s).updateSelection(o, O), l(this, v, dt).call(this, c === O ? t(this, s).selectionEnd : t(this, s).selectionStart, c, a);
|
|
370
376
|
} else
|
|
371
|
-
t(this, s).updateSelection(o, O), t(this, s).updateSelection(
|
|
377
|
+
t(this, s).updateSelection(o, O), t(this, s).updateSelection(n, N);
|
|
372
378
|
else {
|
|
373
|
-
const
|
|
374
|
-
if (
|
|
375
|
-
const
|
|
376
|
-
o === t(this, s).selectionStart &&
|
|
379
|
+
const c = i === X, d = Wt(t(this, s).timezone);
|
|
380
|
+
if (c || r(this, y, !1), o <= t(this, s).selectionStart) {
|
|
381
|
+
const S = new Date(lt(d, t(this, s).selectionStart)), k = Math.min(ft(d, S.setDate(S.getDate() + 1) - 1), t(this, s).timeslice.to);
|
|
382
|
+
o === t(this, s).selectionStart && n <= k && t(this, s).updateSelection(n, N), t(this, s).updateSelection(o, O);
|
|
377
383
|
} else {
|
|
378
|
-
const
|
|
379
|
-
o <= t(this, s).selectionEnd && o >=
|
|
384
|
+
const S = new Date(lt(d, t(this, s).selectionEnd)), k = Math.max(ft(d, S.setHours(0, 0, 0, 0)), t(this, s).timeslice.from);
|
|
385
|
+
o <= t(this, s).selectionEnd && o >= k && t(this, s).updateSelection(o, O), t(this, s).updateSelection(n, N);
|
|
380
386
|
}
|
|
381
|
-
if (
|
|
387
|
+
if (c)
|
|
382
388
|
return;
|
|
383
389
|
}
|
|
384
|
-
r(this,
|
|
385
|
-
},
|
|
390
|
+
r(this, b, t(this, s).selectionStart), r(this, C, t(this, s).selectionEnd);
|
|
391
|
+
}, it = new WeakSet(), Kt = function() {
|
|
386
392
|
var i;
|
|
387
|
-
(i = t(this, s)) == null || i.clearSelection(), r(this,
|
|
388
|
-
},
|
|
393
|
+
(i = t(this, s)) == null || i.clearSelection(), r(this, y, !1), r(this, b, r(this, C, void 0));
|
|
394
|
+
}, v = new WeakSet(), dt = function(i, e, o) {
|
|
395
|
+
var Yt;
|
|
389
396
|
if (!t(this, s))
|
|
390
397
|
return;
|
|
391
|
-
const a = new Date(i),
|
|
392
|
-
a.setFullYear(a.getFullYear() +
|
|
393
|
-
},
|
|
398
|
+
const n = Wt((Yt = t(this, s)) == null ? void 0 : Yt.timezone), a = new Date(lt(n, i)), c = e === O ? -1 : 1, [d = 0, S = 0, k = 0, w = 0, ot = 0, at = 0] = o ?? [];
|
|
399
|
+
a.setFullYear(a.getFullYear() + d * c, a.getMonth() + S * c, a.getDate() + k * c), a.setHours(a.getHours() + w * c, a.getMinutes() + ot * c, a.getSeconds() + at * c), t(this, s).updateSelection(ft(n, a.getTime() - c), e);
|
|
400
|
+
}, st = new WeakSet(), Ut = function() {
|
|
394
401
|
var i, e;
|
|
395
|
-
t(this,
|
|
396
|
-
},
|
|
397
|
-
t(this, s) && (t(this, s).timeslice = t(this,
|
|
398
|
-
},
|
|
399
|
-
var i, e, o, a,
|
|
402
|
+
t(this, b) && ((i = t(this, s)) == null || i.updateSelection(t(this, b), O)), t(this, C) && ((e = t(this, s)) == null || e.updateSelection(t(this, C), N)), r(this, y, !1);
|
|
403
|
+
}, et = new WeakSet(), xt = function() {
|
|
404
|
+
t(this, s) && (t(this, s).timeslice = t(this, u).timeslice, t(this, s).dynamicBlockHeight = !t(this, u).fixedBlockHeight, t(this, s).firstWeekDay = t(this, u).firstWeekDay, t(this, s).locale = t(this, u).locale, t(this, s).size = t(this, u).blocks, t(this, s).timezone = t(this, u).timezone, t(this, s).trackCurrentDay = t(this, u).trackCurrentDay, r(this, Z, Gt(t(this, s).timezone)), l(this, st, Ut).call(this));
|
|
405
|
+
}, ht = new WeakSet(), zt = function() {
|
|
406
|
+
var i, e, o, n, a, c;
|
|
400
407
|
switch (t(this, E)) {
|
|
401
|
-
case
|
|
402
|
-
!
|
|
408
|
+
case Y:
|
|
409
|
+
!Xt((i = t(this, s)) == null ? void 0 : i.blankSelection) && t(this, R) && l(this, v, dt).call(this, (e = t(this, s)) == null ? void 0 : e.selectionStart, N, t(this, R));
|
|
403
410
|
break;
|
|
404
|
-
case
|
|
405
|
-
|
|
411
|
+
case ct:
|
|
412
|
+
if (!Xt((o = t(this, s)) == null ? void 0 : o.blankSelection)) {
|
|
413
|
+
const d = Wt((n = t(this, s)) == null ? void 0 : n.timezone), S = new Date(lt(d, (a = t(this, s)) == null ? void 0 : a.selectionStart));
|
|
414
|
+
(c = t(this, s)) == null || c.updateSelection(ft(d, S.setHours(23, 59, 59, 999)), N);
|
|
415
|
+
}
|
|
406
416
|
break;
|
|
407
|
-
case
|
|
417
|
+
case nt:
|
|
408
418
|
default:
|
|
409
|
-
|
|
419
|
+
l(this, it, Kt).call(this);
|
|
410
420
|
return;
|
|
411
421
|
}
|
|
412
|
-
},
|
|
422
|
+
}, rt = new WeakSet(), vt = function() {
|
|
413
423
|
var i, e;
|
|
414
|
-
switch ((i = t(this,
|
|
415
|
-
case
|
|
416
|
-
r(this,
|
|
424
|
+
switch ((i = t(this, H)) == null ? void 0 : i.snapshot.controls) {
|
|
425
|
+
case Di:
|
|
426
|
+
r(this, p, t(f, Tt));
|
|
417
427
|
break;
|
|
418
|
-
case
|
|
419
|
-
r(this,
|
|
428
|
+
case Ai:
|
|
429
|
+
r(this, p, t(f, pt));
|
|
420
430
|
break;
|
|
421
|
-
case
|
|
431
|
+
case Ni:
|
|
422
432
|
default:
|
|
423
|
-
r(this,
|
|
433
|
+
r(this, p, void 0);
|
|
424
434
|
}
|
|
425
|
-
t(this,
|
|
426
|
-
}, h(
|
|
427
|
-
var
|
|
428
|
-
if (
|
|
435
|
+
t(this, _).length = 0, t(this, _).length = ((e = t(this, p)) == null ? void 0 : e.length) ?? 0;
|
|
436
|
+
}, h(f, kt), h(f, Ft), h(f, bt), h(f, z), h(f, Ot, /^(?:0|[1-9]\d*)(\s+(?:0|[1-9]\d*)?){0,5}?$/), h(f, Rt, ["click", "mouseover", "pointerover"]), h(f, gt, Mt(0, $t)), h(f, Ct, [g.ENTER, g.SPACE]), h(f, Tt, Object.keys(Vt).filter((i) => isNaN(+i))), h(f, pt, ["PREV", "NEXT"]), h(f, yt, function(i) {
|
|
437
|
+
var c, d;
|
|
438
|
+
if (_i(i))
|
|
429
439
|
return;
|
|
430
|
-
let e = !1, o = !1,
|
|
431
|
-
const
|
|
440
|
+
let e = !1, o = !1, n = !1;
|
|
441
|
+
const a = (c = t(this, R)) == null ? void 0 : c.join(" ");
|
|
432
442
|
for (const S of Object.keys(i))
|
|
433
|
-
i[S] !== ((d = t(this, x)) == null ? void 0 : d[S]) && (S === "controls" ? e = !0 : S === "highlight" ? o = !0 : (S === "from" || S === "to") && (
|
|
434
|
-
t(this, K) !==
|
|
443
|
+
i[S] !== ((d = t(this, x)) == null ? void 0 : d[S]) && (S === "controls" ? e = !0 : S === "highlight" ? o = !0 : (S === "from" || S === "to") && (n = !0));
|
|
444
|
+
t(this, K) !== a && (r(this, K, a), o = !0), r(this, x, i), t(this, y) && !n && l(this, st, Ut).call(this), e && l(this, rt, vt).call(this), o && l(this, ht, zt).call(this);
|
|
435
445
|
});
|
|
436
|
-
let
|
|
446
|
+
let Qt = f;
|
|
437
447
|
export {
|
|
438
|
-
|
|
448
|
+
Qt as default
|
|
439
449
|
};
|