@epam/ai-dial-chat-shared 1.1.0-dev.422 → 1.1.0-dev.426

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 (252) hide show
  1. package/components/CopyButton/CopyButton.js +31 -0
  2. package/components/DeploymentIcon/DeploymentIcon.js +62 -0
  3. package/components/DeploymentIcon/DeploymentIcon.module.scss.js +3 -0
  4. package/components/EntityHeader/EntityHeader.js +47 -0
  5. package/components/EntityTypeLabel/EntityTypeLabel.js +10 -0
  6. package/components/FeaturedChip/FeaturedChip.js +17 -0
  7. package/components/InitialsAvatar/InitialsAvatar.js +29 -0
  8. package/components/InitialsAvatar/InitialsAvatar.module.scss.js +6 -0
  9. package/components/ItemHeader/ItemHeader.js +35 -0
  10. package/components/ItemHeader/ItemHeader.module.scss.js +6 -0
  11. package/components/MarkdownRenderer/CodeBlock/CodeBlock.js +104 -0
  12. package/components/MarkdownRenderer/CodeBlock/CodeBlock.module.scss.js +10 -0
  13. package/components/MarkdownRenderer/CodeBlock/syntax-theme.js +71 -0
  14. package/components/MarkdownRenderer/MDMessageViewer.js +22 -0
  15. package/components/MarkdownRenderer/MarkdownRenderer.js +280 -0
  16. package/components/MarkdownRenderer/MarkdownRenderer.module.scss.js +11 -0
  17. package/components/MarkdownRenderer/Math/MarkdownMathBlock.js +24 -0
  18. package/components/MarkdownRenderer/Math/MarkdownMathBlock.module.scss.js +6 -0
  19. package/components/MarkdownRenderer/Table/MarkdownTable.js +77 -0
  20. package/components/MarkdownRenderer/Table/MarkdownTable.module.scss.js +15 -0
  21. package/components/MarkdownRenderer/Table/TableHeader.js +30 -0
  22. package/components/MarkdownRenderer/Table/TableHeader.module.scss.js +3 -0
  23. package/components/MarkdownRenderer/Table/table-serialization.js +6 -0
  24. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.js +66 -0
  25. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.js +12 -0
  26. package/components/MarkdownRenderer/markdown-class-names.js +23 -0
  27. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.js +18 -0
  28. package/components/PanelEmptyState/PanelEmptyState.js +24 -0
  29. package/components/PanelEmptyState/PanelEmptyState.module.scss.js +6 -0
  30. package/components/ResourceSummary/ResourceSummary.js +34 -0
  31. package/components/ResourceSummary/ResourceSummary.module.scss.js +6 -0
  32. package/constants/dial.js +4 -0
  33. package/constants/entity-colors.js +17 -0
  34. package/constants/icon.js +13 -0
  35. package/constants/mime-types.js +99 -0
  36. package/constants/resizable-fields.js +4 -0
  37. package/constants/tag-input.js +4 -0
  38. package/file-manager/DialFileManagerShell/DialFileManagerShell.js +299 -0
  39. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.js +93 -0
  40. package/file-manager/OperationLoaderModal/OperationLoaderModal.js +36 -0
  41. package/file-manager/UploadProgressModal/UploadProgressModal.js +56 -0
  42. package/file-manager/file-manager-variant.js +8 -0
  43. package/file-manager/path.js +7 -0
  44. package/file-manager/upload-batch.js +6 -0
  45. package/file-manager/useGridEditingScroll/useGridEditingScroll.js +45 -0
  46. package/file-manager.d.ts +461 -0
  47. package/file-manager.js +2 -1
  48. package/hooks/useCodeCopy.js +20 -0
  49. package/hooks/useCollapsedText.js +38 -0
  50. package/hooks/useHorizontalOverflow.js +25 -0
  51. package/hooks/useIsMobile.js +12 -0
  52. package/hooks/useStreamedMarkdownContent.js +32 -0
  53. package/index.css +1 -1
  54. package/index.d.ts +2405 -62
  55. package/index.js +61 -16874
  56. package/markdown.d.ts +401 -0
  57. package/markdown.js +11 -0
  58. package/models/chat.js +14 -0
  59. package/models/conversation-classification.js +6 -0
  60. package/models/conversation-transfer.js +14 -0
  61. package/models/deployment-features.js +6 -0
  62. package/package.json +48 -3
  63. package/types/attachment.js +8 -0
  64. package/types/code-editor.js +6 -0
  65. package/types/entity-type.js +6 -0
  66. package/types/mime-type.js +8 -0
  67. package/utils/avatar-color.js +37 -0
  68. package/utils/build-css-vars.js +8 -0
  69. package/utils/copy-to-clipboard.js +69 -0
  70. package/utils/file-download.js +79 -0
  71. package/utils/format-file-size.js +4 -0
  72. package/utils/format-last-used.js +20 -0
  73. package/utils/format-price.js +18 -0
  74. package/utils/generate-uuid.js +7 -0
  75. package/utils/initials.js +7 -0
  76. package/utils/is-audio-transcription-supported.js +5 -0
  77. package/utils/latex.js +34 -0
  78. package/utils/merge-class.js +8 -0
  79. package/utils/message-attachment-to-display.js +31 -0
  80. package/utils/message.js +5 -0
  81. package/utils/mime-type.js +73 -0
  82. package/utils/prompt-variables.js +42 -0
  83. package/utils/string-utils.js +14 -0
  84. package/FileManagerAttachModal-rkWJ1bqK.js +0 -512
  85. package/components/CopyButton/CopyButton.d.ts +0 -17
  86. package/components/CopyButton/CopyButton.d.ts.map +0 -1
  87. package/components/DeploymentIcon/DeploymentIcon.d.ts +0 -36
  88. package/components/DeploymentIcon/DeploymentIcon.d.ts.map +0 -1
  89. package/components/EntityHeader/EntityHeader.d.ts +0 -34
  90. package/components/EntityHeader/EntityHeader.d.ts.map +0 -1
  91. package/components/EntityTypeLabel/EntityTypeLabel.d.ts +0 -16
  92. package/components/EntityTypeLabel/EntityTypeLabel.d.ts.map +0 -1
  93. package/components/FeaturedChip/FeaturedChip.d.ts +0 -14
  94. package/components/FeaturedChip/FeaturedChip.d.ts.map +0 -1
  95. package/components/InitialsAvatar/InitialsAvatar.d.ts +0 -15
  96. package/components/InitialsAvatar/InitialsAvatar.d.ts.map +0 -1
  97. package/components/ItemHeader/ItemHeader.d.ts +0 -36
  98. package/components/ItemHeader/ItemHeader.d.ts.map +0 -1
  99. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts +0 -53
  100. package/components/MarkdownRenderer/CodeBlock/CodeBlock.d.ts.map +0 -1
  101. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts +0 -7
  102. package/components/MarkdownRenderer/CodeBlock/syntax-theme.d.ts.map +0 -1
  103. package/components/MarkdownRenderer/MDMessageViewer.d.ts +0 -46
  104. package/components/MarkdownRenderer/MDMessageViewer.d.ts.map +0 -1
  105. package/components/MarkdownRenderer/MarkdownRenderer.d.ts +0 -133
  106. package/components/MarkdownRenderer/MarkdownRenderer.d.ts.map +0 -1
  107. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts +0 -18
  108. package/components/MarkdownRenderer/Math/MarkdownMathBlock.d.ts.map +0 -1
  109. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts +0 -49
  110. package/components/MarkdownRenderer/Table/MarkdownTable.d.ts.map +0 -1
  111. package/components/MarkdownRenderer/Table/TableHeader.d.ts +0 -22
  112. package/components/MarkdownRenderer/Table/TableHeader.d.ts.map +0 -1
  113. package/components/MarkdownRenderer/Table/table-serialization.d.ts +0 -19
  114. package/components/MarkdownRenderer/Table/table-serialization.d.ts.map +0 -1
  115. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts +0 -27
  116. package/components/MarkdownRenderer/Table/useMarkdownTableActions/useMarkdownTableActions.d.ts.map +0 -1
  117. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts +0 -9
  118. package/components/MarkdownRenderer/TaskCheckbox/MarkdownTaskCheckbox.d.ts.map +0 -1
  119. package/components/MarkdownRenderer/markdown-class-names.d.ts +0 -10
  120. package/components/MarkdownRenderer/markdown-class-names.d.ts.map +0 -1
  121. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts +0 -15
  122. package/components/MarkdownWithPlaceholders/MarkdownWithPlaceholders.d.ts.map +0 -1
  123. package/components/PanelEmptyState/PanelEmptyState.d.ts +0 -24
  124. package/components/PanelEmptyState/PanelEmptyState.d.ts.map +0 -1
  125. package/components/ResourceSummary/ResourceSummary.d.ts +0 -49
  126. package/components/ResourceSummary/ResourceSummary.d.ts.map +0 -1
  127. package/constants/dial.d.ts +0 -3
  128. package/constants/dial.d.ts.map +0 -1
  129. package/constants/entity-colors.d.ts +0 -6
  130. package/constants/entity-colors.d.ts.map +0 -1
  131. package/constants/icon.d.ts +0 -14
  132. package/constants/icon.d.ts.map +0 -1
  133. package/constants/mime-types.d.ts +0 -13
  134. package/constants/mime-types.d.ts.map +0 -1
  135. package/constants/resizable-fields.d.ts +0 -3
  136. package/constants/resizable-fields.d.ts.map +0 -1
  137. package/constants/tag-input.d.ts +0 -2
  138. package/constants/tag-input.d.ts.map +0 -1
  139. package/entry-points/file-manager.d.ts +0 -4
  140. package/entry-points/file-manager.d.ts.map +0 -1
  141. package/esm-CopgoDht.js +0 -16197
  142. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts +0 -49
  143. package/file-manager/DialFileManagerShell/DialFileManagerShell.d.ts.map +0 -1
  144. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts +0 -89
  145. package/file-manager/FileManagerAttachModal/FileManagerAttachModal.d.ts.map +0 -1
  146. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts +0 -17
  147. package/file-manager/OperationLoaderModal/OperationLoaderModal.d.ts.map +0 -1
  148. package/file-manager/UploadProgressModal/UploadProgressModal.d.ts +0 -20
  149. package/file-manager/UploadProgressModal/UploadProgressModal.d.ts.map +0 -1
  150. package/file-manager/attach-result.d.ts +0 -9
  151. package/file-manager/attach-result.d.ts.map +0 -1
  152. package/file-manager/file-manager-controller.d.ts +0 -117
  153. package/file-manager/file-manager-controller.d.ts.map +0 -1
  154. package/file-manager/file-manager-variant.d.ts +0 -21
  155. package/file-manager/file-manager-variant.d.ts.map +0 -1
  156. package/file-manager/file-upload-validation.d.ts +0 -8
  157. package/file-manager/file-upload-validation.d.ts.map +0 -1
  158. package/file-manager/index.d.ts +0 -13
  159. package/file-manager/index.d.ts.map +0 -1
  160. package/file-manager/labels.d.ts +0 -137
  161. package/file-manager/labels.d.ts.map +0 -1
  162. package/file-manager/path.d.ts +0 -12
  163. package/file-manager/path.d.ts.map +0 -1
  164. package/file-manager/upload-batch.d.ts +0 -27
  165. package/file-manager/upload-batch.d.ts.map +0 -1
  166. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts +0 -27
  167. package/file-manager/useGridEditingScroll/useGridEditingScroll.d.ts.map +0 -1
  168. package/hooks/useCodeCopy.d.ts +0 -6
  169. package/hooks/useCodeCopy.d.ts.map +0 -1
  170. package/hooks/useCollapsedText.d.ts +0 -27
  171. package/hooks/useCollapsedText.d.ts.map +0 -1
  172. package/hooks/useHorizontalOverflow.d.ts +0 -21
  173. package/hooks/useHorizontalOverflow.d.ts.map +0 -1
  174. package/hooks/useIsMobile.d.ts +0 -3
  175. package/hooks/useIsMobile.d.ts.map +0 -1
  176. package/hooks/useStreamedMarkdownContent.d.ts +0 -3
  177. package/hooks/useStreamedMarkdownContent.d.ts.map +0 -1
  178. package/index.d.ts.map +0 -1
  179. package/index.dom-BKBT_wVu.js +0 -10
  180. package/lib-CglXTr1t.js +0 -1234
  181. package/models/annotation.d.ts +0 -87
  182. package/models/annotation.d.ts.map +0 -1
  183. package/models/auth.d.ts +0 -26
  184. package/models/auth.d.ts.map +0 -1
  185. package/models/chat.d.ts +0 -347
  186. package/models/chat.d.ts.map +0 -1
  187. package/models/conversation-classification.d.ts +0 -9
  188. package/models/conversation-classification.d.ts.map +0 -1
  189. package/models/conversation-transfer.d.ts +0 -94
  190. package/models/conversation-transfer.d.ts.map +0 -1
  191. package/models/custom-visualizer.d.ts +0 -61
  192. package/models/custom-visualizer.d.ts.map +0 -1
  193. package/models/deployment-configuration.d.ts +0 -55
  194. package/models/deployment-configuration.d.ts.map +0 -1
  195. package/models/deployment-features.d.ts +0 -17
  196. package/models/deployment-features.d.ts.map +0 -1
  197. package/models/deployment.d.ts +0 -31
  198. package/models/deployment.d.ts.map +0 -1
  199. package/models/dial-model.d.ts +0 -19
  200. package/models/dial-model.d.ts.map +0 -1
  201. package/models/entity.d.ts +0 -15
  202. package/models/entity.d.ts.map +0 -1
  203. package/models/import-export.d.ts +0 -23
  204. package/models/import-export.d.ts.map +0 -1
  205. package/models/theme.d.ts +0 -36
  206. package/models/theme.d.ts.map +0 -1
  207. package/models/tool-menu-item.d.ts +0 -13
  208. package/models/tool-menu-item.d.ts.map +0 -1
  209. package/rehype-katex-Da1z0EAE.js +0 -22235
  210. package/types/attachment.d.ts +0 -23
  211. package/types/attachment.d.ts.map +0 -1
  212. package/types/code-editor.d.ts +0 -8
  213. package/types/code-editor.d.ts.map +0 -1
  214. package/types/entity-type.d.ts +0 -10
  215. package/types/entity-type.d.ts.map +0 -1
  216. package/types/mime-type.d.ts +0 -59
  217. package/types/mime-type.d.ts.map +0 -1
  218. package/utils/avatar-color.d.ts +0 -10
  219. package/utils/avatar-color.d.ts.map +0 -1
  220. package/utils/build-css-vars.d.ts +0 -4
  221. package/utils/build-css-vars.d.ts.map +0 -1
  222. package/utils/copy-to-clipboard.d.ts +0 -18
  223. package/utils/copy-to-clipboard.d.ts.map +0 -1
  224. package/utils/file-download.d.ts +0 -21
  225. package/utils/file-download.d.ts.map +0 -1
  226. package/utils/format-file-size.d.ts +0 -3
  227. package/utils/format-file-size.d.ts.map +0 -1
  228. package/utils/format-last-used.d.ts +0 -3
  229. package/utils/format-last-used.d.ts.map +0 -1
  230. package/utils/format-price.d.ts +0 -7
  231. package/utils/format-price.d.ts.map +0 -1
  232. package/utils/generate-uuid.d.ts +0 -3
  233. package/utils/generate-uuid.d.ts.map +0 -1
  234. package/utils/initials.d.ts +0 -3
  235. package/utils/initials.d.ts.map +0 -1
  236. package/utils/is-audio-transcription-supported.d.ts +0 -3
  237. package/utils/is-audio-transcription-supported.d.ts.map +0 -1
  238. package/utils/latex.d.ts +0 -11
  239. package/utils/latex.d.ts.map +0 -1
  240. package/utils/merge-class.d.ts +0 -4
  241. package/utils/merge-class.d.ts.map +0 -1
  242. package/utils/message-attachment-to-display.d.ts +0 -22
  243. package/utils/message-attachment-to-display.d.ts.map +0 -1
  244. package/utils/message.d.ts +0 -4
  245. package/utils/message.d.ts.map +0 -1
  246. package/utils/mime-type.d.ts +0 -13
  247. package/utils/mime-type.d.ts.map +0 -1
  248. package/utils/prompt-variables.d.ts +0 -38
  249. package/utils/prompt-variables.d.ts.map +0 -1
  250. package/utils/string-utils.d.ts +0 -11
  251. package/utils/string-utils.d.ts.map +0 -1
  252. package/web-namespaces-BJylbtYz.js +0 -95
