@baishuyun/ui-base 6.32.2 → 6.33.1

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 (67) hide show
  1. package/dist/AiRuntimeContainer/index.js +1 -1
  2. package/dist/Amap/index.js +1 -1
  3. package/dist/Calendar/{Calendar-DBqaITr-.js → Calendar-sHaTag1q.js} +15 -15
  4. package/dist/Calendar/index.js +8 -8
  5. package/dist/Card/Card-Cdb5cVMG.js +83 -0
  6. package/dist/Card/index.js +2 -2
  7. package/dist/CheckBox/{CheckBox-DOdRLFKI.js → CheckBox-BXKoPSBh.js} +1 -1
  8. package/dist/CheckBox/{CheckBox-CtOSHKM0.js → CheckBox-DihUnPT-.js} +1 -1
  9. package/dist/CheckBox/index.js +3 -3
  10. package/dist/ColorPicker/{ColorPicker-CpvEY9_p.js → ColorPicker-BsGcotxi.js} +5 -5
  11. package/dist/ColorPicker/index.js +5 -5
  12. package/dist/ConfigProvider/index.js +1 -1
  13. package/dist/DatePicker/{DatePicker-Cnf0lUyJ.js → DatePicker-C0Nmq8I2.js} +15 -15
  14. package/dist/DatePicker/{DatePickerPanel-XHaXo_tg.js → DatePickerPanel-DfcL9HJ5.js} +2 -2
  15. package/dist/DatePicker/index.js +5 -5
  16. package/dist/DropDown/{DropDown-B3VFy5GF.js → DropDown-Bb4dkd_c.js} +17 -17
  17. package/dist/DropDown/index.js +6 -6
  18. package/dist/Editor/index.js +140 -140
  19. package/dist/FieldCard/FieldCard-DNwwutu3.js +286 -0
  20. package/dist/FieldCard/index.js +7 -7
  21. package/dist/Gantt/index.js +50 -50
  22. package/dist/Icon/index.js +1 -1
  23. package/dist/InputTag/{InputTag-C1WA6sDA.js → InputTag-3sZTy2HT.js} +2 -2
  24. package/dist/InputTag/index.js +4 -4
  25. package/dist/Kanban/index.js +35 -35
  26. package/dist/Loading/{Loading-Dm4i0lYd.js → Loading-CLUJfdln.js} +1 -1
  27. package/dist/Loading/index.js +3 -3
  28. package/dist/Modal/index.js +2 -2
  29. package/dist/NotFoundContent/index.js +1 -1
  30. package/dist/Overlay/index.js +1 -1
  31. package/dist/Radio/{Radio-C0OAW-K-.js → Radio-GeMs-7qt.js} +1 -1
  32. package/dist/Radio/index.js +2 -2
  33. package/dist/ScrollBar/{ScrollBar-IMTuAOF5.js → ScrollBar-B7R4brL_.js} +1 -1
  34. package/dist/ScrollBar/index.js +2 -2
  35. package/dist/Segmented/{Segmented-BMwjhsZw.js → Segmented-AHLqTK7U.js} +1 -1
  36. package/dist/Segmented/index.js +2 -2
  37. package/dist/Select/{Select-C_g3oAkv.js → Select-Bio92QMl.js} +48 -48
  38. package/dist/Select/{SelectInputSearch-BMJQw4ll.js → SelectInputSearch-Bt2i3y3d.js} +1 -1
  39. package/dist/Select/index.js +10 -10
  40. package/dist/Table/{Table-B8381Lni.js → Table-CCyC7VdA.js} +352 -349
  41. package/dist/Table/index.js +3 -3
  42. package/dist/Tabs/{Tabs-DQAgk4py.js → Tabs-BugUJglj.js} +11 -11
  43. package/dist/Tabs/index.js +3 -3
  44. package/dist/Tooltip/{Tooltip-N06Os8rG.js → Tooltip-N-w19uRu.js} +3 -3
  45. package/dist/Tooltip/index.js +3 -3
  46. package/dist/Tree/index.js +4 -4
  47. package/dist/components/Card/Card.type.d.ts +24 -1
  48. package/dist/components/Card/index.d.ts +1 -1
  49. package/dist/components/Card/style/index.d.ts +1 -0
  50. package/dist/components/Card/style/resolveCardThemeVars.d.ts +5 -0
  51. package/dist/components/index.d.ts +1 -0
  52. package/dist/index.js +24 -24
  53. package/dist/style.css +1 -1
  54. package/dist/utils/hasTextSelection.d.ts +3 -0
  55. package/dist/vendors/{Tree-f0FxoFIC.js → Tree-C8l3t4L6.js} +2 -2
  56. package/dist/vendors/hasTextSelection-7Q4xY0kK.js +7 -0
  57. package/dist/vendors/{version-BPrpr-5-.js → version-PykRMMOY.js} +1 -1
  58. package/package.json +1 -1
  59. package/dist/Card/Card-BT2LRubP.js +0 -69
  60. package/dist/FieldCard/FieldCard-CCv4nLpH.js +0 -282
  61. /package/dist/Modal/{Modal-DXH8hz96.js → Modal-BeDIo3CM.js} +0 -0
  62. /package/dist/vendors/{animations-ISccYUE3.js → animations-DNlwdSQ2.js} +0 -0
  63. /package/dist/vendors/{cssVars-UpriQzph.js → cssVars-BbL_cmFM.js} +0 -0
  64. /package/dist/vendors/{mergeRefs-mEH9TBYV.js → mergeRefs-DSqdKcq6.js} +0 -0
  65. /package/dist/vendors/{useFloatingOverlay-B66lOL8v.js → useFloatingOverlay-DlLAeqUv.js} +0 -0
  66. /package/dist/vendors/{useLatchedPopupPortalRoot-CC6af8t-.js → useLatchedPopupPortalRoot-Cu3oUL9h.js} +0 -0
  67. /package/dist/vendors/{useLocale-3oUjPb-k.js → useLocale-DvhRopWF.js} +0 -0
