@svar-ui/trial-vue-gantt 2.7.3 → 2.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { inject as Re, computed as c, openBlock as o, createElementBlock as d, Fragment as le, createTextVNode as rt, toDisplayString as xe, createVNode as ce, unref as h, createCommentVNode as re, normalizeStyle as fe, normalizeClass as $e, createElementVNode as K, createBlock as _e, resolveDynamicComponent as ft, useModel as Wt, ref as G, watchEffect as Fe, onMounted as Xe, onUnmounted as Ze, watch as it, withDirectives as bt, mergeModels as Yt, renderList as Oe, withModifiers as un, withCtx as Ue, onWatcherCleanup as cn, useAttrs as dn, provide as ut, renderSlot as pt, mergeProps as fn } from "vue";
1
+ import { inject as Re, computed as c, openBlock as o, createElementBlock as d, Fragment as le, createTextVNode as rt, toDisplayString as xe, createVNode as ce, unref as h, createCommentVNode as ue, normalizeStyle as fe, normalizeClass as $e, createElementVNode as K, createBlock as _e, resolveDynamicComponent as ft, useModel as Wt, ref as G, watchEffect as Fe, onMounted as Xe, onUnmounted as Ze, watch as it, withDirectives as bt, mergeModels as Yt, renderList as Oe, withModifiers as un, withCtx as Ue, onWatcherCleanup as cn, useAttrs as dn, provide as ut, renderSlot as pt, mergeProps as fn } from "vue";
2
2
  import { subscribe as w, asDirective as $t, writable as vn, subscribeLater as ae } from "@svar-ui/lib-vue";
3
3
  import { locate as Ne, getID as Ge, locateID as je, clickOutside as pn, setID as Je, dateToString as gt, locale as mt } from "@svar-ui/lib-dom";
4
4
  import { en as ht } from "@svar-ui/gantt-locales";
@@ -13,7 +13,7 @@ import { Toolbar as Gn, registerToolbarItem as jn } from "@svar-ui/vue-toolbar";
13
13
  import { ContextMenu as Fn } from "@svar-ui/vue-menu";
14
14
  import { registerEditorItem as Ke, Editor as Vn } from "@svar-ui/vue-editor";
15
15
  import { registerEditorItem as Pl } from "@svar-ui/vue-editor";
16
- const Nn = "2.7.3", Un = {
16
+ const Nn = "2.7.4", Un = {
17
17
  version: Nn
18
18
  };
19
19
  function Yn(n, e, t) {
@@ -128,7 +128,7 @@ const ve = (n, e) => {
128
128
  value: _.value,
129
129
  size: 28
130
130
  }, null, 8, ["value"]),
131
- _.value.length === 1 ? (o(), d("span", Xn, xe(_.value[0].name), 1)) : re("", !0)
131
+ _.value.length === 1 ? (o(), d("span", Xn, xe(_.value[0].name), 1)) : ue("", !0)
132
132
  ], 64)) : (o(), d(le, { key: 2 }, [
133
133
  rt(xe(n.row.text), 1)
134
134
  ], 64))
@@ -193,7 +193,7 @@ const ve = (n, e) => {
193
193
  class: $e(["wx-action-icon", s.value, { "wx-disabled": a.value }]),
194
194
  "data-action": !a.value && t.value
195
195
  }, null, 10, ss)
196
- ], 4)) : re("", !0);
196
+ ], 4)) : ue("", !0);
197
197
  }
198
198
  }, vt = /* @__PURE__ */ ve(as, [["__scopeId", "data-v-3ce827d8"]]), ls = { class: "wx-avatar" }, os = {
199
199
  __name: "ResourcesCell",
@@ -227,7 +227,7 @@ const ve = (n, e) => {
227
227
  key: 0,
228
228
  value: n.data,
229
229
  size: 28
230
- }, null, 8, ["value"])) : re("", !0)
230
+ }, null, 8, ["value"])) : ue("", !0)
231
231
  ])) : (o(), d("div", us, [
232
232
  K("div", null, [
233
233
  ce(h(st), {
@@ -367,7 +367,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
367
367
  gridWidth: V,
368
368
  displayMode: M,
369
369
  _compactMode: Y
370
- } = u.getReactiveState(), z = w(p), S = w(C), Z = w(f), k = w($), R = w(D, !0), L = w(W), N = w(b), Q = w(B), x = w(X), I = w(ee), te = w(E), ue = w(A), me = w(U), Ie = w(V), y = w(M), ne = w(Y);
370
+ } = u.getReactiveState(), z = w(p), S = w(C), Z = w(f), k = w($), R = w(D, !0), L = w(W), N = w(b), Q = w(B), x = w(X), I = w(ee), te = w(E), ie = w(A), me = w(U), Ie = w(V), y = w(M), ne = w(Y);
371
371
  let oe = G(null);
372
372
  const We = G(0);
373
373
  function Te(T, H) {
@@ -422,7 +422,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
422
422
  function se({ id: T }) {
423
423
  if (t.readonly || (u.getTask(T).open && u.exec("open-task", { id: T, mode: !1 }), oe.value = O.value.find((H) => H.id === T), !oe.value)) return !1;
424
424
  }
425
- function ie({ id: T, top: H }) {
425
+ function re({ id: T, top: H }) {
426
426
  ze ? Be({ ...ze, onMove: !1 }) : u.exec("drag-task", {
427
427
  id: T,
428
428
  top: H + Se.value,
@@ -548,7 +548,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
548
548
  () => vs(j.value, S.value)
549
549
  ), et = c(
550
550
  () => Pe.value + ps(y.value, We.value, Ve.value)
551
- ), J = c(() => Z.value.map((T) => T.id)), O = c(() => R.value.slice(k.value.start, k.value.end)), de = c(() => (oe.value && !O.value.find((H) => H.id === oe.value.id) ? [...O.value, oe.value] : O.value).map((H) => ({ ...H }))), we = c(() => nn(de.value, x.value)), Ae = c(() => we.value ? { ...ue.value } : ue.value), tt = c(
551
+ ), J = c(() => Z.value.map((T) => T.id)), O = c(() => R.value.slice(k.value.start, k.value.end)), de = c(() => (oe.value && !O.value.find((H) => H.id === oe.value.id) ? [...O.value, oe.value] : O.value).map((H) => ({ ...H }))), we = c(() => nn(de.value, x.value)), Ae = c(() => we.value ? { ...ie.value } : ie.value), tt = c(
552
552
  () => en(Ce.value, y.value)
553
553
  ), ct = c(() => Se.value - z.value);
554
554
  let at;
@@ -576,7 +576,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
576
576
  const qe = c(() => ({
577
577
  isDisabled: () => !!me.value?.field,
578
578
  start: se,
579
- end: ie,
579
+ end: re,
580
580
  move: i,
581
581
  getTask: u.getTask
582
582
  })), St = c(() => [...J.value]), Ct = c(() => ({
@@ -683,7 +683,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
683
683
  }, null, 8, Rs)
684
684
  ], 8, Ss)), [
685
685
  [h(e), C]
686
- ]) : re("", !0)
686
+ ]) : ue("", !0)
687
687
  ]));
688
688
  }
