@pstdio/ui 0.44.0-nightly.20261018030230 → 0.44.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 (74) hide show
  1. package/dist/{MermaidComponent-DIHl8p85.js → MermaidComponent-DhNTaUMt.js} +2 -2
  2. package/dist/{MermaidComponent-DIHl8p85.js.map → MermaidComponent-DhNTaUMt.js.map} +1 -1
  3. package/dist/apply-theme-preference-B0vCu8zY.d.ts +26 -0
  4. package/dist/chat-ui.d.ts +50 -50
  5. package/dist/chat-ui.js +143 -141
  6. package/dist/chat-ui.js.map +1 -1
  7. package/dist/{collection-view-fields-Sa5HO5P7.d.ts → collection-view-fields-tMtZmuhS.d.ts} +0 -2
  8. package/dist/{collection-view-grouping-aKZhxYfX.js → collection-view-grouping-BKIr4QAb.js} +2 -2
  9. package/dist/{collection-view-grouping-aKZhxYfX.js.map → collection-view-grouping-BKIr4QAb.js.map} +1 -1
  10. package/dist/{collection-view-search-mHPkdyxT.js → collection-view-search-D7HFymZW.js} +160 -166
  11. package/dist/collection-view-search-D7HFymZW.js.map +1 -0
  12. package/dist/collection-view.d.ts +3 -90
  13. package/dist/collection-view.js +1 -1
  14. package/dist/data-table.d.ts +3 -2
  15. package/dist/data-table.js +98 -88
  16. package/dist/data-table.js.map +1 -1
  17. package/dist/{diff-drawer-BMl0zobj.js → diff-drawer-ByJsQg8F.js} +10 -10
  18. package/dist/diff-drawer-ByJsQg8F.js.map +1 -0
  19. package/dist/{diff-viewer-C5KXwq7E.js → diff-viewer-Cpiw-1ut.js} +4 -4
  20. package/dist/{diff-viewer-C5KXwq7E.js.map → diff-viewer-Cpiw-1ut.js.map} +1 -1
  21. package/dist/diff.js +2 -2
  22. package/dist/{display-sort-control-0_gG-W9g.js → display-sort-control-BuqijDAl.js} +3 -3
  23. package/dist/{display-sort-control-0_gG-W9g.js.map → display-sort-control-BuqijDAl.js.map} +1 -1
  24. package/dist/{edit-mode-data-table-BI_UDPfF.js → edit-mode-data-table-BwNTRik5.js} +147 -136
  25. package/dist/edit-mode-data-table-BwNTRik5.js.map +1 -0
  26. package/dist/host-storage-28AkEy1N.js +98 -0
  27. package/dist/host-storage-28AkEy1N.js.map +1 -0
  28. package/dist/index-3H4B61XK.d.ts +38 -0
  29. package/dist/{index-BTABZd25.d.ts → index-DTjRTEez.d.ts} +2 -2
  30. package/dist/index-kYQwGcym.d.ts +91 -0
  31. package/dist/index.d.ts +114 -101
  32. package/dist/index.js +763 -761
  33. package/dist/index.js.map +1 -1
  34. package/dist/kanban-renderer.d.ts +2 -2
  35. package/dist/kanban-renderer.js +509 -494
  36. package/dist/kanban-renderer.js.map +1 -1
  37. package/dist/list-row-BDDAVuVd.js +1228 -0
  38. package/dist/list-row-BDDAVuVd.js.map +1 -0
  39. package/dist/{markdown-editor-Dx41ftfs.js → markdown-editor-DUBUE7M-.js} +150 -138
  40. package/dist/markdown-editor-DUBUE7M-.js.map +1 -0
  41. package/dist/{param-editor-C4IUuO77.js → param-editor-DK1uCOh3.js} +2 -2
  42. package/dist/{param-editor-C4IUuO77.js.map → param-editor-DK1uCOh3.js.map} +1 -1
  43. package/dist/{param-editor-field-uBStVJ48.js → param-editor-field-B5z6200g.js} +278 -282
  44. package/dist/param-editor-field-B5z6200g.js.map +1 -0
  45. package/dist/param-editor.js +2 -2
  46. package/dist/{rich-text-Dlv0q1r_.js → rich-text-2c_ra5gK.js} +3 -3
  47. package/dist/{rich-text-Dlv0q1r_.js.map → rich-text-2c_ra5gK.js.map} +1 -1
  48. package/dist/rich-text.js +3 -3
  49. package/dist/terminal.d.ts +28 -0
  50. package/dist/terminal.js +59 -32
  51. package/dist/terminal.js.map +1 -1
  52. package/dist/{theme-DJE3KvWt.js → theme-Chgjys_o.js} +124 -96
  53. package/dist/theme-Chgjys_o.js.map +1 -0
  54. package/dist/theme.d.ts +1 -1
  55. package/dist/theme.js +1 -1
  56. package/dist/{tree-list-Ces1hpRd.js → tree-list-B8Gtot1M.js} +99 -99
  57. package/dist/tree-list-B8Gtot1M.js.map +1 -0
  58. package/dist/{use-virtualizer-CfDHoDer.js → use-virtualizer-CqDYJolY.js} +8 -3
  59. package/dist/use-virtualizer-CqDYJolY.js.map +1 -0
  60. package/dist/{workspace-badge-CvQBU6Hs.d.ts → workspace-badge-BMjS8ii4.d.ts} +6 -1
  61. package/package.json +2 -2
  62. package/dist/collection-view-search-mHPkdyxT.js.map +0 -1
  63. package/dist/diff-drawer-BMl0zobj.js.map +0 -1
  64. package/dist/edit-mode-data-table-BI_UDPfF.js.map +0 -1
  65. package/dist/host-storage-BIo5azql.js +0 -31
  66. package/dist/host-storage-BIo5azql.js.map +0 -1
  67. package/dist/index-Dd6e8lU_.d.ts +0 -61
  68. package/dist/list-row-F8kBQGB-.js +0 -1232
  69. package/dist/list-row-F8kBQGB-.js.map +0 -1
  70. package/dist/markdown-editor-Dx41ftfs.js.map +0 -1
  71. package/dist/param-editor-field-uBStVJ48.js.map +0 -1
  72. package/dist/theme-DJE3KvWt.js.map +0 -1
  73. package/dist/tree-list-Ces1hpRd.js.map +0 -1
  74. package/dist/use-virtualizer-CfDHoDer.js.map +0 -1
