@baishuyun/ui-base 6.6.0 → 6.7.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.
Files changed (97) hide show
  1. package/dist/Calendar/{AllDaySection-M-b9tRHh.js → AllDaySection-DOMayJvh.js} +3 -3
  2. package/dist/Calendar/{Calendar-C9PhASp0.js → Calendar-DSqL58yh.js} +11 -11
  3. package/dist/Calendar/{CurrentTimeIndicator-Dpi36eVJ.js → CurrentTimeIndicator-CgDrVXin.js} +1 -1
  4. package/dist/Calendar/{EventCard-BIfRqCk5.js → EventCard-BGDwQ-c7.js} +3 -3
  5. package/dist/Calendar/{TimeGrid-Dk3soSo4.js → TimeGrid-KeZ4RsDq.js} +1 -1
  6. package/dist/Calendar/context/index.js +1 -1
  7. package/dist/Calendar/index.js +16 -15
  8. package/dist/Calendar/subcomponents/AllDaySection/index.js +6 -6
  9. package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +4 -4
  10. package/dist/Calendar/subcomponents/EventCard/index.js +5 -5
  11. package/dist/Calendar/subcomponents/TimeAxis/index.js +3 -3
  12. package/dist/Calendar/subcomponents/TimeGrid/index.js +2 -2
  13. package/dist/Calendar/{theme-Cgn0zQoC.js → theme-qcYESlpU.js} +2 -2
  14. package/dist/Calendar/utils/index.js +3 -3
  15. package/dist/Calendar/utils/layout/index.js +2 -2
  16. package/dist/Calendar/utils/theme/index.js +1 -1
  17. package/dist/CheckBox/{CheckBox-81R8QKHb.js → CheckBox-GtT43IQ8.js} +1 -1
  18. package/dist/CheckBox/index.js +2 -2
  19. package/dist/ColorPicker/{ColorPicker-aj57lMA5.js → ColorPicker-Hjs4Vp5a.js} +37 -35
  20. package/dist/ColorPicker/index.js +2 -1
  21. package/dist/DatePicker/DatePicker-DnH3zblC.js +96 -0
  22. package/dist/DatePicker/{DatePickerPanel-BjnLfncu.js → DatePickerPanel-CQGrY4wT.js} +2 -2
  23. package/dist/DatePicker/index.js +5 -4
  24. package/dist/DatePicker/style/index.js +1 -1
  25. package/dist/DatePicker/{style-BxWyBhZ3.js → style-BlAisgTN.js} +1 -1
  26. package/dist/DropDown/DropDown-D_Zh6fGX.js +171 -0
  27. package/dist/DropDown/index.js +6 -5
  28. package/dist/DropDown/style/index.js +1 -1
  29. package/dist/DropDown/{style-4LK6rNHe.js → style-WiojFVQn.js} +1 -1
  30. package/dist/Editor/{Buttons-Ds6bLmnl.js → Buttons-De6NyZQs.js} +3 -3
  31. package/dist/Editor/ToolbarPlugin/Buttons/index.js +10 -9
  32. package/dist/Editor/index.js +10 -9
  33. package/dist/Gantt/GanttChart/index.js +13 -12
  34. package/dist/Gantt/{GanttChart-DbI1fvxe.js → GanttChart-MwVs4NFd.js} +7 -7
  35. package/dist/Gantt/GanttTable/index.js +7 -7
  36. package/dist/Gantt/{GanttTable-C3PLGmKr.js → GanttTable-DoDMELyN.js} +5 -5
  37. package/dist/Gantt/GanttToolBar/index.js +9 -8
  38. package/dist/Gantt/{GanttToolBar-8jPQ9BAG.js → GanttToolBar-BAAQMT0x.js} +2 -2
  39. package/dist/Gantt/{collapseKeys-1N9ci2oJ.js → collapseKeys-VeqoqKwC.js} +2 -2
  40. package/dist/Gantt/index.js +20 -19
  41. package/dist/Gantt/{theme-C197Dtjy.js → theme-DLS8mdri.js} +1 -1
  42. package/dist/Gantt/{timelineViewConfig-Dl3AXO45.js → timelineViewConfig-C1T1exJd.js} +1 -1
  43. package/dist/Gantt/utils/index.js +5 -5
  44. package/dist/Gantt/utils/theme/index.js +1 -1
  45. package/dist/InputTag/{InputTag-CGQ5dXyf.js → InputTag-C4iRY5Mw.js} +1 -1
  46. package/dist/InputTag/index.js +2 -2
  47. package/dist/Loading/index.js +1 -1
  48. package/dist/NotFoundContent/index.js +1 -1
  49. package/dist/Radio/index.js +1 -1
  50. package/dist/ScrollBar/{ScrollBar-CSGBOE3e.js → ScrollBar-C4-PtPBc.js} +1 -1
  51. package/dist/ScrollBar/index.js +1 -1
  52. package/dist/Segmented/{Segmented-CzVKrL6o.js → Segmented-Ck2ZmfF7.js} +13 -12
  53. package/dist/Segmented/index.js +1 -1
  54. package/dist/Select/Select-CAoozrW7.js +743 -0
  55. package/dist/Select/index.js +10 -9
  56. package/dist/Table/{Table-BtH9Oa14.js → Table-BZspRsYV.js} +4 -4
  57. package/dist/Table/hooks/index.js +1 -1
  58. package/dist/Table/{hooks-DK8Pf7iH.js → hooks-5ETrGbzY.js} +1 -1
  59. package/dist/Table/index.js +5 -5
  60. package/dist/Table/{processRowspan-D4uv6zLk.js → processRowspan-CSW5J9Rs.js} +1 -1
  61. package/dist/Table/style/index.js +1 -1
  62. package/dist/Table/{style-BwcnT2ee.js → style-qi0sTT0x.js} +1 -1
  63. package/dist/Table/utils/index.js +1 -1
  64. package/dist/Tabs/{Tabs-7wEcxUv6.js → Tabs-sag2ofoG.js} +1 -1
  65. package/dist/Tabs/index.js +2 -2
  66. package/dist/Tooltip/{Tooltip-B_SZOy6k.js → Tooltip-DWWWYn1a.js} +1 -1
  67. package/dist/Tooltip/index.js +1 -1
  68. package/dist/Tree/index.js +3 -3
  69. package/dist/components/Select/__tests__/Select.optionDisabled.test.d.ts +1 -0
  70. package/dist/components/Select/interface.d.ts +0 -1
  71. package/dist/index.js +33 -32
  72. package/dist/style.css +1 -1
  73. package/dist/vendors/{Tree-DqnOGJtB.js → Tree-DMC_MSw1.js} +2 -2
  74. package/dist/vendors/{useFloatingPortal-B2SDNV5C.js → useFloatingPortal-CsNiNirJ.js} +1 -0
  75. package/dist/vendors/useLatchedPopupPortalRoot-hwf14FJ5.js +24 -0
  76. package/package.json +1 -1
  77. package/dist/DatePicker/DatePicker-EIFyC9zF.js +0 -115
  78. package/dist/DropDown/DropDown-B34vfoOs.js +0 -172
  79. package/dist/Select/Select-DTximYG6.js +0 -734
  80. /package/dist/Calendar/{TimeAxis-Chwxo6Yj.js → TimeAxis-f40447Et.js} +0 -0
  81. /package/dist/Calendar/{colorUtils-FNbm3zBQ.js → colorUtils-Be9RqvDV.js} +0 -0
  82. /package/dist/Calendar/{context-CzS6P3nk.js → context-BrzVkPeC.js} +0 -0
  83. /package/dist/Calendar/{layout-Cb39seCc.js → layout-rnPhDP7c.js} +0 -0
  84. /package/dist/CheckBox/{CheckBox-ejvbDr-a.js → CheckBox-D7bCjlkU.js} +0 -0
  85. /package/dist/DatePicker/{ensureDayjsPlugins-DxqbKqon.js → ensureDayjsPlugins-Bz70Nzmi.js} +0 -0
  86. /package/dist/DatePicker/{pickerLocale-CtDOOxxD.js → pickerLocale-g90uglxB.js} +0 -0
  87. /package/dist/Gantt/{GanttHighlightContext-CtT98ZnK.js → GanttHighlightContext-CMXYFPyz.js} +0 -0
  88. /package/dist/Gantt/{columnResize-DFe7F98O.js → columnResize-1nSds2g5.js} +0 -0
  89. /package/dist/Gantt/{constants-CrBb5i5p.js → constants-BSCH_s3S.js} +0 -0
  90. /package/dist/Gantt/{highlightTarget-DtCe7zto.js → highlightTarget-EEsL61Qd.js} +0 -0
  91. /package/dist/Loading/{Loading-ho-6d72M.js → Loading-CV5GuhWQ.js} +0 -0
  92. /package/dist/NotFoundContent/{NotFoundContent-CV9fTylQ.js → NotFoundContent-J-TEnljc.js} +0 -0
  93. /package/dist/Radio/{Radio-C2zJzZc3.js → Radio-CMAwZdP7.js} +0 -0
  94. /package/dist/Select/{SelectInputSearch-BDwg-Noi.js → SelectInputSearch-dfBUnTCY.js} +0 -0
  95. /package/dist/Table/{constants-CuBlYZLO.js → constants-BZfNf-UU.js} +0 -0
  96. /package/dist/vendors/{cssVars-DoQgQ2CM.js → cssVars-B8o94Yao.js} +0 -0
  97. /package/dist/vendors/{mergeRefs-TiJ0xjUN.js → mergeRefs-Bai1cIzv.js} +0 -0
