@ynput/ayon-frontend-shared 0.4.2 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (179) hide show
  1. package/dist/ProjectTreeTable.cjs.js +1 -1
  2. package/dist/ProjectTreeTable.es.js +247 -243
  3. package/dist/_virtual/index.cjs22.js +1 -1
  4. package/dist/_virtual/index.cjs23.js +1 -1
  5. package/dist/_virtual/index.cjs24.js +1 -1
  6. package/dist/_virtual/index.cjs4.js +1 -1
  7. package/dist/_virtual/index.cjs5.js +1 -1
  8. package/dist/_virtual/index.cjs6.js +1 -1
  9. package/dist/_virtual/index.cjs8.js +1 -1
  10. package/dist/_virtual/index.es22.js +3 -3
  11. package/dist/_virtual/index.es23.js +5 -5
  12. package/dist/_virtual/index.es24.js +5 -5
  13. package/dist/_virtual/index.es4.js +2 -5
  14. package/dist/_virtual/index.es4.js.map +1 -1
  15. package/dist/_virtual/index.es5.js +5 -2
  16. package/dist/_virtual/index.es5.js.map +1 -1
  17. package/dist/_virtual/index.es6.js +2 -2
  18. package/dist/_virtual/index.es8.js +2 -2
  19. package/dist/api.cjs.js +1 -1
  20. package/dist/api.es.js +446 -445
  21. package/dist/index.cjs.js +1 -1
  22. package/dist/index.es.js +20 -9
  23. package/dist/index.es.js.map +1 -1
  24. package/dist/node_modules/match-sorter/dist/match-sorter.esm.cjs.js +1 -1
  25. package/dist/node_modules/match-sorter/dist/match-sorter.esm.es.js +1 -1
  26. package/dist/node_modules/parse-numeric-range/index.cjs.js +1 -1
  27. package/dist/node_modules/parse-numeric-range/index.es.js +1 -1
  28. package/dist/node_modules/rehype/node_modules/unified/lib/index.cjs.js +1 -1
  29. package/dist/node_modules/rehype/node_modules/unified/lib/index.es.js +2 -2
  30. package/dist/node_modules/rehype/node_modules/vfile/lib/index.cjs.js +1 -1
  31. package/dist/node_modules/rehype/node_modules/vfile/lib/index.es.js +1 -1
  32. package/dist/node_modules/rehype-parse/lib/index.cjs.js +1 -1
  33. package/dist/node_modules/rehype-parse/lib/index.es.js +1 -1
  34. package/dist/node_modules/remove-accents/index.cjs.js +1 -1
  35. package/dist/node_modules/remove-accents/index.es.js +1 -1
  36. package/dist/shared/node_modules/@module-federation/error-codes/dist/index.cjs.js +1 -1
  37. package/dist/shared/node_modules/@module-federation/error-codes/dist/index.es.js +1 -1
  38. package/dist/shared/node_modules/@module-federation/runtime/dist/index.cjs.js +1 -1
  39. package/dist/shared/node_modules/@module-federation/runtime/dist/index.es.js +1 -1
  40. package/dist/shared/node_modules/@module-federation/runtime-core/dist/index.cjs.js +1 -1
  41. package/dist/shared/node_modules/@module-federation/runtime-core/dist/index.es.js +1 -1
  42. package/dist/shared/node_modules/react-is/index.cjs.js +1 -1
  43. package/dist/shared/node_modules/react-is/index.es.js +1 -1
  44. package/dist/shared/src/api/generated/graphql.cjs.js +85 -28
  45. package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
  46. package/dist/shared/src/api/generated/graphql.es.js +129 -68
  47. package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
  48. package/dist/shared/src/api/queries/columnStats/metricTargets.cjs.js +1 -1
  49. package/dist/shared/src/api/queries/columnStats/metricTargets.cjs.js.map +1 -1
  50. package/dist/shared/src/api/queries/columnStats/metricTargets.es.js +36 -36
  51. package/dist/shared/src/api/queries/columnStats/metricTargets.es.js.map +1 -1
  52. package/dist/shared/src/components/Chips/Chips.cjs.js +12 -6
  53. package/dist/shared/src/components/Chips/Chips.cjs.js.map +1 -1
  54. package/dist/shared/src/components/Chips/Chips.es.js +69 -62
  55. package/dist/shared/src/components/Chips/Chips.es.js.map +1 -1
  56. package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.cjs.js +1 -1
  57. package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.cjs.js.map +1 -1
  58. package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.es.js +32 -12
  59. package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.es.js.map +1 -1
  60. package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.cjs.js +2 -2
  61. package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.cjs.js.map +1 -1
  62. package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.es.js +33 -33
  63. package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.es.js.map +1 -1
  64. package/dist/shared/src/components/RemotePage/RemotePageWrapper.cjs.js.map +1 -1
  65. package/dist/shared/src/components/RemotePage/RemotePageWrapper.es.js.map +1 -1
  66. package/dist/shared/src/components/SubtasksManager/SubtasksManagerWrapper.cjs.js +1 -1
  67. package/dist/shared/src/components/SubtasksManager/SubtasksManagerWrapper.cjs.js.map +1 -1
  68. package/dist/shared/src/components/SubtasksManager/SubtasksManagerWrapper.es.js +39 -8
  69. package/dist/shared/src/components/SubtasksManager/SubtasksManagerWrapper.es.js.map +1 -1
  70. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js +1 -1
  71. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js.map +1 -1
  72. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js +32 -31
  73. package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js.map +1 -1
  74. package/dist/shared/src/containers/DetailsPanel/containers/FeedWrapper.cjs.js.map +1 -1
  75. package/dist/shared/src/containers/DetailsPanel/containers/FeedWrapper.es.js.map +1 -1
  76. package/dist/shared/src/containers/Feed/helpers/buildBackendFilter.cjs.js +1 -1
  77. package/dist/shared/src/containers/Feed/helpers/buildBackendFilter.cjs.js.map +1 -1
  78. package/dist/shared/src/containers/Feed/helpers/buildBackendFilter.es.js +24 -18
  79. package/dist/shared/src/containers/Feed/helpers/buildBackendFilter.es.js.map +1 -1
  80. package/dist/shared/src/containers/Feed/helpers/feedFilterAdapter.cjs.js +1 -1
  81. package/dist/shared/src/containers/Feed/helpers/feedFilterAdapter.cjs.js.map +1 -1
  82. package/dist/shared/src/containers/Feed/helpers/feedFilterAdapter.es.js +26 -25
  83. package/dist/shared/src/containers/Feed/helpers/feedFilterAdapter.es.js.map +1 -1
  84. package/dist/shared/src/containers/ListTable/ListTableCell.cjs.js +1 -1
  85. package/dist/shared/src/containers/ListTable/ListTableCell.cjs.js.map +1 -1
  86. package/dist/shared/src/containers/ListTable/ListTableCell.es.js +14 -2
  87. package/dist/shared/src/containers/ListTable/ListTableCell.es.js.map +1 -1
  88. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -1
  89. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
  90. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +125 -126
  91. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
  92. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js +6 -0
  93. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js.map +1 -1
  94. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js +14 -8
  95. package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js.map +1 -1
  96. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
  97. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
  98. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +200 -178
  99. package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
  100. package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js +1 -1
  101. package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js.map +1 -1
  102. package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.es.js +14 -3
  103. package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.es.js.map +1 -1
  104. package/dist/shared/src/containers/ProjectTreeTable/constants.cjs.js +1 -1
  105. package/dist/shared/src/containers/ProjectTreeTable/constants.cjs.js.map +1 -1
  106. package/dist/shared/src/containers/ProjectTreeTable/constants.es.js +6 -3
  107. package/dist/shared/src/containers/ProjectTreeTable/constants.es.js.map +1 -1
  108. package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.cjs.js +1 -1
  109. package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.cjs.js.map +1 -1
  110. package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.es.js +19 -19
  111. package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.es.js.map +1 -1
  112. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js +5 -3
  113. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js.map +1 -1
  114. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js +100 -97
  115. package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js.map +1 -1
  116. package/dist/shared/src/containers/ProjectTreeTable/widgets/DateWidget.cjs.js +9 -1
  117. package/dist/shared/src/containers/ProjectTreeTable/widgets/DateWidget.cjs.js.map +1 -1
  118. package/dist/shared/src/containers/ProjectTreeTable/widgets/DateWidget.es.js +47 -31
  119. package/dist/shared/src/containers/ProjectTreeTable/widgets/DateWidget.es.js.map +1 -1
  120. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js +28 -9
  121. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js.map +1 -1
  122. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js +58 -39
  123. package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js.map +1 -1
  124. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js +53 -25
  125. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js.map +1 -1
  126. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js +150 -103
  127. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js.map +1 -1
  128. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.cjs.js +9 -2
  129. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.cjs.js.map +1 -1
  130. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.es.js +66 -57
  131. package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.es.js.map +1 -1
  132. package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.cjs.js +1 -1
  133. package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.cjs.js.map +1 -1
  134. package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.es.js +9 -8
  135. package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.es.js.map +1 -1
  136. package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js +20 -4
  137. package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js.map +1 -1
  138. package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.es.js +86 -67
  139. package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.es.js.map +1 -1
  140. package/dist/shared/src/containers/ProjectTreeTable/widgets/wrapMode.cjs.js +6 -0
  141. package/dist/shared/src/containers/ProjectTreeTable/widgets/wrapMode.cjs.js.map +1 -0
  142. package/dist/shared/src/containers/ProjectTreeTable/widgets/wrapMode.es.js +11 -0
  143. package/dist/shared/src/containers/ProjectTreeTable/widgets/wrapMode.es.js.map +1 -0
  144. package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js +1 -1
  145. package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js.map +1 -1
  146. package/dist/shared/src/containers/Views/context/ViewsContext.es.js +67 -62
  147. package/dist/shared/src/containers/Views/context/ViewsContext.es.js.map +1 -1
  148. package/dist/shared/src/containers/Views/utils/viewUpdateHelper.cjs.js +1 -1
  149. package/dist/shared/src/containers/Views/utils/viewUpdateHelper.cjs.js.map +1 -1
  150. package/dist/shared/src/containers/Views/utils/viewUpdateHelper.es.js +47 -46
  151. package/dist/shared/src/containers/Views/utils/viewUpdateHelper.es.js.map +1 -1
  152. package/dist/shared/src/context/ProjectContext.cjs.js +1 -1
  153. package/dist/shared/src/context/ProjectContext.cjs.js.map +1 -1
  154. package/dist/shared/src/context/ProjectContext.es.js +1 -1
  155. package/dist/shared/src/context/ProjectContext.es.js.map +1 -1
  156. package/dist/shared/src/util/buildHierarchicalTableRows.cjs.js +1 -1
  157. package/dist/shared/src/util/buildHierarchicalTableRows.cjs.js.map +1 -1
  158. package/dist/shared/src/util/buildHierarchicalTableRows.es.js +36 -33
  159. package/dist/shared/src/util/buildHierarchicalTableRows.es.js.map +1 -1
  160. package/dist/types/api/generated/graphql.d.ts +71 -0
  161. package/dist/types/api/queries/activities/getActivities.d.ts +28 -0
  162. package/dist/types/api/queries/entities/getEntity.d.ts +14 -0
  163. package/dist/types/api/queries/entities/getEntityPanel.d.ts +14 -0
  164. package/dist/types/api/queries/entities/updateEntity.d.ts +14 -0
  165. package/dist/types/api/queries/entityLists/getLists.d.ts +14 -0
  166. package/dist/types/api/queries/overview/getOverview.d.ts +14 -0
  167. package/dist/types/api/queries/project/getProject.d.ts +14 -0
  168. package/dist/types/api/queries/userDashboard/getUserDashboard.d.ts +14 -0
  169. package/dist/types/api/queries/users/getUsers.d.ts +14 -0
  170. package/dist/types/api/queries/versions/getVersionsProducts.d.ts +28 -0
  171. package/dist/types/components/SubtasksManager/SubtasksManagerWrapper.d.ts +4 -1
  172. package/dist/types/containers/Feed/helpers/buildBackendFilter.d.ts +1 -0
  173. package/dist/types/containers/ProjectTreeTable/buildTreeTableColumns.d.ts +1 -0
  174. package/dist/types/containers/ProjectTreeTable/constants.d.ts +3 -0
  175. package/dist/types/containers/ProjectTreeTable/widgets/SubtasksWidget.d.ts +1 -0
  176. package/dist/types/containers/ProjectTreeTable/widgets/wrapMode.d.ts +2 -0
  177. package/dist/types/containers/Views/context/ViewsContext.d.ts +1 -0
  178. package/dist/types/util/buildHierarchicalTableRows.d.ts +2 -0
  179. package/package.json +1 -1