@@ -1,91 +1,4 @@
1
- import { A as CollectionSavedView, F as ViewFilterGroup, I as ViewFilterRule, L as ViewSort, M as CollectionViewsSource, N as EMPTY_VIEW_FILTER, a as CollectionViewStoreState, i as CollectionViewStoreInitialState, j as CollectionViewState, o as useCollectionViewStore, r as withTitleField, s as AttributeDescriptor, x as KanbanRendererRow } from "./collection-view-fields-Sa5HO5P7.js";
2
- import { ReactNode, RefObject } from "react";
3
- import { ViewFilterGroup as ViewFilterGroup$1, ViewFilterRule as ViewFilterRule$1 } from "@pstdio/sdk/extensions";
4
- //#region src/components/collection-view/filter-rule-value.d.ts
5
- interface RuleValueOption {
6
- value: string;
7
- label: string;
8
- count?: number;
9
- icon?: string | null;
10
- color?: string;
11
- }
12
- //#endregion
13
- //#region src/components/collection-view/collection-filter.d.ts
14
- interface CollectionFilterProps {
15
- itemLabel?: string;
16
- fields: AttributeDescriptor[];
17
- filter: ViewFilterGroup$1;
18
- optionsFor: (field: AttributeDescriptor) => RuleValueOption[];
19
- onFilterChange: (filter: ViewFilterGroup$1) => void;
20
- }
21
- /** The collection picker and editable criteria, without saved views or search. */
22
- export declare function CollectionFilter(props: CollectionFilterProps): import("react/jsx-runtime").JSX.Element;
23
- //#endregion
24
- //#region src/components/collection-view/collection-view-bar.d.ts
25
- interface CollectionViewBarProps<TSettings> {
26
- storageKey: string;
27
- /** Singular resource label used as the subject of boolean predicates. */
28
- itemLabel?: string;
29
- initialState: CollectionViewStoreInitialState<TSettings>;
30
- views: (CollectionSavedView<TSettings> & {
31
- builtIn: boolean;
32
- })[];
33
- viewsSource?: CollectionViewsSource<TSettings>;
34
- /** Every field of the view. Filter offers the filterable ones and Sort the sortable ones. */
35
- fields: AttributeDescriptor[];
36
- optionsFor: (field: AttributeDescriptor) => RuleValueOption[];
37
- /** Search is screen state owned by the renderer. It is never saved. */
38
- search: string;
39
- onSearchChange: (value: string) => void;
40
- searchResultLabel?: string;
41
- leading?: ReactNode;
42
- actions?: ReactNode;
43
- displayControl: ReactNode;
44
- align?: "split" | "end";
45
- }
46
- /** One view bar for data tables and both kanban displays: saved views, then Search, Filter, and Display. */
47
- export declare const CollectionViewBar: <TSettings>(props: CollectionViewBarProps<TSettings>) => import("react/jsx-runtime").JSX.Element;
48
- //#endregion
49
- //#region src/components/collection-view/collection-view-filter.d.ts
50
- /** Rules that are incomplete or no longer fit a field are skipped, so they never hide rows. */
51
- export declare const filterRowsByView: <TRow extends KanbanRendererRow>(rows: TRow[], filter: ViewFilterGroup$1, fields: AttributeDescriptor[], today?: Date) => TRow[];
52
- //#endregion
53
- //#region src/components/collection-view/collection-view-search.d.ts
54
- /** Search only looks at the text a view shows, which the caller collects per row. */
55
- export declare const searchRows: <TRow>(rows: TRow[], query: string, textsOf: (row: TRow) => string[]) => TRow[];
56
- //#endregion
57
- //#region src/components/collection-view/use-collection-views.d.ts
58
- interface CollectionViewsInput<TSettings> {
59
- storageKey: string;
60
- fields?: AttributeDescriptor[];
61
- initialState: CollectionViewStoreInitialState<TSettings>;
62
- viewsSource?: CollectionViewsSource<TSettings>;
63
- defaultViews?: CollectionSavedView<TSettings>[];
64
- defaultActiveViewId?: string;
65
- }
66
- /** Picks the views a renderer offers and keeps the store on a view that still exists. */
67
- export declare const useCollectionViews: <TSettings>(input: CollectionViewsInput<TSettings>) => {
68
- views: (CollectionSavedView<TSettings> & {
69
- builtIn: boolean;
70
- })[];
71
- defaultId: string | undefined;
72
- };
73
- //#endregion
74
- //#region src/components/collection-view/view-bar-popover.d.ts
75
- interface ViewBarPopoverProps {
76
- open: boolean;
77
- onOpenChange: (open: boolean) => void;
78
- /** The button the menu opens from. Several buttons can open the same menu. */
79
- anchorRef: RefObject<HTMLElement | null>;
80
- width: string;
81
- placement?: "bottom-start" | "bottom-end";
82
- /** The quick picker draws its own panes edge to edge. */
83
- padding?: "0" | "2xs";
84
- testId?: string;
85
- children: ReactNode;
86
- }
87
- /** The menu shell for Search, Filter, and Sort. Menus inside it render in place, so using them never closes it. */
88
- export declare const ViewBarPopover: (props: ViewBarPopoverProps) => import("react/jsx-runtime").JSX.Element;
89
- //#endregion
90
- export { type CollectionFilterProps, type CollectionSavedView, type CollectionViewBarProps, type CollectionViewState, type CollectionViewStoreInitialState, type CollectionViewStoreState, type CollectionViewsInput, type CollectionViewsSource, EMPTY_VIEW_FILTER, type ViewBarPopoverProps, type ViewFilterGroup, type ViewFilterRule, type ViewSort, useCollectionViewStore, withTitleField };
1
+ import { A as CollectionSavedView, F as ViewFilterGroup, I as ViewFilterRule, L as ViewSort, M as CollectionViewsSource, N as EMPTY_VIEW_FILTER, a as CollectionViewStoreState, i as CollectionViewStoreInitialState, j as CollectionViewState, o as useCollectionViewStore, r as withTitleField } from "./collection-view-fields-tMtZmuhS.js";
2
+ import { a as searchRows, c as CollectionViewBarProps, i as useCollectionViews, l as CollectionFilter, n as ViewBarPopoverProps, o as filterRowsByView, r as CollectionViewsInput, s as CollectionViewBar, t as ViewBarPopover, u as CollectionFilterProps } from "./index-kYQwGcym.js";
3
+ export { CollectionFilter, type CollectionFilterProps, type CollectionSavedView, CollectionViewBar, type CollectionViewBarProps, type CollectionViewState, type CollectionViewStoreInitialState, type CollectionViewStoreState, type CollectionViewsInput, type CollectionViewsSource, EMPTY_VIEW_FILTER, ViewBarPopover, type ViewBarPopoverProps, type ViewFilterGroup, type ViewFilterRule, type ViewSort, filterRowsByView, searchRows, useCollectionViewStore, useCollectionViews, withTitleField };
91
4
  export {};
