@epam/ai-dial-chat-shared 1.4.0-dev.151 → 1.4.0-dev.159
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 +207 -212
- package/file-manager/FileManagerDestinationPanel/FileManagerDestinationPanel.d.ts +26 -0
- package/file-manager/FileManagerDestinationPanel/FileManagerDestinationPanel.d.ts.map +1 -0
- package/file-manager/FileManagerDestinationPanel/FileManagerDestinationPanel.js +141 -0
- package/file-manager/destination-folders.d.ts +19 -0
- package/file-manager/destination-folders.d.ts.map +1 -0
- package/file-manager/destination-folders.js +27 -0
- package/file-manager/file-manager-controller.d.ts +2 -2
- package/file-manager/file-manager-controller.d.ts.map +1 -1
- package/file-manager/labels.d.ts +68 -14
- package/file-manager/labels.d.ts.map +1 -1
- package/index.css +1 -1
- 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,
|
|
1
|
+
{"version":3,"file":"DialFileManagerShell.d.ts","sourceRoot":"","sources":["../../../src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,mBAAmB,EAEnB,KAAK,kBAAkB,EAEvB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACrB,MAAM,kCAAkC,CAAC;AAa1C,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,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C;IACpC;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,0EAA0E;IAC1E,SAAS,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,mFAAmF;IACnF,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,CAqnB9D,CAAC;;AAEF,wBAA0C"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { mergeClasses as e } from "../../utils/merge-class.js";
|
|
2
2
|
import { buildCssVars as t } from "../../utils/build-css-vars.js";
|
|
3
|
-
import { DialFileManagerActionProfile as
|
|
4
|
-
import { getParentFolderPath as ee } from "../path.js";
|
|
3
|
+
import { DialFileManagerActionProfile as ee, DialFileManagerVariant as n } from "../file-manager-variant.js";
|
|
5
4
|
import { useGridEditingScroll as te } from "../useGridEditingScroll/useGridEditingScroll.js";
|
|
6
5
|
import { OperationLoaderModal as ne } from "../OperationLoaderModal/OperationLoaderModal.js";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
6
|
+
import { FileManagerDestinationPanel as re } from "../FileManagerDestinationPanel/FileManagerDestinationPanel.js";
|
|
7
|
+
import { TransferQueueRowKind as ie, buildTransferQueueLabels as ae, parseTransferQueueRowId as oe, toTransferQueueItems as se } from "../upload-queue.js";
|
|
8
|
+
import r from "./DialFileManagerShell.module.scss.js";
|
|
9
|
+
import { Button as ce, ButtonAppearance as le, ButtonVariant as i, ElementSize as ue, ErrorMessageNotification as de, LiveRegion as fe, LiveRegionElement as pe, NOT_ALLOWED_SYMBOLS_REGEXP as me, Spinner as he, TransferQueue as ge } from "@epam/ai-dial-ui-kit";
|
|
10
|
+
import { memo as a, useCallback as o, useEffect as _e, useMemo as s, useState as ve } from "react";
|
|
11
11
|
import { Fragment as ye, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
12
12
|
import { DialFileManager as be, DialFileManagerActions as u, DialFileManagerTabs as xe, GridSelectionMode as Se } from "@epam/ai-dial-react-file-manager";
|
|
13
13
|
//#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
|
|
@@ -16,16 +16,16 @@ var Ce = (e, t) => {
|
|
|
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
|
-
}, d = ({ controller:
|
|
20
|
-
let { items:
|
|
19
|
+
}, d = ({ controller: a, labels: d, activeTab: f, tabs: p, onTabChange: m, selectedPaths: h, onSelectedPathsChange: we, variant: g, actionProfile: Te, autoSelectUploadedItems: Ee = !1, allowedFileTypes: De, maxSelectableFileSize: _, oversizedUploadMessage: v, isRowSelectable: y, getDisabledTooltip: Oe, unsupportedFileTypeTooltip: ke, treeContainerClassName: b, onPreview: Ae, onTableFileClick: je, previewExtensions: Me, styles: x }) => {
|
|
20
|
+
let { items: S, isLoading: Ne, error: Pe, path: C, onPathChange: Fe, retry: Ie, onSearchFiles: Le, isSearching: Re, searchResults: ze, clearSearchResults: Be, expandedPaths: w, loadedPaths: T, onExpandedPathsChange: E, folderPopupLoadingPaths: D, onFolderPopupPathChange: Ve, onUploadFiles: He, onUploadArchive: Ue, onValidateUpload: We, uploadBatchState: O, cancelUpload: k, cancelUploadFile: A, clearUploadBatch: j, downloadBatchState: M, cancelDownloadFile: N, cancelAllDownloads: P, clearDownloadBatch: F, onCreateFolder: I, onCreateFolderValidate: Ge, onDownloadFiles: Ke, onDeleteFiles: qe, isDeleting: Je, onMoveToFiles: Ye, onRenameValidate: Xe, isRenaming: Ze, onCopyFiles: Qe, isCopying: $e, isMoving: L, cancelCopyMove: et, uploadEnabled: R, isNewButtonDisabled: z, disabledNewButtonTooltip: B, visibleColumns: V, dateLocale: H, dateOptions: U, actionLabels: W, sharedWithMeIds: tt, sharedByMePaths: G, onUnshareFiles: nt, isUnsharing: rt, onRemoveFilesAccess: it, isRemovingAccess: at, fileMetadata: K, isFileMetadataLoading: q, onGetInfo: ot, clearMetadata: J, sectionTab: st } = a, Y = st ?? f, { handleGridApiChange: ct, reset: X } = te();
|
|
21
21
|
_e(() => {
|
|
22
|
-
|
|
23
|
-
}, [
|
|
24
|
-
let
|
|
22
|
+
X();
|
|
23
|
+
}, [Y, X]);
|
|
24
|
+
let Z = s(() => {
|
|
25
25
|
let e = {};
|
|
26
|
-
return u.Download in
|
|
26
|
+
return u.Download in W && (e[u.Download] = d.downloadLabel), u.Delete in W && (e[u.Delete] = d.deleteLabel), u.Rename in W && (e[u.Rename] = d.renameLabel), u.Copy in W && (e[u.Copy] = d.copyLabel), u.Move in W && (e[u.Move] = d.moveLabel), u.Duplicate in W && (e[u.Duplicate] = d.duplicateLabel), u.Unshare in W && (e[u.Unshare] = d.unshareLabel), u.RemoveAccess in W && (e[u.RemoveAccess] = d.removeAccessLabel), e;
|
|
27
27
|
}, [
|
|
28
|
-
|
|
28
|
+
W,
|
|
29
29
|
d.downloadLabel,
|
|
30
30
|
d.deleteLabel,
|
|
31
31
|
d.renameLabel,
|
|
@@ -34,85 +34,85 @@ var Ce = (e, t) => {
|
|
|
34
34
|
d.duplicateLabel,
|
|
35
35
|
d.unshareLabel,
|
|
36
36
|
d.removeAccessLabel
|
|
37
|
-
]),
|
|
38
|
-
let e = d.previewLabel == null ?
|
|
39
|
-
...
|
|
37
|
+
]), lt = s(() => {
|
|
38
|
+
let e = d.previewLabel == null ? Z : {
|
|
39
|
+
...Z,
|
|
40
40
|
[u.Preview]: d.previewLabel
|
|
41
41
|
};
|
|
42
|
-
return u.Info in
|
|
42
|
+
return u.Info in W ? {
|
|
43
43
|
...e,
|
|
44
44
|
[u.Info]: d.infoLabel
|
|
45
45
|
} : e;
|
|
46
46
|
}, [
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
Z,
|
|
48
|
+
W,
|
|
49
49
|
d.infoLabel,
|
|
50
50
|
d.previewLabel
|
|
51
|
-
]),
|
|
51
|
+
]), ut = s(() => {
|
|
52
52
|
if (h.size === 0) return !1;
|
|
53
|
-
for (let e of h) if (!
|
|
53
|
+
for (let e of h) if (!G.has(e)) return !1;
|
|
54
54
|
return !0;
|
|
55
|
-
}, [h,
|
|
56
|
-
if (
|
|
57
|
-
let { [u.RemoveAccess]: e, ...t } =
|
|
55
|
+
}, [h, G]), dt = s(() => {
|
|
56
|
+
if (ut) return Z;
|
|
57
|
+
let { [u.RemoveAccess]: e, ...t } = Z;
|
|
58
58
|
return t;
|
|
59
|
-
}, [
|
|
59
|
+
}, [Z, ut]), Q = g === n.Attach, ft = s(() => ({
|
|
60
60
|
selectionMode: Se.MULTIPLE,
|
|
61
61
|
filterable: !1,
|
|
62
62
|
withoutHeaderBorders: !0,
|
|
63
|
-
containerClassName:
|
|
64
|
-
visibleColumns:
|
|
65
|
-
dateLocale:
|
|
66
|
-
dateOptions:
|
|
63
|
+
containerClassName: Q ? void 0 : "rounded-none shadow-none",
|
|
64
|
+
visibleColumns: V,
|
|
65
|
+
dateLocale: H,
|
|
66
|
+
dateOptions: U,
|
|
67
67
|
additionalGridOptions: {
|
|
68
68
|
domLayout: "normal",
|
|
69
69
|
rowSelection: {
|
|
70
70
|
mode: "multiRow",
|
|
71
|
-
isRowSelectable:
|
|
71
|
+
isRowSelectable: y ?? (() => !0),
|
|
72
72
|
hideDisabledCheckboxes: !0
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
actionLabels:
|
|
75
|
+
actionLabels: lt
|
|
76
76
|
}), [
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
]),
|
|
77
|
+
V,
|
|
78
|
+
H,
|
|
79
|
+
U,
|
|
80
|
+
lt,
|
|
81
|
+
y,
|
|
82
|
+
Q
|
|
83
|
+
]), pt = s(() => ({
|
|
84
84
|
header: d.treeHeader ?? null,
|
|
85
|
-
containerClassName:
|
|
85
|
+
containerClassName: b ?? (g === n.Attach ? e("relative z-1 min-h-0 h-full w-[360px] shrink-0 border-e", r.tree) : void 0),
|
|
86
86
|
tabsAriaLabel: d.treeHeaderByTab[f],
|
|
87
87
|
tabs: p,
|
|
88
88
|
activeTab: f,
|
|
89
89
|
onTabChange: m,
|
|
90
|
-
expandedPaths:
|
|
91
|
-
loadedPaths:
|
|
92
|
-
loadingPaths:
|
|
93
|
-
onExpandedPathsChange:
|
|
94
|
-
actionLabels:
|
|
90
|
+
expandedPaths: w,
|
|
91
|
+
loadedPaths: T,
|
|
92
|
+
loadingPaths: D,
|
|
93
|
+
onExpandedPathsChange: E,
|
|
94
|
+
actionLabels: Z
|
|
95
95
|
}), [
|
|
96
96
|
d.treeHeader,
|
|
97
97
|
d.treeHeaderByTab,
|
|
98
|
-
|
|
98
|
+
b,
|
|
99
99
|
g,
|
|
100
100
|
p,
|
|
101
101
|
f,
|
|
102
102
|
m,
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
]),
|
|
103
|
+
w,
|
|
104
|
+
T,
|
|
105
|
+
D,
|
|
106
|
+
E,
|
|
107
|
+
Z
|
|
108
|
+
]), mt = g === n.Standalone && Te === ee.Full && Y === xe.MyFiles && R, ht = s(() => ({
|
|
109
109
|
showHiddenFilesToggle: !0,
|
|
110
|
-
...
|
|
110
|
+
...Q ? { newButtonVariant: i.Neutral } : {},
|
|
111
111
|
hiddenFilesSwitcherLabel: d.hiddenFilesLabel,
|
|
112
112
|
showHiddenFilesLabel: d.showHiddenFilesLabel,
|
|
113
113
|
hideHiddenFilesLabel: d.hideHiddenFilesLabel,
|
|
114
|
-
isNewButtonDisabled:
|
|
115
|
-
disabledNewButtonTooltip:
|
|
114
|
+
isNewButtonDisabled: z,
|
|
115
|
+
disabledNewButtonTooltip: B,
|
|
116
116
|
newActions: {
|
|
117
117
|
uploadFiles: {
|
|
118
118
|
label: d.uploadFilesLabel,
|
|
@@ -122,30 +122,30 @@ var Ce = (e, t) => {
|
|
|
122
122
|
label: d.newFolderLabel,
|
|
123
123
|
icon: null
|
|
124
124
|
},
|
|
125
|
-
...
|
|
125
|
+
...mt ? { uploadArchive: {
|
|
126
126
|
label: d.uploadArchiveAction,
|
|
127
127
|
icon: null
|
|
128
128
|
} } : {}
|
|
129
129
|
}
|
|
130
130
|
}), [
|
|
131
|
-
|
|
131
|
+
Q,
|
|
132
132
|
d.hiddenFilesLabel,
|
|
133
133
|
d.showHiddenFilesLabel,
|
|
134
134
|
d.hideHiddenFilesLabel,
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
z,
|
|
136
|
+
B,
|
|
137
137
|
d.uploadFilesLabel,
|
|
138
138
|
d.newFolderLabel,
|
|
139
|
-
|
|
139
|
+
mt,
|
|
140
140
|
d.uploadArchiveAction
|
|
141
|
-
]),
|
|
141
|
+
]), gt = s(() => Q ? void 0 : {
|
|
142
142
|
getSelectionLabel: d.getSelectionLabel,
|
|
143
|
-
actionLabels:
|
|
143
|
+
actionLabels: dt
|
|
144
144
|
}, [
|
|
145
|
-
|
|
145
|
+
Q,
|
|
146
146
|
d.getSelectionLabel,
|
|
147
|
-
|
|
148
|
-
]),
|
|
147
|
+
dt
|
|
148
|
+
]), _t = s(() => ({
|
|
149
149
|
cancelLabel: d.deleteCancelLabel,
|
|
150
150
|
confirmLabel: d.deleteConfirmLabel,
|
|
151
151
|
closeLabel: d.deleteCloseLabel,
|
|
@@ -157,77 +157,63 @@ var Ce = (e, t) => {
|
|
|
157
157
|
d.deleteCloseLabel,
|
|
158
158
|
d.deleteConfirmTitle,
|
|
159
159
|
d.deleteConfirmBody
|
|
160
|
-
]),
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}, [h]), Q = G != null && C.has(G), St = Q ? G : xt, Ct = s(() => ({
|
|
169
|
-
copyLabel: d.copyLabel,
|
|
170
|
-
moveLabel: d.moveLabel,
|
|
160
|
+
]), [vt, yt] = ve(null), bt = s(() => ({
|
|
161
|
+
...d.destinationPanelTexts,
|
|
162
|
+
getCopyTitle: d.getCopyDestinationTitle,
|
|
163
|
+
getMoveTitle: d.getMoveDestinationTitle,
|
|
164
|
+
copyHeading: d.copyDestinationHeading,
|
|
165
|
+
moveHeading: d.moveDestinationHeading,
|
|
166
|
+
copyButtonLabel: d.copyDestinationButton,
|
|
167
|
+
moveButtonLabel: d.moveDestinationButton,
|
|
171
168
|
addFolderLabel: d.addFolderLabel,
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
getMoveHeader: d.getMoveHeader,
|
|
175
|
-
disabledPathTooltip: Q ? d.folderPickerLoadingTooltip : d.moveSourceDisabledTooltip,
|
|
176
|
-
movedIntoItselfTooltip: d.movedIntoItselfTooltip,
|
|
177
|
-
emptyStateTitle: d.folderPickerEmptyStateTitle,
|
|
178
|
-
emptyStateDescription: d.folderPickerEmptyStateDescription,
|
|
179
|
-
sourceFolder: St,
|
|
180
|
-
destinationFolderPath: G,
|
|
181
|
-
setDestinationFolderPath: pt,
|
|
182
|
-
filesLoading: Q
|
|
169
|
+
sourceFolderTooltip: d.moveSourceDisabledTooltip,
|
|
170
|
+
movedIntoItselfTooltip: d.movedIntoItselfTooltip
|
|
183
171
|
}), [
|
|
184
|
-
d.
|
|
185
|
-
d.
|
|
172
|
+
d.destinationPanelTexts,
|
|
173
|
+
d.getCopyDestinationTitle,
|
|
174
|
+
d.getMoveDestinationTitle,
|
|
175
|
+
d.copyDestinationHeading,
|
|
176
|
+
d.moveDestinationHeading,
|
|
177
|
+
d.copyDestinationButton,
|
|
178
|
+
d.moveDestinationButton,
|
|
186
179
|
d.addFolderLabel,
|
|
187
|
-
d.hiddenFilesSwitcherLabel,
|
|
188
|
-
d.getCopyHeader,
|
|
189
|
-
d.getMoveHeader,
|
|
190
|
-
d.folderPickerLoadingTooltip,
|
|
191
180
|
d.moveSourceDisabledTooltip,
|
|
192
|
-
d.movedIntoItselfTooltip
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
G
|
|
198
|
-
]), wt = ge(() => {
|
|
199
|
-
T(), A(), D(), j();
|
|
181
|
+
d.movedIntoItselfTooltip
|
|
182
|
+
]), xt = o(() => yt(null), []), St = o(async (...e) => {
|
|
183
|
+
await I(...e);
|
|
184
|
+
}, [I]), Ct = o(() => {
|
|
185
|
+
k(), P(), j(), F();
|
|
200
186
|
}, [
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
]),
|
|
206
|
-
let t =
|
|
207
|
-
t?.kind ===
|
|
208
|
-
}, [
|
|
209
|
-
w,
|
|
187
|
+
k,
|
|
188
|
+
P,
|
|
189
|
+
j,
|
|
190
|
+
F
|
|
191
|
+
]), wt = o((e) => {
|
|
192
|
+
let t = oe(e);
|
|
193
|
+
t?.kind === ie.Upload ? A(t.entryId) : t?.kind === ie.Download && N(t.entryId);
|
|
194
|
+
}, [A, N]), Tt = s(() => se(O, M, d.uploadFailureMessages), [
|
|
210
195
|
O,
|
|
196
|
+
M,
|
|
211
197
|
d.uploadFailureMessages
|
|
212
|
-
]),
|
|
213
|
-
uploads:
|
|
214
|
-
downloads:
|
|
215
|
-
}) ?? d.getUploadQueueTitle(
|
|
198
|
+
]), Et = O?.files.length ?? 0, Dt = M?.files.length ?? 0, Ot = d.getTransferQueueTitle?.({
|
|
199
|
+
uploads: Et,
|
|
200
|
+
downloads: Dt
|
|
201
|
+
}) ?? d.getUploadQueueTitle(Et + Dt), kt = s(() => ae({
|
|
216
202
|
uploadLabels: d.uploadQueueLabels,
|
|
217
203
|
downloadLabels: d.downloadQueueLabels,
|
|
218
204
|
mixedProgressLabel: d.transferQueueProgressAriaLabel,
|
|
219
|
-
uploadNames: new Set(
|
|
220
|
-
downloadNames: new Set(
|
|
205
|
+
uploadNames: new Set(O?.files.map((e) => e.name)),
|
|
206
|
+
downloadNames: new Set(M?.files.map((e) => e.name))
|
|
221
207
|
}), [
|
|
222
208
|
d.uploadQueueLabels,
|
|
223
209
|
d.downloadQueueLabels,
|
|
224
210
|
d.transferQueueProgressAriaLabel,
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
]),
|
|
228
|
-
fileMetadata:
|
|
229
|
-
loading:
|
|
230
|
-
clearMetadata:
|
|
211
|
+
O,
|
|
212
|
+
M
|
|
213
|
+
]), At = s(() => ({
|
|
214
|
+
fileMetadata: K,
|
|
215
|
+
loading: q,
|
|
216
|
+
clearMetadata: J,
|
|
231
217
|
header: d.metadataHeader,
|
|
232
218
|
nameLabel: d.metadataNameLabel,
|
|
233
219
|
pathLabel: d.metadataPathLabel,
|
|
@@ -235,9 +221,9 @@ var Ce = (e, t) => {
|
|
|
235
221
|
sizeLabel: d.metadataSizeLabel,
|
|
236
222
|
authorLabel: d.metadataAuthorLabel
|
|
237
223
|
}), [
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
224
|
+
K,
|
|
225
|
+
q,
|
|
226
|
+
J,
|
|
241
227
|
d.metadataHeader,
|
|
242
228
|
d.metadataNameLabel,
|
|
243
229
|
d.metadataPathLabel,
|
|
@@ -245,102 +231,101 @@ var Ce = (e, t) => {
|
|
|
245
231
|
d.metadataSizeLabel,
|
|
246
232
|
d.metadataAuthorLabel
|
|
247
233
|
]), $ = Ce({
|
|
248
|
-
isDeleting:
|
|
249
|
-
isRenaming:
|
|
250
|
-
isMoving:
|
|
251
|
-
isUnsharing:
|
|
252
|
-
isRemovingAccess:
|
|
253
|
-
}, d),
|
|
234
|
+
isDeleting: Je,
|
|
235
|
+
isRenaming: Ze,
|
|
236
|
+
isMoving: L,
|
|
237
|
+
isUnsharing: rt,
|
|
238
|
+
isRemovingAccess: at
|
|
239
|
+
}, d), jt = s(() => C.split("/").filter(Boolean).length > 1 ? {
|
|
254
240
|
title: d.folderEmptyStateTitle,
|
|
255
241
|
description: ""
|
|
256
|
-
} : d.emptyStateByTab[
|
|
257
|
-
|
|
242
|
+
} : d.emptyStateByTab[Y], [
|
|
243
|
+
C,
|
|
258
244
|
d.folderEmptyStateTitle,
|
|
259
245
|
d.emptyStateByTab,
|
|
260
|
-
|
|
261
|
-
]),
|
|
262
|
-
"--dfms-surface":
|
|
263
|
-
"--dfms-tree-bg":
|
|
264
|
-
"--dfms-tree-border":
|
|
265
|
-
"--dfms-tree-shadow":
|
|
266
|
-
"--dfms-overlay-backdrop":
|
|
246
|
+
Y
|
|
247
|
+
]), Mt = t({
|
|
248
|
+
"--dfms-surface": x?.colors?.surface,
|
|
249
|
+
"--dfms-tree-bg": x?.colors?.treeBackground,
|
|
250
|
+
"--dfms-tree-border": x?.colors?.treeBorder,
|
|
251
|
+
"--dfms-tree-shadow": x?.colors?.treeShadow,
|
|
252
|
+
"--dfms-overlay-backdrop": x?.colors?.overlayBackdrop
|
|
267
253
|
});
|
|
268
254
|
return /* @__PURE__ */ l(ye, { children: [
|
|
269
|
-
|
|
270
|
-
style:
|
|
271
|
-
className: e("relative flex min-h-0 w-full grow overflow-auto",
|
|
255
|
+
Pe == null ? /* @__PURE__ */ l("div", {
|
|
256
|
+
style: Mt,
|
|
257
|
+
className: e("relative flex min-h-0 w-full grow overflow-auto", r.surface),
|
|
272
258
|
children: [
|
|
273
259
|
/* @__PURE__ */ c(be, {
|
|
274
|
-
className: e("min-h-0 w-full grow",
|
|
275
|
-
contentClassName:
|
|
276
|
-
gridClassName: g ===
|
|
277
|
-
items:
|
|
278
|
-
path:
|
|
279
|
-
onPathChange:
|
|
280
|
-
onGridApiChange:
|
|
281
|
-
filesLoading:
|
|
260
|
+
className: e("min-h-0 w-full grow", r.surface, Q && "p-0"),
|
|
261
|
+
contentClassName: Q ? "px-0 pb-0" : void 0,
|
|
262
|
+
gridClassName: g === n.Attach ? "size-full gap-6 px-6 py-4" : "size-full",
|
|
263
|
+
items: S,
|
|
264
|
+
path: C,
|
|
265
|
+
onPathChange: Fe,
|
|
266
|
+
onGridApiChange: ct,
|
|
267
|
+
filesLoading: Ne,
|
|
282
268
|
allowedFileTypes: De,
|
|
283
269
|
maxSelectableFileSize: _,
|
|
284
270
|
maxFileSize: _,
|
|
285
|
-
uploadValidationMessages:
|
|
271
|
+
uploadValidationMessages: v == null ? void 0 : { oversizedFiles: v },
|
|
286
272
|
selectedPaths: h,
|
|
287
273
|
onSelectedPathsChange: we,
|
|
288
274
|
navigationPanelOptions: {
|
|
289
275
|
searchable: !0,
|
|
290
|
-
placeholder: d.searchPlaceholderByTab?.[
|
|
276
|
+
placeholder: d.searchPlaceholderByTab?.[Y]
|
|
291
277
|
},
|
|
292
278
|
hideSearchPathItemName: !0,
|
|
293
|
-
onSearchFiles:
|
|
294
|
-
searchInProgress:
|
|
295
|
-
searchResults:
|
|
296
|
-
clearSearchResults:
|
|
297
|
-
gridOptions:
|
|
298
|
-
treeOptions:
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
bulkActionsToolbarOptions: yt,
|
|
279
|
+
onSearchFiles: Le,
|
|
280
|
+
searchInProgress: Re,
|
|
281
|
+
searchResults: ze ?? [],
|
|
282
|
+
clearSearchResults: Be,
|
|
283
|
+
gridOptions: ft,
|
|
284
|
+
treeOptions: pt,
|
|
285
|
+
toolbarOptions: ht,
|
|
286
|
+
bulkActionsToolbarOptions: gt,
|
|
302
287
|
autoSelectUploadedItems: Ee,
|
|
303
|
-
emptyStateTitle:
|
|
304
|
-
emptyStateDescription:
|
|
288
|
+
emptyStateTitle: jt.title,
|
|
289
|
+
emptyStateDescription: jt.description,
|
|
305
290
|
searchEmptyStateTitle: d.searchEmptyStateTitle,
|
|
306
|
-
uploadEnabled:
|
|
307
|
-
sharedWithMeIds:
|
|
308
|
-
sharedByMePaths:
|
|
309
|
-
onUnshareFiles:
|
|
310
|
-
onRemoveFilesAccess:
|
|
311
|
-
fileMetadataPopupOptions:
|
|
312
|
-
onGetInfo:
|
|
313
|
-
onPreview:
|
|
314
|
-
onTableFileClick:
|
|
315
|
-
previewExtensions:
|
|
316
|
-
onUploadFiles:
|
|
317
|
-
onUploadArchive:
|
|
318
|
-
onValidateUpload:
|
|
319
|
-
onCreateFolder:
|
|
320
|
-
onCreateFolderValidate:
|
|
321
|
-
onDownloadFiles:
|
|
322
|
-
onDeleteFiles:
|
|
323
|
-
onMoveToFiles:
|
|
324
|
-
onCopyFiles:
|
|
325
|
-
onRenameValidate:
|
|
291
|
+
uploadEnabled: R,
|
|
292
|
+
sharedWithMeIds: tt,
|
|
293
|
+
sharedByMePaths: G,
|
|
294
|
+
onUnshareFiles: nt,
|
|
295
|
+
onRemoveFilesAccess: it,
|
|
296
|
+
fileMetadataPopupOptions: At,
|
|
297
|
+
onGetInfo: ot,
|
|
298
|
+
onPreview: Ae,
|
|
299
|
+
onTableFileClick: je,
|
|
300
|
+
previewExtensions: Me,
|
|
301
|
+
onUploadFiles: He,
|
|
302
|
+
onUploadArchive: Ue,
|
|
303
|
+
onValidateUpload: We,
|
|
304
|
+
onCreateFolder: St,
|
|
305
|
+
onCreateFolderValidate: Ge,
|
|
306
|
+
onDownloadFiles: Ke,
|
|
307
|
+
onDeleteFiles: qe,
|
|
308
|
+
onMoveToFiles: Ye,
|
|
309
|
+
onCopyFiles: Qe,
|
|
310
|
+
onRenameValidate: Xe,
|
|
326
311
|
renameValidationMessages: d.renameValidationMessages,
|
|
327
|
-
isRenameFileAvailable:
|
|
328
|
-
deleteConfirmationOptions:
|
|
312
|
+
isRenameFileAvailable: R,
|
|
313
|
+
deleteConfirmationOptions: _t,
|
|
329
314
|
conflictResolutionPopupOptions: d.conflictResolutionPopupOptions,
|
|
330
|
-
|
|
331
|
-
forbiddenSymbolsRegExp:
|
|
315
|
+
onDestinationRequest: yt,
|
|
316
|
+
forbiddenSymbolsRegExp: me,
|
|
332
317
|
forbiddenSymbolsTooltip: d.forbiddenSymbolsTooltip,
|
|
333
|
-
getDisabledTooltip:
|
|
334
|
-
unsupportedFileTypeTooltip:
|
|
318
|
+
getDisabledTooltip: Oe,
|
|
319
|
+
unsupportedFileTypeTooltip: ke
|
|
335
320
|
}),
|
|
336
|
-
/* @__PURE__ */ c(
|
|
321
|
+
/* @__PURE__ */ c(fe, {
|
|
337
322
|
visuallyHidden: !0,
|
|
338
|
-
as:
|
|
323
|
+
as: pe.Span,
|
|
339
324
|
children: $ ?? ""
|
|
340
325
|
}),
|
|
341
326
|
$ != null && /* @__PURE__ */ c("div", {
|
|
342
|
-
className: e("absolute inset-0 z-52 flex items-center justify-center desktop:p-4",
|
|
343
|
-
children: /* @__PURE__ */ c(
|
|
327
|
+
className: e("absolute inset-0 z-52 flex items-center justify-center desktop:p-4", r.overlay),
|
|
328
|
+
children: /* @__PURE__ */ c(he, {
|
|
344
329
|
size: 32,
|
|
345
330
|
fullWidth: !1,
|
|
346
331
|
ariaLabel: $
|
|
@@ -349,37 +334,47 @@ var Ce = (e, t) => {
|
|
|
349
334
|
]
|
|
350
335
|
}) : /* @__PURE__ */ c("div", {
|
|
351
336
|
className: "p-6",
|
|
352
|
-
children: /* @__PURE__ */ c(
|
|
337
|
+
children: /* @__PURE__ */ c(de, {
|
|
353
338
|
message: d.errorMessage,
|
|
354
|
-
action: /* @__PURE__ */ c(
|
|
355
|
-
variant:
|
|
356
|
-
appearance:
|
|
357
|
-
size:
|
|
339
|
+
action: /* @__PURE__ */ c(ce, {
|
|
340
|
+
variant: i.Neutral,
|
|
341
|
+
appearance: le.Outlined,
|
|
342
|
+
size: ue.Small,
|
|
358
343
|
label: d.retryLabel,
|
|
359
|
-
onClick:
|
|
344
|
+
onClick: Ie
|
|
360
345
|
})
|
|
361
346
|
})
|
|
362
347
|
}),
|
|
363
348
|
/* @__PURE__ */ c("div", {
|
|
364
349
|
className: "fixed inset-e-4 bottom-4 z-51",
|
|
365
|
-
children: /* @__PURE__ */ c(
|
|
366
|
-
title:
|
|
367
|
-
items:
|
|
368
|
-
onClose:
|
|
369
|
-
onCancelItem:
|
|
370
|
-
labels:
|
|
350
|
+
children: /* @__PURE__ */ c(ge, {
|
|
351
|
+
title: Ot,
|
|
352
|
+
items: Tt,
|
|
353
|
+
onClose: Ct,
|
|
354
|
+
onCancelItem: wt,
|
|
355
|
+
labels: kt
|
|
371
356
|
})
|
|
372
357
|
}),
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
358
|
+
vt != null && /* @__PURE__ */ c(re, {
|
|
359
|
+
request: vt,
|
|
360
|
+
roots: S,
|
|
361
|
+
loadedPaths: T,
|
|
362
|
+
loadingPaths: D,
|
|
363
|
+
onFolderPopupPathChange: Ve,
|
|
364
|
+
onCreateFolder: I,
|
|
365
|
+
labels: bt,
|
|
366
|
+
onFinish: xt
|
|
367
|
+
}),
|
|
368
|
+
($e || L) && /* @__PURE__ */ c(ne, {
|
|
369
|
+
title: L ? d.operationLoaderMoveTitle : d.operationLoaderCopyTitle,
|
|
370
|
+
text: L ? d.movingLabel : d.copyingLabel,
|
|
376
371
|
cancelLabel: d.operationLoaderCancelLabel,
|
|
377
|
-
onCancel:
|
|
378
|
-
colors:
|
|
379
|
-
textClassName:
|
|
372
|
+
onCancel: et,
|
|
373
|
+
colors: x?.operationLoader,
|
|
374
|
+
textClassName: x?.operationLoaderTextClassName
|
|
380
375
|
})
|
|
381
376
|
] });
|
|
382
377
|
};
|
|
383
|
-
|
|
378
|
+
a(d);
|
|
384
379
|
//#endregion
|
|
385
380
|
export { d as DialFileManagerShell };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DialDestinationRequest, DialFile } from '@epam/ai-dial-react-file-manager';
|
|
2
|
+
import { FC } from 'react';
|
|
3
|
+
import { FileManagerController } from '../file-manager-controller';
|
|
4
|
+
import { FileManagerDestinationPanelLabels } from '../labels';
|
|
5
|
+
/** Props of {@link FileManagerDestinationPanel}. */
|
|
6
|
+
export interface FileManagerDestinationPanelProps {
|
|
7
|
+
/** The Copy or Move the user started. */
|
|
8
|
+
request: DialDestinationRequest;
|
|
9
|
+
/** The roots of every enabled section; the panel shows the one the items come from. */
|
|
10
|
+
roots: DialFile[];
|
|
11
|
+
/** Virtual paths whose contents are already loaded. */
|
|
12
|
+
loadedPaths: Set<string>;
|
|
13
|
+
/** Virtual paths whose contents are being loaded. */
|
|
14
|
+
loadingPaths: Set<string>;
|
|
15
|
+
/** Loads a folder's contents without changing the browsed path. */
|
|
16
|
+
onFolderPopupPathChange: FileManagerController['onFolderPopupPathChange'];
|
|
17
|
+
/** Creates a folder; called with the folder's full virtual path. */
|
|
18
|
+
onCreateFolder: FileManagerController['onCreateFolder'];
|
|
19
|
+
/** Text of the panel. */
|
|
20
|
+
labels: FileManagerDestinationPanelLabels;
|
|
21
|
+
/** Called once the user confirmed or dismissed the panel, so the host can stop rendering it. */
|
|
22
|
+
onFinish: () => void;
|
|
23
|
+
}
|
|
24
|
+
/** Side panel for choosing where Copy or Move puts the items, limited to the section the items come from. */
|
|
25
|
+
export declare const FileManagerDestinationPanel: FC<FileManagerDestinationPanelProps>;
|
|
26
|
+
//# sourceMappingURL=FileManagerDestinationPanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileManagerDestinationPanel.d.ts","sourceRoot":"","sources":["../../../src/file-manager/FileManagerDestinationPanel/FileManagerDestinationPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EAEd,MAAM,kCAAkC,CAAC;AAQ1C,OAAO,EAAE,EAAE,EAA6C,MAAM,OAAO,CAAC;AAStE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,KAAK,EAAE,iCAAiC,EAAE,MAAM,WAAW,CAAC;AAWnE,oDAAoD;AACpD,MAAM,WAAW,gCAAgC;IAC/C,yCAAyC;IACzC,OAAO,EAAE,sBAAsB,CAAC;IAChC,uFAAuF;IACvF,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,uDAAuD;IACvD,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACzB,qDAAqD;IACrD,YAAY,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,mEAAmE;IACnE,uBAAuB,EAAE,qBAAqB,CAAC,yBAAyB,CAAC,CAAC;IAC1E,oEAAoE;IACpE,cAAc,EAAE,qBAAqB,CAAC,gBAAgB,CAAC,CAAC;IACxD,yBAAyB;IACzB,MAAM,EAAE,iCAAiC,CAAC;IAC1C,gGAAgG;IAChG,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,6GAA6G;AAC7G,eAAO,MAAM,2BAA2B,EAAE,EAAE,CAC1C,gCAAgC,CAkRjC,CAAC"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { isHiddenPath as e } from "../path.js";
|
|
2
|
+
import { findFolder as t, findSectionRoot as n, isSameOrInsidePath as r, toDestinationFolderNodes as i, toDestinationPath as a, toPathSegments as o } from "../destination-folders.js";
|
|
3
|
+
import { DIAL_ICON_SIZE as s, DIAL_KIT_ICON_STROKE as c, DialItemType as l, FileName as u } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { useCallback as d, useEffect as f, useMemo as p, useState as m } from "react";
|
|
5
|
+
import { jsx as h } from "react/jsx-runtime";
|
|
6
|
+
import { IconFolderShare as ee } from "@tabler/icons-react";
|
|
7
|
+
import { DestinationFolderMode as te, DialFileNodeType as g, FolderDestinationLayout as _, FolderDestinationPanel as v, fromFolderPathKey as y, toFolderPathKey as b } from "@epam/ai-dial-react-file-manager";
|
|
8
|
+
//#region src/file-manager/FileManagerDestinationPanel/FileManagerDestinationPanel.tsx
|
|
9
|
+
var x = "files", S = ".dial_folder", ne = "Failed to create the folder. Please try again.", C = ({ request: C, roots: w, loadedPaths: T, loadingPaths: E, onFolderPopupPathChange: D, onCreateFolder: O, labels: k, onFinish: A }) => {
|
|
10
|
+
let j = n(w, C.sourceFolder), M = j?.path ?? "", N = o(M).length, P = C.mode === te.Move, F = p(() => C.items.filter((e) => e.nodeType === g.FOLDER).map((e) => e.path), [C.items]), I = d(({ path: e }) => {
|
|
11
|
+
if (!P) return;
|
|
12
|
+
let t = a(M, e);
|
|
13
|
+
if (F.some((e) => r(t, e))) return k.movedIntoItselfTooltip;
|
|
14
|
+
if (o(t).join("/") === o(C.sourceFolder).join("/")) return k.sourceFolderTooltip;
|
|
15
|
+
}, [
|
|
16
|
+
P,
|
|
17
|
+
M,
|
|
18
|
+
F,
|
|
19
|
+
C.sourceFolder,
|
|
20
|
+
k
|
|
21
|
+
]), re = o(C.sourceFolder).slice(N), [L, R] = m(() => {
|
|
22
|
+
let t = {
|
|
23
|
+
rootKey: x,
|
|
24
|
+
path: re
|
|
25
|
+
};
|
|
26
|
+
return !P || I(t) == null ? t : [{
|
|
27
|
+
rootKey: x,
|
|
28
|
+
path: []
|
|
29
|
+
}, ...(j?.items ?? []).filter((t) => t.nodeType === g.FOLDER && !e(t.name)).map((e) => ({
|
|
30
|
+
rootKey: x,
|
|
31
|
+
path: o(e.path).slice(N)
|
|
32
|
+
}))].find((e) => I(e) == null) ?? t;
|
|
33
|
+
}), [z, B] = m(() => /* @__PURE__ */ new Set()), V = d((e) => D(a(M, e)), [D, M]), H = d((e) => {
|
|
34
|
+
let t = a(e, []);
|
|
35
|
+
return T.has(t) || T.has(`${t}/`);
|
|
36
|
+
}, [T]);
|
|
37
|
+
f(() => {
|
|
38
|
+
V(L.path);
|
|
39
|
+
}, []);
|
|
40
|
+
let U = p(() => i(j?.items, N, H), [
|
|
41
|
+
j,
|
|
42
|
+
N,
|
|
43
|
+
H
|
|
44
|
+
]), W = p(() => new Set([...E].filter((e) => r(e, M)).map((e) => b(o(e).slice(N)))), [
|
|
45
|
+
E,
|
|
46
|
+
M,
|
|
47
|
+
N
|
|
48
|
+
]), G = d((e) => {
|
|
49
|
+
e.forEach((e) => {
|
|
50
|
+
z.has(e) || V(y(e));
|
|
51
|
+
}), B(e);
|
|
52
|
+
}, [z, V]), K = p(() => [{
|
|
53
|
+
key: x,
|
|
54
|
+
label: j?.name ?? "",
|
|
55
|
+
items: U,
|
|
56
|
+
expandedPaths: z,
|
|
57
|
+
onExpandedPathsChange: G,
|
|
58
|
+
loadingPaths: W
|
|
59
|
+
}], [
|
|
60
|
+
j,
|
|
61
|
+
U,
|
|
62
|
+
z,
|
|
63
|
+
G,
|
|
64
|
+
W
|
|
65
|
+
]), [q, J] = m(), Y = d(() => {
|
|
66
|
+
J(k.createFolderFailedMessage ?? ne);
|
|
67
|
+
}, [k.createFolderFailedMessage]), ie = d(async (e, t, n) => {
|
|
68
|
+
J(void 0);
|
|
69
|
+
let r = `${a(M, t)}/${n}`;
|
|
70
|
+
if (!await O({
|
|
71
|
+
fileContent: new File([], S, { type: "text/plain" }),
|
|
72
|
+
name: S
|
|
73
|
+
}, r, `${r}/${S}`)) throw Error(`Folder "${n}" was not created`);
|
|
74
|
+
}, [O, M]), ae = d((e) => {
|
|
75
|
+
J(void 0), R(e), V(e.path);
|
|
76
|
+
}, [V]);
|
|
77
|
+
if (!j) return null;
|
|
78
|
+
let X = a(M, L.path), oe = W.has(b(L.path)) || !H(X), Z = C.items.length, [Q] = C.items, $ = Z === 1 && Q.nodeType === g.FOLDER, se = P ? k.getMoveTitle(Z, $) : k.getCopyTitle(Z, $), ce = /* @__PURE__ */ h("ul", {
|
|
79
|
+
className: "flex max-h-60 min-w-0 flex-col gap-1 overflow-y-auto",
|
|
80
|
+
children: C.items.map((e) => /* @__PURE__ */ h("li", {
|
|
81
|
+
className: "min-w-0",
|
|
82
|
+
children: /* @__PURE__ */ h(u, {
|
|
83
|
+
name: e.name,
|
|
84
|
+
type: e.nodeType === g.FOLDER ? l.Folder : l.File
|
|
85
|
+
})
|
|
86
|
+
}, e.path))
|
|
87
|
+
});
|
|
88
|
+
return /* @__PURE__ */ h(v, {
|
|
89
|
+
isOpen: !0,
|
|
90
|
+
onClose: () => {
|
|
91
|
+
C.cancel(), A();
|
|
92
|
+
},
|
|
93
|
+
item: {
|
|
94
|
+
title: Q.name,
|
|
95
|
+
summary: ce
|
|
96
|
+
},
|
|
97
|
+
roots: K,
|
|
98
|
+
destination: L,
|
|
99
|
+
layout: _.Inline,
|
|
100
|
+
onDestinationChange: ae,
|
|
101
|
+
onCreateFolder: ie,
|
|
102
|
+
getDisabledReason: I,
|
|
103
|
+
onCreateFolderError: Y,
|
|
104
|
+
submitError: q,
|
|
105
|
+
labels: {
|
|
106
|
+
title: se,
|
|
107
|
+
closeAriaLabel: k.closeAriaLabel,
|
|
108
|
+
cancelLabel: k.cancelLabel
|
|
109
|
+
},
|
|
110
|
+
panelLabels: {
|
|
111
|
+
destinationHeading: P ? k.moveHeading : k.copyHeading,
|
|
112
|
+
createFolderLabel: k.addFolderLabel,
|
|
113
|
+
searchPlaceholder: k.searchPlaceholder,
|
|
114
|
+
clearSearchAriaLabel: k.clearSearchAriaLabel,
|
|
115
|
+
folderEmptyStateLabel: k.folderEmptyStateLabel,
|
|
116
|
+
cancelCreatingFolderLabel: k.cancelCreatingFolderLabel,
|
|
117
|
+
addSiblingFolderLabel: k.addSiblingFolderLabel,
|
|
118
|
+
addChildFolderLabel: k.addChildFolderLabel,
|
|
119
|
+
createFolderEmptyNameError: k.createFolderEmptyNameError,
|
|
120
|
+
createFolderInvalidNameError: k.createFolderInvalidNameError,
|
|
121
|
+
createFolderDuplicateNameError: k.createFolderDuplicateNameError,
|
|
122
|
+
createFolderSameAsParentNameError: k.createFolderSameAsParentNameError,
|
|
123
|
+
createFolderHiddenNameWarning: k.createFolderHiddenNameWarning,
|
|
124
|
+
retryLabel: k.retryLabel
|
|
125
|
+
},
|
|
126
|
+
action: {
|
|
127
|
+
label: P ? k.moveButtonLabel : k.copyButtonLabel,
|
|
128
|
+
icon: /* @__PURE__ */ h(ee, {
|
|
129
|
+
size: s.SM,
|
|
130
|
+
stroke: c,
|
|
131
|
+
"aria-hidden": !0
|
|
132
|
+
}),
|
|
133
|
+
isDisabled: oe || I(L) != null,
|
|
134
|
+
onClick: () => {
|
|
135
|
+
C.confirm(X, t(j, X)?.items), A();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
};
|
|
140
|
+
//#endregion
|
|
141
|
+
export { C as FileManagerDestinationPanel };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DialFile, FolderNode } from '@epam/ai-dial-react-file-manager';
|
|
2
|
+
/** Splits a virtual path (`/My files/reports/`) into its non-empty segments. */
|
|
3
|
+
export declare const toPathSegments: (path: string) => string[];
|
|
4
|
+
/** Returns true when `path` is `ancestor` or lies inside it; both are compared segment by segment. */
|
|
5
|
+
export declare const isSameOrInsidePath: (path: string, ancestor: string) => boolean;
|
|
6
|
+
/** Returns the root of the section (tab) the source folder belongs to, or the first root when none matches. */
|
|
7
|
+
export declare const findSectionRoot: (roots: DialFile[], sourceFolder: string) => DialFile | undefined;
|
|
8
|
+
/** Joins the root path and the segments below it into the virtual path the file manager works with. */
|
|
9
|
+
export declare const toDestinationPath: (rootPath: string, path: string[]) => string;
|
|
10
|
+
/**
|
|
11
|
+
* Turns the folders of a section root into destination tree nodes: folders
|
|
12
|
+
* only, dot-folders left out, paths relative to the root. A folder whose
|
|
13
|
+
* contents are not loaded keeps `children` undefined so the tree does not
|
|
14
|
+
* read it as empty.
|
|
15
|
+
*/
|
|
16
|
+
export declare const toDestinationFolderNodes: (files: DialFile[] | undefined, rootSegmentCount: number, isLoaded: (virtualPath: string) => boolean) => FolderNode[];
|
|
17
|
+
/** Finds the folder at `virtualPath` inside `root`, or `undefined` when it is not in the loaded tree. */
|
|
18
|
+
export declare const findFolder: (root: DialFile, virtualPath: string) => DialFile | undefined;
|
|
19
|
+
//# sourceMappingURL=destination-folders.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"destination-folders.d.ts","sourceRoot":"","sources":["../../src/file-manager/destination-folders.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI7E,gFAAgF;AAChF,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,MAAM,EACnB,CAAC;AAElC,sGAAsG;AACtG,eAAO,MAAM,kBAAkB,GAAI,MAAM,MAAM,EAAE,UAAU,MAAM,KAAG,OAQnE,CAAC;AAEF,+GAA+G;AAC/G,eAAO,MAAM,eAAe,GAC1B,OAAO,QAAQ,EAAE,EACjB,cAAc,MAAM,KACnB,QAAQ,GAAG,SAMb,CAAC;AAEF,uGAAuG;AACvG,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,EAAE,MAAM,MAAM,EAAE,KAAG,MACnB,CAAC;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,wBAAwB,GACnC,OAAO,QAAQ,EAAE,GAAG,SAAS,EAC7B,kBAAkB,MAAM,EACxB,UAAU,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,KACzC,UAAU,EAuBP,CAAC;AAEP,yGAAyG;AACzG,eAAO,MAAM,UAAU,GACrB,MAAM,QAAQ,EACd,aAAa,MAAM,KAClB,QAAQ,GAAG,SASb,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { isHiddenPath as e } from "./path.js";
|
|
2
|
+
import { DialFileNodeType as t } from "@epam/ai-dial-react-file-manager";
|
|
3
|
+
//#region src/file-manager/destination-folders.ts
|
|
4
|
+
var n = (e) => e.split("/").filter(Boolean), r = (e, t) => {
|
|
5
|
+
let r = n(e), i = n(t);
|
|
6
|
+
return i.length > 0 && r.length >= i.length && i.every((e, t) => r[t] === e);
|
|
7
|
+
}, i = (e, t) => {
|
|
8
|
+
let [r] = n(t);
|
|
9
|
+
return e.find((e) => n(e.path)[0] === r) ?? e[0];
|
|
10
|
+
}, a = (e, t) => [e.replace(/\/$/, ""), ...t].join("/"), o = (r, i, a) => (r ?? []).filter((n) => n.nodeType === t.FOLDER && !e(n.name)).map((e) => {
|
|
11
|
+
let r = (e.items ?? []).filter((e) => e.nodeType === t.FOLDER), s;
|
|
12
|
+
return (r.length > 0 || a(e.path)) && (s = o(e.items, i, a)), {
|
|
13
|
+
path: n(e.path).slice(i),
|
|
14
|
+
name: e.name,
|
|
15
|
+
children: s
|
|
16
|
+
};
|
|
17
|
+
}), s = (e, r) => {
|
|
18
|
+
let i = n(r).join("/");
|
|
19
|
+
if (n(e.path).join("/") === i) return e;
|
|
20
|
+
for (let n of e.items ?? []) {
|
|
21
|
+
if (n.nodeType !== t.FOLDER) continue;
|
|
22
|
+
let e = s(n, r);
|
|
23
|
+
if (e) return e;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
//#endregion
|
|
27
|
+
export { s as findFolder, i as findSectionRoot, r as isSameOrInsidePath, o as toDestinationFolderNodes, a as toDestinationPath, n as toPathSegments };
|
|
@@ -55,8 +55,8 @@ export interface FileManagerController {
|
|
|
55
55
|
cancelUploadFile: (id: string) => void;
|
|
56
56
|
/** Upload: empty the upload queue. */
|
|
57
57
|
clearUploadBatch: () => void;
|
|
58
|
-
/** Folder creation: called when user confirms a new folder name. */
|
|
59
|
-
onCreateFolder: (file: DialUploadFileItem, folderPath: string, fileId: string) => Promise<
|
|
58
|
+
/** Folder creation: called when user confirms a new folder name; resolves `false` when the folder was not created. */
|
|
59
|
+
onCreateFolder: (file: DialUploadFileItem, folderPath: string, fileId: string) => Promise<boolean>;
|
|
60
60
|
/** Folder creation: inline synchronous validation (returns error message or null). */
|
|
61
61
|
onCreateFolderValidate: (name: string, parentFolder: DialFile) => string | null;
|
|
62
62
|
/** Download: called when user triggers download on one or more items; returns without waiting for the transfer. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file-manager-controller.d.ts","sourceRoot":"","sources":["../../src/file-manager/file-manager-controller.ts"],"names":[],"mappings":"A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;IACpF,uBAAuB,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAErC,iCAAiC;IACjC,aAAa,EAAE,CACb,KAAK,EAAE,kBAAkB,EAAE,EAC3B,iBAAiB,EAAE,MAAM,KACtB,IAAI,CAAC;IACV,sFAAsF;IACtF,eAAe,EAAE,CACf,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,MAAM,EACZ,iBAAiB,EAAE,MAAM,KACtB,IAAI,CAAC;IACV,6EAA6E;IAC7E,gBAAgB,EAAE,CAChB,KAAK,EAAE,kBAAkB,EAAE,EAC3B,aAAa,EAAE,QAAQ,EAAE,EACzB,iBAAiB,EAAE,MAAM,KACtB,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACzC,oDAAoD;IACpD,gBAAgB,EAAE,oBAAoB,GAAG,IAAI,CAAC;IAC9C,sDAAsD;IACtD,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,oEAAoE;IACpE,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACvC,sCAAsC;IACtC,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAE7B,
|
|
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,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CAAC;IAC/B,2FAA2F;IAC3F,SAAS,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
|
@@ -7,8 +7,60 @@ type DialFileManagerComponentProps = ComponentProps<typeof DialFileManager>;
|
|
|
7
7
|
export type ConflictResolutionPopupOptions = NonNullable<DialFileManagerComponentProps['conflictResolutionPopupOptions']>;
|
|
8
8
|
/** Validation messages shown during inline rename editing. */
|
|
9
9
|
export type RenameValidationMessages = NonNullable<DialFileManagerComponentProps['renameValidationMessages']>;
|
|
10
|
-
/**
|
|
11
|
-
export
|
|
10
|
+
/** Secondary text of the Copy/Move destination side panel; an unset field keeps the file manager package's English default. */
|
|
11
|
+
export interface FileManagerDestinationPanelTexts {
|
|
12
|
+
/** Label of the panel's Cancel button. */
|
|
13
|
+
cancelLabel?: string;
|
|
14
|
+
/** Accessible name of the panel's close button. */
|
|
15
|
+
closeAriaLabel?: string;
|
|
16
|
+
/** Placeholder and accessible name of the folder search. */
|
|
17
|
+
searchPlaceholder?: string;
|
|
18
|
+
/** Accessible name of the search clear button. */
|
|
19
|
+
clearSearchAriaLabel?: string;
|
|
20
|
+
/** Message shown when a folder search matches nothing; `{query}` is replaced. */
|
|
21
|
+
folderEmptyStateLabel?: string;
|
|
22
|
+
/** Label of the action that cancels folder creation. */
|
|
23
|
+
cancelCreatingFolderLabel?: string;
|
|
24
|
+
/** Label of the context-menu action that creates a sibling folder. */
|
|
25
|
+
addSiblingFolderLabel?: string;
|
|
26
|
+
/** Label of the context-menu action that creates a child folder. */
|
|
27
|
+
addChildFolderLabel?: string;
|
|
28
|
+
/** Inline error for an empty new folder name. */
|
|
29
|
+
createFolderEmptyNameError?: string;
|
|
30
|
+
/** Inline error for a new folder name with forbidden characters. */
|
|
31
|
+
createFolderInvalidNameError?: string;
|
|
32
|
+
/** Inline error for a new folder name that duplicates a sibling. */
|
|
33
|
+
createFolderDuplicateNameError?: string;
|
|
34
|
+
/** Inline error for a new folder named like its parent folder. */
|
|
35
|
+
createFolderSameAsParentNameError?: string;
|
|
36
|
+
/** Notice for a new folder name starting with a dot, which hides the folder. */
|
|
37
|
+
createFolderHiddenNameWarning?: string;
|
|
38
|
+
/** Label of the action that retries a failed folder listing. */
|
|
39
|
+
retryLabel?: string;
|
|
40
|
+
/** Error announced when creating a folder fails. */
|
|
41
|
+
createFolderFailedMessage?: string;
|
|
42
|
+
}
|
|
43
|
+
/** Text of the Copy/Move destination side panel. */
|
|
44
|
+
export interface FileManagerDestinationPanelLabels extends FileManagerDestinationPanelTexts {
|
|
45
|
+
/** Returns the Copy panel title for `count` items; `isFolder` is true for a single folder. */
|
|
46
|
+
getCopyTitle: (count: number, isFolder: boolean) => string;
|
|
47
|
+
/** Returns the Move panel title for `count` items; `isFolder` is true for a single folder. */
|
|
48
|
+
getMoveTitle: (count: number, isFolder: boolean) => string;
|
|
49
|
+
/** Heading above the folder list for Copy. */
|
|
50
|
+
copyHeading: string;
|
|
51
|
+
/** Heading above the folder list for Move. */
|
|
52
|
+
moveHeading: string;
|
|
53
|
+
/** Label of the panel's Copy button. */
|
|
54
|
+
copyButtonLabel: string;
|
|
55
|
+
/** Label of the panel's Move button. */
|
|
56
|
+
moveButtonLabel: string;
|
|
57
|
+
/** Label of the folder-creation button. */
|
|
58
|
+
addFolderLabel: string;
|
|
59
|
+
/** Reason shown when Move targets the folder the items are already in. */
|
|
60
|
+
sourceFolderTooltip: string;
|
|
61
|
+
/** Reason shown when Move targets a moved folder or one inside it. */
|
|
62
|
+
movedIntoItselfTooltip: string;
|
|
63
|
+
}
|
|
12
64
|
/** Title and description pair for an empty-state display. */
|
|
13
65
|
export interface EmptyStateCopy {
|
|
14
66
|
/** Primary empty-state heading. */
|
|
@@ -63,22 +115,24 @@ export interface DialFileManagerShellLabels {
|
|
|
63
115
|
duplicateLabel: string;
|
|
64
116
|
/** Label for the "Add folder" button in the destination picker. */
|
|
65
117
|
addFolderLabel: string;
|
|
66
|
-
/**
|
|
67
|
-
|
|
68
|
-
/** Returns the
|
|
69
|
-
|
|
70
|
-
/** Returns the
|
|
71
|
-
|
|
118
|
+
/** Secondary text of the Copy/Move destination panel (search, folder creation, retry); unset fields keep the file manager's English defaults. */
|
|
119
|
+
destinationPanelTexts?: FileManagerDestinationPanelTexts;
|
|
120
|
+
/** Returns the Copy destination panel title for `count` items; `isFolder` is true for a single folder. */
|
|
121
|
+
getCopyDestinationTitle: (count: number, isFolder: boolean) => string;
|
|
122
|
+
/** Returns the Move destination panel title for `count` items; `isFolder` is true for a single folder. */
|
|
123
|
+
getMoveDestinationTitle: (count: number, isFolder: boolean) => string;
|
|
124
|
+
/** Heading above the folder list in the Copy destination panel. */
|
|
125
|
+
copyDestinationHeading: string;
|
|
126
|
+
/** Heading above the folder list in the Move destination panel. */
|
|
127
|
+
moveDestinationHeading: string;
|
|
128
|
+
/** Label of the Copy button in the destination panel. */
|
|
129
|
+
copyDestinationButton: string;
|
|
130
|
+
/** Label of the Move button in the destination panel. */
|
|
131
|
+
moveDestinationButton: string;
|
|
72
132
|
/** Tooltip shown on the disabled source folder in the destination picker. */
|
|
73
133
|
moveSourceDisabledTooltip: string;
|
|
74
134
|
/** Tooltip shown when the move destination is a moved folder or lies inside one. */
|
|
75
135
|
movedIntoItselfTooltip: string;
|
|
76
|
-
/** Tooltip shown when a destination folder is still loading. */
|
|
77
|
-
folderPickerLoadingTooltip: string;
|
|
78
|
-
/** Empty-state title in the destination-folder picker. */
|
|
79
|
-
folderPickerEmptyStateTitle: string;
|
|
80
|
-
/** Empty-state description in the destination-folder picker. */
|
|
81
|
-
folderPickerEmptyStateDescription: string;
|
|
82
136
|
/** Overlay text shown during a copy operation. */
|
|
83
137
|
copyingLabel: string;
|
|
84
138
|
/** Overlay text shown during a move operation. */
|
|
@@ -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;AACvD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAE9D,KAAK,6BAA6B,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC;AAE5E,mFAAmF;AACnF,MAAM,MAAM,8BAA8B,GAAG,WAAW,CACtD,6BAA6B,CAAC,gCAAgC,CAAC,CAChE,CAAC;AAEF,8DAA8D;AAC9D,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAChD,6BAA6B,CAAC,0BAA0B,CAAC,CAC1D,CAAC;AAEF,
|
|
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,KAAK,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAE9D,KAAK,6BAA6B,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,CAAC;AAE5E,mFAAmF;AACnF,MAAM,MAAM,8BAA8B,GAAG,WAAW,CACtD,6BAA6B,CAAC,gCAAgC,CAAC,CAChE,CAAC;AAEF,8DAA8D;AAC9D,MAAM,MAAM,wBAAwB,GAAG,WAAW,CAChD,6BAA6B,CAAC,0BAA0B,CAAC,CAC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B,EAAE,MAAM,CAAC;IAC1B,0EAA0E;IAC1E,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iCAAiC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,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"}
|
package/index.css
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
._text_89yo1_1{color:var(--olm-text,var(--text-secondary,#57647a))}._surface_t5bi8_1{background:var(--dfms-surface,var(--bg-layer-base,#f5f7fa))}._tree_t5bi8_5{border-color:var(--dfms-tree-border,var(--stroke-tertiary,#e0e6f0));background:var(--dfms-tree-bg,var(--bg-layer-raised,#fcfcfc));box-shadow:4px 0 8px 0 var(--dfms-tree-shadow,#2764d91a);clip-path:inset(0 -12px 0 0)}[dir=rtl] ._tree_t5bi8_5{box-shadow:-4px 0 8px 0 var(--dfms-tree-shadow,#2764d91a);clip-path:inset(0 0 0 -12px)}._overlay_t5bi8_20{background:var(--dfms-overlay-backdrop,var(--bg-backdrop,#161b2d4d))}._popup_1d7g5_2{box-shadow:0 8px 32px 0 var(--fmam-shadow,#00000029);background:var(--fmam-bg,var(--bg-layer-raised,#fcfcfc))!important}._title_1d7g5_8{color:var(--fmam-title,var(--text-primary,#161b2d))}._agentIconBadge_147d2_1{background:var(--di-icon-bg,var(--bg-entity-icon,var(--bg-layer-sunken,#eef1f7)))}._label_1qwvo_1{color:var(--pes-label-color,var(--text-primary,#161b2d))}._description_1qwvo_5{color:var(--pes-description-color,var(--text-secondary,#57647a))}._icon_18yqy_1{color:var(--nva-icon,var(--text-accent,#1d4ed8))}._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}._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)}._typeLabel_17nhs_1{color:var(--cir-type-label-text,var(--text-secondary,#57647a))}._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))}._names_g31v4_1{color:var(--cfm-message-text,var(--text-primary,#161b2d))}._more_g31v4_5{color:var(--cfm-consequence-text,var(--text-secondary,#57647a))}._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)))}._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}._tableContainer_82t2b_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_82t2b_6{background:var(--cm-code-block-bg,var(--bg-layer-base,#f5f7fa))}._actions_82t2b_10{border-color:var(--cm-table-actions-border,var(--stroke-tertiary,#e0e6f0));background:var(--cm-table-actions-bg,var(--bg-layer-raised,#fcfcfc))}._copiedIcon_82t2b_15{color:var(--cm-code-block-copied,var(--text-success,#007274))}._scrollContainer_82t2b_19{scrollbar-width:thin;scrollbar-color:var(--cm-table-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_82t2b_19::-webkit-scrollbar{width:4px;height:4px}._scrollContainer_82t2b_19::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_82t2b_19::-webkit-scrollbar-thumb{background-color:var(--cm-table-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}._tableHeaderCell_82t2b_35{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_82t2b_42 td{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc))}._rowDivider_82t2b_46{border-block-end:.5px solid var(--cm-table-row-divider,var(--stroke-tertiary,#e0e6f0))}tbody ._row_82t2b_46:hover td{background:var(--cm-table-row-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924))}._tableScrollFadeEnd_82t2b_56{-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_82t2b_56{-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_82t2b_64{-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_82t2b_64{-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_82t2b_72{-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%)}@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}
|
|
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}}}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.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-x-0{inset-inline: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}.bottom-\[calc\(1\.5rem\+env\(safe-area-inset-bottom\)\)\]{bottom:calc(1.5rem + env(safe-area-inset-bottom))}.z-1{z-index:1}.z-2{z-index:2}.z-10{z-index:10}.z-51{z-index:51}.z-52{z-index:52}.z-70{z-index:70}.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-1{margin-top:.25rem}.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-\[30vh\]{max-height:30vh}.max-h-\[50vh\]{max-height:50vh}.max-h-\[60vh\]{max-height:60vh}.max-h-\[344px\]{max-height:344px}.max-h-\[calc\(100dvh-3rem\)\]{max-height:calc(100dvh - 3rem)}.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-\[1330px\]\!{max-width:1330px!important}.max-w-\[1600px\]\!{max-width:1600px!important}.max-w-\[min\(600px\,100\%\)\]{max-width:min(600px,100%)}.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-auto{overflow:auto}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.rounded{border-radius:4px}.rounded-2xl{border-radius:1rem}.rounded-\[14px\]{border-radius:14px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.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-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.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}.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}.wrap-anywhere{overflow-wrap:anywhere}.wrap-break-word{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}.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-none{--tw-shadow:0 0 #0000;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 0 8px 1px var(--tw-shadow-color,var(--shadow-xs-1,#2764d933));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{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.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-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\:inset-s-auto{inset-inline-start:auto}.desktop\:me-6{margin-inline-end:1.5rem}.desktop\:w-\[min\(600px\,calc\(100vw-3rem\)\)\]{width:min(600px,100vw - 3rem)}.desktop\:w-auto{width:auto}.desktop\:items-end{align-items:flex-end}.desktop\:p-4{padding:1rem}.desktop\:px-0{padding-inline:0}.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}}}.pointer-events-auto{pointer-events:auto}.pointer-events-none{pointer-events:none}.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-x-0{inset-inline: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}.bottom-\[calc\(1\.5rem\+env\(safe-area-inset-bottom\)\)\]{bottom:calc(1.5rem + env(safe-area-inset-bottom))}.z-1{z-index:1}.z-2{z-index:2}.z-10{z-index:10}.z-51{z-index:51}.z-52{z-index:52}.z-70{z-index:70}.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-1{margin-top:.25rem}.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}.contents{display:contents}.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-60{max-height:15rem}.max-h-\[30vh\]{max-height:30vh}.max-h-\[50vh\]{max-height:50vh}.max-h-\[60vh\]{max-height:60vh}.max-h-\[344px\]{max-height:344px}.max-h-\[calc\(100dvh-3rem\)\]{max-height:calc(100dvh - 3rem)}.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-\[1330px\]\!{max-width:1330px!important}.max-w-\[1600px\]\!{max-width:1600px!important}.max-w-\[min\(600px\,100\%\)\]{max-width:min(600px,100%)}.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-auto{overflow:auto}.overflow-clip{overflow:clip}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.rounded{border-radius:4px}.rounded-2xl{border-radius:1rem}.rounded-\[14px\]{border-radius:14px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-none{border-radius:0}.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-e{border-inline-end-style:var(--tw-border-style);border-inline-end-width:1px}.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}.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}.wrap-anywhere{overflow-wrap:anywhere}.wrap-break-word{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}.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-none{--tw-shadow:0 0 #0000;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 0 8px 1px var(--tw-shadow-color,var(--shadow-xs-1,#2764d933));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{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,cubic-bezier(.4, 0, .2, 1));transition-duration:var(--tw-duration,.15s)}.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-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\:inset-s-auto{inset-inline-start:auto}.desktop\:me-6{margin-inline-end:1.5rem}.desktop\:w-\[min\(600px\,calc\(100vw-3rem\)\)\]{width:min(600px,100vw - 3rem)}.desktop\:w-auto{width:auto}.desktop\:items-end{align-items:flex-end}.desktop\:p-4{padding:1rem}.desktop\:px-0{padding-inline:0}.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/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.4.0-dev.
|
|
4
|
+
"version": "1.4.0-dev.159",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^19.2.8",
|
|
35
35
|
"react-dom": "^19.2.8",
|
|
36
|
-
"@epam/ai-dial-ui-kit": "^0.
|
|
37
|
-
"@epam/ai-dial-react-file-manager": "^0.
|
|
36
|
+
"@epam/ai-dial-ui-kit": "^0.17.0-dev.1",
|
|
37
|
+
"@epam/ai-dial-react-file-manager": "^0.5.0-dev.5"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"ag-grid-community": "^35.3.0",
|