@ynput/ayon-frontend-shared 0.2.30 → 0.2.32

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 (144) hide show
  1. package/dist/_virtual/index.cjs5.js +1 -1
  2. package/dist/_virtual/index.cjs6.js +1 -1
  3. package/dist/_virtual/index.es5.js +5 -2
  4. package/dist/_virtual/index.es5.js.map +1 -1
  5. package/dist/_virtual/index.es6.js +2 -5
  6. package/dist/_virtual/index.es6.js.map +1 -1
  7. package/dist/node_modules/rehype-prism-plus/dist/index.es.cjs.js +1 -1
  8. package/dist/node_modules/rehype-prism-plus/dist/index.es.es.js +1 -1
  9. package/dist/node_modules/remove-accents/index.cjs.js +1 -1
  10. package/dist/node_modules/remove-accents/index.es.js +1 -1
  11. package/dist/shared/src/api/generated/access.cjs.js.map +1 -1
  12. package/dist/shared/src/api/generated/access.es.js.map +1 -1
  13. package/dist/shared/src/api/generated/authentication.cjs.js +1 -1
  14. package/dist/shared/src/api/generated/authentication.cjs.js.map +1 -1
  15. package/dist/shared/src/api/generated/authentication.es.js +9 -6
  16. package/dist/shared/src/api/generated/authentication.es.js.map +1 -1
  17. package/dist/shared/src/api/generated/entityLists.cjs.js.map +1 -1
  18. package/dist/shared/src/api/generated/entityLists.es.js.map +1 -1
  19. package/dist/shared/src/api/generated/folders.cjs.js.map +1 -1
  20. package/dist/shared/src/api/generated/folders.es.js.map +1 -1
  21. package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
  22. package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
  23. package/dist/shared/src/api/generated/graphqlLinks.cjs.js.map +1 -1
  24. package/dist/shared/src/api/generated/graphqlLinks.es.js.map +1 -1
  25. package/dist/shared/src/api/generated/links.cjs.js +1 -1
  26. package/dist/shared/src/api/generated/links.cjs.js.map +1 -1
  27. package/dist/shared/src/api/generated/links.es.js +13 -5
  28. package/dist/shared/src/api/generated/links.es.js.map +1 -1
  29. package/dist/shared/src/api/generated/onboarding.cjs.js.map +1 -1
  30. package/dist/shared/src/api/generated/onboarding.es.js.map +1 -1
  31. package/dist/shared/src/api/generated/operations.cjs.js +1 -1
  32. package/dist/shared/src/api/generated/operations.cjs.js.map +1 -1
  33. package/dist/shared/src/api/generated/operations.es.js +16 -0
  34. package/dist/shared/src/api/generated/operations.es.js.map +1 -1
  35. package/dist/shared/src/api/generated/products.cjs.js +1 -1
  36. package/dist/shared/src/api/generated/products.cjs.js.map +1 -1
  37. package/dist/shared/src/api/generated/products.es.js +6 -3
  38. package/dist/shared/src/api/generated/products.es.js.map +1 -1
  39. package/dist/shared/src/api/generated/projects.cjs.js +1 -1
  40. package/dist/shared/src/api/generated/projects.cjs.js.map +1 -1
  41. package/dist/shared/src/api/generated/projects.es.js +19 -0
  42. package/dist/shared/src/api/generated/projects.es.js.map +1 -1
  43. package/dist/shared/src/api/generated/system.cjs.js.map +1 -1
  44. package/dist/shared/src/api/generated/system.es.js.map +1 -1
  45. package/dist/shared/src/api/generated/tasks.cjs.js.map +1 -1
  46. package/dist/shared/src/api/generated/tasks.es.js.map +1 -1
  47. package/dist/shared/src/api/generated/users.cjs.js.map +1 -1
  48. package/dist/shared/src/api/generated/users.es.js.map +1 -1
  49. package/dist/shared/src/api/generated/versions.cjs.js.map +1 -1
  50. package/dist/shared/src/api/generated/versions.es.js.map +1 -1
  51. package/dist/shared/src/api/generated/views.cjs.js.map +1 -1
  52. package/dist/shared/src/api/generated/views.es.js.map +1 -1
  53. package/dist/shared/src/api/queries/entityLists/listFolders.cjs.js +1 -1
  54. package/dist/shared/src/api/queries/entityLists/listFolders.cjs.js.map +1 -1
  55. package/dist/shared/src/api/queries/entityLists/listFolders.es.js +96 -59
  56. package/dist/shared/src/api/queries/entityLists/listFolders.es.js.map +1 -1
  57. package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js +1 -1
  58. package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js.map +1 -1
  59. package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js +15 -10
  60. package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js.map +1 -1
  61. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.cjs.js +60 -0
  62. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.cjs.js.map +1 -0
  63. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.es.js +332 -0
  64. package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.es.js.map +1 -0
  65. package/dist/shared/src/components/SettingsPanel/SettingsPanel.cjs.js +4 -4
  66. package/dist/shared/src/components/SettingsPanel/SettingsPanel.cjs.js.map +1 -1
  67. package/dist/shared/src/components/SettingsPanel/SettingsPanel.es.js +37 -33
  68. package/dist/shared/src/components/SettingsPanel/SettingsPanel.es.js.map +1 -1
  69. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.cjs.js +3 -5
  70. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.cjs.js.map +1 -1
  71. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.es.js +4 -6
  72. package/dist/shared/src/components/Thumbnail/Thumbnail.styled.es.js.map +1 -1
  73. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.cjs.js +1 -2
  74. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.cjs.js.map +1 -1
  75. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.es.js +0 -1
  76. package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.es.js.map +1 -1
  77. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -1
  78. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
  79. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +555 -537
  80. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
  81. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js +0 -1
  82. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js.map +1 -1
  83. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js +4 -5
  84. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js.map +1 -1
  85. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
  86. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
  87. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +92 -91
  88. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
  89. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.cjs.js.map +1 -1
  90. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.es.js.map +1 -1
  91. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js +1 -1
  92. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js.map +1 -1
  93. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js +126 -108
  94. package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js.map +1 -1
  95. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.cjs.js +2 -0
  96. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.cjs.js.map +1 -0
  97. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.es.js +9 -0
  98. package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.es.js.map +1 -0
  99. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js +2 -2
  100. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js.map +1 -1
  101. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js +49 -48
  102. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js.map +1 -1
  103. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js +38 -9
  104. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js.map +1 -1
  105. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js +74 -39
  106. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js.map +1 -1
  107. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js +24 -15
  108. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js.map +1 -1
  109. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js +71 -59
  110. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js.map +1 -1
  111. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js +6 -6
  112. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js.map +1 -1
  113. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js +12 -12
  114. package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js.map +1 -1
  115. package/dist/shared/src/util/columnConfigConverter.cjs.js +1 -1
  116. package/dist/shared/src/util/columnConfigConverter.cjs.js.map +1 -1
  117. package/dist/shared/src/util/columnConfigConverter.es.js +35 -33
  118. package/dist/shared/src/util/columnConfigConverter.es.js.map +1 -1
  119. package/dist/types/api/generated/access.d.ts +6 -0
  120. package/dist/types/api/generated/authentication.d.ts +6 -0
  121. package/dist/types/api/generated/entityLists.d.ts +7 -7
  122. package/dist/types/api/generated/folders.d.ts +2 -2
  123. package/dist/types/api/generated/graphql.d.ts +3 -1
  124. package/dist/types/api/generated/graphqlLinks.d.ts +21 -15
  125. package/dist/types/api/generated/links.d.ts +4 -0
  126. package/dist/types/api/generated/onboarding.d.ts +3 -0
  127. package/dist/types/api/generated/operations.d.ts +22 -1
  128. package/dist/types/api/generated/products.d.ts +23 -0
  129. package/dist/types/api/generated/projects.d.ts +63 -0
  130. package/dist/types/api/generated/representations.d.ts +1 -0
  131. package/dist/types/api/generated/system.d.ts +9 -2
  132. package/dist/types/api/generated/tasks.d.ts +1 -0
  133. package/dist/types/api/generated/users.d.ts +1 -1
  134. package/dist/types/api/generated/versions.d.ts +1 -0
  135. package/dist/types/api/generated/views.d.ts +50 -9
  136. package/dist/types/api/queries/authentication/getAuthentication.d.ts +1 -0
  137. package/dist/types/api/queries/overview/updateOverview.d.ts +2 -0
  138. package/dist/types/api/queries/project/getProject.d.ts +4 -0
  139. package/dist/types/components/ProjectTableSettings/RowHeightSettings.d.ts +3 -0
  140. package/dist/types/containers/ProjectTreeTable/context/ColumnSettingsContext.d.ts +4 -0
  141. package/dist/types/containers/ProjectTreeTable/hooks/useDynamicRowHeight.d.ts +11 -0
  142. package/dist/types/containers/ProjectTreeTable/widgets/EntityNameWidget.d.ts +2 -1
  143. package/dist/types/containers/ProjectTreeTable/widgets/EnumCellValue.d.ts +2 -1
  144. package/package.json +3 -3
@@ -1,39 +1,40 @@
1
1
  import { j as o } from "../../../../_virtual/jsx-runtime.es.js";