@@ -1,5 +1,5 @@
1
1
  import { n as e } from "./scroll-area-IeoRS73V.js";
2
- import { F as t, I as n, L as r, T as i, _ as a, a as o, c as s, d as c, f as l, g as u, i as d, l as f, n as p, o as m, r as h, s as g, u as _, v } from "./collection-view-search-mHPkdyxT.js";
2
+ import { F as t, I as n, L as r, T as i, _ as a, a as o, c as s, d as c, f as l, g as u, i as d, l as f, n as p, o as m, r as h, s as g, u as _, v } from "./collection-view-search-D7HFymZW.js";
3
3
  import { Button as y, HStack as b, Icon as x } from "@chakra-ui/react";
4
4
  import { c as S } from "react/compiler-runtime";
5
5
  import { jsx as C, jsxs as w } from "react/jsx-runtime";
@@ -1,5 +1,6 @@
1
- import { A as CollectionSavedView, M as CollectionViewsSource, a as CollectionViewStoreState } from "./collection-view-fields-Sa5HO5P7.js";
2
- import "./index-BTABZd25.js";
1
+ import { A as CollectionSavedView, M as CollectionViewsSource, a as CollectionViewStoreState } from "./collection-view-fields-tMtZmuhS.js";
2
+ import "./index-kYQwGcym.js";
3
+ import "./index-DTjRTEez.js";
3
4
  import { ReactElement, ReactNode } from "react";
4
5
  import { DataTableRendererSettings, ViewFilterGroup, ViewSort } from "@pstdio/sdk/extensions";
5
6
  //#region src/components/data-table/types.d.ts
@@ -1,12 +1,13 @@
1
1
  import { n as e, t } from "./scroll-area-IeoRS73V.js";