689
689
  }), Ws = /* @__PURE__ */ ve(Is, [["__scopeId", "data-v-21ec1498"]]), Ms = ["data-rollup-id"], Ls = /* @__PURE__ */ Object.assign({ name: "GanttChartRollups" }, {
@@ -736,7 +736,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
736
736
  class: "wx-progress-percent",
737
737
  style: fe(`width:${s(p)}%`)
738
738
  }, null, 4)
739
- ])) : re("", !0),
739
+ ])) : ue("", !0),
740
740
  K("div", As, xe(u.text || ""), 1)
741
741
  ], 14, Bs))), 128))
742
742
  ]));
@@ -776,7 +776,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
776
776
  slack: E
777
777
  } = t.getReactiveState(), A = w(s, !0), U = w(a), V = w(m), M = w(u), Y = w(p), z = w(C), S = w(_), Z = w(f), k = w($), R = w(W), L = w(b), N = w(B), Q = w(X), x = w(ee), I = w(E), te = c(
778
778
  () => A.value.slice(V.value.start, V.value.end).map((l) => ({ ...l }))
779
- ), ue = c(
779
+ ), ie = c(
780
780
  () => te.value.some((l) => l.$id && l.$id !== l.id)
781
781
  ), me = c(() => M.value.lengthUnitWidth);
782
782
  let Ie = !1;
@@ -813,7 +813,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
813
813
  marker: g.target
814
814
  }, g.target.classList.add("wx-progress-in-drag");
