@ynput/ayon-frontend-shared 0.6.4 → 0.6.6
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 +2018 -2006
- 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 +1742 -1734
- package/dist/chunks/Menu.es.js +168 -166
- package/dist/chunks/MenuItem.es.js +112 -77
- 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/SimpleForm.es.js +78 -75
- 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 +1014 -960
- package/dist/chunks/iconUtils.es.js +151 -0
- package/dist/chunks/queryFilterToClientFilter.es.js +90 -81
- package/dist/chunks/realtimeUpdatesUtils.es.js +113 -80
- package/dist/chunks/searchTerms.es.js +332 -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 +2 -2
- package/dist/types/ListTable.d.ts +1 -1
- package/dist/types/ProjectTreeTable.d.ts +7 -6
- package/dist/types/SimpleTable.d.ts +1 -1
- package/dist/types/Slicer.d.ts +6 -6
- package/dist/types/Views.d.ts +6 -6
- package/dist/types/api.d.ts +554 -176
- package/dist/types/components.d.ts +73 -11
- package/dist/types/context.d.ts +7 -7
- package/dist/types/util.d.ts +238 -3
- 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/chunks/Slicer.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as E, jsxs as G, Fragment as $e } from "react/jsx-runtime";
|
|
2
2
|
import { useState as U, useCallback as A, useMemo as O, useContext as Ye, useEffect as se, forwardRef as Je, useRef as ye, useId as Xe, useImperativeHandle as Ze, useLayoutEffect as Te } from "react";
|
|
3
3
|
import { Splitter as et, SplitterPanel as tt } from "primereact/splitter";
|
|
4
|
-
import
|
|
4
|
+
import H from "styled-components";
|
|
5
5
|
import { h as nt, P as st, d as Ie, U as ze } from "./MetaWidget.es.js";
|
|
6
6
|
import "@module-federation/enhanced/runtime";
|
|
7
7
|
import { bi as Re, br as ot, bj as Ue, bp as at, bu as it } from "./searchTerms.es.js";
|
|
8
|
-
import {
|
|
8
|
+
import { dn as He, cH as rt, bU as lt, bz as ct } from "./getUris.es.js";
|
|
9
9
|
import "primereact/confirmdialog";
|
|
10
|
-
import { q as
|
|
10
|
+
import { q as Ve, y as Ce, x as ue, d as dt, a as we, v as ut, a5 as pt, a4 as ft, u as mt, ac as ht } from "./DeleteEntitiesContextInstance.es.js";
|
|
11
11
|
import "lodash";
|
|
12
12
|
import { toast as ke } from "react-toastify";
|
|
13
13
|
import "uuid";
|
|
@@ -30,11 +30,10 @@ import "@lexical/list";
|
|
|
30
30
|
import "@lexical/rich-text";
|
|
31
31
|
import "@lexical/selection";
|
|
32
32
|
import "@lexical/utils";
|
|
33
|
-
import "react-router-dom";
|
|
34
33
|
import "@tanstack/react-table";
|
|
35
34
|
import { b as he, H as vt, a as xt, e as It, S as Ct } from "./SimpleTable.es.js";
|
|
36
35
|
import { g as ge } from "./getEntityTypeIcon.es.js";
|
|
37
|
-
import { g as wt } from "./
|
|
36
|
+
import { g as wt } from "./iconUtils.es.js";
|
|
38
37
|
import { u as Lt, a as Et } from "./useAttributeEnums.es.js";
|
|
39
38
|
import { b as Dt, s as Rt } from "./buildHierarchicalTableRows.es.js";
|
|
40
39
|
import { n as me } from "./entityDefinitions.es.js";
|
|
@@ -54,7 +53,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
54
53
|
if (!b) return e;
|
|
55
54
|
const f = u - a;
|
|
56
55
|
return e.map((p, h) => p - f * (m[h] / b));
|
|
57
|
-
},
|
|
56
|
+
}, jt = (e, t, a = [], r = 0, u = At) => {
|
|
58
57
|
if (!t.length)
|
|
59
58
|
return { heights: [], mins: [], sizes: [], minSize: 2, height: r };
|
|
60
59
|
const l = t.filter((g) => !a.includes(g)).length, m = (t.length - l) * Ge, b = r && l ? Math.min(
|
|
@@ -74,7 +73,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
74
73
|
minSize: 2,
|
|
75
74
|
height: d
|
|
76
75
|
};
|
|
77
|
-
},
|
|
76
|
+
}, Ft = (e, t, a) => {
|
|
78
77
|
const r = e.map((f, p) => Math.max(f / 100 * t, a[p])), u = Math.max(
|
|
79
78
|
t,
|
|
80
79
|
a.reduce((f, p) => f + p, 0)
|
|
@@ -85,8 +84,8 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
85
84
|
}, $t = "slicer-splitter", Me = {
|
|
86
85
|
minSize: 2,
|
|
87
86
|
size: 12
|
|
88
|
-
},
|
|
89
|
-
const [e, t] =
|
|
87
|
+
}, rs = () => {
|
|
88
|
+
const [e, t] = Ve($t, [
|
|
90
89
|
Me.size,
|
|
91
90
|
100 - Me.size
|
|
92
91
|
]);
|
|
@@ -94,7 +93,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
94
93
|
t(r.sizes);
|
|
95
94
|
}];
|
|
96
95
|
}, zt = (e, t, a = [], r = 0) => {
|
|
97
|
-
const [u, l] =
|
|
96
|
+
const [u, l] = Ve(
|
|
98
97
|
`slicer-panel-heights-${e}`,
|
|
99
98
|
{}
|
|
100
99
|
), [m, b] = U(0), f = Array.isArray(u) ? {} : u, {
|
|
@@ -103,8 +102,8 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
103
102
|
minSize: w,
|
|
104
103
|
height: d,
|
|
105
104
|
heights: S
|
|
106
|
-
} =
|
|
107
|
-
const c =
|
|
105
|
+
} = jt(f, t, a, r), g = (i) => {
|
|
106
|
+
const c = Ft(i.sizes, d, h);
|
|
108
107
|
l({
|
|
109
108
|
...f,
|
|
110
109
|
...Object.fromEntries(
|
|
@@ -128,7 +127,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
128
127
|
onClose: a,
|
|
129
128
|
onMoveComplete: r
|
|
130
129
|
}) => {
|
|
131
|
-
const [u] =
|
|
130
|
+
const [u] = He(), l = nt(), { folders: m } = Ce(), b = l?.tableData || [], f = A(
|
|
132
131
|
(g) => l?.getEntityById(g) || m.find((i) => i.id === g),
|
|
133
132
|
[m, l]
|
|
134
133
|
), p = A(
|
|
@@ -248,7 +247,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
248
247
|
getDisabledMessage: d,
|
|
249
248
|
canMoveToRoot: S
|
|
250
249
|
};
|
|
251
|
-
},
|
|
250
|
+
}, Ht = ({
|
|
252
251
|
projectName: e,
|
|
253
252
|
movingEntities: t,
|
|
254
253
|
onClose: a,
|
|
@@ -275,7 +274,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
275
274
|
getDisabledMessage: b
|
|
276
275
|
}
|
|
277
276
|
) : null;
|
|
278
|
-
},
|
|
277
|
+
}, Vt = ({ projectName: e, useExtraSlices: t }) => {
|
|
279
278
|
const [a, { isLoading: r, isFetching: u }] = rt(), { formatAssignees: l } = t();
|
|
280
279
|
return {
|
|
281
280
|
getData: async () => {
|
|
@@ -369,7 +368,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
369
368
|
listId: n.id
|
|
370
369
|
}
|
|
371
370
|
}), c = (n) => n.sort((x, T) => {
|
|
372
|
-
const v = m.findIndex((
|
|
371
|
+
const v = m.findIndex((V) => V.id === x.id), D = m.findIndex((V) => V.id === T.id);
|
|
373
372
|
return v === -1 && D === -1 ? x.folder.label.localeCompare(T.folder.label) : v === -1 ? 1 : D === -1 ? -1 : v - D;
|
|
374
373
|
}), s = (n) => {
|
|
375
374
|
const x = n.items.map((T) => T.id);
|
|
@@ -525,7 +524,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
525
524
|
icon: wt(C.name, C.data.type, Ue(C.data))
|
|
526
525
|
})
|
|
527
526
|
);
|
|
528
|
-
const [T, v] = U(!1),
|
|
527
|
+
const [T, v] = U(!1), V = !!n.find((C) => C.name === o)?.enumIsLoading, {
|
|
529
528
|
project: oe,
|
|
530
529
|
getStatuses: ae,
|
|
531
530
|
getTypes: q,
|
|
@@ -541,14 +540,14 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
541
540
|
projectName: g || "",
|
|
542
541
|
folderTypes: oe?.folderTypes || [],
|
|
543
542
|
includeColors: !0
|
|
544
|
-
}), { getData: I, isLoading: R } =
|
|
543
|
+
}), { getData: I, isLoading: R } = Vt({
|
|
545
544
|
projectName: g,
|
|
546
545
|
useExtraSlices: h
|
|
547
546
|
}), {
|
|
548
547
|
getData: P,
|
|
549
548
|
isLoading: K,
|
|
550
549
|
isExpandable: re
|
|
551
|
-
} = qt(d === "entityList"),
|
|
550
|
+
} = qt(d === "entityList"), F = Y || B || R || w && d !== "hierarchy" || K && d === "entityList" || x || V, N = {
|
|
552
551
|
hierarchy: {
|
|
553
552
|
getData: Q,
|
|
554
553
|
isLoading: Y,
|
|
@@ -603,8 +602,8 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
603
602
|
(C) => N[C.value] && !t.includes(C.value)
|
|
604
603
|
)?.value;
|
|
605
604
|
se(() => {
|
|
606
|
-
|
|
607
|
-
}, [
|
|
605
|
+
F || $ || !ne || S(ne, !1);
|
|
606
|
+
}, [F, $, ne]);
|
|
608
607
|
const z = (C, k) => {
|
|
609
608
|
const _ = N[C];
|
|
610
609
|
if (!_) {
|
|
@@ -614,7 +613,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
614
613
|
(_.isAttribute && s || e.some((ce) => ce.value === C)) && S(C, k);
|
|
615
614
|
};
|
|
616
615
|
se(() => {
|
|
617
|
-
if (
|
|
616
|
+
if (F) return;
|
|
618
617
|
(async () => {
|
|
619
618
|
try {
|
|
620
619
|
if (!$) return;
|
|
@@ -634,12 +633,12 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
634
633
|
v(!1);
|
|
635
634
|
}
|
|
636
635
|
})();
|
|
637
|
-
}, [d, g,
|
|
638
|
-
const
|
|
636
|
+
}, [d, g, F, d === "hierarchy" ? te : null]);
|
|
637
|
+
const j = O(
|
|
639
638
|
() => Ke(le.data, r, u, l),
|
|
640
639
|
[le.data, r, u, l]
|
|
641
640
|
), Le = O(() => {
|
|
642
|
-
const C = /* @__PURE__ */ new Map(), k = [...
|
|
641
|
+
const C = /* @__PURE__ */ new Map(), k = [...j];
|
|
643
642
|
for (; k.length > 0; ) {
|
|
644
643
|
const _ = k.shift();
|
|
645
644
|
if (_ && (C.set(_.id, _), _.subRows && _.subRows.length > 0))
|
|
@@ -647,12 +646,12 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
647
646
|
k.push(ce);
|
|
648
647
|
}
|
|
649
648
|
return C;
|
|
650
|
-
}, [
|
|
649
|
+
}, [j]);
|
|
651
650
|
return {
|
|
652
651
|
sliceOptions: c,
|
|
653
|
-
table: { ...le, data:
|
|
652
|
+
table: { ...le, data: j },
|
|
654
653
|
sliceMap: Le,
|
|
655
|
-
isLoading: N[d] && N[d].isLoading || T ||
|
|
654
|
+
isLoading: N[d] && N[d].isLoading || T || F,
|
|
656
655
|
sliceType: d,
|
|
657
656
|
handleSliceTypeChange: z
|
|
658
657
|
};
|
|
@@ -673,7 +672,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
673
672
|
filled: d,
|
|
674
673
|
complete: !m && h
|
|
675
674
|
};
|
|
676
|
-
}, tn =
|
|
675
|
+
}, tn = H.div`
|
|
677
676
|
display: flex;
|
|
678
677
|
align-items: center;
|
|
679
678
|
|
|
@@ -681,7 +680,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
681
680
|
flex: 1;
|
|
682
681
|
min-width: 0;
|
|
683
682
|
}
|
|
684
|
-
`, nn =
|
|
683
|
+
`, nn = H(gt)`
|
|
685
684
|
flex: 1;
|
|
686
685
|
min-width: 0;
|
|
687
686
|
height: 28px;
|
|
@@ -721,7 +720,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
721
720
|
}, xe = (e, t) => {
|
|
722
721
|
e.toggleExpanded(t), e.subRows?.forEach((a) => xe(a, t));
|
|
723
722
|
}, Oe = (e) => e.map((t) => t.id).filter(Boolean), on = (e, t, a, r) => {
|
|
724
|
-
const { onOpenNew: u } = Mt(), { projectName: l } = ue(), { setEntities: m } = ut(), b = _t(), [f] =
|
|
723
|
+
const { onOpenNew: u } = Mt(), { projectName: l } = ue(), { setEntities: m } = ut(), b = _t(), [f] = He(), { deleteEntities: p } = pt(), [h, w] = U(null), d = A(
|
|
725
724
|
(c, s) => s.map((o) => t?.get(o) || (o === c.id ? c : void 0)).filter((o) => !!o),
|
|
726
725
|
[t]
|
|
727
726
|
), S = O(
|
|
@@ -880,7 +879,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
880
879
|
onSubmitRename: g,
|
|
881
880
|
onCancelRename: () => w(null)
|
|
882
881
|
};
|
|
883
|
-
}, an =
|
|
882
|
+
}, an = H(yt)`
|
|
884
883
|
/* put above the menu so it's still clickable */
|
|
885
884
|
/* NOTE: this will need fixing as this also puts it above dialogs */
|
|
886
885
|
/* z-index: 1001; */
|
|
@@ -911,7 +910,7 @@ const At = 180, Be = 100, Ge = 34, Ot = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
911
910
|
}
|
|
912
911
|
}
|
|
913
912
|
`;
|
|
914
|
-
|
|
913
|
+
H.div`
|
|
915
914
|
display: flex;
|
|
916
915
|
flex-direction: column;
|
|
917
916
|
gap: var(--base-gap-large);
|
|
@@ -1008,7 +1007,7 @@ const rn = (e, t, a) => {
|
|
|
1008
1007
|
!Pe
|
|
1009
1008
|
] });
|
|
1010
1009
|
}
|
|
1011
|
-
), Ne =
|
|
1010
|
+
), Ne = H.div`
|
|
1012
1011
|
display: flex;
|
|
1013
1012
|
align-items: center;
|
|
1014
1013
|
gap: var(--base-gap-small);
|
|
@@ -1016,7 +1015,7 @@ const rn = (e, t, a) => {
|
|
|
1016
1015
|
flex: 1;
|
|
1017
1016
|
min-width: 0;
|
|
1018
1017
|
color: var(--md-sys-color-outline);
|
|
1019
|
-
`, dn =
|
|
1018
|
+
`, dn = H.span`
|
|
1020
1019
|
display: flex;
|
|
1021
1020
|
align-items: center;
|
|
1022
1021
|
gap: 2px;
|
|
@@ -1073,12 +1072,12 @@ const rn = (e, t, a) => {
|
|
|
1073
1072
|
g
|
|
1074
1073
|
] })
|
|
1075
1074
|
] });
|
|
1076
|
-
}, pn =
|
|
1075
|
+
}, pn = H.div`
|
|
1077
1076
|
height: 28px;
|
|
1078
1077
|
border-radius: 4px;
|
|
1079
1078
|
background: var(--md-sys-color-surface-container);
|
|
1080
1079
|
width: 100px;
|
|
1081
|
-
`, fn =
|
|
1080
|
+
`, fn = H.div`
|
|
1082
1081
|
display: flex;
|
|
1083
1082
|
align-items: center;
|
|
1084
1083
|
gap: var(--base-gap-small);
|
|
@@ -1090,7 +1089,7 @@ const rn = (e, t, a) => {
|
|
|
1090
1089
|
flex: 1;
|
|
1091
1090
|
min-width: 0;
|
|
1092
1091
|
}
|
|
1093
|
-
`, mn =
|
|
1092
|
+
`, mn = H(vt)`
|
|
1094
1093
|
.slicer-dropdown {
|
|
1095
1094
|
flex: 0 1 auto;
|
|
1096
1095
|
min-width: 48px;
|
|
@@ -1111,7 +1110,7 @@ const rn = (e, t, a) => {
|
|
|
1111
1110
|
.power-feature .icon {
|
|
1112
1111
|
color: var(--md-sys-color-tertiary);
|
|
1113
1112
|
}
|
|
1114
|
-
`, hn =
|
|
1113
|
+
`, hn = H.div`
|
|
1115
1114
|
display: flex;
|
|
1116
1115
|
align-items: center;
|
|
1117
1116
|
gap: var(--base-gap-small);
|
|
@@ -1124,7 +1123,7 @@ const rn = (e, t, a) => {
|
|
|
1124
1123
|
text-overflow: ellipsis;
|
|
1125
1124
|
white-space: nowrap;
|
|
1126
1125
|
}
|
|
1127
|
-
`,
|
|
1126
|
+
`, je = "__splitSlicer__", Fe = ({
|
|
1128
1127
|
panel: e,
|
|
1129
1128
|
visibleSlices: t,
|
|
1130
1129
|
sliceFields: a,
|
|
@@ -1152,7 +1151,7 @@ const rn = (e, t, a) => {
|
|
|
1152
1151
|
setPanelExpanded: T,
|
|
1153
1152
|
onSliceTypeChange: v,
|
|
1154
1153
|
isViewSyncPending: D,
|
|
1155
|
-
onOpenViewer:
|
|
1154
|
+
onOpenViewer: V,
|
|
1156
1155
|
onAddToList: oe
|
|
1157
1156
|
} = Ie(), { refetch: ae } = Ce(), { powerLicense: q, setPowerpackDialog: ie } = we(), Z = y(e.id), ee = x(e.id), B = (L) => {
|
|
1158
1157
|
n(e.id, L);
|
|
@@ -1180,7 +1179,7 @@ const rn = (e, t, a) => {
|
|
|
1180
1179
|
() => t.filter((L) => L.id !== e.id).map((L) => L.sliceType),
|
|
1181
1180
|
[t, e.id]
|
|
1182
1181
|
), {
|
|
1183
|
-
sliceOptions:
|
|
1182
|
+
sliceOptions: F,
|
|
1184
1183
|
sliceType: N,
|
|
1185
1184
|
handleSliceTypeChange: pe,
|
|
1186
1185
|
table: { data: le, isExpandable: fe },
|
|
@@ -1195,25 +1194,25 @@ const rn = (e, t, a) => {
|
|
|
1195
1194
|
countsComplete: P,
|
|
1196
1195
|
sliceType: e.sliceType,
|
|
1197
1196
|
onSliceTypeChange: K
|
|
1198
|
-
}), z = N === "hierarchy",
|
|
1197
|
+
}), z = N === "hierarchy", j = !!p && c.includes(e.id), C = F.find((L) => L.value === N)?.label || N, k = w !== void 0, _ = w ?? "", ce = z ? "Folders" : C, J = on(
|
|
1199
1198
|
m || oe,
|
|
1200
1199
|
$,
|
|
1201
|
-
|
|
1200
|
+
V,
|
|
1202
1201
|
b
|
|
1203
1202
|
), We = z ? J.rowContextMenuBuilders : [], Ee = O(
|
|
1204
|
-
() =>
|
|
1205
|
-
[
|
|
1203
|
+
() => F.map((L) => L.value).filter((L) => !t.some((M) => M.sliceType === L)),
|
|
1204
|
+
[F, t]
|
|
1206
1205
|
), be = !!f && Ee.length > 0, Se = O(() => {
|
|
1207
|
-
const L =
|
|
1206
|
+
const L = F.map(
|
|
1208
1207
|
(M) => re.includes(M.value) ? { ...M, disabled: !0, disabledMessage: "Already used by another panel" } : M
|
|
1209
1208
|
);
|
|
1210
|
-
return be && L.push({ label: "Split slicer", value:
|
|
1211
|
-
}, [
|
|
1209
|
+
return be && L.push({ label: "Split slicer", value: je, icon: "splitscreen_add" }), L;
|
|
1210
|
+
}, [F, re, be]), De = () => {
|
|
1212
1211
|
if (!q) return ie("slicer");
|
|
1213
1212
|
g(Ee[0]);
|
|
1214
1213
|
}, qe = (L) => {
|
|
1215
1214
|
const M = String(L[0]);
|
|
1216
|
-
if (M ===
|
|
1215
|
+
if (M === je) {
|
|
1217
1216
|
De();
|
|
1218
1217
|
return;
|
|
1219
1218
|
}
|
|
@@ -1223,20 +1222,20 @@ const rn = (e, t, a) => {
|
|
|
1223
1222
|
/* @__PURE__ */ G(
|
|
1224
1223
|
mn,
|
|
1225
1224
|
{
|
|
1226
|
-
className: W({ collapsed:
|
|
1227
|
-
onClick:
|
|
1225
|
+
className: W({ collapsed: j }),
|
|
1226
|
+
onClick: j ? () => s(e.id) : void 0,
|
|
1228
1227
|
children: [
|
|
1229
1228
|
p && /* @__PURE__ */ E(
|
|
1230
1229
|
he,
|
|
1231
1230
|
{
|
|
1232
1231
|
icon: "expand_more",
|
|
1233
|
-
className: W("collapse-toggle", { collapsed:
|
|
1234
|
-
"data-tooltip":
|
|
1232
|
+
className: W("collapse-toggle", { collapsed: j }),
|
|
1233
|
+
"data-tooltip": j ? "Expand panel" : "Collapse panel",
|
|
1235
1234
|
"data-tooltip-delay": 0,
|
|
1236
1235
|
onClick: () => s(e.id)
|
|
1237
1236
|
}
|
|
1238
1237
|
),
|
|
1239
|
-
|
|
1238
|
+
j ? (
|
|
1240
1239
|
// the dropdown cannot be used from a collapsed panel, but the dimension it
|
|
1241
1240
|
// shows has to read the same as the dropdown does when open
|
|
1242
1241
|
/* @__PURE__ */ E(hn, { children: /* @__PURE__ */ E("span", { children: C }) })
|
|
@@ -1251,14 +1250,14 @@ const rn = (e, t, a) => {
|
|
|
1251
1250
|
disableOpen: Se.length === 1
|
|
1252
1251
|
}
|
|
1253
1252
|
),
|
|
1254
|
-
|
|
1253
|
+
j && /* @__PURE__ */ E(un, { rowSelection: Z, sliceMap: $ }),
|
|
1255
1254
|
/* @__PURE__ */ G(
|
|
1256
1255
|
fn,
|
|
1257
1256
|
{
|
|
1258
1257
|
className: W({ searching: k }),
|
|
1259
1258
|
onClick: (L) => L.stopPropagation(),
|
|
1260
1259
|
children: [
|
|
1261
|
-
!
|
|
1260
|
+
!j && /* @__PURE__ */ E(
|
|
1262
1261
|
sn,
|
|
1263
1262
|
{
|
|
1264
1263
|
open: k,
|
|
@@ -1302,7 +1301,7 @@ const rn = (e, t, a) => {
|
|
|
1302
1301
|
]
|
|
1303
1302
|
}
|
|
1304
1303
|
),
|
|
1305
|
-
!
|
|
1304
|
+
!j && /* @__PURE__ */ E(
|
|
1306
1305
|
It,
|
|
1307
1306
|
{
|
|
1308
1307
|
rowSelection: Z,
|
|
@@ -1331,7 +1330,7 @@ const rn = (e, t, a) => {
|
|
|
1331
1330
|
}
|
|
1332
1331
|
)
|
|
1333
1332
|
] });
|
|
1334
|
-
}, gn =
|
|
1333
|
+
}, gn = H.div`
|
|
1335
1334
|
height: 100%;
|
|
1336
1335
|
width: 100%;
|
|
1337
1336
|
overflow-y: auto;
|
|
@@ -1345,7 +1344,7 @@ const rn = (e, t, a) => {
|
|
|
1345
1344
|
}
|
|
1346
1345
|
`
|
|
1347
1346
|
).join("")}
|
|
1348
|
-
`,
|
|
1347
|
+
`, ls = ({
|
|
1349
1348
|
sliceFields: e = [],
|
|
1350
1349
|
entityTypes: t = ["task"],
|
|
1351
1350
|
pinnedSliceType: a,
|
|
@@ -1377,7 +1376,7 @@ const rn = (e, t, a) => {
|
|
|
1377
1376
|
return R.observe(I), () => R.disconnect();
|
|
1378
1377
|
}, [S.length]);
|
|
1379
1378
|
const v = S.map((I) => I.id), D = S.length > 1, {
|
|
1380
|
-
sizes:
|
|
1379
|
+
sizes: V,
|
|
1381
1380
|
minSize: oe,
|
|
1382
1381
|
height: ae,
|
|
1383
1382
|
layoutKey: q,
|
|
@@ -1407,7 +1406,7 @@ const rn = (e, t, a) => {
|
|
|
1407
1406
|
};
|
|
1408
1407
|
return /* @__PURE__ */ G($e, { children: [
|
|
1409
1408
|
S.length === 1 ? /* @__PURE__ */ E(
|
|
1410
|
-
|
|
1409
|
+
Fe,
|
|
1411
1410
|
{
|
|
1412
1411
|
panel: S[0],
|
|
1413
1412
|
isPrimary: !0,
|
|
@@ -1428,11 +1427,11 @@ const rn = (e, t, a) => {
|
|
|
1428
1427
|
children: S.map((I, R) => /* @__PURE__ */ E(
|
|
1429
1428
|
tt,
|
|
1430
1429
|
{
|
|
1431
|
-
size:
|
|
1430
|
+
size: V[R],
|
|
1432
1431
|
minSize: oe,
|
|
1433
1432
|
style: { overflow: "hidden" },
|
|
1434
1433
|
children: /* @__PURE__ */ E(
|
|
1435
|
-
|
|
1434
|
+
Fe,
|
|
1436
1435
|
{
|
|
1437
1436
|
panel: I,
|
|
1438
1437
|
isPrimary: R === 0,
|
|
@@ -1448,7 +1447,7 @@ const rn = (e, t, a) => {
|
|
|
1448
1447
|
q
|
|
1449
1448
|
) }),
|
|
1450
1449
|
/* @__PURE__ */ E(
|
|
1451
|
-
|
|
1450
|
+
Ht,
|
|
1452
1451
|
{
|
|
1453
1452
|
projectName: p,
|
|
1454
1453
|
movingEntities: g,
|
|
@@ -1463,15 +1462,15 @@ export {
|
|
|
1463
1462
|
Be as a,
|
|
1464
1463
|
Me as b,
|
|
1465
1464
|
$t as c,
|
|
1466
|
-
|
|
1465
|
+
ls as d,
|
|
1467
1466
|
Wt as e,
|
|
1468
|
-
|
|
1467
|
+
Ft as f,
|
|
1469
1468
|
Ae as g,
|
|
1470
1469
|
on as h,
|
|
1471
1470
|
en as i,
|
|
1472
1471
|
zt as j,
|
|
1473
|
-
|
|
1472
|
+
rs as k,
|
|
1474
1473
|
cn as l,
|
|
1475
|
-
|
|
1474
|
+
jt as r,
|
|
1476
1475
|
qt as u
|
|
1477
1476
|
};
|
|
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as i } from "react/jsx-runtime";
|
|
|
2
2
|
import { createPortal as R } from "react-dom";
|
|
3
3
|
import { createContext as z, useContext as L, useEffect as $ } from "react";
|
|
4
4
|
import { aQ as j } from "./searchTerms.es.js";
|
|
5
|
-
import {
|
|
5
|
+
import { D as A } from "./getUris.es.js";
|
|
6
6
|
import "primereact/confirmdialog";
|
|
7
7
|
import "lodash";
|
|
8
8
|
import { e as F } from "./expandRelativeDates.es.js";
|
|
@@ -20,12 +20,12 @@ import p, { keyframes as O } from "styled-components";
|
|
|
20
20
|
import { a as K } from "./EntityTooltip.es.js";
|
|
21
21
|
import { format as b, parse as k } from "date-fns";
|
|
22
22
|
import { g as P } from "./getThumbnailUrl.es.js";
|
|
23
|
-
const
|
|
23
|
+
const D = new Set(Object.keys(A).filter((e) => e !== "activity")), Y = {
|
|
24
24
|
has_attachments: "activity_data.files",
|
|
25
25
|
// not `entity_type`: on inbox rows that column is always 'user'
|
|
26
26
|
origin_type: "activity_data.origin.type"
|
|
27
27
|
}, q = (e) => !!e && "key" in e, H = (e) => {
|
|
28
|
-
const t =
|
|
28
|
+
const t = Y[e.key] ?? e.key;
|
|
29
29
|
if (e.key === "has_attachments")
|
|
30
30
|
return e.value ? { key: t, operator: "ne", value: [] } : null;
|
|
31
31
|
if (e.key === "in_review_session")
|
|
@@ -53,7 +53,7 @@ const Y = new Set(Object.keys(A).filter((e) => e !== "activity")), D = {
|
|
|
53
53
|
} : { ...e, key: t };
|
|
54
54
|
}, C = (e) => {
|
|
55
55
|
if (q(e))
|
|
56
|
-
return
|
|
56
|
+
return D.has(e.key) ? null : H(e);
|
|
57
57
|
const t = (e.conditions || []).map((o) => C(o)).filter((o) => o !== null);
|
|
58
58
|
return t.length === 0 ? null : { operator: e.operator || "and", conditions: t };
|
|
59
59
|
}, Q = (e) => {
|