@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,54 +0,0 @@
|
|
|
1
|
-
import { Button as e } from "./Button.js";
|
|
2
|
-
import { CaptionLabel as p } from "./CaptionLabel.js";
|
|
3
|
-
import { Chevron as x } from "./Chevron.js";
|
|
4
|
-
import { Day as n } from "./Day.js";
|
|
5
|
-
import { DayButton as d } from "./DayButton.js";
|
|
6
|
-
import { Dropdown as u } from "./Dropdown.js";
|
|
7
|
-
import { DropdownNav as k } from "./DropdownNav.js";
|
|
8
|
-
import { Footer as D } from "./Footer.js";
|
|
9
|
-
import { Month as i } from "./Month.js";
|
|
10
|
-
import { MonthCaption as v } from "./MonthCaption.js";
|
|
11
|
-
import { MonthGrid as y } from "./MonthGrid.js";
|
|
12
|
-
import { Months as b } from "./Months.js";
|
|
13
|
-
import { MonthsDropdown as l } from "./MonthsDropdown.js";
|
|
14
|
-
import { Nav as F } from "./Nav.js";
|
|
15
|
-
import { NextMonthButton as H } from "./NextMonthButton.js";
|
|
16
|
-
import { Option as O } from "./Option.js";
|
|
17
|
-
import { PreviousMonthButton as R } from "./PreviousMonthButton.js";
|
|
18
|
-
import { Root as Y } from "./Root.js";
|
|
19
|
-
import { Select as j } from "./Select.js";
|
|
20
|
-
import { Week as z } from "./Week.js";
|
|
21
|
-
import { Weekday as E } from "./Weekday.js";
|
|
22
|
-
import { Weekdays as J } from "./Weekdays.js";
|
|
23
|
-
import { WeekNumber as Q } from "./WeekNumber.js";
|
|
24
|
-
import { WeekNumberHeader as U } from "./WeekNumberHeader.js";
|
|
25
|
-
import { Weeks as X } from "./Weeks.js";
|
|
26
|
-
import { YearsDropdown as _ } from "./YearsDropdown.js";
|
|
27
|
-
export {
|
|
28
|
-
e as Button,
|
|
29
|
-
p as CaptionLabel,
|
|
30
|
-
x as Chevron,
|
|
31
|
-
n as Day,
|
|
32
|
-
d as DayButton,
|
|
33
|
-
u as Dropdown,
|
|
34
|
-
k as DropdownNav,
|
|
35
|
-
D as Footer,
|
|
36
|
-
i as Month,
|
|
37
|
-
v as MonthCaption,
|
|
38
|
-
y as MonthGrid,
|
|
39
|
-
b as Months,
|
|
40
|
-
l as MonthsDropdown,
|
|
41
|
-
F as Nav,
|
|
42
|
-
H as NextMonthButton,
|
|
43
|
-
O as Option,
|
|
44
|
-
R as PreviousMonthButton,
|
|
45
|
-
Y as Root,
|
|
46
|
-
j as Select,
|
|
47
|
-
z as Week,
|
|
48
|
-
Q as WeekNumber,
|
|
49
|
-
U as WeekNumberHeader,
|
|
50
|
-
E as Weekday,
|
|
51
|
-
J as Weekdays,
|
|
52
|
-
X as Weeks,
|
|
53
|
-
_ as YearsDropdown
|
|
54
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { formatCaption as t, formatMonthCaption as e } from "./formatCaption.js";
|
|
2
|
-
import { formatDay as a } from "./formatDay.js";
|
|
3
|
-
import { formatMonthDropdown as p } from "./formatMonthDropdown.js";
|
|
4
|
-
import { formatWeekdayName as x } from "./formatWeekdayName.js";
|
|
5
|
-
import { formatWeekNumber as i } from "./formatWeekNumber.js";
|
|
6
|
-
import { formatWeekNumberHeader as C } from "./formatWeekNumberHeader.js";
|
|
7
|
-
import { formatYearCaption as N, formatYearDropdown as W } from "./formatYearDropdown.js";
|
|
8
|
-
export {
|
|
9
|
-
t as formatCaption,
|
|
10
|
-
a as formatDay,
|
|
11
|
-
e as formatMonthCaption,
|
|
12
|
-
p as formatMonthDropdown,
|
|
13
|
-
i as formatWeekNumber,
|
|
14
|
-
C as formatWeekNumberHeader,
|
|
15
|
-
x as formatWeekdayName,
|
|
16
|
-
N as formatYearCaption,
|
|
17
|
-
W as formatYearDropdown
|
|
18
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { DayFlag as s } from "../UI.js";
|
|
2
|
-
var d;
|
|
3
|
-
(function(e) {
|
|
4
|
-
e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
|
|
5
|
-
})(d || (d = {}));
|
|
6
|
-
function l(e) {
|
|
7
|
-
return !e[s.disabled] && !e[s.hidden] && !e[s.outside];
|
|
8
|
-
}
|
|
9
|
-
function F(e, u, t, n) {
|
|
10
|
-
let f, c = -1;
|
|
11
|
-
for (const o of e) {
|
|
12
|
-
const a = u(o);
|
|
13
|
-
l(a) && (a[s.focused] && c < d.FocusedModifier ? (f = o, c = d.FocusedModifier) : n?.isEqualTo(o) && c < d.LastFocused ? (f = o, c = d.LastFocused) : t(o.date) && c < d.Selected ? (f = o, c = d.Selected) : a[s.today] && c < d.Today && (f = o, c = d.Today));
|
|
14
|
-
}
|
|
15
|
-
return f || (f = e.find((o) => l(u(o)))), f;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
F as calculateFocusTarget
|
|
19
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { DayFlag as e } from "../UI.js";
|
|
2
|
-
import { dateMatchModifiers as u } from "../utils/dateMatchModifiers.js";
|
|
3
|
-
function V(b, S, h, M, a) {
|
|
4
|
-
const { disabled: m, hidden: p, modifiers: r, showOutsideDays: y, broadcastCalendar: B, today: g = a.today() } = S, { isSameDay: v, isSameMonth: A, startOfMonth: E, isBefore: F, endOfMonth: j, isAfter: k } = a, O = h && E(h), D = M && j(M), i = {
|
|
5
|
-
[e.focused]: [],
|
|
6
|
-
[e.outside]: [],
|
|
7
|
-
[e.disabled]: [],
|
|
8
|
-
[e.hidden]: [],
|
|
9
|
-
[e.today]: []
|
|
10
|
-
}, d = {};
|
|
11
|
-
for (const s of b) {
|
|
12
|
-
const { date: o, displayMonth: n } = s, t = !!(n && !A(o, n)), f = !!(O && F(o, O)), l = !!(D && k(o, D)), w = !!(m && u(o, m, a)), x = !!(p && u(o, p, a)) || f || l || // Broadcast calendar will show outside days as default
|
|
13
|
-
!B && !y && t || B && y === !1 && t, C = v(o, g);
|
|
14
|
-
t && i.outside.push(s), w && i.disabled.push(s), x && i.hidden.push(s), C && i.today.push(s), r && Object.keys(r).forEach((c) => {
|
|
15
|
-
const N = r?.[c];
|
|
16
|
-
N && u(o, N, a) && (d[c] ? d[c].push(s) : d[c] = [s]);
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
return (s) => {
|
|
20
|
-
const o = {
|
|
21
|
-
[e.focused]: !1,
|
|
22
|
-
[e.disabled]: !1,
|
|
23
|
-
[e.hidden]: !1,
|
|
24
|
-
[e.outside]: !1,
|
|
25
|
-
[e.today]: !1
|
|
26
|
-
}, n = {};
|
|
27
|
-
for (const t in i) {
|
|
28
|
-
const f = i[t];
|
|
29
|
-
o[t] = f.some((l) => l === s);
|
|
30
|
-
}
|
|
31
|
-
for (const t in d)
|
|
32
|
-
n[t] = d[t].some((f) => f === s);
|
|
33
|
-
return {
|
|
34
|
-
...o,
|
|
35
|
-
// custom modifiers should override all the previous ones
|
|
36
|
-
...n
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
V as createGetModifiers
|
|
42
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { getBroadcastWeeksInMonth as n } from "./getBroadcastWeeksInMonth.js";
|
|
2
|
-
import { startOfBroadcastWeek as s } from "./startOfBroadcastWeek.js";
|
|
3
|
-
function d(e, t) {
|
|
4
|
-
const o = s(e, t), r = n(e, t);
|
|
5
|
-
return t.addDays(o, r * 7 - 1);
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
d as endOfBroadcastWeek
|
|
9
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { DayFlag as e, SelectionState as n, UI as d } from "../UI.js";
|
|
2
|
-
function p(o, i, f = {}) {
|
|
3
|
-
return Object.entries(o).filter(([, t]) => t === !0).reduce((t, [r]) => (f[r] ? t.push(f[r]) : i[e[r]] ? t.push(i[e[r]]) : i[n[r]] && t.push(i[n[r]]), t), [i[d.Day]]);
|
|
4
|
-
}
|
|
5
|
-
export {
|
|
6
|
-
p as getClassNamesForModifiers
|
|
7
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
function n(e) {
|
|
2
|
-
const t = {
|
|
3
|
-
"data-mode": e.mode ?? void 0,
|
|
4
|
-
"data-required": "required" in e ? e.required : void 0,
|
|
5
|
-
"data-multiple-months": e.numberOfMonths && e.numberOfMonths > 1 || void 0,
|
|
6
|
-
"data-week-numbers": e.showWeekNumber || void 0,
|
|
7
|
-
"data-broadcast-calendar": e.broadcastCalendar || void 0,
|
|
8
|
-
"data-nav-layout": e.navLayout || void 0
|
|
9
|
-
};
|
|
10
|
-
return Object.entries(e).forEach(([a, d]) => {
|
|
11
|
-
a.startsWith("data-") && (t[a] = d);
|
|
12
|
-
}), t;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
n as getDataAttributes
|
|
16
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
function j(r, n, I, W) {
|
|
2
|
-
const s = r[0], o = r[r.length - 1], { ISOWeek: c, fixedWeeks: u, broadcastCalendar: a } = I ?? {}, { addDays: i, differenceInCalendarDays: M, differenceInCalendarMonths: C, endOfBroadcastWeek: O, endOfISOWeek: k, endOfMonth: h, endOfWeek: l, isAfter: E, startOfBroadcastWeek: F, startOfISOWeek: S, startOfWeek: p } = W, g = a ? F(s, W) : c ? S(s) : p(s), D = a ? O(o) : c ? k(h(o)) : l(h(o)), f = n && (a ? O(n) : c ? k(n) : l(n)), x = f && E(D, f) ? f : D, A = M(x, g), B = C(o, s) + 1, e = [];
|
|
3
|
-
for (let t = 0; t <= A; t++) {
|
|
4
|
-
const d = i(g, t);
|
|
5
|
-
e.push(d);
|
|
6
|
-
}
|
|
7
|
-
const y = (a ? 35 : 42) * B;
|
|
8
|
-
if (u && e.length < y) {
|
|
9
|
-
const t = y - e.length;
|
|
10
|
-
for (let d = 0; d < t; d++) {
|
|
11
|
-
const T = i(e[e.length - 1], 1);
|
|
12
|
-
e.push(T);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
return e;
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
j as getDates
|
|
19
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { UI as t, DayFlag as e, SelectionState as r, Animation as s } from "../UI.js";
|
|
2
|
-
function i() {
|
|
3
|
-
const o = {};
|
|
4
|
-
for (const n in t)
|
|
5
|
-
o[t[n]] = `rdp-${t[n]}`;
|
|
6
|
-
for (const n in e)
|
|
7
|
-
o[e[n]] = `rdp-${e[n]}`;
|
|
8
|
-
for (const n in r)
|
|
9
|
-
o[r[n]] = `rdp-${r[n]}`;
|
|
10
|
-
for (const n in s)
|
|
11
|
-
o[s[n]] = `rdp-${s[n]}`;
|
|
12
|
-
return o;
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
i as getDefaultClassNames
|
|
16
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
function g(d, s, k, t, f, O, n) {
|
|
2
|
-
const { ISOWeek: o, broadcastCalendar: r } = O, { addDays: W, addMonths: c, addWeeks: l, addYears: u, endOfBroadcastWeek: b, endOfISOWeek: m, endOfWeek: y, max: F, min: I, startOfBroadcastWeek: h, startOfISOWeek: x, startOfWeek: B } = n;
|
|
3
|
-
let a = {
|
|
4
|
-
day: W,
|
|
5
|
-
week: l,
|
|
6
|
-
month: c,
|
|
7
|
-
year: u,
|
|
8
|
-
startOfWeek: (e) => r ? h(e, n) : o ? x(e) : B(e),
|
|
9
|
-
endOfWeek: (e) => r ? b(e) : o ? m(e) : y(e)
|
|
10
|
-
}[d](k, s === "after" ? 1 : -1);
|
|
11
|
-
return s === "before" && t ? a = F([t, a]) : s === "after" && f && (a = I([f, a])), a;
|
|
12
|
-
}
|
|
13
|
-
export {
|
|
14
|
-
g as getFocusableDate
|
|
15
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as a from "../formatters/index.js";
|
|
2
|
-
function f(n) {
|
|
3
|
-
return n?.formatMonthCaption && !n.formatCaption && (n.formatCaption = n.formatMonthCaption), n?.formatYearCaption && !n.formatYearDropdown && (n.formatYearDropdown = n.formatYearCaption), {
|
|
4
|
-
...a,
|
|
5
|
-
...n
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
f as getFormatters
|
|
10
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
function u(i, o, n, e) {
|
|
2
|
-
const { month: s, defaultMonth: M, today: c = e.today(), numberOfMonths: f = 1 } = i;
|
|
3
|
-
let t = s || M || c;
|
|
4
|
-
const { differenceInCalendarMonths: h, addMonths: l, startOfMonth: r } = e;
|
|
5
|
-
if (n && h(n, t) < f - 1) {
|
|
6
|
-
const d = -1 * (f - 1);
|
|
7
|
-
t = l(n, d);
|
|
8
|
-
}
|
|
9
|
-
return o && h(t, o) < 0 && (t = o), r(t);
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
u as getInitialMonth
|
|
13
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import * as o from "../labels/index.js";
|
|
2
|
-
import { labelWeekday as b } from "../labels/labelWeekday.js";
|
|
3
|
-
import { labelWeekNumberHeader as i } from "../labels/labelWeekNumberHeader.js";
|
|
4
|
-
import { labelNav as n } from "../labels/labelNav.js";
|
|
5
|
-
import { labelGridcell as t } from "../labels/labelGridcell.js";
|
|
6
|
-
import { labelGrid as d } from "../labels/labelGrid.js";
|
|
7
|
-
import { labelYearDropdown as p } from "../labels/labelYearDropdown.js";
|
|
8
|
-
import { labelWeekNumber as m } from "../labels/labelWeekNumber.js";
|
|
9
|
-
import { labelPrevious as f } from "../labels/labelPrevious.js";
|
|
10
|
-
import { labelNext as N } from "../labels/labelNext.js";
|
|
11
|
-
import { labelMonthDropdown as k } from "../labels/labelMonthDropdown.js";
|
|
12
|
-
import { labelDayButton as D } from "../labels/labelDayButton.js";
|
|
13
|
-
const r = (l, a, e) => a || (e ? typeof e == "function" ? e : (...W) => e : l);
|
|
14
|
-
function Y(l, a) {
|
|
15
|
-
const e = a.locale?.labels ?? {};
|
|
16
|
-
return {
|
|
17
|
-
...o,
|
|
18
|
-
...l ?? {},
|
|
19
|
-
labelDayButton: r(D, l?.labelDayButton, e.labelDayButton),
|
|
20
|
-
labelMonthDropdown: r(k, l?.labelMonthDropdown, e.labelMonthDropdown),
|
|
21
|
-
labelNext: r(N, l?.labelNext, e.labelNext),
|
|
22
|
-
labelPrevious: r(f, l?.labelPrevious, e.labelPrevious),
|
|
23
|
-
labelWeekNumber: r(m, l?.labelWeekNumber, e.labelWeekNumber),
|
|
24
|
-
labelYearDropdown: r(p, l?.labelYearDropdown, e.labelYearDropdown),
|
|
25
|
-
labelGrid: r(d, l?.labelGrid, e.labelGrid),
|
|
26
|
-
labelGridcell: r(t, l?.labelGridcell, e.labelGridcell),
|
|
27
|
-
labelNav: r(n, l?.labelNav, e.labelNav),
|
|
28
|
-
labelWeekNumberHeader: r(i, l?.labelWeekNumberHeader, e.labelWeekNumberHeader),
|
|
29
|
-
labelWeekday: r(b, l?.labelWeekday, e.labelWeekday)
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
Y as getLabels
|
|
34
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
function d(o, n, s, a, e) {
|
|
2
|
-
const { startOfMonth: r, startOfYear: c, endOfYear: f, eachMonthOfInterval: l, getMonth: p } = e;
|
|
3
|
-
return l({
|
|
4
|
-
start: c(o),
|
|
5
|
-
end: f(o)
|
|
6
|
-
}).map((t) => {
|
|
7
|
-
const O = a.formatMonthDropdown(t, e), h = p(t), u = n && t < r(n) || s && t > r(s) || !1;
|
|
8
|
-
return { value: h, label: O, disabled: u };
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
d as getMonthOptions
|
|
13
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CalendarDay as F } from "../classes/CalendarDay.js";
|
|
2
|
-
import { CalendarWeek as N } from "../classes/CalendarWeek.js";
|
|
3
|
-
import { CalendarMonth as P } from "../classes/CalendarMonth.js";
|
|
4
|
-
function j(l, f, e, c) {
|
|
5
|
-
const { addDays: y, endOfBroadcastWeek: D, endOfISOWeek: h, endOfMonth: k, endOfWeek: C, getISOWeek: I, getWeek: M, startOfBroadcastWeek: S, startOfISOWeek: g, startOfWeek: w } = c, o = l.reduce((W, t) => {
|
|
6
|
-
const x = e.broadcastCalendar ? S(t, c) : e.ISOWeek ? g(t) : w(t), d = e.broadcastCalendar ? D(t) : e.ISOWeek ? h(k(t)) : C(k(t)), a = f.filter((r) => r >= x && r <= d), O = e.broadcastCalendar ? 35 : 42;
|
|
7
|
-
if (e.fixedWeeks && a.length < O) {
|
|
8
|
-
const r = f.filter((n) => {
|
|
9
|
-
const s = O - a.length;
|
|
10
|
-
return n > d && n <= y(d, s);
|
|
11
|
-
});
|
|
12
|
-
a.push(...r);
|
|
13
|
-
}
|
|
14
|
-
const b = a.reduce((r, n) => {
|
|
15
|
-
const s = e.ISOWeek ? I(n) : M(n), i = r.find((B) => B.weekNumber === s), u = new F(n, t, c);
|
|
16
|
-
return i ? i.days.push(u) : r.push(new N(s, [u])), r;
|
|
17
|
-
}, []), v = new P(t, b);
|
|
18
|
-
return W.push(v), W;
|
|
19
|
-
}, []);
|
|
20
|
-
return e.reverseMonths ? o.reverse() : o;
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
j as getMonths
|
|
24
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
function O(o, r) {
|
|
2
|
-
let { startMonth: t, endMonth: e } = o;
|
|
3
|
-
const { startOfYear: M, startOfDay: d, startOfMonth: c, endOfMonth: Y, addYears: l, endOfYear: w, newDate: f, today: i } = r, { fromYear: a, toYear: n, fromMonth: s, toMonth: h } = o;
|
|
4
|
-
!t && s && (t = s), !t && a && (t = r.newDate(a, 0, 1)), !e && h && (e = h), !e && n && (e = f(n, 11, 31));
|
|
5
|
-
const y = o.captionLayout === "dropdown" || o.captionLayout === "dropdown-years";
|
|
6
|
-
return t ? t = c(t) : a ? t = f(a, 0, 1) : !t && y && (t = M(l(o.today ?? i(), -100))), e ? e = Y(e) : n ? e = f(n, 11, 31) : !e && y && (e = w(o.today ?? i())), [
|
|
7
|
-
t && d(t),
|
|
8
|
-
e && d(e)
|
|
9
|
-
];
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
O as getNavMonths
|
|
13
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { dateMatchModifiers as u } from "../utils/dateMatchModifiers.js";
|
|
2
|
-
import { getFocusableDate as g } from "./getFocusableDate.js";
|
|
3
|
-
import { CalendarDay as m } from "../classes/CalendarDay.js";
|
|
4
|
-
function h(t, i, a, d, f, e, n, s = 0) {
|
|
5
|
-
if (s > 365)
|
|
6
|
-
return;
|
|
7
|
-
const o = g(t, i, a.date, d, f, e, n), r = !!(e.disabled && u(o, e.disabled, n)), l = !!(e.hidden && u(o, e.hidden, n)), D = o, c = new m(o, D, n);
|
|
8
|
-
return !r && !l ? c : h(t, i, c, d, f, e, n, s + 1);
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
h as getNextFocus
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function h(n, t, e, s) {
|
|
2
|
-
if (e.disableNavigation)
|
|
3
|
-
return;
|
|
4
|
-
const { pagedNavigation: u, numberOfMonths: f = 1 } = e, { startOfMonth: a, addMonths: o, differenceInCalendarMonths: d } = s, i = u ? f : 1, r = a(n);
|
|
5
|
-
if (!t)
|
|
6
|
-
return o(r, i);
|
|
7
|
-
if (!(d(t, n) < f))
|
|
8
|
-
return o(r, i);
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
h as getNextMonth
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function c(i, t, e, s) {
|
|
2
|
-
if (e.disableNavigation)
|
|
3
|
-
return;
|
|
4
|
-
const { pagedNavigation: r, numberOfMonths: d } = e, { startOfMonth: u, addMonths: f, differenceInCalendarMonths: a } = s, o = r ? d ?? 1 : 1, n = u(i);
|
|
5
|
-
if (!t)
|
|
6
|
-
return f(n, -o);
|
|
7
|
-
if (!(a(n, t) <= 0))
|
|
8
|
-
return f(n, -o);
|
|
9
|
-
}
|
|
10
|
-
export {
|
|
11
|
-
c as getPreviousMonth
|
|
12
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { UI as f } from "../UI.js";
|
|
2
|
-
function n(r, o = {}, i = {}) {
|
|
3
|
-
let e = { ...o?.[f.Day] };
|
|
4
|
-
return Object.entries(r).filter(([, t]) => t === !0).forEach(([t]) => {
|
|
5
|
-
e = {
|
|
6
|
-
...e,
|
|
7
|
-
...i?.[t]
|
|
8
|
-
};
|
|
9
|
-
}), e;
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
n as getStyleForModifiers
|
|
13
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
function y(t, o, a, n) {
|
|
2
|
-
const s = n ?? t.today(), c = a ? t.startOfBroadcastWeek(s, t) : o ? t.startOfISOWeek(s) : t.startOfWeek(s), r = [];
|
|
3
|
-
for (let e = 0; e < 7; e++) {
|
|
4
|
-
const f = t.addDays(c, e);
|
|
5
|
-
r.push(f);
|
|
6
|
-
}
|
|
7
|
-
return r;
|
|
8
|
-
}
|
|
9
|
-
export {
|
|
10
|
-
y as getWeekdays
|
|
11
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
function p(e, r, s, t, f = !1) {
|
|
2
|
-
if (!e || !r)
|
|
3
|
-
return;
|
|
4
|
-
const { startOfYear: o, endOfYear: i, eachYearOfInterval: l, getYear: u } = t, Y = o(e), c = i(r), a = l({ start: Y, end: c });
|
|
5
|
-
return f && a.reverse(), a.map((n) => {
|
|
6
|
-
const d = s.formatYearDropdown(n, t);
|
|
7
|
-
return {
|
|
8
|
-
value: u(n),
|
|
9
|
-
label: d,
|
|
10
|
-
disabled: !1
|
|
11
|
-
};
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
p as getYearOptions
|
|
16
|
-
};
|