@ynput/ayon-frontend-shared 0.3.44 → 0.3.45
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/DetailsPanel.cjs.js +1 -1
- package/dist/DetailsPanel.es.js +4 -4
- package/dist/ProjectTreeTable.cjs.js +1 -1
- package/dist/ProjectTreeTable.es.js +4 -4
- package/dist/_virtual/index.cjs15.js +1 -1
- package/dist/_virtual/index.cjs19.js +1 -1
- package/dist/_virtual/index.cjs22.js +1 -1
- package/dist/_virtual/index.cjs23.js +1 -1
- package/dist/_virtual/index.cjs24.js +1 -1
- package/dist/_virtual/index.cjs4.js +1 -1
- package/dist/_virtual/index.cjs5.js +1 -1
- package/dist/_virtual/index.cjs8.js +1 -1
- package/dist/_virtual/index.cjs9.js +1 -1
- package/dist/_virtual/index.es15.js +2 -2
- package/dist/_virtual/index.es16.js +2 -2
- package/dist/_virtual/index.es17.js +2 -2
- package/dist/_virtual/index.es18.js +2 -2
- package/dist/_virtual/index.es19.js +2 -2
- package/dist/_virtual/index.es22.js +3 -3
- package/dist/_virtual/index.es23.js +5 -5
- package/dist/_virtual/index.es24.js +5 -5
- package/dist/_virtual/index.es4.js +2 -5
- package/dist/_virtual/index.es4.js.map +1 -1
- package/dist/_virtual/index.es5.js +5 -2
- package/dist/_virtual/index.es5.js.map +1 -1
- package/dist/_virtual/index.es8.js +5 -2
- package/dist/_virtual/index.es8.js.map +1 -1
- package/dist/_virtual/index.es9.js +2 -5
- package/dist/_virtual/index.es9.js.map +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +4 -4
- package/dist/node_modules/match-sorter/dist/match-sorter.esm.cjs.js +1 -1
- package/dist/node_modules/match-sorter/dist/match-sorter.esm.es.js +1 -1
- package/dist/node_modules/rehype/node_modules/unified/lib/index.cjs.js +1 -1
- package/dist/node_modules/rehype/node_modules/unified/lib/index.es.js +2 -2
- package/dist/node_modules/rehype/node_modules/vfile/lib/index.cjs.js +1 -1
- package/dist/node_modules/rehype/node_modules/vfile/lib/index.es.js +1 -1
- package/dist/node_modules/rehype-parse/lib/index.cjs.js +1 -1
- package/dist/node_modules/rehype-parse/lib/index.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/node_modules/@module-federation/runtime/dist/index.cjs.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime/dist/index.es.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime-core/dist/plugins/snapshot/index.cjs.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime-core/dist/plugins/snapshot/index.es.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime-core/dist/remote/index.cjs.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime-core/dist/remote/index.es.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime-core/dist/shared/index.cjs.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime-core/dist/shared/index.es.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/hooks/index.cjs.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime-core/dist/utils/hooks/index.es.js +1 -1
- package/dist/shared/node_modules/prop-types/index.cjs.js +1 -1
- package/dist/shared/node_modules/prop-types/index.es.js +1 -1
- package/dist/shared/node_modules/react-transition-group/esm/CSSTransition.cjs.js +1 -1
- package/dist/shared/node_modules/react-transition-group/esm/CSSTransition.es.js +1 -1
- package/dist/shared/node_modules/react-transition-group/esm/Transition.cjs.js +1 -1
- package/dist/shared/node_modules/react-transition-group/esm/Transition.es.js +1 -1
- package/dist/shared/node_modules/react-transition-group/esm/utils/PropTypes.cjs.js +1 -1
- package/dist/shared/node_modules/react-transition-group/esm/utils/PropTypes.es.js +1 -1
- package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.cjs.js +1 -1
- package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.es.js +4 -4
- package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.cjs.js +1 -1
- package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploader.es.js +4 -4
- package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploaderDialog.cjs.js +1 -1
- package/dist/shared/src/components/EntityPanelUploader/EntityPanelUploaderDialog.es.js +4 -4
- package/dist/shared/src/components/LinksManager/CellEditingDialog.cjs.js +1 -1
- package/dist/shared/src/components/LinksManager/CellEditingDialog.cjs.js.map +1 -1
- package/dist/shared/src/components/LinksManager/CellEditingDialog.es.js +20 -20
- package/dist/shared/src/components/LinksManager/CellEditingDialog.es.js.map +1 -1
- package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.cjs.js +1 -1
- package/dist/shared/src/components/LinksManager/hooks/useUpdateLinks.es.js +4 -4
- package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.cjs.js +1 -1
- package/dist/shared/src/components/ProjectTableSettings/ColumnsSettings.es.js +4 -4
- package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.cjs.js +1 -1
- package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.es.js +4 -4
- package/dist/shared/src/components/RemotePage/RemotePageWrapper.cjs.js +1 -1
- package/dist/shared/src/components/RemotePage/RemotePageWrapper.es.js +5 -5
- package/dist/shared/src/components/RenameForm/RenameForm.cjs.js +1 -1
- package/dist/shared/src/components/RenameForm/RenameForm.es.js +4 -4
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.cjs.js +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesList.es.js +4 -4
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.cjs.js +1 -1
- package/dist/shared/src/components/ReviewablesList/ReviewablesUpload.es.js +4 -4
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.cjs.js +1 -1
- package/dist/shared/src/components/ReviewablesList/SortableReviewableCard.es.js +4 -4
- package/dist/shared/src/components/ReviewablesList/useReviewablesUpload.cjs.js +1 -1
- package/dist/shared/src/components/ReviewablesList/useReviewablesUpload.cjs.js.map +1 -1
- package/dist/shared/src/components/ReviewablesList/useReviewablesUpload.es.js +84 -69
- package/dist/shared/src/components/ReviewablesList/useReviewablesUpload.es.js.map +1 -1
- package/dist/shared/src/components/ReviewablesSelector/Card.cjs.js +1 -1
- package/dist/shared/src/components/ReviewablesSelector/Card.es.js +4 -4
- package/dist/shared/src/components/SimpleFormDialog/FormFile.cjs.js +1 -1
- package/dist/shared/src/components/SimpleFormDialog/FormFile.es.js +4 -4
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.cjs.js +1 -1
- package/dist/shared/src/components/SimpleFormDialog/SimpleFormDialog.es.js +4 -4
- package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.cjs.js +1 -1
- package/dist/shared/src/components/VersionUploader/components/UploadVersionForm.es.js +4 -4
- package/dist/shared/src/components/VersionUploader/context/VersionUploadContext.cjs.js +1 -1
- package/dist/shared/src/components/VersionUploader/context/VersionUploadContext.es.js +4 -4
- package/dist/shared/src/containers/Actions/ActionConfigDialog.cjs.js +1 -1
- package/dist/shared/src/containers/Actions/ActionConfigDialog.es.js +4 -4
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.cjs.js +1 -1
- package/dist/shared/src/containers/Actions/InteractiveActionDialog.es.js +4 -4
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js +4 -4
- package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelFiles/DetailsPanelFiles.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelFiles/DetailsPanelFiles.es.js +4 -4
- package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelFloating/DetailsPanelFloating.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelFloating/DetailsPanelFloating.es.js +4 -4
- package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelHeader/DetailsPanelHeader.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelHeader/DetailsPanelHeader.es.js +4 -4
- package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelMoreMenu/DetailsPanelMoreMenu.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelMoreMenu/DetailsPanelMoreMenu.es.js +4 -4
- package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelMoreMenu/hooks/useContextAccess.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/components/DetailsPanelMoreMenu/hooks/useContextAccess.es.js +4 -4
- package/dist/shared/src/containers/DetailsPanel/components/TabHeaderAndFilters/TabHeaderAndFilters.styled.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/components/TabHeaderAndFilters/TabHeaderAndFilters.styled.es.js +4 -4
- package/dist/shared/src/containers/DetailsPanel/containers/DetailsPanelSubtasks.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/containers/DetailsPanelSubtasks.es.js +4 -4
- package/dist/shared/src/containers/DetailsPanel/containers/FeedContextWrapper.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/containers/FeedContextWrapper.es.js +4 -4
- package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.cjs.js +2 -2
- package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.cjs.js.map +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.es.js +15 -15
- package/dist/shared/src/containers/EntityPickerDialog/EntityPickerDialog.es.js.map +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.cjs.js +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTable.es.js +4 -4
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.cjs.js +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableHeader.es.js +4 -4
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.cjs.js +1 -1
- package/dist/shared/src/containers/EntityPickerDialog/components/EntityTypeTableSearch.es.js +4 -4
- package/dist/shared/src/containers/Feed/components/ActivityCheckbox/ActivityCheckbox.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityCheckbox/ActivityCheckbox.es.js +4 -4
- package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityComment.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityComment.es.js +4 -4
- package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityCommentMenu.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityComment/ActivityCommentMenu.es.js +4 -4
- package/dist/shared/src/containers/Feed/components/ActivityVersionReview/ActivityVersionReview.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/components/ActivityVersionReview/ActivityVersionReview.es.js +4 -4
- package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/CommentInput.es.js +4 -4
- package/dist/shared/src/containers/Feed/components/CommentInput/helpers.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/components/CommentInput/helpers.es.js +4 -4
- package/dist/shared/src/containers/Feed/components/Tooltips/EntityTooltip/EntityTooltip.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/components/Tooltips/EntityTooltip/EntityTooltip.es.js +4 -4
- package/dist/shared/src/containers/ListTable/ListTable.cjs.js +1 -1
- package/dist/shared/src/containers/ListTable/ListTable.es.js +4 -4
- package/dist/shared/src/containers/ListTable/ListTableCell.cjs.js +1 -1
- package/dist/shared/src/containers/ListTable/ListTableCell.es.js +4 -4
- package/dist/shared/src/containers/ListTable/ListTableHeader.cjs.js +1 -1
- package/dist/shared/src/containers/ListTable/ListTableHeader.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/components/ColumnDndProvider.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/components/ColumnDndProvider.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/components/ColumnHeaderMenu.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/components/ColumnHeaderMenu.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/CellEditingProvider.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/ColumnSettingsProvider.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/context/SelectionCellsProvider.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildGroupByTableData.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildProjectDataTable.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useBuildProjectDataTable.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useCellContextMenu.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useCheckSelectedCellsVisible.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useColumnGroupBy.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useColumnGroupBy.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useDeleteEntities.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useDeleteEntities.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useFetchOverviewData.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useFetchOverviewData.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useFetchOverviewData.es.js +31 -23
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useFetchOverviewData.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useGetGroupedFields.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useGroupBySettings.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useGroupBySettings.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useKeyboardNavigation.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useMoveEntities.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/usePasteLinks.es.js +5 -5
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useQueryFilters.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/utils/cellUtils.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/utils/getFolderIdsToQueryFromExpanded.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/utils/getFolderIdsToQueryFromExpanded.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/utils/getFolderIdsToQueryFromExpanded.es.js +23 -13
- package/dist/shared/src/containers/ProjectTreeTable/utils/getFolderIdsToQueryFromExpanded.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/BooleanWidget.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/BooleanWidget.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CommentsWidget.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CommentsWidget.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/LinksWidget.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/widgets/NameWidget.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/NameWidget.es.js +4 -4
- package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.es.js +4 -4
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.cjs.js +1 -1
- package/dist/shared/src/containers/RepresentationsList/RepresentationsList.es.js +4 -4
- package/dist/shared/src/containers/SimpleTable/SimpleTable.cjs.js +1 -1
- package/dist/shared/src/containers/SimpleTable/SimpleTable.cjs.js.map +1 -1
- package/dist/shared/src/containers/SimpleTable/SimpleTable.es.js +169 -169
- package/dist/shared/src/containers/SimpleTable/SimpleTable.es.js.map +1 -1
- package/dist/shared/src/containers/SimpleTable/hooks/useRowKeydown.cjs.js +1 -1
- package/dist/shared/src/containers/SimpleTable/hooks/useRowKeydown.cjs.js.map +1 -1
- package/dist/shared/src/containers/SimpleTable/hooks/useRowKeydown.es.js +13 -13
- package/dist/shared/src/containers/SimpleTable/hooks/useRowKeydown.es.js.map +1 -1
- package/dist/shared/src/containers/Slicer/components/SlicerSearch.cjs.js +1 -1
- package/dist/shared/src/containers/Slicer/components/SlicerSearch.es.js +4 -4
- package/dist/shared/src/containers/Slicer/context/SlicerContext.cjs.js +1 -1
- package/dist/shared/src/containers/Slicer/context/SlicerContext.cjs.js.map +1 -1
- package/dist/shared/src/containers/Slicer/context/SlicerContext.es.js +55 -54
- package/dist/shared/src/containers/Slicer/context/SlicerContext.es.js.map +1 -1
- package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.cjs.js +1 -1
- package/dist/shared/src/containers/Views/ViewsMenuContainer/BaseViewsTags.es.js +3 -3
- package/dist/shared/src/context/WebsocketContext.cjs.js +1 -1
- package/dist/shared/src/context/WebsocketContext.es.js +4 -4
- package/dist/types/containers/ProjectTreeTable/utils/getFolderIdsToQueryFromExpanded.d.ts +8 -1
- package/dist/types/containers/Slicer/context/SlicerContext.d.ts +6 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as h, useMemo as H, useCallback as f, useEffect as
|
|
3
|
-
import { TableContainer as
|
|
4
|
-
import { functionalUpdate as
|
|
1
|
+
import { j as y } from "../../../../_virtual/jsx-runtime.es.js";
|
|
2
|
+
import { useRef as h, useMemo as H, useCallback as f, useEffect as yt } from "react";
|
|
3
|
+
import { TableContainer as bt } from "./SimpleTable.styled.es.js";
|
|
4
|
+
import { functionalUpdate as ot, useReactTable as Ct, getExpandedRowModel as wt, getFilteredRowModel as Et, getCoreRowModel as Mt, flexRender as Ft, sortingFns as Kt } from "@tanstack/react-table";
|
|
5
5
|
import { useVirtualizer as kt } from "@tanstack/react-virtual";
|
|
6
|
-
import
|
|
6
|
+
import it from "clsx";
|
|
7
7
|
import Tt from "./hooks/useRowKeydown.es.js";
|
|
8
8
|
import { compareItems as jt, rankItem as zt, rankings as Dt } from "@tanstack/match-sorter-utils";
|
|
9
9
|
import { useSimpleTableContext as At } from "./context/SimpleTableContext.es.js";
|
|
@@ -239,10 +239,6 @@ import "../ProjectTreeTable/components/HeaderActionButton.es.js";
|
|
|
239
239
|
import "../ProjectTreeTable/components/TableFooterRow.es.js";
|
|
240
240
|
import "../EntityPickerDialog/EntityPickerDialog.es.js";
|
|
241
241
|
import "../Slicer/components/Slicer.es.js";
|
|
242
|
-
import "../Views/ViewsMenu/ViewsMenu.es.js";
|
|
243
|
-
import "../Views/context/ViewsContextInstance.es.js";
|
|
244
|
-
import "../Views/Views.styled.es.js";
|
|
245
|
-
import "../Views/ViewsMenuContainer/ViewsMenuContainer.es.js";
|
|
246
242
|
import "../Slicer/context/SlicerContextInstance.es.js";
|
|
247
243
|
import "../Slicer/components/SlicerDropdownFallback.es.js";
|
|
248
244
|
import "../Slicer/hooks/useTableDataBySlice.es.js";
|
|
@@ -260,6 +256,10 @@ import "../DetailsPanel/components/DetailsPanelFloating/DetailsPanelFloating.sty
|
|
|
260
256
|
import "../Actions/Actions.styled.es.js";
|
|
261
257
|
import "../Actions/ActionsDropdown/ActionsDropdown.es.js";
|
|
262
258
|
import "../Actions/ActionIcon.es.js";
|
|
259
|
+
import "../Views/ViewsMenu/ViewsMenu.es.js";
|
|
260
|
+
import "../Views/context/ViewsContextInstance.es.js";
|
|
261
|
+
import "../Views/Views.styled.es.js";
|
|
262
|
+
import "../Views/ViewsMenuContainer/ViewsMenuContainer.es.js";
|
|
263
263
|
import "../ListTable/ListTableRow.es.js";
|
|
264
264
|
import "../ListTable/ListTable.styled.es.js";
|
|
265
265
|
import "../../components/EntityPanelUploader/EntityPanelUploader.styled.es.js";
|
|
@@ -299,152 +299,152 @@ import "../../components/Menu/Menu.styled.es.js";
|
|
|
299
299
|
import "../../components/Menu/MenuItem.es.js";
|
|
300
300
|
import "../../components/ReviewablesSelector/ReviewablesSelector.es.js";
|
|
301
301
|
import "../../components/ColumnHeaderMenuUI.es.js";
|
|
302
|
-
const Vt = (e) => e ? Array.isArray(e) ? e.filter(Boolean) : [e] : [], $t = (e, l,
|
|
302
|
+
const Vt = (e) => e ? Array.isArray(e) ? e.filter(Boolean) : [e] : [], $t = (e, l, d, g) => {
|
|
303
303
|
const a = e.getValue(l);
|
|
304
|
-
let
|
|
305
|
-
l === "label" && (
|
|
304
|
+
let u = typeof a == "string" ? a : Array.isArray(a) ? a.join(" ") : JSON.stringify(a);
|
|
305
|
+
l === "label" && (u = [e.original.label, e.original.name, ...e.original.parents || []].join(
|
|
306
306
|
" "
|
|
307
307
|
));
|
|
308
|
-
const R = zt(
|
|
308
|
+
const R = zt(u, d, { threshold: Dt.CONTAINS });
|
|
309
309
|
return g({
|
|
310
310
|
itemRank: R
|
|
311
311
|
}), R.passed;
|
|
312
|
-
}, Ot = (e, l,
|
|
312
|
+
}, Ot = (e, l, d) => {
|
|
313
313
|
let g = 0;
|
|
314
|
-
return e.columnFiltersMeta[
|
|
315
|
-
e.columnFiltersMeta[
|
|
316
|
-
l.columnFiltersMeta[
|
|
317
|
-
)), g === 0 ? Kt.alphanumeric(e, l,
|
|
314
|
+
return e.columnFiltersMeta[d] && (g = jt(
|
|
315
|
+
e.columnFiltersMeta[d]?.itemRank,
|
|
316
|
+
l.columnFiltersMeta[d]?.itemRank
|
|
317
|
+
)), g === 0 ? Kt.alphanumeric(e, l, d) : g;
|
|
318
318
|
};
|
|
319
|
-
function
|
|
319
|
+
function qt(e, l, d) {
|
|
320
320
|
const g = [];
|
|
321
|
-
if (l ===
|
|
322
|
-
const s = e.find((
|
|
321
|
+
if (l === d) {
|
|
322
|
+
const s = e.find((E) => E.id === l);
|
|
323
323
|
return s ? [s] : [];
|
|
324
324
|
}
|
|
325
|
-
let a = -1,
|
|
326
|
-
for (let s = 0; s < e.length && (e[s].id === l && (a = s), e[s].id ===
|
|
325
|
+
let a = -1, u = -1;
|
|
326
|
+
for (let s = 0; s < e.length && (e[s].id === l && (a = s), e[s].id === d && (u = s), !(a !== -1 && u !== -1)); s++)
|
|
327
327
|
;
|
|
328
|
-
if (a === -1 ||
|
|
329
|
-
const R = Math.min(a,
|
|
330
|
-
for (let s = R; s <=
|
|
328
|
+
if (a === -1 || u === -1) return [];
|
|
329
|
+
const R = Math.min(a, u), w = Math.max(a, u);
|
|
330
|
+
for (let s = R; s <= w; s++)
|
|
331
331
|
g.push(e[s]);
|
|
332
332
|
return g;
|
|
333
333
|
}
|
|
334
|
-
const
|
|
334
|
+
const ym = ({
|
|
335
335
|
data: e = [],
|
|
336
336
|
isLoading: l,
|
|
337
|
-
error:
|
|
337
|
+
error: d,
|
|
338
338
|
isExpandable: g,
|
|
339
339
|
isMultiSelect: a = !0,
|
|
340
|
-
enableClickToDeselect:
|
|
340
|
+
enableClickToDeselect: u = !0,
|
|
341
341
|
enableNonFolderIndent: R = !0,
|
|
342
|
-
forceUpdateTable:
|
|
342
|
+
forceUpdateTable: w,
|
|
343
343
|
globalFilter: s,
|
|
344
|
-
meta:
|
|
344
|
+
meta: E,
|
|
345
345
|
rowHeight: z,
|
|
346
346
|
imgRatio: V,
|
|
347
347
|
onScrollBottom: D,
|
|
348
348
|
onRename: $,
|
|
349
349
|
renamingId: O,
|
|
350
|
-
onSubmitRename:
|
|
351
|
-
onCancelRename:
|
|
350
|
+
onSubmitRename: q,
|
|
351
|
+
onCancelRename: L,
|
|
352
352
|
onRowDoubleClick: B,
|
|
353
353
|
rowContextMenuBuilders: I = [],
|
|
354
354
|
children: J,
|
|
355
|
-
pt:
|
|
356
|
-
fitContent:
|
|
355
|
+
pt: M,
|
|
356
|
+
fitContent: rt,
|
|
357
357
|
...Y
|
|
358
358
|
}) => {
|
|
359
359
|
const {
|
|
360
|
-
rowSelection:
|
|
361
|
-
expanded:
|
|
360
|
+
rowSelection: F,
|
|
361
|
+
expanded: et,
|
|
362
362
|
setExpanded: _,
|
|
363
|
-
onExpandedChange:
|
|
364
|
-
onRowSelectionChange:
|
|
363
|
+
onExpandedChange: nt,
|
|
364
|
+
onRowSelectionChange: K,
|
|
365
365
|
rowPinning: v,
|
|
366
366
|
onRowPinningChange: A
|
|
367
|
-
} = At(),
|
|
367
|
+
} = At(), C = h(null), x = h(null), [G] = Ht(), Q = h(B);
|
|
368
368
|
Q.current = B;
|
|
369
369
|
const U = h(O);
|
|
370
370
|
U.current = O;
|
|
371
|
-
const N = h(
|
|
372
|
-
N.current =
|
|
373
|
-
const W = h(
|
|
374
|
-
W.current =
|
|
371
|
+
const N = h(q);
|
|
372
|
+
N.current = q;
|
|
373
|
+
const W = h(L);
|
|
374
|
+
W.current = L;
|
|
375
375
|
const X = h($);
|
|
376
376
|
X.current = $;
|
|
377
|
-
const
|
|
378
|
-
id: `placeholder-${
|
|
379
|
-
name: `placeholder-${
|
|
380
|
-
label: `placeholder-${
|
|
377
|
+
const mt = H(() => l ? Array.from({ length: 10 }, (t, i) => ({
|
|
378
|
+
id: `placeholder-${i}`,
|
|
379
|
+
name: `placeholder-${i}`,
|
|
380
|
+
label: `placeholder-${i}`,
|
|
381
381
|
icon: null,
|
|
382
382
|
img: null,
|
|
383
383
|
subRows: [],
|
|
384
384
|
data: {
|
|
385
|
-
id: `placeholder-${
|
|
385
|
+
id: `placeholder-${i}`
|
|
386
386
|
}
|
|
387
|
-
})) : e, [l, e,
|
|
388
|
-
(t,
|
|
389
|
-
const m =
|
|
390
|
-
if (
|
|
391
|
-
if (
|
|
392
|
-
t.setRowSelection({}),
|
|
387
|
+
})) : e, [l, e, w]), b = f(
|
|
388
|
+
(t, i, r, n) => {
|
|
389
|
+
const m = i, p = t.getFilteredRowModel().flatRows, o = p.find((c) => c.id === m);
|
|
390
|
+
if (o && !o.original.isDisabled) {
|
|
391
|
+
if (u && !r && !n && Object.keys(t.getState().rowSelection).length === 1 && t.getState().rowSelection[m]) {
|
|
392
|
+
t.setRowSelection({}), C.current = null;
|
|
393
393
|
return;
|
|
394
394
|
}
|
|
395
|
-
if (a &&
|
|
396
|
-
const
|
|
397
|
-
if (!p.find((
|
|
395
|
+
if (a && r && C.current) {
|
|
396
|
+
const c = C.current;
|
|
397
|
+
if (!p.find((S) => S.id === c))
|
|
398
398
|
t.setRowSelection({ [m]: !0 });
|
|
399
399
|
else {
|
|
400
|
-
const
|
|
401
|
-
|
|
400
|
+
const S = qt(p, m, c), tt = {};
|
|
401
|
+
S.forEach((St) => tt[St.id] = !0), t.setRowSelection(tt);
|
|
402
402
|
}
|
|
403
403
|
} else if (a && n)
|
|
404
|
-
|
|
404
|
+
o.toggleSelected();
|
|
405
405
|
else {
|
|
406
|
-
const
|
|
407
|
-
Object.keys(
|
|
406
|
+
const c = t.getState().rowSelection;
|
|
407
|
+
Object.keys(c).length === 1 && c[m] || t.setRowSelection({ [m]: !0 });
|
|
408
408
|
}
|
|
409
|
-
|
|
409
|
+
C.current = m;
|
|
410
410
|
}
|
|
411
411
|
},
|
|
412
|
-
[a,
|
|
413
|
-
),
|
|
414
|
-
(t,
|
|
412
|
+
[a, u]
|
|
413
|
+
), pt = f(
|
|
414
|
+
(t, i) => {
|
|
415
415
|
if (!x.current) {
|
|
416
416
|
console.warn("tableRef not yet available in handleRowSelectForKeydown");
|
|
417
417
|
return;
|
|
418
418
|
}
|
|
419
|
-
const
|
|
419
|
+
const r = t.shiftKey, n = t.ctrlKey || t.metaKey;
|
|
420
420
|
b(
|
|
421
421
|
x.current,
|
|
422
422
|
// Pass the main table instance
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
i.id,
|
|
424
|
+
r,
|
|
425
425
|
n
|
|
426
426
|
);
|
|
427
427
|
},
|
|
428
428
|
[b]
|
|
429
429
|
// Depends only on handleSelectionLogic
|
|
430
|
-
),
|
|
431
|
-
(t,
|
|
430
|
+
), lt = f(
|
|
431
|
+
(t, i, r) => {
|
|
432
432
|
if (!x.current) return;
|
|
433
|
-
const n = x.current.getRowModel().rows, m = n.findIndex((
|
|
433
|
+
const n = x.current.getRowModel().rows, m = n.findIndex((o) => o.id === i.id);
|
|
434
434
|
if (m === -1) return;
|
|
435
435
|
let p = t === "down" ? m + 1 : m - 1;
|
|
436
436
|
if (!(p < 0 || p >= n.length))
|
|
437
437
|
for (; p >= 0 && p < n.length; ) {
|
|
438
|
-
const
|
|
439
|
-
if (!
|
|
438
|
+
const o = n[p];
|
|
439
|
+
if (!o.original.isDisabled) {
|
|
440
440
|
b(
|
|
441
441
|
x.current,
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
442
|
+
o.id,
|
|
443
|
+
r.shiftKey,
|
|
444
|
+
r.ctrlKey || r.metaKey
|
|
445
445
|
), requestAnimationFrame(() => {
|
|
446
|
-
const
|
|
447
|
-
|
|
446
|
+
const c = P.current, S = (c ? c.querySelector(`#${CSS.escape(o.id)}`) : document.getElementById(o.id))?.querySelector('[tabindex="0"]');
|
|
447
|
+
S && (S.focus(), S.scrollIntoView({ block: "nearest", behavior: "smooth" }));
|
|
448
448
|
});
|
|
449
449
|
return;
|
|
450
450
|
}
|
|
@@ -452,17 +452,17 @@ const bm = ({
|
|
|
452
452
|
}
|
|
453
453
|
},
|
|
454
454
|
[b]
|
|
455
|
-
),
|
|
456
|
-
(t,
|
|
457
|
-
|
|
455
|
+
), at = f(
|
|
456
|
+
(t, i) => {
|
|
457
|
+
i.original.isDisabled || X.current?.(i.id, i);
|
|
458
458
|
},
|
|
459
459
|
[]
|
|
460
460
|
// eslint-disable-line react-hooks/exhaustive-deps
|
|
461
461
|
), { handleRowKeyDown: Z } = Tt({
|
|
462
|
-
handleRowSelect:
|
|
463
|
-
handleArrowNavigation:
|
|
464
|
-
handleRename:
|
|
465
|
-
}),
|
|
462
|
+
handleRowSelect: pt,
|
|
463
|
+
handleArrowNavigation: lt,
|
|
464
|
+
handleRename: at
|
|
465
|
+
}), st = H(
|
|
466
466
|
() => [
|
|
467
467
|
{
|
|
468
468
|
accessorKey: "label",
|
|
@@ -470,17 +470,17 @@ const bm = ({
|
|
|
470
470
|
filterFn: "fuzzy",
|
|
471
471
|
sortingFn: Ot,
|
|
472
472
|
//sort by fuzzy rank (falls back to alphanumeric)
|
|
473
|
-
cell: ({ row: t, getValue:
|
|
474
|
-
const n =
|
|
475
|
-
|
|
476
|
-
|
|
473
|
+
cell: ({ row: t, getValue: i, table: r }) => {
|
|
474
|
+
const n = r.options.meta, m = (o) => {
|
|
475
|
+
o.target instanceof HTMLInputElement || o.target instanceof HTMLButtonElement || o.target instanceof HTMLTextAreaElement || o.target instanceof HTMLSelectElement || o.target instanceof HTMLAnchorElement || o.target.closest("button, a, input, textarea, select") || b(
|
|
476
|
+
r,
|
|
477
477
|
// Pass the cell's table instance
|
|
478
478
|
t.id,
|
|
479
|
-
|
|
480
|
-
|
|
479
|
+
o.shiftKey,
|
|
480
|
+
o.ctrlKey || o.metaKey
|
|
481
481
|
);
|
|
482
482
|
}, p = {
|
|
483
|
-
className:
|
|
483
|
+
className: it({
|
|
484
484
|
selected: t.getIsSelected(),
|
|
485
485
|
loading: n?.isLoading,
|
|
486
486
|
disabled: t.original.isDisabled,
|
|
@@ -488,12 +488,12 @@ const bm = ({
|
|
|
488
488
|
inactive: t.original.inactive
|
|
489
489
|
// false: archived items but still selectable
|
|
490
490
|
}),
|
|
491
|
-
onKeyDown: (
|
|
492
|
-
|
|
491
|
+
onKeyDown: (o) => {
|
|
492
|
+
o.target instanceof HTMLInputElement || Z(o, t);
|
|
493
493
|
},
|
|
494
494
|
depth: t.depth,
|
|
495
495
|
tabIndex: 0,
|
|
496
|
-
value:
|
|
496
|
+
value: i(),
|
|
497
497
|
parents: t.original.parents,
|
|
498
498
|
icon: t.original.icon || void 0,
|
|
499
499
|
iconColor: t.original.iconColor,
|
|
@@ -511,54 +511,54 @@ const bm = ({
|
|
|
511
511
|
isDisabled: t.original.isDisabled,
|
|
512
512
|
disabledMessage: t.original.disabledMessage,
|
|
513
513
|
isRenaming: t.id === U.current,
|
|
514
|
-
onSubmitRename: N.current ? (
|
|
514
|
+
onSubmitRename: N.current ? (o) => N.current(t.id, o) : void 0,
|
|
515
515
|
onCancelRename: W.current,
|
|
516
|
-
...
|
|
516
|
+
...M?.cell,
|
|
517
517
|
onClick: m,
|
|
518
518
|
// Added onClick handler
|
|
519
|
-
onDoubleClick: (
|
|
519
|
+
onDoubleClick: (o) => Q.current?.(t.id, t)
|
|
520
520
|
};
|
|
521
|
-
return n?.children ? n.children(p, t,
|
|
521
|
+
return n?.children ? n.children(p, t, r) : /* @__PURE__ */ y.jsx(Nt, { ...p, ...M?.cell });
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
],
|
|
525
525
|
[
|
|
526
|
-
|
|
526
|
+
w,
|
|
527
527
|
b,
|
|
528
528
|
Z,
|
|
529
|
-
|
|
529
|
+
u,
|
|
530
530
|
R,
|
|
531
531
|
V
|
|
532
532
|
]
|
|
533
|
-
),
|
|
533
|
+
), ct = f(
|
|
534
534
|
(t) => {
|
|
535
|
-
|
|
535
|
+
K(ot(t, F));
|
|
536
536
|
},
|
|
537
|
-
[
|
|
538
|
-
),
|
|
537
|
+
[K]
|
|
538
|
+
), dt = f(
|
|
539
539
|
(t) => {
|
|
540
|
-
A?.(
|
|
540
|
+
A?.(ot(t, v || {}));
|
|
541
541
|
},
|
|
542
542
|
[A]
|
|
543
|
-
),
|
|
543
|
+
), ut = f(
|
|
544
544
|
(t) => {
|
|
545
|
-
_?.((
|
|
546
|
-
const
|
|
547
|
-
return
|
|
545
|
+
_?.((i) => {
|
|
546
|
+
const r = t instanceof Function ? t(i) : t;
|
|
547
|
+
return nt?.(r), r;
|
|
548
548
|
});
|
|
549
549
|
},
|
|
550
550
|
[_]
|
|
551
|
-
),
|
|
552
|
-
data:
|
|
553
|
-
columns:
|
|
551
|
+
), k = Ct({
|
|
552
|
+
data: mt,
|
|
553
|
+
columns: st,
|
|
554
554
|
state: {
|
|
555
|
-
expanded:
|
|
556
|
-
rowSelection:
|
|
555
|
+
expanded: et,
|
|
556
|
+
rowSelection: F,
|
|
557
557
|
globalFilter: s,
|
|
558
558
|
rowPinning: v
|
|
559
559
|
},
|
|
560
|
-
onRowSelectionChange:
|
|
561
|
-
onRowPinningChange:
|
|
560
|
+
onRowSelectionChange: ct,
|
|
561
|
+
onRowPinningChange: dt,
|
|
562
562
|
filterFns: {
|
|
563
563
|
fuzzy: $t
|
|
564
564
|
},
|
|
@@ -569,7 +569,7 @@ const bm = ({
|
|
|
569
569
|
getRowId: (t) => t.id,
|
|
570
570
|
enableSubRowSelection: !1,
|
|
571
571
|
//disable sub row selection
|
|
572
|
-
onExpandedChange:
|
|
572
|
+
onExpandedChange: ut,
|
|
573
573
|
getSubRows: (t) => t.subRows,
|
|
574
574
|
getCoreRowModel: Mt(),
|
|
575
575
|
getFilteredRowModel: Et(),
|
|
@@ -582,107 +582,107 @@ const bm = ({
|
|
|
582
582
|
isExpandable: !!g,
|
|
583
583
|
isLoading: l,
|
|
584
584
|
children: J,
|
|
585
|
-
...
|
|
585
|
+
...E
|
|
586
586
|
}),
|
|
587
|
-
[g, l, J,
|
|
587
|
+
[g, l, J, E]
|
|
588
588
|
)
|
|
589
589
|
});
|
|
590
|
-
|
|
591
|
-
x.current =
|
|
592
|
-
}, [
|
|
593
|
-
const { rows:
|
|
594
|
-
(t,
|
|
590
|
+
yt(() => {
|
|
591
|
+
x.current = k;
|
|
592
|
+
}, [k]);
|
|
593
|
+
const { rows: T } = k.getRowModel(), gt = f(
|
|
594
|
+
(t, i, r) => {
|
|
595
595
|
if (!x.current) return;
|
|
596
|
-
const n =
|
|
596
|
+
const n = T[i];
|
|
597
597
|
if (!n || n.original === void 0) return;
|
|
598
|
-
|
|
599
|
-
const m = Object.keys(
|
|
598
|
+
r.preventDefault(), r.stopPropagation();
|
|
599
|
+
const m = Object.keys(F), p = m.includes(t) ? m : [t];
|
|
600
600
|
if (!m.includes(t)) {
|
|
601
|
-
const
|
|
602
|
-
|
|
601
|
+
const c = { [t]: !0 };
|
|
602
|
+
K?.(c);
|
|
603
603
|
}
|
|
604
|
-
const
|
|
605
|
-
(
|
|
606
|
-
|
|
604
|
+
const o = I.flatMap(
|
|
605
|
+
(c) => Vt(
|
|
606
|
+
c(r, {
|
|
607
607
|
rowId: t,
|
|
608
|
-
rowIndex:
|
|
608
|
+
rowIndex: i,
|
|
609
609
|
row: n,
|
|
610
610
|
selectedRows: p,
|
|
611
611
|
isSelected: p.includes(t)
|
|
612
612
|
})
|
|
613
613
|
)
|
|
614
614
|
);
|
|
615
|
-
|
|
615
|
+
o.length > 0 && G(r, o);
|
|
616
616
|
},
|
|
617
|
-
[I,
|
|
618
|
-
),
|
|
619
|
-
count:
|
|
617
|
+
[I, T, F, K, G]
|
|
618
|
+
), P = h(null), j = kt({
|
|
619
|
+
count: T.length,
|
|
620
620
|
estimateSize: () => z || 34,
|
|
621
621
|
//estimate row height for accurate scrollbar dragging
|
|
622
|
-
getScrollElement: () =>
|
|
622
|
+
getScrollElement: () => P.current,
|
|
623
623
|
//measure dynamic row height, except in firefox because it measures table border height incorrectly
|
|
624
624
|
measureElement: z ? () => z : typeof window < "u" && navigator.userAgent.indexOf("Firefox") === -1 ? (t) => t?.getBoundingClientRect().height : void 0,
|
|
625
625
|
overscan: 5
|
|
626
|
-
}),
|
|
626
|
+
}), ft = f(
|
|
627
627
|
(t) => {
|
|
628
|
-
t &&
|
|
628
|
+
t && j.measureElement(t);
|
|
629
629
|
},
|
|
630
|
-
[
|
|
631
|
-
),
|
|
630
|
+
[j]
|
|
631
|
+
), ht = f(
|
|
632
632
|
(t) => {
|
|
633
633
|
if (!D) return;
|
|
634
|
-
const
|
|
635
|
-
n -
|
|
634
|
+
const i = t.currentTarget, { scrollTop: r, scrollHeight: n, clientHeight: m } = i;
|
|
635
|
+
n - r - m < 100 && !l && D();
|
|
636
636
|
},
|
|
637
637
|
[D, l]
|
|
638
|
-
),
|
|
639
|
-
|
|
638
|
+
), Rt = (t) => {
|
|
639
|
+
u && !t.target.closest("tr") && (k.setRowSelection({}), C.current = null);
|
|
640
640
|
};
|
|
641
|
-
return /* @__PURE__ */
|
|
642
|
-
|
|
641
|
+
return /* @__PURE__ */ y.jsxs(
|
|
642
|
+
bt,
|
|
643
643
|
{
|
|
644
|
-
ref:
|
|
645
|
-
onScroll:
|
|
646
|
-
onClick:
|
|
644
|
+
ref: P,
|
|
645
|
+
onScroll: ht,
|
|
646
|
+
onClick: Rt,
|
|
647
647
|
...Y,
|
|
648
|
-
className:
|
|
648
|
+
className: it(Y.className, { isLoading: l, fitContent: rt }),
|
|
649
649
|
children: [
|
|
650
|
-
!
|
|
650
|
+
!d && /* @__PURE__ */ y.jsx("table", { children: /* @__PURE__ */ y.jsx(
|
|
651
651
|
"tbody",
|
|
652
652
|
{
|
|
653
653
|
style: {
|
|
654
|
-
height: `${
|
|
654
|
+
height: `${j?.getTotalSize()}px`
|
|
655
655
|
//tells scrollbar how big the table is
|
|
656
656
|
},
|
|
657
|
-
children:
|
|
658
|
-
const
|
|
659
|
-
return /* @__PURE__ */
|
|
657
|
+
children: j?.getVirtualItems().map((t) => {
|
|
658
|
+
const i = T[t.index];
|
|
659
|
+
return /* @__PURE__ */ y.jsx(
|
|
660
660
|
"tr",
|
|
661
661
|
{
|
|
662
662
|
"data-index": t.index,
|
|
663
|
-
ref:
|
|
664
|
-
id:
|
|
665
|
-
onContextMenu: (
|
|
666
|
-
...
|
|
663
|
+
ref: ft,
|
|
664
|
+
id: i.id,
|
|
665
|
+
onContextMenu: (r) => gt(i.id, t.index, r),
|
|
666
|
+
...M?.row,
|
|
667
667
|
style: {
|
|
668
668
|
transform: `translateY(${t.start}px)`,
|
|
669
669
|
//this should always be a `style` as it changes on scroll
|
|
670
|
-
...
|
|
670
|
+
...M?.row?.style
|
|
671
671
|
// custom styles to be passed
|
|
672
672
|
},
|
|
673
|
-
children:
|
|
673
|
+
children: i.getVisibleCells().map((r) => /* @__PURE__ */ y.jsx("td", { children: Ft(r.column.columnDef.cell, r.getContext()) }, r.id))
|
|
674
674
|
},
|
|
675
|
-
|
|
675
|
+
i.id
|
|
676
676
|
);
|
|
677
677
|
})
|
|
678
678
|
}
|
|
679
679
|
) }),
|
|
680
|
-
!!
|
|
680
|
+
!!d && /* @__PURE__ */ y.jsx(Pt, { error: d })
|
|
681
681
|
]
|
|
682
682
|
}
|
|
683
683
|
);
|
|
684
684
|
};
|
|
685
685
|
export {
|
|
686
|
-
|
|
686
|
+
ym as default
|
|
687
687
|
};
|
|
688
688
|
//# sourceMappingURL=SimpleTable.es.js.map
|