urfu-ui-kit-react 2.1.3 → 2.1.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/README.md +4 -25
- package/dist/components/Accordion/Accordion.js +18 -0
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts +1 -1
- package/dist/components/BreadCrumbs/BreadCrumbs.d.ts.map +1 -1
- package/dist/components/BreadCrumbs/BreadCrumbs.js +32 -0
- package/dist/components/Button/Button.d.ts +1 -0
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js +88 -0
- package/dist/components/Button/Button.types.d.ts +9 -3
- package/dist/components/Button/Button.types.d.ts.map +1 -1
- package/dist/components/Button/ButtonRefreshIcon.js +35 -0
- package/dist/components/Calendar/Calendar.d.ts +1 -5
- package/dist/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.js +355 -0
- package/dist/components/Calendar/CalendarSelect.js +149 -0
- package/dist/components/Calendar/MaskedDateInput.d.ts.map +1 -1
- package/dist/components/Calendar/MaskedDateInput.js +191 -0
- package/dist/components/Calendar/dateMask.d.ts +0 -1
- package/dist/components/Calendar/dateMask.d.ts.map +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/Card.d.ts.map +1 -1
- package/dist/components/Card/Card.js +75 -0
- package/dist/components/Checkbox/Checkbox.js +30 -0
- package/dist/components/ColumnSettings/ColumnSettings.js +216 -0
- package/dist/components/ConfirmModal/ConfirmModal.d.ts +1 -0
- package/dist/components/ConfirmModal/ConfirmModal.d.ts.map +1 -1
- package/dist/components/ConfirmModal/ConfirmModal.js +40 -0
- package/dist/components/ErrorScreen/ErrorScreen.d.ts +1 -1
- package/dist/components/ErrorScreen/ErrorScreen.d.ts.map +1 -1
- package/dist/components/ErrorScreen/ErrorScreen.js +221 -0
- package/dist/components/ErrorScreen/ErrorScreenIllustration.js +57 -0
- package/dist/components/FormField/FormField.d.ts +1 -1
- package/dist/components/FormField/FormField.d.ts.map +1 -1
- package/dist/components/FormField/FormField.js +40 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Icon/Icon.d.ts.map +1 -1
- package/dist/components/Icon/Icon.js +32 -0
- package/dist/components/Icon/Icon.types.d.ts +3 -1
- package/dist/components/Icon/Icon.types.d.ts.map +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.d.ts.map +1 -1
- package/dist/components/InputExpandTextarea/InputExpandTextarea.js +144 -0
- package/dist/components/InputFile/InputFile.d.ts +1 -1
- package/dist/components/InputFile/InputFile.d.ts.map +1 -1
- package/dist/components/InputFile/InputFile.js +203 -0
- package/dist/components/InputFile/InputFile.types.d.ts +0 -6
- package/dist/components/InputFile/InputFile.types.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.d.ts +1 -1
- package/dist/components/InputNumber/InputNumber.d.ts.map +1 -1
- package/dist/components/InputNumber/InputNumber.js +220 -0
- package/dist/components/InputText/InputAffix.d.ts +1 -1
- package/dist/components/InputText/InputAffix.js +109 -0
- package/dist/components/InputText/InputText.d.ts +2 -1
- package/dist/components/InputText/InputText.d.ts.map +1 -1
- package/dist/components/InputText/InputText.js +137 -0
- package/dist/components/InputTime/InputTime.d.ts +1 -1
- package/dist/components/InputTime/InputTime.d.ts.map +1 -1
- package/dist/components/InputTime/InputTime.js +335 -0
- package/dist/components/InputTime/InputTimeDropdown.js +31 -0
- package/dist/components/InputTime/inputTimeKeyDown.js +63 -0
- package/dist/components/InputTime/useInputTimeWheel.js +45 -0
- package/dist/components/Menu/Menu.d.ts +1 -1
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.js +113 -0
- package/dist/components/Message/Message.js +29 -0
- package/dist/components/Modal/Modal.d.ts +1 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.js +102 -0
- package/dist/components/Modal/editorFocus.js +15 -0
- package/dist/components/Modal/useModalFocus.js +112 -0
- package/dist/components/Modal/useModalTitleClearance.js +48 -0
- package/dist/components/Multiselect/Multiselect.d.ts +1 -0
- package/dist/components/Multiselect/Multiselect.d.ts.map +1 -1
- package/dist/components/Multiselect/Multiselect.js +408 -0
- package/dist/components/Notification/Notification.d.ts +1 -1
- package/dist/components/Notification/Notification.d.ts.map +1 -1
- package/dist/components/Notification/Notification.js +156 -0
- package/dist/components/OfflineBanner/OfflineBanner.d.ts +1 -1
- package/dist/components/OfflineBanner/OfflineBanner.d.ts.map +1 -1
- package/dist/components/OfflineBanner/OfflineBanner.js +40 -0
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.js +126 -0
- package/dist/components/Preloader/Preloader.d.ts.map +1 -1
- package/dist/components/Preloader/Preloader.js +60 -0
- package/dist/components/Radio/Radio.js +34 -0
- package/dist/components/Search/Search.d.ts +1 -1
- package/dist/components/Search/Search.d.ts.map +1 -1
- package/dist/components/Search/Search.js +47 -0
- package/dist/components/SearchSelect/SearchSelect.js +295 -0
- package/dist/components/SearchSelect/SearchSelectOption.js +41 -0
- package/dist/components/SearchSelect/useFlippedPlacement.js +25 -0
- package/dist/components/Select/MobileOptionSheet.d.ts +1 -1
- package/dist/components/Select/MobileOptionSheet.d.ts.map +1 -1
- package/dist/components/Select/MobileOptionSheet.js +116 -0
- package/dist/components/Select/Select.js +319 -0
- package/dist/components/Skeleton/Skeleton.js +38 -0
- package/dist/components/Skeleton/Skeleton.types.d.ts +4 -2
- package/dist/components/Skeleton/Skeleton.types.d.ts.map +1 -1
- package/dist/components/Status/Status.js +43 -0
- package/dist/components/StickyActionBar/StickyActionBar.d.ts +1 -1
- package/dist/components/StickyActionBar/StickyActionBar.d.ts.map +1 -1
- package/dist/components/StickyActionBar/StickyActionBar.js +73 -0
- package/dist/components/Switch/Switch.d.ts +1 -1
- package/dist/components/Switch/Switch.d.ts.map +1 -1
- package/dist/components/Switch/Switch.js +29 -0
- package/dist/components/Table/Filter/DefaultInput.d.ts.map +1 -1
- package/dist/components/Table/Filter/DefaultInput.js +22 -0
- package/dist/components/Table/Filter/Filter.js +233 -0
- package/dist/components/Table/Filter/Filter.types.d.ts +17 -13
- package/dist/components/Table/Filter/Filter.types.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterBooleanBox.d.ts +1 -0
- package/dist/components/Table/Filter/FilterBooleanBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterBooleanBox.js +40 -0
- package/dist/components/Table/Filter/FilterBoxShell.js +89 -0
- package/dist/components/Table/Filter/FilterConditionSelect.js +14 -0
- package/dist/components/Table/Filter/FilterDateBox.d.ts +1 -0
- package/dist/components/Table/Filter/FilterDateBox.d.ts.map +1 -1
- package/dist/components/Table/Filter/FilterDateBox.js +173 -0
- package/dist/components/Table/Filter/FilterPanel.js +25 -0
- package/dist/components/Table/Filter/FilterSortIndicator.js +24 -0
- package/dist/components/Table/Filter/FilterStringBox.js +115 -0
- package/dist/components/Table/Filter/Functions.d.ts +0 -6
- package/dist/components/Table/Filter/Functions.d.ts.map +1 -1
- package/dist/components/Table/Filter/Functions.js +76 -0
- package/dist/components/Table/Filter/SelectFilter.js +114 -0
- package/dist/components/Table/Filter/SelectOptions.js +21 -0
- package/dist/components/Table/Filter/TableFilterOptions.d.ts +1 -0
- package/dist/components/Table/Filter/TableFilterOptions.d.ts.map +1 -1
- package/dist/components/Table/Filter/TableFilterOptions.js +268 -0
- package/dist/components/Table/Filter/TableFilterSortButton.js +17 -0
- package/dist/components/Table/Filter/filterBoxHelpers.js +2 -0
- package/dist/components/Table/Filter/filterExpression.js +48 -0
- package/dist/components/Table/Filter/filterLoading.js +2 -0
- package/dist/components/Table/Filter/useFilterDates.js +33 -0
- package/dist/components/Table/Filter/useFilterOptionsPreload.js +22 -0
- package/dist/components/Table/Filter/useLocalFilterSearch.js +32 -0
- package/dist/components/Table/Filter/usePagedFilterOptions.js +71 -0
- package/dist/components/Table/Filter/useServerFilterOptions.js +35 -0
- package/dist/components/Table/Filter/useVirtualOptionWindow.js +80 -0
- package/dist/components/Table/Functions.js +54 -0
- package/dist/components/Table/Skeleton/TableSkeleton.js +28 -0
- package/dist/components/Table/Skeleton/createSkeletonColumns.js +9 -0
- package/dist/components/Table/Table.d.ts +1 -0
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/Table.dataPipeline.d.ts.map +1 -1
- package/dist/components/Table/Table.dataPipeline.js +75 -0
- package/dist/components/Table/Table.helpers.d.ts +2 -2
- package/dist/components/Table/Table.helpers.d.ts.map +1 -1
- package/dist/components/Table/Table.helpers.js +72 -0
- package/dist/components/Table/Table.js +419 -0
- package/dist/components/Table/Table.types.d.ts +6 -2
- package/dist/components/Table/Table.types.d.ts.map +1 -1
- package/dist/components/Table/TableHead.d.ts.map +1 -1
- package/dist/components/Table/TableHead.js +189 -0
- package/dist/components/Table/TableMobileCard.js +215 -0
- package/dist/components/Table/TableMobileFilters.js +56 -0
- package/dist/components/Table/TableMobileView.js +316 -0
- package/dist/components/Table/TableRow.js +136 -0
- package/dist/components/Table/useColumnResize.d.ts +3 -2
- package/dist/components/Table/useColumnResize.d.ts.map +1 -1
- package/dist/components/Table/useColumnResize.js +44 -0
- package/dist/components/Table/useDelayedSkeleton.d.ts +0 -2
- package/dist/components/Table/useDelayedSkeleton.d.ts.map +1 -1
- package/dist/components/Table/useDelayedSkeleton.js +32 -0
- package/dist/components/Table/useMobileFilterColumns.d.ts +1 -1
- package/dist/components/Table/useMobileFilterColumns.d.ts.map +1 -1
- package/dist/components/Table/useMobileFilterColumns.js +52 -0
- package/dist/components/Table/useStableColumnWidths.js +22 -0
- package/dist/components/Table/useTableColumnPinning.d.ts +2 -57
- package/dist/components/Table/useTableColumnPinning.d.ts.map +1 -1
- package/dist/components/Table/useTableColumnPinning.js +52 -0
- package/dist/components/Table/useTableFilters.js +39 -0
- package/dist/components/Table/useTableSortState.js +38 -0
- package/dist/components/Table/useTableVirtualization.js +145 -0
- package/dist/components/Tabs/Tabs.d.ts +1 -0
- package/dist/components/Tabs/Tabs.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.js +141 -0
- package/dist/components/Tabs/tabsIndicator.d.ts +14 -0
- package/dist/components/Tabs/tabsIndicator.d.ts.map +1 -0
- package/dist/components/Tabs/useTabsIndicator.d.ts +6 -0
- package/dist/components/Tabs/useTabsIndicator.d.ts.map +1 -0
- package/dist/components/Tabs/useTabsIndicator.js +14 -0
- package/dist/components/Tabs/useTabsOverflow.js +49 -0
- package/dist/components/Textarea/Textarea.js +102 -0
- package/dist/components/Tooltip/Tooltip.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js +218 -0
- package/dist/components/TreeView/TreeView.d.ts +1 -0
- package/dist/components/TreeView/TreeView.d.ts.map +1 -1
- package/dist/components/TreeView/TreeView.js +323 -0
- package/dist/components/TreeView/TreeView.types.d.ts +0 -4
- package/dist/components/TreeView/TreeView.types.d.ts.map +1 -1
- package/dist/dev/index.js +2 -2
- package/dist/dev/types/vanilla/src/dev/shown.d.ts +0 -2
- package/dist/dev/types/vanilla/src/dev/store.d.ts +0 -4
- package/dist/fonts/icons/urfu-ui-icon-font.eot +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.svg +4 -1
- package/dist/fonts/icons/urfu-ui-icon-font.ttf +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.woff +0 -0
- package/dist/fonts/icons/urfu-ui-icon-font.woff2 +0 -0
- package/dist/hooks/useActiveOptionScroll.js +20 -0
- package/dist/hooks/useAnchoredPosition.js +37 -0
- package/dist/hooks/useAutoId.d.ts +0 -1
- package/dist/hooks/useAutoId.d.ts.map +1 -1
- package/dist/hooks/useAutoId.js +7 -0
- package/dist/hooks/useAutoPortal.js +11 -0
- package/dist/hooks/useDebounce.js +11 -0
- package/dist/hooks/useDismiss.d.ts +1 -1
- package/dist/hooks/useDismiss.d.ts.map +1 -1
- package/dist/hooks/useDismiss.js +20 -0
- package/dist/hooks/useInputOverflow.d.ts +9 -0
- package/dist/hooks/useInputOverflow.d.ts.map +1 -0
- package/dist/hooks/useInputOverflow.js +16 -0
- package/dist/hooks/useMediaQuery.js +21 -0
- package/dist/hooks/useMobilePicker.js +7 -0
- package/dist/hooks/useMountTransition.d.ts +1 -1
- package/dist/hooks/useMountTransition.d.ts.map +1 -1
- package/dist/hooks/useMountTransition.js +21 -0
- package/dist/hooks/useOnlineStatus.js +11 -0
- package/dist/hooks/useOptionKeyboardNavigation.js +63 -0
- package/dist/hooks/usePagination.js +31 -0
- package/dist/hooks/useSelectEngine.d.ts +3 -3
- package/dist/hooks/useSelectEngine.d.ts.map +1 -1
- package/dist/hooks/useSelectEngine.js +96 -0
- package/dist/hooks/useTableSort.js +13 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/responsive/uiKitResponsive.js +44 -0
- package/dist/shared/fieldAccessibility.js +8 -0
- package/dist/shared/iconNames.d.ts +5 -0
- package/dist/shared/iconNames.d.ts.map +1 -0
- package/dist/shared/inputOverflow.d.ts +10 -0
- package/dist/shared/inputOverflow.d.ts.map +1 -0
- package/dist/shared/kitCopy.js +9 -0
- package/dist/shared/optionStateColors.js +5 -0
- package/dist/shared/optionValue.d.ts +1 -1
- package/dist/shared/optionValue.d.ts.map +1 -1
- package/dist/shared/optionValue.js +11 -0
- package/dist/shared/popupTransition.js +11 -0
- package/dist/shared/size.d.ts +0 -1
- package/dist/shared/size.d.ts.map +1 -1
- package/dist/shared/size.js +4 -0
- package/dist/shared/sortRows.js +24 -0
- package/dist/shared/uiKitDefaults.js +25 -0
- package/dist/style-no-fonts.css +1 -1
- package/dist/style.css +1 -1
- package/dist/style.layer.css +8 -8
- package/dist/style.shell.css +15 -11
- package/dist/urfu-ui-kit-react.js +57 -17543
- package/dist/vanilla/core/BoundedOptionPageCache.js +41 -0
- package/dist/vanilla/core/dateMask.js +28 -0
- package/dist/vanilla/core/describeError.js +243 -0
- package/dist/vanilla/core/devLauncherOffset.js +20 -0
- package/dist/vanilla/core/distributeTabs.js +25 -0
- package/dist/vanilla/core/hasPreviousPage.js +6 -0
- package/dist/vanilla/core/inputMode.js +17 -0
- package/dist/vanilla/core/inputOverflow.js +34 -0
- package/dist/vanilla/core/kitRegistry.js +160 -0
- package/dist/vanilla/core/reconcileColumnOrder.js +5 -0
- package/dist/vanilla/core/sheetTitle.js +11 -0
- package/dist/vanilla/core/tabsIndicator.js +38 -0
- package/dist/vanilla/core/validation.js +21 -0
- package/dist/vendor/@floating-ui/core/dist/floating-ui.core.js +323 -0
- package/dist/vendor/@floating-ui/dom/dist/floating-ui.dom.js +383 -0
- package/dist/vendor/@floating-ui/react/dist/floating-ui.react.js +255 -0
- package/dist/vendor/@floating-ui/react-dom/dist/floating-ui.react-dom.js +183 -0
- package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.dom.js +110 -0
- package/dist/vendor/@floating-ui/utils/dist/floating-ui.utils.js +106 -0
- package/dist/vendor/clsx/dist/clsx.js +14 -0
- package/dist/vendor/date-fns/_lib/addLeadingZeros.js +5 -0
- package/dist/vendor/date-fns/_lib/defaultOptions.js +5 -0
- package/dist/vendor/date-fns/_lib/format/formatters.js +547 -0
- package/dist/vendor/date-fns/_lib/format/lightFormatters.js +56 -0
- package/dist/vendor/date-fns/_lib/format/longFormatters.js +47 -0
- package/dist/vendor/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +16 -0
- package/dist/vendor/date-fns/_lib/protectedTokens.js +16 -0
- package/dist/vendor/date-fns/addDays.js +7 -0
- package/dist/vendor/date-fns/addHours.js +6 -0
- package/dist/vendor/date-fns/addMilliseconds.js +7 -0
- package/dist/vendor/date-fns/addMinutes.js +6 -0
- package/dist/vendor/date-fns/addMonths.js +17 -0
- package/dist/vendor/date-fns/addQuarters.js +6 -0
- package/dist/vendor/date-fns/addSeconds.js +5 -0
- package/dist/vendor/date-fns/addWeeks.js +6 -0
- package/dist/vendor/date-fns/addYears.js +5 -0
- package/dist/vendor/date-fns/constants.js +2 -0
- package/dist/vendor/date-fns/constructFrom.js +4 -0
- package/dist/vendor/date-fns/differenceInCalendarDays.js +8 -0
- package/dist/vendor/date-fns/differenceInCalendarMonths.js +6 -0
- package/dist/vendor/date-fns/differenceInCalendarQuarters.js +7 -0
- package/dist/vendor/date-fns/differenceInCalendarYears.js +6 -0
- package/dist/vendor/date-fns/differenceInDays.js +13 -0
- package/dist/vendor/date-fns/endOfDay.js +6 -0
- package/dist/vendor/date-fns/endOfMonth.js +6 -0
- package/dist/vendor/date-fns/endOfWeek.js +8 -0
- package/dist/vendor/date-fns/endOfYear.js +6 -0
- package/dist/vendor/date-fns/format.js +53 -0
- package/dist/vendor/date-fns/getDate.js +5 -0
- package/dist/vendor/date-fns/getDay.js +5 -0
- package/dist/vendor/date-fns/getDayOfYear.js +8 -0
- package/dist/vendor/date-fns/getDaysInMonth.js +7 -0
- package/dist/vendor/date-fns/getDefaultOptions.js +5 -0
- package/dist/vendor/date-fns/getHours.js +5 -0
- package/dist/vendor/date-fns/getISODay.js +6 -0
- package/dist/vendor/date-fns/getISOWeek.js +9 -0
- package/dist/vendor/date-fns/getISOWeekYear.js +12 -0
- package/dist/vendor/date-fns/getMinutes.js +5 -0
- package/dist/vendor/date-fns/getMonth.js +5 -0
- package/dist/vendor/date-fns/getQuarter.js +6 -0
- package/dist/vendor/date-fns/getSeconds.js +5 -0
- package/dist/vendor/date-fns/getTime.js +5 -0
- package/dist/vendor/date-fns/getWeek.js +9 -0
- package/dist/vendor/date-fns/getWeekYear.js +14 -0
- package/dist/vendor/date-fns/getYear.js +5 -0
- package/dist/vendor/date-fns/isAfter.js +6 -0
- package/dist/vendor/date-fns/isBefore.js +6 -0
- package/dist/vendor/date-fns/isDate.js +4 -0
- package/dist/vendor/date-fns/isEqual.js +6 -0
- package/dist/vendor/date-fns/isSameDay.js +6 -0
- package/dist/vendor/date-fns/isSameMonth.js +6 -0
- package/dist/vendor/date-fns/isSameQuarter.js +6 -0
- package/dist/vendor/date-fns/isSameWeek.js +6 -0
- package/dist/vendor/date-fns/isSameYear.js +6 -0
- package/dist/vendor/date-fns/isValid.js +9 -0
- package/dist/vendor/date-fns/isWithinInterval.js +9 -0
- package/dist/vendor/date-fns/locale/_lib/buildFormatLongFn.js +7 -0
- package/dist/vendor/date-fns/locale/_lib/buildLocalizeFn.js +16 -0
- package/dist/vendor/date-fns/locale/_lib/buildMatchFn.js +29 -0
- package/dist/vendor/date-fns/locale/_lib/buildMatchPatternFn.js +13 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatDistance.js +68 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatLong.js +31 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/formatRelative.js +9 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/localize.js +153 -0
- package/dist/vendor/date-fns/locale/en-US/_lib/match.js +108 -0
- package/dist/vendor/date-fns/locale/en-US.js +18 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatDistance.js +182 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatLong.js +28 -0
- package/dist/vendor/date-fns/locale/ru/_lib/formatRelative.js +62 -0
- package/dist/vendor/date-fns/locale/ru/_lib/localize.js +177 -0
- package/dist/vendor/date-fns/locale/ru/_lib/match.js +109 -0
- package/dist/vendor/date-fns/locale/ru.js +18 -0
- package/dist/vendor/date-fns/max.js +9 -0
- package/dist/vendor/date-fns/min.js +9 -0
- package/dist/vendor/date-fns/parse/_lib/Parser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/Setter.js +36 -0
- package/dist/vendor/date-fns/parse/_lib/constants.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/AMPMParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DateParser.js +59 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayOfYearParser.js +49 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/DayPeriodParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/EraParser.js +29 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ExtendedYearParser.js +19 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour0To11Parser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour0to23Parser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour1To24Parser.js +31 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/Hour1to12Parser.js +31 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISODayParser.js +101 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +45 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekParser.js +47 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +38 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalDayParser.js +76 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekParser.js +46 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +67 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/MinuteParser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/MonthParser.js +73 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/QuarterParser.js +71 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/SecondParser.js +30 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +76 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +73 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +71 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +20 -0
- package/dist/vendor/date-fns/parse/_lib/parsers/YearParser.js +47 -0
- package/dist/vendor/date-fns/parse/_lib/parsers.js +65 -0
- package/dist/vendor/date-fns/parse/_lib/utils.js +90 -0
- package/dist/vendor/date-fns/parse.js +85 -0
- package/dist/vendor/date-fns/parseISO.js +119 -0
- package/dist/vendor/date-fns/set.js +8 -0
- package/dist/vendor/date-fns/setDay.js +9 -0
- package/dist/vendor/date-fns/setHours.js +6 -0
- package/dist/vendor/date-fns/setISODay.js +8 -0
- package/dist/vendor/date-fns/setISOWeek.js +7 -0
- package/dist/vendor/date-fns/setMinutes.js +6 -0
- package/dist/vendor/date-fns/setMonth.js +10 -0
- package/dist/vendor/date-fns/setQuarter.js +7 -0
- package/dist/vendor/date-fns/setSeconds.js +6 -0
- package/dist/vendor/date-fns/setWeek.js +7 -0
- package/dist/vendor/date-fns/setYear.js +7 -0
- package/dist/vendor/date-fns/startOfDay.js +6 -0
- package/dist/vendor/date-fns/startOfISOWeek.js +5 -0
- package/dist/vendor/date-fns/startOfISOWeekYear.js +8 -0
- package/dist/vendor/date-fns/startOfMonth.js +6 -0
- package/dist/vendor/date-fns/startOfQuarter.js +6 -0
- package/dist/vendor/date-fns/startOfWeek.js +8 -0
- package/dist/vendor/date-fns/startOfWeekYear.js +10 -0
- package/dist/vendor/date-fns/startOfYear.js +7 -0
- package/dist/vendor/date-fns/subDays.js +5 -0
- package/dist/vendor/date-fns/subMonths.js +5 -0
- package/dist/vendor/date-fns/subQuarters.js +5 -0
- package/dist/vendor/date-fns/subWeeks.js +5 -0
- package/dist/vendor/date-fns/subYears.js +5 -0
- package/dist/vendor/date-fns/toDate.js +5 -0
- package/dist/vendor/date-fns/transpose.js +15 -0
- package/dist/vendor/react-datepicker/dist/es/index.js +2696 -0
- package/package.json +37 -35
- package/dist/hooks/useOutsideAlerter.d.ts +0 -3
- package/dist/hooks/useOutsideAlerter.d.ts.map +0 -1
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { millisecondsInHour$u as l, millisecondsInMinute$u as m, millisecondsInSecond$u as f } from "../../constants.js";
|
|
2
|
+
import { numericPatterns$u as r } from "./constants.js";
|
|
3
|
+
function p(e, n) {
|
|
4
|
+
return e && {
|
|
5
|
+
value: n(e.value),
|
|
6
|
+
rest: e.rest
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function t(e, n) {
|
|
10
|
+
const s = n.match(e);
|
|
11
|
+
return s ? {
|
|
12
|
+
value: parseInt(s[0], 10),
|
|
13
|
+
rest: n.slice(s[0].length)
|
|
14
|
+
} : null;
|
|
15
|
+
}
|
|
16
|
+
function d(e, n) {
|
|
17
|
+
const s = n.match(e);
|
|
18
|
+
if (!s)
|
|
19
|
+
return null;
|
|
20
|
+
if (s[0] === "Z")
|
|
21
|
+
return {
|
|
22
|
+
value: 0,
|
|
23
|
+
rest: n.slice(1)
|
|
24
|
+
};
|
|
25
|
+
const u = s[1] === "+" ? 1 : -1, i = s[2] ? parseInt(s[2], 10) : 0, c = s[3] ? parseInt(s[3], 10) : 0, o = s[5] ? parseInt(s[5], 10) : 0;
|
|
26
|
+
return {
|
|
27
|
+
value: u * (i * l + c * m + o * f),
|
|
28
|
+
rest: n.slice(s[0].length)
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function D(e) {
|
|
32
|
+
return t(r.anyDigitsSigned, e);
|
|
33
|
+
}
|
|
34
|
+
function I(e, n) {
|
|
35
|
+
switch (e) {
|
|
36
|
+
case 1:
|
|
37
|
+
return t(r.singleDigit, n);
|
|
38
|
+
case 2:
|
|
39
|
+
return t(r.twoDigits, n);
|
|
40
|
+
case 3:
|
|
41
|
+
return t(r.threeDigits, n);
|
|
42
|
+
case 4:
|
|
43
|
+
return t(r.fourDigits, n);
|
|
44
|
+
default:
|
|
45
|
+
return t(new RegExp("^\\d{1," + e + "}"), n);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function v(e, n) {
|
|
49
|
+
switch (e) {
|
|
50
|
+
case 1:
|
|
51
|
+
return t(r.singleDigitSigned, n);
|
|
52
|
+
case 2:
|
|
53
|
+
return t(r.twoDigitsSigned, n);
|
|
54
|
+
case 3:
|
|
55
|
+
return t(r.threeDigitsSigned, n);
|
|
56
|
+
case 4:
|
|
57
|
+
return t(r.fourDigitsSigned, n);
|
|
58
|
+
default:
|
|
59
|
+
return t(new RegExp("^-?\\d{1," + e + "}"), n);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
function w(e) {
|
|
63
|
+
switch (e) {
|
|
64
|
+
case "morning":
|
|
65
|
+
return 4;
|
|
66
|
+
case "evening":
|
|
67
|
+
return 17;
|
|
68
|
+
case "pm":
|
|
69
|
+
case "noon":
|
|
70
|
+
case "afternoon":
|
|
71
|
+
return 12;
|
|
72
|
+
default:
|
|
73
|
+
return 0;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
function E(e, n) {
|
|
77
|
+
const s = n > 0, u = s ? n : 1 - n;
|
|
78
|
+
let i;
|
|
79
|
+
if (u <= 50)
|
|
80
|
+
i = e || 100;
|
|
81
|
+
else {
|
|
82
|
+
const c = u + 50, o = Math.trunc(c / 100) * 100, a = e >= c % 100;
|
|
83
|
+
i = e + o - (a ? 100 : 0);
|
|
84
|
+
}
|
|
85
|
+
return s ? i : 1 - i;
|
|
86
|
+
}
|
|
87
|
+
function P(e) {
|
|
88
|
+
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
89
|
+
}
|
|
90
|
+
export { w as dayPeriodEnumToHours$u, P as isLeapYearIndex$u, p as mapValue$u, E as normalizeTwoDigitYear$u, D as parseAnyDigitsSigned$u, I as parseNDigits$u, v as parseNDigitsSigned$u, t as parseNumericPattern$u, d as parseTimezonePattern$u };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { constructFrom$u as i } from "./constructFrom.js";
|
|
2
|
+
import { getDefaultOptions$u as D } from "./getDefaultOptions.js";
|
|
3
|
+
import { toDate$u as P } from "./toDate.js";
|
|
4
|
+
import { longFormatters$u as W } from "./_lib/format/longFormatters.js";
|
|
5
|
+
import { isProtectedWeekYearToken$u as L, warnOrThrowProtectedError$u as b, isProtectedDayOfYearToken$u as j } from "./_lib/protectedTokens.js";
|
|
6
|
+
import { parsers$u as q } from "./parse/_lib/parsers.js";
|
|
7
|
+
import { DateToSystemTimezoneSetter$u as z } from "./parse/_lib/Setter.js";
|
|
8
|
+
import { enUS$u as Q } from "./locale/en-US.js";
|
|
9
|
+
const v = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, H = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, I = /^'([^]*?)'?$/, K = /''/g, M = /\S/, U = /[a-zA-Z]/;
|
|
10
|
+
function te(n, l, s, r) {
|
|
11
|
+
var T, w, y, N, O, d, p, E;
|
|
12
|
+
const c = D(), f = (r == null ? void 0 : r.locale) ?? c.locale ?? Q, A = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((w = (T = r == null ? void 0 : r.locale) == null ? void 0 : T.options) == null ? void 0 : w.firstWeekContainsDate) ?? c.firstWeekContainsDate ?? ((N = (y = c.locale) == null ? void 0 : y.options) == null ? void 0 : N.firstWeekContainsDate) ?? 1, F = (r == null ? void 0 : r.weekStartsOn) ?? ((d = (O = r == null ? void 0 : r.locale) == null ? void 0 : O.options) == null ? void 0 : d.weekStartsOn) ?? c.weekStartsOn ?? ((E = (p = c.locale) == null ? void 0 : p.options) == null ? void 0 : E.weekStartsOn) ?? 0;
|
|
13
|
+
if (l === "")
|
|
14
|
+
return n === "" ? P(s) : i(s, NaN);
|
|
15
|
+
const m = {
|
|
16
|
+
firstWeekContainsDate: A,
|
|
17
|
+
weekStartsOn: F,
|
|
18
|
+
locale: f
|
|
19
|
+
}, u = [new z()], $ = l.match(H).map((e) => {
|
|
20
|
+
const t = e[0];
|
|
21
|
+
if (t in W) {
|
|
22
|
+
const a = W[t];
|
|
23
|
+
return a(e, f.formatLong);
|
|
24
|
+
}
|
|
25
|
+
return e;
|
|
26
|
+
}).join("").match(v), k = [];
|
|
27
|
+
for (let e of $) {
|
|
28
|
+
!(r != null && r.useAdditionalWeekYearTokens) && L(e) && b(e, l, n), !(r != null && r.useAdditionalDayOfYearTokens) && j(e) && b(e, l, n);
|
|
29
|
+
const t = e[0], a = q[t];
|
|
30
|
+
if (a) {
|
|
31
|
+
const { incompatibleTokens: R } = a;
|
|
32
|
+
if (Array.isArray(R)) {
|
|
33
|
+
const x = k.find(
|
|
34
|
+
(C) => R.includes(C.token) || C.token === t
|
|
35
|
+
);
|
|
36
|
+
if (x)
|
|
37
|
+
throw new RangeError(
|
|
38
|
+
`The format string mustn't contain \`${x.fullToken}\` and \`${e}\` at the same time`
|
|
39
|
+
);
|
|
40
|
+
} else if (a.incompatibleTokens === "*" && k.length > 0)
|
|
41
|
+
throw new RangeError(
|
|
42
|
+
`The format string mustn't contain \`${e}\` and any other token at the same time`
|
|
43
|
+
);
|
|
44
|
+
k.push({ token: t, fullToken: e });
|
|
45
|
+
const g = a.run(
|
|
46
|
+
n,
|
|
47
|
+
e,
|
|
48
|
+
f.match,
|
|
49
|
+
m
|
|
50
|
+
);
|
|
51
|
+
if (!g)
|
|
52
|
+
return i(s, NaN);
|
|
53
|
+
u.push(g.setter), n = g.rest;
|
|
54
|
+
} else {
|
|
55
|
+
if (t.match(U))
|
|
56
|
+
throw new RangeError(
|
|
57
|
+
"Format string contains an unescaped latin alphabet character `" + t + "`"
|
|
58
|
+
);
|
|
59
|
+
if (e === "''" ? e = "'" : t === "'" && (e = Z(e)), n.indexOf(e) === 0)
|
|
60
|
+
n = n.slice(e.length);
|
|
61
|
+
else
|
|
62
|
+
return i(s, NaN);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (n.length > 0 && M.test(n))
|
|
66
|
+
return i(s, NaN);
|
|
67
|
+
const Y = u.map((e) => e.priority).sort((e, t) => t - e).filter((e, t, a) => a.indexOf(e) === t).map(
|
|
68
|
+
(e) => u.filter((t) => t.priority === e).sort((t, a) => a.subPriority - t.subPriority)
|
|
69
|
+
).map((e) => e[0]);
|
|
70
|
+
let o = P(s);
|
|
71
|
+
if (isNaN(o.getTime()))
|
|
72
|
+
return i(s, NaN);
|
|
73
|
+
const h = {};
|
|
74
|
+
for (const e of Y) {
|
|
75
|
+
if (!e.validate(o, m))
|
|
76
|
+
return i(s, NaN);
|
|
77
|
+
const t = e.set(o, h, m);
|
|
78
|
+
Array.isArray(t) ? (o = t[0], Object.assign(h, t[1])) : o = t;
|
|
79
|
+
}
|
|
80
|
+
return i(s, o);
|
|
81
|
+
}
|
|
82
|
+
function Z(n) {
|
|
83
|
+
return n.match(I)[1].replace(K, "'");
|
|
84
|
+
}
|
|
85
|
+
export { W as longFormatters$u, te as parse$u, q as parsers$u };
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import { millisecondsInHour$u as m, millisecondsInMinute$u as D } from "./constants.js";
|
|
2
|
+
function F(t, e) {
|
|
3
|
+
const n = U(t);
|
|
4
|
+
let i;
|
|
5
|
+
if (n.date) {
|
|
6
|
+
const a = w(n.date, 2);
|
|
7
|
+
i = h(a.restDateString, a.year);
|
|
8
|
+
}
|
|
9
|
+
if (!i || isNaN(i.getTime()))
|
|
10
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
11
|
+
const s = i.getTime();
|
|
12
|
+
let o = 0, u;
|
|
13
|
+
if (n.time && (o = C(n.time), isNaN(o)))
|
|
14
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
15
|
+
if (n.timezone) {
|
|
16
|
+
if (u = I(n.timezone), isNaN(u))
|
|
17
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
18
|
+
} else {
|
|
19
|
+
const a = new Date(s + o), c = /* @__PURE__ */ new Date(0);
|
|
20
|
+
return c.setFullYear(
|
|
21
|
+
a.getUTCFullYear(),
|
|
22
|
+
a.getUTCMonth(),
|
|
23
|
+
a.getUTCDate()
|
|
24
|
+
), c.setHours(
|
|
25
|
+
a.getUTCHours(),
|
|
26
|
+
a.getUTCMinutes(),
|
|
27
|
+
a.getUTCSeconds(),
|
|
28
|
+
a.getUTCMilliseconds()
|
|
29
|
+
), c;
|
|
30
|
+
}
|
|
31
|
+
return new Date(s + o + u);
|
|
32
|
+
}
|
|
33
|
+
const f = {
|
|
34
|
+
dateTimeDelimiter: /[T ]/,
|
|
35
|
+
timeZoneDelimiter: /[Z ]/i,
|
|
36
|
+
timezone: /([Z+-].*)$/
|
|
37
|
+
}, N = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, g = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, T = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
38
|
+
function U(t) {
|
|
39
|
+
const e = {}, r = t.split(f.dateTimeDelimiter);
|
|
40
|
+
let n;
|
|
41
|
+
if (r.length > 2)
|
|
42
|
+
return e;
|
|
43
|
+
if (/:/.test(r[0]) ? n = r[0] : (e.date = r[0], n = r[1], f.timeZoneDelimiter.test(e.date) && (e.date = t.split(f.timeZoneDelimiter)[0], n = t.substr(
|
|
44
|
+
e.date.length,
|
|
45
|
+
t.length
|
|
46
|
+
))), n) {
|
|
47
|
+
const i = f.timezone.exec(n);
|
|
48
|
+
i ? (e.time = n.replace(i[1], ""), e.timezone = i[1]) : e.time = n;
|
|
49
|
+
}
|
|
50
|
+
return e;
|
|
51
|
+
}
|
|
52
|
+
function w(t, e) {
|
|
53
|
+
const r = new RegExp(
|
|
54
|
+
"^(?:(\\d{4}|[+-]\\d{" + (4 + e) + "})|(\\d{2}|[+-]\\d{" + (2 + e) + "})$)"
|
|
55
|
+
), n = t.match(r);
|
|
56
|
+
if (!n) return { year: NaN, restDateString: "" };
|
|
57
|
+
const i = n[1] ? parseInt(n[1]) : null, s = n[2] ? parseInt(n[2]) : null;
|
|
58
|
+
return {
|
|
59
|
+
year: s === null ? i : s * 100,
|
|
60
|
+
restDateString: t.slice((n[1] || n[2]).length)
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function h(t, e) {
|
|
64
|
+
if (e === null) return /* @__PURE__ */ new Date(NaN);
|
|
65
|
+
const r = t.match(N);
|
|
66
|
+
if (!r) return /* @__PURE__ */ new Date(NaN);
|
|
67
|
+
const n = !!r[4], i = l(r[1]), s = l(r[2]) - 1, o = l(r[3]), u = l(r[4]), a = l(r[5]) - 1;
|
|
68
|
+
if (n)
|
|
69
|
+
return M(e, u, a) ? x(e, u, a) : /* @__PURE__ */ new Date(NaN);
|
|
70
|
+
{
|
|
71
|
+
const c = /* @__PURE__ */ new Date(0);
|
|
72
|
+
return !y(e, s, o) || !z(e, i) ? /* @__PURE__ */ new Date(NaN) : (c.setUTCFullYear(e, s, Math.max(i, o)), c);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function l(t) {
|
|
76
|
+
return t ? parseInt(t) : 1;
|
|
77
|
+
}
|
|
78
|
+
function C(t) {
|
|
79
|
+
const e = t.match(g);
|
|
80
|
+
if (!e) return NaN;
|
|
81
|
+
const r = d(e[1]), n = d(e[2]), i = d(e[3]);
|
|
82
|
+
return O(r, n, i) ? r * m + n * D + i * 1e3 : NaN;
|
|
83
|
+
}
|
|
84
|
+
function d(t) {
|
|
85
|
+
return t && parseFloat(t.replace(",", ".")) || 0;
|
|
86
|
+
}
|
|
87
|
+
function I(t) {
|
|
88
|
+
if (t === "Z") return 0;
|
|
89
|
+
const e = t.match(T);
|
|
90
|
+
if (!e) return 0;
|
|
91
|
+
const r = e[1] === "+" ? -1 : 1, n = parseInt(e[2]), i = e[3] && parseInt(e[3]) || 0;
|
|
92
|
+
return Z(n, i) ? r * (n * m + i * D) : NaN;
|
|
93
|
+
}
|
|
94
|
+
function x(t, e, r) {
|
|
95
|
+
const n = /* @__PURE__ */ new Date(0);
|
|
96
|
+
n.setUTCFullYear(t, 0, 4);
|
|
97
|
+
const i = n.getUTCDay() || 7, s = (e - 1) * 7 + r + 1 - i;
|
|
98
|
+
return n.setUTCDate(n.getUTCDate() + s), n;
|
|
99
|
+
}
|
|
100
|
+
const Y = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
101
|
+
function p(t) {
|
|
102
|
+
return t % 400 === 0 || t % 4 === 0 && t % 100 !== 0;
|
|
103
|
+
}
|
|
104
|
+
function y(t, e, r) {
|
|
105
|
+
return e >= 0 && e <= 11 && r >= 1 && r <= (Y[e] || (p(t) ? 29 : 28));
|
|
106
|
+
}
|
|
107
|
+
function z(t, e) {
|
|
108
|
+
return e >= 1 && e <= (p(t) ? 366 : 365);
|
|
109
|
+
}
|
|
110
|
+
function M(t, e, r) {
|
|
111
|
+
return e >= 1 && e <= 53 && r >= 0 && r <= 6;
|
|
112
|
+
}
|
|
113
|
+
function O(t, e, r) {
|
|
114
|
+
return t === 24 ? e === 0 && r === 0 : r >= 0 && r < 60 && e >= 0 && e < 60 && t >= 0 && t < 25;
|
|
115
|
+
}
|
|
116
|
+
function Z(t, e) {
|
|
117
|
+
return e >= 0 && e <= 59;
|
|
118
|
+
}
|
|
119
|
+
export { F as parseISO$u };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { constructFrom$u as i } from "./constructFrom.js";
|
|
2
|
+
import { setMonth$u as r } from "./setMonth.js";
|
|
3
|
+
import { toDate$u as e } from "./toDate.js";
|
|
4
|
+
function l(o, t) {
|
|
5
|
+
let n = e(o);
|
|
6
|
+
return isNaN(+n) ? i(o, NaN) : (t.year != null && n.setFullYear(t.year), t.month != null && (n = r(n, t.month)), t.date != null && n.setDate(t.date), t.hours != null && n.setHours(t.hours), t.minutes != null && n.setMinutes(t.minutes), t.seconds != null && n.setSeconds(t.seconds), t.milliseconds != null && n.setMilliseconds(t.milliseconds), n);
|
|
7
|
+
}
|
|
8
|
+
export { l as set$u };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { addDays$u as k } from "./addDays.js";
|
|
2
|
+
import { toDate$u as u } from "./toDate.js";
|
|
3
|
+
import { getDefaultOptions$u as w } from "./_lib/defaultOptions.js";
|
|
4
|
+
function y(l, e, t) {
|
|
5
|
+
var s, f, m, d;
|
|
6
|
+
const a = w(), o = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (s = t == null ? void 0 : t.locale) == null ? void 0 : s.options) == null ? void 0 : f.weekStartsOn) ?? a.weekStartsOn ?? ((d = (m = a.locale) == null ? void 0 : m.options) == null ? void 0 : d.weekStartsOn) ?? 0, n = u(l), c = n.getDay(), O = (e % 7 + 7) % 7, r = 7 - o, D = e < 0 || e > 6 ? e - (c + r) % 7 : (O + r) % 7 - (c + r) % 7;
|
|
7
|
+
return k(n, D);
|
|
8
|
+
}
|
|
9
|
+
export { y as setDay$u };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { constructFrom$u as c } from "./constructFrom.js";
|
|
2
|
+
import { getDaysInMonth$u as i } from "./getDaysInMonth.js";
|
|
3
|
+
import { toDate$u as m } from "./toDate.js";
|
|
4
|
+
function d(e, n) {
|
|
5
|
+
const t = m(e), r = t.getFullYear(), s = t.getDate(), o = c(e, 0);
|
|
6
|
+
o.setFullYear(r, n, 15), o.setHours(0, 0, 0, 0);
|
|
7
|
+
const a = i(o);
|
|
8
|
+
return t.setMonth(n, Math.min(s, a)), t;
|
|
9
|
+
}
|
|
10
|
+
export { d as setMonth$u };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getISOWeekYear$u as o } from "./getISOWeekYear.js";
|
|
2
|
+
import { startOfISOWeek$u as f } from "./startOfISOWeek.js";
|
|
3
|
+
import { constructFrom$u as s } from "./constructFrom.js";
|
|
4
|
+
function u(t) {
|
|
5
|
+
const e = o(t), r = s(t, 0);
|
|
6
|
+
return r.setFullYear(e, 0, 4), r.setHours(0, 0, 0, 0), f(r);
|
|
7
|
+
}
|
|
8
|
+
export { u as startOfISOWeekYear$u };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { toDate$u as u } from "./toDate.js";
|
|
2
|
+
import { getDefaultOptions$u as w } from "./_lib/defaultOptions.js";
|
|
3
|
+
function d(k, t) {
|
|
4
|
+
var c, f, n, O;
|
|
5
|
+
const a = w(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : f.weekStartsOn) ?? a.weekStartsOn ?? ((O = (n = a.locale) == null ? void 0 : n.options) == null ? void 0 : O.weekStartsOn) ?? 0, e = u(k), s = e.getDay(), l = (s < r ? 7 : 0) + s - r;
|
|
6
|
+
return e.setDate(e.getDate() - l), e.setHours(0, 0, 0, 0), e;
|
|
7
|
+
}
|
|
8
|
+
export { d as startOfWeek$u };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { constructFrom$u as m } from "./constructFrom.js";
|
|
2
|
+
import { getWeekYear$u as o } from "./getWeekYear.js";
|
|
3
|
+
import { startOfWeek$u as W } from "./startOfWeek.js";
|
|
4
|
+
import { getDefaultOptions$u as l } from "./_lib/defaultOptions.js";
|
|
5
|
+
function d(r, e) {
|
|
6
|
+
var f, s, n, c;
|
|
7
|
+
const a = l(), i = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((s = (f = e == null ? void 0 : e.locale) == null ? void 0 : f.options) == null ? void 0 : s.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((c = (n = a.locale) == null ? void 0 : n.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, k = o(r, e), t = m(r, 0);
|
|
8
|
+
return t.setFullYear(k, 0, i), t.setHours(0, 0, 0, 0), W(t, e);
|
|
9
|
+
}
|
|
10
|
+
export { d as startOfWeekYear$u };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
function o(t) {
|
|
2
|
+
const e = Object.prototype.toString.call(t);
|
|
3
|
+
return t instanceof Date || typeof t == "object" && e === "[object Date]" ? new t.constructor(+t) : typeof t == "number" || e === "[object Number]" || typeof t == "string" || e === "[object String]" ? new Date(t) : /* @__PURE__ */ new Date(NaN);
|
|
4
|
+
}
|
|
5
|
+
export { o as toDate$u };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { constructFrom$u as s } from "./constructFrom.js";
|
|
2
|
+
function i(e, t) {
|
|
3
|
+
const n = t instanceof Date ? s(t, 0) : new t(0);
|
|
4
|
+
return n.setFullYear(
|
|
5
|
+
e.getFullYear(),
|
|
6
|
+
e.getMonth(),
|
|
7
|
+
e.getDate()
|
|
8
|
+
), n.setHours(
|
|
9
|
+
e.getHours(),
|
|
10
|
+
e.getMinutes(),
|
|
11
|
+
e.getSeconds(),
|
|
12
|
+
e.getMilliseconds()
|
|
13
|
+
), n;
|
|
14
|
+
}
|
|
15
|
+
export { i as transpose$u };
|