@baishuyun/ui-base 6.27.0 → 6.28.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 (47) hide show
  1. package/dist/Amap/index.js +1 -1
  2. package/dist/Calendar/{Calendar-CMEZXjae.js → Calendar-CbWlQ_kl.js} +1 -1
  3. package/dist/Calendar/index.js +3 -3
  4. package/dist/Card/index.js +1 -1
  5. package/dist/CheckBox/index.js +1 -1
  6. package/dist/ColorPicker/index.js +1 -1
  7. package/dist/ConfigProvider/index.js +1 -1
  8. package/dist/DatePicker/{DatePicker-BAqfHpW3.js → DatePicker-C8ds9tlu.js} +1 -1
  9. package/dist/DatePicker/{DatePickerPanel-V4o--MnL.js → DatePickerPanel-v5utod1B.js} +1 -1
  10. package/dist/DatePicker/index.js +2 -2
  11. package/dist/DropDown/index.js +1 -1
  12. package/dist/Editor/index.js +1 -1
  13. package/dist/FieldCard/FieldCard-CCv4nLpH.js +282 -0
  14. package/dist/FieldCard/index.js +13 -2
  15. package/dist/Gantt/index.js +1 -1
  16. package/dist/Icon/index.js +1 -1
  17. package/dist/InputTag/index.js +1 -1
  18. package/dist/Kanban/index.js +308 -293
  19. package/dist/Loading/index.js +1 -1
  20. package/dist/Modal/index.js +1 -1
  21. package/dist/NotFoundContent/index.js +1 -1
  22. package/dist/Overlay/index.js +1 -1
  23. package/dist/Radio/index.js +1 -1
  24. package/dist/ScrollBar/index.js +1 -1
  25. package/dist/Segmented/index.js +1 -1
  26. package/dist/Select/index.js +1 -1
  27. package/dist/Table/index.js +1 -1
  28. package/dist/Tabs/index.js +1 -1
  29. package/dist/Tooltip/index.js +1 -1
  30. package/dist/Tree/index.js +1 -1
  31. package/dist/components/FieldCard/FieldCard.d.ts +2 -1
  32. package/dist/components/FieldCard/index.d.ts +1 -1
  33. package/dist/components/FieldCard/interface.d.ts +22 -1
  34. package/dist/components/Kanban/Kanban.d.ts +1 -1
  35. package/dist/components/Kanban/KanbanCardItem.d.ts +9 -13
  36. package/dist/components/Kanban/KanbanCardList.d.ts +2 -12
  37. package/dist/components/Kanban/KanbanColumnView.d.ts +2 -16
  38. package/dist/components/Kanban/KanbanConfigContext.d.ts +21 -0
  39. package/dist/components/Kanban/index.d.ts +1 -1
  40. package/dist/components/Kanban/interface.d.ts +5 -2
  41. package/dist/components/Kanban/resolveDrop.d.ts +2 -2
  42. package/dist/components/index.d.ts +2 -0
  43. package/dist/index.js +5 -4
  44. package/dist/style.css +1 -1
  45. package/dist/vendors/{version-CHTDBkqW.js → version-MwpV49PV.js} +1 -1
  46. package/package.json +1 -1
  47. package/dist/FieldCard/FieldCard-yPfxc-og.js +0 -213
@@ -1,27 +1,47 @@
1
- import "../vendors/version-CHTDBkqW.js";
1
+ import "../vendors/version-MwpV49PV.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
+ import "../Overlay/OverlayContext-CVSFoyqN.js";
5
6
  import { t } from "../vendors/useLocale-3oUjPb-k.js";
7
+ import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
6
8
  import { t as n } from "../vendors/cssVars-UpriQzph.js";
9
+ import "../Select/SelectInputSearch-BMJQw4ll.js";
7
10
  import "../CheckBox/CheckBox-DOdRLFKI.js";
8
11
  import { t as r } from "../CheckBox/CheckBox-CtOSHKM0.js";
12
+ import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
9
13
  import { t as i } from "../ScrollBar/ScrollBar-IMTuAOF5.js";
10
- import { t as a } from "../FieldCard/FieldCard-yPfxc-og.js";
14
+ import "../vendors/useFloatingPortal-DJ1iKmW-.js";
15
+ import "../DropDown/DropDown-B3VFy5GF.js";
16
+ import { t as a } from "../FieldCard/FieldCard-CCv4nLpH.js";
11
17
  import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
