@danxbot/ui 20.15.0 → 20.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -45057,6 +45057,7 @@ function E8(e, t, n) {
45057
45057
  offset: Ox(i, 0),
45058
45058
  wipLimit: i.wipLimit,
45059
45059
  reorderLocked: i.reorderLocked,
45060
+ reorderLabels: i.reorderLabels,
45060
45061
  /* `wipLimit` undefined => always false, per the field's own doc on
45061
45062
  `BoardColumnModel` — a column with no limit cannot be over one. */
45062
45063
  overWip: i.wipLimit !== void 0 && !c && l > i.wipLimit
@@ -45931,14 +45932,14 @@ function wJ({ id: e, index: t, label: n, className: r, children: o }) {
45931
45932
  function L8({ columnId: e }) {
45932
45933
  const t = ET("BoardCardHandle"), n = O8("BoardCardHandle"), r = R8(), [o, s] = ne(!1), i = Cl(), { registerHandle: a } = n;
45933
45934
  Ae(() => a(), [a]);
45934
- const c = t.columns.find((b) => b.id === e), l = t.columns.filter((b) => b.id !== e), d = Ox(c, n.index), f = c?.items.length ?? 0;
45935
- function p(b) {
45935
+ const c = t.columns.find((v) => v.id === e), l = t.columns.filter((v) => v.id !== e), d = Ox(c, n.index), f = c?.items.length ?? 0;
45936
+ function p(v) {
45936
45937
  s(!1), t.requestMove({
45937
- moves: [{ itemId: n.itemId, from: { columnId: e, index: n.index }, to: b }],
45938
+ moves: [{ itemId: n.itemId, from: { columnId: e, index: n.index }, to: v }],
45938
45939
  source: "menu"
45939
45940
  });
45940
45941
  }
45941
- const h = c?.reorderLocked === void 0, m = h && d > 0, g = h && d < (c?.count ?? 0) - 1, x = n.label ?? String(n.itemId);
45942
+ const h = c?.reorderLocked === void 0, m = h && d > 0, g = h && d < (c?.count ?? 0) - 1, x = c?.reorderLabels?.toTop ?? t.reorderLabels.toTop, b = c?.reorderLabels?.toBottom ?? t.reorderLabels.toBottom, y = n.label ?? String(n.itemId);
45942
45943
  return /* @__PURE__ */ R("span", { className: i.handleCluster(), children: [
45943
45944
  !r && /* @__PURE__ */ u(hT, {}),
45944
45945
  /* @__PURE__ */ R(
@@ -45948,22 +45949,22 @@ function L8({ columnId: e }) {
45948
45949
  onOpenChange: s,
45949
45950
  side: "bottom",
45950
45951
  align: "start",
45951
- trigger: /* @__PURE__ */ u("button", { type: "button", className: i.menuTrigger(), "aria-label": `Move ${x}`, children: /* @__PURE__ */ u(ae, { name: "more-vertical", size: "sm" }) }),
45952
+ trigger: /* @__PURE__ */ u("button", { type: "button", className: i.menuTrigger(), "aria-label": `Move ${y}`, children: /* @__PURE__ */ u(ae, { name: "more-vertical", size: "sm" }) }),
45952
45953
  children: [
45953
- m && /* @__PURE__ */ u(Qr, { onClick: () => p({ columnId: e, index: 0, edge: "top" }), children: t.reorderLabels.toTop }),
45954
- g && /* @__PURE__ */ u(Qr, { onClick: () => p({ columnId: e, index: f - 1, edge: "bottom" }), children: t.reorderLabels.toBottom }),
45955
- l.map((b) => /* @__PURE__ */ R(
45954
+ m && /* @__PURE__ */ u(Qr, { onClick: () => p({ columnId: e, index: 0, edge: "top" }), children: x }),
45955
+ g && /* @__PURE__ */ u(Qr, { onClick: () => p({ columnId: e, index: f - 1, edge: "bottom" }), children: b }),
45956
+ l.map((v) => /* @__PURE__ */ R(
45956
45957
  Qr,
45957
45958
  {
45958
45959
  onClick: () => p(
45959
- t.crossLaneDrop === "lane" ? { columnId: b.id, lane: !0 } : { columnId: b.id, index: b.items.length, edge: "bottom" }
45960
+ t.crossLaneDrop === "lane" ? { columnId: v.id, lane: !0 } : { columnId: v.id, index: v.items.length, edge: "bottom" }
45960
45961
  ),
45961
45962
  children: [
45962
45963
  "Move to ",
45963
- b.label
45964
+ v.label
45964
45965
  ]
45965
45966
  },
45966
- b.id
45967
+ v.id
45967
45968
  )),
45968
45969
  !m && !g && l.length === 0 && /* @__PURE__ */ u("div", { className: "px-2.5 py-2 text-xs text-tertiary", children: "Nothing to move — only card here" })
45969
45970
  ]