815
815
  } else {
816
- const ke = ie(l, g, ge) || "move";
816
+ const ke = re(l, g, ge) || "move";
817
817
  if (ne.value = {
818
818
  id: P,
819
819
  mode: ke,
@@ -829,7 +829,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
829
829
  Ce();
830
830
  }
831
831
  }
832
- function ie(l, g, r) {
832
+ function re(l, g, r) {
833
833
  if (g.target.classList.contains("wx-line") || (r || (r = t.getTask(Ge(l))), r.type === "milestone" || r.type === "summary")) return "";
834
834
  const P = Ne(g, "data-segment");
835
835
  P && (l = P);
@@ -876,7 +876,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
876
876
  } else {
877
877
  const P = Ne(l);
878
878
  if (P) {
879
- const ge = t.getTask(Ge(P)), ke = Ne(l, "data-segment") || P, Le = ie(ke, g, ge);
879
+ const ge = t.getTask(Ge(P)), ke = Ne(l, "data-segment") || P, Le = re(ke, g, ge);
880
880
  ke.style.cursor = Le && !e.readonly ? "col-resize" : "pointer";
881
881
  }
882
882
  }
@@ -1064,8 +1064,8 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
1064
1064
  key: 0,
1065
1065
  class: $e("wx-slack wx-slack-" + r.type),
1066
1066
  style: fe(et(r))
1067
- }, null, 6)) : re("", !0)
1068
- ], 64))), 128)) : re("", !0),
1067
+ }, null, 6)) : ue("", !0)
1068
+ ], 64))), 128)) : ue("", !0),
1069
1069
  ce(Ws, {
1070
1070
  onSelectLink: tt,
1071
1071
  selectedLink: Te.value,
@@ -1074,7 +1074,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
1074
1074
  (o(!0), d(le, null, Oe(te.value, (r) => (o(), d(le, {
1075
1075
  key: r.id
1076
1076
  }, [
1077
- r.$skip ? re("", !0) : (o(), d("div", {
1077
+ r.$skip ? ue("", !0) : (o(), d("div", {
1078
1078
  key: 0,
1079
1079
  class: $e([
1080
1080
  "wx-bar",
@@ -1092,7 +1092,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
1092
1092
  "data-task-id": h(Je)(r.id),
1093
1093
  tabindex: Ct.value === r.id ? "0" : "-1"
1094
1094
  }, [
1095
- !e.readonly && !ue.value ? (o(), d(le, { key: 0 }, [
1095
+ !e.readonly && !ie.value ? (o(), d(le, { key: 0 }, [
1096
1096
  r.id === Te.value?.target && Te.value?.type[2] === "s" ? (o(), _e(h(Mt), {
1097
1097
  key: 0,
1098
1098
  type: "danger",
@@ -1117,21 +1117,21 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
1117
1117
  }, [...g[2] || (g[2] = [
1118
1118
  K("div", { class: "wx-inner" }, null, -1)
1119
1119
  ])], 2))
1120
- ], 64)) : re("", !0),
1120
+ ], 64)) : ue("", !0),
1121
1121
  r.type !== "milestone" ? (o(), d(le, { key: 1 }, [
1122
1122
  r.progress && !(h(Q) && r.segments) ? (o(), d("div", Gs, [
1123
1123
  K("div", {
1124
1124
  class: "wx-progress-percent",
1125
1125
  style: fe("width:" + r.progress + "%")
1126
1126
  }, null, 4)
1127
- ])) : re("", !0),
1127
+ ])) : ue("", !0),
1128
1128
  !e.readonly && !(h(Q) && r.segments) && !(r.type === "summary" && h(x)?.autoProgress) ? (o(), d("div", {
1129
1129
  key: 1,
1130
1130
  class: "wx-progress-marker",
1131
1131
  style: fe(
1132
1132
  "left:calc(" + r.progress + "% - 10px);"
1133
1133
  )
1134
- }, xe(r.progress), 5)) : re("", !0),
1134
+ }, xe(r.progress), 5)) : ue("", !0),
1135
1135
  e.taskTemplate ? (o(), _e(ft(e.taskTemplate), {
1136
1136
  key: 2,
1137
1137
  data: r,
@@ -1151,7 +1151,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
1151
1151
  onaction: lt
1152
1152
  }, null, 8, ["data", "api"])) : (o(), d("div", Fs, xe(r.text), 1))
1153
1153
  ], 64)),
1154
- !e.readonly && !ue.value ? (o(), d(le, { key: 3 }, [
1154
+ !e.readonly && !ie.value ? (o(), d(le, { key: 3 }, [
1155
1155
  r.id === Te.value?.target && Te.value?.type[2] === "e" ? (o(), _e(h(Mt), {
1156
1156
  key: 0,
1157
1157
  type: "danger",
@@ -1181,13 +1181,13 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
1181
1181
  }, [...g[5] || (g[5] = [
1182
1182
  K("div", { class: "wx-inner" }, null, -1)
1183
1183
  ])], 2))
1184
- ], 64)) : re("", !0)
1184
+ ], 64)) : ue("", !0)
1185
1185
  ], 14, Ps)),
1186
1186
  h(Z) && h(k)?.[r.id] ? (o(!0), d(le, { key: 1 }, Oe(h(k)[r.id], (P) => (o(), _e(Ds, {
1187
1187
  key: P.id,
1188
1188
  rollup: P,
1189
1189
  parent: r
1190
- }, null, 8, ["rollup", "parent"]))), 128)) : re("", !0),
1190
+ }, null, 8, ["rollup", "parent"]))), 128)) : ue("", !0),
1191
1191
  h(z) && !r.$skip_baseline ? (o(), d("div", {
1192
1192
  key: 2,
1193
1193
  class: $e([
@@ -1195,7 +1195,7 @@ const ys = /* @__PURE__ */ Object.assign({ name: "GanttGridGrid" }, {
1195
1195
  { "wx-milestone": r.type === "milestone" }
1196
1196
  ]),
1197
1197
  style: fe(Pe(r))
1198
- }, null, 6)) : re("", !0)
1198
+ }, null, 6)) : ue("", !0)
1199
1199
  ], 64))), 128))
1200
1200
  ], 36));
1201
1201
  }
