@pstdio/ui 0.18.0 → 0.19.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.
Files changed (72) hide show
  1. package/dist/chat-ui.js +941 -899
  2. package/dist/chat-ui.js.map +1 -1
  3. package/dist/components/chat-ui/components/chat-message-list-items.d.ts +17 -0
  4. package/dist/components/chat-ui/components/message-types.d.ts +1 -0
  5. package/dist/components/chat-ui/components/timeline.d.ts +2 -0
  6. package/dist/components/chat-ui/tool-rendering/default-renderers.d.ts +1 -0
  7. package/dist/components/chat-ui/tool-rendering/shared.d.ts +3 -2
  8. package/dist/components/chat-ui/tool-rendering/standard-renderers.d.ts +1 -0
  9. package/dist/components/data-table/data-table-skeleton.d.ts +13 -0
  10. package/dist/components/data-table/index.d.ts +2 -0
  11. package/dist/components/overlays/dialog-accept-shortcut.d.ts +12 -0
  12. package/dist/components/overlays/index.d.ts +1 -0
  13. package/dist/components/param-editor/index.d.ts +3 -1
  14. package/dist/components/param-editor/inputs/selection-input.d.ts +5 -0
  15. package/dist/components/param-editor/inputs/selection-menu.d.ts +6 -0
  16. package/dist/components/param-editor/param-editor-row.d.ts +17 -0
  17. package/dist/components/param-editor/param-editor.types.d.ts +18 -0
  18. package/dist/components/primitives/glyph-icon.d.ts +16 -0
  19. package/dist/components/primitives/icon-color-picker.d.ts +3 -13
  20. package/dist/components/primitives/icon-options.d.ts +301 -0
  21. package/dist/components/primitives/index.d.ts +10 -3
  22. package/dist/components/primitives/segmented-control.d.ts +20 -0
  23. package/dist/components/primitives/tag-swatch.d.ts +10 -0
  24. package/dist/components/tag-editor/index.d.ts +4 -0
  25. package/dist/components/tag-editor/tag-editor-heading.d.ts +11 -0
  26. package/dist/components/tag-editor/tag-editor-row.d.ts +1 -1
  27. package/dist/components/tag-editor/tag-editor-save-bar.d.ts +13 -0
  28. package/dist/components/tag-editor/tag-editor.types.d.ts +11 -11
  29. package/dist/components/tag-editor/tag-settings-panel.d.ts +3 -1
  30. package/dist/data-table.js +564 -522
  31. package/dist/data-table.js.map +1 -1
  32. package/dist/dialog-accept-shortcut-DAEBsoWW.js +7 -0
  33. package/dist/dialog-accept-shortcut-DAEBsoWW.js.map +1 -0
  34. package/dist/diff.js +2 -2
  35. package/dist/font/css/prompt-studio-icons.css +36 -6
  36. package/dist/font/prompt-studio-icons.eot +0 -0
  37. package/dist/font/prompt-studio-icons.svg +1 -1
  38. package/dist/font/prompt-studio-icons.ttf +0 -0
  39. package/dist/font/prompt-studio-icons.woff +0 -0
  40. package/dist/font/prompt-studio-icons.woff2 +0 -0
  41. package/dist/index.d.ts +2 -2
  42. package/dist/index.js +1978 -1712
  43. package/dist/index.js.map +1 -1
  44. package/dist/{kanban-renderer-toolbar-Db1mIWWd.js → kanban-renderer-toolbar-Bcj_N1qr.js} +66 -66
  45. package/dist/kanban-renderer-toolbar-Bcj_N1qr.js.map +1 -0
  46. package/dist/kanban-renderer.js +138 -135
  47. package/dist/kanban-renderer.js.map +1 -1
  48. package/dist/list-row-BtoVJpFs.js +821 -0
  49. package/dist/list-row-BtoVJpFs.js.map +1 -0
  50. package/dist/param-editor-XRjSu6MT.js +161 -0
  51. package/dist/param-editor-XRjSu6MT.js.map +1 -0
  52. package/dist/param-editor-field-B9lEPq8c.js +3028 -0
  53. package/dist/param-editor-field-B9lEPq8c.js.map +1 -0
  54. package/dist/style.css +1 -1
  55. package/dist/theme/primitives/sizes.d.ts +59 -0
  56. package/dist/theme/recipes/segmented-control.d.ts +22 -0
  57. package/dist/theme/recipes/switch.d.ts +1 -0
  58. package/dist/theme/recipes/tabs.d.ts +11 -0
  59. package/dist/{theme-poQlUgt0.js → theme-7PDdD9OD.js} +200 -120
  60. package/dist/theme-7PDdD9OD.js.map +1 -0
  61. package/dist/theme.js +1 -1
  62. package/dist/{tree-list-BAja2eXU.js → tree-list-B2L0cTj2.js} +2 -2
  63. package/dist/{tree-list-BAja2eXU.js.map → tree-list-B2L0cTj2.js.map} +1 -1
  64. package/package.json +2 -2
  65. package/dist/kanban-renderer-toolbar-Db1mIWWd.js.map +0 -1
  66. package/dist/list-row-BYWwcbGK.js +0 -823
  67. package/dist/list-row-BYWwcbGK.js.map +0 -1
  68. package/dist/param-editor-BCZOw5Gt.js +0 -140
  69. package/dist/param-editor-BCZOw5Gt.js.map +0 -1
  70. package/dist/param-editor-field-ZzZwgjZ_.js +0 -2094
  71. package/dist/param-editor-field-ZzZwgjZ_.js.map +0 -1
  72. package/dist/theme-poQlUgt0.js.map +0 -1
@@ -1,16 +1,17 @@
1
- import { N as Z, M as Ie, g as Ue, o as ge, r as Ye, c as Me, a as Ke, f as Le, b as _e, u as Je, d as pe, e as Qe, h as Ze, i as et, K as tt } from "./kanban-renderer-toolbar-Db1mIWWd.js";
2
- import { D as En, F as Pn, j as An, k as On, l as $n, m as Bn, n as zn, p as Mn, q as Kn, s as Ln, t as _n, v as Vn, w as Wn, x as Hn, y as jn } from "./kanban-renderer-toolbar-Db1mIWWd.js";
1
+ import { N as Z, M as Ie, g as Ue, o as ge, r as Ye, c as Ke, a as Me, f as Le, b as _e, u as Je, d as pe, e as Qe, h as Ze, i as et, K as tt } from "./kanban-renderer-toolbar-Bcj_N1qr.js";
2
+ import { D as An, F as On, j as $n, k as Bn, l as zn, m as Kn, n as Mn, p as Ln, q as _n, s as Vn, t as Wn, v as Hn, w as jn, x as Fn, y as Nn } from "./kanban-renderer-toolbar-Bcj_N1qr.js";
3
3
  import { jsx as d, jsxs as B, Fragment as nt } from "react/jsx-runtime";
4
- import { c as K } from "react/compiler-runtime";
4
+ import { c as M } from "react/compiler-runtime";
5
5
  import { Text as _, Badge as fe, IconButton as Ee, Icon as N, Menu as F, Spacer as rt, HStack as X, Portal as ot, Wrap as we, Stack as q, Box as re, VStack as lt, Textarea as at, Button as me, Input as it, Dialog as ne, CloseButton as st } from "@chakra-ui/react";
6
6
  import { useState as W, useRef as Ve, useEffect as Se } from "react";
7
7
  import { E as dt } from "./empty-state-Bo4HVrgr.js";
8
- import { L as ke, R as We } from "./list-row-BYWwcbGK.js";
8
+ import { L as ke, R as We } from "./list-row-BtoVJpFs.js";
9
9
  import { T as ct, S as Pe } from "./scroll-area-BMbg1WcD.js";
10
10
  import { Plus as ut, MoreHorizontal as pt, SquareCheck as gt, Square as ft, Check as mt, ChevronDown as bt, ChevronRight as ht, Paperclip as yt } from "lucide-react";