@@ -0,0 +1,171 @@
1
+ import { t as e } from "../ScrollBar/ScrollBar-C4-PtPBc.js";
2
+ import { t } from "../vendors/useLocale-DZ8XW2VL.js";
3
+ import { n } from "../vendors/animations-Mlw78WYo.js";
4
+ import { t as r } from "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
5
+ import { t as i } from "../Select/SelectInputSearch-dfBUnTCY.js";
6
+ import { t as a } from "../NotFoundContent/NotFoundContent-J-TEnljc.js";
7
+ import { t as o } from "../vendors/useFloatingPortal-CsNiNirJ.js";
8
+ import { t as s } from "./style-WiojFVQn.js";
9
+ import { isEmpty as c, isNumber as l } from "lodash-es";
10
+ import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
11
+ import { cloneElement as p, isValidElement as m, memo as h, useMemo as g, useState as _ } from "react";
12
+ import { clsx as v } from "clsx";
13
+ import { useControllableValue as y } from "ahooks";
14
+ import { AnimatePresence as b, motion as x } from "motion/react";
15
+ import { FloatingPortal as S } from "@floating-ui/react";
16
+ import C from "fuse.js";
17
+ //#region src/hooks/useDropdownSearch.ts
18
+ var w = ({ menus: e, searchValue: t, enableInternalFilter: n, searchKey: r }) => {
19
+ let i = g(() => new C(e, {
20
+ keys: [r],
21
+ ignoreLocation: !0,
22
+ threshold: .3,
23
+ getFn: (e, t) => {
24
+ let n = e[t];
25
+ return t === "label" && typeof n != "string" ? "" : String(n || "");
26
+ }
27
+ }), [e, r]), a = g(() => !n || c(t) ? e : i.search(t).map((e) => e.item), [
28
+ e,
29
+ t,
30
+ n,
31
+ i
32
+ ]);
33
+ return {
34
+ filteredMenus: a,
35
+ hasNoResults: g(() => n && !c(t) && a.length === 0, [
36
+ n,
37
+ t,
38
+ a.length
39
+ ])
40
+ };
41
+ }, T = "_dropdown__trigger_1fafn_1", E = "_dropdown__panel_1fafn_7", D = "_dropdown__search_1fafn_15", O = "_dropdown__menu_1fafn_19", k = {
42
+ dropdown__trigger: T,
43
+ "dropdown__trigger--disabled": "_dropdown__trigger--disabled_1fafn_4",
44
+ dropdown__panel: E,
45
+ dropdown__search: D,
46
+ dropdown__menu: O,
47
+ "dropdown__menu-item": "_dropdown__menu-item_1fafn_22",
48
+ "dropdown__menu-item--disabled": "_dropdown__menu-item--disabled_1fafn_34",
49
+ "dropdown__menu-item--active": "_dropdown__menu-item--active_1fafn_34",
50
+ "dropdown__menu-item-icon": "_dropdown__menu-item-icon_1fafn_41",
51
+ "system-field": "_system-field_1fafn_52",
52
+ "dropdown__menu-item-label": "_dropdown__menu-item-label_1fafn_63"
53
+ }, A = h(({ item: e, onClick: t, isActive: n = !1 }) => {
54
+ let r = () => {
55
+ e.disabled || t(e);
56
+ }, i = e.systemField || !1;
57
+ return /* @__PURE__ */ f("div", {
58
+ className: v(k["dropdown__menu-item"], {
59
+ [k["dropdown__menu-item--disabled"]]: e.disabled,
60
+ [k["dropdown__menu-item--active"]]: n && !e.disabled,
61
+ "text-[#4d609f]": i && !e.disabled && !n
62
+ }),
63
+ onClick: r,
64
+ children: [e.icon && /* @__PURE__ */ d("div", {
65
+ className: v(k["dropdown__menu-item-icon"], { [k["system-field"]]: i && !e.disabled && !n }),
66
+ children: e.icon
67
+ }), /* @__PURE__ */ d("div", {
68
+ className: v(k["dropdown__menu-item-label"], "truncate"),
69
+ children: e.label
70
+ })]
71
+ });
72
+ });
73
+ A.displayName = "BsyDropDownMenuItem";
74
+ //#endregion
75
+ //#region src/components/DropDown/MenuList/MenuList.tsx
76
+ var j = ({ menus: e, onClick: n, hasNoResults: r, activeKey: i = [] }) => {
77
+ let { t: o } = t();
78
+ return e.length === 0 ? /* @__PURE__ */ d(a, {
79
+ text: o("noData"),
80
+ className: "px-3 py-6"
81
+ }) : r ? /* @__PURE__ */ d(a, {
82
+ text: o("noDataFound"),
83
+ className: "px-3 py-6"
84
+ }) : /* @__PURE__ */ d("div", {
85
+ className: k.dropdown__menu,
86
+ children: e.map((e) => /* @__PURE__ */ d(A, {
87
+ item: e,
88
+ onClick: n,
89
+ isActive: i.includes(e.key)
90
+ }, e.key))
91
+ });
92
+ };
93
+ j.displayName = "BsyDropDownMenuList";
94
+ //#endregion
95
+ //#region src/components/DropDown/DropDown.tsx
96
+ var M = (a) => {
97
+ let { t: c } = t(), { children: h, menus: v, onClick: C, onSearch: T, searchKey: E = "label", showSearch: D = !0, closeOnSelect: O = !0, searchPlaceholder: A = c("search"), offset: M = {
98
+ x: 0,
99
+ y: 0
100
+ }, zIndex: N = 1101, style: P, activeKey: F = [], getPopupContainer: I, theme: L } = a, [R, z] = y(a, {
101
+ valuePropName: "visible",
102
+ defaultValue: !1,
103
+ trigger: "onOpenChange"
104
+ }), [B, V] = _(""), H = () => {
105
+ z(!R);
106
+ }, U = () => {
107
+ z(!1);
108
+ }, W = (e) => {
109
+ e.disabled || (C?.(e), O && U());
110
+ }, G = (e) => {
111
+ V(e), T?.(e);
112
+ }, { filteredMenus: K, hasNoResults: q } = w({
113
+ menus: v,
114
+ searchValue: B,
115
+ enableInternalFilter: !T,
116
+ searchKey: E
117
+ }), { refs: J, floatingStyles: Y, getReferenceProps: X, getFloatingProps: Z } = o({
118
+ isOpen: R,
119
+ close: U,
120
+ showMask: !1,
121
+ zIndex: N,
122
+ offset: {
123
+ x: l(M.x) ? M.x : 0,
124
+ y: l(M.y) ? M.y : 0
125
+ }
126
+ }), Q = m(h) ? p(h, {
127
+ ...X(),
128
+ ref: J.setReference,
129
+ onClick: (e) => {
130
+ H(), h.props.onClick?.(e);
131
+ }
132
+ }) : h, { portalRoot: $, portalMountKey: ee, handleExitComplete: te } = r(R, I), ne = g(() => s(L), [L]);
133
+ return /* @__PURE__ */ f(u, { children: [Q, /* @__PURE__ */ d(S, {
134
+ root: $,
135
+ children: /* @__PURE__ */ d(b, {
136
+ onExitComplete: te,
137
+ children: R ? /* @__PURE__ */ d(x.div, {
138
+ ref: J.setFloating,
139
+ ...Z(),
140
+ style: Y,
141
+ ...n,
142
+ children: /* @__PURE__ */ f("div", {
143
+ className: k.dropdown__panel,
144
+ style: {
145
+ ...ne,
146
+ ...P
147
+ },
148
+ children: [D && /* @__PURE__ */ d("div", {
149
+ className: k.dropdown__search,
150
+ children: /* @__PURE__ */ d(i, {
151
+ value: B,
152
+ onChange: G,
153
+ searchPlaceholder: A
154
+ })
155
+ }), /* @__PURE__ */ d(e, {
156
+ style: { maxHeight: 300 },
157
+ children: /* @__PURE__ */ d(j, {
158
+ menus: K,
159
+ onClick: W,
160
+ hasNoResults: q,
161
+ activeKey: F
162
+ })
163
+ })]
164
+ })
165
+ }, "bsy-dropdown-panel") : null
166
+ })
167
+ }, ee)] });
168
+ };
169
+ M.displayName = "BsyDropDown";
170
+ //#endregion
171
+ export { M as t };
@@ -1,9 +1,10 @@
1
- import "../ScrollBar/ScrollBar-CSGBOE3e.js";
1
+ import "../ScrollBar/ScrollBar-C4-PtPBc.js";
2
2
  import "../Icon/Icon-SQ5tu-yG.js";
