@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,114 @@
1
+ import { t as e } from "../vendors/useFloatingOverlay-3KB88hpZ.js";
2
+ import { t } from "../vendors/useLocale-BTz4slNW.js";
3
+ import { n } from "../vendors/animations-BeI8JZp1.js";
4
+ import { n as r } from "./pickerLocale-VqSP_iIm.js";
5
+ import { t as i } from "./style-DZaSSoNs.js";
6
+ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
7
+ import { Suspense as c, cloneElement as l, isValidElement as u, lazy as d, useCallback as f, useLayoutEffect as p, useMemo as m, useRef as h, useState as g } from "react";
8
+ import { useControllableValue as _ } from "ahooks";
9
+ import { AnimatePresence as v, motion as y } from "motion/react";
10
+ import { FloatingPortal as b } from "@floating-ui/react";
11
+ import x from "dayjs";
12
+ //#region src/hooks/useLatchedPopupPortalRoot.ts
13
+ var S = (e, t) => {
14
+ let n = h(e);
15
+ n.current = e;
16
+ let [r, i] = g(), a = m(() => {
17
+ if (!e) return;
18
+ let n = t?.();
19
+ return n?.nodeType === 1 ? n : void 0;
20
+ }, [e, t]);
21
+ p(() => {
22
+ e && i(a);
23
+ }, [e, a]);
24
+ let o = e ? a : r;
25
+ return {
26
+ portalRoot: o,
27
+ portalMountKey: o ? "custom-popup-container" : "default-popup-container",
28
+ handleExitComplete: f(() => {
29
+ n.current || i(void 0);
30
+ }, [])
31
+ };
32
+ }, C = {
33
+ footer: "_footer_h6lng_1",
34
+ today: "_today_h6lng_11"
35
+ }, w = ({ onClick: e }) => {
36
+ let { t: n } = t();
37
+ return /* @__PURE__ */ o("div", {
38
+ className: C.footer,
39
+ children: /* @__PURE__ */ o("button", {
40
+ type: "button",
41
+ className: C.today,
42
+ onClick: e,
43
+ children: n("datePicker.today")
44
+ })
45
+ });
46
+ }, T = (e, t) => {
47
+ switch (t) {
48
+ case "week": return e.startOf("isoWeek");
49
+ case "month": return e.startOf("month");
50
+ case "year": return e.startOf("year");
51
+ default: return e.startOf("day");
52
+ }
53
+ }, E = {
54
+ "bsy-date-picker": "_bsy-date-picker_legiv_1",
55
+ "bsy-date-picker__content": "_bsy-date-picker__content_legiv_33",
56
+ "bsy-date-picker__divider": "_bsy-date-picker__divider_legiv_43",
57
+ "bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_legiv_49"
58
+ }, D = d(() => import("./DatePickerPanel-HoxXteK0.js")), O = (d) => {
59
+ let { children: p, picker: h = "date", theme: g, getPopupContainer: C } = d, { locale: O } = t(), [k, A] = _(d, {
60
+ defaultValuePropName: "defaultValue",
61
+ valuePropName: "value",
62
+ trigger: "onChange",
63
+ defaultValue: x().locale(r(O)).startOf("day")
64
+ }), { isOpen: j, setIsOpen: M, refs: N, floatingStyles: P, getReferenceProps: F, getFloatingProps: I } = e(), L = f((e) => {
65
+ e && (A(T(e, h)), M(!1));
66
+ }, [
67
+ h,
68
+ A,
69
+ M
70
+ ]), R = f(() => {
71
+ L(x().locale(r(O)));
72
+ }, [L, O]), z = m(() => i(g), [g]), { portalRoot: B, portalMountKey: V, handleExitComplete: H } = S(j, C);
73
+ return u(p), /* @__PURE__ */ s(a, { children: [u(p) ? l(p, {
74
+ ...F(),
75
+ ref: N.setReference
76
+ }) : p, /* @__PURE__ */ o(b, {
77
+ root: B,
78
+ children: /* @__PURE__ */ o(v, {
79
+ onExitComplete: H,
80
+ children: j ? /* @__PURE__ */ o(y.div, {
81
+ ref: N.setFloating,
82
+ style: {
83
+ ...P,
84
+ ...z
85
+ },
86
+ ...I(),
87
+ "data-bsy-date-picker": !0,
88
+ className: E["bsy-date-picker"],
89
+ ...n,
90
+ children: /* @__PURE__ */ s("div", {
91
+ className: E["bsy-date-picker__content"],
92
+ children: [
93
+ /* @__PURE__ */ o(c, {
94
+ fallback: /* @__PURE__ */ o("div", {
95
+ className: E["bsy-date-picker__panel-loading"],
96
+ "aria-hidden": !0
97
+ }),
98
+ children: /* @__PURE__ */ o(D, {
99
+ picker: h,
100
+ value: k,
101
+ onChange: L
102
+ })
103
+ }),
104
+ /* @__PURE__ */ o("div", { className: E["bsy-date-picker__divider"] }),
105
+ /* @__PURE__ */ o(w, { onClick: R })
106
+ ]
107
+ })
108
+ }, "bsy-date-picker-panel") : null
109
+ })
110
+ }, V)] });
111
+ };
112
+ O.displayName = "BsyDatePicker";
113
+ //#endregion
114
+ export { O as t };
@@ -1,13 +1,14 @@
1
1
  import { t as e } from "../Icon/Icon-BQ3Whub2.js";
