ode-explorer 2.0.0 → 2.1.0-develop-pedago.202502181634
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 +104 -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 +9 -9
- 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 +2 -2
- package/lib/FoldersList.js +60 -55
- package/lib/Library.js +37 -23
- package/lib/MoveModal.js +16 -16
- package/lib/OnboardingModal.js +2 -2
- package/lib/PublishModal.js +2 -2
- package/lib/ResourceModal.js +2 -2
- package/lib/ResourcesList.js +125 -100
- 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 +444 -415
- 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,9 +1,9 @@
|
|
|
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, BlogPublic as Se, ShareModal as Ee, ShareBlog as Oe, LoadingScreen 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 { odeServices as D, ACTION as c } from "edifice-ts-client";
|
|
7
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";
|
|
8
8
|
function Ne({
|
|
9
9
|
roles: r,
|
|
@@ -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]);
|
|
@@ -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,
|
|
@@ -289,20 +289,20 @@ function Ze() {
|
|
|
289
289
|
$((v, A) => A && /* @__PURE__ */ a(ye.div, { className: "position-fixed bottom-0 start-0 end-0", style: {
|
|
290
290
|
...v,
|
|
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(Ce, {}), 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: (v, A, d, q, G) => r === "blog" &&
|
|
301
|
-
M && S && /* @__PURE__ */ a(
|
|
300
|
+
R && S && /* @__PURE__ */ a(Ue, { mode: "update", isOpen: R, resourceId: S.assetId, updateResource: T, onCancel: y, onSuccess: I, children: (v, A, d, q, G) => r === "blog" && he("createPublic", t) && /* @__PURE__ */ a(Se, { appCode: r, isUpdating: A, resource: v, watch: d, setValue: q, register: G }) }),
|
|
301
|
+
M && S && /* @__PURE__ */ a(Ee, { isOpen: M, shareResource: V, shareOptions: {
|
|
302
302
|
resourceCreatorId: S.creatorId,
|
|
303
303
|
resourceId: S.assetId,
|
|
304
304
|
resourceRights: S.rights
|
|
305
|
-
}, onCancel: _, onSuccess: N, children: r === "blog" ? /* @__PURE__ */ a(
|
|
305
|
+
}, onCancel: _, onSuccess: N, children: r === "blog" ? /* @__PURE__ */ a(Oe, { resourceId: S.assetId, updateResource: T }) : null }),
|
|
306
306
|
P && S && /* @__PURE__ */ a(Ve, { isOpen: P, onCancel: k, onSuccess: H })
|
|
307
307
|
] })
|
|
308
308
|
] });
|
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, BlogPublic as O, LoadingScreen 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(k, {}), 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(O, { 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({
|
package/lib/FoldersList.js
CHANGED
|
@@ -1,84 +1,89 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useBreakpoint as
|
|
3
|
-
import { useSpring as
|
|
4
|
-
import { useQueryClient as
|
|
5
|
-
import { o as
|
|
6
|
-
import { useState as
|
|
7
|
-
import { useDroppable as
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
const O = ({
|
|
1
|
+
import { jsx as s, jsxs as S, Fragment as R } from "react/jsx-runtime";
|
|
2
|
+
import { useBreakpoint as w, Card as v, IconButton as k, useScrollToTop as z, useEdificeClient as $ } from "@edifice.io/react";
|
|
3
|
+
import { useSpring as j, animated as C } from "@react-spring/web";
|
|
4
|
+
import { useQueryClient as B } from "@tanstack/react-query";
|
|
5
|
+
import { o as x, s as E, j as A, k as M, a as q } from "./index2.js";
|
|
6
|
+
import { useState as L, useId as P, useEffect as Q } from "react";
|
|
7
|
+
import { useDroppable as G, useDraggable as H } from "@dnd-kit/core";
|
|
8
|
+
import { S as J, a as K, D as U } from "./DraggableCard.js";
|
|
9
|
+
const N = ({
|
|
11
10
|
app: r,
|
|
12
|
-
name:
|
|
11
|
+
name: n,
|
|
13
12
|
idFolder: l,
|
|
14
13
|
isSelected: i = !1,
|
|
15
|
-
isSelectable:
|
|
14
|
+
isSelectable: h = !0,
|
|
16
15
|
onClick: D,
|
|
17
16
|
onSelect: b
|
|
18
17
|
}) => {
|
|
19
|
-
const [
|
|
20
|
-
lg:
|
|
21
|
-
} =
|
|
22
|
-
setNodeRef:
|
|
23
|
-
} =
|
|
18
|
+
const [t, a] = L(!1), p = P(), {
|
|
19
|
+
lg: g
|
|
20
|
+
} = w(), {
|
|
21
|
+
setNodeRef: I
|
|
22
|
+
} = G({
|
|
24
23
|
id: p,
|
|
25
24
|
data: {
|
|
26
25
|
id: l,
|
|
27
|
-
name:
|
|
26
|
+
name: n,
|
|
28
27
|
isTreeview: !1,
|
|
29
28
|
accepts: ["folder", "resource"]
|
|
30
29
|
}
|
|
31
30
|
}), {
|
|
32
|
-
attributes:
|
|
31
|
+
attributes: y,
|
|
33
32
|
listeners: u,
|
|
34
|
-
setNodeRef:
|
|
33
|
+
setNodeRef: f,
|
|
35
34
|
transform: e
|
|
36
|
-
} =
|
|
35
|
+
} = H({
|
|
37
36
|
id: p,
|
|
38
37
|
data: {
|
|
39
38
|
id: l,
|
|
40
39
|
type: "folder"
|
|
41
40
|
},
|
|
42
|
-
disabled: !
|
|
43
|
-
}),
|
|
44
|
-
|
|
45
|
-
},
|
|
41
|
+
disabled: !g
|
|
42
|
+
}), o = x(), d = E(), F = (c) => {
|
|
43
|
+
f(c), I(c);
|
|
44
|
+
}, m = d.overId === l, O = !d.canMove && d.isTreeview ? "no-drop" : t ? "grabbing" : "default", T = {
|
|
46
45
|
transform: `translate3d(${((e == null ? void 0 : e.x) ?? 0) / 1}px, ${((e == null ? void 0 : e.y) ?? 0) / 1}px, 0)`,
|
|
47
|
-
cursor:
|
|
46
|
+
cursor: O
|
|
48
47
|
};
|
|
49
|
-
return
|
|
50
|
-
const
|
|
51
|
-
a(
|
|
52
|
-
}, [
|
|
53
|
-
...
|
|
54
|
-
}, children:
|
|
55
|
-
/* @__PURE__ */
|
|
56
|
-
|
|
48
|
+
return Q(() => {
|
|
49
|
+
const c = o.elementDrag === l;
|
|
50
|
+
a(c);
|
|
51
|
+
}, [o]), /* @__PURE__ */ s("div", { ref: F, style: {
|
|
52
|
+
...T
|
|
53
|
+
}, children: t ? /* @__PURE__ */ s(U, { name: n, app: r, type: "folder" }) : /* @__PURE__ */ s(v, { app: r, isSelectable: !t && h, isSelected: !t && i || m && t, isFocused: m, onClick: D, onSelect: b, children: (c) => /* @__PURE__ */ S(R, { children: [
|
|
54
|
+
!t && g && /* @__PURE__ */ s("div", { className: "card-header z-3", style: {
|
|
55
|
+
position: "fixed",
|
|
56
|
+
left: "37px"
|
|
57
|
+
}, children: /* @__PURE__ */ s(k, { ...u, ...y, className: "bg-white z-3", color: "secondary", icon: /* @__PURE__ */ s(J, {}), variant: "ghost" }) }),
|
|
58
|
+
/* @__PURE__ */ S(v.Body, { children: [
|
|
59
|
+
/* @__PURE__ */ s(K, { width: "48", height: "48", className: `color-app-${c}` }),
|
|
60
|
+
/* @__PURE__ */ s(v.Title, { children: n })
|
|
61
|
+
] })
|
|
57
62
|
] }) }) });
|
|
58
63
|
};
|
|
59
|
-
|
|
60
|
-
const
|
|
64
|
+
N.displayName = "FolderCard";
|
|
65
|
+
const oe = ({
|
|
61
66
|
data: r
|
|
62
67
|
}) => {
|
|
63
|
-
var u,
|
|
64
|
-
const
|
|
68
|
+
var u, f;
|
|
69
|
+
const n = B(), l = A(), i = M(), h = x(), D = z(), {
|
|
65
70
|
currentApp: b
|
|
66
|
-
} =
|
|
67
|
-
setSelectedFolders:
|
|
71
|
+
} = $(), {
|
|
72
|
+
setSelectedFolders: t,
|
|
68
73
|
setFolderIds: a,
|
|
69
74
|
openFolder: p
|
|
70
|
-
} =
|
|
71
|
-
function
|
|
72
|
-
i.includes(e.id) ? (a(i.filter((
|
|
75
|
+
} = q();
|
|
76
|
+
function g(e) {
|
|
77
|
+
i.includes(e.id) ? (a(i.filter((o) => o !== e.id)), t(l.filter((o) => o.id !== e.id))) : (a([e.id, ...i]), t([e, ...l]));
|
|
73
78
|
}
|
|
74
|
-
function
|
|
79
|
+
function I(e) {
|
|
75
80
|
D(), p({
|
|
76
81
|
folder: e,
|
|
77
82
|
folderId: e.id,
|
|
78
|
-
queryClient:
|
|
83
|
+
queryClient: n
|
|
79
84
|
});
|
|
80
85
|
}
|
|
81
|
-
const
|
|
86
|
+
const y = j({
|
|
82
87
|
from: {
|
|
83
88
|
opacity: 0
|
|
84
89
|
},
|
|
@@ -86,19 +91,19 @@ const ee = ({
|
|
|
86
91
|
opacity: 1
|
|
87
92
|
}
|
|
88
93
|
});
|
|
89
|
-
return (u = r == null ? void 0 : r.pages[0]) != null && u.folders.length ? /* @__PURE__ */
|
|
94
|
+
return (u = r == null ? void 0 : r.pages[0]) != null && u.folders.length ? /* @__PURE__ */ s(C.ul, { className: "grid ps-0 list-unstyled mb-24", children: (f = r == null ? void 0 : r.pages[0]) == null ? void 0 : f.folders.map((e) => {
|
|
90
95
|
const {
|
|
91
|
-
id:
|
|
96
|
+
id: o,
|
|
92
97
|
name: d
|
|
93
|
-
} = e,
|
|
94
|
-
return /* @__PURE__ */
|
|
98
|
+
} = e, F = h.elementDrag === o;
|
|
99
|
+
return /* @__PURE__ */ s(C.li, { className: `g-col-4 ${F ? "z-2000" : "z-1"}`, style: {
|
|
95
100
|
position: "relative",
|
|
96
|
-
...
|
|
97
|
-
}, children: /* @__PURE__ */
|
|
98
|
-
|
|
99
|
-
}, onSelect: () =>
|
|
101
|
+
...y
|
|
102
|
+
}, children: /* @__PURE__ */ s(N, { name: d, idFolder: o, app: b, isSelected: i.includes(e.id), onClick: (m) => {
|
|
103
|
+
m.stopPropagation(), I(e);
|
|
104
|
+
}, onSelect: () => g(e) }) }, o);
|
|
100
105
|
}) }) : null;
|
|
101
106
|
};
|
|
102
107
|
export {
|
|
103
|
-
|
|
108
|
+
oe as default
|
|
104
109
|
};
|