3
3
  import "../vendors/LocaleContext-CBcJzvUD.js";
4
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 { t as e } from "./DropDown-B34vfoOs.js";
5
+ import "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
6
+ import "../Select/SelectInputSearch-dfBUnTCY.js";
7
+ import "../NotFoundContent/NotFoundContent-J-TEnljc.js";
8
+ import "../vendors/useFloatingPortal-CsNiNirJ.js";
9
+ import { t as e } from "./DropDown-D_Zh6fGX.js";
9
10
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "../style-4LK6rNHe.js";
1
+ import { t as e } from "../style-WiojFVQn.js";
2
2
  export { e as resolveDropDownThemeVars };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../vendors/cssVars-DoQgQ2CM.js";
1
+ import { t as e } from "../vendors/cssVars-B8o94Yao.js";
2
2
  //#region src/components/DropDown/style/resolveDropDownThemeVars.ts
3
3
  var t = (t) => {
4
4
  if (!t) return {};
@@ -1,9 +1,9 @@
1
1
  import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
2
2
  import { t } from "../Modal/Modal-GGHNlZv3.js";
3
- import { t as n } from "../ColorPicker/ColorPicker-aj57lMA5.js";
3
+ import { t as n } from "../ColorPicker/ColorPicker-Hjs4Vp5a.js";
4
4
  import { t as r } from "../vendors/useLocale-DZ8XW2VL.js";
5
- import { t as i } from "../CheckBox/CheckBox-81R8QKHb.js";
6
- import { t as a } from "../DropDown/DropDown-B34vfoOs.js";
5
+ import { t as i } from "../CheckBox/CheckBox-GtT43IQ8.js";
6
+ import { t as a } from "../DropDown/DropDown-D_Zh6fGX.js";
7
7
  import { FONT_SIZES as o } from "./constants/index.js";
8
8
  import { AlignCenterOutlined as s, AlignLeftOutlined as c, AlignRightOutlined as l } from "@ant-design/icons";
9
9
  import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
@@ -1,16 +1,17 @@
1
- import "../../../ScrollBar/ScrollBar-CSGBOE3e.js";
1
+ import "../../../ScrollBar/ScrollBar-C4-PtPBc.js";
2
2
  import "../../../Icon/Icon-SQ5tu-yG.js";
3
3
  import "../../../vendors/LocaleContext-CBcJzvUD.js";
4
4
  import "../../../Modal/Modal-GGHNlZv3.js";
5
- import "../../../ColorPicker/ColorPicker-aj57lMA5.js";
5
+ import "../../../ColorPicker/ColorPicker-Hjs4Vp5a.js";
6
6
  import "../../../vendors/useFloatingOverlay-WbbHmuT-.js";
7
7
  import "../../../vendors/useLocale-DZ8XW2VL.js";
8
8
  import "../../../vendors/color-BQYy0Wgy.js";
9
- import "../../../Select/SelectInputSearch-BDwg-Noi.js";
10
- import "../../../CheckBox/CheckBox-ejvbDr-a.js";
11
- import "../../../CheckBox/CheckBox-81R8QKHb.js";
12
- import "../../../NotFoundContent/NotFoundContent-CV9fTylQ.js";
13
- import "../../../vendors/useFloatingPortal-B2SDNV5C.js";
14
- import "../../../DropDown/DropDown-B34vfoOs.js";
15
- import { a as e, i as t, n, r, t as i } from "../../Buttons-Ds6bLmnl.js";
9
+ import "../../../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
10
+ import "../../../Select/SelectInputSearch-dfBUnTCY.js";
11
+ import "../../../CheckBox/CheckBox-D7bCjlkU.js";
12
+ import "../../../CheckBox/CheckBox-GtT43IQ8.js";
13
+ import "../../../NotFoundContent/NotFoundContent-J-TEnljc.js";
14
+ import "../../../vendors/useFloatingPortal-CsNiNirJ.js";
15
+ import "../../../DropDown/DropDown-D_Zh6fGX.js";
16
+ import { a as e, i as t, n, r, t as i } from "../../Buttons-De6NyZQs.js";
16
17
  export { i as default, n as getToolbarButton, r as listRegisteredToolbarButtons, t as registerToolbarButton, e as unregisterToolbarButton };
@@ -1,18 +1,19 @@
1
- import "../ScrollBar/ScrollBar-CSGBOE3e.js";
1
+ import "../ScrollBar/ScrollBar-C4-PtPBc.js";
2
2
  import "../Icon/Icon-SQ5tu-yG.js";
3
3
  import "../vendors/LocaleContext-CBcJzvUD.js";
4
4
  import "../Modal/Modal-GGHNlZv3.js";
5
- import "../ColorPicker/ColorPicker-aj57lMA5.js";
5
+ import "../ColorPicker/ColorPicker-Hjs4Vp5a.js";
6
6
  import "../vendors/useFloatingOverlay-WbbHmuT-.js";
7
7
  import "../vendors/useLocale-DZ8XW2VL.js";
8
8
  import "../vendors/color-BQYy0Wgy.js";
9
- import "../Select/SelectInputSearch-BDwg-Noi.js";
10
- import "../CheckBox/CheckBox-ejvbDr-a.js";
11
- import "../CheckBox/CheckBox-81R8QKHb.js";
12
- import "../NotFoundContent/NotFoundContent-CV9fTylQ.js";
13
- import "../vendors/useFloatingPortal-B2SDNV5C.js";
14
- import "../DropDown/DropDown-B34vfoOs.js";
15
- import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s } from "./Buttons-Ds6bLmnl.js";
9
+ import "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
10
+ import "../Select/SelectInputSearch-dfBUnTCY.js";
11
+ import "../CheckBox/CheckBox-D7bCjlkU.js";
12
+ import "../CheckBox/CheckBox-GtT43IQ8.js";
13
+ import "../NotFoundContent/NotFoundContent-J-TEnljc.js";
14
+ import "../vendors/useFloatingPortal-CsNiNirJ.js";
15
+ import "../DropDown/DropDown-D_Zh6fGX.js";
16
+ import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s } from "./Buttons-De6NyZQs.js";
16
17
  import { DEFAULT_BACKGROUND_COLOR as c, DEFAULT_FONT_COLOR as l, DEFAULT_FONT_SIZE as u } from "./constants/index.js";
