@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,18 @@
|
|
|
1
|
+
import { toDate as o } from "../toDate.js";
|
|
2
|
+
function l(t) {
|
|
3
|
+
const e = o(t), n = new Date(
|
|
4
|
+
Date.UTC(
|
|
5
|
+
e.getFullYear(),
|
|
6
|
+
e.getMonth(),
|
|
7
|
+
e.getDate(),
|
|
8
|
+
e.getHours(),
|
|
9
|
+
e.getMinutes(),
|
|
10
|
+
e.getSeconds(),
|
|
11
|
+
e.getMilliseconds()
|
|
12
|
+
)
|
|
13
|
+
);
|
|
14
|
+
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
l as getTimezoneOffsetInMilliseconds
|
|
18
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const r = /^D+$/, s = /^Y+$/, a = ["D", "DD", "YY", "YYYY"];
|
|
2
|
+
function i(e) {
|
|
3
|
+
return r.test(e);
|
|
4
|
+
}
|
|
5
|
+
function f(e) {
|
|
6
|
+
return s.test(e);
|
|
7
|
+
}
|
|
8
|
+
function d(e, o, n) {
|
|
9
|
+
const t = c(e, o, n);
|
|
10
|
+
if (console.warn(t), a.includes(e)) throw new RangeError(t);
|
|
11
|
+
}
|
|
12
|
+
function c(e, o, n) {
|
|
13
|
+
const t = e[0] === "Y" ? "years" : "days of the month";
|
|
14
|
+
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${o}\`) for formatting ${t} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
i as isProtectedDayOfYearToken,
|
|
18
|
+
f as isProtectedWeekYearToken,
|
|
19
|
+
d as warnOrThrowProtectedError
|
|
20
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { addDays as A } from "./addDays.js";
|
|
2
|
+
import { addMonths as T } from "./addMonths.js";
|
|
3
|
+
import { constructFrom as D } from "./constructFrom.js";
|
|
4
|
+
import { toDate as M } from "./toDate.js";
|
|
5
|
+
function x(o, m, t) {
|
|
6
|
+
const {
|
|
7
|
+
years: s = 0,
|
|
8
|
+
months: d = 0,
|
|
9
|
+
weeks: n = 0,
|
|
10
|
+
days: r = 0,
|
|
11
|
+
hours: a = 0,
|
|
12
|
+
minutes: u = 0,
|
|
13
|
+
seconds: f = 0
|
|
14
|
+
} = m, e = M(o, t == null ? void 0 : t.in), c = d || s ? T(e, d + s * 12) : e, h = r || n ? A(c, r + n * 7) : c, i = u + a * 60, y = (f + i * 60) * 1e3;
|
|
15
|
+
return D(o, +h + y);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
x as add,
|
|
19
|
+
x as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { constructFrom as t } from "./constructFrom.js";
|
|
2
|
+
import { toDate as c } from "./toDate.js";
|
|
3
|
+
function N(f, a, r) {
|
|
4
|
+
const e = c(f, r == null ? void 0 : r.in);
|
|
5
|
+
return isNaN(a) ? t((r == null ? void 0 : r.in) || f, NaN) : (a && e.setDate(e.getDate() + a), e);
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
N as addDays,
|
|
9
|
+
N as default
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { constructFrom as f } from "./constructFrom.js";
|
|
2
|
+
import { toDate as c } from "./toDate.js";
|
|
3
|
+
function M(r, n, o) {
|
|
4
|
+
const t = c(r, o == null ? void 0 : o.in);
|
|
5
|
+
if (isNaN(n)) return f(r, NaN);
|
|
6
|
+
if (!n)
|
|
7
|
+
return t;
|
|
8
|
+
const a = t.getDate(), e = f(r, t.getTime());
|
|
9
|
+
e.setMonth(t.getMonth() + n + 1, 0);
|
|
10
|
+
const s = e.getDate();
|
|
11
|
+
return a >= s ? e : (t.setFullYear(
|
|
12
|
+
e.getFullYear(),
|
|
13
|
+
e.getMonth(),
|
|
14
|
+
a
|
|
15
|
+
), t);
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
M as addMonths,
|
|
19
|
+
M as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const o = 6048e5, n = 864e5, s = 6e4, c = 36e5, t = 1e3, l = Symbol.for("constructDateFrom");
|
|
2
|
+
export {
|
|
3
|
+
l as constructFromSymbol,
|
|
4
|
+
n as millisecondsInDay,
|
|
5
|
+
c as millisecondsInHour,
|
|
6
|
+
s as millisecondsInMinute,
|
|
7
|
+
t as millisecondsInSecond,
|
|
8
|
+
o as millisecondsInWeek
|
|
9
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { constructFromSymbol as o } from "./constants.js";
|
|
2
|
+
function c(r, n) {
|
|
3
|
+
return typeof r == "function" ? r(n) : r && typeof r == "object" && o in r ? r[o](n) : r instanceof Date ? new r.constructor(n) : new Date(n);
|
|
4
|
+
}
|
|
5
|
+
export {
|
|
6
|
+
c as constructFrom,
|
|
7
|
+
c as default
|
|
8
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getTimezoneOffsetInMilliseconds as a } from "./_lib/getTimezoneOffsetInMilliseconds.js";
|
|
2
|
+
import { normalizeDates as c } from "./_lib/normalizeDates.js";
|
|
3
|
+
import { millisecondsInDay as D } from "./constants.js";
|
|
4
|
+
import { startOfDay as m } from "./startOfDay.js";
|
|
5
|
+
function p(n, i, e) {
|
|
6
|
+
const [f, l] = c(
|
|
7
|
+
e == null ? void 0 : e.in,
|
|
8
|
+
n,
|
|
9
|
+
i
|
|
10
|
+
), r = m(f), t = m(l), o = +r - a(r), s = +t - a(t);
|
|
11
|
+
return Math.round((o - s) / D);
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
p as default,
|
|
15
|
+
p as differenceInCalendarDays
|
|
16
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { normalizeDates as f } from "./_lib/normalizeDates.js";
|
|
2
|
+
function u(r, a, e) {
|
|
3
|
+
const [l, t] = f(
|
|
4
|
+
e == null ? void 0 : e.in,
|
|
5
|
+
r,
|
|
6
|
+
a
|
|
7
|
+
);
|
|
8
|
+
return l.getFullYear() - t.getFullYear();
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
u as default,
|
|
12
|
+
u as differenceInCalendarYears
|
|
13
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { normalizeDates as m } from "./_lib/normalizeDates.js";
|
|
2
|
+
import { compareAsc as f } from "./compareAsc.js";
|
|
3
|
+
import { differenceInCalendarYears as o } from "./differenceInCalendarYears.js";
|
|
4
|
+
function D(l, s, a) {
|
|
5
|
+
const [e, r] = m(
|
|
6
|
+
a == null ? void 0 : a.in,
|
|
7
|
+
l,
|
|
8
|
+
s
|
|
9
|
+
), t = f(e, r), c = Math.abs(o(e, r));
|
|
10
|
+
e.setFullYear(1584), r.setFullYear(1584);
|
|
11
|
+
const i = f(e, r) === -t, n = t * (c - +i);
|
|
12
|
+
return n === 0 ? 0 : n;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
D as default,
|
|
16
|
+
D as differenceInYears
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { normalizeInterval as o } from "./_lib/normalizeInterval.js";
|
|
2
|
+
import { constructFrom as u } from "./constructFrom.js";
|
|
3
|
+
function v(c, r) {
|
|
4
|
+
const { start: t, end: s } = o(r == null ? void 0 : r.in, c);
|
|
5
|
+
let a = +t > +s;
|
|
6
|
+
const l = a ? +t : +s, e = a ? s : t;
|
|
7
|
+
e.setHours(0, 0, 0, 0);
|
|
8
|
+
let m = 1;
|
|
9
|
+
const n = [];
|
|
10
|
+
for (; +e <= l; )
|
|
11
|
+
n.push(u(t, e)), e.setDate(e.getDate() + m), e.setHours(0, 0, 0, 0);
|
|
12
|
+
return a ? n.reverse() : n;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
v as default,
|
|
16
|
+
v as eachDayOfInterval
|
|
17
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { normalizeInterval as o } from "./_lib/normalizeInterval.js";
|
|
2
|
+
import { addQuarters as u } from "./addQuarters.js";
|
|
3
|
+
import { constructFrom as c } from "./constructFrom.js";
|
|
4
|
+
import { startOfQuarter as t } from "./startOfQuarter.js";
|
|
5
|
+
function Q(d, a) {
|
|
6
|
+
const { start: r, end: m } = o(a == null ? void 0 : a.in, d);
|
|
7
|
+
let n = +r > +m;
|
|
8
|
+
const f = n ? +t(r) : +t(m);
|
|
9
|
+
let e = n ? t(m) : t(r), l = 1;
|
|
10
|
+
const s = [];
|
|
11
|
+
for (; +e <= f; )
|
|
12
|
+
s.push(c(r, e)), e = u(e, l);
|
|
13
|
+
return n ? s.reverse() : s;
|
|
14
|
+
}
|
|
15
|
+
export {
|
|
16
|
+
Q as default,
|
|
17
|
+
Q as eachQuarterOfInterval
|
|
18
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getDefaultOptions as n } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { toDate as w } from "./toDate.js";
|
|
3
|
+
function m(k, e) {
|
|
4
|
+
var c, O, l, d;
|
|
5
|
+
const a = n(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((O = (c = e == null ? void 0 : e.locale) == null ? void 0 : c.options) == null ? void 0 : O.weekStartsOn) ?? a.weekStartsOn ?? ((d = (l = a.locale) == null ? void 0 : l.options) == null ? void 0 : d.weekStartsOn) ?? 0, t = w(k, e == null ? void 0 : e.in), f = t.getDay(), u = (f < r ? -7 : 0) + 6 - (f - r);
|
|
6
|
+
return t.setDate(t.getDate() + u), t.setHours(23, 59, 59, 999), t;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
m as default,
|
|
10
|
+
m as endOfWeek
|
|
11
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { getDefaultOptions as v } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { formatters as D } from "./_lib/format/formatters.js";
|
|
3
|
+
import { longFormatters as C } from "./_lib/format/longFormatters.js";
|
|
4
|
+
import { isProtectedWeekYearToken as S, isProtectedDayOfYearToken as R, warnOrThrowProtectedError as W } from "./_lib/protectedTokens.js";
|
|
5
|
+
import { isValid as x } from "./isValid.js";
|
|
6
|
+
import { toDate as P } from "./toDate.js";
|
|
7
|
+
import { enUS as Y } from "./locale/en-US.js";
|
|
8
|
+
const z = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, F = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, y = /^'([^]*?)'?$/, A = /''/g, L = /[a-zA-Z]/;
|
|
9
|
+
function U(t, c, e) {
|
|
10
|
+
var i, k, s, u, d, g, h, w;
|
|
11
|
+
const n = v(), l = (e == null ? void 0 : e.locale) ?? n.locale ?? Y, T = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((k = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : k.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (s = n.locale) == null ? void 0 : s.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, O = (e == null ? void 0 : e.weekStartsOn) ?? ((g = (d = e == null ? void 0 : e.locale) == null ? void 0 : d.options) == null ? void 0 : g.weekStartsOn) ?? n.weekStartsOn ?? ((w = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : w.weekStartsOn) ?? 0, f = P(t, e == null ? void 0 : e.in);
|
|
12
|
+
if (!x(f))
|
|
13
|
+
throw new RangeError("Invalid time value");
|
|
14
|
+
let m = c.match(F).map((a) => {
|
|
15
|
+
const r = a[0];
|
|
16
|
+
if (r === "p" || r === "P") {
|
|
17
|
+
const o = C[r];
|
|
18
|
+
return o(a, l.formatLong);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
}).join("").match(z).map((a) => {
|
|
22
|
+
if (a === "''")
|
|
23
|
+
return { isToken: !1, value: "'" };
|
|
24
|
+
const r = a[0];
|
|
25
|
+
if (r === "'")
|
|
26
|
+
return { isToken: !1, value: $(a) };
|
|
27
|
+
if (D[r])
|
|
28
|
+
return { isToken: !0, value: a };
|
|
29
|
+
if (r.match(L))
|
|
30
|
+
throw new RangeError(
|
|
31
|
+
"Format string contains an unescaped latin alphabet character `" + r + "`"
|
|
32
|
+
);
|
|
33
|
+
return { isToken: !1, value: a };
|
|
34
|
+
});
|
|
35
|
+
l.localize.preprocessor && (m = l.localize.preprocessor(f, m));
|
|
36
|
+
const E = {
|
|
37
|
+
firstWeekContainsDate: T,
|
|
38
|
+
weekStartsOn: O,
|
|
39
|
+
locale: l
|
|
40
|
+
};
|
|
41
|
+
return m.map((a) => {
|
|
42
|
+
if (!a.isToken) return a.value;
|
|
43
|
+
const r = a.value;
|
|
44
|
+
(!(e != null && e.useAdditionalWeekYearTokens) && S(r) || !(e != null && e.useAdditionalDayOfYearTokens) && R(r)) && W(r, c, String(t));
|
|
45
|
+
const o = D[r[0]];
|
|
46
|
+
return o(f, r, l.localize, E);
|
|
47
|
+
}).join("");
|
|
48
|
+
}
|
|
49
|
+
function $(t) {
|
|
50
|
+
const c = t.match(y);
|
|
51
|
+
return c ? c[1].replace(A, "'") : t;
|
|
52
|
+
}
|
|
53
|
+
export {
|
|
54
|
+
U as default,
|
|
55
|
+
U as format,
|
|
56
|
+
U as formatDate,
|
|
57
|
+
D as formatters,
|
|
58
|
+
C as longFormatters
|
|
59
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { differenceInCalendarDays as e } from "./differenceInCalendarDays.js";
|
|
2
|
+
import { startOfYear as t } from "./startOfYear.js";
|
|
3
|
+
import { toDate as d } from "./toDate.js";
|
|
4
|
+
function y(f, r) {
|
|
5
|
+
const a = d(f, r == null ? void 0 : r.in);
|
|
6
|
+
return e(a, t(a)) + 1;
|
|
7
|
+
}
|
|
8
|
+
export {
|
|
9
|
+
y as default,
|
|
10
|
+
y as getDayOfYear
|
|
11
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { constructFrom as c } from "./constructFrom.js";
|
|
2
|
+
import { toDate as s } from "./toDate.js";
|
|
3
|
+
function m(a, t) {
|
|
4
|
+
const e = s(a, t == null ? void 0 : t.in), n = e.getFullYear(), o = e.getMonth(), r = c(e, 0);
|
|
5
|
+
return r.setFullYear(n, o + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
m as default,
|
|
9
|
+
m as getDaysInMonth
|
|
10
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { millisecondsInWeek as m } from "./constants.js";
|
|
2
|
+
import { startOfISOWeek as a } from "./startOfISOWeek.js";
|
|
3
|
+
import { startOfISOWeekYear as o } from "./startOfISOWeekYear.js";
|
|
4
|
+
import { toDate as d } from "./toDate.js";
|
|
5
|
+
function k(t, e) {
|
|
6
|
+
const r = d(t, e == null ? void 0 : e.in), f = +a(r) - +o(r);
|
|
7
|
+
return Math.round(f / m) + 1;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
k as default,
|
|
11
|
+
k as getISOWeek
|
|
12
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { constructFrom as f } from "./constructFrom.js";
|
|
2
|
+
import { startOfISOWeek as u } from "./startOfISOWeek.js";
|
|
3
|
+
import { toDate as c } from "./toDate.js";
|
|
4
|
+
function Y(o, r) {
|
|
5
|
+
const e = c(o, r == null ? void 0 : r.in), t = e.getFullYear(), a = f(e, 0);
|
|
6
|
+
a.setFullYear(t + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
7
|
+
const m = u(a), s = f(e, 0);
|
|
8
|
+
s.setFullYear(t, 0, 4), s.setHours(0, 0, 0, 0);
|
|
9
|
+
const n = u(s);
|
|
10
|
+
return e.getTime() >= m.getTime() ? t + 1 : e.getTime() >= n.getTime() ? t : t - 1;
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
Y as default,
|
|
14
|
+
Y as getISOWeekYear
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { millisecondsInWeek as m } from "./constants.js";
|
|
2
|
+
import { startOfWeek as a } from "./startOfWeek.js";
|
|
3
|
+
import { startOfWeekYear as d } from "./startOfWeekYear.js";
|
|
4
|
+
import { toDate as c } from "./toDate.js";
|
|
5
|
+
function l(t, e) {
|
|
6
|
+
const r = c(t, e == null ? void 0 : e.in), f = +a(r, e) - +d(r, e);
|
|
7
|
+
return Math.round(f / m) + 1;
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
l as default,
|
|
11
|
+
l as getWeek
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { getDefaultOptions as C } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { constructFrom as Y } from "./constructFrom.js";
|
|
3
|
+
import { startOfWeek as D } from "./startOfWeek.js";
|
|
4
|
+
import { toDate as F } from "./toDate.js";
|
|
5
|
+
function H(t, e) {
|
|
6
|
+
var u, k, m, W;
|
|
7
|
+
const a = F(t, e == null ? void 0 : e.in), r = a.getFullYear(), c = C(), s = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((k = (u = e == null ? void 0 : e.locale) == null ? void 0 : u.options) == null ? void 0 : k.firstWeekContainsDate) ?? c.firstWeekContainsDate ?? ((W = (m = c.locale) == null ? void 0 : m.options) == null ? void 0 : W.firstWeekContainsDate) ?? 1, f = Y((e == null ? void 0 : e.in) || t, 0);
|
|
8
|
+
f.setFullYear(r + 1, 0, s), f.setHours(0, 0, 0, 0);
|
|
9
|
+
const O = D(f, e), l = Y((e == null ? void 0 : e.in) || t, 0);
|
|
10
|
+
l.setFullYear(r, 0, s), l.setHours(0, 0, 0, 0);
|
|
11
|
+
const n = D(l, e);
|
|
12
|
+
return +a >= +O ? r + 1 : +a >= +n ? r : r - 1;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
H as default,
|
|
16
|
+
H as getWeekYear
|
|
17
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { normalizeDates as u } from "./_lib/normalizeDates.js";
|
|
2
|
+
import { startOfQuarter as t } from "./startOfQuarter.js";
|
|
3
|
+
function c(e, a, r) {
|
|
4
|
+
const [f, m] = u(
|
|
5
|
+
r == null ? void 0 : r.in,
|
|
6
|
+
e,
|
|
7
|
+
a
|
|
8
|
+
);
|
|
9
|
+
return +t(f) == +t(m);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
c as default,
|
|
13
|
+
c as isSameQuarter
|
|
14
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
function h(e) {
|
|
2
|
+
return (a, t) => {
|
|
3
|
+
const c = t != null && t.context ? String(t.context) : "standalone";
|
|
4
|
+
let l;
|
|
5
|
+
if (c === "formatting" && e.formattingValues) {
|
|
6
|
+
const d = e.defaultFormattingWidth || e.defaultWidth, u = t != null && t.width ? String(t.width) : d;
|
|
7
|
+
l = e.formattingValues[u] || e.formattingValues[d];
|
|
8
|
+
} else {
|
|
9
|
+
const d = e.defaultWidth, u = t != null && t.width ? String(t.width) : e.defaultWidth;
|
|
10
|
+
l = e.values[u] || e.values[d];
|
|
11
|
+
}
|
|
12
|
+
const f = e.argumentCallback ? e.argumentCallback(a) : a;
|
|
13
|
+
return l[f];
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export {
|
|
17
|
+
h as buildLocalizeFn
|
|
18
|
+
};
|