12
- import { useCallback as l, useEffect as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
13
- import h from "clsx";
14
- import { useControllableValue as g } from "ahooks";
15
- import { useVirtualizer as _ } from "@tanstack/react-virtual";
16
- import { DndContext as v, DragOverlay as y, MeasuringStrategy as b, PointerSensor as x, closestCenter as S, pointerWithin as C, rectIntersection as w, useDndContext as T, useDndMonitor as ee, useDraggable as E, useDroppable as D, useSensor as O, useSensors as k } from "@dnd-kit/core";
17
- import { SortableContext as A, horizontalListSortingStrategy as j, useSortable as M } from "@dnd-kit/sortable";
18
+ import { createContext as l, memo as u, useCallback as d, useContext as f, useEffect as p, useLayoutEffect as m, useMemo as h, useRef as g, useState as _ } from "react";
19
+ import v from "clsx";
20
+ import { useControllableValue as y } from "ahooks";
21
+ import { useVirtualizer as b } from "@tanstack/react-virtual";
22
+ import { DndContext as x, DragOverlay as S, MeasuringStrategy as C, PointerSensor as w, closestCenter as T, pointerWithin as E, rectIntersection as ee, useDndContext as D, useDndMonitor as O, useDraggable as k, useDroppable as A, useSensor as j, useSensors as te } from "@dnd-kit/core";
23
+ import { SortableContext as ne, horizontalListSortingStrategy as re, useSortable as M } from "@dnd-kit/sortable";
18
24
  import { CSS as N } from "@dnd-kit/utilities";
19
- //#region src/components/Kanban/interface.ts
25
+ //#region src/components/Kanban/KanbanConfigContext.ts
20
26
  var P = {
27
+ columnSize: "middle",
28
+ fieldLayout: "vertical",
29
+ cardDraggable: !0,
30
+ cardCheckable: !1,
31
+ columnCheckable: !1,
32
+ onCardChecked: () => {},
33
+ onColumnChecked: () => {}
34
+ }, F = l(null);
35
+ function I() {
36
+ return f(F) ?? P;
37
+ }
38
+ //#endregion
39
+ //#region src/components/Kanban/interface.ts
40
+ var L = {
21
41
  small: 200,
22
42
  middle: 260,
23
43
  large: 340
24
- }, F = 80, I = { uncheckedBg: "#fff" }, L = {
44
+ }, R = 80, z = { uncheckedBg: "#fff" }, B = {
25
45
  root: "_root_1rtd0_1",
26
46
  board: "_board_1rtd0_8",
27
47
  column: "_column_1rtd0_19",
@@ -52,24 +72,29 @@ var P = {
52
72
  };
53
73
  //#endregion
54
74
  //#region src/components/Kanban/KanbanCardItem.tsx
55
- function R({ card: e, selected: t, loading: n, checkable: i, coverLayout: o, fieldLayout: l = "vertical", size: u = "middle", checkboxTheme: d, onChecked: f }) {
75
+ function V({ card: e, selected: t, loading: n, columnId: i, showExtra: o = !0, checkable: l, coverLayout: u, fieldLayout: d, size: f, checkboxTheme: p, onChecked: m, onCardMenuClick: h }) {
76
+ let g = I(), _ = l ?? g.cardCheckable, v = u ?? g.coverLayout, y = d ?? g.fieldLayout, b = f ?? g.columnSize, x = p ?? g.checkboxTheme, S = m ?? g.onCardChecked, C = h ?? g.onCardMenuClick, w = o && !!(e.menus && e.menus.length > 0);
56
77
  return /* @__PURE__ */ c(a, {
57
78
  title: e.title,
58
79
  cover: e.cover,
59
- coverPlaceholder: o?.position === "left",
60
- coverLayout: o,
61
- size: u,
62
- layout: l,
80
+ coverPlaceholder: v?.position === "left",
81
+ coverLayout: v,
82
+ size: b,
83
+ layout: y,
63
84
  selected: t,
64
85
  loading: n,
65
86
  children: [
66
- i ? /* @__PURE__ */ s(a.Check, {
87
+ w ? /* @__PURE__ */ s(a.Extra, {
88
+ menus: e.menus,
89
+ onMenuClick: (t) => i && C?.(t, e, i)
90
+ }) : null,
91
+ _ ? /* @__PURE__ */ s(a.Check, {
67
92
  "data-kanban-no-drag": "",
68
93
  "data-testid": `kanban-card-check-${e.id}`,
69
94
  children: /* @__PURE__ */ s(r, {
70
- theme: d ?? I,
95
+ theme: x ?? z,
71
96
  checked: t,
72
- onChange: (t) => f(e.id, t)
97
+ onChange: (t) => S(e.id, t)
73
98
  })
74
99
  }) : null,
75
100
  e.fields?.map((e, t) => /* @__PURE__ */ s(a.Meta, {
@@ -84,30 +109,30 @@ function R({ card: e, selected: t, loading: n, checkable: i, coverLayout: o, fie
84
109
  ]
85
110
  });
86
111
  }
87
- function z({ card: e, columnId: t, index: n, selected: r, loading: i, checkable: a, cardDraggable: o, coverLayout: l, fieldLayout: u, size: d, checkboxTheme: f, onClick: p, onChecked: m }) {
88
- let h = o && !i, { attributes: g, listeners: _, setNodeRef: v, isDragging: y } = E({
112
+ var H = u(function({ card: e, columnId: t, index: n, selected: r, loading: i }) {
113
+ let a = I(), o = a.cardDraggable && !i, { attributes: l, listeners: u, setNodeRef: d, isDragging: f } = k({
89
114
  id: e.id,
90
- disabled: !h,
115
+ disabled: !o,
91
116
  data: {
92
117
  type: "card",
93
118
  columnId: t,
94
119
  index: n
95
120
  }
96
- }), { setNodeRef: b, isOver: x } = D({
121
+ }), { setNodeRef: p, isOver: m } = A({
97
122
  id: `card:${t}:${e.id}`,
98
123
  data: {
99
124
  type: "card",
100
125
  columnId: t,
101
126
  index: n
102
127
  }
103
- }), { active: S } = T(), C = S?.data.current, w = x && C?.type === "card" && C.columnId !== t;
128
+ }), { active: h } = D(), g = h?.data.current, _ = m && g?.type === "card" && g.columnId !== t;
104
129
  return /* @__PURE__ */ c("div", {
105
130
  ref: (e) => {
106
- v(e), b(e);
131
+ d(e), p(e);
107
132
  },
108
- className: `${L.card} ${y ? L.cardDragging : ""}`,
133
+ className: `${B.card} ${f ? B.cardDragging : ""}`,
109
134
  style: {
110
- paddingTop: w ? 12 : 0,
135
+ paddingTop: _ ? 12 : 0,
111
136
  transition: "opacity 0.2s ease, padding 0.2s ease"
112
137
  },
113
138
  "data-testid": `kanban-card-${e.id}`,
@@ -115,55 +140,51 @@ function z({ card: e, columnId: t, index: n, selected: r, loading: i, checkable:
115
140
  "data-loading": i ? "true" : "false",
116
141
  "data-selected": r ? "true" : "false",
117
142
  onClick: (n) => {
118
- i || n.target instanceof Element && n.target.closest("[data-kanban-no-drag]") || p?.(e.id, t);
143
+ i || n.target instanceof Element && n.target.closest("[data-kanban-no-drag]") || a.onClick?.(e.id, t);
119
144
  },
120
- ...g,
121
- ...h ? _ : void 0,
122
- children: [w ? /* @__PURE__ */ s("div", { className: L.dropIndicator }) : null, /* @__PURE__ */ s(R, {
145
+ ...l,
146
+ ...o ? u : void 0,
147
+ children: [_ ? /* @__PURE__ */ s("div", { className: B.dropIndicator }) : null, /* @__PURE__ */ s(V, {
123
148
  card: e,
149
+ columnId: t,
124
150
  selected: r,
125
151
  loading: i,
126
- checkable: a,
127
- coverLayout: l,
128
- fieldLayout: u,
129
- size: d,
130
- checkboxTheme: f,
131
- onChecked: m
152
+ showExtra: !f
132
153
  })]
133
154
  });
134
- }
155
+ });
135
156
  //#endregion
136
157
  //#region src/components/Kanban/columnListMotion.ts
137
- function B(e, t) {
158
+ function ie(e, t) {
138
159
  if (e.length === 0) return !1;
139
160
  let n = new Set(t), r = new Set(e), i = e.some((e) => !n.has(e)), a = t.some((e) => !r.has(e));
140
161
  return i && !a;
141
162
  }
142
163
  //#endregion
143
164
  //#region src/components/Kanban/KanbanCardList.tsx
144
- var V = 20, H = 48, U = 12, W = 200, te = 54, ne = 34;
145
- function G({ column: e, estimate: n, selectedIds: r, loadingIds: a, checkable: o, cardDraggable: f, coverLayout: h, fieldLayout: g, size: v, checkboxTheme: y, onClick: b, onChecked: x, footer: S, onReachBottom: C }) {
146
- let [w, T] = m(null), [E, O] = m(0), k = p(!1), A = p([]), j = p(/* @__PURE__ */ new Map()), M = p(0), N = p(null), P = e.items.map((e) => e.id), F = P.join("\0"), I = B(A.current, P), [R, G] = m(!1), re = I || R ? `transform ${W}ms ease` : void 0, K = I || R ? `height ${W}ms ease` : void 0, { setNodeRef: ie } = D({
165
+ var ae = 20, U = 48, W = 12, G = 200, K = 54, q = 34;
166
+ function J({ column: e, estimate: n, selectedIds: r, loadingIds: a, footer: o, onReachBottom: l }) {
167
+ let u = I(), f = l ?? u.onReachBottom, [h, v] = _(null), [y, x] = _(0), S = g(!1), C = g([]), w = g(/* @__PURE__ */ new Map()), T = g(0), E = g(null), ee = e.items.map((e) => e.id), D = ee.join("\0"), k = ie(C.current, ee), [j, te] = _(!1), ne = k || j ? `transform ${G}ms ease` : void 0, re = k || j ? `height ${G}ms ease` : void 0, { setNodeRef: M } = A({
147
168
  id: `column-body:${e.id}`,
148
169
  data: {
149
170
  type: "column-body",
150
171
  columnId: e.id,
151
172
  index: e.items.length
152
173
  }
153
- }), q = _({
174
+ }), N = b({
154
175
  count: e.items.length,
155
- getScrollElement: () => w,
176
+ getScrollElement: () => h,
156
177
  estimateSize: () => n,
157
178
  overscan: 6,
158
179
  getItemKey: (t) => e.items[t]?.id ?? t
159
180
  });
160
- d(() => {
161
- let e = F === "" ? [] : F.split("\0"), t = /* @__PURE__ */ new Map();
162
- for (let n of q.getVirtualItems()) {
181
+ m(() => {
182
+ let e = D === "" ? [] : D.split("\0"), t = /* @__PURE__ */ new Map();
183
+ for (let n of N.getVirtualItems()) {
163
184
  let r = e[n.index];
164
185
  r && t.set(r, n.start);
165
186
  }
166
- let n = q.getTotalSize(), r = N.current, i = B(A.current, e);
187
+ let n = N.getTotalSize(), r = E.current, i = ie(C.current, e);
167
188
  if (i && r) {
168
189
  let e = /* @__PURE__ */ new Map();
169
190
  r.querySelectorAll("[data-card-id]").forEach((t) => {
@@ -171,156 +192,148 @@ function G({ column: e, estimate: n, selectedIds: r, loadingIds: a, checkable: o
171
192
  n && t.parentElement && e.set(n, t.parentElement);
172
193
  });
173
194
  for (let [n, r] of t) {
174
- let t = j.current.get(n), i = e.get(n);
195
+ let t = w.current.get(n), i = e.get(n);
175
196
  t === void 0 || t === r || !i || (i.style.transition = "none", i.style.transform = `translateY(${t}px)`);
176
197
  }
177
- M.current !== n && (r.style.transition = "none", r.style.height = `${M.current}px`), r.offsetHeight;
198
+ T.current !== n && (r.style.transition = "none", r.style.height = `${T.current}px`), r.offsetHeight;
178
199
  for (let [n, r] of t) {
179
- let t = j.current.get(n), i = e.get(n);
180
- t === void 0 || t === r || !i || (i.style.transition = `transform ${W}ms ease`, i.style.transform = `translateY(${r}px)`);
200
+ let t = w.current.get(n), i = e.get(n);
201
+ t === void 0 || t === r || !i || (i.style.transition = `transform ${G}ms ease`, i.style.transform = `translateY(${r}px)`);
181
202
  }
182
- M.current !== n && (r.style.transition = `height ${W}ms ease`, r.style.height = `${n}px`);
203
+ T.current !== n && (r.style.transition = `height ${G}ms ease`, r.style.height = `${n}px`);
183
204
  }
184
- A.current = e, j.current = t, M.current = n, i && G(!0);
185
- }, [F, q]), u(() => {
186
- if (!R) return;
187
- let e = window.setTimeout(() => G(!1), W);
205
+ C.current = e, w.current = t, T.current = n, i && te(!0);
206
+ }, [D, N]), p(() => {
207
+ if (!j) return;
208
+ let e = window.setTimeout(() => te(!1), G);
188
209
  return () => window.clearTimeout(e);
189
- }, [R]);
190
- let J = l((e) => {
191
- ie(e), T(e), O(e?.clientHeight ?? 0);
192
- }, [ie]), { t: ae } = t(), Y = p(e.paging?.loading), oe = p(e.items.length);
193
- u(() => {
194
- let t = Y.current && !e.paging?.loading, n = oe.current !== e.items.length;
195
- (t || n) && (k.current = !1), Y.current = e.paging?.loading, oe.current = e.items.length;
210
+ }, [j]);
211
+ let P = d((e) => {
212
+ M(e), v(e), x(e?.clientHeight ?? 0);
213
+ }, [M]), { t: F } = t(), L = g(e.paging?.loading), R = g(e.items.length);
214
+ p(() => {
215
+ let t = L.current && !e.paging?.loading, n = R.current !== e.items.length;
216
+ (t || n) && (S.current = !1), L.current = e.paging?.loading, R.current = e.items.length;
196
217
  }, [
197
218
  e.id,
198
219
  e.items.length,
199
220
  e.paging?.loading
200
221
  ]);
201
- let X = l((t) => {
202
- if (!C || e.paging?.loading || e.paging?.noMore) return;
222
+ let z = d((t) => {
223
+ if (!f || e.paging?.loading || e.paging?.noMore) return;
203
224
  let n = t.target;
204
225
  if (n instanceof HTMLElement) {
205
- if (n.scrollHeight - n.scrollTop - n.clientHeight > V) {
206
- k.current = !1;
226
+ if (n.scrollHeight - n.scrollTop - n.clientHeight > ae) {
227
+ S.current = !1;
207
228
  return;
208
229
  }
209
- k.current || (k.current = !0, C(e.id));
230
+ S.current || (S.current = !0, f(e.id));
210
231
  }
211
232
  }, [
212
233
  e.id,
213
234
  e.paging?.noMore,
214
235
  e.paging?.loading,
215
- C
236
+ f
216
237
  ]);
217
- u(() => {
218
- if (!w) return;
219
- let e = new ResizeObserver(() => O(w.clientHeight));
220
- return e.observe(w), () => e.disconnect();
221
- }, [w]);
222
- let se = !!e.paging?.loading, ce = !!(e.paging?.noMore && !e.paging?.loading), le = se || ce, ue = q.getTotalSize(), de = ue, Z = ue + (le ? ne : 0), Q = !!S && E > 0 && Z + te > E, $ = Z + (S && !Q ? te : 0);
223
- return ee({ onDragMove(t) {
238
+ p(() => {
239
+ if (!h) return;
240
+ let e = new ResizeObserver(() => x(h.clientHeight));
241
+ return e.observe(h), () => e.disconnect();
242
+ }, [h]);
243
+ let V = !!e.paging?.loading, J = !!(e.paging?.noMore && !e.paging?.loading), oe = V || J, Y = N.getTotalSize(), se = Y, X = Y + (oe ? q : 0), Z = !!o && y > 0 && X + K > y, ce = X + (o && !Z ? K : 0);
244
+ return O({ onDragMove(t) {
224
245
  let n = t.active.data.current;
225
- if (!w || n?.type !== "card" || n.columnId === e.id) return;
246
+ if (!h || n?.type !== "card" || n.columnId === e.id) return;
226
247
  let r = t.active.rect.current.translated;
227
248
  if (!r) return;
228
- let i = w.getBoundingClientRect(), a = r.top + r.height / 2;
229
- a < i.top + H ? w.scrollTop -= U : a > i.bottom - H && (w.scrollTop += U);
249
+ let i = h.getBoundingClientRect(), a = r.top + r.height / 2;
250
+ a < i.top + U ? h.scrollTop -= W : a > i.bottom - U && (h.scrollTop += W);
230
251
  } }), /* @__PURE__ */ c("div", {
231
- className: L.list,
252
+ className: B.list,
232
253
  children: [/* @__PURE__ */ s(i, {
233
- className: Q ? L.listScroll : L.listFill,
234
- viewportRef: J,
235
- onScroll: X,
254
+ className: Z ? B.listScroll : B.listFill,
255
+ viewportRef: P,
256
+ onScroll: z,
236
257
  options: { overflow: {
237
258
  x: "hidden",
238
259
  y: "scroll"
239
260
  } },
240
261
  children: /* @__PURE__ */ c("div", {
241
- ref: N,
262
+ ref: E,
242
263
  style: {
243
- height: $,
264
+ height: ce,
244
265
  position: "relative",
245
266
  width: "100%",
246
- transition: K
267
+ transition: re
247
268
  },
248
269
  children: [
249
- q.getVirtualItems().map((t) => {
270
+ N.getVirtualItems().map((t) => {
250
271
  let n = e.items[t.index];
251
272
  return n ? /* @__PURE__ */ s("div", {
252
273
  "data-index": t.index,
253
- ref: q.measureElement,
254
- className: L.cardSlot,
274
+ ref: N.measureElement,
275
+ className: B.cardSlot,
255
276
  style: {
256
277
  position: "absolute",
257
278
  top: 0,
258
279
  left: 0,
259
280
  width: "100%",
260
281
  transform: `translateY(${t.start}px)`,
261
- transition: re
282
+ transition: ne
262
283
  },
263
- children: /* @__PURE__ */ s(z, {
284
+ children: /* @__PURE__ */ s(H, {
264
285
  card: n,
265
286
  columnId: e.id,
266
287
  index: t.index,
267
288
  selected: r.has(n.id),
268
- loading: a.has(n.id),
269
- checkable: o,
270
- cardDraggable: f,
271
- coverLayout: h,
272
- fieldLayout: g,
273
- size: v,
274
- checkboxTheme: y,
275
- onClick: b,
276
- onChecked: x
289
+ loading: a.has(n.id)
277
290
  })
278
291
  }, n.id) : null;
279
292
  }),
280
- se ? /* @__PURE__ */ s("div", {
281
- className: L.paging,
293
+ V ? /* @__PURE__ */ s("div", {
294
+ className: B.paging,
282
295
  style: {
283
296
  position: "absolute",
284
- top: de,
297
+ top: se,
285
298
  left: 0,
286
299
  right: 0
287
300
  },
288
301
  "data-testid": `kanban-paging-loading-${e.id}`,
289
- children: ae("kanban.loadingMore")
302
+ children: F("kanban.loadingMore")
290
303
  }) : null,
291
- ce ? /* @__PURE__ */ s("div", {
292
- className: L.paging,
304
+ J ? /* @__PURE__ */ s("div", {
305
+ className: B.paging,
293
306
  style: {
294
307
  position: "absolute",
295
- top: de,
308
+ top: se,
296
309
  left: 0,
297
310
  right: 0
298
311
  },
299
312
  "data-testid": `kanban-paging-noMore-${e.id}`,
300
- children: ae("kanban.noMore")
313
+ children: F("kanban.noMore")
301
314
  }) : null,
302
- S && !Q ? /* @__PURE__ */ s("div", {
303
- className: L.addAnchor,
304
- style: { top: Z },
305
- children: S
315
+ o && !Z ? /* @__PURE__ */ s("div", {
316
+ className: B.addAnchor,
317
+ style: { top: X },
318
+ children: o
306
319
  }) : null
307
320
  ]
308
321
  })
309
- }), Q ? S : null]
322
+ }), Z ? o : null]
310
323
  });
311
324
  }
312
325
  //#endregion
313
326
  //#region src/components/Kanban/selection.ts
314
- function re(e, t, n) {
327
+ function oe(e, t, n) {
315
328
  return n === e.includes(t) ? e : n ? [...e, t] : e.filter((e) => e !== t);
316
329
  }
317
- function K(e, t) {
330
+ function Y(e, t) {
318
331
  if (t.length === 0) return "unchecked";
319
332
  let n = 0;
320
333
  for (let r of t) e.has(r) && (n += 1);
321
334
  return n === 0 ? "unchecked" : n === t.length ? "checked" : "indeterminate";
322
335
  }
323
- function ie(e, t, n) {
336
+ function se(e, t, n) {
324
337
  if (t.length === 0) return e;
325
338
  if (!n) {
326
339
  let n = new Set(t);
@@ -333,101 +346,92 @@ function ie(e, t, n) {
333
346
  }
334
347
  //#endregion
335
348
  //#region src/components/Kanban/KanbanColumnView.tsx
336
- var q = 120, J = 40;
337
- function ae({ column: n, columnWidth: i, collapsed: a, selectedIds: l, loadingIds: u, cardCheckable: d, columnCheckable: f, cardDraggable: p, coverLayout: m, fieldLayout: h, size: g, checkboxTheme: _, onClick: v, onCardChecked: y, onColumnChecked: b, onToggleCollapse: x, onReachBottom: S, onAdd: C }) {
338
- let { t: w } = t(), { active: ee } = T(), E = ee?.data.current?.type === "card", D = n.sortable !== !1 && !E, { setNodeRef: O, attributes: k, listeners: A, isDragging: j, transform: P, transition: F } = M({
349
+ var X = 120, Z = 40;
350
+ function ce({ column: n, columnWidth: i, collapsed: a, selectedIds: l, loadingIds: u, onToggleCollapse: d }) {
351
+ let { t: f } = t(), p = I(), { active: m } = D(), h = m?.data.current?.type === "card", g = n.sortable !== !1 && !h, { setNodeRef: _, attributes: v, listeners: y, isDragging: b, transform: x, transition: S } = M({
339
352
  id: n.id,
340
- disabled: !D,
353
+ disabled: !g,
341
354
  data: {
342
355
  type: "column",
343
356
  columnId: n.id,
344
357
  index: n.items.length
345
358
  }
346
- }), R = n.items.map((e) => e.id), z = K(l, R), B = f ? /* @__PURE__ */ s("div", {
347
- className: `${L.columnCheck} ${z === "unchecked" ? "" : L.columnCheckVisible}`,
359
+ }), C = n.items.map((e) => e.id), w = Y(l, C), T = p.columnCheckable ? /* @__PURE__ */ s("div", {
360
+ className: `${B.columnCheck} ${w === "unchecked" ? "" : B.columnCheckVisible}`,
348
361
  "data-kanban-no-drag": "",
349
362
  "data-testid": `kanban-column-check-${n.id}`,
350
- "data-check": z,
363
+ "data-check": w,
351
364
  children: /* @__PURE__ */ s(r, {
352
- theme: _ ?? I,
353
- checked: z === "checked",
354
- indeterminate: z === "indeterminate",
355
- onChange: (e) => b(R, e)
365
+ theme: p.checkboxTheme ?? z,
366
+ checked: w === "checked",
367
+ indeterminate: w === "indeterminate",
368
+ onChange: (e) => p.onColumnChecked(C, e)
356
369
  })
357
370
  }) : null;
358
371
  return /* @__PURE__ */ c("div", {
359
- ref: O,
360
- className: `${L.column} ${a ? L.columnCollapsed : ""} ${j ? L.columnDragging : ""}`,
372
+ ref: _,
373
+ className: `${B.column} ${a ? B.columnCollapsed : ""} ${b ? B.columnDragging : ""}`,
361
374
  style: {
362
- width: a ? J : i,
363
- transform: N.Transform.toString(P),
364
- transition: F
375
+ width: a ? Z : i,
376
+ transform: N.Transform.toString(x),
377
+ transition: S
365
378
  },
366
379
  "data-testid": `kanban-column-${n.id}`,
367
380
  "data-column-id": n.id,
368
- "data-sortable": D ? "true" : "false",
381
+ "data-sortable": g ? "true" : "false",
369
382
  children: [/* @__PURE__ */ c("div", {
370
- className: `${L.header} ${a ? L.headerCollapsed : ""} ${D ? L.headerDraggable : ""}`,
371
- ...k,
372
- ...D ? A : void 0,
383
+ className: `${B.header} ${a ? B.headerCollapsed : ""} ${g ? B.headerDraggable : ""}`,
384
+ ...v,
385
+ ...g ? y : void 0,
373
386
  children: [a ? /* @__PURE__ */ c("div", {
374
- className: L.collapsedTitle,
387
+ className: B.collapsedTitle,
375
388
  children: [
376
- B,
389
+ T,
377
390
  /* @__PURE__ */ s("span", { children: n.title }),
378
391
  /* @__PURE__ */ s("span", {
379
- className: L.count,
392
+ className: B.count,
380
393
  "data-testid": `kanban-count-${n.id}`,
381
394
  children: n.total
382
395
  })
383
396
  ]
384
397
  }) : /* @__PURE__ */ c("div", {
385
- className: L.titleRow,
398
+ className: B.titleRow,
386
399
  children: [
387
- B,
400
+ T,
388
401
  /* @__PURE__ */ s("div", {
389
- className: L.title,
402
+ className: B.title,
390
403
  children: n.title
391
404
  }),
392
405
  /* @__PURE__ */ s("span", {
393
- className: L.count,
406
+ className: B.count,
394
407
  "data-testid": `kanban-count-${n.id}`,
395
408
  children: n.total
396
409
  })
397
410
  ]
398
411
  }), /* @__PURE__ */ s("button", {
399
412
  type: "button",
400
- className: L.toggle,
413
+ className: B.toggle,
401
414
  "data-kanban-no-drag": "",
402
- "aria-label": w(a ? "kanban.expand" : "kanban.collapse"),
403
- onClick: () => x?.(n.id),
415
+ "aria-label": f(a ? "kanban.expand" : "kanban.collapse"),
416
+ onClick: () => d?.(n.id),
404
417
  children: /* @__PURE__ */ s(e, {
405
418
  name: a ? "magnify" : "reduction",
406
419
  size: 16
407
420
  })
408
421
  })]
409
- }), a ? null : /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s(G, {
422
+ }), a ? null : /* @__PURE__ */ s(o, { children: /* @__PURE__ */ s(J, {
410
423
  column: n,
411
- estimate: q,
424
+ estimate: X,
412
425
  selectedIds: l,
413
426
  loadingIds: u,
414
- checkable: d,
415
- cardDraggable: p,
416
- coverLayout: m,
417
- fieldLayout: h,
418
- size: g,
419
- checkboxTheme: _,
420
- onClick: v,
421
- onChecked: y,
422
- onReachBottom: S,
423
427
  footer: n.addable ? /* @__PURE__ */ s("div", {
424
- className: L.add,
428
+ className: B.add,
425
429
  children: /* @__PURE__ */ s("button", {
426
430
  type: "button",
427
431
  "data-kanban-no-drag": "",
428
- "aria-label": w("kanban.add"),
432
+ "aria-label": f("kanban.add"),
429
433
  "data-testid": `kanban-add-${n.id}`,
430
- onClick: () => C?.(n.id),
434
+ onClick: () => p.onAdd?.(n.id),
431
435
  children: /* @__PURE__ */ s(e, {
432
436
  name: "add",
433
437
  size: 16
@@ -439,32 +443,32 @@ function ae({ column: n, columnWidth: i, collapsed: a, selectedIds: l, loadingId
439
443
  }
440
444
  //#endregion
441
445
  //#region src/components/Kanban/KanbanPointerSensor.ts
442
- var Y = "[data-kanban-no-drag]", oe = class extends x {
446
+ var le = "[data-kanban-no-drag]", ue = class extends w {
443
447
  static activators = [{
444
448
  eventName: "onPointerDown",
445
449
  handler: ({ nativeEvent: e }, t) => {
446
450
  if (e.isPrimary === !1 || (e.button ?? 0) !== 0) return !1;
447
451
  let n = e.target;
448
- return n instanceof Element && n.closest(Y) ? !1 : (t.onActivation?.({ event: e }), !0);
452
+ return n instanceof Element && n.closest(le) ? !1 : (t.onActivation?.({ event: e }), !0);
449
453
  }
450
454
  }];
451
- }, X = (e) => {
455
+ }, de = (e) => {
452
456
  if (!(e == null || e === "")) return typeof e == "number" ? `${e}px` : String(e);
453
- }, se = (e) => {
457
+ }, fe = (e) => {
454
458
  let t = e?.colorPrimary, n = e?.checkbox?.colorPrimary ?? t;
455
459
  return {
456
- ...I,
460
+ ...z,
457
461
  ...e?.checkbox,
458
462
  ...n ? { colorPrimary: n } : {}
459
463
  };
460
- }, ce = (e) => {
464
+ }, pe = (e) => {
461
465
  if (!e) return {};
462
466
  let t = {}, r = e.colorPrimary;
463
- return n(t, "--bsy-kanban-color-primary", r), n(t, "--bsy-kanban-column-bg", e.columnBg), n(t, "--bsy-kanban-column-title-color", e.columnTitleColor), n(t, "--bsy-kanban-column-count-color", e.columnCountColor), n(t, "--bsy-kanban-column-border-radius", X(e.columnBorderRadius)), n(t, "--bsy-field-card-color-primary", r), n(t, "--bsy-field-card-bg", e.cardBg), n(t, "--bsy-field-card-title-color", e.cardTitleColor), n(t, "--bsy-field-card-label-color", e.cardLabelColor), n(t, "--bsy-field-card-value-color", e.cardValueColor), n(t, "--bsy-field-card-hover-border", e.cardHoverBorderColor ?? r), n(t, "--bsy-field-card-selected-border", e.cardSelectedBorderColor ?? r), n(t, "--bsy-field-card-border-radius", X(e.cardBorderRadius)), n(t, "--bsy-kanban-drop-indicator-color", e.dropIndicatorColor ?? r), n(t, "--bsy-kanban-collapse-icon-color", e.collapseIconColor), n(t, "--bsy-kanban-collapse-icon-hover-color", e.collapseIconHoverColor ?? r), n(t, "--bsy-kanban-add-btn-bg", e.addBtnBg), n(t, "--bsy-kanban-add-btn-hover-bg", e.addBtnHoverBg), n(t, "--bsy-kanban-add-btn-color", e.addBtnColor), n(t, "--bsy-kanban-paging-color", e.pagingTextColor), t;
467
+ return n(t, "--bsy-kanban-color-primary", r), n(t, "--bsy-kanban-column-bg", e.columnBg), n(t, "--bsy-kanban-column-title-color", e.columnTitleColor), n(t, "--bsy-kanban-column-count-color", e.columnCountColor), n(t, "--bsy-kanban-column-border-radius", de(e.columnBorderRadius)), n(t, "--bsy-field-card-color-primary", r), n(t, "--bsy-field-card-bg", e.cardBg), n(t, "--bsy-field-card-title-color", e.cardTitleColor), n(t, "--bsy-field-card-label-color", e.cardLabelColor), n(t, "--bsy-field-card-value-color", e.cardValueColor), n(t, "--bsy-field-card-hover-border", e.cardHoverBorderColor ?? r), n(t, "--bsy-field-card-selected-border", e.cardSelectedBorderColor ?? r), n(t, "--bsy-field-card-border-radius", de(e.cardBorderRadius)), n(t, "--bsy-kanban-drop-indicator-color", e.dropIndicatorColor ?? r), n(t, "--bsy-kanban-collapse-icon-color", e.collapseIconColor), n(t, "--bsy-kanban-collapse-icon-hover-color", e.collapseIconHoverColor ?? r), n(t, "--bsy-kanban-add-btn-bg", e.addBtnBg), n(t, "--bsy-kanban-add-btn-hover-bg", e.addBtnHoverBg), n(t, "--bsy-kanban-add-btn-color", e.addBtnColor), n(t, "--bsy-kanban-paging-color", e.pagingTextColor), t;
464
468
  };
465
469
  //#endregion
466
470
  //#region src/components/Kanban/resolveDrop.ts
467
- function le(e) {
471
+ function me(e) {
468
472
  return e.activeType === "column" ? e.overType !== "column" || !e.overColumnId || e.activeId === e.overColumnId || !e.sortableIds.has(e.activeId) || !e.sortableIds.has(e.overColumnId) ? null : {
469
473
  kind: "column",
470
474
  payload: {
@@ -483,42 +487,72 @@ function le(e) {
483
487
  }
484
488
  //#endregion
485
489
  //#region src/components/Kanban/Kanban.tsx
486
- var ue = { droppable: { strategy: b.Always } };
487
- function de(e) {
490
+ var he = { droppable: { strategy: C.Always } };
491
+ function ge(e) {
488
492
  return {
489
493
  onChange: e?.onChange,
490
494
  ...e?.selectedItemKeys === void 0 ? {} : { selectedItemKeys: e.selectedItemKeys },
491
495
  ...e?.defaultSelectedItemKeys === void 0 ? {} : { defaultSelectedItemKeys: e.defaultSelectedItemKeys }
492
496
  };
493
497
  }
494
- function Z({ columns: e, columnSize: t = "middle", columnWidth: n, coverLayout: r, fieldLayout: i = "vertical", itemSelection: a, cardDraggable: o = !0, loadingIds: u, onClick: d, onCardMove: _, onColumnMove: b, onAdd: x, onReachBottom: T, className: ee, style: E, theme: D }) {
495
- let [M, N] = m(null), F = a?.checkable ?? !1, I = a?.columnCheckable ?? !1, [z, B] = g(de(a), {
498
+ function Q({ columns: e, columnSize: t = "middle", columnWidth: n, coverLayout: r, fieldLayout: i = "vertical", itemSelection: a, cardDraggable: o = !0, loadingIds: l, onClick: u, onCardMove: f, onColumnMove: p, onAdd: m, onReachBottom: b, onCardMenuClick: C, className: w, style: D, theme: O }) {
499
+ let [k, A] = _(null), M = a?.checkable ?? !1, N = a?.columnCheckable ?? !1, [P, I] = y(ge(a), {
496
500
  defaultValue: [],
497
501
  valuePropName: "selectedItemKeys",
498
502
  defaultValuePropName: "defaultSelectedItemKeys",
499
503
  trigger: "onChange"
500
- }), V = f(() => ce(D), [D]), H = f(() => se(D), [D]), U = p(null), W = k(O(oe, { activationConstraint: { distance: 8 } })), te = r?.position === "left" || r?.position === "right", ne = n ?? P[t] + (te ? 80 : 0), G = f(() => new Set(z), [z]), K = l((e, t) => {
501
- let n = re(z, e, t);
502
- n !== z && B(n);
503
- }, [z, B]), q = l((e, t) => {
504
- let n = ie(z, e, t);
505
- n !== z && B(n);
506
- }, [z, B]), J = f(() => new Set(u ?? []), [u]), [Y, X] = m([]), Z = f(() => new Set(Y), [Y]), Q = l((e) => {
507
- X((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
508
- }, []), $ = f(() => e.filter((e) => e.sortable !== !1).map((e) => e.id), [e]), fe = f(() => new Set($), [$]), pe = l((e) => {
509
- if (U.current === "column") return S(e).filter((t) => e.droppableContainers.find((e) => e.id === t.id)?.data.current?.type === "column");
510
- let t = C(e), n = (n) => t.find((t) => e.droppableContainers.find((e) => e.id === t.id)?.data.current?.type === n), r = n("card");
504
+ }), R = h(() => pe(O), [O]), z = h(() => fe(O), [O]), H = g(null), ie = te(j(ue, { activationConstraint: { distance: 8 } })), ae = r?.position === "left" || r?.position === "right", U = n ?? L[t] + (ae ? 80 : 0), W = h(() => new Set(P), [P]), G = g(P);
505
+ G.current = P;
506
+ let K = d((e, t) => {
507
+ let n = G.current, r = oe(n, e, t);
508
+ r !== n && I(r);
509
+ }, [I]), q = d((e, t) => {
510
+ let n = G.current, r = se(n, e, t);
511
+ r !== n && I(r);
512
+ }, [I]), J = h(() => ({
513
+ columnSize: t,
514
+ fieldLayout: i,
515
+ coverLayout: r,
516
+ checkboxTheme: z,
517
+ cardDraggable: o,
518
+ cardCheckable: M,
519
+ columnCheckable: N,
520
+ onClick: u,
521
+ onCardChecked: K,
522
+ onColumnChecked: q,
523
+ onCardMenuClick: C,
524
+ onAdd: m,
525
+ onReachBottom: b
526
+ }), [
527
+ t,
528
+ i,
529
+ r,
530
+ z,
531
+ o,
532
+ M,
533
+ N,
534
+ u,
535
+ K,
536
+ q,
537
+ C,
538
+ m,
539
+ b
540
+ ]), Y = h(() => new Set(l ?? []), [l]), [X, Z] = _([]), le = h(() => new Set(X), [X]), de = d((e) => {
541
+ Z((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]);
542
+ }, []), Q = h(() => e.filter((e) => e.sortable !== !1).map((e) => e.id), [e]), _e = h(() => new Set(Q), [Q]), ve = d((e) => {
543
+ if (H.current === "column") return T(e).filter((t) => e.droppableContainers.find((e) => e.id === t.id)?.data.current?.type === "column");
544
+ let t = E(e), n = (n) => t.find((t) => e.droppableContainers.find((e) => e.id === t.id)?.data.current?.type === n), r = n("card");
511
545
  if (r) return [r];
512
546
  let i = n("column-body");
513
547
  if (i) return [i];
514
548
  let a = n("column");
515
- return a ? [a] : w(e);
516
- }, []), me = l((t) => {
549
+ return a ? [a] : ee(e);
550
+ }, []), ye = d((t) => {
517
551
  let n = t.active.data.current;
518
552
  if (n?.type === "column" && n.columnId) {
519
- U.current = "column";
553
+ H.current = "column";
520
554
  let e = document.querySelector(`[data-column-id="${n.columnId}"]`), r = e instanceof HTMLElement ? e.getBoundingClientRect().height : void 0;
521
- N({
555
+ A({
522
556
  type: "column",
523
557
  id: String(t.active.id),
524
558
  columnId: n.columnId,
@@ -528,130 +562,111 @@ function Z({ columns: e, columnSize: t = "middle", columnWidth: n, coverLayout:
528
562
  }
529
563
  if (n?.type === "card" && n.columnId) {
530
564
  let r = e.find((e) => e.id === n.columnId)?.items.find((e) => e.id === String(t.active.id));
531
- U.current = "card", N({
565
+ H.current = "card", A({
532
566
  type: "card",
533
567
  id: String(t.active.id),
534
568
  columnId: n.columnId,
535
569
  card: r
536
570
  });
537
571
  }
538
- }, [e]), he = l((e) => {
539
- let t = e.active.data.current, n = e.over?.data.current, r = le({
572
+ }, [e]), be = d((e) => {
573
+ let t = e.active.data.current, n = e.over?.data.current, r = me({
540
574
  activeType: t?.type ?? null,
541
575
  activeId: String(e.active.id),
542
576
  fromColumnId: t?.columnId,
543
577
  overType: n?.type ?? null,
544
578
  overColumnId: n?.columnId,
545
579
  overIndex: n?.index,
546
- sortableIds: fe
580
+ sortableIds: _e
547
581
  });
548
- U.current = null, N(null), r?.kind === "card" && _?.(r.payload), r?.kind === "column" && b?.(r.payload);
582
+ H.current = null, A(null), r?.kind === "card" && f?.(r.payload), r?.kind === "column" && p?.(r.payload);
549
583
  }, [
550
- _,
551
- b,
552
- fe
553
- ]), ge = l(() => {
554
- U.current = null, N(null);
555
- }, []), _e = M?.type === "column" ? e.find((e) => e.id === M.columnId) : void 0;
556
- return /* @__PURE__ */ c(v, {
557
- sensors: W,
558
- collisionDetection: pe,
559
- measuring: ue,
560
- autoScroll: M?.type === "column",
561
- onDragStart: me,
562
- onDragEnd: he,
563
- onDragCancel: ge,
564
- children: [/* @__PURE__ */ s("div", {
565
- className: h(L.root, ee),
566
- style: {
567
- ...V,
568
- ...E
569
- },
570
- "data-testid": "kanban-root",
571
- children: e.length === 0 ? null : /* @__PURE__ */ s(A, {
572
- items: $,
573
- strategy: j,
574
- children: /* @__PURE__ */ s("div", {
575
- className: L.board,
576
- children: e.map((e) => /* @__PURE__ */ s(ae, {
577
- column: e,
578
- columnWidth: ne,
579
- collapsed: Z.has(e.id),
580
- selectedIds: G,
581
- loadingIds: J,
582
- cardCheckable: F,
583
- columnCheckable: I,
584
- cardDraggable: o,
585
- coverLayout: r,
586
- fieldLayout: i,
587
- size: t,
588
- checkboxTheme: H,
589
- onClick: d,
590
- onCardChecked: K,
591
- onColumnChecked: q,
592
- onToggleCollapse: Q,
593
- onReachBottom: T,
594
- onAdd: x
595
- }, e.id))
596
- })
597
- })
598
- }), /* @__PURE__ */ c(y, {
599
- dropAnimation: {
600
- duration: 250,
601
- easing: "cubic-bezier(0.25, 1, 0.5, 1)"
602
- },
603
- children: [M?.type === "card" && M.card ? /* @__PURE__ */ s("div", {
604
- className: L.cardOverlay,
605
- style: V,
606
- "data-testid": "kanban-card-overlay",
607
- children: /* @__PURE__ */ s(R, {
608
- card: M.card,
609
- selected: G.has(M.card.id),
610
- loading: J.has(M.card.id),
611
- checkable: F,
612
- coverLayout: r,
613
- fieldLayout: i,
614
- size: t,
615
- checkboxTheme: H,
616
- onChecked: K
617
- })
618
- }) : null, _e ? /* @__PURE__ */ c("div", {
619
- className: `${L.column} ${L.columnOverlay}`,
584
+ f,
585
+ p,
586
+ _e
587
+ ]), xe = d(() => {
588
+ H.current = null, A(null);
589
+ }, []), $ = k?.type === "column" ? e.find((e) => e.id === k.columnId) : void 0;
590
+ return /* @__PURE__ */ s(x, {
591
+ sensors: ie,
592
+ collisionDetection: ve,
593
+ measuring: he,
594
+ autoScroll: k?.type === "column",
595
+ onDragStart: ye,
596
+ onDragEnd: be,
597
+ onDragCancel: xe,
598
+ children: /* @__PURE__ */ c(F.Provider, {
599
+ value: J,
600
+ children: [/* @__PURE__ */ s("div", {
601
+ className: v(B.root, w),
620
602
  style: {
621
- width: ne,
622
- height: M?.overlayHeight,
623
- ...V
603
+ ...R,
604
+ ...D
624
605
  },
625
- "data-testid": "kanban-column-overlay",
626
- children: [/* @__PURE__ */ s("div", {
627
- className: L.header,
628
- children: /* @__PURE__ */ c("div", {
629
- className: L.titleRow,
630
- children: [/* @__PURE__ */ s("div", {
631
- className: L.title,
632
- children: _e.title
633
- }), /* @__PURE__ */ s("span", {
634
- className: L.count,
635
- children: _e.total
636
- })]
606
+ "data-testid": "kanban-root",
607
+ children: e.length === 0 ? null : /* @__PURE__ */ s(ne, {
608
+ items: Q,
609
+ strategy: re,
610
+ children: /* @__PURE__ */ s("div", {
611
+ className: B.board,
612
+ children: e.map((e) => /* @__PURE__ */ s(ce, {
613
+ column: e,
614
+ columnWidth: U,
615
+ collapsed: le.has(e.id),
616
+ selectedIds: W,
617
+ loadingIds: Y,
618
+ onToggleCollapse: de
619
+ }, e.id))
637
620
  })
638
- }), /* @__PURE__ */ s("div", { children: _e.items.map((e) => /* @__PURE__ */ s("div", {
639
- className: L.cardSlot,
640
- children: /* @__PURE__ */ s(R, {
641
- card: e,
642
- selected: G.has(e.id),
643
- loading: J.has(e.id),
644
- checkable: F,
645
- coverLayout: r,
646
- fieldLayout: i,
647
- size: t,
648
- checkboxTheme: H,
649
- onChecked: K
621
+ })
622
+ }), /* @__PURE__ */ c(S, {
623
+ dropAnimation: {
624
+ duration: 250,
625
+ easing: "cubic-bezier(0.25, 1, 0.5, 1)"
626
+ },
627
+ children: [k?.type === "card" && k.card ? /* @__PURE__ */ s("div", {
628
+ className: B.cardOverlay,
629
+ style: R,
630
+ "data-testid": "kanban-card-overlay",
631
+ children: /* @__PURE__ */ s(V, {
632
+ card: k.card,
633
+ selected: W.has(k.card.id),
634
+ loading: Y.has(k.card.id),
635
+ showExtra: !1
650
636
  })
651
- }, e.id)) })]
652
- }) : null]
653
- })]
637
+ }) : null, $ ? /* @__PURE__ */ c("div", {
638
+ className: `${B.column} ${B.columnOverlay}`,
639
+ style: {
640
+ width: U,
641
+ height: k?.overlayHeight,
642
+ ...R
643
+ },
644
+ "data-testid": "kanban-column-overlay",
645
+ children: [/* @__PURE__ */ s("div", {
646
+ className: B.header,
647
+ children: /* @__PURE__ */ c("div", {
648
+ className: B.titleRow,
649
+ children: [/* @__PURE__ */ s("div", {
650
+ className: B.title,
651
+ children: $.title
652
+ }), /* @__PURE__ */ s("span", {
653
+ className: B.count,
654
+ children: $.total
655
+ })]
656
+ })
657
+ }), /* @__PURE__ */ s("div", { children: $.items.map((e) => /* @__PURE__ */ s("div", {
658
+ className: B.cardSlot,
659
+ children: /* @__PURE__ */ s(V, {
660
+ card: e,
661
+ selected: W.has(e.id),
662
+ loading: Y.has(e.id),
663
+ showExtra: !1
664
+ })
665
+ }, e.id)) })]
666
+ }) : null]
667
+ })]
668
+ })
654
669
  });
655
670
  }
656
671
  //#endregion
657
- export { P as KANBAN_COLUMN_WIDTH, F as KANBAN_COVER_SIDE_EXTRA, Z as default };
672
+ export { L as KANBAN_COLUMN_WIDTH, R as KANBAN_COVER_SIDE_EXTRA, Q as default };