@@ -3,64 +3,63 @@ import { useMemo as D, useRef as ge, useCallback as be, useEffect as me } from "
3
3
  import { useVirtualizer as fn } from "@tanstack/react-virtual";
4
4
  import { useReactTable as pn, filterFns as hn, getSortedRowModel as Cn, getExpandedRowModel as yn, getFilteredRowModel as xn, getCoreRowModel as bn, flexRender as He } from "@tanstack/react-table";
5
5
  import V from "clsx";
6
- import wn, { isEntityExpandable as Sn } from "./buildTreeTableColumns.es.js";
7
- import { TableWrapper as jn, TableContainer as Rn, SoftErrorBanner as vn, TR as ft, TD as Ae, TableHeader as In, ColumnDividers as En, AnimatedEmptyPlaceholder as dt, HeaderCell as pt, TableCellContent as ht, ColumnHeader as Tn, HeaderButtons as Dn, ResizedHandler as Mn } from "./ProjectTreeTable.styled.es.js";
6
+ import wn, { getNameColumnLabel as Sn, isEntityExpandable as jn } from "./buildTreeTableColumns.es.js";
7
+ import { TableWrapper as Rn, TableContainer as vn, SoftErrorBanner as In, TR as ft, TD as Ae, TableHeader as En, ColumnDividers as Tn, AnimatedEmptyPlaceholder as dt, HeaderCell as pt, TableCellContent as ht, ColumnHeader as Dn, HeaderButtons as Mn, ResizedHandler as zn } from "./ProjectTreeTable.styled.es.js";
8
8
  import ct from "./components/HeaderActionButton.es.js";
