@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
@@ -1,4 +1,4 @@
1
- import { j as u } from "../../../../_virtual/jsx-runtime.es.js";
1
+ import { j as p } from "../../../../_virtual/jsx-runtime.es.js";
2
2
  import { sortingFns as K } from "@tanstack/react-table";
3
3
  import "./widgets/CollapsedWidget.es.js";
4
4
  import "./widgets/DateWidget.es.js";
@@ -112,33 +112,56 @@ import "../../api/queries/views/getViews.es.js";
112
112
  import "../../api/queries/views/updateViews.es.js";
113
113
  import "../../api/queries/watchers/getWatchers.es.js";
114
114
  import "../../api/queries/uris/getUris.es.js";
115
- import "../../components/LinksManager/CellEditingDialog.es.js";
115
+ import "../../context/RemoteModulesContext.es.js";
116
116
  import "react";
117
+ import "../../../../_virtual/runtime.es.js";
118
+ import "../../../../_virtual/semver.es.js";
119
+ import "../../context/PowerpackContextInstance.es.js";
120
+ import "../../context/UriContext.es.js";
121
+ import "../../context/DetailsPanelContextInstance.es.js";
122
+ import { upperFirst as oe } from "lodash";
123
+ import "react-toastify";
124
+ import { getEntityTypeIcon as Z } from "../../util/getEntityTypeIcon.es.js";
125
+ import "uuid";
126
+ import { ROW_SELECTION_COLUMN_ID as q } from "./constants.es.js";
127
+ import "../../util/pubsub.es.js";
128
+ import "../../context/SubtasksModulesContextInstance.es.js";
129
+ import "../../context/ThumbnailUploaderContext.es.js";
130
+ import "../../context/SettingsPanelContext.es.js";
131
+ import "../../context/pip/PiPProvider.es.js";
132
+ import "react-dom";
133
+ import "../../context/pip/PiPWrapper.es.js";
134
+ import "../../context/AddonProjectContext.es.js";
135
+ import "../../context/AddonContext.es.js";
136
+ import "../../context/MenuContext.es.js";
137
+ import "../../context/WebsocketContext.es.js";
138
+ import "../../context/GlobalContext.es.js";
139
+ import "../../context/ProjectContext.es.js";
140
+ import "../../context/ProjectFoldersContextInstance.es.js";
141
+ import "../../context/EntityUpdatesContextInstance.es.js";
142
+ import "react-redux";
143
+ import "../Views/ViewsMenu/ViewsMenu.es.js";
144
+ import { Icon as J } from "@ynput/ayon-react-components";
145
+ import "../Views/context/ViewsContextInstance.es.js";
146
+ import "../../context/DeleteEntitiesContext.es.js";
147
+ import "../../components/LinksManager/CellEditingDialog.es.js";
117
148
  import "../../components/LinksManager/LinksManager.styled.es.js";
118
149
  import "short-uuid";
119
- import { ROW_SELECTION_COLUMN_ID as Z } from "./constants.es.js";
120
- import { Icon as q } from "@ynput/ayon-react-components";
121
150
  import "../../components/SearchFilter/filterDates.es.js";
122
151
  import "date-fns";
123
152
  import { normalizeColumnId as R, ENTITY_COLUMN_IDS as L } from "./utils/columnIds.es.js";
124
153
  import { getCellId as U, getCellValue as $ } from "./utils/cellUtils.es.js";
125
- import { getEntityTypeIcon as J } from "../../util/getEntityTypeIcon.es.js";
126
- import { isEntityRestricted as B, READ_ONLY as oe } from "./utils/restrictedEntity.es.js";
127
- import "../../context/ProjectContext.es.js";
128
- import { NEXT_PAGE_ID as h, parseGroupId as de } from "./hooks/useBuildGroupByTableData.es.js";
154
+ import { isEntityRestricted as B, READ_ONLY as de } from "./utils/restrictedEntity.es.js";
155
+ import { NEXT_PAGE_ID as h, parseGroupId as pe } from "./hooks/useBuildGroupByTableData.es.js";
129
156
  import { useColumnSettingsContext as ue } from "./context/ColumnSettingsContext.es.js";
130
157
  import "./context/ProjectTableContextInstance.es.js";
131
158
  import "./widgets/EmptyWidget.es.js";
132
159
  import "./widgets/ErrorWidget.es.js";
133
- import { MetaWidget as pe } from "./widgets/MetaWidget.es.js";
134
- import { TableCellContent as G, LinkColumnHeader as me } from "./ProjectTreeTable.styled.es.js";
160
+ import { MetaWidget as me } from "./widgets/MetaWidget.es.js";
161
+ import { TableCellContent as G, LinkColumnHeader as ge } from "./ProjectTreeTable.styled.es.js";
135
162
  import b from "clsx";
136
- import { SelectionCell as ge } from "./components/SelectionCell.es.js";
137
- import ce from "./components/RowSelectionHeader.es.js";
138
- import "react-toastify";
139
- import { upperFirst as ye } from "lodash";
140
- import "uuid";
141
- import "../../util/pubsub.es.js";
163
+ import { SelectionCell as ce } from "./components/SelectionCell.es.js";
164
+ import ye from "./components/RowSelectionHeader.es.js";
142
165
  import "../Feed/components/ActivityCheckbox/ActivityCheckbox.styled.es.js";
143
166
  import "../Feed/components/ActivityReference/ActivityReference.styled.es.js";
144
167
  import "../Feed/components/ActivityComment/ActivityComment.styled.es.js";
@@ -151,13 +174,10 @@ import "./context/SelectedRowsContext.es.js";
151
174
  import "./context/DetailsPanelEntityContext.es.js";
152
175
  /* empty css */
153
176
  import "../ContextMenu/ContextMenuContext.es.js";
154
- import "../../context/DeleteEntitiesContext.es.js";
155
- import "../../context/GlobalContext.es.js";
156
177
  import "./context/ProjectDataContextInstance.es.js";
