@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.
- package/dist/_virtual/index.cjs5.js +1 -1
- package/dist/_virtual/index.cjs6.js +1 -1
- package/dist/_virtual/index.es5.js +5 -2
- package/dist/_virtual/index.es5.js.map +1 -1
- package/dist/_virtual/index.es6.js +2 -5
- package/dist/_virtual/index.es6.js.map +1 -1
- package/dist/node_modules/rehype-prism-plus/dist/index.es.cjs.js +1 -1
- package/dist/node_modules/rehype-prism-plus/dist/index.es.es.js +1 -1
- package/dist/node_modules/remove-accents/index.cjs.js +1 -1
- package/dist/node_modules/remove-accents/index.es.js +1 -1
- package/dist/shared/src/api/generated/access.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/access.es.js.map +1 -1
- package/dist/shared/src/api/generated/authentication.cjs.js +1 -1
- package/dist/shared/src/api/generated/authentication.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/authentication.es.js +9 -6
- package/dist/shared/src/api/generated/authentication.es.js.map +1 -1
- package/dist/shared/src/api/generated/entityLists.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/entityLists.es.js.map +1 -1
- package/dist/shared/src/api/generated/folders.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/folders.es.js.map +1 -1
- package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
- package/dist/shared/src/api/generated/graphqlLinks.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/graphqlLinks.es.js.map +1 -1
- package/dist/shared/src/api/generated/links.cjs.js +1 -1
- package/dist/shared/src/api/generated/links.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/links.es.js +13 -5
- package/dist/shared/src/api/generated/links.es.js.map +1 -1
- package/dist/shared/src/api/generated/onboarding.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/onboarding.es.js.map +1 -1
- package/dist/shared/src/api/generated/operations.cjs.js +1 -1
- package/dist/shared/src/api/generated/operations.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/operations.es.js +16 -0
- package/dist/shared/src/api/generated/operations.es.js.map +1 -1
- package/dist/shared/src/api/generated/products.cjs.js +1 -1
- package/dist/shared/src/api/generated/products.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/products.es.js +6 -3
- package/dist/shared/src/api/generated/products.es.js.map +1 -1
- package/dist/shared/src/api/generated/projects.cjs.js +1 -1
- package/dist/shared/src/api/generated/projects.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/projects.es.js +19 -0
- package/dist/shared/src/api/generated/projects.es.js.map +1 -1
- package/dist/shared/src/api/generated/system.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/system.es.js.map +1 -1
- package/dist/shared/src/api/generated/tasks.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/tasks.es.js.map +1 -1
- package/dist/shared/src/api/generated/users.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/users.es.js.map +1 -1
- package/dist/shared/src/api/generated/versions.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/versions.es.js.map +1 -1
- package/dist/shared/src/api/generated/views.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/views.es.js.map +1 -1
- package/dist/shared/src/api/queries/entityLists/listFolders.cjs.js +1 -1
- package/dist/shared/src/api/queries/entityLists/listFolders.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/entityLists/listFolders.es.js +96 -59
- package/dist/shared/src/api/queries/entityLists/listFolders.es.js.map +1 -1
- package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js +1 -1
- package/dist/shared/src/components/AttributeEditor/AttributeEditor.cjs.js.map +1 -1
- package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js +15 -10
- package/dist/shared/src/components/AttributeEditor/AttributeEditor.es.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.cjs.js +60 -0
- package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.cjs.js.map +1 -0
- package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.es.js +332 -0
- package/dist/shared/src/components/ProjectTableSettings/RowHeightSettings.es.js.map +1 -0
- package/dist/shared/src/components/SettingsPanel/SettingsPanel.cjs.js +4 -4
- package/dist/shared/src/components/SettingsPanel/SettingsPanel.cjs.js.map +1 -1
- package/dist/shared/src/components/SettingsPanel/SettingsPanel.es.js +37 -33
- package/dist/shared/src/components/SettingsPanel/SettingsPanel.es.js.map +1 -1
- package/dist/shared/src/components/Thumbnail/Thumbnail.styled.cjs.js +3 -5
- package/dist/shared/src/components/Thumbnail/Thumbnail.styled.cjs.js.map +1 -1
- package/dist/shared/src/components/Thumbnail/Thumbnail.styled.es.js +4 -6
- package/dist/shared/src/components/Thumbnail/Thumbnail.styled.es.js.map +1 -1
- package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.cjs.js +1 -2
- package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.cjs.js.map +1 -1
- package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.es.js +0 -1
- package/dist/shared/src/components/ThumbnailSimple/ThumbnailSimple.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +555 -537
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js +0 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js +4 -5
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +92 -91
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsContext.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js +126 -108
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.cjs.js +2 -0
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.cjs.js.map +1 -0
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.es.js +9 -0
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useDynamicRowHeight.es.js.map +1 -0
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js +2 -2
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js +49 -48
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js +38 -9
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js +74 -39
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js +24 -15
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js +71 -59
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js +6 -6
- package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js +12 -12
- package/dist/shared/src/containers/ProjectTreeTable/widgets/ThumbnailWidget.es.js.map +1 -1
- package/dist/shared/src/util/columnConfigConverter.cjs.js +1 -1
- package/dist/shared/src/util/columnConfigConverter.cjs.js.map +1 -1
- package/dist/shared/src/util/columnConfigConverter.es.js +35 -33
- package/dist/shared/src/util/columnConfigConverter.es.js.map +1 -1
- package/dist/types/api/generated/access.d.ts +6 -0
- package/dist/types/api/generated/authentication.d.ts +6 -0
- package/dist/types/api/generated/entityLists.d.ts +7 -7
- package/dist/types/api/generated/folders.d.ts +2 -2
- package/dist/types/api/generated/graphql.d.ts +3 -1
- package/dist/types/api/generated/graphqlLinks.d.ts +21 -15
- package/dist/types/api/generated/links.d.ts +4 -0
- package/dist/types/api/generated/onboarding.d.ts +3 -0
- package/dist/types/api/generated/operations.d.ts +22 -1
- package/dist/types/api/generated/products.d.ts +23 -0
- package/dist/types/api/generated/projects.d.ts +63 -0
- package/dist/types/api/generated/representations.d.ts +1 -0
- package/dist/types/api/generated/system.d.ts +9 -2
- package/dist/types/api/generated/tasks.d.ts +1 -0
- package/dist/types/api/generated/users.d.ts +1 -1
- package/dist/types/api/generated/versions.d.ts +1 -0
- package/dist/types/api/generated/views.d.ts +50 -9
- package/dist/types/api/queries/authentication/getAuthentication.d.ts +1 -0
- package/dist/types/api/queries/overview/updateOverview.d.ts +2 -0
- package/dist/types/api/queries/project/getProject.d.ts +4 -0
- package/dist/types/components/ProjectTableSettings/RowHeightSettings.d.ts +3 -0
- package/dist/types/containers/ProjectTreeTable/context/ColumnSettingsContext.d.ts +4 -0
- package/dist/types/containers/ProjectTreeTable/hooks/useDynamicRowHeight.d.ts +11 -0
- package/dist/types/containers/ProjectTreeTable/widgets/EntityNameWidget.d.ts +2 -1
- package/dist/types/containers/ProjectTreeTable/widgets/EnumCellValue.d.ts +2 -1
- 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
|
|
3
|
-
import { useVirtualizer as
|
|
4
|
-
import { flexRender as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { TableCell as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
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
|
|
13
|
-
import { EmptyPlaceholder as
|
|
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
|
|
16
|
-
import { useSelectionCellsContext as
|
|
17
|
-
import { ClipboardProvider as
|
|
18
|
-
import { useSelectedRowsContext as
|
|
19
|
-
import { useColumnSettingsContext as
|
|
20
|
-
import { useMenuContext as
|
|
21
|
-
import
|
|
22
|
-
import { usePrefetchFolderTasks as
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
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
|
|
30
|
+
import { Icon as Ft } from "@ynput/ayon-react-components";
|
|
30
31
|
/* empty css */
|
|
31
|
-
import { createPortal as
|
|
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
|
|
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
|
|
75
|
-
import { getTableFieldOptions as
|
|
76
|
-
import { getReadOnlyLists as
|
|
77
|
-
import { getCellId as
|
|
78
|
-
import { getEntityViewierIds as
|
|
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
|
|
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
|
|
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
|
|
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
|
|
178
|
-
import { SortableContext as
|
|
179
|
-
import { CSS as
|
|
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
|
|
231
|
-
const
|
|
231
|
+
const ot = (t) => {
|
|
232
|
+
const m = t.getIsPinned(), n = t.id !== A && t.id !== B ? -30 : 0;
|
|
232
233
|
return {
|
|
233
|
-
left:
|
|
234
|
+
left: m === "left" ? `${t.getStart("left") + n}px` : void 0,
|
|
234
235
|
// Removed offset
|
|
235
|
-
right:
|
|
236
|
-
position:
|
|
236
|
+
right: m === "right" ? `${t.getAfter("right")}px` : void 0,
|
|
237
|
+
position: m ? "sticky" : "relative",
|
|
237
238
|
width: t.getSize(),
|
|
238
|
-
zIndex:
|
|
239
|
+
zIndex: m ? 100 : 0
|
|
239
240
|
};
|
|
240
|
-
},
|
|
241
|
+
}, it = (t, m) => `calc(var(--col-${m}-size) * 1px)`, B = "drag-handle", Ps = ({
|
|
241
242
|
scope: t,
|
|
242
|
-
sliceId:
|
|
243
|
+
sliceId: m,
|
|
243
244
|
onScroll: n,
|
|
244
|
-
onScrollBottom:
|
|
245
|
+
onScrollBottom: C,
|
|
245
246
|
// when the user scrolls to the bottom of the table, this callback is called
|
|
246
|
-
onOpenNew:
|
|
247
|
-
readOnly:
|
|
248
|
-
excludedColumns:
|
|
249
|
-
extraColumns:
|
|
250
|
-
isLoading:
|
|
251
|
-
clientSorting:
|
|
252
|
-
sortableRows:
|
|
253
|
-
onRowReorder:
|
|
254
|
-
dndActiveId:
|
|
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:
|
|
257
|
-
...
|
|
257
|
+
pt: g,
|
|
258
|
+
...H
|
|
258
259
|
}) => {
|
|
259
|
-
var
|
|
260
|
+
var Ot;
|
|
260
261
|
const {
|
|
261
|
-
columnVisibility:
|
|
262
|
-
columnPinning:
|
|
263
|
-
columnOrder:
|
|
264
|
-
columnSizing:
|
|
265
|
-
setAllColumns:
|
|
266
|
-
sorting:
|
|
267
|
-
sortingOnChange:
|
|
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:
|
|
270
|
-
columnVisibilityOnChange:
|
|
271
|
-
columnOrderOnChange:
|
|
272
|
-
groupBy:
|
|
273
|
-
} =
|
|
274
|
-
projectInfo:
|
|
275
|
-
tableData:
|
|
276
|
-
attribFields:
|
|
277
|
-
entitiesMap:
|
|
278
|
-
users:
|
|
279
|
-
isLoading:
|
|
280
|
-
error:
|
|
281
|
-
isInitialized:
|
|
282
|
-
expanded:
|
|
283
|
-
projectName:
|
|
284
|
-
updateExpanded:
|
|
285
|
-
toggleExpandAll:
|
|
286
|
-
showHierarchy:
|
|
287
|
-
fetchNextPage:
|
|
288
|
-
scopes:
|
|
289
|
-
getEntityById:
|
|
290
|
-
} =
|
|
291
|
-
statuses:
|
|
292
|
-
folderTypes:
|
|
293
|
-
taskTypes:
|
|
294
|
-
tags:
|
|
295
|
-
linkTypes:
|
|
296
|
-
} =
|
|
297
|
-
() =>
|
|
298
|
-
users:
|
|
299
|
-
statuses:
|
|
300
|
-
folderTypes:
|
|
301
|
-
taskTypes:
|
|
302
|
-
tags:
|
|
303
|
-
scopes:
|
|
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
|
-
[
|
|
306
|
-
),
|
|
307
|
-
var
|
|
308
|
-
const e = ((
|
|
309
|
-
|
|
310
|
-
|
|
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:
|
|
313
|
-
}, []),
|
|
314
|
-
() =>
|
|
315
|
-
[
|
|
316
|
-
), { selectedCells:
|
|
317
|
-
async (e,
|
|
318
|
-
const { selection: l = [] } =
|
|
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
|
-
|
|
321
|
+
s.push({ ...e, id: e.rowId });
|
|
321
322
|
else {
|
|
322
|
-
const { field: z, value:
|
|
323
|
-
for (const
|
|
324
|
-
const { colId:
|
|
325
|
-
if (!
|
|
326
|
-
console.warn(`Entity with ID ${
|
|
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
|
-
(!(
|
|
330
|
+
(!(F != null && F.includes("attrib_")) || (F == null ? void 0 : F.replace("attrib_", "")) === z) && Z && s.push({
|
|
330
331
|
field: z,
|
|
331
|
-
rowId:
|
|
332
|
-
id:
|
|
333
|
-
value:
|
|
334
|
-
isAttrib:
|
|
335
|
-
type:
|
|
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 (!
|
|
340
|
-
console.warn("No entities to update, skipping updateEntities call."),
|
|
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
|
|
344
|
+
await Pt(s, !0);
|
|
344
345
|
},
|
|
345
|
-
[
|
|
346
|
-
),
|
|
347
|
-
() =>
|
|
348
|
-
[
|
|
349
|
-
),
|
|
350
|
-
const e =
|
|
351
|
-
attribs:
|
|
352
|
-
links:
|
|
353
|
-
showHierarchy:
|
|
354
|
-
options:
|
|
355
|
-
extraColumns:
|
|
356
|
-
excluded:
|
|
357
|
-
groupBy:
|
|
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
|
|
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
|
-
}, [
|
|
377
|
-
|
|
378
|
-
const e =
|
|
379
|
-
|
|
380
|
-
}, [
|
|
381
|
-
const M =
|
|
382
|
-
data:
|
|
383
|
-
columns:
|
|
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:
|
|
396
|
-
getFilteredRowModel:
|
|
397
|
-
getExpandedRowModel:
|
|
396
|
+
getCoreRowModel: we(),
|
|
397
|
+
getFilteredRowModel: be(),
|
|
398
|
+
getExpandedRowModel: xe(),
|
|
398
399
|
filterFromLeafRows: !0,
|
|
399
400
|
// EXPANDABLE
|
|
400
|
-
onExpandedChange:
|
|
401
|
+
onExpandedChange: Ct,
|
|
401
402
|
// SORTING
|
|
402
403
|
enableSorting: !0,
|
|
403
|
-
getSortedRowModel:
|
|
404
|
+
getSortedRowModel: ye(),
|
|
404
405
|
sortDescFirst: !1,
|
|
405
|
-
manualSorting: !
|
|
406
|
-
onSortingChange:
|
|
406
|
+
manualSorting: !r,
|
|
407
|
+
onSortingChange: _,
|
|
407
408
|
columnResizeMode: "onChange",
|
|
408
409
|
onColumnPinningChange: V,
|
|
409
|
-
onColumnSizingChange:
|
|
410
|
-
onColumnVisibilityChange:
|
|
411
|
-
onColumnOrderChange:
|
|
410
|
+
onColumnSizingChange: a,
|
|
411
|
+
onColumnVisibilityChange: L,
|
|
412
|
+
onColumnOrderChange: j,
|
|
412
413
|
// @ts-ignore
|
|
413
|
-
filterFns:
|
|
414
|
+
filterFns: Ce,
|
|
414
415
|
state: {
|
|
415
|
-
expanded:
|
|
416
|
-
sorting:
|
|
416
|
+
expanded: Ut,
|
|
417
|
+
sorting: $,
|
|
417
418
|
columnPinning: (() => {
|
|
418
419
|
const e = [];
|
|
419
|
-
|
|
420
|
-
const
|
|
421
|
-
(
|
|
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(...
|
|
424
|
+
return e.push(...d), {
|
|
424
425
|
left: [...new Set(e)],
|
|
425
|
-
right:
|
|
426
|
+
right: R.right
|
|
426
427
|
};
|
|
427
428
|
})(),
|
|
428
|
-
columnSizing:
|
|
429
|
-
columnVisibility:
|
|
430
|
-
columnOrder:
|
|
429
|
+
columnSizing: P,
|
|
430
|
+
columnVisibility: T,
|
|
431
|
+
columnOrder: f
|
|
431
432
|
},
|
|
432
433
|
meta: {
|
|
433
|
-
projectName:
|
|
434
|
-
options:
|
|
435
|
-
readOnly:
|
|
436
|
-
updateEntities:
|
|
437
|
-
toggleExpandAll:
|
|
438
|
-
loadMoreTasks:
|
|
439
|
-
selection: Array.from(
|
|
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:
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
}, [
|
|
445
|
-
if (!
|
|
446
|
-
const e =
|
|
447
|
-
var
|
|
448
|
-
if (
|
|
449
|
-
const
|
|
450
|
-
return
|
|
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
|
-
|
|
453
|
-
}, [
|
|
454
|
-
const
|
|
455
|
-
visibleColumns:
|
|
456
|
-
tableContainerRef:
|
|
457
|
-
columnPinning:
|
|
458
|
-
columnSizing:
|
|
459
|
-
columnOrder:
|
|
460
|
-
}),
|
|
461
|
-
var l,
|
|
462
|
-
return (
|
|
463
|
-
}, {}), [
|
|
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),
|
|
466
|
-
const
|
|
467
|
-
if (
|
|
468
|
-
const { scrollHeight: l, scrollTop:
|
|
469
|
-
l -
|
|
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,
|
|
474
|
+
[n, C, k, v, W]
|
|
474
475
|
), {
|
|
475
|
-
isEntityPickerOpen:
|
|
476
|
-
handleMoveSubmit:
|
|
477
|
-
closeMoveDialog:
|
|
478
|
-
movingEntities:
|
|
479
|
-
handleMoveToRoot:
|
|
480
|
-
getDisabledFolderIds:
|
|
481
|
-
getDisabledMessage:
|
|
482
|
-
} =
|
|
483
|
-
projectName:
|
|
484
|
-
}),
|
|
485
|
-
|
|
486
|
-
const
|
|
487
|
-
|
|
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
|
-
[
|
|
490
|
+
[d]: !0
|
|
490
491
|
});
|
|
491
|
-
},
|
|
492
|
-
|
|
492
|
+
}, Nt = /* @__PURE__ */ o.jsxs(
|
|
493
|
+
Oe,
|
|
493
494
|
{
|
|
494
|
-
entitiesMap:
|
|
495
|
-
columnEnums: { ...
|
|
496
|
-
columnReadOnly:
|
|
497
|
-
visibleColumns:
|
|
495
|
+
entitiesMap: O,
|
|
496
|
+
columnEnums: { ...q, ...oe },
|
|
497
|
+
columnReadOnly: Zt,
|
|
498
|
+
visibleColumns: Dt,
|
|
498
499
|
children: [
|
|
499
|
-
/* @__PURE__ */ o.jsx(
|
|
500
|
-
|
|
500
|
+
/* @__PURE__ */ o.jsx(Re, { ...H, children: /* @__PURE__ */ o.jsx(
|
|
501
|
+
je,
|
|
501
502
|
{
|
|
502
|
-
ref:
|
|
503
|
+
ref: X,
|
|
503
504
|
style: { height: "100%", padding: 0 },
|
|
504
|
-
onScroll:
|
|
505
|
-
...
|
|
506
|
-
className:
|
|
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
|
-
(
|
|
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
|
-
...
|
|
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
|
-
|
|
527
|
+
lo,
|
|
527
528
|
{
|
|
528
|
-
columnVirtualizer:
|
|
529
|
+
columnVirtualizer: mt,
|
|
529
530
|
table: M,
|
|
530
|
-
virtualPaddingLeft:
|
|
531
|
-
virtualPaddingRight:
|
|
532
|
-
isLoading:
|
|
533
|
-
readOnlyColumns:
|
|
534
|
-
sortableRows:
|
|
535
|
-
...
|
|
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
|
-
|
|
540
|
+
po,
|
|
540
541
|
{
|
|
541
|
-
columnVirtualizer:
|
|
542
|
+
columnVirtualizer: mt,
|
|
542
543
|
table: M,
|
|
543
|
-
tableContainerRef:
|
|
544
|
-
virtualPaddingLeft:
|
|
545
|
-
virtualPaddingRight:
|
|
546
|
-
showHierarchy:
|
|
547
|
-
attribs:
|
|
548
|
-
onOpenNew:
|
|
549
|
-
rowOrderIds:
|
|
550
|
-
sortableRows:
|
|
551
|
-
error:
|
|
552
|
-
isGrouping:
|
|
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
|
-
|
|
561
|
-
|
|
563
|
+
se && U && (K == null ? void 0 : K.entities) && K.entities.length > 0 && /* @__PURE__ */ o.jsx(
|
|
564
|
+
Ke,
|
|
562
565
|
{
|
|
563
|
-
projectName:
|
|
566
|
+
projectName: U,
|
|
564
567
|
entityType: "folder",
|
|
565
|
-
onSubmit:
|
|
566
|
-
onClose:
|
|
567
|
-
showMoveToRoot:
|
|
568
|
+
onSubmit: ue,
|
|
569
|
+
onClose: me,
|
|
570
|
+
showMoveToRoot: K.entities.every(
|
|
568
571
|
(e) => e.entityType === "folder"
|
|
569
572
|
),
|
|
570
|
-
onMoveToRoot:
|
|
571
|
-
disabledIds:
|
|
572
|
-
getDisabledMessage:
|
|
573
|
+
onMoveToRoot: ae,
|
|
574
|
+
disabledIds: pe(),
|
|
575
|
+
getDisabledMessage: de
|
|
573
576
|
}
|
|
574
577
|
)
|
|
575
578
|
]
|
|
576
579
|
}
|
|
577
|
-
),
|
|
578
|
-
/* @__PURE__ */ o.jsx(
|
|
579
|
-
const e = M.getRowModel().rows.find((l) => l.id ===
|
|
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
|
|
584
|
+
const d = M.getTotalSize();
|
|
582
585
|
return /* @__PURE__ */ o.jsx(
|
|
583
586
|
"table",
|
|
584
587
|
{
|
|
585
588
|
style: {
|
|
586
|
-
width:
|
|
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
|
-
...
|
|
593
|
+
...Et
|
|
591
594
|
},
|
|
592
|
-
children: /* @__PURE__ */ o.jsx("tbody", { children: /* @__PURE__ */ o.jsxs(
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
const
|
|
596
|
-
if (!
|
|
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
|
-
...
|
|
599
|
-
width:
|
|
601
|
+
...ot(s.column),
|
|
602
|
+
width: it(e.id, s.column.id),
|
|
600
603
|
display: "flex",
|
|
601
604
|
alignItems: "center",
|
|
602
|
-
height:
|
|
605
|
+
height: Lt
|
|
603
606
|
};
|
|
604
|
-
return
|
|
605
|
-
|
|
607
|
+
return s.column.id === B ? /* @__PURE__ */ o.jsxs(
|
|
608
|
+
gt,
|
|
606
609
|
{
|
|
607
610
|
style: { ...z, justifyContent: "center" },
|
|
608
|
-
className:
|
|
611
|
+
className: E(s.column.id),
|
|
609
612
|
children: [
|
|
610
|
-
/* @__PURE__ */ o.jsx(
|
|
613
|
+
/* @__PURE__ */ o.jsx(Ft, { icon: "drag_handle" }),
|
|
611
614
|
" "
|
|
612
615
|
]
|
|
613
616
|
},
|
|
614
|
-
`overlay-drag-${
|
|
617
|
+
`overlay-drag-${s.id}`
|
|
615
618
|
) : /* @__PURE__ */ o.jsx(
|
|
616
|
-
|
|
619
|
+
_t,
|
|
617
620
|
{
|
|
618
|
-
cell:
|
|
619
|
-
cellId: `overlay-${
|
|
621
|
+
cell: s,
|
|
622
|
+
cellId: `overlay-${ft(e.id, s.column.id)}`,
|
|
620
623
|
rowId: e.id,
|
|
621
|
-
showHierarchy:
|
|
624
|
+
showHierarchy: k
|
|
622
625
|
},
|
|
623
|
-
`overlay-cell-${
|
|
626
|
+
`overlay-cell-${s.id}`
|
|
624
627
|
);
|
|
625
628
|
}),
|
|
626
|
-
|
|
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
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
] }) :
|
|
637
|
-
},
|
|
636
|
+
return p ? /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
637
|
+
Nt,
|
|
638
|
+
ce
|
|
639
|
+
] }) : Nt;
|
|
640
|
+
}, lo = ({
|
|
638
641
|
columnVirtualizer: t,
|
|
639
|
-
table:
|
|
642
|
+
table: m,
|
|
640
643
|
virtualPaddingLeft: n,
|
|
641
|
-
virtualPaddingRight:
|
|
642
|
-
isLoading:
|
|
643
|
-
readOnlyColumns:
|
|
644
|
-
sortableRows:
|
|
645
|
-
...
|
|
646
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
647
|
-
|
|
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:
|
|
653
|
+
headerGroup: S,
|
|
651
654
|
virtualPaddingLeft: n,
|
|
652
|
-
virtualPaddingRight:
|
|
653
|
-
isLoading:
|
|
654
|
-
readOnlyColumns:
|
|
655
|
-
sortableRows:
|
|
655
|
+
virtualPaddingRight: C,
|
|
656
|
+
isLoading: x,
|
|
657
|
+
readOnlyColumns: y,
|
|
658
|
+
sortableRows: b
|
|
656
659
|
},
|
|
657
|
-
|
|
658
|
-
)) }),
|
|
660
|
+
S.id
|
|
661
|
+
)) }), mo = ({
|
|
659
662
|
columnVirtualizer: t,
|
|
660
|
-
headerGroup:
|
|
663
|
+
headerGroup: m,
|
|
661
664
|
virtualPaddingLeft: n,
|
|
662
|
-
virtualPaddingRight:
|
|
663
|
-
isLoading:
|
|
664
|
-
readOnlyColumns:
|
|
665
|
-
sortableRows:
|
|
665
|
+
virtualPaddingRight: C,
|
|
666
|
+
isLoading: x,
|
|
667
|
+
readOnlyColumns: y,
|
|
668
|
+
sortableRows: b
|
|
666
669
|
}) => {
|
|
667
|
-
const
|
|
668
|
-
return /* @__PURE__ */ o.jsxs(
|
|
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
|
-
|
|
674
|
-
const
|
|
676
|
+
w.map((S) => {
|
|
677
|
+
const r = m.headers[S.index];
|
|
675
678
|
return /* @__PURE__ */ o.jsx(
|
|
676
|
-
|
|
679
|
+
ao,
|
|
677
680
|
{
|
|
678
|
-
header:
|
|
679
|
-
isLoading:
|
|
680
|
-
isReadOnly:
|
|
681
|
-
canSort:
|
|
682
|
-
canFilter:
|
|
683
|
-
canHide:
|
|
684
|
-
canPin:
|
|
685
|
-
canResize:
|
|
686
|
-
sortableRows:
|
|
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
|
-
|
|
691
|
+
r.id
|
|
689
692
|
);
|
|
690
693
|
}),
|
|
691
|
-
|
|
694
|
+
C ? (
|
|
692
695
|
//fake empty column to the right for virtualization scroll padding
|
|
693
|
-
/* @__PURE__ */ o.jsx("th", { style: { display: "flex", width:
|
|
696
|
+
/* @__PURE__ */ o.jsx("th", { style: { display: "flex", width: C } })
|
|
694
697
|
) : null
|
|
695
|
-
] },
|
|
696
|
-
},
|
|
698
|
+
] }, m.id);
|
|
699
|
+
}, ao = ({
|
|
697
700
|
header: t,
|
|
698
|
-
isLoading:
|
|
701
|
+
isLoading: m,
|
|
699
702
|
canFilter: n,
|
|
700
|
-
canHide:
|
|
701
|
-
canSort:
|
|
702
|
-
canPin:
|
|
703
|
-
canResize:
|
|
704
|
-
isReadOnly:
|
|
705
|
-
sortableRows:
|
|
703
|
+
canHide: C,
|
|
704
|
+
canSort: x,
|
|
705
|
+
canPin: y,
|
|
706
|
+
canResize: b,
|
|
707
|
+
isReadOnly: w,
|
|
708
|
+
sortableRows: S
|
|
706
709
|
}) => {
|
|
707
|
-
const { column:
|
|
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
|
-
|
|
712
|
+
ze,
|
|
710
713
|
{
|
|
711
|
-
className:
|
|
712
|
-
loading:
|
|
713
|
-
"last-pinned-left":
|
|
714
|
-
resizing:
|
|
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
|
-
...
|
|
718
|
-
width:
|
|
720
|
+
...ot(r),
|
|
721
|
+
width: it("", r.id)
|
|
719
722
|
},
|
|
720
|
-
children: t.isPlaceholder ? null : /* @__PURE__ */ o.jsxs(
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
/* @__PURE__ */ o.jsxs(
|
|
724
|
-
(
|
|
725
|
-
|
|
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:
|
|
730
|
-
canPin:
|
|
731
|
-
canSort:
|
|
732
|
-
isResizing:
|
|
733
|
-
menuId:
|
|
734
|
-
isOpen:
|
|
732
|
+
canHide: C,
|
|
733
|
+
canPin: y,
|
|
734
|
+
canSort: x,
|
|
735
|
+
isResizing: r.getIsResizing(),
|
|
736
|
+
menuId: I,
|
|
737
|
+
isOpen: g
|
|
735
738
|
}
|
|
736
739
|
),
|
|
737
|
-
|
|
738
|
-
|
|
740
|
+
x && /* @__PURE__ */ o.jsx(
|
|
741
|
+
De,
|
|
739
742
|
{
|
|
740
743
|
icon: "sort",
|
|
741
|
-
className:
|
|
744
|
+
className: E("sort-button", { visible: p }),
|
|
742
745
|
style: {
|
|
743
|
-
transform:
|
|
746
|
+
transform: p === "asc" ? "rotate(180deg) scaleX(-1)" : "none"
|
|
744
747
|
},
|
|
745
|
-
onClick:
|
|
746
|
-
selected: !!
|
|
748
|
+
onClick: r.getToggleSortingHandler(),
|
|
749
|
+
selected: !!r.getIsSorted()
|
|
747
750
|
}
|
|
748
751
|
)
|
|
749
752
|
] }),
|
|
750
|
-
|
|
751
|
-
|
|
753
|
+
b && /* @__PURE__ */ o.jsx(
|
|
754
|
+
ve,
|
|
752
755
|
{
|
|
753
|
-
onDoubleClick: () =>
|
|
756
|
+
onDoubleClick: () => r.resetSize(),
|
|
754
757
|
onMouseDown: t.getResizeHandler(),
|
|
755
758
|
onTouchStart: t.getResizeHandler(),
|
|
756
|
-
className:
|
|
757
|
-
resizing:
|
|
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
|
-
},
|
|
768
|
+
}, po = ({
|
|
766
769
|
columnVirtualizer: t,
|
|
767
|
-
table:
|
|
770
|
+
table: m,
|
|
768
771
|
tableContainerRef: n,
|
|
769
|
-
showHierarchy:
|
|
770
|
-
virtualPaddingLeft:
|
|
771
|
-
virtualPaddingRight:
|
|
772
|
-
attribs:
|
|
773
|
-
onOpenNew:
|
|
774
|
-
rowOrderIds:
|
|
775
|
-
sortableRows:
|
|
776
|
-
error:
|
|
777
|
-
isGrouping:
|
|
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
|
|
780
|
-
const
|
|
781
|
-
return typeof
|
|
782
|
-
}).filter(Boolean), [
|
|
783
|
-
count:
|
|
784
|
-
estimateSize: () =>
|
|
785
|
-
|
|
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 ? (
|
|
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
|
-
}),
|
|
791
|
-
|
|
792
|
-
|
|
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
|
-
[
|
|
808
|
+
[u]
|
|
795
809
|
);
|
|
796
|
-
|
|
797
|
-
const
|
|
810
|
+
_e();
|
|
811
|
+
const V = /* @__PURE__ */ o.jsx(
|
|
798
812
|
"tbody",
|
|
799
813
|
{
|
|
800
814
|
style: {
|
|
801
|
-
height: `${
|
|
815
|
+
height: `${u.getTotalSize()}px`,
|
|
802
816
|
position: "relative",
|
|
803
817
|
display: "grid"
|
|
804
818
|
},
|
|
805
|
-
onContextMenu:
|
|
806
|
-
onMouseOver: (
|
|
807
|
-
|
|
819
|
+
onContextMenu: R,
|
|
820
|
+
onMouseOver: (a) => {
|
|
821
|
+
f(a);
|
|
808
822
|
},
|
|
809
|
-
children:
|
|
810
|
-
const
|
|
811
|
-
return
|
|
812
|
-
|
|
823
|
+
children: $.map((a, L) => {
|
|
824
|
+
const j = P[a.index];
|
|
825
|
+
return j ? /* @__PURE__ */ o.jsx(
|
|
826
|
+
uo,
|
|
813
827
|
{
|
|
814
|
-
row:
|
|
815
|
-
showHierarchy:
|
|
816
|
-
visibleCells:
|
|
828
|
+
row: j,
|
|
829
|
+
showHierarchy: C,
|
|
830
|
+
visibleCells: j.getVisibleCells(),
|
|
817
831
|
virtualColumns: t.getVirtualItems(),
|
|
818
|
-
paddingLeft:
|
|
819
|
-
paddingRight:
|
|
820
|
-
rowRef:
|
|
821
|
-
dataIndex:
|
|
822
|
-
offsetTop:
|
|
823
|
-
sortableRows:
|
|
824
|
-
isGrouping:
|
|
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
|
-
|
|
827
|
-
) : (console.warn("Virtualized row data not found for index:",
|
|
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
|
|
832
|
-
/* @__PURE__ */ o.jsx(
|
|
846
|
+
return p ? n.current && Bt(
|
|
847
|
+
/* @__PURE__ */ o.jsx(Ne, { message: "No items found", error: p }),
|
|
833
848
|
n.current
|
|
834
|
-
) :
|
|
835
|
-
},
|
|
849
|
+
) : r ? /* @__PURE__ */ o.jsx(io, { items: S, strategy: no, children: V }) : V;
|
|
850
|
+
}, uo = ({
|
|
836
851
|
row: t,
|
|
837
|
-
showHierarchy:
|
|
852
|
+
showHierarchy: m,
|
|
838
853
|
visibleCells: n,
|
|
839
|
-
virtualColumns:
|
|
840
|
-
paddingLeft:
|
|
841
|
-
paddingRight:
|
|
842
|
-
rowRef:
|
|
843
|
-
dataIndex:
|
|
844
|
-
offsetTop:
|
|
845
|
-
sortableRows:
|
|
846
|
-
isGrouping:
|
|
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
|
|
864
|
+
const i = r ? ro({ id: t.id }) : null, g = et(
|
|
849
865
|
(T) => {
|
|
850
|
-
|
|
866
|
+
i && i.setNodeRef(T), i && i.isDragging || b(T);
|
|
851
867
|
},
|
|
852
|
-
[
|
|
853
|
-
),
|
|
868
|
+
[i, b]
|
|
869
|
+
), H = {
|
|
854
870
|
position: "absolute",
|
|
855
871
|
// Use absolute positioning for virtualized items
|
|
856
|
-
top:
|
|
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:
|
|
863
|
-
//
|
|
864
|
-
zIndex:
|
|
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:
|
|
884
|
+
transform: i && i.transform ? so.Transform.toString(i.transform) : void 0,
|
|
869
885
|
// Apply dnd-kit's transform for drag effect
|
|
870
|
-
transition:
|
|
871
|
-
visibility:
|
|
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
|
-
|
|
891
|
+
At,
|
|
876
892
|
{
|
|
877
|
-
ref:
|
|
878
|
-
"data-index":
|
|
879
|
-
style:
|
|
880
|
-
className:
|
|
893
|
+
ref: g,
|
|
894
|
+
"data-index": w,
|
|
895
|
+
style: H,
|
|
896
|
+
className: E({ "group-row": t.original.group }),
|
|
881
897
|
children: [
|
|
882
|
-
|
|
898
|
+
x ? (
|
|
883
899
|
//fake empty column to the left for virtualization scroll padding
|
|
884
|
-
/* @__PURE__ */ o.jsx("td", { style: { display: "flex", width:
|
|
900
|
+
/* @__PURE__ */ o.jsx("td", { style: { display: "flex", width: x } })
|
|
885
901
|
) : null,
|
|
886
|
-
|
|
887
|
-
const
|
|
888
|
-
if (!
|
|
889
|
-
const
|
|
890
|
-
return
|
|
891
|
-
|
|
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
|
-
...
|
|
895
|
-
width:
|
|
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:
|
|
915
|
+
height: I,
|
|
900
916
|
pointerEvents: "all",
|
|
901
917
|
cursor: "grab"
|
|
902
918
|
},
|
|
903
|
-
className:
|
|
904
|
-
"last-pinned-left":
|
|
919
|
+
className: E(f.column.id, {
|
|
920
|
+
"last-pinned-left": f.column.getIsPinned() === "left" && f.column.getIsLastColumn("left")
|
|
905
921
|
}),
|
|
906
|
-
onMouseDown: (
|
|
907
|
-
onMouseOver: (
|
|
908
|
-
onDoubleClick: (
|
|
909
|
-
onContextMenu: (
|
|
910
|
-
|
|
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
|
-
|
|
929
|
+
Ee,
|
|
914
930
|
{
|
|
915
|
-
attributes:
|
|
916
|
-
listeners:
|
|
931
|
+
attributes: i == null ? void 0 : i.attributes,
|
|
932
|
+
listeners: i == null ? void 0 : i.listeners
|
|
917
933
|
}
|
|
918
934
|
)
|
|
919
935
|
},
|
|
920
|
-
|
|
936
|
+
f.id + R.toString()
|
|
921
937
|
) : /* @__PURE__ */ o.jsx(
|
|
922
|
-
|
|
938
|
+
_t,
|
|
923
939
|
{
|
|
924
|
-
cell:
|
|
925
|
-
cellId:
|
|
940
|
+
cell: f,
|
|
941
|
+
cellId: P,
|
|
926
942
|
rowId: t.id,
|
|
927
|
-
showHierarchy:
|
|
928
|
-
sortableRows:
|
|
943
|
+
showHierarchy: m,
|
|
944
|
+
sortableRows: r,
|
|
945
|
+
rowHeight: I
|
|
929
946
|
},
|
|
930
|
-
|
|
947
|
+
f.id + R.toString()
|
|
931
948
|
);
|
|
932
949
|
}),
|
|
933
|
-
|
|
950
|
+
y ? (
|
|
934
951
|
//fake empty column to the right for virtualization scroll padding
|
|
935
|
-
/* @__PURE__ */ o.jsx("td", { style: { display: "flex", width:
|
|
952
|
+
/* @__PURE__ */ o.jsx("td", { style: { display: "flex", width: y } })
|
|
936
953
|
) : null
|
|
937
954
|
]
|
|
938
955
|
}
|
|
939
956
|
);
|
|
940
|
-
},
|
|
957
|
+
}, co = ({
|
|
941
958
|
cell: t,
|
|
942
|
-
rowId:
|
|
959
|
+
rowId: m,
|
|
943
960
|
cellId: n,
|
|
944
|
-
className:
|
|
945
|
-
showHierarchy:
|
|
946
|
-
sortableRows:
|
|
947
|
-
|
|
961
|
+
className: C,
|
|
962
|
+
showHierarchy: x,
|
|
963
|
+
sortableRows: y,
|
|
964
|
+
rowHeight: b,
|
|
965
|
+
...w
|
|
948
966
|
}) => {
|
|
949
|
-
const { getEntityById: S, onOpenPlayer:
|
|
950
|
-
isCellSelected:
|
|
951
|
-
isCellFocused:
|
|
952
|
-
startSelection:
|
|
953
|
-
extendSelection:
|
|
954
|
-
endSelection:
|
|
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:
|
|
957
|
-
getCellBorderClasses:
|
|
958
|
-
clearSelection:
|
|
959
|
-
selectedCells:
|
|
960
|
-
} =
|
|
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
|
-
|
|
980
|
+
gt,
|
|
963
981
|
{
|
|
964
|
-
...
|
|
982
|
+
...w,
|
|
965
983
|
tabIndex: 0,
|
|
966
|
-
$isLastPinned:
|
|
967
|
-
className:
|
|
984
|
+
$isLastPinned: j,
|
|
985
|
+
className: E(
|
|
968
986
|
t.column.id,
|
|
969
987
|
{
|
|
970
|
-
selected:
|
|
971
|
-
focused:
|
|
972
|
-
editing:
|
|
973
|
-
"last-pinned-left":
|
|
974
|
-
"selected-row":
|
|
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":
|
|
994
|
+
"multiple-selected": nt
|
|
977
995
|
},
|
|
978
|
-
|
|
979
|
-
...
|
|
996
|
+
C,
|
|
997
|
+
...a
|
|
980
998
|
),
|
|
981
999
|
style: {
|
|
982
|
-
...
|
|
983
|
-
width:
|
|
984
|
-
height:
|
|
1000
|
+
...ot(t.column),
|
|
1001
|
+
width: it(t.row.id, t.column.id),
|
|
1002
|
+
height: b
|
|
985
1003
|
},
|
|
986
|
-
onMouseDown: (
|
|
987
|
-
if (
|
|
988
|
-
const
|
|
989
|
-
if (
|
|
990
|
-
if (
|
|
991
|
-
|
|
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 (
|
|
995
|
-
if (N && t.column.id !== "name") return
|
|
996
|
-
const
|
|
997
|
-
|
|
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: (
|
|
1000
|
-
|
|
1017
|
+
onMouseOver: (c) => {
|
|
1018
|
+
c.buttons === 1 && g(n, v);
|
|
1001
1019
|
},
|
|
1002
1020
|
onMouseUp: () => {
|
|
1003
|
-
|
|
1021
|
+
H(n);
|
|
1004
1022
|
},
|
|
1005
|
-
onDoubleClick: (
|
|
1006
|
-
if (t.column.id === "name" && !
|
|
1007
|
-
const
|
|
1008
|
-
if (!
|
|
1009
|
-
const
|
|
1010
|
-
T(
|
|
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" &&
|
|
1014
|
-
const
|
|
1015
|
-
if (
|
|
1016
|
-
const
|
|
1017
|
-
|
|
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: (
|
|
1022
|
-
|
|
1039
|
+
onContextMenu: (c) => {
|
|
1040
|
+
c.preventDefault(), p(n) || T(n, !1, !1);
|
|
1023
1041
|
},
|
|
1024
|
-
children:
|
|
1042
|
+
children: kt(t.column.columnDef.cell, t.getContext())
|
|
1025
1043
|
}
|
|
1026
1044
|
);
|
|
1027
|
-
},
|
|
1045
|
+
}, _t = ge(co);
|
|
1028
1046
|
export {
|
|
1029
|
-
|
|
1030
|
-
|
|
1047
|
+
B as DRAG_HANDLE_COLUMN_ID,
|
|
1048
|
+
Ps as ProjectTreeTable
|
|
1031
1049
|
};
|
|
1032
1050
|
//# sourceMappingURL=ProjectTreeTable.es.js.map
|