@ynput/ayon-frontend-shared 0.7.3 → 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 +15 -7
- /package/dist/{ContextMenuContextInstance.css → style.css} +0 -0
package/dist/chunks/Slicer.es.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { jsx as E, jsxs as
|
|
2
|
-
import { useState as z, useCallback as
|
|
3
|
-
import { Splitter as
|
|
1
|
+
import { jsx as E, jsxs as G, Fragment as je } from "react/jsx-runtime";
|
|
2
|
+
import { useState as z, useCallback as O, useMemo as _, useContext as vt, useEffect as de, forwardRef as It, useRef as xe, useId as xt, useImperativeHandle as Ct, useLayoutEffect as Me } from "react";
|
|
3
|
+
import { Splitter as Lt, SplitterPanel as wt } from "primereact/splitter";
|
|
4
4
|
import U from "styled-components";
|
|
5
|
-
import { i as
|
|
5
|
+
import { i as Et, P as Dt, e as $e, U as at } from "./MetaWidget.es.js";
|
|
6
6
|
import "@module-federation/enhanced/runtime";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
7
|
+
import { menuItemsAt as Rt } from "@ynput/ayon-addon/host";
|
|
8
|
+
import { toast as Ye } from "react-toastify";
|
|
9
|
+
import { InputText as kt, Button as At, Icon as Mt } from "@ynput/ayon-react-components";
|
|
10
|
+
import { bt as Qe, bD as _t, bB as it, bA as Pt, bG as Ot } from "./searchTerms.es.js";
|
|
11
|
+
import { dw as rt, cO as Nt, bZ as Ft, bD as jt } from "./getUris.es.js";
|
|
11
12
|
import "primereact/confirmdialog";
|
|
12
|
-
import {
|
|
13
|
+
import { o as lt, y as ze, x as ye, d as $t, b as Ue, v as zt, ac as Ut, ab as Bt, u as ct, aj as Vt } from "./TableExportContextInstance.es.js";
|
|
13
14
|
import "lodash";
|
|
14
15
|
import "uuid";
|
|
16
|
+
import "axios";
|
|
15
17
|
import "semver";
|
|
16
18
|
import "./ContextMenuContextInstance.es.js";
|
|
17
|
-
import
|
|
19
|
+
import q from "clsx";
|
|
18
20
|
import "react-dom";
|
|
19
21
|
import "react-redux";
|
|
20
22
|
import "react-router-dom";
|
|
21
|
-
import { E as
|
|
23
|
+
import { E as Ht, u as Gt } from "./EntityPickerDialog.es.js";
|
|
22
24
|
import "./PlayableIcon.es.js";
|
|
23
25
|
import "date-fns";
|
|
24
26
|
import "lexical";
|
|
@@ -32,483 +34,484 @@ import "@lexical/utils";
|
|
|
32
34
|
import "@lexical/react/LexicalBlockWithAlignableContents";
|
|
33
35
|
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
34
36
|
import "@tanstack/react-table";
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { g as
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { u as
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
|
|
48
|
-
|
|
37
|
+
import { useContributions as Wt, prefetchPiece as Kt, runContribution as qt } from "@ynput/ayon-addon";
|
|
38
|
+
import { b as he, H as Yt, a as Qt, e as Jt, S as Xt } from "./SimpleTable.es.js";
|
|
39
|
+
import { D as Zt, L as en, s as tn } from "./sortLists.es.js";
|
|
40
|
+
import { a as Je, g as _e } from "./getEntityTypeIcon.es.js";
|
|
41
|
+
import { g as nn } from "./iconUtils.es.js";
|
|
42
|
+
import { u as sn, a as on } from "./useAttributeEnums.es.js";
|
|
43
|
+
import { b as an, s as rn } from "./buildHierarchicalTableRows.es.js";
|
|
44
|
+
import { n as ve } from "./entityDefinitions.es.js";
|
|
45
|
+
import { a as ln, K as cn } from "./platform.es.js";
|
|
46
|
+
import { u as dn } from "./NewEntityContextInstance.es.js";
|
|
47
|
+
import { u as un } from "./VersionUploadContextInstance.es.js";
|
|
48
|
+
import { F as Xe } from "./EntityUpdatesContext.es.js";
|
|
49
|
+
import { M as pn, a as mn } from "./Menu.es.js";
|
|
50
|
+
const dt = "default", Ie = { id: "label", label: "Name", desc: !1 }, Pe = (e) => ({
|
|
51
|
+
id: dt,
|
|
49
52
|
label: e,
|
|
50
53
|
desc: !1
|
|
51
|
-
}),
|
|
52
|
-
if (e === "entityList") return
|
|
53
|
-
const [t] =
|
|
54
|
+
}), fn = ["hierarchy", "assignees", "author"], hn = ["status", "type", "taskType", "folderType"], Be = (e) => fn.includes(e) ? [Ie] : e === "entityList" ? en : e.startsWith("attrib.") ? [Pe("Attribute order"), Ie] : hn.includes(e) ? [Pe("Anatomy order"), Ie] : [Pe("Default order"), Ie], ut = (e) => {
|
|
55
|
+
if (e === "entityList") return Zt;
|
|
56
|
+
const [t] = Be(e);
|
|
54
57
|
return { by: t.id, desc: t.desc };
|
|
55
|
-
},
|
|
56
|
-
const { by:
|
|
57
|
-
return
|
|
58
|
-
},
|
|
59
|
-
const
|
|
60
|
-
let
|
|
58
|
+
}, Xs = (e, t) => {
|
|
59
|
+
const { by: s, desc: a } = t || {};
|
|
60
|
+
return Be(e).some((u) => u.id === s) ? { by: s, desc: !!a } : ut(e);
|
|
61
|
+
}, gn = ["noValue", "hasValue"], yn = (e) => e.id.startsWith("folder-"), bn = new Intl.Collator(void 0, { sensitivity: "base", numeric: !0 }), Oe = (e) => e.label || e.name || "", pt = (e, t, { by: s, desc: a }) => {
|
|
62
|
+
const u = (l) => gn.includes(l.id) || t === "entityList" && yn(l), c = e.filter(u), p = e.filter((l) => !u(l));
|
|
63
|
+
let g;
|
|
61
64
|
if (t === "entityList")
|
|
62
|
-
|
|
65
|
+
g = tn(
|
|
63
66
|
p.map((l) => ({
|
|
64
67
|
row: l,
|
|
65
|
-
label:
|
|
68
|
+
label: Oe(l),
|
|
66
69
|
active: l.data?.active ?? !0,
|
|
67
70
|
createdAt: l.data?.createdAt,
|
|
68
71
|
updatedAt: l.data?.updatedAt
|
|
69
72
|
})),
|
|
70
|
-
{ by:
|
|
73
|
+
{ by: s, desc: a }
|
|
71
74
|
).map(({ row: l }) => l);
|
|
72
|
-
else if (
|
|
73
|
-
|
|
75
|
+
else if (s === dt)
|
|
76
|
+
g = a ? [...p].reverse() : p;
|
|
74
77
|
else {
|
|
75
|
-
const l =
|
|
76
|
-
|
|
77
|
-
(
|
|
78
|
+
const l = a ? -1 : 1;
|
|
79
|
+
g = [...p].sort(
|
|
80
|
+
(m, y) => bn.compare(Oe(m), Oe(y)) * l
|
|
78
81
|
);
|
|
79
82
|
}
|
|
80
|
-
return [...c, ...
|
|
81
|
-
(l) => l.subRows?.length ? { ...l, subRows:
|
|
83
|
+
return [...c, ...g].map(
|
|
84
|
+
(l) => l.subRows?.length ? { ...l, subRows: pt(l.subRows, t, { by: s, desc: a }) } : l
|
|
82
85
|
);
|
|
83
|
-
},
|
|
84
|
-
const
|
|
85
|
-
return
|
|
86
|
-
},
|
|
86
|
+
}, Sn = (e, t, s) => {
|
|
87
|
+
const a = ut(t);
|
|
88
|
+
return s.by !== "label" && s.by === a.by && s.desc === a.desc ? e : pt(e, t, s);
|
|
89
|
+
}, Tn = ({
|
|
87
90
|
options: e,
|
|
88
91
|
sort: t,
|
|
89
|
-
onChange:
|
|
90
|
-
id:
|
|
91
|
-
label:
|
|
92
|
+
onChange: s,
|
|
93
|
+
id: a = "sort",
|
|
94
|
+
label: u = "Sort",
|
|
92
95
|
icon: c = "sort"
|
|
93
96
|
}) => ({
|
|
94
|
-
id:
|
|
95
|
-
label:
|
|
97
|
+
id: a,
|
|
98
|
+
label: u,
|
|
96
99
|
icon: c,
|
|
97
100
|
items: e.map((p) => {
|
|
98
|
-
const
|
|
101
|
+
const g = t.by === p.id;
|
|
99
102
|
return {
|
|
100
|
-
id: `${
|
|
103
|
+
id: `${a}-${p.id}`,
|
|
101
104
|
label: p.label,
|
|
102
|
-
onClick: () =>
|
|
103
|
-
selected:
|
|
104
|
-
endActions:
|
|
105
|
+
onClick: () => s({ by: p.id, desc: p.desc }),
|
|
106
|
+
selected: g,
|
|
107
|
+
endActions: g ? [
|
|
105
108
|
{
|
|
106
109
|
icon: t.desc ? "arrow_downward" : "arrow_upward",
|
|
107
110
|
tooltip: t.desc ? "Descending" : "Ascending",
|
|
108
|
-
onClick: () =>
|
|
111
|
+
onClick: () => s({ ...t, desc: !t.desc })
|
|
109
112
|
}
|
|
110
113
|
] : void 0
|
|
111
114
|
};
|
|
112
115
|
})
|
|
113
|
-
}),
|
|
114
|
-
const
|
|
115
|
-
if (!c ||
|
|
116
|
-
if (
|
|
117
|
-
const
|
|
118
|
-
return e.map((y, C) =>
|
|
116
|
+
}), vn = 180, mt = 100, ft = 34, In = (e, t = [], s = mt) => e.map((a) => t.includes(a) ? ft : s), xn = (e, t, s, a) => {
|
|
117
|
+
const u = e.reduce((m, y) => m + y, 0), c = a.filter(Boolean).length;
|
|
118
|
+
if (!c || u === s) return e;
|
|
119
|
+
if (u < s) {
|
|
120
|
+
const m = (s - u) / c;
|
|
121
|
+
return e.map((y, C) => a[C] ? y + m : y);
|
|
119
122
|
}
|
|
120
|
-
const p = e.map((
|
|
121
|
-
if (!
|
|
122
|
-
const l =
|
|
123
|
-
return e.map((
|
|
124
|
-
},
|
|
123
|
+
const p = e.map((m, y) => a[y] ? m - t[y] : 0), g = p.reduce((m, y) => m + y, 0);
|
|
124
|
+
if (!g) return e;
|
|
125
|
+
const l = u - s;
|
|
126
|
+
return e.map((m, y) => m - l * (p[y] / g));
|
|
127
|
+
}, Cn = (e, t, s = [], a = 0, u = vn) => {
|
|
125
128
|
if (!t.length)
|
|
126
|
-
return { heights: [], mins: [], sizes: [], minSize: 2, height:
|
|
127
|
-
const c = t.filter((
|
|
128
|
-
|
|
129
|
+
return { heights: [], mins: [], sizes: [], minSize: 2, height: a };
|
|
130
|
+
const c = t.filter((b) => !s.includes(b)).length, p = (t.length - c) * ft, g = a && c ? Math.min(
|
|
131
|
+
u,
|
|
129
132
|
Math.max(
|
|
130
|
-
|
|
131
|
-
Math.floor((
|
|
133
|
+
mt,
|
|
134
|
+
Math.floor((a - p) / c)
|
|
132
135
|
)
|
|
133
|
-
) :
|
|
134
|
-
(
|
|
135
|
-
), y = t.map((
|
|
136
|
+
) : u, l = In(t, s), m = t.map(
|
|
137
|
+
(b, i) => s.includes(b) ? l[i] : Math.max(e[b] ?? g, l[i])
|
|
138
|
+
), y = t.map((b) => !s.includes(b)), C = l.reduce((b, i) => b + i, 0), f = y.some(Boolean) ? Math.max(a, C) : C, h = xn(m, l, f, y);
|
|
136
139
|
return {
|
|
137
|
-
heights:
|
|
140
|
+
heights: h,
|
|
138
141
|
mins: l,
|
|
139
|
-
sizes:
|
|
142
|
+
sizes: h.map((b) => b / f * 100),
|
|
140
143
|
// primereact must allow the drag past the min; clampDraggedHeights puts it back
|
|
141
144
|
minSize: 2,
|
|
142
|
-
height:
|
|
145
|
+
height: f
|
|
143
146
|
};
|
|
144
|
-
},
|
|
145
|
-
const
|
|
147
|
+
}, Ln = (e, t, s) => {
|
|
148
|
+
const a = e.map((l, m) => Math.max(l / 100 * t, s[m])), u = Math.max(
|
|
146
149
|
t,
|
|
147
|
-
|
|
148
|
-
), c =
|
|
149
|
-
if (c <= 0) return
|
|
150
|
-
const p =
|
|
151
|
-
return
|
|
152
|
-
},
|
|
150
|
+
s.reduce((l, m) => l + m, 0)
|
|
151
|
+
), c = a.reduce((l, m) => l + m, 0) - u;
|
|
152
|
+
if (c <= 0) return a;
|
|
153
|
+
const p = a.map((l, m) => l - s[m]), g = p.reduce((l, m) => l + m, 0);
|
|
154
|
+
return g ? a.map((l, m) => l - c * (p[m] / g)) : a;
|
|
155
|
+
}, wn = "slicer-splitter", Ze = {
|
|
153
156
|
minSize: 2,
|
|
154
157
|
size: 12
|
|
155
|
-
},
|
|
156
|
-
const [e, t] =
|
|
157
|
-
|
|
158
|
-
100 -
|
|
158
|
+
}, Zs = () => {
|
|
159
|
+
const [e, t] = lt(wn, [
|
|
160
|
+
Ze.size,
|
|
161
|
+
100 - Ze.size
|
|
159
162
|
]);
|
|
160
|
-
return [e, (
|
|
161
|
-
t(
|
|
163
|
+
return [e, (a) => {
|
|
164
|
+
t(a.sizes);
|
|
162
165
|
}];
|
|
163
|
-
},
|
|
164
|
-
const [
|
|
166
|
+
}, En = (e, t, s = [], a = 0) => {
|
|
167
|
+
const [u, c] = lt(
|
|
165
168
|
`slicer-panel-heights-${e}`,
|
|
166
169
|
{}
|
|
167
|
-
), [p,
|
|
168
|
-
sizes:
|
|
170
|
+
), [p, g] = z(0), l = Array.isArray(u) ? {} : u, {
|
|
171
|
+
sizes: m,
|
|
169
172
|
mins: y,
|
|
170
173
|
minSize: C,
|
|
171
|
-
height:
|
|
172
|
-
heights:
|
|
173
|
-
} =
|
|
174
|
-
const
|
|
174
|
+
height: f,
|
|
175
|
+
heights: h
|
|
176
|
+
} = Cn(l, t, s, a), b = (i) => {
|
|
177
|
+
const I = Ln(i.sizes, f, y);
|
|
175
178
|
c({
|
|
176
179
|
...l,
|
|
177
180
|
...Object.fromEntries(
|
|
178
|
-
t.map((
|
|
181
|
+
t.map((d, o) => [d, I[o]]).filter(([d]) => !s.includes(d))
|
|
179
182
|
)
|
|
180
|
-
}),
|
|
181
|
-
(
|
|
182
|
-
) &&
|
|
183
|
+
}), I.some(
|
|
184
|
+
(d, o) => Math.abs(d - i.sizes[o] / 100 * f) > 1
|
|
185
|
+
) && g((d) => d + 1);
|
|
183
186
|
};
|
|
184
187
|
return {
|
|
185
|
-
sizes:
|
|
188
|
+
sizes: m,
|
|
186
189
|
minSize: C,
|
|
187
|
-
height:
|
|
188
|
-
panelHeights:
|
|
189
|
-
layoutKey: `${t.join("|")}#${
|
|
190
|
-
handleResizeEnd:
|
|
190
|
+
height: f,
|
|
191
|
+
panelHeights: h,
|
|
192
|
+
layoutKey: `${t.join("|")}#${s.join("|")}#${p}`,
|
|
193
|
+
handleResizeEnd: b
|
|
191
194
|
};
|
|
192
|
-
},
|
|
195
|
+
}, Dn = ({
|
|
193
196
|
projectName: e,
|
|
194
197
|
movingEntities: t,
|
|
195
|
-
onClose:
|
|
196
|
-
onMoveComplete:
|
|
198
|
+
onClose: s,
|
|
199
|
+
onMoveComplete: a
|
|
197
200
|
}) => {
|
|
198
|
-
const [
|
|
199
|
-
(
|
|
201
|
+
const [u] = rt(), c = Et(), { folders: p } = ze(), g = c?.tableData || [], l = O(
|
|
202
|
+
(b) => c?.getEntityById(b) || p.find((i) => i.id === b),
|
|
200
203
|
[p, c]
|
|
201
|
-
),
|
|
202
|
-
async (
|
|
203
|
-
if (!t ||
|
|
204
|
-
const
|
|
204
|
+
), m = O(
|
|
205
|
+
async (b) => {
|
|
206
|
+
if (!t || b.length === 0) return;
|
|
207
|
+
const i = b[0];
|
|
205
208
|
try {
|
|
206
|
-
const
|
|
207
|
-
(
|
|
208
|
-
id: `move-${
|
|
209
|
+
const I = t.entities.map(
|
|
210
|
+
(o, n) => ({
|
|
211
|
+
id: `move-${o.entityId}-${Date.now()}-${n}`,
|
|
209
212
|
type: "update",
|
|
210
|
-
entityType:
|
|
211
|
-
entityId:
|
|
212
|
-
data:
|
|
213
|
+
entityType: o.entityType,
|
|
214
|
+
entityId: o.entityId,
|
|
215
|
+
data: o.entityType === "folder" ? { parentId: i } : { folderId: i }
|
|
213
216
|
})
|
|
214
|
-
),
|
|
217
|
+
), d = (await u({
|
|
215
218
|
projectName: e,
|
|
216
219
|
operationsRequestModel: {
|
|
217
|
-
operations:
|
|
220
|
+
operations: I
|
|
218
221
|
}
|
|
219
|
-
}).unwrap())?.operations?.filter((
|
|
220
|
-
if (
|
|
221
|
-
const
|
|
222
|
-
throw new Error(
|
|
222
|
+
}).unwrap())?.operations?.filter((o) => o.success === !1) || [];
|
|
223
|
+
if (d.length > 0) {
|
|
224
|
+
const o = d.map((n) => n.detail).join(", ");
|
|
225
|
+
throw new Error(o || "Some move operations failed");
|
|
223
226
|
}
|
|
224
|
-
|
|
225
|
-
} catch (
|
|
226
|
-
let
|
|
227
|
-
if (
|
|
227
|
+
a?.(i);
|
|
228
|
+
} catch (I) {
|
|
229
|
+
let r = Qe(I) || "Failed to move entities";
|
|
230
|
+
if (r.includes("already exists"))
|
|
228
231
|
if (t.entities.length > 1)
|
|
229
|
-
|
|
232
|
+
r = "Cannot move some entities - one or more entities with the same name already exist in the target location";
|
|
230
233
|
else if (t.entities[0].entityType === "task") {
|
|
231
|
-
const
|
|
232
|
-
|
|
234
|
+
const o = r.match(/name '.*?, (.+?)' already exists/);
|
|
235
|
+
r = `Cannot move "${o ? o[1] : "this task"}" - a task with this name already exists in the target folder`;
|
|
233
236
|
} else {
|
|
234
|
-
const
|
|
235
|
-
|
|
237
|
+
const o = r.match(/name '.*?, (.+?)' already exists/);
|
|
238
|
+
r = `Cannot move "${o ? o[1] : "this folder"}" - a folder with this name already exists in the target location`;
|
|
236
239
|
}
|
|
237
|
-
|
|
240
|
+
Ye.error(r);
|
|
238
241
|
} finally {
|
|
239
|
-
|
|
242
|
+
s();
|
|
240
243
|
}
|
|
241
244
|
},
|
|
242
|
-
[t, e,
|
|
243
|
-
), y =
|
|
245
|
+
[t, e, u, s, a]
|
|
246
|
+
), y = O(async () => {
|
|
244
247
|
if (t)
|
|
245
248
|
try {
|
|
246
|
-
const
|
|
247
|
-
(
|
|
248
|
-
id: `move-to-root-${
|
|
249
|
+
const b = t.entities.map(
|
|
250
|
+
(r, d) => ({
|
|
251
|
+
id: `move-to-root-${r.entityId}-${Date.now()}-${d}`,
|
|
249
252
|
type: "update",
|
|
250
|
-
entityType:
|
|
251
|
-
entityId:
|
|
252
|
-
data:
|
|
253
|
+
entityType: r.entityType,
|
|
254
|
+
entityId: r.entityId,
|
|
255
|
+
data: r.entityType === "folder" ? { parentId: null } : { folderId: null }
|
|
253
256
|
})
|
|
254
|
-
),
|
|
257
|
+
), I = (await u({
|
|
255
258
|
projectName: e,
|
|
256
259
|
operationsRequestModel: {
|
|
257
|
-
operations:
|
|
260
|
+
operations: b
|
|
258
261
|
}
|
|
259
|
-
}).unwrap())?.operations?.filter((
|
|
260
|
-
if (
|
|
261
|
-
const
|
|
262
|
-
throw new Error(
|
|
262
|
+
}).unwrap())?.operations?.filter((r) => r.success === !1) || [];
|
|
263
|
+
if (I.length > 0) {
|
|
264
|
+
const r = I.map((d) => d.detail).join(", ");
|
|
265
|
+
throw new Error(r || "Some move operations failed");
|
|
263
266
|
}
|
|
264
|
-
} catch (
|
|
265
|
-
let
|
|
266
|
-
|
|
267
|
+
} catch (b) {
|
|
268
|
+
let i = Qe(b) || "Failed to move entities to root";
|
|
269
|
+
Ye.error(i);
|
|
267
270
|
} finally {
|
|
268
|
-
|
|
271
|
+
s();
|
|
269
272
|
}
|
|
270
|
-
}, [t, e,
|
|
273
|
+
}, [t, e, u, s]), C = O(() => {
|
|
271
274
|
if (!t) return [];
|
|
272
|
-
const
|
|
273
|
-
return t.entities.forEach((
|
|
274
|
-
|
|
275
|
-
}), p.forEach((
|
|
276
|
-
t.entities.some((
|
|
277
|
-
const
|
|
278
|
-
return
|
|
279
|
-
(
|
|
275
|
+
const b = [];
|
|
276
|
+
return t.entities.forEach((i) => {
|
|
277
|
+
b.push(i.entityId);
|
|
278
|
+
}), p.forEach((i) => {
|
|
279
|
+
t.entities.some((r) => {
|
|
280
|
+
const d = l(r.entityId);
|
|
281
|
+
return d?.name ? g.filter((n) => r.entityType === "folder" ? n.entityType === "folder" && n.parentId === i.id : r.entityType === "task" ? n.entityType === "task" && n.folderId === i.id : !1).some(
|
|
282
|
+
(n) => n.name === d.name && n.entityId !== r.entityId
|
|
280
283
|
) : !1;
|
|
281
|
-
}) &&
|
|
282
|
-
}), [...new Set(
|
|
283
|
-
}, [t, p,
|
|
284
|
-
(
|
|
284
|
+
}) && b.push(i.id);
|
|
285
|
+
}), [...new Set(b)];
|
|
286
|
+
}, [t, p, g, l]), f = O(
|
|
287
|
+
(b) => {
|
|
285
288
|
if (!t) return;
|
|
286
289
|
if (t.entities.some(
|
|
287
|
-
(
|
|
290
|
+
(o) => o.entityType === "folder" && o.entityId === b
|
|
288
291
|
))
|
|
289
292
|
return "Cannot move folder to itself";
|
|
290
293
|
if (t.entities.some(
|
|
291
|
-
(
|
|
294
|
+
(o) => o.currentParentId === b
|
|
292
295
|
))
|
|
293
296
|
return "Cannot move to the same location";
|
|
294
|
-
const
|
|
295
|
-
if (
|
|
296
|
-
const
|
|
297
|
-
const
|
|
298
|
-
return
|
|
299
|
-
(
|
|
297
|
+
const r = p.find((o) => o.id === b);
|
|
298
|
+
if (r) {
|
|
299
|
+
const o = t.entities.find((n) => {
|
|
300
|
+
const v = l(n.entityId);
|
|
301
|
+
return v?.name ? g.filter((x) => n.entityType === "folder" ? x.entityType === "folder" && x.parentId === r.id : n.entityType === "task" ? x.entityType === "task" && x.folderId === r.id : !1).some(
|
|
302
|
+
(x) => x.name === v.name && x.entityId !== n.entityId
|
|
300
303
|
) : !1;
|
|
301
304
|
});
|
|
302
|
-
if (
|
|
303
|
-
return `Cannot move "${l(
|
|
305
|
+
if (o)
|
|
306
|
+
return `Cannot move "${l(o.entityId)?.name || "Entity"}" - an entity with the same name already exists in this folder`;
|
|
304
307
|
}
|
|
305
308
|
return t.entities.some(
|
|
306
|
-
(
|
|
309
|
+
(o) => o.entityType === "folder"
|
|
307
310
|
) ? "Cannot move folder to its child" : "Cannot move to this location";
|
|
308
311
|
},
|
|
309
|
-
[t, p,
|
|
310
|
-
),
|
|
312
|
+
[t, p, g, l]
|
|
313
|
+
), h = _(() => t?.entities.every((b) => b.entityType === "folder") || !1, [t]);
|
|
311
314
|
return {
|
|
312
|
-
handleMoveSubmit:
|
|
315
|
+
handleMoveSubmit: m,
|
|
313
316
|
handleMoveToRoot: y,
|
|
314
317
|
getDisabledFolderIds: C,
|
|
315
|
-
getDisabledMessage:
|
|
316
|
-
canMoveToRoot:
|
|
318
|
+
getDisabledMessage: f,
|
|
319
|
+
canMoveToRoot: h
|
|
317
320
|
};
|
|
318
|
-
},
|
|
321
|
+
}, Rn = ({
|
|
319
322
|
projectName: e,
|
|
320
323
|
movingEntities: t,
|
|
321
|
-
onClose:
|
|
322
|
-
onMoveComplete:
|
|
324
|
+
onClose: s,
|
|
325
|
+
onMoveComplete: a
|
|
323
326
|
}) => {
|
|
324
|
-
const { handleMoveSubmit:
|
|
327
|
+
const { handleMoveSubmit: u, handleMoveToRoot: c, getDisabledFolderIds: p, getDisabledMessage: g } = Dn({
|
|
325
328
|
projectName: e,
|
|
326
329
|
movingEntities: t ?? null,
|
|
327
|
-
onClose:
|
|
328
|
-
onMoveComplete:
|
|
330
|
+
onClose: s,
|
|
331
|
+
onMoveComplete: a
|
|
329
332
|
});
|
|
330
333
|
return t?.entities.length ? /* @__PURE__ */ E(
|
|
331
|
-
|
|
334
|
+
Ht,
|
|
332
335
|
{
|
|
333
336
|
projectName: e,
|
|
334
337
|
entityType: "folder",
|
|
335
|
-
onSubmit:
|
|
336
|
-
onClose:
|
|
338
|
+
onSubmit: u,
|
|
339
|
+
onClose: s,
|
|
337
340
|
showMoveToRoot: t.entities.every(
|
|
338
341
|
(l) => l.entityType === "folder"
|
|
339
342
|
),
|
|
340
343
|
onMoveToRoot: c,
|
|
341
344
|
disabledIds: p(),
|
|
342
|
-
getDisabledMessage:
|
|
345
|
+
getDisabledMessage: g
|
|
343
346
|
}
|
|
344
347
|
) : null;
|
|
345
|
-
},
|
|
346
|
-
const [
|
|
348
|
+
}, kn = ({ projectName: e, useExtraSlices: t }) => {
|
|
349
|
+
const [s, { isLoading: a, isFetching: u }] = Nt(), { formatAssignees: c } = t();
|
|
347
350
|
return {
|
|
348
351
|
getData: async () => {
|
|
349
|
-
const
|
|
350
|
-
return c(
|
|
352
|
+
const g = await s({ projectName: e || "" }, !0).unwrap();
|
|
353
|
+
return c(g);
|
|
351
354
|
},
|
|
352
|
-
isLoading:
|
|
355
|
+
isLoading: a || u
|
|
353
356
|
};
|
|
354
|
-
},
|
|
355
|
-
const { isLoading:
|
|
356
|
-
return { project:
|
|
357
|
-
(
|
|
358
|
-
) : void 0, isLoading:
|
|
359
|
-
},
|
|
357
|
+
}, An = ({ scopes: e, useExtraSlices: t }) => {
|
|
358
|
+
const { isLoading: s, productTypes: a, ...u } = ye(), { formatStatuses: c, formatTaskTypes: p, formatProductTypes: g, formatTypes: l, formatAttribute: m } = t();
|
|
359
|
+
return { project: u, getStatuses: async () => c(u, e), getTypes: async () => l(u), getTaskTypes: async () => p(u), getProductTypes: async () => g(a), getAttribute: async (i) => m ? m(i).map(
|
|
360
|
+
(I) => _t(I.icon ?? void 0) ? { ...I, icon: void 0, img: I.icon, imgShape: "circle" } : I
|
|
361
|
+
) : void 0, isLoading: s };
|
|
362
|
+
}, Mn = ({ entityTypes: e, request: t }) => {
|
|
360
363
|
const {
|
|
361
|
-
attributes:
|
|
362
|
-
isLoading: { siteInfo:
|
|
363
|
-
} =
|
|
364
|
-
return { attributes:
|
|
365
|
-
(
|
|
366
|
-
), isLoading:
|
|
367
|
-
},
|
|
368
|
-
if (t.active && !
|
|
369
|
-
if (!t.active &&
|
|
370
|
-
const
|
|
371
|
-
return new Date(
|
|
372
|
-
}),
|
|
373
|
-
const { projectName: t } =
|
|
374
|
-
data:
|
|
375
|
-
isLoading:
|
|
364
|
+
attributes: s,
|
|
365
|
+
isLoading: { siteInfo: a }
|
|
366
|
+
} = $t(), u = vt(Dt), c = u?.attribFields?.length ? u.attribFields : s, { projectName: p } = ye();
|
|
367
|
+
return { attributes: sn(c, { projectName: p, request: t ?? [] }).filter((m) => it(m.data)).filter((m) => e.some((y) => m.scope?.includes(y))).map(
|
|
368
|
+
(m) => m.data.enum?.some((y) => y.hidden) ? { ...m, data: { ...m.data, enum: Pt(m.data.enum) } } : m
|
|
369
|
+
), isLoading: a };
|
|
370
|
+
}, _n = "snippet_folder", ge = "folder", Pn = (e) => `${ge}-${e}`, Ne = (e) => [...e].sort((t, s) => {
|
|
371
|
+
if (t.active && !s.active) return -1;
|
|
372
|
+
if (!t.active && s.active) return 1;
|
|
373
|
+
const a = new Date(t.createdAt || 0);
|
|
374
|
+
return new Date(s.createdAt || 0).getTime() - a.getTime();
|
|
375
|
+
}), On = (e = !0) => {
|
|
376
|
+
const { projectName: t } = ye(), { powerLicense: s } = Ue(), {
|
|
377
|
+
data: a,
|
|
378
|
+
isLoading: u,
|
|
376
379
|
isFetching: c
|
|
377
|
-
} =
|
|
380
|
+
} = Ft(
|
|
378
381
|
{ projectName: t || "" },
|
|
379
382
|
{
|
|
380
383
|
initialPageParam: { cursor: "" },
|
|
381
384
|
skip: !t || !e
|
|
382
385
|
}
|
|
383
|
-
), { data: p = [], isLoading:
|
|
386
|
+
), { data: p = [], isLoading: g } = jt(
|
|
384
387
|
{ projectName: t || "" },
|
|
385
|
-
{ skip: !t || !
|
|
386
|
-
), l =
|
|
387
|
-
if (!
|
|
388
|
-
const C =
|
|
389
|
-
if (
|
|
390
|
-
const
|
|
391
|
-
for (const
|
|
392
|
-
|
|
393
|
-
id:
|
|
394
|
-
folder:
|
|
388
|
+
{ skip: !t || !s || !e }
|
|
389
|
+
), l = _(() => {
|
|
390
|
+
if (!a?.pages) return [];
|
|
391
|
+
const C = a.pages.flatMap((f) => f.lists);
|
|
392
|
+
if (s && p.length > 0) {
|
|
393
|
+
const f = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Set();
|
|
394
|
+
for (const n of p)
|
|
395
|
+
f.set(n.id, {
|
|
396
|
+
id: n.id,
|
|
397
|
+
folder: n,
|
|
395
398
|
children: /* @__PURE__ */ new Map(),
|
|
396
399
|
items: [],
|
|
397
400
|
hasAnyItems: !1
|
|
398
|
-
}),
|
|
399
|
-
for (const
|
|
400
|
-
if (
|
|
401
|
-
const
|
|
402
|
-
|
|
401
|
+
}), n.parentId || h.add(n.id);
|
|
402
|
+
for (const n of p)
|
|
403
|
+
if (n.parentId && f.has(n.parentId)) {
|
|
404
|
+
const v = f.get(n.parentId), T = f.get(n.id);
|
|
405
|
+
v.children.set(n.id, T);
|
|
403
406
|
}
|
|
404
|
-
const
|
|
405
|
-
for (const
|
|
406
|
-
const
|
|
407
|
-
if (
|
|
408
|
-
const T =
|
|
409
|
-
T.items.push(
|
|
407
|
+
const b = [];
|
|
408
|
+
for (const n of C) {
|
|
409
|
+
const v = n.entityListFolderId;
|
|
410
|
+
if (v && f.has(v)) {
|
|
411
|
+
const T = f.get(v);
|
|
412
|
+
T.items.push(n), T.hasAnyItems = !0;
|
|
410
413
|
} else
|
|
411
|
-
|
|
414
|
+
b.push(n);
|
|
412
415
|
}
|
|
413
|
-
for (const
|
|
414
|
-
if (
|
|
415
|
-
let
|
|
416
|
-
for (;
|
|
417
|
-
const T =
|
|
416
|
+
for (const n of f.values())
|
|
417
|
+
if (n.hasAnyItems) {
|
|
418
|
+
let v = n.folder;
|
|
419
|
+
for (; v.parentId; ) {
|
|
420
|
+
const T = f.get(v.parentId);
|
|
418
421
|
if (T)
|
|
419
|
-
T.hasAnyItems = !0,
|
|
422
|
+
T.hasAnyItems = !0, v = T.folder;
|
|
420
423
|
else
|
|
421
424
|
break;
|
|
422
425
|
}
|
|
423
426
|
}
|
|
424
|
-
const
|
|
425
|
-
id:
|
|
426
|
-
name:
|
|
427
|
-
label:
|
|
427
|
+
const i = (n, v, T = []) => ({
|
|
428
|
+
id: n.id,
|
|
429
|
+
name: n.label,
|
|
430
|
+
label: n.label,
|
|
428
431
|
...T.length > 0 && { parents: T },
|
|
429
|
-
icon:
|
|
432
|
+
icon: Je(n),
|
|
430
433
|
subRows: [],
|
|
431
434
|
data: {
|
|
432
|
-
id:
|
|
433
|
-
name:
|
|
434
|
-
label:
|
|
435
|
-
entityType:
|
|
436
|
-
listId:
|
|
435
|
+
id: n.id,
|
|
436
|
+
name: n.label,
|
|
437
|
+
label: n.label,
|
|
438
|
+
entityType: n.entityType,
|
|
439
|
+
listId: n.id,
|
|
437
440
|
// for sorting
|
|
438
|
-
active:
|
|
439
|
-
createdAt:
|
|
440
|
-
updatedAt:
|
|
441
|
+
active: n.active,
|
|
442
|
+
createdAt: n.createdAt,
|
|
443
|
+
updatedAt: n.updatedAt
|
|
441
444
|
}
|
|
442
|
-
}),
|
|
443
|
-
const
|
|
444
|
-
return
|
|
445
|
-
}),
|
|
446
|
-
const
|
|
447
|
-
for (const T of
|
|
448
|
-
|
|
449
|
-
return
|
|
450
|
-
},
|
|
451
|
-
folderNodes:
|
|
452
|
-
rootFolderIds:
|
|
445
|
+
}), I = (n) => n.sort((v, T) => {
|
|
446
|
+
const x = p.findIndex((Y) => Y.id === v.id), D = p.findIndex((Y) => Y.id === T.id);
|
|
447
|
+
return x === -1 && D === -1 ? v.folder.label.localeCompare(T.folder.label) : x === -1 ? 1 : D === -1 ? -1 : x - D;
|
|
448
|
+
}), r = (n) => {
|
|
449
|
+
const v = n.items.map((T) => T.id);
|
|
450
|
+
for (const T of n.children.values())
|
|
451
|
+
v.push(...r(T));
|
|
452
|
+
return v;
|
|
453
|
+
}, d = an({
|
|
454
|
+
folderNodes: f,
|
|
455
|
+
rootFolderIds: h,
|
|
453
456
|
showEmptyFolders: !1,
|
|
454
|
-
buildFolderRowId:
|
|
455
|
-
createItemRow:
|
|
456
|
-
sortFolderNodes:
|
|
457
|
-
sortItems:
|
|
458
|
-
getFolderLabel: (
|
|
459
|
-
getFolderIcon: (
|
|
460
|
-
getFolderColor: (
|
|
461
|
-
getItemCount: (
|
|
457
|
+
buildFolderRowId: Pn,
|
|
458
|
+
createItemRow: i,
|
|
459
|
+
sortFolderNodes: I,
|
|
460
|
+
sortItems: Ne,
|
|
461
|
+
getFolderLabel: (n) => n.label,
|
|
462
|
+
getFolderIcon: (n) => n.data?.icon || _n,
|
|
463
|
+
getFolderColor: (n) => n.data?.color,
|
|
464
|
+
getItemCount: (n) => n.items.length + Array.from(n.children.values()).reduce((v, T) => v + T.items.length, 0)
|
|
462
465
|
});
|
|
463
|
-
for (const
|
|
464
|
-
if (
|
|
465
|
-
const T =
|
|
466
|
-
|
|
466
|
+
for (const n of d) {
|
|
467
|
+
if (n.id.startsWith(ge + "-")) {
|
|
468
|
+
const T = n.id.substring((ge + "-").length), x = f.get(T);
|
|
469
|
+
x && (n.data = { ...n.data, childListIds: r(x) });
|
|
467
470
|
}
|
|
468
|
-
const
|
|
469
|
-
for (;
|
|
470
|
-
const T =
|
|
471
|
-
if (T.id.startsWith(
|
|
472
|
-
const
|
|
473
|
-
D && (T.data = { ...T.data, childListIds:
|
|
471
|
+
const v = [...n.subRows || []];
|
|
472
|
+
for (; v.length > 0; ) {
|
|
473
|
+
const T = v.shift();
|
|
474
|
+
if (T.id.startsWith(ge + "-")) {
|
|
475
|
+
const x = T.id.substring((ge + "-").length), D = f.get(x);
|
|
476
|
+
D && (T.data = { ...T.data, childListIds: r(D) });
|
|
474
477
|
}
|
|
475
|
-
T.subRows &&
|
|
478
|
+
T.subRows && v.push(...T.subRows);
|
|
476
479
|
}
|
|
477
480
|
}
|
|
478
|
-
const
|
|
479
|
-
return [...
|
|
481
|
+
const o = Ne(b).map((n) => i(n));
|
|
482
|
+
return [...d, ...o];
|
|
480
483
|
}
|
|
481
|
-
return
|
|
482
|
-
id:
|
|
483
|
-
name:
|
|
484
|
-
label:
|
|
485
|
-
icon:
|
|
484
|
+
return Ne(C).map((f) => ({
|
|
485
|
+
id: f.id,
|
|
486
|
+
name: f.label,
|
|
487
|
+
label: f.label,
|
|
488
|
+
icon: Je(f),
|
|
486
489
|
subRows: [],
|
|
487
490
|
data: {
|
|
488
|
-
id:
|
|
489
|
-
name:
|
|
490
|
-
label:
|
|
491
|
-
entityType:
|
|
492
|
-
listId:
|
|
493
|
-
active:
|
|
494
|
-
createdAt:
|
|
495
|
-
updatedAt:
|
|
491
|
+
id: f.id,
|
|
492
|
+
name: f.label,
|
|
493
|
+
label: f.label,
|
|
494
|
+
entityType: f.entityType,
|
|
495
|
+
listId: f.id,
|
|
496
|
+
active: f.active,
|
|
497
|
+
createdAt: f.createdAt,
|
|
498
|
+
updatedAt: f.updatedAt
|
|
496
499
|
}
|
|
497
500
|
}));
|
|
498
|
-
}, [
|
|
501
|
+
}, [a, s, p]), m = s && p.length > 0;
|
|
499
502
|
return {
|
|
500
|
-
getData:
|
|
501
|
-
isLoading:
|
|
502
|
-
isExpandable:
|
|
503
|
+
getData: O(async () => l, [l]),
|
|
504
|
+
isLoading: u || c || g,
|
|
505
|
+
isExpandable: m
|
|
503
506
|
};
|
|
504
|
-
},
|
|
505
|
-
const c =
|
|
507
|
+
}, Nn = (e, t, s, a) => e.id === "noValue" ? t.get(at)?.count ?? (a ? 0 : void 0) : e.id === "hasValue" ? a ? s : void 0 : t.get(e.id)?.count ?? (e.name ? t.get(e.name)?.count : void 0) ?? (a ? 0 : void 0), ht = (e, t, s, a) => t ? e.map((u) => {
|
|
508
|
+
const c = Nn(u, t, s, a);
|
|
506
509
|
return {
|
|
507
|
-
...
|
|
508
|
-
badge: c != null ? String(c) :
|
|
509
|
-
subRows:
|
|
510
|
+
...u,
|
|
511
|
+
badge: c != null ? String(c) : u.badge,
|
|
512
|
+
subRows: u.subRows?.length ? ht(u.subRows, t, s, a) : u.subRows
|
|
510
513
|
};
|
|
511
|
-
}) : e,
|
|
514
|
+
}) : e, Fn = (e) => ({
|
|
512
515
|
id: "noValue",
|
|
513
516
|
name: "noValue",
|
|
514
517
|
label: `No ${e}`,
|
|
@@ -517,7 +520,7 @@ const et = "default", ve = { id: "label", label: "Name", desc: !1 }, De = (e) =>
|
|
|
517
520
|
data: {
|
|
518
521
|
id: "noValue"
|
|
519
522
|
}
|
|
520
|
-
}),
|
|
523
|
+
}), jn = (e) => ({
|
|
521
524
|
id: "hasValue",
|
|
522
525
|
name: "hasValue",
|
|
523
526
|
label: `Some ${e}`,
|
|
@@ -526,7 +529,7 @@ const et = "default", ve = { id: "label", label: "Name", desc: !1 }, De = (e) =>
|
|
|
526
529
|
data: {
|
|
527
530
|
id: "hasValue"
|
|
528
531
|
}
|
|
529
|
-
}),
|
|
532
|
+
}), et = [
|
|
530
533
|
{
|
|
531
534
|
label: "Hierarchy",
|
|
532
535
|
value: "hierarchy",
|
|
@@ -545,17 +548,17 @@ const et = "default", ve = { id: "label", label: "Name", desc: !1 }, De = (e) =>
|
|
|
545
548
|
{
|
|
546
549
|
label: "Task Type",
|
|
547
550
|
value: "taskType",
|
|
548
|
-
icon:
|
|
551
|
+
icon: _e("task")
|
|
549
552
|
},
|
|
550
553
|
{
|
|
551
554
|
label: "Folder Type",
|
|
552
555
|
value: "folderType",
|
|
553
|
-
icon:
|
|
556
|
+
icon: _e("folder")
|
|
554
557
|
},
|
|
555
558
|
{
|
|
556
559
|
label: "Product Type",
|
|
557
560
|
value: "productType",
|
|
558
|
-
icon:
|
|
561
|
+
icon: _e("product")
|
|
559
562
|
},
|
|
560
563
|
{
|
|
561
564
|
label: "Author",
|
|
@@ -567,191 +570,191 @@ const et = "default", ve = { id: "label", label: "Name", desc: !1 }, De = (e) =>
|
|
|
567
570
|
value: "entityList",
|
|
568
571
|
icon: "list_alt"
|
|
569
572
|
}
|
|
570
|
-
],
|
|
573
|
+
], $n = ({
|
|
571
574
|
sliceFields: e,
|
|
572
575
|
usedSliceTypes: t = [],
|
|
573
|
-
entityTypes:
|
|
574
|
-
counts:
|
|
575
|
-
filled:
|
|
576
|
+
entityTypes: s = [],
|
|
577
|
+
counts: a,
|
|
578
|
+
filled: u = 0,
|
|
576
579
|
countsComplete: c = !1,
|
|
577
580
|
sliceType: p,
|
|
578
|
-
onSliceTypeChange:
|
|
581
|
+
onSliceTypeChange: g,
|
|
579
582
|
sort: l
|
|
580
583
|
}) => {
|
|
581
584
|
const {
|
|
582
|
-
sliceType:
|
|
585
|
+
sliceType: m,
|
|
583
586
|
onSliceTypeChange: y,
|
|
584
587
|
useExtraSlices: C,
|
|
585
|
-
isLoadingExtraSlices:
|
|
586
|
-
} =
|
|
587
|
-
...
|
|
588
|
-
...
|
|
589
|
-
})),
|
|
590
|
-
() =>
|
|
591
|
-
[
|
|
592
|
-
), { attributes:
|
|
593
|
-
entityTypes:
|
|
594
|
-
request:
|
|
588
|
+
isLoadingExtraSlices: f
|
|
589
|
+
} = $e(), h = p ?? m, b = g ?? y, { projectName: i } = ye(), { formatAttribute: I } = C(), r = e.filter((w) => et.some((k) => k.value === w.value)).map((w) => ({
|
|
590
|
+
...et.find((F) => F.value === w.value),
|
|
591
|
+
...w
|
|
592
|
+
})), d = e.some((w) => w.value === "attributes"), o = h?.startsWith("attrib.") ? h.slice(7) : void 0, n = _(
|
|
593
|
+
() => o ? [o] : [],
|
|
594
|
+
[o]
|
|
595
|
+
), { attributes: v, isLoading: T } = Mn({
|
|
596
|
+
entityTypes: s,
|
|
597
|
+
request: n
|
|
595
598
|
});
|
|
596
|
-
|
|
597
|
-
(
|
|
598
|
-
label:
|
|
599
|
-
value: "attrib." +
|
|
600
|
-
icon:
|
|
599
|
+
d && typeof I == "function" && v.forEach(
|
|
600
|
+
(w) => r.push({
|
|
601
|
+
label: w.data.title || w.name,
|
|
602
|
+
value: "attrib." + w.name,
|
|
603
|
+
icon: nn(w.name, w.data.type, it(w.data))
|
|
601
604
|
})
|
|
602
605
|
);
|
|
603
|
-
const [
|
|
604
|
-
project:
|
|
605
|
-
getStatuses:
|
|
606
|
-
getTypes:
|
|
607
|
-
getTaskTypes:
|
|
608
|
-
getProductTypes:
|
|
609
|
-
getAttribute:
|
|
610
|
-
isLoading:
|
|
611
|
-
} =
|
|
612
|
-
data:
|
|
613
|
-
getData:
|
|
606
|
+
const [x, D] = z(!1), ue = !!v.find((w) => w.name === o)?.enumIsLoading, {
|
|
607
|
+
project: pe,
|
|
608
|
+
getStatuses: ne,
|
|
609
|
+
getTypes: me,
|
|
610
|
+
getTaskTypes: se,
|
|
611
|
+
getProductTypes: oe,
|
|
612
|
+
getAttribute: Q,
|
|
613
|
+
isLoading: W
|
|
614
|
+
} = An({ scopes: s, useExtraSlices: C }), {
|
|
615
|
+
data: J,
|
|
616
|
+
getData: ae,
|
|
614
617
|
isFetching: L
|
|
615
|
-
} =
|
|
616
|
-
projectName:
|
|
617
|
-
folderTypes:
|
|
618
|
+
} = Gt({
|
|
619
|
+
projectName: i || "",
|
|
620
|
+
folderTypes: pe?.folderTypes || [],
|
|
618
621
|
includeColors: !0
|
|
619
|
-
}), { getData:
|
|
620
|
-
projectName:
|
|
622
|
+
}), { getData: A, isLoading: R } = kn({
|
|
623
|
+
projectName: i,
|
|
621
624
|
useExtraSlices: C
|
|
622
625
|
}), {
|
|
623
|
-
getData:
|
|
624
|
-
isLoading:
|
|
625
|
-
isExpandable:
|
|
626
|
-
} =
|
|
626
|
+
getData: ee,
|
|
627
|
+
isLoading: be,
|
|
628
|
+
isExpandable: Ce
|
|
629
|
+
} = On(h === "entityList"), te = L || W || R || f && h !== "hierarchy" || be && h === "entityList" || T || ue, X = {
|
|
627
630
|
hierarchy: {
|
|
628
|
-
getData:
|
|
631
|
+
getData: ae,
|
|
629
632
|
isLoading: L,
|
|
630
633
|
isExpandable: !0
|
|
631
634
|
},
|
|
632
635
|
assignees: {
|
|
633
|
-
getData:
|
|
634
|
-
isLoading:
|
|
636
|
+
getData: A,
|
|
637
|
+
isLoading: R,
|
|
635
638
|
isExpandable: !1,
|
|
636
639
|
noValue: !0,
|
|
637
640
|
hasValue: !0
|
|
638
641
|
},
|
|
639
642
|
author: {
|
|
640
|
-
getData:
|
|
641
|
-
isLoading:
|
|
643
|
+
getData: A,
|
|
644
|
+
isLoading: R,
|
|
642
645
|
isExpandable: !1
|
|
643
646
|
},
|
|
644
647
|
status: {
|
|
645
|
-
getData:
|
|
646
|
-
isLoading:
|
|
648
|
+
getData: ne,
|
|
649
|
+
isLoading: W,
|
|
647
650
|
isExpandable: !1
|
|
648
651
|
},
|
|
649
652
|
type: {
|
|
650
|
-
getData:
|
|
651
|
-
isLoading:
|
|
653
|
+
getData: me,
|
|
654
|
+
isLoading: W,
|
|
652
655
|
isExpandable: !0
|
|
653
656
|
},
|
|
654
657
|
taskType: {
|
|
655
|
-
getData:
|
|
656
|
-
isLoading:
|
|
658
|
+
getData: se,
|
|
659
|
+
isLoading: W,
|
|
657
660
|
isExpandable: !1
|
|
658
661
|
},
|
|
659
662
|
productType: {
|
|
660
|
-
getData:
|
|
663
|
+
getData: oe,
|
|
661
664
|
isLoading: !1,
|
|
662
665
|
isExpandable: !1
|
|
663
666
|
},
|
|
664
667
|
entityList: {
|
|
665
|
-
getData:
|
|
666
|
-
isLoading:
|
|
667
|
-
isExpandable:
|
|
668
|
+
getData: ee,
|
|
669
|
+
isLoading: be,
|
|
670
|
+
isExpandable: Ce
|
|
668
671
|
}
|
|
669
672
|
};
|
|
670
|
-
for (const
|
|
671
|
-
|
|
672
|
-
getData: () =>
|
|
673
|
-
isLoading: T || !!
|
|
673
|
+
for (const w of v)
|
|
674
|
+
X["attrib." + w.name] = {
|
|
675
|
+
getData: () => Q(w),
|
|
676
|
+
isLoading: T || !!w.enumIsLoading,
|
|
674
677
|
isExpandable: !1,
|
|
675
678
|
isAttribute: !0
|
|
676
679
|
};
|
|
677
|
-
const
|
|
678
|
-
(
|
|
680
|
+
const ie = { data: [], isExpandable: !1 }, [B, P] = z(ie), K = X[h], re = r.find(
|
|
681
|
+
(w) => X[w.value] && !t.includes(w.value)
|
|
679
682
|
)?.value;
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
}, [
|
|
683
|
-
const
|
|
684
|
-
const
|
|
685
|
-
if (!
|
|
686
|
-
console.warn(`Slice type ${
|
|
683
|
+
de(() => {
|
|
684
|
+
te || K || !re || b(re, !1);
|
|
685
|
+
}, [te, K, re]);
|
|
686
|
+
const Le = (w, k) => {
|
|
687
|
+
const F = X[w];
|
|
688
|
+
if (!F) {
|
|
689
|
+
console.warn(`Slice type ${w} not found`);
|
|
687
690
|
return;
|
|
688
691
|
}
|
|
689
|
-
(
|
|
692
|
+
(F.isAttribute && d || e.some((le) => le.value === w)) && b(w, k);
|
|
690
693
|
};
|
|
691
|
-
|
|
692
|
-
if (
|
|
694
|
+
de(() => {
|
|
695
|
+
if (te) return;
|
|
693
696
|
(async () => {
|
|
694
697
|
try {
|
|
695
|
-
if (!
|
|
698
|
+
if (!K) return;
|
|
696
699
|
D(!0);
|
|
697
|
-
const
|
|
698
|
-
if (
|
|
700
|
+
const k = await K.getData();
|
|
701
|
+
if (k === void 0)
|
|
699
702
|
throw window.alert(
|
|
700
703
|
"Slice options failed to load. This likely means the PowerFeatures addon is out of date. Please update to the latest version."
|
|
701
|
-
),
|
|
702
|
-
|
|
703
|
-
data:
|
|
704
|
-
isExpandable:
|
|
704
|
+
), b(re ?? "hierarchy", !1), new Error("Slice data is undefined");
|
|
705
|
+
K.hasValue && k.unshift(jn(h)), K.noValue && k.unshift(Fn(h)), P({
|
|
706
|
+
data: k,
|
|
707
|
+
isExpandable: K.isExpandable
|
|
705
708
|
});
|
|
706
|
-
} catch (
|
|
707
|
-
console.error("Error fetching slice data:",
|
|
709
|
+
} catch (k) {
|
|
710
|
+
console.error("Error fetching slice data:", k), P(ie);
|
|
708
711
|
} finally {
|
|
709
712
|
D(!1);
|
|
710
713
|
}
|
|
711
714
|
})();
|
|
712
|
-
}, [
|
|
713
|
-
const
|
|
714
|
-
() =>
|
|
715
|
-
[
|
|
716
|
-
),
|
|
717
|
-
() =>
|
|
718
|
-
[
|
|
719
|
-
),
|
|
720
|
-
const
|
|
721
|
-
for (;
|
|
722
|
-
const
|
|
723
|
-
if (
|
|
724
|
-
for (const
|
|
725
|
-
|
|
715
|
+
}, [h, i, te, h === "hierarchy" ? J : null]);
|
|
716
|
+
const Z = l?.by, Se = !!l?.desc, N = _(
|
|
717
|
+
() => Z ? Sn(B.data, h, { by: Z, desc: Se }) : B.data,
|
|
718
|
+
[B.data, h, Z, Se]
|
|
719
|
+
), j = _(
|
|
720
|
+
() => ht(N, a, u, c),
|
|
721
|
+
[N, a, u, c]
|
|
722
|
+
), Ve = _(() => {
|
|
723
|
+
const w = /* @__PURE__ */ new Map(), k = [...j];
|
|
724
|
+
for (; k.length > 0; ) {
|
|
725
|
+
const F = k.shift();
|
|
726
|
+
if (F && (w.set(F.id, F), F.subRows && F.subRows.length > 0))
|
|
727
|
+
for (const le of F.subRows)
|
|
728
|
+
k.push(le);
|
|
726
729
|
}
|
|
727
|
-
return
|
|
728
|
-
}, [
|
|
730
|
+
return w;
|
|
731
|
+
}, [j]);
|
|
729
732
|
return {
|
|
730
|
-
sliceOptions:
|
|
731
|
-
table: { ...
|
|
732
|
-
sliceMap:
|
|
733
|
-
isLoading:
|
|
734
|
-
sliceType:
|
|
735
|
-
handleSliceTypeChange:
|
|
733
|
+
sliceOptions: r,
|
|
734
|
+
table: { ...B, data: j },
|
|
735
|
+
sliceMap: Ve,
|
|
736
|
+
isLoading: X[h] && X[h].isLoading || x || te,
|
|
737
|
+
sliceType: h,
|
|
738
|
+
handleSliceTypeChange: Le
|
|
736
739
|
};
|
|
737
|
-
},
|
|
738
|
-
const
|
|
739
|
-
() => (
|
|
740
|
-
[
|
|
741
|
-
), p = !!
|
|
740
|
+
}, zn = /* @__PURE__ */ new Map(), Un = (e, t, s, a) => {
|
|
741
|
+
const u = _(() => ({ id: t, desc: !1 }), [t]), c = _(
|
|
742
|
+
() => (s ?? []).filter((b) => b !== t).map((b) => ({ id: b, desc: !1 })),
|
|
743
|
+
[s, t]
|
|
744
|
+
), p = !!a || !e, g = e?.entity === "version" ? { entity: "version", groupBy: u, extraGroupBys: c, args: e.args, skip: p } : {
|
|
742
745
|
entity: "task",
|
|
743
|
-
groupBy:
|
|
746
|
+
groupBy: u,
|
|
744
747
|
extraGroupBys: c,
|
|
745
748
|
args: e?.args ?? { projectName: "" },
|
|
746
749
|
skip: p
|
|
747
|
-
}, { counts: l, total:
|
|
750
|
+
}, { counts: l, total: m, complete: y } = on(g), C = l?.get(at)?.count ?? 0, f = Math.max(m - C, 0);
|
|
748
751
|
return {
|
|
749
|
-
counts: p ? void 0 : l ?? (y ?
|
|
750
|
-
total:
|
|
751
|
-
filled:
|
|
752
|
+
counts: p ? void 0 : l ?? (y ? zn : void 0),
|
|
753
|
+
total: m,
|
|
754
|
+
filled: f,
|
|
752
755
|
complete: !p && y
|
|
753
756
|
};
|
|
754
|
-
},
|
|
757
|
+
}, Bn = U.div`
|
|
755
758
|
display: flex;
|
|
756
759
|
align-items: center;
|
|
757
760
|
|
|
@@ -759,27 +762,27 @@ const et = "default", ve = { id: "label", label: "Name", desc: !1 }, De = (e) =>
|
|
|
759
762
|
flex: 1;
|
|
760
763
|
min-width: 0;
|
|
761
764
|
}
|
|
762
|
-
`,
|
|
765
|
+
`, Vn = U(kt)`
|
|
763
766
|
flex: 1;
|
|
764
767
|
min-width: 0;
|
|
765
768
|
height: 28px;
|
|
766
769
|
min-height: 28px;
|
|
767
|
-
`,
|
|
768
|
-
const
|
|
769
|
-
|
|
770
|
-
}, p = (
|
|
771
|
-
const l =
|
|
770
|
+
`, Hn = ({ open: e, value: t, subject: s, onChange: a }) => {
|
|
771
|
+
const u = () => a(e ? void 0 : ""), c = (g) => {
|
|
772
|
+
g.key === "Escape" && a(void 0);
|
|
773
|
+
}, p = (g) => {
|
|
774
|
+
const l = Ot(g.clipboardData.getData("text"));
|
|
772
775
|
if (l === null) return;
|
|
773
|
-
|
|
774
|
-
const
|
|
775
|
-
|
|
776
|
+
g.preventDefault();
|
|
777
|
+
const m = g.currentTarget, y = m.selectionStart ?? t.length, C = m.selectionEnd ?? t.length, f = y + l.length;
|
|
778
|
+
a(t.slice(0, y) + l + t.slice(C)), requestAnimationFrame(() => m.setSelectionRange(f, f));
|
|
776
779
|
};
|
|
777
|
-
return /* @__PURE__ */
|
|
780
|
+
return /* @__PURE__ */ G(Bn, { className: q({ open: e }), children: [
|
|
778
781
|
e && /* @__PURE__ */ E(
|
|
779
|
-
|
|
782
|
+
Vn,
|
|
780
783
|
{
|
|
781
784
|
value: t,
|
|
782
|
-
onChange: (
|
|
785
|
+
onChange: (g) => a(g.target.value),
|
|
783
786
|
placeholder: "Search",
|
|
784
787
|
autoFocus: !0,
|
|
785
788
|
onKeyDown: c,
|
|
@@ -787,75 +790,75 @@ const et = "default", ve = { id: "label", label: "Name", desc: !1 }, De = (e) =>
|
|
|
787
790
|
}
|
|
788
791
|
),
|
|
789
792
|
/* @__PURE__ */ E(
|
|
790
|
-
|
|
793
|
+
he,
|
|
791
794
|
{
|
|
792
795
|
icon: e ? "close" : "search",
|
|
793
|
-
onClick:
|
|
794
|
-
className:
|
|
795
|
-
"data-tooltip": e ? "Close search" : `Search ${
|
|
796
|
+
onClick: u,
|
|
797
|
+
className: q({ open: e }),
|
|
798
|
+
"data-tooltip": e ? "Close search" : `Search ${s}`
|
|
796
799
|
}
|
|
797
800
|
)
|
|
798
801
|
] });
|
|
799
|
-
},
|
|
800
|
-
e.toggleExpanded(t), e.subRows?.forEach((
|
|
801
|
-
},
|
|
802
|
-
const { onOpenNew:
|
|
803
|
-
(
|
|
802
|
+
}, Fe = (e, t) => {
|
|
803
|
+
e.toggleExpanded(t), e.subRows?.forEach((s) => Fe(s, t));
|
|
804
|
+
}, tt = (e) => e.map((t) => t.id).filter(Boolean), Gn = (e, t, s, a) => {
|
|
805
|
+
const { onOpenNew: u } = dn(), { projectName: c } = ye(), { setEntities: p } = zt(), g = un(), [l] = rt(), { deleteEntities: m } = Ut(), [y, C] = z(null), f = O(
|
|
806
|
+
(r, d) => d.map((o) => t?.get(o) || (o === r.id ? r : void 0)).filter((o) => !!o),
|
|
804
807
|
[t]
|
|
805
|
-
),
|
|
808
|
+
), h = _(
|
|
806
809
|
() => ({
|
|
807
|
-
onShowDetails: (
|
|
810
|
+
onShowDetails: (r, d = [r.id]) => {
|
|
808
811
|
p({
|
|
809
812
|
entityType: "folder",
|
|
810
|
-
entities:
|
|
813
|
+
entities: d.map((o) => ({ id: o, projectName: c }))
|
|
811
814
|
});
|
|
812
815
|
},
|
|
813
816
|
onAddToList: e,
|
|
814
|
-
onMove: (
|
|
815
|
-
|
|
816
|
-
entities:
|
|
817
|
-
entityId:
|
|
818
|
-
entityType:
|
|
819
|
-
currentParentId:
|
|
817
|
+
onMove: (r) => {
|
|
818
|
+
a?.({
|
|
819
|
+
entities: r.map((d) => ({
|
|
820
|
+
entityId: d.id,
|
|
821
|
+
entityType: d.data?.entityType === "task" ? "task" : "folder",
|
|
822
|
+
currentParentId: d.parentId || d.data?.parentId
|
|
820
823
|
}))
|
|
821
824
|
});
|
|
822
825
|
},
|
|
823
|
-
onRename: (
|
|
824
|
-
onOpenViewer: (
|
|
825
|
-
onUploadVersion: (
|
|
826
|
-
const
|
|
827
|
-
|
|
828
|
-
folderId:
|
|
829
|
-
taskId:
|
|
826
|
+
onRename: (r) => C(r),
|
|
827
|
+
onOpenViewer: (r) => s?.(r, c),
|
|
828
|
+
onUploadVersion: (r) => {
|
|
829
|
+
const d = r.data?.entityType === "task", o = d ? r.parentId || r.data?.parentId : r.id;
|
|
830
|
+
o && g?.onOpenVersionUpload({
|
|
831
|
+
folderId: o,
|
|
832
|
+
taskId: d ? r.id : void 0
|
|
830
833
|
});
|
|
831
834
|
},
|
|
832
|
-
onDelete: (
|
|
833
|
-
const
|
|
834
|
-
const
|
|
835
|
+
onDelete: (r) => {
|
|
836
|
+
const d = r.map((o) => {
|
|
837
|
+
const n = o.data?.entityType === "task" ? "task" : "folder", v = o.parentId || o.data?.parentId;
|
|
835
838
|
return {
|
|
836
|
-
id:
|
|
837
|
-
entityType:
|
|
838
|
-
name:
|
|
839
|
-
label:
|
|
839
|
+
id: o.id,
|
|
840
|
+
entityType: n,
|
|
841
|
+
name: o.name,
|
|
842
|
+
label: o.label,
|
|
840
843
|
projectName: c,
|
|
841
|
-
folderId:
|
|
842
|
-
parentId:
|
|
844
|
+
folderId: n === "task" ? v : void 0,
|
|
845
|
+
parentId: n === "folder" ? v : void 0
|
|
843
846
|
};
|
|
844
847
|
});
|
|
845
|
-
|
|
848
|
+
m(d);
|
|
846
849
|
}
|
|
847
850
|
}),
|
|
848
851
|
[
|
|
849
852
|
e,
|
|
850
|
-
n,
|
|
851
853
|
s,
|
|
854
|
+
a,
|
|
852
855
|
c,
|
|
853
856
|
p,
|
|
854
|
-
|
|
855
|
-
|
|
857
|
+
m,
|
|
858
|
+
g
|
|
856
859
|
]
|
|
857
|
-
),
|
|
858
|
-
(
|
|
860
|
+
), b = O(
|
|
861
|
+
(r) => {
|
|
859
862
|
y && (l({
|
|
860
863
|
projectName: c,
|
|
861
864
|
operationsRequestModel: {
|
|
@@ -864,101 +867,104 @@ const et = "default", ve = { id: "label", label: "Name", desc: !1 }, De = (e) =>
|
|
|
864
867
|
type: "update",
|
|
865
868
|
entityType: y.data?.entityType === "task" ? "task" : "folder",
|
|
866
869
|
entityId: y.id,
|
|
867
|
-
data: { label:
|
|
870
|
+
data: { label: r }
|
|
868
871
|
}
|
|
869
872
|
]
|
|
870
873
|
}
|
|
871
874
|
}), C(null));
|
|
872
875
|
},
|
|
873
876
|
[c, y, l]
|
|
874
|
-
)
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
877
|
+
), i = _(
|
|
878
|
+
() => [
|
|
879
|
+
(r, { row: d, selectedRows: o }) => ({
|
|
880
|
+
label: "Show details",
|
|
881
|
+
icon: "dock_to_left",
|
|
882
|
+
shortcut: ln("click", [cn.Alt]),
|
|
883
|
+
command: () => h.onShowDetails(d.original, o)
|
|
884
|
+
}),
|
|
885
|
+
(r, { row: d }) => ({
|
|
886
|
+
label: "Rename label",
|
|
887
|
+
icon: "titlecase",
|
|
888
|
+
shortcut: "R",
|
|
889
|
+
command: () => h.onRename(d.original)
|
|
890
|
+
}),
|
|
891
|
+
(r, { row: d }) => ({
|
|
892
|
+
label: "Open in viewer",
|
|
893
|
+
icon: "play_circle",
|
|
894
|
+
command: () => h.onOpenViewer(d.original),
|
|
895
|
+
hidden: !s
|
|
896
|
+
}),
|
|
897
|
+
(r, { selectedTableRows: d }) => ({
|
|
898
|
+
label: "Expand all children",
|
|
899
|
+
icon: "expand_all",
|
|
900
|
+
command: () => d.filter((o) => o.getCanExpand() && !o.getIsExpanded()).forEach((o) => Fe(o, !0)),
|
|
901
|
+
hidden: !d.some(
|
|
902
|
+
(o) => o.getCanExpand() && !o.getIsExpanded()
|
|
903
|
+
)
|
|
904
|
+
}),
|
|
905
|
+
(r, { selectedTableRows: d }) => ({
|
|
906
|
+
label: "Collapse all children",
|
|
907
|
+
icon: "collapse_all",
|
|
908
|
+
command: () => d.filter((o) => o.getCanExpand() && o.getIsExpanded()).forEach((o) => Fe(o, !1)),
|
|
909
|
+
hidden: !d.some(
|
|
910
|
+
(o) => o.getCanExpand() && o.getIsExpanded()
|
|
911
|
+
)
|
|
912
|
+
}),
|
|
913
|
+
(r, { row: d, selectedRows: o }) => {
|
|
914
|
+
const n = h.onAddToList?.(d.original, o);
|
|
915
|
+
return n ? Array.isArray(n) ? n : [n] : void 0;
|
|
916
|
+
},
|
|
917
|
+
(r, { row: d }) => ({
|
|
918
|
+
label: "Upload version",
|
|
919
|
+
icon: "upload",
|
|
920
|
+
command: () => h.onUploadVersion(d.original)
|
|
921
|
+
}),
|
|
922
|
+
(r, { row: d, selectedRows: o }) => ({
|
|
923
|
+
label: "Move",
|
|
924
|
+
icon: "drive_file_move",
|
|
925
|
+
command: () => h.onMove(f(d.original, o)),
|
|
926
|
+
hidden: !a
|
|
927
|
+
}),
|
|
928
|
+
(r, { row: d, selectedRows: o }) => ({
|
|
929
|
+
label: ve.folder.createLabel,
|
|
930
|
+
icon: ve.folder.icon,
|
|
931
|
+
command: () => u?.("folder", {
|
|
932
|
+
parentFolderIds: tt(
|
|
933
|
+
f(d.original, o)
|
|
902
934
|
)
|
|
903
|
-
})
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
935
|
+
})
|
|
936
|
+
}),
|
|
937
|
+
(r, { row: d, selectedRows: o }) => ({
|
|
938
|
+
label: ve.task.createLabel,
|
|
939
|
+
icon: ve.task.icon,
|
|
940
|
+
command: () => u?.("task", {
|
|
941
|
+
parentFolderIds: tt(
|
|
942
|
+
f(d.original, o)
|
|
910
943
|
)
|
|
911
|
-
}),
|
|
912
|
-
(u, { row: o, selectedRows: i }) => {
|
|
913
|
-
const b = g.onAddToList?.(o.original, i);
|
|
914
|
-
return b ? Array.isArray(b) ? b : [b] : void 0;
|
|
915
|
-
},
|
|
916
|
-
(u, { row: o }) => ({
|
|
917
|
-
label: "Upload version",
|
|
918
|
-
icon: "upload",
|
|
919
|
-
command: () => g.onUploadVersion(o.original)
|
|
920
|
-
}),
|
|
921
|
-
(u, { row: o, selectedRows: i }) => ({
|
|
922
|
-
label: "Move",
|
|
923
|
-
icon: "drive_file_move",
|
|
924
|
-
command: () => g.onMove(m(o.original, i)),
|
|
925
|
-
hidden: !s
|
|
926
|
-
}),
|
|
927
|
-
(u, { row: o, selectedRows: i }) => ({
|
|
928
|
-
label: Te.folder.createLabel,
|
|
929
|
-
icon: Te.folder.icon,
|
|
930
|
-
command: () => d?.("folder", {
|
|
931
|
-
parentFolderIds: Ge(
|
|
932
|
-
m(o.original, i)
|
|
933
|
-
)
|
|
934
|
-
})
|
|
935
|
-
}),
|
|
936
|
-
(u, { row: o, selectedRows: i }) => ({
|
|
937
|
-
label: Te.task.createLabel,
|
|
938
|
-
icon: Te.task.icon,
|
|
939
|
-
command: () => d?.("task", {
|
|
940
|
-
parentFolderIds: Ge(
|
|
941
|
-
m(o.original, i)
|
|
942
|
-
)
|
|
943
|
-
})
|
|
944
|
-
}),
|
|
945
|
-
(u, { row: o, selectedRows: i }) => ({
|
|
946
|
-
label: "Delete",
|
|
947
|
-
icon: "delete",
|
|
948
|
-
danger: !0,
|
|
949
|
-
command: () => g.onDelete(m(o.original, i))
|
|
950
944
|
})
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
945
|
+
})
|
|
946
|
+
],
|
|
947
|
+
[h, f, u]
|
|
948
|
+
), I = O(
|
|
949
|
+
(r, { row: d, selectedRows: o }) => ({
|
|
950
|
+
label: "Delete",
|
|
951
|
+
icon: "delete",
|
|
952
|
+
danger: !0,
|
|
953
|
+
command: () => h.onDelete(f(d.original, o))
|
|
954
|
+
}),
|
|
955
|
+
[h, f]
|
|
956
|
+
);
|
|
957
|
+
return {
|
|
958
|
+
rowContextMenuBuilders: i,
|
|
959
|
+
deleteContextMenuBuilder: I,
|
|
960
|
+
onOptionClick: h.onShowDetails,
|
|
961
|
+
onRename: h.onRename,
|
|
956
962
|
renamingRow: y,
|
|
957
963
|
renameInitialValue: y?.label || y?.name || "",
|
|
958
|
-
onSubmitRename:
|
|
964
|
+
onSubmitRename: b,
|
|
959
965
|
onCancelRename: () => C(null)
|
|
960
966
|
};
|
|
961
|
-
},
|
|
967
|
+
}, Wn = U(At)`
|
|
962
968
|
/* put above the menu so it's still clickable */
|
|
963
969
|
/* NOTE: this will need fixing as this also puts it above dialogs */
|
|
964
970
|
/* z-index: 1001; */
|
|
@@ -1011,82 +1017,82 @@ U.div`
|
|
|
1011
1017
|
font-weight: 600;
|
|
1012
1018
|
}
|
|
1013
1019
|
`;
|
|
1014
|
-
const
|
|
1015
|
-
const
|
|
1016
|
-
return e === "created" ? `new ${
|
|
1017
|
-
},
|
|
1020
|
+
const Kn = (e, t, s) => {
|
|
1021
|
+
const a = `${t}${s === 1 ? "" : "s"}`;
|
|
1022
|
+
return e === "created" ? `new ${a}` : e === "deleted" ? `${a} deleted` : `${s} ${a} ${e.replaceAll("_", " ")}`;
|
|
1023
|
+
}, qn = (e) => {
|
|
1018
1024
|
const t = /* @__PURE__ */ new Map();
|
|
1019
|
-
return e.forEach((
|
|
1020
|
-
const [,
|
|
1021
|
-
if (!
|
|
1022
|
-
const p = `${
|
|
1023
|
-
entityType:
|
|
1025
|
+
return e.forEach((a) => {
|
|
1026
|
+
const [, u, c] = a.topic.split(".");
|
|
1027
|
+
if (!u || !c) return;
|
|
1028
|
+
const p = `${u}.${c}`, g = t.get(p) || {
|
|
1029
|
+
entityType: u,
|
|
1024
1030
|
updateType: c,
|
|
1025
1031
|
ids: /* @__PURE__ */ new Set()
|
|
1026
1032
|
};
|
|
1027
|
-
|
|
1033
|
+
g.ids.add(a.entityId || String(a.id)), t.set(p, g);
|
|
1028
1034
|
}), `${Array.from(t.values()).map(
|
|
1029
|
-
({ entityType:
|
|
1035
|
+
({ entityType: a, updateType: u, ids: c }) => Kn(u, a, c.size)
|
|
1030
1036
|
).join(", ")} since last sync`;
|
|
1031
|
-
},
|
|
1032
|
-
({ projectNames: e, topics: t, onSync:
|
|
1033
|
-
const [
|
|
1034
|
-
|
|
1035
|
-
const
|
|
1036
|
-
|
|
1037
|
-
}, []),
|
|
1038
|
-
const
|
|
1037
|
+
}, Yn = It(
|
|
1038
|
+
({ projectNames: e, topics: t, onSync: s, shouldSyncOnUpdate: a, hideWhenNoUpdates: u = !1, ...c }, p) => {
|
|
1039
|
+
const [g, l] = z(!1), [m, y] = Bt(), { setMenuOpen: C } = ct(), f = xe(null), h = xe(), b = xt();
|
|
1040
|
+
de(() => () => {
|
|
1041
|
+
const x = h.current;
|
|
1042
|
+
h.current = void 0, x !== void 0 && clearTimeout(x);
|
|
1043
|
+
}, []), Ct(p, () => f.current, []);
|
|
1044
|
+
const i = async () => {
|
|
1039
1045
|
l(!0);
|
|
1040
1046
|
try {
|
|
1041
|
-
await
|
|
1047
|
+
await s?.(I);
|
|
1042
1048
|
} finally {
|
|
1043
1049
|
l(!1);
|
|
1044
1050
|
}
|
|
1045
|
-
}, { updates:
|
|
1051
|
+
}, { updates: I, hasUpdates: r } = Vt({
|
|
1046
1052
|
projectNames: e,
|
|
1047
1053
|
topics: t,
|
|
1048
|
-
isSyncing:
|
|
1049
|
-
shouldSyncOnUpdate:
|
|
1054
|
+
isSyncing: g,
|
|
1055
|
+
shouldSyncOnUpdate: a
|
|
1050
1056
|
});
|
|
1051
|
-
if (
|
|
1052
|
-
const
|
|
1053
|
-
D.repeat || !D.shiftKey || D.ctrlKey || D.metaKey || D.key.toLowerCase() !== "r" ||
|
|
1057
|
+
if (de(() => {
|
|
1058
|
+
const x = (D) => {
|
|
1059
|
+
D.repeat || !D.shiftKey || D.ctrlKey || D.metaKey || D.key.toLowerCase() !== "r" || rn(D) || (D.preventDefault(), D.stopPropagation(), i());
|
|
1054
1060
|
};
|
|
1055
|
-
return window.addEventListener("keydown",
|
|
1056
|
-
}, [
|
|
1057
|
-
const
|
|
1058
|
-
Object.values(
|
|
1059
|
-
const
|
|
1060
|
-
|
|
1061
|
+
return window.addEventListener("keydown", x), () => window.removeEventListener("keydown", x);
|
|
1062
|
+
}, [i]), u && !r) return null;
|
|
1063
|
+
const d = qn(I), o = Object.values(m).some(Boolean);
|
|
1064
|
+
Object.values(m).every(Boolean);
|
|
1065
|
+
const n = () => {
|
|
1066
|
+
h.current && clearTimeout(h.current);
|
|
1061
1067
|
};
|
|
1062
|
-
return /* @__PURE__ */
|
|
1068
|
+
return /* @__PURE__ */ G(je, { children: [
|
|
1063
1069
|
/* @__PURE__ */ E(
|
|
1064
|
-
|
|
1070
|
+
Wn,
|
|
1065
1071
|
{
|
|
1066
1072
|
...c,
|
|
1067
1073
|
icon: "sync",
|
|
1068
|
-
ref:
|
|
1069
|
-
onClick:
|
|
1074
|
+
ref: f,
|
|
1075
|
+
onClick: i,
|
|
1070
1076
|
onMouseEnter: () => {
|
|
1071
|
-
|
|
1077
|
+
n(), C(b);
|
|
1072
1078
|
},
|
|
1073
1079
|
onMouseLeave: () => {
|
|
1074
|
-
|
|
1080
|
+
n(), h.current = setTimeout(() => C(!1), 100);
|
|
1075
1081
|
},
|
|
1076
|
-
className:
|
|
1077
|
-
syncing:
|
|
1078
|
-
"has-updates":
|
|
1079
|
-
"auto-sync":
|
|
1082
|
+
className: q(c.className, {
|
|
1083
|
+
syncing: g,
|
|
1084
|
+
"has-updates": r,
|
|
1085
|
+
"auto-sync": o && !Xe
|
|
1080
1086
|
}),
|
|
1081
1087
|
"data-shortcut": "Shift+R",
|
|
1082
|
-
"data-tooltip":
|
|
1083
|
-
variant:
|
|
1088
|
+
"data-tooltip": r ? d : "Refresh data",
|
|
1089
|
+
variant: r ? "filled" : "surface"
|
|
1084
1090
|
}
|
|
1085
1091
|
),
|
|
1086
|
-
!
|
|
1092
|
+
!Xe
|
|
1087
1093
|
] });
|
|
1088
1094
|
}
|
|
1089
|
-
),
|
|
1095
|
+
), nt = U.div`
|
|
1090
1096
|
display: flex;
|
|
1091
1097
|
align-items: center;
|
|
1092
1098
|
gap: var(--base-gap-small);
|
|
@@ -1094,7 +1100,7 @@ const Pn = (e, t, n) => {
|
|
|
1094
1100
|
flex: 1;
|
|
1095
1101
|
min-width: 0;
|
|
1096
1102
|
color: var(--md-sys-color-outline);
|
|
1097
|
-
`,
|
|
1103
|
+
`, Qn = U.span`
|
|
1098
1104
|
display: flex;
|
|
1099
1105
|
align-items: center;
|
|
1100
1106
|
gap: 2px;
|
|
@@ -1107,56 +1113,56 @@ const Pn = (e, t, n) => {
|
|
|
1107
1113
|
border-radius: 50%;
|
|
1108
1114
|
object-fit: cover;
|
|
1109
1115
|
}
|
|
1110
|
-
`,
|
|
1111
|
-
const
|
|
1112
|
-
|
|
1113
|
-
const
|
|
1114
|
-
if (!
|
|
1115
|
-
const
|
|
1116
|
-
return
|
|
1116
|
+
`, Jn = ({ rowSelection: e, sliceMap: t }) => {
|
|
1117
|
+
const s = xe(null), [a, u] = z(0);
|
|
1118
|
+
Me(() => {
|
|
1119
|
+
const i = s.current;
|
|
1120
|
+
if (!i) return;
|
|
1121
|
+
const I = new ResizeObserver(([r]) => u(r.contentRect.width));
|
|
1122
|
+
return I.observe(i), () => I.disconnect();
|
|
1117
1123
|
}, []);
|
|
1118
|
-
const c = Object.keys(e).filter((
|
|
1119
|
-
if (
|
|
1124
|
+
const c = Object.keys(e).filter((i) => e[i]).map((i) => t.get(i)).filter((i) => !!i), p = (i) => !!i.icon || !!i.img || !!i.startContent, [g, l] = z(!0), m = c.length > 1 || !g, [y, C] = z(c.length), f = c.map((i) => i.id).join("|");
|
|
1125
|
+
if (Me(() => {
|
|
1120
1126
|
l(!0), C(c.length);
|
|
1121
|
-
}, [
|
|
1122
|
-
const
|
|
1123
|
-
if (!
|
|
1124
|
-
const
|
|
1127
|
+
}, [a, f]), Me(() => {
|
|
1128
|
+
const i = s.current;
|
|
1129
|
+
if (!i || !c.length) return;
|
|
1130
|
+
const I = Array.from(i.querySelectorAll("[data-chip]")), r = i.querySelector("[data-overflow]")?.offsetWidth ?? 22, d = (x, D) => x.offsetLeft - i.offsetLeft + x.offsetWidth <= D;
|
|
1125
1131
|
if (c.length === 1) {
|
|
1126
|
-
|
|
1132
|
+
g && I[0] && !d(I[0], i.clientWidth) && p(c[0]) && l(!1);
|
|
1127
1133
|
return;
|
|
1128
1134
|
}
|
|
1129
|
-
const
|
|
1130
|
-
if (
|
|
1131
|
-
const
|
|
1135
|
+
const o = I[I.length - 1];
|
|
1136
|
+
if (o && d(o, i.clientWidth)) return;
|
|
1137
|
+
const n = i.clientWidth - r, v = I.filter((x) => d(x, n)).length, T = Math.max(1, v);
|
|
1132
1138
|
T !== y && C(T);
|
|
1133
|
-
}), !c.length) return /* @__PURE__ */ E(
|
|
1134
|
-
const
|
|
1135
|
-
return /* @__PURE__ */
|
|
1136
|
-
|
|
1137
|
-
|
|
1139
|
+
}), !c.length) return /* @__PURE__ */ E(nt, { ref: s });
|
|
1140
|
+
const h = c.slice(0, y), b = c.length - h.length;
|
|
1141
|
+
return /* @__PURE__ */ G(nt, { ref: s, children: [
|
|
1142
|
+
h.map((i) => /* @__PURE__ */ G(
|
|
1143
|
+
Qn,
|
|
1138
1144
|
{
|
|
1139
1145
|
"data-chip": !0,
|
|
1140
|
-
title:
|
|
1141
|
-
"aria-label":
|
|
1146
|
+
title: i.label || i.name,
|
|
1147
|
+
"aria-label": i.label || i.name,
|
|
1142
1148
|
children: [
|
|
1143
|
-
|
|
1144
|
-
!(
|
|
1149
|
+
i.startContent ?? (i.img ? /* @__PURE__ */ E("img", { src: i.img, alt: "" }) : i.icon && /* @__PURE__ */ E(Mt, { icon: i.icon, style: { color: i.iconColor } })),
|
|
1150
|
+
!(m && p(i)) && /* @__PURE__ */ E("span", { children: i.label || i.name })
|
|
1145
1151
|
]
|
|
1146
1152
|
},
|
|
1147
|
-
|
|
1153
|
+
i.id
|
|
1148
1154
|
)),
|
|
1149
|
-
|
|
1155
|
+
b > 0 && /* @__PURE__ */ G("span", { "data-overflow": !0, children: [
|
|
1150
1156
|
"+",
|
|
1151
|
-
|
|
1157
|
+
b
|
|
1152
1158
|
] })
|
|
1153
1159
|
] });
|
|
1154
|
-
},
|
|
1160
|
+
}, Xn = U.div`
|
|
1155
1161
|
height: 28px;
|
|
1156
1162
|
border-radius: 4px;
|
|
1157
1163
|
background: var(--md-sys-color-surface-container);
|
|
1158
1164
|
width: 100px;
|
|
1159
|
-
`,
|
|
1165
|
+
`, Zn = U.div`
|
|
1160
1166
|
display: flex;
|
|
1161
1167
|
align-items: center;
|
|
1162
1168
|
gap: var(--base-gap-small);
|
|
@@ -1168,7 +1174,7 @@ const Pn = (e, t, n) => {
|
|
|
1168
1174
|
flex: 1;
|
|
1169
1175
|
min-width: 0;
|
|
1170
1176
|
}
|
|
1171
|
-
`,
|
|
1177
|
+
`, es = U(Yt)`
|
|
1172
1178
|
.slicer-dropdown {
|
|
1173
1179
|
flex: 0 1 auto;
|
|
1174
1180
|
min-width: 48px;
|
|
@@ -1189,7 +1195,7 @@ const Pn = (e, t, n) => {
|
|
|
1189
1195
|
.power-feature .icon {
|
|
1190
1196
|
color: var(--md-sys-color-tertiary);
|
|
1191
1197
|
}
|
|
1192
|
-
`,
|
|
1198
|
+
`, ts = U.div`
|
|
1193
1199
|
display: flex;
|
|
1194
1200
|
align-items: center;
|
|
1195
1201
|
gap: var(--base-gap-small);
|
|
@@ -1202,111 +1208,143 @@ const Pn = (e, t, n) => {
|
|
|
1202
1208
|
text-overflow: ellipsis;
|
|
1203
1209
|
white-space: nowrap;
|
|
1204
1210
|
}
|
|
1205
|
-
`,
|
|
1211
|
+
`, st = "__splitSlicer__", ot = ({
|
|
1206
1212
|
panel: e,
|
|
1207
1213
|
visibleSlices: t,
|
|
1208
|
-
sliceFields:
|
|
1209
|
-
entityTypes:
|
|
1210
|
-
pinnedSliceType:
|
|
1214
|
+
sliceFields: s,
|
|
1215
|
+
entityTypes: a = ["task"],
|
|
1216
|
+
pinnedSliceType: u,
|
|
1211
1217
|
countsSource: c,
|
|
1212
1218
|
onAddToList: p,
|
|
1213
|
-
openMoveDialog:
|
|
1219
|
+
openMoveDialog: g,
|
|
1214
1220
|
splitEnabled: l,
|
|
1215
|
-
canCollapse:
|
|
1221
|
+
canCollapse: m,
|
|
1216
1222
|
isPrimary: y,
|
|
1217
1223
|
search: C,
|
|
1218
|
-
onSearchChange:
|
|
1224
|
+
onSearchChange: f
|
|
1219
1225
|
}) => {
|
|
1220
1226
|
const {
|
|
1221
|
-
SlicerDropdown:
|
|
1222
|
-
addSlicePanel:
|
|
1223
|
-
removeSlicePanel:
|
|
1224
|
-
collapsedPanels:
|
|
1225
|
-
togglePanelCollapsed:
|
|
1226
|
-
setPanelSliceType:
|
|
1227
|
-
getPanelSelection:
|
|
1228
|
-
setPanelSelection:
|
|
1229
|
-
getPanelExpanded:
|
|
1227
|
+
SlicerDropdown: h,
|
|
1228
|
+
addSlicePanel: b,
|
|
1229
|
+
removeSlicePanel: i,
|
|
1230
|
+
collapsedPanels: I,
|
|
1231
|
+
togglePanelCollapsed: r,
|
|
1232
|
+
setPanelSliceType: d,
|
|
1233
|
+
getPanelSelection: o,
|
|
1234
|
+
setPanelSelection: n,
|
|
1235
|
+
getPanelExpanded: v,
|
|
1230
1236
|
setPanelExpanded: T,
|
|
1231
|
-
onSliceTypeChange:
|
|
1237
|
+
onSliceTypeChange: x,
|
|
1232
1238
|
isViewSyncPending: D,
|
|
1233
|
-
onOpenViewer:
|
|
1234
|
-
onAddToList:
|
|
1235
|
-
page:
|
|
1236
|
-
getSliceSort:
|
|
1237
|
-
setSliceSort:
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1239
|
+
onOpenViewer: Y,
|
|
1240
|
+
onAddToList: ue,
|
|
1241
|
+
page: pe,
|
|
1242
|
+
getSliceSort: ne,
|
|
1243
|
+
setSliceSort: me,
|
|
1244
|
+
projectName: se
|
|
1245
|
+
} = $e(), { refetch: oe } = ze(), { powerLicense: Q, setPowerpackDialog: W } = Ue(), J = o(e.id), ae = v(e.id), L = (S) => {
|
|
1246
|
+
n(e.id, S);
|
|
1247
|
+
}, A = O(
|
|
1248
|
+
(S) => T(e.id, S),
|
|
1242
1249
|
[T, e.id]
|
|
1243
|
-
), R =
|
|
1250
|
+
), R = _(
|
|
1244
1251
|
() => typeof c == "function" ? c(e.sliceType) : c,
|
|
1245
1252
|
[c, e.sliceType]
|
|
1246
|
-
),
|
|
1247
|
-
const
|
|
1248
|
-
if (typeof c != "function") return
|
|
1249
|
-
const
|
|
1250
|
-
return
|
|
1251
|
-
}, [c, R, t, e.sliceType]), { counts:
|
|
1253
|
+
), ee = _(() => {
|
|
1254
|
+
const S = t.map(($) => $.sliceType);
|
|
1255
|
+
if (typeof c != "function") return S;
|
|
1256
|
+
const M = ($) => JSON.stringify([$?.entity, $?.args]), ce = M(R);
|
|
1257
|
+
return S.filter(($) => $ === e.sliceType || M(c($)) === ce);
|
|
1258
|
+
}, [c, R, t, e.sliceType]), { counts: be, filled: Ce, complete: te } = Un(
|
|
1252
1259
|
R,
|
|
1253
1260
|
e.sliceType,
|
|
1254
|
-
|
|
1255
|
-
),
|
|
1256
|
-
(
|
|
1257
|
-
y ?
|
|
1261
|
+
ee
|
|
1262
|
+
), X = O(
|
|
1263
|
+
(S, M) => {
|
|
1264
|
+
y ? x(S, M) : d(e.id, S);
|
|
1258
1265
|
},
|
|
1259
|
-
[y,
|
|
1260
|
-
),
|
|
1261
|
-
() => t.filter((
|
|
1266
|
+
[y, x, d, e.id]
|
|
1267
|
+
), ie = _(
|
|
1268
|
+
() => t.filter((S) => S.id !== e.id).map((S) => S.sliceType),
|
|
1262
1269
|
[t, e.id]
|
|
1263
1270
|
), {
|
|
1264
|
-
sliceOptions:
|
|
1271
|
+
sliceOptions: B,
|
|
1265
1272
|
sliceType: P,
|
|
1266
|
-
handleSliceTypeChange:
|
|
1267
|
-
table: { data:
|
|
1268
|
-
sliceMap:
|
|
1269
|
-
isLoading:
|
|
1270
|
-
} =
|
|
1271
|
-
sliceFields:
|
|
1272
|
-
usedSliceTypes:
|
|
1273
|
-
entityTypes:
|
|
1274
|
-
counts:
|
|
1275
|
-
filled:
|
|
1276
|
-
countsComplete:
|
|
1273
|
+
handleSliceTypeChange: K,
|
|
1274
|
+
table: { data: re, isExpandable: Le },
|
|
1275
|
+
sliceMap: Z,
|
|
1276
|
+
isLoading: Se
|
|
1277
|
+
} = $n({
|
|
1278
|
+
sliceFields: s,
|
|
1279
|
+
usedSliceTypes: ie,
|
|
1280
|
+
entityTypes: a,
|
|
1281
|
+
counts: be,
|
|
1282
|
+
filled: Ce,
|
|
1283
|
+
countsComplete: te,
|
|
1277
1284
|
sliceType: e.sliceType,
|
|
1278
|
-
onSliceTypeChange:
|
|
1279
|
-
sort:
|
|
1280
|
-
}),
|
|
1281
|
-
p ||
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
),
|
|
1286
|
-
() =>
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1285
|
+
onSliceTypeChange: X,
|
|
1286
|
+
sort: ne(e.sliceType)
|
|
1287
|
+
}), N = P === "hierarchy", j = !!m && I.includes(e.id), w = B.find((S) => S.value === P)?.label || P, k = C !== void 0, F = C ?? "", le = N ? "Folders" : w, V = Gn(
|
|
1288
|
+
p || ue,
|
|
1289
|
+
Z,
|
|
1290
|
+
Y,
|
|
1291
|
+
g
|
|
1292
|
+
), { contributions: He } = Wt("slicer.menuItem"), we = _(
|
|
1293
|
+
() => He.filter(
|
|
1294
|
+
(S) => !S.sliceTypes?.length || S.sliceTypes.includes(P)
|
|
1295
|
+
),
|
|
1296
|
+
[He, P]
|
|
1297
|
+
), Ee = (S, M, ce = "bottom") => {
|
|
1298
|
+
if (!M.length) return [];
|
|
1299
|
+
const $ = M.map((H) => {
|
|
1300
|
+
const Ae = Z.get(H);
|
|
1301
|
+
return {
|
|
1302
|
+
id: H,
|
|
1303
|
+
label: Ae?.label || Ae?.name || void 0,
|
|
1304
|
+
entityType: Ae?.data?.entityType
|
|
1305
|
+
};
|
|
1306
|
+
}), ke = { projectName: se, sliceType: P, selected: $, menu: S };
|
|
1307
|
+
return Rt(we, ce).filter((H) => !H.in?.length || H.in.includes(S)).map((H) => ({
|
|
1308
|
+
id: H.key,
|
|
1309
|
+
label: H.label,
|
|
1310
|
+
icon: H.icon,
|
|
1311
|
+
[S === "context" ? "command" : "onClick"]: () => qt(H, ke)
|
|
1312
|
+
}));
|
|
1313
|
+
}, Ge = (S) => (M, { rowId: ce, selectedRows: $ }) => (S === "top" && we.forEach((ke) => Kt(ke.run)), Ee(
|
|
1314
|
+
"context",
|
|
1315
|
+
$.includes(ce) ? $ : [ce],
|
|
1316
|
+
S
|
|
1317
|
+
)), gt = we.length ? [
|
|
1318
|
+
Ge("top"),
|
|
1319
|
+
...N ? V.rowContextMenuBuilders : [],
|
|
1320
|
+
Ge("bottom"),
|
|
1321
|
+
...N ? [V.deleteContextMenuBuilder] : []
|
|
1322
|
+
] : N ? [...V.rowContextMenuBuilders, V.deleteContextMenuBuilder] : [], We = _(
|
|
1323
|
+
() => B.map((S) => S.value).filter((S) => !t.some((M) => M.sliceType === S)),
|
|
1324
|
+
[B, t]
|
|
1325
|
+
), Te = !!l && We.length > 0, De = _(() => {
|
|
1326
|
+
const S = B.map(
|
|
1327
|
+
(M) => ie.includes(M.value) ? { ...M, disabled: !0, disabledMessage: "Already used by another panel" } : M
|
|
1291
1328
|
);
|
|
1292
|
-
return
|
|
1293
|
-
}, [
|
|
1294
|
-
if (!
|
|
1295
|
-
|
|
1296
|
-
}, { menuOpen:
|
|
1329
|
+
return Te && S.push({ label: "Split slicer", value: st, icon: "splitscreen_add" }), S;
|
|
1330
|
+
}, [B, ie, Te]), Re = () => {
|
|
1331
|
+
if (!Q) return W("slicer");
|
|
1332
|
+
b(We[0]);
|
|
1333
|
+
}, { menuOpen: yt, toggleMenuOpen: Ke } = ct(), fe = `slicer-menu-${pe}-${e.id}`.replace(/[^\w-]/g, "-"), bt = yt === fe, qe = Object.keys(J).filter((S) => J[S]), St = [
|
|
1334
|
+
...Ee("dropdown", qe, "top"),
|
|
1297
1335
|
{
|
|
1298
1336
|
id: "search",
|
|
1299
|
-
label: `Search ${
|
|
1337
|
+
label: `Search ${le}`,
|
|
1300
1338
|
icon: "search",
|
|
1301
|
-
onClick: () =>
|
|
1339
|
+
onClick: () => f("")
|
|
1302
1340
|
},
|
|
1303
|
-
...
|
|
1341
|
+
...Te && y ? [
|
|
1304
1342
|
{
|
|
1305
1343
|
id: "split",
|
|
1306
1344
|
label: "Split slicer",
|
|
1307
1345
|
icon: "splitscreen_add",
|
|
1308
1346
|
powerFeature: "slicer",
|
|
1309
|
-
onClick:
|
|
1347
|
+
onClick: Re
|
|
1310
1348
|
}
|
|
1311
1349
|
] : [],
|
|
1312
1350
|
...y ? [] : [
|
|
@@ -1314,112 +1352,113 @@ const Pn = (e, t, n) => {
|
|
|
1314
1352
|
id: "remove-panel",
|
|
1315
1353
|
label: "Remove panel",
|
|
1316
1354
|
icon: "close",
|
|
1317
|
-
onClick: () =>
|
|
1355
|
+
onClick: () => i(e.id)
|
|
1318
1356
|
}
|
|
1319
1357
|
],
|
|
1320
|
-
|
|
1358
|
+
Tn({
|
|
1321
1359
|
id: "sort",
|
|
1322
|
-
options:
|
|
1323
|
-
sort:
|
|
1324
|
-
onChange: (
|
|
1325
|
-
})
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1360
|
+
options: Be(P),
|
|
1361
|
+
sort: ne(P),
|
|
1362
|
+
onChange: (S) => me(P, S)
|
|
1363
|
+
}),
|
|
1364
|
+
...Ee("dropdown", qe)
|
|
1365
|
+
], Tt = (S) => {
|
|
1366
|
+
const M = String(S[0]);
|
|
1367
|
+
if (M === st) {
|
|
1368
|
+
Re();
|
|
1330
1369
|
return;
|
|
1331
1370
|
}
|
|
1332
|
-
|
|
1371
|
+
K(M, !!y && u === P);
|
|
1333
1372
|
};
|
|
1334
|
-
return /* @__PURE__ */
|
|
1335
|
-
/* @__PURE__ */
|
|
1336
|
-
|
|
1373
|
+
return /* @__PURE__ */ G(Qt, { children: [
|
|
1374
|
+
/* @__PURE__ */ G(
|
|
1375
|
+
es,
|
|
1337
1376
|
{
|
|
1338
|
-
className:
|
|
1339
|
-
onClick: j ? () =>
|
|
1377
|
+
className: q({ collapsed: j }),
|
|
1378
|
+
onClick: j ? () => r(e.id) : void 0,
|
|
1340
1379
|
children: [
|
|
1341
|
-
|
|
1342
|
-
|
|
1380
|
+
m && /* @__PURE__ */ E(
|
|
1381
|
+
he,
|
|
1343
1382
|
{
|
|
1344
1383
|
icon: "expand_more",
|
|
1345
|
-
className:
|
|
1384
|
+
className: q("collapse-toggle", { collapsed: j }),
|
|
1346
1385
|
"data-tooltip": j ? "Expand panel" : "Collapse panel",
|
|
1347
1386
|
"data-tooltip-delay": 0,
|
|
1348
|
-
onClick: () =>
|
|
1387
|
+
onClick: () => r(e.id)
|
|
1349
1388
|
}
|
|
1350
1389
|
),
|
|
1351
1390
|
j ? (
|
|
1352
1391
|
// the dropdown cannot be used from a collapsed panel, but the dimension it
|
|
1353
1392
|
// shows has to read the same as the dropdown does when open
|
|
1354
|
-
/* @__PURE__ */ E(
|
|
1355
|
-
) : D ? /* @__PURE__ */ E(
|
|
1356
|
-
|
|
1393
|
+
/* @__PURE__ */ E(ts, { children: /* @__PURE__ */ E("span", { children: w }) })
|
|
1394
|
+
) : D ? /* @__PURE__ */ E(Xn, {}) : !k && /* @__PURE__ */ E(
|
|
1395
|
+
h,
|
|
1357
1396
|
{
|
|
1358
|
-
options:
|
|
1397
|
+
options: De,
|
|
1359
1398
|
value: [P],
|
|
1360
|
-
sliceTypes:
|
|
1361
|
-
onChange: (
|
|
1362
|
-
className:
|
|
1363
|
-
disableOpen:
|
|
1399
|
+
sliceTypes: s.map((S) => S.value),
|
|
1400
|
+
onChange: (S) => Tt(S),
|
|
1401
|
+
className: q("slicer-dropdown", { "single-option": De.length === 1 }),
|
|
1402
|
+
disableOpen: De.length === 1
|
|
1364
1403
|
}
|
|
1365
1404
|
),
|
|
1366
|
-
j && /* @__PURE__ */ E(
|
|
1367
|
-
/* @__PURE__ */
|
|
1368
|
-
|
|
1405
|
+
j && /* @__PURE__ */ E(Jn, { rowSelection: J, sliceMap: Z }),
|
|
1406
|
+
/* @__PURE__ */ G(
|
|
1407
|
+
Zn,
|
|
1369
1408
|
{
|
|
1370
|
-
className:
|
|
1371
|
-
onClick: (
|
|
1409
|
+
className: q({ searching: k }),
|
|
1410
|
+
onClick: (S) => S.stopPropagation(),
|
|
1372
1411
|
children: [
|
|
1373
|
-
!j && !
|
|
1412
|
+
!j && !k && /* @__PURE__ */ G(je, { children: [
|
|
1374
1413
|
/* @__PURE__ */ E(
|
|
1375
|
-
|
|
1414
|
+
he,
|
|
1376
1415
|
{
|
|
1377
1416
|
icon: "more_horiz",
|
|
1378
|
-
id:
|
|
1379
|
-
className:
|
|
1417
|
+
id: fe,
|
|
1418
|
+
className: q("slicer-menu", { active: bt }),
|
|
1380
1419
|
"data-tooltip": "More",
|
|
1381
1420
|
"data-tooltip-delay": 0,
|
|
1382
|
-
onClick: () =>
|
|
1421
|
+
onClick: () => Ke(fe)
|
|
1383
1422
|
}
|
|
1384
1423
|
),
|
|
1385
|
-
/* @__PURE__ */ E(
|
|
1424
|
+
/* @__PURE__ */ E(pn, { targetId: fe, id: fe, align: "left", children: /* @__PURE__ */ E(mn, { menu: St, onClose: () => Ke(!1) }) })
|
|
1386
1425
|
] }),
|
|
1387
1426
|
!j && /* @__PURE__ */ E(
|
|
1388
|
-
|
|
1427
|
+
Hn,
|
|
1389
1428
|
{
|
|
1390
|
-
open:
|
|
1391
|
-
value:
|
|
1392
|
-
subject:
|
|
1393
|
-
onChange:
|
|
1429
|
+
open: k,
|
|
1430
|
+
value: F,
|
|
1431
|
+
subject: le,
|
|
1432
|
+
onChange: f
|
|
1394
1433
|
}
|
|
1395
1434
|
),
|
|
1396
|
-
|
|
1397
|
-
|
|
1435
|
+
N && /* @__PURE__ */ E(
|
|
1436
|
+
Yn,
|
|
1398
1437
|
{
|
|
1399
1438
|
topics: ["entity.folder.created"],
|
|
1400
1439
|
onSync: async () => {
|
|
1401
|
-
await
|
|
1440
|
+
await oe();
|
|
1402
1441
|
},
|
|
1403
1442
|
hideWhenNoUpdates: !0
|
|
1404
1443
|
}
|
|
1405
1444
|
),
|
|
1406
|
-
|
|
1407
|
-
|
|
1445
|
+
Te && y && !k && /* @__PURE__ */ E(
|
|
1446
|
+
he,
|
|
1408
1447
|
{
|
|
1409
1448
|
icon: "splitscreen_add",
|
|
1410
|
-
className:
|
|
1411
|
-
"data-tooltip":
|
|
1449
|
+
className: q({ "power-feature": !Q }),
|
|
1450
|
+
"data-tooltip": Q ? "Split slicer" : "Power feature - Slicer",
|
|
1412
1451
|
"data-tooltip-delay": 0,
|
|
1413
|
-
onClick:
|
|
1452
|
+
onClick: Re
|
|
1414
1453
|
}
|
|
1415
1454
|
),
|
|
1416
|
-
!y && !
|
|
1417
|
-
|
|
1455
|
+
!y && !k && /* @__PURE__ */ E(
|
|
1456
|
+
he,
|
|
1418
1457
|
{
|
|
1419
1458
|
icon: "close",
|
|
1420
1459
|
"data-tooltip": "Remove panel",
|
|
1421
1460
|
"data-tooltip-delay": 0,
|
|
1422
|
-
onClick: () =>
|
|
1461
|
+
onClick: () => i(e.id)
|
|
1423
1462
|
}
|
|
1424
1463
|
)
|
|
1425
1464
|
]
|
|
@@ -1429,35 +1468,36 @@ const Pn = (e, t, n) => {
|
|
|
1429
1468
|
}
|
|
1430
1469
|
),
|
|
1431
1470
|
!j && /* @__PURE__ */ E(
|
|
1432
|
-
|
|
1471
|
+
Jt,
|
|
1433
1472
|
{
|
|
1434
|
-
rowSelection:
|
|
1435
|
-
onRowSelectionChange:
|
|
1436
|
-
expanded:
|
|
1437
|
-
setExpanded:
|
|
1438
|
-
data:
|
|
1473
|
+
rowSelection: J,
|
|
1474
|
+
onRowSelectionChange: L,
|
|
1475
|
+
expanded: ae,
|
|
1476
|
+
setExpanded: A,
|
|
1477
|
+
data: Z,
|
|
1439
1478
|
children: /* @__PURE__ */ E(
|
|
1440
|
-
|
|
1479
|
+
Xt,
|
|
1441
1480
|
{
|
|
1442
|
-
data:
|
|
1443
|
-
isExpandable:
|
|
1444
|
-
isLoading:
|
|
1481
|
+
data: re,
|
|
1482
|
+
isExpandable: Le,
|
|
1483
|
+
isLoading: Se || D,
|
|
1445
1484
|
forceUpdateTable: P,
|
|
1446
|
-
globalFilter:
|
|
1485
|
+
globalFilter: F,
|
|
1447
1486
|
rowIdPrefix: `slicer-${e.id}`,
|
|
1448
|
-
onRename:
|
|
1449
|
-
renamingId:
|
|
1450
|
-
renameInitialValue:
|
|
1451
|
-
onSubmitRename:
|
|
1452
|
-
onCancelRename:
|
|
1453
|
-
onRowOptionClick:
|
|
1454
|
-
rowContextMenuBuilders:
|
|
1487
|
+
onRename: N ? (S, M) => V.onRename(M.original) : void 0,
|
|
1488
|
+
renamingId: N ? V.renamingRow?.id : null,
|
|
1489
|
+
renameInitialValue: N ? V.renameInitialValue : void 0,
|
|
1490
|
+
onSubmitRename: N ? (S, M) => V.onSubmitRename(M) : void 0,
|
|
1491
|
+
onCancelRename: N ? V.onCancelRename : void 0,
|
|
1492
|
+
onRowOptionClick: N ? V.onOptionClick : void 0,
|
|
1493
|
+
rowContextMenuBuilders: gt,
|
|
1494
|
+
addonShortcuts: { table: "slicer", projectName: se }
|
|
1455
1495
|
}
|
|
1456
1496
|
)
|
|
1457
1497
|
}
|
|
1458
1498
|
)
|
|
1459
1499
|
] });
|
|
1460
|
-
},
|
|
1500
|
+
}, ns = U.div`
|
|
1461
1501
|
height: 100%;
|
|
1462
1502
|
width: 100%;
|
|
1463
1503
|
overflow-y: auto;
|
|
@@ -1471,139 +1511,139 @@ const Pn = (e, t, n) => {
|
|
|
1471
1511
|
}
|
|
1472
1512
|
`
|
|
1473
1513
|
).join("")}
|
|
1474
|
-
`,
|
|
1514
|
+
`, eo = ({
|
|
1475
1515
|
sliceFields: e = [],
|
|
1476
1516
|
entityTypes: t = ["task"],
|
|
1477
|
-
pinnedSliceType:
|
|
1478
|
-
countsSource:
|
|
1479
|
-
onAddToList:
|
|
1517
|
+
pinnedSliceType: s,
|
|
1518
|
+
countsSource: a,
|
|
1519
|
+
onAddToList: u,
|
|
1480
1520
|
enableSplit: c
|
|
1481
1521
|
}) => {
|
|
1482
|
-
const { slices: p, page:
|
|
1483
|
-
|
|
1484
|
-
}, []),
|
|
1485
|
-
|
|
1486
|
-
}, []), { getParentFolderIds:
|
|
1522
|
+
const { slices: p, page: g, setPanelExpanded: l, projectName: m, collapsedPanels: y } = $e(), { powerLicense: C } = Ue(), f = !!c, h = f && C ? p : p.slice(0, 1), [b, i] = z(null), I = O((L) => {
|
|
1523
|
+
i("entities" in L ? L : { entities: [L] });
|
|
1524
|
+
}, []), r = O(() => {
|
|
1525
|
+
i(null);
|
|
1526
|
+
}, []), { getParentFolderIds: d } = ze(), o = O(
|
|
1487
1527
|
(L) => {
|
|
1488
|
-
const
|
|
1528
|
+
const A = [L, ...d(L)];
|
|
1489
1529
|
l(
|
|
1490
1530
|
"hierarchy",
|
|
1491
|
-
(
|
|
1492
|
-
...
|
|
1493
|
-
...Object.fromEntries(
|
|
1531
|
+
(R) => typeof R == "boolean" ? R || Object.fromEntries(A.map((ee) => [ee, !0])) : {
|
|
1532
|
+
...R,
|
|
1533
|
+
...Object.fromEntries(A.map((ee) => [ee, !0]))
|
|
1494
1534
|
}
|
|
1495
1535
|
);
|
|
1496
1536
|
},
|
|
1497
|
-
[
|
|
1498
|
-
),
|
|
1499
|
-
|
|
1500
|
-
const L =
|
|
1537
|
+
[d, l]
|
|
1538
|
+
), n = xe(null), [v, T] = z(0);
|
|
1539
|
+
de(() => {
|
|
1540
|
+
const L = n.current;
|
|
1501
1541
|
if (!L) return;
|
|
1502
|
-
const
|
|
1503
|
-
return
|
|
1504
|
-
}, [
|
|
1505
|
-
const
|
|
1506
|
-
sizes:
|
|
1507
|
-
minSize:
|
|
1508
|
-
height:
|
|
1509
|
-
layoutKey:
|
|
1510
|
-
handleResizeEnd:
|
|
1511
|
-
} =
|
|
1512
|
-
(L,
|
|
1513
|
-
).filter((L) => L >= 0), [
|
|
1514
|
-
(L,
|
|
1542
|
+
const A = new ResizeObserver(([R]) => T(R.contentRect.height));
|
|
1543
|
+
return A.observe(L), () => A.disconnect();
|
|
1544
|
+
}, [h.length]);
|
|
1545
|
+
const x = h.map((L) => L.id), D = h.length > 1, {
|
|
1546
|
+
sizes: Y,
|
|
1547
|
+
minSize: ue,
|
|
1548
|
+
height: pe,
|
|
1549
|
+
layoutKey: ne,
|
|
1550
|
+
handleResizeEnd: me
|
|
1551
|
+
} = En(g, x, D ? y : [], v), se = x.slice(0, -1).map(
|
|
1552
|
+
(L, A) => D && (y.includes(L) || y.includes(x[A + 1])) ? A : -1
|
|
1553
|
+
).filter((L) => L >= 0), [oe, Q] = z({}), W = O(
|
|
1554
|
+
(L, A) => Q((R) => ({ ...R, [L]: A })),
|
|
1515
1555
|
[]
|
|
1516
|
-
),
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
const
|
|
1520
|
-
return
|
|
1556
|
+
), J = x.join("|");
|
|
1557
|
+
de(() => {
|
|
1558
|
+
Q((L) => {
|
|
1559
|
+
const A = Object.keys(L).filter((R) => x.includes(R));
|
|
1560
|
+
return A.length === Object.keys(L).length ? L : Object.fromEntries(A.map((R) => [R, L[R]]));
|
|
1521
1561
|
});
|
|
1522
|
-
}, [
|
|
1523
|
-
const
|
|
1524
|
-
visibleSlices:
|
|
1562
|
+
}, [J]);
|
|
1563
|
+
const ae = {
|
|
1564
|
+
visibleSlices: h,
|
|
1525
1565
|
canCollapse: D,
|
|
1526
1566
|
sliceFields: e,
|
|
1527
1567
|
entityTypes: t,
|
|
1528
|
-
pinnedSliceType:
|
|
1529
|
-
countsSource:
|
|
1530
|
-
onAddToList:
|
|
1531
|
-
openMoveDialog:
|
|
1532
|
-
splitEnabled:
|
|
1568
|
+
pinnedSliceType: s,
|
|
1569
|
+
countsSource: a,
|
|
1570
|
+
onAddToList: u,
|
|
1571
|
+
openMoveDialog: I,
|
|
1572
|
+
splitEnabled: f
|
|
1533
1573
|
};
|
|
1534
|
-
return /* @__PURE__ */
|
|
1535
|
-
|
|
1536
|
-
|
|
1574
|
+
return /* @__PURE__ */ G(je, { children: [
|
|
1575
|
+
h.length === 1 ? /* @__PURE__ */ E(
|
|
1576
|
+
ot,
|
|
1537
1577
|
{
|
|
1538
|
-
panel:
|
|
1578
|
+
panel: h[0],
|
|
1539
1579
|
isPrimary: !0,
|
|
1540
|
-
search:
|
|
1541
|
-
onSearchChange: (L) =>
|
|
1542
|
-
...
|
|
1580
|
+
search: oe[h[0].id],
|
|
1581
|
+
onSearchChange: (L) => W(h[0].id, L),
|
|
1582
|
+
...ae
|
|
1543
1583
|
}
|
|
1544
|
-
) : /* @__PURE__ */ E(
|
|
1545
|
-
|
|
1584
|
+
) : /* @__PURE__ */ E(ns, { ref: n, $deadGutters: se, children: /* @__PURE__ */ E(
|
|
1585
|
+
Lt,
|
|
1546
1586
|
{
|
|
1547
1587
|
layout: "vertical",
|
|
1548
|
-
onResizeEnd:
|
|
1588
|
+
onResizeEnd: me,
|
|
1549
1589
|
style: {
|
|
1550
1590
|
width: "100%",
|
|
1551
|
-
height:
|
|
1591
|
+
height: pe,
|
|
1552
1592
|
overflow: "hidden"
|
|
1553
1593
|
},
|
|
1554
|
-
children:
|
|
1555
|
-
|
|
1594
|
+
children: h.map((L, A) => /* @__PURE__ */ E(
|
|
1595
|
+
wt,
|
|
1556
1596
|
{
|
|
1557
|
-
size:
|
|
1558
|
-
minSize:
|
|
1597
|
+
size: Y[A],
|
|
1598
|
+
minSize: ue,
|
|
1559
1599
|
style: { overflow: "hidden" },
|
|
1560
1600
|
children: /* @__PURE__ */ E(
|
|
1561
|
-
|
|
1601
|
+
ot,
|
|
1562
1602
|
{
|
|
1563
1603
|
panel: L,
|
|
1564
|
-
isPrimary:
|
|
1565
|
-
search:
|
|
1566
|
-
onSearchChange: (
|
|
1567
|
-
...
|
|
1604
|
+
isPrimary: A === 0,
|
|
1605
|
+
search: oe[L.id],
|
|
1606
|
+
onSearchChange: (R) => W(L.id, R),
|
|
1607
|
+
...ae
|
|
1568
1608
|
}
|
|
1569
1609
|
)
|
|
1570
1610
|
},
|
|
1571
1611
|
L.id
|
|
1572
1612
|
))
|
|
1573
1613
|
},
|
|
1574
|
-
|
|
1614
|
+
ne
|
|
1575
1615
|
) }),
|
|
1576
1616
|
/* @__PURE__ */ E(
|
|
1577
|
-
|
|
1617
|
+
Rn,
|
|
1578
1618
|
{
|
|
1579
|
-
projectName:
|
|
1580
|
-
movingEntities:
|
|
1581
|
-
onClose:
|
|
1582
|
-
onMoveComplete:
|
|
1619
|
+
projectName: m,
|
|
1620
|
+
movingEntities: b,
|
|
1621
|
+
onClose: r,
|
|
1622
|
+
onMoveComplete: o
|
|
1583
1623
|
}
|
|
1584
1624
|
)
|
|
1585
1625
|
] });
|
|
1586
1626
|
};
|
|
1587
1627
|
export {
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1628
|
+
vn as S,
|
|
1629
|
+
mt as a,
|
|
1630
|
+
Ze as b,
|
|
1631
|
+
wn as c,
|
|
1632
|
+
dt as d,
|
|
1633
|
+
eo as e,
|
|
1634
|
+
Pn as f,
|
|
1635
|
+
Ln as g,
|
|
1636
|
+
et as h,
|
|
1637
|
+
ut as i,
|
|
1638
|
+
Be as j,
|
|
1639
|
+
Cn as k,
|
|
1640
|
+
Gn as l,
|
|
1641
|
+
Un as m,
|
|
1642
|
+
En as n,
|
|
1643
|
+
Zs as o,
|
|
1644
|
+
Yn as p,
|
|
1645
|
+
Tn as q,
|
|
1646
|
+
Xs as r,
|
|
1647
|
+
Sn as s,
|
|
1648
|
+
On as u
|
|
1609
1649
|
};
|