@epam/ai-dial-chat-shared 1.2.0-rc.1 → 1.2.0-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/ConfirmationView/ConfirmationFooter.js +3 -1
- package/components/ConfirmationView/ConfirmationView.js +15 -14
- package/components/DeleteConfirmationDialog/DeleteConfirmationDialog.js +34 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.js +37 -0
- package/components/DeleteConfirmationView/DeleteConfirmationView.module.scss.js +6 -0
- package/file-manager/DialFileManagerShell/DialFileManagerShell.js +128 -120
- package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +2 -1
- package/index.css +2 -2
- package/index.d.ts +95 -0
- package/index.js +27 -25
- package/package.json +3 -3
|
@@ -16,15 +16,17 @@ var p = ({ confirmLabel: p, cancelLabel: m, variant: h = r.Info, isLoading: g =
|
|
|
16
16
|
})(), T = S ? o : c;
|
|
17
17
|
return /* @__PURE__ */ d("div", {
|
|
18
18
|
style: C,
|
|
19
|
-
className: e("flex items-center justify-end gap-2 px-
|
|
19
|
+
className: e("flex items-center justify-end gap-2 px-4 py-4 desktop:px-6 rtl:flex-row-reverse rtl:justify-start", n.footer),
|
|
20
20
|
children: [
|
|
21
21
|
/* @__PURE__ */ u(s, {
|
|
22
22
|
label: m,
|
|
23
|
+
className: "mobile:flex-1",
|
|
23
24
|
disabled: g,
|
|
24
25
|
onClick: x
|
|
25
26
|
}),
|
|
26
27
|
/* @__PURE__ */ u(T, {
|
|
27
28
|
label: p,
|
|
29
|
+
className: "mobile:flex-1",
|
|
28
30
|
disabled: g || _,
|
|
29
31
|
iconBefore: w,
|
|
30
32
|
onClick: b
|
|
@@ -5,33 +5,34 @@ import r from "./ConfirmationView.module.scss.js";
|
|
|
5
5
|
import { ConfirmationPopupVariant as i } from "@epam/ai-dial-ui-kit";
|
|
6
6
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
7
7
|
//#region src/components/ConfirmationView/ConfirmationView.tsx
|
|
8
|
-
var s = ({ item: s, identity: c, message: l,
|
|
9
|
-
let
|
|
8
|
+
var s = ({ item: s, identity: c, message: l, details: u, consequences: d, variant: f = i.Info, messageClassName: p = "dial-small-text", styles: m, children: h }) => {
|
|
9
|
+
let g = m?.colors;
|
|
10
10
|
return /* @__PURE__ */ o("div", {
|
|
11
11
|
style: t({
|
|
12
|
-
"--cfm-message-text":
|
|
13
|
-
"--cfm-consequence-text":
|
|
12
|
+
"--cfm-message-text": g?.messageText,
|
|
13
|
+
"--cfm-consequence-text": g?.consequenceText
|
|
14
14
|
}),
|
|
15
|
-
className: "flex flex-col gap-4 px-
|
|
15
|
+
className: "flex flex-col gap-4 px-4 py-4 desktop:px-6",
|
|
16
16
|
children: [
|
|
17
17
|
c ?? (s != null && /* @__PURE__ */ a(n, {
|
|
18
18
|
item: s,
|
|
19
|
-
variant:
|
|
19
|
+
variant: f,
|
|
20
20
|
styles: { colors: {
|
|
21
|
-
background:
|
|
22
|
-
dangerBackground:
|
|
23
|
-
dangerBorder:
|
|
21
|
+
background: g?.cardBackground,
|
|
22
|
+
dangerBackground: g?.cardDangerBackground,
|
|
23
|
+
dangerBorder: g?.cardDangerBorder
|
|
24
24
|
} }
|
|
25
25
|
})),
|
|
26
26
|
/* @__PURE__ */ a("p", {
|
|
27
|
-
className: e(
|
|
27
|
+
className: e(p, "break-words", r.message),
|
|
28
28
|
children: l
|
|
29
29
|
}),
|
|
30
|
-
u
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
u,
|
|
31
|
+
d != null && d.length > 0 && /* @__PURE__ */ a("ul", {
|
|
32
|
+
className: e("flex list-disc flex-col gap-2 ps-5", p, r.consequences),
|
|
33
|
+
children: d.map((e) => /* @__PURE__ */ a("li", { children: e }, e))
|
|
33
34
|
}),
|
|
34
|
-
|
|
35
|
+
h
|
|
35
36
|
]
|
|
36
37
|
});
|
|
37
38
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ConfirmationFooter as e } from "../ConfirmationView/ConfirmationFooter.js";
|
|
2
|
+
import { DeleteConfirmationView as t } from "../DeleteConfirmationView/DeleteConfirmationView.js";
|
|
3
|
+
import { ConfirmationPopupVariant as n, Popup as r, PopupSize as i } from "@epam/ai-dial-ui-kit";
|
|
4
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/DeleteConfirmationDialog/DeleteConfirmationDialog.tsx
|
|
6
|
+
var o = ({ open: o, title: s, isLoading: c = !1, size: l = i.Sm, labels: u, styles: d, onConfirm: f, onClose: p, ...m }) => {
|
|
7
|
+
let { confirm: h = "Delete", cancel: g = "Cancel", deleting: _ = "Deleting…", ...v } = u ?? {}, { popupClassName: y, titleClassName: b, ...x } = d ?? {}, S = () => {
|
|
8
|
+
c || p();
|
|
9
|
+
};
|
|
10
|
+
return /* @__PURE__ */ a(r, {
|
|
11
|
+
open: o,
|
|
12
|
+
header: s,
|
|
13
|
+
size: l,
|
|
14
|
+
className: y,
|
|
15
|
+
titleClassName: b,
|
|
16
|
+
onClose: S,
|
|
17
|
+
footer: /* @__PURE__ */ a(e, {
|
|
18
|
+
variant: n.Danger,
|
|
19
|
+
confirmLabel: h,
|
|
20
|
+
cancelLabel: g,
|
|
21
|
+
isLoading: c,
|
|
22
|
+
loadingStatusLabel: _,
|
|
23
|
+
onConfirm: f,
|
|
24
|
+
onCancel: S
|
|
25
|
+
}),
|
|
26
|
+
children: /* @__PURE__ */ a(t, {
|
|
27
|
+
...m,
|
|
28
|
+
labels: v,
|
|
29
|
+
styles: x
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { o as DeleteConfirmationDialog };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { mergeClasses as e } from "../../utils/merge-class.js";
|
|
2
|
+
import { ResourceSummary as t } from "../ResourceSummary/ResourceSummary.js";
|
|
3
|
+
import { ConfirmationIdentityRow as n } from "../ConfirmationIdentityRow/ConfirmationIdentityRow.js";
|
|
4
|
+
import { ConfirmationView as r } from "../ConfirmationView/ConfirmationView.js";
|
|
5
|
+
import i from "./DeleteConfirmationView.module.scss.js";
|
|
6
|
+
import { ConfirmationPopupVariant as a } from "@epam/ai-dial-ui-kit";
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
//#region src/components/DeleteConfirmationView/DeleteConfirmationView.tsx
|
|
9
|
+
var c = 10, l = (e) => e === 1 ? "1 item" : `${e} items`, u = (e) => `… and ${e} more`, d = ({ names: c, icon: d, typeLabel: f, message: p, consequences: m = [], maxListedNames: h = 10, labels: g, styles: _, children: v }) => {
|
|
10
|
+
let { cannotBeUndone: y = "Cannot be undone", itemCount: b = l, moreItems: x = u } = g ?? {}, { typeLabelText: S, ...C } = _?.colors ?? {}, w = _?.messageClassName ?? "dial-small-text", T = c.length === 1, E = T ? [] : c.slice(0, h), D = c.length - (T ? 1 : E.length);
|
|
11
|
+
return /* @__PURE__ */ o(r, {
|
|
12
|
+
variant: a.Danger,
|
|
13
|
+
messageClassName: w,
|
|
14
|
+
styles: { colors: C },
|
|
15
|
+
identity: /* @__PURE__ */ o(t, { children: /* @__PURE__ */ o(n, {
|
|
16
|
+
icon: T ? d : void 0,
|
|
17
|
+
typeLabel: T ? f : void 0,
|
|
18
|
+
name: T ? c[0] : b(c.length),
|
|
19
|
+
styles: { colors: { typeLabelText: S } }
|
|
20
|
+
}) }),
|
|
21
|
+
message: p,
|
|
22
|
+
details: E.length > 0 && /* @__PURE__ */ s("ul", {
|
|
23
|
+
className: e("flex flex-col gap-1", w, i.names),
|
|
24
|
+
children: [E.map((e, t) => /* @__PURE__ */ o("li", {
|
|
25
|
+
className: "truncate",
|
|
26
|
+
children: e
|
|
27
|
+
}, `${t}-${e}`)), D > 0 && /* @__PURE__ */ o("li", {
|
|
28
|
+
className: i.more,
|
|
29
|
+
children: x(D)
|
|
30
|
+
})]
|
|
31
|
+
}),
|
|
32
|
+
consequences: [...m, y],
|
|
33
|
+
children: v
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
//#endregion
|
|
37
|
+
export { c as DELETE_CONFIRMATION_MAX_LISTED_NAMES, d as DeleteConfirmationView };
|
|
@@ -4,27 +4,27 @@ import { getParentFolderPath as ee } from "../path.js";
|
|
|
4
4
|
import { useGridEditingScroll as te } from "../useGridEditingScroll/useGridEditingScroll.js";
|
|
5
5
|
import { OperationLoaderModal as ne } from "../OperationLoaderModal/OperationLoaderModal.js";
|
|
6
6
|
import { toUploadQueueItems as re } from "../upload-queue.js";
|
|
7
|
-
import { NOT_ALLOWED_SYMBOLS_REGEXP as ie, PrimaryButton as ae, Spinner as oe, TransferQueue as se } from "@epam/ai-dial-ui-kit";
|
|
8
|
-
import { memo as
|
|
9
|
-
import { Fragment as de, jsx as
|
|
10
|
-
import { DialFileManager as fe, DialFileManagerActions as
|
|
7
|
+
import { ButtonVariant as r, NOT_ALLOWED_SYMBOLS_REGEXP as ie, PrimaryButton as ae, Spinner as oe, TransferQueue as se } from "@epam/ai-dial-ui-kit";
|
|
8
|
+
import { memo as i, useCallback as ce, useEffect as le, useMemo as a, useState as ue } from "react";
|
|
9
|
+
import { Fragment as de, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
10
|
+
import { DialFileManager as fe, DialFileManagerActions as c, DialFileManagerTabs as pe, GridSelectionMode as me } from "@epam/ai-dial-react-file-manager";
|
|
11
11
|
//#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
|
|
12
|
-
var
|
|
12
|
+
var he = (e, t) => {
|
|
13
13
|
if (e.isDownloading) return t.downloadingLabel;
|
|
14
14
|
if (e.isDeleting) return t.deletingLabel;
|
|
15
15
|
if (e.isRenaming && !e.isMoving) return t.renamingLabel;
|
|
16
16
|
if (e.isUnsharing) return t.unsharingLabel;
|
|
17
17
|
if (e.isRemovingAccess) return t.removingAccessLabel;
|
|
18
|
-
}, l = ({ controller:
|
|
19
|
-
let { items:
|
|
18
|
+
}, l = ({ controller: i, labels: l, activeTab: u, tabs: d, onTabChange: f, selectedPaths: p, onSelectedPathsChange: ge, variant: m, actionProfile: _e, autoSelectUploadedItems: ve = !1, allowedFileTypes: ye, maxSelectableFileSize: h, oversizedUploadMessage: g, isRowSelectable: _, getDisabledTooltip: be, unsupportedFileTypeTooltip: xe }) => {
|
|
19
|
+
let { items: Se, isLoading: Ce, error: we, path: v, onPathChange: Te, retry: Ee, onSearchFiles: De, isSearching: Oe, searchResults: ke, clearSearchResults: Ae, expandedPaths: y, loadedPaths: b, onExpandedPathsChange: x, onFolderPopupPathChange: je, folderPopupLoadingPaths: S, onUploadFiles: Me, onUploadArchive: Ne, onValidateUpload: Pe, uploadBatchState: C, cancelUpload: w, cancelUploadFile: T, clearUploadBatch: E, onCreateFolder: Fe, onCreateFolderValidate: Ie, onDownloadFiles: Le, isDownloading: Re, onDeleteFiles: ze, isDeleting: Be, onMoveToFiles: Ve, onRenameValidate: He, isRenaming: Ue, onCopyFiles: We, isCopying: Ge, isMoving: D, cancelCopyMove: Ke, uploadEnabled: O, isNewButtonDisabled: k, disabledNewButtonTooltip: A, visibleColumns: j, dateLocale: M, dateOptions: N, actionLabels: P, sharedWithMeIds: qe, sharedByMePaths: F, onUnshareFiles: Je, isUnsharing: Ye, onRemoveFilesAccess: Xe, isRemovingAccess: Ze, fileMetadata: I, isFileMetadataLoading: L, onGetInfo: Qe, clearMetadata: R, sectionTab: $e } = i, z = $e ?? u, [B, et] = ue(void 0), { handleGridApiChange: tt, reset: V } = te();
|
|
20
20
|
le(() => {
|
|
21
|
-
|
|
22
|
-
}, [
|
|
23
|
-
let
|
|
21
|
+
V();
|
|
22
|
+
}, [z, V]);
|
|
23
|
+
let H = a(() => {
|
|
24
24
|
let e = {};
|
|
25
|
-
return
|
|
25
|
+
return c.Download in P && (e[c.Download] = l.downloadLabel), c.Delete in P && (e[c.Delete] = l.deleteLabel), c.Rename in P && (e[c.Rename] = l.renameLabel), c.Copy in P && (e[c.Copy] = l.copyLabel), c.Move in P && (e[c.Move] = l.moveLabel), c.Duplicate in P && (e[c.Duplicate] = l.duplicateLabel), c.Unshare in P && (e[c.Unshare] = l.unshareLabel), c.RemoveAccess in P && (e[c.RemoveAccess] = l.removeAccessLabel), e;
|
|
26
26
|
}, [
|
|
27
|
-
|
|
27
|
+
P,
|
|
28
28
|
l.downloadLabel,
|
|
29
29
|
l.deleteLabel,
|
|
30
30
|
l.renameLabel,
|
|
@@ -33,26 +33,27 @@ var me = (e, t) => {
|
|
|
33
33
|
l.duplicateLabel,
|
|
34
34
|
l.unshareLabel,
|
|
35
35
|
l.removeAccessLabel
|
|
36
|
-
]),
|
|
37
|
-
...
|
|
38
|
-
[
|
|
39
|
-
} :
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
]), U = a(() => c.Info in P ? {
|
|
37
|
+
...H,
|
|
38
|
+
[c.Info]: l.infoLabel
|
|
39
|
+
} : H, [
|
|
40
|
+
H,
|
|
41
|
+
P,
|
|
42
42
|
l.infoLabel
|
|
43
|
-
]),
|
|
43
|
+
]), W = a(() => {
|
|
44
44
|
if (p.size === 0) return !1;
|
|
45
|
-
for (let e of p) if (!
|
|
45
|
+
for (let e of p) if (!F.has(e)) return !1;
|
|
46
46
|
return !0;
|
|
47
|
-
}, [p,
|
|
48
|
-
if (
|
|
49
|
-
let { [
|
|
47
|
+
}, [p, F]), G = a(() => {
|
|
48
|
+
if (W) return H;
|
|
49
|
+
let { [c.RemoveAccess]: e, ...t } = H;
|
|
50
50
|
return t;
|
|
51
|
-
}, [
|
|
52
|
-
selectionMode:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
}, [H, W]), K = m === n.Attach, nt = a(() => ({
|
|
52
|
+
selectionMode: me.MULTIPLE,
|
|
53
|
+
...K ? { filterable: !1 } : {},
|
|
54
|
+
visibleColumns: j,
|
|
55
|
+
dateLocale: M,
|
|
56
|
+
dateOptions: N,
|
|
56
57
|
additionalGridOptions: {
|
|
57
58
|
domLayout: "normal",
|
|
58
59
|
rowSelection: {
|
|
@@ -60,14 +61,15 @@ var me = (e, t) => {
|
|
|
60
61
|
isRowSelectable: _ ?? (() => !0)
|
|
61
62
|
}
|
|
62
63
|
},
|
|
63
|
-
actionLabels:
|
|
64
|
+
actionLabels: U
|
|
64
65
|
}), [
|
|
66
|
+
K,
|
|
67
|
+
j,
|
|
65
68
|
M,
|
|
66
69
|
N,
|
|
67
|
-
|
|
68
|
-
W,
|
|
70
|
+
U,
|
|
69
71
|
_
|
|
70
|
-
]),
|
|
72
|
+
]), rt = a(() => ({
|
|
71
73
|
header: m === n.Attach ? null : l.treeHeaderByTab[u],
|
|
72
74
|
containerClassName: m === n.Attach ? "min-h-0 h-full w-[360px] shrink-0 rounded-xl bg-layer-raised shadow-sm" : void 0,
|
|
73
75
|
tabsAriaLabel: l.treeHeaderByTab[u],
|
|
@@ -78,7 +80,7 @@ var me = (e, t) => {
|
|
|
78
80
|
loadedPaths: b,
|
|
79
81
|
loadingPaths: S,
|
|
80
82
|
onExpandedPathsChange: x,
|
|
81
|
-
actionLabels:
|
|
83
|
+
actionLabels: H
|
|
82
84
|
}), [
|
|
83
85
|
l.treeHeaderByTab,
|
|
84
86
|
m,
|
|
@@ -89,14 +91,15 @@ var me = (e, t) => {
|
|
|
89
91
|
b,
|
|
90
92
|
S,
|
|
91
93
|
x,
|
|
92
|
-
|
|
93
|
-
]), q = m === n.Standalone &&
|
|
94
|
+
H
|
|
95
|
+
]), q = m === n.Standalone && _e === t.Full && z === pe.MyFiles && O, it = a(() => ({
|
|
94
96
|
showHiddenFilesToggle: !0,
|
|
97
|
+
...K ? { newButtonVariant: r.Neutral } : {},
|
|
95
98
|
hiddenFilesSwitcherLabel: l.hiddenFilesLabel,
|
|
96
99
|
showHiddenFilesLabel: l.showHiddenFilesLabel,
|
|
97
100
|
hideHiddenFilesLabel: l.hideHiddenFilesLabel,
|
|
98
|
-
isNewButtonDisabled:
|
|
99
|
-
disabledNewButtonTooltip:
|
|
101
|
+
isNewButtonDisabled: k,
|
|
102
|
+
disabledNewButtonTooltip: A,
|
|
100
103
|
newActions: {
|
|
101
104
|
uploadFiles: {
|
|
102
105
|
label: l.uploadFilesLabel,
|
|
@@ -112,19 +115,24 @@ var me = (e, t) => {
|
|
|
112
115
|
} } : {}
|
|
113
116
|
}
|
|
114
117
|
}), [
|
|
118
|
+
K,
|
|
115
119
|
l.hiddenFilesLabel,
|
|
116
120
|
l.showHiddenFilesLabel,
|
|
117
121
|
l.hideHiddenFilesLabel,
|
|
122
|
+
k,
|
|
118
123
|
A,
|
|
119
|
-
j,
|
|
120
124
|
l.uploadFilesLabel,
|
|
121
125
|
l.newFolderLabel,
|
|
122
126
|
q,
|
|
123
127
|
l.uploadArchiveAction
|
|
124
|
-
]),
|
|
128
|
+
]), at = a(() => K ? void 0 : {
|
|
125
129
|
getSelectionLabel: l.getSelectionLabel,
|
|
126
|
-
actionLabels:
|
|
127
|
-
}
|
|
130
|
+
actionLabels: G
|
|
131
|
+
}, [
|
|
132
|
+
K,
|
|
133
|
+
l.getSelectionLabel,
|
|
134
|
+
G
|
|
135
|
+
]), ot = a(() => ({
|
|
128
136
|
cancelLabel: l.deleteCancelLabel,
|
|
129
137
|
confirmLabel: l.deleteConfirmLabel,
|
|
130
138
|
closeLabel: l.deleteCloseLabel,
|
|
@@ -136,7 +144,7 @@ var me = (e, t) => {
|
|
|
136
144
|
l.deleteCloseLabel,
|
|
137
145
|
l.deleteConfirmTitle,
|
|
138
146
|
l.deleteConfirmBody
|
|
139
|
-
]),
|
|
147
|
+
]), st = a(() => {
|
|
140
148
|
let e;
|
|
141
149
|
for (let t of p) {
|
|
142
150
|
let n = ee(t);
|
|
@@ -144,7 +152,7 @@ var me = (e, t) => {
|
|
|
144
152
|
else if (e !== n) return;
|
|
145
153
|
}
|
|
146
154
|
return e;
|
|
147
|
-
}, [p]), J =
|
|
155
|
+
}, [p]), J = B != null && S.has(B), Y = J ? B : st, ct = a(() => ({
|
|
148
156
|
copyLabel: l.copyLabel,
|
|
149
157
|
moveLabel: l.moveLabel,
|
|
150
158
|
addFolderLabel: l.addFolderLabel,
|
|
@@ -155,8 +163,8 @@ var me = (e, t) => {
|
|
|
155
163
|
emptyStateTitle: l.folderPickerEmptyStateTitle,
|
|
156
164
|
emptyStateDescription: l.folderPickerEmptyStateDescription,
|
|
157
165
|
sourceFolder: Y,
|
|
158
|
-
destinationFolderPath:
|
|
159
|
-
setDestinationFolderPath:
|
|
166
|
+
destinationFolderPath: B,
|
|
167
|
+
setDestinationFolderPath: et,
|
|
160
168
|
filesLoading: J
|
|
161
169
|
}), [
|
|
162
170
|
l.copyLabel,
|
|
@@ -171,13 +179,13 @@ var me = (e, t) => {
|
|
|
171
179
|
l.folderPickerEmptyStateDescription,
|
|
172
180
|
J,
|
|
173
181
|
Y,
|
|
174
|
-
|
|
175
|
-
]),
|
|
176
|
-
|
|
177
|
-
}, [
|
|
178
|
-
fileMetadata:
|
|
179
|
-
loading:
|
|
180
|
-
clearMetadata:
|
|
182
|
+
B
|
|
183
|
+
]), lt = ce(() => {
|
|
184
|
+
w(), E();
|
|
185
|
+
}, [w, E]), X = a(() => re(C?.files ?? []), [C]), ut = a(() => ({
|
|
186
|
+
fileMetadata: I,
|
|
187
|
+
loading: L,
|
|
188
|
+
clearMetadata: R,
|
|
181
189
|
header: l.metadataHeader,
|
|
182
190
|
nameLabel: l.metadataNameLabel,
|
|
183
191
|
pathLabel: l.metadataPathLabel,
|
|
@@ -185,128 +193,128 @@ var me = (e, t) => {
|
|
|
185
193
|
sizeLabel: l.metadataSizeLabel,
|
|
186
194
|
authorLabel: l.metadataAuthorLabel
|
|
187
195
|
}), [
|
|
196
|
+
I,
|
|
188
197
|
L,
|
|
189
198
|
R,
|
|
190
|
-
z,
|
|
191
199
|
l.metadataHeader,
|
|
192
200
|
l.metadataNameLabel,
|
|
193
201
|
l.metadataPathLabel,
|
|
194
202
|
l.metadataModifiedDateLabel,
|
|
195
203
|
l.metadataSizeLabel,
|
|
196
204
|
l.metadataAuthorLabel
|
|
197
|
-
]), Z =
|
|
198
|
-
isDownloading:
|
|
199
|
-
isDeleting:
|
|
200
|
-
isRenaming:
|
|
201
|
-
isMoving:
|
|
202
|
-
isUnsharing:
|
|
203
|
-
isRemovingAccess:
|
|
204
|
-
}, l), Q =
|
|
205
|
+
]), Z = he({
|
|
206
|
+
isDownloading: Re,
|
|
207
|
+
isDeleting: Be,
|
|
208
|
+
isRenaming: Ue,
|
|
209
|
+
isMoving: D,
|
|
210
|
+
isUnsharing: Ye,
|
|
211
|
+
isRemovingAccess: Ze
|
|
212
|
+
}, l), Q = "bg-layer-base", $ = a(() => v.split("/").filter(Boolean).length > 1 ? {
|
|
205
213
|
title: l.folderEmptyStateTitle,
|
|
206
214
|
description: ""
|
|
207
|
-
} : l.emptyStateByTab[
|
|
215
|
+
} : l.emptyStateByTab[z], [
|
|
208
216
|
v,
|
|
209
217
|
l.folderEmptyStateTitle,
|
|
210
218
|
l.emptyStateByTab,
|
|
211
|
-
|
|
219
|
+
z
|
|
212
220
|
]);
|
|
213
|
-
return /* @__PURE__ */
|
|
214
|
-
|
|
221
|
+
return /* @__PURE__ */ s(de, { children: [
|
|
222
|
+
we == null ? /* @__PURE__ */ s("div", {
|
|
215
223
|
className: e("relative flex min-h-0 w-full grow overflow-auto", Q),
|
|
216
|
-
children: [/* @__PURE__ */
|
|
217
|
-
className: e("min-h-0 w-full grow", Q),
|
|
224
|
+
children: [/* @__PURE__ */ o(fe, {
|
|
225
|
+
className: e("min-h-0 w-full grow", Q, K && "p-0"),
|
|
218
226
|
contentClassName: m === n.Attach ? "px-0 pb-0" : void 0,
|
|
219
227
|
gridClassName: m === n.Attach ? "size-full gap-6 px-6 py-4" : "size-full",
|
|
220
|
-
items:
|
|
228
|
+
items: Se,
|
|
221
229
|
path: v,
|
|
222
|
-
onPathChange:
|
|
223
|
-
onGridApiChange:
|
|
224
|
-
filesLoading:
|
|
225
|
-
allowedFileTypes:
|
|
230
|
+
onPathChange: Te,
|
|
231
|
+
onGridApiChange: tt,
|
|
232
|
+
filesLoading: Ce,
|
|
233
|
+
allowedFileTypes: ye,
|
|
226
234
|
maxSelectableFileSize: h,
|
|
227
235
|
maxFileSize: h,
|
|
228
236
|
uploadValidationMessages: g == null ? void 0 : { oversizedFiles: g },
|
|
229
237
|
selectedPaths: p,
|
|
230
|
-
onSelectedPathsChange:
|
|
238
|
+
onSelectedPathsChange: ge,
|
|
231
239
|
navigationPanelOptions: {
|
|
232
240
|
searchable: !0,
|
|
233
|
-
placeholder: l.searchPlaceholderByTab?.[
|
|
241
|
+
placeholder: l.searchPlaceholderByTab?.[z]
|
|
234
242
|
},
|
|
235
243
|
hideSearchPathItemName: !0,
|
|
236
|
-
onSearchFiles:
|
|
237
|
-
searchInProgress:
|
|
238
|
-
searchResults:
|
|
239
|
-
clearSearchResults:
|
|
240
|
-
gridOptions:
|
|
241
|
-
treeOptions:
|
|
242
|
-
onFolderPopupPathChange:
|
|
243
|
-
toolbarOptions:
|
|
244
|
-
bulkActionsToolbarOptions:
|
|
245
|
-
autoSelectUploadedItems:
|
|
244
|
+
onSearchFiles: De,
|
|
245
|
+
searchInProgress: Oe,
|
|
246
|
+
searchResults: ke ?? [],
|
|
247
|
+
clearSearchResults: Ae,
|
|
248
|
+
gridOptions: nt,
|
|
249
|
+
treeOptions: rt,
|
|
250
|
+
onFolderPopupPathChange: je,
|
|
251
|
+
toolbarOptions: it,
|
|
252
|
+
bulkActionsToolbarOptions: at,
|
|
253
|
+
autoSelectUploadedItems: ve,
|
|
246
254
|
emptyStateTitle: $.title,
|
|
247
255
|
emptyStateDescription: $.description,
|
|
248
256
|
searchEmptyStateTitle: l.searchEmptyStateTitle,
|
|
249
|
-
uploadEnabled:
|
|
250
|
-
sharedWithMeIds:
|
|
251
|
-
sharedByMePaths:
|
|
252
|
-
onUnshareFiles:
|
|
253
|
-
onRemoveFilesAccess:
|
|
254
|
-
fileMetadataPopupOptions:
|
|
255
|
-
onGetInfo:
|
|
256
|
-
onUploadFiles:
|
|
257
|
-
onUploadArchive:
|
|
258
|
-
onValidateUpload:
|
|
259
|
-
onCreateFolder:
|
|
260
|
-
onCreateFolderValidate:
|
|
261
|
-
onDownloadFiles:
|
|
262
|
-
onDeleteFiles:
|
|
263
|
-
onMoveToFiles:
|
|
264
|
-
onCopyFiles:
|
|
265
|
-
onRenameValidate:
|
|
257
|
+
uploadEnabled: O,
|
|
258
|
+
sharedWithMeIds: qe,
|
|
259
|
+
sharedByMePaths: F,
|
|
260
|
+
onUnshareFiles: Je,
|
|
261
|
+
onRemoveFilesAccess: Xe,
|
|
262
|
+
fileMetadataPopupOptions: ut,
|
|
263
|
+
onGetInfo: Qe,
|
|
264
|
+
onUploadFiles: Me,
|
|
265
|
+
onUploadArchive: Ne,
|
|
266
|
+
onValidateUpload: Pe,
|
|
267
|
+
onCreateFolder: Fe,
|
|
268
|
+
onCreateFolderValidate: Ie,
|
|
269
|
+
onDownloadFiles: Le,
|
|
270
|
+
onDeleteFiles: ze,
|
|
271
|
+
onMoveToFiles: Ve,
|
|
272
|
+
onCopyFiles: We,
|
|
273
|
+
onRenameValidate: He,
|
|
266
274
|
renameValidationMessages: l.renameValidationMessages,
|
|
267
|
-
isRenameFileAvailable:
|
|
268
|
-
deleteConfirmationOptions:
|
|
275
|
+
isRenameFileAvailable: O,
|
|
276
|
+
deleteConfirmationOptions: ot,
|
|
269
277
|
conflictResolutionPopupOptions: l.conflictResolutionPopupOptions,
|
|
270
|
-
destinationFolderPopupOptions:
|
|
278
|
+
destinationFolderPopupOptions: ct,
|
|
271
279
|
forbiddenSymbolsRegExp: ie,
|
|
272
280
|
forbiddenSymbolsTooltip: l.forbiddenSymbolsTooltip,
|
|
273
|
-
getDisabledTooltip:
|
|
274
|
-
unsupportedFileTypeTooltip:
|
|
275
|
-
}), Z != null && /* @__PURE__ */
|
|
281
|
+
getDisabledTooltip: be,
|
|
282
|
+
unsupportedFileTypeTooltip: xe
|
|
283
|
+
}), Z != null && /* @__PURE__ */ o("div", {
|
|
276
284
|
"aria-live": "polite",
|
|
277
285
|
className: "absolute inset-0 z-[52] flex items-center justify-center bg-backdrop desktop:p-4",
|
|
278
|
-
children: /* @__PURE__ */
|
|
286
|
+
children: /* @__PURE__ */ o(oe, {
|
|
279
287
|
size: 32,
|
|
280
288
|
fullWidth: !1,
|
|
281
289
|
ariaLabel: Z
|
|
282
290
|
})
|
|
283
291
|
})]
|
|
284
|
-
}) : /* @__PURE__ */
|
|
292
|
+
}) : /* @__PURE__ */ s("div", {
|
|
285
293
|
role: "alert",
|
|
286
294
|
className: "flex flex-col items-center gap-4 p-6",
|
|
287
|
-
children: [/* @__PURE__ */
|
|
295
|
+
children: [/* @__PURE__ */ o("p", { children: l.errorMessage }), /* @__PURE__ */ o(ae, {
|
|
288
296
|
label: l.retryLabel,
|
|
289
|
-
onClick:
|
|
297
|
+
onClick: Ee
|
|
290
298
|
})]
|
|
291
299
|
}),
|
|
292
|
-
/* @__PURE__ */
|
|
300
|
+
/* @__PURE__ */ o("div", {
|
|
293
301
|
className: "fixed bottom-4 end-4 z-[70]",
|
|
294
|
-
children: /* @__PURE__ */
|
|
302
|
+
children: /* @__PURE__ */ o(se, {
|
|
295
303
|
title: l.getUploadQueueTitle(X.length),
|
|
296
304
|
items: X,
|
|
297
|
-
onClose:
|
|
298
|
-
onCancelItem:
|
|
305
|
+
onClose: lt,
|
|
306
|
+
onCancelItem: T,
|
|
299
307
|
labels: l.uploadQueueLabels
|
|
300
308
|
})
|
|
301
309
|
}),
|
|
302
|
-
(
|
|
303
|
-
title:
|
|
304
|
-
text:
|
|
310
|
+
(Ge || D) && /* @__PURE__ */ o(ne, {
|
|
311
|
+
title: D ? l.operationLoaderMoveTitle : l.operationLoaderCopyTitle,
|
|
312
|
+
text: D ? l.movingLabel : l.copyingLabel,
|
|
305
313
|
cancelLabel: l.operationLoaderCancelLabel,
|
|
306
|
-
onCancel:
|
|
314
|
+
onCancel: Ke
|
|
307
315
|
})
|
|
308
316
|
] });
|
|
309
317
|
};
|
|
310
|
-
|
|
318
|
+
i(l);
|
|
311
319
|
//#endregion
|
|
312
320
|
export { l as DialFileManagerShell };
|
|
@@ -74,7 +74,8 @@ var d = a(({ isOpen: a, onClose: d, onAttach: f, onSkippedUnsupportedFiles: p, o
|
|
|
74
74
|
}),
|
|
75
75
|
ariaLabel: U,
|
|
76
76
|
size: i.Lg,
|
|
77
|
-
className: "flex !h-[min(
|
|
77
|
+
className: "flex !h-[min(900px,100dvh)] w-full !max-w-[1600px] flex-col !bg-layer-base mobile:!h-full mobile:!max-w-full mobile:rounded-none",
|
|
78
|
+
overlayClassName: "mobile:p-0",
|
|
78
79
|
headerClassName: "pb-0",
|
|
79
80
|
footerClassName: "pt-0",
|
|
80
81
|
onClose: d,
|
package/index.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
._message_1iqfi_1{color:var(--cfm-message-text,var(--text-primary,#161b2d))}._consequences_1iqfi_5{color:var(--cfm-consequence-text,var(--text-secondary,#57647a))}._footer_1iqfi_9{border-block-start:1px solid var(--cfm-footer-border,var(--stroke-tertiary,#e0e6f0))}._info_pkxew_1{--rs-bg:var(--bg-info,#e1eaf9)}._danger_pkxew_5{--rs-bg:var(--bg-control-error-alpha-active,#f7646433);--rs-border:var(--stroke-error-alpha,#ae2f2f73)}._agentIconBadge_1ger8_1{background:var(--di-icon-bg,var(--bg-layer-sunken,#eef1f7))}._title_11w3i_1{color:var(--ih-title-color,var(--text-primary,#161b2d))}._count_11w3i_5{color:var(--ih-count-color,var(--text-secondary,#57647a))}._row_1csuq_1{border-color:var(--rs-border,var(--stroke-tertiary,#e0e6f0));background:var(--rs-bg,var(--bg-layer-sunken,#eef1f7))}._versionTag_1csuq_7{border-color:var(--rs-version-tag-border,var(--stroke-tertiary,#e0e6f0))!important;background:var(--rs-version-tag-bg,var(--bg-control-accent-alpha,#2764d90f))!important;color:var(--rs-version-tag-text,var(--text-accent,#1d4ed8))!important}._typeLabel_17nhs_1{color:var(--cir-type-label-text,var(--text-secondary,#57647a))}._container_sqe5k_1{background:var(--cm-code-block-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-code-block-border,var(--stroke-secondary,#d1dbea))}._containerLight_sqe5k_6{background:var(--cm-code-block-bg,var(--bg-layer-raised,#fcfcfc))}._header_sqe5k_10{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-code-block-border,var(--stroke-secondary,#d1dbea))}._languageLabel_sqe5k_15{color:var(--cm-code-block-language,var(--text-secondary,#57647a))}._copiedIcon_sqe5k_19{color:var(--cm-code-block-copied,var(--text-success,#007274))}._scrollContainer_sqe5k_23 .token.table,._scrollContainer_sqe5k_23 .token.table-header-row,._scrollContainer_sqe5k_23 .token.table-line,._scrollContainer_sqe5k_23 .token.table-data-rows{display:inline}._scrollContainer_sqe5k_23{scrollbar-width:thin;scrollbar-color:var(--cm-code-block-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_sqe5k_23::-webkit-scrollbar{width:4px;height:4px}._scrollContainer_sqe5k_23::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_sqe5k_23::-webkit-scrollbar-thumb{background-color:var(--cm-code-block-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}@keyframes _cm-shimmer_1ql91_1{0%{background-position:200%}to{background-position:-200%}}._thinking_1ql91_9{background:linear-gradient(270deg, var(--cm-thinking-inverted,var(--text-primary,#161b2d)) 0%, var(--cm-thinking-secondary,var(--text-secondary,#57647a)) 40%, var(--cm-thinking-inverted,var(--text-primary,#161b2d)) 80%);color:#0000;background-size:200%;-webkit-background-clip:text;background-clip:text;animation:2s linear infinite _cm-shimmer_1ql91_1}._h6_1ql91_18{color:var(--cm-h6-text,var(--text-secondary,#57647a))}._codeInline_1ql91_22{background:var(--cm-code-inline-bg,var(--bg-layer-raised,#fcfcfc));color:var(--cm-code-inline-text,var(--text-primary,#161b2d))}._secondaryBorder_1ql91_27{border-color:var(--cm-markdown-border,var(--stroke-secondary,#d1dbea))}._blockquote_1ql91_31{border-color:var(--cm-blockquote-border,var(--stroke-primary,#57647a));color:var(--cm-blockquote-text,var(--text-secondary,#57647a))}._link_1ql91_36{color:var(--cm-link-text,var(--text-accent,#1d4ed8))}._link_1ql91_36:focus-visible{outline-color:var(--cm-link-focus,var(--stroke-focus,#161b2d))}._scrollContainer_n2oom_1{scrollbar-width:thin;scrollbar-color:var(--cm-math-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_n2oom_1::-webkit-scrollbar{height:4px}._scrollContainer_n2oom_1::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_n2oom_1::-webkit-scrollbar-thumb{background-color:var(--cm-math-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}._scrollContainer_n2oom_1:focus-visible{outline:1px solid var(--cm-math-focus,var(--stroke-focus,#161b2d));outline-offset:2px}._mathContent_n2oom_24{width:max-content;min-width:100%;display:block}._tableContainer_1qw2e_1{background:var(--cm-code-block-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-markdown-border,var(--cm-code-block-border,var(--stroke-secondary,#d1dbea)))}._tableContainerLight_1qw2e_6{background:var(--cm-code-block-bg,var(--bg-layer-base,#f5f7fa))}._copiedIcon_1qw2e_10{color:var(--cm-code-block-copied,var(--text-success,#007274))}._scrollContainer_1qw2e_14{scrollbar-width:thin;scrollbar-color:var(--cm-table-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_1qw2e_14::-webkit-scrollbar{width:4px;height:4px}._scrollContainer_1qw2e_14::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_1qw2e_14::-webkit-scrollbar-thumb{background-color:var(--cm-table-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}._tableHeaderCell_1qw2e_30{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc));height:3rem;color:var(--cm-table-header-text,var(--text-secondary,#57647a))}._sectionRow_1qw2e_37 td{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc))}._rowDivider_1qw2e_41{border-block-end:.5px solid var(--cm-table-row-divider,var(--stroke-tertiary,#e0e6f0))}tbody ._row_1qw2e_41:hover td{background:var(--cm-table-row-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924))}._tableScrollFadeEnd_1qw2e_51{-webkit-mask-image:linear-gradient(to right, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);-webkit-mask-image:linear-gradient(to right, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);mask-image:linear-gradient(to right, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%)}[dir=rtl] ._tableScrollFadeEnd_1qw2e_51{-webkit-mask-image:linear-gradient(to left, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);-webkit-mask-image:linear-gradient(to left, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);mask-image:linear-gradient(to left, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%)}._tableScrollFadeStart_1qw2e_59{-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%)}[dir=rtl] ._tableScrollFadeStart_1qw2e_59{-webkit-mask-image:linear-gradient(to left, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);-webkit-mask-image:linear-gradient(to left, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);mask-image:linear-gradient(to left, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%)}._tableScrollFadeBoth_1qw2e_67{-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) calc(100% - 1rem), transparent 100%);-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) calc(100% - 1rem), transparent 100%);mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) calc(100% - 1rem), transparent 100%)}._tableHeader_1qvg8_1{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-markdown-border,var(--cm-code-block-border,var(--stroke-secondary,#d1dbea)))}._label_12p89_1{color:var(--pes-label-color,var(--text-primary,#161b2d))}
|
|
2
|
-
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-4{bottom:1rem}.end-0{inset-inline-end:0}.end-2{inset-inline-end:.5rem}.end-4{inset-inline-end:1rem}.top-0{top:0}.top-2{top:.5rem}.top-\[-6px\]{top:-6px}.z-10{z-index:10}.z-\[2\]{z-index:2}.z-\[52\]{z-index:52}.z-\[70\]{z-index:70}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-5{margin-bottom:1.25rem;margin-top:1.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.me-1\.5{margin-inline-end:.375rem}.ms-auto{margin-inline-start:auto}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-full{height:100%;width:100%}.\!h-\[min\(
|
|
1
|
+
._message_1iqfi_1{color:var(--cfm-message-text,var(--text-primary,#161b2d))}._consequences_1iqfi_5{color:var(--cfm-consequence-text,var(--text-secondary,#57647a))}._footer_1iqfi_9{border-block-start:1px solid var(--cfm-footer-border,var(--stroke-tertiary,#e0e6f0))}._info_pkxew_1{--rs-bg:var(--bg-info,#e1eaf9)}._danger_pkxew_5{--rs-bg:var(--bg-control-error-alpha-active,#f7646433);--rs-border:var(--stroke-error-alpha,#ae2f2f73)}._agentIconBadge_1ger8_1{background:var(--di-icon-bg,var(--bg-layer-sunken,#eef1f7))}._title_11w3i_1{color:var(--ih-title-color,var(--text-primary,#161b2d))}._count_11w3i_5{color:var(--ih-count-color,var(--text-secondary,#57647a))}._row_1csuq_1{border-color:var(--rs-border,var(--stroke-tertiary,#e0e6f0));background:var(--rs-bg,var(--bg-layer-sunken,#eef1f7))}._versionTag_1csuq_7{border-color:var(--rs-version-tag-border,var(--stroke-tertiary,#e0e6f0))!important;background:var(--rs-version-tag-bg,var(--bg-control-accent-alpha,#2764d90f))!important;color:var(--rs-version-tag-text,var(--text-accent,#1d4ed8))!important}._typeLabel_17nhs_1{color:var(--cir-type-label-text,var(--text-secondary,#57647a))}._names_g31v4_1{color:var(--cfm-message-text,var(--text-primary,#161b2d))}._more_g31v4_5{color:var(--cfm-consequence-text,var(--text-secondary,#57647a))}._container_sqe5k_1{background:var(--cm-code-block-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-code-block-border,var(--stroke-secondary,#d1dbea))}._containerLight_sqe5k_6{background:var(--cm-code-block-bg,var(--bg-layer-raised,#fcfcfc))}._header_sqe5k_10{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-code-block-border,var(--stroke-secondary,#d1dbea))}._languageLabel_sqe5k_15{color:var(--cm-code-block-language,var(--text-secondary,#57647a))}._copiedIcon_sqe5k_19{color:var(--cm-code-block-copied,var(--text-success,#007274))}._scrollContainer_sqe5k_23 .token.table,._scrollContainer_sqe5k_23 .token.table-header-row,._scrollContainer_sqe5k_23 .token.table-line,._scrollContainer_sqe5k_23 .token.table-data-rows{display:inline}._scrollContainer_sqe5k_23{scrollbar-width:thin;scrollbar-color:var(--cm-code-block-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_sqe5k_23::-webkit-scrollbar{width:4px;height:4px}._scrollContainer_sqe5k_23::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_sqe5k_23::-webkit-scrollbar-thumb{background-color:var(--cm-code-block-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}@keyframes _cm-shimmer_1ql91_1{0%{background-position:200%}to{background-position:-200%}}._thinking_1ql91_9{background:linear-gradient(270deg, var(--cm-thinking-inverted,var(--text-primary,#161b2d)) 0%, var(--cm-thinking-secondary,var(--text-secondary,#57647a)) 40%, var(--cm-thinking-inverted,var(--text-primary,#161b2d)) 80%);color:#0000;background-size:200%;-webkit-background-clip:text;background-clip:text;animation:2s linear infinite _cm-shimmer_1ql91_1}._h6_1ql91_18{color:var(--cm-h6-text,var(--text-secondary,#57647a))}._codeInline_1ql91_22{background:var(--cm-code-inline-bg,var(--bg-layer-raised,#fcfcfc));color:var(--cm-code-inline-text,var(--text-primary,#161b2d))}._secondaryBorder_1ql91_27{border-color:var(--cm-markdown-border,var(--stroke-secondary,#d1dbea))}._blockquote_1ql91_31{border-color:var(--cm-blockquote-border,var(--stroke-primary,#57647a));color:var(--cm-blockquote-text,var(--text-secondary,#57647a))}._link_1ql91_36{color:var(--cm-link-text,var(--text-accent,#1d4ed8))}._link_1ql91_36:focus-visible{outline-color:var(--cm-link-focus,var(--stroke-focus,#161b2d))}._scrollContainer_n2oom_1{scrollbar-width:thin;scrollbar-color:var(--cm-math-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_n2oom_1::-webkit-scrollbar{height:4px}._scrollContainer_n2oom_1::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_n2oom_1::-webkit-scrollbar-thumb{background-color:var(--cm-math-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}._scrollContainer_n2oom_1:focus-visible{outline:1px solid var(--cm-math-focus,var(--stroke-focus,#161b2d));outline-offset:2px}._mathContent_n2oom_24{width:max-content;min-width:100%;display:block}._tableContainer_1qw2e_1{background:var(--cm-code-block-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-markdown-border,var(--cm-code-block-border,var(--stroke-secondary,#d1dbea)))}._tableContainerLight_1qw2e_6{background:var(--cm-code-block-bg,var(--bg-layer-base,#f5f7fa))}._copiedIcon_1qw2e_10{color:var(--cm-code-block-copied,var(--text-success,#007274))}._scrollContainer_1qw2e_14{scrollbar-width:thin;scrollbar-color:var(--cm-table-scrollbar,var(--stroke-primary,#57647a)) transparent}._scrollContainer_1qw2e_14::-webkit-scrollbar{width:4px;height:4px}._scrollContainer_1qw2e_14::-webkit-scrollbar-track{background-color:#0000}._scrollContainer_1qw2e_14::-webkit-scrollbar-thumb{background-color:var(--cm-table-scrollbar,var(--stroke-primary,#57647a));border-radius:4px}._tableHeaderCell_1qw2e_30{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc));height:3rem;color:var(--cm-table-header-text,var(--text-secondary,#57647a))}._sectionRow_1qw2e_37 td{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc))}._rowDivider_1qw2e_41{border-block-end:.5px solid var(--cm-table-row-divider,var(--stroke-tertiary,#e0e6f0))}tbody ._row_1qw2e_41:hover td{background:var(--cm-table-row-hover-bg,var(--bg-control-accent-alpha-hover,#2764d924))}._tableScrollFadeEnd_1qw2e_51{-webkit-mask-image:linear-gradient(to right, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);-webkit-mask-image:linear-gradient(to right, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);mask-image:linear-gradient(to right, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%)}[dir=rtl] ._tableScrollFadeEnd_1qw2e_51{-webkit-mask-image:linear-gradient(to left, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);-webkit-mask-image:linear-gradient(to left, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%);mask-image:linear-gradient(to left, var(--cm-table-fade,var(--stroke-black,#161b2d)) 0, var(--cm-table-fade,var(--stroke-black,#161b2d)) calc(100% - 1rem), transparent 100%)}._tableScrollFadeStart_1qw2e_59{-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%)}[dir=rtl] ._tableScrollFadeStart_1qw2e_59{-webkit-mask-image:linear-gradient(to left, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);-webkit-mask-image:linear-gradient(to left, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%);mask-image:linear-gradient(to left, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 100%)}._tableScrollFadeBoth_1qw2e_67{-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) calc(100% - 1rem), transparent 100%);-webkit-mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) calc(100% - 1rem), transparent 100%);mask-image:linear-gradient(to right, transparent 0, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) 1rem, var(--cm-table-fade,var(--stroke-focus-black,#161b2d)) calc(100% - 1rem), transparent 100%)}._tableHeader_1qvg8_1{background:var(--cm-code-block-header-bg,var(--bg-layer-raised,#fcfcfc));border-color:var(--cm-markdown-border,var(--cm-code-block-border,var(--stroke-secondary,#d1dbea)))}._label_12p89_1{color:var(--pes-label-color,var(--text-primary,#161b2d))}
|
|
2
|
+
/*$vite$:1*/.sr-only{height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0);border-width:0;white-space:nowrap}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.bottom-4{bottom:1rem}.end-0{inset-inline-end:0}.end-2{inset-inline-end:.5rem}.end-4{inset-inline-end:1rem}.top-0{top:0}.top-2{top:.5rem}.top-\[-6px\]{top:-6px}.z-10{z-index:10}.z-\[2\]{z-index:2}.z-\[52\]{z-index:52}.z-\[70\]{z-index:70}.mx-0\.5{margin-left:.125rem;margin-right:.125rem}.my-4{margin-bottom:1rem;margin-top:1rem}.my-5{margin-bottom:1.25rem;margin-top:1.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.me-1\.5{margin-inline-end:.375rem}.ms-auto{margin-inline-start:auto}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-auto{margin-top:auto}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.size-full{height:100%;width:100%}.\!h-\[min\(900px\2c 100dvh\)\]{height:min(900px,100dvh)!important}.\!h-fit{height:-moz-fit-content!important;height:fit-content!important}.h-0{height:0}.h-\[24px\]{height:24px}.h-full{height:100%}.\!max-h-full{max-height:100%!important}.max-h-\[344px\]{max-height:344px}.max-h-\[50vh\]{max-height:50vh}.max-h-\[60vh\]{max-height:60vh}.min-h-0{min-height:0}.min-h-10{min-height:2.5rem}.\!w-\[400px\]{width:400px!important}.w-\[360px\]{width:360px}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.min-w-0{min-width:0}.min-w-full{min-width:100%}.\!max-w-\[1600px\]{max-width:1600px!important}.max-w-96{max-width:24rem}.max-w-\[30\%\]{max-width:30%}.max-w-\[45\%\]{max-width:45%}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.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-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.25rem*var(--tw-space-y-reverse));margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)))}.self-stretch{align-self:stretch}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-hidden{overflow-y:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-normal{white-space:normal}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.rounded{border-radius:4px}.rounded-\[14px\]{border-radius:14px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-s-2{border-inline-start-width:2px}.border-t{border-top-width:1px}.border-tertiary{border-color:var(--stroke-tertiary,#e0e6f0)}.\!bg-layer-base{background-color:var(--bg-layer-base,#f5f7fa)!important}.bg-backdrop{background-color:var(--bg-backdrop,#161b2d4d)}.bg-layer-base{background-color:var(--bg-layer-base,#f5f7fa)}.bg-layer-raised{background-color:var(--bg-layer-raised,#fcfcfc)}.bg-layer-sunken{background-color:var(--bg-layer-sunken,#eef1f7)}.object-contain{-o-object-fit:contain;object-fit:contain}.p-0{padding:0}.p-3{padding:.75rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0{padding-bottom:0;padding-top:0}.py-0\.5{padding-bottom:.125rem;padding-top:.125rem}.py-1{padding-bottom:.25rem;padding-top:.25rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-2\.5{padding-bottom:.625rem;padding-top:.625rem}.py-4{padding-bottom:1rem;padding-top:1rem}.py-\[7px\]{padding-bottom:7px;padding-top:7px}.pb-0{padding-bottom:0}.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}.text-center{text-align:center}.text-start{text-align:start}.text-end{text-align:end}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.uppercase{text-transform:uppercase}.italic{font-style:italic}.text-primary{color:var(--text-primary,#161b2d)}.text-secondary{color:var(--text-secondary,#57647a)}.underline{text-decoration-line:underline}.underline-offset-2{text-underline-offset:2px}.opacity-0{opacity:0}.opacity-75{opacity:.75}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-chat-button{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-chat-button{--tw-shadow:0 2px 12px 0 var(--shadow-xs-1,#2764d933),0 2px 6px 0 var(--shadow-xs-2,#161b2d08);--tw-shadow-colored:0 2px 12px 0 var(--tw-shadow-color),0 2px 6px 0 var(--tw-shadow-color)}.shadow-sm{--tw-shadow:0 8px 10px 0 var(--shadow-sm,#2764d914);--tw-shadow-colored:0 8px 10px 0 var(--tw-shadow-color)}.shadow-sm,.shadow-xs{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-xs{--tw-shadow:0 1px 4px 0 var(--shadow-xs-1,#2764d933),0 1px 2px 0 var(--shadow-xs-2,#161b2d08);--tw-shadow-colored:0 1px 4px 0 var(--tw-shadow-color),0 1px 2px 0 var(--tw-shadow-color)}.outline{outline-style:solid;outline-width:1px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.\[overflow-wrap\:anywhere\]{overflow-wrap:anywhere}.\[overflow\:clip\]{overflow:clip}.\[text-wrap\:balance\]{text-wrap:balance}.\[text-wrap\:pretty\]{text-wrap:pretty}.first\:mt-0:first-child{margin-top:0}.last\:mb-0:last-child{margin-bottom:0}.focus-within\:opacity-100:focus-within{opacity:1}.hover\:decoration-current:hover{text-decoration-color:currentColor}.focus-visible\:outline:focus-visible{outline-style:solid;outline-width:1px}.focus-visible\:outline-1:focus-visible{outline-width:1px}.focus-visible\:outline-offset-2:focus-visible{outline-offset:2px}.group\/table:hover .group-hover\/table\:opacity-100{opacity:1}@media (max-width:1279px){.mobile\:\!h-full{height:100%!important}.mobile\:\!max-w-full{max-width:100%!important}.mobile\:flex-1{flex:1 1 0%}.mobile\:rounded-none{border-radius:0}.mobile\:p-0{padding:0}}@media (min-width:1280px){.desktop\:p-4{padding:1rem}.desktop\:px-6{padding-left:1.5rem;padding-right:1.5rem}}.rtl\:flex-row-reverse:where([dir=rtl],[dir=rtl] *){flex-direction:row-reverse}.rtl\:justify-start:where([dir=rtl],[dir=rtl] *){justify-content:flex-start}.\[\&_\.w-md-editor\:not\(\.w-md-editor-fullscreen\)\]\:\!h-\[var\(--resizable-field-max-height\2c 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\2c 70vh\)\] .w-md-editor:not(.w-md-editor-fullscreen){max-height:var(--resizable-field-max-height,70vh)}.\[\&_\.wmde-markdown\>ol\]\:list-decimal .wmde-markdown>ol{list-style-type:decimal}.\[\&_\.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}
|
package/index.d.ts
CHANGED
|
@@ -463,6 +463,8 @@ export declare interface ConfirmationViewProps {
|
|
|
463
463
|
identity?: ReactNode;
|
|
464
464
|
/** Body copy explaining what confirming does. */
|
|
465
465
|
message: ReactNode;
|
|
466
|
+
/** Content rendered between the message and the consequence bullets, for example the list of items a bulk action affects. */
|
|
467
|
+
details?: ReactNode;
|
|
466
468
|
/** Consequences listed as bullets under the message. An empty or omitted list renders nothing. */
|
|
467
469
|
consequences?: string[];
|
|
468
470
|
/** Palette of the identity card. Default: `ConfirmationPopupVariant.Info`. */
|
|
@@ -758,6 +760,99 @@ export declare const DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME = "table.csv";
|
|
|
758
760
|
|
|
759
761
|
export declare const defaultMarkdownComponents: Components;
|
|
760
762
|
|
|
763
|
+
/** Default cap on the names listed for a multi-item delete. */
|
|
764
|
+
export declare const DELETE_CONFIRMATION_MAX_LISTED_NAMES = 10;
|
|
765
|
+
|
|
766
|
+
/** Delete confirmation presented as a centered dialog, for one resource or a selection. */
|
|
767
|
+
export declare const DeleteConfirmationDialog: FC<DeleteConfirmationDialogProps>;
|
|
768
|
+
|
|
769
|
+
/** User-visible strings of `DeleteConfirmationDialog`. */
|
|
770
|
+
export declare interface DeleteConfirmationDialogLabels extends DeleteConfirmationViewLabels {
|
|
771
|
+
/** Label of the confirming action button. Defaults to `'Delete'`. */
|
|
772
|
+
confirm?: string;
|
|
773
|
+
/** Label of the cancel button. Defaults to `'Cancel'`. */
|
|
774
|
+
cancel?: string;
|
|
775
|
+
/** Status text announced while the deletion is in flight. Defaults to `'Deleting…'`. */
|
|
776
|
+
deleting?: string;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
/** Props for `DeleteConfirmationDialog`. */
|
|
780
|
+
export declare interface DeleteConfirmationDialogProps extends Omit<DeleteConfirmationViewProps, 'labels' | 'styles'> {
|
|
781
|
+
/** Whether the dialog is open. */
|
|
782
|
+
open: boolean;
|
|
783
|
+
/** Dialog title. A string rather than a node, so the kit names the dialog with it. */
|
|
784
|
+
title: string;
|
|
785
|
+
/** Whether the delete request is in flight; blocks both actions and every dismissal route. Defaults to `false`. */
|
|
786
|
+
isLoading?: boolean;
|
|
787
|
+
/** Width cap of the dialog. Defaults to `PopupSize.Sm`. */
|
|
788
|
+
size?: PopupSize;
|
|
789
|
+
/** User-visible strings. */
|
|
790
|
+
labels?: DeleteConfirmationDialogLabels;
|
|
791
|
+
/** Style overrides. */
|
|
792
|
+
styles?: DeleteConfirmationDialogStyles;
|
|
793
|
+
/** Called when the user confirms. */
|
|
794
|
+
onConfirm: () => void;
|
|
795
|
+
/** Called when the dialog is dismissed — Cancel, the close control, Escape, or an outside click. */
|
|
796
|
+
onClose: () => void;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/** Style overrides for `DeleteConfirmationDialog`. */
|
|
800
|
+
export declare interface DeleteConfirmationDialogStyles extends NonNullable<DeleteConfirmationViewProps['styles']> {
|
|
801
|
+
/** CSS class applied to the popup container. */
|
|
802
|
+
popupClassName?: string;
|
|
803
|
+
/** CSS class applied to the dialog title. */
|
|
804
|
+
titleClassName?: string;
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
/** Body of a delete confirmation: the identity card, the warning, the affected names, and the consequences. */
|
|
808
|
+
export declare const DeleteConfirmationView: FC<DeleteConfirmationViewProps>;
|
|
809
|
+
|
|
810
|
+
/** Color overrides for `DeleteConfirmationView`. */
|
|
811
|
+
export declare interface DeleteConfirmationViewColors extends ConfirmationViewColors {
|
|
812
|
+
/** Type label above the name. Defaults to `--text-secondary`. */
|
|
813
|
+
typeLabelText?: string;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
/** User-visible strings of `DeleteConfirmationView`. */
|
|
817
|
+
export declare interface DeleteConfirmationViewLabels {
|
|
818
|
+
/** Last consequence bullet. Defaults to `'Cannot be undone'`. */
|
|
819
|
+
cannotBeUndone?: string;
|
|
820
|
+
/** Identity-card text for a multi-item delete. Defaults to `'{count} items'`. */
|
|
821
|
+
itemCount?: (count: number) => string;
|
|
822
|
+
/** Trailing list entry for names past `maxListedNames`. Defaults to `'… and {count} more'`. */
|
|
823
|
+
moreItems?: (count: number) => string;
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/** Props for `DeleteConfirmationView`. */
|
|
827
|
+
export declare interface DeleteConfirmationViewProps {
|
|
828
|
+
/** Names of the resources about to be deleted. One name is shown in the identity card; several are counted there and listed under the message. */
|
|
829
|
+
names: string[];
|
|
830
|
+
/** Icon shown in the identity card ahead of a single name. Supplied by the host, which owns the glyph set. */
|
|
831
|
+
icon?: ReactNode;
|
|
832
|
+
/** Resource type shown above a single name. Pass it in sentence case — the label uppercases itself. */
|
|
833
|
+
typeLabel?: string;
|
|
834
|
+
/** Warning sentence, composed by the host so it can emphasise the name. */
|
|
835
|
+
message: ReactNode;
|
|
836
|
+
/** Consequences listed before the final "cannot be undone" bullet. */
|
|
837
|
+
consequences?: string[];
|
|
838
|
+
/** Maximum number of names listed for a multi-item delete. Defaults to `DELETE_CONFIRMATION_MAX_LISTED_NAMES` (10). */
|
|
839
|
+
maxListedNames?: number;
|
|
840
|
+
/** User-visible strings. */
|
|
841
|
+
labels?: DeleteConfirmationViewLabels;
|
|
842
|
+
/** Style overrides. */
|
|
843
|
+
styles?: DeleteConfirmationViewStyles;
|
|
844
|
+
/** Content rendered after the consequence bullets, for example an inline error. */
|
|
845
|
+
children?: ReactNode;
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/** Style overrides for `DeleteConfirmationView`. */
|
|
849
|
+
export declare interface DeleteConfirmationViewStyles {
|
|
850
|
+
/** Typography class applied to the message, the name list, and the bullets. Defaults to `'dial-small-text'`. */
|
|
851
|
+
messageClassName?: string;
|
|
852
|
+
/** Color overrides applied as CSS custom properties. */
|
|
853
|
+
colors?: DeleteConfirmationViewColors;
|
|
854
|
+
}
|
|
855
|
+
|
|
761
856
|
/**
|
|
762
857
|
* JSON Schema object returned by the DIAL Core deployment configuration endpoint
|
|
763
858
|
* (`GET /v1/deployments/{deployment_name}/configuration`).
|
package/index.js
CHANGED
|
@@ -48,28 +48,30 @@ import { ConfirmationIdentityRow as Je } from "./components/ConfirmationIdentity
|
|
|
48
48
|
import { ConfirmationView as Ye } from "./components/ConfirmationView/ConfirmationView.js";
|
|
49
49
|
import { ConfirmationFooter as Xe } from "./components/ConfirmationView/ConfirmationFooter.js";
|
|
50
50
|
import { ConfirmationDialog as Ze } from "./components/ConfirmationDialog/ConfirmationDialog.js";
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
|
|
51
|
+
import { DELETE_CONFIRMATION_MAX_LISTED_NAMES as Qe, DeleteConfirmationView as $e } from "./components/DeleteConfirmationView/DeleteConfirmationView.js";
|
|
52
|
+
import { DeleteConfirmationDialog as et } from "./components/DeleteConfirmationDialog/DeleteConfirmationDialog.js";
|
|
53
|
+
import { TableHeader as tt } from "./components/MarkdownRenderer/Table/TableHeader.js";
|
|
54
|
+
import { TextRefinementState as nt, useTextRefinement as rt } from "./hooks/useTextRefinement.js";
|
|
55
|
+
import { TextRefinementField as it } from "./components/TextRefinementField/TextRefinementField.js";
|
|
56
|
+
import { CHAT_SHARED_CLASS as at } from "./constants/public-class-names.js";
|
|
57
|
+
import { useCodeCopy as ot } from "./hooks/useCodeCopy.js";
|
|
58
|
+
import { restrainedSyntaxTheme as st } from "./components/MarkdownRenderer/CodeBlock/syntax-theme.js";
|
|
59
|
+
import { MarkdownCodeBlock as ct } from "./components/MarkdownRenderer/CodeBlock/CodeBlock.js";
|
|
60
|
+
import { DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME as lt, MARKDOWN_TABLE_CSV_MIME_TYPE as ut, MarkdownTableCopyFormat as dt, serializeMarkdownTableRows as ft } from "./components/MarkdownRenderer/Table/table-serialization.js";
|
|
61
|
+
import { MarkdownTable as pt } from "./components/MarkdownRenderer/Table/MarkdownTable.js";
|
|
62
|
+
import { MarkdownRenderer as mt, defaultMarkdownComponents as ht } from "./components/MarkdownRenderer/MarkdownRenderer.js";
|
|
63
|
+
import { COMPACT_MARKDOWN_CLASS_NAMES as gt, DEFAULT_MARKDOWN_CLASS_NAMES as _t } from "./components/MarkdownRenderer/markdown-class-names.js";
|
|
64
|
+
import { PlainTextRenderer as vt } from "./components/MarkdownRenderer/PlainTextRenderer.js";
|
|
65
|
+
import { MDMessageViewer as yt } from "./components/MarkdownRenderer/MDMessageViewer.js";
|
|
66
|
+
import { MarkdownWithPlaceholders as bt } from "./components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js";
|
|
67
|
+
import { useCollapsedText as xt } from "./hooks/useCollapsedText.js";
|
|
68
|
+
import { useAvailableHeightCap as St } from "./hooks/useAvailableHeightCap.js";
|
|
69
|
+
import { useIsMobile as Ct } from "./hooks/useIsMobile.js";
|
|
70
|
+
import { useUnsavedChangesGuard as wt } from "./hooks/useUnsavedChangesGuard.js";
|
|
71
|
+
import { DialFileManagerActionProfile as Tt, DialFileManagerVariant as Et } from "./file-manager/file-manager-variant.js";
|
|
72
|
+
import { getParentFolderPath as Dt, isHiddenPath as Ot } from "./file-manager/path.js";
|
|
73
|
+
import { FileUploadStatus as kt, isUploadInProgress as At } from "./file-manager/upload-batch.js";
|
|
74
|
+
import { useGridEditingScroll as jt } from "./file-manager/useGridEditingScroll/useGridEditingScroll.js";
|
|
75
|
+
import { OperationLoaderModal as Mt } from "./file-manager/OperationLoaderModal/OperationLoaderModal.js";
|
|
76
|
+
import { isSkillSelectionUnsupported as Nt } from "./utils/is-skill-selection-unsupported.js";
|
|
77
|
+
export { p as AttachmentErrorReason, m as AttachmentType, ye as BASE_LG_ICON_PROPS, be as BASE_MD_ICON_PROPS, o as BackgroundGenerationStatus, at as CHAT_SHARED_CLASS, gt as COMPACT_MARKDOWN_CLASS_NAMES, h as CatalogEntityType, v as CodeBlockTheme, Ze as ConfirmationDialog, Xe as ConfirmationFooter, qe as ConfirmationIdentityCard, Je as ConfirmationIdentityRow, Ye as ConfirmationView, e as ConversationTransferErrorCode, t as ConversationTransferJobStatus, n as ConversationTransferSubjectKind, r as ConversationTransferUnitKind, i as ConversationTransferWarningCode, Le as CopyButton, Re as CopyIconButton, _t as DEFAULT_MARKDOWN_CLASS_NAMES, lt as DEFAULT_MARKDOWN_TABLE_DOWNLOAD_FILENAME, Qe as DELETE_CONFIRMATION_MAX_LISTED_NAMES, je as DESKTOP_BREAKPOINT_PX, Me as DESKTOP_MEDIA_QUERY, et as DeleteConfirmationDialog, $e as DeleteConfirmationView, Ie as DeploymentIcon, Tt as DialFileManagerActionProfile, Et as DialFileManagerVariant, I as ENTITY_DESCRIPTION_MAX_LENGTH, L as ENTITY_INSTRUCTIONS_MAX_LENGTH, R as ENTITY_NAME_MAX_LENGTH, le as ENTITY_TYPE_BG_COLOR, ue as ENTITY_TYPE_COLOR, Ge as EntityHeader, Ue as EntityTypeLabel, We as FeaturedChip, g as FileExtension, kt as FileUploadStatus, a as FilterTab, xe as HIDDEN_FILE, Fe as InitialsAvatar, He as ItemHeader, we as MARKDOWN_EDITOR_FILL_HEIGHT_CLASS_NAME, Te as MARKDOWN_EDITOR_MAX_HEIGHT_CLASS_NAME, Oe as MARKDOWN_EDITOR_PREVIEW_LIST_CLASS_NAME, ut as MARKDOWN_TABLE_CSV_MIME_TYPE, yt as MDMessageViewer, _ as MIMEType, y as MIME_TYPE_ALIASES, b as MIME_TYPE_AUDIO_PREFIX, x as MIME_TYPE_EXT_MAP, S as MIME_TYPE_WILDCARD, Ne as MOBILE_MAX_WIDTH_PX, Pe as MOBILE_MEDIA_QUERY, ct as MarkdownCodeBlock, mt as MarkdownRenderer, pt as MarkdownTable, dt as MarkdownTableCopyFormat, bt as MarkdownWithPlaceholders, s as MessageRating, c as MessageRole, Mt as OperationLoaderModal, j as PROHIBITED_CONVERSATION_NAME_CHARS_RE, de as PROMPT_PARAM_DEFAULT_SEPARATOR, fe as PROMPT_PARAM_PATTERN, pe as PROMPT_VARIABLE_CLASS_NAME, Se as PUBLIC_BUCKET, Ve as PanelEmptyState, vt as PlainTextRenderer, Ee as RESIZABLE_FIELD_MAX_HEIGHT_CSS_VARIABLE, De as RESIZABLE_TEXTAREA_CLASS_NAME, l as RequestStatus, Ke as ResourceSummary, f as ResponseFormat, ke as SELECT_LIST_MAX_HEIGHT_CLASS_NAME, Ae as SELECT_LIST_MAX_HEIGHT_PX, u as StageStatus, d as StatusEvent, Ce as TAG_INPUT_TAG_CLASS_NAME, tt as TableHeader, it as TextRefinementField, nt as TextRefinementState, te as base64ToBlob, H as buildCssVars, me as buildPromptParamDefaults, q as copyMarkdownAsRichText, J as copyToClipboard, ht as defaultMarkdownComponents, ne as downloadTextFile, re as ensureDownloadFilename, z as exceedsMaxLength, ze as extractInitials, he as extractPromptParams, Q as formatCost, Z as formatFileSize, X as formatLastUsed, $ as formatPrice, ee as formatUnitPrice, ve as generateUUID, C as getAttachmentTypeFromMime, w as getBaseMimeType, ie as getFileExtensionForLanguage, Dt as getParentFolderPath, M as getUtf8ByteLength, B as hasControlCharacters, T as inferMimeTypeFromPath, O as isAnnotationSelector, K as isAudioTranscriptionSupported, Ot as isHiddenPath, Nt as isSkillSelectionUnsupported, U as isStatusMessage, ce as isSyntaxHighlightingAllowed, At as isUploadInProgress, Y as markdownToRichTextHtml, V as mergeClasses, W as messageAttachmentToDisplayAttachment, G as messageAttachmentsToDisplayAttachments, E as normalizeMimeType, k as normalizePersistedHtmlTagAttachmentType, A as normalizeRawAnnotations, Be as pickAvatarColor, ge as rehypePromptVariables, _e as resolvePromptParams, st as restrainedSyntaxTheme, N as sanitizeConversationName, ft as serializeMarkdownTableRows, P as stripTrailingDots, D as stripUrlQueryAndFragment, ae as triggerAnchorDownload, oe as triggerBlobDownload, F as truncateToUtf8Bytes, se as tryBase64ToBytes, St as useAvailableHeightCap, ot as useCodeCopy, xt as useCollapsedText, jt as useGridEditingScroll, Ct as useIsMobile, rt as useTextRefinement, wt as useUnsavedChangesGuard };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epam/ai-dial-chat-shared",
|
|
3
3
|
"description": "Shared domain models, utilities, and UI components for AI DIAL Chat libraries",
|
|
4
|
-
"version": "1.2.0-rc.
|
|
4
|
+
"version": "1.2.0-rc.3",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"react": "^19.2.8",
|
|
35
|
-
"@epam/ai-dial-ui-kit": "^0.15.
|
|
36
|
-
"@epam/ai-dial-react-file-manager": "^0.3.
|
|
35
|
+
"@epam/ai-dial-ui-kit": "^0.15.3",
|
|
36
|
+
"@epam/ai-dial-react-file-manager": "^0.3.2",
|
|
37
37
|
"ag-grid-community": "^35.3.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependenciesMeta": {
|