@baishuyun/ui-base 6.4.2 → 6.5.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-DL5dLiUm.js → Amap-Dnvu_pUP.js} +1 -1
- package/dist/Amap/AmapCircle/index.js +3 -3
- package/dist/Amap/{AmapCircle-mh92P2l6.js → AmapCircle-Wfn43qco.js} +1 -1
- package/dist/Amap/AmapMarker/index.js +4 -4
- package/dist/Amap/{AmapMarker-DYW0-8Hd.js → AmapMarker-CB66dQIG.js} +2 -2
- package/dist/Amap/AmapMarkerCluster/index.js +4 -4
- package/dist/Amap/{AmapMarkerCluster-BRVHHMbi.js → AmapMarkerCluster-DvXchCC0.js} +2 -2
- package/dist/Amap/AmapProvider/index.js +4 -4
- package/dist/Amap/{AmapProvider-CwKdpmCg.js → AmapProvider-XCrqzo9W.js} +2 -2
- package/dist/Amap/hooks/index.js +2 -2
- package/dist/Amap/{hooks-D1m8KgVM.js → hooks-DwRvpafb.js} +1 -1
- package/dist/Amap/index.js +10 -10
- package/dist/Calendar/{AllDaySection-CseF1DuB.js → AllDaySection-M-b9tRHh.js} +4 -4
- package/dist/Calendar/{Calendar-Yu2HfA5D.js → Calendar-C9PhASp0.js} +13 -13
- package/dist/Calendar/{CurrentTimeIndicator-CUeblc9r.js → CurrentTimeIndicator-Dpi36eVJ.js} +1 -1
- package/dist/Calendar/{EventCard-L6jaKgEw.js → EventCard-BIfRqCk5.js} +3 -3
- package/dist/Calendar/{TimeGrid-B8lvUb1W.js → TimeGrid-Dk3soSo4.js} +2 -2
- package/dist/Calendar/context/index.js +1 -1
- package/dist/Calendar/index.js +19 -19
- package/dist/Calendar/subcomponents/AllDaySection/index.js +7 -7
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +4 -4
- package/dist/Calendar/subcomponents/EventCard/index.js +5 -5
- package/dist/Calendar/subcomponents/TimeAxis/index.js +3 -3
- package/dist/Calendar/subcomponents/TimeGrid/index.js +3 -3
- package/dist/Calendar/{theme-BzNDRi0U.js → theme-Cgn0zQoC.js} +2 -2
- package/dist/Calendar/utils/index.js +3 -3
- package/dist/Calendar/utils/layout/index.js +2 -2
- package/dist/Calendar/utils/theme/index.js +1 -1
- package/dist/Card/{Card-CRrtIjNT.js → Card-BjWdQRjq.js} +1 -1
- package/dist/Card/index.js +2 -2
- package/dist/CheckBox/{CheckBox-DIunYcfS.js → CheckBox-81R8QKHb.js} +1 -1
- package/dist/CheckBox/{CheckBox-CkVe5Boq.js → CheckBox-ejvbDr-a.js} +1 -1
- package/dist/CheckBox/index.js +3 -3
- package/dist/ColorPicker/{ColorPicker-By-Y8Tyz.js → ColorPicker-aj57lMA5.js} +5 -5
- package/dist/ColorPicker/index.js +6 -6
- package/dist/ConfigProvider/index.js +2 -2
- package/dist/DatePicker/{DatePicker-PCdNachD.js → DatePicker-EIFyC9zF.js} +6 -6
- package/dist/DatePicker/{DatePickerPanel-HoxXteK0.js → DatePickerPanel-BjnLfncu.js} +5 -5
- package/dist/DatePicker/index.js +7 -7
- package/dist/DatePicker/style/index.js +1 -1
- package/dist/DatePicker/{style-DZaSSoNs.js → style-BxWyBhZ3.js} +1 -1
- package/dist/DropDown/DropDown-B34vfoOs.js +172 -0
- package/dist/DropDown/index.js +8 -7
- package/dist/DropDown/style/index.js +2 -0
- package/dist/DropDown/style-4LK6rNHe.js +9 -0
- package/dist/Editor/{Buttons-DmSUkHWl.js → Buttons-Ds6bLmnl.js} +6 -6
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +15 -14
- package/dist/Editor/index.js +15 -14
- package/dist/Gantt/GanttChart/index.js +15 -14
- package/dist/Gantt/{GanttChart-BgDJOyW1.js → GanttChart-CnIWe_wk.js} +672 -590
- package/dist/Gantt/GanttTable/index.js +9 -9
- package/dist/Gantt/{GanttTable-Di_p-0M1.js → GanttTable-C3PLGmKr.js} +20 -19
- package/dist/Gantt/GanttToolBar/index.js +11 -10
- package/dist/Gantt/GanttToolBar-8jPQ9BAG.js +121 -0
- package/dist/Gantt/{collapseKeys-C8139wvy.js → collapseKeys-1N9ci2oJ.js} +2 -2
- package/dist/Gantt/index.js +195 -162
- package/dist/Gantt/theme-C197Dtjy.js +31 -0
- package/dist/Gantt/{timelineViewConfig-BXl2UkN8.js → timelineViewConfig-Dl3AXO45.js} +1 -1
- package/dist/Gantt/utils/index.js +5 -5
- package/dist/Gantt/utils/theme/index.js +2 -0
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/InputTag-CGQ5dXyf.js +143 -0
- package/dist/InputTag/index.js +3 -2
- package/dist/Loading/index.js +1 -1
- package/dist/Modal/{Modal-D3LFqIV4.js → Modal-GGHNlZv3.js} +1 -1
- package/dist/Modal/index.js +2 -2
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollBar/ScrollBar-CSGBOE3e.js +68 -0
- package/dist/ScrollBar/index.js +2 -0
- package/dist/Segmented/{Segmented-BTW445jc.js → Segmented-CzVKrL6o.js} +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/{Select-OjCjCogR.js → Select-B0r9VgF6.js} +199 -200
- package/dist/Select/{SelectInputSearch-DXPTGSc2.js → SelectInputSearch-BDwg-Noi.js} +2 -2
- package/dist/Select/index.js +12 -11
- package/dist/Table/Table-BtH9Oa14.js +545 -0
- package/dist/Table/hooks/index.js +1 -1
- package/dist/Table/{hooks-CJ2CnSep.js → hooks-DK8Pf7iH.js} +1 -1
- package/dist/Table/index.js +8 -7
- package/dist/Table/{processRowspan-BCzfI5un.js → processRowspan-D4uv6zLk.js} +1 -1
- package/dist/Table/style/index.js +2 -0
- package/dist/Table/style-BwcnT2ee.js +9 -0
- package/dist/Table/utils/index.js +1 -1
- package/dist/Tabs/{Tabs-DVQcB3YG.js → Tabs-7wEcxUv6.js} +4 -4
- package/dist/Tabs/index.js +4 -4
- package/dist/Tooltip/{Tooltip-DW_XP13m.js → Tooltip-B_SZOy6k.js} +41 -44
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +4 -4
- package/dist/components/DropDown/index.d.ts +1 -0
- package/dist/components/DropDown/interface.d.ts +45 -0
- package/dist/components/DropDown/style/__tests__/resolveDropDownThemeVars.test.d.ts +1 -0
- package/dist/components/DropDown/style/index.d.ts +1 -0
- package/dist/components/DropDown/style/resolveDropDownThemeVars.d.ts +2 -0
- package/dist/components/Gantt/Gantt.d.ts +1 -1
- package/dist/components/Gantt/GanttChart/hooks/useEdgeScroll.d.ts +1 -1
- package/dist/components/Gantt/GanttTable/GanttTable.d.ts +1 -1
- package/dist/components/Gantt/GanttThemeContext.d.ts +3 -0
- package/dist/components/Gantt/index.d.ts +2 -1
- package/dist/components/Gantt/interface.d.ts +39 -0
- package/dist/components/Gantt/internal/GanttLayout.d.ts +1 -1
- package/dist/components/Gantt/types.internal.d.ts +2 -0
- package/dist/components/Gantt/utils/theme/__tests__/resolveGanttTheme.test.d.ts +1 -0
- package/dist/components/Gantt/utils/theme/__tests__/resolveGanttThemeVars.test.d.ts +1 -0
- package/dist/components/Gantt/utils/theme/__tests__/resolveTableThemeFromGantt.test.d.ts +1 -0
- package/dist/components/Gantt/utils/theme/index.d.ts +3 -0
- package/dist/components/Gantt/utils/theme/resolveGanttTheme.d.ts +3 -0
- package/dist/components/Gantt/utils/theme/resolveGanttThemeVars.d.ts +5 -0
- package/dist/components/Gantt/utils/theme/resolveTableThemeFromGantt.d.ts +4 -0
- package/dist/components/ScrollBar/ScrollBar.d.ts +3 -0
- package/dist/components/ScrollBar/__tests__/ScrollBar.test.d.ts +1 -0
- package/dist/components/ScrollBar/index.d.ts +3 -0
- package/dist/components/ScrollBar/interface.d.ts +23 -0
- package/dist/components/Table/index.d.ts +2 -1
- package/dist/components/Table/interface.d.ts +17 -0
- package/dist/components/Table/style/__tests__/resolveTableThemeVars.test.d.ts +1 -0
- package/dist/components/Table/style/index.d.ts +1 -0
- package/dist/components/Table/style/resolveTableThemeVars.d.ts +3 -0
- package/dist/components/index.d.ts +5 -2
- package/dist/index.js +50 -47
- package/dist/style.css +1 -1
- package/dist/utils/mergeRefs.d.ts +1 -0
- package/dist/vendors/{ConfigProvider-DwmA94S2.js → ConfigProvider-AQTr7T_c.js} +1 -1
- package/dist/vendors/{Tree-C7BgkjCQ.js → Tree-DqnOGJtB.js} +3 -3
- package/dist/vendors/mergeRefs-TiJ0xjUN.js +9 -0
- package/dist/vendors/{useLocale-BTz4slNW.js → useLocale-DZ8XW2VL.js} +1 -1
- package/package.json +1 -2
- package/dist/DropDown/DropDown-CvQAbsEo.js +0 -168
- package/dist/Gantt/GanttToolBar-D5pQdrzv.js +0 -105
- package/dist/InputTag/InputTag-zP5QdId7.js +0 -139
- package/dist/Table/Table-3-kFIm5v.js +0 -543
- /package/dist/Amap/{AmapContext-JaYk1a3H.js → AmapContext-CFmsMycg.js} +0 -0
- /package/dist/Amap/{useMarkerInfoWindowController-CRgf2I0Q.js → useMarkerInfoWindowController-G-Bg-NDJ.js} +0 -0
- /package/dist/Calendar/{TimeAxis-cK2_3FeM.js → TimeAxis-Chwxo6Yj.js} +0 -0
- /package/dist/Calendar/{colorUtils-DcpqM3KR.js → colorUtils-FNbm3zBQ.js} +0 -0
- /package/dist/Calendar/{context-DNOJ9LW_.js → context-CzS6P3nk.js} +0 -0
- /package/dist/Calendar/{layout-CaPxiRd-.js → layout-Cb39seCc.js} +0 -0
- /package/dist/DatePicker/{ensureDayjsPlugins-C3aqki6i.js → ensureDayjsPlugins-DxqbKqon.js} +0 -0
- /package/dist/DatePicker/{pickerLocale-VqSP_iIm.js → pickerLocale-CtDOOxxD.js} +0 -0
- /package/dist/Gantt/{GanttHighlightContext-AIpN3-af.js → GanttHighlightContext-CtT98ZnK.js} +0 -0
- /package/dist/Gantt/{columnResize-By_1E48E.js → columnResize-DFe7F98O.js} +0 -0
- /package/dist/Gantt/{constants-D4ur8WRs.js → constants-CrBb5i5p.js} +0 -0
- /package/dist/Gantt/{highlightTarget-DmzCIiQb.js → highlightTarget-DtCe7zto.js} +0 -0
- /package/dist/Icon/{Icon-BQ3Whub2.js → Icon-SQ5tu-yG.js} +0 -0
- /package/dist/Loading/{Loading-WjmzBabh.js → Loading-ho-6d72M.js} +0 -0
- /package/dist/NotFoundContent/{NotFoundContent-7xV-zOG2.js → NotFoundContent-CV9fTylQ.js} +0 -0
- /package/dist/Radio/{Radio-DkrZHoG1.js → Radio-C2zJzZc3.js} +0 -0
- /package/dist/Table/{constants-CKqc9Os_.js → constants-CuBlYZLO.js} +0 -0
- /package/dist/vendors/{LocaleContext-BJdHS0sH.js → LocaleContext-CBcJzvUD.js} +0 -0
- /package/dist/vendors/{animations-BeI8JZp1.js → animations-Mlw78WYo.js} +0 -0
- /package/dist/vendors/{color-BeQo449h.js → color-BQYy0Wgy.js} +0 -0
- /package/dist/vendors/{cssVars-C4BlzyxA.js → cssVars-DoQgQ2CM.js} +0 -0
- /package/dist/vendors/{useFloatingOverlay-3KB88hpZ.js → useFloatingOverlay-WbbHmuT-.js} +0 -0
- /package/dist/vendors/{useFloatingPortal-DsEtsAGW.js → useFloatingPortal-B2SDNV5C.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "../../vendors/LocaleContext-
|
|
2
|
-
import "../../vendors/useLocale-
|
|
3
|
-
import "../../Table/processRowspan-
|
|
4
|
-
import "../../Table/Table-
|
|
5
|
-
import "../../Table/hooks-
|
|
6
|
-
import "../constants-
|
|
7
|
-
import "../columnResize-
|
|
8
|
-
import { t as e } from "../GanttTable-
|
|
9
|
-
import "../GanttHighlightContext-
|
|
1
|
+
import "../../vendors/LocaleContext-CBcJzvUD.js";
|
|
2
|
+
import "../../vendors/useLocale-DZ8XW2VL.js";
|
|
3
|
+
import "../../Table/processRowspan-D4uv6zLk.js";
|
|
4
|
+
import "../../Table/Table-BtH9Oa14.js";
|
|
5
|
+
import "../../Table/hooks-DK8Pf7iH.js";
|
|
6
|
+
import "../constants-CrBb5i5p.js";
|
|
7
|
+
import "../columnResize-DFe7F98O.js";
|
|
8
|
+
import { t as e } from "../GanttTable-C3PLGmKr.js";
|
|
9
|
+
import "../GanttHighlightContext-CtT98ZnK.js";
|
|
10
10
|
export { e as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "../Table/Table-
|
|
2
|
-
import { l as t } from "./constants-
|
|
3
|
-
import { r as n } from "./columnResize-
|
|
4
|
-
import { t as r } from "./GanttHighlightContext-
|
|
5
|
-
import { r as i } from "./highlightTarget-
|
|
1
|
+
import { t as e } from "../Table/Table-BtH9Oa14.js";
|
|
2
|
+
import { l as t } from "./constants-CrBb5i5p.js";
|
|
3
|
+
import { r as n } from "./columnResize-DFe7F98O.js";
|
|
4
|
+
import { t as r } from "./GanttHighlightContext-CtT98ZnK.js";
|
|
5
|
+
import { r as i } from "./highlightTarget-DtCe7zto.js";
|
|
6
6
|
import { jsx as a } from "react/jsx-runtime";
|
|
7
7
|
import { useCallback as o, useMemo as s } from "react";
|
|
8
8
|
import { useContextSelector as c } from "use-context-selector";
|
|
@@ -42,23 +42,23 @@ function u(e = []) {
|
|
|
42
42
|
}
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/components/Gantt/GanttTable/GanttTable.tsx
|
|
45
|
-
var d = ({ data: l = [], columns: d = [], onRowClick: f, rowHeight: p = 34 }) => {
|
|
46
|
-
let
|
|
45
|
+
var d = ({ data: l = [], columns: d = [], onRowClick: f, rowHeight: p = 34, tableTheme: m }) => {
|
|
46
|
+
let h = c(r, (e) => e.setTableHighlightTarget), { columns: g, resizable: _, disabledResizeColumns: v, onColumnResizeEnd: y } = n(s(() => u(d), [d])), b = o((e) => {
|
|
47
47
|
let t = i(e);
|
|
48
|
-
t &&
|
|
49
|
-
}, [
|
|
50
|
-
|
|
51
|
-
}, [
|
|
48
|
+
t && h?.(t);
|
|
49
|
+
}, [h]), x = o(() => {
|
|
50
|
+
h?.(null);
|
|
51
|
+
}, [h]);
|
|
52
52
|
return /* @__PURE__ */ a(e, {
|
|
53
|
-
columns:
|
|
53
|
+
columns: g,
|
|
54
54
|
dataSource: l,
|
|
55
55
|
rowKey: "id",
|
|
56
56
|
rowHeightStyle: "low",
|
|
57
57
|
bordered: !1,
|
|
58
58
|
hasFooter: !1,
|
|
59
|
-
resizable:
|
|
60
|
-
disabledResizeColumns:
|
|
61
|
-
onColumnResizeEnd:
|
|
59
|
+
resizable: _,
|
|
60
|
+
disabledResizeColumns: v,
|
|
61
|
+
onColumnResizeEnd: y,
|
|
62
62
|
scroll: { y: "100%" },
|
|
63
63
|
estimateSize: () => p,
|
|
64
64
|
headerRowSpan: t,
|
|
@@ -71,11 +71,12 @@ var d = ({ data: l = [], columns: d = [], onRowClick: f, rowHeight: p = 34 }) =>
|
|
|
71
71
|
...n,
|
|
72
72
|
"data-highlight-id": r?.id || "",
|
|
73
73
|
"data-highlight-type": r?.type || "",
|
|
74
|
-
onMouseEnter: () =>
|
|
75
|
-
onMouseLeave:
|
|
74
|
+
onMouseEnter: () => b(e),
|
|
75
|
+
onMouseLeave: x
|
|
76
76
|
};
|
|
77
|
-
}, [
|
|
78
|
-
emptyText: " "
|
|
77
|
+
}, [b, x]),
|
|
78
|
+
emptyText: " ",
|
|
79
|
+
theme: m
|
|
79
80
|
});
|
|
80
81
|
};
|
|
81
82
|
d.displayName = "GanttTable";
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import "../../
|
|
2
|
-
import "../../
|
|
3
|
-
import "../../vendors/
|
|
4
|
-
import "../../
|
|
5
|
-
import "../../
|
|
6
|
-
import "../../
|
|
7
|
-
import "../../
|
|
8
|
-
import "
|
|
9
|
-
import "../
|
|
10
|
-
import
|
|
1
|
+
import "../../ScrollBar/ScrollBar-CSGBOE3e.js";
|
|
2
|
+
import "../../Icon/Icon-SQ5tu-yG.js";
|
|
3
|
+
import "../../vendors/LocaleContext-CBcJzvUD.js";
|
|
4
|
+
import "../../vendors/useLocale-DZ8XW2VL.js";
|
|
5
|
+
import "../../Select/SelectInputSearch-BDwg-Noi.js";
|
|
6
|
+
import "../../NotFoundContent/NotFoundContent-CV9fTylQ.js";
|
|
7
|
+
import "../../vendors/useFloatingPortal-B2SDNV5C.js";
|
|
8
|
+
import "../../DropDown/DropDown-B34vfoOs.js";
|
|
9
|
+
import "../constants-CrBb5i5p.js";
|
|
10
|
+
import "../timelineViewConfig-Dl3AXO45.js";
|
|
11
|
+
import { t as e } from "../GanttToolBar-8jPQ9BAG.js";
|
|
11
12
|
export { e as default };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
|
|
2
|
+
import { t } from "../vendors/useLocale-DZ8XW2VL.js";
|
|
3
|
+
import { t as n } from "../DropDown/DropDown-B34vfoOs.js";
|
|
4
|
+
import { l as r } from "./timelineViewConfig-Dl3AXO45.js";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
import { createContext as o, useCallback as s, useContext as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
7
|
+
import f from "clsx";
|
|
8
|
+
//#region src/components/Gantt/utils/localeKey.ts
|
|
9
|
+
var p = (e) => e.startsWith("gantt.") ? e : `gantt.${e}`, m = o(void 0), h = m.Provider, g = () => c(m), _ = {
|
|
10
|
+
modeTrigger: "_modeTrigger_cbumr_1",
|
|
11
|
+
todayBtn: "_todayBtn_cbumr_1",
|
|
12
|
+
iconBtn: "_iconBtn_cbumr_1",
|
|
13
|
+
root: "_root_cbumr_8",
|
|
14
|
+
modeTriggerArrow: "_modeTriggerArrow_cbumr_29",
|
|
15
|
+
isActive: "_isActive_cbumr_29",
|
|
16
|
+
modeTriggerLabel: "_modeTriggerLabel_cbumr_36",
|
|
17
|
+
divider: "_divider_cbumr_60",
|
|
18
|
+
scrollBtns: "_scrollBtns_cbumr_67"
|
|
19
|
+
}, v = ".bsy-form-view-data-manager", y = {
|
|
20
|
+
oneMinute: "mode.oneMinute",
|
|
21
|
+
tenMinute: "mode.tenMinute",
|
|
22
|
+
halfHour: "mode.halfHour",
|
|
23
|
+
hour: "mode.hour",
|
|
24
|
+
sixHour: "mode.sixHour",
|
|
25
|
+
halfDay: "mode.halfDay",
|
|
26
|
+
day: "mode.day",
|
|
27
|
+
week: "mode.week",
|
|
28
|
+
month: "mode.month",
|
|
29
|
+
quarter: "mode.quarter",
|
|
30
|
+
quarterMonth: "mode.quarterMonth",
|
|
31
|
+
year: "mode.year"
|
|
32
|
+
}, b = ({ viewMode: o = "day", availableModes: c, onViewModeChange: m, onTodayClick: h, onScrollPrev: b, onScrollNext: x, className: S = "" }) => {
|
|
33
|
+
let { t: C } = t(), w = g()?.dropdownTheme, T = s((e) => C(p(y[e])), [C]), E = u(null), [D, O] = d(!1), k = s(() => {
|
|
34
|
+
let e = E.current;
|
|
35
|
+
if (!e) return document.body;
|
|
36
|
+
let t = e.closest(v);
|
|
37
|
+
return t instanceof HTMLElement ? t : document.body;
|
|
38
|
+
}, []), A = l(() => {
|
|
39
|
+
let e = new Set(c ?? r);
|
|
40
|
+
return r.filter((t) => e.has(t)).map((e) => ({
|
|
41
|
+
key: e,
|
|
42
|
+
label: T(e)
|
|
43
|
+
}));
|
|
44
|
+
}, [c, T]), j = l(() => A.find((e) => e.key === o)?.label ?? o, [A, o]), M = s((e) => {
|
|
45
|
+
e?.key && e.key !== o && m?.(e.key);
|
|
46
|
+
}, [m, o]);
|
|
47
|
+
return /* @__PURE__ */ a("div", {
|
|
48
|
+
className: f(_.root, S),
|
|
49
|
+
"data-testid": "gantt-toolbar",
|
|
50
|
+
ref: E,
|
|
51
|
+
children: [
|
|
52
|
+
/* @__PURE__ */ i(n, {
|
|
53
|
+
menus: A,
|
|
54
|
+
activeKey: [o],
|
|
55
|
+
showSearch: !1,
|
|
56
|
+
visible: D,
|
|
57
|
+
onOpenChange: O,
|
|
58
|
+
offset: {
|
|
59
|
+
x: 0,
|
|
60
|
+
y: 4
|
|
61
|
+
},
|
|
62
|
+
zIndex: 10001,
|
|
63
|
+
getPopupContainer: k,
|
|
64
|
+
onClick: M,
|
|
65
|
+
theme: w,
|
|
66
|
+
style: {
|
|
67
|
+
width: 100,
|
|
68
|
+
minWidth: 100
|
|
69
|
+
},
|
|
70
|
+
children: /* @__PURE__ */ a("button", {
|
|
71
|
+
type: "button",
|
|
72
|
+
className: f(_.modeTrigger, { [_.isActive]: D }),
|
|
73
|
+
"data-testid": "gantt-toolbar-mode-trigger",
|
|
74
|
+
"aria-haspopup": "listbox",
|
|
75
|
+
"aria-expanded": D,
|
|
76
|
+
children: [/* @__PURE__ */ i("span", {
|
|
77
|
+
className: _.modeTriggerLabel,
|
|
78
|
+
children: j
|
|
79
|
+
}), /* @__PURE__ */ i("span", {
|
|
80
|
+
className: _.modeTriggerArrow,
|
|
81
|
+
children: /* @__PURE__ */ i(e, {
|
|
82
|
+
name: "arrow-down",
|
|
83
|
+
size: 16
|
|
84
|
+
})
|
|
85
|
+
})]
|
|
86
|
+
})
|
|
87
|
+
}),
|
|
88
|
+
/* @__PURE__ */ i("span", { className: _.divider }),
|
|
89
|
+
/* @__PURE__ */ i("button", {
|
|
90
|
+
type: "button",
|
|
91
|
+
className: _.todayBtn,
|
|
92
|
+
onClick: h,
|
|
93
|
+
children: C("gantt.today")
|
|
94
|
+
}),
|
|
95
|
+
/* @__PURE__ */ a("div", {
|
|
96
|
+
className: _.scrollBtns,
|
|
97
|
+
children: [/* @__PURE__ */ i("button", {
|
|
98
|
+
type: "button",
|
|
99
|
+
className: _.iconBtn,
|
|
100
|
+
"aria-label": C("gantt.aria.scrollPrev"),
|
|
101
|
+
onClick: b,
|
|
102
|
+
children: /* @__PURE__ */ i(e, {
|
|
103
|
+
name: "Pulldownleft",
|
|
104
|
+
size: 16
|
|
105
|
+
})
|
|
106
|
+
}), /* @__PURE__ */ i("button", {
|
|
107
|
+
type: "button",
|
|
108
|
+
className: _.iconBtn,
|
|
109
|
+
"aria-label": C("gantt.aria.scrollNext"),
|
|
110
|
+
onClick: x,
|
|
111
|
+
children: /* @__PURE__ */ i(e, {
|
|
112
|
+
name: "Pulldownright",
|
|
113
|
+
size: 16
|
|
114
|
+
})
|
|
115
|
+
})]
|
|
116
|
+
})
|
|
117
|
+
]
|
|
118
|
+
});
|
|
119
|
+
};
|
|
120
|
+
//#endregion
|
|
121
|
+
export { h as n, p as r, b as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { m as e, n as t, r as n, t as r } from "./constants-
|
|
2
|
-
import { n as i, r as a, t as o } from "./timelineViewConfig-
|
|
1
|
+
import { m as e, n as t, r as n, t as r } from "./constants-CrBb5i5p.js";
|
|
2
|
+
import { n as i, r as a, t as o } from "./timelineViewConfig-Dl3AXO45.js";
|
|
3
3
|
import { isString as s } from "lodash-es";
|
|
4
4
|
import c from "dayjs";
|
|
5
5
|
import l from "dayjs/plugin/isoWeek";
|