11
- import { g as be, W as vt, i as He, a as he, P as xt, S as Ct, A as St } from "./param-editor-field-ZzZwgjZ_.js";
12
- import { L as Dt } from "./lazy-markdown-editor-DwhqQ-NN.js";
13
- const It = async (r) => {
11
+ import { g as be, W as vt, i as He, a as he, P as xt, S as Ct, A as St } from "./param-editor-field-B9lEPq8c.js";
12
+ import { h as Dt } from "./dialog-accept-shortcut-DAEBsoWW.js";
13
+ import { L as It } from "./lazy-markdown-editor-DwhqQ-NN.js";
14
+ const wt = async (r) => {
14
15
  const {
15
16
  settings: e,
16
17
  rowId: t,
@@ -21,7 +22,7 @@ const It = async (r) => {
21
22
  onReorder: p
22
23
  } = r;
23
24
  e.columnGrouping !== Z && s && await s(t, e.columnGrouping, n), e.rowGrouping !== Z && a && s && await s(t, e.rowGrouping, a), e.ordering.attributeId === Ie && await p?.(t, i);
24
- }, wt = async (r) => {
25
+ }, kt = async (r) => {
25
26
  const {
26
27
  settings: e,
27
28
  rowId: t,
@@ -31,8 +32,8 @@ const It = async (r) => {
31
32
  onReorder: s
32
33
  } = r;
33
34
  e.rowGrouping === Z || !i || (await i(t, e.rowGrouping, n), e.ordering.attributeId === Ie && await s?.(t, a));
34
- }, kt = (r) => {
35
- const e = K(26), {
35
+ }, Gt = (r) => {
36
+ const e = M(26), {
36
37
  column: t,
37
38
  onCreateStart: n,
38
39
  onColumnAction: a
@@ -63,7 +64,7 @@ const It = async (r) => {
63
64
  o,
64
65
  u
65
66
  ] }), e[19] = i, e[20] = p, e[21] = c, e[22] = f, e[23] = o, e[24] = u, e[25] = b) : b = e[25], b;
66
- }, Q = (r) => r.stopPropagation(), Gt = (r) => Array.isArray(r.value) ? r.value : r.value ? [r.value] : [], Rt = (r, e) => r.includes(e) ? r.filter((t) => t !== e) : [...r, e], Ae = {
67
+ }, Q = (r) => r.stopPropagation(), Rt = (r) => Array.isArray(r.value) ? r.value : r.value ? [r.value] : [], Tt = (r, e) => r.includes(e) ? r.filter((t) => t !== e) : [...r, e], Ae = {
67
68
  bg: {
68
69
  _light: "bg.muted",
69
70
  _dark: "bg.subtle"
@@ -75,8 +76,8 @@ const It = async (r) => {
75
76
  _dark: "bg.hover"
76
77
  }
77
78
  }
78
- }, Tt = (r) => r.color ? `${r.color}.fg` : "fg.muted", Et = (r) => r.isMultiValue ? r.isSelected ? /* @__PURE__ */ d(gt, { size: 14 }) : /* @__PURE__ */ d(ft, { size: 14 }) : r.isSelected ? /* @__PURE__ */ d(mt, { size: 14 }) : null, je = (r) => {
79
- const e = K(49), {
79
+ }, Et = (r) => r.color ? `${r.color}.fg` : "fg.muted", Pt = (r) => r.isMultiValue ? r.isSelected ? /* @__PURE__ */ d(gt, { size: 14 }) : /* @__PURE__ */ d(ft, { size: 14 }) : r.isSelected ? /* @__PURE__ */ d(mt, { size: 14 }) : null, je = (r) => {
80
+ const e = M(49), {
80
81
  badge: t,
81
82
  onChange: n
82
83
  } = r;
@@ -84,7 +85,7 @@ const It = async (r) => {
84
85
  if (e[0] !== t || e[1] !== n) {
85
86
  x = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
86
87
  e: {
87
- const E = t.options ?? [], v = !!(n && t.isEditable && E.length > 0), k = Array.isArray(t.value), I = Gt(t);
88
+ const E = t.options ?? [], v = !!(n && t.isEditable && E.length > 0), k = Array.isArray(t.value), I = Rt(t);
88
89
  let y;
89
90
  e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
90
91
  onClick: Q,
@@ -93,10 +94,10 @@ const It = async (r) => {
93
94
  }, e[16] = y) : y = e[16];
94
95
  const S = y, R = (A) => {
95
96
  let z;
96
- k ? z = Rt(I, A) : z = I.includes(A) ? "" : A, n?.(t.attributeId, z);
97
+ k ? z = Tt(I, A) : z = I.includes(A) ? "" : A, n?.(t.attributeId, z);
97
98
  };
98
99
  let G;
99
- e[17] !== t ? (G = t.icon ? /* @__PURE__ */ d(N, { as: be(t.icon), boxSize: "3.5", color: Tt(t) }) : null, e[17] = t, e[18] = G) : G = e[18];
100
+ e[17] !== t ? (G = t.icon ? /* @__PURE__ */ d(N, { as: be(t.icon), boxSize: "3.5", color: Et(t) }) : null, e[17] = t, e[18] = G) : G = e[18];
100
101
  let $;
101
102
  e[19] !== v ? ($ = v ? /* @__PURE__ */ d(N, { as: bt, boxSize: "3", color: "fg.muted" }) : null, e[19] = v, e[20] = $) : $ = e[20];
102
103
  let O;
@@ -113,7 +114,7 @@ const It = async (r) => {
113
114
  }
114
115
  p = F.Root, l = !k, e[27] !== T ? (m = /* @__PURE__ */ d(F.Trigger, { asChild: !0, children: /* @__PURE__ */ d(fe, { as: "span", role: "button", tabIndex: 0, variant: "subtle", gap: "2xs", textStyle: "label/XS/medium", cursor: "pointer", ...Ae, onClick: Q, onPointerDown: Q, onKeyDown: Q, children: T }) }), e[27] = T, e[28] = m) : m = e[28], s = ot, i = F.Positioner, a = F.Content, c = "180px", f = "0", g = "0", o = Q, u = Q, b = Q, h = E.map((A) => {
115
116
  const z = I.includes(A.value);
116
- return /* @__PURE__ */ d(F.Item, { value: A.value, asChild: !0, children: /* @__PURE__ */ d(ke, { asChild: !0, role: k ? "menuitemcheckbox" : "menuitemradio", "aria-checked": z, variant: "full-width", id: A.value, label: A.label, icon: /* @__PURE__ */ d(N, { as: be(A.icon), boxSize: "16px" }), iconColor: `${A.color ?? "gray"}.500`, isSelected: z, endContent: Et({
117
+ return /* @__PURE__ */ d(F.Item, { value: A.value, asChild: !0, children: /* @__PURE__ */ d(ke, { asChild: !0, role: k ? "menuitemcheckbox" : "menuitemradio", "aria-checked": z, variant: "full-width", id: A.value, label: A.label, icon: /* @__PURE__ */ d(N, { as: be(A.icon), boxSize: "16px" }), iconColor: `${A.color ?? "gray"}.500`, isSelected: z, endContent: Pt({
117
118
  isMultiValue: k,
118
119
  isSelected: z
119
120
  }), onActivate: () => R(A.value), ...S }) }, A.value);
@@ -136,7 +137,7 @@ const It = async (r) => {
136
137
  D
137
138
  ] }), e[44] = p, e[45] = D, e[46] = l, e[47] = m, e[48] = P) : P = e[48], P;
138
139
  }, Fe = (r) => {
139
- const e = K(30), {
140
+ const e = M(30), {
140
141
  eyebrow: t,
141
142
  title: n,
142
143
  badges: a,
@@ -183,8 +184,8 @@ const It = async (r) => {
183
184
  R,
184
185
  G
185
186
  ] }), e[18] = w, e[19] = c, e[20] = o, e[21] = g, e[22] = y, e[23] = S, e[24] = R, e[25] = G, e[26] = E, e[27] = k, e[28] = I, e[29] = $) : $ = e[29], $;
186
- }, Pt = (r) => {
187
- const e = K(30), {
187
+ }, At = (r) => {
188
+ const e = M(30), {
188
189
  columnId: t,
189
190
  group: n,
190
191
  selectedItemId: a,
@@ -202,7 +203,7 @@ const It = async (r) => {
202
203
  bg: "bg.hover"
203
204
  }, e[0] = w) : w = e[0];
204
205
  let D;
205
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = () => h(At), e[1] = D) : D = e[1];
206
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = () => h(Ot), e[1] = D) : D = e[1];
206
207
  const P = b ? "rotate(90deg)" : "rotate(0deg)";
207
208
  let E;
208
209
  e[2] !== P ? (E = /* @__PURE__ */ d(re, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ d(N, { as: ht, boxSize: "14px", color: "fg.muted", transform: P, transition: "transform 0.15s ease" }) }), e[2] = P, e[3] = E) : E = e[3];
@@ -217,7 +218,7 @@ const It = async (r) => {
217
218
  k
218
219
  ] }), e[8] = E, e[9] = v, e[10] = k, e[11] = I) : I = e[11];
219
220
  let y;
220
- e[12] !== i || e[13] !== s || e[14] !== b || e[15] !== n.items || e[16] !== f || e[17] !== c || e[18] !== u || e[19] !== a ? (y = b && /* @__PURE__ */ d(q, { gap: "xs", pt: "xs", children: n.items.map((R) => /* @__PURE__ */ d(We, { actions: R.contextMenuActions ?? [], children: /* @__PURE__ */ d(re, { onDragOver: i ? Ot : void 0, onDrop: i ? (G) => {
221
+ e[12] !== i || e[13] !== s || e[14] !== b || e[15] !== n.items || e[16] !== f || e[17] !== c || e[18] !== u || e[19] !== a ? (y = b && /* @__PURE__ */ d(q, { gap: "xs", pt: "xs", children: n.items.map((R) => /* @__PURE__ */ d(We, { actions: R.contextMenuActions ?? [], children: /* @__PURE__ */ d(re, { onDragOver: i ? $t : void 0, onDrop: i ? (G) => {
221
222
  G.preventDefault(), G.stopPropagation();
222
223
  const $ = G.dataTransfer.getData("text/plain");
223
224
  !$ || $ === R.id || u(G, R.id);
@@ -228,21 +229,21 @@ const It = async (r) => {
228
229
  y
229
230
  ] }), e[21] = t, e[22] = n.key, e[23] = l, e[24] = m, e[25] = I, e[26] = y, e[27] = x, e[28] = C, e[29] = S) : S = e[29], S;
230
231
  };
231
- function At(r) {
232
+ function Ot(r) {
232
233
  return !r;
233
234
  }
234
- function Ot(r) {
235
+ function $t(r) {
235
236
  r.preventDefault(), r.stopPropagation(), r.dataTransfer.dropEffect = "move";
236
237
  }
237
- const $t = (r) => {
238
- const e = K(27), {
238
+ const Bt = (r) => {
239
+ const e = M(27), {
239
240
  columns: t,
240
241
  selectedItemId: n,
241
242
  onMoveItem: a,
242
243
  onMoveToGroup: i,
243
244
  onCreateStart: s,
244
245
  onColumnAction: p
245
- } = r, c = n === void 0 ? null : n, [f, g] = W(null), [o, u] = W(null), b = Bt;
246
+ } = r, c = n === void 0 ? null : n, [f, g] = W(null), [o, u] = W(null), b = zt;
246
247
  let h;
247
248
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = () => {
248
249
  g(null), u(null);
@@ -277,14 +278,14 @@ const $t = (r) => {
277
278
  if (e[6] !== f || e[7] !== o || e[8] !== t || e[9] !== P || e[10] !== p || e[11] !== s || e[12] !== a || e[13] !== i || e[14] !== c) {
278
279
  let I;
279
280
  e[16] !== f || e[17] !== o || e[18] !== P || e[19] !== p || e[20] !== s || e[21] !== a || e[22] !== i || e[23] !== c ? (I = (y) => /* @__PURE__ */ B(q, { "data-testid": `board-column-${y.id}`, gap: "xs", padding: "compact", borderWidth: "1px", borderColor: "border", borderRadius: "sm", background: f === y.id ? "bg.active" : "bg.subtle", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: y.canDragIn ? x(y.id) : void 0, onDragLeave: y.canDragIn ? w : void 0, onDrop: y.canDragIn ? P(y.id) : void 0, children: [
280
- /* @__PURE__ */ d(kt, { column: y, onCreateStart: s, onColumnAction: p }),
281
+ /* @__PURE__ */ d(Gt, { column: y, onCreateStart: s, onColumnAction: p }),
281
282
  /* @__PURE__ */ d(Pe, { flex: "1", minH: "0", size: "xs", verticalScrollbarProps: {
282
283
  margin: "0"
283
284
  }, contentProps: {
284
285
  spaceY: "xs"
285
286
  }, children: y.groups && y.groups.length > 0 ? y.groups.map((S) => {
286
287
  const R = `${y.id}::${S.key}`;
287
- return /* @__PURE__ */ d(Pt, { columnId: y.id, group: S, selectedItemId: c, canDragIn: y.canDragIn, canDragOut: y.canDragOut, isDropTarget: o === R, onDragStart: b, onDragEnd: l, onGroupDragOver: (G) => {
288
+ return /* @__PURE__ */ d(At, { columnId: y.id, group: S, selectedItemId: c, canDragIn: y.canDragIn, canDragOut: y.canDragOut, isDropTarget: o === R, onDragStart: b, onDragEnd: l, onGroupDragOver: (G) => {
288
289
  G.preventDefault(), G.stopPropagation(), G.dataTransfer.dropEffect = "move", u(R), g(null);
289
290
  }, onGroupDragLeave: (G) => {
290
291
  G.currentTarget.contains(G.relatedTarget) || u(null);
@@ -319,7 +320,7 @@ const $t = (r) => {
319
320
  let k;
320
321
  return e[25] !== v ? (k = /* @__PURE__ */ d(Pe, { height: "100%", size: "xs", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: E, children: v }), e[25] = v, e[26] = k) : k = e[26], k;
321
322
  };
322
- function Bt(r) {
323
+ function zt(r) {
323
324
  return (e) => {
324
325
  e.dataTransfer.setData("text/plain", r), e.dataTransfer.effectAllowed = "move";
325
326
  };
@@ -337,7 +338,7 @@ const Ne = (r, e, t = 0) => {
337
338
  }), i && Xe(e, a.id) && n.push(...Ne(a.children ?? [], e, t + 1));
338
339
  }
339
340
  return n;
340
- }, zt = (r, e) => {
341
+ }, Kt = (r, e) => {
341
342
  if (r)
342
343
  return {
343
344
  _before: {
@@ -353,20 +354,20 @@ const Ne = (r, e, t = 0) => {
353
354
  }, Xe = (r, e) => r[e] !== !1, Mt = (r, e, t) => ({
354
355
  ...r,
355
356
  [e]: t
356
- }), Kt = (r, e) => e ? /* @__PURE__ */ B(X, { gap: "xs", minW: "0", maxW: "full", flex: "1", children: [
357
+ }), Lt = (r, e) => e ? /* @__PURE__ */ B(X, { gap: "xs", minW: "0", maxW: "full", flex: "1", children: [
357
358
  /* @__PURE__ */ d(_, { textStyle: "label/S/medium", minW: "0", truncate: !0, children: r.title }),
358
359
  /* @__PURE__ */ d(_, { textStyle: "label/XS", color: "fg.muted", flexShrink: 0, children: r.countBadge })
359
360
  ] }) : /* @__PURE__ */ B(X, { gap: "compact", minW: "0", maxW: "full", flex: "1", children: [
360
361
  r.eyebrow ? /* @__PURE__ */ d(_, { "data-testid": "list-row-eyebrow", flexShrink: 0, textStyle: "mono/XS", color: "fg.muted", truncate: !0, children: r.eyebrow }) : null,
361
362
  /* @__PURE__ */ d(_, { textStyle: "paragraph/S/regular", minW: "0", truncate: !0, children: r.title })
362
- ] }), Lt = (r) => (r.badges?.length ?? 0) > 0 || (r.customSlots?.length ?? 0) > 0 ? /* @__PURE__ */ d(X, { gap: "xs", flexShrink: 0, children: /* @__PURE__ */ B(we, { gap: "2xs", flexShrink: 0, children: [
363
+ ] }), _t = (r) => (r.badges?.length ?? 0) > 0 || (r.customSlots?.length ?? 0) > 0 ? /* @__PURE__ */ d(X, { gap: "xs", flexShrink: 0, children: /* @__PURE__ */ B(we, { gap: "2xs", flexShrink: 0, children: [
363
364
  r.badges?.map((t) => /* @__PURE__ */ d(je, { badge: t, onChange: r.onBadgeChange }, t.attributeId)),
364
365
  r.customSlots
365
- ] }) }) : null, _t = (r, e) => ({
366
+ ] }) }) : null, Vt = (r, e) => ({
366
367
  id: r.id,
367
- label: Kt(r, r.isGroup === !0),
368
+ label: Lt(r, r.isGroup === !0),
368
369
  icon: r.statusIcon ? /* @__PURE__ */ d(N, { "data-testid": r.isGroup ? "list-status-icon" : "row-status-icon", as: r.statusIcon, boxSize: "1rem", colorPalette: r.statusColorPalette ?? r.countColorPalette ?? "gray", color: r.statusColor ?? (r.isGroup || r.statusColorPalette ? "colorPalette.solid" : "fg.muted") }) : void 0,
369
- endContent: Lt(r),
370
+ endContent: _t(r),
370
371
  isContainer: e,
371
372
  contextMenuItems: r.contextMenuActions?.map((t) => ({
372
373
  id: t.key,
@@ -377,8 +378,8 @@ const Ne = (r, e, t = 0) => {
377
378
  endContent: t.endContent,
378
379
  onAction: t.onClick
379
380
  }))
380
- }), Vt = (r) => {
381
- const e = K(24), {
381
+ }), Wt = (r) => {
382
+ const e = M(24), {
382
383
  items: t,
383
384
  selectedItemId: n,
384
385
  expandedGroups: a,
@@ -398,13 +399,13 @@ const Ne = (r, e, t = 0) => {
398
399
  const P = D;
399
400
  m = re;
400
401
  let E;
401
- e[14] !== o || e[15] !== b || e[16] !== l || e[17] !== P || e[18] !== i || e[19] !== p ? (E = (v) => /* @__PURE__ */ d(Wt, { row: v, isExpanded: Xe(l, v.id), selectedItemId: p, activeDropTargetId: o, draggedItemId: b, onDraggedItemChange: h, onDropTargetChange: u, onItemClick: i, onExpandedChange: P }, v.id), e[14] = o, e[15] = b, e[16] = l, e[17] = P, e[18] = i, e[19] = p, e[20] = E) : E = e[20], x = w.map(E), e[1] = o, e[2] = b, e[3] = l, e[4] = a, e[5] = t, e[6] = s, e[7] = i, e[8] = p, e[9] = m, e[10] = x;
402
+ e[14] !== o || e[15] !== b || e[16] !== l || e[17] !== P || e[18] !== i || e[19] !== p ? (E = (v) => /* @__PURE__ */ d(Ht, { row: v, isExpanded: Xe(l, v.id), selectedItemId: p, activeDropTargetId: o, draggedItemId: b, onDraggedItemChange: h, onDropTargetChange: u, onItemClick: i, onExpandedChange: P }, v.id), e[14] = o, e[15] = b, e[16] = l, e[17] = P, e[18] = i, e[19] = p, e[20] = E) : E = e[20], x = w.map(E), e[1] = o, e[2] = b, e[3] = l, e[4] = a, e[5] = t, e[6] = s, e[7] = i, e[8] = p, e[9] = m, e[10] = x;
402
403
  } else
403
404
  m = e[9], x = e[10];
404
405
  let C;
405
406
  return e[21] !== m || e[22] !== x ? (C = /* @__PURE__ */ d(m, { children: x }), e[21] = m, e[22] = x, e[23] = C) : C = e[23], C;
406
- }, Wt = (r) => {
407
- const e = K(56), {
407
+ }, Ht = (r) => {
408
+ const e = M(56), {
408
409
  row: t,
409
410
  isExpanded: n,
410
411
  selectedItemId: a,
@@ -420,7 +421,7 @@ const Ne = (r, e, t = 0) => {
420
421
  canExpand: b
421
422
  } = t, h = o.id === a, l = !!o.onDropRow && o.id !== s, m = l && o.id === i;
422
423
  let x;
423
- e[0] !== b || e[1] !== o ? (x = _t(o, b), e[0] = b, e[1] = o, e[2] = x) : x = e[2];
424
+ e[0] !== b || e[1] !== o ? (x = Vt(o, b), e[0] = b, e[1] = o, e[2] = x) : x = e[2];
424
425
  const C = x;
425
426
  let w;
426
427
  e[3] !== n || e[4] !== g || e[5] !== t.id ? (w = () => g(t.id, !n), e[3] = n, e[4] = g, e[5] = t.id, e[6] = w) : w = e[6];
@@ -435,26 +436,26 @@ const Ne = (r, e, t = 0) => {
435
436
  }, e[7] = b, e[8] = u, e[9] = o, e[10] = f, e[11] = D, e[12] = P) : P = e[12];
436
437
  const E = P;
437
438
  let v;
438
- e[13] !== o.draggable || e[14] !== o.id || e[15] !== p || e[16] !== c ? (v = (M) => {
439
- o.draggable && (M.stopPropagation(), M.dataTransfer.setData("text/plain", o.id), M.dataTransfer.effectAllowed = "move", p(o.id), c(null));
439
+ e[13] !== o.draggable || e[14] !== o.id || e[15] !== p || e[16] !== c ? (v = (K) => {
440
+ o.draggable && (K.stopPropagation(), K.dataTransfer.setData("text/plain", o.id), K.dataTransfer.effectAllowed = "move", p(o.id), c(null));
440
441
  }, e[13] = o.draggable, e[14] = o.id, e[15] = p, e[16] = c, e[17] = v) : v = e[17];
441
442
  const k = v;
442
443
  let I;
443
- e[18] !== l || e[19] !== o.id || e[20] !== c ? (I = (M) => {
444
- l && (M.preventDefault(), M.stopPropagation(), M.dataTransfer.dropEffect = "move", c(o.id));
444
+ e[18] !== l || e[19] !== o.id || e[20] !== c ? (I = (K) => {
445
+ l && (K.preventDefault(), K.stopPropagation(), K.dataTransfer.dropEffect = "move", c(o.id));
445
446
  }, e[18] = l, e[19] = o.id, e[20] = c, e[21] = I) : I = e[21];
446
447
  const y = I;
447
448
  let S;
448
- e[22] !== c ? (S = (M) => {
449
- M.currentTarget.contains(M.relatedTarget) || c(null);
449
+ e[22] !== c ? (S = (K) => {
450
+ K.currentTarget.contains(K.relatedTarget) || c(null);
450
451
  }, e[22] = c, e[23] = S) : S = e[23];
451
452
  const R = S;
452
453
  let G;
453
- e[24] !== l || e[25] !== o || e[26] !== p || e[27] !== c ? (G = (M) => {
454
+ e[24] !== l || e[25] !== o || e[26] !== p || e[27] !== c ? (G = (K) => {
454
455
  if (!l || !o.onDropRow)
455
456
  return;
456
- M.preventDefault(), M.stopPropagation(), c(null), p(null);
457
- const j = M.dataTransfer.getData("text/plain");
457
+ K.preventDefault(), K.stopPropagation(), c(null), p(null);
458
+ const j = K.dataTransfer.getData("text/plain");
458
459
  !j || j === o.id || o.onDropRow(j);
459
460
  }, e[24] = l, e[25] = o, e[26] = p, e[27] = c, e[28] = G) : G = e[28];
460
461
  const $ = G;
@@ -464,14 +465,14 @@ const Ne = (r, e, t = 0) => {
464
465
  }, e[29] = p, e[30] = c, e[31] = O) : O = e[31];
465
466
  const T = O, A = m ? "true" : void 0, z = m ? "bg.subtle" : "transparent", U = o.draggable;
466
467
  let V;
467
- e[32] !== b || e[33] !== m ? (V = zt(m, b), e[32] = b, e[33] = m, e[34] = V) : V = e[34];
468
+ e[32] !== b || e[33] !== m ? (V = Kt(m, b), e[32] = b, e[33] = m, e[34] = V) : V = e[34];
468
469
  const ee = o.onDropRow ? R : void 0, oe = u ? void 0 : o.title, te = u ? "compact" : "collection";
469
470
  let H;
470
471
  e[35] !== b || e[36] !== E || e[37] !== n || e[38] !== h || e[39] !== t.depth || e[40] !== C || e[41] !== oe || e[42] !== te || e[43] !== D ? (H = /* @__PURE__ */ d(ke, { ...C, "aria-label": oe, variant: te, depth: t.depth, isSelected: h, isExpanded: n, showExpandToggle: b, showContextMenuTrigger: !1, onActivate: E, onToggleExpand: D }), e[35] = b, e[36] = E, e[37] = n, e[38] = h, e[39] = t.depth, e[40] = C, e[41] = oe, e[42] = te, e[43] = D, e[44] = H) : H = e[44];
471
472
  let Y;
472
473
  return e[45] !== T || e[46] !== y || e[47] !== k || e[48] !== $ || e[49] !== o.draggable || e[50] !== V || e[51] !== ee || e[52] !== H || e[53] !== A || e[54] !== z ? (Y = /* @__PURE__ */ d(re, { "data-drop-target": A, position: "relative", borderBottomWidth: "1px", borderBottomColor: "border.subtle", bg: z, draggable: U, transition: "background 120ms ease", ...V, onDragStart: k, onDragOver: y, onDragLeave: ee, onDragEnd: T, onDrop: $, children: H }), e[45] = T, e[46] = y, e[47] = k, e[48] = $, e[49] = o.draggable, e[50] = V, e[51] = ee, e[52] = H, e[53] = A, e[54] = z, e[55] = Y) : Y = e[55], Y;
473
474
  }, Oe = (r) => {
474
- const e = K(7), {
475
+ const e = M(7), {
475
476
  emptyState: t,
476
477
  title: n,
477
478
  description: a,
@@ -483,8 +484,8 @@ const Ne = (r, e, t = 0) => {
483
484
  }
484
485
  let s;
485
486
  return e[3] !== a || e[4] !== i || e[5] !== n ? (s = /* @__PURE__ */ d(dt, { title: n, description: a, height: i }), e[3] = a, e[4] = i, e[5] = n, e[6] = s) : s = e[6], s;
486
- }, Ht = (r) => {
487
- const e = K(20), {
487
+ }, jt = (r) => {
488
+ const e = M(20), {
488
489
  viewMode: t,
489
490
  boardColumns: n,
490
491
  listItems: a,
@@ -502,22 +503,22 @@ const Ne = (r, e, t = 0) => {
502
503
  } = r;
503
504
  if (t === "board") {
504
505
  let x;
505
- return e[0] !== n || e[1] !== f || e[2] !== p || e[3] !== c || e[4] !== g || e[5] !== o || e[6] !== b || e[7] !== u || e[8] !== s ? (x = /* @__PURE__ */ d(re, { flex: "1", minH: "0", children: n.length > 0 ? /* @__PURE__ */ d($t, { columns: n, selectedItemId: s, onMoveItem: g, onMoveToGroup: o, onCreateStart: u, onColumnAction: b }) : /* @__PURE__ */ d(Oe, { emptyState: p, title: c, description: f, height: "100%" }) }), e[0] = n, e[1] = f, e[2] = p, e[3] = c, e[4] = g, e[5] = o, e[6] = b, e[7] = u, e[8] = s, e[9] = x) : x = e[9], x;
506
+ return e[0] !== n || e[1] !== f || e[2] !== p || e[3] !== c || e[4] !== g || e[5] !== o || e[6] !== b || e[7] !== u || e[8] !== s ? (x = /* @__PURE__ */ d(re, { flex: "1", minH: "0", children: n.length > 0 ? /* @__PURE__ */ d(Bt, { columns: n, selectedItemId: s, onMoveItem: g, onMoveToGroup: o, onCreateStart: u, onColumnAction: b }) : /* @__PURE__ */ d(Oe, { emptyState: p, title: c, description: f, height: "100%" }) }), e[0] = n, e[1] = f, e[2] = p, e[3] = c, e[4] = g, e[5] = o, e[6] = b, e[7] = u, e[8] = s, e[9] = x) : x = e[9], x;
506
507
  }
507
508
  if (a.length > 0) {
508
509
  let x;
509
- return e[10] !== i || e[11] !== a || e[12] !== l || e[13] !== h || e[14] !== s ? (x = /* @__PURE__ */ d(Vt, { items: a, selectedItemId: s, expandedGroups: i, onExpandedGroupChange: h }, l), e[10] = i, e[11] = a, e[12] = l, e[13] = h, e[14] = s, e[15] = x) : x = e[15], x;
510
+ return e[10] !== i || e[11] !== a || e[12] !== l || e[13] !== h || e[14] !== s ? (x = /* @__PURE__ */ d(Wt, { items: a, selectedItemId: s, expandedGroups: i, onExpandedGroupChange: h }, l), e[10] = i, e[11] = a, e[12] = l, e[13] = h, e[14] = s, e[15] = x) : x = e[15], x;
510
511
  }
511
512
  let m;
512
513
  return e[16] !== f || e[17] !== p || e[18] !== c ? (m = /* @__PURE__ */ d(Oe, { emptyState: p, title: c, description: f }), e[16] = f, e[17] = p, e[18] = c, e[19] = m) : m = e[19], m;
513
- }, jt = (r) => {
514
- const e = K(2), {
514
+ }, Ft = (r) => {
515
+ const e = M(2), {
515
516
  children: t
516
517
  } = r;
517
518
  let n;
518
519
  return e[0] !== t ? (n = /* @__PURE__ */ d(_, { minH: "0.75rem", textStyle: "label/XS", color: "fg.muted", lineHeight: "1", letterSpacing: "0.08em", textTransform: "uppercase", children: t }), e[0] = t, e[1] = n) : n = e[1], n;
519
520
  }, $e = (r) => {
520
- const e = K(15), {
521
+ const e = M(15), {
521
522
  group: t,
522
523
  params: n,
523
524
  renderParam: a,
@@ -525,7 +526,7 @@ const Ne = (r, e, t = 0) => {
525
526
  width: s
526
527
  } = r, p = s === void 0 ? "auto" : s, c = t.title, f = i === "small" ? "2xs" : "xs";
527
528
  let g;
528
- e[0] !== t.title ? (g = /* @__PURE__ */ d(jt, { children: t.title }), e[0] = t.title, e[1] = g) : g = e[1];
529
+ e[0] !== t.title ? (g = /* @__PURE__ */ d(Ft, { children: t.title }), e[0] = t.title, e[1] = g) : g = e[1];
529
530
  const o = i === "small" ? "2xs" : "xs";
530
531
  let u;
531
532
  e[2] !== n || e[3] !== a ? (u = n.map(a), e[2] = n, e[3] = a, e[4] = u) : u = e[4];
@@ -536,8 +537,8 @@ const Ne = (r, e, t = 0) => {
536
537
  g,
537
538
  b
538
539
  ] }), e[9] = t.title, e[10] = f, e[11] = g, e[12] = b, e[13] = p, e[14] = h) : h = e[14], h;
539
- }, Ft = (r) => {
540
- const e = K(35), {
540
+ }, Nt = (r) => {
541
+ const e = M(35), {
541
542
  params: t,
542
543
  groups: n,
543
544
  defaultValues: a,
@@ -548,10 +549,10 @@ const Ne = (r, e, t = 0) => {
548
549
  } = r;
549
550
  let f, g, o, u, b, h, l, m;
550
551
  if (e[0] !== a || e[1] !== i || e[2] !== s || e[3] !== p || e[4] !== t || e[5] !== n || e[6] !== c) {
551
- const C = t === void 0 ? [] : t, w = n === void 0 ? [] : n, D = c === void 0 ? "default" : c, P = C.filter(He), E = w.map(Nt);
552
+ const C = t === void 0 ? [] : t, w = n === void 0 ? [] : n, D = c === void 0 ? "default" : c, P = C.filter(He), E = w.map(Xt);
552
553
  let v;
553
554
  e[15] !== a || e[16] !== i || e[17] !== s || e[18] !== p || e[19] !== D ? (v = (A) => /* @__PURE__ */ d(xt, { param: A, defaultValues: a, onChange: i, onOpenResource: s, readOnly: p, presentation: "horizontal", size: D === "small" ? "xs" : "sm" }, A.id), e[15] = a, e[16] = i, e[17] = s, e[18] = p, e[19] = D, e[20] = v) : v = e[20];
554
- const k = v, I = P.filter(Xt), y = P.filter(he), S = E.map(Ut).filter(Yt), R = E.map(Jt).filter(Qt), G = D === "small" ? "xs" : "sm", $ = I.length > 0 || S.length > 0;
555
+ const k = v, I = P.filter(qt), y = P.filter(he), S = E.map(Yt).filter(Jt), R = E.map(Qt).filter(Zt), G = D === "small" ? "xs" : "sm", $ = I.length > 0 || S.length > 0;
555
556
  f = q, g = "1", o = "full", u = G, b = "0", h = $ ? /* @__PURE__ */ B(X, { gap: G, flexWrap: "wrap", alignItems: "start", minW: "0", children: [
556
557
  I.map(k),
557
558
  S.map((A) => {
@@ -581,44 +582,44 @@ const Ne = (r, e, t = 0) => {
581
582
  m
582
583
  ] }), e[26] = f, e[27] = g, e[28] = o, e[29] = u, e[30] = b, e[31] = h, e[32] = l, e[33] = m, e[34] = x) : x = e[34], x;
583
584
  };
584
- function Nt(r) {
585
+ function Xt(r) {
585
586
  return {
586
587
  ...r,
587
588
  params: r.params.filter(He)
588
589
  };
589
590
  }
590
- function Xt(r) {
591
- return !he(r);
592
- }
593
591
  function qt(r) {
594
592
  return !he(r);
595
593
  }
596
594
  function Ut(r) {
595
+ return !he(r);
596
+ }
597
+ function Yt(r) {
597
598
  return {
598
599
  group: r,
599
- params: r.params.filter(qt)
600
+ params: r.params.filter(Ut)
600
601
  };
601
602
  }
602
- function Yt(r) {
603
+ function Jt(r) {
603
604
  const {
604
605
  params: e
605
606
  } = r;
606
607
  return e.length > 0;
607
608
  }
608
- function Jt(r) {
609
+ function Qt(r) {
609
610
  return {
610
611
  group: r,
611
612
  params: r.params.filter(he)
612
613
  };
613
614
  }
614
- function Qt(r) {
615
+ function Zt(r) {
615
616
  const {
616
617
  params: e
617
618
  } = r;
618
619
  return e.length > 0;
619
620
  }
620
- const Zt = (r) => {
621
- const e = K(7), {
621
+ const en = (r) => {
622
+ const e = M(7), {
622
623
  disabled: t,
623
624
  field: n,
624
625
  onChange: a
@@ -626,9 +627,9 @@ const Zt = (r) => {
626
627
  let p;
627
628
  e[0] !== a ? (p = (f) => a(f), e[0] = a, e[1] = p) : p = e[1];
628
629
  let c;
629
- return e[2] !== n.placeholder || e[3] !== i || e[4] !== s || e[5] !== p ? (c = /* @__PURE__ */ d(Dt, { defaultState: i, isEditable: s, placeholder: n.placeholder, autoFocus: !0, onChange: p }), e[2] = n.placeholder, e[3] = i, e[4] = s, e[5] = p, e[6] = c) : c = e[6], c;
630
- }, en = (r) => {
631
- const e = K(24), {
630
+ return e[2] !== n.placeholder || e[3] !== i || e[4] !== s || e[5] !== p ? (c = /* @__PURE__ */ d(It, { defaultState: i, isEditable: s, placeholder: n.placeholder, autoFocus: !0, onChange: p }), e[2] = n.placeholder, e[3] = i, e[4] = s, e[5] = p, e[6] = c) : c = e[6], c;
631
+ }, tn = (r) => {
632
+ const e = M(24), {
632
633
  disabled: t,
633
634
  field: n,
634
635
  removeLabel: a,
@@ -660,8 +661,8 @@ const Zt = (r) => {
660
661
  l,
661
662
  m
662
663
  ] }), e[20] = u, e[21] = l, e[22] = m, e[23] = x) : x = e[23], x;
663
- }, tn = (r) => {
664
- const e = K(45), {
664
+ }, nn = (r) => {
665
+ const e = M(45), {
665
666
  disabled: t,
666
667
  field: n,
667
668
  value: a,
@@ -681,7 +682,7 @@ const Zt = (r) => {
681
682
  let h;
682
683
  e[11] !== n.options ? (h = n.options ?? [], e[11] = n.options, e[12] = h) : h = e[12];
683
684
  let l;
684
- e[13] !== h ? (l = h.map(rn), e[13] = h, e[14] = l) : l = e[14];
685
+ e[13] !== h ? (l = h.map(on), e[13] = h, e[14] = l) : l = e[14];
685
686
  const m = n.type === "multi-select", x = n.placeholder ?? n.label, C = !n.required;
686
687
  let w;
687
688
  e[15] !== i ? (w = (P, E) => i(E), e[15] = i, e[16] = w) : w = e[16];
@@ -699,8 +700,8 @@ const Zt = (r) => {
699
700
  e[35] !== n.type || e[36] !== i ? (c = (g) => i(n.type === "number" && g.target.value ? Number(g.target.value) : g.target.value), e[35] = n.type, e[36] = i, e[37] = c) : c = e[37];
700
701
  let f;
701
702
  return e[38] !== t || e[39] !== n.label || e[40] !== n.placeholder || e[41] !== s || e[42] !== p || e[43] !== c ? (f = /* @__PURE__ */ d(it, { "aria-label": n.label, size: "sm", type: s, placeholder: n.placeholder, value: p, disabled: t, onChange: c }), e[38] = t, e[39] = n.label, e[40] = n.placeholder, e[41] = s, e[42] = p, e[43] = c, e[44] = f) : f = e[44], f;
702
- }, nn = (r) => {
703
- const e = K(20), {
703
+ }, rn = (r) => {
704
+ const e = M(20), {
704
705
  disabled: t,
705
706
  field: n,
706
707
  removeLabel: a,
@@ -709,11 +710,11 @@ const Zt = (r) => {
709
710
  } = r;
710
711
  if (n.type === "files") {
711
712
  let u;
712
- return e[0] !== t || e[1] !== n || e[2] !== s || e[3] !== a || e[4] !== i ? (u = /* @__PURE__ */ d(en, { disabled: t, field: n, removeLabel: a, value: i, onChange: s }), e[0] = t, e[1] = n, e[2] = s, e[3] = a, e[4] = i, e[5] = u) : u = e[5], u;
713
+ return e[0] !== t || e[1] !== n || e[2] !== s || e[3] !== a || e[4] !== i ? (u = /* @__PURE__ */ d(tn, { disabled: t, field: n, removeLabel: a, value: i, onChange: s }), e[0] = t, e[1] = n, e[2] = s, e[3] = a, e[4] = i, e[5] = u) : u = e[5], u;
713
714
  }
714
715
  if (n.type === "markdown") {
715
716
  let u;
716
- return e[6] !== t || e[7] !== n || e[8] !== s ? (u = /* @__PURE__ */ d(Zt, { disabled: t, field: n, onChange: s }), e[6] = t, e[7] = n, e[8] = s, e[9] = u) : u = e[9], u;
717
+ return e[6] !== t || e[7] !== n || e[8] !== s ? (u = /* @__PURE__ */ d(en, { disabled: t, field: n, onChange: s }), e[6] = t, e[7] = n, e[8] = s, e[9] = u) : u = e[9], u;
717
718
  }
718
719
  const p = `${n.label}${n.required ? " *" : ""}`;
719
720
  let c;
@@ -721,7 +722,7 @@ const Zt = (r) => {
721
722
  let f;
722
723
  e[12] !== n.description ? (f = n.description ? /* @__PURE__ */ d(_, { textStyle: "paragraph/XS/regular", color: "fg.muted", children: n.description }) : null, e[12] = n.description, e[13] = f) : f = e[13];
723
724
  let g;
724
- e[14] !== r ? (g = /* @__PURE__ */ d(tn, { ...r }), e[14] = r, e[15] = g) : g = e[15];
725
+ e[14] !== r ? (g = /* @__PURE__ */ d(nn, { ...r }), e[14] = r, e[15] = g) : g = e[15];
725
726
  let o;
726
727
  return e[16] !== c || e[17] !== f || e[18] !== g ? (o = /* @__PURE__ */ B(q, { gap: "2xs", children: [
727
728
  c,
@@ -729,7 +730,7 @@ const Zt = (r) => {
729
730
  g
730
731
  ] }), e[16] = c, e[17] = f, e[18] = g, e[19] = o) : o = e[19], o;
731
732
  };
732
- function rn(r) {
733
+ function on(r) {
733
734
  return {
734
735
  id: r.value,
735
736
  name: r.label,
@@ -737,7 +738,7 @@ function rn(r) {
737
738
  color: r.color
738
739
  };
739
740
  }
740
- const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type === "boolean" ? !1 : "", Be = (r) => Object.fromEntries(r.map((e) => [e.id, e.defaultValue ?? on(e)])), ln = (r, e) => r.required ? Array.isArray(e) ? e.length > 0 : typeof e == "string" ? e.trim().length > 0 : e != null : !0, De = (r) => r.filter((e) => e.editable), ze = (r, e, t) => Object.fromEntries(r.map((n) => [n.id, n.id === e ? t : n.type.kind === "enum-multi" ? [] : ""])), an = (r, e) => {
741
+ const ln = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type === "boolean" ? !1 : "", Be = (r) => Object.fromEntries(r.map((e) => [e.id, e.defaultValue ?? ln(e)])), an = (r, e) => r.required ? Array.isArray(e) ? e.length > 0 : typeof e == "string" ? e.trim().length > 0 : e != null : !0, De = (r) => r.filter((e) => e.editable), ze = (r, e, t) => Object.fromEntries(r.map((n) => [n.id, n.id === e ? t : n.type.kind === "enum-multi" ? [] : ""])), sn = (r, e) => {
741
742
  const t = {
742
743
  id: r.id,
743
744
  name: r.label,
@@ -774,7 +775,7 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
774
775
  defaultValue: "",
775
776
  singleLine: !0
776
777
  };
777
- }, sn = (r) => {
778
+ }, dn = (r) => {
778
779
  const {
779
780
  open: e,
780
781
  columnId: t,
@@ -813,7 +814,7 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
813
814
  }, [a, e, t, n]);
814
815
  const D = () => {
815
816
  u || s();
816
- }, P = i.fields.every((v) => ln(v, c[v.id])), E = async () => {
817
+ }, P = i.fields.every((v) => an(v, c[v.id])), E = async () => {
817
818
  if (!(!P || u)) {
818
819
  b(!0), l("");
819
820
  try {
@@ -834,19 +835,21 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
834
835
  };
835
836
  return /* @__PURE__ */ B(ne.Root, { open: e, size: "lg", scrollBehavior: "inside", onOpenChange: (v) => !v.open && D(), children: [
836
837
  /* @__PURE__ */ d(ne.Backdrop, {}),
837
- /* @__PURE__ */ d(ne.Positioner, { children: /* @__PURE__ */ B(ne.Content, { maxH: "calc(100% - 48px)", children: [
838
+ /* @__PURE__ */ d(ne.Positioner, { children: /* @__PURE__ */ B(ne.Content, { maxH: "calc(100% - 48px)", onKeyDownCapture: (v) => Dt(v, () => {
839
+ E();
840
+ }, P && !u), children: [
838
841
  /* @__PURE__ */ B(ne.Header, { children: [
839
842
  /* @__PURE__ */ d(_, { textStyle: "heading/M/semibold", children: i.title }),
840
843
  /* @__PURE__ */ d(ne.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ d(st, { size: "sm", disabled: u }) })
841
844
  ] }),
842
845
  /* @__PURE__ */ d(ne.Body, { children: /* @__PURE__ */ B(q, { gap: "md", children: [
843
- i.fields.map((v) => /* @__PURE__ */ d(nn, { field: v, removeLabel: i.labels.removeFile, value: c[v.id], disabled: u, onChange: (k) => f((I) => ({
846
+ i.fields.map((v) => /* @__PURE__ */ d(rn, { field: v, removeLabel: i.labels.removeFile, value: c[v.id], disabled: u, onChange: (k) => f((I) => ({
844
847
  ...I,
845
848
  [v.id]: k
846
849
  })) }, `${v.id}:${m.toString()}`)),
847
850
  w.length > 0 ? /* @__PURE__ */ B(q, { gap: "2xs", children: [
848
851
  /* @__PURE__ */ d(_, { textStyle: "label/S/medium", children: i.labels.properties }),
849
- /* @__PURE__ */ d(Ft, { variant: "small", params: w.map((v) => an(v, v.id === n)), defaultValues: g, readOnly: u, onChange: (v, k) => o((I) => ({
852
+ /* @__PURE__ */ d(Nt, { variant: "small", params: w.map((v) => sn(v, v.id === n)), defaultValues: g, readOnly: u, onChange: (v, k) => o((I) => ({
850
853
  ...I,
851
854
  [v]: k
852
855
  })) })
@@ -861,7 +864,7 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
861
864
  ] }) })
862
865
  ] }) })
863
866
  ] });
864
- }, dn = (r) => {
867
+ }, cn = (r) => {
865
868
  const {
866
869
  settings: e,
867
870
  visibleRows: t,
@@ -887,8 +890,8 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
887
890
  eyebrow: x && x !== l.title ? x : void 0,
888
891
  title: l.title,
889
892
  ...u(l),
890
- badges: Ke(l, a, g),
891
- customSlots: Me(l, a, g),
893
+ badges: Me(l, a, g),
894
+ customSlots: Ke(l, a, g),
892
895
  contextMenuActions: c?.(l),
893
896
  onClick: () => i?.(l),
894
897
  onBadgeChange: s ? (C, w) => s(l.id, C, w) : void 0,
@@ -927,11 +930,11 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
927
930
  columnKey: l.key
928
931
  }))
929
932
  } : h(l));
930
- }, cn = (r) => {
933
+ }, un = (r) => {
931
934
  const e = r.attributes.id;
932
935
  return typeof e == "string" && e ? e : r.id;
933
- }, Gn = (r) => {
934
- const e = K(59), {
936
+ }, Tn = (r) => {
937
+ const e = M(59), {
935
938
  rows: t,
936
939
  storageKey: n,
937
940
  attributes: a,
@@ -961,7 +964,7 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
961
964
  views: o,
962
965
  activeViewId: u
963
966
  }, e[0] = u, e[1] = g, e[2] = f, e[3] = o, e[4] = $) : $ = e[4];
964
- const O = $, T = pe(n, un, O), A = pe(n, pn, O), z = pe(n, gn, O), U = pe(n, fn, O);
967
+ const O = $, T = pe(n, pn, O), A = pe(n, gn, O), z = pe(n, fn, O), U = pe(n, mn, O);
965
968
  let V, ee;
966
969
  if (e[5] !== S || e[6] !== A || e[7] !== w || e[8] !== D || e[9] !== h || e[10] !== l || e[11] !== b || e[12] !== t || e[13] !== T) {
967
970
  const se = Qe(t, A, S), de = Ze(T.columnGrouping, S, A), le = et(se, {
@@ -970,7 +973,7 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
970
973
  rowGrouping: T.rowGrouping,
971
974
  knownColumnKeys: de
972
975
  });
973
- V = dn({
976
+ V = cn({
974
977
  settings: T,
975
978
  visibleRows: se,
976
979
  grouped: le,
@@ -980,14 +983,14 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
980
983
  onReorder: l,
981
984
  getRowContextMenuActions: D
982
985
  });
983
- const Ge = T.displayProperties.filter(mn), Re = (J) => J.map((L) => ({
986
+ const Ge = T.displayProperties.filter(bn), Re = (J) => J.map((L) => ({
984
987
  id: L.id,
985
988
  contextMenuActions: D?.(L),
986
989
  cardProps: {
987
- eyebrow: T.displayProperties.includes("id") ? cn(L) : void 0,
990
+ eyebrow: T.displayProperties.includes("id") ? un(L) : void 0,
988
991
  title: L.title,
989
- badges: Ke(L, S, Ge),
990
- customSlots: Me(L, S, Ge),
992
+ badges: Me(L, S, Ge),
993
+ customSlots: Ke(L, S, Ge),
991
994
  onBadgeChange: h ? (xe, ue) => h(L.id, xe, ue) : void 0,
992
995
  onClick: () => b?.(L)
993
996
  }
@@ -1016,7 +1019,7 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
1016
1019
  const oe = ee;
1017
1020
  let te;
1018
1021
  e[16] !== h || e[17] !== l || e[18] !== T ? (te = async (se, de, le) => {
1019
- await It({
1022
+ await wt({
1020
1023
  settings: T,
1021
1024
  rowId: se,
1022
1025
  targetColumnId: de,
@@ -1029,7 +1032,7 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
1029
1032
  const H = te;
1030
1033
  let Y;
1031
1034
  e[20] !== h || e[21] !== l || e[22] !== T ? (Y = async (se, de, le) => {
1032
- await wt({
1035
+ await kt({
1033
1036
  settings: T,
1034
1037
  rowId: se,
1035
1038
  targetGroupKey: de,
@@ -1038,14 +1041,14 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
1038
1041
  onReorder: l
1039
1042
  });
1040
1043
  }, e[20] = h, e[21] = l, e[22] = T, e[23] = Y) : Y = e[23];
1041
- const M = Y;
1044
+ const K = Y;
1042
1045
  let j;
1043
1046
  e[24] !== S || e[25] !== u || e[26] !== g || e[27] !== f || e[28] !== o || e[29] !== y || e[30] !== t || e[31] !== n || e[32] !== E ? (j = y ? null : /* @__PURE__ */ d(tt, { rows: t, storageKey: n, attributes: S, defaultSettings: f, defaultFilters: g, defaultViews: o, defaultActiveViewId: u, leading: E }), e[24] = S, e[25] = u, e[26] = g, e[27] = f, e[28] = o, e[29] = y, e[30] = t, e[31] = n, e[32] = E, e[33] = j) : j = e[33];
1044
1047
  const ye = m && x ? G : void 0, ve = `${T.columnGrouping}:${T.rowGrouping}`;
1045
1048
  let ae;
1046
- e[34] !== oe || e[35] !== I || e[36] !== s || e[37] !== k || e[38] !== z || e[39] !== H || e[40] !== M || e[41] !== V || e[42] !== C || e[43] !== v || e[44] !== U || e[45] !== T.viewMode || e[46] !== ve || e[47] !== ye ? (ae = /* @__PURE__ */ d(Ht, { viewMode: T.viewMode, boardColumns: oe, listItems: V, listExpandedGroups: z, selectedRowId: v, emptyState: s, emptyTitle: k, emptyDescription: I, onBoardMoveItem: H, onBoardMoveToGroup: M, onCreateRow: ye, onColumnAction: C, onListExpandedGroupChange: U, listKey: ve }), e[34] = oe, e[35] = I, e[36] = s, e[37] = k, e[38] = z, e[39] = H, e[40] = M, e[41] = V, e[42] = C, e[43] = v, e[44] = U, e[45] = T.viewMode, e[46] = ve, e[47] = ye, e[48] = ae) : ae = e[48];
1049
+ e[34] !== oe || e[35] !== I || e[36] !== s || e[37] !== k || e[38] !== z || e[39] !== H || e[40] !== K || e[41] !== V || e[42] !== C || e[43] !== v || e[44] !== U || e[45] !== T.viewMode || e[46] !== ve || e[47] !== ye ? (ae = /* @__PURE__ */ d(jt, { viewMode: T.viewMode, boardColumns: oe, listItems: V, listExpandedGroups: z, selectedRowId: v, emptyState: s, emptyTitle: k, emptyDescription: I, onBoardMoveItem: H, onBoardMoveToGroup: K, onCreateRow: ye, onColumnAction: C, onListExpandedGroupChange: U, listKey: ve }), e[34] = oe, e[35] = I, e[36] = s, e[37] = k, e[38] = z, e[39] = H, e[40] = K, e[41] = V, e[42] = C, e[43] = v, e[44] = U, e[45] = T.viewMode, e[46] = ve, e[47] = ye, e[48] = ae) : ae = e[48];
1047
1050
  let ie;
1048
- e[49] !== S || e[50] !== R || e[51] !== m || e[52] !== x || e[53] !== T.columnGrouping ? (ie = m && x && R ? /* @__PURE__ */ d(sn, { open: !0, columnId: R, columnAttributeId: T.columnGrouping === Z ? void 0 : T.columnGrouping, attributes: S, config: m, onClose: () => G(null), onSubmit: x }) : null, e[49] = S, e[50] = R, e[51] = m, e[52] = x, e[53] = T.columnGrouping, e[54] = ie) : ie = e[54];
1051
+ e[49] !== S || e[50] !== R || e[51] !== m || e[52] !== x || e[53] !== T.columnGrouping ? (ie = m && x && R ? /* @__PURE__ */ d(dn, { open: !0, columnId: R, columnAttributeId: T.columnGrouping === Z ? void 0 : T.columnGrouping, attributes: S, config: m, onClose: () => G(null), onSubmit: x }) : null, e[49] = S, e[50] = R, e[51] = m, e[52] = x, e[53] = T.columnGrouping, e[54] = ie) : ie = e[54];
1049
1052
  let ce;
1050
1053
  return e[55] !== ae || e[56] !== ie || e[57] !== j ? (ce = /* @__PURE__ */ B(q, { "data-testid": "kanban-renderer", height: "100%", minH: "0", gap: "0", background: "bg", overflow: "hidden", children: [
1051
1054
  j,
@@ -1053,48 +1056,48 @@ const on = (r) => r.type === "files" || r.type === "multi-select" ? [] : r.type
1053
1056
  ie
1054
1057
  ] }), e[55] = ae, e[56] = ie, e[57] = j, e[58] = ce) : ce = e[58], ce;
1055
1058
  };
1056
- function un(r) {
1059
+ function pn(r) {
1057
1060
  return r.settings;
1058
1061
  }
1059
- function pn(r) {
1062
+ function gn(r) {
1060
1063
  return r.filters;
1061
1064
  }
1062
- function gn(r) {
1065
+ function fn(r) {
1063
1066
  return r.expandedGroups;
1064
1067
  }
1065
- function fn(r) {
1068
+ function mn(r) {
1066
1069
  return r.setExpandedGroup;
1067
1070
  }
1068
- function mn(r) {
1071
+ function bn(r) {
1069
1072
  return r !== "id";
1070
1073
  }
1071
1074
  export {
1072
- En as DisplayMenu,
1073
- Pn as FilterMenu,
1074
- Gn as KanbanRenderer,
1075
- $t as KanbanRendererBoard,
1075
+ An as DisplayMenu,
1076
+ On as FilterMenu,
1077
+ Tn as KanbanRenderer,
1078
+ Bt as KanbanRendererBoard,
1076
1079
  Fe as KanbanRendererCard,
1077
- sn as KanbanRendererCreateDialog,
1078
- Vt as KanbanRendererList,
1080
+ dn as KanbanRendererCreateDialog,
1081
+ Wt as KanbanRendererList,
1079
1082
  tt as KanbanRendererToolbar,
1080
1083
  Ie as MANUAL_ORDERING,
1081
1084
  Z as NO_GROUPING,
1082
- An as buildDisplayPropertyOptions,
1083
- On as buildFilterCategories,
1084
- $n as buildGroupingOptions,
1085
- Bn as buildOrderingOptions,
1086
- Ke as collectDisplayBadges,
1085
+ $n as buildDisplayPropertyOptions,
1086
+ Bn as buildFilterCategories,
1087
+ zn as buildGroupingOptions,
1088
+ Kn as buildOrderingOptions,
1089
+ Me as collectDisplayBadges,
1087
1090
  Le as findAttribute,
1088
- zn as getAttributeStringValues,
1089
- Mn as getAttributeValue,
1091
+ Mn as getAttributeStringValues,
1092
+ Ln as getAttributeValue,
1090
1093
  Ue as getEnumOptions,
1091
- Kn as isActiveKanbanRendererViewDirty,
1092
- Ln as isAttributesSource,
1093
- _n as isEnumOptionsSource,
1094
- Vn as renderAttributeBadge,
1095
- Wn as resolveAttributeOptions,
1096
- Hn as sanitizeFilters,
1097
- jn as sanitizeSettings,
1094
+ _n as isActiveKanbanRendererViewDirty,
1095
+ Vn as isAttributesSource,
1096
+ Wn as isEnumOptionsSource,
1097
+ Hn as renderAttributeBadge,
1098
+ jn as resolveAttributeOptions,
1099
+ Fn as sanitizeFilters,
1100
+ Nn as sanitizeSettings,
1098
1101
  pe as useKanbanRendererStore,
1099
1102
  Je as useResolvedAttributes
1100
1103
  };