@fluentui/react-calendar-compat 0.0.24 → 0.0.25

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.
Files changed (25) hide show
  1. package/CHANGELOG.md +15 -2
  2. package/lib/components/Calendar/Calendar.types.js +4 -4
  3. package/lib/components/Calendar/Calendar.types.js.map +1 -1
  4. package/lib/components/CalendarPicker/CalendarPicker.types.js +1 -3
  5. package/lib/components/CalendarPicker/CalendarPicker.types.js.map +1 -1
  6. package/lib/utils/constants.js.map +1 -1
  7. package/lib/utils/dateFormatting/dateFormatting.types.js.map +1 -1
  8. package/lib/utils/dateGrid/dateGrid.types.js.map +1 -1
  9. package/lib-commonjs/components/Calendar/Calendar.types.js +4 -4
  10. package/lib-commonjs/components/Calendar/Calendar.types.js.map +1 -1
  11. package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.styles.js +3 -3
  12. package/lib-commonjs/components/CalendarDayGrid/useWeekCornerStyles.styles.js.map +1 -1
  13. package/lib-commonjs/components/CalendarPicker/CalendarPicker.types.js +1 -3
  14. package/lib-commonjs/components/CalendarPicker/CalendarPicker.types.js.map +1 -1
  15. package/lib-commonjs/index.js +44 -44
  16. package/lib-commonjs/index.js.map +1 -1
  17. package/lib-commonjs/utils/animations.js +9 -9
  18. package/lib-commonjs/utils/animations.js.map +1 -1
  19. package/lib-commonjs/utils/constants.js +8 -8
  20. package/lib-commonjs/utils/constants.js.map +1 -1
  21. package/lib-commonjs/utils/dateFormatting/dateFormatting.defaults.js +12 -12
  22. package/lib-commonjs/utils/dateFormatting/dateFormatting.defaults.js.map +1 -1
  23. package/lib-commonjs/utils/dateMath/dateMath.js +29 -29
  24. package/lib-commonjs/utils/dateMath/dateMath.js.map +1 -1
  25. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,12 +1,25 @@
1
1
  # Change Log - @fluentui/react-calendar-compat
2
2
 