2
- import { a as n, o as r, t as i, u as a } from "./list-row-F8kBQGB-.js";
3
- import { n as o } from "./prism-E3-NXX_t.js";
4
- import { b as s, h as c } from "./collection-view-search-mHPkdyxT.js";
5
- import { C as l, S as u, T as d, _ as f, a as p, b as m, c as h, d as g, f as _, g as v, h as y, i as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "./edit-mode-data-table-BI_UDPfF.js";
6
- import { a as P } from "./collection-view-grouping-aKZhxYfX.js";
2
+ import { a as n, l as r, t as i } from "./list-row-BDDAVuVd.js";
3
+ import { n as a } from "./prism-E3-NXX_t.js";
4
+ import { a as o } from "./host-storage-28AkEy1N.js";
5
+ import { b as s, h as c } from "./collection-view-search-D7HFymZW.js";
6
+ import { C as l, S as u, T as d, _ as f, a as p, b as m, c as h, d as g, f as _, g as v, h as y, i as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "./edit-mode-data-table-BwNTRik5.js";
7
+ import { a as P } from "./collection-view-grouping-BKIr4QAb.js";
7
8
  import { t as F } from "./diff-bubble-DewUd_2w.js";
8
- import { i as I, n as L, t as R } from "./display-sort-control-0_gG-W9g.js";
9
- import { Badge as z, Box as B, Button as ee, Flex as V, HStack as H, Icon as U, IconButton as te, Image as ne, Menu as W, Popover as G, Portal as re, Skeleton as K, Stack as ie, Table as q, Text as J, chakra as Y } from "@chakra-ui/react";
9
+ import { i as I, n as L, t as R } from "./display-sort-control-BuqijDAl.js";
10
+ import { Badge as z, Box as ee, Button as B, Flex as V, HStack as H, Icon as U, IconButton as te, Image as ne, Menu as W, Popover as G, Portal as re, Skeleton as K, Stack as ie, Table as q, Text as J, chakra as Y } from "@chakra-ui/react";
10
11
  import { c as X } from "react/compiler-runtime";
11
12
  import { jsx as Z, jsxs as Q } from "react/jsx-runtime";
12
13
  import { Fragment as ae, Suspense as oe, cloneElement as se, isValidElement as ce, lazy as le, useEffect as ue, useRef as de, useState as fe } from "react";
@@ -176,7 +177,7 @@ var Re = (e, t) => t.find((t) => Object.is(t.value, e))?.color ?? null, ze = (e)
176
177
  n[18] === i ? t = n[19] : (t = N(i), n[18] = i, n[19] = t), u = t, l = G.Root, n[20] === Symbol.for("react.memo_cache_sentinel") ? (h = {
177
178
  placement: "bottom-start",
178
179
  offset: { mainAxis: 6 }
179
- }, n[20] = h) : h = n[20], c = G.Trigger, m = !0, s = ee, d = `View ${r} details`, g = "ghost", _ = "xs", v = "full", y = "0", b = "28px", x = "2xs", S = "flex-start", C = lt, p = e.length > 0 ? /* @__PURE__ */ Z(H, {
180
+ }, n[20] = h) : h = n[20], c = G.Trigger, m = !0, s = B, d = `View ${r} details`, g = "ghost", _ = "xs", v = "full", y = "0", b = "28px", x = "2xs", S = "flex-start", C = lt, p = e.length > 0 ? /* @__PURE__ */ Z(H, {
180
181
  gap: "-1",
181
182
  flexShrink: "0",
182
183
  children: e.map(ft)
@@ -265,18 +266,18 @@ var pt = (e) => ce(e) ? se(e, { style: {
265
266
  } }) : e, mt = (e) => {
266
267
  e.stopPropagation();
267
268
  }, ht = (e) => {
268
- let t = X(10), { table: r } = e, i;
269
- t[0] === r ? i = t[1] : (i = r.getIsAllRowsSelected(), t[0] = r, t[1] = i);
270
- let a = i, o = !a && r.getIsSomeRowsSelected(), s = o ? "indeterminate" : a, c = o ? we : ge, l;
269
+ let t = X(10), { table: n } = e, r;
270
+ t[0] === n ? r = t[1] : (r = n.getIsAllRowsSelected(), t[0] = n, t[1] = r);
271
+ let i = r, a = !i && n.getIsSomeRowsSelected(), s = a ? "indeterminate" : i, c = a ? we : ge, l;
271
272
  t[2] === c ? l = t[3] : (l = /* @__PURE__ */ Z(U, {
272
273
  as: c,
273
274
  boxSize: "12px",
274
275
  strokeWidth: "3"
275
276
  }), t[2] = c, t[3] = l);
276
277
  let u;
277
- t[4] === r ? u = t[5] : (u = (e) => r.toggleAllRowsSelected(e.checked === !0), t[4] = r, t[5] = u);
278
+ t[4] === n ? u = t[5] : (u = (e) => n.toggleAllRowsSelected(e.checked === !0), t[4] = n, t[5] = u);
278
279
  let d;
279
- return t[6] !== s || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ Z(n, {
280
+ return t[6] !== s || t[7] !== l || t[8] !== u ? (d = /* @__PURE__ */ Z(o, {
280
281
  checked: s,
281
282
  "aria-label": "Select all",
282
283
  icon: l,
@@ -284,22 +285,22 @@ var pt = (e) => ce(e) ? se(e, { style: {
284
285
  onCheckedChange: u
285
286
  }), t[6] = s, t[7] = l, t[8] = u, t[9] = d) : d = t[9], d;
286
287
  }, gt = (e) => {
287
- let t = X(6), { row: r, column: i } = e, { selectedRowIds: a } = i.columnDef.meta, o = !!a?.[r.id], s;
288
+ let t = X(6), { row: n, column: r } = e, { selectedRowIds: i } = r.columnDef.meta, a = !!i?.[n.id], s;
288
289
  t[0] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Z(U, {
289
290
  as: ge,
290
291
  boxSize: "12px",
291
292
  strokeWidth: "3"
292
293
  }), t[0] = s) : s = t[0];
293
294
  let c;
294
- t[1] === r ? c = t[2] : (c = (e) => r.toggleSelected(e.checked === !0), t[1] = r, t[2] = c);
295
+ t[1] === n ? c = t[2] : (c = (e) => n.toggleSelected(e.checked === !0), t[1] = n, t[2] = c);
295
296
  let l;
296
- return t[3] !== o || t[4] !== c ? (l = /* @__PURE__ */ Z(n, {
297
- checked: o,
297
+ return t[3] !== a || t[4] !== c ? (l = /* @__PURE__ */ Z(o, {
298
+ checked: a,
298
299
  "aria-label": "Select row",
299
300
  icon: s,
300
301
  onClick: mt,
301
302
  onCheckedChange: c
302
- }), t[3] = o, t[4] = c, t[5] = l) : l = t[5], l;
303
+ }), t[3] = a, t[4] = c, t[5] = l) : l = t[5], l;
303
304
  }, _t = (e, t) => {
304
305
  let n = new Set(t.map((e) => e.label));
305
306
  return [...t, ...e.filter((e) => !n.has(e.label))];
@@ -642,24 +643,24 @@ var Dt = (e) => {
642
643
  textStyle: "label/S/regular",
643
644
  children: e.label
644
645
  }), t[3] = e.label, t[4] = i);
645
- let a;
646
- t[5] === e.hint ? a = t[6] : (a = e.hint ? /* @__PURE__ */ Z(J, {
646
+ let o;
647
+ t[5] === e.hint ? o = t[6] : (o = e.hint ? /* @__PURE__ */ Z(J, {
647
648
  as: "span",
648
649
  textStyle: "label/XS",
649
650
  color: "fg.subtle",
650
651
  children: e.hint
651
- }) : null, t[5] = e.hint, t[6] = a);
652
+ }) : null, t[5] = e.hint, t[6] = o);
652
653
  let s;
653
- t[7] !== i || t[8] !== a ? (s = /* @__PURE__ */ Q(H, {
654
+ t[7] !== i || t[8] !== o ? (s = /* @__PURE__ */ Q(H, {
654
655
  as: "span",
655
656
  gap: "xs",
656
- children: [i, a]
657
- }), t[7] = i, t[8] = a, t[9] = s) : s = t[9];
657
+ children: [i, o]
658
+ }), t[7] = i, t[8] = o, t[9] = s) : s = t[9];
658
659
  let c;
659
- return t[10] !== e.checked || t[11] !== r || t[12] !== s ? (c = /* @__PURE__ */ Z(B, {
660
+ return t[10] !== e.checked || t[11] !== r || t[12] !== s ? (c = /* @__PURE__ */ Z(ee, {
660
661
  paddingX: "xs",
661
662
  paddingY: "2xs",
662
- children: /* @__PURE__ */ Z(o, {
663
+ children: /* @__PURE__ */ Z(a, {
663
664
  checked: e.checked,
664
665
  inputProps: n,
665
666
  width: "full",
@@ -670,9 +671,9 @@ var Dt = (e) => {
670
671
  })
671
672
  }), t[10] = e.checked, t[11] = r, t[12] = s, t[13] = c) : c = t[13], c;
672
673
  }, kt = (e) => {
673
- let t = X(33), { column: r, checked: i, onColumnVisibilityChange: a } = e, o;
674
- t[0] === r.id ? o = t[1] : (o = { id: r.id }, t[0] = r.id, t[1] = o);
675
- let { attributes: s, listeners: l, setNodeRef: u, transform: d, transition: f, isDragging: p } = Me(o), m;
674
+ let t = X(33), { column: n, checked: r, onColumnVisibilityChange: i } = e, a;
675
+ t[0] === n.id ? a = t[1] : (a = { id: n.id }, t[0] = n.id, t[1] = a);
676
+ let { attributes: s, listeners: l, setNodeRef: u, transform: d, transition: f, isDragging: p } = Me(a), m;
676
677
  t[2] === d ? m = t[3] : (m = Pe.Transform.toString(d), t[2] = d, t[3] = m);
677
678
  let h = p ? .5 : 1, g;
678
679
  t[4] !== m || t[5] !== h || t[6] !== f ? (g = {
@@ -685,7 +686,7 @@ var Dt = (e) => {
685
686
  let v;
686
687
  t[9] === Symbol.for("react.memo_cache_sentinel") ? (v = /* @__PURE__ */ Z(Se, { size: 14 }), t[9] = v) : v = t[9];
687
688
  let y;
688
- t[10] !== s || t[11] !== l ? (y = /* @__PURE__ */ Z(B, {
689
+ t[10] !== s || t[11] !== l ? (y = /* @__PURE__ */ Z(ee, {
689
690
  as: "span",
690
691
  display: "inline-flex",
691
692
  cursor: "grab",
@@ -701,26 +702,26 @@ var Dt = (e) => {
701
702
  strokeWidth: "3"
702
703
  }), t[13] = b) : b = t[13];
703
704
  let x;
704
- t[14] !== r.id || t[15] !== a ? (x = (e) => a(r.id, e.checked === !0), t[14] = r.id, t[15] = a, t[16] = x) : x = t[16];
705
+ t[14] !== n.id || t[15] !== i ? (x = (e) => i(n.id, e.checked === !0), t[14] = n.id, t[15] = i, t[16] = x) : x = t[16];
705
706
  let S;
706
- t[17] === r.label ? S = t[18] : (S = /* @__PURE__ */ Z(J, {
707
+ t[17] === n.label ? S = t[18] : (S = /* @__PURE__ */ Z(J, {
707
708
  as: "span",
708
709
  textStyle: "label/S/regular",
709
710
  truncate: !0,
710
- children: r.label
711
- }), t[17] = r.label, t[18] = S);
711
+ children: n.label
712
+ }), t[17] = n.label, t[18] = S);
712
713
  let C;
713
- t[19] !== i || t[20] !== x || t[21] !== S ? (C = /* @__PURE__ */ Z(n, {
714
- checked: i,
714
+ t[19] !== r || t[20] !== x || t[21] !== S ? (C = /* @__PURE__ */ Z(o, {
715
+ checked: r,
715
716
  flex: "1",
716
717
  minW: "0",
717
718
  size: "sm",
718
719
  icon: b,
719
720
  onCheckedChange: x,
720
721
  children: S
721
- }), t[19] = i, t[20] = x, t[21] = S, t[22] = C) : C = t[22];
722
+ }), t[19] = r, t[20] = x, t[21] = S, t[22] = C) : C = t[22];
722
723
  let w;
723
- t[23] === r ? w = t[24] : (w = c(r), t[23] = r, t[24] = w);
724
+ t[23] === n ? w = t[24] : (w = c(n), t[23] = n, t[24] = w);
724
725
  let T;
725
726
  t[25] === w ? T = t[26] : (T = /* @__PURE__ */ Z(U, {
726
727
  as: w,
@@ -745,8 +746,8 @@ var Dt = (e) => {
745
746
  T
746
747
  ]
747
748
  }), t[27] = u, t[28] = C, t[29] = T, t[30] = g, t[31] = y, t[32] = E) : E = t[32], E;
748
- }, At = (n) => {
749
- let i = X(75), { columns: a, settings: o, statsAvailable: s, onSettingsChange: c, onColumnVisibilityChange: l, onColumnReorder: u } = n, d = de(null), f = de(null), [p, m] = fe(!1), [h, g] = fe(""), _;
749
+ }, At = (r) => {
750
+ let i = X(75), { columns: a, settings: o, statsAvailable: s, onSettingsChange: c, onColumnVisibilityChange: l, onColumnReorder: u } = r, d = de(null), f = de(null), [p, m] = fe(!1), [h, g] = fe(""), _;
750
751
  i[0] === Symbol.for("react.memo_cache_sentinel") ? (_ = { activationConstraint: { distance: 5 } }, i[0] = _) : _ = i[0];
751
752
  let v = Ae(ke(De, _)), y;
752
753
  if (i[1] !== a || i[2] !== h) {
@@ -808,7 +809,7 @@ var Dt = (e) => {
808
809
  options: T,
809
810
  onSelect: (e) => c({ grouping: e })
810
811
  }) : null, i[21] = T, i[22] = c, i[23] = o.grouping, i[24] = P) : P = i[24];
811
- let F = n.sortControl, L;
812
+ let F = r.sortControl, L;
812
813
  i[25] === c ? L = i[26] : (L = (e) => c({ rowNumbers: e }), i[25] = c, i[26] = L);
813
814
  let R;
814
815
  i[27] !== o.rowNumbers || i[28] !== L ? (R = /* @__PURE__ */ Z(Ot, {
@@ -818,12 +819,12 @@ var Dt = (e) => {
818
819
  }), i[27] = o.rowNumbers, i[28] = L, i[29] = R) : R = i[29];
819
820
  let z;
820
821
  i[30] === c ? z = i[31] : (z = (e) => c({ wrapRows: e }), i[30] = c, i[31] = z);
821
- let ee;
822
- i[32] !== o.wrapRows || i[33] !== z ? (ee = /* @__PURE__ */ Z(Ot, {
822
+ let B;
823
+ i[32] !== o.wrapRows || i[33] !== z ? (B = /* @__PURE__ */ Z(Ot, {
823
824
  label: "Wrap rows",
824
825
  checked: o.wrapRows,
825
826
  onChange: z
826
- }), i[32] = o.wrapRows, i[33] = z, i[34] = ee) : ee = i[34];
827
+ }), i[32] = o.wrapRows, i[33] = z, i[34] = B) : B = i[34];
827
828
  let V;
828
829
  i[35] !== c || i[36] !== o.showStats || i[37] !== s ? (V = s ? /* @__PURE__ */ Z(Ot, {
829
830
  label: "Statistics",
@@ -832,7 +833,7 @@ var Dt = (e) => {
832
833
  onChange: (e) => c({ showStats: e })
833
834
  }) : null, i[35] = c, i[36] = o.showStats, i[37] = s, i[38] = V) : V = i[38];
834
835
  let H;
835
- i[39] === Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ Z(B, {
836
+ i[39] === Symbol.for("react.memo_cache_sentinel") ? (H = /* @__PURE__ */ Z(ee, {
836
837
  borderTopWidth: "1px",
837
838
  borderColor: "border.subtle",
838
839
  marginY: "2xs"
@@ -843,7 +844,7 @@ var Dt = (e) => {
843
844
  children: "COLUMNS"
844
845
  }), i[40] = ne, i[41] = W);
845
846
  let K;
846
- i[42] === h ? K = i[43] : (K = /* @__PURE__ */ Z(r, {
847
+ i[42] === h ? K = i[43] : (K = /* @__PURE__ */ Z(n, {
847
848
  value: h,
848
849
  placeholder: "Search columns",
849
850
  onValueChange: g
@@ -885,7 +886,7 @@ var Dt = (e) => {
885
886
  })
886
887
  }), i[59] = D, i[60] = v, i[61] = oe, i[62] = se) : se = i[62];
887
888
  let ce;
888
- i[63] !== n.sortControl || i[64] !== P || i[65] !== R || i[66] !== ee || i[67] !== V || i[68] !== W || i[69] !== K || i[70] !== se ? (ce = /* @__PURE__ */ Z(re, { children: /* @__PURE__ */ Z(G.Positioner, { children: /* @__PURE__ */ Q(G.Content, {
889
+ i[63] !== r.sortControl || i[64] !== P || i[65] !== R || i[66] !== B || i[67] !== V || i[68] !== W || i[69] !== K || i[70] !== se ? (ce = /* @__PURE__ */ Z(re, { children: /* @__PURE__ */ Z(G.Positioner, { children: /* @__PURE__ */ Q(G.Content, {
889
890
  ref: f,
890
891
  "data-testid": "data-table-display-menu",
891
892
  width: "min(300px, calc(100vw - 32px))",
@@ -896,14 +897,14 @@ var Dt = (e) => {
896
897
  P,
897
898
  F,
898
899
  R,
899
- ee,
900
+ B,
900
901
  V,
901
902
  H,
902
903
  W,
903
904
  K,
904
905
  se
905
906
  ]
906
- }) }) }), i[63] = n.sortControl, i[64] = P, i[65] = R, i[66] = ee, i[67] = V, i[68] = W, i[69] = K, i[70] = se, i[71] = ce) : ce = i[71];
907
+ }) }) }), i[63] = r.sortControl, i[64] = P, i[65] = R, i[66] = B, i[67] = V, i[68] = W, i[69] = K, i[70] = se, i[71] = ce) : ce = i[71];
907
908
  let le;
908
909
  return i[72] !== p || i[73] !== ce ? (le = /* @__PURE__ */ Q(G.Root, {
909
910
  open: p,
@@ -983,7 +984,7 @@ var Pt = (e) => {
983
984
  children: /* @__PURE__ */ Z(Ft, { ...e })
984
985
  }), t[0] = e, t[1] = i);
985
986
  let a;
986
- return t[2] !== r || t[3] !== n || t[4] !== i ? (a = /* @__PURE__ */ Z(B, {
987
+ return t[2] !== r || t[3] !== n || t[4] !== i ? (a = /* @__PURE__ */ Z(ee, {
987
988
  height: n,
988
989
  width: "full",
989
990
  minWidth: "0",
@@ -1242,7 +1243,7 @@ function en(e) {
1242
1243
  return `${$(Number(e))}%`;
1243
1244
  }
1244
1245
  function tn(e) {
1245
- return /* @__PURE__ */ Q(B, {
1246
+ return /* @__PURE__ */ Q(ee, {
1246
1247
  position: "relative",
1247
1248
  height: "18px",
1248
1249
  children: [/* @__PURE__ */ Z(It, {
@@ -1411,13 +1412,13 @@ var nn = /* @__PURE__ */ new Set([
1411
1412
  children: L
1412
1413
  }, x), n[60] = d, n[61] = m, n[62] = h, n[63] = g, n[64] = _, n[65] = v, n[66] = y, n[67] = b, n[68] = x, n[69] = S, n[70] = C, n[71] = T, n[72] = E, n[73] = D, n[74] = L, n[75] = R) : R = n[75], R;
1413
1414
  }, sn = (e) => {
1414
- let t = X(26), { cell: n, row: r, wrapRows: i, getCellContextMenuActions: o } = e, s = n.column.columnDef.meta, c;
1415
+ let t = X(26), { cell: n, row: i, wrapRows: a, getCellContextMenuActions: o } = e, s = n.column.columnDef.meta, c;
1415
1416
  t[0] !== n || t[1] !== s ? (c = s?.getCellStyle?.(n.getValue()), t[0] = n, t[1] = s, t[2] = c) : c = t[2];
1416
1417
  let l = c, u;
1417
- if (t[3] !== n || t[4] !== o || t[5] !== r.id || t[6] !== r.original) {
1418
+ if (t[3] !== n || t[4] !== o || t[5] !== i.id || t[6] !== i.original) {
1418
1419
  let e = {
1419
- row: r.original,
1420
- rowId: r.id,
1420
+ row: i.original,
1421
+ rowId: i.id,
1421
1422
  columnId: n.column.id,
1422
1423
  value: n.getValue()
1423
1424
  };
@@ -1426,11 +1427,11 @@ var nn = /* @__PURE__ */ new Set([
1426
1427
  label: t.label,
1427
1428
  icon: t.icon,
1428
1429
  onClick: () => t.onSelect(e)
1429
- })) ?? [], t[3] = n, t[4] = o, t[5] = r.id, t[6] = r.original, t[7] = u;
1430
+ })) ?? [], t[3] = n, t[4] = o, t[5] = i.id, t[6] = i.original, t[7] = u;
1430
1431
  } else u = t[7];
1431
- let d = u, f = n.column.id, p = i ? "anywhere" : void 0, m = i ? void 0 : "10", h = i ? void 0 : "10", g;
1432
+ let d = u, f = n.column.id, p = a ? "anywhere" : void 0, m = a ? void 0 : "10", h = a ? void 0 : "10", g;
1432
1433
  t[8] === Symbol.for("react.memo_cache_sentinel") ? (g = { borderRight: "none" }, t[8] = g) : g = t[8];
1433
- let _ = n.id, v = i ? void 0 : "ellipsis", y = i ? "top" : "middle", b = i ? "normal" : "nowrap", x;
1434
+ let _ = n.id, v = a ? void 0 : "ellipsis", y = a ? "top" : "middle", b = a ? "normal" : "nowrap", x;
1434
1435
  t[9] === n ? x = t[10] : (x = Fe(n.column.columnDef.cell, n.getContext()), t[9] = n, t[10] = x);
1435
1436
  let S;
1436
1437
  t[11] !== n.column.id || t[12] !== n.id || t[13] !== l || t[14] !== b || t[15] !== x || t[16] !== p || t[17] !== m || t[18] !== h || t[19] !== v || t[20] !== y ? (S = /* @__PURE__ */ Z(q.Cell, {
@@ -1456,7 +1457,7 @@ var nn = /* @__PURE__ */ new Set([
1456
1457
  let C = S;
1457
1458
  if (d.length === 0) return C;
1458
1459
  let w;
1459
- return t[22] !== n.id || t[23] !== C || t[24] !== d ? (w = /* @__PURE__ */ Z(a, {
1460
+ return t[22] !== n.id || t[23] !== C || t[24] !== d ? (w = /* @__PURE__ */ Z(r, {
1460
1461
  actions: d,
1461
1462
  children: C
1462
1463
  }, n.id), t[22] = n.id, t[23] = C, t[24] = d, t[25] = w) : w = t[25], w;
@@ -1567,7 +1568,7 @@ var nn = /* @__PURE__ */ new Set([
1567
1568
  style: k,
1568
1569
  children: [j, N]
1569
1570
  })
1570
- }), n[39] = D, n[40] = k, n[41] = j, n[42] = N, n[43] = P) : P = n[43], C = /* @__PURE__ */ Q(B, {
1571
+ }), n[39] = D, n[40] = k, n[41] = j, n[42] = N, n[43] = P) : P = n[43], C = /* @__PURE__ */ Q(ee, {
1571
1572
  position: "relative",
1572
1573
  flex: "1",
1573
1574
  minHeight: "0",
@@ -1636,36 +1637,36 @@ var fn = (e, t, n, r) => {
1636
1637
  }), I = P.key === N ? P.index : 0, z = (e) => F({
1637
1638
  key: N,
1638
1639
  index: e
1639
- }), [B, ee] = fe(() => h({ initialPageSize: m })), [H, U] = fe(() => /* @__PURE__ */ new Set()), [te, ne] = fe({}), W = k(e), G = x(e), { groups: re } = w, K = re ? re.flatMap((e) => e.rows) : w.shownRows, ie = re ? fn(re, H, I, B) : pn(K, I, B), q = K.map((e) => e.sourceRow), J = new Map(K.map((e) => [e.sourceRow, e.id])), Y = Et(q, w.visibleColumnKeys, {
1640
+ }), [B, H] = fe(() => h({ initialPageSize: m })), [U, te] = fe(() => /* @__PURE__ */ new Set()), [ne, W] = fe({}), G = k(e), re = x(e), { groups: K } = w, ie = K ? K.flatMap((e) => e.rows) : w.shownRows, q = K ? fn(K, U, I, B) : pn(ie, I, B), J = ie.map((e) => e.sourceRow), Y = new Map(ie.map((e) => [e.sourceRow, e.id])), X = Et(J, w.visibleColumnKeys, {
1640
1641
  columnIcons: o,
1641
1642
  columnDescriptions: c,
1642
1643
  compactHeaders: l,
1643
- enableSelection: W,
1644
+ enableSelection: G,
1644
1645
  rowActions: v,
1645
1646
  getRowActions: y,
1646
- selectedRowIds: te,
1647
+ selectedRowIds: ne,
1647
1648
  columnRenderers: f,
1648
1649
  wrapRows: T.wrapRows,
1649
1650
  rowNumbers: T.rowNumbers,
1650
1651
  search: w.deferredSearch
1651
- }), X = Le({
1652
- data: q,
1653
- columns: Y,
1652
+ }), ae = Le({
1653
+ data: J,
1654
+ columns: X,
1654
1655
  defaultColumn: {
1655
1656
  size: 150,
1656
1657
  minSize: 40,
1657
1658
  maxSize: 800
1658
1659
  },
1659
- state: { rowSelection: te },
1660
- getRowId: (e) => J.get(e) ?? "",
1660
+ state: { rowSelection: ne },
1661
+ getRowId: (e) => Y.get(e) ?? "",
1661
1662
  columnResizeMode: "onChange",
1662
1663
  columnResizeDirection: "ltr",
1663
- onRowSelectionChange: ne,
1664
+ onRowSelectionChange: W,
1664
1665
  getCoreRowModel: Ie(),
1665
- enableMultiRowSelection: W,
1666
- enableRowSelection: W,
1666
+ enableMultiRowSelection: G,
1667
+ enableRowSelection: G,
1667
1668
  autoResetAll: !1
1668
- }), ae = {
1669
+ }), oe = {
1669
1670
  sortFor: (e) => {
1670
1671
  let t = O[0];
1671
1672
  return t?.attributeId === e ? t.direction : void 0;
@@ -1679,11 +1680,15 @@ var fn = (e, t, n, r) => {
1679
1680
  t && M(t);
1680
1681
  },
1681
1682
  onHide: (e) => E({ hiddenColumns: _(T.hiddenColumns, e, !1) })
1682
- }, oe = w.rows.length > 0 && w.shownRows.length === 0 && !!w.deferredSearch.trim();
1683
+ }, se = w.rows.length > 0 && w.shownRows.length === 0 && !!w.deferredSearch.trim();
1683
1684
  return /* @__PURE__ */ Q(V, {
1684
1685
  direction: "column",
1686
+ flex: "1",
1687
+ minH: "0",
1688
+ minW: "0",
1685
1689
  height: "100%",
1686
1690
  width: "100%",
1691
+ overflow: "hidden",
1687
1692
  children: [
1688
1693
  /* @__PURE__ */ Z(d, {
1689
1694
  itemLabel: e.itemLabel,
@@ -1704,21 +1709,26 @@ var fn = (e, t, n, r) => {
1704
1709
  onColumnReorder: (e, t) => E({ columnOrder: D(w.orderedColumnKeys, e, t) })
1705
1710
  })
1706
1711
  }),
1707
- e.contentPlaceholder ?? (oe ? /* @__PURE__ */ Z(L, {
1708
- search: w.deferredSearch,
1709
- onClearSearch: () => w.setSearch("")
1712
+ e.contentPlaceholder != null || se ? /* @__PURE__ */ Z(ee, {
1713
+ flex: "1",
1714
+ minH: "0",
1715
+ overflow: "auto",
1716
+ children: e.contentPlaceholder ?? /* @__PURE__ */ Z(L, {
1717
+ search: w.deferredSearch,
1718
+ onClearSearch: () => w.setSearch("")
1719
+ })
1710
1720
  }) : /* @__PURE__ */ Z(un, {
1711
- table: X,
1712
- entries: ie.entries,
1713
- collapsed: H,
1714
- onToggleGroup: (e) => U((t) => {
1721
+ table: ae,
1722
+ entries: q.entries,
1723
+ collapsed: U,
1724
+ onToggleGroup: (e) => te((t) => {
1715
1725
  let n = new Set(t);
1716
1726
  return n.has(e) ? n.delete(e) : n.add(e), n;
1717
1727
  }),
1718
1728
  settings: T,
1719
- data: q,
1720
- fieldMenu: ae,
1721
- selectionActions: W ? G : void 0,
1729
+ data: J,
1730
+ fieldMenu: oe,
1731
+ selectionActions: G ? re : void 0,
1722
1732
  noBorder: t,
1723
1733
  fullWidth: n,
1724
1734
  onRowClick: r,
@@ -1728,15 +1738,15 @@ var fn = (e, t, n, r) => {
1728
1738
  columnStats: u,
1729
1739
  enableRowActivation: b,
1730
1740
  getCellContextMenuActions: S
1731
- })),
1732
- ie.pageCount > 1 ? /* @__PURE__ */ Z(p, {
1733
- pageCount: ie.pageCount,
1734
- pageIndex: ie.page,
1741
+ }),
1742
+ q.pageCount > 1 ? /* @__PURE__ */ Z(p, {
1743
+ pageCount: q.pageCount,
1744
+ pageIndex: q.page,
1735
1745
  pageSize: B,
1736
1746
  pageSizeOptions: g,
1737
1747
  onPageChange: z,
1738
1748
  onPageSizeChange: (e) => {
1739
- ee(e), z(0);
1749
+ H(e), z(0);
1740
1750
  }
1741
1751
  }) : null
1742
1752
  ]