@pstdio/ui 0.35.0 → 0.36.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.
- package/dist/{MermaidComponent-DGDnQ6pb.js → MermaidComponent-Cxg7NtjX.js} +2 -2
- package/dist/{MermaidComponent-DGDnQ6pb.js.map → MermaidComponent-Cxg7NtjX.js.map} +1 -1
- package/dist/chat-ui.d.ts +3 -3
- package/dist/chat-ui.js +1 -1
- package/dist/{data-table-stats-row-DNJG8tLZ.js → data-table-stats-row-UuTinYfL.js} +2 -2
- package/dist/{data-table-stats-row-DNJG8tLZ.js.map → data-table-stats-row-UuTinYfL.js.map} +1 -1
- package/dist/data-table.d.ts +32 -1
- package/dist/data-table.js +540 -406
- package/dist/data-table.js.map +1 -1
- package/dist/index.d.ts +17 -21
- package/dist/index.js +861 -907
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +3 -1
- package/dist/kanban-renderer.js +171 -171
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/{param-editor-IJzw1cA2.js → param-editor-I0dKQeeZ.js} +2 -2
- package/dist/{param-editor-IJzw1cA2.js.map → param-editor-I0dKQeeZ.js.map} +1 -1
- package/dist/{param-editor-field-DscIjv8s.js → param-editor-field-CBguLs_b.js} +2 -2
- package/dist/{param-editor-field-DscIjv8s.js.map → param-editor-field-CBguLs_b.js.map} +1 -1
- package/dist/param-editor.js +2 -2
- package/dist/{rich-text-DtQpHBlX.js → rich-text-BgDvOEGH.js} +657 -654
- package/dist/rich-text-BgDvOEGH.js.map +1 -0
- package/dist/rich-text.js +1 -1
- package/dist/{theme-kSkOHzbV.js → theme-0cbWICbg.js} +247 -163
- package/dist/theme-0cbWICbg.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{workspace-badge-CkJ_jTQw.d.ts → workspace-badge-Brm3Xr3m.d.ts} +1 -1
- package/dist/{workspace-badge-9g78pXHS.js → workspace-badge-DrvH8WKV.js} +38 -42
- package/dist/workspace-badge-DrvH8WKV.js.map +1 -0
- package/package.json +2 -2
- package/dist/rich-text-DtQpHBlX.js.map +0 -1
- package/dist/theme-kSkOHzbV.js.map +0 -1
- package/dist/workspace-badge-9g78pXHS.js.map +0 -1
package/dist/kanban-renderer.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as e, t } from "./scroll-area-Cr1lNXAr.js";
|
|
2
2
|
import { s as n, t as r } from "./list-row-De9R2zKU.js";
|
|
3
3
|
import { n as i, s as a } from "./slider-hwHYe98I.js";
|
|
4
|
-
import { o, t as s } from "./workspace-badge-
|
|
4
|
+
import { o, t as s } from "./workspace-badge-DrvH8WKV.js";
|
|
5
5
|
import { t as c } from "./empty-state-3mVV_pV-.js";
|
|
6
|
-
import { $ as l, B as u, G as d, H as f, J as p, K as m,
|
|
7
|
-
import { h as
|
|
8
|
-
import { Badge as
|
|
6
|
+
import { $ as l, B as u, G as d, H as f, J as p, K as m, Q as h, U as g, V as _, W as v, X as y, Y as b, Z as x, _t as S, at as C, ct as w, dt as T, et as E, ft as D, gt as O, ht as k, it as A, lt as j, mt as M, nt as ee, ot as te, p as ne, pt as re, q as N, rt as P, st as ie, tt as ae, ut as F } from "./rich-text-BgDvOEGH.js";
|
|
7
|
+
import { h as I, i as L, r as R, t as oe } from "./param-editor-field-CBguLs_b.js";
|
|
8
|
+
import { Badge as se, Box as z, Button as B, CloseButton as ce, Dialog as V, HStack as H, Icon as U, IconButton as le, Input as ue, Menu as W, Portal as G, Spacer as K, Stack as q, Text as J, Textarea as de, VStack as fe, Wrap as pe } from "@chakra-ui/react";
|
|
9
9
|
import { c as Y } from "react/compiler-runtime";
|
|
10
10
|
import { Fragment as me, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
11
11
|
import { useEffect as he, useRef as ge, useState as Q } from "react";
|
|
@@ -21,7 +21,7 @@ var Te = async (e) => {
|
|
|
21
21
|
let n = Y(26), { column: a, onCreateStart: o, onColumnAction: s } = t, c = a.color ?? "gray", l;
|
|
22
22
|
n[0] === a.icon ? l = n[1] : (l = i(a.icon), n[0] = a.icon, n[1] = l);
|
|
23
23
|
let u;
|
|
24
|
-
n[2] === l ? u = n[3] : (u = /* @__PURE__ */ X(
|
|
24
|
+
n[2] === l ? u = n[3] : (u = /* @__PURE__ */ X(U, {
|
|
25
25
|
"data-testid": "column-status-icon",
|
|
26
26
|
as: l,
|
|
27
27
|
boxSize: "0.875rem",
|
|
@@ -34,51 +34,51 @@ var Te = async (e) => {
|
|
|
34
34
|
children: a.label
|
|
35
35
|
}), n[4] = a.label, n[5] = d);
|
|
36
36
|
let f;
|
|
37
|
-
n[6] === a.items.length ? f = n[7] : (f = /* @__PURE__ */ X(
|
|
37
|
+
n[6] === a.items.length ? f = n[7] : (f = /* @__PURE__ */ X(se, {
|
|
38
38
|
variant: "number",
|
|
39
39
|
size: "xs",
|
|
40
40
|
colorPalette: "gray",
|
|
41
41
|
children: a.items.length
|
|
42
42
|
}), n[6] = a.items.length, n[7] = f);
|
|
43
43
|
let p;
|
|
44
|
-
n[8] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ X(
|
|
44
|
+
n[8] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ X(K, {}), n[8] = p) : p = n[8];
|
|
45
45
|
let m;
|
|
46
46
|
n[9] !== a.canCreate || n[10] !== a.createLabel || n[11] !== a.id || n[12] !== o ? (m = a.canCreate && o && /* @__PURE__ */ X(e, {
|
|
47
47
|
content: a.createLabel ?? "Create new row",
|
|
48
|
-
children: /* @__PURE__ */ X(
|
|
48
|
+
children: /* @__PURE__ */ X(le, {
|
|
49
49
|
size: "2xs",
|
|
50
50
|
variant: "outline",
|
|
51
51
|
onClick: () => o(a.id),
|
|
52
52
|
"aria-label": a.createLabel ?? "Create row",
|
|
53
|
-
children: /* @__PURE__ */ X(
|
|
53
|
+
children: /* @__PURE__ */ X(U, {
|
|
54
54
|
as: Se,
|
|
55
55
|
boxSize: "12px"
|
|
56
56
|
})
|
|
57
57
|
})
|
|
58
58
|
}), n[9] = a.canCreate, n[10] = a.createLabel, n[11] = a.id, n[12] = o, n[13] = m) : m = n[13];
|
|
59
59
|
let h;
|
|
60
|
-
n[14] !== a.actions || n[15] !== a.id || n[16] !== a.label || n[17] !== s ? (h = a.actions.length > 0 && /* @__PURE__ */ Z(
|
|
60
|
+
n[14] !== a.actions || n[15] !== a.id || n[16] !== a.label || n[17] !== s ? (h = a.actions.length > 0 && /* @__PURE__ */ Z(W.Root, { children: [/* @__PURE__ */ X(W.Trigger, {
|
|
61
61
|
asChild: !0,
|
|
62
|
-
children: /* @__PURE__ */ X(
|
|
62
|
+
children: /* @__PURE__ */ X(le, {
|
|
63
63
|
size: "2xs",
|
|
64
64
|
variant: "ghost",
|
|
65
65
|
"aria-label": `Column actions for ${a.label}`,
|
|
66
|
-
children: /* @__PURE__ */ X(
|
|
66
|
+
children: /* @__PURE__ */ X(U, {
|
|
67
67
|
as: be,
|
|
68
68
|
boxSize: "12px"
|
|
69
69
|
})
|
|
70
70
|
})
|
|
71
|
-
}), /* @__PURE__ */ X(
|
|
71
|
+
}), /* @__PURE__ */ X(W.Positioner, { children: /* @__PURE__ */ X(W.Content, {
|
|
72
72
|
minW: "180px",
|
|
73
73
|
bg: "bg",
|
|
74
|
-
children: a.actions.map((e) => /* @__PURE__ */ X(
|
|
74
|
+
children: a.actions.map((e) => /* @__PURE__ */ X(W.Item, {
|
|
75
75
|
value: e.id,
|
|
76
76
|
asChild: !0,
|
|
77
77
|
children: /* @__PURE__ */ X(r, {
|
|
78
78
|
asChild: !0,
|
|
79
79
|
variant: "full-width",
|
|
80
80
|
label: e.label,
|
|
81
|
-
icon: /* @__PURE__ */ X(
|
|
81
|
+
icon: /* @__PURE__ */ X(U, {
|
|
82
82
|
as: e.icon,
|
|
83
83
|
boxSize: "16px"
|
|
84
84
|
}),
|
|
@@ -87,7 +87,7 @@ var Te = async (e) => {
|
|
|
87
87
|
}, e.id))
|
|
88
88
|
}) })] }), n[14] = a.actions, n[15] = a.id, n[16] = a.label, n[17] = s, n[18] = h) : h = n[18];
|
|
89
89
|
let g;
|
|
90
|
-
return n[19] !== c || n[20] !== u || n[21] !== d || n[22] !== f || n[23] !== m || n[24] !== h ? (g = /* @__PURE__ */ Z(
|
|
90
|
+
return n[19] !== c || n[20] !== u || n[21] !== d || n[22] !== f || n[23] !== m || n[24] !== h ? (g = /* @__PURE__ */ Z(H, {
|
|
91
91
|
minH: "1.5rem",
|
|
92
92
|
gap: "2xs",
|
|
93
93
|
alignItems: "center",
|
|
@@ -126,13 +126,13 @@ var Te = async (e) => {
|
|
|
126
126
|
let t;
|
|
127
127
|
t = x ? ke(S, e) : S.includes(e) ? "" : e, a?.(n.attributeId, t);
|
|
128
128
|
}, E;
|
|
129
|
-
t[17] === n ? E = t[18] : (E = n.icon ? /* @__PURE__ */ X(
|
|
129
|
+
t[17] === n ? E = t[18] : (E = n.icon ? /* @__PURE__ */ X(U, {
|
|
130
130
|
as: i(n.icon),
|
|
131
131
|
boxSize: "3.5",
|
|
132
132
|
color: je(n)
|
|
133
133
|
}) : null, t[17] = n, t[18] = E);
|
|
134
134
|
let D;
|
|
135
|
-
t[19] === b ? D = t[20] : (D = b ? /* @__PURE__ */ X(
|
|
135
|
+
t[19] === b ? D = t[20] : (D = b ? /* @__PURE__ */ X(U, {
|
|
136
136
|
as: ve,
|
|
137
137
|
boxSize: "3",
|
|
138
138
|
color: "fg.muted"
|
|
@@ -146,7 +146,7 @@ var Te = async (e) => {
|
|
|
146
146
|
let k = O;
|
|
147
147
|
if (!b) {
|
|
148
148
|
let e;
|
|
149
|
-
t[25] === k ? e = t[26] : (e = /* @__PURE__ */ X(
|
|
149
|
+
t[25] === k ? e = t[26] : (e = /* @__PURE__ */ X(se, {
|
|
150
150
|
variant: "subtle",
|
|
151
151
|
gap: "2xs",
|
|
152
152
|
textStyle: "label/XS/medium",
|
|
@@ -155,9 +155,9 @@ var Te = async (e) => {
|
|
|
155
155
|
}), t[25] = k, t[26] = e), y = e;
|
|
156
156
|
break bb0;
|
|
157
157
|
}
|
|
158
|
-
l =
|
|
158
|
+
l = W.Root, _ = !x, t[27] === k ? v = t[28] : (v = /* @__PURE__ */ X(W.Trigger, {
|
|
159
159
|
asChild: !0,
|
|
160
|
-
children: /* @__PURE__ */ X(
|
|
160
|
+
children: /* @__PURE__ */ X(se, {
|
|
161
161
|
as: "span",
|
|
162
162
|
role: "button",
|
|
163
163
|
tabIndex: 0,
|
|
@@ -171,9 +171,9 @@ var Te = async (e) => {
|
|
|
171
171
|
onKeyDown: $,
|
|
172
172
|
children: k
|
|
173
173
|
})
|
|
174
|
-
}), t[27] = k, t[28] = v), c =
|
|
174
|
+
}), t[27] = k, t[28] = v), c = G, s = W.Positioner, o = W.Content, u = "180px", d = "0", f = "0", p = $, m = $, h = $, g = e.map((e) => {
|
|
175
175
|
let t = S.includes(e.value);
|
|
176
|
-
return /* @__PURE__ */ X(
|
|
176
|
+
return /* @__PURE__ */ X(W.Item, {
|
|
177
177
|
value: e.value,
|
|
178
178
|
asChild: !0,
|
|
179
179
|
children: /* @__PURE__ */ X(r, {
|
|
@@ -183,7 +183,7 @@ var Te = async (e) => {
|
|
|
183
183
|
variant: "full-width",
|
|
184
184
|
id: e.value,
|
|
185
185
|
label: e.label,
|
|
186
|
-
icon: /* @__PURE__ */ X(
|
|
186
|
+
icon: /* @__PURE__ */ X(U, {
|
|
187
187
|
as: i(e.icon),
|
|
188
188
|
boxSize: "16px"
|
|
189
189
|
}),
|
|
@@ -233,7 +233,7 @@ var Te = async (e) => {
|
|
|
233
233
|
let S = x, C = v ? "border.accent" : "border", w = v ? "border.accent" : "border.accent-light", T;
|
|
234
234
|
t[6] === w ? T = t[7] : (T = { borderColor: w }, t[6] = w, t[7] = T);
|
|
235
235
|
let E = p ? S : void 0, D = v ? "true" : void 0, O;
|
|
236
|
-
t[8] !== n || t[9] !== o ? (O = n || o ? /* @__PURE__ */ Z(
|
|
236
|
+
t[8] !== n || t[9] !== o ? (O = n || o ? /* @__PURE__ */ Z(H, {
|
|
237
237
|
minW: "0",
|
|
238
238
|
gap: "2xs",
|
|
239
239
|
children: [n ? /* @__PURE__ */ X(J, {
|
|
@@ -242,7 +242,7 @@ var Te = async (e) => {
|
|
|
242
242
|
fontFamily: "mono",
|
|
243
243
|
truncate: !0,
|
|
244
244
|
children: n
|
|
245
|
-
}) : null, /* @__PURE__ */ X(
|
|
245
|
+
}) : null, /* @__PURE__ */ X(H, {
|
|
246
246
|
marginLeft: "auto",
|
|
247
247
|
children: o ? /* @__PURE__ */ X(s, { ...o }) : null
|
|
248
248
|
})]
|
|
@@ -292,11 +292,11 @@ var Te = async (e) => {
|
|
|
292
292
|
let x;
|
|
293
293
|
t[1] === Symbol.for("react.memo_cache_sentinel") ? (x = () => h(Ie), t[1] = x) : x = t[1];
|
|
294
294
|
let S = m ? "rotate(90deg)" : "rotate(0deg)", C;
|
|
295
|
-
t[2] === S ? C = t[3] : (C = /* @__PURE__ */ X(
|
|
295
|
+
t[2] === S ? C = t[3] : (C = /* @__PURE__ */ X(z, {
|
|
296
296
|
display: "flex",
|
|
297
297
|
alignItems: "center",
|
|
298
298
|
flexShrink: 0,
|
|
299
|
-
children: /* @__PURE__ */ X(
|
|
299
|
+
children: /* @__PURE__ */ X(U, {
|
|
300
300
|
as: ye,
|
|
301
301
|
boxSize: "14px",
|
|
302
302
|
color: "fg.muted",
|
|
@@ -311,14 +311,14 @@ var Te = async (e) => {
|
|
|
311
311
|
children: i.label
|
|
312
312
|
}), t[4] = i.label, t[5] = w);
|
|
313
313
|
let T;
|
|
314
|
-
t[6] === i.items.length ? T = t[7] : (T = /* @__PURE__ */ X(
|
|
314
|
+
t[6] === i.items.length ? T = t[7] : (T = /* @__PURE__ */ X(se, {
|
|
315
315
|
variant: "number",
|
|
316
316
|
colorPalette: "gray",
|
|
317
317
|
size: "sm",
|
|
318
318
|
children: i.items.length
|
|
319
319
|
}), t[6] = i.items.length, t[7] = T);
|
|
320
320
|
let E;
|
|
321
|
-
t[8] !== C || t[9] !== w || t[10] !== T ? (E = /* @__PURE__ */ Z(
|
|
321
|
+
t[8] !== C || t[9] !== w || t[10] !== T ? (E = /* @__PURE__ */ Z(H, {
|
|
322
322
|
px: "xs",
|
|
323
323
|
py: "2xs",
|
|
324
324
|
gap: "2xs",
|
|
@@ -338,7 +338,7 @@ var Te = async (e) => {
|
|
|
338
338
|
pt: "xs",
|
|
339
339
|
children: i.items.map((e) => /* @__PURE__ */ X(n, {
|
|
340
340
|
actions: e.contextMenuActions ?? [],
|
|
341
|
-
children: /* @__PURE__ */ X(
|
|
341
|
+
children: /* @__PURE__ */ X(z, {
|
|
342
342
|
onDragOver: o ? Le : void 0,
|
|
343
343
|
onDrop: o ? (t) => {
|
|
344
344
|
t.preventDefault(), t.stopPropagation();
|
|
@@ -468,7 +468,7 @@ var Re = (e) => {
|
|
|
468
468
|
}, t.key);
|
|
469
469
|
}) : e.items.map((t) => /* @__PURE__ */ X(n, {
|
|
470
470
|
actions: t.contextMenuActions ?? [],
|
|
471
|
-
children: /* @__PURE__ */ X(
|
|
471
|
+
children: /* @__PURE__ */ X(z, {
|
|
472
472
|
onDragOver: e.canDragIn ? (t) => {
|
|
473
473
|
t.preventDefault(), t.stopPropagation(), t.dataTransfer.dropEffect = "move", f(e.id);
|
|
474
474
|
} : void 0,
|
|
@@ -532,7 +532,7 @@ var Be = (e, t, n = 0) => {
|
|
|
532
532
|
}, He = (e, t) => e[t] !== !1, Ue = (e, t, n) => ({
|
|
533
533
|
...e,
|
|
534
534
|
[t]: n
|
|
535
|
-
}), We = (e, t) => t ? /* @__PURE__ */ Z(
|
|
535
|
+
}), We = (e, t) => t ? /* @__PURE__ */ Z(H, {
|
|
536
536
|
gap: "xs",
|
|
537
537
|
minW: "0",
|
|
538
538
|
maxW: "full",
|
|
@@ -548,7 +548,7 @@ var Be = (e, t, n = 0) => {
|
|
|
548
548
|
flexShrink: 0,
|
|
549
549
|
children: e.countBadge
|
|
550
550
|
})]
|
|
551
|
-
}) : /* @__PURE__ */ Z(
|
|
551
|
+
}) : /* @__PURE__ */ Z(H, {
|
|
552
552
|
gap: "compact",
|
|
553
553
|
minW: "0",
|
|
554
554
|
maxW: "full",
|
|
@@ -566,7 +566,7 @@ var Be = (e, t, n = 0) => {
|
|
|
566
566
|
truncate: !0,
|
|
567
567
|
children: e.title
|
|
568
568
|
})]
|
|
569
|
-
}), Ge = (e) => (e.badges?.length ?? 0) > 0 || (e.customSlots?.length ?? 0) > 0 ? /* @__PURE__ */ X(
|
|
569
|
+
}), Ge = (e) => (e.badges?.length ?? 0) > 0 || (e.customSlots?.length ?? 0) > 0 ? /* @__PURE__ */ X(H, {
|
|
570
570
|
gap: "xs",
|
|
571
571
|
flexShrink: 0,
|
|
572
572
|
children: /* @__PURE__ */ Z(pe, {
|
|
@@ -580,7 +580,7 @@ var Be = (e, t, n = 0) => {
|
|
|
580
580
|
}) : null, Ke = (e, t) => ({
|
|
581
581
|
id: e.id,
|
|
582
582
|
label: We(e, e.isGroup === !0),
|
|
583
|
-
icon: e.statusIcon ? /* @__PURE__ */ X(
|
|
583
|
+
icon: e.statusIcon ? /* @__PURE__ */ X(U, {
|
|
584
584
|
"data-testid": e.isGroup ? "list-status-icon" : "row-status-icon",
|
|
585
585
|
as: e.statusIcon,
|
|
586
586
|
boxSize: "1rem",
|
|
@@ -608,7 +608,7 @@ var Be = (e, t, n = 0) => {
|
|
|
608
608
|
o?.(e, t), i === void 0 && u((n) => Ue(n, e, t));
|
|
609
609
|
}, t[11] = i, t[12] = o, t[13] = r) : r = t[13];
|
|
610
610
|
let c = r;
|
|
611
|
-
g =
|
|
611
|
+
g = z;
|
|
612
612
|
let l;
|
|
613
613
|
t[14] !== d || t[15] !== p || t[16] !== h || t[17] !== c || t[18] !== a || t[19] !== s ? (l = (e) => /* @__PURE__ */ X(Je, {
|
|
614
614
|
row: e,
|
|
@@ -660,13 +660,13 @@ var Be = (e, t, n = 0) => {
|
|
|
660
660
|
t[29] !== c || t[30] !== l ? (M = () => {
|
|
661
661
|
l(null), c(null);
|
|
662
662
|
}, t[29] = c, t[30] = l, t[31] = M) : M = t[31];
|
|
663
|
-
let
|
|
664
|
-
t[32] !== m || t[33] !== _ ? (
|
|
665
|
-
let
|
|
666
|
-
t[35] !== m || t[36] !== C || t[37] !== i || t[38] !== h || t[39] !== n.depth || t[40] !== y || t[41] !==
|
|
663
|
+
let ee = M, te = _ ? "true" : void 0, ne = _ ? "bg.subtle" : "transparent", re = f.draggable, N;
|
|
664
|
+
t[32] !== m || t[33] !== _ ? (N = Ve(_, m), t[32] = m, t[33] = _, t[34] = N) : N = t[34];
|
|
665
|
+
let P = f.onDropRow ? k : void 0, ie = p ? void 0 : f.title, ae = p ? "compact" : "collection", F;
|
|
666
|
+
t[35] !== m || t[36] !== C || t[37] !== i || t[38] !== h || t[39] !== n.depth || t[40] !== y || t[41] !== ie || t[42] !== ae || t[43] !== x ? (F = /* @__PURE__ */ X(r, {
|
|
667
667
|
...y,
|
|
668
|
-
"aria-label":
|
|
669
|
-
variant:
|
|
668
|
+
"aria-label": ie,
|
|
669
|
+
variant: ae,
|
|
670
670
|
depth: n.depth,
|
|
671
671
|
isSelected: h,
|
|
672
672
|
isExpanded: i,
|
|
@@ -674,29 +674,29 @@ var Be = (e, t, n = 0) => {
|
|
|
674
674
|
showContextMenuTrigger: !1,
|
|
675
675
|
onActivate: C,
|
|
676
676
|
onToggleExpand: x
|
|
677
|
-
}), t[35] = m, t[36] = C, t[37] = i, t[38] = h, t[39] = n.depth, t[40] = y, t[41] =
|
|
678
|
-
let
|
|
679
|
-
return t[45] !==
|
|
680
|
-
"data-drop-target":
|
|
677
|
+
}), t[35] = m, t[36] = C, t[37] = i, t[38] = h, t[39] = n.depth, t[40] = y, t[41] = ie, t[42] = ae, t[43] = x, t[44] = F) : F = t[44];
|
|
678
|
+
let I;
|
|
679
|
+
return t[45] !== ee || t[46] !== D || t[47] !== T || t[48] !== j || t[49] !== f.draggable || t[50] !== N || t[51] !== P || t[52] !== F || t[53] !== te || t[54] !== ne ? (I = /* @__PURE__ */ X(z, {
|
|
680
|
+
"data-drop-target": te,
|
|
681
681
|
position: "relative",
|
|
682
682
|
borderBottomWidth: "1px",
|
|
683
683
|
borderBottomColor: "border.subtle",
|
|
684
|
-
bg:
|
|
685
|
-
draggable:
|
|
684
|
+
bg: ne,
|
|
685
|
+
draggable: re,
|
|
686
686
|
transition: "background 120ms ease",
|
|
687
|
-
...
|
|
687
|
+
...N,
|
|
688
688
|
onDragStart: T,
|
|
689
689
|
onDragOver: D,
|
|
690
|
-
onDragLeave:
|
|
691
|
-
onDragEnd:
|
|
690
|
+
onDragLeave: P,
|
|
691
|
+
onDragEnd: ee,
|
|
692
692
|
onDrop: j,
|
|
693
|
-
children:
|
|
694
|
-
}), t[45] =
|
|
693
|
+
children: F
|
|
694
|
+
}), t[45] = ee, t[46] = D, t[47] = T, t[48] = j, t[49] = f.draggable, t[50] = N, t[51] = P, t[52] = F, t[53] = te, t[54] = ne, t[55] = I) : I = t[55], I;
|
|
695
695
|
}, Ye = (e) => {
|
|
696
696
|
let t = Y(7), { emptyState: n, title: r, description: i, height: a } = e;
|
|
697
697
|
if (n !== void 0) {
|
|
698
698
|
let e;
|
|
699
|
-
return t[0] !== n || t[1] !== a ? (e = a ? /* @__PURE__ */ X(
|
|
699
|
+
return t[0] !== n || t[1] !== a ? (e = a ? /* @__PURE__ */ X(z, {
|
|
700
700
|
height: a,
|
|
701
701
|
children: n
|
|
702
702
|
}) : n, t[0] = n, t[1] = a, t[2] = e) : e = t[2], e;
|
|
@@ -711,7 +711,7 @@ var Be = (e, t, n = 0) => {
|
|
|
711
711
|
let t = Y(20), { viewMode: n, boardColumns: r, listItems: i, listExpandedGroups: a, selectedRowId: o, emptyState: s, emptyTitle: c, emptyDescription: l, onBoardMoveItem: u, onBoardMoveToGroup: d, onCreateRow: f, onColumnAction: p, onListExpandedGroupChange: m, listKey: h } = e;
|
|
712
712
|
if (n === "board") {
|
|
713
713
|
let e;
|
|
714
|
-
return t[0] !== r || t[1] !== l || t[2] !== s || t[3] !== c || t[4] !== u || t[5] !== d || t[6] !== p || t[7] !== f || t[8] !== o ? (e = /* @__PURE__ */ X(
|
|
714
|
+
return t[0] !== r || t[1] !== l || t[2] !== s || t[3] !== c || t[4] !== u || t[5] !== d || t[6] !== p || t[7] !== f || t[8] !== o ? (e = /* @__PURE__ */ X(z, {
|
|
715
715
|
flex: "1",
|
|
716
716
|
minH: "0",
|
|
717
717
|
children: r.length > 0 ? /* @__PURE__ */ X(Re, {
|
|
@@ -761,7 +761,7 @@ var Be = (e, t, n = 0) => {
|
|
|
761
761
|
let d = a === "small" ? "2xs" : "xs", f;
|
|
762
762
|
t[2] !== r || t[3] !== i ? (f = r.map(i), t[2] = r, t[3] = i, t[4] = f) : f = t[4];
|
|
763
763
|
let p;
|
|
764
|
-
t[5] !== d || t[6] !== f || t[7] !== s ? (p = /* @__PURE__ */ X(
|
|
764
|
+
t[5] !== d || t[6] !== f || t[7] !== s ? (p = /* @__PURE__ */ X(H, {
|
|
765
765
|
gap: d,
|
|
766
766
|
flexWrap: "wrap",
|
|
767
767
|
alignItems: "start",
|
|
@@ -782,8 +782,8 @@ var Be = (e, t, n = 0) => {
|
|
|
782
782
|
}, $e = (e) => {
|
|
783
783
|
let t = Y(35), { params: n, groups: r, defaultValues: i, onChange: a, onOpenResource: o, readOnly: s, variant: c } = e, l, u, d, f, p, m, h, g;
|
|
784
784
|
if (t[0] !== i || t[1] !== a || t[2] !== o || t[3] !== s || t[4] !== n || t[5] !== r || t[6] !== c) {
|
|
785
|
-
let e = n === void 0 ? [] : n, _ = r === void 0 ? [] : r, v = c === void 0 ? "default" : c, y = e.filter(
|
|
786
|
-
t[15] !== i || t[16] !== a || t[17] !== o || t[18] !== s || t[19] !== v ? (x = (e) => /* @__PURE__ */ X(
|
|
785
|
+
let e = n === void 0 ? [] : n, _ = r === void 0 ? [] : r, v = c === void 0 ? "default" : c, y = e.filter(R), b = _.map(et), x;
|
|
786
|
+
t[15] !== i || t[16] !== a || t[17] !== o || t[18] !== s || t[19] !== v ? (x = (e) => /* @__PURE__ */ X(oe, {
|
|
787
787
|
param: e,
|
|
788
788
|
defaultValues: i,
|
|
789
789
|
onChange: a,
|
|
@@ -792,8 +792,8 @@ var Be = (e, t, n = 0) => {
|
|
|
792
792
|
presentation: "horizontal",
|
|
793
793
|
size: v === "small" ? "xs" : "sm"
|
|
794
794
|
}, e.id), t[15] = i, t[16] = a, t[17] = o, t[18] = s, t[19] = v, t[20] = x) : x = t[20];
|
|
795
|
-
let S = x, C = y.filter(tt), w = y.filter(
|
|
796
|
-
l = q, u = "1", d = "full", f = D, p = "0", m = O ? /* @__PURE__ */ Z(
|
|
795
|
+
let S = x, C = y.filter(tt), w = y.filter(L), T = b.map(rt).filter(it), E = b.map(at).filter(ot), D = v === "small" ? "xs" : "sm", O = C.length > 0 || T.length > 0;
|
|
796
|
+
l = q, u = "1", d = "full", f = D, p = "0", m = O ? /* @__PURE__ */ Z(H, {
|
|
797
797
|
gap: D,
|
|
798
798
|
flexWrap: "wrap",
|
|
799
799
|
alignItems: "start",
|
|
@@ -809,7 +809,7 @@ var Be = (e, t, n = 0) => {
|
|
|
809
809
|
})]
|
|
810
810
|
}) : null;
|
|
811
811
|
let k;
|
|
812
|
-
t[21] === S ? k = t[22] : (k = (e) => /* @__PURE__ */ X(
|
|
812
|
+
t[21] === S ? k = t[22] : (k = (e) => /* @__PURE__ */ X(z, {
|
|
813
813
|
width: "full",
|
|
814
814
|
minW: "0",
|
|
815
815
|
children: S(e)
|
|
@@ -842,14 +842,14 @@ var Be = (e, t, n = 0) => {
|
|
|
842
842
|
function et(e) {
|
|
843
843
|
return {
|
|
844
844
|
...e,
|
|
845
|
-
params: e.params.filter(
|
|
845
|
+
params: e.params.filter(R)
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
848
|
function tt(e) {
|
|
849
|
-
return !
|
|
849
|
+
return !L(e);
|
|
850
850
|
}
|
|
851
851
|
function nt(e) {
|
|
852
|
-
return !
|
|
852
|
+
return !L(e);
|
|
853
853
|
}
|
|
854
854
|
function rt(e) {
|
|
855
855
|
return {
|
|
@@ -864,7 +864,7 @@ function it(e) {
|
|
|
864
864
|
function at(e) {
|
|
865
865
|
return {
|
|
866
866
|
group: e,
|
|
867
|
-
params: e.params.filter(
|
|
867
|
+
params: e.params.filter(L)
|
|
868
868
|
};
|
|
869
869
|
}
|
|
870
870
|
function ot(e) {
|
|
@@ -877,7 +877,7 @@ var st = (e) => {
|
|
|
877
877
|
let t = Y(7), { disabled: n, field: r, onChange: i } = e, a = typeof r.defaultValue == "string" ? r.defaultValue : "", o = !n, s;
|
|
878
878
|
t[0] === i ? s = t[1] : (s = (e) => i(e), t[0] = i, t[1] = s);
|
|
879
879
|
let c;
|
|
880
|
-
return t[2] !== r.placeholder || t[3] !== a || t[4] !== o || t[5] !== s ? (c = /* @__PURE__ */ X(
|
|
880
|
+
return t[2] !== r.placeholder || t[3] !== a || t[4] !== o || t[5] !== s ? (c = /* @__PURE__ */ X(ne, {
|
|
881
881
|
defaultState: a,
|
|
882
882
|
isEditable: o,
|
|
883
883
|
placeholder: r.placeholder,
|
|
@@ -902,12 +902,12 @@ var st = (e) => {
|
|
|
902
902
|
onChange: f
|
|
903
903
|
}), t[6] = r.accept, t[7] = d, t[8] = f, t[9] = p) : p = t[9];
|
|
904
904
|
let m, h;
|
|
905
|
-
t[10] === Symbol.for("react.memo_cache_sentinel") ? (m = () => c.current?.click(), h = /* @__PURE__ */ X(
|
|
905
|
+
t[10] === Symbol.for("react.memo_cache_sentinel") ? (m = () => c.current?.click(), h = /* @__PURE__ */ X(U, {
|
|
906
906
|
as: xe,
|
|
907
907
|
boxSize: "4"
|
|
908
908
|
}), t[10] = m, t[11] = h) : (m = t[10], h = t[11]);
|
|
909
909
|
let g;
|
|
910
|
-
t[12] !== n || t[13] !== r.label ? (g = /* @__PURE__ */ Z(
|
|
910
|
+
t[12] !== n || t[13] !== r.label ? (g = /* @__PURE__ */ Z(B, {
|
|
911
911
|
size: "xs",
|
|
912
912
|
variant: "ghost",
|
|
913
913
|
disabled: n,
|
|
@@ -960,7 +960,7 @@ var st = (e) => {
|
|
|
960
960
|
let d = r.type === "multi-select", f = r.placeholder ?? r.label, p = !r.required, m;
|
|
961
961
|
t[15] === a ? m = t[16] : (m = (e, t) => a(t), t[15] = a, t[16] = m);
|
|
962
962
|
let h;
|
|
963
|
-
return t[17] !== n || t[18] !== r.id || t[19] !== r.label || t[20] !== s || t[21] !== c || t[22] !== u || t[23] !== d || t[24] !== f || t[25] !== p || t[26] !== m ? (h = /* @__PURE__ */ X(
|
|
963
|
+
return t[17] !== n || t[18] !== r.id || t[19] !== r.label || t[20] !== s || t[21] !== c || t[22] !== u || t[23] !== d || t[24] !== f || t[25] !== p || t[26] !== m ? (h = /* @__PURE__ */ X(I, {
|
|
964
964
|
hideLabel: !0,
|
|
965
965
|
id: e,
|
|
966
966
|
name: o,
|
|
@@ -978,7 +978,7 @@ var st = (e) => {
|
|
|
978
978
|
let e;
|
|
979
979
|
t[28] !== a || t[29] !== i ? (e = () => a(i !== !0), t[28] = a, t[29] = i, t[30] = e) : e = t[30];
|
|
980
980
|
let o;
|
|
981
|
-
return t[31] !== n || t[32] !== r.label || t[33] !== e ? (o = /* @__PURE__ */ X(
|
|
981
|
+
return t[31] !== n || t[32] !== r.label || t[33] !== e ? (o = /* @__PURE__ */ X(B, {
|
|
982
982
|
size: "sm",
|
|
983
983
|
variant: "outline",
|
|
984
984
|
disabled: n,
|
|
@@ -989,7 +989,7 @@ var st = (e) => {
|
|
|
989
989
|
let o = r.type === "number" ? "number" : "text", s = typeof i == "string" || typeof i == "number" ? i : "", c;
|
|
990
990
|
t[35] !== r.type || t[36] !== a ? (c = (e) => a(r.type === "number" && e.target.value ? Number(e.target.value) : e.target.value), t[35] = r.type, t[36] = a, t[37] = c) : c = t[37];
|
|
991
991
|
let l;
|
|
992
|
-
return t[38] !== n || t[39] !== r.label || t[40] !== r.placeholder || t[41] !== o || t[42] !== s || t[43] !== c ? (l = /* @__PURE__ */ X(
|
|
992
|
+
return t[38] !== n || t[39] !== r.label || t[40] !== r.placeholder || t[41] !== o || t[42] !== s || t[43] !== c ? (l = /* @__PURE__ */ X(ue, {
|
|
993
993
|
"aria-label": r.label,
|
|
994
994
|
size: "sm",
|
|
995
995
|
type: o,
|
|
@@ -1067,7 +1067,7 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1067
1067
|
placeholder: e.label,
|
|
1068
1068
|
clearable: !t,
|
|
1069
1069
|
disabled: t,
|
|
1070
|
-
options:
|
|
1070
|
+
options: D(e.type).map((e) => ({
|
|
1071
1071
|
id: e.value,
|
|
1072
1072
|
name: e.label,
|
|
1073
1073
|
icon: e.icon ?? void 0,
|
|
@@ -1146,23 +1146,23 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1146
1146
|
}
|
|
1147
1147
|
}
|
|
1148
1148
|
};
|
|
1149
|
-
return /* @__PURE__ */ Z(
|
|
1149
|
+
return /* @__PURE__ */ Z(V.Root, {
|
|
1150
1150
|
open: t,
|
|
1151
1151
|
size: "lg",
|
|
1152
1152
|
scrollBehavior: "inside",
|
|
1153
1153
|
onOpenChange: (e) => !e.open && x(),
|
|
1154
|
-
children: [/* @__PURE__ */ X(
|
|
1154
|
+
children: [/* @__PURE__ */ X(V.Backdrop, {}), /* @__PURE__ */ X(V.Positioner, { children: /* @__PURE__ */ Z(V.Content, {
|
|
1155
1155
|
maxH: "calc(100% - 48px)",
|
|
1156
1156
|
onKeyDownCapture: (e) => o(e, () => void C(), S && !p),
|
|
1157
1157
|
children: [
|
|
1158
|
-
/* @__PURE__ */ Z(
|
|
1158
|
+
/* @__PURE__ */ Z(V.Header, { children: [/* @__PURE__ */ X(V.Title, { children: a.title }), /* @__PURE__ */ X(V.CloseTrigger, {
|
|
1159
1159
|
asChild: !0,
|
|
1160
|
-
children: /* @__PURE__ */ X(
|
|
1160
|
+
children: /* @__PURE__ */ X(ce, {
|
|
1161
1161
|
size: "sm",
|
|
1162
1162
|
disabled: p
|
|
1163
1163
|
})
|
|
1164
1164
|
})] }),
|
|
1165
|
-
/* @__PURE__ */ X(
|
|
1165
|
+
/* @__PURE__ */ X(V.Body, { children: /* @__PURE__ */ Z(q, {
|
|
1166
1166
|
gap: "md",
|
|
1167
1167
|
children: [
|
|
1168
1168
|
a.fields.map((e) => /* @__PURE__ */ X(ut, {
|
|
@@ -1198,17 +1198,17 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1198
1198
|
}) : null
|
|
1199
1199
|
]
|
|
1200
1200
|
}) }),
|
|
1201
|
-
/* @__PURE__ */ X(
|
|
1201
|
+
/* @__PURE__ */ X(V.Footer, {
|
|
1202
1202
|
justifyContent: "end",
|
|
1203
|
-
children: /* @__PURE__ */ Z(
|
|
1203
|
+
children: /* @__PURE__ */ Z(H, {
|
|
1204
1204
|
gap: "2",
|
|
1205
|
-
children: [/* @__PURE__ */ X(
|
|
1205
|
+
children: [/* @__PURE__ */ X(B, {
|
|
1206
1206
|
size: "sm",
|
|
1207
1207
|
variant: "ghost",
|
|
1208
1208
|
disabled: p,
|
|
1209
1209
|
onClick: x,
|
|
1210
1210
|
children: a.labels.cancel
|
|
1211
|
-
}), /* @__PURE__ */ X(
|
|
1211
|
+
}), /* @__PURE__ */ X(B, {
|
|
1212
1212
|
size: "sm",
|
|
1213
1213
|
variant: "primary",
|
|
1214
1214
|
disabled: !S,
|
|
@@ -1222,106 +1222,106 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1222
1222
|
}) })]
|
|
1223
1223
|
});
|
|
1224
1224
|
}, yt = (e) => {
|
|
1225
|
-
let { settings: t, visibleRows: n, grouped: r, attributes: a, onRowClick: o, onAttributeChange: s, onReorder: c, getRowContextMenuActions:
|
|
1226
|
-
let n =
|
|
1225
|
+
let { settings: t, visibleRows: n, grouped: r, attributes: a, onRowClick: o, onAttributeChange: s, onReorder: c, getRowContextMenuActions: l } = e, u = t.ordering.attributeId === re, f = t.displayProperties.filter((e) => e !== "id"), p = (e, t) => {
|
|
1226
|
+
let n = k(a, e), r = n ? T(n.type, t) : void 0;
|
|
1227
1227
|
return {
|
|
1228
1228
|
statusColorPalette: r?.color,
|
|
1229
1229
|
statusIcon: i(r?.icon)
|
|
1230
1230
|
};
|
|
1231
|
-
},
|
|
1231
|
+
}, m = (e) => {
|
|
1232
1232
|
let t = e.attributes.status;
|
|
1233
|
-
return typeof t == "string" ?
|
|
1234
|
-
},
|
|
1233
|
+
return typeof t == "string" ? p("status", t) : {};
|
|
1234
|
+
}, h = (e, n) => {
|
|
1235
1235
|
let r = typeof e.attributes.id == "string" ? e.attributes.id : void 0;
|
|
1236
1236
|
return {
|
|
1237
1237
|
id: e.id,
|
|
1238
1238
|
eyebrow: r && r !== e.title ? r : void 0,
|
|
1239
1239
|
title: e.title,
|
|
1240
|
-
...
|
|
1241
|
-
badges:
|
|
1242
|
-
customSlots:
|
|
1243
|
-
contextMenuActions:
|
|
1240
|
+
...m(e),
|
|
1241
|
+
badges: ae(e, a, f),
|
|
1242
|
+
customSlots: ee(e, a, f),
|
|
1243
|
+
contextMenuActions: l?.(e),
|
|
1244
1244
|
onClick: () => o?.(e),
|
|
1245
1245
|
onBadgeChange: s ? (t, n) => s(e.id, t, n) : void 0,
|
|
1246
1246
|
draggable: !!(s || c),
|
|
1247
|
-
onDropRow:
|
|
1247
|
+
onDropRow: u && (s || c) ? (r) => {
|
|
1248
1248
|
let i = w(t.columnGrouping, n);
|
|
1249
1249
|
i && t.columnGrouping !== "none" && s && s(r, t.columnGrouping, i), t.rowGrouping !== "none" && n?.rowKey && s && s(r, t.rowGrouping, n.rowKey), c?.(r, e.id);
|
|
1250
1250
|
} : void 0
|
|
1251
1251
|
};
|
|
1252
|
-
},
|
|
1252
|
+
}, g = (e, n) => {
|
|
1253
1253
|
let r = n ? t.rowGrouping : t.columnGrouping;
|
|
1254
1254
|
return {
|
|
1255
1255
|
id: n ? `group::${n.columnKey}::${e.key}` : `group::${e.key}`,
|
|
1256
1256
|
title: e.label,
|
|
1257
1257
|
isGroup: !0,
|
|
1258
1258
|
countBadge: e.rows.length,
|
|
1259
|
-
...
|
|
1259
|
+
...p(r, e.key),
|
|
1260
1260
|
onDropRow: s && t.columnGrouping !== "none" ? (r) => {
|
|
1261
1261
|
let i = n?.columnKey ?? e.key;
|
|
1262
1262
|
s(r, t.columnGrouping, i), t.rowGrouping !== "none" && n && s(r, t.rowGrouping, e.key);
|
|
1263
1263
|
} : void 0,
|
|
1264
|
-
children:
|
|
1264
|
+
children: d(e.rows, t.ordering, a).map((t) => h(t, {
|
|
1265
1265
|
columnKey: n?.columnKey ?? e.key,
|
|
1266
1266
|
rowKey: n ? e.key : void 0
|
|
1267
1267
|
}))
|
|
1268
1268
|
};
|
|
1269
1269
|
};
|
|
1270
|
-
return t.columnGrouping === "none" ?
|
|
1270
|
+
return t.columnGrouping === "none" ? d(n, t.ordering, a).map((e) => h(e)) : r.map((e) => e.subgroups.length > 0 ? {
|
|
1271
1271
|
id: `group::${e.key}`,
|
|
1272
1272
|
title: e.label,
|
|
1273
1273
|
isGroup: !0,
|
|
1274
1274
|
countBadge: e.rows.length,
|
|
1275
|
-
...
|
|
1275
|
+
...p(t.columnGrouping, e.key),
|
|
1276
1276
|
onDropRow: s ? (n) => s(n, t.columnGrouping, e.key) : void 0,
|
|
1277
|
-
children: e.subgroups.map((t) =>
|
|
1278
|
-
} :
|
|
1277
|
+
children: e.subgroups.map((t) => g(t, { columnKey: e.key }))
|
|
1278
|
+
} : g(e));
|
|
1279
1279
|
}, bt = (e) => {
|
|
1280
1280
|
let t = e.attributes.id;
|
|
1281
1281
|
return typeof t == "string" && t ? t : e.id;
|
|
1282
1282
|
}, xt = (e) => {
|
|
1283
|
-
let t = Y(
|
|
1284
|
-
t[0] !==
|
|
1285
|
-
settings:
|
|
1286
|
-
filters:
|
|
1287
|
-
views:
|
|
1288
|
-
activeViewId:
|
|
1289
|
-
}, t[0] =
|
|
1290
|
-
let
|
|
1291
|
-
if (t[5] !==
|
|
1292
|
-
let e =
|
|
1293
|
-
attributes:
|
|
1294
|
-
columnGrouping:
|
|
1295
|
-
rowGrouping:
|
|
1283
|
+
let t = Y(62), { rows: n, storageKey: r, attributes: i, selectedRowId: a, emptyState: o, emptyTitle: s, emptyDescription: c, contentPlaceholder: l, defaultSettings: p, defaultFilters: m, defaultViews: h, defaultActiveViewId: _, onRowClick: y, onAttributeChange: x, onReorder: S, createRow: C, onCreateRow: w, onColumnAction: E, getBoardColumnConfig: D, getRowContextMenuActions: O, hideToolbar: A, toolbarLeading: j } = e, M = a === void 0 ? null : a, te = s === void 0 ? "No rows found" : s, ne = c === void 0 ? "Try changing filters or display settings." : c, re = A !== void 0 && A, N = f(i), [P, F] = Q(null), I;
|
|
1284
|
+
t[0] !== _ || t[1] !== m || t[2] !== p || t[3] !== h ? (I = {
|
|
1285
|
+
settings: p,
|
|
1286
|
+
filters: m,
|
|
1287
|
+
views: h,
|
|
1288
|
+
activeViewId: _
|
|
1289
|
+
}, t[0] = _, t[1] = m, t[2] = p, t[3] = h, t[4] = I) : I = t[4];
|
|
1290
|
+
let L = I, R = b(r, St, L), oe = b(r, Ct, L), se = b(r, wt, L), z = b(r, Tt, L), B, ce;
|
|
1291
|
+
if (t[5] !== N || t[6] !== oe || t[7] !== D || t[8] !== O || t[9] !== x || t[10] !== S || t[11] !== y || t[12] !== n || t[13] !== R) {
|
|
1292
|
+
let e = g(n, oe, N), r = ie(R.columnGrouping, N, oe), i = v(e, {
|
|
1293
|
+
attributes: N,
|
|
1294
|
+
columnGrouping: R.columnGrouping,
|
|
1295
|
+
rowGrouping: R.rowGrouping,
|
|
1296
1296
|
knownColumnKeys: r
|
|
1297
1297
|
});
|
|
1298
1298
|
B = yt({
|
|
1299
|
-
settings:
|
|
1299
|
+
settings: R,
|
|
1300
1300
|
visibleRows: e,
|
|
1301
1301
|
grouped: i,
|
|
1302
|
-
attributes:
|
|
1303
|
-
onRowClick:
|
|
1302
|
+
attributes: N,
|
|
1303
|
+
onRowClick: y,
|
|
1304
1304
|
onAttributeChange: x,
|
|
1305
1305
|
onReorder: S,
|
|
1306
|
-
getRowContextMenuActions:
|
|
1306
|
+
getRowContextMenuActions: O
|
|
1307
1307
|
});
|
|
1308
|
-
let a =
|
|
1308
|
+
let a = R.displayProperties.filter(Et), o = (e) => e.map((e) => ({
|
|
1309
1309
|
id: e.id,
|
|
1310
|
-
contextMenuActions:
|
|
1310
|
+
contextMenuActions: O?.(e),
|
|
1311
1311
|
cardProps: {
|
|
1312
|
-
eyebrow:
|
|
1312
|
+
eyebrow: R.displayProperties.includes("id") ? bt(e) : void 0,
|
|
1313
1313
|
title: e.title,
|
|
1314
|
-
badges:
|
|
1315
|
-
customSlots:
|
|
1314
|
+
badges: ae(e, N, a),
|
|
1315
|
+
customSlots: ee(e, N, a),
|
|
1316
1316
|
onBadgeChange: x ? (t, n) => x(e.id, t, n) : void 0,
|
|
1317
|
-
onClick: () =>
|
|
1317
|
+
onClick: () => y?.(e)
|
|
1318
1318
|
}
|
|
1319
|
-
})), s =
|
|
1320
|
-
|
|
1321
|
-
let t = D?.(e.key) ?? {}, n =
|
|
1319
|
+
})), s = k(N, R.columnGrouping);
|
|
1320
|
+
ce = i.map((e) => {
|
|
1321
|
+
let t = D?.(e.key) ?? {}, n = d(e.rows, R.ordering, N), r = s ? T(s.type, e.key) : void 0, i = e.subgroups.length > 0 ? e.subgroups.map((e) => ({
|
|
1322
1322
|
key: e.key,
|
|
1323
1323
|
label: e.label,
|
|
1324
|
-
items: o(
|
|
1324
|
+
items: o(d(e.rows, R.ordering, N))
|
|
1325
1325
|
})) : void 0;
|
|
1326
1326
|
return {
|
|
1327
1327
|
id: e.key,
|
|
@@ -1335,12 +1335,12 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1335
1335
|
items: o(n),
|
|
1336
1336
|
groups: i
|
|
1337
1337
|
};
|
|
1338
|
-
}), t[5] =
|
|
1339
|
-
} else B = t[14],
|
|
1340
|
-
let
|
|
1341
|
-
t[16] !== x || t[17] !== S || t[18] !==
|
|
1338
|
+
}), t[5] = N, t[6] = oe, t[7] = D, t[8] = O, t[9] = x, t[10] = S, t[11] = y, t[12] = n, t[13] = R, t[14] = B, t[15] = ce;
|
|
1339
|
+
} else B = t[14], ce = t[15];
|
|
1340
|
+
let V = ce, H;
|
|
1341
|
+
t[16] !== x || t[17] !== S || t[18] !== R ? (H = async (e, t, n) => {
|
|
1342
1342
|
await Te({
|
|
1343
|
-
settings:
|
|
1343
|
+
settings: R,
|
|
1344
1344
|
rowId: e,
|
|
1345
1345
|
targetColumnId: t,
|
|
1346
1346
|
targetGroupKey: n?.targetGroupKey,
|
|
@@ -1348,58 +1348,58 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1348
1348
|
onAttributeChange: x,
|
|
1349
1349
|
onReorder: S
|
|
1350
1350
|
});
|
|
1351
|
-
}, t[16] = x, t[17] = S, t[18] =
|
|
1352
|
-
let U = H,
|
|
1353
|
-
t[20] !== x || t[21] !== S || t[22] !==
|
|
1351
|
+
}, t[16] = x, t[17] = S, t[18] = R, t[19] = H) : H = t[19];
|
|
1352
|
+
let U = H, le;
|
|
1353
|
+
t[20] !== x || t[21] !== S || t[22] !== R ? (le = async (e, t, n) => {
|
|
1354
1354
|
await Ee({
|
|
1355
|
-
settings:
|
|
1355
|
+
settings: R,
|
|
1356
1356
|
rowId: e,
|
|
1357
1357
|
targetGroupKey: t,
|
|
1358
1358
|
beforeItemId: n?.beforeItemId,
|
|
1359
1359
|
onAttributeChange: x,
|
|
1360
1360
|
onReorder: S
|
|
1361
1361
|
});
|
|
1362
|
-
}, t[20] = x, t[21] = S, t[22] =
|
|
1363
|
-
let
|
|
1364
|
-
t[24] !==
|
|
1362
|
+
}, t[20] = x, t[21] = S, t[22] = R, t[23] = le) : le = t[23];
|
|
1363
|
+
let ue = le, W;
|
|
1364
|
+
t[24] !== N || t[25] !== _ || t[26] !== m || t[27] !== p || t[28] !== h || t[29] !== re || t[30] !== n || t[31] !== r || t[32] !== j ? (W = re ? null : /* @__PURE__ */ X(u, {
|
|
1365
1365
|
rows: n,
|
|
1366
1366
|
storageKey: r,
|
|
1367
|
-
attributes:
|
|
1368
|
-
defaultSettings:
|
|
1369
|
-
defaultFilters:
|
|
1370
|
-
defaultViews:
|
|
1371
|
-
defaultActiveViewId:
|
|
1372
|
-
leading:
|
|
1373
|
-
}), t[24] =
|
|
1374
|
-
let
|
|
1375
|
-
t[34] !==
|
|
1376
|
-
viewMode:
|
|
1377
|
-
boardColumns:
|
|
1367
|
+
attributes: N,
|
|
1368
|
+
defaultSettings: p,
|
|
1369
|
+
defaultFilters: m,
|
|
1370
|
+
defaultViews: h,
|
|
1371
|
+
defaultActiveViewId: _,
|
|
1372
|
+
leading: j
|
|
1373
|
+
}), t[24] = N, t[25] = _, t[26] = m, t[27] = p, t[28] = h, t[29] = re, t[30] = n, t[31] = r, t[32] = j, t[33] = W) : W = t[33];
|
|
1374
|
+
let G;
|
|
1375
|
+
t[34] !== V || t[35] !== l || t[36] !== C || t[37] !== ne || t[38] !== o || t[39] !== te || t[40] !== se || t[41] !== U || t[42] !== ue || t[43] !== B || t[44] !== E || t[45] !== w || t[46] !== M || t[47] !== z || t[48] !== R.columnGrouping || t[49] !== R.rowGrouping || t[50] !== R.viewMode ? (G = l === void 0 ? /* @__PURE__ */ X(Xe, {
|
|
1376
|
+
viewMode: R.viewMode,
|
|
1377
|
+
boardColumns: V,
|
|
1378
1378
|
listItems: B,
|
|
1379
|
-
listExpandedGroups:
|
|
1380
|
-
selectedRowId:
|
|
1379
|
+
listExpandedGroups: se,
|
|
1380
|
+
selectedRowId: M,
|
|
1381
1381
|
emptyState: o,
|
|
1382
|
-
emptyTitle:
|
|
1383
|
-
emptyDescription:
|
|
1382
|
+
emptyTitle: te,
|
|
1383
|
+
emptyDescription: ne,
|
|
1384
1384
|
onBoardMoveItem: U,
|
|
1385
|
-
onBoardMoveToGroup:
|
|
1386
|
-
onCreateRow:
|
|
1385
|
+
onBoardMoveToGroup: ue,
|
|
1386
|
+
onCreateRow: C && w ? F : void 0,
|
|
1387
1387
|
onColumnAction: E,
|
|
1388
|
-
onListExpandedGroupChange:
|
|
1389
|
-
listKey:
|
|
1390
|
-
}), t[34] =
|
|
1391
|
-
let
|
|
1392
|
-
t[
|
|
1388
|
+
onListExpandedGroupChange: z,
|
|
1389
|
+
listKey: `${R.columnGrouping}:${R.rowGrouping}`
|
|
1390
|
+
}) : l, t[34] = V, t[35] = l, t[36] = C, t[37] = ne, t[38] = o, t[39] = te, t[40] = se, t[41] = U, t[42] = ue, t[43] = B, t[44] = E, t[45] = w, t[46] = M, t[47] = z, t[48] = R.columnGrouping, t[49] = R.rowGrouping, t[50] = R.viewMode, t[51] = G) : G = t[51];
|
|
1391
|
+
let K;
|
|
1392
|
+
t[52] !== N || t[53] !== P || t[54] !== C || t[55] !== w || t[56] !== R.columnGrouping ? (K = C && w && P ? /* @__PURE__ */ X(vt, {
|
|
1393
1393
|
open: !0,
|
|
1394
|
-
columnId:
|
|
1395
|
-
columnAttributeId:
|
|
1396
|
-
attributes:
|
|
1394
|
+
columnId: P,
|
|
1395
|
+
columnAttributeId: R.columnGrouping === "none" ? void 0 : R.columnGrouping,
|
|
1396
|
+
attributes: N,
|
|
1397
1397
|
config: C,
|
|
1398
|
-
onClose: () =>
|
|
1398
|
+
onClose: () => F(null),
|
|
1399
1399
|
onSubmit: w
|
|
1400
|
-
}) : null, t[
|
|
1401
|
-
let
|
|
1402
|
-
return t[
|
|
1400
|
+
}) : null, t[52] = N, t[53] = P, t[54] = C, t[55] = w, t[56] = R.columnGrouping, t[57] = K) : K = t[57];
|
|
1401
|
+
let J;
|
|
1402
|
+
return t[58] !== K || t[59] !== W || t[60] !== G ? (J = /* @__PURE__ */ Z(q, {
|
|
1403
1403
|
"data-testid": "kanban-renderer",
|
|
1404
1404
|
height: "100%",
|
|
1405
1405
|
minH: "0",
|
|
@@ -1407,11 +1407,11 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1407
1407
|
background: "bg",
|
|
1408
1408
|
overflow: "hidden",
|
|
1409
1409
|
children: [
|
|
1410
|
+
W,
|
|
1410
1411
|
G,
|
|
1411
|
-
|
|
1412
|
-
J
|
|
1412
|
+
K
|
|
1413
1413
|
]
|
|
1414
|
-
}), t[
|
|
1414
|
+
}), t[58] = K, t[59] = W, t[60] = G, t[61] = J) : J = t[61], J;
|
|
1415
1415
|
};
|
|
1416
1416
|
function St(e) {
|
|
1417
1417
|
return e.settings;
|
|
@@ -1429,6 +1429,6 @@ function Et(e) {
|
|
|
1429
1429
|
return e !== "id";
|
|
1430
1430
|
}
|
|
1431
1431
|
//#endregion
|
|
1432
|
-
export {
|
|
1432
|
+
export { N as DisplayMenu, m as FilterMenu, xt as KanbanRenderer, Re as KanbanRendererBoard, Pe as KanbanRendererCard, vt as KanbanRendererCreateDialog, qe as KanbanRendererList, y as KanbanRendererStorageProvider, u as KanbanRendererToolbar, re as MANUAL_ORDERING, M as NO_GROUPING, x as buildDisplayPropertyOptions, h as buildFilterCategories, l as buildGroupingOptions, E as buildOrderingOptions, ae as collectDisplayBadges, k as findAttribute, P as getAttributeStringValues, A as getAttributeValue, D as getEnumOptions, p as isActiveKanbanRendererViewDirty, O as isAttributesSource, S as isEnumOptionsSource, C as renderAttributeBadge, te as renderBadgeListDisplay, _ as resolveAttributeOptions, j as sanitizeFilters, F as sanitizeSettings, b as useKanbanRendererStore, f as useResolvedAttributes };
|
|
1433
1433
|
|
|
1434
1434
|
//# sourceMappingURL=kanban-renderer.js.map
|