ode-explorer 1.4.1 → 1.4.2
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/index.js +11 -8
- package/dist/version.txt +1 -1
- package/lib/index2.js +152 -150
- package/lib/store/index.d.ts +4 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -35,7 +35,7 @@ var __privateMethod = (obj, member, method) => {
|
|
|
35
35
|
return method;
|
|
36
36
|
};
|
|
37
37
|
var _focused, _cleanup, _setup, _a, _online, _cleanup2, _setup2, _b, _gcTimeout, _c, _initialState, _revertState, _cache, _promise, _retryer, _observers, _defaultOptions, _abortSignalConsumed, _setOptions, setOptions_fn, _dispatch, dispatch_fn, _d, _queries, _e, _observers2, _defaultOptions2, _mutationCache, _retryer2, _dispatch2, dispatch_fn2, _f, _mutations, _mutationId, _resuming, _g, _queryCache, _mutationCache2, _defaultOptions3, _queryDefaults, _mutationDefaults, _mountCount, _unsubscribeFocus, _unsubscribeOnline, _h, _client, _currentQuery, _currentQueryInitialState, _currentResult, _currentResultState, _currentResultOptions, _selectError, _selectFn, _selectResult, _lastQueryWithDefinedData, _staleTimeoutId, _refetchIntervalId, _currentRefetchInterval, _trackedProps, _executeFetch, executeFetch_fn, _updateStaleTimeout, updateStaleTimeout_fn, _computeRefetchInterval, computeRefetchInterval_fn, _updateRefetchInterval, updateRefetchInterval_fn, _updateTimers, updateTimers_fn, _clearStaleTimeout, clearStaleTimeout_fn, _clearRefetchInterval, clearRefetchInterval_fn, _updateQuery, updateQuery_fn, _notify, notify_fn, _i, _client2, _currentResult2, _currentMutation, _mutateOptions, _updateResult, updateResult_fn, _notify2, notify_fn2, _j;
|
|
38
|
-
import { odeServices, FOLDER, ACTION } from "/assets/js/edifice-ts-client/index.js";
|
|
38
|
+
import { odeServices, FOLDER, SORT_ORDER, ACTION } from "/assets/js/edifice-ts-client/index.js";
|
|
39
39
|
function _mergeNamespaces(n2, m2) {
|
|
40
40
|
for (var i2 = 0; i2 < m2.length; i2++) {
|
|
41
41
|
const e2 = m2[i2];
|
|
@@ -62538,7 +62538,7 @@ const useConversation = () => {
|
|
|
62538
62538
|
return reactExports.useEffect(() => {
|
|
62539
62539
|
refreshMails();
|
|
62540
62540
|
}, []), reactExports.useEffect(() => {
|
|
62541
|
-
|
|
62541
|
+
goToMessagerie();
|
|
62542
62542
|
}, []), {
|
|
62543
62543
|
messages: messages2,
|
|
62544
62544
|
msgLink,
|
|
@@ -65457,7 +65457,7 @@ const defaultActions = [{
|
|
|
65457
65457
|
}
|
|
65458
65458
|
}
|
|
65459
65459
|
};
|
|
65460
|
-
}, initialState = {
|
|
65460
|
+
}, initialState$2 = {
|
|
65461
65461
|
isSharing: false,
|
|
65462
65462
|
shareRights: {
|
|
65463
65463
|
rights: [],
|
|
@@ -65510,7 +65510,7 @@ function useShare({
|
|
|
65510
65510
|
avatar
|
|
65511
65511
|
} = useUser(), toast2 = useToast(), {
|
|
65512
65512
|
t: t2
|
|
65513
|
-
} = useTranslation(), [state, dispatch] = reactExports.useReducer(reducer, initialState);
|
|
65513
|
+
} = useTranslation(), [state, dispatch] = reactExports.useReducer(reducer, initialState$2);
|
|
65514
65514
|
return reactExports.useEffect(() => {
|
|
65515
65515
|
resource && (async () => {
|
|
65516
65516
|
const shareRightActions = await odeServices.share().getActionsForApp(appCode), shareRights = await odeServices.share().getRightsForResource(appCode, resource == null ? void 0 : resource.assetId);
|
|
@@ -66686,17 +66686,17 @@ const wrapTreeNode = (treeNode, folders, parentId) => {
|
|
|
66686
66686
|
return node2;
|
|
66687
66687
|
});
|
|
66688
66688
|
};
|
|
66689
|
-
const
|
|
66689
|
+
const initialState = {
|
|
66690
66690
|
config: null,
|
|
66691
66691
|
searchConfig: { minLength: 1 },
|
|
66692
66692
|
searchParams: {
|
|
66693
66693
|
filters: {
|
|
66694
|
-
folder:
|
|
66694
|
+
folder: FOLDER.DEFAULT,
|
|
66695
66695
|
owner: void 0,
|
|
66696
66696
|
shared: void 0,
|
|
66697
66697
|
public: void 0
|
|
66698
66698
|
},
|
|
66699
|
-
orders: { updatedAt:
|
|
66699
|
+
orders: { updatedAt: SORT_ORDER.DESC },
|
|
66700
66700
|
application: "",
|
|
66701
66701
|
types: [],
|
|
66702
66702
|
pagination: {
|
|
@@ -66722,7 +66722,10 @@ const useStoreContext = create()((set2, get2) => ({
|
|
|
66722
66722
|
resourceIds: [],
|
|
66723
66723
|
resourceIsTrash: false,
|
|
66724
66724
|
resourceActionDisable: false,
|
|
66725
|
-
status: void 0
|
|
66725
|
+
status: void 0
|
|
66726
|
+
};
|
|
66727
|
+
const useStoreContext = create()((set2, get2) => ({
|
|
66728
|
+
...initialState,
|
|
66726
66729
|
updaters: {
|
|
66727
66730
|
setConfig: (config2) => set2({ config: config2 }),
|
|
66728
66731
|
setSearchConfig: (searchConfig) => set2((state) => ({
|
package/dist/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ode-explorer=1.0-b2school-SNAPSHOT
|
|
1
|
+
ode-explorer=1.0-b2school-SNAPSHOT 18/03/2024 18:14:14
|
package/lib/index2.js
CHANGED
|
@@ -2,21 +2,21 @@ var pe = Object.defineProperty;
|
|
|
2
2
|
var me = (e, t, s) => t in e ? pe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : e[t] = s;
|
|
3
3
|
var _ = (e, t, s) => (me(e, typeof t != "symbol" ? t + "" : t, s), s);
|
|
4
4
|
import { jsx as c, jsxs as N, Fragment as oe } from "react/jsx-runtime";
|
|
5
|
-
import { useState as ae, useRef as ge, useEffect as
|
|
6
|
-
import { useScrollToTop as Ie, useOdeClient as M, IconButton as we, useToast as
|
|
5
|
+
import { useState as ae, useRef as ge, useEffect as v, lazy as F, Suspense as O, Fragment as ye } from "react";
|
|
6
|
+
import { useScrollToTop as Ie, useOdeClient as M, IconButton as we, useToast as U, useUser as ce, useShareMutation as Se, useUpdateMutation as xe, LoadingScreen as A, FormControl as De, Input as Te, SearchButton as be, Dropdown as $, useToggle as Fe, TreeView as Ce, Button as Ne, useXitiTrackPageLoad as Re, isActionAvailable as ne, AppHeader as Pe, Breadcrumb as Ae, Grid as ee } from "@edifice-ui/react";
|
|
7
7
|
import { ArrowLeft as Ee, Filter as Qe, Delete as qe, Plus as Oe } from "@edifice-ui/icons";
|
|
8
8
|
import { useTranslation as j } from "react-i18next";
|
|
9
|
-
import { odeServices as x, FOLDER as
|
|
9
|
+
import { odeServices as x, FOLDER as b, SORT_ORDER as Ue } from "edifice-ts-client";
|
|
10
10
|
import { t as S } from "i18next";
|
|
11
11
|
import { create as ke } from "zustand";
|
|
12
|
-
import { useQuery as
|
|
12
|
+
import { useQuery as Le, useInfiniteQuery as ve, useQueryClient as E, useMutation as L } from "@tanstack/react-query";
|
|
13
13
|
const ie = async (e) => {
|
|
14
14
|
const t = await x.resource(e.application).searchContext(e);
|
|
15
15
|
return {
|
|
16
16
|
...t,
|
|
17
17
|
folders: t.folders.filter((s) => !s.trashed)
|
|
18
18
|
};
|
|
19
|
-
},
|
|
19
|
+
}, Me = async ({
|
|
20
20
|
searchParams: e,
|
|
21
21
|
name: t,
|
|
22
22
|
parentId: s
|
|
@@ -28,7 +28,7 @@ const ie = async (e) => {
|
|
|
28
28
|
type: e.types[0]
|
|
29
29
|
};
|
|
30
30
|
return await x.resource(e.application).createFolder(r);
|
|
31
|
-
},
|
|
31
|
+
}, Ke = async ({
|
|
32
32
|
folderId: e,
|
|
33
33
|
searchParams: t,
|
|
34
34
|
parentId: s,
|
|
@@ -42,7 +42,7 @@ const ie = async (e) => {
|
|
|
42
42
|
type: t.types[0]
|
|
43
43
|
};
|
|
44
44
|
return await x.resource(t.application).updateFolder(n);
|
|
45
|
-
},
|
|
45
|
+
}, Be = async ({
|
|
46
46
|
searchParams: e,
|
|
47
47
|
resourceIds: t,
|
|
48
48
|
useAssetIds: s,
|
|
@@ -55,7 +55,7 @@ const ie = async (e) => {
|
|
|
55
55
|
folderIds: r
|
|
56
56
|
};
|
|
57
57
|
return await x.resource(e.application).trashAll(n, s);
|
|
58
|
-
},
|
|
58
|
+
}, _e = async ({
|
|
59
59
|
searchParams: e,
|
|
60
60
|
resourceIds: t,
|
|
61
61
|
useAssetIds: s,
|
|
@@ -68,7 +68,7 @@ const ie = async (e) => {
|
|
|
68
68
|
folderIds: r
|
|
69
69
|
};
|
|
70
70
|
return await x.resource(e.application).deleteAll(n, s);
|
|
71
|
-
},
|
|
71
|
+
}, $e = async ({
|
|
72
72
|
searchParams: e,
|
|
73
73
|
resourceIds: t,
|
|
74
74
|
folderIds: s,
|
|
@@ -81,7 +81,7 @@ const ie = async (e) => {
|
|
|
81
81
|
folderIds: s
|
|
82
82
|
};
|
|
83
83
|
return await x.resource(e.application).restoreAll(n, r);
|
|
84
|
-
},
|
|
84
|
+
}, je = async (e, t) => await x.resource(e.application).copy({
|
|
85
85
|
application: e.application,
|
|
86
86
|
resourceId: t
|
|
87
87
|
}), le = async ({
|
|
@@ -99,34 +99,34 @@ const ie = async (e) => {
|
|
|
99
99
|
};
|
|
100
100
|
return await x.resource(e.application).moveToFolder(a, n);
|
|
101
101
|
};
|
|
102
|
-
const
|
|
102
|
+
const ze = async (e) => await x.rights().sessionHasWorkflowRights(e), Ve = ({
|
|
103
103
|
searchParams: e,
|
|
104
104
|
assetId: t
|
|
105
105
|
}) => {
|
|
106
106
|
const s = x.resource(e.application).getViewUrl(t);
|
|
107
107
|
window.open(s, "_self");
|
|
108
|
-
},
|
|
108
|
+
}, He = ({
|
|
109
109
|
searchParams: e,
|
|
110
110
|
params: t
|
|
111
|
-
}) => x.resource(e.application).create(t),
|
|
111
|
+
}) => x.resource(e.application).create(t), We = ({
|
|
112
112
|
searchParams: e,
|
|
113
113
|
assetId: t
|
|
114
114
|
}) => {
|
|
115
115
|
const s = x.resource(e.application).getPrintUrl(t);
|
|
116
116
|
return window.open(s, "_blank");
|
|
117
|
-
},
|
|
117
|
+
}, Bt = ({
|
|
118
118
|
searchParams: e,
|
|
119
119
|
folderId: t
|
|
120
120
|
}) => {
|
|
121
121
|
const s = x.resource(e.application).getFormUrl(t);
|
|
122
122
|
return window.open(s, "_self");
|
|
123
|
-
},
|
|
123
|
+
}, _t = ({
|
|
124
124
|
searchParams: e,
|
|
125
125
|
assetId: t
|
|
126
126
|
}) => {
|
|
127
127
|
const s = x.resource(e.application).getEditUrl(t);
|
|
128
128
|
return window.open(s, "_self");
|
|
129
|
-
},
|
|
129
|
+
}, $t = ({
|
|
130
130
|
searchParams: e,
|
|
131
131
|
assetId: t
|
|
132
132
|
}) => {
|
|
@@ -141,10 +141,10 @@ function H(e, t) {
|
|
|
141
141
|
let s;
|
|
142
142
|
return (t == null ? void 0 : t.id) === e ? t : ((r = t == null ? void 0 : t.children) != null && r.length && ((n = t == null ? void 0 : t.children) == null || n.every((a) => (s = H(e, a), s === void 0))), s);
|
|
143
143
|
}
|
|
144
|
-
function
|
|
144
|
+
function Ge(e, t) {
|
|
145
145
|
var r;
|
|
146
146
|
const s = H(e, t);
|
|
147
|
-
return (r = s == null ? void 0 : s.folder) != null && r.ancestors ? [...(s == null ? void 0 : s.folder.ancestors) || [], e] : e ===
|
|
147
|
+
return (r = s == null ? void 0 : s.folder) != null && r.ancestors ? [...(s == null ? void 0 : s.folder.ancestors) || [], e] : e === b.BIN ? [b.BIN] : [b.DEFAULT];
|
|
148
148
|
}
|
|
149
149
|
function de(e, t) {
|
|
150
150
|
return t.id === e && t.children ? t.children.length > 0 : t.children ? t.children.some((s) => de(t.id, s)) : !1;
|
|
@@ -178,20 +178,20 @@ class G {
|
|
|
178
178
|
this.folder = t, this.id = t.id, this.name = t.name, this.childNumber = t.childNumber;
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
|
-
const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? void 0 : t.map((n) => new G(n))), r)),
|
|
181
|
+
const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? void 0 : t.map((n) => new G(n))), r)), Je = {
|
|
182
182
|
config: null,
|
|
183
183
|
searchConfig: {
|
|
184
184
|
minLength: 1
|
|
185
185
|
},
|
|
186
186
|
searchParams: {
|
|
187
187
|
filters: {
|
|
188
|
-
folder:
|
|
188
|
+
folder: b.DEFAULT,
|
|
189
189
|
owner: void 0,
|
|
190
190
|
shared: void 0,
|
|
191
191
|
public: void 0
|
|
192
192
|
},
|
|
193
193
|
orders: {
|
|
194
|
-
updatedAt:
|
|
194
|
+
updatedAt: Ue.DESC
|
|
195
195
|
},
|
|
196
196
|
application: "",
|
|
197
197
|
types: [],
|
|
@@ -203,7 +203,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
203
203
|
trashed: !1
|
|
204
204
|
},
|
|
205
205
|
treeData: {
|
|
206
|
-
id:
|
|
206
|
+
id: b.DEFAULT,
|
|
207
207
|
name: S("explorer.filters.mine"),
|
|
208
208
|
section: !0,
|
|
209
209
|
children: []
|
|
@@ -218,7 +218,9 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
218
218
|
resourceIds: [],
|
|
219
219
|
resourceIsTrash: !1,
|
|
220
220
|
resourceActionDisable: !1,
|
|
221
|
-
status: void 0
|
|
221
|
+
status: void 0
|
|
222
|
+
}, w = ke()((e, t) => ({
|
|
223
|
+
...Je,
|
|
222
224
|
updaters: {
|
|
223
225
|
setConfig: (s) => e({
|
|
224
226
|
config: s
|
|
@@ -310,7 +312,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
310
312
|
const {
|
|
311
313
|
searchParams: r
|
|
312
314
|
} = t();
|
|
313
|
-
|
|
315
|
+
Ve({
|
|
314
316
|
searchParams: r,
|
|
315
317
|
assetId: s.assetId
|
|
316
318
|
});
|
|
@@ -328,7 +330,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
328
330
|
if (r.length !== 1)
|
|
329
331
|
throw new Error("Cannot open more than 1 resource");
|
|
330
332
|
const a = r.find((o) => o.id === n[0]);
|
|
331
|
-
|
|
333
|
+
We({
|
|
332
334
|
searchParams: s,
|
|
333
335
|
assetId: a.assetId
|
|
334
336
|
});
|
|
@@ -343,7 +345,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
343
345
|
const {
|
|
344
346
|
searchParams: n,
|
|
345
347
|
treeData: a
|
|
346
|
-
} = t(), o = n.filters.folder, l =
|
|
348
|
+
} = t(), o = n.filters.folder, l = Ge(s, a), h = te([...l, s]);
|
|
347
349
|
o !== s && e((d) => ({
|
|
348
350
|
...d,
|
|
349
351
|
// reset selection when changing folder
|
|
@@ -360,7 +362,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
360
362
|
...n.filters,
|
|
361
363
|
folder: s
|
|
362
364
|
},
|
|
363
|
-
trashed: s ===
|
|
365
|
+
trashed: s === b.BIN
|
|
364
366
|
}
|
|
365
367
|
}));
|
|
366
368
|
},
|
|
@@ -399,7 +401,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
399
401
|
var h;
|
|
400
402
|
return {
|
|
401
403
|
...l,
|
|
402
|
-
treeData: he(n, (h = o == null ? void 0 : o.pages[0]) == null ? void 0 : h.folders, s ||
|
|
404
|
+
treeData: he(n, (h = o == null ? void 0 : o.pages[0]) == null ? void 0 : h.folders, s || b.DEFAULT)
|
|
403
405
|
};
|
|
404
406
|
});
|
|
405
407
|
}
|
|
@@ -435,7 +437,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
435
437
|
const o = H(s[a - 2], r);
|
|
436
438
|
n({
|
|
437
439
|
folder: o,
|
|
438
|
-
folderId: (o == null ? void 0 : o.id) ||
|
|
440
|
+
folderId: (o == null ? void 0 : o.id) || b.DEFAULT
|
|
439
441
|
});
|
|
440
442
|
},
|
|
441
443
|
goToTrash: () => e((s) => ({
|
|
@@ -449,23 +451,23 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
449
451
|
...s.searchParams,
|
|
450
452
|
search: void 0,
|
|
451
453
|
filters: {
|
|
452
|
-
folder:
|
|
454
|
+
folder: b.BIN
|
|
453
455
|
},
|
|
454
456
|
trashed: !0
|
|
455
457
|
},
|
|
456
458
|
currentFolder: {
|
|
457
|
-
id:
|
|
459
|
+
id: b.BIN
|
|
458
460
|
}
|
|
459
461
|
}))
|
|
460
462
|
}
|
|
461
|
-
})), D = () => w((e) => e.searchParams), se = () => w((e) => e.selectedNodesIds), z = () => w((e) => e.treeData),
|
|
463
|
+
})), D = () => w((e) => e.searchParams), se = () => w((e) => e.selectedNodesIds), z = () => w((e) => e.treeData), jt = () => w((e) => e.selectedFolders), zt = () => w((e) => e.selectedResources), Xe = () => 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)), V = () => w((e) => e.currentFolder), T = () => w((e) => e.updaters), re = () => {
|
|
462
464
|
const e = V();
|
|
463
|
-
return (e == null ? void 0 : e.id) ===
|
|
464
|
-
},
|
|
465
|
+
return (e == null ? void 0 : e.id) === b.BIN;
|
|
466
|
+
}, Ye = () => w((e) => e.resourceIsTrash), Ze = () => w((e) => e.resourceActionDisable), et = () => {
|
|
465
467
|
const e = V();
|
|
466
468
|
return (e == null ? void 0 : e.id) === "default";
|
|
467
|
-
},
|
|
468
|
-
const e = D(), [t, s] = ae(""), r =
|
|
469
|
+
}, tt = () => se().length > 1, st = () => w((e) => e.status), fe = () => {
|
|
470
|
+
const e = D(), [t, s] = ae(""), r = Xe(), n = st(), a = ge(null), {
|
|
469
471
|
setSearchParams: o
|
|
470
472
|
} = T(), l = (u) => {
|
|
471
473
|
const f = u.target.value;
|
|
@@ -479,7 +481,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
479
481
|
search: t || void 0
|
|
480
482
|
});
|
|
481
483
|
};
|
|
482
|
-
return
|
|
484
|
+
return v(() => {
|
|
483
485
|
const f = t.length == 0 || t.length >= r.minLength ? {
|
|
484
486
|
search: t || void 0
|
|
485
487
|
} : {};
|
|
@@ -487,9 +489,9 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
487
489
|
...e,
|
|
488
490
|
...f
|
|
489
491
|
});
|
|
490
|
-
}, [t, r.minLength]),
|
|
492
|
+
}, [t, r.minLength]), v(() => {
|
|
491
493
|
n === "select" && s("");
|
|
492
|
-
}, [n]),
|
|
494
|
+
}, [n]), v(() => {
|
|
493
495
|
s(() => {
|
|
494
496
|
var u;
|
|
495
497
|
return ((u = e.search) == null ? void 0 : u.toString()) ?? "";
|
|
@@ -502,7 +504,7 @@ const he = (e, t, s) => W(e, (r) => (r.id === s && (r.children = t == null ? voi
|
|
|
502
504
|
handleSearchSubmit: d
|
|
503
505
|
};
|
|
504
506
|
};
|
|
505
|
-
function
|
|
507
|
+
function rt() {
|
|
506
508
|
const {
|
|
507
509
|
appCode: e
|
|
508
510
|
} = M(), {
|
|
@@ -519,8 +521,8 @@ function tt() {
|
|
|
519
521
|
/* @__PURE__ */ c("p", { className: "body py-8 text-truncate", children: /* @__PURE__ */ c("strong", { children: u }) })
|
|
520
522
|
] }) : /* @__PURE__ */ c("h2", { className: "body py-8 fw-bold", children: r.length !== 0 ? h : a ? l : d }) });
|
|
521
523
|
}
|
|
522
|
-
const
|
|
523
|
-
const e =
|
|
524
|
+
const nt = () => {
|
|
525
|
+
const e = Ze(), {
|
|
524
526
|
clearSelectedIds: t,
|
|
525
527
|
setResourceActionDisable: s,
|
|
526
528
|
clearSelectedItems: r
|
|
@@ -531,8 +533,8 @@ const st = () => {
|
|
|
531
533
|
t(), r(), s(!1);
|
|
532
534
|
}
|
|
533
535
|
};
|
|
534
|
-
},
|
|
535
|
-
const e =
|
|
536
|
+
}, ot = () => {
|
|
537
|
+
const e = Ye(), {
|
|
536
538
|
clearSelectedIds: t,
|
|
537
539
|
setResourceIsTrash: s,
|
|
538
540
|
clearSelectedItems: r
|
|
@@ -544,7 +546,7 @@ const st = () => {
|
|
|
544
546
|
}
|
|
545
547
|
};
|
|
546
548
|
};
|
|
547
|
-
function
|
|
549
|
+
function at(e, {
|
|
548
550
|
parentId: t,
|
|
549
551
|
newFolder: s
|
|
550
552
|
}) {
|
|
@@ -563,7 +565,7 @@ function nt(e, {
|
|
|
563
565
|
return r;
|
|
564
566
|
});
|
|
565
567
|
}
|
|
566
|
-
function
|
|
568
|
+
function ct(e, {
|
|
567
569
|
folders: t
|
|
568
570
|
}) {
|
|
569
571
|
return W(e, (s) => {
|
|
@@ -571,7 +573,7 @@ function ot(e, {
|
|
|
571
573
|
return s;
|
|
572
574
|
});
|
|
573
575
|
}
|
|
574
|
-
function
|
|
576
|
+
function it(e, {
|
|
575
577
|
destinationId: t,
|
|
576
578
|
folders: s
|
|
577
579
|
}) {
|
|
@@ -598,19 +600,19 @@ function at(e, {
|
|
|
598
600
|
return s.includes(r.id) && t !== (n == null ? void 0 : n.id) ? void 0 : r;
|
|
599
601
|
});
|
|
600
602
|
}
|
|
601
|
-
function
|
|
603
|
+
function lt(e, {
|
|
602
604
|
folderId: t,
|
|
603
605
|
newFolder: s
|
|
604
606
|
}) {
|
|
605
607
|
return W(e, (r) => r.id === t ? new G(s) : r);
|
|
606
608
|
}
|
|
607
|
-
const
|
|
609
|
+
const dt = () => {
|
|
608
610
|
const e = w((t) => t.config);
|
|
609
|
-
return
|
|
611
|
+
return Le({
|
|
610
612
|
queryKey: ["actions"],
|
|
611
613
|
queryFn: async () => {
|
|
612
614
|
const t = e == null ? void 0 : e.actions.map((r) => r.workflow);
|
|
613
|
-
return await
|
|
615
|
+
return await ze(t);
|
|
614
616
|
},
|
|
615
617
|
select: (t) => e == null ? void 0 : e.actions.map((s) => ({
|
|
616
618
|
...s,
|
|
@@ -619,7 +621,7 @@ const it = () => {
|
|
|
619
621
|
staleTime: 1 / 0,
|
|
620
622
|
enabled: !!e
|
|
621
623
|
});
|
|
622
|
-
},
|
|
624
|
+
}, ut = () => {
|
|
623
625
|
const e = w((o) => o.config), t = D(), {
|
|
624
626
|
filters: s,
|
|
625
627
|
trashed: r,
|
|
@@ -649,8 +651,8 @@ const it = () => {
|
|
|
649
651
|
retry: !1,
|
|
650
652
|
getNextPageParam: (o) => o.pagination.startIdx + o.pagination.pageSize
|
|
651
653
|
});
|
|
652
|
-
},
|
|
653
|
-
const e =
|
|
654
|
+
}, Vt = () => {
|
|
655
|
+
const e = U(), t = E(), s = D(), r = z(), n = J(), a = Y(), o = X(), l = Z().length > 0, h = l ? a : o, {
|
|
654
656
|
clearSelectedItems: d,
|
|
655
657
|
clearSelectedIds: u,
|
|
656
658
|
setTreeData: f,
|
|
@@ -663,8 +665,8 @@ const it = () => {
|
|
|
663
665
|
filters: p,
|
|
664
666
|
trashed: m
|
|
665
667
|
}];
|
|
666
|
-
return
|
|
667
|
-
mutationFn: async () => await
|
|
668
|
+
return L({
|
|
669
|
+
mutationFn: async () => await Be({
|
|
668
670
|
searchParams: s,
|
|
669
671
|
folderIds: n,
|
|
670
672
|
resourceIds: h,
|
|
@@ -677,12 +679,12 @@ const it = () => {
|
|
|
677
679
|
if (await t.cancelQueries({
|
|
678
680
|
queryKey: y
|
|
679
681
|
}), t.getQueryData(y))
|
|
680
|
-
return e.success(S("explorer.trash.title")), t.setQueryData(y, (
|
|
682
|
+
return e.success(S("explorer.trash.title")), t.setQueryData(y, (C) => {
|
|
681
683
|
var Q;
|
|
682
|
-
if (
|
|
683
|
-
const
|
|
684
|
-
...
|
|
685
|
-
pages:
|
|
684
|
+
if (C) {
|
|
685
|
+
const k = {
|
|
686
|
+
...C,
|
|
687
|
+
pages: C == null ? void 0 : C.pages.map((R) => {
|
|
686
688
|
var P;
|
|
687
689
|
return {
|
|
688
690
|
...R,
|
|
@@ -695,7 +697,7 @@ const it = () => {
|
|
|
695
697
|
resources: R.resources.filter((q) => l ? !a.includes(q.assetId) : !h.includes(q.id))
|
|
696
698
|
};
|
|
697
699
|
})
|
|
698
|
-
}, K =
|
|
700
|
+
}, K = ct(r, {
|
|
699
701
|
folders: n
|
|
700
702
|
});
|
|
701
703
|
return f(K), i({
|
|
@@ -705,7 +707,7 @@ const it = () => {
|
|
|
705
707
|
// @ts-ignore
|
|
706
708
|
maxIdx: ((Q = s.pagination) == null ? void 0 : Q.maxIdx) - g.resources.length
|
|
707
709
|
}
|
|
708
|
-
}),
|
|
710
|
+
}), k;
|
|
709
711
|
}
|
|
710
712
|
});
|
|
711
713
|
},
|
|
@@ -713,8 +715,8 @@ const it = () => {
|
|
|
713
715
|
d(), u();
|
|
714
716
|
}
|
|
715
717
|
});
|
|
716
|
-
},
|
|
717
|
-
const e =
|
|
718
|
+
}, Ht = () => {
|
|
719
|
+
const e = U(), t = E(), s = D(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
|
|
718
720
|
setFolderIds: h,
|
|
719
721
|
setResourceIds: d,
|
|
720
722
|
setSelectedResources: u,
|
|
@@ -727,8 +729,8 @@ const it = () => {
|
|
|
727
729
|
filters: i,
|
|
728
730
|
trashed: p
|
|
729
731
|
}];
|
|
730
|
-
return
|
|
731
|
-
mutationFn: async () => await
|
|
732
|
+
return L({
|
|
733
|
+
mutationFn: async () => await $e({
|
|
732
734
|
searchParams: s,
|
|
733
735
|
folderIds: r,
|
|
734
736
|
resourceIds: l,
|
|
@@ -747,8 +749,8 @@ const it = () => {
|
|
|
747
749
|
...g,
|
|
748
750
|
pages: g == null ? void 0 : g.pages.map((I) => ({
|
|
749
751
|
...I,
|
|
750
|
-
folders: I.folders.filter((
|
|
751
|
-
resources: I.resources.filter((
|
|
752
|
+
folders: I.folders.filter((C) => !r.includes(C.id)),
|
|
753
|
+
resources: I.resources.filter((C) => o ? !n.includes(C.assetId) : !l.includes(C.id))
|
|
752
754
|
}))
|
|
753
755
|
};
|
|
754
756
|
});
|
|
@@ -757,8 +759,8 @@ const it = () => {
|
|
|
757
759
|
d([]), u([]), h([]), f([]);
|
|
758
760
|
}
|
|
759
761
|
});
|
|
760
|
-
},
|
|
761
|
-
const e =
|
|
762
|
+
}, Wt = () => {
|
|
763
|
+
const e = U(), t = E(), s = D(), r = J(), n = Y(), a = X(), o = Z().length > 0, l = o ? n : a, {
|
|
762
764
|
clearSelectedItems: h,
|
|
763
765
|
clearSelectedIds: d
|
|
764
766
|
} = T(), {
|
|
@@ -769,8 +771,8 @@ const it = () => {
|
|
|
769
771
|
filters: u,
|
|
770
772
|
trashed: f
|
|
771
773
|
}];
|
|
772
|
-
return
|
|
773
|
-
mutationFn: async () => await
|
|
774
|
+
return L({
|
|
775
|
+
mutationFn: async () => await _e({
|
|
774
776
|
searchParams: s,
|
|
775
777
|
folderIds: r,
|
|
776
778
|
resourceIds: l,
|
|
@@ -799,8 +801,8 @@ const it = () => {
|
|
|
799
801
|
h(), d();
|
|
800
802
|
}
|
|
801
803
|
});
|
|
802
|
-
},
|
|
803
|
-
const e =
|
|
804
|
+
}, Gt = () => {
|
|
805
|
+
const e = U(), t = D(), s = E(), {
|
|
804
806
|
user: r
|
|
805
807
|
} = ce(), n = V(), {
|
|
806
808
|
filters: a,
|
|
@@ -810,10 +812,10 @@ const it = () => {
|
|
|
810
812
|
filters: a,
|
|
811
813
|
trashed: o
|
|
812
814
|
}];
|
|
813
|
-
return
|
|
815
|
+
return L({
|
|
814
816
|
mutationFn: async (d) => (e.info(S("duplicate.start"), {
|
|
815
817
|
id: l
|
|
816
|
-
}), await
|
|
818
|
+
}), await je(t, d.assetId)),
|
|
817
819
|
onSuccess: async (d, u) => {
|
|
818
820
|
e.remove(l), e.success(S("duplicate.done")), await s.cancelQueries({
|
|
819
821
|
queryKey: h
|
|
@@ -855,8 +857,8 @@ const it = () => {
|
|
|
855
857
|
e.remove(l), typeof d == "string" && e.error(`${S("duplicate.error")}: ${d}`);
|
|
856
858
|
}
|
|
857
859
|
});
|
|
858
|
-
},
|
|
859
|
-
const e =
|
|
860
|
+
}, Jt = () => {
|
|
861
|
+
const e = U(), t = E(), s = D(), r = z(), n = J(), a = Y(), o = X(), l = Z().length > 0, h = l ? a : o, {
|
|
860
862
|
clearSelectedIds: d,
|
|
861
863
|
clearSelectedItems: u,
|
|
862
864
|
setTreeData: f,
|
|
@@ -869,7 +871,7 @@ const it = () => {
|
|
|
869
871
|
filters: p,
|
|
870
872
|
trashed: m
|
|
871
873
|
}];
|
|
872
|
-
return
|
|
874
|
+
return L({
|
|
873
875
|
mutationFn: async (g) => await le({
|
|
874
876
|
searchParams: s,
|
|
875
877
|
folderId: g,
|
|
@@ -883,9 +885,9 @@ const it = () => {
|
|
|
883
885
|
onSuccess: async (g, I) => {
|
|
884
886
|
if (t.getQueryData(y))
|
|
885
887
|
return t.setQueryData(y, (Q) => {
|
|
886
|
-
var
|
|
888
|
+
var k;
|
|
887
889
|
if (Q) {
|
|
888
|
-
const K =
|
|
890
|
+
const K = it(r, {
|
|
889
891
|
destinationId: I,
|
|
890
892
|
folders: n
|
|
891
893
|
}), R = {
|
|
@@ -909,7 +911,7 @@ const it = () => {
|
|
|
909
911
|
pagination: {
|
|
910
912
|
...s.pagination,
|
|
911
913
|
// @ts-ignore
|
|
912
|
-
maxIdx: ((
|
|
914
|
+
maxIdx: ((k = s.pagination) == null ? void 0 : k.maxIdx) - g.resources.length
|
|
913
915
|
}
|
|
914
916
|
}), R;
|
|
915
917
|
}
|
|
@@ -919,8 +921,8 @@ const it = () => {
|
|
|
919
921
|
u(), d();
|
|
920
922
|
}
|
|
921
923
|
});
|
|
922
|
-
},
|
|
923
|
-
const e =
|
|
924
|
+
}, Xt = () => {
|
|
925
|
+
const e = U(), t = E(), s = D(), r = z(), {
|
|
924
926
|
setTreeData: n
|
|
925
927
|
} = T(), {
|
|
926
928
|
filters: a,
|
|
@@ -930,11 +932,11 @@ const it = () => {
|
|
|
930
932
|
filters: a,
|
|
931
933
|
trashed: o
|
|
932
934
|
}];
|
|
933
|
-
return
|
|
935
|
+
return L({
|
|
934
936
|
mutationFn: async ({
|
|
935
937
|
name: h,
|
|
936
938
|
parentId: d
|
|
937
|
-
}) => await
|
|
939
|
+
}) => await Me({
|
|
938
940
|
searchParams: s,
|
|
939
941
|
name: h,
|
|
940
942
|
parentId: d
|
|
@@ -961,7 +963,7 @@ const it = () => {
|
|
|
961
963
|
...y,
|
|
962
964
|
folders: [...y.folders, f]
|
|
963
965
|
}))
|
|
964
|
-
}, m =
|
|
966
|
+
}, m = at(r, {
|
|
965
967
|
parentId: d.parentId,
|
|
966
968
|
newFolder: f
|
|
967
969
|
});
|
|
@@ -970,8 +972,8 @@ const it = () => {
|
|
|
970
972
|
});
|
|
971
973
|
}
|
|
972
974
|
});
|
|
973
|
-
},
|
|
974
|
-
const e =
|
|
975
|
+
}, Yt = () => {
|
|
976
|
+
const e = U(), t = E(), s = D(), r = z(), {
|
|
975
977
|
setFolderIds: n,
|
|
976
978
|
setSelectedFolders: a,
|
|
977
979
|
setTreeData: o
|
|
@@ -983,12 +985,12 @@ const it = () => {
|
|
|
983
985
|
filters: l,
|
|
984
986
|
trashed: h
|
|
985
987
|
}];
|
|
986
|
-
return
|
|
988
|
+
return L({
|
|
987
989
|
mutationFn: async ({
|
|
988
990
|
folderId: u,
|
|
989
991
|
name: f,
|
|
990
992
|
parentId: i
|
|
991
|
-
}) => await
|
|
993
|
+
}) => await Ke({
|
|
992
994
|
searchParams: s,
|
|
993
995
|
folderId: u,
|
|
994
996
|
parentId: i,
|
|
@@ -1013,7 +1015,7 @@ const it = () => {
|
|
|
1013
1015
|
rights: I.rights
|
|
1014
1016
|
} : I)
|
|
1015
1017
|
}))
|
|
1016
|
-
}, y =
|
|
1018
|
+
}, y = lt(r, {
|
|
1017
1019
|
folderId: f.folderId,
|
|
1018
1020
|
newFolder: u
|
|
1019
1021
|
});
|
|
@@ -1025,7 +1027,7 @@ const it = () => {
|
|
|
1025
1027
|
n([]), a([]);
|
|
1026
1028
|
}
|
|
1027
1029
|
});
|
|
1028
|
-
},
|
|
1030
|
+
}, Zt = (e) => {
|
|
1029
1031
|
const t = E(), s = D(), {
|
|
1030
1032
|
setResourceIds: r,
|
|
1031
1033
|
setSelectedResources: n
|
|
@@ -1069,7 +1071,7 @@ const it = () => {
|
|
|
1069
1071
|
}
|
|
1070
1072
|
}
|
|
1071
1073
|
});
|
|
1072
|
-
},
|
|
1074
|
+
}, es = (e) => {
|
|
1073
1075
|
const t = E(), s = D(), {
|
|
1074
1076
|
filters: r,
|
|
1075
1077
|
trashed: n
|
|
@@ -1121,8 +1123,8 @@ const it = () => {
|
|
|
1121
1123
|
}
|
|
1122
1124
|
});
|
|
1123
1125
|
};
|
|
1124
|
-
const
|
|
1125
|
-
const e =
|
|
1126
|
+
const ts = () => {
|
|
1127
|
+
const e = U(), t = E(), s = D(), {
|
|
1126
1128
|
user: r
|
|
1127
1129
|
} = ce(), {
|
|
1128
1130
|
appCode: n
|
|
@@ -1131,8 +1133,8 @@ const Zt = () => {
|
|
|
1131
1133
|
filters: s.filters,
|
|
1132
1134
|
trashed: s.trashed
|
|
1133
1135
|
}];
|
|
1134
|
-
return
|
|
1135
|
-
mutationFn: async (o) => await
|
|
1136
|
+
return L({
|
|
1137
|
+
mutationFn: async (o) => await He({
|
|
1136
1138
|
searchParams: s,
|
|
1137
1139
|
params: o
|
|
1138
1140
|
}),
|
|
@@ -1176,8 +1178,8 @@ const Zt = () => {
|
|
|
1176
1178
|
});
|
|
1177
1179
|
}
|
|
1178
1180
|
});
|
|
1179
|
-
},
|
|
1180
|
-
const e =
|
|
1181
|
+
}, ht = /* @__PURE__ */ F(async () => await import("./EmptyScreenApp.js")), ft = /* @__PURE__ */ F(async () => await import("./EmptyScreenSearch.js")), pt = /* @__PURE__ */ F(async () => await import("./EmptyScreenError.js")), mt = /* @__PURE__ */ F(async () => await import("./EmptyScreenNoContentInFolder.js")), gt = /* @__PURE__ */ F(async () => await import("./EmptyScreenTrash.js")), yt = /* @__PURE__ */ F(async () => await import("./FoldersList.js")), It = /* @__PURE__ */ F(async () => await import("./ResourcesList.js")), wt = () => {
|
|
1182
|
+
const e = et(), t = re(), s = tt(), r = D(), n = V(), a = z(), o = U(), {
|
|
1181
1183
|
appCode: l
|
|
1182
1184
|
} = M(), {
|
|
1183
1185
|
t: h
|
|
@@ -1192,30 +1194,30 @@ const Zt = () => {
|
|
|
1192
1194
|
isLoading: y,
|
|
1193
1195
|
isFetching: g,
|
|
1194
1196
|
fetchNextPage: I
|
|
1195
|
-
} =
|
|
1196
|
-
return
|
|
1197
|
+
} = ut(), C = (i == null ? void 0 : i.pages[0].folders.length) === 0, Q = (i == null ? void 0 : i.pages[0].resources.length) === 0, k = C && Q;
|
|
1198
|
+
return v(() => {
|
|
1197
1199
|
var K, R, P;
|
|
1198
1200
|
if (i) {
|
|
1199
1201
|
const q = [...((K = i == null ? void 0 : i.pages[0]) == null ? void 0 : K.folders) ?? []];
|
|
1200
1202
|
(R = i == null ? void 0 : i.pages[0]) != null && R.searchConfig && u(i.pages[0].searchConfig), r.search || ((n == null ? void 0 : n.id) === "default" ? f({
|
|
1201
|
-
id:
|
|
1203
|
+
id: b.DEFAULT,
|
|
1202
1204
|
section: !0,
|
|
1203
1205
|
children: q.map((B) => new G(B)),
|
|
1204
1206
|
name: h("explorer.filters.mine", {
|
|
1205
1207
|
ns: l
|
|
1206
1208
|
})
|
|
1207
|
-
}) : f(he(a, q, r.filters.folder ||
|
|
1209
|
+
}) : f(he(a, q, r.filters.folder || b.DEFAULT))), d({
|
|
1208
1210
|
...r,
|
|
1209
1211
|
pagination: (P = i == null ? void 0 : i.pages[(i == null ? void 0 : i.pages.length) - 1]) == null ? void 0 : P.pagination
|
|
1210
1212
|
});
|
|
1211
1213
|
}
|
|
1212
|
-
}, [i]),
|
|
1214
|
+
}, [i]), v(() => {
|
|
1213
1215
|
m && typeof m == "string" && o.error(h(m));
|
|
1214
|
-
}, [m]), y ? /* @__PURE__ */ c(A, {}) : p ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(
|
|
1215
|
-
/* @__PURE__ */ c(
|
|
1216
|
-
/* @__PURE__ */ c(
|
|
1216
|
+
}, [m]), y ? /* @__PURE__ */ c(A, {}) : p ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(pt, {}) }) : r.search && k ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(ft, {}) }) : e && k ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(ht, {}) }) : s && k && !t ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(mt, {}) }) : t && (i == null ? void 0 : i.pages[0].resources.length) === 0 ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(gt, {}) }) : /* @__PURE__ */ N(O, { fallback: /* @__PURE__ */ c(A, {}), children: [
|
|
1217
|
+
/* @__PURE__ */ c(yt, { data: i, isFetching: g }),
|
|
1218
|
+
/* @__PURE__ */ c(It, { data: i, isFetching: g, fetchNextPage: I })
|
|
1217
1219
|
] });
|
|
1218
|
-
},
|
|
1220
|
+
}, St = () => {
|
|
1219
1221
|
const {
|
|
1220
1222
|
appCode: e,
|
|
1221
1223
|
currentApp: t
|
|
@@ -1230,7 +1232,7 @@ const Zt = () => {
|
|
|
1230
1232
|
}, o = V(), l = D(), {
|
|
1231
1233
|
setSearchParams: h
|
|
1232
1234
|
} = T();
|
|
1233
|
-
|
|
1235
|
+
v(() => {
|
|
1234
1236
|
const u = () => r.includes("1") ? !0 : void 0, f = () => r.includes("2") ? !0 : void 0, i = () => r.includes("7") ? !0 : void 0;
|
|
1235
1237
|
h({
|
|
1236
1238
|
...l,
|
|
@@ -1280,7 +1282,7 @@ const Zt = () => {
|
|
|
1280
1282
|
options: d,
|
|
1281
1283
|
handleOnSelectFilter: a
|
|
1282
1284
|
};
|
|
1283
|
-
},
|
|
1285
|
+
}, xt = () => {
|
|
1284
1286
|
const {
|
|
1285
1287
|
appCode: e
|
|
1286
1288
|
} = M(), {
|
|
@@ -1289,7 +1291,7 @@ const Zt = () => {
|
|
|
1289
1291
|
selectedFilters: s,
|
|
1290
1292
|
options: r,
|
|
1291
1293
|
handleOnSelectFilter: n
|
|
1292
|
-
} =
|
|
1294
|
+
} = St(), {
|
|
1293
1295
|
formRef: a,
|
|
1294
1296
|
inputSearch: o,
|
|
1295
1297
|
handleInputSearchChange: l,
|
|
@@ -1313,7 +1315,7 @@ const Zt = () => {
|
|
|
1313
1315
|
] }, "0") : /* @__PURE__ */ c($.RadioItem, { value: f.value, model: s, onChange: () => n(f.value), children: f.label }, f.value)) })
|
|
1314
1316
|
] })
|
|
1315
1317
|
] });
|
|
1316
|
-
},
|
|
1318
|
+
}, Dt = ({
|
|
1317
1319
|
id: e,
|
|
1318
1320
|
selected: t,
|
|
1319
1321
|
onSelect: s
|
|
@@ -1325,7 +1327,7 @@ const Zt = () => {
|
|
|
1325
1327
|
/* @__PURE__ */ c(qe, { width: "20", height: "20" }),
|
|
1326
1328
|
/* @__PURE__ */ c("span", { children: r("explorer.tree.trash") })
|
|
1327
1329
|
] }) }) }) }) }) }) });
|
|
1328
|
-
},
|
|
1330
|
+
}, Tt = /* @__PURE__ */ F(async () => await import("./FolderModal.js")), bt = () => {
|
|
1329
1331
|
const e = E(), [t, s] = Fe(), r = z(), n = re(), a = se(), {
|
|
1330
1332
|
appCode: o
|
|
1331
1333
|
} = M(), {
|
|
@@ -1344,18 +1346,18 @@ const Zt = () => {
|
|
|
1344
1346
|
};
|
|
1345
1347
|
return /* @__PURE__ */ N(oe, { children: [
|
|
1346
1348
|
/* @__PURE__ */ c(Ce, { data: r, selectedNodesIds: a, onTreeItemSelect: d, onTreeItemFold: f, onTreeItemUnfold: m }),
|
|
1347
|
-
/* @__PURE__ */ c(
|
|
1349
|
+
/* @__PURE__ */ c(Dt, { id: b.BIN, selected: n, onSelect: h }),
|
|
1348
1350
|
/* @__PURE__ */ c("div", { className: "d-grid my-16", children: /* @__PURE__ */ c(Ne, { disabled: n, type: "button", color: "primary", variant: "outline", leftIcon: /* @__PURE__ */ c(Oe, {}), onClick: y, children: l("explorer.folder.new") }) }),
|
|
1349
|
-
/* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: t && /* @__PURE__ */ c(
|
|
1351
|
+
/* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: t && /* @__PURE__ */ c(Tt, { edit: !1, isOpen: t, onSuccess: s, onCancel: s }) })
|
|
1350
1352
|
] });
|
|
1351
|
-
},
|
|
1353
|
+
}, Ft = /* @__PURE__ */ F(async () => await import("./AppAction.js")), Ct = /* @__PURE__ */ F(async () => await import("./Library.js")), Nt = /* @__PURE__ */ F(async () => await import("./ActionBarContainer.js")), Rt = /* @__PURE__ */ F(async () => await import("./DisableModal.js")), Pt = /* @__PURE__ */ F(async () => await import("./TrashModal.js")), At = /* @__PURE__ */ F(async () => await import("./OnboardingModal.js")), ss = ({
|
|
1352
1354
|
config: e
|
|
1353
1355
|
}) => {
|
|
1354
1356
|
const t = D(), {
|
|
1355
1357
|
setConfig: s,
|
|
1356
1358
|
setSearchParams: r
|
|
1357
1359
|
} = T();
|
|
1358
|
-
|
|
1360
|
+
v(() => {
|
|
1359
1361
|
s(e || {}), r({
|
|
1360
1362
|
...t,
|
|
1361
1363
|
application: e.app,
|
|
@@ -1366,30 +1368,30 @@ const Zt = () => {
|
|
|
1366
1368
|
currentApp: n
|
|
1367
1369
|
} = M(), {
|
|
1368
1370
|
data: a
|
|
1369
|
-
} =
|
|
1371
|
+
} = dt(), {
|
|
1370
1372
|
isTrashedModalOpen: o,
|
|
1371
1373
|
onTrashedCancel: l
|
|
1372
|
-
} =
|
|
1374
|
+
} = ot(), {
|
|
1373
1375
|
isActionDisableModalOpen: h,
|
|
1374
1376
|
onActionDisableCancel: d
|
|
1375
|
-
} =
|
|
1377
|
+
} = nt();
|
|
1376
1378
|
Re();
|
|
1377
1379
|
const u = ne("publish", a), f = ne("create", a);
|
|
1378
1380
|
return e && /* @__PURE__ */ N(oe, { children: [
|
|
1379
|
-
/* @__PURE__ */ c(Pe, { render: () => f ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(
|
|
1381
|
+
/* @__PURE__ */ c(Pe, { render: () => f ? /* @__PURE__ */ c(O, { fallback: /* @__PURE__ */ c(A, {}), children: /* @__PURE__ */ c(Ft, {}) }) : null, children: /* @__PURE__ */ c(Ae, { app: n }) }),
|
|
1380
1382
|
/* @__PURE__ */ N(ee, { className: "flex-grow-1", children: [
|
|
1381
1383
|
/* @__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__ */ N(O, { fallback: /* @__PURE__ */ c(A, {}), children: [
|
|
1382
|
-
/* @__PURE__ */ c(
|
|
1383
|
-
u && /* @__PURE__ */ c(
|
|
1384
|
+
/* @__PURE__ */ c(bt, {}),
|
|
1385
|
+
u && /* @__PURE__ */ c(Ct, {})
|
|
1384
1386
|
] }) }),
|
|
1385
1387
|
/* @__PURE__ */ N(ee.Col, { sm: "4", md: "8", lg: "6", xl: "9", children: [
|
|
1386
|
-
/* @__PURE__ */ c(
|
|
1387
|
-
/* @__PURE__ */ c(
|
|
1388
|
-
/* @__PURE__ */ c(
|
|
1388
|
+
/* @__PURE__ */ c(xt, {}),
|
|
1389
|
+
/* @__PURE__ */ c(rt, {}),
|
|
1390
|
+
/* @__PURE__ */ c(wt, {})
|
|
1389
1391
|
] }),
|
|
1390
1392
|
/* @__PURE__ */ N(O, { fallback: /* @__PURE__ */ c(A, {}), children: [
|
|
1391
|
-
/* @__PURE__ */ c(
|
|
1392
|
-
/* @__PURE__ */ c(
|
|
1393
|
+
/* @__PURE__ */ c(Nt, {}),
|
|
1394
|
+
/* @__PURE__ */ c(At, { id: "showOnboardingTrash", items: [{
|
|
1393
1395
|
src: "onboarding/illu-trash-menu.svg",
|
|
1394
1396
|
alt: "explorer.modal.onboarding.trash.screen1.alt",
|
|
1395
1397
|
text: "explorer.modal.onboarding.trash.screen1.title"
|
|
@@ -1407,37 +1409,37 @@ const Zt = () => {
|
|
|
1407
1409
|
nextText: "explorer.modal.onboarding.trash.next",
|
|
1408
1410
|
closeText: "explorer.modal.onboarding.trash.close"
|
|
1409
1411
|
} }),
|
|
1410
|
-
o && /* @__PURE__ */ c(
|
|
1411
|
-
h && /* @__PURE__ */ c(
|
|
1412
|
+
o && /* @__PURE__ */ c(Pt, { isOpen: o, onCancel: l }),
|
|
1413
|
+
h && /* @__PURE__ */ c(Rt, { isOpen: h, onCancel: d })
|
|
1412
1414
|
] })
|
|
1413
1415
|
] })
|
|
1414
1416
|
] });
|
|
1415
1417
|
};
|
|
1416
1418
|
export {
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
+
ss as E,
|
|
1420
|
+
dt as a,
|
|
1419
1421
|
V as b,
|
|
1420
|
-
|
|
1422
|
+
ts as c,
|
|
1421
1423
|
D as d,
|
|
1422
1424
|
re as e,
|
|
1423
1425
|
w as f,
|
|
1424
|
-
|
|
1426
|
+
Bt as g,
|
|
1425
1427
|
X as h,
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
+
zt as i,
|
|
1429
|
+
jt as j,
|
|
1428
1430
|
J as k,
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1431
|
+
Ht as l,
|
|
1432
|
+
Ye as m,
|
|
1433
|
+
Gt as n,
|
|
1434
|
+
_t as o,
|
|
1435
|
+
$t as p,
|
|
1436
|
+
Zt as q,
|
|
1437
|
+
es as r,
|
|
1438
|
+
Xt as s,
|
|
1439
|
+
Yt as t,
|
|
1438
1440
|
T as u,
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1441
|
+
Wt as v,
|
|
1442
|
+
Vt as w,
|
|
1443
|
+
Jt as x,
|
|
1442
1444
|
z as y
|
|
1443
1445
|
};
|
package/lib/store/index.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ interface State {
|
|
|
18
18
|
minLength: number;
|
|
19
19
|
};
|
|
20
20
|
status: string | undefined;
|
|
21
|
+
}
|
|
22
|
+
type Action = {
|
|
21
23
|
updaters: {
|
|
22
24
|
setConfig: (config: AppParams) => void;
|
|
23
25
|
setSearchConfig: (config: {
|
|
@@ -46,8 +48,8 @@ interface State {
|
|
|
46
48
|
gotoPreviousFolder: () => void;
|
|
47
49
|
goToTrash: () => void;
|
|
48
50
|
};
|
|
49
|
-
}
|
|
50
|
-
export declare const useStoreContext: import("zustand").UseBoundStore<import("zustand").StoreApi<State>>;
|
|
51
|
+
};
|
|
52
|
+
export declare const useStoreContext: import("zustand").UseBoundStore<import("zustand").StoreApi<State & Action>>;
|
|
51
53
|
export declare const useSearchParams: () => ISearchParameters & IActionParameters;
|
|
52
54
|
export declare const useSelectedNodesIds: () => string[];
|
|
53
55
|
export declare const useTreeData: () => TreeNode;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ode-explorer",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2",
|
|
4
4
|
"description": "Edifice Explorer",
|
|
5
5
|
"homepage": "https://github.com/edificeio/explorer#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@edifice-ui/icons": "1.4.4",
|
|
40
|
-
"@edifice-ui/react": "1.4.
|
|
40
|
+
"@edifice-ui/react": "1.4.5",
|
|
41
41
|
"@react-spring/web": "9.7.3",
|
|
42
42
|
"@tanstack/react-query": "5.8.4",
|
|
43
43
|
"clsx": "2.1.0",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"@vitejs/plugin-react-swc": "3.5.0",
|
|
66
66
|
"concurrently": "8.2.2",
|
|
67
67
|
"csstype": "3.1.3",
|
|
68
|
-
"edifice-bootstrap": "
|
|
69
|
-
"edifice-ts-client": "
|
|
68
|
+
"edifice-bootstrap": "develop",
|
|
69
|
+
"edifice-ts-client": "develop",
|
|
70
70
|
"eslint": "8.56.0",
|
|
71
71
|
"eslint-config-prettier": "9.1.0",
|
|
72
72
|
"eslint-plugin-import": "2.29.1",
|