@ynput/ayon-frontend-shared 0.5.0 → 0.6.1
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/ContextMenu.es.js +34 -16
- package/dist/DetailsPanel.es.js +307 -311
- package/dist/Feed.es.js +179 -50
- package/dist/ListTable.es.js +99 -92
- package/dist/NewEntity.es.js +1256 -11
- package/dist/ProjectTreeTable.es.js +4459 -2959
- package/dist/SimpleTable.es.js +8 -7
- package/dist/Slicer.es.js +451 -147
- package/dist/Views.es.js +918 -310
- package/dist/api.es.js +331 -329
- package/dist/chunks/Actions.es.js +32 -27
- package/dist/chunks/ColumnDropIndicator.es.js +174 -328
- package/dist/chunks/ColumnDropIndicator.styled.es.js +281 -0
- package/dist/chunks/ColumnHeaderMenuUI.es.js +52 -0
- package/dist/chunks/ContextMenuContextInstance.es.js +12 -0
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +229 -0
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +827 -0
- package/dist/chunks/DetailsDialog.es.js +3 -3
- package/dist/chunks/EmptyPlaceholder.es.js +4 -4
- package/dist/chunks/EntityPath.es.js +74 -69
- package/dist/chunks/EntityPickerDialog.es.js +25 -21
- package/dist/chunks/EntityTooltip.es.js +29 -22
- package/dist/chunks/EntityUpdatesContext.es.js +38 -96
- package/dist/chunks/Feed.es.js +2321 -2668
- package/dist/chunks/FilterErrorActions.es.js +25 -229
- package/dist/chunks/Menu.es.js +21 -17
- package/dist/chunks/MenuContext.es.js +14 -256
- package/dist/chunks/MenuItem.es.js +34 -24
- package/dist/chunks/MetaWidget.es.js +2895 -4919
- package/dist/chunks/NewEntityContextInstance.es.js +11 -0
- package/dist/chunks/PlayableIcon.es.js +4215 -1179
- package/dist/chunks/ProjectContext.es.js +102 -66
- package/dist/chunks/RepresentationsList.es.js +4 -4
- package/dist/chunks/ReviewablesSelector.es.js +468 -460
- package/dist/chunks/SimpleForm.es.js +18 -18
- package/dist/chunks/SimpleTable.es.js +15 -13
- package/dist/chunks/Slicer.es.js +109 -98
- package/dist/chunks/TableSettingsFallback.es.js +22 -10
- package/dist/chunks/ThumbnailSimple.es.js +290 -52
- package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
- package/dist/chunks/VideoPlayer.es.js +24 -28
- package/dist/chunks/Watchers.es.js +669 -644
- package/dist/chunks/entityDefinitions.es.js +2 -350
- package/dist/chunks/expandRelativeDates.es.js +27 -0
- package/dist/chunks/extractVersionFromFilename.es.js +28 -0
- package/dist/chunks/getBundleMode.es.js +1 -1
- package/dist/chunks/getUris.es.js +737 -710
- package/dist/chunks/queryFilterToClientFilter.es.js +11 -10
- package/dist/chunks/searchTerms.es.js +179 -174
- package/dist/chunks/useAttributeEnums.es.js +9 -9
- package/dist/chunks/useCreateContextMenu.es.js +66 -90
- package/dist/chunks/useDateRangeFilter.es.js +3 -3
- package/dist/chunks/useHierarchySelection.es.js +24 -0
- package/dist/chunks/useLoadModule.es.js +74 -0
- package/dist/chunks/useQueryArgumentChangeLoading.es.js +11 -0
- package/dist/chunks/versionUploadHelpers.es.js +16 -42
- package/dist/chunks/viewUpdateHelper.es.js +74 -57
- package/dist/components.es.js +1432 -1001
- package/dist/context.es.js +791 -78
- package/dist/hooks.es.js +95 -94
- package/dist/index.es.js +27 -26
- package/dist/types/Actions.d.ts +15 -15
- package/dist/types/ContextMenu.d.ts +19 -16
- package/dist/types/DetailsPanel.d.ts +110 -17
- package/dist/types/EntityPickerDialog.d.ts +15 -15
- package/dist/types/Feed.d.ts +19 -16
- package/dist/types/ListTable.d.ts +15 -15
- package/dist/types/NewEntity.d.ts +24 -18
- package/dist/types/ProjectTreeTable.d.ts +34 -123
- package/dist/types/RepresentationsList.d.ts +15 -15
- package/dist/types/SimpleTable.d.ts +19 -16
- package/dist/types/Slicer.d.ts +18 -15
- package/dist/types/Views.d.ts +19 -16
- package/dist/types/api.d.ts +515 -207
- package/dist/types/components.d.ts +84 -20
- package/dist/types/context.d.ts +108 -25
- package/dist/types/hooks.d.ts +15 -15
- package/dist/types/index.d.ts +15 -15
- package/dist/types/util.d.ts +20 -15
- package/dist/util.es.js +117 -105
- package/package.json +16 -4
- package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
- package/dist/chunks/GlobalContext.es.js +0 -52
- package/dist/chunks/NewEntityContext.es.js +0 -1242
- package/dist/chunks/ProjectFoldersContext.es.js +0 -134
- package/dist/chunks/ProjectFoldersContextInstance.es.js +0 -7
- package/dist/chunks/VersionUploadContext.es.js +0 -232
- package/dist/chunks/ViewsContext.es.js +0 -878
- package/dist/chunks/mentionTypeOptions.es.js +0 -15
- package/dist/chunks/useColumnDragRestriction.es.js +0 -148
- package/dist/chunks/useLocalStorage.es.js +0 -355
- /package/dist/{useCreateContextMenu.css → ContextMenuContextInstance.css} +0 -0
package/dist/chunks/Slicer.es.js
CHANGED
|
@@ -2,36 +2,47 @@ import { jsx as E, jsxs as G, Fragment as $e } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as U, useCallback as A, useMemo as O, useContext as Ye, useEffect as se, forwardRef as Je, useRef as ye, useId as Xe, useImperativeHandle as Ze, useLayoutEffect as Te } from "react";
|
|
3
3
|
import { Splitter as et, SplitterPanel as tt } from "primereact/splitter";
|
|
4
4
|
import V from "styled-components";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { E as ot, u as at } from "./EntityPickerDialog.es.js";
|
|
10
|
-
import { toast as Re } from "react-toastify";
|
|
11
|
-
import { be as De, bp as it, bf as Ue, bn as rt } from "./searchTerms.es.js";
|
|
12
|
-
import { dk as Ve, cE as lt, bR as ct, bx as dt } from "./getUris.es.js";
|
|
5
|
+
import { h as nt, P as st, d as Ie, U as ze } from "./MetaWidget.es.js";
|
|
6
|
+
import "@module-federation/enhanced/runtime";
|
|
7
|
+
import { bi as De, br as ot, bj as Ue, bp as at } from "./searchTerms.es.js";
|
|
8
|
+
import { dl as Ve, cF as it, bS as rt, by as lt } from "./getUris.es.js";
|
|
13
9
|
import "primereact/confirmdialog";
|
|
14
|
-
import {
|
|
10
|
+
import { q as He, y as Ce, x as ue, d as ct, a as we, v as dt, a5 as ut, a4 as pt, u as ft, ac as mt } from "./DeleteEntitiesContextInstance.es.js";
|
|
15
11
|
import "lodash";
|
|
12
|
+
import { toast as Re } from "react-toastify";
|
|
16
13
|
import "uuid";
|
|
17
|
-
import { b as he, H as ft, a as mt, d as ht, S as gt } from "./SimpleTable.es.js";
|
|
18
|
-
import { a as ue } from "./ProjectContext.es.js";
|
|
19
|
-
import { u as yt } from "./GlobalContext.es.js";
|
|
20
|
-
import { u as bt, a as St } from "./useAttributeEnums.es.js";
|
|
21
|
-
import { g as ge } from "./getEntityTypeIcon.es.js";
|
|
22
|
-
import { b as Tt, s as vt } from "./buildHierarchicalTableRows.es.js";
|
|
23
|
-
import { g as xt } from "./parseHtmlToPlainTextWithLinks.es.js";
|
|
24
|
-
import { InputText as It, Button as Ct, Icon as wt } from "@ynput/ayon-react-components";
|
|
25
|
-
import W from "clsx";
|
|
26
|
-
import { u as Lt } from "./NewEntityContext.es.js";
|
|
27
|
-
import { a as Et, K as kt } from "./platform.es.js";
|
|
28
|
-
import { g as Rt } from "./DeleteEntitiesContext.es.js";
|
|
29
|
-
import { u as Dt } from "./VersionUploadContext.es.js";
|
|
30
|
-
import { u as Pt, b as Mt, F as Pe } from "./EntityUpdatesContext.es.js";
|
|
31
|
-
import "./MenuItem.es.js";
|
|
32
|
-
import "@module-federation/enhanced/runtime";
|
|
33
14
|
import "semver";
|
|
15
|
+
import { InputText as ht, Button as gt, Icon as yt } from "@ynput/ayon-react-components";
|
|
16
|
+
import "./ContextMenuContextInstance.es.js";
|
|
17
|
+
import W from "clsx";
|
|
34
18
|
import "react-dom";
|
|
19
|
+
import "react-redux";
|
|
20
|
+
import { E as bt, u as St } from "./EntityPickerDialog.es.js";
|
|
21
|
+
import "./PlayableIcon.es.js";
|
|
22
|
+
import "date-fns";
|
|
23
|
+
import "lexical";
|
|
24
|
+
import "@lexical/markdown";
|
|
25
|
+
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
26
|
+
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
27
|
+
import "match-sorter";
|
|
28
|
+
import "@lexical/code";
|
|
29
|
+
import "@lexical/list";
|
|
30
|
+
import "@lexical/rich-text";
|
|
31
|
+
import "@lexical/selection";
|
|
32
|
+
import "@lexical/utils";
|
|
33
|
+
import "react-router-dom";
|
|
34
|
+
import "@tanstack/react-table";
|
|
35
|
+
import { b as he, H as Tt, a as vt, e as xt, S as It } from "./SimpleTable.es.js";
|
|
36
|
+
import { g as ge } from "./getEntityTypeIcon.es.js";
|
|
37
|
+
import { g as Ct } from "./parseHtmlToPlainTextWithLinks.es.js";
|
|
38
|
+
import { u as wt, a as Lt } from "./useAttributeEnums.es.js";
|
|
39
|
+
import { b as Et, s as kt } from "./buildHierarchicalTableRows.es.js";
|
|
40
|
+
import { n as me } from "./entityDefinitions.es.js";
|
|
41
|
+
import { a as Dt, K as Rt } from "./platform.es.js";
|
|
42
|
+
import { u as Pt } from "./NewEntityContextInstance.es.js";
|
|
43
|
+
import { u as Mt } from "./VersionUploadContextInstance.es.js";
|
|
44
|
+
import { F as Pe } from "./EntityUpdatesContext.es.js";
|
|
45
|
+
import "./MenuItem.es.js";
|
|
35
46
|
const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.includes(r) ? Ge : a), Ot = (e, t, a, r) => {
|
|
36
47
|
const d = e.reduce((p, g) => p + g, 0), l = r.filter(Boolean).length;
|
|
37
48
|
if (!l || d === a) return e;
|
|
@@ -74,8 +85,8 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
74
85
|
}, Ft = "slicer-splitter", Me = {
|
|
75
86
|
minSize: 2,
|
|
76
87
|
size: 12
|
|
77
|
-
},
|
|
78
|
-
const [e, t] =
|
|
88
|
+
}, rs = () => {
|
|
89
|
+
const [e, t] = He(Ft, [
|
|
79
90
|
Me.size,
|
|
80
91
|
100 - Me.size
|
|
81
92
|
]);
|
|
@@ -83,7 +94,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
83
94
|
t(r.sizes);
|
|
84
95
|
}];
|
|
85
96
|
}, $t = (e, t, a = [], r = 0) => {
|
|
86
|
-
const [d, l] =
|
|
97
|
+
const [d, l] = He(
|
|
87
98
|
`slicer-panel-heights-${e}`,
|
|
88
99
|
{}
|
|
89
100
|
), [f, S] = U(0), m = Array.isArray(d) ? {} : d, {
|
|
@@ -117,7 +128,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
117
128
|
onClose: a,
|
|
118
129
|
onMoveComplete: r
|
|
119
130
|
}) => {
|
|
120
|
-
const [d] = Ve(), l =
|
|
131
|
+
const [d] = Ve(), l = nt(), { folders: f } = Ce(), S = l?.tableData || [], m = A(
|
|
121
132
|
(h) => l?.getEntityById(h) || f.find((i) => i.id === h),
|
|
122
133
|
[f, l]
|
|
123
134
|
), p = A(
|
|
@@ -250,7 +261,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
250
261
|
onMoveComplete: r
|
|
251
262
|
});
|
|
252
263
|
return t?.entities.length ? /* @__PURE__ */ E(
|
|
253
|
-
|
|
264
|
+
bt,
|
|
254
265
|
{
|
|
255
266
|
projectName: e,
|
|
256
267
|
entityType: "folder",
|
|
@@ -265,7 +276,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
265
276
|
}
|
|
266
277
|
) : null;
|
|
267
278
|
}, Vt = ({ projectName: e, useExtraSlices: t }) => {
|
|
268
|
-
const [a, { isLoading: r, isFetching: d }] =
|
|
279
|
+
const [a, { isLoading: r, isFetching: d }] = it(), { formatAssignees: l } = t();
|
|
269
280
|
return {
|
|
270
281
|
getData: async () => {
|
|
271
282
|
const S = await a({ projectName: e || "" }, !0).unwrap();
|
|
@@ -276,15 +287,15 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
276
287
|
}, Ht = ({ scopes: e, useExtraSlices: t }) => {
|
|
277
288
|
const { isLoading: a, productTypes: r, ...d } = ue(), { formatStatuses: l, formatTaskTypes: f, formatProductTypes: S, formatTypes: m, formatAttribute: p } = t();
|
|
278
289
|
return { project: d, getStatuses: async () => l(d, e), getTypes: async () => m(d), getTaskTypes: async () => f(d), getProductTypes: async () => S(r), getAttribute: async (i) => p ? p(i).map(
|
|
279
|
-
(c) =>
|
|
290
|
+
(c) => ot(c.icon ?? void 0) ? { ...c, icon: void 0, img: c.icon, imgShape: "circle" } : c
|
|
280
291
|
) : void 0, isLoading: a };
|
|
281
292
|
}, Bt = ({ entityTypes: e, request: t }) => {
|
|
282
293
|
const {
|
|
283
294
|
attributes: a,
|
|
284
295
|
isLoading: { siteInfo: r }
|
|
285
|
-
} =
|
|
286
|
-
return { attributes:
|
|
287
|
-
(p) => p.data.enum?.some((g) => g.hidden) ? { ...p, data: { ...p.data, enum:
|
|
296
|
+
} = ct(), d = Ye(st), l = d?.attribFields?.length ? d.attribFields : a, { projectName: f } = ue();
|
|
297
|
+
return { attributes: wt(l, { projectName: f, request: t ?? [] }).filter((p) => Ue(p.data)).filter((p) => e.some((g) => p.scope?.includes(g))).map(
|
|
298
|
+
(p) => p.data.enum?.some((g) => g.hidden) ? { ...p, data: { ...p.data, enum: at(p.data.enum) } } : p
|
|
288
299
|
), isLoading: r };
|
|
289
300
|
}, Gt = "snippet_folder", de = "folder", Kt = (e) => `${de}-${e}`, _e = (e) => e.entityListType === "review-session" ? "subscriptions" : ge(e.entityType), ve = (e) => [...e].sort((t, a) => {
|
|
290
301
|
if (t.active && !a.active) return -1;
|
|
@@ -292,17 +303,17 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
292
303
|
const r = new Date(t.createdAt || 0);
|
|
293
304
|
return new Date(a.createdAt || 0).getTime() - r.getTime();
|
|
294
305
|
}), Wt = (e = !0) => {
|
|
295
|
-
const { projectName: t } = ue(), { powerLicense: a } =
|
|
306
|
+
const { projectName: t } = ue(), { powerLicense: a } = we(), {
|
|
296
307
|
data: r,
|
|
297
308
|
isLoading: d,
|
|
298
309
|
isFetching: l
|
|
299
|
-
} =
|
|
310
|
+
} = rt(
|
|
300
311
|
{ projectName: t || "" },
|
|
301
312
|
{
|
|
302
313
|
initialPageParam: { cursor: "" },
|
|
303
314
|
skip: !t || !e
|
|
304
315
|
}
|
|
305
|
-
), { data: f = [], isLoading: S } =
|
|
316
|
+
), { data: f = [], isLoading: S } = lt(
|
|
306
317
|
{ projectName: t || "" },
|
|
307
318
|
{ skip: !t || !a || !e }
|
|
308
319
|
), m = O(() => {
|
|
@@ -365,7 +376,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
365
376
|
for (const T of n.children.values())
|
|
366
377
|
x.push(...s(T));
|
|
367
378
|
return x;
|
|
368
|
-
}, o =
|
|
379
|
+
}, o = Et({
|
|
369
380
|
folderNodes: u,
|
|
370
381
|
rootFolderIds: b,
|
|
371
382
|
showEmptyFolders: !1,
|
|
@@ -416,7 +427,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
416
427
|
isLoading: d || l || S,
|
|
417
428
|
isExpandable: p
|
|
418
429
|
};
|
|
419
|
-
}, qt = (e, t, a, r) => e.id === "noValue" ? t.get(
|
|
430
|
+
}, qt = (e, t, a, r) => e.id === "noValue" ? t.get(ze)?.count ?? (r ? 0 : void 0) : e.id === "hasValue" ? r ? a : void 0 : t.get(e.id)?.count ?? (e.name ? t.get(e.name)?.count : void 0) ?? (r ? 0 : void 0), Ke = (e, t, a, r) => t ? e.map((d) => {
|
|
420
431
|
const l = qt(d, t, a, r);
|
|
421
432
|
return {
|
|
422
433
|
...d,
|
|
@@ -497,7 +508,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
497
508
|
onSliceTypeChange: p,
|
|
498
509
|
useExtraSlices: g,
|
|
499
510
|
isLoadingExtraSlices: L
|
|
500
|
-
} = Ie(), u = f ?? m, b = S ?? p, { projectName: h } = ue(), { formatAttribute: i } = g(), c = e.filter((C) => Ae.some((
|
|
511
|
+
} = Ie(), u = f ?? m, b = S ?? p, { projectName: h } = ue(), { formatAttribute: i } = g(), c = e.filter((C) => Ae.some((R) => R.value === C.value)).map((C) => ({
|
|
501
512
|
...Ae.find((_) => _.value === C.value),
|
|
502
513
|
...C
|
|
503
514
|
})), s = e.some((C) => C.value === "attributes"), o = u?.startsWith("attrib.") ? u.slice(7) : void 0, y = O(
|
|
@@ -511,7 +522,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
511
522
|
(C) => c.push({
|
|
512
523
|
label: C.data.title || C.name,
|
|
513
524
|
value: "attrib." + C.name,
|
|
514
|
-
icon:
|
|
525
|
+
icon: Ct(C.name, C.data.type, Ue(C.data))
|
|
515
526
|
})
|
|
516
527
|
);
|
|
517
528
|
const [T, v] = U(!1), H = !!n.find((C) => C.name === o)?.enumIsLoading, {
|
|
@@ -526,18 +537,18 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
526
537
|
data: te,
|
|
527
538
|
getData: Q,
|
|
528
539
|
isFetching: Y
|
|
529
|
-
} =
|
|
540
|
+
} = St({
|
|
530
541
|
projectName: h || "",
|
|
531
542
|
folderTypes: oe?.folderTypes || [],
|
|
532
543
|
includeColors: !0
|
|
533
|
-
}), { getData: I, isLoading:
|
|
544
|
+
}), { getData: I, isLoading: D } = Vt({
|
|
534
545
|
projectName: h,
|
|
535
546
|
useExtraSlices: g
|
|
536
547
|
}), {
|
|
537
548
|
getData: P,
|
|
538
549
|
isLoading: K,
|
|
539
550
|
isExpandable: re
|
|
540
|
-
} = Wt(u === "entityList"), F = Y || B ||
|
|
551
|
+
} = Wt(u === "entityList"), F = Y || B || D || L && u !== "hierarchy" || K && u === "entityList" || x || H, N = {
|
|
541
552
|
hierarchy: {
|
|
542
553
|
getData: Q,
|
|
543
554
|
isLoading: Y,
|
|
@@ -545,14 +556,14 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
545
556
|
},
|
|
546
557
|
assignees: {
|
|
547
558
|
getData: I,
|
|
548
|
-
isLoading:
|
|
559
|
+
isLoading: D,
|
|
549
560
|
isExpandable: !1,
|
|
550
561
|
noValue: !0,
|
|
551
562
|
hasValue: !0
|
|
552
563
|
},
|
|
553
564
|
author: {
|
|
554
565
|
getData: I,
|
|
555
|
-
isLoading:
|
|
566
|
+
isLoading: D,
|
|
556
567
|
isExpandable: !1
|
|
557
568
|
},
|
|
558
569
|
status: {
|
|
@@ -594,13 +605,13 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
594
605
|
se(() => {
|
|
595
606
|
F || $ || !ne || b(ne, !1);
|
|
596
607
|
}, [F, $, ne]);
|
|
597
|
-
const z = (C,
|
|
608
|
+
const z = (C, R) => {
|
|
598
609
|
const _ = N[C];
|
|
599
610
|
if (!_) {
|
|
600
611
|
console.warn(`Slice type ${C} not found`);
|
|
601
612
|
return;
|
|
602
613
|
}
|
|
603
|
-
(_.isAttribute && s || e.some((ce) => ce.value === C)) && b(C,
|
|
614
|
+
(_.isAttribute && s || e.some((ce) => ce.value === C)) && b(C, R);
|
|
604
615
|
};
|
|
605
616
|
se(() => {
|
|
606
617
|
if (F) return;
|
|
@@ -608,17 +619,17 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
608
619
|
try {
|
|
609
620
|
if (!$) return;
|
|
610
621
|
v(!0);
|
|
611
|
-
const
|
|
612
|
-
if (
|
|
622
|
+
const R = await $.getData();
|
|
623
|
+
if (R === void 0)
|
|
613
624
|
throw window.alert(
|
|
614
625
|
"Slice options failed to load. This likely means the PowerFeatures addon is out of date. Please update to the latest version."
|
|
615
626
|
), b(ne ?? "hierarchy", !1), new Error("Slice data is undefined");
|
|
616
|
-
$.hasValue &&
|
|
617
|
-
data:
|
|
627
|
+
$.hasValue && R.unshift(Yt(u)), $.noValue && R.unshift(Qt(u)), fe({
|
|
628
|
+
data: R,
|
|
618
629
|
isExpandable: $.isExpandable
|
|
619
630
|
});
|
|
620
|
-
} catch (
|
|
621
|
-
console.error("Error fetching slice data:",
|
|
631
|
+
} catch (R) {
|
|
632
|
+
console.error("Error fetching slice data:", R), fe(pe);
|
|
622
633
|
} finally {
|
|
623
634
|
v(!1);
|
|
624
635
|
}
|
|
@@ -628,12 +639,12 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
628
639
|
() => Ke(le.data, r, d, l),
|
|
629
640
|
[le.data, r, d, l]
|
|
630
641
|
), Le = O(() => {
|
|
631
|
-
const C = /* @__PURE__ */ new Map(),
|
|
632
|
-
for (;
|
|
633
|
-
const _ =
|
|
642
|
+
const C = /* @__PURE__ */ new Map(), R = [...j];
|
|
643
|
+
for (; R.length > 0; ) {
|
|
644
|
+
const _ = R.shift();
|
|
634
645
|
if (_ && (C.set(_.id, _), _.subRows && _.subRows.length > 0))
|
|
635
646
|
for (const ce of _.subRows)
|
|
636
|
-
|
|
647
|
+
R.push(ce);
|
|
637
648
|
}
|
|
638
649
|
return C;
|
|
639
650
|
}, [j]);
|
|
@@ -655,7 +666,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
655
666
|
extraGroupBys: l,
|
|
656
667
|
args: e?.args ?? { projectName: "" },
|
|
657
668
|
skip: f
|
|
658
|
-
}, { counts: m, total: p, complete: g } =
|
|
669
|
+
}, { counts: m, total: p, complete: g } = Lt(S), L = m?.get(ze)?.count ?? 0, u = Math.max(p - L, 0);
|
|
659
670
|
return {
|
|
660
671
|
counts: f ? void 0 : m ?? (g ? Xt : void 0),
|
|
661
672
|
total: p,
|
|
@@ -670,7 +681,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
670
681
|
flex: 1;
|
|
671
682
|
min-width: 0;
|
|
672
683
|
}
|
|
673
|
-
`, tn = V(
|
|
684
|
+
`, tn = V(ht)`
|
|
674
685
|
flex: 1;
|
|
675
686
|
min-width: 0;
|
|
676
687
|
height: 28px;
|
|
@@ -703,7 +714,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
703
714
|
}, xe = (e, t) => {
|
|
704
715
|
e.toggleExpanded(t), e.subRows?.forEach((a) => xe(a, t));
|
|
705
716
|
}, Oe = (e) => e.map((t) => t.id).filter(Boolean), sn = (e, t, a, r) => {
|
|
706
|
-
const { onOpenNew: d } =
|
|
717
|
+
const { onOpenNew: d } = Pt(), { projectName: l } = ue(), { setEntities: f } = dt(), S = Mt(), [m] = Ve(), { deleteEntities: p } = ut(), [g, L] = U(null), u = A(
|
|
707
718
|
(c, s) => s.map((o) => t?.get(o) || (o === c.id ? c : void 0)).filter((o) => !!o),
|
|
708
719
|
[t]
|
|
709
720
|
), b = O(
|
|
@@ -782,7 +793,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
782
793
|
(c, { row: s, selectedRows: o }) => ({
|
|
783
794
|
label: "Show details",
|
|
784
795
|
icon: "dock_to_left",
|
|
785
|
-
shortcut:
|
|
796
|
+
shortcut: Dt("click", [Rt.Alt]),
|
|
786
797
|
command: () => b.onShowDetails(s.original, o)
|
|
787
798
|
}),
|
|
788
799
|
(c, { row: s }) => ({
|
|
@@ -862,7 +873,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
862
873
|
onSubmitRename: h,
|
|
863
874
|
onCancelRename: () => L(null)
|
|
864
875
|
};
|
|
865
|
-
}, on = V(
|
|
876
|
+
}, on = V(gt)`
|
|
866
877
|
/* put above the menu so it's still clickable */
|
|
867
878
|
/* NOTE: this will need fixing as this also puts it above dialogs */
|
|
868
879
|
/* z-index: 1001; */
|
|
@@ -934,7 +945,7 @@ const an = (e, t, a) => {
|
|
|
934
945
|
).join(", ")} since last sync`;
|
|
935
946
|
}, ln = Je(
|
|
936
947
|
({ projectNames: e, topics: t, onSync: a, shouldSyncOnUpdate: r, hideWhenNoUpdates: d = !1, ...l }, f) => {
|
|
937
|
-
const [S, m] = U(!1), [p, g] =
|
|
948
|
+
const [S, m] = U(!1), [p, g] = pt(), { setMenuOpen: L } = ft(), u = ye(null), b = ye(), h = Xe();
|
|
938
949
|
se(() => () => {
|
|
939
950
|
const v = b.current;
|
|
940
951
|
b.current = void 0, v !== void 0 && clearTimeout(v);
|
|
@@ -946,7 +957,7 @@ const an = (e, t, a) => {
|
|
|
946
957
|
} finally {
|
|
947
958
|
m(!1);
|
|
948
959
|
}
|
|
949
|
-
}, { updates: c, hasUpdates: s } =
|
|
960
|
+
}, { updates: c, hasUpdates: s } = mt({
|
|
950
961
|
projectNames: e,
|
|
951
962
|
topics: t,
|
|
952
963
|
isSyncing: S,
|
|
@@ -954,7 +965,7 @@ const an = (e, t, a) => {
|
|
|
954
965
|
});
|
|
955
966
|
if (se(() => {
|
|
956
967
|
const v = (k) => {
|
|
957
|
-
k.repeat || !k.shiftKey || k.ctrlKey || k.metaKey || k.key.toLowerCase() !== "r" ||
|
|
968
|
+
k.repeat || !k.shiftKey || k.ctrlKey || k.metaKey || k.key.toLowerCase() !== "r" || kt(k) || (k.preventDefault(), k.stopPropagation(), i());
|
|
958
969
|
};
|
|
959
970
|
return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
|
|
960
971
|
}, [i]), d && !s) return null;
|
|
@@ -1044,7 +1055,7 @@ const an = (e, t, a) => {
|
|
|
1044
1055
|
title: i.label || i.name,
|
|
1045
1056
|
"aria-label": i.label || i.name,
|
|
1046
1057
|
children: [
|
|
1047
|
-
i.startContent ?? (i.img ? /* @__PURE__ */ E("img", { src: i.img, alt: "" }) : i.icon && /* @__PURE__ */ E(
|
|
1058
|
+
i.startContent ?? (i.img ? /* @__PURE__ */ E("img", { src: i.img, alt: "" }) : i.icon && /* @__PURE__ */ E(yt, { icon: i.icon, style: { color: i.iconColor } })),
|
|
1048
1059
|
!(p && f(i)) && /* @__PURE__ */ E("span", { children: i.label || i.name })
|
|
1049
1060
|
]
|
|
1050
1061
|
},
|
|
@@ -1072,7 +1083,7 @@ const an = (e, t, a) => {
|
|
|
1072
1083
|
flex: 1;
|
|
1073
1084
|
min-width: 0;
|
|
1074
1085
|
}
|
|
1075
|
-
`, fn = V(
|
|
1086
|
+
`, fn = V(Tt)`
|
|
1076
1087
|
.slicer-dropdown {
|
|
1077
1088
|
flex: 0 1 auto;
|
|
1078
1089
|
min-width: 48px;
|
|
@@ -1136,7 +1147,7 @@ const an = (e, t, a) => {
|
|
|
1136
1147
|
isViewSyncPending: k,
|
|
1137
1148
|
onOpenViewer: H,
|
|
1138
1149
|
onAddToList: oe
|
|
1139
|
-
} = Ie(), { refetch: ae } =
|
|
1150
|
+
} = Ie(), { refetch: ae } = Ce(), { powerLicense: q, setPowerpackDialog: ie } = we(), Z = y(e.id), ee = x(e.id), B = (w) => {
|
|
1140
1151
|
n(e.id, w);
|
|
1141
1152
|
}, te = A(
|
|
1142
1153
|
(w) => T(e.id, w),
|
|
@@ -1149,7 +1160,7 @@ const an = (e, t, a) => {
|
|
|
1149
1160
|
if (typeof l != "function") return w;
|
|
1150
1161
|
const M = (X) => JSON.stringify([X?.entity, X?.args]), Qe = M(Q);
|
|
1151
1162
|
return w.filter((X) => X === e.sliceType || M(l(X)) === Qe);
|
|
1152
|
-
}, [l, Q, t, e.sliceType]), { counts: I, filled:
|
|
1163
|
+
}, [l, Q, t, e.sliceType]), { counts: I, filled: D, complete: P } = Zt(
|
|
1153
1164
|
Q,
|
|
1154
1165
|
e.sliceType,
|
|
1155
1166
|
Y
|
|
@@ -1173,11 +1184,11 @@ const an = (e, t, a) => {
|
|
|
1173
1184
|
usedSliceTypes: re,
|
|
1174
1185
|
entityTypes: r,
|
|
1175
1186
|
counts: I,
|
|
1176
|
-
filled:
|
|
1187
|
+
filled: D,
|
|
1177
1188
|
countsComplete: P,
|
|
1178
1189
|
sliceType: e.sliceType,
|
|
1179
1190
|
onSliceTypeChange: K
|
|
1180
|
-
}), z = N === "hierarchy", j = !!p && c.includes(e.id), C = F.find((w) => w.value === N)?.label || N,
|
|
1191
|
+
}), z = N === "hierarchy", j = !!p && c.includes(e.id), C = F.find((w) => w.value === N)?.label || N, R = L !== void 0, _ = L ?? "", ce = z ? "Folders" : C, J = sn(
|
|
1181
1192
|
f || oe,
|
|
1182
1193
|
$,
|
|
1183
1194
|
H,
|
|
@@ -1201,7 +1212,7 @@ const an = (e, t, a) => {
|
|
|
1201
1212
|
}
|
|
1202
1213
|
pe(M, !!g && d === N);
|
|
1203
1214
|
};
|
|
1204
|
-
return /* @__PURE__ */ G(
|
|
1215
|
+
return /* @__PURE__ */ G(vt, { children: [
|
|
1205
1216
|
/* @__PURE__ */ G(
|
|
1206
1217
|
fn,
|
|
1207
1218
|
{
|
|
@@ -1222,7 +1233,7 @@ const an = (e, t, a) => {
|
|
|
1222
1233
|
// the dropdown cannot be used from a collapsed panel, but the dimension it
|
|
1223
1234
|
// shows has to read the same as the dropdown does when open
|
|
1224
1235
|
/* @__PURE__ */ E(mn, { children: /* @__PURE__ */ E("span", { children: C }) })
|
|
1225
|
-
) : k ? /* @__PURE__ */ E(un, {}) : !
|
|
1236
|
+
) : k ? /* @__PURE__ */ E(un, {}) : !R && /* @__PURE__ */ E(
|
|
1226
1237
|
b,
|
|
1227
1238
|
{
|
|
1228
1239
|
options: Se,
|
|
@@ -1237,13 +1248,13 @@ const an = (e, t, a) => {
|
|
|
1237
1248
|
/* @__PURE__ */ G(
|
|
1238
1249
|
pn,
|
|
1239
1250
|
{
|
|
1240
|
-
className: W({ searching:
|
|
1251
|
+
className: W({ searching: R }),
|
|
1241
1252
|
onClick: (w) => w.stopPropagation(),
|
|
1242
1253
|
children: [
|
|
1243
1254
|
!j && /* @__PURE__ */ E(
|
|
1244
1255
|
nn,
|
|
1245
1256
|
{
|
|
1246
|
-
open:
|
|
1257
|
+
open: R,
|
|
1247
1258
|
value: _,
|
|
1248
1259
|
subject: ce,
|
|
1249
1260
|
onChange: u
|
|
@@ -1259,7 +1270,7 @@ const an = (e, t, a) => {
|
|
|
1259
1270
|
hideWhenNoUpdates: !0
|
|
1260
1271
|
}
|
|
1261
1272
|
),
|
|
1262
|
-
be && g && !
|
|
1273
|
+
be && g && !R && /* @__PURE__ */ E(
|
|
1263
1274
|
he,
|
|
1264
1275
|
{
|
|
1265
1276
|
icon: "splitscreen_add",
|
|
@@ -1269,7 +1280,7 @@ const an = (e, t, a) => {
|
|
|
1269
1280
|
onClick: ke
|
|
1270
1281
|
}
|
|
1271
1282
|
),
|
|
1272
|
-
!g && !
|
|
1283
|
+
!g && !R && /* @__PURE__ */ E(
|
|
1273
1284
|
he,
|
|
1274
1285
|
{
|
|
1275
1286
|
icon: "close",
|
|
@@ -1285,7 +1296,7 @@ const an = (e, t, a) => {
|
|
|
1285
1296
|
}
|
|
1286
1297
|
),
|
|
1287
1298
|
!j && /* @__PURE__ */ E(
|
|
1288
|
-
|
|
1299
|
+
xt,
|
|
1289
1300
|
{
|
|
1290
1301
|
rowSelection: Z,
|
|
1291
1302
|
onRowSelectionChange: B,
|
|
@@ -1293,7 +1304,7 @@ const an = (e, t, a) => {
|
|
|
1293
1304
|
setExpanded: te,
|
|
1294
1305
|
data: $,
|
|
1295
1306
|
children: /* @__PURE__ */ E(
|
|
1296
|
-
|
|
1307
|
+
It,
|
|
1297
1308
|
{
|
|
1298
1309
|
data: le,
|
|
1299
1310
|
isExpandable: fe,
|
|
@@ -1327,7 +1338,7 @@ const an = (e, t, a) => {
|
|
|
1327
1338
|
}
|
|
1328
1339
|
`
|
|
1329
1340
|
).join("")}
|
|
1330
|
-
`,
|
|
1341
|
+
`, ls = ({
|
|
1331
1342
|
sliceFields: e = [],
|
|
1332
1343
|
entityTypes: t = ["task"],
|
|
1333
1344
|
pinnedSliceType: a,
|
|
@@ -1335,18 +1346,18 @@ const an = (e, t, a) => {
|
|
|
1335
1346
|
onAddToList: d,
|
|
1336
1347
|
enableSplit: l
|
|
1337
1348
|
}) => {
|
|
1338
|
-
const { slices: f, page: S, setPanelExpanded: m, projectName: p, collapsedPanels: g } = Ie(), { powerLicense: L } =
|
|
1349
|
+
const { slices: f, page: S, setPanelExpanded: m, projectName: p, collapsedPanels: g } = Ie(), { powerLicense: L } = we(), u = !!l, b = u && L ? f : f.slice(0, 1), [h, i] = U(null), c = A((I) => {
|
|
1339
1350
|
i("entities" in I ? I : { entities: [I] });
|
|
1340
1351
|
}, []), s = A(() => {
|
|
1341
1352
|
i(null);
|
|
1342
|
-
}, []), { getParentFolderIds: o } =
|
|
1353
|
+
}, []), { getParentFolderIds: o } = Ce(), y = A(
|
|
1343
1354
|
(I) => {
|
|
1344
|
-
const
|
|
1355
|
+
const D = [I, ...o(I)];
|
|
1345
1356
|
m(
|
|
1346
1357
|
"hierarchy",
|
|
1347
|
-
(P) => typeof P == "boolean" ? P || Object.fromEntries(
|
|
1358
|
+
(P) => typeof P == "boolean" ? P || Object.fromEntries(D.map((K) => [K, !0])) : {
|
|
1348
1359
|
...P,
|
|
1349
|
-
...Object.fromEntries(
|
|
1360
|
+
...Object.fromEntries(D.map((K) => [K, !0]))
|
|
1350
1361
|
}
|
|
1351
1362
|
);
|
|
1352
1363
|
},
|
|
@@ -1355,8 +1366,8 @@ const an = (e, t, a) => {
|
|
|
1355
1366
|
se(() => {
|
|
1356
1367
|
const I = n.current;
|
|
1357
1368
|
if (!I) return;
|
|
1358
|
-
const
|
|
1359
|
-
return
|
|
1369
|
+
const D = new ResizeObserver(([P]) => T(P.contentRect.height));
|
|
1370
|
+
return D.observe(I), () => D.disconnect();
|
|
1360
1371
|
}, [b.length]);
|
|
1361
1372
|
const v = b.map((I) => I.id), k = b.length > 1, {
|
|
1362
1373
|
sizes: H,
|
|
@@ -1365,15 +1376,15 @@ const an = (e, t, a) => {
|
|
|
1365
1376
|
layoutKey: q,
|
|
1366
1377
|
handleResizeEnd: ie
|
|
1367
1378
|
} = $t(S, v, k ? g : [], x), Z = v.slice(0, -1).map(
|
|
1368
|
-
(I,
|
|
1379
|
+
(I, D) => k && (g.includes(I) || g.includes(v[D + 1])) ? D : -1
|
|
1369
1380
|
).filter((I) => I >= 0), [ee, B] = U({}), te = A(
|
|
1370
|
-
(I,
|
|
1381
|
+
(I, D) => B((P) => ({ ...P, [I]: D })),
|
|
1371
1382
|
[]
|
|
1372
1383
|
), Q = v.join("|");
|
|
1373
1384
|
se(() => {
|
|
1374
1385
|
B((I) => {
|
|
1375
|
-
const
|
|
1376
|
-
return
|
|
1386
|
+
const D = Object.keys(I).filter((P) => v.includes(P));
|
|
1387
|
+
return D.length === Object.keys(I).length ? I : Object.fromEntries(D.map((P) => [P, I[P]]));
|
|
1377
1388
|
});
|
|
1378
1389
|
}, [Q]);
|
|
1379
1390
|
const Y = {
|
|
@@ -1407,17 +1418,17 @@ const an = (e, t, a) => {
|
|
|
1407
1418
|
height: ae,
|
|
1408
1419
|
overflow: "hidden"
|
|
1409
1420
|
},
|
|
1410
|
-
children: b.map((I,
|
|
1421
|
+
children: b.map((I, D) => /* @__PURE__ */ E(
|
|
1411
1422
|
tt,
|
|
1412
1423
|
{
|
|
1413
|
-
size: H[
|
|
1424
|
+
size: H[D],
|
|
1414
1425
|
minSize: oe,
|
|
1415
1426
|
style: { overflow: "hidden" },
|
|
1416
1427
|
children: /* @__PURE__ */ E(
|
|
1417
1428
|
Fe,
|
|
1418
1429
|
{
|
|
1419
1430
|
panel: I,
|
|
1420
|
-
isPrimary:
|
|
1431
|
+
isPrimary: D === 0,
|
|
1421
1432
|
search: ee[I.id],
|
|
1422
1433
|
onSearchChange: (P) => te(I.id, P),
|
|
1423
1434
|
...Y
|
|
@@ -1445,14 +1456,14 @@ export {
|
|
|
1445
1456
|
Be as a,
|
|
1446
1457
|
Me as b,
|
|
1447
1458
|
Ft as c,
|
|
1448
|
-
|
|
1459
|
+
ls as d,
|
|
1449
1460
|
Kt as e,
|
|
1450
1461
|
jt as f,
|
|
1451
1462
|
Ae as g,
|
|
1452
1463
|
sn as h,
|
|
1453
1464
|
Zt as i,
|
|
1454
1465
|
$t as j,
|
|
1455
|
-
|
|
1466
|
+
rs as k,
|
|
1456
1467
|
ln as l,
|
|
1457
1468
|
Nt as r,
|
|
1458
1469
|
Wt as u
|
|
@@ -1,18 +1,30 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
2
|
-
import { R as
|
|
1
|
+
import { jsx as o, jsxs as a, Fragment as s } from "react/jsx-runtime";
|
|
2
|
+
import { R as e, P as n } from "./ReviewablesSelector.es.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@ynput/ayon-react-components";
|
|
5
|
-
import
|
|
6
|
-
|
|
5
|
+
import "@module-federation/enhanced/runtime";
|
|
6
|
+
import "./searchTerms.es.js";
|
|
7
|
+
import "./getUris.es.js";
|
|
8
|
+
import "primereact/confirmdialog";
|
|
9
|
+
import { a as c } from "./DeleteEntitiesContextInstance.es.js";
|
|
10
|
+
import "lodash";
|
|
11
|
+
import "react-toastify";
|
|
12
|
+
import "uuid";
|
|
13
|
+
import "semver";
|
|
14
|
+
import "./ContextMenuContextInstance.es.js";
|
|
15
|
+
import "clsx";
|
|
16
|
+
import "react-dom";
|
|
17
|
+
import "react-redux";
|
|
18
|
+
const A = ({
|
|
7
19
|
requiredVersion: r,
|
|
8
20
|
feature: t,
|
|
9
21
|
button: i,
|
|
10
|
-
children:
|
|
22
|
+
children: m
|
|
11
23
|
}) => {
|
|
12
|
-
const { setPowerpackDialog:
|
|
13
|
-
return r ? /* @__PURE__ */ o(
|
|
24
|
+
const { setPowerpackDialog: p } = c();
|
|
25
|
+
return r ? /* @__PURE__ */ o(e, { requiredVersion: r }) : /* @__PURE__ */ a(s, { children: [
|
|
14
26
|
!!i && /* @__PURE__ */ o(
|
|
15
|
-
|
|
27
|
+
n,
|
|
16
28
|
{
|
|
17
29
|
style: { width: "100%" },
|
|
18
30
|
icon: "add",
|
|
@@ -21,9 +33,9 @@ const P = ({
|
|
|
21
33
|
feature: t
|
|
22
34
|
}
|
|
23
35
|
),
|
|
24
|
-
/* @__PURE__ */ o("div", { onClick: () =>
|
|
36
|
+
/* @__PURE__ */ o("div", { onClick: () => p(t), children: m })
|
|
25
37
|
] });
|
|
26
38
|
};
|
|
27
39
|
export {
|
|
28
|
-
|
|
40
|
+
A as T
|
|
29
41
|
};
|