@oslokommune/punkt-react 20.0.3 → 20.0.5
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/CHANGELOG.md +5 -0
- package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.156.0}/helpers/esm/defineProperty.js +1 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.156.0}/helpers/esm/toPrimitive.js +1 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.156.0}/helpers/esm/toPropertyKey.js +1 -2
- package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.156.0}/helpers/esm/typeof.js +1 -2
- package/dist/_virtual/_rolldown/runtime.js +1 -2
- package/dist/components/accordion/Accordion.js +1 -2
- package/dist/components/accordion/AccordionItem.js +9 -10
- package/dist/components/alert/Alert.js +7 -8
- package/dist/components/backlink/BackLink.js +1 -2
- package/dist/components/breadcrumbs/Breadcrumbs.js +1 -2
- package/dist/components/button/Button.js +1 -2
- package/dist/components/calendar/Calendar.js +1 -2
- package/dist/components/calendar/CalendarGrid.js +1 -2
- package/dist/components/calendar/CalendarNav.js +5 -6
- package/dist/components/calendar/calendar-utils.js +1 -2
- package/dist/components/calendar/useCalendarState.js +90 -91
- package/dist/components/card/Card.js +14 -15
- package/dist/components/checkbox/Checkbox.js +3 -8
- package/dist/components/checkboxgroup/CheckboxGroup.js +10 -11
- package/dist/components/checkboxgroup/CheckboxGroupContext.js +1 -2
- package/dist/components/combobox/Combobox.js +5 -6
- package/dist/components/combobox/ComboboxInput.js +6 -7
- package/dist/components/combobox/ComboboxTags.js +11 -12
- package/dist/components/combobox/Listbox.js +25 -26
- package/dist/components/combobox/useComboboxState.js +38 -39
- package/dist/components/consent/Consent.js +6 -7
- package/dist/components/datepicker/DateTags.js +14 -15
- package/dist/components/datepicker/Datepicker.js +1 -2
- package/dist/components/datepicker/DatepickerInputs.js +1 -2
- package/dist/components/datepicker/DatepickerPopup.js +5 -6
- package/dist/components/datepicker/useDatepickerState.js +20 -21
- package/dist/components/fileupload/DropZone.js +6 -7
- package/dist/components/fileupload/FileUpload.js +36 -37
- package/dist/components/fileupload/FileUploadContext.js +1 -2
- package/dist/components/fileupload/QueueDisplay.js +12 -13
- package/dist/components/fileupload/QueueItemContent.js +14 -15
- package/dist/components/fileupload/Subcomponents.js +70 -71
- package/dist/components/fileupload/Truncate.js +1 -2
- package/dist/components/fileupload/extensions/Comments.js +21 -22
- package/dist/components/fileupload/extensions/Remove.js +1 -2
- package/dist/components/fileupload/extensions/Rename.js +8 -9
- package/dist/components/fileupload/hooks/useFileAttributes.js +1 -2
- package/dist/components/fileupload/hooks/useImageObjectUrl.js +1 -2
- package/dist/components/fileupload/hooks/useImagePreview.js +1 -2
- package/dist/components/fileupload/hooks/useOperationState.js +1 -2
- package/dist/components/fileupload/hooks/useRequiredFormValidation.js +1 -2
- package/dist/components/fileupload/types.js +4 -5
- package/dist/components/footer/Footer.js +23 -24
- package/dist/components/footer/FooterGlobal.js +24 -25
- package/dist/components/footerSimple/FooterSimple.js +5 -6
- package/dist/components/header/Header.js +1 -2
- package/dist/components/header/HeaderGlobal.js +127 -128
- package/dist/components/header/HeaderService.js +84 -85
- package/dist/components/header-menu/HeaderMenu.js +34 -35
- package/dist/components/headerUserMenu/UserMenu.js +14 -15
- package/dist/components/heading/Heading.js +1 -2
- package/dist/components/helptext/Helptext.js +5 -6
- package/dist/components/icon/Icon.js +2 -3
- package/dist/components/input/Input.js +1 -2
- package/dist/components/inputwrapper/InputWrapper.js +12 -17
- package/dist/components/link/Link.js +1 -2
- package/dist/components/linkcard/LinkCard.js +2 -3
- package/dist/components/loader/Loader.js +2 -3
- package/dist/components/messagebox/Messagebox.js +6 -7
- package/dist/components/modal/Modal.js +13 -14
- package/dist/components/progressbar/Progressbar.js +5 -6
- package/dist/components/radio/RadioButton.js +3 -8
- package/dist/components/radiogroup/RadioGroup.js +1 -2
- package/dist/components/radiogroup/RadioGroupContext.js +1 -2
- package/dist/components/searchinput/SearchInput.js +11 -12
- package/dist/components/select/Select.js +6 -7
- package/dist/components/stepper/Step.js +1 -2
- package/dist/components/stepper/Stepper.js +1 -2
- package/dist/components/strings/PktStringsProvider.js +1 -2
- package/dist/components/table/Table.js +2 -3
- package/dist/components/table/TableBody.js +1 -2
- package/dist/components/table/TableDataCell.js +1 -2
- package/dist/components/table/TableHeader.js +1 -2
- package/dist/components/table/TableHeaderCell.js +1 -2
- package/dist/components/table/TableRow.js +1 -2
- package/dist/components/tabs/TabItem.js +1 -2
- package/dist/components/tabs/Tabs.js +5 -6
- package/dist/components/tag/Tag.js +6 -7
- package/dist/components/textarea/Textarea.js +5 -6
- package/dist/components/textinput/Textinput.js +6 -7
- package/dist/components/timepicker/Timepicker.js +6 -7
- package/dist/components/timepicker/useTimepickerState.js +27 -28
- package/dist/hooks/useElementWidth.js +1 -2
- package/dist/hooks/useFocusModality.js +1 -2
- package/dist/hooks/useGeneratedId.js +1 -2
- package/dist/hooks/useHeaderChrome.js +1 -2
- package/dist/hooks/useOptionGroupField.js +1 -2
- package/dist/hooks/useOwnerForm.js +1 -2
- package/dist/hooks/usePktStrings.js +1 -2
- package/dist/hooks/useScrollLock.js +1 -2
- package/dist/node_modules/@date-fns/tz/date/index.js +1 -2
- package/dist/node_modules/@date-fns/tz/date/mini.js +1 -2
- package/dist/node_modules/@date-fns/tz/index.js +3 -3
- package/dist/node_modules/@date-fns/tz/tzName/index.js +1 -2
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +1 -2
- package/dist/node_modules/classnames/index.js +1 -2
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +1 -2
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +1 -2
- package/dist/node_modules/date-fns/_lib/format/formatters.js +18 -19
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +1 -2
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +1 -2
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +1 -2
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +1 -2
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +1 -2
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +1 -2
- package/dist/node_modules/date-fns/addDays.js +1 -2
- package/dist/node_modules/date-fns/constants.js +1 -2
- package/dist/node_modules/date-fns/constructFrom.js +1 -2
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +6 -7
- package/dist/node_modules/date-fns/eachDayOfInterval.js +5 -6
- package/dist/node_modules/date-fns/endOfDay.js +1 -2
- package/dist/node_modules/date-fns/format.js +15 -16
- package/dist/node_modules/date-fns/getDayOfYear.js +6 -7
- package/dist/node_modules/date-fns/getISODay.js +1 -2
- package/dist/node_modules/date-fns/getISOWeek.js +5 -6
- package/dist/node_modules/date-fns/getISOWeekYear.js +6 -7
- package/dist/node_modules/date-fns/getWeek.js +5 -6
- package/dist/node_modules/date-fns/getWeekYear.js +8 -9
- package/dist/node_modules/date-fns/isDate.js +1 -2
- package/dist/node_modules/date-fns/isValid.js +4 -5
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +1 -2
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +1 -2
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +1 -2
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +1 -2
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +1 -2
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +1 -2
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -1
- package/dist/node_modules/date-fns/locale/en-US.js +1 -2
- package/dist/node_modules/date-fns/startOfDay.js +1 -2
- package/dist/node_modules/date-fns/startOfISOWeek.js +1 -2
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +5 -6
- package/dist/node_modules/date-fns/startOfWeek.js +4 -5
- package/dist/node_modules/date-fns/startOfWeekYear.js +7 -8
- package/dist/node_modules/date-fns/startOfYear.js +1 -2
- package/dist/node_modules/date-fns/toDate.js +1 -2
- package/dist/punkt-react.cjs +1 -1
- package/dist/shared-strings/consent.js +1 -2
- package/dist/shared-strings/format.js +1 -2
- package/dist/shared-strings/nb.js +1 -2
- package/dist/shared-strings/resolve.js +1 -2
- package/dist/shared-strings/store.js +1 -2
- package/dist/shared-types/accordion.js +1 -2
- package/dist/shared-types/calendar.js +1 -2
- package/dist/shared-types/card.js +1 -2
- package/dist/shared-types/checkbox.js +1 -2
- package/dist/shared-types/combobox.js +1 -2
- package/dist/shared-types/consent.js +1 -2
- package/dist/shared-types/footer.js +1 -2
- package/dist/shared-types/header-footer.js +1 -2
- package/dist/shared-types/icon.js +1 -2
- package/dist/shared-types/input-wrapper.js +1 -2
- package/dist/shared-types/linkcard.js +1 -2
- package/dist/shared-types/loader.js +1 -2
- package/dist/shared-types/messagebox.js +1 -2
- package/dist/shared-types/option-group.js +1 -2
- package/dist/shared-types/progressbar.js +1 -2
- package/dist/shared-types/radiobutton.js +1 -2
- package/dist/shared-types/select.js +1 -2
- package/dist/shared-types/size.js +1 -2
- package/dist/shared-types/table.js +1 -2
- package/dist/shared-types/tag.js +1 -2
- package/dist/shared-types/textarea.js +1 -2
- package/dist/shared-types/textinput.js +1 -2
- package/dist/shared-utils/calendar/calendar-grid.js +4 -5
- package/dist/shared-utils/calendar/date-validation.js +1 -2
- package/dist/shared-utils/calendar/keyboard-navigation.js +1 -2
- package/dist/shared-utils/calendar/selection-manager.js +31 -32
- package/dist/shared-utils/combobox/input-utils.js +1 -2
- package/dist/shared-utils/combobox/keyboard-navigation.js +1 -2
- package/dist/shared-utils/combobox/option-utils.js +1 -2
- package/dist/shared-utils/date-utils.js +10 -11
- package/dist/shared-utils/datepicker-utils.js +4 -5
- package/dist/shared-utils/device-utils.js +1 -2
- package/dist/shared-utils/fileupload/announcements.js +1 -2
- package/dist/shared-utils/fileupload/filename.js +1 -2
- package/dist/shared-utils/fileupload/formats.js +1 -2
- package/dist/shared-utils/fileupload/navigation.js +1 -2
- package/dist/shared-utils/fileupload/size.js +1 -2
- package/dist/shared-utils/fileupload/transfers.js +1 -2
- package/dist/shared-utils/fileupload/truncate.js +1 -2
- package/dist/shared-utils/fileupload/validation.js +8 -9
- package/dist/shared-utils/focus-trap/index.js +13 -31
- package/dist/shared-utils/forms/described-by.js +1 -2
- package/dist/shared-utils/header-footer/external-domain.js +1 -2
- package/dist/shared-utils/header-footer/fetch-header-footer-data.js +1 -2
- package/dist/shared-utils/header-footer/icon-map.js +1 -2
- package/dist/shared-utils/header-footer/select-megamenu.js +1 -2
- package/dist/shared-utils/scroll-lock/index.js +1 -2
- package/dist/shared-utils/timepicker/options.js +1 -2
- package/dist/shared-utils/timepicker/stepper.js +1 -2
- package/dist/shared-utils/timepicker/time-utils.js +1 -2
- package/dist/shared-utils/value-utils.js +1 -2
- package/dist/utils/nativeInputValue.js +1 -2
- package/dist/utils/stableKeys.js +1 -2
- package/dist/utils/stringutils.js +1 -2
- package/package.json +20 -21
- package/src/components/accordion/Accordion.test.tsx +2 -4
- package/src/components/tag/Tag.tsx +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeDates as e } from "./normalizeDates.js";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/date-fns/_lib/normalizeInterval.js
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
let [r, i] = e(t, n.start, n.end);
|
|
5
5
|
return {
|
|
@@ -7,5 +7,4 @@ function t(t, n) {
|
|
|
7
7
|
end: i
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { t as normalizeInterval };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/date-fns/_lib/protectedTokens.js
|
|
2
2
|
var e = /^D+$/, t = /^Y+$/, n = [
|
|
3
3
|
"D",
|
|
4
4
|
"DD",
|
|
@@ -19,5 +19,4 @@ function o(e, t, n) {
|
|
|
19
19
|
let r = e[0] === "Y" ? "years" : "days of the month";
|
|
20
20
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { r as isProtectedDayOfYearToken, i as isProtectedWeekYearToken, a as warnOrThrowProtectedError };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { constructFrom as e } from "./constructFrom.js";
|
|
2
2
|
import t from "./toDate.js";
|
|
3
|
-
|
|
3
|
+
// ../../node_modules/date-fns/addDays.js
|
|
4
4
|
function n(n, r, i) {
|
|
5
5
|
let a = t(n, i?.in);
|
|
6
6
|
return isNaN(r) ? e(i?.in || n, NaN) : (r && a.setDate(a.getDate() + r), a);
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { n as addDays, n as default };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/date-fns/constants.js
|
|
2
2
|
var e = 10 ** 8 * 24 * 60 * 60 * 1e3;
|
|
3
3
|
-e;
|
|
4
4
|
var t = 6048e5, n = 864e5, r = Symbol.for("constructDateFrom");
|
|
5
|
-
//#endregion
|
|
6
5
|
export { r as constructFromSymbol, e as maxTime, n as millisecondsInDay, t as millisecondsInWeek };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { constructFromSymbol as e } from "./constants.js";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/date-fns/constructFrom.js
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
return typeof t == "function" ? t(n) : t && typeof t == "object" && e in t ? t[e](n) : t instanceof Date ? new t.constructor(n) : new Date(n);
|
|
5
5
|
}
|
|
6
|
-
//#endregion
|
|
7
6
|
export { t as constructFrom, t as default };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { getTimezoneOffsetInMilliseconds as e } from "./_lib/getTimezoneOffsetInMilliseconds.js";
|
|
2
|
+
import { normalizeDates as t } from "./_lib/normalizeDates.js";
|
|
3
|
+
import { millisecondsInDay as n } from "./constants.js";
|
|
4
4
|
import r from "./startOfDay.js";
|
|
5
|
-
|
|
5
|
+
// ../../node_modules/date-fns/differenceInCalendarDays.js
|
|
6
6
|
function i(i, a, o) {
|
|
7
|
-
let [s, c] =
|
|
8
|
-
return Math.round((d - f) /
|
|
7
|
+
let [s, c] = t(o?.in, i, a), l = r(s), u = r(c), d = +l - e(l), f = +u - e(u);
|
|
8
|
+
return Math.round((d - f) / n);
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { i as default, i as differenceInCalendarDays };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import { normalizeInterval as e } from "./_lib/normalizeInterval.js";
|
|
2
|
+
import { constructFrom as t } from "./constructFrom.js";
|
|
3
|
+
// ../../node_modules/date-fns/eachDayOfInterval.js
|
|
4
4
|
function n(n, r) {
|
|
5
|
-
let { start: i, end: a } =
|
|
5
|
+
let { start: i, end: a } = e(r?.in, n), o = +i > +a, s = o ? +i : +a, c = o ? a : i;
|
|
6
6
|
c.setHours(0, 0, 0, 0);
|
|
7
7
|
let l = r?.step ?? 1;
|
|
8
8
|
if (!l) return [];
|
|
9
9
|
l < 0 && (l = -l, o = !o);
|
|
10
10
|
let u = [];
|
|
11
|
-
for (; +c <= s;) u.push(
|
|
11
|
+
for (; +c <= s;) u.push(t(i, c)), c.setDate(c.getDate() + l), c.setHours(0, 0, 0, 0);
|
|
12
12
|
return o ? u.reverse() : u;
|
|
13
13
|
}
|
|
14
|
-
//#endregion
|
|
15
14
|
export { n as default, n as eachDayOfInterval };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import e from "./toDate.js";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/date-fns/endOfDay.js
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
let r = e(t, n?.in);
|
|
5
5
|
return r.setHours(23, 59, 59, 999), r;
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { t as default, t as endOfDay };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import e from "./
|
|
1
|
+
import e from "./locale/en-US.js";
|
|
2
2
|
import { getDefaultOptions as t } from "./_lib/defaultOptions.js";
|
|
3
|
-
import n from "./
|
|
4
|
-
import r from "./
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
|
|
3
|
+
import { formatters as n } from "./_lib/format/formatters.js";
|
|
4
|
+
import { longFormatters as r } from "./_lib/format/longFormatters.js";
|
|
5
|
+
import { isProtectedDayOfYearToken as i, isProtectedWeekYearToken as a, warnOrThrowProtectedError as o } from "./_lib/protectedTokens.js";
|
|
6
|
+
import s from "./isValid.js";
|
|
7
|
+
import c from "./toDate.js";
|
|
8
|
+
// ../../node_modules/date-fns/format.js
|
|
9
9
|
var l = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, u = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, d = /^'([^]*?)'?$/, f = /''/g, p = /[a-zA-Z]/;
|
|
10
10
|
function m(d, f, m) {
|
|
11
|
-
let g = t(), _ = m?.locale ?? g.locale ??
|
|
12
|
-
if (!
|
|
11
|
+
let g = t(), _ = m?.locale ?? g.locale ?? e, v = m?.firstWeekContainsDate ?? m?.locale?.options?.firstWeekContainsDate ?? g.firstWeekContainsDate ?? g.locale?.options?.firstWeekContainsDate ?? 1, y = m?.weekStartsOn ?? m?.locale?.options?.weekStartsOn ?? g.weekStartsOn ?? g.locale?.options?.weekStartsOn ?? 0, b = c(d, m?.in);
|
|
12
|
+
if (!s(b)) throw RangeError("Invalid time value");
|
|
13
13
|
let x = f.match(u).map((e) => {
|
|
14
14
|
let t = e[0];
|
|
15
15
|
if (t === "p" || t === "P") {
|
|
16
|
-
let n =
|
|
16
|
+
let n = r[t];
|
|
17
17
|
return n(e, _.formatLong);
|
|
18
18
|
}
|
|
19
19
|
return e;
|
|
@@ -27,7 +27,7 @@ function m(d, f, m) {
|
|
|
27
27
|
isToken: !1,
|
|
28
28
|
value: h(e)
|
|
29
29
|
};
|
|
30
|
-
if (
|
|
30
|
+
if (n[t]) return {
|
|
31
31
|
isToken: !0,
|
|
32
32
|
value: e
|
|
33
33
|
};
|
|
@@ -46,14 +46,13 @@ function m(d, f, m) {
|
|
|
46
46
|
return x.map((e) => {
|
|
47
47
|
if (!e.isToken) return e.value;
|
|
48
48
|
let t = e.value;
|
|
49
|
-
(!m?.useAdditionalWeekYearTokens &&
|
|
50
|
-
let
|
|
51
|
-
return
|
|
49
|
+
(!m?.useAdditionalWeekYearTokens && a(t) || !m?.useAdditionalDayOfYearTokens && i(t)) && o(t, f, String(d));
|
|
50
|
+
let r = n[t[0]];
|
|
51
|
+
return r(b, t, _.localize, S);
|
|
52
52
|
}).join("");
|
|
53
53
|
}
|
|
54
54
|
function h(e) {
|
|
55
55
|
let t = e.match(d);
|
|
56
56
|
return t ? t[1].replace(f, "'") : e;
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
export { m as default, m as format, m as formatDate, i as formatters, a as longFormatters };
|
|
58
|
+
export { m as default, m as format, m as formatDate, n as formatters, r as longFormatters };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./
|
|
4
|
-
|
|
1
|
+
import e from "./differenceInCalendarDays.js";
|
|
2
|
+
import t from "./startOfYear.js";
|
|
3
|
+
import n from "./toDate.js";
|
|
4
|
+
// ../../node_modules/date-fns/getDayOfYear.js
|
|
5
5
|
function r(r, i) {
|
|
6
|
-
let a =
|
|
7
|
-
return
|
|
6
|
+
let a = n(r, i?.in);
|
|
7
|
+
return e(a, t(a)) + 1;
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { r as default, r as getDayOfYear };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import e from "./toDate.js";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/date-fns/getISODay.js
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
let r = e(t, n?.in).getDay();
|
|
5
5
|
return r === 0 ? 7 : r;
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { t as default, t as getISODay };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { millisecondsInWeek as e } from "./constants.js";
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./
|
|
4
|
-
import r from "./
|
|
5
|
-
|
|
2
|
+
import t from "./startOfISOWeek.js";
|
|
3
|
+
import n from "./startOfISOWeekYear.js";
|
|
4
|
+
import r from "./toDate.js";
|
|
5
|
+
// ../../node_modules/date-fns/getISOWeek.js
|
|
6
6
|
function i(i, a) {
|
|
7
|
-
let o =
|
|
7
|
+
let o = r(i, a?.in), s = +t(o) - n(o);
|
|
8
8
|
return Math.round(s / e) + 1;
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { i as default, i as getISOWeek };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { constructFrom as e } from "./constructFrom.js";
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./
|
|
4
|
-
|
|
2
|
+
import t from "./startOfISOWeek.js";
|
|
3
|
+
import n from "./toDate.js";
|
|
4
|
+
// ../../node_modules/date-fns/getISOWeekYear.js
|
|
5
5
|
function r(r, i) {
|
|
6
|
-
let a =
|
|
6
|
+
let a = n(r, i?.in), o = a.getFullYear(), s = e(a, 0);
|
|
7
7
|
s.setFullYear(o + 1, 0, 4), s.setHours(0, 0, 0, 0);
|
|
8
|
-
let c =
|
|
8
|
+
let c = t(s), l = e(a, 0);
|
|
9
9
|
l.setFullYear(o, 0, 4), l.setHours(0, 0, 0, 0);
|
|
10
|
-
let u =
|
|
10
|
+
let u = t(l);
|
|
11
11
|
return a.getTime() >= c.getTime() ? o + 1 : a.getTime() >= u.getTime() ? o : o - 1;
|
|
12
12
|
}
|
|
13
|
-
//#endregion
|
|
14
13
|
export { r as default, r as getISOWeekYear };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { millisecondsInWeek as e } from "./constants.js";
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./
|
|
4
|
-
import r from "./
|
|
5
|
-
|
|
2
|
+
import t from "./startOfWeek.js";
|
|
3
|
+
import n from "./startOfWeekYear.js";
|
|
4
|
+
import r from "./toDate.js";
|
|
5
|
+
// ../../node_modules/date-fns/getWeek.js
|
|
6
6
|
function i(i, a) {
|
|
7
|
-
let o =
|
|
7
|
+
let o = r(i, a?.in), s = +t(o, a) - n(o, a);
|
|
8
8
|
return Math.round(s / e) + 1;
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { i as default, i as getWeek };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "./
|
|
3
|
-
import
|
|
4
|
-
import r from "./
|
|
5
|
-
|
|
1
|
+
import { getDefaultOptions as e } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { constructFrom as t } from "./constructFrom.js";
|
|
3
|
+
import n from "./startOfWeek.js";
|
|
4
|
+
import r from "./toDate.js";
|
|
5
|
+
// ../../node_modules/date-fns/getWeekYear.js
|
|
6
6
|
function i(i, a) {
|
|
7
|
-
let o =
|
|
7
|
+
let o = r(i, a?.in), s = o.getFullYear(), c = e(), l = a?.firstWeekContainsDate ?? a?.locale?.options?.firstWeekContainsDate ?? c.firstWeekContainsDate ?? c.locale?.options?.firstWeekContainsDate ?? 1, u = t(a?.in || i, 0);
|
|
8
8
|
u.setFullYear(s + 1, 0, l), u.setHours(0, 0, 0, 0);
|
|
9
|
-
let d =
|
|
9
|
+
let d = n(u, a), f = t(a?.in || i, 0);
|
|
10
10
|
f.setFullYear(s, 0, l), f.setHours(0, 0, 0, 0);
|
|
11
|
-
let p =
|
|
11
|
+
let p = n(f, a);
|
|
12
12
|
return +o >= +d ? s + 1 : +o >= +p ? s : s - 1;
|
|
13
13
|
}
|
|
14
|
-
//#endregion
|
|
15
14
|
export { i as default, i as getWeekYear };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/date-fns/isDate.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
4
4
|
}
|
|
5
|
-
//#endregion
|
|
6
5
|
export { e as default, e as isDate };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import t from "./
|
|
3
|
-
|
|
1
|
+
import e from "./isDate.js";
|
|
2
|
+
import t from "./toDate.js";
|
|
3
|
+
// ../../node_modules/date-fns/isValid.js
|
|
4
4
|
function n(n) {
|
|
5
|
-
return !(!
|
|
5
|
+
return !(!e(n) && typeof n != "number" || isNaN(+t(n)));
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { n as default, n as isValid };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return (t = {}) => {
|
|
4
4
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
5
5
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { e as buildFormatLongFn };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return (t, n) => {
|
|
4
4
|
let r = n?.context ? String(n.context) : "standalone", i;
|
|
@@ -13,5 +13,4 @@ function e(e) {
|
|
|
13
13
|
return i[a];
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
//#endregion
|
|
17
16
|
export { e as buildLocalizeFn };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return (r, i = {}) => {
|
|
4
4
|
let a = i.width, o = a && e.matchPatterns[a] || e.matchPatterns[e.defaultMatchWidth], s = r.match(o);
|
|
@@ -18,5 +18,4 @@ function t(e, t) {
|
|
|
18
18
|
function n(e, t) {
|
|
19
19
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { e as buildMatchFn };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
2
2
|
function e(e) {
|
|
3
3
|
return (t, n = {}) => {
|
|
4
4
|
let r = t.match(e.matchPattern);
|
|
@@ -14,5 +14,4 @@ function e(e) {
|
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
//#endregion
|
|
18
17
|
export { e as buildMatchPatternFn };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
2
2
|
var e = {
|
|
3
3
|
lessThanXSeconds: {
|
|
4
4
|
one: "less than a second",
|
|
@@ -65,5 +65,4 @@ var e = {
|
|
|
65
65
|
let i, a = e[t];
|
|
66
66
|
return i = typeof a == "string" ? a : n === 1 ? a.one : a.other.replace("{{count}}", n.toString()), r?.addSuffix ? r.comparison && r.comparison > 0 ? "in " + i : i + " ago" : i;
|
|
67
67
|
};
|
|
68
|
-
//#endregion
|
|
69
68
|
export { t as formatDistance };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// ../../node_modules/date-fns/locale/en-US/_lib/formatRelative.js
|
|
2
2
|
var e = {
|
|
3
3
|
lastWeek: "'last' eeee 'at' p",
|
|
4
4
|
yesterday: "'yesterday at' p",
|
|
@@ -7,5 +7,4 @@ var e = {
|
|
|
7
7
|
nextWeek: "eeee 'at' p",
|
|
8
8
|
other: "P"
|
|
9
9
|
}, t = (t, n, r, i) => e[t];
|
|
10
|
-
//#endregion
|
|
11
10
|
export { t as formatRelative };
|
|
@@ -3,7 +3,7 @@ import { formatLong as t } from "./en-US/_lib/formatLong.js";
|
|
|
3
3
|
import { formatRelative as n } from "./en-US/_lib/formatRelative.js";
|
|
4
4
|
import { localize as r } from "./en-US/_lib/localize.js";
|
|
5
5
|
import { match as i } from "./en-US/_lib/match.js";
|
|
6
|
-
|
|
6
|
+
// ../../node_modules/date-fns/locale/en-US.js
|
|
7
7
|
var a = {
|
|
8
8
|
code: "en-US",
|
|
9
9
|
formatDistance: e,
|
|
@@ -16,5 +16,4 @@ var a = {
|
|
|
16
16
|
firstWeekContainsDate: 1
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
//#endregion
|
|
20
19
|
export { a as default, a as enUS };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import e from "./toDate.js";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/date-fns/startOfDay.js
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
let r = e(t, n?.in);
|
|
5
5
|
return r.setHours(0, 0, 0, 0), r;
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { t as default, t as startOfDay };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import e from "./startOfWeek.js";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/date-fns/startOfISOWeek.js
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
return e(t, {
|
|
5
5
|
...n,
|
|
6
6
|
weekStartsOn: 1
|
|
7
7
|
});
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { t as default, t as startOfISOWeek };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { constructFrom as e } from "./constructFrom.js";
|
|
2
|
-
import t from "./
|
|
3
|
-
import n from "./
|
|
4
|
-
|
|
2
|
+
import t from "./getISOWeekYear.js";
|
|
3
|
+
import n from "./startOfISOWeek.js";
|
|
4
|
+
// ../../node_modules/date-fns/startOfISOWeekYear.js
|
|
5
5
|
function r(r, i) {
|
|
6
|
-
let a =
|
|
7
|
-
return o.setFullYear(a, 0, 4), o.setHours(0, 0, 0, 0),
|
|
6
|
+
let a = t(r, i), o = e(i?.in || r, 0);
|
|
7
|
+
return o.setFullYear(a, 0, 4), o.setHours(0, 0, 0, 0), n(o);
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { r as default, r as startOfISOWeekYear };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import e from "./
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { getDefaultOptions as e } from "./_lib/defaultOptions.js";
|
|
2
|
+
import t from "./toDate.js";
|
|
3
|
+
// ../../node_modules/date-fns/startOfWeek.js
|
|
4
4
|
function n(n, r) {
|
|
5
|
-
let i =
|
|
5
|
+
let i = e(), a = r?.weekStartsOn ?? r?.locale?.options?.weekStartsOn ?? i.weekStartsOn ?? i.locale?.options?.weekStartsOn ?? 0, o = t(n, r?.in), s = o.getDay(), c = (s < a ? 7 : 0) + s - a;
|
|
6
6
|
return o.setDate(o.getDate() - c), o.setHours(0, 0, 0, 0), o;
|
|
7
7
|
}
|
|
8
|
-
//#endregion
|
|
9
8
|
export { n as default, n as startOfWeek };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import n from "./
|
|
4
|
-
import r from "./
|
|
5
|
-
|
|
1
|
+
import { getDefaultOptions as e } from "./_lib/defaultOptions.js";
|
|
2
|
+
import { constructFrom as t } from "./constructFrom.js";
|
|
3
|
+
import n from "./getWeekYear.js";
|
|
4
|
+
import r from "./startOfWeek.js";
|
|
5
|
+
// ../../node_modules/date-fns/startOfWeekYear.js
|
|
6
6
|
function i(i, a) {
|
|
7
|
-
let o =
|
|
8
|
-
return l.setFullYear(c, 0, s), l.setHours(0, 0, 0, 0),
|
|
7
|
+
let o = e(), s = a?.firstWeekContainsDate ?? a?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, c = n(i, a), l = t(a?.in || i, 0);
|
|
8
|
+
return l.setFullYear(c, 0, s), l.setHours(0, 0, 0, 0), r(l, a);
|
|
9
9
|
}
|
|
10
|
-
//#endregion
|
|
11
10
|
export { i as default, i as startOfWeekYear };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import e from "./toDate.js";
|
|
2
|
-
|
|
2
|
+
// ../../node_modules/date-fns/startOfYear.js
|
|
3
3
|
function t(t, n) {
|
|
4
4
|
let r = e(t, n?.in);
|
|
5
5
|
return r.setFullYear(r.getFullYear(), 0, 1), r.setHours(0, 0, 0, 0), r;
|
|
6
6
|
}
|
|
7
|
-
//#endregion
|
|
8
7
|
export { t as default, t as startOfYear };
|