@edifice.io/react 2.5.5 → 2.5.6-develop.20260116103750
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/_virtual/_commonjsHelpers.js +8 -0
- package/dist/_virtual/common.js +4 -0
- package/dist/_virtual/de_DE.js +4 -0
- package/dist/_virtual/de_DE2.js +4 -0
- package/dist/_virtual/de_DE3.js +4 -0
- package/dist/_virtual/de_DE4.js +4 -0
- package/dist/_virtual/de_DE5.js +4 -0
- package/dist/_virtual/de_DE6.js +4 -0
- package/dist/_virtual/defineProperty.js +4 -0
- package/dist/_virtual/es_ES.js +4 -0
- package/dist/_virtual/es_ES2.js +4 -0
- package/dist/_virtual/es_ES3.js +4 -0
- package/dist/_virtual/es_ES4.js +4 -0
- package/dist/_virtual/es_ES5.js +4 -0
- package/dist/_virtual/es_ES6.js +4 -0
- package/dist/_virtual/fr_FR.js +4 -0
- package/dist/_virtual/fr_FR2.js +4 -0
- package/dist/_virtual/fr_FR3.js +4 -0
- package/dist/_virtual/fr_FR4.js +4 -0
- package/dist/_virtual/fr_FR5.js +4 -0
- package/dist/_virtual/fr_FR6.js +4 -0
- package/dist/_virtual/interopRequireDefault.js +4 -0
- package/dist/_virtual/it_IT.js +4 -0
- package/dist/_virtual/it_IT2.js +4 -0
- package/dist/_virtual/it_IT3.js +4 -0
- package/dist/_virtual/it_IT4.js +4 -0
- package/dist/_virtual/it_IT5.js +4 -0
- package/dist/_virtual/it_IT6.js +4 -0
- package/dist/_virtual/localeData.js +4 -0
- package/dist/_virtual/objectSpread2.js +4 -0
- package/dist/_virtual/pt_PT.js +4 -0
- package/dist/_virtual/pt_PT2.js +4 -0
- package/dist/_virtual/pt_PT3.js +4 -0
- package/dist/_virtual/pt_PT4.js +4 -0
- package/dist/_virtual/pt_PT5.js +4 -0
- package/dist/_virtual/pt_PT6.js +4 -0
- package/dist/_virtual/toPrimitive.js +4 -0
- package/dist/_virtual/toPropertyKey.js +4 -0
- package/dist/_virtual/typeof.js +4 -0
- package/dist/_virtual/weekday.js +4 -0
- package/dist/components/AppIcon/index.d.ts +1 -0
- package/dist/components/Badge/Badge.d.ts +12 -1
- package/dist/components/Badge/Badge.js +15 -2
- package/dist/components/Combobox/Combobox.js +1 -1
- package/dist/components/Combobox/ComboboxTrigger.js +1 -1
- package/dist/components/DatePicker/DatePicker.js +35 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/Divider/Divider.d.ts +38 -0
- package/dist/components/Divider/Divider.js +11 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Flex/Flex.js +1 -1
- package/dist/components/Layout/components/Header.js +6 -1
- package/dist/components/Menu/components/MenuButton.d.ts +2 -0
- package/dist/components/Menu/components/MenuButton.js +13 -4
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +59 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +24 -0
- package/dist/components/SegmentedControl/index.d.ts +2 -0
- package/dist/components/Select/Select.d.ts +6 -2
- package/dist/components/Select/Select.js +10 -4
- package/dist/components/index.d.ts +3 -0
- package/dist/editor.js +40 -36
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useDropzone/useDropzone.d.ts +2 -2
- package/dist/hooks/useDropzone/useDropzone.js +20 -5
- package/dist/hooks/useInfiniteScroll/index.d.ts +1 -0
- package/dist/hooks/useInfiniteScroll/useInfiniteScroll.d.ts +33 -0
- package/dist/hooks/useInfiniteScroll/useInfiniteScroll.js +20 -0
- package/dist/icons.js +302 -298
- package/dist/index.js +188 -170
- package/dist/modals.js +8 -6
- package/dist/modules/comments/components/Comment.js +4 -2
- package/dist/modules/comments/components/CommentList.js +1 -1
- package/dist/modules/comments/components/DeleteModal.js +14 -8
- package/dist/modules/editor/components/Editor/Editor.js +1 -1
- package/dist/modules/editor/components/Editor/EditorPreview.d.ts +14 -0
- package/dist/modules/editor/components/Editor/EditorPreview.js +56 -0
- package/dist/modules/editor/components/Editor/EditorPreviewSkeleton.d.ts +8 -0
- package/dist/modules/editor/components/Editor/EditorPreviewSkeleton.js +24 -0
- package/dist/modules/editor/components/Editor/index.d.ts +2 -0
- package/dist/modules/editor/components/Renderer/AttachmentRenderer.js +2 -2
- package/dist/modules/editor/hooks/useMediaLibraryEditor.js +4 -3
- package/dist/modules/icons/components/IconClockAlert.d.ts +7 -0
- package/dist/modules/icons/components/IconClockAlert.js +17 -0
- package/dist/modules/icons/components/IconSubmitToValidate.d.ts +7 -0
- package/dist/modules/icons/components/IconSubmitToValidate.js +12 -0
- package/dist/modules/icons/components/index.d.ts +2 -0
- package/dist/modules/modals/ShareModal/ShareBookmark.d.ts +1 -1
- package/dist/modules/modals/ShareModal/ShareBookmark.js +6 -3
- package/dist/modules/modals/ShareModal/ShareBookmarkLine.js +4 -4
- package/dist/modules/modals/ShareModal/ShareModal.d.ts +1 -11
- package/dist/modules/modals/ShareModal/ShareModal.js +13 -105
- package/dist/modules/modals/ShareModal/ShareResources.d.ts +187 -0
- package/dist/modules/modals/ShareModal/ShareResources.js +145 -0
- package/dist/modules/modals/ShareModal/hooks/useSearch.d.ts +5 -3
- package/dist/modules/modals/ShareModal/hooks/useSearch.js +12 -16
- package/dist/modules/modals/ShareModal/hooks/useShare.d.ts +12 -5
- package/dist/modules/modals/ShareModal/hooks/useShare.js +20 -13
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.d.ts +1 -1
- package/dist/modules/modals/ShareModal/hooks/useShareBookmark.js +1 -1
- package/dist/modules/modals/ShareModal/index.d.ts +3 -1
- package/dist/modules/multimedia/MediaLibrary/index.d.ts +2 -0
- package/dist/modules/multimedia/MediaLibrary/innertabs/Upload.js +1 -1
- package/dist/modules/multimedia/index.d.ts +1 -0
- package/dist/multimedia.js +14 -8
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/defineProperty.js +18 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js +13 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/objectSpread2.js +31 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPrimitive.js +20 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/toPropertyKey.js +15 -0
- package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/typeof.js +16 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/de_DE.js +11 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/es_ES.js +11 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/fr_FR.js +11 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/it_IT.js +11 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/calendar/locale/pt_PT.js +11 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/de_DE.js +22 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/es_ES.js +22 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/fr_FR.js +27 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/it_IT.js +20 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/date-picker/locale/pt_PT.js +45 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/de_DE.js +145 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/es_ES.js +145 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/fr_FR.js +144 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/it_IT.js +156 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/locale/pt_PT.js +158 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/de_DE.js +10 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/es_ES.js +10 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/fr_FR.js +10 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/it_IT.js +10 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/lib/time-picker/locale/pt_PT.js +10 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/de_DE.js +8 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/es_ES.js +8 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/fr_FR.js +8 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/it_IT.js +8 -0
- package/dist/node_modules/.pnpm/antd@5.29.3_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/locale/pt_PT.js +8 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/localeData.js +82 -0
- package/dist/node_modules/.pnpm/dayjs@1.11.19/node_modules/dayjs/plugin/weekday.js +19 -0
- package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/de_DE.js +21 -0
- package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/es_ES.js +21 -0
- package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/fr_FR.js +21 -0
- package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/it_IT.js +21 -0
- package/dist/node_modules/.pnpm/rc-pagination@5.1.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-pagination/lib/locale/pt_PT.js +21 -0
- package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/common.js +14 -0
- package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/de_DE.js +37 -0
- package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/es_ES.js +37 -0
- package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/fr_FR.js +38 -0
- package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/it_IT.js +37 -0
- package/dist/node_modules/.pnpm/rc-picker@4.11.3_dayjs@1.11.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/rc-picker/lib/locale/pt_PT.js +39 -0
- package/dist/providers/AntThemeProvider/AntProvider.d.ts +2 -2
- package/dist/providers/AntThemeProvider/AntProvider.js +19 -2
- package/dist/style.css +1 -1
- package/dist/utilities/index.d.ts +1 -0
- package/dist/utilities/react-query/index.d.ts +1 -0
- package/dist/utilities/react-query/react-query-utils.d.ts +21 -0
- package/dist/utilities/react-query/react-query-utils.js +13 -0
- package/package.json +8 -7
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef, useState, useImperativeHandle, useEffect } from "react";
|
|
3
|
+
import { useTranslation } from "react-i18next";
|
|
4
|
+
import SvgIconBookmark from "../../icons/components/IconBookmark.js";
|
|
5
|
+
import SvgIconInfoCircle from "../../icons/components/IconInfoCircle.js";
|
|
6
|
+
import SvgIconRafterDown from "../../icons/components/IconRafterDown.js";
|
|
7
|
+
import { ShareBookmark } from "./ShareBookmark.js";
|
|
8
|
+
import { ShareBookmarkLine } from "./ShareBookmarkLine.js";
|
|
9
|
+
import { useSearch } from "./hooks/useSearch.js";
|
|
10
|
+
import useShare from "./hooks/useShare.js";
|
|
11
|
+
import { useShareBookmark } from "./hooks/useShareBookmark.js";
|
|
12
|
+
import Heading from "../../../components/Heading/Heading.js";
|
|
13
|
+
import Tooltip from "../../../components/Tooltip/Tooltip.js";
|
|
14
|
+
import Combobox from "../../../components/Combobox/Combobox.js";
|
|
15
|
+
import LoadingScreen from "../../../components/LoadingScreen/LoadingScreen.js";
|
|
16
|
+
import VisuallyHidden from "../../../components/VisuallyHidden/VisuallyHidden.js";
|
|
17
|
+
import Avatar from "../../../components/Avatar/Avatar.js";
|
|
18
|
+
import Checkbox from "../../../components/Checkbox/Checkbox.js";
|
|
19
|
+
import Button from "../../../components/Button/Button.js";
|
|
20
|
+
const ShareResources = /* @__PURE__ */ forwardRef(({
|
|
21
|
+
shareOptions,
|
|
22
|
+
shareResource,
|
|
23
|
+
onSuccess = () => {
|
|
24
|
+
},
|
|
25
|
+
onChange = () => {
|
|
26
|
+
},
|
|
27
|
+
onSubmit = () => {
|
|
28
|
+
},
|
|
29
|
+
classNameSearchInput = "col-6"
|
|
30
|
+
}, ref) => {
|
|
31
|
+
const {
|
|
32
|
+
resourceId,
|
|
33
|
+
resourceCreatorId,
|
|
34
|
+
resourceRights,
|
|
35
|
+
filteredActions,
|
|
36
|
+
shareUrls,
|
|
37
|
+
defaultActions = [{
|
|
38
|
+
id: "read",
|
|
39
|
+
displayName: "read"
|
|
40
|
+
}, {
|
|
41
|
+
id: "comment",
|
|
42
|
+
displayName: "comment"
|
|
43
|
+
}]
|
|
44
|
+
} = shareOptions, [isLoading, setIsLoading] = useState(!0), [isSavingBookmark, setIsSavingBookmark] = useState(!1), {
|
|
45
|
+
state: {
|
|
46
|
+
isSharing,
|
|
47
|
+
shareRights,
|
|
48
|
+
shareRightActions
|
|
49
|
+
},
|
|
50
|
+
dispatch: shareDispatch,
|
|
51
|
+
myAvatar,
|
|
52
|
+
currentIsAuthor,
|
|
53
|
+
toggleRight,
|
|
54
|
+
handleShare,
|
|
55
|
+
handleDeleteRow,
|
|
56
|
+
isDirty
|
|
57
|
+
} = useShare({
|
|
58
|
+
resourceId,
|
|
59
|
+
resourceCreatorId,
|
|
60
|
+
resourceRights,
|
|
61
|
+
shareResource,
|
|
62
|
+
setIsLoading,
|
|
63
|
+
onSuccess,
|
|
64
|
+
filteredActions,
|
|
65
|
+
shareUrls
|
|
66
|
+
}), {
|
|
67
|
+
state: {
|
|
68
|
+
searchResults,
|
|
69
|
+
searchInputValue
|
|
70
|
+
},
|
|
71
|
+
showSearchAdmlHint,
|
|
72
|
+
showSearchLoading,
|
|
73
|
+
showSearchNoResults,
|
|
74
|
+
getSearchMinLength,
|
|
75
|
+
handleSearchInputChange,
|
|
76
|
+
handleSearchResultsChange
|
|
77
|
+
} = useSearch({
|
|
78
|
+
resourceId,
|
|
79
|
+
resourceCreatorId,
|
|
80
|
+
shareRights,
|
|
81
|
+
shareDispatch,
|
|
82
|
+
urlResourceRights: shareUrls == null ? void 0 : shareUrls.getResourceRights,
|
|
83
|
+
defaultActions
|
|
84
|
+
}), {
|
|
85
|
+
refBookmark,
|
|
86
|
+
showBookmark,
|
|
87
|
+
handleBookmarkChange,
|
|
88
|
+
toggleBookmark,
|
|
89
|
+
bookmark,
|
|
90
|
+
handleOnSave,
|
|
91
|
+
showBookmarkInput,
|
|
92
|
+
toggleBookmarkInput
|
|
93
|
+
} = useShareBookmark({
|
|
94
|
+
shareRights,
|
|
95
|
+
shareDispatch
|
|
96
|
+
}), handleOnSaveBookmark = () => (setIsSavingBookmark(!0), handleOnSave().then(() => {
|
|
97
|
+
setIsSavingBookmark(!1);
|
|
98
|
+
}));
|
|
99
|
+
useImperativeHandle(ref, () => ({
|
|
100
|
+
handleShare
|
|
101
|
+
}), [handleShare]), useEffect(() => {
|
|
102
|
+
onChange(shareRights.rights, isDirty);
|
|
103
|
+
}, [isDirty, shareRights.rights, onChange]), useEffect(() => {
|
|
104
|
+
onSubmit(isSavingBookmark || isSharing);
|
|
105
|
+
}, [isSavingBookmark, isSharing, onSubmit]);
|
|
106
|
+
const {
|
|
107
|
+
t
|
|
108
|
+
} = useTranslation(), searchPlaceholder = showSearchAdmlHint() ? t("explorer.search.adml.hint") : t("explorer.modal.share.search.placeholder");
|
|
109
|
+
return /* @__PURE__ */ jsxs("div", { children: [
|
|
110
|
+
/* @__PURE__ */ jsxs(Heading, { headingStyle: "h4", level: "h3", className: "mb-16 d-flex align-items-center", children: [
|
|
111
|
+
/* @__PURE__ */ jsx("div", { className: "me-8", children: t("explorer.modal.share.search") }),
|
|
112
|
+
/* @__PURE__ */ jsx(Tooltip, { message: "Vos favoris de partage s’affichent en priorité dans votre liste lorsque vous recherchez un groupe ou une personne, vous pouvez les retrouver dans l’annuaire.", placement: "top", children: /* @__PURE__ */ jsx(SvgIconInfoCircle, { className: "c-pointer", height: "18" }) })
|
|
113
|
+
] }),
|
|
114
|
+
/* @__PURE__ */ jsx("div", { className: "row mb-16", children: /* @__PURE__ */ jsx("div", { className: classNameSearchInput, children: /* @__PURE__ */ jsx(Combobox, { value: searchInputValue, placeholder: searchPlaceholder, isLoading: showSearchLoading(), noResult: showSearchNoResults(), options: searchResults, searchMinLength: getSearchMinLength(), onSearchInputChange: handleSearchInputChange, onSearchResultsChange: handleSearchResultsChange }) }) }),
|
|
115
|
+
/* @__PURE__ */ jsx("div", { className: "table-responsive", children: isLoading ? /* @__PURE__ */ jsx(LoadingScreen, {}) : /* @__PURE__ */ jsxs("table", { className: "table border align-middle mb-0 rounded-3", children: [
|
|
116
|
+
/* @__PURE__ */ jsx("thead", { className: "bg-blue-200", children: /* @__PURE__ */ jsxs("tr", { children: [
|
|
117
|
+
/* @__PURE__ */ jsx("th", { scope: "col", className: "w-32", children: /* @__PURE__ */ jsx(VisuallyHidden, { children: t("explorer.modal.share.avatar.shared.alt") }) }),
|
|
118
|
+
/* @__PURE__ */ jsx("th", { scope: "col", children: /* @__PURE__ */ jsx(VisuallyHidden, { children: t("explorer.modal.share.search.placeholder") }) }),
|
|
119
|
+
shareRightActions.map((shareRightAction) => /* @__PURE__ */ jsx("th", { scope: "col", className: "text-center text-gray-800", children: t(shareRightAction.displayName) }, shareRightAction.displayName)),
|
|
120
|
+
/* @__PURE__ */ jsx("th", { scope: "col", children: /* @__PURE__ */ jsx(VisuallyHidden, { children: t("close") }) })
|
|
121
|
+
] }) }),
|
|
122
|
+
/* @__PURE__ */ jsxs("tbody", { children: [
|
|
123
|
+
currentIsAuthor() && /* @__PURE__ */ jsxs("tr", { children: [
|
|
124
|
+
/* @__PURE__ */ jsx("th", { scope: "row", children: /* @__PURE__ */ jsx(Avatar, { alt: t("explorer.modal.share.avatar.me.alt"), size: "xs", src: myAvatar, variant: "circle" }) }),
|
|
125
|
+
/* @__PURE__ */ jsx("td", { children: t("share.me") }),
|
|
126
|
+
shareRightActions.map((shareRightAction) => /* @__PURE__ */ jsx("td", { style: {
|
|
127
|
+
width: "80px"
|
|
128
|
+
}, className: "text-center text-white", children: /* @__PURE__ */ jsx(Checkbox, { checked: !0, disabled: !0 }) }, shareRightAction.displayName)),
|
|
129
|
+
/* @__PURE__ */ jsx("td", {})
|
|
130
|
+
] }),
|
|
131
|
+
/* @__PURE__ */ jsx(ShareBookmarkLine, { showBookmark, shareRightActions, shareRights, onDeleteRow: handleDeleteRow, toggleRight, toggleBookmark })
|
|
132
|
+
] })
|
|
133
|
+
] }) }),
|
|
134
|
+
/* @__PURE__ */ jsxs("div", { className: "mt-16", children: [
|
|
135
|
+
/* @__PURE__ */ jsx(Button, { "data-testid": "share-bookmark-show-button", color: "tertiary", leftIcon: /* @__PURE__ */ jsx(SvgIconBookmark, {}), rightIcon: /* @__PURE__ */ jsx(SvgIconRafterDown, { title: t("show"), className: "w-16 min-w-0", style: {
|
|
136
|
+
transition: "rotate 0.2s ease-out",
|
|
137
|
+
rotate: showBookmarkInput ? "-180deg" : "0deg"
|
|
138
|
+
} }), type: "button", variant: "ghost", className: "fw-normal", onClick: () => toggleBookmarkInput(!showBookmarkInput), children: t("share.save.sharebookmark") }),
|
|
139
|
+
showBookmarkInput && /* @__PURE__ */ jsx(ShareBookmark, { refBookmark, bookmark, onBookmarkChange: handleBookmarkChange, onSave: handleOnSaveBookmark })
|
|
140
|
+
] })
|
|
141
|
+
] });
|
|
142
|
+
});
|
|
143
|
+
export {
|
|
144
|
+
ShareResources as default
|
|
145
|
+
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { ChangeEvent, Dispatch } from 'react';
|
|
2
|
-
import { ShareRightWithVisibles, ShareSubject } from '@edifice.io/client';
|
|
2
|
+
import { ShareRightAction, ShareRightWithVisibles, ShareSubject } from '@edifice.io/client';
|
|
3
3
|
import { OptionListItemType } from '../../../../components';
|
|
4
|
-
import { ShareOptions } from '../
|
|
4
|
+
import { ShareOptions } from '../ShareResources';
|
|
5
5
|
import { ShareAction } from './useShare';
|
|
6
|
-
export declare const useSearch: ({ resourceId, resourceCreatorId, shareRights, shareDispatch, }: {
|
|
6
|
+
export declare const useSearch: ({ resourceId, resourceCreatorId, shareRights, shareDispatch, urlResourceRights, defaultActions, }: {
|
|
7
7
|
resourceId: ShareOptions["resourceCreatorId"];
|
|
8
8
|
resourceCreatorId: ShareOptions["resourceCreatorId"];
|
|
9
9
|
shareRights: ShareRightWithVisibles;
|
|
10
10
|
shareDispatch: Dispatch<ShareAction>;
|
|
11
|
+
urlResourceRights?: string;
|
|
12
|
+
defaultActions?: ShareRightAction[];
|
|
11
13
|
}) => {
|
|
12
14
|
state: {
|
|
13
15
|
searchInputValue: string;
|
|
@@ -48,17 +48,19 @@ function reducer(state, action) {
|
|
|
48
48
|
throw new Error("Unhandled action type");
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
const
|
|
52
|
-
id: "read",
|
|
53
|
-
displayName: "read"
|
|
54
|
-
}, {
|
|
55
|
-
id: "comment",
|
|
56
|
-
displayName: "comment"
|
|
57
|
-
}], useSearch = ({
|
|
51
|
+
const useSearch = ({
|
|
58
52
|
resourceId,
|
|
59
53
|
resourceCreatorId,
|
|
60
54
|
shareRights,
|
|
61
|
-
shareDispatch
|
|
55
|
+
shareDispatch,
|
|
56
|
+
urlResourceRights,
|
|
57
|
+
defaultActions = [{
|
|
58
|
+
id: "read",
|
|
59
|
+
displayName: "read"
|
|
60
|
+
}, {
|
|
61
|
+
id: "comment",
|
|
62
|
+
displayName: "comment"
|
|
63
|
+
}]
|
|
62
64
|
}) => {
|
|
63
65
|
const [state, dispatch] = useReducer(reducer, initialState), debouncedSearchInputValue = useDebounce(state.searchInputValue, 500), {
|
|
64
66
|
isAdml
|
|
@@ -82,7 +84,7 @@ const defaultActions = [{
|
|
|
82
84
|
type: "isSearching",
|
|
83
85
|
payload: !0
|
|
84
86
|
}), !isAdml && debouncedSearchInputValue2.length >= 1 || isAdml && debouncedSearchInputValue2.length >= 3) {
|
|
85
|
-
const resSearchShareSubjects = await odeServices.share().searchShareSubjects(appCode, resourceId, debouncedSearchInputValue2);
|
|
87
|
+
const resSearchShareSubjects = await odeServices.share().searchShareSubjects(appCode, resourceId, debouncedSearchInputValue2, urlResourceRights);
|
|
86
88
|
dispatch({
|
|
87
89
|
type: "addApiResult",
|
|
88
90
|
payload: resSearchShareSubjects
|
|
@@ -151,13 +153,7 @@ const defaultActions = [{
|
|
|
151
153
|
} else
|
|
152
154
|
rightsToAdd = [{
|
|
153
155
|
...shareSubject,
|
|
154
|
-
actions:
|
|
155
|
-
id: "read",
|
|
156
|
-
displayName: "read"
|
|
157
|
-
}, {
|
|
158
|
-
id: "comment",
|
|
159
|
-
displayName: "comment"
|
|
160
|
-
}]
|
|
156
|
+
actions: defaultActions
|
|
161
157
|
}];
|
|
162
158
|
shareDispatch({
|
|
163
159
|
type: "updateShareRights",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ShareRight, ShareRightAction, ShareRightActionDisplayName, ShareRightWithVisibles } from '@edifice.io/client';
|
|
2
|
-
import { ShareOptions, ShareResourceMutation } from '../
|
|
1
|
+
import { ShareRight, ShareRightAction, ShareRightActionDisplayName, ShareRightWithVisibles, ShareUrls } from '@edifice.io/client';
|
|
2
|
+
import { ShareOptions, ShareResourceMutation } from '../ShareResources';
|
|
3
3
|
interface UseShareResourceModalProps {
|
|
4
4
|
/**
|
|
5
5
|
* Resource ID (assetId)
|
|
@@ -15,10 +15,15 @@ interface UseShareResourceModalProps {
|
|
|
15
15
|
resourceCreatorId: ShareOptions['resourceCreatorId'];
|
|
16
16
|
shareResource?: ShareResourceMutation;
|
|
17
17
|
onSuccess: () => void;
|
|
18
|
-
setIsLoading
|
|
18
|
+
setIsLoading?: (value: boolean) => void;
|
|
19
|
+
resourceShareRights?: ShareRightWithVisibles;
|
|
20
|
+
resourceShareRightActions?: ShareRightAction[];
|
|
21
|
+
filteredActions?: ShareRightActionDisplayName[];
|
|
22
|
+
shareUrls?: ShareUrls;
|
|
19
23
|
}
|
|
20
24
|
type State = {
|
|
21
25
|
isSharing: boolean;
|
|
26
|
+
isDirty?: boolean;
|
|
22
27
|
shareRights: ShareRightWithVisibles;
|
|
23
28
|
shareRightActions: ShareRightAction[];
|
|
24
29
|
};
|
|
@@ -38,9 +43,10 @@ export type ShareAction = {
|
|
|
38
43
|
type: 'isSharing';
|
|
39
44
|
payload: boolean;
|
|
40
45
|
};
|
|
41
|
-
export default function useShare({ resourceId, resourceRights, resourceCreatorId, shareResource, setIsLoading, onSuccess, }: UseShareResourceModalProps): {
|
|
46
|
+
export default function useShare({ resourceId, resourceRights, resourceCreatorId, shareResource, setIsLoading, onSuccess, filteredActions, shareUrls, }: UseShareResourceModalProps): {
|
|
42
47
|
state: {
|
|
43
48
|
isSharing: boolean;
|
|
49
|
+
isDirty?: boolean;
|
|
44
50
|
shareRights: ShareRightWithVisibles;
|
|
45
51
|
shareRightActions: ShareRightAction[];
|
|
46
52
|
};
|
|
@@ -48,7 +54,8 @@ export default function useShare({ resourceId, resourceRights, resourceCreatorId
|
|
|
48
54
|
currentIsAuthor: () => boolean;
|
|
49
55
|
myAvatar: string;
|
|
50
56
|
handleDeleteRow: (shareRight: ShareRight) => void;
|
|
51
|
-
handleShare: () => Promise<void>;
|
|
57
|
+
handleShare: (notify?: boolean) => Promise<void>;
|
|
52
58
|
toggleRight: (shareRight: ShareRight, actionName: ShareRightActionDisplayName) => void;
|
|
59
|
+
isDirty: boolean;
|
|
53
60
|
};
|
|
54
61
|
export {};
|
|
@@ -6,6 +6,7 @@ import useUser from "../../../../hooks/useUser/useUser.js";
|
|
|
6
6
|
import useToast from "../../../../hooks/useToast/useToast.js";
|
|
7
7
|
const initialState = {
|
|
8
8
|
isSharing: !1,
|
|
9
|
+
isDirty: !1,
|
|
9
10
|
shareRights: {
|
|
10
11
|
rights: [],
|
|
11
12
|
visibleBookmarks: [],
|
|
@@ -24,17 +25,20 @@ function reducer(state, action) {
|
|
|
24
25
|
case "deleteRow":
|
|
25
26
|
return {
|
|
26
27
|
...state,
|
|
27
|
-
shareRights: action.payload
|
|
28
|
+
shareRights: action.payload,
|
|
29
|
+
isDirty: !0
|
|
28
30
|
};
|
|
29
31
|
case "updateShareRights":
|
|
30
32
|
return {
|
|
31
33
|
...state,
|
|
32
|
-
shareRights: action.payload
|
|
34
|
+
shareRights: action.payload,
|
|
35
|
+
isDirty: !0
|
|
33
36
|
};
|
|
34
37
|
case "toggleRight":
|
|
35
38
|
return {
|
|
36
39
|
...state,
|
|
37
|
-
shareRights: action.payload
|
|
40
|
+
shareRights: action.payload,
|
|
41
|
+
isDirty: !0
|
|
38
42
|
};
|
|
39
43
|
case "isSharing":
|
|
40
44
|
return {
|
|
@@ -51,7 +55,9 @@ function useShare({
|
|
|
51
55
|
resourceCreatorId,
|
|
52
56
|
shareResource,
|
|
53
57
|
setIsLoading,
|
|
54
|
-
onSuccess
|
|
58
|
+
onSuccess,
|
|
59
|
+
filteredActions,
|
|
60
|
+
shareUrls
|
|
55
61
|
}) {
|
|
56
62
|
const {
|
|
57
63
|
appCode
|
|
@@ -64,18 +70,18 @@ function useShare({
|
|
|
64
70
|
useEffect(() => {
|
|
65
71
|
resourceId && (async () => {
|
|
66
72
|
try {
|
|
67
|
-
const [shareRightActions, shareRights] = await Promise.all([odeServices.share().getActionsForApp(appCode), odeServices.share().getRightsForResource(appCode, resourceId)]);
|
|
73
|
+
const [shareRightActions, shareRights] = await Promise.all([odeServices.share().getActionsForApp(appCode, shareUrls == null ? void 0 : shareUrls.getShareMapping), odeServices.share().getRightsForResource(appCode, resourceId, shareUrls)]), filteredShareRightActions = filteredActions ? shareRightActions.filter((action) => filteredActions.includes(action.id)) : shareRightActions;
|
|
68
74
|
dispatch({
|
|
69
75
|
type: "init",
|
|
70
76
|
payload: {
|
|
71
|
-
shareRightActions,
|
|
77
|
+
shareRightActions: filteredShareRightActions,
|
|
72
78
|
shareRights
|
|
73
79
|
}
|
|
74
80
|
});
|
|
75
81
|
} catch (error) {
|
|
76
82
|
console.error(error);
|
|
77
83
|
}
|
|
78
|
-
setIsLoading(!1);
|
|
84
|
+
setIsLoading == null || setIsLoading(!1);
|
|
79
85
|
})();
|
|
80
86
|
}, [resourceId]);
|
|
81
87
|
const toggleRight = (shareRight, actionName) => {
|
|
@@ -143,7 +149,7 @@ function useShare({
|
|
|
143
149
|
}
|
|
144
150
|
});
|
|
145
151
|
},
|
|
146
|
-
handleShare: async () => {
|
|
152
|
+
handleShare: async (notify = !0) => {
|
|
147
153
|
dispatch({
|
|
148
154
|
type: "isSharing",
|
|
149
155
|
payload: !0
|
|
@@ -169,12 +175,12 @@ function useShare({
|
|
|
169
175
|
resourceId,
|
|
170
176
|
rights: shares
|
|
171
177
|
});
|
|
172
|
-
notifySuccess(result);
|
|
178
|
+
notify && notifySuccess(result);
|
|
173
179
|
} else {
|
|
174
|
-
const result = await odeServices.share().saveRights(appCode, resourceId, shares);
|
|
175
|
-
notifySuccess(result);
|
|
180
|
+
const result = await odeServices.share().saveRights(appCode, resourceId, shares, shareUrls);
|
|
181
|
+
notify && notifySuccess(result);
|
|
176
182
|
}
|
|
177
|
-
onSuccess();
|
|
183
|
+
shareUrls != null && shareUrls.getResourceRights && odeServices.cache().clearCache(shareUrls.getResourceRights), onSuccess();
|
|
178
184
|
} catch (error) {
|
|
179
185
|
typeof error == "string" && toast.error(t("explorer.shared.status.error")), typeof error == "object" && toast.error(t((error == null ? void 0 : error.error) || "explorer.shared.status.error")), console.error("Failed to save share", error);
|
|
180
186
|
} finally {
|
|
@@ -184,7 +190,8 @@ function useShare({
|
|
|
184
190
|
});
|
|
185
191
|
}
|
|
186
192
|
},
|
|
187
|
-
toggleRight
|
|
193
|
+
toggleRight,
|
|
194
|
+
isDirty: !!state.isDirty
|
|
188
195
|
};
|
|
189
196
|
}
|
|
190
197
|
export {
|
|
@@ -16,7 +16,7 @@ export declare const useShareBookmark: ({ shareRights, shareDispatch, }: UseShar
|
|
|
16
16
|
bookmark: BookmarkProps;
|
|
17
17
|
handleBookmarkChange: () => void;
|
|
18
18
|
setBookmark: Dispatch<import('react').SetStateAction<BookmarkProps>>;
|
|
19
|
-
handleOnSave: () => void
|
|
19
|
+
handleOnSave: () => Promise<void>;
|
|
20
20
|
toggleBookmark: () => void;
|
|
21
21
|
toggleBookmarkInput: Dispatch<import('react').SetStateAction<boolean>>;
|
|
22
22
|
};
|
|
@@ -56,7 +56,7 @@ const useShareBookmark = ({
|
|
|
56
56
|
handleOnSave: () => {
|
|
57
57
|
var _a;
|
|
58
58
|
const inputValue = ((_a = refBookmark.current) == null ? void 0 : _a.value) || "";
|
|
59
|
-
saveBookmark(inputValue);
|
|
59
|
+
return saveBookmark(inputValue);
|
|
60
60
|
},
|
|
61
61
|
toggleBookmark,
|
|
62
62
|
toggleBookmarkInput
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export { default as ShareModal } from './ShareModal';
|
|
2
1
|
export { default as ShareBlog } from './apps/ShareBlog';
|
|
3
2
|
export { default as useShareMutation } from './hooks/useShareMutation';
|
|
3
|
+
export { default as ShareModal } from './ShareModal';
|
|
4
|
+
export * from './ShareResources';
|
|
5
|
+
export { default as ShareResources } from './ShareResources';
|
|
@@ -14,7 +14,7 @@ const acceptedTypes = (type) => {
|
|
|
14
14
|
acceptedTypes2.push("video/*");
|
|
15
15
|
break;
|
|
16
16
|
case "image":
|
|
17
|
-
acceptedTypes2.push("image/png"), acceptedTypes2.push("image/jpeg"), acceptedTypes2.push("image/webp"), acceptedTypes2.push("image/gif"), acceptedTypes2.push("image/avif");
|
|
17
|
+
acceptedTypes2.push("image/png"), acceptedTypes2.push("image/jpeg"), acceptedTypes2.push("image/webp"), acceptedTypes2.push("image/gif"), acceptedTypes2.push("image/avif"), acceptedTypes2.push("image/heic");
|
|
18
18
|
break;
|
|
19
19
|
}
|
|
20
20
|
return acceptedTypes2;
|
package/dist/multimedia.js
CHANGED
|
@@ -4,12 +4,15 @@ import { default as default4 } from "./modules/multimedia/ImageEditor/components
|
|
|
4
4
|
import { default as default5 } from "./modules/multimedia/ImagePicker/ImagePicker.js";
|
|
5
5
|
import { default as default6 } from "./modules/multimedia/FileCard/FileCard.js";
|
|
6
6
|
import { default as default7 } from "./modules/multimedia/MediaLibrary/MediaLibrary.js";
|
|
7
|
-
import { default as default8 } from "./modules/multimedia/
|
|
8
|
-
import { default as default9 } from "./modules/multimedia/
|
|
9
|
-
import { default as default10 } from "./modules/multimedia/
|
|
10
|
-
import { default as default11 } from "./modules/multimedia/
|
|
7
|
+
import { default as default8 } from "./modules/multimedia/UploadFiles/UploadFiles.js";
|
|
8
|
+
import { default as default9 } from "./modules/multimedia/UploadCard/UploadCard.js";
|
|
9
|
+
import { default as default10 } from "./modules/multimedia/VideoEmbed/VideoEmbed.js";
|
|
10
|
+
import { default as default11 } from "./modules/multimedia/VideoRecorder/VideoRecorder.js";
|
|
11
|
+
import { default as default12 } from "./modules/multimedia/Workspace/Workspace.js";
|
|
12
|
+
import { default as default13 } from "./modules/multimedia/WorkspaceFolders/WorkspaceFolders.js";
|
|
11
13
|
import { ExternalLinker } from "./modules/multimedia/Linker/ExternalLinker/ExternalLinker.js";
|
|
12
14
|
import { InternalLinker } from "./modules/multimedia/Linker/InternalLinker/InternalLinker.js";
|
|
15
|
+
import { Upload } from "./modules/multimedia/MediaLibrary/innertabs/Upload.js";
|
|
13
16
|
export {
|
|
14
17
|
default2 as AudioRecorder,
|
|
15
18
|
default3 as Embed,
|
|
@@ -19,8 +22,11 @@ export {
|
|
|
19
22
|
default5 as ImagePicker,
|
|
20
23
|
InternalLinker,
|
|
21
24
|
default7 as MediaLibrary,
|
|
22
|
-
|
|
23
|
-
default9 as
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
Upload,
|
|
26
|
+
default9 as UploadCard,
|
|
27
|
+
default8 as UploadFiles,
|
|
28
|
+
default10 as VideoEmbed,
|
|
29
|
+
default11 as VideoRecorder,
|
|
30
|
+
default12 as Workspace,
|
|
31
|
+
default13 as WorkspaceFolders
|
|
26
32
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __module as defineProperty } from "../../../../../../../_virtual/defineProperty.js";
|
|
2
|
+
import { t as toPropertyKeyExports } from "./toPropertyKey.js";
|
|
3
|
+
(function(module) {
|
|
4
|
+
var toPropertyKey = toPropertyKeyExports;
|
|
5
|
+
function _defineProperty(e, r, t) {
|
|
6
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
7
|
+
value: t,
|
|
8
|
+
enumerable: !0,
|
|
9
|
+
configurable: !0,
|
|
10
|
+
writable: !0
|
|
11
|
+
}) : e[r] = t, e;
|
|
12
|
+
}
|
|
13
|
+
module.exports = _defineProperty, module.exports.__esModule = !0, module.exports.default = module.exports;
|
|
14
|
+
})(defineProperty);
|
|
15
|
+
var definePropertyExports = defineProperty.exports;
|
|
16
|
+
export {
|
|
17
|
+
definePropertyExports as d
|
|
18
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { __module as interopRequireDefault } from "../../../../../../../_virtual/interopRequireDefault.js";
|
|
2
|
+
(function(module) {
|
|
3
|
+
function _interopRequireDefault(e) {
|
|
4
|
+
return e && e.__esModule ? e : {
|
|
5
|
+
default: e
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
module.exports = _interopRequireDefault, module.exports.__esModule = !0, module.exports.default = module.exports;
|
|
9
|
+
})(interopRequireDefault);
|
|
10
|
+
var interopRequireDefaultExports = interopRequireDefault.exports;
|
|
11
|
+
export {
|
|
12
|
+
interopRequireDefaultExports as i
|
|
13
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { __module as objectSpread2 } from "../../../../../../../_virtual/objectSpread2.js";
|
|
2
|
+
import { d as definePropertyExports } from "./defineProperty.js";
|
|
3
|
+
(function(module) {
|
|
4
|
+
var defineProperty = definePropertyExports;
|
|
5
|
+
function ownKeys(e, r) {
|
|
6
|
+
var t = Object.keys(e);
|
|
7
|
+
if (Object.getOwnPropertySymbols) {
|
|
8
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
9
|
+
r && (o = o.filter(function(r2) {
|
|
10
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
11
|
+
})), t.push.apply(t, o);
|
|
12
|
+
}
|
|
13
|
+
return t;
|
|
14
|
+
}
|
|
15
|
+
function _objectSpread2(e) {
|
|
16
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
17
|
+
var t = arguments[r] != null ? arguments[r] : {};
|
|
18
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r2) {
|
|
19
|
+
defineProperty(e, r2, t[r2]);
|
|
20
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
21
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return e;
|
|
25
|
+
}
|
|
26
|
+
module.exports = _objectSpread2, module.exports.__esModule = !0, module.exports.default = module.exports;
|
|
27
|
+
})(objectSpread2);
|
|
28
|
+
var objectSpread2Exports = objectSpread2.exports;
|
|
29
|
+
export {
|
|
30
|
+
objectSpread2Exports as o
|
|
31
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { __module as toPrimitive } from "../../../../../../../_virtual/toPrimitive.js";
|
|
2
|
+
import { _ as _typeofExports } from "./typeof.js";
|
|
3
|
+
(function(module) {
|
|
4
|
+
var _typeof = _typeofExports.default;
|
|
5
|
+
function toPrimitive2(t, r) {
|
|
6
|
+
if (_typeof(t) != "object" || !t) return t;
|
|
7
|
+
var e = t[Symbol.toPrimitive];
|
|
8
|
+
if (e !== void 0) {
|
|
9
|
+
var i = e.call(t, r || "default");
|
|
10
|
+
if (_typeof(i) != "object") return i;
|
|
11
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
12
|
+
}
|
|
13
|
+
return (r === "string" ? String : Number)(t);
|
|
14
|
+
}
|
|
15
|
+
module.exports = toPrimitive2, module.exports.__esModule = !0, module.exports.default = module.exports;
|
|
16
|
+
})(toPrimitive);
|
|
17
|
+
var toPrimitiveExports = toPrimitive.exports;
|
|
18
|
+
export {
|
|
19
|
+
toPrimitiveExports as t
|
|
20
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { __module as toPropertyKey } from "../../../../../../../_virtual/toPropertyKey.js";
|
|
2
|
+
import { _ as _typeofExports } from "./typeof.js";
|
|
3
|
+
import { t as toPrimitiveExports } from "./toPrimitive.js";
|
|
4
|
+
(function(module) {
|
|
5
|
+
var _typeof = _typeofExports.default, toPrimitive = toPrimitiveExports;
|
|
6
|
+
function toPropertyKey2(t) {
|
|
7
|
+
var i = toPrimitive(t, "string");
|
|
8
|
+
return _typeof(i) == "symbol" ? i : i + "";
|
|
9
|
+
}
|
|
10
|
+
module.exports = toPropertyKey2, module.exports.__esModule = !0, module.exports.default = module.exports;
|
|
11
|
+
})(toPropertyKey);
|
|
12
|
+
var toPropertyKeyExports = toPropertyKey.exports;
|
|
13
|
+
export {
|
|
14
|
+
toPropertyKeyExports as t
|
|
15
|
+
};
|
package/dist/node_modules/.pnpm/@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/typeof.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { __module as _typeof } from "../../../../../../../_virtual/typeof.js";
|
|
2
|
+
(function(module) {
|
|
3
|
+
function _typeof2(o) {
|
|
4
|
+
"@babel/helpers - typeof";
|
|
5
|
+
return module.exports = _typeof2 = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(o2) {
|
|
6
|
+
return typeof o2;
|
|
7
|
+
} : function(o2) {
|
|
8
|
+
return o2 && typeof Symbol == "function" && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
9
|
+
}, module.exports.__esModule = !0, module.exports.default = module.exports, _typeof2(o);
|
|
10
|
+
}
|
|
11
|
+
module.exports = _typeof2, module.exports.__esModule = !0, module.exports.default = module.exports;
|
|
12
|
+
})(_typeof);
|
|
13
|
+
var _typeofExports = _typeof.exports;
|
|
14
|
+
export {
|
|
15
|
+
_typeofExports as _
|
|
16
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __exports as de_DE } from "../../../../../../../../_virtual/de_DE3.js";
|
|
2
|
+
import { i as interopRequireDefaultExports } from "../../../../../../@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js";
|
|
3
|
+
import "../../date-picker/locale/de_DE.js";
|
|
4
|
+
import { __exports as de_DE$1 } from "../../../../../../../../_virtual/de_DE4.js";
|
|
5
|
+
var _interopRequireDefault = interopRequireDefaultExports.default;
|
|
6
|
+
Object.defineProperty(de_DE, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
});
|
|
9
|
+
de_DE.default = void 0;
|
|
10
|
+
var _de_DE = _interopRequireDefault(de_DE$1);
|
|
11
|
+
de_DE.default = _de_DE.default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __exports as es_ES } from "../../../../../../../../_virtual/es_ES3.js";
|
|
2
|
+
import { i as interopRequireDefaultExports } from "../../../../../../@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js";
|
|
3
|
+
import "../../date-picker/locale/es_ES.js";
|
|
4
|
+
import { __exports as es_ES$1 } from "../../../../../../../../_virtual/es_ES4.js";
|
|
5
|
+
var _interopRequireDefault = interopRequireDefaultExports.default;
|
|
6
|
+
Object.defineProperty(es_ES, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
});
|
|
9
|
+
es_ES.default = void 0;
|
|
10
|
+
var _es_ES = _interopRequireDefault(es_ES$1);
|
|
11
|
+
es_ES.default = _es_ES.default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __exports as fr_FR } from "../../../../../../../../_virtual/fr_FR3.js";
|
|
2
|
+
import { i as interopRequireDefaultExports } from "../../../../../../@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js";
|
|
3
|
+
import "../../date-picker/locale/fr_FR.js";
|
|
4
|
+
import { __exports as fr_FR$1 } from "../../../../../../../../_virtual/fr_FR4.js";
|
|
5
|
+
var _interopRequireDefault = interopRequireDefaultExports.default;
|
|
6
|
+
Object.defineProperty(fr_FR, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
});
|
|
9
|
+
fr_FR.default = void 0;
|
|
10
|
+
var _fr_FR = _interopRequireDefault(fr_FR$1);
|
|
11
|
+
fr_FR.default = _fr_FR.default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __exports as it_IT } from "../../../../../../../../_virtual/it_IT3.js";
|
|
2
|
+
import { i as interopRequireDefaultExports } from "../../../../../../@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js";
|
|
3
|
+
import "../../date-picker/locale/it_IT.js";
|
|
4
|
+
import { __exports as it_IT$1 } from "../../../../../../../../_virtual/it_IT4.js";
|
|
5
|
+
var _interopRequireDefault = interopRequireDefaultExports.default;
|
|
6
|
+
Object.defineProperty(it_IT, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
});
|
|
9
|
+
it_IT.default = void 0;
|
|
10
|
+
var _it_IT = _interopRequireDefault(it_IT$1);
|
|
11
|
+
it_IT.default = _it_IT.default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { __exports as pt_PT } from "../../../../../../../../_virtual/pt_PT3.js";
|
|
2
|
+
import { i as interopRequireDefaultExports } from "../../../../../../@babel_runtime@7.28.6/node_modules/@babel/runtime/helpers/interopRequireDefault.js";
|
|
3
|
+
import "../../date-picker/locale/pt_PT.js";
|
|
4
|
+
import { __exports as pt_PT$1 } from "../../../../../../../../_virtual/pt_PT4.js";
|
|
5
|
+
var _interopRequireDefault = interopRequireDefaultExports.default;
|
|
6
|
+
Object.defineProperty(pt_PT, "__esModule", {
|
|
7
|
+
value: !0
|
|
8
|
+
});
|
|
9
|
+
pt_PT.default = void 0;
|
|
10
|
+
var _pt_PT = _interopRequireDefault(pt_PT$1);
|
|
11
|
+
pt_PT.default = _pt_PT.default;
|