@baishuyun/ui-base 6.16.1 → 6.18.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/Amap-CNsoge6e.js +826 -0
- package/dist/Amap/index.js +3 -10
- package/dist/Calendar/Calendar-Dk6FVbJ2.js +1608 -0
- package/dist/Calendar/index.js +10 -20
- package/dist/Card/index.js +2 -2
- package/dist/CheckBox/{CheckBox-B92dxWNo.js → CheckBox-CM24-quL.js} +1 -1
- package/dist/CheckBox/index.js +3 -3
- package/dist/ColorPicker/{ColorPicker-CPr5j6ZN.js → ColorPicker-B_wLqurt.js} +5 -5
- package/dist/ColorPicker/index.js +5 -5
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DatePicker/DatePicker-CItkTpdZ.js +111 -0
- package/dist/DatePicker/{DatePickerPanel-CtLwYPmz.js → DatePickerPanel-DJXmFihs.js} +3 -4
- package/dist/DatePicker/index.js +6 -8
- package/dist/DatePicker/pickerLocale-Brf7_Tnd.js +30 -0
- package/dist/DropDown/{DropDown-Bi0TsCc_.js → DropDown-B_szM67V.js} +86 -82
- package/dist/DropDown/index.js +8 -9
- package/dist/Editor/index.js +2934 -961
- package/dist/Gantt/index.js +3055 -197
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/{InputTag-BfZycXw4.js → InputTag-C_5nm0eo.js} +2 -2
- package/dist/InputTag/index.js +4 -4
- package/dist/Loading/{Loading-DpbJSRYf.js → Loading-Cherk9Ax.js} +1 -1
- package/dist/Loading/index.js +3 -3
- package/dist/Modal/index.js +2 -2
- package/dist/NotFoundContent/index.js +2 -2
- package/dist/Overlay/index.js +1 -1
- package/dist/Radio/index.js +2 -2
- package/dist/ScrollBar/{ScrollBar-N2pOLv-8.js → ScrollBar-IMTuAOF5.js} +1 -1
- package/dist/ScrollBar/index.js +2 -2
- package/dist/Segmented/{Segmented-BCQRrc65.js → Segmented-DpmwFerw.js} +1 -1
- package/dist/Segmented/index.js +2 -2
- package/dist/Select/{Select-CB5FqBui.js → Select-VIy6OKEj.js} +257 -253
- package/dist/Select/{SelectInputSearch-DUAv2vE4.js → SelectInputSearch-MApQHnU9.js} +1 -1
- package/dist/Select/index.js +12 -13
- package/dist/Table/Table-8ac6xLZv.js +808 -0
- package/dist/Table/index.js +4 -8
- package/dist/Tabs/{Tabs-B9uCGlxM.js → Tabs-DnoZ8BO0.js} +3 -3
- package/dist/Tabs/index.js +4 -4
- package/dist/Tooltip/{Tooltip-nJU13gX4.js → Tooltip-DBrt3t2r.js} +3 -3
- package/dist/Tooltip/index.js +3 -3
- package/dist/Tree/index.js +4 -4
- package/dist/components/Editor/EditorHtmlPreview.d.ts +3 -0
- package/dist/components/Editor/Preview/EditorPreview.d.ts +1 -1
- package/dist/components/Editor/Preview/HtmlPreview.d.ts +2 -3
- package/dist/components/Editor/Preview/PolishModal.d.ts +0 -1
- package/dist/components/Editor/Preview/TypesetModal.d.ts +0 -1
- package/dist/components/Editor/Preview/useAiPreviewHtml.d.ts +8 -0
- package/dist/components/Editor/__tests__/createTestEditor.d.ts +1 -0
- package/dist/components/Editor/commands/ImageCommands.d.ts +1 -0
- package/dist/components/Editor/constants/portableEditorStyles.d.ts +2 -0
- package/dist/components/Editor/context/EditorContainerContext.d.ts +3 -2
- package/dist/components/Editor/hooks/useEditorFocus.d.ts +1 -0
- package/dist/components/Editor/hooks/useTextFormatsState.d.ts +1 -2
- package/dist/components/Editor/index.d.ts +1 -0
- package/dist/components/Editor/nodes/ExtendedLinkNode.d.ts +9 -0
- package/dist/components/Editor/nodes/ImageComponent.d.ts +1 -0
- package/dist/components/Editor/nodes/ImageNode.d.ts +5 -2
- package/dist/components/Editor/utils/getToolbarItems.d.ts +14 -0
- package/dist/components/Editor/utils/placeProgrammaticCaret.d.ts +5 -0
- package/dist/components/Editor/utils/readTextFormats.d.ts +6 -0
- package/dist/components/Editor/utils/retainCodeSelection.d.ts +3 -0
- package/dist/index.js +28 -50
- package/dist/style.css +1 -1
- package/dist/vendors/Tree-D0Q1IZ2D.js +267 -0
- package/dist/vendors/{version-Dzs4mguZ.js → version-BucxnUKs.js} +1 -1
- package/package.json +1 -1
- package/dist/Amap/Amap-BLSziesG.js +0 -77
- package/dist/Amap/AmapCircle/index.js +0 -5
- package/dist/Amap/AmapCircle-2qupysHe.js +0 -55
- package/dist/Amap/AmapContext-CJBe6lld.js +0 -11
- package/dist/Amap/AmapMarker/index.js +0 -6
- package/dist/Amap/AmapMarker-xEqoVnFR.js +0 -153
- package/dist/Amap/AmapMarkerCluster/index.js +0 -6
- package/dist/Amap/AmapMarkerCluster-CvEQa3o9.js +0 -240
- package/dist/Amap/AmapProvider/index.js +0 -7
- package/dist/Amap/AmapProvider-B-R2DrkJ.js +0 -107
- package/dist/Amap/hooks/index.js +0 -4
- package/dist/Amap/hooks-BTcFpdd0.js +0 -121
- package/dist/Amap/useMarkerInfoWindowController-Cjx0xQXw.js +0 -94
- package/dist/Calendar/AllDaySection-pO7suGJM.js +0 -53
- package/dist/Calendar/Calendar-Cjagi7mU.js +0 -795
- package/dist/Calendar/CurrentTimeIndicator-BF3_INSL.js +0 -65
- package/dist/Calendar/EventCard-DKEZQRTp.js +0 -155
- package/dist/Calendar/TimeAxis-DUc6EL-j.js +0 -13
- package/dist/Calendar/TimeGrid-BV8x9VnF.js +0 -47
- package/dist/Calendar/colorUtils-BbeSMnOs.js +0 -55
- package/dist/Calendar/context/index.js +0 -3
- package/dist/Calendar/context-CamSpkj3.js +0 -21
- package/dist/Calendar/layout-CpOabFQ2.js +0 -300
- package/dist/Calendar/subcomponents/AllDaySection/index.js +0 -11
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +0 -8
- package/dist/Calendar/subcomponents/EventCard/index.js +0 -9
- package/dist/Calendar/subcomponents/TimeAxis/index.js +0 -5
- package/dist/Calendar/subcomponents/TimeGrid/index.js +0 -7
- package/dist/Calendar/theme-Dc8hjcdo.js +0 -71
- package/dist/Calendar/utils/index.js +0 -111
- package/dist/Calendar/utils/layout/index.js +0 -4
- package/dist/Calendar/utils/theme/index.js +0 -3
- package/dist/DatePicker/DatePicker-neAwNSsc.js +0 -101
- package/dist/DatePicker/ensureDayjsPlugins-CSqhjLS7.js +0 -15
- package/dist/DatePicker/pickerLocale-CcPLUbZO.js +0 -15
- package/dist/DatePicker/style/index.js +0 -3
- package/dist/DatePicker/style-W7f5wyUb.js +0 -15
- package/dist/DropDown/style/index.js +0 -3
- package/dist/DropDown/style-DZpkarne.js +0 -9
- package/dist/Editor/Buttons-OwLs5bxR.js +0 -1841
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +0 -21
- package/dist/Editor/constants/index.js +0 -61
- package/dist/Gantt/GanttChart/index.js +0 -21
- package/dist/Gantt/GanttChart-CDnF5qcc.js +0 -2292
- package/dist/Gantt/GanttHighlightContext-dtyoq-oj.js +0 -12
- package/dist/Gantt/GanttTable/index.js +0 -13
- package/dist/Gantt/GanttTable-fOv1Zn2-.js +0 -84
- package/dist/Gantt/GanttToolBar/index.js +0 -17
- package/dist/Gantt/GanttToolBar-BAoiWAHI.js +0 -120
- package/dist/Gantt/collapseKeys-BV_8sIA-.js +0 -160
- package/dist/Gantt/columnResize-Bkenlbab.js +0 -46
- package/dist/Gantt/constants-mEGQ1U1Q.js +0 -39
- package/dist/Gantt/highlightTarget-D3Nf9_7S.js +0 -25
- package/dist/Gantt/theme-B7Iap-tZ.js +0 -31
- package/dist/Gantt/timelineViewConfig-DNt7yi83.js +0 -118
- package/dist/Gantt/utils/index.js +0 -7
- package/dist/Gantt/utils/theme/index.js +0 -3
- package/dist/Select/style/index.js +0 -3
- package/dist/Select/style-C4A8kUd1.js +0 -9
- package/dist/Table/Table-3LSO0xSH.js +0 -545
- package/dist/Table/constants-D7wLH8Qy.js +0 -25
- package/dist/Table/hooks/index.js +0 -3
- package/dist/Table/hooks-DSBl2e4O.js +0 -108
- package/dist/Table/processRowspan-B6HMqw0Q.js +0 -144
- package/dist/Table/style/index.js +0 -3
- package/dist/Table/style-B8Cw8HJe.js +0 -9
- package/dist/Table/utils/index.js +0 -3
- package/dist/Tree/utils/index.js +0 -26
- package/dist/vendors/Tree-DSl4lDjx.js +0 -248
- /package/dist/Card/{Card-rJeWgxu5.js → Card-DAz0dvA3.js} +0 -0
- /package/dist/CheckBox/{CheckBox-DOK5N7z6.js → CheckBox-CcHskTz_.js} +0 -0
- /package/dist/Modal/{Modal-CRKitOOj.js → Modal-eZijJ7CB.js} +0 -0
- /package/dist/NotFoundContent/{NotFoundContent-BLmzWNBi.js → NotFoundContent-DJUQ0_2D.js} +0 -0
- /package/dist/Radio/{Radio-CX9cUqb7.js → Radio-D9jhW7K6.js} +0 -0
- /package/dist/vendors/{animations-Dn_5xJ7B.js → animations-ISccYUE3.js} +0 -0
- /package/dist/vendors/{cssVars-l4-kP_14.js → cssVars-UpriQzph.js} +0 -0
- /package/dist/vendors/{mergeRefs-TiJ0xjUN.js → mergeRefs-mEH9TBYV.js} +0 -0
- /package/dist/vendors/{useFloatingOverlay-B3M9k8nj.js → useFloatingOverlay-B66lOL8v.js} +0 -0
- /package/dist/vendors/{useFloatingPortal-VpzL-EPh.js → useFloatingPortal-DJ1iKmW-.js} +0 -0
- /package/dist/vendors/{useLatchedPopupPortalRoot-4fVhqVT4.js → useLatchedPopupPortalRoot-CC6af8t-.js} +0 -0
- /package/dist/vendors/{useLocale-D31qCCff.js → useLocale-Be4e7Xfn.js} +0 -0
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import "../../../vendors/version-Dzs4mguZ.js";
|
|
2
|
-
import "../../../Icon/Icon-DrdQOEJE.js";
|
|
3
|
-
import "../../../Overlay/OverlayContext-CVSFoyqN.js";
|
|
4
|
-
import "../../../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
5
|
-
import "../../../Tooltip/Tooltip-nJU13gX4.js";
|
|
6
|
-
import { t as e } from "../../TimeGrid-BV8x9VnF.js";
|
|
7
|
-
export { e as default };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../vendors/cssVars-l4-kP_14.js";
|
|
2
|
-
import { n as t } from "./colorUtils-BbeSMnOs.js";
|
|
3
|
-
//#region src/components/Calendar/utils/theme/resolveScheduleColorVars.ts
|
|
4
|
-
var n = (e, t, n) => {
|
|
5
|
-
let r = {};
|
|
6
|
-
return e && (r["--calendar-schedule-border"] = e), t && (r["--calendar-schedule-bg"] = t), n && (r["--calendar-schedule-hover"] = n), r;
|
|
7
|
-
}, r = (e) => {
|
|
8
|
-
if (!e) return {};
|
|
9
|
-
let r = t(e);
|
|
10
|
-
return n(e, r.normal, r.hover);
|
|
11
|
-
}, i = {
|
|
12
|
-
center: {
|
|
13
|
-
backgroundPosition: "50%",
|
|
14
|
-
backgroundSize: "contain"
|
|
15
|
-
},
|
|
16
|
-
stretch: {
|
|
17
|
-
backgroundPosition: "50%",
|
|
18
|
-
backgroundSize: "cover"
|
|
19
|
-
},
|
|
20
|
-
masterDrawingCenter: {
|
|
21
|
-
backgroundPosition: "50%",
|
|
22
|
-
backgroundSize: "100% 100%"
|
|
23
|
-
}
|
|
24
|
-
}, a = (t) => {
|
|
25
|
-
let n = {};
|
|
26
|
-
if (e(n, "--calendar-background-color", t.colorBgContainer), t.panelBgImage) {
|
|
27
|
-
let e = i[t.panelBgImagePosition ?? "center"] ?? i.center;
|
|
28
|
-
n["--calendar-background-image"] = `url(${t.panelBgImage})`, n["--calendar-background-position"] = e.backgroundPosition, n["--calendar-background-size"] = e.backgroundSize, n["--calendar-background-repeat"] = "no-repeat";
|
|
29
|
-
}
|
|
30
|
-
return n;
|
|
31
|
-
}, o = (t, i) => {
|
|
32
|
-
let o = { ...r(i) };
|
|
33
|
-
return !t || typeof t != "object" ? o : (Object.assign(o, a(t)), e(o, "--calendar-title-color", t.colorText), e(o, "--calendar-over-title-color", t.colorTextTertiary), e(o, "--calendar-specifically-color", t.colorTextQuaternary ?? t.colorTextTertiary), e(o, "--calendar-header-background", t.colorFillSecondary), e(o, "--calendar-highlight-color", t.colorPrimary), e(o, "--calendar-highlight-text-color", t.colorPrimaryText), e(o, "--calendar-border-color", t.colorSplit), e(o, "--calendar-more-record-color", t.colorLink), (t.eventBorderColor || t.eventBg || t.eventBgHover) && Object.assign(o, n(t.eventBorderColor, t.eventBg, t.eventBgHover)), o);
|
|
34
|
-
}, s = (e) => e.colorText !== void 0 || e.colorPrimary !== void 0 || e.colorFillSecondary !== void 0, c = (e) => e.datePickerColorBgContainer !== void 0 || e.datePickerWeekRangeBg !== void 0 || e.colorPrimary !== void 0 || e.colorText !== void 0 || e.colorTextTertiary !== void 0 || e.colorTextQuaternary !== void 0, l = (e) => {
|
|
35
|
-
if (!(!e || !s(e))) return {
|
|
36
|
-
colorText: e.colorText,
|
|
37
|
-
itemSelectedBg: e.colorPrimary,
|
|
38
|
-
itemHoverBg: e.colorPrimary,
|
|
39
|
-
itemHoverBorder: e.colorPrimary,
|
|
40
|
-
trackBg: e.colorFillSecondary
|
|
41
|
-
};
|
|
42
|
-
}, u = (e) => {
|
|
43
|
-
if (!(!e || !c(e))) return {
|
|
44
|
-
colorBgContainer: e.datePickerColorBgContainer,
|
|
45
|
-
colorPrimary: e.colorPrimary,
|
|
46
|
-
headerColor: e.colorText,
|
|
47
|
-
headerHoverColor: e.colorPrimary,
|
|
48
|
-
colorText: e.colorText,
|
|
49
|
-
colorTextTertiary: e.colorTextTertiary ?? e.colorTextQuaternary,
|
|
50
|
-
cellSelectedBg: e.colorPrimary,
|
|
51
|
-
weekRangeBg: e.datePickerWeekRangeBg
|
|
52
|
-
};
|
|
53
|
-
}, d = (e) => {
|
|
54
|
-
let t = {
|
|
55
|
-
colorBgContainer: e.background?.color,
|
|
56
|
-
colorText: e.titleColor,
|
|
57
|
-
colorTextTertiary: e.overTitleColor,
|
|
58
|
-
colorFillSecondary: e.headerBackground,
|
|
59
|
-
colorPrimary: e.highlightColor,
|
|
60
|
-
colorLink: e.moreRecord,
|
|
61
|
-
colorTextQuaternary: e.specificallyColor,
|
|
62
|
-
datePickerColorBgContainer: e.dataChooseBackgroundColor ?? e.dataChooseBackroundColor,
|
|
63
|
-
datePickerWeekRangeBg: e.weekRangeBackgroundColor ?? e.weekRangeBackroundColor,
|
|
64
|
-
eventBorderColor: e.scheduleColor?.verticalBackground,
|
|
65
|
-
eventBg: e.scheduleColor?.horizontalBackground,
|
|
66
|
-
eventBgHover: e.scheduleColor?.horizontalBackgroundHover
|
|
67
|
-
};
|
|
68
|
-
return e.background?.type === "image" && e.background.image && (t.panelBgImage = e.background.image, t.panelBgImagePosition = e.background.position ?? "center"), t;
|
|
69
|
-
}, f = "#ff5631";
|
|
70
|
-
//#endregion
|
|
71
|
-
export { o as a, l as i, d as n, r as o, u as r, f as t };
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import "../../vendors/version-Dzs4mguZ.js";
|
|
2
|
-
import "../../DatePicker/ensureDayjsPlugins-CSqhjLS7.js";
|
|
3
|
-
import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "../layout-CpOabFQ2.js";
|
|
4
|
-
import { n as C, t as w } from "../colorUtils-BbeSMnOs.js";
|
|
5
|
-
import T from "dayjs";
|
|
6
|
-
//#region src/components/Calendar/utils/dateUtils.ts
|
|
7
|
-
var E = (t, n) => e(t, n), D = (e) => String(e).padStart(2, "0"), O = (e, t) => {
|
|
8
|
-
let n = E(e, t), r = n.startOf("month").startOf("isoWeek"), i = n.endOf("month").endOf("isoWeek").diff(r, "day") + 1;
|
|
9
|
-
return {
|
|
10
|
-
gridStart: r,
|
|
11
|
-
weekCount: Math.ceil(i / 7)
|
|
12
|
-
};
|
|
13
|
-
}, k = (e, t) => t("fullDate", {
|
|
14
|
-
year: e.year(),
|
|
15
|
-
month: D(e.month() + 1),
|
|
16
|
-
day: D(e.date())
|
|
17
|
-
}), A = (e, t, n, r) => E(e, r).add(t, n).toDate(), j = (e, t) => E(e, t).startOf("isoWeek"), M = (e, t) => E(e, t).endOf("isoWeek").startOf("day"), N = (e, t, n) => {
|
|
18
|
-
let r = E(e, t);
|
|
19
|
-
return n("yearMonth", {
|
|
20
|
-
year: r.year(),
|
|
21
|
-
month: D(r.month() + 1)
|
|
22
|
-
});
|
|
23
|
-
}, P = (e, t, n) => k(E(e, t), n), F = (e, t, n) => {
|
|
24
|
-
let r = E(e, n);
|
|
25
|
-
return r.date() === 1 ? t("monthDay", {
|
|
26
|
-
month: r.month() + 1,
|
|
27
|
-
day: r.date()
|
|
28
|
-
}) : String(r.date());
|
|
29
|
-
}, I = (e, t, n, r) => {
|
|
30
|
-
let i = E(e, n), a = E(t, n);
|
|
31
|
-
return i.year() === a.year() ? i.month() === a.month() ? r("dayOnly", { day: i.date() }) : r("monthDay", {
|
|
32
|
-
month: i.month() + 1,
|
|
33
|
-
day: i.date()
|
|
34
|
-
}) : k(i, r);
|
|
35
|
-
}, L = (e, t, n) => A(e, t, "day", n), R = (e, t, n) => A(e, t, "week", n), z = (e, t, n) => A(e, t, "month", n), B = (e, t, n, r) => t === "day" ? L(e, n, r) : t === "week" ? R(e, n, r) : z(e, n, r), V = (e, t) => O(e, t).weekCount, H = (e, t) => {
|
|
36
|
-
let { gridStart: n, weekCount: r } = O(e, t);
|
|
37
|
-
return Array.from({ length: r * 7 }, (e, t) => n.add(t, "day"));
|
|
38
|
-
}, U = (e, t) => {
|
|
39
|
-
let { gridStart: n, weekCount: r } = O(e, t);
|
|
40
|
-
return {
|
|
41
|
-
start: n,
|
|
42
|
-
end: n.add(r * 7, "day")
|
|
43
|
-
};
|
|
44
|
-
}, W = (e, t) => {
|
|
45
|
-
let n = E(e, t);
|
|
46
|
-
return n.year() * 12 + n.month();
|
|
47
|
-
}, G = (e, t, n) => W(e, n) === W(t, n), K = (e, t, n) => {
|
|
48
|
-
if (t === "day") {
|
|
49
|
-
let t = E(e, n).startOf("day");
|
|
50
|
-
return {
|
|
51
|
-
start: t,
|
|
52
|
-
end: t.add(1, "day")
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
if (t === "week") {
|
|
56
|
-
let t = j(e, n);
|
|
57
|
-
return {
|
|
58
|
-
start: t,
|
|
59
|
-
end: t.add(7, "day")
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
return t === "month" ? U(e, n) : {
|
|
63
|
-
start: null,
|
|
64
|
-
end: null
|
|
65
|
-
};
|
|
66
|
-
}, q = {
|
|
67
|
-
short: {
|
|
68
|
-
interval: 60,
|
|
69
|
-
rowHeight: 60,
|
|
70
|
-
totalRows: 24
|
|
71
|
-
},
|
|
72
|
-
medium: {
|
|
73
|
-
interval: 30,
|
|
74
|
-
rowHeight: 104,
|
|
75
|
-
totalRows: 48
|
|
76
|
-
},
|
|
77
|
-
long: {
|
|
78
|
-
interval: 15,
|
|
79
|
-
rowHeight: 148,
|
|
80
|
-
totalRows: 96
|
|
81
|
-
}
|
|
82
|
-
}, J = (e) => q[e] || q.medium, Y = (e, t) => e / t.interval * t.rowHeight, X = (e) => e.totalRows * e.rowHeight, Z = (e, t) => {
|
|
83
|
-
let n = e * t.interval, r = Math.floor(n / 60), i = n % 60;
|
|
84
|
-
return `${String(r).padStart(2, "0")}:${String(i).padStart(2, "0")}`;
|
|
85
|
-
}, Q = (e) => e ? T().tz(e) : T(), $ = (e) => {
|
|
86
|
-
let t = e ? T().tz(e).utcOffset() : T().utcOffset(), n = t >= 0 ? "+" : "-", r = Math.abs(t), i = Math.floor(r / 60), a = r % 60;
|
|
87
|
-
return a === 0 ? `GMT${n}${i}` : `GMT${n}${i}:${String(a).padStart(2, "0")}`;
|
|
88
|
-
}, ee = (t, n) => {
|
|
89
|
-
let r = Q(n);
|
|
90
|
-
return e(t, n).isSame(r, "day");
|
|
91
|
-
}, te = (e, t) => {
|
|
92
|
-
let n = Q(t);
|
|
93
|
-
return Y(n.hour() * 60 + n.minute(), e);
|
|
94
|
-
}, ne = (t, r, i, a) => Array.from({ length: 7 }, (s, c) => {
|
|
95
|
-
let l = r.add(c, "day").startOf("day"), u = l.add(1, "day"), d = [];
|
|
96
|
-
for (let r of t) {
|
|
97
|
-
let t = e(r.startTime, a), i = e(r.endTime, a);
|
|
98
|
-
n(t, i, l, u) && d.push({
|
|
99
|
-
...r,
|
|
100
|
-
startTime: t.isBefore(l) ? l : t,
|
|
101
|
-
endTime: i.isAfter(u) ? u : i
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
let { timedEvents: f } = o(d, i, {
|
|
105
|
-
allowStackLayout: !0,
|
|
106
|
-
timeZone: a
|
|
107
|
-
});
|
|
108
|
-
return f;
|
|
109
|
-
});
|
|
110
|
-
//#endregion
|
|
111
|
-
export { w as COLOR_SCHEME, v as MONTH_LAYOUT_CONSTANTS, q as ZOOM_CONFIG, L as addDays, z as addMonths, R as addWeeks, _ as assignAllDayRows, a as assignColumns, p as assignGlobalRows, g as assignMonthEventRows, h as calcAllDaySectionHeight, d as calculateExpansion, y as calculateHorizontalLayout, o as calculateLayout, u as calculateSegmentPosition, r as computeVisibility, m as computeWeekHiddenCounts, F as formatCalendarDayNumber, f as formatEventTime, P as formatFullDate, Z as formatTimeLabel, I as formatWeekEndDate, N as formatYearMonth, l as getCalendarEventId, W as getCalendarMonthKey, C as getColorScheme, Q as getCurrentTimeInTZ, te as getCurrentTimeTop, H as getDynamicMonthViewDates, U as getMonthViewRange, V as getMonthWeekCount, $ as getTimeZoneLabel, X as getTotalHeight, K as getVisibleRangeByMode, M as getWeekEnd, j as getWeekStart, J as getZoomConfig, s as groupIntoClusters, c as isAllDayEvent, G as isCurrentMonth, ee as isToday, ne as layoutTimedEventsForWeek, Y as minutesToPixels, t as normalizeData, n as overlapsHalfOpenInstant, b as overlapsRangeHalfOpen, e as parseCalendarTime, S as partitionCalendarEvents, B as shiftDateByMode, i as toAbsolutePosition, x as toGridPosition };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import "../../../vendors/version-Dzs4mguZ.js";
|
|
2
|
-
import "../../../DatePicker/ensureDayjsPlugins-CSqhjLS7.js";
|
|
3
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../../layout-CpOabFQ2.js";
|
|
4
|
-
export { u as MONTH_LAYOUT_CONSTANTS, l as assignAllDayRows, t as assignColumns, o as assignGlobalRows, c as assignMonthEventRows, a as calculateExpansion, d as calculateHorizontalLayout, n as calculateLayout, i as calculateSegmentPosition, e as computeVisibility, s as computeWeekHiddenCounts, r as groupIntoClusters };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import "../../../vendors/version-Dzs4mguZ.js";
|
|
2
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../../theme-Dc8hjcdo.js";
|
|
3
|
-
export { a as CALENDAR_CURRENT_TIME_COLOR, e as resolveCalendarThemeVars, i as resolveDatePickerThemeFromCalendar, n as resolvePlatformCalendarTheme, r as resolveScheduleColorVars, t as resolveSegmentedThemeFromCalendar };
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { a as e, i as t } from "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
2
|
-
import { t as n } from "../vendors/useFloatingOverlay-B3M9k8nj.js";
|
|
3
|
-
import { t as r } from "../vendors/useLocale-D31qCCff.js";
|
|
4
|
-
import { r as i } from "../vendors/animations-Dn_5xJ7B.js";
|
|
5
|
-
import { t as a } from "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
6
|
-
import { n as o } from "./pickerLocale-CcPLUbZO.js";
|
|
7
|
-
import { t as s } from "./style-W7f5wyUb.js";
|
|
8
|
-
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
|
-
import { Suspense as d, cloneElement as f, isValidElement as p, lazy as m, useCallback as h, useMemo as g } from "react";
|
|
10
|
-
import _ from "clsx";
|
|
11
|
-
import { useControllableValue as v } from "ahooks";
|
|
12
|
-
import { AnimatePresence as y, motion as b } from "motion/react";
|
|
13
|
-
import { FloatingPortal as x } from "@floating-ui/react";
|
|
14
|
-
import S from "dayjs";
|
|
15
|
-
var C = {
|
|
16
|
-
footer: "_footer_h6lng_1",
|
|
17
|
-
today: "_today_h6lng_11"
|
|
18
|
-
}, w = ({ onClick: e }) => {
|
|
19
|
-
let { t } = r();
|
|
20
|
-
return /* @__PURE__ */ l("div", {
|
|
21
|
-
className: C.footer,
|
|
22
|
-
children: /* @__PURE__ */ l("button", {
|
|
23
|
-
type: "button",
|
|
24
|
-
className: C.today,
|
|
25
|
-
onClick: e,
|
|
26
|
-
children: t("datePicker.today")
|
|
27
|
-
})
|
|
28
|
-
});
|
|
29
|
-
}, T = (e, t) => {
|
|
30
|
-
switch (t) {
|
|
31
|
-
case "week": return e.startOf("isoWeek");
|
|
32
|
-
case "month": return e.startOf("month");
|
|
33
|
-
case "year": return e.startOf("year");
|
|
34
|
-
default: return e.startOf("day");
|
|
35
|
-
}
|
|
36
|
-
}, E = {
|
|
37
|
-
"bsy-date-picker": "_bsy-date-picker_1i2le_1",
|
|
38
|
-
"bsy-date-picker__content": "_bsy-date-picker__content_1i2le_33",
|
|
39
|
-
"bsy-date-picker__divider": "_bsy-date-picker__divider_1i2le_43",
|
|
40
|
-
"bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_1i2le_49"
|
|
41
|
-
}, D = m(() => import("./DatePickerPanel-CtLwYPmz.js")), O = (m) => {
|
|
42
|
-
let { children: C, picker: O = "date", theme: k, getPopupContainer: A, triggerActiveClassName: j, zIndex: M } = m, { locale: N } = r(), P = e(M), [F, I] = v(m, {
|
|
43
|
-
defaultValuePropName: "defaultValue",
|
|
44
|
-
valuePropName: "value",
|
|
45
|
-
trigger: "onChange",
|
|
46
|
-
defaultValue: S().locale(o(N)).startOf("day")
|
|
47
|
-
}), { isOpen: L, setIsOpen: R, refs: z, floatingStyles: B, getReferenceProps: V, getFloatingProps: H } = n(), U = h((e) => {
|
|
48
|
-
e && (I(T(e, O)), R(!1));
|
|
49
|
-
}, [
|
|
50
|
-
O,
|
|
51
|
-
I,
|
|
52
|
-
R
|
|
53
|
-
]), W = h(() => {
|
|
54
|
-
U(S().locale(o(N)));
|
|
55
|
-
}, [U, N]), G = g(() => s(k), [k]), { portalRoot: K, portalMountKey: q, handleExitComplete: J } = a(L, A);
|
|
56
|
-
return p(C), /* @__PURE__ */ u(c, { children: [p(C) ? f(C, {
|
|
57
|
-
...V({ className: _(C.props.className, L && j) }),
|
|
58
|
-
ref: z.setReference
|
|
59
|
-
}) : C, /* @__PURE__ */ l(x, {
|
|
60
|
-
root: K,
|
|
61
|
-
children: /* @__PURE__ */ l(t, {
|
|
62
|
-
zIndex: P,
|
|
63
|
-
children: /* @__PURE__ */ l(y, {
|
|
64
|
-
onExitComplete: J,
|
|
65
|
-
children: L ? /* @__PURE__ */ l(b.div, {
|
|
66
|
-
ref: z.setFloating,
|
|
67
|
-
style: {
|
|
68
|
-
...B,
|
|
69
|
-
...G,
|
|
70
|
-
"--bsy-date-picker-z-index": P
|
|
71
|
-
},
|
|
72
|
-
...H(),
|
|
73
|
-
"data-bsy-date-picker": !0,
|
|
74
|
-
className: E["bsy-date-picker"],
|
|
75
|
-
...i,
|
|
76
|
-
children: /* @__PURE__ */ u("div", {
|
|
77
|
-
className: E["bsy-date-picker__content"],
|
|
78
|
-
children: [
|
|
79
|
-
/* @__PURE__ */ l(d, {
|
|
80
|
-
fallback: /* @__PURE__ */ l("div", {
|
|
81
|
-
className: E["bsy-date-picker__panel-loading"],
|
|
82
|
-
"aria-hidden": !0
|
|
83
|
-
}),
|
|
84
|
-
children: /* @__PURE__ */ l(D, {
|
|
85
|
-
picker: O,
|
|
86
|
-
value: F,
|
|
87
|
-
onChange: U
|
|
88
|
-
})
|
|
89
|
-
}),
|
|
90
|
-
/* @__PURE__ */ l("div", { className: E["bsy-date-picker__divider"] }),
|
|
91
|
-
/* @__PURE__ */ l(w, { onClick: W })
|
|
92
|
-
]
|
|
93
|
-
})
|
|
94
|
-
}, "bsy-date-picker-panel") : null
|
|
95
|
-
})
|
|
96
|
-
})
|
|
97
|
-
}, q)] });
|
|
98
|
-
};
|
|
99
|
-
O.displayName = "BsyDatePicker";
|
|
100
|
-
//#endregion
|
|
101
|
-
export { O as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import e from "dayjs";
|
|
2
|
-
import t from "dayjs/plugin/isoWeek";
|
|
3
|
-
import n from "dayjs/plugin/localeData";
|
|
4
|
-
import r from "dayjs/plugin/timezone";
|
|
5
|
-
import i from "dayjs/plugin/updateLocale";
|
|
6
|
-
import a from "dayjs/plugin/utc";
|
|
7
|
-
import o from "dayjs/plugin/weekday";
|
|
8
|
-
import "dayjs/locale/zh-cn";
|
|
9
|
-
import "dayjs/locale/zh-tw";
|
|
10
|
-
import "dayjs/locale/en";
|
|
11
|
-
import "@rc-component/picker/es/generate/dayjs";
|
|
12
|
-
//#region src/components/DatePicker/utils/ensureDayjsPlugins.ts
|
|
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
|
-
//#endregion
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import e from "@rc-component/picker/es/locale/en_US";
|
|
2
|
-
import t from "@rc-component/picker/es/locale/zh_CN";
|
|
3
|
-
import n from "@rc-component/picker/es/locale/zh_TW";
|
|
4
|
-
//#region src/components/DatePicker/utils/pickerLocale.ts
|
|
5
|
-
var r = {
|
|
6
|
-
"zh-CN": t,
|
|
7
|
-
"zh-TW": n,
|
|
8
|
-
"en-US": e
|
|
9
|
-
}, i = (e) => r[e] ?? t, a = {
|
|
10
|
-
"zh-CN": "zh-cn",
|
|
11
|
-
"zh-TW": "zh-tw",
|
|
12
|
-
"en-US": "en"
|
|
13
|
-
}, o = (e) => a[e] ?? "zh-cn";
|
|
14
|
-
//#endregion
|
|
15
|
-
export { o as n, i as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../vendors/cssVars-l4-kP_14.js";
|
|
2
|
-
import t from "tinycolor2";
|
|
3
|
-
//#region src/components/DatePicker/style/resolveDatePickerThemeVars.ts
|
|
4
|
-
var n = .3, r = "#fff", i = (i) => {
|
|
5
|
-
if (!i) return {};
|
|
6
|
-
let a = {};
|
|
7
|
-
if (e(a, "--bsy-date-picker-color-surface", i.colorBgContainer), e(a, "--bsy-date-picker-color-primary", i.colorPrimary), i.colorPrimaryHover) e(a, "--bsy-date-picker-color-primary-hover", i.colorPrimaryHover), e(a, "--bsy-date-picker-color-today-bg", i.colorPrimaryHover);
|
|
8
|
-
else if (i.colorPrimary) {
|
|
9
|
-
let r = t(i.colorPrimary).setAlpha(n).toRgbString();
|
|
10
|
-
e(a, "--bsy-date-picker-color-primary-hover", r), e(a, "--bsy-date-picker-color-today-bg", r);
|
|
11
|
-
}
|
|
12
|
-
return e(a, "--bsy-date-picker-color-arrow", i.headerColor), e(a, "--bsy-date-picker-color-header", i.headerColor), e(a, "--bsy-date-picker-color-header-hover", i.headerHoverColor), e(a, "--bsy-date-picker-color-cell", i.colorText), e(a, "--bsy-date-picker-color-cell-tertiary", i.colorTextTertiary), e(a, "--bsy-date-picker-color-cell-selected-bg", i.cellSelectedBg), e(a, "--bsy-date-picker-color-week-row-bg", i.weekRangeBg), i.cellSelectedBg && (a["--bsy-date-picker-color-cell-selected"] = r), a;
|
|
13
|
-
};
|
|
14
|
-
//#endregion
|
|
15
|
-
export { i as t };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../vendors/cssVars-l4-kP_14.js";
|
|
2
|
-
//#region src/components/DropDown/style/resolveDropDownThemeVars.ts
|
|
3
|
-
var t = (t) => {
|
|
4
|
-
if (!t) return {};
|
|
5
|
-
let n = {};
|
|
6
|
-
return e(n, "--bsy-dropdown-color-bg", t.colorBgContainer), e(n, "--bsy-dropdown-color-text", t.colorText), e(n, "--bsy-dropdown-color-icon", t.colorIcon), e(n, "--bsy-dropdown-color-text-disabled", t.colorTextDisabled), e(n, "--bsy-dropdown-item-hover-bg", t.itemHoverBg), e(n, "--bsy-dropdown-item-active-bg", t.itemActiveBg), e(n, "--bsy-dropdown-item-active-color", t.itemActiveColor), n;
|
|
7
|
-
};
|
|
8
|
-
//#endregion
|
|
9
|
-
export { t };
|