@@ -1,512 +0,0 @@
1
- import { DialFileName as e, NOT_ALLOWED_SYMBOLS_REGEXP as t, NeutralButton as n, Popup as r, PopupSize as i, PrimaryButton as a, Spinner as o } from "@epam/ai-dial-ui-kit";
2
- import { memo as s, useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
3
- import { Fragment as ee, jsx as p, jsxs as m } from "react/jsx-runtime";
4
- import { DialFileManager as te, DialFileManagerActions as h, DialFileManagerTabs as ne, DialFileNodeType as g, GridSelectionMode as _ } from "@epam/ai-dial-react-file-manager";
5
- //#region src/file-manager/file-manager-variant.ts
6
- var v = /* @__PURE__ */ function(e) {
7
- return e.Attach = "attach", e.Standalone = "standalone", e.FolderPicker = "folder-picker", e;
8
- }({}), y = /* @__PURE__ */ function(e) {
9
- return e.Attach = "attach", e.Browse = "browse", e.Full = "full", e;
10
- }({}), b = (e) => e.split("/").some((e) => e.startsWith(".")), x = (e) => {
11
- let t = e.replace(/\/$/, ""), n = t.lastIndexOf("/");
12
- return n > 0 ? t.slice(0, n + 1) : "";
13
- }, S = /* @__PURE__ */ function(e) {
14
- return e.Queued = "queued", e.Uploading = "uploading", e.Completed = "completed", e.Failed = "failed", e.Cancelled = "cancelled", e;
15
- }({}), C = (e) => {
16
- if (e.id) {
17
- let t = document.querySelector(`[row-id="${e.id}"]`);
18
- if (t) return t;
19
- }
20
- return e.rowIndex == null ? null : document.querySelector(`[row-index="${e.rowIndex}"]`);
21
- }, w = (e, t) => {
22
- requestAnimationFrame(() => {
23
- requestAnimationFrame(() => {
24
- !e.isDestroyed() && t.rowIndex != null && e.ensureNodeVisible(t, "middle"), C(t)?.scrollIntoView({
25
- block: "center",
26
- behavior: "auto"
27
- });
28
- });
29
- });
30
- }, T = (e) => e.find((e) => e.data?.isTemporary) ?? e[0] ?? null, E = ({ resolveTargetNode: e = T } = {}) => {
31
- let t = d(/* @__PURE__ */ new Set()), n = d(!1), r = d(null), i = c(() => {
32
- t.current = /* @__PURE__ */ new Set(), n.current = !1;
33
- }, []), a = c((e) => {
34
- let { api: t } = e;
35
- !t.isDestroyed() && e.rowIndex != null && t.ensureIndexVisible(e.rowIndex);
36
- }, []), o = c((r) => {
37
- let { api: i } = r, a = /* @__PURE__ */ new Set(), o = [];
38
- i.forEachNode((e) => {
39
- let r = e.data?.id;
40
- r && (a.add(r), n.current && !t.current.has(r) && o.push(e));
41
- }), t.current = a, n.current = !0;
42
- let s = e(o);
43
- s && w(i, s);
44
- }, [e]), s = c((e) => {
45
- let t = r.current;
46
- t !== e && (t != null && (t.removeEventListener("cellEditingStarted", a), t.removeEventListener("rowDataUpdated", o)), e.addEventListener("cellEditingStarted", a), e.addEventListener("rowDataUpdated", o), r.current = e);
47
- }, [a, o]);
48
- return l(() => () => {
49
- let e = r.current;
50
- e != null && !e.isDestroyed() && (e.removeEventListener("cellEditingStarted", a), e.removeEventListener("rowDataUpdated", o)), r.current = null;
51
- }, [a, o]), {
52
- handleGridApiChange: s,
53
- reset: i
54
- };
55
- }, D = ({ title: e, text: t, cancelLabel: i, onCancel: a }) => /* @__PURE__ */ p(r, {
56
- className: "!h-fit !max-h-full !w-[400px]",
57
- open: !0,
58
- closeOnOutsideClick: !1,
59
- hideClose: !0,
60
- onClose: a,
61
- footer: /* @__PURE__ */ p("div", {
62
- className: "flex justify-end gap-2 px-6 py-4",
63
- children: /* @__PURE__ */ p(n, {
64
- label: i,
65
- onClick: a
66
- })
67
- }),
68
- children: /* @__PURE__ */ m("div", {
69
- "aria-live": "polite",
70
- className: "flex flex-col items-center gap-4 px-6 py-4 text-center",
71
- children: [/* @__PURE__ */ p(o, {
72
- size: 32,
73
- fullWidth: !1,
74
- ariaLabel: e
75
- }), /* @__PURE__ */ m("div", {
76
- className: "flex flex-col gap-1",
77
- children: [/* @__PURE__ */ p("div", { children: e }), /* @__PURE__ */ p("div", {
78
- className: "dial-small-text text-secondary",
79
- children: t
80
- })]
81
- })]
82
- })
83
- });
84
- s(D);
85
- //#endregion
86
- //#region src/file-manager/UploadProgressModal/UploadProgressModal.tsx
87
- var O = ({ batchState: t, uploadProgressTitle: i, uploadProgressText: a, cancelLabel: o, onCancel: s }) => {
88
- let { files: l } = t, u = c((e) => e === void 0 ? null : /* @__PURE__ */ p("div", {
89
- className: "h-1 w-full overflow-hidden rounded-full bg-control-disable-primary",
90
- "data-qa": "uploading-indicator",
91
- role: "progressbar",
92
- "aria-valuemin": 0,
93
- "aria-valuemax": 100,
94
- "aria-valuenow": e,
95
- children: /* @__PURE__ */ p("div", {
96
- className: "h-full rounded-full bg-control-accent transition-all duration-300",
97
- style: { width: `${e}%` }
98
- })
99
- }), []);
100
- return /* @__PURE__ */ p(r, {
101
- className: "!h-fit !max-h-full !w-[400px] mobile:!w-full desktop:!max-h-[693px]",
102
- open: t.isOpen,
103
- closeOnOutsideClick: !1,
104
- hideClose: !0,
105
- onClose: s,
106
- footer: /* @__PURE__ */ p("div", {
107
- className: "flex justify-end gap-2 px-6 py-4",
108
- children: /* @__PURE__ */ p(n, {
109
- label: o,
110
- onClick: s
111
- })
112
- }),
113
- header: /* @__PURE__ */ m("div", {
114
- className: "flex flex-col gap-2",
115
- children: [/* @__PURE__ */ p("div", { children: i }), /* @__PURE__ */ p("div", {
116
- className: "dial-small-text text-secondary",
117
- "data-qa": "uploading-items-count",
118
- children: a
119
- })]
120
- }),
121
- children: /* @__PURE__ */ p("div", {
122
- className: "flex h-full max-h-full flex-col gap-4 px-6",
123
- children: /* @__PURE__ */ p("div", {
124
- className: "flex min-h-0 flex-1 flex-col gap-2 overflow-y-auto",
125
- children: l.map((t) => /* @__PURE__ */ p("div", {
126
- className: "rounded bg-layer-sunken px-3 py-2",
127
- children: /* @__PURE__ */ p(e, {
128
- name: t.name,
129
- details: u(t.percent)
130
- })
131
- }, t.id))
132
- })
133
- })
134
- });
135
- };
136
- s(O);
137
- //#endregion
138
- //#region src/file-manager/DialFileManagerShell/DialFileManagerShell.tsx
139
- var k = (e, t) => {
140
- if (e.isDownloading) return t.downloadingLabel;
141
- if (e.isDeleting) return t.deletingLabel;
142
- if (e.isRenaming && !e.isMoving) return t.renamingLabel;
143
- if (e.isUnsharing) return t.unsharingLabel;
144
- if (e.isRemovingAccess) return t.removingAccessLabel;
145
- }, A = ({ controller: e, labels: n, activeTab: r, tabs: i, onTabChange: s, selectedPaths: c, onSelectedPathsChange: d, variant: g, actionProfile: b, autoSelectUploadedItems: C = !1, allowedFileTypes: w, maxSelectableFileSize: T, isRowSelectable: A, getDisabledTooltip: j, unsupportedFileTypeTooltip: M }) => {
146
- let { items: re, isLoading: N, error: P, path: F, onPathChange: I, retry: L, onSearchFiles: R, isSearching: z, searchResults: B, clearSearchResults: ie, expandedPaths: ae, loadedPaths: oe, onExpandedPathsChange: se, onFolderPopupPathChange: ce, folderPopupLoadingPaths: V, onUploadFiles: le, onUploadArchive: ue, onValidateUpload: de, uploadBatchState: H, cancelUpload: fe, clearUploadBatch: pe, onCreateFolder: me, onCreateFolderValidate: he, onDownloadFiles: ge, isDownloading: _e, onDeleteFiles: ve, isDeleting: ye, onMoveToFiles: be, onRenameValidate: xe, isRenaming: Se, onCopyFiles: Ce, isCopying: we, isMoving: U, cancelCopyMove: Te, uploadEnabled: W, isNewButtonDisabled: G, disabledNewButtonTooltip: K, visibleColumns: q, dateLocale: Ee, dateOptions: De, actionLabels: J, sharedWithMeIds: Oe, sharedByMePaths: Y, onUnshareFiles: ke, isUnsharing: Ae, onRemoveFilesAccess: je, isRemovingAccess: Me, fileMetadata: Ne, isFileMetadataLoading: Pe, onGetInfo: Fe, clearMetadata: Ie } = e, [X, Le] = f(void 0), { handleGridApiChange: Re, reset: ze } = E();
147
- l(() => {
148
- ze();
149
- }, [r, ze]);
150
- let Z = u(() => {
151
- let e = {};
152
- return h.Download in J && (e[h.Download] = n.downloadLabel), h.Delete in J && (e[h.Delete] = n.deleteLabel), h.Rename in J && (e[h.Rename] = n.renameLabel), h.Copy in J && (e[h.Copy] = n.copyLabel), h.Move in J && (e[h.Move] = n.moveLabel), h.Duplicate in J && (e[h.Duplicate] = n.duplicateLabel), h.Unshare in J && (e[h.Unshare] = n.unshareLabel), h.RemoveAccess in J && (e[h.RemoveAccess] = n.removeAccessLabel), e;
153
- }, [
154
- J,
155
- n.downloadLabel,
156
- n.deleteLabel,
157
- n.renameLabel,
158
- n.copyLabel,
159
- n.moveLabel,
160
- n.duplicateLabel,
161
- n.unshareLabel,
162
- n.removeAccessLabel
163
- ]), Be = u(() => h.Info in J ? {
164
- ...Z,
165
- [h.Info]: n.infoLabel
166
- } : Z, [
167
- Z,
168
- J,
169
- n.infoLabel
170
- ]), Q = u(() => {
171
- if (c.size === 0) return !1;
172
- for (let e of c) if (!Y.has(e)) return !1;
173
- return !0;
174
- }, [c, Y]), Ve = u(() => {
175
- if (Q) return Z;
176
- let { [h.RemoveAccess]: e, ...t } = Z;
177
- return t;
178
- }, [Z, Q]), He = u(() => ({
179
- selectionMode: _.MULTIPLE,
180
- visibleColumns: q,
181
- dateLocale: Ee,
182
- dateOptions: De,
183
- additionalGridOptions: {
184
- domLayout: "normal",
185
- rowSelection: {
186
- mode: "multiRow",
187
- isRowSelectable: A ?? (() => !0)
188
- }
189
- },
190
- actionLabels: Be
191
- }), [
192
- q,
193
- Ee,
194
- De,
195
- Be,
196
- A
197
- ]), Ue = u(() => ({
198
- header: n.treeHeaderByTab[r],
199
- expandedPaths: ae,
200
- loadedPaths: oe,
201
- loadingPaths: V,
202
- onExpandedPathsChange: se,
203
- actionLabels: Z
204
- }), [
205
- n.treeHeaderByTab,
206
- r,
207
- ae,
208
- oe,
209
- V,
210
- se,
211
- Z
212
- ]), We = g === v.Standalone && b === y.Full && r === ne.MyFiles && W, Ge = u(() => ({
213
- tabs: i,
214
- activeTab: r,
215
- onTabChange: s,
216
- showHiddenFilesToggle: !0,
217
- hiddenFilesSwitcherLabel: n.hiddenFilesLabel,
218
- showHiddenFilesLabel: n.showHiddenFilesLabel,
219
- hideHiddenFilesLabel: n.hideHiddenFilesLabel,
220
- isNewButtonDisabled: G,
221
- disabledNewButtonTooltip: K,
222
- newActions: {
223
- uploadFiles: { label: n.uploadFilesLabel },
224
- newFolder: { label: n.newFolderLabel },
225
- ...We ? { uploadArchive: { label: n.uploadArchiveAction } } : {}
226
- }
227
- }), [
228
- i,
229
- r,
230
- s,
231
- n.hiddenFilesLabel,
232
- n.showHiddenFilesLabel,
233
- n.hideHiddenFilesLabel,
234
- G,
235
- K,
236
- n.uploadFilesLabel,
237
- n.newFolderLabel,
238
- We,
239
- n.uploadArchiveAction
240
- ]), Ke = u(() => ({
241
- getSelectionLabel: n.getSelectionLabel,
242
- actionLabels: Ve
243
- }), [n.getSelectionLabel, Ve]), qe = u(() => ({
244
- cancelLabel: n.deleteCancelLabel,
245
- confirmLabel: n.deleteConfirmLabel,
246
- titleRenderer: n.deleteConfirmTitle,
247
- contentRenderer: n.deleteConfirmBody
248
- }), [
249
- n.deleteCancelLabel,
250
- n.deleteConfirmLabel,
251
- n.deleteConfirmTitle,
252
- n.deleteConfirmBody
253
- ]), Je = u(() => {
254
- let e;
255
- for (let t of c) {
256
- let n = x(t);
257
- if (e === void 0) e = n;
258
- else if (e !== n) return;
259
- }
260
- return e;
261
- }, [c]), $ = X != null && V.has(X), Ye = $ ? X : Je, Xe = u(() => ({
262
- copyLabel: n.copyLabel,
263
- moveLabel: n.moveLabel,
264
- addFolderLabel: n.addFolderLabel,
265
- hiddenFilesSwitcherLabel: n.hiddenFilesSwitcherLabel,
266
- getCopyHeader: n.getCopyHeader,
267
- getMoveHeader: n.getMoveHeader,
268
- disabledPathTooltip: $ ? n.folderPickerLoadingTooltip : n.moveSourceDisabledTooltip,
269
- emptyStateTitle: n.folderPickerEmptyStateTitle,
270
- emptyStateDescription: n.folderPickerEmptyStateDescription,
271
- sourceFolder: Ye,
272
- destinationFolderPath: X,
273
- setDestinationFolderPath: Le,
274
- filesLoading: $
275
- }), [
276
- n.copyLabel,
277
- n.moveLabel,
278
- n.addFolderLabel,
279
- n.hiddenFilesSwitcherLabel,
280
- n.getCopyHeader,
281
- n.getMoveHeader,
282
- n.folderPickerLoadingTooltip,
283
- n.moveSourceDisabledTooltip,
284
- n.folderPickerEmptyStateTitle,
285
- n.folderPickerEmptyStateDescription,
286
- $,
287
- Ye,
288
- X
289
- ]), Ze = () => {
290
- fe(), pe();
291
- }, Qe = u(() => ({
292
- fileMetadata: Ne,
293
- loading: Pe,
294
- clearMetadata: Ie,
295
- header: n.metadataHeader,
296
- nameLabel: n.metadataNameLabel,
297
- pathLabel: n.metadataPathLabel,
298
- modifiedDateLabel: n.metadataModifiedDateLabel,
299
- sizeLabel: n.metadataSizeLabel,
300
- authorLabel: n.metadataAuthorLabel
301
- }), [
302
- Ne,
303
- Pe,
304
- Ie,
305
- n.metadataHeader,
306
- n.metadataNameLabel,
307
- n.metadataPathLabel,
308
- n.metadataModifiedDateLabel,
309
- n.metadataSizeLabel,
310
- n.metadataAuthorLabel
311
- ]), $e = k({
312
- isDownloading: _e,
313
- isDeleting: ye,
314
- isRenaming: Se,
315
- isMoving: U,
316
- isUnsharing: Ae,
317
- isRemovingAccess: Me
318
- }, n), et = u(() => {
319
- if (H == null) return "";
320
- let e = H.files.filter((e) => e.status !== S.Uploading).length;
321
- return n.getUploadProgressText(e, H.files.length);
322
- }, [H, n]), tt = u(() => B != null && !z ? {
323
- title: n.searchEmptyStateTitle,
324
- description: ""
325
- } : F.split("/").filter(Boolean).length > 1 ? {
326
- title: n.folderEmptyStateTitle,
327
- description: ""
328
- } : n.emptyStateByTab[r], [
329
- B,
330
- z,
331
- F,
332
- n.searchEmptyStateTitle,
333
- n.folderEmptyStateTitle,
334
- n.emptyStateByTab,
335
- r
336
- ]);
337
- return /* @__PURE__ */ m(ee, { children: [
338
- P == null ? /* @__PURE__ */ m("div", {
339
- className: "relative flex min-h-0 w-full grow overflow-auto bg-layer-sunken",
340
- children: [/* @__PURE__ */ p(te, {
341
- className: "min-h-0 w-full grow bg-layer-sunken",
342
- gridClassName: "size-full",
343
- items: re,
344
- path: F,
345
- onPathChange: I,
346
- onGridApiChange: Re,
347
- filesLoading: N,
348
- allowedFileTypes: w,
349
- maxSelectableFileSize: T,
350
- selectedPaths: c,
351
- onSelectedPathsChange: d,
352
- navigationPanelOptions: { searchable: !0 },
353
- hideSearchPathItemName: !0,
354
- onSearchFiles: R,
355
- searchInProgress: z,
356
- searchResults: B ?? [],
357
- clearSearchResults: ie,
358
- gridOptions: He,
359
- treeOptions: Ue,
360
- onFolderPopupPathChange: ce,
361
- toolbarOptions: Ge,
362
- bulkActionsToolbarOptions: Ke,
363
- autoSelectUploadedItems: C,
364
- emptyStateTitle: tt.title,
365
- emptyStateDescription: tt.description,
366
- uploadEnabled: W,
367
- sharedWithMeIds: Oe,
368
- sharedByMePaths: Y,
369
- onUnshareFiles: ke,
370
- onRemoveFilesAccess: je,
371
- fileMetadataPopupOptions: Qe,
372
- onGetInfo: Fe,
373
- onUploadFiles: le,
374
- onUploadArchive: ue,
375
- onValidateUpload: de,
376
- onCreateFolder: me,
377
- onCreateFolderValidate: he,
378
- onDownloadFiles: ge,
379
- onDeleteFiles: ve,
380
- onMoveToFiles: be,
381
- onCopyFiles: Ce,
382
- onRenameValidate: xe,
383
- renameValidationMessages: n.renameValidationMessages,
384
- isRenameFileAvailable: W,
385
- deleteConfirmationOptions: qe,
386
- conflictResolutionPopupOptions: n.conflictResolutionPopupOptions,
387
- destinationFolderPopupOptions: Xe,
388
- forbiddenSymbolsRegExp: t,
389
- forbiddenSymbolsTooltip: n.forbiddenSymbolsTooltip,
390
- getDisabledTooltip: j,
391
- unsupportedFileTypeTooltip: M
392
- }), $e != null && /* @__PURE__ */ p("div", {
393
- "aria-live": "polite",
394
- className: "absolute inset-0 z-[52] flex items-center justify-center bg-backdrop desktop:p-4",
395
- children: /* @__PURE__ */ p(o, {
396
- size: 32,
397
- fullWidth: !1,
398
- ariaLabel: $e
399
- })
400
- })]
401
- }) : /* @__PURE__ */ m("div", {
402
- role: "alert",
403
- className: "flex flex-col items-center gap-4 p-6",
404
- children: [/* @__PURE__ */ p("p", { children: n.errorMessage }), /* @__PURE__ */ p(a, {
405
- label: n.retryLabel,
406
- onClick: L
407
- })]
408
- }),
409
- H != null && /* @__PURE__ */ p(O, {
410
- batchState: H,
411
- uploadProgressTitle: n.uploadProgressTitle,
412
- uploadProgressText: et,
413
- cancelLabel: n.cancelLabel,
414
- onCancel: Ze
415
- }),
416
- (we || U) && /* @__PURE__ */ p(D, {
417
- title: U ? n.operationLoaderMoveTitle : n.operationLoaderCopyTitle,
418
- text: U ? n.movingLabel : n.copyingLabel,
419
- cancelLabel: n.operationLoaderCancelLabel,
420
- onCancel: Te
421
- })
422
- ] });
423
- };
424
- s(A);
425
- //#endregion
426
- //#region src/file-manager/FileManagerAttachModal/FileManagerAttachModal.tsx
427
- var j = s(({ isOpen: e, onClose: t, onAttach: n, onSkippedUnsupportedFiles: o, onCountLimitExceeded: s, controller: l, isAnyOperationInProgress: d, activeTab: f, tabs: ee, onTabChange: te, labels: h, variant: ne, actionProfile: _, selectedPaths: v, onSelectedPathsChange: y, resolveFolderPath: x, isFileTypeAllowed: S, maxSelectableFileSize: C, maximumAttachmentsAmount: w, existingAttachmentsAmount: T = 0, isRowSelectable: E, getDisabledTooltip: D, unsupportedFileTypeTooltip: O, allowedFileTypes: k, autoSelectUploadedItems: j = !1 }) => {
428
- let { items: M, isLoading: re, searchResults: N } = l, P = u(() => {
429
- let e = /* @__PURE__ */ new Map(), t = (n) => {
430
- n.forEach((n) => {
431
- (n.nodeType === g.ITEM || n.nodeType === g.FOLDER) && (e.set(n.path, n), n.id && e.set(n.id, n)), n.items && t(n.items);
432
- });
433
- };
434
- return t(M), N?.forEach((t) => {
435
- e.set(t.path, t), t.id && e.set(t.id, t);
436
- }), e;
437
- }, [M, N]), F = u(() => Array.from(v).map((e) => P.get(e)).filter((e) => e != null), [P, v]), I = c(() => {
438
- let e = [], t = [];
439
- for (let n of F) b(n.path) || (n.nodeType === g.FOLDER ? e.push(n.path) : t.push(n));
440
- let r = e.filter((t) => !e.some((e) => e !== t && t.startsWith(`${e}/`))), i = t.filter((e) => !(b(e.path) || S != null && e.contentType != null && !S(e.contentType))), a = i.filter((e) => !r.some((t) => e.path.startsWith(`${t}/`)));
441
- t.length - i.length > 0 && o?.();
442
- let c = r.flatMap((e) => {
443
- let t = P.get(e);
444
- if (t == null) return [];
445
- let n = x(t);
446
- return n == null ? [] : [n];
447
- }), l = T + a.length + c.length;
448
- if (w != null && w > 0 && l > w) {
449
- s?.(l, w);
450
- return;
451
- }
452
- n({
453
- files: a,
454
- folderPaths: c
455
- });
456
- }, [
457
- n,
458
- o,
459
- s,
460
- F,
461
- S,
462
- w,
463
- T,
464
- P,
465
- x
466
- ]), { title: L, attachLabel: R, headerDescription: z, ...B } = h;
467
- return /* @__PURE__ */ p(r, {
468
- open: e,
469
- header: /* @__PURE__ */ m("div", {
470
- className: "flex flex-col gap-1",
471
- children: [/* @__PURE__ */ p("span", { children: L }), z != null && /* @__PURE__ */ p("p", {
472
- className: "dial-small-text text-start",
473
- children: z
474
- })]
475
- }),
476
- ariaLabel: L,
477
- size: i.Lg,
478
- className: "flex !h-[min(800px,100dvh)] w-full flex-col !bg-layer-sunken",
479
- onClose: t,
480
- footer: /* @__PURE__ */ p("div", {
481
- className: "flex justify-end px-6 py-4",
482
- children: /* @__PURE__ */ p(a, {
483
- label: R,
484
- disabled: F.length === 0 || re || d,
485
- onClick: I
486
- })
487
- }),
488
- children: /* @__PURE__ */ p("div", {
489
- className: "flex min-h-0 flex-col",
490
- children: /* @__PURE__ */ p(A, {
491
- controller: l,
492
- labels: B,
493
- activeTab: f,
494
- tabs: ee,
495
- onTabChange: te,
496
- selectedPaths: v,
497
- onSelectedPathsChange: y,
498
- variant: ne,
499
- actionProfile: _,
500
- autoSelectUploadedItems: j,
501
- allowedFileTypes: k,
502
- maxSelectableFileSize: C,
503
- isRowSelectable: E,
504
- getDisabledTooltip: D,
505
- unsupportedFileTypeTooltip: O
506
- })
507
- })
508
- });
509
- });
510
- j.displayName = "FileManagerAttachModal";
511
- //#endregion
512
- export { E as a, b as c, D as i, y as l, A as n, S as o, O as r, x as s, j as t, v as u };
@@ -1,17 +0,0 @@
1
- import { ElementSize } from '@epam/ai-dial-ui-kit';
2
- import { FC, ReactNode } from 'react';
3
- export interface CopyButtonProps {
4
- onClick: () => void;
5
- className?: string;
6
- isCopied: boolean;
7
- copyLabel: string;
8
- copiedLabel: string;
9
- size?: ElementSize;
10
- /** Accessible label for the button; falls back to `copyLabel` when omitted. */
11
- ariaLabel?: string;
12
- iconSize?: number;
13
- iconCopy?: ReactNode;
14
- }
15
- export declare const CopyIconButton: FC<CopyButtonProps>;
16
- export declare const CopyButton: FC<CopyButtonProps>;
17
- //# sourceMappingURL=CopyButton.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CopyButton.d.ts","sourceRoot":"","sources":["../../../src/components/CopyButton/CopyButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EAGZ,MAAM,sBAAsB,CAAC;AAE9B,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtC,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,+EAA+E;IAC/E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB;AACD,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,eAAe,CAqC9C,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CA8B1C,CAAC"}
@@ -1,36 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- /** CSS custom-property overrides for the `DeploymentIcon` component. */
3
- export interface DeploymentIconColors {
4
- /** Badge background color. */
5
- background?: string;
6
- }
7
- /** User-visible strings for `DeploymentIcon`. */
8
- export interface DeploymentIconLabels {
9
- /** When provided, a tooltip with this text is shown on hover/focus. */
10
- tooltip?: string;
11
- }
12
- /** Style overrides for `DeploymentIcon`. */
13
- export interface DeploymentIconStyles {
14
- /** Color overrides applied as CSS custom properties. */
15
- colors?: DeploymentIconColors;
16
- /** Extra class applied to the outer badge wrapper, e.g. for a custom background variable. */
17
- badgeClassName?: string;
18
- }
19
- /** Props for `DeploymentIcon`. */
20
- export interface DeploymentIconProps {
21
- /** Image URL to display. When absent the fallback is shown directly. */
22
- src?: string;
23
- /** Outer badge dimension in pixels. */
24
- size: number;
25
- /** Display name used to generate initials when no image is available. */
26
- initialsName: string;
27
- /** Custom node rendered when `src` is absent or the image fails to load. Overrides `initialsName`. */
28
- fallback?: ReactNode;
29
- /** User-visible strings. */
30
- labels?: DeploymentIconLabels;
31
- /** Style overrides. */
32
- styles?: DeploymentIconStyles;
33
- }
34
- /** Renders a deployment icon inside a rounded badge, falling back to initials or a custom node when no image is available. */
35
- export declare const DeploymentIcon: FC<DeploymentIconProps>;
36
- //# sourceMappingURL=DeploymentIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeploymentIcon.d.ts","sourceRoot":"","sources":["../../../src/components/DeploymentIcon/DeploymentIcon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,SAAS,EAA+B,MAAM,OAAO,CAAC;AAM7E,wEAAwE;AACxE,MAAM,WAAW,oBAAoB;IACnC,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,iDAAiD;AACjD,MAAM,WAAW,oBAAoB;IACnC,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,4CAA4C;AAC5C,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,6FAA6F;IAC7F,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,wEAAwE;IACxE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,yEAAyE;IACzE,YAAY,EAAE,MAAM,CAAC;IACrB,sGAAsG;IACtG,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,oBAAoB,CAAC;IAC9B,uBAAuB;IACvB,MAAM,CAAC,EAAE,oBAAoB,CAAC;CAC/B;AAED,8HAA8H;AAC9H,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CA8FlD,CAAC"}
@@ -1,34 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- import { EntityHeaderItem } from '../../models/entity';
3
- /** Props for EntityHeader. */
4
- export interface EntityHeaderProps {
5
- /** The entity to display. */
6
- item: EntityHeaderItem;
7
- /** Typography CSS class for the item name. Falls back to `ItemHeader`'s own default when omitted. */
8
- nameClassName?: string;
9
- /** CSS class for the entity type label. Default: 'dial-caption-lead-semi-text'. */
10
- typeClassName?: string;
11
- /** CSS class applied to the icon badge, e.g. to set border-radius. Default: 'rounded-[14px]'. */
12
- iconBadgeClassName?: string;
13
- /** Typography CSS class for the version text. Falls back to `ItemHeader`'s own default when omitted. */
14
- versionClassName?: string;
15
- /** Whether to show `item.version` next to the title. Default: true. */
16
- showVersion?: boolean;
17
- /** Label for the featured tag shown when item.isFeatured is true. Default: 'Featured'. */
18
- featuredLabel?: string;
19
- /** Whether to render the featured tag. Default: true. */
20
- hasFeaturedTag?: boolean;
21
- /** Size of the deployment icon. Default: 48. */
22
- iconSize?: number;
23
- /** Search query string; when provided, matching text in the title is highlighted. */
24
- query?: string;
25
- /** Content pinned to the bottom of the text column via `mt-auto`, aligning its baseline with the avatar bottom. When provided, the column stretches to fill the icon height exactly. */
26
- footer?: ReactNode;
27
- /** CSS class for the featured chip. */
28
- featuredChipClassName?: string;
29
- /** Arbitrary badge rendered before the featured chip, in the same top-end corner. Omitted (the default) renders nothing in that slot. */
30
- statusBadge?: ReactNode;
31
- }
32
- /** Reusable entity identity block: deployment icon, type label, name, version, and optional featured chip. */
33
- export declare const EntityHeader: FC<EntityHeaderProps>;
34
- //# sourceMappingURL=EntityHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EntityHeader.d.ts","sourceRoot":"","sources":["../../../src/components/EntityHeader/EntityHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAO5D,8BAA8B;AAC9B,MAAM,WAAW,iBAAiB;IAChC,6BAA6B;IAC7B,IAAI,EAAE,gBAAgB,CAAC;IACvB,qGAAqG;IACrG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mFAAmF;IACnF,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iGAAiG;IACjG,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,wGAAwG;IACxG,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,uEAAuE;IACvE,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0FAA0F;IAC1F,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qFAAqF;IACrF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wLAAwL;IACxL,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,uCAAuC;IACvC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,yIAAyI;IACzI,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB;AAED,8GAA8G;AAC9G,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAwD9C,CAAC"}
@@ -1,16 +0,0 @@
1
- import { FC } from 'react';
2
- import { CatalogEntityType } from '../../types/entity-type';
3
- /** Props for EntityTypeLabel. */
4
- export interface EntityTypeLabelProps {
5
- /** Entity category — resolves the label's color via ENTITY_TYPE_COLOR. */
6
- type: CatalogEntityType;
7
- /** CSS class for the label text. Default: 'dial-caption-lead-semi-text'. */
8
- className?: string;
9
- }
10
- /**
11
- * Entity type label rendered as plain uppercase text — no pill, no background.
12
- * Shared by the card grid (via AppIdentity) and the list view, so both
13
- * densities of the catalog use the same type treatment.
14
- */
15
- export declare const EntityTypeLabel: FC<EntityTypeLabelProps>;
16
- //# sourceMappingURL=EntityTypeLabel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EntityTypeLabel.d.ts","sourceRoot":"","sources":["../../../src/components/EntityTypeLabel/EntityTypeLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAE3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,iCAAiC;AACjC,MAAM,WAAW,oBAAoB;IACnC,0EAA0E;IAC1E,IAAI,EAAE,iBAAiB,CAAC;IACxB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAOpD,CAAC"}
@@ -1,14 +0,0 @@
1
- import { FC } from 'react';
2
- import { CatalogEntityType } from '../../types/entity-type';
3
- /** Props for `FeaturedChip`. */
4
- export interface FeaturedChipProps {
5
- /** Label text shown inside the chip. */
6
- label: string;
7
- /** Additional CSS class for typography overrides. */
8
- className?: string;
9
- /** Entity category — resolves the label's color via ENTITY_TYPE_COLOR. */
10
- type: CatalogEntityType;
11
- }
12
- /** Featured badge rendered on a catalog card when `item.isFeatured` is true. */
13
- export declare const FeaturedChip: FC<FeaturedChipProps>;
14
- //# sourceMappingURL=FeaturedChip.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FeaturedChip.d.ts","sourceRoot":"","sources":["../../../src/components/FeaturedChip/FeaturedChip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAK3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAG5D,gCAAgC;AAChC,MAAM,WAAW,iBAAiB;IAChC,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,qDAAqD;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,IAAI,EAAE,iBAAiB,CAAC;CACzB;AAED,gFAAgF;AAChF,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAoB9C,CAAC"}
@@ -1,15 +0,0 @@
1
- import { FC } from 'react';
2
- /** Props for `InitialsAvatar`. */
3
- export interface InitialsAvatarProps {
4
- /** Display name from which initials are derived. Empty string renders `"?"`. */
5
- name: string;
6
- /** Badge width and height in pixels. */
7
- size: number;
8
- /** Extra classes applied to the root element (e.g. `'shrink-0'`). */
9
- className?: string;
10
- /** Extra classes applied to the initials text element (e.g. `'dial-h3-text'`). */
11
- textClassName?: string;
12
- }
13
- /** A square badge showing 1–2 initials derived from `name` on a deterministic colour background. */
14
- export declare const InitialsAvatar: FC<InitialsAvatarProps>;
15
- //# sourceMappingURL=InitialsAvatar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InitialsAvatar.d.ts","sourceRoot":"","sources":["../../../src/components/InitialsAvatar/InitialsAvatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAOhC,kCAAkC;AAClC,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,oGAAoG;AACpG,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAiClD,CAAC"}