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,153 @@
|
|
|
1
|
+
import { buildLocalizeFn$u as e } from "../../_lib/buildLocalizeFn.js";
|
|
2
|
+
const a = {
|
|
3
|
+
narrow: ["B", "A"],
|
|
4
|
+
abbreviated: ["BC", "AD"],
|
|
5
|
+
wide: ["Before Christ", "Anno Domini"]
|
|
6
|
+
}, r = {
|
|
7
|
+
narrow: ["1", "2", "3", "4"],
|
|
8
|
+
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
9
|
+
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
10
|
+
}, o = {
|
|
11
|
+
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
12
|
+
abbreviated: [
|
|
13
|
+
"Jan",
|
|
14
|
+
"Feb",
|
|
15
|
+
"Mar",
|
|
16
|
+
"Apr",
|
|
17
|
+
"May",
|
|
18
|
+
"Jun",
|
|
19
|
+
"Jul",
|
|
20
|
+
"Aug",
|
|
21
|
+
"Sep",
|
|
22
|
+
"Oct",
|
|
23
|
+
"Nov",
|
|
24
|
+
"Dec"
|
|
25
|
+
],
|
|
26
|
+
wide: [
|
|
27
|
+
"January",
|
|
28
|
+
"February",
|
|
29
|
+
"March",
|
|
30
|
+
"April",
|
|
31
|
+
"May",
|
|
32
|
+
"June",
|
|
33
|
+
"July",
|
|
34
|
+
"August",
|
|
35
|
+
"September",
|
|
36
|
+
"October",
|
|
37
|
+
"November",
|
|
38
|
+
"December"
|
|
39
|
+
]
|
|
40
|
+
}, d = {
|
|
41
|
+
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
42
|
+
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
43
|
+
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
44
|
+
wide: [
|
|
45
|
+
"Sunday",
|
|
46
|
+
"Monday",
|
|
47
|
+
"Tuesday",
|
|
48
|
+
"Wednesday",
|
|
49
|
+
"Thursday",
|
|
50
|
+
"Friday",
|
|
51
|
+
"Saturday"
|
|
52
|
+
]
|
|
53
|
+
}, m = {
|
|
54
|
+
narrow: {
|
|
55
|
+
am: "a",
|
|
56
|
+
pm: "p",
|
|
57
|
+
midnight: "mi",
|
|
58
|
+
noon: "n",
|
|
59
|
+
morning: "morning",
|
|
60
|
+
afternoon: "afternoon",
|
|
61
|
+
evening: "evening",
|
|
62
|
+
night: "night"
|
|
63
|
+
},
|
|
64
|
+
abbreviated: {
|
|
65
|
+
am: "AM",
|
|
66
|
+
pm: "PM",
|
|
67
|
+
midnight: "midnight",
|
|
68
|
+
noon: "noon",
|
|
69
|
+
morning: "morning",
|
|
70
|
+
afternoon: "afternoon",
|
|
71
|
+
evening: "evening",
|
|
72
|
+
night: "night"
|
|
73
|
+
},
|
|
74
|
+
wide: {
|
|
75
|
+
am: "a.m.",
|
|
76
|
+
pm: "p.m.",
|
|
77
|
+
midnight: "midnight",
|
|
78
|
+
noon: "noon",
|
|
79
|
+
morning: "morning",
|
|
80
|
+
afternoon: "afternoon",
|
|
81
|
+
evening: "evening",
|
|
82
|
+
night: "night"
|
|
83
|
+
}
|
|
84
|
+
}, g = {
|
|
85
|
+
narrow: {
|
|
86
|
+
am: "a",
|
|
87
|
+
pm: "p",
|
|
88
|
+
midnight: "mi",
|
|
89
|
+
noon: "n",
|
|
90
|
+
morning: "in the morning",
|
|
91
|
+
afternoon: "in the afternoon",
|
|
92
|
+
evening: "in the evening",
|
|
93
|
+
night: "at night"
|
|
94
|
+
},
|
|
95
|
+
abbreviated: {
|
|
96
|
+
am: "AM",
|
|
97
|
+
pm: "PM",
|
|
98
|
+
midnight: "midnight",
|
|
99
|
+
noon: "noon",
|
|
100
|
+
morning: "in the morning",
|
|
101
|
+
afternoon: "in the afternoon",
|
|
102
|
+
evening: "in the evening",
|
|
103
|
+
night: "at night"
|
|
104
|
+
},
|
|
105
|
+
wide: {
|
|
106
|
+
am: "a.m.",
|
|
107
|
+
pm: "p.m.",
|
|
108
|
+
midnight: "midnight",
|
|
109
|
+
noon: "noon",
|
|
110
|
+
morning: "in the morning",
|
|
111
|
+
afternoon: "in the afternoon",
|
|
112
|
+
evening: "in the evening",
|
|
113
|
+
night: "at night"
|
|
114
|
+
}
|
|
115
|
+
}, u = (i, h) => {
|
|
116
|
+
const n = Number(i), t = n % 100;
|
|
117
|
+
if (t > 20 || t < 10)
|
|
118
|
+
switch (t % 10) {
|
|
119
|
+
case 1:
|
|
120
|
+
return n + "st";
|
|
121
|
+
case 2:
|
|
122
|
+
return n + "nd";
|
|
123
|
+
case 3:
|
|
124
|
+
return n + "rd";
|
|
125
|
+
}
|
|
126
|
+
return n + "th";
|
|
127
|
+
}, l = {
|
|
128
|
+
ordinalNumber: u,
|
|
129
|
+
era: e({
|
|
130
|
+
values: a,
|
|
131
|
+
defaultWidth: "wide"
|
|
132
|
+
}),
|
|
133
|
+
quarter: e({
|
|
134
|
+
values: r,
|
|
135
|
+
defaultWidth: "wide",
|
|
136
|
+
argumentCallback: (i) => i - 1
|
|
137
|
+
}),
|
|
138
|
+
month: e({
|
|
139
|
+
values: o,
|
|
140
|
+
defaultWidth: "wide"
|
|
141
|
+
}),
|
|
142
|
+
day: e({
|
|
143
|
+
values: d,
|
|
144
|
+
defaultWidth: "wide"
|
|
145
|
+
}),
|
|
146
|
+
dayPeriod: e({
|
|
147
|
+
values: m,
|
|
148
|
+
defaultWidth: "wide",
|
|
149
|
+
formattingValues: g,
|
|
150
|
+
defaultFormattingWidth: "wide"
|
|
151
|
+
})
|
|
152
|
+
};
|
|
153
|
+
export { l as localize$u };
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import { buildMatchFn$u as a } from "../../_lib/buildMatchFn.js";
|
|
2
|
+
import { buildMatchPatternFn$u as i } from "../../_lib/buildMatchPatternFn.js";
|
|
3
|
+
const n = /^(\d+)(th|st|nd|rd)?/i, e = /\d+/i, r = {
|
|
4
|
+
narrow: /^(b|a)/i,
|
|
5
|
+
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
6
|
+
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
7
|
+
}, s = {
|
|
8
|
+
any: [/^b/i, /^(a|c)/i]
|
|
9
|
+
}, o = {
|
|
10
|
+
narrow: /^[1234]/i,
|
|
11
|
+
abbreviated: /^q[1234]/i,
|
|
12
|
+
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
13
|
+
}, d = {
|
|
14
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
15
|
+
}, m = {
|
|
16
|
+
narrow: /^[jfmasond]/i,
|
|
17
|
+
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
18
|
+
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
19
|
+
}, h = {
|
|
20
|
+
narrow: [
|
|
21
|
+
/^j/i,
|
|
22
|
+
/^f/i,
|
|
23
|
+
/^m/i,
|
|
24
|
+
/^a/i,
|
|
25
|
+
/^m/i,
|
|
26
|
+
/^j/i,
|
|
27
|
+
/^j/i,
|
|
28
|
+
/^a/i,
|
|
29
|
+
/^s/i,
|
|
30
|
+
/^o/i,
|
|
31
|
+
/^n/i,
|
|
32
|
+
/^d/i
|
|
33
|
+
],
|
|
34
|
+
any: [
|
|
35
|
+
/^ja/i,
|
|
36
|
+
/^f/i,
|
|
37
|
+
/^mar/i,
|
|
38
|
+
/^ap/i,
|
|
39
|
+
/^may/i,
|
|
40
|
+
/^jun/i,
|
|
41
|
+
/^jul/i,
|
|
42
|
+
/^au/i,
|
|
43
|
+
/^s/i,
|
|
44
|
+
/^o/i,
|
|
45
|
+
/^n/i,
|
|
46
|
+
/^d/i
|
|
47
|
+
]
|
|
48
|
+
}, c = {
|
|
49
|
+
narrow: /^[smtwf]/i,
|
|
50
|
+
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
51
|
+
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
52
|
+
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
53
|
+
}, u = {
|
|
54
|
+
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
55
|
+
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
56
|
+
}, P = {
|
|
57
|
+
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
58
|
+
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
59
|
+
}, y = {
|
|
60
|
+
any: {
|
|
61
|
+
am: /^a/i,
|
|
62
|
+
pm: /^p/i,
|
|
63
|
+
midnight: /^mi/i,
|
|
64
|
+
noon: /^no/i,
|
|
65
|
+
morning: /morning/i,
|
|
66
|
+
afternoon: /afternoon/i,
|
|
67
|
+
evening: /evening/i,
|
|
68
|
+
night: /night/i
|
|
69
|
+
}
|
|
70
|
+
}, l = {
|
|
71
|
+
ordinalNumber: i({
|
|
72
|
+
matchPattern: n,
|
|
73
|
+
parsePattern: e,
|
|
74
|
+
valueCallback: (t) => parseInt(t, 10)
|
|
75
|
+
}),
|
|
76
|
+
era: a({
|
|
77
|
+
matchPatterns: r,
|
|
78
|
+
defaultMatchWidth: "wide",
|
|
79
|
+
parsePatterns: s,
|
|
80
|
+
defaultParseWidth: "any"
|
|
81
|
+
}),
|
|
82
|
+
quarter: a({
|
|
83
|
+
matchPatterns: o,
|
|
84
|
+
defaultMatchWidth: "wide",
|
|
85
|
+
parsePatterns: d,
|
|
86
|
+
defaultParseWidth: "any",
|
|
87
|
+
valueCallback: (t) => t + 1
|
|
88
|
+
}),
|
|
89
|
+
month: a({
|
|
90
|
+
matchPatterns: m,
|
|
91
|
+
defaultMatchWidth: "wide",
|
|
92
|
+
parsePatterns: h,
|
|
93
|
+
defaultParseWidth: "any"
|
|
94
|
+
}),
|
|
95
|
+
day: a({
|
|
96
|
+
matchPatterns: c,
|
|
97
|
+
defaultMatchWidth: "wide",
|
|
98
|
+
parsePatterns: u,
|
|
99
|
+
defaultParseWidth: "any"
|
|
100
|
+
}),
|
|
101
|
+
dayPeriod: a({
|
|
102
|
+
matchPatterns: P,
|
|
103
|
+
defaultMatchWidth: "any",
|
|
104
|
+
parsePatterns: y,
|
|
105
|
+
defaultParseWidth: "any"
|
|
106
|
+
})
|
|
107
|
+
};
|
|
108
|
+
export { l as match$u };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { formatDistance$u as o } from "./en-US/_lib/formatDistance.js";
|
|
2
|
+
import { formatLong$u as t } from "./en-US/_lib/formatLong.js";
|
|
3
|
+
import { formatRelative$u as r } from "./en-US/_lib/formatRelative.js";
|
|
4
|
+
import { localize$u as m } from "./en-US/_lib/localize.js";
|
|
5
|
+
import { match$u as a } from "./en-US/_lib/match.js";
|
|
6
|
+
const p = {
|
|
7
|
+
code: "en-US",
|
|
8
|
+
formatDistance: o,
|
|
9
|
+
formatLong: t,
|
|
10
|
+
formatRelative: r,
|
|
11
|
+
localize: m,
|
|
12
|
+
match: a,
|
|
13
|
+
options: {
|
|
14
|
+
weekStartsOn: 0,
|
|
15
|
+
firstWeekContainsDate: 1
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
export { p as enUS$u };
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
function t(i, n) {
|
|
2
|
+
if (i.one !== void 0 && n === 1)
|
|
3
|
+
return i.one;
|
|
4
|
+
const e = n % 10, r = n % 100;
|
|
5
|
+
return e === 1 && r !== 11 ? i.singularNominative.replace("{{count}}", String(n)) : e >= 2 && e <= 4 && (r < 10 || r > 20) ? i.singularGenitive.replace("{{count}}", String(n)) : i.pluralGenitive.replace("{{count}}", String(n));
|
|
6
|
+
}
|
|
7
|
+
function u(i) {
|
|
8
|
+
return (n, e) => e != null && e.addSuffix ? e.comparison && e.comparison > 0 ? i.future ? t(i.future, n) : "через " + t(i.regular, n) : i.past ? t(i.past, n) : t(i.regular, n) + " назад" : t(i.regular, n);
|
|
9
|
+
}
|
|
10
|
+
const a = {
|
|
11
|
+
lessThanXSeconds: u({
|
|
12
|
+
regular: {
|
|
13
|
+
one: "меньше секунды",
|
|
14
|
+
singularNominative: "меньше {{count}} секунды",
|
|
15
|
+
singularGenitive: "меньше {{count}} секунд",
|
|
16
|
+
pluralGenitive: "меньше {{count}} секунд"
|
|
17
|
+
},
|
|
18
|
+
future: {
|
|
19
|
+
one: "меньше, чем через секунду",
|
|
20
|
+
singularNominative: "меньше, чем через {{count}} секунду",
|
|
21
|
+
singularGenitive: "меньше, чем через {{count}} секунды",
|
|
22
|
+
pluralGenitive: "меньше, чем через {{count}} секунд"
|
|
23
|
+
}
|
|
24
|
+
}),
|
|
25
|
+
xSeconds: u({
|
|
26
|
+
regular: {
|
|
27
|
+
singularNominative: "{{count}} секунда",
|
|
28
|
+
singularGenitive: "{{count}} секунды",
|
|
29
|
+
pluralGenitive: "{{count}} секунд"
|
|
30
|
+
},
|
|
31
|
+
past: {
|
|
32
|
+
singularNominative: "{{count}} секунду назад",
|
|
33
|
+
singularGenitive: "{{count}} секунды назад",
|
|
34
|
+
pluralGenitive: "{{count}} секунд назад"
|
|
35
|
+
},
|
|
36
|
+
future: {
|
|
37
|
+
singularNominative: "через {{count}} секунду",
|
|
38
|
+
singularGenitive: "через {{count}} секунды",
|
|
39
|
+
pluralGenitive: "через {{count}} секунд"
|
|
40
|
+
}
|
|
41
|
+
}),
|
|
42
|
+
halfAMinute: (i, n) => n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "через полминуты" : "полминуты назад" : "полминуты",
|
|
43
|
+
lessThanXMinutes: u({
|
|
44
|
+
regular: {
|
|
45
|
+
one: "меньше минуты",
|
|
46
|
+
singularNominative: "меньше {{count}} минуты",
|
|
47
|
+
singularGenitive: "меньше {{count}} минут",
|
|
48
|
+
pluralGenitive: "меньше {{count}} минут"
|
|
49
|
+
},
|
|
50
|
+
future: {
|
|
51
|
+
one: "меньше, чем через минуту",
|
|
52
|
+
singularNominative: "меньше, чем через {{count}} минуту",
|
|
53
|
+
singularGenitive: "меньше, чем через {{count}} минуты",
|
|
54
|
+
pluralGenitive: "меньше, чем через {{count}} минут"
|
|
55
|
+
}
|
|
56
|
+
}),
|
|
57
|
+
xMinutes: u({
|
|
58
|
+
regular: {
|
|
59
|
+
singularNominative: "{{count}} минута",
|
|
60
|
+
singularGenitive: "{{count}} минуты",
|
|
61
|
+
pluralGenitive: "{{count}} минут"
|
|
62
|
+
},
|
|
63
|
+
past: {
|
|
64
|
+
singularNominative: "{{count}} минуту назад",
|
|
65
|
+
singularGenitive: "{{count}} минуты назад",
|
|
66
|
+
pluralGenitive: "{{count}} минут назад"
|
|
67
|
+
},
|
|
68
|
+
future: {
|
|
69
|
+
singularNominative: "через {{count}} минуту",
|
|
70
|
+
singularGenitive: "через {{count}} минуты",
|
|
71
|
+
pluralGenitive: "через {{count}} минут"
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
aboutXHours: u({
|
|
75
|
+
regular: {
|
|
76
|
+
singularNominative: "около {{count}} часа",
|
|
77
|
+
singularGenitive: "около {{count}} часов",
|
|
78
|
+
pluralGenitive: "около {{count}} часов"
|
|
79
|
+
},
|
|
80
|
+
future: {
|
|
81
|
+
singularNominative: "приблизительно через {{count}} час",
|
|
82
|
+
singularGenitive: "приблизительно через {{count}} часа",
|
|
83
|
+
pluralGenitive: "приблизительно через {{count}} часов"
|
|
84
|
+
}
|
|
85
|
+
}),
|
|
86
|
+
xHours: u({
|
|
87
|
+
regular: {
|
|
88
|
+
singularNominative: "{{count}} час",
|
|
89
|
+
singularGenitive: "{{count}} часа",
|
|
90
|
+
pluralGenitive: "{{count}} часов"
|
|
91
|
+
}
|
|
92
|
+
}),
|
|
93
|
+
xDays: u({
|
|
94
|
+
regular: {
|
|
95
|
+
singularNominative: "{{count}} день",
|
|
96
|
+
singularGenitive: "{{count}} дня",
|
|
97
|
+
pluralGenitive: "{{count}} дней"
|
|
98
|
+
}
|
|
99
|
+
}),
|
|
100
|
+
aboutXWeeks: u({
|
|
101
|
+
regular: {
|
|
102
|
+
singularNominative: "около {{count}} недели",
|
|
103
|
+
singularGenitive: "около {{count}} недель",
|
|
104
|
+
pluralGenitive: "около {{count}} недель"
|
|
105
|
+
},
|
|
106
|
+
future: {
|
|
107
|
+
singularNominative: "приблизительно через {{count}} неделю",
|
|
108
|
+
singularGenitive: "приблизительно через {{count}} недели",
|
|
109
|
+
pluralGenitive: "приблизительно через {{count}} недель"
|
|
110
|
+
}
|
|
111
|
+
}),
|
|
112
|
+
xWeeks: u({
|
|
113
|
+
regular: {
|
|
114
|
+
singularNominative: "{{count}} неделя",
|
|
115
|
+
singularGenitive: "{{count}} недели",
|
|
116
|
+
pluralGenitive: "{{count}} недель"
|
|
117
|
+
}
|
|
118
|
+
}),
|
|
119
|
+
aboutXMonths: u({
|
|
120
|
+
regular: {
|
|
121
|
+
singularNominative: "около {{count}} месяца",
|
|
122
|
+
singularGenitive: "около {{count}} месяцев",
|
|
123
|
+
pluralGenitive: "около {{count}} месяцев"
|
|
124
|
+
},
|
|
125
|
+
future: {
|
|
126
|
+
singularNominative: "приблизительно через {{count}} месяц",
|
|
127
|
+
singularGenitive: "приблизительно через {{count}} месяца",
|
|
128
|
+
pluralGenitive: "приблизительно через {{count}} месяцев"
|
|
129
|
+
}
|
|
130
|
+
}),
|
|
131
|
+
xMonths: u({
|
|
132
|
+
regular: {
|
|
133
|
+
singularNominative: "{{count}} месяц",
|
|
134
|
+
singularGenitive: "{{count}} месяца",
|
|
135
|
+
pluralGenitive: "{{count}} месяцев"
|
|
136
|
+
}
|
|
137
|
+
}),
|
|
138
|
+
aboutXYears: u({
|
|
139
|
+
regular: {
|
|
140
|
+
singularNominative: "около {{count}} года",
|
|
141
|
+
singularGenitive: "около {{count}} лет",
|
|
142
|
+
pluralGenitive: "около {{count}} лет"
|
|
143
|
+
},
|
|
144
|
+
future: {
|
|
145
|
+
singularNominative: "приблизительно через {{count}} год",
|
|
146
|
+
singularGenitive: "приблизительно через {{count}} года",
|
|
147
|
+
pluralGenitive: "приблизительно через {{count}} лет"
|
|
148
|
+
}
|
|
149
|
+
}),
|
|
150
|
+
xYears: u({
|
|
151
|
+
regular: {
|
|
152
|
+
singularNominative: "{{count}} год",
|
|
153
|
+
singularGenitive: "{{count}} года",
|
|
154
|
+
pluralGenitive: "{{count}} лет"
|
|
155
|
+
}
|
|
156
|
+
}),
|
|
157
|
+
overXYears: u({
|
|
158
|
+
regular: {
|
|
159
|
+
singularNominative: "больше {{count}} года",
|
|
160
|
+
singularGenitive: "больше {{count}} лет",
|
|
161
|
+
pluralGenitive: "больше {{count}} лет"
|
|
162
|
+
},
|
|
163
|
+
future: {
|
|
164
|
+
singularNominative: "больше, чем через {{count}} год",
|
|
165
|
+
singularGenitive: "больше, чем через {{count}} года",
|
|
166
|
+
pluralGenitive: "больше, чем через {{count}} лет"
|
|
167
|
+
}
|
|
168
|
+
}),
|
|
169
|
+
almostXYears: u({
|
|
170
|
+
regular: {
|
|
171
|
+
singularNominative: "почти {{count}} год",
|
|
172
|
+
singularGenitive: "почти {{count}} года",
|
|
173
|
+
pluralGenitive: "почти {{count}} лет"
|
|
174
|
+
},
|
|
175
|
+
future: {
|
|
176
|
+
singularNominative: "почти через {{count}} год",
|
|
177
|
+
singularGenitive: "почти через {{count}} года",
|
|
178
|
+
pluralGenitive: "почти через {{count}} лет"
|
|
179
|
+
}
|
|
180
|
+
})
|
|
181
|
+
}, l = (i, n, e) => a[i](n, e);
|
|
182
|
+
export { l as formatDistance$u };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { buildFormatLongFn$u as t } from "../../_lib/buildFormatLongFn.js";
|
|
2
|
+
const m = {
|
|
3
|
+
full: "EEEE, d MMMM y 'г.'",
|
|
4
|
+
long: "d MMMM y 'г.'",
|
|
5
|
+
medium: "d MMM y 'г.'",
|
|
6
|
+
short: "dd.MM.y"
|
|
7
|
+
}, o = {
|
|
8
|
+
full: "H:mm:ss zzzz",
|
|
9
|
+
long: "H:mm:ss z",
|
|
10
|
+
medium: "H:mm:ss",
|
|
11
|
+
short: "H:mm"
|
|
12
|
+
}, d = {
|
|
13
|
+
any: "{{date}}, {{time}}"
|
|
14
|
+
}, s = {
|
|
15
|
+
date: t({
|
|
16
|
+
formats: m,
|
|
17
|
+
defaultWidth: "full"
|
|
18
|
+
}),
|
|
19
|
+
time: t({
|
|
20
|
+
formats: o,
|
|
21
|
+
defaultWidth: "full"
|
|
22
|
+
}),
|
|
23
|
+
dateTime: t({
|
|
24
|
+
formats: d,
|
|
25
|
+
defaultWidth: "any"
|
|
26
|
+
})
|
|
27
|
+
};
|
|
28
|
+
export { s as formatLong$u };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { isSameWeek$u as a } from "../../../isSameWeek.js";
|
|
2
|
+
const c = [
|
|
3
|
+
"воскресенье",
|
|
4
|
+
"понедельник",
|
|
5
|
+
"вторник",
|
|
6
|
+
"среду",
|
|
7
|
+
"четверг",
|
|
8
|
+
"пятницу",
|
|
9
|
+
"субботу"
|
|
10
|
+
];
|
|
11
|
+
function u(e) {
|
|
12
|
+
const t = c[e];
|
|
13
|
+
switch (e) {
|
|
14
|
+
case 0:
|
|
15
|
+
return "'в прошлое " + t + " в' p";
|
|
16
|
+
case 1:
|
|
17
|
+
case 2:
|
|
18
|
+
case 4:
|
|
19
|
+
return "'в прошлый " + t + " в' p";
|
|
20
|
+
case 3:
|
|
21
|
+
case 5:
|
|
22
|
+
case 6:
|
|
23
|
+
return "'в прошлую " + t + " в' p";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
function o(e) {
|
|
27
|
+
const t = c[e];
|
|
28
|
+
return e === 2 ? "'во " + t + " в' p" : "'в " + t + " в' p";
|
|
29
|
+
}
|
|
30
|
+
function i(e) {
|
|
31
|
+
const t = c[e];
|
|
32
|
+
switch (e) {
|
|
33
|
+
case 0:
|
|
34
|
+
return "'в следующее " + t + " в' p";
|
|
35
|
+
case 1:
|
|
36
|
+
case 2:
|
|
37
|
+
case 4:
|
|
38
|
+
return "'в следующий " + t + " в' p";
|
|
39
|
+
case 3:
|
|
40
|
+
case 5:
|
|
41
|
+
case 6:
|
|
42
|
+
return "'в следующую " + t + " в' p";
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
const p = {
|
|
46
|
+
lastWeek: (e, t, s) => {
|
|
47
|
+
const r = e.getDay();
|
|
48
|
+
return a(e, t, s) ? o(r) : u(r);
|
|
49
|
+
},
|
|
50
|
+
yesterday: "'вчера в' p",
|
|
51
|
+
today: "'сегодня в' p",
|
|
52
|
+
tomorrow: "'завтра в' p",
|
|
53
|
+
nextWeek: (e, t, s) => {
|
|
54
|
+
const r = e.getDay();
|
|
55
|
+
return a(e, t, s) ? o(r) : i(r);
|
|
56
|
+
},
|
|
57
|
+
other: "P"
|
|
58
|
+
}, k = (e, t, s, r) => {
|
|
59
|
+
const n = p[e];
|
|
60
|
+
return typeof n == "function" ? n(t, s, r) : n;
|
|
61
|
+
};
|
|
62
|
+
export { k as formatRelative$u };
|