@baishuyun/ui-base 6.3.2 → 6.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Amap/AmapProvider/index.js +3 -3
- package/dist/Amap/{AmapProvider-CTn2CH8s.js → AmapProvider-CwKdpmCg.js} +1 -1
- package/dist/Amap/index.js +3 -3
- package/dist/Calendar/{AllDaySection-DS0Frx1p.js → AllDaySection-CseF1DuB.js} +3 -3
- package/dist/Calendar/{Calendar-BIjk9zys.js → Calendar-Yu2HfA5D.js} +85 -95
- package/dist/Calendar/{CurrentTimeIndicator-DaIywtIA.js → CurrentTimeIndicator-CUeblc9r.js} +2 -2
- package/dist/Calendar/{EventCard-D_VeOVDQ.js → EventCard-L6jaKgEw.js} +3 -2
- package/dist/Calendar/{TimeAxis-gKb8dTwY.js → TimeAxis-cK2_3FeM.js} +1 -1
- package/dist/Calendar/{TimeGrid-D8Du5vFP.js → TimeGrid-B8lvUb1W.js} +2 -2
- package/dist/Calendar/index.js +15 -16
- package/dist/Calendar/{layout-DvWx_7gn.js → layout-CaPxiRd-.js} +94 -96
- package/dist/Calendar/subcomponents/AllDaySection/index.js +8 -0
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +5 -0
- package/dist/Calendar/subcomponents/EventCard/index.js +6 -0
- package/dist/Calendar/subcomponents/TimeAxis/index.js +4 -0
- package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -0
- package/dist/Calendar/{style-hCRKx3m1.js → theme-BzNDRi0U.js} +19 -3
- package/dist/Calendar/utils/index.js +37 -41
- package/dist/Calendar/utils/layout/index.js +2 -2
- package/dist/Calendar/utils/theme/index.js +2 -0
- package/dist/ColorPicker/{ColorPicker-BNPxmfw_.js → ColorPicker-By-Y8Tyz.js} +3 -3
- package/dist/ColorPicker/index.js +4 -4
- package/dist/ConfigProvider/index.js +2 -2
- package/dist/DatePicker/DatePicker-PCdNachD.js +115 -0
- package/dist/DatePicker/{DatePickerPanel-BaVC1tq2.js → DatePickerPanel-HoxXteK0.js} +13 -12
- package/dist/DatePicker/{ensureDayjsPlugins-DZjJnZgo.js → ensureDayjsPlugins-C3aqki6i.js} +3 -4
- package/dist/DatePicker/index.js +5 -5
- package/dist/DropDown/{DropDown-m3HT_eex.js → DropDown-CvQAbsEo.js} +11 -11
- package/dist/DropDown/index.js +4 -4
- package/dist/Editor/{Buttons-BB3xV8ku.js → Buttons-DmSUkHWl.js} +4 -4
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +8 -8
- package/dist/Editor/index.js +8 -8
- package/dist/Gantt/GanttChart/index.js +15 -0
- package/dist/Gantt/GanttChart-DJA8pG9U.js +2139 -0
- package/dist/Gantt/GanttHighlightContext-AIpN3-af.js +12 -0
- package/dist/Gantt/GanttTable/index.js +10 -0
- package/dist/Gantt/GanttTable-Di_p-0M1.js +83 -0
- package/dist/Gantt/GanttToolBar/index.js +11 -0
- package/dist/Gantt/GanttToolBar-D5pQdrzv.js +105 -0
- package/dist/Gantt/collapseKeys-C8139wvy.js +160 -0
- package/dist/Gantt/columnResize-By_1E48E.js +46 -0
- package/dist/Gantt/constants-D4ur8WRs.js +39 -0
- package/dist/Gantt/highlightTarget-DmzCIiQb.js +25 -0
- package/dist/Gantt/index.js +374 -0
- package/dist/Gantt/timelineViewConfig-BXl2UkN8.js +118 -0
- package/dist/Gantt/utils/index.js +6 -0
- package/dist/Modal/{Modal-CrK8gFOn.js → Modal-D3LFqIV4.js} +3 -3
- package/dist/Modal/index.js +1 -1
- package/dist/Select/{Select-Dz_xr4my.js → Select-OjCjCogR.js} +144 -138
- package/dist/Select/{SelectInputSearch-GHYAmQ3A.js → SelectInputSearch-DXPTGSc2.js} +1 -1
- package/dist/Select/index.js +5 -5
- package/dist/Table/Table-3-kFIm5v.js +543 -0
- package/dist/Table/constants-CKqc9Os_.js +25 -0
- package/dist/Table/hooks/index.js +2 -0
- package/dist/Table/hooks-CJ2CnSep.js +108 -0
- package/dist/Table/index.js +7 -0
- package/dist/Table/processRowspan-BCzfI5un.js +144 -0
- package/dist/Table/utils/index.js +2 -0
- package/dist/Tabs/{Tabs-CPRNkfMo.js → Tabs-DVQcB3YG.js} +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Tooltip/Tooltip-DW_XP13m.js +171 -0
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +1 -1
- package/dist/animations/index.d.ts +2 -2
- package/dist/components/Amap/__tests__/helpers.d.ts +6 -0
- package/dist/components/Calendar/__tests__/helpers/testFormatMessage.d.ts +1 -1
- package/dist/components/Calendar/context/CalendarContext.d.ts +2 -1
- package/dist/components/Calendar/index.d.ts +2 -2
- package/dist/components/Calendar/{shared → subcomponents}/AllDaySection/AllDaySection.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/DayView/DayView.d.ts +3 -0
- package/dist/components/Calendar/{shared → subcomponents}/EventCard/EventCard.d.ts +1 -1
- package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthCell/MonthCellPopover/MonthCellPopover.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/MonthView/MonthView.d.ts +3 -0
- package/dist/components/Calendar/{panels/WeekPanel → subcomponents}/WeekAllDaySection/WeekAllDaySection.d.ts +1 -1
- package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/WeekEventLayer/MoreButton.d.ts +1 -1
- package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/WeekEventLayer/WeekEventLayer.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/WeekView/WeekView.d.ts +3 -0
- package/dist/components/Calendar/utils/dateUtils.d.ts +2 -1
- package/dist/components/Calendar/utils/eventUtils.d.ts +1 -1
- package/dist/components/Calendar/utils/layout/dayLayoutAlgorithm.d.ts +1 -1
- package/dist/components/Calendar/utils/localeKey.d.ts +2 -0
- package/dist/components/Calendar/utils/normalizeData.d.ts +1 -1
- package/dist/components/Calendar/{style → utils/theme}/index.d.ts +1 -0
- package/dist/components/Calendar/{adapters → utils/theme}/platformTheme.d.ts +1 -1
- package/dist/components/Calendar/{style → utils/theme}/resolveCalendarThemeVars.d.ts +1 -1
- package/dist/components/Calendar/{style → utils/theme}/resolveSubcomponentThemes.d.ts +3 -3
- package/dist/components/Calendar/utils/weekTimedLayout.d.ts +1 -1
- package/dist/components/DatePicker/__tests__/DatePicker.getPopupContainer.test.d.ts +1 -0
- package/dist/components/DatePicker/__tests__/DatePicker.triggerActiveClassName.test.d.ts +1 -0
- package/dist/components/DatePicker/interface.d.ts +7 -0
- package/dist/components/Gantt/Gantt.d.ts +11 -0
- package/dist/components/Gantt/GanttChart/GanttBarTooltip/GanttBarTooltip.d.ts +3 -0
- package/dist/components/Gantt/GanttChart/GanttChart.d.ts +8 -0
- package/dist/components/Gantt/GanttChart/GanttChartCanvas.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/GanttChartCanvasBackground.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/GanttInteractionContext.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/GanttSummaryBar/GanttSummaryBar.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/GanttTaskBar/GanttTaskBar.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/GanttTaskBar/useTaskBarPointer.d.ts +9 -0
- package/dist/components/Gantt/GanttChart/GanttTimelineContext.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/GanttTimelineHeader/GanttTimelineHeader.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/OffscreenTaskIndicators/OffscreenTaskIndicators.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/OffscreenTaskIndicators/__tests__/OffscreenTaskIndicators.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/TodayIndicator/TodayIndicator.d.ts +3 -0
- package/dist/components/Gantt/GanttChart/hooks/__tests__/timelineFocus.contract.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttColumnVirtual.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttDrag.clippedQuarterMonth.test.d.ts +0 -0
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useOffscreenIndicators.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useTimelineViewportController.test.d.ts +0 -0
- package/dist/components/Gantt/GanttChart/hooks/useBarTooltipHover.d.ts +19 -0
- package/dist/components/Gantt/GanttChart/hooks/useEdgeScroll.d.ts +6 -0
- package/dist/components/Gantt/GanttChart/hooks/useGanttColumnVirtual.d.ts +21 -0
- package/dist/components/Gantt/GanttChart/hooks/useGanttDrag.d.ts +15 -0
- package/dist/components/Gantt/GanttChart/hooks/useGanttRowVirtualScroll.d.ts +12 -0
- package/dist/components/Gantt/GanttChart/hooks/useGanttScrollbars.d.ts +2 -0
- package/dist/components/Gantt/GanttChart/hooks/useNormalizedItems.d.ts +11 -0
- package/dist/components/Gantt/GanttChart/hooks/useOffscreenIndicators.d.ts +11 -0
- package/dist/components/Gantt/GanttChart/hooks/useRowHoverHighlight.d.ts +10 -0
- package/dist/components/Gantt/GanttChart/hooks/useTimelineViewportController.d.ts +26 -0
- package/dist/components/Gantt/GanttChart/hooks/useTodayMs.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/index.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/dateRangeNormalizer.subday.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.quarterMonth.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.subday.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.quarterMonth.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.subday.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/quarterMonthScale.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/subdayScale.contract.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineMarkers.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineRange.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineViewConfig.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineViewportEngine.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/buildSummaryBarTooltipContent.d.ts +6 -0
- package/dist/components/Gantt/GanttChart/utils/constants.d.ts +102 -0
- package/dist/components/Gantt/GanttChart/utils/dateRangeNormalizer.d.ts +18 -0
- package/dist/components/Gantt/GanttChart/utils/dragEngine.d.ts +62 -0
- package/dist/components/Gantt/GanttChart/utils/headerBuilder.d.ts +14 -0
- package/dist/components/Gantt/GanttChart/utils/quarterMonthScale.d.ts +9 -0
- package/dist/components/Gantt/GanttChart/utils/taskBarUtils.d.ts +3 -0
- package/dist/components/Gantt/GanttChart/utils/timeScale.d.ts +35 -0
- package/dist/components/Gantt/GanttChart/utils/timelineFocus.d.ts +8 -0
- package/dist/components/Gantt/GanttChart/utils/timelineMarkers.d.ts +2 -0
- package/dist/components/Gantt/GanttChart/utils/timelineRange.d.ts +8 -0
- package/dist/components/Gantt/GanttChart/utils/timelineViewConfig.d.ts +106 -0
- package/dist/components/Gantt/GanttChart/utils/timelineViewportEngine.d.ts +44 -0
- package/dist/components/Gantt/GanttChart/utils/timezoneUtils.d.ts +11 -0
- package/dist/components/Gantt/GanttHighlightContext.d.ts +3 -0
- package/dist/components/Gantt/GanttResizeIndicator.d.ts +3 -0
- package/dist/components/Gantt/GanttTable/GanttTable.d.ts +7 -0
- package/dist/components/Gantt/GanttTable/hooks/useGanttTableHighlightDomSync.d.ts +2 -0
- package/dist/components/Gantt/GanttTable/hooks/useGanttTableLinkedScroll.d.ts +7 -0
- package/dist/components/Gantt/GanttTable/index.d.ts +1 -0
- package/dist/components/Gantt/GanttTable/utils/mapGanttColumns.d.ts +13 -0
- package/dist/components/Gantt/GanttToolBar/GanttToolBar.d.ts +3 -0
- package/dist/components/Gantt/GanttToolBar/index.d.ts +1 -0
- package/dist/components/Gantt/__tests__/Gantt.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/Gantt.grouped.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/GanttBars.renderWindow.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/GanttChart.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/GanttSummaryBar.tooltip.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/GanttToolBar.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/filterItemsByCollapse.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/helpers/ganttDomSetup.d.ts +1 -0
- package/dist/components/Gantt/__tests__/helpers/ganttTestFixtures.d.ts +7 -0
- package/dist/components/Gantt/__tests__/helpers/ganttTestMocks.d.ts +8 -0
- package/dist/components/Gantt/__tests__/helpers/renderWithLocale.d.ts +3 -0
- package/dist/components/Gantt/__tests__/helpers/testFormatMessage.d.ts +2 -0
- package/dist/components/Gantt/__tests__/interface.contract.types.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/timezoneUtils.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/useBarTooltipHover.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/useGanttHighlight.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/useTaskBarPointer.test.d.ts +1 -0
- package/dist/components/Gantt/hooks/useGanttCollapseState.d.ts +6 -0
- package/dist/components/Gantt/hooks/useGanttHighlight.d.ts +10 -0
- package/dist/components/Gantt/hooks/useGanttLayout.d.ts +7 -0
- package/dist/components/Gantt/hooks/useLinkedVerticalScroll.d.ts +6 -0
- package/dist/components/Gantt/index.d.ts +9 -0
- package/dist/components/Gantt/interface.d.ts +140 -0
- package/dist/components/Gantt/internal/GanttLayout.d.ts +8 -0
- package/dist/components/Gantt/internal/GanttTableShell.d.ts +3 -0
- package/dist/components/Gantt/types.internal.d.ts +327 -0
- package/dist/components/Gantt/utils/collapseKeys.d.ts +4 -0
- package/dist/components/Gantt/utils/columnResize.d.ts +19 -0
- package/dist/components/Gantt/utils/constants.d.ts +4 -0
- package/dist/components/Gantt/utils/filterItemsByCollapse.d.ts +9 -0
- package/dist/components/Gantt/utils/highlightTarget.d.ts +13 -0
- package/dist/components/Gantt/utils/index.d.ts +8 -0
- package/dist/components/Gantt/utils/localeKey.d.ts +2 -0
- package/dist/components/Gantt/utils/tableWidthStorage.d.ts +3 -0
- package/dist/components/Select/__tests__/Select.getPopupContainer.test.d.ts +1 -0
- package/dist/components/Select/interface.d.ts +4 -0
- package/dist/components/Table/Table.d.ts +4 -0
- package/dist/components/Table/__tests__/HeaderCell.test.d.ts +1 -0
- package/dist/components/Table/__tests__/TableBody.test.d.ts +1 -0
- package/dist/components/Table/__tests__/processRowspan.test.d.ts +1 -0
- package/dist/components/Table/components/HeaderCell.d.ts +16 -0
- package/dist/components/Table/components/TableBody.d.ts +45 -0
- package/dist/components/Table/components/TableFooter.d.ts +18 -0
- package/dist/components/Table/components/TableHeader.d.ts +14 -0
- package/dist/components/Table/constants.d.ts +29 -0
- package/dist/components/Table/hooks/index.d.ts +2 -0
- package/dist/components/Table/hooks/useColumnResize.d.ts +11 -0
- package/dist/components/Table/hooks/useTableVirtual.d.ts +19 -0
- package/dist/components/Table/index.d.ts +9 -0
- package/dist/components/Table/interface.d.ts +114 -0
- package/dist/components/Table/utils/flattenColumns.d.ts +17 -0
- package/dist/components/Table/utils/index.d.ts +3 -0
- package/dist/components/Table/utils/processRowspan.d.ts +16 -0
- package/dist/components/Table/utils/tableUtils.d.ts +22 -0
- package/dist/components/Tooltip/Tooltip.type.d.ts +2 -0
- package/dist/components/index.d.ts +4 -2
- package/dist/hooks/useLatchedPopupPortalRoot.d.ts +11 -0
- package/dist/index.js +26 -25
- package/dist/locale/lang/en-US.json.d.ts +63 -0
- package/dist/locale/lang/zh-CN.json.d.ts +63 -0
- package/dist/locale/lang/zh-TW.json.d.ts +63 -0
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-DCm-93oJ.js → ConfigProvider-DwmA94S2.js} +128 -1
- package/dist/vendors/{LocaleContext-CRlzP8UO.js → LocaleContext-BJdHS0sH.js} +61 -0
- package/dist/vendors/{Tree-DJpkMB5u.js → Tree-C7BgkjCQ.js} +1 -1
- package/dist/vendors/{animations-BmT0HT5q.js → animations-BeI8JZp1.js} +7 -3
- package/dist/vendors/{useFloatingOverlay-uxlI1G-V.js → useFloatingOverlay-3KB88hpZ.js} +1 -0
- package/dist/vendors/{useLocale-D9kAzQlB.js → useLocale-BTz4slNW.js} +1 -1
- package/dist/vitest-matchers.d.ts +1 -0
- package/package.json +3 -2
- package/dist/Calendar/adapters/index.js +0 -2
- package/dist/Calendar/adapters-zYR7CgzD.js +0 -20
- package/dist/Calendar/shared/AllDaySection/index.js +0 -8
- package/dist/Calendar/shared/CurrentTimeIndicator/index.js +0 -5
- package/dist/Calendar/shared/EventCard/index.js +0 -6
- package/dist/Calendar/shared/TimeAxis/index.js +0 -4
- package/dist/Calendar/shared/TimeGrid/index.js +0 -4
- package/dist/Calendar/style/index.js +0 -2
- package/dist/DatePicker/DatePicker-B2skjsiQ.js +0 -91
- package/dist/Tooltip/Tooltip-RkD8fs0B.js +0 -169
- package/dist/components/Calendar/adapters/index.d.ts +0 -1
- package/dist/components/Calendar/panels/DayPanel/DayPanel.d.ts +0 -3
- package/dist/components/Calendar/panels/MonthPanel/MonthPanel.d.ts +0 -3
- package/dist/components/Calendar/panels/WeekPanel/WeekPanel.d.ts +0 -3
- /package/dist/components/Calendar/{shared → subcomponents}/AllDaySection/index.d.ts +0 -0
- /package/dist/components/Calendar/{Header → subcomponents}/CalendarHeader/CalendarHeader.d.ts +0 -0
- /package/dist/components/Calendar/{Header → subcomponents}/CalendarHeaderLeft/CalendarHeaderLeft.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/CurrentTimeIndicator/CurrentTimeIndicator.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/CurrentTimeIndicator/index.d.ts +0 -0
- /package/dist/components/Calendar/{Header → subcomponents}/DateDisplay/DateDisplay.d.ts +0 -0
- /package/dist/components/Calendar/{Header → subcomponents}/DateDisplay/__tests__/DateDisplay.weekPicker.test.d.ts +0 -0
- /package/dist/components/Calendar/{panels/DayPanel → subcomponents/DayView}/__tests__/CalendarDay.dayFilter.test.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/EventCard/__tests__/EventCard.tooltip.test.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/EventCard/index.d.ts +0 -0
- /package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthCell/MonthCell.d.ts +0 -0
- /package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthHeader/MonthHeader.d.ts +0 -0
- /package/dist/components/Calendar/{Header → subcomponents}/NavButton/NavButton.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/TimeAxis/TimeAxis.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/TimeAxis/index.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/TimeGrid/TimeGrid.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/TimeGrid/index.d.ts +0 -0
- /package/dist/components/Calendar/{Header → subcomponents}/TodayButton/TodayButton.d.ts +0 -0
- /package/dist/components/Calendar/{panels/WeekPanel → subcomponents}/WeekHeader/WeekHeader.d.ts +0 -0
- /package/dist/components/Calendar/{internalTypes.d.ts → types.internal.d.ts} +0 -0
- /package/dist/components/Calendar/{adapters → utils/theme}/__tests__/platformTheme.test.d.ts +0 -0
- /package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveCalendarThemeVars.test.d.ts +0 -0
- /package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveScheduleColorVars.test.d.ts +0 -0
- /package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveSubcomponentThemes.test.d.ts +0 -0
- /package/dist/components/Calendar/{style → utils/theme}/resolveScheduleColorVars.d.ts +0 -0
|
@@ -1,50 +1,48 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "dayjs";
|
|
1
|
+
import e from "dayjs";
|
|
3
2
|
//#region src/components/Calendar/utils/normalizeData.ts
|
|
4
|
-
e()
|
|
5
|
-
|
|
6
|
-
if (e
|
|
7
|
-
if (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return r.isValid() ? i ? r.tz(i) : r : n();
|
|
3
|
+
var t = () => e(null), n = (e, t) => !!(t && e.$x?.$timezone === t), r = (r, i) => {
|
|
4
|
+
if (r == null || r === "") return t();
|
|
5
|
+
if (e.isDayjs(r)) return r.isValid() ? !i || n(r, i) ? r : r.tz(i) : t();
|
|
6
|
+
if (typeof r == "number" || r instanceof Date) {
|
|
7
|
+
let n = e(r);
|
|
8
|
+
return n.isValid() ? i ? n.tz(i) : n : t();
|
|
11
9
|
}
|
|
12
|
-
if (typeof
|
|
13
|
-
let
|
|
14
|
-
return
|
|
10
|
+
if (typeof r == "string") {
|
|
11
|
+
let n = e(r);
|
|
12
|
+
return n.isValid() ? i ? n.tz(i) : n : t();
|
|
15
13
|
}
|
|
16
|
-
return
|
|
17
|
-
},
|
|
14
|
+
return t();
|
|
15
|
+
}, i = (e, t = {}) => {
|
|
18
16
|
let { timeZone: n } = t;
|
|
19
17
|
return Array.isArray(e) ? e.map((e, t) => ({
|
|
20
18
|
id: e.id ?? t,
|
|
21
19
|
sourceIndex: t,
|
|
22
20
|
label: e.label ?? "",
|
|
23
|
-
startTime:
|
|
24
|
-
endTime:
|
|
21
|
+
startTime: r(e.startTime, n),
|
|
22
|
+
endTime: r(e.endTime, n),
|
|
25
23
|
color: e.color
|
|
26
|
-
})) :
|
|
27
|
-
},
|
|
28
|
-
let n =
|
|
29
|
-
return !n.isValid() || !
|
|
30
|
-
},
|
|
24
|
+
})) : [];
|
|
25
|
+
}, a = (e) => e.id, o = (e, t) => {
|
|
26
|
+
let n = r(e.startTime, t), i = r(e.endTime, t);
|
|
27
|
+
return !n.isValid() || !i.isValid() ? !1 : !n.isSame(i, "day");
|
|
28
|
+
}, s = (e, t) => {
|
|
31
29
|
let n = [], r = [];
|
|
32
|
-
for (let i of e)
|
|
30
|
+
for (let i of e) o(i, t) ? n.push(i) : r.push(i);
|
|
33
31
|
return {
|
|
34
32
|
allDayEvents: n,
|
|
35
33
|
timedEvents: r
|
|
36
34
|
};
|
|
37
|
-
},
|
|
38
|
-
let
|
|
39
|
-
if (!
|
|
35
|
+
}, c = (e, t, n) => {
|
|
36
|
+
let i = r(e.startTime, t), a = r(e.endTime, t);
|
|
37
|
+
if (!i.isSame(a, "day")) return n("allDay");
|
|
40
38
|
let o = (e) => `${String(e.hour()).padStart(2, "0")}:${String(e.minute()).padStart(2, "0")}`;
|
|
41
|
-
return `${o(
|
|
42
|
-
},
|
|
39
|
+
return `${o(i)} - ${o(a)}`;
|
|
40
|
+
}, l = (e, t = 22, n = 4) => e * t + Math.max(0, e - 1) * n, u = (e) => ({
|
|
43
41
|
mode: "grid",
|
|
44
42
|
row: e.row,
|
|
45
43
|
startCol: e.startCol,
|
|
46
44
|
endCol: e.endCol
|
|
47
|
-
}),
|
|
45
|
+
}), d = (e) => ({
|
|
48
46
|
mode: "absolute",
|
|
49
47
|
top: e.top,
|
|
50
48
|
height: e.height,
|
|
@@ -52,53 +50,53 @@ var n = () => t(null), r = (e, t) => !!(t && e.$x?.$timezone === t), i = (e, i)
|
|
|
52
50
|
hSpan: e.width,
|
|
53
51
|
hIsPercent: e.isPercent,
|
|
54
52
|
isLastInColumn: e.isLastInColumn
|
|
55
|
-
}),
|
|
53
|
+
}), f = (e, t, n, r) => !e.isValid() || !t.isValid() || !n.isValid() || !r.isValid() ? !1 : e.isSame(t) ? (e.isSame(n) || e.isAfter(n)) && e.isBefore(r) : e.isBefore(r) && t.isAfter(n), p = (e, t, n, i, a) => f(r(e, a), r(t, a), r(n, a), r(i, a)), m = 15, h = {
|
|
56
54
|
allowStackLayout: !0,
|
|
57
55
|
maxColumnsBeforeStack: 10
|
|
58
|
-
},
|
|
59
|
-
let n =
|
|
60
|
-
return r.diff(n, "minute") <
|
|
61
|
-
},
|
|
62
|
-
let r =
|
|
56
|
+
}, g = (e, t) => r(e, t), _ = (e, t) => {
|
|
57
|
+
let n = g(e.startTime, t), r = g(e.endTime, t);
|
|
58
|
+
return r.diff(n, "minute") < m ? n.add(m, "minute") : r;
|
|
59
|
+
}, v = (e, t, n) => {
|
|
60
|
+
let r = g(e.startTime, n), i = _(e, n), a = g(t.startTime, n), o = _(t, n);
|
|
63
61
|
return r.isBefore(o) && i.isAfter(a);
|
|
64
|
-
},
|
|
62
|
+
}, y = (e, t) => {
|
|
65
63
|
if (e.length === 0) return [];
|
|
66
|
-
let n = [...e].sort((e, n) =>
|
|
64
|
+
let n = [...e].sort((e, n) => g(e.startTime, t).valueOf() - g(n.startTime, t).valueOf()), r = [], i = [n[0]], a = _(n[0], t);
|
|
67
65
|
for (let e = 1; e < n.length; e++) {
|
|
68
66
|
let o = n[e];
|
|
69
|
-
if (
|
|
67
|
+
if (g(o.startTime, t).isBefore(a)) {
|
|
70
68
|
i.push(o);
|
|
71
|
-
let e =
|
|
69
|
+
let e = _(o, t);
|
|
72
70
|
e.isAfter(a) && (a = e);
|
|
73
|
-
} else r.push(i), i = [o], a =
|
|
71
|
+
} else r.push(i), i = [o], a = _(o, t);
|
|
74
72
|
}
|
|
75
73
|
return r.push(i), r;
|
|
76
|
-
},
|
|
77
|
-
let n = /* @__PURE__ */ new Map(), r = [], i = [...e].sort((e, n) =>
|
|
74
|
+
}, b = (e, t) => {
|
|
75
|
+
let n = /* @__PURE__ */ new Map(), r = [], i = [...e].sort((e, n) => g(e.startTime, t).valueOf() - g(n.startTime, t).valueOf());
|
|
78
76
|
for (let e of i) {
|
|
79
77
|
let i = !1;
|
|
80
|
-
for (let
|
|
81
|
-
r[
|
|
78
|
+
for (let o = 0; o < r.length; o++) if (r[o].every((n) => !v(n, e, t))) {
|
|
79
|
+
r[o].push(e), n.set(a(e), o), i = !0;
|
|
82
80
|
break;
|
|
83
81
|
}
|
|
84
|
-
i || (r.push([e]), n.set(
|
|
82
|
+
i || (r.push([e]), n.set(a(e), r.length - 1));
|
|
85
83
|
}
|
|
86
84
|
return n;
|
|
87
|
-
},
|
|
85
|
+
}, x = (e, t, n, r, i, o) => {
|
|
88
86
|
let s = n;
|
|
89
87
|
for (let n of r) {
|
|
90
|
-
if (
|
|
91
|
-
let r = i.get(
|
|
92
|
-
r > t &&
|
|
88
|
+
if (a(n) === a(e)) continue;
|
|
89
|
+
let r = i.get(a(n));
|
|
90
|
+
r > t && v(e, n, o) && (s = Math.min(s, r));
|
|
93
91
|
}
|
|
94
92
|
return s - t;
|
|
95
|
-
},
|
|
96
|
-
let { allowStackLayout: r, maxColumnsBeforeStack: i, timeZone:
|
|
97
|
-
...
|
|
93
|
+
}, S = (e, t, n = {}) => {
|
|
94
|
+
let { allowStackLayout: r, maxColumnsBeforeStack: i, timeZone: o } = {
|
|
95
|
+
...h,
|
|
98
96
|
...n
|
|
99
97
|
}, s = Math.max(...Array.from(t.values())) + 1, c = /* @__PURE__ */ new Map(), l = r && s > i;
|
|
100
98
|
for (let n of e) {
|
|
101
|
-
let r =
|
|
99
|
+
let r = a(n), i = t.get(r), u = x(n, i, s, e, t, o), d = i + u === s;
|
|
102
100
|
if (l) {
|
|
103
101
|
let e = i * 15;
|
|
104
102
|
c.set(r, {
|
|
@@ -118,26 +116,26 @@ var n = () => t(null), r = (e, t) => !!(t && e.$x?.$timezone === t), i = (e, i)
|
|
|
118
116
|
}
|
|
119
117
|
}
|
|
120
118
|
return c;
|
|
121
|
-
},
|
|
119
|
+
}, C = (e, t, n = {}) => {
|
|
122
120
|
let { timeZone: r, ...i } = {
|
|
123
|
-
...
|
|
121
|
+
...h,
|
|
124
122
|
...n
|
|
125
|
-
}, { allDayEvents:
|
|
123
|
+
}, { allDayEvents: o, timedEvents: c } = s(e, r), l = y(c, r), u = [];
|
|
126
124
|
for (let e of l) {
|
|
127
|
-
let n =
|
|
125
|
+
let n = b(e, r), o = S(e, n, {
|
|
128
126
|
...i,
|
|
129
127
|
timeZone: r
|
|
130
128
|
}), s = Math.max(...Array.from(n.values())) + 1;
|
|
131
129
|
for (let i of e) {
|
|
132
|
-
let e =
|
|
130
|
+
let e = g(i.startTime, r), c = g(i.endTime, r), l = e.hour() * 60 + e.minute(), d = c.hour() * 60 + c.minute(), f = Math.max(d - l, m), p = l / t.interval * t.rowHeight, h = f / t.interval * t.rowHeight, _ = a(i), v = o.get(_);
|
|
133
131
|
u.push({
|
|
134
132
|
event: i,
|
|
135
133
|
top: p,
|
|
136
|
-
height:
|
|
134
|
+
height: h,
|
|
137
135
|
left: v.left,
|
|
138
136
|
width: v.width,
|
|
139
137
|
isPercent: v.isPercent,
|
|
140
|
-
column: n.get(
|
|
138
|
+
column: n.get(_),
|
|
141
139
|
totalColumns: s,
|
|
142
140
|
isLastInColumn: v.isLastInColumn
|
|
143
141
|
});
|
|
@@ -145,31 +143,31 @@ var n = () => t(null), r = (e, t) => !!(t && e.$x?.$timezone === t), i = (e, i)
|
|
|
145
143
|
}
|
|
146
144
|
return {
|
|
147
145
|
timedEvents: u,
|
|
148
|
-
allDayEvents:
|
|
146
|
+
allDayEvents: o
|
|
149
147
|
};
|
|
150
148
|
};
|
|
151
149
|
//#endregion
|
|
152
150
|
//#region src/components/Calendar/utils/layout/weekLayoutAlgorithm.ts
|
|
153
|
-
function
|
|
154
|
-
let a =
|
|
151
|
+
function w(t, n, i) {
|
|
152
|
+
let a = r(t.startTime, i), o = r(t.endTime, i), s = n.add(7, "day"), c = a.isBefore(n) ? n : a, l = o.isAfter(s) ? s : o, u = n.utcOffset(), d = c.utcOffset(u), f = l.utcOffset(u), p = d.format("YYYY-MM-DD"), m = n.format("YYYY-MM-DD"), h = e(p).diff(m, "day"), g = e(f.hour() === 0 && f.minute() === 0 && f.second() === 0 ? f.format("YYYY-MM-DD") : f.add(1, "day").format("YYYY-MM-DD")).diff(m, "day");
|
|
155
153
|
return {
|
|
156
|
-
event:
|
|
154
|
+
event: t,
|
|
157
155
|
startCol: h,
|
|
158
156
|
endCol: g,
|
|
159
157
|
span: g - h
|
|
160
158
|
};
|
|
161
159
|
}
|
|
162
|
-
function
|
|
160
|
+
function T(e, t) {
|
|
163
161
|
return e.startCol < t.endCol && e.endCol > t.startCol;
|
|
164
162
|
}
|
|
165
|
-
function
|
|
163
|
+
function E(e, t, n) {
|
|
166
164
|
if (!e || e.length === 0) return [];
|
|
167
|
-
let r = e.map((e) =>
|
|
165
|
+
let r = e.map((e) => w(e, t, n)).filter((e) => e.span > 0);
|
|
168
166
|
r.sort((e, t) => e.startCol === t.startCol ? t.span - e.span : e.startCol - t.startCol);
|
|
169
167
|
let i = [], a = [];
|
|
170
168
|
for (let e of r) {
|
|
171
169
|
let t = !1;
|
|
172
|
-
for (let n = 0; n < i.length; n++) if (!i[n].some((t) =>
|
|
170
|
+
for (let n = 0; n < i.length; n++) if (!i[n].some((t) => T(t, e))) {
|
|
173
171
|
i[n].push(e), a.push({
|
|
174
172
|
...e,
|
|
175
173
|
row: n
|
|
@@ -185,15 +183,15 @@ function D(e, t, n) {
|
|
|
185
183
|
}
|
|
186
184
|
//#endregion
|
|
187
185
|
//#region src/components/Calendar/utils/layout/monthLayoutAlgorithm.ts
|
|
188
|
-
var
|
|
186
|
+
var D = {
|
|
189
187
|
HEADER_HEIGHT: 34,
|
|
190
188
|
SLOT_HEIGHT: 22,
|
|
191
189
|
SLOT_GAP: 4,
|
|
192
190
|
WEEK_PADDING_X: 10,
|
|
193
191
|
EVENT_RIGHT_GAP: 4
|
|
194
192
|
};
|
|
195
|
-
function
|
|
196
|
-
let { startCol: t, endCol: n, row: r } = e, { HEADER_HEIGHT: i, SLOT_HEIGHT: a, SLOT_GAP: o, EVENT_RIGHT_GAP: s, WEEK_PADDING_X: c } =
|
|
193
|
+
function O(e) {
|
|
194
|
+
let { startCol: t, endCol: n, row: r } = e, { HEADER_HEIGHT: i, SLOT_HEIGHT: a, SLOT_GAP: o, EVENT_RIGHT_GAP: s, WEEK_PADDING_X: c } = D, l = 100 / 7, u = t > 0 ? c : 0;
|
|
197
195
|
return {
|
|
198
196
|
top: i + r * (a + o),
|
|
199
197
|
height: a,
|
|
@@ -201,8 +199,8 @@ function k(e) {
|
|
|
201
199
|
width: `calc(${(n - t) * l}% - ${s + u}px)`
|
|
202
200
|
};
|
|
203
201
|
}
|
|
204
|
-
function
|
|
205
|
-
let a =
|
|
202
|
+
function k(e, t, n, i) {
|
|
203
|
+
let a = r(e.startTime, i), o = r(e.endTime, i), s = t.add(n, "day"), c = a.isBefore(t) ? t : a, l = o.isAfter(s) ? s : o, u = c.diff(t, "day"), d = a.startOf("day").diff(t.startOf("day"), "day"), f = l.hour() === 0 && l.minute() === 0 && l.second() === 0, p = a.isSame(o) && !a.isBefore(t) && a.isBefore(s) ? u + 1 : f ? l.diff(t, "day") : l.diff(t, "day") + 1;
|
|
206
204
|
return {
|
|
207
205
|
event: e,
|
|
208
206
|
startDayIndex: u,
|
|
@@ -211,18 +209,18 @@ function A(e, t, n, r) {
|
|
|
211
209
|
originalStartDayIndex: d
|
|
212
210
|
};
|
|
213
211
|
}
|
|
214
|
-
function
|
|
215
|
-
return !e || e.length === 0 ? [] : e.map((e) =>
|
|
212
|
+
function A(e, t, n, r) {
|
|
213
|
+
return !e || e.length === 0 ? [] : e.map((e) => k(e, t, n, r));
|
|
216
214
|
}
|
|
217
|
-
function
|
|
215
|
+
function j(e) {
|
|
218
216
|
if (!e || e.length === 0) return /* @__PURE__ */ new Map();
|
|
219
217
|
let t = [...e].sort((e, t) => e.startDayIndex === t.startDayIndex ? t.span - e.span : e.startDayIndex - t.startDayIndex), n = /* @__PURE__ */ new Map(), r = [];
|
|
220
218
|
for (let e of t) {
|
|
221
|
-
let { event: t, startDayIndex: i, endDayIndex:
|
|
219
|
+
let { event: t, startDayIndex: i, endDayIndex: o } = e, s = -1;
|
|
222
220
|
for (let e = 0; e <= r.length; e++) {
|
|
223
221
|
r[e] || (r[e] = []);
|
|
224
222
|
let t = !0;
|
|
225
|
-
for (let n = i; n <
|
|
223
|
+
for (let n = i; n < o; n++) if (r[e][n]) {
|
|
226
224
|
t = !1;
|
|
227
225
|
break;
|
|
228
226
|
}
|
|
@@ -232,16 +230,16 @@ function M(e) {
|
|
|
232
230
|
}
|
|
233
231
|
}
|
|
234
232
|
r[s] || (r[s] = []);
|
|
235
|
-
let c =
|
|
236
|
-
for (let e = i; e <
|
|
233
|
+
let c = a(t);
|
|
234
|
+
for (let e = i; e < o; e++) r[s][e] = c;
|
|
237
235
|
n.set(c, s);
|
|
238
236
|
}
|
|
239
237
|
return n;
|
|
240
238
|
}
|
|
241
|
-
function
|
|
242
|
-
return !e || e.length === 0 ? /* @__PURE__ */ new Map() :
|
|
239
|
+
function M(e, t, n, r) {
|
|
240
|
+
return !e || e.length === 0 ? /* @__PURE__ */ new Map() : j(A(e, t, n, r));
|
|
243
241
|
}
|
|
244
|
-
function
|
|
242
|
+
function N(e, t) {
|
|
245
243
|
let { event: n, startDayIndex: r, endDayIndex: i, originalStartDayIndex: a } = e, o = [], s = r;
|
|
246
244
|
for (; s < i;) {
|
|
247
245
|
let e = Math.floor(s / 7), r = (e + 1) * 7, c = Math.min(i, r), l = s % 7;
|
|
@@ -258,45 +256,45 @@ function P(e, t) {
|
|
|
258
256
|
}
|
|
259
257
|
return o;
|
|
260
258
|
}
|
|
261
|
-
function
|
|
262
|
-
let c = /* @__PURE__ */ new Set(), l =
|
|
259
|
+
function P(e, t, n, r, i, o, s) {
|
|
260
|
+
let c = /* @__PURE__ */ new Set(), l = o || A(t, n, r, s);
|
|
263
261
|
if (l.length === 0) return c;
|
|
264
262
|
let u = Array.from({ length: r }, () => []);
|
|
265
263
|
for (let e of l) for (let t = e.startDayIndex; t < e.endDayIndex; t++) u[t].push(e);
|
|
266
264
|
for (let t = 0; t < r; t++) {
|
|
267
|
-
let n = u[t].filter((e) => !c.has(
|
|
265
|
+
let n = u[t].filter((e) => !c.has(a(e.event))), r = n.some((t) => e.get(a(t.event)) >= i) && i > 1 ? i - 1 : i;
|
|
268
266
|
for (let t of n) {
|
|
269
|
-
let n =
|
|
267
|
+
let n = a(t.event);
|
|
270
268
|
e.get(n) >= r && c.add(n);
|
|
271
269
|
}
|
|
272
270
|
}
|
|
273
271
|
return c;
|
|
274
272
|
}
|
|
275
|
-
function
|
|
276
|
-
let i =
|
|
273
|
+
function F(e, t, n = 6, r) {
|
|
274
|
+
let i = A(e, t, n * 7, r);
|
|
277
275
|
if (!e || e.length === 0) return {
|
|
278
276
|
weekLayouts: Array.from({ length: n }, () => []),
|
|
279
277
|
eventRowMap: /* @__PURE__ */ new Map(),
|
|
280
278
|
gridEvents: i
|
|
281
279
|
};
|
|
282
|
-
let
|
|
280
|
+
let o = j(i), s = Array.from({ length: n }, () => []);
|
|
283
281
|
for (let e of i) {
|
|
284
|
-
let t =
|
|
282
|
+
let t = N(e, o.get(a(e.event)));
|
|
285
283
|
for (let e of t) s[e.weekIndex].push(e);
|
|
286
284
|
}
|
|
287
285
|
return {
|
|
288
286
|
weekLayouts: s,
|
|
289
|
-
eventRowMap:
|
|
287
|
+
eventRowMap: o,
|
|
290
288
|
gridEvents: i
|
|
291
289
|
};
|
|
292
290
|
}
|
|
293
|
-
function
|
|
291
|
+
function I(e, t, n) {
|
|
294
292
|
let r = Array(7).fill(0), i = Array.from({ length: 7 }, () => /* @__PURE__ */ new Set());
|
|
295
|
-
for (let
|
|
296
|
-
let e = o
|
|
297
|
-
if (t.has(e) ||
|
|
293
|
+
for (let o of e) {
|
|
294
|
+
let e = a(o.event);
|
|
295
|
+
if (t.has(e) || o.row >= n) for (let t = o.startCol; t < o.endCol; t++) i[t].has(e) || (i[t].add(e), r[t]++);
|
|
298
296
|
}
|
|
299
297
|
return r;
|
|
300
298
|
}
|
|
301
299
|
//#endregion
|
|
302
|
-
export {
|
|
300
|
+
export { r as C, i as S, f as _, P as a, d as b, b as c, C as d, y as f, o as g, a as h, O as i, x as l, c as m, M as n, I as o, l as p, F as r, E as s, D as t, S as u, p as v, u as x, s as y };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import "../../../Icon/Icon-BQ3Whub2.js";
|
|
2
|
+
import "../../../Tooltip/Tooltip-DW_XP13m.js";
|
|
3
|
+
import "../../context-DNOJ9LW_.js";
|
|
4
|
+
import "../../../DatePicker/ensureDayjsPlugins-C3aqki6i.js";
|
|
5
|
+
import "../../layout-CaPxiRd-.js";
|
|
6
|
+
import "../../EventCard-L6jaKgEw.js";
|
|
7
|
+
import { t as e } from "../../AllDaySection-CseF1DuB.js";
|
|
8
|
+
export { e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "../vendors/cssVars-C4BlzyxA.js";
|
|
2
2
|
import { n as t } from "./colorUtils-DcpqM3KR.js";
|
|
3
|
-
//#region src/components/Calendar/
|
|
3
|
+
//#region src/components/Calendar/utils/theme/resolveScheduleColorVars.ts
|
|
4
4
|
var n = (e, t, n) => {
|
|
5
5
|
let r = {};
|
|
6
6
|
return e && (r["--calendar-schedule-border"] = e), t && (r["--calendar-schedule-bg"] = t), n && (r["--calendar-schedule-hover"] = n), r;
|
|
@@ -50,6 +50,22 @@ var n = (e, t, n) => {
|
|
|
50
50
|
cellSelectedBg: e.colorPrimary,
|
|
51
51
|
weekRangeBg: e.datePickerWeekRangeBg
|
|
52
52
|
};
|
|
53
|
-
}, d =
|
|
53
|
+
}, d = (e) => {
|
|
54
|
+
let t = {
|
|
55
|
+
colorBgContainer: e.background?.color,
|
|
56
|
+
colorText: e.titleColor,
|
|
57
|
+
colorTextTertiary: e.overTitleColor,
|
|
58
|
+
colorFillSecondary: e.headerBackground,
|
|
59
|
+
colorPrimary: e.highlightColor,
|
|
60
|
+
colorLink: e.moreRecord,
|
|
61
|
+
colorTextQuaternary: e.specificallyColor,
|
|
62
|
+
datePickerColorBgContainer: e.dataChooseBackgroundColor ?? e.dataChooseBackroundColor,
|
|
63
|
+
datePickerWeekRangeBg: e.weekRangeBackgroundColor ?? e.weekRangeBackroundColor,
|
|
64
|
+
eventBorderColor: e.scheduleColor?.verticalBackground,
|
|
65
|
+
eventBg: e.scheduleColor?.horizontalBackground,
|
|
66
|
+
eventBgHover: e.scheduleColor?.horizontalBackgroundHover
|
|
67
|
+
};
|
|
68
|
+
return e.background?.type === "image" && e.background.image && (t.panelBgImage = e.background.image, t.panelBgImagePosition = e.background.position ?? "center"), t;
|
|
69
|
+
}, f = "#ff5631";
|
|
54
70
|
//#endregion
|
|
55
|
-
export {
|
|
71
|
+
export { o as a, l as i, d as n, r as o, u as r, f as t };
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { C as
|
|
3
|
-
import { n as
|
|
4
|
-
import
|
|
1
|
+
import "../../DatePicker/ensureDayjsPlugins-C3aqki6i.js";
|
|
2
|
+
import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "../layout-CaPxiRd-.js";
|
|
3
|
+
import { n as C, t as w } from "../colorUtils-DcpqM3KR.js";
|
|
4
|
+
import T from "dayjs";
|
|
5
5
|
//#region src/components/Calendar/utils/dateUtils.ts
|
|
6
|
-
var
|
|
7
|
-
let n =
|
|
6
|
+
var E = (t, n) => e(t, n), D = (e) => String(e).padStart(2, "0"), O = (e, t) => {
|
|
7
|
+
let n = E(e, t), r = n.startOf("month").startOf("isoWeek"), i = n.endOf("month").endOf("isoWeek").diff(r, "day") + 1;
|
|
8
8
|
return {
|
|
9
9
|
gridStart: r,
|
|
10
10
|
weekCount: Math.ceil(i / 7)
|
|
11
11
|
};
|
|
12
|
-
},
|
|
12
|
+
}, k = (e, t) => t("fullDate", {
|
|
13
13
|
year: e.year(),
|
|
14
|
-
month:
|
|
15
|
-
day:
|
|
16
|
-
}),
|
|
17
|
-
let r =
|
|
14
|
+
month: D(e.month() + 1),
|
|
15
|
+
day: D(e.date())
|
|
16
|
+
}), A = (e, t, n, r) => E(e, r).add(t, n).toDate(), j = (e, t) => E(e, t).startOf("isoWeek"), M = (e, t) => E(e, t).endOf("isoWeek").startOf("day"), N = (e, t, n) => {
|
|
17
|
+
let r = E(e, t);
|
|
18
18
|
return n("yearMonth", {
|
|
19
19
|
year: r.year(),
|
|
20
|
-
month:
|
|
20
|
+
month: D(r.month() + 1)
|
|
21
21
|
});
|
|
22
|
-
},
|
|
23
|
-
let r =
|
|
22
|
+
}, P = (e, t, n) => k(E(e, t), n), F = (e, t, n) => {
|
|
23
|
+
let r = E(e, n);
|
|
24
24
|
return r.date() === 1 ? t("monthDay", {
|
|
25
25
|
month: r.month() + 1,
|
|
26
26
|
day: r.date()
|
|
27
27
|
}) : String(r.date());
|
|
28
|
-
},
|
|
29
|
-
let i =
|
|
28
|
+
}, I = (e, t, n, r) => {
|
|
29
|
+
let i = E(e, n), a = E(t, n);
|
|
30
30
|
return i.year() === a.year() ? i.month() === a.month() ? r("dayOnly", { day: i.date() }) : r("monthDay", {
|
|
31
31
|
month: i.month() + 1,
|
|
32
32
|
day: i.date()
|
|
33
|
-
}) :
|
|
34
|
-
},
|
|
35
|
-
let { gridStart: n, weekCount: r } =
|
|
33
|
+
}) : k(i, r);
|
|
34
|
+
}, L = (e, t, n) => A(e, t, "day", n), R = (e, t, n) => A(e, t, "week", n), z = (e, t, n) => A(e, t, "month", n), B = (e, t, n, r) => t === "day" ? L(e, n, r) : t === "week" ? R(e, n, r) : z(e, n, r), V = (e, t) => O(e, t).weekCount, H = (e, t) => {
|
|
35
|
+
let { gridStart: n, weekCount: r } = O(e, t);
|
|
36
36
|
return Array.from({ length: r * 7 }, (e, t) => n.add(t, "day"));
|
|
37
37
|
}, U = (e, t) => {
|
|
38
|
-
let { gridStart: n, weekCount: r } =
|
|
38
|
+
let { gridStart: n, weekCount: r } = O(e, t);
|
|
39
39
|
return {
|
|
40
40
|
start: n,
|
|
41
41
|
end: n.add(r * 7, "day")
|
|
42
42
|
};
|
|
43
43
|
}, W = (e, t) => {
|
|
44
|
-
let n =
|
|
44
|
+
let n = E(e, t);
|
|
45
45
|
return n.year() * 12 + n.month();
|
|
46
46
|
}, G = (e, t, n) => W(e, n) === W(t, n), K = (e, t, n) => {
|
|
47
47
|
if (t === "day") {
|
|
48
|
-
let t =
|
|
48
|
+
let t = E(e, n).startOf("day");
|
|
49
49
|
return {
|
|
50
50
|
start: t,
|
|
51
51
|
end: t.add(1, "day")
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
if (t === "week") {
|
|
55
|
-
let t =
|
|
55
|
+
let t = j(e, n);
|
|
56
56
|
return {
|
|
57
57
|
start: t,
|
|
58
58
|
end: t.add(7, "day")
|
|
@@ -62,11 +62,7 @@ var D = (e, n) => t(e, n), O = (e) => String(e).padStart(2, "0"), k = (e, t) =>
|
|
|
62
62
|
start: null,
|
|
63
63
|
end: null
|
|
64
64
|
};
|
|
65
|
-
}
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region src/components/Calendar/utils/timeUtils.ts
|
|
68
|
-
e();
|
|
69
|
-
var q = {
|
|
65
|
+
}, q = {
|
|
70
66
|
short: {
|
|
71
67
|
interval: 60,
|
|
72
68
|
rowHeight: 60,
|
|
@@ -85,30 +81,30 @@ var q = {
|
|
|
85
81
|
}, J = (e) => q[e] || q.medium, Y = (e, t) => e / t.interval * t.rowHeight, X = (e) => e.totalRows * e.rowHeight, Z = (e, t) => {
|
|
86
82
|
let n = e * t.interval, r = Math.floor(n / 60), i = n % 60;
|
|
87
83
|
return `${String(r).padStart(2, "0")}:${String(i).padStart(2, "0")}`;
|
|
88
|
-
}, Q = (e) => e ?
|
|
89
|
-
let t = e ?
|
|
84
|
+
}, Q = (e) => e ? T().tz(e) : T(), $ = (e) => {
|
|
85
|
+
let t = e ? T().tz(e).utcOffset() : T().utcOffset(), n = t >= 0 ? "+" : "-", r = Math.abs(t), i = Math.floor(r / 60), a = r % 60;
|
|
90
86
|
return a === 0 ? `GMT${n}${i}` : `GMT${n}${i}:${String(a).padStart(2, "0")}`;
|
|
91
|
-
}, ee = (
|
|
87
|
+
}, ee = (t, n) => {
|
|
92
88
|
let r = Q(n);
|
|
93
|
-
return t
|
|
89
|
+
return e(t, n).isSame(r, "day");
|
|
94
90
|
}, te = (e, t) => {
|
|
95
91
|
let n = Q(t);
|
|
96
92
|
return Y(n.hour() * 60 + n.minute(), e);
|
|
97
|
-
}, ne = (
|
|
98
|
-
let l =
|
|
99
|
-
for (let
|
|
100
|
-
let
|
|
101
|
-
|
|
102
|
-
...
|
|
103
|
-
startTime:
|
|
93
|
+
}, ne = (t, r, i, a) => Array.from({ length: 7 }, (s, c) => {
|
|
94
|
+
let l = r.add(c, "day").startOf("day"), u = l.add(1, "day"), d = [];
|
|
95
|
+
for (let r of t) {
|
|
96
|
+
let t = e(r.startTime, a), i = e(r.endTime, a);
|
|
97
|
+
n(t, i, l, u) && d.push({
|
|
98
|
+
...r,
|
|
99
|
+
startTime: t.isBefore(l) ? l : t,
|
|
104
100
|
endTime: i.isAfter(u) ? u : i
|
|
105
101
|
});
|
|
106
102
|
}
|
|
107
|
-
let { timedEvents: f } =
|
|
103
|
+
let { timedEvents: f } = o(d, i, {
|
|
108
104
|
allowStackLayout: !0,
|
|
109
105
|
timeZone: a
|
|
110
106
|
});
|
|
111
107
|
return f;
|
|
112
108
|
});
|
|
113
109
|
//#endregion
|
|
114
|
-
export {
|
|
110
|
+
export { w as COLOR_SCHEME, v as MONTH_LAYOUT_CONSTANTS, q as ZOOM_CONFIG, L as addDays, z as addMonths, R as addWeeks, _ as assignAllDayRows, a as assignColumns, p as assignGlobalRows, g as assignMonthEventRows, h as calcAllDaySectionHeight, d as calculateExpansion, y as calculateHorizontalLayout, o as calculateLayout, u as calculateSegmentPosition, r as computeVisibility, m as computeWeekHiddenCounts, F as formatCalendarDayNumber, f as formatEventTime, P as formatFullDate, Z as formatTimeLabel, I as formatWeekEndDate, N as formatYearMonth, l as getCalendarEventId, W as getCalendarMonthKey, C as getColorScheme, Q as getCurrentTimeInTZ, te as getCurrentTimeTop, H as getDynamicMonthViewDates, U as getMonthViewRange, V as getMonthWeekCount, $ as getTimeZoneLabel, X as getTotalHeight, K as getVisibleRangeByMode, M as getWeekEnd, j as getWeekStart, J as getZoomConfig, s as groupIntoClusters, c as isAllDayEvent, G as isCurrentMonth, ee as isToday, ne as layoutTimedEventsForWeek, Y as minutesToPixels, t as normalizeData, n as overlapsHalfOpenInstant, b as overlapsRangeHalfOpen, e as parseCalendarTime, S as partitionCalendarEvents, B as shiftDateByMode, i as toAbsolutePosition, x as toGridPosition };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../../DatePicker/ensureDayjsPlugins-
|
|
2
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../../layout-
|
|
1
|
+
import "../../../DatePicker/ensureDayjsPlugins-C3aqki6i.js";
|
|
2
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../../layout-CaPxiRd-.js";
|
|
3
3
|
export { u as MONTH_LAYOUT_CONSTANTS, l as assignAllDayRows, t as assignColumns, o as assignGlobalRows, c as assignMonthEventRows, a as calculateExpansion, d as calculateHorizontalLayout, n as calculateLayout, i as calculateSegmentPosition, e as computeVisibility, s as computeWeekHiddenCounts, r as groupIntoClusters };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../theme-BzNDRi0U.js";
|
|
2
|
+
export { a as CALENDAR_CURRENT_TIME_COLOR, e as resolveCalendarThemeVars, i as resolveDatePickerThemeFromCalendar, n as resolvePlatformCalendarTheme, r as resolveScheduleColorVars, t as resolveSegmentedThemeFromCalendar };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-BQ3Whub2.js";
|
|
2
|
-
import { t } from "../vendors/useFloatingOverlay-
|
|
3
|
-
import { t as n } from "../vendors/useLocale-
|
|
2
|
+
import { t } from "../vendors/useFloatingOverlay-3KB88hpZ.js";
|
|
3
|
+
import { t as n } from "../vendors/useLocale-BTz4slNW.js";
|
|
4
4
|
import { t as r } from "../vendors/color-BeQo449h.js";
|
|
5
|
-
import { n as i } from "../vendors/animations-
|
|
5
|
+
import { n as i } from "../vendors/animations-BeI8JZp1.js";
|
|
6
6
|
import { isArray as a } from "lodash-es";
|
|
7
7
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
8
|
import { cloneElement as l, isValidElement as u, useMemo as d, useRef as f, useState as p } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../Icon/Icon-BQ3Whub2.js";
|
|
2
|
-
import "../vendors/LocaleContext-
|
|
3
|
-
import { n as e, t } from "./ColorPicker-
|
|
4
|
-
import "../vendors/useFloatingOverlay-
|
|
5
|
-
import "../vendors/useLocale-
|
|
2
|
+
import "../vendors/LocaleContext-BJdHS0sH.js";
|
|
3
|
+
import { n as e, t } from "./ColorPicker-By-Y8Tyz.js";
|
|
4
|
+
import "../vendors/useFloatingOverlay-3KB88hpZ.js";
|
|
5
|
+
import "../vendors/useLocale-BTz4slNW.js";
|
|
6
6
|
import "../vendors/color-BeQo449h.js";
|
|
7
7
|
export { e as COLOR_OPTIONS_RGBA, t as default };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../vendors/LocaleContext-
|
|
2
|
-
import { n as e, t } from "../vendors/ConfigProvider-
|
|
1
|
+
import "../vendors/LocaleContext-BJdHS0sH.js";
|
|
2
|
+
import { n as e, t } from "../vendors/ConfigProvider-DwmA94S2.js";
|
|
3
3
|
export { t as ConfigProvider, t as default, e as useConfig };
|