@@ -1317,22 +1317,22 @@ const qs = { class: "wx-content" }, Ks = {
1317
1317
  highlightTime: ee
1318
1318
  } = s.getReactiveState(), E = w(a, !0), A = w(m), U = w(u), V = w(p), M = w(f), Y = w(b), z = w(X), S = w(C), Z = w(_), k = w($), R = w(D), L = w(W), N = w(B), Q = w(ee), x = G(0), I = G(null), te = c(() => {
1319
1319
  const se = [];
1320
- return E.value.length && V.value && E.value.forEach((ie) => {
1321
- se.push(`height: ${V.value}px;top: ${ie.$y - 3}px`);
1320
+ return E.value.length && V.value && E.value.forEach((re) => {
1321
+ se.push(`height: ${V.value}px;top: ${re.$y - 3}px`);
1322
1322
  }), se;
1323
1323
  });
1324
1324
  it([A, x, V], () => {
1325
1325
  Ie();
1326
1326
  });
1327
- const ue = c(() => Math.max(x.value, t.fullHeight));
1327
+ const ie = c(() => Math.max(x.value, t.fullHeight));
1328
1328
  Fe(() => {
1329
- I.value && (I.value.scrollTop = A.value, I.value.scrollLeft = U.value);
1329
+ ie.value, x.value, I.value && (I.value.scrollTop = A.value, I.value.scrollLeft = U.value);
1330
1330
  });
1331
1331
  function me() {
1332
1332
  I.value.scrollLeft !== U.value && s.exec("scroll-chart", { left: I.value.scrollLeft });
1333
1333
  }
1334
1334
  function Ie() {
1335
- const se = x.value || 0, ie = Math.ceil(se / V.value) + 1, i = Math.floor((A.value || 0) / V.value), q = Math.max(0, i - Vt), j = i + ie + Vt, v = q * V.value;
1335
+ const se = x.value || 0, re = Math.ceil(se / V.value) + 1, i = Math.floor((A.value || 0) / V.value), q = Math.max(0, i - Vt), j = i + re + Vt, v = q * V.value;
1336
1336
  s.exec("render-data", {
1337
1337
  start: q,
1338
1338
  end: j,
@@ -1345,15 +1345,15 @@ const qs = { class: "wx-content" }, Ks = {
1345
1345
  () => I.value
1346
1346
  );
1347
1347
  function ne(se) {
1348
- const ie = Q.value?.(se.date, se.unit);
1349
- return ie ? {
1350
- css: ie,
1348
+ const re = Q.value?.(se.date, se.unit);
1349
+ return re ? {
1350
+ css: re,
1351
1351
  width: se.width
1352
1352
  } : null;
1353
1353
  }
1354
1354
  const oe = c(() => Q.value ? M.value.rows[M.value.rows.length - 1].cells.slice(L.value.start, L.value.end).map(ne) : null), We = c(() => {
1355
- const ie = M.value.rows[M.value.rows.length - 1]?.cells;
1356
- return (M.value.minUnit === "hour" || M.value.minUnit === "day") && ie ? ie.slice(L.value.start, L.value.end) : [];
1355
+ const re = M.value.rows[M.value.rows.length - 1]?.cells;
1356
+ return (M.value.minUnit === "hour" || M.value.minUnit === "day") && re ? re.slice(L.value.start, L.value.end) : [];
1357
1357
  }), Te = c(() => S.value.slice(k.value.start, k.value.end));
1358
1358
  function De(se) {
1359
1359
  if (R.value?.field === "resource") {
@@ -1369,19 +1369,19 @@ const qs = { class: "wx-content" }, Ks = {
1369
1369
  return pe ? [pe] : [];
1370
1370
  });
1371
1371
  }
1372
- const ie = se.calendar ? s.getTaskCalendar(se) : void 0;
1373
- return ie ? [ie] : [];
1372
+ const re = se.calendar ? s.getTaskCalendar(se) : void 0;
1373
+ return re ? [re] : [];
1374
1374
  }
1375
1375
  const Me = c(() => {
1376
1376
  const se = [];
1377
1377
  if (!N.value) return se;
1378
- const ie = s.getCalendar();
1378
+ const re = s.getCalendar();
1379
1379
  return Te.value.forEach((i, q) => {
1380
1380
  const j = De(i);
1381
1381
  j.length && We.value.forEach((v, pe) => {
1382
1382
  const be = j.filter(
1383
1383
  (Ve) => !Ve.isWorkingDay(v.date)
1384
- ), Ce = be.length === 0, Se = ie && !ie.isWorkingDay(v.date), Ye = {
1384
+ ), Ce = be.length === 0, Se = re && !re.isWorkingDay(v.date), Ye = {
1385
1385
  width: v.width,
1386
1386
  height: V.value,
1387
1387
  left: (pe + L.value.start) * v.width,
@@ -1398,24 +1398,24 @@ const qs = { class: "wx-content" }, Ks = {
1398
1398
  let Be;
1399
1399
  return Xe(() => {
1400
1400
  I.value && (x.value = I.value.clientHeight, Be = new ResizeObserver((se) => {
1401
- for (const ie of se)
1402
- x.value = ie.target.clientHeight;
1401
+ for (const re of se)
1402
+ x.value = re.target.clientHeight;
1403
1403
  }), Be.observe(I.value));
1404
1404
  }), Ze(() => {
1405
1405
  Be?.disconnect();
1406
- }), (se, ie) => bt((o(), d("div", {
1406
+ }), (se, re) => bt((o(), d("div", {
1407
1407
  class: "wx-chart",
1408
1408
  tabindex: "-1",
1409
1409
  ref_key: "chart",
1410
1410
  ref: I,
1411
1411
  onScroll: me,
1412
- onWheel: ie[0] || (ie[0] = (...i) => h(y) && h(y)(...i))
1412
+ onWheel: re[0] || (re[0] = (...i) => h(y) && h(y)(...i))
1413
1413
  }, [
1414
1414
  ce(an, { api: h(s) }, null, 8, ["api"]),
1415
1415
  h(z).length ? (o(), d("div", {
1416
1416
  key: 0,
1417
1417
  class: "wx-markers",
1418
- style: fe(`height:${ue.value}px;`)
1418
+ style: fe(`height:${ie.value}px;`)
1419
1419
  }, [
1420
1420
  (o(!0), d(le, null, Oe(h(z), (i) => (o(), d("div", {
1421
1421
  key: i.id || i.left,
@@ -1424,10 +1424,10 @@ const qs = { class: "wx-content" }, Ks = {
1424
1424
  }, [
1425
1425
  K("div", qs, xe(i.text), 1)
1426
1426
  ], 6))), 128))
1427
- ], 4)) : re("", !0),
1427
+ ], 4)) : ue("", !0),
1428
1428
  K("div", {
1429
1429
  class: "wx-area",
1430
- style: fe(`width:${t.fullWidth}px;height:${ue.value}px`)
1430
+ style: fe(`width:${t.fullWidth}px;height:${ie.value}px`)
1431
1431
  }, [
1432
1432
  oe.value ? (o(), d("div", Ks, [
1433
1433
  (o(!0), d(le, null, Oe(oe.value, (i, q) => (o(), d(le, { key: q }, [
@@ -1435,9 +1435,9 @@ const qs = { class: "wx-content" }, Ks = {
1435
1435
  key: 0,
1436
1436
  class: $e(i.css),
1437
1437
  style: fe(`width: ${i.width}px; left:${h(L).from + q * i.width}px`)
1438
- }, null, 6)) : re("", !0)
1438
+ }, null, 6)) : ue("", !0)
1439
1439
  ], 64))), 128))
1440
- ])) : re("", !0),
1440
+ ])) : ue("", !0),
1441
1441
  (o(!0), d(le, null, Oe(Me.value, (i, q) => (o(), d("div", {
1442
1442
  key: q,
1443
1443
  class: $e(i.css),
@@ -1451,8 +1451,8 @@ const qs = { class: "wx-content" }, Ks = {
1451
1451
  class: "wx-selected",
1452
1452
  "data-id": h(Je)(i.id),
1453
1453
  style: fe(te.value[q])
1454
- }, null, 12, Xs)) : re("", !0)
1455
- ], 64))), 128)) : re("", !0),
1454
+ }, null, 12, Xs)) : ue("", !0)
1455
+ ], 64))), 128)) : ue("", !0),
1456
1456
  ce(ks),
