@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.
Files changed (249) hide show
  1. package/dist/Amap/AmapProvider/index.js +3 -3
  2. package/dist/Amap/{AmapProvider-CTn2CH8s.js → AmapProvider-By5tTMAj.js} +1 -1
  3. package/dist/Amap/index.js +3 -3
  4. package/dist/Calendar/{AllDaySection-DS0Frx1p.js → AllDaySection-DwQz-p7a.js} +3 -3
  5. package/dist/Calendar/{Calendar-BIjk9zys.js → Calendar-CuBzeTkR.js} +84 -95
  6. package/dist/Calendar/{CurrentTimeIndicator-DaIywtIA.js → CurrentTimeIndicator-CUeblc9r.js} +2 -2
  7. package/dist/Calendar/{EventCard-D_VeOVDQ.js → EventCard-DRJrT_AG.js} +2 -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-B6ZFxTt6.js +114 -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-C5H9UObs.js} +3 -3
  29. package/dist/DropDown/index.js +4 -4
  30. package/dist/Editor/{Buttons-BB3xV8ku.js → Buttons-B8_yDqF5.js} +3 -3
  31. package/dist/Editor/ToolbarPlugin/Buttons/index.js +7 -7
  32. package/dist/Editor/index.js +7 -7
  33. package/dist/Gantt/GanttChart/index.js +15 -0
  34. package/dist/Gantt/GanttChart-DpmbH0GI.js +1965 -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-DSTq5XmX.js +83 -0
  38. package/dist/Gantt/GanttToolBar/index.js +11 -0
  39. package/dist/Gantt/GanttToolBar-fCAi-4zZ.js +91 -0
  40. package/dist/Gantt/collapseKeys-BWMH5k37.js +156 -0
  41. package/dist/Gantt/columnResize-By_1E48E.js +46 -0
  42. package/dist/Gantt/constants-_vMvDXFh.js +40 -0
  43. package/dist/Gantt/highlightTarget-DmzCIiQb.js +25 -0
  44. package/dist/Gantt/index.js +374 -0
  45. package/dist/Gantt/timelineViewConfig-DshzoBp7.js +118 -0
  46. package/dist/Gantt/utils/index.js +6 -0
  47. package/dist/Select/{Select-Dz_xr4my.js → Select-Gkywa_sm.js} +140 -134
  48. package/dist/Select/{SelectInputSearch-GHYAmQ3A.js → SelectInputSearch-DXPTGSc2.js} +1 -1
  49. package/dist/Select/index.js +4 -4
  50. package/dist/Table/Table-DVTq4n2V.js +544 -0
  51. package/dist/Table/constants-CKqc9Os_.js +25 -0
  52. package/dist/Table/hooks/index.js +2 -0
  53. package/dist/Table/hooks-CJ2CnSep.js +108 -0
  54. package/dist/Table/index.js +7 -0
  55. package/dist/Table/processRowspan-BCzfI5un.js +144 -0
  56. package/dist/Table/utils/index.js +2 -0
  57. package/dist/Tabs/{Tabs-CPRNkfMo.js → Tabs-DVQcB3YG.js} +1 -1
  58. package/dist/Tabs/index.js +1 -1
  59. package/dist/Tooltip/Tooltip-DW_XP13m.js +171 -0
  60. package/dist/Tooltip/index.js +1 -1
  61. package/dist/animations/index.d.ts +2 -2
  62. package/dist/components/Amap/__tests__/helpers.d.ts +6 -0
  63. package/dist/components/Calendar/__tests__/helpers/testFormatMessage.d.ts +1 -1
  64. package/dist/components/Calendar/context/CalendarContext.d.ts +2 -1
  65. package/dist/components/Calendar/index.d.ts +2 -2
  66. package/dist/components/Calendar/{shared → subcomponents}/AllDaySection/AllDaySection.d.ts +1 -1
  67. package/dist/components/Calendar/subcomponents/DayView/DayView.d.ts +3 -0
  68. package/dist/components/Calendar/{shared → subcomponents}/EventCard/EventCard.d.ts +1 -1
  69. package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthCell/MonthCellPopover/MonthCellPopover.d.ts +1 -1
  70. package/dist/components/Calendar/subcomponents/MonthView/MonthView.d.ts +3 -0
  71. package/dist/components/Calendar/{panels/WeekPanel → subcomponents}/WeekAllDaySection/WeekAllDaySection.d.ts +1 -1
  72. package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/WeekEventLayer/MoreButton.d.ts +1 -1
  73. package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/WeekEventLayer/WeekEventLayer.d.ts +1 -1
  74. package/dist/components/Calendar/subcomponents/WeekView/WeekView.d.ts +3 -0
  75. package/dist/components/Calendar/utils/dateUtils.d.ts +2 -1
  76. package/dist/components/Calendar/utils/eventUtils.d.ts +1 -1
  77. package/dist/components/Calendar/utils/layout/dayLayoutAlgorithm.d.ts +1 -1
  78. package/dist/components/Calendar/utils/localeKey.d.ts +2 -0
  79. package/dist/components/Calendar/utils/normalizeData.d.ts +1 -1
  80. package/dist/components/Calendar/{style → utils/theme}/index.d.ts +1 -0
  81. package/dist/components/Calendar/{adapters → utils/theme}/platformTheme.d.ts +1 -1
  82. package/dist/components/Calendar/{style → utils/theme}/resolveCalendarThemeVars.d.ts +1 -1
  83. package/dist/components/Calendar/{style → utils/theme}/resolveSubcomponentThemes.d.ts +3 -3
  84. package/dist/components/Calendar/utils/weekTimedLayout.d.ts +1 -1
  85. package/dist/components/DatePicker/__tests__/DatePicker.getPopupContainer.test.d.ts +1 -0
  86. package/dist/components/DatePicker/interface.d.ts +5 -0
  87. package/dist/components/Gantt/Gantt.d.ts +11 -0
  88. package/dist/components/Gantt/GanttChart/GanttBarTooltip/GanttBarTooltip.d.ts +3 -0
  89. package/dist/components/Gantt/GanttChart/GanttChart.d.ts +8 -0
  90. package/dist/components/Gantt/GanttChart/GanttChartCanvas.d.ts +4 -0
  91. package/dist/components/Gantt/GanttChart/GanttChartCanvasBackground.d.ts +4 -0
  92. package/dist/components/Gantt/GanttChart/GanttInteractionContext.d.ts +4 -0
  93. package/dist/components/Gantt/GanttChart/GanttSummaryBar/GanttSummaryBar.d.ts +4 -0
  94. package/dist/components/Gantt/GanttChart/GanttTaskBar/GanttTaskBar.d.ts +4 -0
  95. package/dist/components/Gantt/GanttChart/GanttTaskBar/useTaskBarPointer.d.ts +9 -0
  96. package/dist/components/Gantt/GanttChart/GanttTimelineContext.d.ts +4 -0
  97. package/dist/components/Gantt/GanttChart/GanttTimelineHeader/GanttTimelineHeader.d.ts +4 -0
  98. package/dist/components/Gantt/GanttChart/OffscreenTaskIndicators/OffscreenTaskIndicators.d.ts +4 -0
  99. package/dist/components/Gantt/GanttChart/TodayIndicator/TodayIndicator.d.ts +3 -0
  100. package/dist/components/Gantt/GanttChart/hooks/__tests__/timelineFocus.contract.test.d.ts +1 -0
  101. package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttColumnVirtual.test.d.ts +1 -0
  102. package/dist/components/Gantt/GanttChart/hooks/useBarTooltipHover.d.ts +19 -0
  103. package/dist/components/Gantt/GanttChart/hooks/useEdgeScroll.d.ts +7 -0
  104. package/dist/components/Gantt/GanttChart/hooks/useGanttColumnVirtual.d.ts +21 -0
  105. package/dist/components/Gantt/GanttChart/hooks/useGanttDrag.d.ts +15 -0
  106. package/dist/components/Gantt/GanttChart/hooks/useGanttRowVirtualScroll.d.ts +12 -0
  107. package/dist/components/Gantt/GanttChart/hooks/useGanttScrollbars.d.ts +2 -0
  108. package/dist/components/Gantt/GanttChart/hooks/useNormalizedItems.d.ts +11 -0
  109. package/dist/components/Gantt/GanttChart/hooks/useOffscreenIndicators.d.ts +11 -0
  110. package/dist/components/Gantt/GanttChart/hooks/useRowHoverHighlight.d.ts +10 -0
  111. package/dist/components/Gantt/GanttChart/hooks/useTimelineViewportController.d.ts +24 -0
  112. package/dist/components/Gantt/GanttChart/hooks/useTodayMs.d.ts +4 -0
  113. package/dist/components/Gantt/GanttChart/index.d.ts +1 -0
  114. package/dist/components/Gantt/GanttChart/utils/__tests__/dateRangeNormalizer.subday.test.d.ts +1 -0
  115. package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.quarterMonth.test.d.ts +1 -0
  116. package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.subday.test.d.ts +1 -0
  117. package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.quarterMonth.test.d.ts +1 -0
  118. package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.subday.test.d.ts +1 -0
  119. package/dist/components/Gantt/GanttChart/utils/__tests__/quarterMonthScale.test.d.ts +1 -0
  120. package/dist/components/Gantt/GanttChart/utils/__tests__/subdayScale.contract.test.d.ts +1 -0
  121. package/dist/components/Gantt/GanttChart/utils/__tests__/timelineViewConfig.test.d.ts +1 -0
  122. package/dist/components/Gantt/GanttChart/utils/buildSummaryBarTooltipContent.d.ts +6 -0
  123. package/dist/components/Gantt/GanttChart/utils/constants.d.ts +93 -0
  124. package/dist/components/Gantt/GanttChart/utils/dateRangeNormalizer.d.ts +18 -0
  125. package/dist/components/Gantt/GanttChart/utils/dragEngine.d.ts +60 -0
  126. package/dist/components/Gantt/GanttChart/utils/headerBuilder.d.ts +14 -0
  127. package/dist/components/Gantt/GanttChart/utils/quarterMonthScale.d.ts +8 -0
  128. package/dist/components/Gantt/GanttChart/utils/taskBarUtils.d.ts +3 -0
  129. package/dist/components/Gantt/GanttChart/utils/timeScale.d.ts +35 -0
  130. package/dist/components/Gantt/GanttChart/utils/timelineFocus.d.ts +42 -0
  131. package/dist/components/Gantt/GanttChart/utils/timelineMarkers.d.ts +1 -0
  132. package/dist/components/Gantt/GanttChart/utils/timelineViewConfig.d.ts +106 -0
  133. package/dist/components/Gantt/GanttChart/utils/timezoneUtils.d.ts +11 -0
  134. package/dist/components/Gantt/GanttHighlightContext.d.ts +3 -0
  135. package/dist/components/Gantt/GanttResizeIndicator.d.ts +3 -0
  136. package/dist/components/Gantt/GanttTable/GanttTable.d.ts +7 -0
  137. package/dist/components/Gantt/GanttTable/hooks/useGanttTableHighlightDomSync.d.ts +2 -0
  138. package/dist/components/Gantt/GanttTable/hooks/useGanttTableLinkedScroll.d.ts +7 -0
  139. package/dist/components/Gantt/GanttTable/index.d.ts +1 -0
  140. package/dist/components/Gantt/GanttTable/utils/mapGanttColumns.d.ts +13 -0
  141. package/dist/components/Gantt/GanttToolBar/GanttToolBar.d.ts +3 -0
  142. package/dist/components/Gantt/GanttToolBar/index.d.ts +1 -0
  143. package/dist/components/Gantt/__tests__/Gantt.contract.test.d.ts +0 -0
  144. package/dist/components/Gantt/__tests__/Gantt.grouped.contract.test.d.ts +0 -0
  145. package/dist/components/Gantt/__tests__/GanttChart.contract.test.d.ts +0 -0
  146. package/dist/components/Gantt/__tests__/GanttSummaryBar.tooltip.test.d.ts +1 -0
  147. package/dist/components/Gantt/__tests__/GanttToolBar.test.d.ts +1 -0
  148. package/dist/components/Gantt/__tests__/filterItemsByCollapse.test.d.ts +1 -0
  149. package/dist/components/Gantt/__tests__/helpers/ganttDomSetup.d.ts +1 -0
  150. package/dist/components/Gantt/__tests__/helpers/ganttTestFixtures.d.ts +7 -0
  151. package/dist/components/Gantt/__tests__/helpers/ganttTestMocks.d.ts +8 -0
  152. package/dist/components/Gantt/__tests__/helpers/renderWithLocale.d.ts +3 -0
  153. package/dist/components/Gantt/__tests__/helpers/testFormatMessage.d.ts +2 -0
  154. package/dist/components/Gantt/__tests__/interface.contract.types.test.d.ts +1 -0
  155. package/dist/components/Gantt/__tests__/timezoneUtils.test.d.ts +1 -0
  156. package/dist/components/Gantt/__tests__/useBarTooltipHover.test.d.ts +1 -0
  157. package/dist/components/Gantt/__tests__/useGanttHighlight.test.d.ts +1 -0
  158. package/dist/components/Gantt/__tests__/useTaskBarPointer.test.d.ts +1 -0
  159. package/dist/components/Gantt/hooks/useGanttCollapseState.d.ts +6 -0
  160. package/dist/components/Gantt/hooks/useGanttHighlight.d.ts +10 -0
  161. package/dist/components/Gantt/hooks/useGanttLayout.d.ts +7 -0
  162. package/dist/components/Gantt/hooks/useLinkedVerticalScroll.d.ts +6 -0
  163. package/dist/components/Gantt/index.d.ts +9 -0
  164. package/dist/components/Gantt/interface.d.ts +140 -0
  165. package/dist/components/Gantt/internal/GanttLayout.d.ts +8 -0
  166. package/dist/components/Gantt/internal/GanttTableShell.d.ts +3 -0
  167. package/dist/components/Gantt/types.internal.d.ts +313 -0
  168. package/dist/components/Gantt/utils/collapseKeys.d.ts +4 -0
  169. package/dist/components/Gantt/utils/columnResize.d.ts +19 -0
  170. package/dist/components/Gantt/utils/constants.d.ts +4 -0
  171. package/dist/components/Gantt/utils/filterItemsByCollapse.d.ts +9 -0
  172. package/dist/components/Gantt/utils/highlightTarget.d.ts +13 -0
  173. package/dist/components/Gantt/utils/index.d.ts +8 -0
  174. package/dist/components/Gantt/utils/localeKey.d.ts +2 -0
  175. package/dist/components/Gantt/utils/tableWidthStorage.d.ts +3 -0
  176. package/dist/components/Select/__tests__/Select.getPopupContainer.test.d.ts +1 -0
  177. package/dist/components/Select/interface.d.ts +4 -0
  178. package/dist/components/Table/Table.d.ts +4 -0
  179. package/dist/components/Table/__tests__/HeaderCell.test.d.ts +1 -0
  180. package/dist/components/Table/__tests__/TableBody.test.d.ts +1 -0
  181. package/dist/components/Table/__tests__/processRowspan.test.d.ts +1 -0
  182. package/dist/components/Table/components/HeaderCell.d.ts +16 -0
  183. package/dist/components/Table/components/TableBody.d.ts +45 -0
  184. package/dist/components/Table/components/TableFooter.d.ts +18 -0
  185. package/dist/components/Table/components/TableHeader.d.ts +14 -0
  186. package/dist/components/Table/constants.d.ts +29 -0
  187. package/dist/components/Table/hooks/index.d.ts +2 -0
  188. package/dist/components/Table/hooks/useColumnResize.d.ts +11 -0
  189. package/dist/components/Table/hooks/useTableVirtual.d.ts +19 -0
  190. package/dist/components/Table/index.d.ts +9 -0
  191. package/dist/components/Table/interface.d.ts +114 -0
  192. package/dist/components/Table/utils/flattenColumns.d.ts +17 -0
  193. package/dist/components/Table/utils/index.d.ts +3 -0
  194. package/dist/components/Table/utils/processRowspan.d.ts +16 -0
  195. package/dist/components/Table/utils/tableUtils.d.ts +22 -0
  196. package/dist/components/Tooltip/Tooltip.type.d.ts +2 -0
  197. package/dist/components/index.d.ts +4 -2
  198. package/dist/hooks/useLatchedPopupPortalRoot.d.ts +11 -0
  199. package/dist/index.js +24 -23
  200. package/dist/locale/lang/en-US.json.d.ts +63 -0
  201. package/dist/locale/lang/zh-CN.json.d.ts +63 -0
  202. package/dist/locale/lang/zh-TW.json.d.ts +63 -0
  203. package/dist/style.css +1 -1
  204. package/dist/vendors/{ConfigProvider-DCm-93oJ.js → ConfigProvider-BRfJ7gWc.js} +123 -1
  205. package/dist/vendors/{LocaleContext-CRlzP8UO.js → LocaleContext-BJdHS0sH.js} +61 -0
  206. package/dist/vendors/{animations-BmT0HT5q.js → animations-BeI8JZp1.js} +7 -3
  207. package/dist/vendors/{useFloatingOverlay-uxlI1G-V.js → useFloatingOverlay-3KB88hpZ.js} +1 -0
  208. package/dist/vendors/{useLocale-D9kAzQlB.js → useLocale-BTz4slNW.js} +1 -1
  209. package/dist/vitest-matchers.d.ts +1 -0
  210. package/package.json +3 -2
  211. package/dist/Calendar/adapters/index.js +0 -2
  212. package/dist/Calendar/adapters-zYR7CgzD.js +0 -20
  213. package/dist/Calendar/shared/AllDaySection/index.js +0 -8
  214. package/dist/Calendar/shared/CurrentTimeIndicator/index.js +0 -5
  215. package/dist/Calendar/shared/EventCard/index.js +0 -6
  216. package/dist/Calendar/shared/TimeAxis/index.js +0 -4
  217. package/dist/Calendar/shared/TimeGrid/index.js +0 -4
  218. package/dist/Calendar/style/index.js +0 -2
  219. package/dist/DatePicker/DatePicker-B2skjsiQ.js +0 -91
  220. package/dist/Tooltip/Tooltip-RkD8fs0B.js +0 -169
  221. package/dist/components/Calendar/adapters/index.d.ts +0 -1
  222. package/dist/components/Calendar/panels/DayPanel/DayPanel.d.ts +0 -3
  223. package/dist/components/Calendar/panels/MonthPanel/MonthPanel.d.ts +0 -3
  224. package/dist/components/Calendar/panels/WeekPanel/WeekPanel.d.ts +0 -3
  225. /package/dist/components/Calendar/{shared → subcomponents}/AllDaySection/index.d.ts +0 -0
  226. /package/dist/components/Calendar/{Header → subcomponents}/CalendarHeader/CalendarHeader.d.ts +0 -0
  227. /package/dist/components/Calendar/{Header → subcomponents}/CalendarHeaderLeft/CalendarHeaderLeft.d.ts +0 -0
  228. /package/dist/components/Calendar/{shared → subcomponents}/CurrentTimeIndicator/CurrentTimeIndicator.d.ts +0 -0
  229. /package/dist/components/Calendar/{shared → subcomponents}/CurrentTimeIndicator/index.d.ts +0 -0
  230. /package/dist/components/Calendar/{Header → subcomponents}/DateDisplay/DateDisplay.d.ts +0 -0
  231. /package/dist/components/Calendar/{Header → subcomponents}/DateDisplay/__tests__/DateDisplay.weekPicker.test.d.ts +0 -0
  232. /package/dist/components/Calendar/{panels/DayPanel → subcomponents/DayView}/__tests__/CalendarDay.dayFilter.test.d.ts +0 -0
  233. /package/dist/components/Calendar/{shared → subcomponents}/EventCard/__tests__/EventCard.tooltip.test.d.ts +0 -0
  234. /package/dist/components/Calendar/{shared → subcomponents}/EventCard/index.d.ts +0 -0
  235. /package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthCell/MonthCell.d.ts +0 -0
  236. /package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthHeader/MonthHeader.d.ts +0 -0
  237. /package/dist/components/Calendar/{Header → subcomponents}/NavButton/NavButton.d.ts +0 -0
  238. /package/dist/components/Calendar/{shared → subcomponents}/TimeAxis/TimeAxis.d.ts +0 -0
  239. /package/dist/components/Calendar/{shared → subcomponents}/TimeAxis/index.d.ts +0 -0
  240. /package/dist/components/Calendar/{shared → subcomponents}/TimeGrid/TimeGrid.d.ts +0 -0
  241. /package/dist/components/Calendar/{shared → subcomponents}/TimeGrid/index.d.ts +0 -0
  242. /package/dist/components/Calendar/{Header → subcomponents}/TodayButton/TodayButton.d.ts +0 -0
  243. /package/dist/components/Calendar/{panels/WeekPanel → subcomponents}/WeekHeader/WeekHeader.d.ts +0 -0
  244. /package/dist/components/Calendar/{internalTypes.d.ts → types.internal.d.ts} +0 -0
  245. /package/dist/components/Calendar/{adapters → utils/theme}/__tests__/platformTheme.test.d.ts +0 -0
  246. /package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveCalendarThemeVars.test.d.ts +0 -0
  247. /package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveScheduleColorVars.test.d.ts +0 -0
  248. /package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveSubcomponentThemes.test.d.ts +0 -0
  249. /package/dist/components/Calendar/{style → utils/theme}/resolveScheduleColorVars.d.ts +0 -0