9
9
  import Pn from "./components/RowDragHandleCellContent.es.js";
10
10
  import "./components/RowSelectionHeader.es.js";
11
11
  import "./components/SelectionCell.es.js";
12
- import { ColumnHeaderMenu as zn } from "./components/ColumnHeaderMenu.es.js";
12
+ import { ColumnHeaderMenu as Ln } from "./components/ColumnHeaderMenu.es.js";
13
13
  import { DragOverlay as Ct, useDndContext as yt } from "@dnd-kit/core";
14
- import { SortableContext as xt, verticalListSortingStrategy as Ln, horizontalListSortingStrategy as Fn, useSortable as bt } from "@dnd-kit/sortable";
14
+ import { SortableContext as xt, verticalListSortingStrategy as Fn, horizontalListSortingStrategy as On, useSortable as bt } from "@dnd-kit/sortable";
15
15
  import { useColumnSettingsContext as wt } from "./context/ColumnSettingsContext.es.js";
16
- import { ROW_SELECTION_COLUMN_ID as F, DRAG_HANDLE_COLUMN_ID as X } from "./constants.es.js";
17
- import { TableFooterRow as On } from "./components/TableFooterRow.es.js";
16
+ import { ROW_SELECTION_COLUMN_ID as F, DRAG_HANDLE_COLUMN_ID as Q } from "./constants.es.js";
17
+ import { TableFooterRow as Hn } from "./components/TableFooterRow.es.js";
18
18
  import { getColumnWidth as Se, getCommonPinningStyles as je } from "./utils/pinningUtils.es.js";
19
- import { EmptyPlaceholder as Pe } from "../../components/EmptyPlaceholder/EmptyPlaceholder.es.js";
19
+ import { EmptyPlaceholder as ze } from "../../components/EmptyPlaceholder/EmptyPlaceholder.es.js";
20
20
  import "../../components/EmptyPlaceholder/EmptyPlaceholderFlex.styled.es.js";
21
- import { InfoMessage as Hn } from "../../components/InfoMessage/InfoMessage.es.js";
22
- import { FilterErrorActions as An } from "../../components/FilterErrorActions/FilterErrorActions.es.js";
21
+ import { InfoMessage as An } from "../../components/InfoMessage/InfoMessage.es.js";
22
+ import { FilterErrorActions as Nn } from "../../components/FilterErrorActions/FilterErrorActions.es.js";
23
23
  import { useCellEditing as St } from "./context/CellEditingContext.es.js";
24
24
  import { useSelectionCellsContext as Le } from "./context/SelectionCellsContext.es.js";
25
- import { ClipboardProvider as Nn } from "./context/ClipboardContext.es.js";
26
- import { useSelectedRowsContext as kn } from "./context/SelectedRowsContext.es.js";
27
- import { useMenuContext as Vn } from "../../context/MenuContext.es.js";
28
- import Bn from "./hooks/useCustomColumnWidthVars.es.js";
29
- import $n from "./hooks/useCellContextMenu.es.js";
30
- import _n from "./hooks/useColumnVirtualization.es.js";
31
- import qn from "./hooks/useKeyboardNavigation.es.js";
32
- import Gn from "./hooks/useDynamicRowHeight.es.js";
33
- import { useProjectDataContext as Kn } from "./context/ProjectDataContext.es.js";
34
- import { isGroupId as Un } from "./hooks/useBuildGroupByTableData.es.js";
25
+ import { ClipboardProvider as kn } from "./context/ClipboardContext.es.js";
26
+ import { useSelectedRowsContext as Vn } from "./context/SelectedRowsContext.es.js";
27
+ import { useMenuContext as Bn } from "../../context/MenuContext.es.js";
28
+ import $n from "./hooks/useCustomColumnWidthVars.es.js";
29
+ import _n from "./hooks/useCellContextMenu.es.js";
30
+ import qn from "./hooks/useColumnVirtualization.es.js";
31
+ import Gn from "./hooks/useKeyboardNavigation.es.js";
32
+ import Kn from "./hooks/useDynamicRowHeight.es.js";
33
+ import { useProjectDataContext as Un } from "./context/ProjectDataContext.es.js";
34
+ import { isGroupId as Wn } from "./hooks/useBuildGroupByTableData.es.js";
35
35
  import { parseCellId as Fe, getCellId as Ne } from "./utils/cellUtils.es.js";
36
- import { generateDummyAttributes as Wn, generateLoadingRows as Jn } from "./utils/loadingUtils.es.js";
37
- import { isTargetReadOnly as Qn, isEntityRestricted as ut } from "./utils/restrictedEntity.es.js";
36
+ import { generateDummyAttributes as Jn, generateLoadingRows as Qn } from "./utils/loadingUtils.es.js";
37
+ import { isTargetReadOnly as Xn, isEntityRestricted as ut } from "./utils/restrictedEntity.es.js";
38
38
  import { createPortal as we } from "react-dom";
39
- import { Icon as jt, Button as ze } from "@ynput/ayon-react-components";
40
- import { useProjectTableContext as Rt, parseRowId as Xn } from "./context/ProjectTableContext.es.js";
39
+ import { Icon as jt, Button as Pe } from "@ynput/ayon-react-components";
40
+ import { useProjectTableContext as Rt, parseRowId as Yn } from "./context/ProjectTableContext.es.js";
41
41
  import "../../components/SearchFilter/filterDates.es.js";
42
42
  import "date-fns";
