ezux 1.1.19 → 1.1.21
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/README.md +7 -1
- package/dist/{DeleteConfirmationModal-CukNDgtX.cjs → DeleteConfirmationModal-BM1PoL6P.cjs} +1 -1
- package/dist/{DeleteConfirmationModal-p8XGDGIw.js → DeleteConfirmationModal-B_tXm0N0.js} +4 -4
- package/dist/{EzEventModal-BrCBSXBM.cjs → EzEventModal-D1EzXBsQ.cjs} +1 -1
- package/dist/{EzEventModal-BDSHG11m.js → EzEventModal-D5lX9XuW.js} +2 -2
- package/dist/{EzFlow-CQFeY7DL.cjs → EzFlow-B4qRm5KH.cjs} +3 -3
- package/dist/{EzFlow-C74NbZA9.js → EzFlow-CEfPykao.js} +278 -278
- package/dist/EzKanban-2b9skOep.cjs +2 -0
- package/dist/{EzKanban-COcGidzh.js → EzKanban-CpYH8b8g.js} +86 -80
- package/dist/{EzLayout-CiaPLniV.js → EzLayout-DFxegglu.js} +30 -24
- package/dist/EzLayout-EYOfpFXs.cjs +1 -0
- package/dist/{EzScheduler-CjQbi1Na.js → EzScheduler-D7aH4KCY.js} +60 -55
- package/dist/EzScheduler-hC9PsLrI.cjs +1 -0
- package/dist/{EzSchedulerQuickAdd-BeNfGdWs.cjs → EzSchedulerQuickAdd-BYrV9PQ-.cjs} +1 -1
- package/dist/{EzSchedulerQuickAdd-BIC8xbSn.js → EzSchedulerQuickAdd-D0kGTzE3.js} +2 -2
- package/dist/{EzSchedulerToolbar-jMw8KB8k.js → EzSchedulerToolbar-BhlCMeOT.js} +2 -2
- package/dist/{EzSchedulerToolbar-ihfe-5Yd.cjs → EzSchedulerToolbar-Dy62PVnH.cjs} +1 -1
- package/dist/{EzSignature-7UHO5lSP.js → EzSignature-B-CPcf7e.js} +5 -2
- package/dist/{EzSignature-Df7UZ-IS.cjs → EzSignature-DcmWBPIL.cjs} +1 -1
- package/dist/EzTable-Bcq7TByw.cjs +3 -0
- package/dist/{EzTable-D2p1IWHc.js → EzTable-DLbb3nl7.js} +1296 -1161
- package/dist/EzTableEditDialog--8pD39Rp.cjs +1 -0
- package/dist/EzTableEditDialog-m0zW6r6z.js +100 -0
- package/dist/{EzTableFooter-DrLoWelo.js → EzTableFooter-BuTS3wDK.js} +1 -1
- package/dist/{EzTableToolbar-DwuumvWP.cjs → EzTableToolbar-BWjqKfwx.cjs} +1 -1
- package/dist/{EzTableToolbar-BH5z9fSJ.js → EzTableToolbar-BiRfKm9d.js} +2 -2
- package/dist/{EzTreeView-D1G0Aomc.js → EzTreeView-B2B_Ruwm.js} +37 -37
- package/dist/EzTreeView-DLoPKe2i.cjs +1 -0
- package/dist/{KanbanBoard-BsZP_PJi.js → KanbanBoard-CRF0-mYa.js} +119 -119
- package/dist/{KanbanBoard-C9bjU_gk.cjs → KanbanBoard-DdXD-Zjt.cjs} +1 -1
- package/dist/advanced.cjs +2 -2
- package/dist/advanced.es.js +30 -29
- package/dist/card-NlCLCGFb.cjs +1 -0
- package/dist/{card-ZUNxcdIM.js → card-urNaa5h-.js} +1 -1
- package/dist/{checkbox-BrCh_Iid.cjs → checkbox-B9yPkCYi.cjs} +1 -1
- package/dist/{checkbox-DRkQuB4W.js → checkbox-BTuckDEm.js} +1 -1
- package/dist/components/EzTable/EzTableEditDialog.d.ts +1 -1
- package/dist/components/EzTable/hooks/useTableFiltering.d.ts +6 -6
- package/dist/components/EzTable/hooks/useTableHistory.d.ts +3 -3
- package/dist/components/EzTable/hooks/useTableImperative.d.ts +9 -6
- package/dist/components/EzTable/hooks/useTableState.d.ts +12 -12
- package/dist/components/EzTable/types/EzTableProps.d.ts +9 -1
- package/dist/ezux.css +1 -1
- package/dist/flow.cjs +1 -1
- package/dist/flow.es.js +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.es.js +20 -20
- package/dist/input-CcRi0LeO.js +14 -0
- package/dist/input-DOh8O0iX.cjs +1 -0
- package/dist/kanban.cjs +1 -1
- package/dist/kanban.es.js +2 -2
- package/dist/layout.cjs +1 -1
- package/dist/layout.es.js +1 -1
- package/dist/mock-services.cjs +1 -1
- package/dist/mock-services.es.js +1 -1
- package/dist/scheduler.cjs +1 -1
- package/dist/scheduler.es.js +1 -1
- package/dist/signature.cjs +1 -1
- package/dist/signature.es.js +1 -1
- package/dist/table.cjs +1 -1
- package/dist/table.es.js +1 -1
- package/dist/theme-vars.css +25 -5
- package/dist/treeview.cjs +1 -1
- package/dist/treeview.es.js +1 -1
- package/package.json +39 -36
- package/dist/EzKanban-DokdXGqQ.cjs +0 -2
- package/dist/EzLayout-BGnqFtvO.cjs +0 -1
- package/dist/EzScheduler-B8nV1VWY.cjs +0 -1
- package/dist/EzTable-CEXvJR1t.cjs +0 -3
- package/dist/EzTableEditDialog-BXnnYSSy.cjs +0 -1
- package/dist/EzTableEditDialog-Ccd5XoHm.js +0 -84
- package/dist/EzTreeView-KMGlU4ax.cjs +0 -1
- package/dist/card-CPlRZxbq.cjs +0 -1
- package/dist/input-CYlvlbF7.cjs +0 -1
- package/dist/input-Cj3sQK3M.js +0 -14
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { _ as e } from "./EzProvider-AlmsYIDk.js";
|
|
2
2
|
import { t } from "./button-CYyNwV8S.js";
|
|
3
|
-
import { t as n } from "./input-
|
|
3
|
+
import { t as n } from "./input-CcRi0LeO.js";
|
|
4
4
|
import { n as r, r as i, t as a } from "./avatar-BvCUJ-_r.js";
|
|
5
5
|
import { t as o } from "./label-DWEV--5W.js";
|
|
6
6
|
import { a as s, h as c, r as l, t as u } from "./dropdown-menu-B_7_K13o.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import {
|
|
7
|
+
import { a as d, c as f, n as p, s as m, t as h } from "./card-urNaa5h-.js";
|
|
8
|
+
import { t as g } from "./EzScheduler-D7aH4KCY.js";
|
|
9
|
+
import { a as _, i as v, n as y, r as b, t as x } from "./select-D4tFaSai.js";
|
|
10
|
+
import { t as S } from "./checkbox-BTuckDEm.js";
|
|
11
|
+
import { t as C } from "./TooltipWrapper-BSAmUx9H.js";
|
|
12
|
+
import { t as w } from "./Modal-CrzpKyjK.js";
|
|
13
13
|
import { t as T } from "./date-time-picker-DqdtBpAg.js";
|
|
14
14
|
import * as E from "react";
|
|
15
15
|
import D, { memo as O, useCallback as k, useEffect as A, useMemo as j, useRef as M, useState as N } from "react";
|
|
@@ -17,8 +17,8 @@ import { cva as P } from "class-variance-authority";
|
|
|
17
17
|
import { Activity as F, AlertCircle as I, AlertTriangle as L, Archive as ee, Calendar as R, CheckCircle2 as z, CheckSquare as B, ChevronDown as V, ChevronRight as H, Clock as U, Edit2 as te, FileText as W, Globe as G, HelpCircle as ne, Image as re, List as ie, Loader2 as ae, Lock as K, MessageSquare as oe, MoreHorizontal as se, Paperclip as ce, PlayCircle as le, Plus as ue, RefreshCcw as de, Settings as q, ShieldAlert as fe, StopCircle as pe, Trash2 as me, Unlock as he, Users as ge, X as _e, XCircle as J } from "lucide-react";
|
|
18
18
|
import { jsx as Y, jsxs as X } from "react/jsx-runtime";
|
|
19
19
|
import { useForm as ve } from "@tanstack/react-form";
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
20
|
+
import { useVirtualizer as Z } from "@tanstack/react-virtual";
|
|
21
|
+
import { DndContext as ye, DragOverlay as be, PointerSensor as xe, useDroppable as Se, useSensor as Ce, useSensors as we } from "@dnd-kit/core";
|
|
22
22
|
import { addDays as Te, format as Ee, isValid as De, startOfDay as Oe } from "date-fns";
|
|
23
23
|
import { CSS as ke } from "@dnd-kit/utilities";
|
|
24
24
|
import { SortableContext as Ae, horizontalListSortingStrategy as je, useSortable as Me, verticalListSortingStrategy as Ne } from "@dnd-kit/sortable";
|
|
@@ -90,11 +90,11 @@ function $({ className: t, value: n, children: r, ref: i, ...a }) {
|
|
|
90
90
|
}
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region src/components/EzKanban/components/CardEditorModal.tsx
|
|
93
|
-
var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u = [], columnId: d, customFields:
|
|
93
|
+
var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u = [], columnId: d, customFields: p = [], currentUser: h = {
|
|
94
94
|
id: "current-user",
|
|
95
95
|
name: "Current User"
|
|
96
96
|
} }) => {
|
|
97
|
-
let { t:
|
|
97
|
+
let { t: g } = f(), C = () => typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `id-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`, E = ve({
|
|
98
98
|
defaultValues: {
|
|
99
99
|
title: l?.title || "",
|
|
100
100
|
description: l?.description || "",
|
|
@@ -126,7 +126,7 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
126
126
|
l?.id && c && c(l.id);
|
|
127
127
|
}, [k, j] = N({}), M = () => {
|
|
128
128
|
let e = {
|
|
129
|
-
id:
|
|
129
|
+
id: C(),
|
|
130
130
|
title: "Checklist",
|
|
131
131
|
items: []
|
|
132
132
|
};
|
|
@@ -142,7 +142,7 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
142
142
|
let n = (E.getFieldValue("checklists") || []).map((n) => n.id === e ? {
|
|
143
143
|
...n,
|
|
144
144
|
items: [...n.items, {
|
|
145
|
-
id:
|
|
145
|
+
id: C(),
|
|
146
146
|
text: t,
|
|
147
147
|
isChecked: !1
|
|
148
148
|
}]
|
|
@@ -163,19 +163,19 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
163
163
|
}, [R, z] = N(""), [B, V] = N(null), [H, U] = N(""), [W, G] = N(null), ne = () => {
|
|
164
164
|
if (!R.trim()) return;
|
|
165
165
|
let e = {
|
|
166
|
-
id:
|
|
166
|
+
id: C(),
|
|
167
167
|
text: R,
|
|
168
|
-
authorId:
|
|
169
|
-
authorName:
|
|
168
|
+
authorId: h.id,
|
|
169
|
+
authorName: h.name,
|
|
170
170
|
createdAt: /* @__PURE__ */ new Date()
|
|
171
171
|
};
|
|
172
172
|
E.pushFieldValue("comments", e), z("");
|
|
173
173
|
let t = {
|
|
174
|
-
id:
|
|
174
|
+
id: C(),
|
|
175
175
|
type: "comment",
|
|
176
176
|
text: `commented "${R.slice(0, 20)}${R.length > 20 ? "..." : ""}"`,
|
|
177
|
-
userId:
|
|
178
|
-
userName:
|
|
177
|
+
userId: h.id,
|
|
178
|
+
userName: h.name,
|
|
179
179
|
createdAt: /* @__PURE__ */ new Date()
|
|
180
180
|
};
|
|
181
181
|
E.pushFieldValue("activity", t);
|
|
@@ -199,18 +199,18 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
199
199
|
let t = E.getFieldValue("comments") || [];
|
|
200
200
|
E.setFieldValue("comments", t.filter((t) => t.id !== e)), G(null);
|
|
201
201
|
let n = {
|
|
202
|
-
id:
|
|
202
|
+
id: C(),
|
|
203
203
|
type: "delete",
|
|
204
204
|
text: "deleted a comment",
|
|
205
|
-
userId:
|
|
206
|
-
userName:
|
|
205
|
+
userId: h.id,
|
|
206
|
+
userName: h.name,
|
|
207
207
|
createdAt: /* @__PURE__ */ new Date()
|
|
208
208
|
};
|
|
209
209
|
E.pushFieldValue("activity", n);
|
|
210
210
|
}, [q, fe] = N(""), pe = () => {
|
|
211
211
|
if (!q.trim()) return;
|
|
212
212
|
let e = {
|
|
213
|
-
id:
|
|
213
|
+
id: C(),
|
|
214
214
|
title: q,
|
|
215
215
|
isCompleted: !1
|
|
216
216
|
};
|
|
@@ -229,7 +229,7 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
229
229
|
if (!t) return;
|
|
230
230
|
ye(!0), xe(null), await new Promise((e) => setTimeout(e, 1500));
|
|
231
231
|
let n = {
|
|
232
|
-
id:
|
|
232
|
+
id: C(),
|
|
233
233
|
name: t.name,
|
|
234
234
|
url: URL.createObjectURL(t),
|
|
235
235
|
type: t.type.startsWith("image/") ? "image" : "file",
|
|
@@ -238,11 +238,11 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
238
238
|
};
|
|
239
239
|
E.pushFieldValue("attachments", n), ye(!1), J.current && (J.current.value = "");
|
|
240
240
|
let r = {
|
|
241
|
-
id:
|
|
241
|
+
id: C(),
|
|
242
242
|
type: "attachment",
|
|
243
243
|
text: `attached ${t.name}`,
|
|
244
|
-
userId:
|
|
245
|
-
userName:
|
|
244
|
+
userId: h.id,
|
|
245
|
+
userName: h.name,
|
|
246
246
|
createdAt: /* @__PURE__ */ new Date()
|
|
247
247
|
};
|
|
248
248
|
E.pushFieldValue("activity", r);
|
|
@@ -250,11 +250,11 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
250
250
|
let t = E.getFieldValue("attachments") || [];
|
|
251
251
|
E.setFieldValue("attachments", t.filter((t) => t.id !== e));
|
|
252
252
|
let n = {
|
|
253
|
-
id:
|
|
253
|
+
id: C(),
|
|
254
254
|
type: "delete",
|
|
255
255
|
text: "removed an attachment",
|
|
256
|
-
userId:
|
|
257
|
-
userName:
|
|
256
|
+
userId: h.id,
|
|
257
|
+
userName: h.name,
|
|
258
258
|
createdAt: /* @__PURE__ */ new Date()
|
|
259
259
|
};
|
|
260
260
|
E.pushFieldValue("activity", n);
|
|
@@ -274,12 +274,12 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
274
274
|
children: [/* @__PURE__ */ Y(o, {
|
|
275
275
|
htmlFor: "title",
|
|
276
276
|
className: "text-right",
|
|
277
|
-
children:
|
|
277
|
+
children: g("common.title")
|
|
278
278
|
}), /* @__PURE__ */ Y(n, {
|
|
279
279
|
id: "title",
|
|
280
280
|
value: e.state.value,
|
|
281
281
|
onChange: (t) => e.handleChange(t.target.value),
|
|
282
|
-
placeholder:
|
|
282
|
+
placeholder: g("kanban.cardTitlePlaceholder"),
|
|
283
283
|
className: "text-lg font-semibold"
|
|
284
284
|
})]
|
|
285
285
|
})
|
|
@@ -289,10 +289,10 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
289
289
|
className: "w-[200px]",
|
|
290
290
|
children: /* @__PURE__ */ Y(E.Field, {
|
|
291
291
|
name: "columnId",
|
|
292
|
-
children: (e) => /* @__PURE__ */ X(
|
|
292
|
+
children: (e) => /* @__PURE__ */ X(x, {
|
|
293
293
|
value: e.state.value,
|
|
294
294
|
onValueChange: (t) => e.handleChange(t),
|
|
295
|
-
children: [/* @__PURE__ */ Y(
|
|
295
|
+
children: [/* @__PURE__ */ Y(v, { children: /* @__PURE__ */ Y(_, { placeholder: "Status" }) }), /* @__PURE__ */ Y(y, { children: u.map((e) => /* @__PURE__ */ Y(b, {
|
|
296
296
|
value: e.id,
|
|
297
297
|
children: e.name
|
|
298
298
|
}, e.id)) })]
|
|
@@ -312,23 +312,23 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
312
312
|
name: "priority",
|
|
313
313
|
children: (e) => /* @__PURE__ */ X("div", {
|
|
314
314
|
className: "space-y-2",
|
|
315
|
-
children: [/* @__PURE__ */ Y(o, { children: "Priority" }), /* @__PURE__ */ X(
|
|
315
|
+
children: [/* @__PURE__ */ Y(o, { children: "Priority" }), /* @__PURE__ */ X(x, {
|
|
316
316
|
value: e.state.value,
|
|
317
317
|
onValueChange: (t) => e.handleChange(t),
|
|
318
|
-
children: [/* @__PURE__ */ Y(
|
|
319
|
-
/* @__PURE__ */ Y(
|
|
318
|
+
children: [/* @__PURE__ */ Y(v, { children: /* @__PURE__ */ Y(_, { placeholder: "Priority" }) }), /* @__PURE__ */ X(y, { children: [
|
|
319
|
+
/* @__PURE__ */ Y(b, {
|
|
320
320
|
value: "low",
|
|
321
321
|
children: "Low"
|
|
322
322
|
}),
|
|
323
|
-
/* @__PURE__ */ Y(
|
|
323
|
+
/* @__PURE__ */ Y(b, {
|
|
324
324
|
value: "medium",
|
|
325
325
|
children: "Medium"
|
|
326
326
|
}),
|
|
327
|
-
/* @__PURE__ */ Y(
|
|
327
|
+
/* @__PURE__ */ Y(b, {
|
|
328
328
|
value: "high",
|
|
329
329
|
children: "High"
|
|
330
330
|
}),
|
|
331
|
-
/* @__PURE__ */ Y(
|
|
331
|
+
/* @__PURE__ */ Y(b, {
|
|
332
332
|
value: "critical",
|
|
333
333
|
children: "Critical"
|
|
334
334
|
})
|
|
@@ -364,16 +364,16 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
364
364
|
name: "description",
|
|
365
365
|
children: (e) => /* @__PURE__ */ X("div", {
|
|
366
366
|
className: "space-y-2",
|
|
367
|
-
children: [/* @__PURE__ */ Y(o, { children: "Description" }), /* @__PURE__ */ Y(
|
|
367
|
+
children: [/* @__PURE__ */ Y(o, { children: "Description" }), /* @__PURE__ */ Y(m, {
|
|
368
368
|
value: e.state.value || "",
|
|
369
369
|
onChange: (t) => e.handleChange(t.target.value),
|
|
370
370
|
className: "min-h-[150px]"
|
|
371
371
|
})]
|
|
372
372
|
})
|
|
373
373
|
}),
|
|
374
|
-
|
|
374
|
+
p.length > 0 && /* @__PURE__ */ Y("div", {
|
|
375
375
|
className: "grid grid-cols-1 md:grid-cols-2 gap-4 border-t pt-4",
|
|
376
|
-
children:
|
|
376
|
+
children: p.map((e) => /* @__PURE__ */ Y(E.Field, {
|
|
377
377
|
name: `customFieldValues.${e.id}`,
|
|
378
378
|
children: (t) => /* @__PURE__ */ X("div", {
|
|
379
379
|
className: "space-y-2",
|
|
@@ -393,17 +393,17 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
393
393
|
setDate: (e) => t.handleChange(e),
|
|
394
394
|
mode: "date"
|
|
395
395
|
}),
|
|
396
|
-
e.type === "select" && /* @__PURE__ */ X(
|
|
396
|
+
e.type === "select" && /* @__PURE__ */ X(x, {
|
|
397
397
|
value: t.state.value || "",
|
|
398
398
|
onValueChange: (e) => t.handleChange(e),
|
|
399
|
-
children: [/* @__PURE__ */ Y(
|
|
399
|
+
children: [/* @__PURE__ */ Y(v, { children: /* @__PURE__ */ Y(_, { placeholder: "Select..." }) }), /* @__PURE__ */ Y(y, { children: e.options?.map((e) => /* @__PURE__ */ Y(b, {
|
|
400
400
|
value: e,
|
|
401
401
|
children: e
|
|
402
402
|
}, e)) })]
|
|
403
403
|
}),
|
|
404
404
|
e.type === "checkbox" && /* @__PURE__ */ X("div", {
|
|
405
405
|
className: "flex items-center space-x-2",
|
|
406
|
-
children: [/* @__PURE__ */ Y(
|
|
406
|
+
children: [/* @__PURE__ */ Y(S, {
|
|
407
407
|
checked: !!t.state.value,
|
|
408
408
|
onCheckedChange: (e) => t.handleChange(!!e)
|
|
409
409
|
}), /* @__PURE__ */ Y("span", {
|
|
@@ -454,7 +454,7 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
454
454
|
children: [e.state.value?.map((e) => /* @__PURE__ */ X("div", {
|
|
455
455
|
className: "flex items-center gap-2 border p-3 rounded-md",
|
|
456
456
|
children: [
|
|
457
|
-
/* @__PURE__ */ Y(
|
|
457
|
+
/* @__PURE__ */ Y(S, {
|
|
458
458
|
checked: e.isCompleted,
|
|
459
459
|
onCheckedChange: () => he(e.id)
|
|
460
460
|
}),
|
|
@@ -532,7 +532,7 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
532
532
|
className: "space-y-2",
|
|
533
533
|
children: e.items.map((t) => /* @__PURE__ */ X("div", {
|
|
534
534
|
className: "flex items-center gap-2",
|
|
535
|
-
children: [/* @__PURE__ */ Y(
|
|
535
|
+
children: [/* @__PURE__ */ Y(S, {
|
|
536
536
|
checked: t.isChecked,
|
|
537
537
|
onCheckedChange: () => ee(e.id, t.id)
|
|
538
538
|
}), /* @__PURE__ */ Y("span", {
|
|
@@ -660,7 +660,7 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
660
660
|
}),
|
|
661
661
|
B === e.id ? /* @__PURE__ */ X("div", {
|
|
662
662
|
className: "flex flex-col gap-2",
|
|
663
|
-
children: [/* @__PURE__ */ Y(
|
|
663
|
+
children: [/* @__PURE__ */ Y(m, {
|
|
664
664
|
value: H,
|
|
665
665
|
onChange: (e) => U(e.target.value),
|
|
666
666
|
onKeyDown: (e) => {
|
|
@@ -740,10 +740,10 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
740
740
|
className: "flex gap-2",
|
|
741
741
|
children: [/* @__PURE__ */ Y(a, {
|
|
742
742
|
className: "w-8 h-8",
|
|
743
|
-
children: /* @__PURE__ */ Y(r, { children:
|
|
743
|
+
children: /* @__PURE__ */ Y(r, { children: h?.name?.[0] || "U" })
|
|
744
744
|
}), /* @__PURE__ */ X("div", {
|
|
745
745
|
className: "flex-1 space-y-2",
|
|
746
|
-
children: [/* @__PURE__ */ Y(
|
|
746
|
+
children: [/* @__PURE__ */ Y(m, {
|
|
747
747
|
value: R,
|
|
748
748
|
onChange: (e) => z(e.target.value),
|
|
749
749
|
placeholder: "Write a comment...",
|
|
@@ -799,7 +799,7 @@ var ze = ({ isOpen: e, onClose: i, onSave: s, onDelete: c, card: l, columns: u =
|
|
|
799
799
|
})
|
|
800
800
|
]
|
|
801
801
|
});
|
|
802
|
-
return /* @__PURE__ */ X(
|
|
802
|
+
return /* @__PURE__ */ X(w, {
|
|
803
803
|
isOpen: e,
|
|
804
804
|
onClose: i,
|
|
805
805
|
title: we ? "Edit Card" : "New Card",
|
|
@@ -1024,14 +1024,14 @@ var Ue = {
|
|
|
1024
1024
|
return De(n) ? Ee(n, t) : "";
|
|
1025
1025
|
},
|
|
1026
1026
|
isValidDate: (e) => De(new Date(e))
|
|
1027
|
-
}, We = ({ card: t, onClick: n, onDoubleClick: o, isDragging: s, isHighlighted: c, enableTooltip: l, tooltipTemplate: u, customFields: d, slots: f, slotProps: p, className: m, dir:
|
|
1028
|
-
let
|
|
1027
|
+
}, We = ({ card: t, onClick: n, onDoubleClick: o, isDragging: s, isHighlighted: c, enableTooltip: l, tooltipTemplate: u, customFields: d, slots: f, slotProps: p, className: m, dir: g }) => {
|
|
1028
|
+
let _ = g === "rtl", { attributes: v, listeners: y, setNodeRef: b, transform: x, transition: S, isDragging: w } = Me({
|
|
1029
1029
|
id: t.id,
|
|
1030
1030
|
data: {
|
|
1031
1031
|
type: "card",
|
|
1032
1032
|
card: t
|
|
1033
1033
|
}
|
|
1034
|
-
}), T = s ||
|
|
1034
|
+
}), T = s || w, E = {
|
|
1035
1035
|
transform: ke.Translate.toString(x),
|
|
1036
1036
|
transition: S
|
|
1037
1037
|
}, D = {
|
|
@@ -1139,7 +1139,7 @@ var Ue = {
|
|
|
1139
1139
|
})
|
|
1140
1140
|
})]
|
|
1141
1141
|
}), t.dueDate && /* @__PURE__ */ X("div", {
|
|
1142
|
-
className: e("flex items-center gap-1 text-xs text-muted-foreground",
|
|
1142
|
+
className: e("flex items-center gap-1 text-xs text-muted-foreground", _ ? "mr-auto" : "ml-auto"),
|
|
1143
1143
|
children: [/* @__PURE__ */ Y(R, { className: "w-3 h-3" }), /* @__PURE__ */ Y("span", { children: Ue.formatDate(t.dueDate) })]
|
|
1144
1144
|
})]
|
|
1145
1145
|
})
|
|
@@ -1165,10 +1165,10 @@ var Ue = {
|
|
|
1165
1165
|
}), N = f?.cardContent, P = N ? /* @__PURE__ */ Y(N, {
|
|
1166
1166
|
card: t,
|
|
1167
1167
|
...p?.cardContent
|
|
1168
|
-
}) : M, F = /* @__PURE__ */ Y(
|
|
1168
|
+
}) : M, F = /* @__PURE__ */ Y(h, {
|
|
1169
1169
|
ref: b,
|
|
1170
1170
|
style: E,
|
|
1171
|
-
...
|
|
1171
|
+
...v,
|
|
1172
1172
|
...y,
|
|
1173
1173
|
onClick: () => n?.(t),
|
|
1174
1174
|
onDoubleClick: () => o?.(t),
|
|
@@ -1181,7 +1181,7 @@ var Ue = {
|
|
|
1181
1181
|
card: t,
|
|
1182
1182
|
defaultContent: F,
|
|
1183
1183
|
...p?.card
|
|
1184
|
-
}) : /* @__PURE__ */ Y(
|
|
1184
|
+
}) : /* @__PURE__ */ Y(C, {
|
|
1185
1185
|
enabled: l,
|
|
1186
1186
|
content: u ? u(t) : null,
|
|
1187
1187
|
children: F
|
|
@@ -1189,7 +1189,7 @@ var Ue = {
|
|
|
1189
1189
|
};
|
|
1190
1190
|
We.displayName = "KanbanCard";
|
|
1191
1191
|
var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
1192
|
-
let r = M(null), i =
|
|
1192
|
+
let r = M(null), i = Z({
|
|
1193
1193
|
count: e.length,
|
|
1194
1194
|
getScrollElement: () => r.current,
|
|
1195
1195
|
estimateSize: () => t,
|
|
@@ -1201,13 +1201,13 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1201
1201
|
virtualItems: i.getVirtualItems(),
|
|
1202
1202
|
totalSize: i.getTotalSize()
|
|
1203
1203
|
};
|
|
1204
|
-
}, qe = ({ column: n, cards: r, onCardClick: i, onCardDoubleClick: a, onCardDragStart: o, onAddCard:
|
|
1205
|
-
let A = E === "rtl", { t: j } =
|
|
1204
|
+
}, qe = ({ column: n, cards: r, onCardClick: i, onCardDoubleClick: a, onCardDragStart: o, onAddCard: m, onToggleCollapse: g, onDeleteColumn: _, onUpdateColumn: v, onColumnClick: y, selectedColumnId: b, draggedCardId: x, highlightedCardId: S, isDropTarget: C, customFields: w, className: T, dir: E, slots: O, slotProps: k }) => {
|
|
1205
|
+
let A = E === "rtl", { t: j } = f(), [M, N] = D.useState(!1), P = O?.card || Ge, [F, I] = D.useState(n.name), L = D.useRef(null);
|
|
1206
1206
|
D.useEffect(() => {
|
|
1207
1207
|
M && L.current && (L.current.focus(), L.current.select());
|
|
1208
1208
|
}, [M]);
|
|
1209
1209
|
let ee = () => {
|
|
1210
|
-
F.trim() && F !== n.name ?
|
|
1210
|
+
F.trim() && F !== n.name ? v?.(n.id, { name: F }) : I(n.name), N(!1);
|
|
1211
1211
|
}, R = (e) => {
|
|
1212
1212
|
e.key === "Enter" ? ee() : e.key === "Escape" && (I(n.name), N(!1));
|
|
1213
1213
|
}, z = n.wipLimit && r.length > n.wipLimit, B = n.wipLimit && r.length === n.wipLimit, { setNodeRef: U, attributes: te, listeners: W, transform: G, transition: ne, isDragging: re } = Me({
|
|
@@ -1217,15 +1217,15 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1217
1217
|
column: n
|
|
1218
1218
|
}
|
|
1219
1219
|
});
|
|
1220
|
-
return /* @__PURE__ */ X(
|
|
1220
|
+
return /* @__PURE__ */ X(h, {
|
|
1221
1221
|
ref: U,
|
|
1222
1222
|
style: {
|
|
1223
1223
|
transform: ke.Translate.toString(G),
|
|
1224
1224
|
transition: ne
|
|
1225
1225
|
},
|
|
1226
|
-
className: e("flex flex-col w-80 shrink-0 transition-all duration-200",
|
|
1227
|
-
onClick: () =>
|
|
1228
|
-
children: [/* @__PURE__ */ X(
|
|
1226
|
+
className: e("flex flex-col w-80 shrink-0 transition-all duration-200", b === n.id ? "ring-2 ring-primary border-primary" : "", re ? "opacity-50" : "", C ? "ring-2 ring-primary/70 border-primary/50 bg-primary/5" : "", T),
|
|
1227
|
+
onClick: () => y?.(n.id),
|
|
1228
|
+
children: [/* @__PURE__ */ X(d, {
|
|
1229
1229
|
className: "pb-3",
|
|
1230
1230
|
onDoubleClick: () => N(!0),
|
|
1231
1231
|
children: [/* @__PURE__ */ X("div", {
|
|
@@ -1243,7 +1243,7 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1243
1243
|
variant: "ghost",
|
|
1244
1244
|
size: "sm",
|
|
1245
1245
|
className: "h-6 w-6 p-0",
|
|
1246
|
-
onClick: () =>
|
|
1246
|
+
onClick: () => g?.(n.id),
|
|
1247
1247
|
children: n.isCollapsed ? A ? /* @__PURE__ */ Y(H, { className: "h-4 w-4 rotate-180" }) : /* @__PURE__ */ Y(H, { className: "h-4 w-4" }) : /* @__PURE__ */ Y(V, { className: "h-4 w-4" })
|
|
1248
1248
|
}),
|
|
1249
1249
|
/* @__PURE__ */ X("div", {
|
|
@@ -1284,14 +1284,14 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1284
1284
|
align: "end",
|
|
1285
1285
|
children: /* @__PURE__ */ X(s, {
|
|
1286
1286
|
className: "text-red-600 focus:text-red-600 focus:bg-red-50",
|
|
1287
|
-
onClick: () =>
|
|
1287
|
+
onClick: () => _?.(n.id),
|
|
1288
1288
|
children: [/* @__PURE__ */ Y(me, { className: "h-4 w-4 me-2" }), j("delete_column") || "Delete Column"]
|
|
1289
1289
|
})
|
|
1290
1290
|
})] }), /* @__PURE__ */ Y(t, {
|
|
1291
1291
|
variant: "ghost",
|
|
1292
1292
|
size: "sm",
|
|
1293
1293
|
className: "h-6 w-6 p-0",
|
|
1294
|
-
onClick: () =>
|
|
1294
|
+
onClick: () => m?.(n.id),
|
|
1295
1295
|
children: /* @__PURE__ */ Y(ue, { className: "h-4 w-4" })
|
|
1296
1296
|
})]
|
|
1297
1297
|
})]
|
|
@@ -1313,7 +1313,7 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1313
1313
|
estimateSize: 120,
|
|
1314
1314
|
overscan: 5
|
|
1315
1315
|
});
|
|
1316
|
-
return /* @__PURE__ */ X(
|
|
1316
|
+
return /* @__PURE__ */ X(p, {
|
|
1317
1317
|
ref: e,
|
|
1318
1318
|
className: "flex-1 overflow-y-auto max-h-[calc(100vh-200px)]",
|
|
1319
1319
|
children: [/* @__PURE__ */ Y("div", {
|
|
@@ -1346,9 +1346,9 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1346
1346
|
onClick: i,
|
|
1347
1347
|
onDoubleClick: a,
|
|
1348
1348
|
onDragStart: o,
|
|
1349
|
-
isDragging:
|
|
1350
|
-
isHighlighted:
|
|
1351
|
-
customFields:
|
|
1349
|
+
isDragging: x === n.id,
|
|
1350
|
+
isHighlighted: S === n.id,
|
|
1351
|
+
customFields: w,
|
|
1352
1352
|
dir: E,
|
|
1353
1353
|
...k?.card
|
|
1354
1354
|
})
|
|
@@ -1361,7 +1361,7 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1361
1361
|
})]
|
|
1362
1362
|
});
|
|
1363
1363
|
}
|
|
1364
|
-
return /* @__PURE__ */ X(
|
|
1364
|
+
return /* @__PURE__ */ X(p, {
|
|
1365
1365
|
className: "flex-1 overflow-y-auto max-h-[calc(100vh-200px)] space-y-2",
|
|
1366
1366
|
children: [/* @__PURE__ */ Y(Ae, {
|
|
1367
1367
|
items: r.map((e) => e.id),
|
|
@@ -1371,21 +1371,21 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1371
1371
|
onClick: i,
|
|
1372
1372
|
onDoubleClick: a,
|
|
1373
1373
|
onDragStart: o,
|
|
1374
|
-
isDragging:
|
|
1375
|
-
isHighlighted:
|
|
1376
|
-
customFields:
|
|
1374
|
+
isDragging: x === e.id,
|
|
1375
|
+
isHighlighted: S === e.id,
|
|
1376
|
+
customFields: w,
|
|
1377
1377
|
dir: E,
|
|
1378
1378
|
...k?.card
|
|
1379
1379
|
}, e.id))
|
|
1380
1380
|
}), r.length === 0 && /* @__PURE__ */ Y("div", {
|
|
1381
|
-
className: e("flex h-32 items-center justify-center rounded-lg border border-dashed text-sm transition-all duration-150",
|
|
1382
|
-
children:
|
|
1381
|
+
className: e("flex h-32 items-center justify-center rounded-lg border border-dashed text-sm transition-all duration-150", C ? "border-primary/60 bg-primary/5 text-primary/70" : "text-muted-foreground"),
|
|
1382
|
+
children: C ? "✦ Drop here" : j("no_cards")
|
|
1383
1383
|
})]
|
|
1384
1384
|
});
|
|
1385
1385
|
})()]
|
|
1386
1386
|
});
|
|
1387
1387
|
}, Je = ({ swimlaneId: t, columnId: n, children: r, className: i }) => {
|
|
1388
|
-
let { isOver: a, setNodeRef: o } =
|
|
1388
|
+
let { isOver: a, setNodeRef: o } = Se({
|
|
1389
1389
|
id: `swimlane-cell-${t}-${n}`,
|
|
1390
1390
|
data: {
|
|
1391
1391
|
type: "swimlane-cell",
|
|
@@ -1398,10 +1398,10 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1398
1398
|
className: e(i, a && "bg-primary/5 transition-colors"),
|
|
1399
1399
|
children: r
|
|
1400
1400
|
});
|
|
1401
|
-
}, Ye = ({ swimlane: n, columns: r, cards: i, onCardClick: a, onCardDoubleClick: o, onCardDragStart: s, onCardDragEnd: c, onToggleCollapse: l, draggedCardId: u, highlightedCardId: d, customFields:
|
|
1402
|
-
let
|
|
1401
|
+
}, Ye = ({ swimlane: n, columns: r, cards: i, onCardClick: a, onCardDoubleClick: o, onCardDragStart: s, onCardDragEnd: c, onToggleCollapse: l, draggedCardId: u, highlightedCardId: d, customFields: p, className: m, dir: h, slots: g, slotProps: _ }) => {
|
|
1402
|
+
let v = h === "rtl", { t: y } = f(), b = g?.card || Ge;
|
|
1403
1403
|
return /* @__PURE__ */ X("div", {
|
|
1404
|
-
className: e("flex flex-col border rounded-lg bg-card text-card-foreground shadow-sm mb-4",
|
|
1404
|
+
className: e("flex flex-col border rounded-lg bg-card text-card-foreground shadow-sm mb-4", m),
|
|
1405
1405
|
children: [/* @__PURE__ */ X("div", {
|
|
1406
1406
|
className: "flex items-center gap-2 p-3 border-b bg-muted/30",
|
|
1407
1407
|
children: [
|
|
@@ -1410,7 +1410,7 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1410
1410
|
size: "sm",
|
|
1411
1411
|
className: "h-6 w-6 p-0",
|
|
1412
1412
|
onClick: () => l?.(n.id),
|
|
1413
|
-
children: n.isCollapsed ?
|
|
1413
|
+
children: n.isCollapsed ? v ? /* @__PURE__ */ Y(H, { className: "h-4 w-4 rotate-180" }) : /* @__PURE__ */ Y(H, { className: "h-4 w-4" }) : /* @__PURE__ */ Y(V, { className: "h-4 w-4" })
|
|
1414
1414
|
}),
|
|
1415
1415
|
/* @__PURE__ */ Y("h3", {
|
|
1416
1416
|
className: "font-semibold text-sm",
|
|
@@ -1422,13 +1422,13 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1422
1422
|
"(",
|
|
1423
1423
|
i.length,
|
|
1424
1424
|
" ",
|
|
1425
|
-
|
|
1425
|
+
y("items"),
|
|
1426
1426
|
")"
|
|
1427
1427
|
]
|
|
1428
1428
|
})
|
|
1429
1429
|
]
|
|
1430
1430
|
}), !n.isCollapsed && /* @__PURE__ */ Y("div", {
|
|
1431
|
-
className: e("flex divide-x",
|
|
1431
|
+
className: e("flex divide-x", v && "divide-x-reverse"),
|
|
1432
1432
|
children: r.map((e) => {
|
|
1433
1433
|
let t = i.filter((t) => t.columnId === e.id);
|
|
1434
1434
|
return /* @__PURE__ */ Y(Je, {
|
|
@@ -1437,7 +1437,7 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1437
1437
|
className: "flex-1 min-w-[280px] p-2 min-h-[100px]",
|
|
1438
1438
|
children: /* @__PURE__ */ Y("div", {
|
|
1439
1439
|
className: "space-y-2",
|
|
1440
|
-
children: t.map((e) => /* @__PURE__ */ Y(
|
|
1440
|
+
children: t.map((e) => /* @__PURE__ */ Y(b, {
|
|
1441
1441
|
card: e,
|
|
1442
1442
|
onClick: a,
|
|
1443
1443
|
onDoubleClick: o,
|
|
@@ -1445,9 +1445,9 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1445
1445
|
onDragEnd: c,
|
|
1446
1446
|
isDragging: u === e.id,
|
|
1447
1447
|
isHighlighted: d === e.id,
|
|
1448
|
-
customFields:
|
|
1449
|
-
dir:
|
|
1450
|
-
...
|
|
1448
|
+
customFields: p,
|
|
1449
|
+
dir: h,
|
|
1450
|
+
..._?.card
|
|
1451
1451
|
}, e.id))
|
|
1452
1452
|
})
|
|
1453
1453
|
}, e.id);
|
|
@@ -1505,7 +1505,7 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1505
1505
|
r,
|
|
1506
1506
|
n,
|
|
1507
1507
|
t
|
|
1508
|
-
]),
|
|
1508
|
+
]), d = k((e) => {
|
|
1509
1509
|
let r = n && n.length > 0, i = {
|
|
1510
1510
|
title: e.title || "New Card",
|
|
1511
1511
|
startDate: e.start,
|
|
@@ -1520,7 +1520,7 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1520
1520
|
n,
|
|
1521
1521
|
t,
|
|
1522
1522
|
a
|
|
1523
|
-
]),
|
|
1523
|
+
]), f = k((e) => {
|
|
1524
1524
|
let t = e.originalCard;
|
|
1525
1525
|
t && i?.(t);
|
|
1526
1526
|
}, [i]);
|
|
@@ -1530,22 +1530,22 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1530
1530
|
height: "100%",
|
|
1531
1531
|
minHeight: "600px"
|
|
1532
1532
|
},
|
|
1533
|
-
children: /* @__PURE__ */ Y(
|
|
1533
|
+
children: /* @__PURE__ */ Y(g, {
|
|
1534
1534
|
events: l,
|
|
1535
1535
|
resources: c,
|
|
1536
1536
|
selectedDate: /* @__PURE__ */ new Date(),
|
|
1537
1537
|
view: "TimelineMonth",
|
|
1538
1538
|
views: ["TimelineWeek", "TimelineMonth"],
|
|
1539
1539
|
onEventChange: u,
|
|
1540
|
-
onEventCreate:
|
|
1541
|
-
onEventClick:
|
|
1540
|
+
onEventCreate: d,
|
|
1541
|
+
onEventClick: f,
|
|
1542
1542
|
showHeaderBar: !0,
|
|
1543
1543
|
showResourceHeaders: !0,
|
|
1544
1544
|
dir: s
|
|
1545
1545
|
})
|
|
1546
1546
|
});
|
|
1547
|
-
}, Qe = ({ board: n, onCardClick: r, onCardDoubleClick: i, onCardDragStart: a, onCardDragEnd: o, onCardDrop: s, onAddCard: c, onToggleColumnCollapse: l, onToggleSwimlaneCollapse: u, onAddColumn: d, onDeleteColumn:
|
|
1548
|
-
let T =
|
|
1547
|
+
}, Qe = ({ board: n, onCardClick: r, onCardDoubleClick: i, onCardDragStart: a, onCardDragEnd: o, onCardDrop: s, onAddCard: c, onToggleColumnCollapse: l, onToggleSwimlaneCollapse: u, onAddColumn: d, onDeleteColumn: p, onUpdateColumn: m, onColumnClick: h, onCreateCard: g, selectedColumnId: _, draggedCardId: v, filteredCards: y, slots: b, slotProps: x, className: S, view: C = "standard", dir: w }) => {
|
|
1548
|
+
let T = y || n.cards, { t: E } = f(), [D, O] = N(null), [k, A] = N(null);
|
|
1549
1549
|
return C === "timeline" ? /* @__PURE__ */ Y(Ze, {
|
|
1550
1550
|
cards: T,
|
|
1551
1551
|
columns: n.columns,
|
|
@@ -1554,11 +1554,11 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1554
1554
|
t === "move" && s(e.columnId, e.swimlaneId);
|
|
1555
1555
|
} : void 0,
|
|
1556
1556
|
onCardClick: r,
|
|
1557
|
-
onCardCreate:
|
|
1557
|
+
onCardCreate: g,
|
|
1558
1558
|
className: S,
|
|
1559
1559
|
dir: w
|
|
1560
|
-
}) : /* @__PURE__ */ X(
|
|
1561
|
-
sensors: Ce(
|
|
1560
|
+
}) : /* @__PURE__ */ X(ye, {
|
|
1561
|
+
sensors: we(Ce(xe, { activationConstraint: { distance: 5 } })),
|
|
1562
1562
|
onDragStart: (e) => {
|
|
1563
1563
|
let { active: t } = e;
|
|
1564
1564
|
t.data.current?.type === "card" && (O(t.data.current.card), a?.(t.data.current.card));
|
|
@@ -1596,11 +1596,11 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1596
1596
|
className: e("flex flex-col p-4 overflow-y-auto h-full", S),
|
|
1597
1597
|
children: /* @__PURE__ */ X(Ae, {
|
|
1598
1598
|
items: T.map((e) => e.id),
|
|
1599
|
-
children: [n.swimlanes.sort((e, t) => e.position - t.position).map((e) => {
|
|
1599
|
+
children: [[...n.swimlanes].sort((e, t) => e.position - t.position).map((e) => {
|
|
1600
1600
|
let t = T.filter((t) => t.swimlaneId === e.id);
|
|
1601
1601
|
return /* @__PURE__ */ Y(Ye, {
|
|
1602
1602
|
swimlane: e,
|
|
1603
|
-
columns: n.columns.sort((e, t) => e.position - t.position),
|
|
1603
|
+
columns: [...n.columns].sort((e, t) => e.position - t.position),
|
|
1604
1604
|
cards: t,
|
|
1605
1605
|
onCardClick: r,
|
|
1606
1606
|
onCardDoubleClick: i,
|
|
@@ -1608,10 +1608,10 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1608
1608
|
onCardDragEnd: o,
|
|
1609
1609
|
onDrop: s,
|
|
1610
1610
|
onToggleCollapse: u,
|
|
1611
|
-
draggedCardId:
|
|
1611
|
+
draggedCardId: v,
|
|
1612
1612
|
customFields: n.customFields,
|
|
1613
|
-
slots:
|
|
1614
|
-
slotProps:
|
|
1613
|
+
slots: b,
|
|
1614
|
+
slotProps: x,
|
|
1615
1615
|
dir: w
|
|
1616
1616
|
}, e.id);
|
|
1617
1617
|
}), T.some((e) => !e.swimlaneId) && /* @__PURE__ */ Y(Ye, {
|
|
@@ -1622,7 +1622,7 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1622
1622
|
position: 9999,
|
|
1623
1623
|
isCollapsed: !1
|
|
1624
1624
|
},
|
|
1625
|
-
columns: n.columns.sort((e, t) => e.position - t.position),
|
|
1625
|
+
columns: [...n.columns].sort((e, t) => e.position - t.position),
|
|
1626
1626
|
cards: T.filter((e) => !e.swimlaneId),
|
|
1627
1627
|
onCardClick: r,
|
|
1628
1628
|
onCardDoubleClick: i,
|
|
@@ -1630,10 +1630,10 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1630
1630
|
onCardDragEnd: o,
|
|
1631
1631
|
onDrop: s,
|
|
1632
1632
|
onToggleCollapse: () => {},
|
|
1633
|
-
draggedCardId:
|
|
1633
|
+
draggedCardId: v,
|
|
1634
1634
|
customFields: n.customFields,
|
|
1635
|
-
slots:
|
|
1636
|
-
slotProps:
|
|
1635
|
+
slots: b,
|
|
1636
|
+
slotProps: x,
|
|
1637
1637
|
dir: w
|
|
1638
1638
|
})]
|
|
1639
1639
|
})
|
|
@@ -1642,7 +1642,7 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1642
1642
|
children: [/* @__PURE__ */ Y(Ae, {
|
|
1643
1643
|
items: n.columns.map((e) => e.id),
|
|
1644
1644
|
strategy: je,
|
|
1645
|
-
children: n.columns.sort((e, t) => e.position - t.position).map((e) => /* @__PURE__ */ Y(qe, {
|
|
1645
|
+
children: [...n.columns].sort((e, t) => e.position - t.position).map((e) => /* @__PURE__ */ Y(qe, {
|
|
1646
1646
|
column: e,
|
|
1647
1647
|
cards: T.filter((t) => t.columnId === e.id),
|
|
1648
1648
|
onCardClick: r,
|
|
@@ -1652,15 +1652,15 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1652
1652
|
onDrop: s,
|
|
1653
1653
|
onAddCard: c,
|
|
1654
1654
|
onToggleCollapse: l,
|
|
1655
|
-
onDeleteColumn:
|
|
1656
|
-
onUpdateColumn:
|
|
1657
|
-
onColumnClick:
|
|
1658
|
-
selectedColumnId:
|
|
1659
|
-
draggedCardId:
|
|
1655
|
+
onDeleteColumn: p,
|
|
1656
|
+
onUpdateColumn: m,
|
|
1657
|
+
onColumnClick: h,
|
|
1658
|
+
selectedColumnId: _,
|
|
1659
|
+
draggedCardId: v,
|
|
1660
1660
|
isDropTarget: k === e.id,
|
|
1661
1661
|
customFields: n.customFields,
|
|
1662
|
-
slots:
|
|
1663
|
-
slotProps:
|
|
1662
|
+
slots: b,
|
|
1663
|
+
slotProps: x,
|
|
1664
1664
|
dir: w
|
|
1665
1665
|
}, e.id))
|
|
1666
1666
|
}), d && /* @__PURE__ */ Y("div", {
|
|
@@ -1672,7 +1672,7 @@ var Ge = O(We), Ke = ({ cards: e, estimateSize: t = 120, overscan: n = 5 }) => {
|
|
|
1672
1672
|
children: [/* @__PURE__ */ Y(ue, { className: "me-2 h-4 w-4" }), E("add_column") || "Add Column"]
|
|
1673
1673
|
})
|
|
1674
1674
|
})]
|
|
1675
|
-
}), /* @__PURE__ */ Y(
|
|
1675
|
+
}), /* @__PURE__ */ Y(be, {
|
|
1676
1676
|
dropAnimation: {
|
|
1677
1677
|
duration: 200,
|
|
1678
1678
|
easing: "ease"
|