@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isString as e } from "lodash-es";
|
|
2
2
|
import { createContext as t } from "react";
|
|
3
3
|
var n = {
|
|
4
|
+
table: { empty: "暂无数据" },
|
|
4
5
|
select: "请选择",
|
|
5
6
|
search: "搜索",
|
|
6
7
|
noFindData: "未搜索到任何数据",
|
|
@@ -101,6 +102,66 @@ var n = {
|
|
|
101
102
|
5: "周六",
|
|
102
103
|
6: "周日"
|
|
103
104
|
}
|
|
105
|
+
},
|
|
106
|
+
gantt: {
|
|
107
|
+
today: "今天",
|
|
108
|
+
timeBegin: "开始时间",
|
|
109
|
+
timeEnd: "结束时间",
|
|
110
|
+
firstHalf: "上半年",
|
|
111
|
+
secondHalf: "下半年",
|
|
112
|
+
emptyGroup: "(空)",
|
|
113
|
+
mode: {
|
|
114
|
+
oneMinute: "分钟",
|
|
115
|
+
tenMinute: "10分钟",
|
|
116
|
+
halfHour: "半小时",
|
|
117
|
+
hour: "小时",
|
|
118
|
+
sixHour: "6小时",
|
|
119
|
+
halfDay: "上午/下午",
|
|
120
|
+
day: "日",
|
|
121
|
+
week: "周",
|
|
122
|
+
month: "月",
|
|
123
|
+
quarter: "季",
|
|
124
|
+
quarterMonth: "季/月",
|
|
125
|
+
year: "年"
|
|
126
|
+
},
|
|
127
|
+
header: {
|
|
128
|
+
top: {
|
|
129
|
+
yearMonth: "{{year}}年{{month}}月",
|
|
130
|
+
monthDay: "{{month}}月{{day}}日",
|
|
131
|
+
hourWithDate: "{{month}}月{{day}}日{{hour}}点",
|
|
132
|
+
hourOnly: "{{hour}}点",
|
|
133
|
+
year: "{{year}}",
|
|
134
|
+
quarter: "{{year}}年{{ordinal}}季度"
|
|
135
|
+
},
|
|
136
|
+
lower: {
|
|
137
|
+
week: "{{week}}周",
|
|
138
|
+
quarter: "{{quarter}}季度",
|
|
139
|
+
halfDayAm: "上午",
|
|
140
|
+
halfDayPm: "下午",
|
|
141
|
+
sixHourRange: "{{start}}-{{end}}点",
|
|
142
|
+
month: "{{month}}月"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
quarter: {
|
|
146
|
+
1: "一",
|
|
147
|
+
2: "二",
|
|
148
|
+
3: "三",
|
|
149
|
+
4: "四"
|
|
150
|
+
},
|
|
151
|
+
summary: {
|
|
152
|
+
startTime: "开始时间:{{datetime}}",
|
|
153
|
+
endTime: "结束时间:{{datetime}}",
|
|
154
|
+
progress: "进度:{{percent}}%",
|
|
155
|
+
datetime: "{{year}}-{{month}}-{{day}} {{hour}}:{{minute}}:{{second}}",
|
|
156
|
+
empty: "—"
|
|
157
|
+
},
|
|
158
|
+
aria: {
|
|
159
|
+
timeline: "甘特图时间轴",
|
|
160
|
+
scrollPrev: "向左滚动",
|
|
161
|
+
scrollNext: "向右滚动",
|
|
162
|
+
jumpLeft: "跳转到左侧任务",
|
|
163
|
+
jumpRight: "跳转到右侧任务"
|
|
164
|
+
}
|
|
104
165
|
}
|
|
105
166
|
}, r = (e, t) => t ? e.replace(/\{\{(\w+)\}\}|\{(\w+)\}/g, (e, n, r) => {
|
|
106
167
|
let i = t[n || r];
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/animations/index.ts
|
|
2
1
|
var e = {
|
|
3
2
|
initial: {
|
|
4
3
|
opacity: 0,
|
|
@@ -16,8 +15,13 @@ var e = {
|
|
|
16
15
|
y: -4
|
|
17
16
|
},
|
|
18
17
|
transition: {
|
|
19
|
-
duration: .
|
|
20
|
-
ease:
|
|
18
|
+
duration: .218,
|
|
19
|
+
ease: [
|
|
20
|
+
.25,
|
|
21
|
+
.1,
|
|
22
|
+
.25,
|
|
23
|
+
1
|
|
24
|
+
]
|
|
21
25
|
}
|
|
22
26
|
}, t = {
|
|
23
27
|
initial: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@baishuyun/ui-base",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "百数云低代码平台通用组件库",
|
|
6
6
|
"author": "bsy-fe team",
|
|
7
7
|
"license": "ISC",
|
|
8
8
|
"main": "dist/index.js",
|
|
9
9
|
"module": "dist/index.js",
|
|
10
|
-
"types": "dist/index.d.ts",
|
|
10
|
+
"types": "dist/components/index.d.ts",
|
|
11
11
|
"style": "dist/style.css",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"lexical": "^0.33.1",
|
|
61
61
|
"lodash-es": "^4.17.21",
|
|
62
62
|
"overlayscrollbars": "^2.16.0",
|
|
63
|
+
"overlayscrollbars-react": "^0.5.6",
|
|
63
64
|
"simplebar-react": "^3.3.2",
|
|
64
65
|
"tinycolor2": "^1.6.0",
|
|
65
66
|
"use-context-selector": "^2.0.0"
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//#region src/components/Calendar/adapters/platformTheme.ts
|
|
2
|
-
var e = (e) => {
|
|
3
|
-
let t = {
|
|
4
|
-
colorBgContainer: e.background?.color,
|
|
5
|
-
colorText: e.titleColor,
|
|
6
|
-
colorTextTertiary: e.overTitleColor,
|
|
7
|
-
colorFillSecondary: e.headerBackground,
|
|
8
|
-
colorPrimary: e.highlightColor,
|
|
9
|
-
colorLink: e.moreRecord,
|
|
10
|
-
colorTextQuaternary: e.specificallyColor,
|
|
11
|
-
datePickerColorBgContainer: e.dataChooseBackgroundColor ?? e.dataChooseBackroundColor,
|
|
12
|
-
datePickerWeekRangeBg: e.weekRangeBackgroundColor ?? e.weekRangeBackroundColor,
|
|
13
|
-
eventBorderColor: e.scheduleColor?.verticalBackground,
|
|
14
|
-
eventBg: e.scheduleColor?.horizontalBackground,
|
|
15
|
-
eventBgHover: e.scheduleColor?.horizontalBackgroundHover
|
|
16
|
-
};
|
|
17
|
-
return e.background?.type === "image" && e.background.image && (t.panelBgImage = e.background.image, t.panelBgImagePosition = e.background.position ?? "center"), t;
|
|
18
|
-
};
|
|
19
|
-
//#endregion
|
|
20
|
-
export { e as t };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import "../../../Icon/Icon-BQ3Whub2.js";
|
|
2
|
-
import "../../../Tooltip/Tooltip-RkD8fs0B.js";
|
|
3
|
-
import "../../context-DNOJ9LW_.js";
|
|
4
|
-
import "../../../DatePicker/ensureDayjsPlugins-DZjJnZgo.js";
|
|
5
|
-
import "../../layout-DvWx_7gn.js";
|
|
6
|
-
import "../../EventCard-D_VeOVDQ.js";
|
|
7
|
-
import { t as e } from "../../AllDaySection-DS0Frx1p.js";
|
|
8
|
-
export { e as default };
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../vendors/useFloatingOverlay-uxlI1G-V.js";
|
|
2
|
-
import { t } from "../vendors/useLocale-D9kAzQlB.js";
|
|
3
|
-
import { n } from "../vendors/animations-BmT0HT5q.js";
|
|
4
|
-
import { t as r } from "./ensureDayjsPlugins-DZjJnZgo.js";
|
|
5
|
-
import { n as i } from "./pickerLocale-VqSP_iIm.js";
|
|
6
|
-
import { t as a } from "./style-DZaSSoNs.js";
|
|
7
|
-
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
-
import { Suspense as l, cloneElement as u, isValidElement as d, lazy as f, useCallback as p, useMemo as m } from "react";
|
|
9
|
-
import { useControllableValue as h } from "ahooks";
|
|
10
|
-
import { AnimatePresence as g, motion as _ } from "motion/react";
|
|
11
|
-
import { FloatingPortal as v } from "@floating-ui/react";
|
|
12
|
-
import y from "dayjs";
|
|
13
|
-
var b = {
|
|
14
|
-
footer: "_footer_h6lng_1",
|
|
15
|
-
today: "_today_h6lng_11"
|
|
16
|
-
}, x = ({ onClick: e }) => {
|
|
17
|
-
let { t: n } = t();
|
|
18
|
-
return /* @__PURE__ */ s("div", {
|
|
19
|
-
className: b.footer,
|
|
20
|
-
children: /* @__PURE__ */ s("button", {
|
|
21
|
-
type: "button",
|
|
22
|
-
className: b.today,
|
|
23
|
-
onClick: e,
|
|
24
|
-
children: n("datePicker.today")
|
|
25
|
-
})
|
|
26
|
-
});
|
|
27
|
-
}, S = (e, t) => {
|
|
28
|
-
switch (t) {
|
|
29
|
-
case "week": return e.startOf("isoWeek");
|
|
30
|
-
case "month": return e.startOf("month");
|
|
31
|
-
case "year": return e.startOf("year");
|
|
32
|
-
default: return e.startOf("day");
|
|
33
|
-
}
|
|
34
|
-
}, C = {
|
|
35
|
-
"bsy-date-picker": "_bsy-date-picker_legiv_1",
|
|
36
|
-
"bsy-date-picker__content": "_bsy-date-picker__content_legiv_33",
|
|
37
|
-
"bsy-date-picker__divider": "_bsy-date-picker__divider_legiv_43",
|
|
38
|
-
"bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_legiv_49"
|
|
39
|
-
}, w = f(() => import("./DatePickerPanel-BaVC1tq2.js"));
|
|
40
|
-
r();
|
|
41
|
-
var T = (r) => {
|
|
42
|
-
let { children: f, picker: b = "date", theme: T } = r, { locale: E } = t(), [D, O] = h(r, {
|
|
43
|
-
defaultValuePropName: "defaultValue",
|
|
44
|
-
valuePropName: "value",
|
|
45
|
-
trigger: "onChange",
|
|
46
|
-
defaultValue: y().locale(i(E)).startOf("day")
|
|
47
|
-
}), { isOpen: k, setIsOpen: A, refs: j, floatingStyles: M, getReferenceProps: N, getFloatingProps: P } = e(), F = p((e) => {
|
|
48
|
-
e && (O(S(e, b)), A(!1));
|
|
49
|
-
}, [
|
|
50
|
-
b,
|
|
51
|
-
O,
|
|
52
|
-
A
|
|
53
|
-
]), I = p(() => {
|
|
54
|
-
F(y().locale(i(E)));
|
|
55
|
-
}, [F, E]), L = m(() => a(T), [T]);
|
|
56
|
-
return d(f) || process.env.NODE_ENV !== "production" && console.warn("[DatePicker] children 必须是单个 React 元素"), /* @__PURE__ */ c(o, { children: [d(f) ? u(f, {
|
|
57
|
-
...N(),
|
|
58
|
-
ref: j.setReference
|
|
59
|
-
}) : f, /* @__PURE__ */ s(v, { children: /* @__PURE__ */ s(g, { children: k ? /* @__PURE__ */ s("div", {
|
|
60
|
-
ref: j.setFloating,
|
|
61
|
-
style: {
|
|
62
|
-
...M,
|
|
63
|
-
...L
|
|
64
|
-
},
|
|
65
|
-
...P(),
|
|
66
|
-
"data-bsy-date-picker": !0,
|
|
67
|
-
className: C["bsy-date-picker"],
|
|
68
|
-
children: /* @__PURE__ */ c(_.div, {
|
|
69
|
-
...n,
|
|
70
|
-
className: C["bsy-date-picker__content"],
|
|
71
|
-
children: [
|
|
72
|
-
/* @__PURE__ */ s(l, {
|
|
73
|
-
fallback: /* @__PURE__ */ s("div", {
|
|
74
|
-
className: C["bsy-date-picker__panel-loading"],
|
|
75
|
-
"aria-hidden": !0
|
|
76
|
-
}),
|
|
77
|
-
children: /* @__PURE__ */ s(w, {
|
|
78
|
-
picker: b,
|
|
79
|
-
value: D,
|
|
80
|
-
onChange: F
|
|
81
|
-
})
|
|
82
|
-
}),
|
|
83
|
-
/* @__PURE__ */ s("div", { className: C["bsy-date-picker__divider"] }),
|
|
84
|
-
/* @__PURE__ */ s(x, { onClick: I })
|
|
85
|
-
]
|
|
86
|
-
})
|
|
87
|
-
}) : null }) })] });
|
|
88
|
-
};
|
|
89
|
-
T.displayName = "BsyDatePicker";
|
|
90
|
-
//#endregion
|
|
91
|
-
export { T as t };
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { Fragment as e, jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
2
|
-
import { Fragment as r, cloneElement as i, createContext as a, isValidElement as ee, useCallback as te, useEffect as ne, useMemo as o, useRef as re, useState as ie } from "react";
|
|
3
|
-
import { useControllableValue as ae } from "ahooks";
|
|
4
|
-
import { FloatingArrow as s, FloatingPortal as c, arrow as l, autoUpdate as u, flip as d, offset as f, safePolygon as p, shift as m, size as h, useClick as g, useDismiss as _, useFloating as v, useHover as y, useInteractions as oe, useRole as se, useTransitionStyles as ce } from "@floating-ui/react";
|
|
5
|
-
//#region src/utils/mergeRefs.ts
|
|
6
|
-
var b = (...e) => (t) => {
|
|
7
|
-
e.forEach((e) => {
|
|
8
|
-
typeof e == "function" ? e(t) : e != null && (e.current = t);
|
|
9
|
-
});
|
|
10
|
-
}, x = a(null), S = {
|
|
11
|
-
"bsy-tooltip": "_bsy-tooltip_1ilez_1",
|
|
12
|
-
"bsy-tooltip__trigger": "_bsy-tooltip__trigger_1ilez_4",
|
|
13
|
-
"bsy-tooltip__content": "_bsy-tooltip__content_1ilez_8"
|
|
14
|
-
}, le = "M0 14C0 14 1.44834 13.9879 4.14272 10.7864C5.24990 9.46652 6.28557 8.66663 7.0002 8.66663C7.71415 8.66663 8.73670 9.55158 9.85697 10.8831C12.5664 14.1005 14 14 14 14H0Z", ue = "#525867", C = (e, t) => e ? t ? (n) => {
|
|
15
|
-
e(n), t(n);
|
|
16
|
-
} : e : t, w = (e) => {
|
|
17
|
-
if (!(e === "auto" || e === void 0)) return typeof e == "number" ? `${e}px` : e;
|
|
18
|
-
}, de = (e) => e.type === r || (e.type?.toString().includes("Fragment") ?? !1), T = ({ children: r, content: a, trigger: T = "hover", style: E, showArrow: D = !0, placement: O = "bottom", onClose: k, hoverDelay: A = 500, getPopupContainer: j, moveToFloatingKeepOpen: M = !1, widthMode: N = "content", width: P, minWidth: F = 60, maxWidth: I = 340, offset: L = 10, fallbackPlacements: R, virtualReference: z, flipBoundary: B, animated: V = !1, animationConfig: H, ...fe }) => {
|
|
19
|
-
let U = re(null), [pe, me] = ie(null), [W, G] = ae(fe, {
|
|
20
|
-
valuePropName: "visible",
|
|
21
|
-
trigger: "onVisibleChange",
|
|
22
|
-
defaultValue: !1
|
|
23
|
-
}), he = te((e) => {
|
|
24
|
-
!e && W && k && k(), G(e);
|
|
25
|
-
}, [
|
|
26
|
-
W,
|
|
27
|
-
k,
|
|
28
|
-
G
|
|
29
|
-
]), ge = o(() => {
|
|
30
|
-
let e = R ? { fallbackPlacements: R } : {};
|
|
31
|
-
B && (e.boundary = B);
|
|
32
|
-
let t = [
|
|
33
|
-
f(L),
|
|
34
|
-
d(e),
|
|
35
|
-
m({ padding: 8 })
|
|
36
|
-
];
|
|
37
|
-
return D && t.push(l({ element: U })), N === "reference" && t.push(h({ apply({ rects: e, elements: t }) {
|
|
38
|
-
t.floating.style.width = `${e.reference.width}px`;
|
|
39
|
-
let n = w(F);
|
|
40
|
-
n && (t.floating.style.minWidth = n);
|
|
41
|
-
let r = w(I);
|
|
42
|
-
r && (t.floating.style.maxWidth = r);
|
|
43
|
-
} })), t;
|
|
44
|
-
}, [
|
|
45
|
-
N,
|
|
46
|
-
F,
|
|
47
|
-
I,
|
|
48
|
-
L,
|
|
49
|
-
R,
|
|
50
|
-
B,
|
|
51
|
-
D
|
|
52
|
-
]), { refs: K, floatingStyles: q, context: J } = v({
|
|
53
|
-
open: W,
|
|
54
|
-
onOpenChange: he,
|
|
55
|
-
whileElementsMounted: W ? (e, t, n) => u(e, t, n, {
|
|
56
|
-
animationFrame: !1,
|
|
57
|
-
ancestorScroll: !0,
|
|
58
|
-
ancestorResize: !0,
|
|
59
|
-
elementResize: !0,
|
|
60
|
-
layoutShift: !1
|
|
61
|
-
}) : void 0,
|
|
62
|
-
placement: O,
|
|
63
|
-
middleware: ge,
|
|
64
|
-
transform: !1
|
|
65
|
-
}), { isMounted: _e, styles: ve } = ce(J, V && H ? H : { duration: 0 }), ye = V ? _e : W, Y = o(() => {
|
|
66
|
-
let e = {
|
|
67
|
-
...q,
|
|
68
|
-
...E
|
|
69
|
-
};
|
|
70
|
-
switch (N) {
|
|
71
|
-
case "content":
|
|
72
|
-
e.width = "auto";
|
|
73
|
-
break;
|
|
74
|
-
case "manual":
|
|
75
|
-
P !== void 0 && (e.width = w(P));
|
|
76
|
-
break;
|
|
77
|
-
case "reference": break;
|
|
78
|
-
default: e.width = "max-content";
|
|
79
|
-
}
|
|
80
|
-
return N !== "reference" && (F !== void 0 && (e.minWidth = w(F)), I !== void 0 && (e.maxWidth = w(I))), e;
|
|
81
|
-
}, [
|
|
82
|
-
q,
|
|
83
|
-
E,
|
|
84
|
-
N,
|
|
85
|
-
P,
|
|
86
|
-
F,
|
|
87
|
-
I
|
|
88
|
-
]);
|
|
89
|
-
ne(() => {
|
|
90
|
-
z && K.setPositionReference(z);
|
|
91
|
-
}, [z, K]);
|
|
92
|
-
let { getReferenceProps: X, getFloatingProps: be } = oe([
|
|
93
|
-
y(J, {
|
|
94
|
-
enabled: T === "hover",
|
|
95
|
-
delay: { open: A },
|
|
96
|
-
handleClose: M ? p() : void 0
|
|
97
|
-
}),
|
|
98
|
-
g(J, { enabled: T === "click" }),
|
|
99
|
-
_(J),
|
|
100
|
-
se(J, { role: "tooltip" })
|
|
101
|
-
]), Z = X(), Q = {
|
|
102
|
-
...Z,
|
|
103
|
-
onClick: (e) => {
|
|
104
|
-
T === "click" && e.stopPropagation(), Z.onClick?.(e);
|
|
105
|
-
},
|
|
106
|
-
onMouseEnter: (e) => {
|
|
107
|
-
T === "hover" && e.stopPropagation(), Z.onMouseEnter?.(e);
|
|
108
|
-
},
|
|
109
|
-
onMouseLeave: (e) => {
|
|
110
|
-
T === "hover" && e.stopPropagation(), Z.onMouseLeave?.(e);
|
|
111
|
-
},
|
|
112
|
-
onMouseMove: (e) => {
|
|
113
|
-
Z.onMouseMove?.(e);
|
|
114
|
-
}
|
|
115
|
-
}, xe = j?.(), Se = typeof E?.background == "string" ? E.background : ue, Ce = b(K.setFloating, me), $ = ye ? /* @__PURE__ */ t(c, {
|
|
116
|
-
root: xe ?? void 0,
|
|
117
|
-
children: /* @__PURE__ */ n("div", {
|
|
118
|
-
ref: Ce,
|
|
119
|
-
style: V ? {
|
|
120
|
-
...Y,
|
|
121
|
-
...ve
|
|
122
|
-
} : Y,
|
|
123
|
-
...be(),
|
|
124
|
-
className: S["bsy-tooltip__content"],
|
|
125
|
-
onClick: (e) => e.stopPropagation(),
|
|
126
|
-
children: [D ? /* @__PURE__ */ t(s, {
|
|
127
|
-
ref: U,
|
|
128
|
-
context: J,
|
|
129
|
-
width: 14,
|
|
130
|
-
height: 14,
|
|
131
|
-
tipRadius: 2,
|
|
132
|
-
fill: Se,
|
|
133
|
-
d: le
|
|
134
|
-
}) : null, /* @__PURE__ */ t(x.Provider, {
|
|
135
|
-
value: pe,
|
|
136
|
-
children: a
|
|
137
|
-
})]
|
|
138
|
-
})
|
|
139
|
-
}) : null;
|
|
140
|
-
if (ee(r) && !de(r)) {
|
|
141
|
-
let t = r.props, a = r.ref;
|
|
142
|
-
return /* @__PURE__ */ n(e, { children: [i(r, {
|
|
143
|
-
...t,
|
|
144
|
-
...Q,
|
|
145
|
-
ref: a ? b(K.setReference, a) : K.setReference,
|
|
146
|
-
style: t.style,
|
|
147
|
-
onClick: C(t.onClick, Q.onClick),
|
|
148
|
-
onMouseEnter: C(t.onMouseEnter, Q.onMouseEnter),
|
|
149
|
-
onMouseLeave: C(t.onMouseLeave, Q.onMouseLeave),
|
|
150
|
-
onMouseMove: C(t.onMouseMove, Q.onMouseMove)
|
|
151
|
-
}), $] });
|
|
152
|
-
}
|
|
153
|
-
return /* @__PURE__ */ n(e, { children: [/* @__PURE__ */ t("div", {
|
|
154
|
-
className: S["bsy-tooltip"],
|
|
155
|
-
children: /* @__PURE__ */ t("div", {
|
|
156
|
-
ref: K.setReference,
|
|
157
|
-
...Q,
|
|
158
|
-
className: S["bsy-tooltip__trigger"],
|
|
159
|
-
children: r
|
|
160
|
-
})
|
|
161
|
-
}), $] });
|
|
162
|
-
}, E = ({ content: n, children: r, ...i }) => n ? /* @__PURE__ */ t(T, {
|
|
163
|
-
content: n,
|
|
164
|
-
...i,
|
|
165
|
-
children: r
|
|
166
|
-
}) : /* @__PURE__ */ t(e, { children: r });
|
|
167
|
-
E.displayName = "BsyTooltip";
|
|
168
|
-
//#endregion
|
|
169
|
-
export { x as n, E as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { resolvePlatformCalendarTheme, type PlatformCalendarThemeConfig } from './platformTheme';
|
|
File without changes
|
/package/dist/components/Calendar/{Header → subcomponents}/CalendarHeader/CalendarHeader.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthCell/MonthCell.d.ts
RENAMED
|
File without changes
|
/package/dist/components/Calendar/{panels/MonthPanel → subcomponents}/MonthHeader/MonthHeader.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/components/Calendar/{panels/WeekPanel → subcomponents}/WeekHeader/WeekHeader.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
/package/dist/components/Calendar/{adapters → utils/theme}/__tests__/platformTheme.test.d.ts
RENAMED
|
File without changes
|
/package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveCalendarThemeVars.test.d.ts
RENAMED
|
File without changes
|
/package/dist/components/Calendar/{style → utils/theme}/__tests__/resolveScheduleColorVars.test.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|