17
18
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
18
19
  import m, { useCallback as h, useEffect as g, useMemo as _, useRef as v, useState as y } from "react";
@@ -1,16 +1,17 @@
1
- import "../../ScrollBar/ScrollBar-CSGBOE3e.js";
1
+ import "../../ScrollBar/ScrollBar-C4-PtPBc.js";
2
2
  import "../../Icon/Icon-SQ5tu-yG.js";
3
3
  import "../../vendors/LocaleContext-CBcJzvUD.js";
4
4
  import "../../vendors/useLocale-DZ8XW2VL.js";
5
- import "../../Tooltip/Tooltip-B_SZOy6k.js";
6
- import "../../Select/SelectInputSearch-BDwg-Noi.js";
7
- import "../../NotFoundContent/NotFoundContent-CV9fTylQ.js";
8
- import "../../vendors/useFloatingPortal-B2SDNV5C.js";
9
- import "../../DropDown/DropDown-B34vfoOs.js";
10
- import "../constants-CrBb5i5p.js";
11
- import "../GanttHighlightContext-CtT98ZnK.js";
12
- import "../timelineViewConfig-Dl3AXO45.js";
13
- import "../collapseKeys-1N9ci2oJ.js";
14
- import { t as e } from "../GanttChart-DbI1fvxe.js";
15
- import "../GanttToolBar-8jPQ9BAG.js";
5
+ import "../../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
6
+ import "../../Tooltip/Tooltip-DWWWYn1a.js";
7
+ import "../../Select/SelectInputSearch-dfBUnTCY.js";
8
+ import "../../NotFoundContent/NotFoundContent-J-TEnljc.js";
9
+ import "../../vendors/useFloatingPortal-CsNiNirJ.js";
10
+ import "../../DropDown/DropDown-D_Zh6fGX.js";
11
+ import "../constants-BSCH_s3S.js";
12
+ import "../GanttHighlightContext-CMXYFPyz.js";
13
+ import "../timelineViewConfig-C1T1exJd.js";
14
+ import "../collapseKeys-VeqoqKwC.js";
15
+ import { t as e } from "../GanttChart-MwVs4NFd.js";
16
+ import "../GanttToolBar-BAAQMT0x.js";
16
17
  export { e as default };
