ode-explorer 1.3.3-develop.202402061659 → 1.3.3-develop.202402071721
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/ActionBarContainer.js +1 -1
- package/dist/AppAction.js +1 -1
- package/dist/DeleteModal.js +1 -1
- package/dist/EmptyScreenApp.js +1 -1
- package/dist/FolderModal.js +1 -1
- package/dist/FoldersList.js +1 -1
- package/dist/MoveModal.js +1 -1
- package/dist/ResourcesList.js +1 -1
- package/dist/edifice-react.js +64 -64
- package/dist/index.html +25 -14
- package/dist/index.js +4 -4
- package/dist/react.js +8 -8
- package/dist/version.txt +1 -1
- package/lib/ActionBarContainer.js +211 -193
- package/lib/AppAction.js +29 -22
- package/lib/DeleteModal.js +3 -3
- package/lib/EmptyScreenApp.js +26 -20
- package/lib/FolderModal.js +8 -8
- package/lib/FoldersList.js +7 -7
- package/lib/MoveModal.js +7 -7
- package/lib/ResourcesList.js +1 -1
- package/lib/index2.js +219 -198
- package/lib/services/api/index.d.ts +12 -0
- package/package.json +23 -25
package/lib/index2.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
var he = Object.defineProperty;
|
|
2
2
|
var fe = (e, t, s) => t in e ? he(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
|
-
var
|
|
4
|
-
import { jsx as c, jsxs as
|
|
5
|
-
import { useState as ae, useRef as pe, useEffect as
|
|
6
|
-
import { useScrollToTop as ge, useOdeClient as
|
|
7
|
-
import { ArrowLeft as Ae, Filter as
|
|
8
|
-
import { useTranslation as
|
|
9
|
-
import { odeServices as
|
|
10
|
-
import { t as
|
|
11
|
-
import { create as
|
|
12
|
-
import { useQuery as ke, useInfiniteQuery as Oe, useQueryClient as
|
|
3
|
+
var _ = (e, t, s) => (fe(e, typeof t != "symbol" ? t + "" : t, s), s);
|
|
4
|
+
import { jsx as c, jsxs as C, Fragment as oe } from "react/jsx-runtime";
|
|
5
|
+
import { useState as ae, useRef as pe, useEffect as U, lazy as x, Suspense as v, Fragment as me } from "react";
|
|
6
|
+
import { useScrollToTop as ge, useOdeClient as L, IconButton as ye, useToast as O, useShareMutation as Ie, useUpdateMutation as we, useUser as Se, LoadingScreen as P, FormControl as xe, Input as De, SearchButton as be, Dropdown as $, useToggle as Te, TreeView as Fe, Button as Ce, useXitiTrackPageLoad as Ne, isActionAvailable as ne, AppHeader as Re, Breadcrumb as Pe, Grid as ee } from "@edifice-ui/react";
|
|
7
|
+
import { ArrowLeft as Ae, Filter as Ee, Delete as Qe, Plus as ve } from "@edifice-ui/icons";
|
|
8
|
+
import { useTranslation as j } from "react-i18next";
|
|
9
|
+
import { odeServices as D, FOLDER as F } from "edifice-ts-client";
|
|
10
|
+
import { t as A } from "i18next";
|
|
11
|
+
import { create as qe } from "zustand";
|
|
12
|
+
import { useQuery as ke, useInfiniteQuery as Oe, useQueryClient as q, useMutation as M } from "@tanstack/react-query";
|
|
13
13
|
const ce = async (e) => {
|
|
14
|
-
const t = await
|
|
14
|
+
const t = await D.resource(e.application).searchContext(e);
|
|
15
15
|
return {
|
|
16
16
|
...t,
|
|
17
17
|
folders: t.folders.filter((s) => !s.trashed)
|
|
18
18
|
};
|
|
19
|
-
},
|
|
19
|
+
}, Ue = async ({
|
|
20
20
|
searchParams: e,
|
|
21
21
|
name: t,
|
|
22
22
|
parentId: s
|
|
@@ -27,8 +27,8 @@ const ce = async (e) => {
|
|
|
27
27
|
application: e.application,
|
|
28
28
|
type: e.types[0]
|
|
29
29
|
};
|
|
30
|
-
return await
|
|
31
|
-
},
|
|
30
|
+
return await D.resource(e.application).createFolder(r);
|
|
31
|
+
}, Le = async ({
|
|
32
32
|
folderId: e,
|
|
33
33
|
searchParams: t,
|
|
34
34
|
parentId: s,
|
|
@@ -41,7 +41,7 @@ const ce = async (e) => {
|
|
|
41
41
|
application: t.application,
|
|
42
42
|
type: t.types[0]
|
|
43
43
|
};
|
|
44
|
-
return await
|
|
44
|
+
return await D.resource(t.application).updateFolder(n);
|
|
45
45
|
}, Me = async ({
|
|
46
46
|
searchParams: e,
|
|
47
47
|
resourceIds: t,
|
|
@@ -54,7 +54,7 @@ const ce = async (e) => {
|
|
|
54
54
|
resourceIds: t,
|
|
55
55
|
folderIds: r
|
|
56
56
|
};
|
|
57
|
-
return await
|
|
57
|
+
return await D.resource(e.application).trashAll(n, s);
|
|
58
58
|
}, Be = async ({
|
|
59
59
|
searchParams: e,
|
|
60
60
|
resourceIds: t,
|
|
@@ -67,7 +67,7 @@ const ce = async (e) => {
|
|
|
67
67
|
resourceIds: t,
|
|
68
68
|
folderIds: r
|
|
69
69
|
};
|
|
70
|
-
return await
|
|
70
|
+
return await D.resource(e.application).deleteAll(n, s);
|
|
71
71
|
}, Ke = async ({
|
|
72
72
|
searchParams: e,
|
|
73
73
|
resourceIds: t,
|
|
@@ -80,8 +80,8 @@ const ce = async (e) => {
|
|
|
80
80
|
resourceIds: t,
|
|
81
81
|
folderIds: s
|
|
82
82
|
};
|
|
83
|
-
return await
|
|
84
|
-
},
|
|
83
|
+
return await D.resource(e.application).restoreAll(n, r);
|
|
84
|
+
}, _e = async ({
|
|
85
85
|
searchParams: e,
|
|
86
86
|
resourceIds: t,
|
|
87
87
|
folderId: s,
|
|
@@ -94,23 +94,41 @@ const ce = async (e) => {
|
|
|
94
94
|
resourceIds: t,
|
|
95
95
|
folderIds: r
|
|
96
96
|
};
|
|
97
|
-
return await
|
|
97
|
+
return await D.resource(e.application).moveToFolder(a, n);
|
|
98
98
|
};
|
|
99
|
-
const
|
|
99
|
+
const $e = async (e) => await D.rights().sessionHasWorkflowRights(e), je = ({
|
|
100
100
|
searchParams: e,
|
|
101
101
|
assetId: t
|
|
102
102
|
}) => {
|
|
103
|
-
const s =
|
|
103
|
+
const s = D.resource(e.application).getViewUrl(t);
|
|
104
104
|
window.open(s, "_self");
|
|
105
|
-
},
|
|
105
|
+
}, ze = ({
|
|
106
106
|
searchParams: e,
|
|
107
107
|
params: t
|
|
108
|
-
}) =>
|
|
108
|
+
}) => D.resource(e.application).create(t), Ve = ({
|
|
109
109
|
searchParams: e,
|
|
110
110
|
assetId: t
|
|
111
111
|
}) => {
|
|
112
|
-
const s =
|
|
112
|
+
const s = D.resource(e.application).getPrintUrl(t);
|
|
113
113
|
return window.open(s, "_blank");
|
|
114
|
+
}, Ls = ({
|
|
115
|
+
searchParams: e,
|
|
116
|
+
folderId: t
|
|
117
|
+
}) => {
|
|
118
|
+
const s = D.resource(e.application).getFormUrl(t);
|
|
119
|
+
return window.open(s, "_self");
|
|
120
|
+
}, Ms = ({
|
|
121
|
+
searchParams: e,
|
|
122
|
+
assetId: t
|
|
123
|
+
}) => {
|
|
124
|
+
const s = D.resource(e.application).getEditUrl(t);
|
|
125
|
+
return window.open(s, "_self");
|
|
126
|
+
}, Bs = ({
|
|
127
|
+
searchParams: e,
|
|
128
|
+
assetId: t
|
|
129
|
+
}) => {
|
|
130
|
+
const s = D.resource(e.application).getExportUrl(t);
|
|
131
|
+
return window.open(s, "_self");
|
|
114
132
|
};
|
|
115
133
|
function se(e) {
|
|
116
134
|
return e.filter((t, s) => e.indexOf(t) === s);
|
|
@@ -123,7 +141,7 @@ function V(e, t) {
|
|
|
123
141
|
function He(e, t) {
|
|
124
142
|
var r;
|
|
125
143
|
const s = V(e, t);
|
|
126
|
-
return (r = s == null ? void 0 : s.folder) != null && r.ancestors ? [...(s == null ? void 0 : s.folder.ancestors) || [], e] : e ===
|
|
144
|
+
return (r = s == null ? void 0 : s.folder) != null && r.ancestors ? [...(s == null ? void 0 : s.folder.ancestors) || [], e] : e === F.BIN ? [F.BIN] : [F.DEFAULT];
|
|
127
145
|
}
|
|
128
146
|
function ie(e, t) {
|
|
129
147
|
return t.id === e && t.children ? t.children.length > 0 : t.children ? t.children.some((s) => ie(t.id, s)) : !1;
|
|
@@ -149,15 +167,15 @@ function le(e, t, s) {
|
|
|
149
167
|
}
|
|
150
168
|
class G {
|
|
151
169
|
constructor(t) {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
170
|
+
_(this, "id");
|
|
171
|
+
_(this, "name");
|
|
172
|
+
_(this, "childNumber");
|
|
173
|
+
_(this, "section", !1);
|
|
174
|
+
_(this, "children", []);
|
|
157
175
|
this.folder = t, this.id = t.id, this.name = t.name, this.childNumber = t.childNumber;
|
|
158
176
|
}
|
|
159
177
|
}
|
|
160
|
-
const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? void 0 : t.map((n) => new G(n))), r)),
|
|
178
|
+
const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? void 0 : t.map((n) => new G(n))), r)), w = qe()((e, t) => ({
|
|
161
179
|
config: null,
|
|
162
180
|
searchConfig: {
|
|
163
181
|
minLength: 1
|
|
@@ -182,8 +200,8 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
182
200
|
trashed: !1
|
|
183
201
|
},
|
|
184
202
|
treeData: {
|
|
185
|
-
id:
|
|
186
|
-
name:
|
|
203
|
+
id: F.DEFAULT,
|
|
204
|
+
name: A("explorer.filters.mine"),
|
|
187
205
|
section: !0,
|
|
188
206
|
children: []
|
|
189
207
|
},
|
|
@@ -289,7 +307,7 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
289
307
|
const {
|
|
290
308
|
searchParams: r
|
|
291
309
|
} = t();
|
|
292
|
-
|
|
310
|
+
je({
|
|
293
311
|
searchParams: r,
|
|
294
312
|
assetId: s.assetId
|
|
295
313
|
});
|
|
@@ -339,7 +357,7 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
339
357
|
...n.filters,
|
|
340
358
|
folder: s
|
|
341
359
|
},
|
|
342
|
-
trashed: s ===
|
|
360
|
+
trashed: s === F.BIN
|
|
343
361
|
}
|
|
344
362
|
}));
|
|
345
363
|
},
|
|
@@ -378,7 +396,7 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
378
396
|
var f;
|
|
379
397
|
return {
|
|
380
398
|
...l,
|
|
381
|
-
treeData: de(n, (f = o == null ? void 0 : o.pages[0]) == null ? void 0 : f.folders, s ||
|
|
399
|
+
treeData: de(n, (f = o == null ? void 0 : o.pages[0]) == null ? void 0 : f.folders, s || F.DEFAULT)
|
|
382
400
|
};
|
|
383
401
|
});
|
|
384
402
|
}
|
|
@@ -414,7 +432,7 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
414
432
|
const o = V(s[a - 2], r);
|
|
415
433
|
n({
|
|
416
434
|
folder: o,
|
|
417
|
-
folderId: (o == null ? void 0 : o.id) ||
|
|
435
|
+
folderId: (o == null ? void 0 : o.id) || F.DEFAULT
|
|
418
436
|
});
|
|
419
437
|
},
|
|
420
438
|
goToTrash: () => e((s) => ({
|
|
@@ -428,25 +446,25 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
428
446
|
...s.searchParams,
|
|
429
447
|
search: void 0,
|
|
430
448
|
filters: {
|
|
431
|
-
folder:
|
|
449
|
+
folder: F.BIN
|
|
432
450
|
},
|
|
433
451
|
trashed: !0
|
|
434
452
|
},
|
|
435
453
|
currentFolder: {
|
|
436
|
-
id:
|
|
454
|
+
id: F.BIN
|
|
437
455
|
}
|
|
438
456
|
}))
|
|
439
457
|
}
|
|
440
|
-
})),
|
|
458
|
+
})), b = () => w((e) => e.searchParams), te = () => w((e) => e.selectedNodesIds), z = () => w((e) => e.treeData), Ks = () => w((e) => e.selectedFolders), _s = () => w((e) => e.selectedResources), We = () => w((e) => e.searchConfig), J = () => w((e) => e.folderIds), X = () => w((e) => e.resourceIds), Y = () => w((e) => e.selectedResources.map((t) => t.assetId)), Z = () => w((e) => e.selectedResources.filter((t) => t.assetId === t.id)), W = () => w((e) => e.currentFolder), S = () => w((e) => e.updaters), re = () => {
|
|
441
459
|
const e = W();
|
|
442
|
-
return (e == null ? void 0 : e.id) ===
|
|
443
|
-
}, Ge = () =>
|
|
460
|
+
return (e == null ? void 0 : e.id) === F.BIN;
|
|
461
|
+
}, Ge = () => w((e) => e.resourceIsTrash), Je = () => w((e) => e.resourceActionDisable), Xe = () => {
|
|
444
462
|
const e = W();
|
|
445
463
|
return (e == null ? void 0 : e.id) === "default";
|
|
446
|
-
}, Ye = () => te().length > 1, Ze = () =>
|
|
447
|
-
const e =
|
|
464
|
+
}, Ye = () => te().length > 1, Ze = () => w((e) => e.status), ue = () => {
|
|
465
|
+
const e = b(), [t, s] = ae(""), r = We(), n = Ze(), a = pe(null), {
|
|
448
466
|
setSearchParams: o
|
|
449
|
-
} =
|
|
467
|
+
} = S(), l = (d) => {
|
|
450
468
|
const h = d.target.value;
|
|
451
469
|
s(h.toString());
|
|
452
470
|
}, f = (d) => {
|
|
@@ -458,7 +476,7 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
458
476
|
search: t || void 0
|
|
459
477
|
});
|
|
460
478
|
};
|
|
461
|
-
return
|
|
479
|
+
return U(() => {
|
|
462
480
|
const h = t.length == 0 || t.length >= r.minLength ? {
|
|
463
481
|
search: t || void 0
|
|
464
482
|
} : {};
|
|
@@ -466,9 +484,9 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
466
484
|
...e,
|
|
467
485
|
...h
|
|
468
486
|
});
|
|
469
|
-
}, [t, r.minLength]),
|
|
487
|
+
}, [t, r.minLength]), U(() => {
|
|
470
488
|
n === "select" && s("");
|
|
471
|
-
}, [n]),
|
|
489
|
+
}, [n]), U(() => {
|
|
472
490
|
s(() => {
|
|
473
491
|
var d;
|
|
474
492
|
return ((d = e.search) == null ? void 0 : d.toString()) ?? "";
|
|
@@ -484,16 +502,16 @@ const de = (e, t, s) => H(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
484
502
|
function es() {
|
|
485
503
|
const {
|
|
486
504
|
appCode: e
|
|
487
|
-
} =
|
|
505
|
+
} = L(), {
|
|
488
506
|
gotoPreviousFolder: t
|
|
489
|
-
} =
|
|
507
|
+
} = S(), {
|
|
490
508
|
t: s
|
|
491
|
-
} =
|
|
509
|
+
} = j(), {
|
|
492
510
|
inputSearch: r
|
|
493
511
|
} = ue(), n = te(), a = re(), o = W(), l = s("explorer.tree.trash"), f = s("explorer.tree.search"), u = s("explorer.filters.mine", {
|
|
494
512
|
ns: e
|
|
495
513
|
}), d = (o == null ? void 0 : o.name) || u;
|
|
496
|
-
return /* @__PURE__ */ c("div", { className: "py-16", children: n.length > 1 && !a ? /* @__PURE__ */
|
|
514
|
+
return /* @__PURE__ */ c("div", { className: "py-16", children: n.length > 1 && !a ? /* @__PURE__ */ C("div", { className: "d-flex align-items-center gap-8", children: [
|
|
497
515
|
/* @__PURE__ */ c(ye, { icon: /* @__PURE__ */ c(Ae, {}), variant: "ghost", color: "tertiary", "aria-label": s("back"), className: "ms-n16", onClick: t }),
|
|
498
516
|
/* @__PURE__ */ c("p", { className: "body py-8 text-truncate", children: /* @__PURE__ */ c("strong", { children: d }) })
|
|
499
517
|
] }) : /* @__PURE__ */ c("h2", { className: "body py-8 fw-bold", children: r.length !== 0 ? f : a ? l : u }) });
|
|
@@ -503,7 +521,7 @@ const ss = () => {
|
|
|
503
521
|
clearSelectedIds: t,
|
|
504
522
|
setResourceActionDisable: s,
|
|
505
523
|
clearSelectedItems: r
|
|
506
|
-
} =
|
|
524
|
+
} = S();
|
|
507
525
|
return {
|
|
508
526
|
isActionDisableModalOpen: e,
|
|
509
527
|
onActionDisableCancel: () => {
|
|
@@ -515,7 +533,7 @@ const ss = () => {
|
|
|
515
533
|
clearSelectedIds: t,
|
|
516
534
|
setResourceIsTrash: s,
|
|
517
535
|
clearSelectedItems: r
|
|
518
|
-
} =
|
|
536
|
+
} = S();
|
|
519
537
|
return {
|
|
520
538
|
isTrashedModalOpen: e,
|
|
521
539
|
onTrashedCancel: () => {
|
|
@@ -584,12 +602,12 @@ function as(e, {
|
|
|
584
602
|
return H(e, (r) => r.id === t ? new G(s) : r);
|
|
585
603
|
}
|
|
586
604
|
const cs = () => {
|
|
587
|
-
const e =
|
|
605
|
+
const e = w((t) => t.config);
|
|
588
606
|
return ke({
|
|
589
607
|
queryKey: ["actions"],
|
|
590
608
|
queryFn: async () => {
|
|
591
609
|
const t = e == null ? void 0 : e.actions.map((r) => r.workflow);
|
|
592
|
-
return await
|
|
610
|
+
return await $e(t);
|
|
593
611
|
},
|
|
594
612
|
select: (t) => e == null ? void 0 : e.actions.map((s) => ({
|
|
595
613
|
...s,
|
|
@@ -599,7 +617,7 @@ const cs = () => {
|
|
|
599
617
|
enabled: !!e
|
|
600
618
|
});
|
|
601
619
|
}, is = () => {
|
|
602
|
-
const e =
|
|
620
|
+
const e = w((o) => o.config), t = b(), {
|
|
603
621
|
filters: s,
|
|
604
622
|
trashed: r,
|
|
605
623
|
search: n
|
|
@@ -628,13 +646,13 @@ const cs = () => {
|
|
|
628
646
|
retry: !1,
|
|
629
647
|
getNextPageParam: (o) => o.pagination.startIdx + o.pagination.pageSize
|
|
630
648
|
});
|
|
631
|
-
},
|
|
632
|
-
const e = O(), t =
|
|
649
|
+
}, $s = () => {
|
|
650
|
+
const e = O(), t = q(), s = b(), r = z(), n = J(), a = Y(), o = X(), l = Z().length > 0, f = l ? a : o, {
|
|
633
651
|
clearSelectedItems: u,
|
|
634
652
|
clearSelectedIds: d,
|
|
635
653
|
setTreeData: h,
|
|
636
654
|
setSearchParams: i
|
|
637
|
-
} =
|
|
655
|
+
} = S(), {
|
|
638
656
|
filters: p,
|
|
639
657
|
trashed: m
|
|
640
658
|
} = s, y = ["context", {
|
|
@@ -650,28 +668,28 @@ const cs = () => {
|
|
|
650
668
|
useAssetIds: l
|
|
651
669
|
}),
|
|
652
670
|
onError(g) {
|
|
653
|
-
typeof g == "string" && e.error(
|
|
671
|
+
typeof g == "string" && e.error(A(g));
|
|
654
672
|
},
|
|
655
673
|
onSuccess: async (g) => {
|
|
656
674
|
if (await t.cancelQueries({
|
|
657
675
|
queryKey: y
|
|
658
676
|
}), t.getQueryData(y))
|
|
659
|
-
return e.success(
|
|
660
|
-
var
|
|
661
|
-
if (
|
|
677
|
+
return e.success(A("explorer.trash.title")), t.setQueryData(y, (T) => {
|
|
678
|
+
var E;
|
|
679
|
+
if (T) {
|
|
662
680
|
const k = {
|
|
663
|
-
...
|
|
664
|
-
pages:
|
|
665
|
-
var
|
|
681
|
+
...T,
|
|
682
|
+
pages: T == null ? void 0 : T.pages.map((N) => {
|
|
683
|
+
var R;
|
|
666
684
|
return {
|
|
667
|
-
...
|
|
668
|
-
folders:
|
|
685
|
+
...N,
|
|
686
|
+
folders: N.folders.filter((Q) => !n.includes(Q.id)),
|
|
669
687
|
pagination: {
|
|
670
|
-
...
|
|
688
|
+
...N.pagination,
|
|
671
689
|
// @ts-ignore
|
|
672
|
-
maxIdx: ((
|
|
690
|
+
maxIdx: ((R = N == null ? void 0 : N.pagination) == null ? void 0 : R.maxIdx) - g.resources.length
|
|
673
691
|
},
|
|
674
|
-
resources:
|
|
692
|
+
resources: N.resources.filter((Q) => l ? !a.includes(Q.assetId) : !f.includes(Q.id))
|
|
675
693
|
};
|
|
676
694
|
})
|
|
677
695
|
}, B = ns(r, {
|
|
@@ -682,7 +700,7 @@ const cs = () => {
|
|
|
682
700
|
pagination: {
|
|
683
701
|
...s.pagination,
|
|
684
702
|
// @ts-ignore
|
|
685
|
-
maxIdx: ((
|
|
703
|
+
maxIdx: ((E = s.pagination) == null ? void 0 : E.maxIdx) - g.resources.length
|
|
686
704
|
}
|
|
687
705
|
}), k;
|
|
688
706
|
}
|
|
@@ -692,13 +710,13 @@ const cs = () => {
|
|
|
692
710
|
u(), d();
|
|
693
711
|
}
|
|
694
712
|
});
|
|
695
|
-
},
|
|
696
|
-
const e = O(), t =
|
|
713
|
+
}, js = () => {
|
|
714
|
+
const e = O(), t = q(), s = b(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
|
|
697
715
|
setFolderIds: f,
|
|
698
716
|
setResourceIds: u,
|
|
699
717
|
setSelectedResources: d,
|
|
700
718
|
setSelectedFolders: h
|
|
701
|
-
} =
|
|
719
|
+
} = S(), {
|
|
702
720
|
filters: i,
|
|
703
721
|
trashed: p
|
|
704
722
|
} = s, m = ["context", {
|
|
@@ -714,20 +732,20 @@ const cs = () => {
|
|
|
714
732
|
useAssetIds: o
|
|
715
733
|
}),
|
|
716
734
|
onError(y) {
|
|
717
|
-
typeof y == "string" && e.error(
|
|
735
|
+
typeof y == "string" && e.error(A(y));
|
|
718
736
|
},
|
|
719
737
|
onSuccess: async () => {
|
|
720
738
|
if (await t.cancelQueries({
|
|
721
739
|
queryKey: m
|
|
722
740
|
}), t.getQueryData(m))
|
|
723
|
-
return e.success(
|
|
741
|
+
return e.success(A("explorer.trash.toast")), t.setQueryData(m, (g) => {
|
|
724
742
|
if (g)
|
|
725
743
|
return {
|
|
726
744
|
...g,
|
|
727
745
|
pages: g == null ? void 0 : g.pages.map((I) => ({
|
|
728
746
|
...I,
|
|
729
|
-
folders: I.folders.filter((
|
|
730
|
-
resources: I.resources.filter((
|
|
747
|
+
folders: I.folders.filter((T) => !r.includes(T.id)),
|
|
748
|
+
resources: I.resources.filter((T) => o ? !n.includes(T.assetId) : !l.includes(T.id))
|
|
731
749
|
}))
|
|
732
750
|
};
|
|
733
751
|
});
|
|
@@ -736,11 +754,11 @@ const cs = () => {
|
|
|
736
754
|
u([]), d([]), f([]), h([]);
|
|
737
755
|
}
|
|
738
756
|
});
|
|
739
|
-
},
|
|
740
|
-
const e = O(), t =
|
|
757
|
+
}, zs = () => {
|
|
758
|
+
const e = O(), t = q(), s = b(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
|
|
741
759
|
clearSelectedItems: f,
|
|
742
760
|
clearSelectedIds: u
|
|
743
|
-
} =
|
|
761
|
+
} = S(), {
|
|
744
762
|
filters: d,
|
|
745
763
|
trashed: h
|
|
746
764
|
} = s, i = ["context", {
|
|
@@ -756,13 +774,13 @@ const cs = () => {
|
|
|
756
774
|
useAssetIds: o
|
|
757
775
|
}),
|
|
758
776
|
onError(p) {
|
|
759
|
-
typeof p == "string" && e.error(
|
|
777
|
+
typeof p == "string" && e.error(A(p));
|
|
760
778
|
},
|
|
761
779
|
onSuccess: async () => {
|
|
762
780
|
if (await t.cancelQueries({
|
|
763
781
|
queryKey: i
|
|
764
782
|
}), t.getQueryData(i))
|
|
765
|
-
return e.success(
|
|
783
|
+
return e.success(A("explorer.removed.from.trash")), t.setQueryData(i, (m) => {
|
|
766
784
|
if (m)
|
|
767
785
|
return {
|
|
768
786
|
...m,
|
|
@@ -778,13 +796,13 @@ const cs = () => {
|
|
|
778
796
|
f(), u();
|
|
779
797
|
}
|
|
780
798
|
});
|
|
781
|
-
},
|
|
782
|
-
const e = O(), t =
|
|
799
|
+
}, Vs = () => {
|
|
800
|
+
const e = O(), t = q(), s = b(), r = z(), n = J(), a = Y(), o = X(), l = Z().length > 0, f = l ? a : o, {
|
|
783
801
|
clearSelectedIds: u,
|
|
784
802
|
clearSelectedItems: d,
|
|
785
803
|
setTreeData: h,
|
|
786
804
|
setSearchParams: i
|
|
787
|
-
} =
|
|
805
|
+
} = S(), {
|
|
788
806
|
filters: p,
|
|
789
807
|
trashed: m
|
|
790
808
|
} = s, y = ["context", {
|
|
@@ -793,7 +811,7 @@ const cs = () => {
|
|
|
793
811
|
trashed: m
|
|
794
812
|
}];
|
|
795
813
|
return M({
|
|
796
|
-
mutationFn: async (g) => await
|
|
814
|
+
mutationFn: async (g) => await _e({
|
|
797
815
|
searchParams: s,
|
|
798
816
|
folderId: g,
|
|
799
817
|
folderIds: n,
|
|
@@ -801,29 +819,29 @@ const cs = () => {
|
|
|
801
819
|
useAssetIds: l
|
|
802
820
|
}),
|
|
803
821
|
onError(g) {
|
|
804
|
-
typeof g == "string" && e.error(
|
|
822
|
+
typeof g == "string" && e.error(A(g));
|
|
805
823
|
},
|
|
806
824
|
onSuccess: async (g, I) => {
|
|
807
825
|
if (t.getQueryData(y))
|
|
808
|
-
return t.setQueryData(y, (
|
|
826
|
+
return t.setQueryData(y, (E) => {
|
|
809
827
|
var k;
|
|
810
|
-
if (
|
|
828
|
+
if (E) {
|
|
811
829
|
const B = os(r, {
|
|
812
830
|
destinationId: I,
|
|
813
831
|
folders: n
|
|
814
|
-
}),
|
|
815
|
-
...
|
|
816
|
-
pages:
|
|
817
|
-
var
|
|
832
|
+
}), N = {
|
|
833
|
+
...E,
|
|
834
|
+
pages: E == null ? void 0 : E.pages.map((R) => {
|
|
835
|
+
var Q;
|
|
818
836
|
return {
|
|
819
|
-
...
|
|
820
|
-
folders:
|
|
837
|
+
...R,
|
|
838
|
+
folders: R.folders.filter((K) => !n.includes(K.id)),
|
|
821
839
|
pagination: {
|
|
822
|
-
...
|
|
840
|
+
...R.pagination,
|
|
823
841
|
// @ts-ignore
|
|
824
|
-
maxIdx: ((
|
|
842
|
+
maxIdx: ((Q = R.pagination) == null ? void 0 : Q.maxIdx) - g.resources.length
|
|
825
843
|
},
|
|
826
|
-
resources:
|
|
844
|
+
resources: R.resources.filter((K) => l ? !a.includes(K.assetId) : !f.includes(K.id))
|
|
827
845
|
};
|
|
828
846
|
})
|
|
829
847
|
};
|
|
@@ -834,7 +852,7 @@ const cs = () => {
|
|
|
834
852
|
// @ts-ignore
|
|
835
853
|
maxIdx: ((k = s.pagination) == null ? void 0 : k.maxIdx) - g.resources.length
|
|
836
854
|
}
|
|
837
|
-
}),
|
|
855
|
+
}), N;
|
|
838
856
|
}
|
|
839
857
|
});
|
|
840
858
|
},
|
|
@@ -842,10 +860,10 @@ const cs = () => {
|
|
|
842
860
|
d(), u();
|
|
843
861
|
}
|
|
844
862
|
});
|
|
845
|
-
},
|
|
846
|
-
const e = O(), t =
|
|
863
|
+
}, Hs = () => {
|
|
864
|
+
const e = O(), t = q(), s = b(), r = z(), {
|
|
847
865
|
setTreeData: n
|
|
848
|
-
} =
|
|
866
|
+
} = S(), {
|
|
849
867
|
filters: a,
|
|
850
868
|
trashed: o
|
|
851
869
|
} = s, l = ["context", {
|
|
@@ -857,13 +875,13 @@ const cs = () => {
|
|
|
857
875
|
mutationFn: async ({
|
|
858
876
|
name: f,
|
|
859
877
|
parentId: u
|
|
860
|
-
}) => await
|
|
878
|
+
}) => await Ue({
|
|
861
879
|
searchParams: s,
|
|
862
880
|
name: f,
|
|
863
881
|
parentId: u
|
|
864
882
|
}),
|
|
865
883
|
onError(f) {
|
|
866
|
-
typeof f == "string" && e.error(
|
|
884
|
+
typeof f == "string" && e.error(A(f));
|
|
867
885
|
},
|
|
868
886
|
onSuccess: async (f, u) => {
|
|
869
887
|
await t.cancelQueries({
|
|
@@ -893,12 +911,12 @@ const cs = () => {
|
|
|
893
911
|
});
|
|
894
912
|
}
|
|
895
913
|
});
|
|
896
|
-
},
|
|
897
|
-
const e = O(), t =
|
|
914
|
+
}, Ws = () => {
|
|
915
|
+
const e = O(), t = q(), s = b(), r = z(), {
|
|
898
916
|
setFolderIds: n,
|
|
899
917
|
setSelectedFolders: a,
|
|
900
918
|
setTreeData: o
|
|
901
|
-
} =
|
|
919
|
+
} = S(), {
|
|
902
920
|
filters: l,
|
|
903
921
|
trashed: f
|
|
904
922
|
} = s, u = ["context", {
|
|
@@ -911,14 +929,14 @@ const cs = () => {
|
|
|
911
929
|
folderId: d,
|
|
912
930
|
name: h,
|
|
913
931
|
parentId: i
|
|
914
|
-
}) => await
|
|
932
|
+
}) => await Le({
|
|
915
933
|
searchParams: s,
|
|
916
934
|
folderId: d,
|
|
917
935
|
parentId: i,
|
|
918
936
|
name: h
|
|
919
937
|
}),
|
|
920
938
|
onError(d) {
|
|
921
|
-
typeof d == "string" && e.error(
|
|
939
|
+
typeof d == "string" && e.error(A(d));
|
|
922
940
|
},
|
|
923
941
|
onSuccess: async (d, h) => {
|
|
924
942
|
if (await t.cancelQueries({
|
|
@@ -948,11 +966,11 @@ const cs = () => {
|
|
|
948
966
|
n([]), a([]);
|
|
949
967
|
}
|
|
950
968
|
});
|
|
951
|
-
},
|
|
952
|
-
const t =
|
|
969
|
+
}, Gs = (e) => {
|
|
970
|
+
const t = q(), s = b(), {
|
|
953
971
|
setResourceIds: r,
|
|
954
972
|
setSelectedResources: n
|
|
955
|
-
} =
|
|
973
|
+
} = S(), {
|
|
956
974
|
filters: a,
|
|
957
975
|
trashed: o
|
|
958
976
|
} = s, l = ["context", {
|
|
@@ -992,8 +1010,8 @@ const cs = () => {
|
|
|
992
1010
|
}
|
|
993
1011
|
}
|
|
994
1012
|
});
|
|
995
|
-
},
|
|
996
|
-
const t =
|
|
1013
|
+
}, Js = (e) => {
|
|
1014
|
+
const t = q(), s = b(), {
|
|
997
1015
|
filters: r,
|
|
998
1016
|
trashed: n
|
|
999
1017
|
} = s, a = ["context", {
|
|
@@ -1001,7 +1019,7 @@ const cs = () => {
|
|
|
1001
1019
|
filters: r,
|
|
1002
1020
|
trashed: n
|
|
1003
1021
|
}];
|
|
1004
|
-
return
|
|
1022
|
+
return we({
|
|
1005
1023
|
application: e,
|
|
1006
1024
|
options: {
|
|
1007
1025
|
onSuccess: async (o, l) => {
|
|
@@ -1044,23 +1062,23 @@ const cs = () => {
|
|
|
1044
1062
|
}
|
|
1045
1063
|
});
|
|
1046
1064
|
};
|
|
1047
|
-
const
|
|
1048
|
-
const e = O(), t =
|
|
1065
|
+
const Xs = () => {
|
|
1066
|
+
const e = O(), t = q(), s = b(), {
|
|
1049
1067
|
user: r
|
|
1050
|
-
} =
|
|
1068
|
+
} = Se(), {
|
|
1051
1069
|
appCode: n
|
|
1052
|
-
} =
|
|
1070
|
+
} = L(), a = ["context", {
|
|
1053
1071
|
folderId: s.filters.folder,
|
|
1054
1072
|
filters: s.filters,
|
|
1055
1073
|
trashed: s.trashed
|
|
1056
1074
|
}];
|
|
1057
1075
|
return M({
|
|
1058
|
-
mutationFn: async (o) => await
|
|
1076
|
+
mutationFn: async (o) => await ze({
|
|
1059
1077
|
searchParams: s,
|
|
1060
1078
|
params: o
|
|
1061
1079
|
}),
|
|
1062
1080
|
onError(o) {
|
|
1063
|
-
typeof o == "string" && e.error(
|
|
1081
|
+
typeof o == "string" && e.error(A(o));
|
|
1064
1082
|
},
|
|
1065
1083
|
onSuccess: async (o, l) => {
|
|
1066
1084
|
var h, i, p;
|
|
@@ -1100,41 +1118,41 @@ const Ws = () => {
|
|
|
1100
1118
|
}
|
|
1101
1119
|
});
|
|
1102
1120
|
}, ls = /* @__PURE__ */ x(async () => await import("./EmptyScreenApp.js")), ds = /* @__PURE__ */ x(async () => await import("./EmptyScreenSearch.js")), us = /* @__PURE__ */ x(async () => await import("./EmptyScreenError.js")), hs = /* @__PURE__ */ x(async () => await import("./EmptyScreenNoContentInFolder.js")), fs = /* @__PURE__ */ x(async () => await import("./EmptyScreenTrash.js")), ps = /* @__PURE__ */ x(async () => await import("./FoldersList.js")), ms = /* @__PURE__ */ x(async () => await import("./ResourcesList.js")), gs = () => {
|
|
1103
|
-
const e = Xe(), t = re(), s = Ye(), r =
|
|
1121
|
+
const e = Xe(), t = re(), s = Ye(), r = b(), n = W(), a = z(), o = O(), {
|
|
1104
1122
|
appCode: l
|
|
1105
|
-
} =
|
|
1123
|
+
} = L(), {
|
|
1106
1124
|
t: f
|
|
1107
|
-
} =
|
|
1125
|
+
} = j(), {
|
|
1108
1126
|
setSearchParams: u,
|
|
1109
1127
|
setSearchConfig: d,
|
|
1110
1128
|
setTreeData: h
|
|
1111
|
-
} =
|
|
1129
|
+
} = S(), {
|
|
1112
1130
|
data: i,
|
|
1113
1131
|
isError: p,
|
|
1114
1132
|
error: m,
|
|
1115
1133
|
isLoading: y,
|
|
1116
1134
|
isFetching: g,
|
|
1117
1135
|
fetchNextPage: I
|
|
1118
|
-
} = is(),
|
|
1119
|
-
return
|
|
1120
|
-
var B,
|
|
1136
|
+
} = is(), T = (i == null ? void 0 : i.pages[0].folders.length) === 0, E = (i == null ? void 0 : i.pages[0].resources.length) === 0, k = T && E;
|
|
1137
|
+
return U(() => {
|
|
1138
|
+
var B, N, R;
|
|
1121
1139
|
if (i) {
|
|
1122
|
-
const
|
|
1123
|
-
(
|
|
1124
|
-
id:
|
|
1140
|
+
const Q = [...((B = i == null ? void 0 : i.pages[0]) == null ? void 0 : B.folders) ?? []];
|
|
1141
|
+
(N = i == null ? void 0 : i.pages[0]) != null && N.searchConfig && d(i.pages[0].searchConfig), r.search || ((n == null ? void 0 : n.id) === "default" ? h({
|
|
1142
|
+
id: F.DEFAULT,
|
|
1125
1143
|
section: !0,
|
|
1126
|
-
children:
|
|
1144
|
+
children: Q.map((K) => new G(K)),
|
|
1127
1145
|
name: f("explorer.filters.mine", {
|
|
1128
1146
|
ns: l
|
|
1129
1147
|
})
|
|
1130
|
-
}) : h(de(a,
|
|
1148
|
+
}) : h(de(a, Q, r.filters.folder || F.DEFAULT))), u({
|
|
1131
1149
|
...r,
|
|
1132
|
-
pagination: (
|
|
1150
|
+
pagination: (R = i == null ? void 0 : i.pages[(i == null ? void 0 : i.pages.length) - 1]) == null ? void 0 : R.pagination
|
|
1133
1151
|
});
|
|
1134
1152
|
}
|
|
1135
|
-
}, [i]),
|
|
1153
|
+
}, [i]), U(() => {
|
|
1136
1154
|
m && typeof m == "string" && o.error(f(m));
|
|
1137
|
-
}, [m]), y ? /* @__PURE__ */ c(
|
|
1155
|
+
}, [m]), y ? /* @__PURE__ */ c(P, {}) : p ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(P, {}), children: /* @__PURE__ */ c(us, {}) }) : r.search && k ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(P, {}), children: /* @__PURE__ */ c(ds, {}) }) : e && k ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(P, {}), children: /* @__PURE__ */ c(ls, {}) }) : s && k && !t ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(P, {}), children: /* @__PURE__ */ c(hs, {}) }) : t && (i == null ? void 0 : i.pages[0].resources.length) === 0 ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(P, {}), children: /* @__PURE__ */ c(fs, {}) }) : /* @__PURE__ */ C(v, { fallback: /* @__PURE__ */ c(P, {}), children: [
|
|
1138
1156
|
/* @__PURE__ */ c(ps, { data: i, isFetching: g }),
|
|
1139
1157
|
/* @__PURE__ */ c(ms, { data: i, isFetching: g, fetchNextPage: I })
|
|
1140
1158
|
] });
|
|
@@ -1142,18 +1160,18 @@ const Ws = () => {
|
|
|
1142
1160
|
const {
|
|
1143
1161
|
appCode: e,
|
|
1144
1162
|
currentApp: t
|
|
1145
|
-
} =
|
|
1163
|
+
} = L(), {
|
|
1146
1164
|
t: s
|
|
1147
|
-
} =
|
|
1165
|
+
} = j(), [r, n] = ae(""), a = (d) => {
|
|
1148
1166
|
if (d === "0") {
|
|
1149
1167
|
n("");
|
|
1150
1168
|
return;
|
|
1151
1169
|
}
|
|
1152
1170
|
n(d);
|
|
1153
|
-
}, o = W(), l =
|
|
1171
|
+
}, o = W(), l = b(), {
|
|
1154
1172
|
setSearchParams: f
|
|
1155
|
-
} =
|
|
1156
|
-
|
|
1173
|
+
} = S();
|
|
1174
|
+
U(() => {
|
|
1157
1175
|
const d = () => r.includes("1") ? !0 : void 0, h = () => r.includes("2") ? !0 : void 0, i = () => r.includes("7") ? !0 : void 0;
|
|
1158
1176
|
f({
|
|
1159
1177
|
...l,
|
|
@@ -1206,9 +1224,9 @@ const Ws = () => {
|
|
|
1206
1224
|
}, Is = () => {
|
|
1207
1225
|
const {
|
|
1208
1226
|
appCode: e
|
|
1209
|
-
} =
|
|
1227
|
+
} = L(), {
|
|
1210
1228
|
t
|
|
1211
|
-
} =
|
|
1229
|
+
} = j(), {
|
|
1212
1230
|
selectedFilters: s,
|
|
1213
1231
|
options: r,
|
|
1214
1232
|
handleOnSelectFilter: n
|
|
@@ -1219,8 +1237,8 @@ const Ws = () => {
|
|
|
1219
1237
|
handleKeyPress: f,
|
|
1220
1238
|
handleSearchSubmit: u
|
|
1221
1239
|
} = ue(), d = s.length > 0 ? s.length : void 0;
|
|
1222
|
-
return /* @__PURE__ */
|
|
1223
|
-
/* @__PURE__ */
|
|
1240
|
+
return /* @__PURE__ */ C("form", { noValidate: !0, className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative z-3 d-flex gap-8", ref: a, children: [
|
|
1241
|
+
/* @__PURE__ */ C(xe, { id: "search", className: "input-group", children: [
|
|
1224
1242
|
/* @__PURE__ */ c(De, { type: "search", placeholder: t("explorer.label.search", {
|
|
1225
1243
|
ns: e
|
|
1226
1244
|
}), size: "lg", noValidationIcon: !0, value: o, onChange: l, onKeyDown: f }),
|
|
@@ -1228,57 +1246,57 @@ const Ws = () => {
|
|
|
1228
1246
|
ns: e
|
|
1229
1247
|
}), onClick: u })
|
|
1230
1248
|
] }),
|
|
1231
|
-
/* @__PURE__ */
|
|
1232
|
-
/* @__PURE__ */ c(
|
|
1233
|
-
/* @__PURE__ */ c(
|
|
1234
|
-
/* @__PURE__ */ c(
|
|
1235
|
-
/* @__PURE__ */ c(
|
|
1236
|
-
] }, "0") : /* @__PURE__ */ c(
|
|
1249
|
+
/* @__PURE__ */ C($, { placement: "bottom-end", children: [
|
|
1250
|
+
/* @__PURE__ */ c($.Trigger, { label: t("explorer.filters"), icon: /* @__PURE__ */ c(Ee, { width: 20 }), variant: "ghost", badgeContent: d }),
|
|
1251
|
+
/* @__PURE__ */ c($.Menu, { children: r.map((h) => h.value === "0" ? /* @__PURE__ */ C(me, { children: [
|
|
1252
|
+
/* @__PURE__ */ c($.RadioItem, { value: h.value, model: s, onChange: () => n(h.value), children: h.label }),
|
|
1253
|
+
/* @__PURE__ */ c($.Separator, {})
|
|
1254
|
+
] }, "0") : /* @__PURE__ */ c($.RadioItem, { value: h.value, model: s, onChange: () => n(h.value), children: h.label }, h.value)) })
|
|
1237
1255
|
] })
|
|
1238
1256
|
] });
|
|
1239
|
-
},
|
|
1257
|
+
}, ws = ({
|
|
1240
1258
|
id: e,
|
|
1241
1259
|
selected: t,
|
|
1242
1260
|
onSelect: s
|
|
1243
1261
|
}) => {
|
|
1244
1262
|
const {
|
|
1245
1263
|
t: r
|
|
1246
|
-
} =
|
|
1247
|
-
return /* @__PURE__ */ c("div", { className: "treeview", children: /* @__PURE__ */ c("ul", { role: "tree", className: "m-0 p-0", children: /* @__PURE__ */ c("li", { id: e, role: "treeitem", "aria-selected": t, children: /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c("div", { className: "action-container", children: /* @__PURE__ */ c("div", { onClick: s, role: "button", tabIndex: 0, children: /* @__PURE__ */
|
|
1248
|
-
/* @__PURE__ */ c(
|
|
1264
|
+
} = j();
|
|
1265
|
+
return /* @__PURE__ */ c("div", { className: "treeview", children: /* @__PURE__ */ c("ul", { role: "tree", className: "m-0 p-0", children: /* @__PURE__ */ c("li", { id: e, role: "treeitem", "aria-selected": t, children: /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c("div", { className: "action-container", children: /* @__PURE__ */ c("div", { onClick: s, role: "button", tabIndex: 0, children: /* @__PURE__ */ C("div", { className: "d-flex align-items-center gap-8 py-8 ps-24", children: [
|
|
1266
|
+
/* @__PURE__ */ c(Qe, { width: "20", height: "20" }),
|
|
1249
1267
|
/* @__PURE__ */ c("span", { children: r("explorer.tree.trash") })
|
|
1250
1268
|
] }) }) }) }) }) }) });
|
|
1251
|
-
},
|
|
1252
|
-
const e =
|
|
1269
|
+
}, Ss = /* @__PURE__ */ x(async () => await import("./FolderModal.js")), xs = () => {
|
|
1270
|
+
const e = q(), [t, s] = Te(), r = z(), n = re(), a = te(), {
|
|
1253
1271
|
appCode: o
|
|
1254
|
-
} =
|
|
1272
|
+
} = L(), {
|
|
1255
1273
|
t: l
|
|
1256
|
-
} =
|
|
1274
|
+
} = j(["common", o]), {
|
|
1257
1275
|
goToTrash: f,
|
|
1258
1276
|
selectTreeItem: u,
|
|
1259
1277
|
unfoldTreeItem: d,
|
|
1260
1278
|
foldTreeItem: h,
|
|
1261
1279
|
clearSelectedItems: i,
|
|
1262
1280
|
clearSelectedIds: p
|
|
1263
|
-
} =
|
|
1281
|
+
} = S(), m = async (g) => {
|
|
1264
1282
|
await d(g, e);
|
|
1265
1283
|
}, y = () => {
|
|
1266
1284
|
i(), p(), s();
|
|
1267
1285
|
};
|
|
1268
|
-
return /* @__PURE__ */
|
|
1286
|
+
return /* @__PURE__ */ C(oe, { children: [
|
|
1269
1287
|
/* @__PURE__ */ c(Fe, { data: r, selectedNodesIds: a, onTreeItemSelect: u, onTreeItemFold: h, onTreeItemUnfold: m }),
|
|
1270
|
-
/* @__PURE__ */ c(
|
|
1271
|
-
/* @__PURE__ */ c("div", { className: "d-grid my-16", children: /* @__PURE__ */ c(Ce, { disabled: n, type: "button", color: "primary", variant: "outline", leftIcon: /* @__PURE__ */ c(
|
|
1272
|
-
/* @__PURE__ */ c(
|
|
1288
|
+
/* @__PURE__ */ c(ws, { id: F.BIN, selected: n, onSelect: f }),
|
|
1289
|
+
/* @__PURE__ */ c("div", { className: "d-grid my-16", children: /* @__PURE__ */ c(Ce, { disabled: n, type: "button", color: "primary", variant: "outline", leftIcon: /* @__PURE__ */ c(ve, {}), onClick: y, children: l("explorer.folder.new") }) }),
|
|
1290
|
+
/* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(P, {}), children: t && /* @__PURE__ */ c(Ss, { edit: !1, isOpen: t, onSuccess: s, onCancel: s }) })
|
|
1273
1291
|
] });
|
|
1274
|
-
}, Ds = /* @__PURE__ */ x(async () => await import("./AppAction.js")), bs = /* @__PURE__ */ x(async () => await import("./Library.js")), Ts = /* @__PURE__ */ x(async () => await import("./ActionBarContainer.js")), Fs = /* @__PURE__ */ x(async () => await import("./DisableModal.js")), Cs = /* @__PURE__ */ x(async () => await import("./TrashModal.js")), Ns = /* @__PURE__ */ x(async () => await import("./OnboardingModal.js")),
|
|
1292
|
+
}, Ds = /* @__PURE__ */ x(async () => await import("./AppAction.js")), bs = /* @__PURE__ */ x(async () => await import("./Library.js")), Ts = /* @__PURE__ */ x(async () => await import("./ActionBarContainer.js")), Fs = /* @__PURE__ */ x(async () => await import("./DisableModal.js")), Cs = /* @__PURE__ */ x(async () => await import("./TrashModal.js")), Ns = /* @__PURE__ */ x(async () => await import("./OnboardingModal.js")), Ys = ({
|
|
1275
1293
|
config: e
|
|
1276
1294
|
}) => {
|
|
1277
|
-
const t =
|
|
1295
|
+
const t = b(), {
|
|
1278
1296
|
setConfig: s,
|
|
1279
1297
|
setSearchParams: r
|
|
1280
|
-
} =
|
|
1281
|
-
|
|
1298
|
+
} = S();
|
|
1299
|
+
U(() => {
|
|
1282
1300
|
s(e || {}), r({
|
|
1283
1301
|
...t,
|
|
1284
1302
|
application: e.app,
|
|
@@ -1287,7 +1305,7 @@ const Ws = () => {
|
|
|
1287
1305
|
}, [e]);
|
|
1288
1306
|
const {
|
|
1289
1307
|
currentApp: n
|
|
1290
|
-
} =
|
|
1308
|
+
} = L(), {
|
|
1291
1309
|
data: a
|
|
1292
1310
|
} = cs(), {
|
|
1293
1311
|
isTrashedModalOpen: o,
|
|
@@ -1298,19 +1316,19 @@ const Ws = () => {
|
|
|
1298
1316
|
} = ss();
|
|
1299
1317
|
Ne();
|
|
1300
1318
|
const d = ne("publish", a), h = ne("create", a);
|
|
1301
|
-
return e && /* @__PURE__ */
|
|
1302
|
-
/* @__PURE__ */ c(Re, { render: () => h ? /* @__PURE__ */ c(
|
|
1303
|
-
/* @__PURE__ */
|
|
1304
|
-
/* @__PURE__ */ c(ee.Col, { sm: "3", lg: "2", xl: "3", className: "border-end pt-16 pe-16 d-none d-lg-block", as: "aside", children: /* @__PURE__ */
|
|
1319
|
+
return e && /* @__PURE__ */ C(oe, { children: [
|
|
1320
|
+
/* @__PURE__ */ c(Re, { render: () => h ? /* @__PURE__ */ c(v, { fallback: /* @__PURE__ */ c(P, {}), children: /* @__PURE__ */ c(Ds, {}) }) : null, children: /* @__PURE__ */ c(Pe, { app: n }) }),
|
|
1321
|
+
/* @__PURE__ */ C(ee, { className: "flex-grow-1", children: [
|
|
1322
|
+
/* @__PURE__ */ c(ee.Col, { sm: "3", lg: "2", xl: "3", className: "border-end pt-16 pe-16 d-none d-lg-block", as: "aside", children: /* @__PURE__ */ C(v, { fallback: /* @__PURE__ */ c(P, {}), children: [
|
|
1305
1323
|
/* @__PURE__ */ c(xs, {}),
|
|
1306
1324
|
d && /* @__PURE__ */ c(bs, {})
|
|
1307
1325
|
] }) }),
|
|
1308
|
-
/* @__PURE__ */
|
|
1326
|
+
/* @__PURE__ */ C(ee.Col, { sm: "4", md: "8", lg: "6", xl: "9", children: [
|
|
1309
1327
|
/* @__PURE__ */ c(Is, {}),
|
|
1310
1328
|
/* @__PURE__ */ c(es, {}),
|
|
1311
1329
|
/* @__PURE__ */ c(gs, {})
|
|
1312
1330
|
] }),
|
|
1313
|
-
/* @__PURE__ */
|
|
1331
|
+
/* @__PURE__ */ C(v, { fallback: /* @__PURE__ */ c(P, {}), children: [
|
|
1314
1332
|
/* @__PURE__ */ c(Ts, {}),
|
|
1315
1333
|
/* @__PURE__ */ c(Ns, { id: "showOnboardingTrash", items: [{
|
|
1316
1334
|
src: "onboarding/illu-trash-menu.svg",
|
|
@@ -1337,26 +1355,29 @@ const Ws = () => {
|
|
|
1337
1355
|
] });
|
|
1338
1356
|
};
|
|
1339
1357
|
export {
|
|
1340
|
-
|
|
1358
|
+
Ys as E,
|
|
1341
1359
|
cs as a,
|
|
1342
1360
|
W as b,
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1361
|
+
Xs as c,
|
|
1362
|
+
b as d,
|
|
1363
|
+
re as e,
|
|
1364
|
+
w as f,
|
|
1365
|
+
Ls as g,
|
|
1366
|
+
X as h,
|
|
1367
|
+
_s as i,
|
|
1350
1368
|
Ks as j,
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1369
|
+
J as k,
|
|
1370
|
+
js as l,
|
|
1371
|
+
Ge as m,
|
|
1372
|
+
Ms as n,
|
|
1373
|
+
Bs as o,
|
|
1374
|
+
Gs as p,
|
|
1375
|
+
Js as q,
|
|
1376
|
+
Hs as r,
|
|
1377
|
+
Ws as s,
|
|
1378
|
+
zs as t,
|
|
1379
|
+
S as u,
|
|
1380
|
+
$s as v,
|
|
1381
|
+
Vs as w,
|
|
1382
|
+
z as x
|
|
1362
1383
|
};
|