@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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { GanttMode } from '../../interface';
|
|
2
|
+
import { TimelineCoords, TimeRangeConfig } from '../../types.internal';
|
|
3
|
+
import { TimelineRange } from './timelineRange';
|
|
4
|
+
export interface TimelineViewport {
|
|
5
|
+
renderWindow: TimelineRange;
|
|
6
|
+
visibleRange: TimelineRange;
|
|
7
|
+
focusMs: number;
|
|
8
|
+
}
|
|
9
|
+
export type RebaseGuardBand = 'left' | 'right' | null;
|
|
10
|
+
interface DeriveTimelineViewportOptions {
|
|
11
|
+
renderWindow: TimelineRange;
|
|
12
|
+
timelineCoords: TimelineCoords;
|
|
13
|
+
scrollLeft: number;
|
|
14
|
+
viewportWidth: number;
|
|
15
|
+
}
|
|
16
|
+
interface RebaseGuardBandOptions {
|
|
17
|
+
scrollLeft: number;
|
|
18
|
+
viewportWidth: number;
|
|
19
|
+
timelineWidth: number;
|
|
20
|
+
guardBandPx: number;
|
|
21
|
+
}
|
|
22
|
+
interface BuildBoundedRenderWindowOptions {
|
|
23
|
+
focusMs: number;
|
|
24
|
+
fallbackFocusMs?: number;
|
|
25
|
+
viewMode: GanttMode;
|
|
26
|
+
timeRangeConfig: TimeRangeConfig;
|
|
27
|
+
viewportWidth: number;
|
|
28
|
+
pixelsPerDay: number;
|
|
29
|
+
}
|
|
30
|
+
interface BuildFocusPreservingAlignmentOptions {
|
|
31
|
+
focusMs: number;
|
|
32
|
+
fallbackFocusMs?: number;
|
|
33
|
+
timelineCoords: TimelineCoords;
|
|
34
|
+
viewportWidth: number;
|
|
35
|
+
timelineWidth: number;
|
|
36
|
+
}
|
|
37
|
+
export declare const deriveTimelineViewport: ({ renderWindow, timelineCoords, scrollLeft, viewportWidth, }: DeriveTimelineViewportOptions) => TimelineViewport;
|
|
38
|
+
export declare const getRebaseGuardBand: ({ scrollLeft, viewportWidth, timelineWidth, guardBandPx, }: RebaseGuardBandOptions) => RebaseGuardBand;
|
|
39
|
+
export declare const buildBoundedRenderWindow: ({ focusMs, fallbackFocusMs, viewMode, timeRangeConfig, viewportWidth, pixelsPerDay, }: BuildBoundedRenderWindowOptions) => TimelineRange;
|
|
40
|
+
export declare const buildFocusPreservingAlignment: ({ focusMs, fallbackFocusMs, timelineCoords, viewportWidth, timelineWidth, }: BuildFocusPreservingAlignmentOptions) => {
|
|
41
|
+
focusMs: number;
|
|
42
|
+
scrollLeft: number;
|
|
43
|
+
};
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as dayjs, OpUnitType } from 'dayjs';
|
|
2
|
+
export declare const getSysTimezoneOffsetHours: () => number | null;
|
|
3
|
+
export declare const getTimezoneShiftMs: () => number;
|
|
4
|
+
export declare const toLocalRepresentation: (utcMs: number) => number;
|
|
5
|
+
export declare const fromLocalRepresentation: (localMs: number) => number;
|
|
6
|
+
export declare const getSystemNowMs: () => number;
|
|
7
|
+
export declare const startOfDayInTz: (utcTimestampMs: number) => number;
|
|
8
|
+
export declare const startOfPeriodInTz: (utcTimestampMs: number, unit: OpUnitType) => number;
|
|
9
|
+
export declare const endOfPeriodInTz: (utcTimestampMs: number, unit: OpUnitType) => number;
|
|
10
|
+
export declare const getWeekdayInTz: (utcTimestampMs: number) => number;
|
|
11
|
+
export declare const toDayjsInTz: (utcTimestampMs: number) => dayjs.Dayjs;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GanttDataItem } from '../interface';
|
|
2
|
+
import { GanttTableProps } from '../types.internal';
|
|
3
|
+
declare const GanttTable: {
|
|
4
|
+
<T extends GanttDataItem = GanttDataItem>({ data, columns, onRowClick, rowHeight, }: GanttTableProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
displayName: string;
|
|
6
|
+
};
|
|
7
|
+
export default GanttTable;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
import { VerticalScrollController } from '../../types.internal';
|
|
3
|
+
export declare function useGanttTableLinkedScroll({ tableRef, verticalScrollController, dataLength, }: {
|
|
4
|
+
tableRef: RefObject<HTMLElement | null>;
|
|
5
|
+
verticalScrollController?: VerticalScrollController;
|
|
6
|
+
dataLength?: number;
|
|
7
|
+
}): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './GanttTable';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GanttColumn, GanttDataItem } from '../../interface';
|
|
2
|
+
type MappedTableColumn = {
|
|
3
|
+
key: string;
|
|
4
|
+
title: string;
|
|
5
|
+
width: number;
|
|
6
|
+
align?: GanttColumn['align'];
|
|
7
|
+
className?: string;
|
|
8
|
+
fixed?: GanttColumn['fixed'];
|
|
9
|
+
render: (value: unknown, record: GanttDataItem, rowIndex: number) => unknown;
|
|
10
|
+
children?: MappedTableColumn[];
|
|
11
|
+
};
|
|
12
|
+
export declare function mapGanttColumns<T extends GanttDataItem>(columns?: GanttColumn<T>[]): MappedTableColumn[];
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { GanttToolBarProps } from '../types.internal';
|
|
2
|
+
declare const GanttToolBar: ({ viewMode, availableModes, onViewModeChange, onTodayClick, onScrollPrev, onScrollNext, className, }: GanttToolBarProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default GanttToolBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './GanttToolBar';
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const installGanttDomMocks: () => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { GanttDataItem, GanttMode } from '../../interface';
|
|
2
|
+
import { GanttTimelineContextValue, NormalizedGanttItem } from '../../types.internal';
|
|
3
|
+
export declare const makeGanttTask: (overrides?: Partial<GanttDataItem>) => GanttDataItem;
|
|
4
|
+
export declare const makeGanttSummary: (overrides?: Partial<GanttDataItem>) => GanttDataItem;
|
|
5
|
+
export declare const makeNormalizedGanttItem: (overrides?: Partial<NormalizedGanttItem>) => NormalizedGanttItem;
|
|
6
|
+
export declare const makeTimelineContextValue: (overrides?: Partial<GanttTimelineContextValue>) => GanttTimelineContextValue;
|
|
7
|
+
export declare const SUB_DAY_CELL_WIDTH_PX: Record<Extract<GanttMode, 'halfDay' | 'sixHour' | 'hour' | 'halfHour' | 'tenMinute' | 'oneMinute'>, number>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseGanttCollapseStateOptions } from '../types.internal';
|
|
2
|
+
export declare function useGanttCollapseState({ collapsedKeys, onToggleCollapse, }?: UseGanttCollapseStateOptions): {
|
|
3
|
+
collapsedKeys: import('..').GanttCollapsedKeys | null;
|
|
4
|
+
onToggleCollapse: (groupKey: string) => void;
|
|
5
|
+
isControlled: boolean;
|
|
6
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HighlightTarget } from '../interface';
|
|
2
|
+
import { GanttHighlightContextValue } from '../types.internal';
|
|
3
|
+
export declare function useGanttHighlight(): {
|
|
4
|
+
highlightContextValue: GanttHighlightContextValue;
|
|
5
|
+
setHighlightTarget: (target: HighlightTarget, options?: {
|
|
6
|
+
source?: string;
|
|
7
|
+
}) => void;
|
|
8
|
+
setTableHighlightTarget: (target: HighlightTarget) => void;
|
|
9
|
+
notifyScrollActivity: () => void;
|
|
10
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseGanttLayoutOptions } from '../types.internal';
|
|
2
|
+
export declare function useGanttLayout({ id }?: UseGanttLayoutOptions): {
|
|
3
|
+
containerRef: import('react').RefObject<HTMLDivElement>;
|
|
4
|
+
resolvedTableWidth: number;
|
|
5
|
+
handleTableWidthChange: (nextWidth: number) => void;
|
|
6
|
+
handleResizeEnd: (nextWidth: number) => void;
|
|
7
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { VerticalScrollController } from '../types.internal';
|
|
2
|
+
interface UseLinkedVerticalScrollOptions {
|
|
3
|
+
onScrollActivity?: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function useLinkedVerticalScroll(options?: UseLinkedVerticalScrollOptions): VerticalScrollController;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default } from './Gantt';
|
|
2
|
+
export type { GanttProps, GanttDataItem, GanttTaskItem, GanttSummaryItem, GanttColumn, GanttMode, GanttCalendarMode, GanttSubDayMode, GanttTimeInput, GanttDragPermission, GanttTaskTimeChangePayload, GanttCalendarTaskTimeChangePayload, GanttSubDayTaskTimeChangePayload, GanttChangeType, GanttTableSlotContext, GanttCollapseProps, GanttCollapsedKeys, HighlightTarget, HighlightTargetType, } from './interface';
|
|
3
|
+
export { ALL_GANTT_MODES, CALENDAR_TIER_MODES, DEFAULT_GANTT_MODE } from './interface';
|
|
4
|
+
export { GANTT_DEFAULT_ROW_HEIGHT, GANTT_TABLE_HEADER_ROW_SPAN, DRAG_MODE_MOVE, DRAG_MODE_RESIZE_START, DRAG_MODE_RESIZE_END, EMPTY_GROUP_VALUE, } from './GanttChart/utils/constants';
|
|
5
|
+
export { isGroupCollapsed } from './utils/collapseKeys';
|
|
6
|
+
export { isHighlightMatch } from './utils/highlightTarget';
|
|
7
|
+
export { useGanttTableColumnResize } from './utils/columnResize';
|
|
8
|
+
export { normalizeTaskDateRange } from './GanttChart/utils/dateRangeNormalizer';
|
|
9
|
+
export { isSubDayViewMode } from './GanttChart/utils/timelineViewConfig';
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { CSSProperties, MouseEvent, ReactNode } from 'react';
|
|
2
|
+
/** 日历档 viewMode(粗)——单一来源 */
|
|
3
|
+
export declare const CALENDAR_TIER_MODES: readonly ["day", "week", "month", "quarter", "quarterMonth", "year"];
|
|
4
|
+
/** 亚日档 viewMode(细)——单一来源 */
|
|
5
|
+
export declare const SUB_DAY_MODES: readonly ["halfDay", "sixHour", "hour", "halfHour", "tenMinute", "oneMinute"];
|
|
6
|
+
/** 12 档全集;GanttMode 由此推导,禁止另写字面量联合 */
|
|
7
|
+
export declare const ALL_GANTT_MODES: readonly ["day", "week", "month", "quarter", "quarterMonth", "year", "halfDay", "sixHour", "hour", "halfHour", "tenMinute", "oneMinute"];
|
|
8
|
+
export type GanttMode = (typeof ALL_GANTT_MODES)[number];
|
|
9
|
+
export type GanttCalendarMode = (typeof CALENDAR_TIER_MODES)[number];
|
|
10
|
+
export type GanttSubDayMode = (typeof SUB_DAY_MODES)[number];
|
|
11
|
+
/** 工具栏展示顺序:亚日(细)→ 年(粗) */
|
|
12
|
+
export declare const GANTT_MODE_DISPLAY_ORDER: readonly [...("oneMinute" | "tenMinute" | "halfHour" | "hour" | "sixHour" | "halfDay")[], "day", "week", "month", "quarter", "quarterMonth", "year"];
|
|
13
|
+
export declare const DEFAULT_GANTT_MODE: GanttMode;
|
|
14
|
+
export declare function isGanttMode(mode: string): mode is GanttMode;
|
|
15
|
+
export declare function isCalendarViewMode(mode: GanttMode): mode is GanttCalendarMode;
|
|
16
|
+
export declare function isSubDayMode(mode: GanttMode): mode is GanttSubDayMode;
|
|
17
|
+
export type GanttTimeInput = string | number | Date | null;
|
|
18
|
+
export interface GanttDragPermission {
|
|
19
|
+
canMove?: boolean;
|
|
20
|
+
canResizeStart?: boolean;
|
|
21
|
+
canResizeEnd?: boolean;
|
|
22
|
+
}
|
|
23
|
+
/** 任务 / 汇总共用字段;meta 仅透传,Gantt 禁止读取 */
|
|
24
|
+
interface GanttDataItemBase {
|
|
25
|
+
id?: string | number;
|
|
26
|
+
start: GanttTimeInput;
|
|
27
|
+
end: GanttTimeInput;
|
|
28
|
+
label?: ReactNode;
|
|
29
|
+
progress?: number | null;
|
|
30
|
+
color?: string;
|
|
31
|
+
parentId?: string | number;
|
|
32
|
+
recordId?: string | number;
|
|
33
|
+
groupKey?: string | number;
|
|
34
|
+
depth?: number;
|
|
35
|
+
meta?: unknown;
|
|
36
|
+
}
|
|
37
|
+
/** 可拖拽任务行 */
|
|
38
|
+
export interface GanttTaskItem extends GanttDataItemBase {
|
|
39
|
+
type: 'task';
|
|
40
|
+
draggable?: boolean;
|
|
41
|
+
dragPermission?: GanttDragPermission;
|
|
42
|
+
}
|
|
43
|
+
/** 分组汇总行(不可拖) */
|
|
44
|
+
export interface GanttSummaryItem extends GanttDataItemBase {
|
|
45
|
+
type: 'summary';
|
|
46
|
+
}
|
|
47
|
+
/** 消费方传入的原始行(可辨识联合) */
|
|
48
|
+
export type GanttDataItem = GanttTaskItem | GanttSummaryItem;
|
|
49
|
+
export type GanttChangeType = 'move' | 'resize-start' | 'resize-end';
|
|
50
|
+
interface GanttTaskTimeChangePayloadBase {
|
|
51
|
+
taskId: string;
|
|
52
|
+
newStart: number;
|
|
53
|
+
newEnd: number;
|
|
54
|
+
changeType: GanttChangeType;
|
|
55
|
+
/** 拖拽 snap 步长(ms) */
|
|
56
|
+
snapUnitMs: number;
|
|
57
|
+
/** 相对原点的毫秒位移 */
|
|
58
|
+
deltaMs: number;
|
|
59
|
+
}
|
|
60
|
+
/** 日历档改期载荷:viewMode 与 deltaDays 成对出现 */
|
|
61
|
+
export interface GanttCalendarTaskTimeChangePayload extends GanttTaskTimeChangePayloadBase {
|
|
62
|
+
viewMode: GanttCalendarMode;
|
|
63
|
+
deltaDays: number;
|
|
64
|
+
}
|
|
65
|
+
/** 亚日档改期载荷:不含 deltaDays */
|
|
66
|
+
export interface GanttSubDayTaskTimeChangePayload extends GanttTaskTimeChangePayloadBase {
|
|
67
|
+
viewMode: GanttSubDayMode;
|
|
68
|
+
}
|
|
69
|
+
/** 改期回调载荷(按 viewMode 可辨识联合) */
|
|
70
|
+
export type GanttTaskTimeChangePayload = GanttCalendarTaskTimeChangePayload | GanttSubDayTaskTimeChangePayload;
|
|
71
|
+
export interface GanttColumn<T extends GanttDataItem = GanttDataItem> {
|
|
72
|
+
key: string;
|
|
73
|
+
title?: ReactNode;
|
|
74
|
+
dataIndex?: string;
|
|
75
|
+
width?: number;
|
|
76
|
+
minWidth?: number;
|
|
77
|
+
maxWidth?: number;
|
|
78
|
+
align?: 'left' | 'center' | 'right';
|
|
79
|
+
className?: string;
|
|
80
|
+
fixed?: 'left' | 'right';
|
|
81
|
+
children?: GanttColumn<T>[];
|
|
82
|
+
render?: (ctx: {
|
|
83
|
+
item: T;
|
|
84
|
+
rowIndex: number;
|
|
85
|
+
column: GanttColumn<T>;
|
|
86
|
+
value: unknown;
|
|
87
|
+
}) => ReactNode;
|
|
88
|
+
}
|
|
89
|
+
export type HighlightTargetType = 'record' | 'group';
|
|
90
|
+
export type HighlightTarget = {
|
|
91
|
+
type: HighlightTargetType;
|
|
92
|
+
id: string;
|
|
93
|
+
} | null;
|
|
94
|
+
export type GanttCollapsedKeys = ReadonlySet<string> | string[];
|
|
95
|
+
export interface GanttTableSlotContext<T extends GanttDataItem = GanttDataItem> {
|
|
96
|
+
columns?: GanttColumn<T>[];
|
|
97
|
+
tableData: unknown[];
|
|
98
|
+
setHighlightTarget: (target: HighlightTarget) => void;
|
|
99
|
+
rowHeight: number;
|
|
100
|
+
collapsedKeys?: GanttCollapsedKeys;
|
|
101
|
+
onToggleCollapse?: (groupKey: string) => void | Promise<void>;
|
|
102
|
+
}
|
|
103
|
+
type GanttPropsBase<T extends GanttDataItem = GanttDataItem> = {
|
|
104
|
+
data: T[];
|
|
105
|
+
columns?: GanttColumn<T>[];
|
|
106
|
+
mode?: GanttMode;
|
|
107
|
+
availableModes?: GanttMode[];
|
|
108
|
+
onModeChange?: (mode: GanttMode) => void;
|
|
109
|
+
id?: string;
|
|
110
|
+
onRowClick?: (item: T, rowIndex: number, event: MouseEvent) => void;
|
|
111
|
+
onTaskTimeChange?: (payload: GanttTaskTimeChangePayload) => void | Promise<void>;
|
|
112
|
+
tooltip?: (item: T) => ReactNode;
|
|
113
|
+
className?: string;
|
|
114
|
+
style?: CSSProperties;
|
|
115
|
+
tableData?: unknown[];
|
|
116
|
+
renderTable?: (ctx: GanttTableSlotContext<T>) => ReactNode;
|
|
117
|
+
emptyOverlay?: ReactNode;
|
|
118
|
+
};
|
|
119
|
+
/** 受控折叠:必须同时提供 keys 与 toggle,否则点击后无法回写 */
|
|
120
|
+
type GanttCollapseControlled = {
|
|
121
|
+
collapsedKeys: GanttCollapsedKeys;
|
|
122
|
+
onToggleCollapse: (groupKey: string) => void | Promise<void>;
|
|
123
|
+
};
|
|
124
|
+
/** 非受控折叠:不传 collapsedKeys;onToggleCollapse 仅作通知(可选) */
|
|
125
|
+
type GanttCollapseUncontrolled = {
|
|
126
|
+
collapsedKeys?: undefined;
|
|
127
|
+
onToggleCollapse?: (groupKey: string) => void | Promise<void>;
|
|
128
|
+
};
|
|
129
|
+
export type GanttCollapseProps = GanttCollapseControlled | GanttCollapseUncontrolled;
|
|
130
|
+
/** 公开组件契约:基础 props + 折叠状态机 */
|
|
131
|
+
export type GanttProps<T extends GanttDataItem = GanttDataItem> = GanttPropsBase<T> & GanttCollapseProps;
|
|
132
|
+
/**
|
|
133
|
+
* 内部编排层 props:折叠字段解构后会丢失联合相关性,故用宽松形态。
|
|
134
|
+
* 运行时仍以 `collapsedKeys !== undefined` 判定受控。
|
|
135
|
+
*/
|
|
136
|
+
export type GanttLayoutInputProps<T extends GanttDataItem = GanttDataItem> = GanttPropsBase<T> & {
|
|
137
|
+
collapsedKeys?: GanttCollapsedKeys;
|
|
138
|
+
onToggleCollapse?: (groupKey: string) => void | Promise<void>;
|
|
139
|
+
};
|
|
140
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ForwardedRef, Ref } from 'react';
|
|
2
|
+
import { GanttDataItem } from '../interface';
|
|
3
|
+
import { GanttLayoutProps } from '../types.internal';
|
|
4
|
+
declare function GanttLayoutInner<T extends GanttDataItem>({ data, tableData, columns, mode: modeProp, availableModes, onModeChange, id, onRowClick, onTaskTimeChange, tooltip, className, style, renderTable, collapsedKeys, onToggleCollapse, emptyOverlay, }: GanttLayoutProps<T>, ref: ForwardedRef<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const GanttLayout: <T extends GanttDataItem = GanttDataItem>(props: GanttLayoutProps<T> & {
|
|
6
|
+
ref?: Ref<HTMLDivElement>;
|
|
7
|
+
}) => ReturnType<typeof GanttLayoutInner>;
|
|
8
|
+
export default GanttLayout;
|