@@ -1,12 +1,12 @@
1
1
  import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
2
2
  import { t } from "../vendors/useLocale-DZ8XW2VL.js";
3
- import { t as n } from "../Tooltip/Tooltip-B_SZOy6k.js";
4
- import { a as r, f as i, g as a, i as o, m as s, n as c, o as l, r as u } from "./constants-CrBb5i5p.js";
5
- import { t as d } from "./GanttHighlightContext-CtT98ZnK.js";
6
- import { n as f, r as p } from "./highlightTarget-DtCe7zto.js";
7
- import { a as m, d as h, i as g, n as _, r as v, t as y, u as b } from "./timelineViewConfig-Dl3AXO45.js";
8
- import { _ as x, a as S, b as C, c as w, d as T, f as ee, g as E, h as D, i as O, l as k, m as A, o as j, p as M, r as te, s as ne, t as N, u as re, v as ie, x as P, y as ae } from "./collapseKeys-1N9ci2oJ.js";
9
- import { r as oe, t as F } from "./GanttToolBar-8jPQ9BAG.js";
3
+ import { t as n } from "../Tooltip/Tooltip-DWWWYn1a.js";
4
+ import { a as r, f as i, g as a, i as o, m as s, n as c, o as l, r as u } from "./constants-BSCH_s3S.js";
5
+ import { t as d } from "./GanttHighlightContext-CMXYFPyz.js";
6
+ import { n as f, r as p } from "./highlightTarget-EEsL61Qd.js";
7
+ import { a as m, d as h, i as g, n as _, r as v, t as y, u as b } from "./timelineViewConfig-C1T1exJd.js";
8
+ import { _ as x, a as S, b as C, c as w, d as T, f as ee, g as E, h as D, i as O, l as k, m as A, o as j, p as M, r as te, s as ne, t as N, u as re, v as ie, x as P, y as ae } from "./collapseKeys-VeqoqKwC.js";
9
+ import { r as oe, t as F } from "./GanttToolBar-BAAQMT0x.js";
10
10
  import { isFunction as se, isNumber as ce, isString as I } from "lodash-es";
