@epam/ai-dial-chat-shared 1.3.0-dev.245 → 1.3.0-dev.248
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/components/ConfirmationView/ConfirmationFooter.d.ts.map +1 -1
- package/components/ConfirmationView/ConfirmationFooter.js +24 -25
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +2 -2
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +1 -1
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +55 -58
- package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +1 -1
- package/components/MarkdownRenderer/Table/MarkdownTable.js +56 -57
- package/components/TextRefinementField/TextRefinementField.d.ts.map +1 -1
- package/components/TextRefinementField/TextRefinementField.js +65 -65
- package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -1
- package/file-manager/DialFileManagerShell/DialFileManagerShell.js +302 -295
- package/package.json +4 -12
|
@@ -4,365 +4,372 @@ import { DialFileManagerActionProfile as n, DialFileManagerVariant as r } from "
|
|
|
4
4
|
import { getParentFolderPath as ee } from "../path.js";
|
|
5
5
|
import { useGridEditingScroll as te } from "../useGridEditingScroll/useGridEditingScroll.js";
|
|
6
6
|
import { OperationLoaderModal as ne } from "../OperationLoaderModal/OperationLoaderModal.js";
|
|
7
|
-
import { TransferQueueRowKind as
|
|
8
|
-
import
|
|
9
|
-
import { Button as
|
|
10
|
-
import { memo as
|
|
11
|
-
import { Fragment as
|
|
12
|
-
import { DialFileManager as
|
|
7
|
+
import { TransferQueueRowKind as re, buildTransferQueueLabels as ie, parseTransferQueueRowId as ae, toTransferQueueItems as oe } from "../upload-queue.js";
|
|
8
|
+
import i from "./DialFileManagerShell.module.scss.js";
|
|
9
|
+
import { Button as se, ButtonAppearance as ce, ButtonVariant as a, ElementSize as le, ErrorMessageNotification as ue, LiveRegion as de, LiveRegionElement as fe, NOT_ALLOWED_SYMBOLS_REGEXP as pe, Spinner as me, TransferQueue as he } from "@epam/ai-dial-ui-kit";
|
|
10
|
+
import { memo as o, useCallback as s, useEffect as ge, useMemo as c, useState as _e } from "react";
|
|
11
|
+
import { Fragment as ve, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
12
|
+
import { DialFileManager as ye, DialFileManagerActions as d, DialFileManagerTabs as be, GridSelectionMode as xe } from "@epam/ai-dial-react-file-manager";
|
|
13
13
|
//#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
|
|
14
|
-
var
|
|
14
|
+
var Se = (e, t) => {
|
|
15
15
|
if (e.isDeleting) return t.deletingLabel;
|
|
16
16
|
if (e.isRenaming && !e.isMoving) return t.renamingLabel;
|
|
17
17
|
if (e.isUnsharing) return t.unsharingLabel;
|
|
18
18
|
if (e.isRemovingAccess) return t.removingAccessLabel;
|
|
19
|
-
},
|
|
20
|
-
let { items:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, [
|
|
24
|
-
let
|
|
19
|
+
}, f = ({ controller: o, labels: f, activeTab: p, tabs: m, onTabChange: h, selectedPaths: g, onSelectedPathsChange: Ce, variant: _, actionProfile: we, autoSelectUploadedItems: Te = !1, allowedFileTypes: Ee, maxSelectableFileSize: v, oversizedUploadMessage: y, isRowSelectable: b, getDisabledTooltip: De, unsupportedFileTypeTooltip: Oe, treeContainerClassName: x, onPreview: ke, onTableFileClick: Ae, previewExtensions: je, styles: Me }) => {
|
|
20
|
+
let { items: Ne, isLoading: Pe, error: Fe, path: S, onPathChange: Ie, retry: Le, onSearchFiles: Re, isSearching: ze, searchResults: Be, clearSearchResults: Ve, expandedPaths: He, loadedPaths: Ue, onExpandedPathsChange: We, onFolderPopupPathChange: Ge, folderPopupLoadingPaths: C, onUploadFiles: Ke, onUploadArchive: qe, onValidateUpload: Je, uploadBatchState: w, cancelUpload: T, cancelUploadFile: E, clearUploadBatch: D, downloadBatchState: O, cancelDownloadFile: k, cancelAllDownloads: A, clearDownloadBatch: j, onCreateFolder: Ye, onCreateFolderValidate: Xe, onDownloadFiles: Ze, onDeleteFiles: Qe, isDeleting: $e, onMoveToFiles: et, onRenameValidate: tt, isRenaming: nt, onCopyFiles: rt, isCopying: it, isMoving: M, cancelCopyMove: at, uploadEnabled: N, isNewButtonDisabled: P, disabledNewButtonTooltip: F, visibleColumns: I, dateLocale: L, dateOptions: R, actionLabels: z, sharedWithMeIds: ot, sharedByMePaths: B, onUnshareFiles: st, isUnsharing: ct, onRemoveFilesAccess: lt, isRemovingAccess: ut, fileMetadata: V, isFileMetadataLoading: H, onGetInfo: dt, clearMetadata: U, sectionTab: ft } = o, W = ft ?? p, [G, pt] = _e(void 0), { handleGridApiChange: mt, reset: K } = te();
|
|
21
|
+
ge(() => {
|
|
22
|
+
K();
|
|
23
|
+
}, [W, K]);
|
|
24
|
+
let q = c(() => {
|
|
25
25
|
let e = {};
|
|
26
|
-
return
|
|
26
|
+
return d.Download in z && (e[d.Download] = f.downloadLabel), d.Delete in z && (e[d.Delete] = f.deleteLabel), d.Rename in z && (e[d.Rename] = f.renameLabel), d.Copy in z && (e[d.Copy] = f.copyLabel), d.Move in z && (e[d.Move] = f.moveLabel), d.Duplicate in z && (e[d.Duplicate] = f.duplicateLabel), d.Unshare in z && (e[d.Unshare] = f.unshareLabel), d.RemoveAccess in z && (e[d.RemoveAccess] = f.removeAccessLabel), e;
|
|
27
27
|
}, [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
]),
|
|
38
|
-
let e =
|
|
39
|
-
...
|
|
40
|
-
[
|
|
28
|
+
z,
|
|
29
|
+
f.downloadLabel,
|
|
30
|
+
f.deleteLabel,
|
|
31
|
+
f.renameLabel,
|
|
32
|
+
f.copyLabel,
|
|
33
|
+
f.moveLabel,
|
|
34
|
+
f.duplicateLabel,
|
|
35
|
+
f.unshareLabel,
|
|
36
|
+
f.removeAccessLabel
|
|
37
|
+
]), J = c(() => {
|
|
38
|
+
let e = f.previewLabel == null ? q : {
|
|
39
|
+
...q,
|
|
40
|
+
[d.Preview]: f.previewLabel
|
|
41
41
|
};
|
|
42
|
-
return
|
|
42
|
+
return d.Info in z ? {
|
|
43
43
|
...e,
|
|
44
|
-
[
|
|
44
|
+
[d.Info]: f.infoLabel
|
|
45
45
|
} : e;
|
|
46
46
|
}, [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
]),
|
|
52
|
-
if (
|
|
53
|
-
for (let e of
|
|
47
|
+
q,
|
|
48
|
+
z,
|
|
49
|
+
f.infoLabel,
|
|
50
|
+
f.previewLabel
|
|
51
|
+
]), Y = c(() => {
|
|
52
|
+
if (g.size === 0) return !1;
|
|
53
|
+
for (let e of g) if (!B.has(e)) return !1;
|
|
54
54
|
return !0;
|
|
55
|
-
}, [
|
|
56
|
-
if (
|
|
57
|
-
let { [
|
|
55
|
+
}, [g, B]), X = c(() => {
|
|
56
|
+
if (Y) return q;
|
|
57
|
+
let { [d.RemoveAccess]: e, ...t } = q;
|
|
58
58
|
return t;
|
|
59
|
-
}, [
|
|
60
|
-
selectionMode:
|
|
59
|
+
}, [q, Y]), Z = _ === r.Attach, ht = c(() => ({
|
|
60
|
+
selectionMode: xe.MULTIPLE,
|
|
61
61
|
filterable: !1,
|
|
62
62
|
withoutHeaderBorders: !0,
|
|
63
63
|
containerClassName: "rounded-none shadow-none",
|
|
64
|
-
visibleColumns:
|
|
65
|
-
dateLocale:
|
|
66
|
-
dateOptions:
|
|
64
|
+
visibleColumns: I,
|
|
65
|
+
dateLocale: L,
|
|
66
|
+
dateOptions: R,
|
|
67
67
|
additionalGridOptions: {
|
|
68
68
|
domLayout: "normal",
|
|
69
69
|
rowSelection: {
|
|
70
70
|
mode: "multiRow",
|
|
71
|
-
isRowSelectable:
|
|
71
|
+
isRowSelectable: b ?? (() => !0)
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
actionLabels:
|
|
74
|
+
actionLabels: J
|
|
75
75
|
}), [
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
]),
|
|
82
|
-
header:
|
|
83
|
-
containerClassName:
|
|
84
|
-
tabsAriaLabel:
|
|
85
|
-
tabs:
|
|
86
|
-
activeTab:
|
|
87
|
-
onTabChange:
|
|
88
|
-
expandedPaths:
|
|
89
|
-
loadedPaths:
|
|
90
|
-
loadingPaths:
|
|
91
|
-
onExpandedPathsChange:
|
|
92
|
-
actionLabels:
|
|
76
|
+
I,
|
|
77
|
+
L,
|
|
78
|
+
R,
|
|
79
|
+
J,
|
|
80
|
+
b
|
|
81
|
+
]), gt = c(() => ({
|
|
82
|
+
header: f.treeHeader ?? null,
|
|
83
|
+
containerClassName: x ?? (_ === r.Attach ? "min-h-0 h-full w-[360px] shrink-0 border-e border-tertiary bg-layer-raised" : void 0),
|
|
84
|
+
tabsAriaLabel: f.treeHeaderByTab[p],
|
|
85
|
+
tabs: m,
|
|
86
|
+
activeTab: p,
|
|
87
|
+
onTabChange: h,
|
|
88
|
+
expandedPaths: He,
|
|
89
|
+
loadedPaths: Ue,
|
|
90
|
+
loadingPaths: C,
|
|
91
|
+
onExpandedPathsChange: We,
|
|
92
|
+
actionLabels: q
|
|
93
93
|
}), [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
h,
|
|
94
|
+
f.treeHeader,
|
|
95
|
+
f.treeHeaderByTab,
|
|
96
|
+
x,
|
|
97
|
+
_,
|
|
99
98
|
m,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
99
|
+
p,
|
|
100
|
+
h,
|
|
101
|
+
He,
|
|
102
|
+
Ue,
|
|
103
|
+
C,
|
|
104
|
+
We,
|
|
105
|
+
q
|
|
106
|
+
]), _t = _ === r.Standalone && we === n.Full && W === be.MyFiles && N, vt = c(() => ({
|
|
107
107
|
showHiddenFilesToggle: !0,
|
|
108
|
-
...Z ? { newButtonVariant:
|
|
109
|
-
hiddenFilesSwitcherLabel:
|
|
110
|
-
showHiddenFilesLabel:
|
|
111
|
-
hideHiddenFilesLabel:
|
|
112
|
-
isNewButtonDisabled:
|
|
113
|
-
disabledNewButtonTooltip:
|
|
108
|
+
...Z ? { newButtonVariant: a.Neutral } : {},
|
|
109
|
+
hiddenFilesSwitcherLabel: f.hiddenFilesLabel,
|
|
110
|
+
showHiddenFilesLabel: f.showHiddenFilesLabel,
|
|
111
|
+
hideHiddenFilesLabel: f.hideHiddenFilesLabel,
|
|
112
|
+
isNewButtonDisabled: P,
|
|
113
|
+
disabledNewButtonTooltip: F,
|
|
114
114
|
newActions: {
|
|
115
115
|
uploadFiles: {
|
|
116
|
-
label:
|
|
116
|
+
label: f.uploadFilesLabel,
|
|
117
117
|
icon: null
|
|
118
118
|
},
|
|
119
119
|
newFolder: {
|
|
120
|
-
label:
|
|
120
|
+
label: f.newFolderLabel,
|
|
121
121
|
icon: null
|
|
122
122
|
},
|
|
123
|
-
...
|
|
124
|
-
label:
|
|
123
|
+
..._t ? { uploadArchive: {
|
|
124
|
+
label: f.uploadArchiveAction,
|
|
125
125
|
icon: null
|
|
126
126
|
} } : {}
|
|
127
127
|
}
|
|
128
128
|
}), [
|
|
129
129
|
Z,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
]),
|
|
140
|
-
getSelectionLabel:
|
|
141
|
-
actionLabels:
|
|
130
|
+
f.hiddenFilesLabel,
|
|
131
|
+
f.showHiddenFilesLabel,
|
|
132
|
+
f.hideHiddenFilesLabel,
|
|
133
|
+
P,
|
|
134
|
+
F,
|
|
135
|
+
f.uploadFilesLabel,
|
|
136
|
+
f.newFolderLabel,
|
|
137
|
+
_t,
|
|
138
|
+
f.uploadArchiveAction
|
|
139
|
+
]), yt = c(() => Z ? void 0 : {
|
|
140
|
+
getSelectionLabel: f.getSelectionLabel,
|
|
141
|
+
actionLabels: X
|
|
142
142
|
}, [
|
|
143
143
|
Z,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
]),
|
|
147
|
-
cancelLabel:
|
|
148
|
-
confirmLabel:
|
|
149
|
-
closeLabel:
|
|
150
|
-
titleRenderer:
|
|
151
|
-
contentRenderer:
|
|
144
|
+
f.getSelectionLabel,
|
|
145
|
+
X
|
|
146
|
+
]), bt = c(() => ({
|
|
147
|
+
cancelLabel: f.deleteCancelLabel,
|
|
148
|
+
confirmLabel: f.deleteConfirmLabel,
|
|
149
|
+
closeLabel: f.deleteCloseLabel,
|
|
150
|
+
titleRenderer: f.deleteConfirmTitle,
|
|
151
|
+
contentRenderer: f.deleteConfirmBody
|
|
152
152
|
}), [
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
]),
|
|
153
|
+
f.deleteCancelLabel,
|
|
154
|
+
f.deleteConfirmLabel,
|
|
155
|
+
f.deleteCloseLabel,
|
|
156
|
+
f.deleteConfirmTitle,
|
|
157
|
+
f.deleteConfirmBody
|
|
158
|
+
]), xt = c(() => {
|
|
159
159
|
let e;
|
|
160
|
-
for (let t of
|
|
160
|
+
for (let t of g) {
|
|
161
161
|
let n = ee(t);
|
|
162
162
|
if (e === void 0) e = n;
|
|
163
163
|
else if (e !== n) return;
|
|
164
164
|
}
|
|
165
165
|
return e;
|
|
166
|
-
}, [
|
|
167
|
-
copyLabel:
|
|
168
|
-
moveLabel:
|
|
169
|
-
addFolderLabel:
|
|
170
|
-
hiddenFilesSwitcherLabel:
|
|
171
|
-
getCopyHeader:
|
|
172
|
-
getMoveHeader:
|
|
173
|
-
disabledPathTooltip: Q ?
|
|
174
|
-
movedIntoItselfTooltip:
|
|
175
|
-
emptyStateTitle:
|
|
176
|
-
emptyStateDescription:
|
|
177
|
-
sourceFolder:
|
|
178
|
-
destinationFolderPath:
|
|
179
|
-
setDestinationFolderPath:
|
|
166
|
+
}, [g]), Q = G != null && C.has(G), St = Q ? G : xt, Ct = c(() => ({
|
|
167
|
+
copyLabel: f.copyLabel,
|
|
168
|
+
moveLabel: f.moveLabel,
|
|
169
|
+
addFolderLabel: f.addFolderLabel,
|
|
170
|
+
hiddenFilesSwitcherLabel: f.hiddenFilesSwitcherLabel,
|
|
171
|
+
getCopyHeader: f.getCopyHeader,
|
|
172
|
+
getMoveHeader: f.getMoveHeader,
|
|
173
|
+
disabledPathTooltip: Q ? f.folderPickerLoadingTooltip : f.moveSourceDisabledTooltip,
|
|
174
|
+
movedIntoItselfTooltip: f.movedIntoItselfTooltip,
|
|
175
|
+
emptyStateTitle: f.folderPickerEmptyStateTitle,
|
|
176
|
+
emptyStateDescription: f.folderPickerEmptyStateDescription,
|
|
177
|
+
sourceFolder: St,
|
|
178
|
+
destinationFolderPath: G,
|
|
179
|
+
setDestinationFolderPath: pt,
|
|
180
180
|
filesLoading: Q
|
|
181
181
|
}), [
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
182
|
+
f.copyLabel,
|
|
183
|
+
f.moveLabel,
|
|
184
|
+
f.addFolderLabel,
|
|
185
|
+
f.hiddenFilesSwitcherLabel,
|
|
186
|
+
f.getCopyHeader,
|
|
187
|
+
f.getMoveHeader,
|
|
188
|
+
f.folderPickerLoadingTooltip,
|
|
189
|
+
f.moveSourceDisabledTooltip,
|
|
190
|
+
f.movedIntoItselfTooltip,
|
|
191
|
+
f.folderPickerEmptyStateTitle,
|
|
192
|
+
f.folderPickerEmptyStateDescription,
|
|
193
193
|
Q,
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
]),
|
|
197
|
-
|
|
194
|
+
St,
|
|
195
|
+
G
|
|
196
|
+
]), wt = s(() => {
|
|
197
|
+
T(), A(), D(), j();
|
|
198
198
|
}, [
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
]),
|
|
204
|
-
let t =
|
|
205
|
-
t?.kind ===
|
|
206
|
-
}, [
|
|
199
|
+
T,
|
|
200
|
+
A,
|
|
201
|
+
D,
|
|
202
|
+
j
|
|
203
|
+
]), Tt = s((e) => {
|
|
204
|
+
let t = ae(e);
|
|
205
|
+
t?.kind === re.Upload ? E(t.entryId) : t?.kind === re.Download && k(t.entryId);
|
|
206
|
+
}, [E, k]), Et = c(() => oe(w, O, f.uploadFailureMessages), [
|
|
207
|
+
w,
|
|
207
208
|
O,
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
downloadNames: new Set(M?.files.map((e) => e.name))
|
|
209
|
+
f.uploadFailureMessages
|
|
210
|
+
]), Dt = w?.files.length ?? 0, Ot = O?.files.length ?? 0, kt = f.getTransferQueueTitle?.({
|
|
211
|
+
uploads: Dt,
|
|
212
|
+
downloads: Ot
|
|
213
|
+
}) ?? f.getUploadQueueTitle(Dt + Ot), At = c(() => ie({
|
|
214
|
+
uploadLabels: f.uploadQueueLabels,
|
|
215
|
+
downloadLabels: f.downloadQueueLabels,
|
|
216
|
+
mixedProgressLabel: f.transferQueueProgressAriaLabel,
|
|
217
|
+
uploadNames: new Set(w?.files.map((e) => e.name)),
|
|
218
|
+
downloadNames: new Set(O?.files.map((e) => e.name))
|
|
219
219
|
}), [
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
]),
|
|
226
|
-
fileMetadata:
|
|
227
|
-
loading:
|
|
228
|
-
clearMetadata:
|
|
229
|
-
header:
|
|
230
|
-
nameLabel:
|
|
231
|
-
pathLabel:
|
|
232
|
-
modifiedDateLabel:
|
|
233
|
-
sizeLabel:
|
|
234
|
-
authorLabel:
|
|
220
|
+
f.uploadQueueLabels,
|
|
221
|
+
f.downloadQueueLabels,
|
|
222
|
+
f.transferQueueProgressAriaLabel,
|
|
223
|
+
w,
|
|
224
|
+
O
|
|
225
|
+
]), jt = c(() => ({
|
|
226
|
+
fileMetadata: V,
|
|
227
|
+
loading: H,
|
|
228
|
+
clearMetadata: U,
|
|
229
|
+
header: f.metadataHeader,
|
|
230
|
+
nameLabel: f.metadataNameLabel,
|
|
231
|
+
pathLabel: f.metadataPathLabel,
|
|
232
|
+
modifiedDateLabel: f.metadataModifiedDateLabel,
|
|
233
|
+
sizeLabel: f.metadataSizeLabel,
|
|
234
|
+
authorLabel: f.metadataAuthorLabel
|
|
235
235
|
}), [
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
]),
|
|
246
|
-
isDeleting:
|
|
247
|
-
isRenaming:
|
|
248
|
-
isMoving:
|
|
249
|
-
isUnsharing:
|
|
250
|
-
isRemovingAccess:
|
|
251
|
-
},
|
|
252
|
-
title:
|
|
236
|
+
V,
|
|
237
|
+
H,
|
|
238
|
+
U,
|
|
239
|
+
f.metadataHeader,
|
|
240
|
+
f.metadataNameLabel,
|
|
241
|
+
f.metadataPathLabel,
|
|
242
|
+
f.metadataModifiedDateLabel,
|
|
243
|
+
f.metadataSizeLabel,
|
|
244
|
+
f.metadataAuthorLabel
|
|
245
|
+
]), $ = Se({
|
|
246
|
+
isDeleting: $e,
|
|
247
|
+
isRenaming: nt,
|
|
248
|
+
isMoving: M,
|
|
249
|
+
isUnsharing: ct,
|
|
250
|
+
isRemovingAccess: ut
|
|
251
|
+
}, f), Mt = c(() => S.split("/").filter(Boolean).length > 1 ? {
|
|
252
|
+
title: f.folderEmptyStateTitle,
|
|
253
253
|
description: ""
|
|
254
|
-
} :
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
]),
|
|
260
|
-
return /* @__PURE__ */
|
|
261
|
-
|
|
262
|
-
style:
|
|
263
|
-
className: e("relative flex min-h-0 w-full grow overflow-auto",
|
|
264
|
-
children: [
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
254
|
+
} : f.emptyStateByTab[W], [
|
|
255
|
+
S,
|
|
256
|
+
f.folderEmptyStateTitle,
|
|
257
|
+
f.emptyStateByTab,
|
|
258
|
+
W
|
|
259
|
+
]), Nt = t({ "--dfms-surface": Me?.colors?.surface });
|
|
260
|
+
return /* @__PURE__ */ u(ve, { children: [
|
|
261
|
+
Fe == null ? /* @__PURE__ */ u("div", {
|
|
262
|
+
style: Nt,
|
|
263
|
+
className: e("relative flex min-h-0 w-full grow overflow-auto", i.surface),
|
|
264
|
+
children: [
|
|
265
|
+
/* @__PURE__ */ l(ye, {
|
|
266
|
+
className: e("min-h-0 w-full grow", i.surface, Z && "p-0"),
|
|
267
|
+
contentClassName: Z ? "px-0 pb-0" : void 0,
|
|
268
|
+
gridClassName: _ === r.Attach ? "size-full gap-6 px-6 py-4" : "size-full",
|
|
269
|
+
items: Ne,
|
|
270
|
+
path: S,
|
|
271
|
+
onPathChange: Ie,
|
|
272
|
+
onGridApiChange: mt,
|
|
273
|
+
filesLoading: Pe,
|
|
274
|
+
allowedFileTypes: Ee,
|
|
275
|
+
maxSelectableFileSize: v,
|
|
276
|
+
maxFileSize: v,
|
|
277
|
+
uploadValidationMessages: y == null ? void 0 : { oversizedFiles: y },
|
|
278
|
+
selectedPaths: g,
|
|
279
|
+
onSelectedPathsChange: Ce,
|
|
280
|
+
navigationPanelOptions: {
|
|
281
|
+
searchable: !0,
|
|
282
|
+
placeholder: f.searchPlaceholderByTab?.[W]
|
|
283
|
+
},
|
|
284
|
+
hideSearchPathItemName: !0,
|
|
285
|
+
onSearchFiles: Re,
|
|
286
|
+
searchInProgress: ze,
|
|
287
|
+
searchResults: Be ?? [],
|
|
288
|
+
clearSearchResults: Ve,
|
|
289
|
+
gridOptions: ht,
|
|
290
|
+
treeOptions: gt,
|
|
291
|
+
onFolderPopupPathChange: Ge,
|
|
292
|
+
toolbarOptions: vt,
|
|
293
|
+
bulkActionsToolbarOptions: yt,
|
|
294
|
+
autoSelectUploadedItems: Te,
|
|
295
|
+
emptyStateTitle: Mt.title,
|
|
296
|
+
emptyStateDescription: Mt.description,
|
|
297
|
+
searchEmptyStateTitle: f.searchEmptyStateTitle,
|
|
298
|
+
uploadEnabled: N,
|
|
299
|
+
sharedWithMeIds: ot,
|
|
300
|
+
sharedByMePaths: B,
|
|
301
|
+
onUnshareFiles: st,
|
|
302
|
+
onRemoveFilesAccess: lt,
|
|
303
|
+
fileMetadataPopupOptions: jt,
|
|
304
|
+
onGetInfo: dt,
|
|
305
|
+
onPreview: ke,
|
|
306
|
+
onTableFileClick: Ae,
|
|
307
|
+
previewExtensions: je,
|
|
308
|
+
onUploadFiles: Ke,
|
|
309
|
+
onUploadArchive: qe,
|
|
310
|
+
onValidateUpload: Je,
|
|
311
|
+
onCreateFolder: Ye,
|
|
312
|
+
onCreateFolderValidate: Xe,
|
|
313
|
+
onDownloadFiles: Ze,
|
|
314
|
+
onDeleteFiles: Qe,
|
|
315
|
+
onMoveToFiles: et,
|
|
316
|
+
onCopyFiles: rt,
|
|
317
|
+
onRenameValidate: tt,
|
|
318
|
+
renameValidationMessages: f.renameValidationMessages,
|
|
319
|
+
isRenameFileAvailable: N,
|
|
320
|
+
deleteConfirmationOptions: bt,
|
|
321
|
+
conflictResolutionPopupOptions: f.conflictResolutionPopupOptions,
|
|
322
|
+
destinationFolderPopupOptions: Ct,
|
|
323
|
+
forbiddenSymbolsRegExp: pe,
|
|
324
|
+
forbiddenSymbolsTooltip: f.forbiddenSymbolsTooltip,
|
|
325
|
+
getDisabledTooltip: De,
|
|
326
|
+
unsupportedFileTypeTooltip: Oe
|
|
327
|
+
}),
|
|
328
|
+
/* @__PURE__ */ l(de, {
|
|
329
|
+
visuallyHidden: !0,
|
|
330
|
+
as: fe.Span,
|
|
331
|
+
children: $ ?? ""
|
|
332
|
+
}),
|
|
333
|
+
$ != null && /* @__PURE__ */ l("div", {
|
|
334
|
+
className: "absolute inset-0 z-52 flex items-center justify-center bg-backdrop desktop:p-4",
|
|
335
|
+
children: /* @__PURE__ */ l(me, {
|
|
336
|
+
size: 32,
|
|
337
|
+
fullWidth: !1,
|
|
338
|
+
ariaLabel: $
|
|
339
|
+
})
|
|
333
340
|
})
|
|
334
|
-
|
|
335
|
-
}) : /* @__PURE__ */
|
|
341
|
+
]
|
|
342
|
+
}) : /* @__PURE__ */ l("div", {
|
|
336
343
|
className: "p-6",
|
|
337
|
-
children: /* @__PURE__ */
|
|
338
|
-
message:
|
|
339
|
-
action: /* @__PURE__ */
|
|
340
|
-
variant:
|
|
341
|
-
appearance:
|
|
342
|
-
size:
|
|
343
|
-
label:
|
|
344
|
-
onClick:
|
|
344
|
+
children: /* @__PURE__ */ l(ue, {
|
|
345
|
+
message: f.errorMessage,
|
|
346
|
+
action: /* @__PURE__ */ l(se, {
|
|
347
|
+
variant: a.Neutral,
|
|
348
|
+
appearance: ce.Outlined,
|
|
349
|
+
size: le.Small,
|
|
350
|
+
label: f.retryLabel,
|
|
351
|
+
onClick: Le
|
|
345
352
|
})
|
|
346
353
|
})
|
|
347
354
|
}),
|
|
348
|
-
/* @__PURE__ */
|
|
355
|
+
/* @__PURE__ */ l("div", {
|
|
349
356
|
className: "fixed inset-e-4 bottom-4 z-51",
|
|
350
|
-
children: /* @__PURE__ */
|
|
351
|
-
title:
|
|
352
|
-
items:
|
|
353
|
-
onClose:
|
|
354
|
-
onCancelItem:
|
|
355
|
-
labels:
|
|
357
|
+
children: /* @__PURE__ */ l(he, {
|
|
358
|
+
title: kt,
|
|
359
|
+
items: Et,
|
|
360
|
+
onClose: wt,
|
|
361
|
+
onCancelItem: Tt,
|
|
362
|
+
labels: At
|
|
356
363
|
})
|
|
357
364
|
}),
|
|
358
|
-
(
|
|
359
|
-
title:
|
|
360
|
-
text:
|
|
361
|
-
cancelLabel:
|
|
362
|
-
onCancel:
|
|
365
|
+
(it || M) && /* @__PURE__ */ l(ne, {
|
|
366
|
+
title: M ? f.operationLoaderMoveTitle : f.operationLoaderCopyTitle,
|
|
367
|
+
text: M ? f.movingLabel : f.copyingLabel,
|
|
368
|
+
cancelLabel: f.operationLoaderCancelLabel,
|
|
369
|
+
onCancel: at
|
|
363
370
|
})
|
|
364
371
|
] });
|
|
365
372
|
};
|
|
366
|
-
|
|
373
|
+
o(f);
|
|
367
374
|
//#endregion
|
|
368
|
-
export {
|
|
375
|
+
export { f as DialFileManagerShell };
|