@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
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
function
|
|
1
|
+
import { p as A, s as L, R as T, D as b } from "./realtimeUpdatesUtils.es.js";
|
|
2
|
+
const O = /* @__PURE__ */ new Set([T, b]);
|
|
3
|
+
function I(t) {
|
|
4
4
|
const {
|
|
5
5
|
columns: e = [],
|
|
6
|
-
groupBy:
|
|
6
|
+
groupBy: s,
|
|
7
7
|
groupSortByDesc: n,
|
|
8
8
|
showEmptyGroups: i,
|
|
9
9
|
sortBy: o,
|
|
10
|
-
sortDesc:
|
|
10
|
+
sortDesc: d,
|
|
11
11
|
rowHeight: c
|
|
12
|
-
} = t || {},
|
|
12
|
+
} = t || {}, y = {}, a = { left: [], right: [] }, u = [], p = {}, l = {}, h = {}, S = {};
|
|
13
13
|
e.forEach((m) => {
|
|
14
|
-
const { name: f, visible:
|
|
15
|
-
|
|
14
|
+
const { name: f, visible: D, pinned: _, width: w, summary: E, summaryScope: v, summaryFormat: B } = m;
|
|
15
|
+
O.has(f) || (y[f] = D ?? !1, u.push(f), _ && a.left?.push(f), w !== void 0 && (p[f] = w), E && (l[f] = E), v && (h[f] = v), B && (S[f] = B));
|
|
16
16
|
});
|
|
17
|
-
const C = o
|
|
18
|
-
let
|
|
19
|
-
if (typeof
|
|
20
|
-
|
|
21
|
-
else if (Array.isArray(
|
|
22
|
-
const m =
|
|
23
|
-
m ?
|
|
17
|
+
const C = A(o, d);
|
|
18
|
+
let r;
|
|
19
|
+
if (typeof s == "string" && s.length > 0)
|
|
20
|
+
r = { id: s, desc: n ?? !1 };
|
|
21
|
+
else if (Array.isArray(s)) {
|
|
22
|
+
const m = s.find((f) => typeof f == "string" && f.length > 0);
|
|
23
|
+
m ? r = { id: m, desc: n ?? !1 } : r = void 0;
|
|
24
24
|
} else
|
|
25
|
-
|
|
25
|
+
r = void 0;
|
|
26
26
|
return {
|
|
27
|
-
columnVisibility:
|
|
28
|
-
columnPinning:
|
|
29
|
-
columnOrder:
|
|
30
|
-
columnSizing:
|
|
31
|
-
columnSummaries:
|
|
32
|
-
columnSummaryScopes:
|
|
27
|
+
columnVisibility: y,
|
|
28
|
+
columnPinning: a,
|
|
29
|
+
columnOrder: u,
|
|
30
|
+
columnSizing: p,
|
|
31
|
+
columnSummaries: l,
|
|
32
|
+
columnSummaryScopes: h,
|
|
33
33
|
columnSummaryFormats: S,
|
|
34
34
|
sorting: C,
|
|
35
|
-
groupBy:
|
|
35
|
+
groupBy: r,
|
|
36
36
|
groupByConfig: {
|
|
37
37
|
showEmpty: i ?? !0,
|
|
38
38
|
entityType: ""
|
|
@@ -40,74 +40,68 @@ function k(t) {
|
|
|
40
40
|
rowHeight: c ?? 34
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
function
|
|
43
|
+
function H(t, e, s) {
|
|
44
44
|
const n = [...t], i = e.filter(
|
|
45
|
-
(o) => !t.includes(o) &&
|
|
45
|
+
(o) => !t.includes(o) && s.has(o)
|
|
46
46
|
);
|
|
47
47
|
return [...n, ...i];
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function R(t, e, s, n) {
|
|
50
50
|
const i = /* @__PURE__ */ new Set();
|
|
51
|
-
return Object.keys(t).forEach((o) => i.add(o)), Object.keys(e).forEach((o) => i.add(o)),
|
|
51
|
+
return Object.keys(t).forEach((o) => i.add(o)), Object.keys(e).forEach((o) => i.add(o)), s.left?.forEach((o) => i.add(o)), s.right?.forEach((o) => i.add(o)), n?.forEach((o) => i.add(o)), i;
|
|
52
52
|
}
|
|
53
|
-
function
|
|
53
|
+
function k(t, e, s, n, i, o, d) {
|
|
54
54
|
const c = {
|
|
55
55
|
name: t,
|
|
56
56
|
visible: !!e[t]
|
|
57
57
|
};
|
|
58
|
-
i[t] && (c.summary = i[t]), o[t] && (c.summaryScope = o[t]),
|
|
59
|
-
const
|
|
60
|
-
return (
|
|
58
|
+
i[t] && (c.summary = i[t]), o[t] && (c.summaryScope = o[t]), d[t] && (c.summaryFormat = d[t]), e.hasOwnProperty(t) && (c.visible = e[t]);
|
|
59
|
+
const y = s.left?.includes(t), a = s.right?.includes(t);
|
|
60
|
+
return (y || a) && (c.pinned = !0), n[t] !== void 0 && (c.width = n[t]), c;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function W(t, e) {
|
|
63
63
|
const {
|
|
64
|
-
columnVisibility:
|
|
64
|
+
columnVisibility: s,
|
|
65
65
|
columnPinning: n,
|
|
66
66
|
columnOrder: i,
|
|
67
67
|
columnSizing: o,
|
|
68
|
-
columnSummaries:
|
|
68
|
+
columnSummaries: d = {},
|
|
69
69
|
columnSummaryScopes: c = {},
|
|
70
|
-
columnSummaryFormats:
|
|
71
|
-
sorting:
|
|
72
|
-
groupBy:
|
|
73
|
-
groupByConfig:
|
|
74
|
-
rowHeight:
|
|
75
|
-
} = t,
|
|
76
|
-
|
|
70
|
+
columnSummaryFormats: y = {},
|
|
71
|
+
sorting: a,
|
|
72
|
+
groupBy: u,
|
|
73
|
+
groupByConfig: p,
|
|
74
|
+
rowHeight: l
|
|
75
|
+
} = t, h = R(
|
|
76
|
+
s,
|
|
77
77
|
o,
|
|
78
78
|
n,
|
|
79
79
|
e || []
|
|
80
|
-
),
|
|
81
|
-
columns:
|
|
80
|
+
), r = {
|
|
81
|
+
columns: H(
|
|
82
82
|
i,
|
|
83
83
|
e || [],
|
|
84
|
-
|
|
85
|
-
).filter((
|
|
86
|
-
(
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
h
|
|
85
|
+
).filter((g) => !O.has(g)).map(
|
|
86
|
+
(g) => k(
|
|
87
|
+
g,
|
|
88
|
+
s,
|
|
89
89
|
n,
|
|
90
90
|
o,
|
|
91
|
-
|
|
91
|
+
d,
|
|
92
92
|
c,
|
|
93
|
-
|
|
93
|
+
y
|
|
94
94
|
)
|
|
95
95
|
)
|
|
96
96
|
};
|
|
97
|
-
if (
|
|
98
|
-
const
|
|
99
|
-
|
|
97
|
+
if (u) {
|
|
98
|
+
const g = Array.isArray(u.id) ? u.id[0] : u.id;
|
|
99
|
+
r.groupBy = g || void 0, r.groupSortByDesc = u.desc ?? !1;
|
|
100
100
|
} else
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
if (u.length > 0) {
|
|
104
|
-
const d = u[0];
|
|
105
|
-
s.sortBy = d.id, s.sortDesc = d.desc;
|
|
106
|
-
} else
|
|
107
|
-
s.sortBy = void 0, s.sortDesc = void 0;
|
|
108
|
-
return h !== void 0 && (s.rowHeight = h), s;
|
|
101
|
+
r.groupBy = void 0, r.groupSortByDesc = void 0;
|
|
102
|
+
return p?.showEmpty !== void 0 && (r.showEmptyGroups = p.showEmpty), a && (r.sortBy = L(a), r.sortDesc = void 0), l !== void 0 && (r.rowHeight = l), r;
|
|
109
103
|
}
|
|
110
104
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
W as a,
|
|
106
|
+
I as c
|
|
113
107
|
};
|