@burdenoff/microfe-files 2026.1101.1 → 2026.1108.1
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/config/index.d.ts +0 -1
- package/dist/config/index.js +1 -2
- package/dist/dev/main.d.ts +0 -1
- package/dist/files/FilesRoot.d.ts +0 -1
- package/dist/files/FilesRoot.js +5 -6
- package/dist/files/FilesRoutes.d.ts +0 -1
- package/dist/files/FilesRoutes.js +10 -11
- package/dist/files/components/ActionMenu.d.ts +0 -1
- package/dist/files/components/ActionMenu.js +1 -2
- package/dist/files/components/ConfirmDialog.d.ts +0 -1
- package/dist/files/components/ConfirmDialog.js +1 -2
- package/dist/files/components/ContextMenu.d.ts +0 -1
- package/dist/files/components/ContextMenu.js +1 -2
- package/dist/files/components/CopyDialog.d.ts +0 -1
- package/dist/files/components/CopyDialog.js +21 -22
- package/dist/files/components/CopyDialog.js.map +1 -1
- package/dist/files/components/EmptyState.d.ts +0 -1
- package/dist/files/components/EmptyState.js +1 -2
- package/dist/files/components/FileBrowser.d.ts +0 -1
- package/dist/files/components/FileBrowser.js +220 -221
- package/dist/files/components/FileBrowser.js.map +1 -1
- package/dist/files/components/FileCard.d.ts +0 -1
- package/dist/files/components/FileCard.js +40 -41
- package/dist/files/components/FileCard.js.map +1 -1
- package/dist/files/components/FileInfoPanel.d.ts +0 -1
- package/dist/files/components/FileInfoPanel.js +1 -2
- package/dist/files/components/FileListItem.d.ts +0 -1
- package/dist/files/components/FileListItem.js +148 -149
- package/dist/files/components/FileListItem.js.map +1 -1
- package/dist/files/components/FilePreviewModal.d.ts +0 -1
- package/dist/files/components/FilePreviewModal.js +1 -2
- package/dist/files/components/FileVersionPanel.d.ts +0 -1
- package/dist/files/components/FileVersionPanel.js +54 -55
- package/dist/files/components/FolderCard.d.ts +0 -1
- package/dist/files/components/FolderCard.js +29 -30
- package/dist/files/components/FolderCard.js.map +1 -1
- package/dist/files/components/MoveDialog.d.ts +0 -1
- package/dist/files/components/MoveDialog.js +19 -20
- package/dist/files/components/SearchBar.d.ts +0 -1
- package/dist/files/components/SearchBar.js +1 -2
- package/dist/files/components/ShareDialog.d.ts +0 -1
- package/dist/files/components/ShareDialog.js +1 -2
- package/dist/files/components/StorageBanner.d.ts +0 -1
- package/dist/files/components/StorageBanner.js +1 -2
- package/dist/files/components/TabBar.d.ts +0 -1
- package/dist/files/components/TabBar.js +1 -2
- package/dist/files/components/Toast.d.ts +0 -1
- package/dist/files/components/Toast.js +1 -2
- package/dist/files/components/UploadQueue.d.ts +0 -1
- package/dist/files/components/UploadQueue.js +1 -2
- package/dist/files/components/actionMenuPosition.d.ts +0 -1
- package/dist/files/components/actionMenuPosition.js +1 -2
- package/dist/files/components/contextMenuItems.d.ts +0 -1
- package/dist/files/components/contextMenuItems.js +1 -2
- package/dist/files/components/viewers/AudioPlayer.d.ts +0 -1
- package/dist/files/components/viewers/AudioPlayer.js +1 -2
- package/dist/files/components/viewers/CodeViewer.d.ts +0 -1
- package/dist/files/components/viewers/CodeViewer.js +1 -2
- package/dist/files/components/viewers/ImageViewer.d.ts +0 -1
- package/dist/files/components/viewers/ImageViewer.js +1 -2
- package/dist/files/components/viewers/PDFViewer.d.ts +0 -1
- package/dist/files/components/viewers/PDFViewer.js +1 -2
- package/dist/files/components/viewers/TextViewer.d.ts +0 -1
- package/dist/files/components/viewers/TextViewer.js +1 -2
- package/dist/files/components/viewers/VideoPlayer.d.ts +0 -1
- package/dist/files/components/viewers/VideoPlayer.js +1 -2
- package/dist/files/graphql-types.d.ts +0 -1
- package/dist/files/hooks/useBatchOperations.d.ts +0 -1
- package/dist/files/hooks/useBatchOperations.js +1 -2
- package/dist/files/hooks/useBinItems.d.ts +0 -1
- package/dist/files/hooks/useBinItems.js +1 -2
- package/dist/files/hooks/useBrowsePage.d.ts +0 -1
- package/dist/files/hooks/useBrowsePage.js +1 -2
- package/dist/files/hooks/useCopyFile.d.ts +0 -1
- package/dist/files/hooks/useCopyFile.js +1 -2
- package/dist/files/hooks/useCreateFolder.d.ts +0 -1
- package/dist/files/hooks/useCreateFolder.js +8 -9
- package/dist/files/hooks/useCreateFolderShare.d.ts +0 -1
- package/dist/files/hooks/useCreateFolderShare.js +1 -2
- package/dist/files/hooks/useCreateShare.d.ts +0 -1
- package/dist/files/hooks/useCreateShare.js +1 -2
- package/dist/files/hooks/useDeleteFile.d.ts +0 -1
- package/dist/files/hooks/useDeleteFile.js +1 -2
- package/dist/files/hooks/useDeleteFolder.d.ts +0 -1
- package/dist/files/hooks/useDeleteFolder.js +1 -2
- package/dist/files/hooks/useDragDrop.d.ts +0 -1
- package/dist/files/hooks/useDragDrop.js +1 -2
- package/dist/files/hooks/useFileVersions.d.ts +0 -1
- package/dist/files/hooks/useFileVersions.js +1 -2
- package/dist/files/hooks/useFoldersQuery.d.ts +0 -1
- package/dist/files/hooks/useFoldersQuery.js +1 -2
- package/dist/files/hooks/useKeyboardNavigation.d.ts +0 -1
- package/dist/files/hooks/useKeyboardNavigation.js +1 -2
- package/dist/files/hooks/useMoveFile.d.ts +0 -1
- package/dist/files/hooks/useMoveFile.js +1 -2
- package/dist/files/hooks/useMoveFolder.d.ts +0 -1
- package/dist/files/hooks/useMoveFolder.js +1 -2
- package/dist/files/hooks/usePermanentlyDeleteFile.d.ts +0 -1
- package/dist/files/hooks/usePermanentlyDeleteFile.js +1 -2
- package/dist/files/hooks/usePermanentlyDeleteFolder.d.ts +0 -1
- package/dist/files/hooks/usePermanentlyDeleteFolder.js +1 -2
- package/dist/files/hooks/useRecentFiles.d.ts +0 -1
- package/dist/files/hooks/useRecentFiles.js +1 -2
- package/dist/files/hooks/useRenameFile.d.ts +0 -1
- package/dist/files/hooks/useRenameFile.js +1 -2
- package/dist/files/hooks/useRenameFolder.d.ts +0 -1
- package/dist/files/hooks/useRenameFolder.js +1 -2
- package/dist/files/hooks/useRestoreFile.d.ts +0 -1
- package/dist/files/hooks/useRestoreFile.js +1 -2
- package/dist/files/hooks/useRestoreFolder.d.ts +0 -1
- package/dist/files/hooks/useRestoreFolder.js +1 -2
- package/dist/files/hooks/useSearch.d.ts +0 -1
- package/dist/files/hooks/useSearch.js +7 -8
- package/dist/files/hooks/useStarredItems.d.ts +0 -1
- package/dist/files/hooks/useStarredItems.js +1 -2
- package/dist/files/hooks/useStorageQuota.d.ts +0 -1
- package/dist/files/hooks/useStorageQuota.js +1 -2
- package/dist/files/hooks/useToast.d.ts +0 -1
- package/dist/files/hooks/useToast.js +1 -2
- package/dist/files/hooks/useToggleStar.d.ts +0 -1
- package/dist/files/hooks/useToggleStar.js +1 -2
- package/dist/files/hooks/useUploadFile.d.ts +0 -1
- package/dist/files/hooks/useUploadFile.js +4 -5
- package/dist/files/hooks/useUploadQueueState.d.ts +0 -1
- package/dist/files/hooks/useUploadQueueState.js +1 -2
- package/dist/files/index.d.ts +0 -1
- package/dist/files/index.js +4 -4
- package/dist/files/pages/BrowserPage.d.ts +0 -1
- package/dist/files/pages/BrowserPage.js +470 -471
- package/dist/files/pages/BrowserPage.js.map +1 -1
- package/dist/files/pages/ShareAccessPage.d.ts +0 -1
- package/dist/files/pages/ShareAccessPage.js +26 -27
- package/dist/files/pages/ShareAccessPage.js.map +1 -1
- package/dist/files/providers/FilesProvider.d.ts +0 -1
- package/dist/files/providers/FilesProvider.js +1 -2
- package/dist/files/store/filesStore.d.ts +0 -1
- package/dist/files/store/filesStore.js +1 -2
- package/dist/files/types.d.ts +0 -1
- package/dist/files/utils/events.d.ts +0 -1
- package/dist/files/utils/events.js +1 -2
- package/dist/files/utils/fileViewModel.d.ts +0 -1
- package/dist/files/utils/fileViewModel.js +1 -2
- package/dist/files/utils/i18n.d.ts +0 -1
- package/dist/files/utils/i18n.js +1 -2
- package/dist/files/utils/index.d.ts +0 -1
- package/dist/files/utils/index.js +1 -2
- package/dist/files/utils/quotaUtils.d.ts +0 -1
- package/dist/files/utils/thumbnail.d.ts +0 -1
- package/dist/files/utils/thumbnail.js +1 -2
- package/dist/files/utils/uploadDigest.d.ts +0 -1
- package/dist/files/utils/uploadDigest.js +1 -2
- package/dist/files.js +3 -3
- package/dist/generated/global-operations.d.ts +0 -1
- package/dist/generated/global-types.d.ts +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -1
- package/dist/generated/wspace-operations.js +1 -2
- package/dist/generated/wspace-types.d.ts +0 -1
- package/dist/generated/wspace-types.js +1 -2
- package/dist/index.d.ts +0 -1
- package/dist/shared/hooks/useTr.d.ts +0 -1
- package/dist/shared/hooks/useTr.js +1 -2
- package/dist/shared/types/index.d.ts +0 -1
- package/dist/test/happydom.d.ts +1 -0
- package/dist/translations/en.d.ts +0 -1
- package/dist/translations/en.js +1 -2
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/package.json +64 -46
- package/src/styles/dark.css +1 -1
- package/dist/config/index.d.ts.map +0 -1
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/files/FilesRoot.d.ts.map +0 -1
- package/dist/files/FilesRoutes.d.ts.map +0 -1
- package/dist/files/components/ActionMenu.d.ts.map +0 -1
- package/dist/files/components/ConfirmDialog.d.ts.map +0 -1
- package/dist/files/components/ContextMenu.d.ts.map +0 -1
- package/dist/files/components/CopyDialog.d.ts.map +0 -1
- package/dist/files/components/EmptyState.d.ts.map +0 -1
- package/dist/files/components/FileBrowser.d.ts.map +0 -1
- package/dist/files/components/FileCard.d.ts.map +0 -1
- package/dist/files/components/FileInfoPanel.d.ts.map +0 -1
- package/dist/files/components/FileListItem.d.ts.map +0 -1
- package/dist/files/components/FilePreviewModal.d.ts.map +0 -1
- package/dist/files/components/FileVersionPanel.d.ts.map +0 -1
- package/dist/files/components/FolderCard.d.ts.map +0 -1
- package/dist/files/components/MoveDialog.d.ts.map +0 -1
- package/dist/files/components/SearchBar.d.ts.map +0 -1
- package/dist/files/components/ShareDialog.d.ts.map +0 -1
- package/dist/files/components/StorageBanner.d.ts.map +0 -1
- package/dist/files/components/TabBar.d.ts.map +0 -1
- package/dist/files/components/Toast.d.ts.map +0 -1
- package/dist/files/components/UploadQueue.d.ts.map +0 -1
- package/dist/files/components/actionMenuPosition.d.ts.map +0 -1
- package/dist/files/components/contextMenuItems.d.ts.map +0 -1
- package/dist/files/components/viewers/AudioPlayer.d.ts.map +0 -1
- package/dist/files/components/viewers/CodeViewer.d.ts.map +0 -1
- package/dist/files/components/viewers/ImageViewer.d.ts.map +0 -1
- package/dist/files/components/viewers/PDFViewer.d.ts.map +0 -1
- package/dist/files/components/viewers/TextViewer.d.ts.map +0 -1
- package/dist/files/components/viewers/VideoPlayer.d.ts.map +0 -1
- package/dist/files/graphql-types.d.ts.map +0 -1
- package/dist/files/hooks/useBatchOperations.d.ts.map +0 -1
- package/dist/files/hooks/useBinItems.d.ts.map +0 -1
- package/dist/files/hooks/useBrowsePage.d.ts.map +0 -1
- package/dist/files/hooks/useCopyFile.d.ts.map +0 -1
- package/dist/files/hooks/useCreateFolder.d.ts.map +0 -1
- package/dist/files/hooks/useCreateFolderShare.d.ts.map +0 -1
- package/dist/files/hooks/useCreateShare.d.ts.map +0 -1
- package/dist/files/hooks/useDeleteFile.d.ts.map +0 -1
- package/dist/files/hooks/useDeleteFolder.d.ts.map +0 -1
- package/dist/files/hooks/useDragDrop.d.ts.map +0 -1
- package/dist/files/hooks/useFileVersions.d.ts.map +0 -1
- package/dist/files/hooks/useFoldersQuery.d.ts.map +0 -1
- package/dist/files/hooks/useKeyboardNavigation.d.ts.map +0 -1
- package/dist/files/hooks/useMoveFile.d.ts.map +0 -1
- package/dist/files/hooks/useMoveFolder.d.ts.map +0 -1
- package/dist/files/hooks/usePermanentlyDeleteFile.d.ts.map +0 -1
- package/dist/files/hooks/usePermanentlyDeleteFolder.d.ts.map +0 -1
- package/dist/files/hooks/useRecentFiles.d.ts.map +0 -1
- package/dist/files/hooks/useRenameFile.d.ts.map +0 -1
- package/dist/files/hooks/useRenameFolder.d.ts.map +0 -1
- package/dist/files/hooks/useRestoreFile.d.ts.map +0 -1
- package/dist/files/hooks/useRestoreFolder.d.ts.map +0 -1
- package/dist/files/hooks/useSearch.d.ts.map +0 -1
- package/dist/files/hooks/useStarredItems.d.ts.map +0 -1
- package/dist/files/hooks/useStorageQuota.d.ts.map +0 -1
- package/dist/files/hooks/useToast.d.ts.map +0 -1
- package/dist/files/hooks/useToggleStar.d.ts.map +0 -1
- package/dist/files/hooks/useUploadFile.d.ts.map +0 -1
- package/dist/files/hooks/useUploadQueueState.d.ts.map +0 -1
- package/dist/files/index.d.ts.map +0 -1
- package/dist/files/pages/BrowserPage.d.ts.map +0 -1
- package/dist/files/pages/ShareAccessPage.d.ts.map +0 -1
- package/dist/files/providers/FilesProvider.d.ts.map +0 -1
- package/dist/files/store/filesStore.d.ts.map +0 -1
- package/dist/files/types.d.ts.map +0 -1
- package/dist/files/utils/events.d.ts.map +0 -1
- package/dist/files/utils/fileViewModel.d.ts.map +0 -1
- package/dist/files/utils/i18n.d.ts.map +0 -1
- package/dist/files/utils/index.d.ts.map +0 -1
- package/dist/files/utils/quotaUtils.d.ts.map +0 -1
- package/dist/files/utils/thumbnail.d.ts.map +0 -1
- package/dist/files/utils/uploadDigest.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/shared/hooks/useTr.d.ts.map +0 -1
- package/dist/shared/types/index.d.ts.map +0 -1
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { useFoldersQuery as e } from "../hooks/useFoldersQuery.js";
|
|
2
|
+
import { tWithFallback as t } from "../utils/i18n.js";
|
|
3
3
|
import { useState as n } from "react";
|
|
4
4
|
import { ChevronRight as r, Folder as i, Home as a, Loader2 as o } from "lucide-react";
|
|
5
5
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
6
|
import { useI18n as l } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
7
|
import { Button as u, ResponsiveDialog as d, ResponsiveDialogContent as f, ResponsiveDialogFooter as p, ResponsiveDialogHeader as m, ResponsiveDialogTitle as h } from "@burdenoff/fe-libs/ui";
|
|
8
|
-
|
|
8
|
+
// src/files/components/MoveDialog.tsx
|
|
9
9
|
var g = ({ item: g, type: _, onClose: v, onMove: y, isLoading: b = !1 }) => {
|
|
10
|
-
let { t: x } = l(), [S, C] = n(null), [w, T] = n([]), [E, D] = n(void 0), { data: O, loading: k } =
|
|
10
|
+
let { t: x } = l(), [S, C] = n(null), [w, T] = n([]), [E, D] = n(void 0), { data: O, loading: k } = e(S || void 0), A = O?.getFolders?.folders || [], j = (e) => {
|
|
11
11
|
C(e.id), T([...w, {
|
|
12
12
|
id: e.id,
|
|
13
13
|
name: e.name
|
|
@@ -28,7 +28,7 @@ var g = ({ item: g, type: _, onClose: v, onMove: y, isLoading: b = !1 }) => {
|
|
|
28
28
|
},
|
|
29
29
|
children: /* @__PURE__ */ c(f, {
|
|
30
30
|
className: "flex max-h-[80vh] w-full max-w-md flex-col gap-0 p-0",
|
|
31
|
-
"aria-label":
|
|
31
|
+
"aria-label": t(x, "files.moveDialog.ariaLabel", "Move {{type}} {{name}}", {
|
|
32
32
|
type: _,
|
|
33
33
|
name: g.name
|
|
34
34
|
}),
|
|
@@ -37,7 +37,7 @@ var g = ({ item: g, type: _, onClose: v, onMove: y, isLoading: b = !1 }) => {
|
|
|
37
37
|
className: "px-6 py-4 border-b border-border-default text-left",
|
|
38
38
|
children: /* @__PURE__ */ s(h, {
|
|
39
39
|
className: "text-lg font-semibold text-text-primary",
|
|
40
|
-
children:
|
|
40
|
+
children: t(x, "files.moveDialog.title", "Move \"{{name}}\"", { name: g.name })
|
|
41
41
|
})
|
|
42
42
|
}),
|
|
43
43
|
/* @__PURE__ */ s("div", {
|
|
@@ -48,7 +48,7 @@ var g = ({ item: g, type: _, onClose: v, onMove: y, isLoading: b = !1 }) => {
|
|
|
48
48
|
type: "button",
|
|
49
49
|
onClick: () => M(-1),
|
|
50
50
|
className: "flex items-center gap-1.5 text-text-primary hover:bg-action-ghost-bg-hover px-2 py-1 rounded transition-colors duration-200 whitespace-nowrap",
|
|
51
|
-
children: [/* @__PURE__ */ s(a, { className: "size-4" }), /* @__PURE__ */ s("span", { children:
|
|
51
|
+
children: [/* @__PURE__ */ s(a, { className: "size-4" }), /* @__PURE__ */ s("span", { children: t(x, "files.browser.rootLabel", "My Drive") })]
|
|
52
52
|
}), w.map((e, t) => /* @__PURE__ */ c("div", {
|
|
53
53
|
className: "flex items-center gap-2 whitespace-nowrap",
|
|
54
54
|
children: [/* @__PURE__ */ s(r, { className: "size-4 text-text-tertiary" }), /* @__PURE__ */ s("button", {
|
|
@@ -73,30 +73,30 @@ var g = ({ item: g, type: _, onClose: v, onMove: y, isLoading: b = !1 }) => {
|
|
|
73
73
|
className: `w-full flex items-center gap-3 px-3 py-2.5 rounded-lg text-left transition-all duration-200 ${E === S ? "bg-bg-accent border-2 border-action-primary-border" : "hover:bg-action-ghost-bg-hover border-2 border-transparent"}`,
|
|
74
74
|
children: [/* @__PURE__ */ s(i, { className: "size-5 text-text-link" }), /* @__PURE__ */ s("span", {
|
|
75
75
|
className: "font-medium text-text-primary",
|
|
76
|
-
children:
|
|
76
|
+
children: t(x, "files.moveDialog.actions.moveHere", "Move here")
|
|
77
77
|
})]
|
|
78
78
|
}), P.length === 0 ? /* @__PURE__ */ s("p", {
|
|
79
79
|
className: "text-sm text-text-secondary text-center py-4",
|
|
80
|
-
children:
|
|
81
|
-
}) : P.map((
|
|
82
|
-
className: `flex items-center justify-between gap-3 px-3 py-2.5 rounded-lg transition-all duration-200 ${E ===
|
|
80
|
+
children: t(x, "files.moveDialog.empty.noSubfolders", "No subfolders")
|
|
81
|
+
}) : P.map((e) => /* @__PURE__ */ c("div", {
|
|
82
|
+
className: `flex items-center justify-between gap-3 px-3 py-2.5 rounded-lg transition-all duration-200 ${E === e.id ? "bg-bg-accent border-2 border-action-primary-border" : "hover:bg-action-ghost-bg-hover border-2 border-transparent"}`,
|
|
83
83
|
children: [/* @__PURE__ */ c("button", {
|
|
84
84
|
type: "button",
|
|
85
|
-
onClick: () => D(
|
|
85
|
+
onClick: () => D(e.id),
|
|
86
86
|
className: "flex items-center gap-3 flex-1 min-w-0",
|
|
87
87
|
children: [/* @__PURE__ */ s(i, { className: "size-5 text-text-link flex-shrink-0" }), /* @__PURE__ */ s("span", {
|
|
88
88
|
className: "font-medium text-text-primary truncate",
|
|
89
|
-
children:
|
|
89
|
+
children: e.name
|
|
90
90
|
})]
|
|
91
91
|
}), /* @__PURE__ */ s("button", {
|
|
92
92
|
type: "button",
|
|
93
|
-
onClick: () => j(
|
|
93
|
+
onClick: () => j(e),
|
|
94
94
|
className: "p-1.5 text-text-tertiary hover:text-text-secondary hover:bg-action-ghost-bg-hover rounded transition-colors duration-200 flex-shrink-0",
|
|
95
|
-
title:
|
|
96
|
-
"aria-label":
|
|
95
|
+
title: t(x, "files.moveDialog.actions.openFolder", "Open folder"),
|
|
96
|
+
"aria-label": t(x, "files.moveDialog.actions.openFolderNamed", "Open {{name}}", { name: e.name }),
|
|
97
97
|
children: /* @__PURE__ */ s(r, { className: "size-4" })
|
|
98
98
|
})]
|
|
99
|
-
},
|
|
99
|
+
}, e.id))]
|
|
100
100
|
})
|
|
101
101
|
}),
|
|
102
102
|
/* @__PURE__ */ c(p, {
|
|
@@ -105,19 +105,18 @@ var g = ({ item: g, type: _, onClose: v, onMove: y, isLoading: b = !1 }) => {
|
|
|
105
105
|
type: "button",
|
|
106
106
|
variant: "outline",
|
|
107
107
|
onClick: v,
|
|
108
|
-
children:
|
|
108
|
+
children: t(x, "files.common.actions.cancel", "Cancel")
|
|
109
109
|
}), /* @__PURE__ */ c(u, {
|
|
110
110
|
type: "button",
|
|
111
111
|
onClick: N,
|
|
112
112
|
disabled: b || E === void 0,
|
|
113
|
-
children: [b && /* @__PURE__ */ s(o, { className: "size-4 animate-spin" }), b ?
|
|
113
|
+
children: [b && /* @__PURE__ */ s(o, { className: "size-4 animate-spin" }), b ? t(x, "files.moveDialog.actions.moving", "Moving...") : t(x, "files.common.actions.move", "Move")]
|
|
114
114
|
})]
|
|
115
115
|
})
|
|
116
116
|
]
|
|
117
117
|
})
|
|
118
118
|
});
|
|
119
119
|
};
|
|
120
|
-
//#endregion
|
|
121
120
|
export { g as MoveDialog };
|
|
122
121
|
|
|
123
122
|
//# sourceMappingURL=MoveDialog.js.map
|
|
@@ -4,7 +4,7 @@ import { useCallback as i, useEffect as a, useEffectEvent as o, useState as s }
|
|
|
4
4
|
import { Filter as c, Search as l, X as u } from "lucide-react";
|
|
5
5
|
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
6
6
|
import { useI18n as p } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
7
|
-
|
|
7
|
+
// src/files/components/SearchBar.tsx
|
|
8
8
|
var m = {
|
|
9
9
|
image: [
|
|
10
10
|
"image/jpeg",
|
|
@@ -267,7 +267,6 @@ function h({ onSearch: h, placeholder: g = "Search files and folders...", initia
|
|
|
267
267
|
})]
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
|
-
//#endregion
|
|
271
270
|
export { h as SearchBar };
|
|
272
271
|
|
|
273
272
|
//# sourceMappingURL=SearchBar.js.map
|
|
@@ -4,7 +4,7 @@ import { Calendar as r, Check as i, Copy as a, Download as o, Link as s, Loader2
|
|
|
4
4
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
5
5
|
import { useI18n as m } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
6
6
|
import { Button as h, OptionalFields as g, ResponsiveDialog as _, ResponsiveDialogContent as v, ResponsiveDialogFooter as y, ResponsiveDialogHeader as b, ResponsiveDialogTitle as x } from "@burdenoff/fe-libs/ui";
|
|
7
|
-
|
|
7
|
+
// src/files/components/ShareDialog.tsx
|
|
8
8
|
function S({ item: S, itemType: C, onClose: w, onCreateShare: T, isLoading: E }) {
|
|
9
9
|
let { t: D } = m(), [O, k] = n(null), [A, j] = n(null), [M, N] = n(!1), [P, F] = n(7), [I, L] = n(0), [R, z] = n(!1), [B, V] = n(""), [H, U] = n(""), [W, G] = n(null);
|
|
10
10
|
return t(() => {
|
|
@@ -194,7 +194,6 @@ function S({ item: S, itemType: C, onClose: w, onCreateShare: T, isLoading: E })
|
|
|
194
194
|
}) })] })
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
//#endregion
|
|
198
197
|
export { S as ShareDialog };
|
|
199
198
|
|
|
200
199
|
//# sourceMappingURL=ShareDialog.js.map
|
|
@@ -2,7 +2,7 @@ import { useTr as e } from "../../shared/hooks/useTr.js";
|
|
|
2
2
|
import { QuotaMeter as t } from "@burdenoff/fe-libs/shared/components";
|
|
3
3
|
import { AlertCircle as n, AlertTriangle as r } from "lucide-react";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/files/components/StorageBanner.tsx
|
|
6
6
|
function o(e) {
|
|
7
7
|
return e >= 1073741824 ? `${(e / 1073741824).toFixed(1)} GB` : e >= 1048576 ? `${(e / 1048576).toFixed(1)} MB` : e >= 1024 ? `${(e / 1024).toFixed(1)} KB` : `${e} B`;
|
|
8
8
|
}
|
|
@@ -86,7 +86,6 @@ var s = ({ quota: s }) => {
|
|
|
86
86
|
]
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
|
-
//#endregion
|
|
90
89
|
export { s as StorageBanner };
|
|
91
90
|
|
|
92
91
|
//# sourceMappingURL=StorageBanner.js.map
|
|
@@ -2,7 +2,7 @@ import { tWithFallback as e } from "../utils/i18n.js";
|
|
|
2
2
|
import { Clock as t, Folder as n, Star as r, Trash2 as i } from "lucide-react";
|
|
3
3
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
4
4
|
import { useI18n as s } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
5
|
-
|
|
5
|
+
// src/files/components/TabBar.tsx
|
|
6
6
|
var c = [
|
|
7
7
|
{
|
|
8
8
|
id: "all",
|
|
@@ -60,7 +60,6 @@ function l({ activeTab: t, onTabChange: n, tabs: r = [
|
|
|
60
60
|
})
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
|
-
//#endregion
|
|
64
63
|
export { l as TabBar };
|
|
65
64
|
|
|
66
65
|
//# sourceMappingURL=TabBar.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useEffect as e, useEffectEvent as t } from "react";
|
|
2
2
|
import { AlertCircle as n, CheckCircle as r, Info as i, X as a, XCircle as o } from "lucide-react";
|
|
3
3
|
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/files/components/Toast.tsx
|
|
5
5
|
function l({ toast: l, onClose: u }) {
|
|
6
6
|
let d = t(() => {
|
|
7
7
|
u(l.id);
|
|
@@ -49,7 +49,6 @@ function u({ toasts: e, onClose: t }) {
|
|
|
49
49
|
}, e.id))
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
|
-
//#endregion
|
|
53
52
|
export { u as ToastContainer };
|
|
54
53
|
|
|
55
54
|
//# sourceMappingURL=Toast.js.map
|
|
@@ -6,7 +6,7 @@ import { Image as i, Pause as a, Play as o, RotateCcw as s, X as c } from "lucid
|
|
|
6
6
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
7
7
|
import { useI18n as d } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
8
8
|
import { GlassCard as f } from "@burdenoff/fe-libs/ui";
|
|
9
|
-
|
|
9
|
+
// src/files/components/UploadQueue.tsx
|
|
10
10
|
function p({ item: f, onPause: p, onResume: m, onRetry: h, onCancel: g }) {
|
|
11
11
|
let { t: _ } = d(), v = r(null), y = e(f.file.type);
|
|
12
12
|
return n(() => {
|
|
@@ -168,7 +168,6 @@ function m({ items: e, isOpen: n, onClose: r, onPause: i, onResume: a, onRetry:
|
|
|
168
168
|
})]
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
|
-
//#endregion
|
|
172
171
|
export { m as UploadQueue };
|
|
173
172
|
|
|
174
173
|
//# sourceMappingURL=UploadQueue.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/files/components/actionMenuPosition.ts
|
|
2
2
|
function e({ trigger: e, menuWidth: t, menuHeight: n, viewportWidth: r, viewportHeight: i, align: a }) {
|
|
3
3
|
let o = e.bottom + 4, s = o + n <= i - 10 ? o : e.top - n - 4, c = a === "right" ? e.right - t : e.left;
|
|
4
4
|
return {
|
|
@@ -6,7 +6,6 @@ function e({ trigger: e, menuWidth: t, menuHeight: n, viewportWidth: r, viewport
|
|
|
6
6
|
left: Math.max(10, Math.min(c, r - t - 10))
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
//#endregion
|
|
10
9
|
export { e as actionMenuPosition };
|
|
11
10
|
|
|
12
11
|
//# sourceMappingURL=actionMenuPosition.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { tWithFallback as e } from "../utils/i18n.js";
|
|
2
2
|
import { Clock as t, Copy as n, Download as r, Edit3 as i, FolderInput as a, Info as o, RotateCcw as s, Share2 as c, Star as l, Trash2 as u } from "lucide-react";
|
|
3
3
|
import { jsx as d } from "react/jsx-runtime";
|
|
4
|
-
|
|
4
|
+
// src/files/components/contextMenuItems.tsx
|
|
5
5
|
function f(f, p) {
|
|
6
6
|
return [
|
|
7
7
|
...f.onShare ? [{
|
|
@@ -97,7 +97,6 @@ function p(t, n) {
|
|
|
97
97
|
}] : []
|
|
98
98
|
];
|
|
99
99
|
}
|
|
100
|
-
//#endregion
|
|
101
100
|
export { f as createFileMenuItems, p as createFolderMenuItems };
|
|
102
101
|
|
|
103
102
|
//# sourceMappingURL=contextMenuItems.js.map
|
|
@@ -2,7 +2,7 @@ import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
|
2
2
|
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
3
3
|
import { Music as i, Pause as a, Play as o, Volume2 as s, VolumeX as c } from "lucide-react";
|
|
4
4
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/files/components/viewers/AudioPlayer.tsx
|
|
6
6
|
function d({ file: d, url: f }) {
|
|
7
7
|
let p = e(), m = n(null), [h, g] = r(!1), [_, v] = r(0), [y, b] = r(0), [x, S] = r(1), [C, w] = r(!1);
|
|
8
8
|
t(() => {
|
|
@@ -103,7 +103,6 @@ function d({ file: d, url: f }) {
|
|
|
103
103
|
]
|
|
104
104
|
});
|
|
105
105
|
}
|
|
106
|
-
//#endregion
|
|
107
106
|
export { d as AudioPlayer };
|
|
108
107
|
|
|
109
108
|
//# sourceMappingURL=AudioPlayer.js.map
|
|
@@ -2,7 +2,7 @@ import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
|
2
2
|
import { useEffect as t, useState as n } from "react";
|
|
3
3
|
import { Check as r, Copy as i, WrapText as a } from "lucide-react";
|
|
4
4
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/files/components/viewers/CodeViewer.tsx
|
|
6
6
|
function l({ file: l, url: d, language: f }) {
|
|
7
7
|
let p = e(), [m, h] = n(""), [g, _] = n(!0), [v, y] = n(!1), [b, x] = n(!1), S = f || u(l.name);
|
|
8
8
|
return t(() => {
|
|
@@ -119,7 +119,6 @@ function u(e) {
|
|
|
119
119
|
lua: "Lua"
|
|
120
120
|
}[e.split(".").pop()?.toLowerCase() || ""] || "Text";
|
|
121
121
|
}
|
|
122
|
-
//#endregion
|
|
123
122
|
export { l as CodeViewer };
|
|
124
123
|
|
|
125
124
|
//# sourceMappingURL=CodeViewer.js.map
|
|
@@ -2,7 +2,7 @@ import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
|
2
2
|
import { useRef as t, useState as n } from "react";
|
|
3
3
|
import { AlertCircle as r, Minimize2 as i, RotateCw as a, ZoomIn as o, ZoomOut as s } from "lucide-react";
|
|
4
4
|
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/files/components/viewers/ImageViewer.tsx
|
|
6
6
|
function u({ file: u, url: d }) {
|
|
7
7
|
let f = e(), [p, m] = n(1), [h, g] = n(0), [_, v] = n({
|
|
8
8
|
x: 0,
|
|
@@ -137,7 +137,6 @@ function u({ file: u, url: d }) {
|
|
|
137
137
|
]
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
|
-
//#endregion
|
|
141
140
|
export { u as ImageViewer };
|
|
142
141
|
|
|
143
142
|
//# sourceMappingURL=ImageViewer.js.map
|
|
@@ -2,7 +2,7 @@ import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
|
2
2
|
import { useState as t } from "react";
|
|
3
3
|
import { ZoomIn as n, ZoomOut as r } from "lucide-react";
|
|
4
4
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/files/components/viewers/PDFViewer.tsx
|
|
6
6
|
function o({ file: o, url: s }) {
|
|
7
7
|
let c = e(), [l, u] = t(100), d = () => u((e) => Math.min(e + 25, 200)), f = () => u((e) => Math.max(e - 25, 50)), p = `${s}#view=FitH&zoom=${l}`;
|
|
8
8
|
return /* @__PURE__ */ a("div", {
|
|
@@ -79,7 +79,6 @@ function o({ file: o, url: s }) {
|
|
|
79
79
|
]
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
|
-
//#endregion
|
|
83
82
|
export { o as PDFViewer };
|
|
84
83
|
|
|
85
84
|
//# sourceMappingURL=PDFViewer.js.map
|
|
@@ -2,7 +2,7 @@ import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
|
2
2
|
import { useEffect as t, useMemo as n, useState as r } from "react";
|
|
3
3
|
import { Check as i, Copy as a, Search as o, WrapText as s } from "lucide-react";
|
|
4
4
|
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/files/components/viewers/TextViewer.tsx
|
|
6
6
|
function d(e) {
|
|
7
7
|
return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
8
8
|
}
|
|
@@ -130,7 +130,6 @@ function f({ file: f, url: p }) {
|
|
|
130
130
|
]
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
|
-
//#endregion
|
|
134
133
|
export { f as TextViewer };
|
|
135
134
|
|
|
136
135
|
//# sourceMappingURL=TextViewer.js.map
|
|
@@ -2,7 +2,7 @@ import { useTr as e } from "../../../shared/hooks/useTr.js";
|
|
|
2
2
|
import { useEffect as t, useRef as n, useState as r } from "react";
|
|
3
3
|
import { Maximize as i, Pause as a, Play as o, Volume2 as s, VolumeX as c } from "lucide-react";
|
|
4
4
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/files/components/viewers/VideoPlayer.tsx
|
|
6
6
|
function d({ file: d, url: f }) {
|
|
7
7
|
let p = e(), m = n(null), [h, g] = r(!1), [_, v] = r(0), [y, b] = r(0), [x, S] = r(1), [C, w] = r(!1), [T, E] = r(1);
|
|
8
8
|
t(() => {
|
|
@@ -141,7 +141,6 @@ function d({ file: d, url: f }) {
|
|
|
141
141
|
})]
|
|
142
142
|
});
|
|
143
143
|
}
|
|
144
|
-
//#endregion
|
|
145
144
|
export { d as VideoPlayer };
|
|
146
145
|
|
|
147
146
|
//# sourceMappingURL=VideoPlayer.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BulkDeleteFilesDocument as e } from "../../generated/wspace-operations.js";
|
|
2
2
|
import { useMutation as t } from "@apollo/client/react";
|
|
3
|
-
|
|
3
|
+
// src/files/hooks/useBatchOperations.ts
|
|
4
4
|
var n = () => {
|
|
5
5
|
let [n, { loading: r, error: i }] = t(e, { refetchQueries: [
|
|
6
6
|
"GetFiles",
|
|
@@ -13,7 +13,6 @@ var n = () => {
|
|
|
13
13
|
error: i
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { n as useBulkDelete };
|
|
18
17
|
|
|
19
18
|
//# sourceMappingURL=useBatchOperations.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { fileViewModel as e, folderViewModel as t } from "../utils/fileViewModel.js";
|
|
2
2
|
import { GetFilesBinPageDocument as n } from "../../generated/wspace-operations.js";
|
|
3
3
|
import { useQuery as r } from "@apollo/client/react";
|
|
4
|
-
|
|
4
|
+
// src/files/hooks/useBinItems.ts
|
|
5
5
|
var i = (i) => {
|
|
6
6
|
let a = r(n, {
|
|
7
7
|
variables: {
|
|
@@ -23,7 +23,6 @@ var i = (i) => {
|
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
-
//#endregion
|
|
27
26
|
export { i as useBinItems };
|
|
28
27
|
|
|
29
28
|
//# sourceMappingURL=useBinItems.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GetFilesFolderBrowsePageDocument as e, GetFilesRootBrowsePageDocument as t } from "../../generated/wspace-operations.js";
|
|
2
2
|
import { useMemo as n } from "react";
|
|
3
3
|
import { useQuery as r } from "@apollo/client/react";
|
|
4
|
-
|
|
4
|
+
// src/files/hooks/useBrowsePage.ts
|
|
5
5
|
var i = ({ folderId: i, pageSize: a = 100, skip: o = !1 }) => {
|
|
6
6
|
let s = { limit: a }, c = r(t, {
|
|
7
7
|
variables: {
|
|
@@ -29,7 +29,6 @@ var i = ({ folderId: i, pageSize: a = 100, skip: o = !1 }) => {
|
|
|
29
29
|
refetch: u.refetch
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
-
//#endregion
|
|
33
32
|
export { i as useBrowsePage };
|
|
34
33
|
|
|
35
34
|
//# sourceMappingURL=useBrowsePage.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CopyFileDocument as e } from "../../generated/wspace-operations.js";
|
|
2
2
|
import { useMutation as t } from "@apollo/client/react";
|
|
3
|
-
|
|
3
|
+
// src/files/hooks/useCopyFile.ts
|
|
4
4
|
var n = () => {
|
|
5
5
|
let [n, { loading: r, error: i }] = t(e, { refetchQueries: [
|
|
6
6
|
"GetFilesRootBrowsePage",
|
|
@@ -18,7 +18,6 @@ var n = () => {
|
|
|
18
18
|
error: i
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
-
//#endregion
|
|
22
21
|
export { n as useCopyFile };
|
|
23
22
|
|
|
24
23
|
//# sourceMappingURL=useCopyFile.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { FileVisibility as e } from "../../generated/wspace-types.js";
|
|
2
|
+
import { CreateFolderDocument as t } from "../../generated/wspace-operations.js";
|
|
3
3
|
import { useMutation as n } from "@apollo/client/react";
|
|
4
|
-
|
|
4
|
+
// src/files/hooks/useCreateFolder.ts
|
|
5
5
|
var r = () => {
|
|
6
|
-
let [r, { loading: i, error: a }] = n(
|
|
6
|
+
let [r, { loading: i, error: a }] = n(t, {
|
|
7
7
|
refetchQueries: [
|
|
8
8
|
"GetFilesRootBrowsePage",
|
|
9
9
|
"GetFilesFolderBrowsePage",
|
|
@@ -12,11 +12,11 @@ var r = () => {
|
|
|
12
12
|
awaitRefetchQueries: !0
|
|
13
13
|
});
|
|
14
14
|
return {
|
|
15
|
-
mutateAsync: async (
|
|
16
|
-
let n =
|
|
17
|
-
if (
|
|
15
|
+
mutateAsync: async (t) => {
|
|
16
|
+
let n = t.visibility === void 0 ? void 0 : Object.values(e).find((e) => e === t.visibility);
|
|
17
|
+
if (t.visibility !== void 0 && n === void 0) throw Error("Unsupported folder visibility");
|
|
18
18
|
let i = await r({ variables: { input: {
|
|
19
|
-
...
|
|
19
|
+
...t,
|
|
20
20
|
visibility: n
|
|
21
21
|
} } });
|
|
22
22
|
return {
|
|
@@ -28,7 +28,6 @@ var r = () => {
|
|
|
28
28
|
error: a
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
-
//#endregion
|
|
32
31
|
export { r as useCreateFolder };
|
|
33
32
|
|
|
34
33
|
//# sourceMappingURL=useCreateFolder.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CreateFolderShareLinkDocument as e, ShareFolderDocument as t } from "../../generated/wspace-operations.js";
|
|
2
2
|
import { extractShareToken as n } from "./useCreateShare.js";
|
|
3
3
|
import { useMutation as r } from "@apollo/client/react";
|
|
4
|
-
|
|
4
|
+
// src/files/hooks/useCreateFolderShare.ts
|
|
5
5
|
function i(e) {
|
|
6
6
|
switch (e) {
|
|
7
7
|
case "COMMENT": return "COMMENTER";
|
|
@@ -50,7 +50,6 @@ var a = () => {
|
|
|
50
50
|
error: s ?? u
|
|
51
51
|
};
|
|
52
52
|
};
|
|
53
|
-
//#endregion
|
|
54
53
|
export { a as useCreateFolderShare };
|
|
55
54
|
|
|
56
55
|
//# sourceMappingURL=useCreateFolderShare.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CreateFileShareLinkDocument as e, ShareFileDocument as t } from "../../generated/wspace-operations.js";
|
|
2
2
|
import { useMutation as n } from "@apollo/client/react";
|
|
3
|
-
|
|
3
|
+
// src/files/hooks/useCreateShare.ts
|
|
4
4
|
function r(e) {
|
|
5
5
|
switch (e) {
|
|
6
6
|
case "COMMENT": return "COMMENTER";
|
|
@@ -52,7 +52,6 @@ var a = () => {
|
|
|
52
52
|
error: s ?? u
|
|
53
53
|
};
|
|
54
54
|
};
|
|
55
|
-
//#endregion
|
|
56
55
|
export { i as extractShareToken, a as useCreateShare };
|
|
57
56
|
|
|
58
57
|
//# sourceMappingURL=useCreateShare.js.map
|