@epam/ai-dial-chat-shared 1.3.0-dev.61 → 1.3.0-dev.64
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.
|
@@ -40,6 +40,12 @@ export interface DialFileManagerShellProps {
|
|
|
40
40
|
getDisabledTooltip?: (row: FileManagerGridRow) => string | undefined;
|
|
41
41
|
/** Tooltip shown on files with an unsupported type. */
|
|
42
42
|
unsupportedFileTypeTooltip?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Classes for the folders-tree panel. Replaces the panel's default classes
|
|
45
|
+
* (including its width), so include `shrink-0` and an explicit width.
|
|
46
|
+
* Omit to keep the variant's default.
|
|
47
|
+
*/
|
|
48
|
+
treeContainerClassName?: string;
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
45
51
|
* Renders the DialFileManager grid/tree/toolbar and its operation overlays
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAQ1C,OAAO,EAML,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEV,0BAA0B,EAE3B,MAAM,WAAW,CAAC;AAkDnB,yDAAyD;AACzD,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,UAAU,EAAE,qBAAqB,CAAC;IAClC,qDAAqD;IACrD,MAAM,EAAE,0BAA0B,CAAC;IACnC,4BAA4B;IAC5B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,kFAAkF;IAClF,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B,0CAA0C;IAC1C,WAAW,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,2DAA2D;IAC3D,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,yCAAyC;IACzC,qBAAqB,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACpD,mGAAmG;IACnG,OAAO,EAAE,sBAAsB,CAAC;IAChC,wEAAwE;IACxE,aAAa,EAAE,4BAA4B,CAAC;IAC5C,gFAAgF;IAChF,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACxC,6JAA6J;IAC7J,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sMAAsM;IACtM,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iFAAiF;IACjF,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE;QACvB,IAAI,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;KACzC,KAAK,OAAO,CAAC;IACd,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,MAAM,GAAG,SAAS,CAAC;IACrE,uDAAuD;IACvD,0BAA0B,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAQ1C,OAAO,EAML,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEV,0BAA0B,EAE3B,MAAM,WAAW,CAAC;AAkDnB,yDAAyD;AACzD,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,UAAU,EAAE,qBAAqB,CAAC;IAClC,qDAAqD;IACrD,MAAM,EAAE,0BAA0B,CAAC;IACnC,4BAA4B;IAC5B,SAAS,EAAE,mBAAmB,CAAC;IAC/B,kFAAkF;IAClF,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAC9B,0CAA0C;IAC1C,WAAW,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAChD,2DAA2D;IAC3D,aAAa,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC3B,yCAAyC;IACzC,qBAAqB,EAAE,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACpD,mGAAmG;IACnG,OAAO,EAAE,sBAAsB,CAAC;IAChC,wEAAwE;IACxE,aAAa,EAAE,4BAA4B,CAAC;IAC5C,gFAAgF;IAChF,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,8CAA8C;IAC9C,gBAAgB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACxC,6JAA6J;IAC7J,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,sMAAsM;IACtM,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,iFAAiF;IACjF,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE;QACvB,IAAI,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;KACzC,KAAK,OAAO,CAAC;IACd,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,MAAM,GAAG,SAAS,CAAC;IACrE,uDAAuD;IACvD,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAkhB9D,CAAC;;AAEF,wBAA0C"}
|
|
@@ -4,52 +4,52 @@ import { getParentFolderPath as ee } from "../path.js";
|
|
|
4
4
|
import { useGridEditingScroll as te } from "../useGridEditingScroll/useGridEditingScroll.js";
|
|
5
5
|
import { OperationLoaderModal as ne } from "../OperationLoaderModal/OperationLoaderModal.js";
|
|
6
6
|
import { toUploadQueueItems as re } from "../upload-queue.js";
|
|
7
|
-
import { ButtonVariant as
|
|
8
|
-
import { memo as
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { DialFileManager as
|
|
7
|
+
import { ButtonVariant as ie, NOT_ALLOWED_SYMBOLS_REGEXP as ae, PrimaryButton as oe, Spinner as se, TransferQueue as ce } from "@epam/ai-dial-ui-kit";
|
|
8
|
+
import { memo as r, useCallback as le, useEffect as ue, useMemo as i, useState as de } from "react";
|
|
9
|
+
import { Fragment as fe, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
10
|
+
import { DialFileManager as pe, DialFileManagerActions as s, DialFileManagerTabs as me, GridSelectionMode as he } from "@epam/ai-dial-react-file-manager";
|
|
11
11
|
//#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
|
|
12
|
-
var
|
|
12
|
+
var ge = (e, t) => {
|
|
13
13
|
if (e.isDownloading) return t.downloadingLabel;
|
|
14
14
|
if (e.isDeleting) return t.deletingLabel;
|
|
15
15
|
if (e.isRenaming && !e.isMoving) return t.renamingLabel;
|
|
16
16
|
if (e.isUnsharing) return t.unsharingLabel;
|
|
17
17
|
if (e.isRemovingAccess) return t.removingAccessLabel;
|
|
18
|
-
},
|
|
19
|
-
let { items:
|
|
20
|
-
|
|
18
|
+
}, c = ({ controller: r, labels: c, activeTab: l, tabs: u, onTabChange: d, selectedPaths: f, onSelectedPathsChange: _e, variant: p, actionProfile: ve, autoSelectUploadedItems: ye = !1, allowedFileTypes: be, maxSelectableFileSize: m, oversizedUploadMessage: h, isRowSelectable: g, getDisabledTooltip: xe, unsupportedFileTypeTooltip: Se, treeContainerClassName: _ }) => {
|
|
19
|
+
let { items: Ce, isLoading: we, error: Te, path: v, onPathChange: Ee, retry: De, onSearchFiles: Oe, isSearching: ke, searchResults: Ae, clearSearchResults: je, expandedPaths: y, loadedPaths: b, onExpandedPathsChange: x, onFolderPopupPathChange: Me, folderPopupLoadingPaths: S, onUploadFiles: Ne, onUploadArchive: Pe, onValidateUpload: Fe, uploadBatchState: C, cancelUpload: w, cancelUploadFile: Ie, clearUploadBatch: T, onCreateFolder: Le, onCreateFolderValidate: Re, onDownloadFiles: ze, isDownloading: Be, onDeleteFiles: E, isDeleting: Ve, onMoveToFiles: He, onRenameValidate: Ue, isRenaming: We, onCopyFiles: Ge, isCopying: Ke, isMoving: D, cancelCopyMove: qe, uploadEnabled: O, isNewButtonDisabled: k, disabledNewButtonTooltip: A, visibleColumns: j, dateLocale: M, dateOptions: N, actionLabels: P, sharedWithMeIds: Je, sharedByMePaths: F, onUnshareFiles: Ye, isUnsharing: Xe, onRemoveFilesAccess: Ze, isRemovingAccess: Qe, fileMetadata: I, isFileMetadataLoading: L, onGetInfo: $e, clearMetadata: R, sectionTab: et } = r, z = et ?? l, [B, tt] = de(void 0), { handleGridApiChange: nt, reset: V } = te();
|
|
20
|
+
ue(() => {
|
|
21
21
|
V();
|
|
22
22
|
}, [z, V]);
|
|
23
|
-
let H =
|
|
23
|
+
let H = i(() => {
|
|
24
24
|
let e = {};
|
|
25
|
-
return
|
|
25
|
+
return s.Download in P && (e[s.Download] = c.downloadLabel), s.Delete in P && (e[s.Delete] = c.deleteLabel), s.Rename in P && (e[s.Rename] = c.renameLabel), s.Copy in P && (e[s.Copy] = c.copyLabel), s.Move in P && (e[s.Move] = c.moveLabel), s.Duplicate in P && (e[s.Duplicate] = c.duplicateLabel), s.Unshare in P && (e[s.Unshare] = c.unshareLabel), s.RemoveAccess in P && (e[s.RemoveAccess] = c.removeAccessLabel), e;
|
|
26
26
|
}, [
|
|
27
27
|
P,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
]), U =
|
|
28
|
+
c.downloadLabel,
|
|
29
|
+
c.deleteLabel,
|
|
30
|
+
c.renameLabel,
|
|
31
|
+
c.copyLabel,
|
|
32
|
+
c.moveLabel,
|
|
33
|
+
c.duplicateLabel,
|
|
34
|
+
c.unshareLabel,
|
|
35
|
+
c.removeAccessLabel
|
|
36
|
+
]), U = i(() => s.Info in P ? {
|
|
37
37
|
...H,
|
|
38
|
-
[
|
|
38
|
+
[s.Info]: c.infoLabel
|
|
39
39
|
} : H, [
|
|
40
40
|
H,
|
|
41
41
|
P,
|
|
42
|
-
|
|
43
|
-
]), W =
|
|
44
|
-
if (
|
|
45
|
-
for (let e of
|
|
42
|
+
c.infoLabel
|
|
43
|
+
]), W = i(() => {
|
|
44
|
+
if (f.size === 0) return !1;
|
|
45
|
+
for (let e of f) if (!F.has(e)) return !1;
|
|
46
46
|
return !0;
|
|
47
|
-
}, [
|
|
47
|
+
}, [f, F]), G = i(() => {
|
|
48
48
|
if (W) return H;
|
|
49
|
-
let { [
|
|
49
|
+
let { [s.RemoveAccess]: e, ...t } = H;
|
|
50
50
|
return t;
|
|
51
|
-
}, [H, W]), K =
|
|
52
|
-
selectionMode:
|
|
51
|
+
}, [H, W]), K = p === n.Attach, rt = i(() => ({
|
|
52
|
+
selectionMode: he.MULTIPLE,
|
|
53
53
|
...K ? { filterable: !1 } : {},
|
|
54
54
|
visibleColumns: j,
|
|
55
55
|
dateLocale: M,
|
|
@@ -58,7 +58,7 @@ var he = (e, t) => {
|
|
|
58
58
|
domLayout: "normal",
|
|
59
59
|
rowSelection: {
|
|
60
60
|
mode: "multiRow",
|
|
61
|
-
isRowSelectable:
|
|
61
|
+
isRowSelectable: g ?? (() => !0)
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
actionLabels: U
|
|
@@ -68,253 +68,254 @@ var he = (e, t) => {
|
|
|
68
68
|
M,
|
|
69
69
|
N,
|
|
70
70
|
U,
|
|
71
|
-
|
|
72
|
-
]),
|
|
73
|
-
header:
|
|
74
|
-
containerClassName:
|
|
75
|
-
tabsAriaLabel:
|
|
76
|
-
tabs:
|
|
77
|
-
activeTab:
|
|
78
|
-
onTabChange:
|
|
71
|
+
g
|
|
72
|
+
]), it = i(() => ({
|
|
73
|
+
header: p === n.Attach ? null : c.treeHeaderByTab[l],
|
|
74
|
+
containerClassName: _ ?? (p === n.Attach ? "min-h-0 h-full w-[360px] shrink-0 rounded-xl bg-layer-raised shadow-sm" : void 0),
|
|
75
|
+
tabsAriaLabel: c.treeHeaderByTab[l],
|
|
76
|
+
tabs: u,
|
|
77
|
+
activeTab: l,
|
|
78
|
+
onTabChange: d,
|
|
79
79
|
expandedPaths: y,
|
|
80
80
|
loadedPaths: b,
|
|
81
81
|
loadingPaths: S,
|
|
82
82
|
onExpandedPathsChange: x,
|
|
83
83
|
actionLabels: H
|
|
84
84
|
}), [
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
c.treeHeaderByTab,
|
|
86
|
+
_,
|
|
87
|
+
p,
|
|
88
88
|
u,
|
|
89
|
-
|
|
89
|
+
l,
|
|
90
|
+
d,
|
|
90
91
|
y,
|
|
91
92
|
b,
|
|
92
93
|
S,
|
|
93
94
|
x,
|
|
94
95
|
H
|
|
95
|
-
]), q =
|
|
96
|
+
]), q = p === n.Standalone && ve === t.Full && z === me.MyFiles && O, at = i(() => ({
|
|
96
97
|
showHiddenFilesToggle: !0,
|
|
97
|
-
...K ? { newButtonVariant:
|
|
98
|
-
hiddenFilesSwitcherLabel:
|
|
99
|
-
showHiddenFilesLabel:
|
|
100
|
-
hideHiddenFilesLabel:
|
|
98
|
+
...K ? { newButtonVariant: ie.Neutral } : {},
|
|
99
|
+
hiddenFilesSwitcherLabel: c.hiddenFilesLabel,
|
|
100
|
+
showHiddenFilesLabel: c.showHiddenFilesLabel,
|
|
101
|
+
hideHiddenFilesLabel: c.hideHiddenFilesLabel,
|
|
101
102
|
isNewButtonDisabled: k,
|
|
102
103
|
disabledNewButtonTooltip: A,
|
|
103
104
|
newActions: {
|
|
104
105
|
uploadFiles: {
|
|
105
|
-
label:
|
|
106
|
+
label: c.uploadFilesLabel,
|
|
106
107
|
icon: null
|
|
107
108
|
},
|
|
108
109
|
newFolder: {
|
|
109
|
-
label:
|
|
110
|
+
label: c.newFolderLabel,
|
|
110
111
|
icon: null
|
|
111
112
|
},
|
|
112
113
|
...q ? { uploadArchive: {
|
|
113
|
-
label:
|
|
114
|
+
label: c.uploadArchiveAction,
|
|
114
115
|
icon: null
|
|
115
116
|
} } : {}
|
|
116
117
|
}
|
|
117
118
|
}), [
|
|
118
119
|
K,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
120
|
+
c.hiddenFilesLabel,
|
|
121
|
+
c.showHiddenFilesLabel,
|
|
122
|
+
c.hideHiddenFilesLabel,
|
|
122
123
|
k,
|
|
123
124
|
A,
|
|
124
|
-
|
|
125
|
-
|
|
125
|
+
c.uploadFilesLabel,
|
|
126
|
+
c.newFolderLabel,
|
|
126
127
|
q,
|
|
127
|
-
|
|
128
|
-
]),
|
|
129
|
-
getSelectionLabel:
|
|
128
|
+
c.uploadArchiveAction
|
|
129
|
+
]), ot = i(() => K ? void 0 : {
|
|
130
|
+
getSelectionLabel: c.getSelectionLabel,
|
|
130
131
|
actionLabels: G
|
|
131
132
|
}, [
|
|
132
133
|
K,
|
|
133
|
-
|
|
134
|
+
c.getSelectionLabel,
|
|
134
135
|
G
|
|
135
|
-
]),
|
|
136
|
-
cancelLabel:
|
|
137
|
-
confirmLabel:
|
|
138
|
-
closeLabel:
|
|
139
|
-
titleRenderer:
|
|
140
|
-
contentRenderer:
|
|
136
|
+
]), st = i(() => ({
|
|
137
|
+
cancelLabel: c.deleteCancelLabel,
|
|
138
|
+
confirmLabel: c.deleteConfirmLabel,
|
|
139
|
+
closeLabel: c.deleteCloseLabel,
|
|
140
|
+
titleRenderer: c.deleteConfirmTitle,
|
|
141
|
+
contentRenderer: c.deleteConfirmBody
|
|
141
142
|
}), [
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
]),
|
|
143
|
+
c.deleteCancelLabel,
|
|
144
|
+
c.deleteConfirmLabel,
|
|
145
|
+
c.deleteCloseLabel,
|
|
146
|
+
c.deleteConfirmTitle,
|
|
147
|
+
c.deleteConfirmBody
|
|
148
|
+
]), ct = i(() => {
|
|
148
149
|
let e;
|
|
149
|
-
for (let t of
|
|
150
|
+
for (let t of f) {
|
|
150
151
|
let n = ee(t);
|
|
151
152
|
if (e === void 0) e = n;
|
|
152
153
|
else if (e !== n) return;
|
|
153
154
|
}
|
|
154
155
|
return e;
|
|
155
|
-
}, [
|
|
156
|
-
copyLabel:
|
|
157
|
-
moveLabel:
|
|
158
|
-
addFolderLabel:
|
|
159
|
-
hiddenFilesSwitcherLabel:
|
|
160
|
-
getCopyHeader:
|
|
161
|
-
getMoveHeader:
|
|
162
|
-
disabledPathTooltip: J ?
|
|
163
|
-
emptyStateTitle:
|
|
164
|
-
emptyStateDescription:
|
|
156
|
+
}, [f]), J = B != null && S.has(B), Y = J ? B : ct, lt = i(() => ({
|
|
157
|
+
copyLabel: c.copyLabel,
|
|
158
|
+
moveLabel: c.moveLabel,
|
|
159
|
+
addFolderLabel: c.addFolderLabel,
|
|
160
|
+
hiddenFilesSwitcherLabel: c.hiddenFilesSwitcherLabel,
|
|
161
|
+
getCopyHeader: c.getCopyHeader,
|
|
162
|
+
getMoveHeader: c.getMoveHeader,
|
|
163
|
+
disabledPathTooltip: J ? c.folderPickerLoadingTooltip : c.moveSourceDisabledTooltip,
|
|
164
|
+
emptyStateTitle: c.folderPickerEmptyStateTitle,
|
|
165
|
+
emptyStateDescription: c.folderPickerEmptyStateDescription,
|
|
165
166
|
sourceFolder: Y,
|
|
166
167
|
destinationFolderPath: B,
|
|
167
|
-
setDestinationFolderPath:
|
|
168
|
+
setDestinationFolderPath: tt,
|
|
168
169
|
filesLoading: J
|
|
169
170
|
}), [
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
171
|
+
c.copyLabel,
|
|
172
|
+
c.moveLabel,
|
|
173
|
+
c.addFolderLabel,
|
|
174
|
+
c.hiddenFilesSwitcherLabel,
|
|
175
|
+
c.getCopyHeader,
|
|
176
|
+
c.getMoveHeader,
|
|
177
|
+
c.folderPickerLoadingTooltip,
|
|
178
|
+
c.moveSourceDisabledTooltip,
|
|
179
|
+
c.folderPickerEmptyStateTitle,
|
|
180
|
+
c.folderPickerEmptyStateDescription,
|
|
180
181
|
J,
|
|
181
182
|
Y,
|
|
182
183
|
B
|
|
183
|
-
]),
|
|
184
|
-
w(),
|
|
185
|
-
}, [w,
|
|
184
|
+
]), ut = le(() => {
|
|
185
|
+
w(), T();
|
|
186
|
+
}, [w, T]), X = i(() => re(C?.files ?? []), [C]), dt = i(() => ({
|
|
186
187
|
fileMetadata: I,
|
|
187
188
|
loading: L,
|
|
188
189
|
clearMetadata: R,
|
|
189
|
-
header:
|
|
190
|
-
nameLabel:
|
|
191
|
-
pathLabel:
|
|
192
|
-
modifiedDateLabel:
|
|
193
|
-
sizeLabel:
|
|
194
|
-
authorLabel:
|
|
190
|
+
header: c.metadataHeader,
|
|
191
|
+
nameLabel: c.metadataNameLabel,
|
|
192
|
+
pathLabel: c.metadataPathLabel,
|
|
193
|
+
modifiedDateLabel: c.metadataModifiedDateLabel,
|
|
194
|
+
sizeLabel: c.metadataSizeLabel,
|
|
195
|
+
authorLabel: c.metadataAuthorLabel
|
|
195
196
|
}), [
|
|
196
197
|
I,
|
|
197
198
|
L,
|
|
198
199
|
R,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
]), Z =
|
|
206
|
-
isDownloading:
|
|
207
|
-
isDeleting:
|
|
208
|
-
isRenaming:
|
|
200
|
+
c.metadataHeader,
|
|
201
|
+
c.metadataNameLabel,
|
|
202
|
+
c.metadataPathLabel,
|
|
203
|
+
c.metadataModifiedDateLabel,
|
|
204
|
+
c.metadataSizeLabel,
|
|
205
|
+
c.metadataAuthorLabel
|
|
206
|
+
]), Z = ge({
|
|
207
|
+
isDownloading: Be,
|
|
208
|
+
isDeleting: Ve,
|
|
209
|
+
isRenaming: We,
|
|
209
210
|
isMoving: D,
|
|
210
|
-
isUnsharing:
|
|
211
|
-
isRemovingAccess:
|
|
212
|
-
},
|
|
213
|
-
title:
|
|
211
|
+
isUnsharing: Xe,
|
|
212
|
+
isRemovingAccess: Qe
|
|
213
|
+
}, c), Q = "bg-layer-base", $ = i(() => v.split("/").filter(Boolean).length > 1 ? {
|
|
214
|
+
title: c.folderEmptyStateTitle,
|
|
214
215
|
description: ""
|
|
215
|
-
} :
|
|
216
|
+
} : c.emptyStateByTab[z], [
|
|
216
217
|
v,
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
c.folderEmptyStateTitle,
|
|
219
|
+
c.emptyStateByTab,
|
|
219
220
|
z
|
|
220
221
|
]);
|
|
221
|
-
return /* @__PURE__ */
|
|
222
|
-
|
|
222
|
+
return /* @__PURE__ */ o(fe, { children: [
|
|
223
|
+
Te == null ? /* @__PURE__ */ o("div", {
|
|
223
224
|
className: e("relative flex min-h-0 w-full grow overflow-auto", Q),
|
|
224
|
-
children: [/* @__PURE__ */
|
|
225
|
+
children: [/* @__PURE__ */ a(pe, {
|
|
225
226
|
className: e("min-h-0 w-full grow", Q, K && "p-0"),
|
|
226
|
-
contentClassName:
|
|
227
|
-
gridClassName:
|
|
228
|
-
items:
|
|
227
|
+
contentClassName: p === n.Attach ? "px-0 pb-0" : void 0,
|
|
228
|
+
gridClassName: p === n.Attach ? "size-full gap-6 px-6 py-4" : "size-full",
|
|
229
|
+
items: Ce,
|
|
229
230
|
path: v,
|
|
230
|
-
onPathChange:
|
|
231
|
-
onGridApiChange:
|
|
232
|
-
filesLoading:
|
|
233
|
-
allowedFileTypes:
|
|
234
|
-
maxSelectableFileSize:
|
|
235
|
-
maxFileSize:
|
|
236
|
-
uploadValidationMessages:
|
|
237
|
-
selectedPaths:
|
|
238
|
-
onSelectedPathsChange:
|
|
231
|
+
onPathChange: Ee,
|
|
232
|
+
onGridApiChange: nt,
|
|
233
|
+
filesLoading: we,
|
|
234
|
+
allowedFileTypes: be,
|
|
235
|
+
maxSelectableFileSize: m,
|
|
236
|
+
maxFileSize: m,
|
|
237
|
+
uploadValidationMessages: h == null ? void 0 : { oversizedFiles: h },
|
|
238
|
+
selectedPaths: f,
|
|
239
|
+
onSelectedPathsChange: _e,
|
|
239
240
|
navigationPanelOptions: {
|
|
240
241
|
searchable: !0,
|
|
241
|
-
placeholder:
|
|
242
|
+
placeholder: c.searchPlaceholderByTab?.[z]
|
|
242
243
|
},
|
|
243
244
|
hideSearchPathItemName: !0,
|
|
244
|
-
onSearchFiles:
|
|
245
|
-
searchInProgress:
|
|
246
|
-
searchResults:
|
|
247
|
-
clearSearchResults:
|
|
248
|
-
gridOptions:
|
|
249
|
-
treeOptions:
|
|
250
|
-
onFolderPopupPathChange:
|
|
251
|
-
toolbarOptions:
|
|
252
|
-
bulkActionsToolbarOptions:
|
|
253
|
-
autoSelectUploadedItems:
|
|
245
|
+
onSearchFiles: Oe,
|
|
246
|
+
searchInProgress: ke,
|
|
247
|
+
searchResults: Ae ?? [],
|
|
248
|
+
clearSearchResults: je,
|
|
249
|
+
gridOptions: rt,
|
|
250
|
+
treeOptions: it,
|
|
251
|
+
onFolderPopupPathChange: Me,
|
|
252
|
+
toolbarOptions: at,
|
|
253
|
+
bulkActionsToolbarOptions: ot,
|
|
254
|
+
autoSelectUploadedItems: ye,
|
|
254
255
|
emptyStateTitle: $.title,
|
|
255
256
|
emptyStateDescription: $.description,
|
|
256
|
-
searchEmptyStateTitle:
|
|
257
|
+
searchEmptyStateTitle: c.searchEmptyStateTitle,
|
|
257
258
|
uploadEnabled: O,
|
|
258
|
-
sharedWithMeIds:
|
|
259
|
+
sharedWithMeIds: Je,
|
|
259
260
|
sharedByMePaths: F,
|
|
260
|
-
onUnshareFiles:
|
|
261
|
-
onRemoveFilesAccess:
|
|
262
|
-
fileMetadataPopupOptions:
|
|
263
|
-
onGetInfo:
|
|
264
|
-
onUploadFiles:
|
|
265
|
-
onUploadArchive:
|
|
266
|
-
onValidateUpload:
|
|
267
|
-
onCreateFolder:
|
|
268
|
-
onCreateFolderValidate:
|
|
269
|
-
onDownloadFiles:
|
|
270
|
-
onDeleteFiles:
|
|
271
|
-
onMoveToFiles:
|
|
272
|
-
onCopyFiles:
|
|
273
|
-
onRenameValidate:
|
|
274
|
-
renameValidationMessages:
|
|
261
|
+
onUnshareFiles: Ye,
|
|
262
|
+
onRemoveFilesAccess: Ze,
|
|
263
|
+
fileMetadataPopupOptions: dt,
|
|
264
|
+
onGetInfo: $e,
|
|
265
|
+
onUploadFiles: Ne,
|
|
266
|
+
onUploadArchive: Pe,
|
|
267
|
+
onValidateUpload: Fe,
|
|
268
|
+
onCreateFolder: Le,
|
|
269
|
+
onCreateFolderValidate: Re,
|
|
270
|
+
onDownloadFiles: ze,
|
|
271
|
+
onDeleteFiles: E,
|
|
272
|
+
onMoveToFiles: He,
|
|
273
|
+
onCopyFiles: Ge,
|
|
274
|
+
onRenameValidate: Ue,
|
|
275
|
+
renameValidationMessages: c.renameValidationMessages,
|
|
275
276
|
isRenameFileAvailable: O,
|
|
276
|
-
deleteConfirmationOptions:
|
|
277
|
-
conflictResolutionPopupOptions:
|
|
278
|
-
destinationFolderPopupOptions:
|
|
279
|
-
forbiddenSymbolsRegExp:
|
|
280
|
-
forbiddenSymbolsTooltip:
|
|
281
|
-
getDisabledTooltip:
|
|
282
|
-
unsupportedFileTypeTooltip:
|
|
283
|
-
}), Z != null && /* @__PURE__ */
|
|
277
|
+
deleteConfirmationOptions: st,
|
|
278
|
+
conflictResolutionPopupOptions: c.conflictResolutionPopupOptions,
|
|
279
|
+
destinationFolderPopupOptions: lt,
|
|
280
|
+
forbiddenSymbolsRegExp: ae,
|
|
281
|
+
forbiddenSymbolsTooltip: c.forbiddenSymbolsTooltip,
|
|
282
|
+
getDisabledTooltip: xe,
|
|
283
|
+
unsupportedFileTypeTooltip: Se
|
|
284
|
+
}), Z != null && /* @__PURE__ */ a("div", {
|
|
284
285
|
"aria-live": "polite",
|
|
285
286
|
className: "absolute inset-0 z-[52] flex items-center justify-center bg-backdrop desktop:p-4",
|
|
286
|
-
children: /* @__PURE__ */
|
|
287
|
+
children: /* @__PURE__ */ a(se, {
|
|
287
288
|
size: 32,
|
|
288
289
|
fullWidth: !1,
|
|
289
290
|
ariaLabel: Z
|
|
290
291
|
})
|
|
291
292
|
})]
|
|
292
|
-
}) : /* @__PURE__ */
|
|
293
|
+
}) : /* @__PURE__ */ o("div", {
|
|
293
294
|
role: "alert",
|
|
294
295
|
className: "flex flex-col items-center gap-4 p-6",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
296
|
-
label:
|
|
297
|
-
onClick:
|
|
296
|
+
children: [/* @__PURE__ */ a("p", { children: c.errorMessage }), /* @__PURE__ */ a(oe, {
|
|
297
|
+
label: c.retryLabel,
|
|
298
|
+
onClick: De
|
|
298
299
|
})]
|
|
299
300
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
301
|
+
/* @__PURE__ */ a("div", {
|
|
301
302
|
className: "fixed bottom-4 end-4 z-[70]",
|
|
302
|
-
children: /* @__PURE__ */
|
|
303
|
-
title:
|
|
303
|
+
children: /* @__PURE__ */ a(ce, {
|
|
304
|
+
title: c.getUploadQueueTitle(X.length),
|
|
304
305
|
items: X,
|
|
305
|
-
onClose:
|
|
306
|
-
onCancelItem:
|
|
307
|
-
labels:
|
|
306
|
+
onClose: ut,
|
|
307
|
+
onCancelItem: Ie,
|
|
308
|
+
labels: c.uploadQueueLabels
|
|
308
309
|
})
|
|
309
310
|
}),
|
|
310
|
-
(
|
|
311
|
-
title: D ?
|
|
312
|
-
text: D ?
|
|
313
|
-
cancelLabel:
|
|
314
|
-
onCancel:
|
|
311
|
+
(Ke || D) && /* @__PURE__ */ a(ne, {
|
|
312
|
+
title: D ? c.operationLoaderMoveTitle : c.operationLoaderCopyTitle,
|
|
313
|
+
text: D ? c.movingLabel : c.copyingLabel,
|
|
314
|
+
cancelLabel: c.operationLoaderCancelLabel,
|
|
315
|
+
onCancel: qe
|
|
315
316
|
})
|
|
316
317
|
] });
|
|
317
318
|
};
|
|
318
|
-
|
|
319
|
+
r(c);
|
|
319
320
|
//#endregion
|
|
320
|
-
export {
|
|
321
|
+
export { c as DialFileManagerShell };
|
package/package.json
CHANGED