@easyops-cn/a2ui-react 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/0.8/components/display/AudioPlayerComponent.js +2 -2
- package/dist/0.8/components/display/DividerComponent.js +1 -1
- package/dist/0.8/components/display/IconComponent.js +55 -101
- package/dist/0.8/components/display/ImageComponent.js +2 -2
- package/dist/0.8/components/display/TextComponent.js +2 -2
- package/dist/0.8/components/display/VideoComponent.js +2 -2
- package/dist/0.8/components/interactive/ButtonComponent.js +2 -2
- package/dist/0.8/components/interactive/CheckBoxComponent.js +4 -4
- package/dist/0.8/components/interactive/DateTimeInputComponent.js +36 -38
- package/dist/0.8/components/interactive/MultipleChoiceComponent.js +5 -5
- package/dist/0.8/components/interactive/SliderComponent.js +3 -3
- package/dist/0.8/components/interactive/TextFieldComponent.js +5 -5
- package/dist/0.8/components/layout/CardComponent.js +1 -1
- package/dist/0.8/components/layout/ColumnComponent.js +3 -3
- package/dist/0.8/components/layout/ListComponent.js +3 -3
- package/dist/0.8/components/layout/ModalComponent.js +1 -1
- package/dist/0.8/components/layout/RowComponent.js +3 -3
- package/dist/0.8/components/layout/TabsComponent.js +2 -2
- package/dist/0.8/hooks/useDataBinding.js +12 -17
- package/package.json +1 -1
- package/dist/components/ui/button.js +0 -53
- package/dist/components/ui/calendar.js +0 -176
- package/dist/components/ui/card.js +0 -29
- package/dist/components/ui/checkbox.js +0 -31
- package/dist/components/ui/dialog.js +0 -77
- package/dist/components/ui/input.js +0 -21
- package/dist/components/ui/label.js +0 -22
- package/dist/components/ui/popover.js +0 -38
- package/dist/components/ui/select.js +0 -146
- package/dist/components/ui/separator.js +0 -26
- package/dist/components/ui/slider.js +0 -63
- package/dist/components/ui/tabs.js +0 -67
- package/dist/components/ui/textarea.js +0 -18
- package/dist/lib/utils.js +0 -8
- package/dist/node_modules/@date-fns/tz/date/index.js +0 -61
- package/dist/node_modules/@date-fns/tz/date/mini.js +0 -69
- package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -11
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -22
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -527
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -402
- package/dist/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -208
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -136
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -130
- package/dist/node_modules/@radix-ui/number/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/primitive/dist/index.js +0 -9
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +0 -251
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +0 -50
- package/dist/node_modules/@radix-ui/react-collection/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-compose-refs/dist/index.js +0 -29
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +0 -68
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +0 -255
- package/dist/node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +0 -127
- package/dist/node_modules/@radix-ui/react-focus-guards/dist/index.js +0 -17
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +0 -136
- package/dist/node_modules/@radix-ui/react-id/dist/index.js +0 -13
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +0 -19
- package/dist/node_modules/@radix-ui/react-label/node_modules/@radix-ui/react-primitive/dist/index.js +0 -32
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +0 -239
- package/dist/node_modules/@radix-ui/react-popover/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +0 -219
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +0 -15
- package/dist/node_modules/@radix-ui/react-presence/dist/index.js +0 -70
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +0 -36
- package/dist/node_modules/@radix-ui/react-primitive/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +0 -183
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +0 -845
- package/dist/node_modules/@radix-ui/react-select/node_modules/@radix-ui/react-slot/dist/index.js +0 -49
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +0 -24
- package/dist/node_modules/@radix-ui/react-separator/node_modules/@radix-ui/react-primitive/dist/index.js +0 -32
- package/dist/node_modules/@radix-ui/react-slider/dist/index.js +0 -436
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +0 -61
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +0 -163
- package/dist/node_modules/@radix-ui/react-use-callback-ref/dist/index.js +0 -10
- package/dist/node_modules/@radix-ui/react-use-controllable-state/dist/index.js +0 -52
- package/dist/node_modules/@radix-ui/react-use-escape-keydown/dist/index.js +0 -14
- package/dist/node_modules/@radix-ui/react-use-layout-effect/dist/index.js +0 -6
- package/dist/node_modules/@radix-ui/react-use-previous/dist/index.js +0 -8
- package/dist/node_modules/@radix-ui/react-use-size/dist/index.js +0 -27
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +0 -30
- package/dist/node_modules/aria-hidden/dist/es2015/index.js +0 -52
- package/dist/node_modules/class-variance-authority/dist/index.js +0 -35
- package/dist/node_modules/clsx/dist/clsx.js +0 -17
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -7
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
- package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -548
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -58
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -49
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -18
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +0 -8
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -20
- package/dist/node_modules/date-fns/addDays.js +0 -10
- package/dist/node_modules/date-fns/addMonths.js +0 -20
- package/dist/node_modules/date-fns/addWeeks.js +0 -8
- package/dist/node_modules/date-fns/addYears.js +0 -8
- package/dist/node_modules/date-fns/constants.js +0 -9
- package/dist/node_modules/date-fns/constructFrom.js +0 -8
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -16
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +0 -13
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +0 -17
- package/dist/node_modules/date-fns/eachYearOfInterval.js +0 -17
- package/dist/node_modules/date-fns/endOfISOWeek.js +0 -8
- package/dist/node_modules/date-fns/endOfMonth.js +0 -9
- package/dist/node_modules/date-fns/endOfWeek.js +0 -10
- package/dist/node_modules/date-fns/endOfYear.js +0 -9
- package/dist/node_modules/date-fns/format.js +0 -58
- package/dist/node_modules/date-fns/getDayOfYear.js +0 -11
- package/dist/node_modules/date-fns/getDaysInMonth.js +0 -10
- package/dist/node_modules/date-fns/getDefaultOptions.js +0 -8
- package/dist/node_modules/date-fns/getISODay.js +0 -9
- package/dist/node_modules/date-fns/getISOWeek.js +0 -12
- package/dist/node_modules/date-fns/getISOWeekYear.js +0 -15
- package/dist/node_modules/date-fns/getMonth.js +0 -8
- package/dist/node_modules/date-fns/getWeek.js +0 -12
- package/dist/node_modules/date-fns/getWeekYear.js +0 -16
- package/dist/node_modules/date-fns/getYear.js +0 -8
- package/dist/node_modules/date-fns/isAfter.js +0 -8
- package/dist/node_modules/date-fns/isBefore.js +0 -8
- package/dist/node_modules/date-fns/isDate.js +0 -7
- package/dist/node_modules/date-fns/isSameDay.js +0 -14
- package/dist/node_modules/date-fns/isSameMonth.js +0 -13
- package/dist/node_modules/date-fns/isSameYear.js +0 -13
- package/dist/node_modules/date-fns/isValid.js +0 -9
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -9
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -18
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -31
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -15
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -70
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -33
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -11
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -155
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -110
- package/dist/node_modules/date-fns/locale/en-US.js +0 -21
- package/dist/node_modules/date-fns/max.js +0 -14
- package/dist/node_modules/date-fns/min.js +0 -14
- package/dist/node_modules/date-fns/parse/_lib/Parser.js +0 -22
- package/dist/node_modules/date-fns/parse/_lib/Setter.js +0 -35
- package/dist/node_modules/date-fns/parse/_lib/constants.js +0 -49
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -42
- package/dist/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -42
- package/dist/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -55
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -45
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -41
- package/dist/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -42
- package/dist/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -25
- package/dist/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -15
- package/dist/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -16
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -26
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -26
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -27
- package/dist/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -27
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -97
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -41
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -41
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -43
- package/dist/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -34
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -72
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -42
- package/dist/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -63
- package/dist/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -26
- package/dist/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -69
- package/dist/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -67
- package/dist/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -26
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -72
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -69
- package/dist/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -67
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -16
- package/dist/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -16
- package/dist/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -43
- package/dist/node_modules/date-fns/parse/_lib/parsers.js +0 -67
- package/dist/node_modules/date-fns/parse/_lib/utils.js +0 -100
- package/dist/node_modules/date-fns/parse.js +0 -88
- package/dist/node_modules/date-fns/setDay.js +0 -11
- package/dist/node_modules/date-fns/setISODay.js +0 -11
- package/dist/node_modules/date-fns/setISOWeek.js +0 -10
- package/dist/node_modules/date-fns/setMonth.js +0 -13
- package/dist/node_modules/date-fns/setWeek.js +0 -10
- package/dist/node_modules/date-fns/setYear.js +0 -10
- package/dist/node_modules/date-fns/startOfDay.js +0 -9
- package/dist/node_modules/date-fns/startOfISOWeek.js +0 -8
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -11
- package/dist/node_modules/date-fns/startOfMonth.js +0 -9
- package/dist/node_modules/date-fns/startOfWeek.js +0 -10
- package/dist/node_modules/date-fns/startOfWeekYear.js +0 -12
- package/dist/node_modules/date-fns/startOfYear.js +0 -9
- package/dist/node_modules/date-fns/toDate.js +0 -8
- package/dist/node_modules/date-fns/transpose.js +0 -17
- package/dist/node_modules/get-nonce/dist/es2015/index.js +0 -7
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +0 -35
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +0 -21
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-left.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-right.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/bell-off.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar-days.js +0 -17
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js +0 -11
- package/dist/node_modules/lucide-react/dist/esm/icons/camera.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-left.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-right.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +0 -6
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-alert.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-question-mark.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-user.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/credit-card.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/download.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis-vertical.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/ellipsis.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/eye-off.js +0 -23
- package/dist/node_modules/lucide-react/dist/esm/icons/eye.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/folder.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/heart-off.js +0 -22
- package/dist/node_modules/lucide-react/dist/esm/icons/heart.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/house.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/image.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/info.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/lock-open.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/lock.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/mail.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/map-pin.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/menu.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/paperclip.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/pencil.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/phone.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/plus.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/printer.js +0 -16
- package/dist/node_modules/lucide-react/dist/esm/icons/refresh-cw.js +0 -11
- package/dist/node_modules/lucide-react/dist/esm/icons/search.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/send.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +0 -15
- package/dist/node_modules/lucide-react/dist/esm/icons/share-2.js +0 -12
- package/dist/node_modules/lucide-react/dist/esm/icons/shopping-cart.js +0 -16
- package/dist/node_modules/lucide-react/dist/esm/icons/star-half.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/star-off.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/star.js +0 -14
- package/dist/node_modules/lucide-react/dist/esm/icons/trash-2.js +0 -12
- package/dist/node_modules/lucide-react/dist/esm/icons/triangle-alert.js +0 -16
- package/dist/node_modules/lucide-react/dist/esm/icons/upload.js +0 -10
- package/dist/node_modules/lucide-react/dist/esm/icons/user.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/icons/x.js +0 -9
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -234
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -22
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -148
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -27
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -54
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -42
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +0 -34
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -24
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +0 -37
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +0 -104
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -56
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -75
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -23
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -32
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -28
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -26
- package/dist/node_modules/react-remove-scroll/dist/es2015/Combination.js +0 -11
- package/dist/node_modules/react-remove-scroll/dist/es2015/SideEffect.js +0 -115
- package/dist/node_modules/react-remove-scroll/dist/es2015/UI.js +0 -31
- package/dist/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js +0 -16
- package/dist/node_modules/react-remove-scroll/dist/es2015/handleScroll.js +0 -68
- package/dist/node_modules/react-remove-scroll/dist/es2015/medium.js +0 -5
- package/dist/node_modules/react-remove-scroll/dist/es2015/sidecar.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/component.js +0 -71
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/constants.js +0 -7
- package/dist/node_modules/react-remove-scroll-bar/dist/es2015/utils.js +0 -25
- package/dist/node_modules/react-style-singleton/dist/es2015/component.js +0 -11
- package/dist/node_modules/react-style-singleton/dist/es2015/hook.js +0 -15
- package/dist/node_modules/react-style-singleton/dist/es2015/singleton.js +0 -30
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -2765
- package/dist/node_modules/tslib/tslib.es6.js +0 -27
- package/dist/node_modules/use-callback-ref/dist/es2015/assignRef.js +0 -6
- package/dist/node_modules/use-callback-ref/dist/es2015/useMergeRef.js +0 -26
- package/dist/node_modules/use-callback-ref/dist/es2015/useRef.js +0 -25
- package/dist/node_modules/use-sidecar/dist/es2015/exports.js +0 -18
- package/dist/node_modules/use-sidecar/dist/es2015/medium.js +0 -67
|
@@ -1,548 +0,0 @@
|
|
|
1
|
-
import { getDayOfYear as m } from "../../getDayOfYear.js";
|
|
2
|
-
import { getISOWeek as g } from "../../getISOWeek.js";
|
|
3
|
-
import { getISOWeekYear as w } from "../../getISOWeekYear.js";
|
|
4
|
-
import { getWeek as b } from "../../getWeek.js";
|
|
5
|
-
import { getWeekYear as x } from "../../getWeekYear.js";
|
|
6
|
-
import { addLeadingZeros as i } from "../addLeadingZeros.js";
|
|
7
|
-
import { lightFormatters as u } from "./lightFormatters.js";
|
|
8
|
-
const s = {
|
|
9
|
-
midnight: "midnight",
|
|
10
|
-
noon: "noon",
|
|
11
|
-
morning: "morning",
|
|
12
|
-
afternoon: "afternoon",
|
|
13
|
-
evening: "evening",
|
|
14
|
-
night: "night"
|
|
15
|
-
}, L = {
|
|
16
|
-
// Era
|
|
17
|
-
G: function(n, r, e) {
|
|
18
|
-
const t = n.getFullYear() > 0 ? 1 : 0;
|
|
19
|
-
switch (r) {
|
|
20
|
-
// AD, BC
|
|
21
|
-
case "G":
|
|
22
|
-
case "GG":
|
|
23
|
-
case "GGG":
|
|
24
|
-
return e.era(t, { width: "abbreviated" });
|
|
25
|
-
// A, B
|
|
26
|
-
case "GGGGG":
|
|
27
|
-
return e.era(t, { width: "narrow" });
|
|
28
|
-
default:
|
|
29
|
-
return e.era(t, { width: "wide" });
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
// Year
|
|
33
|
-
y: function(n, r, e) {
|
|
34
|
-
if (r === "yo") {
|
|
35
|
-
const t = n.getFullYear(), a = t > 0 ? t : 1 - t;
|
|
36
|
-
return e.ordinalNumber(a, { unit: "year" });
|
|
37
|
-
}
|
|
38
|
-
return u.y(n, r);
|
|
39
|
-
},
|
|
40
|
-
// Local week-numbering year
|
|
41
|
-
Y: function(n, r, e, t) {
|
|
42
|
-
const a = x(n, t), o = a > 0 ? a : 1 - a;
|
|
43
|
-
if (r === "YY") {
|
|
44
|
-
const h = o % 100;
|
|
45
|
-
return i(h, 2);
|
|
46
|
-
}
|
|
47
|
-
return r === "Yo" ? e.ordinalNumber(o, { unit: "year" }) : i(o, r.length);
|
|
48
|
-
},
|
|
49
|
-
// ISO week-numbering year
|
|
50
|
-
R: function(n, r) {
|
|
51
|
-
const e = w(n);
|
|
52
|
-
return i(e, r.length);
|
|
53
|
-
},
|
|
54
|
-
// Extended year. This is a single number designating the year of this calendar system.
|
|
55
|
-
// The main difference between `y` and `u` localizers are B.C. years:
|
|
56
|
-
// | Year | `y` | `u` |
|
|
57
|
-
// |------|-----|-----|
|
|
58
|
-
// | AC 1 | 1 | 1 |
|
|
59
|
-
// | BC 1 | 1 | 0 |
|
|
60
|
-
// | BC 2 | 2 | -1 |
|
|
61
|
-
// Also `yy` always returns the last two digits of a year,
|
|
62
|
-
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
63
|
-
u: function(n, r) {
|
|
64
|
-
const e = n.getFullYear();
|
|
65
|
-
return i(e, r.length);
|
|
66
|
-
},
|
|
67
|
-
// Quarter
|
|
68
|
-
Q: function(n, r, e) {
|
|
69
|
-
const t = Math.ceil((n.getMonth() + 1) / 3);
|
|
70
|
-
switch (r) {
|
|
71
|
-
// 1, 2, 3, 4
|
|
72
|
-
case "Q":
|
|
73
|
-
return String(t);
|
|
74
|
-
// 01, 02, 03, 04
|
|
75
|
-
case "QQ":
|
|
76
|
-
return i(t, 2);
|
|
77
|
-
// 1st, 2nd, 3rd, 4th
|
|
78
|
-
case "Qo":
|
|
79
|
-
return e.ordinalNumber(t, { unit: "quarter" });
|
|
80
|
-
// Q1, Q2, Q3, Q4
|
|
81
|
-
case "QQQ":
|
|
82
|
-
return e.quarter(t, {
|
|
83
|
-
width: "abbreviated",
|
|
84
|
-
context: "formatting"
|
|
85
|
-
});
|
|
86
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
87
|
-
case "QQQQQ":
|
|
88
|
-
return e.quarter(t, {
|
|
89
|
-
width: "narrow",
|
|
90
|
-
context: "formatting"
|
|
91
|
-
});
|
|
92
|
-
default:
|
|
93
|
-
return e.quarter(t, {
|
|
94
|
-
width: "wide",
|
|
95
|
-
context: "formatting"
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
// Stand-alone quarter
|
|
100
|
-
q: function(n, r, e) {
|
|
101
|
-
const t = Math.ceil((n.getMonth() + 1) / 3);
|
|
102
|
-
switch (r) {
|
|
103
|
-
// 1, 2, 3, 4
|
|
104
|
-
case "q":
|
|
105
|
-
return String(t);
|
|
106
|
-
// 01, 02, 03, 04
|
|
107
|
-
case "qq":
|
|
108
|
-
return i(t, 2);
|
|
109
|
-
// 1st, 2nd, 3rd, 4th
|
|
110
|
-
case "qo":
|
|
111
|
-
return e.ordinalNumber(t, { unit: "quarter" });
|
|
112
|
-
// Q1, Q2, Q3, Q4
|
|
113
|
-
case "qqq":
|
|
114
|
-
return e.quarter(t, {
|
|
115
|
-
width: "abbreviated",
|
|
116
|
-
context: "standalone"
|
|
117
|
-
});
|
|
118
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
119
|
-
case "qqqqq":
|
|
120
|
-
return e.quarter(t, {
|
|
121
|
-
width: "narrow",
|
|
122
|
-
context: "standalone"
|
|
123
|
-
});
|
|
124
|
-
default:
|
|
125
|
-
return e.quarter(t, {
|
|
126
|
-
width: "wide",
|
|
127
|
-
context: "standalone"
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
// Month
|
|
132
|
-
M: function(n, r, e) {
|
|
133
|
-
const t = n.getMonth();
|
|
134
|
-
switch (r) {
|
|
135
|
-
case "M":
|
|
136
|
-
case "MM":
|
|
137
|
-
return u.M(n, r);
|
|
138
|
-
// 1st, 2nd, ..., 12th
|
|
139
|
-
case "Mo":
|
|
140
|
-
return e.ordinalNumber(t + 1, { unit: "month" });
|
|
141
|
-
// Jan, Feb, ..., Dec
|
|
142
|
-
case "MMM":
|
|
143
|
-
return e.month(t, {
|
|
144
|
-
width: "abbreviated",
|
|
145
|
-
context: "formatting"
|
|
146
|
-
});
|
|
147
|
-
// J, F, ..., D
|
|
148
|
-
case "MMMMM":
|
|
149
|
-
return e.month(t, {
|
|
150
|
-
width: "narrow",
|
|
151
|
-
context: "formatting"
|
|
152
|
-
});
|
|
153
|
-
default:
|
|
154
|
-
return e.month(t, { width: "wide", context: "formatting" });
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
|
-
// Stand-alone month
|
|
158
|
-
L: function(n, r, e) {
|
|
159
|
-
const t = n.getMonth();
|
|
160
|
-
switch (r) {
|
|
161
|
-
// 1, 2, ..., 12
|
|
162
|
-
case "L":
|
|
163
|
-
return String(t + 1);
|
|
164
|
-
// 01, 02, ..., 12
|
|
165
|
-
case "LL":
|
|
166
|
-
return i(t + 1, 2);
|
|
167
|
-
// 1st, 2nd, ..., 12th
|
|
168
|
-
case "Lo":
|
|
169
|
-
return e.ordinalNumber(t + 1, { unit: "month" });
|
|
170
|
-
// Jan, Feb, ..., Dec
|
|
171
|
-
case "LLL":
|
|
172
|
-
return e.month(t, {
|
|
173
|
-
width: "abbreviated",
|
|
174
|
-
context: "standalone"
|
|
175
|
-
});
|
|
176
|
-
// J, F, ..., D
|
|
177
|
-
case "LLLLL":
|
|
178
|
-
return e.month(t, {
|
|
179
|
-
width: "narrow",
|
|
180
|
-
context: "standalone"
|
|
181
|
-
});
|
|
182
|
-
default:
|
|
183
|
-
return e.month(t, { width: "wide", context: "standalone" });
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
// Local week of year
|
|
187
|
-
w: function(n, r, e, t) {
|
|
188
|
-
const a = b(n, t);
|
|
189
|
-
return r === "wo" ? e.ordinalNumber(a, { unit: "week" }) : i(a, r.length);
|
|
190
|
-
},
|
|
191
|
-
// ISO week of year
|
|
192
|
-
I: function(n, r, e) {
|
|
193
|
-
const t = g(n);
|
|
194
|
-
return r === "Io" ? e.ordinalNumber(t, { unit: "week" }) : i(t, r.length);
|
|
195
|
-
},
|
|
196
|
-
// Day of the month
|
|
197
|
-
d: function(n, r, e) {
|
|
198
|
-
return r === "do" ? e.ordinalNumber(n.getDate(), { unit: "date" }) : u.d(n, r);
|
|
199
|
-
},
|
|
200
|
-
// Day of year
|
|
201
|
-
D: function(n, r, e) {
|
|
202
|
-
const t = m(n);
|
|
203
|
-
return r === "Do" ? e.ordinalNumber(t, { unit: "dayOfYear" }) : i(t, r.length);
|
|
204
|
-
},
|
|
205
|
-
// Day of week
|
|
206
|
-
E: function(n, r, e) {
|
|
207
|
-
const t = n.getDay();
|
|
208
|
-
switch (r) {
|
|
209
|
-
// Tue
|
|
210
|
-
case "E":
|
|
211
|
-
case "EE":
|
|
212
|
-
case "EEE":
|
|
213
|
-
return e.day(t, {
|
|
214
|
-
width: "abbreviated",
|
|
215
|
-
context: "formatting"
|
|
216
|
-
});
|
|
217
|
-
// T
|
|
218
|
-
case "EEEEE":
|
|
219
|
-
return e.day(t, {
|
|
220
|
-
width: "narrow",
|
|
221
|
-
context: "formatting"
|
|
222
|
-
});
|
|
223
|
-
// Tu
|
|
224
|
-
case "EEEEEE":
|
|
225
|
-
return e.day(t, {
|
|
226
|
-
width: "short",
|
|
227
|
-
context: "formatting"
|
|
228
|
-
});
|
|
229
|
-
default:
|
|
230
|
-
return e.day(t, {
|
|
231
|
-
width: "wide",
|
|
232
|
-
context: "formatting"
|
|
233
|
-
});
|
|
234
|
-
}
|
|
235
|
-
},
|
|
236
|
-
// Local day of week
|
|
237
|
-
e: function(n, r, e, t) {
|
|
238
|
-
const a = n.getDay(), o = (a - t.weekStartsOn + 8) % 7 || 7;
|
|
239
|
-
switch (r) {
|
|
240
|
-
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
241
|
-
case "e":
|
|
242
|
-
return String(o);
|
|
243
|
-
// Padded numerical value
|
|
244
|
-
case "ee":
|
|
245
|
-
return i(o, 2);
|
|
246
|
-
// 1st, 2nd, ..., 7th
|
|
247
|
-
case "eo":
|
|
248
|
-
return e.ordinalNumber(o, { unit: "day" });
|
|
249
|
-
case "eee":
|
|
250
|
-
return e.day(a, {
|
|
251
|
-
width: "abbreviated",
|
|
252
|
-
context: "formatting"
|
|
253
|
-
});
|
|
254
|
-
// T
|
|
255
|
-
case "eeeee":
|
|
256
|
-
return e.day(a, {
|
|
257
|
-
width: "narrow",
|
|
258
|
-
context: "formatting"
|
|
259
|
-
});
|
|
260
|
-
// Tu
|
|
261
|
-
case "eeeeee":
|
|
262
|
-
return e.day(a, {
|
|
263
|
-
width: "short",
|
|
264
|
-
context: "formatting"
|
|
265
|
-
});
|
|
266
|
-
default:
|
|
267
|
-
return e.day(a, {
|
|
268
|
-
width: "wide",
|
|
269
|
-
context: "formatting"
|
|
270
|
-
});
|
|
271
|
-
}
|
|
272
|
-
},
|
|
273
|
-
// Stand-alone local day of week
|
|
274
|
-
c: function(n, r, e, t) {
|
|
275
|
-
const a = n.getDay(), o = (a - t.weekStartsOn + 8) % 7 || 7;
|
|
276
|
-
switch (r) {
|
|
277
|
-
// Numerical value (same as in `e`)
|
|
278
|
-
case "c":
|
|
279
|
-
return String(o);
|
|
280
|
-
// Padded numerical value
|
|
281
|
-
case "cc":
|
|
282
|
-
return i(o, r.length);
|
|
283
|
-
// 1st, 2nd, ..., 7th
|
|
284
|
-
case "co":
|
|
285
|
-
return e.ordinalNumber(o, { unit: "day" });
|
|
286
|
-
case "ccc":
|
|
287
|
-
return e.day(a, {
|
|
288
|
-
width: "abbreviated",
|
|
289
|
-
context: "standalone"
|
|
290
|
-
});
|
|
291
|
-
// T
|
|
292
|
-
case "ccccc":
|
|
293
|
-
return e.day(a, {
|
|
294
|
-
width: "narrow",
|
|
295
|
-
context: "standalone"
|
|
296
|
-
});
|
|
297
|
-
// Tu
|
|
298
|
-
case "cccccc":
|
|
299
|
-
return e.day(a, {
|
|
300
|
-
width: "short",
|
|
301
|
-
context: "standalone"
|
|
302
|
-
});
|
|
303
|
-
default:
|
|
304
|
-
return e.day(a, {
|
|
305
|
-
width: "wide",
|
|
306
|
-
context: "standalone"
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
// ISO day of week
|
|
311
|
-
i: function(n, r, e) {
|
|
312
|
-
const t = n.getDay(), a = t === 0 ? 7 : t;
|
|
313
|
-
switch (r) {
|
|
314
|
-
// 2
|
|
315
|
-
case "i":
|
|
316
|
-
return String(a);
|
|
317
|
-
// 02
|
|
318
|
-
case "ii":
|
|
319
|
-
return i(a, r.length);
|
|
320
|
-
// 2nd
|
|
321
|
-
case "io":
|
|
322
|
-
return e.ordinalNumber(a, { unit: "day" });
|
|
323
|
-
// Tue
|
|
324
|
-
case "iii":
|
|
325
|
-
return e.day(t, {
|
|
326
|
-
width: "abbreviated",
|
|
327
|
-
context: "formatting"
|
|
328
|
-
});
|
|
329
|
-
// T
|
|
330
|
-
case "iiiii":
|
|
331
|
-
return e.day(t, {
|
|
332
|
-
width: "narrow",
|
|
333
|
-
context: "formatting"
|
|
334
|
-
});
|
|
335
|
-
// Tu
|
|
336
|
-
case "iiiiii":
|
|
337
|
-
return e.day(t, {
|
|
338
|
-
width: "short",
|
|
339
|
-
context: "formatting"
|
|
340
|
-
});
|
|
341
|
-
default:
|
|
342
|
-
return e.day(t, {
|
|
343
|
-
width: "wide",
|
|
344
|
-
context: "formatting"
|
|
345
|
-
});
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
// AM or PM
|
|
349
|
-
a: function(n, r, e) {
|
|
350
|
-
const a = n.getHours() / 12 >= 1 ? "pm" : "am";
|
|
351
|
-
switch (r) {
|
|
352
|
-
case "a":
|
|
353
|
-
case "aa":
|
|
354
|
-
return e.dayPeriod(a, {
|
|
355
|
-
width: "abbreviated",
|
|
356
|
-
context: "formatting"
|
|
357
|
-
});
|
|
358
|
-
case "aaa":
|
|
359
|
-
return e.dayPeriod(a, {
|
|
360
|
-
width: "abbreviated",
|
|
361
|
-
context: "formatting"
|
|
362
|
-
}).toLowerCase();
|
|
363
|
-
case "aaaaa":
|
|
364
|
-
return e.dayPeriod(a, {
|
|
365
|
-
width: "narrow",
|
|
366
|
-
context: "formatting"
|
|
367
|
-
});
|
|
368
|
-
default:
|
|
369
|
-
return e.dayPeriod(a, {
|
|
370
|
-
width: "wide",
|
|
371
|
-
context: "formatting"
|
|
372
|
-
});
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
// AM, PM, midnight, noon
|
|
376
|
-
b: function(n, r, e) {
|
|
377
|
-
const t = n.getHours();
|
|
378
|
-
let a;
|
|
379
|
-
switch (t === 12 ? a = s.noon : t === 0 ? a = s.midnight : a = t / 12 >= 1 ? "pm" : "am", r) {
|
|
380
|
-
case "b":
|
|
381
|
-
case "bb":
|
|
382
|
-
return e.dayPeriod(a, {
|
|
383
|
-
width: "abbreviated",
|
|
384
|
-
context: "formatting"
|
|
385
|
-
});
|
|
386
|
-
case "bbb":
|
|
387
|
-
return e.dayPeriod(a, {
|
|
388
|
-
width: "abbreviated",
|
|
389
|
-
context: "formatting"
|
|
390
|
-
}).toLowerCase();
|
|
391
|
-
case "bbbbb":
|
|
392
|
-
return e.dayPeriod(a, {
|
|
393
|
-
width: "narrow",
|
|
394
|
-
context: "formatting"
|
|
395
|
-
});
|
|
396
|
-
default:
|
|
397
|
-
return e.dayPeriod(a, {
|
|
398
|
-
width: "wide",
|
|
399
|
-
context: "formatting"
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
// in the morning, in the afternoon, in the evening, at night
|
|
404
|
-
B: function(n, r, e) {
|
|
405
|
-
const t = n.getHours();
|
|
406
|
-
let a;
|
|
407
|
-
switch (t >= 17 ? a = s.evening : t >= 12 ? a = s.afternoon : t >= 4 ? a = s.morning : a = s.night, r) {
|
|
408
|
-
case "B":
|
|
409
|
-
case "BB":
|
|
410
|
-
case "BBB":
|
|
411
|
-
return e.dayPeriod(a, {
|
|
412
|
-
width: "abbreviated",
|
|
413
|
-
context: "formatting"
|
|
414
|
-
});
|
|
415
|
-
case "BBBBB":
|
|
416
|
-
return e.dayPeriod(a, {
|
|
417
|
-
width: "narrow",
|
|
418
|
-
context: "formatting"
|
|
419
|
-
});
|
|
420
|
-
default:
|
|
421
|
-
return e.dayPeriod(a, {
|
|
422
|
-
width: "wide",
|
|
423
|
-
context: "formatting"
|
|
424
|
-
});
|
|
425
|
-
}
|
|
426
|
-
},
|
|
427
|
-
// Hour [1-12]
|
|
428
|
-
h: function(n, r, e) {
|
|
429
|
-
if (r === "ho") {
|
|
430
|
-
let t = n.getHours() % 12;
|
|
431
|
-
return t === 0 && (t = 12), e.ordinalNumber(t, { unit: "hour" });
|
|
432
|
-
}
|
|
433
|
-
return u.h(n, r);
|
|
434
|
-
},
|
|
435
|
-
// Hour [0-23]
|
|
436
|
-
H: function(n, r, e) {
|
|
437
|
-
return r === "Ho" ? e.ordinalNumber(n.getHours(), { unit: "hour" }) : u.H(n, r);
|
|
438
|
-
},
|
|
439
|
-
// Hour [0-11]
|
|
440
|
-
K: function(n, r, e) {
|
|
441
|
-
const t = n.getHours() % 12;
|
|
442
|
-
return r === "Ko" ? e.ordinalNumber(t, { unit: "hour" }) : i(t, r.length);
|
|
443
|
-
},
|
|
444
|
-
// Hour [1-24]
|
|
445
|
-
k: function(n, r, e) {
|
|
446
|
-
let t = n.getHours();
|
|
447
|
-
return t === 0 && (t = 24), r === "ko" ? e.ordinalNumber(t, { unit: "hour" }) : i(t, r.length);
|
|
448
|
-
},
|
|
449
|
-
// Minute
|
|
450
|
-
m: function(n, r, e) {
|
|
451
|
-
return r === "mo" ? e.ordinalNumber(n.getMinutes(), { unit: "minute" }) : u.m(n, r);
|
|
452
|
-
},
|
|
453
|
-
// Second
|
|
454
|
-
s: function(n, r, e) {
|
|
455
|
-
return r === "so" ? e.ordinalNumber(n.getSeconds(), { unit: "second" }) : u.s(n, r);
|
|
456
|
-
},
|
|
457
|
-
// Fraction of second
|
|
458
|
-
S: function(n, r) {
|
|
459
|
-
return u.S(n, r);
|
|
460
|
-
},
|
|
461
|
-
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
462
|
-
X: function(n, r, e) {
|
|
463
|
-
const t = n.getTimezoneOffset();
|
|
464
|
-
if (t === 0)
|
|
465
|
-
return "Z";
|
|
466
|
-
switch (r) {
|
|
467
|
-
// Hours and optional minutes
|
|
468
|
-
case "X":
|
|
469
|
-
return f(t);
|
|
470
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
471
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
472
|
-
// so this token always has the same output as `XX`
|
|
473
|
-
case "XXXX":
|
|
474
|
-
case "XX":
|
|
475
|
-
return c(t);
|
|
476
|
-
// Hours and minutes with `:` delimiter
|
|
477
|
-
default:
|
|
478
|
-
return c(t, ":");
|
|
479
|
-
}
|
|
480
|
-
},
|
|
481
|
-
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
482
|
-
x: function(n, r, e) {
|
|
483
|
-
const t = n.getTimezoneOffset();
|
|
484
|
-
switch (r) {
|
|
485
|
-
// Hours and optional minutes
|
|
486
|
-
case "x":
|
|
487
|
-
return f(t);
|
|
488
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
489
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
490
|
-
// so this token always has the same output as `xx`
|
|
491
|
-
case "xxxx":
|
|
492
|
-
case "xx":
|
|
493
|
-
return c(t);
|
|
494
|
-
// Hours and minutes with `:` delimiter
|
|
495
|
-
default:
|
|
496
|
-
return c(t, ":");
|
|
497
|
-
}
|
|
498
|
-
},
|
|
499
|
-
// Timezone (GMT)
|
|
500
|
-
O: function(n, r, e) {
|
|
501
|
-
const t = n.getTimezoneOffset();
|
|
502
|
-
switch (r) {
|
|
503
|
-
// Short
|
|
504
|
-
case "O":
|
|
505
|
-
case "OO":
|
|
506
|
-
case "OOO":
|
|
507
|
-
return "GMT" + d(t, ":");
|
|
508
|
-
default:
|
|
509
|
-
return "GMT" + c(t, ":");
|
|
510
|
-
}
|
|
511
|
-
},
|
|
512
|
-
// Timezone (specific non-location)
|
|
513
|
-
z: function(n, r, e) {
|
|
514
|
-
const t = n.getTimezoneOffset();
|
|
515
|
-
switch (r) {
|
|
516
|
-
// Short
|
|
517
|
-
case "z":
|
|
518
|
-
case "zz":
|
|
519
|
-
case "zzz":
|
|
520
|
-
return "GMT" + d(t, ":");
|
|
521
|
-
default:
|
|
522
|
-
return "GMT" + c(t, ":");
|
|
523
|
-
}
|
|
524
|
-
},
|
|
525
|
-
// Seconds timestamp
|
|
526
|
-
t: function(n, r, e) {
|
|
527
|
-
const t = Math.trunc(+n / 1e3);
|
|
528
|
-
return i(t, r.length);
|
|
529
|
-
},
|
|
530
|
-
// Milliseconds timestamp
|
|
531
|
-
T: function(n, r, e) {
|
|
532
|
-
return i(+n, r.length);
|
|
533
|
-
}
|
|
534
|
-
};
|
|
535
|
-
function d(n, r = "") {
|
|
536
|
-
const e = n > 0 ? "-" : "+", t = Math.abs(n), a = Math.trunc(t / 60), o = t % 60;
|
|
537
|
-
return o === 0 ? e + String(a) : e + String(a) + r + i(o, 2);
|
|
538
|
-
}
|
|
539
|
-
function f(n, r) {
|
|
540
|
-
return n % 60 === 0 ? (n > 0 ? "-" : "+") + i(Math.abs(n) / 60, 2) : c(n, r);
|
|
541
|
-
}
|
|
542
|
-
function c(n, r = "") {
|
|
543
|
-
const e = n > 0 ? "-" : "+", t = Math.abs(n), a = i(Math.trunc(t / 60), 2), o = i(t % 60, 2);
|
|
544
|
-
return e + a + r + o;
|
|
545
|
-
}
|
|
546
|
-
export {
|
|
547
|
-
L as formatters
|
|
548
|
-
};
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { addLeadingZeros as n } from "../addLeadingZeros.js";
|
|
2
|
-
const g = {
|
|
3
|
-
// Year
|
|
4
|
-
y(e, t) {
|
|
5
|
-
const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
|
|
6
|
-
return n(t === "yy" ? a % 100 : a, t.length);
|
|
7
|
-
},
|
|
8
|
-
// Month
|
|
9
|
-
M(e, t) {
|
|
10
|
-
const r = e.getMonth();
|
|
11
|
-
return t === "M" ? String(r + 1) : n(r + 1, 2);
|
|
12
|
-
},
|
|
13
|
-
// Day of the month
|
|
14
|
-
d(e, t) {
|
|
15
|
-
return n(e.getDate(), t.length);
|
|
16
|
-
},
|
|
17
|
-
// AM or PM
|
|
18
|
-
a(e, t) {
|
|
19
|
-
const r = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
20
|
-
switch (t) {
|
|
21
|
-
case "a":
|
|
22
|
-
case "aa":
|
|
23
|
-
return r.toUpperCase();
|
|
24
|
-
case "aaa":
|
|
25
|
-
return r;
|
|
26
|
-
case "aaaaa":
|
|
27
|
-
return r[0];
|
|
28
|
-
default:
|
|
29
|
-
return r === "am" ? "a.m." : "p.m.";
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
// Hour [1-12]
|
|
33
|
-
h(e, t) {
|
|
34
|
-
return n(e.getHours() % 12 || 12, t.length);
|
|
35
|
-
},
|
|
36
|
-
// Hour [0-23]
|
|
37
|
-
H(e, t) {
|
|
38
|
-
return n(e.getHours(), t.length);
|
|
39
|
-
},
|
|
40
|
-
// Minute
|
|
41
|
-
m(e, t) {
|
|
42
|
-
return n(e.getMinutes(), t.length);
|
|
43
|
-
},
|
|
44
|
-
// Second
|
|
45
|
-
s(e, t) {
|
|
46
|
-
return n(e.getSeconds(), t.length);
|
|
47
|
-
},
|
|
48
|
-
// Fraction of second
|
|
49
|
-
S(e, t) {
|
|
50
|
-
const r = t.length, a = e.getMilliseconds(), s = Math.trunc(
|
|
51
|
-
a * Math.pow(10, r - 3)
|
|
52
|
-
);
|
|
53
|
-
return n(s, t.length);
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
export {
|
|
57
|
-
g as lightFormatters
|
|
58
|
-
};
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
const s = (t, e) => {
|
|
2
|
-
switch (t) {
|
|
3
|
-
case "P":
|
|
4
|
-
return e.date({ width: "short" });
|
|
5
|
-
case "PP":
|
|
6
|
-
return e.date({ width: "medium" });
|
|
7
|
-
case "PPP":
|
|
8
|
-
return e.date({ width: "long" });
|
|
9
|
-
default:
|
|
10
|
-
return e.date({ width: "full" });
|
|
11
|
-
}
|
|
12
|
-
}, c = (t, e) => {
|
|
13
|
-
switch (t) {
|
|
14
|
-
case "p":
|
|
15
|
-
return e.time({ width: "short" });
|
|
16
|
-
case "pp":
|
|
17
|
-
return e.time({ width: "medium" });
|
|
18
|
-
case "ppp":
|
|
19
|
-
return e.time({ width: "long" });
|
|
20
|
-
default:
|
|
21
|
-
return e.time({ width: "full" });
|
|
22
|
-
}
|
|
23
|
-
}, P = (t, e) => {
|
|
24
|
-
const d = t.match(/(P+)(p+)?/) || [], a = d[1], r = d[2];
|
|
25
|
-
if (!r)
|
|
26
|
-
return s(t, e);
|
|
27
|
-
let i;
|
|
28
|
-
switch (a) {
|
|
29
|
-
case "P":
|
|
30
|
-
i = e.dateTime({ width: "short" });
|
|
31
|
-
break;
|
|
32
|
-
case "PP":
|
|
33
|
-
i = e.dateTime({ width: "medium" });
|
|
34
|
-
break;
|
|
35
|
-
case "PPP":
|
|
36
|
-
i = e.dateTime({ width: "long" });
|
|
37
|
-
break;
|
|
38
|
-
default:
|
|
39
|
-
i = e.dateTime({ width: "full" });
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
return i.replace("{{date}}", s(a, e)).replace("{{time}}", c(r, e));
|
|
43
|
-
}, h = {
|
|
44
|
-
p: c,
|
|
45
|
-
P
|
|
46
|
-
};
|
|
47
|
-
export {
|
|
48
|
-
h as longFormatters
|
|
49
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { toDate as o } from "../toDate.js";
|
|
2
|
-
function l(t) {
|
|
3
|
-
const e = o(t), n = new Date(
|
|
4
|
-
Date.UTC(
|
|
5
|
-
e.getFullYear(),
|
|
6
|
-
e.getMonth(),
|
|
7
|
-
e.getDate(),
|
|
8
|
-
e.getHours(),
|
|
9
|
-
e.getMinutes(),
|
|
10
|
-
e.getSeconds(),
|
|
11
|
-
e.getMilliseconds()
|
|
12
|
-
)
|
|
13
|
-
);
|
|
14
|
-
return n.setUTCFullYear(e.getFullYear()), +t - +n;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
l as getTimezoneOffsetInMilliseconds
|
|
18
|
-
};
|