@ynput/ayon-frontend-shared 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/ContextMenu.es.js +34 -16
  2. package/dist/DetailsPanel.es.js +292 -298
  3. package/dist/Feed.es.js +179 -50
  4. package/dist/ListTable.es.js +32 -35
  5. package/dist/NewEntity.es.js +1256 -11
  6. package/dist/ProjectTreeTable.es.js +4451 -2965
  7. package/dist/SimpleTable.es.js +8 -7
  8. package/dist/Slicer.es.js +451 -147
  9. package/dist/Views.es.js +918 -310
  10. package/dist/chunks/Actions.es.js +9 -4
  11. package/dist/chunks/ColumnDropIndicator.es.js +174 -328
  12. package/dist/chunks/ColumnDropIndicator.styled.es.js +281 -0
  13. package/dist/chunks/ColumnHeaderMenuUI.es.js +52 -0
  14. package/dist/chunks/ContextMenuContextInstance.es.js +12 -0
  15. package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +229 -0
  16. package/dist/chunks/DeleteEntitiesContextInstance.es.js +827 -0
  17. package/dist/chunks/EmptyPlaceholder.es.js +4 -4
  18. package/dist/chunks/EntityPath.es.js +58 -53
  19. package/dist/chunks/EntityPickerDialog.es.js +24 -20
  20. package/dist/chunks/EntityTooltip.es.js +20 -13
  21. package/dist/chunks/EntityUpdatesContext.es.js +38 -96
  22. package/dist/chunks/Feed.es.js +1495 -1439
  23. package/dist/chunks/FilterErrorActions.es.js +25 -229
  24. package/dist/chunks/Menu.es.js +21 -17
  25. package/dist/chunks/MenuContext.es.js +14 -65
  26. package/dist/chunks/MenuItem.es.js +34 -24
  27. package/dist/chunks/MetaWidget.es.js +2835 -4301
  28. package/dist/chunks/NewEntityContextInstance.es.js +11 -0
  29. package/dist/chunks/PlayableIcon.es.js +1532 -1594
  30. package/dist/chunks/ProjectContext.es.js +102 -66
  31. package/dist/chunks/RepresentationsList.es.js +1 -1
  32. package/dist/chunks/ReviewablesSelector.es.js +457 -458
  33. package/dist/chunks/SimpleForm.es.js +9 -9
  34. package/dist/chunks/SimpleTable.es.js +15 -13
  35. package/dist/chunks/Slicer.es.js +163 -154
  36. package/dist/chunks/TableSettingsFallback.es.js +25 -13
  37. package/dist/chunks/ThumbnailSimple.es.js +150 -261
  38. package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
  39. package/dist/chunks/VideoPlayer.es.js +24 -28
  40. package/dist/chunks/Watchers.es.js +384 -389
  41. package/dist/chunks/entityDefinitions.es.js +2 -350
  42. package/dist/chunks/extractVersionFromFilename.es.js +28 -0
  43. package/dist/chunks/getBundleMode.es.js +61 -16
  44. package/dist/chunks/getUris.es.js +737 -712
  45. package/dist/chunks/searchTerms.es.js +57 -56
  46. package/dist/chunks/useAttributeEnums.es.js +4 -4
  47. package/dist/chunks/useCreateContextMenu.es.js +66 -90
  48. package/dist/chunks/useHierarchySelection.es.js +24 -0
  49. package/dist/chunks/useLoadModule.es.js +74 -0
  50. package/dist/chunks/useQueryArgumentChangeLoading.es.js +11 -0
  51. package/dist/chunks/versionUploadHelpers.es.js +16 -42
  52. package/dist/chunks/viewUpdateHelper.es.js +67 -50
  53. package/dist/components.es.js +1425 -999
  54. package/dist/context.es.js +791 -80
  55. package/dist/hooks.es.js +115 -120
  56. package/dist/index.es.js +19 -23
  57. package/dist/types/Actions.d.ts +7 -7
  58. package/dist/types/ContextMenu.d.ts +11 -8
  59. package/dist/types/DetailsPanel.d.ts +102 -9
  60. package/dist/types/EntityPickerDialog.d.ts +7 -7
  61. package/dist/types/Feed.d.ts +11 -8
  62. package/dist/types/ListTable.d.ts +7 -7
  63. package/dist/types/NewEntity.d.ts +16 -10
  64. package/dist/types/ProjectTreeTable.d.ts +22 -115
  65. package/dist/types/RepresentationsList.d.ts +7 -7
  66. package/dist/types/SimpleTable.d.ts +11 -8
  67. package/dist/types/Slicer.d.ts +10 -7
  68. package/dist/types/Views.d.ts +10 -7
  69. package/dist/types/api.d.ts +132 -120
  70. package/dist/types/components.d.ts +13 -8
  71. package/dist/types/context.d.ts +56 -16
  72. package/dist/types/hooks.d.ts +7 -7
  73. package/dist/types/index.d.ts +7 -7
  74. package/dist/types/util.d.ts +12 -7
  75. package/dist/util.es.js +72 -71
  76. package/package.json +1 -1
  77. package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
  78. package/dist/chunks/DetailsPanelContext.es.js +0 -155
  79. package/dist/chunks/GlobalContext.es.js +0 -52
  80. package/dist/chunks/NewEntityContext.es.js +0 -1242
  81. package/dist/chunks/ProjectFoldersContext.es.js +0 -134
  82. package/dist/chunks/ProjectFoldersContextInstance.es.js +0 -7
  83. package/dist/chunks/VersionUploadContext.es.js +0 -232
  84. package/dist/chunks/ViewsContext.es.js +0 -878
  85. package/dist/chunks/uriUtils.es.js +0 -48
  86. package/dist/chunks/useColumnDragRestriction.es.js +0 -158
  87. package/dist/chunks/useLocalStorage.es.js +0 -355
  88. package/dist/chunks/useSessionStorage.es.js +0 -61
  89. /package/dist/{useCreateContextMenu.css → ContextMenuContextInstance.css} +0 -0