1457
1457
  ce(Ns, {
1458
1458
  readonly: t.readonly,
@@ -1469,7 +1469,7 @@ const qs = { class: "wx-content" }, Ks = {
1469
1469
  }]
1470
1470
  ]);
1471
1471
  }
1472
- }), Qs = /* @__PURE__ */ ve(Zs, [["__scopeId", "data-v-76e01de0"]]), Js = /* @__PURE__ */ Object.assign({ name: "GanttResizer" }, {
1472
+ }), Qs = /* @__PURE__ */ ve(Zs, [["__scopeId", "data-v-8d85f247"]]), Js = /* @__PURE__ */ Object.assign({ name: "GanttResizer" }, {
1473
1473
  __name: "Resizer",
1474
1474
  props: {
1475
1475
  api: {},
@@ -1644,13 +1644,13 @@ const qs = { class: "wx-content" }, Ks = {
1644
1644
  readonly: n.readonly,
1645
1645
  fullHeight: z.value,
1646
1646
  tableAPI: t.value,
1647
- "onUpdate:tableAPI": te[0] || (te[0] = (ue) => t.value = ue)
1647
+ "onUpdate:tableAPI": te[0] || (te[0] = (ie) => t.value = ie)
1648
1648
  }, null, 8, ["readonly", "fullHeight", "tableAPI"]),
1649
1649
  ce(on, {
1650
1650
  containerWidth: s.value,
1651
1651
  api: h(a)
1652
1652
  }, null, 8, ["containerWidth", "api"])
1653
- ], 64)) : re("", !0),
1653
+ ], 64)) : ue("", !0),
1654
1654
  K("div", {
1655
1655
  class: "wx-content",
1656
1656
  ref_key: "chart",
@@ -1674,8 +1674,8 @@ const qs = { class: "wx-content" }, Ks = {
1674
1674
  "ctrl+z": h(ee),
1675
1675
  "ctrl+y": h(ee)
1676
1676
  },
1677
- exec: (ue) => {
1678
- ue.isInput || h(a).exec("hotkey", ue);
1677
+ exec: (ie) => {
1678
+ ie.isInput || h(a).exec("hotkey", ie);
1679
1679
  }
1680
1680
  }]
1681
1681
  ])
@@ -1818,7 +1818,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
1818
1818
  s[oe] && s[oe](ne);
1819
1819
  });
1820
1820
  $.setNext(W);
