overview-components 1.0.97 → 1.0.99
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.d.ts +27 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10180 -40
- package/dist/shared/lit-icon-button.d.ts +1 -1
- package/dist/shared/lit-icon-button.d.ts.map +1 -1
- package/dist/shared/lit-loading-bar.d.ts +3 -3
- package/dist/shared/lit-loading-bar.d.ts.map +1 -1
- package/dist/style.css +1 -0
- package/package.json +1 -1
- package/dist/_virtual/FileSaver.min.js +0 -4
- package/dist/_virtual/_commonjsHelpers.js +0 -8
- package/dist/_virtual/lodash.js +0 -4
- package/dist/assets/generated/locales/de.js +0 -73
- package/dist/assets/generated/locales/en.js +0 -73
- package/dist/assets/generated/locales/fr.js +0 -73
- package/dist/assets/generated/locales/hr.js +0 -73
- package/dist/assets/generated/locales/it.js +0 -73
- package/dist/assets/generated/locales/pl.js +0 -73
- package/dist/assets/generated/locales/ro.js +0 -73
- package/dist/assets/generated/locales/sk.js +0 -73
- package/dist/assets/generated/locales/sr.js +0 -73
- package/dist/components/lit-attachments-tab.js +0 -519
- package/dist/components/lit-badge.js +0 -100
- package/dist/components/lit-case-variables-tab.js +0 -727
- package/dist/components/lit-chart.js +0 -395
- package/dist/components/lit-data-grid-tanstack.js +0 -1733
- package/dist/components/lit-filter-modal.js +0 -312
- package/dist/components/lit-multiselect-item.js +0 -530
- package/dist/components/lit-section-tab.js +0 -133
- package/dist/components/lit-tabs-overview.js +0 -304
- package/dist/components/react-wrappers/attachments-tab.js +0 -14
- package/dist/components/react-wrappers/badge.js +0 -14
- package/dist/components/react-wrappers/button.js +0 -14
- package/dist/components/react-wrappers/case-variables-tab.js +0 -14
- package/dist/components/react-wrappers/chart.js +0 -14
- package/dist/components/react-wrappers/data-grid-tanstack.js +0 -14
- package/dist/components/react-wrappers/filter-modal.js +0 -14
- package/dist/components/react-wrappers/progress-bar.js +0 -14
- package/dist/components/react-wrappers/section-tab.js +0 -14
- package/dist/components/react-wrappers/tabs-overview.js +0 -14
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -432
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -306
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -127
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -127
- package/dist/node_modules/@kurkle/color/dist/color.esm.js +0 -448
- package/dist/node_modules/@lit/localize/init/install.js +0 -11
- package/dist/node_modules/@lit/localize/init/runtime.js +0 -42
- package/dist/node_modules/@lit/localize/internal/default-msg.js +0 -10
- package/dist/node_modules/@lit/localize/internal/deferred.js +0 -21
- package/dist/node_modules/@lit/localize/internal/fnv1a64.js +0 -17
- package/dist/node_modules/@lit/localize/internal/id-generation.js +0 -14
- package/dist/node_modules/@lit/localize/internal/locale-status-event.js +0 -9
- package/dist/node_modules/@lit/localize/internal/runtime-msg.js +0 -42
- package/dist/node_modules/@lit/localize/internal/str-tag.js +0 -15
- package/dist/node_modules/@lit/react/create-component.js +0 -35
- package/dist/node_modules/@lit/reactive-element/css-tag.js +0 -50
- package/dist/node_modules/@lit/reactive-element/decorators/base.js +0 -9
- package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -13
- package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -37
- package/dist/node_modules/@lit/reactive-element/decorators/query.js +0 -20
- package/dist/node_modules/@lit/reactive-element/decorators/state.js +0 -12
- package/dist/node_modules/@lit/reactive-element/reactive-element.js +0 -250
- package/dist/node_modules/@tanstack/lit-table/build/lib/index.js +0 -104
- package/dist/node_modules/@tanstack/lit-virtual/dist/esm/index.js +0 -40
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +0 -1956
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -490
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -52
- package/dist/node_modules/chart.js/dist/chart.js +0 -7122
- package/dist/node_modules/chart.js/dist/chunks/helpers.segment.js +0 -1691
- package/dist/node_modules/file-saver/dist/FileSaver.min.js +0 -74
- package/dist/node_modules/lit-element/lit-element.js +0 -51
- package/dist/node_modules/lit-html/async-directive.js +0 -69
- package/dist/node_modules/lit-html/directive-helpers.js +0 -45
- package/dist/node_modules/lit-html/directive.js +0 -27
- package/dist/node_modules/lit-html/directives/ref.js +0 -42
- package/dist/node_modules/lit-html/directives/repeat.js +0 -61
- package/dist/node_modules/lit-html/directives/style-map.js +0 -36
- package/dist/node_modules/lit-html/directives/unsafe-html.js +0 -27
- package/dist/node_modules/lit-html/lit-html.js +0 -243
- package/dist/node_modules/lodash/lodash.js +0 -3678
- package/dist/node_modules/luxon/src/datetime.js +0 -1793
- package/dist/node_modules/luxon/src/duration.js +0 -723
- package/dist/node_modules/luxon/src/errors.js +0 -40
- package/dist/node_modules/luxon/src/impl/conversions.js +0 -92
- package/dist/node_modules/luxon/src/impl/diff.js +0 -36
- package/dist/node_modules/luxon/src/impl/digits.js +0 -74
- package/dist/node_modules/luxon/src/impl/english.js +0 -138
- package/dist/node_modules/luxon/src/impl/formats.js +0 -150
- package/dist/node_modules/luxon/src/impl/formatter.js +0 -245
- package/dist/node_modules/luxon/src/impl/invalid.js +0 -11
- package/dist/node_modules/luxon/src/impl/locale.js +0 -282
- package/dist/node_modules/luxon/src/impl/regexParser.js +0 -202
- package/dist/node_modules/luxon/src/impl/tokenParser.js +0 -329
- package/dist/node_modules/luxon/src/impl/util.js +0 -206
- package/dist/node_modules/luxon/src/impl/zoneUtil.js +0 -19
- package/dist/node_modules/luxon/src/info.js +0 -180
- package/dist/node_modules/luxon/src/interval.js +0 -466
- package/dist/node_modules/luxon/src/settings.js +0 -150
- package/dist/node_modules/luxon/src/zone.js +0 -88
- package/dist/node_modules/luxon/src/zones/IANAZone.js +0 -178
- package/dist/node_modules/luxon/src/zones/fixedOffsetZone.js +0 -125
- package/dist/node_modules/luxon/src/zones/invalidZone.js +0 -41
- package/dist/node_modules/luxon/src/zones/systemZone.js +0 -47
- package/dist/node_modules/sortablejs/modular/sortable.esm.js +0 -1261
- package/dist/shared/lit-button.js +0 -142
- package/dist/shared/lit-progress-bar.js +0 -83
- package/dist/shared/simple-tooltip.js +0 -174
- package/dist/shared/styles/button-shared-styles.js +0 -205
- package/dist/utils/currency.js +0 -13
- package/dist/utils/custom-filters.js +0 -50
- package/dist/utils/date.js +0 -15
- package/dist/utils/getOperatorByType.js +0 -52
- package/dist/utils/localization.js +0 -30
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
class e extends Error {
|
|
2
|
-
}
|
|
3
|
-
class t extends e {
|
|
4
|
-
constructor(s) {
|
|
5
|
-
super(`Invalid DateTime: ${s.toMessage()}`);
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
class n extends e {
|
|
9
|
-
constructor(s) {
|
|
10
|
-
super(`Invalid Interval: ${s.toMessage()}`);
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
class a extends e {
|
|
14
|
-
constructor(s) {
|
|
15
|
-
super(`Invalid Duration: ${s.toMessage()}`);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
class o extends e {
|
|
19
|
-
}
|
|
20
|
-
class c extends e {
|
|
21
|
-
constructor(s) {
|
|
22
|
-
super(`Invalid unit ${s}`);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
class i extends e {
|
|
26
|
-
}
|
|
27
|
-
class l extends e {
|
|
28
|
-
constructor() {
|
|
29
|
-
super("Zone is an abstract class");
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
o as ConflictingSpecificationError,
|
|
34
|
-
i as InvalidArgumentError,
|
|
35
|
-
t as InvalidDateTimeError,
|
|
36
|
-
a as InvalidDurationError,
|
|
37
|
-
n as InvalidIntervalError,
|
|
38
|
-
c as InvalidUnitError,
|
|
39
|
-
l as ZoneIsAbstractError
|
|
40
|
-
};
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { isUndefined as s, weeksInWeekYear as m, timeObject as y, isInteger as w, integerBetween as u, daysInYear as k, daysInMonth as N, isLeapYear as h } from "./util.js";
|
|
2
|
-
import T from "./invalid.js";
|
|
3
|
-
import { ConflictingSpecificationError as L } from "../errors.js";
|
|
4
|
-
const W = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], Y = [0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335];
|
|
5
|
-
function d(e, a) {
|
|
6
|
-
return new T(
|
|
7
|
-
"unit out of range",
|
|
8
|
-
`you specified ${a} (of type ${typeof a}) as a ${e}, which is invalid`
|
|
9
|
-
);
|
|
10
|
-
}
|
|
11
|
-
function v(e, a, r) {
|
|
12
|
-
const n = new Date(Date.UTC(e, a - 1, r));
|
|
13
|
-
e < 100 && e >= 0 && n.setUTCFullYear(n.getUTCFullYear() - 1900);
|
|
14
|
-
const t = n.getUTCDay();
|
|
15
|
-
return t === 0 ? 7 : t;
|
|
16
|
-
}
|
|
17
|
-
function I(e, a, r) {
|
|
18
|
-
return r + (h(e) ? Y : W)[a - 1];
|
|
19
|
-
}
|
|
20
|
-
function p(e, a) {
|
|
21
|
-
const r = h(e) ? Y : W, n = r.findIndex((o) => o < a), t = a - r[n];
|
|
22
|
-
return { month: n + 1, day: t };
|
|
23
|
-
}
|
|
24
|
-
function g(e, a) {
|
|
25
|
-
return (e - a + 7) % 7 + 1;
|
|
26
|
-
}
|
|
27
|
-
function S(e, a = 4, r = 1) {
|
|
28
|
-
const { year: n, month: t, day: o } = e, f = I(n, t, o), c = g(v(n, t, o), r);
|
|
29
|
-
let i = Math.floor((f - c + 14 - a) / 7), l;
|
|
30
|
-
return i < 1 ? (l = n - 1, i = m(l, a, r)) : i > m(n, a, r) ? (l = n + 1, i = 1) : l = n, { weekYear: l, weekNumber: i, weekday: c, ...y(e) };
|
|
31
|
-
}
|
|
32
|
-
function x(e, a = 4, r = 1) {
|
|
33
|
-
const { weekYear: n, weekNumber: t, weekday: o } = e, f = g(v(n, 1, a), r), c = k(n);
|
|
34
|
-
let i = t * 7 + o - f - 7 + a, l;
|
|
35
|
-
i < 1 ? (l = n - 1, i += k(l)) : i > c ? (l = n + 1, i -= k(n)) : l = n;
|
|
36
|
-
const { month: O, day: D } = p(l, i);
|
|
37
|
-
return { year: l, month: O, day: D, ...y(e) };
|
|
38
|
-
}
|
|
39
|
-
function G(e) {
|
|
40
|
-
const { year: a, month: r, day: n } = e, t = I(a, r, n);
|
|
41
|
-
return { year: a, ordinal: t, ...y(e) };
|
|
42
|
-
}
|
|
43
|
-
function $(e) {
|
|
44
|
-
const { year: a, ordinal: r } = e, { month: n, day: t } = p(a, r);
|
|
45
|
-
return { year: a, month: n, day: t, ...y(e) };
|
|
46
|
-
}
|
|
47
|
-
function F(e, a) {
|
|
48
|
-
if (!s(e.localWeekday) || !s(e.localWeekNumber) || !s(e.localWeekYear)) {
|
|
49
|
-
if (!s(e.weekday) || !s(e.weekNumber) || !s(e.weekYear))
|
|
50
|
-
throw new L(
|
|
51
|
-
"Cannot mix locale-based week fields with ISO-based week fields"
|
|
52
|
-
);
|
|
53
|
-
return s(e.localWeekday) || (e.weekday = e.localWeekday), s(e.localWeekNumber) || (e.weekNumber = e.localWeekNumber), s(e.localWeekYear) || (e.weekYear = e.localWeekYear), delete e.localWeekday, delete e.localWeekNumber, delete e.localWeekYear, {
|
|
54
|
-
minDaysInFirstWeek: a.getMinDaysInFirstWeek(),
|
|
55
|
-
startOfWeek: a.getStartOfWeek()
|
|
56
|
-
};
|
|
57
|
-
} else
|
|
58
|
-
return { minDaysInFirstWeek: 4, startOfWeek: 1 };
|
|
59
|
-
}
|
|
60
|
-
function B(e, a = 4, r = 1) {
|
|
61
|
-
const n = w(e.weekYear), t = u(
|
|
62
|
-
e.weekNumber,
|
|
63
|
-
1,
|
|
64
|
-
m(e.weekYear, a, r)
|
|
65
|
-
), o = u(e.weekday, 1, 7);
|
|
66
|
-
return n ? t ? o ? !1 : d("weekday", e.weekday) : d("week", e.weekNumber) : d("weekYear", e.weekYear);
|
|
67
|
-
}
|
|
68
|
-
function E(e) {
|
|
69
|
-
const a = w(e.year), r = u(e.ordinal, 1, k(e.year));
|
|
70
|
-
return a ? r ? !1 : d("ordinal", e.ordinal) : d("year", e.year);
|
|
71
|
-
}
|
|
72
|
-
function H(e) {
|
|
73
|
-
const a = w(e.year), r = u(e.month, 1, 12), n = u(e.day, 1, N(e.year, e.month));
|
|
74
|
-
return a ? r ? n ? !1 : d("day", e.day) : d("month", e.month) : d("year", e.year);
|
|
75
|
-
}
|
|
76
|
-
function J(e) {
|
|
77
|
-
const { hour: a, minute: r, second: n, millisecond: t } = e, o = u(a, 0, 23) || a === 24 && r === 0 && n === 0 && t === 0, f = u(r, 0, 59), c = u(n, 0, 59), i = u(t, 0, 999);
|
|
78
|
-
return o ? f ? c ? i ? !1 : d("millisecond", t) : d("second", n) : d("minute", r) : d("hour", a);
|
|
79
|
-
}
|
|
80
|
-
export {
|
|
81
|
-
v as dayOfWeek,
|
|
82
|
-
G as gregorianToOrdinal,
|
|
83
|
-
S as gregorianToWeek,
|
|
84
|
-
H as hasInvalidGregorianData,
|
|
85
|
-
E as hasInvalidOrdinalData,
|
|
86
|
-
J as hasInvalidTimeData,
|
|
87
|
-
B as hasInvalidWeekData,
|
|
88
|
-
g as isoWeekdayToLocal,
|
|
89
|
-
$ as ordinalToGregorian,
|
|
90
|
-
F as usesLocalWeekValues,
|
|
91
|
-
x as weekToGregorian
|
|
92
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import d from "../duration.js";
|
|
2
|
-
function h(i, s) {
|
|
3
|
-
const f = (r) => r.toUTC(0, { keepLocalTime: !0 }).startOf("day").valueOf(), a = f(s) - f(i);
|
|
4
|
-
return Math.floor(d.fromMillis(a).as("days"));
|
|
5
|
-
}
|
|
6
|
-
function y(i, s, f) {
|
|
7
|
-
const a = [
|
|
8
|
-
["years", (e, t) => t.year - e.year],
|
|
9
|
-
["quarters", (e, t) => t.quarter - e.quarter + (t.year - e.year) * 4],
|
|
10
|
-
["months", (e, t) => t.month - e.month + (t.year - e.year) * 12],
|
|
11
|
-
[
|
|
12
|
-
"weeks",
|
|
13
|
-
(e, t) => {
|
|
14
|
-
const u = h(e, t);
|
|
15
|
-
return (u - u % 7) / 7;
|
|
16
|
-
}
|
|
17
|
-
],
|
|
18
|
-
["days", h]
|
|
19
|
-
], r = {}, o = i;
|
|
20
|
-
let l, n;
|
|
21
|
-
for (const [e, t] of a)
|
|
22
|
-
f.indexOf(e) >= 0 && (l = e, r[e] = t(i, s), n = o.plus(r), n > s ? (r[e]--, i = o.plus(r), i > s && (n = i, r[e]--, i = o.plus(r))) : i = n);
|
|
23
|
-
return [i, r, n, l];
|
|
24
|
-
}
|
|
25
|
-
function O(i, s, f, a) {
|
|
26
|
-
let [r, o, l, n] = y(i, s, f);
|
|
27
|
-
const e = s - r, t = f.filter(
|
|
28
|
-
(m) => ["hours", "minutes", "seconds", "milliseconds"].indexOf(m) >= 0
|
|
29
|
-
);
|
|
30
|
-
t.length === 0 && (l < s && (l = r.plus({ [n]: 1 })), l !== r && (o[n] = (o[n] || 0) + e / (l - r)));
|
|
31
|
-
const u = d.fromObject(o, a);
|
|
32
|
-
return t.length > 0 ? d.fromMillis(e, a).shiftTo(...t).plus(u) : u;
|
|
33
|
-
}
|
|
34
|
-
export {
|
|
35
|
-
O as default
|
|
36
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
const n = {
|
|
2
|
-
arab: "[٠-٩]",
|
|
3
|
-
arabext: "[۰-۹]",
|
|
4
|
-
bali: "[᭐-᭙]",
|
|
5
|
-
beng: "[০-৯]",
|
|
6
|
-
deva: "[०-९]",
|
|
7
|
-
fullwide: "[0-9]",
|
|
8
|
-
gujr: "[૦-૯]",
|
|
9
|
-
hanidec: "[〇|一|二|三|四|五|六|七|八|九]",
|
|
10
|
-
khmr: "[០-៩]",
|
|
11
|
-
knda: "[೦-೯]",
|
|
12
|
-
laoo: "[໐-໙]",
|
|
13
|
-
limb: "[᥆-᥏]",
|
|
14
|
-
mlym: "[൦-൯]",
|
|
15
|
-
mong: "[᠐-᠙]",
|
|
16
|
-
mymr: "[၀-၉]",
|
|
17
|
-
orya: "[୦-୯]",
|
|
18
|
-
tamldec: "[௦-௯]",
|
|
19
|
-
telu: "[౦-౯]",
|
|
20
|
-
thai: "[๐-๙]",
|
|
21
|
-
tibt: "[༠-༩]",
|
|
22
|
-
latn: "\\d"
|
|
23
|
-
}, r = {
|
|
24
|
-
arab: [1632, 1641],
|
|
25
|
-
arabext: [1776, 1785],
|
|
26
|
-
bali: [6992, 7001],
|
|
27
|
-
beng: [2534, 2543],
|
|
28
|
-
deva: [2406, 2415],
|
|
29
|
-
fullwide: [65296, 65303],
|
|
30
|
-
gujr: [2790, 2799],
|
|
31
|
-
khmr: [6112, 6121],
|
|
32
|
-
knda: [3302, 3311],
|
|
33
|
-
laoo: [3792, 3801],
|
|
34
|
-
limb: [6470, 6479],
|
|
35
|
-
mlym: [3430, 3439],
|
|
36
|
-
mong: [6160, 6169],
|
|
37
|
-
mymr: [4160, 4169],
|
|
38
|
-
orya: [2918, 2927],
|
|
39
|
-
tamldec: [3046, 3055],
|
|
40
|
-
telu: [3174, 3183],
|
|
41
|
-
thai: [3664, 3673],
|
|
42
|
-
tibt: [3872, 3881]
|
|
43
|
-
}, m = n.hanidec.replace(/[\[|\]]/g, "").split("");
|
|
44
|
-
function s(t) {
|
|
45
|
-
let e = parseInt(t, 10);
|
|
46
|
-
if (isNaN(e)) {
|
|
47
|
-
e = "";
|
|
48
|
-
for (let u = 0; u < t.length; u++) {
|
|
49
|
-
const a = t.charCodeAt(u);
|
|
50
|
-
if (t[u].search(n.hanidec) !== -1)
|
|
51
|
-
e += m.indexOf(t[u]);
|
|
52
|
-
else
|
|
53
|
-
for (const o in r) {
|
|
54
|
-
const [l, c] = r[o];
|
|
55
|
-
a >= l && a <= c && (e += a - l);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return parseInt(e, 10);
|
|
59
|
-
} else
|
|
60
|
-
return e;
|
|
61
|
-
}
|
|
62
|
-
let i = {};
|
|
63
|
-
function g() {
|
|
64
|
-
i = {};
|
|
65
|
-
}
|
|
66
|
-
function F({ numberingSystem: t }, e = "") {
|
|
67
|
-
const u = t || "latn";
|
|
68
|
-
return i[u] || (i[u] = {}), i[u][e] || (i[u][e] = new RegExp(`${n[u]}${e}`)), i[u][e];
|
|
69
|
-
}
|
|
70
|
-
export {
|
|
71
|
-
F as digitRegex,
|
|
72
|
-
s as parseDigits,
|
|
73
|
-
g as resetDigitRegexCache
|
|
74
|
-
};
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
import "../duration.js";
|
|
2
|
-
import "./regexParser.js";
|
|
3
|
-
const y = [
|
|
4
|
-
"January",
|
|
5
|
-
"February",
|
|
6
|
-
"March",
|
|
7
|
-
"April",
|
|
8
|
-
"May",
|
|
9
|
-
"June",
|
|
10
|
-
"July",
|
|
11
|
-
"August",
|
|
12
|
-
"September",
|
|
13
|
-
"October",
|
|
14
|
-
"November",
|
|
15
|
-
"December"
|
|
16
|
-
], h = [
|
|
17
|
-
"Jan",
|
|
18
|
-
"Feb",
|
|
19
|
-
"Mar",
|
|
20
|
-
"Apr",
|
|
21
|
-
"May",
|
|
22
|
-
"Jun",
|
|
23
|
-
"Jul",
|
|
24
|
-
"Aug",
|
|
25
|
-
"Sep",
|
|
26
|
-
"Oct",
|
|
27
|
-
"Nov",
|
|
28
|
-
"Dec"
|
|
29
|
-
], l = ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"];
|
|
30
|
-
function w(e) {
|
|
31
|
-
switch (e) {
|
|
32
|
-
case "narrow":
|
|
33
|
-
return [...l];
|
|
34
|
-
case "short":
|
|
35
|
-
return [...h];
|
|
36
|
-
case "long":
|
|
37
|
-
return [...y];
|
|
38
|
-
case "numeric":
|
|
39
|
-
return ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"];
|
|
40
|
-
case "2-digit":
|
|
41
|
-
return ["01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12"];
|
|
42
|
-
default:
|
|
43
|
-
return null;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
const f = [
|
|
47
|
-
"Monday",
|
|
48
|
-
"Tuesday",
|
|
49
|
-
"Wednesday",
|
|
50
|
-
"Thursday",
|
|
51
|
-
"Friday",
|
|
52
|
-
"Saturday",
|
|
53
|
-
"Sunday"
|
|
54
|
-
], M = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"], S = ["M", "T", "W", "T", "F", "S", "S"];
|
|
55
|
-
function g(e) {
|
|
56
|
-
switch (e) {
|
|
57
|
-
case "narrow":
|
|
58
|
-
return [...S];
|
|
59
|
-
case "short":
|
|
60
|
-
return [...M];
|
|
61
|
-
case "long":
|
|
62
|
-
return [...f];
|
|
63
|
-
case "numeric":
|
|
64
|
-
return ["1", "2", "3", "4", "5", "6", "7"];
|
|
65
|
-
default:
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
const T = ["AM", "PM"], A = ["Before Christ", "Anno Domini"], D = ["BC", "AD"], F = ["B", "A"];
|
|
70
|
-
function b(e) {
|
|
71
|
-
switch (e) {
|
|
72
|
-
case "narrow":
|
|
73
|
-
return [...F];
|
|
74
|
-
case "short":
|
|
75
|
-
return [...D];
|
|
76
|
-
case "long":
|
|
77
|
-
return [...A];
|
|
78
|
-
default:
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function p(e) {
|
|
83
|
-
return T[e.hour < 12 ? 0 : 1];
|
|
84
|
-
}
|
|
85
|
-
function $(e, r) {
|
|
86
|
-
return g(r)[e.weekday - 1];
|
|
87
|
-
}
|
|
88
|
-
function N(e, r) {
|
|
89
|
-
return w(r)[e.month - 1];
|
|
90
|
-
}
|
|
91
|
-
function O(e, r) {
|
|
92
|
-
return b(r)[e.year < 0 ? 0 : 1];
|
|
93
|
-
}
|
|
94
|
-
function q(e, r, c = "always", i = !1) {
|
|
95
|
-
const t = {
|
|
96
|
-
years: ["year", "yr."],
|
|
97
|
-
quarters: ["quarter", "qtr."],
|
|
98
|
-
months: ["month", "mo."],
|
|
99
|
-
weeks: ["week", "wk."],
|
|
100
|
-
days: ["day", "day", "days"],
|
|
101
|
-
hours: ["hour", "hr."],
|
|
102
|
-
minutes: ["minute", "min."],
|
|
103
|
-
seconds: ["second", "sec."]
|
|
104
|
-
}, m = ["hours", "minutes", "seconds"].indexOf(e) === -1;
|
|
105
|
-
if (c === "auto" && m) {
|
|
106
|
-
const a = e === "days";
|
|
107
|
-
switch (r) {
|
|
108
|
-
case 1:
|
|
109
|
-
return a ? "tomorrow" : `next ${t[e][0]}`;
|
|
110
|
-
case -1:
|
|
111
|
-
return a ? "yesterday" : `last ${t[e][0]}`;
|
|
112
|
-
case 0:
|
|
113
|
-
return a ? "today" : `this ${t[e][0]}`;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
const d = Object.is(r, -0) || r < 0, n = Math.abs(r), o = n === 1, s = t[e], u = i ? o ? s[1] : s[2] || s[1] : o ? t[e][0] : e;
|
|
117
|
-
return d ? `${n} ${u} ago` : `in ${n} ${u}`;
|
|
118
|
-
}
|
|
119
|
-
export {
|
|
120
|
-
O as eraForDateTime,
|
|
121
|
-
b as eras,
|
|
122
|
-
A as erasLong,
|
|
123
|
-
F as erasNarrow,
|
|
124
|
-
D as erasShort,
|
|
125
|
-
q as formatRelativeTime,
|
|
126
|
-
p as meridiemForDateTime,
|
|
127
|
-
T as meridiems,
|
|
128
|
-
N as monthForDateTime,
|
|
129
|
-
w as months,
|
|
130
|
-
y as monthsLong,
|
|
131
|
-
l as monthsNarrow,
|
|
132
|
-
h as monthsShort,
|
|
133
|
-
$ as weekdayForDateTime,
|
|
134
|
-
g as weekdays,
|
|
135
|
-
f as weekdaysLong,
|
|
136
|
-
S as weekdaysNarrow,
|
|
137
|
-
M as weekdaysShort
|
|
138
|
-
};
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
const e = "numeric", n = "short", o = "long", t = {
|
|
2
|
-
year: e,
|
|
3
|
-
month: e,
|
|
4
|
-
day: e
|
|
5
|
-
}, E = {
|
|
6
|
-
year: e,
|
|
7
|
-
month: n,
|
|
8
|
-
day: e
|
|
9
|
-
}, T = {
|
|
10
|
-
year: e,
|
|
11
|
-
month: n,
|
|
12
|
-
day: e,
|
|
13
|
-
weekday: n
|
|
14
|
-
}, m = {
|
|
15
|
-
year: e,
|
|
16
|
-
month: o,
|
|
17
|
-
day: e
|
|
18
|
-
}, _ = {
|
|
19
|
-
year: e,
|
|
20
|
-
month: o,
|
|
21
|
-
day: e,
|
|
22
|
-
weekday: o
|
|
23
|
-
}, a = {
|
|
24
|
-
hour: e,
|
|
25
|
-
minute: e
|
|
26
|
-
}, h = {
|
|
27
|
-
hour: e,
|
|
28
|
-
minute: e,
|
|
29
|
-
second: e
|
|
30
|
-
}, u = {
|
|
31
|
-
hour: e,
|
|
32
|
-
minute: e,
|
|
33
|
-
second: e,
|
|
34
|
-
timeZoneName: n
|
|
35
|
-
}, c = {
|
|
36
|
-
hour: e,
|
|
37
|
-
minute: e,
|
|
38
|
-
second: e,
|
|
39
|
-
timeZoneName: o
|
|
40
|
-
}, r = {
|
|
41
|
-
hour: e,
|
|
42
|
-
minute: e,
|
|
43
|
-
hourCycle: "h23"
|
|
44
|
-
}, y = {
|
|
45
|
-
hour: e,
|
|
46
|
-
minute: e,
|
|
47
|
-
second: e,
|
|
48
|
-
hourCycle: "h23"
|
|
49
|
-
}, s = {
|
|
50
|
-
hour: e,
|
|
51
|
-
minute: e,
|
|
52
|
-
second: e,
|
|
53
|
-
hourCycle: "h23",
|
|
54
|
-
timeZoneName: n
|
|
55
|
-
}, I = {
|
|
56
|
-
hour: e,
|
|
57
|
-
minute: e,
|
|
58
|
-
second: e,
|
|
59
|
-
hourCycle: "h23",
|
|
60
|
-
timeZoneName: o
|
|
61
|
-
}, d = {
|
|
62
|
-
year: e,
|
|
63
|
-
month: e,
|
|
64
|
-
day: e,
|
|
65
|
-
hour: e,
|
|
66
|
-
minute: e
|
|
67
|
-
}, D = {
|
|
68
|
-
year: e,
|
|
69
|
-
month: e,
|
|
70
|
-
day: e,
|
|
71
|
-
hour: e,
|
|
72
|
-
minute: e,
|
|
73
|
-
second: e
|
|
74
|
-
}, i = {
|
|
75
|
-
year: e,
|
|
76
|
-
month: n,
|
|
77
|
-
day: e,
|
|
78
|
-
hour: e,
|
|
79
|
-
minute: e
|
|
80
|
-
}, M = {
|
|
81
|
-
year: e,
|
|
82
|
-
month: n,
|
|
83
|
-
day: e,
|
|
84
|
-
hour: e,
|
|
85
|
-
minute: e,
|
|
86
|
-
second: e
|
|
87
|
-
}, S = {
|
|
88
|
-
year: e,
|
|
89
|
-
month: n,
|
|
90
|
-
day: e,
|
|
91
|
-
weekday: n,
|
|
92
|
-
hour: e,
|
|
93
|
-
minute: e
|
|
94
|
-
}, H = {
|
|
95
|
-
year: e,
|
|
96
|
-
month: o,
|
|
97
|
-
day: e,
|
|
98
|
-
hour: e,
|
|
99
|
-
minute: e,
|
|
100
|
-
timeZoneName: n
|
|
101
|
-
}, O = {
|
|
102
|
-
year: e,
|
|
103
|
-
month: o,
|
|
104
|
-
day: e,
|
|
105
|
-
hour: e,
|
|
106
|
-
minute: e,
|
|
107
|
-
second: e,
|
|
108
|
-
timeZoneName: n
|
|
109
|
-
}, A = {
|
|
110
|
-
year: e,
|
|
111
|
-
month: o,
|
|
112
|
-
day: e,
|
|
113
|
-
weekday: o,
|
|
114
|
-
hour: e,
|
|
115
|
-
minute: e,
|
|
116
|
-
timeZoneName: o
|
|
117
|
-
}, N = {
|
|
118
|
-
year: e,
|
|
119
|
-
month: o,
|
|
120
|
-
day: e,
|
|
121
|
-
weekday: o,
|
|
122
|
-
hour: e,
|
|
123
|
-
minute: e,
|
|
124
|
-
second: e,
|
|
125
|
-
timeZoneName: o
|
|
126
|
-
};
|
|
127
|
-
export {
|
|
128
|
-
H as DATETIME_FULL,
|
|
129
|
-
O as DATETIME_FULL_WITH_SECONDS,
|
|
130
|
-
A as DATETIME_HUGE,
|
|
131
|
-
N as DATETIME_HUGE_WITH_SECONDS,
|
|
132
|
-
i as DATETIME_MED,
|
|
133
|
-
M as DATETIME_MED_WITH_SECONDS,
|
|
134
|
-
S as DATETIME_MED_WITH_WEEKDAY,
|
|
135
|
-
d as DATETIME_SHORT,
|
|
136
|
-
D as DATETIME_SHORT_WITH_SECONDS,
|
|
137
|
-
m as DATE_FULL,
|
|
138
|
-
_ as DATE_HUGE,
|
|
139
|
-
E as DATE_MED,
|
|
140
|
-
T as DATE_MED_WITH_WEEKDAY,
|
|
141
|
-
t as DATE_SHORT,
|
|
142
|
-
r as TIME_24_SIMPLE,
|
|
143
|
-
I as TIME_24_WITH_LONG_OFFSET,
|
|
144
|
-
y as TIME_24_WITH_SECONDS,
|
|
145
|
-
s as TIME_24_WITH_SHORT_OFFSET,
|
|
146
|
-
a as TIME_SIMPLE,
|
|
147
|
-
c as TIME_WITH_LONG_OFFSET,
|
|
148
|
-
h as TIME_WITH_SECONDS,
|
|
149
|
-
u as TIME_WITH_SHORT_OFFSET
|
|
150
|
-
};
|