@@ -0,0 +1,286 @@
1
+ import { t as e } from "../Icon/Icon-CcKDWNGy.js";
2
+ import { t } from "../vendors/cssVars-BbL_cmFM.js";
3
+ import { t as n } from "../DropDown/DropDown-Bb4dkd_c.js";
4
+ import { t as r } from "../vendors/hasTextSelection-7Q4xY0kK.js";
5
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
6
+ import { Children as o, isValidElement as s, useMemo as c, useState as l } from "react";
7
+ import u from "clsx";
8
+ //#region src/components/FieldCard/style/resolveFieldCardThemeVars.ts
9
+ var d = (e) => {
10
+ if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : String(e);
11
+ }, f = (e) => {
12
+ if (!e) return {};
13
+ let n = {}, r = e.colorPrimary;
14
+ return t(n, "--bsy-field-card-color-primary", r), t(n, "--bsy-field-card-bg", e.bg), t(n, "--bsy-field-card-title-color", e.titleColor), t(n, "--bsy-field-card-label-color", e.labelColor), t(n, "--bsy-field-card-value-color", e.valueColor), t(n, "--bsy-field-card-hover-border", e.hoverBorderColor ?? r), t(n, "--bsy-field-card-selected-border", e.selectedBorderColor ?? r), t(n, "--bsy-field-card-border-radius", d(e.borderRadius)), t(n, "--bsy-field-card-extra-color", e.extraColor), t(n, "--bsy-field-card-extra-hover-bg", e.extraHoverBg), t(n, "--bsy-field-card-extra-hover-border", e.extraHoverBorderColor), t(n, "--bsy-field-card-extra-hover-color", e.extraHoverColor), n;
15
+ }, p = "_root_1a4uh_1", m = "_sizeSmall_1a4uh_17", h = "_main_1a4uh_17", g = "_fields_1a4uh_20", _ = "_sizeMiddle_1a4uh_24", v = "_sizeLarge_1a4uh_31", y = "_positionup_1a4uh_38", b = "_positionleft_1a4uh_43", x = "_positionright_1a4uh_44", S = "_shapeCover_1a4uh_56", C = "_cover_1a4uh_77", w = "_coverShaperect_1a4uh_94", T = "_coverShapecircle_1a4uh_98", E = "_coverShapecover_1a4uh_102", D = "_coverPositionleft_1a4uh_105", O = "_coverPositionright_1a4uh_105", k = "_coverPositionup_1a4uh_111", A = "_coverFitComplete_1a4uh_116", ee = "_coverPlaceholder_1a4uh_120", te = "_selected_1a4uh_129", ne = "_titleRow_1a4uh_136", re = "_extraWrapper_1a4uh_143", ie = "_extra_1a4uh_143", ae = "_extraOpen_1a4uh_188", oe = "_extraWrapperOpen_1a4uh_195", se = "_check_1a4uh_206", ce = "_titleYields_1a4uh_223", j = "_hasCheck_1a4uh_227", M = "_title_1a4uh_136", N = "_hasExtra_1a4uh_250", P = "_meta_1a4uh_264", F = "_fieldsvertical_1a4uh_271", I = "_fieldshorizontal_1a4uh_275", L = "_label_1a4uh_281", R = "_icon_1a4uh_301", z = "_labelText_1a4uh_307", B = "_value_1a4uh_315", V = "_footer_1a4uh_324", H = "_skeleton_1a4uh_328", U = "_skeletonBody_1a4uh_349", W = "_skeletonTitle_1a4uh_355", G = "_skeletonFields_1a4uh_362", le = "_skeletonField_1a4uh_362", ue = "_skeletonLabel_1a4uh_374", de = "_skeletonValue_1a4uh_381", fe = "_skeletonWithCover_1a4uh_388", pe = "_skeletonCover_1a4uh_392", K = {
16
+ root: p,
17
+ sizeSmall: m,
18
+ main: h,
19
+ fields: g,
20
+ sizeMiddle: _,
21
+ sizeLarge: v,
22
+ positionup: y,
23
+ positionleft: b,
24
+ positionright: x,
25
+ shapeCover: S,
26
+ cover: C,
27
+ coverShaperect: w,
28
+ coverShapecircle: T,
29
+ coverShapecover: E,
30
+ coverPositionleft: D,
31
+ coverPositionright: O,
32
+ coverPositionup: k,
33
+ coverFitComplete: A,
34
+ coverPlaceholder: ee,
35
+ selected: te,
36
+ titleRow: ne,
37
+ extraWrapper: re,
38
+ extra: ie,
39
+ extraOpen: ae,
40
+ extraWrapperOpen: oe,
41
+ check: se,
42
+ titleYields: ce,
43
+ hasCheck: j,
44
+ title: M,
45
+ hasExtra: N,
46
+ meta: P,
47
+ fieldsvertical: F,
48
+ fieldshorizontal: I,
49
+ label: L,
50
+ icon: R,
51
+ labelText: z,
52
+ value: B,
53
+ footer: V,
54
+ skeleton: H,
55
+ "field-card-skeleton": "_field-card-skeleton_1a4uh_1",
56
+ skeletonBody: U,
57
+ skeletonTitle: W,
58
+ skeletonFields: G,
59
+ skeletonField: le,
60
+ skeletonLabel: ue,
61
+ skeletonValue: de,
62
+ skeletonWithCover: fe,
63
+ skeletonCover: pe
64
+ }, me = ({ withCover: e, className: t, style: n }) => /* @__PURE__ */ a("div", {
65
+ className: u(K.root, K.skeleton, K.sizeMiddle, e && K.skeletonWithCover, t),
66
+ style: n,
67
+ "data-loading": "true",
68
+ "data-skeleton": "true",
69
+ children: [e ? /* @__PURE__ */ i("div", {
70
+ className: K.skeletonCover,
71
+ "data-skeleton-cover": ""
72
+ }) : null, /* @__PURE__ */ a("div", {
73
+ className: K.skeletonBody,
74
+ children: [/* @__PURE__ */ i("div", { className: K.skeletonTitle }), /* @__PURE__ */ a("div", {
75
+ className: K.skeletonFields,
76
+ children: [/* @__PURE__ */ a("div", {
77
+ className: K.skeletonField,
78
+ "data-skeleton-field": "",
79
+ children: [/* @__PURE__ */ i("div", { className: K.skeletonLabel }), /* @__PURE__ */ i("div", { className: K.skeletonValue })]
80
+ }), /* @__PURE__ */ a("div", {
81
+ className: K.skeletonField,
82
+ "data-skeleton-field": "",
83
+ children: [/* @__PURE__ */ i("div", { className: K.skeletonLabel }), /* @__PURE__ */ i("div", { className: K.skeletonValue })]
84
+ })]
85
+ })]
86
+ })]
87
+ }), q = Symbol("FieldCard.slot"), J = (e, t) => (e[q] = t, e), Y = (e) => {
88
+ if (typeof e == "function" && q in e) return e[q];
89
+ }, he = {
90
+ small: K.sizeSmall,
91
+ middle: K.sizeMiddle,
92
+ large: K.sizeLarge
93
+ }, ge = {
94
+ vertical: K.fieldsvertical,
95
+ horizontal: K.fieldshorizontal
96
+ }, _e = () => /* @__PURE__ */ a("svg", {
97
+ viewBox: "0 0 34 34",
98
+ "aria-hidden": "true",
99
+ children: [
100
+ /* @__PURE__ */ i("rect", {
101
+ x: "4",
102
+ y: "6",
103
+ width: "26",
104
+ height: "22",
105
+ rx: "3",
106
+ fill: "none",
107
+ stroke: "#c5c8d4",
108
+ strokeWidth: "2"
109
+ }),
110
+ /* @__PURE__ */ i("circle", {
111
+ cx: "12",
112
+ cy: "14",
113
+ r: "2.2",
114
+ fill: "#c5c8d4"
115
+ }),
116
+ /* @__PURE__ */ i("path", {
117
+ d: "M7 24.5 13.2 18l4.2 4.2 2.6-2.4L27 24.5v1.2H7z",
118
+ fill: "#c5c8d4"
119
+ })
120
+ ]
121
+ }), X = ({ label: e, value: t, icon: n }) => {
122
+ let r = e != null || n != null;
123
+ return /* @__PURE__ */ a("div", {
124
+ className: K.meta,
125
+ children: [r ? /* @__PURE__ */ a("div", {
126
+ className: K.label,
127
+ children: [n == null ? null : /* @__PURE__ */ i("span", {
128
+ className: K.icon,
129
+ children: n
130
+ }), e == null ? null : /* @__PURE__ */ i("span", {
131
+ className: K.labelText,
132
+ children: e
133
+ })]
134
+ }) : null, /* @__PURE__ */ i("div", {
135
+ className: K.value,
136
+ children: t
137
+ })]
138
+ });
139
+ }, Z = ({ className: e, children: t, ...n }) => /* @__PURE__ */ i("div", {
140
+ className: u(K.check, e),
141
+ ...n,
142
+ children: t
143
+ }), Q = ({ className: e, children: t, onClick: n, onPointerDown: r, ...a }) => /* @__PURE__ */ i("div", {
144
+ className: u(K.footer, e),
145
+ ...a,
146
+ onClick: (e) => {
147
+ n?.(e), e.stopPropagation();
148
+ },
149
+ onPointerDown: (e) => {
150
+ r?.(e), e.stopPropagation();
151
+ },
152
+ children: t
153
+ });
154
+ J(X, "meta"), J(Z, "check"), J(Q, "footer");
155
+ var $ = ({ menus: t, onMenuClick: r, dropDownProps: a, className: o, children: s, onClick: c, onPointerDown: d, onMouseDown: f, ...p }) => {
156
+ let [m, h] = l(!1);
157
+ if (!t || t.length === 0) return null;
158
+ let g = a?.visible !== void 0, _ = g ? !!a.visible : m, v = (e) => {
159
+ g || h(e), a?.onOpenChange?.(e);
160
+ }, y = (e) => {
161
+ r?.(e);
162
+ };
163
+ return /* @__PURE__ */ i("div", {
164
+ className: u(K.extraWrapper, _ && K.extraWrapperOpen),
165
+ "data-kanban-no-drag": "",
166
+ onClick: (e) => {
167
+ e.stopPropagation();
168
+ },
169
+ onPointerDown: (e) => {
170
+ e.stopPropagation();
171
+ },
172
+ onMouseDown: (e) => {
173
+ e.stopPropagation();
174
+ },
175
+ children: /* @__PURE__ */ i(n, {
176
+ showSearch: !1,
177
+ offset: {
178
+ x: 0,
179
+ y: 4
180
+ },
181
+ style: {
182
+ width: 80,
183
+ minWidth: 80
184
+ },
185
+ ...a,
186
+ menus: t,
187
+ onClick: y,
188
+ visible: _,
189
+ onOpenChange: v,
190
+ children: /* @__PURE__ */ i("button", {
191
+ type: "button",
192
+ "aria-label": "更多操作",
193
+ "data-kanban-no-drag": "",
194
+ "data-testid": "field-card-extra",
195
+ className: u(K.extra, _ && K.extraOpen, o),
196
+ onClick: (e) => {
197
+ e.stopPropagation(), c?.(e);
198
+ },
199
+ onPointerDown: (e) => {
200
+ e.stopPropagation(), d?.(e);
201
+ },
202
+ onMouseDown: (e) => {
203
+ e.stopPropagation(), f?.(e);
204
+ },
205
+ ...p,
206
+ children: s ?? /* @__PURE__ */ i(e, {
207
+ name: "more",
208
+ size: 16
209
+ })
210
+ })
211
+ })
212
+ });
213
+ };
214
+ J($, "extra");
215
+ var ve = Object.assign(({ title: e, selected: t = !1, cover: n, coverPlaceholder: l = !1, coverLayout: d, size: p = "middle", loading: m = !1, layout: h = "vertical", children: g, className: _, style: v, theme: y }) => {
216
+ let b = c(() => f(y), [y]);
217
+ if (m) return /* @__PURE__ */ i(me, {
218
+ withCover: !!n,
219
+ className: _,
220
+ style: {
221
+ ...b,
222
+ ...v
223
+ }
224
+ });
225
+ let x = !!n || l, S = x ? d?.position ?? "up" : void 0, C = x ? d?.shape ?? "cover" : void 0, w = n ? d?.fit ?? "full" : void 0, T = [], E = [], D = [], O = [];
226
+ o.forEach(g, (e) => {
227
+ if (!s(e)) return;
228
+ let t = Y(e.type);
229
+ t === "check" ? T.push(e) : t === "meta" ? E.push(e) : t === "footer" ? D.push(e) : t === "extra" && O.push(e);
230
+ });
231
+ let k = T.length > 0 && (!x || S === "right"), A = O.length > 0;
232
+ return /* @__PURE__ */ a("div", {
233
+ className: u(K.root, he[p], S && K[`position${S}`], C === "cover" && K.shapeCover, t && K.selected, T.length > 0 && K.hasCheck, A && K.hasExtra, k && K.titleYields, _),
234
+ style: {
235
+ ...b,
236
+ ...v
237
+ },
238
+ onClick: (e) => {
239
+ r(e.currentTarget) && e.stopPropagation();
240
+ },
241
+ "data-selected": t ? "true" : "false",
242
+ "data-loading": "false",
243
+ "data-size": p,
244
+ "data-layout": h,
245
+ "data-title-yields": k ? "true" : "false",
246
+ children: [
247
+ T,
248
+ O,
249
+ x && S && C ? /* @__PURE__ */ i("div", {
250
+ className: u(K.cover, K[`coverPosition${S}`], K[`coverShape${C}`], n && w === "complete" && K.coverFitComplete, !n && K.coverPlaceholder),
251
+ "data-cover-position": S,
252
+ "data-cover-shape": C,
253
+ "data-cover-fit": n ? w : void 0,
254
+ "data-cover-placeholder": n ? void 0 : "true",
255
+ children: n ? /* @__PURE__ */ i("img", {
256
+ src: n,
257
+ alt: ""
258
+ }) : /* @__PURE__ */ i(_e, {})
259
+ }) : null,
260
+ /* @__PURE__ */ a("div", {
261
+ className: K.main,
262
+ children: [
263
+ /* @__PURE__ */ i("div", {
264
+ className: K.titleRow,
265
+ children: /* @__PURE__ */ i("div", {
266
+ className: K.title,
267
+ children: e
268
+ })
269
+ }),
270
+ E.length > 0 ? /* @__PURE__ */ i("div", {
271
+ className: u(K.fields, ge[h]),
272
+ children: E
273
+ }) : null,
274
+ D
275
+ ]
276
+ })
277
+ ]
278
+ });
279
+ }, {
280
+ Meta: X,
281
+ Check: Z,
282
+ Footer: Q,
283
+ Extra: $
284
+ });
285
+ //#endregion
286
+ export { ve as t };
@@ -1,14 +1,14 @@
1
- import "../vendors/version-BPrpr-5-.js";
1
+ import "../vendors/version-PykRMMOY.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
5
5
  import "../Overlay/OverlayContext-CVSFoyqN.js";
