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