11
11
  import { Fragment as L, jsx as R, jsxs as z } from "react/jsx-runtime";
12
12
  import B, { forwardRef as V, memo as H, useCallback as U, useEffect as W, useImperativeHandle as G, useLayoutEffect as le, useMemo as K, useRef as q, useState as J } from "react";
@@ -1,10 +1,10 @@
1
1
  import "../../vendors/LocaleContext-CBcJzvUD.js";
2
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";
3
+ import "../../Table/processRowspan-CSW5J9Rs.js";
4
+ import "../../Table/Table-BZspRsYV.js";
5
+ import "../../Table/hooks-5ETrGbzY.js";
6
+ import "../constants-BSCH_s3S.js";
7
+ import "../columnResize-1nSds2g5.js";
8
+ import { t as e } from "../GanttTable-DoDMELyN.js";
9
+ import "../GanttHighlightContext-CMXYFPyz.js";
10
10
  export { e as default };
@@ -1,8 +1,8 @@
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";
1
+ import { t as e } from "../Table/Table-BZspRsYV.js";
2
+ import { l as t } from "./constants-BSCH_s3S.js";
3
+ import { r as n } from "./columnResize-1nSds2g5.js";
4
+ import { t as r } from "./GanttHighlightContext-CMXYFPyz.js";
5
+ import { r as i } from "./highlightTarget-EEsL61Qd.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";
@@ -1,12 +1,13 @@
1
- import "../../ScrollBar/ScrollBar-CSGBOE3e.js";
1
+ import "../../ScrollBar/ScrollBar-C4-PtPBc.js";
2
2
  import "../../Icon/Icon-SQ5tu-yG.js";
3
3
  import "../../vendors/LocaleContext-CBcJzvUD.js";
4
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";
5
+ import "../../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
6
+ import "../../Select/SelectInputSearch-dfBUnTCY.js";
7
+ import "../../NotFoundContent/NotFoundContent-J-TEnljc.js";
8
+ import "../../vendors/useFloatingPortal-CsNiNirJ.js";
9
+ import "../../DropDown/DropDown-D_Zh6fGX.js";
10
+ import "../constants-BSCH_s3S.js";
11
+ import "../timelineViewConfig-C1T1exJd.js";
12
+ import { t as e } from "../GanttToolBar-BAAQMT0x.js";
12
13
  export { e as default };
@@ -1,7 +1,7 @@
1
1
  import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
2
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";
3
+ import { t as n } from "../DropDown/DropDown-D_Zh6fGX.js";
4
+ import { l as r } from "./timelineViewConfig-C1T1exJd.js";
5
5
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
6
  import { createContext as o, useCallback as s, useContext as c, useMemo as l, useRef as u, useState as d } from "react";
7
7
  import f from "clsx";
@@ -1,5 +1,5 @@
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";
1
+ import { m as e, n as t, r as n, t as r } from "./constants-BSCH_s3S.js";
2
+ import { n as i, r as a, t as o } from "./timelineViewConfig-C1T1exJd.js";
3
3
  import { isString as s } from "lodash-es";
4
4
  import c from "dayjs";
5
5
  import l from "dayjs/plugin/isoWeek";
@@ -1,25 +1,26 @@
1
- import "../ScrollBar/ScrollBar-CSGBOE3e.js";
1
+ import "../ScrollBar/ScrollBar-C4-PtPBc.js";
2
2
  import "../Icon/Icon-SQ5tu-yG.js";
3
3
  import "../vendors/LocaleContext-CBcJzvUD.js";
4
4
  import "../vendors/useLocale-DZ8XW2VL.js";
