@pstdio/ui 0.37.0 → 0.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{MermaidComponent-BLMDb5XE.js → MermaidComponent-81jr28u4.js} +2 -2
- package/dist/{MermaidComponent-BLMDb5XE.js.map → MermaidComponent-81jr28u4.js.map} +1 -1
- package/dist/chat-ui.d.ts +6 -6
- package/dist/chat-ui.js +1 -1
- package/dist/{data-table-stats-row-BrpOFzgn.js → data-table-stats-row-CpRe_xK2.js} +2 -2
- package/dist/{data-table-stats-row-BrpOFzgn.js.map → data-table-stats-row-CpRe_xK2.js.map} +1 -1
- package/dist/data-table.d.ts +3 -1
- package/dist/data-table.js +7 -10
- package/dist/data-table.js.map +1 -1
- package/dist/{diff-viewer-hGkaF_zW.js → diff-viewer-DJ1B5hxL.js} +3 -3
- package/dist/{diff-viewer-hGkaF_zW.js.map → diff-viewer-DJ1B5hxL.js.map} +1 -1
- package/dist/diff.js +1 -1
- package/dist/index.d.ts +8 -6
- package/dist/index.js +111 -99
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer.d.ts +9 -21
- package/dist/kanban-renderer.js +276 -274
- package/dist/kanban-renderer.js.map +1 -1
- package/dist/{list-row-De9R2zKU.js → list-row-uqD-q4gv.js} +20 -10
- package/dist/list-row-uqD-q4gv.js.map +1 -0
- package/dist/{param-editor-BsyIOdrP.js → param-editor-BQd4AOUP.js} +2 -2
- package/dist/{param-editor-BsyIOdrP.js.map → param-editor-BQd4AOUP.js.map} +1 -1
- package/dist/{param-editor-field-qEWoluWT.js → param-editor-field-BJ_rLUnV.js} +728 -722
- package/dist/param-editor-field-BJ_rLUnV.js.map +1 -0
- package/dist/param-editor.d.ts +1 -0
- package/dist/param-editor.js +2 -2
- package/dist/{rich-text-CQAntEuA.js → rich-text-VYAmEigU.js} +1142 -1184
- package/dist/rich-text-VYAmEigU.js.map +1 -0
- package/dist/rich-text.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{theme-BH-rGipZ.js → theme-BsOWAIi2.js} +31 -5
- package/dist/theme-BsOWAIi2.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/{tree-list-BUfDQz3v.js → tree-list-WhISG-cz.js} +637 -488
- package/dist/tree-list-WhISG-cz.js.map +1 -0
- package/dist/{types-yjKBk07w.d.ts → types-DWA3enV6.d.ts} +22 -1
- package/package.json +2 -2
- package/dist/list-row-De9R2zKU.js.map +0 -1
- package/dist/param-editor-field-qEWoluWT.js.map +0 -1
- package/dist/rich-text-CQAntEuA.js.map +0 -1
- package/dist/theme-BH-rGipZ.js.map +0 -1
- package/dist/tree-list-BUfDQz3v.js.map +0 -1
package/dist/kanban-renderer.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { n as e, t } from "./scroll-area-Cr1lNXAr.js";
|
|
2
|
-
import {
|
|
2
|
+
import { c as n, t as r } from "./list-row-uqD-q4gv.js";
|
|
3
3
|
import { n as i, s as a } from "./slider-hwHYe98I.js";
|
|
4
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, 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
|
|
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 N, p as P, pt as te, q as F, rt as I, st as ne, tt as re, ut as L, vt as R } from "./rich-text-VYAmEigU.js";
|
|
7
|
+
import { h as ie, i as ae, r as oe, t as se } from "./param-editor-field-BJ_rLUnV.js";
|
|
8
|
+
import { Badge as z, Box as B, Button as ce, CloseButton as le, Dialog as V, HStack as H, Icon as U, IconButton as ue, Input as de, Menu as W, Portal as fe, Spacer as G, Stack as K, Text as q, Textarea as J, VStack as pe, Wrap as me } from "@chakra-ui/react";
|
|
9
9
|
import { c as Y } from "react/compiler-runtime";
|
|
10
|
-
import { Fragment as
|
|
11
|
-
import { useEffect as
|
|
12
|
-
import { Check as
|
|
10
|
+
import { Fragment as he, jsx as X, jsxs as Z } from "react/jsx-runtime";
|
|
11
|
+
import { useEffect as ge, useRef as _e, useState as Q } from "react";
|
|
12
|
+
import { Check as ve, ChevronDown as ye, ChevronRight as be, MoreHorizontal as xe, Paperclip as Se, Plus as Ce, Square as we, SquareCheck as Te } from "lucide-react";
|
|
13
13
|
//#region src/components/kanban-renderer/kanban-renderer-board-move.ts
|
|
14
|
-
var
|
|
14
|
+
var Ee = async (e) => {
|
|
15
15
|
let { settings: t, rowId: n, targetColumnId: r, targetGroupKey: i, beforeItemId: a, onAttributeChange: o, onReorder: s } = e;
|
|
16
16
|
t.columnGrouping !== "none" && o && await o(n, t.columnGrouping, r), t.rowGrouping !== "none" && i && o && await o(n, t.rowGrouping, i), t.ordering.attributeId === "manual" && await s?.(n, a);
|
|
17
|
-
},
|
|
17
|
+
}, De = async (e) => {
|
|
18
18
|
let { settings: t, rowId: n, targetGroupKey: r, beforeItemId: i, onAttributeChange: a, onReorder: o } = e;
|
|
19
19
|
t.rowGrouping !== "none" && a && (await a(n, t.rowGrouping, r), t.ordering.attributeId === "manual" && await o?.(n, i));
|
|
20
|
-
},
|
|
20
|
+
}, Oe = (t) => {
|
|
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;
|
|
@@ -29,29 +29,29 @@ var Te = async (e) => {
|
|
|
29
29
|
flexShrink: 0
|
|
30
30
|
}), n[2] = l, n[3] = u);
|
|
31
31
|
let d;
|
|
32
|
-
n[4] === a.label ? d = n[5] : (d = /* @__PURE__ */ X(
|
|
32
|
+
n[4] === a.label ? d = n[5] : (d = /* @__PURE__ */ X(q, {
|
|
33
33
|
textStyle: "label/S/medium",
|
|
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(z, {
|
|
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(G, {}), 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(ue, {
|
|
49
49
|
size: "2xs",
|
|
50
50
|
variant: "outline",
|
|
51
51
|
onClick: () => o(a.id),
|
|
52
52
|
"aria-label": a.createLabel ?? "Create row",
|
|
53
53
|
children: /* @__PURE__ */ X(U, {
|
|
54
|
-
as:
|
|
54
|
+
as: Ce,
|
|
55
55
|
boxSize: "12px"
|
|
56
56
|
})
|
|
57
57
|
})
|
|
@@ -59,12 +59,12 @@ var Te = async (e) => {
|
|
|
59
59
|
let h;
|
|
60
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(ue, {
|
|
63
63
|
size: "2xs",
|
|
64
64
|
variant: "ghost",
|
|
65
65
|
"aria-label": `Column actions for ${a.label}`,
|
|
66
66
|
children: /* @__PURE__ */ X(U, {
|
|
67
|
-
as:
|
|
67
|
+
as: xe,
|
|
68
68
|
boxSize: "12px"
|
|
69
69
|
})
|
|
70
70
|
})
|
|
@@ -101,7 +101,7 @@ var Te = async (e) => {
|
|
|
101
101
|
h
|
|
102
102
|
]
|
|
103
103
|
}), n[19] = c, n[20] = u, n[21] = d, n[22] = f, n[23] = m, n[24] = h, n[25] = g) : g = n[25], g;
|
|
104
|
-
}, $ = (e) => e.stopPropagation(),
|
|
104
|
+
}, $ = (e) => e.stopPropagation(), ke = (e) => Array.isArray(e.value) ? e.value : e.value ? [e.value] : [], Ae = (e, t) => e.includes(t) ? e.filter((e) => e !== t) : [...e, t], je = {
|
|
105
105
|
bg: {
|
|
106
106
|
_light: "bg.muted",
|
|
107
107
|
_dark: "bg.subtle"
|
|
@@ -111,12 +111,12 @@ var Te = async (e) => {
|
|
|
111
111
|
_light: "bg.subtle",
|
|
112
112
|
_dark: "bg.hover"
|
|
113
113
|
} }
|
|
114
|
-
},
|
|
114
|
+
}, Me = (e) => e.color ? `${e.color}.fg` : "fg.muted", Ne = (e) => e.isMultiValue ? e.isSelected ? /* @__PURE__ */ X(Te, { size: 14 }) : /* @__PURE__ */ X(we, { size: 14 }) : e.isSelected ? /* @__PURE__ */ X(ve, { size: 14 }) : null, Pe = (e) => {
|
|
115
115
|
let t = Y(49), { badge: n, onChange: a } = e, o, s, c, l, u, d, f, p, m, h, g, _, v, y;
|
|
116
116
|
if (t[0] !== n || t[1] !== a) {
|
|
117
117
|
y = Symbol.for("react.early_return_sentinel");
|
|
118
118
|
bb0: {
|
|
119
|
-
let e = n.options ?? [], b = !!(a && n.isEditable && e.length > 0), x = Array.isArray(n.value), S =
|
|
119
|
+
let e = n.options ?? [], b = !!(a && n.isEditable && e.length > 0), x = Array.isArray(n.value), S = ke(n), C;
|
|
120
120
|
t[16] === Symbol.for("react.memo_cache_sentinel") ? (C = {
|
|
121
121
|
onClick: $,
|
|
122
122
|
onPointerDown: $,
|
|
@@ -124,21 +124,21 @@ var Te = async (e) => {
|
|
|
124
124
|
}, t[16] = C) : C = t[16];
|
|
125
125
|
let w = C, T = (e) => {
|
|
126
126
|
let t;
|
|
127
|
-
t = x ?
|
|
127
|
+
t = x ? Ae(S, e) : S.includes(e) ? "" : e, a?.(n.attributeId, t);
|
|
128
128
|
}, E;
|
|
129
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
|
-
color:
|
|
132
|
+
color: Me(n)
|
|
133
133
|
}) : null, t[17] = n, t[18] = E);
|
|
134
134
|
let D;
|
|
135
135
|
t[19] === b ? D = t[20] : (D = b ? /* @__PURE__ */ X(U, {
|
|
136
|
-
as:
|
|
136
|
+
as: ye,
|
|
137
137
|
boxSize: "3",
|
|
138
138
|
color: "fg.muted"
|
|
139
139
|
}) : null, t[19] = b, t[20] = D);
|
|
140
140
|
let O;
|
|
141
|
-
t[21] !== n.label || t[22] !== E || t[23] !== D ? (O = /* @__PURE__ */ Z(
|
|
141
|
+
t[21] !== n.label || t[22] !== E || t[23] !== D ? (O = /* @__PURE__ */ Z(he, { children: [
|
|
142
142
|
E,
|
|
143
143
|
n.label,
|
|
144
144
|
D
|
|
@@ -146,18 +146,18 @@ 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(z, {
|
|
150
150
|
variant: "subtle",
|
|
151
151
|
gap: "2xs",
|
|
152
152
|
textStyle: "label/XS/medium",
|
|
153
|
-
...
|
|
153
|
+
...je,
|
|
154
154
|
children: k
|
|
155
155
|
}), t[25] = k, t[26] = e), y = e;
|
|
156
156
|
break bb0;
|
|
157
157
|
}
|
|
158
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(z, {
|
|
161
161
|
as: "span",
|
|
162
162
|
role: "button",
|
|
163
163
|
tabIndex: 0,
|
|
@@ -165,13 +165,13 @@ var Te = async (e) => {
|
|
|
165
165
|
gap: "2xs",
|
|
166
166
|
textStyle: "label/XS/medium",
|
|
167
167
|
cursor: "pointer",
|
|
168
|
-
...
|
|
168
|
+
...je,
|
|
169
169
|
onClick: $,
|
|
170
170
|
onPointerDown: $,
|
|
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 = fe, 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
176
|
return /* @__PURE__ */ X(W.Item, {
|
|
177
177
|
value: e.value,
|
|
@@ -189,7 +189,7 @@ var Te = async (e) => {
|
|
|
189
189
|
}),
|
|
190
190
|
iconColor: `${e.color ?? "gray"}.500`,
|
|
191
191
|
isSelected: t,
|
|
192
|
-
endContent:
|
|
192
|
+
endContent: Ne({
|
|
193
193
|
isMultiValue: x,
|
|
194
194
|
isSelected: t
|
|
195
195
|
}),
|
|
@@ -221,7 +221,7 @@ var Te = async (e) => {
|
|
|
221
221
|
closeOnSelect: _,
|
|
222
222
|
children: [v, S]
|
|
223
223
|
}), t[44] = l, t[45] = S, t[46] = _, t[47] = v, t[48] = C) : C = t[48], C;
|
|
224
|
-
},
|
|
224
|
+
}, Fe = (e) => {
|
|
225
225
|
let t = Y(30), { eyebrow: n, title: r, badges: i, customSlots: a, workspaceBadge: o, isSelected: c, draggable: l, onBadgeChange: u, onDragStart: d, onDragEnd: f, onClick: p } = e, m;
|
|
226
226
|
t[0] === i ? m = t[1] : (m = i === void 0 ? [] : i, t[0] = i, t[1] = m);
|
|
227
227
|
let h = m, g;
|
|
@@ -236,7 +236,7 @@ var Te = async (e) => {
|
|
|
236
236
|
t[8] !== n || t[9] !== o ? (O = n || o ? /* @__PURE__ */ Z(H, {
|
|
237
237
|
minW: "0",
|
|
238
238
|
gap: "2xs",
|
|
239
|
-
children: [n ? /* @__PURE__ */ X(
|
|
239
|
+
children: [n ? /* @__PURE__ */ X(q, {
|
|
240
240
|
textStyle: "label/XS",
|
|
241
241
|
color: "fg.muted",
|
|
242
242
|
fontFamily: "mono",
|
|
@@ -248,22 +248,22 @@ var Te = async (e) => {
|
|
|
248
248
|
})]
|
|
249
249
|
}) : null, t[8] = n, t[9] = o, t[10] = O) : O = t[10];
|
|
250
250
|
let k;
|
|
251
|
-
t[11] === r ? k = t[12] : (k = /* @__PURE__ */ X(
|
|
251
|
+
t[11] === r ? k = t[12] : (k = /* @__PURE__ */ X(q, {
|
|
252
252
|
textStyle: "paragraph/S/regular",
|
|
253
253
|
minW: "0",
|
|
254
254
|
overflowWrap: "anywhere",
|
|
255
255
|
children: r
|
|
256
256
|
}), t[11] = r, t[12] = k);
|
|
257
257
|
let A;
|
|
258
|
-
t[13] !== h || t[14] !== _ || t[15] !== y || t[16] !== u ? (A = y && /* @__PURE__ */ Z(
|
|
258
|
+
t[13] !== h || t[14] !== _ || t[15] !== y || t[16] !== u ? (A = y && /* @__PURE__ */ Z(me, {
|
|
259
259
|
gap: "2xs",
|
|
260
|
-
children: [h.map((e) => /* @__PURE__ */ X(
|
|
260
|
+
children: [h.map((e) => /* @__PURE__ */ X(Pe, {
|
|
261
261
|
badge: e,
|
|
262
262
|
onChange: u
|
|
263
263
|
}, e.attributeId)), _]
|
|
264
264
|
}), t[13] = h, t[14] = _, t[15] = y, t[16] = u, t[17] = A) : A = t[17];
|
|
265
265
|
let j;
|
|
266
|
-
return t[18] !== b || t[19] !== l || t[20] !== f || t[21] !== d || t[22] !== D || t[23] !== O || t[24] !== k || t[25] !== A || t[26] !== C || t[27] !== T || t[28] !== E ? (j = /* @__PURE__ */ Z(
|
|
266
|
+
return t[18] !== b || t[19] !== l || t[20] !== f || t[21] !== d || t[22] !== D || t[23] !== O || t[24] !== k || t[25] !== A || t[26] !== C || t[27] !== T || t[28] !== E ? (j = /* @__PURE__ */ Z(K, {
|
|
267
267
|
gap: "xs",
|
|
268
268
|
padding: "compact",
|
|
269
269
|
borderRadius: "compact",
|
|
@@ -286,18 +286,18 @@ var Te = async (e) => {
|
|
|
286
286
|
A
|
|
287
287
|
]
|
|
288
288
|
}), t[18] = b, t[19] = l, t[20] = f, t[21] = d, t[22] = D, t[23] = O, t[24] = k, t[25] = A, t[26] = C, t[27] = T, t[28] = E, t[29] = j) : j = t[29], j;
|
|
289
|
-
},
|
|
289
|
+
}, Ie = (e) => {
|
|
290
290
|
let t = Y(30), { columnId: r, group: i, selectedItemId: a, canDragIn: o, canDragOut: s, isDropTarget: c, onDragStart: l, onDragEnd: u, onGroupDragOver: d, onGroupDragLeave: f, onGroupDrop: p } = e, [m, h] = Q(!0), g = c ? "bg.subtle" : "transparent", _ = o ? d : void 0, v = o ? f : void 0, y = o ? p : void 0, b;
|
|
291
291
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (b = { bg: "bg.hover" }, t[0] = b) : b = t[0];
|
|
292
292
|
let x;
|
|
293
|
-
t[1] === Symbol.for("react.memo_cache_sentinel") ? (x = () => h(
|
|
293
|
+
t[1] === Symbol.for("react.memo_cache_sentinel") ? (x = () => h(Le), 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(B, {
|
|
296
296
|
display: "flex",
|
|
297
297
|
alignItems: "center",
|
|
298
298
|
flexShrink: 0,
|
|
299
299
|
children: /* @__PURE__ */ X(U, {
|
|
300
|
-
as:
|
|
300
|
+
as: be,
|
|
301
301
|
boxSize: "14px",
|
|
302
302
|
color: "fg.muted",
|
|
303
303
|
transform: S,
|
|
@@ -305,13 +305,13 @@ var Te = async (e) => {
|
|
|
305
305
|
})
|
|
306
306
|
}), t[2] = S, t[3] = C);
|
|
307
307
|
let w;
|
|
308
|
-
t[4] === i.label ? w = t[5] : (w = /* @__PURE__ */ X(
|
|
308
|
+
t[4] === i.label ? w = t[5] : (w = /* @__PURE__ */ X(q, {
|
|
309
309
|
textStyle: "label/S/medium",
|
|
310
310
|
color: "fg.muted",
|
|
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(z, {
|
|
315
315
|
variant: "number",
|
|
316
316
|
colorPalette: "gray",
|
|
317
317
|
size: "sm",
|
|
@@ -333,19 +333,19 @@ var Te = async (e) => {
|
|
|
333
333
|
]
|
|
334
334
|
}), t[8] = C, t[9] = w, t[10] = T, t[11] = E) : E = t[11];
|
|
335
335
|
let D;
|
|
336
|
-
t[12] !== o || t[13] !== s || t[14] !== m || t[15] !== i.items || t[16] !== u || t[17] !== l || t[18] !== p || t[19] !== a ? (D = m && /* @__PURE__ */ X(
|
|
336
|
+
t[12] !== o || t[13] !== s || t[14] !== m || t[15] !== i.items || t[16] !== u || t[17] !== l || t[18] !== p || t[19] !== a ? (D = m && /* @__PURE__ */ X(K, {
|
|
337
337
|
gap: "xs",
|
|
338
338
|
pt: "xs",
|
|
339
339
|
children: i.items.map((e) => /* @__PURE__ */ X(n, {
|
|
340
340
|
actions: e.contextMenuActions ?? [],
|
|
341
|
-
children: /* @__PURE__ */ X(
|
|
342
|
-
onDragOver: o ?
|
|
341
|
+
children: /* @__PURE__ */ X(B, {
|
|
342
|
+
onDragOver: o ? Re : void 0,
|
|
343
343
|
onDrop: o ? (t) => {
|
|
344
344
|
t.preventDefault(), t.stopPropagation();
|
|
345
345
|
let n = t.dataTransfer.getData("text/plain");
|
|
346
346
|
n && n !== e.id && p(t, e.id);
|
|
347
347
|
} : void 0,
|
|
348
|
-
children: /* @__PURE__ */ X(
|
|
348
|
+
children: /* @__PURE__ */ X(Fe, {
|
|
349
349
|
...e.cardProps,
|
|
350
350
|
isSelected: e.id === a,
|
|
351
351
|
draggable: s,
|
|
@@ -356,7 +356,7 @@ var Te = async (e) => {
|
|
|
356
356
|
}, e.id))
|
|
357
357
|
}), t[12] = o, t[13] = s, t[14] = m, t[15] = i.items, t[16] = u, t[17] = l, t[18] = p, t[19] = a, t[20] = D) : D = t[20];
|
|
358
358
|
let O;
|
|
359
|
-
return t[21] !== r || t[22] !== i.key || t[23] !== g || t[24] !== _ || t[25] !== E || t[26] !== D || t[27] !== v || t[28] !== y ? (O = /* @__PURE__ */ Z(
|
|
359
|
+
return t[21] !== r || t[22] !== i.key || t[23] !== g || t[24] !== _ || t[25] !== E || t[26] !== D || t[27] !== v || t[28] !== y ? (O = /* @__PURE__ */ Z(K, {
|
|
360
360
|
"data-column-id": r,
|
|
361
361
|
"data-group-key": i.key,
|
|
362
362
|
gap: "0",
|
|
@@ -369,16 +369,16 @@ var Te = async (e) => {
|
|
|
369
369
|
children: [E, D]
|
|
370
370
|
}), t[21] = r, t[22] = i.key, t[23] = g, t[24] = _, t[25] = E, t[26] = D, t[27] = v, t[28] = y, t[29] = O) : O = t[29], O;
|
|
371
371
|
};
|
|
372
|
-
function
|
|
372
|
+
function Le(e) {
|
|
373
373
|
return !e;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
375
|
+
function Re(e) {
|
|
376
376
|
e.preventDefault(), e.stopPropagation(), e.dataTransfer.dropEffect = "move";
|
|
377
377
|
}
|
|
378
378
|
//#endregion
|
|
379
379
|
//#region src/components/kanban-renderer/kanban-renderer-board.tsx
|
|
380
|
-
var
|
|
381
|
-
let r = Y(27), { columns: i, selectedItemId: a, onMoveItem: o, onMoveToGroup: s, onCreateStart: c, onColumnAction: l } = e, u = a === void 0 ? null : a, [d, f] = Q(null), [p, m] = Q(null), h =
|
|
380
|
+
var ze = (e) => {
|
|
381
|
+
let r = Y(27), { columns: i, selectedItemId: a, onMoveItem: o, onMoveToGroup: s, onCreateStart: c, onColumnAction: l } = e, u = a === void 0 ? null : a, [d, f] = Q(null), [p, m] = Q(null), h = Be, g;
|
|
382
382
|
r[0] === Symbol.for("react.memo_cache_sentinel") ? (g = () => {
|
|
383
383
|
f(null), m(null);
|
|
384
384
|
}, r[0] = g) : g = r[0];
|
|
@@ -407,7 +407,7 @@ var Re = (e) => {
|
|
|
407
407
|
let T;
|
|
408
408
|
if (r[6] !== d || r[7] !== p || r[8] !== i || r[9] !== C || r[10] !== l || r[11] !== c || r[12] !== o || r[13] !== s || r[14] !== u) {
|
|
409
409
|
let e;
|
|
410
|
-
r[16] !== d || r[17] !== p || r[18] !== C || r[19] !== l || r[20] !== c || r[21] !== o || r[22] !== s || r[23] !== u ? (e = (e) => /* @__PURE__ */ Z(
|
|
410
|
+
r[16] !== d || r[17] !== p || r[18] !== C || r[19] !== l || r[20] !== c || r[21] !== o || r[22] !== s || r[23] !== u ? (e = (e) => /* @__PURE__ */ Z(K, {
|
|
411
411
|
"data-testid": `board-column-${e.id}`,
|
|
412
412
|
gap: "xs",
|
|
413
413
|
padding: "compact",
|
|
@@ -424,7 +424,7 @@ var Re = (e) => {
|
|
|
424
424
|
onDragOver: e.canDragIn ? y(e.id) : void 0,
|
|
425
425
|
onDragLeave: e.canDragIn ? x : void 0,
|
|
426
426
|
onDrop: e.canDragIn ? C(e.id) : void 0,
|
|
427
|
-
children: [/* @__PURE__ */ X(
|
|
427
|
+
children: [/* @__PURE__ */ X(Oe, {
|
|
428
428
|
column: e,
|
|
429
429
|
onCreateStart: c,
|
|
430
430
|
onColumnAction: l
|
|
@@ -436,7 +436,7 @@ var Re = (e) => {
|
|
|
436
436
|
contentProps: { spaceY: "xs" },
|
|
437
437
|
children: e.groups && e.groups.length > 0 ? e.groups.map((t) => {
|
|
438
438
|
let n = `${e.id}::${t.key}`;
|
|
439
|
-
return /* @__PURE__ */ X(
|
|
439
|
+
return /* @__PURE__ */ X(Ie, {
|
|
440
440
|
columnId: e.id,
|
|
441
441
|
group: t,
|
|
442
442
|
selectedItemId: u,
|
|
@@ -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(B, {
|
|
472
472
|
onDragOver: e.canDragIn ? (t) => {
|
|
473
473
|
t.preventDefault(), t.stopPropagation(), t.dataTransfer.dropEffect = "move", f(e.id);
|
|
474
474
|
} : void 0,
|
|
@@ -477,7 +477,7 @@ var Re = (e) => {
|
|
|
477
477
|
let r = n.dataTransfer.getData("text/plain");
|
|
478
478
|
r && r !== t.id && o?.(r, e.id, { beforeItemId: t.id });
|
|
479
479
|
} : void 0,
|
|
480
|
-
children: /* @__PURE__ */ X(
|
|
480
|
+
children: /* @__PURE__ */ X(Fe, {
|
|
481
481
|
...t.cardProps,
|
|
482
482
|
isSelected: t.id === u,
|
|
483
483
|
draggable: e.canDragOut,
|
|
@@ -499,14 +499,14 @@ var Re = (e) => {
|
|
|
499
499
|
children: T
|
|
500
500
|
}), r[25] = T, r[26] = E), E;
|
|
501
501
|
};
|
|
502
|
-
function
|
|
502
|
+
function Be(e) {
|
|
503
503
|
return (t) => {
|
|
504
504
|
t.dataTransfer.setData("text/plain", e), t.dataTransfer.effectAllowed = "move";
|
|
505
505
|
};
|
|
506
506
|
}
|
|
507
507
|
//#endregion
|
|
508
508
|
//#region src/components/kanban-renderer/kanban-renderer-list.tsx
|
|
509
|
-
var
|
|
509
|
+
var Ve = (e, t, n = 0) => {
|
|
510
510
|
let r = [];
|
|
511
511
|
for (let i of e) {
|
|
512
512
|
let e = (i.children?.length ?? 0) > 0;
|
|
@@ -516,10 +516,10 @@ var Be = (e, t, n = 0) => {
|
|
|
516
516
|
depth: n,
|
|
517
517
|
isGroup: i.isGroup === !0,
|
|
518
518
|
canExpand: e
|
|
519
|
-
}), e &&
|
|
519
|
+
}), e && Ue(t, i.id) && r.push(...Ve(i.children ?? [], t, n + 1));
|
|
520
520
|
}
|
|
521
521
|
return r;
|
|
522
|
-
},
|
|
522
|
+
}, He = (e, t) => {
|
|
523
523
|
if (e) return { _before: {
|
|
524
524
|
content: "\"\"",
|
|
525
525
|
position: "absolute",
|
|
@@ -529,20 +529,20 @@ var Be = (e, t, n = 0) => {
|
|
|
529
529
|
width: t ? "3px" : "100%",
|
|
530
530
|
height: t ? "100%" : "2px"
|
|
531
531
|
} };
|
|
532
|
-
},
|
|
532
|
+
}, Ue = (e, t) => e[t] !== !1, We = (e, t, n) => ({
|
|
533
533
|
...e,
|
|
534
534
|
[t]: n
|
|
535
|
-
}),
|
|
535
|
+
}), Ge = (e, t) => t ? /* @__PURE__ */ Z(H, {
|
|
536
536
|
gap: "xs",
|
|
537
537
|
minW: "0",
|
|
538
538
|
maxW: "full",
|
|
539
539
|
flex: "1",
|
|
540
|
-
children: [/* @__PURE__ */ X(
|
|
540
|
+
children: [/* @__PURE__ */ X(q, {
|
|
541
541
|
textStyle: "label/S/medium",
|
|
542
542
|
minW: "0",
|
|
543
543
|
truncate: !0,
|
|
544
544
|
children: e.title
|
|
545
|
-
}), /* @__PURE__ */ X(
|
|
545
|
+
}), /* @__PURE__ */ X(q, {
|
|
546
546
|
textStyle: "label/XS",
|
|
547
547
|
color: "fg.muted",
|
|
548
548
|
flexShrink: 0,
|
|
@@ -553,33 +553,33 @@ var Be = (e, t, n = 0) => {
|
|
|
553
553
|
minW: "0",
|
|
554
554
|
maxW: "full",
|
|
555
555
|
flex: "1",
|
|
556
|
-
children: [e.eyebrow ? /* @__PURE__ */ X(
|
|
556
|
+
children: [e.eyebrow ? /* @__PURE__ */ X(q, {
|
|
557
557
|
"data-testid": "list-row-eyebrow",
|
|
558
558
|
flexShrink: 0,
|
|
559
559
|
textStyle: "mono/XS",
|
|
560
560
|
color: "fg.muted",
|
|
561
561
|
truncate: !0,
|
|
562
562
|
children: e.eyebrow
|
|
563
|
-
}) : null, /* @__PURE__ */ X(
|
|
563
|
+
}) : null, /* @__PURE__ */ X(q, {
|
|
564
564
|
textStyle: "paragraph/S/regular",
|
|
565
565
|
minW: "0",
|
|
566
566
|
truncate: !0,
|
|
567
567
|
children: e.title
|
|
568
568
|
})]
|
|
569
|
-
}),
|
|
569
|
+
}), Ke = (e) => (e.badges?.length ?? 0) > 0 || (e.customSlots?.length ?? 0) > 0 ? /* @__PURE__ */ X(H, {
|
|
570
570
|
gap: "xs",
|
|
571
571
|
flexShrink: 0,
|
|
572
|
-
children: /* @__PURE__ */ Z(
|
|
572
|
+
children: /* @__PURE__ */ Z(me, {
|
|
573
573
|
gap: "2xs",
|
|
574
574
|
flexShrink: 0,
|
|
575
|
-
children: [e.badges?.map((t) => /* @__PURE__ */ X(
|
|
575
|
+
children: [e.badges?.map((t) => /* @__PURE__ */ X(Pe, {
|
|
576
576
|
badge: t,
|
|
577
577
|
onChange: e.onBadgeChange
|
|
578
578
|
}, t.attributeId)), e.customSlots]
|
|
579
579
|
})
|
|
580
|
-
}) : null,
|
|
580
|
+
}) : null, qe = (e, t) => ({
|
|
581
581
|
id: e.id,
|
|
582
|
-
label:
|
|
582
|
+
label: Ge(e, e.isGroup === !0),
|
|
583
583
|
icon: e.statusIcon ? /* @__PURE__ */ X(U, {
|
|
584
584
|
"data-testid": e.isGroup ? "list-status-icon" : "row-status-icon",
|
|
585
585
|
as: e.statusIcon,
|
|
@@ -587,7 +587,7 @@ var Be = (e, t, n = 0) => {
|
|
|
587
587
|
colorPalette: e.statusColorPalette ?? e.countColorPalette ?? "gray",
|
|
588
588
|
color: e.statusColor ?? (e.isGroup || e.statusColorPalette ? "colorPalette.solid" : "fg.muted")
|
|
589
589
|
}) : void 0,
|
|
590
|
-
endContent:
|
|
590
|
+
endContent: Ke(e),
|
|
591
591
|
isContainer: t,
|
|
592
592
|
contextMenuItems: e.contextMenuActions?.map((e) => ({
|
|
593
593
|
id: e.key,
|
|
@@ -598,21 +598,21 @@ var Be = (e, t, n = 0) => {
|
|
|
598
598
|
endContent: e.endContent,
|
|
599
599
|
onAction: e.onClick
|
|
600
600
|
}))
|
|
601
|
-
}),
|
|
601
|
+
}), Je = (e) => {
|
|
602
602
|
let t = Y(24), { items: n, selectedItemId: r, expandedGroups: i, onItemClick: a, onExpandedGroupChange: o } = e, s = r === void 0 ? null : r, c;
|
|
603
603
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (c = {}, t[0] = c) : c = t[0];
|
|
604
604
|
let [l, u] = Q(c), [d, f] = Q(null), [p, m] = Q(null), h = i ?? l, g, _;
|
|
605
605
|
if (t[1] !== d || t[2] !== p || t[3] !== h || t[4] !== i || t[5] !== n || t[6] !== o || t[7] !== a || t[8] !== s) {
|
|
606
|
-
let e =
|
|
606
|
+
let e = Ve(n, h), r;
|
|
607
607
|
t[11] !== i || t[12] !== o ? (r = (e, t) => {
|
|
608
|
-
o?.(e, t), i === void 0 && u((n) =>
|
|
608
|
+
o?.(e, t), i === void 0 && u((n) => We(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 = B;
|
|
612
612
|
let l;
|
|
613
|
-
t[14] !== d || t[15] !== p || t[16] !== h || t[17] !== c || t[18] !== a || t[19] !== s ? (l = (e) => /* @__PURE__ */ X(
|
|
613
|
+
t[14] !== d || t[15] !== p || t[16] !== h || t[17] !== c || t[18] !== a || t[19] !== s ? (l = (e) => /* @__PURE__ */ X(Ye, {
|
|
614
614
|
row: e,
|
|
615
|
-
isExpanded:
|
|
615
|
+
isExpanded: Ue(h, e.id),
|
|
616
616
|
selectedItemId: s,
|
|
617
617
|
activeDropTargetId: d,
|
|
618
618
|
draggedItemId: p,
|
|
@@ -624,9 +624,9 @@ var Be = (e, t, n = 0) => {
|
|
|
624
624
|
} else g = t[9], _ = t[10];
|
|
625
625
|
let v;
|
|
626
626
|
return t[21] !== g || t[22] !== _ ? (v = /* @__PURE__ */ X(g, { children: _ }), t[21] = g, t[22] = _, t[23] = v) : v = t[23], v;
|
|
627
|
-
},
|
|
627
|
+
}, Ye = (e) => {
|
|
628
628
|
let t = Y(56), { row: n, isExpanded: i, selectedItemId: a, activeDropTargetId: o, draggedItemId: s, onDraggedItemChange: c, onDropTargetChange: l, onItemClick: u, onExpandedChange: d } = e, { item: f, isGroup: p, canExpand: m } = n, h = f.id === a, g = !!f.onDropRow && f.id !== s, _ = g && f.id === o, v;
|
|
629
|
-
t[0] !== m || t[1] !== f ? (v =
|
|
629
|
+
t[0] !== m || t[1] !== f ? (v = qe(f, m), t[0] = m, t[1] = f, t[2] = v) : v = t[2];
|
|
630
630
|
let y = v, b;
|
|
631
631
|
t[3] !== i || t[4] !== d || t[5] !== n.id ? (b = () => d(n.id, !i), t[3] = i, t[4] = d, t[5] = n.id, t[6] = b) : b = t[6];
|
|
632
632
|
let x = b, S;
|
|
@@ -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 ee = M,
|
|
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, N = _ ? "true" : void 0, P = _ ? "bg.subtle" : "transparent", te = f.draggable, F;
|
|
664
|
+
t[32] !== m || t[33] !== _ ? (F = He(_, m), t[32] = m, t[33] = _, t[34] = F) : F = t[34];
|
|
665
|
+
let I = f.onDropRow ? k : void 0, ne = p ? void 0 : f.title, re = p ? "compact" : "collection", L;
|
|
666
|
+
t[35] !== m || t[36] !== C || t[37] !== i || t[38] !== h || t[39] !== n.depth || t[40] !== y || t[41] !== ne || t[42] !== re || t[43] !== x ? (L = /* @__PURE__ */ X(r, {
|
|
667
667
|
...y,
|
|
668
|
-
"aria-label":
|
|
669
|
-
variant:
|
|
668
|
+
"aria-label": ne,
|
|
669
|
+
variant: re,
|
|
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] !== ee || t[46] !== D || t[47] !== T || t[48] !== j || t[49] !== f.draggable || t[50] !==
|
|
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] = ne, t[42] = re, t[43] = x, t[44] = L) : L = t[44];
|
|
678
|
+
let R;
|
|
679
|
+
return t[45] !== ee || t[46] !== D || t[47] !== T || t[48] !== j || t[49] !== f.draggable || t[50] !== F || t[51] !== I || t[52] !== L || t[53] !== N || t[54] !== P ? (R = /* @__PURE__ */ X(B, {
|
|
680
|
+
"data-drop-target": N,
|
|
681
681
|
position: "relative",
|
|
682
682
|
borderBottomWidth: "1px",
|
|
683
683
|
borderBottomColor: "border.subtle",
|
|
684
|
-
bg:
|
|
685
|
-
draggable:
|
|
684
|
+
bg: P,
|
|
685
|
+
draggable: te,
|
|
686
686
|
transition: "background 120ms ease",
|
|
687
|
-
...
|
|
687
|
+
...F,
|
|
688
688
|
onDragStart: T,
|
|
689
689
|
onDragOver: D,
|
|
690
|
-
onDragLeave:
|
|
690
|
+
onDragLeave: I,
|
|
691
691
|
onDragEnd: ee,
|
|
692
692
|
onDrop: j,
|
|
693
|
-
children:
|
|
694
|
-
}), t[45] = ee, t[46] = D, t[47] = T, t[48] = j, t[49] = f.draggable, t[50] =
|
|
695
|
-
},
|
|
693
|
+
children: L
|
|
694
|
+
}), t[45] = ee, t[46] = D, t[47] = T, t[48] = j, t[49] = f.draggable, t[50] = F, t[51] = I, t[52] = L, t[53] = N, t[54] = P, t[55] = R) : R = t[55], R;
|
|
695
|
+
}, Xe = (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(B, {
|
|
700
700
|
height: a,
|
|
701
701
|
children: n
|
|
702
702
|
}) : n, t[0] = n, t[1] = a, t[2] = e) : e = t[2], e;
|
|
@@ -707,21 +707,21 @@ var Be = (e, t, n = 0) => {
|
|
|
707
707
|
description: i,
|
|
708
708
|
height: a
|
|
709
709
|
}), t[3] = i, t[4] = a, t[5] = r, t[6] = o) : o = t[6], o;
|
|
710
|
-
},
|
|
710
|
+
}, Ze = (e) => {
|
|
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(B, {
|
|
715
715
|
flex: "1",
|
|
716
716
|
minH: "0",
|
|
717
|
-
children: r.length > 0 ? /* @__PURE__ */ X(
|
|
717
|
+
children: r.length > 0 ? /* @__PURE__ */ X(ze, {
|
|
718
718
|
columns: r,
|
|
719
719
|
selectedItemId: o,
|
|
720
720
|
onMoveItem: u,
|
|
721
721
|
onMoveToGroup: d,
|
|
722
722
|
onCreateStart: f,
|
|
723
723
|
onColumnAction: p
|
|
724
|
-
}) : /* @__PURE__ */ X(
|
|
724
|
+
}) : /* @__PURE__ */ X(Xe, {
|
|
725
725
|
emptyState: s,
|
|
726
726
|
title: c,
|
|
727
727
|
description: l,
|
|
@@ -731,7 +731,7 @@ var Be = (e, t, n = 0) => {
|
|
|
731
731
|
}
|
|
732
732
|
if (i.length > 0) {
|
|
733
733
|
let e;
|
|
734
|
-
return t[10] !== a || t[11] !== i || t[12] !== h || t[13] !== m || t[14] !== o ? (e = /* @__PURE__ */ X(
|
|
734
|
+
return t[10] !== a || t[11] !== i || t[12] !== h || t[13] !== m || t[14] !== o ? (e = /* @__PURE__ */ X(Je, {
|
|
735
735
|
items: i,
|
|
736
736
|
selectedItemId: o,
|
|
737
737
|
expandedGroups: a,
|
|
@@ -739,14 +739,14 @@ var Be = (e, t, n = 0) => {
|
|
|
739
739
|
}, h), t[10] = a, t[11] = i, t[12] = h, t[13] = m, t[14] = o, t[15] = e) : e = t[15], e;
|
|
740
740
|
}
|
|
741
741
|
let g;
|
|
742
|
-
return t[16] !== l || t[17] !== s || t[18] !== c ? (g = /* @__PURE__ */ X(
|
|
742
|
+
return t[16] !== l || t[17] !== s || t[18] !== c ? (g = /* @__PURE__ */ X(Xe, {
|
|
743
743
|
emptyState: s,
|
|
744
744
|
title: c,
|
|
745
745
|
description: l
|
|
746
746
|
}), t[16] = l, t[17] = s, t[18] = c, t[19] = g) : g = t[19], g;
|
|
747
|
-
},
|
|
747
|
+
}, Qe = (e) => {
|
|
748
748
|
let t = Y(2), { children: n } = e, r;
|
|
749
|
-
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ X(
|
|
749
|
+
return t[0] === n ? r = t[1] : (r = /* @__PURE__ */ X(q, {
|
|
750
750
|
minH: "0.75rem",
|
|
751
751
|
textStyle: "label/XS",
|
|
752
752
|
color: "fg.muted",
|
|
@@ -755,9 +755,9 @@ var Be = (e, t, n = 0) => {
|
|
|
755
755
|
textTransform: "uppercase",
|
|
756
756
|
children: n
|
|
757
757
|
}), t[0] = n, t[1] = r), r;
|
|
758
|
-
},
|
|
758
|
+
}, $e = (e) => {
|
|
759
759
|
let t = Y(15), { group: n, params: r, renderParam: i, variant: a, width: o } = e, s = o === void 0 ? "auto" : o, c = n.title, l = a === "small" ? "2xs" : "xs", u;
|
|
760
|
-
t[0] === n.title ? u = t[1] : (u = /* @__PURE__ */ X(
|
|
760
|
+
t[0] === n.title ? u = t[1] : (u = /* @__PURE__ */ X(Qe, { children: n.title }), t[0] = n.title, t[1] = u);
|
|
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;
|
|
@@ -770,7 +770,7 @@ var Be = (e, t, n = 0) => {
|
|
|
770
770
|
children: f
|
|
771
771
|
}), t[5] = d, t[6] = f, t[7] = s, t[8] = p) : p = t[8];
|
|
772
772
|
let m;
|
|
773
|
-
return t[9] !== n.title || t[10] !== l || t[11] !== u || t[12] !== p || t[13] !== s ? (m = /* @__PURE__ */ Z(
|
|
773
|
+
return t[9] !== n.title || t[10] !== l || t[11] !== u || t[12] !== p || t[13] !== s ? (m = /* @__PURE__ */ Z(pe, {
|
|
774
774
|
as: "section",
|
|
775
775
|
"aria-label": c,
|
|
776
776
|
gap: l,
|
|
@@ -779,11 +779,11 @@ var Be = (e, t, n = 0) => {
|
|
|
779
779
|
width: s,
|
|
780
780
|
children: [u, p]
|
|
781
781
|
}), t[9] = n.title, t[10] = l, t[11] = u, t[12] = p, t[13] = s, t[14] = m) : m = t[14], m;
|
|
782
|
-
},
|
|
782
|
+
}, et = (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(oe), b = _.map(tt), x;
|
|
786
|
+
t[15] !== i || t[16] !== a || t[17] !== o || t[18] !== s || t[19] !== v ? (x = (e) => /* @__PURE__ */ X(se, {
|
|
787
787
|
param: e,
|
|
788
788
|
defaultValues: i,
|
|
789
789
|
onChange: a,
|
|
@@ -792,15 +792,15 @@ 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(
|
|
796
|
-
l =
|
|
795
|
+
let S = x, C = y.filter(nt), w = y.filter(ae), T = b.map(it).filter(at), E = b.map(ot).filter(st), D = v === "small" ? "xs" : "sm", O = C.length > 0 || T.length > 0;
|
|
796
|
+
l = K, 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",
|
|
800
800
|
minW: "0",
|
|
801
801
|
children: [C.map(S), T.map((e) => {
|
|
802
802
|
let { group: t, params: n } = e;
|
|
803
|
-
return /* @__PURE__ */ X(
|
|
803
|
+
return /* @__PURE__ */ X($e, {
|
|
804
804
|
group: t,
|
|
805
805
|
params: n,
|
|
806
806
|
renderParam: S,
|
|
@@ -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(B, {
|
|
813
813
|
width: "full",
|
|
814
814
|
minW: "0",
|
|
815
815
|
children: S(e)
|
|
@@ -817,7 +817,7 @@ var Be = (e, t, n = 0) => {
|
|
|
817
817
|
let A;
|
|
818
818
|
t[23] !== S || t[24] !== v ? (A = (e) => {
|
|
819
819
|
let { group: t, params: n } = e;
|
|
820
|
-
return /* @__PURE__ */ X(
|
|
820
|
+
return /* @__PURE__ */ X($e, {
|
|
821
821
|
group: t,
|
|
822
822
|
params: n,
|
|
823
823
|
renderParam: S,
|
|
@@ -839,53 +839,53 @@ var Be = (e, t, n = 0) => {
|
|
|
839
839
|
]
|
|
840
840
|
}), t[26] = l, t[27] = u, t[28] = d, t[29] = f, t[30] = p, t[31] = m, t[32] = h, t[33] = g, t[34] = _) : _ = t[34], _;
|
|
841
841
|
};
|
|
842
|
-
function
|
|
842
|
+
function tt(e) {
|
|
843
843
|
return {
|
|
844
844
|
...e,
|
|
845
|
-
params: e.params.filter(
|
|
845
|
+
params: e.params.filter(oe)
|
|
846
846
|
};
|
|
847
847
|
}
|
|
848
|
-
function tt(e) {
|
|
849
|
-
return !L(e);
|
|
850
|
-
}
|
|
851
848
|
function nt(e) {
|
|
852
|
-
return !
|
|
849
|
+
return !ae(e);
|
|
853
850
|
}
|
|
854
851
|
function rt(e) {
|
|
852
|
+
return !ae(e);
|
|
853
|
+
}
|
|
854
|
+
function it(e) {
|
|
855
855
|
return {
|
|
856
856
|
group: e,
|
|
857
|
-
params: e.params.filter(
|
|
857
|
+
params: e.params.filter(rt)
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
|
-
function
|
|
860
|
+
function at(e) {
|
|
861
861
|
let { params: t } = e;
|
|
862
862
|
return t.length > 0;
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function ot(e) {
|
|
865
865
|
return {
|
|
866
866
|
group: e,
|
|
867
|
-
params: e.params.filter(
|
|
867
|
+
params: e.params.filter(ae)
|
|
868
868
|
};
|
|
869
869
|
}
|
|
870
|
-
function
|
|
870
|
+
function st(e) {
|
|
871
871
|
let { params: t } = e;
|
|
872
872
|
return t.length > 0;
|
|
873
873
|
}
|
|
874
874
|
//#endregion
|
|
875
875
|
//#region src/components/kanban-renderer/kanban-renderer-create-field.tsx
|
|
876
|
-
var
|
|
876
|
+
var ct = (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(P, {
|
|
881
881
|
defaultState: a,
|
|
882
882
|
isEditable: o,
|
|
883
883
|
placeholder: r.placeholder,
|
|
884
884
|
autoFocus: !0,
|
|
885
885
|
onChange: s
|
|
886
886
|
}), t[2] = r.placeholder, t[3] = a, t[4] = o, t[5] = s, t[6] = c) : c = t[6], c;
|
|
887
|
-
},
|
|
888
|
-
let t = Y(24), { disabled: n, field: r, removeLabel: i, value: o, onChange: s } = e, c =
|
|
887
|
+
}, lt = (e) => {
|
|
888
|
+
let t = Y(24), { disabled: n, field: r, removeLabel: i, value: o, onChange: s } = e, c = _e(null), l;
|
|
889
889
|
t[0] === o ? l = t[1] : (l = Array.isArray(o) ? o : [], t[0] = o, t[1] = l);
|
|
890
890
|
let u = l, d = r.multiple !== !1, f;
|
|
891
891
|
t[2] !== r.multiple || t[3] !== u || t[4] !== s ? (f = (e) => {
|
|
@@ -903,11 +903,11 @@ var st = (e) => {
|
|
|
903
903
|
}), t[6] = r.accept, t[7] = d, t[8] = f, t[9] = p) : p = t[9];
|
|
904
904
|
let m, h;
|
|
905
905
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (m = () => c.current?.click(), h = /* @__PURE__ */ X(U, {
|
|
906
|
-
as:
|
|
906
|
+
as: Se,
|
|
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(ce, {
|
|
911
911
|
size: "xs",
|
|
912
912
|
variant: "ghost",
|
|
913
913
|
disabled: n,
|
|
@@ -915,7 +915,7 @@ var st = (e) => {
|
|
|
915
915
|
children: [h, r.label]
|
|
916
916
|
}), t[12] = n, t[13] = r.label, t[14] = g) : g = t[14];
|
|
917
917
|
let _;
|
|
918
|
-
t[15] !== n || t[16] !== u || t[17] !== s || t[18] !== i ? (_ = u.length > 0 ? /* @__PURE__ */ X(
|
|
918
|
+
t[15] !== n || t[16] !== u || t[17] !== s || t[18] !== i ? (_ = u.length > 0 ? /* @__PURE__ */ X(me, {
|
|
919
919
|
gap: "2xs",
|
|
920
920
|
children: u.map((e, t) => /* @__PURE__ */ X(a, {
|
|
921
921
|
file: e,
|
|
@@ -925,7 +925,7 @@ var st = (e) => {
|
|
|
925
925
|
}, `${e.name}-${t.toString()}`))
|
|
926
926
|
}) : null, t[15] = n, t[16] = u, t[17] = s, t[18] = i, t[19] = _) : _ = t[19];
|
|
927
927
|
let v;
|
|
928
|
-
return t[20] !== p || t[21] !== g || t[22] !== _ ? (v = /* @__PURE__ */ Z(
|
|
928
|
+
return t[20] !== p || t[21] !== g || t[22] !== _ ? (v = /* @__PURE__ */ Z(K, {
|
|
929
929
|
gap: "2xs",
|
|
930
930
|
align: "start",
|
|
931
931
|
children: [
|
|
@@ -934,13 +934,13 @@ var st = (e) => {
|
|
|
934
934
|
_
|
|
935
935
|
]
|
|
936
936
|
}), t[20] = p, t[21] = g, t[22] = _, t[23] = v) : v = t[23], v;
|
|
937
|
-
},
|
|
937
|
+
}, ut = (e) => {
|
|
938
938
|
let t = Y(45), { disabled: n, field: r, value: i, onChange: a } = e;
|
|
939
939
|
if (r.type === "longtext") {
|
|
940
940
|
let e = typeof i == "string" ? i : "", o;
|
|
941
941
|
t[0] === a ? o = t[1] : (o = (e) => a(e.target.value), t[0] = a, t[1] = o);
|
|
942
942
|
let s;
|
|
943
|
-
return t[2] !== n || t[3] !== r.label || t[4] !== r.placeholder || t[5] !== e || t[6] !== o ? (s = /* @__PURE__ */ X(
|
|
943
|
+
return t[2] !== n || t[3] !== r.label || t[4] !== r.placeholder || t[5] !== e || t[6] !== o ? (s = /* @__PURE__ */ X(J, {
|
|
944
944
|
"aria-label": r.label,
|
|
945
945
|
minH: "120px",
|
|
946
946
|
size: "sm",
|
|
@@ -956,11 +956,11 @@ var st = (e) => {
|
|
|
956
956
|
let l;
|
|
957
957
|
t[11] === r.options ? l = t[12] : (l = r.options ?? [], t[11] = r.options, t[12] = l);
|
|
958
958
|
let u;
|
|
959
|
-
t[13] === l ? u = t[14] : (u = l.map(
|
|
959
|
+
t[13] === l ? u = t[14] : (u = l.map(ft), t[13] = l, t[14] = u);
|
|
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(ie, {
|
|
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(ce, {
|
|
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(de, {
|
|
993
993
|
"aria-label": r.label,
|
|
994
994
|
size: "sm",
|
|
995
995
|
type: o,
|
|
@@ -998,11 +998,11 @@ var st = (e) => {
|
|
|
998
998
|
disabled: n,
|
|
999
999
|
onChange: c
|
|
1000
1000
|
}), t[38] = n, t[39] = r.label, t[40] = r.placeholder, t[41] = o, t[42] = s, t[43] = c, t[44] = l) : l = t[44], l;
|
|
1001
|
-
},
|
|
1001
|
+
}, dt = (e) => {
|
|
1002
1002
|
let t = Y(20), { disabled: n, field: r, removeLabel: i, value: a, onChange: o } = e;
|
|
1003
1003
|
if (r.type === "files") {
|
|
1004
1004
|
let e;
|
|
1005
|
-
return t[0] !== n || t[1] !== r || t[2] !== o || t[3] !== i || t[4] !== a ? (e = /* @__PURE__ */ X(
|
|
1005
|
+
return t[0] !== n || t[1] !== r || t[2] !== o || t[3] !== i || t[4] !== a ? (e = /* @__PURE__ */ X(lt, {
|
|
1006
1006
|
disabled: n,
|
|
1007
1007
|
field: r,
|
|
1008
1008
|
removeLabel: i,
|
|
@@ -1012,27 +1012,27 @@ var st = (e) => {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
if (r.type === "markdown") {
|
|
1014
1014
|
let e;
|
|
1015
|
-
return t[6] !== n || t[7] !== r || t[8] !== o ? (e = /* @__PURE__ */ X(
|
|
1015
|
+
return t[6] !== n || t[7] !== r || t[8] !== o ? (e = /* @__PURE__ */ X(ct, {
|
|
1016
1016
|
disabled: n,
|
|
1017
1017
|
field: r,
|
|
1018
1018
|
onChange: o
|
|
1019
1019
|
}), t[6] = n, t[7] = r, t[8] = o, t[9] = e) : e = t[9], e;
|
|
1020
1020
|
}
|
|
1021
1021
|
let s = `${r.label}${r.required ? " *" : ""}`, c;
|
|
1022
|
-
t[10] === s ? c = t[11] : (c = /* @__PURE__ */ X(
|
|
1022
|
+
t[10] === s ? c = t[11] : (c = /* @__PURE__ */ X(q, {
|
|
1023
1023
|
textStyle: "label/S/medium",
|
|
1024
1024
|
children: s
|
|
1025
1025
|
}), t[10] = s, t[11] = c);
|
|
1026
1026
|
let l;
|
|
1027
|
-
t[12] === r.description ? l = t[13] : (l = r.description ? /* @__PURE__ */ X(
|
|
1027
|
+
t[12] === r.description ? l = t[13] : (l = r.description ? /* @__PURE__ */ X(q, {
|
|
1028
1028
|
textStyle: "paragraph/XS/regular",
|
|
1029
1029
|
color: "fg.muted",
|
|
1030
1030
|
children: r.description
|
|
1031
1031
|
}) : null, t[12] = r.description, t[13] = l);
|
|
1032
1032
|
let u;
|
|
1033
|
-
t[14] === e ? u = t[15] : (u = /* @__PURE__ */ X(
|
|
1033
|
+
t[14] === e ? u = t[15] : (u = /* @__PURE__ */ X(ut, { ...e }), t[14] = e, t[15] = u);
|
|
1034
1034
|
let d;
|
|
1035
|
-
return t[16] !== c || t[17] !== l || t[18] !== u ? (d = /* @__PURE__ */ Z(
|
|
1035
|
+
return t[16] !== c || t[17] !== l || t[18] !== u ? (d = /* @__PURE__ */ Z(K, {
|
|
1036
1036
|
gap: "2xs",
|
|
1037
1037
|
children: [
|
|
1038
1038
|
c,
|
|
@@ -1041,7 +1041,7 @@ var st = (e) => {
|
|
|
1041
1041
|
]
|
|
1042
1042
|
}), t[16] = c, t[17] = l, t[18] = u, t[19] = d) : d = t[19], d;
|
|
1043
1043
|
};
|
|
1044
|
-
function
|
|
1044
|
+
function ft(e) {
|
|
1045
1045
|
return {
|
|
1046
1046
|
id: e.value,
|
|
1047
1047
|
name: e.label,
|
|
@@ -1051,7 +1051,7 @@ function dt(e) {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
//#endregion
|
|
1053
1053
|
//#region src/components/kanban-renderer/kanban-renderer-create-dialog.tsx
|
|
1054
|
-
var
|
|
1054
|
+
var pt = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !== "boolean" && "", mt = (e) => Object.fromEntries(e.map((e) => [e.id, e.defaultValue ?? pt(e)])), ht = (e, t) => e.required ? Array.isArray(t) ? t.length > 0 : typeof t == "string" ? t.trim().length > 0 : t != null : !0, gt = (e) => e.filter((e) => e.editable), _t = (e, t, n) => Object.fromEntries(e.map((e) => [e.id, e.id === t ? n : e.type.kind === "enum-multi" ? [] : ""])), vt = (e, t) => {
|
|
1055
1055
|
let n = {
|
|
1056
1056
|
id: e.id,
|
|
1057
1057
|
name: e.label,
|
|
@@ -1085,23 +1085,23 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1085
1085
|
defaultValue: "",
|
|
1086
1086
|
singleLine: !0
|
|
1087
1087
|
};
|
|
1088
|
-
},
|
|
1089
|
-
let { open: t, columnId: n, columnAttributeId: r, attributes: i, config: a, onClose: s, onSubmit: c } = e, [l, u] = Q({}), [d, f] = Q({}), [p, m] = Q(!1), [h, g] = Q(""), [_, v] = Q(0), y =
|
|
1090
|
-
|
|
1088
|
+
}, yt = (e) => {
|
|
1089
|
+
let { open: t, columnId: n, columnAttributeId: r, attributes: i, config: a, onClose: s, onSubmit: c } = e, [l, u] = Q({}), [d, f] = Q({}), [p, m] = Q(!1), [h, g] = Q(""), [_, v] = Q(0), y = _e(!1), b = gt(i);
|
|
1090
|
+
ge(() => {
|
|
1091
1091
|
if (!t) {
|
|
1092
1092
|
y.current = !1;
|
|
1093
1093
|
return;
|
|
1094
1094
|
}
|
|
1095
|
-
y.current || (y.current = !0, u(
|
|
1095
|
+
y.current || (y.current = !0, u(mt(a.fields)), f(_t(gt(i), r, n)), g(""), v((e) => e + 1));
|
|
1096
1096
|
}, [
|
|
1097
1097
|
i,
|
|
1098
1098
|
r,
|
|
1099
1099
|
n,
|
|
1100
1100
|
a.fields,
|
|
1101
1101
|
t
|
|
1102
|
-
]),
|
|
1102
|
+
]), ge(() => {
|
|
1103
1103
|
if (!t) return;
|
|
1104
|
-
let e =
|
|
1104
|
+
let e = mt(a.fields), n = new Set(a.fields.map((e) => e.id));
|
|
1105
1105
|
u((t) => {
|
|
1106
1106
|
let r = Object.entries(t).filter(([e]) => n.has(e)), i = Object.entries(e).filter(([e]) => !(e in t));
|
|
1107
1107
|
return i.length === 0 && r.length === Object.keys(t).length ? t : {
|
|
@@ -1109,9 +1109,9 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1109
1109
|
...Object.fromEntries(r)
|
|
1110
1110
|
};
|
|
1111
1111
|
});
|
|
1112
|
-
}, [a.fields, t]),
|
|
1112
|
+
}, [a.fields, t]), ge(() => {
|
|
1113
1113
|
if (!t) return;
|
|
1114
|
-
let e =
|
|
1114
|
+
let e = gt(i), a = _t(e, r, n), o = new Set(e.map((e) => e.id));
|
|
1115
1115
|
f((e) => {
|
|
1116
1116
|
let t = Object.entries(e).filter(([e]) => o.has(e)), n = Object.entries(a).filter(([t]) => !(t in e));
|
|
1117
1117
|
return n.length === 0 && t.length === Object.keys(e).length ? e : {
|
|
@@ -1127,7 +1127,7 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1127
1127
|
]);
|
|
1128
1128
|
let x = () => {
|
|
1129
1129
|
p || s();
|
|
1130
|
-
}, S = a.fields.every((e) =>
|
|
1130
|
+
}, S = a.fields.every((e) => ht(e, l[e.id])), C = async () => {
|
|
1131
1131
|
if (S && !p) {
|
|
1132
1132
|
m(!0), g("");
|
|
1133
1133
|
try {
|
|
@@ -1157,15 +1157,15 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1157
1157
|
children: [
|
|
1158
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(le, {
|
|
1161
1161
|
size: "sm",
|
|
1162
1162
|
disabled: p
|
|
1163
1163
|
})
|
|
1164
1164
|
})] }),
|
|
1165
|
-
/* @__PURE__ */ X(V.Body, { children: /* @__PURE__ */ Z(
|
|
1165
|
+
/* @__PURE__ */ X(V.Body, { children: /* @__PURE__ */ Z(K, {
|
|
1166
1166
|
gap: "md",
|
|
1167
1167
|
children: [
|
|
1168
|
-
a.fields.map((e) => /* @__PURE__ */ X(
|
|
1168
|
+
a.fields.map((e) => /* @__PURE__ */ X(dt, {
|
|
1169
1169
|
field: e,
|
|
1170
1170
|
removeLabel: a.labels.removeFile,
|
|
1171
1171
|
value: l[e.id],
|
|
@@ -1175,14 +1175,14 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1175
1175
|
[e.id]: t
|
|
1176
1176
|
}))
|
|
1177
1177
|
}, `${e.id}:${_.toString()}`)),
|
|
1178
|
-
b.length > 0 ? /* @__PURE__ */ Z(
|
|
1178
|
+
b.length > 0 ? /* @__PURE__ */ Z(K, {
|
|
1179
1179
|
gap: "2xs",
|
|
1180
|
-
children: [/* @__PURE__ */ X(
|
|
1180
|
+
children: [/* @__PURE__ */ X(q, {
|
|
1181
1181
|
textStyle: "label/S/medium",
|
|
1182
1182
|
children: a.labels.properties
|
|
1183
|
-
}), /* @__PURE__ */ X(
|
|
1183
|
+
}), /* @__PURE__ */ X(et, {
|
|
1184
1184
|
variant: "small",
|
|
1185
|
-
params: b.map((e) =>
|
|
1185
|
+
params: b.map((e) => vt(e, e.id === r)),
|
|
1186
1186
|
defaultValues: d,
|
|
1187
1187
|
readOnly: p,
|
|
1188
1188
|
onChange: (e, t) => f((n) => ({
|
|
@@ -1191,7 +1191,7 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1191
1191
|
}))
|
|
1192
1192
|
})]
|
|
1193
1193
|
}) : null,
|
|
1194
|
-
h ? /* @__PURE__ */ X(
|
|
1194
|
+
h ? /* @__PURE__ */ X(q, {
|
|
1195
1195
|
textStyle: "paragraph/S/regular",
|
|
1196
1196
|
color: "fg.error",
|
|
1197
1197
|
children: h
|
|
@@ -1202,13 +1202,13 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1202
1202
|
justifyContent: "end",
|
|
1203
1203
|
children: /* @__PURE__ */ Z(H, {
|
|
1204
1204
|
gap: "2",
|
|
1205
|
-
children: [/* @__PURE__ */ X(
|
|
1205
|
+
children: [/* @__PURE__ */ X(ce, {
|
|
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(ce, {
|
|
1212
1212
|
size: "sm",
|
|
1213
1213
|
variant: "primary",
|
|
1214
1214
|
disabled: !S,
|
|
@@ -1221,25 +1221,25 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1221
1221
|
]
|
|
1222
1222
|
}) })]
|
|
1223
1223
|
});
|
|
1224
|
-
},
|
|
1225
|
-
let { settings: t, visibleRows: n, grouped: r, attributes: a, onRowClick: o, onAttributeChange: s, onReorder: c, getRowContextMenuActions: l } = e, u = t.ordering.attributeId ===
|
|
1226
|
-
let n =
|
|
1224
|
+
}, bt = (e) => {
|
|
1225
|
+
let { settings: t, visibleRows: n, grouped: r, attributes: a, onRowClick: o, onAttributeChange: s, onReorder: c, getRowContextMenuActions: l } = e, u = t.ordering.attributeId === M, d = t.displayProperties.filter((e) => e !== "id"), f = (e, t) => {
|
|
1226
|
+
let n = O(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
|
+
}, p = (e) => {
|
|
1232
1232
|
let t = e.attributes.status;
|
|
1233
|
-
return typeof t == "string" ?
|
|
1233
|
+
return typeof t == "string" ? f("status", t) : {};
|
|
1234
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: ee(e, a,
|
|
1240
|
+
...p(e),
|
|
1241
|
+
badges: re(e, a, d),
|
|
1242
|
+
customSlots: ee(e, a, d),
|
|
1243
1243
|
contextMenuActions: l?.(e),
|
|
1244
1244
|
onClick: () => o?.(e),
|
|
1245
1245
|
onBadgeChange: s ? (t, n) => s(e.id, t, n) : void 0,
|
|
@@ -1256,72 +1256,72 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1256
1256
|
title: e.label,
|
|
1257
1257
|
isGroup: !0,
|
|
1258
1258
|
countBadge: e.rows.length,
|
|
1259
|
-
...
|
|
1259
|
+
...f(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: m(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" ? m(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
|
+
...f(t.columnGrouping, e.key),
|
|
1276
1276
|
onDropRow: s ? (n) => s(n, t.columnGrouping, e.key) : void 0,
|
|
1277
1277
|
children: e.subgroups.map((t) => g(t, { columnKey: e.key }))
|
|
1278
1278
|
} : g(e));
|
|
1279
|
-
},
|
|
1279
|
+
}, xt = (e) => {
|
|
1280
1280
|
let t = e.attributes.id;
|
|
1281
1281
|
return typeof t == "string" && t ? t : e.id;
|
|
1282
|
-
},
|
|
1283
|
-
let t = Y(62), { rows: n, storageKey: r, attributes: i, selectedRowId: a, emptyState: o, emptyTitle: s, emptyDescription: c, contentPlaceholder: l, defaultSettings: p, defaultFilters:
|
|
1284
|
-
|
|
1282
|
+
}, St = (e) => {
|
|
1283
|
+
let t = Y(62), { rows: n, storageKey: r, attributes: i, selectedRowId: a, emptyState: o, emptyTitle: s, emptyDescription: c, contentPlaceholder: l, defaultSettings: p, defaultFilters: h, viewsSource: _, defaultViews: y, defaultActiveViewId: x, onRowClick: S, onAttributeChange: C, onReorder: w, createRow: E, onCreateRow: D, onColumnAction: k, getBoardColumnConfig: A, getRowContextMenuActions: j, hideToolbar: M, toolbarActions: N, toolbarLeading: P } = e, te = a === void 0 ? null : a, F = s === void 0 ? "No rows found" : s, I = c === void 0 ? "Try changing filters or display settings." : c, L = M !== void 0 && M;
|
|
1284
|
+
g(e);
|
|
1285
|
+
let R = f(i), [ie, ae] = Q(null), oe;
|
|
1286
|
+
t[0] !== h || t[1] !== p ? (oe = {
|
|
1285
1287
|
settings: p,
|
|
1286
|
-
filters:
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
columnGrouping: R.columnGrouping,
|
|
1295
|
-
rowGrouping: R.rowGrouping,
|
|
1288
|
+
filters: h
|
|
1289
|
+
}, t[0] = h, t[1] = p, t[2] = oe) : oe = t[2];
|
|
1290
|
+
let se = oe, z = b(r, Ct, se), B = b(r, wt, se), ce = b(r, Tt, se), le = b(r, Et, se), V, H;
|
|
1291
|
+
if (t[3] !== R || t[4] !== B || t[5] !== A || t[6] !== j || t[7] !== C || t[8] !== w || t[9] !== S || t[10] !== n || t[11] !== z) {
|
|
1292
|
+
let e = v(n, B, R), r = ne(z.columnGrouping, R, B), i = d(e, {
|
|
1293
|
+
attributes: R,
|
|
1294
|
+
columnGrouping: z.columnGrouping,
|
|
1295
|
+
rowGrouping: z.rowGrouping,
|
|
1296
1296
|
knownColumnKeys: r
|
|
1297
1297
|
});
|
|
1298
|
-
|
|
1299
|
-
settings:
|
|
1298
|
+
V = bt({
|
|
1299
|
+
settings: z,
|
|
1300
1300
|
visibleRows: e,
|
|
1301
1301
|
grouped: i,
|
|
1302
|
-
attributes:
|
|
1303
|
-
onRowClick:
|
|
1304
|
-
onAttributeChange:
|
|
1305
|
-
onReorder:
|
|
1306
|
-
getRowContextMenuActions:
|
|
1302
|
+
attributes: R,
|
|
1303
|
+
onRowClick: S,
|
|
1304
|
+
onAttributeChange: C,
|
|
1305
|
+
onReorder: w,
|
|
1306
|
+
getRowContextMenuActions: j
|
|
1307
1307
|
});
|
|
1308
|
-
let a =
|
|
1308
|
+
let a = z.displayProperties.filter(Dt), o = (e) => e.map((e) => ({
|
|
1309
1309
|
id: e.id,
|
|
1310
|
-
contextMenuActions:
|
|
1310
|
+
contextMenuActions: j?.(e),
|
|
1311
1311
|
cardProps: {
|
|
1312
|
-
eyebrow:
|
|
1312
|
+
eyebrow: z.displayProperties.includes("id") ? xt(e) : void 0,
|
|
1313
1313
|
title: e.title,
|
|
1314
|
-
badges:
|
|
1315
|
-
customSlots: ee(e,
|
|
1316
|
-
onBadgeChange:
|
|
1317
|
-
onClick: () =>
|
|
1314
|
+
badges: re(e, R, a),
|
|
1315
|
+
customSlots: ee(e, R, a),
|
|
1316
|
+
onBadgeChange: C ? (t, n) => C(e.id, t, n) : void 0,
|
|
1317
|
+
onClick: () => S?.(e)
|
|
1318
1318
|
}
|
|
1319
|
-
})), s =
|
|
1320
|
-
|
|
1321
|
-
let t =
|
|
1319
|
+
})), s = O(R, z.columnGrouping);
|
|
1320
|
+
H = i.map((e) => {
|
|
1321
|
+
let t = A?.(e.key) ?? {}, n = m(e.rows, z.ordering, R), 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(m(e.rows, z.ordering, R))
|
|
1325
1325
|
})) : void 0;
|
|
1326
1326
|
return {
|
|
1327
1327
|
id: e.key,
|
|
@@ -1335,71 +1335,73 @@ 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[
|
|
1339
|
-
} else
|
|
1340
|
-
let
|
|
1341
|
-
t[
|
|
1342
|
-
await
|
|
1343
|
-
settings:
|
|
1338
|
+
}), t[3] = R, t[4] = B, t[5] = A, t[6] = j, t[7] = C, t[8] = w, t[9] = S, t[10] = n, t[11] = z, t[12] = V, t[13] = H;
|
|
1339
|
+
} else V = t[12], H = t[13];
|
|
1340
|
+
let U = H, ue;
|
|
1341
|
+
t[14] !== C || t[15] !== w || t[16] !== z ? (ue = async (e, t, n) => {
|
|
1342
|
+
await Ee({
|
|
1343
|
+
settings: z,
|
|
1344
1344
|
rowId: e,
|
|
1345
1345
|
targetColumnId: t,
|
|
1346
1346
|
targetGroupKey: n?.targetGroupKey,
|
|
1347
1347
|
beforeItemId: n?.beforeItemId,
|
|
1348
|
-
onAttributeChange:
|
|
1349
|
-
onReorder:
|
|
1348
|
+
onAttributeChange: C,
|
|
1349
|
+
onReorder: w
|
|
1350
1350
|
});
|
|
1351
|
-
}, t[
|
|
1352
|
-
let
|
|
1353
|
-
t[
|
|
1354
|
-
await
|
|
1355
|
-
settings:
|
|
1351
|
+
}, t[14] = C, t[15] = w, t[16] = z, t[17] = ue) : ue = t[17];
|
|
1352
|
+
let de = ue, W;
|
|
1353
|
+
t[18] !== C || t[19] !== w || t[20] !== z ? (W = async (e, t, n) => {
|
|
1354
|
+
await De({
|
|
1355
|
+
settings: z,
|
|
1356
1356
|
rowId: e,
|
|
1357
1357
|
targetGroupKey: t,
|
|
1358
1358
|
beforeItemId: n?.beforeItemId,
|
|
1359
|
-
onAttributeChange:
|
|
1360
|
-
onReorder:
|
|
1359
|
+
onAttributeChange: C,
|
|
1360
|
+
onReorder: w
|
|
1361
1361
|
});
|
|
1362
|
-
}, t[
|
|
1363
|
-
let
|
|
1364
|
-
t[24] !==
|
|
1362
|
+
}, t[18] = C, t[19] = w, t[20] = z, t[21] = W) : W = t[21];
|
|
1363
|
+
let fe = W, G;
|
|
1364
|
+
t[22] !== R || t[23] !== x || t[24] !== h || t[25] !== p || t[26] !== y || t[27] !== L || t[28] !== n || t[29] !== r || t[30] !== N || t[31] !== P || t[32] !== _ ? (G = L ? null : /* @__PURE__ */ X(u, {
|
|
1365
1365
|
rows: n,
|
|
1366
1366
|
storageKey: r,
|
|
1367
|
-
attributes:
|
|
1367
|
+
attributes: R,
|
|
1368
1368
|
defaultSettings: p,
|
|
1369
|
-
defaultFilters:
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1369
|
+
defaultFilters: h,
|
|
1370
|
+
viewsSource: _,
|
|
1371
|
+
defaultViews: y,
|
|
1372
|
+
defaultActiveViewId: x,
|
|
1373
|
+
leading: P,
|
|
1374
|
+
actions: N
|
|
1375
|
+
}), t[22] = R, t[23] = x, t[24] = h, t[25] = p, t[26] = y, t[27] = L, t[28] = n, t[29] = r, t[30] = N, t[31] = P, t[32] = _, t[33] = G) : G = t[33];
|
|
1376
|
+
let q;
|
|
1377
|
+
t[34] !== U || t[35] !== l || t[36] !== E || t[37] !== I || t[38] !== o || t[39] !== F || t[40] !== ce || t[41] !== de || t[42] !== fe || t[43] !== V || t[44] !== k || t[45] !== D || t[46] !== te || t[47] !== le || t[48] !== z.columnGrouping || t[49] !== z.rowGrouping || t[50] !== z.viewMode ? (q = l === void 0 ? /* @__PURE__ */ X(Ze, {
|
|
1378
|
+
viewMode: z.viewMode,
|
|
1379
|
+
boardColumns: U,
|
|
1380
|
+
listItems: V,
|
|
1381
|
+
listExpandedGroups: ce,
|
|
1382
|
+
selectedRowId: te,
|
|
1381
1383
|
emptyState: o,
|
|
1382
|
-
emptyTitle:
|
|
1383
|
-
emptyDescription:
|
|
1384
|
-
onBoardMoveItem:
|
|
1385
|
-
onBoardMoveToGroup:
|
|
1386
|
-
onCreateRow:
|
|
1387
|
-
onColumnAction:
|
|
1388
|
-
onListExpandedGroupChange:
|
|
1389
|
-
listKey: `${
|
|
1390
|
-
}) : l, t[34] =
|
|
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
|
-
open: !0,
|
|
1394
|
-
columnId: P,
|
|
1395
|
-
columnAttributeId: R.columnGrouping === "none" ? void 0 : R.columnGrouping,
|
|
1396
|
-
attributes: N,
|
|
1397
|
-
config: C,
|
|
1398
|
-
onClose: () => F(null),
|
|
1399
|
-
onSubmit: w
|
|
1400
|
-
}) : null, t[52] = N, t[53] = P, t[54] = C, t[55] = w, t[56] = R.columnGrouping, t[57] = K) : K = t[57];
|
|
1384
|
+
emptyTitle: F,
|
|
1385
|
+
emptyDescription: I,
|
|
1386
|
+
onBoardMoveItem: de,
|
|
1387
|
+
onBoardMoveToGroup: fe,
|
|
1388
|
+
onCreateRow: E && D ? ae : void 0,
|
|
1389
|
+
onColumnAction: k,
|
|
1390
|
+
onListExpandedGroupChange: le,
|
|
1391
|
+
listKey: `${z.columnGrouping}:${z.rowGrouping}`
|
|
1392
|
+
}) : l, t[34] = U, t[35] = l, t[36] = E, t[37] = I, t[38] = o, t[39] = F, t[40] = ce, t[41] = de, t[42] = fe, t[43] = V, t[44] = k, t[45] = D, t[46] = te, t[47] = le, t[48] = z.columnGrouping, t[49] = z.rowGrouping, t[50] = z.viewMode, t[51] = q) : q = t[51];
|
|
1401
1393
|
let J;
|
|
1402
|
-
|
|
1394
|
+
t[52] !== R || t[53] !== ie || t[54] !== E || t[55] !== D || t[56] !== z.columnGrouping ? (J = E && D && ie ? /* @__PURE__ */ X(yt, {
|
|
1395
|
+
open: !0,
|
|
1396
|
+
columnId: ie,
|
|
1397
|
+
columnAttributeId: z.columnGrouping === "none" ? void 0 : z.columnGrouping,
|
|
1398
|
+
attributes: R,
|
|
1399
|
+
config: E,
|
|
1400
|
+
onClose: () => ae(null),
|
|
1401
|
+
onSubmit: D
|
|
1402
|
+
}) : null, t[52] = R, t[53] = ie, t[54] = E, t[55] = D, t[56] = z.columnGrouping, t[57] = J) : J = t[57];
|
|
1403
|
+
let pe;
|
|
1404
|
+
return t[58] !== J || t[59] !== G || t[60] !== q ? (pe = /* @__PURE__ */ Z(K, {
|
|
1403
1405
|
"data-testid": "kanban-renderer",
|
|
1404
1406
|
height: "100%",
|
|
1405
1407
|
minH: "0",
|
|
@@ -1407,28 +1409,28 @@ var ft = (e) => e.type === "files" || e.type === "multi-select" ? [] : e.type !=
|
|
|
1407
1409
|
background: "bg",
|
|
1408
1410
|
overflow: "hidden",
|
|
1409
1411
|
children: [
|
|
1410
|
-
W,
|
|
1411
1412
|
G,
|
|
1412
|
-
|
|
1413
|
+
q,
|
|
1414
|
+
J
|
|
1413
1415
|
]
|
|
1414
|
-
}), t[58] =
|
|
1416
|
+
}), t[58] = J, t[59] = G, t[60] = q, t[61] = pe) : pe = t[61], pe;
|
|
1415
1417
|
};
|
|
1416
|
-
function
|
|
1418
|
+
function Ct(e) {
|
|
1417
1419
|
return e.settings;
|
|
1418
1420
|
}
|
|
1419
|
-
function
|
|
1421
|
+
function wt(e) {
|
|
1420
1422
|
return e.filters;
|
|
1421
1423
|
}
|
|
1422
|
-
function
|
|
1424
|
+
function Tt(e) {
|
|
1423
1425
|
return e.expandedGroups;
|
|
1424
1426
|
}
|
|
1425
|
-
function
|
|
1427
|
+
function Et(e) {
|
|
1426
1428
|
return e.setExpandedGroup;
|
|
1427
1429
|
}
|
|
1428
|
-
function
|
|
1430
|
+
function Dt(e) {
|
|
1429
1431
|
return e !== "id";
|
|
1430
1432
|
}
|
|
1431
1433
|
//#endregion
|
|
1432
|
-
export {
|
|
1434
|
+
export { te as DEFAULT_KANBAN_RENDERER_SETTINGS, p as DisplayMenu, F as FilterMenu, St as KanbanRenderer, ze as KanbanRendererBoard, Fe as KanbanRendererCard, yt as KanbanRendererCreateDialog, Je as KanbanRendererList, y as KanbanRendererStorageProvider, u as KanbanRendererToolbar, M as MANUAL_ORDERING, k as NO_GROUPING, x as buildDisplayPropertyOptions, h as buildFilterCategories, l as buildGroupingOptions, E as buildOrderingOptions, re as collectDisplayBadges, O as findAttribute, I as getAttributeStringValues, A as getAttributeValue, D as getEnumOptions, S as isAttributesSource, R as isEnumOptionsSource, C as renderAttributeBadge, N as renderBadgeListDisplay, _ as resolveAttributeOptions, j as sanitizeFilters, L as sanitizeSettings, b as useKanbanRendererStore, f as useResolvedAttributes };
|
|
1433
1435
|
|
|
1434
1436
|
//# sourceMappingURL=kanban-renderer.js.map
|