@@ -0,0 +1,144 @@
1
+ import { i as e, t } from "./constants-CKqc9Os_.js";
2
+ import { groupBy as n, sumBy as r } from "lodash-es";
3
+ //#region src/components/Table/utils/tableUtils.ts
4
+ var i = (e = []) => e.flatMap((e) => e.children?.length ? e.children : [e]), a = (e, t) => t.findIndex((t) => e.isParent ? t.parentKey === e.key : t.key === e.key), o = (e, n, i, a = t.DEFAULT_WIDTH) => r(i === "left" ? n.slice(0, e) : n.slice(e + 1), (e) => e.width || a), s = (e, t, n) => n !== "left" && n !== "right" ? null : {
5
+ position: "sticky",
6
+ [n]: o(e, t, n),
7
+ zIndex: 2
8
+ }, c = (t, n, r, i) => {
9
+ if (!n || !r) return t;
10
+ let a = r === e.DESC ? -1 : 1;
11
+ return [...t].sort((e, t) => {
12
+ let r = e[n], o = t[n];
13
+ return i ? i(r, o, e, t) * a : r === o ? 0 : r == null ? 1 : o == null ? -1 : typeof r == "string" && typeof o == "string" ? r.localeCompare(o) * a : (r < o ? -1 : 1) * a;
14
+ });
15
+ }, l = (e, t, n) => {
16
+ let r = e[t];
17
+ return typeof r == "string" || typeof r == "number" ? r : n;
18
+ }, u = (e) => {
19
+ let t = [], n = [], r = [];
20
+ return e.forEach((e, i) => {
21
+ let a = {
22
+ ...e,
23
+ index: i
24
+ };
25
+ e.fixed === "left" ? t.push(a) : e.fixed === "right" ? r.push(a) : n.push(a);
26
+ }), {
27
+ leftFixedColumns: t,
28
+ normalColumns: n,
29
+ rightFixedColumns: r
30
+ };
31
+ }, d = (e, n = t.DEFAULT_WIDTH) => r(e, (e) => e.children?.length ? r(e.children, (e) => e.width || n) : e.width || n), f = (e) => {
32
+ let t = [], n = [], r = (e, i = 0, a = null) => {
33
+ t[i] || (t[i] = []), e.forEach((e) => {
34
+ let o = e.children, s = e.fixed || a || void 0;
35
+ if (o && o.length > 0) t[i].push({
36
+ ...e,
37
+ colSpan: o.length,
38
+ rowSpan: 1,
39
+ isParent: !0,
40
+ fixed: s
41
+ }), r(o, i + 1, s || null);
42
+ else {
43
+ let r = i + 1, a = {
44
+ ...e,
45
+ colSpan: 1,
46
+ rowSpan: r,
47
+ isLeaf: !0,
48
+ fixed: s
49
+ };
50
+ for (let n = 0; n < i; n++) t[n].find((t) => t.key === e.key) || t[n].push({
51
+ ...a,
52
+ isPlaceholder: !0
53
+ });
54
+ t[i].push(a), n.push(a);
55
+ }
56
+ });
57
+ };
58
+ r(e);
59
+ let i = [], a = t.length;
60
+ for (let t = 0; t < a; t++) {
61
+ let n = [], r = 0, o = (e, i = 0, s = null) => {
62
+ e.forEach((e) => {
63
+ let c = e.children, l = e.fixed || s || void 0;
64
+ c && c.length > 0 ? i === t ? n.push({
65
+ ...e,
66
+ colSpan: c.length,
67
+ rowSpan: 1,
68
+ isParent: !0,
69
+ displayIndex: r++,
70
+ fixed: l
71
+ }) : i < t && o(c, i + 1, l || null) : i === t ? n.push({
72
+ ...e,
73
+ colSpan: 1,
74
+ rowSpan: a - i,
75
+ isLeaf: !0,
76
+ displayIndex: r++,
77
+ fixed: l
78
+ }) : i < t && r++;
79
+ });
80
+ };
81
+ o(e), i.push(n);
82
+ }
83
+ return {
84
+ flatColumns: n,
85
+ headerRows: i
86
+ };
87
+ }, p = (e, t) => {
88
+ let n = t.name, r = t.children || [], i = 0;
89
+ for (let t = 0; t < e.length; t++) {
90
+ let a = e[t], o = Object.keys(a);
91
+ r.some((e) => {
92
+ let t = `${n}.${e.subformField || e.key}.`;
93
+ return o.some((e) => e.startsWith(t) && a[e] !== void 0 && a[e] !== "");
94
+ }) && (i = t + 1);
95
+ }
96
+ return i;
97
+ }, m = (e, t, r = "_id") => {
98
+ if (!e || e.length === 0) return [];
99
+ let i = t.filter((e) => !!(e.children && e.children.length > 0));
100
+ if (i.length === 0) return e.map((e) => ({
101
+ ...e,
102
+ _rowspan: {},
103
+ _showMainFields: !0
104
+ }));
105
+ let a = n(e, (e) => String(e[r] || e._id || e.id)), o = {};
106
+ Object.entries(a).forEach(([e, t]) => {
107
+ let n = {};
108
+ i.forEach((e) => {
109
+ n[e.name] = p(t, e);
110
+ }), o[e] = {
111
+ groupSize: t.length,
112
+ subformRowCounts: n
113
+ };
114
+ });
115
+ let s = [], c = {};
116
+ return e.forEach((e) => {
117
+ let t = String(e[r] || e._id || e.id), n = o[t], a = c[t] ?? 0;
118
+ c[t] = a + 1;
119
+ let l = a === 0, u = {};
120
+ i.forEach((e) => {
121
+ u[e.key] = l ? n.groupSize : 0;
122
+ }), u._mainFields = l ? n.groupSize : 0, s.push({
123
+ ...e,
124
+ _rowspan: u,
125
+ _showMainFields: l,
126
+ _groupIndex: a,
127
+ _groupSize: n.groupSize,
128
+ _subformRowCounts: n.subformRowCounts
129
+ });
130
+ }), s;
131
+ }, h = (e, t) => {
132
+ if (t.parentKey) return 1;
133
+ if (e._rowspan && e._rowspan[t.key] !== void 0) {
134
+ let n = e._rowspan[t.key];
135
+ return n > 0 ? n : 0;
136
+ }
137
+ if (e._rowspan && e._rowspan._mainFields !== void 0) {
138
+ let t = e._rowspan._mainFields;
139
+ return t > 0 ? t : 0;
140
+ }
141
+ return 1;
142
+ }, g = (e, t) => h(e, t) > 0;
143
+ //#endregion
144
+ export { o as a, d as c, c as d, u as f, f as i, s as l, m as n, i as o, g as r, a as s, h as t, l as u };
@@ -0,0 +1,2 @@
1
+ import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../processRowspan-BCzfI5un.js";
2
+ export { e as calculateFixedOffset, s as expandLeafColumns, l as findFlatColumnIndex, i as flattenColumns, u as getCellRowspan, t as getColumnsWidth, a as getFixedStickyStyle, d as getRowKey, o as processRowspan, c as shouldRenderCell, n as sortData, r as splitFixedColumns };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "../Icon/Icon-BQ3Whub2.js";
2
2
  import { n as t } from "../vendors/color-BeQo449h.js";