5
- import "../Tooltip/Tooltip-B_SZOy6k.js";
6
- import "../Select/SelectInputSearch-BDwg-Noi.js";
7
- import "../NotFoundContent/NotFoundContent-CV9fTylQ.js";
8
- import "../vendors/useFloatingPortal-B2SDNV5C.js";
9
- import "../DropDown/DropDown-B34vfoOs.js";
10
- import "../Table/processRowspan-D4uv6zLk.js";
11
- import "../Table/Table-BtH9Oa14.js";
12
- import "../Table/hooks-DK8Pf7iH.js";
13
- import { a as e, c as t, i as n, l as r, o as i, s as a } from "./constants-CrBb5i5p.js";
14
- import { r as o } from "./columnResize-DFe7F98O.js";
15
- import { t as s } from "./GanttTable-C3PLGmKr.js";
16
- import { t as c } from "./GanttHighlightContext-CtT98ZnK.js";
17
- import { n as l, t as u } from "./highlightTarget-DtCe7zto.js";
18
- import { c as d, o as f, r as p, s as m } from "./timelineViewConfig-Dl3AXO45.js";
19
- import { n as h, r as g, t as _ } from "./collapseKeys-1N9ci2oJ.js";
20
- import { t as v } from "./GanttChart-DbI1fvxe.js";
21
- import { n as ee } from "./GanttToolBar-8jPQ9BAG.js";
22
- import { i as y, n as te, r as b, t as x } from "./theme-C197Dtjy.js";
5
+ import "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
6
+ import "../Tooltip/Tooltip-DWWWYn1a.js";
7
+ import "../Select/SelectInputSearch-dfBUnTCY.js";
8
+ import "../NotFoundContent/NotFoundContent-J-TEnljc.js";
9
+ import "../vendors/useFloatingPortal-CsNiNirJ.js";
10
+ import "../DropDown/DropDown-D_Zh6fGX.js";
11
+ import "../Table/processRowspan-CSW5J9Rs.js";
12
+ import "../Table/Table-BZspRsYV.js";
13
+ import "../Table/hooks-5ETrGbzY.js";
14
+ import { a as e, c as t, i as n, l as r, o as i, s as a } from "./constants-BSCH_s3S.js";
15
+ import { r as o } from "./columnResize-1nSds2g5.js";
16
+ import { t as s } from "./GanttTable-DoDMELyN.js";
17
+ import { t as c } from "./GanttHighlightContext-CMXYFPyz.js";
18
+ import { n as l, t as u } from "./highlightTarget-EEsL61Qd.js";
19
+ import { c as d, o as f, r as p, s as m } from "./timelineViewConfig-C1T1exJd.js";
20
+ import { n as h, r as g, t as _ } from "./collapseKeys-VeqoqKwC.js";
21
+ import { t as v } from "./GanttChart-MwVs4NFd.js";
22
+ import { n as ee } from "./GanttToolBar-BAAQMT0x.js";
23
+ import { i as y, n as te, r as b, t as x } from "./theme-DLS8mdri.js";
23
24
  import { jsx as S, jsxs as C } from "react/jsx-runtime";
24
25
  import { forwardRef as w, useCallback as T, useEffect as E, useMemo as D, useRef as O, useState as k } from "react";
25
26
  import ne from "clsx";
@@ -1,4 +1,4 @@
1
- import { t as e } from "../vendors/cssVars-DoQgQ2CM.js";
1
+ import { t as e } from "../vendors/cssVars-B8o94Yao.js";
2
2
  import t from "tinycolor2";
3
3
  //#region src/components/Gantt/utils/theme/resolveGanttTheme.ts
