ode-explorer 2.0.0 → 2.1.0
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/EcritureA-Romain-Orne.woff2 +0 -0
- package/dist/KGJuneBug.ttf +0 -0
- package/dist/OpenDyslexic.woff +0 -0
- package/dist/christmas.png +0 -0
- package/dist/circus.jpg +0 -0
- package/dist/desert.jpg +0 -0
- package/dist/hills.svg +360 -0
- package/dist/illu-blog.svg +1 -0
- package/dist/illu-collaborativewall.svg +1 -0
- package/dist/illu-empty-search-blog.svg +25 -0
- package/dist/illu-empty-search-blog2.svg +25 -0
- package/dist/illu-empty-search-collaborativewall.svg +25 -0
- package/dist/illu-empty-search-collaborativewall2.svg +25 -0
- package/dist/illu-empty-search-formulaire.svg +27 -0
- package/dist/illu-empty-search-formulaire2.svg +27 -0
- package/dist/illu-empty-search-forum.svg +25 -0
- package/dist/illu-empty-search-forum2.svg +25 -0
- package/dist/illu-empty-search-homeworks.svg +25 -0
- package/dist/illu-empty-search-homeworks2.svg +25 -0
- package/dist/illu-empty-search-wiki.svg +26 -0
- package/dist/illu-empty-search-wiki2.svg +26 -0
- package/dist/illu-empty-search.svg +62 -0
- package/dist/illu-empty-search2.svg +62 -0
- package/dist/illu-error.svg +60 -0
- package/dist/illu-exercizer.svg +1 -0
- package/dist/illu-mindmap.svg +1 -0
- package/dist/illu-no-content-in-folder.svg +31 -0
- package/dist/illu-pad.svg +1 -0
- package/dist/illu-scrapbook.svg +1 -0
- package/dist/illu-search.svg +1 -0
- package/dist/illu-timeline.svg +1 -0
- package/dist/illu-timelinegenerator.svg +1 -0
- package/dist/illu-trash-delete.svg +22 -0
- package/dist/illu-trash.svg +1 -0
- package/dist/illu-wiki.svg +15 -0
- package/dist/image-library.svg +188 -0
- package/dist/image-library2.svg +188 -0
- package/dist/image-placeholder.png +0 -0
- package/dist/index.html +1 -1
- package/dist/index.js +226 -221
- package/dist/ocean.jpg +0 -0
- package/dist/panda.jpg +0 -0
- package/dist/screen-loading.gif +0 -0
- package/dist/sparkly.jpg +0 -0
- package/dist/style.css +1 -0
- package/lib/ActionBarContainer.js +14 -14
- package/lib/AppAction.js +16 -16
- package/lib/DeleteModal.js +1 -1
- package/lib/DisableModal.js +1 -1
- package/lib/DraggableCard.js +33 -15
- package/lib/EmptyScreenApp.js +42 -33
- package/lib/EmptyScreenError.js +10 -9
- package/lib/EmptyScreenNoContentInFolder.js +9 -8
- package/lib/EmptyScreenSearch.js +7 -6
- package/lib/EmptyScreenTrash.js +7 -6
- package/lib/ExportModal.js +1 -1
- package/lib/FolderModal.js +12 -12
- package/lib/FoldersList.js +60 -55
- package/lib/Library.js +37 -23
- package/lib/MoveModal.js +6 -6
- package/lib/OnboardingModal.js +2 -2
- package/lib/PublishModal.js +2 -2
- package/lib/ResourceModal.js +2 -2
- package/lib/ResourcesList.js +123 -98
- package/lib/TrashModal.js +1 -1
- package/lib/components/OnboardingModal.d.ts +1 -1
- package/lib/config/explorer.d.ts +1 -1
- package/lib/dynamic-import-helper.js +16 -0
- package/lib/features/AccessControl/AccessControl.d.ts +1 -1
- package/lib/features/AccessControl/useAccessControl.d.ts +1 -1
- package/lib/features/ActionBar/Move/useMoveModal.d.ts +1 -1
- package/lib/features/ActionBar/Publish/PublishModal.d.ts +1 -1
- package/lib/features/ActionBar/Resource/ResourceModal.d.ts +1 -1
- package/lib/features/ActionBar/Share/ShareModal.d.ts +1 -1
- package/lib/features/ActionBar/useActionBar.d.ts +2 -2
- package/lib/features/List/DraggableCard.d.ts +1 -1
- package/lib/features/List/FolderCard.d.ts +2 -2
- package/lib/features/List/FoldersList.d.ts +1 -1
- package/lib/features/List/ResourceCard.d.ts +2 -2
- package/lib/features/List/ResourcesList.d.ts +1 -1
- package/lib/illu-blog.js +4 -0
- package/lib/illu-collaborativeeditor.js +4 -0
- package/lib/illu-collaborativewall.js +4 -0
- package/lib/illu-error.js +4 -0
- package/lib/illu-exercizer.js +4 -0
- package/lib/illu-mindmap.js +4 -0
- package/lib/illu-no-content-in-folder.js +4 -0
- package/lib/illu-pad.js +4 -0
- package/lib/illu-scrapbook.js +4 -0
- package/lib/illu-search.js +4 -0
- package/lib/illu-timeline.js +4 -0
- package/lib/illu-timelinegenerator.js +4 -0
- package/lib/illu-trash.js +4 -0
- package/lib/illu-wiki.js +4 -0
- package/lib/image-library.js +4 -0
- package/lib/image-library2.js +4 -0
- package/lib/index2.js +586 -557
- package/lib/services/api/index.d.ts +14 -14
- package/lib/services/queries/actions.d.ts +4 -7
- package/lib/services/queries/index.d.ts +9 -9
- package/lib/services/resource/service.d.ts +1 -1
- package/lib/store/index.d.ts +2 -2
- package/lib/utils/getChildrenIds.d.ts +1 -1
- package/lib/utils/isResourceShared.d.ts +1 -1
- package/package.json +6 -7
- package/dist/version.txt +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as a, Fragment as X, jsxs as Q } from "react/jsx-runtime";
|
|
2
2
|
import { useState as L, useEffect as Z, Suspense as pe, lazy as b } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { odeServices as D, ACTION as c, isActionAvailable as he } from "@edifice.io/client";
|
|
4
|
+
import { useUser as fe, Button as W, useEdificeClient as Re, ActionBar as me, LoadingScreen as Se, BlogPublic as Ee, ShareModal as Oe, ShareBlog as Ce } from "@edifice.io/react";
|
|
4
5
|
import { useTransition as be, animated as ye } from "@react-spring/web";
|
|
5
6
|
import { useTranslation as ee } from "react-i18next";
|
|
6
|
-
import {
|
|
7
|
-
import { f as J, u as Ie, c as ge, h as ve, i as se, j as Ae, k as Me, l as Pe, m as we, e as Fe, n as xe, o as Te, a as te, b as Be, p as De, q as Le, r as _e } from "./index2.js";
|
|
7
|
+
import { f as J, u as Ie, c as ge, h as Ae, i as se, j as ve, k as Me, l as Pe, m as we, e as Fe, n as xe, o as Te, a as te, b as Be, p as De, q as Le, r as _e } from "./index2.js";
|
|
8
8
|
function Ne({
|
|
9
9
|
roles: r,
|
|
10
10
|
rights: s,
|
|
@@ -12,7 +12,7 @@ function Ne({
|
|
|
12
12
|
}) {
|
|
13
13
|
const [p, o] = L(!1), {
|
|
14
14
|
user: E
|
|
15
|
-
} =
|
|
15
|
+
} = fe(), i = J();
|
|
16
16
|
Z(() => {
|
|
17
17
|
f();
|
|
18
18
|
}, [r, s]);
|
|
@@ -62,7 +62,7 @@ function Ne({
|
|
|
62
62
|
};
|
|
63
63
|
}
|
|
64
64
|
function oe() {
|
|
65
|
-
const [r, s] = L(!1), [t, p] = L("void"), [o, E] = L(), i = Ie((e) => e.config), m = ge(), h =
|
|
65
|
+
const [r, s] = L(!1), [t, p] = L("void"), [o, E] = L(), i = Ie((e) => e.config), m = ge(), h = Ae(), f = se(), l = ve(), n = Me(), R = J(), y = Pe(), I = we(), M = Fe(), _ = xe(), N = Te(), {
|
|
66
66
|
openResource: P,
|
|
67
67
|
printSelectedResource: k,
|
|
68
68
|
openFolder: H,
|
|
@@ -160,7 +160,7 @@ function oe() {
|
|
|
160
160
|
}
|
|
161
161
|
const u = (e) => () => {
|
|
162
162
|
t === e && (g(), w(), F());
|
|
163
|
-
}, S = u("move"), V = u("move"), T = u("delete"), $ = u("delete"),
|
|
163
|
+
}, S = u("move"), V = u("move"), T = u("delete"), $ = u("delete"), A = u("publish"), v = u("publish"), d = u("edit_folder"), q = u("edit_folder"), G = u("edit_resource"), re = u("edit_resource"), ne = u("share"), ce = u("share"), ae = u("export"), ie = u("export");
|
|
164
164
|
async function le() {
|
|
165
165
|
if (f && f.length > 0) {
|
|
166
166
|
const e = f[0];
|
|
@@ -196,8 +196,8 @@ function oe() {
|
|
|
196
196
|
onDeleteCancel: $,
|
|
197
197
|
onDeleteSuccess: T,
|
|
198
198
|
isPublishModalOpen: t === "publish",
|
|
199
|
-
onPublishCancel:
|
|
200
|
-
onPublishSuccess:
|
|
199
|
+
onPublishCancel: v,
|
|
200
|
+
onPublishSuccess: A,
|
|
201
201
|
isEditFolderOpen: t === "edit_folder",
|
|
202
202
|
onEditFolderCancel: q,
|
|
203
203
|
onEditFolderSuccess: d,
|
|
@@ -241,7 +241,7 @@ const He = /* @__PURE__ */ b(async () => await import("./PublishModal.js")), Ue
|
|
|
241
241
|
function Ze() {
|
|
242
242
|
const {
|
|
243
243
|
appCode: r
|
|
244
|
-
} =
|
|
244
|
+
} = Re(), {
|
|
245
245
|
t: s
|
|
246
246
|
} = ee(), {
|
|
247
247
|
actions: t,
|
|
@@ -286,18 +286,18 @@ function Ze() {
|
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
return /* @__PURE__ */ Q(X, { children: [
|
|
289
|
-
$((
|
|
290
|
-
...
|
|
289
|
+
$((A, v) => v && /* @__PURE__ */ a(ye.div, { className: "position-fixed bottom-0 start-0 end-0", style: {
|
|
290
|
+
...A,
|
|
291
291
|
zIndex: 4
|
|
292
|
-
}, children: /* @__PURE__ */ a(
|
|
292
|
+
}, children: /* @__PURE__ */ a(me, { children: t == null ? void 0 : t.filter((d) => d.available && d.target === "actionbar").map((d) => x(d) && /* @__PURE__ */ a(ke, { resourceRights: p, roleExpected: d.right, action: d, children: /* @__PURE__ */ a(W, { id: d.id, type: "button", color: "primary", variant: "filled", onClick: () => {
|
|
293
293
|
g(d);
|
|
294
294
|
}, children: s(f(d)) }, d.id) }, d.id)) }) })),
|
|
295
|
-
/* @__PURE__ */ Q(pe, { fallback: /* @__PURE__ */ a(
|
|
295
|
+
/* @__PURE__ */ Q(pe, { fallback: /* @__PURE__ */ a(Se, {}), children: [
|
|
296
296
|
o && /* @__PURE__ */ a(je, { isOpen: o, onCancel: w, onSuccess: F }),
|
|
297
297
|
E && /* @__PURE__ */ a(Ye, { isOpen: E, onCancel: U, onSuccess: Y }),
|
|
298
298
|
i && S && /* @__PURE__ */ a(He, { isOpen: i, resourceId: S.assetId, onCancel: j, onSuccess: z }),
|
|
299
299
|
h && /* @__PURE__ */ a(ze, { edit: !0, isOpen: h, onCancel: l, onSuccess: n }),
|
|
300
|
-
R && S && /* @__PURE__ */ a(Ue, { mode: "update", isOpen: R, resourceId: S.assetId, updateResource: T, onCancel: y, onSuccess: I, children: (
|
|
300
|
+
R && S && /* @__PURE__ */ a(Ue, { mode: "update", isOpen: R, resourceId: S.assetId, updateResource: T, onCancel: y, onSuccess: I, children: (A, v, d, q, G) => r === "blog" && he("createPublic", t) && /* @__PURE__ */ a(Ee, { appCode: r, isUpdating: v, resource: A, watch: d, setValue: q, register: G }) }),
|
|
301
301
|
M && S && /* @__PURE__ */ a(Oe, { isOpen: M, shareResource: V, shareOptions: {
|
|
302
302
|
resourceCreatorId: S.creatorId,
|
|
303
303
|
resourceId: S.assetId,
|
package/lib/AppAction.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as b, Fragment as h, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense as A, lazy as x } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { useToggle as P,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
3
|
+
import { isActionAvailable as I } from "@edifice.io/client";
|
|
4
|
+
import { useToggle as P, useEdificeClient as R, Button as y, LoadingScreen as O, BlogPublic as k } from "@edifice.io/react";
|
|
5
|
+
import { u as v, a as F, b as T, c as j, d as B, e as w, S as z, g as E } from "./index2.js";
|
|
6
|
+
import { useTranslation as L } from "react-i18next";
|
|
7
|
+
const M = /* @__PURE__ */ x(async () => await import("./ResourceModal.js"));
|
|
8
8
|
function Q() {
|
|
9
|
-
const [c, s] = P(), a =
|
|
10
|
-
appCode:
|
|
9
|
+
const [c, s] = P(), a = v((o) => o.config), {
|
|
10
|
+
appCode: t
|
|
11
11
|
} = R(), {
|
|
12
12
|
t: l
|
|
13
|
-
} =
|
|
13
|
+
} = L(t), {
|
|
14
14
|
clearSelectedItems: i,
|
|
15
15
|
clearSelectedIds: u
|
|
16
|
-
} =
|
|
16
|
+
} = F(), {
|
|
17
17
|
data: r
|
|
18
|
-
} =
|
|
19
|
-
return d ? /* @__PURE__ */ h
|
|
20
|
-
/* @__PURE__ */ e(y, { type: "button", color: "primary", variant: "filled", leftIcon: /* @__PURE__ */ e(
|
|
21
|
-
if (
|
|
22
|
-
|
|
18
|
+
} = T(a == null ? void 0 : a.actions), d = r == null ? void 0 : r.find((o) => o.id === "create"), n = j(), m = B(), p = w();
|
|
19
|
+
return d ? /* @__PURE__ */ b(h, { children: [
|
|
20
|
+
/* @__PURE__ */ e(y, { type: "button", color: "primary", variant: "filled", leftIcon: /* @__PURE__ */ e(z, {}), className: "ms-auto", onClick: () => {
|
|
21
|
+
if (t == "scrapbook") {
|
|
22
|
+
E({
|
|
23
23
|
searchParams: p,
|
|
24
24
|
folderId: n.id
|
|
25
25
|
});
|
|
@@ -27,7 +27,7 @@ function Q() {
|
|
|
27
27
|
}
|
|
28
28
|
i(), u(), s();
|
|
29
29
|
}, children: l("explorer.create.title") }),
|
|
30
|
-
/* @__PURE__ */ e(A, { fallback: /* @__PURE__ */ e(
|
|
30
|
+
/* @__PURE__ */ e(A, { fallback: /* @__PURE__ */ e(O, {}), children: c && /* @__PURE__ */ e(M, { mode: "create", currentFolder: n, createResource: m, isOpen: c, onSuccess: s, onCancel: s, children: (o, f, C, g, S) => t === "blog" && I("createPublic", r) && /* @__PURE__ */ e(k, { appCode: t, isUpdating: f, resource: o, watch: C, setValue: g, register: S }) }) })
|
|
31
31
|
] }) : null;
|
|
32
32
|
}
|
|
33
33
|
export {
|
package/lib/DeleteModal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as s, jsx as l } from "react/jsx-runtime";
|
|
2
|
-
import { Modal as a, Button as d } from "@edifice
|
|
2
|
+
import { Modal as a, Button as d } from "@edifice.io/react";
|
|
3
3
|
import { createPortal as c } from "react-dom";
|
|
4
4
|
import { useTranslation as h } from "react-i18next";
|
|
5
5
|
import { w as m, x as p, f as u } from "./index2.js";
|
package/lib/DisableModal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as a, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { Modal as r, Button as i } from "@edifice
|
|
2
|
+
import { Modal as r, Button as i } from "@edifice.io/react";
|
|
3
3
|
import { createPortal as d } from "react-dom";
|
|
4
4
|
import { useTranslation as n } from "react-i18next";
|
|
5
5
|
function h({
|
package/lib/DraggableCard.js
CHANGED
|
@@ -1,25 +1,43 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { jsxs as i, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { AppIcon as d } from "@edifice.io/react";
|
|
3
|
+
const n = ({
|
|
4
|
+
title: l,
|
|
5
|
+
titleId: a,
|
|
6
|
+
...r
|
|
7
|
+
}) => /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", width: "24", height: "24", "aria-hidden": "true", "aria-labelledby": a, ...r, children: [
|
|
8
|
+
l ? /* @__PURE__ */ e("title", { id: a, children: l }) : null,
|
|
9
|
+
/* @__PURE__ */ e("path", { fill: "currentColor", fillRule: "evenodd", d: "M20.91 9.14v1.27H8.25a4.7 4.7 0 0 0-3.86 1.98L1.5 16.53V6.4a2.3 2.3 0 0 1 .77-1.69A2.68 2.68 0 0 1 4.11 4h3.73a2.68 2.68 0 0 1 1.84.71c.25.22.45.48.58.77s.2.6.2.92v.34h7.84c.7.01 1.35.27 1.84.71.49.45.76 1.06.77 1.7ZM8.25 11.92h14.47c.63 0 1 .68.64 1.18l-3.52 5.04a3.13 3.13 0 0 1-2.57 1.32H2.79c-.62 0-.99-.68-.64-1.18l3.53-5.04a3.13 3.13 0 0 1 2.57-1.32", clipRule: "evenodd" })
|
|
10
|
+
] }), h = ({
|
|
11
|
+
title: l,
|
|
12
|
+
titleId: a,
|
|
13
|
+
...r
|
|
14
|
+
}) => /* @__PURE__ */ i("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": a, ...r, children: [
|
|
15
|
+
l ? /* @__PURE__ */ e("title", { id: a, children: l }) : null,
|
|
16
|
+
/* @__PURE__ */ e("path", { fill: "currentColor", fillRule: "evenodd", d: "M5.707 8.293a1 1 0 0 1 0 1.414L3.414 12l2.293 2.293a1 1 0 1 1-1.414 1.414l-3-3a1 1 0 0 1 0-1.414l3-3a1 1 0 0 1 1.414 0M11.293 1.293a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.414L12 3.414 9.707 5.707a1 1 0 0 1-1.414-1.414zM8.293 18.293a1 1 0 0 1 1.414 0L12 20.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-3 3a1 1 0 0 1-1.414 0l-3-3a1 1 0 0 1 0-1.414M18.293 8.293a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1 0 1.414l-3 3a1 1 0 0 1-1.414-1.414L20.586 12l-2.293-2.293a1 1 0 0 1 0-1.414", clipRule: "evenodd" }),
|
|
17
|
+
/* @__PURE__ */ e("path", { fill: "currentColor", fillRule: "evenodd", d: "M1 12a1 1 0 0 1 1-1h20a1 1 0 1 1 0 2H2a1 1 0 0 1-1-1", clipRule: "evenodd" }),
|
|
18
|
+
/* @__PURE__ */ e("path", { fill: "currentColor", fillRule: "evenodd", d: "M12 1a1 1 0 0 1 1 1v20a1 1 0 1 1-2 0V2a1 1 0 0 1 1-1", clipRule: "evenodd" })
|
|
19
|
+
] });
|
|
20
|
+
function o({
|
|
21
|
+
app: l,
|
|
22
|
+
type: a
|
|
7
23
|
}) {
|
|
8
|
-
return
|
|
24
|
+
return a === "folder" ? /* @__PURE__ */ e(n, { width: "24", height: "24", className: `color-app-${l == null ? void 0 : l.displayName}` }) : a === "resource" ? /* @__PURE__ */ e(d, { app: l, iconFit: "ratio", size: "24", variant: "rounded" }) : null;
|
|
9
25
|
}
|
|
10
|
-
const
|
|
11
|
-
app:
|
|
12
|
-
type:
|
|
13
|
-
name:
|
|
14
|
-
}) => /* @__PURE__ */
|
|
26
|
+
const u = ({
|
|
27
|
+
app: l,
|
|
28
|
+
type: a,
|
|
29
|
+
name: r
|
|
30
|
+
}) => /* @__PURE__ */ i("div", { className: "d-inline-flex align-items-center card is-selected gap-8", style: {
|
|
15
31
|
flexDirection: "row",
|
|
16
32
|
width: "252px",
|
|
17
33
|
height: "32px",
|
|
18
34
|
boxShadow: "0 0.2rem 0.6em rgba(0, 0, 0, 0.15)"
|
|
19
35
|
}, children: [
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
/* @__PURE__ */
|
|
36
|
+
/* @__PURE__ */ e("div", { className: "ms-8", children: /* @__PURE__ */ e(o, { app: l, type: a }) }),
|
|
37
|
+
/* @__PURE__ */ e("div", { className: "text-truncate", children: r })
|
|
22
38
|
] });
|
|
23
39
|
export {
|
|
24
|
-
|
|
40
|
+
u as D,
|
|
41
|
+
h as S,
|
|
42
|
+
n as a
|
|
25
43
|
};
|
package/lib/EmptyScreenApp.js
CHANGED
|
@@ -1,40 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { _ as c } from "./dynamic-import-helper.js";
|
|
2
|
+
import { jsx as u } from "react/jsx-runtime";
|
|
3
|
+
import { useEdificeClient as g, useEdificeTheme as f, EmptyScreen as b } from "@edifice.io/react";
|
|
4
|
+
import { useTranslation as y } from "react-i18next";
|
|
5
|
+
import { useState as v, useEffect as x } from "react";
|
|
6
|
+
import "@edifice.io/client";
|
|
4
7
|
import "@tanstack/react-query";
|
|
5
|
-
import "edifice-ts-client";
|
|
6
8
|
import "i18next";
|
|
7
|
-
import { u as
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
appCode:
|
|
11
|
-
} =
|
|
9
|
+
import { u as _, b as S } from "./index2.js";
|
|
10
|
+
function F() {
|
|
11
|
+
const {
|
|
12
|
+
appCode: t
|
|
13
|
+
} = g(), {
|
|
12
14
|
theme: e
|
|
13
|
-
} =
|
|
14
|
-
t:
|
|
15
|
-
} =
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
15
|
+
} = f(), {
|
|
16
|
+
t: o
|
|
17
|
+
} = y(), [m, p] = v("");
|
|
18
|
+
x(() => {
|
|
19
|
+
(async () => {
|
|
20
|
+
const a = await c(/* @__PURE__ */ Object.assign({ "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-blog.svg": () => import("./illu-blog.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-collaborativeeditor.svg": () => import("./illu-collaborativeeditor.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-collaborativewall.svg": () => import("./illu-collaborativewall.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-error.svg": () => import("./illu-error.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-exercizer.svg": () => import("./illu-exercizer.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-mindmap.svg": () => import("./illu-mindmap.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-no-content-in-folder.svg": () => import("./illu-no-content-in-folder.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-pad.svg": () => import("./illu-pad.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-scrapbook.svg": () => import("./illu-scrapbook.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-search.svg": () => import("./illu-search.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-timeline.svg": () => import("./illu-timeline.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-timelinegenerator.svg": () => import("./illu-timelinegenerator.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-trash.svg": () => import("./illu-trash.js"), "../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-wiki.svg": () => import("./illu-wiki.js") }), `../../../node_modules/@edifice.io/bootstrap/dist/images/emptyscreen/illu-${t}.svg`, 10);
|
|
21
|
+
p(a.default);
|
|
22
|
+
})();
|
|
23
|
+
}, [t]);
|
|
24
|
+
const r = _((s) => s.config), {
|
|
25
|
+
data: l
|
|
26
|
+
} = S(r == null ? void 0 : r.actions), i = l == null ? void 0 : l.find((s) => s.id === "create"), n = () => i != null && i.available && (e != null && e.is1d) ? o("explorer.emptyScreen.txt1d.create", {
|
|
27
|
+
ns: t
|
|
28
|
+
}) : i != null && i.available && !(e != null && e.is1d) ? o("explorer.emptyScreen.txt2d.create", {
|
|
29
|
+
ns: t
|
|
30
|
+
}) : !(i != null && i.available) && (e != null && e.is1d) ? o("explorer.emptyScreen.txt1d.consultation", {
|
|
31
|
+
ns: t
|
|
32
|
+
}) : o("explorer.emptyScreen.txt2d.consultation", {
|
|
33
|
+
ns: t
|
|
34
|
+
}), d = () => i != null && i.available && (e != null && e.is1d) ? o("explorer.emptyScreen.title1d.create", {
|
|
35
|
+
ns: t
|
|
36
|
+
}) : i != null && i.available && !(e != null && e.is1d) ? o("explorer.emptyScreen.title2d.create", {
|
|
37
|
+
ns: t
|
|
38
|
+
}) : !(i != null && i.available) && (e != null && e.is1d) ? o("explorer.emptyScreen.title1d.consultation", {
|
|
39
|
+
ns: t
|
|
40
|
+
}) : o("explorer.emptyScreen.title2d.consultation", {
|
|
41
|
+
ns: t
|
|
33
42
|
});
|
|
34
|
-
return /* @__PURE__ */
|
|
35
|
-
ns:
|
|
36
|
-
}), title:
|
|
43
|
+
return /* @__PURE__ */ u(b, { imageSrc: m, imageAlt: o("explorer.emptyScreen.app.alt", {
|
|
44
|
+
ns: t
|
|
45
|
+
}), title: d(), text: n() });
|
|
37
46
|
}
|
|
38
47
|
export {
|
|
39
|
-
|
|
48
|
+
F as default
|
|
40
49
|
};
|
package/lib/EmptyScreenError.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { EmptyScreen as t } from "@edifice.io/react";
|
|
3
|
+
import o from "./illu-error.js";
|
|
4
|
+
import { useTranslation as m } from "react-i18next";
|
|
5
|
+
function a() {
|
|
6
|
+
const {
|
|
7
|
+
t: r
|
|
8
|
+
} = m();
|
|
9
|
+
return /* @__PURE__ */ e(t, { imageSrc: o, imageAlt: r("explorer.emptyScreen.error.alt"), text: "explorer.emptyScreen.error.text" });
|
|
9
10
|
}
|
|
10
11
|
export {
|
|
11
|
-
|
|
12
|
+
a as default
|
|
12
13
|
};
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { useEdificeClient as o, EmptyScreen as n } from "@edifice.io/react";
|
|
3
|
+
import m from "./illu-no-content-in-folder.js";
|
|
4
|
+
import { useTranslation as l } from "react-i18next";
|
|
5
|
+
function s() {
|
|
6
|
+
const {
|
|
6
7
|
appCode: e
|
|
7
|
-
} =
|
|
8
|
+
} = o(), {
|
|
8
9
|
t
|
|
9
|
-
} =
|
|
10
|
-
return /* @__PURE__ */ r(
|
|
10
|
+
} = l();
|
|
11
|
+
return /* @__PURE__ */ r(n, { imageSrc: m, imageAlt: t("explorer.emptyScreen.folder.empty.alt", {
|
|
11
12
|
ns: e
|
|
12
13
|
}), text: t("explorer.emptyScreen.label", {
|
|
13
14
|
ns: e
|
|
14
15
|
}) });
|
|
15
16
|
}
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
+
s as default
|
|
18
19
|
};
|
package/lib/EmptyScreenSearch.js
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { useEdificeClient as o, EmptyScreen as m } from "@edifice.io/react";
|
|
3
|
+
import n from "./illu-search.js";
|
|
3
4
|
import { useTranslation as c } from "react-i18next";
|
|
4
5
|
function l() {
|
|
5
6
|
const {
|
|
6
7
|
appCode: e
|
|
7
|
-
} =
|
|
8
|
-
t
|
|
8
|
+
} = o(), {
|
|
9
|
+
t: r
|
|
9
10
|
} = c();
|
|
10
|
-
return /* @__PURE__ */
|
|
11
|
+
return /* @__PURE__ */ t(m, { imageSrc: n, imageAlt: r("explorer.emptyScreen.search.alt", {
|
|
11
12
|
ns: e
|
|
12
|
-
}), text:
|
|
13
|
+
}), text: r("explorer.emptyScreen.search.text", {
|
|
13
14
|
ns: e
|
|
14
15
|
}) });
|
|
15
16
|
}
|
package/lib/EmptyScreenTrash.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { useEdificeClient as o, EmptyScreen as m } from "@edifice.io/react";
|
|
3
|
+
import p from "./illu-trash.js";
|
|
4
|
+
import { useTranslation as i } from "react-i18next";
|
|
4
5
|
function c() {
|
|
5
6
|
const {
|
|
6
7
|
appCode: t
|
|
7
|
-
} =
|
|
8
|
+
} = o(), {
|
|
8
9
|
t: e
|
|
9
|
-
} =
|
|
10
|
-
return /* @__PURE__ */
|
|
10
|
+
} = i();
|
|
11
|
+
return /* @__PURE__ */ r(m, { imageSrc: p, imageAlt: e("explorer.emptyScreen.trash.alt"), title: e("explorer.emptyScreen.trash.title"), text: e("explorer.emptyScreen.trash.empty", {
|
|
11
12
|
ns: t
|
|
12
13
|
}) });
|
|
13
14
|
}
|
package/lib/ExportModal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as l, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useToast as d, Modal as n, Alert as p, Button as a } from "@edifice
|
|
2
|
+
import { useToast as d, Modal as n, Alert as p, Button as a } from "@edifice.io/react";
|
|
3
3
|
import { createPortal as x } from "react-dom";
|
|
4
4
|
import { useTranslation as c } from "react-i18next";
|
|
5
5
|
import { i as h, e as u, A as m } from "./index2.js";
|
package/lib/FolderModal.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as x, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { useId as j, useEffect as q } from "react";
|
|
3
|
-
import { Modal as m, FormControl as B, Label as w, Input as R, Button as C } from "@edifice
|
|
3
|
+
import { Modal as m, FormControl as B, Label as w, Input as R, Button as C } from "@edifice.io/react";
|
|
4
4
|
import { createPortal as T } from "react-dom";
|
|
5
5
|
import { useTranslation as U } from "react-i18next";
|
|
6
|
-
import { FOLDER as V } from "edifice
|
|
6
|
+
import { FOLDER as V } from "@edifice.io/client";
|
|
7
7
|
import { useForm as _ } from "react-hook-form";
|
|
8
8
|
import { j as k, c as z, t as A, v as H } from "./index2.js";
|
|
9
9
|
function P({
|
|
@@ -12,10 +12,10 @@ function P({
|
|
|
12
12
|
onClose: s
|
|
13
13
|
}) {
|
|
14
14
|
var b;
|
|
15
|
-
const
|
|
15
|
+
const n = k(), r = z(), c = A(), f = H(), u = t ? (b = n[0]) == null ? void 0 : b.name : void 0, {
|
|
16
16
|
reset: o,
|
|
17
17
|
register: p,
|
|
18
|
-
handleSubmit:
|
|
18
|
+
handleSubmit: l,
|
|
19
19
|
setFocus: h,
|
|
20
20
|
formState: {
|
|
21
21
|
errors: F,
|
|
@@ -34,7 +34,7 @@ function P({
|
|
|
34
34
|
var g;
|
|
35
35
|
try {
|
|
36
36
|
if (t) {
|
|
37
|
-
const d = (g =
|
|
37
|
+
const d = (g = n[0]) == null ? void 0 : g.parentId, E = n[0].id;
|
|
38
38
|
await f.mutate({
|
|
39
39
|
folderId: E,
|
|
40
40
|
parentId: d,
|
|
@@ -62,7 +62,7 @@ function P({
|
|
|
62
62
|
isValid: v,
|
|
63
63
|
register: p,
|
|
64
64
|
setFocus: h,
|
|
65
|
-
handleSubmit:
|
|
65
|
+
handleSubmit: l,
|
|
66
66
|
onCancel: D,
|
|
67
67
|
onSubmit: L
|
|
68
68
|
};
|
|
@@ -71,7 +71,7 @@ function Z({
|
|
|
71
71
|
isOpen: t,
|
|
72
72
|
edit: e,
|
|
73
73
|
onSuccess: s,
|
|
74
|
-
onCancel:
|
|
74
|
+
onCancel: n
|
|
75
75
|
}) {
|
|
76
76
|
const {
|
|
77
77
|
t: r
|
|
@@ -81,19 +81,19 @@ function Z({
|
|
|
81
81
|
isSubmitting: u,
|
|
82
82
|
formId: o,
|
|
83
83
|
onSubmit: p,
|
|
84
|
-
onCancel:
|
|
84
|
+
onCancel: l,
|
|
85
85
|
handleSubmit: h,
|
|
86
86
|
register: F,
|
|
87
87
|
setFocus: i
|
|
88
88
|
} = P({
|
|
89
89
|
edit: e,
|
|
90
90
|
onSuccess: s,
|
|
91
|
-
onClose:
|
|
91
|
+
onClose: n
|
|
92
92
|
});
|
|
93
93
|
return q(() => {
|
|
94
94
|
t && i("name");
|
|
95
|
-
}, [t, i]), t ? /* @__PURE__ */ T(/* @__PURE__ */ x(m, { isOpen: t, onModalClose:
|
|
96
|
-
/* @__PURE__ */ a(m.Header, { onModalClose:
|
|
95
|
+
}, [t, i]), t ? /* @__PURE__ */ T(/* @__PURE__ */ x(m, { isOpen: t, onModalClose: l, id: "modal_" + o, children: [
|
|
96
|
+
/* @__PURE__ */ a(m.Header, { onModalClose: l, children: r(e ? "explorer.rename.folder" : "explorer.create.folder") }),
|
|
97
97
|
/* @__PURE__ */ a(m.Body, { children: /* @__PURE__ */ a("form", { id: o, onSubmit: h(p), children: /* @__PURE__ */ x(B, { id: "nameFolder", isRequired: !0, children: [
|
|
98
98
|
/* @__PURE__ */ a(w, { children: r("explorer.create.folder.name") }),
|
|
99
99
|
/* @__PURE__ */ a(R, { type: "text", ...F("name", {
|
|
@@ -106,7 +106,7 @@ function Z({
|
|
|
106
106
|
}), placeholder: r("explorer.create.folder.name"), size: "md", "aria-required": !0, maxLength: 60 })
|
|
107
107
|
] }) }) }),
|
|
108
108
|
/* @__PURE__ */ x(m.Footer, { children: [
|
|
109
|
-
/* @__PURE__ */ a(C, { color: "tertiary", onClick:
|
|
109
|
+
/* @__PURE__ */ a(C, { color: "tertiary", onClick: l, type: "button", variant: "ghost", children: r("explorer.cancel") }),
|
|
110
110
|
/* @__PURE__ */ a(C, { form: o, type: "submit", color: "primary", variant: "filled", disabled: !c || !f || u, children: r(e ? "explorer.rename" : "explorer.create") })
|
|
111
111
|
] })
|
|
112
112
|
] }), document.getElementById("portal")) : null;
|