@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,12 @@
|
|
|
1
|
+
import { createContext as e } from "use-context-selector";
|
|
2
|
+
//#region src/components/Gantt/GanttHighlightContext.ts
|
|
3
|
+
var t = e({
|
|
4
|
+
getHighlightTarget: () => null,
|
|
5
|
+
setHighlightTarget: () => {},
|
|
6
|
+
setTableHighlightTarget: () => {},
|
|
7
|
+
subscribeHighlight: () => () => {},
|
|
8
|
+
notifyScrollActivity: () => {},
|
|
9
|
+
getIsScrollActive: () => !1
|
|
10
|
+
});
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import "../../vendors/LocaleContext-BJdHS0sH.js";
|
|
2
|
+
import "../../vendors/useLocale-BTz4slNW.js";
|
|
3
|
+
import "../../Table/processRowspan-BCzfI5un.js";
|
|
4
|
+
import "../../Table/Table-DVTq4n2V.js";
|
|
5
|
+
import "../../Table/hooks-CJ2CnSep.js";
|
|
6
|
+
import "../constants-_vMvDXFh.js";
|
|
7
|
+
import "../columnResize-By_1E48E.js";
|
|
8
|
+
import { t as e } from "../GanttTable-DSTq5XmX.js";
|
|
9
|
+
import "../GanttHighlightContext-AIpN3-af.js";
|
|
10
|
+
export { e as default };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { t as e } from "../Table/Table-DVTq4n2V.js";
|
|
2
|
+
import { l as t } from "./constants-_vMvDXFh.js";
|
|
3
|
+
import { r as n } from "./columnResize-By_1E48E.js";
|
|
4
|
+
import { t as r } from "./GanttHighlightContext-AIpN3-af.js";
|
|
5
|
+
import { r as i } from "./highlightTarget-DmzCIiQb.js";
|
|
6
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
+
import { useCallback as o, useMemo as s } from "react";
|
|
8
|
+
import { useContextSelector as c } from "use-context-selector";
|
|
9
|
+
//#region src/components/Gantt/GanttTable/utils/mapGanttColumns.ts
|
|
10
|
+
var l = (e) => ({
|
|
11
|
+
key: e.key,
|
|
12
|
+
title: e.title ?? "",
|
|
13
|
+
width: e.width ?? 120,
|
|
14
|
+
align: e.align,
|
|
15
|
+
className: e.className,
|
|
16
|
+
fixed: e.fixed,
|
|
17
|
+
render: (t, n, r) => {
|
|
18
|
+
let i = t ?? (e.dataIndex !== null && e.dataIndex !== void 0 ? n?.[e.dataIndex] : n?.label);
|
|
19
|
+
return typeof e.render == "function" ? e.render({
|
|
20
|
+
item: n,
|
|
21
|
+
rowIndex: r,
|
|
22
|
+
column: e,
|
|
23
|
+
value: i
|
|
24
|
+
}) : i ?? "";
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
function u(e = []) {
|
|
28
|
+
return !Array.isArray(e) || e.length === 0 ? [{
|
|
29
|
+
key: "label",
|
|
30
|
+
title: "",
|
|
31
|
+
width: 200,
|
|
32
|
+
render: (e, t) => t?.label ?? ""
|
|
33
|
+
}] : e.map((e) => Array.isArray(e.children) && e.children.length > 0 ? {
|
|
34
|
+
key: e.key,
|
|
35
|
+
title: e.title ?? "",
|
|
36
|
+
width: e.width ?? 120,
|
|
37
|
+
align: e.align,
|
|
38
|
+
fixed: e.fixed,
|
|
39
|
+
children: e.children.map((e) => l(e)),
|
|
40
|
+
render: () => null
|
|
41
|
+
} : l(e));
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region src/components/Gantt/GanttTable/GanttTable.tsx
|
|
45
|
+
var d = ({ data: l = [], columns: d = [], onRowClick: f, rowHeight: p = 34 }) => {
|
|
46
|
+
let m = c(r, (e) => e.setTableHighlightTarget), { columns: h, resizable: g, disabledResizeColumns: _, onColumnResizeEnd: v } = n(s(() => u(d), [d])), y = o((e) => {
|
|
47
|
+
let t = i(e);
|
|
48
|
+
t && m?.(t);
|
|
49
|
+
}, [m]), b = o(() => {
|
|
50
|
+
m?.(null);
|
|
51
|
+
}, [m]);
|
|
52
|
+
return /* @__PURE__ */ a(e, {
|
|
53
|
+
columns: h,
|
|
54
|
+
dataSource: l,
|
|
55
|
+
rowKey: "id",
|
|
56
|
+
rowHeightStyle: "low",
|
|
57
|
+
bordered: !1,
|
|
58
|
+
hasFooter: !1,
|
|
59
|
+
resizable: g,
|
|
60
|
+
disabledResizeColumns: _,
|
|
61
|
+
onColumnResizeEnd: v,
|
|
62
|
+
scroll: { y: "100%" },
|
|
63
|
+
estimateSize: () => p,
|
|
64
|
+
headerRowSpan: t,
|
|
65
|
+
onRowClick: o((e, t, n) => {
|
|
66
|
+
f?.(e, t, n);
|
|
67
|
+
}, [f]),
|
|
68
|
+
onRow: o((e, t, n) => {
|
|
69
|
+
let r = i(e);
|
|
70
|
+
return {
|
|
71
|
+
...n,
|
|
72
|
+
"data-highlight-id": r?.id || "",
|
|
73
|
+
"data-highlight-type": r?.type || "",
|
|
74
|
+
onMouseEnter: () => y(e),
|
|
75
|
+
onMouseLeave: b
|
|
76
|
+
};
|
|
77
|
+
}, [y, b]),
|
|
78
|
+
emptyText: " "
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
d.displayName = "GanttTable";
|
|
82
|
+
//#endregion
|
|
83
|
+
export { d as t };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import "../../Icon/Icon-BQ3Whub2.js";
|
|
2
|
+
import "../../vendors/LocaleContext-BJdHS0sH.js";
|
|
3
|
+
import "../../vendors/useLocale-BTz4slNW.js";
|
|
4
|
+
import "../../Select/SelectInputSearch-DXPTGSc2.js";
|
|
5
|
+
import "../../NotFoundContent/NotFoundContent-7xV-zOG2.js";
|
|
6
|
+
import "../../vendors/useFloatingPortal-DsEtsAGW.js";
|
|
7
|
+
import "../../DropDown/DropDown-C5H9UObs.js";
|
|
8
|
+
import "../constants-_vMvDXFh.js";
|
|
9
|
+
import "../timelineViewConfig-DshzoBp7.js";
|
|
10
|
+
import { t as e } from "../GanttToolBar-fCAi-4zZ.js";
|
|
11
|
+
export { e as default };
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { t as e } from "../vendors/useLocale-BTz4slNW.js";
|
|
2
|
+
import { t } from "../DropDown/DropDown-C5H9UObs.js";
|
|
3
|
+
import { l as n } from "./timelineViewConfig-DshzoBp7.js";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { useCallback as a, useMemo as o, useRef as s } from "react";
|
|
6
|
+
//#region src/components/Gantt/utils/localeKey.ts
|
|
7
|
+
var c = (e) => e.startsWith("gantt.") ? e : `gantt.${e}`, l = ".bsy-form-view-data-manager", u = {
|
|
8
|
+
oneMinute: "mode.oneMinute",
|
|
9
|
+
tenMinute: "mode.tenMinute",
|
|
10
|
+
halfHour: "mode.halfHour",
|
|
11
|
+
hour: "mode.hour",
|
|
12
|
+
sixHour: "mode.sixHour",
|
|
13
|
+
halfDay: "mode.halfDay",
|
|
14
|
+
day: "mode.day",
|
|
15
|
+
week: "mode.week",
|
|
16
|
+
month: "mode.month",
|
|
17
|
+
quarter: "mode.quarter",
|
|
18
|
+
quarterMonth: "mode.quarterMonth",
|
|
19
|
+
year: "mode.year"
|
|
20
|
+
}, d = ({ viewMode: d = "day", availableModes: f, onViewModeChange: p, onTodayClick: m, onScrollPrev: h, onScrollNext: g, className: _ = "" }) => {
|
|
21
|
+
let { t: v } = e(), y = a((e) => v(c(u[e])), [v]), b = `bsy-gantt-toolbar ${_}`.trim(), x = s(null), S = a(() => {
|
|
22
|
+
let e = x.current;
|
|
23
|
+
if (!e) return document.body;
|
|
24
|
+
let t = e.closest(l);
|
|
25
|
+
return t instanceof HTMLElement ? t : document.body;
|
|
26
|
+
}, []), C = o(() => {
|
|
27
|
+
let e = new Set(f ?? n);
|
|
28
|
+
return n.filter((t) => e.has(t)).map((e) => ({
|
|
29
|
+
key: e,
|
|
30
|
+
label: y(e)
|
|
31
|
+
}));
|
|
32
|
+
}, [f, y]), w = o(() => C.find((e) => e.key === d)?.label ?? d, [C, d]), T = a((e) => {
|
|
33
|
+
e?.key && e.key !== d && p?.(e.key);
|
|
34
|
+
}, [p, d]);
|
|
35
|
+
return /* @__PURE__ */ i("div", {
|
|
36
|
+
className: b,
|
|
37
|
+
ref: x,
|
|
38
|
+
children: [
|
|
39
|
+
/* @__PURE__ */ r(t, {
|
|
40
|
+
menus: C,
|
|
41
|
+
activeKey: [d],
|
|
42
|
+
showSearch: !1,
|
|
43
|
+
offset: {
|
|
44
|
+
x: 0,
|
|
45
|
+
y: 4
|
|
46
|
+
},
|
|
47
|
+
zIndex: 10001,
|
|
48
|
+
getPopupContainer: S,
|
|
49
|
+
onClick: T,
|
|
50
|
+
style: {
|
|
51
|
+
width: 100,
|
|
52
|
+
minWidth: 100
|
|
53
|
+
},
|
|
54
|
+
children: /* @__PURE__ */ i("button", {
|
|
55
|
+
type: "button",
|
|
56
|
+
className: "bsy-gantt-toolbar__mode-trigger",
|
|
57
|
+
"aria-haspopup": "listbox",
|
|
58
|
+
children: [/* @__PURE__ */ r("span", {
|
|
59
|
+
className: "bsy-gantt-toolbar__mode-trigger-label",
|
|
60
|
+
children: w
|
|
61
|
+
}), /* @__PURE__ */ r("i", { className: "icon-new-bsy-arrow-down bsy-gantt-toolbar__mode-trigger-icon" })]
|
|
62
|
+
})
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ r("span", { className: "bsy-gantt-toolbar__divider" }),
|
|
65
|
+
/* @__PURE__ */ r("button", {
|
|
66
|
+
type: "button",
|
|
67
|
+
className: "bsy-gantt-toolbar__today-btn",
|
|
68
|
+
onClick: m,
|
|
69
|
+
children: v("gantt.today")
|
|
70
|
+
}),
|
|
71
|
+
/* @__PURE__ */ i("div", {
|
|
72
|
+
className: "bsy-gantt-toolbar__scroll-btns",
|
|
73
|
+
children: [/* @__PURE__ */ r("button", {
|
|
74
|
+
type: "button",
|
|
75
|
+
className: "bsy-gantt-toolbar__icon-btn bsy-gantt-toolbar__icon-btn--left",
|
|
76
|
+
"aria-label": v("gantt.aria.scrollPrev"),
|
|
77
|
+
onClick: h,
|
|
78
|
+
children: /* @__PURE__ */ r("i", { className: "icon-new-bsy-Pulldownleft" })
|
|
79
|
+
}), /* @__PURE__ */ r("button", {
|
|
80
|
+
type: "button",
|
|
81
|
+
className: "bsy-gantt-toolbar__icon-btn bsy-gantt-toolbar__icon-btn--right",
|
|
82
|
+
"aria-label": v("gantt.aria.scrollNext"),
|
|
83
|
+
onClick: g,
|
|
84
|
+
children: /* @__PURE__ */ r("i", { className: "icon-new-bsy-Pulldownright" })
|
|
85
|
+
})]
|
|
86
|
+
})
|
|
87
|
+
]
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
//#endregion
|
|
91
|
+
export { c as n, d as t };
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { h as e, n as t, r as n, t as r } from "./constants-_vMvDXFh.js";
|
|
2
|
+
import { n as i, r as a, t as o } from "./timelineViewConfig-DshzoBp7.js";
|
|
3
|
+
import { isString as s } from "lodash-es";
|
|
4
|
+
import c from "dayjs";
|
|
5
|
+
import l from "dayjs/plugin/isoWeek";
|
|
6
|
+
import u from "dayjs/plugin/quarterOfYear";
|
|
7
|
+
//#region src/components/Gantt/GanttChart/utils/timezoneUtils.ts
|
|
8
|
+
var d = () => -(/* @__PURE__ */ new Date()).getTimezoneOffset() / 60, f = () => {
|
|
9
|
+
let e = d();
|
|
10
|
+
return e === null ? 0 : ((/* @__PURE__ */ new Date()).getTimezoneOffset() + e * 60) * 60 * 1e3;
|
|
11
|
+
}, p = (e) => e + f(), m = (e) => e - f(), h = () => Date.now() + f(), g = (e) => m(c(p(e)).startOf("day").valueOf()), _ = (e, t) => m(c(p(e)).startOf(t).valueOf()), v = (e, t) => m(c(p(e)).endOf(t).valueOf()), y = (e) => {
|
|
12
|
+
let t = p(e);
|
|
13
|
+
return new Date(t).getDay();
|
|
14
|
+
}, b = (e) => c(p(e));
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/components/Gantt/GanttChart/utils/quarterMonthScale.ts
|
|
17
|
+
c.extend(u);
|
|
18
|
+
var x = o("quarterMonth").bottomCellWidthPx, S = (e, t) => {
|
|
19
|
+
let n = b(e), r = n.quarter();
|
|
20
|
+
return t("header.top.quarter", {
|
|
21
|
+
year: n.year(),
|
|
22
|
+
ordinal: t(`quarter.${r}`)
|
|
23
|
+
});
|
|
24
|
+
}, C = (e, t) => t("header.lower.month", { month: b(e).month() + 1 }), w = (e, t) => {
|
|
25
|
+
if (!Array.isArray(e) || e.length === 0) return null;
|
|
26
|
+
let n = 0, r = e.length - 1;
|
|
27
|
+
for (; n <= r;) {
|
|
28
|
+
let i = n + r >> 1, a = e[i];
|
|
29
|
+
if (t < a.startMs) r = i - 1;
|
|
30
|
+
else if (t >= a.endMs) n = i + 1;
|
|
31
|
+
else return a;
|
|
32
|
+
}
|
|
33
|
+
return t < e[0].startMs ? e[0] : e[e.length - 1];
|
|
34
|
+
}, T = (e, t) => {
|
|
35
|
+
if (!t) return 0;
|
|
36
|
+
let n = t.endMs - t.startMs;
|
|
37
|
+
if (n <= 0) return t.left;
|
|
38
|
+
let r = Math.max(0, Math.min(1, (e - t.startMs) / n));
|
|
39
|
+
return t.left + r * t.width;
|
|
40
|
+
}, E = (e, t) => Number.isFinite(e) ? T(e, w(t, e)) : 0, D = (e, t, n) => {
|
|
41
|
+
if (!Number.isFinite(e) || !Number.isFinite(t)) return 0;
|
|
42
|
+
let r = w(n, e), i = w(n, t);
|
|
43
|
+
return r === i ? Math.max(0, T(t, r) - T(e, r)) : Math.max(0, T(t, i) - T(e, r));
|
|
44
|
+
}, O = (e, t, n) => {
|
|
45
|
+
if (!Array.isArray(t) || t.length === 0) return 0;
|
|
46
|
+
if (!Number.isFinite(e) || e <= 0) return t[0].startMs;
|
|
47
|
+
let r = 0, i = t.length - 1;
|
|
48
|
+
for (; r <= i;) {
|
|
49
|
+
let a = r + i >> 1, o = t[a], s = o.left + o.width;
|
|
50
|
+
if (e < o.left) i = a - 1;
|
|
51
|
+
else if (e >= s) r = a + 1;
|
|
52
|
+
else {
|
|
53
|
+
let t = o.width > 0 ? (e - o.left) / o.width : 0, r = o.startMs + t * (o.endMs - o.startMs);
|
|
54
|
+
return Math.min(r, n);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
let a = t[t.length - 1];
|
|
58
|
+
return Math.min(a.endMs, n);
|
|
59
|
+
};
|
|
60
|
+
c.extend(l), c.extend(u);
|
|
61
|
+
var k = (e) => {
|
|
62
|
+
if (e == null || s(e) && e.trim() === "") return 0;
|
|
63
|
+
let t = Number(e);
|
|
64
|
+
return Number.isFinite(t) ? t < 0 || t > 1 ? 1 : t : 0;
|
|
65
|
+
}, A = (e) => {
|
|
66
|
+
if (e == null) return null;
|
|
67
|
+
let t = c(e);
|
|
68
|
+
return t.isValid() ? t.valueOf() : null;
|
|
69
|
+
}, j = (e) => g(e), M = (n, r = t) => {
|
|
70
|
+
let a = Number(r?.[n]);
|
|
71
|
+
if (a > 0) return a;
|
|
72
|
+
if (i(n)) {
|
|
73
|
+
let { bottomCellWidthPx: t, bottomCellMs: r } = o(n);
|
|
74
|
+
return (t ?? 100) / (r / e);
|
|
75
|
+
}
|
|
76
|
+
let s = Number(t[n]);
|
|
77
|
+
return s > 0 ? s : t.day;
|
|
78
|
+
}, N = (e, t) => {
|
|
79
|
+
let n = Number(e);
|
|
80
|
+
return Number.isFinite(n) ? n : t;
|
|
81
|
+
}, P = (e, t = n) => {
|
|
82
|
+
let i = Number(r[e]);
|
|
83
|
+
return Number.isFinite(i) && i >= 0 ? {
|
|
84
|
+
bufferDaysBefore: i,
|
|
85
|
+
bufferDaysAfter: i
|
|
86
|
+
} : {
|
|
87
|
+
bufferDaysBefore: N(t?.bufferDaysBefore, n.bufferDaysBefore),
|
|
88
|
+
bufferDaysAfter: N(t?.bufferDaysAfter, n.bufferDaysAfter)
|
|
89
|
+
};
|
|
90
|
+
}, F = (t = n, r = h()) => {
|
|
91
|
+
let i = N(t?.bufferDaysBefore, n.bufferDaysBefore), a = N(t?.bufferDaysAfter, n.bufferDaysAfter), o = j(r);
|
|
92
|
+
return {
|
|
93
|
+
startMs: o - i * e,
|
|
94
|
+
endMs: o + (a + 1) * e
|
|
95
|
+
};
|
|
96
|
+
}, I = (t, n, r) => {
|
|
97
|
+
let i = c(t).isValid() ? t : Date.now(), a = c(n).isValid() ? n : Date.now() + e;
|
|
98
|
+
switch (r) {
|
|
99
|
+
case "week": return {
|
|
100
|
+
startMs: _(i, "isoWeek"),
|
|
101
|
+
endMs: g(v(a, "isoWeek") + 1)
|
|
102
|
+
};
|
|
103
|
+
case "month":
|
|
104
|
+
case "quarterMonth": return {
|
|
105
|
+
startMs: _(i, "month"),
|
|
106
|
+
endMs: g(v(a, "month") + 1)
|
|
107
|
+
};
|
|
108
|
+
case "quarter": return {
|
|
109
|
+
startMs: _(i, "quarter"),
|
|
110
|
+
endMs: g(v(a, "quarter") + 1)
|
|
111
|
+
};
|
|
112
|
+
case "year": return {
|
|
113
|
+
startMs: _(i, "year"),
|
|
114
|
+
endMs: g(v(a, "year") + 1)
|
|
115
|
+
};
|
|
116
|
+
default: {
|
|
117
|
+
let t = j(i), n = j(a);
|
|
118
|
+
return {
|
|
119
|
+
startMs: t,
|
|
120
|
+
endMs: a === n ? a : n + e
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}, L = (t, n, r, a, o) => i(a) && Array.isArray(o) && o.length ? E(t, o) : (t - n) / e * r, R = (t, n, r, a, o, s) => i(a) && Array.isArray(s) && s.length ? D(t, n, s) : (n - t) / e * r, z = (t, n, r, a, o, s) => i(a) && Array.isArray(s) && s.length ? O(t, s, o ?? n) : n + t / r * e, B = ({ viewMode: e, timelineStartMs: t, timelineEndMs: n, pixelsPerDay: r, lowerSegments: i }) => ({
|
|
125
|
+
toX: (n) => L(n, t, r, e, i),
|
|
126
|
+
toWidth: (n, a) => R(n, a, r, e, t, i),
|
|
127
|
+
timeAtX: (a) => z(a, t, r, e, n, i)
|
|
128
|
+
}), V = (e) => e !== null && e !== j(e), H = ({ rawStartMs: e, rawEndMs: t, baseStartMs: n, baseEndMs: r }, i) => a(i) && (V(e) || V(t)) ? {
|
|
129
|
+
startMs: e,
|
|
130
|
+
endMs: t
|
|
131
|
+
} : {
|
|
132
|
+
startMs: n,
|
|
133
|
+
endMs: r
|
|
134
|
+
}, U = (t, n) => {
|
|
135
|
+
let r = A(t), i = A(n), a = r === null ? null : j(r), o = i === null ? null : j(i) + e;
|
|
136
|
+
return {
|
|
137
|
+
rawStartMs: r,
|
|
138
|
+
rawEndMs: i,
|
|
139
|
+
baseStartMs: a,
|
|
140
|
+
baseEndMs: o,
|
|
141
|
+
invalid: r !== null && i !== null && r > i || a === null || o === null || o <= a
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/components/Gantt/utils/collapseKeys.ts
|
|
146
|
+
function W(e, t) {
|
|
147
|
+
if (t == null || t === "" || !e) return !1;
|
|
148
|
+
let n = String(t);
|
|
149
|
+
return e instanceof Set ? e.has(n) : Array.isArray(e) ? e.includes(n) : !1;
|
|
150
|
+
}
|
|
151
|
+
function G(e, t) {
|
|
152
|
+
let n = String(t), r = e instanceof Set ? e : new Set(Array.isArray(e) ? e : []), i = new Set(r);
|
|
153
|
+
return i.has(n) ? i.delete(n) : i.add(n), i;
|
|
154
|
+
}
|
|
155
|
+
//#endregion
|
|
156
|
+
export { m as _, I as a, p as b, k as c, j as d, R as f, S as g, C as h, H as i, M as l, x as m, G as n, F as o, L as p, U as r, B as s, W as t, P as u, y as v, b as y };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { useCallback as e, useEffect as t, useMemo as n, useState as r } from "react";
|
|
2
|
+
//#region src/components/Gantt/utils/constants.ts
|
|
3
|
+
var i = 333, a = 300, o = 300, s = ["select"];
|
|
4
|
+
function c(e, t) {
|
|
5
|
+
return !Array.isArray(e) || Object.keys(t).length === 0 ? e : e.map((e) => {
|
|
6
|
+
if (Array.isArray(e.children) && e.children.length > 0) {
|
|
7
|
+
let n = e.children.map((e) => t[e.key] === void 0 ? e : {
|
|
8
|
+
...e,
|
|
9
|
+
width: t[e.key]
|
|
10
|
+
});
|
|
11
|
+
return {
|
|
12
|
+
...e,
|
|
13
|
+
children: n,
|
|
14
|
+
width: n.reduce((e, t) => e + (t.width || 120), 0)
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
return t[e.key] === void 0 ? e : {
|
|
18
|
+
...e,
|
|
19
|
+
width: t[e.key]
|
|
20
|
+
};
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
function l(i) {
|
|
24
|
+
let [a, o] = r({}), l = e((e, t) => {
|
|
25
|
+
o((n) => ({
|
|
26
|
+
...n,
|
|
27
|
+
[e]: t
|
|
28
|
+
}));
|
|
29
|
+
}, []);
|
|
30
|
+
return t(() => {
|
|
31
|
+
if (Object.keys(a).length === 0) return;
|
|
32
|
+
let e = new Set(i.flatMap((e) => Array.isArray(e.children) && e.children.length > 0 ? e.children.map((e) => e.key) : [e.key]));
|
|
33
|
+
Object.keys(a).some((t) => !e.has(t)) && o((t) => {
|
|
34
|
+
let n = {};
|
|
35
|
+
for (let r of Object.keys(t)) e.has(r) && (n[r] = t[r]);
|
|
36
|
+
return n;
|
|
37
|
+
});
|
|
38
|
+
}, [i]), {
|
|
39
|
+
columns: n(() => c(i, a) ?? i, [i, a]),
|
|
40
|
+
onColumnResizeEnd: l,
|
|
41
|
+
resizable: !0,
|
|
42
|
+
disabledResizeColumns: s
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { o as a, i, c as n, a as o, l as r, s as t };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
//#region src/components/Gantt/GanttChart/utils/constants.ts
|
|
2
|
+
var e = 34, t = 34, n = 200, r = 34, i = 68 / 34, a = 1440 * 60 * 1e3, o = "move", s = "resize-start", c = "resize-end", l = 3e4, u = 1.5, d = "__empty__", f = /^#([a-f\d]{3}|[a-f\d]{6})$/i, p = {
|
|
3
|
+
day: 120,
|
|
4
|
+
week: 364,
|
|
5
|
+
month: 730,
|
|
6
|
+
quarter: 1460,
|
|
7
|
+
quarterMonth: 90,
|
|
8
|
+
year: 3650,
|
|
9
|
+
halfDay: 30,
|
|
10
|
+
sixHour: 14,
|
|
11
|
+
hour: 7,
|
|
12
|
+
halfHour: 3,
|
|
13
|
+
tenMinute: 2,
|
|
14
|
+
oneMinute: 1
|
|
15
|
+
}, m = {
|
|
16
|
+
bufferDaysBefore: 90,
|
|
17
|
+
bufferDaysAfter: 90
|
|
18
|
+
}, h = {
|
|
19
|
+
halfDay: 30,
|
|
20
|
+
sixHour: 14,
|
|
21
|
+
hour: 7,
|
|
22
|
+
halfHour: 3,
|
|
23
|
+
tenMinute: 2,
|
|
24
|
+
oneMinute: 0,
|
|
25
|
+
quarterMonth: 180
|
|
26
|
+
}, g = {
|
|
27
|
+
day: 40,
|
|
28
|
+
week: 14,
|
|
29
|
+
month: 200 / 30,
|
|
30
|
+
quarter: 200 / 90,
|
|
31
|
+
year: 200 / 180,
|
|
32
|
+
halfDay: 160,
|
|
33
|
+
sixHour: 280,
|
|
34
|
+
hour: 1200,
|
|
35
|
+
halfHour: 2160,
|
|
36
|
+
tenMinute: 5760,
|
|
37
|
+
oneMinute: 57600
|
|
38
|
+
};
|
|
39
|
+
//#endregion
|
|
40
|
+
export { l as _, c as a, r as c, e as d, f, u as g, a as h, o as i, i as l, n as m, g as n, s as o, p, m as r, d as s, h as t, t as u };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/components/Gantt/utils/highlightTarget.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return e === t ? !0 : !e || !t ? !1 : e.type === t.type && e.id === t.id;
|
|
4
|
+
}
|
|
5
|
+
function t(e, t) {
|
|
6
|
+
return !!e?.id && !!e?.type && t?.id === e.id && t?.type === e.type;
|
|
7
|
+
}
|
|
8
|
+
function n(e) {
|
|
9
|
+
if (!e) return null;
|
|
10
|
+
if (e.type === "summary") return e.groupKey !== null && e.groupKey !== void 0 && e.groupKey !== "" ? {
|
|
11
|
+
type: "group",
|
|
12
|
+
id: String(e.groupKey)
|
|
13
|
+
} : null;
|
|
14
|
+
if (e.parentId !== null && e.parentId !== void 0 && e.parentId !== "") return {
|
|
15
|
+
type: "record",
|
|
16
|
+
id: String(e.parentId)
|
|
17
|
+
};
|
|
18
|
+
let t = e.recordId ?? e.id;
|
|
19
|
+
return t != null && t !== "" ? {
|
|
20
|
+
type: "record",
|
|
21
|
+
id: String(t)
|
|
22
|
+
} : null;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { e as n, n as r, t };
|