@ynput/ayon-frontend-shared 0.7.2 → 0.7.4
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/LICENSE +105 -0
- package/dist/DetailsPanel.es.js +1088 -969
- package/dist/ListTable.es.js +70 -67
- package/dist/NewEntity.es.js +8 -5
- package/dist/ProjectTreeTable.es.js +4134 -3825
- package/dist/ProjectsTable.es.js +526 -0
- package/dist/Slicer.es.js +75 -73
- package/dist/Views.es.js +86 -84
- package/dist/chunks/Actions.es.js +4 -2
- package/dist/chunks/ColumnDropIndicator.es.js +21 -18
- package/dist/chunks/ColumnDropIndicator.styled.es.js +14 -13
- package/dist/chunks/ColumnHeaderMenuUI.es.js +9 -7
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +12 -11
- package/dist/chunks/EmptyPlaceholder.es.js +9 -8
- package/dist/chunks/EntityPath.es.js +15 -14
- package/dist/chunks/EntityPickerDialog.es.js +5 -3
- package/dist/chunks/EntityTooltip.es.js +10 -8
- package/dist/chunks/EntityUpdatesContext.es.js +13 -12
- package/dist/chunks/Feed.es.js +12 -11
- package/dist/chunks/FilterErrorActions.es.js +6 -4
- package/dist/chunks/GroupSettingsFallback.es.js +75 -0
- package/dist/chunks/JsonViewer.es.js +3 -2
- package/dist/chunks/Menu.es.js +105 -103
- package/dist/chunks/MetaWidget.es.js +278 -275
- package/dist/chunks/PlayableIcon.es.js +868 -862
- package/dist/chunks/ProjectContext.es.js +5 -4
- package/dist/chunks/RepresentationsList.es.js +3 -2
- package/dist/chunks/ReviewablesSelector.es.js +3471 -2067
- package/dist/chunks/SimpleTable.es.js +492 -402
- package/dist/chunks/Slicer.es.js +936 -896
- package/dist/chunks/TableExportContextInstance.es.js +437 -339
- package/dist/chunks/TableSettingsFallback.es.js +5 -3
- package/dist/chunks/ThumbnailSimple.es.js +15 -13
- package/dist/chunks/VideoPlayer.es.js +14 -12
- package/dist/chunks/Watchers.es.js +97 -95
- package/dist/chunks/getProjectDisplayName.es.js +4 -0
- package/dist/chunks/getUris.es.js +375 -374
- package/dist/chunks/useHierarchySelection.es.js +5 -3
- package/dist/chunks/useLoadModule.es.js +10 -8
- package/dist/chunks/viewUpdateHelper.es.js +12 -10
- package/dist/components.es.js +1488 -1186
- package/dist/context.es.js +589 -539
- package/dist/hooks.es.js +169 -212
- package/dist/index.es.js +17 -12
- package/dist/types/Actions.d.ts +17 -14
- package/dist/types/ContextMenu.d.ts +17 -14
- package/dist/types/DetailsPanel.d.ts +17 -14
- package/dist/types/EntityPickerDialog.d.ts +17 -14
- package/dist/types/Feed.d.ts +17 -14
- package/dist/types/ListTable.d.ts +17 -14
- package/dist/types/NewEntity.d.ts +17 -14
- package/dist/types/ProjectTreeTable.d.ts +749 -15
- package/dist/types/ProjectsTable.d.ts +228 -0
- package/dist/types/RepresentationsList.d.ts +17 -14
- package/dist/types/SimpleTable.d.ts +31 -14
- package/dist/types/Slicer.d.ts +18 -14
- package/dist/types/Views.d.ts +17 -14
- package/dist/types/api.d.ts +17 -14
- package/dist/types/components.d.ts +822 -25
- package/dist/types/context.d.ts +53 -15
- package/dist/types/hooks.d.ts +17 -14
- package/dist/types/index.d.ts +17 -14
- package/dist/types/util.d.ts +21 -14
- package/dist/util.es.js +152 -144
- package/package.json +16 -9
- /package/dist/{ContextMenuContextInstance.css → style.css} +0 -0
package/dist/Views.es.js
CHANGED
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as C, jsxs as A, Fragment as j } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo as q, useCallback as p, useRef as se, useState as W, useEffect as U } from "react";
|
|
3
3
|
import { createPortal as we } from "react-dom";
|
|
4
4
|
import "./chunks/searchTerms.es.js";
|
|
5
5
|
import { aU as oe, bw as ge, dc as ie, b8 as fe, dC as Ve, dF as H, X as ee, cn as Ke, d0 as me, cJ as pe, bs as Y, cH as Qe } from "./chunks/getUris.es.js";
|
|
6
|
-
import { confirmDialog as
|
|
7
|
-
import {
|
|
6
|
+
import { confirmDialog as ze } from "primereact/confirmdialog";
|
|
7
|
+
import { b as K, am as Xe, d as he, q as ve, an as je, e as G, ao as Ye, ap as Ze, aq as Ne } from "./chunks/TableExportContextInstance.es.js";
|
|
8
8
|
import { Icon as Q, Button as ye, Dialog as Te } from "@ynput/ayon-react-components";
|
|
9
9
|
import "uuid";
|
|
10
10
|
import { toast as O } from "react-toastify";
|
|
11
11
|
import "@module-federation/enhanced/runtime";
|
|
12
|
+
import "@ynput/ayon-addon/host";
|
|
12
13
|
import "lodash";
|
|
14
|
+
import "axios";
|
|
13
15
|
import "./chunks/ContextMenuContextInstance.es.js";
|
|
14
16
|
import ke from "clsx";
|
|
15
17
|
import { useDispatch as et } from "react-redux";
|
|
16
18
|
import "react-router-dom";
|
|
17
19
|
import "semver";
|
|
18
20
|
import J from "styled-components";
|
|
19
|
-
import { u as
|
|
20
|
-
import { g as
|
|
21
|
-
import { c as
|
|
21
|
+
import { u as be } from "./chunks/useLoadModule.es.js";
|
|
22
|
+
import { g as Ce, a as Le } from "./chunks/viewUpdateHelper.es.js";
|
|
23
|
+
import { c as ss, b as os, u as is } from "./chunks/viewUpdateHelper.es.js";
|
|
22
24
|
import { c as Be, a as te } from "./chunks/columnConfigConverter.es.js";
|
|
23
|
-
const
|
|
25
|
+
const zt = [
|
|
24
26
|
"overview",
|
|
25
27
|
"taskProgress",
|
|
26
28
|
"versions",
|
|
@@ -86,17 +88,17 @@ const Kt = [
|
|
|
86
88
|
highlighted: w === v.id ? "save" : void 0
|
|
87
89
|
})),
|
|
88
90
|
[e, a, w]
|
|
89
|
-
),
|
|
91
|
+
), b = {
|
|
90
92
|
id: ne,
|
|
91
93
|
label: r ? `Personal ${s.toLowerCase()}` : `Working ${s.toLowerCase()}`,
|
|
92
|
-
startContent: r && /* @__PURE__ */
|
|
94
|
+
startContent: r && /* @__PURE__ */ C(Q, { icon: "person" }),
|
|
93
95
|
isEditable: !1
|
|
94
96
|
}, E = p(async () => {
|
|
95
97
|
let v = t?.id;
|
|
96
98
|
if (!t)
|
|
97
99
|
try {
|
|
98
100
|
console.warn(`No working ${s.toLowerCase()} found, creating a new one`);
|
|
99
|
-
const S =
|
|
101
|
+
const S = Ce();
|
|
100
102
|
await d({
|
|
101
103
|
payload: S,
|
|
102
104
|
viewType: i,
|
|
@@ -112,7 +114,7 @@ const Kt = [
|
|
|
112
114
|
} catch (S) {
|
|
113
115
|
O.error(S);
|
|
114
116
|
}
|
|
115
|
-
}, [x, { isLoading: f }] =
|
|
117
|
+
}, [x, { isLoading: f }] = be({
|
|
116
118
|
addon: "powerpack",
|
|
117
119
|
remote: "views",
|
|
118
120
|
module: "getCustomViews",
|
|
@@ -142,7 +144,7 @@ const Kt = [
|
|
|
142
144
|
items: B
|
|
143
145
|
}
|
|
144
146
|
], [k, D, B]), P = q(() => ({
|
|
145
|
-
...
|
|
147
|
+
...b,
|
|
146
148
|
onClick: E,
|
|
147
149
|
// expose reset button when handler is provided
|
|
148
150
|
isEditable: !!u,
|
|
@@ -150,7 +152,7 @@ const Kt = [
|
|
|
150
152
|
}), [E, u]);
|
|
151
153
|
return q(() => {
|
|
152
154
|
const v = [P], S = $.filter((R) => n && (R.items?.length || 0) > 0);
|
|
153
|
-
return S.length > 0 && v.push(
|
|
155
|
+
return S.length > 0 && v.push(Xe), S.forEach((R) => {
|
|
154
156
|
const F = !!g[R.id];
|
|
155
157
|
if (v.push({
|
|
156
158
|
type: "section",
|
|
@@ -161,8 +163,8 @@ const Kt = [
|
|
|
161
163
|
}), !F)
|
|
162
164
|
v.push(...R.items);
|
|
163
165
|
else if (l) {
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
+
const z = R.items.find((Z) => Z.id === l);
|
|
167
|
+
z && v.push(z);
|
|
166
168
|
}
|
|
167
169
|
}), v;
|
|
168
170
|
}, [P, $, g, I, l, n]);
|
|
@@ -220,8 +222,8 @@ const Kt = [
|
|
|
220
222
|
projectName: y ? void 0 : t,
|
|
221
223
|
payload: d
|
|
222
224
|
}).unwrap(), a && a({ ...d, id: n });
|
|
223
|
-
} catch (
|
|
224
|
-
throw
|
|
225
|
+
} catch (b) {
|
|
226
|
+
throw b;
|
|
225
227
|
}
|
|
226
228
|
},
|
|
227
229
|
[o, e, t, a]
|
|
@@ -242,7 +244,7 @@ const Kt = [
|
|
|
242
244
|
[g, e, t, c]
|
|
243
245
|
), l = p(
|
|
244
246
|
async (n) => {
|
|
245
|
-
const { existingWorkingViewId: d, selectedViewId: y, setSelectedView:
|
|
247
|
+
const { existingWorkingViewId: d, selectedViewId: y, setSelectedView: b, setSettingsChanged: E, notify: L } = n || {};
|
|
246
248
|
if (!e)
|
|
247
249
|
throw new Error("viewType are required for resetting a view");
|
|
248
250
|
try {
|
|
@@ -270,7 +272,7 @@ const Kt = [
|
|
|
270
272
|
)).data;
|
|
271
273
|
v && v.settings && Object.keys(v.settings).length > 0 && (D = v.settings, B = "studio");
|
|
272
274
|
}
|
|
273
|
-
const I = d ??
|
|
275
|
+
const I = d ?? Ce().id;
|
|
274
276
|
if (d ? await o({
|
|
275
277
|
viewId: d,
|
|
276
278
|
viewType: e,
|
|
@@ -289,7 +291,7 @@ const Kt = [
|
|
|
289
291
|
viewType: e,
|
|
290
292
|
projectName: t,
|
|
291
293
|
setDefaultViewRequestModel: { viewId: I }
|
|
292
|
-
}).unwrap(),
|
|
294
|
+
}).unwrap(), b && b(I), E && E(!1), L) {
|
|
293
295
|
const P = B === "project" ? "View reset to project default view" : B === "studio" ? "View reset to studio default view" : "View reset to default settings";
|
|
294
296
|
O.success(P);
|
|
295
297
|
}
|
|
@@ -459,7 +461,7 @@ const Kt = [
|
|
|
459
461
|
[e, i]
|
|
460
462
|
);
|
|
461
463
|
return [e ? t[e] : !1, s];
|
|
462
|
-
}, lt = "view", dt = [],
|
|
464
|
+
}, lt = "view", dt = [], Xt = ({
|
|
463
465
|
children: e,
|
|
464
466
|
viewType: t,
|
|
465
467
|
viewAlias: i = lt,
|
|
@@ -474,11 +476,11 @@ const Kt = [
|
|
|
474
476
|
const { user: V } = he(), [h, m] = W(!1), [u, l] = W(null), n = "viewsMenuCollapsed", [d, y] = ve(
|
|
475
477
|
n,
|
|
476
478
|
{}
|
|
477
|
-
),
|
|
478
|
-
const
|
|
479
|
-
if (d[
|
|
479
|
+
), b = (M) => {
|
|
480
|
+
const X = M.visibility === "private" ? "myViews" : "sharedViews";
|
|
481
|
+
if (d[X]) {
|
|
480
482
|
const de = { ...d };
|
|
481
|
-
de[
|
|
483
|
+
de[X] = !1, y(de);
|
|
482
484
|
}
|
|
483
485
|
}, { data: E } = Ke(
|
|
484
486
|
{ projectName: s },
|
|
@@ -500,10 +502,10 @@ const Kt = [
|
|
|
500
502
|
viewType: t,
|
|
501
503
|
projectName: s,
|
|
502
504
|
viewsList: P,
|
|
503
|
-
onCreate:
|
|
505
|
+
onCreate: b
|
|
504
506
|
}), {
|
|
505
507
|
currentData: F,
|
|
506
|
-
isLoading:
|
|
508
|
+
isLoading: z,
|
|
507
509
|
isError: Z
|
|
508
510
|
} = pe(
|
|
509
511
|
{ projectName: s, viewType: t },
|
|
@@ -514,7 +516,7 @@ const Kt = [
|
|
|
514
516
|
), { currentData: Pe, isLoading: Se } = Y(
|
|
515
517
|
{ projectName: void 0, viewType: t },
|
|
516
518
|
{ skip: !t || !g }
|
|
517
|
-
), Oe = $ || k ||
|
|
519
|
+
), Oe = $ || k || z || Me || Se, re = F?.settings, N = L?.id === ne ? re : L?.settings, ae = L?.id === F?.id, ce = D && ae && f && f !== F?.id ? f : void 0, { currentData: T, isFetching: $e } = Qe(
|
|
518
520
|
{
|
|
519
521
|
viewId: u,
|
|
520
522
|
projectName: Ee(u, P) ? void 0 : s,
|
|
@@ -537,12 +539,12 @@ const Kt = [
|
|
|
537
539
|
workingView: F,
|
|
538
540
|
dispatch: c
|
|
539
541
|
}), Ae = p(
|
|
540
|
-
async (M, { selectView:
|
|
542
|
+
async (M, { selectView: X } = {}) => {
|
|
541
543
|
if (!F?.id) {
|
|
542
544
|
console.error("No working view to update");
|
|
543
545
|
return;
|
|
544
546
|
}
|
|
545
|
-
await S(F.id, M, !s),
|
|
547
|
+
await S(F.id, M, !s), X && x(F.id);
|
|
546
548
|
},
|
|
547
549
|
[S, F]
|
|
548
550
|
), le = p(async () => {
|
|
@@ -620,7 +622,7 @@ const Kt = [
|
|
|
620
622
|
api: H,
|
|
621
623
|
dispatch: c
|
|
622
624
|
};
|
|
623
|
-
return /* @__PURE__ */
|
|
625
|
+
return /* @__PURE__ */ C(je.Provider, { value: Je, children: e });
|
|
624
626
|
}, ut = (e) => `${e}-views-portal`, Ie = (e) => e ? document.getElementById(ut(e)) : null, wt = J(Q)`
|
|
625
627
|
padding: var(--padding-s);
|
|
626
628
|
border-radius: var(--border-radius-m);
|
|
@@ -731,7 +733,7 @@ const Kt = [
|
|
|
731
733
|
onKeyDown: (l) => {
|
|
732
734
|
(l.key === "Enter" || l.key === " ") && V(l);
|
|
733
735
|
}
|
|
734
|
-
}, m = e ? /* @__PURE__ */
|
|
736
|
+
}, m = e ? /* @__PURE__ */ C(ye, { ...h, ...t(r) }) : /* @__PURE__ */ C(wt, { ref: o, ...h }), u = Ie(i);
|
|
735
737
|
return u ? we(m, u) : null;
|
|
736
738
|
}, ht = () => null, xe = "views-dialog", vt = ({}) => {
|
|
737
739
|
const {
|
|
@@ -751,7 +753,7 @@ const Kt = [
|
|
|
751
753
|
onDeleteView: u,
|
|
752
754
|
api: l,
|
|
753
755
|
dispatch: n
|
|
754
|
-
} = G(), { powerLicense: d } = K(), [y, { isLoading:
|
|
756
|
+
} = G(), { powerLicense: d } = K(), [y, { isLoading: b, outdated: E }] = be({
|
|
755
757
|
addon: "powerpack",
|
|
756
758
|
remote: "views",
|
|
757
759
|
module: "ViewFormDialog",
|
|
@@ -759,7 +761,7 @@ const Kt = [
|
|
|
759
761
|
minVersion: "1.1.1",
|
|
760
762
|
skip: !c || !d
|
|
761
763
|
});
|
|
762
|
-
return !c || !e ? null : e && E ? /* @__PURE__ */
|
|
764
|
+
return !c || !e ? null : e && E ? /* @__PURE__ */ C(
|
|
763
765
|
Te,
|
|
764
766
|
{
|
|
765
767
|
isOpen: !0,
|
|
@@ -771,7 +773,7 @@ const Kt = [
|
|
|
771
773
|
E.required
|
|
772
774
|
] })
|
|
773
775
|
}
|
|
774
|
-
) : /* @__PURE__ */
|
|
776
|
+
) : /* @__PURE__ */ C(
|
|
775
777
|
y,
|
|
776
778
|
{
|
|
777
779
|
editingView: {
|
|
@@ -813,7 +815,7 @@ const Kt = [
|
|
|
813
815
|
g("sharedViews");
|
|
814
816
|
return;
|
|
815
817
|
}
|
|
816
|
-
l ? u || n ?
|
|
818
|
+
l ? u || n ? ze({
|
|
817
819
|
message: `Are you sure you want to remove this default ${r.toLowerCase()}?`,
|
|
818
820
|
header: `Remove Default ${r}`,
|
|
819
821
|
acceptLabel: "Remove",
|
|
@@ -823,8 +825,8 @@ const Kt = [
|
|
|
823
825
|
}
|
|
824
826
|
}) : await a(m) : await s(m);
|
|
825
827
|
};
|
|
826
|
-
return /* @__PURE__ */ A(
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
+
return /* @__PURE__ */ A(j, { children: [
|
|
829
|
+
/* @__PURE__ */ C(
|
|
828
830
|
Ye,
|
|
829
831
|
{
|
|
830
832
|
onClick: () => V(!o),
|
|
@@ -835,7 +837,7 @@ const Kt = [
|
|
|
835
837
|
}
|
|
836
838
|
),
|
|
837
839
|
!o && /* @__PURE__ */ A(Vt, { children: [
|
|
838
|
-
/* @__PURE__ */
|
|
840
|
+
/* @__PURE__ */ C(
|
|
839
841
|
ue,
|
|
840
842
|
{
|
|
841
843
|
existingView: !!i,
|
|
@@ -843,7 +845,7 @@ const Kt = [
|
|
|
843
845
|
onClick: (m) => h(!0, m)
|
|
844
846
|
}
|
|
845
847
|
),
|
|
846
|
-
e && /* @__PURE__ */
|
|
848
|
+
e && /* @__PURE__ */ C(
|
|
847
849
|
ue,
|
|
848
850
|
{
|
|
849
851
|
existingView: !!t,
|
|
@@ -874,7 +876,7 @@ const Kt = [
|
|
|
874
876
|
}),
|
|
875
877
|
onClick: c,
|
|
876
878
|
children: [
|
|
877
|
-
/* @__PURE__ */
|
|
879
|
+
/* @__PURE__ */ C(
|
|
878
880
|
Q,
|
|
879
881
|
{
|
|
880
882
|
icon: s === !1 ? "bolt" : e ? "close" : "add",
|
|
@@ -888,7 +890,7 @@ const Kt = [
|
|
|
888
890
|
}, kt = J(Q)`
|
|
889
891
|
color: var(--md-sys-color-tertiary);
|
|
890
892
|
font-variation-settings: 'FILL' 1;
|
|
891
|
-
`,
|
|
893
|
+
`, bt = () => {
|
|
892
894
|
const {
|
|
893
895
|
viewType: e,
|
|
894
896
|
viewAlias: t,
|
|
@@ -916,31 +918,31 @@ const Kt = [
|
|
|
916
918
|
}, [i, l, s]), U(() => {
|
|
917
919
|
i && h.current && h.current.focus();
|
|
918
920
|
}, [i]);
|
|
919
|
-
const
|
|
921
|
+
const b = p(() => {
|
|
920
922
|
o ? c(!0) : V("sharedViews");
|
|
921
923
|
}, [o, V, c, s]), E = !a || r?.id === a.id ? ne : a.id;
|
|
922
|
-
return /* @__PURE__ */
|
|
924
|
+
return /* @__PURE__ */ C(j, { children: i && we(
|
|
923
925
|
/* @__PURE__ */ A(gt, { style: y, ref: h, tabIndex: 0, children: [
|
|
924
|
-
/* @__PURE__ */
|
|
925
|
-
u && /* @__PURE__ */ A(
|
|
926
|
-
/* @__PURE__ */
|
|
927
|
-
/* @__PURE__ */
|
|
926
|
+
/* @__PURE__ */ C(Ze, { items: w, selected: E }),
|
|
927
|
+
u && /* @__PURE__ */ A(j, { children: [
|
|
928
|
+
/* @__PURE__ */ C(yt, { projectName: g }),
|
|
929
|
+
/* @__PURE__ */ C(ft, {})
|
|
928
930
|
] }),
|
|
929
|
-
/* @__PURE__ */
|
|
931
|
+
/* @__PURE__ */ C(
|
|
930
932
|
Ne,
|
|
931
933
|
{
|
|
932
934
|
label: `Create new ${t.toLowerCase()}`,
|
|
933
935
|
id: tt,
|
|
934
|
-
startContent: /* @__PURE__ */
|
|
935
|
-
endContent: !o && /* @__PURE__ */
|
|
936
|
-
onClick:
|
|
936
|
+
startContent: /* @__PURE__ */ C(Q, { icon: "add" }),
|
|
937
|
+
endContent: !o && /* @__PURE__ */ C(kt, { icon: "bolt" }),
|
|
938
|
+
onClick: b,
|
|
937
939
|
tabIndex: 0
|
|
938
940
|
}
|
|
939
941
|
)
|
|
940
942
|
] }),
|
|
941
943
|
document.body
|
|
942
944
|
) });
|
|
943
|
-
},
|
|
945
|
+
}, Ct = () => {
|
|
944
946
|
const { resetWorkingView: e } = G(), t = p(async () => {
|
|
945
947
|
await e();
|
|
946
948
|
}, [e]);
|
|
@@ -954,17 +956,17 @@ const Kt = [
|
|
|
954
956
|
}, [t]), {
|
|
955
957
|
resetViewToDefault: t
|
|
956
958
|
};
|
|
957
|
-
}, jt = () => (
|
|
958
|
-
/* @__PURE__ */
|
|
959
|
-
/* @__PURE__ */
|
|
960
|
-
/* @__PURE__ */
|
|
961
|
-
] })),
|
|
959
|
+
}, jt = () => (Ct(), /* @__PURE__ */ A(j, { children: [
|
|
960
|
+
/* @__PURE__ */ C(pt, {}),
|
|
961
|
+
/* @__PURE__ */ C(bt, {}),
|
|
962
|
+
/* @__PURE__ */ C(vt, {})
|
|
963
|
+
] })), Yt = ({
|
|
962
964
|
viewType: e,
|
|
963
965
|
projectName: t
|
|
964
966
|
}) => {
|
|
965
967
|
const i = !e, s = { viewType: e, projectName: t };
|
|
966
968
|
ge(s, { skip: i }), me(s, { skip: i }), pe(s, { skip: i }), Y(s, { skip: i }), Y({ viewType: e, projectName: void 0 }, { skip: i });
|
|
967
|
-
},
|
|
969
|
+
}, Zt = () => {
|
|
968
970
|
const { viewSettings: e } = G(), [t, i] = W(null), [s, c] = W(null), { updateViewSettings: a } = Le(), r = e, w = r?.filter ?? {}, g = r?.columns ?? [], o = r?.sliceType;
|
|
969
971
|
U(() => {
|
|
970
972
|
i(null);
|
|
@@ -1002,7 +1004,7 @@ const Kt = [
|
|
|
1002
1004
|
sliceType: o,
|
|
1003
1005
|
onUpdateSliceType: n
|
|
1004
1006
|
};
|
|
1005
|
-
},
|
|
1007
|
+
}, Nt = ({ viewSettings: e, updateViewSettings: t }) => {
|
|
1006
1008
|
const [i, s] = W(null), [c, a] = W(null), [r, w] = W(null), g = e, o = g?.filter ?? {}, V = g?.showHierarchy ?? !0, h = g?.sliceType, m = q(
|
|
1007
1009
|
() => Be(g),
|
|
1008
1010
|
[JSON.stringify(e)]
|
|
@@ -1025,7 +1027,7 @@ const Kt = [
|
|
|
1025
1027
|
});
|
|
1026
1028
|
},
|
|
1027
1029
|
[t]
|
|
1028
|
-
),
|
|
1030
|
+
), b = p(
|
|
1029
1031
|
async (f) => {
|
|
1030
1032
|
await t({ filter: f }, s, f, {
|
|
1031
1033
|
errorMessage: "Failed to update filter settings"
|
|
@@ -1093,7 +1095,7 @@ const Kt = [
|
|
|
1093
1095
|
);
|
|
1094
1096
|
return {
|
|
1095
1097
|
filters: u,
|
|
1096
|
-
onUpdateFilters:
|
|
1098
|
+
onUpdateFilters: b,
|
|
1097
1099
|
showHierarchy: l,
|
|
1098
1100
|
onUpdateHierarchy: E,
|
|
1099
1101
|
columns: n,
|
|
@@ -1102,7 +1104,7 @@ const Kt = [
|
|
|
1102
1104
|
sliceType: h,
|
|
1103
1105
|
onUpdateSliceType: y
|
|
1104
1106
|
};
|
|
1105
|
-
},
|
|
1107
|
+
}, Tt = () => {
|
|
1106
1108
|
const { viewSettings: e } = G(), [t, i] = W(null), [s, c] = W(null), [a, r] = W(null), { updateViewSettings: w } = Le(), g = e, o = g?.filter ?? {}, V = q(
|
|
1107
1109
|
() => Be(g),
|
|
1108
1110
|
[JSON.stringify(e)]
|
|
@@ -1117,23 +1119,23 @@ const Kt = [
|
|
|
1117
1119
|
r(null);
|
|
1118
1120
|
}, [JSON.stringify(h)]);
|
|
1119
1121
|
const m = t !== null ? t : o, u = s || V, l = a ?? h, n = p(
|
|
1120
|
-
async (
|
|
1121
|
-
await w({ filter:
|
|
1122
|
+
async (b) => {
|
|
1123
|
+
await w({ filter: b }, i, b, {
|
|
1122
1124
|
errorMessage: "Failed to update filter settings"
|
|
1123
1125
|
});
|
|
1124
1126
|
},
|
|
1125
1127
|
[w]
|
|
1126
1128
|
), d = p(
|
|
1127
|
-
async (
|
|
1128
|
-
const L = te(
|
|
1129
|
-
await w(L, c,
|
|
1129
|
+
async (b, E) => {
|
|
1130
|
+
const L = te(b, E);
|
|
1131
|
+
await w(L, c, b, {
|
|
1130
1132
|
errorMessage: "Failed to update columns"
|
|
1131
1133
|
});
|
|
1132
1134
|
},
|
|
1133
1135
|
[w]
|
|
1134
1136
|
), y = p(
|
|
1135
|
-
async (
|
|
1136
|
-
await w({ listValues:
|
|
1137
|
+
async (b) => {
|
|
1138
|
+
await w({ listValues: b }, r, b, {
|
|
1137
1139
|
errorMessage: "Failed to update list values settings"
|
|
1138
1140
|
});
|
|
1139
1141
|
},
|
|
@@ -1151,33 +1153,33 @@ const Kt = [
|
|
|
1151
1153
|
export {
|
|
1152
1154
|
De as BASE_VIEW_ID,
|
|
1153
1155
|
tt as NEW_VIEW_ID,
|
|
1154
|
-
|
|
1156
|
+
Xe as VIEW_DIVIDER,
|
|
1155
1157
|
jt as Views,
|
|
1156
1158
|
pt as ViewsButton,
|
|
1157
|
-
|
|
1159
|
+
je as ViewsContext,
|
|
1158
1160
|
Ze as ViewsMenu,
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
+
bt as ViewsMenuContainer,
|
|
1162
|
+
Xt as ViewsProvider,
|
|
1161
1163
|
ne as WORKING_VIEW_ID,
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
+
ss as generateViewId,
|
|
1165
|
+
Ce as generateWorkingView,
|
|
1164
1166
|
st as getCustomViewsFallback,
|
|
1165
1167
|
Ie as getViewsPortalContainer,
|
|
1166
1168
|
ut as getViewsPortalId,
|
|
1167
1169
|
Ee as isViewStudioScope,
|
|
1168
|
-
|
|
1170
|
+
os as updateViewSettings,
|
|
1169
1171
|
rt as useBaseViewMutations,
|
|
1170
1172
|
ot as useBuildViewMenuItems,
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1173
|
+
Tt as useListsViewSettings,
|
|
1174
|
+
Nt as useOverviewViewSettings,
|
|
1175
|
+
Yt as usePrefetchViews,
|
|
1174
1176
|
at as useSaveViewFromCurrent,
|
|
1175
1177
|
it as useSelectedView,
|
|
1176
|
-
|
|
1178
|
+
Zt as useTaskProgressViewSettings,
|
|
1177
1179
|
Le as useViewUpdateHelper,
|
|
1178
1180
|
G as useViewsContext,
|
|
1179
1181
|
nt as useViewsMutations,
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1182
|
+
Ct as useViewsShortcuts,
|
|
1183
|
+
is as useViewsState,
|
|
1184
|
+
zt as viewTypes
|
|
1183
1185
|
};
|
|
@@ -11,7 +11,9 @@ import { upperFirst as Q } from "lodash";
|
|
|
11
11
|
import { u as we } from "./useActionTriggers.es.js";
|
|
12
12
|
import { S as R } from "./SimpleFormDialog.es.js";
|
|
13
13
|
import "uuid";
|
|
14
|
+
import "axios";
|
|
14
15
|
import "@module-federation/enhanced/runtime";
|
|
16
|
+
import "@ynput/ayon-addon/host";
|
|
15
17
|
import { d as Ce } from "./TableExportContextInstance.es.js";
|
|
16
18
|
import "semver";
|
|
17
19
|
import "./ContextMenuContextInstance.es.js";
|
|
@@ -252,7 +254,7 @@ const Se = x.div`
|
|
|
252
254
|
isPlaceholder: !0,
|
|
253
255
|
icon: { type: "material-symbols", name: "sync" },
|
|
254
256
|
groupLabel: ""
|
|
255
|
-
},
|
|
257
|
+
}, io = ({
|
|
256
258
|
entities: o,
|
|
257
259
|
entityType: s,
|
|
258
260
|
entitySubTypes: a,
|
|
@@ -444,5 +446,5 @@ const Se = x.div`
|
|
|
444
446
|
] });
|
|
445
447
|
};
|
|
446
448
|
export {
|
|
447
|
-
|
|
449
|
+
io as A
|
|
448
450
|
};
|
|
@@ -2,9 +2,10 @@ import { useMemo as A, useRef as x, useCallback as h, useState as v, useEffect a
|
|
|
2
2
|
import "react-toastify";
|
|
3
3
|
import "lodash";
|
|
4
4
|
import "primereact/confirmdialog";
|
|
5
|
-
import { g as
|
|
5
|
+
import { g as d } from "./iconUtils.es.js";
|
|
6
6
|
import { bB as E } from "./searchTerms.es.js";
|
|
7
7
|
import "uuid";
|
|
8
|
+
import "axios";
|
|
8
9
|
import { jsx as L } from "react/jsx-runtime";
|
|
9
10
|
import "clsx";
|
|
10
11
|
import "./PlayableIcon.es.js";
|
|
@@ -24,15 +25,17 @@ import "./getUris.es.js";
|
|
|
24
25
|
import "./TableExportContextInstance.es.js";
|
|
25
26
|
import { a as S, b as k } from "./MetaWidget.es.js";
|
|
26
27
|
import "@module-federation/enhanced/runtime";
|
|
28
|
+
import "@ynput/ayon-addon/host";
|
|
27
29
|
import "semver";
|
|
28
30
|
import "./ContextMenuContextInstance.es.js";
|
|
29
31
|
import { createPortal as R } from "react-dom";
|
|
30
32
|
import "react-redux";
|
|
31
33
|
import "react-router-dom";
|
|
32
34
|
import "@tanstack/react-table";
|
|
35
|
+
import "@ynput/ayon-addon";
|
|
33
36
|
import { useDndContext as B } from "@dnd-kit/core";
|
|
34
37
|
import { a as D } from "./ColumnDropIndicator.styled.es.js";
|
|
35
|
-
const I = ["string", "integer", "float"], O = (o, s, t, n) => (t || I).includes(o.data.type || "") && (!s || o.scope?.includes(s)) ? n ? E(o.data) : !0 : !1,
|
|
38
|
+
const I = ["string", "integer", "float"], O = (o, s, t, n) => (t || I).includes(o.data.type || "") && (!s || o.scope?.includes(s)) ? n ? E(o.data) : !0 : !1, xt = ({
|
|
36
39
|
allowedTypes: o,
|
|
37
40
|
enumOnly: s,
|
|
38
41
|
scope: t
|
|
@@ -43,19 +46,19 @@ const I = ["string", "integer", "float"], O = (o, s, t, n) => (t || I).includes(
|
|
|
43
46
|
{
|
|
44
47
|
value: "folderType",
|
|
45
48
|
label: "Folder type",
|
|
46
|
-
icon:
|
|
49
|
+
icon: d("folder"),
|
|
47
50
|
scopes: ["folder", "task"]
|
|
48
51
|
},
|
|
49
52
|
{
|
|
50
53
|
value: "taskType",
|
|
51
54
|
label: "Task type",
|
|
52
|
-
icon:
|
|
55
|
+
icon: d("task"),
|
|
53
56
|
scopes: ["task", "version"]
|
|
54
57
|
},
|
|
55
58
|
{
|
|
56
59
|
value: "productType",
|
|
57
60
|
label: "Product type",
|
|
58
|
-
icon:
|
|
61
|
+
icon: d("product"),
|
|
59
62
|
scopes: ["product", "version"]
|
|
60
63
|
},
|
|
61
64
|
// {
|
|
@@ -73,25 +76,25 @@ const I = ["string", "integer", "float"], O = (o, s, t, n) => (t || I).includes(
|
|
|
73
76
|
{
|
|
74
77
|
value: "assignees",
|
|
75
78
|
label: "Assignee",
|
|
76
|
-
icon:
|
|
79
|
+
icon: d("assignees"),
|
|
77
80
|
scopes: ["task"]
|
|
78
81
|
},
|
|
79
82
|
{
|
|
80
83
|
value: "status",
|
|
81
84
|
label: "Status",
|
|
82
|
-
icon:
|
|
85
|
+
icon: d("status"),
|
|
83
86
|
scopes: ["task", "version", "folder", "product"]
|
|
84
87
|
},
|
|
85
88
|
{
|
|
86
89
|
value: "tags",
|
|
87
90
|
label: "Tags",
|
|
88
|
-
icon:
|
|
91
|
+
icon: d("tags"),
|
|
89
92
|
scopes: ["task", "version", "folder", "product"]
|
|
90
93
|
},
|
|
91
94
|
...a.filter((r) => O(r, t, o, s)).map((r) => ({
|
|
92
95
|
value: "attrib." + r.name,
|
|
93
96
|
label: r.data.title || r.name,
|
|
94
|
-
icon:
|
|
97
|
+
icon: d(r.name)
|
|
95
98
|
}))
|
|
96
99
|
].filter((r) => !t || ("scopes" in r ? r.scopes.includes(t) : !0)).sort((r, m) => {
|
|
97
100
|
const u = n.indexOf(r.value), c = n.indexOf(m.value);
|
|
@@ -99,7 +102,7 @@ const I = ["string", "integer", "float"], O = (o, s, t, n) => (t || I).includes(
|
|
|
99
102
|
}),
|
|
100
103
|
[a, n, o, s, t]
|
|
101
104
|
);
|
|
102
|
-
}, P = "data-column-dnd-container", y = 100,
|
|
105
|
+
}, P = "data-column-dnd-container", y = 100, yt = ({
|
|
103
106
|
columnPinning: o,
|
|
104
107
|
columnSizing: s
|
|
105
108
|
}) => {
|
|
@@ -110,8 +113,8 @@ const I = ["string", "integer", "float"], O = (o, s, t, n) => (t || I).includes(
|
|
|
110
113
|
l += s[g] || 150;
|
|
111
114
|
}), l;
|
|
112
115
|
}, [o.left, s]), r = h(
|
|
113
|
-
({ transform: e, activeNodeRect: l, draggingNodeRect: g, active:
|
|
114
|
-
if (t.current === null || !l ||
|
|
116
|
+
({ transform: e, activeNodeRect: l, draggingNodeRect: g, active: p }) => {
|
|
117
|
+
if (t.current === null || !l || p?.data.current?.type && p.data.current.type !== "column") return e;
|
|
115
118
|
let i = n.current;
|
|
116
119
|
i === null && (i = (document.querySelector(`[${P}]`)?.getBoundingClientRect().left ?? 0) + a());
|
|
117
120
|
const C = g?.left ?? l.left;
|
|
@@ -155,7 +158,7 @@ const I = ["string", "integer", "float"], O = (o, s, t, n) => (t || I).includes(
|
|
|
155
158
|
top: n.top,
|
|
156
159
|
height: n.height
|
|
157
160
|
};
|
|
158
|
-
}, _ = "th[data-column-id]",
|
|
161
|
+
}, _ = "th[data-column-id]", At = () => {
|
|
159
162
|
const { active: o, over: s } = B(), t = o?.data?.current?.type === "column" ? String(o.id) : null, n = s ? String(s.id) : null, [a, r] = v(null);
|
|
160
163
|
return T(() => {
|
|
161
164
|
if (!t || !n || t === n) {
|
|
@@ -168,9 +171,9 @@ const I = ["string", "integer", "float"], O = (o, s, t, n) => (t || I).includes(
|
|
|
168
171
|
document.querySelectorAll(_)
|
|
169
172
|
), e = c.find((l) => l.dataset.columnId === n);
|
|
170
173
|
if (e) {
|
|
171
|
-
const l = c.findIndex((i) => i.dataset.columnId === t), g = c.indexOf(e),
|
|
174
|
+
const l = c.findIndex((i) => i.dataset.columnId === t), g = c.indexOf(e), p = F(e, l < g ? "right" : "left");
|
|
172
175
|
r(
|
|
173
|
-
(i) => i && i.left ===
|
|
176
|
+
(i) => i && i.left === p.left && i.top === p.top && i.height === p.height ? i : p
|
|
174
177
|
);
|
|
175
178
|
}
|
|
176
179
|
m = requestAnimationFrame(u);
|
|
@@ -180,11 +183,11 @@ const I = ["string", "integer", "float"], O = (o, s, t, n) => (t || I).includes(
|
|
|
180
183
|
};
|
|
181
184
|
export {
|
|
182
185
|
_ as C,
|
|
183
|
-
|
|
186
|
+
At as T,
|
|
184
187
|
P as a,
|
|
185
188
|
I as b,
|
|
186
|
-
|
|
189
|
+
xt as c,
|
|
187
190
|
F as g,
|
|
188
191
|
O as i,
|
|
189
|
-
|
|
192
|
+
yt as u
|
|
190
193
|
};
|