@ynput/ayon-frontend-shared 0.6.0 → 0.6.1
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/ContextMenu.es.js +34 -16
- package/dist/DetailsPanel.es.js +292 -298
- package/dist/Feed.es.js +179 -50
- package/dist/ListTable.es.js +32 -35
- package/dist/NewEntity.es.js +1256 -11
- package/dist/ProjectTreeTable.es.js +4451 -2965
- package/dist/SimpleTable.es.js +8 -7
- package/dist/Slicer.es.js +451 -147
- package/dist/Views.es.js +918 -310
- package/dist/chunks/Actions.es.js +9 -4
- package/dist/chunks/ColumnDropIndicator.es.js +174 -328
- package/dist/chunks/ColumnDropIndicator.styled.es.js +281 -0
- package/dist/chunks/ColumnHeaderMenuUI.es.js +52 -0
- package/dist/chunks/ContextMenuContextInstance.es.js +12 -0
- package/dist/chunks/DeleteEntitiesConfirmDialog.es.js +229 -0
- package/dist/chunks/DeleteEntitiesContextInstance.es.js +827 -0
- package/dist/chunks/EmptyPlaceholder.es.js +4 -4
- package/dist/chunks/EntityPath.es.js +58 -53
- package/dist/chunks/EntityPickerDialog.es.js +24 -20
- package/dist/chunks/EntityTooltip.es.js +20 -13
- package/dist/chunks/EntityUpdatesContext.es.js +38 -96
- package/dist/chunks/Feed.es.js +1495 -1439
- package/dist/chunks/FilterErrorActions.es.js +25 -229
- package/dist/chunks/Menu.es.js +21 -17
- package/dist/chunks/MenuContext.es.js +14 -65
- package/dist/chunks/MenuItem.es.js +34 -24
- package/dist/chunks/MetaWidget.es.js +2835 -4301
- package/dist/chunks/NewEntityContextInstance.es.js +11 -0
- package/dist/chunks/PlayableIcon.es.js +1532 -1594
- package/dist/chunks/ProjectContext.es.js +102 -66
- package/dist/chunks/RepresentationsList.es.js +1 -1
- package/dist/chunks/ReviewablesSelector.es.js +457 -458
- package/dist/chunks/SimpleForm.es.js +9 -9
- package/dist/chunks/SimpleTable.es.js +15 -13
- package/dist/chunks/Slicer.es.js +163 -154
- package/dist/chunks/TableSettingsFallback.es.js +25 -13
- package/dist/chunks/ThumbnailSimple.es.js +150 -261
- package/dist/chunks/VersionUploadContextInstance.es.js +12 -0
- package/dist/chunks/VideoPlayer.es.js +24 -28
- package/dist/chunks/Watchers.es.js +384 -389
- package/dist/chunks/entityDefinitions.es.js +2 -350
- package/dist/chunks/extractVersionFromFilename.es.js +28 -0
- package/dist/chunks/getBundleMode.es.js +61 -16
- package/dist/chunks/getUris.es.js +737 -712
- package/dist/chunks/searchTerms.es.js +57 -56
- package/dist/chunks/useAttributeEnums.es.js +4 -4
- package/dist/chunks/useCreateContextMenu.es.js +66 -90
- package/dist/chunks/useHierarchySelection.es.js +24 -0
- package/dist/chunks/useLoadModule.es.js +74 -0
- package/dist/chunks/useQueryArgumentChangeLoading.es.js +11 -0
- package/dist/chunks/versionUploadHelpers.es.js +16 -42
- package/dist/chunks/viewUpdateHelper.es.js +67 -50
- package/dist/components.es.js +1425 -999
- package/dist/context.es.js +791 -80
- package/dist/hooks.es.js +115 -120
- package/dist/index.es.js +19 -23
- package/dist/types/Actions.d.ts +7 -7
- package/dist/types/ContextMenu.d.ts +11 -8
- package/dist/types/DetailsPanel.d.ts +102 -9
- package/dist/types/EntityPickerDialog.d.ts +7 -7
- package/dist/types/Feed.d.ts +11 -8
- package/dist/types/ListTable.d.ts +7 -7
- package/dist/types/NewEntity.d.ts +16 -10
- package/dist/types/ProjectTreeTable.d.ts +22 -115
- package/dist/types/RepresentationsList.d.ts +7 -7
- package/dist/types/SimpleTable.d.ts +11 -8
- package/dist/types/Slicer.d.ts +10 -7
- package/dist/types/Views.d.ts +10 -7
- package/dist/types/api.d.ts +132 -120
- package/dist/types/components.d.ts +13 -8
- package/dist/types/context.d.ts +56 -16
- package/dist/types/hooks.d.ts +7 -7
- package/dist/types/index.d.ts +7 -7
- package/dist/types/util.d.ts +12 -7
- package/dist/util.es.js +72 -71
- package/package.json +1 -1
- package/dist/chunks/DeleteEntitiesContext.es.js +0 -748
- package/dist/chunks/DetailsPanelContext.es.js +0 -155
- package/dist/chunks/GlobalContext.es.js +0 -52
- package/dist/chunks/NewEntityContext.es.js +0 -1242
- package/dist/chunks/ProjectFoldersContext.es.js +0 -134
- package/dist/chunks/ProjectFoldersContextInstance.es.js +0 -7
- package/dist/chunks/VersionUploadContext.es.js +0 -232
- package/dist/chunks/ViewsContext.es.js +0 -878
- package/dist/chunks/uriUtils.es.js +0 -48
- package/dist/chunks/useColumnDragRestriction.es.js +0 -158
- package/dist/chunks/useLocalStorage.es.js +0 -355
- package/dist/chunks/useSessionStorage.es.js +0 -61
- /package/dist/{useCreateContextMenu.css → ContextMenuContextInstance.css} +0 -0
package/dist/chunks/Slicer.es.js
CHANGED
|
@@ -2,38 +2,47 @@ 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
4
|
import V from "styled-components";
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import { u as we } from "./ProjectFoldersContext.es.js";
|
|
9
|
-
import { E as nt, u as st } from "./EntityPickerDialog.es.js";
|
|
10
|
-
import { toast as De } from "react-toastify";
|
|
11
|
-
import { be as Re, bq as ot, bg as Ue, bo as at } from "./searchTerms.es.js";
|
|
5
|
+
import { h as nt, P as st, d as Ie, U as ze } from "./MetaWidget.es.js";
|
|
6
|
+
import "@module-federation/enhanced/runtime";
|
|
7
|
+
import { bi as De, br as ot, bj as Ue, bp as at } from "./searchTerms.es.js";
|
|
12
8
|
import { dl as Ve, cF as it, bS as rt, by as lt } from "./getUris.es.js";
|
|
13
9
|
import "primereact/confirmdialog";
|
|
14
|
-
import {
|
|
10
|
+
import { q as He, y as Ce, x as ue, d as ct, a as we, v as dt, a5 as ut, a4 as pt, u as ft, ac as mt } from "./DeleteEntitiesContextInstance.es.js";
|
|
15
11
|
import "lodash";
|
|
12
|
+
import { toast as Re } from "react-toastify";
|
|
16
13
|
import "uuid";
|
|
17
|
-
import { b as he, H as ut, a as pt, d as ft, S as mt } from "./SimpleTable.es.js";
|
|
18
|
-
import { a as ue } from "./ProjectContext.es.js";
|
|
19
|
-
import { u as ht } from "./GlobalContext.es.js";
|
|
20
|
-
import { u as gt, a as yt } from "./useAttributeEnums.es.js";
|
|
21
|
-
import { g as ge } from "./getEntityTypeIcon.es.js";
|
|
22
|
-
import { b as bt, s as St } from "./buildHierarchicalTableRows.es.js";
|
|
23
|
-
import { g as Tt } from "./parseHtmlToPlainTextWithLinks.es.js";
|
|
24
|
-
import { InputText as vt, Button as It, Icon as xt } from "@ynput/ayon-react-components";
|
|
25
|
-
import W from "clsx";
|
|
26
|
-
import { u as Ct } from "./NewEntityContext.es.js";
|
|
27
|
-
import { a as wt, K as Lt } from "./platform.es.js";
|
|
28
|
-
import { u as Et } from "./DetailsPanelContext.es.js";
|
|
29
|
-
import { g as kt } from "./DeleteEntitiesContext.es.js";
|
|
30
|
-
import { u as Dt } from "./VersionUploadContext.es.js";
|
|
31
|
-
import { u as Rt, b as Pt, F as Pe } from "./EntityUpdatesContext.es.js";
|
|
32
|
-
import "./MenuItem.es.js";
|
|
33
|
-
import "@module-federation/enhanced/runtime";
|
|
34
14
|
import "semver";
|
|
35
|
-
import {
|
|
15
|
+
import { InputText as ht, Button as gt, Icon as yt } from "@ynput/ayon-react-components";
|
|
16
|
+
import "./ContextMenuContextInstance.es.js";
|
|
17
|
+
import W from "clsx";
|
|
36
18
|
import "react-dom";
|
|
19
|
+
import "react-redux";
|
|
20
|
+
import { E as bt, u as St } from "./EntityPickerDialog.es.js";
|
|
21
|
+
import "./PlayableIcon.es.js";
|
|
22
|
+
import "date-fns";
|
|
23
|
+
import "lexical";
|
|
24
|
+
import "@lexical/markdown";
|
|
25
|
+
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
26
|
+
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
27
|
+
import "match-sorter";
|
|
28
|
+
import "@lexical/code";
|
|
29
|
+
import "@lexical/list";
|
|
30
|
+
import "@lexical/rich-text";
|
|
31
|
+
import "@lexical/selection";
|
|
32
|
+
import "@lexical/utils";
|
|
33
|
+
import "react-router-dom";
|
|
34
|
+
import "@tanstack/react-table";
|
|
35
|
+
import { b as he, H as Tt, a as vt, e as xt, S as It } from "./SimpleTable.es.js";
|
|
36
|
+
import { g as ge } from "./getEntityTypeIcon.es.js";
|
|
37
|
+
import { g as Ct } from "./parseHtmlToPlainTextWithLinks.es.js";
|
|
38
|
+
import { u as wt, a as Lt } from "./useAttributeEnums.es.js";
|
|
39
|
+
import { b as Et, s as kt } from "./buildHierarchicalTableRows.es.js";
|
|
40
|
+
import { n as me } from "./entityDefinitions.es.js";
|
|
41
|
+
import { a as Dt, K as Rt } from "./platform.es.js";
|
|
42
|
+
import { u as Pt } from "./NewEntityContextInstance.es.js";
|
|
43
|
+
import { u as Mt } from "./VersionUploadContextInstance.es.js";
|
|
44
|
+
import { F as Pe } from "./EntityUpdatesContext.es.js";
|
|
45
|
+
import "./MenuItem.es.js";
|
|
37
46
|
const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.includes(r) ? Ge : a), Ot = (e, t, a, r) => {
|
|
38
47
|
const d = e.reduce((p, g) => p + g, 0), l = r.filter(Boolean).length;
|
|
39
48
|
if (!l || d === a) return e;
|
|
@@ -65,7 +74,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
65
74
|
minSize: 2,
|
|
66
75
|
height: u
|
|
67
76
|
};
|
|
68
|
-
},
|
|
77
|
+
}, jt = (e, t, a) => {
|
|
69
78
|
const r = e.map((m, p) => Math.max(m / 100 * t, a[p])), d = Math.max(
|
|
70
79
|
t,
|
|
71
80
|
a.reduce((m, p) => m + p, 0)
|
|
@@ -73,11 +82,11 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
73
82
|
if (l <= 0) return r;
|
|
74
83
|
const f = r.map((m, p) => m - a[p]), S = f.reduce((m, p) => m + p, 0);
|
|
75
84
|
return S ? r.map((m, p) => m - l * (f[p] / S)) : r;
|
|
76
|
-
},
|
|
85
|
+
}, Ft = "slicer-splitter", Me = {
|
|
77
86
|
minSize: 2,
|
|
78
87
|
size: 12
|
|
79
|
-
},
|
|
80
|
-
const [e, t] =
|
|
88
|
+
}, rs = () => {
|
|
89
|
+
const [e, t] = He(Ft, [
|
|
81
90
|
Me.size,
|
|
82
91
|
100 - Me.size
|
|
83
92
|
]);
|
|
@@ -85,7 +94,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
85
94
|
t(r.sizes);
|
|
86
95
|
}];
|
|
87
96
|
}, $t = (e, t, a = [], r = 0) => {
|
|
88
|
-
const [d, l] =
|
|
97
|
+
const [d, l] = He(
|
|
89
98
|
`slicer-panel-heights-${e}`,
|
|
90
99
|
{}
|
|
91
100
|
), [f, S] = U(0), m = Array.isArray(d) ? {} : d, {
|
|
@@ -95,7 +104,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
95
104
|
height: u,
|
|
96
105
|
heights: b
|
|
97
106
|
} = Nt(m, t, a, r), h = (i) => {
|
|
98
|
-
const c =
|
|
107
|
+
const c = jt(i.sizes, u, g);
|
|
99
108
|
l({
|
|
100
109
|
...m,
|
|
101
110
|
...Object.fromEntries(
|
|
@@ -119,7 +128,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
119
128
|
onClose: a,
|
|
120
129
|
onMoveComplete: r
|
|
121
130
|
}) => {
|
|
122
|
-
const [d] = Ve(), l =
|
|
131
|
+
const [d] = Ve(), l = nt(), { folders: f } = Ce(), S = l?.tableData || [], m = A(
|
|
123
132
|
(h) => l?.getEntityById(h) || f.find((i) => i.id === h),
|
|
124
133
|
[f, l]
|
|
125
134
|
), p = A(
|
|
@@ -147,7 +156,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
147
156
|
}
|
|
148
157
|
r?.(i);
|
|
149
158
|
} catch (c) {
|
|
150
|
-
let s =
|
|
159
|
+
let s = De(c) || "Failed to move entities";
|
|
151
160
|
if (s.includes("already exists"))
|
|
152
161
|
if (t.entities.length > 1)
|
|
153
162
|
s = "Cannot move some entities - one or more entities with the same name already exist in the target location";
|
|
@@ -158,7 +167,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
158
167
|
const y = s.match(/name '.*?, (.+?)' already exists/);
|
|
159
168
|
s = `Cannot move "${y ? y[1] : "this folder"}" - a folder with this name already exists in the target location`;
|
|
160
169
|
}
|
|
161
|
-
|
|
170
|
+
Re.error(s);
|
|
162
171
|
} finally {
|
|
163
172
|
a();
|
|
164
173
|
}
|
|
@@ -186,8 +195,8 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
186
195
|
throw new Error(s || "Some move operations failed");
|
|
187
196
|
}
|
|
188
197
|
} catch (h) {
|
|
189
|
-
let i =
|
|
190
|
-
|
|
198
|
+
let i = De(h) || "Failed to move entities to root";
|
|
199
|
+
Re.error(i);
|
|
191
200
|
} finally {
|
|
192
201
|
a();
|
|
193
202
|
}
|
|
@@ -218,9 +227,9 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
218
227
|
const s = f.find((y) => y.id === h);
|
|
219
228
|
if (s) {
|
|
220
229
|
const y = t.entities.find((n) => {
|
|
221
|
-
const
|
|
222
|
-
return
|
|
223
|
-
(v) => v.name ===
|
|
230
|
+
const x = m(n.entityId);
|
|
231
|
+
return x?.name ? S.filter((v) => n.entityType === "folder" ? v.entityType === "folder" && v.parentId === s.id : n.entityType === "task" ? v.entityType === "task" && v.folderId === s.id : !1).some(
|
|
232
|
+
(v) => v.name === x.name && v.entityId !== n.entityId
|
|
224
233
|
) : !1;
|
|
225
234
|
});
|
|
226
235
|
if (y)
|
|
@@ -252,7 +261,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
252
261
|
onMoveComplete: r
|
|
253
262
|
});
|
|
254
263
|
return t?.entities.length ? /* @__PURE__ */ E(
|
|
255
|
-
|
|
264
|
+
bt,
|
|
256
265
|
{
|
|
257
266
|
projectName: e,
|
|
258
267
|
entityType: "folder",
|
|
@@ -284,8 +293,8 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
284
293
|
const {
|
|
285
294
|
attributes: a,
|
|
286
295
|
isLoading: { siteInfo: r }
|
|
287
|
-
} =
|
|
288
|
-
return { attributes:
|
|
296
|
+
} = ct(), d = Ye(st), l = d?.attribFields?.length ? d.attribFields : a, { projectName: f } = ue();
|
|
297
|
+
return { attributes: wt(l, { projectName: f, request: t ?? [] }).filter((p) => Ue(p.data)).filter((p) => e.some((g) => p.scope?.includes(g))).map(
|
|
289
298
|
(p) => p.data.enum?.some((g) => g.hidden) ? { ...p, data: { ...p.data, enum: at(p.data.enum) } } : p
|
|
290
299
|
), isLoading: r };
|
|
291
300
|
}, Gt = "snippet_folder", de = "folder", Kt = (e) => `${de}-${e}`, _e = (e) => e.entityListType === "review-session" ? "subscriptions" : ge(e.entityType), ve = (e) => [...e].sort((t, a) => {
|
|
@@ -294,7 +303,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
294
303
|
const r = new Date(t.createdAt || 0);
|
|
295
304
|
return new Date(a.createdAt || 0).getTime() - r.getTime();
|
|
296
305
|
}), Wt = (e = !0) => {
|
|
297
|
-
const { projectName: t } = ue(), { powerLicense: a } =
|
|
306
|
+
const { projectName: t } = ue(), { powerLicense: a } = we(), {
|
|
298
307
|
data: r,
|
|
299
308
|
isLoading: d,
|
|
300
309
|
isFetching: l
|
|
@@ -322,30 +331,30 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
322
331
|
}), n.parentId || b.add(n.id);
|
|
323
332
|
for (const n of f)
|
|
324
333
|
if (n.parentId && u.has(n.parentId)) {
|
|
325
|
-
const
|
|
326
|
-
|
|
334
|
+
const x = u.get(n.parentId), T = u.get(n.id);
|
|
335
|
+
x.children.set(n.id, T);
|
|
327
336
|
}
|
|
328
337
|
const h = [];
|
|
329
338
|
for (const n of L) {
|
|
330
|
-
const
|
|
331
|
-
if (
|
|
332
|
-
const T = u.get(
|
|
339
|
+
const x = n.entityListFolderId;
|
|
340
|
+
if (x && u.has(x)) {
|
|
341
|
+
const T = u.get(x);
|
|
333
342
|
T.items.push(n), T.hasAnyItems = !0;
|
|
334
343
|
} else
|
|
335
344
|
h.push(n);
|
|
336
345
|
}
|
|
337
346
|
for (const n of u.values())
|
|
338
347
|
if (n.hasAnyItems) {
|
|
339
|
-
let
|
|
340
|
-
for (;
|
|
341
|
-
const T = u.get(
|
|
348
|
+
let x = n.folder;
|
|
349
|
+
for (; x.parentId; ) {
|
|
350
|
+
const T = u.get(x.parentId);
|
|
342
351
|
if (T)
|
|
343
|
-
T.hasAnyItems = !0,
|
|
352
|
+
T.hasAnyItems = !0, x = T.folder;
|
|
344
353
|
else
|
|
345
354
|
break;
|
|
346
355
|
}
|
|
347
356
|
}
|
|
348
|
-
const i = (n,
|
|
357
|
+
const i = (n, x, T = []) => ({
|
|
349
358
|
id: n.id,
|
|
350
359
|
name: n.label,
|
|
351
360
|
label: n.label,
|
|
@@ -359,15 +368,15 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
359
368
|
entityType: n.entityType,
|
|
360
369
|
listId: n.id
|
|
361
370
|
}
|
|
362
|
-
}), c = (n) => n.sort((
|
|
363
|
-
const v = f.findIndex((H) => H.id ===
|
|
364
|
-
return v === -1 && k === -1 ?
|
|
371
|
+
}), c = (n) => n.sort((x, T) => {
|
|
372
|
+
const v = f.findIndex((H) => H.id === x.id), k = f.findIndex((H) => H.id === T.id);
|
|
373
|
+
return v === -1 && k === -1 ? x.folder.label.localeCompare(T.folder.label) : v === -1 ? 1 : k === -1 ? -1 : v - k;
|
|
365
374
|
}), s = (n) => {
|
|
366
|
-
const
|
|
375
|
+
const x = n.items.map((T) => T.id);
|
|
367
376
|
for (const T of n.children.values())
|
|
368
|
-
|
|
369
|
-
return
|
|
370
|
-
}, o =
|
|
377
|
+
x.push(...s(T));
|
|
378
|
+
return x;
|
|
379
|
+
}, o = Et({
|
|
371
380
|
folderNodes: u,
|
|
372
381
|
rootFolderIds: b,
|
|
373
382
|
showEmptyFolders: !1,
|
|
@@ -378,21 +387,21 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
378
387
|
getFolderLabel: (n) => n.label,
|
|
379
388
|
getFolderIcon: (n) => n.data?.icon || Gt,
|
|
380
389
|
getFolderColor: (n) => n.data?.color,
|
|
381
|
-
getItemCount: (n) => n.items.length + Array.from(n.children.values()).reduce((
|
|
390
|
+
getItemCount: (n) => n.items.length + Array.from(n.children.values()).reduce((x, T) => x + T.items.length, 0)
|
|
382
391
|
});
|
|
383
392
|
for (const n of o) {
|
|
384
393
|
if (n.id.startsWith(de + "-")) {
|
|
385
394
|
const T = n.id.substring((de + "-").length), v = u.get(T);
|
|
386
395
|
v && (n.data = { ...n.data, childListIds: s(v) });
|
|
387
396
|
}
|
|
388
|
-
const
|
|
389
|
-
for (;
|
|
390
|
-
const T =
|
|
397
|
+
const x = [...n.subRows || []];
|
|
398
|
+
for (; x.length > 0; ) {
|
|
399
|
+
const T = x.shift();
|
|
391
400
|
if (T.id.startsWith(de + "-")) {
|
|
392
401
|
const v = T.id.substring((de + "-").length), k = u.get(v);
|
|
393
402
|
k && (T.data = { ...T.data, childListIds: s(k) });
|
|
394
403
|
}
|
|
395
|
-
T.subRows &&
|
|
404
|
+
T.subRows && x.push(...T.subRows);
|
|
396
405
|
}
|
|
397
406
|
}
|
|
398
407
|
const y = ve(h).map((n) => i(n));
|
|
@@ -418,7 +427,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
418
427
|
isLoading: d || l || S,
|
|
419
428
|
isExpandable: p
|
|
420
429
|
};
|
|
421
|
-
}, qt = (e, t, a, r) => e.id === "noValue" ? t.get(
|
|
430
|
+
}, qt = (e, t, a, r) => e.id === "noValue" ? t.get(ze)?.count ?? (r ? 0 : void 0) : e.id === "hasValue" ? r ? a : void 0 : t.get(e.id)?.count ?? (e.name ? t.get(e.name)?.count : void 0) ?? (r ? 0 : void 0), Ke = (e, t, a, r) => t ? e.map((d) => {
|
|
422
431
|
const l = qt(d, t, a, r);
|
|
423
432
|
return {
|
|
424
433
|
...d,
|
|
@@ -499,13 +508,13 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
499
508
|
onSliceTypeChange: p,
|
|
500
509
|
useExtraSlices: g,
|
|
501
510
|
isLoadingExtraSlices: L
|
|
502
|
-
} =
|
|
511
|
+
} = Ie(), u = f ?? m, b = S ?? p, { projectName: h } = ue(), { formatAttribute: i } = g(), c = e.filter((C) => Ae.some((R) => R.value === C.value)).map((C) => ({
|
|
503
512
|
...Ae.find((_) => _.value === C.value),
|
|
504
513
|
...C
|
|
505
514
|
})), s = e.some((C) => C.value === "attributes"), o = u?.startsWith("attrib.") ? u.slice(7) : void 0, y = O(
|
|
506
515
|
() => o ? [o] : [],
|
|
507
516
|
[o]
|
|
508
|
-
), { attributes: n, isLoading:
|
|
517
|
+
), { attributes: n, isLoading: x } = Bt({
|
|
509
518
|
entityTypes: a,
|
|
510
519
|
request: y
|
|
511
520
|
});
|
|
@@ -513,7 +522,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
513
522
|
(C) => c.push({
|
|
514
523
|
label: C.data.title || C.name,
|
|
515
524
|
value: "attrib." + C.name,
|
|
516
|
-
icon:
|
|
525
|
+
icon: Ct(C.name, C.data.type, Ue(C.data))
|
|
517
526
|
})
|
|
518
527
|
);
|
|
519
528
|
const [T, v] = U(!1), H = !!n.find((C) => C.name === o)?.enumIsLoading, {
|
|
@@ -528,32 +537,32 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
528
537
|
data: te,
|
|
529
538
|
getData: Q,
|
|
530
539
|
isFetching: Y
|
|
531
|
-
} =
|
|
540
|
+
} = St({
|
|
532
541
|
projectName: h || "",
|
|
533
542
|
folderTypes: oe?.folderTypes || [],
|
|
534
543
|
includeColors: !0
|
|
535
|
-
}), { getData:
|
|
544
|
+
}), { getData: I, isLoading: D } = Vt({
|
|
536
545
|
projectName: h,
|
|
537
546
|
useExtraSlices: g
|
|
538
547
|
}), {
|
|
539
548
|
getData: P,
|
|
540
549
|
isLoading: K,
|
|
541
550
|
isExpandable: re
|
|
542
|
-
} = Wt(u === "entityList"),
|
|
551
|
+
} = Wt(u === "entityList"), F = Y || B || D || L && u !== "hierarchy" || K && u === "entityList" || x || H, N = {
|
|
543
552
|
hierarchy: {
|
|
544
553
|
getData: Q,
|
|
545
554
|
isLoading: Y,
|
|
546
555
|
isExpandable: !0
|
|
547
556
|
},
|
|
548
557
|
assignees: {
|
|
549
|
-
getData:
|
|
558
|
+
getData: I,
|
|
550
559
|
isLoading: D,
|
|
551
560
|
isExpandable: !1,
|
|
552
561
|
noValue: !0,
|
|
553
562
|
hasValue: !0
|
|
554
563
|
},
|
|
555
564
|
author: {
|
|
556
|
-
getData:
|
|
565
|
+
getData: I,
|
|
557
566
|
isLoading: D,
|
|
558
567
|
isExpandable: !1
|
|
559
568
|
},
|
|
@@ -586,7 +595,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
586
595
|
for (const C of n)
|
|
587
596
|
N["attrib." + C.name] = {
|
|
588
597
|
getData: () => ee(C),
|
|
589
|
-
isLoading:
|
|
598
|
+
isLoading: x || !!C.enumIsLoading,
|
|
590
599
|
isExpandable: !1,
|
|
591
600
|
isAttribute: !0
|
|
592
601
|
};
|
|
@@ -594,8 +603,8 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
594
603
|
(C) => N[C.value] && !t.includes(C.value)
|
|
595
604
|
)?.value;
|
|
596
605
|
se(() => {
|
|
597
|
-
|
|
598
|
-
}, [
|
|
606
|
+
F || $ || !ne || b(ne, !1);
|
|
607
|
+
}, [F, $, ne]);
|
|
599
608
|
const z = (C, R) => {
|
|
600
609
|
const _ = N[C];
|
|
601
610
|
if (!_) {
|
|
@@ -605,7 +614,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
605
614
|
(_.isAttribute && s || e.some((ce) => ce.value === C)) && b(C, R);
|
|
606
615
|
};
|
|
607
616
|
se(() => {
|
|
608
|
-
if (
|
|
617
|
+
if (F) return;
|
|
609
618
|
(async () => {
|
|
610
619
|
try {
|
|
611
620
|
if (!$) return;
|
|
@@ -625,12 +634,12 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
625
634
|
v(!1);
|
|
626
635
|
}
|
|
627
636
|
})();
|
|
628
|
-
}, [u, h,
|
|
629
|
-
const
|
|
637
|
+
}, [u, h, F, u === "hierarchy" ? te : null]);
|
|
638
|
+
const j = O(
|
|
630
639
|
() => Ke(le.data, r, d, l),
|
|
631
640
|
[le.data, r, d, l]
|
|
632
641
|
), Le = O(() => {
|
|
633
|
-
const C = /* @__PURE__ */ new Map(), R = [...
|
|
642
|
+
const C = /* @__PURE__ */ new Map(), R = [...j];
|
|
634
643
|
for (; R.length > 0; ) {
|
|
635
644
|
const _ = R.shift();
|
|
636
645
|
if (_ && (C.set(_.id, _), _.subRows && _.subRows.length > 0))
|
|
@@ -638,12 +647,12 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
638
647
|
R.push(ce);
|
|
639
648
|
}
|
|
640
649
|
return C;
|
|
641
|
-
}, [
|
|
650
|
+
}, [j]);
|
|
642
651
|
return {
|
|
643
652
|
sliceOptions: c,
|
|
644
|
-
table: { ...le, data:
|
|
653
|
+
table: { ...le, data: j },
|
|
645
654
|
sliceMap: Le,
|
|
646
|
-
isLoading: N[u] && N[u].isLoading || T ||
|
|
655
|
+
isLoading: N[u] && N[u].isLoading || T || F,
|
|
647
656
|
sliceType: u,
|
|
648
657
|
handleSliceTypeChange: z
|
|
649
658
|
};
|
|
@@ -657,7 +666,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
657
666
|
extraGroupBys: l,
|
|
658
667
|
args: e?.args ?? { projectName: "" },
|
|
659
668
|
skip: f
|
|
660
|
-
}, { counts: m, total: p, complete: g } =
|
|
669
|
+
}, { counts: m, total: p, complete: g } = Lt(S), L = m?.get(ze)?.count ?? 0, u = Math.max(p - L, 0);
|
|
661
670
|
return {
|
|
662
671
|
counts: f ? void 0 : m ?? (g ? Xt : void 0),
|
|
663
672
|
total: p,
|
|
@@ -672,7 +681,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
672
681
|
flex: 1;
|
|
673
682
|
min-width: 0;
|
|
674
683
|
}
|
|
675
|
-
`, tn = V(
|
|
684
|
+
`, tn = V(ht)`
|
|
676
685
|
flex: 1;
|
|
677
686
|
min-width: 0;
|
|
678
687
|
height: 28px;
|
|
@@ -702,10 +711,10 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
702
711
|
}
|
|
703
712
|
)
|
|
704
713
|
] });
|
|
705
|
-
},
|
|
706
|
-
e.toggleExpanded(t), e.subRows?.forEach((a) =>
|
|
714
|
+
}, xe = (e, t) => {
|
|
715
|
+
e.toggleExpanded(t), e.subRows?.forEach((a) => xe(a, t));
|
|
707
716
|
}, Oe = (e) => e.map((t) => t.id).filter(Boolean), sn = (e, t, a, r) => {
|
|
708
|
-
const { onOpenNew: d } =
|
|
717
|
+
const { onOpenNew: d } = Pt(), { projectName: l } = ue(), { setEntities: f } = dt(), S = Mt(), [m] = Ve(), { deleteEntities: p } = ut(), [g, L] = U(null), u = A(
|
|
709
718
|
(c, s) => s.map((o) => t?.get(o) || (o === c.id ? c : void 0)).filter((o) => !!o),
|
|
710
719
|
[t]
|
|
711
720
|
), b = O(
|
|
@@ -784,7 +793,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
784
793
|
(c, { row: s, selectedRows: o }) => ({
|
|
785
794
|
label: "Show details",
|
|
786
795
|
icon: "dock_to_left",
|
|
787
|
-
shortcut:
|
|
796
|
+
shortcut: Dt("click", [Rt.Alt]),
|
|
788
797
|
command: () => b.onShowDetails(s.original, o)
|
|
789
798
|
}),
|
|
790
799
|
(c, { row: s }) => ({
|
|
@@ -802,7 +811,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
802
811
|
(c, { selectedTableRows: s }) => ({
|
|
803
812
|
label: "Expand all children",
|
|
804
813
|
icon: "expand_all",
|
|
805
|
-
command: () => s.filter((o) => o.getCanExpand() && !o.getIsExpanded()).forEach((o) =>
|
|
814
|
+
command: () => s.filter((o) => o.getCanExpand() && !o.getIsExpanded()).forEach((o) => xe(o, !0)),
|
|
806
815
|
hidden: !s.some(
|
|
807
816
|
(o) => o.getCanExpand() && !o.getIsExpanded()
|
|
808
817
|
)
|
|
@@ -810,7 +819,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
810
819
|
(c, { selectedTableRows: s }) => ({
|
|
811
820
|
label: "Collapse all children",
|
|
812
821
|
icon: "collapse_all",
|
|
813
|
-
command: () => s.filter((o) => o.getCanExpand() && o.getIsExpanded()).forEach((o) =>
|
|
822
|
+
command: () => s.filter((o) => o.getCanExpand() && o.getIsExpanded()).forEach((o) => xe(o, !1)),
|
|
814
823
|
hidden: !s.some(
|
|
815
824
|
(o) => o.getCanExpand() && o.getIsExpanded()
|
|
816
825
|
)
|
|
@@ -864,7 +873,7 @@ const _t = 180, Be = 100, Ge = 34, At = (e, t = [], a = Be) => e.map((r) => t.in
|
|
|
864
873
|
onSubmitRename: h,
|
|
865
874
|
onCancelRename: () => L(null)
|
|
866
875
|
};
|
|
867
|
-
}, on = V(
|
|
876
|
+
}, on = V(gt)`
|
|
868
877
|
/* put above the menu so it's still clickable */
|
|
869
878
|
/* NOTE: this will need fixing as this also puts it above dialogs */
|
|
870
879
|
/* z-index: 1001; */
|
|
@@ -936,7 +945,7 @@ const an = (e, t, a) => {
|
|
|
936
945
|
).join(", ")} since last sync`;
|
|
937
946
|
}, ln = Je(
|
|
938
947
|
({ projectNames: e, topics: t, onSync: a, shouldSyncOnUpdate: r, hideWhenNoUpdates: d = !1, ...l }, f) => {
|
|
939
|
-
const [S, m] = U(!1), [p, g] =
|
|
948
|
+
const [S, m] = U(!1), [p, g] = pt(), { setMenuOpen: L } = ft(), u = ye(null), b = ye(), h = Xe();
|
|
940
949
|
se(() => () => {
|
|
941
950
|
const v = b.current;
|
|
942
951
|
b.current = void 0, v !== void 0 && clearTimeout(v);
|
|
@@ -948,7 +957,7 @@ const an = (e, t, a) => {
|
|
|
948
957
|
} finally {
|
|
949
958
|
m(!1);
|
|
950
959
|
}
|
|
951
|
-
}, { updates: c, hasUpdates: s } =
|
|
960
|
+
}, { updates: c, hasUpdates: s } = mt({
|
|
952
961
|
projectNames: e,
|
|
953
962
|
topics: t,
|
|
954
963
|
isSyncing: S,
|
|
@@ -956,7 +965,7 @@ const an = (e, t, a) => {
|
|
|
956
965
|
});
|
|
957
966
|
if (se(() => {
|
|
958
967
|
const v = (k) => {
|
|
959
|
-
k.repeat || !k.shiftKey || k.ctrlKey || k.metaKey || k.key.toLowerCase() !== "r" ||
|
|
968
|
+
k.repeat || !k.shiftKey || k.ctrlKey || k.metaKey || k.key.toLowerCase() !== "r" || kt(k) || (k.preventDefault(), k.stopPropagation(), i());
|
|
960
969
|
};
|
|
961
970
|
return window.addEventListener("keydown", v), () => window.removeEventListener("keydown", v);
|
|
962
971
|
}, [i]), d && !s) return null;
|
|
@@ -1034,7 +1043,7 @@ const an = (e, t, a) => {
|
|
|
1034
1043
|
}
|
|
1035
1044
|
const y = c[c.length - 1];
|
|
1036
1045
|
if (y && o(y, i.clientWidth)) return;
|
|
1037
|
-
const n = i.clientWidth - s,
|
|
1046
|
+
const n = i.clientWidth - s, x = c.filter((v) => o(v, n)).length, T = Math.max(1, x);
|
|
1038
1047
|
T !== g && L(T);
|
|
1039
1048
|
}), !l.length) return /* @__PURE__ */ E(Ne, { ref: a });
|
|
1040
1049
|
const b = l.slice(0, g), h = l.length - b.length;
|
|
@@ -1046,7 +1055,7 @@ const an = (e, t, a) => {
|
|
|
1046
1055
|
title: i.label || i.name,
|
|
1047
1056
|
"aria-label": i.label || i.name,
|
|
1048
1057
|
children: [
|
|
1049
|
-
i.startContent ?? (i.img ? /* @__PURE__ */ E("img", { src: i.img, alt: "" }) : i.icon && /* @__PURE__ */ E(
|
|
1058
|
+
i.startContent ?? (i.img ? /* @__PURE__ */ E("img", { src: i.img, alt: "" }) : i.icon && /* @__PURE__ */ E(yt, { icon: i.icon, style: { color: i.iconColor } })),
|
|
1050
1059
|
!(p && f(i)) && /* @__PURE__ */ E("span", { children: i.label || i.name })
|
|
1051
1060
|
]
|
|
1052
1061
|
},
|
|
@@ -1074,7 +1083,7 @@ const an = (e, t, a) => {
|
|
|
1074
1083
|
flex: 1;
|
|
1075
1084
|
min-width: 0;
|
|
1076
1085
|
}
|
|
1077
|
-
`, fn = V(
|
|
1086
|
+
`, fn = V(Tt)`
|
|
1078
1087
|
.slicer-dropdown {
|
|
1079
1088
|
flex: 0 1 auto;
|
|
1080
1089
|
min-width: 48px;
|
|
@@ -1108,7 +1117,7 @@ const an = (e, t, a) => {
|
|
|
1108
1117
|
text-overflow: ellipsis;
|
|
1109
1118
|
white-space: nowrap;
|
|
1110
1119
|
}
|
|
1111
|
-
`,
|
|
1120
|
+
`, je = "__splitSlicer__", Fe = ({
|
|
1112
1121
|
panel: e,
|
|
1113
1122
|
visibleSlices: t,
|
|
1114
1123
|
sliceFields: a,
|
|
@@ -1132,13 +1141,13 @@ const an = (e, t, a) => {
|
|
|
1132
1141
|
setPanelSliceType: o,
|
|
1133
1142
|
getPanelSelection: y,
|
|
1134
1143
|
setPanelSelection: n,
|
|
1135
|
-
getPanelExpanded:
|
|
1144
|
+
getPanelExpanded: x,
|
|
1136
1145
|
setPanelExpanded: T,
|
|
1137
1146
|
onSliceTypeChange: v,
|
|
1138
1147
|
isViewSyncPending: k,
|
|
1139
1148
|
onOpenViewer: H,
|
|
1140
1149
|
onAddToList: oe
|
|
1141
|
-
} =
|
|
1150
|
+
} = Ie(), { refetch: ae } = Ce(), { powerLicense: q, setPowerpackDialog: ie } = we(), Z = y(e.id), ee = x(e.id), B = (w) => {
|
|
1142
1151
|
n(e.id, w);
|
|
1143
1152
|
}, te = A(
|
|
1144
1153
|
(w) => T(e.id, w),
|
|
@@ -1151,7 +1160,7 @@ const an = (e, t, a) => {
|
|
|
1151
1160
|
if (typeof l != "function") return w;
|
|
1152
1161
|
const M = (X) => JSON.stringify([X?.entity, X?.args]), Qe = M(Q);
|
|
1153
1162
|
return w.filter((X) => X === e.sliceType || M(l(X)) === Qe);
|
|
1154
|
-
}, [l, Q, t, e.sliceType]), { counts:
|
|
1163
|
+
}, [l, Q, t, e.sliceType]), { counts: I, filled: D, complete: P } = Zt(
|
|
1155
1164
|
Q,
|
|
1156
1165
|
e.sliceType,
|
|
1157
1166
|
Y
|
|
@@ -1164,7 +1173,7 @@ const an = (e, t, a) => {
|
|
|
1164
1173
|
() => t.filter((w) => w.id !== e.id).map((w) => w.sliceType),
|
|
1165
1174
|
[t, e.id]
|
|
1166
1175
|
), {
|
|
1167
|
-
sliceOptions:
|
|
1176
|
+
sliceOptions: F,
|
|
1168
1177
|
sliceType: N,
|
|
1169
1178
|
handleSliceTypeChange: pe,
|
|
1170
1179
|
table: { data: le, isExpandable: fe },
|
|
@@ -1174,53 +1183,53 @@ const an = (e, t, a) => {
|
|
|
1174
1183
|
sliceFields: a,
|
|
1175
1184
|
usedSliceTypes: re,
|
|
1176
1185
|
entityTypes: r,
|
|
1177
|
-
counts:
|
|
1186
|
+
counts: I,
|
|
1178
1187
|
filled: D,
|
|
1179
1188
|
countsComplete: P,
|
|
1180
1189
|
sliceType: e.sliceType,
|
|
1181
1190
|
onSliceTypeChange: K
|
|
1182
|
-
}), z = N === "hierarchy",
|
|
1191
|
+
}), z = N === "hierarchy", j = !!p && c.includes(e.id), C = F.find((w) => w.value === N)?.label || N, R = L !== void 0, _ = L ?? "", ce = z ? "Folders" : C, J = sn(
|
|
1183
1192
|
f || oe,
|
|
1184
1193
|
$,
|
|
1185
1194
|
H,
|
|
1186
1195
|
S
|
|
1187
1196
|
), We = z ? J.rowContextMenuBuilders : [], Ee = O(
|
|
1188
|
-
() =>
|
|
1189
|
-
[
|
|
1197
|
+
() => F.map((w) => w.value).filter((w) => !t.some((M) => M.sliceType === w)),
|
|
1198
|
+
[F, t]
|
|
1190
1199
|
), be = !!m && Ee.length > 0, Se = O(() => {
|
|
1191
|
-
const w =
|
|
1200
|
+
const w = F.map(
|
|
1192
1201
|
(M) => re.includes(M.value) ? { ...M, disabled: !0, disabledMessage: "Already used by another panel" } : M
|
|
1193
1202
|
);
|
|
1194
|
-
return be && w.push({ label: "Split slicer", value:
|
|
1195
|
-
}, [
|
|
1203
|
+
return be && w.push({ label: "Split slicer", value: je, icon: "splitscreen_add" }), w;
|
|
1204
|
+
}, [F, re, be]), ke = () => {
|
|
1196
1205
|
if (!q) return ie("slicer");
|
|
1197
1206
|
h(Ee[0]);
|
|
1198
1207
|
}, qe = (w) => {
|
|
1199
1208
|
const M = String(w[0]);
|
|
1200
|
-
if (M ===
|
|
1209
|
+
if (M === je) {
|
|
1201
1210
|
ke();
|
|
1202
1211
|
return;
|
|
1203
1212
|
}
|
|
1204
1213
|
pe(M, !!g && d === N);
|
|
1205
1214
|
};
|
|
1206
|
-
return /* @__PURE__ */ G(
|
|
1215
|
+
return /* @__PURE__ */ G(vt, { children: [
|
|
1207
1216
|
/* @__PURE__ */ G(
|
|
1208
1217
|
fn,
|
|
1209
1218
|
{
|
|
1210
|
-
className: W({ collapsed:
|
|
1211
|
-
onClick:
|
|
1219
|
+
className: W({ collapsed: j }),
|
|
1220
|
+
onClick: j ? () => s(e.id) : void 0,
|
|
1212
1221
|
children: [
|
|
1213
1222
|
p && /* @__PURE__ */ E(
|
|
1214
1223
|
he,
|
|
1215
1224
|
{
|
|
1216
1225
|
icon: "expand_more",
|
|
1217
|
-
className: W("collapse-toggle", { collapsed:
|
|
1218
|
-
"data-tooltip":
|
|
1226
|
+
className: W("collapse-toggle", { collapsed: j }),
|
|
1227
|
+
"data-tooltip": j ? "Expand panel" : "Collapse panel",
|
|
1219
1228
|
"data-tooltip-delay": 0,
|
|
1220
1229
|
onClick: () => s(e.id)
|
|
1221
1230
|
}
|
|
1222
1231
|
),
|
|
1223
|
-
|
|
1232
|
+
j ? (
|
|
1224
1233
|
// the dropdown cannot be used from a collapsed panel, but the dimension it
|
|
1225
1234
|
// shows has to read the same as the dropdown does when open
|
|
1226
1235
|
/* @__PURE__ */ E(mn, { children: /* @__PURE__ */ E("span", { children: C }) })
|
|
@@ -1235,14 +1244,14 @@ const an = (e, t, a) => {
|
|
|
1235
1244
|
disableOpen: Se.length === 1
|
|
1236
1245
|
}
|
|
1237
1246
|
),
|
|
1238
|
-
|
|
1247
|
+
j && /* @__PURE__ */ E(dn, { rowSelection: Z, sliceMap: $ }),
|
|
1239
1248
|
/* @__PURE__ */ G(
|
|
1240
1249
|
pn,
|
|
1241
1250
|
{
|
|
1242
1251
|
className: W({ searching: R }),
|
|
1243
1252
|
onClick: (w) => w.stopPropagation(),
|
|
1244
1253
|
children: [
|
|
1245
|
-
!
|
|
1254
|
+
!j && /* @__PURE__ */ E(
|
|
1246
1255
|
nn,
|
|
1247
1256
|
{
|
|
1248
1257
|
open: R,
|
|
@@ -1286,8 +1295,8 @@ const an = (e, t, a) => {
|
|
|
1286
1295
|
]
|
|
1287
1296
|
}
|
|
1288
1297
|
),
|
|
1289
|
-
!
|
|
1290
|
-
|
|
1298
|
+
!j && /* @__PURE__ */ E(
|
|
1299
|
+
xt,
|
|
1291
1300
|
{
|
|
1292
1301
|
rowSelection: Z,
|
|
1293
1302
|
onRowSelectionChange: B,
|
|
@@ -1295,7 +1304,7 @@ const an = (e, t, a) => {
|
|
|
1295
1304
|
setExpanded: te,
|
|
1296
1305
|
data: $,
|
|
1297
1306
|
children: /* @__PURE__ */ E(
|
|
1298
|
-
|
|
1307
|
+
It,
|
|
1299
1308
|
{
|
|
1300
1309
|
data: le,
|
|
1301
1310
|
isExpandable: fe,
|
|
@@ -1329,7 +1338,7 @@ const an = (e, t, a) => {
|
|
|
1329
1338
|
}
|
|
1330
1339
|
`
|
|
1331
1340
|
).join("")}
|
|
1332
|
-
`,
|
|
1341
|
+
`, ls = ({
|
|
1333
1342
|
sliceFields: e = [],
|
|
1334
1343
|
entityTypes: t = ["task"],
|
|
1335
1344
|
pinnedSliceType: a,
|
|
@@ -1337,13 +1346,13 @@ const an = (e, t, a) => {
|
|
|
1337
1346
|
onAddToList: d,
|
|
1338
1347
|
enableSplit: l
|
|
1339
1348
|
}) => {
|
|
1340
|
-
const { slices: f, page: S, setPanelExpanded: m, projectName: p, collapsedPanels: g } =
|
|
1341
|
-
i("entities" in
|
|
1349
|
+
const { slices: f, page: S, setPanelExpanded: m, projectName: p, collapsedPanels: g } = Ie(), { powerLicense: L } = we(), u = !!l, b = u && L ? f : f.slice(0, 1), [h, i] = U(null), c = A((I) => {
|
|
1350
|
+
i("entities" in I ? I : { entities: [I] });
|
|
1342
1351
|
}, []), s = A(() => {
|
|
1343
1352
|
i(null);
|
|
1344
|
-
}, []), { getParentFolderIds: o } =
|
|
1345
|
-
(
|
|
1346
|
-
const D = [
|
|
1353
|
+
}, []), { getParentFolderIds: o } = Ce(), y = A(
|
|
1354
|
+
(I) => {
|
|
1355
|
+
const D = [I, ...o(I)];
|
|
1347
1356
|
m(
|
|
1348
1357
|
"hierarchy",
|
|
1349
1358
|
(P) => typeof P == "boolean" ? P || Object.fromEntries(D.map((K) => [K, !0])) : {
|
|
@@ -1353,29 +1362,29 @@ const an = (e, t, a) => {
|
|
|
1353
1362
|
);
|
|
1354
1363
|
},
|
|
1355
1364
|
[o, m]
|
|
1356
|
-
), n = ye(null), [
|
|
1365
|
+
), n = ye(null), [x, T] = U(0);
|
|
1357
1366
|
se(() => {
|
|
1358
|
-
const
|
|
1359
|
-
if (!
|
|
1367
|
+
const I = n.current;
|
|
1368
|
+
if (!I) return;
|
|
1360
1369
|
const D = new ResizeObserver(([P]) => T(P.contentRect.height));
|
|
1361
|
-
return D.observe(
|
|
1370
|
+
return D.observe(I), () => D.disconnect();
|
|
1362
1371
|
}, [b.length]);
|
|
1363
|
-
const v = b.map((
|
|
1372
|
+
const v = b.map((I) => I.id), k = b.length > 1, {
|
|
1364
1373
|
sizes: H,
|
|
1365
1374
|
minSize: oe,
|
|
1366
1375
|
height: ae,
|
|
1367
1376
|
layoutKey: q,
|
|
1368
1377
|
handleResizeEnd: ie
|
|
1369
|
-
} = $t(S, v, k ? g : [],
|
|
1370
|
-
(
|
|
1371
|
-
).filter((
|
|
1372
|
-
(
|
|
1378
|
+
} = $t(S, v, k ? g : [], x), Z = v.slice(0, -1).map(
|
|
1379
|
+
(I, D) => k && (g.includes(I) || g.includes(v[D + 1])) ? D : -1
|
|
1380
|
+
).filter((I) => I >= 0), [ee, B] = U({}), te = A(
|
|
1381
|
+
(I, D) => B((P) => ({ ...P, [I]: D })),
|
|
1373
1382
|
[]
|
|
1374
1383
|
), Q = v.join("|");
|
|
1375
1384
|
se(() => {
|
|
1376
|
-
B((
|
|
1377
|
-
const D = Object.keys(
|
|
1378
|
-
return D.length === Object.keys(
|
|
1385
|
+
B((I) => {
|
|
1386
|
+
const D = Object.keys(I).filter((P) => v.includes(P));
|
|
1387
|
+
return D.length === Object.keys(I).length ? I : Object.fromEntries(D.map((P) => [P, I[P]]));
|
|
1379
1388
|
});
|
|
1380
1389
|
}, [Q]);
|
|
1381
1390
|
const Y = {
|
|
@@ -1391,12 +1400,12 @@ const an = (e, t, a) => {
|
|
|
1391
1400
|
};
|
|
1392
1401
|
return /* @__PURE__ */ G($e, { children: [
|
|
1393
1402
|
b.length === 1 ? /* @__PURE__ */ E(
|
|
1394
|
-
|
|
1403
|
+
Fe,
|
|
1395
1404
|
{
|
|
1396
1405
|
panel: b[0],
|
|
1397
1406
|
isPrimary: !0,
|
|
1398
1407
|
search: ee[b[0].id],
|
|
1399
|
-
onSearchChange: (
|
|
1408
|
+
onSearchChange: (I) => te(b[0].id, I),
|
|
1400
1409
|
...Y
|
|
1401
1410
|
}
|
|
1402
1411
|
) : /* @__PURE__ */ E(hn, { ref: n, $deadGutters: Z, children: /* @__PURE__ */ E(
|
|
@@ -1409,24 +1418,24 @@ const an = (e, t, a) => {
|
|
|
1409
1418
|
height: ae,
|
|
1410
1419
|
overflow: "hidden"
|
|
1411
1420
|
},
|
|
1412
|
-
children: b.map((
|
|
1421
|
+
children: b.map((I, D) => /* @__PURE__ */ E(
|
|
1413
1422
|
tt,
|
|
1414
1423
|
{
|
|
1415
1424
|
size: H[D],
|
|
1416
1425
|
minSize: oe,
|
|
1417
1426
|
style: { overflow: "hidden" },
|
|
1418
1427
|
children: /* @__PURE__ */ E(
|
|
1419
|
-
|
|
1428
|
+
Fe,
|
|
1420
1429
|
{
|
|
1421
|
-
panel:
|
|
1430
|
+
panel: I,
|
|
1422
1431
|
isPrimary: D === 0,
|
|
1423
|
-
search: ee[
|
|
1424
|
-
onSearchChange: (P) => te(
|
|
1432
|
+
search: ee[I.id],
|
|
1433
|
+
onSearchChange: (P) => te(I.id, P),
|
|
1425
1434
|
...Y
|
|
1426
1435
|
}
|
|
1427
1436
|
)
|
|
1428
1437
|
},
|
|
1429
|
-
|
|
1438
|
+
I.id
|
|
1430
1439
|
))
|
|
1431
1440
|
},
|
|
1432
1441
|
q
|
|
@@ -1446,15 +1455,15 @@ export {
|
|
|
1446
1455
|
_t as S,
|
|
1447
1456
|
Be as a,
|
|
1448
1457
|
Me as b,
|
|
1449
|
-
|
|
1450
|
-
|
|
1458
|
+
Ft as c,
|
|
1459
|
+
ls as d,
|
|
1451
1460
|
Kt as e,
|
|
1452
|
-
|
|
1461
|
+
jt as f,
|
|
1453
1462
|
Ae as g,
|
|
1454
1463
|
sn as h,
|
|
1455
1464
|
Zt as i,
|
|
1456
1465
|
$t as j,
|
|
1457
|
-
|
|
1466
|
+
rs as k,
|
|
1458
1467
|
ln as l,
|
|
1459
1468
|
Nt as r,
|
|
1460
1469
|
Wt as u
|