@ynput/ayon-frontend-shared 0.6.9 → 0.7.0
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 +44 -27
- package/dist/DetailsPanel.es.js +225 -224
- package/dist/ListTable.es.js +420 -420
- package/dist/NewEntity.es.js +42 -41
- package/dist/ProjectTreeTable.es.js +3517 -3378
- package/dist/Slicer.es.js +301 -276
- package/dist/Views.es.js +366 -352
- package/dist/api.es.js +428 -413
- package/dist/chunks/Actions.es.js +18 -17
- package/dist/chunks/ColumnDropIndicator.es.js +19 -18
- package/dist/chunks/ColumnHeaderMenuUI.es.js +2 -2
- package/dist/chunks/ContextMenuContextInstance.es.js +4 -3
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +53 -41
- package/dist/chunks/DetailsDialog.es.js +26 -24
- package/dist/chunks/EmptyPlaceholder.es.js +3 -3
- package/dist/chunks/EmptyPlaceholderFlex.styled.es.js +40 -0
- package/dist/chunks/EntityPath.es.js +60 -59
- package/dist/chunks/EntityPickerDialog.es.js +88 -83
- package/dist/chunks/EntityTooltip.es.js +15 -14
- package/dist/chunks/EntityUpdatesContext.es.js +11 -11
- package/dist/chunks/Feed.es.js +864 -859
- package/dist/chunks/FilterErrorActions.es.js +4 -3
- package/dist/chunks/Menu.es.js +633 -289
- package/dist/chunks/MenuContext.es.js +1 -1
- package/dist/chunks/MetaWidget.es.js +2457 -2196
- package/dist/chunks/PlayableIcon.es.js +77 -76
- package/dist/chunks/ProjectContext.es.js +6 -6
- package/dist/chunks/RepresentationsList.es.js +1 -1
- package/dist/chunks/ReviewablesSelector.es.js +625 -609
- package/dist/chunks/SimpleForm.es.js +1 -1
- package/dist/chunks/SimpleTable.es.js +386 -363
- package/dist/chunks/Slicer.es.js +954 -821
- package/dist/chunks/{DeleteEntitiesContextInstance.es.js → TableExportContextInstance.es.js} +190 -186
- package/dist/chunks/TableSettingsFallback.es.js +4 -3
- package/dist/chunks/ThumbnailSimple.es.js +100 -99
- package/dist/chunks/VideoPlayer.es.js +1 -1
- package/dist/chunks/Watchers.es.js +222 -221
- package/dist/chunks/getBundleMode.es.js +1 -1
- package/dist/chunks/getEntityTypeIcon.es.js +5 -4
- package/dist/chunks/getUris.es.js +3873 -3736
- package/dist/chunks/realtimeUpdatesUtils.es.js +91 -82
- package/dist/chunks/searchTerms.es.js +621 -499
- package/dist/chunks/sortLists.es.js +22 -0
- package/dist/chunks/useAttributeEnums.es.js +43 -43
- package/dist/chunks/useHierarchySelection.es.js +6 -5
- package/dist/chunks/useLoadModule.es.js +24 -23
- package/dist/chunks/viewUpdateHelper.es.js +16 -15
- package/dist/components.es.js +565 -531
- package/dist/context.es.js +529 -503
- package/dist/hooks.es.js +13 -13
- package/dist/index.es.js +4 -4
- package/dist/types/ContextMenu.d.ts +4 -1
- package/dist/types/Feed.d.ts +1 -1
- package/dist/types/ListTable.d.ts +1 -1
- package/dist/types/ProjectTreeTable.d.ts +123 -13
- package/dist/types/SimpleTable.d.ts +2 -1
- package/dist/types/Slicer.d.ts +26 -1
- package/dist/types/Views.d.ts +2 -0
- package/dist/types/api.d.ts +2359 -590
- package/dist/types/components.d.ts +30 -4
- package/dist/types/context.d.ts +94 -2
- package/dist/types/util.d.ts +54 -0
- package/dist/util.es.js +129 -119
- package/package.json +2 -2
- package/dist/chunks/MenuItem.es.js +0 -420
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { jsxs as j, jsx as
|
|
1
|
+
import { jsxs as j, jsx as x, Fragment as le } from "react/jsx-runtime";
|
|
2
2
|
import { useState as B, useRef as Q, useCallback as N, useEffect as S, useMemo as E } from "react";
|
|
3
3
|
import { upperFirst as U } from "lodash";
|
|
4
4
|
import "primereact/confirmdialog";
|
|
5
5
|
import "react-toastify";
|
|
6
6
|
import "uuid";
|
|
7
|
-
import "./searchTerms.es.js";
|
|
8
|
-
import { createPortal as
|
|
9
|
-
import { b as X, H as q, a as
|
|
10
|
-
import { InputText as
|
|
7
|
+
import { bw as ce } from "./searchTerms.es.js";
|
|
8
|
+
import { createPortal as de } from "react-dom";
|
|
9
|
+
import { b as X, H as q, a as ue, S as pe, e as fe } from "./SimpleTable.es.js";
|
|
10
|
+
import { InputText as he, theme as me, Dialog as ge, SwitchButton as be, Button as A } from "@ynput/ayon-react-components";
|
|
11
11
|
import M from "styled-components";
|
|
12
|
-
import { E as
|
|
13
|
-
import { E as V, a as
|
|
14
|
-
import {
|
|
12
|
+
import { E as ve } from "./EmptyPlaceholder.es.js";
|
|
13
|
+
import { E as V, a as we } from "./EntityTooltip.es.js";
|
|
14
|
+
import { ch as ke } from "./getUris.es.js";
|
|
15
15
|
import "@module-federation/enhanced/runtime";
|
|
16
|
-
import { y as
|
|
16
|
+
import { y as xe, x as Te } from "./TableExportContextInstance.es.js";
|
|
17
17
|
import "semver";
|
|
18
18
|
import "./ContextMenuContextInstance.es.js";
|
|
19
19
|
import "clsx";
|
|
20
20
|
import "react-redux";
|
|
21
|
+
import "react-router-dom";
|
|
21
22
|
import { g as W } from "./getThumbnailUrl.es.js";
|
|
22
23
|
import { g as J } from "./getEntityTypeIcon.es.js";
|
|
23
|
-
import { matchSorter as Te } from "match-sorter";
|
|
24
24
|
const I = {
|
|
25
25
|
folder: ["folder"],
|
|
26
26
|
product: ["folder", "product"],
|
|
@@ -104,8 +104,8 @@ const I = {
|
|
|
104
104
|
right: 6px;
|
|
105
105
|
transform: translateY(-50%);
|
|
106
106
|
`, Fe = ({ value: t, onChange: r, onClose: o, className: e }) => /* @__PURE__ */ j(De, { className: e, children: [
|
|
107
|
-
/* @__PURE__ */
|
|
108
|
-
|
|
107
|
+
/* @__PURE__ */ x(
|
|
108
|
+
he,
|
|
109
109
|
{
|
|
110
110
|
value: t,
|
|
111
111
|
onChange: (i) => r(i.target.value),
|
|
@@ -116,7 +116,7 @@ const I = {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
),
|
|
119
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ x(Re, { icon: "close", variant: "text", onClick: o })
|
|
120
120
|
] }), Oe = M(q)`
|
|
121
121
|
flex-direction: column;
|
|
122
122
|
`, Se = M(q)`
|
|
@@ -125,7 +125,7 @@ const I = {
|
|
|
125
125
|
`, Ee = M.span`
|
|
126
126
|
display: flex;
|
|
127
127
|
align-items: center;
|
|
128
|
-
${
|
|
128
|
+
${me.labelLarge}
|
|
129
129
|
height: 32px;
|
|
130
130
|
padding-left: 4px;
|
|
131
131
|
white-space: nowrap;
|
|
@@ -147,8 +147,8 @@ const I = {
|
|
|
147
147
|
};
|
|
148
148
|
return /* @__PURE__ */ j(Oe, { className: "projects-list-header", children: [
|
|
149
149
|
/* @__PURE__ */ j(Se, { className: "projects-list-header-top", children: [
|
|
150
|
-
/* @__PURE__ */
|
|
151
|
-
/* @__PURE__ */
|
|
150
|
+
/* @__PURE__ */ x(Ee, { children: t }),
|
|
151
|
+
/* @__PURE__ */ x(Me, { className: "projects-list-header-buttons", children: /* @__PURE__ */ x(
|
|
152
152
|
X,
|
|
153
153
|
{
|
|
154
154
|
icon: i.icon,
|
|
@@ -159,7 +159,7 @@ const I = {
|
|
|
159
159
|
}
|
|
160
160
|
) })
|
|
161
161
|
] }),
|
|
162
|
-
typeof r == "string" && /* @__PURE__ */
|
|
162
|
+
typeof r == "string" && /* @__PURE__ */ x(Fe, { value: r, onChange: o, onClose: () => o(void 0) })
|
|
163
163
|
] });
|
|
164
164
|
}, Ne = 150, Be = (t, r) => {
|
|
165
165
|
const o = V.includes(t) || t === "product", [e, i] = B(null), s = Q(), l = N(() => clearTimeout(s.current), []), n = N(() => {
|
|
@@ -185,8 +185,8 @@ const I = {
|
|
|
185
185
|
if (e?.rowId === g) return l();
|
|
186
186
|
const p = f(g);
|
|
187
187
|
if (!p) return n();
|
|
188
|
-
const { left:
|
|
189
|
-
l(), i({ ...p, rowId: g, pos: { left:
|
|
188
|
+
const { left: k, top: w, width: P } = a.getBoundingClientRect();
|
|
189
|
+
l(), i({ ...p, rowId: g, pos: { left: k + P / 2, top: w } });
|
|
190
190
|
},
|
|
191
191
|
[o, e, n, l, f]
|
|
192
192
|
);
|
|
@@ -211,11 +211,11 @@ const I = {
|
|
|
211
211
|
}) => {
|
|
212
212
|
const c = Be(t, o), g = (a) => {
|
|
213
213
|
a.preventDefault();
|
|
214
|
-
const p = a.currentTarget.id,
|
|
215
|
-
p && !
|
|
214
|
+
const p = a.currentTarget.id, k = o.find((w) => w.id === p);
|
|
215
|
+
p && !k?.isDisabled && f?.(p);
|
|
216
216
|
};
|
|
217
|
-
return /* @__PURE__ */ j(
|
|
218
|
-
/* @__PURE__ */
|
|
217
|
+
return /* @__PURE__ */ j(ue, { children: [
|
|
218
|
+
/* @__PURE__ */ x(
|
|
219
219
|
Le,
|
|
220
220
|
{
|
|
221
221
|
search: s,
|
|
@@ -223,9 +223,9 @@ const I = {
|
|
|
223
223
|
title: U(t) + "s"
|
|
224
224
|
}
|
|
225
225
|
),
|
|
226
|
-
!e && !o?.length && /* @__PURE__ */
|
|
227
|
-
/* @__PURE__ */
|
|
228
|
-
|
|
226
|
+
!e && !o?.length && /* @__PURE__ */ x(ve, { message: `No ${t}s found.`, error: i }),
|
|
227
|
+
/* @__PURE__ */ x(
|
|
228
|
+
pe,
|
|
229
229
|
{
|
|
230
230
|
data: o,
|
|
231
231
|
isLoading: e,
|
|
@@ -244,9 +244,9 @@ const I = {
|
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
246
|
),
|
|
247
|
-
c.hovered &&
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
|
|
247
|
+
c.hovered && de(
|
|
248
|
+
/* @__PURE__ */ x(
|
|
249
|
+
we,
|
|
250
250
|
{
|
|
251
251
|
entityType: c.hovered.entityType,
|
|
252
252
|
entityId: c.hovered.entityId,
|
|
@@ -258,13 +258,13 @@ const I = {
|
|
|
258
258
|
document.body
|
|
259
259
|
)
|
|
260
260
|
] });
|
|
261
|
-
},
|
|
261
|
+
}, ye = ({
|
|
262
262
|
projectName: t,
|
|
263
263
|
folderTypes: r,
|
|
264
264
|
includeColors: o = !1,
|
|
265
265
|
includeThumbnails: e = !1
|
|
266
266
|
}) => {
|
|
267
|
-
const { folders: i, isLoading: s } =
|
|
267
|
+
const { folders: i, isLoading: s } = xe(), l = (a) => r.find((k) => k.name === a)?.icon || "folder", n = (a) => o ? r.find((k) => k.name === a)?.color : void 0, u = (a) => !e || !t ? null : W({
|
|
268
268
|
projectName: t,
|
|
269
269
|
entityType: "folder",
|
|
270
270
|
entityId: a.id,
|
|
@@ -285,32 +285,32 @@ const I = {
|
|
|
285
285
|
path: a.path,
|
|
286
286
|
parents: a.parents
|
|
287
287
|
}
|
|
288
|
-
}), h = (a, p = "id",
|
|
289
|
-
const
|
|
290
|
-
(m,
|
|
288
|
+
}), h = (a, p = "id", k = "parentId") => {
|
|
289
|
+
const w = /* @__PURE__ */ new Map(), P = [], F = [...a].sort(
|
|
290
|
+
(m, v) => (m.label || m.name).localeCompare(v.label || v.name)
|
|
291
291
|
);
|
|
292
292
|
for (let m = 0; m < F.length; m++) {
|
|
293
|
-
const
|
|
294
|
-
...f(
|
|
293
|
+
const v = F[m], C = v[p], T = {
|
|
294
|
+
...f(v),
|
|
295
295
|
subRows: []
|
|
296
296
|
};
|
|
297
|
-
|
|
297
|
+
w.set(C, T);
|
|
298
298
|
}
|
|
299
299
|
for (let m = 0; m < F.length; m++) {
|
|
300
|
-
const
|
|
300
|
+
const v = F[m], C = v[p], T = v[k], R = w.get(C);
|
|
301
301
|
if (T) {
|
|
302
|
-
const
|
|
303
|
-
|
|
302
|
+
const y = w.get(T);
|
|
303
|
+
y && y.subRows.push(R);
|
|
304
304
|
} else
|
|
305
305
|
P.push(R);
|
|
306
306
|
}
|
|
307
307
|
const D = [];
|
|
308
|
-
for (const m of
|
|
309
|
-
(!m.parentId || !
|
|
308
|
+
for (const m of w.values())
|
|
309
|
+
(!m.parentId || !w.has(m.parentId)) && D.push(m);
|
|
310
310
|
for (; D.length; ) {
|
|
311
|
-
const m = D.pop(),
|
|
311
|
+
const m = D.pop(), v = [...m.parents ?? [], m.label || ""];
|
|
312
312
|
for (const C of m.subRows)
|
|
313
|
-
C.parents =
|
|
313
|
+
C.parents = v, D.push(C);
|
|
314
314
|
}
|
|
315
315
|
return P;
|
|
316
316
|
}, c = E(() => !i.length || s ? [] : h(i), [i, r, s, e, t]), g = N(async () => c, [c]);
|
|
@@ -320,7 +320,7 @@ const I = {
|
|
|
320
320
|
getData: g,
|
|
321
321
|
isFetching: s
|
|
322
322
|
};
|
|
323
|
-
},
|
|
323
|
+
}, Ke = ({
|
|
324
324
|
projectName: t,
|
|
325
325
|
entityType: r,
|
|
326
326
|
search: o,
|
|
@@ -328,35 +328,40 @@ const I = {
|
|
|
328
328
|
reviewablesOnly: i,
|
|
329
329
|
includeTask: s
|
|
330
330
|
}) => {
|
|
331
|
-
const l = I[r] || [], n =
|
|
331
|
+
const l = I[r] || [], n = Te(), {
|
|
332
332
|
data: u,
|
|
333
333
|
folders: f,
|
|
334
334
|
isFetching: h
|
|
335
|
-
} =
|
|
335
|
+
} = ye({
|
|
336
336
|
projectName: t,
|
|
337
337
|
folderTypes: n?.folderTypes || [],
|
|
338
338
|
includeColors: !0,
|
|
339
339
|
includeThumbnails: !0
|
|
340
|
-
}), c = E(
|
|
341
|
-
|
|
342
|
-
|
|
340
|
+
}), c = E(
|
|
341
|
+
() => ce(
|
|
342
|
+
f,
|
|
343
|
+
o.folder ?? "",
|
|
344
|
+
(v) => [v.name, v.label, v.path].join(" ")
|
|
345
|
+
),
|
|
346
|
+
[f, o.folder]
|
|
347
|
+
), g = E(
|
|
343
348
|
() => o.folder ? Ie(c, t, n?.folderTypes || []) : u,
|
|
344
349
|
[c, u, o.folder, n, t]
|
|
345
350
|
), a = {
|
|
346
351
|
data: c,
|
|
347
352
|
table: g,
|
|
348
353
|
isLoading: h
|
|
349
|
-
}, p = (
|
|
350
|
-
const T = e[
|
|
354
|
+
}, p = (v, C = []) => {
|
|
355
|
+
const T = e[v];
|
|
351
356
|
return T?.length > 0 ? T : C ? C.map((R) => R.id) : void 0;
|
|
352
|
-
},
|
|
357
|
+
}, k = { includeTask: s, hasReviewables: i || void 0 }, w = K(
|
|
353
358
|
t,
|
|
354
359
|
"task",
|
|
355
360
|
o.task,
|
|
356
361
|
!l.includes("task"),
|
|
357
362
|
p(I.task[I.task.length - 2], c),
|
|
358
363
|
n?.taskTypes
|
|
359
|
-
), P =
|
|
364
|
+
), P = K(
|
|
360
365
|
t,
|
|
361
366
|
"product",
|
|
362
367
|
o.product,
|
|
@@ -366,8 +371,8 @@ const I = {
|
|
|
366
371
|
a.data
|
|
367
372
|
),
|
|
368
373
|
n?.productTypes,
|
|
369
|
-
|
|
370
|
-
), F =
|
|
374
|
+
k
|
|
375
|
+
), F = K(
|
|
371
376
|
t,
|
|
372
377
|
"version",
|
|
373
378
|
o.version,
|
|
@@ -377,8 +382,8 @@ const I = {
|
|
|
377
382
|
P.data
|
|
378
383
|
),
|
|
379
384
|
void 0,
|
|
380
|
-
|
|
381
|
-
), D =
|
|
385
|
+
k
|
|
386
|
+
), D = K(
|
|
382
387
|
t,
|
|
383
388
|
"representation",
|
|
384
389
|
o.representation,
|
|
@@ -387,26 +392,26 @@ const I = {
|
|
|
387
392
|
I.representation[I.representation.length - 2],
|
|
388
393
|
F.data
|
|
389
394
|
)
|
|
390
|
-
), m =
|
|
395
|
+
), m = K(
|
|
391
396
|
t,
|
|
392
397
|
"workfile",
|
|
393
398
|
o.workfile,
|
|
394
399
|
!l.includes("workfile"),
|
|
395
400
|
p(
|
|
396
401
|
I.workfile[I.workfile.length - 2],
|
|
397
|
-
|
|
402
|
+
w.data
|
|
398
403
|
)
|
|
399
404
|
);
|
|
400
405
|
return {
|
|
401
406
|
folder: a,
|
|
402
|
-
task:
|
|
407
|
+
task: w,
|
|
403
408
|
product: P,
|
|
404
409
|
version: F,
|
|
405
410
|
representation: D,
|
|
406
411
|
workfile: m
|
|
407
412
|
};
|
|
408
|
-
},
|
|
409
|
-
const { data: u, isFetching: f, hasNextPage: h, fetchNextPage: c, isFetchingNextPage: g, error: a } =
|
|
413
|
+
}, K = (t, r, o, e, i, s, { includeTask: l, hasReviewables: n } = {}) => {
|
|
414
|
+
const { data: u, isFetching: f, hasNextPage: h, fetchNextPage: c, isFetchingNextPage: g, error: a } = ke(
|
|
410
415
|
{
|
|
411
416
|
projectName: t,
|
|
412
417
|
entityType: r,
|
|
@@ -419,13 +424,13 @@ const I = {
|
|
|
419
424
|
{
|
|
420
425
|
skip: e
|
|
421
426
|
}
|
|
422
|
-
), p = E(() => u?.pages.flatMap((
|
|
427
|
+
), p = E(() => u?.pages.flatMap((w) => w.entities) || [], [u]), k = E(
|
|
423
428
|
() => Pe(p, t, s),
|
|
424
429
|
[p, t, s]
|
|
425
430
|
);
|
|
426
431
|
return {
|
|
427
432
|
data: p,
|
|
428
|
-
table:
|
|
433
|
+
table: k,
|
|
429
434
|
isLoading: f,
|
|
430
435
|
isFetchingNextPage: g,
|
|
431
436
|
hasNextPage: h,
|
|
@@ -560,21 +565,21 @@ const I = {
|
|
|
560
565
|
defaultReviewablesOnly: g = !1,
|
|
561
566
|
showTaskNames: a,
|
|
562
567
|
isLoading: p,
|
|
563
|
-
...
|
|
568
|
+
...k
|
|
564
569
|
}) => {
|
|
565
|
-
const
|
|
570
|
+
const w = {
|
|
566
571
|
folder: o?.folder || {},
|
|
567
572
|
task: o?.task || {},
|
|
568
573
|
product: o?.product || {},
|
|
569
574
|
version: o?.version || {},
|
|
570
575
|
representation: o?.representation || {},
|
|
571
576
|
workfile: o?.workfile || {}
|
|
572
|
-
}, [P, F] = B(
|
|
577
|
+
}, [P, F] = B(w), D = (d, b) => {
|
|
573
578
|
F((O) => ({
|
|
574
579
|
...O,
|
|
575
580
|
[b]: d
|
|
576
581
|
}));
|
|
577
|
-
}, [m,
|
|
582
|
+
}, [m, v] = B({
|
|
578
583
|
folder: void 0,
|
|
579
584
|
task: void 0,
|
|
580
585
|
product: void 0,
|
|
@@ -582,7 +587,7 @@ const I = {
|
|
|
582
587
|
representation: void 0,
|
|
583
588
|
workfile: void 0
|
|
584
589
|
}), C = (d, b) => {
|
|
585
|
-
|
|
590
|
+
v((O) => ({
|
|
586
591
|
...O,
|
|
587
592
|
[b]: d
|
|
588
593
|
}));
|
|
@@ -591,18 +596,18 @@ const I = {
|
|
|
591
596
|
d,
|
|
592
597
|
Object.keys(b).filter((O) => b[O])
|
|
593
598
|
])
|
|
594
|
-
), R = I[r],
|
|
599
|
+
), R = I[r], y = !!c && R.includes("product"), [$, Z] = B(g), L = Ke({
|
|
595
600
|
entityType: r,
|
|
596
601
|
projectName: t,
|
|
597
602
|
search: m,
|
|
598
603
|
selection: T,
|
|
599
|
-
reviewablesOnly:
|
|
604
|
+
reviewablesOnly: y && $,
|
|
600
605
|
includeTask: a
|
|
601
606
|
}), _ = h && r === "version" ? L.version.data.filter((d) => "hasReviewables" in d && d.hasReviewables === !1).map((d) => d.id) : [], G = _.length > 0 ? Array.from(/* @__PURE__ */ new Set([...n, ..._])) : n, ee = (d) => _.includes(d) ? "Version has no reviewables" : f?.(d), te = (d) => {
|
|
602
607
|
const b = L[d];
|
|
603
608
|
b?.hasNextPage && !b.isFetchingNextPage && b.fetchNextPage?.();
|
|
604
609
|
}, [oe, ne] = $e({
|
|
605
|
-
foldersSelection:
|
|
610
|
+
foldersSelection: w.folder,
|
|
606
611
|
foldersData: L.folder
|
|
607
612
|
});
|
|
608
613
|
_e({
|
|
@@ -632,17 +637,17 @@ const I = {
|
|
|
632
637
|
i(d);
|
|
633
638
|
};
|
|
634
639
|
return /* @__PURE__ */ j(
|
|
635
|
-
|
|
640
|
+
ge,
|
|
636
641
|
{
|
|
637
|
-
...
|
|
642
|
+
...k,
|
|
638
643
|
className: "entity-picker-dialog block-shortcuts",
|
|
639
644
|
header: `Select ${U(r)}`,
|
|
640
645
|
isOpen: !0,
|
|
641
646
|
size: "full",
|
|
642
647
|
style: { height: "80vh", maxWidth: R.length * He },
|
|
643
648
|
footer: /* @__PURE__ */ j(le, { children: [
|
|
644
|
-
s && l && /* @__PURE__ */
|
|
645
|
-
/* @__PURE__ */
|
|
649
|
+
s && l && /* @__PURE__ */ x(A, { label: "Move to root", variant: "text", onClick: l }),
|
|
650
|
+
/* @__PURE__ */ x(
|
|
646
651
|
A,
|
|
647
652
|
{
|
|
648
653
|
label: `Select ${r}${e ? "s" : ""}`,
|
|
@@ -654,8 +659,8 @@ const I = {
|
|
|
654
659
|
)
|
|
655
660
|
] }),
|
|
656
661
|
children: [
|
|
657
|
-
|
|
658
|
-
|
|
662
|
+
y && /* @__PURE__ */ x(
|
|
663
|
+
be,
|
|
659
664
|
{
|
|
660
665
|
label: "Show reviewables only",
|
|
661
666
|
value: $,
|
|
@@ -667,14 +672,14 @@ const I = {
|
|
|
667
672
|
}
|
|
668
673
|
}
|
|
669
674
|
),
|
|
670
|
-
/* @__PURE__ */
|
|
671
|
-
|
|
675
|
+
/* @__PURE__ */ x(We, { children: R.map((d) => /* @__PURE__ */ x(
|
|
676
|
+
fe,
|
|
672
677
|
{
|
|
673
678
|
rowSelection: P[d] || {},
|
|
674
679
|
onRowSelectionChange: (b) => D(b, d),
|
|
675
680
|
expanded: d === "folder" ? oe : void 0,
|
|
676
681
|
setExpanded: d === "folder" ? ne : void 0,
|
|
677
|
-
children: /* @__PURE__ */
|
|
682
|
+
children: /* @__PURE__ */ x(
|
|
678
683
|
je,
|
|
679
684
|
{
|
|
680
685
|
entityType: d,
|
|
@@ -699,5 +704,5 @@ const I = {
|
|
|
699
704
|
export {
|
|
700
705
|
ht as E,
|
|
701
706
|
Fe as T,
|
|
702
|
-
|
|
707
|
+
ye as u
|
|
703
708
|
};
|
|
@@ -2,22 +2,23 @@ import { jsx as I } from "react/jsx-runtime";
|
|
|
2
2
|
import { EntityCard as S } from "@ynput/ayon-react-components";
|
|
3
3
|
import U, { keyframes as W } from "styled-components";
|
|
4
4
|
import "./searchTerms.es.js";
|
|
5
|
-
import {
|
|
5
|
+
import { bH as H } from "./getUris.es.js";
|
|
6
6
|
import "primereact/confirmdialog";
|
|
7
7
|
import "react";
|
|
8
8
|
import "@module-federation/enhanced/runtime";
|
|
9
9
|
import "react-toastify";
|
|
10
|
-
import { n as
|
|
10
|
+
import { n as L } from "./TableExportContextInstance.es.js";
|
|
11
11
|
import "lodash";
|
|
12
|
-
import { g as
|
|
12
|
+
import { g as Y } from "./getEntityTypeIcon.es.js";
|
|
13
13
|
import "uuid";
|
|
14
|
-
import { g as
|
|
14
|
+
import { g as _ } from "./getThumbnailUrl.es.js";
|
|
15
15
|
import "semver";
|
|
16
16
|
import "./ContextMenuContextInstance.es.js";
|
|
17
17
|
import "clsx";
|
|
18
18
|
import "react-dom";
|
|
19
19
|
import "react-redux";
|
|
20
|
-
|
|
20
|
+
import "react-router-dom";
|
|
21
|
+
const z = W`
|
|
21
22
|
from {
|
|
22
23
|
opacity: 0.4;
|
|
23
24
|
scale: 0.9;
|
|
@@ -25,7 +26,7 @@ from {
|
|
|
25
26
|
opacity: 1;
|
|
26
27
|
scale: 1;
|
|
27
28
|
}
|
|
28
|
-
`,
|
|
29
|
+
`, F = U(S)`
|
|
29
30
|
position: fixed;
|
|
30
31
|
max-width: 220px;
|
|
31
32
|
z-index: 9999;
|
|
@@ -33,7 +34,7 @@ from {
|
|
|
33
34
|
translate: -50% calc(-100% - 4px);
|
|
34
35
|
transform-origin: bottom center;
|
|
35
36
|
|
|
36
|
-
animation: ${
|
|
37
|
+
animation: ${z} 100ms ease-out;
|
|
37
38
|
|
|
38
39
|
/* path always open */
|
|
39
40
|
.description {
|
|
@@ -42,7 +43,7 @@ from {
|
|
|
42
43
|
|
|
43
44
|
/* shadow */
|
|
44
45
|
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
|
|
45
|
-
`,
|
|
46
|
+
`, G = ["folder", "task", "version", "workfile"], pt = ({
|
|
46
47
|
entityType: t,
|
|
47
48
|
entityId: i,
|
|
48
49
|
projectName: c,
|
|
@@ -51,7 +52,7 @@ from {
|
|
|
51
52
|
onMouseEnter: d,
|
|
52
53
|
onMouseLeave: u
|
|
53
54
|
}) => {
|
|
54
|
-
const o =
|
|
55
|
+
const o = L(), a = c || o?.projectName, p = !!t && G.includes(t), { data: m, isFetching: f } = H(
|
|
55
56
|
{ entityType: t, entityId: i, projectName: a },
|
|
56
57
|
{ skip: !p || !i || !a }
|
|
57
58
|
), n = 220;
|
|
@@ -67,7 +68,7 @@ from {
|
|
|
67
68
|
thumbnailId: b,
|
|
68
69
|
status: E,
|
|
69
70
|
thumbnailHash: P
|
|
70
|
-
} = m || {}, j = r?.taskTypes || o?.taskTypes || [], N = r?.folderTypes || o?.folderTypes || [], v = (r?.statuses || o?.statuses || []).find((s) => s.name === E), O = m ?
|
|
71
|
+
} = m || {}, j = r?.taskTypes || o?.taskTypes || [], N = r?.folderTypes || o?.folderTypes || [], v = (r?.statuses || o?.statuses || []).find((s) => s.name === E), O = m ? _({
|
|
71
72
|
entityId: i || "",
|
|
72
73
|
entityType: t,
|
|
73
74
|
thumbnailHash: P,
|
|
@@ -78,10 +79,10 @@ from {
|
|
|
78
79
|
task: j.find((s) => s.name === w)?.icon,
|
|
79
80
|
folder: N.find((s) => s.name === g)?.icon,
|
|
80
81
|
version: o?.getProductType(k).icon,
|
|
81
|
-
workfile:
|
|
82
|
+
workfile: Y("workfile")
|
|
82
83
|
};
|
|
83
84
|
return p ? /* @__PURE__ */ I(
|
|
84
|
-
|
|
85
|
+
F,
|
|
85
86
|
{
|
|
86
87
|
style: { left: e, top: l, maxWidth: n },
|
|
87
88
|
onMouseEnter: d,
|
|
@@ -101,6 +102,6 @@ from {
|
|
|
101
102
|
) : null;
|
|
102
103
|
};
|
|
103
104
|
export {
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
G as E,
|
|
106
|
+
pt as a
|
|
106
107
|
};
|
|
@@ -4,20 +4,20 @@ import "lodash";
|
|
|
4
4
|
import "primereact/confirmdialog";
|
|
5
5
|
import "react-toastify";
|
|
6
6
|
import "uuid";
|
|
7
|
-
import {
|
|
7
|
+
import { bp as f } from "./searchTerms.es.js";
|
|
8
8
|
import { c as I } from "./realtimeUpdatesUtils.es.js";
|
|
9
|
-
import { t as y, m as S, g as T,
|
|
9
|
+
import { t as y, m as S, g as T, b as v, E as w } from "./TableExportContextInstance.es.js";
|
|
10
10
|
import { u as C } from "./viewUpdateHelper.es.js";
|
|
11
11
|
const P = !0, Y = ({ children: l, projectNames: r }) => {
|
|
12
12
|
const a = U(0), [s = y(!1), p] = C("autoSync"), [u, m] = h([]);
|
|
13
13
|
x(() => {
|
|
14
14
|
const n = I(
|
|
15
15
|
(o) => {
|
|
16
|
-
const e = o.map(({ project: t, topic:
|
|
16
|
+
const e = o.map(({ project: t, topic: c, updateType: g, message: d }) => ({
|
|
17
17
|
id: ++a.current,
|
|
18
18
|
project: t,
|
|
19
|
-
topic:
|
|
20
|
-
updateType:
|
|
19
|
+
topic: c,
|
|
20
|
+
updateType: g,
|
|
21
21
|
entityId: d.summary?.entityId,
|
|
22
22
|
message: d
|
|
23
23
|
}));
|
|
@@ -25,23 +25,23 @@ const P = !0, Y = ({ children: l, projectNames: r }) => {
|
|
|
25
25
|
},
|
|
26
26
|
({ key: o }) => String(o),
|
|
27
27
|
0
|
|
28
|
-
),
|
|
28
|
+
), i = f.subscribeAll((o, e) => {
|
|
29
29
|
if (!e?.topic || !S(e.project, r)) return;
|
|
30
30
|
const t = T(e.topic);
|
|
31
31
|
!t || s[t];
|
|
32
32
|
});
|
|
33
33
|
return () => {
|
|
34
|
-
f.unsubscribe(
|
|
34
|
+
f.unsubscribe(i), n.clear();
|
|
35
35
|
};
|
|
36
36
|
}, [s, r]);
|
|
37
|
-
const
|
|
37
|
+
const b = A(
|
|
38
38
|
() => ({
|
|
39
39
|
updates: u,
|
|
40
40
|
projectNames: r,
|
|
41
|
-
acknowledge: (n,
|
|
41
|
+
acknowledge: (n, i, o) => {
|
|
42
42
|
m(
|
|
43
43
|
(e) => e.filter(
|
|
44
|
-
(t) => t.id > o || !n.some((
|
|
44
|
+
(t) => t.id > o || !n.some((c) => v(t.topic, c)) || !S(t.project, i)
|
|
45
45
|
)
|
|
46
46
|
);
|
|
47
47
|
},
|
|
@@ -52,7 +52,7 @@ const P = !0, Y = ({ children: l, projectNames: r }) => {
|
|
|
52
52
|
}),
|
|
53
53
|
[s, r, p, u]
|
|
54
54
|
);
|
|
55
|
-
return /* @__PURE__ */ E(w.Provider, { value:
|
|
55
|
+
return /* @__PURE__ */ E(w.Provider, { value: b, children: l });
|
|
56
56
|
};
|
|
57
57
|
export {
|
|
58
58
|
Y as E,
|