@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.
Files changed (264) hide show
  1. package/dist/Amap/AmapProvider/index.js +3 -3
  2. package/dist/Amap/{AmapProvider-CTn2CH8s.js → AmapProvider-CwKdpmCg.js} +1 -1
  3. package/dist/Amap/index.js +3 -3
  4. package/dist/Calendar/{AllDaySection-DS0Frx1p.js → AllDaySection-CseF1DuB.js} +3 -3
  5. package/dist/Calendar/{Calendar-BIjk9zys.js → Calendar-Yu2HfA5D.js} +85 -95
  6. package/dist/Calendar/{CurrentTimeIndicator-DaIywtIA.js → CurrentTimeIndicator-CUeblc9r.js} +2 -2
  7. package/dist/Calendar/{EventCard-D_VeOVDQ.js → EventCard-L6jaKgEw.js} +3 -2
  8. package/dist/Calendar/{TimeAxis-gKb8dTwY.js → TimeAxis-cK2_3FeM.js} +1 -1
  9. package/dist/Calendar/{TimeGrid-D8Du5vFP.js → TimeGrid-B8lvUb1W.js} +2 -2
  10. package/dist/Calendar/index.js +15 -16
  11. package/dist/Calendar/{layout-DvWx_7gn.js → layout-CaPxiRd-.js} +94 -96
  12. package/dist/Calendar/subcomponents/AllDaySection/index.js +8 -0
  13. package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +5 -0
  14. package/dist/Calendar/subcomponents/EventCard/index.js +6 -0
  15. package/dist/Calendar/subcomponents/TimeAxis/index.js +4 -0
  16. package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -0
  17. package/dist/Calendar/{style-hCRKx3m1.js → theme-BzNDRi0U.js} +19 -3
  18. package/dist/Calendar/utils/index.js +37 -41
  19. package/dist/Calendar/utils/layout/index.js +2 -2
  20. package/dist/Calendar/utils/theme/index.js +2 -0
  21. package/dist/ColorPicker/{ColorPicker-BNPxmfw_.js → ColorPicker-By-Y8Tyz.js} +3 -3
  22. package/dist/ColorPicker/index.js +4 -4
  23. package/dist/ConfigProvider/index.js +2 -2
  24. package/dist/DatePicker/DatePicker-PCdNachD.js +115 -0
  25. package/dist/DatePicker/{DatePickerPanel-BaVC1tq2.js → DatePickerPanel-HoxXteK0.js} +13 -12
  26. package/dist/DatePicker/{ensureDayjsPlugins-DZjJnZgo.js → ensureDayjsPlugins-C3aqki6i.js} +3 -4
  27. package/dist/DatePicker/index.js +5 -5
  28. package/dist/DropDown/{DropDown-m3HT_eex.js → DropDown-CvQAbsEo.js} +11 -11
  29. package/dist/DropDown/index.js +4 -4
  30. package/dist/Editor/{Buttons-BB3xV8ku.js → Buttons-DmSUkHWl.js} +4 -4
  31. package/dist/Editor/ToolbarPlugin/Buttons/index.js +8 -8
  32. package/dist/Editor/index.js +8 -8
  33. package/dist/Gantt/GanttChart/index.js +15 -0
  34. package/dist/Gantt/GanttChart-DJA8pG9U.js +2139 -0
  35. package/dist/Gantt/GanttHighlightContext-AIpN3-af.js +12 -0
  36. package/dist/Gantt/GanttTable/index.js +10 -0
  37. package/dist/Gantt/GanttTable-Di_p-0M1.js +83 -0
  38. package/dist/Gantt/GanttToolBar/index.js +11 -0
  39. package/dist/Gantt/GanttToolBar-D5pQdrzv.js +105 -0
  40. package/dist/Gantt/collapseKeys-C8139wvy.js +160 -0
  41. package/dist/Gantt/columnResize-By_1E48E.js +46 -0
  42. package/dist/Gantt/constants-D4ur8WRs.js +39 -0
  43. package/dist/Gantt/highlightTarget-DmzCIiQb.js +25 -0
  44. package/dist/Gantt/index.js +374 -0
  45. package/dist/Gantt/timelineViewConfig-BXl2UkN8.js +118 -0
  46. package/dist/Gantt/utils/index.js +6 -0
  47. package/dist/Modal/{Modal-CrK8gFOn.js → Modal-D3LFqIV4.js} +3 -3
  48. package/dist/Modal/index.js +1 -1
  49. package/dist/Select/{Select-Dz_xr4my.js → Select-OjCjCogR.js} +144 -138
  50. package/dist/Select/{SelectInputSearch-GHYAmQ3A.js → SelectInputSearch-DXPTGSc2.js} +1 -1
  51. package/dist/Select/index.js +5 -5
  52. package/dist/Table/Table-3-kFIm5v.js +543 -0
  53. package/dist/Table/constants-CKqc9Os_.js +25 -0
  54. package/dist/Table/hooks/index.js +2 -0
  55. package/dist/Table/hooks-CJ2CnSep.js +108 -0
  56. package/dist/Table/index.js +7 -0
  57. package/dist/Table/processRowspan-BCzfI5un.js +144 -0
  58. package/dist/Table/utils/index.js +2 -0
  59. package/dist/Tabs/{Tabs-CPRNkfMo.js → Tabs-DVQcB3YG.js} +1 -1
  60. package/dist/Tabs/index.js +1 -1
  61. package/dist/Tooltip/Tooltip-DW_XP13m.js +171 -0
  62. package/dist/Tooltip/index.js +1 -1
  63. package/dist/Tree/index.js +1 -1
  64. package/dist/animations/index.d.ts +2 -2
  65. package/dist/components/Amap/__tests__/helpers.d.ts +6 -0
  66. package/dist/components/Calendar/__tests__/helpers/testFormatMessage.d.ts +1 -1
  67. package/dist/components/Calendar/context/CalendarContext.d.ts +2 -1
  68. package/dist/components/Calendar/index.d.ts +2 -2
  69. package/dist/components/Calendar/{shared → subcomponents}/AllDaySection/AllDaySection.d.ts +1 -1
  70. package/dist/components/Calendar/subcomponents/DayView/DayView.d.ts +3 -0
  71. package/dist/components/Calendar/{shared → subcomponents}/EventCard/EventCard.d.ts +1 -1
  72. package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthCell/MonthCellPopover/MonthCellPopover.d.ts +1 -1
  73. package/dist/components/Calendar/subcomponents/MonthView/MonthView.d.ts +3 -0
  74. package/dist/components/Calendar/{panels/WeekPanel → subcomponents}/WeekAllDaySection/WeekAllDaySection.d.ts +1 -1
  75. package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/WeekEventLayer/MoreButton.d.ts +1 -1
  76. package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/WeekEventLayer/WeekEventLayer.d.ts +1 -1
  77. package/dist/components/Calendar/subcomponents/WeekView/WeekView.d.ts +3 -0
  78. package/dist/components/Calendar/utils/dateUtils.d.ts +2 -1
  79. package/dist/components/Calendar/utils/eventUtils.d.ts +1 -1
  80. package/dist/components/Calendar/utils/layout/dayLayoutAlgorithm.d.ts +1 -1
  81. package/dist/components/Calendar/utils/localeKey.d.ts +2 -0
  82. package/dist/components/Calendar/utils/normalizeData.d.ts +1 -1
  83. package/dist/components/Calendar/{style → utils/theme}/index.d.ts +1 -0
  84. package/dist/components/Calendar/{adapters → utils/theme}/platformTheme.d.ts +1 -1
  85. package/dist/components/Calendar/{style → utils/theme}/resolveCalendarThemeVars.d.ts +1 -1
  86. package/dist/components/Calendar/{style → utils/theme}/resolveSubcomponentThemes.d.ts +3 -3
  87. package/dist/components/Calendar/utils/weekTimedLayout.d.ts +1 -1
  88. package/dist/components/DatePicker/__tests__/DatePicker.getPopupContainer.test.d.ts +1 -0
  89. package/dist/components/DatePicker/__tests__/DatePicker.triggerActiveClassName.test.d.ts +1 -0
  90. package/dist/components/DatePicker/interface.d.ts +7 -0
  91. package/dist/components/Gantt/Gantt.d.ts +11 -0
  92. package/dist/components/Gantt/GanttChart/GanttBarTooltip/GanttBarTooltip.d.ts +3 -0
  93. package/dist/components/Gantt/GanttChart/GanttChart.d.ts +8 -0
  94. package/dist/components/Gantt/GanttChart/GanttChartCanvas.d.ts +4 -0
  95. package/dist/components/Gantt/GanttChart/GanttChartCanvasBackground.d.ts +4 -0
  96. package/dist/components/Gantt/GanttChart/GanttInteractionContext.d.ts +4 -0
  97. package/dist/components/Gantt/GanttChart/GanttSummaryBar/GanttSummaryBar.d.ts +4 -0
  98. package/dist/components/Gantt/GanttChart/GanttTaskBar/GanttTaskBar.d.ts +4 -0
  99. package/dist/components/Gantt/GanttChart/GanttTaskBar/useTaskBarPointer.d.ts +9 -0
  100. package/dist/components/Gantt/GanttChart/GanttTimelineContext.d.ts +4 -0
  101. package/dist/components/Gantt/GanttChart/GanttTimelineHeader/GanttTimelineHeader.d.ts +4 -0
  102. package/dist/components/Gantt/GanttChart/OffscreenTaskIndicators/OffscreenTaskIndicators.d.ts +4 -0
  103. package/dist/components/Gantt/GanttChart/OffscreenTaskIndicators/__tests__/OffscreenTaskIndicators.test.d.ts +1 -0
  104. package/dist/components/Gantt/GanttChart/TodayIndicator/TodayIndicator.d.ts +3 -0
  105. package/dist/components/Gantt/GanttChart/hooks/__tests__/timelineFocus.contract.test.d.ts +1 -0
  106. package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttColumnVirtual.test.d.ts +1 -0
  107. package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttDrag.clippedQuarterMonth.test.d.ts +0 -0
  108. package/dist/components/Gantt/GanttChart/hooks/__tests__/useOffscreenIndicators.test.d.ts +1 -0
  109. package/dist/components/Gantt/GanttChart/hooks/__tests__/useTimelineViewportController.test.d.ts +0 -0
  110. package/dist/components/Gantt/GanttChart/hooks/useBarTooltipHover.d.ts +19 -0
  111. package/dist/components/Gantt/GanttChart/hooks/useEdgeScroll.d.ts +6 -0
  112. package/dist/components/Gantt/GanttChart/hooks/useGanttColumnVirtual.d.ts +21 -0
  113. package/dist/components/Gantt/GanttChart/hooks/useGanttDrag.d.ts +15 -0
  114. package/dist/components/Gantt/GanttChart/hooks/useGanttRowVirtualScroll.d.ts +12 -0
  115. package/dist/components/Gantt/GanttChart/hooks/useGanttScrollbars.d.ts +2 -0
  116. package/dist/components/Gantt/GanttChart/hooks/useNormalizedItems.d.ts +11 -0
  117. package/dist/components/Gantt/GanttChart/hooks/useOffscreenIndicators.d.ts +11 -0
  118. package/dist/components/Gantt/GanttChart/hooks/useRowHoverHighlight.d.ts +10 -0
  119. package/dist/components/Gantt/GanttChart/hooks/useTimelineViewportController.d.ts +26 -0
  120. package/dist/components/Gantt/GanttChart/hooks/useTodayMs.d.ts +4 -0
  121. package/dist/components/Gantt/GanttChart/index.d.ts +1 -0
  122. package/dist/components/Gantt/GanttChart/utils/__tests__/dateRangeNormalizer.subday.test.d.ts +1 -0
  123. package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.quarterMonth.test.d.ts +1 -0
  124. package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.subday.test.d.ts +1 -0
  125. package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.quarterMonth.test.d.ts +1 -0
  126. package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.subday.test.d.ts +1 -0
  127. package/dist/components/Gantt/GanttChart/utils/__tests__/quarterMonthScale.test.d.ts +1 -0
  128. package/dist/components/Gantt/GanttChart/utils/__tests__/subdayScale.contract.test.d.ts +1 -0
  129. package/dist/components/Gantt/GanttChart/utils/__tests__/timelineMarkers.test.d.ts +1 -0
  130. package/dist/components/Gantt/GanttChart/utils/__tests__/timelineRange.test.d.ts +1 -0
  131. package/dist/components/Gantt/GanttChart/utils/__tests__/timelineViewConfig.test.d.ts +1 -0
  132. package/dist/components/Gantt/GanttChart/utils/__tests__/timelineViewportEngine.test.d.ts +1 -0
  133. package/dist/components/Gantt/GanttChart/utils/buildSummaryBarTooltipContent.d.ts +6 -0
  134. package/dist/components/Gantt/GanttChart/utils/constants.d.ts +102 -0
  135. package/dist/components/Gantt/GanttChart/utils/dateRangeNormalizer.d.ts +18 -0
  136. package/dist/components/Gantt/GanttChart/utils/dragEngine.d.ts +62 -0
  137. package/dist/components/Gantt/GanttChart/utils/headerBuilder.d.ts +14 -0
  138. package/dist/components/Gantt/GanttChart/utils/quarterMonthScale.d.ts +9 -0
  139. package/dist/components/Gantt/GanttChart/utils/taskBarUtils.d.ts +3 -0
  140. package/dist/components/Gantt/GanttChart/utils/timeScale.d.ts +35 -0
  141. package/dist/components/Gantt/GanttChart/utils/timelineFocus.d.ts +8 -0
  142. package/dist/components/Gantt/GanttChart/utils/timelineMarkers.d.ts +2 -0
  143. package/dist/components/Gantt/GanttChart/utils/timelineRange.d.ts +8 -0
  144. package/dist/components/Gantt/GanttChart/utils/timelineViewConfig.d.ts +106 -0
  145. package/dist/components/Gantt/GanttChart/utils/timelineViewportEngine.d.ts +44 -0
  146. package/dist/components/Gantt/GanttChart/utils/timezoneUtils.d.ts +11 -0
  147. package/dist/components/Gantt/GanttHighlightContext.d.ts +3 -0
  148. package/dist/components/Gantt/GanttResizeIndicator.d.ts +3 -0
  149. package/dist/components/Gantt/GanttTable/GanttTable.d.ts +7 -0
  150. package/dist/components/Gantt/GanttTable/hooks/useGanttTableHighlightDomSync.d.ts +2 -0
  151. package/dist/components/Gantt/GanttTable/hooks/useGanttTableLinkedScroll.d.ts +7 -0
  152. package/dist/components/Gantt/GanttTable/index.d.ts +1 -0
  153. package/dist/components/Gantt/GanttTable/utils/mapGanttColumns.d.ts +13 -0
  154. package/dist/components/Gantt/GanttToolBar/GanttToolBar.d.ts +3 -0
  155. package/dist/components/Gantt/GanttToolBar/index.d.ts +1 -0
  156. package/dist/components/Gantt/__tests__/Gantt.contract.test.d.ts +0 -0
  157. package/dist/components/Gantt/__tests__/Gantt.grouped.contract.test.d.ts +0 -0
  158. package/dist/components/Gantt/__tests__/GanttBars.renderWindow.test.d.ts +1 -0
  159. package/dist/components/Gantt/__tests__/GanttChart.contract.test.d.ts +0 -0
  160. package/dist/components/Gantt/__tests__/GanttSummaryBar.tooltip.test.d.ts +1 -0
  161. package/dist/components/Gantt/__tests__/GanttToolBar.test.d.ts +1 -0
  162. package/dist/components/Gantt/__tests__/filterItemsByCollapse.test.d.ts +1 -0
  163. package/dist/components/Gantt/__tests__/helpers/ganttDomSetup.d.ts +1 -0
  164. package/dist/components/Gantt/__tests__/helpers/ganttTestFixtures.d.ts +7 -0
  165. package/dist/components/Gantt/__tests__/helpers/ganttTestMocks.d.ts +8 -0
  166. package/dist/components/Gantt/__tests__/helpers/renderWithLocale.d.ts +3 -0
  167. package/dist/components/Gantt/__tests__/helpers/testFormatMessage.d.ts +2 -0
  168. package/dist/components/Gantt/__tests__/interface.contract.types.test.d.ts +1 -0
  169. package/dist/components/Gantt/__tests__/timezoneUtils.test.d.ts +1 -0
  170. package/dist/components/Gantt/__tests__/useBarTooltipHover.test.d.ts +1 -0
  171. package/dist/components/Gantt/__tests__/useGanttHighlight.test.d.ts +1 -0
  172. package/dist/components/Gantt/__tests__/useTaskBarPointer.test.d.ts +1 -0
  173. package/dist/components/Gantt/hooks/useGanttCollapseState.d.ts +6 -0
  174. package/dist/components/Gantt/hooks/useGanttHighlight.d.ts +10 -0
  175. package/dist/components/Gantt/hooks/useGanttLayout.d.ts +7 -0
  176. package/dist/components/Gantt/hooks/useLinkedVerticalScroll.d.ts +6 -0
  177. package/dist/components/Gantt/index.d.ts +9 -0
  178. package/dist/components/Gantt/interface.d.ts +140 -0
  179. package/dist/components/Gantt/internal/GanttLayout.d.ts +8 -0
  180. package/dist/components/Gantt/internal/GanttTableShell.d.ts +3 -0
  181. package/dist/components/Gantt/types.internal.d.ts +327 -0
  182. package/dist/components/Gantt/utils/collapseKeys.d.ts +4 -0
  183. package/dist/components/Gantt/utils/columnResize.d.ts +19 -0
  184. package/dist/components/Gantt/utils/constants.d.ts +4 -0
  185. package/dist/components/Gantt/utils/filterItemsByCollapse.d.ts +9 -0
  186. package/dist/components/Gantt/utils/highlightTarget.d.ts +13 -0
  187. package/dist/components/Gantt/utils/index.d.ts +8 -0
  188. package/dist/components/Gantt/utils/localeKey.d.ts +2 -0
  189. package/dist/components/Gantt/utils/tableWidthStorage.d.ts +3 -0
  190. package/dist/components/Select/__tests__/Select.getPopupContainer.test.d.ts +1 -0
  191. package/dist/components/Select/interface.d.ts +4 -0
  192. package/dist/components/Table/Table.d.ts +4 -0
  193. package/dist/components/Table/__tests__/HeaderCell.test.d.ts +1 -0
  194. package/dist/components/Table/__tests__/TableBody.test.d.ts +1 -0
  195. package/dist/components/Table/__tests__/processRowspan.test.d.ts +1 -0
  196. package/dist/components/Table/components/HeaderCell.d.ts +16 -0
  197. package/dist/components/Table/components/TableBody.d.ts +45 -0
  198. package/dist/components/Table/components/TableFooter.d.ts +18 -0
  199. package/dist/components/Table/components/TableHeader.d.ts +14 -0
  200. package/dist/components/Table/constants.d.ts +29 -0
  201. package/dist/components/Table/hooks/index.d.ts +2 -0
  202. package/dist/components/Table/hooks/useColumnResize.d.ts +11 -0
  203. package/dist/components/Table/hooks/useTableVirtual.d.ts +19 -0
  204. package/dist/components/Table/index.d.ts +9 -0
  205. package/dist/components/Table/interface.d.ts +114 -0
  206. package/dist/components/Table/utils/flattenColumns.d.ts +17 -0
  207. package/dist/components/Table/utils/index.d.ts +3 -0
  208. package/dist/components/Table/utils/processRowspan.d.ts +16 -0
  209. package/dist/components/Table/utils/tableUtils.d.ts +22 -0
  210. package/dist/components/Tooltip/Tooltip.type.d.ts +2 -0
  211. package/dist/components/index.d.ts +4 -2
  212. package/dist/hooks/useLatchedPopupPortalRoot.d.ts +11 -0
  213. package/dist/index.js +26 -25
  214. package/dist/locale/lang/en-US.json.d.ts +63 -0
  215. package/dist/locale/lang/zh-CN.json.d.ts +63 -0
  216. package/dist/locale/lang/zh-TW.json.d.ts +63 -0
  217. package/dist/style.css +1 -1
  218. package/dist/vendors/{ConfigProvider-DCm-93oJ.js → ConfigProvider-DwmA94S2.js} +128 -1
  219. package/dist/vendors/{LocaleContext-CRlzP8UO.js → LocaleContext-BJdHS0sH.js} +61 -0
  220. package/dist/vendors/{Tree-DJpkMB5u.js → Tree-C7BgkjCQ.js} +1 -1
  221. package/dist/vendors/{animations-BmT0HT5q.js → animations-BeI8JZp1.js} +7 -3
  222. package/dist/vendors/{useFloatingOverlay-uxlI1G-V.js → useFloatingOverlay-3KB88hpZ.js} +1 -0
  223. package/dist/vendors/{useLocale-D9kAzQlB.js → useLocale-BTz4slNW.js} +1 -1
  224. package/dist/vitest-matchers.d.ts +1 -0
  225. package/package.json +3 -2
  226. package/dist/Calendar/adapters/index.js +0 -2
  227. package/dist/Calendar/adapters-zYR7CgzD.js +0 -20
  228. package/dist/Calendar/shared/AllDaySection/index.js +0 -8
  229. package/dist/Calendar/shared/CurrentTimeIndicator/index.js +0 -5
  230. package/dist/Calendar/shared/EventCard/index.js +0 -6
  231. package/dist/Calendar/shared/TimeAxis/index.js +0 -4
  232. package/dist/Calendar/shared/TimeGrid/index.js +0 -4
  233. package/dist/Calendar/style/index.js +0 -2
  234. package/dist/DatePicker/DatePicker-B2skjsiQ.js +0 -91
  235. package/dist/Tooltip/Tooltip-RkD8fs0B.js +0 -169
  236. package/dist/components/Calendar/adapters/index.d.ts +0 -1
  237. package/dist/components/Calendar/panels/DayPanel/DayPanel.d.ts +0 -3
  238. package/dist/components/Calendar/panels/MonthPanel/MonthPanel.d.ts +0 -3
  239. package/dist/components/Calendar/panels/WeekPanel/WeekPanel.d.ts +0 -3
  240. /package/dist/components/Calendar/{shared → subcomponents}/AllDaySection/index.d.ts +0 -0
  241. /package/dist/components/Calendar/{Header → subcomponents}/CalendarHeader/CalendarHeader.d.ts +0 -0
  242. /package/dist/components/Calendar/{Header → subcomponents}/CalendarHeaderLeft/CalendarHeaderLeft.d.ts +0 -0
  243. /package/dist/components/Calendar/{shared → subcomponents}/CurrentTimeIndicator/CurrentTimeIndicator.d.ts +0 -0
  244. /package/dist/components/Calendar/{shared → subcomponents}/CurrentTimeIndicator/index.d.ts +0 -0
  245. /package/dist/components/Calendar/{Header → subcomponents}/DateDisplay/DateDisplay.d.ts +0 -0
  246. /package/dist/components/Calendar/{Header → subcomponents}/DateDisplay/__tests__/DateDisplay.weekPicker.test.d.ts +0 -0
  247. /package/dist/components/Calendar/{panels/DayPanel → subcomponents/DayView}/__tests__/CalendarDay.dayFilter.test.d.ts +0 -0
  248. /package/dist/components/Calendar/{shared → subcomponents}/EventCard/__tests__/EventCard.tooltip.test.d.ts +0 -0
  249. /package/dist/components/Calendar/{shared → subcomponents}/EventCard/index.d.ts +0 -0
  250. /package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthCell/MonthCell.d.ts +0 -0
  251. /package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthHeader/MonthHeader.d.ts +0 -0
  252. /package/dist/components/Calendar/{Header → subcomponents}/NavButton/NavButton.d.ts +0 -0
  253. /package/dist/components/Calendar/{shared → subcomponents}/TimeAxis/TimeAxis.d.ts +0 -0
  254. /package/dist/components/Calendar/{shared → subcomponents}/TimeAxis/index.d.ts +0 -0
  255. /package/dist/components/Calendar/{shared → subcomponents}/TimeGrid/TimeGrid.d.ts +0 -0
  256. /package/dist/components/Calendar/{shared → subcomponents}/TimeGrid/index.d.ts +0 -0
  257. /package/dist/components/Calendar/{Header → subcomponents}/TodayButton/TodayButton.d.ts +0 -0
  258. /package/dist/components/Calendar/{panels/WeekPanel → subcomponents}/WeekHeader/WeekHeader.d.ts +0 -0
  259. /package/dist/components/Calendar/{internalTypes.d.ts → types.internal.d.ts} +0 -0
  260. /package/dist/components/Calendar/{adapters → utils/theme}/__tests__/platformTheme.test.d.ts +0 -0
  261. /package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveCalendarThemeVars.test.d.ts +0 -0
  262. /package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveScheduleColorVars.test.d.ts +0 -0
  263. /package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveSubcomponentThemes.test.d.ts +0 -0
  264. /package/dist/components/Calendar/{style → utils/theme}/resolveScheduleColorVars.d.ts +0 -0
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { GanttTimelineHeaderProps } from '../../types.internal';
3
+ declare const _default: React.MemoExoticComponent<({ timelineWidth, viewportWidth, scrollLeft, trackRef, virtualColumns, lowerSegments, todayLineLeft, todayCenterMs, showTodayLine, viewMode, availableModes, formatMessage, onViewModeChange, onTodayClick, onScrollPrev, onScrollNext, }: GanttTimelineHeaderProps) => import("react/jsx-runtime").JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { OffscreenTaskIndicatorsProps } from '../../types.internal';
3
+ declare const _default: React.MemoExoticComponent<({ indicators, onJump }: OffscreenTaskIndicatorsProps) => import("react/jsx-runtime").JSX.Element | null>;
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { TodayIndicatorProps } from '../../types.internal';
2
+ declare const TodayIndicator: ({ left, height, className }: TodayIndicatorProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default TodayIndicator;
@@ -0,0 +1,19 @@
1
+ import { MouseEvent } from 'react';
2
+ export declare function useBarTooltipHover(): {
3
+ virtualReference: {
4
+ getBoundingClientRect: () => {
5
+ width: number;
6
+ height: number;
7
+ x: number;
8
+ y: number;
9
+ top: number;
10
+ bottom: number;
11
+ left: number;
12
+ right: number;
13
+ toJSON: () => {};
14
+ };
15
+ } | undefined;
16
+ handleMouseMove: (e: MouseEvent<HTMLDivElement>) => void;
17
+ handleMouseLeave: () => void;
18
+ handleTooltipVisibleChange: (visible: boolean) => void;
19
+ };
@@ -0,0 +1,6 @@
1
+ import { MutableRefObject } from 'react';
2
+ import { ElementRef } from '../../types.internal';
3
+ export declare function useEdgeScroll(containerRef: ElementRef<HTMLDivElement>, onScrolledRef?: MutableRefObject<(() => void) | null>): {
4
+ startEdgeDetection: (clientX: number) => void;
5
+ stopEdgeScroll: () => void;
6
+ };
@@ -0,0 +1,21 @@
1
+ import { GanttMode } from '../../interface';
2
+ import { LowerSegment, VirtualColumnIndex, WeekendSegment } from '../../types.internal';
3
+ export declare function resolveColumnOverscanPx(cellWidthPx: number): number;
4
+ export declare function selectVirtualColumns(lowerSegments: LowerSegment[], opts: {
5
+ scrollLeft?: number;
6
+ viewportWidth?: number;
7
+ pixelsPerDay: number;
8
+ }): VirtualColumnIndex[];
9
+ export declare function useGanttColumnVirtual({ lowerSegments, pixelsPerDay, scrollLeft, viewportWidth, showWeekendHighlight, timelineStartMs, timelineWidth, viewMode, }: {
10
+ lowerSegments: LowerSegment[];
11
+ pixelsPerDay: number;
12
+ scrollLeft: number;
13
+ viewportWidth: number;
14
+ showWeekendHighlight?: boolean;
15
+ timelineStartMs: number;
16
+ timelineWidth: number;
17
+ viewMode: GanttMode;
18
+ }): {
19
+ virtualColumns: VirtualColumnIndex[];
20
+ weekendSegments: WeekendSegment[];
21
+ };
@@ -0,0 +1,15 @@
1
+ import { MouseEvent } from 'react';
2
+ import { CommittedRangeById, InternalDragState, NormalizedGanttItem, ResolvedDragPermission, UseGanttDragOptions } from '../../types.internal';
3
+ export declare function useGanttDrag({ pixelsPerDay, viewMode, timelineCoords, onTaskTimeChange, containerRef, onDragInteractionChange, }: UseGanttDragOptions): {
4
+ dragState: InternalDragState | null;
5
+ committedRangeById: CommittedRangeById;
6
+ resetCommittedRanges: () => void;
7
+ forceResetAllCommittedRanges: () => void;
8
+ handleTaskMouseDown: (event: MouseEvent, item: NormalizedGanttItem & {
9
+ dragPermission?: ResolvedDragPermission;
10
+ }, left: number, width?: number) => void;
11
+ handleResizeMouseDown: (event: MouseEvent, item: NormalizedGanttItem & {
12
+ dragPermission?: ResolvedDragPermission;
13
+ }, left: number, edge: "start" | "end", width?: number) => void;
14
+ consumeRecentDragResult: () => boolean;
15
+ };
@@ -0,0 +1,12 @@
1
+ import { NormalizedGanttItem, ElementRef } from '../../types.internal';
2
+ export declare function useGanttRowVirtualScroll({ items, contentRef, safeRowHeight, viewportHeight, overscan, }: {
3
+ items: NormalizedGanttItem[];
4
+ contentRef: ElementRef<HTMLDivElement>;
5
+ safeRowHeight: number;
6
+ viewportHeight: number;
7
+ overscan?: number;
8
+ }): {
9
+ virtualRows: any;
10
+ canvasHeight: number;
11
+ isScrolling: boolean;
12
+ };
@@ -0,0 +1,2 @@
1
+ import { RefObject } from 'react';
2
+ export declare function useGanttScrollbars(hostRef: RefObject<HTMLDivElement | null>, viewportRef: RefObject<HTMLDivElement | null>): boolean;
@@ -0,0 +1,11 @@
1
+ import { GanttDataItem, GanttMode } from '../../interface';
2
+ import { CommittedRange, NormalizedGanttItem } from '../../types.internal';
3
+ interface UseNormalizedItemsParams<T extends GanttDataItem = GanttDataItem> {
4
+ visibleItems?: T[];
5
+ committedRangeById?: Record<string, CommittedRange>;
6
+ viewMode?: GanttMode | string;
7
+ }
8
+ export declare function useNormalizedItems<T extends GanttDataItem = GanttDataItem>({ visibleItems, committedRangeById, viewMode, }: UseNormalizedItemsParams<T>): {
9
+ normalizedItems: NormalizedGanttItem<T>[];
10
+ };
11
+ export {};
@@ -0,0 +1,11 @@
1
+ import { VirtualItem } from '@tanstack/react-virtual';
2
+ import { NormalizedGanttItem, OffscreenIndicator } from '../../types.internal';
3
+ export declare function useOffscreenIndicators({ virtualRows, normalizedItems, visibleStartMs, visibleEndMs, enabled, excludeTaskId, }: {
4
+ virtualRows: VirtualItem[];
5
+ normalizedItems: NormalizedGanttItem[];
6
+ visibleStartMs: number;
7
+ visibleEndMs: number;
8
+ enabled?: boolean;
9
+ /** Hide indicators for the row currently being dragged. */
10
+ excludeTaskId?: string | null;
11
+ }): OffscreenIndicator[];
@@ -0,0 +1,10 @@
1
+ import { MouseEvent, RefObject } from 'react';
2
+ import { NormalizedGanttItem } from '../../types.internal';
3
+ export declare function useRowHoverHighlight({ normalizedItems, safeRowHeight, }: {
4
+ normalizedItems: NormalizedGanttItem[];
5
+ safeRowHeight: number;
6
+ }): {
7
+ hoverBgRef: RefObject<HTMLDivElement | null>;
8
+ handleContentMouseMove: (event: MouseEvent<HTMLDivElement>) => void;
9
+ handleContentMouseLeave: () => void;
10
+ };
@@ -0,0 +1,26 @@
1
+ import { UIEvent } from 'react';
2
+ import { OffscreenJumpTarget, UseTimelineViewportControllerOptions } from '../../types.internal';
3
+ /**
4
+ * 时间轴视口:Focus(anchorCenterMs) → Window → Scroll 单向流。
5
+ * 切档只重建窗口并对齐 scroll,禁止用 (oldStart, oldPpd, scrollLeft) 反推焦点。
6
+ */
7
+ export declare function useTimelineViewportController({ timeRangeConfig, pixelsPerDayConfig, viewMode, contentRef, contentSize, headerTrackRef, formatMessage, isHorizontalScrollbarInteracting, isTaskBarInteracting, }: UseTimelineViewportControllerOptions): {
8
+ pixelsPerDay: number;
9
+ viewportWidth: number;
10
+ scrollLeft: number;
11
+ timelineStartMs: number;
12
+ timelineEndMs: number;
13
+ visibleStartMs: number;
14
+ visibleEndMs: number;
15
+ lowerSegments: import('../../types.internal').TimelineSegment[];
16
+ timelineCoords: import('../../types.internal').TimelineCoords;
17
+ timelineWidth: number;
18
+ todayCenterMs: number;
19
+ todayLineLeft: number | null;
20
+ isInitialLayoutReady: boolean;
21
+ handleContentScroll: (event: UIEvent<HTMLDivElement>) => void;
22
+ handleTodayClick: () => void;
23
+ handleOffscreenJump: (jumpTarget: OffscreenJumpTarget) => void;
24
+ handleScrollPrev: () => void;
25
+ handleScrollNext: () => void;
26
+ };
@@ -0,0 +1,4 @@
1
+ import { GanttMode } from '../../interface';
2
+ export declare const getTodayCenterMs: (viewMode: GanttMode) => number;
3
+ declare const useTodayMs: (viewMode: GanttMode) => number;
4
+ export default useTodayMs;
@@ -0,0 +1 @@
1
+ export { default } from './GanttChart';
@@ -0,0 +1,6 @@
1
+ import { GanttFormatMessage } from '../../types.internal';
2
+ export declare function buildSummaryBarTooltipContent(item: {
3
+ rawStartMs?: number | null;
4
+ rawEndMs?: number | null;
5
+ progress?: number | null;
6
+ }, formatMessage: GanttFormatMessage): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,102 @@
1
+ export declare const HEADER_TOP_HEIGHT = 34;
2
+ export declare const HEADER_BOTTOM_HEIGHT = 34;
3
+ export declare const MIN_TABLE_WIDTH = 200;
4
+ export declare const GANTT_DEFAULT_ROW_HEIGHT = 34;
5
+ /** 左表 headerRowSpan:与 GanttTimelineHeader 双行高度(68px)对齐 */
6
+ export declare const GANTT_TABLE_HEADER_ROW_SPAN: number;
7
+ export declare const MS_PER_DAY: number;
8
+ export declare const DRAG_MODE_MOVE = "move";
9
+ export declare const DRAG_MODE_RESIZE_START = "resize-start";
10
+ export declare const DRAG_MODE_RESIZE_END = "resize-end";
11
+ export declare const CLICK_SUPPRESS_WINDOW_MS = 400;
12
+ export declare const PENDING_TIMEOUT_MS = 30000;
13
+ export declare const OFFSCREEN_SMOOTH_SCROLL_DISTANCE_RATIO = 1.5;
14
+ export declare const MIN_DRAG_PX = 5;
15
+ export declare const EDGE_SCROLL_ZONE_PX = 60;
16
+ export declare const EDGE_SCROLL_MAX_SPEED = 10;
17
+ export declare const EDGE_SCROLL_MIN_SPEED = 2;
18
+ export declare const HOVER_SCROLL_IDLE_MS = 150;
19
+ export declare const EMPTY_GROUP_VALUE = "__empty__";
20
+ export declare const HEX_COLOR_REGEX: RegExp;
21
+ export declare const BAR_MAX_HEIGHT = 26;
22
+ /**
23
+ * 列向虚拟化 overscan(DOM 裁剪,≠ 时间轴 dynamicBuffer)。
24
+ * 按 bottom 格宽计,禁止用 pixelsPerDay(亚日 ppd = 格宽 × 每日列数,会放大 columnsPerDay 倍)。
25
+ */
26
+ export declare const COLUMN_OVERSCAN_CELLS = 4;
27
+ export declare const MIN_COLUMN_OVERSCAN_PX = 240;
28
+ export declare const TIMELINE_REBASE_GUARD_BAND_PX = 280;
29
+ /** 重建后的 Focus 到任一逻辑边缘必须严格越过保护区,避免立即再次 rebase。 */
30
+ export declare const TIMELINE_REBASE_CENTER_MARGIN_PX: number;
31
+ export declare const DEFAULT_TIME_RANGE_CONFIG: {
32
+ bufferDaysBefore: number;
33
+ bufferDaysAfter: number;
34
+ };
35
+ /**
36
+ * 亚日档初始缓冲天数(单点真相)。
37
+ *
38
+ * [核心约束] 亚日档每天会产出 columnsPerDay 个 bottom 列
39
+ *(tenMinute = 144 列/天;oneMinute = 1440 列/天)。
40
+ * 若沿用日历档 ±90 天缓冲,初次构建即产生上万个表头格,造成首屏卡顿。
41
+ * 这里按粒度收窄初始窗口;DOM 仍由列虚拟化控制,segment 数组可略超千级。
42
+ */
43
+ export declare const DEFAULT_SUBDAY_BUFFER_DAYS: {
44
+ halfDay: number;
45
+ sixHour: number;
46
+ hour: number;
47
+ halfHour: number;
48
+ tenMinute: number;
49
+ oneMinute: number;
50
+ };
51
+ /**
52
+ * 粗粒度日历档:每侧至少保留的「本档周期」数量。
53
+ * week→周、month/quarterMonth→月、quarter→季、year→年。
54
+ */
55
+ export declare const COARSE_MODE_SIDE_BUFFER_UNITS: {
56
+ readonly week: 20;
57
+ readonly month: 20;
58
+ readonly quarter: 20;
59
+ readonly year: 10;
60
+ readonly quarterMonth: 20;
61
+ };
62
+ /**
63
+ * 按 viewMode 覆盖的默认缓冲天数(前后对称)。
64
+ *
65
+ * - 亚日:收窄,避免 ±90 天炸出海量表头列
66
+ * - week 及以上:每侧按 {@link COARSE_MODE_SIDE_BUFFER_UNITS} 个本档周期
67
+ * (大屏下 ensureCanCenter 仍可能再加宽以保证 focus 可居中)
68
+ * - day:不在此表,沿用 DEFAULT_TIME_RANGE_CONFIG ±90(可被 props 覆盖)
69
+ */
70
+ export declare const DEFAULT_MODE_BUFFER_DAYS: {
71
+ week: number;
72
+ month: number;
73
+ quarter: number;
74
+ year: number;
75
+ quarterMonth: number;
76
+ halfDay: number;
77
+ sixHour: number;
78
+ hour: number;
79
+ halfHour: number;
80
+ tenMinute: number;
81
+ oneMinute: number;
82
+ };
83
+ /**
84
+ * 每个 viewMode 的「每天像素宽」。
85
+ *
86
+ * [核心约束] 单格列宽 = pixelsPerDay × (bottomCellMs / MS_PER_DAY)。
87
+ * 因此亚日档要达到目标列宽,pixelsPerDay 必须 = 目标列宽 × columnsPerDay,
88
+ * 而非直接写目标列宽(这是此前列宽被压窄的根因)。
89
+ */
90
+ export declare const DEFAULT_PIXELS_PER_DAY_CONFIG: {
91
+ day: number;
92
+ week: number;
93
+ month: number;
94
+ quarter: number;
95
+ year: number;
96
+ halfDay: number;
97
+ sixHour: number;
98
+ hour: number;
99
+ halfHour: number;
100
+ tenMinute: number;
101
+ oneMinute: number;
102
+ };
@@ -0,0 +1,18 @@
1
+ import { GanttMode } from '../../interface';
2
+ export declare const hasTimeComponent: (ms: number | null) => boolean;
3
+ export declare const resolveRenderRange: ({ rawStartMs, rawEndMs, baseStartMs, baseEndMs, }: {
4
+ rawStartMs: number | null;
5
+ rawEndMs: number | null;
6
+ baseStartMs: number | null;
7
+ baseEndMs: number | null;
8
+ }, viewMode: GanttMode) => {
9
+ startMs: number | null;
10
+ endMs: number | null;
11
+ };
12
+ export declare const normalizeTaskDateRange: (startValue: unknown, endValue: unknown) => {
13
+ rawStartMs: number | null;
14
+ rawEndMs: number | null;
15
+ baseStartMs: number | null;
16
+ baseEndMs: number | null;
17
+ invalid: boolean;
18
+ };
@@ -0,0 +1,62 @@
1
+ import { GanttCalendarMode, GanttCalendarTaskTimeChangePayload, GanttChangeType, GanttDragPermission, GanttSubDayMode, GanttSubDayTaskTimeChangePayload } from '../../interface';
2
+ import { ResolvedDragPermission, TimelineCoords } from '../../types.internal';
3
+ type DraggableItem = {
4
+ type?: 'task' | 'summary';
5
+ draggable?: boolean;
6
+ invalid?: boolean;
7
+ dragPermission?: GanttDragPermission | ResolvedDragPermission;
8
+ };
9
+ export declare const isDraggableItem: (item: DraggableItem | null | undefined) => boolean;
10
+ export declare const NO_DRAG_PERMISSION: ResolvedDragPermission;
11
+ export declare const resolveItemDragPermission: (item: DraggableItem | null | undefined) => ResolvedDragPermission;
12
+ export declare const canStartDragMode: (item: DraggableItem | null | undefined, dragMode: GanttChangeType) => boolean;
13
+ export declare const getSnappedDeltaDays: (deltaPx: number, pixelsPerDay: number) => number;
14
+ export declare const getSnappedDelta: (deltaPx: number, pixelsPerUnit: number) => number;
15
+ export declare const snapTimestampToGrid: (ms: number, snapUnitMs: number, edge?: "floor" | "ceil" | "round") => number;
16
+ export declare const shiftTimeRangeMs: (startMs: number, endMs: number, deltaMs: number) => {
17
+ startMs: number;
18
+ endMs: number;
19
+ };
20
+ export declare const resizeTimeRangeMs: ({ startMs, endMs, deltaMs, edge, minDurationMs, }: {
21
+ startMs: number;
22
+ endMs: number;
23
+ deltaMs: number;
24
+ edge: "start" | "end";
25
+ minDurationMs: number;
26
+ }) => {
27
+ startMs: number;
28
+ endMs: number;
29
+ };
30
+ interface CalendarDragCurrent {
31
+ dragMode: GanttChangeType;
32
+ originStartMs: number;
33
+ originEndMs: number;
34
+ originLeftPx: number;
35
+ originAnchorPx?: number;
36
+ originAnchorMs?: number;
37
+ }
38
+ export declare const applyCalendarDragByCoords: (current: CalendarDragCurrent, deltaPx: number, timelineCoords: TimelineCoords, snapUnitMs: number) => {
39
+ deltaUnits: number;
40
+ previewStartMs: number;
41
+ previewEndMs: number;
42
+ previewLeftPx: number;
43
+ };
44
+ type BuildTaskTimeChangePayloadCommon = {
45
+ item: {
46
+ id: string | number;
47
+ };
48
+ startMs: number;
49
+ endMs: number;
50
+ deltaMs: number;
51
+ snapUnitMs: number;
52
+ changeType: GanttChangeType;
53
+ };
54
+ type BuildTaskTimeChangePayloadArgs = (BuildTaskTimeChangePayloadCommon & {
55
+ viewMode: GanttCalendarMode;
56
+ deltaDays: number;
57
+ }) | (BuildTaskTimeChangePayloadCommon & {
58
+ viewMode: GanttSubDayMode;
59
+ });
60
+ export declare function buildTaskTimeChangePayload<const T extends BuildTaskTimeChangePayloadArgs>(args: T): T['viewMode'] extends GanttSubDayMode ? GanttSubDayTaskTimeChangePayload : GanttCalendarTaskTimeChangePayload;
61
+ export declare const toPromise: <T>(result: T | Promise<T>) => Promise<T>;
62
+ export {};
@@ -0,0 +1,14 @@
1
+ import { GanttMode } from '../../interface';
2
+ import { GanttFormatMessage, LowerSegment, TopSegment } from '../../types.internal';
3
+ export declare const buildLowerSegments: ({ viewMode, timelineStartMs, timelineEndMs, pixelsPerDay, formatMessage, }: {
4
+ viewMode: GanttMode;
5
+ timelineStartMs: number;
6
+ timelineEndMs: number;
7
+ pixelsPerDay: number;
8
+ formatMessage: GanttFormatMessage;
9
+ }) => LowerSegment[];
10
+ export declare const buildTopSegments: ({ lowerSegments, viewMode, formatMessage, }: {
11
+ lowerSegments: LowerSegment[];
12
+ viewMode: GanttMode;
13
+ formatMessage: GanttFormatMessage;
14
+ }) => TopSegment[];
@@ -0,0 +1,9 @@
1
+ import { GanttFormatMessage, LowerSegment } from '../../types.internal';
2
+ export declare const QUARTER_MONTH_CELL_WIDTH_PX: number | undefined;
3
+ export declare const toUnclippedQuarterMonthWidth: (startMs: number, endMs: number) => number;
4
+ export declare const formatQuarterMonthTopLabel: (startMs: number, formatMessage: GanttFormatMessage) => string;
5
+ export declare const formatCalendarMonthLabel: (startMs: number, formatMessage: GanttFormatMessage) => string;
6
+ export declare const formatQuarterMonthBottomLabel: (startMs: number, formatMessage: GanttFormatMessage) => string;
7
+ export declare const toXFromMonthSegments: (timeMs: number, segments: LowerSegment[]) => number;
8
+ export declare const toWidthFromMonthSegments: (startMs: number, endMs: number, segments: LowerSegment[]) => number;
9
+ export declare const timeMsAtXFromMonthSegments: (x: number, segments: LowerSegment[], timelineEndMs: number) => number;
@@ -0,0 +1,3 @@
1
+ export declare const buildAlphaColor: (color: string | undefined, alpha: number) => string | null;
2
+ export declare const buildContrastColor: (color: string | undefined, minContrastRatio?: number) => string;
3
+ export declare const measureLabelWidth: (text: string, font?: string) => number;
@@ -0,0 +1,35 @@
1
+ import { GanttMode } from '../../interface';
2
+ import { LowerSegment, PixelsPerDayConfig, TimeRangeConfig, TimelineCoords } from '../../types.internal';
3
+ import { MS_PER_DAY, DEFAULT_TIME_RANGE_CONFIG, DEFAULT_PIXELS_PER_DAY_CONFIG } from './constants';
4
+ export { MS_PER_DAY, DEFAULT_TIME_RANGE_CONFIG, DEFAULT_PIXELS_PER_DAY_CONFIG };
5
+ export declare const clampProgress: (value: unknown) => number;
6
+ export declare const parseDateValue: (value: unknown) => number | null;
7
+ export declare const startOfDayMs: (timestamp: number) => number;
8
+ export declare const getPixelsPerDay: (viewMode: GanttMode, config?: PixelsPerDayConfig) => number;
9
+ export declare const resolveTimeRangeConfigForViewMode: (viewMode: GanttMode, timeRangeConfig?: TimeRangeConfig) => Required<TimeRangeConfig>;
10
+ export declare const buildBufferedTimelineRange: (timeRangeConfig?: TimeRangeConfig, anchorMs?: number) => {
11
+ startMs: number;
12
+ endMs: number;
13
+ };
14
+ export declare const buildTodayTimelineRange: (timeRangeConfig?: TimeRangeConfig, nowMs?: number) => {
15
+ startMs: number;
16
+ endMs: number;
17
+ };
18
+ export declare const alignRangeToViewMode: (startMs: number, endMs: number, viewMode: GanttMode) => {
19
+ startMs: number;
20
+ endMs: number;
21
+ };
22
+ export declare const toXByTime: (timeMs: number, timelineStartMs: number, pixelsPerDay: number, viewMode: GanttMode, monthSegments?: LowerSegment[] | null) => number;
23
+ export declare const toWidthByRange: (startMs: number, endMs: number, pixelsPerDay: number, viewMode: GanttMode, _timelineStartMs?: number, monthSegments?: LowerSegment[] | null) => number;
24
+ export declare const timeMsAtX: (x: number, timelineStartMs: number, pixelsPerDay: number, viewMode: GanttMode, timelineEndMs?: number, monthSegments?: LowerSegment[] | null) => number;
25
+ export declare const buildTimelineCoords: ({ viewMode, timelineStartMs, timelineEndMs, pixelsPerDay, lowerSegments, }: {
26
+ viewMode: GanttMode;
27
+ timelineStartMs: number;
28
+ timelineEndMs: number;
29
+ pixelsPerDay: number;
30
+ lowerSegments: LowerSegment[];
31
+ }) => TimelineCoords;
32
+ export declare const buildCenteredTimelineRange: (centerMs: number, spanMs: number) => {
33
+ startMs: number;
34
+ endMs: number;
35
+ };
@@ -0,0 +1,8 @@
1
+ export declare function clampScrollLeft(scrollLeft: number, viewportWidth: number, timelineWidth: number): number;
2
+ export declare function scrollLeftForAnchor({ anchorMs, toX, viewportWidth, timelineWidth, }: {
3
+ anchorMs: number;
4
+ toX: (ms: number) => number;
5
+ viewportWidth: number;
6
+ timelineWidth: number;
7
+ }): number;
8
+ export declare function focusDeltaDays(actualMs: number, anchorMs: number): number;
@@ -0,0 +1,2 @@
1
+ import { TimelineRange } from './timelineRange';
2
+ export declare function shouldShowTodayMarker(showTodayLine: boolean | undefined, todayLineLeft: number | null, timelineWidth: number, todayMs: number, renderWindow: TimelineRange): boolean;
@@ -0,0 +1,8 @@
1
+ export interface TimelineRange {
2
+ startMs: number;
3
+ endMs: number;
4
+ }
5
+ export declare const isValidTimelineRange: (range: TimelineRange) => boolean;
6
+ export declare const containsTime: (range: TimelineRange, timeMs: number) => boolean;
7
+ export declare const intersectsRange: (left: TimelineRange, right: TimelineRange) => boolean;
8
+ export declare const clipRange: (range: TimelineRange, bounds: TimelineRange) => TimelineRange | null;
@@ -0,0 +1,106 @@
1
+ import { TimelineViewConfig } from '../../types.internal';
2
+ import { ALL_GANTT_MODES, CALENDAR_TIER_MODES, DEFAULT_GANTT_MODE, GANTT_MODE_DISPLAY_ORDER, SUB_DAY_MODES, GanttMode } from '../../interface';
3
+ export { ALL_GANTT_MODES, CALENDAR_TIER_MODES, DEFAULT_GANTT_MODE, GANTT_MODE_DISPLAY_ORDER, SUB_DAY_MODES, };
4
+ export declare const MS_HOUR: number;
5
+ export declare const MS_MIN: number;
6
+ export declare const SUBDAY_SNAP: {
7
+ readonly hour: number;
8
+ readonly tenMinute: number;
9
+ readonly oneMinute: number;
10
+ };
11
+ /**
12
+ * 12 档 viewMode 配置矩阵。
13
+ * [核心约束] bottomCellMs 与 snapUnitMs 独立,禁止互相推导。
14
+ */
15
+ export declare const TIMELINE_VIEW_CONFIG: {
16
+ readonly day: {
17
+ readonly tier: "calendar";
18
+ readonly headerLayout: "flat";
19
+ readonly topGroup: "month";
20
+ readonly bottomCellMs: number;
21
+ readonly snapUnitMs: number;
22
+ };
23
+ readonly week: {
24
+ readonly tier: "calendar";
25
+ readonly headerLayout: "flat";
26
+ readonly topGroup: "month";
27
+ readonly bottomCellMs: number;
28
+ readonly snapUnitMs: number;
29
+ };
30
+ readonly month: {
31
+ readonly tier: "calendar";
32
+ readonly headerLayout: "flat";
33
+ readonly topGroup: "year";
34
+ readonly bottomCellMs: number;
35
+ readonly snapUnitMs: number;
36
+ };
37
+ readonly quarter: {
38
+ readonly tier: "calendar";
39
+ readonly headerLayout: "flat";
40
+ readonly topGroup: "year";
41
+ readonly bottomCellMs: number;
42
+ readonly snapUnitMs: number;
43
+ };
44
+ readonly quarterMonth: {
45
+ readonly tier: "calendar";
46
+ readonly headerLayout: "quarterNested";
47
+ readonly topGroup: "quarter";
48
+ readonly bottomCellMs: number;
49
+ readonly bottomCellWidthPx: 100;
50
+ readonly snapUnitMs: number;
51
+ };
52
+ readonly year: {
53
+ readonly tier: "calendar";
54
+ readonly headerLayout: "flat";
55
+ readonly topGroup: "year";
56
+ readonly bottomCellMs: number;
57
+ readonly snapUnitMs: number;
58
+ };
59
+ readonly halfDay: {
60
+ readonly tier: "subDay";
61
+ readonly headerLayout: "dayNested";
62
+ readonly topGroup: "day";
63
+ readonly bottomCellMs: number;
64
+ readonly snapUnitMs: number;
65
+ };
66
+ readonly sixHour: {
67
+ readonly tier: "subDay";
68
+ readonly headerLayout: "dayNested";
69
+ readonly topGroup: "day";
70
+ readonly bottomCellMs: number;
71
+ readonly snapUnitMs: number;
72
+ };
73
+ readonly hour: {
74
+ readonly tier: "subDay";
75
+ readonly headerLayout: "dayNested";
76
+ readonly topGroup: "day";
77
+ readonly bottomCellMs: number;
78
+ readonly snapUnitMs: number;
79
+ };
80
+ readonly halfHour: {
81
+ readonly tier: "subDay";
82
+ readonly headerLayout: "hourNested";
83
+ readonly topGroup: "hour";
84
+ readonly bottomCellMs: number;
85
+ readonly snapUnitMs: number;
86
+ };
87
+ readonly tenMinute: {
88
+ readonly tier: "subDay";
89
+ readonly headerLayout: "hourNested";
90
+ readonly topGroup: "hour";
91
+ readonly bottomCellMs: number;
92
+ readonly snapUnitMs: number;
93
+ };
94
+ readonly oneMinute: {
95
+ readonly tier: "subDay";
96
+ readonly headerLayout: "hourNested";
97
+ readonly topGroup: "hour";
98
+ readonly bottomCellMs: number;
99
+ readonly snapUnitMs: number;
100
+ };
101
+ };
102
+ export declare const getTimelineViewConfig: (mode: GanttMode | string) => TimelineViewConfig;
103
+ export declare const isSubDayViewMode: (mode: GanttMode | string) => boolean;
104
+ export declare const isQuarterMonthViewMode: (mode: GanttMode | string) => boolean;
105
+ export declare const resolveSnapUnit: (mode: GanttMode | string) => number;
106
+ export declare const resolveBottomCellMs: (mode: GanttMode | string) => number;