@baishuyun/ui-mobile 0.5.0 → 0.6.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 (47) hide show
  1. package/dist/AMap/AMap-BWZ2lhXr.js +683 -0
  2. package/dist/AMap/index.js +5 -0
  3. package/dist/ActionSheet/{ActionSheet-Ok-UTVMn.js → ActionSheet-DbrKxa_y.js} +1 -1
  4. package/dist/ActionSheet/index.js +3 -3
  5. package/dist/Calendar/{Calendar-ipjycVqK.js → Calendar-Bd6CS8y7.js} +2 -2
  6. package/dist/Calendar/index.js +4 -4
  7. package/dist/ConfigProvider/{ConfigProvider-CNhaKMJa.js → ConfigProvider-DnlakyRE.js} +36 -9
  8. package/dist/ConfigProvider/index.js +4 -4
  9. package/dist/{vendors/useLocale-CMHIlzlj.js → ConfigProvider/useLocale-CP8NRZoj.js} +19 -2
  10. package/dist/Gantt/{Gantt-DDItjDkR.js → Gantt-CR7eRNVP.js} +176 -181
  11. package/dist/Gantt/index.js +6 -6
  12. package/dist/Icon/index.js +1 -1
  13. package/dist/components/AMap/AMap.d.ts +3 -0
  14. package/dist/components/AMap/Controls/Controls.d.ts +3 -0
  15. package/dist/components/AMap/Controls/index.d.ts +1 -0
  16. package/dist/components/AMap/Locate/Locate.d.ts +3 -0
  17. package/dist/components/AMap/Locate/index.d.ts +1 -0
  18. package/dist/components/AMap/Markers/Markers.d.ts +3 -0
  19. package/dist/components/AMap/Markers/index.d.ts +1 -0
  20. package/dist/components/AMap/PoiSearch/PoiSearch.d.ts +3 -0
  21. package/dist/components/AMap/PoiSearch/index.d.ts +1 -0
  22. package/dist/components/AMap/context.d.ts +7 -0
  23. package/dist/components/AMap/ensureAMap.d.ts +7 -0
  24. package/dist/components/AMap/index.d.ts +15 -0
  25. package/dist/components/AMap/interface.d.ts +66 -0
  26. package/dist/components/AMap/utils/cx.d.ts +1 -0
  27. package/dist/components/AMap/utils/geometry.d.ts +21 -0
  28. package/dist/components/AMap/utils/markerHtml.d.ts +21 -0
  29. package/dist/components/AMap/utils/searchPois.d.ts +6 -0
  30. package/dist/components/ConfigProvider/ConfigContext.d.ts +11 -0
  31. package/dist/components/ConfigProvider/ConfigProvider.d.ts +1 -1
  32. package/dist/components/ConfigProvider/context.d.ts +14 -0
  33. package/dist/components/ConfigProvider/index.d.ts +2 -1
  34. package/dist/components/Gantt/GanttBar.d.ts +3 -1
  35. package/dist/components/Gantt/index.d.ts +1 -1
  36. package/dist/components/Gantt/{calcTodayLeft.d.ts → utils/calcTodayLeft.d.ts} +1 -1
  37. package/dist/components/index.d.ts +4 -2
  38. package/dist/index.js +10 -9
  39. package/dist/locale/lang/en-US.json.d.ts +11 -0
  40. package/dist/locale/lang/zh-CN.json.d.ts +11 -0
  41. package/dist/locale/lang/zh-TW.json.d.ts +11 -0
  42. package/dist/style.css +1 -1
  43. package/dist/vendors/{version-3D9AaDf3.js → version-qi3OapTz.js} +1 -1
  44. package/package.json +2 -1
  45. package/dist/locale/context/LocaleContext.d.ts +0 -7
  46. /package/dist/Calendar/{timeUtils-CPYfw0pt.js → timeUtils-t4A3-Hr6.js} +0 -0
  47. /package/dist/components/Gantt/{msUntilNextDay.d.ts → utils/msUntilNextDay.d.ts} +0 -0
@@ -1,6 +1,6 @@
1
- import { t as e } from "../ActionSheet/ActionSheet-Ok-UTVMn.js";
2
- import { i as t, r as n, t as r } from "../vendors/useLocale-CMHIlzlj.js";
3
- import { r as i } from "../Calendar/timeUtils-CPYfw0pt.js";
1
+ import { t as e } from "../ActionSheet/ActionSheet-DbrKxa_y.js";
2
+ import { a as t, i as n, t as r } from "../ConfigProvider/useLocale-CP8NRZoj.js";
3
+ import { r as i } from "../Calendar/timeUtils-t4A3-Hr6.js";
4
4
  import { createContext as a, memo as o, useCallback as s, useContext as c, useEffect as l, useLayoutEffect as u, useMemo as d, useRef as f, useState as p } from "react";
5
5
  import { createPortal as m } from "react-dom";
6
6
  import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
@@ -9,42 +9,43 @@ import y from "dayjs";
9
9
  import { useVirtualizer as b } from "@tanstack/react-virtual";
10
10
  //#region src/components/Gantt/Gantt.module.scss
