@baishuyun/ui-base 6.3.2 → 6.4.0
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-By5tTMAj.js} +1 -1
- package/dist/Amap/index.js +3 -3
- package/dist/Calendar/{AllDaySection-DS0Frx1p.js → AllDaySection-DwQz-p7a.js} +3 -3
- package/dist/Calendar/{Calendar-BIjk9zys.js → Calendar-CuBzeTkR.js} +84 -95
- package/dist/Calendar/{CurrentTimeIndicator-DaIywtIA.js → CurrentTimeIndicator-CUeblc9r.js} +2 -2
- package/dist/Calendar/{EventCard-D_VeOVDQ.js → EventCard-DRJrT_AG.js} +2 -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-B6ZFxTt6.js +114 -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-C5H9UObs.js} +3 -3
- package/dist/DropDown/index.js +4 -4
- package/dist/Editor/{Buttons-BB3xV8ku.js → Buttons-B8_yDqF5.js} +3 -3
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +7 -7
- package/dist/Editor/index.js +7 -7
- package/dist/Gantt/GanttChart/index.js +15 -0
- package/dist/Gantt/GanttChart-DpmbH0GI.js +1965 -0
- package/dist/Gantt/GanttHighlightContext-AIpN3-af.js +12 -0
- package/dist/Gantt/GanttTable/index.js +10 -0
- package/dist/Gantt/GanttTable-DSTq5XmX.js +83 -0
- package/dist/Gantt/GanttToolBar/index.js +11 -0
- package/dist/Gantt/GanttToolBar-fCAi-4zZ.js +91 -0
- package/dist/Gantt/collapseKeys-BWMH5k37.js +156 -0
- package/dist/Gantt/columnResize-By_1E48E.js +46 -0
- package/dist/Gantt/constants-_vMvDXFh.js +40 -0
- package/dist/Gantt/highlightTarget-DmzCIiQb.js +25 -0
- package/dist/Gantt/index.js +374 -0
- package/dist/Gantt/timelineViewConfig-DshzoBp7.js +118 -0
- package/dist/Gantt/utils/index.js +6 -0
- package/dist/Select/{Select-Dz_xr4my.js → Select-Gkywa_sm.js} +140 -134
- package/dist/Select/{SelectInputSearch-GHYAmQ3A.js → SelectInputSearch-DXPTGSc2.js} +1 -1
- package/dist/Select/index.js +4 -4
- package/dist/Table/Table-DVTq4n2V.js +544 -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/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/interface.d.ts +5 -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/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/useBarTooltipHover.d.ts +19 -0
- package/dist/components/Gantt/GanttChart/hooks/useEdgeScroll.d.ts +7 -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 +24 -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__/timelineViewConfig.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 +93 -0
- package/dist/components/Gantt/GanttChart/utils/dateRangeNormalizer.d.ts +18 -0
- package/dist/components/Gantt/GanttChart/utils/dragEngine.d.ts +60 -0
- package/dist/components/Gantt/GanttChart/utils/headerBuilder.d.ts +14 -0
- package/dist/components/Gantt/GanttChart/utils/quarterMonthScale.d.ts +8 -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 +42 -0
- package/dist/components/Gantt/GanttChart/utils/timelineMarkers.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/timelineViewConfig.d.ts +106 -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__/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 +313 -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 +24 -23
- 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-BRfJ7gWc.js} +123 -1
- package/dist/vendors/{LocaleContext-CRlzP8UO.js → LocaleContext-BJdHS0sH.js} +61 -0
- 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
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
import "../Icon/Icon-BQ3Whub2.js";
|
|
2
|
+
import "../vendors/LocaleContext-BJdHS0sH.js";
|
|
3
|
+
import "../vendors/useLocale-BTz4slNW.js";
|
|
4
|
+
import "../Tooltip/Tooltip-DW_XP13m.js";
|
|
5
|
+
import "../Select/SelectInputSearch-DXPTGSc2.js";
|
|
6
|
+
import "../NotFoundContent/NotFoundContent-7xV-zOG2.js";
|
|
7
|
+
import "../vendors/useFloatingPortal-DsEtsAGW.js";
|
|
8
|
+
import "../DropDown/DropDown-C5H9UObs.js";
|
|
9
|
+
import "../Table/processRowspan-BCzfI5un.js";
|
|
10
|
+
import "../Table/Table-DVTq4n2V.js";
|
|
11
|
+
import "../Table/hooks-CJ2CnSep.js";
|
|
12
|
+
import { a as e, c as t, i as n, l as r, o as i, s as a } from "./constants-_vMvDXFh.js";
|
|
13
|
+
import { r as o } from "./columnResize-By_1E48E.js";
|
|
14
|
+
import { t as s } from "./GanttTable-DSTq5XmX.js";
|
|
15
|
+
import { t as c } from "./GanttHighlightContext-AIpN3-af.js";
|
|
16
|
+
import { n as l, t as u } from "./highlightTarget-DmzCIiQb.js";
|
|
17
|
+
import { c as d, o as f, r as p, s as m } from "./timelineViewConfig-DshzoBp7.js";
|
|
18
|
+
import { n as h, r as g, t as _ } from "./collapseKeys-BWMH5k37.js";
|
|
19
|
+
import { t as v } from "./GanttChart-DpmbH0GI.js";
|
|
20
|
+
import "./GanttToolBar-fCAi-4zZ.js";
|
|
21
|
+
import { jsx as y, jsxs as b } from "react/jsx-runtime";
|
|
22
|
+
import { forwardRef as x, useCallback as S, useEffect as C, useMemo as w, useRef as T, useState as E } from "react";
|
|
23
|
+
import D from "clsx";
|
|
24
|
+
import { useEventListener as O, useSize as k } from "ahooks";
|
|
25
|
+
import { useContextSelector as A } from "use-context-selector";
|
|
26
|
+
//#region src/components/Gantt/GanttResizeIndicator.tsx
|
|
27
|
+
var j = ({ tableWidth: e, onWidthChange: t, onResizeEnd: n, containerRef: r }) => {
|
|
28
|
+
let [i, a] = E(!1), [o, s] = E(!1), c = T(0), l = T(0), u = T(e);
|
|
29
|
+
C(() => {
|
|
30
|
+
u.current = e;
|
|
31
|
+
}, [e]);
|
|
32
|
+
let d = i || o, f = S((e) => {
|
|
33
|
+
s(!0), c.current = e.clientX, l.current = u.current, e.preventDefault();
|
|
34
|
+
}, []), p = S((e) => {
|
|
35
|
+
if (!o) return;
|
|
36
|
+
let n = e.clientX - c.current, i = l.current + n, a = (r.current?.offsetWidth || 1e3) - 300;
|
|
37
|
+
i < 200 ? i = 200 : i > a && (i = a), t(i);
|
|
38
|
+
}, [
|
|
39
|
+
o,
|
|
40
|
+
r,
|
|
41
|
+
t
|
|
42
|
+
]), m = S(() => {
|
|
43
|
+
o && (s(!1), n?.(u.current));
|
|
44
|
+
}, [o, n]);
|
|
45
|
+
return O("mousemove", p, { target: () => document }), O("mouseup", m, { target: () => document }), /* @__PURE__ */ y("div", {
|
|
46
|
+
className: "bsy-gantt-resize-indicator",
|
|
47
|
+
style: { left: `${e}px` },
|
|
48
|
+
onMouseEnter: () => a(!0),
|
|
49
|
+
onMouseLeave: () => a(!1),
|
|
50
|
+
onMouseDown: f,
|
|
51
|
+
children: d ? /* @__PURE__ */ y("div", { className: "bsy-gantt-resize-indicator__bar" }) : null
|
|
52
|
+
});
|
|
53
|
+
}, M = Object.freeze({ source: "table" });
|
|
54
|
+
function N() {
|
|
55
|
+
let e = T(null), t = T(void 0), n = T(/* @__PURE__ */ new Set()), r = T(!1), i = T(null), a = S(() => e.current, []), o = S((r) => (n.current.add(r), r(e.current, { source: t.current }), () => {
|
|
56
|
+
n.current.delete(r);
|
|
57
|
+
}), []), s = S((e, t) => {
|
|
58
|
+
let r = t === "table" ? M : { source: t };
|
|
59
|
+
n.current.forEach((t) => t(e, r));
|
|
60
|
+
}, []), c = S(() => {
|
|
61
|
+
e.current !== null && (e.current = null, t.current = void 0, s(null, void 0));
|
|
62
|
+
}, [s]), u = S(() => {
|
|
63
|
+
r.current || (r.current = !0, c()), i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
64
|
+
r.current = !1, i.current = null;
|
|
65
|
+
}, 150);
|
|
66
|
+
}, [c]), d = S((n, i) => {
|
|
67
|
+
if (r.current) return;
|
|
68
|
+
let a = i?.source;
|
|
69
|
+
l(e.current, n) && (a !== "table" || t.current === "table") || (e.current = n, t.current = a, s(n, a));
|
|
70
|
+
}, [s]), f = S((e) => {
|
|
71
|
+
d(e, M);
|
|
72
|
+
}, [d]), p = S(() => r.current, []);
|
|
73
|
+
return C(() => () => {
|
|
74
|
+
i.current && clearTimeout(i.current);
|
|
75
|
+
}, []), {
|
|
76
|
+
highlightContextValue: w(() => ({
|
|
77
|
+
getHighlightTarget: a,
|
|
78
|
+
setHighlightTarget: d,
|
|
79
|
+
setTableHighlightTarget: f,
|
|
80
|
+
subscribeHighlight: o,
|
|
81
|
+
notifyScrollActivity: u,
|
|
82
|
+
getIsScrollActive: p
|
|
83
|
+
}), [
|
|
84
|
+
a,
|
|
85
|
+
d,
|
|
86
|
+
f,
|
|
87
|
+
o,
|
|
88
|
+
u,
|
|
89
|
+
p
|
|
90
|
+
]),
|
|
91
|
+
setHighlightTarget: d,
|
|
92
|
+
setTableHighlightTarget: f,
|
|
93
|
+
notifyScrollActivity: u
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region src/components/Gantt/utils/tableWidthStorage.ts
|
|
98
|
+
function P(e) {
|
|
99
|
+
return `gantt_view_${e}`;
|
|
100
|
+
}
|
|
101
|
+
function F(e) {
|
|
102
|
+
if (!e) return null;
|
|
103
|
+
try {
|
|
104
|
+
let t = localStorage.getItem(P(e));
|
|
105
|
+
if (t === null || t === "") return null;
|
|
106
|
+
let n = parseInt(t, 10);
|
|
107
|
+
return Number.isNaN(n) ? null : n;
|
|
108
|
+
} catch {
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
function I(e, t) {
|
|
113
|
+
if (!(!e || !Number.isFinite(t))) try {
|
|
114
|
+
localStorage.setItem(P(e), String(Math.round(t)));
|
|
115
|
+
} catch {}
|
|
116
|
+
}
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/components/Gantt/hooks/useGanttLayout.ts
|
|
119
|
+
var L = (e) => e > 0 ? e / 3 : 333, R = (e, t) => {
|
|
120
|
+
if (!t) return e;
|
|
121
|
+
let n = Math.max(200, t - 300);
|
|
122
|
+
return Math.min(Math.max(e, 200), n);
|
|
123
|
+
};
|
|
124
|
+
function z({ id: e } = {}) {
|
|
125
|
+
let t = T(null), n = k(t), [r, i] = E(300), a = T(!1), o = n?.width || t.current?.offsetWidth || 0;
|
|
126
|
+
return C(() => {
|
|
127
|
+
!o || a.current || (i(R((e ? F(e) : null) ?? L(o), o)), a.current = !0);
|
|
128
|
+
}, [o, e]), C(() => {
|
|
129
|
+
a.current = !1;
|
|
130
|
+
}, [e]), {
|
|
131
|
+
containerRef: t,
|
|
132
|
+
resolvedTableWidth: w(() => o ? R(r, o) : r, [o, r]),
|
|
133
|
+
handleTableWidthChange: S((e) => {
|
|
134
|
+
i(e);
|
|
135
|
+
}, []),
|
|
136
|
+
handleResizeEnd: S((t) => {
|
|
137
|
+
e && I(e, o ? R(t, o) : t);
|
|
138
|
+
}, [e, o])
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
//#endregion
|
|
142
|
+
//#region src/components/Gantt/hooks/useGanttCollapseState.ts
|
|
143
|
+
function B({ collapsedKeys: e, onToggleCollapse: t } = {}) {
|
|
144
|
+
let [n, r] = E(() => /* @__PURE__ */ new Set()), i = e !== void 0;
|
|
145
|
+
return {
|
|
146
|
+
collapsedKeys: i ? e : n,
|
|
147
|
+
onToggleCollapse: S((e) => {
|
|
148
|
+
e && (t?.(e), i || r((t) => h(t, e)));
|
|
149
|
+
}, [i, t]),
|
|
150
|
+
isControlled: i
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region src/components/Gantt/hooks/useLinkedVerticalScroll.ts
|
|
155
|
+
function V(e = {}) {
|
|
156
|
+
let { onScrollActivity: t } = e, n = T(t);
|
|
157
|
+
n.current = t;
|
|
158
|
+
let r = T(null), i = T(null), a = T(null), o = S((e) => (i.current = e, () => {
|
|
159
|
+
i.current = null;
|
|
160
|
+
}), []), s = S((e) => (a.current = e, () => {
|
|
161
|
+
a.current = null;
|
|
162
|
+
}), []), c = S((e, t) => {
|
|
163
|
+
if (r.current === e) return;
|
|
164
|
+
let o = e === "timeline" ? "table" : "timeline", s = o === "timeline" ? i.current : a.current;
|
|
165
|
+
s?.setScrollTop && (r.current = o, s.setScrollTop(t), n.current?.(), requestAnimationFrame(() => {
|
|
166
|
+
r.current === o && (r.current = null);
|
|
167
|
+
}));
|
|
168
|
+
}, []);
|
|
169
|
+
return w(() => ({
|
|
170
|
+
registerTimelineScroller: o,
|
|
171
|
+
registerTableScroller: s,
|
|
172
|
+
sync: c
|
|
173
|
+
}), [
|
|
174
|
+
o,
|
|
175
|
+
s,
|
|
176
|
+
c
|
|
177
|
+
]);
|
|
178
|
+
}
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/components/Gantt/utils/filterItemsByCollapse.ts
|
|
181
|
+
function H(e, t) {
|
|
182
|
+
if (!Array.isArray(e) || e.length === 0) return e || [];
|
|
183
|
+
if (!t || !(t instanceof Set ? t.size > 0 : Array.isArray(t) && t.length > 0)) return e;
|
|
184
|
+
let n = [], r = null;
|
|
185
|
+
for (let i of e) {
|
|
186
|
+
if (i?.type === "summary") {
|
|
187
|
+
let e = i.depth ?? 0;
|
|
188
|
+
if (r !== null && e > r) continue;
|
|
189
|
+
r !== null && e <= r && (r = null), n.push(i), _(t, i.groupKey) && (r = e);
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
r === null && n.push(i);
|
|
193
|
+
}
|
|
194
|
+
return n;
|
|
195
|
+
}
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region src/components/Gantt/GanttTable/hooks/useGanttTableHighlightDomSync.ts
|
|
198
|
+
function U(e) {
|
|
199
|
+
let t = A(c, (e) => e.getHighlightTarget), n = A(c, (e) => e.subscribeHighlight), r = T(null), i = S((e, t) => {
|
|
200
|
+
if (!e || !t?.id || !t?.type) return [];
|
|
201
|
+
let n = CSS.escape(String(t.id)), r = CSS.escape(String(t.type));
|
|
202
|
+
return Array.from(e.querySelectorAll(`[data-highlight-id="${n}"][data-highlight-type="${r}"]`));
|
|
203
|
+
}, []), a = S((t, n) => {
|
|
204
|
+
if (l(t, n)) return;
|
|
205
|
+
let r = e.current;
|
|
206
|
+
r && (t?.id && i(r, t).forEach((e) => {
|
|
207
|
+
e.classList.remove("table-row-hover");
|
|
208
|
+
}), n?.id && i(r, n).forEach((e) => {
|
|
209
|
+
e.classList.add("table-row-hover");
|
|
210
|
+
}));
|
|
211
|
+
}, [i, e]);
|
|
212
|
+
C(() => {
|
|
213
|
+
let e = t?.() || null;
|
|
214
|
+
return r.current = e, a(null, e), n?.((e) => {
|
|
215
|
+
let t = r.current;
|
|
216
|
+
r.current = e, a(t, e);
|
|
217
|
+
});
|
|
218
|
+
}, [
|
|
219
|
+
a,
|
|
220
|
+
t,
|
|
221
|
+
n
|
|
222
|
+
]);
|
|
223
|
+
}
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region src/components/Gantt/GanttTable/hooks/useGanttTableLinkedScroll.ts
|
|
226
|
+
function W({ tableRef: e, verticalScrollController: t, dataLength: n }) {
|
|
227
|
+
C(() => {
|
|
228
|
+
if (!t || !e.current) return;
|
|
229
|
+
let n = e.current.querySelector(".custom-table-wrapper");
|
|
230
|
+
if (n) return t.registerTableScroller({ setScrollTop: (e) => {
|
|
231
|
+
n.scrollTop = e;
|
|
232
|
+
} });
|
|
233
|
+
}, [
|
|
234
|
+
t,
|
|
235
|
+
n,
|
|
236
|
+
e
|
|
237
|
+
]), O("scroll", () => {
|
|
238
|
+
let n = e.current?.querySelector(".custom-table-wrapper");
|
|
239
|
+
n && t && t.sync("table", n.scrollTop);
|
|
240
|
+
}, {
|
|
241
|
+
target: () => e.current?.querySelector(".custom-table-wrapper"),
|
|
242
|
+
passive: !0
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
//#endregion
|
|
246
|
+
//#region src/components/Gantt/internal/GanttTableShell.tsx
|
|
247
|
+
var G = x(function({ width: e, verticalScrollController: t, dataLength: n = 0, emptyOverlay: r = null, children: i }, a) {
|
|
248
|
+
let o = T(null), s = S((e) => {
|
|
249
|
+
o.current = e, typeof a == "function" ? a(e) : a && (a.current = e);
|
|
250
|
+
}, [a]);
|
|
251
|
+
return U(o), W({
|
|
252
|
+
tableRef: o,
|
|
253
|
+
verticalScrollController: t,
|
|
254
|
+
dataLength: n
|
|
255
|
+
}), /* @__PURE__ */ b("div", {
|
|
256
|
+
ref: s,
|
|
257
|
+
className: "bsy-gantt-table",
|
|
258
|
+
style: { width: e ? `${e}px` : void 0 },
|
|
259
|
+
children: [i, r ? /* @__PURE__ */ y("div", {
|
|
260
|
+
className: "bsy-gantt-table__empty-overlay",
|
|
261
|
+
style: { top: 68 },
|
|
262
|
+
children: /* @__PURE__ */ y("div", {
|
|
263
|
+
className: "bsy-gantt-table__empty-overlay-inner",
|
|
264
|
+
children: r
|
|
265
|
+
})
|
|
266
|
+
}) : null]
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
G.displayName = "GanttTableShell";
|
|
270
|
+
//#endregion
|
|
271
|
+
//#region src/components/Gantt/internal/GanttLayout.tsx
|
|
272
|
+
function K({ data: e = [], tableData: t, columns: n, mode: r, availableModes: i, onModeChange: a, id: o, onRowClick: l, onTaskTimeChange: u, tooltip: d, className: f, style: p, renderTable: m, collapsedKeys: h, onToggleCollapse: g, emptyOverlay: _ = null }, x) {
|
|
273
|
+
let { highlightContextValue: C, setTableHighlightTarget: T, notifyScrollActivity: O } = N(), k = V({ onScrollActivity: O }), [A, M] = E("day"), P = r ?? A, { containerRef: F, resolvedTableWidth: I, handleTableWidthChange: L, handleResizeEnd: R } = z({ id: o }), U = S((e) => {
|
|
274
|
+
r === void 0 && M(e), a?.(e);
|
|
275
|
+
}, [r, a]), { collapsedKeys: W, onToggleCollapse: K, isControlled: q } = B({
|
|
276
|
+
collapsedKeys: h,
|
|
277
|
+
onToggleCollapse: g
|
|
278
|
+
}), J = w(() => q ? e : H(e, W), [
|
|
279
|
+
e,
|
|
280
|
+
q,
|
|
281
|
+
W
|
|
282
|
+
]), Y = typeof m == "function", X = w(() => Y ? t ?? [] : J, [
|
|
283
|
+
Y,
|
|
284
|
+
t,
|
|
285
|
+
J
|
|
286
|
+
]), Z = X.length, Q = w(() => ({
|
|
287
|
+
columns: n,
|
|
288
|
+
tableData: X,
|
|
289
|
+
setHighlightTarget: T,
|
|
290
|
+
rowHeight: 34,
|
|
291
|
+
collapsedKeys: W ?? void 0,
|
|
292
|
+
onToggleCollapse: K
|
|
293
|
+
}), [
|
|
294
|
+
n,
|
|
295
|
+
X,
|
|
296
|
+
T,
|
|
297
|
+
W,
|
|
298
|
+
K
|
|
299
|
+
]), $ = Y ? m(Q) : /* @__PURE__ */ y(s, {
|
|
300
|
+
data: J,
|
|
301
|
+
columns: n,
|
|
302
|
+
onRowClick: l,
|
|
303
|
+
rowHeight: 34
|
|
304
|
+
});
|
|
305
|
+
return /* @__PURE__ */ y(c.Provider, {
|
|
306
|
+
value: C,
|
|
307
|
+
children: /* @__PURE__ */ y("div", {
|
|
308
|
+
className: D("bsy-gantt", f),
|
|
309
|
+
style: p,
|
|
310
|
+
children: /* @__PURE__ */ b("div", {
|
|
311
|
+
ref: F,
|
|
312
|
+
className: "bsy-gantt__body",
|
|
313
|
+
children: [
|
|
314
|
+
/* @__PURE__ */ y(G, {
|
|
315
|
+
ref: x,
|
|
316
|
+
width: I,
|
|
317
|
+
verticalScrollController: k,
|
|
318
|
+
dataLength: Z,
|
|
319
|
+
emptyOverlay: _,
|
|
320
|
+
children: $
|
|
321
|
+
}),
|
|
322
|
+
/* @__PURE__ */ y(j, {
|
|
323
|
+
tableWidth: I,
|
|
324
|
+
onWidthChange: L,
|
|
325
|
+
onResizeEnd: R,
|
|
326
|
+
containerRef: F
|
|
327
|
+
}),
|
|
328
|
+
/* @__PURE__ */ y("div", {
|
|
329
|
+
className: "bsy-gantt__chart",
|
|
330
|
+
children: /* @__PURE__ */ y(v, {
|
|
331
|
+
items: J,
|
|
332
|
+
viewMode: P,
|
|
333
|
+
availableModes: i,
|
|
334
|
+
onViewModeChange: U,
|
|
335
|
+
verticalScrollController: k,
|
|
336
|
+
onRowClick: l,
|
|
337
|
+
onTaskTimeChange: u,
|
|
338
|
+
tooltip: d,
|
|
339
|
+
collapsedKeys: W,
|
|
340
|
+
onToggleCollapse: K
|
|
341
|
+
})
|
|
342
|
+
})
|
|
343
|
+
]
|
|
344
|
+
})
|
|
345
|
+
})
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
var q = x(K);
|
|
349
|
+
//#endregion
|
|
350
|
+
//#region src/components/Gantt/Gantt.tsx
|
|
351
|
+
function J({ data: e, columns: t, mode: n, availableModes: r, onModeChange: i, id: a, onRowClick: o, onTaskTimeChange: s, tooltip: c, className: l, style: u, tableData: d, renderTable: f, collapsedKeys: p, onToggleCollapse: m, emptyOverlay: h }, g) {
|
|
352
|
+
return /* @__PURE__ */ y(q, {
|
|
353
|
+
ref: g,
|
|
354
|
+
data: e,
|
|
355
|
+
columns: t,
|
|
356
|
+
mode: n,
|
|
357
|
+
availableModes: r,
|
|
358
|
+
onModeChange: i,
|
|
359
|
+
id: a,
|
|
360
|
+
onRowClick: o,
|
|
361
|
+
onTaskTimeChange: s,
|
|
362
|
+
tooltip: c,
|
|
363
|
+
className: l,
|
|
364
|
+
style: u,
|
|
365
|
+
tableData: d,
|
|
366
|
+
renderTable: f,
|
|
367
|
+
collapsedKeys: p,
|
|
368
|
+
onToggleCollapse: m,
|
|
369
|
+
emptyOverlay: h
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
var Y = x(J);
|
|
373
|
+
//#endregion
|
|
374
|
+
export { f as ALL_GANTT_MODES, m as CALENDAR_TIER_MODES, d as DEFAULT_GANTT_MODE, n as DRAG_MODE_MOVE, e as DRAG_MODE_RESIZE_END, i as DRAG_MODE_RESIZE_START, a as EMPTY_GROUP_VALUE, t as GANTT_DEFAULT_ROW_HEIGHT, r as GANTT_TABLE_HEADER_ROW_SPAN, Y as default, _ as isGroupCollapsed, u as isHighlightMatch, p as isSubDayViewMode, g as normalizeTaskDateRange, o as useGanttTableColumnResize };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { h as e } from "./constants-_vMvDXFh.js";
|
|
2
|
+
//#region src/components/Gantt/interface.ts
|
|
3
|
+
var t = [
|
|
4
|
+
"day",
|
|
5
|
+
"week",
|
|
6
|
+
"month",
|
|
7
|
+
"quarter",
|
|
8
|
+
"quarterMonth",
|
|
9
|
+
"year"
|
|
10
|
+
], n = [
|
|
11
|
+
"halfDay",
|
|
12
|
+
"sixHour",
|
|
13
|
+
"hour",
|
|
14
|
+
"halfHour",
|
|
15
|
+
"tenMinute",
|
|
16
|
+
"oneMinute"
|
|
17
|
+
], r = [...t, ...n], i = [...[...n].reverse(), ...t], a = "day";
|
|
18
|
+
function o(e) {
|
|
19
|
+
return r.includes(e);
|
|
20
|
+
}
|
|
21
|
+
function s(e) {
|
|
22
|
+
return n.includes(e);
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/components/Gantt/GanttChart/utils/timelineViewConfig.ts
|
|
26
|
+
var c = e / 24, l = c / 60, u = {
|
|
27
|
+
hour: c,
|
|
28
|
+
tenMinute: 10 * l,
|
|
29
|
+
oneMinute: l
|
|
30
|
+
}, d = {
|
|
31
|
+
day: {
|
|
32
|
+
tier: "calendar",
|
|
33
|
+
headerLayout: "flat",
|
|
34
|
+
topGroup: "month",
|
|
35
|
+
bottomCellMs: e,
|
|
36
|
+
snapUnitMs: e
|
|
37
|
+
},
|
|
38
|
+
week: {
|
|
39
|
+
tier: "calendar",
|
|
40
|
+
headerLayout: "flat",
|
|
41
|
+
topGroup: "month",
|
|
42
|
+
bottomCellMs: 7 * e,
|
|
43
|
+
snapUnitMs: e
|
|
44
|
+
},
|
|
45
|
+
month: {
|
|
46
|
+
tier: "calendar",
|
|
47
|
+
headerLayout: "flat",
|
|
48
|
+
topGroup: "year",
|
|
49
|
+
bottomCellMs: 30 * e,
|
|
50
|
+
snapUnitMs: e
|
|
51
|
+
},
|
|
52
|
+
quarter: {
|
|
53
|
+
tier: "calendar",
|
|
54
|
+
headerLayout: "flat",
|
|
55
|
+
topGroup: "year",
|
|
56
|
+
bottomCellMs: 90 * e,
|
|
57
|
+
snapUnitMs: e
|
|
58
|
+
},
|
|
59
|
+
quarterMonth: {
|
|
60
|
+
tier: "calendar",
|
|
61
|
+
headerLayout: "quarterNested",
|
|
62
|
+
topGroup: "quarter",
|
|
63
|
+
bottomCellMs: 30 * e,
|
|
64
|
+
bottomCellWidthPx: 100,
|
|
65
|
+
snapUnitMs: e
|
|
66
|
+
},
|
|
67
|
+
year: {
|
|
68
|
+
tier: "calendar",
|
|
69
|
+
headerLayout: "flat",
|
|
70
|
+
topGroup: "year",
|
|
71
|
+
bottomCellMs: 180 * e,
|
|
72
|
+
snapUnitMs: e
|
|
73
|
+
},
|
|
74
|
+
halfDay: {
|
|
75
|
+
tier: "subDay",
|
|
76
|
+
headerLayout: "dayNested",
|
|
77
|
+
topGroup: "day",
|
|
78
|
+
bottomCellMs: 12 * c,
|
|
79
|
+
snapUnitMs: u.hour
|
|
80
|
+
},
|
|
81
|
+
sixHour: {
|
|
82
|
+
tier: "subDay",
|
|
83
|
+
headerLayout: "dayNested",
|
|
84
|
+
topGroup: "day",
|
|
85
|
+
bottomCellMs: 6 * c,
|
|
86
|
+
snapUnitMs: u.hour
|
|
87
|
+
},
|
|
88
|
+
hour: {
|
|
89
|
+
tier: "subDay",
|
|
90
|
+
headerLayout: "dayNested",
|
|
91
|
+
topGroup: "day",
|
|
92
|
+
bottomCellMs: c,
|
|
93
|
+
snapUnitMs: u.hour
|
|
94
|
+
},
|
|
95
|
+
halfHour: {
|
|
96
|
+
tier: "subDay",
|
|
97
|
+
headerLayout: "hourNested",
|
|
98
|
+
topGroup: "hour",
|
|
99
|
+
bottomCellMs: 30 * l,
|
|
100
|
+
snapUnitMs: u.tenMinute
|
|
101
|
+
},
|
|
102
|
+
tenMinute: {
|
|
103
|
+
tier: "subDay",
|
|
104
|
+
headerLayout: "hourNested",
|
|
105
|
+
topGroup: "hour",
|
|
106
|
+
bottomCellMs: 10 * l,
|
|
107
|
+
snapUnitMs: u.tenMinute
|
|
108
|
+
},
|
|
109
|
+
oneMinute: {
|
|
110
|
+
tier: "subDay",
|
|
111
|
+
headerLayout: "hourNested",
|
|
112
|
+
topGroup: "hour",
|
|
113
|
+
bottomCellMs: l,
|
|
114
|
+
snapUnitMs: u.oneMinute
|
|
115
|
+
}
|
|
116
|
+
}, f = (e) => d[o(e) ? e : "day"], p = (e) => o(e) ? s(e) : f(e).tier === "subDay", m = (e) => e === "quarterMonth", h = (e) => f(e).snapUnitMs, g = (e) => f(e).bottomCellMs;
|
|
117
|
+
//#endregion
|
|
118
|
+
export { h as a, a as c, s as d, g as i, i as l, m as n, r as o, p as r, t as s, f as t, o as u };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { a as e, c as t, d as n, i as r, l as i, m as a, o, s, u as c } from "../constants-_vMvDXFh.js";
|
|
2
|
+
import { a as l, i as u, n as d, o as f, r as p, t as m } from "../columnResize-By_1E48E.js";
|
|
3
|
+
import { n as h, r as g, t as _ } from "../highlightTarget-DmzCIiQb.js";
|
|
4
|
+
import { c as v, o as y, r as b, s as x } from "../timelineViewConfig-DshzoBp7.js";
|
|
5
|
+
import { n as S, r as C, t as w } from "../collapseKeys-BWMH5k37.js";
|
|
6
|
+
export { y as ALL_GANTT_MODES, x as CALENDAR_TIER_MODES, v as DEFAULT_GANTT_MODE, u as DEFAULT_TABLE_WIDTH_FALLBACK, r as DRAG_MODE_MOVE, e as DRAG_MODE_RESIZE_END, o as DRAG_MODE_RESIZE_START, s as EMPTY_GROUP_VALUE, t as GANTT_DEFAULT_ROW_HEIGHT, m as GANTT_TABLE_DISABLED_RESIZE_COLUMNS, i as GANTT_TABLE_HEADER_ROW_SPAN, c as HEADER_BOTTOM_HEIGHT, n as HEADER_TOP_HEIGHT, l as MIN_CHART_WIDTH, a as MIN_TABLE_WIDTH, f as TABLE_WIDTH_PLACEHOLDER, w as isGroupCollapsed, _ as isHighlightMatch, h as isSameHighlightTarget, b as isSubDayViewMode, d as mergeColumnWidths, C as normalizeTaskDateRange, g as resolveChartHighlightTarget, S as toggleCollapsedKey, p as useGanttTableColumnResize };
|