@ynput/ayon-frontend-shared 0.6.7 → 0.6.8
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/DetailsPanel.es.js +1 -1
- package/dist/ListTable.es.js +2 -2
- package/dist/NewEntity.es.js +36 -36
- package/dist/ProjectTreeTable.es.js +3 -3
- package/dist/Slicer.es.js +21 -21
- package/dist/Views.es.js +1 -1
- package/dist/api.es.js +362 -360
- package/dist/chunks/Actions.es.js +21 -21
- package/dist/chunks/ColumnDropIndicator.es.js +5 -5
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +22 -22
- package/dist/chunks/EmptyPlaceholder.es.js +9 -9
- package/dist/chunks/EntityPath.es.js +1 -1
- package/dist/chunks/EntityUpdatesContext.es.js +1 -1
- package/dist/chunks/Feed.es.js +1750 -1716
- package/dist/chunks/MetaWidget.es.js +2 -2
- package/dist/chunks/PlayableIcon.es.js +1 -1
- package/dist/chunks/ProjectContext.es.js +11 -11
- package/dist/chunks/ReviewablesSelector.es.js +570 -482
- package/dist/chunks/SimpleForm.es.js +7 -7
- package/dist/chunks/SimpleTable.es.js +1 -1
- package/dist/chunks/Slicer.es.js +73 -73
- package/dist/chunks/ThumbnailSimple.es.js +15 -15
- package/dist/chunks/Watchers.es.js +33 -33
- package/dist/chunks/getBundleMode.es.js +1 -1
- package/dist/chunks/getUris.es.js +236 -229
- package/dist/chunks/searchTerms.es.js +352 -333
- package/dist/chunks/useAttributeEnums.es.js +16 -16
- package/dist/chunks/viewUpdateHelper.es.js +8 -8
- package/dist/components.es.js +108 -107
- package/dist/context.es.js +62 -62
- package/dist/hooks.es.js +13 -13
- package/dist/types/api.d.ts +372 -0
- package/dist/types/components.d.ts +4 -0
- package/dist/util.es.js +2 -2
- package/package.json +1 -1
package/dist/DetailsPanel.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as k, jsx as i, Fragment as Ie } from "react/jsx-runtime";
|
|
|
2
2
|
import { Toolbar as ze, Panel as ft, Button as Z, Spacer as Ge, Icon as fe, getTextColor as Ee, Dialog as bt, SEARCH_FILTER_ID as Qe, buildFilterId as Se, getFilterFromId as vt, SearchFilter as yt, AssigneeField as kt } from "@ynput/ayon-react-components";
|
|
3
3
|
import { useEffect as H, useRef as ee, useMemo as D, useState as X, useContext as wt, useId as xt } from "react";
|
|
4
4
|
import T, { keyframes as St } from "styled-components";
|
|
5
|
-
import {
|
|
5
|
+
import { bp as Ct } from "./chunks/searchTerms.es.js";
|
|
6
6
|
import { bm as Tt, bK as Nt, bZ as Et, ct as qe, bu as Ke, t as Dt, bO as It, c8 as Pt } from "./chunks/getUris.es.js";
|
|
7
7
|
import "primereact/confirmdialog";
|
|
8
8
|
import { o as Ft, y as At, H as Ot, G as Rt, z as jt, w as Xe, A as Vt, B as Ut, E as $t, I as Lt, J as _t, K as Mt, N as Ht, W as Bt, s as Wt } from "./chunks/Watchers.es.js";
|
package/dist/ListTable.es.js
CHANGED
|
@@ -10,7 +10,7 @@ import { n as Te, B as we, T as Ve, o as _e, q as ke } from "./chunks/MetaWidget
|
|
|
10
10
|
import "react-toastify";
|
|
11
11
|
import "lodash";
|
|
12
12
|
import "primereact/confirmdialog";
|
|
13
|
-
import {
|
|
13
|
+
import { bk as Le } from "./chunks/searchTerms.es.js";
|
|
14
14
|
import "lexical";
|
|
15
15
|
import "@lexical/markdown";
|
|
16
16
|
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
@@ -21,7 +21,7 @@ import "@lexical/list";
|
|
|
21
21
|
import "@lexical/rich-text";
|
|
22
22
|
import "@lexical/selection";
|
|
23
23
|
import "@lexical/utils";
|
|
24
|
-
import {
|
|
24
|
+
import { dC as vt, dD as Ge } from "./chunks/getUris.es.js";
|
|
25
25
|
import { u as Me } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
26
26
|
import "@module-federation/enhanced/runtime";
|
|
27
27
|
import "semver";
|
package/dist/NewEntity.es.js
CHANGED
|
@@ -3,12 +3,12 @@ import { useState as z, forwardRef as Ue, useRef as ce, useEffect as Le, useLayo
|
|
|
3
3
|
import { isEmpty as Ce } from "lodash";
|
|
4
4
|
import "primereact/confirmdialog";
|
|
5
5
|
import { toast as me } from "react-toastify";
|
|
6
|
-
import { g as Xe, R as
|
|
6
|
+
import { g as Xe, R as je } from "./chunks/realtimeUpdatesUtils.es.js";
|
|
7
7
|
import { p as be, c as Ze, a as Ge } from "./chunks/iconUtils.es.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
8
|
+
import { bj as Qe } from "./chunks/searchTerms.es.js";
|
|
9
|
+
import { dp as Ye } from "./chunks/getUris.es.js";
|
|
10
10
|
import "@module-federation/enhanced/runtime";
|
|
11
|
-
import { Dropdown as De, Icon as Q, InputText as he, Button as fe, InputSwitch as Te, InputNumber as
|
|
11
|
+
import { Dropdown as De, Icon as Q, InputText as he, Button as fe, InputSwitch as Te, InputNumber as Me, Spacer as $e, theme as qe, Dialog as et, ShortcutTag as tt, Toolbar as nt, SaveButton as at } from "@ynput/ayon-react-components";
|
|
12
12
|
import { x as Ne, y as ze, M as rt } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
13
13
|
import "semver";
|
|
14
14
|
import "./chunks/ContextMenuContextInstance.es.js";
|
|
@@ -42,7 +42,7 @@ const Ee = (i, m, u) => {
|
|
|
42
42
|
for (let q = 0; q < u; q++) {
|
|
43
43
|
const v = h + q * D, O = i.match(/\d+$/);
|
|
44
44
|
if (!O) return [];
|
|
45
|
-
const
|
|
45
|
+
const M = String(v).padStart(O[0].length, "0"), W = i.replace(/\d+$/, M);
|
|
46
46
|
r.push(W);
|
|
47
47
|
}
|
|
48
48
|
return r;
|
|
@@ -53,7 +53,7 @@ const Ee = (i, m, u) => {
|
|
|
53
53
|
);
|
|
54
54
|
return c ? c.name : "";
|
|
55
55
|
}, xn = ({ children: i }) => {
|
|
56
|
-
const { projectName: m, ...u } = Ne(), { attribFields: c } = ot(), { findNonInheritedValues: w, getFolderById: h } = ze(), { attrib: n = {}, statuses: D } = u || {}, { anatomy: r } = Ne(), { entity_naming: q = { capitalization: "lower", separator: "_" } } = r, { rowSelection: v, sliceType: O } = st(),
|
|
56
|
+
const { projectName: m, ...u } = Ne(), { attribFields: c } = ot(), { findNonInheritedValues: w, getFolderById: h } = ze(), { attrib: n = {}, statuses: D } = u || {}, { anatomy: r } = Ne(), { entity_naming: q = { capitalization: "lower", separator: "_" } } = r, { rowSelection: v, sliceType: O } = st(), M = D?.filter((a) => a.scope?.includes("task"))?.[0]?.name || D?.[0]?.name || "none", W = D?.filter((a) => a.scope?.includes("folder"))?.[0]?.name || D?.[0]?.name || "none", [F, R] = z(null), [p, K] = z(null), L = { label: "", subType: "", name: "" }, [b, ne] = z(L), [H, J] = z({
|
|
57
57
|
active: !1,
|
|
58
58
|
increment: "",
|
|
59
59
|
length: 10,
|
|
@@ -122,7 +122,7 @@ const Ee = (i, m, u) => {
|
|
|
122
122
|
const o = a.filter((C) => C.entityType === "folder"), g = a.filter((C) => C.entityType === "task"), s = (C, I) => {
|
|
123
123
|
let P = [];
|
|
124
124
|
for (const l of C) {
|
|
125
|
-
const Z = I === "folder" ? l.data.parentId : l.data.folderId, A = k.get(Z) || n,
|
|
125
|
+
const Z = I === "folder" ? l.data.parentId : l.data.folderId, A = k.get(Z) || n, j = Object.keys(A).reduce((N, V) => {
|
|
126
126
|
const oe = c.find((pe) => pe.name === V);
|
|
127
127
|
if (!oe) return N;
|
|
128
128
|
const ye = oe.scope?.includes(I), se = !!oe.data.inherit;
|
|
@@ -152,7 +152,7 @@ const Ee = (i, m, u) => {
|
|
|
152
152
|
ownAttrib: [],
|
|
153
153
|
path: N,
|
|
154
154
|
tags: [],
|
|
155
|
-
attrib:
|
|
155
|
+
attrib: j,
|
|
156
156
|
links: []
|
|
157
157
|
// Add empty links object
|
|
158
158
|
}
|
|
@@ -173,7 +173,7 @@ const Ee = (i, m, u) => {
|
|
|
173
173
|
active: !0,
|
|
174
174
|
assignees: l.data.assignees || [],
|
|
175
175
|
projectName: m,
|
|
176
|
-
status: l.data.status ||
|
|
176
|
+
status: l.data.status || M,
|
|
177
177
|
folder: {
|
|
178
178
|
path: l.data.folderId ? d[l.data.folderId] : "",
|
|
179
179
|
folderType: ""
|
|
@@ -185,12 +185,12 @@ const Ee = (i, m, u) => {
|
|
|
185
185
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
186
186
|
thumbnailHash: "",
|
|
187
187
|
subtasks: [],
|
|
188
|
-
attrib:
|
|
188
|
+
attrib: j,
|
|
189
189
|
hasReviewables: !1,
|
|
190
190
|
// Add required field
|
|
191
191
|
links: [],
|
|
192
192
|
// Add empty links object
|
|
193
|
-
allAttrib: JSON.stringify(
|
|
193
|
+
allAttrib: JSON.stringify(j),
|
|
194
194
|
parents: []
|
|
195
195
|
}
|
|
196
196
|
};
|
|
@@ -313,7 +313,7 @@ const Ee = (i, m, u) => {
|
|
|
313
313
|
dataKey: "name",
|
|
314
314
|
value: i,
|
|
315
315
|
valueStyle: c,
|
|
316
|
-
onChange: (
|
|
316
|
+
onChange: (M) => u(M[0]),
|
|
317
317
|
disabled: h,
|
|
318
318
|
isChanged: D,
|
|
319
319
|
placeholder: n,
|
|
@@ -484,7 +484,7 @@ const Ct = ({
|
|
|
484
484
|
prefixDisabled: q,
|
|
485
485
|
typeSelectRef: v,
|
|
486
486
|
onLastInputKeydown: O,
|
|
487
|
-
folders:
|
|
487
|
+
folders: M,
|
|
488
488
|
...W
|
|
489
489
|
}) => {
|
|
490
490
|
const { base: F, increment: R, length: p, type: K, id: L, prefix: b, prefixDepth: ne, parentBases: H } = W, J = W.entityType, X = !n && D || q;
|
|
@@ -497,14 +497,14 @@ const Ct = ({
|
|
|
497
497
|
const C = { [_]: S }, I = { ...W, ...C };
|
|
498
498
|
if (_ === "type") {
|
|
499
499
|
let P = !1;
|
|
500
|
-
const l =
|
|
501
|
-
for (const
|
|
500
|
+
const l = M.find((j) => j.name === S);
|
|
501
|
+
for (const j of M) {
|
|
502
502
|
if (I.base === "") {
|
|
503
503
|
P = !0;
|
|
504
504
|
break;
|
|
505
505
|
}
|
|
506
|
-
for (const N in
|
|
507
|
-
if (typeof
|
|
506
|
+
for (const N in j)
|
|
507
|
+
if (typeof j[N] == "string" && I.base?.toLowerCase().includes(j[N].toLowerCase())) {
|
|
508
508
|
P = !0;
|
|
509
509
|
break;
|
|
510
510
|
}
|
|
@@ -514,7 +514,7 @@ const Ct = ({
|
|
|
514
514
|
I.base = Z + A.base, I.increment = Z + A.increment, I.length = A.length;
|
|
515
515
|
}
|
|
516
516
|
if (_ === "base") {
|
|
517
|
-
const P = Re(I.type), l = String(S), Z = l.replace(/[^a-zA-Z]/g, ""), A = l.replace(/[^0-9]/g, ""),
|
|
517
|
+
const P = Re(I.type), l = String(S), Z = l.replace(/[^a-zA-Z]/g, ""), A = l.replace(/[^0-9]/g, ""), j = parseInt(A, 10), N = A.length, V = Z + (j + P.difference).toString().padStart(N, "0");
|
|
518
518
|
I.increment = V.replace("NaN", "");
|
|
519
519
|
}
|
|
520
520
|
if (i(
|
|
@@ -558,7 +558,7 @@ const Ct = ({
|
|
|
558
558
|
{
|
|
559
559
|
value: [K],
|
|
560
560
|
onChange: (s) => B({ target: { value: s, id: "type" } }),
|
|
561
|
-
options:
|
|
561
|
+
options: M,
|
|
562
562
|
style: { width: 160 },
|
|
563
563
|
align: "right"
|
|
564
564
|
}
|
|
@@ -633,7 +633,7 @@ const Ct = ({
|
|
|
633
633
|
{
|
|
634
634
|
value: [K],
|
|
635
635
|
onChange: (s) => B({ target: { value: s, id: "type" } }),
|
|
636
|
-
options:
|
|
636
|
+
options: M,
|
|
637
637
|
style: { width: 160 },
|
|
638
638
|
align: "right",
|
|
639
639
|
ref: v
|
|
@@ -662,7 +662,7 @@ const Ct = ({
|
|
|
662
662
|
n && b && /* @__PURE__ */ f(re, { children: [
|
|
663
663
|
/* @__PURE__ */ t("label", { children: "Depth" }),
|
|
664
664
|
/* @__PURE__ */ t(
|
|
665
|
-
|
|
665
|
+
Me,
|
|
666
666
|
{
|
|
667
667
|
value: ne,
|
|
668
668
|
id: "prefixDepth",
|
|
@@ -706,7 +706,7 @@ const Ct = ({
|
|
|
706
706
|
/* @__PURE__ */ f(re, { children: [
|
|
707
707
|
/* @__PURE__ */ t("label", { children: "Count" }),
|
|
708
708
|
/* @__PURE__ */ t(
|
|
709
|
-
|
|
709
|
+
Me,
|
|
710
710
|
{
|
|
711
711
|
value: p,
|
|
712
712
|
id: "length",
|
|
@@ -836,7 +836,7 @@ const Ct = ({
|
|
|
836
836
|
labelRef: w,
|
|
837
837
|
nameInfo: h = ""
|
|
838
838
|
}) => {
|
|
839
|
-
const n = Je(), [D, r] = z(!1), [q, v] = z(void 0), O = ce(null),
|
|
839
|
+
const n = Je(), [D, r] = z(!1), [q, v] = z(void 0), O = ce(null), M = () => {
|
|
840
840
|
r(!0), u(!0), v(m.name), setTimeout(() => {
|
|
841
841
|
O.current && (O.current.focus(), O.current.select());
|
|
842
842
|
}, 0);
|
|
@@ -845,14 +845,14 @@ const Ct = ({
|
|
|
845
845
|
(!K || !O.current?.contains(K)) && (r(!1), u(!1), v(void 0));
|
|
846
846
|
}, F = (p) => {
|
|
847
847
|
if (p.key === "ArrowDown" && !p.altKey || p.key === "Tab") {
|
|
848
|
-
p.preventDefault(),
|
|
848
|
+
p.preventDefault(), M();
|
|
849
849
|
return;
|
|
850
850
|
}
|
|
851
851
|
c(p, !0);
|
|
852
852
|
}, R = (p) => {
|
|
853
853
|
if (p.key === "Enter" || p.key === "Escape" || p.key === "ArrowUp" && !p.altKey) {
|
|
854
854
|
if (p.stopPropagation(), p.key === "Enter" && !D)
|
|
855
|
-
return
|
|
855
|
+
return M();
|
|
856
856
|
p.key === "Escape" && q !== void 0 && i(q, "name"), r(!1), u(!1), v(void 0), setTimeout(() => {
|
|
857
857
|
w.current?.focus();
|
|
858
858
|
const K = m.label.length || 0;
|
|
@@ -888,7 +888,7 @@ const Ct = ({
|
|
|
888
888
|
onBlur: W,
|
|
889
889
|
style: { flex: 1 }
|
|
890
890
|
}
|
|
891
|
-
) : /* @__PURE__ */ f(Et, { onClick:
|
|
891
|
+
) : /* @__PURE__ */ f(Et, { onClick: M, tabIndex: 0, children: [
|
|
892
892
|
m.name,
|
|
893
893
|
" ",
|
|
894
894
|
/* @__PURE__ */ t(Q, { icon: "edit" })
|
|
@@ -933,7 +933,7 @@ const Ct = ({
|
|
|
933
933
|
align-items: center;
|
|
934
934
|
min-height: 32px;
|
|
935
935
|
color: var(--md-sys-color-outline);
|
|
936
|
-
`,
|
|
936
|
+
`, jt = E.span`
|
|
937
937
|
display: flex;
|
|
938
938
|
align-items: center;
|
|
939
939
|
gap: var(--base-gap-small);
|
|
@@ -963,7 +963,7 @@ const Ct = ({
|
|
|
963
963
|
setEntityForm: q,
|
|
964
964
|
sequenceForm: v,
|
|
965
965
|
setSequenceForm: O,
|
|
966
|
-
onCreateNew:
|
|
966
|
+
onCreateNew: M,
|
|
967
967
|
onOpenNew: W,
|
|
968
968
|
config: F,
|
|
969
969
|
parentFolderIds: R
|
|
@@ -971,11 +971,11 @@ const Ct = ({
|
|
|
971
971
|
if (R !== null) return R;
|
|
972
972
|
const e = L ? Array.from(L).map((T) => dt(T)) : [], x = Array.from(
|
|
973
973
|
new Set(
|
|
974
|
-
e.filter((T) => T && T.colId !==
|
|
974
|
+
e.filter((T) => T && T.colId !== je).map((T) => T?.rowId).filter(Boolean)
|
|
975
975
|
)
|
|
976
976
|
), $ = Array.from(
|
|
977
977
|
new Set(
|
|
978
|
-
e.filter((T) => T?.colId ===
|
|
978
|
+
e.filter((T) => T?.colId === je).map((T) => T?.rowId).filter(Boolean)
|
|
979
979
|
)
|
|
980
980
|
), le = x.length > 0 ? x : $;
|
|
981
981
|
if (le.length > 0) {
|
|
@@ -1015,7 +1015,7 @@ const Ct = ({
|
|
|
1015
1015
|
r.name === ke && ($.name = be($.label, F));
|
|
1016
1016
|
}
|
|
1017
1017
|
setTimeout(() => {
|
|
1018
|
-
|
|
1018
|
+
j.current?.focus();
|
|
1019
1019
|
}, 100);
|
|
1020
1020
|
} else x === "label" ? ($.label = e, S || ($.name = be(e, F))) : x === "name" && (_(!0), $.name = e);
|
|
1021
1021
|
q($);
|
|
@@ -1027,7 +1027,7 @@ const Ct = ({
|
|
|
1027
1027
|
prefix: e.prefix,
|
|
1028
1028
|
prefixDepth: e.prefixDepth
|
|
1029
1029
|
});
|
|
1030
|
-
}, A = ce(null),
|
|
1030
|
+
}, A = ce(null), j = ce(null), N = () => {
|
|
1031
1031
|
D(null), q(C), O((e) => ({ ...e, active: !1 })), _(!1), a(null);
|
|
1032
1032
|
}, V = () => setTimeout(() => A.current?.open(), 180), [oe, ye] = z(!1), se = async (e) => {
|
|
1033
1033
|
const x = Ze(r.label);
|
|
@@ -1042,8 +1042,8 @@ const Ct = ({
|
|
|
1042
1042
|
}
|
|
1043
1043
|
ye(!0);
|
|
1044
1044
|
try {
|
|
1045
|
-
const T = await
|
|
1046
|
-
m?.(T, e, d), e ? (
|
|
1045
|
+
const T = await M(d);
|
|
1046
|
+
m?.(T, e, d), e ? (j.current && (j.current.focus(), j.current.select()), _(!1)) : N();
|
|
1047
1047
|
} catch {
|
|
1048
1048
|
} finally {
|
|
1049
1049
|
ye(!1);
|
|
@@ -1098,7 +1098,7 @@ const Ct = ({
|
|
|
1098
1098
|
/* @__PURE__ */ t("span", { children: "Create" })
|
|
1099
1099
|
] }),
|
|
1100
1100
|
itemTemplate: (e) => /* @__PURE__ */ f(
|
|
1101
|
-
|
|
1101
|
+
jt,
|
|
1102
1102
|
{
|
|
1103
1103
|
className: e.disabled ? "disabled" : void 0,
|
|
1104
1104
|
"data-tooltip": e.disabled ? e.disabledMessage : void 0,
|
|
@@ -1231,7 +1231,7 @@ const Ct = ({
|
|
|
1231
1231
|
{
|
|
1232
1232
|
handleChange: l,
|
|
1233
1233
|
entityForm: r,
|
|
1234
|
-
labelRef:
|
|
1234
|
+
labelRef: j,
|
|
1235
1235
|
setNameFocused: s,
|
|
1236
1236
|
handleKeyDown: pe,
|
|
1237
1237
|
nameInfo: `Names are auto generated from the label using the Entity Naming setting on the project anatomy. Capitalization: ${F.capitalization}. Separator: "${F.separator}"`
|
|
@@ -9,9 +9,9 @@ import { T as ao, g as Kt, c as qt, H as Pn } from "./chunks/ColumnDropIndicator
|
|
|
9
9
|
import { SEARCH_FILTER_ID as lo, Icon as pn, Button as tn } from "@ynput/ayon-react-components";
|
|
10
10
|
import "@module-federation/enhanced/runtime";
|
|
11
11
|
import { toast as Le } from "react-toastify";
|
|
12
|
-
import {
|
|
13
|
-
import { aV as co, aG as uo,
|
|
14
|
-
import {
|
|
12
|
+
import { az as An, bj as qn } from "./chunks/searchTerms.es.js";
|
|
13
|
+
import { aV as co, aG as uo, dt as Qn, dC as St, bX as fo, ct as po, bY as go, ca as mo, bx as Dn, cm as yo, bM as ho, dD as Io } from "./chunks/getUris.es.js";
|
|
14
|
+
import { dE as Wl } from "./chunks/getUris.es.js";
|
|
15
15
|
import "primereact/confirmdialog";
|
|
16
16
|
import { x as Qe, d as bo, a5 as wo, y as Co, u as Xn, a as To, a1 as So } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
17
17
|
import { isEqual as wt, debounce as vo, throttle as Eo } from "lodash";
|
package/dist/Slicer.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { S as Ve, a as je, b as Ne, c as et, d as tt, e as st, f as nt, g as ot, r as rt, u as it, h as ct, i as lt, j as dt, k as at } from "./chunks/Slicer.es.js";
|
|
2
2
|
import { jsx as Se } from "react/jsx-runtime";
|
|
3
|
-
import { useState as A, useEffect as M, useRef as
|
|
4
|
-
import { a as
|
|
3
|
+
import { useState as A, useEffect as M, useRef as U, useCallback as m, useMemo as L } from "react";
|
|
4
|
+
import { a as X, r as q, w as ce, p as ye } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
5
5
|
import { S as he, c as pe, d as Ee } from "./chunks/MetaWidget.es.js";
|
|
6
6
|
import { e as ft, u as St } from "./chunks/MetaWidget.es.js";
|
|
7
7
|
import "@module-federation/enhanced/runtime";
|
|
8
8
|
import "react-toastify";
|
|
9
9
|
import "@ynput/ayon-react-components";
|
|
10
|
-
import {
|
|
10
|
+
import { aA as B, ar as Ie } from "./chunks/searchTerms.es.js";
|
|
11
11
|
import "./chunks/getUris.es.js";
|
|
12
12
|
import "primereact/confirmdialog";
|
|
13
13
|
import "lodash";
|
|
@@ -28,7 +28,7 @@ const me = () => {
|
|
|
28
28
|
formatAttribute: () => [],
|
|
29
29
|
formatProductTypes: () => [],
|
|
30
30
|
formatAuthors: () => []
|
|
31
|
-
}), { powerLicense: e } =
|
|
31
|
+
}), { powerLicense: e } = X(), [s, { isLoading: c }] = le({
|
|
32
32
|
addon: "powerpack",
|
|
33
33
|
remote: "slicer",
|
|
34
34
|
module: "useExtraSlices",
|
|
@@ -60,10 +60,10 @@ const me = () => {
|
|
|
60
60
|
window.removeEventListener("session-storage", t), window.removeEventListener("storage", t);
|
|
61
61
|
};
|
|
62
62
|
}, []);
|
|
63
|
-
const S =
|
|
63
|
+
const S = U(/* @__PURE__ */ new Map()), d = m((t, a) => {
|
|
64
64
|
const u = typeof window > "u" ? null : sessionStorage.getItem(t), I = S.current.get(t);
|
|
65
65
|
if (I && I.raw === u) return I.value;
|
|
66
|
-
const _ =
|
|
66
|
+
const _ = q(t, a);
|
|
67
67
|
return S.current.set(t, { raw: u, value: _ }), _;
|
|
68
68
|
}, []), o = n[0], y = m(
|
|
69
69
|
(t) => c.rowSelection !== void 0 && t === o ? c.rowSelection : d(de(s, e, t), {}),
|
|
@@ -109,7 +109,7 @@ const me = () => {
|
|
|
109
109
|
getPanelExpanded: w,
|
|
110
110
|
setPanelExpanded: i
|
|
111
111
|
};
|
|
112
|
-
}, ue = ["overview", "products"],
|
|
112
|
+
}, ue = ["overview", "products"], qe = ({
|
|
113
113
|
children: n,
|
|
114
114
|
page: e,
|
|
115
115
|
projectName: s,
|
|
@@ -123,7 +123,7 @@ const me = () => {
|
|
|
123
123
|
const [y, h] = ye(
|
|
124
124
|
`slicer-pinned-slice-${e}`,
|
|
125
125
|
null
|
|
126
|
-
), { powerLicense: w } =
|
|
126
|
+
), { powerLicense: w } = X(), i = c, P = i?.sliceTypes, E = i?.sliceType, T = P?.length ? E && E !== P[0] ? [E, ...P.slice(1)] : P : [E ?? "hierarchy"], x = ue.includes(e) && !o.sliceType && !P?.length && T[0] !== "hierarchy" && y?.sliceType === "hierarchy" && Object.values(y.rowSelection || {}).some(Boolean), t = L(
|
|
127
127
|
() => [
|
|
128
128
|
...new Set(
|
|
129
129
|
o.sliceType ? [o.sliceType] : x ? [...T, "hierarchy"] : T
|
|
@@ -140,7 +140,7 @@ const me = () => {
|
|
|
140
140
|
setExpanded: H,
|
|
141
141
|
getPanelSelection: W,
|
|
142
142
|
setPanelSelection: C,
|
|
143
|
-
getPanelExpanded:
|
|
143
|
+
getPanelExpanded: z,
|
|
144
144
|
setPanelExpanded: b
|
|
145
145
|
} = Pe({
|
|
146
146
|
sliceTypes: t,
|
|
@@ -174,24 +174,24 @@ const me = () => {
|
|
|
174
174
|
k(t, g);
|
|
175
175
|
},
|
|
176
176
|
[u, k, t]
|
|
177
|
-
), F = `${s}-${e}`, Z =
|
|
177
|
+
), F = `${s}-${e}`, Z = U(/* @__PURE__ */ new Set());
|
|
178
178
|
M(() => {
|
|
179
179
|
!x || l || Z.current.has(F) || (Z.current.add(F), Object.keys(W("hierarchy")).length || (C("hierarchy", y.rowSelection), b("hierarchy", y.expanded)), k(t));
|
|
180
180
|
}, [x, l, F]);
|
|
181
|
-
const V =
|
|
181
|
+
const V = U(/* @__PURE__ */ new Set());
|
|
182
182
|
M(() => {
|
|
183
183
|
if (V.current.has(F) || l || o.sliceType || o.rowSelection || o.setRowSelection || P?.length)
|
|
184
184
|
return;
|
|
185
185
|
V.current.add(F);
|
|
186
186
|
const r = `slicer-selection-${s}-${e}`, g = `slicer-expanded-${s}-${e}`, p = T[0];
|
|
187
187
|
if (p !== "hierarchy") {
|
|
188
|
-
const R =
|
|
188
|
+
const R = q(r, null);
|
|
189
189
|
if (R && Object.keys(R).length) {
|
|
190
190
|
C(
|
|
191
191
|
p,
|
|
192
192
|
(ie) => Object.keys(ie).length ? ie : R
|
|
193
193
|
);
|
|
194
|
-
const v =
|
|
194
|
+
const v = q(g, null);
|
|
195
195
|
v && b(p, v);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
@@ -270,7 +270,7 @@ const me = () => {
|
|
|
270
270
|
setPanelSliceType: te,
|
|
271
271
|
getPanelSelection: W,
|
|
272
272
|
setPanelSelection: C,
|
|
273
|
-
getPanelExpanded:
|
|
273
|
+
getPanelExpanded: z,
|
|
274
274
|
setPanelExpanded: b,
|
|
275
275
|
collapsedPanels: u,
|
|
276
276
|
togglePanelCollapsed: Q,
|
|
@@ -302,7 +302,7 @@ const me = () => {
|
|
|
302
302
|
te,
|
|
303
303
|
W,
|
|
304
304
|
C,
|
|
305
|
-
|
|
305
|
+
z,
|
|
306
306
|
b,
|
|
307
307
|
O,
|
|
308
308
|
J,
|
|
@@ -316,7 +316,7 @@ const me = () => {
|
|
|
316
316
|
]
|
|
317
317
|
);
|
|
318
318
|
return /* @__PURE__ */ Se(pe.Provider, { value: fe, children: n });
|
|
319
|
-
},
|
|
319
|
+
}, Xe = ({
|
|
320
320
|
sliceFilter: n,
|
|
321
321
|
persistedHierarchySelection: e,
|
|
322
322
|
filters: s,
|
|
@@ -404,7 +404,7 @@ const me = () => {
|
|
|
404
404
|
versionIds: [...e.version],
|
|
405
405
|
productIds: [...e.product]
|
|
406
406
|
};
|
|
407
|
-
},
|
|
407
|
+
}, ze = ({
|
|
408
408
|
slices: n,
|
|
409
409
|
projectName: e
|
|
410
410
|
}) => {
|
|
@@ -473,7 +473,7 @@ const me = () => {
|
|
|
473
473
|
slices: n,
|
|
474
474
|
attribFields: e
|
|
475
475
|
}) => n.filter((s) => s.sliceType !== "hierarchy" && s.sliceType !== "entityList").map((s) => ve({ slice: s, attribFields: e })).filter((s) => !!s), Je = (n) => {
|
|
476
|
-
const { slices: e, getPanelSelection: s } = Ee(), { powerLicense: c, isLoading: l } =
|
|
476
|
+
const { slices: e, getPanelSelection: s } = Ee(), { powerLicense: c, isLoading: l } = X(), f = L(() => {
|
|
477
477
|
const d = e.map((o) => ({
|
|
478
478
|
sliceType: o.sliceType,
|
|
479
479
|
rowSelection: s(o.id)
|
|
@@ -497,7 +497,7 @@ export {
|
|
|
497
497
|
et as SLICER_SPLITTER_STATE_KEY,
|
|
498
498
|
tt as Slicer,
|
|
499
499
|
pe as SlicerContext,
|
|
500
|
-
|
|
500
|
+
qe as SlicerProvider,
|
|
501
501
|
st as buildListFolderRowId,
|
|
502
502
|
nt as clampDraggedHeights,
|
|
503
503
|
ve as createFilterFromSlicer,
|
|
@@ -505,11 +505,11 @@ export {
|
|
|
505
505
|
ot as defaultSliceOptions,
|
|
506
506
|
rt as resolvePanelLayout,
|
|
507
507
|
it as useEntityListsSlice,
|
|
508
|
-
|
|
508
|
+
Xe as useFiltersWithHierarchy,
|
|
509
509
|
ct as useHierarchyContextMenuItems,
|
|
510
510
|
ht as useHierarchySelection,
|
|
511
511
|
St as useOptionalSlicerContext,
|
|
512
|
-
|
|
512
|
+
ze as useSelectedEntityIds,
|
|
513
513
|
Ee as useSlicerContext,
|
|
514
514
|
lt as useSlicerCounts,
|
|
515
515
|
dt as useSlicerPanelHeights,
|
package/dist/Views.es.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as b, jsxs as A, Fragment as X } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo as _, useCallback as h, 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
|
-
import { aQ as oe, bs as ge,
|
|
5
|
+
import { aQ as oe, bs as ge, d5 as ie, b4 as fe, dv as Ve, dy as q, U as ee, ch as He, cW as me, cD as pe, bo as Y, cB as Ge } from "./chunks/getUris.es.js";
|
|
6
6
|
import { confirmDialog as Qe } from "primereact/confirmdialog";
|
|
7
7
|
import { a as Q, ae as Je, d as he, s as ve, af as Ke, e as H, ag as ze, ah as je, ai as Xe } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
8
8
|
import { Icon as J, Button as ye, Dialog as Ye } from "@ynput/ayon-react-components";
|