11
11
  var x = {
12
- "bsy-mobile-gantt": "_bsy-mobile-gantt_10w5l_1",
13
- "bsy-mobile-gantt__scroll": "_bsy-mobile-gantt__scroll_10w5l_18",
14
- "bsy-mobile-gantt__canvas": "_bsy-mobile-gantt__canvas_10w5l_28",
15
- "bsy-mobile-gantt__overlay-host": "_bsy-mobile-gantt__overlay-host_10w5l_34",
16
- "bsy-mobile-gantt__header": "_bsy-mobile-gantt__header_10w5l_43",
17
- "bsy-mobile-gantt__header-row1": "_bsy-mobile-gantt__header-row1_10w5l_50",
18
- "bsy-mobile-gantt__header-row2": "_bsy-mobile-gantt__header-row2_10w5l_54",
19
- "bsy-mobile-gantt__header-cell": "_bsy-mobile-gantt__header-cell_10w5l_57",
20
- "bsy-mobile-gantt__header-cell-label": "_bsy-mobile-gantt__header-cell-label_10w5l_62",
21
- "bsy-mobile-gantt__header-cell-label--today": "_bsy-mobile-gantt__header-cell-label--today_10w5l_73",
22
- "bsy-mobile-gantt__today-dot": "_bsy-mobile-gantt__today-dot_10w5l_77",
23
- "bsy-mobile-gantt__sticky-label": "_bsy-mobile-gantt__sticky-label_10w5l_87",
24
- "bsy-mobile-gantt__sticky-label-text": "_bsy-mobile-gantt__sticky-label-text_10w5l_95",
25
- "bsy-mobile-gantt__toolbar": "_bsy-mobile-gantt__toolbar_10w5l_102",
26
- "bsy-mobile-gantt__toolbar-zoom": "_bsy-mobile-gantt__toolbar-zoom_10w5l_115",
27
- "bsy-mobile-gantt__toolbar-today": "_bsy-mobile-gantt__toolbar-today_10w5l_115",
28
- "bsy-mobile-gantt__toolbar-nav": "_bsy-mobile-gantt__toolbar-nav_10w5l_115",
29
- "bsy-mobile-gantt__toolbar-divider": "_bsy-mobile-gantt__toolbar-divider_10w5l_130",
30
- "bsy-mobile-gantt__chevron": "_bsy-mobile-gantt__chevron_10w5l_156",
31
- "bsy-mobile-gantt__chevron--left": "_bsy-mobile-gantt__chevron--left_10w5l_160",
32
- "bsy-mobile-gantt__chevron--right": "_bsy-mobile-gantt__chevron--right_10w5l_163",
33
- "bsy-mobile-gantt__timeline": "_bsy-mobile-gantt__timeline_10w5l_166",
34
- "bsy-mobile-gantt__timeline-inner": "_bsy-mobile-gantt__timeline-inner_10w5l_177",
35
- "bsy-mobile-gantt__column": "_bsy-mobile-gantt__column_10w5l_181",
36
- "bsy-mobile-gantt__column--weekend": "_bsy-mobile-gantt__column--weekend_10w5l_192",
37
- "bsy-mobile-gantt__today-line": "_bsy-mobile-gantt__today-line_10w5l_195",
38
- "bsy-mobile-gantt__bar": "_bsy-mobile-gantt__bar_10w5l_203",
39
- "bsy-mobile-gantt__bar-track": "_bsy-mobile-gantt__bar-track_10w5l_210",
40
- "bsy-mobile-gantt__bar-progress": "_bsy-mobile-gantt__bar-progress_10w5l_210",
41
- "bsy-mobile-gantt__bar-label": "_bsy-mobile-gantt__bar-label_10w5l_220",
42
- "bsy-mobile-gantt__offscreen": "_bsy-mobile-gantt__offscreen_10w5l_231",
43
- "bsy-mobile-gantt__offscreen-layer": "_bsy-mobile-gantt__offscreen-layer_10w5l_240",
44
- "bsy-mobile-gantt__offscreen-row": "_bsy-mobile-gantt__offscreen-row_10w5l_250",
45
- "bsy-mobile-gantt__offscreen-arrow": "_bsy-mobile-gantt__offscreen-arrow_10w5l_258",
46
- "bsy-mobile-gantt-arrow-enter": "_bsy-mobile-gantt-arrow-enter_10w5l_1",
47
- "bsy-mobile-gantt__offscreen-arrow--right": "_bsy-mobile-gantt__offscreen-arrow--right_10w5l_278"
12
+ "bsy-mobile-gantt": "_bsy-mobile-gantt_1ni8r_1",
13
+ "bsy-mobile-gantt__scroll": "_bsy-mobile-gantt__scroll_1ni8r_18",
14
+ "bsy-mobile-gantt__canvas": "_bsy-mobile-gantt__canvas_1ni8r_28",
15
+ "bsy-mobile-gantt__overlay-host": "_bsy-mobile-gantt__overlay-host_1ni8r_34",
16
+ "bsy-mobile-gantt__header": "_bsy-mobile-gantt__header_1ni8r_43",
17
+ "bsy-mobile-gantt__header-row1": "_bsy-mobile-gantt__header-row1_1ni8r_50",
18
+ "bsy-mobile-gantt__header-row2": "_bsy-mobile-gantt__header-row2_1ni8r_54",
19
+ "bsy-mobile-gantt__header-cell": "_bsy-mobile-gantt__header-cell_1ni8r_57",
20
+ "bsy-mobile-gantt__header-cell-label": "_bsy-mobile-gantt__header-cell-label_1ni8r_62",
21
+ "bsy-mobile-gantt__header-cell-label--today": "_bsy-mobile-gantt__header-cell-label--today_1ni8r_73",
22
+ "bsy-mobile-gantt__today-dot": "_bsy-mobile-gantt__today-dot_1ni8r_77",
23
+ "bsy-mobile-gantt__sticky-label": "_bsy-mobile-gantt__sticky-label_1ni8r_87",
24
+ "bsy-mobile-gantt__sticky-label-text": "_bsy-mobile-gantt__sticky-label-text_1ni8r_95",
25
+ "bsy-mobile-gantt__toolbar": "_bsy-mobile-gantt__toolbar_1ni8r_102",
26
+ "bsy-mobile-gantt__toolbar-zoom": "_bsy-mobile-gantt__toolbar-zoom_1ni8r_115",
27
+ "bsy-mobile-gantt__toolbar-today": "_bsy-mobile-gantt__toolbar-today_1ni8r_115",
28
+ "bsy-mobile-gantt__toolbar-nav": "_bsy-mobile-gantt__toolbar-nav_1ni8r_115",
29
+ "bsy-mobile-gantt__toolbar-divider": "_bsy-mobile-gantt__toolbar-divider_1ni8r_130",
30
+ "bsy-mobile-gantt__chevron": "_bsy-mobile-gantt__chevron_1ni8r_156",
31
+ "bsy-mobile-gantt__chevron--left": "_bsy-mobile-gantt__chevron--left_1ni8r_160",
32
+ "bsy-mobile-gantt__chevron--right": "_bsy-mobile-gantt__chevron--right_1ni8r_163",
33
+ "bsy-mobile-gantt__timeline": "_bsy-mobile-gantt__timeline_1ni8r_166",
34
+ "bsy-mobile-gantt__timeline-inner": "_bsy-mobile-gantt__timeline-inner_1ni8r_177",
35
+ "bsy-mobile-gantt__column": "_bsy-mobile-gantt__column_1ni8r_181",
36
+ "bsy-mobile-gantt__column--weekend": "_bsy-mobile-gantt__column--weekend_1ni8r_192",
37
+ "bsy-mobile-gantt__today-line": "_bsy-mobile-gantt__today-line_1ni8r_195",
38
+ "bsy-mobile-gantt__bar": "_bsy-mobile-gantt__bar_1ni8r_203",
39
+ "bsy-mobile-gantt__bar-track": "_bsy-mobile-gantt__bar-track_1ni8r_210",
40
+ "bsy-mobile-gantt__bar-progress": "_bsy-mobile-gantt__bar-progress_1ni8r_210",
41
+ "bsy-mobile-gantt__bar-label": "_bsy-mobile-gantt__bar-label_1ni8r_220",
42
+ "bsy-mobile-gantt__bar-label-overlay": "_bsy-mobile-gantt__bar-label-overlay_1ni8r_230",
43
+ "bsy-mobile-gantt__offscreen": "_bsy-mobile-gantt__offscreen_1ni8r_242",
44
+ "bsy-mobile-gantt__offscreen-layer": "_bsy-mobile-gantt__offscreen-layer_1ni8r_251",
45
+ "bsy-mobile-gantt__offscreen-row": "_bsy-mobile-gantt__offscreen-row_1ni8r_261",
46
+ "bsy-mobile-gantt__offscreen-arrow": "_bsy-mobile-gantt__offscreen-arrow_1ni8r_269",
47
+ "bsy-mobile-gantt-arrow-enter": "_bsy-mobile-gantt-arrow-enter_1ni8r_1",
48
+ "bsy-mobile-gantt__offscreen-arrow--right": "_bsy-mobile-gantt__offscreen-arrow--right_1ni8r_289"
48
49
  }, S = a(null), C = a(null), w = () => {
49
50
  let e = c(S);
50
51
  if (!e) throw Error("useGanttState must be used within a GanttStateContext.Provider");
@@ -67,23 +68,25 @@ var x = {
67
68
  "halfHour",
68
69
  "tenMinute",
69
70
  "oneMinute"
70
- ], O = [...E, ...D], k = t.gantt.zoom, A = [...[...D].reverse(), ...E], j = 1440 * 60 * 1e3, M = j / 24, N = M / 60, P = {
71
- halfDay: 12 * M,
72
- sixHour: 6 * M,
73
- hour: M,
74
- halfHour: 30 * N,
75
- tenMinute: 10 * N,
76
- oneMinute: N
77
- }, ee = {
71
+ ], O = [...E, ...D];
72
+ t.gantt.zoom;
73
+ var k = [...[...D].reverse(), ...E], A = 1440 * 60 * 1e3, j = A / 24, M = j / 60, N = {
74
+ halfDay: 12 * j,
75
+ sixHour: 6 * j,
76
+ hour: j,
77
+ halfHour: 30 * M,
78
+ tenMinute: 10 * M,
79
+ oneMinute: M
80
+ }, P = {
78
81
  halfDay: 80,
79
82
  sixHour: 70,
80
83
  hour: 50,
81
84
  halfHour: 45,
82
85
  tenMinute: 40,
83
86
  oneMinute: 40
84
- }, te = 30 / 40;
87
+ }, ee = 30 / 40;
85
88
  function F(e) {
86
- return (e === "tenMinute" || e === "oneMinute" ? 30 : Math.round(ee[e] * te)) * (j / P[e]);
89
+ return (e === "tenMinute" || e === "oneMinute" ? 30 : Math.round(P[e] * ee)) * (A / N[e]);
87
90
  }
