@epam/ai-dial-chat-shared 1.3.0-dev.253 → 1.3.0-dev.259

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