1821
- const b = G(void 0), B = G(void 0), X = c(() => B.value <= ra), ee = a.getState.bind(a), E = a.getReactive.bind(a), A = () => ({ data: a }), U = $.exec, V = (y) => W = W.setNext(y), M = $.intercept.bind($), Y = $.on.bind($), z = $.detach.bind($), S = (y) => a.getTask(y), Z = (y) => a.getResource(y), k = (y) => a.serialize(y), R = (y) => y ? new Promise((ne) => setTimeout(() => ne(b.value), 1)) : b.value, L = () => a.getHistory(), N = (y) => a.getCalendar(y), Q = (y) => a.getTaskCalendar(y), x = (y) => a.getResourceCalendar(y), I = (y) => a.getTaskResources(y), te = (y) => a.getResourceTasks(y), ue = {
1821
+ const b = G(void 0), B = G(void 0), X = c(() => B.value <= ra), ee = a.getState.bind(a), E = a.getReactive.bind(a), A = () => ({ data: a }), U = $.exec, V = (y) => W = W.setNext(y), M = $.intercept.bind($), Y = $.on.bind($), z = $.detach.bind($), S = (y) => a.getTask(y), Z = (y) => a.getResource(y), k = (y) => a.serialize(y), R = (y) => y ? new Promise((ne) => setTimeout(() => ne(b.value), 1)) : b.value, L = () => a.getHistory(), N = (y) => a.getCalendar(y), Q = (y) => a.getTaskCalendar(y), x = (y) => a.getResourceCalendar(y), I = (y) => a.getTaskResources(y), te = (y) => a.getResourceTasks(y), ie = {
1822
1822
  getState: ee,
1823
1823
  getReactiveState: E,
1824
1824
  getStores: A,
@@ -1911,7 +1911,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
1911
1911
  gridWidth: _.value,
1912
1912
  cellBorders: t.cellBorders,
1913
1913
  _compactMode: X.value
1914
- }), me && t.init && (t.init(ue), me = !1);
1914
+ }), me && t.init && (t.init(ie), me = !1);
1915
1915
  }), (y, ne) => (o(), _e(na, {
1916
1916
  taskTemplate: t.taskTemplate,
1917
1917
  readonly: t.readonly,
@@ -2130,7 +2130,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2130
2130
  const e = n, t = c(() => e.data ? e.data.label : e.column.options.find((s) => s.id === e.row.type)?.label || "");
2131
2131
  return (s, a) => (o(), d("div", fa, [
2132
2132
  K("div", va, xe(t.value), 1),
2133
- n.row ? (o(), d("i", pa)) : re("", !0)
2133
+ n.row ? (o(), d("i", pa)) : ue("", !0)
2134
2134
  ]));
2135
2135
  }
2136
2136
  }, Nt = /* @__PURE__ */ ve(ga, [["__scopeId", "data-v-2569b653"]]), ma = { class: "wx-title" }, ha = {
@@ -2297,9 +2297,9 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2297
2297
  rowHeight: 44
2298
2298
  }
2299
2299
  }, null, 8, ["columns", "data"])
2300
- ], 64)) : re("", !0)
2300
+ ], 64)) : ue("", !0)
2301
2301
  ], 64))), 128)),
2302
- z.value ? (o(), d("div", ha, xe(h(e)("No links")), 1)) : re("", !0)
2302
+ z.value ? (o(), d("div", ha, xe(h(e)("No links")), 1)) : ue("", !0)
2303
2303
  ], 2));
2304
2304
  }
2305
2305
  }), ya = /* @__PURE__ */ ve(xa, [["__scopeId", "data-v-0a1cff38"]]), wa = { class: "date-time-controll" }, ka = {
@@ -2332,7 +2332,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2332
2332
  value: n.value,
2333
2333
  onchange: n.onchange,
2334
2334
  format: n.format
2335
- }, null, 8, ["value", "onchange", "format"])) : re("", !0)
2335
+ }, null, 8, ["value", "onchange", "format"])) : ue("", !0)
2336
2336
  ]));
2337
2337
  }
2338
2338
  }, _a = /* @__PURE__ */ ve(ka, [["__scopeId", "data-v-1f9dfea2"]]), ba = { class: "wx-avatar" }, $a = { class: "wx-text" }, Ta = { class: "wx-name" }, Sa = {
@@ -2355,9 +2355,9 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2355
2355
  ]),
2356
2356
  K("div", $a, [
2357
2357
  K("div", Ta, xe(t.value.name), 1),
2358
- t.value.role ? (o(), d("div", Sa, xe(t.value.role), 1)) : re("", !0)
2358
+ t.value.role ? (o(), d("div", Sa, xe(t.value.role), 1)) : ue("", !0)
2359
2359
  ])
2360
- ], 64)) : re("", !0);
2360
+ ], 64)) : ue("", !0);
2361
2361
  }
