@epam/ai-dial-chat-shared 1.3.0-dev.241 → 1.3.0-dev.244
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/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +1 -1
- package/file-manager/DialFileManagerShell/DialFileManagerShell.js +272 -267
- package/hooks/useControlErrorAssociation.d.ts +3 -0
- package/hooks/useControlErrorAssociation.d.ts.map +1 -0
- package/hooks/useControlErrorAssociation.js +12 -0
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +10 -9
- package/package.json +1 -1
|
@@ -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;
|
|
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;AAW1C,OAAO,EAML,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAG/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;AAGnB,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAgDlE,yDAAy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ACnF,gBAAgB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;IACrD,0KAA0K;IAC1K,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,4DAA4D;IAC5D,MAAM,CAAC,EAAE,0BAA0B,CAAC;CACrC;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CAumB9D,CAAC;;AAEF,wBAA0C"}
|
|
@@ -5,359 +5,364 @@ 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
7
|
import { TransferQueueRowKind as i, buildTransferQueueLabels as re, parseTransferQueueRowId as ie, toTransferQueueItems as ae } from "../upload-queue.js";
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import { memo as
|
|
11
|
-
import { Fragment as
|
|
12
|
-
import { DialFileManager as
|
|
8
|
+
import a from "./DialFileManagerShell.module.scss.js";
|
|
9
|
+
import { Button as oe, ButtonAppearance as se, ButtonVariant as o, ElementSize as ce, ErrorMessageNotification as le, NOT_ALLOWED_SYMBOLS_REGEXP as ue, Spinner as de, TransferQueue as fe } from "@epam/ai-dial-ui-kit";
|
|
10
|
+
import { memo as s, useCallback as c, useEffect as pe, useMemo as l, useState as me } from "react";
|
|
11
|
+
import { Fragment as he, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
12
|
+
import { DialFileManager as ge, DialFileManagerActions as f, DialFileManagerTabs as _e, GridSelectionMode as ve } from "@epam/ai-dial-react-file-manager";
|
|
13
13
|
//#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
|
|
14
|
-
var
|
|
14
|
+
var ye = (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: Ae, isLoading: je, error: Me, path:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}, [
|
|
24
|
-
let
|
|
19
|
+
}, p = ({ controller: s, labels: p, activeTab: m, tabs: h, onTabChange: g, selectedPaths: _, onSelectedPathsChange: be, variant: v, actionProfile: xe, autoSelectUploadedItems: Se = !1, allowedFileTypes: Ce, maxSelectableFileSize: y, oversizedUploadMessage: b, isRowSelectable: x, getDisabledTooltip: we, unsupportedFileTypeTooltip: Te, treeContainerClassName: S, onPreview: Ee, onTableFileClick: De, previewExtensions: Oe, styles: ke }) => {
|
|
20
|
+
let { items: Ae, isLoading: je, error: Me, path: C, onPathChange: Ne, retry: Pe, onSearchFiles: Fe, isSearching: Ie, searchResults: Le, clearSearchResults: Re, expandedPaths: w, loadedPaths: T, onExpandedPathsChange: E, onFolderPopupPathChange: ze, folderPopupLoadingPaths: D, onUploadFiles: Be, onUploadArchive: Ve, onValidateUpload: He, uploadBatchState: O, cancelUpload: k, cancelUploadFile: A, clearUploadBatch: j, downloadBatchState: M, cancelDownloadFile: Ue, cancelAllDownloads: N, clearDownloadBatch: P, onCreateFolder: We, onCreateFolderValidate: Ge, onDownloadFiles: Ke, onDeleteFiles: qe, isDeleting: Je, onMoveToFiles: Ye, onRenameValidate: Xe, isRenaming: Ze, onCopyFiles: Qe, isCopying: $e, isMoving: F, cancelCopyMove: et, uploadEnabled: I, isNewButtonDisabled: L, disabledNewButtonTooltip: R, visibleColumns: z, dateLocale: B, dateOptions: V, actionLabels: H, sharedWithMeIds: tt, sharedByMePaths: U, onUnshareFiles: nt, isUnsharing: rt, onRemoveFilesAccess: it, isRemovingAccess: at, fileMetadata: W, isFileMetadataLoading: G, onGetInfo: ot, clearMetadata: K, sectionTab: st } = s, q = st ?? m, [J, ct] = me(void 0), { handleGridApiChange: lt, reset: Y } = te();
|
|
21
|
+
pe(() => {
|
|
22
|
+
Y();
|
|
23
|
+
}, [q, Y]);
|
|
24
|
+
let X = l(() => {
|
|
25
25
|
let e = {};
|
|
26
|
-
return
|
|
26
|
+
return f.Download in H && (e[f.Download] = p.downloadLabel), f.Delete in H && (e[f.Delete] = p.deleteLabel), f.Rename in H && (e[f.Rename] = p.renameLabel), f.Copy in H && (e[f.Copy] = p.copyLabel), f.Move in H && (e[f.Move] = p.moveLabel), f.Duplicate in H && (e[f.Duplicate] = p.duplicateLabel), f.Unshare in H && (e[f.Unshare] = p.unshareLabel), f.RemoveAccess in H && (e[f.RemoveAccess] = p.removeAccessLabel), e;
|
|
27
27
|
}, [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
]),
|
|
38
|
-
let e =
|
|
39
|
-
...
|
|
40
|
-
[
|
|
28
|
+
H,
|
|
29
|
+
p.downloadLabel,
|
|
30
|
+
p.deleteLabel,
|
|
31
|
+
p.renameLabel,
|
|
32
|
+
p.copyLabel,
|
|
33
|
+
p.moveLabel,
|
|
34
|
+
p.duplicateLabel,
|
|
35
|
+
p.unshareLabel,
|
|
36
|
+
p.removeAccessLabel
|
|
37
|
+
]), ut = l(() => {
|
|
38
|
+
let e = p.previewLabel == null ? X : {
|
|
39
|
+
...X,
|
|
40
|
+
[f.Preview]: p.previewLabel
|
|
41
41
|
};
|
|
42
|
-
return
|
|
42
|
+
return f.Info in H ? {
|
|
43
43
|
...e,
|
|
44
|
-
[
|
|
44
|
+
[f.Info]: p.infoLabel
|
|
45
45
|
} : e;
|
|
46
46
|
}, [
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
]),
|
|
52
|
-
if (
|
|
53
|
-
for (let e of
|
|
47
|
+
X,
|
|
48
|
+
H,
|
|
49
|
+
p.infoLabel,
|
|
50
|
+
p.previewLabel
|
|
51
|
+
]), dt = l(() => {
|
|
52
|
+
if (_.size === 0) return !1;
|
|
53
|
+
for (let e of _) if (!U.has(e)) return !1;
|
|
54
54
|
return !0;
|
|
55
|
-
}, [
|
|
56
|
-
if (
|
|
57
|
-
let { [
|
|
55
|
+
}, [_, U]), ft = l(() => {
|
|
56
|
+
if (dt) return X;
|
|
57
|
+
let { [f.RemoveAccess]: e, ...t } = X;
|
|
58
58
|
return t;
|
|
59
|
-
}, [
|
|
60
|
-
selectionMode:
|
|
59
|
+
}, [X, dt]), Z = v === r.Attach, pt = l(() => ({
|
|
60
|
+
selectionMode: ve.MULTIPLE,
|
|
61
61
|
filterable: !1,
|
|
62
62
|
withoutHeaderBorders: !0,
|
|
63
63
|
containerClassName: "rounded-none shadow-none",
|
|
64
|
-
visibleColumns:
|
|
65
|
-
dateLocale:
|
|
66
|
-
dateOptions:
|
|
64
|
+
visibleColumns: z,
|
|
65
|
+
dateLocale: B,
|
|
66
|
+
dateOptions: V,
|
|
67
67
|
additionalGridOptions: {
|
|
68
68
|
domLayout: "normal",
|
|
69
69
|
rowSelection: {
|
|
70
70
|
mode: "multiRow",
|
|
71
|
-
isRowSelectable:
|
|
71
|
+
isRowSelectable: x ?? (() => !0)
|
|
72
72
|
}
|
|
73
73
|
},
|
|
74
|
-
actionLabels:
|
|
74
|
+
actionLabels: ut
|
|
75
75
|
}), [
|
|
76
|
-
L,
|
|
77
|
-
R,
|
|
78
76
|
z,
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
77
|
+
B,
|
|
78
|
+
V,
|
|
79
|
+
ut,
|
|
80
|
+
x
|
|
81
|
+
]), mt = l(() => ({
|
|
82
|
+
header: p.treeHeader ?? null,
|
|
83
|
+
containerClassName: S ?? (v === r.Attach ? "min-h-0 h-full w-[360px] shrink-0 border-e border-tertiary bg-layer-raised" : void 0),
|
|
84
|
+
tabsAriaLabel: p.treeHeaderByTab[m],
|
|
85
|
+
tabs: h,
|
|
86
|
+
activeTab: m,
|
|
87
|
+
onTabChange: g,
|
|
88
|
+
expandedPaths: w,
|
|
89
|
+
loadedPaths: T,
|
|
90
|
+
loadingPaths: D,
|
|
91
|
+
onExpandedPathsChange: E,
|
|
92
|
+
actionLabels: X
|
|
93
93
|
}), [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
y,
|
|
97
|
-
g,
|
|
98
|
-
p,
|
|
99
|
-
f,
|
|
100
|
-
m,
|
|
101
|
-
x,
|
|
94
|
+
p.treeHeader,
|
|
95
|
+
p.treeHeaderByTab,
|
|
102
96
|
S,
|
|
97
|
+
v,
|
|
98
|
+
h,
|
|
99
|
+
m,
|
|
100
|
+
g,
|
|
103
101
|
w,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
T,
|
|
103
|
+
D,
|
|
104
|
+
E,
|
|
105
|
+
X
|
|
106
|
+
]), ht = v === r.Standalone && xe === n.Full && q === _e.MyFiles && I, gt = l(() => ({
|
|
107
107
|
showHiddenFilesToggle: !0,
|
|
108
|
-
...
|
|
109
|
-
hiddenFilesSwitcherLabel:
|
|
110
|
-
showHiddenFilesLabel:
|
|
111
|
-
hideHiddenFilesLabel:
|
|
112
|
-
isNewButtonDisabled:
|
|
113
|
-
disabledNewButtonTooltip:
|
|
108
|
+
...Z ? { newButtonVariant: o.Neutral } : {},
|
|
109
|
+
hiddenFilesSwitcherLabel: p.hiddenFilesLabel,
|
|
110
|
+
showHiddenFilesLabel: p.showHiddenFilesLabel,
|
|
111
|
+
hideHiddenFilesLabel: p.hideHiddenFilesLabel,
|
|
112
|
+
isNewButtonDisabled: L,
|
|
113
|
+
disabledNewButtonTooltip: R,
|
|
114
114
|
newActions: {
|
|
115
115
|
uploadFiles: {
|
|
116
|
-
label:
|
|
116
|
+
label: p.uploadFilesLabel,
|
|
117
117
|
icon: null
|
|
118
118
|
},
|
|
119
119
|
newFolder: {
|
|
120
|
-
label:
|
|
120
|
+
label: p.newFolderLabel,
|
|
121
121
|
icon: null
|
|
122
122
|
},
|
|
123
|
-
...
|
|
124
|
-
label:
|
|
123
|
+
...ht ? { uploadArchive: {
|
|
124
|
+
label: p.uploadArchiveAction,
|
|
125
125
|
icon: null
|
|
126
126
|
} } : {}
|
|
127
127
|
}
|
|
128
128
|
}), [
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
]),
|
|
140
|
-
getSelectionLabel:
|
|
141
|
-
actionLabels:
|
|
129
|
+
Z,
|
|
130
|
+
p.hiddenFilesLabel,
|
|
131
|
+
p.showHiddenFilesLabel,
|
|
132
|
+
p.hideHiddenFilesLabel,
|
|
133
|
+
L,
|
|
134
|
+
R,
|
|
135
|
+
p.uploadFilesLabel,
|
|
136
|
+
p.newFolderLabel,
|
|
137
|
+
ht,
|
|
138
|
+
p.uploadArchiveAction
|
|
139
|
+
]), _t = l(() => Z ? void 0 : {
|
|
140
|
+
getSelectionLabel: p.getSelectionLabel,
|
|
141
|
+
actionLabels: ft
|
|
142
142
|
}, [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
]),
|
|
147
|
-
cancelLabel:
|
|
148
|
-
confirmLabel:
|
|
149
|
-
closeLabel:
|
|
150
|
-
titleRenderer:
|
|
151
|
-
contentRenderer:
|
|
143
|
+
Z,
|
|
144
|
+
p.getSelectionLabel,
|
|
145
|
+
ft
|
|
146
|
+
]), vt = l(() => ({
|
|
147
|
+
cancelLabel: p.deleteCancelLabel,
|
|
148
|
+
confirmLabel: p.deleteConfirmLabel,
|
|
149
|
+
closeLabel: p.deleteCloseLabel,
|
|
150
|
+
titleRenderer: p.deleteConfirmTitle,
|
|
151
|
+
contentRenderer: p.deleteConfirmBody
|
|
152
152
|
}), [
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
]),
|
|
153
|
+
p.deleteCancelLabel,
|
|
154
|
+
p.deleteConfirmLabel,
|
|
155
|
+
p.deleteCloseLabel,
|
|
156
|
+
p.deleteConfirmTitle,
|
|
157
|
+
p.deleteConfirmBody
|
|
158
|
+
]), yt = l(() => {
|
|
159
159
|
let e;
|
|
160
|
-
for (let t of
|
|
160
|
+
for (let t of _) {
|
|
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:
|
|
174
|
-
movedIntoItselfTooltip:
|
|
175
|
-
emptyStateTitle:
|
|
176
|
-
emptyStateDescription:
|
|
177
|
-
sourceFolder:
|
|
178
|
-
destinationFolderPath:
|
|
179
|
-
setDestinationFolderPath:
|
|
180
|
-
filesLoading:
|
|
166
|
+
}, [_]), Q = J != null && D.has(J), bt = Q ? J : yt, xt = l(() => ({
|
|
167
|
+
copyLabel: p.copyLabel,
|
|
168
|
+
moveLabel: p.moveLabel,
|
|
169
|
+
addFolderLabel: p.addFolderLabel,
|
|
170
|
+
hiddenFilesSwitcherLabel: p.hiddenFilesSwitcherLabel,
|
|
171
|
+
getCopyHeader: p.getCopyHeader,
|
|
172
|
+
getMoveHeader: p.getMoveHeader,
|
|
173
|
+
disabledPathTooltip: Q ? p.folderPickerLoadingTooltip : p.moveSourceDisabledTooltip,
|
|
174
|
+
movedIntoItselfTooltip: p.movedIntoItselfTooltip,
|
|
175
|
+
emptyStateTitle: p.folderPickerEmptyStateTitle,
|
|
176
|
+
emptyStateDescription: p.folderPickerEmptyStateDescription,
|
|
177
|
+
sourceFolder: bt,
|
|
178
|
+
destinationFolderPath: J,
|
|
179
|
+
setDestinationFolderPath: ct,
|
|
180
|
+
filesLoading: Q
|
|
181
181
|
}), [
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
]),
|
|
197
|
-
|
|
182
|
+
p.copyLabel,
|
|
183
|
+
p.moveLabel,
|
|
184
|
+
p.addFolderLabel,
|
|
185
|
+
p.hiddenFilesSwitcherLabel,
|
|
186
|
+
p.getCopyHeader,
|
|
187
|
+
p.getMoveHeader,
|
|
188
|
+
p.folderPickerLoadingTooltip,
|
|
189
|
+
p.moveSourceDisabledTooltip,
|
|
190
|
+
p.movedIntoItselfTooltip,
|
|
191
|
+
p.folderPickerEmptyStateTitle,
|
|
192
|
+
p.folderPickerEmptyStateDescription,
|
|
193
|
+
Q,
|
|
194
|
+
bt,
|
|
195
|
+
J
|
|
196
|
+
]), St = c(() => {
|
|
197
|
+
k(), N(), j(), P();
|
|
198
198
|
}, [
|
|
199
|
-
|
|
199
|
+
k,
|
|
200
|
+
N,
|
|
200
201
|
j,
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
]), yt = o((e) => {
|
|
202
|
+
P
|
|
203
|
+
]), Ct = c((e) => {
|
|
204
204
|
let t = ie(e);
|
|
205
|
-
t?.kind === i.Upload ?
|
|
206
|
-
}, [
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
]),
|
|
211
|
-
uploads:
|
|
212
|
-
downloads:
|
|
213
|
-
}) ??
|
|
214
|
-
uploadLabels:
|
|
215
|
-
downloadLabels:
|
|
216
|
-
mixedProgressLabel:
|
|
217
|
-
uploadNames: new Set(
|
|
218
|
-
downloadNames: new Set(
|
|
205
|
+
t?.kind === i.Upload ? A(t.entryId) : t?.kind === i.Download && Ue(t.entryId);
|
|
206
|
+
}, [A, Ue]), wt = l(() => ae(O, M, p.uploadFailureMessages), [
|
|
207
|
+
O,
|
|
208
|
+
M,
|
|
209
|
+
p.uploadFailureMessages
|
|
210
|
+
]), Tt = O?.files.length ?? 0, Et = M?.files.length ?? 0, Dt = p.getTransferQueueTitle?.({
|
|
211
|
+
uploads: Tt,
|
|
212
|
+
downloads: Et
|
|
213
|
+
}) ?? p.getUploadQueueTitle(Tt + Et), Ot = l(() => re({
|
|
214
|
+
uploadLabels: p.uploadQueueLabels,
|
|
215
|
+
downloadLabels: p.downloadQueueLabels,
|
|
216
|
+
mixedProgressLabel: p.transferQueueProgressAriaLabel,
|
|
217
|
+
uploadNames: new Set(O?.files.map((e) => e.name)),
|
|
218
|
+
downloadNames: new Set(M?.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
|
+
p.uploadQueueLabels,
|
|
221
|
+
p.downloadQueueLabels,
|
|
222
|
+
p.transferQueueProgressAriaLabel,
|
|
223
|
+
O,
|
|
224
|
+
M
|
|
225
|
+
]), kt = l(() => ({
|
|
226
|
+
fileMetadata: W,
|
|
227
|
+
loading: G,
|
|
228
|
+
clearMetadata: K,
|
|
229
|
+
header: p.metadataHeader,
|
|
230
|
+
nameLabel: p.metadataNameLabel,
|
|
231
|
+
pathLabel: p.metadataPathLabel,
|
|
232
|
+
modifiedDateLabel: p.metadataModifiedDateLabel,
|
|
233
|
+
sizeLabel: p.metadataSizeLabel,
|
|
234
|
+
authorLabel: p.metadataAuthorLabel
|
|
235
235
|
}), [
|
|
236
|
-
H,
|
|
237
|
-
U,
|
|
238
236
|
W,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
237
|
+
G,
|
|
238
|
+
K,
|
|
239
|
+
p.metadataHeader,
|
|
240
|
+
p.metadataNameLabel,
|
|
241
|
+
p.metadataPathLabel,
|
|
242
|
+
p.metadataModifiedDateLabel,
|
|
243
|
+
p.metadataSizeLabel,
|
|
244
|
+
p.metadataAuthorLabel
|
|
245
|
+
]), At = ye({
|
|
246
|
+
isDeleting: Je,
|
|
247
|
+
isRenaming: Ze,
|
|
248
|
+
isMoving: F,
|
|
249
|
+
isUnsharing: rt,
|
|
250
|
+
isRemovingAccess: at
|
|
251
|
+
}, p), $ = l(() => C.split("/").filter(Boolean).length > 1 ? {
|
|
252
|
+
title: p.folderEmptyStateTitle,
|
|
253
253
|
description: ""
|
|
254
|
-
} :
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
]),
|
|
260
|
-
return /* @__PURE__ */
|
|
261
|
-
Me == null ? /* @__PURE__ */
|
|
262
|
-
style:
|
|
263
|
-
className: e("relative flex min-h-0 w-full grow overflow-auto",
|
|
264
|
-
children: [/* @__PURE__ */
|
|
265
|
-
className: e("min-h-0 w-full grow",
|
|
266
|
-
contentClassName:
|
|
267
|
-
gridClassName:
|
|
254
|
+
} : p.emptyStateByTab[q], [
|
|
255
|
+
C,
|
|
256
|
+
p.folderEmptyStateTitle,
|
|
257
|
+
p.emptyStateByTab,
|
|
258
|
+
q
|
|
259
|
+
]), jt = t({ "--dfms-surface": ke?.colors?.surface });
|
|
260
|
+
return /* @__PURE__ */ d(he, { children: [
|
|
261
|
+
Me == null ? /* @__PURE__ */ d("div", {
|
|
262
|
+
style: jt,
|
|
263
|
+
className: e("relative flex min-h-0 w-full grow overflow-auto", a.surface),
|
|
264
|
+
children: [/* @__PURE__ */ u(ge, {
|
|
265
|
+
className: e("min-h-0 w-full grow", a.surface, Z && "p-0"),
|
|
266
|
+
contentClassName: Z ? "px-0 pb-0" : void 0,
|
|
267
|
+
gridClassName: v === r.Attach ? "size-full gap-6 px-6 py-4" : "size-full",
|
|
268
268
|
items: Ae,
|
|
269
|
-
path:
|
|
269
|
+
path: C,
|
|
270
270
|
onPathChange: Ne,
|
|
271
|
-
onGridApiChange:
|
|
271
|
+
onGridApiChange: lt,
|
|
272
272
|
filesLoading: je,
|
|
273
|
-
allowedFileTypes:
|
|
274
|
-
maxSelectableFileSize:
|
|
275
|
-
maxFileSize:
|
|
276
|
-
uploadValidationMessages:
|
|
277
|
-
selectedPaths:
|
|
278
|
-
onSelectedPathsChange:
|
|
273
|
+
allowedFileTypes: Ce,
|
|
274
|
+
maxSelectableFileSize: y,
|
|
275
|
+
maxFileSize: y,
|
|
276
|
+
uploadValidationMessages: b == null ? void 0 : { oversizedFiles: b },
|
|
277
|
+
selectedPaths: _,
|
|
278
|
+
onSelectedPathsChange: be,
|
|
279
279
|
navigationPanelOptions: {
|
|
280
280
|
searchable: !0,
|
|
281
|
-
placeholder:
|
|
281
|
+
placeholder: p.searchPlaceholderByTab?.[q]
|
|
282
282
|
},
|
|
283
283
|
hideSearchPathItemName: !0,
|
|
284
284
|
onSearchFiles: Fe,
|
|
285
285
|
searchInProgress: Ie,
|
|
286
286
|
searchResults: Le ?? [],
|
|
287
287
|
clearSearchResults: Re,
|
|
288
|
-
gridOptions:
|
|
289
|
-
treeOptions:
|
|
288
|
+
gridOptions: pt,
|
|
289
|
+
treeOptions: mt,
|
|
290
290
|
onFolderPopupPathChange: ze,
|
|
291
|
-
toolbarOptions:
|
|
292
|
-
bulkActionsToolbarOptions:
|
|
293
|
-
autoSelectUploadedItems:
|
|
294
|
-
emptyStateTitle:
|
|
295
|
-
emptyStateDescription:
|
|
296
|
-
searchEmptyStateTitle:
|
|
297
|
-
uploadEnabled:
|
|
298
|
-
sharedWithMeIds:
|
|
299
|
-
sharedByMePaths:
|
|
300
|
-
onUnshareFiles:
|
|
301
|
-
onRemoveFilesAccess:
|
|
302
|
-
fileMetadataPopupOptions:
|
|
303
|
-
onGetInfo:
|
|
291
|
+
toolbarOptions: gt,
|
|
292
|
+
bulkActionsToolbarOptions: _t,
|
|
293
|
+
autoSelectUploadedItems: Se,
|
|
294
|
+
emptyStateTitle: $.title,
|
|
295
|
+
emptyStateDescription: $.description,
|
|
296
|
+
searchEmptyStateTitle: p.searchEmptyStateTitle,
|
|
297
|
+
uploadEnabled: I,
|
|
298
|
+
sharedWithMeIds: tt,
|
|
299
|
+
sharedByMePaths: U,
|
|
300
|
+
onUnshareFiles: nt,
|
|
301
|
+
onRemoveFilesAccess: it,
|
|
302
|
+
fileMetadataPopupOptions: kt,
|
|
303
|
+
onGetInfo: ot,
|
|
304
304
|
onPreview: Ee,
|
|
305
305
|
onTableFileClick: De,
|
|
306
306
|
previewExtensions: Oe,
|
|
307
307
|
onUploadFiles: Be,
|
|
308
308
|
onUploadArchive: Ve,
|
|
309
309
|
onValidateUpload: He,
|
|
310
|
-
onCreateFolder:
|
|
311
|
-
onCreateFolderValidate:
|
|
312
|
-
onDownloadFiles:
|
|
313
|
-
onDeleteFiles:
|
|
314
|
-
onMoveToFiles:
|
|
315
|
-
onCopyFiles:
|
|
316
|
-
onRenameValidate:
|
|
317
|
-
renameValidationMessages:
|
|
318
|
-
isRenameFileAvailable:
|
|
319
|
-
deleteConfirmationOptions:
|
|
320
|
-
conflictResolutionPopupOptions:
|
|
321
|
-
destinationFolderPopupOptions:
|
|
322
|
-
forbiddenSymbolsRegExp:
|
|
323
|
-
forbiddenSymbolsTooltip:
|
|
310
|
+
onCreateFolder: We,
|
|
311
|
+
onCreateFolderValidate: Ge,
|
|
312
|
+
onDownloadFiles: Ke,
|
|
313
|
+
onDeleteFiles: qe,
|
|
314
|
+
onMoveToFiles: Ye,
|
|
315
|
+
onCopyFiles: Qe,
|
|
316
|
+
onRenameValidate: Xe,
|
|
317
|
+
renameValidationMessages: p.renameValidationMessages,
|
|
318
|
+
isRenameFileAvailable: I,
|
|
319
|
+
deleteConfirmationOptions: vt,
|
|
320
|
+
conflictResolutionPopupOptions: p.conflictResolutionPopupOptions,
|
|
321
|
+
destinationFolderPopupOptions: xt,
|
|
322
|
+
forbiddenSymbolsRegExp: ue,
|
|
323
|
+
forbiddenSymbolsTooltip: p.forbiddenSymbolsTooltip,
|
|
324
324
|
getDisabledTooltip: we,
|
|
325
325
|
unsupportedFileTypeTooltip: Te
|
|
326
|
-
}),
|
|
326
|
+
}), At != null && /* @__PURE__ */ u("div", {
|
|
327
327
|
"aria-live": "polite",
|
|
328
328
|
className: "absolute inset-0 z-52 flex items-center justify-center bg-backdrop desktop:p-4",
|
|
329
|
-
children: /* @__PURE__ */
|
|
329
|
+
children: /* @__PURE__ */ u(de, {
|
|
330
330
|
size: 32,
|
|
331
331
|
fullWidth: !1,
|
|
332
|
-
ariaLabel:
|
|
332
|
+
ariaLabel: At
|
|
333
333
|
})
|
|
334
334
|
})]
|
|
335
|
-
}) : /* @__PURE__ */
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
335
|
+
}) : /* @__PURE__ */ u("div", {
|
|
336
|
+
className: "p-6",
|
|
337
|
+
children: /* @__PURE__ */ u(le, {
|
|
338
|
+
message: p.errorMessage,
|
|
339
|
+
action: /* @__PURE__ */ u(oe, {
|
|
340
|
+
variant: o.Neutral,
|
|
341
|
+
appearance: se.Outlined,
|
|
342
|
+
size: ce.Small,
|
|
343
|
+
label: p.retryLabel,
|
|
344
|
+
onClick: Pe
|
|
345
|
+
})
|
|
346
|
+
})
|
|
342
347
|
}),
|
|
343
|
-
/* @__PURE__ */
|
|
348
|
+
/* @__PURE__ */ u("div", {
|
|
344
349
|
className: "fixed inset-e-4 bottom-4 z-51",
|
|
345
|
-
children: /* @__PURE__ */
|
|
346
|
-
title:
|
|
347
|
-
items:
|
|
348
|
-
onClose:
|
|
349
|
-
onCancelItem:
|
|
350
|
-
labels:
|
|
350
|
+
children: /* @__PURE__ */ u(fe, {
|
|
351
|
+
title: Dt,
|
|
352
|
+
items: wt,
|
|
353
|
+
onClose: St,
|
|
354
|
+
onCancelItem: Ct,
|
|
355
|
+
labels: Ot
|
|
351
356
|
})
|
|
352
357
|
}),
|
|
353
|
-
(
|
|
354
|
-
title:
|
|
355
|
-
text:
|
|
356
|
-
cancelLabel:
|
|
357
|
-
onCancel:
|
|
358
|
+
($e || F) && /* @__PURE__ */ u(ne, {
|
|
359
|
+
title: F ? p.operationLoaderMoveTitle : p.operationLoaderCopyTitle,
|
|
360
|
+
text: F ? p.movingLabel : p.copyingLabel,
|
|
361
|
+
cancelLabel: p.operationLoaderCancelLabel,
|
|
362
|
+
onCancel: et
|
|
358
363
|
})
|
|
359
364
|
] });
|
|
360
365
|
};
|
|
361
|
-
|
|
366
|
+
s(p);
|
|
362
367
|
//#endregion
|
|
363
|
-
export {
|
|
368
|
+
export { p as DialFileManagerShell };
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/** Adds `errorId` to the `aria-describedby` of the element `getControl` returns and sets `aria-invalid` while `hasError` is true. */
|
|
2
|
+
export declare const useControlErrorAssociation: (getControl: () => Element | null, errorId: string, hasError: boolean) => void;
|
|
3
|
+
//# sourceMappingURL=useControlErrorAssociation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useControlErrorAssociation.d.ts","sourceRoot":"","sources":["../../src/hooks/useControlErrorAssociation.ts"],"names":[],"mappings":"AASA,qIAAqI;AACrI,eAAO,MAAM,0BAA0B,GACrC,YAAY,MAAM,OAAO,GAAG,IAAI,EAChC,SAAS,MAAM,EACf,UAAU,OAAO,KAChB,IAqBF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { useLayoutEffect as e } from "react";
|
|
2
|
+
//#region src/hooks/useControlErrorAssociation.ts
|
|
3
|
+
var t = (t, n, r) => {
|
|
4
|
+
e(() => {
|
|
5
|
+
let e = t();
|
|
6
|
+
if (!e) return;
|
|
7
|
+
let i = (e.getAttribute("aria-describedby") ?? "").split(/\s+/).filter((e) => e !== "" && e !== n);
|
|
8
|
+
r ? (i.push(n), e.setAttribute("aria-invalid", "true")) : e.removeAttribute("aria-invalid"), i.length > 0 ? e.setAttribute("aria-describedby", i.join(" ")) : e.removeAttribute("aria-describedby");
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { t as useControlErrorAssociation };
|
package/index.d.ts
CHANGED
|
@@ -70,6 +70,7 @@ export * from './components/MarkdownRenderer/Table/TableHeader';
|
|
|
70
70
|
export * from './components/TextRefinementField/TextRefinementField';
|
|
71
71
|
export * from './entry-points/markdown';
|
|
72
72
|
export * from './hooks/useAvailableHeightCap';
|
|
73
|
+
export * from './hooks/useControlErrorAssociation';
|
|
73
74
|
export * from './hooks/useIsMobile';
|
|
74
75
|
export * from './hooks/useTextRefinement';
|
|
75
76
|
export * from './hooks/useUnsavedChangesGuard';
|
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mCAAmC,CAAC;AAClD,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAw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D,CAAC;AAC3E,cAAc,gEAAgE,CAAC;AAC/E,cAAc,iDAAiD,CAAC;AAChE,cAAc,sDAAsD,CAAC;AACrE,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oCAAoC,CAAC;AACnD,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,gCAAgC,CAAC;AAY/C,cAAc,sBAAsB,CAAC;AACrC,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,wCAAwC,CAAC"}
|
package/index.js
CHANGED
|
@@ -68,12 +68,13 @@ import { MarkdownWithPlaceholders as Ct } from "./components/MarkdownWithPlaceho
|
|
|
68
68
|
import { buildInlineSegmentSource as wt, createInlineSegmentComponents as Tt, createRehypeInlineSegments as Et } from "./utils/inline-segments.js";
|
|
69
69
|
import { useCollapsedText as Dt } from "./hooks/useCollapsedText.js";
|
|
70
70
|
import { useAvailableHeightCap as Ot } from "./hooks/useAvailableHeightCap.js";
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
|
|
71
|
+
import { useControlErrorAssociation as kt } from "./hooks/useControlErrorAssociation.js";
|
|
72
|
+
import { useIsMobile as At } from "./hooks/useIsMobile.js";
|
|
73
|
+
import { useUnsavedChangesGuard as jt } from "./hooks/useUnsavedChangesGuard.js";
|
|
74
|
+
import { DialFileManagerActionProfile as Mt, DialFileManagerVariant as Nt } from "./file-manager/file-manager-variant.js";
|
|
75
|
+
import { getParentFolderPath as Pt, isHiddenPath as Ft } from "./file-manager/path.js";
|
|
76
|
+
import { FileDownloadStatus as It, FileUploadFailureReason as Lt, FileUploadStatus as Rt, isDownloadInProgress as zt, isUploadInProgress as Bt } from "./file-manager/upload-batch.js";
|
|
77
|
+
import { useGridEditingScroll as Vt } from "./file-manager/useGridEditingScroll/useGridEditingScroll.js";
|
|
78
|
+
import { OperationLoaderModal as Ht } from "./file-manager/OperationLoaderModal/OperationLoaderModal.js";
|
|
79
|
+
import { isSkillSelectionUnsupported as Ut } from "./utils/is-skill-selection-unsupported.js";
|
|
80
|
+
export { m as AttachmentErrorReason, h as AttachmentType, Se as BASE_LG_ICON_PROPS, Ce as BASE_MD_ICON_PROPS, s as BackgroundGenerationStatus, ct as CHAT_SHARED_CLASS, yt as COMPACT_MARKDOWN_CLASS_NAMES, g as CatalogEntityType, y as CodeBlockTheme, et as ConfirmationDialog, $e as ConfirmationFooter, Xe as ConfirmationIdentityCard, Ze as ConfirmationIdentityRow, Qe as ConfirmationView, a as ConversationKind, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, Be as CopyButton, Ve as CopyIconButton, bt as DEFAULT_MARKDOWN_CLASS_NAMES, ft as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, tt as DELETE_CONFIRMATION_MAX_LISTED_NAMES, Pe as DESKTOP_BREAKPOINT_PX, Fe as DESKTOP_MEDIA_QUERY, rt as DeleteConfirmationDialog, nt as DeleteConfirmationView, ze as DeploymentIcon, Mt as DialFileManagerActionProfile, Nt as DialFileManagerVariant, z as ENTITY_DESCRIPTION_MAX_LENGTH, B as ENTITY_INSTRUCTIONS_MAX_LENGTH, V as ENTITY_NAME_MAX_LENGTH, fe as ENTITY_TYPE_BG_COLOR, pe as ENTITY_TYPE_COLOR, Je as EntityHeader, Ke as EntityTypeLabel, qe as FeaturedChip, It as FileDownloadStatus, _ as FileExtension, Lt as FileUploadFailureReason, Rt as FileUploadStatus, o as FilterTab, we as HIDDEN_FILE, Re as InitialsAvatar, Ge as ItemHeader, De as MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME, Oe as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, je as MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME, pt as MARKDOWN_TABLE_CSV_MIME_TYPE, St as MDMessageViewer, v as MIMEType, b as MIME_TYPE_ALIASES, x as MIME_TYPE_AUDIO_PREFIX, S as MIME_TYPE_EXT_MAP, C as MIME_TYPE_WILDCARD, Ie as MOBILE_MAX_WIDTH_PX, Le as MOBILE_MEDIA_QUERY, dt as MarkdownCodeBlock, _t as MarkdownRenderer, gt as MarkdownTable, mt as MarkdownTableCopyFormat, Ct as MarkdownWithPlaceholders, c as MessageRating, l as MessageRole, Ht as OperationLoaderModal, P as PROHIBITED_CONVERSATION_NAME_CHARS_RE, me as PROMPT_PARAM_DEFAULT_SEPARATOR, he as PROMPT_PARAM_PATTERN, ge as PROMPT_VARIABLE_CLASS_NAME, Te as PUBLIC_BUCKET, We as PanelEmptyState, xt as PlainTextRenderer, ke as RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE, Ae as RESIZABLE_TEXTAREA_CLASS_NAME, u as RequestStatus, Ye as ResourceSummary, p as ResponseFormat, Me as SELECT_LIST_MAX_HEIGHT_CLASS_NAME, Ne as SELECT_LIST_MAX_HEIGHT_PX, d as StageStatus, f as StatusEvent, Ee as TAG_INPUT_TAG_CLASS_NAME, it as TableHeader, st as TextRefinementField, at as TextRefinementState, ie as base64ToBlob, G as buildCssVars, wt as buildInlineSegmentSource, _e as buildPromptParamDefaults, X as copyMarkdownAsRichText, Z as copyToClipboard, Tt as createInlineSegmentComponents, Et as createRehypeInlineSegments, M as decodeJsonFromBase64, vt as defaultMarkdownComponents, ae as downloadTextFile, N as encodeJsonToBase64, oe as ensureDownloadFilename, H as exceedsMaxLength, He as extractInitials, ve as extractPromptParams, te as formatCost, ee as formatFileSize, $ as formatLastUsed, ne as formatPrice, re as formatUnitPrice, xe as generateUUID, w as getAttachmentTypeFromMime, T as getBaseMimeType, se as getFileExtensionForLanguage, Pt as getParentFolderPath, F as getUtf8ByteLength, U as hasControlCharacters, E as inferMimeTypeFromPath, k as isAnnotationSelector, Y as isAudioTranscriptionSupported, zt as isDownloadInProgress, Ft as isHiddenPath, Ut as isSkillSelectionUnsupported, K as isStatusMessage, de as isSyntaxHighlightingAllowed, Bt as isUploadInProgress, Q as markdownToRichTextHtml, W as mergeClasses, q as messageAttachmentToDisplayAttachment, J as messageAttachmentsToDisplayAttachments, D as normalizeMimeType, A as normalizePersistedHtmlTagAttachmentType, j as normalizeRawAnnotations, Ue as pickAvatarColor, ye as rehypePromptVariables, be as resolvePromptParams, ut as restrainedSyntaxTheme, I as sanitizeConversationName, ht as serializeMarkdownTableRows, L as stripTrailingDots, O as stripUrlQueryAndFragment, ce as triggerAnchorDownload, le as triggerBlobDownload, R as truncateToUtf8Bytes, ue as tryBase64ToBytes, Ot as useAvailableHeightCap, lt as useCodeCopy, Dt as useCollapsedText, kt as useControlErrorAssociation, Vt as useGridEditingScroll, At as useIsMobile, ot as useTextRefinement, jt as useUnsavedChangesGuard };
|
package/package.json
CHANGED