4
4
  var n = "#0265ff", r = "#121111", i = "#fff", a = (e) => {
@@ -1,4 +1,4 @@
1
- import { m as e } from "./constants-CrBb5i5p.js";
1
+ import { m as e } from "./constants-BSCH_s3S.js";
2
2
  //#region src/components/Gantt/interface.ts
3
3
  var t = [
4
4
  "day",
@@ -1,6 +1,6 @@
1
- import { a as e, c as t, d as n, i as r, l as i, o as a, p as o, s, u as c } from "../constants-CrBb5i5p.js";
2
- import { a as l, i as u, n as d, o as f, r as p, t as m } from "../columnResize-DFe7F98O.js";
3
- import { n as h, r as g, t as _ } from "../highlightTarget-DtCe7zto.js";
4
- import { c as v, o as y, r as b, s as x } from "../timelineViewConfig-Dl3AXO45.js";
5
- import { n as S, r as C, t as w } from "../collapseKeys-1N9ci2oJ.js";
1
+ import { a as e, c as t, d as n, i as r, l as i, o as a, p as o, s, u as c } from "../constants-BSCH_s3S.js";
2
+ import { a as l, i as u, n as d, o as f, r as p, t as m } from "../columnResize-1nSds2g5.js";
3
+ import { n as h, r as g, t as _ } from "../highlightTarget-EEsL61Qd.js";
4
+ import { c as v, o as y, r as b, s as x } from "../timelineViewConfig-C1T1exJd.js";
5
+ import { n as S, r as C, t as w } from "../collapseKeys-VeqoqKwC.js";
6
6
  export { y as ALL_GANTT_MODES, x as CALENDAR_TIER_MODES, v as DEFAULT_GANTT_MODE, u as DEFAULT_TABLE_WIDTH_FALLBACK, r as DRAG_MODE_MOVE, e as DRAG_MODE_RESIZE_END, a as DRAG_MODE_RESIZE_START, s as EMPTY_GROUP_VALUE, t as GANTT_DEFAULT_ROW_HEIGHT, m as GANTT_TABLE_DISABLED_RESIZE_COLUMNS, i as GANTT_TABLE_HEADER_ROW_SPAN, c as HEADER_BOTTOM_HEIGHT, n as HEADER_TOP_HEIGHT, l as MIN_CHART_WIDTH, o as MIN_TABLE_WIDTH, f as TABLE_WIDTH_PLACEHOLDER, w as isGroupCollapsed, _ as isHighlightMatch, h as isSameHighlightTarget, b as isSubDayViewMode, d as mergeColumnWidths, C as normalizeTaskDateRange, g as resolveChartHighlightTarget, S as toggleCollapsedKey, p as useGanttTableColumnResize };
@@ -1,2 +1,2 @@
1
- import { i as e, n as t, r as n, t as r } from "../../theme-C197Dtjy.js";
1
+ import { i as e, n as t, r as n, t as r } from "../../theme-DLS8mdri.js";
2
2
  export { t as mapGanttThemeToCssVars, e as resolveGanttTheme, n as resolveGanttThemeVars, r as resolveTableThemeFromGantt };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../ScrollBar/ScrollBar-CSGBOE3e.js";
1
+ import { t as e } from "../ScrollBar/ScrollBar-C4-PtPBc.js";
2
2
  import { t } from "../Icon/Icon-SQ5tu-yG.js";
3
3
  import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
4
  import { useCallback as i, useEffect as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
@@ -1,4 +1,4 @@
1
- import "../ScrollBar/ScrollBar-CSGBOE3e.js";
1
+ import "../ScrollBar/ScrollBar-C4-PtPBc.js";
2
2
  import "../Icon/Icon-SQ5tu-yG.js";
3
- import { t as e } from "./InputTag-CGQ5dXyf.js";
3
+ import { t as e } from "./InputTag-C4iRY5Mw.js";
4
4
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./Loading-ho-6d72M.js";
1
+ import { t as e } from "./Loading-CV5GuhWQ.js";
2
2
  export { e as default };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./NotFoundContent-CV9fTylQ.js";
1
+ import { t as e } from "./NotFoundContent-J-TEnljc.js";
2
2
  export { e as NotFoundContent };
@@ -1,2 +1,2 @@
1
- import { t as e } from "./Radio-C2zJzZc3.js";
1
+ import { t as e } from "./Radio-CMAwZdP7.js";
2
2
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../vendors/mergeRefs-TiJ0xjUN.js";
1
+ import { t as e } from "../vendors/mergeRefs-Bai1cIzv.js";
2
2
  import "overlayscrollbars/overlayscrollbars.css";
3
3
  import { jsx as t } from "react/jsx-runtime";
4
4
  import { useCallback as n, useMemo as r, useRef as i } from "react";
@@ -1,2 +1,2 @@
1
- import { t as e } from "./ScrollBar-CSGBOE3e.js";
1
+ import { t as e } from "./ScrollBar-C4-PtPBc.js";
2
2
  export { e as ScrollBar, e as default };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../vendors/cssVars-DoQgQ2CM.js";
1
+ import { t as e } from "../vendors/cssVars-B8o94Yao.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import { useCallback as r, useLayoutEffect as i, useMemo as a, useRef as o, useState as s } from "react";
4
4
  import c from "clsx";
@@ -22,7 +22,8 @@ var d = {
22
22
  let { options: g, block: _ = !1, disabled: v = !1, enableAnimation: y = !1, theme: b } = h, [x, S] = l(h), [C, w] = s({
23
23
  width: 0,
24
24
  left: 0
25
- }), T = o(null), E = o(/* @__PURE__ */ new Map()), D = o(!1), O = r(() => {
25
+ }), T = o(null), E = o(/* @__PURE__ */ new Map()), D = o(!1), O = x != null && g.some((e) => e.value === x), k = r(() => {
26
+ if (!O) return;
26
27
  let e = E.current.get(x), t = T.current;
27
28
  if (e && t) {
28
29
  let n = t.getBoundingClientRect(), r = e.getBoundingClientRect();
@@ -31,26 +32,26 @@ var d = {
31
32
  left: r.left - n.left
32
33
  });
33
34
  }
34
- }, [x]);
35
+ }, [x, O]);
35
36
  i(() => {
36
37
  if (y && D.current) {
37
38
  let e = requestAnimationFrame(() => {
38
- O();
39
+ k();
39
40
  });
40
41
  return () => cancelAnimationFrame(e);
41
42
  }
42
- O();
43
+ k();
43
44
  }, [
44
45
  x,
45
46
  y,
46
- O
47
+ k
47
48
  ]), i(() => {
48
- let e = new ResizeObserver(O);
49
+ let e = new ResizeObserver(k);
49
50
  return T.current && e.observe(T.current), () => {
50
51
  e.disconnect();
51
52
  };
52
- }, [O]);
53
- let k = a(() => {
53
+ }, [k]);
54
+ let A = a(() => {
54
55
  let t = {};
55
56
  return e(t, "--bsy-segmented-color", b?.colorText), e(t, "--bsy-segmented-background", b?.trackBg), b?.itemSelectedBg && (t["--bsy-segmented-active-color"] = m, t["--bsy-segmented-slider-background"] = b.itemSelectedBg, t["--bsy-segmented-slider-border"] = b.itemSelectedBg), e(t, "--bsy-segmented-hover-background", b?.itemHoverBg), e(t, "--bsy-segmented-hover-border", b?.itemHoverBorder), t;
56
57
  }, [b]);
@@ -58,14 +59,14 @@ var d = {
58
59
  ref: T,
59
60
  className: c(d["bsy-segmented"], _ && d["bsy-segmented--block"]),
60
61
  style: {
61
- ...k,
62
+ ...A,
62
63
  ..._ ? { gridTemplateColumns: `repeat(${g.length}, 1fr)` } : null
63
64
  },
64
- children: [/* @__PURE__ */ t(u.div, {
65
+ children: [O ? /* @__PURE__ */ t(u.div, {
65
66
  className: d["bsy-segmented__slider"],
66
67
  animate: C,
67
68
  transition: y && D.current ? f : p
68
- }), g.map((e) => /* @__PURE__ */ t("button", {
69
+ }) : null, g.map((e) => /* @__PURE__ */ t("button", {
69
70
  ref: (t) => {
70
71
  t ? E.current.set(e.value, t) : E.current.delete(e.value);
71
72
  },
@@ -1,2 +1,2 @@
1
- import { t as e } from "./Segmented-CzVKrL6o.js";
1
+ import { t as e } from "./Segmented-Ck2ZmfF7.js";
2
2
  export { e as default };