157
- import "../../context/ProjectFoldersContextInstance.es.js";
158
178
  import fe from "./widgets/LoadMoreWidget.es.js";
159
179
  import { getColumnDisplayConfig as he } from "./types/columnConfig.es.js";
160
- const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
180
+ const Te = (t) => ["folder", "product"].includes(t), T = 50, c = {
161
181
  thumbnail: "Thumbnail",
162
182
  status: "Status",
163
183
  entityType: "Entity type",
@@ -178,7 +198,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
178
198
  updatedAt: "Updated at",
179
199
  subtasks: "Subtasks",
180
200
  comments: "Latest comments"
181
- }, v = (n, d = []) => n === "subType" && d.some((o) => ["product", "version"].includes(o)) ? "Product type" : c[R(n)] || n, j = {
201
+ }, v = (t, l = []) => t === "subType" && l.some((d) => ["product", "version"].includes(d)) ? "Product type" : c[R(t)] || t, j = {
182
202
  thumbnail: { enabled: !1, label: c.thumbnail },
183
203
  name: { sortKey: "name", enabled: !0, label: "Name" },
184
204
  entityType: { enabled: !1, label: c.entityType },
@@ -256,43 +276,43 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
256
276
  updatedAt: { sortKey: "updatedAt", enabled: !0, label: c.updatedAt },
257
277
  subtasks: { enabled: !1, label: c.subtasks },
258
278
  comments: { enabled: !1, label: c.comments }
259
- }, In = (n, d = []) => Object.entries(j).filter(
260
- ([, o]) => o.enabled && (!o.scopes || !n || o.scopes.some((p) => n.includes(p)))
261
- ).map(([o, p]) => ({
262
- id: o,
263
- label: d.find((I) => R(I.value) === o)?.label || v(o, n)
264
- })), ve = (n) => j[R(n)]?.enabled ?? !n.startsWith("link_"), Sn = (n, d = !0, o) => {
265
- if (!n) return;
266
- const p = R(n);
267
- if (p === "name" && !d) return "path";
268
- if (p === "subType") {
269
- if (o === "folder") return "folderType";
270
- if (o === "product" || o === "version") return "productType";
271
- if (o === "task") return "taskType";
279
+ }, Vn = (t) => t.includes("version") ? "Version / Product" : t.map((l) => l.charAt(0).toUpperCase() + l.slice(1)).join(" / "), $n = (t, l = []) => Object.entries(j).filter(
280
+ ([, d]) => d.enabled && (!d.scopes || !t || d.scopes.some((u) => t.includes(u)))
281
+ ).map(([d, u]) => ({
282
+ id: d,
283
+ label: l.find((I) => R(I.value) === d)?.label || v(d, t)
284
+ })), ve = (t) => j[R(t)]?.enabled ?? !t.startsWith("link_"), Wn = (t, l = !0, d) => {
285
+ if (!t) return;
286
+ const u = R(t);
287
+ if (u === "name" && !l) return "path";
288
+ if (u === "subType") {
289
+ if (d === "folder") return "folderType";
290
+ if (d === "product" || d === "version") return "productType";
291
+ if (d === "task") return "taskType";
272
292
  }
273
- return j[p]?.sortKey ?? p;
274
- }, C = (n) => (d, o, ...p) => d.original.isLoading !== o.original.isLoading ? d.original.isLoading ? 1 : -1 : n(d, o, ...p), w = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), z = (n) => (d, o, ...p) => {
275
- const I = n(d, o, ...p);
293
+ return j[u]?.sortKey ?? u;
294
+ }, C = (t) => (l, d, ...u) => l.original.isLoading !== d.original.isLoading ? l.original.isLoading ? 1 : -1 : t(l, d, ...u), w = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), z = (t) => (l, d, ...u) => {
295
+ const I = t(l, d, ...u);
276
296
  if (I !== 0) return I;
277
- const E = d.original.label || d.original.name || "", O = o.original.label || o.original.name || "";
297
+ const E = l.original.label || l.original.name || "", O = d.original.label || d.original.name || "";
278
298
  return w.compare(E, O);
279
- }, D = (n, d) => {
280
- const o = n.original.label || n.original.path || n.original.name || "", p = d.original.label || d.original.path || d.original.name || "";
281
- return w.compare(o, p);
282
- }, Q = (n, d, o) => {
283
- const p = $(n.original, o), I = $(d.original, o), E = Array.isArray(p) ? p.length : p ? String(p).length : 0, O = Array.isArray(I) ? I.length : I ? String(I).length : 0;
299
+ }, D = (t, l) => {
300
+ const d = t.original.label || t.original.path || t.original.name || "", u = l.original.label || l.original.path || l.original.name || "";
301
+ return w.compare(d, u);
302
+ }, Q = (t, l, d) => {
303
+ const u = $(t.original, d), I = $(l.original, d), E = Array.isArray(u) ? u.length : u ? String(u).length : 0, O = Array.isArray(I) ? I.length : I ? String(I).length : 0;
284
304
  return E - O;
285
- }, Y = (n, d, o, p) => {
286
- const I = $(n.original, o), E = $(d.original, o);
287
- if (p && p.enum) {
288
- const O = p.enum.findIndex((F) => F.value === I), H = p.enum.findIndex((F) => F.value === E);
305
+ }, Y = (t, l, d, u) => {
306
+ const I = $(t.original, d), E = $(l.original, d);
307
+ if (u && u.enum) {
308
+ const O = u.enum.findIndex((F) => F.value === I), H = u.enum.findIndex((F) => F.value === E);
289
309
  return O - H;
290
- } else return p?.type === "datetime" ? K.datetime(n, d, o) : p?.type === "boolean" ? (I === !0 ? 1 : 0) - (E === !0 ? 1 : 0) : K.alphanumeric(n, d, o);
291
- }, Ie = (n, d) => `${n.linkType.charAt(0).toUpperCase() + n.linkType.slice(1)} (${d})`, ee = (n, d) => `${n.name.replaceAll("_", "").replaceAll("-", "").replaceAll("|", "_")}_${d}`, Se = (n, d) => `link_${ee(n, d)}`, xn = ({
292
- scopes: n,
293
- attribs: d,
294
- links: o = [],
295
- includeLinks: p = !0,
310
+ } else return u?.type === "datetime" ? K.datetime(t, l, d) : u?.type === "boolean" ? (I === !0 ? 1 : 0) - (E === !0 ? 1 : 0) : K.alphanumeric(t, l, d);
311
+ }, Ie = (t, l) => `${t.linkType.charAt(0).toUpperCase() + t.linkType.slice(1)} (${l})`, ee = (t, l) => `${t.name.replaceAll("_", "").replaceAll("-", "").replaceAll("|", "_")}_${l}`, Se = (t, l) => `link_${ee(t, l)}`, Un = ({
312
+ scopes: t,
313
+ attribs: l,
314
+ links: d = [],
315
+ includeLinks: u = !0,
296
316
  showHierarchy: I,
297
317
  isFlatFolderView: E,
298
318
  options: O,
@@ -303,14 +323,14 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
303
323
  nameLabel: ie = "Entity"
304
324
  }) => {
305
325
  const y = [], g = (e) => !H?.some((i) => R(i) === R(e)), S = (e) => ve(e) && !F?.some((i) => R(i) === R(e));
306
- g(Z) && y.push({
307
- id: Z,
326
+ g(q) && y.push({
327
+ id: q,
308
328
  enableResizing: !1,
309
329
  enableSorting: !1,
310
330
  enablePinning: !1,
311
331
  enableHiding: !1,
312
- header: () => /* @__PURE__ */ u.jsx(ce, {}),
313
- cell: ({ row: e }) => e.original.entityType === "group" || e.original.metaType ? null : /* @__PURE__ */ u.jsx(ge, {}),
332
+ header: () => /* @__PURE__ */ p.jsx(ye, {}),
333
+ cell: ({ row: e }) => e.original.entityType === "group" || e.original.metaType ? null : /* @__PURE__ */ p.jsx(ce, {}),
314
334
  size: 20
315
335
  }), g("thumbnail") && y.push({
316
336
  id: "thumbnail",
@@ -319,9 +339,9 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
319
339
  minSize: 24,
320
340
  enableResizing: !0,
321
341
  enableSorting: !1,
322
- cell: ({ row: e, column: i, table: t }) => {
342
+ cell: ({ row: e, column: i, table: n }) => {
323
343
  if (e.original.entityType === "group" || e.original.metaType) return null;
324
- const a = t.options.meta;
344
+ const a = n.options.meta;
325
345
  if (!a) return null;
326
346
  const r = U(e.id, i.id);
327
347
  let s = {
@@ -329,7 +349,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
329
349
  entityType: e.original.entityType,
330
350
  thumbnailHash: e.original.thumbnailHash
331
351
  };
332
- return e.original.thumbnail && (s = e.original.thumbnail), /* @__PURE__ */ u.jsx(
352
+ return e.original.thumbnail && (s = e.original.thumbnail), /* @__PURE__ */ p.jsx(
333
353
  le,
334
354
  {
335
355
  id: r,
@@ -355,10 +375,10 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
355
375
  enableResizing: !0,
356
376
  enablePinning: !0,
357
377
  enableHiding: !(P && P.id !== "folder"),
358
- cell: ({ row: e, column: i, table: t }) => {
359
- const { value: a, id: r, type: s } = f(e, i.id), l = t.options.meta, { isEditing: m } = be(), { rowHeight: k = 40 } = ue(), N = U(e.id, i.id);
378
+ cell: ({ row: e, column: i, table: n }) => {
379
+ const { value: a, id: r, type: s } = f(e, i.id), o = n.options.meta, { isEditing: m } = be(), { rowHeight: k = 40 } = ue(), N = U(e.id, i.id);
360
380
  if (e.original.metaType)
361
- return /* @__PURE__ */ u.jsx(
381
+ return /* @__PURE__ */ p.jsx(
362
382
  G,
363
383
  {
364
384
  id: N,
@@ -368,19 +388,19 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
368
388
  pointerEvents: "none"
369
389
  },
370
390
  tabIndex: 0,
371
- children: /* @__PURE__ */ u.jsx(pe, { metaType: e.original.metaType, label: e.original.label })
391
+ children: /* @__PURE__ */ p.jsx(me, { metaType: e.original.metaType, label: e.original.label })
372
392
  }
373
393
  );
374
394
  if (e.original.entityType === h && e.original.group)
375
- return /* @__PURE__ */ u.jsx(
395
+ return /* @__PURE__ */ p.jsx(
376
396
  fe,
377
397
  {
378
398
  id: e.original.group.value,
379
- onLoadMore: (V) => l?.loadMoreRows?.(V)
399
+ onLoadMore: (V) => o?.loadMoreRows?.(V)
380
400
  }
381
401
  );
382
402
  const A = e.getCanExpand() && !!e.originalSubRows && (Te(e.original.entityType) || !!e.original.group);
383
- return /* @__PURE__ */ u.jsxs(
403
+ return /* @__PURE__ */ p.jsxs(
384
404
  G,
385
405
  {
386
406
  id: N,
@@ -393,7 +413,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
393
413
  },
394
414
  tabIndex: 0,
395
415
  children: [
396
- e.original.group ? /* @__PURE__ */ u.jsx(
416
+ e.original.group ? /* @__PURE__ */ p.jsx(
397
417
  se,
398
418
  {
399
419
  id: e.id,
@@ -408,7 +428,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
408
428
  isEmpty: e.original.group.count === 0,
409
429
  toggleExpanded: e.getToggleExpandedHandler()
410
430
  }
411
- ) : /* @__PURE__ */ u.jsx(
431
+ ) : /* @__PURE__ */ p.jsx(
412
432
  re,
413
433
  {
414
434
  id: e.id,
@@ -419,13 +439,13 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
419
439
  subType: e.original.subType,
420
440
  isExpandable: A,
421
441
  isExpanded: e.getIsExpanded(),
422
- toggleExpandAll: () => l?.toggleExpandAll?.([e.id]),
442
+ toggleExpandAll: () => o?.toggleExpandAll?.([e.id]),
423
443
  toggleExpanded: e.getToggleExpandedHandler(),
424
444
  rowHeight: k,
425
- columnDisplayConfig: he(l?.columnsConfig, "name")
445
+ columnDisplayConfig: he(o?.columnsConfig, "name")
426
446
  }
427
447
  ),
428
- m(N) && /* @__PURE__ */ u.jsx(
448
+ m(N) && /* @__PURE__ */ p.jsx(
429
449
  x,
430
450
  {
431
451
  rowId: r,
@@ -435,7 +455,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
435
455
  valueData: {
436
456
  name: e.original.name,
437
457
  label: e.original.label,
438
- meta: l,
458
+ meta: o,
439
459
  entityRowId: r,
440
460
  columnId: i.id,
441
461
  hasVersions: !!e.original.hasVersions
@@ -443,7 +463,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
443
463
  entityType: s,
444
464
  attributeData: { type: "name" },
445
465
  isCollapsed: !!e.original.childOnlyMatch,
446
- isReadOnly: l?.readOnly?.includes(i.id)
466
+ isReadOnly: o?.readOnly?.includes(i.id)
447
467
  }
448
468
  )
449
469
  ]
@@ -457,7 +477,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
457
477
  header: v("status"),
458
478
  sortingFn: C(
459
479
  z(
460
- (e, i, t) => Y(e, i, t, { enum: O.status, type: "string" })
480
+ (e, i, n) => Y(e, i, n, { enum: O.status, type: "string" })
461
481
  )
462
482
  ),
463
483
  sortDescFirst: j.status.sortDescFirst,
@@ -465,9 +485,9 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
465
485
  enableResizing: !0,
466
486
  enablePinning: !0,
467
487
  enableHiding: !0,
468
- cell: ({ row: e, column: i, table: t }) => {
469
- const { value: a, id: r, type: s } = f(e, i.id), l = t.options.meta;
470
- return ["group", h].includes(s) || e.original.metaType ? null : /* @__PURE__ */ u.jsx(
488
+ cell: ({ row: e, column: i, table: n }) => {
489
+ const { value: a, id: r, type: s } = f(e, i.id), o = n.options.meta;
490
+ return ["group", h].includes(s) || e.original.metaType ? null : /* @__PURE__ */ p.jsx(
471
491
  x,
472
492
  {
473
493
  rowId: r,
@@ -475,13 +495,13 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
475
495
  columnId: i.id,
476
496
  value: a,
477
497
  attributeData: { type: "string" },
478
- options: l?.options?.status.filter((m) => m.scope?.includes(s)),
498
+ options: o?.options?.status.filter((m) => m.scope?.includes(s)),
479
499
  isCollapsed: !!e.original.childOnlyMatch,
480
- onChange: (m) => l?.updateEntities?.(
500
+ onChange: (m) => o?.updateEntities?.(
481
501
  { field: i.id, value: m, type: s, rowId: r },
482
- { selection: l?.selection }
502
+ { selection: o?.selection }
483
503
  ),
484
- isReadOnly: l?.readOnly?.includes(i.id) || B(s),
504
+ isReadOnly: o?.readOnly?.includes(i.id) || B(s),
485
505
  pt: {
486
506
  enum: {
487
507
  pt: {
@@ -510,20 +530,20 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
510
530
  enablePinning: !0,
511
531
  enableHiding: !0,
512
532
  sortingFn: C(z(K.alphanumeric)),
513
- cell: ({ row: e, column: i, table: t }) => {
533
+ cell: ({ row: e, column: i, table: n }) => {
514
534
  const { value: a, id: r, type: s } = f(e, i.id);
515
535
  if (["group", h].includes(s) || e.original.metaType) return null;
516
- const l = U(e.id, i.id);
517
- return /* @__PURE__ */ u.jsxs(
536
+ const o = U(e.id, i.id);
537
+ return /* @__PURE__ */ p.jsxs(
518
538
  G,
519
539
  {
520
- id: l,
521
- className: b("entityType", oe, s, { loading: e.original.isLoading }),
540
+ id: o,
541
+ className: b("entityType", de, s, { loading: e.original.isLoading }),
522
542
  tabIndex: 0,
523
543
  children: [
524
- /* @__PURE__ */ u.jsx(q, { icon: J(s) }),
544
+ /* @__PURE__ */ p.jsx(J, { icon: Z(s) }),
525
545
  " ",
526
- ye(a)
546
+ oe(a)
527
547
  ]
528
548
  }
529
549
  );
@@ -531,7 +551,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
531
551
  }), g("subType") && y.push({
532
552
  id: "subType",
533
553
  accessorKey: "subType",
534
- header: v("subType", n),
554
+ header: v("subType", t),
535
555
  minSize: T,
536
556
  enableSorting: S("subType"),
537
557
  enableResizing: !0,
@@ -540,17 +560,17 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
540
560
  sortDescFirst: j.taskType.sortDescFirst,
541
561
  sortingFn: C(
542
562
  z(
543
- (e, i, t) => Y(e, i, t, {
563
+ (e, i, n) => Y(e, i, n, {
544
564
  enum: [...O.folderType, ...O.taskType],
545
565
  type: "string"
546
566
  })
547
567
  )
548
568
  ),
549
- cell: ({ row: e, column: i, table: t }) => {
569
+ cell: ({ row: e, column: i, table: n }) => {
550
570
  const { value: a, id: r, type: s } = f(e, i.id);
551
571
  if (["group", h].includes(s) || e.original.metaType) return null;
552
- const l = s === "folder" ? "folderType" : "taskType", m = t.options.meta, k = s === "folder" && e.original.hasVersions;
553
- return /* @__PURE__ */ u.jsx(
572
+ const o = s === "folder" ? "folderType" : "taskType", m = n.options.meta, k = s === "folder" && e.original.hasVersions;
573
+ return /* @__PURE__ */ p.jsx(
554
574
  x,
555
575
  {
556
576
  rowId: r,
@@ -561,10 +581,10 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
561
581
  options: s === "folder" ? m?.options?.folderType : s === "task" ? m?.options?.taskType : s === "product" || s === "version" ? m?.options?.productType : [],
562
582
  isCollapsed: !!e.original.childOnlyMatch,
563
583
  onChange: (N) => m?.updateEntities?.(
564
- { field: l, value: N, type: s, rowId: e.id },
584
+ { field: o, value: N, type: s, rowId: e.id },
565
585
  { selection: m?.selection }
566
586
  ),
567
- isReadOnly: m?.readOnly?.includes(i.id) || m?.readOnly?.includes(l) || k,
587
+ isReadOnly: m?.readOnly?.includes(i.id) || m?.readOnly?.includes(o) || k,
568
588
  tooltip: k ? "Folder type cannot be edited when versions exist within the folder" : void 0,
569
589
  pt: {
570
590
  enum: {
@@ -588,9 +608,9 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
588
608
  enablePinning: !0,
589
609
  enableHiding: !0,
590
610
  sortingFn: C(z(Q)),
591
- cell: ({ row: e, column: i, table: t }) => {
592
- const a = t.options.meta, { value: r, id: s, type: l } = f(e, i.id);
593
- return ["group", h].includes(l) || e.original.metaType ? null : l === "folder" ? /* @__PURE__ */ u.jsx(
611
+ cell: ({ row: e, column: i, table: n }) => {
612
+ const a = n.options.meta, { value: r, id: s, type: o } = f(e, i.id);
613
+ return ["group", h].includes(o) || e.original.metaType ? null : o === "folder" ? /* @__PURE__ */ p.jsx(
594
614
  x,
595
615
  {
596
616
  rowId: s,
@@ -599,7 +619,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
599
619
  value: "",
600
620
  isPlaceholder: !0
601
621
  }
602
- ) : /* @__PURE__ */ u.jsx(
622
+ ) : /* @__PURE__ */ p.jsx(
603
623
  x,
604
624
  {
605
625
  rowId: s,
@@ -610,10 +630,10 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
610
630
  options: a?.options?.assignee,
611
631
  isCollapsed: !!e.original.childOnlyMatch,
612
632
  onChange: (m) => a?.updateEntities?.(
613
- { field: i.id, value: m, type: l, rowId: e.id },
633
+ { field: i.id, value: m, type: o, rowId: e.id },
614
634
  { selection: a?.selection }
615
635
  ),
616
- isReadOnly: a?.readOnly?.includes(i.id) || B(l),
636
+ isReadOnly: a?.readOnly?.includes(i.id) || B(o),
617
637
  pt: {
618
638
  enum: {
619
639
  multiSelectClose: r?.length === 0,
@@ -637,9 +657,9 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
637
657
  enableResizing: !0,
638
658
  enablePinning: !0,
639
659
  enableHiding: !0,
640
- cell: ({ row: e, column: i, table: t }) => {
660
+ cell: ({ row: e, column: i, table: n }) => {
641
661
  const { value: a, id: r, type: s } = f(e, "folder");
642
- return ["group", h].includes(s) || e.original.metaType ? null : /* @__PURE__ */ u.jsx(
662
+ return ["group", h].includes(s) || e.original.metaType ? null : /* @__PURE__ */ p.jsx(
643
663
  W,
644
664
  {
645
665
  rowId: r,
@@ -653,7 +673,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
653
673
  }
654
674
  );
655
675
  }
656
- }), g(L.task) && ["version", "product"].some((e) => n.includes(e)) && y.push({
676
+ }), g(L.task) && ["version", "product"].some((e) => t.includes(e)) && y.push({
657
677
  id: L.task,
658
678
  accessorKey: "taskLabel",
659
679
  header: v(L.task),
@@ -664,14 +684,14 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
664
684
  enableHiding: !0,
665
685
  sortingFn: C(D),
666
686
  cell: ({ row: e, column: i }) => {
667
- const { value: t, id: a, type: r } = f(e, "taskLabel");
668
- return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */ u.jsx(
687
+ const { value: n, id: a, type: r } = f(e, "taskLabel");
688
+ return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */ p.jsx(
669
689
  W,
670
690
  {
671
691
  rowId: a,
672
692
  className: "task_entity",
673
693
  columnId: i.id,
674
- value: t,
694
+ value: n,
675
695
  entityId: e.original.taskId,
676
696
  entityType: "task",
677
697
  subType: e.original.taskType,
@@ -679,7 +699,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
679
699
  }
680
700
  );
681
701
  }
682
- }), g("author") && ["version", "product"].some((e) => n.includes(e)) && y.push({
702
+ }), g("author") && ["version", "product"].some((e) => t.includes(e)) && y.push({
683
703
  id: "author",
684
704
  accessorKey: "author",
685
705
  header: v("author"),
@@ -689,9 +709,9 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
689
709
  enablePinning: !0,
690
710
  enableHiding: !0,
691
711
  sortingFn: C(D),
692
- cell: ({ row: e, column: i, table: t }) => {
693
- const a = t.options.meta, { value: r, id: s, type: l } = f(e, i.id);
694
- return ["group", h].includes(l) || e.original.metaType ? null : /* @__PURE__ */ u.jsx(
712
+ cell: ({ row: e, column: i, table: n }) => {
713
+ const a = n.options.meta, { value: r, id: s, type: o } = f(e, i.id);
714
+ return ["group", h].includes(o) || e.original.metaType ? null : /* @__PURE__ */ p.jsx(
695
715
  x,
696
716
  {
697
717
  rowId: s,
@@ -701,11 +721,11 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
701
721
  attributeData: { type: "list_of_strings" },
702
722
  options: a?.options?.assignee,
703
723
  isReadOnly: !0,
704
- isInherited: l === "product"
724
+ isInherited: o === "product"
705
725
  }
706
726
  );
707
727
  }
708
- }), g(L.version) && ["version", "product"].some((e) => n.includes(e)) && y.push({
728
+ }), g(L.version) && ["version", "product"].some((e) => t.includes(e)) && y.push({
709
729
  id: L.version,
710
730
  accessorKey: "versionName",
711
731
  header: v(L.version),
@@ -716,10 +736,10 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
716
736
  enableHiding: !0,
717
737
  sortingFn: C(D),
718
738
  cell: ({ row: e, column: i }) => {
719
- const { value: t, id: a, type: r } = f(e, "versionName");
739
+ const { value: n, id: a, type: r } = f(e, "versionName");
720
740
  if (["group", h].includes(r) || e.original.metaType) return null;
721
- let s = e.original.versionName || t;
722
- return e.original.entityType === "product" && (s = `${e.original.versionName} (${e.original.versionsCount || 0} versions)`), /* @__PURE__ */ u.jsx(
741
+ let s = e.original.versionName || n;
742
+ return e.original.entityType === "product" && (s = `${e.original.versionName} (${e.original.versionsCount || 0} versions)`), /* @__PURE__ */ p.jsx(
723
743
  W,
724
744
  {
725
745
  rowId: a,
@@ -732,7 +752,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
732
752
  }
733
753
  );
734
754
  }
735
- }), g("version") && ["version", "product"].some((e) => n.includes(e)) && y.push({
755
+ }), g("version") && ["version", "product"].some((e) => t.includes(e)) && y.push({
736
756
  id: "version",
737
757
  accessorKey: "version",
738
758
  header: v("version"),
@@ -744,20 +764,20 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
744
764
  enableHiding: !0,
745
765
  sortingFn: C(z(K.basic)),
746
766
  cell: ({ row: e, column: i }) => {
747
- const { value: t, id: a, type: r } = f(e, i.id);
748
- return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */ u.jsx(
767
+ const { value: n, id: a, type: r } = f(e, i.id);
768
+ return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */ p.jsx(
749
769
  x,
750
770
  {
751
771
  rowId: a,
752
772
  className: b("version", { loading: e.original.isLoading }),
753
773
  columnId: i.id,
754
- value: t ?? "",
774
+ value: n ?? "",
755
775
  attributeData: { type: "integer" },
756
776
  isReadOnly: !0
757
777
  }
758
778
  );
759
779
  }
760
- }), g("product") && ["version", "product"].some((e) => n.includes(e)) && y.push({
780
+ }), g("product") && ["version", "product"].some((e) => t.includes(e)) && y.push({
761
781
  id: "product",
762
782
  accessorKey: "product",
763
783
  header: v("product"),
@@ -768,14 +788,14 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
768
788
  enableHiding: !0,
769
789
  sortingFn: C(D),
770
790
  cell: ({ row: e, column: i }) => {
771
- const { value: t, id: a, type: r } = f(e, i.id);
772
- return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */ u.jsx(
791
+ const { value: n, id: a, type: r } = f(e, i.id);
792
+ return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */ p.jsx(
773
793
  x,
774
794
  {
775
795
  rowId: a,
776
796
  className: b("product", { loading: e.original.isLoading }),
777
797
  columnId: i.id,
778
- value: t,
798
+ value: n,
779
799
  attributeData: { type: "string" },
780
800
  isReadOnly: !0
781
801
  }
@@ -791,9 +811,9 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
791
811
  enablePinning: !0,
792
812
  enableHiding: !0,
793
813
  sortingFn: C(z(Q)),
794
- cell: ({ row: e, column: i, table: t }) => {
795
- const a = t.options.meta, { value: r, id: s, type: l } = f(e, i.id);
796
- return ["group", h].includes(l) || e.original.metaType ? null : /* @__PURE__ */ u.jsx(
814
+ cell: ({ row: e, column: i, table: n }) => {
815
+ const a = n.options.meta, { value: r, id: s, type: o } = f(e, i.id);
816
+ return ["group", h].includes(o) || e.original.metaType ? null : /* @__PURE__ */ p.jsx(
797
817
  x,
798
818
  {
799
819
  rowId: s,
@@ -804,10 +824,10 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
804
824
  options: a?.options?.tag,
805
825
  isCollapsed: !!e.original.childOnlyMatch,
806
826
  onChange: (m) => a?.updateEntities?.(
807
- { field: i.id, value: m, type: l, rowId: e.id },
827
+ { field: i.id, value: m, type: o, rowId: e.id },
808
828
  { selection: a?.selection }
809
829
  ),
810
- isReadOnly: a?.readOnly?.includes(i.id) || B(l),
830
+ isReadOnly: a?.readOnly?.includes(i.id) || B(o),
811
831
  enableCustomValues: !0
812
832
  }
813
833
  );
@@ -823,14 +843,14 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
823
843
  enableHiding: !0,
824
844
  sortingFn: C(z(K.datetime)),
825
845
  cell: ({ row: e, column: i }) => {
826
- const { value: t, id: a, type: r } = f(e, i.id);
827
- return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */ u.jsx(
846
+ const { value: n, id: a, type: r } = f(e, i.id);
847
+ return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */ p.jsx(
828
848
  x,
829
849
  {
830
850
  rowId: a,
831
851
  className: b("createdAt", { loading: e.original.isLoading }),
832
852
  columnId: i.id,
833
- value: t,
853
+ value: n,
834
854
  attributeData: { type: "datetime" },
835
855
  isCollapsed: !!e.original.childOnlyMatch,
836
856
  isReadOnly: !0,
@@ -849,14 +869,14 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
849
869
  enableHiding: !0,
850
870
  sortingFn: C(z(K.datetime)),
851
871
  cell: ({ row: e, column: i }) => {
852
- const { value: t, id: a, type: r } = f(e, i.id);
853
- return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */ u.jsx(
872
+ const { value: n, id: a, type: r } = f(e, i.id);
873
+ return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */ p.jsx(
854
874
  x,
855
875
  {
856
876
  rowId: a,
857
877
  className: b("updatedAt", { loading: e.original.isLoading }),
858
878
  columnId: i.id,
859
- value: t,
879
+ value: n,
860
880
  attributeData: { type: "datetime" },
861
881
  isCollapsed: !!e.original.childOnlyMatch,
862
882
  isReadOnly: !0,
@@ -864,7 +884,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
864
884
  }
865
885
  );
866
886
  }
867
- }), g("subtasks") && n.includes("task") && y.push({
887
+ }), g("subtasks") && t.includes("task") && y.push({
868
888
  id: "subtasks",
869
889
  accessorKey: "subtasks",
870
890
  header: v("subtasks"),
@@ -873,15 +893,16 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
873
893
  enableResizing: !0,
874
894
  enablePinning: !0,
875
895
  enableHiding: !0,
876
- cell: ({ row: e, column: i, table: t }) => {
877
- const a = t.options.meta, { value: r, id: s, type: l } = f(e, i.id);
878
- if (["group", h].includes(l) || e.original.metaType) return null;
879
- if (l !== "task") return /* @__PURE__ */ u.jsx("div", { className: "readonly" });
896
+ cell: ({ row: e, column: i, table: n }) => {
897
+ const a = n.options.meta, { value: r, id: s, type: o } = f(e, i.id);
898
+ if (["group", h].includes(o) || e.original.metaType) return null;
899
+ if (o !== "task") return /* @__PURE__ */ p.jsx("div", { className: "readonly" });
880
900
  const m = {
881
- taskId: de(e.id) || e.original.entityId || e.original.id,
901
+ taskId: pe(e.id) || e.original.entityId || e.original.id,
902
+ folderId: e.original.folderId ?? void 0,
882
903
  subtasks: r || []
883
904
  };
884
- return /* @__PURE__ */ u.jsx(
905
+ return /* @__PURE__ */ p.jsx(
885
906
  x,
886
907
  {
887
908
  rowId: s,
@@ -894,7 +915,7 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
894
915
  }
895
916
  );
896
917
  }
897
- }), g("comments") && n.some((e) => ["task", "version", "product", "folder"].includes(e)) && y.push({
918
+ }), g("comments") && t.some((e) => ["task", "version", "product", "folder"].includes(e)) && y.push({
898
919
  id: "comments",
899
920
  accessorKey: "latestComments",
900
921
  header: v("comments"),
@@ -904,15 +925,15 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
904
925
  enablePinning: !0,
905
926
  enableHiding: !0,
906
927
  cell: ({ row: e, column: i }) => {
907
- const { value: t, id: a, type: r } = f(e, "latestComments");
908
- return ["group", h].includes(r) || e.original.metaType ? null : !e.original.isLoading && !["task", "version", "product", "folder"].includes(r) ? /* @__PURE__ */ u.jsx("div", { className: "readonly" }) : /* @__PURE__ */ u.jsx(
928
+ const { value: n, id: a, type: r } = f(e, "latestComments");
929
+ return ["group", h].includes(r) || e.original.metaType ? null : !e.original.isLoading && !["task", "version", "product", "folder"].includes(r) ? /* @__PURE__ */ p.jsx("div", { className: "readonly" }) : /* @__PURE__ */ p.jsx(
909
930
  x,
910
931
  {
911
932
  rowId: a,
912
933
  className: b("comments", { loading: e.original.isLoading }),
913
934
  columnId: i.id,
914
935
  value: "",
915
- valueData: t || [],
936
+ valueData: n || [],
916
937
  attributeData: { type: "comments" },
917
938
  isCollapsed: !!e.original.childOnlyMatch,
918
939
  isReadOnly: !0
@@ -920,8 +941,8 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
920
941
  );
921
942
  }
922
943
  });
923
- const te = d.filter((e) => {
924
- if (e.scope && !e.scope.some((t) => n.includes(t))) return !1;
944
+ const te = l.filter((e) => {
945
+ if (e.scope && !e.scope.some((n) => t.includes(n))) return !1;
925
946
  const i = "attrib_" + e.name;
926
947
  return !(!g(i) || e.builtin && !g("attrib"));
927
948
  }).map((e) => ({
@@ -931,51 +952,51 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
931
952
  minSize: T,
932
953
  filterFn: "fuzzy",
933
954
  sortingFn: C(
934
- z((t, a, r) => Y(t, a, r, e.data))
955
+ z((n, a, r) => Y(n, a, r, e.data))
935
956
  ),
936
957
  enableSorting: S(e.name) && S("attrib"),
937
958
  enableResizing: !0,
938
959
  enablePinning: !0,
939
960
  enableHiding: !0,
940
- cell: ({ row: t, column: a, table: r }) => {
941
- const s = r.options.meta, l = a.id.replace("attrib_", ""), { value: m, id: k, type: N } = f(t, l, "attrib"), A = !t.original.ownAttrib?.includes(l);
942
- return ["group", h].includes(N) || t.original.metaType || !e.scope?.includes(N) && m == null ? null : /* @__PURE__ */ u.jsx(
961
+ cell: ({ row: n, column: a, table: r }) => {
962
+ const s = r.options.meta, o = a.id.replace("attrib_", ""), { value: m, id: k, type: N } = f(n, o, "attrib"), A = !n.original.ownAttrib?.includes(o);
963
+ return ["group", h].includes(N) || n.original.metaType || !e.scope?.includes(N) && m == null ? null : /* @__PURE__ */ p.jsx(
943
964
  x,
944
965
  {
945
966
  rowId: k,
946
- className: b("attrib", { loading: t.original.isLoading }),
967
+ className: b("attrib", { loading: n.original.isLoading }),
947
968
  columnId: a.id,
948
969
  value: m,
949
970
  attributeData: { type: e.data.type || "string", widget: e.data.widget },
950
971
  options: e.data.enum || [],
951
- midnightExclusiveFields: t.original.midnightExclusiveFields,
952
- isCollapsed: !!t.original.childOnlyMatch,
972
+ midnightExclusiveFields: n.original.midnightExclusiveFields,
973
+ isCollapsed: !!n.original.childOnlyMatch,
953
974
  isInherited: A,
954
975
  isReadOnly: (
955
976
  // check attrib is not read only
956
977
  e.readOnly || // check if there is any other reason the cell should be read only
957
978
  s?.readOnly?.some(
958
- (_) => _ === l || _ === "attrib" && e.builtin
979
+ (_) => _ === o || _ === "attrib" && e.builtin
959
980
  )
960
981
  ),
961
982
  onChange: (_) => s?.updateEntities?.(
962
- { field: l, value: _, type: N, isAttrib: !0, rowId: t.id },
983
+ { field: o, value: _, type: N, isAttrib: !0, rowId: n.id },
963
984
  { selection: e.data.enum?.length ? s?.selection : void 0 }
964
985
  )
965
986
  }
966
987
  );
967
988
  }
968
- })), ne = p ? o.filter((e) => !(!g(e.linkType) || !g("link") || !n.includes(e.inputType) && !n.includes(e.outputType))).flatMap((e) => {
969
- const i = (t) => ({
970
- id: Se(e, t),
971
- accessorKey: `links.${ee(e, t)}`,
972
- header: () => /* @__PURE__ */ u.jsxs(me, { children: [
973
- Ie(e, t),
989
+ })), ne = u ? d.filter((e) => !(!g(e.linkType) || !g("link") || !t.includes(e.inputType) && !t.includes(e.outputType))).flatMap((e) => {
990
+ const i = (n) => ({
991
+ id: Se(e, n),
992
+ accessorKey: `links.${ee(e, n)}`,
993
+ header: () => /* @__PURE__ */ p.jsxs(ge, { children: [
994
+ Ie(e, n),
974
995
  " ",
975
- /* @__PURE__ */ u.jsx(
976
- q,
996
+ /* @__PURE__ */ p.jsx(
997
+ J,
977
998
  {
978
- icon: J(t === "in" ? e.inputType : e.outputType)
999
+ icon: Z(n === "in" ? e.inputType : e.outputType)
979
1000
  }
980
1001
  )
981
1002
  ] }),
@@ -985,18 +1006,18 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
985
1006
  enablePinning: !0,
986
1007
  enableHiding: !0,
987
1008
  cell: ({ row: a, column: r, table: s }) => {
988
- const l = r.id.replace("link_", ""), { id: m, value: k } = f(a, l, "links"), N = k?.map((ae) => ae.label), A = a.original.entityId || a.original.id, V = !!s.options.meta?.loadingLinksEntityIds?.has(A), _ = {
1009
+ const o = r.id.replace("link_", ""), { id: m, value: k } = f(a, o, "links"), N = k?.map((ae) => ae.label), A = a.original.entityId || a.original.id, V = !!s.options.meta?.loadingLinksEntityIds?.has(A), _ = {
989
1010
  links: k,
990
- direction: t,
1011
+ direction: n,
991
1012
  entityId: A,
992
1013
  entityType: a.original.entityType,
993
1014
  link: {
994
1015
  label: e.linkType,
995
1016
  linkType: e.name,
996
- targetEntityType: t === "in" ? e.inputType : e.outputType
1017
+ targetEntityType: n === "in" ? e.inputType : e.outputType
997
1018
  }
998
1019
  };
999
- return /* @__PURE__ */ u.jsx(
1020
+ return /* @__PURE__ */ p.jsx(
1000
1021
  x,
1001
1022
  {
1002
1023
  rowId: m,
@@ -1016,22 +1037,23 @@ const Te = (n) => ["folder", "product"].includes(n), T = 50, c = {
1016
1037
  return X && X.forEach(({ column: e, position: i = -1 }) => {
1017
1038
  i >= 0 && i < M.length ? M.splice(i, 0, e) : M.push(e);
1018
1039
  }), M;
1019
- }, f = (n, d, o) => ({
1020
- value: o ? n.original[o]?.[d] : n.original[d],
1021
- id: n.id,
1022
- type: n.original.entityType
1040
+ }, f = (t, l, d) => ({
1041
+ value: d ? t.original[d]?.[l] : t.original[l],
1042
+ id: t.id,
1043
+ type: t.original.entityType
1023
1044
  });
1024
1045
  export {
1025
1046
  c as COLUMN_LABELS,
1026
1047
  T as COLUMN_MIN_SIZE,
1027
1048
  j as COLUMN_SORT_CONFIG,
1028
- xn as default,
1049
+ Un as default,
1029
1050
  v as getColumnLabel,
1030
- Sn as getColumnSortKey,
1051
+ Wn as getColumnSortKey,
1031
1052
  Se as getLinkColumnId,
1032
1053
  ee as getLinkKey,
1033
1054
  Ie as getLinkLabel,
1034
- In as getSortableColumnOptions,
1055
+ Vn as getNameColumnLabel,
1056
+ $n as getSortableColumnOptions,
1035
1057
  f as getValueIdType,
1036
1058
  ve as isColumnSortable,
1037
1059
  Te as isEntityExpandable