@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/ListTable.es.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { jsx as a, Fragment as De, jsxs as M } from "react/jsx-runtime";
|
|
2
2
|
import Gt, { useState as L, useEffect as Mt, useRef as At, useCallback as O, useMemo as tt } from "react";
|
|
3
3
|
import A from "clsx";
|
|
4
|
-
import { flexRender as nt, useReactTable as
|
|
4
|
+
import { flexRender as nt, useReactTable as Ee, getSortedRowModel as Re, getExpandedRowModel as Se, getCoreRowModel as we } from "@tanstack/react-table";
|
|
5
5
|
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
|
-
import {
|
|
8
|
+
import { D as Te, B as Ve, T as _e, E as ke, j as Le } from "./chunks/MetaWidget.es.js";
|
|
9
9
|
import "react-toastify";
|
|
10
10
|
import "lodash";
|
|
11
11
|
import "primereact/confirmdialog";
|
|
12
12
|
import "uuid";
|
|
13
13
|
import { bB as Ge } from "./chunks/searchTerms.es.js";
|
|
14
|
+
import "axios";
|
|
14
15
|
import "lexical";
|
|
15
16
|
import "@lexical/markdown";
|
|
16
17
|
import "match-sorter";
|
|
@@ -24,14 +25,16 @@ import "@lexical/react/LexicalDecoratorBlockNode";
|
|
|
24
25
|
import { dJ as vt, dK as Me } from "./chunks/getUris.es.js";
|
|
25
26
|
import { u as Ae } from "./chunks/TableExportContextInstance.es.js";
|
|
26
27
|
import "@module-federation/enhanced/runtime";
|
|
28
|
+
import "@ynput/ayon-addon/host";
|
|
27
29
|
import "semver";
|
|
28
30
|
import { u as He } from "./chunks/useCreateContextMenu.es.js";
|
|
29
31
|
import "react-dom";
|
|
30
32
|
import "react-redux";
|
|
31
33
|
import "react-router-dom";
|
|
34
|
+
import "@ynput/ayon-addon";
|
|
32
35
|
import { useVirtualizer as Oe } from "@tanstack/react-virtual";
|
|
33
|
-
import { useSensors as $e, useSensor as Ct, PointerSensor as Ne, KeyboardSensor as
|
|
34
|
-
import { restrictToHorizontalAxis as
|
|
36
|
+
import { useSensors as $e, useSensor as Ct, PointerSensor as Ne, KeyboardSensor as je, DndContext as xt, closestCenter as Dt, DragOverlay as Et, defaultDropAnimationSideEffects as Rt } from "@dnd-kit/core";
|
|
37
|
+
import { restrictToHorizontalAxis as Ke, restrictToVerticalAxis as We } from "@dnd-kit/modifiers";
|
|
35
38
|
import { useSortable as Ht, sortableKeyboardCoordinates as Pe, arrayMove as Fe, SortableContext as St, horizontalListSortingStrategy as Be, verticalListSortingStrategy as Ye } from "@dnd-kit/sortable";
|
|
36
39
|
import { CSS as Ot } from "@dnd-kit/utilities";
|
|
37
40
|
import v from "styled-components";
|
|
@@ -454,7 +457,7 @@ const It = v.tbody`
|
|
|
454
457
|
} catch {
|
|
455
458
|
return String(t);
|
|
456
459
|
}
|
|
457
|
-
},
|
|
460
|
+
}, jt = ({
|
|
458
461
|
value: t,
|
|
459
462
|
attributeData: e,
|
|
460
463
|
isEditing: n,
|
|
@@ -477,7 +480,7 @@ const It = v.tbody`
|
|
|
477
480
|
onChange: (l) => s(l)
|
|
478
481
|
}
|
|
479
482
|
);
|
|
480
|
-
}, Q = (t) => Nt(t.attributeData) ?
|
|
483
|
+
}, Q = (t) => Nt(t.attributeData) ? jt(t) : /* @__PURE__ */ a(
|
|
481
484
|
_e,
|
|
482
485
|
{
|
|
483
486
|
value: F(t.value),
|
|
@@ -514,7 +517,7 @@ const It = v.tbody`
|
|
|
514
517
|
isMidnightExclusive: e?.includes(t.columnId) ?? !1
|
|
515
518
|
}
|
|
516
519
|
);
|
|
517
|
-
}, Z = (t) => Nt(t.attributeData) ?
|
|
520
|
+
}, Z = (t) => Nt(t.attributeData) ? jt(t) : F(t.value), Tt = (t) => F(t.value), yn = {
|
|
518
521
|
string: Q,
|
|
519
522
|
integer: Q,
|
|
520
523
|
float: Q,
|
|
@@ -525,7 +528,7 @@ const It = v.tbody`
|
|
|
525
528
|
list_of_any: Z,
|
|
526
529
|
list_of_submodels: Tt,
|
|
527
530
|
dict: Tt
|
|
528
|
-
},
|
|
531
|
+
}, ko = () => yn, Kt = (t, e) => `list-table-cell-${t}-${e}`, vn = (t) => F(t), Vt = "editable", Cn = (t) => !!t && typeof t == "object" && "__listTablePlaceholder" in t, xn = ({
|
|
529
532
|
cell: t,
|
|
530
533
|
row: e,
|
|
531
534
|
rowIndex: n,
|
|
@@ -538,15 +541,15 @@ const It = v.tbody`
|
|
|
538
541
|
const l = r?.type;
|
|
539
542
|
if (!l || !i?.[l])
|
|
540
543
|
return null;
|
|
541
|
-
const
|
|
542
|
-
if (!
|
|
544
|
+
const E = i[l];
|
|
545
|
+
if (!E)
|
|
543
546
|
return null;
|
|
544
|
-
const
|
|
547
|
+
const R = t.column.id, c = Kt(e.id, R), d = {
|
|
545
548
|
row: e,
|
|
546
549
|
cell: t,
|
|
547
550
|
value: t.getValue(),
|
|
548
551
|
rowIndex: n,
|
|
549
|
-
columnId:
|
|
552
|
+
columnId: R,
|
|
550
553
|
cellId: c,
|
|
551
554
|
attributeData: r,
|
|
552
555
|
isEditing: u.editingCellId === c,
|
|
@@ -554,13 +557,13 @@ const It = v.tbody`
|
|
|
554
557
|
startEditing: () => u.startEditingCell(c),
|
|
555
558
|
stopEditing: u.stopEditingCell,
|
|
556
559
|
updateValue: (C) => {
|
|
557
|
-
s.onUpdateRow(
|
|
560
|
+
s.onUpdateRow(R, C, e.id), u.stopEditingCell();
|
|
558
561
|
},
|
|
559
562
|
openViewer: () => s.onOpenViewer?.(e.original),
|
|
560
563
|
getDraftValue: u.getDraftValue,
|
|
561
564
|
setDraftValue: u.setDraftValue
|
|
562
565
|
};
|
|
563
|
-
return
|
|
566
|
+
return E(d);
|
|
564
567
|
}, Wt = ({
|
|
565
568
|
row: t,
|
|
566
569
|
cellWrapper: e,
|
|
@@ -581,8 +584,8 @@ const It = v.tbody`
|
|
|
581
584
|
}
|
|
582
585
|
) }, `${t.id}-placeholder`);
|
|
583
586
|
}
|
|
584
|
-
return /* @__PURE__ */ a(De, { children: t.getVisibleCells().map((l,
|
|
585
|
-
const c =
|
|
587
|
+
return /* @__PURE__ */ a(De, { children: t.getVisibleCells().map((l, E, R) => {
|
|
588
|
+
const c = Kt(t.id, l.column.id), d = n?.[l.column.id], C = !!l.column.columnDef.meta?.listTableCustomCell, g = d?.type, f = !!g && !C, h = !!(g && r?.[g]), b = i.editingCellId === c, x = s && l.column.columnDef.meta?.editable !== !1, T = !f || m ? null : xn({
|
|
586
589
|
cell: l,
|
|
587
590
|
row: t,
|
|
588
591
|
rowIndex: t.index,
|
|
@@ -607,8 +610,8 @@ const It = v.tbody`
|
|
|
607
610
|
id: c,
|
|
608
611
|
style: {
|
|
609
612
|
width: `calc(var(--col-${l.column.id}-size) * 1px)`,
|
|
610
|
-
paddingRight:
|
|
611
|
-
flexGrow:
|
|
613
|
+
paddingRight: E === R.length - 1 ? "var(--padding-m)" : void 0,
|
|
614
|
+
flexGrow: E === R.length - 1 ? 1 : void 0
|
|
612
615
|
},
|
|
613
616
|
onDoubleClick: S ? (w) => {
|
|
614
617
|
w.stopPropagation(), i.startEditingCell(c);
|
|
@@ -629,7 +632,7 @@ const It = v.tbody`
|
|
|
629
632
|
{
|
|
630
633
|
className: "inner-td",
|
|
631
634
|
style: {
|
|
632
|
-
left:
|
|
635
|
+
left: E === 0 ? `calc(var(--padding-m) + ${t.depth * 16}px)` : void 0
|
|
633
636
|
},
|
|
634
637
|
children: y
|
|
635
638
|
}
|
|
@@ -644,8 +647,8 @@ const It = v.tbody`
|
|
|
644
647
|
if (n === -1) return null;
|
|
645
648
|
const r = e.slice(0, n), i = Number(e.slice(n + 2));
|
|
646
649
|
return Number.isNaN(i) ? null : { baseColumnId: r, level: i };
|
|
647
|
-
},
|
|
648
|
-
function
|
|
650
|
+
}, En = (t) => !!t && typeof t == "object" && ("label" in t || "value" in t), P = (t) => !!t && typeof t == "object" && "__listTableGroup" in t;
|
|
651
|
+
function Rn(t, e) {
|
|
649
652
|
return e == null ? "(None)" : typeof e == "boolean" ? t === "active" ? e ? "Active" : "Inactive" : t === "library" ? e ? "Library" : "Standard" : e ? "Yes" : "No" : String(e);
|
|
650
653
|
}
|
|
651
654
|
function Sn({
|
|
@@ -659,7 +662,7 @@ function Sn({
|
|
|
659
662
|
virtualStart: m,
|
|
660
663
|
onContextMenu: l
|
|
661
664
|
}) {
|
|
662
|
-
const
|
|
665
|
+
const R = Dn(t)?.baseColumnId ?? t, c = En(e) ? e : void 0, d = c?.value ?? e, C = c?.label ?? Rn(R, d);
|
|
663
666
|
return /* @__PURE__ */ a(
|
|
664
667
|
$t,
|
|
665
668
|
{
|
|
@@ -707,8 +710,8 @@ function wn({
|
|
|
707
710
|
onRowContextMenu: s,
|
|
708
711
|
cellWrapper: m,
|
|
709
712
|
columnAttributeData: l,
|
|
710
|
-
dataTypeWidgets:
|
|
711
|
-
editingState:
|
|
713
|
+
dataTypeWidgets: E,
|
|
714
|
+
editingState: R,
|
|
712
715
|
callbacks: c,
|
|
713
716
|
editable: d,
|
|
714
717
|
isInactive: C
|
|
@@ -761,8 +764,8 @@ function wn({
|
|
|
761
764
|
row: t,
|
|
762
765
|
cellWrapper: m,
|
|
763
766
|
columnAttributeData: l,
|
|
764
|
-
dataTypeWidgets:
|
|
765
|
-
editingState:
|
|
767
|
+
dataTypeWidgets: E,
|
|
768
|
+
editingState: R,
|
|
766
769
|
callbacks: c,
|
|
767
770
|
editable: d
|
|
768
771
|
}
|
|
@@ -779,7 +782,7 @@ function In({
|
|
|
779
782
|
enableColumnResizing: i = !1,
|
|
780
783
|
isLast: u = !1
|
|
781
784
|
}) {
|
|
782
|
-
const { attributes: s, listeners: m, setNodeRef: l, isDragging:
|
|
785
|
+
const { attributes: s, listeners: m, setNodeRef: l, isDragging: E, transform: R, transition: c } = Ht({
|
|
783
786
|
id: t.id,
|
|
784
787
|
data: { type: "column" },
|
|
785
788
|
disabled: !e
|
|
@@ -817,13 +820,13 @@ function In({
|
|
|
817
820
|
ref: l,
|
|
818
821
|
style: {
|
|
819
822
|
width: `calc(var(--header-${t.id}-size) * 1px)`,
|
|
820
|
-
transform: Ot.Transform.toString(
|
|
823
|
+
transform: Ot.Transform.toString(R) ?? void 0,
|
|
821
824
|
transition: c,
|
|
822
825
|
flexGrow: u ? 1 : void 0
|
|
823
826
|
},
|
|
824
827
|
className: A({
|
|
825
828
|
grab: e,
|
|
826
|
-
dragging:
|
|
829
|
+
dragging: E,
|
|
827
830
|
"menu-open": b,
|
|
828
831
|
resizing: $,
|
|
829
832
|
sorted: !!g
|
|
@@ -887,7 +890,7 @@ function Vn({
|
|
|
887
890
|
rowVirtualizer: i,
|
|
888
891
|
tableContainerRef: u
|
|
889
892
|
}) {
|
|
890
|
-
const [s, m] = L(-1), l = At(-1),
|
|
893
|
+
const [s, m] = L(-1), l = At(-1), E = O(
|
|
891
894
|
(c, d, C) => {
|
|
892
895
|
const g = t[d];
|
|
893
896
|
if (!(g && W(g))) {
|
|
@@ -899,7 +902,7 @@ function Vn({
|
|
|
899
902
|
}
|
|
900
903
|
},
|
|
901
904
|
[e, t, n, r, u]
|
|
902
|
-
),
|
|
905
|
+
), R = O(
|
|
903
906
|
(c) => {
|
|
904
907
|
if (c.key !== "ArrowDown" && c.key !== "ArrowUp") return;
|
|
905
908
|
c.preventDefault();
|
|
@@ -929,7 +932,7 @@ function Vn({
|
|
|
929
932
|
},
|
|
930
933
|
[s, t, e, n, i]
|
|
931
934
|
);
|
|
932
|
-
return { activeRowIndex: s, handleRowClick:
|
|
935
|
+
return { activeRowIndex: s, handleRowClick: E, handleKeyDown: R };
|
|
933
936
|
}
|
|
934
937
|
function _n() {
|
|
935
938
|
const [t, e] = L(null), [n, r] = L(null), i = O((m) => {
|
|
@@ -959,7 +962,7 @@ function kn({
|
|
|
959
962
|
return {
|
|
960
963
|
sensors: $e(
|
|
961
964
|
Ct(Ne),
|
|
962
|
-
Ct(
|
|
965
|
+
Ct(je, { coordinateGetter: Pe })
|
|
963
966
|
),
|
|
964
967
|
activeRowId: u,
|
|
965
968
|
activeColumnId: m,
|
|
@@ -1002,7 +1005,7 @@ function Ln(t) {
|
|
|
1002
1005
|
}, [n, e]);
|
|
1003
1006
|
}
|
|
1004
1007
|
const Gn = (t) => t ? Array.isArray(t) ? t.filter(Boolean) : [t] : [];
|
|
1005
|
-
function
|
|
1008
|
+
function Lo({
|
|
1006
1009
|
data: t,
|
|
1007
1010
|
columns: e,
|
|
1008
1011
|
getRowId: n,
|
|
@@ -1012,8 +1015,8 @@ function Vo({
|
|
|
1012
1015
|
onUpdateRow: s,
|
|
1013
1016
|
onOpenViewer: m,
|
|
1014
1017
|
editable: l = !0,
|
|
1015
|
-
onReorderRows:
|
|
1016
|
-
rowContextMenuBuilders:
|
|
1018
|
+
onReorderRows: E,
|
|
1019
|
+
rowContextMenuBuilders: R = [],
|
|
1017
1020
|
onRowDoubleClick: c,
|
|
1018
1021
|
selectedRows: d = [],
|
|
1019
1022
|
onSelectedRowsChange: C,
|
|
@@ -1066,7 +1069,7 @@ function Vo({
|
|
|
1066
1069
|
}, [U, w, e]), lt = $ ?? ee, le = (o) => {
|
|
1067
1070
|
const p = typeof o == "function" ? o(lt) : o;
|
|
1068
1071
|
ne(p), B?.(p);
|
|
1069
|
-
}, { columnOrder: dt, setColumnOrder: ct } = Tn(e, T), N =
|
|
1072
|
+
}, { columnOrder: dt, setColumnOrder: ct } = Tn(e, T), N = Ee({
|
|
1070
1073
|
data: t,
|
|
1071
1074
|
columns: e,
|
|
1072
1075
|
getRowId: n,
|
|
@@ -1089,7 +1092,7 @@ function Vo({
|
|
|
1089
1092
|
columnResizeMode: "onEnd",
|
|
1090
1093
|
getCoreRowModel: we(),
|
|
1091
1094
|
getExpandedRowModel: Se(),
|
|
1092
|
-
getSortedRowModel:
|
|
1095
|
+
getSortedRowModel: Re(),
|
|
1093
1096
|
getSubRows: (o) => o.subRows,
|
|
1094
1097
|
getRowCanExpand: (o) => o.subRows.length > 0,
|
|
1095
1098
|
meta: {
|
|
@@ -1127,16 +1130,16 @@ function Vo({
|
|
|
1127
1130
|
const G = P(I.original);
|
|
1128
1131
|
let ht = {};
|
|
1129
1132
|
if (G) {
|
|
1130
|
-
const
|
|
1133
|
+
const K = I.original;
|
|
1131
1134
|
ht = {
|
|
1132
|
-
groupColumnId:
|
|
1133
|
-
groupValue:
|
|
1135
|
+
groupColumnId: K.__groupColumnId,
|
|
1136
|
+
groupValue: K.__groupValue
|
|
1134
1137
|
};
|
|
1135
1138
|
}
|
|
1136
1139
|
D.preventDefault(), D.stopPropagation();
|
|
1137
|
-
const bt = d.includes(o), xe = G || bt ? d : [o], yt =
|
|
1138
|
-
(
|
|
1139
|
-
|
|
1140
|
+
const bt = d.includes(o), xe = G || bt ? d : [o], yt = R.flatMap(
|
|
1141
|
+
(K) => Gn(
|
|
1142
|
+
K(D, {
|
|
1140
1143
|
rowId: o,
|
|
1141
1144
|
rowIndex: p,
|
|
1142
1145
|
row: I,
|
|
@@ -1149,7 +1152,7 @@ function Vo({
|
|
|
1149
1152
|
);
|
|
1150
1153
|
yt.length > 0 && it(D, yt);
|
|
1151
1154
|
},
|
|
1152
|
-
[
|
|
1155
|
+
[R, _, d, it]
|
|
1153
1156
|
), { editingState: ut } = _n(), {
|
|
1154
1157
|
sensors: gt,
|
|
1155
1158
|
activeRowId: pt,
|
|
@@ -1160,12 +1163,12 @@ function Vo({
|
|
|
1160
1163
|
handleRowDragStart: he,
|
|
1161
1164
|
handleRowDragEnd: be,
|
|
1162
1165
|
handleRowDragCancel: ye
|
|
1163
|
-
} = kn({ rows: _, columnOrder: dt, onReorderRows:
|
|
1166
|
+
} = kn({ rows: _, columnOrder: dt, onReorderRows: E, setColumnOrder: ct, onColumnOrderChange: z }), ft = tt(() => ({ onUpdateRow: s, onOpenViewer: m }), [s, m]), ve = Ln(N), Ce = !!N.getState().columnSizingInfo.isResizingColumn;
|
|
1164
1167
|
Mt(() => {
|
|
1165
1168
|
const [o] = X.slice(-1);
|
|
1166
1169
|
o && o.index >= _.length - 1 && i && !u && r?.();
|
|
1167
1170
|
}, [i, r, _.length, u, X]);
|
|
1168
|
-
const q = pt ? _.find((o) => o.id === pt) : null,
|
|
1171
|
+
const q = pt ? _.find((o) => o.id === pt) : null, j = mt ? N.getHeaderGroups()[0]?.headers.find((o) => o.id === mt) : null;
|
|
1169
1172
|
return /* @__PURE__ */ a(
|
|
1170
1173
|
Ze,
|
|
1171
1174
|
{
|
|
@@ -1182,7 +1185,7 @@ function Vo({
|
|
|
1182
1185
|
onDragStart: pe,
|
|
1183
1186
|
onDragEnd: me,
|
|
1184
1187
|
onDragCancel: fe,
|
|
1185
|
-
modifiers: [
|
|
1188
|
+
modifiers: [Ke],
|
|
1186
1189
|
children: [
|
|
1187
1190
|
/* @__PURE__ */ a(en, { children: N.getHeaderGroups().map((o) => /* @__PURE__ */ a(nn, { children: /* @__PURE__ */ a(
|
|
1188
1191
|
St,
|
|
@@ -1204,16 +1207,16 @@ function Vo({
|
|
|
1204
1207
|
}
|
|
1205
1208
|
) }, o.id)) }),
|
|
1206
1209
|
/* @__PURE__ */ a(
|
|
1207
|
-
|
|
1210
|
+
Et,
|
|
1208
1211
|
{
|
|
1209
1212
|
dropAnimation: {
|
|
1210
|
-
sideEffects:
|
|
1213
|
+
sideEffects: Rt({
|
|
1211
1214
|
styles: { active: { opacity: "0.4" } }
|
|
1212
1215
|
})
|
|
1213
1216
|
},
|
|
1214
|
-
children:
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
+
children: j ? /* @__PURE__ */ a("table", { children: /* @__PURE__ */ a("thead", { children: /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a(gn, { style: { width: j.getSize() }, children: j.isPlaceholder ? null : nt(
|
|
1218
|
+
j.column.columnDef.header,
|
|
1219
|
+
j.getContext()
|
|
1217
1220
|
) }) }) }) }) : null
|
|
1218
1221
|
}
|
|
1219
1222
|
)
|
|
@@ -1255,7 +1258,7 @@ function Vo({
|
|
|
1255
1258
|
rowIndex: o.index,
|
|
1256
1259
|
onRowClick: de,
|
|
1257
1260
|
onRowDoubleClick: c ? ue : void 0,
|
|
1258
|
-
onRowContextMenu:
|
|
1261
|
+
onRowContextMenu: R.length > 0 ? ge : void 0,
|
|
1259
1262
|
cellWrapper: f,
|
|
1260
1263
|
columnAttributeData: h,
|
|
1261
1264
|
dataTypeWidgets: b,
|
|
@@ -1270,10 +1273,10 @@ function Vo({
|
|
|
1270
1273
|
}
|
|
1271
1274
|
) }),
|
|
1272
1275
|
/* @__PURE__ */ a(
|
|
1273
|
-
|
|
1276
|
+
Et,
|
|
1274
1277
|
{
|
|
1275
1278
|
dropAnimation: {
|
|
1276
|
-
sideEffects:
|
|
1279
|
+
sideEffects: Rt({
|
|
1277
1280
|
styles: { active: { opacity: "0.4" } }
|
|
1278
1281
|
})
|
|
1279
1282
|
},
|
|
@@ -1317,15 +1320,15 @@ const Pt = (t) => !!t && typeof t == "object" && ("label" in t || "value" in t),
|
|
|
1317
1320
|
}), n.forEach((i) => {
|
|
1318
1321
|
i.subRows = Ft(i.subRows, e);
|
|
1319
1322
|
}), [...n, ...r];
|
|
1320
|
-
},
|
|
1321
|
-
const s = [], m = (l,
|
|
1322
|
-
if (!
|
|
1323
|
-
l.push(
|
|
1323
|
+
}, Go = (t, e, n, r, i, u) => {
|
|
1324
|
+
const s = [], m = (l, E, R, c) => {
|
|
1325
|
+
if (!R.length) {
|
|
1326
|
+
l.push(E);
|
|
1324
1327
|
return;
|
|
1325
1328
|
}
|
|
1326
|
-
const [d, ...C] =
|
|
1329
|
+
const [d, ...C] = R, g = r(d, E) ?? [u(E, d)];
|
|
1327
1330
|
if (!g.length) {
|
|
1328
|
-
m(l,
|
|
1331
|
+
m(l, E, C, c);
|
|
1329
1332
|
return;
|
|
1330
1333
|
}
|
|
1331
1334
|
const f = (h, b, x) => {
|
|
@@ -1337,20 +1340,20 @@ const Pt = (t) => !!t && typeof t == "object" && ("label" in t || "value" in t),
|
|
|
1337
1340
|
f(S.subRows, b + 1, y);
|
|
1338
1341
|
return;
|
|
1339
1342
|
}
|
|
1340
|
-
m(S.subRows,
|
|
1343
|
+
m(S.subRows, E, C, y);
|
|
1341
1344
|
};
|
|
1342
1345
|
f(l, 0, c);
|
|
1343
1346
|
};
|
|
1344
1347
|
return t.forEach((l) => m(s, l, e, "root")), Ft(s, n);
|
|
1345
1348
|
};
|
|
1346
1349
|
export {
|
|
1347
|
-
|
|
1348
|
-
|
|
1350
|
+
Lo as ListTable,
|
|
1351
|
+
Go as buildGroupedData,
|
|
1349
1352
|
An as compareGroupingPathItems,
|
|
1350
1353
|
yn as defaultListTableDataTypeWidgets,
|
|
1351
|
-
|
|
1354
|
+
ko as getDefaultListTableDataTypeWidgets,
|
|
1352
1355
|
Mn as getGroupItemValue,
|
|
1353
|
-
|
|
1356
|
+
Kt as getListTableCellId,
|
|
1354
1357
|
Pt as isListTableGroupDisplayObject,
|
|
1355
1358
|
et as isListTableGroupRow,
|
|
1356
1359
|
vn as renderListTableFallbackValue
|
package/dist/NewEntity.es.js
CHANGED
|
@@ -6,8 +6,10 @@ import { toast as me } from "react-toastify";
|
|
|
6
6
|
import { g as Xe, R as Me } from "./chunks/realtimeUpdatesUtils.es.js";
|
|
7
7
|
import { p as be, c as Ze, a as Ge } from "./chunks/iconUtils.es.js";
|
|
8
8
|
import { bt as Qe } from "./chunks/searchTerms.es.js";
|
|
9
|
+
import "axios";
|
|
9
10
|
import { dw as Ye } from "./chunks/getUris.es.js";
|
|
10
11
|
import "@module-federation/enhanced/runtime";
|
|
12
|
+
import "@ynput/ayon-addon/host";
|
|
11
13
|
import { Dropdown as De, Icon as Q, InputText as he, Button as fe, InputSwitch as Te, InputNumber as je, Spacer as $e, theme as qe, Dialog as et, ShortcutTag as tt, Toolbar as nt, SaveButton as at } from "@ynput/ayon-react-components";
|
|
12
14
|
import { x as Ne, y as ze, M as rt } from "./chunks/TableExportContextInstance.es.js";
|
|
13
15
|
import "semver";
|
|
@@ -17,7 +19,7 @@ import "uuid";
|
|
|
17
19
|
import "react-dom";
|
|
18
20
|
import "react-redux";
|
|
19
21
|
import "react-router-dom";
|
|
20
|
-
import { g as ot,
|
|
22
|
+
import { g as ot, e as st, C as lt, h as it, i as ct, p as dt } from "./chunks/MetaWidget.es.js";
|
|
21
23
|
import { N as pt, u as ft } from "./chunks/NewEntityContextInstance.es.js";
|
|
22
24
|
import E from "styled-components";
|
|
23
25
|
import { a as ut, K as mt } from "./chunks/platform.es.js";
|
|
@@ -36,6 +38,7 @@ import "@lexical/react/LexicalDecoratorBlockNode";
|
|
|
36
38
|
import { u as ht } from "./chunks/useHierarchySelection.es.js";
|
|
37
39
|
import { n as te } from "./chunks/entityDefinitions.es.js";
|
|
38
40
|
import "@tanstack/react-table";
|
|
41
|
+
import "@ynput/ayon-addon";
|
|
39
42
|
const Ee = (i, m, u) => {
|
|
40
43
|
const c = i.match(/\d+$/), w = m.match(/\d+$/), h = c ? parseInt(c[0], 10) : NaN, D = (w ? parseInt(w[0], 10) : NaN) - h;
|
|
41
44
|
if (isNaN(D)) return [];
|
|
@@ -53,7 +56,7 @@ const Ee = (i, m, u) => {
|
|
|
53
56
|
(w) => w.name === m
|
|
54
57
|
);
|
|
55
58
|
return c ? c.name : "";
|
|
56
|
-
},
|
|
59
|
+
}, kn = ({ children: i }) => {
|
|
57
60
|
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(), 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
61
|
active: !1,
|
|
59
62
|
increment: "",
|
|
@@ -950,7 +953,7 @@ const Ct = ({
|
|
|
950
953
|
&.disabled {
|
|
951
954
|
opacity: 0.5;
|
|
952
955
|
}
|
|
953
|
-
`,
|
|
956
|
+
`, Sn = ({
|
|
954
957
|
disabled: i,
|
|
955
958
|
onNewEntities: m,
|
|
956
959
|
showButton: u = !0,
|
|
@@ -1250,10 +1253,10 @@ export {
|
|
|
1250
1253
|
we as InputLabel,
|
|
1251
1254
|
Oe as InputsContainer,
|
|
1252
1255
|
Nt as NameRow,
|
|
1253
|
-
|
|
1256
|
+
Sn as NewEntity,
|
|
1254
1257
|
pt as NewEntityContext,
|
|
1255
1258
|
Dt as NewEntityForm,
|
|
1256
|
-
|
|
1259
|
+
kn as NewEntityProvider,
|
|
1257
1260
|
yt as generateLabel,
|
|
1258
1261
|
te as newEntityDefinitions,
|
|
1259
1262
|
ft as useNewEntityContext
|