43
- import { getTableFieldOptions as Yn } from "./utils/getTableFieldOptions.es.js";
44
- import { getReadOnlyLists as Zn } from "./utils/getReadOnlyLists.es.js";
43
+ import { getTableFieldOptions as Zn } from "./utils/getTableFieldOptions.es.js";
44
+ import { getReadOnlyLists as eo } from "./utils/getReadOnlyLists.es.js";
45
45
  import "./utils/columnIds.es.js";
46
- import { isFilterError as eo, getFilterErrorMessage as to, getEntitiesLabelFromScopes as no, extractQueryErrorMessage as oo } from "./utils/filterError.es.js";
47
- import { getEntityViewierIds as io } from "./utils/getEntityViewerIds.es.js";
48
- import { checkColumnVisibility as so, ensureAtLeastOneVisibleColumn as ro } from "./utils/checkColumnVisibility.es.js";
46
+ import { isFilterError as to, getFilterErrorMessage as no, getEntitiesLabelFromScopes as oo, extractQueryErrorMessage as io } from "./utils/filterError.es.js";
47
+ import { getEntityViewierIds as so } from "./utils/getEntityViewerIds.es.js";
48
+ import { checkColumnVisibility as ro, ensureAtLeastOneVisibleColumn as lo } from "./utils/checkColumnVisibility.es.js";
49
49
  import { CSS as Oe } from "../../../../node_modules/@dnd-kit/utilities/dist/utilities.esm.es.js";
50
- import { useProjectContext as lo } from "../../context/ProjectContext.es.js";
51
- import { usePowerpack as ao } from "../../context/PowerpackContext.es.js";
52
- import { setDetailsPanelTabForScope as co } from "../../context/DetailsPanelContext.es.js";
53
- import { useLoadModule as uo } from "../../hooks/useLoadModule.es.js";
50
+ import { useProjectContext as ao } from "../../context/ProjectContext.es.js";
51
+ import { usePowerpack as co } from "../../context/PowerpackContext.es.js";
52
+ import { setDetailsPanelTabForScope as uo } from "../../context/DetailsPanelContext.es.js";
53
+ import { useLoadModule as mo } from "../../hooks/useLoadModule.es.js";
54
54
  import { EDIT_TRIGGER_CLASS as mt } from "./widgets/CellWidget.es.js";