3
- import { n } from "../vendors/animations-BmT0HT5q.js";
3
+ import { n } from "../vendors/animations-BeI8JZp1.js";
4
4
  import { t as r } from "../vendors/useFloatingPortal-DsEtsAGW.js";
5
5
  import { isString as i } from "lodash-es";
6
6
  import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  import "../Icon/Icon-BQ3Whub2.js";
2
2
  import "../vendors/color-BeQo449h.js";
3
3
  import "../vendors/useFloatingPortal-DsEtsAGW.js";
4
- import { i as e, n as t, r as n, t as r } from "./Tabs-CPRNkfMo.js";
4
+ import { i as e, n as t, r as n, t as r } from "./Tabs-DVQcB3YG.js";
5
5
  export { e as TABS_TYPE, n as TabPanel, r as TabSelect, t as default };
@@ -0,0 +1,171 @@
1
+ import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
2
+ import { Fragment as r, cloneElement as i, createContext as a, isValidElement as ee, useCallback as te, useEffect as ne, useMemo as o, useRef as re, useState as ie } from "react";
3
+ import { useControllableValue as ae } from "ahooks";
4
+ import { FloatingArrow as oe, FloatingPortal as s, arrow as c, autoUpdate as l, flip as u, offset as d, safePolygon as f, shift as p, size as m, useClick as h, useDismiss as g, useFloating as _, useHover as v, useInteractions as se, useRole as ce, useTransitionStyles as le } from "@floating-ui/react";
5
+ //#region src/utils/mergeRefs.ts
6
+ var y = (...e) => (t) => {
7
+ e.forEach((e) => {
8
+ typeof e == "function" ? e(t) : e != null && (e.current = t);
9
+ });
10
+ }, b = a(null), x = {
11
+ "bsy-tooltip": "_bsy-tooltip_bqmfs_1",
12
+ "bsy-tooltip__trigger": "_bsy-tooltip__trigger_bqmfs_4",
13
+ "bsy-tooltip__content": "_bsy-tooltip__content_bqmfs_8"
14
+ }, ue = "M0 14C0 14 1.44834 13.9879 4.14272 10.7864C5.24990 9.46652 6.28557 8.66663 7.0002 8.66663C7.71415 8.66663 8.73670 9.55158 9.85697 10.8831C12.5664 14.1005 14 14 14 14H0Z", de = "#525867", S = (e, t) => e ? t ? (n) => {
15
+ e(n), t(n);
16
+ } : e : t, C = (e) => {
17
+ if (!(e === "auto" || e === void 0)) return typeof e == "number" ? `${e}px` : e;
18
+ }, fe = (e) => e.type === r || (e.type?.toString().includes("Fragment") ?? !1), w = ({ children: r, content: a, trigger: w = "hover", style: T, zIndex: E, showArrow: D = !0, placement: O = "bottom", onClose: k, hoverDelay: A = 500, getPopupContainer: j, moveToFloatingKeepOpen: M = !1, widthMode: N = "content", width: P, minWidth: F = 60, maxWidth: I = 340, offset: L = 10, fallbackPlacements: R, virtualReference: z, flipBoundary: B, animated: V = !1, animationConfig: H, ...pe }) => {
19
+ let U = re(null), [me, he] = ie(null), [W, G] = ae(pe, {
20
+ valuePropName: "visible",
21
+ trigger: "onVisibleChange",
22
+ defaultValue: !1
23
+ }), ge = te((e) => {
24
+ !e && W && k && k(), G(e);
25
+ }, [
26
+ W,
27
+ k,
28
+ G
29
+ ]), _e = o(() => {
30
+ let e = R ? { fallbackPlacements: R } : {};
31
+ B && (e.boundary = B);
32
+ let t = [
33
+ d(L),
34
+ u(e),
35
+ p({ padding: 8 })
36
+ ];
37
+ return D && t.push(c({ element: U })), N === "reference" && t.push(m({ apply({ rects: e, elements: t }) {
38
+ t.floating.style.width = `${e.reference.width}px`;
39
+ let n = C(F);
40
+ n && (t.floating.style.minWidth = n);
41
+ let r = C(I);
42
+ r && (t.floating.style.maxWidth = r);
43
+ } })), t;
44
+ }, [
45
+ N,
46
+ F,
47
+ I,
48
+ L,
49
+ R,
50
+ B,
51
+ D
52
+ ]), { refs: K, floatingStyles: q, context: J } = _({
53
+ open: W,
54
+ onOpenChange: ge,
55
+ whileElementsMounted: W ? (e, t, n) => l(e, t, n, {
56
+ animationFrame: !1,
57
+ ancestorScroll: !0,
58
+ ancestorResize: !0,
59
+ elementResize: !0,
60
+ layoutShift: !1
61
+ }) : void 0,
62
+ placement: O,
63
+ middleware: _e,
64
+ transform: !1
65
+ }), { isMounted: Y, styles: ve } = le(J, V && H ? H : { duration: 0 }), ye = V ? Y : W, X = o(() => {
66
+ let e = {
67
+ ...q,
68
+ ...T,
69
+ ...E === void 0 ? null : { "--bsy-tooltip-z-index": E }
70
+ };
71
+ switch (N) {
72
+ case "content":
73
+ e.width = "auto";
74
+ break;
75
+ case "manual":
76
+ P !== void 0 && (e.width = C(P));
77
+ break;
78
+ case "reference": break;
79
+ default: e.width = "max-content";
80
+ }
81
+ return N !== "reference" && (F !== void 0 && (e.minWidth = C(F)), I !== void 0 && (e.maxWidth = C(I))), e;
82
+ }, [
83
+ q,
84
+ T,
85
+ E,
86
+ N,
87
+ P,
88
+ F,
89
+ I
90
+ ]);
91
+ ne(() => {
92
+ z && K.setPositionReference(z);
93
+ }, [z, K]);
94
+ let { getReferenceProps: be, getFloatingProps: xe } = se([
95
+ v(J, {
96
+ enabled: w === "hover",
97
+ delay: { open: A },
98
+ handleClose: M ? f() : void 0
99
+ }),
100
+ h(J, { enabled: w === "click" }),
101
+ g(J),
102
+ ce(J, { role: "tooltip" })
103
+ ]), Z = be(), Q = {
104
+ ...Z,
105
+ onClick: (e) => {
106
+ w === "click" && e.stopPropagation(), Z.onClick?.(e);
107
+ },
108
+ onMouseEnter: (e) => {
109
+ w === "hover" && e.stopPropagation(), Z.onMouseEnter?.(e);
110
+ },
111
+ onMouseLeave: (e) => {
112
+ w === "hover" && e.stopPropagation(), Z.onMouseLeave?.(e);
113
+ },
114
+ onMouseMove: (e) => {
115
+ Z.onMouseMove?.(e);
116
+ }
117
+ }, Se = j?.(), Ce = typeof T?.background == "string" ? T.background : de, we = y(K.setFloating, he), $ = ye ? /* @__PURE__ */ t(s, {
118
+ root: Se ?? void 0,
119
+ children: /* @__PURE__ */ n("div", {
120
+ ref: we,
121
+ style: V ? {
122
+ ...X,
123
+ ...ve
124
+ } : X,
125
+ ...xe(),
126
+ className: x["bsy-tooltip__content"],
127
+ onClick: (e) => e.stopPropagation(),
128
+ children: [D ? /* @__PURE__ */ t(oe, {
129
+ ref: U,
130
+ context: J,
131
+ width: 14,
132
+ height: 14,
133
+ tipRadius: 2,
134
+ fill: Ce,
135
+ d: ue
136
+ }) : null, /* @__PURE__ */ t(b.Provider, {
137
+ value: me,
138
+ children: a
139
+ })]
140
+ })
141
+ }) : null;
142
+ if (ee(r) && !fe(r)) {
143
+ let t = r.props, a = r.ref;
144
+ return /* @__PURE__ */ n(e, { children: [i(r, {
145
+ ...t,
146
+ ...Q,
147
+ ref: a ? y(K.setReference, a) : K.setReference,
148
+ style: t.style,
149
+ onClick: S(t.onClick, Q.onClick),
150
+ onMouseEnter: S(t.onMouseEnter, Q.onMouseEnter),
151
+ onMouseLeave: S(t.onMouseLeave, Q.onMouseLeave),
152
+ onMouseMove: S(t.onMouseMove, Q.onMouseMove)
153
+ }), $] });
154
+ }
155
+ return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("div", {
156
+ className: x["bsy-tooltip"],
157
+ children: /* @__PURE__ */ t("div", {
158
+ ref: K.setReference,
159
+ ...Q,
160
+ className: x["bsy-tooltip__trigger"],
161
+ children: r
162
+ })
163
+ }), $] });
164
+ }, T = ({ content: n, children: r, ...i }) => n ? /* @__PURE__ */ t(w, {
165
+ content: n,
166
+ ...i,
167
+ children: r
168
+ }) : /* @__PURE__ */ t(e, { children: r });
169
+ T.displayName = "BsyTooltip";
170
+ //#endregion
171
+ export { b as n, T as t };
@@ -1,2 +1,2 @@
1
- import { n as e, t } from "./Tooltip-RkD8fs0B.js";
1
+ import { n as e, t } from "./Tooltip-DW_XP13m.js";
2
2
  export { e as TooltipFloatingContext, t as default };