2
- import "../vendors/LocaleContext-CRlzP8UO.js";
3
- import { t } from "../vendors/useLocale-D9kAzQlB.js";
2
+ import "../vendors/LocaleContext-BJdHS0sH.js";
3
+ import { t } from "../vendors/useLocale-BTz4slNW.js";
4
+ import "./ensureDayjsPlugins-C3aqki6i.js";
4
5
  import { t as n } from "./pickerLocale-VqSP_iIm.js";
5
6
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
6
7
  import { useCallback as o, useEffect as s, useLayoutEffect as c, useMemo as l, useRef as u, useState as d } from "react";
7
8
  import { clsx as f } from "clsx";
8
9
  import { motion as p } from "motion/react";
9
- import { PickerPanel as m } from "@rc-component/picker";
10
- import h from "@rc-component/picker/es/generate/dayjs";
10
+ import m from "@rc-component/picker/es/generate/dayjs";
11
+ import { PickerPanel as h } from "@rc-component/picker";
11
12
  //#region src/components/DatePicker/DatePickerHeader/DatePickerHeader.tsx
12
13
  var g = (t) => {
13
14
  let { prefixCls: n, yearLabel: o, monthLabel: s, rangeLabel: c, isMonthPanel: l = !1, navType: u, prevLabel: d, nextLabel: f, switchToMonthLabel: m, onPrev: h, onNext: g, onYearClick: _, onMonthClick: v } = t, y = `${n}-header`, b = u === "month" ? `${y}-prev-btn` : `${y}-super-prev-btn`, x = u === "month" ? `${y}-next-btn` : `${y}-super-next-btn`, S = u === "month" ? "‹" : "«", C = u === "month" ? "›" : "»";
@@ -131,11 +132,11 @@ var g = (t) => {
131
132
  })
132
133
  })
133
134
  });