2
- import { memo as ue, useMemo as v, useRef as Nt, useCallback as Z, useEffect as dt } from "react";
3
- import { useVirtualizer as ce } from "@tanstack/react-virtual";
4
- import { flexRender as Ot, useReactTable as ge, filterFns as fe, getSortedRowModel as he, getExpandedRowModel as Ce, getFilteredRowModel as ye, getCoreRowModel as xe } from "@tanstack/react-table";
5
- import D from "clsx";
6
- import be from "./buildTreeTableColumns.es.js";
7
- import { TableCell as ct, TableWrapper as we, TableContainer as Se, TR as Ht, TableHeader as Re, ColumnHeader as je, HeaderCell as Te, TableCellContent as Me, HeaderButtons as ze, ResizedHandler as Ie } from "./ProjectTreeTable.styled.es.js";
8
- import Pe from "./components/HeaderActionButton.es.js";
9
- import ve from "./components/RowDragHandleCellContent.es.js";
2
+ import { memo as ge, useMemo as D, useRef as Ht, useCallback as et, useEffect as tt } from "react";
3
+ import { useVirtualizer as fe } from "@tanstack/react-virtual";
4
+ import { flexRender as kt, useReactTable as he, filterFns as Ce, getSortedRowModel as ye, getExpandedRowModel as xe, getFilteredRowModel as be, getCoreRowModel as we } from "@tanstack/react-table";
5
+ import E from "clsx";
6
+ import Se from "./buildTreeTableColumns.es.js";
7
+ import { TableCell as gt, TableWrapper as Re, TableContainer as je, TR as At, TableHeader as Te, ColumnHeader as Me, HeaderCell as ze, TableCellContent as Ie, HeaderButtons as Pe, ResizedHandler as ve } from "./ProjectTreeTable.styled.es.js";
8
+ import De from "./components/HeaderActionButton.es.js";
9
+ import Ee from "./components/RowDragHandleCellContent.es.js";
10
10
  import "./components/RowSelectionHeader.es.js";
11
11
  import "./components/SelectionCell.es.js";
12
- import { ColumnHeaderMenu as De } from "./components/ColumnHeaderMenu.es.js";
13
- import { EmptyPlaceholder as Ee } from "../../components/EmptyPlaceholder/EmptyPlaceholder.es.js";
12
+ import { ColumnHeaderMenu as Le } from "./components/ColumnHeaderMenu.es.js";
13
+ import { EmptyPlaceholder as Ne } from "../../components/EmptyPlaceholder/EmptyPlaceholder.es.js";
14
14
  import "../../components/EmptyPlaceholder/EmptyPlaceholderFlex.styled.es.js";
15
- import { useCellEditing as kt } from "./context/CellEditingContext.es.js";
16
- import { useSelectionCellsContext as ut, ROW_SELECTION_COLUMN_ID as H } from "./context/SelectionCellsContext.es.js";
17
- import { ClipboardProvider as Le } from "./context/ClipboardContext.es.js";
18
- import { useSelectedRowsContext as Ne } from "./context/SelectedRowsContext.es.js";
19
- import { useColumnSettingsContext as Oe } from "./context/ColumnSettingsContext.es.js";
20
- import { useMenuContext as He } from "../../context/MenuContext.es.js";
21
- import ke from "./hooks/useCustomColumnWidthVars.es.js";
22
- import { usePrefetchFolderTasks as Ae } from "./hooks/usePrefetchFolderTasks.es.js";
23
- import Ve from "./hooks/useCellContextMenu.es.js";
24
- import Fe from "./hooks/useColumnVirtualization.es.js";
25
- import Be from "./hooks/useKeyboardNavigation.es.js";
26
- import { EntityPickerDialog as $e } from "../EntityPickerDialog/EntityPickerDialog.es.js";
27
- import { useMoveEntities as _e } from "./hooks/useMoveEntities.es.js";
15
+ import { useCellEditing as Vt } from "./context/CellEditingContext.es.js";
16
+ import { useSelectionCellsContext as ct, ROW_SELECTION_COLUMN_ID as A } from "./context/SelectionCellsContext.es.js";
17
+ import { ClipboardProvider as Oe } from "./context/ClipboardContext.es.js";
18
+ import { useSelectedRowsContext as He } from "./context/SelectedRowsContext.es.js";
19
+ import { useColumnSettingsContext as ke } from "./context/ColumnSettingsContext.es.js";
20
+ import { useMenuContext as Ae } from "../../context/MenuContext.es.js";
21
+ import Ve from "./hooks/useCustomColumnWidthVars.es.js";
22
+ import { usePrefetchFolderTasks as Fe } from "./hooks/usePrefetchFolderTasks.es.js";
23
+ import Be from "./hooks/useCellContextMenu.es.js";
24
+ import $e from "./hooks/useColumnVirtualization.es.js";
25
+ import _e from "./hooks/useKeyboardNavigation.es.js";
26
+ import Ge from "./hooks/useDynamicRowHeight.es.js";
27
+ import { EntityPickerDialog as Ke } from "../EntityPickerDialog/EntityPickerDialog.es.js";
28
+ import { useMoveEntities as Ue } from "./hooks/useMoveEntities.es.js";
28
29
  import "../ContextMenu/ContextMenuContext.es.js";
29
- import { Icon as At } from "@ynput/ayon-react-components";
30
+ import { Icon as Ft } from "@ynput/ayon-react-components";
30
31
  /* empty css */
31
- import { createPortal as Vt } from "react-dom";
32
+ import { createPortal as Bt } from "react-dom";
32
33
  import "../Feed/context/FeedContext.es.js";
33
34
  import "../Feed/components/Tooltips/UserTooltip/UserTooltip.styled.es.js";
34
35
  import "../Feed/components/Tooltips/EntityTooltip/EntityTooltip.styled.es.js";
35
36
  import "lodash";
36
- import { toast as Ge } from "react-toastify";
37
+ import { toast as We } from "react-toastify";
37
38
  import "uuid";
38
39
  import "../../util/pubsub.es.js";
39
40
  import "../Feed/components/FileUploadPreview/FileUploadPreview.styled.es.js";
@@ -71,13 +72,13 @@ import "../Feed/components/ActivityVersions/ActivityVersions.styled.es.js";
71
72
  import "../Feed/components/ActivityGroup/ActivityGroup.styled.es.js";
72
73
  import "../Feed/Feed.styled.es.js";
73
74
  import "date-fns";
74
- import { generateDummyAttributes as Ke, generateLoadingRows as Ue } from "./utils/loadingUtils.es.js";
75
- import { getTableFieldOptions as We } from "./utils/getTableFieldOptions.es.js";
76
- import { getReadOnlyLists as qe } from "./utils/getReadOnlyLists.es.js";
77
- import { getCellId as gt, parseCellId as Xe } from "./utils/cellUtils.es.js";
78
- import { getEntityViewierIds as Ye } from "./utils/getEntityViewerIds.es.js";
75
+ import { generateDummyAttributes as qe, generateLoadingRows as Xe } from "./utils/loadingUtils.es.js";
76
+ import { getTableFieldOptions as Ye } from "./utils/getTableFieldOptions.es.js";
77
+ import { getReadOnlyLists as Je } from "./utils/getReadOnlyLists.es.js";
78
+ import { getCellId as ft, parseCellId as Qe } from "./utils/cellUtils.es.js";
79
+ import { getEntityViewierIds as Ze } from "./utils/getEntityViewerIds.es.js";
79
80
  import "./context/ProjectTableQueriesContext.es.js";
80
- import { useProjectTableContext as Ft } from "./context/ProjectTableContext.es.js";
81
+ import { useProjectTableContext as $t } from "./context/ProjectTableContext.es.js";
81
82
  import "./context/DetailsPanelEntityContext.es.js";
82
83
  import "../../api/base/client.es.js";
83
84
  import "../../api/generated/graphql.es.js";
@@ -163,20 +164,20 @@ import "../../../../_virtual/semver.es.js";
163
164
  import "react-redux";
164
165
  import "custom-protocol-check";
165
166
  import "./components/GroupSettingsFallback.es.js";
166
- import { useProjectDataContext as Je } from "./context/ProjectDataContext.es.js";
167
+ import { useProjectDataContext as to } from "./context/ProjectDataContext.es.js";
167
168
  import "./widgets/CollapsedWidget.es.js";
168
169
  import "./widgets/DateWidget.es.js";
169
170
  import "./widgets/EnumWidget.es.js";
170
171
  import "./widgets/TextWidget.es.js";
171
172
  import "./widgets/BooleanWidget.es.js";
172
- import { EDIT_TRIGGER_CLASS as Qe } from "./widgets/CellWidget.es.js";
173
+ import { EDIT_TRIGGER_CLASS as eo } from "./widgets/CellWidget.es.js";
173
174
  import "./widgets/EntityNameWidget.es.js";
174
175
  import "./widgets/GroupHeaderWidget.es.js";
175
176
  import "./widgets/ThumbnailWidget.es.js";
176
177
  import "../../components/ThumbnailSimple/ThumbnailSimple.es.js";