@@ -19,8 +19,8 @@ export declare const PANEL_ANIMATION: {
19
19
  readonly y: -4;
20
20
  };
21
21
  readonly transition: {
22
- readonly duration: 0.2;
23
- readonly ease: "easeOut";
22
+ readonly duration: 0.218;
23
+ readonly ease: readonly [0.25, 0.1, 0.25, 1];
24
24
  };
25
25
  };
26
26
  export declare const ICON_ANIMATION: {
@@ -0,0 +1,6 @@
1
+ import { Mock } from 'vitest';
2
+ type ConstructorMock<T extends object> = Mock & (new (...args: any[]) => T);
3
+ /** Vitest v4 requires function/class mocks for `new` expressions. */
4
+ export declare function createConstructorMock<T extends object>(instance: T): ConstructorMock<T>;
5
+ export declare function createConstructorMockFactory<T extends object>(factory: (...args: any[]) => T): ConstructorMock<T>;
6
+ export {};
@@ -1,2 +1,2 @@
1
- import { CalendarFormatMessage } from '../../internalTypes';
1
+ import { CalendarFormatMessage } from '../../types.internal';
2
2
  export declare const testFormatMessage: CalendarFormatMessage;
@@ -1,5 +1,5 @@
1
1
  import { AddClickPayload, CalendarAxis, CalendarEventClickHandler, CalendarMode, CalendarTooltipConfig } from '../interface';
2
- import { CalendarFormatMessage } from '../internalTypes';
2
+ import { CalendarFormatMessage } from '../types.internal';
3
3
  import { SegmentedTheme } from '../../Segmented';
4
4
  import { DatePickerTheme } from '../../DatePicker';
5
5
  export interface CalendarStateContextValue {
@@ -14,6 +14,7 @@ export interface CalendarStateContextValue {
14
14
  segmentedTheme?: SegmentedTheme;
15
15
  datePickerTheme?: DatePickerTheme;
16
16
  formatMessage: CalendarFormatMessage;
17
+ getPopupContainer: () => HTMLElement;
17
18
  onEventClick?: CalendarEventClickHandler;
18
19
  onAddClick?: (payload: AddClickPayload) => void;
19
20
  }
@@ -1,4 +1,4 @@
1
1
  export { default } from './Calendar';
2
+ export { default as Calendar } from './Calendar';
2
3
  export type { CalendarProps, CalendarDataItem, CalendarTimeInput, CalendarMode, CalendarAxis, CalendarTheme, CalendarPanelBgImagePosition, CalendarTooltipConfig, CalendarEventClickHandler, AddClickPayload, } from './interface';
3
- export { resolveCalendarThemeVars } from './style';
4
- export { resolvePlatformCalendarTheme, type PlatformCalendarThemeConfig } from './adapters';
4
+ export { resolveCalendarThemeVars, resolvePlatformCalendarTheme, type PlatformCalendarThemeConfig, } from './utils/theme';
@@ -1,4 +1,4 @@
1
- import { NormalizedCalendarDataItem } from '../../internalTypes';
1
+ import { NormalizedCalendarDataItem } from '../../types.internal';
2
2
  interface AllDaySectionProps {
3
3
  events?: NormalizedCalendarDataItem[];
4
4
  onClick?: (event: NormalizedCalendarDataItem, index?: number) => void;
@@ -0,0 +1,3 @@
1
+ import { CalendarCoreViewProps } from '../../types.internal';
2
+ declare const DayView: ({ events }: CalendarCoreViewProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default DayView;
@@ -1,5 +1,5 @@
1
1
  import { Placement } from '@floating-ui/react';
2
- import { CalendarNormalizedEventClickHandler, EventCardPosition, NormalizedCalendarDataItem } from '../../internalTypes';
2
+ import { CalendarNormalizedEventClickHandler, EventCardPosition, NormalizedCalendarDataItem } from '../../types.internal';
3
3
  import { CalendarTooltipConfig } from '../../interface';
4
4
  type EventCardVariant = 'timed' | 'allDay';
5
5
  interface EventCardVisual {
@@ -1,5 +1,5 @@
1
1
  import { Dayjs } from 'dayjs';
2
- import { NormalizedCalendarDataItem } from '../../../../internalTypes';
2
+ import { NormalizedCalendarDataItem } from '../../../types.internal';
3
3
  interface MonthCellPopoverProps {
4
4
  date: Dayjs;
5
5
  events: NormalizedCalendarDataItem[];
@@ -0,0 +1,3 @@
1
+ import { CalendarCoreViewProps } from '../../types.internal';
2
+ declare const MonthView: ({ events }: CalendarCoreViewProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default MonthView;
@@ -1,5 +1,5 @@
1
1
  import { Dayjs } from 'dayjs';
2
- import { CalendarNormalizedEventClickHandler, NormalizedCalendarDataItem } from '../../../internalTypes';
2
+ import { CalendarNormalizedEventClickHandler, NormalizedCalendarDataItem } from '../../types.internal';
3
3
  interface WeekAllDaySectionProps {
4
4
  events: NormalizedCalendarDataItem[];
5
5
  onClick?: CalendarNormalizedEventClickHandler;
@@ -1,5 +1,5 @@
1
1
  import { Dayjs } from 'dayjs';
2
- import { NormalizedCalendarDataItem } from '../../../internalTypes';
2
+ import { NormalizedCalendarDataItem } from '../../types.internal';
3
3
  interface MoreButtonProps {
4
4
  dayIndex: number;
5
5
  date: Dayjs;
@@ -1,3 +1,3 @@
1
- import { WeekEventLayerProps } from '../../../internalTypes';
1
+ import { WeekEventLayerProps } from '../../types.internal';
2
2
  declare const WeekEventLayer: ({ weekSegments, hiddenScheduleIds, maxVisibleRows, onEventClick, weekDates, dayEventsByWeek, }: WeekEventLayerProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default WeekEventLayer;
@@ -0,0 +1,3 @@
1
+ import { CalendarCoreViewProps } from '../../types.internal';
2
+ declare const WeekView: ({ events }: CalendarCoreViewProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default WeekView;
@@ -1,4 +1,4 @@
1
- import { CalendarFormatMessage } from '../internalTypes';
1
+ import { CalendarFormatMessage } from '../types.internal';
2
2
  import { CalendarMode, CalendarTimeInput } from '../interface';
3
3
  export declare const getWeekStart: (date: Date | CalendarTimeInput, timeZone?: string) => import('dayjs').Dayjs;
4
4
  export declare const getWeekEnd: (date: Date | CalendarTimeInput, timeZone?: string) => import('dayjs').Dayjs;
@@ -10,6 +10,7 @@ export declare const formatWeekEndDate: (weekEnd: Date | CalendarTimeInput, week
10
10
  export declare const addDays: (date: Date, days: number, timeZone?: string) => Date;
11
11
  export declare const addWeeks: (date: Date, weeks: number, timeZone?: string) => Date;
12
12
  export declare const addMonths: (date: Date, months: number, timeZone?: string) => Date;
13
+ export declare const shiftDateByMode: (date: Date, mode: CalendarMode, delta: -1 | 1, timeZone?: string) => Date;
13
14
  export declare const getMonthWeekCount: (date: Date, timeZone?: string) => number;
14
15
  export declare const getDynamicMonthViewDates: (date: Date, timeZone?: string) => import('dayjs').Dayjs[];
15
16
  export declare const getMonthViewRange: (date: Date, timeZone?: string) => {
@@ -1,5 +1,5 @@
1
1
  import { Dayjs } from 'dayjs';
2
- import { CalendarFormatMessage, NormalizedCalendarDataItem } from '../internalTypes';
2
+ import { CalendarFormatMessage, NormalizedCalendarDataItem } from '../types.internal';
3
3
  import { CalendarTimeInput } from '../interface';
4
4
  export declare const getCalendarEventId: (event: {
5
5
  id: string | number;
@@ -27,5 +27,5 @@ export declare const calculateLayout: (events: any, zoomConfig: any, options?: {
27
27
  totalColumns: number;
28
28
  isLastInColumn: any;
29
29
  }[];
30
- allDayEvents: import('../../internalTypes').NormalizedCalendarDataItem[];
30
+ allDayEvents: import('../../types.internal').NormalizedCalendarDataItem[];
31
31
  };
@@ -0,0 +1,2 @@
1
+ import { LocaleKeys } from '../../../hooks/useLocale';
2
+ export declare const toCalendarLocaleKey: (key: string) => LocaleKeys;
@@ -1,6 +1,6 @@
1
1
  import { Dayjs } from 'dayjs';
2
2
  import { CalendarDataItem, CalendarTimeInput } from '../interface';
3
- import { NormalizedCalendarDataItem } from '../internalTypes';
3
+ import { NormalizedCalendarDataItem } from '../types.internal';
4
4
  export declare const parseCalendarTime: (value: CalendarTimeInput | null | undefined, timeZone?: string) => Dayjs;
5
5
  export declare const normalizeData: (data: CalendarDataItem[] | unknown, options?: {
6
6
  timeZone?: string;
@@ -3,3 +3,4 @@ export declare const CALENDAR_CURRENT_TIME_COLOR = "#ff5631";
3
3
  export { resolveCalendarThemeVars } from './resolveCalendarThemeVars';
4
4
  export { resolveDatePickerThemeFromCalendar, resolveSegmentedThemeFromCalendar, } from './resolveSubcomponentThemes';
5
5
  export { resolveScheduleColorVars } from './resolveScheduleColorVars';
6
+ export { resolvePlatformCalendarTheme, type PlatformCalendarThemeConfig } from './platformTheme';
@@ -1,4 +1,4 @@
1
- import { CalendarTheme } from '../interface';
1
+ import { CalendarTheme } from '../../interface';
2
2
  /** 低代码 / 现网平台主题结构,Calendar 组件本体不依赖此类型。 */
3
3
  export interface PlatformCalendarThemeConfig {
4
4
  background?: {
@@ -1,2 +1,2 @@
1
- import { CalendarTheme } from '../interface';
1
+ import { CalendarTheme } from '../../interface';
2
2
  export declare const resolveCalendarThemeVars: (theme?: CalendarTheme, color?: string) => Record<string, string>;
@@ -1,5 +1,5 @@
1
- import { DatePickerTheme } from '../../DatePicker/interface';
2
- import { SegmentedTheme } from '../../Segmented';
3
- import { CalendarTheme } from '../interface';
1
+ import { DatePickerTheme } from '../../../DatePicker/interface';
2
+ import { SegmentedTheme } from '../../../Segmented';
3
+ import { CalendarTheme } from '../../interface';
4
4
  export declare const resolveSegmentedThemeFromCalendar: (theme?: CalendarTheme) => SegmentedTheme | undefined;
5
5
  export declare const resolveDatePickerThemeFromCalendar: (theme?: CalendarTheme) => DatePickerTheme | undefined;
@@ -1,5 +1,5 @@
1
1
  import { Dayjs } from 'dayjs';
2
- import { NormalizedCalendarDataItem } from '../internalTypes';
2
+ import { NormalizedCalendarDataItem } from '../types.internal';
3
3
  import { ZoomConfig } from './timeUtils';
4
4
  export declare const layoutTimedEventsForWeek: (timedEvents: NormalizedCalendarDataItem[], weekStart: Dayjs, zoomConfig: ZoomConfig, timeZone?: string) => {
5
5
  event: any;
@@ -34,4 +34,9 @@ export interface DatePickerProps {
34
34
  children: ReactElement;
35
35
  /** 组件级颜色 token */
36
36
  theme?: DatePickerTheme;
37
+ /**
38
+ * 浮层挂载容器。返回有效 HTMLElement 时挂到该节点,否则回退到 FloatingPortal 默认(document.body)。
39
+ * 用于浮层需挂入局部容器(滚动/层叠上下文)时;未传则挂到 `document.body`。
40
+ */
41
+ getPopupContainer?: () => HTMLElement;
37
42
  }
@@ -0,0 +1,11 @@
1
+ import { ForwardedRef, Ref } from 'react';
2
+ import { GanttDataItem, GanttProps } from './interface';
3
+ declare function GanttInner<T extends GanttDataItem>({ data, columns, mode, availableModes, onModeChange, id, onRowClick, onTaskTimeChange, tooltip, className, style, tableData, renderTable, collapsedKeys, onToggleCollapse, emptyOverlay, }: GanttProps<T>, ref: ForwardedRef<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
4
+ /**
5
+ * 保住 GanttProps&lt;T&gt; 泛型推导:React.forwardRef 默认会擦除组件级泛型。
6
+ * 消费方传入 MyTask[] 时,onRowClick / tooltip / columns.render 的 item 应为 MyTask。
7
+ */
8
+ declare const Gantt: <T extends GanttDataItem = GanttDataItem>(props: GanttProps<T> & {
9
+ ref?: Ref<HTMLDivElement>;
10
+ }) => ReturnType<typeof GanttInner>;
11
+ export default Gantt;
@@ -0,0 +1,3 @@
1
+ import { GanttBarTooltipProps } from '../../types.internal';
2
+ declare const GanttBarTooltip: ({ item, tooltip, disabled, children }: GanttBarTooltipProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default GanttBarTooltip;
@@ -0,0 +1,8 @@
1
+ import { ForwardedRef, Ref } from 'react';
2
+ import { GanttDataItem } from '../interface';
3
+ import { GanttChartHandle, GanttChartProps } from '../types.internal';
4
+ declare function GanttChartInner<T extends GanttDataItem>({ items, viewMode, availableModes, onViewModeChange, timeRangeConfig, pixelsPerDayConfig, onTaskTimeChange, onRowClick, tooltip, verticalScrollController, showWeekendHighlight, showTodayLine, collapsedKeys, onToggleCollapse, }: GanttChartProps<T>, ref: ForwardedRef<GanttChartHandle>): import("react/jsx-runtime").JSX.Element;
5
+ declare const GanttChart: <T extends GanttDataItem = GanttDataItem>(props: GanttChartProps<T> & {
6
+ ref?: Ref<GanttChartHandle>;
7
+ }) => ReturnType<typeof GanttChartInner>;
8
+ export default GanttChart;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { GanttChartCanvasProps } from '../types.internal';
3
+ declare const GanttChartCanvas: React.NamedExoticComponent<GanttChartCanvasProps>;
4
+ export default GanttChartCanvas;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { GanttChartCanvasBackgroundProps } from '../types.internal';
3
+ declare const GanttChartCanvasBackground: React.NamedExoticComponent<GanttChartCanvasBackgroundProps>;
4
+ export default GanttChartCanvasBackground;
@@ -0,0 +1,4 @@
1
+ import { GanttInteractionContextValue } from '../types.internal';
2
+ declare const GanttInteractionContext: import('use-context-selector').Context<GanttInteractionContextValue>;
3
+ export declare const useGanttInteraction: <T>(selector: (value: GanttInteractionContextValue) => T) => T;
4
+ export default GanttInteractionContext;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { GanttSummaryBarProps } from '../../types.internal';
3
+ declare const _default: React.MemoExoticComponent<({ item, barTop }: GanttSummaryBarProps) => import("react/jsx-runtime").JSX.Element | null>;
4
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ import { GanttTaskBarProps } from '../../types.internal';
3
+ declare const _default: React.MemoExoticComponent<({ item, barTop, dragTaskId, dragPreview, dragPermission, }: GanttTaskBarProps) => import("react/jsx-runtime").JSX.Element>;
4
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import { MouseEvent } from 'react';
2
+ import { NormalizedGanttItem } from '../../types.internal';
3
+ export declare function useTaskBarPointer({ enabled, onTaskMouseDown, onBarClick, }: {
4
+ enabled: boolean;
5
+ onTaskMouseDown?: (event: MouseEvent, item: NormalizedGanttItem, baseLeft: number) => void;
6
+ onBarClick?: (event: MouseEvent, item: NormalizedGanttItem) => void;
7
+ }): {
8
+ handlePointerMouseDown: (event: MouseEvent, item: NormalizedGanttItem, baseLeft: number) => void;
9
+ };
@@ -0,0 +1,4 @@
1
+ import { GanttTimelineContextValue } from '../types.internal';
2
+ declare const GanttTimelineContext: import('use-context-selector').Context<GanttTimelineContextValue>;
3
+ export declare const useGanttTimeline: <T>(selector: (value: GanttTimelineContextValue) => T) => T;
4
+ export default GanttTimelineContext;
@@ -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;