134
- }, T = { "date-picker-panel": "_date-picker-panel_3dzdg_1" }, E = {
135
+ }, T = { "date-picker-panel": "_date-picker-panel_1lgwq_2" }, E = {
135
136
  month: C,
136
137
  year: w
137
138
  }, D = ({ picker: e, value: r, onChange: f }) => {
138
- let { locale: p, t: _ } = t(), S = u(null), C = l(() => n(p), [p]), [w, D] = d(e), [O, k] = d(r ?? h.getNow());
139
+ let { locale: p, t: _ } = t(), S = u(null), C = l(() => n(p), [p]), [w, D] = d(e), [O, k] = d(r ?? m.getNow());
139
140
  c(() => {
140
141
  S.current?.querySelectorAll(`.${y}-cell[title]`).forEach((e) => {
141
142
  e.removeAttribute("title");
@@ -146,7 +147,7 @@ var g = (t) => {
146
147
  e,
147
148
  r
148
149
  ]), s(() => {
149
- D(e), k(r ?? h.getNow());
150
+ D(e), k(r ?? m.getNow());
150
151
  }, [e, r]);
151
152
  let A = o((e) => {
152
153
  e && !Array.isArray(e) && f(e);
@@ -155,16 +156,16 @@ var g = (t) => {
155
156
  }, []), M = o((e) => {
156
157
  k(e);
157
158
  }, []), N = l(() => {
158
- let e = h.getYear(O), t = h.getMonth(O) + 1, n = b(e);
159
+ let e = m.getYear(O), t = m.getMonth(O) + 1, n = b(e);
159
160
  return {
160
161
  year: v(_("datePicker.yearLabel"), { year: e }),
161
162
  month: v(_("datePicker.monthLabel"), { month: t }),
162
163
  range: x(n)
163
164
  };
164
165
  }, [O, _]), P = o(() => {
165
- k(w === "year" ? h.addYear(O, -20) : w === "month" ? h.addYear(O, -1) : h.addMonth(O, -1));
166
+ k(w === "year" ? m.addYear(O, -20) : w === "month" ? m.addYear(O, -1) : m.addMonth(O, -1));
166
167
  }, [w, O]), F = o(() => {
167
- k(w === "year" ? h.addYear(O, 20) : w === "month" ? h.addYear(O, 1) : h.addMonth(O, 1));
168
+ k(w === "year" ? m.addYear(O, 20) : w === "month" ? m.addYear(O, 1) : m.addMonth(O, 1));
168
169
  }, [w, O]), I = o(() => {
169
170
  if (e === "month") {
170
171
  D("year");
@@ -197,13 +198,13 @@ var g = (t) => {
197
198
  onNext: F,
198
199
  onYearClick: L,
199
200
  onMonthClick: I
200
- }), /* @__PURE__ */ i(m, {
201
+ }), /* @__PURE__ */ i(h, {
201
202
  prefixCls: y,
202
203
  picker: e,
203
204
  mode: w,
204
205
  value: r ?? null,
205
206
  pickerValue: O,
206
- generateConfig: h,
207
+ generateConfig: m,
207
208
  locale: C,
208
209
  components: E,
209
210
  hideHeader: !0,
@@ -8,9 +8,8 @@ import o from "dayjs/plugin/weekday";
8
8
  import "dayjs/locale/zh-cn";
9
9
  import "dayjs/locale/zh-tw";
10
10
  import "dayjs/locale/en";
11
+ import "@rc-component/picker/es/generate/dayjs";
11
12
  //#region src/components/DatePicker/utils/ensureDayjsPlugins.ts
12
- var s = !1, c = () => {
13
- s ||= (e.extend(a), e.extend(r), e.extend(t), e.extend(o), e.extend(n), e.extend(i), !0);
14
- };
13
+ var s = !1;
14
+ s ||= (e.extend(a), e.extend(r), e.extend(t), e.extend(o), e.extend(n), e.extend(i), !0);
15
15
  //#endregion
16
- export { c as t };
@@ -1,8 +1,8 @@
1
- import "../vendors/LocaleContext-CRlzP8UO.js";
2
- import "../vendors/useFloatingOverlay-uxlI1G-V.js";
3
- import "../vendors/useLocale-D9kAzQlB.js";
4
- import { t as e } from "./DatePicker-B2skjsiQ.js";
5
- import "./ensureDayjsPlugins-DZjJnZgo.js";
1
+ import "../vendors/LocaleContext-BJdHS0sH.js";
2
+ import "../vendors/useFloatingOverlay-3KB88hpZ.js";
3
+ import "../vendors/useLocale-BTz4slNW.js";
4
+ import { t as e } from "./DatePicker-B6ZFxTt6.js";
5
+ import "./ensureDayjsPlugins-C3aqki6i.js";
6
6
  import "./pickerLocale-VqSP_iIm.js";
7
7
  import "./style-DZaSSoNs.js";
8
8
  export { e as default };
@@ -1,6 +1,6 @@
1
- import { t as e } from "../vendors/useLocale-D9kAzQlB.js";
2
- import { n as t } from "../vendors/animations-BmT0HT5q.js";
3
- import { t as n } from "../Select/SelectInputSearch-GHYAmQ3A.js";
1
+ import { t as e } from "../vendors/useLocale-BTz4slNW.js";
2
+ import { n as t } from "../vendors/animations-BeI8JZp1.js";
3
+ import { t as n } from "../Select/SelectInputSearch-DXPTGSc2.js";
4
4
  import { t as r } from "../NotFoundContent/NotFoundContent-7xV-zOG2.js";
5
5
  import { t as i } from "../vendors/useFloatingPortal-DsEtsAGW.js";
6
6
  import { isEmpty as a, isNumber as o } from "lodash-es";
@@ -1,8 +1,8 @@
1
1
  import "../Icon/Icon-BQ3Whub2.js";
2
- import "../vendors/LocaleContext-CRlzP8UO.js";
3
- import "../vendors/useLocale-D9kAzQlB.js";
4
- import "../Select/SelectInputSearch-GHYAmQ3A.js";
2
+ import "../vendors/LocaleContext-BJdHS0sH.js";
3
+ import "../vendors/useLocale-BTz4slNW.js";
4
+ import "../Select/SelectInputSearch-DXPTGSc2.js";
5
5
  import "../NotFoundContent/NotFoundContent-7xV-zOG2.js";
6
6
  import "../vendors/useFloatingPortal-DsEtsAGW.js";
7
- import { t as e } from "./DropDown-m3HT_eex.js";
7
+ import { t as e } from "./DropDown-C5H9UObs.js";
8
8
  export { e as default };
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "../Icon/Icon-BQ3Whub2.js";
2
2
  import { t } from "../Modal/Modal-CrK8gFOn.js";
3
- import { t as n } from "../ColorPicker/ColorPicker-BNPxmfw_.js";
4
- import { t as r } from "../vendors/useLocale-D9kAzQlB.js";
3
+ import { t as n } from "../ColorPicker/ColorPicker-By-Y8Tyz.js";
4
+ import { t as r } from "../vendors/useLocale-BTz4slNW.js";
5
5
  import { t as i } from "../CheckBox/CheckBox-DIunYcfS.js";
6
- import { t as a } from "../DropDown/DropDown-m3HT_eex.js";
6
+ import { t as a } from "../DropDown/DropDown-C5H9UObs.js";
7
7
  import { FONT_SIZES as o } from "./constants/index.js";
8
8
  import { AlignCenterOutlined as s, AlignLeftOutlined as c, AlignRightOutlined as l } from "@ant-design/icons";
9
9
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -1,15 +1,15 @@
1
1
  import "../../../Icon/Icon-BQ3Whub2.js";
2
- import "../../../vendors/LocaleContext-CRlzP8UO.js";
2
+ import "../../../vendors/LocaleContext-BJdHS0sH.js";
3
3
  import "../../../Modal/Modal-CrK8gFOn.js";
4
- import "../../../ColorPicker/ColorPicker-BNPxmfw_.js";
5
- import "../../../vendors/useFloatingOverlay-uxlI1G-V.js";
6
- import "../../../vendors/useLocale-D9kAzQlB.js";
4
+ import "../../../ColorPicker/ColorPicker-By-Y8Tyz.js";
5
+ import "../../../vendors/useFloatingOverlay-3KB88hpZ.js";
6
+ import "../../../vendors/useLocale-BTz4slNW.js";
7
7
  import "../../../vendors/color-BeQo449h.js";
8
- import "../../../Select/SelectInputSearch-GHYAmQ3A.js";
8
+ import "../../../Select/SelectInputSearch-DXPTGSc2.js";
9
9
  import "../../../CheckBox/CheckBox-CkVe5Boq.js";
10
10
  import "../../../CheckBox/CheckBox-DIunYcfS.js";
11
11
  import "../../../NotFoundContent/NotFoundContent-7xV-zOG2.js";
12
12
  import "../../../vendors/useFloatingPortal-DsEtsAGW.js";
13
- import "../../../DropDown/DropDown-m3HT_eex.js";
14
- import { a as e, i as t, n, r, t as i } from "../../Buttons-BB3xV8ku.js";
13
+ import "../../../DropDown/DropDown-C5H9UObs.js";
14
+ import { a as e, i as t, n, r, t as i } from "../../Buttons-B8_yDqF5.js";
15
15
  export { i as default, n as getToolbarButton, r as listRegisteredToolbarButtons, t as registerToolbarButton, e as unregisterToolbarButton };
@@ -1,17 +1,17 @@
1
1
  import "../Icon/Icon-BQ3Whub2.js";
2
- import "../vendors/LocaleContext-CRlzP8UO.js";
2
+ import "../vendors/LocaleContext-BJdHS0sH.js";
3
3
  import "../Modal/Modal-CrK8gFOn.js";
4
- import "../ColorPicker/ColorPicker-BNPxmfw_.js";
5
- import "../vendors/useFloatingOverlay-uxlI1G-V.js";
6
- import "../vendors/useLocale-D9kAzQlB.js";
4
+ import "../ColorPicker/ColorPicker-By-Y8Tyz.js";
5
+ import "../vendors/useFloatingOverlay-3KB88hpZ.js";
6
+ import "../vendors/useLocale-BTz4slNW.js";
7
7
  import "../vendors/color-BeQo449h.js";
8
- import "../Select/SelectInputSearch-GHYAmQ3A.js";
8
+ import "../Select/SelectInputSearch-DXPTGSc2.js";
9
9
  import "../CheckBox/CheckBox-CkVe5Boq.js";
10
10
  import "../CheckBox/CheckBox-DIunYcfS.js";
11
11
  import "../NotFoundContent/NotFoundContent-7xV-zOG2.js";
12
12
  import "../vendors/useFloatingPortal-DsEtsAGW.js";
13
- import "../DropDown/DropDown-m3HT_eex.js";
14
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s } from "./Buttons-BB3xV8ku.js";
13
+ import "../DropDown/DropDown-C5H9UObs.js";
14
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s } from "./Buttons-B8_yDqF5.js";
15
15
  import { DEFAULT_BACKGROUND_COLOR as c, DEFAULT_FONT_COLOR as l, DEFAULT_FONT_SIZE as u } from "./constants/index.js";
16
16
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
17
17
  import m, { useCallback as h, useEffect as g, useMemo as _, useRef as v, useState as y } from "react";
@@ -0,0 +1,15 @@
1
+ import "../../Icon/Icon-BQ3Whub2.js";
2
+ import "../../vendors/LocaleContext-BJdHS0sH.js";
3
+ import "../../vendors/useLocale-BTz4slNW.js";
4
+ import "../../Tooltip/Tooltip-DW_XP13m.js";
5
+ import "../../Select/SelectInputSearch-DXPTGSc2.js";
6
+ import "../../NotFoundContent/NotFoundContent-7xV-zOG2.js";
7
+ import "../../vendors/useFloatingPortal-DsEtsAGW.js";
8
+ import "../../DropDown/DropDown-C5H9UObs.js";
9
+ import "../constants-_vMvDXFh.js";
10
+ import "../GanttHighlightContext-AIpN3-af.js";
11
+ import "../timelineViewConfig-DshzoBp7.js";
12
+ import "../collapseKeys-BWMH5k37.js";
13
+ import { t as e } from "../GanttChart-DpmbH0GI.js";
14
+ import "../GanttToolBar-fCAi-4zZ.js";
15
+ export { e as default };