ode-explorer 1.4.2-develop.202405241635 → 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 +9 -7
- 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
|
@@ -60776,7 +60776,7 @@ function useZendeskGuide() {
|
|
|
60776
60776
|
isAdml
|
|
60777
60777
|
} = useIsAdml(), {
|
|
60778
60778
|
theme
|
|
60779
|
-
} = useOdeTheme(), hasSupportWorkflow = useHasWorkflow("net.atos.entng.support.controllers.DisplayController|view"), [locationPathname, setLocationPathname] = reactExports.useState(""), [dataModule, setDataModule] = reactExports.useState(void 0), setZendeskGuideLabels = () => {
|
|
60779
|
+
} = useOdeTheme(), isMobileView = window.innerWidth <= 768, hasSupportWorkflow = useHasWorkflow("net.atos.entng.support.controllers.DisplayController|view"), [locationPathname, setLocationPathname] = reactExports.useState(""), [dataModule, setDataModule] = reactExports.useState(void 0), setZendeskGuideLabels = () => {
|
|
60780
60780
|
var _a2;
|
|
60781
60781
|
const modulePathnameSplit = locationPathname.split("/");
|
|
60782
60782
|
let moduleLabel = "", labels = "";
|
|
@@ -60786,7 +60786,7 @@ function useZendeskGuide() {
|
|
|
60786
60786
|
dataModule != null && dataModule.labels && Object.prototype.hasOwnProperty.call(dataModule == null ? void 0 : dataModule.labels, moduleLabel) ? labels = dataModule == null ? void 0 : dataModule.labels[moduleLabel] : dataModule != null && dataModule.default && String(dataModule.default).length > 0 && (labels = dataModule == null ? void 0 : dataModule.default);
|
|
60787
60787
|
} else
|
|
60788
60788
|
dataModule != null && dataModule.default && String(dataModule == null ? void 0 : dataModule.default).length > 0 && (labels = dataModule == null ? void 0 : dataModule.default);
|
|
60789
|
-
if (labels.includes("${adml}") && (isAdml ? labels = labels.replace("${adml}", "adml") : labels = labels.replace("/${adml}", "")), labels.includes("${profile}")) {
|
|
60789
|
+
if (labels === "collaborativewall" && isMobileView && modulePathnameSplit.includes("id") && window.zE("webWidget", "hide"), labels.includes("${adml}") && (isAdml ? labels = labels.replace("${adml}", "adml") : labels = labels.replace("/${adml}", "")), labels.includes("${profile}")) {
|
|
60790
60790
|
const userProfile = ((_a2 = sessionQuery == null ? void 0 : sessionQuery.data) == null ? void 0 : _a2.userProfile[0]) || "";
|
|
60791
60791
|
labels = labels.replace("${profile}", userProfile.toLowerCase());
|
|
60792
60792
|
}
|
|
@@ -60809,12 +60809,12 @@ function useZendeskGuide() {
|
|
|
60809
60809
|
window.zE.setLocale("es-419");
|
|
60810
60810
|
}) : window.zE(function() {
|
|
60811
60811
|
window.zE.setLocale("fr");
|
|
60812
|
-
}), Object.keys(zendeskGuideConfig.module).length > 0 && setDataModule(zendeskGuideConfig.module), window.zE("webWidget", "updateSettings", {
|
|
60812
|
+
}), Object.keys(zendeskGuideConfig.module).length > 0 && setDataModule(zendeskGuideConfig.module), window.zE("webWidget", "show"), window.zE("webWidget", "updateSettings", {
|
|
60813
60813
|
webWidget: {
|
|
60814
60814
|
color: {
|
|
60815
60815
|
theme: zendeskGuideConfig.color || "#ffc400"
|
|
60816
60816
|
},
|
|
60817
|
-
zIndex:
|
|
60817
|
+
zIndex: 4,
|
|
60818
60818
|
launcher: {
|
|
60819
60819
|
mobile: {
|
|
60820
60820
|
labelVisible: true
|
|
@@ -60858,6 +60858,8 @@ function useZendeskGuide() {
|
|
|
60858
60858
|
}
|
|
60859
60859
|
}), window.zE("webWidget", "close"), window.open("/support", "_blank"));
|
|
60860
60860
|
});
|
|
60861
|
+
const element = document.querySelector("#myLauncher");
|
|
60862
|
+
element && (element.style.zIndex = "2");
|
|
60861
60863
|
};
|
|
60862
60864
|
}
|
|
60863
60865
|
})();
|
|
@@ -65817,7 +65819,7 @@ const SearchForm = () => {
|
|
|
65817
65819
|
"form",
|
|
65818
65820
|
{
|
|
65819
65821
|
noValidate: true,
|
|
65820
|
-
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",
|
|
65821
65823
|
ref: formRef,
|
|
65822
65824
|
children: [
|
|
65823
65825
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(FormControl$1, { id: "search", className: "input-group", children: [
|
|
@@ -67101,8 +67103,8 @@ function ActionBarContainer() {
|
|
|
67101
67103
|
return isActionBarOpen2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
67102
67104
|
animated.div,
|
|
67103
67105
|
{
|
|
67104
|
-
className: "position-fixed bottom-0 start-0 end-0
|
|
67105
|
-
style,
|
|
67106
|
+
className: "position-fixed bottom-0 start-0 end-0",
|
|
67107
|
+
style: { ...style, zIndex: 4 },
|
|
67106
67108
|
children: /* @__PURE__ */ jsxRuntimeExports.jsx(ActionBar$1$1, { children: actions == null ? void 0 : actions.filter(
|
|
67107
67109
|
(action) => action.available && action.target === "actionbar"
|
|
67108
67110
|
).map((action) => {
|
package/dist/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
ode-explorer=1.0-b2school-SNAPSHOT
|
|
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
|