@ynput/ayon-frontend-shared 0.5.0 → 0.6.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/DetailsPanel.es.js +88 -86
- package/dist/Feed.es.js +22 -22
- package/dist/ListTable.es.js +77 -67
- package/dist/ProjectTreeTable.es.js +1164 -1150
- package/dist/Slicer.es.js +2 -2
- package/dist/Views.es.js +1 -1
- package/dist/api.es.js +331 -329
- package/dist/chunks/Actions.es.js +23 -23
- package/dist/chunks/DeleteEntitiesContext.es.js +115 -115
- package/dist/chunks/DetailsDialog.es.js +3 -3
- package/dist/chunks/DetailsPanelContext.es.js +155 -0
- package/dist/chunks/EntityPath.es.js +20 -20
- package/dist/chunks/EntityPickerDialog.es.js +1 -1
- package/dist/chunks/EntityTooltip.es.js +12 -12
- package/dist/chunks/EntityUpdatesContext.es.js +1 -1
- package/dist/chunks/Feed.es.js +2208 -2611
- package/dist/chunks/FilterErrorActions.es.js +1 -1
- package/dist/chunks/GlobalContext.es.js +14 -14
- package/dist/chunks/Menu.es.js +1 -1
- package/dist/chunks/MenuContext.es.js +51 -242
- package/dist/chunks/MenuItem.es.js +1 -1
- package/dist/chunks/MetaWidget.es.js +3341 -3899
- package/dist/chunks/NewEntityContext.es.js +40 -40
- package/dist/chunks/PlayableIcon.es.js +4261 -1163
- package/dist/chunks/ProjectContext.es.js +13 -13
- package/dist/chunks/ProjectFoldersContext.es.js +5 -5
- package/dist/chunks/RepresentationsList.es.js +3 -3
- package/dist/chunks/ReviewablesSelector.es.js +85 -76
- package/dist/chunks/SimpleForm.es.js +9 -9
- package/dist/chunks/SimpleTable.es.js +1 -1
- package/dist/chunks/Slicer.es.js +173 -171
- package/dist/chunks/TableSettingsFallback.es.js +6 -6
- package/dist/chunks/ThumbnailSimple.es.js +410 -61
- package/dist/chunks/VersionUploadContext.es.js +29 -29
- package/dist/chunks/ViewsContext.es.js +90 -90
- package/dist/chunks/Watchers.es.js +628 -598
- package/dist/chunks/entityDefinitions.es.js +31 -31
- package/dist/chunks/expandRelativeDates.es.js +27 -0
- package/dist/chunks/getBundleMode.es.js +16 -61
- package/dist/chunks/getUris.es.js +271 -269
- package/dist/chunks/queryFilterToClientFilter.es.js +11 -10
- package/dist/chunks/searchTerms.es.js +177 -173
- package/dist/chunks/uriUtils.es.js +48 -0
- package/dist/chunks/useAttributeEnums.es.js +11 -11
- package/dist/chunks/useColumnDragRestriction.es.js +37 -27
- package/dist/chunks/useDateRangeFilter.es.js +3 -3
- package/dist/chunks/useLocalStorage.es.js +9 -9
- package/dist/chunks/useSessionStorage.es.js +61 -0
- package/dist/chunks/viewUpdateHelper.es.js +19 -19
- package/dist/components.es.js +165 -160
- package/dist/context.es.js +60 -58
- package/dist/hooks.es.js +104 -98
- package/dist/index.es.js +18 -13
- package/dist/types/Actions.d.ts +16 -16
- package/dist/types/ContextMenu.d.ts +16 -16
- package/dist/types/DetailsPanel.d.ts +16 -16
- package/dist/types/EntityPickerDialog.d.ts +16 -16
- package/dist/types/Feed.d.ts +16 -16
- package/dist/types/ListTable.d.ts +16 -16
- package/dist/types/NewEntity.d.ts +16 -16
- package/dist/types/ProjectTreeTable.d.ts +20 -16
- package/dist/types/RepresentationsList.d.ts +16 -16
- package/dist/types/SimpleTable.d.ts +16 -16
- package/dist/types/Slicer.d.ts +16 -16
- package/dist/types/Views.d.ts +17 -17
- package/dist/types/api.d.ts +391 -95
- package/dist/types/components.d.ts +79 -20
- package/dist/types/context.d.ts +60 -17
- package/dist/types/hooks.d.ts +16 -16
- package/dist/types/index.d.ts +16 -16
- package/dist/types/util.d.ts +16 -16
- package/dist/util.es.js +108 -97
- package/package.json +16 -4
- package/dist/chunks/mentionTypeOptions.es.js +0 -15
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as B } from "react/jsx-runtime";
|
|
2
|
-
import { createContext as E,
|
|
2
|
+
import { createContext as E, useContext as T, useCallback as a } from "react";
|
|
3
3
|
import "./searchTerms.es.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c2 as G, b$ as Q, dy as F } from "./getUris.es.js";
|
|
5
5
|
import "primereact/confirmdialog";
|
|
6
6
|
import "lodash";
|
|
7
7
|
import "react-toastify";
|
|
8
8
|
import { g as l } from "./getEntityTypeIcon.es.js";
|
|
9
9
|
import "uuid";
|
|
10
|
-
const
|
|
10
|
+
const L = {
|
|
11
11
|
name: "",
|
|
12
12
|
code: "",
|
|
13
13
|
productTypes: [],
|
|
@@ -25,7 +25,7 @@ const F = {
|
|
|
25
25
|
linkTypes: [],
|
|
26
26
|
ownAttrib: []
|
|
27
27
|
};
|
|
28
|
-
function
|
|
28
|
+
function M(t) {
|
|
29
29
|
if (!t)
|
|
30
30
|
return { productTypes: [], productBaseTypes: [] };
|
|
31
31
|
const i = t.productTypes || [], o = /* @__PURE__ */ new Map();
|
|
@@ -40,7 +40,7 @@ function L(t) {
|
|
|
40
40
|
productBaseTypes: Array.from(o.values())
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
const p = E(void 0),
|
|
43
|
+
const p = E(void 0), H = ({
|
|
44
44
|
projectName: t,
|
|
45
45
|
children: i
|
|
46
46
|
}) => {
|
|
@@ -55,12 +55,12 @@ const p = E(void 0), J = ({
|
|
|
55
55
|
} = G({ projectName: t }, { skip: !t }), { data: d = {}, refetch: y } = Q(
|
|
56
56
|
{ projectName: t },
|
|
57
57
|
{ skip: !t }
|
|
58
|
-
), s = d.product_base_types?.default, { data: g } =
|
|
58
|
+
), s = d.product_base_types?.default, { data: g } = F(
|
|
59
59
|
{ projectName: t },
|
|
60
60
|
{
|
|
61
61
|
skip: !t
|
|
62
62
|
}
|
|
63
|
-
), { productTypes: n, productBaseTypes: x } =
|
|
63
|
+
), { productTypes: n, productBaseTypes: x } = M(g), h = a(
|
|
64
64
|
(c) => o?.folderTypes?.find((e) => e.name === c),
|
|
65
65
|
[o]
|
|
66
66
|
), v = a(
|
|
@@ -93,7 +93,7 @@ const p = E(void 0), J = ({
|
|
|
93
93
|
p.Provider,
|
|
94
94
|
{
|
|
95
95
|
value: {
|
|
96
|
-
...
|
|
96
|
+
...L,
|
|
97
97
|
...o,
|
|
98
98
|
projectName: t,
|
|
99
99
|
productTypes: n,
|
|
@@ -108,14 +108,14 @@ const p = E(void 0), J = ({
|
|
|
108
108
|
children: i
|
|
109
109
|
}
|
|
110
110
|
);
|
|
111
|
-
},
|
|
111
|
+
}, J = () => {
|
|
112
112
|
const t = T(p);
|
|
113
113
|
if (t === void 0)
|
|
114
114
|
throw new Error("useProjectContext must be used within a ProjectContextProvider");
|
|
115
115
|
return t;
|
|
116
|
-
},
|
|
116
|
+
}, K = () => T(p);
|
|
117
117
|
export {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
H as P,
|
|
119
|
+
J as a,
|
|
120
|
+
K as u
|
|
121
121
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as R } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as k, useState as z, useEffect as B, useMemo as a, useContext as E } from "react";
|
|
3
3
|
import "./searchTerms.es.js";
|
|
4
|
-
import {
|
|
4
|
+
import { bJ as N } from "./getUris.es.js";
|
|
5
5
|
import "primereact/confirmdialog";
|
|
6
6
|
import { P as y } from "./ProjectFoldersContextInstance.es.js";
|
|
7
7
|
const Q = (s, h) => {
|
|
@@ -10,7 +10,7 @@ const Q = (s, h) => {
|
|
|
10
10
|
const u = d.current;
|
|
11
11
|
!u || Object.keys(s).some((c) => u[c] !== s[c]) || Object.keys(u).some((c) => u[c] !== s[c]) ? (d.current = { ...s }, l(h)) : h || l(!1);
|
|
12
12
|
}, [Object.values(s).join(","), h]), b;
|
|
13
|
-
},
|
|
13
|
+
}, D = ({
|
|
14
14
|
projectName: s,
|
|
15
15
|
children: h
|
|
16
16
|
}) => {
|
|
@@ -121,14 +121,14 @@ const Q = (s, h) => {
|
|
|
121
121
|
]
|
|
122
122
|
);
|
|
123
123
|
return /* @__PURE__ */ R(y.Provider, { value: M, children: h });
|
|
124
|
-
},
|
|
124
|
+
}, H = () => {
|
|
125
125
|
const s = E(y);
|
|
126
126
|
if (s === void 0)
|
|
127
127
|
throw new Error("useProjectFoldersContext must be used within a ProjectFoldersContextProvider");
|
|
128
128
|
return s;
|
|
129
129
|
};
|
|
130
130
|
export {
|
|
131
|
-
|
|
131
|
+
D as P,
|
|
132
132
|
Q as a,
|
|
133
|
-
|
|
133
|
+
H as u
|
|
134
134
|
};
|
|
@@ -12,7 +12,7 @@ import "uuid";
|
|
|
12
12
|
import "./searchTerms.es.js";
|
|
13
13
|
import { a as E } from "./useCreateContextMenu.es.js";
|
|
14
14
|
import { D as F } from "./DetailsDialog.es.js";
|
|
15
|
-
import {
|
|
15
|
+
import { b$ as H } from "./getUris.es.js";
|
|
16
16
|
const I = (d = []) => {
|
|
17
17
|
let n = [];
|
|
18
18
|
for (const t of d) {
|
|
@@ -52,7 +52,7 @@ const I = (d = []) => {
|
|
|
52
52
|
header: "productType",
|
|
53
53
|
width: 110
|
|
54
54
|
}
|
|
55
|
-
],
|
|
55
|
+
], Z = ({ entities: d = [] }) => {
|
|
56
56
|
const n = u(() => I(d) || [], [d]), [t, s] = w(!1), c = n.find((e) => e.id === t)?.projectName, [a, p] = w([]), b = u(() => S(n, "name"), [n]), f = (e) => {
|
|
57
57
|
p([e]);
|
|
58
58
|
}, x = (e) => {
|
|
@@ -126,5 +126,5 @@ const I = (d = []) => {
|
|
|
126
126
|
] });
|
|
127
127
|
};
|
|
128
128
|
export {
|
|
129
|
-
|
|
129
|
+
Z as R
|
|
130
130
|
};
|
|
@@ -11,8 +11,8 @@ import { useSortable as It, SortableContext as Ke, verticalListSortingStrategy a
|
|
|
11
11
|
import { CSS as Tt } from "@dnd-kit/utilities";
|
|
12
12
|
import { I as eo } from "./InfoMessage.es.js";
|
|
13
13
|
import { S as pn } from "./SimpleForm.es.js";
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
14
|
+
import { bq as to, aY as no, bo as mn, bn as gn, bp as $t, bi as oo, b1 as ro, bm as hn, bg as vn, be as io } from "./searchTerms.es.js";
|
|
15
|
+
import { bj as ao, bp as so, cB as lo, bd as co, dz as ae, cj as uo } from "./getUris.es.js";
|
|
16
16
|
import "primereact/confirmdialog";
|
|
17
17
|
import { u as po, g as mo, v as go } from "./Watchers.es.js";
|
|
18
18
|
import { matchSorter as Ft } from "match-sorter";
|
|
@@ -21,11 +21,20 @@ import { u as fn } from "./GlobalContext.es.js";
|
|
|
21
21
|
import { toast as vo } from "react-toastify";
|
|
22
22
|
import { g as ve } from "./parseHtmlToPlainTextWithLinks.es.js";
|
|
23
23
|
import "uuid";
|
|
24
|
-
import {
|
|
24
|
+
import { a as fo } from "./useLocalStorage.es.js";
|
|
25
25
|
import { Link as bo } from "react-router-dom";
|
|
26
|
-
import {
|
|
26
|
+
import { aR as Z, u as ke, a as We, b0 as yo, b5 as xo, ah as xe, aS as oe, Y as wo, aY as Mt, aV as Vt, aZ as Bt, b8 as So } from "./MetaWidget.es.js";
|
|
27
27
|
import { k as Xe } from "./DeleteEntitiesContext.es.js";
|
|
28
28
|
import "date-fns";
|
|
29
|
+
import "lexical";
|
|
30
|
+
import "@lexical/markdown";
|
|
31
|
+
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
32
|
+
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
33
|
+
import "@lexical/code";
|
|
34
|
+
import "@lexical/list";
|
|
35
|
+
import "@lexical/rich-text";
|
|
36
|
+
import "@lexical/selection";
|
|
37
|
+
import "@lexical/utils";
|
|
29
38
|
import { a as bn } from "./ProjectContext.es.js";
|
|
30
39
|
import "@tanstack/react-table";
|
|
31
40
|
import { a as ko } from "./useCreateContextMenu.es.js";
|
|
@@ -74,7 +83,7 @@ const Fo = g.div`
|
|
|
74
83
|
border-radius: 4px;
|
|
75
84
|
min-height: ${(e) => e.$minHeight};
|
|
76
85
|
background-color: var(--md-sys-color-surface-container);
|
|
77
|
-
`,
|
|
86
|
+
`, ps = ({
|
|
78
87
|
showSidebar: e = !0,
|
|
79
88
|
sidebarConfig: t = {},
|
|
80
89
|
gridConfig: o = { columns: 3, rows: 3 },
|
|
@@ -95,7 +104,7 @@ const Fo = g.div`
|
|
|
95
104
|
b
|
|
96
105
|
)) })
|
|
97
106
|
] });
|
|
98
|
-
},
|
|
107
|
+
}, ms = g.div`
|
|
99
108
|
position: relative;
|
|
100
109
|
width: 100%;
|
|
101
110
|
|
|
@@ -103,7 +112,7 @@ const Fo = g.div`
|
|
|
103
112
|
min-height: 32px;
|
|
104
113
|
max-height: 32px;
|
|
105
114
|
}
|
|
106
|
-
`,
|
|
115
|
+
`, gs = g.ul`
|
|
107
116
|
position: absolute;
|
|
108
117
|
top: 100%;
|
|
109
118
|
left: 0;
|
|
@@ -207,12 +216,12 @@ const Fo = g.div`
|
|
|
207
216
|
}
|
|
208
217
|
);
|
|
209
218
|
return i === "user" ? /* @__PURE__ */ n(Jn, { name: v, fullName: s ? o : void 0, size: r }) : i === "group" ? b("shield_person", "Access group") : i === "team" ? b("groups", "Team") : i === "guest" || t === zo ? b("badge", "Guest user") : t === Ho ? b("groups", "Everyone with access to the project") : b("person");
|
|
210
|
-
},
|
|
219
|
+
}, hs = {
|
|
211
220
|
0: "No access",
|
|
212
221
|
10: "Viewer",
|
|
213
222
|
20: "Editor",
|
|
214
223
|
30: "Admin"
|
|
215
|
-
},
|
|
224
|
+
}, vs = le(
|
|
216
225
|
({
|
|
217
226
|
name: e,
|
|
218
227
|
label: t,
|
|
@@ -1328,7 +1337,7 @@ const Fo = g.div`
|
|
|
1328
1337
|
"boolean",
|
|
1329
1338
|
"datetime",
|
|
1330
1339
|
"list_of_strings"
|
|
1331
|
-
],
|
|
1340
|
+
], fs = (e, t, o) => {
|
|
1332
1341
|
if (!e || !Or.includes(e)) return e ?? "";
|
|
1333
1342
|
if (e === "list_of_strings") return "Select (multiple)";
|
|
1334
1343
|
const r = vt(e, t, o);
|
|
@@ -1392,7 +1401,7 @@ const Fo = g.div`
|
|
|
1392
1401
|
const i = s;
|
|
1393
1402
|
i === "data" && t.data && o.data ? o.data = { ...o.data, ...t.data } : t[i] !== void 0 && (o[i] = t[i]);
|
|
1394
1403
|
}), o;
|
|
1395
|
-
},
|
|
1404
|
+
}, bs = ({
|
|
1396
1405
|
attribute: e,
|
|
1397
1406
|
defaultData: t,
|
|
1398
1407
|
existingNames: o,
|
|
@@ -1665,10 +1674,10 @@ const Fo = g.div`
|
|
|
1665
1674
|
opacity: 1;
|
|
1666
1675
|
transform: translateY(0);
|
|
1667
1676
|
}
|
|
1668
|
-
`,
|
|
1677
|
+
`, ys = g.div`
|
|
1669
1678
|
position: relative;
|
|
1670
1679
|
display: inline-flex;
|
|
1671
|
-
`,
|
|
1680
|
+
`, xs = g.button`
|
|
1672
1681
|
background: none;
|
|
1673
1682
|
border: none;
|
|
1674
1683
|
padding: 0;
|
|
@@ -1700,7 +1709,7 @@ const Fo = g.div`
|
|
|
1700
1709
|
width: 24px;
|
|
1701
1710
|
height: 24px;
|
|
1702
1711
|
}
|
|
1703
|
-
`,
|
|
1712
|
+
`, ws = g(G)`
|
|
1704
1713
|
width: 20px;
|
|
1705
1714
|
height: 20px;
|
|
1706
1715
|
min-width: 20px;
|
|
@@ -1716,7 +1725,7 @@ const Fo = g.div`
|
|
|
1716
1725
|
&:hover {
|
|
1717
1726
|
background-color: var(--md-sys-color-surface-container-highest-hover);
|
|
1718
1727
|
}
|
|
1719
|
-
`,
|
|
1728
|
+
`, Ss = g.div`
|
|
1720
1729
|
position: fixed;
|
|
1721
1730
|
z-index: 1001;
|
|
1722
1731
|
background-color: var(--md-sys-color-surface-container-highest);
|
|
@@ -1731,13 +1740,13 @@ const Fo = g.div`
|
|
|
1731
1740
|
&.left {
|
|
1732
1741
|
transform-origin: top left;
|
|
1733
1742
|
}
|
|
1734
|
-
`,
|
|
1743
|
+
`, ks = g.div`
|
|
1735
1744
|
display: flex;
|
|
1736
1745
|
flex-direction: column;
|
|
1737
1746
|
gap: var(--base-gap-small);
|
|
1738
1747
|
padding: var(--padding-m);
|
|
1739
1748
|
position: relative;
|
|
1740
|
-
`,
|
|
1749
|
+
`, Cs = g(H)`
|
|
1741
1750
|
&.hasIcon {
|
|
1742
1751
|
padding: 4px;
|
|
1743
1752
|
}
|
|
@@ -1753,7 +1762,7 @@ const Fo = g.div`
|
|
|
1753
1762
|
&:hover {
|
|
1754
1763
|
background-color: var(--md-sys-color-surface-container-highest-hover);
|
|
1755
1764
|
}
|
|
1756
|
-
`,
|
|
1765
|
+
`, Es = g.div`
|
|
1757
1766
|
display: flex;
|
|
1758
1767
|
flex-direction: column;
|
|
1759
1768
|
gap: 4px;
|
|
@@ -1762,7 +1771,7 @@ const Fo = g.div`
|
|
|
1762
1771
|
${fe.labelSmall}
|
|
1763
1772
|
color: var(--md-sys-color-outline);
|
|
1764
1773
|
}
|
|
1765
|
-
`,
|
|
1774
|
+
`, Is = g.input`
|
|
1766
1775
|
background-color: var(--md-sys-color-surface-container-low);
|
|
1767
1776
|
border: 1px solid var(--md-sys-color-outline-variant);
|
|
1768
1777
|
border-radius: var(--border-radius-m);
|
|
@@ -1784,7 +1793,7 @@ const Fo = g.div`
|
|
|
1784
1793
|
cursor: pointer;
|
|
1785
1794
|
filter: invert(0.5);
|
|
1786
1795
|
}
|
|
1787
|
-
`,
|
|
1796
|
+
`, Ts = g(H)`
|
|
1788
1797
|
&:hover {
|
|
1789
1798
|
background-color: var(--md-sys-color-surface-container-highest-hover);
|
|
1790
1799
|
}
|
|
@@ -1804,13 +1813,13 @@ const Fo = g.div`
|
|
|
1804
1813
|
|
|
1805
1814
|
box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.1);
|
|
1806
1815
|
font-weight: 700;
|
|
1807
|
-
`,
|
|
1816
|
+
`, Ns = le(
|
|
1808
1817
|
({ tooltip: e, ...t }, o) => /* @__PURE__ */ n(Hr, { "data-tooltip": e, "data-tooltip-delay": 0, ...t, ref: o, children: "Early preview" })
|
|
1809
1818
|
), ft = [
|
|
1810
1819
|
{ value: "hero", label: "Hero", short: "Hero", icon: "star" },
|
|
1811
1820
|
{ value: "latestDone", label: "Latest Done", short: "Done", icon: "check_circle" },
|
|
1812
1821
|
{ value: "latest", label: "Latest", short: "Latest", icon: "fiber_new" }
|
|
1813
|
-
],
|
|
1822
|
+
], Ps = ft.map((e) => e.value), zr = ({ id: e, label: t }) => {
|
|
1814
1823
|
const { attributes: o, listeners: r, setNodeRef: a, transform: s, transition: i, isDragging: v } = It({
|
|
1815
1824
|
id: e
|
|
1816
1825
|
}), b = {
|
|
@@ -1831,7 +1840,7 @@ const Fo = g.div`
|
|
|
1831
1840
|
] })
|
|
1832
1841
|
}
|
|
1833
1842
|
);
|
|
1834
|
-
},
|
|
1843
|
+
}, _s = ({ value: e, onChange: t }) => {
|
|
1835
1844
|
const [o, r] = U(null), a = ln(
|
|
1836
1845
|
cn(dn, {
|
|
1837
1846
|
activationConstraint: {
|
|
@@ -1949,7 +1958,7 @@ const Fo = g.div`
|
|
|
1949
1958
|
.icon {
|
|
1950
1959
|
cursor: pointer;
|
|
1951
1960
|
}
|
|
1952
|
-
`,
|
|
1961
|
+
`, As = le(
|
|
1953
1962
|
({ tooltip: e = "This page will deprecated in a future version", ...t }, o) => /* @__PURE__ */ n(G, { icon: "ad_off", "data-tooltip": e, ...t, ref: o })
|
|
1954
1963
|
), qr = g(H)`
|
|
1955
1964
|
transition: color 0.2s, background-color 0.2s, opacity 0.2s;
|
|
@@ -1984,7 +1993,7 @@ const Fo = g.div`
|
|
|
1984
1993
|
&.rounded {
|
|
1985
1994
|
border-radius: var(--border-radius-xl);
|
|
1986
1995
|
}
|
|
1987
|
-
`,
|
|
1996
|
+
`, Ds = le(
|
|
1988
1997
|
({ feature: e, variant: t = "outline", rounded: o = !0, bolt: r = !1, ...a }, s) => {
|
|
1989
1998
|
const { setPowerpackDialog: i } = fo(), v = (b) => {
|
|
1990
1999
|
i(e), a.onClick?.(b);
|
|
@@ -2018,12 +2027,12 @@ const Fo = g.div`
|
|
|
2018
2027
|
{ skip: !o || !r?.instanceId }
|
|
2019
2028
|
), s = new URL(Wr), i = r?.instanceId, v = a || 10;
|
|
2020
2029
|
return s.searchParams.append("seats", v.toString()), i && s.searchParams.append("instance_id", i), e && s.searchParams.append("addon", e), s.toString();
|
|
2021
|
-
},
|
|
2030
|
+
}, Ls = le(
|
|
2022
2031
|
({ children: e, addon: t, ...o }, r) => {
|
|
2023
2032
|
const a = Xr({ addon: t });
|
|
2024
2033
|
return /* @__PURE__ */ n("a", { href: a, target: "_blank", rel: "noopener noreferrer", ...o, ref: r, children: e });
|
|
2025
2034
|
}
|
|
2026
|
-
),
|
|
2035
|
+
), Os = g(qe)`
|
|
2027
2036
|
background: linear-gradient(180deg, rgb(0 121 181 / 0%) -12.03%, rgb(4 255 227 / 26%) 105.38%),
|
|
2028
2037
|
#15171c;
|
|
2029
2038
|
|
|
@@ -2045,7 +2054,7 @@ const Fo = g.div`
|
|
|
2045
2054
|
.cancelButton {
|
|
2046
2055
|
background-color: unset;
|
|
2047
2056
|
}
|
|
2048
|
-
`,
|
|
2057
|
+
`, Rs = g.div`
|
|
2049
2058
|
display: flex;
|
|
2050
2059
|
flex-direction: column;
|
|
2051
2060
|
align-items: center;
|
|
@@ -2075,7 +2084,7 @@ const Fo = g.div`
|
|
|
2075
2084
|
font-size: 32px;
|
|
2076
2085
|
color: var(--md-sys-color-tertiary);
|
|
2077
2086
|
}
|
|
2078
|
-
`,
|
|
2087
|
+
`, $s = g.div`
|
|
2079
2088
|
width: 100%;
|
|
2080
2089
|
|
|
2081
2090
|
h3 {
|
|
@@ -2103,7 +2112,7 @@ const Fo = g.div`
|
|
|
2103
2112
|
gap: 8px;
|
|
2104
2113
|
}
|
|
2105
2114
|
}
|
|
2106
|
-
`,
|
|
2115
|
+
`, Fs = g.div`
|
|
2107
2116
|
cursor: pointer;
|
|
2108
2117
|
text-align: center;
|
|
2109
2118
|
margin-top: 16px;
|
|
@@ -2125,14 +2134,14 @@ const Fo = g.div`
|
|
|
2125
2134
|
&:hover {
|
|
2126
2135
|
background-color: var(--md-sys-color-tertiary-hover);
|
|
2127
2136
|
}
|
|
2128
|
-
`,
|
|
2137
|
+
`, Ms = le(({ ...e }, t) => /* @__PURE__ */ n(Qr, { ...e, children: "Try for free!" })), Jr = g.div`
|
|
2129
2138
|
display: flex;
|
|
2130
2139
|
flex-direction: column;
|
|
2131
2140
|
gap: 8px;
|
|
2132
2141
|
border-radius: var(--border-radius-l);
|
|
2133
2142
|
background-color: var(--md-sys-color-secondary-container);
|
|
2134
2143
|
padding: var(--padding-m);
|
|
2135
|
-
`,
|
|
2144
|
+
`, Vs = le(
|
|
2136
2145
|
({ requiredVersion: e, addonName: t, addonLabel: o, ...r }, a) => {
|
|
2137
2146
|
const s = t || "powerpack", i = o || "Power Features";
|
|
2138
2147
|
return e ? /* @__PURE__ */ k(Jr, { ...r, ref: a, children: [
|
|
@@ -2663,7 +2672,7 @@ const Fo = g.div`
|
|
|
2663
2672
|
}, Ue = "add-column-menu-list", pi = [], mi = (e, t) => e.parentScope && e.attrib ? `${e.parentScope.charAt(0).toUpperCase()}${e.parentScope.slice(1)} attributes` : Rn(e, t)?.label, He = (e, t) => {
|
|
2664
2673
|
const o = mi(e, t);
|
|
2665
2674
|
return { ...e, icon: e.icon ?? Ln(e), ...o ? { path: o } : {} };
|
|
2666
|
-
},
|
|
2675
|
+
}, Bs = ({
|
|
2667
2676
|
icon: e,
|
|
2668
2677
|
label: t,
|
|
2669
2678
|
checked: o,
|
|
@@ -3610,7 +3619,7 @@ const Fo = g.div`
|
|
|
3610
3619
|
min-width: 120px;
|
|
3611
3620
|
`, $i = g(H)`
|
|
3612
3621
|
padding: 4px !important;
|
|
3613
|
-
`,
|
|
3622
|
+
`, Us = ({ defaultSelected: e, className: t, ...o }) => {
|
|
3614
3623
|
const { togglePanel: r, isPanelOpen: a } = Xe();
|
|
3615
3624
|
return /* @__PURE__ */ n(
|
|
3616
3625
|
Ri,
|
|
@@ -3622,7 +3631,7 @@ const Fo = g.div`
|
|
|
3622
3631
|
children: "Customize"
|
|
3623
3632
|
}
|
|
3624
3633
|
);
|
|
3625
|
-
},
|
|
3634
|
+
}, Hs = ({
|
|
3626
3635
|
settings: e = [],
|
|
3627
3636
|
extraColumns: t,
|
|
3628
3637
|
hiddenColumns: o,
|
|
@@ -3730,7 +3739,7 @@ const Fo = g.div`
|
|
|
3730
3739
|
padding: 2px;
|
|
3731
3740
|
border-radius: 12px;
|
|
3732
3741
|
}
|
|
3733
|
-
`,
|
|
3742
|
+
`, zs = ({
|
|
3734
3743
|
extraColumns: e,
|
|
3735
3744
|
hiddenColumns: t,
|
|
3736
3745
|
includeLinks: o,
|
|
@@ -3762,7 +3771,7 @@ const Fo = g.div`
|
|
|
3762
3771
|
/* @__PURE__ */ n(yt, { menuId: gt, menuItems: c }),
|
|
3763
3772
|
l
|
|
3764
3773
|
] });
|
|
3765
|
-
},
|
|
3774
|
+
}, js = g.a`
|
|
3766
3775
|
color: var(--md-sys-color-primary, #0066cc);
|
|
3767
3776
|
text-decoration: none;
|
|
3768
3777
|
cursor: pointer;
|
|
@@ -3787,7 +3796,7 @@ const Fo = g.div`
|
|
|
3787
3796
|
background-color: var(--md-sys-color-surface-container-highest-hover);
|
|
3788
3797
|
}
|
|
3789
3798
|
}
|
|
3790
|
-
`,
|
|
3799
|
+
`, Ks = le(
|
|
3791
3800
|
({ showGrid: e, onChange: t, ...o }, r) => (J(() => {
|
|
3792
3801
|
const a = (s) => {
|
|
3793
3802
|
const i = s.target;
|
|
@@ -4146,7 +4155,7 @@ const Fo = g.div`
|
|
|
4146
4155
|
color: var(--md-sys-color-on-error-container);
|
|
4147
4156
|
padding: var(--padding-s);
|
|
4148
4157
|
border-radius: var(--border-radius-m);
|
|
4149
|
-
`,
|
|
4158
|
+
`, Gs = () => {
|
|
4150
4159
|
const {
|
|
4151
4160
|
isOpen: e,
|
|
4152
4161
|
onCloseVersionUpload: t,
|
|
@@ -4331,7 +4340,7 @@ function aa({
|
|
|
4331
4340
|
e
|
|
4332
4341
|
);
|
|
4333
4342
|
}
|
|
4334
|
-
const
|
|
4343
|
+
const Ys = le(({
|
|
4335
4344
|
reviewables: e = [],
|
|
4336
4345
|
selected: t = [],
|
|
4337
4346
|
projectName: o,
|
|
@@ -4428,56 +4437,56 @@ const Ms = le(({
|
|
|
4428
4437
|
] });
|
|
4429
4438
|
});
|
|
4430
4439
|
export {
|
|
4431
|
-
|
|
4432
|
-
|
|
4433
|
-
|
|
4434
|
-
|
|
4440
|
+
vs as A,
|
|
4441
|
+
Hs as B,
|
|
4442
|
+
ms as C,
|
|
4443
|
+
Ss as D,
|
|
4435
4444
|
Ho as E,
|
|
4436
|
-
|
|
4445
|
+
$s as F,
|
|
4437
4446
|
Ut as G,
|
|
4438
|
-
|
|
4447
|
+
Ys as H,
|
|
4439
4448
|
oi as I,
|
|
4440
|
-
|
|
4449
|
+
Bs as J,
|
|
4441
4450
|
ri as K,
|
|
4442
|
-
|
|
4443
|
-
|
|
4451
|
+
As as L,
|
|
4452
|
+
Rs as M,
|
|
4444
4453
|
An as N,
|
|
4445
4454
|
Ko as O,
|
|
4446
|
-
|
|
4455
|
+
Ds as P,
|
|
4447
4456
|
Si as Q,
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4457
|
+
Vs as R,
|
|
4458
|
+
gs as S,
|
|
4459
|
+
xs as T,
|
|
4460
|
+
js as U,
|
|
4452
4461
|
Ht as V,
|
|
4453
|
-
|
|
4462
|
+
Ks as W,
|
|
4454
4463
|
zt as X,
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4464
|
+
Gs as Y,
|
|
4465
|
+
fs as Z,
|
|
4466
|
+
ys as a,
|
|
4467
|
+
ks as b,
|
|
4468
|
+
Cs as c,
|
|
4469
|
+
Es as d,
|
|
4470
|
+
Is as e,
|
|
4471
|
+
Ts as f,
|
|
4472
|
+
ws as g,
|
|
4473
|
+
Os as h,
|
|
4474
|
+
Fs as i,
|
|
4475
|
+
Ls as j,
|
|
4476
|
+
Ms as k,
|
|
4468
4477
|
ft as l,
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4478
|
+
hs as m,
|
|
4479
|
+
zs as n,
|
|
4480
|
+
ps as o,
|
|
4481
|
+
bs as p,
|
|
4473
4482
|
gi as q,
|
|
4474
4483
|
fi as r,
|
|
4475
|
-
|
|
4476
|
-
|
|
4484
|
+
Us as s,
|
|
4485
|
+
Ps as t,
|
|
4477
4486
|
zo as u,
|
|
4478
|
-
|
|
4487
|
+
Ns as v,
|
|
4479
4488
|
cr as w,
|
|
4480
4489
|
or as x,
|
|
4481
|
-
|
|
4490
|
+
_s as y,
|
|
4482
4491
|
jt as z
|
|
4483
4492
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as c, jsxs as O, Fragment as I } from "react/jsx-runtime";
|
|
2
2
|
import { useState as V, useEffect as v, useMemo as D, useRef as B, useCallback as R } from "react";
|
|
3
3
|
import { getTextColor as K, InputTextarea as P, InputText as W, InputSwitch as z, InputNumber as k, Dropdown as F, DefaultItemTemplate as M, FormLayout as U, FormRow as q } from "@ynput/ayon-react-components";
|
|
4
|
-
import {
|
|
4
|
+
import { a$ as G } from "./searchTerms.es.js";
|
|
5
5
|
import "./getUris.es.js";
|
|
6
6
|
import "primereact/confirmdialog";
|
|
7
7
|
import b from "styled-components";
|
|
@@ -327,7 +327,7 @@ const H = (e, r) => {
|
|
|
327
327
|
`, me = (e) => /* @__PURE__ */ c(pe, { children: /* @__PURE__ */ c(T, { onClick: () => {
|
|
328
328
|
const t = document.createElement("a");
|
|
329
329
|
t.href = `data:application/octet-stream;base64,${e.value.payload}`, t.download = e.value.filename, document.body.appendChild(t), t.click(), document.body.removeChild(t);
|
|
330
|
-
}, children: e.value.filename }) }),
|
|
330
|
+
}, children: e.value.filename }) }), $ = (e) => {
|
|
331
331
|
const r = /* @__PURE__ */ O(I, { children: [
|
|
332
332
|
/* @__PURE__ */ c("div", { style: { flex: 1 } }),
|
|
333
333
|
e.badges && e.badges.map((t, n) => /* @__PURE__ */ c(ie, { label: t }, n))
|
|
@@ -342,7 +342,7 @@ const H = (e, r) => {
|
|
|
342
342
|
endContent: r
|
|
343
343
|
}
|
|
344
344
|
);
|
|
345
|
-
},
|
|
345
|
+
}, L = (e = []) => e.map((r) => ({ ...r, value: `${r.value}` })), S = (e = [], r) => e.find((t) => `${t.value}` === r)?.value ?? r, de = ({ field: e, value: r, onChange: t }) => {
|
|
346
346
|
const n = !!(e.disabled || e.readOnly);
|
|
347
347
|
if (e.type === "text") {
|
|
348
348
|
const s = typeof r == "string" ? r : "";
|
|
@@ -395,12 +395,12 @@ const H = (e, r) => {
|
|
|
395
395
|
F,
|
|
396
396
|
{
|
|
397
397
|
widthExpand: !0,
|
|
398
|
-
options:
|
|
398
|
+
options: L(e.options),
|
|
399
399
|
value: s ? [s] : [],
|
|
400
|
-
onSelectionChange: (o) => t(
|
|
400
|
+
onSelectionChange: (o) => t(S(e.options, o[0])),
|
|
401
401
|
className: "form-field",
|
|
402
402
|
multiSelect: !1,
|
|
403
|
-
itemTemplate:
|
|
403
|
+
itemTemplate: $,
|
|
404
404
|
placeholder: e.placeholder,
|
|
405
405
|
disabled: n
|
|
406
406
|
}
|
|
@@ -412,12 +412,12 @@ const H = (e, r) => {
|
|
|
412
412
|
F,
|
|
413
413
|
{
|
|
414
414
|
widthExpand: !0,
|
|
415
|
-
options:
|
|
415
|
+
options: L(e.options),
|
|
416
416
|
value: s,
|
|
417
|
-
onSelectionChange: (o) => t(o.map((m) =>
|
|
417
|
+
onSelectionChange: (o) => t(o.map((m) => S(e.options, m))),
|
|
418
418
|
className: "form-field",
|
|
419
419
|
multiSelect: !0,
|
|
420
|
-
itemTemplate:
|
|
420
|
+
itemTemplate: $,
|
|
421
421
|
placeholder: e.placeholder,
|
|
422
422
|
disabled: n
|
|
423
423
|
}
|
|
@@ -10,7 +10,7 @@ import "lodash";
|
|
|
10
10
|
import "primereact/confirmdialog";
|
|
11
11
|
import "react-toastify";
|
|
12
12
|
import "uuid";
|
|
13
|
-
import {
|
|
13
|
+
import { br as Ye, bs as Xe } from "./searchTerms.es.js";
|
|
14
14
|
import { E as Ze } from "./EmptyPlaceholder.es.js";
|
|
15
15
|
import { a as et } from "./useCreateContextMenu.es.js";
|
|
16
16
|
import "primereact-context/contextmenu";
|