ode-explorer 1.4.2-develop.202405271112 → 1.4.2-develop.202405271339
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 +3 -3
- package/dist/version.txt +1 -1
- package/lib/ActionBarContainer.js +17 -14
- package/lib/index2.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -65819,7 +65819,7 @@ const SearchForm = () => {
|
|
|
65819
65819
|
"form",
|
|
65820
65820
|
{
|
|
65821
65821
|
noValidate: true,
|
|
65822
|
-
className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative
|
|
65822
|
+
className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative d-flex gap-8",
|
|
65823
65823
|
ref: formRef,
|
|
65824
65824
|
children: [
|
|
65825
65825
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "search", className: "input-group", children: [
|
|
@@ -67103,8 +67103,8 @@ function ActionBarContainer() {
|
|
|
67103
67103
|
return isActionBarOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67104
67104
|
animated.div,
|
|
67105
67105
|
{
|
|
67106
|
-
className: "position-fixed bottom-0 start-0 end-0
|
|
67107
|
-
style,
|
|
67106
|
+
className: "position-fixed bottom-0 start-0 end-0",
|
|
67107
|
+
style: { ...style, zIndex: 4 },
|
|
67108
67108
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ActionBar$1$1, { children: actions == null ? void 0 : actions.filter(
|
|
67109
67109
|
(action) => action.available && action.target === "actionbar"
|
|
67110
67110
|
).map((action) => {
|
package/dist/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ode-explorer=1.0-b2school-SNAPSHOT 27/05/2024
|
|
1
|
+
ode-explorer=1.0-b2school-SNAPSHOT 27/05/2024 13:40:03
|
|
@@ -4,7 +4,7 @@ import { useUser as pe, Button as W, useOdeClient as he, ActionBar as fe, Loadin
|
|
|
4
4
|
import { useTransition as Oe, animated as ye } from "@react-spring/web";
|
|
5
5
|
import { useTranslation as ee } from "react-i18next";
|
|
6
6
|
import { odeServices as D, ACTION as c } from "edifice-ts-client";
|
|
7
|
-
import { e as X, f as be, b as ve, h as Ae, i as se, j as Ie, k as Me, l as ge, m as Pe, d as we, n as
|
|
7
|
+
import { e as X, f as be, b as ve, h as Ae, i as se, j as Ie, k as Me, l as ge, m as Pe, d as we, n as xe, u as te, a as Fe, o as Te, p as Be, q as De } from "./index2.js";
|
|
8
8
|
import "@edifice-ui/icons";
|
|
9
9
|
import "i18next";
|
|
10
10
|
import "zustand";
|
|
@@ -66,15 +66,15 @@ function Le({
|
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
function oe() {
|
|
69
|
-
const [n, o] = L(!1), [s, d] = L("void"), [t, S] = L(), h = be((e) => e.config), R = ve(), p = Ae(), f = se(), l = Ie(), r = Me(), m = X(), b = ge(), v = Pe(), g = we(), _ =
|
|
69
|
+
const [n, o] = L(!1), [s, d] = L("void"), [t, S] = L(), h = be((e) => e.config), R = ve(), p = Ae(), f = se(), l = Ie(), r = Me(), m = X(), b = ge(), v = Pe(), g = we(), _ = xe(), {
|
|
70
70
|
openResource: N,
|
|
71
71
|
printSelectedResource: P,
|
|
72
72
|
openFolder: k,
|
|
73
73
|
clearSelectedItems: w,
|
|
74
|
-
clearSelectedIds:
|
|
74
|
+
clearSelectedIds: x
|
|
75
75
|
} = te(), {
|
|
76
76
|
data: H
|
|
77
|
-
} =
|
|
77
|
+
} = Fe();
|
|
78
78
|
Z(() => {
|
|
79
79
|
if (p.length === 0 && r.length === 0) {
|
|
80
80
|
o(!1);
|
|
@@ -103,7 +103,7 @@ function oe() {
|
|
|
103
103
|
case c.DELETE:
|
|
104
104
|
return d("delete");
|
|
105
105
|
case c.RESTORE:
|
|
106
|
-
return await
|
|
106
|
+
return await F();
|
|
107
107
|
case c.PUBLISH:
|
|
108
108
|
return d("publish");
|
|
109
109
|
case c.UPD_PROPS:
|
|
@@ -143,7 +143,7 @@ function oe() {
|
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
const j = () => !0;
|
|
146
|
-
async function
|
|
146
|
+
async function F() {
|
|
147
147
|
try {
|
|
148
148
|
if (m)
|
|
149
149
|
await b.mutate();
|
|
@@ -159,12 +159,12 @@ function oe() {
|
|
|
159
159
|
d("void"), t != null && t.id && ((e = document.getElementById(t == null ? void 0 : t.id)) == null || e.focus());
|
|
160
160
|
}
|
|
161
161
|
const i = (e) => () => {
|
|
162
|
-
s === e && (A(), w(),
|
|
162
|
+
s === e && (A(), w(), x());
|
|
163
163
|
}, J = i("move"), E = i("move"), z = i("delete"), T = i("delete"), V = i("publish"), I = i("publish"), M = i("edit_folder"), u = i("edit_folder"), $ = i("edit_resource"), q = i("edit_resource"), ne = i("share"), re = i("share"), ce = i("export"), ae = i("export");
|
|
164
164
|
async function ie() {
|
|
165
165
|
if (f && f.length > 0) {
|
|
166
166
|
const e = f[0];
|
|
167
|
-
await _.mutate(e), w(),
|
|
167
|
+
await _.mutate(e), w(), x();
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
function le() {
|
|
@@ -181,7 +181,7 @@ function oe() {
|
|
|
181
181
|
return e.id === "edit" && r.length > 0 ? "explorer.rename" : `explorer.actions.${e.id}`;
|
|
182
182
|
}
|
|
183
183
|
return {
|
|
184
|
-
onRestore:
|
|
184
|
+
onRestore: F,
|
|
185
185
|
actions: m ? h == null ? void 0 : h.trashActions : H,
|
|
186
186
|
selectedElement: [...f, ...l],
|
|
187
187
|
currentFolderId: R == null ? void 0 : R.id,
|
|
@@ -263,12 +263,12 @@ function es() {
|
|
|
263
263
|
isExportModalOpen: P,
|
|
264
264
|
onExportCancel: k,
|
|
265
265
|
onExportSuccess: w,
|
|
266
|
-
onMoveCancel:
|
|
266
|
+
onMoveCancel: x,
|
|
267
267
|
onMoveSuccess: H,
|
|
268
268
|
onDeleteCancel: U,
|
|
269
269
|
onDeleteSuccess: Y,
|
|
270
270
|
onPublishCancel: j,
|
|
271
|
-
onPublishSuccess:
|
|
271
|
+
onPublishSuccess: F,
|
|
272
272
|
isActivable: A,
|
|
273
273
|
handleClick: i
|
|
274
274
|
} = oe(), E = se()[0], z = Be(n), T = De(n), V = Oe(R, {
|
|
@@ -286,13 +286,16 @@ function es() {
|
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
return /* @__PURE__ */ Q(G, { children: [
|
|
289
|
-
V((I, M) => M && /* @__PURE__ */ a(ye.div, { className: "position-fixed bottom-0 start-0 end-0
|
|
289
|
+
V((I, M) => M && /* @__PURE__ */ a(ye.div, { className: "position-fixed bottom-0 start-0 end-0", style: {
|
|
290
|
+
...I,
|
|
291
|
+
zIndex: 4
|
|
292
|
+
}, children: /* @__PURE__ */ a(fe, { children: s == null ? void 0 : s.filter((u) => u.available && u.target === "actionbar").map((u) => A(u) && /* @__PURE__ */ a(_e, { resourceRights: d, roleExpected: u.right, action: u, children: /* @__PURE__ */ a(W, { id: u.id, type: "button", color: "primary", variant: "filled", onClick: () => {
|
|
290
293
|
i(u);
|
|
291
294
|
}, children: o(f(u)) }, u.id) }, u.id)) }) })),
|
|
292
295
|
/* @__PURE__ */ Q(de, { fallback: /* @__PURE__ */ a(me, {}), children: [
|
|
293
|
-
t && /* @__PURE__ */ a(Ue, { isOpen: t, onCancel:
|
|
296
|
+
t && /* @__PURE__ */ a(Ue, { isOpen: t, onCancel: x, onSuccess: H }),
|
|
294
297
|
S && /* @__PURE__ */ a(He, { isOpen: S, onCancel: U, onSuccess: Y }),
|
|
295
|
-
h && E && /* @__PURE__ */ a(Ne, { isOpen: h, resourceId: E.assetId, onCancel: j, onSuccess:
|
|
298
|
+
h && E && /* @__PURE__ */ a(Ne, { isOpen: h, resourceId: E.assetId, onCancel: j, onSuccess: F }),
|
|
296
299
|
p && /* @__PURE__ */ a(Ye, { edit: !0, isOpen: p, onCancel: l, onSuccess: r }),
|
|
297
300
|
m && E && /* @__PURE__ */ a(ke, { mode: "update", isOpen: m, resourceId: E.assetId, updateResource: T, onCancel: b, onSuccess: v, children: (I, M, u, $, q) => n === "blog" && Re("createPublic", s) && /* @__PURE__ */ a(Se, { appCode: n, isUpdating: M, resource: I, watch: u, setValue: $, register: q }) }),
|
|
298
301
|
g && E && /* @__PURE__ */ a(Ee, { isOpen: g, resourceId: E.assetId, shareResource: z, onCancel: _, onSuccess: N, children: n === "blog" ? /* @__PURE__ */ a(Ce, { resource: E, updateResource: T }) : null }),
|
package/lib/index2.js
CHANGED
|
@@ -1294,7 +1294,7 @@ const ft = () => {
|
|
|
1294
1294
|
handleKeyPress: f,
|
|
1295
1295
|
handleSearchSubmit: d
|
|
1296
1296
|
} = me(), u = t.length > 0 ? t.length : void 0;
|
|
1297
|
-
return /* @__PURE__ */ N("form", { noValidate: !0, className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative
|
|
1297
|
+
return /* @__PURE__ */ N("form", { noValidate: !0, className: "bg-light p-16 ps-24 ms-n16 ms-lg-n24 me-n16 position-relative d-flex gap-8", ref: a, children: [
|
|
1298
1298
|
/* @__PURE__ */ N(Te, { id: "search", className: "input-group", children: [
|
|
1299
1299
|
/* @__PURE__ */ c(Fe, { type: "search", placeholder: s("explorer.label.search", {
|
|
1300
1300
|
ns: e
|