package/dist/Feed.es.js CHANGED
@@ -1,58 +1,187 @@
1
- import { A as D, F as I, a as M, u as P } from "./chunks/ThumbnailSimple.es.js";
2
- import { A as L, C as N, a as k, F as j, b as O, c as R, e as S, i as U, d as W } from "./chunks/Feed.es.js";
3
- import { useMemo as x, useCallback as A } from "react";
4
- const y = (t) => {
5
- const e = Array.from(t).find((s) => s.startsWith("id-"));
6
- return e ? e.split("-")[1] : null;
7
- }, E = (t, e, s, c, u) => {
8
- const i = Object.keys(t);
9
- return e = [.../* @__PURE__ */ new Set([...e, ...i])], e = s.filter((r) => e.includes(r)), i.includes(c) && (u === 1 ? e.shift() : e.pop()), e;
10
- }, w = ({
11
- tableRef: t,
12
- treeData: e,
1
+ import { A as lt, F as dt, u as ut } from "./chunks/ThumbnailSimple.es.js";
2
+ import { jsxs as V, jsx as A } from "react/jsx-runtime";
3
+ import { useRef as X, useEffect as _, useMemo as j, useCallback as G } from "react";
4
+ import T from "clsx";
5
+ import { Icon as z } from "@ynput/ayon-react-components";
6
+ import { e as J, D as Q, S as Y } from "./chunks/Feed.es.js";
7
+ import { A as vt, C as gt, a as yt, F as mt, b as pt, c as ht, d as xt, i as It, f as bt } from "./chunks/Feed.es.js";
8
+ const Z = ({ files: c, index: t, activityId: s, onNavigate: e }) => {
9
+ const n = c, o = t, u = s, l = () => n[0].id != u, a = () => n[n.length - 1].id != u, r = () => o > 0 || l(), I = () => o < n.find((i) => i.id == u).files.length - 1 || a(), g = () => n[n.findIndex((i) => i.id == u) - 1], m = () => n[n.findIndex((i) => i.id == u) + 1], f = () => g().id, d = () => m().id;
10
+ return {
11
+ canNavigateDown: a,
12
+ canNavigateUp: l,
13
+ canNavigateLeft: r,
14
+ canNavigateRight: I,
15
+ getPreviousActivity: g,
16
+ getNextActivityId: d,
17
+ getByIndexActivity: (i, h) => !i === null || h == null ? { id: null, projectName: null, mime: null, extension: null } : n.find((x) => x.id == i).files[h],
18
+ navigateUp: () => {
19
+ e({ activityId: f(), index: 0 });
20
+ },
21
+ navigateDown: () => e({ activityId: d(), index: 0 }),
22
+ navigateLeft: () => {
23
+ if (o > 0)
24
+ return e({ delta: -1 });
25
+ const i = g();
26
+ e({
27
+ activityId: i.id,
28
+ index: i.files.length - 1
29
+ });
30
+ },
31
+ navigateRight: () => {
32
+ if (o < n.find((i) => i.id == u).files.length - 1)
33
+ return e({ delta: 1 });
34
+ e({ activityId: d(), index: 0 });
35
+ }
36
+ };
37
+ }, ot = ({
38
+ files: c,
39
+ index: t,
40
+ activityId: s,
41
+ projectName: e,
42
+ onFilePreviewClose: n,
43
+ onNavigate: o
44
+ }) => {
45
+ const {
46
+ canNavigateDown: u,
47
+ canNavigateUp: l,
48
+ canNavigateLeft: a,
49
+ canNavigateRight: r,
50
+ getByIndexActivity: I,
51
+ navigateUp: g,
52
+ navigateDown: m,
53
+ navigateLeft: f,
54
+ navigateRight: d
55
+ } = Z({ files: c, index: t, activityId: s, onNavigate: o }), p = { ...I(s, t), projectName: e }, { id: v, mime: b, extension: w, name: P } = p, i = X(null);
56
+ _(() => {
57
+ v && e && i.current?.focus();
58
+ }, [v, e]);
59
+ const h = () => {
60
+ n();
61
+ }, k = Object.values(J).find(
62
+ ({ mimeTypes: L }) => L.some((N) => (b || w)?.includes(N))
63
+ ), { component: x, id: R, callback: C, fullPreviews: B } = k || {};
64
+ if (_(() => {
65
+ if (!v || !e || !x || C) return;
66
+ const L = {
67
+ ArrowUp: [l, g],
68
+ ArrowDown: [u, m],
69
+ ArrowLeft: [a, f],
70
+ ArrowRight: [r, d]
71
+ }, N = (y) => {
72
+ if (y.key === "Escape") {
73
+ y.preventDefault(), y.stopPropagation(), h();
74
+ return;
75
+ }
76
+ const U = L[y.code];
77
+ if (!U) return;
78
+ if (y.target instanceof HTMLElement) {
79
+ const { tagName: M, isContentEditable: q } = y.target;
80
+ if (M === "INPUT" || M === "TEXTAREA" || q) return;
81
+ }
82
+ y.preventDefault(), y.stopPropagation();
83
+ const [W, H] = U;
84
+ W() && H();
85
+ };
86
+ return document.addEventListener("keydown", N, !0), () => document.removeEventListener("keydown", N, !0);
87
+ }, [v, e, c, t, s, x, C]), !v || !e) return null;
88
+ if (C)
89
+ return C(p), null;
90
+ const O = () => a() && f(), S = () => r() && d(), D = R === "image", F = R === "video", E = 50;
91
+ return x ? /* @__PURE__ */ V(
92
+ Q,
93
+ {
94
+ size: "full",
95
+ isOpen: !!(v && e),
96
+ onClose: h,
97
+ hideCancelButton: D,
98
+ ref: i,
99
+ className: T({ isImage: D }, "block-shortcuts"),
100
+ header: D ? null : P,
101
+ children: [
102
+ /* @__PURE__ */ A("div", { style: { position: "absolute", inset: 0, zIndex: E }, onClick: h }),
103
+ /* @__PURE__ */ A(
104
+ z,
105
+ {
106
+ style: { zIndex: E + 1 },
107
+ icon: "chevron_left",
108
+ className: T("navIcon", "left", { disabled: !a() }),
109
+ onClick: O
110
+ }
111
+ ),
112
+ /* @__PURE__ */ A(
113
+ Y,
114
+ {
115
+ style: { zIndex: E + 1 },
116
+ className: T({ scrollable: !D && !F, fill: F }),
117
+ children: /* @__PURE__ */ A(x, { file: p, fullPreviews: B })
118
+ }
119
+ ),
120
+ /* @__PURE__ */ A(
121
+ z,
122
+ {
123
+ style: { zIndex: E + 1 },
124
+ icon: "chevron_right",
125
+ className: T("navIcon", "right", { disabled: !r() }),
126
+ onClick: S
127
+ }
128
+ )
129
+ ]
130
+ }
131
+ ) : null;
132
+ }, K = (c) => {
133
+ const t = Array.from(c).find((s) => s.startsWith("id-"));
134
+ return t ? t.split("-")[1] : null;
135
+ }, $ = (c, t, s, e, n) => {
136
+ const o = Object.keys(c);
137
+ return t = [.../* @__PURE__ */ new Set([...t, ...o])], t = s.filter((l) => t.includes(l)), o.includes(e) && (n === 1 ? t.shift() : t.pop()), t;
138
+ }, at = ({
139
+ tableRef: c,
140
+ treeData: t,
13
141
  selection: s,
14
- onSelectionChange: c,
15
- config: { multiSelect: u = !0 } = {}
142
+ onSelectionChange: e,
143
+ config: { multiSelect: n = !0 } = {}
16
144
  }) => {
17
- const i = x(() => {
18
- const r = [];
19
- return t.current?.getElement()?.querySelectorAll(".p-treetable-tbody tr").forEach((a) => {
20
- const o = y(a.classList);
21
- o && r.push(o);
22
- }), r;
23
- }, [t.current, e]);
24
- return A(
25
- (r) => {
26
- const { key: a, target: o, shiftKey: m } = r;
27
- if (o.tagName === "TR" && (a === "ArrowDown" || a === "ArrowUp")) {
28
- const d = a === "ArrowDown" ? 1 : -1, f = d === 1 ? o.nextElementSibling : o.previousElementSibling;
29
- if (!f) return;
30
- const n = y(f.classList);
31
- if (!n && n !== "undefined") return;
32
- let l = [n];
33
- m && u && (l = E(s, l, i, n, d));
34
- const g = l, v = l.reduce((p, C) => (p[C] = !0, p), {});
35
- c({ array: g, object: v });
145
+ const o = j(() => {
146
+ const l = [];
147
+ return c.current?.getElement()?.querySelectorAll(".p-treetable-tbody tr").forEach((a) => {
148
+ const r = K(a.classList);
149
+ r && l.push(r);
150
+ }), l;
151
+ }, [c.current, t]);
152
+ return G(
153
+ (l) => {
154
+ const { key: a, target: r, shiftKey: I } = l;
155
+ if (r.tagName === "TR" && (a === "ArrowDown" || a === "ArrowUp")) {
156
+ const g = a === "ArrowDown" ? 1 : -1, m = g === 1 ? r.nextElementSibling : r.previousElementSibling;
157
+ if (!m) return;
158
+ const f = K(m.classList);
159
+ if (!f && f !== "undefined") return;
160
+ let d = [f];
161
+ I && n && (d = $(s, d, o, f, g));
162
+ const p = d, v = d.reduce((b, w) => (b[w] = !0, b), {});
163
+ e({ array: p, object: v });
36
164
  }
37
165
  },
38
- [i, s]
166
+ [o, s]
39
167
  );
40
168
  };
41
169
  export {
42
- L as ActivityCategorySelect,
43
- D as ActivityReferenceTooltip,
44
- N as CategoryDropdownItem,
45
- k as CategoryTag,
46
- I as FEED_NEW_COMMENT,
47
- j as Feed,
48
- M as FeedProvider,
49
- O as FileUploadPreview,
50
- R as activitiesLast,
51
- S as expandableMimeTypes,
52
- y as extractIdFromClassList,
53
- E as getMultiSelection,
54
- U as isCategoryHidden,
55
- W as isFilePreviewable,
56
- P as useFeedContext,
57
- w as useTableKeyboardNavigation
170
+ vt as ActivityCategorySelect,
171
+ lt as ActivityReferenceTooltip,
172
+ gt as CategoryDropdownItem,
173
+ yt as CategoryTag,
174
+ mt as FEED_NEW_COMMENT,
175
+ pt as Feed,
176
+ dt as FeedContext,
177
+ ht as FeedProvider,
178
+ ot as FileUploadPreview,
179
+ xt as activitiesLast,
180
+ J as expandableMimeTypes,
181
+ K as extractIdFromClassList,
182
+ $ as getMultiSelection,
183
+ It as isCategoryHidden,
184
+ bt as isFilePreviewable,
185
+ ut as useFeedContext,
186
+ at as useTableKeyboardNavigation
58
187
  };
@@ -6,11 +6,11 @@ import { Button as ze, Icon as Ie } from "@ynput/ayon-react-components";
6
6
  import "./chunks/PlayableIcon.es.js";
7
7
  import "date-fns";
8
8
  import "uuid";
9
- import { i as Te, B as we, T as Ve, j as _e, k as ke } from "./chunks/MetaWidget.es.js";
9
+ import { l as Te, B as we, T as Ve, m as _e, n as ke } from "./chunks/MetaWidget.es.js";
10
10
  import "react-toastify";
11
11
  import "lodash";
12
12
  import "primereact/confirmdialog";
13
- import { bg as Le } from "./chunks/searchTerms.es.js";
13
+ import { bj as Le } from "./chunks/searchTerms.es.js";
14
14
  import "lexical";
15
15
  import "@lexical/markdown";
16
16
  import "@lexical/react/LexicalBlockWithAlignableContents";
@@ -23,28 +23,25 @@ import "@lexical/selection";
23
23
  import "@lexical/utils";
24
24
  import { dz as vt, dA as Ge } from "./chunks/getUris.es.js";
25
25
  import "react-router-dom";
26
- import "./chunks/ProjectContext.es.js";
27
- import { a as Me } from "./chunks/useCreateContextMenu.es.js";
28
- import "./chunks/DeleteEntitiesContext.es.js";
29
- import "./chunks/GlobalContext.es.js";
30
- import "./chunks/useLocalStorage.es.js";
31
26
  import "@module-federation/enhanced/runtime";
27
+ import { u as Me } from "./chunks/DeleteEntitiesContextInstance.es.js";
32
28
  import "semver";
33
- import "./chunks/ProjectFoldersContextInstance.es.js";
34
- import { useVirtualizer as Ae } from "@tanstack/react-virtual";
35
- import { useSensors as He, useSensor as Ct, PointerSensor as Oe, KeyboardSensor as $e, DndContext as xt, closestCenter as Dt, DragOverlay as Et, defaultDropAnimationSideEffects as Rt } from "@dnd-kit/core";
36
- import { restrictToHorizontalAxis as Ne, restrictToVerticalAxis as je } from "@dnd-kit/modifiers";
37
- import { useSortable as Ht, sortableKeyboardCoordinates as Ke, arrayMove as We, SortableContext as St, horizontalListSortingStrategy as Pe, verticalListSortingStrategy as Fe } from "@dnd-kit/sortable";
29
+ import { u as Ae } from "./chunks/useCreateContextMenu.es.js";
30
+ import "react-dom";
31
+ import "react-redux";
32
+ import { useVirtualizer as He } from "@tanstack/react-virtual";
33
+ import { useSensors as Oe, useSensor as Ct, PointerSensor as $e, KeyboardSensor as Ne, DndContext as xt, closestCenter as Dt, DragOverlay as Et, defaultDropAnimationSideEffects as Rt } from "@dnd-kit/core";
34
+ import { restrictToHorizontalAxis as je, restrictToVerticalAxis as Ke } from "@dnd-kit/modifiers";
35
+ import { useSortable as Ht, sortableKeyboardCoordinates as We, arrayMove as Pe, SortableContext as St, horizontalListSortingStrategy as Fe, verticalListSortingStrategy as Be } from "@dnd-kit/sortable";
38
36
  import { CSS as Ot } from "@dnd-kit/utilities";
39
37
  import C from "styled-components";
40
- import { C as Be, H as Ye } from "./chunks/ColumnDropIndicator.es.js";
41
- import { u as Ue } from "./chunks/MenuContext.es.js";
38
+ import { H as Ye } from "./chunks/ColumnDropIndicator.styled.es.js";
39
+ import "./chunks/ContextMenuContextInstance.es.js";
40
+ import "./chunks/MenuItem.es.js";
42
41
  import "./chunks/EmptyPlaceholder.es.js";
43
42
  import "./chunks/Menu.es.js";
44
43
  import "./chunks/InfoMessage.es.js";
45
- import "react-dom";
46
- import "react-redux";
47
- import "./chunks/ViewsContext.es.js";
44
+ import { C as Ue } from "./chunks/ColumnHeaderMenuUI.es.js";
48
45
  import "primereact-context/contextmenu";
49
46
  const $t = C.tr`
50
47
  display: flex;
@@ -527,7 +524,7 @@ const Tt = C.tbody`
527
524
  list_of_any: tt,
528
525
  list_of_submodels: wt,
529
526
  dict: wt
530
- }, _o = () => bn, Kt = (t, e) => `list-table-cell-${t}-${e}`, yn = (t) => F(t), Vt = "editable", vn = (t) => !!t && typeof t == "object" && "__listTablePlaceholder" in t, Cn = ({
527
+ }, To = () => bn, Kt = (t, e) => `list-table-cell-${t}-${e}`, yn = (t) => F(t), Vt = "editable", vn = (t) => !!t && typeof t == "object" && "__listTablePlaceholder" in t, Cn = ({
531
528
  cell: t,
532
529
  row: e,
533
530
  rowIndex: o,
@@ -785,7 +782,7 @@ function In({
785
782
  id: t.id,
786
783
  data: { type: "column" },
787
784
  disabled: !e
788
- }), s = t.column, h = o && s.getCanSort(), g = s.getIsSorted(), f = `list-table-menu-${t.id}`, { menuOpen: b } = Ue(), y = b === f, x = h ? [
785
+ }), s = t.column, h = o && s.getCanSort(), g = s.getIsSorted(), f = `list-table-menu-${t.id}`, { menuOpen: b } = Me(), y = b === f, x = h ? [
789
786
  {
790
787
  id: "sort-asc",
791
788
  label: "Sort ascending",
@@ -834,7 +831,7 @@ function In({
834
831
  children: [
835
832
  /* @__PURE__ */ l(gn, { children: t.isPlaceholder ? null : ot(t.column.columnDef.header, t.getContext()) }),
836
833
  (v.length > 0 || h) && /* @__PURE__ */ M(pn, { ...B, children: [
837
- v.length > 0 && /* @__PURE__ */ l(Be, { menuItems: v, menuId: f, className: "header-menu" }),
834
+ v.length > 0 && /* @__PURE__ */ l(Ue, { menuItems: v, menuId: f, className: "header-menu" }),
838
835
  h && /* @__PURE__ */ l(
839
836
  Ye,
840
837
  {
@@ -959,9 +956,9 @@ function _n({
959
956
  }) {
960
957
  const [u, a] = L(null), [m, d] = L(null);
961
958
  return {
962
- sensors: He(
963
- Ct(Oe),
964
- Ct($e, { coordinateGetter: Ke })
959
+ sensors: Oe(
960
+ Ct($e),
961
+ Ct(Ne, { coordinateGetter: We })
965
962
  ),
966
963
  activeRowId: u,
967
964
  activeColumnId: m,
@@ -974,7 +971,7 @@ function _n({
974
971
  if (x && y.id !== x.id) {
975
972
  const w = e.indexOf(y.id), I = e.indexOf(x.id);
976
973
  if (w !== -1 && I !== -1) {
977
- const v = We(e, w, I);
974
+ const v = Pe(e, w, I);
978
975
  r(() => v), i?.(v);
979
976
  }
980
977
  }
@@ -1004,7 +1001,7 @@ function kn(t) {
1004
1001
  }, [o, e]);
1005
1002
  }
1006
1003
  const Ln = (t) => t ? Array.isArray(t) ? t.filter(Boolean) : [t] : [];
1007
- function ko({
1004
+ function wo({
1008
1005
  data: t,
1009
1006
  columns: e,
1010
1007
  getRowId: o,
@@ -1041,7 +1038,7 @@ function ko({
1041
1038
  onExpandedChange: Jt,
1042
1039
  getIsRowInactive: it
1043
1040
  }) {
1044
- const [qt, Qt] = L([]), [Zt, te] = L({}), [ee, ne] = L({}), [oe, ie] = L({}), Y = At(null), [rt] = Me(), st = Bt ?? qt, re = (n) => {
1041
+ const [qt, Qt] = L([]), [Zt, te] = L({}), [ee, ne] = L({}), [oe, ie] = L({}), Y = At(null), [rt] = Ae(), st = Bt ?? qt, re = (n) => {
1045
1042
  const p = typeof n == "function" ? n(st) : n;
1046
1043
  Qt(p), Yt?.(p);
1047
1044
  }, at = Xt ?? oe, se = (n) => {
@@ -1098,7 +1095,7 @@ function ko({
1098
1095
  updateData: a,
1099
1096
  openViewerDialog: m
1100
1097
  }
1101
- }), { rows: _ } = N.getRowModel(), X = Ae({
1098
+ }), { rows: _ } = N.getRowModel(), X = He({
1102
1099
  count: i ? _.length + 1 : _.length,
1103
1100
  getScrollElement: () => Y.current,
1104
1101
  estimateSize: () => 44,
@@ -1186,13 +1183,13 @@ function ko({
1186
1183
  onDragStart: pe,
1187
1184
  onDragEnd: me,
1188
1185
  onDragCancel: fe,
1189
- modifiers: [Ne],
1186
+ modifiers: [je],
1190
1187
  children: [
1191
1188
  /* @__PURE__ */ l(tn, { children: N.getHeaderGroups().map((n) => /* @__PURE__ */ l(en, { children: /* @__PURE__ */ l(
1192
1189
  St,
1193
1190
  {
1194
1191
  items: n.headers.map((p) => p.id),
1195
- strategy: Pe,
1192
+ strategy: Fe,
1196
1193
  children: n.headers.map((p, D) => /* @__PURE__ */ l(
1197
1194
  In,
1198
1195
  {
@@ -1232,13 +1229,13 @@ function ko({
1232
1229
  onDragStart: he,
1233
1230
  onDragEnd: be,
1234
1231
  onDragCancel: ye,
1235
- modifiers: [je],
1232
+ modifiers: [Ke],
1236
1233
  children: [
1237
1234
  /* @__PURE__ */ l(Tt, { style: { height: `${X.getTotalSize()}px` }, children: /* @__PURE__ */ l(
1238
1235
  St,
1239
1236
  {
1240
1237
  items: _.map((n) => n.id),
1241
- strategy: Fe,
1238
+ strategy: Be,
1242
1239
  children: J.map((n) => {
1243
1240
  if (n.index > _.length - 1)
1244
1241
  return /* @__PURE__ */ l(
@@ -1321,7 +1318,7 @@ const Pt = (t) => !!t && typeof t == "object" && ("label" in t || "value" in t),
1321
1318
  }), o.forEach((i) => {
1322
1319
  i.subRows = Ft(i.subRows, e);
1323
1320
  }), [...o, ...r];
1324
- }, Lo = (t, e, o, r, i, u) => {
1321
+ }, Vo = (t, e, o, r, i, u) => {
1325
1322
  const a = [], m = (d, E, R, c) => {
1326
1323
  if (!R.length) {
1327
1324
  d.push(E);
@@ -1348,11 +1345,11 @@ const Pt = (t) => !!t && typeof t == "object" && ("label" in t || "value" in t),
1348
1345
  return t.forEach((d) => m(a, d, e, "root")), Ft(a, o);
1349
1346
  };
1350
1347
  export {
1351
- ko as ListTable,
1352
- Lo as buildGroupedData,
1348
+ wo as ListTable,
1349
+ Vo as buildGroupedData,
1353
1350
  Mn as compareGroupingPathItems,
1354
1351
  bn as defaultListTableDataTypeWidgets,
1355
- _o as getDefaultListTableDataTypeWidgets,
1352
+ To as getDefaultListTableDataTypeWidgets,
1356
1353
  Gn as getGroupItemValue,
1357
1354
  Kt as getListTableCellId,
1358
1355
  Pt as isListTableGroupDisplayObject,