@pstdio/ui 0.16.0 → 0.17.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/chat-ui.js +1618 -1102
- package/dist/chat-ui.js.map +1 -1
- package/dist/{checkbox-D5AzFRlb.js → checkbox-B2zYVemL.js} +28 -28
- package/dist/checkbox-B2zYVemL.js.map +1 -0
- package/dist/components/chat-ui/components/chat-input-actions.d.ts +1 -0
- package/dist/components/chat-ui/components/chat-input.d.ts +8 -2
- package/dist/components/chat-ui/components/chat-panel.d.ts +11 -5
- package/dist/components/chat-ui/components/composer-constants.d.ts +1 -0
- package/dist/components/chat-ui/components/conversation-browse.d.ts +22 -0
- package/dist/components/chat-ui/components/message-types.d.ts +14 -0
- package/dist/components/chat-ui/components/queued-follow-up-list-state.d.ts +4 -0
- package/dist/components/chat-ui/components/queued-follow-up-list.d.ts +11 -0
- package/dist/components/chat-ui/components/timeline.d.ts +5 -0
- package/dist/components/chat-ui/components/working-indicator.d.ts +9 -0
- package/dist/components/chat-ui/components/workspace-hub.d.ts +8 -1
- package/dist/components/chat-ui/index.d.ts +4 -2
- package/dist/components/chat-ui/tool-rendering/build-timeline.d.ts +2 -2
- package/dist/components/chat-ui/tool-rendering/question-prompt.d.ts +9 -0
- package/dist/components/data-table/build-columns.d.ts +13 -2
- package/dist/components/data-table/categorical-color-cell.d.ts +8 -0
- package/dist/components/data-table/color-cell-style.d.ts +13 -0
- package/dist/components/data-table/color-scale-cell.d.ts +7 -0
- package/dist/components/data-table/data-table-column-menu.d.ts +12 -0
- package/dist/components/data-table/data-table-header.d.ts +18 -0
- package/dist/components/data-table/data-table-stat-chart.d.ts +21 -0
- package/dist/components/data-table/data-table-state.d.ts +27 -0
- package/dist/components/data-table/data-table-stats-row.d.ts +11 -0
- package/dist/components/data-table/data-table-stats.d.ts +19 -0
- package/dist/components/data-table/data-table-table-parts.d.ts +21 -0
- package/dist/components/data-table/data-table.story-descriptions.d.ts +6 -0
- package/dist/components/data-table/data-table.story-fixtures.d.ts +6 -0
- package/dist/components/data-table/friendly-json-display.d.ts +31 -0
- package/dist/components/data-table/index.d.ts +3 -1
- package/dist/components/data-table/json-cell.d.ts +6 -0
- package/dist/components/data-table/pagination-footer.d.ts +4 -1
- package/dist/components/data-table/selection-toolbar.d.ts +3 -1
- package/dist/components/data-table/types.d.ts +72 -0
- package/dist/components/{data-renderer → kanban-renderer}/display-menu.d.ts +4 -4
- package/dist/components/{data-renderer → kanban-renderer}/filter-menu.d.ts +3 -3
- package/dist/components/kanban-renderer/index.d.ts +19 -0
- package/dist/components/kanban-renderer/kanban-renderer-attribute-badge.d.ts +7 -0
- package/dist/components/{data-renderer/data-renderer-board-column-header.d.ts → kanban-renderer/kanban-renderer-board-column-header.d.ts} +2 -2
- package/dist/components/{data-renderer/data-renderer-board-group-section.d.ts → kanban-renderer/kanban-renderer-board-group-section.d.ts} +2 -2
- package/dist/components/{data-renderer/data-renderer-board-move.d.ts → kanban-renderer/kanban-renderer-board-move.d.ts} +3 -3
- package/dist/components/{data-renderer/data-renderer-board.d.ts → kanban-renderer/kanban-renderer-board.d.ts} +15 -14
- package/dist/components/{data-renderer/data-renderer-card.d.ts → kanban-renderer/kanban-renderer-card.d.ts} +4 -3
- package/dist/components/{data-renderer/data-renderer-content.d.ts → kanban-renderer/kanban-renderer-content.d.ts} +8 -8
- package/dist/components/kanban-renderer/kanban-renderer-create-dialog.d.ts +12 -0
- package/dist/components/kanban-renderer/kanban-renderer-create-field.d.ts +10 -0
- package/dist/components/kanban-renderer/kanban-renderer-grouping.d.ts +23 -0
- package/dist/components/{data-renderer/data-renderer-helpers.d.ts → kanban-renderer/kanban-renderer-helpers.d.ts} +15 -15
- package/dist/components/kanban-renderer/kanban-renderer-list-items.d.ts +25 -0
- package/dist/components/kanban-renderer/kanban-renderer-list.d.ts +43 -0
- package/dist/components/{data-renderer/data-renderer-story-fixtures.d.ts → kanban-renderer/kanban-renderer-story-fixtures.d.ts} +3 -2
- package/dist/components/kanban-renderer/kanban-renderer-toolbar.d.ts +15 -0
- package/dist/components/kanban-renderer/kanban-renderer-view-bar.d.ts +14 -0
- package/dist/components/kanban-renderer/kanban-renderer-views.d.ts +12 -0
- package/dist/components/{data-renderer/data-renderer.d.ts → kanban-renderer/kanban-renderer.d.ts} +11 -8
- package/dist/components/{data-renderer → kanban-renderer}/types.d.ts +51 -8
- package/dist/components/kanban-renderer/use-kanban-renderer-store.d.ts +78 -0
- package/dist/components/layout/index.d.ts +1 -0
- package/dist/components/layout/panel-header.constants.d.ts +2 -0
- package/dist/components/layout/resizable-split-layout.d.ts +3 -2
- package/dist/components/layout/resizable-split-layout.geometry.d.ts +56 -0
- package/dist/components/layout/resizable-split-layout.handle.d.ts +6 -2
- package/dist/components/layout/resizable-split-layout.panels.d.ts +25 -0
- package/dist/components/list-row/list-row-actions.d.ts +1 -0
- package/dist/components/list-row/list-row-content.d.ts +7 -0
- package/dist/components/list-row/list-row.types.d.ts +4 -1
- package/dist/components/overlays/attached-menu.d.ts +6 -0
- package/dist/components/overlays/attachment-chip.d.ts +13 -0
- package/dist/components/overlays/index.d.ts +6 -2
- package/dist/components/overlays/resource-context-menu.d.ts +13 -1
- package/dist/components/param-editor/index.d.ts +2 -1
- package/dist/components/param-editor/inputs/selection-input.d.ts +6 -6
- package/dist/components/param-editor/inputs/selection-menu.d.ts +29 -0
- package/dist/components/param-editor/param-editor-horizontal.d.ts +1 -0
- package/dist/components/param-editor/param-editor-read-only-field.d.ts +9 -0
- package/dist/components/param-editor/param-editor-section.d.ts +1 -0
- package/dist/components/param-editor/param-editor.d.ts +1 -0
- package/dist/components/param-editor/param-editor.types.d.ts +35 -6
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/ReferenceMenuPlugin.d.ts +2 -1
- package/dist/components/rich-text/prompt-input/plugins/ReferenceMenuPlugin/hooks/useContextLookup.d.ts +2 -1
- package/dist/components/rich-text/prompt-input/plugins/ReferencePlugin/ReferencePlugin.d.ts +2 -1
- package/dist/components/rich-text/prompt-input/prompt-input.d.ts +3 -2
- package/dist/components/rich-text/types.d.ts +1 -1
- package/dist/components/{sidebar/sidebar-footer.d.ts → sidenav/sidenav-footer.d.ts} +2 -2
- package/dist/components/{sidebar/sidebar-header.d.ts → sidenav/sidenav-header.d.ts} +2 -2
- package/dist/components/sidenav/sidenav.d.ts +2 -0
- package/dist/components/sidenav/sidenav.store.d.ts +49 -0
- package/dist/components/{sidebar/sidebar.types.d.ts → sidenav/sidenav.types.d.ts} +5 -5
- package/dist/components/tab-strip/tab-visibility-filter.d.ts +1 -0
- package/dist/components/terminal/terminal.d.ts +11 -0
- package/dist/components/tree-list/tree-list-visibility-filter.d.ts +0 -1
- package/dist/components/tree-list/tree-list.d.ts +1 -1
- package/dist/components/tree-list/tree-list.types.d.ts +4 -0
- package/dist/data-table.js +1271 -0
- package/dist/data-table.js.map +1 -0
- package/dist/diff.js +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1885 -3360
- package/dist/index.js.map +1 -1
- package/dist/kanban-renderer-toolbar-B9ro-9z1.js +1318 -0
- package/dist/kanban-renderer-toolbar-B9ro-9z1.js.map +1 -0
- package/dist/kanban-renderer.js +1087 -0
- package/dist/kanban-renderer.js.map +1 -0
- package/dist/list-row-YRUxEcy3.js +808 -0
- package/dist/list-row-YRUxEcy3.js.map +1 -0
- package/dist/param-editor-CYZJbmKu.js +933 -0
- package/dist/param-editor-CYZJbmKu.js.map +1 -0
- package/dist/param-editor-read-only-field-DgtLqcFa.js +925 -0
- package/dist/param-editor-read-only-field-DgtLqcFa.js.map +1 -0
- package/dist/prism-BXb57lxL.js +125 -0
- package/dist/prism-BXb57lxL.js.map +1 -0
- package/dist/rich-message-DBf_5YlW.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/terminal.js +197 -177
- package/dist/terminal.js.map +1 -1
- package/dist/theme/primitives/sizes.d.ts +23 -0
- package/dist/theme/recipes/button.d.ts +6 -0
- package/dist/theme/recipes/tabs.d.ts +4 -4
- package/dist/theme/tokens/colors.d.ts +18 -24
- package/dist/{theme-CJBYBJaA.js → theme-CNhnbvcE.js} +208 -162
- package/dist/theme-CNhnbvcE.js.map +1 -0
- package/dist/theme.js +1 -1
- package/dist/tree-list-CZHLAURU.js +1033 -0
- package/dist/tree-list-CZHLAURU.js.map +1 -0
- package/package.json +10 -4
- package/dist/checkbox-D5AzFRlb.js.map +0 -1
- package/dist/components/data-renderer/card-interaction-guard.d.ts +0 -2
- package/dist/components/data-renderer/data-renderer-attribute-badge.d.ts +0 -7
- package/dist/components/data-renderer/data-renderer-grouping.d.ts +0 -23
- package/dist/components/data-renderer/data-renderer-list.d.ts +0 -39
- package/dist/components/data-renderer/data-renderer-toolbar.d.ts +0 -12
- package/dist/components/data-renderer/index.d.ts +0 -18
- package/dist/components/data-renderer/use-data-renderer-store.d.ts +0 -59
- package/dist/components/sidebar/sidebar.d.ts +0 -2
- package/dist/components/sidebar/sidebar.store.d.ts +0 -49
- package/dist/data-renderer.js +0 -1669
- package/dist/data-renderer.js.map +0 -1
- package/dist/list-row-mi3Hn-Um.js +0 -740
- package/dist/list-row-mi3Hn-Um.js.map +0 -1
- package/dist/theme-CJBYBJaA.js.map +0 -1
- package/dist/tree-list-CcuZMLS5.js +0 -930
- package/dist/tree-list-CcuZMLS5.js.map +0 -1
- package/dist/workspace-badge-Fuo-1zPj.js +0 -314
- package/dist/workspace-badge-Fuo-1zPj.js.map +0 -1
- /package/dist/components/{data-renderer/data-renderer-badge-helpers.d.ts → kanban-renderer/kanban-renderer-badge-helpers.d.ts} +0 -0
- /package/dist/components/{data-renderer/data-renderer-enum-helpers.d.ts → kanban-renderer/kanban-renderer-enum-helpers.d.ts} +0 -0
- /package/dist/components/{data-renderer → kanban-renderer}/use-resolved-attributes.d.ts +0 -0
|
@@ -0,0 +1,1087 @@
|
|
|
1
|
+
import { N as Z, M as Ie, g as Ue, o as me, r as Ye, c as Ke, a as Le, f as Ve, b as $e, u as Je, d as ge, e as Qe, h as Ze, i as _e, K as et } from "./kanban-renderer-toolbar-B9ro-9z1.js";
|
|
2
|
+
import { D as Gn, F as Rn, j as Pn, k as En, l as Tn, m as An, n as On, p as Bn, q as Mn, s as Kn, t as Ln, v as Vn, w as $n, x as zn, y as Wn } from "./kanban-renderer-toolbar-B9ro-9z1.js";
|
|
3
|
+
import { jsx as s, jsxs as M, Fragment as tt } from "react/jsx-runtime";
|
|
4
|
+
import { c as z } from "react/compiler-runtime";
|
|
5
|
+
import { Text as $, Badge as be, IconButton as Ee, Icon as q, Menu as N, Spacer as nt, HStack as X, Portal as ot, Wrap as we, Stack as U, Box as ne, VStack as rt, Textarea as lt, Button as he, Input as it, Dialog as te, CloseButton as at } from "@chakra-ui/react";
|
|
6
|
+
import { useState as j, useRef as ze, useEffect as fe } from "react";
|
|
7
|
+
import { E as st } from "./empty-state-Bo4HVrgr.js";
|
|
8
|
+
import { L as ke, R as We } from "./list-row-YRUxEcy3.js";
|
|
9
|
+
import { T as dt, S as Te } from "./scroll-area-BMbg1WcD.js";
|
|
10
|
+
import { Plus as ct, MoreHorizontal as ut, SquareCheck as pt, Square as gt, Check as ft, ChevronDown as mt, ChevronRight as bt, Paperclip as ht } from "lucide-react";
|
|
11
|
+
import { g as ye, W as yt, N as xt, S as je, D as vt, C as Ct, b as St, P as Dt, a as It } from "./param-editor-read-only-field-DgtLqcFa.js";
|
|
12
|
+
import { H as wt, A as kt, i as Gt } from "./prism-BXb57lxL.js";
|
|
13
|
+
const Rt = async (o) => {
|
|
14
|
+
const {
|
|
15
|
+
settings: e,
|
|
16
|
+
rowId: t,
|
|
17
|
+
targetColumnId: n,
|
|
18
|
+
targetGroupKey: r,
|
|
19
|
+
beforeItemId: l,
|
|
20
|
+
onAttributeChange: d,
|
|
21
|
+
onReorder: b
|
|
22
|
+
} = o;
|
|
23
|
+
e.columnGrouping !== Z && d && await d(t, e.columnGrouping, n), e.rowGrouping !== Z && r && d && await d(t, e.rowGrouping, r), e.ordering.attributeId === Ie && await b?.(t, l);
|
|
24
|
+
}, Pt = async (o) => {
|
|
25
|
+
const {
|
|
26
|
+
settings: e,
|
|
27
|
+
rowId: t,
|
|
28
|
+
targetGroupKey: n,
|
|
29
|
+
beforeItemId: r,
|
|
30
|
+
onAttributeChange: l,
|
|
31
|
+
onReorder: d
|
|
32
|
+
} = o;
|
|
33
|
+
e.rowGrouping === Z || !l || (await l(t, e.rowGrouping, n), e.ordering.attributeId === Ie && await d?.(t, r));
|
|
34
|
+
}, Et = (o) => {
|
|
35
|
+
const e = z(26), {
|
|
36
|
+
column: t,
|
|
37
|
+
onCreateStart: n,
|
|
38
|
+
onColumnAction: r
|
|
39
|
+
} = o, l = t.color ?? "gray";
|
|
40
|
+
let d;
|
|
41
|
+
e[0] !== t.icon ? (d = ye(t.icon), e[0] = t.icon, e[1] = d) : d = e[1];
|
|
42
|
+
let b;
|
|
43
|
+
e[2] !== d ? (b = /* @__PURE__ */ s(q, { "data-testid": "column-status-icon", as: d, boxSize: "0.875rem", color: "colorPalette.solid", flexShrink: 0 }), e[2] = d, e[3] = b) : b = e[3];
|
|
44
|
+
let u;
|
|
45
|
+
e[4] !== t.label ? (u = /* @__PURE__ */ s($, { textStyle: "label/S/medium", children: t.label }), e[4] = t.label, e[5] = u) : u = e[5];
|
|
46
|
+
let y;
|
|
47
|
+
e[6] !== t.items.length ? (y = /* @__PURE__ */ s(be, { variant: "number", size: "xs", colorPalette: "gray", children: t.items.length }), e[6] = t.items.length, e[7] = y) : y = e[7];
|
|
48
|
+
let f;
|
|
49
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ s(nt, {}), e[8] = f) : f = e[8];
|
|
50
|
+
let i;
|
|
51
|
+
e[9] !== t.canCreate || e[10] !== t.createLabel || e[11] !== t.id || e[12] !== n ? (i = t.canCreate && n && /* @__PURE__ */ s(dt, { content: t.createLabel ?? "Create new row", children: /* @__PURE__ */ s(Ee, { size: "2xs", variant: "outline", onClick: () => n(t.id), "aria-label": t.createLabel ?? "Create row", children: /* @__PURE__ */ s(q, { as: ct, boxSize: "12px" }) }) }), e[9] = t.canCreate, e[10] = t.createLabel, e[11] = t.id, e[12] = n, e[13] = i) : i = e[13];
|
|
52
|
+
let p;
|
|
53
|
+
e[14] !== t.actions || e[15] !== t.id || e[16] !== t.label || e[17] !== r ? (p = t.actions.length > 0 && /* @__PURE__ */ M(N.Root, { children: [
|
|
54
|
+
/* @__PURE__ */ s(N.Trigger, { asChild: !0, children: /* @__PURE__ */ s(Ee, { size: "2xs", variant: "ghost", "aria-label": `Column actions for ${t.label}`, children: /* @__PURE__ */ s(q, { as: ut, boxSize: "12px" }) }) }),
|
|
55
|
+
/* @__PURE__ */ s(N.Positioner, { children: /* @__PURE__ */ s(N.Content, { minW: "180px", bg: "bg", children: t.actions.map((m) => /* @__PURE__ */ s(N.Item, { value: m.id, asChild: !0, children: /* @__PURE__ */ s(ke, { asChild: !0, variant: "full-width", label: m.label, icon: /* @__PURE__ */ s(q, { as: m.icon, boxSize: "16px" }), onActivate: () => r?.(t.id, m.id) }) }, m.id)) }) })
|
|
56
|
+
] }), e[14] = t.actions, e[15] = t.id, e[16] = t.label, e[17] = r, e[18] = p) : p = e[18];
|
|
57
|
+
let x;
|
|
58
|
+
return e[19] !== l || e[20] !== b || e[21] !== u || e[22] !== y || e[23] !== i || e[24] !== p ? (x = /* @__PURE__ */ M(X, { minH: "1.5rem", gap: "2xs", alignItems: "center", colorPalette: l, children: [
|
|
59
|
+
b,
|
|
60
|
+
u,
|
|
61
|
+
y,
|
|
62
|
+
f,
|
|
63
|
+
i,
|
|
64
|
+
p
|
|
65
|
+
] }), e[19] = l, e[20] = b, e[21] = u, e[22] = y, e[23] = i, e[24] = p, e[25] = x) : x = e[25], x;
|
|
66
|
+
}, Q = (o) => o.stopPropagation(), Tt = (o) => Array.isArray(o.value) ? o.value : o.value ? [o.value] : [], At = (o, e) => o.includes(e) ? o.filter((t) => t !== e) : [...o, e], Ae = {
|
|
67
|
+
bg: {
|
|
68
|
+
_light: "bg.muted",
|
|
69
|
+
_dark: "bg.subtle"
|
|
70
|
+
},
|
|
71
|
+
color: "fg.muted",
|
|
72
|
+
_hover: {
|
|
73
|
+
bg: {
|
|
74
|
+
_light: "bg.subtle",
|
|
75
|
+
_dark: "bg.hover"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}, Ot = (o) => o.color ? `${o.color}.fg` : "fg.muted", Bt = (o) => o.isMultiValue ? o.isSelected ? /* @__PURE__ */ s(pt, { size: 14 }) : /* @__PURE__ */ s(gt, { size: 14 }) : o.isSelected ? /* @__PURE__ */ s(ft, { size: 14 }) : null, He = (o) => {
|
|
79
|
+
const e = z(49), {
|
|
80
|
+
badge: t,
|
|
81
|
+
onChange: n
|
|
82
|
+
} = o;
|
|
83
|
+
let r, l, d, b, u, y, f, i, p, x, m, a, g, C;
|
|
84
|
+
if (e[0] !== t || e[1] !== n) {
|
|
85
|
+
C = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
86
|
+
e: {
|
|
87
|
+
const T = t.options ?? [], v = !!(n && t.isEditable && T.length > 0), R = Array.isArray(t.value), w = Tt(t);
|
|
88
|
+
let h;
|
|
89
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
90
|
+
onClick: Q,
|
|
91
|
+
onPointerDown: Q,
|
|
92
|
+
onKeyDown: Q
|
|
93
|
+
}, e[16] = h) : h = e[16];
|
|
94
|
+
const S = h, P = (B) => {
|
|
95
|
+
let L;
|
|
96
|
+
R ? L = At(w, B) : L = w.includes(B) ? "" : B, n?.(t.attributeId, L);
|
|
97
|
+
};
|
|
98
|
+
let k;
|
|
99
|
+
e[17] !== t ? (k = t.icon ? /* @__PURE__ */ s(q, { as: ye(t.icon), boxSize: "3.5", color: Ot(t) }) : null, e[17] = t, e[18] = k) : k = e[18];
|
|
100
|
+
let A;
|
|
101
|
+
e[19] !== v ? (A = v ? /* @__PURE__ */ s(q, { as: mt, boxSize: "3", color: "fg.muted" }) : null, e[19] = v, e[20] = A) : A = e[20];
|
|
102
|
+
let O;
|
|
103
|
+
e[21] !== t.label || e[22] !== k || e[23] !== A ? (O = /* @__PURE__ */ M(tt, { children: [
|
|
104
|
+
k,
|
|
105
|
+
t.label,
|
|
106
|
+
A
|
|
107
|
+
] }), e[21] = t.label, e[22] = k, e[23] = A, e[24] = O) : O = e[24];
|
|
108
|
+
const c = O;
|
|
109
|
+
if (!v) {
|
|
110
|
+
let B;
|
|
111
|
+
e[25] !== c ? (B = /* @__PURE__ */ s(be, { variant: "subtle", gap: "2xs", textStyle: "label/XS/medium", ...Ae, children: c }), e[25] = c, e[26] = B) : B = e[26], C = B;
|
|
112
|
+
break e;
|
|
113
|
+
}
|
|
114
|
+
b = N.Root, a = !R, e[27] !== c ? (g = /* @__PURE__ */ s(N.Trigger, { asChild: !0, children: /* @__PURE__ */ s(be, { as: "span", role: "button", tabIndex: 0, variant: "subtle", gap: "2xs", textStyle: "label/XS/medium", cursor: "pointer", ...Ae, onClick: Q, onPointerDown: Q, onKeyDown: Q, children: c }) }), e[27] = c, e[28] = g) : g = e[28], d = ot, l = N.Positioner, r = N.Content, u = "180px", y = "0", f = "0", i = Q, p = Q, x = Q, m = T.map((B) => {
|
|
115
|
+
const L = w.includes(B.value);
|
|
116
|
+
return /* @__PURE__ */ s(N.Item, { value: B.value, asChild: !0, children: /* @__PURE__ */ s(ke, { asChild: !0, role: R ? "menuitemcheckbox" : "menuitemradio", "aria-checked": L, variant: "full-width", id: B.value, label: B.label, icon: /* @__PURE__ */ s(q, { as: ye(B.icon), boxSize: "16px" }), iconColor: `${B.color ?? "gray"}.500`, isSelected: L, endContent: Bt({
|
|
117
|
+
isMultiValue: R,
|
|
118
|
+
isSelected: L
|
|
119
|
+
}), onActivate: () => P(B.value), ...S }) }, B.value);
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
e[0] = t, e[1] = n, e[2] = r, e[3] = l, e[4] = d, e[5] = b, e[6] = u, e[7] = y, e[8] = f, e[9] = i, e[10] = p, e[11] = x, e[12] = m, e[13] = a, e[14] = g, e[15] = C;
|
|
123
|
+
} else
|
|
124
|
+
r = e[2], l = e[3], d = e[4], b = e[5], u = e[6], y = e[7], f = e[8], i = e[9], p = e[10], x = e[11], m = e[12], a = e[13], g = e[14], C = e[15];
|
|
125
|
+
if (C !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
|
|
126
|
+
return C;
|
|
127
|
+
let D;
|
|
128
|
+
e[29] !== r || e[30] !== u || e[31] !== y || e[32] !== f || e[33] !== i || e[34] !== p || e[35] !== x || e[36] !== m ? (D = /* @__PURE__ */ s(r, { minW: u, p: y, gap: f, onClick: i, onPointerDown: p, onKeyDown: x, children: m }), e[29] = r, e[30] = u, e[31] = y, e[32] = f, e[33] = i, e[34] = p, e[35] = x, e[36] = m, e[37] = D) : D = e[37];
|
|
129
|
+
let I;
|
|
130
|
+
e[38] !== l || e[39] !== D ? (I = /* @__PURE__ */ s(l, { children: D }), e[38] = l, e[39] = D, e[40] = I) : I = e[40];
|
|
131
|
+
let G;
|
|
132
|
+
e[41] !== d || e[42] !== I ? (G = /* @__PURE__ */ s(d, { children: I }), e[41] = d, e[42] = I, e[43] = G) : G = e[43];
|
|
133
|
+
let E;
|
|
134
|
+
return e[44] !== b || e[45] !== G || e[46] !== a || e[47] !== g ? (E = /* @__PURE__ */ M(b, { closeOnSelect: a, children: [
|
|
135
|
+
g,
|
|
136
|
+
G
|
|
137
|
+
] }), e[44] = b, e[45] = G, e[46] = a, e[47] = g, e[48] = E) : E = e[48], E;
|
|
138
|
+
}, Fe = (o) => {
|
|
139
|
+
const e = z(30), {
|
|
140
|
+
eyebrow: t,
|
|
141
|
+
title: n,
|
|
142
|
+
badges: r,
|
|
143
|
+
customSlots: l,
|
|
144
|
+
workspaceBadge: d,
|
|
145
|
+
isSelected: b,
|
|
146
|
+
draggable: u,
|
|
147
|
+
onBadgeChange: y,
|
|
148
|
+
onDragStart: f,
|
|
149
|
+
onDragEnd: i,
|
|
150
|
+
onClick: p
|
|
151
|
+
} = o;
|
|
152
|
+
let x;
|
|
153
|
+
e[0] !== r ? (x = r === void 0 ? [] : r, e[0] = r, e[1] = x) : x = e[1];
|
|
154
|
+
const m = x;
|
|
155
|
+
let a;
|
|
156
|
+
e[2] !== l ? (a = l === void 0 ? [] : l, e[2] = l, e[3] = a) : a = e[3];
|
|
157
|
+
const g = a, C = b === void 0 ? !1 : b, D = m.length > 0 || g.length > 0, I = u ? "grab" : p ? "pointer" : "default";
|
|
158
|
+
let G;
|
|
159
|
+
e[4] !== p ? (G = (O) => {
|
|
160
|
+
O.defaultPrevented || !(O.target instanceof Node) || !O.currentTarget.contains(O.target) || p?.();
|
|
161
|
+
}, e[4] = p, e[5] = G) : G = e[5];
|
|
162
|
+
const E = G, T = C ? "border.accent" : "border", v = C ? "border.accent" : "border.accent-light";
|
|
163
|
+
let R;
|
|
164
|
+
e[6] !== v ? (R = {
|
|
165
|
+
borderColor: v
|
|
166
|
+
}, e[6] = v, e[7] = R) : R = e[7];
|
|
167
|
+
const w = p ? E : void 0, h = C ? "true" : void 0;
|
|
168
|
+
let S;
|
|
169
|
+
e[8] !== t || e[9] !== d ? (S = t || d ? /* @__PURE__ */ M(X, { minW: "0", gap: "2xs", children: [
|
|
170
|
+
t ? /* @__PURE__ */ s($, { textStyle: "label/XS", color: "fg.muted", fontFamily: "mono", truncate: !0, children: t }) : null,
|
|
171
|
+
/* @__PURE__ */ s(X, { marginLeft: "auto", children: d ? /* @__PURE__ */ s(yt, { ...d }) : null })
|
|
172
|
+
] }) : null, e[8] = t, e[9] = d, e[10] = S) : S = e[10];
|
|
173
|
+
let P;
|
|
174
|
+
e[11] !== n ? (P = /* @__PURE__ */ s($, { textStyle: "paragraph/S/regular", minW: "0", overflowWrap: "anywhere", children: n }), e[11] = n, e[12] = P) : P = e[12];
|
|
175
|
+
let k;
|
|
176
|
+
e[13] !== m || e[14] !== g || e[15] !== D || e[16] !== y ? (k = D && /* @__PURE__ */ M(we, { gap: "2xs", children: [
|
|
177
|
+
m.map((O) => /* @__PURE__ */ s(He, { badge: O, onChange: y }, O.attributeId)),
|
|
178
|
+
g
|
|
179
|
+
] }), e[13] = m, e[14] = g, e[15] = D, e[16] = y, e[17] = k) : k = e[17];
|
|
180
|
+
let A;
|
|
181
|
+
return e[18] !== I || e[19] !== u || e[20] !== i || e[21] !== f || e[22] !== h || e[23] !== S || e[24] !== P || e[25] !== k || e[26] !== T || e[27] !== R || e[28] !== w ? (A = /* @__PURE__ */ M(U, { gap: "xs", padding: "compact", borderRadius: "compact", borderWidth: "1px", borderColor: T, width: "100%", background: "bg", transition: "border-color 0.2s ease-in-out, background 0.2s ease-in-out", _hover: R, cursor: I, draggable: u, onDragStart: f, onDragEnd: i, onClick: w, "data-selected": h, "data-testid": "renderer-card", children: [
|
|
182
|
+
S,
|
|
183
|
+
P,
|
|
184
|
+
k
|
|
185
|
+
] }), e[18] = I, e[19] = u, e[20] = i, e[21] = f, e[22] = h, e[23] = S, e[24] = P, e[25] = k, e[26] = T, e[27] = R, e[28] = w, e[29] = A) : A = e[29], A;
|
|
186
|
+
}, Mt = (o) => {
|
|
187
|
+
const e = z(30), {
|
|
188
|
+
columnId: t,
|
|
189
|
+
group: n,
|
|
190
|
+
selectedItemId: r,
|
|
191
|
+
canDragIn: l,
|
|
192
|
+
canDragOut: d,
|
|
193
|
+
isDropTarget: b,
|
|
194
|
+
onDragStart: u,
|
|
195
|
+
onDragEnd: y,
|
|
196
|
+
onGroupDragOver: f,
|
|
197
|
+
onGroupDragLeave: i,
|
|
198
|
+
onGroupDrop: p
|
|
199
|
+
} = o, [x, m] = j(!0), a = b ? "bg.subtle" : "transparent", g = l ? f : void 0, C = l ? i : void 0, D = l ? p : void 0;
|
|
200
|
+
let I;
|
|
201
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = {
|
|
202
|
+
bg: "bg.hover"
|
|
203
|
+
}, e[0] = I) : I = e[0];
|
|
204
|
+
let G;
|
|
205
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = () => m(Kt), e[1] = G) : G = e[1];
|
|
206
|
+
const E = x ? "rotate(90deg)" : "rotate(0deg)";
|
|
207
|
+
let T;
|
|
208
|
+
e[2] !== E ? (T = /* @__PURE__ */ s(ne, { display: "flex", alignItems: "center", flexShrink: 0, children: /* @__PURE__ */ s(q, { as: bt, boxSize: "14px", color: "fg.muted", transform: E, transition: "transform 0.15s ease" }) }), e[2] = E, e[3] = T) : T = e[3];
|
|
209
|
+
let v;
|
|
210
|
+
e[4] !== n.label ? (v = /* @__PURE__ */ s($, { textStyle: "label/S/medium", color: "fg.muted", children: n.label }), e[4] = n.label, e[5] = v) : v = e[5];
|
|
211
|
+
let R;
|
|
212
|
+
e[6] !== n.items.length ? (R = /* @__PURE__ */ s(be, { variant: "number", colorPalette: "gray", size: "sm", children: n.items.length }), e[6] = n.items.length, e[7] = R) : R = e[7];
|
|
213
|
+
let w;
|
|
214
|
+
e[8] !== T || e[9] !== v || e[10] !== R ? (w = /* @__PURE__ */ M(X, { px: "xs", py: "2xs", gap: "2xs", cursor: "pointer", _hover: I, borderRadius: "sm", onClick: G, children: [
|
|
215
|
+
T,
|
|
216
|
+
v,
|
|
217
|
+
R
|
|
218
|
+
] }), e[8] = T, e[9] = v, e[10] = R, e[11] = w) : w = e[11];
|
|
219
|
+
let h;
|
|
220
|
+
e[12] !== l || e[13] !== d || e[14] !== x || e[15] !== n.items || e[16] !== y || e[17] !== u || e[18] !== p || e[19] !== r ? (h = x && /* @__PURE__ */ s(U, { gap: "xs", pt: "xs", children: n.items.map((P) => /* @__PURE__ */ s(We, { actions: P.contextMenuActions ?? [], children: /* @__PURE__ */ s(ne, { onDragOver: l ? Lt : void 0, onDrop: l ? (k) => {
|
|
221
|
+
k.preventDefault(), k.stopPropagation();
|
|
222
|
+
const A = k.dataTransfer.getData("text/plain");
|
|
223
|
+
!A || A === P.id || p(k, P.id);
|
|
224
|
+
} : void 0, children: /* @__PURE__ */ s(Fe, { ...P.cardProps, isSelected: P.id === r, draggable: d, onDragStart: d ? u(P.id) : void 0, onDragEnd: d ? y : void 0 }) }) }, P.id)) }), e[12] = l, e[13] = d, e[14] = x, e[15] = n.items, e[16] = y, e[17] = u, e[18] = p, e[19] = r, e[20] = h) : h = e[20];
|
|
225
|
+
let S;
|
|
226
|
+
return e[21] !== t || e[22] !== n.key || e[23] !== a || e[24] !== g || e[25] !== w || e[26] !== h || e[27] !== C || e[28] !== D ? (S = /* @__PURE__ */ M(U, { "data-column-id": t, "data-group-key": n.key, gap: "0", borderRadius: "sm", background: a, transition: "background 150ms ease", onDragOver: g, onDragLeave: C, onDrop: D, children: [
|
|
227
|
+
w,
|
|
228
|
+
h
|
|
229
|
+
] }), e[21] = t, e[22] = n.key, e[23] = a, e[24] = g, e[25] = w, e[26] = h, e[27] = C, e[28] = D, e[29] = S) : S = e[29], S;
|
|
230
|
+
};
|
|
231
|
+
function Kt(o) {
|
|
232
|
+
return !o;
|
|
233
|
+
}
|
|
234
|
+
function Lt(o) {
|
|
235
|
+
o.preventDefault(), o.stopPropagation(), o.dataTransfer.dropEffect = "move";
|
|
236
|
+
}
|
|
237
|
+
const Vt = (o) => {
|
|
238
|
+
const e = z(27), {
|
|
239
|
+
columns: t,
|
|
240
|
+
selectedItemId: n,
|
|
241
|
+
onMoveItem: r,
|
|
242
|
+
onMoveToGroup: l,
|
|
243
|
+
onCreateStart: d,
|
|
244
|
+
onColumnAction: b
|
|
245
|
+
} = o, u = n === void 0 ? null : n, [y, f] = j(null), [i, p] = j(null), x = $t;
|
|
246
|
+
let m;
|
|
247
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = () => {
|
|
248
|
+
f(null), p(null);
|
|
249
|
+
}, e[0] = m) : m = e[0];
|
|
250
|
+
const a = m;
|
|
251
|
+
let g;
|
|
252
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = (w) => (h) => {
|
|
253
|
+
h.preventDefault(), h.dataTransfer.dropEffect = "move", f(w);
|
|
254
|
+
}, e[1] = g) : g = e[1];
|
|
255
|
+
const C = g;
|
|
256
|
+
let D;
|
|
257
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = (w) => {
|
|
258
|
+
w.currentTarget.contains(w.relatedTarget) || f(null);
|
|
259
|
+
}, e[2] = D) : D = e[2];
|
|
260
|
+
const I = D;
|
|
261
|
+
let G;
|
|
262
|
+
e[3] !== r ? (G = (w) => (h) => {
|
|
263
|
+
h.preventDefault(), f(null);
|
|
264
|
+
const S = h.dataTransfer.getData("text/plain");
|
|
265
|
+
S && r?.(S, w);
|
|
266
|
+
}, e[3] = r, e[4] = G) : G = e[4];
|
|
267
|
+
const E = G;
|
|
268
|
+
let T;
|
|
269
|
+
e[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
|
|
270
|
+
display: "flex",
|
|
271
|
+
alignItems: "stretch",
|
|
272
|
+
gap: "sm",
|
|
273
|
+
padding: "comfortable",
|
|
274
|
+
minH: "100%"
|
|
275
|
+
}, e[5] = T) : T = e[5];
|
|
276
|
+
let v;
|
|
277
|
+
if (e[6] !== y || e[7] !== i || e[8] !== t || e[9] !== E || e[10] !== b || e[11] !== d || e[12] !== r || e[13] !== l || e[14] !== u) {
|
|
278
|
+
let w;
|
|
279
|
+
e[16] !== y || e[17] !== i || e[18] !== E || e[19] !== b || e[20] !== d || e[21] !== r || e[22] !== l || e[23] !== u ? (w = (h) => /* @__PURE__ */ M(U, { "data-testid": `board-column-${h.id}`, gap: "xs", padding: "compact", borderWidth: "1px", borderColor: "border", borderRadius: "sm", background: y === h.id ? "bg.active" : "bg.subtle", transition: "background 150ms ease", height: "100%", minH: "240px", overflow: "hidden", minW: "260px", flex: "1 0 260px", onDragOver: h.canDragIn ? C(h.id) : void 0, onDragLeave: h.canDragIn ? I : void 0, onDrop: h.canDragIn ? E(h.id) : void 0, children: [
|
|
280
|
+
/* @__PURE__ */ s(Et, { column: h, onCreateStart: d, onColumnAction: b }),
|
|
281
|
+
/* @__PURE__ */ s(Te, { flex: "1", minH: "0", size: "xs", verticalScrollbarProps: {
|
|
282
|
+
margin: "0"
|
|
283
|
+
}, contentProps: {
|
|
284
|
+
spaceY: "xs"
|
|
285
|
+
}, children: h.groups && h.groups.length > 0 ? h.groups.map((S) => {
|
|
286
|
+
const P = `${h.id}::${S.key}`;
|
|
287
|
+
return /* @__PURE__ */ s(Mt, { columnId: h.id, group: S, selectedItemId: u, canDragIn: h.canDragIn, canDragOut: h.canDragOut, isDropTarget: i === P, onDragStart: x, onDragEnd: a, onGroupDragOver: (k) => {
|
|
288
|
+
k.preventDefault(), k.stopPropagation(), k.dataTransfer.dropEffect = "move", p(P), f(null);
|
|
289
|
+
}, onGroupDragLeave: (k) => {
|
|
290
|
+
k.currentTarget.contains(k.relatedTarget) || p(null);
|
|
291
|
+
}, onGroupDrop: (k, A) => {
|
|
292
|
+
k.preventDefault(), k.stopPropagation(), p(null), f(null);
|
|
293
|
+
const O = k.dataTransfer.getData("text/plain");
|
|
294
|
+
if (O) {
|
|
295
|
+
if (r) {
|
|
296
|
+
r(O, h.id, {
|
|
297
|
+
beforeItemId: A,
|
|
298
|
+
targetGroupKey: S.key
|
|
299
|
+
});
|
|
300
|
+
return;
|
|
301
|
+
}
|
|
302
|
+
l?.(O, S.key, {
|
|
303
|
+
beforeItemId: A
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
} }, S.key);
|
|
307
|
+
}) : h.items.map((S) => /* @__PURE__ */ s(We, { actions: S.contextMenuActions ?? [], children: /* @__PURE__ */ s(ne, { onDragOver: h.canDragIn ? (P) => {
|
|
308
|
+
P.preventDefault(), P.stopPropagation(), P.dataTransfer.dropEffect = "move", f(h.id);
|
|
309
|
+
} : void 0, onDrop: h.canDragIn ? (P) => {
|
|
310
|
+
P.preventDefault(), P.stopPropagation(), f(null);
|
|
311
|
+
const k = P.dataTransfer.getData("text/plain");
|
|
312
|
+
!k || k === S.id || r?.(k, h.id, {
|
|
313
|
+
beforeItemId: S.id
|
|
314
|
+
});
|
|
315
|
+
} : void 0, children: /* @__PURE__ */ s(Fe, { ...S.cardProps, isSelected: S.id === u, draggable: h.canDragOut, onDragStart: h.canDragOut ? x(S.id) : void 0, onDragEnd: h.canDragOut ? a : void 0 }) }) }, S.id)) })
|
|
316
|
+
] }, h.id), e[16] = y, e[17] = i, e[18] = E, e[19] = b, e[20] = d, e[21] = r, e[22] = l, e[23] = u, e[24] = w) : w = e[24], v = t.map(w), e[6] = y, e[7] = i, e[8] = t, e[9] = E, e[10] = b, e[11] = d, e[12] = r, e[13] = l, e[14] = u, e[15] = v;
|
|
317
|
+
} else
|
|
318
|
+
v = e[15];
|
|
319
|
+
let R;
|
|
320
|
+
return e[25] !== v ? (R = /* @__PURE__ */ s(Te, { height: "100%", size: "xs", showHorizontalScrollbar: !0, showVerticalScrollbar: !1, contentProps: T, children: v }), e[25] = v, e[26] = R) : R = e[26], R;
|
|
321
|
+
};
|
|
322
|
+
function $t(o) {
|
|
323
|
+
return (e) => {
|
|
324
|
+
e.dataTransfer.setData("text/plain", o), e.dataTransfer.effectAllowed = "move";
|
|
325
|
+
};
|
|
326
|
+
}
|
|
327
|
+
const Ne = (o, e, t = 0) => {
|
|
328
|
+
const n = [];
|
|
329
|
+
for (const r of o) {
|
|
330
|
+
const l = (r.children?.length ?? 0) > 0;
|
|
331
|
+
n.push({
|
|
332
|
+
id: r.id,
|
|
333
|
+
item: r,
|
|
334
|
+
depth: t,
|
|
335
|
+
isGroup: r.isGroup === !0,
|
|
336
|
+
canExpand: l
|
|
337
|
+
}), l && qe(e, r.id) && n.push(...Ne(r.children ?? [], e, t + 1));
|
|
338
|
+
}
|
|
339
|
+
return n;
|
|
340
|
+
}, zt = (o, e) => {
|
|
341
|
+
if (o)
|
|
342
|
+
return {
|
|
343
|
+
_before: {
|
|
344
|
+
content: '""',
|
|
345
|
+
position: "absolute",
|
|
346
|
+
bg: "border.accent",
|
|
347
|
+
left: "0",
|
|
348
|
+
top: "0",
|
|
349
|
+
width: e ? "3px" : "100%",
|
|
350
|
+
height: e ? "100%" : "2px"
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
}, qe = (o, e) => o[e] !== !1, Wt = (o, e, t) => ({
|
|
354
|
+
...o,
|
|
355
|
+
[e]: t
|
|
356
|
+
}), jt = (o, e) => e ? /* @__PURE__ */ M(X, { gap: "xs", minW: "0", maxW: "full", flex: "1", children: [
|
|
357
|
+
/* @__PURE__ */ s($, { textStyle: "label/S/medium", minW: "0", truncate: !0, children: o.title }),
|
|
358
|
+
/* @__PURE__ */ s($, { textStyle: "label/XS", color: "fg.muted", flexShrink: 0, children: o.countBadge })
|
|
359
|
+
] }) : /* @__PURE__ */ M(X, { gap: "compact", minW: "0", maxW: "full", flex: "1", children: [
|
|
360
|
+
o.eyebrow ? /* @__PURE__ */ s($, { "data-testid": "list-row-eyebrow", flexShrink: 0, textStyle: "mono/XS", color: "fg.muted", truncate: !0, children: o.eyebrow }) : null,
|
|
361
|
+
/* @__PURE__ */ s($, { textStyle: "paragraph/S/regular", minW: "0", truncate: !0, children: o.title })
|
|
362
|
+
] }), Ht = (o) => (o.badges?.length ?? 0) > 0 || (o.customSlots?.length ?? 0) > 0 ? /* @__PURE__ */ s(X, { gap: "xs", flexShrink: 0, children: /* @__PURE__ */ M(we, { gap: "2xs", flexShrink: 0, children: [
|
|
363
|
+
o.badges?.map((t) => /* @__PURE__ */ s(He, { badge: t, onChange: o.onBadgeChange }, t.attributeId)),
|
|
364
|
+
o.customSlots
|
|
365
|
+
] }) }) : null, Ft = (o, e) => ({
|
|
366
|
+
id: o.id,
|
|
367
|
+
label: jt(o, o.isGroup === !0),
|
|
368
|
+
icon: o.statusIcon ? /* @__PURE__ */ s(q, { "data-testid": o.isGroup ? "list-status-icon" : "row-status-icon", as: o.statusIcon, boxSize: "1rem", colorPalette: o.statusColorPalette ?? o.countColorPalette ?? "gray", color: o.statusColor ?? (o.isGroup || o.statusColorPalette ? "colorPalette.solid" : "fg.muted") }) : void 0,
|
|
369
|
+
endContent: Ht(o),
|
|
370
|
+
isContainer: e,
|
|
371
|
+
contextMenuItems: o.contextMenuActions?.map((t) => ({
|
|
372
|
+
id: t.key,
|
|
373
|
+
label: t.label,
|
|
374
|
+
icon: t.icon ?? void 0,
|
|
375
|
+
disabled: t.isDisabled,
|
|
376
|
+
separatorBefore: t.separatorBefore,
|
|
377
|
+
endContent: t.endContent,
|
|
378
|
+
onAction: t.onClick
|
|
379
|
+
}))
|
|
380
|
+
}), Nt = (o) => {
|
|
381
|
+
const e = z(24), {
|
|
382
|
+
items: t,
|
|
383
|
+
selectedItemId: n,
|
|
384
|
+
expandedGroups: r,
|
|
385
|
+
onItemClick: l,
|
|
386
|
+
onExpandedGroupChange: d
|
|
387
|
+
} = o, b = n === void 0 ? null : n;
|
|
388
|
+
let u;
|
|
389
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {}, e[0] = u) : u = e[0];
|
|
390
|
+
const [y, f] = j(u), [i, p] = j(null), [x, m] = j(null), a = r ?? y;
|
|
391
|
+
let g, C;
|
|
392
|
+
if (e[1] !== i || e[2] !== x || e[3] !== a || e[4] !== r || e[5] !== t || e[6] !== d || e[7] !== l || e[8] !== b) {
|
|
393
|
+
const I = Ne(t, a);
|
|
394
|
+
let G;
|
|
395
|
+
e[11] !== r || e[12] !== d ? (G = (v, R) => {
|
|
396
|
+
d?.(v, R), r === void 0 && f((w) => Wt(w, v, R));
|
|
397
|
+
}, e[11] = r, e[12] = d, e[13] = G) : G = e[13];
|
|
398
|
+
const E = G;
|
|
399
|
+
g = ne;
|
|
400
|
+
let T;
|
|
401
|
+
e[14] !== i || e[15] !== x || e[16] !== a || e[17] !== E || e[18] !== l || e[19] !== b ? (T = (v) => /* @__PURE__ */ s(qt, { row: v, isExpanded: qe(a, v.id), selectedItemId: b, activeDropTargetId: i, draggedItemId: x, onDraggedItemChange: m, onDropTargetChange: p, onItemClick: l, onExpandedChange: E }, v.id), e[14] = i, e[15] = x, e[16] = a, e[17] = E, e[18] = l, e[19] = b, e[20] = T) : T = e[20], C = I.map(T), e[1] = i, e[2] = x, e[3] = a, e[4] = r, e[5] = t, e[6] = d, e[7] = l, e[8] = b, e[9] = g, e[10] = C;
|
|
402
|
+
} else
|
|
403
|
+
g = e[9], C = e[10];
|
|
404
|
+
let D;
|
|
405
|
+
return e[21] !== g || e[22] !== C ? (D = /* @__PURE__ */ s(g, { children: C }), e[21] = g, e[22] = C, e[23] = D) : D = e[23], D;
|
|
406
|
+
}, qt = (o) => {
|
|
407
|
+
const e = z(56), {
|
|
408
|
+
row: t,
|
|
409
|
+
isExpanded: n,
|
|
410
|
+
selectedItemId: r,
|
|
411
|
+
activeDropTargetId: l,
|
|
412
|
+
draggedItemId: d,
|
|
413
|
+
onDraggedItemChange: b,
|
|
414
|
+
onDropTargetChange: u,
|
|
415
|
+
onItemClick: y,
|
|
416
|
+
onExpandedChange: f
|
|
417
|
+
} = o, {
|
|
418
|
+
item: i,
|
|
419
|
+
isGroup: p,
|
|
420
|
+
canExpand: x
|
|
421
|
+
} = t, m = i.id === r, a = !!i.onDropRow && i.id !== d, g = a && i.id === l;
|
|
422
|
+
let C;
|
|
423
|
+
e[0] !== x || e[1] !== i ? (C = Ft(i, x), e[0] = x, e[1] = i, e[2] = C) : C = e[2];
|
|
424
|
+
const D = C;
|
|
425
|
+
let I;
|
|
426
|
+
e[3] !== n || e[4] !== f || e[5] !== t.id ? (I = () => f(t.id, !n), e[3] = n, e[4] = f, e[5] = t.id, e[6] = I) : I = e[6];
|
|
427
|
+
const G = I;
|
|
428
|
+
let E;
|
|
429
|
+
e[7] !== x || e[8] !== p || e[9] !== i || e[10] !== y || e[11] !== G ? (E = () => {
|
|
430
|
+
if (x) {
|
|
431
|
+
G();
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
p || (i.onClick?.(), y?.(i));
|
|
435
|
+
}, e[7] = x, e[8] = p, e[9] = i, e[10] = y, e[11] = G, e[12] = E) : E = e[12];
|
|
436
|
+
const T = E;
|
|
437
|
+
let v;
|
|
438
|
+
e[13] !== i.draggable || e[14] !== i.id || e[15] !== b || e[16] !== u ? (v = (K) => {
|
|
439
|
+
i.draggable && (K.stopPropagation(), K.dataTransfer.setData("text/plain", i.id), K.dataTransfer.effectAllowed = "move", b(i.id), u(null));
|
|
440
|
+
}, e[13] = i.draggable, e[14] = i.id, e[15] = b, e[16] = u, e[17] = v) : v = e[17];
|
|
441
|
+
const R = v;
|
|
442
|
+
let w;
|
|
443
|
+
e[18] !== a || e[19] !== i.id || e[20] !== u ? (w = (K) => {
|
|
444
|
+
a && (K.preventDefault(), K.stopPropagation(), K.dataTransfer.dropEffect = "move", u(i.id));
|
|
445
|
+
}, e[18] = a, e[19] = i.id, e[20] = u, e[21] = w) : w = e[21];
|
|
446
|
+
const h = w;
|
|
447
|
+
let S;
|
|
448
|
+
e[22] !== u ? (S = (K) => {
|
|
449
|
+
K.currentTarget.contains(K.relatedTarget) || u(null);
|
|
450
|
+
}, e[22] = u, e[23] = S) : S = e[23];
|
|
451
|
+
const P = S;
|
|
452
|
+
let k;
|
|
453
|
+
e[24] !== a || e[25] !== i || e[26] !== b || e[27] !== u ? (k = (K) => {
|
|
454
|
+
if (!a || !i.onDropRow)
|
|
455
|
+
return;
|
|
456
|
+
K.preventDefault(), K.stopPropagation(), u(null), b(null);
|
|
457
|
+
const F = K.dataTransfer.getData("text/plain");
|
|
458
|
+
!F || F === i.id || i.onDropRow(F);
|
|
459
|
+
}, e[24] = a, e[25] = i, e[26] = b, e[27] = u, e[28] = k) : k = e[28];
|
|
460
|
+
const A = k;
|
|
461
|
+
let O;
|
|
462
|
+
e[29] !== b || e[30] !== u ? (O = () => {
|
|
463
|
+
u(null), b(null);
|
|
464
|
+
}, e[29] = b, e[30] = u, e[31] = O) : O = e[31];
|
|
465
|
+
const c = O, B = g ? "true" : void 0, L = g ? "bg.subtle" : "transparent", se = i.draggable;
|
|
466
|
+
let W;
|
|
467
|
+
e[32] !== x || e[33] !== g ? (W = zt(g, x), e[32] = x, e[33] = g, e[34] = W) : W = e[34];
|
|
468
|
+
const _ = i.onDropRow ? P : void 0, oe = p ? void 0 : i.title, ee = p ? "compact" : "collection";
|
|
469
|
+
let H;
|
|
470
|
+
e[35] !== x || e[36] !== T || e[37] !== n || e[38] !== m || e[39] !== t.depth || e[40] !== D || e[41] !== oe || e[42] !== ee || e[43] !== G ? (H = /* @__PURE__ */ s(ke, { ...D, "aria-label": oe, variant: ee, depth: t.depth, isSelected: m, isExpanded: n, showExpandToggle: x, showContextMenuTrigger: !1, onActivate: T, onToggleExpand: G }), e[35] = x, e[36] = T, e[37] = n, e[38] = m, e[39] = t.depth, e[40] = D, e[41] = oe, e[42] = ee, e[43] = G, e[44] = H) : H = e[44];
|
|
471
|
+
let Y;
|
|
472
|
+
return e[45] !== c || e[46] !== h || e[47] !== R || e[48] !== A || e[49] !== i.draggable || e[50] !== W || e[51] !== _ || e[52] !== H || e[53] !== B || e[54] !== L ? (Y = /* @__PURE__ */ s(ne, { "data-drop-target": B, position: "relative", borderBottomWidth: "1px", borderBottomColor: "border.subtle", bg: L, draggable: se, transition: "background 120ms ease", ...W, onDragStart: R, onDragOver: h, onDragLeave: _, onDragEnd: c, onDrop: A, children: H }), e[45] = c, e[46] = h, e[47] = R, e[48] = A, e[49] = i.draggable, e[50] = W, e[51] = _, e[52] = H, e[53] = B, e[54] = L, e[55] = Y) : Y = e[55], Y;
|
|
473
|
+
}, Oe = (o) => {
|
|
474
|
+
const e = z(7), {
|
|
475
|
+
emptyState: t,
|
|
476
|
+
title: n,
|
|
477
|
+
description: r,
|
|
478
|
+
height: l
|
|
479
|
+
} = o;
|
|
480
|
+
if (t !== void 0) {
|
|
481
|
+
let b;
|
|
482
|
+
return e[0] !== t || e[1] !== l ? (b = l ? /* @__PURE__ */ s(ne, { height: l, children: t }) : t, e[0] = t, e[1] = l, e[2] = b) : b = e[2], b;
|
|
483
|
+
}
|
|
484
|
+
let d;
|
|
485
|
+
return e[3] !== r || e[4] !== l || e[5] !== n ? (d = /* @__PURE__ */ s(st, { title: n, description: r, height: l }), e[3] = r, e[4] = l, e[5] = n, e[6] = d) : d = e[6], d;
|
|
486
|
+
}, Xt = (o) => {
|
|
487
|
+
const e = z(20), {
|
|
488
|
+
viewMode: t,
|
|
489
|
+
boardColumns: n,
|
|
490
|
+
listItems: r,
|
|
491
|
+
listExpandedGroups: l,
|
|
492
|
+
selectedRowId: d,
|
|
493
|
+
emptyState: b,
|
|
494
|
+
emptyTitle: u,
|
|
495
|
+
emptyDescription: y,
|
|
496
|
+
onBoardMoveItem: f,
|
|
497
|
+
onBoardMoveToGroup: i,
|
|
498
|
+
onCreateRow: p,
|
|
499
|
+
onColumnAction: x,
|
|
500
|
+
onListExpandedGroupChange: m,
|
|
501
|
+
listKey: a
|
|
502
|
+
} = o;
|
|
503
|
+
if (t === "board") {
|
|
504
|
+
let C;
|
|
505
|
+
return e[0] !== n || e[1] !== y || e[2] !== b || e[3] !== u || e[4] !== f || e[5] !== i || e[6] !== x || e[7] !== p || e[8] !== d ? (C = /* @__PURE__ */ s(ne, { flex: "1", minH: "0", children: n.length > 0 ? /* @__PURE__ */ s(Vt, { columns: n, selectedItemId: d, onMoveItem: f, onMoveToGroup: i, onCreateStart: p, onColumnAction: x }) : /* @__PURE__ */ s(Oe, { emptyState: b, title: u, description: y, height: "100%" }) }), e[0] = n, e[1] = y, e[2] = b, e[3] = u, e[4] = f, e[5] = i, e[6] = x, e[7] = p, e[8] = d, e[9] = C) : C = e[9], C;
|
|
506
|
+
}
|
|
507
|
+
if (r.length > 0) {
|
|
508
|
+
let C;
|
|
509
|
+
return e[10] !== l || e[11] !== r || e[12] !== a || e[13] !== m || e[14] !== d ? (C = /* @__PURE__ */ s(Nt, { items: r, selectedItemId: d, expandedGroups: l, onExpandedGroupChange: m }, a), e[10] = l, e[11] = r, e[12] = a, e[13] = m, e[14] = d, e[15] = C) : C = e[15], C;
|
|
510
|
+
}
|
|
511
|
+
let g;
|
|
512
|
+
return e[16] !== y || e[17] !== b || e[18] !== u ? (g = /* @__PURE__ */ s(Oe, { emptyState: b, title: u, description: y }), e[16] = y, e[17] = b, e[18] = u, e[19] = g) : g = e[19], g;
|
|
513
|
+
}, ce = (o, e, t) => o[e] === void 0 ? t : o[e], Ut = (o) => {
|
|
514
|
+
const e = z(46), {
|
|
515
|
+
params: t,
|
|
516
|
+
groups: n,
|
|
517
|
+
defaultValues: r,
|
|
518
|
+
onChange: l,
|
|
519
|
+
readOnly: d,
|
|
520
|
+
variant: b
|
|
521
|
+
} = o;
|
|
522
|
+
let u;
|
|
523
|
+
e[0] !== t ? (u = t === void 0 ? [] : t, e[0] = t, e[1] = u) : u = e[1];
|
|
524
|
+
const y = u;
|
|
525
|
+
let f;
|
|
526
|
+
e[2] !== n ? (f = n === void 0 ? [] : n, e[2] = n, e[3] = f) : f = e[3];
|
|
527
|
+
const i = f, p = b === void 0 ? "default" : b;
|
|
528
|
+
let x;
|
|
529
|
+
e[4] !== d ? (x = (c) => d || c.readOnly, e[4] = d, e[5] = x) : x = e[5];
|
|
530
|
+
const m = x;
|
|
531
|
+
let a;
|
|
532
|
+
e[6] !== r || e[7] !== m || e[8] !== l ? (a = (c) => /* @__PURE__ */ s(xt, { hideLabel: !0, hideSlider: !0, readOnly: m(c), id: c.id, name: c.name, description: c.description || "", defaultValue: ce(r, c.id, c.defaultValue), min: c.min, max: c.max, step: c.step, onChange: l, tooltipPlacement: "top" }, c.id), e[6] = r, e[7] = m, e[8] = l, e[9] = a) : a = e[9];
|
|
533
|
+
const g = a;
|
|
534
|
+
let C;
|
|
535
|
+
e[10] !== r || e[11] !== m || e[12] !== l ? (C = (c) => /* @__PURE__ */ s(wt, { hideLabel: !0, readOnly: m(c), id: c.id, name: c.name, description: c.description || "", defaultValue: ce(r, c.id, c.defaultValue), onChange: l, tooltipPlacement: "top" }, c.id), e[10] = r, e[11] = m, e[12] = l, e[13] = C) : C = e[13];
|
|
536
|
+
const D = C;
|
|
537
|
+
let I;
|
|
538
|
+
e[14] !== r || e[15] !== m || e[16] !== l ? (I = (c) => /* @__PURE__ */ s(je, { hideLabel: !0, readOnly: m(c), id: c.id, name: c.name, description: c.description || "", defaultValue: ce(r, c.id, c.defaultValue), options: c.options, onChange: l, multiSelect: c.multiSelect, tooltipPlacement: "top", placeholder: c.placeholder, clearable: c.clearable, disabled: c.disabled }, c.id), e[14] = r, e[15] = m, e[16] = l, e[17] = I) : I = e[17];
|
|
539
|
+
const G = I;
|
|
540
|
+
let E;
|
|
541
|
+
e[18] !== r || e[19] !== m || e[20] !== l ? (E = (c) => /* @__PURE__ */ s(vt, { hideLabel: !0, readOnly: m(c), id: c.id, name: c.name, description: c.description || "", defaultValue: ce(r, c.id, c.defaultValue), min: c.min, max: c.max, onChange: l, tooltipPlacement: "top" }, c.id), e[18] = r, e[19] = m, e[20] = l, e[21] = E) : E = e[21];
|
|
542
|
+
const T = E;
|
|
543
|
+
let v;
|
|
544
|
+
e[22] !== r || e[23] !== m || e[24] !== l ? (v = (c) => /* @__PURE__ */ s(Ct, { hideLabel: !0, readOnly: m(c), id: c.id, name: c.name, description: c.description || "", defaultValue: ce(r, c.id, c.defaultValue), onChange: l, tooltipPlacement: "top" }, c.id), e[22] = r, e[23] = m, e[24] = l, e[25] = v) : v = e[25];
|
|
545
|
+
const R = v, w = Yt;
|
|
546
|
+
let h;
|
|
547
|
+
e[26] !== R || e[27] !== T || e[28] !== g || e[29] !== G || e[30] !== D ? (h = (c) => {
|
|
548
|
+
switch (c.type) {
|
|
549
|
+
case "number":
|
|
550
|
+
return g(c);
|
|
551
|
+
case "text":
|
|
552
|
+
return D(c);
|
|
553
|
+
case "selection":
|
|
554
|
+
return G(c);
|
|
555
|
+
case "date":
|
|
556
|
+
return T(c);
|
|
557
|
+
case "color":
|
|
558
|
+
return R(c);
|
|
559
|
+
case "property":
|
|
560
|
+
return w(c);
|
|
561
|
+
case "readOnly":
|
|
562
|
+
return /* @__PURE__ */ s(St, { param: c }, c.id);
|
|
563
|
+
default:
|
|
564
|
+
return null;
|
|
565
|
+
}
|
|
566
|
+
}, e[26] = R, e[27] = T, e[28] = g, e[29] = G, e[30] = D, e[31] = h) : h = e[31];
|
|
567
|
+
const S = h, P = p === "small" ? "xs" : "sm";
|
|
568
|
+
let k;
|
|
569
|
+
e[32] !== y || e[33] !== S ? (k = y.map(S), e[32] = y, e[33] = S, e[34] = k) : k = e[34];
|
|
570
|
+
let A;
|
|
571
|
+
if (e[35] !== i || e[36] !== S || e[37] !== p) {
|
|
572
|
+
let c;
|
|
573
|
+
e[39] !== S || e[40] !== p ? (c = (B) => /* @__PURE__ */ M(rt, { gap: p === "small" ? "2xs" : "xs", align: "start", children: [
|
|
574
|
+
/* @__PURE__ */ s($, { fontSize: "sm", fontWeight: "medium", color: "fg.muted", children: B.title }),
|
|
575
|
+
/* @__PURE__ */ s(X, { gap: p === "small" ? "2xs" : "xs", children: B.params.map(S) })
|
|
576
|
+
] }, B.id), e[39] = S, e[40] = p, e[41] = c) : c = e[41], A = i.map(c), e[35] = i, e[36] = S, e[37] = p, e[38] = A;
|
|
577
|
+
} else
|
|
578
|
+
A = e[38];
|
|
579
|
+
let O;
|
|
580
|
+
return e[42] !== P || e[43] !== k || e[44] !== A ? (O = /* @__PURE__ */ M(U, { direction: "row", flex: "1", maxW: "full", gap: P, flexWrap: "wrap", children: [
|
|
581
|
+
k,
|
|
582
|
+
A
|
|
583
|
+
] }), e[42] = P, e[43] = k, e[44] = A, e[45] = O) : O = e[45], O;
|
|
584
|
+
};
|
|
585
|
+
function Yt(o) {
|
|
586
|
+
return /* @__PURE__ */ M(X, { gap: "xs", alignItems: "center", children: [
|
|
587
|
+
/* @__PURE__ */ s(Dt, { name: o.name, description: o.description }),
|
|
588
|
+
/* @__PURE__ */ s(It, { children: o.value })
|
|
589
|
+
] }, o.id);
|
|
590
|
+
}
|
|
591
|
+
const Jt = (o) => {
|
|
592
|
+
const {
|
|
593
|
+
disabled: e,
|
|
594
|
+
field: t,
|
|
595
|
+
onChange: n
|
|
596
|
+
} = o, [r, l] = j(null);
|
|
597
|
+
return fe(() => {
|
|
598
|
+
let d = !1;
|
|
599
|
+
return (async () => {
|
|
600
|
+
await Gt();
|
|
601
|
+
const b = await import("./rich-text.js");
|
|
602
|
+
d || l(() => b.MarkdownEditor);
|
|
603
|
+
})(), () => {
|
|
604
|
+
d = !0;
|
|
605
|
+
};
|
|
606
|
+
}, []), r ? /* @__PURE__ */ s(
|
|
607
|
+
r,
|
|
608
|
+
{
|
|
609
|
+
defaultState: typeof t.defaultValue == "string" ? t.defaultValue : "",
|
|
610
|
+
isEditable: !e,
|
|
611
|
+
placeholder: t.placeholder,
|
|
612
|
+
autoFocus: !0,
|
|
613
|
+
onChange: (d) => n(d)
|
|
614
|
+
}
|
|
615
|
+
) : /* @__PURE__ */ s(ne, { minH: "144px", borderWidth: "1px", borderColor: "border", borderRadius: "sm" });
|
|
616
|
+
}, Qt = (o) => {
|
|
617
|
+
const e = z(24), {
|
|
618
|
+
disabled: t,
|
|
619
|
+
field: n,
|
|
620
|
+
removeLabel: r,
|
|
621
|
+
value: l,
|
|
622
|
+
onChange: d
|
|
623
|
+
} = o, b = ze(null);
|
|
624
|
+
let u;
|
|
625
|
+
e[0] !== l ? (u = Array.isArray(l) ? l : [], e[0] = l, e[1] = u) : u = e[1];
|
|
626
|
+
const y = u, f = n.multiple !== !1;
|
|
627
|
+
let i;
|
|
628
|
+
e[2] !== n.multiple || e[3] !== y || e[4] !== d ? (i = (D) => {
|
|
629
|
+
const I = Array.from(D.target.files ?? []);
|
|
630
|
+
d(n.multiple === !1 ? I.slice(0, 1) : [...y, ...I]), D.target.value = "";
|
|
631
|
+
}, e[2] = n.multiple, e[3] = y, e[4] = d, e[5] = i) : i = e[5];
|
|
632
|
+
let p;
|
|
633
|
+
e[6] !== n.accept || e[7] !== f || e[8] !== i ? (p = /* @__PURE__ */ s("input", { ref: b, hidden: !0, type: "file", accept: n.accept, multiple: f, onChange: i }), e[6] = n.accept, e[7] = f, e[8] = i, e[9] = p) : p = e[9];
|
|
634
|
+
let x, m;
|
|
635
|
+
e[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = () => b.current?.click(), m = /* @__PURE__ */ s(q, { as: ht, boxSize: "4" }), e[10] = x, e[11] = m) : (x = e[10], m = e[11]);
|
|
636
|
+
let a;
|
|
637
|
+
e[12] !== t || e[13] !== n.label ? (a = /* @__PURE__ */ M(he, { size: "xs", variant: "ghost", disabled: t, onClick: x, children: [
|
|
638
|
+
m,
|
|
639
|
+
n.label
|
|
640
|
+
] }), e[12] = t, e[13] = n.label, e[14] = a) : a = e[14];
|
|
641
|
+
let g;
|
|
642
|
+
e[15] !== t || e[16] !== y || e[17] !== d || e[18] !== r ? (g = y.length > 0 ? /* @__PURE__ */ s(we, { gap: "2xs", children: y.map((D, I) => /* @__PURE__ */ s(kt, { file: D, disabled: t, removeLabel: r, onRemove: () => d(y.filter((G, E) => E !== I)) }, `${D.name}-${I.toString()}`)) }) : null, e[15] = t, e[16] = y, e[17] = d, e[18] = r, e[19] = g) : g = e[19];
|
|
643
|
+
let C;
|
|
644
|
+
return e[20] !== p || e[21] !== a || e[22] !== g ? (C = /* @__PURE__ */ M(U, { gap: "2xs", align: "start", children: [
|
|
645
|
+
p,
|
|
646
|
+
a,
|
|
647
|
+
g
|
|
648
|
+
] }), e[20] = p, e[21] = a, e[22] = g, e[23] = C) : C = e[23], C;
|
|
649
|
+
}, Zt = (o) => {
|
|
650
|
+
const e = z(45), {
|
|
651
|
+
disabled: t,
|
|
652
|
+
field: n,
|
|
653
|
+
value: r,
|
|
654
|
+
onChange: l
|
|
655
|
+
} = o;
|
|
656
|
+
if (n.type === "longtext") {
|
|
657
|
+
const f = typeof r == "string" ? r : "";
|
|
658
|
+
let i;
|
|
659
|
+
e[0] !== l ? (i = (x) => l(x.target.value), e[0] = l, e[1] = i) : i = e[1];
|
|
660
|
+
let p;
|
|
661
|
+
return e[2] !== t || e[3] !== n.label || e[4] !== n.placeholder || e[5] !== f || e[6] !== i ? (p = /* @__PURE__ */ s(lt, { "aria-label": n.label, minH: "120px", size: "sm", placeholder: n.placeholder, value: f, disabled: t, onChange: i }), e[2] = t, e[3] = n.label, e[4] = n.placeholder, e[5] = f, e[6] = i, e[7] = p) : p = e[7], p;
|
|
662
|
+
}
|
|
663
|
+
if (n.type === "select" || n.type === "multi-select") {
|
|
664
|
+
const f = n.id, i = n.label, p = n.description ?? "";
|
|
665
|
+
let x;
|
|
666
|
+
e[8] !== n.type || e[9] !== r ? (x = r ?? (n.type === "multi-select" ? [] : ""), e[8] = n.type, e[9] = r, e[10] = x) : x = e[10];
|
|
667
|
+
let m;
|
|
668
|
+
e[11] !== n.options ? (m = n.options ?? [], e[11] = n.options, e[12] = m) : m = e[12];
|
|
669
|
+
let a;
|
|
670
|
+
e[13] !== m ? (a = m.map(en), e[13] = m, e[14] = a) : a = e[14];
|
|
671
|
+
const g = n.type === "multi-select", C = n.placeholder ?? n.label, D = !n.required;
|
|
672
|
+
let I;
|
|
673
|
+
e[15] !== l ? (I = (E, T) => l(T), e[15] = l, e[16] = I) : I = e[16];
|
|
674
|
+
let G;
|
|
675
|
+
return e[17] !== t || e[18] !== n.id || e[19] !== n.label || e[20] !== p || e[21] !== x || e[22] !== a || e[23] !== g || e[24] !== C || e[25] !== D || e[26] !== I ? (G = /* @__PURE__ */ s(je, { hideLabel: !0, id: f, name: i, description: p, defaultValue: x, options: a, multiSelect: g, placeholder: C, clearable: D, readOnly: t, onChange: I }), e[17] = t, e[18] = n.id, e[19] = n.label, e[20] = p, e[21] = x, e[22] = a, e[23] = g, e[24] = C, e[25] = D, e[26] = I, e[27] = G) : G = e[27], G;
|
|
676
|
+
}
|
|
677
|
+
if (n.type === "boolean") {
|
|
678
|
+
let f;
|
|
679
|
+
e[28] !== l || e[29] !== r ? (f = () => l(r !== !0), e[28] = l, e[29] = r, e[30] = f) : f = e[30];
|
|
680
|
+
let i;
|
|
681
|
+
return e[31] !== t || e[32] !== n.label || e[33] !== f ? (i = /* @__PURE__ */ s(he, { size: "sm", variant: "outline", disabled: t, onClick: f, children: n.label }), e[31] = t, e[32] = n.label, e[33] = f, e[34] = i) : i = e[34], i;
|
|
682
|
+
}
|
|
683
|
+
const d = n.type === "number" ? "number" : "text", b = typeof r == "string" || typeof r == "number" ? r : "";
|
|
684
|
+
let u;
|
|
685
|
+
e[35] !== n.type || e[36] !== l ? (u = (f) => l(n.type === "number" && f.target.value ? Number(f.target.value) : f.target.value), e[35] = n.type, e[36] = l, e[37] = u) : u = e[37];
|
|
686
|
+
let y;
|
|
687
|
+
return e[38] !== t || e[39] !== n.label || e[40] !== n.placeholder || e[41] !== d || e[42] !== b || e[43] !== u ? (y = /* @__PURE__ */ s(it, { "aria-label": n.label, size: "sm", type: d, placeholder: n.placeholder, value: b, disabled: t, onChange: u }), e[38] = t, e[39] = n.label, e[40] = n.placeholder, e[41] = d, e[42] = b, e[43] = u, e[44] = y) : y = e[44], y;
|
|
688
|
+
}, _t = (o) => {
|
|
689
|
+
const e = z(20), {
|
|
690
|
+
disabled: t,
|
|
691
|
+
field: n,
|
|
692
|
+
removeLabel: r,
|
|
693
|
+
value: l,
|
|
694
|
+
onChange: d
|
|
695
|
+
} = o;
|
|
696
|
+
if (n.type === "files") {
|
|
697
|
+
let p;
|
|
698
|
+
return e[0] !== t || e[1] !== n || e[2] !== d || e[3] !== r || e[4] !== l ? (p = /* @__PURE__ */ s(Qt, { disabled: t, field: n, removeLabel: r, value: l, onChange: d }), e[0] = t, e[1] = n, e[2] = d, e[3] = r, e[4] = l, e[5] = p) : p = e[5], p;
|
|
699
|
+
}
|
|
700
|
+
if (n.type === "markdown") {
|
|
701
|
+
let p;
|
|
702
|
+
return e[6] !== t || e[7] !== n || e[8] !== d ? (p = /* @__PURE__ */ s(Jt, { disabled: t, field: n, onChange: d }), e[6] = t, e[7] = n, e[8] = d, e[9] = p) : p = e[9], p;
|
|
703
|
+
}
|
|
704
|
+
const b = `${n.label}${n.required ? " *" : ""}`;
|
|
705
|
+
let u;
|
|
706
|
+
e[10] !== b ? (u = /* @__PURE__ */ s($, { textStyle: "label/S/medium", children: b }), e[10] = b, e[11] = u) : u = e[11];
|
|
707
|
+
let y;
|
|
708
|
+
e[12] !== n.description ? (y = n.description ? /* @__PURE__ */ s($, { textStyle: "paragraph/XS/regular", color: "fg.muted", children: n.description }) : null, e[12] = n.description, e[13] = y) : y = e[13];
|
|
709
|
+
let f;
|
|
710
|
+
e[14] !== o ? (f = /* @__PURE__ */ s(Zt, { ...o }), e[14] = o, e[15] = f) : f = e[15];
|
|
711
|
+
let i;
|
|
712
|
+
return e[16] !== u || e[17] !== y || e[18] !== f ? (i = /* @__PURE__ */ M(U, { gap: "2xs", children: [
|
|
713
|
+
u,
|
|
714
|
+
y,
|
|
715
|
+
f
|
|
716
|
+
] }), e[16] = u, e[17] = y, e[18] = f, e[19] = i) : i = e[19], i;
|
|
717
|
+
};
|
|
718
|
+
function en(o) {
|
|
719
|
+
return {
|
|
720
|
+
id: o.value,
|
|
721
|
+
name: o.label,
|
|
722
|
+
icon: o.icon ?? void 0,
|
|
723
|
+
color: o.color
|
|
724
|
+
};
|
|
725
|
+
}
|
|
726
|
+
const tn = (o) => o.type === "files" || o.type === "multi-select" ? [] : o.type === "boolean" ? !1 : "", Be = (o) => Object.fromEntries(o.map((e) => [e.id, e.defaultValue ?? tn(e)])), nn = (o, e) => o.required ? Array.isArray(e) ? e.length > 0 : typeof e == "string" ? e.trim().length > 0 : e != null : !0, De = (o) => o.filter((e) => e.editable), Me = (o, e, t) => Object.fromEntries(o.map((n) => [n.id, n.id === e ? t : n.type.kind === "enum-multi" ? [] : ""])), on = (o, e) => {
|
|
727
|
+
const t = {
|
|
728
|
+
id: o.id,
|
|
729
|
+
name: o.label,
|
|
730
|
+
description: ""
|
|
731
|
+
};
|
|
732
|
+
if (o.type.kind === "enum" || o.type.kind === "enum-multi") {
|
|
733
|
+
const n = o.type.kind === "enum-multi";
|
|
734
|
+
return {
|
|
735
|
+
...t,
|
|
736
|
+
type: "selection",
|
|
737
|
+
defaultValue: n ? [] : "",
|
|
738
|
+
multiSelect: n,
|
|
739
|
+
// The trigger shows the value alone; the attribute name is the placeholder.
|
|
740
|
+
placeholder: o.label,
|
|
741
|
+
clearable: !e,
|
|
742
|
+
// The column already chose this value, and the create command reads it
|
|
743
|
+
// from the column param — editing it here would be ignored.
|
|
744
|
+
disabled: e,
|
|
745
|
+
options: Ue(o.type).map((r) => ({
|
|
746
|
+
id: r.value,
|
|
747
|
+
name: r.label,
|
|
748
|
+
icon: r.icon ?? void 0,
|
|
749
|
+
color: r.color
|
|
750
|
+
}))
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
return o.type.kind === "number" ? {
|
|
754
|
+
...t,
|
|
755
|
+
type: "number",
|
|
756
|
+
defaultValue: 0
|
|
757
|
+
} : {
|
|
758
|
+
...t,
|
|
759
|
+
type: "text",
|
|
760
|
+
defaultValue: "",
|
|
761
|
+
singleLine: !0
|
|
762
|
+
};
|
|
763
|
+
}, rn = (o) => {
|
|
764
|
+
const {
|
|
765
|
+
open: e,
|
|
766
|
+
columnId: t,
|
|
767
|
+
columnAttributeId: n,
|
|
768
|
+
attributes: r,
|
|
769
|
+
config: l,
|
|
770
|
+
onClose: d,
|
|
771
|
+
onSubmit: b
|
|
772
|
+
} = o, [u, y] = j({}), [f, i] = j({}), [p, x] = j(!1), [m, a] = j(""), [g, C] = j(0), D = ze(!1), I = De(r);
|
|
773
|
+
fe(() => {
|
|
774
|
+
if (!e) {
|
|
775
|
+
D.current = !1;
|
|
776
|
+
return;
|
|
777
|
+
}
|
|
778
|
+
D.current || (D.current = !0, y(Be(l.fields)), i(Me(De(r), n, t)), a(""), C((v) => v + 1));
|
|
779
|
+
}, [r, n, t, l.fields, e]), fe(() => {
|
|
780
|
+
if (!e) return;
|
|
781
|
+
const v = Be(l.fields), R = new Set(l.fields.map((w) => w.id));
|
|
782
|
+
y((w) => {
|
|
783
|
+
const h = Object.entries(w).filter(([P]) => R.has(P)), S = Object.entries(v).filter(([P]) => !(P in w));
|
|
784
|
+
return S.length === 0 && h.length === Object.keys(w).length ? w : {
|
|
785
|
+
...Object.fromEntries(S),
|
|
786
|
+
...Object.fromEntries(h)
|
|
787
|
+
};
|
|
788
|
+
});
|
|
789
|
+
}, [l.fields, e]), fe(() => {
|
|
790
|
+
if (!e) return;
|
|
791
|
+
const v = De(r), R = Me(v, n, t), w = new Set(v.map((h) => h.id));
|
|
792
|
+
i((h) => {
|
|
793
|
+
const S = Object.entries(h).filter(([k]) => w.has(k)), P = Object.entries(R).filter(([k]) => !(k in h));
|
|
794
|
+
return P.length === 0 && S.length === Object.keys(h).length ? h : {
|
|
795
|
+
...Object.fromEntries(P),
|
|
796
|
+
...Object.fromEntries(S)
|
|
797
|
+
};
|
|
798
|
+
});
|
|
799
|
+
}, [r, e, t, n]);
|
|
800
|
+
const G = () => {
|
|
801
|
+
p || d();
|
|
802
|
+
}, E = l.fields.every((v) => nn(v, u[v.id])), T = async () => {
|
|
803
|
+
if (!(!E || p)) {
|
|
804
|
+
x(!0), a("");
|
|
805
|
+
try {
|
|
806
|
+
const v = new Set(l.fields.filter((h) => h.type === "files").map((h) => h.id)), R = [...v].flatMap((h) => Array.isArray(u[h]) ? u[h] : []), w = Object.fromEntries(Object.entries(u).filter(([h]) => !v.has(h)));
|
|
807
|
+
await b({
|
|
808
|
+
columnId: t,
|
|
809
|
+
columnAttributeId: n,
|
|
810
|
+
values: w,
|
|
811
|
+
attributeValues: f,
|
|
812
|
+
files: R
|
|
813
|
+
}), d();
|
|
814
|
+
} catch (v) {
|
|
815
|
+
a(v instanceof Error ? v.message : l.labels.submitError);
|
|
816
|
+
} finally {
|
|
817
|
+
x(!1);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
return /* @__PURE__ */ M(te.Root, { open: e, size: "lg", scrollBehavior: "inside", onOpenChange: (v) => !v.open && G(), children: [
|
|
822
|
+
/* @__PURE__ */ s(te.Backdrop, {}),
|
|
823
|
+
/* @__PURE__ */ s(te.Positioner, { children: /* @__PURE__ */ M(te.Content, { maxH: "calc(100% - 48px)", children: [
|
|
824
|
+
/* @__PURE__ */ M(te.Header, { children: [
|
|
825
|
+
/* @__PURE__ */ s($, { textStyle: "heading/M/semibold", children: l.title }),
|
|
826
|
+
/* @__PURE__ */ s(te.CloseTrigger, { asChild: !0, children: /* @__PURE__ */ s(at, { size: "sm", disabled: p }) })
|
|
827
|
+
] }),
|
|
828
|
+
/* @__PURE__ */ s(te.Body, { children: /* @__PURE__ */ M(U, { gap: "md", children: [
|
|
829
|
+
l.fields.map((v) => /* @__PURE__ */ s(_t, { field: v, removeLabel: l.labels.removeFile, value: u[v.id], disabled: p, onChange: (R) => y((w) => ({
|
|
830
|
+
...w,
|
|
831
|
+
[v.id]: R
|
|
832
|
+
})) }, `${v.id}:${g.toString()}`)),
|
|
833
|
+
I.length > 0 ? /* @__PURE__ */ M(U, { gap: "2xs", children: [
|
|
834
|
+
/* @__PURE__ */ s($, { textStyle: "label/S/medium", children: l.labels.properties }),
|
|
835
|
+
/* @__PURE__ */ s(Ut, { variant: "small", params: I.map((v) => on(v, v.id === n)), defaultValues: f, readOnly: p, onChange: (v, R) => i((w) => ({
|
|
836
|
+
...w,
|
|
837
|
+
[v]: R
|
|
838
|
+
})) })
|
|
839
|
+
] }) : null,
|
|
840
|
+
m ? /* @__PURE__ */ s($, { textStyle: "paragraph/S/regular", color: "fg.error", children: m }) : null
|
|
841
|
+
] }) }),
|
|
842
|
+
/* @__PURE__ */ s(te.Footer, { justifyContent: "end", children: /* @__PURE__ */ M(X, { gap: "2", children: [
|
|
843
|
+
/* @__PURE__ */ s(he, { size: "sm", variant: "ghost", disabled: p, onClick: G, children: l.labels.cancel }),
|
|
844
|
+
/* @__PURE__ */ s(he, { size: "sm", variant: "primary", disabled: !E, loading: p, onClick: () => {
|
|
845
|
+
T();
|
|
846
|
+
}, children: l.submitLabel })
|
|
847
|
+
] }) })
|
|
848
|
+
] }) })
|
|
849
|
+
] });
|
|
850
|
+
}, ln = (o) => {
|
|
851
|
+
const {
|
|
852
|
+
settings: e,
|
|
853
|
+
visibleRows: t,
|
|
854
|
+
grouped: n,
|
|
855
|
+
attributes: r,
|
|
856
|
+
onRowClick: l,
|
|
857
|
+
onAttributeChange: d,
|
|
858
|
+
onReorder: b,
|
|
859
|
+
getRowContextMenuActions: u
|
|
860
|
+
} = o, y = e.ordering.attributeId === Ie, f = e.displayProperties.filter((a) => a !== "id"), i = (a, g) => {
|
|
861
|
+
const C = Ve(r, a), D = C ? $e(C.type, g) : void 0;
|
|
862
|
+
return {
|
|
863
|
+
statusColorPalette: D?.color,
|
|
864
|
+
statusIcon: ye(D?.icon)
|
|
865
|
+
};
|
|
866
|
+
}, p = (a) => {
|
|
867
|
+
const g = a.attributes.status;
|
|
868
|
+
return typeof g != "string" ? {} : i("status", g);
|
|
869
|
+
}, x = (a, g) => {
|
|
870
|
+
const C = typeof a.attributes.id == "string" ? a.attributes.id : void 0;
|
|
871
|
+
return {
|
|
872
|
+
id: a.id,
|
|
873
|
+
eyebrow: C && C !== a.title ? C : void 0,
|
|
874
|
+
title: a.title,
|
|
875
|
+
...p(a),
|
|
876
|
+
badges: Le(a, r, f),
|
|
877
|
+
customSlots: Ke(a, r, f),
|
|
878
|
+
contextMenuActions: u?.(a),
|
|
879
|
+
onClick: () => l?.(a),
|
|
880
|
+
onBadgeChange: d ? (D, I) => d(a.id, D, I) : void 0,
|
|
881
|
+
draggable: !!(d || b),
|
|
882
|
+
onDropRow: y && (d || b) ? (D) => {
|
|
883
|
+
const I = Ye(e.columnGrouping, g);
|
|
884
|
+
I && e.columnGrouping !== Z && d && d(D, e.columnGrouping, I), e.rowGrouping !== Z && g?.rowKey && d && d(D, e.rowGrouping, g.rowKey), b?.(D, a.id);
|
|
885
|
+
} : void 0
|
|
886
|
+
};
|
|
887
|
+
}, m = (a, g) => {
|
|
888
|
+
const C = g ? e.rowGrouping : e.columnGrouping;
|
|
889
|
+
return {
|
|
890
|
+
id: g ? `group::${g.columnKey}::${a.key}` : `group::${a.key}`,
|
|
891
|
+
title: a.label,
|
|
892
|
+
isGroup: !0,
|
|
893
|
+
countBadge: a.rows.length,
|
|
894
|
+
...i(C, a.key),
|
|
895
|
+
onDropRow: d && e.columnGrouping !== Z ? (D) => {
|
|
896
|
+
const I = g?.columnKey ?? a.key;
|
|
897
|
+
d(D, e.columnGrouping, I), e.rowGrouping !== Z && g && d(D, e.rowGrouping, a.key);
|
|
898
|
+
} : void 0,
|
|
899
|
+
children: me(a.rows, e.ordering, r).map((D) => x(D, {
|
|
900
|
+
columnKey: g?.columnKey ?? a.key,
|
|
901
|
+
rowKey: g ? a.key : void 0
|
|
902
|
+
}))
|
|
903
|
+
};
|
|
904
|
+
};
|
|
905
|
+
return e.columnGrouping === Z ? me(t, e.ordering, r).map((a) => x(a)) : n.map((a) => a.subgroups.length > 0 ? {
|
|
906
|
+
id: `group::${a.key}`,
|
|
907
|
+
title: a.label,
|
|
908
|
+
isGroup: !0,
|
|
909
|
+
countBadge: a.rows.length,
|
|
910
|
+
...i(e.columnGrouping, a.key),
|
|
911
|
+
onDropRow: d ? (g) => d(g, e.columnGrouping, a.key) : void 0,
|
|
912
|
+
children: a.subgroups.map((g) => m(g, {
|
|
913
|
+
columnKey: a.key
|
|
914
|
+
}))
|
|
915
|
+
} : m(a));
|
|
916
|
+
}, an = (o) => {
|
|
917
|
+
const e = o.attributes.id;
|
|
918
|
+
return typeof e == "string" && e ? e : o.id;
|
|
919
|
+
}, In = (o) => {
|
|
920
|
+
const e = z(59), {
|
|
921
|
+
rows: t,
|
|
922
|
+
storageKey: n,
|
|
923
|
+
attributes: r,
|
|
924
|
+
selectedRowId: l,
|
|
925
|
+
emptyState: d,
|
|
926
|
+
emptyTitle: b,
|
|
927
|
+
emptyDescription: u,
|
|
928
|
+
defaultSettings: y,
|
|
929
|
+
defaultFilters: f,
|
|
930
|
+
defaultViews: i,
|
|
931
|
+
defaultActiveViewId: p,
|
|
932
|
+
onRowClick: x,
|
|
933
|
+
onAttributeChange: m,
|
|
934
|
+
onReorder: a,
|
|
935
|
+
createRow: g,
|
|
936
|
+
onCreateRow: C,
|
|
937
|
+
onColumnAction: D,
|
|
938
|
+
getBoardColumnConfig: I,
|
|
939
|
+
getRowContextMenuActions: G,
|
|
940
|
+
hideToolbar: E,
|
|
941
|
+
toolbarLeading: T
|
|
942
|
+
} = o, v = l === void 0 ? null : l, R = b === void 0 ? "No rows found" : b, w = u === void 0 ? "Try changing filters or display settings." : u, h = E === void 0 ? !1 : E, S = Je(r), [P, k] = j(null);
|
|
943
|
+
let A;
|
|
944
|
+
e[0] !== p || e[1] !== f || e[2] !== y || e[3] !== i ? (A = {
|
|
945
|
+
settings: y,
|
|
946
|
+
filters: f,
|
|
947
|
+
views: i,
|
|
948
|
+
activeViewId: p
|
|
949
|
+
}, e[0] = p, e[1] = f, e[2] = y, e[3] = i, e[4] = A) : A = e[4];
|
|
950
|
+
const O = A, c = ge(n, sn, O), B = ge(n, dn, O), L = ge(n, cn, O), se = ge(n, un, O);
|
|
951
|
+
let W, _;
|
|
952
|
+
if (e[5] !== S || e[6] !== B || e[7] !== I || e[8] !== G || e[9] !== m || e[10] !== a || e[11] !== x || e[12] !== t || e[13] !== c) {
|
|
953
|
+
const ae = Qe(t, B, S), de = Ze(c.columnGrouping, S, B), re = _e(ae, {
|
|
954
|
+
attributes: S,
|
|
955
|
+
columnGrouping: c.columnGrouping,
|
|
956
|
+
rowGrouping: c.rowGrouping,
|
|
957
|
+
knownColumnKeys: de
|
|
958
|
+
});
|
|
959
|
+
W = ln({
|
|
960
|
+
settings: c,
|
|
961
|
+
visibleRows: ae,
|
|
962
|
+
grouped: re,
|
|
963
|
+
attributes: S,
|
|
964
|
+
onRowClick: x,
|
|
965
|
+
onAttributeChange: m,
|
|
966
|
+
onReorder: a,
|
|
967
|
+
getRowContextMenuActions: G
|
|
968
|
+
});
|
|
969
|
+
const Ge = c.displayProperties.filter(pn), Re = (J) => J.map((V) => ({
|
|
970
|
+
id: V.id,
|
|
971
|
+
contextMenuActions: G?.(V),
|
|
972
|
+
cardProps: {
|
|
973
|
+
eyebrow: c.displayProperties.includes("id") ? an(V) : void 0,
|
|
974
|
+
title: V.title,
|
|
975
|
+
badges: Le(V, S, Ge),
|
|
976
|
+
customSlots: Ke(V, S, Ge),
|
|
977
|
+
onBadgeChange: m ? (Ce, pe) => m(V.id, Ce, pe) : void 0,
|
|
978
|
+
onClick: () => x?.(V)
|
|
979
|
+
}
|
|
980
|
+
})), Pe = Ve(S, c.columnGrouping);
|
|
981
|
+
_ = re.map((J) => {
|
|
982
|
+
const V = I?.(J.key) ?? {}, Ce = me(J.rows, c.ordering, S), pe = Pe ? $e(Pe.type, J.key) : void 0, Xe = J.subgroups.length > 0 ? J.subgroups.map((Se) => ({
|
|
983
|
+
key: Se.key,
|
|
984
|
+
label: Se.label,
|
|
985
|
+
items: Re(me(Se.rows, c.ordering, S))
|
|
986
|
+
})) : void 0;
|
|
987
|
+
return {
|
|
988
|
+
id: J.key,
|
|
989
|
+
label: J.label,
|
|
990
|
+
color: V.color ?? pe?.color,
|
|
991
|
+
icon: pe?.icon ?? "circle",
|
|
992
|
+
canDragIn: V.canDragIn ?? !1,
|
|
993
|
+
canDragOut: V.canDragOut ?? !1,
|
|
994
|
+
canCreate: V.canCreate ?? !1,
|
|
995
|
+
actions: V.actions ?? [],
|
|
996
|
+
items: Re(Ce),
|
|
997
|
+
groups: Xe
|
|
998
|
+
};
|
|
999
|
+
}), e[5] = S, e[6] = B, e[7] = I, e[8] = G, e[9] = m, e[10] = a, e[11] = x, e[12] = t, e[13] = c, e[14] = W, e[15] = _;
|
|
1000
|
+
} else
|
|
1001
|
+
W = e[14], _ = e[15];
|
|
1002
|
+
const oe = _;
|
|
1003
|
+
let ee;
|
|
1004
|
+
e[16] !== m || e[17] !== a || e[18] !== c ? (ee = async (ae, de, re) => {
|
|
1005
|
+
await Rt({
|
|
1006
|
+
settings: c,
|
|
1007
|
+
rowId: ae,
|
|
1008
|
+
targetColumnId: de,
|
|
1009
|
+
targetGroupKey: re?.targetGroupKey,
|
|
1010
|
+
beforeItemId: re?.beforeItemId,
|
|
1011
|
+
onAttributeChange: m,
|
|
1012
|
+
onReorder: a
|
|
1013
|
+
});
|
|
1014
|
+
}, e[16] = m, e[17] = a, e[18] = c, e[19] = ee) : ee = e[19];
|
|
1015
|
+
const H = ee;
|
|
1016
|
+
let Y;
|
|
1017
|
+
e[20] !== m || e[21] !== a || e[22] !== c ? (Y = async (ae, de, re) => {
|
|
1018
|
+
await Pt({
|
|
1019
|
+
settings: c,
|
|
1020
|
+
rowId: ae,
|
|
1021
|
+
targetGroupKey: de,
|
|
1022
|
+
beforeItemId: re?.beforeItemId,
|
|
1023
|
+
onAttributeChange: m,
|
|
1024
|
+
onReorder: a
|
|
1025
|
+
});
|
|
1026
|
+
}, e[20] = m, e[21] = a, e[22] = c, e[23] = Y) : Y = e[23];
|
|
1027
|
+
const K = Y;
|
|
1028
|
+
let F;
|
|
1029
|
+
e[24] !== S || e[25] !== p || e[26] !== f || e[27] !== y || e[28] !== i || e[29] !== h || e[30] !== t || e[31] !== n || e[32] !== T ? (F = h ? null : /* @__PURE__ */ s(et, { rows: t, storageKey: n, attributes: S, defaultSettings: y, defaultFilters: f, defaultViews: i, defaultActiveViewId: p, leading: T }), e[24] = S, e[25] = p, e[26] = f, e[27] = y, e[28] = i, e[29] = h, e[30] = t, e[31] = n, e[32] = T, e[33] = F) : F = e[33];
|
|
1030
|
+
const xe = g && C ? k : void 0, ve = `${c.columnGrouping}:${c.rowGrouping}`;
|
|
1031
|
+
let le;
|
|
1032
|
+
e[34] !== oe || e[35] !== w || e[36] !== d || e[37] !== R || e[38] !== L || e[39] !== H || e[40] !== K || e[41] !== W || e[42] !== D || e[43] !== v || e[44] !== se || e[45] !== c.viewMode || e[46] !== ve || e[47] !== xe ? (le = /* @__PURE__ */ s(Xt, { viewMode: c.viewMode, boardColumns: oe, listItems: W, listExpandedGroups: L, selectedRowId: v, emptyState: d, emptyTitle: R, emptyDescription: w, onBoardMoveItem: H, onBoardMoveToGroup: K, onCreateRow: xe, onColumnAction: D, onListExpandedGroupChange: se, listKey: ve }), e[34] = oe, e[35] = w, e[36] = d, e[37] = R, e[38] = L, e[39] = H, e[40] = K, e[41] = W, e[42] = D, e[43] = v, e[44] = se, e[45] = c.viewMode, e[46] = ve, e[47] = xe, e[48] = le) : le = e[48];
|
|
1033
|
+
let ie;
|
|
1034
|
+
e[49] !== S || e[50] !== P || e[51] !== g || e[52] !== C || e[53] !== c.columnGrouping ? (ie = g && C && P ? /* @__PURE__ */ s(rn, { open: !0, columnId: P, columnAttributeId: c.columnGrouping === Z ? void 0 : c.columnGrouping, attributes: S, config: g, onClose: () => k(null), onSubmit: C }) : null, e[49] = S, e[50] = P, e[51] = g, e[52] = C, e[53] = c.columnGrouping, e[54] = ie) : ie = e[54];
|
|
1035
|
+
let ue;
|
|
1036
|
+
return e[55] !== le || e[56] !== ie || e[57] !== F ? (ue = /* @__PURE__ */ M(U, { "data-testid": "kanban-renderer", height: "100%", minH: "0", gap: "0", background: "bg", overflow: "hidden", children: [
|
|
1037
|
+
F,
|
|
1038
|
+
le,
|
|
1039
|
+
ie
|
|
1040
|
+
] }), e[55] = le, e[56] = ie, e[57] = F, e[58] = ue) : ue = e[58], ue;
|
|
1041
|
+
};
|
|
1042
|
+
function sn(o) {
|
|
1043
|
+
return o.settings;
|
|
1044
|
+
}
|
|
1045
|
+
function dn(o) {
|
|
1046
|
+
return o.filters;
|
|
1047
|
+
}
|
|
1048
|
+
function cn(o) {
|
|
1049
|
+
return o.expandedGroups;
|
|
1050
|
+
}
|
|
1051
|
+
function un(o) {
|
|
1052
|
+
return o.setExpandedGroup;
|
|
1053
|
+
}
|
|
1054
|
+
function pn(o) {
|
|
1055
|
+
return o !== "id";
|
|
1056
|
+
}
|
|
1057
|
+
export {
|
|
1058
|
+
Gn as DisplayMenu,
|
|
1059
|
+
Rn as FilterMenu,
|
|
1060
|
+
In as KanbanRenderer,
|
|
1061
|
+
Vt as KanbanRendererBoard,
|
|
1062
|
+
Fe as KanbanRendererCard,
|
|
1063
|
+
rn as KanbanRendererCreateDialog,
|
|
1064
|
+
Nt as KanbanRendererList,
|
|
1065
|
+
et as KanbanRendererToolbar,
|
|
1066
|
+
Ie as MANUAL_ORDERING,
|
|
1067
|
+
Z as NO_GROUPING,
|
|
1068
|
+
Pn as buildDisplayPropertyOptions,
|
|
1069
|
+
En as buildFilterCategories,
|
|
1070
|
+
Tn as buildGroupingOptions,
|
|
1071
|
+
An as buildOrderingOptions,
|
|
1072
|
+
Le as collectDisplayBadges,
|
|
1073
|
+
Ve as findAttribute,
|
|
1074
|
+
On as getAttributeStringValues,
|
|
1075
|
+
Bn as getAttributeValue,
|
|
1076
|
+
Ue as getEnumOptions,
|
|
1077
|
+
Mn as isActiveKanbanRendererViewDirty,
|
|
1078
|
+
Kn as isAttributesSource,
|
|
1079
|
+
Ln as isEnumOptionsSource,
|
|
1080
|
+
Vn as renderAttributeBadge,
|
|
1081
|
+
$n as resolveAttributeOptions,
|
|
1082
|
+
zn as sanitizeFilters,
|
|
1083
|
+
Wn as sanitizeSettings,
|
|
1084
|
+
ge as useKanbanRendererStore,
|
|
1085
|
+
Je as useResolvedAttributes
|
|
1086
|
+
};
|
|
1087
|
+
//# sourceMappingURL=kanban-renderer.js.map
|