2362
2362
  }, Ut = /* @__PURE__ */ ve(Ca, [["__scopeId", "data-v-28c145a1"]]), Ra = { class: "wx-section" }, Ia = {
2363
2363
  key: 1,
@@ -2413,16 +2413,16 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2413
2413
  function V(x, I) {
2414
2414
  const te = _.value;
2415
2415
  I = { ...I, units: 100, task: te, id: x };
2416
- const ue = { assignment: I };
2416
+ const ie = { assignment: I };
2417
2417
  if (s.autoSave)
2418
- s.api.exec("add-assignment", ue);
2418
+ s.api.exec("add-assignment", ie);
2419
2419
  else {
2420
2420
  const me = f.value?.byId(I.resource);
2421
2421
  b.value = [...b.value, { ...me, ...I }], a && a(
2422
2422
  A({
2423
2423
  id: me.id,
2424
2424
  action: "add-assignment",
2425
- data: ue
2425
+ data: ie
2426
2426
  })
2427
2427
  );
2428
2428
  }
@@ -2433,17 +2433,17 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2433
2433
  function Y(x, I) {
2434
2434
  let te = $.value?.byId(x);
2435
2435
  te || (te = b.value.find((me) => me.id === x));
2436
- const ue = {
2436
+ const ie = {
2437
2437
  id: x,
2438
2438
  assignment: { units: te.units || 100, ...I, id: x }
2439
2439
  };
2440
- s.autoSave ? s.api.exec("update-assignment", ue) : (I.resource && I.resource !== te.resource && (I = { ...f.value?.byId(I.resource), ...ue.assignment }), b.value = b.value.map(
2440
+ s.autoSave ? s.api.exec("update-assignment", ie) : (I.resource && I.resource !== te.resource && (I = { ...f.value?.byId(I.resource), ...ie.assignment }), b.value = b.value.map(
2441
2441
  (me) => me.id === x ? { ...me, ...I } : me
2442
2442
  ), a && a(
2443
2443
  A({
2444
2444
  id: x,
2445
2445
  action: "update-assignment",
2446
- data: ue
2446
+ data: ie
2447
2447
  })
2448
2448
  ));
2449
2449
  }
@@ -2487,8 +2487,8 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2487
2487
  function Z(x, I, te) {
2488
2488
  if (I === "units") Y(x, { units: te * 1 });
2489
2489
  else if (I === "resource") {
2490
- const ue = { resource: te };
2491
- x === W.value ? V(x, ue) : Y(x, ue);
2490
+ const ie = { resource: te };
2491
+ x === W.value ? V(x, ie) : Y(x, ie);
2492
2492
  }
2493
2493
  W.value = null;
2494
2494
  }
@@ -2709,7 +2709,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2709
2709
  function N(i, q = "form") {
2710
2710
  return !e.api || !i || !Array.isArray(i) ? i : i.filter((j) => S.value ? !j.isHidden || !j.isHidden(S.value, e.api.getState()) : !0).map((j) => {
2711
2711
  const v = { ...j };
2712
- return v.items && Array.isArray(v.items) ? (v.items = N(v.items), v) : (q === "form" && !v.batch && (v.batch = wt), ["links", "resources", "segments"].includes(v.key) && e.api && (v.api = e.api, v.autoSave = e.autoSave, v.key === "resources" ? v.taskAssignments = R.value.taskAssignments : v.key === "links" ? (v.successors = R.value.successors, v.predecessors = R.value.predecessors) : v.key === "segments" && (v.segments = R.value.segments), v.onextchange = Ie), v.id === "tabs" && (v.api = e.api, v.css = "wx-gantt-tabs", v.value = E.value, v.onchange = v.onchange || ie), v.comp === "slider" && v.key === "progress" && (v.labelTemplate = (pe) => `${s(v.label)} ${pe}%`), v.text && (v.text = s(v.text)), v.label && (v.label = s(v.label)), v.options && (v.options = N(v.options)), v.config && (v.config = { ...v.config }), v.config?.placeholder && (v.config.placeholder = s(v.config.placeholder)), S.value && v.isDisabled && v.isDisabled(
2712
+ return v.items && Array.isArray(v.items) ? (v.items = N(v.items), v) : (q === "form" && !v.batch && (v.batch = wt), ["links", "resources", "segments"].includes(v.key) && e.api && (v.api = e.api, v.autoSave = e.autoSave, v.key === "resources" ? v.taskAssignments = R.value.taskAssignments : v.key === "links" ? (v.successors = R.value.successors, v.predecessors = R.value.predecessors) : v.key === "segments" && (v.segments = R.value.segments), v.onextchange = Ie), v.id === "tabs" && (v.api = e.api, v.css = "wx-gantt-tabs", v.value = E.value, v.onchange = v.onchange || re), v.comp === "slider" && v.key === "progress" && (v.labelTemplate = (pe) => `${s(v.label)} ${pe}%`), v.text && (v.text = s(v.text)), v.label && (v.label = s(v.label)), v.options && (v.options = N(v.options)), v.config && (v.config = { ...v.config }), v.config?.placeholder && (v.config.placeholder = s(v.config.placeholder)), S.value && v.isDisabled && v.isDisabled(
2713
2713
  S.value,
2714
2714
  e.api.getState(),
2715
2715
  e.api.getTaskCalendar(S.value)
@@ -2735,7 +2735,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2735
2735
  }
2736
2736
  return i;
2737
2737
  }
2738
- const ue = c(() => !e.topBar || e.readonly ? !1 : te(e.topBar, x.value, "top")), me = c(() => !e.bottomBar || e.readonly ? !1 : te(e.bottomBar, x.value, "bottom"));
2738
+ const ie = c(() => !e.topBar || e.readonly ? !1 : te(e.topBar, x.value, "top")), me = c(() => !e.bottomBar || e.readonly ? !1 : te(e.bottomBar, x.value, "bottom"));
2739
2739
  function Ie({ view: i, event: q, values: j }) {
2740
2740
  const { id: v, action: pe, data: be } = q;
2741
2741
  let Ce;
@@ -2801,7 +2801,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2801
2801
  }
2802
2802
  } : {}
2803
2803
  );
2804
- function ie(i) {
2804
+ function re(i) {
2805
2805
  E.value = i.value;
2806
2806
  }
2807
2807
  return (i, q) => L.value ? (o(), _e(h(On), { key: 0 }, {
@@ -2810,7 +2810,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2810
2810
  css: `wx-gantt-editor ${A.value} ${n.css}`,
2811
2811
  items: Q.value,
2812
2812
  values: L.value,
2813
- topBar: ue.value,
2813
+ topBar: ie.value,
2814
2814
  bottomBar: me.value,
2815
2815
  placement: n.placement,
2816
2816
  layout: n.layout,
@@ -2826,7 +2826,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2826
2826
  }, null, 8, ["css", "items", "values", "topBar", "bottomBar", "placement", "layout", "readonly", "autoSave", "focus", "activeBatch", "hotkeys"])
2827
2827
  ]),
2828
2828
  _: 1
2829
- })) : re("", !0);
2829
+ })) : ue("", !0);
2830
2830
  }
2831
2831
  }), xl = /* @__PURE__ */ ve(Aa, [["__scopeId", "data-v-311f463a"]]), yl = {
2832
2832
  __name: "HeaderMenu",
@@ -2841,7 +2841,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2841
2841
  columns: n.columns
2842
2842
  }, {
2843
2843
  default: Ue(() => [
2844
- s.$slots.default ? pt(s.$slots, "default", { key: 0 }) : re("", !0)
2844
+ s.$slots.default ? pt(s.$slots, "default", { key: 0 }) : ue("", !0)
2845
2845
  ]),
2846
2846
  _: 3
2847
2847
  }, 8, ["api", "columns"]));
