@edifice.io/react 2.5.15-develop-b2school.20260323150323 → 2.5.15-develop-pedago.20260324175543
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/components/AddAttachments/AddAttachments.d.ts +6 -3
- package/dist/components/AddAttachments/AddAttachments.js +17 -29
- package/dist/components/AddAttachments/hooks/useFileToAttachment.d.ts +3 -0
- package/dist/components/AddAttachments/hooks/useFileToAttachment.js +16 -0
- package/dist/components/AddAttachments/models/attachment.d.ts +1 -0
- package/dist/components/UserSearch/UserSearch.d.ts +7 -0
- package/dist/components/UserSearch/UserSearch.js +82 -0
- package/dist/components/UserSearch/index.d.ts +3 -0
- package/dist/components/UserSearch/types/types.d.ts +29 -0
- package/dist/components/UserSearch/types/visible.d.ts +24 -0
- package/dist/components/UserSearch/types/visible.js +4 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/hooks/useDropzone/useDropzone.js +4 -4
- package/dist/icons.js +180 -176
- package/dist/index.js +6 -0
- package/dist/modules/icons/components/IconParcoursCitoyen.d.ts +7 -0
- package/dist/modules/icons/components/IconParcoursCitoyen.js +14 -0
- package/dist/modules/icons/components/IconParcoursSecours.d.ts +7 -0
- package/dist/modules/icons/components/IconParcoursSecours.js +14 -0
- package/dist/modules/icons/components/index.d.ts +2 -0
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.d.ts +3 -1
- package/dist/modules/multimedia/Linker/InternalLinker/InternalLinker.js +2 -1
- package/package.json +7 -7
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { Attachment } from './models/attachment';
|
|
2
|
+
export type SingleAttachmentType = Attachment;
|
|
3
|
+
export { useFileToAttachment } from './hooks/useFileToAttachment';
|
|
2
4
|
export interface AddAttachmentsProps {
|
|
3
5
|
attachments: Attachment[];
|
|
4
|
-
|
|
5
|
-
|
|
6
|
+
onChange?: (attachments: Attachment[]) => void;
|
|
7
|
+
onFilesSelected?: (files: File[]) => void;
|
|
8
|
+
onRemoveAttachment?: (attachmentId: string) => void;
|
|
6
9
|
editMode?: boolean;
|
|
7
10
|
isMutating?: boolean;
|
|
8
11
|
onCopyToWorkspace?: (attachments: Attachment[], folderId: string) => Promise<boolean>;
|
|
@@ -12,7 +15,7 @@ export interface AddAttachmentsProps {
|
|
|
12
15
|
downloadAllUrl?: string;
|
|
13
16
|
}
|
|
14
17
|
export declare const AddAttachments: {
|
|
15
|
-
({ attachments, onFilesSelected, onRemoveAttachment, editMode, isMutating, onCopyToWorkspace, getDownloadUrl, downloadAllUrl, }: AddAttachmentsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
({ attachments, onChange, onFilesSelected, onRemoveAttachment, editMode, isMutating, onCopyToWorkspace, getDownloadUrl, downloadAllUrl, }: AddAttachmentsProps): import("react/jsx-runtime").JSX.Element | null;
|
|
16
19
|
displayName: string;
|
|
17
20
|
};
|
|
18
21
|
export default AddAttachments;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from "clsx";
|
|
3
|
-
import { useRef, useState
|
|
3
|
+
import { useRef, useState } from "react";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import SvgIconDelete from "../../modules/icons/components/IconDelete.js";
|
|
6
6
|
import SvgIconDownload from "../../modules/icons/components/IconDownload.js";
|
|
@@ -8,22 +8,13 @@ import SvgIconFolderAdd from "../../modules/icons/components/IconFolderAdd.js";
|
|
|
8
8
|
import SvgIconPlus from "../../modules/icons/components/IconPlus.js";
|
|
9
9
|
import { AddAttachmentToWorkspaceModal } from "./components/AddAttachmentToWorkspaceModal.js";
|
|
10
10
|
import { SingleAttachment } from "./components/SingleAttachment.js";
|
|
11
|
+
import { useFileToAttachment } from "./hooks/useFileToAttachment.js";
|
|
11
12
|
import Flex from "../Flex/Flex.js";
|
|
12
13
|
import IconButton from "../Button/IconButton.js";
|
|
13
14
|
import Button from "../Button/Button.js";
|
|
14
|
-
function fileToAttachment(file) {
|
|
15
|
-
return {
|
|
16
|
-
id: `${file.name}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`,
|
|
17
|
-
charset: "UTF-8",
|
|
18
|
-
contentTransferEncoding: "binary",
|
|
19
|
-
contentType: file.type || "application/octet-stream",
|
|
20
|
-
filename: file.name,
|
|
21
|
-
name: file.name,
|
|
22
|
-
size: file.size
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
15
|
const AddAttachments = ({
|
|
26
16
|
attachments,
|
|
17
|
+
onChange,
|
|
27
18
|
onFilesSelected,
|
|
28
19
|
onRemoveAttachment,
|
|
29
20
|
editMode = !1,
|
|
@@ -34,10 +25,8 @@ const AddAttachments = ({
|
|
|
34
25
|
}) => {
|
|
35
26
|
const {
|
|
36
27
|
t
|
|
37
|
-
} = useTranslation(), inputRef = useRef(null),
|
|
38
|
-
if (
|
|
39
|
-
attachments.length > prevAttachmentsLengthRef.current && setOptimisticAttachments([]), prevAttachmentsLengthRef.current = attachments.length;
|
|
40
|
-
}, [attachments.length]), !editMode && !displayedAttachments.length) return null;
|
|
28
|
+
} = useTranslation(), inputRef = useRef(null), fileToAttachment = useFileToAttachment(), [attachmentsToAddToWorkspace, setAttachmentsToAddToWorkspace] = useState(void 0);
|
|
29
|
+
if (!editMode && !attachments.length) return null;
|
|
41
30
|
const resetInputValue = () => {
|
|
42
31
|
inputRef.current && (inputRef.current.value = "");
|
|
43
32
|
}, handleAttachClick = () => {
|
|
@@ -46,36 +35,34 @@ const AddAttachments = ({
|
|
|
46
35
|
}, handleFileChange = (event) => {
|
|
47
36
|
const files = Array.from(event.target.files ?? []);
|
|
48
37
|
if (files.length > 0) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
setOptimisticAttachments((prev) => [...prev, ...newOptimistic]);
|
|
38
|
+
const newAttachments = files.map(fileToAttachment);
|
|
39
|
+
onChange == null || onChange([...attachments, ...newAttachments]), onFilesSelected == null || onFilesSelected(files);
|
|
52
40
|
}
|
|
53
41
|
resetInputValue();
|
|
54
42
|
}, handleDetachAllClick = () => {
|
|
55
|
-
|
|
56
|
-
onRemoveAttachment(attachment.id);
|
|
57
|
-
}), resetInputValue();
|
|
43
|
+
onChange == null || onChange([]), attachments.forEach((a) => onRemoveAttachment == null ? void 0 : onRemoveAttachment(a.id)), resetInputValue();
|
|
58
44
|
}, handleDetachClick = (attachmentId) => {
|
|
59
|
-
|
|
45
|
+
const next = attachments.filter((a) => a.id !== attachmentId);
|
|
46
|
+
onChange == null || onChange(next), onRemoveAttachment == null || onRemoveAttachment(attachmentId), resetInputValue();
|
|
60
47
|
}, handleCopyToWorkspace = (attachments2) => {
|
|
61
48
|
setAttachmentsToAddToWorkspace(attachments2);
|
|
62
49
|
}, className = clsx("bg-gray-200 rounded px-12 py-8 message-attachments align-self-start gap-8 d-flex flex-column mw-100", {
|
|
63
50
|
"border add-attachments-edit mx-16": editMode
|
|
64
51
|
});
|
|
65
52
|
return /* @__PURE__ */ jsxs("div", { className, "data-drag-handle": !0, children: [
|
|
66
|
-
!!
|
|
53
|
+
!!attachments.length && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
67
54
|
/* @__PURE__ */ jsxs(Flex, { direction: "row", align: "center", justify: "between", className: "border-bottom", children: [
|
|
68
55
|
/* @__PURE__ */ jsx("span", { className: "caption fw-bold my-8", children: t("attachments") }),
|
|
69
|
-
|
|
70
|
-
onCopyToWorkspace && /* @__PURE__ */ jsx(IconButton, { title: t("conversation.copy.all.toworkspace"), color: "tertiary", type: "button", icon: /* @__PURE__ */ jsx(SvgIconFolderAdd, {}), onClick: () => handleCopyToWorkspace(
|
|
56
|
+
attachments.length > 1 && /* @__PURE__ */ jsxs("div", { children: [
|
|
57
|
+
onCopyToWorkspace && /* @__PURE__ */ jsx(IconButton, { title: t("conversation.copy.all.toworkspace"), color: "tertiary", type: "button", icon: /* @__PURE__ */ jsx(SvgIconFolderAdd, {}), onClick: () => handleCopyToWorkspace(attachments), variant: "ghost" }),
|
|
71
58
|
downloadAllUrl && /* @__PURE__ */ jsx("a", { href: downloadAllUrl, download: !0, children: /* @__PURE__ */ jsx(IconButton, { title: t("download.all.attachment"), color: "tertiary", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDownload, {}), variant: "ghost" }) }),
|
|
72
59
|
editMode && /* @__PURE__ */ jsx(IconButton, { title: t("remove.all.attachment"), color: "danger", type: "button", icon: /* @__PURE__ */ jsx(SvgIconDelete, {}), variant: "ghost", onClick: handleDetachAllClick, disabled: isMutating })
|
|
73
60
|
] })
|
|
74
61
|
] }),
|
|
75
|
-
/* @__PURE__ */ jsx("ul", { className: "d-flex gap-8 flex-column list-unstyled m-0", children:
|
|
62
|
+
/* @__PURE__ */ jsx("ul", { className: "d-flex gap-8 flex-column list-unstyled m-0", children: attachments.map((attachment) => /* @__PURE__ */ jsx("li", { className: "mw-100", children: /* @__PURE__ */ jsx(SingleAttachment, { attachment, editMode, onDelete: handleDetachClick, onCopyToWorkspace: onCopyToWorkspace ? (attachment2) => handleCopyToWorkspace([attachment2]) : void 0, getDownloadUrl, disabled: isMutating }) }, `${attachment.id}-${attachment.name}`)) })
|
|
76
63
|
] }),
|
|
77
64
|
editMode && /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
78
|
-
/* @__PURE__ */ jsx(Button, { color: "secondary", variant: "ghost", isLoading: isMutating, onClick: handleAttachClick, disabled: isMutating, className: "align-self-start", leftIcon: /* @__PURE__ */ jsx(SvgIconPlus, {}), children: t("add.attachment") }),
|
|
65
|
+
/* @__PURE__ */ jsx(Button, { color: "secondary", variant: "ghost", isLoading: isMutating, onClick: handleAttachClick, disabled: isMutating, className: "align-self-start", leftIcon: /* @__PURE__ */ jsx(SvgIconPlus, {}), "data-testid": "common-add-attachments-button-add-attachment", children: t("add.attachment") }),
|
|
79
66
|
/* @__PURE__ */ jsx("input", { ref: inputRef, multiple: !0, type: "file", name: "attachment-input", id: "attachment-input", onChange: handleFileChange, hidden: !0 })
|
|
80
67
|
] }),
|
|
81
68
|
onCopyToWorkspace && !!attachmentsToAddToWorkspace && /* @__PURE__ */ jsx(AddAttachmentToWorkspaceModal, { isOpen: !0, onModalClose: () => setAttachmentsToAddToWorkspace(void 0), attachments: attachmentsToAddToWorkspace, onCopyToWorkspace })
|
|
@@ -83,5 +70,6 @@ const AddAttachments = ({
|
|
|
83
70
|
};
|
|
84
71
|
export {
|
|
85
72
|
AddAttachments,
|
|
86
|
-
AddAttachments as default
|
|
73
|
+
AddAttachments as default,
|
|
74
|
+
useFileToAttachment
|
|
87
75
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { useCallback } from "react";
|
|
2
|
+
function useFileToAttachment() {
|
|
3
|
+
return useCallback((file) => ({
|
|
4
|
+
id: `${file.name}-${Date.now()}-${Math.random().toString(36).slice(2, 9)}`,
|
|
5
|
+
charset: "UTF-8",
|
|
6
|
+
contentTransferEncoding: "binary",
|
|
7
|
+
contentType: file.type || "application/octet-stream",
|
|
8
|
+
filename: file.name,
|
|
9
|
+
name: file.name,
|
|
10
|
+
size: file.size,
|
|
11
|
+
file
|
|
12
|
+
}), []);
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
useFileToAttachment
|
|
16
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UserSearchProps, UserSearchRef } from './types/types';
|
|
2
|
+
/**
|
|
3
|
+
* User search component with combobox UI. Supports users, groups and bookmarks,
|
|
4
|
+
* debounced search, and optional sharing/selection tracking.
|
|
5
|
+
* Loading state is managed internally during getSearchResults calls.
|
|
6
|
+
*/
|
|
7
|
+
export declare const UserSearch: import('react').ForwardRefExoticComponent<UserSearchProps & import('react').RefAttributes<UserSearchRef>>;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useState, useEffect, useCallback, useImperativeHandle } from "react";
|
|
3
|
+
import SvgIconBookmark from "../../modules/icons/components/IconBookmark.js";
|
|
4
|
+
import SvgIconGroupAvatar from "../../modules/icons/components/IconGroupAvatar.js";
|
|
5
|
+
import SvgIconUser from "../../modules/icons/components/IconUser.js";
|
|
6
|
+
import { VisibleType } from "./types/visible.js";
|
|
7
|
+
import useDebounce from "../../hooks/useDebounce/useDebounce.js";
|
|
8
|
+
import Combobox from "../Combobox/Combobox.js";
|
|
9
|
+
function buildSharedItemsCacheFromInitialSharings(initialSharings) {
|
|
10
|
+
return new Map(initialSharings.map((item) => [item.recipientId, {
|
|
11
|
+
id: item.recipientId,
|
|
12
|
+
displayName: item.displayName,
|
|
13
|
+
type: item.recipientType === "user" ? VisibleType.User : item.recipientType === "group" ? VisibleType.Group : VisibleType.ShareBookmark
|
|
14
|
+
}]));
|
|
15
|
+
}
|
|
16
|
+
const UserSearch = /* @__PURE__ */ forwardRef(({
|
|
17
|
+
placeholder = "Rechercher un utilisateur",
|
|
18
|
+
isAdmlcOrAdmc = !1,
|
|
19
|
+
bookmarks = [],
|
|
20
|
+
initialSharings = [],
|
|
21
|
+
getSearchResults,
|
|
22
|
+
onSearchResultsChange
|
|
23
|
+
}, ref) => {
|
|
24
|
+
const [searchResults, setSearchResults] = useState(bookmarks), [searchInputValue, setSearchInputValue] = useState(""), debouncedSearchInputValue = useDebounce(searchInputValue, 500), [sharingsIds, setSharingsIds] = useState(new Set(initialSharings.map((item) => item.recipientId))), [sharedItemsCache, setSharedItemsCache] = useState(() => buildSharedItemsCacheFromInitialSharings(initialSharings)), [isLoading, setIsLoading] = useState(!1), searchMinLength = isAdmlcOrAdmc ? 3 : 1, getIcon = (type) => {
|
|
25
|
+
switch (type) {
|
|
26
|
+
case VisibleType.User:
|
|
27
|
+
return /* @__PURE__ */ jsx(SvgIconUser, {});
|
|
28
|
+
case VisibleType.Group:
|
|
29
|
+
case VisibleType.BroadcastGroup:
|
|
30
|
+
return /* @__PURE__ */ jsx(SvgIconGroupAvatar, {});
|
|
31
|
+
case VisibleType.ShareBookmark:
|
|
32
|
+
return /* @__PURE__ */ jsx(SvgIconBookmark, {});
|
|
33
|
+
default:
|
|
34
|
+
return null;
|
|
35
|
+
}
|
|
36
|
+
}, searchResultsToOptions = (searchResults2) => searchResults2.map((result) => ({
|
|
37
|
+
value: result.id,
|
|
38
|
+
label: result.displayName,
|
|
39
|
+
icon: getIcon(result.type)
|
|
40
|
+
})), filterResults = (results) => results.filter((result) => !sharingsIds.has(result.id));
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
let cancelled = !1;
|
|
43
|
+
async function getResults() {
|
|
44
|
+
setIsLoading(!0);
|
|
45
|
+
try {
|
|
46
|
+
const response = await getSearchResults(debouncedSearchInputValue);
|
|
47
|
+
if (!cancelled) {
|
|
48
|
+
const rawResults = [...bookmarks, ...response.results];
|
|
49
|
+
setSearchResults(filterResults(rawResults));
|
|
50
|
+
}
|
|
51
|
+
} catch {
|
|
52
|
+
cancelled || setSearchResults(filterResults(bookmarks));
|
|
53
|
+
} finally {
|
|
54
|
+
cancelled || setIsLoading(!1);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return debouncedSearchInputValue.length >= searchMinLength ? getResults() : setSearchResults(filterResults(bookmarks)), () => {
|
|
58
|
+
cancelled = !0, setIsLoading(!1);
|
|
59
|
+
};
|
|
60
|
+
}, [debouncedSearchInputValue]);
|
|
61
|
+
const handleSearchInputChange = (event) => {
|
|
62
|
+
setSearchInputValue(event.target.value);
|
|
63
|
+
}, handleRemoveSharing = useCallback((recipientId) => {
|
|
64
|
+
setSharingsIds((prev) => {
|
|
65
|
+
const next = new Set(prev);
|
|
66
|
+
return next.delete(recipientId), next;
|
|
67
|
+
});
|
|
68
|
+
const cached = sharedItemsCache.get(recipientId);
|
|
69
|
+
cached && setSearchResults((prev) => prev.some((r) => r.id === recipientId) ? prev : [...prev, cached]);
|
|
70
|
+
}, [sharedItemsCache]);
|
|
71
|
+
useImperativeHandle(ref, () => ({
|
|
72
|
+
removeSharing: handleRemoveSharing
|
|
73
|
+
}), [handleRemoveSharing]);
|
|
74
|
+
const handleSearchResultsChange = (model) => {
|
|
75
|
+
const searchResultId = model[0], searchResult = searchResults.find((result) => result.id === searchResultId);
|
|
76
|
+
searchResult && (setSharingsIds((prev) => /* @__PURE__ */ new Set([...prev, searchResult.id])), setSharedItemsCache((prev) => new Map(prev).set(searchResult.id, searchResult)), setSearchResults((prev) => prev.filter((result) => result.id !== searchResult.id)), onSearchResultsChange == null || onSearchResultsChange(searchResult));
|
|
77
|
+
};
|
|
78
|
+
return /* @__PURE__ */ jsx(Combobox, { "data-testid": "common-user-search-input-search", value: searchInputValue, placeholder, isLoading, noResult: searchResults.length === 0, options: searchResultsToOptions(searchResults), searchMinLength, onSearchInputChange: handleSearchInputChange, onSearchResultsChange: handleSearchResultsChange });
|
|
79
|
+
});
|
|
80
|
+
export {
|
|
81
|
+
UserSearch
|
|
82
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Visible } from './visible';
|
|
3
|
+
export interface UserSearchProps {
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
isAdmlcOrAdmc?: boolean;
|
|
6
|
+
bookmarks?: Visible[];
|
|
7
|
+
initialSharings?: SharingItem[];
|
|
8
|
+
getSearchResults: (searchInputValue: string) => Promise<SearchResponse>;
|
|
9
|
+
onSearchResultsChange?: (searchResult: Visible) => void;
|
|
10
|
+
}
|
|
11
|
+
export interface UserSearchRef {
|
|
12
|
+
removeSharing: (recipientId: string) => void;
|
|
13
|
+
}
|
|
14
|
+
export interface SearchResponse {
|
|
15
|
+
results: Visible[];
|
|
16
|
+
}
|
|
17
|
+
export type SearchResultType = 'user' | 'group' | 'bookmark';
|
|
18
|
+
export interface SearchResultBase {
|
|
19
|
+
id: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
icon: ReactNode;
|
|
22
|
+
type: SearchResultType;
|
|
23
|
+
}
|
|
24
|
+
export interface SharingItem {
|
|
25
|
+
recipientId: string;
|
|
26
|
+
recipientType: SearchResultType;
|
|
27
|
+
permission: string[];
|
|
28
|
+
displayName: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum VisibleType {
|
|
2
|
+
User = "User",
|
|
3
|
+
Group = "Group",
|
|
4
|
+
ShareBookmark = "ShareBookmark",
|
|
5
|
+
BroadcastGroup = "BroadcastGroup"
|
|
6
|
+
}
|
|
7
|
+
export type Visible = {
|
|
8
|
+
id: string;
|
|
9
|
+
displayName: string;
|
|
10
|
+
type: VisibleType;
|
|
11
|
+
children?: {
|
|
12
|
+
id: string;
|
|
13
|
+
displayName: string;
|
|
14
|
+
}[];
|
|
15
|
+
groupType?: string;
|
|
16
|
+
nbUsers?: number;
|
|
17
|
+
profile?: string;
|
|
18
|
+
relatives?: {
|
|
19
|
+
id: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
}[];
|
|
22
|
+
structureName?: string;
|
|
23
|
+
usedIn?: ('TO' | 'CC' | 'CCI')[];
|
|
24
|
+
};
|
|
@@ -35,11 +35,11 @@ const useDropzone = (props) => {
|
|
|
35
35
|
}, convertHEICImages = async (files2) => {
|
|
36
36
|
if (files2 === null || files2.length === 0)
|
|
37
37
|
return [];
|
|
38
|
-
let
|
|
39
|
-
return files2.some((file) => HEIC_MIME_TYPES.includes(file.type)) && (
|
|
40
|
-
if (
|
|
38
|
+
let heicToLib;
|
|
39
|
+
return files2.some((file) => HEIC_MIME_TYPES.includes(file.type)) && (heicToLib = await import("heic-to")), Promise.all(files2.map(async (file) => {
|
|
40
|
+
if (heicToLib && heicToLib.isHeic(file))
|
|
41
41
|
try {
|
|
42
|
-
const converted = await
|
|
42
|
+
const converted = await heicToLib.heicTo({
|
|
43
43
|
blob: file,
|
|
44
44
|
toType: "image/jpeg"
|
|
45
45
|
});
|
package/dist/icons.js
CHANGED
|
@@ -95,94 +95,96 @@ import { default as default95 } from "./modules/icons/components/IconNotificatio
|
|
|
95
95
|
import { default as default96 } from "./modules/icons/components/IconOptions.js";
|
|
96
96
|
import { default as default97 } from "./modules/icons/components/IconOrderedList.js";
|
|
97
97
|
import { default as default98 } from "./modules/icons/components/IconPaperclip.js";
|
|
98
|
-
import { default as default99 } from "./modules/icons/components/
|
|
99
|
-
import { default as default100 } from "./modules/icons/components/
|
|
100
|
-
import { default as default101 } from "./modules/icons/components/
|
|
101
|
-
import { default as default102 } from "./modules/icons/components/
|
|
102
|
-
import { default as default103 } from "./modules/icons/components/
|
|
103
|
-
import { default as default104 } from "./modules/icons/components/
|
|
104
|
-
import { default as default105 } from "./modules/icons/components/
|
|
105
|
-
import { default as default106 } from "./modules/icons/components/
|
|
106
|
-
import { default as default107 } from "./modules/icons/components/
|
|
107
|
-
import { default as default108 } from "./modules/icons/components/
|
|
108
|
-
import { default as default109 } from "./modules/icons/components/
|
|
109
|
-
import { default as default110 } from "./modules/icons/components/
|
|
110
|
-
import { default as default111 } from "./modules/icons/components/
|
|
111
|
-
import { default as default112 } from "./modules/icons/components/
|
|
112
|
-
import { default as default113 } from "./modules/icons/components/
|
|
113
|
-
import { default as default114 } from "./modules/icons/components/
|
|
114
|
-
import { default as default115 } from "./modules/icons/components/
|
|
115
|
-
import { default as default116 } from "./modules/icons/components/
|
|
116
|
-
import { default as default117 } from "./modules/icons/components/
|
|
117
|
-
import { default as default118 } from "./modules/icons/components/
|
|
118
|
-
import { default as default119 } from "./modules/icons/components/
|
|
119
|
-
import { default as default120 } from "./modules/icons/components/
|
|
120
|
-
import { default as default121 } from "./modules/icons/components/
|
|
121
|
-
import { default as default122 } from "./modules/icons/components/
|
|
122
|
-
import { default as default123 } from "./modules/icons/components/
|
|
123
|
-
import { default as default124 } from "./modules/icons/components/
|
|
124
|
-
import { default as default125 } from "./modules/icons/components/
|
|
125
|
-
import { default as default126 } from "./modules/icons/components/
|
|
126
|
-
import { default as default127 } from "./modules/icons/components/
|
|
127
|
-
import { default as default128 } from "./modules/icons/components/
|
|
128
|
-
import { default as default129 } from "./modules/icons/components/
|
|
129
|
-
import { default as default130 } from "./modules/icons/components/
|
|
130
|
-
import { default as default131 } from "./modules/icons/components/
|
|
131
|
-
import { default as default132 } from "./modules/icons/components/
|
|
132
|
-
import { default as default133 } from "./modules/icons/components/
|
|
133
|
-
import { default as default134 } from "./modules/icons/components/
|
|
134
|
-
import { default as default135 } from "./modules/icons/components/
|
|
135
|
-
import { default as default136 } from "./modules/icons/components/
|
|
136
|
-
import { default as default137 } from "./modules/icons/components/
|
|
137
|
-
import { default as default138 } from "./modules/icons/components/
|
|
138
|
-
import { default as default139 } from "./modules/icons/components/
|
|
139
|
-
import { default as default140 } from "./modules/icons/components/
|
|
140
|
-
import { default as default141 } from "./modules/icons/components/
|
|
141
|
-
import { default as default142 } from "./modules/icons/components/
|
|
142
|
-
import { default as default143 } from "./modules/icons/components/
|
|
143
|
-
import { default as default144 } from "./modules/icons/components/
|
|
144
|
-
import { default as default145 } from "./modules/icons/components/
|
|
145
|
-
import { default as default146 } from "./modules/icons/components/
|
|
146
|
-
import { default as default147 } from "./modules/icons/components/
|
|
147
|
-
import { default as default148 } from "./modules/icons/components/
|
|
148
|
-
import { default as default149 } from "./modules/icons/components/
|
|
149
|
-
import { default as default150 } from "./modules/icons/components/
|
|
150
|
-
import { default as default151 } from "./modules/icons/components/
|
|
151
|
-
import { default as default152 } from "./modules/icons/components/
|
|
152
|
-
import { default as default153 } from "./modules/icons/components/
|
|
153
|
-
import { default as default154 } from "./modules/icons/components/
|
|
154
|
-
import { default as default155 } from "./modules/icons/components/
|
|
155
|
-
import { default as default156 } from "./modules/icons/components/
|
|
156
|
-
import { default as default157 } from "./modules/icons/components/
|
|
157
|
-
import { default as default158 } from "./modules/icons/components/
|
|
158
|
-
import { default as default159 } from "./modules/icons/components/
|
|
159
|
-
import { default as default160 } from "./modules/icons/components/
|
|
160
|
-
import { default as default161 } from "./modules/icons/components/
|
|
161
|
-
import { default as default162 } from "./modules/icons/components/
|
|
162
|
-
import { default as default163 } from "./modules/icons/components/
|
|
163
|
-
import { default as default164 } from "./modules/icons/components/
|
|
164
|
-
import { default as default165 } from "./modules/icons/components/
|
|
165
|
-
import { default as default166 } from "./modules/icons/components/
|
|
166
|
-
import { default as default167 } from "./modules/icons/components/
|
|
167
|
-
import { default as default168 } from "./modules/icons/components/
|
|
168
|
-
import { default as default169 } from "./modules/icons/components/
|
|
169
|
-
import { default as default170 } from "./modules/icons/components/
|
|
170
|
-
import { default as default171 } from "./modules/icons/components/
|
|
171
|
-
import { default as default172 } from "./modules/icons/components/
|
|
172
|
-
import { default as default173 } from "./modules/icons/components/
|
|
173
|
-
import { default as default174 } from "./modules/icons/components/
|
|
174
|
-
import { default as default175 } from "./modules/icons/components/
|
|
175
|
-
import { default as default176 } from "./modules/icons/components/
|
|
176
|
-
import { default as default177 } from "./modules/icons/components/
|
|
177
|
-
import { default as default178 } from "./modules/icons/components/
|
|
178
|
-
import { default as default179 } from "./modules/icons/components/
|
|
179
|
-
import { default as default180 } from "./modules/icons/components/
|
|
180
|
-
import { default as default181 } from "./modules/icons/components/
|
|
181
|
-
import { default as default182 } from "./modules/icons/components/
|
|
182
|
-
import { default as default183 } from "./modules/icons/components/
|
|
183
|
-
import { default as default184 } from "./modules/icons/components/
|
|
184
|
-
import { default as default185 } from "./modules/icons/components/
|
|
185
|
-
import { default as default186 } from "./modules/icons/components/
|
|
98
|
+
import { default as default99 } from "./modules/icons/components/IconParcoursCitoyen.js";
|
|
99
|
+
import { default as default100 } from "./modules/icons/components/IconParcoursSecours.js";
|
|
100
|
+
import { default as default101 } from "./modules/icons/components/IconPause.js";
|
|
101
|
+
import { default as default102 } from "./modules/icons/components/IconPinOff.js";
|
|
102
|
+
import { default as default103 } from "./modules/icons/components/IconPinOn.js";
|
|
103
|
+
import { default as default104 } from "./modules/icons/components/IconPlaceholder.js";
|
|
104
|
+
import { default as default105 } from "./modules/icons/components/IconPlayFilled.js";
|
|
105
|
+
import { default as default106 } from "./modules/icons/components/IconPlay.js";
|
|
106
|
+
import { default as default107 } from "./modules/icons/components/IconPlus.js";
|
|
107
|
+
import { default as default108 } from "./modules/icons/components/IconPointerDefault.js";
|
|
108
|
+
import { default as default109 } from "./modules/icons/components/IconPointerHand.js";
|
|
109
|
+
import { default as default110 } from "./modules/icons/components/IconPrint.js";
|
|
110
|
+
import { default as default111 } from "./modules/icons/components/IconQuestionMark.js";
|
|
111
|
+
import { default as default112 } from "./modules/icons/components/IconQuestion.js";
|
|
112
|
+
import { default as default113 } from "./modules/icons/components/IconRafterDown.js";
|
|
113
|
+
import { default as default114 } from "./modules/icons/components/IconRafterLeft.js";
|
|
114
|
+
import { default as default115 } from "./modules/icons/components/IconRafterRight.js";
|
|
115
|
+
import { default as default116 } from "./modules/icons/components/IconRafterUp.js";
|
|
116
|
+
import { default as default117 } from "./modules/icons/components/IconReaction.js";
|
|
117
|
+
import { default as default118 } from "./modules/icons/components/IconReadMail.js";
|
|
118
|
+
import { default as default119 } from "./modules/icons/components/IconRecordPause.js";
|
|
119
|
+
import { default as default120 } from "./modules/icons/components/IconRecordStop.js";
|
|
120
|
+
import { default as default121 } from "./modules/icons/components/IconRecordVideo.js";
|
|
121
|
+
import { default as default122 } from "./modules/icons/components/IconRecord.js";
|
|
122
|
+
import { default as default123 } from "./modules/icons/components/IconRedo.js";
|
|
123
|
+
import { default as default124 } from "./modules/icons/components/IconRefresh.js";
|
|
124
|
+
import { default as default125 } from "./modules/icons/components/IconReset.js";
|
|
125
|
+
import { default as default126 } from "./modules/icons/components/IconRestart.js";
|
|
126
|
+
import { default as default127 } from "./modules/icons/components/IconRestore.js";
|
|
127
|
+
import { default as default128 } from "./modules/icons/components/IconSave.js";
|
|
128
|
+
import { default as default129 } from "./modules/icons/components/IconSearch.js";
|
|
129
|
+
import { default as default130 } from "./modules/icons/components/IconSee.js";
|
|
130
|
+
import { default as default131 } from "./modules/icons/components/IconSend.js";
|
|
131
|
+
import { default as default132 } from "./modules/icons/components/IconSetBackground.js";
|
|
132
|
+
import { default as default133 } from "./modules/icons/components/IconSettings.js";
|
|
133
|
+
import { default as default134 } from "./modules/icons/components/IconShare.js";
|
|
134
|
+
import { default as default135 } from "./modules/icons/components/IconSignature.js";
|
|
135
|
+
import { default as default136 } from "./modules/icons/components/IconSmartphone.js";
|
|
136
|
+
import { default as default137 } from "./modules/icons/components/IconSmiley.js";
|
|
137
|
+
import { default as default138 } from "./modules/icons/components/IconSortAscendingLetters.js";
|
|
138
|
+
import { default as default139 } from "./modules/icons/components/IconSortDescendingLetters.js";
|
|
139
|
+
import { default as default140 } from "./modules/icons/components/IconSortDescending.js";
|
|
140
|
+
import { default as default141 } from "./modules/icons/components/IconSortTime.js";
|
|
141
|
+
import { default as default142 } from "./modules/icons/components/IconSpeechToText.js";
|
|
142
|
+
import { default as default143 } from "./modules/icons/components/IconSplitCells.js";
|
|
143
|
+
import { default as default144 } from "./modules/icons/components/IconSquareRoot.js";
|
|
144
|
+
import { default as default145 } from "./modules/icons/components/IconStarFull.js";
|
|
145
|
+
import { default as default146 } from "./modules/icons/components/IconStar.js";
|
|
146
|
+
import { default as default147 } from "./modules/icons/components/IconSubmission.js";
|
|
147
|
+
import { default as default148 } from "./modules/icons/components/IconSubmitToValidate.js";
|
|
148
|
+
import { default as default149 } from "./modules/icons/components/IconSubscript.js";
|
|
149
|
+
import { default as default150 } from "./modules/icons/components/IconSuccessFill.js";
|
|
150
|
+
import { default as default151 } from "./modules/icons/components/IconSuccessOutline.js";
|
|
151
|
+
import { default as default152 } from "./modules/icons/components/IconSuperscript.js";
|
|
152
|
+
import { default as default153 } from "./modules/icons/components/IconTable.js";
|
|
153
|
+
import { default as default154 } from "./modules/icons/components/IconTeacher.js";
|
|
154
|
+
import { default as default155 } from "./modules/icons/components/IconTextBold.js";
|
|
155
|
+
import { default as default156 } from "./modules/icons/components/IconTextColor.js";
|
|
156
|
+
import { default as default157 } from "./modules/icons/components/IconTextHighlight.js";
|
|
157
|
+
import { default as default158 } from "./modules/icons/components/IconTextItalic.js";
|
|
158
|
+
import { default as default159 } from "./modules/icons/components/IconTextPage.js";
|
|
159
|
+
import { default as default160 } from "./modules/icons/components/IconTextSize.js";
|
|
160
|
+
import { default as default161 } from "./modules/icons/components/IconTextToSpeechOff.js";
|
|
161
|
+
import { default as default162 } from "./modules/icons/components/IconTextToSpeech.js";
|
|
162
|
+
import { default as default163 } from "./modules/icons/components/IconTextTypo.js";
|
|
163
|
+
import { default as default164 } from "./modules/icons/components/IconTextUnderline.js";
|
|
164
|
+
import { default as default165 } from "./modules/icons/components/IconTextVanilla.js";
|
|
165
|
+
import { default as default166 } from "./modules/icons/components/IconThumbDown.js";
|
|
166
|
+
import { default as default167 } from "./modules/icons/components/IconThumbUp.js";
|
|
167
|
+
import { default as default168 } from "./modules/icons/components/IconToolCenter.js";
|
|
168
|
+
import { default as default169 } from "./modules/icons/components/IconTool.js";
|
|
169
|
+
import { default as default170 } from "./modules/icons/components/IconTrendingUp.js";
|
|
170
|
+
import { default as default171 } from "./modules/icons/components/IconUndoAll.js";
|
|
171
|
+
import { default as default172 } from "./modules/icons/components/IconUndoSlashed.js";
|
|
172
|
+
import { default as default173 } from "./modules/icons/components/IconUndo.js";
|
|
173
|
+
import { default as default174 } from "./modules/icons/components/IconUnion.js";
|
|
174
|
+
import { default as default175 } from "./modules/icons/components/IconUnlink.js";
|
|
175
|
+
import { default as default176 } from "./modules/icons/components/IconUnlock.js";
|
|
176
|
+
import { default as default177 } from "./modules/icons/components/IconUnreadMail.js";
|
|
177
|
+
import { default as default178 } from "./modules/icons/components/IconUpload.js";
|
|
178
|
+
import { default as default179 } from "./modules/icons/components/IconUserSearch.js";
|
|
179
|
+
import { default as default180 } from "./modules/icons/components/IconUser.js";
|
|
180
|
+
import { default as default181 } from "./modules/icons/components/IconUsers.js";
|
|
181
|
+
import { default as default182 } from "./modules/icons/components/IconVideo.js";
|
|
182
|
+
import { default as default183 } from "./modules/icons/components/IconViewCalendar.js";
|
|
183
|
+
import { default as default184 } from "./modules/icons/components/IconViewList.js";
|
|
184
|
+
import { default as default185 } from "./modules/icons/components/IconWand.js";
|
|
185
|
+
import { default as default186 } from "./modules/icons/components/IconWrite.js";
|
|
186
|
+
import { default as default187 } from "./modules/icons/components/IconZoomIn.js";
|
|
187
|
+
import { default as default188 } from "./modules/icons/components/IconZoomOut.js";
|
|
186
188
|
export {
|
|
187
189
|
default3 as IconAdd,
|
|
188
190
|
default2 as IconAddUser,
|
|
@@ -281,92 +283,94 @@ export {
|
|
|
281
283
|
default96 as IconOptions,
|
|
282
284
|
default97 as IconOrderedList,
|
|
283
285
|
default98 as IconPaperclip,
|
|
284
|
-
default99 as
|
|
285
|
-
default100 as
|
|
286
|
-
default101 as
|
|
287
|
-
default102 as
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
default107 as
|
|
293
|
-
default108 as
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
default113 as
|
|
299
|
-
default114 as
|
|
300
|
-
default115 as
|
|
301
|
-
default116 as
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
default119 as
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
default123 as
|
|
309
|
-
default124 as
|
|
310
|
-
default125 as
|
|
311
|
-
default126 as
|
|
312
|
-
default127 as
|
|
313
|
-
default128 as
|
|
314
|
-
default129 as
|
|
315
|
-
default130 as
|
|
316
|
-
default131 as
|
|
317
|
-
default132 as
|
|
318
|
-
default133 as
|
|
319
|
-
default134 as
|
|
320
|
-
default135 as
|
|
321
|
-
default136 as
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
default141 as
|
|
327
|
-
default142 as
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
default147 as
|
|
333
|
-
default148 as
|
|
334
|
-
default149 as
|
|
335
|
-
default150 as
|
|
336
|
-
default151 as
|
|
337
|
-
default152 as
|
|
338
|
-
default153 as
|
|
339
|
-
default154 as
|
|
340
|
-
default155 as
|
|
341
|
-
default156 as
|
|
342
|
-
default157 as
|
|
343
|
-
default158 as
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
default163 as
|
|
349
|
-
default164 as
|
|
350
|
-
default165 as
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
default174 as
|
|
360
|
-
default175 as
|
|
361
|
-
default176 as
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
default181 as
|
|
367
|
-
default182 as
|
|
368
|
-
default183 as
|
|
369
|
-
default184 as
|
|
370
|
-
default185 as
|
|
371
|
-
default186 as
|
|
286
|
+
default99 as IconParcoursCitoyen,
|
|
287
|
+
default100 as IconParcoursSecours,
|
|
288
|
+
default101 as IconPause,
|
|
289
|
+
default102 as IconPinOff,
|
|
290
|
+
default103 as IconPinOn,
|
|
291
|
+
default104 as IconPlaceholder,
|
|
292
|
+
default106 as IconPlay,
|
|
293
|
+
default105 as IconPlayFilled,
|
|
294
|
+
default107 as IconPlus,
|
|
295
|
+
default108 as IconPointerDefault,
|
|
296
|
+
default109 as IconPointerHand,
|
|
297
|
+
default110 as IconPrint,
|
|
298
|
+
default112 as IconQuestion,
|
|
299
|
+
default111 as IconQuestionMark,
|
|
300
|
+
default113 as IconRafterDown,
|
|
301
|
+
default114 as IconRafterLeft,
|
|
302
|
+
default115 as IconRafterRight,
|
|
303
|
+
default116 as IconRafterUp,
|
|
304
|
+
default117 as IconReaction,
|
|
305
|
+
default118 as IconReadMail,
|
|
306
|
+
default122 as IconRecord,
|
|
307
|
+
default119 as IconRecordPause,
|
|
308
|
+
default120 as IconRecordStop,
|
|
309
|
+
default121 as IconRecordVideo,
|
|
310
|
+
default123 as IconRedo,
|
|
311
|
+
default124 as IconRefresh,
|
|
312
|
+
default125 as IconReset,
|
|
313
|
+
default126 as IconRestart,
|
|
314
|
+
default127 as IconRestore,
|
|
315
|
+
default128 as IconSave,
|
|
316
|
+
default129 as IconSearch,
|
|
317
|
+
default130 as IconSee,
|
|
318
|
+
default131 as IconSend,
|
|
319
|
+
default132 as IconSetBackground,
|
|
320
|
+
default133 as IconSettings,
|
|
321
|
+
default134 as IconShare,
|
|
322
|
+
default135 as IconSignature,
|
|
323
|
+
default136 as IconSmartphone,
|
|
324
|
+
default137 as IconSmiley,
|
|
325
|
+
default138 as IconSortAscendingLetters,
|
|
326
|
+
default140 as IconSortDescending,
|
|
327
|
+
default139 as IconSortDescendingLetters,
|
|
328
|
+
default141 as IconSortTime,
|
|
329
|
+
default142 as IconSpeechToText,
|
|
330
|
+
default143 as IconSplitCells,
|
|
331
|
+
default144 as IconSquareRoot,
|
|
332
|
+
default146 as IconStar,
|
|
333
|
+
default145 as IconStarFull,
|
|
334
|
+
default147 as IconSubmission,
|
|
335
|
+
default148 as IconSubmitToValidate,
|
|
336
|
+
default149 as IconSubscript,
|
|
337
|
+
default150 as IconSuccessFill,
|
|
338
|
+
default151 as IconSuccessOutline,
|
|
339
|
+
default152 as IconSuperscript,
|
|
340
|
+
default153 as IconTable,
|
|
341
|
+
default154 as IconTeacher,
|
|
342
|
+
default155 as IconTextBold,
|
|
343
|
+
default156 as IconTextColor,
|
|
344
|
+
default157 as IconTextHighlight,
|
|
345
|
+
default158 as IconTextItalic,
|
|
346
|
+
default159 as IconTextPage,
|
|
347
|
+
default160 as IconTextSize,
|
|
348
|
+
default162 as IconTextToSpeech,
|
|
349
|
+
default161 as IconTextToSpeechOff,
|
|
350
|
+
default163 as IconTextTypo,
|
|
351
|
+
default164 as IconTextUnderline,
|
|
352
|
+
default165 as IconTextVanilla,
|
|
353
|
+
default166 as IconThumbDown,
|
|
354
|
+
default167 as IconThumbUp,
|
|
355
|
+
default169 as IconTool,
|
|
356
|
+
default168 as IconToolCenter,
|
|
357
|
+
default170 as IconTrendingUp,
|
|
358
|
+
default173 as IconUndo,
|
|
359
|
+
default171 as IconUndoAll,
|
|
360
|
+
default172 as IconUndoSlashed,
|
|
361
|
+
default174 as IconUnion,
|
|
362
|
+
default175 as IconUnlink,
|
|
363
|
+
default176 as IconUnlock,
|
|
364
|
+
default177 as IconUnreadMail,
|
|
365
|
+
default178 as IconUpload,
|
|
366
|
+
default180 as IconUser,
|
|
367
|
+
default179 as IconUserSearch,
|
|
368
|
+
default181 as IconUsers,
|
|
369
|
+
default182 as IconVideo,
|
|
370
|
+
default183 as IconViewCalendar,
|
|
371
|
+
default184 as IconViewList,
|
|
372
|
+
default185 as IconWand,
|
|
373
|
+
default186 as IconWrite,
|
|
374
|
+
default187 as IconZoomIn,
|
|
375
|
+
default188 as IconZoomOut
|
|
372
376
|
};
|
package/dist/index.js
CHANGED
|
@@ -133,6 +133,8 @@ import { Toolbar } from "./components/Toolbar/Toolbar.js";
|
|
|
133
133
|
import { TreeNode } from "./components/TreeView/TreeNode.js";
|
|
134
134
|
import { TreeNodeFolderWrapper, addNode, arrayUnique, deleteNode, findNodeById, findParentNode, findPathById, findTreeNode, getAncestors, hasChildren, modifyNode, moveNode, updateNode, wrapTreeNode } from "./components/TreeView/utilities/treeview.js";
|
|
135
135
|
import { Upload } from "./modules/multimedia/MediaLibrary/innertabs/Upload.js";
|
|
136
|
+
import { UserSearch } from "./components/UserSearch/UserSearch.js";
|
|
137
|
+
import { VisibleType } from "./components/UserSearch/types/visible.js";
|
|
136
138
|
import { buildTree, determineNewParentId, findItemIndexInTree, flattenNodes, flattenTree, generateUpdateData, getActiveAndOverNodes, getDragDepth, getIndicesToUpdate, getProjection, updateParentIds } from "./components/Tree/utilities/tree-sortable.js";
|
|
137
139
|
import { checkUserRight } from "./utilities/check-user-rights/check-user-rights.js";
|
|
138
140
|
import { emptyScreenMapping } from "./utilities/emptyscreen-mapping/emptyscreen-mapping.js";
|
|
@@ -141,6 +143,7 @@ import { mergeRefs, setRef } from "./utilities/refs/ref.js";
|
|
|
141
143
|
import { useCheckable } from "./hooks/useCheckable/useCheckable.js";
|
|
142
144
|
import { useEdificeClient } from "./providers/EdificeClientProvider/EdificeClientProvider.hook.js";
|
|
143
145
|
import { useEdificeTheme } from "./providers/EdificeThemeProvider/EdificeThemeProvider.hook.js";
|
|
146
|
+
import { useFileToAttachment } from "./components/AddAttachments/hooks/useFileToAttachment.js";
|
|
144
147
|
import { useTreeSortable } from "./components/Tree/hooks/useTreeSortable.js";
|
|
145
148
|
import { useTreeView } from "./components/TreeView/hooks/useTreeView.js";
|
|
146
149
|
export {
|
|
@@ -240,8 +243,10 @@ export {
|
|
|
240
243
|
Upload,
|
|
241
244
|
default67 as UploadCard,
|
|
242
245
|
default68 as UploadFiles,
|
|
246
|
+
UserSearch,
|
|
243
247
|
default69 as VideoEmbed,
|
|
244
248
|
default70 as VideoRecorder,
|
|
249
|
+
VisibleType,
|
|
245
250
|
default71 as VisuallyHidden,
|
|
246
251
|
WORKSPACE_SHARED_FOLDER_ID,
|
|
247
252
|
WORKSPACE_USER_FOLDER_ID,
|
|
@@ -291,6 +296,7 @@ export {
|
|
|
291
296
|
useEdificeClient,
|
|
292
297
|
default85 as useEdificeIcons,
|
|
293
298
|
useEdificeTheme,
|
|
299
|
+
useFileToAttachment,
|
|
294
300
|
default86 as useHasWorkflow,
|
|
295
301
|
default87 as useHover,
|
|
296
302
|
default88 as useHttpErrorToast,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconParcoursCitoyen: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconParcoursCitoyen;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconParcoursCitoyen = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "#383838", d: "M10.681 20.838a6.15 6.15 0 0 1 6.149-6.148q.058 0 .114.007a6.15 6.15 0 0 1 6.035 6.145v.248a2.473 2.473 0 0 1-2.47 2.47H11.68a1 1 0 0 1-1-1zm2 .722h7.827c.258 0 .47-.212.471-.47v-.248a4.15 4.15 0 0 0-4.15-4.148l-.051-.003a4.15 4.15 0 0 0-4.097 4.147zM18.81 9.627a2.124 2.124 0 1 0-4.247-.001 2.124 2.124 0 0 0 4.248 0m2 0a4.123 4.123 0 1 1-8.245 0 4.123 4.123 0 0 1 8.246 0" }),
|
|
9
|
+
/* @__PURE__ */ jsx("path", { fill: "#383838", d: "M2.127 21.132a5.276 5.276 0 0 1 7.034-4.975 1 1 0 0 1-.666 1.886 3.276 3.276 0 0 0-4.367 3.089c0 .235.193.428.428.428h7.125a1 1 0 0 1 0 2H4.556a2.43 2.43 0 0 1-2.429-2.428M8.62 11.445a1.408 1.408 0 1 0-2.817.001 1.408 1.408 0 0 0 2.816-.001m2 0a3.409 3.409 0 1 1-6.818-.001 3.409 3.409 0 0 1 6.817 0M12.53 17.006V5.831a1 1 0 1 1 2 0v11.175l-.005.103a1 1 0 0 1-1.99 0z" }),
|
|
10
|
+
/* @__PURE__ */ jsx("path", { fill: "#383838", d: "M13.533.2a1 1 0 0 1 1 1v4.294a1 1 0 0 1-1 1H7.121a1 1 0 0 1-1-1V3.21C6.121 1.53 7.501.2 9.17.2zM8.121 4.494h4.412V2.2H9.17c-.597 0-1.048.469-1.048 1.01z" })
|
|
11
|
+
] });
|
|
12
|
+
export {
|
|
13
|
+
SvgIconParcoursCitoyen as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
interface SVGRProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
titleId?: string;
|
|
5
|
+
}
|
|
6
|
+
declare const SvgIconParcoursSecours: ({ title, titleId, ...props }: SVGProps<SVGSVGElement> & SVGRProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default SvgIconParcoursSecours;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
const SvgIconParcoursSecours = ({
|
|
3
|
+
title,
|
|
4
|
+
titleId,
|
|
5
|
+
...props
|
|
6
|
+
}) => /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", "aria-hidden": "true", "aria-labelledby": titleId, ...props, children: [
|
|
7
|
+
title ? /* @__PURE__ */ jsx("title", { id: titleId, children: title }) : null,
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "#383838", d: "M21.132 7.766a.616.616 0 0 0-.616-.616H3.859a.616.616 0 0 0-.616.616v13.237c0 .34.275.617.616.617h16.657c.34 0 .616-.276.616-.617zm2 13.237a2.616 2.616 0 0 1-2.616 2.617H3.859a2.616 2.616 0 0 1-2.616-2.617V7.766A2.616 2.616 0 0 1 3.859 5.15h16.657a2.616 2.616 0 0 1 2.616 2.616z" }),
|
|
9
|
+
/* @__PURE__ */ jsx("path", { fill: "#383838", d: "M12.746.548c2.883.047 5.465 1.936 6.39 4.716a1 1 0 0 1-1.897.632c-.659-1.98-2.497-3.314-4.526-3.348h-.197c-2.021.05-3.827 1.387-4.48 3.348a1 1 0 0 1-1.898-.632C7.053 2.514 9.591.62 12.466.549zM11.184 18.026V10.74a1 1 0 1 1 2 0v7.286a1 1 0 1 1-2 0" }),
|
|
10
|
+
/* @__PURE__ */ jsx("path", { fill: "#383838", d: "m15.829 13.381.102.005a1 1 0 0 1 0 1.99l-.102.005H8.542a1 1 0 1 1 0-2z" })
|
|
11
|
+
] });
|
|
12
|
+
export {
|
|
13
|
+
SvgIconParcoursSecours as default
|
|
14
|
+
};
|
|
@@ -95,6 +95,8 @@ export { default as IconNotification } from './IconNotification';
|
|
|
95
95
|
export { default as IconOptions } from './IconOptions';
|
|
96
96
|
export { default as IconOrderedList } from './IconOrderedList';
|
|
97
97
|
export { default as IconPaperclip } from './IconPaperclip';
|
|
98
|
+
export { default as IconParcoursCitoyen } from './IconParcoursCitoyen';
|
|
99
|
+
export { default as IconParcoursSecours } from './IconParcoursSecours';
|
|
98
100
|
export { default as IconPause } from './IconPause';
|
|
99
101
|
export { default as IconPinOff } from './IconPinOff';
|
|
100
102
|
export { default as IconPinOn } from './IconPinOn';
|
|
@@ -32,8 +32,10 @@ export interface InternalLinkerProps {
|
|
|
32
32
|
applicationList?: ApplicationOption[];
|
|
33
33
|
/** Whether to show the application selector */
|
|
34
34
|
showApplicationSelector?: boolean;
|
|
35
|
+
/** Disable application selecetor */
|
|
36
|
+
disableApplicationSelector?: boolean;
|
|
35
37
|
/** Optional callback to filter resources after loading. Applied in addition to search filters. */
|
|
36
38
|
resourceFilter?: (resource: ILinkedResource) => boolean;
|
|
37
39
|
}
|
|
38
|
-
export declare const InternalLinker: ({ appCode, defaultAppCode, defaultResourceId, onChange, onSelect, multiple, resourceList, applicationList, showApplicationSelector, resourceFilter, }: InternalLinkerProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare const InternalLinker: ({ appCode, defaultAppCode, defaultResourceId, onChange, onSelect, multiple, resourceList, applicationList, showApplicationSelector, disableApplicationSelector, resourceFilter, }: InternalLinkerProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
41
|
export default InternalLinker;
|
|
@@ -22,6 +22,7 @@ const InternalLinker = ({
|
|
|
22
22
|
resourceList,
|
|
23
23
|
applicationList,
|
|
24
24
|
showApplicationSelector = !0,
|
|
25
|
+
disableApplicationSelector = !1,
|
|
25
26
|
resourceFilter
|
|
26
27
|
}) => {
|
|
27
28
|
const {
|
|
@@ -114,7 +115,7 @@ const InternalLinker = ({
|
|
|
114
115
|
/* @__PURE__ */ jsx(Dropdown.Trigger, { icon: /* @__PURE__ */ jsx("div", { className: "pe-8", children: (selectedApplication == null ? void 0 : selectedApplication.icon) || /* @__PURE__ */ jsx(SvgIconApplications, {}) }), label: /* @__PURE__ */ jsxs("span", { className: "d-md-inline d-sm-none", children: [
|
|
115
116
|
" ",
|
|
116
117
|
t((selectedApplication == null ? void 0 : selectedApplication.displayName) || "bbm.linker.int.choose")
|
|
117
|
-
] }), variant: "ghost", size: "md" }),
|
|
118
|
+
] }), variant: "ghost", size: "md", disabled: disableApplicationSelector }),
|
|
118
119
|
/* @__PURE__ */ jsx(Dropdown.Menu, { children: options == null ? void 0 : options.map((option) => /* @__PURE__ */ jsx(Dropdown.Item, { icon: option.icon, onClick: () => handleOptionClick(option), children: option.displayName }, option.application)) })
|
|
119
120
|
] }) }),
|
|
120
121
|
/* @__PURE__ */ jsx("div", { className: "flex-grow-1 align-self-center", children: /* @__PURE__ */ jsx("form", { className: "gap-16 d-flex w-100 align-items-center px-16 py-8", onSubmit: handleSubmit, children: /* @__PURE__ */ jsx(SearchBar, { isVariant: !0, placeholder: t("search"), size: "lg", className: "w-100", disabled: !selectedApplication, onChange: handleSearchChange }) }) })
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@edifice.io/react",
|
|
3
|
-
"version": "2.5.15-develop-
|
|
3
|
+
"version": "2.5.15-develop-pedago.20260324175543",
|
|
4
4
|
"description": "Edifice React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"clsx": "^2.1.1",
|
|
124
124
|
"dayjs": "1.11.19",
|
|
125
125
|
"emoji-picker-react": "4.5.2",
|
|
126
|
-
"
|
|
126
|
+
"heic-to": "1.4.2",
|
|
127
127
|
"html-react-parser": "4.2.1",
|
|
128
128
|
"ohash": "1.1.3",
|
|
129
129
|
"pako": "2.1.0",
|
|
@@ -135,9 +135,9 @@
|
|
|
135
135
|
"swiper": "^10.1.0",
|
|
136
136
|
"ua-parser-js": "^1.0.36",
|
|
137
137
|
"react-pdf": "10.2.0",
|
|
138
|
-
"@edifice.io/bootstrap": "2.5.15-develop-
|
|
139
|
-
"@edifice.io/
|
|
140
|
-
"@edifice.io/
|
|
138
|
+
"@edifice.io/bootstrap": "2.5.15-develop-pedago.20260324175543",
|
|
139
|
+
"@edifice.io/tiptap-extensions": "2.5.15-develop-pedago.20260324175543",
|
|
140
|
+
"@edifice.io/utilities": "2.5.15-develop-pedago.20260324175543"
|
|
141
141
|
},
|
|
142
142
|
"devDependencies": {
|
|
143
143
|
"@babel/plugin-transform-react-pure-annotations": "^7.23.3",
|
|
@@ -168,8 +168,8 @@
|
|
|
168
168
|
"vite": "^5.4.11",
|
|
169
169
|
"vite-plugin-dts": "^4.1.0",
|
|
170
170
|
"vite-tsconfig-paths": "^5.0.1",
|
|
171
|
-
"@edifice.io/
|
|
172
|
-
"@edifice.io/
|
|
171
|
+
"@edifice.io/client": "2.5.15-develop-pedago.20260324175543",
|
|
172
|
+
"@edifice.io/config": "2.5.15-develop-pedago.20260324175543"
|
|
173
173
|
},
|
|
174
174
|
"peerDependencies": {
|
|
175
175
|
"@react-spring/web": "^9.7.5",
|