@epam/ai-dial-chat-shared 1.3.0-dev.105 → 1.3.0-dev.108
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 +280 -255
- package/file-manager/file-manager-controller.d.ts +11 -3
- package/file-manager/file-manager-controller.d.ts.map +1 -1
- package/file-manager/labels.d.ts +17 -2
- package/file-manager/labels.d.ts.map +1 -1
- package/file-manager/upload-batch.d.ts +46 -0
- package/file-manager/upload-batch.d.ts.map +1 -1
- package/file-manager/upload-batch.js +6 -2
- package/file-manager/upload-queue.d.ts +44 -4
- package/file-manager/upload-queue.d.ts.map +1 -1
- package/file-manager/upload-queue.js +45 -13
- package/file-manager.js +4 -4
- package/index.css +1 -1
- package/index.js +5 -5
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAQ1C,OAAO,EAML,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAE/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EACL,4BAA4B,EAC5B,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAEV,0BAA0B,EAE3B,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAA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jF,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE;QACvB,IAAI,CAAC,EAAE,yBAAyB,GAAG,IAAI,CAAC;KACzC,KAAK,OAAO,CAAC;IACd,0EAA0E;IAC1E,kBAAkB,CAAC,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,MAAM,GAAG,SAAS,CAAC;IACrE,uDAAuD;IACvD,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACjC;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAE,EAAE,CAAC,yBAAyB,CA2kB9D,CAAC;;AAEF,wBAA0C"}
|
|
@@ -3,321 +3,346 @@ import { DialFileManagerActionProfile as t, DialFileManagerVariant as n } from "
|
|
|
3
3
|
import { getParentFolderPath as ee } from "../path.js";
|
|
4
4
|
import { useGridEditingScroll as te } from "../useGridEditingScroll/useGridEditingScroll.js";
|
|
5
5
|
import { OperationLoaderModal as ne } from "../OperationLoaderModal/OperationLoaderModal.js";
|
|
6
|
-
import {
|
|
7
|
-
import { ButtonVariant as
|
|
8
|
-
import { memo as
|
|
9
|
-
import { Fragment as
|
|
10
|
-
import { DialFileManager as
|
|
6
|
+
import { TransferQueueRowKind as r, buildTransferQueueLabels as re, parseTransferQueueRowId as ie, toTransferQueueItems as ae } from "../upload-queue.js";
|
|
7
|
+
import { ButtonVariant as oe, NOT_ALLOWED_SYMBOLS_REGEXP as se, PrimaryButton as ce, Spinner as le, TransferQueue as ue } from "@epam/ai-dial-ui-kit";
|
|
8
|
+
import { memo as i, useCallback as a, useEffect as de, useMemo as o, useState as fe } from "react";
|
|
9
|
+
import { Fragment as pe, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
10
|
+
import { DialFileManager as me, DialFileManagerActions as l, DialFileManagerTabs as he, GridSelectionMode as ge } from "@epam/ai-dial-react-file-manager";
|
|
11
11
|
//#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
|
|
12
|
-
var
|
|
13
|
-
if (e.isDownloading) return t.downloadingLabel;
|
|
12
|
+
var _e = (e, t) => {
|
|
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
|
+
}, u = ({ controller: i, labels: u, activeTab: d, tabs: f, onTabChange: p, selectedPaths: m, onSelectedPathsChange: ve, variant: h, actionProfile: ye, autoSelectUploadedItems: be = !1, allowedFileTypes: xe, maxSelectableFileSize: g, oversizedUploadMessage: _, isRowSelectable: v, getDisabledTooltip: Se, unsupportedFileTypeTooltip: Ce, treeContainerClassName: y }) => {
|
|
18
|
+
let { items: we, isLoading: Te, error: Ee, path: b, onPathChange: De, retry: Oe, onSearchFiles: ke, isSearching: Ae, searchResults: je, clearSearchResults: Me, expandedPaths: x, loadedPaths: Ne, onExpandedPathsChange: S, onFolderPopupPathChange: Pe, folderPopupLoadingPaths: C, onUploadFiles: Fe, onUploadArchive: Ie, onValidateUpload: Le, uploadBatchState: w, cancelUpload: T, cancelUploadFile: E, clearUploadBatch: D, downloadBatchState: O, cancelDownloadFile: k, cancelAllDownloads: A, clearDownloadBatch: j, onCreateFolder: Re, onCreateFolderValidate: ze, onDownloadFiles: Be, onDeleteFiles: Ve, isDeleting: He, onMoveToFiles: Ue, onRenameValidate: We, isRenaming: Ge, onCopyFiles: Ke, isCopying: qe, isMoving: M, cancelCopyMove: Je, uploadEnabled: N, isNewButtonDisabled: P, disabledNewButtonTooltip: F, visibleColumns: I, dateLocale: L, dateOptions: R, actionLabels: z, sharedWithMeIds: Ye, sharedByMePaths: B, onUnshareFiles: Xe, isUnsharing: Ze, onRemoveFilesAccess: Qe, isRemovingAccess: $e, fileMetadata: V, isFileMetadataLoading: H, onGetInfo: et, clearMetadata: U, sectionTab: tt } = i, W = tt ?? d, [G, nt] = fe(void 0), { handleGridApiChange: rt, reset: K } = te();
|
|
19
|
+
de(() => {
|
|
20
|
+
K();
|
|
21
|
+
}, [W, K]);
|
|
22
|
+
let q = o(() => {
|
|
24
23
|
let e = {};
|
|
25
|
-
return
|
|
24
|
+
return l.Download in z && (e[l.Download] = u.downloadLabel), l.Delete in z && (e[l.Delete] = u.deleteLabel), l.Rename in z && (e[l.Rename] = u.renameLabel), l.Copy in z && (e[l.Copy] = u.copyLabel), l.Move in z && (e[l.Move] = u.moveLabel), l.Duplicate in z && (e[l.Duplicate] = u.duplicateLabel), l.Unshare in z && (e[l.Unshare] = u.unshareLabel), l.RemoveAccess in z && (e[l.RemoveAccess] = u.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
|
+
z,
|
|
27
|
+
u.downloadLabel,
|
|
28
|
+
u.deleteLabel,
|
|
29
|
+
u.renameLabel,
|
|
30
|
+
u.copyLabel,
|
|
31
|
+
u.moveLabel,
|
|
32
|
+
u.duplicateLabel,
|
|
33
|
+
u.unshareLabel,
|
|
34
|
+
u.removeAccessLabel
|
|
35
|
+
]), J = o(() => l.Info in z ? {
|
|
36
|
+
...q,
|
|
37
|
+
[l.Info]: u.infoLabel
|
|
38
|
+
} : q, [
|
|
39
|
+
q,
|
|
40
|
+
z,
|
|
41
|
+
u.infoLabel
|
|
42
|
+
]), Y = o(() => {
|
|
43
|
+
if (m.size === 0) return !1;
|
|
44
|
+
for (let e of m) if (!B.has(e)) return !1;
|
|
46
45
|
return !0;
|
|
47
|
-
}, [
|
|
48
|
-
if (
|
|
49
|
-
let { [
|
|
46
|
+
}, [m, B]), X = o(() => {
|
|
47
|
+
if (Y) return q;
|
|
48
|
+
let { [l.RemoveAccess]: e, ...t } = q;
|
|
50
49
|
return t;
|
|
51
|
-
}, [
|
|
52
|
-
selectionMode:
|
|
53
|
-
...
|
|
54
|
-
visibleColumns:
|
|
55
|
-
dateLocale:
|
|
56
|
-
dateOptions:
|
|
50
|
+
}, [q, Y]), Z = h === n.Attach, it = o(() => ({
|
|
51
|
+
selectionMode: ge.MULTIPLE,
|
|
52
|
+
...Z ? { filterable: !1 } : {},
|
|
53
|
+
visibleColumns: I,
|
|
54
|
+
dateLocale: L,
|
|
55
|
+
dateOptions: R,
|
|
57
56
|
additionalGridOptions: {
|
|
58
57
|
domLayout: "normal",
|
|
59
58
|
rowSelection: {
|
|
60
59
|
mode: "multiRow",
|
|
61
|
-
isRowSelectable:
|
|
60
|
+
isRowSelectable: v ?? (() => !0)
|
|
62
61
|
}
|
|
63
62
|
},
|
|
64
|
-
actionLabels:
|
|
63
|
+
actionLabels: J
|
|
65
64
|
}), [
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
]),
|
|
73
|
-
header:
|
|
74
|
-
containerClassName:
|
|
75
|
-
tabsAriaLabel:
|
|
76
|
-
tabs:
|
|
77
|
-
activeTab:
|
|
78
|
-
onTabChange:
|
|
79
|
-
expandedPaths:
|
|
80
|
-
loadedPaths:
|
|
81
|
-
loadingPaths:
|
|
82
|
-
onExpandedPathsChange:
|
|
83
|
-
actionLabels:
|
|
65
|
+
Z,
|
|
66
|
+
I,
|
|
67
|
+
L,
|
|
68
|
+
R,
|
|
69
|
+
J,
|
|
70
|
+
v
|
|
71
|
+
]), at = o(() => ({
|
|
72
|
+
header: h === n.Attach ? null : u.treeHeaderByTab[d],
|
|
73
|
+
containerClassName: y ?? (h === n.Attach ? "min-h-0 h-full w-[360px] shrink-0 rounded-xl bg-layer-raised shadow-sm" : void 0),
|
|
74
|
+
tabsAriaLabel: u.treeHeaderByTab[d],
|
|
75
|
+
tabs: f,
|
|
76
|
+
activeTab: d,
|
|
77
|
+
onTabChange: p,
|
|
78
|
+
expandedPaths: x,
|
|
79
|
+
loadedPaths: Ne,
|
|
80
|
+
loadingPaths: C,
|
|
81
|
+
onExpandedPathsChange: S,
|
|
82
|
+
actionLabels: q
|
|
84
83
|
}), [
|
|
85
|
-
|
|
86
|
-
_,
|
|
87
|
-
p,
|
|
88
|
-
u,
|
|
89
|
-
l,
|
|
90
|
-
d,
|
|
84
|
+
u.treeHeaderByTab,
|
|
91
85
|
y,
|
|
92
|
-
|
|
93
|
-
|
|
86
|
+
h,
|
|
87
|
+
f,
|
|
88
|
+
d,
|
|
89
|
+
p,
|
|
94
90
|
x,
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
Ne,
|
|
92
|
+
C,
|
|
93
|
+
S,
|
|
94
|
+
q
|
|
95
|
+
]), Q = h === n.Standalone && ye === t.Full && W === he.MyFiles && N, ot = o(() => ({
|
|
97
96
|
showHiddenFilesToggle: !0,
|
|
98
|
-
...
|
|
99
|
-
hiddenFilesSwitcherLabel:
|
|
100
|
-
showHiddenFilesLabel:
|
|
101
|
-
hideHiddenFilesLabel:
|
|
102
|
-
isNewButtonDisabled:
|
|
103
|
-
disabledNewButtonTooltip:
|
|
97
|
+
...Z ? { newButtonVariant: oe.Neutral } : {},
|
|
98
|
+
hiddenFilesSwitcherLabel: u.hiddenFilesLabel,
|
|
99
|
+
showHiddenFilesLabel: u.showHiddenFilesLabel,
|
|
100
|
+
hideHiddenFilesLabel: u.hideHiddenFilesLabel,
|
|
101
|
+
isNewButtonDisabled: P,
|
|
102
|
+
disabledNewButtonTooltip: F,
|
|
104
103
|
newActions: {
|
|
105
104
|
uploadFiles: {
|
|
106
|
-
label:
|
|
105
|
+
label: u.uploadFilesLabel,
|
|
107
106
|
icon: null
|
|
108
107
|
},
|
|
109
108
|
newFolder: {
|
|
110
|
-
label:
|
|
109
|
+
label: u.newFolderLabel,
|
|
111
110
|
icon: null
|
|
112
111
|
},
|
|
113
|
-
...
|
|
114
|
-
label:
|
|
112
|
+
...Q ? { uploadArchive: {
|
|
113
|
+
label: u.uploadArchiveAction,
|
|
115
114
|
icon: null
|
|
116
115
|
} } : {}
|
|
117
116
|
}
|
|
118
117
|
}), [
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
]),
|
|
130
|
-
getSelectionLabel:
|
|
131
|
-
actionLabels:
|
|
118
|
+
Z,
|
|
119
|
+
u.hiddenFilesLabel,
|
|
120
|
+
u.showHiddenFilesLabel,
|
|
121
|
+
u.hideHiddenFilesLabel,
|
|
122
|
+
P,
|
|
123
|
+
F,
|
|
124
|
+
u.uploadFilesLabel,
|
|
125
|
+
u.newFolderLabel,
|
|
126
|
+
Q,
|
|
127
|
+
u.uploadArchiveAction
|
|
128
|
+
]), st = o(() => Z ? void 0 : {
|
|
129
|
+
getSelectionLabel: u.getSelectionLabel,
|
|
130
|
+
actionLabels: X
|
|
132
131
|
}, [
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
]),
|
|
137
|
-
cancelLabel:
|
|
138
|
-
confirmLabel:
|
|
139
|
-
closeLabel:
|
|
140
|
-
titleRenderer:
|
|
141
|
-
contentRenderer:
|
|
132
|
+
Z,
|
|
133
|
+
u.getSelectionLabel,
|
|
134
|
+
X
|
|
135
|
+
]), ct = o(() => ({
|
|
136
|
+
cancelLabel: u.deleteCancelLabel,
|
|
137
|
+
confirmLabel: u.deleteConfirmLabel,
|
|
138
|
+
closeLabel: u.deleteCloseLabel,
|
|
139
|
+
titleRenderer: u.deleteConfirmTitle,
|
|
140
|
+
contentRenderer: u.deleteConfirmBody
|
|
142
141
|
}), [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
]),
|
|
142
|
+
u.deleteCancelLabel,
|
|
143
|
+
u.deleteConfirmLabel,
|
|
144
|
+
u.deleteCloseLabel,
|
|
145
|
+
u.deleteConfirmTitle,
|
|
146
|
+
u.deleteConfirmBody
|
|
147
|
+
]), lt = o(() => {
|
|
149
148
|
let e;
|
|
150
|
-
for (let t of
|
|
149
|
+
for (let t of m) {
|
|
151
150
|
let n = ee(t);
|
|
152
151
|
if (e === void 0) e = n;
|
|
153
152
|
else if (e !== n) return;
|
|
154
153
|
}
|
|
155
154
|
return e;
|
|
156
|
-
}, [
|
|
157
|
-
copyLabel:
|
|
158
|
-
moveLabel:
|
|
159
|
-
addFolderLabel:
|
|
160
|
-
hiddenFilesSwitcherLabel:
|
|
161
|
-
getCopyHeader:
|
|
162
|
-
getMoveHeader:
|
|
163
|
-
disabledPathTooltip:
|
|
164
|
-
movedIntoItselfTooltip:
|
|
165
|
-
emptyStateTitle:
|
|
166
|
-
emptyStateDescription:
|
|
167
|
-
sourceFolder:
|
|
168
|
-
destinationFolderPath:
|
|
169
|
-
setDestinationFolderPath:
|
|
170
|
-
filesLoading:
|
|
155
|
+
}, [m]), $ = G != null && C.has(G), ut = $ ? G : lt, dt = o(() => ({
|
|
156
|
+
copyLabel: u.copyLabel,
|
|
157
|
+
moveLabel: u.moveLabel,
|
|
158
|
+
addFolderLabel: u.addFolderLabel,
|
|
159
|
+
hiddenFilesSwitcherLabel: u.hiddenFilesSwitcherLabel,
|
|
160
|
+
getCopyHeader: u.getCopyHeader,
|
|
161
|
+
getMoveHeader: u.getMoveHeader,
|
|
162
|
+
disabledPathTooltip: $ ? u.folderPickerLoadingTooltip : u.moveSourceDisabledTooltip,
|
|
163
|
+
movedIntoItselfTooltip: u.movedIntoItselfTooltip,
|
|
164
|
+
emptyStateTitle: u.folderPickerEmptyStateTitle,
|
|
165
|
+
emptyStateDescription: u.folderPickerEmptyStateDescription,
|
|
166
|
+
sourceFolder: ut,
|
|
167
|
+
destinationFolderPath: G,
|
|
168
|
+
setDestinationFolderPath: nt,
|
|
169
|
+
filesLoading: $
|
|
171
170
|
}), [
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
]),
|
|
187
|
-
|
|
188
|
-
}, [
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
171
|
+
u.copyLabel,
|
|
172
|
+
u.moveLabel,
|
|
173
|
+
u.addFolderLabel,
|
|
174
|
+
u.hiddenFilesSwitcherLabel,
|
|
175
|
+
u.getCopyHeader,
|
|
176
|
+
u.getMoveHeader,
|
|
177
|
+
u.folderPickerLoadingTooltip,
|
|
178
|
+
u.moveSourceDisabledTooltip,
|
|
179
|
+
u.movedIntoItselfTooltip,
|
|
180
|
+
u.folderPickerEmptyStateTitle,
|
|
181
|
+
u.folderPickerEmptyStateDescription,
|
|
182
|
+
$,
|
|
183
|
+
ut,
|
|
184
|
+
G
|
|
185
|
+
]), ft = a(() => {
|
|
186
|
+
T(), A(), D(), j();
|
|
187
|
+
}, [
|
|
188
|
+
T,
|
|
189
|
+
A,
|
|
190
|
+
D,
|
|
191
|
+
j
|
|
192
|
+
]), pt = a((e) => {
|
|
193
|
+
let t = ie(e);
|
|
194
|
+
t?.kind === r.Upload ? E(t.entryId) : t?.kind === r.Download && k(t.entryId);
|
|
195
|
+
}, [E, k]), mt = o(() => ae(w, O, u.uploadFailureMessages), [
|
|
196
|
+
w,
|
|
197
|
+
O,
|
|
198
|
+
u.uploadFailureMessages
|
|
199
|
+
]), ht = w?.files.length ?? 0, gt = O?.files.length ?? 0, _t = u.getTransferQueueTitle?.({
|
|
200
|
+
uploads: ht,
|
|
201
|
+
downloads: gt
|
|
202
|
+
}) ?? u.getUploadQueueTitle(ht + gt), vt = o(() => re({
|
|
203
|
+
uploadLabels: u.uploadQueueLabels,
|
|
204
|
+
downloadLabels: u.downloadQueueLabels,
|
|
205
|
+
mixedProgressLabel: u.transferQueueProgressAriaLabel,
|
|
206
|
+
uploadNames: new Set(w?.files.map((e) => e.name)),
|
|
207
|
+
downloadNames: new Set(O?.files.map((e) => e.name))
|
|
198
208
|
}), [
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
209
|
+
u.uploadQueueLabels,
|
|
210
|
+
u.downloadQueueLabels,
|
|
211
|
+
u.transferQueueProgressAriaLabel,
|
|
212
|
+
w,
|
|
213
|
+
O
|
|
214
|
+
]), yt = o(() => ({
|
|
215
|
+
fileMetadata: V,
|
|
216
|
+
loading: H,
|
|
217
|
+
clearMetadata: U,
|
|
218
|
+
header: u.metadataHeader,
|
|
219
|
+
nameLabel: u.metadataNameLabel,
|
|
220
|
+
pathLabel: u.metadataPathLabel,
|
|
221
|
+
modifiedDateLabel: u.metadataModifiedDateLabel,
|
|
222
|
+
sizeLabel: u.metadataSizeLabel,
|
|
223
|
+
authorLabel: u.metadataAuthorLabel
|
|
224
|
+
}), [
|
|
225
|
+
V,
|
|
226
|
+
H,
|
|
227
|
+
U,
|
|
228
|
+
u.metadataHeader,
|
|
229
|
+
u.metadataNameLabel,
|
|
230
|
+
u.metadataPathLabel,
|
|
231
|
+
u.metadataModifiedDateLabel,
|
|
232
|
+
u.metadataSizeLabel,
|
|
233
|
+
u.metadataAuthorLabel
|
|
234
|
+
]), bt = _e({
|
|
235
|
+
isDeleting: He,
|
|
236
|
+
isRenaming: Ge,
|
|
237
|
+
isMoving: M,
|
|
238
|
+
isUnsharing: Ze,
|
|
239
|
+
isRemovingAccess: $e
|
|
240
|
+
}, u), xt = "bg-layer-base", St = o(() => b.split("/").filter(Boolean).length > 1 ? {
|
|
241
|
+
title: u.folderEmptyStateTitle,
|
|
217
242
|
description: ""
|
|
218
|
-
} :
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
243
|
+
} : u.emptyStateByTab[W], [
|
|
244
|
+
b,
|
|
245
|
+
u.folderEmptyStateTitle,
|
|
246
|
+
u.emptyStateByTab,
|
|
247
|
+
W
|
|
223
248
|
]);
|
|
224
|
-
return /* @__PURE__ */
|
|
225
|
-
|
|
226
|
-
className: e("relative flex min-h-0 w-full grow overflow-auto",
|
|
227
|
-
children: [/* @__PURE__ */
|
|
228
|
-
className: e("min-h-0 w-full grow",
|
|
229
|
-
contentClassName:
|
|
230
|
-
gridClassName:
|
|
231
|
-
items:
|
|
232
|
-
path:
|
|
233
|
-
onPathChange:
|
|
234
|
-
onGridApiChange:
|
|
235
|
-
filesLoading:
|
|
236
|
-
allowedFileTypes:
|
|
237
|
-
maxSelectableFileSize:
|
|
238
|
-
maxFileSize:
|
|
239
|
-
uploadValidationMessages:
|
|
240
|
-
selectedPaths:
|
|
241
|
-
onSelectedPathsChange:
|
|
249
|
+
return /* @__PURE__ */ c(pe, { children: [
|
|
250
|
+
Ee == null ? /* @__PURE__ */ c("div", {
|
|
251
|
+
className: e("relative flex min-h-0 w-full grow overflow-auto", xt),
|
|
252
|
+
children: [/* @__PURE__ */ s(me, {
|
|
253
|
+
className: e("min-h-0 w-full grow", xt, Z && "p-0"),
|
|
254
|
+
contentClassName: h === n.Attach ? "px-0 pb-0" : void 0,
|
|
255
|
+
gridClassName: h === n.Attach ? "size-full gap-6 px-6 py-4" : "size-full",
|
|
256
|
+
items: we,
|
|
257
|
+
path: b,
|
|
258
|
+
onPathChange: De,
|
|
259
|
+
onGridApiChange: rt,
|
|
260
|
+
filesLoading: Te,
|
|
261
|
+
allowedFileTypes: xe,
|
|
262
|
+
maxSelectableFileSize: g,
|
|
263
|
+
maxFileSize: g,
|
|
264
|
+
uploadValidationMessages: _ == null ? void 0 : { oversizedFiles: _ },
|
|
265
|
+
selectedPaths: m,
|
|
266
|
+
onSelectedPathsChange: ve,
|
|
242
267
|
navigationPanelOptions: {
|
|
243
268
|
searchable: !0,
|
|
244
|
-
placeholder:
|
|
269
|
+
placeholder: u.searchPlaceholderByTab?.[W]
|
|
245
270
|
},
|
|
246
271
|
hideSearchPathItemName: !0,
|
|
247
|
-
onSearchFiles:
|
|
248
|
-
searchInProgress:
|
|
249
|
-
searchResults:
|
|
250
|
-
clearSearchResults:
|
|
251
|
-
gridOptions:
|
|
252
|
-
treeOptions:
|
|
253
|
-
onFolderPopupPathChange:
|
|
254
|
-
toolbarOptions:
|
|
255
|
-
bulkActionsToolbarOptions:
|
|
256
|
-
autoSelectUploadedItems:
|
|
257
|
-
emptyStateTitle:
|
|
258
|
-
emptyStateDescription:
|
|
259
|
-
searchEmptyStateTitle:
|
|
260
|
-
uploadEnabled:
|
|
261
|
-
sharedWithMeIds:
|
|
262
|
-
sharedByMePaths:
|
|
263
|
-
onUnshareFiles:
|
|
264
|
-
onRemoveFilesAccess:
|
|
265
|
-
fileMetadataPopupOptions:
|
|
266
|
-
onGetInfo:
|
|
267
|
-
onUploadFiles:
|
|
268
|
-
onUploadArchive:
|
|
269
|
-
onValidateUpload:
|
|
270
|
-
onCreateFolder:
|
|
271
|
-
onCreateFolderValidate:
|
|
272
|
-
onDownloadFiles:
|
|
273
|
-
onDeleteFiles:
|
|
274
|
-
onMoveToFiles:
|
|
275
|
-
onCopyFiles:
|
|
276
|
-
onRenameValidate:
|
|
277
|
-
renameValidationMessages:
|
|
278
|
-
isRenameFileAvailable:
|
|
279
|
-
deleteConfirmationOptions:
|
|
280
|
-
conflictResolutionPopupOptions:
|
|
281
|
-
destinationFolderPopupOptions:
|
|
282
|
-
forbiddenSymbolsRegExp:
|
|
283
|
-
forbiddenSymbolsTooltip:
|
|
284
|
-
getDisabledTooltip:
|
|
285
|
-
unsupportedFileTypeTooltip:
|
|
286
|
-
}),
|
|
272
|
+
onSearchFiles: ke,
|
|
273
|
+
searchInProgress: Ae,
|
|
274
|
+
searchResults: je ?? [],
|
|
275
|
+
clearSearchResults: Me,
|
|
276
|
+
gridOptions: it,
|
|
277
|
+
treeOptions: at,
|
|
278
|
+
onFolderPopupPathChange: Pe,
|
|
279
|
+
toolbarOptions: ot,
|
|
280
|
+
bulkActionsToolbarOptions: st,
|
|
281
|
+
autoSelectUploadedItems: be,
|
|
282
|
+
emptyStateTitle: St.title,
|
|
283
|
+
emptyStateDescription: St.description,
|
|
284
|
+
searchEmptyStateTitle: u.searchEmptyStateTitle,
|
|
285
|
+
uploadEnabled: N,
|
|
286
|
+
sharedWithMeIds: Ye,
|
|
287
|
+
sharedByMePaths: B,
|
|
288
|
+
onUnshareFiles: Xe,
|
|
289
|
+
onRemoveFilesAccess: Qe,
|
|
290
|
+
fileMetadataPopupOptions: yt,
|
|
291
|
+
onGetInfo: et,
|
|
292
|
+
onUploadFiles: Fe,
|
|
293
|
+
onUploadArchive: Ie,
|
|
294
|
+
onValidateUpload: Le,
|
|
295
|
+
onCreateFolder: Re,
|
|
296
|
+
onCreateFolderValidate: ze,
|
|
297
|
+
onDownloadFiles: Be,
|
|
298
|
+
onDeleteFiles: Ve,
|
|
299
|
+
onMoveToFiles: Ue,
|
|
300
|
+
onCopyFiles: Ke,
|
|
301
|
+
onRenameValidate: We,
|
|
302
|
+
renameValidationMessages: u.renameValidationMessages,
|
|
303
|
+
isRenameFileAvailable: N,
|
|
304
|
+
deleteConfirmationOptions: ct,
|
|
305
|
+
conflictResolutionPopupOptions: u.conflictResolutionPopupOptions,
|
|
306
|
+
destinationFolderPopupOptions: dt,
|
|
307
|
+
forbiddenSymbolsRegExp: se,
|
|
308
|
+
forbiddenSymbolsTooltip: u.forbiddenSymbolsTooltip,
|
|
309
|
+
getDisabledTooltip: Se,
|
|
310
|
+
unsupportedFileTypeTooltip: Ce
|
|
311
|
+
}), bt != null && /* @__PURE__ */ s("div", {
|
|
287
312
|
"aria-live": "polite",
|
|
288
313
|
className: "absolute inset-0 z-52 flex items-center justify-center bg-backdrop desktop:p-4",
|
|
289
|
-
children: /* @__PURE__ */
|
|
314
|
+
children: /* @__PURE__ */ s(le, {
|
|
290
315
|
size: 32,
|
|
291
316
|
fullWidth: !1,
|
|
292
|
-
ariaLabel:
|
|
317
|
+
ariaLabel: bt
|
|
293
318
|
})
|
|
294
319
|
})]
|
|
295
|
-
}) : /* @__PURE__ */
|
|
320
|
+
}) : /* @__PURE__ */ c("div", {
|
|
296
321
|
role: "alert",
|
|
297
322
|
className: "flex flex-col items-center gap-4 p-6",
|
|
298
|
-
children: [/* @__PURE__ */
|
|
299
|
-
label:
|
|
300
|
-
onClick:
|
|
323
|
+
children: [/* @__PURE__ */ s("p", { children: u.errorMessage }), /* @__PURE__ */ s(ce, {
|
|
324
|
+
label: u.retryLabel,
|
|
325
|
+
onClick: Oe
|
|
301
326
|
})]
|
|
302
327
|
}),
|
|
303
|
-
/* @__PURE__ */
|
|
304
|
-
className: "fixed inset-e-4 bottom-4 z-
|
|
305
|
-
children: /* @__PURE__ */
|
|
306
|
-
title:
|
|
307
|
-
items:
|
|
308
|
-
onClose:
|
|
309
|
-
onCancelItem:
|
|
310
|
-
labels:
|
|
328
|
+
/* @__PURE__ */ s("div", {
|
|
329
|
+
className: "fixed inset-e-4 bottom-4 z-51",
|
|
330
|
+
children: /* @__PURE__ */ s(ue, {
|
|
331
|
+
title: _t,
|
|
332
|
+
items: mt,
|
|
333
|
+
onClose: ft,
|
|
334
|
+
onCancelItem: pt,
|
|
335
|
+
labels: vt
|
|
311
336
|
})
|
|
312
337
|
}),
|
|
313
|
-
(
|
|
314
|
-
title:
|
|
315
|
-
text:
|
|
316
|
-
cancelLabel:
|
|
317
|
-
onCancel:
|
|
338
|
+
(qe || M) && /* @__PURE__ */ s(ne, {
|
|
339
|
+
title: M ? u.operationLoaderMoveTitle : u.operationLoaderCopyTitle,
|
|
340
|
+
text: M ? u.movingLabel : u.copyingLabel,
|
|
341
|
+
cancelLabel: u.operationLoaderCancelLabel,
|
|
342
|
+
onCancel: Je
|
|
318
343
|
})
|
|
319
344
|
] });
|
|
320
345
|
};
|
|
321
|
-
|
|
346
|
+
i(u);
|
|
322
347
|
//#endregion
|
|
323
|
-
export {
|
|
348
|
+
export { u as DialFileManagerShell };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DialCopiedItem, DialDeletedItem, DialFile, DialFileManagerActions, DialFileManagerTabs, DialUploadFileItem, FileManagerColumnKey } from '@epam/ai-dial-react-file-manager';
|
|
2
2
|
import { FileUploadValidationResult } from './file-upload-validation';
|
|
3
|
-
import { FileUploadBatchState } from './upload-batch';
|
|
3
|
+
import { FileDownloadBatchState, FileUploadBatchState } from './upload-batch';
|
|
4
4
|
/**
|
|
5
5
|
* Structural view contract consumed by `DialFileManagerShell`. Contains exactly
|
|
6
6
|
* the fields of `UseDialFileManagerResult` that the shell reads, with the same
|
|
@@ -59,10 +59,18 @@ export interface FileManagerController {
|
|
|
59
59
|
onCreateFolder: (file: DialUploadFileItem, folderPath: string, fileId: string) => Promise<void>;
|
|
60
60
|
/** Folder creation: inline synchronous validation (returns error message or null). */
|
|
61
61
|
onCreateFolderValidate: (name: string, parentFolder: DialFile) => string | null;
|
|
62
|
-
/** Download: called when user triggers download on one or more items. */
|
|
62
|
+
/** Download: called when user triggers download on one or more items; returns without waiting for the transfer. */
|
|
63
63
|
onDownloadFiles: (dialFiles: DialFile[]) => void;
|
|
64
|
-
/** True while
|
|
64
|
+
/** True while at least one download is in progress. Does not block other actions. */
|
|
65
65
|
isDownloading: boolean;
|
|
66
|
+
/** Download: current batch state (null when idle). */
|
|
67
|
+
downloadBatchState: FileDownloadBatchState | null;
|
|
68
|
+
/** Download: abort one in-flight download by its entry id. */
|
|
69
|
+
cancelDownloadFile: (id: string) => void;
|
|
70
|
+
/** Download: abort every in-flight download. */
|
|
71
|
+
cancelAllDownloads: () => void;
|
|
72
|
+
/** Download: empty the download batch. */
|
|
73
|
+
clearDownloadBatch: () => void;
|
|
66
74
|
/** Delete: called when user confirms deletion of one or more items. */
|
|
67
75
|
onDeleteFiles: (items: DialDeletedItem[], sourceFolder: string) => void;
|
|
68
76
|
/** True while a delete request is in flight. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-manager-controller.d.ts","sourceRoot":"","sources":["../../src/file-manager/file-manager-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,QAAQ,EACR,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"file-manager-controller.d.ts","sourceRoot":"","sources":["../../src/file-manager/file-manager-controller.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,eAAe,EACf,QAAQ,EACR,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,KAAK,EACV,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,gBAAgB,CAAC;AAExB;;;;;;;;GAQG;AACH,MAAM,WAAW,qBAAqB;IACpC,6DAA6D;IAC7D,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,gDAAgD;IAChD,SAAS,EAAE,OAAO,CAAC;IACnB,2CAA2C;IAC3C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB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EAAE,CAAC,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IACpC,6GAA6G;IAC7G,aAAa,EAAE,MAAM,IAAI,CAAC;IAE1B,2FAA2F;IAC3F,UAAU,CAAC,EAAE,mBAAmB,CAAC;CAClC"}
|
package/file-manager/labels.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DialFile, DialFileManager, DialFileManagerTabs } from '@epam/ai-dial-react-file-manager';
|
|
2
2
|
import { TransferQueueLabels } from '@epam/ai-dial-ui-kit';
|
|
3
3
|
import { ComponentProps, ReactNode } from 'react';
|
|
4
|
+
import { FileUploadFailureReason } from './upload-batch';
|
|
4
5
|
type DialFileManagerComponentProps = ComponentProps<typeof DialFileManager>;
|
|
5
6
|
/** Options for the conflict-resolution popup shown during copy/move operations. */
|
|
6
7
|
export type ConflictResolutionPopupOptions = NonNullable<DialFileManagerComponentProps['conflictResolutionPopupOptions']>;
|
|
@@ -41,8 +42,11 @@ export interface DialFileManagerShellLabels {
|
|
|
41
42
|
newFolderLabel: string;
|
|
42
43
|
/** Label for the Download action. */
|
|
43
44
|
downloadLabel: string;
|
|
44
|
-
/**
|
|
45
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Overlay label shown while a download was in progress.
|
|
47
|
+
* @deprecated Not read: downloads run as transfer-queue rows with no overlay.
|
|
48
|
+
*/
|
|
49
|
+
downloadingLabel?: string;
|
|
46
50
|
/** Label for the Delete action. */
|
|
47
51
|
deleteLabel: string;
|
|
48
52
|
/** Overlay label shown while a delete operation is in progress. */
|
|
@@ -99,6 +103,17 @@ export interface DialFileManagerShellLabels {
|
|
|
99
103
|
getUploadQueueTitle: (count: number) => string;
|
|
100
104
|
/** Translated strings for the upload `TransferQueue`; unset ones fall back to the kit's English defaults. */
|
|
101
105
|
uploadQueueLabels?: Partial<TransferQueueLabels>;
|
|
106
|
+
/** Tooltip and accessible name of a failed upload or download row, per failure reason; a reason without one shows `uploadQueueLabels.failedMessage`. */
|
|
107
|
+
uploadFailureMessages?: Partial<Record<FileUploadFailureReason, string>>;
|
|
108
|
+
/** Returns the transfer queue heading from the number of upload and download rows; unset falls back to `getUploadQueueTitle` with the total. */
|
|
109
|
+
getTransferQueueTitle?: (counts: {
|
|
110
|
+
uploads: number;
|
|
111
|
+
downloads: number;
|
|
112
|
+
}) => string;
|
|
113
|
+
/** Download-row wording of the transfer queue (cancel and progress names, and the aggregate bar's name when only downloads run); unset ones use `uploadQueueLabels`. */
|
|
114
|
+
downloadQueueLabels?: Partial<Pick<TransferQueueLabels, 'cancelItemAriaLabel' | 'itemProgressAriaLabel' | 'queueProgressAriaLabel'>>;
|
|
115
|
+
/** Accessible name of the queue's aggregate progress bar while uploads and downloads both run; unset uses `uploadQueueLabels.queueProgressAriaLabel`. */
|
|
116
|
+
transferQueueProgressAriaLabel?: string;
|
|
102
117
|
/** Empty-state title when a search yields no results. */
|
|
103
118
|
searchEmptyStateTitle: string;
|
|
104
119
|
/** Empty-state title for an empty subfolder. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/file-manager/labels.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EACf,mBAAmB,EACpB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"labels.d.ts","sourceRoot":"","sources":["../../src/file-manager/labels.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,QAAQ,EACR,eAAe,EACf,mBAAmB,EACpB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAA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AY,EAAE,MAAM,CAAC;IACrB,qEAAqE;IACrE,cAAc,EAAE,MAAM,CAAC;IACvB,0CAA0C;IAC1C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,0EAA0E;IAC1E,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,yDAAyD;IACzD,yBAAyB,EAAE,MAAM,CAAC;IAClC,qDAAqD;IACrD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kDAAkD;IAClD,mBAAmB,EAAE,MAAM,CAAC;CAC7B;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,4BAA6B,SAAQ,0BAA0B;IAC9E,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAC;IACd,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,gGAAgG;IAChG,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC"}
|
|
@@ -6,6 +6,21 @@ export declare enum FileUploadStatus {
|
|
|
6
6
|
Failed = "failed",
|
|
7
7
|
Cancelled = "cancelled"
|
|
8
8
|
}
|
|
9
|
+
/** Why a file in an upload batch failed, derived from the upload response. */
|
|
10
|
+
export declare enum FileUploadFailureReason {
|
|
11
|
+
/** A file with this name already exists at the destination (HTTP 409). */
|
|
12
|
+
Conflict = "conflict",
|
|
13
|
+
/** The file is larger than the server accepts (HTTP 413). */
|
|
14
|
+
TooLarge = "tooLarge",
|
|
15
|
+
/** The user may not write to the destination (HTTP 403). */
|
|
16
|
+
Forbidden = "forbidden",
|
|
17
|
+
/** The file service behind the API is unavailable (HTTP 502/503). */
|
|
18
|
+
Unavailable = "unavailable",
|
|
19
|
+
/** The request never got a response, e.g. the connection dropped. */
|
|
20
|
+
Network = "network",
|
|
21
|
+
/** Any other failure. */
|
|
22
|
+
Unknown = "unknown"
|
|
23
|
+
}
|
|
9
24
|
/** Progress state for a single file within an upload batch. */
|
|
10
25
|
export interface FileUploadEntry {
|
|
11
26
|
/** Unique identifier of the file in the batch. */
|
|
@@ -16,6 +31,8 @@ export interface FileUploadEntry {
|
|
|
16
31
|
status: FileUploadStatus;
|
|
17
32
|
/** 0–100 while uploading when the transport reports byte progress. */
|
|
18
33
|
percent?: number;
|
|
34
|
+
/** Why the upload failed; set only when `status` is `Failed`. */
|
|
35
|
+
failureReason?: FileUploadFailureReason;
|
|
19
36
|
}
|
|
20
37
|
/** State of the upload queue, as returned by `useDialFileUploadBatch`. */
|
|
21
38
|
export interface FileUploadBatchState {
|
|
@@ -24,6 +41,35 @@ export interface FileUploadBatchState {
|
|
|
24
41
|
/** Whether the upload queue should be visible. */
|
|
25
42
|
isOpen: boolean;
|
|
26
43
|
}
|
|
44
|
+
/** Lifecycle status of a single download in the download batch. */
|
|
45
|
+
export declare enum FileDownloadStatus {
|
|
46
|
+
Downloading = "downloading",
|
|
47
|
+
Completed = "completed",
|
|
48
|
+
Failed = "failed",
|
|
49
|
+
Cancelled = "cancelled"
|
|
50
|
+
}
|
|
51
|
+
/** Progress state for a single download: one file, or one archive of a selection. */
|
|
52
|
+
export interface FileDownloadEntry {
|
|
53
|
+
/** Unique identifier of the download in the batch. */
|
|
54
|
+
id: string;
|
|
55
|
+
/** Display name: the file name, or the archive name (`<folder>.zip` / `files.zip`). */
|
|
56
|
+
name: string;
|
|
57
|
+
/** Current download lifecycle status. */
|
|
58
|
+
status: FileDownloadStatus;
|
|
59
|
+
/** 0–100 while downloading when the total size is known or estimated; unset otherwise. */
|
|
60
|
+
percent?: number;
|
|
61
|
+
/** Why the download failed; set only when `status` is `Failed`. Shares the upload reasons. */
|
|
62
|
+
failureReason?: FileUploadFailureReason;
|
|
63
|
+
}
|
|
64
|
+
/** State of the download batch kept by `useDialFileMutations`. */
|
|
65
|
+
export interface FileDownloadBatchState {
|
|
66
|
+
/** Every download started since the batch was last cleared, settled ones included. */
|
|
67
|
+
files: FileDownloadEntry[];
|
|
68
|
+
/** Whether the download rows should be visible in the transfer queue. */
|
|
69
|
+
isOpen: boolean;
|
|
70
|
+
}
|
|
71
|
+
/** Returns whether any download in the batch is still in progress. */
|
|
72
|
+
export declare const isDownloadInProgress: (batchState: FileDownloadBatchState | null) => boolean;
|
|
27
73
|
/** Returns whether any file in the batch is still queued or uploading. */
|
|
28
74
|
export declare const isUploadInProgress: (batchState: FileUploadBatchState | null) => boolean;
|
|
29
75
|
//# sourceMappingURL=upload-batch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-batch.d.ts","sourceRoot":"","sources":["../../src/file-manager/upload-batch.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,+DAA+D;AAC/D,MAAM,WAAW,eAAe;IAC9B,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,MAAM,EAAE,gBAAgB,CAAC;IACzB,sEAAsE;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"upload-batch.d.ts","sourceRoot":"","sources":["../../src/file-manager/upload-batch.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,oBAAY,gBAAgB;IAC1B,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,SAAS,cAAc;CACxB;AAED,8EAA8E;AAC9E,oBAAY,uBAAuB;IACjC,0EAA0E;IAC1E,QAAQ,aAAa;IACrB,6DAA6D;IAC7D,QAAQ,aAAa;IACrB,4DAA4D;IAC5D,SAAS,cAAc;I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B,GAAG,IAAI,KACtC,OAKS,CAAC"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
//#region src/file-manager/upload-batch.ts
|
|
2
2
|
var e = /* @__PURE__ */ function(e) {
|
|
3
3
|
return e.Queued = "queued", e.Uploading = "uploading", e.Completed = "completed", e.Failed = "failed", e.Cancelled = "cancelled", e;
|
|
4
|
-
}({}), t =
|
|
4
|
+
}({}), t = /* @__PURE__ */ function(e) {
|
|
5
|
+
return e.Conflict = "conflict", e.TooLarge = "tooLarge", e.Forbidden = "forbidden", e.Unavailable = "unavailable", e.Network = "network", e.Unknown = "unknown", e;
|
|
6
|
+
}({}), n = /* @__PURE__ */ function(e) {
|
|
7
|
+
return e.Downloading = "downloading", e.Completed = "completed", e.Failed = "failed", e.Cancelled = "cancelled", e;
|
|
8
|
+
}({}), r = (e) => e?.files.some((e) => e.status === "downloading") ?? !1, i = (e) => e?.files.some((e) => e.status === "queued" || e.status === "uploading") ?? !1;
|
|
5
9
|
//#endregion
|
|
6
|
-
export { e as FileUploadStatus,
|
|
10
|
+
export { n as FileDownloadStatus, t as FileUploadFailureReason, e as FileUploadStatus, r as isDownloadInProgress, i as isUploadInProgress };
|
|
@@ -1,5 +1,45 @@
|
|
|
1
|
-
import { TransferQueueItem } from '@epam/ai-dial-ui-kit';
|
|
2
|
-
import { FileUploadEntry } from './upload-batch';
|
|
3
|
-
/** Maps upload entries onto the UI kit's `TransferQueue` rows. */
|
|
4
|
-
export declare const toUploadQueueItems: (files: FileUploadEntry[]) => TransferQueueItem[];
|
|
1
|
+
import { TransferQueueItem, TransferQueueLabels } from '@epam/ai-dial-ui-kit';
|
|
2
|
+
import { FileDownloadBatchState, FileUploadBatchState, FileUploadEntry, FileUploadFailureReason } from './upload-batch';
|
|
3
|
+
/** Maps upload entries onto the UI kit's `TransferQueue` rows; a failed row's `message` is the host text for its reason, when there is one. */
|
|
4
|
+
export declare const toUploadQueueItems: (files: FileUploadEntry[], failureMessages?: Partial<Record<FileUploadFailureReason, string>>) => TransferQueueItem[];
|
|
5
|
+
/** Kind of a transfer-queue row, carried as its id prefix so cancel routes to the right batch. */
|
|
6
|
+
export declare enum TransferQueueRowKind {
|
|
7
|
+
Upload = "upload",
|
|
8
|
+
Download = "download"
|
|
9
|
+
}
|
|
10
|
+
/** Builds the id of a transfer-queue row from its kind and its batch entry id. */
|
|
11
|
+
export declare const toTransferQueueRowId: (kind: TransferQueueRowKind, entryId: string) => string;
|
|
12
|
+
/** Splits a transfer-queue row id back into its kind and batch entry id; `undefined` for an id of neither kind. */
|
|
13
|
+
export declare const parseTransferQueueRowId: (rowId: string) => {
|
|
14
|
+
kind: TransferQueueRowKind;
|
|
15
|
+
entryId: string;
|
|
16
|
+
} | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Maps the upload and download batches onto one UI kit `TransferQueue`:
|
|
19
|
+
* upload rows first, then download rows, each id prefixed by its kind.
|
|
20
|
+
*/
|
|
21
|
+
export declare const toTransferQueueItems: (uploadBatch: FileUploadBatchState | null, downloadBatch: FileDownloadBatchState | null, failureMessages?: Partial<Record<FileUploadFailureReason, string>>) => TransferQueueItem[];
|
|
22
|
+
/** Row wording for a download row, as `DialFileManagerShellLabels.downloadQueueLabels` carries it. */
|
|
23
|
+
type DownloadRowLabels = Partial<Pick<TransferQueueLabels, 'cancelItemAriaLabel' | 'itemProgressAriaLabel' | 'queueProgressAriaLabel'>>;
|
|
24
|
+
/** Inputs of {@link buildTransferQueueLabels}. */
|
|
25
|
+
interface TransferQueueLabelSources {
|
|
26
|
+
/** The upload queue's labels, used for every upload row and as the base. */
|
|
27
|
+
uploadLabels?: Partial<TransferQueueLabels>;
|
|
28
|
+
/** Download-row wording; without it the queue keeps the upload labels. */
|
|
29
|
+
downloadLabels?: DownloadRowLabels;
|
|
30
|
+
/** Name of the aggregate bar while both kinds run. */
|
|
31
|
+
mixedProgressLabel?: string;
|
|
32
|
+
/** File names of the upload rows. */
|
|
33
|
+
uploadNames: ReadonlySet<string>;
|
|
34
|
+
/** File names of the download rows. */
|
|
35
|
+
downloadNames: ReadonlySet<string>;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* The queue's labels with each row's cancel and progress names worded for its
|
|
39
|
+
* own kind (uploading / downloading), since the kit labels a whole queue
|
|
40
|
+
* rather than a row. A name present in both kinds keeps the upload wording.
|
|
41
|
+
* The aggregate bar is named for downloads, uploads, or both.
|
|
42
|
+
*/
|
|
43
|
+
export declare const buildTransferQueueLabels: ({ uploadLabels, downloadLabels, mixedProgressLabel, uploadNames, downloadNames, }: TransferQueueLabelSources) => Partial<TransferQueueLabels> | undefined;
|
|
44
|
+
export {};
|
|
5
45
|
//# sourceMappingURL=upload-queue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upload-queue.d.ts","sourceRoot":"","sources":["../../src/file-manager/upload-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,
|
|
1
|
+
{"version":3,"file":"upload-queue.d.ts","sourceRoot":"","sources":["../../src/file-manager/upload-queue.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,mBAAmB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,KAAK,sBAAsB,EAG3B,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,uBAAuB,EAE7B,MAAM,gBAAgB,CAAC;AAexB,+IAA+I;AAC/I,eAAO,MAAM,kBAAkB,GAC7B,OAAO,eAAe,EAAE,EACxB,kBAAkB,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC,KACjE,iBAAiB,EAWf,CAAC;AAYN,kGAAkG;AAClG,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,kFAAkF;AAClF,eAAO,MAAM,oBAAoB,GAC/B,MAAM,oBAAoB,EAC1B,SAAS,MAAM,KACd,MAA8B,CAAC;AAElC,mHAAmH;AACnH,eAAO,MAAM,uBAAuB,GAClC,OAAO,MAAM,KACZ;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,SAUpD,CAAC;AAgBF;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,aAAa,oBAAoB,GAAG,IAAI,EACxC,eAAe,sBAAsB,GAAG,IAAI,EAC5C,kBAAkB,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,MAAM,CAAC,CAAC,KACjE,iBAAiB,EAUnB,CAAC;AAEF,sGAAsG;AACtG,KAAK,iBAAiB,GAAG,OAAO,CAC9B,IAAI,CACF,mBAAmB,EACnB,qBAAqB,GAAG,uBAAuB,GAAG,wBAAwB,CAC3E,CACF,CAAC;AAEF,kDAAkD;AAClD,UAAU,yBAAyB;IACjC,4EAA4E;IAC5E,YAAY,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC5C,0EAA0E;IAC1E,cAAc,CAAC,EAAE,iBAAiB,CAAC;IACnC,sDAAsD;IACtD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,qCAAqC;IACrC,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACjC,uCAAuC;IACvC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACpC;AAED;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GAAI,mFAMtC,yBAAyB,KAAG,OAAO,CAAC,mBAAmB,CAAC,GAAG,SAoC7D,CAAC"}
|
|
@@ -1,17 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TransferQueueItemStatus as
|
|
1
|
+
import { FileDownloadStatus as e, FileUploadStatus as t } from "./upload-batch.js";
|
|
2
|
+
import { TransferQueueItemStatus as n } from "@epam/ai-dial-ui-kit";
|
|
3
3
|
//#region src/file-manager/upload-queue.ts
|
|
4
|
-
var
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
10
|
-
},
|
|
4
|
+
var r = {
|
|
5
|
+
[t.Queued]: n.InProgress,
|
|
6
|
+
[t.Uploading]: n.InProgress,
|
|
7
|
+
[t.Completed]: n.Success,
|
|
8
|
+
[t.Failed]: n.Failed,
|
|
9
|
+
[t.Cancelled]: n.Canceled
|
|
10
|
+
}, i = (e, n) => e.map((e) => ({
|
|
11
11
|
id: e.id,
|
|
12
12
|
name: e.name,
|
|
13
|
-
status:
|
|
14
|
-
percent: e.percent
|
|
15
|
-
|
|
13
|
+
status: r[e.status],
|
|
14
|
+
percent: e.percent,
|
|
15
|
+
message: e.status === t.Failed && e.failureReason != null ? n?.[e.failureReason] : void 0
|
|
16
|
+
})), a = {
|
|
17
|
+
[e.Downloading]: n.InProgress,
|
|
18
|
+
[e.Completed]: n.Success,
|
|
19
|
+
[e.Failed]: n.Failed,
|
|
20
|
+
[e.Cancelled]: n.Canceled
|
|
21
|
+
}, o = /* @__PURE__ */ function(e) {
|
|
22
|
+
return e.Upload = "upload", e.Download = "download", e;
|
|
23
|
+
}({}), s = (e, t) => `${e}:${t}`, c = (e) => {
|
|
24
|
+
let t = e.indexOf(":"), n = e.slice(0, t);
|
|
25
|
+
if (!(n !== "upload" && n !== "download")) return {
|
|
26
|
+
kind: n,
|
|
27
|
+
entryId: e.slice(t + 1)
|
|
28
|
+
};
|
|
29
|
+
}, l = (t, n) => ({
|
|
30
|
+
id: s("download", t.id),
|
|
31
|
+
name: t.name,
|
|
32
|
+
status: a[t.status],
|
|
33
|
+
percent: t.percent,
|
|
34
|
+
message: t.status === e.Failed && t.failureReason != null ? n?.[t.failureReason] : void 0
|
|
35
|
+
}), u = (e, t, n) => [...i(e?.files ?? [], n).map((e) => ({
|
|
36
|
+
...e,
|
|
37
|
+
id: s("upload", e.id)
|
|
38
|
+
})), ...(t?.files ?? []).map((e) => l(e, n))], d = ({ uploadLabels: e, downloadLabels: t, mixedProgressLabel: n, uploadNames: r, downloadNames: i }) => {
|
|
39
|
+
if (!t || i.size === 0) return e;
|
|
40
|
+
let a = (e) => i.has(e) && !r.has(e), o = (e, t) => e && t ? (n) => a(n) ? t(n) : e(n) : e ?? t, s = r.size === 0 ? t.queueProgressAriaLabel ?? e?.queueProgressAriaLabel : n ?? e?.queueProgressAriaLabel, c = o(e?.cancelItemAriaLabel, t.cancelItemAriaLabel), l = o(e?.itemProgressAriaLabel, t.itemProgressAriaLabel);
|
|
41
|
+
return {
|
|
42
|
+
...e,
|
|
43
|
+
...c ? { cancelItemAriaLabel: c } : {},
|
|
44
|
+
...l ? { itemProgressAriaLabel: l } : {},
|
|
45
|
+
...s ? { queueProgressAriaLabel: s } : {}
|
|
46
|
+
};
|
|
47
|
+
};
|
|
16
48
|
//#endregion
|
|
17
|
-
export {
|
|
49
|
+
export { o as TransferQueueRowKind, d as buildTransferQueueLabels, c as parseTransferQueueRowId, u as toTransferQueueItems, s as toTransferQueueRowId, i as toUploadQueueItems };
|
package/file-manager.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DialFileManagerShell as
|
|
3
|
-
import { FileManagerAttachModal as
|
|
4
|
-
export {
|
|
1
|
+
import { TransferQueueRowKind as e, buildTransferQueueLabels as t, parseTransferQueueRowId as n, toTransferQueueItems as r, toTransferQueueRowId as i, toUploadQueueItems as a } from "./file-manager/upload-queue.js";
|
|
2
|
+
import { DialFileManagerShell as o } from "./file-manager/DialFileManagerShell/DialFileManagerShell.js";
|
|
3
|
+
import { FileManagerAttachModal as s } from "./file-manager/FileManagerAttachModal/FileManagerAttachModal.js";
|
|
4
|
+
export { o as DialFileManagerShell, s as FileManagerAttachModal, e as TransferQueueRowKind, t as buildTransferQueueLabels, n as parseTransferQueueRowId, r as toTransferQueueItems, i as toTransferQueueRowId, a as toUploadQueueItems };
|
package/index.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
._message_1iqfi_1{color:var(--cfm-message-text,var(--text-primary,#161b2d))}._consequences_1iqfi_5{color:var(--cfm-consequence-text,var(--text-secondary,#57647a))}._footer_1iqfi_9{border-block-start:1px solid var(--cfm-footer-border,var(--stroke-tertiary,#e0e6f0))}._info_pkxew_1{--rs-bg:var(--bg-info,#e1eaf9)}._danger_pkxew_5{--rs-bg:var(--bg-control-error-alpha-active,#f7646433);--rs-border:var(--stroke-error-alpha,#ae2f2f73)}._agentIconBadge_1ger8_1{background:var(--di-icon-bg,var(--bg-layer-sunken,#eef1f7))}._title_11w3i_1{color:var(--ih-title-color,var(--text-primary,#161b2d))}._count_11w3i_5{color:var(--ih-count-color,var(--text-secondary,#57647a))}._row_1csuq_1{border-color:var(--rs-border,var(--stroke-tertiary,#e0e6f0));background:var(--rs-bg,var(--bg-layer-sunken,#eef1f7))}._versionTag_1csuq_7{border-color:var(--rs-version-tag-border,var(--stroke-tertiary,#e0e6f0))!important;background:var(--rs-version-tag-bg,var(--bg-control-accent-alpha,#2764d90f))!important;color:var(--rs-version-tag-text,var(--text-accent,#1d4ed8))!important}._typeLabel_17nhs_1{color:var(--cir-type-label-text,var(--text-secondary,#57647a))}._names_g31v4_1{color:var(--cfm-message-text,var(--text-primary,#161b2d))}._more_g31v4_5{color:var(--cfm-consequence-text,var(--text-secondary,#57647a))}._container_sqe5k_1{background:var(--cm-code-block-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-code-block-border,var(--stroke-secondary,#d1dbea))}._containerLight_sqe5k_6{background:var(--cm-code-block-bg,var(--bg-layer-raised,#fcfcfc))}._header_sqe5k_10{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-code-block-border,var(--stroke-secondary,#d1dbea))}._languageLabel_sqe5k_15{color:var(--cm-code-block-language,var(--text-secondary,#57647a))}._copiedIcon_sqe5k_19{color:var(--cm-code-block-copied,var(--text-success,#007274))}._scrollContainer_sqe5k_23 .token.table,._scrollContainer_sqe5k_23 .token.table-header-row,._scrollContainer_sqe5k_23 .token.table-line,._scrollContainer_sqe5k_23 .token.table-data-rows{display:inline}._scrollContainer_sqe5k_23{scrollbar-width:thin;scrollbar-color:var(--cm-code-block-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_sqe5k_23::-webkit-scrollbar{width:4px;height:4px}._scrollContainer_sqe5k_23::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_sqe5k_23::-webkit-scrollbar-thumb{background-color:var(--cm-code-block-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}@keyframes _cm-shimmer_1ql91_1{0%{background-position:200%}to{background-position:-200%}}._thinking_1ql91_9{background:linear-gradient(270deg, var(--cm-thinking-inverted,var(--text-primary,#161b2d)) 0%, var(--cm-thinking-secondary,var(--text-secondary,#57647a)) 40%, var(--cm-thinking-inverted,var(--text-primary,#161b2d)) 80%);color:#0000;background-size:200%;-webkit-background-clip:text;background-clip:text;animation:2s linear infinite _cm-shimmer_1ql91_1}._h6_1ql91_18{color:var(--cm-h6-text,var(--text-secondary,#57647a))}._codeInline_1ql91_22{background:var(--cm-code-inline-bg,var(--bg-layer-raised,#fcfcfc));color:var(--cm-code-inline-text,var(--text-primary,#161b2d))}._secondaryBorder_1ql91_27{border-color:var(--cm-markdown-border,var(--stroke-secondary,#d1dbea))}._blockquote_1ql91_31{border-color:var(--cm-blockquote-border,var(--stroke-primary,#57647a));color:var(--cm-blockquote-text,var(--text-secondary,#57647a))}._link_1ql91_36{color:var(--cm-link-text,var(--text-accent,#1d4ed8))}._link_1ql91_36:focus-visible{outline-color:var(--cm-link-focus,var(--stroke-focus,#161b2d))}._scrollContainer_n2oom_1{scrollbar-width:thin;scrollbar-color:var(--cm-math-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_n2oom_1::-webkit-scrollbar{height:4px}._scrollContainer_n2oom_1::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_n2oom_1::-webkit-scrollbar-thumb{background-color:var(--cm-math-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}._scrollContainer_n2oom_1:focus-visible{outline:1px solid var(--cm-math-focus,var(--stroke-focus,#161b2d));outline-offset:2px}._mathContent_n2oom_24{width:max-content;min-width:100%;display:block}._tableContainer_1qw2e_1{background:var(--cm-code-block-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-markdown-border,var(--cm-code-block-border,var(--stroke-secondary,#d1dbea)))}._tableContainerLight_1qw2e_6{background:var(--cm-code-block-bg,var(--bg-layer-base,#f5f7fa))}._copiedIcon_1qw2e_10{color:var(--cm-code-block-copied,var(--text-success,#007274))}._scrollContainer_1qw2e_14{scrollbar-width:thin;scrollbar-color:var(--cm-table-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_1qw2e_14::-webkit-scrollbar{width:4px;height:4px}._scrollContainer_1qw2e_14::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_1qw2e_14::-webkit-scrollbar-thumb{background-color:var(--cm-table-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}._tableHeaderCell_1qw2e_30{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc));height:3rem;color:var(--cm-table-header-text,var(--text-secondary,#57647a))}._sectionRow_1qw2e_37 td{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc))}._rowDivider_1qw2e_41{border-block-end:.5px solid var(--cm-table-row-divider,var(--stroke-tertiary,#e0e6f0))}tbody ._row_1qw2e_41:hover td{background:var(--cm-table-row-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924))}._tableScrollFadeEnd_1qw2e_51{-webkit-mask-image:linear-gradient(to right, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);mask-image:linear-gradient(to right, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%)}[dir=rtl] ._tableScrollFadeEnd_1qw2e_51{-webkit-mask-image:linear-gradient(to left, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);mask-image:linear-gradient(to left, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%)}._tableScrollFadeStart_1qw2e_59{-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%)}[dir=rtl] ._tableScrollFadeStart_1qw2e_59{-webkit-mask-image:linear-gradient(to left, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);mask-image:linear-gradient(to left, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%)}._tableScrollFadeBoth_1qw2e_67{-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) calc(100% - 1rem), transparent 100%);mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) calc(100% - 1rem), transparent 100%)}._tableHeader_1qvg8_1{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-markdown-border,var(--cm-code-block-border,var(--stroke-secondary,#d1dbea)))}._label_12p89_1{color:var(--pes-label-color,var(--text-primary,#161b2d))}
|
|
2
2
|
/*$vite$:1*//*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
|
|
3
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-e-0{inset-inline-end:0}.inset-e-2{inset-inline-end:.5rem}.inset-e-4{inset-inline-end:1rem}.top-0{top:0}.top-2{top:.5rem}.top-\[-6px\]{top:-6px}.bottom-4{bottom:1rem}.z-10{z-index:10}.z-52{z-index:52}.z-70{z-index:70}.z-\[2\]{z-index:2}.mx-0\.5{margin-inline:.125rem}.my-4{margin-block:1rem}.my-5{margin-block:1.25rem}.ms-auto{margin-inline-start:auto}.me-1\.5{margin-inline-end:.375rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.size-full{width:100%;height:100%}.h-0{height:0}.h-\[24px\]{height:24px}.h-\[min\(900px\,100dvh\)\]\!{height:min(900px,100dvh)!important}.h-fit\!{height:fit-content!important}.h-full{height:100%}.max-h-\[50vh\]{max-height:50vh}.max-h-\[60vh\]{max-height:60vh}.max-h-\[344px\]{max-height:344px}.max-h-full\!{max-height:100%!important}.min-h-0{min-height:0}.min-h-10{min-height:2.5rem}.w-\[360px\]{width:360px}.w-\[400px\]\!{width:400px!important}.w-full{width:100%}.w-max{width:max-content}.max-w-96{max-width:24rem}.max-w-\[30\%\]{max-width:30%}.max-w-\[45\%\]{max-width:45%}.max-w-\[1600px\]\!{max-width:1600px!important}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-full{min-width:100%}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(.25rem * var(--tw-space-y-reverse));margin-block-end:calc(.25rem * calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:.75rem}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[overflow\:clip\]{overflow:clip}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-hidden{overflow-y:hidden}.rounded{border-radius:4px}.rounded-\[14px\]{border-radius:14px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-s-2{border-inline-start-style:var(--tw-border-style);border-inline-start-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-tertiary{border-color:var(--stroke-tertiary,#e0e6f0)}.bg-backdrop{background-color:var(--bg-backdrop,#161b2d4d)}.bg-layer-base{background-color:var(--bg-layer-base,#f5f7fa)}.bg-layer-base\!{background-color:var(--bg-layer-base,#f5f7fa)!important}.bg-layer-raised{background-color:var(--bg-layer-raised,#fcfcfc)}.bg-layer-sunken{background-color:var(--bg-layer-sunken,#eef1f7)}.object-contain{object-fit:contain}.p-0{padding:0}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-inline:0}.px-1{padding-inline:.25rem}.px-1\.5{padding-inline:.375rem}.px-2{padding-inline:.5rem}.px-3{padding-inline:.75rem}.px-4{padding-inline:1rem}.px-6{padding-inline:1.5rem}.py-0{padding-block:0}.py-0\.5{padding-block:.125rem}.py-1{padding-block:.25rem}.py-2{padding-block:.5rem}.py-2\.5{padding-block:.625rem}.py-4{padding-block:1rem}.py-\[7px\]{padding-block:7px}.ps-4{padding-inline-start:1rem}.ps-5{padding-inline-start:1.25rem}.ps-\[2em\]{padding-inline-start:2em}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pb-0{padding-bottom:0}.pb-4{padding-bottom:1rem}.text-center{text-align:center}.text-end{text-align:end}.text-start{text-align:start}.align-middle{vertical-align:middle}.align-top{vertical-align:top}.\[text-wrap\:balance\]{text-wrap:balance}.\[text-wrap\:pretty\]{text-wrap:pretty}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.break-words{overflow-wrap:break-word}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-primary{color:var(--text-primary,#161b2d)}.text-secondary{color:var(--text-secondary,#57647a)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.decoration-current\/60{text-decoration-color:currentColor}@supports (color:color-mix(in lab, red, red)){.decoration-current\/60{-webkit-text-decoration-color:color-mix(in oklab, currentcolor 60%, transparent);-webkit-text-decoration-color:color-mix(in oklab, currentcolor 60%, transparent);text-decoration-color:color-mix(in oklab, currentcolor 60%, transparent)}}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-chat-button{--tw-shadow:0 2px 12px 0 var(--tw-shadow-color,var(--shadow-xs-1,#2764d933)), 0 2px 6px 0 var(--tw-shadow-color,var(--shadow-xs-2,#161b2d08));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:0 8px 10px 0 var(--tw-shadow-color,var(--shadow-sm,#2764d914));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 4px 0 var(--tw-shadow-color,var(--shadow-xs-1,#2764d933)), 0 1px 2px 0 var(--tw-shadow-color,var(--shadow-xs-2,#161b2d08));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}@media (hover:hover){.group-hover\/table\:opacity-100:is(:where(.group\/table):hover *){opacity:1}}.first\:mt-0:first-child{margin-top:0}.last\:mb-0:last-child{margin-bottom:0}.focus-within\:opacity-100:focus-within{opacity:1}@media (hover:hover){.hover\:decoration-current:hover{text-decoration-color:currentColor}}.focus-visible\:outline:focus-visible,.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.rtl\:flex-row-reverse:where(:dir(rtl),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.rtl\:justify-start:where(:dir(rtl),[dir=rtl],[dir=rtl] *){justify-content:flex-start}@media (max-width:1279px){.mobile\:h-full\!{height:100%!important}.mobile\:max-w-full\!{max-width:100%!important}.mobile\:flex-1{flex:1}.mobile\:rounded-none{border-radius:0}.mobile\:p-0{padding:0}}@media (min-width:1280px){.desktop\:p-4{padding:1rem}.desktop\:px-6{padding-inline:1.5rem}}.\[\&_\.w-md-editor\:not\(\.w-md-editor-fullscreen\)\]\:\!h-\[var\(--resizable-field-max-height\,70vh\)\] .w-md-editor:not(.w-md-editor-fullscreen){height:var(--resizable-field-max-height,70vh)!important}.\[\&_\.w-md-editor\:not\(\.w-md-editor-fullscreen\)\]\:max-h-\[var\(--resizable-field-max-height\,70vh\)\] .w-md-editor:not(.w-md-editor-fullscreen){max-height:var(--resizable-field-max-height,70vh)}.\[\&_\.wmde-markdown_ul\]\:list-disc .wmde-markdown ul{list-style-type:disc}.\[\&_\.wmde-markdown_ul_ul\]\:list-\[circle\] .wmde-markdown ul ul{list-style-type:circle}.\[\&_\.wmde-markdown_ul_ul_ul\]\:list-\[square\] .wmde-markdown ul ul ul{list-style-type:square}.\[\&_\.wmde-markdown\>ol\]\:list-decimal .wmde-markdown>ol{list-style-type:decimal}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
|
|
3
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid}}}.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-e-0{inset-inline-end:0}.inset-e-2{inset-inline-end:.5rem}.inset-e-4{inset-inline-end:1rem}.top-0{top:0}.top-2{top:.5rem}.top-\[-6px\]{top:-6px}.bottom-4{bottom:1rem}.z-10{z-index:10}.z-51{z-index:51}.z-52{z-index:52}.z-\[2\]{z-index:2}.mx-0\.5{margin-inline:.125rem}.my-4{margin-block:1rem}.my-5{margin-block:1.25rem}.ms-auto{margin-inline-start:auto}.me-1\.5{margin-inline-end:.375rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.table{display:table}.size-full{width:100%;height:100%}.h-0{height:0}.h-\[24px\]{height:24px}.h-\[min\(900px\,100dvh\)\]\!{height:min(900px,100dvh)!important}.h-fit\!{height:fit-content!important}.h-full{height:100%}.max-h-\[50vh\]{max-height:50vh}.max-h-\[60vh\]{max-height:60vh}.max-h-\[344px\]{max-height:344px}.max-h-full\!{max-height:100%!important}.min-h-0{min-height:0}.min-h-10{min-height:2.5rem}.w-\[360px\]{width:360px}.w-\[400px\]\!{width:400px!important}.w-full{width:100%}.w-max{width:max-content}.max-w-96{max-width:24rem}.max-w-\[30\%\]{max-width:30%}.max-w-\[45\%\]{max-width:45%}.max-w-\[1600px\]\!{max-width:1600px!important}.max-w-full{max-width:100%}.min-w-0{min-width:0}.min-w-full{min-width:100%}.flex-1{flex:1}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.resize{resize:both}.list-decimal{list-style-type:decimal}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(.25rem * var(--tw-space-y-reverse));margin-block-end:calc(.25rem * calc(1 - var(--tw-space-y-reverse)))}.gap-x-3{column-gap:.75rem}.self-stretch{align-self:stretch}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.\[overflow\:clip\]{overflow:clip}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-hidden{overflow-y:hidden}.rounded{border-radius:4px}.rounded-\[14px\]{border-radius:14px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-style:var(--tw-border-style);border-width:1px}.border-s-2{border-inline-start-style:var(--tw-border-style);border-inline-start-width:2px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-tertiary{border-color:var(--stroke-tertiary,#e0e6f0)}.bg-backdrop{background-color:var(--bg-backdrop,#161b2d4d)}.bg-layer-base{background-color:var(--bg-layer-base,#f5f7fa)}.bg-layer-base\!{background-color:var(--bg-layer-base,#f5f7fa)!important}.bg-layer-raised{background-color:var(--bg-layer-raised,#fcfcfc)}.bg-layer-sunken{background-color:var(--bg-layer-sunken,#eef1f7)}.object-contain{object-fit:contain}.p-0{padding:0}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-inline:0}.px-1{padding-inline:.25rem}.px-1\.5{padding-inline:.375rem}.px-2{padding-inline:.5rem}.px-3{padding-inline:.75rem}.px-4{padding-inline:1rem}.px-6{padding-inline:1.5rem}.py-0{padding-block:0}.py-0\.5{padding-block:.125rem}.py-1{padding-block:.25rem}.py-2{padding-block:.5rem}.py-2\.5{padding-block:.625rem}.py-4{padding-block:1rem}.py-\[7px\]{padding-block:7px}.ps-4{padding-inline-start:1rem}.ps-5{padding-inline-start:1.25rem}.ps-\[2em\]{padding-inline-start:2em}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pb-0{padding-bottom:0}.pb-4{padding-bottom:1rem}.text-center{text-align:center}.text-end{text-align:end}.text-start{text-align:start}.align-middle{vertical-align:middle}.align-top{vertical-align:top}.\[text-wrap\:balance\]{text-wrap:balance}.\[text-wrap\:pretty\]{text-wrap:pretty}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.break-words{overflow-wrap:break-word}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.text-primary{color:var(--text-primary,#161b2d)}.text-secondary{color:var(--text-secondary,#57647a)}.uppercase{text-transform:uppercase}.italic{font-style:italic}.underline{text-decoration-line:underline}.decoration-current\/60{text-decoration-color:currentColor}@supports (color:color-mix(in lab, red, red)){.decoration-current\/60{-webkit-text-decoration-color:color-mix(in oklab, currentcolor 60%, transparent);-webkit-text-decoration-color:color-mix(in oklab, currentcolor 60%, transparent);text-decoration-color:color-mix(in oklab, currentcolor 60%, transparent)}}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a), 0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-chat-button{--tw-shadow:0 2px 12px 0 var(--tw-shadow-color,var(--shadow-xs-1,#2764d933)), 0 2px 6px 0 var(--tw-shadow-color,var(--shadow-xs-2,#161b2d08));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-sm{--tw-shadow:4px 9px 16px 1px var(--tw-shadow-color,var(--shadow-sm-2,var(--shadow-sm,#2764d90f))), 0 -2px 4px 2px var(--tw-shadow-color,var(--shadow-sm-1,#2764d90a));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 4px 0 var(--tw-shadow-color,var(--shadow-xs-1,#2764d933)), 0 1px 2px 0 var(--tw-shadow-color,var(--shadow-xs-2,#161b2d08));box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)}.outline{outline-style:var(--tw-outline-style);outline-width:1px}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}@media (hover:hover){.group-hover\/table\:opacity-100:is(:where(.group\/table):hover *){opacity:1}}.first\:mt-0:first-child{margin-top:0}.last\:mb-0:last-child{margin-bottom:0}.focus-within\:opacity-100:focus-within{opacity:1}@media (hover:hover){.hover\:decoration-current:hover{text-decoration-color:currentColor}}.focus-visible\:outline:focus-visible,.focus-visible\:outline-1:focus-visible{outline-style:var(--tw-outline-style);outline-width:1px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.rtl\:flex-row-reverse:where(:dir(rtl),[dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.rtl\:justify-start:where(:dir(rtl),[dir=rtl],[dir=rtl] *){justify-content:flex-start}@media (max-width:1279px){.mobile\:h-full\!{height:100%!important}.mobile\:max-w-full\!{max-width:100%!important}.mobile\:flex-1{flex:1}.mobile\:rounded-none{border-radius:0}.mobile\:p-0{padding:0}}@media (min-width:1280px){.desktop\:p-4{padding:1rem}.desktop\:px-6{padding-inline:1.5rem}}.\[\&_\.w-md-editor\:not\(\.w-md-editor-fullscreen\)\]\:\!h-\[var\(--resizable-field-max-height\,70vh\)\] .w-md-editor:not(.w-md-editor-fullscreen){height:var(--resizable-field-max-height,70vh)!important}.\[\&_\.w-md-editor\:not\(\.w-md-editor-fullscreen\)\]\:max-h-\[var\(--resizable-field-max-height\,70vh\)\] .w-md-editor:not(.w-md-editor-fullscreen){max-height:var(--resizable-field-max-height,70vh)}.\[\&_\.wmde-markdown_ul\]\:list-disc .wmde-markdown ul{list-style-type:disc}.\[\&_\.wmde-markdown_ul_ul\]\:list-\[circle\] .wmde-markdown ul ul{list-style-type:circle}.\[\&_\.wmde-markdown_ul_ul_ul\]\:list-\[square\] .wmde-markdown ul ul ul{list-style-type:square}.\[\&_\.wmde-markdown\>ol\]\:list-decimal .wmde-markdown>ol{list-style-type:decimal}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}
|
package/index.js
CHANGED
|
@@ -72,8 +72,8 @@ import { useIsMobile as Ot } from "./hooks/useIsMobile.js";
|
|
|
72
72
|
import { useUnsavedChangesGuard as kt } from "./hooks/useUnsavedChangesGuard.js";
|
|
73
73
|
import { DialFileManagerActionProfile as At, DialFileManagerVariant as jt } from "./file-manager/file-manager-variant.js";
|
|
74
74
|
import { getParentFolderPath as Mt, isHiddenPath as Nt } from "./file-manager/path.js";
|
|
75
|
-
import {
|
|
76
|
-
import { useGridEditingScroll as
|
|
77
|
-
import { OperationLoaderModal as
|
|
78
|
-
import { isSkillSelectionUnsupported as
|
|
79
|
-
export { p as AttachmentErrorReason, m as AttachmentType, xe as BASE_LG_ICON_PROPS, Se as BASE_MD_ICON_PROPS, o as BackgroundGenerationStatus, st as CHAT_SHARED_CLASS, vt as COMPACT_MARKDOWN_CLASS_NAMES, h as CatalogEntityType, v as CodeBlockTheme, $e as ConfirmationDialog, Qe as ConfirmationFooter, Ye as ConfirmationIdentityCard, Xe as ConfirmationIdentityRow, Ze as ConfirmationView, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, ze as CopyButton, Be as CopyIconButton, yt as DEFAULT_MARKDOWN_CLASS_NAMES, dt as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, et as DELETE_CONFIRMATION_MAX_LISTED_NAMES, Ne as DESKTOP_BREAKPOINT_PX, Pe as DESKTOP_MEDIA_QUERY, nt as DeleteConfirmationDialog, tt as DeleteConfirmationView, Re as DeploymentIcon, At as DialFileManagerActionProfile, jt as DialFileManagerVariant, R as ENTITY_DESCRIPTION_MAX_LENGTH, z as ENTITY_INSTRUCTIONS_MAX_LENGTH, B as ENTITY_NAME_MAX_LENGTH, de as ENTITY_TYPE_BG_COLOR, fe as ENTITY_TYPE_COLOR, qe as EntityHeader, Ge as EntityTypeLabel, Ke as FeaturedChip, g as FileExtension,
|
|
75
|
+
import { FileDownloadStatus as Pt, FileUploadFailureReason as Ft, FileUploadStatus as It, isDownloadInProgress as Lt, isUploadInProgress as Rt } from "./file-manager/upload-batch.js";
|
|
76
|
+
import { useGridEditingScroll as zt } from "./file-manager/useGridEditingScroll/useGridEditingScroll.js";
|
|
77
|
+
import { OperationLoaderModal as Bt } from "./file-manager/OperationLoaderModal/OperationLoaderModal.js";
|
|
78
|
+
import { isSkillSelectionUnsupported as Vt } from "./utils/is-skill-selection-unsupported.js";
|
|
79
|
+
export { p as AttachmentErrorReason, m as AttachmentType, xe as BASE_LG_ICON_PROPS, Se as BASE_MD_ICON_PROPS, o as BackgroundGenerationStatus, st as CHAT_SHARED_CLASS, vt as COMPACT_MARKDOWN_CLASS_NAMES, h as CatalogEntityType, v as CodeBlockTheme, $e as ConfirmationDialog, Qe as ConfirmationFooter, Ye as ConfirmationIdentityCard, Xe as ConfirmationIdentityRow, Ze as ConfirmationView, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, ze as CopyButton, Be as CopyIconButton, yt as DEFAULT_MARKDOWN_CLASS_NAMES, dt as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, et as DELETE_CONFIRMATION_MAX_LISTED_NAMES, Ne as DESKTOP_BREAKPOINT_PX, Pe as DESKTOP_MEDIA_QUERY, nt as DeleteConfirmationDialog, tt as DeleteConfirmationView, Re as DeploymentIcon, At as DialFileManagerActionProfile, jt as DialFileManagerVariant, R as ENTITY_DESCRIPTION_MAX_LENGTH, z as ENTITY_INSTRUCTIONS_MAX_LENGTH, B as ENTITY_NAME_MAX_LENGTH, de as ENTITY_TYPE_BG_COLOR, fe as ENTITY_TYPE_COLOR, qe as EntityHeader, Ge as EntityTypeLabel, Ke as FeaturedChip, Pt as FileDownloadStatus, g as FileExtension, Ft as FileUploadFailureReason, It as FileUploadStatus, a as FilterTab, Ce as HIDDEN_FILE, Le as InitialsAvatar, We as ItemHeader, Ee as MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME, De as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, Ae as MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME, ft as MARKDOWN_TABLE_CSV_MIME_TYPE, xt as MDMessageViewer, _ as MIMEType, y as MIME_TYPE_ALIASES, b as MIME_TYPE_AUDIO_PREFIX, x as MIME_TYPE_EXT_MAP, S as MIME_TYPE_WILDCARD, Fe as MOBILE_MAX_WIDTH_PX, Ie as MOBILE_MEDIA_QUERY, ut as MarkdownCodeBlock, gt as MarkdownRenderer, ht as MarkdownTable, pt as MarkdownTableCopyFormat, St as MarkdownWithPlaceholders, s as MessageRating, c as MessageRole, Bt as OperationLoaderModal, N as PROHIBITED_CONVERSATION_NAME_CHARS_RE, pe as PROMPT_PARAM_DEFAULT_SEPARATOR, me as PROMPT_PARAM_PATTERN, he as PROMPT_VARIABLE_CLASS_NAME, we as PUBLIC_BUCKET, Ue as PanelEmptyState, bt as PlainTextRenderer, Oe as RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE, ke as RESIZABLE_TEXTAREA_CLASS_NAME, l as RequestStatus, Je as ResourceSummary, f as ResponseFormat, je as SELECT_LIST_MAX_HEIGHT_CLASS_NAME, Me as SELECT_LIST_MAX_HEIGHT_PX, u as StageStatus, d as StatusEvent, Te as TAG_INPUT_TAG_CLASS_NAME, rt as TableHeader, ot as TextRefinementField, it as TextRefinementState, re as base64ToBlob, W as buildCssVars, Ct as buildInlineSegmentSource, ge as buildPromptParamDefaults, Y as copyMarkdownAsRichText, X as copyToClipboard, wt as createInlineSegmentComponents, Tt as createRehypeInlineSegments, j as decodeJsonFromBase64, _t as defaultMarkdownComponents, ie as downloadTextFile, M as encodeJsonToBase64, ae as ensureDownloadFilename, V as exceedsMaxLength, Ve as extractInitials, _e as extractPromptParams, ee as formatCost, $ as formatFileSize, Q as formatLastUsed, te as formatPrice, ne as formatUnitPrice, be as generateUUID, C as getAttachmentTypeFromMime, w as getBaseMimeType, oe as getFileExtensionForLanguage, Mt as getParentFolderPath, P as getUtf8ByteLength, H as hasControlCharacters, T as inferMimeTypeFromPath, O as isAnnotationSelector, J as isAudioTranscriptionSupported, Lt as isDownloadInProgress, Nt as isHiddenPath, Vt as isSkillSelectionUnsupported, G as isStatusMessage, ue as isSyntaxHighlightingAllowed, Rt as isUploadInProgress, Z as markdownToRichTextHtml, U as mergeClasses, K as messageAttachmentToDisplayAttachment, q as messageAttachmentsToDisplayAttachments, E as normalizeMimeType, k as normalizePersistedHtmlTagAttachmentType, A as normalizeRawAnnotations, He as pickAvatarColor, ve as rehypePromptVariables, ye as resolvePromptParams, lt as restrainedSyntaxTheme, F as sanitizeConversationName, mt as serializeMarkdownTableRows, I as stripTrailingDots, D as stripUrlQueryAndFragment, se as triggerAnchorDownload, ce as triggerBlobDownload, L as truncateToUtf8Bytes, le as tryBase64ToBytes, Dt as useAvailableHeightCap, ct as useCodeCopy, Et as useCollapsedText, zt as useGridEditingScroll, Ot as useIsMobile, at as useTextRefinement, kt as useUnsavedChangesGuard };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-chat-shared",
|
|
3
3
|
"description": "Shared domain models, utilities, and UI components for AI DIAL Chat libraries",
|
|
4
|
-
"version": "1.3.0-dev.
|
|
4
|
+
"version": "1.3.0-dev.108",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^19.2.8",
|
|
35
|
-
"@epam/ai-dial-ui-kit": "^0.16.0-dev.
|
|
36
|
-
"@epam/ai-dial-react-file-manager": "^0.4.0-dev.
|
|
35
|
+
"@epam/ai-dial-ui-kit": "^0.16.0-dev.20",
|
|
36
|
+
"@epam/ai-dial-react-file-manager": "^0.4.0-dev.11",
|
|
37
37
|
"ag-grid-community": "^35.3.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|