@@ -2952,7 +2952,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2952
2952
  ), N = c(() => X().value ?? null), Q = c(() => ee().value ?? null);
2953
2953
  let x = Re("wx-i18n", null);
2954
2954
  x || (x = mt({ ...ht, ...Tt }), ut("wx-i18n", x));
2955
- const I = x.getGroup("gantt"), te = G(0), ue = G(null), me = G(null), Ie = G(0);
2955
+ const I = x.getGroup("gantt"), te = G(0), ie = G(null), me = G(null), Ie = G(0);
2956
2956
  let y, ne;
2957
2957
  const oe = c(() => {
2958
2958
  if (!e.columns || !e.columns.length) return [];
@@ -2986,11 +2986,11 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
2986
2986
  () => Jt(M.value, S.value, z.value)
2987
2987
  ), se = c(
2988
2988
  () => (A.value?.width ?? 0) > te.value - Te.value
2989
- ), ie = c(() => {
2989
+ ), re = c(() => {
2990
2990
  const J = E.value?.length * V.value, O = Ie.value - (se.value ? t.value : 0);
2991
2991
  return J > O;
2992
2992
  }), i = c(
2993
- () => De.value > Te.value + (ie.value ? t.value : 0)
2993
+ () => De.value > Te.value + (re.value ? t.value : 0)
2994
2994
  );
2995
2995
  Fe(() => {
2996
2996
  const J = Y.value;
@@ -3053,7 +3053,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
3053
3053
  () => e.api && ln(
3054
3054
  e.api,
3055
3055
  () => Q.value,
3056
- () => ue.value
3056
+ () => ie.value
3057
3057
  )
3058
3058
  ), Se = G(null);
3059
3059
  let Ye;
@@ -3093,7 +3093,7 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
3093
3093
  e.columns && e.columns.length ? (o(), d(le, { key: 0 }, [
3094
3094
  K("div", {
3095
3095
  class: $e(["wx-grid-container", {
3096
- "wx-y-scroll": ie.value,
3096
+ "wx-y-scroll": re.value,
3097
3097
  "wx-h-scroll-reserve": se.value && !i.value
3098
3098
  }]),
3099
3099
  style: fe(`flex: 0 0 ${Be.value};`),
@@ -3124,15 +3124,15 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
3124
3124
  containerWidth: te.value,
3125
3125
  api: e.api
3126
3126
  }, null, 8, ["containerWidth", "api"])
3127
- ], 64)) : re("", !0),
3127
+ ], 64)) : ue("", !0),
3128
3128
  K("div", {
3129
3129
  class: "wx-chart",
3130
3130
  ref_key: "chartContainer",
3131
- ref: ue,
3131
+ ref: ie,
3132
3132
  onwheel: Ce.value
3133
3133
  }, [
3134
3134
  K("div", {
3135
- class: $e(["wx-timescale-viewport", { "wx-v-scroll-reserve": ie.value }]),
3135
+ class: $e(["wx-timescale-viewport", { "wx-v-scroll-reserve": re.value }]),
3136
3136
  ref_key: "scalesDiv",
3137
3137
  ref: me
3138
3138
  }, [
@@ -3158,10 +3158,10 @@ const ra = 650, gl = /* @__PURE__ */ Object.assign({ name: "GanttComponentsGantt
3158
3158
  rowStyle: () => N.value === "column" ? "wx-column-border" : "",
3159
3159
  cellStyle: be
3160
3160
  }, null, 8, ["columns", "data", "sizes", "selectedRows", "rowStyle"])
3161
- ], 512)) : re("", !0)
3161
+ ], 512)) : ue("", !0)
3162
3162
  ], 8, Qa)
3163
3163
  ])
3164
- ], 4)) : re("", !0);
3164
+ ], 4)) : ue("", !0);
3165
3165
  }
3166
3166
  }, wl = /* @__PURE__ */ ve(Ja, [["__scopeId", "data-v-6e54a028"]]), kl = /* @__PURE__ */ Object.assign({ name: "GanttWidgetsTooltip" }, {
3167
3167
  __name: "Tooltip",