3
- This log was last generated on Fri, 15 Mar 2024 21:37:57 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 18 Mar 2024 19:44:52 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [0.0.25](https://github.com/microsoft/fluentui/tree/@fluentui/react-calendar-compat_v0.0.25)
8
+
9
+ Mon, 18 Mar 2024 19:44:52 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-calendar-compat_v0.0.24..@fluentui/react-calendar-compat_v0.0.25)
11
+
12
+ ### Patches
13
+
14
+ - Bump @fluentui/react-jsx-runtime to v9.0.34 ([PR #30803](https://github.com/microsoft/fluentui/pull/30803) by beachball)
15
+ - Bump @fluentui/react-shared-contexts to v9.15.2 ([PR #30803](https://github.com/microsoft/fluentui/pull/30803) by beachball)
16
+ - Bump @fluentui/react-tabster to v9.19.5 ([PR #30803](https://github.com/microsoft/fluentui/pull/30803) by beachball)
17
+ - Bump @fluentui/react-theme to v9.1.19 ([PR #30803](https://github.com/microsoft/fluentui/pull/30803) by beachball)
18
+ - Bump @fluentui/react-utilities to v9.18.5 ([PR #30803](https://github.com/microsoft/fluentui/pull/30803) by beachball)
19
+
7
20
  ## [0.0.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-calendar-compat_v0.0.24)
8
21
 
9
- Fri, 15 Mar 2024 21:37:57 GMT
22
+ Fri, 15 Mar 2024 21:43:49 GMT
10
23
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-calendar-compat_v0.0.23..@fluentui/react-calendar-compat_v0.0.24)
11
24
 
12
25
  ### Patches
@@ -1,10 +1,10 @@
1
1
  import * as React from 'react';
2
2
  export var AnimationDirection;
3
3
  (function(AnimationDirection) {
4
- /**
4
+ AnimationDirection[AnimationDirection[/**
5
5
  * Grid will transition out and in horizontally
6
- */ AnimationDirection[AnimationDirection["Horizontal"] = 0] = "Horizontal";
7
- /**
6
+ */ "Horizontal"] = 0] = "Horizontal";
7
+ AnimationDirection[AnimationDirection[/**
8
8
  * Grid will transition out and in vertically
9
- */ AnimationDirection[AnimationDirection["Vertical"] = 1] = "Vertical";
9
+ */ "Vertical"] = 1] = "Vertical";
10
10
  })(AnimationDirection || (AnimationDirection = {}));
@@ -1 +1 @@
1
- {"version":3,"sources":["Calendar.types.ts"],"sourcesContent":["import * as React from 'react';\nimport type { CalendarStrings, DateFormatting, DateRangeType, DayOfWeek, FirstWeekOfYear } from '../../utils';\nimport type { CalendarDayProps } from '../CalendarDay/CalendarDay.types';\nimport type { CalendarMonthProps } from '../CalendarMonth/CalendarMonth.types';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport interface ICalendar {\n /** Sets focus to the selected date. */\n focus: () => void;\n}\n\nexport interface CalendarProps extends React.RefAttributes<HTMLDivElement> {\n /**\n * Optional callback to access the ICalendar interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: React.RefObject<ICalendar>;\n\n /**\n * Customized props for the calendar day\n */\n calendarDayProps?: Partial<CalendarDayProps>;\n\n /**\n * Customized props for the calendar month\n */\n calendarMonthProps?: Partial<CalendarMonthProps>;\n\n /**\n * Optional class name to add to the root element.\n */\n className?: string;\n\n /**\n * Callback for when a date is selected\n * @param date - The date the user selected\n * @param selectedDateRangeArray - The resultant list of dates that are selected based on the date range type set\n * for the component.\n */\n onSelectDate?: (date: Date, selectedDateRangeArray?: Date[]) => void;\n\n /**\n * Callback for when calendar is closed\n */\n onDismiss?: () => void;\n\n /**\n * ID for the calendar\n */\n id?: string;\n\n /**\n * Default value of the Calendar, if any\n */\n value?: Date;\n\n /**\n * Value of today. If unspecified, current time in client machine will be used.\n */\n today?: Date;\n\n /**\n * The date range type indicating how many days should be selected as the user\n * selects days\n * @default DateRangeType.Day\n */\n dateRangeType?: DateRangeType;\n\n /**\n * The first day of the week for your locale.\n * @default DayOfWeek.Sunday\n */\n firstDayOfWeek?: DayOfWeek;\n\n /**\n * Defines when the first week of the year should start.\n * @default FirstWeekOfYear.FirstDay\n */\n firstWeekOfYear?: FirstWeekOfYear;\n\n /**\n * Whether the month picker is shown beside the day picker or hidden.\n * @default true\n */\n isMonthPickerVisible?: boolean;\n\n /**\n * Whether the day picker is shown beside the month picker or hidden.\n * @default true\n */\n isDayPickerVisible?: boolean;\n\n /**\n * Show month picker on top of date picker when visible.\n * @default false\n */\n showMonthPickerAsOverlay?: boolean;\n\n /**\n * Whether the \"Go to today\" link should be shown or not\n */\n showGoToToday?: boolean;\n\n /**\n * Whether the calendar should show the week number (weeks 1 to 53) before each week row\n * @default false\n */\n showWeekNumbers?: boolean;\n\n /**\n * Localized strings to use in the Calendar\n */\n strings?: CalendarStrings;\n\n /**\n * Apply additional formatting to dates, for example localized date formatting.\n */\n dateTimeFormatter?: DateFormatting;\n\n /**\n * If set the Calendar will not allow navigation to or selection of a date earlier than this value.\n */\n minDate?: Date;\n\n /**\n * If set the Calendar will not allow navigation to or selection of a date later than this value.\n */\n maxDate?: Date;\n\n /**\n * If set the Calendar will not allow selection of dates in this array.\n */\n restrictedDates?: Date[];\n\n /**\n * Whether the calendar should show 6 weeks by default.\n * @default false\n */\n showSixWeeksByDefault?: boolean;\n\n /**\n * The days that are selectable when `dateRangeType` is `WorkWeek`.\n * If `dateRangeType` is not `WorkWeek` this property does nothing.\n * @default [Monday,Tuesday,Wednesday,Thursday,Friday]\n */\n workWeekDays?: DayOfWeek[];\n\n /**\n * Whether the month picker should highlight the current month\n * @default false\n */\n highlightCurrentMonth?: boolean;\n\n /**\n * Whether the month picker should highlight the selected month\n * @default false\n */\n highlightSelectedMonth?: boolean;\n\n /**\n * Whether the close button should be shown or not\n * @default false\n */\n showCloseButton?: boolean;\n\n /**\n * Allows all dates and buttons to be focused, including disabled ones\n * @default false\n */\n allFocusable?: boolean;\n}\n\n/**\n * @internal\n */\nexport interface CalendarStyleProps {\n /**\n * Custom CSS class for the calendar.\n */\n className?: string;\n\n /**\n * Whether the month picker is visible\n */\n isMonthPickerVisible?: boolean;\n\n /**\n * Whether the day picker is visible\n */\n isDayPickerVisible?: boolean;\n\n /**\n * Whether only month picker is shown\n */\n monthPickerOnly?: boolean;\n\n /**\n * Whether the month picker is overlaid on the day picker\n */\n showMonthPickerAsOverlay?: boolean;\n\n /**\n * @deprecated Use `overlaidWithButton`\n */\n overlayedWithButton?: boolean;\n\n /**\n * Whether the month and day picker are overlaid and the 'go to today' button is shown\n */\n overlaidWithButton?: boolean;\n\n /**\n * Whether the go to today button is shown\n */\n showGoToToday?: boolean;\n\n /**\n * Whether the week numbers are shown\n */\n showWeekNumbers?: boolean;\n}\n\n/**\n * @internal\n */\nexport interface CalendarStyles {\n /**\n * Style for the root element.\n */\n root: string;\n\n divider: string;\n\n goTodayButton: string;\n\n monthPickerWrapper: string;\n\n liveRegion: string;\n}\n\nexport enum AnimationDirection {\n /**\n * Grid will transition out and in horizontally\n */\n Horizontal,\n\n /**\n * Grid will transition out and in vertically\n */\n Vertical,\n}\n"],"names":["React","AnimationDirection"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;;UAgPnBC;IACV;;GAEC;IAGD;;GAEC;GARSA,uBAAAA"}
1
+ {"version":3,"sources":["Calendar.types.ts"],"sourcesContent":["import * as React from 'react';\nimport type { CalendarStrings, DateFormatting, DateRangeType, DayOfWeek, FirstWeekOfYear } from '../../utils';\nimport type { CalendarDayProps } from '../CalendarDay/CalendarDay.types';\nimport type { CalendarMonthProps } from '../CalendarMonth/CalendarMonth.types';\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport interface ICalendar {\n /** Sets focus to the selected date. */\n focus: () => void;\n}\n\nexport interface CalendarProps extends React.RefAttributes<HTMLDivElement> {\n /**\n * Optional callback to access the ICalendar interface. Use this instead of ref for accessing\n * the public methods and properties of the component.\n */\n componentRef?: React.RefObject<ICalendar>;\n\n /**\n * Customized props for the calendar day\n */\n calendarDayProps?: Partial<CalendarDayProps>;\n\n /**\n * Customized props for the calendar month\n */\n calendarMonthProps?: Partial<CalendarMonthProps>;\n\n /**\n * Optional class name to add to the root element.\n */\n className?: string;\n\n /**\n * Callback for when a date is selected\n * @param date - The date the user selected\n * @param selectedDateRangeArray - The resultant list of dates that are selected based on the date range type set\n * for the component.\n */\n onSelectDate?: (date: Date, selectedDateRangeArray?: Date[]) => void;\n\n /**\n * Callback for when calendar is closed\n */\n onDismiss?: () => void;\n\n /**\n * ID for the calendar\n */\n id?: string;\n\n /**\n * Default value of the Calendar, if any\n */\n value?: Date;\n\n /**\n * Value of today. If unspecified, current time in client machine will be used.\n */\n today?: Date;\n\n /**\n * The date range type indicating how many days should be selected as the user\n * selects days\n * @default DateRangeType.Day\n */\n dateRangeType?: DateRangeType;\n\n /**\n * The first day of the week for your locale.\n * @default DayOfWeek.Sunday\n */\n firstDayOfWeek?: DayOfWeek;\n\n /**\n * Defines when the first week of the year should start.\n * @default FirstWeekOfYear.FirstDay\n */\n firstWeekOfYear?: FirstWeekOfYear;\n\n /**\n * Whether the month picker is shown beside the day picker or hidden.\n * @default true\n */\n isMonthPickerVisible?: boolean;\n\n /**\n * Whether the day picker is shown beside the month picker or hidden.\n * @default true\n */\n isDayPickerVisible?: boolean;\n\n /**\n * Show month picker on top of date picker when visible.\n * @default false\n */\n showMonthPickerAsOverlay?: boolean;\n\n /**\n * Whether the \"Go to today\" link should be shown or not\n */\n showGoToToday?: boolean;\n\n /**\n * Whether the calendar should show the week number (weeks 1 to 53) before each week row\n * @default false\n */\n showWeekNumbers?: boolean;\n\n /**\n * Localized strings to use in the Calendar\n */\n strings?: CalendarStrings;\n\n /**\n * Apply additional formatting to dates, for example localized date formatting.\n */\n dateTimeFormatter?: DateFormatting;\n\n /**\n * If set the Calendar will not allow navigation to or selection of a date earlier than this value.\n */\n minDate?: Date;\n\n /**\n * If set the Calendar will not allow navigation to or selection of a date later than this value.\n */\n maxDate?: Date;\n\n /**\n * If set the Calendar will not allow selection of dates in this array.\n */\n restrictedDates?: Date[];\n\n /**\n * Whether the calendar should show 6 weeks by default.\n * @default false\n */\n showSixWeeksByDefault?: boolean;\n\n /**\n * The days that are selectable when `dateRangeType` is `WorkWeek`.\n * If `dateRangeType` is not `WorkWeek` this property does nothing.\n * @default [Monday,Tuesday,Wednesday,Thursday,Friday]\n */\n workWeekDays?: DayOfWeek[];\n\n /**\n * Whether the month picker should highlight the current month\n * @default false\n */\n highlightCurrentMonth?: boolean;\n\n /**\n * Whether the month picker should highlight the selected month\n * @default false\n */\n highlightSelectedMonth?: boolean;\n\n /**\n * Whether the close button should be shown or not\n * @default false\n */\n showCloseButton?: boolean;\n\n /**\n * Allows all dates and buttons to be focused, including disabled ones\n * @default false\n */\n allFocusable?: boolean;\n}\n\n/**\n * @internal\n */\nexport interface CalendarStyleProps {\n /**\n * Custom CSS class for the calendar.\n */\n className?: string;\n\n /**\n * Whether the month picker is visible\n */\n isMonthPickerVisible?: boolean;\n\n /**\n * Whether the day picker is visible\n */\n isDayPickerVisible?: boolean;\n\n /**\n * Whether only month picker is shown\n */\n monthPickerOnly?: boolean;\n\n /**\n * Whether the month picker is overlaid on the day picker\n */\n showMonthPickerAsOverlay?: boolean;\n\n /**\n * @deprecated Use `overlaidWithButton`\n */\n overlayedWithButton?: boolean;\n\n /**\n * Whether the month and day picker are overlaid and the 'go to today' button is shown\n */\n overlaidWithButton?: boolean;\n\n /**\n * Whether the go to today button is shown\n */\n showGoToToday?: boolean;\n\n /**\n * Whether the week numbers are shown\n */\n showWeekNumbers?: boolean;\n}\n\n/**\n * @internal\n */\nexport interface CalendarStyles {\n /**\n * Style for the root element.\n */\n root: string;\n\n divider: string;\n\n goTodayButton: string;\n\n monthPickerWrapper: string;\n\n liveRegion: string;\n}\n\nexport enum AnimationDirection {\n /**\n * Grid will transition out and in horizontally\n */\n Horizontal,\n\n /**\n * Grid will transition out and in vertically\n */\n Vertical,\n}\n"],"names":["React","AnimationDirection","Horizontal","Vertical"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;WAgPxB;UAAKC,kBAAkB;IAAlBA,mBAAAA,mBACV;;GAEC,GACDC,gBAAAA,KAAAA;IAJUD,mBAAAA,mBAMV;;GAEC,GACDE,cAAAA,KAAAA;GATUF,uBAAAA"}
@@ -1,3 +1 @@
1
- /**
2
- * @internal
3
- */ export { };
1
+ export { };
@@ -1 +1 @@
1
- {"version":3,"sources":["CalendarPicker.types.ts"],"sourcesContent":["import { AnimationDirection } from '../Calendar/Calendar.types';\n\n/**\n * @internal\n */\nexport interface CalendarPickerStyleProps {\n /**\n * Accept custom classNames\n */\n className?: string;\n\n /**\n * Whether the header can be clicked\n */\n hasHeaderClickCallback?: boolean;\n\n /**\n * Whether the picker should highlight the current item\n */\n highlightCurrent?: boolean;\n\n /**\n * Whether the picker should highlight the selected item\n */\n highlightSelected?: boolean;\n\n /**\n * The cardinal directions for animation to occur during transitions, either horizontal or veritcal\n */\n animationDirection?: AnimationDirection;\n\n /**\n * Whether grid entering animation should be forwards or backwards\n */\n animateBackwards?: boolean;\n}\n\n/**\n * @internal\n */\nexport interface CalendarPickerStyles {\n /**\n * Style for the root element.\n */\n root: string;\n\n headerContainer: string;\n\n currentItemButton: string;\n\n navigationButtonsContainer: string;\n\n navigationButton: string;\n\n gridContainer: string;\n\n buttonRow: string;\n\n itemButton: string;\n\n current: string;\n\n selected: string;\n\n disabled: string;\n}\n"],"names":[],"mappings":"AAqCA;;CAEC,GACD,WAyBC"}
1
+ {"version":3,"sources":["CalendarPicker.types.ts"],"sourcesContent":["import { AnimationDirection } from '../Calendar/Calendar.types';\n\n/**\n * @internal\n */\nexport interface CalendarPickerStyleProps {\n /**\n * Accept custom classNames\n */\n className?: string;\n\n /**\n * Whether the header can be clicked\n */\n hasHeaderClickCallback?: boolean;\n\n /**\n * Whether the picker should highlight the current item\n */\n highlightCurrent?: boolean;\n\n /**\n * Whether the picker should highlight the selected item\n */\n highlightSelected?: boolean;\n\n /**\n * The cardinal directions for animation to occur during transitions, either horizontal or veritcal\n */\n animationDirection?: AnimationDirection;\n\n /**\n * Whether grid entering animation should be forwards or backwards\n */\n animateBackwards?: boolean;\n}\n\n/**\n * @internal\n */\nexport interface CalendarPickerStyles {\n /**\n * Style for the root element.\n */\n root: string;\n\n headerContainer: string;\n\n currentItemButton: string;\n\n navigationButtonsContainer: string;\n\n navigationButton: string;\n\n gridContainer: string;\n\n buttonRow: string;\n\n itemButton: string;\n\n current: string;\n\n selected: string;\n\n disabled: string;\n}\n"],"names":[],"mappings":"AAAA,WAiEC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["constants.ts"],"sourcesContent":["/**\n * The days of the week\n */\nexport enum DayOfWeek {\n Sunday = 0,\n Monday = 1,\n Tuesday = 2,\n Wednesday = 3,\n Thursday = 4,\n Friday = 5,\n Saturday = 6,\n}\n\n/**\n * The months\n */\nexport enum MonthOfYear {\n January = 0,\n February = 1,\n March = 2,\n April = 3,\n May = 4,\n June = 5,\n July = 6,\n August = 7,\n September = 8,\n October = 9,\n November = 10,\n December = 11,\n}\n\n/**\n * First week of the year settings types\n */\nexport enum FirstWeekOfYear {\n FirstDay = 0,\n FirstFullWeek = 1,\n FirstFourDayWeek = 2,\n}\n\n/**\n * The supported date range types\n */\nexport enum DateRangeType {\n Day = 0,\n Week = 1,\n Month = 2,\n WorkWeek = 3,\n}\n\nexport const DAYS_IN_WEEK = 7;\n\nexport const TimeConstants = {\n MillisecondsInOneDay: 86400000,\n MillisecondsIn1Sec: 1000,\n MillisecondsIn1Min: 60000,\n MillisecondsIn30Mins: 1800000,\n MillisecondsIn1Hour: 3600000,\n MinutesInOneDay: 1440,\n MinutesInOneHour: 60,\n DaysInOneWeek: 7,\n MonthInOneYear: 12,\n HoursInOneDay: 24,\n SecondsInOneMinute: 60,\n OffsetTo24HourFormat: 12,\n /**\n * Matches a time string. Groups:\n * 1. hours (with or without leading 0)\n * 2. minutes\n * 3. seconds (optional)\n * 4. meridiem (am/pm, case-insensitive, optional)\n */\n TimeFormatRegex: /^(\\d\\d?):(\\d\\d):?(\\d\\d)? ?([ap]m)?/i,\n};\n"],"names":["DayOfWeek","MonthOfYear","FirstWeekOfYear","DateRangeType","DAYS_IN_WEEK","TimeConstants","MillisecondsInOneDay","MillisecondsIn1Sec","MillisecondsIn1Min","MillisecondsIn30Mins","MillisecondsIn1Hour","MinutesInOneDay","MinutesInOneHour","DaysInOneWeek","MonthInOneYear","HoursInOneDay","SecondsInOneMinute","OffsetTo24HourFormat","TimeFormatRegex"],"mappings":"AAAA;;CAEC;UACWA;;;;;;;;GAAAA,cAAAA;;UAaAC;;;;;;;;;;;;;GAAAA,gBAAAA;;UAkBAC;;;;GAAAA,oBAAAA;;UASAC;;;;;GAAAA,kBAAAA;AAOZ,OAAO,MAAMC,eAAe,EAAE;AAE9B,OAAO,MAAMC,gBAAgB;IAC3BC,sBAAsB;IACtBC,oBAAoB;IACpBC,oBAAoB;IACpBC,sBAAsB;IACtBC,qBAAqB;IACrBC,iBAAiB;IACjBC,kBAAkB;IAClBC,eAAe;IACfC,gBAAgB;IAChBC,eAAe;IACfC,oBAAoB;IACpBC,sBAAsB;IACtB;;;;;;GAMC,GACDC,iBAAiB;AACnB,EAAE"}
1
+ {"version":3,"sources":["constants.ts"],"sourcesContent":["/**\n * The days of the week\n */\nexport enum DayOfWeek {\n Sunday = 0,\n Monday = 1,\n Tuesday = 2,\n Wednesday = 3,\n Thursday = 4,\n Friday = 5,\n Saturday = 6,\n}\n\n/**\n * The months\n */\nexport enum MonthOfYear {\n January = 0,\n February = 1,\n March = 2,\n April = 3,\n May = 4,\n June = 5,\n July = 6,\n August = 7,\n September = 8,\n October = 9,\n November = 10,\n December = 11,\n}\n\n/**\n * First week of the year settings types\n */\nexport enum FirstWeekOfYear {\n FirstDay = 0,\n FirstFullWeek = 1,\n FirstFourDayWeek = 2,\n}\n\n/**\n * The supported date range types\n */\nexport enum DateRangeType {\n Day = 0,\n Week = 1,\n Month = 2,\n WorkWeek = 3,\n}\n\nexport const DAYS_IN_WEEK = 7;\n\nexport const TimeConstants = {\n MillisecondsInOneDay: 86400000,\n MillisecondsIn1Sec: 1000,\n MillisecondsIn1Min: 60000,\n MillisecondsIn30Mins: 1800000,\n MillisecondsIn1Hour: 3600000,\n MinutesInOneDay: 1440,\n MinutesInOneHour: 60,\n DaysInOneWeek: 7,\n MonthInOneYear: 12,\n HoursInOneDay: 24,\n SecondsInOneMinute: 60,\n OffsetTo24HourFormat: 12,\n /**\n * Matches a time string. Groups:\n * 1. hours (with or without leading 0)\n * 2. minutes\n * 3. seconds (optional)\n * 4. meridiem (am/pm, case-insensitive, optional)\n */\n TimeFormatRegex: /^(\\d\\d?):(\\d\\d):?(\\d\\d)? ?([ap]m)?/i,\n};\n"],"names":["DayOfWeek","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","MonthOfYear","January","February","March","April","May","June","July","August","September","October","November","December","FirstWeekOfYear","FirstDay","FirstFullWeek","FirstFourDayWeek","DateRangeType","Day","Week","Month","WorkWeek","DAYS_IN_WEEK","TimeConstants","MillisecondsInOneDay","MillisecondsIn1Sec","MillisecondsIn1Min","MillisecondsIn30Mins","MillisecondsIn1Hour","MinutesInOneDay","MinutesInOneHour","DaysInOneWeek","MonthInOneYear","HoursInOneDay","SecondsInOneMinute","OffsetTo24HourFormat","TimeFormatRegex"],"mappings":"AAAA;;CAEC,cACM;UAAKA,SAAS;IAATA,UAAAA,UACVC,YAAS,KAATA;IADUD,UAAAA,UAEVE,YAAS,KAATA;IAFUF,UAAAA,UAGVG,aAAU,KAAVA;IAHUH,UAAAA,UAIVI,eAAY,KAAZA;IAJUJ,UAAAA,UAKVK,cAAW,KAAXA;IALUL,UAAAA,UAMVM,YAAS,KAATA;IANUN,UAAAA,UAOVO,cAAW,KAAXA;GAPUP,cAAAA;WAaL;UAAKQ,WAAW;IAAXA,YAAAA,YACVC,aAAU,KAAVA;IADUD,YAAAA,YAEVE,cAAW,KAAXA;IAFUF,YAAAA,YAGVG,WAAQ,KAARA;IAHUH,YAAAA,YAIVI,WAAQ,KAARA;IAJUJ,YAAAA,YAKVK,SAAM,KAANA;IALUL,YAAAA,YAMVM,UAAO,KAAPA;IANUN,YAAAA,YAOVO,UAAO,KAAPA;IAPUP,YAAAA,YAQVQ,YAAS,KAATA;IARUR,YAAAA,YASVS,eAAY,KAAZA;IATUT,YAAAA,YAUVU,aAAU,KAAVA;IAVUV,YAAAA,YAWVW,cAAW,MAAXA;IAXUX,YAAAA,YAYVY,cAAW,MAAXA;GAZUZ,gBAAAA;WAkBL;UAAKa,eAAe;IAAfA,gBAAAA,gBACVC,cAAW,KAAXA;IADUD,gBAAAA,gBAEVE,mBAAgB,KAAhBA;IAFUF,gBAAAA,gBAGVG,sBAAmB,KAAnBA;GAHUH,oBAAAA;WASL;UAAKI,aAAa;IAAbA,cAAAA,cACVC,SAAM,KAANA;IADUD,cAAAA,cAEVE,UAAO,KAAPA;IAFUF,cAAAA,cAGVG,WAAQ,KAARA;IAHUH,cAAAA,cAIVI,cAAW,KAAXA;GAJUJ,kBAAAA;AAOZ,OAAO,MAAMK,eAAe,EAAE;AAE9B,OAAO,MAAMC,gBAAgB;IAC3BC,sBAAsB;IACtBC,oBAAoB;IACpBC,oBAAoB;IACpBC,sBAAsB;IACtBC,qBAAqB;IACrBC,iBAAiB;IACjBC,kBAAkB;IAClBC,eAAe;IACfC,gBAAgB;IAChBC,eAAe;IACfC,oBAAoB;IACpBC,sBAAsB;IACtB;;;;;;GAMC,GACDC,iBAAiB;AACnB,EAAE"}
@@ -1 +1 @@
1
- {"version":3,"sources":["dateFormatting.types.ts"],"sourcesContent":["export interface DateGridStrings {\n /**\n * An array of strings for the full names of months.\n * The array is 0-based, so months[0] should be the full name of January.\n */\n months: string[];\n\n /**\n * An array of strings for the short names of months.\n * The array is 0-based, so shortMonths[0] should be the short name of January.\n */\n shortMonths: string[];\n\n /**\n * An array of strings for the full names of days of the week.\n * The array is 0-based, so days[0] should be the full name of Sunday.\n */\n days: string[];\n\n /**\n * An array of strings for the initials of the days of the week.\n * The array is 0-based, so days[0] should be the initial of Sunday.\n */\n shortDays: string[];\n}\n\nexport interface DateFormatting {\n /**\n * Get a localized string for a day.\n */\n formatDay: (date: Date) => string;\n\n /**\n * Get a localized string for a month.\n */\n formatMonth: (date: Date, strings: DateGridStrings) => string;\n\n /**\n * Get a localized string for a year.\n */\n formatYear: (date: Date) => string;\n\n /**\n * Get a localized string for a month, day, and year.\n */\n formatMonthDayYear: (date: Date, strings: DateGridStrings) => string;\n\n /**\n * Get a localized string for a month and year.\n */\n formatMonthYear: (date: Date, strings: DateGridStrings) => string;\n}\n\nexport interface CalendarStrings extends DateGridStrings {\n /**\n * String to render for button to direct the user to today's date.\n */\n goToToday: string;\n\n /**\n * Aria-label for the \"previous month\" button in day picker.\n */\n prevMonthAriaLabel?: string;\n\n /**\n * Aria-label for the \"next month\" button in day picker.\n */\n nextMonthAriaLabel?: string;\n\n /**\n * Aria-label for the \"previous year\" button in month picker.\n */\n prevYearAriaLabel?: string;\n\n /**\n * Aria-label for the \"next year\" button in month picker.\n */\n nextYearAriaLabel?: string;\n\n /**\n * Aria-label for the \"previous year range\" button in year picker.\n */\n prevYearRangeAriaLabel?: string;\n\n /**\n * Aria-label for the \"next year range\" button in year picker.\n */\n nextYearRangeAriaLabel?: string;\n\n /**\n * Aria-label format string for the header button in the month picker. Should have 1 string param, e.g. \"`{0}`,\n * select to change the year\". This aria-label will only be applied if the year picker is enabled; otherwise\n * the label will default to the header string, e.g. \"2019\".\n */\n monthPickerHeaderAriaLabel?: string;\n\n /**\n * Aria-label format string for the header button in the year picker.\n * Should have 1 string param, e.g. \"`{0}`, select to change the month\"\n */\n yearPickerHeaderAriaLabel?: string;\n\n /**\n * Aria-label for the \"close\" button.\n */\n closeButtonAriaLabel?: string;\n\n /**\n * Aria-label format string for the week number header. Should have 1 string param, e.g. \"week number `{0}`\"\n */\n weekNumberFormatString?: string;\n\n /**\n * Aria-label format string for the currently selected date. Should have 1 string param, e.g. \"Selected date `{0}`\"\n */\n selectedDateFormatString?: string;\n\n /**\n * Aria-label format string for today's date. Should have 1 string param, e.g. \"Today's date `{0}`\"\n */\n todayDateFormatString?: string;\n\n /**\n * Aria-label for when a date is marked\n */\n dayMarkedAriaLabel?: string;\n}\n"],"names":[],"mappings":"AAqDA,WAyEC"}
1
+ {"version":3,"sources":["dateFormatting.types.ts"],"sourcesContent":["export interface DateGridStrings {\n /**\n * An array of strings for the full names of months.\n * The array is 0-based, so months[0] should be the full name of January.\n */\n months: string[];\n\n /**\n * An array of strings for the short names of months.\n * The array is 0-based, so shortMonths[0] should be the short name of January.\n */\n shortMonths: string[];\n\n /**\n * An array of strings for the full names of days of the week.\n * The array is 0-based, so days[0] should be the full name of Sunday.\n */\n days: string[];\n\n /**\n * An array of strings for the initials of the days of the week.\n * The array is 0-based, so days[0] should be the initial of Sunday.\n */\n shortDays: string[];\n}\n\nexport interface DateFormatting {\n /**\n * Get a localized string for a day.\n */\n formatDay: (date: Date) => string;\n\n /**\n * Get a localized string for a month.\n */\n formatMonth: (date: Date, strings: DateGridStrings) => string;\n\n /**\n * Get a localized string for a year.\n */\n formatYear: (date: Date) => string;\n\n /**\n * Get a localized string for a month, day, and year.\n */\n formatMonthDayYear: (date: Date, strings: DateGridStrings) => string;\n\n /**\n * Get a localized string for a month and year.\n */\n formatMonthYear: (date: Date, strings: DateGridStrings) => string;\n}\n\nexport interface CalendarStrings extends DateGridStrings {\n /**\n * String to render for button to direct the user to today's date.\n */\n goToToday: string;\n\n /**\n * Aria-label for the \"previous month\" button in day picker.\n */\n prevMonthAriaLabel?: string;\n\n /**\n * Aria-label for the \"next month\" button in day picker.\n */\n nextMonthAriaLabel?: string;\n\n /**\n * Aria-label for the \"previous year\" button in month picker.\n */\n prevYearAriaLabel?: string;\n\n /**\n * Aria-label for the \"next year\" button in month picker.\n */\n nextYearAriaLabel?: string;\n\n /**\n * Aria-label for the \"previous year range\" button in year picker.\n */\n prevYearRangeAriaLabel?: string;\n\n /**\n * Aria-label for the \"next year range\" button in year picker.\n */\n nextYearRangeAriaLabel?: string;\n\n /**\n * Aria-label format string for the header button in the month picker. Should have 1 string param, e.g. \"`{0}`,\n * select to change the year\". This aria-label will only be applied if the year picker is enabled; otherwise\n * the label will default to the header string, e.g. \"2019\".\n */\n monthPickerHeaderAriaLabel?: string;\n\n /**\n * Aria-label format string for the header button in the year picker.\n * Should have 1 string param, e.g. \"`{0}`, select to change the month\"\n */\n yearPickerHeaderAriaLabel?: string;\n\n /**\n * Aria-label for the \"close\" button.\n */\n closeButtonAriaLabel?: string;\n\n /**\n * Aria-label format string for the week number header. Should have 1 string param, e.g. \"week number `{0}`\"\n */\n weekNumberFormatString?: string;\n\n /**\n * Aria-label format string for the currently selected date. Should have 1 string param, e.g. \"Selected date `{0}`\"\n */\n selectedDateFormatString?: string;\n\n /**\n * Aria-label format string for today's date. Should have 1 string param, e.g. \"Today's date `{0}`\"\n */\n todayDateFormatString?: string;\n\n /**\n * Aria-label for when a date is marked\n */\n dayMarkedAriaLabel?: string;\n}\n"],"names":[],"mappings":"AAAA,WA8HC"}
@@ -1 +1 @@
1
- {"version":3,"sources":["dateGrid.types.ts"],"sourcesContent":["import { DayOfWeek, DateRangeType, FirstWeekOfYear } from '../constants';\n\nexport interface Day {\n /** `Date.toString()` value of current date */\n key: string;\n /** `Date.getDate()` value of current date */\n date: string;\n /** `Date` object of current date */\n originalDate: Date;\n /** Is current date is in the same month as \"today\" date */\n isInMonth: boolean;\n /** Is current date is \"today\" date */\n isToday: boolean;\n /** Is current date is selected */\n isSelected: boolean;\n /** Is current date within restriction boundaries */\n isInBounds: boolean;\n /** Is current date marked */\n isMarked: boolean;\n}\n\nexport interface AvailableDateOptions extends RestrictedDatesOptions {\n /** Date from which we start the search */\n initialDate: Date;\n /** Ideal available date */\n targetDate: Date;\n /** Direction of search (`1` - search in future / `-1` search in past) */\n direction: number;\n}\n\nexport interface RestrictedDatesOptions {\n /**\n * If set the Calendar will not allow navigation to or selection of a date earlier than this value.\n */\n minDate?: Date;\n\n /**\n * If set the Calendar will not allow navigation to or selection of a date later than this value.\n */\n maxDate?: Date;\n\n /**\n * If set the Calendar will not allow selection of dates in this array.\n */\n restrictedDates?: Date[];\n}\n\nexport interface DayGridOptions extends RestrictedDatesOptions {\n /**\n * The first day of the week for your locale.\n */\n firstDayOfWeek: DayOfWeek;\n\n /**\n * Defines when the first week of the year should start, FirstWeekOfYear.FirstDay,\n * FirstWeekOfYear.FirstFullWeek or FirstWeekOfYear.FirstFourDayWeek are the possible values\n */\n firstWeekOfYear: FirstWeekOfYear;\n\n /**\n * The date range type indicating how many days should be selected as the user\n * selects days\n */\n dateRangeType: DateRangeType;\n\n /**\n * The number of days to select while dateRangeType === DateRangeType.Day. Used in order to have multi-day\n * views.\n */\n daysToSelectInDayView?: number;\n\n /**\n * Value of today. If unspecified, current time in client machine will be used.\n */\n today?: Date;\n\n /**\n * Whether the calendar should show the week number (weeks 1 to 53) before each week row\n */\n showWeekNumbers?: boolean;\n\n /**\n * The days that are selectable when `dateRangeType` is WorkWeek.\n * If `dateRangeType` is not WorkWeek this property does nothing.\n */\n workWeekDays?: DayOfWeek[];\n\n /**\n * Which days in the generated grid should be marked.\n */\n markedDays?: Date[];\n\n /**\n * The currently selected date\n */\n selectedDate: Date;\n\n /**\n * The currently navigated date\n */\n navigatedDate: Date;\n\n /**\n * How many weeks to show by default. If not provided, will show enough weeks to display the current\n * month, between 4 and 6 depending\n */\n weeksToShow?: number;\n}\n"],"names":[],"mappings":"AA+CA,WA4DC"}
1
+ {"version":3,"sources":["dateGrid.types.ts"],"sourcesContent":["import { DayOfWeek, DateRangeType, FirstWeekOfYear } from '../constants';\n\nexport interface Day {\n /** `Date.toString()` value of current date */\n key: string;\n /** `Date.getDate()` value of current date */\n date: string;\n /** `Date` object of current date */\n originalDate: Date;\n /** Is current date is in the same month as \"today\" date */\n isInMonth: boolean;\n /** Is current date is \"today\" date */\n isToday: boolean;\n /** Is current date is selected */\n isSelected: boolean;\n /** Is current date within restriction boundaries */\n isInBounds: boolean;\n /** Is current date marked */\n isMarked: boolean;\n}\n\nexport interface AvailableDateOptions extends RestrictedDatesOptions {\n /** Date from which we start the search */\n initialDate: Date;\n /** Ideal available date */\n targetDate: Date;\n /** Direction of search (`1` - search in future / `-1` search in past) */\n direction: number;\n}\n\nexport interface RestrictedDatesOptions {\n /**\n * If set the Calendar will not allow navigation to or selection of a date earlier than this value.\n */\n minDate?: Date;\n\n /**\n * If set the Calendar will not allow navigation to or selection of a date later than this value.\n */\n maxDate?: Date;\n\n /**\n * If set the Calendar will not allow selection of dates in this array.\n */\n restrictedDates?: Date[];\n}\n\nexport interface DayGridOptions extends RestrictedDatesOptions {\n /**\n * The first day of the week for your locale.\n */\n firstDayOfWeek: DayOfWeek;\n\n /**\n * Defines when the first week of the year should start, FirstWeekOfYear.FirstDay,\n * FirstWeekOfYear.FirstFullWeek or FirstWeekOfYear.FirstFourDayWeek are the possible values\n */\n firstWeekOfYear: FirstWeekOfYear;\n\n /**\n * The date range type indicating how many days should be selected as the user\n * selects days\n */\n dateRangeType: DateRangeType;\n\n /**\n * The number of days to select while dateRangeType === DateRangeType.Day. Used in order to have multi-day\n * views.\n */\n daysToSelectInDayView?: number;\n\n /**\n * Value of today. If unspecified, current time in client machine will be used.\n */\n today?: Date;\n\n /**\n * Whether the calendar should show the week number (weeks 1 to 53) before each week row\n */\n showWeekNumbers?: boolean;\n\n /**\n * The days that are selectable when `dateRangeType` is WorkWeek.\n * If `dateRangeType` is not WorkWeek this property does nothing.\n */\n workWeekDays?: DayOfWeek[];\n\n /**\n * Which days in the generated grid should be marked.\n */\n markedDays?: Date[];\n\n /**\n * The currently selected date\n */\n selectedDate: Date;\n\n /**\n * The currently navigated date\n */\n navigatedDate: Date;\n\n /**\n * How many weeks to show by default. If not provided, will show enough weeks to display the current\n * month, between 4 and 6 depending\n */\n weeksToShow?: number;\n}\n"],"names":[],"mappings":"AAAA,WA2GC"}
@@ -12,10 +12,10 @@ const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildc
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
13
  var AnimationDirection;
14
14
  (function(AnimationDirection) {
15
- /**
15
+ AnimationDirection[AnimationDirection[/**
16
16
  * Grid will transition out and in horizontally
17
- */ AnimationDirection[AnimationDirection["Horizontal"] = 0] = "Horizontal";
18
- /**
17
+ */ "Horizontal"] = 0] = "Horizontal";
18
+ AnimationDirection[AnimationDirection[/**
19
19
  * Grid will transition out and in vertically
20
- */ AnimationDirection[AnimationDirection["Vertical"] = 1] = "Vertical";
20
+ */ "Vertical"] = 1] = "Vertical";
21
21
  })(AnimationDirection || (AnimationDirection = {}));
@@ -1 +1 @@
1
- {"version":3,"sources":["Calendar.types.js"],"sourcesContent":["import * as React from 'react';\nexport var AnimationDirection;\n(function(AnimationDirection) {\n /**\n * Grid will transition out and in horizontally\n */ AnimationDirection[AnimationDirection[\"Horizontal\"] = 0] = \"Horizontal\";\n /**\n * Grid will transition out and in vertically\n */ AnimationDirection[AnimationDirection[\"Vertical\"] = 1] = \"Vertical\";\n})(AnimationDirection || (AnimationDirection = {}));\n"],"names":["AnimationDirection"],"mappings":";;;;+BACWA;;;eAAAA;;;;iEADY;AAChB,IAAIA;AACV,CAAA,SAASA,kBAAkB;IACxB;;GAED,GAAGA,kBAAkB,CAACA,kBAAkB,CAAC,aAAa,GAAG,EAAE,GAAG;IAC7D;;GAED,GAAGA,kBAAkB,CAACA,kBAAkB,CAAC,WAAW,GAAG,EAAE,GAAG;AAC/D,CAAA,EAAGA,sBAAuBA,CAAAA,qBAAqB,CAAC,CAAA"}
1
+ {"version":3,"sources":["Calendar.types.js"],"sourcesContent":["import * as React from 'react';\nexport var AnimationDirection;\n(function(AnimationDirection) {\n AnimationDirection[AnimationDirection[/**\n * Grid will transition out and in horizontally\n */ \"Horizontal\"] = 0] = \"Horizontal\";\n AnimationDirection[AnimationDirection[/**\n * Grid will transition out and in vertically\n */ \"Vertical\"] = 1] = \"Vertical\";\n})(AnimationDirection || (AnimationDirection = {}));\n"],"names":["AnimationDirection"],"mappings":";;;;+BACWA;;;eAAAA;;;;iEADY;AAChB,IAAIA;AACV,CAAA,SAASA,kBAAkB;IACxBA,kBAAkB,CAACA,kBAAkB,CAAC;;GAEvC,GAAG,aAAa,GAAG,EAAE,GAAG;IACvBA,kBAAkB,CAACA,kBAAkB,CAAC;;GAEvC,GAAG,WAAW,GAAG,EAAE,GAAG;AACzB,CAAA,EAAGA,sBAAuBA,CAAAA,qBAAqB,CAAC,CAAA"}
@@ -9,11 +9,11 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
- useWeekCornerStyles: function() {
13
- return useWeekCornerStyles;
14
- },
15
12
  weekCornersClassNames: function() {
16
13
  return weekCornersClassNames;
14
+ },
15
+ useWeekCornerStyles: function() {
16
+ return useWeekCornerStyles;
17
17
  }
18
18
  });
19
19
  const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
@@ -1 +1 @@
1
- {"version":3,"sources":["useWeekCornerStyles.styles.js"],"sourcesContent":["import { useFluent_unstable } from '@fluentui/react-shared-contexts';\nimport { mergeClasses } from '@griffel/react';\nimport { DateRangeType } from '../../utils/constants';\nimport { getDateRangeArray } from '../../utils/index';\n/**\n * @internal\n */\nexport const weekCornersClassNames = {\n topRightCornerDate: 'fui-CalendarDayGrid__topRightCornerDate',\n topLeftCornerDate: 'fui-CalendarDayGrid__topLeftCornerDate',\n bottomRightCornerDate: 'fui-CalendarDayGrid__bottomRightCornerDate',\n bottomLeftCornerDate: 'fui-CalendarDayGrid__bottomLeftCornerDate'\n};\n/**\n * @internal\n */\nexport function useWeekCornerStyles(props) {\n const {\n dir\n } = useFluent_unstable();\n /**\n *\n * Section for setting the rounded corner styles on individual day cells. Individual day cells need different\n * corners to be rounded depending on which date range type and where the cell is located in the current grid.\n * If we just round all of the corners, there isn't a good overlap and we get gaps between contiguous day boxes\n * in Edge browser.\n *\n */\n const getWeekCornerStyles = initialWeeks => {\n const weekCornersStyled = {};\n /* need to handle setting all of the corners on arbitrarily shaped blobs\n __\n __|A |\n |B |C |__\n |D |E |F |\n in this case, A needs top left rounded, top right rounded\n B needs top left rounded\n C doesn't need any rounding\n D needs bottom left rounded\n E doesn't need any rounding\n F needs top right rounding\n */ // cut off the animation transition weeks\n const weeks = initialWeeks.slice(1, initialWeeks.length - 1);\n // if there's an item above, lose both top corners. Item below, lose both bottom corners, etc.\n weeks.forEach((week, weekIndex) => {\n week.forEach((day, dayIndex) => {\n const above = weeks[weekIndex - 1] && weeks[weekIndex - 1][dayIndex] && isInSameHoverRange(weeks[weekIndex - 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex - 1][dayIndex].isSelected, day.isSelected);\n const below = weeks[weekIndex + 1] && weeks[weekIndex + 1][dayIndex] && isInSameHoverRange(weeks[weekIndex + 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex + 1][dayIndex].isSelected, day.isSelected);\n const left = weeks[weekIndex][dayIndex - 1] && isInSameHoverRange(weeks[weekIndex][dayIndex - 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex - 1].isSelected, day.isSelected);\n const right = weeks[weekIndex][dayIndex + 1] && isInSameHoverRange(weeks[weekIndex][dayIndex + 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex + 1].isSelected, day.isSelected);\n weekCornersStyled[weekIndex + '_' + dayIndex] = calculateRoundedStyles(above, below, left, right);\n });\n });\n return weekCornersStyled;\n };\n const calculateRoundedStyles = (above, below, left, right) => {\n const style = [];\n const roundedTopLeft = !above && !left;\n const roundedTopRight = !above && !right;\n const roundedBottomLeft = !below && !left;\n const roundedBottomRight = !below && !right;\n if (roundedTopLeft) {\n style.push(dir === 'rtl' ? weekCornersClassNames.topRightCornerDate : weekCornersClassNames.topLeftCornerDate);\n }\n if (roundedTopRight) {\n style.push(dir === 'rtl' ? weekCornersClassNames.topLeftCornerDate : weekCornersClassNames.topRightCornerDate);\n }\n if (roundedBottomLeft) {\n style.push(dir === 'rtl' ? weekCornersClassNames.bottomRightCornerDate : weekCornersClassNames.bottomLeftCornerDate);\n }\n if (roundedBottomRight) {\n style.push(dir === 'rtl' ? weekCornersClassNames.bottomLeftCornerDate : weekCornersClassNames.bottomRightCornerDate);\n }\n return mergeClasses(...style);\n };\n const isInSameHoverRange = (date1, date2, date1Selected, date2Selected) => {\n const {\n dateRangeType,\n firstDayOfWeek,\n workWeekDays\n } = props;\n // The hover state looks weird with non-contiguous days in work week view. In work week, show week hover state\n const dateRangeHoverType = dateRangeType === DateRangeType.WorkWeek ? DateRangeType.Week : dateRangeType;\n // we do not pass daysToSelectInDayView because we handle setting those styles dyanamically in onMouseOver\n const dateRange = getDateRangeArray(date1, dateRangeHoverType, firstDayOfWeek, workWeekDays);\n if (date1Selected !== date2Selected) {\n // if one is selected and the other is not, they can't be in the same range\n return false;\n } else if (date1Selected && date2Selected) {\n // if they're both selected at the same time they must be in the same range\n return true;\n }\n // otherwise, both must be unselected, so check the dateRange\n return dateRange.filter(date => date.getTime() === date2.getTime()).length > 0;\n };\n return [getWeekCornerStyles, calculateRoundedStyles];\n}\n//# sourceMappingURL=useWeekCornerStyles.styles.js.map"],"names":["useWeekCornerStyles","weekCornersClassNames","topRightCornerDate","topLeftCornerDate","bottomRightCornerDate","bottomLeftCornerDate","props","dir","useFluent_unstable","getWeekCornerStyles","initialWeeks","weekCornersStyled","weeks","slice","length","forEach","week","weekIndex","day","dayIndex","above","isInSameHoverRange","originalDate","isSelected","below","left","right","calculateRoundedStyles","style","roundedTopLeft","roundedTopRight","roundedBottomLeft","roundedBottomRight","push","mergeClasses","date1","date2","date1Selected","date2Selected","dateRangeType","firstDayOfWeek","workWeekDays","dateRangeHoverType","DateRangeType","WorkWeek","Week","dateRange","getDateRangeArray","filter","date","getTime"],"mappings":";;;;;;;;;;;IAgBgBA,mBAAmB;eAAnBA;;IATHC,qBAAqB;eAArBA;;;qCAPsB;uBACN;2BACC;uBACI;AAI3B,MAAMA,wBAAwB;IACnCC,oBAAoB;IACpBC,mBAAmB;IACnBC,uBAAuB;IACvBC,sBAAsB;AACxB;AAIO,SAASL,oBAAoBM,KAAK;IACvC,MAAM,EACJC,GAAG,EACJ,G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,iBAAiBC,eAAe;YACzC,2EAA2E;YAC3E,OAAO;QACT;QACA,6DAA6D;QAC7D,OAAOQ,UAAUE,MAAM,CAACC,CAAAA,OAAQA,KAAKC,OAAO,OAAOd,MAAMc,OAAO,IAAIpC,MAAM,GAAG;IAC/E;IACA,OAAO;QAACL;QAAqBkB;KAAuB;AACtD,EACA,sDAAsD"}
1
+ {"version":3,"sources":["useWeekCornerStyles.styles.js"],"sourcesContent":["import { useFluent_unstable } from '@fluentui/react-shared-contexts';\nimport { mergeClasses } from '@griffel/react';\nimport { DateRangeType } from '../../utils/constants';\nimport { getDateRangeArray } from '../../utils/index';\n/**\n * @internal\n */\nexport const weekCornersClassNames = {\n topRightCornerDate: 'fui-CalendarDayGrid__topRightCornerDate',\n topLeftCornerDate: 'fui-CalendarDayGrid__topLeftCornerDate',\n bottomRightCornerDate: 'fui-CalendarDayGrid__bottomRightCornerDate',\n bottomLeftCornerDate: 'fui-CalendarDayGrid__bottomLeftCornerDate'\n};\n/**\n * @internal\n */\nexport function useWeekCornerStyles(props) {\n const {\n dir\n } = useFluent_unstable();\n /**\n *\n * Section for setting the rounded corner styles on individual day cells. Individual day cells need different\n * corners to be rounded depending on which date range type and where the cell is located in the current grid.\n * If we just round all of the corners, there isn't a good overlap and we get gaps between contiguous day boxes\n * in Edge browser.\n *\n */\n const getWeekCornerStyles = initialWeeks => {\n const weekCornersStyled = {};\n /* need to handle setting all of the corners on arbitrarily shaped blobs\n __\n __|A |\n |B |C |__\n |D |E |F |\n in this case, A needs top left rounded, top right rounded\n B needs top left rounded\n C doesn't need any rounding\n D needs bottom left rounded\n E doesn't need any rounding\n F needs top right rounding\n */ // cut off the animation transition weeks\n const weeks = initialWeeks.slice(1, initialWeeks.length - 1);\n // if there's an item above, lose both top corners. Item below, lose both bottom corners, etc.\n weeks.forEach((week, weekIndex) => {\n week.forEach((day, dayIndex) => {\n const above = weeks[weekIndex - 1] && weeks[weekIndex - 1][dayIndex] && isInSameHoverRange(weeks[weekIndex - 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex - 1][dayIndex].isSelected, day.isSelected);\n const below = weeks[weekIndex + 1] && weeks[weekIndex + 1][dayIndex] && isInSameHoverRange(weeks[weekIndex + 1][dayIndex].originalDate, day.originalDate, weeks[weekIndex + 1][dayIndex].isSelected, day.isSelected);\n const left = weeks[weekIndex][dayIndex - 1] && isInSameHoverRange(weeks[weekIndex][dayIndex - 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex - 1].isSelected, day.isSelected);\n const right = weeks[weekIndex][dayIndex + 1] && isInSameHoverRange(weeks[weekIndex][dayIndex + 1].originalDate, day.originalDate, weeks[weekIndex][dayIndex + 1].isSelected, day.isSelected);\n weekCornersStyled[weekIndex + '_' + dayIndex] = calculateRoundedStyles(above, below, left, right);\n });\n });\n return weekCornersStyled;\n };\n const calculateRoundedStyles = (above, below, left, right) => {\n const style = [];\n const roundedTopLeft = !above && !left;\n const roundedTopRight = !above && !right;\n const roundedBottomLeft = !below && !left;\n const roundedBottomRight = !below && !right;\n if (roundedTopLeft) {\n style.push(dir === 'rtl' ? weekCornersClassNames.topRightCornerDate : weekCornersClassNames.topLeftCornerDate);\n }\n if (roundedTopRight) {\n style.push(dir === 'rtl' ? weekCornersClassNames.topLeftCornerDate : weekCornersClassNames.topRightCornerDate);\n }\n if (roundedBottomLeft) {\n style.push(dir === 'rtl' ? weekCornersClassNames.bottomRightCornerDate : weekCornersClassNames.bottomLeftCornerDate);\n }\n if (roundedBottomRight) {\n style.push(dir === 'rtl' ? weekCornersClassNames.bottomLeftCornerDate : weekCornersClassNames.bottomRightCornerDate);\n }\n return mergeClasses(...style);\n };\n const isInSameHoverRange = (date1, date2, date1Selected, date2Selected) => {\n const {\n dateRangeType,\n firstDayOfWeek,\n workWeekDays\n } = props;\n // The hover state looks weird with non-contiguous days in work week view. In work week, show week hover state\n const dateRangeHoverType = dateRangeType === DateRangeType.WorkWeek ? DateRangeType.Week : dateRangeType;\n // we do not pass daysToSelectInDayView because we handle setting those styles dyanamically in onMouseOver\n const dateRange = getDateRangeArray(date1, dateRangeHoverType, firstDayOfWeek, workWeekDays);\n if (date1Selected !== date2Selected) {\n // if one is selected and the other is not, they can't be in the same range\n return false;\n } else if (date1Selected && date2Selected) {\n // if they're both selected at the same time they must be in the same range\n return true;\n }\n // otherwise, both must be unselected, so check the dateRange\n return dateRange.filter(date => date.getTime() === date2.getTime()).length > 0;\n };\n return [getWeekCornerStyles, calculateRoundedStyles];\n}\n//# sourceMappingURL=useWeekCornerStyles.styles.js.map"],"names":["weekCornersClassNames","useWeekCornerStyles","topRightCornerDate","topLeftCornerDate","bottomRightCornerDate","bottomLeftCornerDate","props","dir","useFluent_unstable","getWeekCornerStyles","initialWeeks","weekCornersStyled","weeks","slice","length","forEach","week","weekIndex","day","dayIndex","above","isInSameHoverRange","originalDate","isSelected","below","left","right","calculateRoundedStyles","style","roundedTopLeft","roundedTopRight","roundedBottomLeft","roundedBottomRight","push","mergeClasses","date1","date2","date1Selected","date2Selected","dateRangeType","firstDayOfWeek","workWeekDays","dateRangeHoverType","DateRangeType","WorkWeek","Week","dateRange","getDateRangeArray","filter","date","getTime"],"mappings":";;;;;;;;;;;IAOaA,qBAAqB;eAArBA;;IASGC,mBAAmB;eAAnBA;;;qCAhBmB;uBACN;2BACC;uBACI;AAI3B,MAAMD,wBAAwB;IACnCE,oBAAoB;IACpBC,mBAAmB;IACnBC,uBAAuB;IACvBC,sBAAsB;AACxB;AAIO,SAASJ,oBAAoBK,KAAK;IACvC,MAAM,EACJC,GAAG,EACJ,GAAGC,IAAAA,uCAAkB;IACtB;;;;;;;EAOA,GACA,MAAMC,sBAAsBC,CAAAA;QAC1B,MAAMC,oBAAoB,CAAC;QAC3B;;;;;;;;;;;IAWA,GAAG,yCAAyC;QAC5C,MAAMC,QAAQF,aAAaG,KAAK,CAAC,GAAGH,aAAaI,MAAM,GAAG;QAC1D,8FAA8F;QAC9FF,MAAMG,OAAO,CAAC,CAACC,MAAMC;YACnBD,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 "use strict";
1
+ "use strict";
4
2
  Object.defineProperty(exports, "__esModule", {
5
3
  value: true
6
4
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["CalendarPicker.types.js"],"sourcesContent":["/**\n * @internal\n */ export { };\n"],"names":[],"mappings":"AAAA;;CAEC"}
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -15,35 +15,71 @@ _export(exports, {
15
15
  Calendar: function() {
16
16
  return _Calendar.Calendar;
17
17
  },
18
+ calendarClassNames: function() {
19
+ return _Calendar.calendarClassNames;
20
+ },
21
+ defaultCalendarStrings: function() {
22
+ return _Calendar.defaultCalendarStrings;
23
+ },
24
+ useCalendarStyles_unstable: function() {
25
+ return _Calendar.useCalendarStyles_unstable;
26
+ },
18
27
  CalendarDay: function() {
19
28
  return _CalendarDay.CalendarDay;
20
29
  },
30
+ calendarDayClassNames: function() {
31
+ return _CalendarDay.calendarDayClassNames;
32
+ },
33
+ useCalendarDayStyles_unstable: function() {
34
+ return _CalendarDay.useCalendarDayStyles_unstable;
35
+ },
21
36
  CalendarDayGrid: function() {
22
37
  return _CalendarDayGrid.CalendarDayGrid;
23
38
  },
39
+ calendarDayGridClassNames: function() {
40
+ return _CalendarDayGrid.calendarDayGridClassNames;
41
+ },
42
+ extraCalendarDayGridClassNames: function() {
43
+ return _CalendarDayGrid.extraCalendarDayGridClassNames;
44
+ },
45
+ useCalendarDayGridStyles_unstable: function() {
46
+ return _CalendarDayGrid.useCalendarDayGridStyles_unstable;
47
+ },
24
48
  CalendarMonth: function() {
25
49
  return _CalendarMonth.CalendarMonth;
26
50
  },
51
+ useCalendarMonthStyles_unstable: function() {
52
+ return _CalendarMonth.useCalendarMonthStyles_unstable;
53
+ },
54
+ calendarPickerClassNames: function() {
55
+ return _CalendarPicker.calendarPickerClassNames;
56
+ },
57
+ useCalendarPickerStyles_unstable: function() {
58
+ return _CalendarPicker.useCalendarPickerStyles_unstable;
59
+ },
27
60
  CalendarYear: function() {
28
61
  return _CalendarYear.CalendarYear;
29
62
  },
63
+ useCalendarYearStyles_unstable: function() {
64
+ return _CalendarYear.useCalendarYearStyles_unstable;
65
+ },
30
66
  DAYS_IN_WEEK: function() {
31
67
  return _utils.DAYS_IN_WEEK;
32
68
  },
69
+ DateRangeType: function() {
70
+ return _utils.DateRangeType;
71
+ },
72
+ DayOfWeek: function() {
73
+ return _utils.DayOfWeek;
74
+ },
33
75
  DEFAULT_CALENDAR_STRINGS: function() {
34
76
  return _utils.DEFAULT_CALENDAR_STRINGS;
35
77
  },
36
- DEFAULT_DATE_FORMATTING: function() {
37
- return _utils.DEFAULT_DATE_FORMATTING;
38
- },
39
78
  DEFAULT_DATE_GRID_STRINGS: function() {
40
79
  return _utils.DEFAULT_DATE_GRID_STRINGS;
41
80
  },
42
- DateRangeType: function() {
43
- return _utils.DateRangeType;
44
- },
45
- DayOfWeek: function() {
46
- return _utils.DayOfWeek;
81
+ DEFAULT_DATE_FORMATTING: function() {
82
+ return _utils.DEFAULT_DATE_FORMATTING;
47
83
  },
48
84
  FirstWeekOfYear: function() {
49
85
  return _utils.FirstWeekOfYear;
@@ -66,30 +102,12 @@ _export(exports, {
66
102
  addYears: function() {
67
103
  return _utils.addYears;
68
104
  },
69
- calendarClassNames: function() {
70
- return _Calendar.calendarClassNames;
71
- },
72
- calendarDayClassNames: function() {
73
- return _CalendarDay.calendarDayClassNames;
74
- },
75
- calendarDayGridClassNames: function() {
76
- return _CalendarDayGrid.calendarDayGridClassNames;
77
- },
78
- calendarPickerClassNames: function() {
79
- return _CalendarPicker.calendarPickerClassNames;
80
- },
81
105
  compareDatePart: function() {
82
106
  return _utils.compareDatePart;
83
107
  },
84
108
  compareDates: function() {
85
109
  return _utils.compareDates;
86
110
  },
87
- defaultCalendarStrings: function() {
88
- return _Calendar.defaultCalendarStrings;
89
- },
90
- extraCalendarDayGridClassNames: function() {
91
- return _CalendarDayGrid.extraCalendarDayGridClassNames;
92
- },
93
111
  getDatePartHashValue: function() {
94
112
  return _utils.getDatePartHashValue;
95
113
  },
@@ -125,24 +143,6 @@ _export(exports, {
125
143
  },
126
144
  setMonth: function() {
127
145
  return _utils.setMonth;
128
- },
129
- useCalendarDayGridStyles_unstable: function() {
130
- return _CalendarDayGrid.useCalendarDayGridStyles_unstable;
131
- },
132
- useCalendarDayStyles_unstable: function() {
133
- return _CalendarDay.useCalendarDayStyles_unstable;
134
- },
135
- useCalendarMonthStyles_unstable: function() {
136
- return _CalendarMonth.useCalendarMonthStyles_unstable;
137
- },
138
- useCalendarPickerStyles_unstable: function() {
139
- return _CalendarPicker.useCalendarPickerStyles_unstable;
140
- },
141
- useCalendarStyles_unstable: function() {
142
- return _Calendar.useCalendarStyles_unstable;
143
- },
144
- useCalendarYearStyles_unstable: function() {
145
- return _CalendarYear.useCalendarYearStyles_unstable;
146
146
  }
147
147
  });
148
148
  const _Calendar = require("./Calendar");
@@ -1 +1 @@
1
- {"version":3,"sources":["index.js"],"sourcesContent":["export { AnimationDirection, Calendar, calendarClassNames, defaultCalendarStrings, useCalendarStyles_unstable } from './Calendar';\nexport { CalendarDay, calendarDayClassNames, useCalendarDayStyles_unstable } from './CalendarDay';\nexport { CalendarDayGrid, calendarDayGridClassNames, extraCalendarDayGridClassNames, useCalendarDayGridStyles_unstable } from './CalendarDayGrid';\nexport { CalendarMonth, useCalendarMonthStyles_unstable } from './CalendarMonth';\nexport { calendarPickerClassNames, useCalendarPickerStyles_unstable } from './CalendarPicker';\nexport { CalendarYear, useCalendarYearStyles_unstable } from './CalendarYear';\nexport { DAYS_IN_WEEK, DateRangeType, DayOfWeek, DEFAULT_CALENDAR_STRINGS, DEFAULT_DATE_GRID_STRINGS, DEFAULT_DATE_FORMATTING, FirstWeekOfYear, MonthOfYear, TimeConstants, addDays, addMonths, addWeeks, addYears, compareDatePart, compareDates, getDatePartHashValue, getDateRangeArray, getEndDateOfWeek, getMonthEnd, getMonthStart, getStartDateOfWeek, getWeekNumber, getWeekNumbersInMonth, getYearEnd, getYearStart, isInDateRangeArray, setMonth } from './utils';\n"],"names":["AnimationDirection","Calendar","CalendarDay","CalendarDayGrid","CalendarMonth","CalendarYear","DAYS_IN_WEEK","DEFAULT_CALENDAR_STRINGS","DEFAULT_DATE_FORMATTING","DEFAULT_DATE_GRID_STRINGS","DateRangeType","DayOfWeek","FirstWeekOfYear","MonthOfYear","TimeConstants","addDays","addMonths","addWeeks","addYears","calendarClassNames","calendarDayClassNames","calendarDayGridClassNames","calendarPickerClassNames","compareDatePart","compareDates","defaultCalendarStrings","extraCalendarDayGridClassNames","getDatePartHashValue","getDateRangeArray","getEndDateOfWeek","getMonthEnd","getMonthStart","getStartDateOfWeek","getWeekNumber","getWeekNumbersInMonth","getYearEnd","getYearStart","isInDateRangeArray","setMonth","useCalendarDayGridStyles_unstable","useCalendarDayStyles_unstable","useCalendarMonthStyles_unstable","useCalendarPickerStyles_unstable","useCalendarStyles_unstable","useCalendarYearStyles_unstable"],"mappings":";;;;;;;;;;;IAASA,kBAAkB;eAAlBA,4BAAkB;;IAAEC,QAAQ;eAARA,kBAAQ;;IAC5BC,WAAW;eAAXA,wBAAW;;IACXC,eAAe;eAAfA,gCAAe;;IACfC,aAAa;eAAbA,4BAAa;;IAEbC,YAAY;eAAZA,0BAAY;;IACZC,YAAY;eAAZA,mBAAY;;IAA4BC,wBAAwB;eAAxBA,+BAAwB;;IAA6BC,uBAAuB;eAAvBA,8BAAuB;;IAAlDC,yBAAyB;eAAzBA,gCAAyB;;IAA7EC,aAAa;eAAbA,oBAAa;;IAAEC,SAAS;eAATA,gBAAS;;IAAgFC,eAAe;eAAfA,sBAAe;;IAAEC,WAAW;eAAXA,kBAAW;;IAAEC,aAAa;eAAbA,oBAAa;;IAAEC,OAAO;eAAPA,cAAO;;IAAEC,SAAS;eAATA,gBAAS;;IAAEC,QAAQ;eAARA,eAAQ;;IAAEC,QAAQ;eAARA,eAAQ;;IAN3KC,kBAAkB;eAAlBA,4BAAkB;;IACnCC,qBAAqB;eAArBA,kCAAqB;;IACjBC,yBAAyB;eAAzBA,0CAAyB;;IAE1CC,wBAAwB;eAAxBA,wCAAwB;;IAEmLC,eAAe;eAAfA,sBAAe;;IAAEC,YAAY;eAAZA,mBAAY;;IANtLC,sBAAsB;eAAtBA,gCAAsB;;IAE5BC,8BAA8B;eAA9BA,+CAA8B;;IAIgKC,oBAAoB;eAApBA,2BAAoB;;IAAEC,iBAAiB;eAAjBA,wBAAiB;;IAAEC,gBAAgB;eAAhBA,uBAAgB;;IAAEC,WAAW;eAAXA,kBAAW;;IAAEC,aAAa;eAAbA,oBAAa;;IAAEC,kBAAkB;eAAlBA,yBAAkB;;IAAEC,aAAa;eAAbA,oBAAa;;IAAEC,qBAAqB;eAArBA,4BAAqB;;IAAEC,UAAU;eAAVA,iBAAU;;IAAEC,YAAY;eAAZA,mBAAY;;IAAEC,kBAAkB;eAAlBA,yBAAkB;;IAAEC,QAAQ;eAARA,eAAQ;;IAJrWC,iCAAiC;eAAjCA,kDAAiC;;IADzEC,6BAA6B;eAA7BA,0CAA6B;;IAElDC,+BAA+B;eAA/BA,8CAA+B;;IACpBC,gCAAgC;eAAhCA,gDAAgC;;IAJgBC,0BAA0B;eAA1BA,oCAA0B;;IAKtFC,8BAA8B;eAA9BA,4CAA8B;;;0BALgE;6BACnC;iCAC4C;+BAC/D;gCACY;8BACd;uBACqY"}
1
+ {"version":3,"sources":["index.js"],"sourcesContent":["export { AnimationDirection, Calendar, calendarClassNames, defaultCalendarStrings, useCalendarStyles_unstable } from './Calendar';\nexport { CalendarDay, calendarDayClassNames, useCalendarDayStyles_unstable } from './CalendarDay';\nexport { CalendarDayGrid, calendarDayGridClassNames, extraCalendarDayGridClassNames, useCalendarDayGridStyles_unstable } from './CalendarDayGrid';\nexport { CalendarMonth, useCalendarMonthStyles_unstable } from './CalendarMonth';\nexport { calendarPickerClassNames, useCalendarPickerStyles_unstable } from './CalendarPicker';\nexport { CalendarYear, useCalendarYearStyles_unstable } from './CalendarYear';\nexport { DAYS_IN_WEEK, DateRangeType, DayOfWeek, DEFAULT_CALENDAR_STRINGS, DEFAULT_DATE_GRID_STRINGS, DEFAULT_DATE_FORMATTING, FirstWeekOfYear, MonthOfYear, TimeConstants, addDays, addMonths, addWeeks, addYears, compareDatePart, compareDates, getDatePartHashValue, getDateRangeArray, getEndDateOfWeek, getMonthEnd, getMonthStart, getStartDateOfWeek, getWeekNumber, getWeekNumbersInMonth, getYearEnd, getYearStart, isInDateRangeArray, setMonth } from './utils';\n"],"names":["AnimationDirection","Calendar","calendarClassNames","defaultCalendarStrings","useCalendarStyles_unstable","CalendarDay","calendarDayClassNames","useCalendarDayStyles_unstable","CalendarDayGrid","calendarDayGridClassNames","extraCalendarDayGridClassNames","useCalendarDayGridStyles_unstable","CalendarMonth","useCalendarMonthStyles_unstable","calendarPickerClassNames","useCalendarPickerStyles_unstable","CalendarYear","useCalendarYearStyles_unstable","DAYS_IN_WEEK","DateRangeType","DayOfWeek","DEFAULT_CALENDAR_STRINGS","DEFAULT_DATE_GRID_STRINGS","DEFAULT_DATE_FORMATTING","FirstWeekOfYear","MonthOfYear","TimeConstants","addDays","addMonths","addWeeks","addYears","compareDatePart","compareDates","getDatePartHashValue","getDateRangeArray","getEndDateOfWeek","getMonthEnd","getMonthStart","getStartDateOfWeek","getWeekNumber","getWeekNumbersInMonth","getYearEnd","getYearStart","isInDateRangeArray","setMonth"],"mappings":";;;;;;;;;;;IAASA,kBAAkB;eAAlBA,4BAAkB;;IAAEC,QAAQ;eAARA,kBAAQ;;IAAEC,kBAAkB;eAAlBA,4BAAkB;;IAAEC,sBAAsB;eAAtBA,gCAAsB;;IAAEC,0BAA0B;eAA1BA,oCAA0B;;IACpGC,WAAW;eAAXA,wBAAW;;IAAEC,qBAAqB;eAArBA,kCAAqB;;IAAEC,6BAA6B;eAA7BA,0CAA6B;;IACjEC,eAAe;eAAfA,gCAAe;;IAAEC,yBAAyB;eAAzBA,0CAAyB;;IAAEC,8BAA8B;eAA9BA,+CAA8B;;IAAEC,iCAAiC;eAAjCA,kDAAiC;;IAC7GC,aAAa;eAAbA,4BAAa;;IAAEC,+BAA+B;eAA/BA,8CAA+B;;IAC9CC,wBAAwB;eAAxBA,wCAAwB;;IAAEC,gCAAgC;eAAhCA,gDAAgC;;IAC1DC,YAAY;eAAZA,0BAAY;;IAAEC,8BAA8B;eAA9BA,4CAA8B;;IAC5CC,YAAY;eAAZA,mBAAY;;IAAEC,aAAa;eAAbA,oBAAa;;IAAEC,SAAS;eAATA,gBAAS;;IAAEC,wBAAwB;eAAxBA,+BAAwB;;IAAEC,yBAAyB;eAAzBA,gCAAyB;;IAAEC,uBAAuB;eAAvBA,8BAAuB;;IAAEC,eAAe;eAAfA,sBAAe;;IAAEC,WAAW;eAAXA,kBAAW;;IAAEC,aAAa;eAAbA,oBAAa;;IAAEC,OAAO;eAAPA,cAAO;;IAAEC,SAAS;eAATA,gBAAS;;IAAEC,QAAQ;eAARA,eAAQ;;IAAEC,QAAQ;eAARA,eAAQ;;IAAEC,eAAe;eAAfA,sBAAe;;IAAEC,YAAY;eAAZA,mBAAY;;IAAEC,oBAAoB;eAApBA,2BAAoB;;IAAEC,iBAAiB;eAAjBA,wBAAiB;;IAAEC,gBAAgB;eAAhBA,uBAAgB;;IAAEC,WAAW;eAAXA,kBAAW;;IAAEC,aAAa;eAAbA,oBAAa;;IAAEC,kBAAkB;eAAlBA,yBAAkB;;IAAEC,aAAa;eAAbA,oBAAa;;IAAEC,qBAAqB;eAArBA,4BAAqB;;IAAEC,UAAU;eAAVA,iBAAU;;IAAEC,YAAY;eAAZA,mBAAY;;IAAEC,kBAAkB;eAAlBA,yBAAkB;;IAAEC,QAAQ;eAARA,eAAQ;;;0BANrU;6BACnC;iCAC4C;+BAC/D;gCACY;8BACd;uBACqY"}
@@ -9,6 +9,12 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
+ EASING_FUNCTION_1: function() {
13
+ return EASING_FUNCTION_1;
14
+ },
15
+ EASING_FUNCTION_2: function() {
16
+ return EASING_FUNCTION_2;
17
+ },
12
18
  DURATION_1: function() {
13
19
  return DURATION_1;
14
20
  },
@@ -21,12 +27,6 @@ _export(exports, {
21
27
  DURATION_4: function() {
22
28
  return DURATION_4;
23
29
  },
24
- EASING_FUNCTION_1: function() {
25
- return EASING_FUNCTION_1;
26
- },
27
- EASING_FUNCTION_2: function() {
28
- return EASING_FUNCTION_2;
29
- },
30
30
  FADE_IN: function() {
31
31
  return FADE_IN;
32
32
  },
@@ -36,9 +36,6 @@ _export(exports, {
36
36
  SLIDE_DOWN_IN20: function() {
37
37
  return SLIDE_DOWN_IN20;
38
38
  },
39
- SLIDE_DOWN_OUT20: function() {
40
- return SLIDE_DOWN_OUT20;
41
- },
42
39
  SLIDE_LEFT_IN20: function() {
43
40
  return SLIDE_LEFT_IN20;
44
41
  },
@@ -48,6 +45,9 @@ _export(exports, {
48
45
  SLIDE_UP_IN20: function() {
49
46
  return SLIDE_UP_IN20;
50
47
  },
48
+ SLIDE_DOWN_OUT20: function() {
49
+ return SLIDE_DOWN_OUT20;
50
+ },
51
51
  SLIDE_UP_OUT20: function() {
52
52
  return SLIDE_UP_OUT20;
53
53
  },
@@ -1 +1 @@
1
- {"version":3,"sources":["animations.js"],"sourcesContent":["import { shorthands } from '@griffel/react';\nexport const EASING_FUNCTION_1 = 'cubic-bezier(.1,.9,.2,1)';\nexport const EASING_FUNCTION_2 = 'cubic-bezier(.1,.25,.75,.9)';\nexport const DURATION_1 = '0.167s';\nexport const DURATION_2 = '0.267s';\nexport const DURATION_3 = '0.367s';\nexport const DURATION_4 = '0.467s';\nexport const FADE_IN = {\n from: {\n opacity: 0\n },\n to: {\n opacity: 1\n }\n};\nexport const FADE_OUT = {\n from: {\n opacity: 1\n },\n to: {\n opacity: 0,\n visibility: 'hidden'\n }\n};\nexport const SLIDE_DOWN_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(0, -20px, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_LEFT_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(20px, 0, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_RIGHT_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(-20px, 0, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_UP_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(0, 20px, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_DOWN_OUT20 = {\n from: {\n transform: 'translate3d(0, 0, 0)'\n },\n to: {\n transform: 'translate3d(0, 20px, 0)'\n }\n};\nexport const SLIDE_UP_OUT20 = {\n from: {\n transform: 'translate3d(0, 0, 0)'\n },\n to: {\n transform: 'translate3d(0, -20px, 0)'\n }\n};\nexport const TRANSITION_ROW_DISAPPEARANCE = {\n '100%': {\n height: '0px',\n ...shorthands.overflow('hidden'),\n width: '0px'\n },\n '99.9%': {\n height: '28px',\n ...shorthands.overflow('visible'),\n width: '100%'\n },\n '0%': {\n height: '28px',\n ...shorthands.overflow('visible'),\n width: '100%'\n }\n};\n"],"names":["DURATION_1","DURATION_2","DURATION_3","DURATION_4","EASING_FUNCTION_1","EASING_FUNCTION_2","FADE_IN","FADE_OUT","SLIDE_DOWN_IN20","SLIDE_DOWN_OUT20","SLIDE_LEFT_IN20","SLIDE_RIGHT_IN20","SLIDE_UP_IN20","SLIDE_UP_OUT20","TRANSITION_ROW_DISAPPEARANCE","from","opacity","to","visibility","pointerEvents","transform","height","shorthands","overflow","width"],"mappings":";;;;;;;;;;;IAGaA,UAAU;eAAVA;;IACAC,UAAU;eAAVA;;IACAC,UAAU;eAAVA;;IACAC,UAAU;eAAVA;;IALAC,iBAAiB;eAAjBA;;IACAC,iBAAiB;eAAjBA;;IAKAC,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;IACX;IACA,SAAS;QACLH,QAAQ;QACR,GAAGC,iBAAU,CAACC,QAAQ,CAAC,UAAU;QACjCC,OAAO;IACX;IACA,MAAM;QACFH,QAAQ;QACR,GAAGC,iBAAU,CAACC,QAAQ,CAAC,UAAU;QACjCC,OAAO;IACX;AACJ"}
1
+ {"version":3,"sources":["animations.js"],"sourcesContent":["import { shorthands } from '@griffel/react';\nexport const EASING_FUNCTION_1 = 'cubic-bezier(.1,.9,.2,1)';\nexport const EASING_FUNCTION_2 = 'cubic-bezier(.1,.25,.75,.9)';\nexport const DURATION_1 = '0.167s';\nexport const DURATION_2 = '0.267s';\nexport const DURATION_3 = '0.367s';\nexport const DURATION_4 = '0.467s';\nexport const FADE_IN = {\n from: {\n opacity: 0\n },\n to: {\n opacity: 1\n }\n};\nexport const FADE_OUT = {\n from: {\n opacity: 1\n },\n to: {\n opacity: 0,\n visibility: 'hidden'\n }\n};\nexport const SLIDE_DOWN_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(0, -20px, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_LEFT_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(20px, 0, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_RIGHT_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(-20px, 0, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_UP_IN20 = {\n from: {\n pointerEvents: 'none',\n transform: 'translate3d(0, 20px, 0)'\n },\n to: {\n pointerEvents: 'auto',\n transform: 'translate3d(0, 0, 0)'\n }\n};\nexport const SLIDE_DOWN_OUT20 = {\n from: {\n transform: 'translate3d(0, 0, 0)'\n },\n to: {\n transform: 'translate3d(0, 20px, 0)'\n }\n};\nexport const SLIDE_UP_OUT20 = {\n from: {\n transform: 'translate3d(0, 0, 0)'\n },\n to: {\n transform: 'translate3d(0, -20px, 0)'\n }\n};\nexport const TRANSITION_ROW_DISAPPEARANCE = {\n '100%': {\n height: '0px',\n ...shorthands.overflow('hidden'),\n width: '0px'\n },\n '99.9%': {\n height: '28px',\n ...shorthands.overflow('visible'),\n width: '100%'\n },\n '0%': {\n height: '28px',\n ...shorthands.overflow('visible'),\n width: '100%'\n }\n};\n"],"names":["EASING_FUNCTION_1","EASING_FUNCTION_2","DURATION_1","DURATION_2","DURATION_3","DURATION_4","FADE_IN","FADE_OUT","SLIDE_DOWN_IN20","SLIDE_LEFT_IN20","SLIDE_RIGHT_IN20","SLIDE_UP_IN20","SLIDE_DOWN_OUT20","SLIDE_UP_OUT20","TRANSITION_ROW_DISAPPEARANCE","from","opacity","to","visibility","pointerEvents","transform","height","shorthands","overflow","width"],"mappings":";;;;;;;;;;;IACaA,iBAAiB;eAAjBA;;IACAC,iBAAiB;eAAjBA;;IACAC,UAAU;eAAVA;;IACAC,UAAU;eAAVA;;IACAC,UAAU;eAAVA;;IACAC,UAAU;eAAVA;;IACAC,OAAO;eAAPA;;IAQAC,QAAQ;eAARA;;IASAC,eAAe;eAAfA;;IAUAC,eAAe;eAAfA;;IAUAC,gBAAgB;eAAhBA;;IAUAC,aAAa;eAAbA;;IAUAC,gBAAgB;eAAhBA;;IAQAC,cAAc;eAAdA;;IAQAC,4BAA4B;eAA5BA;;;uBAhFc;AACpB,MAAMd,oBAAoB;AAC1B,MAAMC,oBAAoB;AAC1B,MAAMC,aAAa;AACnB,MAAMC,aAAa;AACnB,MAAMC,aAAa;AACnB,MAAMC,aAAa;AACnB,MAAMC,UAAU;IACnBS,MAAM;QACFC,SAAS;IACb;IACAC,IAAI;QACAD,SAAS;IACb;AACJ;AACO,MAAMT,WAAW;IACpBQ,MAAM;QACFC,SAAS;IACb;IACAC,IAAI;QACAD,SAAS;QACTE,YAAY;IAChB;AACJ;AACO,MAAMV,kBAAkB;IAC3BO,MAAM;QACFI,eAAe;QACfC,WAAW;IACf;IACAH,IAAI;QACAE,eAAe;QACfC,WAAW;IACf;AACJ;AACO,MAAMX,kBAAkB;IAC3BM,MAAM;QACFI,eAAe;QACfC,WAAW;IACf;IACAH,IAAI;QACAE,eAAe;QACfC,WAAW;IACf;AACJ;AACO,MAAMV,mBAAmB;IAC5BK,MAAM;QACFI,eAAe;QACfC,WAAW;IACf;IACAH,IAAI;QACAE,eAAe;QACfC,WAAW;IACf;AACJ;AACO,MAAMT,gBAAgB;IACzBI,MAAM;QACFI,eAAe;QACfC,WAAW;IACf;IACAH,IAAI;QACAE,eAAe;QACfC,WAAW;IACf;AACJ;AACO,MAAMR,mBAAmB;IAC5BG,MAAM;QACFK,WAAW;IACf;IACAH,IAAI;QACAG,WAAW;IACf;AACJ;AACO,MAAMP,iBAAiB;IAC1BE,MAAM;QACFK,WAAW;IACf;IACAH,IAAI;QACAG,WAAW;IACf;AACJ;AACO,MAAMN,+BAA+B;IACxC,QAAQ;QACJO,QAAQ;QACR,GAAGC,iBAAU,CAACC,QAAQ,CAAC,SAAS;QAChCC,OAAO;IACX;IACA,SAAS;QACLH,QAAQ;QACR,GAAGC,iBAAU,CAACC,QAAQ,CAAC,UAAU;QACjCC,OAAO;IACX;IACA,MAAM;QACFH,QAAQ;QACR,GAAGC,iBAAU,CAACC,QAAQ,CAAC,UAAU;QACjCC,OAAO;IACX;AACJ"}
@@ -11,20 +11,20 @@ function _export(target, all) {
11
11
  });
12
12
  }
13
13
  _export(exports, {
14
- DAYS_IN_WEEK: function() {
15
- return DAYS_IN_WEEK;
16
- },
17
- DateRangeType: function() {
18
- return DateRangeType;
19
- },
20
14
  DayOfWeek: function() {
21
15
  return DayOfWeek;
22
16
  },
17
+ MonthOfYear: function() {
18
+ return MonthOfYear;
19
+ },
23
20
  FirstWeekOfYear: function() {
24
21
  return FirstWeekOfYear;
25
22
  },
26
- MonthOfYear: function() {
27
- return MonthOfYear;
23
+ DateRangeType: function() {
24
+ return DateRangeType;
25
+ },
26
+ DAYS_IN_WEEK: function() {
27
+ return DAYS_IN_WEEK;
28
28
  },
29
29
  TimeConstants: function() {
30
30
  return TimeConstants;
@@ -1 +1 @@
1
- {"version":3,"sources":["constants.js"],"sourcesContent":["/**\n * The days of the week\n */ export var DayOfWeek;\n(function(DayOfWeek) {\n DayOfWeek[DayOfWeek[\"Sunday\"] = 0] = \"Sunday\";\n DayOfWeek[DayOfWeek[\"Monday\"] = 1] = \"Monday\";\n DayOfWeek[DayOfWeek[\"Tuesday\"] = 2] = \"Tuesday\";\n DayOfWeek[DayOfWeek[\"Wednesday\"] = 3] = \"Wednesday\";\n DayOfWeek[DayOfWeek[\"Thursday\"] = 4] = \"Thursday\";\n DayOfWeek[DayOfWeek[\"Friday\"] = 5] = \"Friday\";\n DayOfWeek[DayOfWeek[\"Saturday\"] = 6] = \"Saturday\";\n})(DayOfWeek || (DayOfWeek = {}));\nexport var MonthOfYear;\n(function(MonthOfYear) {\n MonthOfYear[MonthOfYear[\"January\"] = 0] = \"January\";\n MonthOfYear[MonthOfYear[\"February\"] = 1] = \"February\";\n MonthOfYear[MonthOfYear[\"March\"] = 2] = \"March\";\n MonthOfYear[MonthOfYear[\"April\"] = 3] = \"April\";\n MonthOfYear[MonthOfYear[\"May\"] = 4] = \"May\";\n MonthOfYear[MonthOfYear[\"June\"] = 5] = \"June\";\n MonthOfYear[MonthOfYear[\"July\"] = 6] = \"July\";\n MonthOfYear[MonthOfYear[\"August\"] = 7] = \"August\";\n MonthOfYear[MonthOfYear[\"September\"] = 8] = \"September\";\n MonthOfYear[MonthOfYear[\"October\"] = 9] = \"October\";\n MonthOfYear[MonthOfYear[\"November\"] = 10] = \"November\";\n MonthOfYear[MonthOfYear[\"December\"] = 11] = \"December\";\n})(MonthOfYear || (MonthOfYear = {}));\nexport var FirstWeekOfYear;\n(function(FirstWeekOfYear) {\n FirstWeekOfYear[FirstWeekOfYear[\"FirstDay\"] = 0] = \"FirstDay\";\n FirstWeekOfYear[FirstWeekOfYear[\"FirstFullWeek\"] = 1] = \"FirstFullWeek\";\n FirstWeekOfYear[FirstWeekOfYear[\"FirstFourDayWeek\"] = 2] = \"FirstFourDayWeek\";\n})(FirstWeekOfYear || (FirstWeekOfYear = {}));\nexport var DateRangeType;\n(function(DateRangeType) {\n DateRangeType[DateRangeType[\"Day\"] = 0] = \"Day\";\n DateRangeType[DateRangeType[\"Week\"] = 1] = \"Week\";\n DateRangeType[DateRangeType[\"Month\"] = 2] = \"Month\";\n DateRangeType[DateRangeType[\"WorkWeek\"] = 3] = \"WorkWeek\";\n})(DateRangeType || (DateRangeType = {}));\nexport const DAYS_IN_WEEK = 7;\nexport const TimeConstants = {\n MillisecondsInOneDay: 86400000,\n MillisecondsIn1Sec: 1000,\n MillisecondsIn1Min: 60000,\n MillisecondsIn30Mins: 1800000,\n MillisecondsIn1Hour: 3600000,\n MinutesInOneDay: 1440,\n MinutesInOneHour: 60,\n DaysInOneWeek: 7,\n MonthInOneYear: 12,\n HoursInOneDay: 24,\n SecondsInOneMinute: 60,\n OffsetTo24HourFormat: 12,\n /**\n * Matches a time string. Groups:\n * 1. hours (with or without leading 0)\n * 2. minutes\n * 3. seconds (optional)\n * 4. meridiem (am/pm, case-insensitive, optional)\n */ TimeFormatRegex: /^(\\d\\d?):(\\d\\d):?(\\d\\d)? ?([ap]m)?/i\n};\n"],"names":["DAYS_IN_WEEK","DateRangeType","DayOfWeek","FirstWeekOfYear","MonthOfYear","TimeConstants","MillisecondsInOneDay","MillisecondsIn1Sec","MillisecondsIn1Min","MillisecondsIn30Mins","MillisecondsIn1Hour","MinutesInOneDay","MinutesInOneHour","DaysInOneWeek","MonthInOneYear","HoursInOneDay","SecondsInOneMinute","OffsetTo24HourFormat","TimeFormatRegex"],"mappings":"AAAA;;CAEC;;;;;;;;;;;IAsCYA,YAAY;eAAZA;;IAPFC,aAAa;eAAbA;;IA/BIC,SAAS;eAATA;;IAyBJC,eAAe;eAAfA;;IAfAC,WAAW;eAA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,eAAgBA,CAAAA,cAAc,CAAC,CAAA;AAC3B,IAAID;AACV,CAAA,SAASA,eAAe;IACrBA,eAAe,CAACA,eAAe,CAAC,WAAW,GAAG,EAAE,GAAG;IACnDA,eAAe,CAACA,eAAe,CAAC,gBAAgB,GAAG,EAAE,GAAG;IACxDA,eAAe,CAACA,eAAe,CAAC,mBAAmB,GAAG,EAAE,GAAG;AAC/D,CAAA,EAAGA,mBAAoBA,CAAAA,kBAAkB,CAAC,CAAA;AACnC,IAAIF;AACV,CAAA,SAASA,aAAa;IACnBA,aAAa,CAACA,aAAa,CAAC,MAAM,GAAG,EAAE,GAAG;IAC1CA,aAAa,CAACA,aAAa,CAAC,OAAO,GAAG,EAAE,GAAG;IAC3CA,aAAa,CAACA,aAAa,CAAC,QAAQ,GAAG,EAAE,GAAG;IAC5CA,aAAa,CAACA,aAAa,CAAC,WAAW,GAAG,EAAE,GAAG;AACnD,CAAA,EAAGA,iBAAkBA,CAAAA,gBAAgB,CAAC,CAAA;AAC/B,MAAMD,eAAe;AACrB,MAAMK,gBAAgB;IACzBC,sBAAsB;IACtBC,oBAAoB;IACpBC,oBAAoB;IACpBC,sBAAsB;IACtBC,qBAAqB;IACrBC,iBAAiB;IACjBC,kBAAkB;IAClBC,eAAe;IACfC,gBAAgB;IAChBC,eAAe;IACfC,oBAAoB;IACpBC,sBAAsB;IACtB;;;;;;GAMD,GAAGC,iBAAiB;AACvB"}
1
+ {"version":3,"sources":["constants.js"],"sourcesContent":["/**\n * The days of the week\n */ export var DayOfWeek;\n(function(DayOfWeek) {\n DayOfWeek[DayOfWeek[\"Sunday\"] = 0] = \"Sunday\";\n DayOfWeek[DayOfWeek[\"Monday\"] = 1] = \"Monday\";\n DayOfWeek[DayOfWeek[\"Tuesday\"] = 2] = \"Tuesday\";\n DayOfWeek[DayOfWeek[\"Wednesday\"] = 3] = \"Wednesday\";\n DayOfWeek[DayOfWeek[\"Thursday\"] = 4] = \"Thursday\";\n DayOfWeek[DayOfWeek[\"Friday\"] = 5] = \"Friday\";\n DayOfWeek[DayOfWeek[\"Saturday\"] = 6] = \"Saturday\";\n})(DayOfWeek || (DayOfWeek = {}));\nexport var MonthOfYear;\n(function(MonthOfYear) {\n MonthOfYear[MonthOfYear[\"January\"] = 0] = \"January\";\n MonthOfYear[MonthOfYear[\"February\"] = 1] = \"February\";\n MonthOfYear[MonthOfYear[\"March\"] = 2] = \"March\";\n MonthOfYear[MonthOfYear[\"April\"] = 3] = \"April\";\n MonthOfYear[MonthOfYear[\"May\"] = 4] = \"May\";\n MonthOfYear[MonthOfYear[\"June\"] = 5] = \"June\";\n MonthOfYear[MonthOfYear[\"July\"] = 6] = \"July\";\n MonthOfYear[MonthOfYear[\"August\"] = 7] = \"August\";\n MonthOfYear[MonthOfYear[\"September\"] = 8] = \"September\";\n MonthOfYear[MonthOfYear[\"October\"] = 9] = \"October\";\n MonthOfYear[MonthOfYear[\"November\"] = 10] = \"November\";\n MonthOfYear[MonthOfYear[\"December\"] = 11] = \"December\";\n})(MonthOfYear || (MonthOfYear = {}));\nexport var FirstWeekOfYear;\n(function(FirstWeekOfYear) {\n FirstWeekOfYear[FirstWeekOfYear[\"FirstDay\"] = 0] = \"FirstDay\";\n FirstWeekOfYear[FirstWeekOfYear[\"FirstFullWeek\"] = 1] = \"FirstFullWeek\";\n FirstWeekOfYear[FirstWeekOfYear[\"FirstFourDayWeek\"] = 2] = \"FirstFourDayWeek\";\n})(FirstWeekOfYear || (FirstWeekOfYear = {}));\nexport var DateRangeType;\n(function(DateRangeType) {\n DateRangeType[DateRangeType[\"Day\"] = 0] = \"Day\";\n DateRangeType[DateRangeType[\"Week\"] = 1] = \"Week\";\n DateRangeType[DateRangeType[\"Month\"] = 2] = \"Month\";\n DateRangeType[DateRangeType[\"WorkWeek\"] = 3] = \"WorkWeek\";\n})(DateRangeType || (DateRangeType = {}));\nexport const DAYS_IN_WEEK = 7;\nexport const TimeConstants = {\n MillisecondsInOneDay: 86400000,\n MillisecondsIn1Sec: 1000,\n MillisecondsIn1Min: 60000,\n MillisecondsIn30Mins: 1800000,\n MillisecondsIn1Hour: 3600000,\n MinutesInOneDay: 1440,\n MinutesInOneHour: 60,\n DaysInOneWeek: 7,\n MonthInOneYear: 12,\n HoursInOneDay: 24,\n SecondsInOneMinute: 60,\n OffsetTo24HourFormat: 12,\n /**\n * Matches a time string. Groups:\n * 1. hours (with or without leading 0)\n * 2. minutes\n * 3. seconds (optional)\n * 4. meridiem (am/pm, case-insensitive, optional)\n */ TimeFormatRegex: /^(\\d\\d?):(\\d\\d):?(\\d\\d)? ?([ap]m)?/i\n};\n"],"names":["DayOfWeek","MonthOfYear","FirstWeekOfYear","DateRangeType","DAYS_IN_WEEK","TimeConstants","MillisecondsInOneDay","MillisecondsIn1Sec","MillisecondsIn1Min","MillisecondsIn30Mins","MillisecondsIn1Hour","MinutesInOneDay","MinutesInOneHour","DaysInOneWeek","MonthInOneYear","HoursInOneDay","SecondsInOneMinute","OffsetTo24HourFormat","TimeFormatRegex"],"mappings":"AAAA;;CAEC;;;;;;;;;;;IAAcA,SAAS;eAATA;;IAUJC,WAAW;eAAXA;;IAeAC,eAAe;eAAfA;;IAMAC,aAAa;eAAbA;;IAOEC,YAAY;eAAZA;;IACAC,aAAa;eAAbA;;;AAvCF,IAAIL;AACd,CAAA,SAASA,SAAS;IACfA,SAAS,CAACA,SAAS,CAAC,SAAS,GAAG,EAAE,GAAG;IACrCA,SAAS,CAACA,SAAS,CAAC,SAAS,GAAG,EAAE,GAAG;IACrCA,SAAS,CAACA,SAAS,CAAC,UAAU,GAAG,EAAE,GAAG;IACtCA,SAAS,CAACA,SAAS,CAAC,YAAY,GAAG,EAAE,GAAG;IACxCA,SAAS,CAACA,SAAS,CAAC,WAAW,GAAG,EAAE,GAAG;IACvCA,SAAS,CAACA,SAAS,CAAC,SAAS,GAAG,EAAE,GAAG;IACrCA,SAAS,CAACA,SAAS,CAAC,WAAW,GAAG,EAAE,GAAG;AAC3C,CAAA,EAAGA,aAAc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AC,QAAQ,GAAG,EAAE,GAAG;IAC5CA,aAAa,CAACA,aAAa,CAAC,WAAW,GAAG,EAAE,GAAG;AACnD,CAAA,EAAGA,iBAAkBA,CAAAA,gBAAgB,CAAC,CAAA;AAC/B,MAAMC,eAAe;AACrB,MAAMC,gBAAgB;IACzBC,sBAAsB;IACtBC,oBAAoB;IACpBC,oBAAoB;IACpBC,sBAAsB;IACtBC,qBAAqB;IACrBC,iBAAiB;IACjBC,kBAAkB;IAClBC,eAAe;IACfC,gBAAgB;IAChBC,eAAe;IACfC,oBAAoB;IACpBC,sBAAsB;IACtB;;;;;;GAMD,GAAGC,iBAAiB;AACvB"}
@@ -12,29 +12,29 @@ function _export(target, all) {
12
12
  });
13
13
  }
14
14
  _export(exports, {
15
- DEFAULT_CALENDAR_STRINGS: function() {
16
- return DEFAULT_CALENDAR_STRINGS;
17
- },
18
- DEFAULT_DATE_FORMATTING: function() {
19
- return DEFAULT_DATE_FORMATTING;
20
- },
21
- DEFAULT_DATE_GRID_STRINGS: function() {
22
- return DEFAULT_DATE_GRID_STRINGS;
23
- },
24
15
  formatDay: function() {
25
16
  return formatDay;
26
17
  },
27
- formatMonth: function() {
28
- return formatMonth;
29
- },
30
18
  formatMonthDayYear: function() {
31
19
  return formatMonthDayYear;
32
20
  },
33
21
  formatMonthYear: function() {
34
22
  return formatMonthYear;
35
23
  },
24
+ formatMonth: function() {
25
+ return formatMonth;
26
+ },
36
27
  formatYear: function() {
37
28
  return formatYear;
29
+ },
30
+ DEFAULT_DATE_GRID_STRINGS: function() {
31
+ return DEFAULT_DATE_GRID_STRINGS;
32
+ },
33
+ DEFAULT_DATE_FORMATTING: function() {
34
+ return DEFAULT_DATE_FORMATTING;
35
+ },
36
+ DEFAULT_CALENDAR_STRINGS: function() {
37
+ return DEFAULT_CALENDAR_STRINGS;
38
38
  }
39
39
  });
40
40
  const formatDay = (date)=>date.getDate().toString();
@@ -1 +1 @@
1
- {"version":3,"sources":["dateFormatting.defaults.js"],"sourcesContent":["/**\n * Format date to a day string representation\n * @param date - input date to format\n */ export const formatDay = (date)=>date.getDate().toString();\n/**\n * Format date to a month-day-year string\n * @param date - input date to format\n * @param strings - localized strings\n */ export const formatMonthDayYear = (date, strings)=>strings.months[date.getMonth()] + ' ' + date.getDate() + ', ' + date.getFullYear();\n/**\n * Format date to a month-year string\n * @param date - input date to format\n * @param strings - localized strings\n */ export const formatMonthYear = (date, strings)=>strings.months[date.getMonth()] + ' ' + date.getFullYear();\n/**\n * Format date to a month string\n * @param date - input date to format\n * @param strings - localized strings\n */ export const formatMonth = (date, strings)=>strings.months[date.getMonth()];\n/**\n * Format date to a year string representation\n * @param date - input date to format\n */ export const formatYear = (date)=>date.getFullYear().toString();\nexport const DEFAULT_DATE_GRID_STRINGS = {\n months: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n ],\n shortMonths: [\n 'Jan',\n 'Feb',\n 'Mar',\n 'Apr',\n 'May',\n 'Jun',\n 'Jul',\n 'Aug',\n 'Sep',\n 'Oct',\n 'Nov',\n 'Dec'\n ],\n days: [\n 'Sunday',\n 'Monday',\n 'Tuesday',\n 'Wednesday',\n 'Thursday',\n 'Friday',\n 'Saturday'\n ],\n shortDays: [\n 'S',\n 'M',\n 'T',\n 'W',\n 'T',\n 'F',\n 'S'\n ]\n};\nexport const DEFAULT_DATE_FORMATTING = {\n formatDay,\n formatMonth,\n formatYear,\n formatMonthDayYear,\n formatMonthYear\n};\nexport const DEFAULT_CALENDAR_STRINGS = {\n ...DEFAULT_DATE_GRID_STRINGS,\n goToToday: 'Go to today',\n weekNumberFormatString: 'Week number {0}',\n prevMonthAriaLabel: 'Previous month',\n nextMonthAriaLabel: 'Next month',\n prevYearAriaLabel: 'Previous year',\n nextYearAriaLabel: 'Next year',\n prevYearRangeAriaLabel: 'Previous year range',\n nextYearRangeAriaLabel: 'Next year range',\n closeButtonAriaLabel: 'Close',\n selectedDateFormatString: 'Selected date {0}',\n todayDateFormatString: \"Today's date {0}\",\n monthPickerHeaderAriaLabel: '{0}, change year',\n yearPickerHeaderAriaLabel: '{0}, change month',\n dayMarkedAriaLabel: 'marked'\n};\n"],"names":["DEFAULT_CALENDAR_STRINGS","DEFAULT_DATE_FORMATTING","DEFAULT_DATE_GRID_STRINGS","formatDay","formatMonth","formatMonthDayYear","formatMonthYear","formatYear","date","getDate","toString","strings","months","getMonth","getFullYear","shortMonths","days","shortDays","goToToday","weekNumberFormatString","prevMonthAriaLabel","nextMonthAriaLabel","prevYearAriaLabel","nextYearAriaLabel","prevYearRangeAriaLabel","nextYearRangeAriaLabel","closeButtonAriaLabel","selectedDateFormatString","todayDateFormatString","monthPickerHeaderAriaLabel","yearPickerHeaderAriaLabel","dayMarkedAriaLabel"],"mappings":"AAAA;;;CAGC;;;;;;;;;;;IA2EYA,wBAAwB;eAAxBA;;IAPAC,uBAAuB;eAAvBA;;IAhDAC,yBAAyB;eAAzBA;;IApBIC,SAAS;eAATA;;IAeAC,WAAW;eAAXA;;IAVAC,kBAAkB;eAAlBA;;IAKAC,eAAe;eAAfA;;IASAC,UAAU;eAAVA;;;AAnBN,MAAMJ,YAAY,CAACK,OAAOA,KAAKC,OAAO,GAAGC,QAAQ;AAKjD,MAAML,qBAAqB,CAACG,MAAMG,UAAUA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG,GAAG,MAAML,KAAKC,OAAO,KAAK,OAAOD,KAAKM,WAAW;AAK5H,MAAMR,kBAAkB,CAACE,MAAMG,UAAUA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG,GAAG,MAAML,KAAKM,WAAW;AAKjG,MAAMV,cAAc,CAACI,MAAMG,UAAUA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG;AAIpE,MAAMN,aAAa,CAACC,OAAOA,KAAKM,WAAW,GAAGJ,QAAQ;AAC1D,MAAMR,4BAA4B;IACrCU,QAAQ;QACJ;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACH;IACDG,aAAa;QACT;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACH;IACDC,MAAM;QACF;QACA;QACA;QACA;QACA;QACA;QACA;KACH;IACDC,WAAW;QACP;QACA;QACA;QACA;QACA;QACA;QACA;KACH;AACL;AACO,MAAMhB,0BAA0B;IACnCE;IACAC;IACAG;IACAF;IACAC;AACJ;AACO,MAAMN,2BAA2B;IACpC,GAAGE,yBAAyB;IAC5BgB,WAAW;IACXC,wBAAwB;IACxBC,oBAAoB;IACpBC,oBAAoB;IACpBC,mBAAmB;IACnBC,mBAAmB;IACnBC,wBAAwB;IACxBC,wBAAwB;IACxBC,sBAAsB;IACtBC,0BAA0B;IAC1BC,uBAAuB;IACvBC,4BAA4B;IAC5BC,2BAA2B;IAC3BC,oBAAoB;AACxB"}
1
+ {"version":3,"sources":["dateFormatting.defaults.js"],"sourcesContent":["/**\n * Format date to a day string representation\n * @param date - input date to format\n */ export const formatDay = (date)=>date.getDate().toString();\n/**\n * Format date to a month-day-year string\n * @param date - input date to format\n * @param strings - localized strings\n */ export const formatMonthDayYear = (date, strings)=>strings.months[date.getMonth()] + ' ' + date.getDate() + ', ' + date.getFullYear();\n/**\n * Format date to a month-year string\n * @param date - input date to format\n * @param strings - localized strings\n */ export const formatMonthYear = (date, strings)=>strings.months[date.getMonth()] + ' ' + date.getFullYear();\n/**\n * Format date to a month string\n * @param date - input date to format\n * @param strings - localized strings\n */ export const formatMonth = (date, strings)=>strings.months[date.getMonth()];\n/**\n * Format date to a year string representation\n * @param date - input date to format\n */ export const formatYear = (date)=>date.getFullYear().toString();\nexport const DEFAULT_DATE_GRID_STRINGS = {\n months: [\n 'January',\n 'February',\n 'March',\n 'April',\n 'May',\n 'June',\n 'July',\n 'August',\n 'September',\n 'October',\n 'November',\n 'December'\n ],\n shortMonths: [\n 'Jan',\n 'Feb',\n 'Mar',\n 'Apr',\n 'May',\n 'Jun',\n 'Jul',\n 'Aug',\n 'Sep',\n 'Oct',\n 'Nov',\n 'Dec'\n ],\n days: [\n 'Sunday',\n 'Monday',\n 'Tuesday',\n 'Wednesday',\n 'Thursday',\n 'Friday',\n 'Saturday'\n ],\n shortDays: [\n 'S',\n 'M',\n 'T',\n 'W',\n 'T',\n 'F',\n 'S'\n ]\n};\nexport const DEFAULT_DATE_FORMATTING = {\n formatDay,\n formatMonth,\n formatYear,\n formatMonthDayYear,\n formatMonthYear\n};\nexport const DEFAULT_CALENDAR_STRINGS = {\n ...DEFAULT_DATE_GRID_STRINGS,\n goToToday: 'Go to today',\n weekNumberFormatString: 'Week number {0}',\n prevMonthAriaLabel: 'Previous month',\n nextMonthAriaLabel: 'Next month',\n prevYearAriaLabel: 'Previous year',\n nextYearAriaLabel: 'Next year',\n prevYearRangeAriaLabel: 'Previous year range',\n nextYearRangeAriaLabel: 'Next year range',\n closeButtonAriaLabel: 'Close',\n selectedDateFormatString: 'Selected date {0}',\n todayDateFormatString: \"Today's date {0}\",\n monthPickerHeaderAriaLabel: '{0}, change year',\n yearPickerHeaderAriaLabel: '{0}, change month',\n dayMarkedAriaLabel: 'marked'\n};\n"],"names":["formatDay","formatMonthDayYear","formatMonthYear","formatMonth","formatYear","DEFAULT_DATE_GRID_STRINGS","DEFAULT_DATE_FORMATTING","DEFAULT_CALENDAR_STRINGS","date","getDate","toString","strings","months","getMonth","getFullYear","shortMonths","days","shortDays","goToToday","weekNumberFormatString","prevMonthAriaLabel","nextMonthAriaLabel","prevYearAriaLabel","nextYearAriaLabel","prevYearRangeAriaLabel","nextYearRangeAriaLabel","closeButtonAriaLabel","selectedDateFormatString","todayDateFormatString","monthPickerHeaderAriaLabel","yearPickerHeaderAriaLabel","dayMarkedAriaLabel"],"mappings":"AAAA;;;CAGC;;;;;;;;;;;IAAgBA,SAAS;eAATA;;IAKAC,kBAAkB;eAAlBA;;IAKAC,eAAe;eAAfA;;IAKAC,WAAW;eAAXA;;IAIAC,UAAU;eAAVA;;IACJC,yBAAyB;eAAzBA;;IAgDAC,uBAAuB;eAAvBA;;IAOAC,wBAAwB;eAAxBA;;;AA3EF,MAAMP,YAAY,CAACQ,OAAOA,KAAKC,OAAO,GAAGC,QAAQ;AAKjD,MAAMT,qBAAqB,CAACO,MAAMG,UAAUA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG,GAAG,MAAML,KAAKC,OAAO,KAAK,OAAOD,KAAKM,WAAW;AAK5H,MAAMZ,kBAAkB,CAACM,MAAMG,UAAUA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG,GAAG,MAAML,KAAKM,WAAW;AAKjG,MAAMX,cAAc,CAACK,MAAMG,UAAUA,QAAQC,MAAM,CAACJ,KAAKK,QAAQ,GAAG;AAIpE,MAAMT,aAAa,CAACI,OAAOA,KAAKM,WAAW,GAAGJ,QAAQ;AAC1D,MAAML,4BAA4B;IACrCO,QAAQ;QACJ;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACH;IACDG,aAAa;QACT;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;KACH;IACDC,MAAM;QACF;QACA;QACA;QACA;QACA;QACA;QACA;KACH;IACDC,WAAW;QACP;QACA;QACA;QACA;QACA;QACA;QACA;KACH;AACL;AACO,MAAMX,0BAA0B;IACnCN;IACAG;IACAC;IACAH;IACAC;AACJ;AACO,MAAMK,2BAA2B;IACpC,GAAGF,yBAAyB;IAC5Ba,WAAW;IACXC,wBAAwB;IACxBC,oBAAoB;IACpBC,oBAAoB;IACpBC,mBAAmB;IACnBC,mBAAmB;IACnBC,wBAAwB;IACxBC,wBAAwB;IACxBC,sBAAsB;IACtBC,0BAA0B;IAC1BC,uBAAuB;IACvBC,4BAA4B;IAC5BC,2BAA2B;IAC3BC,oBAAoB;AACxB"}
@@ -12,56 +12,56 @@ _export(exports, {
12
12
  addDays: function() {
13
13
  return addDays;
14
14
  },
15
- addMonths: function() {
16
- return addMonths;
17
- },
18
15
  addWeeks: function() {
19
16
  return addWeeks;
20
17
  },
18
+ addMonths: function() {
19
+ return addMonths;
20
+ },
21
21
  addYears: function() {
22
22
  return addYears;
23
23
  },
24
- compareDatePart: function() {
25
- return compareDatePart;
24
+ getMonthStart: function() {
25
+ return getMonthStart;
26
26
  },
27
- compareDates: function() {
28
- return compareDates;
27
+ getMonthEnd: function() {
28
+ return getMonthEnd;
29
29
  },
30
- getDatePartHashValue: function() {
31
- return getDatePartHashValue;
30
+ getYearStart: function() {
31
+ return getYearStart;
32
32
  },
33
- getDateRangeArray: function() {
34
- return getDateRangeArray;
33
+ getYearEnd: function() {
34
+ return getYearEnd;
35
35
  },
36
- getEndDateOfWeek: function() {
37
- return getEndDateOfWeek;
36
+ setMonth: function() {
37
+ return setMonth;
38
38
  },
39
- getMonthEnd: function() {
40
- return getMonthEnd;
39
+ compareDates: function() {
40
+ return compareDates;
41
41
  },
42
- getMonthStart: function() {
43
- return getMonthStart;
42
+ compareDatePart: function() {
43
+ return compareDatePart;
44
44
  },
45
- getStartDateOfWeek: function() {
46
- return getStartDateOfWeek;
45
+ getDateRangeArray: function() {
46
+ return getDateRangeArray;
47
47
  },
48
- getWeekNumber: function() {
49
- return getWeekNumber;
48
+ isInDateRangeArray: function() {
49
+ return isInDateRangeArray;
50
50
  },
51
51
  getWeekNumbersInMonth: function() {
52
52
  return getWeekNumbersInMonth;
53
53
  },
54
- getYearEnd: function() {
55
- return getYearEnd;
54
+ getWeekNumber: function() {
55
+ return getWeekNumber;
56
56
  },
57
- getYearStart: function() {
58
- return getYearStart;
57
+ getStartDateOfWeek: function() {
58
+ return getStartDateOfWeek;
59
59
  },
60
- isInDateRangeArray: function() {
61
- return isInDateRangeArray;
60
+ getEndDateOfWeek: function() {
61
+ return getEndDateOfWeek;
62
62
  },
63
- setMonth: function() {
64
- return setMonth;
63
+ getDatePartHashValue: function() {
64
+ return getDatePartHashValue;
65
65
  }
66
66
  });
67
67
  const _constants = require("../constants");
@@ -1 +1 @@
1
- {"version":3,"sources":["dateMath.js"],"sourcesContent":["import { DateRangeType, DayOfWeek, FirstWeekOfYear, MonthOfYear, TimeConstants } from '../constants';\n/**\n * Returns a date offset from the given date by the specified number of days.\n * @param date - The origin date\n * @param days - The number of days to offset. 'days' can be negative.\n * @returns A new Date object offset from the origin date by the given number of days\n */ export function addDays(date, days) {\n const result = new Date(date.getTime());\n result.setDate(result.getDate() + days);\n return result;\n}\n/**\n * Returns a date offset from the given date by the specified number of weeks.\n * @param date - The origin date\n * @param weeks - The number of weeks to offset. 'weeks' can be negative.\n * @returns A new Date object offset from the origin date by the given number of weeks\n */ export function addWeeks(date, weeks) {\n return addDays(date, weeks * TimeConstants.DaysInOneWeek);\n}\n/**\n * Returns a date offset from the given date by the specified number of months.\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\n * to contain the original day-of-month, we'll use the last day of the new month.\n * @param date - The origin date\n * @param months - The number of months to offset. 'months' can be negative.\n * @returns A new Date object offset from the origin date by the given number of months\n */ export function addMonths(date, months) {\n let result = new Date(date.getTime());\n const newMonth = result.getMonth() + months;\n result.setMonth(newMonth);\n // We want to maintain the same day-of-month, but that may not be possible if the new month doesn't have enough days.\n // Loop until we back up to a day the new month has.\n // (Weird modulo math is due to Javascript's treatment of negative numbers in modulo)\n if (result.getMonth() !== (newMonth % TimeConstants.MonthInOneYear + TimeConstants.MonthInOneYear) % TimeConstants.MonthInOneYear) {\n result = addDays(result, -result.getDate());\n }\n return result;\n}\n/**\n * Returns a date offset from the given date by the specified number of years.\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\n * to contain the original day-of-month, we'll use the last day of the new month.\n * @param date - The origin date\n * @param years - The number of years to offset. 'years' can be negative.\n * @returns A new Date object offset from the origin date by the given number of years\n */ export function addYears(date, years) {\n let result = new Date(date.getTime());\n result.setFullYear(date.getFullYear() + years);\n // We want to maintain the same day-of-month, but that may not be possible if the new month doesn't have enough days.\n // Loop until we back up to a day the new month has.\n // (Weird modulo math is due to Javascript's treatment of negative numbers in modulo)\n if (result.getMonth() !== (date.getMonth() % TimeConstants.MonthInOneYear + TimeConstants.MonthInOneYear) % TimeConstants.MonthInOneYear) {\n result = addDays(result, -result.getDate());\n }\n return result;\n}\n/**\n * Returns a date that is the first day of the month of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the first day of the month.\n */ export function getMonthStart(date) {\n return new Date(date.getFullYear(), date.getMonth(), 1, 0, 0, 0, 0);\n}\n/**\n * Returns a date that is the last day of the month of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the last day of the month.\n */ export function getMonthEnd(date) {\n return new Date(date.getFullYear(), date.getMonth() + 1, 0, 0, 0, 0, 0);\n}\n/**\n * Returns a date that is the first day of the year of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the first day of the year.\n */ export function getYearStart(date) {\n return new Date(date.getFullYear(), 0, 1, 0, 0, 0, 0);\n}\n/**\n * Returns a date that is the last day of the year of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the last day of the year.\n */ export function getYearEnd(date) {\n return new Date(date.getFullYear() + 1, 0, 0, 0, 0, 0, 0);\n}\n/**\n * Returns a date that is a copy of the given date, aside from the month changing to the given month.\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\n * to contain the original day-of-month, we'll use the last day of the new month.\n * @param date - The origin date\n * @param month - The 0-based index of the month to set on the date.\n * @returns A new Date object with the given month set.\n */ export function setMonth(date, month) {\n return addMonths(date, month - date.getMonth());\n}\n/**\n * Compares two dates, and returns true if the two dates (not accounting for time-of-day) are equal.\n * @returns True if the two dates represent the same date (regardless of time-of-day), false otherwise.\n */ export function compareDates(date1, date2) {\n if (!date1 && !date2) {\n return true;\n } else if (!date1 || !date2) {\n return false;\n } else {\n return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();\n }\n}\n/**\n * Compare the date parts of two dates\n * @param date1 - The first date to compare\n * @param date2 - The second date to compare\n * @returns A negative value if date1 is earlier than date2, 0 if the dates are equal, or a positive value\n * if date1 is later than date2.\n */ export function compareDatePart(date1, date2) {\n return getDatePartHashValue(date1) - getDatePartHashValue(date2);\n}\n/**\n * Gets the date range array including the specified date. The date range array is calculated as the list\n * of dates accounting for the specified first day of the week and date range type.\n * @param date - The input date\n * @param dateRangeType - The desired date range type, i.e., day, week, month, etc.\n * @param firstDayOfWeek - The first day of the week.\n * @param workWeekDays - The allowed days in work week. If not provided, assumes all days are allowed.\n * @param daysToSelectInDayView - The number of days to include when using dateRangeType === DateRangeType.Day\n * for multiday view. Defaults to 1\n * @returns An array of dates representing the date range containing the specified date.\n */ export function getDateRangeArray(date, dateRangeType, firstDayOfWeek, workWeekDays, daysToSelectInDayView = 1) {\n const datesArray = [];\n let startDate;\n let endDate = null;\n if (!workWeekDays) {\n workWeekDays = [\n DayOfWeek.Monday,\n DayOfWeek.Tuesday,\n DayOfWeek.Wednesday,\n DayOfWeek.Thursday,\n DayOfWeek.Friday\n ];\n }\n daysToSelectInDayView = Math.max(daysToSelectInDayView, 1);\n switch(dateRangeType){\n case DateRangeType.Day:\n startDate = getDatePart(date);\n endDate = addDays(startDate, daysToSelectInDayView);\n break;\n case DateRangeType.Week:\n case DateRangeType.WorkWeek:\n startDate = getStartDateOfWeek(getDatePart(date), firstDayOfWeek);\n endDate = addDays(startDate, TimeConstants.DaysInOneWeek);\n break;\n case DateRangeType.Month:\n startDate = new Date(date.getFullYear(), date.getMonth(), 1);\n endDate = addMonths(startDate, 1);\n break;\n default:\n throw new Error('Unexpected object: ' + dateRangeType);\n }\n // Populate the dates array with the dates in range\n let nextDate = startDate;\n do {\n if (dateRangeType !== DateRangeType.WorkWeek) {\n // push all days not in work week view\n datesArray.push(nextDate);\n } else if (workWeekDays.indexOf(nextDate.getDay()) !== -1) {\n datesArray.push(nextDate);\n }\n nextDate = addDays(nextDate, 1);\n }while (!compareDates(nextDate, endDate))\n return datesArray;\n}\n/**\n * Checks whether the specified date is in the given date range.\n * @param date - The origin date\n * @param dateRange - An array of dates to do the lookup on\n * @returns True if the date matches one of the dates in the specified array, false otherwise.\n */ export function isInDateRangeArray(date, dateRange) {\n for (const dateInRange of dateRange){\n if (compareDates(date, dateInRange)) {\n return true;\n }\n }\n return false;\n}\n/**\n * Returns the week number for a date.\n * Week numbers are 1 - 52 (53) in a year\n * @param navigatedDate - A date to find the week number for.\n * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0)\n * @param firstWeekOfYear - The first week of the year (1-2)\n * @returns The weeks number array for the current month.\n */ export function getWeekNumbersInMonth(weeksInMonth, firstDayOfWeek, firstWeekOfYear, navigatedDate) {\n const selectedYear = navigatedDate.getFullYear();\n const selectedMonth = navigatedDate.getMonth();\n let dayOfMonth = 1;\n const fistDayOfMonth = new Date(selectedYear, selectedMonth, dayOfMonth);\n const endOfFirstWeek = dayOfMonth + (firstDayOfWeek + TimeConstants.DaysInOneWeek - 1) - adjustWeekDay(firstDayOfWeek, fistDayOfMonth.getDay());\n let endOfWeekRange = new Date(selectedYear, selectedMonth, endOfFirstWeek);\n dayOfMonth = endOfWeekRange.getDate();\n const weeksArray = [];\n for(let i = 0; i < weeksInMonth; i++){\n // Get week number for end of week\n weeksArray.push(getWeekNumber(endOfWeekRange, firstDayOfWeek, firstWeekOfYear));\n dayOfMonth += TimeConstants.DaysInOneWeek;\n endOfWeekRange = new Date(selectedYear, selectedMonth, dayOfMonth);\n }\n return weeksArray;\n}\n/**\n * Returns the week number for a date.\n * Week numbers are 1 - 52 (53) in a year\n * @param date - A date to find the week number for.\n * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0)\n * @param firstWeekOfYear - The first week of the year (1-2)\n * @returns The week's number in the year.\n */ export function getWeekNumber(date, firstDayOfWeek, firstWeekOfYear) {\n // First four-day week of the year - minumum days count\n const fourDayWeek = 4;\n switch(firstWeekOfYear){\n case FirstWeekOfYear.FirstFullWeek:\n return getWeekOfYearFullDays(date, firstDayOfWeek, TimeConstants.DaysInOneWeek);\n case FirstWeekOfYear.FirstFourDayWeek:\n return getWeekOfYearFullDays(date, firstDayOfWeek, fourDayWeek);\n default:\n return getFirstDayWeekOfYear(date, firstDayOfWeek);\n }\n}\n/**\n * Gets the date for the first day of the week based on the given date assuming\n * the specified first day of the week.\n * @param date - The date to find the beginning of the week date for.\n * @returns A new date object representing the first day of the week containing the input date.\n */ export function getStartDateOfWeek(date, firstDayOfWeek) {\n let daysOffset = firstDayOfWeek - date.getDay();\n if (daysOffset > 0) {\n // If first day of week is > date, go 1 week back, to ensure resulting date is in the past.\n daysOffset -= TimeConstants.DaysInOneWeek;\n }\n return addDays(date, daysOffset);\n}\n/**\n * Gets the date for the last day of the week based on the given date assuming\n * the specified first day of the week.\n * @param date - The date to find the beginning of the week date for.\n * @returns A new date object representing the first day of the week containing the input date.\n */ export function getEndDateOfWeek(date, firstDayOfWeek) {\n const lastDayOfWeek = firstDayOfWeek - 1 >= 0 ? firstDayOfWeek - 1 : TimeConstants.DaysInOneWeek - 1;\n let daysOffset = lastDayOfWeek - date.getDay();\n if (daysOffset < 0) {\n // If last day of week is < date, go 1 week forward, to ensure resulting date is in the future.\n daysOffset += TimeConstants.DaysInOneWeek;\n }\n return addDays(date, daysOffset);\n}\n/**\n * Gets a new date with the time portion zeroed out, i.e., set to midnight\n * @param date - The origin date\n * @returns A new date with the time set to midnight\n */ function getDatePart(date) {\n return new Date(date.getFullYear(), date.getMonth(), date.getDate());\n}\n/**\n * Helper function to assist in date comparisons\n */ export function getDatePartHashValue(date) {\n // Generate date hash value created as sum of Date (up to 31 = 5 bits), Month (up to 11 = 4 bits) and Year.\n // eslint-disable-next-line no-bitwise\n return date.getDate() + (date.getMonth() << 5) + (date.getFullYear() << 9);\n}\n/**\n * Helper function for `getWeekNumber`.\n * Returns week number for a date.\n * @param date - current selected date.\n * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0)\n * @param numberOfFullDays - week settings.\n * @returns The week's number in the year.\n */ function getWeekOfYearFullDays(date, firstDayOfWeek, numberOfFullDays) {\n const dayOfYear = getDayOfYear(date) - 1;\n let num = date.getDay() - dayOfYear % TimeConstants.DaysInOneWeek;\n const lastDayOfPrevYear = new Date(date.getFullYear() - 1, MonthOfYear.December, 31);\n const daysInYear = getDayOfYear(lastDayOfPrevYear) - 1;\n let num2 = (firstDayOfWeek - num + 2 * TimeConstants.DaysInOneWeek) % TimeConstants.DaysInOneWeek;\n if (num2 !== 0 && num2 >= numberOfFullDays) {\n num2 -= TimeConstants.DaysInOneWeek;\n }\n let num3 = dayOfYear - num2;\n if (num3 < 0) {\n num -= daysInYear % TimeConstants.DaysInOneWeek;\n num2 = (firstDayOfWeek - num + 2 * TimeConstants.DaysInOneWeek) % TimeConstants.DaysInOneWeek;\n if (num2 !== 0 && num2 + 1 >= numberOfFullDays) {\n num2 -= TimeConstants.DaysInOneWeek;\n }\n num3 = daysInYear - num2;\n }\n return Math.floor(num3 / TimeConstants.DaysInOneWeek + 1);\n}\n/**\n * Helper function for `getWeekNumber`.\n * Returns week number for a date.\n * @param date - current selected date.\n * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0)\n * @returns The week's number in the year.\n */ function getFirstDayWeekOfYear(date, firstDayOfWeek) {\n const num = getDayOfYear(date) - 1;\n const num2 = date.getDay() - num % TimeConstants.DaysInOneWeek;\n const num3 = (num2 - firstDayOfWeek + 2 * TimeConstants.DaysInOneWeek) % TimeConstants.DaysInOneWeek;\n return Math.floor((num + num3) / TimeConstants.DaysInOneWeek + 1);\n}\n/**\n * Helper function for `getWeekNumber`.\n * Returns adjusted week day number when `firstDayOfWeek` is other than Sunday.\n * For Week Day Number comparison checks\n * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0)\n * @param dateWeekDay - shifts number forward to 1 week in case passed as true\n * @returns The day of week adjusted to `firstDayOfWeek`; e.g. when `firstDayOfWeek` is Monday (1),\n * Sunday becomes 7.\n */ function adjustWeekDay(firstDayOfWeek, dateWeekDay) {\n return firstDayOfWeek !== DayOfWeek.Sunday && dateWeekDay < firstDayOfWeek ? dateWeekDay + TimeConstants.DaysInOneWeek : dateWeekDay;\n}\n/**\n * Returns the day number for a date in a year:\n * the number of days since January 1st in the particular year.\n * @param date - A date to find the day number for.\n * @returns The day's number in the year.\n */ function getDayOfYear(date) {\n const month = date.getMonth();\n const year = date.getFullYear();\n let daysUntilDate = 0;\n for(let i = 0; i < month; i++){\n daysUntilDate += daysInMonth(i + 1, year);\n }\n daysUntilDate += date.getDate();\n return daysUntilDate;\n}\n/**\n * Returns the number of days in the month\n * @param month - The month number to target (months 1-12).\n * @param year - The year to target.\n * @returns The number of days in the month.\n */ function daysInMonth(month, year) {\n return new Date(year, month, 0).getDate();\n}\n"],"names":["addDays","addMonths","addWeeks","addYears","compareDatePart","compareDates","getDatePartHashValue","getDateRangeArray","getEndDateOfWeek","getMonthEnd","getMonthStart","getStartDateOfWeek","getWeekNumber","getWeekNumbersInMonth","getYearEnd","getYearStart","isInDateRangeArray","setMonth","date","days","result","Date","getTime","setDate","getDate","weeks","TimeConstants","DaysInOneWeek","months","newMonth","getMonth","MonthInOneYear","years","setFullYear","getFullYear","month","date1","date2","dateRangeType","firstDayOfWeek","workWeekDays","daysToSelectInDayView","datesArray","startDate","endDate","DayOfWeek","Monday","Tuesday","Wednesday","Thursday","Friday","Math","max","DateRangeType","Day","getDatePart","Week","WorkWeek","Month","Error","nextDate","push","indexOf","getDay","dateRange","dateInRange","weeksInMonth","firstWeekOfYear","navigatedDate","selectedYear","selectedMonth","dayOfMonth","fistDayOfMonth","endOfFirstWeek","adjustWeekDay","endOfWeekRange","weeksArray","i","fourDayWeek","FirstWeekOfYear","FirstFullWeek","getWeekOfYearFullDays","FirstFourDayWeek","getFirstDayWeekOfYear","daysOffset","lastDayOfWeek","numberOfFullDays","dayOfYear","getDayOfYear","num","lastDayOfPrevYear","MonthOfYear","December","daysInYear","num2","num3","floor","dateWeekDay","Sunday","year","daysUntilDate","daysInMonth"],"mappings":";;;;;;;;;;;IAMoBA,OAAO;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O4E;AACX;AACA;;;;;CAKC,GAAG,SAASC,YAAYlE,KAAK,EAAEgE,IAAI;IAChC,OAAO,IAAI9E,KAAK8E,MAAMhE,OAAO,GAAGX,OAAO;AAC3C"}
1
+ {"version":3,"sources":["dateMath.js"],"sourcesContent":["import { DateRangeType, DayOfWeek, FirstWeekOfYear, MonthOfYear, TimeConstants } from '../constants';\n/**\n * Returns a date offset from the given date by the specified number of days.\n * @param date - The origin date\n * @param days - The number of days to offset. 'days' can be negative.\n * @returns A new Date object offset from the origin date by the given number of days\n */ export function addDays(date, days) {\n const result = new Date(date.getTime());\n result.setDate(result.getDate() + days);\n return result;\n}\n/**\n * Returns a date offset from the given date by the specified number of weeks.\n * @param date - The origin date\n * @param weeks - The number of weeks to offset. 'weeks' can be negative.\n * @returns A new Date object offset from the origin date by the given number of weeks\n */ export function addWeeks(date, weeks) {\n return addDays(date, weeks * TimeConstants.DaysInOneWeek);\n}\n/**\n * Returns a date offset from the given date by the specified number of months.\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\n * to contain the original day-of-month, we'll use the last day of the new month.\n * @param date - The origin date\n * @param months - The number of months to offset. 'months' can be negative.\n * @returns A new Date object offset from the origin date by the given number of months\n */ export function addMonths(date, months) {\n let result = new Date(date.getTime());\n const newMonth = result.getMonth() + months;\n result.setMonth(newMonth);\n // We want to maintain the same day-of-month, but that may not be possible if the new month doesn't have enough days.\n // Loop until we back up to a day the new month has.\n // (Weird modulo math is due to Javascript's treatment of negative numbers in modulo)\n if (result.getMonth() !== (newMonth % TimeConstants.MonthInOneYear + TimeConstants.MonthInOneYear) % TimeConstants.MonthInOneYear) {\n result = addDays(result, -result.getDate());\n }\n return result;\n}\n/**\n * Returns a date offset from the given date by the specified number of years.\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\n * to contain the original day-of-month, we'll use the last day of the new month.\n * @param date - The origin date\n * @param years - The number of years to offset. 'years' can be negative.\n * @returns A new Date object offset from the origin date by the given number of years\n */ export function addYears(date, years) {\n let result = new Date(date.getTime());\n result.setFullYear(date.getFullYear() + years);\n // We want to maintain the same day-of-month, but that may not be possible if the new month doesn't have enough days.\n // Loop until we back up to a day the new month has.\n // (Weird modulo math is due to Javascript's treatment of negative numbers in modulo)\n if (result.getMonth() !== (date.getMonth() % TimeConstants.MonthInOneYear + TimeConstants.MonthInOneYear) % TimeConstants.MonthInOneYear) {\n result = addDays(result, -result.getDate());\n }\n return result;\n}\n/**\n * Returns a date that is the first day of the month of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the first day of the month.\n */ export function getMonthStart(date) {\n return new Date(date.getFullYear(), date.getMonth(), 1, 0, 0, 0, 0);\n}\n/**\n * Returns a date that is the last day of the month of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the last day of the month.\n */ export function getMonthEnd(date) {\n return new Date(date.getFullYear(), date.getMonth() + 1, 0, 0, 0, 0, 0);\n}\n/**\n * Returns a date that is the first day of the year of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the first day of the year.\n */ export function getYearStart(date) {\n return new Date(date.getFullYear(), 0, 1, 0, 0, 0, 0);\n}\n/**\n * Returns a date that is the last day of the year of the provided date.\n * @param date - The origin date\n * @returns A new Date object with the day set to the last day of the year.\n */ export function getYearEnd(date) {\n return new Date(date.getFullYear() + 1, 0, 0, 0, 0, 0, 0);\n}\n/**\n * Returns a date that is a copy of the given date, aside from the month changing to the given month.\n * The method tries to preserve the day-of-month; however, if the new month does not have enough days\n * to contain the original day-of-month, we'll use the last day of the new month.\n * @param date - The origin date\n * @param month - The 0-based index of the month to set on the date.\n * @returns A new Date object with the given month set.\n */ export function setMonth(date, month) {\n return addMonths(date, month - date.getMonth());\n}\n/**\n * Compares two dates, and returns true if the two dates (not accounting for time-of-day) are equal.\n * @returns True if the two dates represent the same date (regardless of time-of-day), false otherwise.\n */ export function compareDates(date1, date2) {\n if (!date1 && !date2) {\n return true;\n } else if (!date1 || !date2) {\n return false;\n } else {\n return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth() && date1.getDate() === date2.getDate();\n }\n}\n/**\n * Compare the date parts of two dates\n * @param date1 - The first date to compare\n * @param date2 - The second date to compare\n * @returns A negative value if date1 is earlier than date2, 0 if the dates are equal, or a positive value\n * if date1 is later than date2.\n */ export function compareDatePart(date1, date2) {\n return getDatePartHashValue(date1) - getDatePartHashValue(date2);\n}\n/**\n * Gets the date range array including the specified date. The date range array is calculated as the list\n * of dates accounting for the specified first day of the week and date range type.\n * @param date - The input date\n * @param dateRangeType - The desired date range type, i.e., day, week, month, etc.\n * @param firstDayOfWeek - The first day of the week.\n * @param workWeekDays - The allowed days in work week. If not provided, assumes all days are allowed.\n * @param daysToSelectInDayView - The number of days to include when using dateRangeType === DateRangeType.Day\n * for multiday view. Defaults to 1\n * @returns An array of dates representing the date range containing the specified date.\n */ export function getDateRangeArray(date, dateRangeType, firstDayOfWeek, workWeekDays, daysToSelectInDayView = 1) {\n const datesArray = [];\n let startDate;\n let endDate = null;\n if (!workWeekDays) {\n workWeekDays = [\n DayOfWeek.Monday,\n DayOfWeek.Tuesday,\n DayOfWeek.Wednesday,\n DayOfWeek.Thursday,\n DayOfWeek.Friday\n ];\n }\n daysToSelectInDayView = Math.max(daysToSelectInDayView, 1);\n switch(dateRangeType){\n case DateRangeType.Day:\n startDate = getDatePart(date);\n endDate = addDays(startDate, daysToSelectInDayView);\n break;\n case DateRangeType.Week:\n case DateRangeType.WorkWeek:\n startDate = getStartDateOfWeek(getDatePart(date), firstDayOfWeek);\n endDate = addDays(startDate, TimeConstants.DaysInOneWeek);\n break;\n case DateRangeType.Month:\n startDate = new Date(date.getFullYear(), date.getMonth(), 1);\n endDate = addMonths(startDate, 1);\n break;\n default:\n throw new Error('Unexpected object: ' + dateRangeType);\n }\n // Populate the dates array with the dates in range\n let nextDate = startDate;\n do {\n if (dateRangeType !== DateRangeType.WorkWeek) {\n // push all days not in work week view\n datesArray.push(nextDate);\n } else if (workWeekDays.indexOf(nextDate.getDay()) !== -1) {\n datesArray.push(nextDate);\n }\n nextDate = addDays(nextDate, 1);\n }while (!compareDates(nextDate, endDate))\n return datesArray;\n}\n/**\n * Checks whether the specified date is in the given date range.\n * @param date - The origin date\n * @param dateRange - An array of dates to do the lookup on\n * @returns True if the date matches one of the dates in the specified array, false otherwise.\n */ export function isInDateRangeArray(date, dateRange) {\n for (const dateInRange of dateRange){\n if (compareDates(date, dateInRange)) {\n return true;\n }\n }\n return false;\n}\n/**\n * Returns the week number for a date.\n * Week numbers are 1 - 52 (53) in a year\n * @param navigatedDate - A date to find the week number for.\n * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0)\n * @param firstWeekOfYear - The first week of the year (1-2)\n * @returns The weeks number array for the current month.\n */ export function getWeekNumbersInMonth(weeksInMonth, firstDayOfWeek, firstWeekOfYear, navigatedDate) {\n const selectedYear = navigatedDate.getFullYear();\n const selectedMonth = navigatedDate.getMonth();\n let dayOfMonth = 1;\n const fistDayOfMonth = new Date(selectedYear, selectedMonth, dayOfMonth);\n const endOfFirstWeek = dayOfMonth + (firstDayOfWeek + TimeConstants.DaysInOneWeek - 1) - adjustWeekDay(firstDayOfWeek, fistDayOfMonth.getDay());\n let endOfWeekRange = new Date(selectedYear, selectedMonth, endOfFirstWeek);\n dayOfMonth = endOfWeekRange.getDate();\n const weeksArray = [];\n for(let i = 0; i < weeksInMonth; i++){\n // Get week number for end of week\n weeksArray.push(getWeekNumber(endOfWeekRange, firstDayOfWeek, firstWeekOfYear));\n dayOfMonth += TimeConstants.DaysInOneWeek;\n endOfWeekRange = new Date(selectedYear, selectedMonth, dayOfMonth);\n }\n return weeksArray;\n}\n/**\n * Returns the week number for a date.\n * Week numbers are 1 - 52 (53) in a year\n * @param date - A date to find the week number for.\n * @param firstDayOfWeek - The first day of the week (0-6, Sunday = 0)\n * @param firstWeekOfYear - The first week of the year (1-2)\n * @returns The week's number in the year.\n */ export function getWeekNumber(date, firstDayOfWeek, firstWeekOfYear) {\n // First four-day week of the year - minumum days count\n const fourDayWeek = 4;\n switch(firstWeekOfYear){\n case FirstWeekOfYear.FirstFullWeek:\n return getWeekOfYearFullDays(date, firstDayOfWeek, TimeConstants.DaysInOneWeek);\n case FirstWeekOfYear.FirstFourDayWeek:\n return getWeekOfYearFullDays(date, firstDayOfWeek, fourDayWeek);\n default:\n return getFirstDayWeekOfYear(date, firstDayOfWeek);\n }\n}\n/**\n * Gets the date for the first day of the week based on the given date assuming\n * the specified first day of the week.\n * @param date - The date to find the beginning of the week date for.\n * @returns A new date object representing the first day of the week containing the input date.\n */ export function getStartDateOfWeek(date, firstDayOfWeek) {\n let daysOffset = firstDayOfWeek - date.getDay();\n if (daysOffset > 0) {\n // If first day of week is > date, go 1 week back, to ensure resulting date is in the past.\n daysOffset -= TimeConstants.DaysInOneWeek;\n }\n return addDays(date, daysOffset);\n}\n/**\n * Gets the date for the last day of the week based on the given date assuming\n * the specified first day of the week.\n * @param date - The date to find the beginning of the week date for.\n * @returns A new date object representing the first day of the week containing the input date.\n */ export function getEndDateOfWeek(date, firstDayOfWeek) {\n const lastDayOfWeek = firstDayOfWeek - 1 >= 0 ? firstDayOfWeek - 1 : TimeConstants.DaysInOneWeek - 1;\n let daysOffset = lastDayOfWeek - date.getDay();\n if (daysOffset < 0) {\n // If last day of week is < date, go 1 week forward, to ensure resulting date is in the future.\n daysOffset += TimeConstants.DaysInOneWeek;\n }\n return addDays(date, daysOffset);\n}\n/**\n * Gets a new date with the time portion zeroed out, i.e., set to midnight\n * @param date - The origin date\n * @returns A new date with the time set to midnight\n */ function getDatePart(date) {\n return new Date(date.getFullYear(), date.getMonth(), date.getDate());\n}\n/**\n * Helper function to assist in date comparisons\n */ export function getDatePartHashValue(date) {\n // Generate date hash value created as sum of Date (up to 31 = 5 bits), Month (up to 11 = 4 bits) and Year.\n // eslint-disable-next-line no-bitwise\n return date.getDate() + (date.getMonth() << 5) + (date.getFullYear() << 9);\n}\n/**\n * Helper function for `getWeekNumber`.\n * Returns week number for a date.\n * @param date - current selected date.\n * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0)\n * @param numberOfFullDays - week settings.\n * @returns The week's number in the year.\n */ function getWeekOfYearFullDays(date, firstDayOfWeek, numberOfFullDays) {\n const dayOfYear = getDayOfYear(date) - 1;\n let num = date.getDay() - dayOfYear % TimeConstants.DaysInOneWeek;\n const lastDayOfPrevYear = new Date(date.getFullYear() - 1, MonthOfYear.December, 31);\n const daysInYear = getDayOfYear(lastDayOfPrevYear) - 1;\n let num2 = (firstDayOfWeek - num + 2 * TimeConstants.DaysInOneWeek) % TimeConstants.DaysInOneWeek;\n if (num2 !== 0 && num2 >= numberOfFullDays) {\n num2 -= TimeConstants.DaysInOneWeek;\n }\n let num3 = dayOfYear - num2;\n if (num3 < 0) {\n num -= daysInYear % TimeConstants.DaysInOneWeek;\n num2 = (firstDayOfWeek - num + 2 * TimeConstants.DaysInOneWeek) % TimeConstants.DaysInOneWeek;\n if (num2 !== 0 && num2 + 1 >= numberOfFullDays) {\n num2 -= TimeConstants.DaysInOneWeek;\n }\n num3 = daysInYear - num2;\n }\n return Math.floor(num3 / TimeConstants.DaysInOneWeek + 1);\n}\n/**\n * Helper function for `getWeekNumber`.\n * Returns week number for a date.\n * @param date - current selected date.\n * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0)\n * @returns The week's number in the year.\n */ function getFirstDayWeekOfYear(date, firstDayOfWeek) {\n const num = getDayOfYear(date) - 1;\n const num2 = date.getDay() - num % TimeConstants.DaysInOneWeek;\n const num3 = (num2 - firstDayOfWeek + 2 * TimeConstants.DaysInOneWeek) % TimeConstants.DaysInOneWeek;\n return Math.floor((num + num3) / TimeConstants.DaysInOneWeek + 1);\n}\n/**\n * Helper function for `getWeekNumber`.\n * Returns adjusted week day number when `firstDayOfWeek` is other than Sunday.\n * For Week Day Number comparison checks\n * @param firstDayOfWeek - The first day of week (0-6, Sunday = 0)\n * @param dateWeekDay - shifts number forward to 1 week in case passed as true\n * @returns The day of week adjusted to `firstDayOfWeek`; e.g. when `firstDayOfWeek` is Monday (1),\n * Sunday becomes 7.\n */ function adjustWeekDay(firstDayOfWeek, dateWeekDay) {\n return firstDayOfWeek !== DayOfWeek.Sunday && dateWeekDay < firstDayOfWeek ? dateWeekDay + TimeConstants.DaysInOneWeek : dateWeekDay;\n}\n/**\n * Returns the day number for a date in a year:\n * the number of days since January 1st in the particular year.\n * @param date - A date to find the day number for.\n * @returns The day's number in the year.\n */ function getDayOfYear(date) {\n const month = date.getMonth();\n const year = date.getFullYear();\n let daysUntilDate = 0;\n for(let i = 0; i < month; i++){\n daysUntilDate += daysInMonth(i + 1, year);\n }\n daysUntilDate += date.getDate();\n return daysUntilDate;\n}\n/**\n * Returns the number of days in the month\n * @param month - The month number to target (months 1-12).\n * @param year - The year to target.\n * @returns The number of days in the month.\n */ function daysInMonth(month, year) {\n return new Date(year, month, 0).getDate();\n}\n"],"names":["addDays","addWeeks","addMonths","addYears","getMonthStart","getMonthEnd","getYearStart","getYearEnd","setMonth","compareDates","compareDatePart","getDateRangeArray","isInDateRangeArray","getWeekNumbersInMonth","getWeekNumber","getStartDateOfWeek","getEndDateOfWeek","getDatePartHashValue","date","days","result","Date","getTime","setDate","getDate","weeks","TimeConstants","DaysInOneWeek","months","newMonth","getMonth","MonthInOneYear","years","setFullYear","getFullYear","month","date1","date2","dateRangeType","firstDayOfWeek","workWeekDays","daysToSelectInDayView","datesArray","startDate","endDate","DayOfWeek","Monday","Tuesday","Wednesday","Thursday","Friday","Math","max","DateRangeType","Day","getDatePart","Week","WorkWeek","Month","Error","nextDate","push","indexOf","getDay","dateRange","dateInRange","weeksInMonth","firstWeekOfYear","navigatedDate","selectedYear","selectedMonth","dayOfMonth","fistDayOfMonth","endOfFirstWeek","adjustWeekDay","endOfWeekRange","weeksArray","i","fourDayWeek","FirstWeekOfYear","FirstFullWeek","getWeekOfYearFullDays","FirstFourDayWeek","getFirstDayWeekOfYear","daysOffset","lastDayOfWeek","numberOfFullDays","dayOfYear","getDayOfYear","num","lastDayOfPrevYear","MonthOfYear","December","daysInYear","num2","num3","floor","dateWeekDay","Sunday","year","daysUntilDate","daysInMonth"],"mappings":";;;;;;;;;;;IAMoBA,OAAO;eAAPA;;IAUAC,QAAQ;eAARA;;IAUAC,SAAS;eAATA;;IAmBAC,QAAQ;eAARA;;IAeAC,aAAa;eAAbA;;IAOAC,WAAW;eAAXA;;IAOAC,YAAY;eAAZA;;IAOAC,UAAU;eAAVA;;IAUAC,QAAQ;eAARA;;IAMAC,YAAY;eAAZA;;IAeAC,eAAe;eAAfA;;IAaAC,iBAAiB;eAAjBA;;IAiDAC,kBAAkB;eAAlBA;;IAeAC,qBAAqB;eAArBA;;IAwBAC,aAAa;eAAbA;;IAiBAC,kBAAkB;eAAlBA;;IAaAC,gBAAgB;eAAhBA;;IAkBAC,oBAAoB;eAApBA;;;2BArQkE;AAM3E,SAASjB,QAAQkB,IAAI,EAAEC,IAAI;IAClC,MAAMC,SAAS,IAAIC,KAAKH,KAAKI,OAAO;IACpCF,OAAOG,OAAO,CAACH,OAAOI,OAAO,KAAKL;IAClC,OAAOC;AACX;AAMW,SAASnB,SAASiB,IAAI,EAAEO,KAAK;IACpC,OAAOzB,QAAQkB,MAAMO,QAAQC,wBAAa,CAACC,aAAa;AAC5D;AAQW,SAASzB,UAAUgB,IAAI,EAAEU,MAAM;IACtC,IAAIR,SAAS,IAAIC,KAAKH,KAAKI,OAAO;IAClC,MAAMO,WAAWT,OAAOU,QAAQ,KAAKF;IACrCR,OAAOZ,QAAQ,CAACqB;IAChB,qHAAqH;IACrH,oDAAoD;IACpD,qFAAqF;IACrF,IAAIT,OAAOU,QAAQ,OAAO,AAACD,CAAAA,WAAWH,wBAAa,CAACK,cAAc,GAAGL,wBAAa,CAACK,cAAc,AAAD,IAAKL,wBAAa,CAACK,cAAc,EAAE;QAC/HX,SAASpB,QAAQoB,QAAQ,CAACA,OAAOI,OAAO;IAC5C;IACA,OAAOJ;AACX;AAQW,SAASjB,SAASe,IAAI,EAAEc,K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OAAO0C,IAAI;QAC1BuB,iBAAiBC,YAAYxB,IAAI,GAAGsB;IACxC;IACAC,iBAAiBlF,KAAKM,OAAO;IAC7B,OAAO4E;AACX;AACA;;;;;CAKC,GAAG,SAASC,YAAYlE,KAAK,EAAEgE,IAAI;IAChC,OAAO,IAAI9E,KAAK8E,MAAMhE,OAAO,GAAGX,OAAO;AAC3C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-calendar-compat",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "Calendar compat component for Fluent UI v9",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -33,11 +33,11 @@
33
33
  "dependencies": {
34
34
  "@fluentui/keyboard-keys": "^9.0.7",
35
35
  "@fluentui/react-icons": "^2.0.224",
36
- "@fluentui/react-jsx-runtime": "^9.0.33",
37
- "@fluentui/react-shared-contexts": "^9.15.1",
38
- "@fluentui/react-tabster": "^9.19.4",
39
- "@fluentui/react-theme": "^9.1.18",
40
- "@fluentui/react-utilities": "^9.18.4",
36
+ "@fluentui/react-jsx-runtime": "^9.0.34",
37
+ "@fluentui/react-shared-contexts": "^9.15.2",
38
+ "@fluentui/react-tabster": "^9.19.5",
39
+ "@fluentui/react-theme": "^9.1.19",
40
+ "@fluentui/react-utilities": "^9.18.5",
41
41
  "@griffel/react": "^1.5.14",
42
42
  "@swc/helpers": "^0.5.1"
43
43
  },