@baishuyun/ui-base 6.3.2 → 6.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Amap/AmapProvider/index.js +3 -3
- package/dist/Amap/{AmapProvider-CTn2CH8s.js → AmapProvider-By5tTMAj.js} +1 -1
- package/dist/Amap/index.js +3 -3
- package/dist/Calendar/{AllDaySection-DS0Frx1p.js → AllDaySection-DwQz-p7a.js} +3 -3
- package/dist/Calendar/{Calendar-BIjk9zys.js → Calendar-CuBzeTkR.js} +84 -95
- package/dist/Calendar/{CurrentTimeIndicator-DaIywtIA.js → CurrentTimeIndicator-CUeblc9r.js} +2 -2
- package/dist/Calendar/{EventCard-D_VeOVDQ.js → EventCard-DRJrT_AG.js} +2 -2
- package/dist/Calendar/{TimeAxis-gKb8dTwY.js → TimeAxis-cK2_3FeM.js} +1 -1
- package/dist/Calendar/{TimeGrid-D8Du5vFP.js → TimeGrid-B8lvUb1W.js} +2 -2
- package/dist/Calendar/index.js +15 -16
- package/dist/Calendar/{layout-DvWx_7gn.js → layout-CaPxiRd-.js} +94 -96
- package/dist/Calendar/subcomponents/AllDaySection/index.js +8 -0
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +5 -0
- package/dist/Calendar/subcomponents/EventCard/index.js +6 -0
- package/dist/Calendar/subcomponents/TimeAxis/index.js +4 -0
- package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -0
- package/dist/Calendar/{style-hCRKx3m1.js → theme-BzNDRi0U.js} +19 -3
- package/dist/Calendar/utils/index.js +37 -41
- package/dist/Calendar/utils/layout/index.js +2 -2
- package/dist/Calendar/utils/theme/index.js +2 -0
- package/dist/ColorPicker/{ColorPicker-BNPxmfw_.js → ColorPicker-By-Y8Tyz.js} +3 -3
- package/dist/ColorPicker/index.js +4 -4
- package/dist/ConfigProvider/index.js +2 -2
- package/dist/DatePicker/DatePicker-B6ZFxTt6.js +114 -0
- package/dist/DatePicker/{DatePickerPanel-BaVC1tq2.js → DatePickerPanel-HoxXteK0.js} +13 -12
- package/dist/DatePicker/{ensureDayjsPlugins-DZjJnZgo.js → ensureDayjsPlugins-C3aqki6i.js} +3 -4
- package/dist/DatePicker/index.js +5 -5
- package/dist/DropDown/{DropDown-m3HT_eex.js → DropDown-C5H9UObs.js} +3 -3
- package/dist/DropDown/index.js +4 -4
- package/dist/Editor/{Buttons-BB3xV8ku.js → Buttons-B8_yDqF5.js} +3 -3
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +7 -7
- package/dist/Editor/index.js +7 -7
- package/dist/Gantt/GanttChart/index.js +15 -0
- package/dist/Gantt/GanttChart-DpmbH0GI.js +1965 -0
- package/dist/Gantt/GanttHighlightContext-AIpN3-af.js +12 -0
- package/dist/Gantt/GanttTable/index.js +10 -0
- package/dist/Gantt/GanttTable-DSTq5XmX.js +83 -0
- package/dist/Gantt/GanttToolBar/index.js +11 -0
- package/dist/Gantt/GanttToolBar-fCAi-4zZ.js +91 -0
- package/dist/Gantt/collapseKeys-BWMH5k37.js +156 -0
- package/dist/Gantt/columnResize-By_1E48E.js +46 -0
- package/dist/Gantt/constants-_vMvDXFh.js +40 -0
- package/dist/Gantt/highlightTarget-DmzCIiQb.js +25 -0
- package/dist/Gantt/index.js +374 -0
- package/dist/Gantt/timelineViewConfig-DshzoBp7.js +118 -0
- package/dist/Gantt/utils/index.js +6 -0
- package/dist/Select/{Select-Dz_xr4my.js → Select-Gkywa_sm.js} +140 -134
- package/dist/Select/{SelectInputSearch-GHYAmQ3A.js → SelectInputSearch-DXPTGSc2.js} +1 -1
- package/dist/Select/index.js +4 -4
- package/dist/Table/Table-DVTq4n2V.js +544 -0
- package/dist/Table/constants-CKqc9Os_.js +25 -0
- package/dist/Table/hooks/index.js +2 -0
- package/dist/Table/hooks-CJ2CnSep.js +108 -0
- package/dist/Table/index.js +7 -0
- package/dist/Table/processRowspan-BCzfI5un.js +144 -0
- package/dist/Table/utils/index.js +2 -0
- package/dist/Tabs/{Tabs-CPRNkfMo.js → Tabs-DVQcB3YG.js} +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Tooltip/Tooltip-DW_XP13m.js +171 -0
- package/dist/Tooltip/index.js +1 -1
- package/dist/animations/index.d.ts +2 -2
- package/dist/components/Amap/__tests__/helpers.d.ts +6 -0
- package/dist/components/Calendar/__tests__/helpers/testFormatMessage.d.ts +1 -1
- package/dist/components/Calendar/context/CalendarContext.d.ts +2 -1
- package/dist/components/Calendar/index.d.ts +2 -2
- package/dist/components/Calendar/{shared → subcomponents}/AllDaySection/AllDaySection.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/DayView/DayView.d.ts +3 -0
- package/dist/components/Calendar/{shared → subcomponents}/EventCard/EventCard.d.ts +1 -1
- package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthCell/MonthCellPopover/MonthCellPopover.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/MonthView/MonthView.d.ts +3 -0
- package/dist/components/Calendar/{panels/WeekPanel → subcomponents}/WeekAllDaySection/WeekAllDaySection.d.ts +1 -1
- package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/WeekEventLayer/MoreButton.d.ts +1 -1
- package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/WeekEventLayer/WeekEventLayer.d.ts +1 -1
- package/dist/components/Calendar/subcomponents/WeekView/WeekView.d.ts +3 -0
- package/dist/components/Calendar/utils/dateUtils.d.ts +2 -1
- package/dist/components/Calendar/utils/eventUtils.d.ts +1 -1
- package/dist/components/Calendar/utils/layout/dayLayoutAlgorithm.d.ts +1 -1
- package/dist/components/Calendar/utils/localeKey.d.ts +2 -0
- package/dist/components/Calendar/utils/normalizeData.d.ts +1 -1
- package/dist/components/Calendar/{style → utils/theme}/index.d.ts +1 -0
- package/dist/components/Calendar/{adapters → utils/theme}/platformTheme.d.ts +1 -1
- package/dist/components/Calendar/{style → utils/theme}/resolveCalendarThemeVars.d.ts +1 -1
- package/dist/components/Calendar/{style → utils/theme}/resolveSubcomponentThemes.d.ts +3 -3
- package/dist/components/Calendar/utils/weekTimedLayout.d.ts +1 -1
- package/dist/components/DatePicker/__tests__/DatePicker.getPopupContainer.test.d.ts +1 -0
- package/dist/components/DatePicker/interface.d.ts +5 -0
- package/dist/components/Gantt/Gantt.d.ts +11 -0
- package/dist/components/Gantt/GanttChart/GanttBarTooltip/GanttBarTooltip.d.ts +3 -0
- package/dist/components/Gantt/GanttChart/GanttChart.d.ts +8 -0
- package/dist/components/Gantt/GanttChart/GanttChartCanvas.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/GanttChartCanvasBackground.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/GanttInteractionContext.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/GanttSummaryBar/GanttSummaryBar.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/GanttTaskBar/GanttTaskBar.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/GanttTaskBar/useTaskBarPointer.d.ts +9 -0
- package/dist/components/Gantt/GanttChart/GanttTimelineContext.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/GanttTimelineHeader/GanttTimelineHeader.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/OffscreenTaskIndicators/OffscreenTaskIndicators.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/TodayIndicator/TodayIndicator.d.ts +3 -0
- package/dist/components/Gantt/GanttChart/hooks/__tests__/timelineFocus.contract.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttColumnVirtual.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/hooks/useBarTooltipHover.d.ts +19 -0
- package/dist/components/Gantt/GanttChart/hooks/useEdgeScroll.d.ts +7 -0
- package/dist/components/Gantt/GanttChart/hooks/useGanttColumnVirtual.d.ts +21 -0
- package/dist/components/Gantt/GanttChart/hooks/useGanttDrag.d.ts +15 -0
- package/dist/components/Gantt/GanttChart/hooks/useGanttRowVirtualScroll.d.ts +12 -0
- package/dist/components/Gantt/GanttChart/hooks/useGanttScrollbars.d.ts +2 -0
- package/dist/components/Gantt/GanttChart/hooks/useNormalizedItems.d.ts +11 -0
- package/dist/components/Gantt/GanttChart/hooks/useOffscreenIndicators.d.ts +11 -0
- package/dist/components/Gantt/GanttChart/hooks/useRowHoverHighlight.d.ts +10 -0
- package/dist/components/Gantt/GanttChart/hooks/useTimelineViewportController.d.ts +24 -0
- package/dist/components/Gantt/GanttChart/hooks/useTodayMs.d.ts +4 -0
- package/dist/components/Gantt/GanttChart/index.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/dateRangeNormalizer.subday.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.quarterMonth.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.subday.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.quarterMonth.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.subday.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/quarterMonthScale.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/subdayScale.contract.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineViewConfig.test.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/buildSummaryBarTooltipContent.d.ts +6 -0
- package/dist/components/Gantt/GanttChart/utils/constants.d.ts +93 -0
- package/dist/components/Gantt/GanttChart/utils/dateRangeNormalizer.d.ts +18 -0
- package/dist/components/Gantt/GanttChart/utils/dragEngine.d.ts +60 -0
- package/dist/components/Gantt/GanttChart/utils/headerBuilder.d.ts +14 -0
- package/dist/components/Gantt/GanttChart/utils/quarterMonthScale.d.ts +8 -0
- package/dist/components/Gantt/GanttChart/utils/taskBarUtils.d.ts +3 -0
- package/dist/components/Gantt/GanttChart/utils/timeScale.d.ts +35 -0
- package/dist/components/Gantt/GanttChart/utils/timelineFocus.d.ts +42 -0
- package/dist/components/Gantt/GanttChart/utils/timelineMarkers.d.ts +1 -0
- package/dist/components/Gantt/GanttChart/utils/timelineViewConfig.d.ts +106 -0
- package/dist/components/Gantt/GanttChart/utils/timezoneUtils.d.ts +11 -0
- package/dist/components/Gantt/GanttHighlightContext.d.ts +3 -0
- package/dist/components/Gantt/GanttResizeIndicator.d.ts +3 -0
- package/dist/components/Gantt/GanttTable/GanttTable.d.ts +7 -0
- package/dist/components/Gantt/GanttTable/hooks/useGanttTableHighlightDomSync.d.ts +2 -0
- package/dist/components/Gantt/GanttTable/hooks/useGanttTableLinkedScroll.d.ts +7 -0
- package/dist/components/Gantt/GanttTable/index.d.ts +1 -0
- package/dist/components/Gantt/GanttTable/utils/mapGanttColumns.d.ts +13 -0
- package/dist/components/Gantt/GanttToolBar/GanttToolBar.d.ts +3 -0
- package/dist/components/Gantt/GanttToolBar/index.d.ts +1 -0
- package/dist/components/Gantt/__tests__/Gantt.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/Gantt.grouped.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/GanttChart.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/GanttSummaryBar.tooltip.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/GanttToolBar.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/filterItemsByCollapse.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/helpers/ganttDomSetup.d.ts +1 -0
- package/dist/components/Gantt/__tests__/helpers/ganttTestFixtures.d.ts +7 -0
- package/dist/components/Gantt/__tests__/helpers/ganttTestMocks.d.ts +8 -0
- package/dist/components/Gantt/__tests__/helpers/renderWithLocale.d.ts +3 -0
- package/dist/components/Gantt/__tests__/helpers/testFormatMessage.d.ts +2 -0
- package/dist/components/Gantt/__tests__/interface.contract.types.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/timezoneUtils.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/useBarTooltipHover.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/useGanttHighlight.test.d.ts +1 -0
- package/dist/components/Gantt/__tests__/useTaskBarPointer.test.d.ts +1 -0
- package/dist/components/Gantt/hooks/useGanttCollapseState.d.ts +6 -0
- package/dist/components/Gantt/hooks/useGanttHighlight.d.ts +10 -0
- package/dist/components/Gantt/hooks/useGanttLayout.d.ts +7 -0
- package/dist/components/Gantt/hooks/useLinkedVerticalScroll.d.ts +6 -0
- package/dist/components/Gantt/index.d.ts +9 -0
- package/dist/components/Gantt/interface.d.ts +140 -0
- package/dist/components/Gantt/internal/GanttLayout.d.ts +8 -0
- package/dist/components/Gantt/internal/GanttTableShell.d.ts +3 -0
- package/dist/components/Gantt/types.internal.d.ts +313 -0
- package/dist/components/Gantt/utils/collapseKeys.d.ts +4 -0
- package/dist/components/Gantt/utils/columnResize.d.ts +19 -0
- package/dist/components/Gantt/utils/constants.d.ts +4 -0
- package/dist/components/Gantt/utils/filterItemsByCollapse.d.ts +9 -0
- package/dist/components/Gantt/utils/highlightTarget.d.ts +13 -0
- package/dist/components/Gantt/utils/index.d.ts +8 -0
- package/dist/components/Gantt/utils/localeKey.d.ts +2 -0
- package/dist/components/Gantt/utils/tableWidthStorage.d.ts +3 -0
- package/dist/components/Select/__tests__/Select.getPopupContainer.test.d.ts +1 -0
- package/dist/components/Select/interface.d.ts +4 -0
- package/dist/components/Table/Table.d.ts +4 -0
- package/dist/components/Table/__tests__/HeaderCell.test.d.ts +1 -0
- package/dist/components/Table/__tests__/TableBody.test.d.ts +1 -0
- package/dist/components/Table/__tests__/processRowspan.test.d.ts +1 -0
- package/dist/components/Table/components/HeaderCell.d.ts +16 -0
- package/dist/components/Table/components/TableBody.d.ts +45 -0
- package/dist/components/Table/components/TableFooter.d.ts +18 -0
- package/dist/components/Table/components/TableHeader.d.ts +14 -0
- package/dist/components/Table/constants.d.ts +29 -0
- package/dist/components/Table/hooks/index.d.ts +2 -0
- package/dist/components/Table/hooks/useColumnResize.d.ts +11 -0
- package/dist/components/Table/hooks/useTableVirtual.d.ts +19 -0
- package/dist/components/Table/index.d.ts +9 -0
- package/dist/components/Table/interface.d.ts +114 -0
- package/dist/components/Table/utils/flattenColumns.d.ts +17 -0
- package/dist/components/Table/utils/index.d.ts +3 -0
- package/dist/components/Table/utils/processRowspan.d.ts +16 -0
- package/dist/components/Table/utils/tableUtils.d.ts +22 -0
- package/dist/components/Tooltip/Tooltip.type.d.ts +2 -0
- package/dist/components/index.d.ts +4 -2
- package/dist/hooks/useLatchedPopupPortalRoot.d.ts +11 -0
- package/dist/index.js +24 -23
- package/dist/locale/lang/en-US.json.d.ts +63 -0
- package/dist/locale/lang/zh-CN.json.d.ts +63 -0
- package/dist/locale/lang/zh-TW.json.d.ts +63 -0
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-DCm-93oJ.js → ConfigProvider-BRfJ7gWc.js} +123 -1
- package/dist/vendors/{LocaleContext-CRlzP8UO.js → LocaleContext-BJdHS0sH.js} +61 -0
- package/dist/vendors/{animations-BmT0HT5q.js → animations-BeI8JZp1.js} +7 -3
- package/dist/vendors/{useFloatingOverlay-uxlI1G-V.js → useFloatingOverlay-3KB88hpZ.js} +1 -0
- package/dist/vendors/{useLocale-D9kAzQlB.js → useLocale-BTz4slNW.js} +1 -1
- package/dist/vitest-matchers.d.ts +1 -0
- package/package.json +3 -2
- package/dist/Calendar/adapters/index.js +0 -2
- package/dist/Calendar/adapters-zYR7CgzD.js +0 -20
- package/dist/Calendar/shared/AllDaySection/index.js +0 -8
- package/dist/Calendar/shared/CurrentTimeIndicator/index.js +0 -5
- package/dist/Calendar/shared/EventCard/index.js +0 -6
- package/dist/Calendar/shared/TimeAxis/index.js +0 -4
- package/dist/Calendar/shared/TimeGrid/index.js +0 -4
- package/dist/Calendar/style/index.js +0 -2
- package/dist/DatePicker/DatePicker-B2skjsiQ.js +0 -91
- package/dist/Tooltip/Tooltip-RkD8fs0B.js +0 -169
- package/dist/components/Calendar/adapters/index.d.ts +0 -1
- package/dist/components/Calendar/panels/DayPanel/DayPanel.d.ts +0 -3
- package/dist/components/Calendar/panels/MonthPanel/MonthPanel.d.ts +0 -3
- package/dist/components/Calendar/panels/WeekPanel/WeekPanel.d.ts +0 -3
- /package/dist/components/Calendar/{shared → subcomponents}/AllDaySection/index.d.ts +0 -0
- /package/dist/components/Calendar/{Header → subcomponents}/CalendarHeader/CalendarHeader.d.ts +0 -0
- /package/dist/components/Calendar/{Header → subcomponents}/CalendarHeaderLeft/CalendarHeaderLeft.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/CurrentTimeIndicator/CurrentTimeIndicator.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/CurrentTimeIndicator/index.d.ts +0 -0
- /package/dist/components/Calendar/{Header → subcomponents}/DateDisplay/DateDisplay.d.ts +0 -0
- /package/dist/components/Calendar/{Header → subcomponents}/DateDisplay/__tests__/DateDisplay.weekPicker.test.d.ts +0 -0
- /package/dist/components/Calendar/{panels/DayPanel → subcomponents/DayView}/__tests__/CalendarDay.dayFilter.test.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/EventCard/__tests__/EventCard.tooltip.test.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/EventCard/index.d.ts +0 -0
- /package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthCell/MonthCell.d.ts +0 -0
- /package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthHeader/MonthHeader.d.ts +0 -0
- /package/dist/components/Calendar/{Header → subcomponents}/NavButton/NavButton.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/TimeAxis/TimeAxis.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/TimeAxis/index.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/TimeGrid/TimeGrid.d.ts +0 -0
- /package/dist/components/Calendar/{shared → subcomponents}/TimeGrid/index.d.ts +0 -0
- /package/dist/components/Calendar/{Header → subcomponents}/TodayButton/TodayButton.d.ts +0 -0
- /package/dist/components/Calendar/{panels/WeekPanel → subcomponents}/WeekHeader/WeekHeader.d.ts +0 -0
- /package/dist/components/Calendar/{internalTypes.d.ts → types.internal.d.ts} +0 -0
- /package/dist/components/Calendar/{adapters → utils/theme}/__tests__/platformTheme.test.d.ts +0 -0
- /package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveCalendarThemeVars.test.d.ts +0 -0
- /package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveScheduleColorVars.test.d.ts +0 -0
- /package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveSubcomponentThemes.test.d.ts +0 -0
- /package/dist/components/Calendar/{style → utils/theme}/resolveScheduleColorVars.d.ts +0 -0
|
@@ -0,0 +1,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-
|
|
3
|
-
import { t } from "../vendors/useLocale-
|
|
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
|
|
10
|
-
import h from "@rc-component/picker
|
|
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-
|
|
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 ??
|
|
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 ??
|
|
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 =
|
|
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" ?
|
|
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" ?
|
|
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(
|
|
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:
|
|
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
|
|
13
|
-
|
|
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 };
|
package/dist/DatePicker/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "../vendors/LocaleContext-
|
|
2
|
-
import "../vendors/useFloatingOverlay-
|
|
3
|
-
import "../vendors/useLocale-
|
|
4
|
-
import { t as e } from "./DatePicker-
|
|
5
|
-
import "./ensureDayjsPlugins-
|
|
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-
|
|
2
|
-
import { n as t } from "../vendors/animations-
|
|
3
|
-
import { t as n } from "../Select/SelectInputSearch-
|
|
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";
|
package/dist/DropDown/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../Icon/Icon-BQ3Whub2.js";
|
|
2
|
-
import "../vendors/LocaleContext-
|
|
3
|
-
import "../vendors/useLocale-
|
|
4
|
-
import "../Select/SelectInputSearch-
|
|
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-
|
|
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-
|
|
4
|
-
import { t as r } from "../vendors/useLocale-
|
|
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-
|
|
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-
|
|
2
|
+
import "../../../vendors/LocaleContext-BJdHS0sH.js";
|
|
3
3
|
import "../../../Modal/Modal-CrK8gFOn.js";
|
|
4
|
-
import "../../../ColorPicker/ColorPicker-
|
|
5
|
-
import "../../../vendors/useFloatingOverlay-
|
|
6
|
-
import "../../../vendors/useLocale-
|
|
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-
|
|
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-
|
|
14
|
-
import { a as e, i as t, n, r, t as i } from "../../Buttons-
|
|
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 };
|
package/dist/Editor/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import "../Icon/Icon-BQ3Whub2.js";
|
|
2
|
-
import "../vendors/LocaleContext-
|
|
2
|
+
import "../vendors/LocaleContext-BJdHS0sH.js";
|
|
3
3
|
import "../Modal/Modal-CrK8gFOn.js";
|
|
4
|
-
import "../ColorPicker/ColorPicker-
|
|
5
|
-
import "../vendors/useFloatingOverlay-
|
|
6
|
-
import "../vendors/useLocale-
|
|
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-
|
|
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-
|
|
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-
|
|
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 };
|