@quidgest/ui 0.14.12 → 0.14.13
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/manifest/components.json +3 -0
- package/dist/ui.css +1647 -124
- package/dist/ui.esm.js +11101 -1899
- package/dist/ui.js +29 -29
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +1210 -255
- package/dist/ui.scss +208 -7
- package/esm/components/QBadge/QBadge.d.ts +2 -1
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +75 -66
- package/esm/components/QBadge/index.d.ts +3 -0
- package/esm/components/QBadge/index.d.ts.map +1 -1
- package/esm/components/QBadge/types.d.ts +7 -0
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QBadge/types.js +5 -2
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts +22 -0
- package/esm/components/QBadgeIndicator/QBadgeIndicator.d.ts.map +1 -0
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue.js +43 -0
- package/esm/components/QBadgeIndicator/QBadgeIndicator.vue2.js +4 -0
- package/esm/components/QBadgeIndicator/index.d.ts +28 -0
- package/esm/components/QBadgeIndicator/index.d.ts.map +1 -0
- package/esm/components/QBadgeIndicator/index.js +6 -0
- package/esm/components/QBadgeIndicator/types.d.ts +19 -0
- package/esm/components/QBadgeIndicator/types.d.ts.map +1 -0
- package/esm/components/QCombobox/QCombobox.d.ts +32 -4
- package/esm/components/QCombobox/QCombobox.d.ts.map +1 -1
- package/esm/components/QCombobox/index.d.ts +56 -7
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts +36 -0
- package/esm/components/QDateTimePicker/QDateTimePicker.d.ts.map +1 -0
- package/esm/components/QDateTimePicker/QDateTimePicker.vue.js +168 -0
- package/esm/components/QDateTimePicker/QDateTimePicker.vue2.js +4 -0
- package/esm/components/QDateTimePicker/index.d.ts +54 -0
- package/esm/components/QDateTimePicker/index.d.ts.map +1 -0
- package/esm/components/QDateTimePicker/index.js +6 -0
- package/esm/components/QDateTimePicker/types.d.ts +93 -0
- package/esm/components/QDateTimePicker/types.d.ts.map +1 -0
- package/esm/components/QDateTimePicker/types.js +15 -0
- package/esm/components/QFileUpload/QFileUpload.d.ts +37 -0
- package/esm/components/QFileUpload/QFileUpload.d.ts.map +1 -0
- package/esm/components/QFileUpload/QFileUpload.vue.js +238 -0
- package/esm/components/QFileUpload/QFileUpload.vue2.js +4 -0
- package/esm/components/QFileUpload/index.d.ts +52 -0
- package/esm/components/QFileUpload/index.d.ts.map +1 -0
- package/esm/components/QFileUpload/index.js +6 -0
- package/esm/components/QFileUpload/types.d.ts +69 -0
- package/esm/components/QFileUpload/types.d.ts.map +1 -0
- package/esm/components/QFileUpload/types.js +28 -0
- package/esm/components/QTextField/QTextField.d.ts +3 -0
- package/esm/components/QTextField/QTextField.d.ts.map +1 -1
- package/esm/components/QTextField/QTextField.vue.js +51 -39
- package/esm/components/QTextField/index.d.ts +7 -0
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QTextField/types.d.ts +11 -0
- package/esm/components/QTextField/types.d.ts.map +1 -1
- package/esm/components/index.d.ts +3 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +62 -56
- package/esm/composables/maska.d.ts +28 -0
- package/esm/composables/maska.d.ts.map +1 -0
- package/esm/composables/maska.js +26 -0
- package/esm/composables/useDropZone/index.d.ts +38 -0
- package/esm/composables/useDropZone/index.d.ts.map +1 -0
- package/esm/composables/useDropZone/index.js +62 -0
- package/esm/index.d.ts +3 -0
- package/esm/utils/color.js +57 -27
- package/esm/utils/date/date.d.ts +9 -0
- package/esm/utils/date/date.d.ts.map +1 -0
- package/esm/utils/date/date.js +91 -0
- package/esm/utils/date/index.d.ts +4 -0
- package/esm/utils/date/index.d.ts.map +1 -0
- package/esm/utils/date/tokens.d.ts +49 -0
- package/esm/utils/date/tokens.d.ts.map +1 -0
- package/esm/utils/date/tokens.js +243 -0
- package/esm/utils/download.d.ts +7 -0
- package/esm/utils/download.d.ts.map +1 -0
- package/esm/utils/download.js +16 -0
- package/esm/utils/string.d.ts.map +1 -1
- package/esm/utils/string.js +5 -2
- package/esm/utils/time.d.ts +36 -0
- package/esm/utils/time.d.ts.map +1 -0
- package/esm/utils/time.js +14 -0
- package/esm/vendors/@vuepic/vue-datepicker/dist/vue-datepicker.js +5148 -0
- package/esm/vendors/date-fns/_lib/addLeadingZeros.js +7 -0
- package/esm/vendors/date-fns/_lib/defaultOptions.js +7 -0
- package/esm/vendors/date-fns/_lib/format/formatters.js +583 -0
- package/esm/vendors/date-fns/_lib/format/lightFormatters.js +59 -0
- package/esm/vendors/date-fns/_lib/format/longFormatters.js +52 -0
- package/esm/vendors/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +18 -0
- package/esm/vendors/date-fns/_lib/normalizeDates.js +11 -0
- package/esm/vendors/date-fns/_lib/normalizeInterval.js +8 -0
- package/esm/vendors/date-fns/_lib/protectedTokens.js +20 -0
- package/esm/vendors/date-fns/add.js +20 -0
- package/esm/vendors/date-fns/addDays.js +10 -0
- package/esm/vendors/date-fns/addHours.js +9 -0
- package/esm/vendors/date-fns/addMilliseconds.js +9 -0
- package/esm/vendors/date-fns/addMonths.js +20 -0
- package/esm/vendors/date-fns/addQuarters.js +8 -0
- package/esm/vendors/date-fns/addYears.js +8 -0
- package/esm/vendors/date-fns/compareAsc.js +9 -0
- package/esm/vendors/date-fns/constants.js +9 -0
- package/esm/vendors/date-fns/constructFrom.js +8 -0
- package/esm/vendors/date-fns/differenceInCalendarDays.js +16 -0
- package/esm/vendors/date-fns/differenceInCalendarYears.js +13 -0
- package/esm/vendors/date-fns/differenceInYears.js +17 -0
- package/esm/vendors/date-fns/eachDayOfInterval.js +17 -0
- package/esm/vendors/date-fns/eachQuarterOfInterval.js +18 -0
- package/esm/vendors/date-fns/endOfQuarter.js +9 -0
- package/esm/vendors/date-fns/endOfWeek.js +11 -0
- package/esm/vendors/date-fns/endOfYear.js +9 -0
- package/esm/vendors/date-fns/format.js +59 -0
- package/esm/vendors/date-fns/getDay.js +8 -0
- package/esm/vendors/date-fns/getDayOfYear.js +11 -0
- package/esm/vendors/date-fns/getDaysInMonth.js +10 -0
- package/esm/vendors/date-fns/getDefaultOptions.js +8 -0
- package/esm/vendors/date-fns/getHours.js +8 -0
- package/esm/vendors/date-fns/getISODay.js +9 -0
- package/esm/vendors/date-fns/getISOWeek.js +12 -0
- package/esm/vendors/date-fns/getISOWeekYear.js +15 -0
- package/esm/vendors/date-fns/getMinutes.js +8 -0
- package/esm/vendors/date-fns/getMonth.js +8 -0
- package/esm/vendors/date-fns/getQuarter.js +9 -0
- package/esm/vendors/date-fns/getSeconds.js +8 -0
- package/esm/vendors/date-fns/getWeek.js +12 -0
- package/esm/vendors/date-fns/getWeekYear.js +17 -0
- package/esm/vendors/date-fns/getYear.js +8 -0
- package/esm/vendors/date-fns/isAfter.js +8 -0
- package/esm/vendors/date-fns/isBefore.js +8 -0
- package/esm/vendors/date-fns/isDate.js +7 -0
- package/esm/vendors/date-fns/isEqual.js +8 -0
- package/esm/vendors/date-fns/isSameQuarter.js +14 -0
- package/esm/vendors/date-fns/isValid.js +9 -0
- package/esm/vendors/date-fns/locale/_lib/buildFormatLongFn.js +9 -0
- package/esm/vendors/date-fns/locale/_lib/buildLocalizeFn.js +18 -0
- package/esm/vendors/date-fns/locale/_lib/buildMatchFn.js +31 -0
- package/esm/vendors/date-fns/locale/_lib/buildMatchPatternFn.js +15 -0
- package/esm/vendors/date-fns/locale/en-US/_lib/formatDistance.js +70 -0
- package/esm/vendors/date-fns/locale/en-US/_lib/formatLong.js +33 -0
- package/esm/vendors/date-fns/locale/en-US/_lib/formatRelative.js +11 -0
- package/esm/vendors/date-fns/locale/en-US/_lib/localize.js +155 -0
- package/esm/vendors/date-fns/locale/en-US/_lib/match.js +110 -0
- package/esm/vendors/date-fns/locale/en-US.js +21 -0
- package/esm/vendors/date-fns/parse/_lib/Parser.js +22 -0
- package/esm/vendors/date-fns/parse/_lib/Setter.js +41 -0
- package/esm/vendors/date-fns/parse/_lib/constants.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/AMPMParser.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/DateParser.js +61 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/DayOfYearParser.js +51 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/DayParser.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/DayPeriodParser.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/EraParser.js +33 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/ExtendedYearParser.js +21 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +22 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/Hour0To11Parser.js +32 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/Hour0to23Parser.js +32 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/Hour1To24Parser.js +33 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/Hour1to12Parser.js +33 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/ISODayParser.js +105 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +48 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +48 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/ISOWeekParser.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +40 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/LocalDayParser.js +80 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/LocalWeekParser.js +48 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +69 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/MinuteParser.js +32 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/MonthParser.js +77 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/QuarterParser.js +75 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/SecondParser.js +32 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +80 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +77 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +75 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +22 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +22 -0
- package/esm/vendors/date-fns/parse/_lib/parsers/YearParser.js +49 -0
- package/esm/vendors/date-fns/parse/_lib/parsers.js +67 -0
- package/esm/vendors/date-fns/parse/_lib/utils.js +103 -0
- package/esm/vendors/date-fns/parse.js +89 -0
- package/esm/vendors/date-fns/set.js +11 -0
- package/esm/vendors/date-fns/setDay.js +12 -0
- package/esm/vendors/date-fns/setHours.js +9 -0
- package/esm/vendors/date-fns/setISODay.js +11 -0
- package/esm/vendors/date-fns/setISOWeek.js +10 -0
- package/esm/vendors/date-fns/setMilliseconds.js +9 -0
- package/esm/vendors/date-fns/setMinutes.js +9 -0
- package/esm/vendors/date-fns/setMonth.js +13 -0
- package/esm/vendors/date-fns/setSeconds.js +9 -0
- package/esm/vendors/date-fns/setWeek.js +10 -0
- package/esm/vendors/date-fns/setYear.js +10 -0
- package/esm/vendors/date-fns/startOfDay.js +9 -0
- package/esm/vendors/date-fns/startOfISOWeek.js +8 -0
- package/esm/vendors/date-fns/startOfISOWeekYear.js +11 -0
- package/esm/vendors/date-fns/startOfMonth.js +9 -0
- package/esm/vendors/date-fns/startOfQuarter.js +9 -0
- package/esm/vendors/date-fns/startOfWeek.js +11 -0
- package/esm/vendors/date-fns/startOfWeekYear.js +13 -0
- package/esm/vendors/date-fns/startOfYear.js +9 -0
- package/esm/vendors/date-fns/sub.js +19 -0
- package/esm/vendors/date-fns/subDays.js +8 -0
- package/esm/vendors/date-fns/subMonths.js +8 -0
- package/esm/vendors/date-fns/subYears.js +8 -0
- package/esm/vendors/date-fns/toDate.js +8 -0
- package/esm/vendors/date-fns/transpose.js +18 -0
- package/esm/vendors/maska/dist/maska.js +179 -0
- package/package.json +5 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var p = (t, e, r) => e in t ? f(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var i = (t, e, r) => p(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import { startOfISOWeek as n } from "../../../startOfISOWeek.js";
|
|
5
|
+
import { constructFrom as u } from "../../../constructFrom.js";
|
|
6
|
+
import { Parser as c } from "../Parser.js";
|
|
7
|
+
import { parseNDigitsSigned as a } from "../utils.js";
|
|
8
|
+
class W extends c {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
i(this, "priority", 130);
|
|
12
|
+
i(this, "incompatibleTokens", [
|
|
13
|
+
"G",
|
|
14
|
+
"y",
|
|
15
|
+
"Y",
|
|
16
|
+
"u",
|
|
17
|
+
"Q",
|
|
18
|
+
"q",
|
|
19
|
+
"M",
|
|
20
|
+
"L",
|
|
21
|
+
"w",
|
|
22
|
+
"d",
|
|
23
|
+
"D",
|
|
24
|
+
"e",
|
|
25
|
+
"c",
|
|
26
|
+
"t",
|
|
27
|
+
"T"
|
|
28
|
+
]);
|
|
29
|
+
}
|
|
30
|
+
parse(r, s) {
|
|
31
|
+
return s === "R" ? a(4, r) : a(s.length, r);
|
|
32
|
+
}
|
|
33
|
+
set(r, s, m) {
|
|
34
|
+
const o = u(r, 0);
|
|
35
|
+
return o.setFullYear(m, 0, 4), o.setHours(0, 0, 0, 0), n(o);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
W as ISOWeekYearParser
|
|
40
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var y = Object.defineProperty;
|
|
2
|
+
var c = (o, r, e) => r in o ? y(o, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[r] = e;
|
|
3
|
+
var s = (o, r, e) => c(o, typeof r != "symbol" ? r + "" : r, e);
|
|
4
|
+
import { setDay as u } from "../../../setDay.js";
|
|
5
|
+
import { Parser as l } from "../Parser.js";
|
|
6
|
+
import { mapValue as d, parseNDigits as x } from "../utils.js";
|
|
7
|
+
class D extends l {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
s(this, "priority", 90);
|
|
11
|
+
s(this, "incompatibleTokens", [
|
|
12
|
+
"y",
|
|
13
|
+
"R",
|
|
14
|
+
"u",
|
|
15
|
+
"q",
|
|
16
|
+
"Q",
|
|
17
|
+
"M",
|
|
18
|
+
"L",
|
|
19
|
+
"I",
|
|
20
|
+
"d",
|
|
21
|
+
"D",
|
|
22
|
+
"E",
|
|
23
|
+
"i",
|
|
24
|
+
"c",
|
|
25
|
+
"t",
|
|
26
|
+
"T"
|
|
27
|
+
]);
|
|
28
|
+
}
|
|
29
|
+
parse(e, a, t, n) {
|
|
30
|
+
const i = (w) => {
|
|
31
|
+
const f = Math.floor((w - 1) / 7) * 7;
|
|
32
|
+
return (w + n.weekStartsOn + 6) % 7 + f;
|
|
33
|
+
};
|
|
34
|
+
switch (a) {
|
|
35
|
+
// 3
|
|
36
|
+
case "e":
|
|
37
|
+
case "ee":
|
|
38
|
+
return d(x(a.length, e), i);
|
|
39
|
+
// 3rd
|
|
40
|
+
case "eo":
|
|
41
|
+
return d(
|
|
42
|
+
t.ordinalNumber(e, {
|
|
43
|
+
unit: "day"
|
|
44
|
+
}),
|
|
45
|
+
i
|
|
46
|
+
);
|
|
47
|
+
// Tue
|
|
48
|
+
case "eee":
|
|
49
|
+
return t.day(e, {
|
|
50
|
+
width: "abbreviated",
|
|
51
|
+
context: "formatting"
|
|
52
|
+
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
53
|
+
// T
|
|
54
|
+
case "eeeee":
|
|
55
|
+
return t.day(e, {
|
|
56
|
+
width: "narrow",
|
|
57
|
+
context: "formatting"
|
|
58
|
+
});
|
|
59
|
+
// Tu
|
|
60
|
+
case "eeeeee":
|
|
61
|
+
return t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
62
|
+
// Tuesday
|
|
63
|
+
case "eeee":
|
|
64
|
+
default:
|
|
65
|
+
return t.day(e, { width: "wide", context: "formatting" }) || t.day(e, {
|
|
66
|
+
width: "abbreviated",
|
|
67
|
+
context: "formatting"
|
|
68
|
+
}) || t.day(e, { width: "short", context: "formatting" }) || t.day(e, { width: "narrow", context: "formatting" });
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
validate(e, a) {
|
|
72
|
+
return a >= 0 && a <= 6;
|
|
73
|
+
}
|
|
74
|
+
set(e, a, t, n) {
|
|
75
|
+
return e = u(e, t, n), e.setHours(0, 0, 0, 0), e;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
D as LocalDayParser
|
|
80
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var n = (t, e, r) => e in t ? o(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var i = (t, e, r) => n(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import { setWeek as p } from "../../../setWeek.js";
|
|
5
|
+
import { startOfWeek as u } from "../../../startOfWeek.js";
|
|
6
|
+
import { numericPatterns as c } from "../constants.js";
|
|
7
|
+
import { Parser as f } from "../Parser.js";
|
|
8
|
+
import { parseNDigits as l, parseNumericPattern as k } from "../utils.js";
|
|
9
|
+
class h extends f {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
i(this, "priority", 100);
|
|
13
|
+
i(this, "incompatibleTokens", [
|
|
14
|
+
"y",
|
|
15
|
+
"R",
|
|
16
|
+
"u",
|
|
17
|
+
"q",
|
|
18
|
+
"Q",
|
|
19
|
+
"M",
|
|
20
|
+
"L",
|
|
21
|
+
"I",
|
|
22
|
+
"d",
|
|
23
|
+
"D",
|
|
24
|
+
"i",
|
|
25
|
+
"t",
|
|
26
|
+
"T"
|
|
27
|
+
]);
|
|
28
|
+
}
|
|
29
|
+
parse(r, s, a) {
|
|
30
|
+
switch (s) {
|
|
31
|
+
case "w":
|
|
32
|
+
return k(c.week, r);
|
|
33
|
+
case "wo":
|
|
34
|
+
return a.ordinalNumber(r, { unit: "week" });
|
|
35
|
+
default:
|
|
36
|
+
return l(s.length, r);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
validate(r, s) {
|
|
40
|
+
return s >= 1 && s <= 53;
|
|
41
|
+
}
|
|
42
|
+
set(r, s, a, m) {
|
|
43
|
+
return u(p(r, a, m), m);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export {
|
|
47
|
+
h as LocalWeekParser
|
|
48
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
var D = Object.defineProperty;
|
|
2
|
+
var f = (t, i, r) => i in t ? D(t, i, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[i] = r;
|
|
3
|
+
var n = (t, i, r) => f(t, typeof i != "symbol" ? i + "" : i, r);
|
|
4
|
+
import { getWeekYear as y } from "../../../getWeekYear.js";
|
|
5
|
+
import { startOfWeek as m } from "../../../startOfWeek.js";
|
|
6
|
+
import { Parser as T } from "../Parser.js";
|
|
7
|
+
import { mapValue as Y, parseNDigits as u, normalizeTwoDigitYear as p } from "../utils.js";
|
|
8
|
+
class C extends T {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
n(this, "priority", 130);
|
|
12
|
+
n(this, "incompatibleTokens", [
|
|
13
|
+
"y",
|
|
14
|
+
"R",
|
|
15
|
+
"u",
|
|
16
|
+
"Q",
|
|
17
|
+
"q",
|
|
18
|
+
"M",
|
|
19
|
+
"L",
|
|
20
|
+
"I",
|
|
21
|
+
"d",
|
|
22
|
+
"D",
|
|
23
|
+
"i",
|
|
24
|
+
"t",
|
|
25
|
+
"T"
|
|
26
|
+
]);
|
|
27
|
+
}
|
|
28
|
+
parse(r, e, s) {
|
|
29
|
+
const a = (o) => ({
|
|
30
|
+
year: o,
|
|
31
|
+
isTwoDigitYear: e === "YY"
|
|
32
|
+
});
|
|
33
|
+
switch (e) {
|
|
34
|
+
case "Y":
|
|
35
|
+
return Y(u(4, r), a);
|
|
36
|
+
case "Yo":
|
|
37
|
+
return Y(
|
|
38
|
+
s.ordinalNumber(r, {
|
|
39
|
+
unit: "year"
|
|
40
|
+
}),
|
|
41
|
+
a
|
|
42
|
+
);
|
|
43
|
+
default:
|
|
44
|
+
return Y(u(e.length, r), a);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
validate(r, e) {
|
|
48
|
+
return e.isTwoDigitYear || e.year > 0;
|
|
49
|
+
}
|
|
50
|
+
set(r, e, s, a) {
|
|
51
|
+
const o = y(r, a);
|
|
52
|
+
if (s.isTwoDigitYear) {
|
|
53
|
+
const l = p(
|
|
54
|
+
s.year,
|
|
55
|
+
o
|
|
56
|
+
);
|
|
57
|
+
return r.setFullYear(
|
|
58
|
+
l,
|
|
59
|
+
0,
|
|
60
|
+
a.firstWeekContainsDate
|
|
61
|
+
), r.setHours(0, 0, 0, 0), m(r, a);
|
|
62
|
+
}
|
|
63
|
+
const c = !("era" in e) || e.era === 1 ? s.year : 1 - s.year;
|
|
64
|
+
return r.setFullYear(c, 0, a.firstWeekContainsDate), r.setHours(0, 0, 0, 0), m(r, a);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
export {
|
|
68
|
+
C as LocalWeekYearParser
|
|
69
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var a = (t, e, r) => e in t ? m(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
|
+
var n = (t, e, r) => a(t, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import { numericPatterns as u } from "../constants.js";
|
|
5
|
+
import { Parser as o } from "../Parser.js";
|
|
6
|
+
import { parseNDigits as p, parseNumericPattern as c } from "../utils.js";
|
|
7
|
+
class b extends o {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
n(this, "priority", 60);
|
|
11
|
+
n(this, "incompatibleTokens", ["t", "T"]);
|
|
12
|
+
}
|
|
13
|
+
parse(r, s, i) {
|
|
14
|
+
switch (s) {
|
|
15
|
+
case "m":
|
|
16
|
+
return c(u.minute, r);
|
|
17
|
+
case "mo":
|
|
18
|
+
return i.ordinalNumber(r, { unit: "minute" });
|
|
19
|
+
default:
|
|
20
|
+
return p(s.length, r);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
validate(r, s) {
|
|
24
|
+
return s >= 0 && s <= 59;
|
|
25
|
+
}
|
|
26
|
+
set(r, s, i) {
|
|
27
|
+
return r.setMinutes(i, 0, 0), r;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
b as MinuteParser
|
|
32
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var M = Object.defineProperty;
|
|
2
|
+
var u = (e, o, t) => o in e ? M(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
|
|
3
|
+
var i = (e, o, t) => u(e, typeof o != "symbol" ? o + "" : o, t);
|
|
4
|
+
import { numericPatterns as c } from "../constants.js";
|
|
5
|
+
import { Parser as w } from "../Parser.js";
|
|
6
|
+
import { mapValue as a, parseNDigits as f, parseNumericPattern as h } from "../utils.js";
|
|
7
|
+
class d extends w {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
i(this, "incompatibleTokens", [
|
|
11
|
+
"Y",
|
|
12
|
+
"R",
|
|
13
|
+
"q",
|
|
14
|
+
"Q",
|
|
15
|
+
"L",
|
|
16
|
+
"w",
|
|
17
|
+
"I",
|
|
18
|
+
"D",
|
|
19
|
+
"i",
|
|
20
|
+
"e",
|
|
21
|
+
"c",
|
|
22
|
+
"t",
|
|
23
|
+
"T"
|
|
24
|
+
]);
|
|
25
|
+
i(this, "priority", 110);
|
|
26
|
+
}
|
|
27
|
+
parse(t, n, r) {
|
|
28
|
+
const s = (m) => m - 1;
|
|
29
|
+
switch (n) {
|
|
30
|
+
// 1, 2, ..., 12
|
|
31
|
+
case "M":
|
|
32
|
+
return a(
|
|
33
|
+
h(c.month, t),
|
|
34
|
+
s
|
|
35
|
+
);
|
|
36
|
+
// 01, 02, ..., 12
|
|
37
|
+
case "MM":
|
|
38
|
+
return a(f(2, t), s);
|
|
39
|
+
// 1st, 2nd, ..., 12th
|
|
40
|
+
case "Mo":
|
|
41
|
+
return a(
|
|
42
|
+
r.ordinalNumber(t, {
|
|
43
|
+
unit: "month"
|
|
44
|
+
}),
|
|
45
|
+
s
|
|
46
|
+
);
|
|
47
|
+
// Jan, Feb, ..., Dec
|
|
48
|
+
case "MMM":
|
|
49
|
+
return r.month(t, {
|
|
50
|
+
width: "abbreviated",
|
|
51
|
+
context: "formatting"
|
|
52
|
+
}) || r.month(t, { width: "narrow", context: "formatting" });
|
|
53
|
+
// J, F, ..., D
|
|
54
|
+
case "MMMMM":
|
|
55
|
+
return r.month(t, {
|
|
56
|
+
width: "narrow",
|
|
57
|
+
context: "formatting"
|
|
58
|
+
});
|
|
59
|
+
// January, February, ..., December
|
|
60
|
+
case "MMMM":
|
|
61
|
+
default:
|
|
62
|
+
return r.month(t, { width: "wide", context: "formatting" }) || r.month(t, {
|
|
63
|
+
width: "abbreviated",
|
|
64
|
+
context: "formatting"
|
|
65
|
+
}) || r.month(t, { width: "narrow", context: "formatting" });
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
validate(t, n) {
|
|
69
|
+
return n >= 0 && n <= 11;
|
|
70
|
+
}
|
|
71
|
+
set(t, n, r) {
|
|
72
|
+
return t.setMonth(r, 1), t.setHours(0, 0, 0, 0), t;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
d as MonthParser
|
|
77
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var n = Object.defineProperty;
|
|
2
|
+
var s = (o, e, r) => e in o ? n(o, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : o[e] = r;
|
|
3
|
+
var i = (o, e, r) => s(o, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import { Parser as u } from "../Parser.js";
|
|
5
|
+
import { parseNDigits as Q } from "../utils.js";
|
|
6
|
+
class q extends u {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
i(this, "priority", 120);
|
|
10
|
+
i(this, "incompatibleTokens", [
|
|
11
|
+
"Y",
|
|
12
|
+
"R",
|
|
13
|
+
"q",
|
|
14
|
+
"M",
|
|
15
|
+
"L",
|
|
16
|
+
"w",
|
|
17
|
+
"I",
|
|
18
|
+
"d",
|
|
19
|
+
"D",
|
|
20
|
+
"i",
|
|
21
|
+
"e",
|
|
22
|
+
"c",
|
|
23
|
+
"t",
|
|
24
|
+
"T"
|
|
25
|
+
]);
|
|
26
|
+
}
|
|
27
|
+
parse(r, a, t) {
|
|
28
|
+
switch (a) {
|
|
29
|
+
// 1, 2, 3, 4
|
|
30
|
+
case "Q":
|
|
31
|
+
case "QQ":
|
|
32
|
+
return Q(a.length, r);
|
|
33
|
+
// 1st, 2nd, 3rd, 4th
|
|
34
|
+
case "Qo":
|
|
35
|
+
return t.ordinalNumber(r, { unit: "quarter" });
|
|
36
|
+
// Q1, Q2, Q3, Q4
|
|
37
|
+
case "QQQ":
|
|
38
|
+
return t.quarter(r, {
|
|
39
|
+
width: "abbreviated",
|
|
40
|
+
context: "formatting"
|
|
41
|
+
}) || t.quarter(r, {
|
|
42
|
+
width: "narrow",
|
|
43
|
+
context: "formatting"
|
|
44
|
+
});
|
|
45
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
46
|
+
case "QQQQQ":
|
|
47
|
+
return t.quarter(r, {
|
|
48
|
+
width: "narrow",
|
|
49
|
+
context: "formatting"
|
|
50
|
+
});
|
|
51
|
+
// 1st quarter, 2nd quarter, ...
|
|
52
|
+
case "QQQQ":
|
|
53
|
+
default:
|
|
54
|
+
return t.quarter(r, {
|
|
55
|
+
width: "wide",
|
|
56
|
+
context: "formatting"
|
|
57
|
+
}) || t.quarter(r, {
|
|
58
|
+
width: "abbreviated",
|
|
59
|
+
context: "formatting"
|
|
60
|
+
}) || t.quarter(r, {
|
|
61
|
+
width: "narrow",
|
|
62
|
+
context: "formatting"
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
validate(r, a) {
|
|
67
|
+
return a >= 1 && a <= 4;
|
|
68
|
+
}
|
|
69
|
+
set(r, a, t) {
|
|
70
|
+
return r.setMonth((t - 1) * 3, 1), r.setHours(0, 0, 0, 0), r;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
q as QuarterParser
|
|
75
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var i = (s, e, r) => e in s ? a(s, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : s[e] = r;
|
|
3
|
+
var o = (s, e, r) => i(s, typeof e != "symbol" ? e + "" : e, r);
|
|
4
|
+
import { numericPatterns as c } from "../constants.js";
|
|
5
|
+
import { Parser as m } from "../Parser.js";
|
|
6
|
+
import { parseNDigits as p, parseNumericPattern as u } from "../utils.js";
|
|
7
|
+
class N extends m {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
o(this, "priority", 50);
|
|
11
|
+
o(this, "incompatibleTokens", ["t", "T"]);
|
|
12
|
+
}
|
|
13
|
+
parse(r, t, n) {
|
|
14
|
+
switch (t) {
|
|
15
|
+
case "s":
|
|
16
|
+
return u(c.second, r);
|
|
17
|
+
case "so":
|
|
18
|
+
return n.ordinalNumber(r, { unit: "second" });
|
|
19
|
+
default:
|
|
20
|
+
return p(t.length, r);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
validate(r, t) {
|
|
24
|
+
return t >= 0 && t <= 59;
|
|
25
|
+
}
|
|
26
|
+
set(r, t, n) {
|
|
27
|
+
return r.setSeconds(n, 0), r;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
N as SecondParser
|
|
32
|
+
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var y = (n, a, e) => a in n ? i(n, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[a] = e;
|
|
3
|
+
var s = (n, a, e) => y(n, typeof a != "symbol" ? a + "" : a, e);
|
|
4
|
+
import { setDay as u } from "../../../setDay.js";
|
|
5
|
+
import { Parser as x } from "../Parser.js";
|
|
6
|
+
import { mapValue as l, parseNDigits as p } from "../utils.js";
|
|
7
|
+
class k extends x {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
s(this, "priority", 90);
|
|
11
|
+
s(this, "incompatibleTokens", [
|
|
12
|
+
"y",
|
|
13
|
+
"R",
|
|
14
|
+
"u",
|
|
15
|
+
"q",
|
|
16
|
+
"Q",
|
|
17
|
+
"M",
|
|
18
|
+
"L",
|
|
19
|
+
"I",
|
|
20
|
+
"d",
|
|
21
|
+
"D",
|
|
22
|
+
"E",
|
|
23
|
+
"i",
|
|
24
|
+
"e",
|
|
25
|
+
"t",
|
|
26
|
+
"T"
|
|
27
|
+
]);
|
|
28
|
+
}
|
|
29
|
+
parse(e, t, o, r) {
|
|
30
|
+
const c = (d) => {
|
|
31
|
+
const w = Math.floor((d - 1) / 7) * 7;
|
|
32
|
+
return (d + r.weekStartsOn + 6) % 7 + w;
|
|
33
|
+
};
|
|
34
|
+
switch (t) {
|
|
35
|
+
// 3
|
|
36
|
+
case "c":
|
|
37
|
+
case "cc":
|
|
38
|
+
return l(p(t.length, e), c);
|
|
39
|
+
// 3rd
|
|
40
|
+
case "co":
|
|
41
|
+
return l(
|
|
42
|
+
o.ordinalNumber(e, {
|
|
43
|
+
unit: "day"
|
|
44
|
+
}),
|
|
45
|
+
c
|
|
46
|
+
);
|
|
47
|
+
// Tue
|
|
48
|
+
case "ccc":
|
|
49
|
+
return o.day(e, {
|
|
50
|
+
width: "abbreviated",
|
|
51
|
+
context: "standalone"
|
|
52
|
+
}) || o.day(e, { width: "short", context: "standalone" }) || o.day(e, { width: "narrow", context: "standalone" });
|
|
53
|
+
// T
|
|
54
|
+
case "ccccc":
|
|
55
|
+
return o.day(e, {
|
|
56
|
+
width: "narrow",
|
|
57
|
+
context: "standalone"
|
|
58
|
+
});
|
|
59
|
+
// Tu
|
|
60
|
+
case "cccccc":
|
|
61
|
+
return o.day(e, { width: "short", context: "standalone" }) || o.day(e, { width: "narrow", context: "standalone" });
|
|
62
|
+
// Tuesday
|
|
63
|
+
case "cccc":
|
|
64
|
+
default:
|
|
65
|
+
return o.day(e, { width: "wide", context: "standalone" }) || o.day(e, {
|
|
66
|
+
width: "abbreviated",
|
|
67
|
+
context: "standalone"
|
|
68
|
+
}) || o.day(e, { width: "short", context: "standalone" }) || o.day(e, { width: "narrow", context: "standalone" });
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
validate(e, t) {
|
|
72
|
+
return t >= 0 && t <= 6;
|
|
73
|
+
}
|
|
74
|
+
set(e, t, o, r) {
|
|
75
|
+
return e = u(e, o, r), e.setHours(0, 0, 0, 0), e;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
export {
|
|
79
|
+
k as StandAloneLocalDayParser
|
|
80
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
var L = Object.defineProperty;
|
|
2
|
+
var u = (o, n, e) => n in o ? L(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e;
|
|
3
|
+
var a = (o, n, e) => u(o, typeof n != "symbol" ? n + "" : n, e);
|
|
4
|
+
import { numericPatterns as c } from "../constants.js";
|
|
5
|
+
import { Parser as m } from "../Parser.js";
|
|
6
|
+
import { mapValue as i, parseNDigits as w, parseNumericPattern as d } from "../utils.js";
|
|
7
|
+
class f extends m {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
a(this, "priority", 110);
|
|
11
|
+
a(this, "incompatibleTokens", [
|
|
12
|
+
"Y",
|
|
13
|
+
"R",
|
|
14
|
+
"q",
|
|
15
|
+
"Q",
|
|
16
|
+
"M",
|
|
17
|
+
"w",
|
|
18
|
+
"I",
|
|
19
|
+
"D",
|
|
20
|
+
"i",
|
|
21
|
+
"e",
|
|
22
|
+
"c",
|
|
23
|
+
"t",
|
|
24
|
+
"T"
|
|
25
|
+
]);
|
|
26
|
+
}
|
|
27
|
+
parse(e, r, t) {
|
|
28
|
+
const s = (l) => l - 1;
|
|
29
|
+
switch (r) {
|
|
30
|
+
// 1, 2, ..., 12
|
|
31
|
+
case "L":
|
|
32
|
+
return i(
|
|
33
|
+
d(c.month, e),
|
|
34
|
+
s
|
|
35
|
+
);
|
|
36
|
+
// 01, 02, ..., 12
|
|
37
|
+
case "LL":
|
|
38
|
+
return i(w(2, e), s);
|
|
39
|
+
// 1st, 2nd, ..., 12th
|
|
40
|
+
case "Lo":
|
|
41
|
+
return i(
|
|
42
|
+
t.ordinalNumber(e, {
|
|
43
|
+
unit: "month"
|
|
44
|
+
}),
|
|
45
|
+
s
|
|
46
|
+
);
|
|
47
|
+
// Jan, Feb, ..., Dec
|
|
48
|
+
case "LLL":
|
|
49
|
+
return t.month(e, {
|
|
50
|
+
width: "abbreviated",
|
|
51
|
+
context: "standalone"
|
|
52
|
+
}) || t.month(e, { width: "narrow", context: "standalone" });
|
|
53
|
+
// J, F, ..., D
|
|
54
|
+
case "LLLLL":
|
|
55
|
+
return t.month(e, {
|
|
56
|
+
width: "narrow",
|
|
57
|
+
context: "standalone"
|
|
58
|
+
});
|
|
59
|
+
// January, February, ..., December
|
|
60
|
+
case "LLLL":
|
|
61
|
+
default:
|
|
62
|
+
return t.month(e, { width: "wide", context: "standalone" }) || t.month(e, {
|
|
63
|
+
width: "abbreviated",
|
|
64
|
+
context: "standalone"
|
|
65
|
+
}) || t.month(e, { width: "narrow", context: "standalone" });
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
validate(e, r) {
|
|
69
|
+
return r >= 0 && r <= 11;
|
|
70
|
+
}
|
|
71
|
+
set(e, r, t) {
|
|
72
|
+
return e.setMonth(t, 1), e.setHours(0, 0, 0, 0), e;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
export {
|
|
76
|
+
f as StandAloneMonthParser
|
|
77
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var q = (a, t, r) => t in a ? s(a, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : a[t] = r;
|
|
3
|
+
var o = (a, t, r) => q(a, typeof t != "symbol" ? t + "" : t, r);
|
|
4
|
+
import { Parser as u } from "../Parser.js";
|
|
5
|
+
import { parseNDigits as i } from "../utils.js";
|
|
6
|
+
class c extends u {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(...arguments);
|
|
9
|
+
o(this, "priority", 120);
|
|
10
|
+
o(this, "incompatibleTokens", [
|
|
11
|
+
"Y",
|
|
12
|
+
"R",
|
|
13
|
+
"Q",
|
|
14
|
+
"M",
|
|
15
|
+
"L",
|
|
16
|
+
"w",
|
|
17
|
+
"I",
|
|
18
|
+
"d",
|
|
19
|
+
"D",
|
|
20
|
+
"i",
|
|
21
|
+
"e",
|
|
22
|
+
"c",
|
|
23
|
+
"t",
|
|
24
|
+
"T"
|
|
25
|
+
]);
|
|
26
|
+
}
|
|
27
|
+
parse(r, n, e) {
|
|
28
|
+
switch (n) {
|
|
29
|
+
// 1, 2, 3, 4
|
|
30
|
+
case "q":
|
|
31
|
+
case "qq":
|
|
32
|
+
return i(n.length, r);
|
|
33
|
+
// 1st, 2nd, 3rd, 4th
|
|
34
|
+
case "qo":
|
|
35
|
+
return e.ordinalNumber(r, { unit: "quarter" });
|
|
36
|
+
// Q1, Q2, Q3, Q4
|
|
37
|
+
case "qqq":
|
|
38
|
+
return e.quarter(r, {
|
|
39
|
+
width: "abbreviated",
|
|
40
|
+
context: "standalone"
|
|
41
|
+
}) || e.quarter(r, {
|
|
42
|
+
width: "narrow",
|
|
43
|
+
context: "standalone"
|
|
44
|
+
});
|
|
45
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
46
|
+
case "qqqqq":
|
|
47
|
+
return e.quarter(r, {
|
|
48
|
+
width: "narrow",
|
|
49
|
+
context: "standalone"
|
|
50
|
+
});
|
|
51
|
+
// 1st quarter, 2nd quarter, ...
|
|
52
|
+
case "qqqq":
|
|
53
|
+
default:
|
|
54
|
+
return e.quarter(r, {
|
|
55
|
+
width: "wide",
|
|
56
|
+
context: "standalone"
|
|
57
|
+
}) || e.quarter(r, {
|
|
58
|
+
width: "abbreviated",
|
|
59
|
+
context: "standalone"
|
|
60
|
+
}) || e.quarter(r, {
|
|
61
|
+
width: "narrow",
|
|
62
|
+
context: "standalone"
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
validate(r, n) {
|
|
67
|
+
return n >= 1 && n <= 4;
|
|
68
|
+
}
|
|
69
|
+
set(r, n, e) {
|
|
70
|
+
return r.setMonth((e - 1) * 3, 1), r.setHours(0, 0, 0, 0), r;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
c as StandAloneQuarterParser
|
|
75
|
+
};
|