@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.
- package/dist/ProjectTreeTable.cjs.js +1 -1
- package/dist/ProjectTreeTable.es.js +247 -243
- package/dist/_virtual/index.cjs22.js +1 -1
- package/dist/_virtual/index.cjs23.js +1 -1
- package/dist/_virtual/index.cjs24.js +1 -1
- package/dist/_virtual/index.cjs4.js +1 -1
- package/dist/_virtual/index.cjs5.js +1 -1
- package/dist/_virtual/index.cjs6.js +1 -1
- package/dist/_virtual/index.cjs8.js +1 -1
- package/dist/_virtual/index.es22.js +3 -3
- package/dist/_virtual/index.es23.js +5 -5
- package/dist/_virtual/index.es24.js +5 -5
- package/dist/_virtual/index.es4.js +2 -5
- package/dist/_virtual/index.es4.js.map +1 -1
- package/dist/_virtual/index.es5.js +5 -2
- package/dist/_virtual/index.es5.js.map +1 -1
- package/dist/_virtual/index.es6.js +2 -2
- package/dist/_virtual/index.es8.js +2 -2
- package/dist/api.cjs.js +1 -1
- package/dist/api.es.js +446 -445
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +20 -9
- package/dist/index.es.js.map +1 -1
- package/dist/node_modules/match-sorter/dist/match-sorter.esm.cjs.js +1 -1
- package/dist/node_modules/match-sorter/dist/match-sorter.esm.es.js +1 -1
- package/dist/node_modules/parse-numeric-range/index.cjs.js +1 -1
- package/dist/node_modules/parse-numeric-range/index.es.js +1 -1
- package/dist/node_modules/rehype/node_modules/unified/lib/index.cjs.js +1 -1
- package/dist/node_modules/rehype/node_modules/unified/lib/index.es.js +2 -2
- package/dist/node_modules/rehype/node_modules/vfile/lib/index.cjs.js +1 -1
- package/dist/node_modules/rehype/node_modules/vfile/lib/index.es.js +1 -1
- package/dist/node_modules/rehype-parse/lib/index.cjs.js +1 -1
- package/dist/node_modules/rehype-parse/lib/index.es.js +1 -1
- package/dist/node_modules/remove-accents/index.cjs.js +1 -1
- package/dist/node_modules/remove-accents/index.es.js +1 -1
- package/dist/shared/node_modules/@module-federation/error-codes/dist/index.cjs.js +1 -1
- package/dist/shared/node_modules/@module-federation/error-codes/dist/index.es.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime/dist/index.cjs.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime/dist/index.es.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime-core/dist/index.cjs.js +1 -1
- package/dist/shared/node_modules/@module-federation/runtime-core/dist/index.es.js +1 -1
- package/dist/shared/node_modules/react-is/index.cjs.js +1 -1
- package/dist/shared/node_modules/react-is/index.es.js +1 -1
- package/dist/shared/src/api/generated/graphql.cjs.js +85 -28
- package/dist/shared/src/api/generated/graphql.cjs.js.map +1 -1
- package/dist/shared/src/api/generated/graphql.es.js +129 -68
- package/dist/shared/src/api/generated/graphql.es.js.map +1 -1
- package/dist/shared/src/api/queries/columnStats/metricTargets.cjs.js +1 -1
- package/dist/shared/src/api/queries/columnStats/metricTargets.cjs.js.map +1 -1
- package/dist/shared/src/api/queries/columnStats/metricTargets.es.js +36 -36
- package/dist/shared/src/api/queries/columnStats/metricTargets.es.js.map +1 -1
- package/dist/shared/src/components/Chips/Chips.cjs.js +12 -6
- package/dist/shared/src/components/Chips/Chips.cjs.js.map +1 -1
- package/dist/shared/src/components/Chips/Chips.es.js +69 -62
- package/dist/shared/src/components/Chips/Chips.es.js.map +1 -1
- package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.cjs.js +1 -1
- package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.cjs.js.map +1 -1
- package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.es.js +32 -12
- package/dist/shared/src/components/DetailsPanelAttributes/components/RenderFieldWidget.es.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.cjs.js +2 -2
- package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.cjs.js.map +1 -1
- package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.es.js +33 -33
- package/dist/shared/src/components/ProjectTableSettings/ProjectTableSettings.es.js.map +1 -1
- package/dist/shared/src/components/RemotePage/RemotePageWrapper.cjs.js.map +1 -1
- package/dist/shared/src/components/RemotePage/RemotePageWrapper.es.js.map +1 -1
- package/dist/shared/src/components/SubtasksManager/SubtasksManagerWrapper.cjs.js +1 -1
- package/dist/shared/src/components/SubtasksManager/SubtasksManagerWrapper.cjs.js.map +1 -1
- package/dist/shared/src/components/SubtasksManager/SubtasksManagerWrapper.es.js +39 -8
- package/dist/shared/src/components/SubtasksManager/SubtasksManagerWrapper.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js +32 -31
- package/dist/shared/src/containers/DetailsPanel/DetailsPanel.es.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/containers/FeedWrapper.cjs.js.map +1 -1
- package/dist/shared/src/containers/DetailsPanel/containers/FeedWrapper.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/helpers/buildBackendFilter.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/helpers/buildBackendFilter.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/helpers/buildBackendFilter.es.js +24 -18
- package/dist/shared/src/containers/Feed/helpers/buildBackendFilter.es.js.map +1 -1
- package/dist/shared/src/containers/Feed/helpers/feedFilterAdapter.cjs.js +1 -1
- package/dist/shared/src/containers/Feed/helpers/feedFilterAdapter.cjs.js.map +1 -1
- package/dist/shared/src/containers/Feed/helpers/feedFilterAdapter.es.js +26 -25
- package/dist/shared/src/containers/Feed/helpers/feedFilterAdapter.es.js.map +1 -1
- package/dist/shared/src/containers/ListTable/ListTableCell.cjs.js +1 -1
- package/dist/shared/src/containers/ListTable/ListTableCell.cjs.js.map +1 -1
- package/dist/shared/src/containers/ListTable/ListTableCell.es.js +14 -2
- package/dist/shared/src/containers/ListTable/ListTableCell.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js +125 -126
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js +6 -0
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js +14 -8
- package/dist/shared/src/containers/ProjectTreeTable/ProjectTreeTable.styled.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js +200 -178
- package/dist/shared/src/containers/ProjectTreeTable/buildTreeTableColumns.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.es.js +14 -3
- package/dist/shared/src/containers/ProjectTreeTable/components/GroupSettingsFallback.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/constants.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/constants.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/constants.es.js +6 -3
- package/dist/shared/src/containers/ProjectTreeTable/constants.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.es.js +19 -19
- package/dist/shared/src/containers/ProjectTreeTable/hooks/useSortBySettings.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js +5 -3
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js +100 -97
- package/dist/shared/src/containers/ProjectTreeTable/widgets/CellWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/DateWidget.cjs.js +9 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/DateWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/DateWidget.es.js +47 -31
- package/dist/shared/src/containers/ProjectTreeTable/widgets/DateWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js +28 -9
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js +58 -39
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EntityNameWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js +53 -25
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js +150 -103
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumCellValue.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.cjs.js +9 -2
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.es.js +66 -57
- package/dist/shared/src/containers/ProjectTreeTable/widgets/EnumWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.cjs.js +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.es.js +9 -8
- package/dist/shared/src/containers/ProjectTreeTable/widgets/SubtasksWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js +20 -4
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.cjs.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.es.js +86 -67
- package/dist/shared/src/containers/ProjectTreeTable/widgets/TextWidget.es.js.map +1 -1
- package/dist/shared/src/containers/ProjectTreeTable/widgets/wrapMode.cjs.js +6 -0
- package/dist/shared/src/containers/ProjectTreeTable/widgets/wrapMode.cjs.js.map +1 -0
- package/dist/shared/src/containers/ProjectTreeTable/widgets/wrapMode.es.js +11 -0
- package/dist/shared/src/containers/ProjectTreeTable/widgets/wrapMode.es.js.map +1 -0
- package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js +1 -1
- package/dist/shared/src/containers/Views/context/ViewsContext.cjs.js.map +1 -1
- package/dist/shared/src/containers/Views/context/ViewsContext.es.js +67 -62
- package/dist/shared/src/containers/Views/context/ViewsContext.es.js.map +1 -1
- package/dist/shared/src/containers/Views/utils/viewUpdateHelper.cjs.js +1 -1
- package/dist/shared/src/containers/Views/utils/viewUpdateHelper.cjs.js.map +1 -1
- package/dist/shared/src/containers/Views/utils/viewUpdateHelper.es.js +47 -46
- package/dist/shared/src/containers/Views/utils/viewUpdateHelper.es.js.map +1 -1
- package/dist/shared/src/context/ProjectContext.cjs.js +1 -1
- package/dist/shared/src/context/ProjectContext.cjs.js.map +1 -1
- package/dist/shared/src/context/ProjectContext.es.js +1 -1
- package/dist/shared/src/context/ProjectContext.es.js.map +1 -1
- package/dist/shared/src/util/buildHierarchicalTableRows.cjs.js +1 -1
- package/dist/shared/src/util/buildHierarchicalTableRows.cjs.js.map +1 -1
- package/dist/shared/src/util/buildHierarchicalTableRows.es.js +36 -33
- package/dist/shared/src/util/buildHierarchicalTableRows.es.js.map +1 -1
- package/dist/types/api/generated/graphql.d.ts +71 -0
- package/dist/types/api/queries/activities/getActivities.d.ts +28 -0
- package/dist/types/api/queries/entities/getEntity.d.ts +14 -0
- package/dist/types/api/queries/entities/getEntityPanel.d.ts +14 -0
- package/dist/types/api/queries/entities/updateEntity.d.ts +14 -0
- package/dist/types/api/queries/entityLists/getLists.d.ts +14 -0
- package/dist/types/api/queries/overview/getOverview.d.ts +14 -0
- package/dist/types/api/queries/project/getProject.d.ts +14 -0
- package/dist/types/api/queries/userDashboard/getUserDashboard.d.ts +14 -0
- package/dist/types/api/queries/users/getUsers.d.ts +14 -0
- package/dist/types/api/queries/versions/getVersionsProducts.d.ts +28 -0
- package/dist/types/components/SubtasksManager/SubtasksManagerWrapper.d.ts +4 -1
- package/dist/types/containers/Feed/helpers/buildBackendFilter.d.ts +1 -0
- package/dist/types/containers/ProjectTreeTable/buildTreeTableColumns.d.ts +1 -0
- package/dist/types/containers/ProjectTreeTable/constants.d.ts +3 -0
- package/dist/types/containers/ProjectTreeTable/widgets/SubtasksWidget.d.ts +1 -0
- package/dist/types/containers/ProjectTreeTable/widgets/wrapMode.d.ts +2 -0
- package/dist/types/containers/Views/context/ViewsContext.d.ts +1 -0
- package/dist/types/util/buildHierarchicalTableRows.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { j as
|
|
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 "../../
|
|
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 {
|
|
126
|
-
import {
|
|
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
|
|
134
|
-
import { TableCellContent as G, LinkColumnHeader as
|
|
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
|
|
137
|
-
import
|
|
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 = (
|
|
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 = (
|
|
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
|
-
},
|
|
260
|
-
([,
|
|
261
|
-
).map(([
|
|
262
|
-
id:
|
|
263
|
-
label:
|
|
264
|
-
})), ve = (
|
|
265
|
-
if (!
|
|
266
|
-
const
|
|
267
|
-
if (
|
|
268
|
-
if (
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
271
|
-
if (
|
|
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[
|
|
274
|
-
}, C = (
|
|
275
|
-
const I =
|
|
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 =
|
|
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 = (
|
|
280
|
-
const
|
|
281
|
-
return w.compare(
|
|
282
|
-
}, Q = (
|
|
283
|
-
const
|
|
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 = (
|
|
286
|
-
const I = $(
|
|
287
|
-
if (
|
|
288
|
-
const O =
|
|
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
|
|
291
|
-
}, Ie = (
|
|
292
|
-
scopes:
|
|
293
|
-
attribs:
|
|
294
|
-
links:
|
|
295
|
-
includeLinks:
|
|
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(
|
|
307
|
-
id:
|
|
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__ */
|
|
313
|
-
cell: ({ row: e }) => e.original.entityType === "group" || e.original.metaType ? null : /* @__PURE__ */
|
|
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:
|
|
342
|
+
cell: ({ row: e, column: i, table: n }) => {
|
|
323
343
|
if (e.original.entityType === "group" || e.original.metaType) return null;
|
|
324
|
-
const a =
|
|
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__ */
|
|
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:
|
|
359
|
-
const { value: a, id: r, type: s } = f(e, 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__ */
|
|
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__ */
|
|
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__ */
|
|
395
|
+
return /* @__PURE__ */ p.jsx(
|
|
376
396
|
fe,
|
|
377
397
|
{
|
|
378
398
|
id: e.original.group.value,
|
|
379
|
-
onLoadMore: (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__ */
|
|
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__ */
|
|
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__ */
|
|
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: () =>
|
|
442
|
+
toggleExpandAll: () => o?.toggleExpandAll?.([e.id]),
|
|
423
443
|
toggleExpanded: e.getToggleExpandedHandler(),
|
|
424
444
|
rowHeight: k,
|
|
425
|
-
columnDisplayConfig: he(
|
|
445
|
+
columnDisplayConfig: he(o?.columnsConfig, "name")
|
|
426
446
|
}
|
|
427
447
|
),
|
|
428
|
-
m(N) && /* @__PURE__ */
|
|
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:
|
|
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:
|
|
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,
|
|
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:
|
|
469
|
-
const { value: a, id: r, type: s } = f(e, i.id),
|
|
470
|
-
return ["group", h].includes(s) || e.original.metaType ? null : /* @__PURE__ */
|
|
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:
|
|
498
|
+
options: o?.options?.status.filter((m) => m.scope?.includes(s)),
|
|
479
499
|
isCollapsed: !!e.original.childOnlyMatch,
|
|
480
|
-
onChange: (m) =>
|
|
500
|
+
onChange: (m) => o?.updateEntities?.(
|
|
481
501
|
{ field: i.id, value: m, type: s, rowId: r },
|
|
482
|
-
{ selection:
|
|
502
|
+
{ selection: o?.selection }
|
|
483
503
|
),
|
|
484
|
-
isReadOnly:
|
|
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:
|
|
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
|
|
517
|
-
return /* @__PURE__ */
|
|
536
|
+
const o = U(e.id, i.id);
|
|
537
|
+
return /* @__PURE__ */ p.jsxs(
|
|
518
538
|
G,
|
|
519
539
|
{
|
|
520
|
-
id:
|
|
521
|
-
className: b("entityType",
|
|
540
|
+
id: o,
|
|
541
|
+
className: b("entityType", de, s, { loading: e.original.isLoading }),
|
|
522
542
|
tabIndex: 0,
|
|
523
543
|
children: [
|
|
524
|
-
/* @__PURE__ */
|
|
544
|
+
/* @__PURE__ */ p.jsx(J, { icon: Z(s) }),
|
|
525
545
|
" ",
|
|
526
|
-
|
|
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",
|
|
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,
|
|
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:
|
|
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
|
|
553
|
-
return /* @__PURE__ */
|
|
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:
|
|
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(
|
|
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:
|
|
592
|
-
const a =
|
|
593
|
-
return ["group", h].includes(
|
|
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__ */
|
|
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:
|
|
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(
|
|
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:
|
|
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__ */
|
|
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) =>
|
|
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:
|
|
668
|
-
return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */
|
|
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:
|
|
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) =>
|
|
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:
|
|
693
|
-
const a =
|
|
694
|
-
return ["group", h].includes(
|
|
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:
|
|
724
|
+
isInherited: o === "product"
|
|
705
725
|
}
|
|
706
726
|
);
|
|
707
727
|
}
|
|
708
|
-
}), g(L.version) && ["version", "product"].some((e) =>
|
|
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:
|
|
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 ||
|
|
722
|
-
return e.original.entityType === "product" && (s = `${e.original.versionName} (${e.original.versionsCount || 0} versions)`), /* @__PURE__ */
|
|
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) =>
|
|
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:
|
|
748
|
-
return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */
|
|
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:
|
|
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) =>
|
|
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:
|
|
772
|
-
return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */
|
|
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:
|
|
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:
|
|
795
|
-
const a =
|
|
796
|
-
return ["group", h].includes(
|
|
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:
|
|
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(
|
|
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:
|
|
827
|
-
return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */
|
|
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:
|
|
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:
|
|
853
|
-
return ["group", h].includes(r) || e.original.metaType ? null : /* @__PURE__ */
|
|
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:
|
|
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") &&
|
|
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:
|
|
877
|
-
const a =
|
|
878
|
-
if (["group", h].includes(
|
|
879
|
-
if (
|
|
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:
|
|
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__ */
|
|
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") &&
|
|
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:
|
|
908
|
-
return ["group", h].includes(r) || e.original.metaType ? null : !e.original.isLoading && !["task", "version", "product", "folder"].includes(r) ? /* @__PURE__ */
|
|
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:
|
|
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 =
|
|
924
|
-
if (e.scope && !e.scope.some((
|
|
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((
|
|
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:
|
|
941
|
-
const s = r.options.meta,
|
|
942
|
-
return ["group", h].includes(N) ||
|
|
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:
|
|
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:
|
|
952
|
-
isCollapsed: !!
|
|
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
|
-
(_) => _ ===
|
|
979
|
+
(_) => _ === o || _ === "attrib" && e.builtin
|
|
959
980
|
)
|
|
960
981
|
),
|
|
961
982
|
onChange: (_) => s?.updateEntities?.(
|
|
962
|
-
{ field:
|
|
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 =
|
|
969
|
-
const i = (
|
|
970
|
-
id: Se(e,
|
|
971
|
-
accessorKey: `links.${ee(e,
|
|
972
|
-
header: () => /* @__PURE__ */
|
|
973
|
-
Ie(e,
|
|
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__ */
|
|
976
|
-
|
|
996
|
+
/* @__PURE__ */ p.jsx(
|
|
997
|
+
J,
|
|
977
998
|
{
|
|
978
|
-
icon:
|
|
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
|
|
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:
|
|
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:
|
|
1017
|
+
targetEntityType: n === "in" ? e.inputType : e.outputType
|
|
997
1018
|
}
|
|
998
1019
|
};
|
|
999
|
-
return /* @__PURE__ */
|
|
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 = (
|
|
1020
|
-
value:
|
|
1021
|
-
id:
|
|
1022
|
-
type:
|
|
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
|
-
|
|
1049
|
+
Un as default,
|
|
1029
1050
|
v as getColumnLabel,
|
|
1030
|
-
|
|
1051
|
+
Wn as getColumnSortKey,
|
|
1031
1052
|
Se as getLinkColumnId,
|
|
1032
1053
|
ee as getLinkKey,
|
|
1033
1054
|
Ie as getLinkLabel,
|
|
1034
|
-
|
|
1055
|
+
Vn as getNameColumnLabel,
|
|
1056
|
+
$n as getSortableColumnOptions,
|
|
1035
1057
|
f as getValueIdType,
|
|
1036
1058
|
ve as isColumnSortable,
|
|
1037
1059
|
Te as isEntityExpandable
|