177
- import { DragOverlay as Ze } from "@dnd-kit/core";
178
- import { SortableContext as to, verticalListSortingStrategy as eo, useSortable as oo } from "@dnd-kit/sortable";
179
- import { CSS as io } from "../../../../node_modules/@dnd-kit/utilities/dist/utilities.esm.es.js";
178
+ import { DragOverlay as oo } from "@dnd-kit/core";
179
+ import { SortableContext as io, verticalListSortingStrategy as no, useSortable as ro } from "@dnd-kit/sortable";
180
+ import { CSS as so } from "../../../../node_modules/@dnd-kit/utilities/dist/utilities.esm.es.js";
180
181
  import "../../components/ReviewablesList/ReviewablesList.styled.es.js";
181
182
  import "../../components/ReviewablesList/ReviewablesUpload.styled.es.js";
182
183
  import "axios";
@@ -227,138 +228,138 @@ import "../Views/context/ViewsContext.es.js";
227
228
  import "../Views/Views.styled.es.js";
228
229
  import "../Views/ViewsMenuContainer/ViewsMenuContainer.es.js";
229
230
  import "../Views/ViewsMenu/ViewsMenu.es.js";
230
- const tt = (t) => {
231
- const a = t.getIsPinned(), n = t.id !== H && t.id !== $ ? -30 : 0;
231
+ const ot = (t) => {
232
+ const m = t.getIsPinned(), n = t.id !== A && t.id !== B ? -30 : 0;
232
233
  return {
233
- left: a === "left" ? `${t.getStart("left") + n}px` : void 0,
234
+ left: m === "left" ? `${t.getStart("left") + n}px` : void 0,
234
235
  // Removed offset
235
- right: a === "right" ? `${t.getAfter("right")}px` : void 0,
236
- position: a ? "sticky" : "relative",
236
+ right: m === "right" ? `${t.getAfter("right")}px` : void 0,
237
+ position: m ? "sticky" : "relative",
237
238
  width: t.getSize(),
238
- zIndex: a ? 100 : 0
239
+ zIndex: m ? 100 : 0
239
240
  };
240
- }, et = (t, a) => `calc(var(--col-${a}-size) * 1px)`, $ = "drag-handle", Ts = ({
241
+ }, it = (t, m) => `calc(var(--col-${m}-size) * 1px)`, B = "drag-handle", Ps = ({
241
242
  scope: t,
242
- sliceId: a,
243
+ sliceId: m,
243
244
  onScroll: n,
244
- onScrollBottom: c,
245
+ onScrollBottom: C,
245
246
  // when the user scrolls to the bottom of the table, this callback is called
246
- onOpenNew: y,
247
- readOnly: g,
248
- excludedColumns: x,
249
- extraColumns: S,
250
- isLoading: R,
251
- clientSorting: i = !1,
252
- sortableRows: d = !1,
253
- onRowReorder: s,
254
- dndActiveId: j,
247
+ onOpenNew: x,
248
+ readOnly: y,
249
+ excludedColumns: b,
250
+ extraColumns: w,
251
+ isLoading: S,
252
+ clientSorting: r = !1,
253
+ sortableRows: p = !1,
254
+ onRowReorder: I,
255
+ dndActiveId: i,
255
256
  // Destructure new prop
256
- pt: f,
257
- ...T
257
+ pt: g,
258
+ ...H
258
259
  }) => {
259
- var Lt;
260
+ var Ot;
260
261
  const {
261
- columnVisibility: E,
262
- columnPinning: m,
263
- columnOrder: I,
264
- columnSizing: h,
265
- setAllColumns: k,
266
- sorting: A,
267
- sortingOnChange: u,
262
+ columnVisibility: T,
263
+ columnPinning: R,
264
+ columnOrder: f,
265
+ columnSizing: P,
266
+ setAllColumns: u,
267
+ sorting: $,
268
+ sortingOnChange: _,
268
269
  columnPinningOnChange: V,
269
- columnSizingOnChange: P,
270
- columnVisibilityOnChange: F,
271
- columnOrderOnChange: L,
272
- groupBy: N
273
- } = Oe(), ot = !!N, {
274
- projectInfo: b,
275
- tableData: C,
276
- attribFields: w,
277
- entitiesMap: $t,
278
- users: ft,
279
- isLoading: _t,
280
- error: Gt,
281
- isInitialized: it,
282
- expanded: Kt,
283
- projectName: K,
284
- updateExpanded: ht,
285
- toggleExpandAll: Ut,
286
- showHierarchy: O,
287
- fetchNextPage: Wt,
288
- scopes: Ct,
289
- getEntityById: yt
290
- } = Ft(), { projectName: qt, writableFields: xt } = Je(), U = R || _t, {
291
- statuses: bt = [],
292
- folderTypes: wt = [],
293
- taskTypes: St = [],
294
- tags: Rt = [],
295
- linkTypes: Xt = []
296
- } = b || {}, W = v(
297
- () => We({
298
- users: ft,
299
- statuses: bt,
300
- folderTypes: wt,
301
- taskTypes: St,
302
- tags: Rt,
303
- scopes: Ct
270
+ columnSizingOnChange: a,
271
+ columnVisibilityOnChange: L,
272
+ columnOrderOnChange: j,
273
+ groupBy: v
274
+ } = ke(), N = !!v, {
275
+ projectInfo: nt,
276
+ tableData: c,
277
+ attribFields: h,
278
+ entitiesMap: O,
279
+ users: ht,
280
+ isLoading: Gt,
281
+ error: Kt,
282
+ isInitialized: rt,
283
+ expanded: Ut,
284
+ projectName: U,
285
+ updateExpanded: Ct,
286
+ toggleExpandAll: Wt,
287
+ showHierarchy: k,
288
+ fetchNextPage: qt,
289
+ scopes: yt,
290
+ getEntityById: xt
291
+ } = $t(), { projectName: Xt, writableFields: bt } = to(), W = S || Gt, {
292
+ statuses: wt = [],
293
+ folderTypes: St = [],
294
+ taskTypes: Rt = [],
295
+ tags: jt = [],
296
+ linkTypes: Yt = []
297
+ } = nt || {}, q = D(
298
+ () => Ye({
299
+ users: ht,
300
+ statuses: wt,
301
+ folderTypes: St,
302
+ taskTypes: Rt,
303
+ tags: jt,
304
+ scopes: yt
304
305
  }),
305
- [ft, bt, wt, St, Ct, Rt]
306
- ), q = Nt(null), jt = Nt(0), { registerGrid: Tt } = ut(), { loadingAttrib: Mt, loadingRows: Yt } = v(() => {
307
- var r;
308
- const e = ((r = q.current) == null ? void 0 : r.querySelectorAll("tbody tr").length) || 0, p = Ke(), l = Ue(
309
- w,
310
- O && C.length > 0 ? Math.min(e, 50) : N ? Math.max(jt.current, 50) : 50
306
+ [ht, wt, St, Rt, yt, jt]
307
+ ), X = Ht(null), Tt = Ht(0), { registerGrid: Mt } = ct(), { loadingAttrib: zt, loadingRows: Jt } = D(() => {
308
+ var s;
309
+ const e = ((s = X.current) == null ? void 0 : s.querySelectorAll("tbody tr").length) || 0, d = qe(), l = Xe(
310
+ h,
311
+ k && c.length > 0 ? Math.min(e, 50) : v ? Math.max(Tt.current, 50) : 50
311
312
  );
312
- return { loadingAttrib: p, loadingRows: l };
313
- }, []), Jt = !it || U, { readOnlyColumns: zt, readOnlyAttribs: Qt } = v(
314
- () => qe(w, xt, g),
315
- [w, xt, g]
316
- ), { selectedCells: nt } = ut(), { updateEntities: It } = kt(), Zt = Z(
317
- async (e, p) => {
318
- const { selection: l = [] } = p || {}, r = [];
313
+ return { loadingAttrib: d, loadingRows: l };
314
+ }, []), Qt = !rt || W, { readOnlyColumns: It, readOnlyAttribs: Zt } = D(
315
+ () => Je(h, bt, y),
316
+ [h, bt, y]
317
+ ), { selectedCells: st } = ct(), { updateEntities: Pt } = Vt(), te = et(
318
+ async (e, d) => {
319
+ const { selection: l = [] } = d || {}, s = [];
319
320
  if (!(l != null && l.length))
320
- r.push({ ...e, id: e.rowId });
321
+ s.push({ ...e, id: e.rowId });
321
322
  else {
322
- const { field: z, value: lt, isAttrib: mt, type: at } = e;
323
- for (const J of nt) {
324
- const { colId: B, rowId: Q } = Xe(J) || {}, pt = yt(Q || "");
325
- if (!pt) {
326
- console.warn(`Entity with ID ${Q} not found for cell update.`);
323
+ const { field: z, value: at, isAttrib: pt, type: dt } = e;
324
+ for (const Q of st) {
325
+ const { colId: F, rowId: Z } = Qe(Q) || {}, ut = xt(Z || "");
326
+ if (!ut) {
327
+ console.warn(`Entity with ID ${Z} not found for cell update.`);
327
328
  continue;
328
329
  }
329
- (!(B != null && B.includes("attrib_")) || (B == null ? void 0 : B.replace("attrib_", "")) === z) && Q && r.push({
330
+ (!(F != null && F.includes("attrib_")) || (F == null ? void 0 : F.replace("attrib_", "")) === z) && Z && s.push({
330
331
  field: z,
331
- rowId: Q,
332
- id: pt.entityId,
333
- value: lt,
334
- isAttrib: mt,
335
- type: pt.entityType
332
+ rowId: Z,
333
+ id: ut.entityId,
334
+ value: at,
335
+ isAttrib: pt,
336
+ type: ut.entityType
336
337
  });
337
338
  }
338
339
  }
339
- if (!r.length) {
340
- console.warn("No entities to update, skipping updateEntities call."), Ge.warn("No entities to update.");
340
+ if (!s.length) {
341
+ console.warn("No entities to update, skipping updateEntities call."), We.warn("No entities to update.");
341
342
  return;
342
343
  }
343
- await It(r, !0);
344
+ await Pt(s, !0);
344
345
  },
345
- [It, yt, nt]
346
- ), Pt = v(
347
- () => it ? w : Mt,
348
- [w, Mt, it]
349
- ), rt = v(() => {
350
- const e = be({
351
- attribs: Pt,
352
- links: Xt,
353
- showHierarchy: O,
354
- options: W,
355
- extraColumns: S,
356
- excluded: x,
357
- groupBy: N
346
+ [Pt, xt, st]
347
+ ), vt = D(
348
+ () => rt ? h : zt,
349
+ [h, zt, rt]
350
+ ), lt = D(() => {
351
+ const e = Se({
352
+ attribs: vt,
353
+ links: Yt,
354
+ showHierarchy: k,
355
+ options: q,
356
+ extraColumns: w,
357
+ excluded: b,
358
+ groupBy: v
358
359
  });
359
- return d ? [
360
+ return p ? [
360
361
  {
361
- id: $,
362
+ id: B,
362
363
  header: () => null,
363
364
  cell: () => null,
364
365
  // Content rendered by TableBodyRow
@@ -373,14 +374,14 @@ const tt = (t) => {
373
374
  },
374
375
  ...e
375
376
  ] : e;
376
- }, [Pt, O, W, S, x, d]);
377
- dt(() => {
378
- const e = rt.map((p) => p.id).filter(Boolean);
379
- k(e);
380
- }, [rt, k]);
381
- const M = ge({
382
- data: Jt ? Yt : C,
383
- columns: rt,
377
+ }, [vt, k, q, w, b, p]);
378
+ tt(() => {
379
+ const e = lt.map((d) => d.id).filter(Boolean);
380
+ u(e);
381
+ }, [lt, u]);
382
+ const M = he({
383
+ data: Qt ? Jt : c,
384
+ columns: lt,
384
385
  defaultColumn: {
385
386
  minSize: 50,
386
387
  size: 150
@@ -392,123 +393,123 @@ const tt = (t) => {
392
393
  //disable sub row selection
393
394
  getSubRows: (e) => e.subRows,
394
395
  getRowCanExpand: () => !0,
395
- getCoreRowModel: xe(),
396
- getFilteredRowModel: ye(),
397
- getExpandedRowModel: Ce(),
396
+ getCoreRowModel: we(),
397
+ getFilteredRowModel: be(),
398
+ getExpandedRowModel: xe(),
398
399
  filterFromLeafRows: !0,
399
400
  // EXPANDABLE
400
- onExpandedChange: ht,
401
+ onExpandedChange: Ct,
401
402
  // SORTING
402
403
  enableSorting: !0,
403
- getSortedRowModel: he(),
404
+ getSortedRowModel: ye(),
404
405
  sortDescFirst: !1,
405
- manualSorting: !i,
406
- onSortingChange: u,
406
+ manualSorting: !r,
407
+ onSortingChange: _,
407
408
  columnResizeMode: "onChange",
408
409
  onColumnPinningChange: V,
409
- onColumnSizingChange: P,
410
- onColumnVisibilityChange: F,
411
- onColumnOrderChange: L,
410
+ onColumnSizingChange: a,
411
+ onColumnVisibilityChange: L,
412
+ onColumnOrderChange: j,
412
413
  // @ts-ignore
413
- filterFns: fe,
414
+ filterFns: Ce,
414
415
  state: {
415
- expanded: Kt,
416
- sorting: A,
416
+ expanded: Ut,
417
+ sorting: $,
417
418
  columnPinning: (() => {
418
419
  const e = [];
419
- d && e.push($), e.push(H);
420
- const p = (m.left || []).filter(
421
- (r) => r !== $ && r !== H
420
+ p && e.push(B), e.push(A);
421
+ const d = (R.left || []).filter(
422
+ (s) => s !== B && s !== A
422
423
  );
423
- return e.push(...p), {
424
+ return e.push(...d), {
424
425
  left: [...new Set(e)],
425
- right: m.right
426
+ right: R.right
426
427
  };
427
428
  })(),
428
- columnSizing: h,
429
- columnVisibility: E,
430
- columnOrder: I
429
+ columnSizing: P,
430
+ columnVisibility: T,
431
+ columnOrder: f
431
432
  },
432
433
  meta: {
433
- projectName: K,
434
- options: W,
435
- readOnly: zt,
436
- updateEntities: Zt,
437
- toggleExpandAll: Ut,
438
- loadMoreTasks: Wt,
439
- selection: Array.from(nt)
434
+ projectName: U,
435
+ options: q,
436
+ readOnly: It,
437
+ updateEntities: te,
438
+ toggleExpandAll: Wt,
439
+ loadMoreTasks: qt,
440
+ selection: Array.from(st)
440
441
  }
441
- }), { rows: _ } = M.getRowModel();
442
- dt(() => {
443
- jt.current = _.length;
444
- }, [_.length]), dt(() => {
445
- if (!_.length) return;
446
- const e = _.map((r) => r.id), l = [...M.getAllLeafColumns().map((r) => r.id)].sort((r, z) => {
447
- var at, J;
448
- if (H === z) return 1;
449
- const lt = (at = m.left) != null && at.includes(r) ? 0 : 1, mt = (J = m.left) != null && J.includes(z) ? 0 : 1;
450
- return lt - mt;
442
+ }), { rows: G } = M.getRowModel();
443
+ tt(() => {
444
+ Tt.current = G.length;
445
+ }, [G.length]), tt(() => {
446
+ if (!G.length) return;
447
+ const e = G.map((s) => s.id), l = [...M.getAllLeafColumns().map((s) => s.id)].sort((s, z) => {
448
+ var dt, Q;
449
+ if (A === z) return 1;
450
+ const at = (dt = R.left) != null && dt.includes(s) ? 0 : 1, pt = (Q = R.left) != null && Q.includes(z) ? 0 : 1;
451
+ return at - pt;
451
452
  });
452
- Tt(e, l);
453
- }, [_, M.getAllLeafColumns(), m, H, Tt]);
454
- const vt = M.getVisibleLeafColumns(), { columnVirtualizer: st, virtualPaddingLeft: X, virtualPaddingRight: Y } = Fe({
455
- visibleColumns: vt,
456
- tableContainerRef: q,
457
- columnPinning: m,
458
- columnSizing: h,
459
- columnOrder: I
460
- }), Dt = ke(M, h), te = v(() => w.reduce((e, p) => {
461
- var l, r, z;
462
- return (r = (l = p.data) == null ? void 0 : l.enum) != null && r.length && (e[p.name] = (z = p.data) == null ? void 0 : z.enum), e;
463
- }, {}), [w]), ee = v(() => C.map((e) => e.id), [C]), oe = v(() => !j || !d ? null : C.find((e) => e.id === j), [j, C, d]), ie = Z(
453
+ Mt(e, l);
454
+ }, [G, M.getAllLeafColumns(), R, A, Mt]);
455
+ const Dt = M.getVisibleLeafColumns(), { columnVirtualizer: mt, virtualPaddingLeft: Y, virtualPaddingRight: J } = $e({
456
+ visibleColumns: Dt,
457
+ tableContainerRef: X,
458
+ columnPinning: R,
459
+ columnSizing: P,
460
+ columnOrder: f
461
+ }), Et = Ve(M, P), { getRowHeight: ee, defaultRowHeight: Lt } = Ge(), oe = D(() => h.reduce((e, d) => {
462
+ var l, s, z;
463
+ return (s = (l = d.data) == null ? void 0 : l.enum) != null && s.length && (e[d.name] = (z = d.data) == null ? void 0 : z.enum), e;
464
+ }, {}), [h]), ie = D(() => c.map((e) => e.id), [c]), ne = D(() => !i || !p ? null : c.find((e) => e.id === i), [i, c, p]), re = et(
464
465
  (e) => {
465
- if (n == null || n(e), c) {
466
- const p = e.currentTarget;
467
- if (p && !O && !N) {
468
- const { scrollHeight: l, scrollTop: r, clientHeight: z } = p;
469
- l - r - z < 500 && !U && c(e);
466
+ if (n == null || n(e), C) {
467
+ const d = e.currentTarget;
468
+ if (d && !k && !v) {
469
+ const { scrollHeight: l, scrollTop: s, clientHeight: z } = d;
470
+ l - s - z < 500 && !W && C(e);
470
471
  }
471
472
  }
472
473
  },
473
- [n, c, O, N, U]
474
+ [n, C, k, v, W]
474
475
  ), {
475
- isEntityPickerOpen: ne,
476
- handleMoveSubmit: re,
477
- closeMoveDialog: se,
478
- movingEntities: G,
479
- handleMoveToRoot: le,
480
- getDisabledFolderIds: me,
481
- getDisabledMessage: ae
482
- } = _e({
483
- projectName: qt || K || ""
484
- }), pe = (e) => {
485
- re(e);
486
- const p = e[0];
487
- ht((l) => typeof l == "boolean" ? l || { [p]: !0 } : l[p] ? l : {
476
+ isEntityPickerOpen: se,
477
+ handleMoveSubmit: le,
478
+ closeMoveDialog: me,
479
+ movingEntities: K,
480
+ handleMoveToRoot: ae,
481
+ getDisabledFolderIds: pe,
482
+ getDisabledMessage: de
483
+ } = Ue({
484
+ projectName: Xt || U || ""
485
+ }), ue = (e) => {
486
+ le(e);
487
+ const d = e[0];
488
+ Ct((l) => typeof l == "boolean" ? l || { [d]: !0 } : l[d] ? l : {
488
489
  ...l,
489
- [p]: !0
490
+ [d]: !0
490
491
  });
491
- }, Et = /* @__PURE__ */ o.jsxs(
492
- Le,
492
+ }, Nt = /* @__PURE__ */ o.jsxs(
493
+ Oe,
493
494
  {
494
- entitiesMap: $t,
495
- columnEnums: { ...W, ...te },
496
- columnReadOnly: Qt,
497
- visibleColumns: vt,
495
+ entitiesMap: O,
496
+ columnEnums: { ...q, ...oe },
497
+ columnReadOnly: Zt,
498
+ visibleColumns: Dt,
498
499
  children: [
499
- /* @__PURE__ */ o.jsx(we, { ...T, children: /* @__PURE__ */ o.jsx(
500
- Se,
500
+ /* @__PURE__ */ o.jsx(Re, { ...H, children: /* @__PURE__ */ o.jsx(
501
+ je,
501
502
  {
502
- ref: q,
503
+ ref: X,
503
504
  style: { height: "100%", padding: 0 },
504
- onScroll: ie,
505
- ...f == null ? void 0 : f.container,
506
- className: D(
505
+ onScroll: re,
506
+ ...g == null ? void 0 : g.container,
507
+ className: E(
507
508
  "table-container",
508
509
  {
509
510
  resizing: M.getState().columnSizingInfo.isResizingColumn
510
511
  },
511
- (Lt = f == null ? void 0 : f.container) == null ? void 0 : Lt.className
512
+ (Ot = g == null ? void 0 : g.container) == null ? void 0 : Ot.className
512
513
  ),
513
514
  children: /* @__PURE__ */ o.jsxs(
514
515
  "table",
@@ -517,39 +518,41 @@ const tt = (t) => {
517
518
  display: "grid",
518
519
  borderCollapse: "collapse",
519
520
  userSelect: "none",
520
- ...Dt,
521
+ ...Et,
521
522
  width: M.getTotalSize(),
522
523
  cursor: M.getState().columnSizingInfo.isResizingColumn ? "col-resize" : void 0
523
524
  },
524
525
  children: [
525
526
  /* @__PURE__ */ o.jsx(
526
- no,
527
+ lo,
527
528
  {
528
- columnVirtualizer: st,
529
+ columnVirtualizer: mt,
529
530
  table: M,
530
- virtualPaddingLeft: X,
531
- virtualPaddingRight: Y,
532
- isLoading: U,
533
- readOnlyColumns: zt,
534
- sortableRows: d,
535
- ...f == null ? void 0 : f.head
531
+ virtualPaddingLeft: Y,
532
+ virtualPaddingRight: J,
533
+ isLoading: W,
534
+ readOnlyColumns: It,
535
+ sortableRows: p,
536
+ ...g == null ? void 0 : g.head
536
537
  }
537
538
  ),
538
539
  /* @__PURE__ */ o.jsx(
539
- lo,
540
+ po,
540
541
  {
541
- columnVirtualizer: st,
542
+ columnVirtualizer: mt,
542
543
  table: M,
543
- tableContainerRef: q,
544
- virtualPaddingLeft: X,
545
- virtualPaddingRight: Y,
546
- showHierarchy: O,
547
- attribs: w,
548
- onOpenNew: y,
549
- rowOrderIds: ee,
550
- sortableRows: d,
551
- error: Gt,
552
- isGrouping: ot
544
+ tableContainerRef: X,
545
+ virtualPaddingLeft: Y,
546
+ virtualPaddingRight: J,
547
+ showHierarchy: k,
548
+ attribs: h,
549
+ onOpenNew: x,
550
+ rowOrderIds: ie,
551
+ sortableRows: p,
552
+ error: Kt,
553
+ isGrouping: N,
554
+ getRowHeight: ee,
555
+ defaultRowHeight: Lt
553
556
  }
554
557
  )
555
558
  ]
@@ -557,204 +560,204 @@ const tt = (t) => {
557
560
  )
558
561
  }
559
562
  ) }),
560
- ne && K && (G == null ? void 0 : G.entities) && G.entities.length > 0 && /* @__PURE__ */ o.jsx(
561
- $e,
563
+ se && U && (K == null ? void 0 : K.entities) && K.entities.length > 0 && /* @__PURE__ */ o.jsx(
564
+ Ke,
562
565
  {
563
- projectName: K,
566
+ projectName: U,
564
567
  entityType: "folder",
565
- onSubmit: pe,
566
- onClose: se,
567
- showMoveToRoot: G.entities.every(
568
+ onSubmit: ue,
569
+ onClose: me,
570
+ showMoveToRoot: K.entities.every(
568
571
  (e) => e.entityType === "folder"
569
572
  ),
570
- onMoveToRoot: le,
571
- disabledIds: me(),
572
- getDisabledMessage: ae
573
+ onMoveToRoot: ae,
574
+ disabledIds: pe(),
575
+ getDisabledMessage: de
573
576
  }
574
577
  )
575
578
  ]
576
579
  }
577
- ), de = d && j && Vt(
578
- /* @__PURE__ */ o.jsx(Ze, { dropAnimation: null, children: oe ? (() => {
579
- const e = M.getRowModel().rows.find((l) => l.id === j);
580
+ ), ce = p && i && Bt(
581
+ /* @__PURE__ */ o.jsx(oo, { dropAnimation: null, children: ne ? (() => {
582
+ const e = M.getRowModel().rows.find((l) => l.id === i);
580
583
  if (!e) return null;
581
- const p = M.getTotalSize();
584
+ const d = M.getTotalSize();
582
585
  return /* @__PURE__ */ o.jsx(
583
586
  "table",
584
587
  {
585
588
  style: {
586
- width: p,
589
+ width: d,
587
590
  borderCollapse: "collapse",
588
591
  backgroundColor: "var(--md-sys-color-surface-container-high)",
589
592
  boxShadow: "0 0 10px rgba(0,0,0,0.2)",
590
- ...Dt
593
+ ...Et
591
594
  },
592
- children: /* @__PURE__ */ o.jsx("tbody", { children: /* @__PURE__ */ o.jsxs(Ht, { style: { display: "flex", userSelect: "none" }, children: [
593
- X ? /* @__PURE__ */ o.jsx("td", { style: { display: "flex", width: X } }) : null,
594
- st.getVirtualItems().map((l) => {
595
- const r = e.getVisibleCells()[l.index];
596
- if (!r) return null;
595
+ children: /* @__PURE__ */ o.jsx("tbody", { children: /* @__PURE__ */ o.jsxs(At, { style: { display: "flex", userSelect: "none" }, children: [
596
+ Y ? /* @__PURE__ */ o.jsx("td", { style: { display: "flex", width: Y } }) : null,
597
+ mt.getVirtualItems().map((l) => {
598
+ const s = e.getVisibleCells()[l.index];
599
+ if (!s) return null;
597
600
  const z = {
598
- ...tt(r.column),
599
- width: et(e.id, r.column.id),
601
+ ...ot(s.column),
602
+ width: it(e.id, s.column.id),
600
603
  display: "flex",
601
604
  alignItems: "center",
602
- height: 40
605
+ height: Lt
603
606
  };
604
- return r.column.id === $ ? /* @__PURE__ */ o.jsxs(
605
- ct,
607
+ return s.column.id === B ? /* @__PURE__ */ o.jsxs(
608
+ gt,
606
609
  {
607
610
  style: { ...z, justifyContent: "center" },
608
- className: D(r.column.id),
611
+ className: E(s.column.id),
609
612
  children: [
610
- /* @__PURE__ */ o.jsx(At, { icon: "drag_handle" }),
613
+ /* @__PURE__ */ o.jsx(Ft, { icon: "drag_handle" }),
611
614
  " "
612
615
  ]
613
616
  },
614
- `overlay-drag-${r.id}`
617
+ `overlay-drag-${s.id}`
615
618
  ) : /* @__PURE__ */ o.jsx(
616
- Bt,
619
+ _t,
617
620
  {
618
- cell: r,
619
- cellId: `overlay-${gt(e.id, r.column.id)}`,
621
+ cell: s,
622
+ cellId: `overlay-${ft(e.id, s.column.id)}`,
620
623
  rowId: e.id,
621
- showHierarchy: O
624
+ showHierarchy: k
622
625
  },
623
- `overlay-cell-${r.id}`
626
+ `overlay-cell-${s.id}`
624
627
  );
625
628
  }),
626
- Y ? /* @__PURE__ */ o.jsx("td", { style: { display: "flex", width: Y } }) : null
629
+ J ? /* @__PURE__ */ o.jsx("td", { style: { display: "flex", width: J } }) : null
627
630
  ] }) })
628
631
  }
629
632
  );
630
633
  })() : null }),
631
634
  document.body
632
635
  );
633
- return d ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
634
- Et,
635
- de
636
- ] }) : Et;
637
- }, no = ({
636
+ return p ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
637
+ Nt,
638
+ ce
639
+ ] }) : Nt;
640
+ }, lo = ({
638
641
  columnVirtualizer: t,
639
- table: a,
642
+ table: m,
640
643
  virtualPaddingLeft: n,
641
- virtualPaddingRight: c,
642
- isLoading: y,
643
- readOnlyColumns: g,
644
- sortableRows: x,
645
- ...S
646
- }) => /* @__PURE__ */ o.jsx(Re, { ...S, children: a.getHeaderGroups().map((R) => /* @__PURE__ */ o.jsx(
647
- ro,
644
+ virtualPaddingRight: C,
645
+ isLoading: x,
646
+ readOnlyColumns: y,
647
+ sortableRows: b,
648
+ ...w
649
+ }) => /* @__PURE__ */ o.jsx(Te, { ...w, children: m.getHeaderGroups().map((S) => /* @__PURE__ */ o.jsx(
650
+ mo,
648
651
  {
649
652
  columnVirtualizer: t,
650
- headerGroup: R,
653
+ headerGroup: S,
651
654
  virtualPaddingLeft: n,
652
- virtualPaddingRight: c,
653
- isLoading: y,
654
- readOnlyColumns: g,
655
- sortableRows: x
655
+ virtualPaddingRight: C,
656
+ isLoading: x,
657
+ readOnlyColumns: y,
658
+ sortableRows: b
656
659
  },
657
- R.id
658
- )) }), ro = ({
660
+ S.id
661
+ )) }), mo = ({
659
662
  columnVirtualizer: t,
660
- headerGroup: a,
663
+ headerGroup: m,
661
664
  virtualPaddingLeft: n,
662
- virtualPaddingRight: c,
663
- isLoading: y,
664
- readOnlyColumns: g,
665
- sortableRows: x
665
+ virtualPaddingRight: C,
666
+ isLoading: x,
667
+ readOnlyColumns: y,
668
+ sortableRows: b
666
669
  }) => {
667
- const S = t.getVirtualItems();
668
- return /* @__PURE__ */ o.jsxs(je, { style: { display: "flex" }, children: [
670
+ const w = t.getVirtualItems();
671
+ return /* @__PURE__ */ o.jsxs(Me, { style: { display: "flex" }, children: [
669
672
  n ? (
670
673
  //fake empty column to the left for virtualization scroll padding
671
674
  /* @__PURE__ */ o.jsx("th", { style: { display: "flex", width: n } })
672
675
  ) : null,
673
- S.map((R) => {
674
- const i = a.headers[R.index];
676
+ w.map((S) => {
677
+ const r = m.headers[S.index];
675
678
  return /* @__PURE__ */ o.jsx(
676
- so,
679
+ ao,
677
680
  {
678
- header: i,
679
- isLoading: y,
680
- isReadOnly: g == null ? void 0 : g.includes(i.id),
681
- canSort: i.column.getCanSort(),
682
- canFilter: i.column.getCanFilter(),
683
- canHide: i.column.getCanHide(),
684
- canPin: i.column.getCanPin(),
685
- canResize: i.column.getCanResize(),
686
- sortableRows: x
681
+ header: r,
682
+ isLoading: x,
683
+ isReadOnly: y == null ? void 0 : y.includes(r.id),
684
+ canSort: r.column.getCanSort(),
685
+ canFilter: r.column.getCanFilter(),
686
+ canHide: r.column.getCanHide(),
687
+ canPin: r.column.getCanPin(),
688
+ canResize: r.column.getCanResize(),
689
+ sortableRows: b
687
690
  },
688
- i.id
691
+ r.id
689
692
  );
690
693
  }),
691
- c ? (
694
+ C ? (
692
695
  //fake empty column to the right for virtualization scroll padding
693
- /* @__PURE__ */ o.jsx("th", { style: { display: "flex", width: c } })
696
+ /* @__PURE__ */ o.jsx("th", { style: { display: "flex", width: C } })
694
697
  ) : null
695
- ] }, a.id);
696
- }, so = ({
698
+ ] }, m.id);
699
+ }, ao = ({
697
700
  header: t,
698
- isLoading: a,
701
+ isLoading: m,
699
702
  canFilter: n,
700
- canHide: c,
701
- canSort: y,
702
- canPin: g,
703
- canResize: x,
704
- isReadOnly: S,
705
- sortableRows: R
703
+ canHide: C,
704
+ canSort: x,
705
+ canPin: y,
706
+ canResize: b,
707
+ isReadOnly: w,
708
+ sortableRows: S
706
709
  }) => {
707
- const { column: i } = t, d = i.getIsSorted(), s = `column-header-menu-${i.id}`, { menuOpen: j } = He(), f = j === s;
710
+ const { column: r } = t, p = r.getIsSorted(), I = `column-header-menu-${r.id}`, { menuOpen: i } = Ae(), g = i === I;
708
711
  return /* @__PURE__ */ o.jsx(
709
- Te,
712
+ ze,
710
713
  {
711
- className: D(t.id, "shimmer-dark", {
712
- loading: a,
713
- "last-pinned-left": i.getIsPinned() === "left" && i.getIsLastColumn("left"),
714
- resizing: i.getIsResizing()
714
+ className: E(t.id, "shimmer-dark", {
715
+ loading: m,
716
+ "last-pinned-left": r.getIsPinned() === "left" && r.getIsLastColumn("left"),
717
+ resizing: r.getIsResizing()
715
718
  }),
716
719
  style: {
717
- ...tt(i),
718
- width: et("", i.id)
720
+ ...ot(r),
721
+ width: it("", r.id)
719
722
  },
720
- children: t.isPlaceholder ? null : /* @__PURE__ */ o.jsxs(Me, { className: D("bold", "header"), children: [
721
- Ot(i.columnDef.header, t.getContext()),
722
- S && /* @__PURE__ */ o.jsx(At, { icon: "lock", "data-tooltip": "You only have permission to read this column." }),
723
- /* @__PURE__ */ o.jsxs(ze, { className: "actions", $isOpen: f, children: [
724
- (c || g || y) && /* @__PURE__ */ o.jsx(
725
- De,
723
+ children: t.isPlaceholder ? null : /* @__PURE__ */ o.jsxs(Ie, { className: E("bold", "header"), children: [
724
+ kt(r.columnDef.header, t.getContext()),
725
+ w && /* @__PURE__ */ o.jsx(Ft, { icon: "lock", "data-tooltip": "You only have permission to read this column." }),
726
+ /* @__PURE__ */ o.jsxs(Pe, { className: "actions", $isOpen: g, children: [
727
+ (C || y || x) && /* @__PURE__ */ o.jsx(
728
+ Le,
726
729
  {
727
730
  className: "header-menu",
728
731
  header: t,
729
- canHide: c,
730
- canPin: g,
731
- canSort: y,
732
- isResizing: i.getIsResizing(),
733
- menuId: s,
734
- isOpen: f
732
+ canHide: C,
733
+ canPin: y,
734
+ canSort: x,
735
+ isResizing: r.getIsResizing(),
736
+ menuId: I,
737
+ isOpen: g
735
738
  }
736
739
  ),
737
- y && /* @__PURE__ */ o.jsx(
738
- Pe,
740
+ x && /* @__PURE__ */ o.jsx(
741
+ De,
739
742
  {
740
743
  icon: "sort",
741
- className: D("sort-button", { visible: d }),
744
+ className: E("sort-button", { visible: p }),
742
745
  style: {
743
- transform: d === "asc" ? "rotate(180deg) scaleX(-1)" : "none"
746
+ transform: p === "asc" ? "rotate(180deg) scaleX(-1)" : "none"
744
747
  },
745
- onClick: i.getToggleSortingHandler(),
746
- selected: !!i.getIsSorted()
748
+ onClick: r.getToggleSortingHandler(),
749
+ selected: !!r.getIsSorted()
747
750
  }
748
751
  )
749
752
  ] }),
750
- x && /* @__PURE__ */ o.jsx(
751
- Ie,
753
+ b && /* @__PURE__ */ o.jsx(
754
+ ve,
752
755
  {
753
- onDoubleClick: () => i.resetSize(),
756
+ onDoubleClick: () => r.resetSize(),
754
757
  onMouseDown: t.getResizeHandler(),
755
758
  onTouchStart: t.getResizeHandler(),
756
- className: D("resize-handle", {
757
- resizing: i.getIsResizing()
759
+ className: E("resize-handle", {
760
+ resizing: r.getIsResizing()
758
761
  })
759
762
  }
760
763
  )
@@ -762,271 +765,286 @@ const tt = (t) => {
762
765
  },
763
766
  t.id
764
767
  );
765
- }, lo = ({
768
+ }, po = ({
766
769
  columnVirtualizer: t,
767
- table: a,
770
+ table: m,
768
771
  tableContainerRef: n,
769
- showHierarchy: c,
770
- virtualPaddingLeft: y,
771
- virtualPaddingRight: g,
772
- attribs: x,
773
- onOpenNew: S,
774
- rowOrderIds: R,
775
- sortableRows: i,
776
- error: d,
777
- isGrouping: s
772
+ showHierarchy: C,
773
+ virtualPaddingLeft: x,
774
+ virtualPaddingRight: y,
775
+ attribs: b,
776
+ onOpenNew: w,
777
+ rowOrderIds: S,
778
+ sortableRows: r,
779
+ error: p,
780
+ isGrouping: I,
781
+ getRowHeight: i,
782
+ defaultRowHeight: g
778
783
  }) => {
779
- const j = v(() => a.getAllColumns().map((P) => {
780
- const F = P.id, L = P.columnDef.header;
781
- return typeof L == "string" || typeof L == "number" ? { label: L, id: F } : null;
782
- }).filter(Boolean), [a.getAllColumns()]), T = Ve({ attribs: x, onOpenNew: S, headerLabels: j }).handleTableBodyContextMenu, { handlePreFetchTasks: E } = Ae(), { rows: m } = a.getRowModel(), I = ce({
783
- count: m.length,
784
- estimateSize: () => 40,
785
- //estimate row height for accurate scrollbar dragging
784
+ const H = D(() => m.getAllColumns().map((j) => {
785
+ const v = j.id, N = j.columnDef.header;
786
+ return typeof N == "string" || typeof N == "number" ? { label: N, id: v } : null;
787
+ }).filter(Boolean), [m.getAllColumns()]), R = Be({ attribs: b, onOpenNew: w, headerLabels: H }).handleTableBodyContextMenu, { handlePreFetchTasks: f } = Fe(), { rows: P } = m.getRowModel(), u = fe({
788
+ count: P.length,
789
+ estimateSize: (a) => {
790
+ const L = P[a];
791
+ return L ? i(L.original) : g;
792
+ },
786
793
  getScrollElement: () => n.current,
787
794
  //measure dynamic row height, except in firefox because it measures table border height incorrectly
788
- measureElement: typeof window < "u" && navigator.userAgent.indexOf("Firefox") === -1 ? (u) => u == null ? void 0 : u.getBoundingClientRect().height : void 0,
795
+ measureElement: typeof window < "u" && navigator.userAgent.indexOf("Firefox") === -1 ? (a) => a == null ? void 0 : a.getBoundingClientRect().height : void 0,
789
796
  overscan: 5
790
- }), h = I.getVirtualItems(), k = Z(
791
- (u) => {
792
- u && I.measureElement(u);
797
+ }), $ = u.getVirtualItems();
798
+ tt(() => {
799
+ const a = setTimeout(() => {
800
+ u.measure();
801
+ }, 100);
802
+ return () => clearTimeout(a);
803
+ }, [g, u]);
804
+ const _ = et(
805
+ (a) => {
806
+ a && u.measureElement(a);
793
807
  },
794
- [I]
808
+ [u]
795
809
  );
796
- Be();
797
- const A = /* @__PURE__ */ o.jsx(
810
+ _e();
811
+ const V = /* @__PURE__ */ o.jsx(
798
812
  "tbody",
799
813
  {
800
814
  style: {
801
- height: `${I.getTotalSize()}px`,
815
+ height: `${u.getTotalSize()}px`,
802
816
  position: "relative",
803
817
  display: "grid"
804
818
  },
805
- onContextMenu: T,
806
- onMouseOver: (u) => {
807
- E(u);
819
+ onContextMenu: R,
820
+ onMouseOver: (a) => {
821
+ f(a);
808
822
  },
809
- children: h.map((u, V) => {
810
- const P = m[u.index];
811
- return P ? /* @__PURE__ */ o.jsx(
812
- mo,
823
+ children: $.map((a, L) => {
824
+ const j = P[a.index];
825
+ return j ? /* @__PURE__ */ o.jsx(
826
+ uo,
813
827
  {
814
- row: P,
815
- showHierarchy: c,
816
- visibleCells: P.getVisibleCells(),
828
+ row: j,
829
+ showHierarchy: C,
830
+ visibleCells: j.getVisibleCells(),
817
831
  virtualColumns: t.getVirtualItems(),
818
- paddingLeft: y,
819
- paddingRight: g,
820
- rowRef: k,
821
- dataIndex: u.index,
822
- offsetTop: u.start,
823
- sortableRows: i,
824
- isGrouping: s
832
+ paddingLeft: x,
833
+ paddingRight: y,
834
+ rowRef: _,
835
+ dataIndex: a.index,
836
+ offsetTop: a.start,
837
+ sortableRows: r,
838
+ isGrouping: I,
839
+ rowHeight: i(j.original)
825
840
  },
826
- P.id + V.toString()
827
- ) : (console.warn("Virtualized row data not found for index:", u.index), null);
841
+ j.id + L.toString()
842
+ ) : (console.warn("Virtualized row data not found for index:", a.index), null);
828
843
  })
829
844
  }
830
845
  );
831
- return d ? n.current && Vt(
832
- /* @__PURE__ */ o.jsx(Ee, { message: "No items found", error: d }),
846
+ return p ? n.current && Bt(
847
+ /* @__PURE__ */ o.jsx(Ne, { message: "No items found", error: p }),
833
848
  n.current
834
- ) : i ? /* @__PURE__ */ o.jsx(to, { items: R, strategy: eo, children: A }) : A;
835
- }, mo = ({
849
+ ) : r ? /* @__PURE__ */ o.jsx(io, { items: S, strategy: no, children: V }) : V;
850
+ }, uo = ({
836
851
  row: t,
837
- showHierarchy: a,
852
+ showHierarchy: m,
838
853
  visibleCells: n,
839
- virtualColumns: c,
840
- paddingLeft: y,
841
- paddingRight: g,
842
- rowRef: x,
843
- dataIndex: S,
844
- offsetTop: R,
845
- sortableRows: i,
846
- isGrouping: d = !1
854
+ virtualColumns: C,
855
+ paddingLeft: x,
856
+ paddingRight: y,
857
+ rowRef: b,
858
+ dataIndex: w,
859
+ offsetTop: S,
860
+ sortableRows: r,
861
+ isGrouping: p = !1,
862
+ rowHeight: I
847
863
  }) => {
848
- const s = i ? oo({ id: t.id }) : null, j = Z(
864
+ const i = r ? ro({ id: t.id }) : null, g = et(
849
865
  (T) => {
850
- s && s.setNodeRef(T), s && s.isDragging || x(T);
866
+ i && i.setNodeRef(T), i && i.isDragging || b(T);
851
867
  },
852
- [s, x]
853
- ), f = {
868
+ [i, b]
869
+ ), H = {
854
870
  position: "absolute",
855
871
  // Use absolute positioning for virtualized items
856
- top: R,
872
+ top: S,
857
873
  // Position based on virtualizer's calculation (virtualRow.start)
858
874
  left: 0,
859
875
  // Span full width of the relative parent (tbody)
860
876
  right: 0,
861
877
  // Span full width
862
- height: 40,
863
- // Explicit height can be beneficial for absolute positioning
864
- zIndex: s && s.isDragging ? 0 : 1,
878
+ height: I,
879
+ // Use dynamic row height
880
+ zIndex: i && i.isDragging ? 0 : 1,
865
881
  // Ensure dragged item is above others
866
882
  display: "flex",
867
883
  // Styled.TR is display:flex
868
- transform: s && s.transform ? io.Transform.toString(s.transform) : void 0,
884
+ transform: i && i.transform ? so.Transform.toString(i.transform) : void 0,
869
885
  // Apply dnd-kit's transform for drag effect
870
- transition: s && s.transition ? s.transition : void 0,
871
- visibility: s && s.isDragging ? "hidden" : "visible"
886
+ transition: i && i.transition ? i.transition : void 0,
887
+ visibility: i && i.isDragging ? "hidden" : "visible"
872
888
  // Hide the row being dragged
873
889
  };
874
890
  return /* @__PURE__ */ o.jsxs(
875
- Ht,
891
+ At,
876
892
  {
877
- ref: j,
878
- "data-index": S,
879
- style: f,
880
- className: D({ "group-row": t.original.group }),
893
+ ref: g,
894
+ "data-index": w,
895
+ style: H,
896
+ className: E({ "group-row": t.original.group }),
881
897
  children: [
882
- y ? (
898
+ x ? (
883
899
  //fake empty column to the left for virtualization scroll padding
884
- /* @__PURE__ */ o.jsx("td", { style: { display: "flex", width: y } })
900
+ /* @__PURE__ */ o.jsx("td", { style: { display: "flex", width: x } })
885
901
  ) : null,
886
- c.map((T, E) => {
887
- const m = n[T.index];
888
- if (!m) return null;
889
- const I = gt(t.id, m.column.id);
890
- return m.column.id === $ ? /* @__PURE__ */ o.jsx(
891
- ct,
902
+ C.map((T, R) => {
903
+ const f = n[T.index];
904
+ if (!f) return null;
905
+ const P = ft(t.id, f.column.id);
906
+ return f.column.id === B ? /* @__PURE__ */ o.jsx(
907
+ gt,
892
908
  {
893
909
  style: {
894
- ...tt(m.column),
895
- width: et(t.id, m.column.id),
910
+ ...ot(f.column),
911
+ width: it(t.id, f.column.id),
896
912
  display: "flex",
897
913
  alignItems: "center",
898
914
  justifyContent: "center",
899
- height: 40,
915
+ height: I,
900
916
  pointerEvents: "all",
901
917
  cursor: "grab"
902
918
  },
903
- className: D(m.column.id, {
904
- "last-pinned-left": m.column.getIsPinned() === "left" && m.column.getIsLastColumn("left")
919
+ className: E(f.column.id, {
920
+ "last-pinned-left": f.column.getIsPinned() === "left" && f.column.getIsLastColumn("left")
905
921
  }),
906
- onMouseDown: (h) => h.stopPropagation(),
907
- onMouseOver: (h) => h.stopPropagation(),
908
- onDoubleClick: (h) => h.stopPropagation(),
909
- onContextMenu: (h) => {
910
- h.preventDefault(), h.stopPropagation();
922
+ onMouseDown: (u) => u.stopPropagation(),
923
+ onMouseOver: (u) => u.stopPropagation(),
924
+ onDoubleClick: (u) => u.stopPropagation(),
925
+ onContextMenu: (u) => {
926
+ u.preventDefault(), u.stopPropagation();
911
927
  },
912
928
  children: /* @__PURE__ */ o.jsx(
913
- ve,
929
+ Ee,
914
930
  {
915
- attributes: s == null ? void 0 : s.attributes,
916
- listeners: s == null ? void 0 : s.listeners
931
+ attributes: i == null ? void 0 : i.attributes,
932
+ listeners: i == null ? void 0 : i.listeners
917
933
  }
918
934
  )
919
935
  },
920
- m.id + E.toString()
936
+ f.id + R.toString()
921
937
  ) : /* @__PURE__ */ o.jsx(
922
- Bt,
938
+ _t,
923
939
  {
924
- cell: m,
925
- cellId: I,
940
+ cell: f,
941
+ cellId: P,
926
942
  rowId: t.id,
927
- showHierarchy: a,
928
- sortableRows: i
943
+ showHierarchy: m,
944
+ sortableRows: r,
945
+ rowHeight: I
929
946
  },
930
- m.id + E.toString()
947
+ f.id + R.toString()
931
948
  );
932
949
  }),
933
- g ? (
950
+ y ? (
934
951
  //fake empty column to the right for virtualization scroll padding
935
- /* @__PURE__ */ o.jsx("td", { style: { display: "flex", width: g } })
952
+ /* @__PURE__ */ o.jsx("td", { style: { display: "flex", width: y } })
936
953
  ) : null
937
954
  ]
938
955
  }
939
956
  );
940
- }, ao = ({
957
+ }, co = ({
941
958
  cell: t,
942
- rowId: a,
959
+ rowId: m,
943
960
  cellId: n,
944
- className: c,
945
- showHierarchy: y,
946
- sortableRows: g,
947
- ...x
961
+ className: C,
962
+ showHierarchy: x,
963
+ sortableRows: y,
964
+ rowHeight: b,
965
+ ...w
948
966
  }) => {
949
- const { getEntityById: S, onOpenPlayer: R } = Ft(), {
950
- isCellSelected: i,
951
- isCellFocused: d,
952
- startSelection: s,
953
- extendSelection: j,
954
- endSelection: f,
967
+ const { getEntityById: S, onOpenPlayer: r } = $t(), {
968
+ isCellSelected: p,
969
+ isCellFocused: I,
970
+ startSelection: i,
971
+ extendSelection: g,
972
+ endSelection: H,
955
973
  selectCell: T,
956
- focusCell: E,
957
- getCellBorderClasses: m,
958
- clearSelection: I,
959
- selectedCells: h
960
- } = ut(), { isRowSelected: k } = Ne(), { isEditing: A, setEditingCellId: u } = kt(), V = m(n), F = t.column.getIsPinned() === "left" && t.column.getIsLastColumn("left"), L = t.column.id === H, N = t.row.original.entityType === "group", ot = h.size > 1;
974
+ focusCell: R,
975
+ getCellBorderClasses: f,
976
+ clearSelection: P,
977
+ selectedCells: u
978
+ } = ct(), { isRowSelected: $ } = He(), { isEditing: _, setEditingCellId: V } = Vt(), a = f(n), j = t.column.getIsPinned() === "left" && t.column.getIsLastColumn("left"), v = t.column.id === A, N = t.row.original.entityType === "group", nt = u.size > 1;
961
979
  return /* @__PURE__ */ o.jsx(
962
- ct,
980
+ gt,
963
981
  {
964
- ...x,
982
+ ...w,
965
983
  tabIndex: 0,
966
- $isLastPinned: F,
967
- className: D(
984
+ $isLastPinned: j,
985
+ className: E(
968
986
  t.column.id,
969
987
  {
970
- selected: i(n),
971
- focused: d(n),
972
- editing: A(n),
973
- "last-pinned-left": F,
974
- "selected-row": k(a),
988
+ selected: p(n),
989
+ focused: I(n),
990
+ editing: _(n),
991
+ "last-pinned-left": j,
992
+ "selected-row": $(m),
975
993
  task: t.row.original.entityType === "task",
976
- "multiple-selected": ot
994
+ "multiple-selected": nt
977
995
  },
978
- c,
979
- ...V
996
+ C,
997
+ ...a
980
998
  ),
981
999
  style: {
982
- ...tt(t.column),
983
- width: et(t.row.id, t.column.id),
984
- height: 40
1000
+ ...ot(t.column),
1001
+ width: it(t.row.id, t.column.id),
1002
+ height: b
985
1003
  },
986
- onMouseDown: (b) => {
987
- if (b.button !== 0) return;
988
- const C = b.target;
989
- if (C.closest(".expander")) return;
990
- if (C.closest("." + Qe)) {
991
- i(n) || (T(n, !1, !1), E(n)), u(n);
1004
+ onMouseDown: (c) => {
1005
+ if (c.button !== 0) return;
1006
+ const h = c.target;
1007
+ if (h.closest(".expander")) return;
1008
+ if (h.closest("." + eo)) {
1009
+ p(n) || (T(n, !1, !1), R(n)), V(n);
992
1010
  return;
993
1011
  }
994
- if (C.closest(".options")) return;
995
- if (N && t.column.id !== "name") return I();
996
- const w = b.metaKey || b.ctrlKey || L;
997
- b.shiftKey ? T(n, w, !0) : s(n, w);
1012
+ if (h.closest(".options")) return;
1013
+ if (N && t.column.id !== "name") return P();
1014
+ const O = c.metaKey || c.ctrlKey || v;
1015
+ c.shiftKey ? T(n, O, !0) : i(n, O);
998
1016
  },
999
- onMouseOver: (b) => {
1000
- b.buttons === 1 && j(n, L);
1017
+ onMouseOver: (c) => {
1018
+ c.buttons === 1 && g(n, v);
1001
1019
  },
1002
1020
  onMouseUp: () => {
1003
- f(n);
1021
+ H(n);
1004
1022
  },
1005
- onDoubleClick: (b) => {
1006
- if (t.column.id === "name" && !b.target.closest(".expander") && !N) {
1007
- const C = gt(t.row.id, H);
1008
- if (!i(C)) {
1009
- const w = b.metaKey || b.ctrlKey;
1010
- T(C, w, !1);
1023
+ onDoubleClick: (c) => {
1024
+ if (t.column.id === "name" && !c.target.closest(".expander") && !N) {
1025
+ const h = ft(t.row.id, A);
1026
+ if (!p(h)) {
1027
+ const O = c.metaKey || c.ctrlKey;
1028
+ T(h, O, !1);
1011
1029
  }
1012
1030
  }
1013
- if (t.column.id === "thumbnail" && R) {
1014
- const C = S(t.row.original.entityId || t.row.id);
1015
- if (C) {
1016
- const w = Ye(C);
1017
- R(w, { quickView: !0 });
1031
+ if (t.column.id === "thumbnail" && r) {
1032
+ const h = S(t.row.original.entityId || t.row.id);
1033
+ if (h) {
1034
+ const O = Ze(h);
1035
+ r(O, { quickView: !0 });
1018
1036
  }
1019
1037
  }
1020
1038
  },
1021
- onContextMenu: (b) => {
1022
- b.preventDefault(), i(n) || T(n, !1, !1);
1039
+ onContextMenu: (c) => {
1040
+ c.preventDefault(), p(n) || T(n, !1, !1);
1023
1041
  },
1024
- children: Ot(t.column.columnDef.cell, t.getContext())
1042
+ children: kt(t.column.columnDef.cell, t.getContext())
1025
1043
  }
1026
1044
  );
1027
- }, Bt = ue(ao);
1045
+ }, _t = ge(co);
1028
1046
  export {
1029
- $ as DRAG_HANDLE_COLUMN_ID,
1030
- Ts as ProjectTreeTable
1047
+ B as DRAG_HANDLE_COLUMN_ID,
1048
+ Ps as ProjectTreeTable
1031
1049
  };
1032
1050
  //# sourceMappingURL=ProjectTreeTable.es.js.map