6
- import "../vendors/useLocale-3oUjPb-k.js";
7
- import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
8
- import "../Select/SelectInputSearch-BMJQw4ll.js";
6
+ import "../vendors/useLocale-DvhRopWF.js";
7
+ import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
8
+ import "../Select/SelectInputSearch-Bt2i3y3d.js";
9
9
  import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
10
- import "../ScrollBar/ScrollBar-IMTuAOF5.js";
10
+ import "../ScrollBar/ScrollBar-B7R4brL_.js";
11
11
  import "../vendors/useFloatingPortal-DJ1iKmW-.js";
12
- import "../DropDown/DropDown-B3VFy5GF.js";
13
- import { t as e } from "./FieldCard-CCv4nLpH.js";
12
+ import "../DropDown/DropDown-Bb4dkd_c.js";
13
+ import { t as e } from "./FieldCard-DNwwutu3.js";
14
14
  export { e as FieldCard, e as default };
@@ -1,18 +1,18 @@
1
- import "../vendors/version-BPrpr-5-.js";
1
+ import "../vendors/version-PykRMMOY.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import { t as e } from "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
5
5
  import "../Overlay/OverlayContext-CVSFoyqN.js";
6
- import { t } from "../vendors/useLocale-3oUjPb-k.js";
7
- import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
8
- import { t as n } from "../vendors/cssVars-UpriQzph.js";
9
- import { t as r } from "../Tooltip/Tooltip-N06Os8rG.js";
10
- import "../Select/SelectInputSearch-BMJQw4ll.js";
6
+ import { t } from "../vendors/cssVars-BbL_cmFM.js";
7
+ import { t as n } from "../vendors/useLocale-DvhRopWF.js";
8
+ import "../vendors/useLatchedPopupPortalRoot-Cu3oUL9h.js";
9
+ import { t as r } from "../Tooltip/Tooltip-N-w19uRu.js";
10
+ import "../Select/SelectInputSearch-Bt2i3y3d.js";
11
11
  import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