55
- import { toast as mo } from "react-toastify";
56
- import { upperFirst as go } from "lodash";
55
+ import { toast as go } from "react-toastify";
57
56
  const fo = () => null, po = (o, f) => f.some((i) => {
58
57
  if (i.includes("*")) {
59
58
  const g = "^" + i.replace(/[.*+?^${}()|[\]\\]/g, "\\$&").replace(/\\\*/g, ".*") + "$";
60
59
  return new RegExp(g).test(o);
61
60
  }
62
61
  return o === i;
63
- }), ji = ({
62
+ }), Si = ({
64
63
  scope: o,
65
64
  sliceId: f,
66
65
  onScroll: i,
@@ -83,11 +82,11 @@ const fo = () => null, po = (o, f) => f.some((i) => {
83
82
  columnsConfig: c,
84
83
  showColumnSummaries: A = !1,
85
84
  fieldStats: w,
86
- groupFieldStats: Y,
85
+ groupFieldStats: X,
87
86
  fieldStatsLoading: _,
88
- fieldStatsError: Z,
89
- mainCountLabels: P,
90
- onScrollBottomGroupBy: z,
87
+ fieldStatsError: Y,
88
+ mainCountLabels: z,
89
+ onScrollBottomGroupBy: P,
91
90
  // Destructure new prop for group-by load more
92
91
  contextMenuItems: L,
93
92
  // Additional context menu items from props
@@ -116,8 +115,8 @@ const fo = () => null, po = (o, f) => f.some((i) => {
116
115
  columnSummaryScopes: Tt,
117
116
  updateColumnSummaryScope: Dt,
118
117
  columnSummaryFormats: Mt,
119
- updateColumnSummaryFormat: Pt
120
- } = wt(), { productTypes: zt, projectName: Lt, ...Ft } = lo(), {
118
+ updateColumnSummaryFormat: zt
119
+ } = wt(), { productTypes: Pt, projectName: Lt, ...Ft } = ao(), {
121
120
  tableData: ee,
122
121
  attribFields: J,
123
122
  entitiesMap: Ot,
@@ -133,37 +132,37 @@ const fo = () => null, po = (o, f) => f.some((i) => {
133
132
  showHierarchy: $,
134
133
  isFlatFolderView: pe,
135
134
  fetchNextPage: Bt,
136
- scopes: Q,
135
+ scopes: Z,
137
136
  // or entityTypes
138
137
  getEntityById: he,
139
138
  onResetView: $t,
140
139
  overrideGroupBy: Be,
141
140
  loadingLinksEntityIds: _t,
142
141
  queryFilters: qt
143
- } = Rt(), $e = !!W || !!Be, Gt = eo(ve, qt), Kt = to(no(Q)), Ee = Be?.id ?? W?.id, Ut = Array.isArray(Ee) ? Ee[0] : Ee, Wt = $ || ["hierarchy", "folder", "product"].includes(Ut ?? "") || Q.includes("product"), { writableFields: _e } = Kn(), re = v || Ht, {
142
+ } = Rt(), $e = !!W || !!Be, Gt = to(ve, qt), Kt = no(oo(Z)), Ee = Be?.id ?? W?.id, Ut = Array.isArray(Ee) ? Ee[0] : Ee, Wt = $ || ["hierarchy", "folder", "product"].includes(Ut ?? "") || Z.includes("product"), { writableFields: _e } = Un(), re = v || Ht, {
144
143
  statuses: qe = [],
145
144
  folderTypes: Ge = [],
146
145
  taskTypes: Ke = [],
147
146
  tags: Ue = [],
148
147
  linkTypes: We = []
149
148
  } = Ft || {}, le = D(
150
- () => Yn({
149
+ () => Zn({
151
150
  users: ke,
152
151
  statuses: qe,
153
152
  folderTypes: Ge,
154
153
  taskTypes: Ke,
155
- productTypes: zt,
154
+ productTypes: Pt,
156
155
  tags: Ue,
157
- scopes: Q
156
+ scopes: Z
158
157
  }),
159
- [ke, qe, Ge, Ke, Q, Ue]
158
+ [ke, qe, Ge, Ke, Z, Ue]
160
159
  ), Ce = ge(null), Je = ge(0), { registerGrid: Qe } = Le(), { loadingAttrib: Xe, loadingRows: Jt } = D(() => {
161
- const t = Ce.current?.querySelectorAll("tbody tr").length || 0, r = Wn(), C = Jn(
160
+ const t = Ce.current?.querySelectorAll("tbody tr").length || 0, r = Jn(), C = Qn(
162
161
  $ && ee.length > 0 ? Math.min(t, 50) : W ? Math.max(Je.current, 50) : 50
163
162
  );
164
163
  return { loadingAttrib: r, loadingRows: C };
165
164
  }, []), Qt = !Ie || re, { readOnlyColumns: Ye, readOnlyAttribs: Xt } = D(
166
- () => Zn(J, _e, x),
165
+ () => eo(J, _e, x),
167
166
  [J, _e, x]
168
167
  ), { selectedCells: ae } = Le(), { updateEntities: Ze } = St(), Yt = be(
169
168
  async (t, r) => {
@@ -191,7 +190,7 @@ const fo = () => null, po = (o, f) => f.some((i) => {
191
190
  }
192
191
  }
193
192
  if (!a.length) {
194
- console.warn("No entities to update, skipping updateEntities call."), mo.warn("No entities to update.");
193
+ console.warn("No entities to update, skipping updateEntities call."), go.warn("No entities to update.");
195
194
  return;
196
195
  }
197
196
  await Ze(a, !0);
@@ -200,9 +199,9 @@ const fo = () => null, po = (o, f) => f.some((i) => {
200
199
  ), et = D(
201
200
  () => Ie ? J : Xe,
202
201
  [J, Xe, Ie]
203
- ), Zt = () => Q.includes("version") ? "Product / Version" : Q.map((t) => go(t)).join(" / "), te = D(() => {
202
+ ), Zt = () => Sn(Z), te = D(() => {
204
203
  const t = wn({
205
- scopes: Q,
204
+ scopes: Z,
206
205
  attribs: et,
207
206
  links: We,
208
207
  includeLinks: p,
@@ -217,7 +216,7 @@ const fo = () => null, po = (o, f) => f.some((i) => {
217
216
  });
218
217
  return y && n ? [
219
218
  {
220
- id: X,
219
+ id: Q,
221
220
  header: () => null,
222
221
  cell: () => null,
223
222
  // Content rendered by TableBodyRow
@@ -233,7 +232,7 @@ const fo = () => null, po = (o, f) => f.some((i) => {
233
232
  ...t
234
233
  ] : t;
235
234
  }, [
236
- Q,
235
+ Z,
237
236
  JSON.stringify(et),
238
237
  // columnAttribs is unstable between renders
239
238
  $,
@@ -257,8 +256,8 @@ const fo = () => null, po = (o, f) => f.some((i) => {
257
256
  const t = { ...s };
258
257
  return te.forEach((r) => {
259
258
  const C = r.visible;
260
- r.id && t[r.id] === void 0 && (C !== void 0 ? t[r.id] = C : t[r.id] = so({}, r.id, ie));
261
- }), ro(t, te.map((r) => r.id).filter(Boolean));
259
+ r.id && t[r.id] === void 0 && (C !== void 0 ? t[r.id] = C : t[r.id] = ro({}, r.id, ie));
260
+ }), lo(t, te.map((r) => r.id).filter(Boolean));
262
261
  }, [s, ie, te]), j = pn({
263
262
  data: Qt ? Jt : ee,
264
263
  columns: te,
@@ -297,9 +296,9 @@ const fo = () => null, po = (o, f) => f.some((i) => {
297
296
  sorting: fe,
298
297
  columnPinning: (() => {
299
298
  const t = [];
300
- y && t.push(X), t.push(F);
299
+ y && t.push(Q), t.push(F);
301
300
  const r = (d.left || []).filter(
302
- (a) => a !== X && a !== F
301
+ (a) => a !== Q && a !== F
303
302
  );
304
303
  return t.push(...r), {
305
304
  left: [...new Set(t)],
@@ -333,7 +332,7 @@ const fo = () => null, po = (o, f) => f.some((i) => {
333
332
  });
334
333
  Qe(t, C);
335
334
  }, [ne, j.getAllLeafColumns(), d, F, Qe]);
336
- const ye = j.getVisibleLeafColumns(), { columnVirtualizer: de, virtualPaddingLeft: ce, virtualPaddingRight: ue } = _n({
335
+ const ye = j.getVisibleLeafColumns(), { columnVirtualizer: de, virtualPaddingLeft: ce, virtualPaddingRight: ue } = qn({
337
336
  visibleColumns: ye,
338
337
  tableContainerRef: Ce,
339
338
  columnPinning: d,
@@ -349,7 +348,7 @@ const fo = () => null, po = (o, f) => f.some((i) => {
349
348
  tt.current[m.id] !== H && (r[m.id] = H, C = !0, tt.current[m.id] = H);
350
349
  }), C && T(r);
351
350
  }, [nt, T, N, ye, j]);
352
- const ot = Bn(j, S), { powerLicense: it } = ao(), [tn, { isLoaded: st, isLoading: rt }] = uo({
351
+ const ot = $n(j, S), { powerLicense: it } = co(), [tn, { isLoaded: st, isLoading: rt }] = mo({
353
352
  addon: "powerpack",
354
353
  remote: "views",
355
354
  module: "SummaryCellContent",
@@ -359,13 +358,13 @@ const fo = () => null, po = (o, f) => f.some((i) => {
359
358
  const t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set();
360
359
  for (const C of ae) {
361
360
  const { rowId: a, colId: m } = Fe(C) || {};
362
- if (!a || Un(a)) continue;
361
+ if (!a || Wn(a)) continue;
363
362
  const H = he(a)?.entityId;
364
363
  H && (m === F ? r.add(H) : t.add(H));
365
364
  }
366
365
  return t.size || r.size;
367
- }, [ae, he]), { getRowHeight: rn, defaultRowHeight: lt } = Gn(), ln = D(() => J.reduce((t, r) => (r.data?.enum?.length && (t[r.name] = r.data?.enum), t), {}), [J]), an = D(() => ee.map((t) => t.id), [ee]), dn = D(() => l.filter(
368
- (t) => t !== X && t !== F
366
+ }, [ae, he]), { getRowHeight: rn, defaultRowHeight: lt } = Kn(), ln = D(() => J.reduce((t, r) => (r.data?.enum?.length && (t[r.name] = r.data?.enum), t), {}), [J]), an = D(() => ee.map((t) => t.id), [ee]), dn = D(() => l.filter(
367
+ (t) => t !== Q && t !== F
369
368
  ), [l]), cn = D(() => !b || !y ? null : ee.find((t) => t.id === b), [b, ee, y]), un = be(
370
369
  (t) => {
371
370
  if (i?.(t), u) {
@@ -375,22 +374,22 @@ const fo = () => null, po = (o, f) => f.some((i) => {
375
374
  C - a - m < 500 && !re && u(t);
376
375
  }
377
376
  }
378
- if (z && W) {
377
+ if (P && W) {
379
378
  const m = t.currentTarget?.querySelector(".load-more")?.getAttribute("id")?.split("-")[2];
380
- m && z(m);
379
+ m && P(m);
381
380
  }
382
381
  },
383
- [i, u, z, $, W, re]
382
+ [i, u, P, $, W, re]
384
383
  ), at = /* @__PURE__ */ e.jsx(
385
- Nn,
384
+ kn,
386
385
  {
387
386
  entitiesMap: Ot,
388
387
  columnEnums: { ...le, ...ln },
389
388
  columnReadOnly: Xt,
390
389
  visibleColumns: ye,
391
- children: /* @__PURE__ */ e.jsxs(jn, { ...B, children: [
390
+ children: /* @__PURE__ */ e.jsxs(Rn, { ...B, children: [
392
391
  /* @__PURE__ */ e.jsx(
393
- Rn,
392
+ vn,
394
393
  {
395
394
  ref: Ce,
396
395
  style: { height: "100%", padding: 0 },
@@ -460,7 +459,7 @@ const fo = () => null, po = (o, f) => f.some((i) => {
460
459
  }
461
460
  ),
462
461
  nn && !ve && /* @__PURE__ */ e.jsx(
463
- On,
462
+ Hn,
464
463
  {
465
464
  columnVirtualizer: de,
466
465
  table: j,
@@ -468,21 +467,21 @@ const fo = () => null, po = (o, f) => f.some((i) => {
468
467
  virtualPaddingRight: ue,
469
468
  isLoading: on,
470
469
  statsLoading: !!_,
471
- error: Z,
470
+ error: Y,
472
471
  renderCellContent: (t) => /* @__PURE__ */ e.jsx(
473
472
  tn,
474
473
  {
475
474
  columnId: t,
476
475
  attribs: J,
477
476
  fieldStats: w,
478
- groupFieldStats: Y,
477
+ groupFieldStats: X,
479
478
  calc: It[t],
480
479
  onCalcChange: (r) => Et(t, r),
481
480
  format: Mt[t],
482
- onFormatChange: (r) => Pt(t, r),
481
+ onFormatChange: (r) => zt(t, r),
483
482
  scope: Tt[t],
484
483
  onScopeChange: (r) => Dt(t, r),
485
- mainCountLabels: P,
484
+ mainCountLabels: z,
486
485
  fieldOptions: le,
487
486
  parentScopeApplicable: Wt,
488
487
  selectedCount: sn
@@ -495,7 +494,7 @@ const fo = () => null, po = (o, f) => f.some((i) => {
495
494
  )
496
495
  }
497
496
  ),
498
- Ve && /* @__PURE__ */ e.jsx(vn, { children: /* @__PURE__ */ e.jsx(Hn, { variant: "warning", message: Ve, action: At }) })
497
+ Ve && /* @__PURE__ */ e.jsx(In, { children: /* @__PURE__ */ e.jsx(An, { variant: "warning", message: Ve, action: At }) })
499
498
  ] })
500
499
  }
501
500
  ), mn = y && b && we(
@@ -525,7 +524,7 @@ const fo = () => null, po = (o, f) => f.some((i) => {
525
524
  alignItems: "center",
526
525
  height: lt
527
526
  };
528
- return a.column.id === X ? /* @__PURE__ */ e.jsxs(
527
+ return a.column.id === Q ? /* @__PURE__ */ e.jsxs(
529
528
  Ae,
530
529
  {
531
530
  style: { ...m, justifyContent: "center" },
@@ -594,7 +593,7 @@ const fo = () => null, po = (o, f) => f.some((i) => {
594
593
  sortableRows: R,
595
594
  columnOrderIds: I,
596
595
  ...M
597
- }) => /* @__PURE__ */ e.jsx(In, { ...M, children: f.getHeaderGroups().map((p) => /* @__PURE__ */ e.jsx(
596
+ }) => /* @__PURE__ */ e.jsx(En, { ...M, children: f.getHeaderGroups().map((p) => /* @__PURE__ */ e.jsx(
598
597
  Co,
599
598
  {
600
599
  columnVirtualizer: o,
@@ -618,13 +617,13 @@ const fo = () => null, po = (o, f) => f.some((i) => {
618
617
  columnOrderIds: I
619
618
  }) => {
620
619
  const M = o.getVirtualItems(), { active: p } = yt(), v = p?.data?.current?.type === "column", E = v && (p?.data?.current?.isPinned ?? !1);
621
- return /* @__PURE__ */ e.jsxs(Tn, { style: { display: "flex" }, children: [
620
+ return /* @__PURE__ */ e.jsxs(Dn, { style: { display: "flex" }, children: [
622
621
  i ? (
623
622
  //fake empty column to the left for virtualization scroll padding
624
623
  /* @__PURE__ */ e.jsx("th", { style: { display: "flex", width: i } })
625
624
  ) : null,
626
- /* @__PURE__ */ e.jsx(xt, { items: I, strategy: Fn, children: M.map((n) => {
627
- const h = f.headers[n.index], y = h.id !== X && h.id !== F;
625
+ /* @__PURE__ */ e.jsx(xt, { items: I, strategy: On, children: M.map((n) => {
626
+ const h = f.headers[n.index], y = h.id !== Q && h.id !== F;
628
627
  return /* @__PURE__ */ e.jsx(
629
628
  yo,
630
629
  {
@@ -663,10 +662,10 @@ const fo = () => null, po = (o, f) => f.some((i) => {
663
662
  isColumnDrag: v,
664
663
  isDraggedColumnPinned: E
665
664
  }) => {
666
- const { column: n } = o, h = n.getIsSorted(), y = `column-header-menu-${n.id}`, { menuOpen: O } = Vn(), b = O === y, { columnPinning: c, sorting: A, updateSorting: w } = wt(), Y = () => {
665
+ const { column: n } = o, h = n.getIsSorted(), y = `column-header-menu-${n.id}`, { menuOpen: O } = Bn(), b = O === y, { columnPinning: c, sorting: A, updateSorting: w } = wt(), X = () => {
667
666
  const s = A?.find((l) => l.id === n.id), d = s ? s.desc ? [] : [{ id: n.id, desc: !0 }] : [{ id: n.id, desc: !1 }];
668
667
  w(d);
669
- }, _ = c.left?.includes(n.id) || !1, { attributes: Z, listeners: P, setNodeRef: z, transform: L, transition: T, isDragging: N } = bt({
668
+ }, _ = c.left?.includes(n.id) || !1, { attributes: Y, listeners: z, setNodeRef: P, transform: L, transition: T, isDragging: N } = bt({
670
669
  id: n.id,
671
670
  data: { type: "column", isPinned: _ },
672
671
  disabled: !p
@@ -690,7 +689,7 @@ const fo = () => null, po = (o, f) => f.some((i) => {
690
689
  return /* @__PURE__ */ e.jsx(
691
690
  pt,
692
691
  {
693
- ref: z,
692
+ ref: P,
694
693
  className: V(o.id, "shimmer-dark", {
695
694
  loading: f,
696
695
  "last-pinned-left": n.getIsPinned() === "left" && n.getIsLastColumn("left"),
@@ -707,13 +706,13 @@ const fo = () => null, po = (o, f) => f.some((i) => {
707
706
  ht,
708
707
  {
709
708
  className: V("bold", "header"),
710
- ...p ? { ...Z, ...P } : {},
709
+ ...p ? { ...Y, ...z } : {},
711
710
  children: [
712
711
  He(n.columnDef.header, o.getContext()),
713
712
  I && /* @__PURE__ */ e.jsx(jt, { icon: "lock", "data-tooltip": "You only have permission to read this column." }),
714
- /* @__PURE__ */ e.jsxs(Dn, { className: "actions", $isOpen: b, ...B, children: [
713
+ /* @__PURE__ */ e.jsxs(Mn, { className: "actions", $isOpen: b, ...B, children: [
715
714
  (u || x || g) && /* @__PURE__ */ e.jsx(
716
- zn,
715
+ Ln,
717
716
  {
718
717
  className: "header-menu",
719
718
  header: o,
@@ -733,11 +732,11 @@ const fo = () => null, po = (o, f) => f.some((i) => {
733
732
  style: {
734
733
  transform: h === "desc" ? "rotate(180deg) scaleX(-1)" : "none"
735
734
  },
736
- onClick: Y,
735
+ onClick: X,
737
736
  selected: !!n.getIsSorted()
738
737
  }
739
738
  ),
740
- n.getIsPinned() && n.id !== F && n.id !== X && /* @__PURE__ */ e.jsx(
739
+ n.getIsPinned() && n.id !== F && n.id !== Q && /* @__PURE__ */ e.jsx(
741
740
  ct,
742
741
  {
743
742
  icon: "push_pin",
@@ -748,7 +747,7 @@ const fo = () => null, po = (o, f) => f.some((i) => {
748
747
  )
749
748
  ] }),
750
749
  R && /* @__PURE__ */ e.jsx(
751
- Mn,
750
+ zn,
752
751
  {
753
752
  onDoubleClick: () => n.resetSize(),
754
753
  onMouseDown: (s) => {
@@ -789,37 +788,37 @@ const fo = () => null, po = (o, f) => f.some((i) => {
789
788
  contextMenuItems: A,
790
789
  onVisibleRowsChange: w
791
790
  }) => {
792
- const Y = D(() => f.getAllColumns().map((l) => {
791
+ const X = D(() => f.getAllColumns().map((l) => {
793
792
  const S = l.id, G = l.columnDef.header;
794
793
  return typeof G == "string" || typeof G == "number" ? { label: G, id: S } : null;
795
- }).filter(Boolean), [f.getAllColumns()]), Z = $n({
794
+ }).filter(Boolean), [f.getAllColumns()]), Y = _n({
796
795
  attribs: R,
797
796
  onOpenNew: I,
798
- headerLabels: Y,
797
+ headerLabels: X,
799
798
  contextMenuItems: A
800
- }).handleTableBodyContextMenu, { rows: P } = f.getRowModel(), z = fn({
801
- count: P.length,
799
+ }).handleTableBodyContextMenu, { rows: z } = f.getRowModel(), P = fn({
800
+ count: z.length,
802
801
  estimateSize: (s) => {
803
- const d = P[s];
802
+ const d = z[s];
804
803
  return d ? O(d.original) : b;
805
804
  },
806
805
  getScrollElement: () => i.current,
807
806
  //measure dynamic row height, except in firefox because it measures table border height incorrectly
808
807
  measureElement: typeof window < "u" && navigator.userAgent.indexOf("Firefox") === -1 ? (s) => s?.getBoundingClientRect().height : void 0,
809
808
  overscan: 5
810
- }), L = z.getVirtualItems(), T = ge("");
809
+ }), L = P.getVirtualItems(), T = ge("");
811
810
  me(() => {
812
811
  if (!w) return;
813
- const s = L.map((S) => P[S.index] && Xn(P[S.index].id)).filter(Boolean), d = Array.from(new Set(s)), l = d.join(",");
812
+ const s = L.map((S) => z[S.index] && Yn(z[S.index].id)).filter(Boolean), d = Array.from(new Set(s)), l = d.join(",");
814
813
  l !== T.current && (T.current = l, w(d));
815
- }, [L, P, w]);
814
+ }, [L, z, w]);
816
815
  const N = be(
817
816
  (s) => {
818
- s && z.measureElement(s);
817
+ s && P.measureElement(s);
819
818
  },
820
- [z]
819
+ [P]
821
820
  );
822
- qn();
821
+ Gn();
823
822
  const q = f.getVisibleLeafColumns(), k = D(() => {
824
823
  const s = [], d = [];
825
824
  for (let l = 0; l < q.length - 1; l++) {
@@ -831,15 +830,15 @@ const fo = () => null, po = (o, f) => f.some((i) => {
831
830
  "tbody",
832
831
  {
833
832
  style: {
834
- minHeight: `${z.getTotalSize()}px`,
833
+ minHeight: `${P.getTotalSize()}px`,
835
834
  position: "relative",
836
835
  display: "grid"
837
836
  },
838
- onContextMenu: Z,
837
+ onContextMenu: Y,
839
838
  children: [
840
- /* @__PURE__ */ e.jsx(En, { "aria-hidden": !0, children: k.map((s, d) => /* @__PURE__ */ e.jsx("div", { style: { left: s } }, d)) }),
839
+ /* @__PURE__ */ e.jsx(Tn, { "aria-hidden": !0, children: k.map((s, d) => /* @__PURE__ */ e.jsx("div", { style: { left: s } }, d)) }),
841
840
  L.map((s) => {
842
- const d = P[s.index];
841
+ const d = z[s.index];
843
842
  return d ? /* @__PURE__ */ e.jsx(
844
843
  bo,
845
844
  {
@@ -863,9 +862,9 @@ const fo = () => null, po = (o, f) => f.some((i) => {
863
862
  }
864
863
  );
865
864
  return v ? i.current && we(
866
- /* @__PURE__ */ e.jsx(dt, { children: E ? /* @__PURE__ */ e.jsxs(Pe, { message: n, icon: "filter_alt_off", children: [
865
+ /* @__PURE__ */ e.jsx(dt, { children: E ? /* @__PURE__ */ e.jsxs(ze, { message: n, icon: "filter_alt_off", children: [
867
866
  c && /* @__PURE__ */ e.jsx(
868
- ze,
867
+ Pe,
869
868
  {
870
869
  variant: "filled",
871
870
  label: "Reset filters",
@@ -873,9 +872,9 @@ const fo = () => null, po = (o, f) => f.some((i) => {
873
872
  onClick: c
874
873
  }
875
874
  ),
876
- /* @__PURE__ */ e.jsx(An, { errorMessage: oo(v) })
877
- ] }) : /* @__PURE__ */ e.jsx(Pe, { message: "No items found", error: v, children: c && /* @__PURE__ */ e.jsx(
878
- ze,
875
+ /* @__PURE__ */ e.jsx(Nn, { errorMessage: io(v) })
876
+ ] }) : /* @__PURE__ */ e.jsx(ze, { message: "No items found", error: v, children: c && /* @__PURE__ */ e.jsx(
877
+ Pe,
879
878
  {
880
879
  variant: "filled",
881
880
  label: "Reset filters",
@@ -884,10 +883,10 @@ const fo = () => null, po = (o, f) => f.some((i) => {
884
883
  }
885
884
  ) }) }),
886
885
  i.current
887
- ) : !P.length && !h ? i.current && we(
888
- /* @__PURE__ */ e.jsx(dt, { children: /* @__PURE__ */ e.jsx(Pe, { message: "No items found", children: c && /* @__PURE__ */ e.jsx(ze, { variant: "filled", label: "Reset filters", icon: "replay", onClick: c }) }) }),
886
+ ) : !z.length && !h ? i.current && we(
887
+ /* @__PURE__ */ e.jsx(dt, { children: /* @__PURE__ */ e.jsx(ze, { message: "No items found", children: c && /* @__PURE__ */ e.jsx(Pe, { variant: "filled", label: "Reset filters", icon: "replay", onClick: c }) }) }),
889
888
  i.current
890
- ) : p ? /* @__PURE__ */ e.jsx(xt, { items: M, strategy: Ln, children: B }) : B;
889
+ ) : p ? /* @__PURE__ */ e.jsx(xt, { items: M, strategy: Fn, children: B }) : B;
891
890
  }, bo = ({
892
891
  row: o,
893
892
  showHierarchy: f,
@@ -944,7 +943,7 @@ const fo = () => null, po = (o, f) => f.some((i) => {
944
943
  const c = i[b.index];
945
944
  if (!c) return null;
946
945
  const A = Ne(o.id, c.column.id);
947
- return c.column.id === X ? /* @__PURE__ */ e.jsx(
946
+ return c.column.id === Q ? /* @__PURE__ */ e.jsx(
948
947
  Ae,
949
948
  {
950
949
  style: {
@@ -1016,10 +1015,10 @@ const fo = () => null, po = (o, f) => f.some((i) => {
1016
1015
  getCellBorderClasses: c,
1017
1016
  clearSelection: A,
1018
1017
  selectedCells: w,
1019
- setSelectedCells: Y,
1018
+ setSelectedCells: X,
1020
1019
  setAnchorCell: _,
1021
- setFocusedCellId: Z
1022
- } = Le(), { isRowSelected: P } = kn(), { isEditing: z, setEditingCellId: L, editingCellId: T } = St(), N = c(i), k = o.column.getIsPinned() === "left" && o.column.getIsLastColumn("left"), B = o.column.id === F, s = o.row.original.entityType === "group", d = w.size > 1;
1020
+ setFocusedCellId: Y
1021
+ } = Le(), { isRowSelected: z } = Vn(), { isEditing: P, setEditingCellId: L, editingCellId: T } = St(), N = c(i), k = o.column.getIsPinned() === "left" && o.column.getIsLastColumn("left"), B = o.column.id === F, s = o.row.original.entityType === "group", d = w.size > 1;
1023
1022
  return /* @__PURE__ */ e.jsx(
1024
1023
  Ae,
1025
1024
  {
@@ -1031,10 +1030,10 @@ const fo = () => null, po = (o, f) => f.some((i) => {
1031
1030
  {
1032
1031
  selected: v(i),
1033
1032
  focused: E(i),
1034
- editing: z(i),
1033
+ editing: P(i),
1035
1034
  "last-pinned-left": k,
1036
- "selected-row": P(f),
1037
- expandable: !!o.row.originalSubRows && Sn(o.row.original.entityType),
1035
+ "selected-row": z(f),
1036
+ expandable: !!o.row.originalSubRows && jn(o.row.original.entityType),
1038
1037
  "multiple-selected": d
1039
1038
  },
1040
1039
  u,
@@ -1050,22 +1049,22 @@ const fo = () => null, po = (o, f) => f.some((i) => {
1050
1049
  const S = l.target;
1051
1050
  if (S.closest(".expander") || S.closest(".options")) return;
1052
1051
  if (l.currentTarget.focus(), l.detail === 2) {
1053
- if (Qn(l) && o.column.id !== "comments" || ut(o.row.original.entityType) || s) {
1052
+ if (Xn(l) && o.column.id !== "comments" || ut(o.row.original.entityType) || s) {
1054
1053
  l.preventDefault();
1055
1054
  return;
1056
1055
  }
1057
1056
  if (["name", "comments"].includes(o.column.id) && !S.closest(".expander")) {
1058
- o.column.id === "comments" && co("overview", "feed");
1057
+ o.column.id === "comments" && uo("overview", "feed");
1059
1058
  const U = Ne(o.row.id, F), oe = l.metaKey || l.ctrlKey, ie = Fe(U);
1060
- Y((Re) => {
1059
+ X((Re) => {
1061
1060
  const se = oe ? new Set(Re) : /* @__PURE__ */ new Set();
1062
1061
  return se.add(U), se.add(i), se;
1063
- }), ie && (_(ie), Z(U));
1062
+ }), ie && (_(ie), Y(U));
1064
1063
  } else if (o.column.id === "thumbnail") {
1065
1064
  if (p) {
1066
1065
  const U = M(o.row.original.entityId || o.row.id);
1067
1066
  if (U) {
1068
- const oe = io(U);
1067
+ const oe = so(U);
1069
1068
  p(oe, { quickView: !0 });
1070
1069
  }
1071
1070
  }
@@ -1119,6 +1118,6 @@ const fo = () => null, po = (o, f) => f.some((i) => {
1119
1118
  );
1120
1119
  };
1121
1120
  export {
1122
- ji as ProjectTreeTable
1121
+ Si as ProjectTreeTable
1123
1122
  };
1124
1123
  //# sourceMappingURL=ProjectTreeTable.es.js.map