@ynput/ayon-frontend-shared 0.6.4 → 0.6.5
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 +480 -477
- package/dist/ListTable.es.js +24 -25
- package/dist/NewEntity.es.js +6 -7
- package/dist/ProjectTreeTable.es.js +2016 -1996
- package/dist/Views.es.js +28 -28
- package/dist/api.es.js +291 -289
- package/dist/chunks/Actions.es.js +12 -12
- package/dist/chunks/ColumnDropIndicator.es.js +8 -9
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +31 -25
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +1 -1
- package/dist/chunks/DetailsDialog.es.js +1 -1
- package/dist/chunks/EmptyPlaceholder.es.js +13 -12
- package/dist/chunks/EntityPath.es.js +67 -67
- package/dist/chunks/EntityPickerDialog.es.js +1 -1
- package/dist/chunks/EntityTooltip.es.js +8 -8
- package/dist/chunks/Feed.es.js +75 -76
- package/dist/chunks/MetaWidget.es.js +1283 -1279
- package/dist/chunks/PlayableIcon.es.js +458 -451
- package/dist/chunks/ProjectContext.es.js +20 -20
- package/dist/chunks/RepresentationsList.es.js +9 -9
- package/dist/chunks/ReviewablesSelector.es.js +1504 -1374
- package/dist/chunks/Slicer.es.js +68 -69
- package/dist/chunks/ThumbnailSimple.es.js +4 -4
- package/dist/chunks/Watchers.es.js +104 -105
- package/dist/chunks/activeEntities.es.js +58 -0
- package/dist/chunks/columnConfigConverter.es.js +57 -63
- package/dist/chunks/getUris.es.js +886 -831
- package/dist/chunks/iconUtils.es.js +151 -0
- package/dist/chunks/realtimeUpdatesUtils.es.js +113 -80
- package/dist/chunks/searchTerms.es.js +329 -247
- package/dist/chunks/useAttributeEnums.es.js +34 -34
- package/dist/chunks/viewUpdateHelper.es.js +11 -11
- package/dist/components.es.js +340 -337
- package/dist/context.es.js +48 -48
- package/dist/hooks.es.js +34 -34
- package/dist/index.es.js +1 -1
- package/dist/types/ContextMenu.d.ts +1 -1
- package/dist/types/Feed.d.ts +1 -1
- package/dist/types/ListTable.d.ts +1 -1
- package/dist/types/ProjectTreeTable.d.ts +4 -1
- package/dist/types/SimpleTable.d.ts +1 -1
- package/dist/types/Slicer.d.ts +5 -5
- package/dist/types/Views.d.ts +4 -4
- package/dist/types/api.d.ts +545 -171
- package/dist/types/components.d.ts +64 -9
- package/dist/types/context.d.ts +5 -5
- package/dist/types/util.d.ts +237 -2
- package/dist/util.es.js +127 -114
- package/package.json +1 -1
- package/dist/chunks/extractEntityHierarchyFromParents.es.js +0 -28
- package/dist/chunks/parseHtmlToPlainTextWithLinks.es.js +0 -138
package/dist/ListTable.es.js
CHANGED
|
@@ -6,7 +6,7 @@ import { Button as ze, Icon as Ie } from "@ynput/ayon-react-components";
|
|
|
6
6
|
import "./chunks/PlayableIcon.es.js";
|
|
7
7
|
import "date-fns";
|
|
8
8
|
import "uuid";
|
|
9
|
-
import {
|
|
9
|
+
import { n as Te, B as we, T as Ve, o as _e, q as ke } from "./chunks/MetaWidget.es.js";
|
|
10
10
|
import "react-toastify";
|
|
11
11
|
import "lodash";
|
|
12
12
|
import "primereact/confirmdialog";
|
|
@@ -21,10 +21,9 @@ import "@lexical/list";
|
|
|
21
21
|
import "@lexical/rich-text";
|
|
22
22
|
import "@lexical/selection";
|
|
23
23
|
import "@lexical/utils";
|
|
24
|
-
import {
|
|
25
|
-
import "react-router-dom";
|
|
26
|
-
import "@module-federation/enhanced/runtime";
|
|
24
|
+
import { dB as vt, dC as Ge } from "./chunks/getUris.es.js";
|
|
27
25
|
import { u as Me } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
26
|
+
import "@module-federation/enhanced/runtime";
|
|
28
27
|
import "semver";
|
|
29
28
|
import { u as Ae } from "./chunks/useCreateContextMenu.es.js";
|
|
30
29
|
import "react-dom";
|
|
@@ -172,7 +171,7 @@ const $t = C.tr`
|
|
|
172
171
|
color: var(--md-sys-color-on-surface-variant);
|
|
173
172
|
font-style: italic;
|
|
174
173
|
pointer-events: none;
|
|
175
|
-
`,
|
|
174
|
+
`, qe = C.div`
|
|
176
175
|
position: relative;
|
|
177
176
|
display: flex;
|
|
178
177
|
align-items: center;
|
|
@@ -188,7 +187,7 @@ const $t = C.tr`
|
|
|
188
187
|
white-space: nowrap !important;
|
|
189
188
|
min-width: 0;
|
|
190
189
|
}
|
|
191
|
-
`,
|
|
190
|
+
`, Je = C.div`
|
|
192
191
|
position: relative;
|
|
193
192
|
display: flex;
|
|
194
193
|
align-items: center;
|
|
@@ -524,7 +523,7 @@ const Tt = C.tbody`
|
|
|
524
523
|
list_of_any: tt,
|
|
525
524
|
list_of_submodels: wt,
|
|
526
525
|
dict: wt
|
|
527
|
-
},
|
|
526
|
+
}, Io = () => bn, Kt = (t, e) => `list-table-cell-${t}-${e}`, yn = (t) => F(t), Vt = "editable", vn = (t) => !!t && typeof t == "object" && "__listTablePlaceholder" in t, Cn = ({
|
|
528
527
|
cell: t,
|
|
529
528
|
row: e,
|
|
530
529
|
rowIndex: o,
|
|
@@ -592,10 +591,10 @@ const Tt = C.tbody`
|
|
|
592
591
|
isReadOnly: !x
|
|
593
592
|
}), I = !f || m ? ot(d.column.columnDef.cell, d.getContext()) : w ?? yn(d.getValue());
|
|
594
593
|
let v = I;
|
|
595
|
-
e !== null && (e ? v = e(t, I) || I : v = /* @__PURE__ */ l(
|
|
594
|
+
e !== null && (e ? v = e(t, I) || I : v = /* @__PURE__ */ l(qe, { children: I }));
|
|
596
595
|
const S = x && f && b && !m;
|
|
597
596
|
return S && (v = /* @__PURE__ */ l(
|
|
598
|
-
|
|
597
|
+
Je,
|
|
599
598
|
{
|
|
600
599
|
className: A(Vt, g, { editing: y }),
|
|
601
600
|
children: v
|
|
@@ -1001,7 +1000,7 @@ function kn(t) {
|
|
|
1001
1000
|
}, [o, e]);
|
|
1002
1001
|
}
|
|
1003
1002
|
const Ln = (t) => t ? Array.isArray(t) ? t.filter(Boolean) : [t] : [];
|
|
1004
|
-
function
|
|
1003
|
+
function To({
|
|
1005
1004
|
data: t,
|
|
1006
1005
|
columns: e,
|
|
1007
1006
|
getRowId: o,
|
|
@@ -1035,15 +1034,15 @@ function wo({
|
|
|
1035
1034
|
onSortingChange: Yt,
|
|
1036
1035
|
enableExpanding: Ut = !0,
|
|
1037
1036
|
expanded: Xt,
|
|
1038
|
-
onExpandedChange:
|
|
1037
|
+
onExpandedChange: qt,
|
|
1039
1038
|
getIsRowInactive: it
|
|
1040
1039
|
}) {
|
|
1041
|
-
const [
|
|
1040
|
+
const [Jt, Qt] = L([]), [Zt, te] = L({}), [ee, ne] = L({}), [oe, ie] = L({}), Y = At(null), [rt] = Ae(), st = Bt ?? Jt, re = (n) => {
|
|
1042
1041
|
const p = typeof n == "function" ? n(st) : n;
|
|
1043
1042
|
Qt(p), Yt?.(p);
|
|
1044
1043
|
}, at = Xt ?? oe, se = (n) => {
|
|
1045
1044
|
const p = typeof n == "function" ? n(at) : n;
|
|
1046
|
-
ie(p),
|
|
1045
|
+
ie(p), qt?.(p);
|
|
1047
1046
|
}, U = S ?? Zt, ae = (n) => {
|
|
1048
1047
|
const p = typeof n == "function" ? n(lt) : n, D = {};
|
|
1049
1048
|
Object.keys(p).forEach((T) => {
|
|
@@ -1100,7 +1099,7 @@ function wo({
|
|
|
1100
1099
|
getScrollElement: () => Y.current,
|
|
1101
1100
|
estimateSize: () => 44,
|
|
1102
1101
|
overscan: 10
|
|
1103
|
-
}),
|
|
1102
|
+
}), q = X.getVirtualItems(), { handleRowClick: de, handleKeyDown: ce } = wn({
|
|
1104
1103
|
rows: _,
|
|
1105
1104
|
selectedRows: s,
|
|
1106
1105
|
onSelectedRowsChange: h,
|
|
@@ -1163,10 +1162,10 @@ function wo({
|
|
|
1163
1162
|
handleRowDragCancel: ye
|
|
1164
1163
|
} = _n({ rows: _, columnOrder: ct, onReorderRows: E, setColumnOrder: ut, onColumnOrderChange: I }), ht = et(() => ({ onUpdateRow: a, onOpenViewer: m }), [a, m]), ve = kn(N), Ce = !!N.getState().columnSizingInfo.isResizingColumn;
|
|
1165
1164
|
Mt(() => {
|
|
1166
|
-
const [n] =
|
|
1165
|
+
const [n] = q.slice(-1);
|
|
1167
1166
|
n && n.index >= _.length - 1 && i && !u && r?.();
|
|
1168
|
-
}, [i, r, _.length, u,
|
|
1169
|
-
const
|
|
1167
|
+
}, [i, r, _.length, u, q]);
|
|
1168
|
+
const J = mt ? _.find((n) => n.id === mt) : null, j = ft ? N.getHeaderGroups()[0]?.headers.find((n) => n.id === ft) : null;
|
|
1170
1169
|
return /* @__PURE__ */ l(
|
|
1171
1170
|
Qe,
|
|
1172
1171
|
{
|
|
@@ -1236,7 +1235,7 @@ function wo({
|
|
|
1236
1235
|
{
|
|
1237
1236
|
items: _.map((n) => n.id),
|
|
1238
1237
|
strategy: Be,
|
|
1239
|
-
children:
|
|
1238
|
+
children: q.map((n) => {
|
|
1240
1239
|
if (n.index > _.length - 1)
|
|
1241
1240
|
return /* @__PURE__ */ l(
|
|
1242
1241
|
nn,
|
|
@@ -1278,14 +1277,14 @@ function wo({
|
|
|
1278
1277
|
styles: { active: { opacity: "0.4" } }
|
|
1279
1278
|
})
|
|
1280
1279
|
},
|
|
1281
|
-
children:
|
|
1280
|
+
children: J ? /* @__PURE__ */ l("table", { style: { width: "100%" }, children: /* @__PURE__ */ l(Tt, { children: /* @__PURE__ */ l(
|
|
1282
1281
|
on,
|
|
1283
1282
|
{
|
|
1284
|
-
className: A({ inactive: it?.(
|
|
1283
|
+
className: A({ inactive: it?.(J.original) }),
|
|
1285
1284
|
children: /* @__PURE__ */ l(
|
|
1286
1285
|
Wt,
|
|
1287
1286
|
{
|
|
1288
|
-
row:
|
|
1287
|
+
row: J,
|
|
1289
1288
|
cellWrapper: f,
|
|
1290
1289
|
columnAttributeData: b,
|
|
1291
1290
|
dataTypeWidgets: y,
|
|
@@ -1318,7 +1317,7 @@ const Pt = (t) => !!t && typeof t == "object" && ("label" in t || "value" in t),
|
|
|
1318
1317
|
}), o.forEach((i) => {
|
|
1319
1318
|
i.subRows = Ft(i.subRows, e);
|
|
1320
1319
|
}), [...o, ...r];
|
|
1321
|
-
},
|
|
1320
|
+
}, wo = (t, e, o, r, i, u) => {
|
|
1322
1321
|
const a = [], m = (d, E, R, c) => {
|
|
1323
1322
|
if (!R.length) {
|
|
1324
1323
|
d.push(E);
|
|
@@ -1345,11 +1344,11 @@ const Pt = (t) => !!t && typeof t == "object" && ("label" in t || "value" in t),
|
|
|
1345
1344
|
return t.forEach((d) => m(a, d, e, "root")), Ft(a, o);
|
|
1346
1345
|
};
|
|
1347
1346
|
export {
|
|
1348
|
-
|
|
1349
|
-
|
|
1347
|
+
To as ListTable,
|
|
1348
|
+
wo as buildGroupedData,
|
|
1350
1349
|
Mn as compareGroupingPathItems,
|
|
1351
1350
|
bn as defaultListTableDataTypeWidgets,
|
|
1352
|
-
|
|
1351
|
+
Io as getDefaultListTableDataTypeWidgets,
|
|
1353
1352
|
Gn as getGroupItemValue,
|
|
1354
1353
|
Kt as getListTableCellId,
|
|
1355
1354
|
Pt as isListTableGroupDisplayObject,
|
package/dist/NewEntity.es.js
CHANGED
|
@@ -4,9 +4,9 @@ import { isEmpty as Ce } from "lodash";
|
|
|
4
4
|
import "primereact/confirmdialog";
|
|
5
5
|
import { toast as me } from "react-toastify";
|
|
6
6
|
import { g as Xe, R as Me } from "./chunks/realtimeUpdatesUtils.es.js";
|
|
7
|
-
import { p as be, c as Ze, a as Ge } from "./chunks/
|
|
7
|
+
import { p as be, c as Ze, a as Ge } from "./chunks/iconUtils.es.js";
|
|
8
8
|
import { bi as Qe } from "./chunks/searchTerms.es.js";
|
|
9
|
-
import {
|
|
9
|
+
import { dn as Ye } from "./chunks/getUris.es.js";
|
|
10
10
|
import "@module-federation/enhanced/runtime";
|
|
11
11
|
import { x as Te, y as $e, M as et } from "./chunks/DeleteEntitiesContextInstance.es.js";
|
|
12
12
|
import "semver";
|
|
@@ -32,7 +32,6 @@ import "@lexical/list";
|
|
|
32
32
|
import "@lexical/rich-text";
|
|
33
33
|
import "@lexical/selection";
|
|
34
34
|
import "@lexical/utils";
|
|
35
|
-
import "react-router-dom";
|
|
36
35
|
import { u as ht } from "./chunks/useHierarchySelection.es.js";
|
|
37
36
|
import { n as te } from "./chunks/entityDefinitions.es.js";
|
|
38
37
|
import "@tanstack/react-table";
|
|
@@ -53,7 +52,7 @@ const Ee = (i, m, u) => {
|
|
|
53
52
|
(w) => w.name === m
|
|
54
53
|
);
|
|
55
54
|
return c ? c.name : "";
|
|
56
|
-
},
|
|
55
|
+
}, xn = ({ children: i }) => {
|
|
57
56
|
const { projectName: m, ...u } = Te(), { attribFields: c } = ot(), { findNonInheritedValues: w, getFolderById: h } = $e(), { attrib: n = {}, statuses: D } = u || {}, { anatomy: r } = Te(), { entity_naming: q = { capitalization: "lower", separator: "_" } } = r, { rowSelection: v, sliceType: O } = st(), j = 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({
|
|
58
57
|
active: !1,
|
|
59
58
|
increment: "",
|
|
@@ -950,7 +949,7 @@ const Ct = ({
|
|
|
950
949
|
&.disabled {
|
|
951
950
|
opacity: 0.5;
|
|
952
951
|
}
|
|
953
|
-
`,
|
|
952
|
+
`, wn = ({
|
|
954
953
|
disabled: i,
|
|
955
954
|
onNewEntities: m,
|
|
956
955
|
showButton: u = !0,
|
|
@@ -1250,10 +1249,10 @@ export {
|
|
|
1250
1249
|
we as InputLabel,
|
|
1251
1250
|
Oe as InputsContainer,
|
|
1252
1251
|
Nt as NameRow,
|
|
1253
|
-
|
|
1252
|
+
wn as NewEntity,
|
|
1254
1253
|
pt as NewEntityContext,
|
|
1255
1254
|
Dt as NewEntityForm,
|
|
1256
|
-
|
|
1255
|
+
xn as NewEntityProvider,
|
|
1257
1256
|
yt as generateLabel,
|
|
1258
1257
|
te as newEntityDefinitions,
|
|
1259
1258
|
ft as useNewEntityContext
|