12
- import "../ScrollBar/ScrollBar-IMTuAOF5.js";
12
+ import "../ScrollBar/ScrollBar-B7R4brL_.js";
13
13
  import "../vendors/useFloatingPortal-DJ1iKmW-.js";
14
- import { t as i } from "../DropDown/DropDown-B3VFy5GF.js";
15
- import { r as a } from "../Table/Table-B8381Lni.js";
14
+ import { t as i } from "../DropDown/DropDown-Bb4dkd_c.js";
15
+ import { r as a } from "../Table/Table-CCyC7VdA.js";
16
16
  import { isFunction as o, isNumber as s, isString as c } from "lodash-es";
17
17
  import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
18
18
  import f, { createContext as p, forwardRef as m, memo as h, useCallback as g, useContext as _, useEffect as v, useImperativeHandle as y, useLayoutEffect as b, useMemo as x, useRef as S, useState as C } from "react";
@@ -1642,8 +1642,8 @@ var tn = (e) => e.startsWith("gantt.") ? e : `gantt.${e}`, nn = p(void 0), rn =
1642
1642
  quarter: "mode.quarter",
1643
1643
  quarterMonth: "mode.quarterMonth",
1644
1644
  year: "mode.year"
1645
- }, ln = ({ viewMode: n = "day", availableModes: r, onViewModeChange: a, onTodayClick: o, onScrollPrev: s, onScrollNext: c, className: l = "" }) => {
1646
- let { t: f } = t(), p = an()?.dropdownTheme, m = g((e) => f(tn(cn[e])), [f]), h = S(null), [_, v] = C(!1), y = g(() => {
1645
+ }, ln = ({ viewMode: t = "day", availableModes: r, onViewModeChange: a, onTodayClick: o, onScrollPrev: s, onScrollNext: c, className: l = "" }) => {
1646
+ let { t: f } = n(), p = an()?.dropdownTheme, m = g((e) => f(tn(cn[e])), [f]), h = S(null), [_, v] = C(!1), y = g(() => {
1647
1647
  let e = h.current;
1648
1648
  if (!e) return document.body;
1649
1649
  let t = e.closest(sn);
@@ -1654,9 +1654,9 @@ var tn = (e) => e.startsWith("gantt.") ? e : `gantt.${e}`, nn = p(void 0), rn =
1654
1654
  key: e,
1655
1655
  label: m(e)
1656
1656
  }));
1657
- }, [r, m]), T = x(() => b.find((e) => e.key === n)?.label ?? n, [b, n]), E = g((e) => {
1658
- e?.key && e.key !== n && a?.(e.key);
1659
- }, [a, n]);
1657
+ }, [r, m]), T = x(() => b.find((e) => e.key === t)?.label ?? t, [b, t]), E = g((e) => {
1658
+ e?.key && e.key !== t && a?.(e.key);
1659
+ }, [a, t]);
1660
1660
  return /* @__PURE__ */ d("div", {
1661
1661
  className: w(on.root, l),
1662
1662
  "data-testid": "gantt-toolbar",
@@ -1664,7 +1664,7 @@ var tn = (e) => e.startsWith("gantt.") ? e : `gantt.${e}`, nn = p(void 0), rn =
1664
1664
  children: [
1665
1665
  /* @__PURE__ */ u(i, {
1666
1666
  menus: b,
1667
- activeKey: [n],
1667
+ activeKey: [t],
1668
1668
  showSearch: !1,
1669
1669
  visible: _,
1670
1670
  onOpenChange: v,
@@ -2219,8 +2219,8 @@ function An({ enabled: e, onTaskMouseDown: t, onBarClick: n }) {
2219
2219
  }, document.addEventListener("mousemove", d), document.addEventListener("mouseup", f);
2220
2220
  }, [e, s]) };
2221
2221
  }
2222
- var jn = f.memo(({ item: e, barTop: n, dragTaskId: r, dragPreview: i, dragPermission: a }) => {
2223
- let { t: o } = t(), s = $((e) => e.viewMode), c = $((e) => e.timelineCoords), f = $((e) => e.timelineStartMs), p = $((e) => e.timelineEndMs), m = $((e) => e.timelineWidth), h = vn((e) => e.tooltip), g = vn((e) => e.isScrolling), _ = vn((e) => e.onBarClick), v = vn((e) => e.onTaskMouseDown), y = vn((e) => e.onResizeMouseDown), b = g ? null : h, S = r === e.id, C = S && i ? i.previewStartMs : e.startMs, T = S && i ? i.previewEndMs : e.endMs, E = x(() => {
2222
+ var jn = f.memo(({ item: e, barTop: t, dragTaskId: r, dragPreview: i, dragPermission: a }) => {
2223
+ let { t: o } = n(), s = $((e) => e.viewMode), c = $((e) => e.timelineCoords), f = $((e) => e.timelineStartMs), p = $((e) => e.timelineEndMs), m = $((e) => e.timelineWidth), h = vn((e) => e.tooltip), g = vn((e) => e.isScrolling), _ = vn((e) => e.onBarClick), v = vn((e) => e.onTaskMouseDown), y = vn((e) => e.onResizeMouseDown), b = g ? null : h, S = r === e.id, C = S && i ? i.previewStartMs : e.startMs, T = S && i ? i.previewEndMs : e.endMs, E = x(() => {
2224
2224
  let t = e.color;
2225
2225
  return {
2226
2226
  baseColor: t,
@@ -2264,7 +2264,7 @@ var jn = f.memo(({ item: e, barTop: n, dragTaskId: r, dragPreview: i, dragPermis
2264
2264
  if (!D) return null;
2265
2265
  let { calculatedBarLeft: V, clippedStart: H, clippedEnd: U } = D, W = V + A, G = V + Math.max(40, A + 12) <= m, ae = C !== null && T !== null ? s === "quarterMonth" ? $e(C, T) : c.toWidth(C, T) : A, K = ae < 40 ? Math.max(40, ae + 12) : ae, q = W + 4 <= m, J = {
2266
2266
  left: V,
2267
- top: n,
2267
+ top: t,
2268
2268
  width: `var(--bsy-gantt-bar-actual-width, ${A}px)`,
2269
2269
  height: 26,
2270
2270
  background: ee,
@@ -2395,21 +2395,21 @@ var Rn = 24, zn = {
2395
2395
  function Bn(e, t) {
2396
2396
  return e == null || e === "__empty__" ? t : e;
2397
2397
  }
2398
- var Vn = ({ item: n, barTop: i }) => {
2399
- let { t: a } = t(), o = g((e, t) => a(tn(e), t), [a]), c = $((e) => e.timelineCoords), l = $((e) => e.timelineStartMs), f = $((e) => e.timelineEndMs), p = $((e) => e.timelineWidth), m = vn((e) => e.collapsedKeys), h = vn((e) => e.onBarClick), { virtualReference: _, handleMouseMove: v, handleMouseLeave: y, handleTooltipVisibleChange: b } = En(), S = s(n.progress) ? Math.max(0, Math.min(1, n.progress ?? 0)) : 0, C = x(() => Fn({
2400
- rawStartMs: n.rawStartMs,
2401
- rawEndMs: n.rawEndMs,
2402
- progress: n.progress
2398
+ var Vn = ({ item: t, barTop: i }) => {
2399
+ let { t: a } = n(), o = g((e, t) => a(tn(e), t), [a]), c = $((e) => e.timelineCoords), l = $((e) => e.timelineStartMs), f = $((e) => e.timelineEndMs), p = $((e) => e.timelineWidth), m = vn((e) => e.collapsedKeys), h = vn((e) => e.onBarClick), { virtualReference: _, handleMouseMove: v, handleMouseLeave: y, handleTooltipVisibleChange: b } = En(), S = s(t.progress) ? Math.max(0, Math.min(1, t.progress ?? 0)) : 0, C = x(() => Fn({
2400
+ rawStartMs: t.rawStartMs,
2401
+ rawEndMs: t.rawEndMs,
2402
+ progress: t.progress
2403
2403
  }, o), [
2404
- n.rawStartMs,
2405
- n.rawEndMs,
2406
- n.progress,
2404
+ t.rawStartMs,
2405
+ t.rawEndMs,
2406
+ t.progress,
2407
2407
  o
2408
2408
  ]), T = x(() => {
2409
- if (n.startMs === null || n.endMs === null || n.startMs >= n.endMs || l >= f) return null;
2409
+ if (t.startMs === null || t.endMs === null || t.startMs >= t.endMs || l >= f) return null;
2410
2410
  let e = It({
2411
- startMs: n.startMs,
2412
- endMs: n.endMs
2411
+ startMs: t.startMs,
2412
+ endMs: t.endMs
2413
2413
  }, {
2414
2414
  startMs: l,
2415
2415
  endMs: f
@@ -2419,19 +2419,19 @@ var Vn = ({ item: n, barTop: i }) => {
2419
2419
  barWidth: c.toWidth(e.startMs, e.endMs),
2420
2420
  wrapperTop: i + (26 - Rn) / 2,
2421
2421
  clippedRange: e,
2422
- itemStartMs: n.startMs,
2423
- itemEndMs: n.endMs
2422
+ itemStartMs: t.startMs,
2423
+ itemEndMs: t.endMs
2424
2424
  } : null;
2425
2425
  }, [
2426
- n.startMs,
2427
- n.endMs,
2426
+ t.startMs,
2427
+ t.endMs,
2428
2428
  l,
2429
2429
  f,
2430
2430
  c,
2431
2431
  i
2432
2432
  ]);
2433
2433
  if (!T) return null;
2434
- let { barLeft: E, barWidth: D, wrapperTop: O, clippedRange: ee, itemStartMs: te, itemEndMs: k } = T, A = te + (k - te) * S, j = Math.min(ee.endMs, Math.max(ee.startMs, A)), M = c.toWidth(ee.startMs, j), N = `${Math.max(0, Math.min(1, M / D)) * 100}%`, P = Math.max(0, p - E), F = Bn(n.label, a("gantt.emptyGroup")), I = In(m, n.groupKey);
2434
+ let { barLeft: E, barWidth: D, wrapperTop: O, clippedRange: ee, itemStartMs: te, itemEndMs: k } = T, A = te + (k - te) * S, j = Math.min(ee.endMs, Math.max(ee.startMs, A)), M = c.toWidth(ee.startMs, j), N = `${Math.max(0, Math.min(1, M / D)) * 100}%`, P = Math.max(0, p - E), F = Bn(t.label, a("gantt.emptyGroup")), I = In(m, t.groupKey);
2435
2435
  return /* @__PURE__ */ u(r, {
2436
2436
  content: C,
2437
2437
  placement: "bottom-start",
@@ -2451,7 +2451,7 @@ var Vn = ({ item: n, barTop: i }) => {
2451
2451
  top: O,
2452
2452
  width: D
2453
2453
  },
2454
- onClick: (e) => h?.(e, n),
2454
+ onClick: (e) => h?.(e, t),
2455
2455
  onMouseMove: v,
2456
2456
  onMouseLeave: y,
2457
2457
  children: [/* @__PURE__ */ d("div", {
@@ -2483,16 +2483,16 @@ var Vn = ({ item: n, barTop: i }) => {
2483
2483
  function Hn(e, t) {
2484
2484
  return e.barTop === t.barTop && e.item === t.item;
2485
2485
  }
2486
- var Un = f.memo(Vn, Hn), Wn = f.memo(({ indicators: n = [], onJump: r }) => {
2487
- let { t: i } = t();
2488
- if (!Array.isArray(n) || n.length === 0) return null;
2486
+ var Un = f.memo(Vn, Hn), Wn = f.memo(({ indicators: t = [], onJump: r }) => {
2487
+ let { t: i } = n();
2488
+ if (!Array.isArray(t) || t.length === 0) return null;
2489
2489
  let a = (e, t) => {
2490
2490
  e.preventDefault(), e.stopPropagation(), r?.({
2491
2491
  targetMs: t.targetMs,
2492
2492
  taskId: t.taskId
2493
2493
  });
2494
2494
  };
2495
- return /* @__PURE__ */ u(l, { children: n.map((t) => /* @__PURE__ */ u("div", {
2495
+ return /* @__PURE__ */ u(l, { children: t.map((t) => /* @__PURE__ */ u("div", {
2496
2496
  className: Q.offscreenRow,
2497
2497
  style: {
2498
2498
  top: t.rowTop,
@@ -2674,11 +2674,11 @@ var Un = f.memo(Vn, Hn), Wn = f.memo(({ indicators: n = [], onJump: r }) => {
2674
2674
  });
2675
2675
  //#endregion
2676
2676
  //#region src/components/Gantt/GanttChart/GanttChart.tsx
2677
- function Xn({ items: e = [], viewMode: n = "day", availableModes: r, onViewModeChange: i, timeRangeConfig: a = H, pixelsPerDayConfig: o = ae, onTaskTimeChange: s, onRowClick: c, tooltip: l, verticalScrollController: f, showWeekendHighlight: p = !0, showTodayLine: m = !0, collapsedKeys: h, onToggleCollapse: _ }, b) {
2678
- let { t: w } = t(), T = g((e, t) => w(tn(e), t), [w]), E = S(null), O = S(null), ee = S(null), te = D(O), k = S(null), A = $t(E, O), [j, M] = C(!1), { pixelsPerDay: N, viewportWidth: P, scrollLeft: F, timelineStartMs: I, timelineEndMs: L, visibleStartMs: R, visibleEndMs: ne, lowerSegments: re, timelineCoords: z, timelineWidth: B, todayCenterMs: ie, todayLineLeft: V, isInitialLayoutReady: U, handleContentScroll: W, handleTodayClick: G, handleOffscreenJump: K, handleScrollPrev: q, handleScrollNext: J } = Jt({
2677
+ function Xn({ items: e = [], viewMode: t = "day", availableModes: r, onViewModeChange: i, timeRangeConfig: a = H, pixelsPerDayConfig: o = ae, onTaskTimeChange: s, onRowClick: c, tooltip: l, verticalScrollController: f, showWeekendHighlight: p = !0, showTodayLine: m = !0, collapsedKeys: h, onToggleCollapse: _ }, b) {
2678
+ let { t: w } = n(), T = g((e, t) => w(tn(e), t), [w]), E = S(null), O = S(null), ee = S(null), te = D(O), k = S(null), A = $t(E, O), [j, M] = C(!1), { pixelsPerDay: N, viewportWidth: P, scrollLeft: F, timelineStartMs: I, timelineEndMs: L, visibleStartMs: R, visibleEndMs: ne, lowerSegments: re, timelineCoords: z, timelineWidth: B, todayCenterMs: ie, todayLineLeft: V, isInitialLayoutReady: U, handleContentScroll: W, handleTodayClick: G, handleOffscreenJump: K, handleScrollPrev: q, handleScrollNext: J } = Jt({
2679
2679
  timeRangeConfig: a,
2680
2680
  pixelsPerDayConfig: o,
2681
- viewMode: n,
2681
+ viewMode: t,
2682
2682
  contentRef: O,
2683
2683
  contentSize: te,
2684
2684
  headerTrackRef: ee,
@@ -2697,7 +2697,7 @@ function Xn({ items: e = [], viewMode: n = "day", availableModes: r, onViewModeC
2697
2697
  ]);
2698
2698
  let { dragState: Y, committedRangeById: X, resetCommittedRanges: oe, forceResetAllCommittedRanges: se, handleTaskMouseDown: ce, handleResizeMouseDown: Z, consumeRecentDragResult: le } = Xe({
2699
2699
  pixelsPerDay: N,
2700
- viewMode: n,
2700
+ viewMode: t,
2701
2701
  timelineCoords: z,
2702
2702
  onTaskTimeChange: s,
2703
2703
  containerRef: O,
@@ -2725,7 +2725,7 @@ function Xn({ items: e = [], viewMode: n = "day", availableModes: r, onViewModeC
2725
2725
  let { normalizedItems: ue } = Qt({
2726
2726
  visibleItems: e,
2727
2727
  committedRangeById: X,
2728
- viewMode: n
2728
+ viewMode: t
2729
2729
  }), de = x(() => {
2730
2730
  let e = {};
2731
2731
  return ue.forEach((t) => {
@@ -2759,7 +2759,7 @@ function Xn({ items: e = [], viewMode: n = "day", availableModes: r, onViewModeC
2759
2759
  showWeekendHighlight: p,
2760
2760
  timelineStartMs: I,
2761
2761
  timelineWidth: B,
2762
- viewMode: n
2762
+ viewMode: t
2763
2763
  }), _e = en(m, V, B, ie, {
2764
2764
  startMs: I,
2765
2765
  endMs: L
@@ -2778,7 +2778,7 @@ function Xn({ items: e = [], viewMode: n = "day", availableModes: r, onViewModeC
2778
2778
  c,
2779
2779
  _
2780
2780
  ]), ye = x(() => ({
2781
- viewMode: n,
2781
+ viewMode: t,
2782
2782
  pixelsPerDay: N,
2783
2783
  timelineStartMs: I,
2784
2784
  timelineEndMs: L,
@@ -2790,7 +2790,7 @@ function Xn({ items: e = [], viewMode: n = "day", availableModes: r, onViewModeC
2790
2790
  timelineWidth: B,
2791
2791
  isInitialLayoutReady: U
2792
2792
  }), [
2793
- n,
2793
+ t,
2794
2794
  N,
2795
2795
  I,
2796
2796
  L,
@@ -2818,7 +2818,7 @@ function Xn({ items: e = [], viewMode: n = "day", availableModes: r, onViewModeC
2818
2818
  todayLineLeft: V,
2819
2819
  todayCenterMs: ie,
2820
2820
  showTodayLine: m,
2821
- viewMode: n,
2821
+ viewMode: t,
2822
2822
  availableModes: r,
2823
2823
  formatMessage: T,
2824
2824
  onViewModeChange: i,
@@ -3055,8 +3055,8 @@ var dr = "#0265ff", fr = "#121111", pr = "#fff", mr = (e) => {
3055
3055
  ...e.dropdownTheme
3056
3056
  }, i;
3057
3057
  }, hr = (e) => {
3058
- let t = {};
3059
- return n(t, "--bsy-gantt-color-text", e.colorText), n(t, "--bsy-gantt-color-text-secondary", e.colorTextSecondary), n(t, "--bsy-gantt-color-split", e.colorSplit), n(t, "--bsy-gantt-color-border", e.colorBorder), n(t, "--bsy-gantt-color-primary", e.colorPrimary), n(t, "--bsy-gantt-color-bg-container", e.colorBgContainer), n(t, "--bsy-gantt-color-bg-weekend", e.colorBgWeekend), n(t, "--bsy-gantt-color-bg-row-hover", e.colorBgRowHover), n(t, "--bsy-gantt-color-today-line", e.todayLineColor), n(t, "--bsy-gantt-toolbar-today-hover-bg", e.toolbarTodayHoverBg), n(t, "--bsy-gantt-toolbar-icon-color", e.toolbarIconColor), n(t, "--bsy-gantt-toolbar-icon-hover-color", e.toolbarIconHoverColor), n(t, "--bsy-gantt-arrow-bg", e.arrowBg), n(t, "--bsy-gantt-toolbar-bg", e.toolbarBg), t;
3058
+ let n = {};
3059
+ return t(n, "--bsy-gantt-color-text", e.colorText), t(n, "--bsy-gantt-color-text-secondary", e.colorTextSecondary), t(n, "--bsy-gantt-color-split", e.colorSplit), t(n, "--bsy-gantt-color-border", e.colorBorder), t(n, "--bsy-gantt-color-primary", e.colorPrimary), t(n, "--bsy-gantt-color-bg-container", e.colorBgContainer), t(n, "--bsy-gantt-color-bg-weekend", e.colorBgWeekend), t(n, "--bsy-gantt-color-bg-row-hover", e.colorBgRowHover), t(n, "--bsy-gantt-color-today-line", e.todayLineColor), t(n, "--bsy-gantt-toolbar-today-hover-bg", e.toolbarTodayHoverBg), t(n, "--bsy-gantt-toolbar-icon-color", e.toolbarIconColor), t(n, "--bsy-gantt-toolbar-icon-hover-color", e.toolbarIconHoverColor), t(n, "--bsy-gantt-arrow-bg", e.arrowBg), t(n, "--bsy-gantt-toolbar-bg", e.toolbarBg), n;
3060
3060
  }, gr = (e) => {
3061
3061
  let t = mr(e);
3062
3062
  return t ? hr(t) : {};
@@ -1,3 +1,3 @@
1
- import "../vendors/version-BPrpr-5-.js";
1
+ import "../vendors/version-PykRMMOY.js";
2
2
  import { t as e } from "./Icon-CcKDWNGy.js";
3
3
  export { e as default };
@@ -1,6 +1,6 @@
1
1
  import { t as e } from "../Icon/Icon-CcKDWNGy.js";
2
- import { t } from "../vendors/useLocale-3oUjPb-k.js";
3
- import { t as n } from "../ScrollBar/ScrollBar-IMTuAOF5.js";
2
+ import { t } from "../vendors/useLocale-DvhRopWF.js";
3
+ import { t as n } from "../ScrollBar/ScrollBar-B7R4brL_.js";
4
4
  import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
5
  import { useCallback as a, useEffect as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
6
6
  import u from "clsx";
@@ -1,8 +1,8 @@
1
- import "../vendors/version-BPrpr-5-.js";
1
+ import "../vendors/version-PykRMMOY.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-CcKDWNGy.js";
4
4
  import "../vendors/LocaleContext-CsTLO_Y2.js";
5
- import "../vendors/useLocale-3oUjPb-k.js";
6
- import "../ScrollBar/ScrollBar-IMTuAOF5.js";
7
- import { t as e } from "./InputTag-C1WA6sDA.js";
5
+ import "../vendors/useLocale-DvhRopWF.js";
6
+ import "../ScrollBar/ScrollBar-B7R4brL_.js";
7
+ import { t as e } from "./InputTag-3sZTy2HT.js";
8
8
  export { e as default };