88
91
  var I = {
89
92
  day: 30,
@@ -98,7 +101,7 @@ var I = {
98
101
  halfHour: F("halfHour"),
99
102
  tenMinute: F("tenMinute"),
100
103
  oneMinute: F("oneMinute")
101
- }, ne = {
104
+ }, te = {
102
105
  halfDay: 30,
103
106
  sixHour: 14,
104
107
  hour: 7,
@@ -110,30 +113,30 @@ function L(e) {
110
113
  return D.includes(e);
111
114
  }
112
115
  function R(e) {
113
- return L(e) ? P[e] : j;
116
+ return L(e) ? N[e] : A;
114
117
  }
115
- function re(e, t) {
116
- return t * (R(e) / j);
118
+ function ne(e, t) {
119
+ return t * (R(e) / A);
117
120
  }
118
121
  function z(e, t, n) {
119
- return (e.valueOf() - t.valueOf()) / j * n;
122
+ return (e.valueOf() - t.valueOf()) / A * n;
120
123
  }
121
- function ie(e, t, n) {
122
- let r = e / n * j;
124
+ function re(e, t, n) {
125
+ let r = e / n * A;
123
126
  return t.add(r, "millisecond");
124
127
  }
125
128
  //#endregion
126
129
  //#region src/components/Gantt/utils/time.ts
127
- var B = (e) => e ? y().tz(e) : y(), ae = (e, t) => i(e, t), oe = (e, r) => n(t, e, r), V = (e) => `calendar.monthShort.${e}`, H = (e) => `gantt.quarter.${e + 1}`, se = new Set([
130
+ var B = (e) => e ? y().tz(e) : y(), ie = (e, t) => i(e, t), ae = (e, r) => n(t, e, r), V = (e) => `calendar.monthShort.${e}`, H = (e) => `gantt.quarter.${e + 1}`, oe = new Set([
128
131
  "halfDay",
129
132
  "sixHour",
130
133
  "hour"
131
- ]), ce = new Set([
134
+ ]), se = new Set([
132
135
  "halfHour",
133
136
  "tenMinute",
134
137
  "oneMinute"
135
138
  ]);
136
- function le(e, t, n) {
139
+ function ce(e, t, n) {
137
140
  switch (t) {
138
141
  case "halfDay": return e.hour() < 12 ? n("gantt.am") : n("gantt.pm");
139
142
  case "sixHour": {
@@ -150,7 +153,7 @@ function le(e, t, n) {
150
153
  default: return e.format("HH:mm");
151
154
  }
152
155
  }
153
- function ue(e, t) {
156
+ function le(e, t) {
154
157
  let n = e.hour();
155
158
  if (n === 0) {
156
159
  let r = e.month() + 1;
@@ -163,7 +166,7 @@ function ue(e, t) {
163
166
  }
164
167
  return t("gantt.hour", { hour: n });
165
168
  }
166
- function de(e, t) {
169
+ function ue(e, t) {
167
170
  switch (t) {
168
171
  case "halfDay": return e.add(12, "hour");
169
172
  case "sixHour": return e.add(6, "hour");
@@ -174,17 +177,17 @@ function de(e, t) {
174
177
  default: return e.add(1, "hour");
175
178
  }
176
179
  }
177
- function fe(e, t, n, r = oe) {
180
+ function de(e, t, n, r = ae) {
178
181
  let i = [], a = "", o = null;
179
182
  return e.forEach((e, s) => {
180
183
  let c, l, u = e.date.year(), d = e.date.month() + 1;
181
- if (se.has(t)) c = e.date.format("YYYY-MM-DD"), l = r("gantt.yearMonthDay", {
184
+ if (oe.has(t)) c = e.date.format("YYYY-MM-DD"), l = r("gantt.yearMonthDay", {
182
185
  year: u,
183
186
  month: d,
184
187
  day: e.date.date(),
185
188
  monthShort: r(V(d))
186
189
  });
187
- else if (ce.has(t)) c = e.date.format("YYYY-MM-DD-HH"), l = ue(e.date, r);
190
+ else if (se.has(t)) c = e.date.format("YYYY-MM-DD-HH"), l = le(e.date, r);
188
191
  else if (t === "day" || t === "week") c = e.date.format("YYYY-MM"), l = r("calendar.yearMonth", {
189
192
  year: u,
190
193
  monthShort: r(V(d))
@@ -204,14 +207,14 @@ function fe(e, t, n, r = oe) {
204
207
  });
205
208
  }), o && i.push(o), i;
206
209
  }
207
- function U(e, t, n, r, i = oe) {
210
+ function U(e, t, n, r, i = ae) {
208
211
  let a = [];
209
212
  if (L(n)) {
210
- let o = P[n] / j, s = e;
213
+ let o = N[n] / A, s = e;
211
214
  for (let e = 0; e < t; e++) {
212
- let e = s, t = de(e, n), c = !r.isBefore(e) && r.isBefore(t);
215
+ let e = s, t = ue(e, n), c = !r.isBefore(e) && r.isBefore(t);
213
216
  a.push({
214
- label: le(e, n, i),
217
+ label: ce(e, n, i),
215
218
  isToday: c,
216
219
  isWeekend: !1,
217
220
  date: e,
@@ -264,21 +267,21 @@ function U(e, t, n, r, i = oe) {
264
267
  }
265
268
  return a;
266
269
  }
267
- function pe(e, t) {
270
+ function fe(e, t) {
268
271
  if (t === "oneMinute") return {
269
272
  startDate: e.subtract(12, "hour").startOf("minute"),
270
273
  count: 1440,
271
274
  totalDays: 1
272
275
  };
273
- let n = ne[t], r = R(t), i = e.startOf("day").subtract(n, "day"), a = e.startOf("day").add(n + 1, "day").diff(i, "day", !0);
276
+ let n = te[t], r = R(t), i = e.startOf("day").subtract(n, "day"), a = e.startOf("day").add(n + 1, "day").diff(i, "day", !0);
274
277
  return {
275
278
  startDate: i,
276
- count: Math.max(1, Math.round(a * j / r)),
279
+ count: Math.max(1, Math.round(a * A / r)),
277
280
  totalDays: a
278
281
  };
279
282
  }
280
283
  function W(e, t, n, r, i = 30) {
281
- if (L(t)) return pe(e, t);
284
+ if (L(t)) return fe(e, t);
282
285
  let a = Math.ceil((r > 0 ? r : 375) / n) * (1 + i * 2), o = Math.floor(a / 2), s, c;
283
286
  switch (t) {
284
287
  case "day":
@@ -339,7 +342,7 @@ function W(e, t, n, r, i = 30) {
339
342
  }
340
343
  //#endregion
341
344
  //#region src/components/Gantt/hooks/useGanttViewport.ts
342
- function me({ timeZone: e, initialZoomLevel: t = "day" }) {
345
+ function pe({ timeZone: e, initialZoomLevel: t = "day" }) {
343
346
  let n = t, [r, i] = p(() => B(e)), a = f(null), [o, s] = p(0), c = I[n], { startDate: u, count: m, totalDays: h } = d(() => W(r, n, c, o), [
344
347
  r,
345
348
  n,
@@ -370,7 +373,7 @@ function me({ timeZone: e, initialZoomLevel: t = "day" }) {
370
373
  //#endregion
371
374
  //#region src/components/Gantt/utils/viewportDateUtils.ts
372
375
  function G(e, t, n, r) {
373
- return ie(e + t / 2, n, r);
376
+ return re(e + t / 2, n, r);
374
377
  }
375
378
  function K(e, t, n, r) {
376
379
  let i = z(e, t, n);
@@ -378,7 +381,7 @@ function K(e, t, n, r) {
378
381
  }
379
382
  //#endregion
380
383
  //#region src/components/Gantt/utils/zoomReanchor.ts
381
- function he({ currentZoomLevel: e, nextZoomLevel: t, currentAnchorDate: n, currentScrollLeft: r, viewportWidth: i }) {
384
+ function me({ currentZoomLevel: e, nextZoomLevel: t, currentAnchorDate: n, currentScrollLeft: r, viewportWidth: i }) {
382
385
  let a = I[e], o = G(r, i, W(n, e, a, i).startDate, a), s = I[t];
383
386
  return {
384
387
  anchorDate: o,
@@ -387,8 +390,8 @@ function he({ currentZoomLevel: e, nextZoomLevel: t, currentAnchorDate: n, curre
387
390
  }
388
391
  //#endregion
389
392
  //#region src/components/Gantt/hooks/useGanttScroll.ts
390
- var ge = 2;
391
- function _e(e, { onZoomLevelChange: t }) {
393
+ var he = 2;
394
+ function ge(e, { onZoomLevelChange: t }) {
392
395
  let { timeZone: n, zoomLevel: r, anchorDate: i, viewportWidth: a, startDate: o, totalWidth: c, pxPerDay: l, totalDays: d, setAnchorDate: p } = e, m = f(null), h = f(t);
393
396
  h.current = t;
394
397
  let g = f({
@@ -426,7 +429,7 @@ function _e(e, { onZoomLevelChange: t }) {
426
429
  h.current(e);
427
430
  return;
428
431
  }
429
- let { anchorDate: i, scrollLeft: a } = he({
432
+ let { anchorDate: i, scrollLeft: a } = me({
430
433
  currentZoomLevel: t,
431
434
  nextZoomLevel: e,
432
435
  currentAnchorDate: n,
@@ -473,7 +476,7 @@ function _e(e, { onZoomLevelChange: t }) {
473
476
  }
474
477
  let { viewportWidth: e, zoomLevel: t, pxPerDay: n, startDate: r, totalWidth: i } = g.current;
475
478
  if (e <= 0) return;
476
- let a = x(), o = Math.max(0, i - e), s = e * ge, c = a < s, l = a > o - s;
479
+ let a = x(), o = Math.max(0, i - e), s = e * he, c = a < s, l = a > o - s;
477
480
  if (!c && !l) return;
478
481
  _.current = !0, y.current = !0;
479
482
  let u = G(a, e, r, n);
@@ -497,11 +500,11 @@ function _e(e, { onZoomLevelChange: t }) {
497
500
  }
498
501
  //#endregion
499
502
  //#region src/components/Gantt/utils/color.ts
500
- var ve = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, ye = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, be = (e, t) => {
503
+ var _e = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, ve = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i, ye = (e, t) => {
501
504
  if (t < 0 || t > 1) return null;
502
- let n = e.replace(ve, (e, t, n, r) => t + t + n + n + r + r), r = ye.exec(n);
505
+ let n = e.replace(_e, (e, t, n, r) => t + t + n + n + r + r), r = ve.exec(n);
503
506
  return r ? `rgba(${parseInt(r[1], 16)}, ${parseInt(r[2], 16)}, ${parseInt(r[3], 16)}, ${t})` : null;
504
- }, xe = (e, t = 2.5) => {
507
+ }, be = (e, t = 2.5) => {
505
508
  if (!e) return "#121211";
506
509
  let n, r, i;
507
510
  if (e.startsWith("#")) {
@@ -521,7 +524,7 @@ var ve = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, ye = /^#?([a-f\d]{2})([a-f\d]{2})([
521
524
  return t <= .04045 ? t / 12.92 : ((t + .055) / 1.055) ** 2.4;
522
525
  };
523
526
  return 1.05 / (.2126 * a(n) + .7152 * a(r) + .0722 * a(i) + .05) >= t ? "#ffffff" : "#121211";
524
- }, q = (e) => !e || !e.isValid() ? !1 : e.valueOf() !== e.startOf("day").valueOf(), Se = (e, t) => {
527
+ }, q = (e) => !e || !e.isValid() ? !1 : e.valueOf() !== e.startOf("day").valueOf(), xe = (e, t) => {
525
528
  let n = e?.isValid() ? e : null, r = t?.isValid() ? t : null, i = n ? n.startOf("day") : null, a = r ? r.startOf("day").add(1, "day") : null;
526
529
  return {
527
530
  rawStart: n,
@@ -530,21 +533,21 @@ var ve = /^#?([a-f\d])([a-f\d])([a-f\d])$/i, ye = /^#?([a-f\d]{2})([a-f\d]{2})([
530
533
  baseEnd: a,
531
534
  invalid: n !== null && r !== null && n.valueOf() > r.valueOf() || i === null || a === null || a.valueOf() <= i.valueOf()
532
535
  };
533
- }, Ce = (e, t) => L(t) && (q(e.rawStart) || q(e.rawEnd)) ? {
536
+ }, Se = (e, t) => L(t) && (q(e.rawStart) || q(e.rawEnd)) ? {
534
537
  start: e.rawStart,
535
538
  end: e.rawEnd
536
539
  } : {
537
540
  start: e.baseStart,
538
541
  end: e.baseEnd
539
- }, we = (e) => e === void 0 ? 1 : Number.isFinite(e) ? e < 0 || e > 1 ? 1 : e : 0;
540
- function Te(e, t, n) {
541
- let { startDate: r, pxPerDay: i, zoomLevel: a } = t, o = L(a) ? re(a, i) : i, s = L(a) ? r : r.startOf("day");
542
+ }, Ce = (e) => e === void 0 ? 1 : Number.isFinite(e) ? e < 0 || e > 1 ? 1 : e : 0;
543
+ function we(e, t, n) {
544
+ let { startDate: r, pxPerDay: i, zoomLevel: a } = t, o = L(a) ? ne(a, i) : i, s = L(a) ? r : r.startOf("day");
542
545
  return e.map((e, t) => {
543
- let r = ae(e.startTime, n), c = ae(e.endTime, n), l = r.isValid(), u = c.isValid(), d = l ? r : null, f = u ? c : null, p = e.color || "#5170E8", m = be(p, .2) || `${p}33`, h = we(e.progress), g = 0, _ = 0, v = !1;
546
+ let r = ie(e.startTime, n), c = ie(e.endTime, n), l = r.isValid(), u = c.isValid(), d = l ? r : null, f = u ? c : null, p = e.color || "#5170E8", m = ye(p, .2) || `${p}33`, h = Ce(e.progress), g = 0, _ = 0, v = !1;
544
547
  if (d && f) {
545
- let e = Se(d, f);
548
+ let e = xe(d, f);
546
549
  if (!e.invalid) {
547
- let { start: t, end: n } = Ce(e, a);
550
+ let { start: t, end: n } = Se(e, a);
548
551
  if (t && n) {
549
552
  v = !0, g = z(t, s, i);
550
553
  let e = z(n, s, i);
@@ -572,30 +575,30 @@ function Te(e, t, n) {
572
575
  //#region src/components/Gantt/utils/cx.ts
573
576
  var J = (...e) => e.filter(Boolean).join(" ");
574
577
  //#endregion
575
- //#region src/components/Gantt/calcTodayLeft.ts
578
+ //#region src/components/Gantt/utils/calcTodayLeft.ts
576
579
  function Y(e, t, n, r, i = "day") {
577
580
  let a = r * n;
578
581
  if (L(i)) {
579
- let r = R(i), o = e.startOf("day"), s = e.diff(o, "millisecond"), c = Math.floor(s / r), l = o.add(c * r, "millisecond"), u = r / j / 2 * n, d = z(l, t, n) + u;
582
+ let r = R(i), o = e.startOf("day"), s = e.diff(o, "millisecond"), c = Math.floor(s / r), l = o.add(c * r, "millisecond"), u = r / A / 2 * n, d = z(l, t, n) + u;
580
583
  return d < 0 || d >= a ? null : d;
581
584
  }
582
585
  let o = z(e.startOf("day"), t.startOf("day"), n);
583
586
  return o < 0 || o >= a ? null : o + n / 2;
584
587
  }
585
588
  //#endregion
586
- //#region src/components/Gantt/msUntilNextDay.ts
587
- function Ee(e) {
589
+ //#region src/components/Gantt/utils/msUntilNextDay.ts
590
+ function Te(e) {
588
591
  let t = B(e);
589
592
  return t.add(1, "day").startOf("day").add(1, "millisecond").valueOf() - t.valueOf();
590
593
  }
591
- function De(e, t) {
592
- if (t <= 0) return Ee(e);
594
+ function Ee(e, t) {
595
+ if (t <= 0) return Te(e);
593
596
  let n = B(e), r = n.startOf("day"), i = n.valueOf() - r.valueOf(), a = Math.floor(i / t), o = r.valueOf() + (a + 1) * t + 1;
594
597
  return Math.max(1, o - n.valueOf());
595
598
  }
596
599
  //#endregion
597
600
  //#region src/components/Gantt/hooks/useTodayTracker.ts
598
- function Oe(e, t = "day") {
601
+ function X(e, t = "day") {
599
602
  let [n, r] = p(() => B(e)), i = f(e);
600
603
  i.current = e;
601
604
  let a = f(t);
@@ -603,7 +606,7 @@ function Oe(e, t = "day") {
603
606
  let o = s(() => B(i.current), []);
604
607
  return l(() => {
605
608
  let e, t = () => {
606
- let n = a.current, s = i.current, c = L(n) ? De(s, R(n)) : Ee(s);
609
+ let n = a.current, s = i.current, c = L(n) ? Ee(s, R(n)) : Te(s);
607
610
  e = setTimeout(() => {
608
611
  r(o()), t();
609
612
  }, c);
@@ -623,21 +626,21 @@ function Oe(e, t = "day") {
623
626
  }
624
627
  //#endregion
625
628
  //#region src/components/Gantt/StickyLabel.tsx
626
- var ke = ({ cell: e }) => /* @__PURE__ */ g("div", {
629
+ var De = ({ cell: e }) => /* @__PURE__ */ g("div", {
627
630
  className: x["bsy-mobile-gantt__sticky-label"],
628
631
  style: { width: e.widthPx },
629
632
  children: /* @__PURE__ */ g("div", {
630
633
  className: x["bsy-mobile-gantt__sticky-label-text"],
631
634
  children: e.label
632
635
  })
633
- }), Ae = 34, je = 8, Me = 5, Ne = () => {
634
- let { t: e } = r(), { zoomLevel: t, pxPerDay: n, timeZone: i, startDate: a, count: o, totalWidth: s, totalDays: c } = w(), { horizontalScrollRef: l } = T(), u = Oe(i, t), f = d(() => U(a, o, t, u, e), [
636
+ }), Oe = 34, ke = 8, Ae = 5, je = () => {
637
+ let { t: e } = r(), { zoomLevel: t, pxPerDay: n, timeZone: i, startDate: a, count: o, totalWidth: s, totalDays: c } = w(), { horizontalScrollRef: l } = T(), u = X(i, t), f = d(() => U(a, o, t, u, e), [
635
638
  a,
636
639
  o,
637
640
  t,
638
641
  u,
639
642
  e
640
- ]), p = d(() => fe(f, t, n, e), [
643
+ ]), p = d(() => de(f, t, n, e), [
641
644
  f,
642
645
  t,
643
646
  n,
@@ -653,7 +656,7 @@ var ke = ({ cell: e }) => /* @__PURE__ */ g("div", {
653
656
  getScrollElement: () => l.current,
654
657
  estimateSize: (e) => h[e],
655
658
  horizontal: !0,
656
- overscan: Me
659
+ overscan: Ae
657
660
  });
658
661
  return /* @__PURE__ */ _("div", {
659
662
  className: x["bsy-mobile-gantt__header"],
@@ -661,11 +664,11 @@ var ke = ({ cell: e }) => /* @__PURE__ */ g("div", {
661
664
  children: [
662
665
  /* @__PURE__ */ g("div", {
663
666
  className: x["bsy-mobile-gantt__header-row1"],
664
- children: p.map((e) => /* @__PURE__ */ g(ke, { cell: e }, `${e.label}-${e.startIndex}`))
667
+ children: p.map((e) => /* @__PURE__ */ g(De, { cell: e }, `${e.label}-${e.startIndex}`))
665
668
  }),
666
669
  /* @__PURE__ */ g("div", {
667
670
  className: x["bsy-mobile-gantt__header-row2"],
668
- style: { height: Ae },
671
+ style: { height: Oe },
669
672
  children: v.getVirtualItems().map((e) => {
670
673
  let t = f[e.index], n = Math.round(e.start), r = Math.max(1, Math.round(e.size));
671
674
  return /* @__PURE__ */ g("div", {
@@ -677,7 +680,7 @@ var ke = ({ cell: e }) => /* @__PURE__ */ g("div", {
677
680
  },
678
681
  children: /* @__PURE__ */ g("div", {
679
682
  className: J(x["bsy-mobile-gantt__header-cell-label"], t.isToday && x["bsy-mobile-gantt__header-cell-label--today"]),
680
- style: { lineHeight: `${Ae}px` },
683
+ style: { lineHeight: `${Oe}px` },
681
684
  children: t.label
682
685
  })
683
686
  }, e.index);
@@ -685,11 +688,11 @@ var ke = ({ cell: e }) => /* @__PURE__ */ g("div", {
685
688
  }),
686
689
  m === null ? null : /* @__PURE__ */ g("div", {
687
690
  className: x["bsy-mobile-gantt__today-dot"],
688
- style: { left: m - je / 2 }
691
+ style: { left: m - ke / 2 }
689
692
  })
690
693
  ]
691
694
  });
692
- }, Pe = 2, Fe = ({ today: e, startDate: t, pxPerDay: n, totalDays: r, zoomLevel: i }) => {
695
+ }, Me = 2, Ne = ({ today: e, startDate: t, pxPerDay: n, totalDays: r, zoomLevel: i }) => {
693
696
  let a = d(() => Y(e, t, n, r, i), [
694
697
  e,
695
698
  t,
@@ -700,97 +703,87 @@ var ke = ({ cell: e }) => /* @__PURE__ */ g("div", {
700
703
  return a === null ? null : /* @__PURE__ */ g("div", {
701
704
  className: x["bsy-mobile-gantt__today-line"],
702
705
  style: {
703
- left: a - Pe / 2,
704
- width: Pe
706
+ left: a - Me / 2,
707
+ width: Me
705
708
  }
706
709
  });
707
- }, Ie = 26, Le = 6, X = 4;
708
- function Re(e, t, n, r) {
709
- let i = t - X * 2;
710
- if (r > i) return {
711
- mode: "outside",
712
- left: t + Le,
713
- maxWidth: null
714
- };
710
+ }, Pe = 26, Fe = 6, Z = 4;
711
+ function Ie(e, t, n, r) {
712
+ if (r > t - Z * 2) return "outside";
715
713
  if (e < n) {
716
714
  let i = e + t - n;
717
- return r + X > i ? {
718
- mode: "outside",
719
- left: t + Le,
720
- maxWidth: null
721
- } : {
722
- mode: "sticky",
723
- left: X,
724
- maxWidth: i - X * 2
725
- };
715
+ return r + Z > i ? "outside" : "overlay-sticky";
726
716
  }
727
- return {
728
- mode: "inside",
729
- left: X,
730
- maxWidth: i
731
- };
717
+ return "inside";
732
718
  }
733
- var ze = o(({ bar: e, top: t, horizontalScrollRef: n, onClick: r }) => {
734
- let i = e.progress > 0 ? Math.max(4, e.width * e.progress) : 0, a = xe(e.bgColor), o = f(null), [s, c] = p(0);
719
+ var Le = o(({ bar: e, top: t, horizontalScrollRef: n, verticalScrollRef: r, overlayHost: i, onClick: a }) => {
720
+ let o = e.progress > 0 ? Math.max(4, e.width * e.progress) : 0, s = be(e.bgColor), c = f(null), [l, d] = p(0);
735
721
  return u(() => {
736
- if (!o.current || !e.label) {
737
- c(0);
722
+ if (!c.current || !e.label) {
723
+ d(0);
738
724
  return;
739
725
  }
740
- c(o.current.scrollWidth);
726
+ d(c.current.scrollWidth);
741
727
  }, [e.label]), u(() => {
742
- let t = o.current, r = n.current;
743
- if (!t || !r || !e.label) return;
744
- let i = () => {
745
- let { scrollLeft: n } = r, i = Re(e.left, e.width, n, s), o = i.mode === "sticky", c = i.mode === "outside";
746
- o ? t.style.transform = `translate3d(${n - e.left}px, -50%, 0)` : t.style.transform = "translate3d(0, -50%, 0)", t.style.left = `${i.left}px`, t.style.maxWidth = i.maxWidth === null ? "none" : `${Math.max(0, i.maxWidth)}px`, t.style.overflow = c ? "visible" : "hidden", t.style.textOverflow = c ? "clip" : "ellipsis", t.style.color = c ? "#000" : a;
728
+ let a = c.current, o = n.current;
729
+ if (!a || !o || !e.label) return;
730
+ let u = document.createElement("span");
731
+ u.className = x["bsy-mobile-gantt__bar-label-overlay"], u.textContent = e.label, u.style.display = "none", u.style.color = s, i?.appendChild(u);
732
+ let d = () => {
733
+ let { scrollLeft: n } = o, i = Ie(e.left, e.width, n, l), c = i === "outside", d = i === "overlay-sticky", f = e.left + e.width - n;
734
+ d ? (a.style.visibility = "hidden", u.style.display = "block", u.style.top = `${t - (r.current?.scrollTop ?? 0)}px`, u.style.maxWidth = `${Math.max(0, f - Z * 2)}px`) : (a.style.visibility = "visible", u.style.display = "none", a.style.left = c ? `${e.width + Fe}px` : `${Z}px`, a.style.maxWidth = c ? "none" : `${e.width - Z * 2}px`, a.style.overflow = c ? "visible" : "hidden", a.style.textOverflow = c ? "clip" : "ellipsis", a.style.color = c ? "#000" : s);
747
735
  };
748
- return i(), r.addEventListener("scroll", i, { passive: !0 }), () => {
749
- r.removeEventListener("scroll", i);
736
+ d(), o.addEventListener("scroll", d, { passive: !0 });
737
+ let f = r.current;
738
+ return f?.addEventListener("scroll", d, { passive: !0 }), () => {
739
+ o.removeEventListener("scroll", d), f?.removeEventListener("scroll", d), u.remove();
750
740
  };
751
741
  }, [
752
742
  e.label,
753
743
  e.left,
754
744
  e.width,
755
745
  n,
756
- a,
757
- s
746
+ s,
747
+ l,
748
+ i,
749
+ t,
750
+ r
758
751
  ]), /* @__PURE__ */ _("div", {
759
752
  className: x["bsy-mobile-gantt__bar"],
760
753
  style: {
761
754
  top: t,
762
755
  left: e.left,
763
756
  width: e.width,
764
- height: Ie
757
+ height: Pe
765
758
  },
766
- onClick: () => r?.(e.task),
759
+ onClick: () => a?.(e.task),
767
760
  children: [
768
761
  /* @__PURE__ */ g("div", {
769
762
  className: x["bsy-mobile-gantt__bar-track"],
770
763
  style: { backgroundColor: e.bgColor }
771
764
  }),
772
- i > 0 ? /* @__PURE__ */ g("div", {
765
+ o > 0 ? /* @__PURE__ */ g("div", {
773
766
  className: x["bsy-mobile-gantt__bar-progress"],
774
767
  style: {
775
- width: i,
768
+ width: o,
776
769
  backgroundColor: e.color,
777
770
  borderRadius: e.progress === 1 ? 4 : "4px 0 0 4px"
778
771
  }
779
772
  }) : null,
780
773
  e.label ? /* @__PURE__ */ g("span", {
781
- ref: o,
774
+ ref: c,
782
775
  className: x["bsy-mobile-gantt__bar-label"],
783
776
  style: {
784
- left: X,
785
- maxWidth: e.width - X * 2,
786
- lineHeight: `${Ie}px`,
787
- color: a
777
+ left: Z,
778
+ maxWidth: e.width - Z * 2,
779
+ lineHeight: `${Pe}px`,
780
+ color: s
788
781
  },
789
782
  children: e.label
790
783
  }) : null
791
784
  ]
792
785
  });
793
- }), Z = o(({ direction: e, edge: t, offset: n, onClick: i }) => {
786
+ }), Re = o(({ direction: e, edge: t, offset: n, onClick: i }) => {
794
787
  let { t: a } = r();
795
788
  return /* @__PURE__ */ g("button", {
796
789
  type: "button",
@@ -816,7 +809,7 @@ var ze = o(({ bar: e, top: t, horizontalScrollRef: n, onClick: r }) => {
816
809
  })
817
810
  })
818
811
  });
819
- }), Be = 24, Ve = 4, He = o(({ virtualRows: e, bars: t, horizontalScrollRef: n, viewportWidth: r, rowHeight: i, onNavigate: a }) => {
812
+ }), ze = 24, Be = 4, Ve = o(({ virtualRows: e, bars: t, horizontalScrollRef: n, viewportWidth: r, rowHeight: i, onNavigate: a }) => {
820
813
  let [o, s] = p(() => n.current?.scrollLeft ?? 0), c = f(0);
821
814
  l(() => {
822
815
  let e = n.current;
@@ -842,42 +835,42 @@ var ze = o(({ bar: e, top: t, horizontalScrollRef: n, onClick: r }) => {
842
835
  return !r && !s ? null : /* @__PURE__ */ _("div", {
843
836
  className: x["bsy-mobile-gantt__offscreen-row"],
844
837
  style: {
845
- top: e.start + (i - Be) / 2,
846
- height: Be
838
+ top: e.start + (i - ze) / 2,
839
+ height: ze
847
840
  },
848
- children: [r ? /* @__PURE__ */ g(Z, {
841
+ children: [r ? /* @__PURE__ */ g(Re, {
849
842
  direction: "left",
850
843
  edge: "left",
851
- offset: Ve,
844
+ offset: Be,
852
845
  onClick: () => a(n.startDate)
853
- }) : null, s ? /* @__PURE__ */ g(Z, {
846
+ }) : null, s ? /* @__PURE__ */ g(Re, {
854
847
  direction: "right",
855
848
  edge: "right",
856
- offset: Ve,
849
+ offset: Be,
857
850
  onClick: () => a(n.startDate)
858
851
  }) : null]
859
852
  }, `overlay-${n.id}`);
860
853
  })
861
854
  })
862
855
  });
863
- }), Ue = 5, We = 5, Q = 28, Ge = 4, Ke = ({ bars: e, onTaskClick: t, overlayHostRef: n }) => {
864
- let { zoomLevel: r, pxPerDay: i, timeZone: a, startDate: o, count: s, totalWidth: c, totalDays: u, viewportWidth: v } = w(), { horizontalScrollRef: y, navigateToBar: S } = T(), C = Oe(a, r), E = d(() => U(o, s, r, C), [
856
+ }), He = 5, Ue = 5, Q = 28, We = 4, Ge = ({ bars: e, onTaskClick: t, overlayHostRef: n }) => {
857
+ let { zoomLevel: r, pxPerDay: i, timeZone: a, startDate: o, count: s, totalWidth: c, totalDays: u, viewportWidth: v } = w(), { horizontalScrollRef: y, navigateToBar: S } = T(), C = X(a, r), E = d(() => U(o, s, r, C), [
865
858
  o,
866
859
  s,
867
860
  r,
868
861
  C
869
- ]), D = e.length, O = Math.max(D * Q + Ge, 0), k = f(null), A = d(() => E.map((e) => e.days * i), [E, i]), j = b({
862
+ ]), D = e.length, O = Math.max(D * Q + We, 0), k = f(null), A = d(() => E.map((e) => e.days * i), [E, i]), j = b({
870
863
  count: E.length,
871
864
  getScrollElement: () => y.current,
872
865
  estimateSize: (e) => A[e],
873
866
  horizontal: !0,
874
- overscan: Ue
867
+ overscan: He
875
868
  }), M = b({
876
869
  count: D,
877
870
  getScrollElement: () => k.current,
878
871
  estimateSize: () => Q,
879
- paddingStart: Ge,
880
- overscan: We
872
+ paddingStart: We,
873
+ overscan: Ue
881
874
  }).getVirtualItems(), [N, P] = p(null);
882
875
  return l(() => {
883
876
  P(n?.current ?? null);
@@ -910,7 +903,7 @@ var ze = o(({ bar: e, top: t, horizontalScrollRef: n, onClick: r }) => {
910
903
  transform: `translateX(${e.start}px)`
911
904
  }
912
905
  }, e.index)),
913
- /* @__PURE__ */ g(Fe, {
906
+ /* @__PURE__ */ g(Ne, {
914
907
  today: C,
915
908
  startDate: o,
916
909
  pxPerDay: i,
@@ -919,16 +912,18 @@ var ze = o(({ bar: e, top: t, horizontalScrollRef: n, onClick: r }) => {
919
912
  }),
920
913
  M.map((n) => {
921
914
  let r = e[n.index];
922
- return !r || !r.hasTimeRange ? null : /* @__PURE__ */ g(ze, {
915
+ return !r || !r.hasTimeRange ? null : /* @__PURE__ */ g(Le, {
923
916
  bar: r,
924
917
  top: n.start,
925
918
  horizontalScrollRef: y,
919
+ verticalScrollRef: k,
920
+ overlayHost: N,
926
921
  onClick: t
927
922
  }, r.id);
928
923
  })
929
924
  ]
930
925
  })
931
- }), N ? m(/* @__PURE__ */ g(He, {
926
+ }), N ? m(/* @__PURE__ */ g(Ve, {
932
927
  virtualRows: M,
933
928
  bars: e,
934
929
  horizontalScrollRef: y,
@@ -948,7 +943,7 @@ var ze = o(({ bar: e, top: t, horizontalScrollRef: n, onClick: r }) => {
948
943
  stroke: "currentColor",
949
944
  strokeWidth: "1.5"
950
945
  })
951
- }), qe = () => {
946
+ }), Ke = () => {
952
947
  let { t } = r(), { zoomLevel: n, viewportWidth: i, totalWidth: a } = w(), { setZoomLevel: o, getScrollLeft: c, scrollToX: l, handleTodayClick: u } = T(), [d, f] = p(!1), m = s(() => {
953
948
  l(Math.max(0, c() - i), "smooth");
954
949
  }, [
@@ -999,7 +994,7 @@ var ze = o(({ bar: e, top: t, horizontalScrollRef: n, onClick: r }) => {
999
994
  open: d,
1000
995
  onClose: () => f(!1),
1001
996
  title: t("gantt.zoomSheetTitle"),
1002
- actions: A.map((e) => ({
997
+ actions: k.map((e) => ({
1003
998
  key: e,
1004
999
  text: t(`gantt.zoom.${e}`),
1005
1000
  selected: n === e
@@ -1008,16 +1003,16 @@ var ze = o(({ bar: e, top: t, horizontalScrollRef: n, onClick: r }) => {
1008
1003
  o(e.key), f(!1);
1009
1004
  }
1010
1005
  })] });
1011
- }, Je = 88, Ye = (e) => {
1006
+ }, qe = 88, Je = (e) => {
1012
1007
  let { tasks: t = [], timeZone: n, className: r, onTaskClick: i } = e, [a, o] = v(e, {
1013
1008
  defaultValue: "day",
1014
1009
  defaultValuePropName: "defaultZoomLevel",
1015
1010
  valuePropName: "zoomLevel",
1016
1011
  trigger: "onZoomChange"
1017
- }), s = f(null), c = me({
1012
+ }), s = f(null), c = pe({
1018
1013
  timeZone: n,
1019
1014
  initialZoomLevel: a
1020
- }), l = _e(c, { onZoomLevelChange: o }), u = d(() => Te(t, {
1015
+ }), l = ge(c, { onZoomLevelChange: o }), u = d(() => we(t, {
1021
1016
  startDate: c.startDate,
1022
1017
  pxPerDay: c.pxPerDay,
1023
1018
  zoomLevel: c.zoomLevel
@@ -1077,7 +1072,7 @@ var ze = o(({ bar: e, top: t, horizontalScrollRef: n, onClick: r }) => {
1077
1072
  children: /* @__PURE__ */ _("div", {
1078
1073
  className: x["bsy-mobile-gantt__canvas"],
1079
1074
  style: { width: c.totalWidth },
1080
- children: [/* @__PURE__ */ g(Ne, {}), /* @__PURE__ */ g(Ke, {
1075
+ children: [/* @__PURE__ */ g(je, {}), /* @__PURE__ */ g(Ge, {
1081
1076
  bars: u,
1082
1077
  onTaskClick: i,
1083
1078
  overlayHostRef: s
@@ -1087,13 +1082,13 @@ var ze = o(({ bar: e, top: t, horizontalScrollRef: n, onClick: r }) => {
1087
1082
  /* @__PURE__ */ g("div", {
1088
1083
  ref: s,
1089
1084
  className: x["bsy-mobile-gantt__overlay-host"],
1090
- style: { top: Je }
1085
+ style: { top: qe }
1091
1086
  }),
1092
- /* @__PURE__ */ g(qe, {})
1087
+ /* @__PURE__ */ g(Ke, {})
1093
1088
  ]
1094
1089
  })
1095
1090
  })
1096
1091
  });
1097
1092
  };
1098
1093
  //#endregion
1099
- export { A as a, D as i, O as n, k as o, E as r, Ye as t };
1094
+ export { O as n, Je as t };