@epam/ai-dial-chat-shared 1.2.0-dev.20 → 1.2.0-dev.201
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/MarkdownRenderer/CodeBlock/CodeBlock.js +64 -63
- package/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss.js +6 -6
- package/components/MarkdownRenderer/MDMessageViewer.js +23 -17
- package/components/MarkdownRenderer/MarkdownRenderer.js +88 -90
- package/components/MarkdownRenderer/Math/MarkdownMathBlock.js +19 -18
- package/components/MarkdownRenderer/PlainTextRenderer.js +21 -0
- package/components/MarkdownRenderer/Table/MarkdownTable.js +71 -56
- package/components/MarkdownRenderer/Table/MarkdownTable.module.scss.js +11 -11
- package/components/MarkdownRenderer/Table/TableHeader.js +18 -21
- package/components/MarkdownRenderer/Table/table-serialization.js +23 -3
- package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.js +48 -62
- package/components/MarkdownRenderer/ThinkingShimmer.js +14 -0
- package/components/TextRefinementField/TextRefinementField.js +86 -0
- package/constants/dial.js +2 -2
- package/constants/mime-types.js +49 -2
- package/constants/public-class-names.js +10 -0
- package/constants/resizable-fields.js +2 -2
- package/file-manager/DialFileManagerShell/DialFileManagerShell.js +247 -236
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +34 -32
- package/file-manager/OperationLoaderModal/OperationLoaderModal.js +17 -20
- package/file-manager/upload-batch.js +2 -2
- package/file-manager/upload-queue.js +17 -0
- package/file-manager.d.ts +31 -18
- package/file-manager.js +4 -3
- package/hooks/useTextRefinement.js +66 -0
- package/index.css +2 -2
- package/index.d.ts +322 -39
- package/index.js +60 -56
- package/markdown.d.ts +61 -8
- package/markdown.js +13 -11
- package/package.json +3 -3
- package/types/attachment.js +1 -1
- package/utils/entity-field-limits.js +4 -0
- package/utils/file-download.js +6 -6
- package/utils/is-skill-selection-unsupported.js +4 -0
- package/utils/latex.js +5 -3
- package/utils/merge-class.js +5 -4
- package/utils/mime-type.js +10 -6
- package/file-manager/UploadProgressModal/UploadProgressModal.js +0 -56
|
@@ -1,299 +1,310 @@
|
|
|
1
1
|
import { DialFileManagerActionProfile as e, DialFileManagerVariant as t } from "../file-manager-variant.js";
|
|
2
2
|
import { getParentFolderPath as ee } from "../path.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { DialFileManager as le, DialFileManagerActions as c, DialFileManagerTabs as l, GridSelectionMode as u } from "@epam/ai-dial-react-file-manager";
|
|
3
|
+
import { useGridEditingScroll as n } from "../useGridEditingScroll/useGridEditingScroll.js";
|
|
4
|
+
import { OperationLoaderModal as te } from "../OperationLoaderModal/OperationLoaderModal.js";
|
|
5
|
+
import { toUploadQueueItems as ne } from "../upload-queue.js";
|
|
6
|
+
import { NOT_ALLOWED_SYMBOLS_REGEXP as re, PrimaryButton as ie, Spinner as ae, TransferQueue as oe } from "@epam/ai-dial-ui-kit";
|
|
7
|
+
import { memo as r, useCallback as se, useEffect as ce, useMemo as i, useState as le } from "react";
|
|
8
|
+
import { Fragment as ue, jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
9
|
+
import { DialFileManager as de, DialFileManagerActions as s, DialFileManagerTabs as fe, GridSelectionMode as pe } from "@epam/ai-dial-react-file-manager";
|
|
11
10
|
//#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
|
|
12
|
-
var
|
|
11
|
+
var me = (e, t) => {
|
|
13
12
|
if (e.isDownloading) return t.downloadingLabel;
|
|
14
13
|
if (e.isDeleting) return t.deletingLabel;
|
|
15
14
|
if (e.isRenaming && !e.isMoving) return t.renamingLabel;
|
|
16
15
|
if (e.isUnsharing) return t.unsharingLabel;
|
|
17
16
|
if (e.isRemovingAccess) return t.removingAccessLabel;
|
|
18
|
-
},
|
|
19
|
-
let { items:
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}, [
|
|
23
|
-
let
|
|
17
|
+
}, c = ({ controller: r, labels: c, activeTab: l, tabs: u, onTabChange: d, selectedPaths: f, onSelectedPathsChange: he, variant: ge, actionProfile: _e, autoSelectUploadedItems: ve = !1, allowedFileTypes: ye, maxSelectableFileSize: p, oversizedUploadMessage: m, isRowSelectable: h, getDisabledTooltip: be, unsupportedFileTypeTooltip: xe }) => {
|
|
18
|
+
let { items: Se, isLoading: Ce, error: we, path: g, onPathChange: Te, retry: Ee, onSearchFiles: De, isSearching: _, searchResults: v, clearSearchResults: Oe, expandedPaths: y, loadedPaths: b, onExpandedPathsChange: x, onFolderPopupPathChange: ke, folderPopupLoadingPaths: S, onUploadFiles: C, onUploadArchive: w, onValidateUpload: Ae, uploadBatchState: T, cancelUpload: E, cancelUploadFile: je, clearUploadBatch: D, onCreateFolder: Me, onCreateFolderValidate: Ne, onDownloadFiles: Pe, isDownloading: O, onDeleteFiles: Fe, isDeleting: Ie, onMoveToFiles: Le, onRenameValidate: Re, isRenaming: ze, onCopyFiles: Be, isCopying: Ve, isMoving: k, cancelCopyMove: He, uploadEnabled: A, isNewButtonDisabled: j, disabledNewButtonTooltip: M, visibleColumns: N, dateLocale: P, dateOptions: F, actionLabels: I, sharedWithMeIds: Ue, sharedByMePaths: L, onUnshareFiles: We, isUnsharing: Ge, onRemoveFilesAccess: Ke, isRemovingAccess: qe, fileMetadata: R, isFileMetadataLoading: z, onGetInfo: Je, clearMetadata: B, sectionTab: Ye } = r, V = Ye ?? l, [H, Xe] = le(void 0), { handleGridApiChange: Ze, reset: U } = n();
|
|
19
|
+
ce(() => {
|
|
20
|
+
U();
|
|
21
|
+
}, [V, U]);
|
|
22
|
+
let W = i(() => {
|
|
24
23
|
let e = {};
|
|
25
|
-
return
|
|
24
|
+
return s.Download in I && (e[s.Download] = c.downloadLabel), s.Delete in I && (e[s.Delete] = c.deleteLabel), s.Rename in I && (e[s.Rename] = c.renameLabel), s.Copy in I && (e[s.Copy] = c.copyLabel), s.Move in I && (e[s.Move] = c.moveLabel), s.Duplicate in I && (e[s.Duplicate] = c.duplicateLabel), s.Unshare in I && (e[s.Unshare] = c.unshareLabel), s.RemoveAccess in I && (e[s.RemoveAccess] = c.removeAccessLabel), e;
|
|
26
25
|
}, [
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
]),
|
|
37
|
-
...
|
|
38
|
-
[
|
|
39
|
-
} :
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
]),
|
|
44
|
-
if (
|
|
45
|
-
for (let e of
|
|
26
|
+
I,
|
|
27
|
+
c.downloadLabel,
|
|
28
|
+
c.deleteLabel,
|
|
29
|
+
c.renameLabel,
|
|
30
|
+
c.copyLabel,
|
|
31
|
+
c.moveLabel,
|
|
32
|
+
c.duplicateLabel,
|
|
33
|
+
c.unshareLabel,
|
|
34
|
+
c.removeAccessLabel
|
|
35
|
+
]), G = i(() => s.Info in I ? {
|
|
36
|
+
...W,
|
|
37
|
+
[s.Info]: c.infoLabel
|
|
38
|
+
} : W, [
|
|
39
|
+
W,
|
|
40
|
+
I,
|
|
41
|
+
c.infoLabel
|
|
42
|
+
]), K = i(() => {
|
|
43
|
+
if (f.size === 0) return !1;
|
|
44
|
+
for (let e of f) if (!L.has(e)) return !1;
|
|
46
45
|
return !0;
|
|
47
|
-
}, [
|
|
48
|
-
if (
|
|
49
|
-
let { [
|
|
46
|
+
}, [f, L]), q = i(() => {
|
|
47
|
+
if (K) return W;
|
|
48
|
+
let { [s.RemoveAccess]: e, ...t } = W;
|
|
50
49
|
return t;
|
|
51
|
-
}, [
|
|
52
|
-
selectionMode:
|
|
53
|
-
visibleColumns:
|
|
54
|
-
dateLocale:
|
|
55
|
-
dateOptions:
|
|
50
|
+
}, [W, K]), Qe = i(() => ({
|
|
51
|
+
selectionMode: pe.MULTIPLE,
|
|
52
|
+
visibleColumns: N,
|
|
53
|
+
dateLocale: P,
|
|
54
|
+
dateOptions: F,
|
|
56
55
|
additionalGridOptions: {
|
|
57
56
|
domLayout: "normal",
|
|
58
57
|
rowSelection: {
|
|
59
58
|
mode: "multiRow",
|
|
60
|
-
isRowSelectable:
|
|
59
|
+
isRowSelectable: h ?? (() => !0)
|
|
61
60
|
}
|
|
62
61
|
},
|
|
63
|
-
actionLabels:
|
|
62
|
+
actionLabels: G
|
|
64
63
|
}), [
|
|
64
|
+
N,
|
|
65
|
+
P,
|
|
65
66
|
F,
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
67
|
+
G,
|
|
68
|
+
h
|
|
69
|
+
]), $e = i(() => ({
|
|
70
|
+
header: c.treeHeaderByTab[l],
|
|
71
|
+
tabs: u,
|
|
72
|
+
activeTab: l,
|
|
73
|
+
onTabChange: d,
|
|
74
|
+
expandedPaths: y,
|
|
75
|
+
loadedPaths: b,
|
|
76
|
+
loadingPaths: S,
|
|
77
|
+
onExpandedPathsChange: x,
|
|
78
|
+
actionLabels: W
|
|
77
79
|
}), [
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
80
|
+
c.treeHeaderByTab,
|
|
81
|
+
u,
|
|
82
|
+
l,
|
|
83
|
+
d,
|
|
84
|
+
y,
|
|
85
|
+
b,
|
|
81
86
|
S,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
]), Y = de === t.Standalone && fe === e.Full && p === l.MyFiles && M, Je = a(() => ({
|
|
86
|
-
tabs: m,
|
|
87
|
-
activeTab: p,
|
|
88
|
-
onTabChange: h,
|
|
87
|
+
x,
|
|
88
|
+
W
|
|
89
|
+
]), J = ge === t.Standalone && _e === e.Full && V === fe.MyFiles && A, et = i(() => ({
|
|
89
90
|
showHiddenFilesToggle: !0,
|
|
90
|
-
hiddenFilesSwitcherLabel:
|
|
91
|
-
showHiddenFilesLabel:
|
|
92
|
-
hideHiddenFilesLabel:
|
|
93
|
-
isNewButtonDisabled:
|
|
94
|
-
disabledNewButtonTooltip:
|
|
91
|
+
hiddenFilesSwitcherLabel: c.hiddenFilesLabel,
|
|
92
|
+
showHiddenFilesLabel: c.showHiddenFilesLabel,
|
|
93
|
+
hideHiddenFilesLabel: c.hideHiddenFilesLabel,
|
|
94
|
+
isNewButtonDisabled: j,
|
|
95
|
+
disabledNewButtonTooltip: M,
|
|
95
96
|
newActions: {
|
|
96
|
-
uploadFiles: {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
uploadFiles: {
|
|
98
|
+
label: c.uploadFilesLabel,
|
|
99
|
+
icon: null
|
|
100
|
+
},
|
|
101
|
+
newFolder: {
|
|
102
|
+
label: c.newFolderLabel,
|
|
103
|
+
icon: null
|
|
104
|
+
},
|
|
105
|
+
...J ? { uploadArchive: {
|
|
106
|
+
label: c.uploadArchiveAction,
|
|
107
|
+
icon: null
|
|
108
|
+
} } : {}
|
|
99
109
|
}
|
|
100
110
|
}), [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
]),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
confirmLabel: f.deleteConfirmLabel,
|
|
119
|
-
titleRenderer: f.deleteConfirmTitle,
|
|
120
|
-
contentRenderer: f.deleteConfirmBody
|
|
111
|
+
c.hiddenFilesLabel,
|
|
112
|
+
c.showHiddenFilesLabel,
|
|
113
|
+
c.hideHiddenFilesLabel,
|
|
114
|
+
j,
|
|
115
|
+
M,
|
|
116
|
+
c.uploadFilesLabel,
|
|
117
|
+
c.newFolderLabel,
|
|
118
|
+
J,
|
|
119
|
+
c.uploadArchiveAction
|
|
120
|
+
]), tt = i(() => ({
|
|
121
|
+
getSelectionLabel: c.getSelectionLabel,
|
|
122
|
+
actionLabels: q
|
|
123
|
+
}), [c.getSelectionLabel, q]), nt = i(() => ({
|
|
124
|
+
cancelLabel: c.deleteCancelLabel,
|
|
125
|
+
confirmLabel: c.deleteConfirmLabel,
|
|
126
|
+
titleRenderer: c.deleteConfirmTitle,
|
|
127
|
+
contentRenderer: c.deleteConfirmBody
|
|
121
128
|
}), [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
]),
|
|
129
|
+
c.deleteCancelLabel,
|
|
130
|
+
c.deleteConfirmLabel,
|
|
131
|
+
c.deleteConfirmTitle,
|
|
132
|
+
c.deleteConfirmBody
|
|
133
|
+
]), rt = i(() => {
|
|
127
134
|
let e;
|
|
128
|
-
for (let t of
|
|
135
|
+
for (let t of f) {
|
|
129
136
|
let n = ee(t);
|
|
130
137
|
if (e === void 0) e = n;
|
|
131
138
|
else if (e !== n) return;
|
|
132
139
|
}
|
|
133
140
|
return e;
|
|
134
|
-
}, [
|
|
135
|
-
copyLabel:
|
|
136
|
-
moveLabel:
|
|
137
|
-
addFolderLabel:
|
|
138
|
-
hiddenFilesSwitcherLabel:
|
|
139
|
-
getCopyHeader:
|
|
140
|
-
getMoveHeader:
|
|
141
|
-
disabledPathTooltip:
|
|
142
|
-
emptyStateTitle:
|
|
143
|
-
emptyStateDescription:
|
|
144
|
-
sourceFolder:
|
|
145
|
-
destinationFolderPath:
|
|
146
|
-
setDestinationFolderPath:
|
|
147
|
-
filesLoading:
|
|
141
|
+
}, [f]), Y = H != null && S.has(H), X = Y ? H : rt, it = i(() => ({
|
|
142
|
+
copyLabel: c.copyLabel,
|
|
143
|
+
moveLabel: c.moveLabel,
|
|
144
|
+
addFolderLabel: c.addFolderLabel,
|
|
145
|
+
hiddenFilesSwitcherLabel: c.hiddenFilesSwitcherLabel,
|
|
146
|
+
getCopyHeader: c.getCopyHeader,
|
|
147
|
+
getMoveHeader: c.getMoveHeader,
|
|
148
|
+
disabledPathTooltip: Y ? c.folderPickerLoadingTooltip : c.moveSourceDisabledTooltip,
|
|
149
|
+
emptyStateTitle: c.folderPickerEmptyStateTitle,
|
|
150
|
+
emptyStateDescription: c.folderPickerEmptyStateDescription,
|
|
151
|
+
sourceFolder: X,
|
|
152
|
+
destinationFolderPath: H,
|
|
153
|
+
setDestinationFolderPath: Xe,
|
|
154
|
+
filesLoading: Y
|
|
148
155
|
}), [
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
156
|
+
c.copyLabel,
|
|
157
|
+
c.moveLabel,
|
|
158
|
+
c.addFolderLabel,
|
|
159
|
+
c.hiddenFilesSwitcherLabel,
|
|
160
|
+
c.getCopyHeader,
|
|
161
|
+
c.getMoveHeader,
|
|
162
|
+
c.folderPickerLoadingTooltip,
|
|
163
|
+
c.moveSourceDisabledTooltip,
|
|
164
|
+
c.folderPickerEmptyStateTitle,
|
|
165
|
+
c.folderPickerEmptyStateDescription,
|
|
166
|
+
Y,
|
|
159
167
|
X,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
authorLabel: f.metadataAuthorLabel
|
|
168
|
+
H
|
|
169
|
+
]), at = se(() => {
|
|
170
|
+
E(), D();
|
|
171
|
+
}, [E, D]), Z = i(() => ne(T?.files ?? []), [T]), ot = i(() => ({
|
|
172
|
+
fileMetadata: R,
|
|
173
|
+
loading: z,
|
|
174
|
+
clearMetadata: B,
|
|
175
|
+
header: c.metadataHeader,
|
|
176
|
+
nameLabel: c.metadataNameLabel,
|
|
177
|
+
pathLabel: c.metadataPathLabel,
|
|
178
|
+
modifiedDateLabel: c.metadataModifiedDateLabel,
|
|
179
|
+
sizeLabel: c.metadataSizeLabel,
|
|
180
|
+
authorLabel: c.metadataAuthorLabel
|
|
174
181
|
}), [
|
|
182
|
+
R,
|
|
183
|
+
z,
|
|
175
184
|
B,
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}, f), tt = a(() => {
|
|
192
|
-
if (k == null) return "";
|
|
193
|
-
let e = k.files.filter((e) => e.status !== n.Uploading).length;
|
|
194
|
-
return f.getUploadProgressText(e, k.files.length);
|
|
195
|
-
}, [k, f]), $ = a(() => b != null && !y ? {
|
|
196
|
-
title: f.searchEmptyStateTitle,
|
|
185
|
+
c.metadataHeader,
|
|
186
|
+
c.metadataNameLabel,
|
|
187
|
+
c.metadataPathLabel,
|
|
188
|
+
c.metadataModifiedDateLabel,
|
|
189
|
+
c.metadataSizeLabel,
|
|
190
|
+
c.metadataAuthorLabel
|
|
191
|
+
]), Q = me({
|
|
192
|
+
isDownloading: O,
|
|
193
|
+
isDeleting: Ie,
|
|
194
|
+
isRenaming: ze,
|
|
195
|
+
isMoving: k,
|
|
196
|
+
isUnsharing: Ge,
|
|
197
|
+
isRemovingAccess: qe
|
|
198
|
+
}, c), $ = i(() => v != null && !_ ? {
|
|
199
|
+
title: c.searchEmptyStateTitle,
|
|
197
200
|
description: ""
|
|
198
|
-
} :
|
|
199
|
-
title:
|
|
201
|
+
} : g.split("/").filter(Boolean).length > 1 ? {
|
|
202
|
+
title: c.folderEmptyStateTitle,
|
|
200
203
|
description: ""
|
|
201
|
-
} :
|
|
202
|
-
b,
|
|
203
|
-
y,
|
|
204
|
+
} : c.emptyStateByTab[V], [
|
|
204
205
|
v,
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
_,
|
|
207
|
+
g,
|
|
208
|
+
c.searchEmptyStateTitle,
|
|
209
|
+
c.folderEmptyStateTitle,
|
|
210
|
+
c.emptyStateByTab,
|
|
211
|
+
V
|
|
209
212
|
]);
|
|
210
|
-
return /* @__PURE__ */
|
|
211
|
-
|
|
213
|
+
return /* @__PURE__ */ o(ue, { children: [
|
|
214
|
+
we == null ? /* @__PURE__ */ o("div", {
|
|
212
215
|
className: "relative flex min-h-0 w-full grow overflow-auto bg-layer-sunken",
|
|
213
|
-
children: [/* @__PURE__ */
|
|
216
|
+
children: [/* @__PURE__ */ a(de, {
|
|
214
217
|
className: "min-h-0 w-full grow bg-layer-sunken",
|
|
215
218
|
gridClassName: "size-full",
|
|
216
|
-
items:
|
|
217
|
-
path:
|
|
218
|
-
onPathChange:
|
|
219
|
-
onGridApiChange:
|
|
220
|
-
filesLoading:
|
|
221
|
-
allowedFileTypes:
|
|
222
|
-
maxSelectableFileSize:
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
219
|
+
items: Se,
|
|
220
|
+
path: g,
|
|
221
|
+
onPathChange: Te,
|
|
222
|
+
onGridApiChange: Ze,
|
|
223
|
+
filesLoading: Ce,
|
|
224
|
+
allowedFileTypes: ye,
|
|
225
|
+
maxSelectableFileSize: p,
|
|
226
|
+
maxFileSize: p,
|
|
227
|
+
uploadValidationMessages: m == null ? void 0 : { oversizedFiles: m },
|
|
228
|
+
selectedPaths: f,
|
|
229
|
+
onSelectedPathsChange: he,
|
|
230
|
+
navigationPanelOptions: {
|
|
231
|
+
searchable: !0,
|
|
232
|
+
placeholder: c.searchPlaceholderByTab?.[V]
|
|
233
|
+
},
|
|
226
234
|
hideSearchPathItemName: !0,
|
|
227
|
-
onSearchFiles:
|
|
228
|
-
searchInProgress:
|
|
229
|
-
searchResults:
|
|
230
|
-
clearSearchResults:
|
|
231
|
-
gridOptions:
|
|
232
|
-
treeOptions:
|
|
233
|
-
onFolderPopupPathChange:
|
|
234
|
-
toolbarOptions:
|
|
235
|
-
bulkActionsToolbarOptions:
|
|
236
|
-
autoSelectUploadedItems:
|
|
235
|
+
onSearchFiles: De,
|
|
236
|
+
searchInProgress: _,
|
|
237
|
+
searchResults: v ?? [],
|
|
238
|
+
clearSearchResults: Oe,
|
|
239
|
+
gridOptions: Qe,
|
|
240
|
+
treeOptions: $e,
|
|
241
|
+
onFolderPopupPathChange: ke,
|
|
242
|
+
toolbarOptions: et,
|
|
243
|
+
bulkActionsToolbarOptions: tt,
|
|
244
|
+
autoSelectUploadedItems: ve,
|
|
237
245
|
emptyStateTitle: $.title,
|
|
238
246
|
emptyStateDescription: $.description,
|
|
239
|
-
uploadEnabled:
|
|
240
|
-
sharedWithMeIds:
|
|
241
|
-
sharedByMePaths:
|
|
242
|
-
onUnshareFiles:
|
|
243
|
-
onRemoveFilesAccess:
|
|
244
|
-
fileMetadataPopupOptions:
|
|
245
|
-
onGetInfo:
|
|
246
|
-
onUploadFiles:
|
|
247
|
-
onUploadArchive:
|
|
248
|
-
onValidateUpload:
|
|
249
|
-
onCreateFolder:
|
|
250
|
-
onCreateFolderValidate:
|
|
251
|
-
onDownloadFiles:
|
|
252
|
-
onDeleteFiles:
|
|
253
|
-
onMoveToFiles:
|
|
254
|
-
onCopyFiles:
|
|
255
|
-
onRenameValidate:
|
|
256
|
-
renameValidationMessages:
|
|
257
|
-
isRenameFileAvailable:
|
|
258
|
-
deleteConfirmationOptions:
|
|
259
|
-
conflictResolutionPopupOptions:
|
|
260
|
-
destinationFolderPopupOptions:
|
|
261
|
-
forbiddenSymbolsRegExp:
|
|
262
|
-
forbiddenSymbolsTooltip:
|
|
263
|
-
getDisabledTooltip:
|
|
264
|
-
unsupportedFileTypeTooltip:
|
|
265
|
-
}), Q != null && /* @__PURE__ */
|
|
247
|
+
uploadEnabled: A,
|
|
248
|
+
sharedWithMeIds: Ue,
|
|
249
|
+
sharedByMePaths: L,
|
|
250
|
+
onUnshareFiles: We,
|
|
251
|
+
onRemoveFilesAccess: Ke,
|
|
252
|
+
fileMetadataPopupOptions: ot,
|
|
253
|
+
onGetInfo: Je,
|
|
254
|
+
onUploadFiles: C,
|
|
255
|
+
onUploadArchive: w,
|
|
256
|
+
onValidateUpload: Ae,
|
|
257
|
+
onCreateFolder: Me,
|
|
258
|
+
onCreateFolderValidate: Ne,
|
|
259
|
+
onDownloadFiles: Pe,
|
|
260
|
+
onDeleteFiles: Fe,
|
|
261
|
+
onMoveToFiles: Le,
|
|
262
|
+
onCopyFiles: Be,
|
|
263
|
+
onRenameValidate: Re,
|
|
264
|
+
renameValidationMessages: c.renameValidationMessages,
|
|
265
|
+
isRenameFileAvailable: A,
|
|
266
|
+
deleteConfirmationOptions: nt,
|
|
267
|
+
conflictResolutionPopupOptions: c.conflictResolutionPopupOptions,
|
|
268
|
+
destinationFolderPopupOptions: it,
|
|
269
|
+
forbiddenSymbolsRegExp: re,
|
|
270
|
+
forbiddenSymbolsTooltip: c.forbiddenSymbolsTooltip,
|
|
271
|
+
getDisabledTooltip: be,
|
|
272
|
+
unsupportedFileTypeTooltip: xe
|
|
273
|
+
}), Q != null && /* @__PURE__ */ a("div", {
|
|
266
274
|
"aria-live": "polite",
|
|
267
275
|
className: "absolute inset-0 z-[52] flex items-center justify-center bg-backdrop desktop:p-4",
|
|
268
|
-
children: /* @__PURE__ */
|
|
276
|
+
children: /* @__PURE__ */ a(ae, {
|
|
269
277
|
size: 32,
|
|
270
278
|
fullWidth: !1,
|
|
271
279
|
ariaLabel: Q
|
|
272
280
|
})
|
|
273
281
|
})]
|
|
274
|
-
}) : /* @__PURE__ */
|
|
282
|
+
}) : /* @__PURE__ */ o("div", {
|
|
275
283
|
role: "alert",
|
|
276
284
|
className: "flex flex-col items-center gap-4 p-6",
|
|
277
|
-
children: [/* @__PURE__ */
|
|
278
|
-
label:
|
|
279
|
-
onClick:
|
|
285
|
+
children: [/* @__PURE__ */ a("p", { children: c.errorMessage }), /* @__PURE__ */ a(ie, {
|
|
286
|
+
label: c.retryLabel,
|
|
287
|
+
onClick: Ee
|
|
280
288
|
})]
|
|
281
289
|
}),
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
290
|
+
/* @__PURE__ */ a("div", {
|
|
291
|
+
className: "fixed bottom-4 end-4 z-[70]",
|
|
292
|
+
children: /* @__PURE__ */ a(oe, {
|
|
293
|
+
title: c.getUploadQueueTitle(Z.length),
|
|
294
|
+
items: Z,
|
|
295
|
+
onClose: at,
|
|
296
|
+
onCancelItem: je,
|
|
297
|
+
labels: c.uploadQueueLabels
|
|
298
|
+
})
|
|
288
299
|
}),
|
|
289
|
-
(
|
|
290
|
-
title:
|
|
291
|
-
text:
|
|
292
|
-
cancelLabel:
|
|
293
|
-
onCancel:
|
|
300
|
+
(Ve || k) && /* @__PURE__ */ a(te, {
|
|
301
|
+
title: k ? c.operationLoaderMoveTitle : c.operationLoaderCopyTitle,
|
|
302
|
+
text: k ? c.movingLabel : c.copyingLabel,
|
|
303
|
+
cancelLabel: c.operationLoaderCancelLabel,
|
|
304
|
+
onCancel: He
|
|
294
305
|
})
|
|
295
306
|
] });
|
|
296
307
|
};
|
|
297
|
-
|
|
308
|
+
r(c);
|
|
298
309
|
//#endregion
|
|
299
|
-
export {
|
|
310
|
+
export { c as DialFileManagerShell };
|