@carbon/ai-chat-components 1.9.0 → 1.10.0-rc.0

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 (554) hide show
  1. package/custom-elements.json +2362 -2201
  2. package/es/components/audio-player/src/audio-player.js.map +1 -1
  3. package/es/components/audio-player/src/audio-player.scss.js.map +1 -1
  4. package/es/components/audio-player/src/providers/base-provider.js.map +1 -1
  5. package/es/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
  6. package/es/components/audio-player/src/providers/soundcloud-provider.js.map +1 -1
  7. package/es/components/audio-player/src/transcript.js.map +1 -1
  8. package/es/components/audio-player/src/transcript.scss.js.map +1 -1
  9. package/es/components/audio-player/src/utils/url-detector.js.map +1 -1
  10. package/es/components/card/src/card-footer.js.map +1 -1
  11. package/es/components/card/src/card-footer.scss.js.map +1 -1
  12. package/es/components/card/src/card-steps.js.map +1 -1
  13. package/es/components/card/src/card-steps.scss.js.map +1 -1
  14. package/es/components/card/src/card.js.map +1 -1
  15. package/es/components/card/src/card.scss.js.map +1 -1
  16. package/es/components/carousel/src/carousel.js.map +1 -1
  17. package/es/components/carousel/src/carousel.scss.js.map +1 -1
  18. package/es/components/chain-of-thought/defs.js.map +1 -1
  19. package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
  20. package/es/components/chain-of-thought/src/chain-of-thought-step.scss.js.map +1 -1
  21. package/es/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
  22. package/es/components/chain-of-thought/src/chain-of-thought-toggle.scss.js.map +1 -1
  23. package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
  24. package/es/components/chain-of-thought/src/chain-of-thought.scss.js.map +1 -1
  25. package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
  26. package/es/components/chain-of-thought/src/tool-call-data.scss.js.map +1 -1
  27. package/es/components/chat-button/defs.js.map +1 -1
  28. package/es/components/chat-button/index.d.ts +1 -0
  29. package/es/components/chat-button/index.js +1 -0
  30. package/es/components/chat-button/index.js.map +1 -1
  31. package/es/components/chat-button/src/chat-button-skeleton.d.ts +30 -0
  32. package/es/components/chat-button/src/chat-button-skeleton.js +41 -0
  33. package/es/components/chat-button/src/chat-button-skeleton.js.map +1 -0
  34. package/es/components/chat-button/src/chat-button.d.ts +4 -1
  35. package/es/components/chat-button/src/chat-button.js +30 -2
  36. package/es/components/chat-button/src/chat-button.js.map +1 -1
  37. package/es/components/chat-button/src/chat-button.scss.js +1 -1
  38. package/es/components/chat-button/src/chat-button.scss.js.map +1 -1
  39. package/es/components/chat-history/src/chat-history.scss.js +1 -1
  40. package/es/components/chat-history/src/chat-history.scss.js.map +1 -1
  41. package/es/components/chat-history/src/history-content.js.map +1 -1
  42. package/es/components/chat-history/src/history-delete-panel.js +1 -0
  43. package/es/components/chat-history/src/history-delete-panel.js.map +1 -1
  44. package/es/components/chat-history/src/history-header.js.map +1 -1
  45. package/es/components/chat-history/src/history-loading.js.map +1 -1
  46. package/es/components/chat-history/src/history-panel-item-input.js.map +1 -1
  47. package/es/components/chat-history/src/history-panel-item.js.map +1 -1
  48. package/es/components/chat-history/src/history-panel-items.js.map +1 -1
  49. package/es/components/chat-history/src/history-panel-menu.js.map +1 -1
  50. package/es/components/chat-history/src/history-panel.js.map +1 -1
  51. package/es/components/chat-history/src/history-search-item.js.map +1 -1
  52. package/es/components/chat-history/src/history-shell.js.map +1 -1
  53. package/es/components/chat-history/src/history-toolbar.js.map +1 -1
  54. package/es/components/chat-shell/src/chat-header.js.map +1 -1
  55. package/es/components/chat-shell/src/chat-header.scss.js.map +1 -1
  56. package/es/components/chat-shell/src/corner-manager.js.map +1 -1
  57. package/es/components/chat-shell/src/initialization-manager.js.map +1 -1
  58. package/es/components/chat-shell/src/panel-manager.js.map +1 -1
  59. package/es/components/chat-shell/src/panel.js.map +1 -1
  60. package/es/components/chat-shell/src/panel.scss.js.map +1 -1
  61. package/es/components/chat-shell/src/resize-observer-manager.js.map +1 -1
  62. package/es/components/chat-shell/src/shell.js.map +1 -1
  63. package/es/components/chat-shell/src/shell.scss.js.map +1 -1
  64. package/es/components/chat-shell/src/slot-observer.js.map +1 -1
  65. package/es/components/chat-shell/src/workspace-manager-utils.js.map +1 -1
  66. package/es/components/chat-shell/src/workspace-manager.js.map +1 -1
  67. package/es/components/code-snippet/src/code-snippet.js.map +1 -1
  68. package/es/components/code-snippet/src/code-snippet.scss.js.map +1 -1
  69. package/es/components/code-snippet/src/codemirror/base-setup.js.map +1 -1
  70. package/es/components/code-snippet/src/codemirror/codemirror-loader.js.map +1 -1
  71. package/es/components/code-snippet/src/codemirror/content-sync.js.map +1 -1
  72. package/es/components/code-snippet/src/codemirror/detect-language.js.map +1 -1
  73. package/es/components/code-snippet/src/codemirror/diff-decorator.js.map +1 -1
  74. package/es/components/code-snippet/src/codemirror/editor-manager.js.map +1 -1
  75. package/es/components/code-snippet/src/codemirror/language-controller.js.map +1 -1
  76. package/es/components/code-snippet/src/codemirror/language-data.js.map +1 -1
  77. package/es/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
  78. package/es/components/code-snippet/src/codemirror/marker-utils.js.map +1 -1
  79. package/es/components/code-snippet/src/codemirror/theme.js.map +1 -1
  80. package/es/components/code-snippet/src/dom-utils.js.map +1 -1
  81. package/es/components/code-snippet/src/formatters.js.map +1 -1
  82. package/es/components/code-snippet/src/layout-utils.js.map +1 -1
  83. package/es/components/code-snippet/src/streaming-manager.js.map +1 -1
  84. package/es/components/feedback/src/feedback-buttons.js.map +1 -1
  85. package/es/components/feedback/src/feedback-buttons.scss.js.map +1 -1
  86. package/es/components/feedback/src/feedback.js.map +1 -1
  87. package/es/components/feedback/src/feedback.scss.js.map +1 -1
  88. package/es/components/file-uploads/src/file-type-icon.js.map +1 -1
  89. package/es/components/file-uploads/src/file-upload-item.js.map +1 -1
  90. package/es/components/file-uploads/src/file-upload-item.scss.js.map +1 -1
  91. package/es/components/file-uploads/src/file-uploads.js.map +1 -1
  92. package/es/components/file-uploads/src/file-uploads.scss.js.map +1 -1
  93. package/es/components/launcher/src/launcher.js +1 -0
  94. package/es/components/launcher/src/launcher.js.map +1 -1
  95. package/es/components/launcher/src/launcher.scss.js +1 -1
  96. package/es/components/launcher/src/launcher.scss.js.map +1 -1
  97. package/es/components/markdown/src/markdown-renderer-types.d.ts +3 -14
  98. package/es/components/markdown/src/markdown-renderer.js +0 -4
  99. package/es/components/markdown/src/markdown-renderer.js.map +1 -1
  100. package/es/components/markdown/src/markdown-token-tree.d.ts +0 -2
  101. package/es/components/markdown/src/markdown-token-tree.js.map +1 -1
  102. package/es/components/markdown/src/markdown.js +0 -1
  103. package/es/components/markdown/src/markdown.js.map +1 -1
  104. package/es/components/markdown/src/markdown.scss.js.map +1 -1
  105. package/es/components/markdown/src/markdown.template.js.map +1 -1
  106. package/es/components/markdown/src/plugins/markdown-it-attrs.js +2 -3
  107. package/es/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -1
  108. package/es/components/markdown/src/plugins/markdown-it-highlight.js.map +1 -1
  109. package/es/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -1
  110. package/es/components/markdown/src/utils/html-helpers.js.map +1 -1
  111. package/es/components/markdown/src/utils/lit-directives.js.map +1 -1
  112. package/es/components/markdown/src/utils/plugin-fallback.js +0 -1
  113. package/es/components/markdown/src/utils/plugin-fallback.js.map +1 -1
  114. package/es/components/markdown/src/utils/slot-names.js.map +1 -1
  115. package/es/components/markdown/src/utils/streaming-table.js.map +1 -1
  116. package/es/components/markdown/src/utils/table-helpers.js +0 -1
  117. package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
  118. package/es/components/processing/src/processing.js.map +1 -1
  119. package/es/components/processing/src/processing.scss.js.map +1 -1
  120. package/es/components/prompt-line/autocomplete/src/autocomplete.d.ts +10 -3
  121. package/es/components/prompt-line/autocomplete/src/autocomplete.js +95 -48
  122. package/es/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -1
  123. package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js +1 -1
  124. package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js.map +1 -1
  125. package/es/components/prompt-line/index.d.ts +1 -1
  126. package/es/components/prompt-line/src/autocomplete-controller.d.ts +12 -1
  127. package/es/components/prompt-line/src/autocomplete-controller.js +42 -6
  128. package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -1
  129. package/es/components/prompt-line/src/error-message.js.map +1 -1
  130. package/es/components/prompt-line/src/error-message.scss.js.map +1 -1
  131. package/es/components/prompt-line/src/prompt-line-constants.js.map +1 -1
  132. package/es/components/prompt-line/src/prompt-line-controller.js.map +1 -1
  133. package/es/components/prompt-line/src/prompt-line-rich-loader.js.map +1 -1
  134. package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
  135. package/es/components/prompt-line/src/prompt-line-shell.js.map +1 -1
  136. package/es/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
  137. package/es/components/prompt-line/src/prompt-line-shell.scss.js.map +1 -1
  138. package/es/components/prompt-line/src/prompt-line.js.map +1 -1
  139. package/es/components/prompt-line/src/prompt-line.scss.js.map +1 -1
  140. package/es/components/prompt-line/src/send-control.js.map +1 -1
  141. package/es/components/prompt-line/src/send-control.scss.js.map +1 -1
  142. package/es/components/prompt-line/src/stop-streaming-button.js.map +1 -1
  143. package/es/components/prompt-line/src/stop-streaming-button.scss.js.map +1 -1
  144. package/es/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
  145. package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +1 -1
  146. package/es/components/prompt-line/src/tiptap/carbon-mention.js +1 -0
  147. package/es/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -1
  148. package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js +2 -3
  149. package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
  150. package/es/components/prompt-line/src/tiptap/chat-enter.js.map +1 -1
  151. package/es/components/prompt-line/src/tiptap/editor-styles.js.map +1 -1
  152. package/es/components/prompt-line/src/tiptap/extension-equivalence.js.map +1 -1
  153. package/es/components/prompt-line/src/tiptap/index.d.ts +1 -1
  154. package/es/components/prompt-line/src/tiptap/json-utils.js.map +1 -1
  155. package/es/components/prompt-line/src/tiptap/keymap.js.map +1 -1
  156. package/es/components/prompt-line/src/tiptap/origin-meta.js.map +1 -1
  157. package/es/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -1
  158. package/es/components/prompt-line/src/tiptap/render-in-light-dom.js.map +1 -1
  159. package/es/components/prompt-line/src/tiptap/render-token-chip.js.map +1 -1
  160. package/es/components/prompt-line/src/tiptap/token-node-view.js.map +1 -1
  161. package/es/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
  162. package/es/components/prompt-line/src/tiptap/types.d.ts +16 -3
  163. package/es/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -1
  164. package/es/components/prompt-line/src/tiptap/value-sync.js.map +1 -1
  165. package/es/components/prompt-line/src/types.js.map +1 -1
  166. package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
  167. package/es/components/reasoning-steps/src/reasoning-step.scss.js +1 -1
  168. package/es/components/reasoning-steps/src/reasoning-step.scss.js.map +1 -1
  169. package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
  170. package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js.map +1 -1
  171. package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
  172. package/es/components/reasoning-steps/src/reasoning-steps.scss.js +1 -1
  173. package/es/components/reasoning-steps/src/reasoning-steps.scss.js.map +1 -1
  174. package/es/components/shared/dynamic-css-var-sheet.js +24 -2
  175. package/es/components/shared/dynamic-css-var-sheet.js.map +1 -1
  176. package/es/components/shared/media-utils/script-loader.js.map +1 -1
  177. package/es/components/table/src/table-loader.js.map +1 -1
  178. package/es/components/table/src/table-pagination.template.js.map +1 -1
  179. package/es/components/table/src/table-skeleton.template.js.map +1 -1
  180. package/es/components/table/src/table.js.map +1 -1
  181. package/es/components/table/src/table.scss.js.map +1 -1
  182. package/es/components/table/src/table.template.js.map +1 -1
  183. package/es/components/toolbar/src/toolbar.js.map +1 -1
  184. package/es/components/toolbar/src/toolbar.scss.js +1 -1
  185. package/es/components/toolbar/src/toolbar.scss.js.map +1 -1
  186. package/es/components/truncated-text/src/truncated-text.js.map +1 -1
  187. package/es/components/truncated-text/src/truncated-text.scss.js.map +1 -1
  188. package/es/components/video-player/src/providers/base-provider.js.map +1 -1
  189. package/es/components/video-player/src/providers/kaltura-provider.js.map +1 -1
  190. package/es/components/video-player/src/providers/native-video-provider.js.map +1 -1
  191. package/es/components/video-player/src/providers/vimeo-provider.js.map +1 -1
  192. package/es/components/video-player/src/providers/youtube-provider.js.map +1 -1
  193. package/es/components/video-player/src/utils/url-detector.js.map +1 -1
  194. package/es/components/video-player/src/video-player.js.map +1 -1
  195. package/es/components/video-player/src/video-player.scss.js.map +1 -1
  196. package/es/components/workspace-shell/src/header-collapsible-manager.js.map +1 -1
  197. package/es/components/workspace-shell/src/workspace-shell-body.js.map +1 -1
  198. package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
  199. package/es/components/workspace-shell/src/workspace-shell-footer.scss.js.map +1 -1
  200. package/es/components/workspace-shell/src/workspace-shell-header.js +2 -1
  201. package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
  202. package/es/components/workspace-shell/src/workspace-shell-header.scss.js +1 -1
  203. package/es/components/workspace-shell/src/workspace-shell-header.scss.js.map +1 -1
  204. package/es/components/workspace-shell/src/workspace-shell.js.map +1 -1
  205. package/es/components/workspace-shell/src/workspace-shell.scss.js +1 -1
  206. package/es/components/workspace-shell/src/workspace-shell.scss.js.map +1 -1
  207. package/es/globals/decorators/carbon-element.js.map +1 -1
  208. package/es/globals/scss/common.scss.js.map +1 -1
  209. package/es/globals/settings.js.map +1 -1
  210. package/es/globals/utils/aria-announcer-manager.js.map +1 -1
  211. package/es/globals/utils/browser-utils.js.map +1 -1
  212. package/es/globals/utils/csv.js.map +1 -1
  213. package/es/globals/utils/dom-utils.js.map +1 -1
  214. package/es/globals/utils/focus-utils.js.map +1 -1
  215. package/es/globals/utils/iconTransform.js.map +1 -1
  216. package/es/globals/utils/rtl-utils.js.map +1 -1
  217. package/es/globals/utils/uuid.js.map +1 -1
  218. package/es/react/ai-label-action-button.js.map +1 -1
  219. package/es/react/audio-player.js.map +1 -1
  220. package/es/react/autocomplete.js.map +1 -1
  221. package/es/react/card.js.map +1 -1
  222. package/es/react/carousel.js.map +1 -1
  223. package/es/react/chain-of-thought-step.js.map +1 -1
  224. package/es/react/chain-of-thought-toggle.js.map +1 -1
  225. package/es/react/chain-of-thought.js.map +1 -1
  226. package/es/react/chat-button-skeleton.d.ts +11 -0
  227. package/es/react/chat-button-skeleton.js +28 -0
  228. package/es/react/chat-button-skeleton.js.map +1 -0
  229. package/es/react/chat-button.js.map +1 -1
  230. package/es/react/chat-header.js.map +1 -1
  231. package/es/react/chat-shell.js.map +1 -1
  232. package/es/react/code-snippet.d.ts +1 -1
  233. package/es/react/code-snippet.js +1 -1
  234. package/es/react/code-snippet.js.map +1 -1
  235. package/es/react/error-message.js.map +1 -1
  236. package/es/react/feedback-buttons.js.map +1 -1
  237. package/es/react/feedback.js.map +1 -1
  238. package/es/react/file-upload-item.js.map +1 -1
  239. package/es/react/file-uploads.js.map +1 -1
  240. package/es/react/history/history-content.js.map +1 -1
  241. package/es/react/history/history-delete-panel.js.map +1 -1
  242. package/es/react/history/history-header.js.map +1 -1
  243. package/es/react/history/history-loading.js.map +1 -1
  244. package/es/react/history/history-panel-item-input.js.map +1 -1
  245. package/es/react/history/history-panel-item.js.map +1 -1
  246. package/es/react/history/history-panel-items.js.map +1 -1
  247. package/es/react/history/history-panel-menu.js.map +1 -1
  248. package/es/react/history/history-panel.js.map +1 -1
  249. package/es/react/history/history-search-item.js.map +1 -1
  250. package/es/react/history/history-shell.js.map +1 -1
  251. package/es/react/history/history-toolbar.js.map +1 -1
  252. package/es/react/hooks/useChatAutocomplete.js +4 -3
  253. package/es/react/hooks/useChatAutocomplete.js.map +1 -1
  254. package/es/react/input-send-control.js.map +1 -1
  255. package/es/react/launcher.js.map +1 -1
  256. package/es/react/markdown.js.map +1 -1
  257. package/es/react/panel.js.map +1 -1
  258. package/es/react/processing.js.map +1 -1
  259. package/es/react/prompt-line-shell.js.map +1 -1
  260. package/es/react/prompt-line.js.map +1 -1
  261. package/es/react/reasoning-step.js.map +1 -1
  262. package/es/react/reasoning-steps-toggle.js.map +1 -1
  263. package/es/react/reasoning-steps.js.map +1 -1
  264. package/es/react/stop-streaming-button.js.map +1 -1
  265. package/es/react/table.js.map +1 -1
  266. package/es/react/tool-call-data.js.map +1 -1
  267. package/es/react/toolbar.js +1 -1
  268. package/es/react/toolbar.js.map +1 -1
  269. package/es/react/transcript.js.map +1 -1
  270. package/es/react/utils/transformSuggestionConfig.js.map +1 -1
  271. package/es/react/utils/withWebComponentBridge.js.map +1 -1
  272. package/es/react/video-player.js.map +1 -1
  273. package/es/react/workspace-shell.js.map +1 -1
  274. package/es/testing/PageObjectId.js.map +1 -1
  275. package/es/testing/load-all-lazy-deps.js.map +1 -1
  276. package/es-custom/components/audio-player/src/audio-player.js.map +1 -1
  277. package/es-custom/components/audio-player/src/audio-player.scss.js.map +1 -1
  278. package/es-custom/components/audio-player/src/providers/base-provider.js.map +1 -1
  279. package/es-custom/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
  280. package/es-custom/components/audio-player/src/providers/soundcloud-provider.js.map +1 -1
  281. package/es-custom/components/audio-player/src/transcript.js.map +1 -1
  282. package/es-custom/components/audio-player/src/transcript.scss.js.map +1 -1
  283. package/es-custom/components/audio-player/src/utils/url-detector.js.map +1 -1
  284. package/es-custom/components/card/src/card-footer.js.map +1 -1
  285. package/es-custom/components/card/src/card-footer.scss.js.map +1 -1
  286. package/es-custom/components/card/src/card-steps.js.map +1 -1
  287. package/es-custom/components/card/src/card-steps.scss.js.map +1 -1
  288. package/es-custom/components/card/src/card.js.map +1 -1
  289. package/es-custom/components/card/src/card.scss.js.map +1 -1
  290. package/es-custom/components/carousel/src/carousel.js.map +1 -1
  291. package/es-custom/components/carousel/src/carousel.scss.js.map +1 -1
  292. package/es-custom/components/chain-of-thought/defs.js.map +1 -1
  293. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
  294. package/es-custom/components/chain-of-thought/src/chain-of-thought-step.scss.js.map +1 -1
  295. package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
  296. package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.scss.js.map +1 -1
  297. package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
  298. package/es-custom/components/chain-of-thought/src/chain-of-thought.scss.js.map +1 -1
  299. package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +1 -1
  300. package/es-custom/components/chain-of-thought/src/tool-call-data.scss.js.map +1 -1
  301. package/es-custom/components/chat-button/defs.js.map +1 -1
  302. package/es-custom/components/chat-button/index.d.ts +1 -0
  303. package/es-custom/components/chat-button/index.js +1 -0
  304. package/es-custom/components/chat-button/index.js.map +1 -1
  305. package/es-custom/components/chat-button/src/chat-button-skeleton.d.ts +30 -0
  306. package/es-custom/components/chat-button/src/chat-button-skeleton.js +41 -0
  307. package/es-custom/components/chat-button/src/chat-button-skeleton.js.map +1 -0
  308. package/es-custom/components/chat-button/src/chat-button.d.ts +4 -1
  309. package/es-custom/components/chat-button/src/chat-button.js +30 -2
  310. package/es-custom/components/chat-button/src/chat-button.js.map +1 -1
  311. package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
  312. package/es-custom/components/chat-button/src/chat-button.scss.js.map +1 -1
  313. package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
  314. package/es-custom/components/chat-history/src/chat-history.scss.js.map +1 -1
  315. package/es-custom/components/chat-history/src/history-content.js.map +1 -1
  316. package/es-custom/components/chat-history/src/history-delete-panel.js +1 -0
  317. package/es-custom/components/chat-history/src/history-delete-panel.js.map +1 -1
  318. package/es-custom/components/chat-history/src/history-header.js.map +1 -1
  319. package/es-custom/components/chat-history/src/history-loading.js.map +1 -1
  320. package/es-custom/components/chat-history/src/history-panel-item-input.js.map +1 -1
  321. package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
  322. package/es-custom/components/chat-history/src/history-panel-items.js.map +1 -1
  323. package/es-custom/components/chat-history/src/history-panel-menu.js.map +1 -1
  324. package/es-custom/components/chat-history/src/history-panel.js.map +1 -1
  325. package/es-custom/components/chat-history/src/history-search-item.js.map +1 -1
  326. package/es-custom/components/chat-history/src/history-shell.js.map +1 -1
  327. package/es-custom/components/chat-history/src/history-toolbar.js.map +1 -1
  328. package/es-custom/components/chat-shell/src/chat-header.js.map +1 -1
  329. package/es-custom/components/chat-shell/src/chat-header.scss.js.map +1 -1
  330. package/es-custom/components/chat-shell/src/corner-manager.js.map +1 -1
  331. package/es-custom/components/chat-shell/src/initialization-manager.js.map +1 -1
  332. package/es-custom/components/chat-shell/src/panel-manager.js.map +1 -1
  333. package/es-custom/components/chat-shell/src/panel.js.map +1 -1
  334. package/es-custom/components/chat-shell/src/panel.scss.js.map +1 -1
  335. package/es-custom/components/chat-shell/src/resize-observer-manager.js.map +1 -1
  336. package/es-custom/components/chat-shell/src/shell.js.map +1 -1
  337. package/es-custom/components/chat-shell/src/shell.scss.js.map +1 -1
  338. package/es-custom/components/chat-shell/src/slot-observer.js.map +1 -1
  339. package/es-custom/components/chat-shell/src/workspace-manager-utils.js.map +1 -1
  340. package/es-custom/components/chat-shell/src/workspace-manager.js.map +1 -1
  341. package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
  342. package/es-custom/components/code-snippet/src/code-snippet.scss.js.map +1 -1
  343. package/es-custom/components/code-snippet/src/codemirror/base-setup.js.map +1 -1
  344. package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js.map +1 -1
  345. package/es-custom/components/code-snippet/src/codemirror/content-sync.js.map +1 -1
  346. package/es-custom/components/code-snippet/src/codemirror/detect-language.js.map +1 -1
  347. package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js.map +1 -1
  348. package/es-custom/components/code-snippet/src/codemirror/editor-manager.js.map +1 -1
  349. package/es-custom/components/code-snippet/src/codemirror/language-controller.js.map +1 -1
  350. package/es-custom/components/code-snippet/src/codemirror/language-data.js.map +1 -1
  351. package/es-custom/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
  352. package/es-custom/components/code-snippet/src/codemirror/marker-utils.js.map +1 -1
  353. package/es-custom/components/code-snippet/src/codemirror/theme.js.map +1 -1
  354. package/es-custom/components/code-snippet/src/dom-utils.js.map +1 -1
  355. package/es-custom/components/code-snippet/src/formatters.js.map +1 -1
  356. package/es-custom/components/code-snippet/src/layout-utils.js.map +1 -1
  357. package/es-custom/components/code-snippet/src/streaming-manager.js.map +1 -1
  358. package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
  359. package/es-custom/components/feedback/src/feedback-buttons.scss.js.map +1 -1
  360. package/es-custom/components/feedback/src/feedback.js.map +1 -1
  361. package/es-custom/components/feedback/src/feedback.scss.js.map +1 -1
  362. package/es-custom/components/file-uploads/src/file-type-icon.js.map +1 -1
  363. package/es-custom/components/file-uploads/src/file-upload-item.js.map +1 -1
  364. package/es-custom/components/file-uploads/src/file-upload-item.scss.js.map +1 -1
  365. package/es-custom/components/file-uploads/src/file-uploads.js.map +1 -1
  366. package/es-custom/components/file-uploads/src/file-uploads.scss.js.map +1 -1
  367. package/es-custom/components/launcher/src/launcher.js +1 -0
  368. package/es-custom/components/launcher/src/launcher.js.map +1 -1
  369. package/es-custom/components/launcher/src/launcher.scss.js +1 -1
  370. package/es-custom/components/launcher/src/launcher.scss.js.map +1 -1
  371. package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +3 -14
  372. package/es-custom/components/markdown/src/markdown-renderer.js +0 -4
  373. package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
  374. package/es-custom/components/markdown/src/markdown-token-tree.d.ts +0 -2
  375. package/es-custom/components/markdown/src/markdown-token-tree.js.map +1 -1
  376. package/es-custom/components/markdown/src/markdown.js +0 -1
  377. package/es-custom/components/markdown/src/markdown.js.map +1 -1
  378. package/es-custom/components/markdown/src/markdown.scss.js.map +1 -1
  379. package/es-custom/components/markdown/src/markdown.template.js.map +1 -1
  380. package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js +2 -3
  381. package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -1
  382. package/es-custom/components/markdown/src/plugins/markdown-it-highlight.js.map +1 -1
  383. package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -1
  384. package/es-custom/components/markdown/src/utils/html-helpers.js.map +1 -1
  385. package/es-custom/components/markdown/src/utils/lit-directives.js.map +1 -1
  386. package/es-custom/components/markdown/src/utils/plugin-fallback.js +0 -1
  387. package/es-custom/components/markdown/src/utils/plugin-fallback.js.map +1 -1
  388. package/es-custom/components/markdown/src/utils/slot-names.js.map +1 -1
  389. package/es-custom/components/markdown/src/utils/streaming-table.js.map +1 -1
  390. package/es-custom/components/markdown/src/utils/table-helpers.js +0 -1
  391. package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -1
  392. package/es-custom/components/processing/src/processing.js.map +1 -1
  393. package/es-custom/components/processing/src/processing.scss.js.map +1 -1
  394. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.d.ts +10 -3
  395. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js +95 -48
  396. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -1
  397. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js +1 -1
  398. package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js.map +1 -1
  399. package/es-custom/components/prompt-line/index.d.ts +1 -1
  400. package/es-custom/components/prompt-line/src/autocomplete-controller.d.ts +12 -1
  401. package/es-custom/components/prompt-line/src/autocomplete-controller.js +42 -6
  402. package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +1 -1
  403. package/es-custom/components/prompt-line/src/error-message.js.map +1 -1
  404. package/es-custom/components/prompt-line/src/error-message.scss.js.map +1 -1
  405. package/es-custom/components/prompt-line/src/prompt-line-constants.js.map +1 -1
  406. package/es-custom/components/prompt-line/src/prompt-line-controller.js.map +1 -1
  407. package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js.map +1 -1
  408. package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
  409. package/es-custom/components/prompt-line/src/prompt-line-shell.js.map +1 -1
  410. package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
  411. package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js.map +1 -1
  412. package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -1
  413. package/es-custom/components/prompt-line/src/prompt-line.scss.js.map +1 -1
  414. package/es-custom/components/prompt-line/src/send-control.js.map +1 -1
  415. package/es-custom/components/prompt-line/src/send-control.scss.js.map +1 -1
  416. package/es-custom/components/prompt-line/src/stop-streaming-button.js.map +1 -1
  417. package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js.map +1 -1
  418. package/es-custom/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
  419. package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +1 -1
  420. package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js +1 -0
  421. package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -1
  422. package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js +2 -3
  423. package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
  424. package/es-custom/components/prompt-line/src/tiptap/chat-enter.js.map +1 -1
  425. package/es-custom/components/prompt-line/src/tiptap/editor-styles.js.map +1 -1
  426. package/es-custom/components/prompt-line/src/tiptap/extension-equivalence.js.map +1 -1
  427. package/es-custom/components/prompt-line/src/tiptap/index.d.ts +1 -1
  428. package/es-custom/components/prompt-line/src/tiptap/json-utils.js.map +1 -1
  429. package/es-custom/components/prompt-line/src/tiptap/keymap.js.map +1 -1
  430. package/es-custom/components/prompt-line/src/tiptap/origin-meta.js.map +1 -1
  431. package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -1
  432. package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js.map +1 -1
  433. package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js.map +1 -1
  434. package/es-custom/components/prompt-line/src/tiptap/token-node-view.js.map +1 -1
  435. package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
  436. package/es-custom/components/prompt-line/src/tiptap/types.d.ts +16 -3
  437. package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -1
  438. package/es-custom/components/prompt-line/src/tiptap/value-sync.js.map +1 -1
  439. package/es-custom/components/prompt-line/src/types.js.map +1 -1
  440. package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
  441. package/es-custom/components/reasoning-steps/src/reasoning-step.scss.js +1 -1
  442. package/es-custom/components/reasoning-steps/src/reasoning-step.scss.js.map +1 -1
  443. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
  444. package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.scss.js.map +1 -1
  445. package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
  446. package/es-custom/components/reasoning-steps/src/reasoning-steps.scss.js +1 -1
  447. package/es-custom/components/reasoning-steps/src/reasoning-steps.scss.js.map +1 -1
  448. package/es-custom/components/shared/dynamic-css-var-sheet.js +24 -2
  449. package/es-custom/components/shared/dynamic-css-var-sheet.js.map +1 -1
  450. package/es-custom/components/shared/media-utils/script-loader.js.map +1 -1
  451. package/es-custom/components/table/src/table-loader.js.map +1 -1
  452. package/es-custom/components/table/src/table-pagination.template.js.map +1 -1
  453. package/es-custom/components/table/src/table-skeleton.template.js.map +1 -1
  454. package/es-custom/components/table/src/table.js.map +1 -1
  455. package/es-custom/components/table/src/table.scss.js.map +1 -1
  456. package/es-custom/components/table/src/table.template.js.map +1 -1
  457. package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
  458. package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
  459. package/es-custom/components/toolbar/src/toolbar.scss.js.map +1 -1
  460. package/es-custom/components/truncated-text/src/truncated-text.js.map +1 -1
  461. package/es-custom/components/truncated-text/src/truncated-text.scss.js.map +1 -1
  462. package/es-custom/components/video-player/src/providers/base-provider.js.map +1 -1
  463. package/es-custom/components/video-player/src/providers/kaltura-provider.js.map +1 -1
  464. package/es-custom/components/video-player/src/providers/native-video-provider.js.map +1 -1
  465. package/es-custom/components/video-player/src/providers/vimeo-provider.js.map +1 -1
  466. package/es-custom/components/video-player/src/providers/youtube-provider.js.map +1 -1
  467. package/es-custom/components/video-player/src/utils/url-detector.js.map +1 -1
  468. package/es-custom/components/video-player/src/video-player.js.map +1 -1
  469. package/es-custom/components/video-player/src/video-player.scss.js.map +1 -1
  470. package/es-custom/components/workspace-shell/src/header-collapsible-manager.js.map +1 -1
  471. package/es-custom/components/workspace-shell/src/workspace-shell-body.js.map +1 -1
  472. package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
  473. package/es-custom/components/workspace-shell/src/workspace-shell-footer.scss.js.map +1 -1
  474. package/es-custom/components/workspace-shell/src/workspace-shell-header.js +2 -1
  475. package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
  476. package/es-custom/components/workspace-shell/src/workspace-shell-header.scss.js +1 -1
  477. package/es-custom/components/workspace-shell/src/workspace-shell-header.scss.js.map +1 -1
  478. package/es-custom/components/workspace-shell/src/workspace-shell.js.map +1 -1
  479. package/es-custom/components/workspace-shell/src/workspace-shell.scss.js +1 -1
  480. package/es-custom/components/workspace-shell/src/workspace-shell.scss.js.map +1 -1
  481. package/es-custom/globals/decorators/carbon-element.js.map +1 -1
  482. package/es-custom/globals/scss/common.scss.js.map +1 -1
  483. package/es-custom/globals/settings.js.map +1 -1
  484. package/es-custom/globals/utils/aria-announcer-manager.js.map +1 -1
  485. package/es-custom/globals/utils/browser-utils.js.map +1 -1
  486. package/es-custom/globals/utils/csv.js.map +1 -1
  487. package/es-custom/globals/utils/dom-utils.js.map +1 -1
  488. package/es-custom/globals/utils/focus-utils.js.map +1 -1
  489. package/es-custom/globals/utils/iconTransform.js.map +1 -1
  490. package/es-custom/globals/utils/rtl-utils.js.map +1 -1
  491. package/es-custom/globals/utils/uuid.js.map +1 -1
  492. package/es-custom/react/ai-label-action-button.js.map +1 -1
  493. package/es-custom/react/audio-player.js.map +1 -1
  494. package/es-custom/react/autocomplete.js.map +1 -1
  495. package/es-custom/react/card.js.map +1 -1
  496. package/es-custom/react/carousel.js.map +1 -1
  497. package/es-custom/react/chain-of-thought-step.js.map +1 -1
  498. package/es-custom/react/chain-of-thought-toggle.js.map +1 -1
  499. package/es-custom/react/chain-of-thought.js.map +1 -1
  500. package/es-custom/react/chat-button-skeleton.d.ts +11 -0
  501. package/es-custom/react/chat-button-skeleton.js +28 -0
  502. package/es-custom/react/chat-button-skeleton.js.map +1 -0
  503. package/es-custom/react/chat-button.js.map +1 -1
  504. package/es-custom/react/chat-header.js.map +1 -1
  505. package/es-custom/react/chat-shell.js.map +1 -1
  506. package/es-custom/react/code-snippet.d.ts +1 -1
  507. package/es-custom/react/code-snippet.js +1 -1
  508. package/es-custom/react/code-snippet.js.map +1 -1
  509. package/es-custom/react/error-message.js.map +1 -1
  510. package/es-custom/react/feedback-buttons.js.map +1 -1
  511. package/es-custom/react/feedback.js.map +1 -1
  512. package/es-custom/react/file-upload-item.js.map +1 -1
  513. package/es-custom/react/file-uploads.js.map +1 -1
  514. package/es-custom/react/history/history-content.js.map +1 -1
  515. package/es-custom/react/history/history-delete-panel.js.map +1 -1
  516. package/es-custom/react/history/history-header.js.map +1 -1
  517. package/es-custom/react/history/history-loading.js.map +1 -1
  518. package/es-custom/react/history/history-panel-item-input.js.map +1 -1
  519. package/es-custom/react/history/history-panel-item.js.map +1 -1
  520. package/es-custom/react/history/history-panel-items.js.map +1 -1
  521. package/es-custom/react/history/history-panel-menu.js.map +1 -1
  522. package/es-custom/react/history/history-panel.js.map +1 -1
  523. package/es-custom/react/history/history-search-item.js.map +1 -1
  524. package/es-custom/react/history/history-shell.js.map +1 -1
  525. package/es-custom/react/history/history-toolbar.js.map +1 -1
  526. package/es-custom/react/hooks/useChatAutocomplete.js +4 -3
  527. package/es-custom/react/hooks/useChatAutocomplete.js.map +1 -1
  528. package/es-custom/react/input-send-control.js.map +1 -1
  529. package/es-custom/react/launcher.js.map +1 -1
  530. package/es-custom/react/markdown.js.map +1 -1
  531. package/es-custom/react/panel.js.map +1 -1
  532. package/es-custom/react/processing.js.map +1 -1
  533. package/es-custom/react/prompt-line-shell.js.map +1 -1
  534. package/es-custom/react/prompt-line.js.map +1 -1
  535. package/es-custom/react/reasoning-step.js.map +1 -1
  536. package/es-custom/react/reasoning-steps-toggle.js.map +1 -1
  537. package/es-custom/react/reasoning-steps.js.map +1 -1
  538. package/es-custom/react/stop-streaming-button.js.map +1 -1
  539. package/es-custom/react/table.js.map +1 -1
  540. package/es-custom/react/tool-call-data.js.map +1 -1
  541. package/es-custom/react/toolbar.js +1 -1
  542. package/es-custom/react/toolbar.js.map +1 -1
  543. package/es-custom/react/transcript.js.map +1 -1
  544. package/es-custom/react/utils/transformSuggestionConfig.js.map +1 -1
  545. package/es-custom/react/utils/withWebComponentBridge.js.map +1 -1
  546. package/es-custom/react/video-player.js.map +1 -1
  547. package/es-custom/react/workspace-shell.js.map +1 -1
  548. package/es-custom/testing/PageObjectId.js.map +1 -1
  549. package/es-custom/testing/load-all-lazy-deps.js.map +1 -1
  550. package/package.json +3 -3
  551. package/es/react/__tests__/jest.setup.js +0 -82
  552. package/es/react/__tests__/jest.setup.js.map +0 -1
  553. package/es-custom/react/__tests__/jest.setup.js +0 -82
  554. package/es-custom/react/__tests__/jest.setup.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"reasoning-steps.js","sources":["../../../../src/components/reasoning-steps/src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AE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;AAChD,CAAA,EAAA,uBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAGb,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE;AAChD,CAAA,EAAA,uBAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAPf,uBAAuB,GAAA,UAAA,CAAA;AAD5B,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,gBAAA,CAAkB;AACpC,CAAA,EAAA,uBAAuB,CA0J5B;AASD,gCAAe,uBAAuB;;;;"}
1
+ {"version":3,"file":"reasoning-steps.js","sources":["../../../../src/components/reasoning-steps/src/reasoning-steps.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { LitElement, html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport commonStyles from '../../../globals/scss/common.scss?lit';\nimport styles from './reasoning-steps.scss?lit';\nimport prefix from '../../../globals/settings.js';\nimport { carbonElement } from '../../../globals/decorators';\n\nconst baseClass = `${prefix}--reasoning-steps`;\nconst stepSelector = `${prefix}-reasoning-step`;\n\n/**\n * Reasoning steps container component\n * @element cds-custom-aichat-reasoning-steps\n */\n@carbonElement(`${prefix}-reasoning-steps`)\nclass CDSAIChatReasoningSteps extends LitElement {\n static styles = [commonStyles, styles];\n\n @property({ type: Boolean, attribute: 'open', reflect: true })\n open = false;\n\n @property({ type: Boolean, attribute: 'controlled', reflect: true })\n controlled = false;\n\n connectedCallback() {\n super.connectedCallback();\n }\n\n /**\n * Announce a collapse synchronously, from `attributeChangedCallback`, so consumers can react\n * within the same task — before the browser lays out and paints the smaller container.\n *\n * This cannot be done from Lit's `willUpdate`/`updated`: the host sets the `open` attribute\n * directly, so the CSS collapse applies the moment the attribute lands, whereas Lit's update\n * is async (microtask). By then the element already measures 0 and any consumer reacting to\n * the shrink is a frame late — which is exactly what produces a visible one-frame jump.\n */\n attributeChangedCallback(\n name: string,\n old: string | null,\n value: string | null\n ) {\n if (name === 'open' && old !== null && value === null) {\n this.dispatchEvent(\n new CustomEvent('reasoning-animation-start', {\n bubbles: true,\n composed: true,\n detail: { open: false },\n })\n );\n }\n super.attributeChangedCallback(name, old, value);\n }\n\n updated(changedProperties: Map<PropertyKey, unknown>) {\n if (changedProperties.has('controlled')) {\n this.propagateControlled();\n }\n\n if (changedProperties.has('open')) {\n this.propagateOpen();\n // Skip the initial render (no previous value) — only announce real toggles.\n if (changedProperties.get('open') !== undefined) {\n this.emitAnimationEndWhenSettled();\n }\n }\n\n this.markLastVisibleStep();\n }\n\n /**\n * @internal\n */\n get steps(): NodeListOf<HTMLElement> {\n return this.querySelectorAll(stepSelector);\n }\n\n propagateOpen() {\n this.steps.forEach((step) => {\n if (this.open) {\n step.removeAttribute('inert');\n } else {\n step.setAttribute('inert', '');\n }\n });\n }\n\n propagateControlled() {\n this.steps.forEach((step) => {\n if (this.controlled) {\n step.setAttribute('data-parent-controlled', '');\n step.setAttribute('controlled', '');\n } else if (step.hasAttribute('data-parent-controlled')) {\n step.removeAttribute('data-parent-controlled');\n step.removeAttribute('controlled');\n }\n });\n }\n\n markLastVisibleStep() {\n const steps = Array.from(this.steps);\n\n steps.forEach((step) => {\n step.removeAttribute('data-last-item');\n });\n\n const lastVisible = steps.reverse().find((step) => !step.hidden);\n\n if (lastVisible) {\n lastVisible.setAttribute('data-last-item', '');\n }\n }\n\n /**\n * The wrapper animates `grid-template-rows` when the container expands/collapses.\n * We wait for any in-flight transition on the wrapper to finish, then emit a composed\n * event so consumers (e.g. the message list's scroll manager) can recalculate scroll\n * geometry against the settled layout.\n *\n * Using the Web Animations API (`getAnimations`) handles both cases with one path: when\n * a transition runs we resolve on its `finished` promise, and when nothing animates\n * (reduced motion, or an auto-collapse that snaps without a transition) there are no\n * animations so we emit immediately. The rAF lets the just-changed style flush so a\n * pending transition is registered before we read it.\n */\n private emitAnimationEndWhenSettled() {\n requestAnimationFrame(() => {\n const wrapper = this.shadowRoot?.querySelector<HTMLElement>(\n `.${baseClass}__wrapper`\n );\n const emit = () =>\n this.dispatchEvent(\n new CustomEvent('reasoning-animation-end', {\n bubbles: true,\n composed: true,\n detail: { open: this.open },\n })\n );\n // Only the `grid-template-rows` transition changes block size; awaiting the\n // wrapper's opacity/padding transitions too can delay the emit well past the\n // height settling. If it is not animating, the height is already final.\n const animations = (wrapper?.getAnimations?.() ?? []).filter(\n (animation): animation is CSSTransition =>\n animation instanceof CSSTransition &&\n animation.transitionProperty === 'grid-template-rows'\n );\n if (!animations.length) {\n emit();\n return;\n }\n Promise.allSettled(\n animations.map((animation) => animation.finished)\n ).then(emit);\n });\n }\n\n render() {\n return html`\n <div class=${baseClass}>\n <div\n class=\"${baseClass}__wrapper\"\n aria-hidden=${this.open ? 'false' : 'true'}>\n <div class=\"${baseClass}__body\" role=\"list\">\n <slot></slot>\n </div>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cds-custom-aichat-reasoning-steps': CDSAIChatReasoningSteps;\n }\n}\n\nexport { CDSAIChatReasoningSteps };\nexport default CDSAIChatReasoningSteps;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AASH,MAAM,SAAS,GAAG,CAAA,EAAG,MAAM,mBAAmB;AAC9C,MAAM,YAAY,GAAG,CAAA,EAAG,MAAM,iBAAiB;AAE/C;;;AAGG;AAEH,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU,CAAA;AAAhD,IAAA,WAAA,GAAA;;QAIE,IAAA,CAAA,IAAI,GAAG,KAAK;QAGZ,IAAA,CAAA,UAAU,GAAG,KAAK;IAmJpB;IAjJE,iBA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,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,gBAAA,CAAkB;AACpC,CAAA,EAAA,uBAAuB,CA0J5B;AASD,gCAAe,uBAAuB;;"}
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { css } from 'lit';
9
9
 
10
- var styles = css([":host{display:block;inline-size:100%}.cds-custom-aichat--reasoning-steps__wrapper{display:grid;grid-template-rows:0fr;opacity:0;overflow:hidden;padding-inline-start:0;pointer-events:none;transition:grid-template-rows .11s cubic-bezier(0,0,.38,.9),padding-inline-start .11s cubic-bezier(0,0,.38,.9),opacity .11s cubic-bezier(0,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.cds-custom-aichat--reasoning-steps__wrapper{transition:none}}:host([open]) .cds-custom-aichat--reasoning-steps__wrapper{border-inline-start:1px solid var(--cds-border-subtle-02,#e0e0e0);grid-template-rows:1fr;opacity:1;overflow:visible;padding-inline-start:.25rem;pointer-events:auto}.cds-custom-aichat--reasoning-steps__body{display:flex;flex-direction:column;gap:.5rem;min-block-size:0;overflow:hidden;padding:.5rem}"]);
10
+ var styles = css([":host{display:block;inline-size:100%}.cds-custom-aichat--reasoning-steps__wrapper{display:grid;grid-template-rows:0fr;opacity:0;overflow:hidden;padding-inline-start:0;pointer-events:none;transition:grid-template-rows .11s cubic-bezier(0,0,.38,.9),padding-inline-start .11s cubic-bezier(0,0,.38,.9),opacity .11s cubic-bezier(0,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.cds-custom-aichat--reasoning-steps__wrapper{transition:none}}:host([open]) .cds-custom-aichat--reasoning-steps__wrapper{border-inline-start:1px solid var(--cds-border-subtle-02,#e0e0e0);grid-template-rows:1fr;opacity:1;overflow:visible;pointer-events:auto}.cds-custom-aichat--reasoning-steps__body{display:flex;flex-direction:column;gap:.125rem;min-block-size:0;overflow:hidden;padding:.25rem}"]);
11
11
 
12
12
  export { styles as default };
13
13
  //# sourceMappingURL=reasoning-steps.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"reasoning-steps.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
1
+ {"version":3,"file":"reasoning-steps.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -100,6 +100,28 @@ function rewrite() {
100
100
  }
101
101
  }
102
102
  }
103
+ /**
104
+ * Flush a rewrite on a microtask rather than inline.
105
+ *
106
+ * The teardown helpers below run from component `disconnectedCallback`s, which
107
+ * WebKit invokes while draining the custom-element reaction queue inside
108
+ * `Element.remove()`. Mutating an adopted sheet in that window segfaults WebKit
109
+ * in `Style::Invalidator::invalidateHostAndSlottedStyleIfNeeded`: it walks every
110
+ * style scope adopting the sheet and dereferences a shadow-root host that isn't
111
+ * valid mid-removal (#2201). Deferring past the removal sidesteps the window,
112
+ * and is unobservable — nothing reads the sheet back after a rule is cleared.
113
+ */
114
+ let teardownFlushScheduled = false;
115
+ function rewriteAfterTeardown() {
116
+ if (teardownFlushScheduled) {
117
+ return;
118
+ }
119
+ teardownFlushScheduled = true;
120
+ queueMicrotask(() => {
121
+ teardownFlushScheduled = false;
122
+ rewrite();
123
+ });
124
+ }
103
125
  /**
104
126
  * Adopt the shared dynamic stylesheet on a root so its rules apply within
105
127
  * that tree. Idempotent per root: subsequent calls for the same root are a
@@ -162,7 +184,7 @@ function clearSelector(selector) {
162
184
  if (!declarationsBySelector.delete(selector)) {
163
185
  return;
164
186
  }
165
- rewrite();
187
+ rewriteAfterTeardown();
166
188
  }
167
189
  /**
168
190
  * Remove specific properties from a selector's rule, leaving any others
@@ -185,7 +207,7 @@ function clearVarsForSelector(selector, props) {
185
207
  if (existing.size === 0) {
186
208
  declarationsBySelector.delete(selector);
187
209
  }
188
- rewrite();
210
+ rewriteAfterTeardown();
189
211
  }
190
212
 
191
213
  export { adoptOnRoot, clearSelector, clearVarsForSelector, setVarsForSelector };
@@ -1 +1 @@
1
- {"version":3,"file":"dynamic-css-var-sheet.js","sources":["../../../src/components/shared/dynamic-css-var-she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AC9C,IAAA,OAAO,EAAE;AACX;AAEA;;AAEG;AACH,SAAS,aAAa,CAAC,QAAgB,EAAA;IACrC,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;QAC5C;IACF;AACA,IAAA,OAAO,EAAE;AACX;AAEA;;;AAGG;AACH,SAAS,oBAAoB,CAAC,QAAgB,EAAE,KAAe,EAAA;IAC7D,MAAM,QAAQ,GAAG,sBAAsB,CAAC,GAAG,CAAC,QAAQ,CAAC;IACrD,IAAI,CAAC,QAAQ,EAAE;QACb;IACF;IACA,IAAI,OAAO,GAAG,KAAK;AACnB,IAAA,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE;AACxB,QAAA,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;YACzB,OAAO,GAAG,IAAI;QAChB;IACF;IACA,IAAI,CAAC,OAAO,EAAE;QACZ;IACF;AACA,IAAA,IAAI,QAAQ,CAAC,IAAI,KAAK,CAAC,EAAE;AACvB,QAAA,sBAAsB,CAAC,MAAM,CAAC,QAAQ,CAAC;IACzC;AACA,IAAA,OAAO,EAAE;AACX;;;;"}
1
+ {"version":3,"file":"dynamic-css-var-sheet.js","sources":["../../../src/components/shared/dynamic-css-var-sheet.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Writes runtime-dynamic CSS custom properties via a single Constructable\n * Stylesheet. Lets us update CSS variable values from JS without touching any\n * element's inline `style` attribute, which a strict CSP (no\n * `style-src-attr 'unsafe-inline'`) would block.\n *\n * Why a stylesheet, not `el.style.setProperty`: setProperty mutates the\n * element's `style` attribute and is governed by `style-src-attr`. Mutations\n * to a CSSStyleSheet that the document already trusts are governed by\n * `style-src` and pass without `'unsafe-inline'`.\n *\n * The shared sheet must be adopted on every root (document or shadow root)\n * where its selectors need to apply. Callers in shadow DOM should call\n * `adoptOnRoot(this.getRootNode())` once in `connectedCallback`. Selectors\n * targeting host elements are sufficient: CSS custom properties inherit\n * across the shadow boundary from the host into the shadow tree.\n */\n\nconst declarationsBySelector = new Map<string, Map<string, string>>();\nconst adoptedRoots = new WeakSet<Document | ShadowRoot>();\nconst fallbackStyleElements = new WeakMap<\n Document | ShadowRoot,\n HTMLStyleElement\n>();\nconst fallbackRoots = new Set<Document | ShadowRoot>();\nlet sheet: CSSStyleSheet | null = null;\n\nfunction getCssText(): string {\n return Array.from(declarationsBySelector.entries())\n .map(([selector, declarations]) => {\n const decls = Array.from(declarations.entries())\n .map(([prop, value]) => `${prop}: ${value};`)\n .join(' ');\n return `${selector} { ${decls} }`;\n })\n .join('\\n');\n}\n\nfunction ensureSheet(): CSSStyleSheet | null {\n if (sheet) {\n return sheet;\n }\n if (typeof document === 'undefined' || typeof CSSStyleSheet === 'undefined') {\n return null;\n }\n try {\n const candidate = new CSSStyleSheet();\n if (typeof (candidate as any).replaceSync !== 'function') {\n // Older browsers / jsdom may construct a sheet but not implement\n // the constructable-stylesheet write methods. Fall back to <style>.\n return null;\n }\n sheet = candidate;\n } catch {\n return null;\n }\n adoptOnRoot(document);\n return sheet;\n}\n\nfunction ensureFallbackStyleElement(\n root: Document | ShadowRoot\n): HTMLStyleElement | null {\n if (typeof document === 'undefined') {\n return null;\n }\n const existing = fallbackStyleElements.get(root);\n if (existing) {\n return existing;\n }\n const ownerDocument = root instanceof Document ? root : root.ownerDocument;\n if (!ownerDocument) {\n return null;\n }\n const styleElement = ownerDocument.createElement('style');\n const container =\n root instanceof Document ? (root.head ?? root.documentElement) : root;\n if (!container) {\n return null;\n }\n container.appendChild(styleElement);\n fallbackStyleElements.set(root, styleElement);\n return styleElement;\n}\n\nfunction rewrite(): void {\n const cssText = getCssText();\n if (sheet) {\n sheet.replaceSync(cssText);\n }\n for (const root of fallbackRoots) {\n const styleElement = fallbackStyleElements.get(root);\n if (styleElement) {\n styleElement.textContent = cssText;\n }\n }\n}\n\n/**\n * Flush a rewrite on a microtask rather than inline.\n *\n * The teardown helpers below run from component `disconnectedCallback`s, which\n * WebKit invokes while draining the custom-element reaction queue inside\n * `Element.remove()`. Mutating an adopted sheet in that window segfaults WebKit\n * in `Style::Invalidator::invalidateHostAndSlottedStyleIfNeeded`: it walks every\n * style scope adopting the sheet and dereferences a shadow-root host that isn't\n * valid mid-removal (#2201). Deferring past the removal sidesteps the window,\n * and is unobservable — nothing reads the sheet back after a rule is cleared.\n */\nlet teardownFlushScheduled = false;\nfunction rewriteAfterTeardown(): void {\n if (teardownFlushScheduled) {\n return;\n }\n teardownFlushScheduled = true;\n queueMicrotask(() => {\n teardownFlushScheduled = false;\n rewrite();\n });\n}\n\n/**\n * Adopt the shared dynamic stylesheet on a root so its rules apply within\n * that tree. Idempotent per root: subsequent calls for the same root are a\n * no-op so we don't spuriously create a fallback `<style>` element on top of\n * an already-adopted CSSStyleSheet (which trips strict CSP).\n */\nfunction adoptOnRoot(root: Document | ShadowRoot): void {\n if (adoptedRoots.has(root)) {\n return;\n }\n const s = ensureSheet();\n if (s) {\n // Some environments (older browsers, jsdom) don't implement\n // adoptedStyleSheets; fall back to a <style> element in that case.\n const current = (root as any).adoptedStyleSheets;\n if (\n Array.isArray(current) ||\n typeof current?.[Symbol.iterator] === 'function'\n ) {\n root.adoptedStyleSheets = [...current, s];\n adoptedRoots.add(root);\n return;\n }\n }\n const fallbackStyleElement = ensureFallbackStyleElement(root);\n if (fallbackStyleElement) {\n fallbackStyleElement.textContent = getCssText();\n fallbackRoots.add(root);\n adoptedRoots.add(root);\n }\n}\n\n/**\n * Merge CSS declarations into the rule for a selector. Multiple subsystems\n * can write disjoint properties for the same selector without clobbering\n * each other; existing properties are updated, new ones appended.\n *\n * The keys can be CSS custom properties (e.g. `--cds-aichat-foo`) or any\n * regular CSS property (`display`, `transform`, …).\n */\nfunction setVarsForSelector(\n selector: string,\n vars: Record<string, string>\n): void {\n if (!ensureSheet()) {\n return;\n }\n const existing = declarationsBySelector.get(selector) ?? new Map();\n let changed = false;\n for (const [prop, value] of Object.entries(vars)) {\n if (existing.get(prop) !== value) {\n existing.set(prop, value);\n changed = true;\n }\n }\n if (!changed) {\n return;\n }\n declarationsBySelector.set(selector, existing);\n rewrite();\n}\n\n/**\n * Remove the entire rule for a selector.\n */\nfunction clearSelector(selector: string): void {\n if (!declarationsBySelector.delete(selector)) {\n return;\n }\n rewriteAfterTeardown();\n}\n\n/**\n * Remove specific properties from a selector's rule, leaving any others\n * intact. If the rule ends up empty, it is dropped.\n */\nfunction clearVarsForSelector(selector: string, props: string[]): void {\n const existing = declarationsBySelector.get(selector);\n if (!existing) {\n return;\n }\n let changed = false;\n for (const prop of props) {\n if (existing.delete(prop)) {\n changed = true;\n }\n }\n if (!changed) {\n return;\n }\n if (existing.size === 0) {\n declarationsBySelector.delete(selector);\n }\n rewriteAfterTeardown();\n}\n\nexport { adoptOnRoot, setVarsForSelector, clearSelector, clearVarsForSelector };\n"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH;;;;;;;;;;;;;;;;AAgBG;AAEH,MAAM,sBAAsB,GAAG,IAAI,GAAG,EAA+B;AACrE,MAAM,YAAY,GAAG,IAAI,OAAO,EAAyB;AACzD,MAAM,qBAAqB,GAAG,IAAI,OAAO,EAGtC;AACH,MAAM,aAAa,GAAG,IAAI,GAAG,EAAyB;AACtD,IAAI,KAAK,GAAyB,IAAI;AAEtC,SAAS,UAAU,GAAA;IACjB,OAAO,KAAK,CAAC,IAAI,CAAC,sBAAsB,CAAC,OAAO,EAAE;SAC/C,GAAG,CAAC,CAAC,CAAC,QAAQ,EAAE,YAAY,CAAC,KAAI;QAChC,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;AAC5C,aAAA,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAA,EAAG,IAAI,CAAA,EAAA,EAAK,KAAK,GAAG;aAC3C,IAAI,CAAC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MAAM,IAAI,IAAI,KAAK,EAAE;AACxB,QAAA,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;YACzB,OAAO,GAAG,IAAI;QAChB;IACF;IACA,IAAI,CAAC,OAAO,EAAE;QACZ;IACF;AACA,IAAA,IAAI,QAAQ,CAAC,IAAI,KAAK,CAAC,EAAE;AACvB,QAAA,sBAAsB,CAAC,MAAM,CAAC,QAAQ,CAAC;IACzC;AACA,IAAA,oBAAoB,EAAE;AACxB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"script-loader.js","sources":["../../../../src/components/shared/media-utils/script-loader.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH;;;AAGG;MACU,YAAY,CAAA;AAGvB;;;;;;;AAOG;IACH,OAAO,IAAI,CAAC,GAAW,EAAA;;QAErB,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC;QAC5C,IAAI,QAAQ,EAAE;AACZ,YAAA,OAAO,QAAQ;QACjB;QAEA,MAAM,OAAO,GAAG,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,KAAI;;YAEpD,MAAM,cAAc,GAAG,QAAQ,CAAC,aAAa,CAC3C,CAAA,YAAA,EAAe,GAAG,CAAA,EAAA,CAAI,CACF;YAEtB,IAAI,cAAc,EAAE;;AAElB,gBAAA,OAAO,EAAE;gBACT;YACF;;YAGA,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;AAC/C,YAAA,MAAM,CAAC,GAAG,GAAG,GAAG;AAChB,YAAA,MAAM,CAAC,KAAK,GAAG,IAAI;AAEnB,YAAA,MAAM,CAAC,MAAM,GAAG,MAAK;AACnB,gBAAA,OAAO,EAAE;AACX,YAAA,CAAC;AAED,YAAA,MAAM,CAAC,OAAO,GAAG,MAAK;;AAEpB,gBAAA,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC;gBAC9B,MAAM,CAAC,IAAI,KAAK,CAAC,0BAA0B,GAAG,CAAA,CAAE,CAAC,CAAC;AACpD,YAAA,CAAC;AAED,YAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;AACnC,QAAA,CAAC,CAAC;QAEF,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC;AACpC,QAAA,OAAO,OAAO;IAChB;AAEA;;;;;AAKG;IACH,OAAO,QAAQ,CAAC,GAAW,EAAA;QACzB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC;IACpC;AAEA;;;AAGG;AACH,IAAA,OAAO,UAAU,GAAA;AACf,QAAA,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE;IAC5B;;AAnEe,YAAA,CAAA,aAAa,GAAG,IAAI,GAAG,EAAyB;;;;"}
1
+ {"version":3,"file":"script-loader.js","sources":["../../../../src/components/shared/media-utils/script-loader.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Utility for dynamically loading external scripts.\n * Caches loaded scripts to prevent duplicate loading.\n */\nexport class ScriptLoader {\n private static loadedScripts = new Map<string, Promise<void>>();\n\n /**\n * Load a script from the given URL.\n * Returns a promise that resolves when the script is loaded.\n * If the script is already loaded or loading, returns the existing promise.\n *\n * @param url - The URL of the script to load\n * @returns Promise that resolves when the script is loaded\n */\n static load(url: string): Promise<void> {\n // Return existing promise if script is already loaded or loading\n const existing = this.loadedScripts.get(url);\n if (existing) {\n return existing;\n }\n\n const promise = new Promise<void>((resolve, reject) => {\n // Check if script already exists in DOM\n const existingScript = document.querySelector(\n `script[src=\"${url}\"]`\n ) as HTMLScriptElement;\n\n if (existingScript) {\n // Script already in DOM, resolve immediately\n resolve();\n return;\n }\n\n // Create and append new script element\n const script = document.createElement('script');\n script.src = url;\n script.async = true;\n\n script.onload = () => {\n resolve();\n };\n\n script.onerror = () => {\n // Remove from cache on error so it can be retried\n this.loadedScripts.delete(url);\n reject(new Error(`Failed to load script: ${url}`));\n };\n\n document.head.appendChild(script);\n });\n\n this.loadedScripts.set(url, promise);\n return promise;\n }\n\n /**\n * Check if a script has been loaded.\n *\n * @param url - The URL of the script to check\n * @returns True if the script has been loaded\n */\n static isLoaded(url: string): boolean {\n return this.loadedScripts.has(url);\n }\n\n /**\n * Clear the cache of loaded scripts.\n * Useful for testing or when scripts need to be reloaded.\n */\n static clearCache(): void {\n this.loadedScripts.clear();\n }\n}\n"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAEH;;;AAGG;MACU,YAAY,CAAA;AAGvB;;;;;;;AAOG;IACH,OAAO,IAAI,CAAC,GAAW,EAAA;;QAErB,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC;QAC5C,IAAI,QAAQ,EAAE;AACZ,YAAA,OAAO,QAAQ;QACjB;QAEA,MAAM,OAAO,GAAG,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,MAAM,KAAI;;YAEpD,MAAM,cAAc,GAAG,QAAQ,CAAC,aAAa,CAC3C,CAAA,YAAA,EAAe,GAAG,CAAA,EAAA,CAAI,CACF;YAEtB,IAAI,cAAc,EAAE;;AAElB,gBAAA,OAAO,EAAE;gBACT;YACF;;YAGA,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;AAC/C,YAAA,MAAM,CAAC,GAAG,GAAG,GAAG;AAChB,YAAA,MAAM,CAAC,KAAK,GAAG,IAAI;AAEnB,YAAA,MAAM,CAAC,MAAM,GAAG,MAAK;AACnB,gBAAA,OAAO,EAAE;AACX,YAAA,CAAC;AAED,YAAA,MAAM,CAAC,OAAO,GAAG,MAAK;;AAEpB,gBAAA,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,CAAC;gBAC9B,MAAM,CAAC,IAAI,KAAK,CAAC,0BAA0B,GAAG,CAAA,CAAE,CAAC,CAAC;AACpD,YAAA,CAAC;AAED,YAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC;AACnC,QAAA,CAAC,CAAC;QAEF,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,EAAE,OAAO,CAAC;AACpC,QAAA,OAAO,OAAO;IAChB;AAEA;;;;;AAKG;IACH,OAAO,QAAQ,CAAC,GAAW,EAAA;QACzB,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,GAAG,CAAC;IACpC;AAEA;;;AAGG;AACH,IAAA,OAAO,UAAU,GAAA;AACf,QAAA,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE;IAC5B;;AAnEe,YAAA,CAAA,aAAa,GAAG,IAAI,GAAG,EAAyB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"table-loader.js","sources":["../../../../src/components/table/src/table-loader.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAIH,IAAI,mBAAmB,GAAuC,IAAI;SAElD,gBAAgB,GAAA;IAC9B,IAAI,CAAC,mBAAmB,EAAE;AACxB,QAAA,mBAAmB,GAAG,OAAO,oBAAoB,CAAC;IACpD;AACA,IAAA,OAAO,mBAAmB;AAC5B;SAEgB,aAAa,GAAA;IAC3B,OAAO,gBAAgB,EAAE;AAC3B;;;;"}
1
+ {"version":3,"file":"table-loader.js","sources":["../../../../src/components/table/src/table-loader.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\ntype TableRuntimeModule = typeof import('./table-runtime.js');\n\nlet tableRuntimePromise: Promise<TableRuntimeModule> | null = null;\n\nexport function loadTableRuntime(): Promise<TableRuntimeModule> {\n if (!tableRuntimePromise) {\n tableRuntimePromise = import('./table-runtime.js');\n }\n return tableRuntimePromise;\n}\n\nexport function loadTableDeps(): Promise<TableRuntimeModule> {\n return loadTableRuntime();\n}\n\nexport type { TableRuntimeModule };\n"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAIH,IAAI,mBAAmB,GAAuC,IAAI;SAElD,gBAAgB,GAAA;IAC9B,IAAI,CAAC,mBAAmB,EAAE;AACxB,QAAA,mBAAmB,GAAG,OAAO,oBAAoB,CAAC;IACpD;AACA,IAAA,OAAO,mBAAmB;AAC5B;SAEgB,aAAa,GAAA;IAC3B,OAAO,gBAAgB,EAAE;AAC3B;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"table-pagination.template.js","sources":["../../../../src/components/table/src/table-pagination.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAUH;AACA,MAAM,mBAAmB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAwB/C;;AAEG;AACH,SAAS,uBAAuB,CAAC,KAA2B,EAAA;AAC1D,IAAA,MAAM,EACJ,gBAAgB,EAAE,eAAe,EACjC,kBAAkB,EAAE,iBAAiB,EACrC,oBAAoB,EAAE,mBAAmB,EACzC,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,6BAA6B,EAC7B,uBAAuB,EACvB,sBAAsB,EAAE,qBAAqB,EAC7C,0BAA0B,EAAE,yBAAyB,GACtD,GAAG,KAAK;IAET,IAAI,CAAC,mBAAmB,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE;QACrD,OAAO,IAAI,CAAA,CAAA,CAAE;IACf;AAEA,IAAA,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,IAAI;AACjD,IAAA,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM;;AAG7B,IAAA,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,MAAM,CACnD,CAAC,QAAQ,KAAK,QAAQ,GAAG,SAAS,CACnC;AAED,IAAA,OAAO,IAAI,CAAA,CAAA;gBACG,eAAe;WACpB,iBAAiB;kBACV,gBAAgB;AACjB,eAAA,EAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;oBAC1C,gBAAgB;mBACjB,YAAY;0BACL,gBAAgB;8BACZ,SAAS,CAAC,6BAA6B,CAAC;wCAC9B,SAAS,CAAC,uBAAuB,CAAC;sCACpC,qBAAqB;qCACtB,yBAAyB;oCAC1B,cAAc,EAAE,GAAG,OAAO,GAAG,MAAM,CAAA;AACjE,IAAA,EAAA,kBAAkB,CAAC,GAAG,CACtB,CAAC,QAAQ,KACP,IAAI,CAAA,CAAA,wBAAA,EAA2B,QAAQ,CAAA,EAAA,EAAK,QAAQ,oBAAoB,CAC3E;AACyB,4BAAA,EAAA,SAAS,KAAK,SAAS,CAAA;oBACjC;AACpB;;;;"}
1
+ {"version":3,"file":"table-pagination.template.js","sources":["../../../../src/components/table/src/table-pagination.template.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport '@carbon/web-components/es-custom/components/pagination/index.js';\nimport '@carbon/web-components/es-custom/components/select/index.js';\n\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { TableRowContent } from './table.js';\nimport { isDirectionRTL } from '../../../globals/utils/rtl-utils.js';\n\n// Import only the constants, not the class\nconst POSSIBLE_PAGE_SIZES = [5, 10, 15, 20, 50];\n\ninterface TablePaginationProps {\n _currentPageSize: number;\n _currentPageNumber: number;\n _filterVisibleRowIDs: Set<string>;\n rows: TableRowContent[];\n previousPageText: string;\n nextPageText: string;\n itemsPerPageText: string;\n getPaginationSupplementalText?: ({ count }: { count: number }) => string;\n getPaginationStatusText?: ({\n start,\n end,\n count,\n }: {\n start: number;\n end: number;\n count: number;\n }) => string;\n _handlePageChangeEvent: (event: any) => void;\n _handlePageSizeChangeEvent: (event: any) => void;\n}\n\n/**\n * Table pagination view logic.\n */\nfunction tablePaginationTemplate(props: TablePaginationProps) {\n const {\n _currentPageSize: currentPageSize,\n _currentPageNumber: currentPageNumber,\n _filterVisibleRowIDs: filterVisibleRowIDs,\n rows,\n previousPageText,\n nextPageText,\n itemsPerPageText,\n getPaginationSupplementalText,\n getPaginationStatusText,\n _handlePageChangeEvent: handlePageChangeEvent,\n _handlePageSizeChangeEvent: handlePageSizeChangeEvent,\n } = props;\n\n if (!filterVisibleRowIDs || !filterVisibleRowIDs.size) {\n return html``;\n }\n\n const totalVisibleRows = filterVisibleRowIDs.size;\n const totalRows = rows.length;\n\n // Page sizes will only be included if the page size is less than the total number of rows.\n const supportedPageSizes = POSSIBLE_PAGE_SIZES.filter(\n (pageSize) => pageSize < totalRows\n );\n\n return html`<cds-custom-pagination\n page-size=${currentPageSize}\n page=${currentPageNumber}\n total-items=${totalVisibleRows}\n totalPages=${Math.ceil(totalVisibleRows / currentPageSize)}\n backward-text=${previousPageText}\n forward-text=${nextPageText}\n items-per-page-text=${itemsPerPageText}\n .formatSupplementalText=${ifDefined(getPaginationSupplementalText)}\n .formatStatusWithDeterminateTotal=${ifDefined(getPaginationStatusText)}\n @cds-custom-pagination-changed-current=${handlePageChangeEvent}\n @cds-custom-page-sizes-select-changed=${handlePageSizeChangeEvent}\n forward-text-tooltip-position=${isDirectionRTL() ? 'right' : 'left'}>\n ${supportedPageSizes.map(\n (pageSize) =>\n html`<cds-custom-select-item value=\"${pageSize}\">${pageSize}</cds-custom-select-item>`\n )}\n <cds-custom-select-item value=\"${totalRows}\">${totalRows}</cds-custom-select-item>\n </cds-custom-pagination>`;\n}\n\nexport { tablePaginationTemplate };\n"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAUH;AACA,MAAM,mBAAmB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAwB/C;;AAEG;AACH,SAAS,uBAAuB,CAAC,KAA2B,EAAA;AAC1D,IAAA,MAAM,EACJ,gBAAgB,EAAE,eAAe,EACjC,kBAAkB,EAAE,iBAAiB,EACrC,oBAAoB,EAAE,mBAAmB,EACzC,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,6BAA6B,EAC7B,uBAAuB,EACvB,sBAAsB,EAAE,qBAAqB,EAC7C,0BAA0B,EAAE,yBAAyB,GACtD,GAAG,KAAK;IAET,IAAI,CAAC,mBAAmB,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE;QACrD,OAAO,IAAI,CAAA,CAAA,CAAE;IACf;AAEA,IAAA,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,IAAI;AACjD,IAAA,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM;;AAG7B,IAAA,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,MAAM,CACnD,CAAC,QAAQ,KAAK,QAAQ,GAAG,SAAS,CACnC;AAED,IAAA,OAAO,IAAI,CAAA,CAAA;gBACG,eAAe;WACpB,iBAAiB;kBACV,gBAAgB;AACjB,eAAA,EAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;oBAC1C,gBAAgB;mBACjB,YAAY;0BACL,gBAAgB;8BACZ,SAAS,CAAC,6BAA6B,CAAC;wCAC9B,SAAS,CAAC,uBAAuB,CAAC;sCACpC,qBAAqB;qCACtB,yBAAyB;oCAC1B,cAAc,EAAE,GAAG,OAAO,GAAG,MAAM,CAAA;AACjE,IAAA,EAAA,kBAAkB,CAAC,GAAG,CACtB,CAAC,QAAQ,KACP,IAAI,CAAA,CAAA,wBAAA,EAA2B,QAAQ,CAAA,EAAA,EAAK,QAAQ,oBAAoB,CAC3E;AACyB,4BAAA,EAAA,SAAS,KAAK,SAAS,CAAA;oBACjC;AACpB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"table-skeleton.template.js","sources":["../../../../src/components/table/src/table-skeleton.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AAMH;;AAEG;AACH,SAAS,qBAAqB,CAAC,QAAQ,GAAG,CAAC,EAAA;;;AAGzC,IAAA,OAAO,IAAI,CAAA,CAAA;;kBAEK,QAAQ;;oBAEN,KAAK,CAAA;;SAEhB;AACT;;;;"}
1
+ {"version":3,"file":"table-skeleton.template.js","sources":["../../../../src/components/table/src/table-skeleton.template.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport '@carbon/web-components/es-custom/components/data-table/table-skeleton.js';\n\nimport { html } from 'lit';\n\n/**\n * Table skeleton view logic.\n */\nfunction tableSkeletonTemplate(rowCount = 5) {\n // Can add header names to the skeleton if we want to\n // https://web-components.carbondesignsystem.com/?path=/docs/components-datatable-skeleton--overview#custom-headers.\n return html`<div class=\"cds-custom-ai-chat-table-container\">\n <cds-custom-table-skeleton\n row-count=${rowCount}\n column-count=\"2\"\n .showHeader=${false}>\n </cds-custom-table-skeleton>\n </div>`;\n}\n\nexport { tableSkeletonTemplate };\n"],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AAMH;;AAEG;AACH,SAAS,qBAAqB,CAAC,QAAQ,GAAG,CAAC,EAAA;;;AAGzC,IAAA,OAAO,IAAI,CAAA,CAAA;;kBAEK,QAAQ;;oBAEN,KAAK,CAAA;;SAEhB;AACT;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"table.js","sources":["../../../../src/components/table/src/table.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAyCH;AACA,MAAM,yBAAyB,GAAG,GAAG;AAErC;;;AAGG;AAEH,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU,CAAA;AAAvC,IAAA,WAAA,GAAA;;AAaE;;AAEG;QAEH,IAAA,CAAA,OAAO,G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AADN,IAAA,KAAK;AACiD,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,MAAA,CAAA;AAYhD,UAAA,CAAA;AADN,IAAA,KAAK;AAC6B,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,qBAAA,EAAA,MAAA,CAAA;AAQ5B,UAAA,CAAA;AADN,IAAA,KAAK;AAC+C,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,sBAAA,EAAA,MAAA,CAAA;AAW7C,UAAA,CAAA;AADP,IAAA,KAAK;AACiC,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,wBAAA,EAAA,MAAA,CAAA;AAQhC,UAAA,CAAA;AADN,IAAA,KAAK;AACsC,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAQrC,UAAA,CAAA;AADN,IAAA,KAAK;AACwB,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,iBAAA,EAAA,MAAA,CAAA;AAlL1B,cAAc,GAAA,UAAA,CAAA;AADnB,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,MAAA,CAAQ;AAC1B,CAAA,EAAA,cAAc,CAqpBnB;AASD,uBAAe,cAAc;;;;"}
1
+ {"version":3,"file":"table.js","sources":["../../../../src/components/table/src/table.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { type CDSTableRow } from '@carbon/web-components';\nimport { TemplateResult, LitElement, PropertyValues, html } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { carbonElement } from '../../../globals/decorators';\nimport { tableSkeletonTemplate } from './table-skeleton.template';\nimport { loadTableRuntime } from './table-loader.js';\nimport { stringifyCSV } from '../../../globals/utils/csv.js';\nimport commonStyles from '../../../globals/scss/common.scss?lit';\nimport styles from './table.scss?lit';\nimport prefix from '../../../globals/settings.js';\n\ntype TableRuntimeModule = Awaited<ReturnType<typeof loadTableRuntime>>;\n\nexport interface TableCellContent {\n text: string;\n template?: TemplateResult | null;\n}\n\nexport interface TableRowContent {\n cells: TableCellContent[];\n}\n\ninterface PageChangeEvent extends Event {\n detail: {\n page: number;\n pageSize: number;\n };\n}\n\ninterface FilterEvent extends Event {\n detail: {\n unfilteredRows: CDSTableRow[];\n };\n}\n\ninterface TableRowWithIDs extends TableRowContent {\n id: string;\n}\n\n// Width threshold for determining default page size. Tables wider than this get 10 rows, narrower get 5 rows.\nconst PAGE_SIZE_WIDTH_THRESHOLD = 400;\n\n/**\n * Class functionality for the Table custom element.\n * @element cds-custom-aichat-table\n */\n@carbonElement(`${prefix}-table`)\nclass CDSAIChatTable extends LitElement {\n /**\n * The optional table title.\n */\n @property({ type: String, attribute: 'table-title' })\n tableTitle?: string;\n\n /**\n * The optional table description.\n */\n @property({ type: String, attribute: 'table-description' })\n tableDescription?: string;\n\n /**\n * The array of cells for the header.\n */\n @property({ type: Array, attribute: false })\n headers: TableCellContent[] = [];\n\n /**\n * The array of rows. Each row includes an array of cells.\n */\n @property({ type: Array, attribute: false })\n rows: TableRowContent[] = [];\n\n /**\n * Whether or not the table content is loading. If it is then a skeleton state should be shown instead.\n */\n @property({ type: Boolean, attribute: 'loading' })\n loading = false;\n\n /**\n * The text used for the filter placeholder.\n */\n @property({ type: String, attribute: 'filter-placeholder-text' })\n filterPlaceholderText = 'Filter table...';\n\n /**\n * The text used for the pagination's previous button tooltip.\n */\n @property({ type: String, attribute: 'previous-page-text' })\n previousPageText = 'Previous page';\n\n /**\n * The text used for the pagination's next button tooltip.\n */\n @property({ type: String, attribute: 'next-page-text' })\n nextPageText = 'Next page';\n\n /**\n * The text used for the pagination's item pre page text.\n */\n @property({ type: String, attribute: 'items-per-page-text' })\n itemsPerPageText = 'Items per page:';\n\n /**\n * The text used for the download button's accessible label.\n */\n @property({ type: String, attribute: 'download-label-text' })\n downloadLabelText = 'Download table data';\n\n /**\n * The locale. Used by the carbon table component to change the collator for sorting.\n */\n @property({ type: String, attribute: 'locale' })\n locale = 'en';\n\n /**\n * The calculated default page size based on component width.\n * 10 for width > PAGE_SIZE_WIDTH_THRESHOLD, 5 for width <= PAGE_SIZE_WIDTH_THRESHOLD.\n *\n * @internal\n */\n @state()\n private _defaultPageSize = 5;\n\n @property({ type: Number, attribute: 'default-page-size' })\n get defaultPageSize(): number {\n return this._defaultPageSize;\n }\n\n set defaultPageSize(value: number) {\n this._defaultPageSize = value;\n if (!this._rowsPerPageChanged) {\n this._currentPageSize = value;\n }\n }\n\n /**\n * The function used to get the supplemental text for the pagination component.\n */\n @property({ type: Function, attribute: false })\n getPaginationSupplementalText = ({ count }: { count: number }) =>\n `${count} items`;\n\n /**\n * The function used to get the status text for the pagination component.\n */\n @property({ type: Function, attribute: false })\n getPaginationStatusText = ({\n start,\n end,\n count,\n }: {\n start: number;\n end: number;\n count: number;\n }) => `${start}–${end} of ${count} items`;\n\n /**\n * If the table is valid or not.\n *\n * @internal\n */\n @state()\n protected _isValid = true;\n\n /**\n * The current page of the table we're on.\n *\n * @internal\n */\n @state()\n public _currentPageNumber = 1;\n\n /**\n * How many rows are on each page of the table.\n *\n * @internal\n */\n @state()\n public _currentPageSize: number = this.defaultPageSize;\n\n /**\n * Whether or not the number of rows per page was changed with the pagination component. If the user used the\n * pagination controls to show all rows, the pagination component would normally hide itself because the number of is\n * no longer greater than the page size. However the pagination component needs to persist in this case, since the\n * user may want to change the page size again. This is used to keep track of whether the pagination controls were\n * used to change page size, and if they have, it forces pagination component to persist.\n *\n * @internal\n */\n @state()\n public _rowsPerPageChanged = false;\n\n /**\n * The rows that have not been filtered out.\n *\n * @internal\n */\n @state()\n public _filterVisibleRowIDs: Set<string> = new Set();\n\n /**\n * Flag to track when row visibility needs to be updated after the DOM has rendered.\n * This is necessary because _updateVisibleRows() queries the DOM for rendered rows,\n * which don't exist yet during willUpdate(). Setting this flag defers the visibility\n * update until the updated() lifecycle method runs after rendering is complete.\n *\n * @internal\n */\n @state()\n private _needsVisibilityUpdate = false;\n\n /**\n * All of the rows for the table with IDs.\n *\n * @internal\n */\n @state()\n public _rowsWithIDs: TableRowWithIDs[] = [];\n\n /**\n * Whether or not the table should be able to be filtered.\n *\n * @internal\n */\n @state()\n public _allowFiltering = true;\n\n static styles = [commonStyles, styles];\n\n /**\n * @internal\n */\n private tableRuntime: TableRuntimeModule | null = null;\n\n /**\n * @internal\n */\n private tableRuntimePromise: Promise<TableRuntimeModule> | null = null;\n private hasRenderedLoadingFrame = false;\n\n connectedCallback() {\n super.connectedCallback();\n void this.ensureTableRuntime();\n }\n\n /**\n * Called after the element's DOM has been updated for the first time.\n * Initializes the table page size.\n *\n * @param _changedProperties - Map of properties that changed during the update\n */\n protected async firstUpdated(\n _changedProperties: PropertyValues\n ): Promise<void> {\n await this.updateComplete;\n this._updateDefaultPageSize();\n this._setPageSize();\n }\n\n /**\n * While loading we only need to paint the skeleton once. Streaming updates can\n * mutate rows/headers rapidly, so skip subsequent updates until loading ends.\n */\n protected shouldUpdate(changedProperties: PropertyValues<this>) {\n if (changedProperties.has('loading')) {\n if (this.loading) {\n this.hasRenderedLoadingFrame = false;\n }\n return true;\n }\n\n if (this.loading && this.hasRenderedLoadingFrame) {\n return false;\n }\n\n return true;\n }\n\n /**\n * Updates the CSS custom property `--cds-chat-table-width` based on the parent element's width.\n * Also calculates the default page size on first run based on the measured width.\n * This method is called once during component initialization.\n *\n * @private\n */\n private _updateDefaultPageSize() {\n if (this.parentElement) {\n let parentWidth = this.parentElement.offsetWidth;\n\n // If parent width is 0, use fallback width that ensures 5-row default page size\n if (parentWidth === 0) {\n parentWidth = PAGE_SIZE_WIDTH_THRESHOLD - 1;\n }\n\n // Calculate default page size based on the width we just measured\n // Only set it once, don't recalculate on resize\n if (parentWidth > 0 && this._defaultPageSize === 5) {\n this._defaultPageSize =\n parentWidth > PAGE_SIZE_WIDTH_THRESHOLD ? 10 : 5;\n\n // Update _currentPageSize if it's still at the initial value\n if (this._currentPageSize === 5) {\n this._currentPageSize = this._defaultPageSize;\n }\n }\n }\n }\n\n /**\n * Called before the element updates to prepare state changes.\n * Handles validation and re-initialization of table data when headers or rows change.\n *\n * @param changedProperties - Map of properties that changed during the update\n * @protected\n */\n protected willUpdate(changedProperties: PropertyValues<this>) {\n // Calculate default page size on first render to ensure correct page size is set.\n // For streaming tables: happens when loading=true (before skeleton renders)\n // For non-streaming tables: happens when rows are first set\n if (\n (changedProperties.has('loading') && this.loading) ||\n (changedProperties.has('rows') &&\n this.rows !== undefined &&\n !this.loading)\n ) {\n this._updateDefaultPageSize();\n }\n\n const loadingJustFinished =\n changedProperties.has('loading') &&\n changedProperties.get('loading') === true &&\n this.loading === false;\n\n // If the headers or rows has recently updated and both are defined than we should validate the table\n // data. This will likely only happen on the web components first render cycle when the props go from undefined to\n // defined.\n if (\n (changedProperties.has('headers') ||\n changedProperties.has('rows') ||\n loadingJustFinished) &&\n !this.loading &&\n this.headers !== undefined &&\n this.rows !== undefined\n ) {\n this._calcIsTableValid();\n }\n\n // If the value of tableRows updated then initialize the internal rows arrays.\n if (\n (changedProperties.has('rows') || loadingJustFinished) &&\n !this.loading &&\n this.rows !== undefined\n ) {\n this._initializeRowsArrays();\n // Set flag to update visibility after DOM renders, rather than calling _setPageSize() here.\n // This is critical for streaming tables where rows don't exist in the DOM yet during willUpdate().\n this._needsVisibilityUpdate = true;\n }\n }\n\n /**\n * Called after the element's DOM has been updated.\n * Handles deferred visibility updates that require the DOM to be fully rendered.\n *\n * This is essential for streaming tables: when loading completes, willUpdate() sets\n * _needsVisibilityUpdate=true, but the actual row elements don't exist in the DOM yet.\n * By deferring _updateVisibleRows() to this lifecycle method, we ensure the rows are\n * rendered and can be properly queried and hidden/shown for pagination.\n *\n * We use requestAnimationFrame to ensure Carbon Web Components table rows are fully\n * rendered in the DOM before attempting to query and hide/show them.\n *\n * @param changedProperties - Map of properties that changed during the update\n * @protected\n */\n protected updated(changedProperties: PropertyValues<this>) {\n super.updated(changedProperties);\n\n if (this._needsVisibilityUpdate) {\n this._needsVisibilityUpdate = false;\n // Use requestAnimationFrame to ensure Carbon table rows are fully rendered\n requestAnimationFrame(() => {\n this._updateVisibleRows();\n });\n }\n }\n\n /**\n * Validates the table structure by checking if all rows have the same number of cells as the header.\n * Sets the internal `_isValid` state to false if any row has a mismatched cell count.\n *\n * A valid table requires:\n * - All rows must have the same number of cells as there are headers\n * - No rows can have more or fewer cells than the column count\n *\n * @private\n */\n private _calcIsTableValid() {\n const columnCount = this.headers.length;\n // If one of the rows has a different number of cells than the number of columns in the header then set our internal\n // valid state to false.\n this._isValid = !this.rows.some((row) => row.cells.length !== columnCount);\n // In the future, once we have an inlineError web component to use, we can render that when our table is not valid\n // (as well as throwing the below error). Until then our React container is rendering the error component and\n // throwing the error.\n\n // throw new Error(\n // `${WA_CONSOLE_PREFIX} Number of cells in the table header does not match the number of cells in one or more of the table rows. In order to render a table there needs to be the same number of columns in the table header and all of the table rows.`,\n // );\n }\n\n /**\n * Initializes internal arrays used for table functionality.\n * Creates a new array of rows with unique IDs and initializes the filter visibility tracking.\n *\n * This method:\n * 1. Resets the `_rowsWithIDs` array and `_filterVisibleRowIDs` set\n * 2. Assigns string-based IDs to each row for tracking purposes\n * 3. Marks all rows as initially visible (not filtered out)\n *\n * @private\n */\n private _initializeRowsArrays() {\n // Reset both arrays.\n this._rowsWithIDs = [];\n this._filterVisibleRowIDs = new Set();\n\n this.rows.forEach((row, index) => {\n const id = index.toString();\n this._rowsWithIDs.push({ ...row, id });\n this._filterVisibleRowIDs.add(id);\n });\n }\n\n /**\n * Configures the table's page size and filtering behavior.\n * Determines whether filtering/searching should be enabled based on the number of rows\n * relative to the current page size.\n *\n * Filtering is enabled when there are more rows than can fit on a single page,\n * allowing users to search and paginate through large datasets.\n *\n * This method is called from firstUpdated() for non-streaming tables where the DOM\n * is already rendered. For streaming tables, visibility updates are deferred via the\n * _needsVisibilityUpdate flag and handled in updated() lifecycle method.\n *\n * @private\n */\n private _setPageSize() {\n // If there are more rows than the page size then enable filtering.\n // this._allowFiltering = this.rows.length > this._currentPageSize;\n\n // Update visible rows. This is safe to call here because _setPageSize() is only\n // called from firstUpdated(), which runs after the DOM is rendered.\n this._updateVisibleRows();\n }\n\n private async ensureTableRuntime(): Promise<TableRuntimeModule | null> {\n if (this.tableRuntime) {\n return this.tableRuntime;\n }\n\n if (typeof window === 'undefined') {\n return null;\n }\n\n if (!this.tableRuntimePromise) {\n this.tableRuntimePromise = loadTableRuntime();\n }\n\n try {\n const runtime = await this.tableRuntimePromise;\n this.tableRuntime = runtime;\n // When runtime loads for the first time, we need to update row visibility\n // because we're transitioning from skeleton to actual table\n if (!this.loading && this.rows !== undefined && this.rows.length > 0) {\n this._needsVisibilityUpdate = true;\n }\n this.requestUpdate();\n return runtime;\n } catch (error) {\n console.error('Failed to load table runtime', error);\n this.tableRuntimePromise = null;\n return null;\n }\n }\n\n /**\n * Handles pagination events from the Carbon pagination component.\n * Updates the visible rows when the user navigates to a different page.\n *\n * Note: This event sometimes fires twice due to a Carbon framework quirk,\n * but since the page/size values are identical, it doesn't affect functionality.\n *\n * @param event - The page change event containing the new page number and size\n * @public\n *\n * @internal\n */\n public _handlePageChangeEvent = (event: PageChangeEvent) => {\n this._updateVisibleRows(event.detail?.page, event.detail?.pageSize);\n event.stopPropagation();\n };\n\n /**\n * Handles page size change events from the pagination component.\n * Updates the current page size and recalculates visible rows.\n * Marks that the page size has been manually changed by the user.\n *\n * @param event - The page size change event containing the new page size\n * @public\n *\n * @internal\n */\n public _handlePageSizeChangeEvent = (event: PageChangeEvent) => {\n this._rowsPerPageChanged = true;\n this._currentPageSize = event.detail?.pageSize;\n this._updateVisibleRows();\n event.stopPropagation();\n };\n\n /**\n * Handles filter and sort events from the Carbon table component.\n * Updates the set of visible rows based on filtering/sorting results and resets to the first page.\n *\n * This event is triggered by:\n * - Column sorting (clicking on sortable column headers)\n * - Table filtering (using the search bar)\n *\n * @param event - The filter event containing the array of unfiltered rows\n * @public\n *\n * @internal\n */\n public _handleFilterEvent = (event: FilterEvent) => {\n // Record the new set of unfiltered row ids.\n this._filterVisibleRowIDs = new Set(\n event?.detail?.unfilteredRows.map((row) => row.id)\n );\n\n // Go back to the first page.\n this._currentPageNumber = 1;\n\n // Update which rows are visible.\n this._updateVisibleRows();\n event.stopPropagation();\n };\n\n /**\n * Controls which table rows are visible based on pagination and filtering.\n * Uses CSS display properties to show/hide rows rather than DOM manipulation.\n *\n * This approach is necessary because Carbon's table component handles its own\n * sorting and we need to preserve the DOM order it creates. The method:\n * 1. Hides all rows initially\n * 2. Filters to only rows that haven't been filtered out\n * 3. Shows only the rows that belong to the current page\n *\n * @param page - The page number to display (1-based)\n * @param pageSize - Number of rows per page\n * @private\n */\n private _updateVisibleRows(\n page: number = this._currentPageNumber,\n pageSize: number = this._currentPageSize\n ) {\n // Set the current page number and only show the rows for that page.\n this._currentPageNumber = page;\n\n // Grab all the rows that have been rendered. It's necessary to grab them from the page because the cds-custom-table puts\n // the rows in a specific order when sorting and we want to preserve that order.\n const rows: HTMLElement[] = Array.from(\n this.renderRoot.querySelectorAll('cds-custom-table-row')\n );\n\n // This is similar to the carbon example here https://stackblitz.com/edit/github-kbd9xw-s3y3s6?file=index.html. I\n // originally tried creating and passing an array of the specific rows the template should render for the current\n // page. Unfortunately doing that doesn't work with the combination of the is-sortable prop for the table and\n // page-size prop for pagination. What would happen is old rows would persist if you were on the last page and there\n // weren't enough rows to fill the page (even though the old rows weren't included in the new rows provided to the\n // template). Using Carbon's example of hiding the rows with styling works so I'm extending that concept here even\n // though, ideally, render controls the view and reacts to the state that would be determined here.\n\n // Hide all the rows to start. Using a data attribute (not inline style)\n // so a strict CSP can drop style-src-attr 'unsafe-inline'; the matching\n // rule lives in table.scss.\n rows.forEach((row) => row.toggleAttribute('data-hidden', true));\n\n // Now filter the rows down to what is visible according to the filter.\n const filterVisibleRows = rows.filter((row) =>\n this._filterVisibleRowIDs.has(row.id)\n );\n\n // Now show all the rows that are within the current page.\n const pageStart = (page - 1) * pageSize;\n const pageEnd = page * pageSize - 1;\n for (let index = pageStart; index <= pageEnd; index++) {\n // If there is a row at that index then show it. If there aren't enough rows to fill the page then there won't be\n // a row at that index.\n filterVisibleRows[index]?.removeAttribute('data-hidden');\n }\n }\n\n /**\n * Handles the table download functionality by exporting all table data as a CSV file.\n *\n * This custom implementation is necessary because Carbon's default download feature:\n * - Only exports selected rows (we want all data)\n * - Only exports as JSON (we want CSV format)\n * - Doesn't include all the data we need\n *\n * The method creates a data URL to comply with CSP policies, and triggers a download.\n *\n * @public\n */\n public async _handleDownload() {\n // Don't save content from the expandable rows at this time. This could be added in the future but it's unclear how\n // this would look in the download.\n const tableArray: (string | number)[][] = [\n this.headers.map((cell) => cell.text),\n ...this.rows.map((row) => row.cells.map((cell) => cell.text)),\n ];\n\n try {\n const csvContent = stringifyCSV(tableArray);\n\n // Use data URL instead of Blob to avoid CSP issues with object-src\n const dataUrl = `data:text/csv;charset=utf-8,${encodeURIComponent(\n csvContent\n )}`;\n\n // Create and trigger download using anchor element. The native `hidden`\n // attribute is used (not an inline style) so a strict CSP can drop\n // style-src-attr 'unsafe-inline'; the link is removed synchronously\n // after click() so no flash is observed.\n const link = document.createElement('a');\n link.setAttribute('href', dataUrl);\n link.setAttribute('download', 'table-data.csv');\n link.hidden = true;\n document.body.appendChild(link);\n\n // Trigger download and cleanup\n link.click();\n document.body.removeChild(link);\n } catch (error) {\n console.error('Failed to download table data:', error);\n // Fallback: could show user notification or use alternative method\n }\n }\n\n /**\n * Renders the table component based on current state and data.\n *\n * The render logic follows this priority:\n * 1. Shows skeleton loading state if `loading` is true\n * 2. Shows table with pagination if there are more rows than the page size OR pagination was used\n * 3. Shows table only if all rows fit on one page\n *\n * The method also applies the appropriate Carbon theme class (cds-custom--g90 for dark, cds-custom--white for light)\n * to ensure proper styling based on the `dark` property.\n *\n * @returns The lit-html template for the table component\n * @public\n */\n render() {\n // TODO TABLE: Once we have a web component version of the inline error state we could render that here if\n // !this._isValid.\n\n // This could be used while we wait for a md stream containing a table to complete.\n const runtime = this.tableRuntime;\n if (this.loading || !runtime) {\n this.hasRenderedLoadingFrame = true;\n if (!runtime) {\n void this.ensureTableRuntime();\n }\n return tableSkeletonTemplate(this._currentPageSize);\n }\n this.hasRenderedLoadingFrame = false;\n\n const { tableTemplate, tablePaginationTemplate } = runtime;\n\n // If there are more rows than the page size then we need to add the pagination component. If the rows per page has\n // been changed by the pagination component then we need to keep the pagination component around so the user can\n // change the page size again, even if the current page size is the same as the number of table rows.\n if (this.rows.length > this._currentPageSize || this._rowsPerPageChanged) {\n return html`<div class=\"cds-custom-ai-chat-table-container\">\n ${tableTemplate(this)}\n ${tablePaginationTemplate({\n _currentPageSize: this._currentPageSize,\n _currentPageNumber: this._currentPageNumber,\n _filterVisibleRowIDs: this._filterVisibleRowIDs,\n rows: this.rows,\n previousPageText: this.previousPageText,\n nextPageText: this.nextPageText,\n itemsPerPageText: this.itemsPerPageText,\n getPaginationSupplementalText: this.getPaginationSupplementalText,\n getPaginationStatusText: this.getPaginationStatusText,\n _handlePageChangeEvent: this._handlePageChangeEvent,\n _handlePageSizeChangeEvent: this._handlePageSizeChangeEvent,\n })}\n </div>`;\n }\n\n // Otherwise, just render the table.\n return html`<div class=\"cds-custom-ai-chat-table-container\">\n ${tableTemplate(this)}\n </div>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'cds-custom-aichat-table': CDSAIChatTable;\n }\n}\n\nexport { CDSAIChatTable };\nexport default CDSAIChatTable;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAyCH;AACA,MAAM,yBAAyB,GAAG,GAAG;AAErC;;;AAGG;AAEH,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,UAAU,CAAA;AAAvC,IAAA,WAAA,GAAA;;AAaE;;AAEG;QAEH,IAAA,CAAA,OAAO,GAAuB,EAAE;AAEhC;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAsB,EAAE;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A,EAAA,MAAA,CAAA;AAYhD,UAAA,CAAA;AADN,IAAA,KAAK;AAC6B,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,qBAAA,EAAA,MAAA,CAAA;AAQ5B,UAAA,CAAA;AADN,IAAA,KAAK;AAC+C,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,sBAAA,EAAA,MAAA,CAAA;AAW7C,UAAA,CAAA;AADP,IAAA,KAAK;AACiC,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,wBAAA,EAAA,MAAA,CAAA;AAQhC,UAAA,CAAA;AADN,IAAA,KAAK;AACsC,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAQrC,UAAA,CAAA;AADN,IAAA,KAAK;AACwB,CAAA,EAAA,cAAA,CAAA,SAAA,EAAA,iBAAA,EAAA,MAAA,CAAA;AAlL1B,cAAc,GAAA,UAAA,CAAA;AADnB,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,MAAA,CAAQ;AAC1B,CAAA,EAAA,cAAc,CAqpBnB;AASD,uBAAe,cAAc;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"table.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
1
+ {"version":3,"file":"table.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"table.template.js","sources":["../../../../src/components/table/src/table.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAeH;;AAEG;AACH,SAAS,aAAa,CAAC,YAA4B,EAAA;AACjD,IAAA,MAAM,EACJ,UAAU,EACV,gBAAgB,EAChB,OAAO,EACP,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,EACN,eAAe,EAAE,cAAc,EAC/B,YAAY,EAAE,gBAAgB,EAC9B,eAAe,EAAE,mBAAmB,EACpC,kBAAkB,EAAE,iBAAi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AEE,gBAAgB;AAChB,QAAA,IAAI,CAAA,CAAA;WACC,gBAAgB,CAAA;AAEvB,OAAA,CAAA;AACE,IAAA,EAAA,cAAc,EAAE,CAAA,CAAA,EAAI,cAAc,EAAE,CAAA,CAAA,EAAI,WAAW,EAAE;eAC5C;AACf;;;;"}
1
+ {"version":3,"file":"table.template.js","sources":["../../../../src/components/table/src/table.template.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport '@carbon/web-components/es-custom/components/data-table/index.js';\nimport '@carbon/web-components/es-custom/components/checkbox/index.js';\nimport '@carbon/web-components/es-custom/components/icon-button/index.js';\nimport '@carbon/web-components/es-custom/components/layer/index.js';\n\nimport { iconLoader } from '@carbon/web-components/es-custom/globals/internal/icon-loader.js';\nimport Download16 from '@carbon/icons/es/download/16.js';\nimport { html } from 'lit';\nimport { repeat } from 'lit-html/directives/repeat.js';\n\nimport type { CDSAIChatTable } from './table.js';\nimport { isDirectionRTL } from '../../../globals/utils/rtl-utils.js';\n\n/**\n * Table view logic.\n */\nfunction tableTemplate(tableElement: CDSAIChatTable) {\n const {\n tableTitle,\n tableDescription,\n headers,\n filterPlaceholderText,\n downloadLabelText,\n locale,\n _handleDownload: handleDownload,\n _rowsWithIDs: tableRowsWithIDs,\n _allowFiltering: allowTableFiltering,\n _handleFilterEvent: handleFilterEvent,\n } = tableElement;\n\n function toolbarElement() {\n // Check if RTL direction is set\n const isRTL = isDirectionRTL();\n const tooltipPosition = isRTL ? 'right-start' : 'left-start';\n\n return html`<cds-custom-table-toolbar slot=\"toolbar\">\n <cds-custom-table-toolbar-content>\n ${\n allowTableFiltering\n ? html`<cds-custom-table-toolbar-search\n persistent\n placeholder=${filterPlaceholderText}\n aria-label=${filterPlaceholderText}></cds-custom-table-toolbar-search>`\n : ''\n }\n <cds-custom-icon-button\n @click=${handleDownload}\n align=${tooltipPosition}\n kind=\"ghost\">\n ${iconLoader(Download16, { slot: 'icon' })}\n <span slot=\"tooltip-content\">${downloadLabelText}</span>\n </cds-custom-icon-button>\n </cds-custom-table-toolbar-content>\n </cds-custom-table-toolbar>`;\n }\n\n function headersElement() {\n return html`<cds-custom-table-head>\n <cds-custom-table-header-row>\n ${headers.map(\n (header) =>\n html`<cds-custom-table-header-cell\n >${header.template ?? header.text}</cds-custom-table-header-cell\n >`\n )}\n </cds-custom-table-header-row>\n </cds-custom-table-head>`;\n }\n\n function rowsElement() {\n return html`<cds-custom-table-body>\n ${repeat(\n tableRowsWithIDs,\n (row) => row.id,\n (row) =>\n html`<cds-custom-table-row id=${row.id}\n >${row.cells.map((cell) => {\n return html`<cds-custom-table-cell\n >${cell.template ?? cell.text}</cds-custom-table-cell\n >`;\n })}</cds-custom-table-row\n >`\n )}\n </cds-custom-table-body>`;\n }\n\n // TODO TABLE: There is a bug with size=\"sm\" and is-sortable that prevents the header row from being the same size as\n // the rest of the rows https://github.com/carbon-design-system/carbon/issues/17680. For now keep size=\"md\" until that\n // bug is fixed.\n\n // Enable sorting if filtering is enabled.\n return html`<cds-custom-table\n size=\"md\"\n locale=${locale}\n is-sortable\n use-zebra-styles\n @cds-custom-table-filtered=${handleFilterEvent}>\n ${\n tableTitle &&\n html`<cds-custom-table-header-title slot=\"title\"\n >${tableTitle}</cds-custom-table-header-title\n >`\n }\n ${\n tableDescription &&\n html`<cds-custom-table-header-description slot=\"description\"\n >${tableDescription}</cds-custom-table-header-description\n >`\n }\n ${toolbarElement()} ${headersElement()} ${rowsElement()}\n </cds-custom-table>`;\n}\n\nexport { tableTemplate };\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAeH;;AAEG;AACH,SAAS,aAAa,CAAC,YAA4B,EAAA;AACjD,IAAA,MAAM,EACJ,UAAU,EACV,gBAAgB,EAChB,OAAO,EACP,qBAAqB,EACrB,iBAAiB,EACjB,MAAM,EACN,eAAe,EAAE,cAA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,MAAA,CAAA;AAGnB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AACR,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAKoB,UAAA,CAAA;AAArC,IAAA,KAAK,CAAC,CAAA,CAAA,EAAI,UAAU,CAAA,KAAA,CAAO;AAAkC,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;AAEtD,UAAA,CAAA;AADP,IAAA,KAAK,CAAC,CAAA,CAAA,EAAI,UAAU,CAAA,mBAAA,CAAqB;AACH,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,MAAA,CAAA;AAG/B,UAAA,CAAA;AADP,IAAA,KAAK,CAAC,CAAA,CAAA,EAAI,UAAU,CAAA,qBAAA,CAAuB;AACH,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,oBAAA,EAAA,MAAA,CAAA;AAGjC,UAAA,CAAA;AADP,IAAA,KAAK,CAAC,CAAA,CAAA,EAAI,UAAU,CAAA,eAAA,CAAiB;AACH,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAG3B,UAAA,CAAA;AADP,IAAA,KAAK;AACqB,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,MAAA,CAAA;AAlCvB,gBAAgB,GAAA,kBAAA,GAAA,UAAA,CAAA;IADrB,aAAa,CAAC,UAAU;AACnB,CAAA,EAAA,gBAAgB,CA0VrB;AAGD,yBAAe,gBAAgB;;;;"}
1
+ {"version":3,"file":"toolbar.js","sources":["../../../../src/components/toolbar/src/toolbar.ts"],"sourcesContent":["/*\n * Copyright IBM Corp. 2025, 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * @license\n */\n\nimport { LitElement, html, nothing } from 'lit';\nimport { property, state, query } from 'lit/decorators.js';\nimport { repeat } from 'lit/directives/repeat.js';\nimport '@carbon/web-components/es-custom/components/button/index.js';\nimport '@carbon/web-components/es-custom/components/overflow-menu/index.js';\nimport { OVERFLOW_MENU_SIZE } from '@carbon/web-components/es-custom/components/overflow-menu/defs.js';\nimport OverflowMenuVertical16 from '@carbon/icons/es/overflow-menu--vertical/16.js';\nimport { iconLoader } from '@carbon/web-components/es-custom/globals/internal/icon-loader.js';\nimport prefix from '../../../globals/settings.js';\nimport commonStyles from '../../../globals/scss/common.scss?lit';\nimport styles from './toolbar.scss?lit';\nimport { CarbonIcon } from '@carbon/web-components/es-custom/globals/internal/icon-loader-utils.js';\nimport { carbonElement } from '../../../globals/decorators/index.js';\nimport '../../truncated-text/index.js';\nimport { BaseOverflowMenuItem } from '../../../typings/overflow-menu.js';\nimport { PageObjectId } from '../../../testing/PageObjectId.js';\n\nconst blockClass = `${prefix}-toolbar`;\nimport { BUTTON_SIZE } from '@carbon/web-components/es-custom/components/button/defs.js';\n\n/**\n * Actions that display in the toolbar.\n * Extends BaseOverflowMenuItem to support all overflow menu item properties\n * including danger variants, dividers, and links (href/target).\n *\n * Actions can be either:\n * - Interactive buttons with onClick handlers\n * - Links with href/target attributes\n */\nexport interface Action extends BaseOverflowMenuItem {\n /**\n * `@carbon/icons` icon for the action.\n */\n icon: CarbonIcon;\n\n /**\n * Size of button. Defaults to BUTTON_SIZE.MEDIUM.\n */\n size?: BUTTON_SIZE;\n\n /**\n * When overflow handling is enabled, setting fixed to true will force this action out of the overflow menu.\n */\n fixed?: boolean;\n}\n\n/**\n * Toolbar.\n *\n * @element cds-custom-aichat-toolbar\n * @slot navigation - Defines the navigation area of the toolbar.\n * @slot title - Defines the title section of the toolbar.\n * @slot fixed-actions - Defines the area for displaying actions that are always visible (not overflowed) in the toolbar.\n * @slot toolbar-ai-label - Defines the area for displaying the AI label in the toolbar.\n *\n */\n@carbonElement(blockClass)\nclass CDSAIChatToolbar extends LitElement {\n /** Whether the component is in RTL mode.\n * @internal\n */\n @state() private isRTL = false;\n\n /** The list of actions. */\n @property({ type: Array, attribute: false, reflect: false })\n actions: Action[] = [];\n\n /** Should actions be overflowing. */\n @property({ type: Boolean, attribute: 'overflow', reflect: true })\n overflow = false;\n\n @property({ type: String })\n titleText?: string;\n\n @property({ type: String })\n nameText?: string;\n\n /** Container holding all action buttons and the overflow menu.\n * @internal\n */\n @query(`.${blockClass}__end`) private container!: HTMLElement;\n @query(`.${blockClass}__actions-container`)\n private actionsContainer!: HTMLElement;\n\n @query(`.${blockClass}__decorator-container`)\n private decoratorContainer!: HTMLElement;\n\n @query(`.${blockClass}__fixed-actions`)\n private fixedActions!: HTMLElement;\n\n @state()\n private containerWidth = 0;\n\n private resizeObserver?: ResizeObserver;\n\n private static readonly OVERFLOW_MENU_LABEL = 'Options';\n\n connectedCallback(): void {\n super.connectedCallback();\n this.addEventListener('keydown', this._handleToolbarKeydown);\n }\n\n disconnectedCallback() {\n this.resizeObserver?.disconnect();\n this.resizeObserver = undefined;\n this.removeEventListener('keydown', this._handleToolbarKeydown);\n super.disconnectedCallback();\n }\n\n firstUpdated() {\n if (this.overflow) {\n this.setupResizeObserver();\n }\n }\n\n private sortActions() {\n return [...this.actions].sort((a, b) => {\n if (a.fixed && !b.fixed) {\n return -1;\n }\n if (!a.fixed && b.fixed) {\n return 1;\n }\n return 0;\n });\n }\n\n private setupResizeObserver() {\n this.resizeObserver?.disconnect();\n this.resizeObserver = new ResizeObserver((entries) => {\n const width = entries[0].contentRect.width;\n if (width !== this.containerWidth) {\n this.containerWidth = width;\n }\n });\n this.resizeObserver.observe(this.container);\n }\n\n private getActions() {\n if (!this.container || this.container.getBoundingClientRect().width === 0) {\n return {\n visibleActions: [],\n hiddenActions: [],\n };\n }\n\n const actionsContainerWidth =\n this.actionsContainer.getBoundingClientRect().width;\n const overflowMenuIconWidth = 40;\n const fixedActionsWidth =\n this.fixedActions.getBoundingClientRect().width || 0;\n const decoratorContainerWidth =\n this.decoratorContainer.getBoundingClientRect().width || 0;\n /**\n * to properly gauge the container width we need to account for some additional variables\n * 1. the size of the overflow menu icon, which should always be a constant\n * 2. the size of any optional fixed width items\n * 3. the size of any optional decorator items\n */\n const containerWidth =\n actionsContainerWidth -\n (overflowMenuIconWidth + fixedActionsWidth + decoratorContainerWidth);\n const children = this.actionsContainer.children;\n let currentWidth = 0;\n const visibleChildren: Element[] = [];\n const hiddenChildren: Element[] = [];\n for (const el of children) {\n const elWidth = el.getBoundingClientRect().width;\n const newWidth = currentWidth + elWidth;\n const widthCheck = newWidth < containerWidth;\n if (widthCheck) {\n currentWidth = newWidth;\n visibleChildren.push(el);\n } else {\n hiddenChildren.push(el);\n }\n }\n const idx = visibleChildren.length;\n const sortedActions = this.sortActions();\n const visibleActions = sortedActions.slice(0, idx);\n const hiddenActions = sortedActions.slice(idx);\n\n return {\n visibleActions,\n hiddenActions,\n };\n }\n\n /**\n * Returns the focused overflow menu item (if exists) by traversing shadow DOM\n */\n private findFocusedOverflowMenuItem(activeElem: Element): Element | null {\n if (activeElem.tagName.toLowerCase() === 'cds-custom-overflow-menu-item') {\n return activeElem;\n }\n\n if (activeElem?.shadowRoot?.activeElement) {\n return this.findFocusedOverflowMenuItem(\n activeElem.shadowRoot.activeElement\n );\n }\n\n return null;\n }\n\n private _handleToolbarKeydown = (event: KeyboardEvent) => {\n if (event.key !== 'ArrowUp' && event.key !== 'ArrowDown') {\n return;\n }\n\n let focusedMenuItem: Element | null = null;\n\n if (document.activeElement) {\n focusedMenuItem = this.findFocusedOverflowMenuItem(\n document.activeElement\n );\n }\n\n if (focusedMenuItem) {\n event.preventDefault();\n const menuBody = focusedMenuItem.closest('cds-custom-overflow-menu-body');\n\n if (!menuBody) {\n return;\n }\n\n const items = Array.from(\n menuBody.querySelectorAll('cds-custom-overflow-menu-item:not([disabled])')\n ) as HTMLElement[];\n\n const currentIndex = items.indexOf(focusedMenuItem as HTMLElement);\n if (currentIndex === -1) {\n return;\n }\n\n const direction = event.key === 'ArrowDown' ? 1 : -1;\n const nextIndex =\n (currentIndex + direction + items.length) % items.length;\n items[nextIndex]?.focus();\n }\n };\n\n /**\n * Renders an action as an icon button.\n * Note: Some Action properties only apply when rendered in overflow menu:\n * - danger/dangerDescription: cds-custom-icon-button doesn't support danger variant\n * - divider: Only applicable in menu context\n */\n private renderIconButton = (action: Action) => {\n const tooltipAlign = this.isRTL ? 'bottom-start' : 'bottom-end';\n\n return html`\n <cds-custom-icon-button\n ?data-fixed=${action.fixed}\n data-testid=${action.testId || nothing}\n @click=${action.onClick}\n href=${action.href || nothing}\n target=${action.href ? action.target || '_self' : nothing}\n size=${action.size || BUTTON_SIZE.MEDIUM}\n align=${tooltipAlign}\n kind=\"ghost\"\n enter-delay-ms=\"0\"\n leave-delay-ms=\"0\"\n ?disabled=${action.disabled}>\n ${iconLoader(action.icon, {\n slot: 'icon',\n })}\n <span slot=\"tooltip-content\">${action.text}</span>\n </cds-custom-icon-button>\n `;\n };\n\n private getOverflowMenuSize(): OVERFLOW_MENU_SIZE {\n return (this.actions?.[0]?.size ||\n OVERFLOW_MENU_SIZE.MEDIUM) as OVERFLOW_MENU_SIZE;\n }\n\n render() {\n const {\n hiddenActions: rawHiddenActions,\n visibleActions: rawVisibleActions,\n } = this.getActions();\n const showOverflowMenu = rawHiddenActions.length > 1;\n const visibleActions = showOverflowMenu\n ? rawVisibleActions\n : [...rawVisibleActions, ...rawHiddenActions];\n const hiddenActions = showOverflowMenu ? rawHiddenActions : [];\n const showInitialActions =\n rawVisibleActions.length === 0 && rawHiddenActions.length === 0;\n\n return html`\n <div data-rounded=\"top\" class=${blockClass}>\n <div data-fixed class=\"${blockClass}__start\">\n <div data-fixed class=\"${blockClass}__navigation\">\n <slot name=\"navigation\"></slot>\n </div>\n\n <div data-fixed class=\"${blockClass}__title\">\n <slot name=\"title\">\n ${\n this.titleText || this.nameText\n ? html`\n <cds-custom-aichat-truncated-text\n lines=\"1\"\n type=\"tooltip\"\n align=${this.isRTL ? 'bottom-end' : 'bottom-start'}\n value=\"${[this.titleText, this.nameText]\n .filter(Boolean)\n .join(' ')}\">\n ${\n this.titleText\n ? html`<span\n data-testid=${PageObjectId.HEADER_TITLE}\n >${this.titleText}</span\n >`\n : nothing\n }\n ${this.titleText && this.nameText ? html`` : nothing}\n ${\n this.nameText\n ? html`<span\n class=\"${blockClass}__name\"\n data-testid=${PageObjectId.HEADER_NAME}\n >${this.nameText}</span\n >`\n : nothing\n }\n </cds-custom-aichat-truncated-text>\n `\n : nothing\n }\n </slot>\n </div>\n </div>\n <div\n class=\"${blockClass}__end\"\n data-rounded=\"top-right\"\n data-floating-menu-container>\n <div class=\"${blockClass}__actions-container\">\n <div class=\"${blockClass}__decorator-container\">\n <slot name=\"decorator\"></slot>\n </div>\n ${repeat(\n showInitialActions ? this.actions : visibleActions,\n (action) => action.text,\n this.renderIconButton\n )}\n ${\n showOverflowMenu\n ? html`\n <cds-custom-overflow-menu\n size=${this.getOverflowMenuSize()}\n align=${this.isRTL ? 'bottom-start' : 'bottom-end'}\n data-offset\n ?data-hidden=${hiddenActions.length === 0}\n kind=\"ghost\"\n close-on-activation\n enter-delay-ms=\"0\"\n leave-delay-ms=\"0\">\n ${iconLoader(OverflowMenuVertical16, {\n class: `${blockClass}-overflow-icon`,\n slot: 'icon',\n })}\n <span slot=\"tooltip-content\"\n >${CDSAIChatToolbar.OVERFLOW_MENU_LABEL}</span\n >\n <cds-custom-overflow-menu-body ?flipped=${!this.isRTL}>\n ${repeat(\n hiddenActions,\n (item) => item.text,\n (item) => html`\n <cds-custom-overflow-menu-item\n @click=${item.onClick}\n href=${item.href || nothing}\n target=${\n item.href ? item.target || '_self' : nothing\n }\n ?disabled=${item.disabled}\n ?danger=${item.danger}\n danger-description=${\n item.dangerDescription || nothing\n }\n ?divider=${item.divider}\n data-testid=${item.testId || nothing}>\n ${item.text}\n </cds-custom-overflow-menu-item>\n `\n )}\n </cds-custom-overflow-menu-body>\n </cds-custom-overflow-menu>\n `\n : nothing\n }\n <div data-fixed class=\"${blockClass}__fixed-actions\">\n <slot name=\"fixed-actions\"></slot>\n </div>\n </div>\n </div>\n </div>\n `;\n }\n\n static styles = [commonStyles, styles];\n}\n\nexport { CDSAIChatToolbar };\nexport default CDSAIChatToolbar;\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;;AAmBH,MAAM,UAAU,GAAG,CAAA,EAAG,MAAM,UAAU;AA6BtC;;;;;;;;;AASG;AAEH,IAAM,gBAAgB,GAAA,kBAAA,GAAtB,MAAM,gBAAiB,SAAQ,UAAU,CAAA;AAAzC,IAAA,WAAA,GAAA;;AACE;;AAEG;QACc,IAAA,CAAA,KAAK,GAAG,KAAK;;QAI9B,IAAA,CAAA,OAAO,GAAa,EAAE;;QAItB,IAAA,CAAA,QAAQ,GAAG,KAAK;QAsBR,IAAA,CAAA,cAAc,GAAG,CAAC;AAkHlB,QAAA,IAAA,CAAA,qBAAqB,GAAG,CAAC,KAAoB,KAAI;AACvD,YAAA,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,IAAI,KAAK,CAAC,GAAG,KAAK,WAAW,EAAE;gBACxD;YACF;YAEA,IAAI,eAAe,GAAmB,IAAI;AAE1C,YAAA,IAAI,QAAQ,CAAC,aAAa,EAAE;gBAC1B,eAAe,GAAG,IAAI,CAAC,2BAA2B,CAChD,QAAQ,CAAC,aAAa,CACvB;YACH;YAEA,IAAI,eAAe,EAAE;gBACnB,KAAK,CAAC,cAAc,EAAE;gBACtB,MAAM,QAAQ,GAAG,eAAe,CAAC,OAAO,CAAC,wBAAwB,CAAC;gBAElE,IAAI,CAAC,QAAQ,EAAE;oBACb;gBACF;AAEA,gBAAA,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CACtB,QAAQ,CAAC,gBAAgB,CAAC,wCAAwC,CAAC,CACnD;gBAElB,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,eAA8B,CAAC;AAClE,gBAAA,IAAI,YAAY,KAAK,EAAE,EAAE;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AI,UAAU,CAAA,KAAA,CAAO;AAAkC,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,WAAA,EAAA,MAAA,CAAA;AAEtD,UAAA,CAAA;AADP,IAAA,KAAK,CAAC,CAAA,CAAA,EAAI,UAAU,CAAA,mBAAA,CAAqB;AACH,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,MAAA,CAAA;AAG/B,UAAA,CAAA;AADP,IAAA,KAAK,CAAC,CAAA,CAAA,EAAI,UAAU,CAAA,qBAAA,CAAuB;AACH,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,oBAAA,EAAA,MAAA,CAAA;AAGjC,UAAA,CAAA;AADP,IAAA,KAAK,CAAC,CAAA,CAAA,EAAI,UAAU,CAAA,eAAA,CAAiB;AACH,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAG3B,UAAA,CAAA;AADP,IAAA,KAAK;AACqB,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,MAAA,CAAA;AAlCvB,gBAAgB,GAAA,kBAAA,GAAA,UAAA,CAAA;IADrB,aAAa,CAAC,UAAU;AACnB,CAAA,EAAA,gBAAgB,CA0VrB;AAGD,yBAAe,gBAAgB;;"}
@@ -7,7 +7,7 @@
7
7
 
8
8
  import { css } from 'lit';
9
9
 
10
- var styles = css([":host([data-measuring]){visibility:hidden}:host :host([data-rounded=\"\"]),:host [data-rounded=\"\"]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=\"\"])::part(button),:host :host([data-rounded=\"\"])::part(link),:host [data-rounded=\"\"]::part(button),:host [data-rounded=\"\"]::part(link){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem);outline-offset:-.0625rem}:host :host([data-rounded=\"\"])>:only-child,:host [data-rounded=\"\"]>:only-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]),:host [data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]),:host [data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]),:host [data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]),:host [data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]),:host [data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]),:host [data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child,:host [data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child,:host [data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host [data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top-left]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host [data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top-right]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host [data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host [data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host [data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host [data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child,:host [data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child::part(button),:host [data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child,:host [data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host [data-rounded=top-right][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child,:host [data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host [data-rounded=top-left][data-stacked]>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child,:host [data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host [data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child,:host [data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-right][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child,:host [data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-left][data-stacked]>:last-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host{border-start-end-radius:var(--cds-aichat-border-radius,0);border-start-start-radius:var(--cds-aichat-border-radius,0);display:block;max-inline-size:100%;min-inline-size:0}:host .cds-custom-aichat-toolbar{block-size:100%;display:flex;inline-size:100%;max-inline-size:100%;min-block-size:2.5rem;min-inline-size:0}:host .cds-custom-aichat-toolbar-overflow-icon{align-self:unset;color:var(--cds-icon-primary,#161616)}:host .cds-custom-aichat-toolbar__navigation{align-items:center;display:flex}:host .cds-custom-aichat-toolbar__title{flex:1;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572);margin-block:auto;margin-inline-end:auto;min-inline-size:4rem;padding-inline:.75rem}:host .cds-custom-aichat-toolbar__name{font-weight:700}:host .cds-custom-aichat-toolbar__navigation:has(::slotted(*))~.cds-custom-aichat-toolbar__title{padding-inline-start:0}:host .cds-custom-aichat-toolbar__fixed-actions{margin-block:auto}:host .cds-custom-aichat-toolbar__end,:host .cds-custom-aichat-toolbar__start{display:flex;flex:1 0 50%;min-inline-size:0}:host .cds-custom-aichat-toolbar__end{position:relative}:host .cds-custom-aichat-toolbar__actions-container{display:flex;flex:1;justify-content:end;min-inline-size:0}:host ::slotted([slot=navigation]){align-items:center;display:flex;margin-block:auto}:host ::slotted([slot=decorator]){align-items:center;display:flex;justify-content:center;margin-block:auto;min-block-size:2.5rem;min-inline-size:2.5rem}"]);
10
+ var styles = css([":host([data-measuring]){visibility:hidden}:host :host([data-rounded=\"\"]),:host [data-rounded=\"\"]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=\"\"])::part(button),:host :host([data-rounded=\"\"])::part(link),:host [data-rounded=\"\"]::part(button),:host [data-rounded=\"\"]::part(link){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem);outline-offset:-.0625rem}:host :host([data-rounded=\"\"])>:only-child,:host [data-rounded=\"\"]>:only-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem);border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]),:host [data-rounded=top]{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]),:host [data-rounded=top-left]{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]),:host [data-rounded=top-right]{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]),:host [data-rounded=bottom]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]),:host [data-rounded=bottom-left]{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]),:host [data-rounded=bottom-right]{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child,:host [data-rounded=top]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child,:host [data-rounded=top]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child,:host [data-rounded=top-left]:not([data-stacked])>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=top-left]:not([data-stacked])>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child,:host [data-rounded=top-right]:not([data-stacked])>:last-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=top-right]:not([data-stacked])>:last-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child,:host [data-rounded=bottom]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child,:host [data-rounded=bottom]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child,:host [data-rounded=bottom-left]:not([data-stacked])>:first-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left]:not([data-stacked]))>:first-child::part(button),:host [data-rounded=bottom-left]:not([data-stacked])>:first-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child,:host [data-rounded=bottom-right]:not([data-stacked])>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right]:not([data-stacked]))>:last-child::part(button),:host [data-rounded=bottom-right]:not([data-stacked])>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child,:host [data-rounded=top][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top][data-stacked])>:first-child::part(button),:host [data-rounded=top][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem);border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child,:host [data-rounded=top-right][data-stacked]>:first-child{border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-right][data-stacked])>:first-child::part(button),:host [data-rounded=top-right][data-stacked]>:first-child::part(button){border-start-end-radius:calc(var(--cds-aichat-border-radius-start-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child,:host [data-rounded=top-left][data-stacked]>:first-child{border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=top-left][data-stacked])>:first-child::part(button),:host [data-rounded=top-left][data-stacked]>:first-child::part(button){border-start-start-radius:calc(var(--cds-aichat-border-radius-start-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child,:host [data-rounded=bottom][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom][data-stacked])>:last-child::part(button),:host [data-rounded=bottom][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem);border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child,:host [data-rounded=bottom-right][data-stacked]>:last-child{border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-right][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-right][data-stacked]>:last-child::part(button){border-end-end-radius:calc(var(--cds-aichat-border-radius-end-end, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child,:host [data-rounded=bottom-left][data-stacked]>:last-child{border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host :host([data-rounded=bottom-left][data-stacked])>:last-child::part(button),:host [data-rounded=bottom-left][data-stacked]>:last-child::part(button){border-end-start-radius:calc(var(--cds-aichat-border-radius-end-start, var(--cds-aichat-border-radius)) - .0625rem)}:host{border-start-end-radius:var(--cds-aichat-border-radius,0);border-start-start-radius:var(--cds-aichat-border-radius,0);display:block;max-inline-size:100%;min-inline-size:0}:host .cds-custom-aichat-toolbar{block-size:100%;display:flex;inline-size:100%;max-inline-size:100%;min-block-size:2.5rem;min-inline-size:0}:host .cds-custom-aichat-toolbar-overflow-icon{align-self:unset;color:var(--cds-icon-primary,#161616)}:host .cds-custom-aichat-toolbar__navigation{align-items:center;display:flex}:host .cds-custom-aichat-toolbar__title{flex:1;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572);margin-block:auto;margin-inline-end:auto;min-inline-size:4rem;padding-inline-end:.75rem;padding-inline-start:var(--cds-aichat-toolbar-title-padding-inline-start,.75rem)}:host .cds-custom-aichat-toolbar__name{font-weight:700}:host .cds-custom-aichat-toolbar__navigation:has(::slotted(*))~.cds-custom-aichat-toolbar__title{padding-inline-start:0}:host .cds-custom-aichat-toolbar__fixed-actions{margin-block:auto}:host .cds-custom-aichat-toolbar__end,:host .cds-custom-aichat-toolbar__start{display:flex;flex:1 0 50%;min-inline-size:0}:host .cds-custom-aichat-toolbar__end{position:relative}:host .cds-custom-aichat-toolbar__actions-container{display:flex;flex:1;justify-content:end;min-inline-size:0}:host ::slotted([slot=navigation]){align-items:center;display:flex;margin-block:auto}:host ::slotted([slot=decorator]){align-items:center;display:flex;justify-content:center;margin-block:auto;min-block-size:2.5rem;min-inline-size:2.5rem}"]);
11
11
 
12
12
  export { styles as default };
13
13
  //# sourceMappingURL=toolbar.scss.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolbar.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
1
+ {"version":3,"file":"toolbar.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"truncated-text.js","sources":["../../../../src/components/truncated-text/src/truncated-text.ts"],"sourcesContent":[null],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAkBH,MAAM,aAAa,GAAG,gBAAgB;MACzB,UAAU,GAAG,GAAG,MAAM,CAAA,EAAA,EAAK,aAAa,CAAA;AACrD,MAAM,WAAW,GAAG,CAAA,EAAG,MAAM,IAAI,aAAa,CAAA,CAAE,CAAC;AACjD,MAAM,YAAY,GAAG,KAAK;AAE1B,MAAM,uBAAuB,GAAG,mCAAmC;AACnE,IAAI,wBAAwB,GAAG,CAAC;AAEhC;;;;;AAKG;AAEH,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,UAAU,CAAA;AAA/C,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAA,CAAA,KAAK,GAAG,KAAK;AAEb;;AAEG;QAEH,IAAA,CAAA,SAAS,GAAG,KAAK;AAEjB;;AAEG;QAEH,IAAA,CAAA,aAAa,GAAG,EAAE;AAElB;;AAEG;QAEH,IAAA,CAAA,WAAW,GAAG,EAAE;AAEhB;;AAEG;QAEH,IAAA,CAAA,EAAE,GAAG,EAAE;AAEP;;AAEG;QAEH,IAAA,CAAA,KAAK,GAAG,CAAC;AAET;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAyB,SAAS;AAEtC;;AAEG;QAEH,IAAA,CAAA,KAAK,GAAG,EAAE;QAEO,IAAA,CAAA,cAAc,GAAG,KAAK;QACtB,IAAA,CAAA,WAAW,GAAG,KAAK;QACnB,IAAA,CAAA,UAAU,GAAG,MAAM;QAG5B,IAAA,CAAA,WAAW,GAAG,CAAC;QACf,IAAA,CAAA,UAAU,GAAG,KAAK;AAET,QAAA,IAAA,CAAA,oBAAoB,GAAG,CAAA,GAAA,EAAM,EAAE,wBAAwB,EAAE;IAyM5E;AAvME,IAAA,IAAY,kBAAkB,GAAA;AAC5B,QAAA,OAA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;AAAqC,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AArDhE,sBAAsB,GAAA,UAAA,CAAA;IAD3BA,aAAa,CAAC,WAAW;AACpB,CAAA,EAAA,sBAAsB,CAkQ3B;AASD,qCAAe,sBAAsB;;;;"}
1
+ {"version":3,"file":"truncated-text.js","sources":["../../../../src/components/truncated-text/src/truncated-text.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, LitElement } from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { carbonElement as customElement } from '@carbon/web-components/es-custom/globals/decorators/carbon-element.js';\nimport prefix from '../../../globals/settings';\nimport '@carbon/web-components/es-custom/components/tooltip/index.js';\nimport '@carbon/web-components/es-custom/components/button/button.js';\nimport '@carbon/web-components/es-custom/components/link/index.js';\n\nimport styles from './truncated-text.scss?lit';\nimport {\n adoptOnRoot,\n setVarsForSelector,\n clearSelector,\n} from '../../shared/dynamic-css-var-sheet.js';\n\nconst componentName = 'truncated-text';\nexport const blockClass = `${prefix}--${componentName}`;\nconst elementName = `${prefix}-${componentName}`; // cds-custom-aichat-truncated-text\nconst carbonPrefix = 'cds-custom';\n\nconst TRUNCATED_INSTANCE_ATTR = 'data-cds-aichat-truncated-text-id';\nlet truncatedInstanceCounter = 0;\n\n/**\n * TruncatedText.\n *\n * @element cds-custom-aichat-truncated-text\n * @slot - Default slot for custom HTML content (alternative to value property)\n */\n@customElement(elementName)\nclass CDSAIChatTruncatedText extends LitElement {\n /**\n * Specify how the tooltip should align with the content.\n */\n @property({ reflect: true, type: String })\n align = 'top';\n\n /**\n * Specify whether a auto align functionality should be applied\n */\n @property({ type: Boolean, reflect: true })\n autoalign = false;\n\n /**\n * The label on the collapse button.\n */\n @property({ attribute: 'collapse-label', type: String, reflect: true })\n collapseLabel = '';\n\n /**\n * The label on expand button.\n */\n @property({ attribute: 'expand-label', type: String, reflect: true })\n expandLabel = '';\n\n /**\n * Unique identifier for the element.\n */\n @property({ type: String, reflect: true })\n id = '';\n\n /**\n * The maximum number of lines to display before truncation.\n */\n @property({ type: Number, reflect: true })\n lines = 0;\n\n /**\n * The method to display the full text when truncated. Options are \"tooltip\" or \"expand\". if not passed, the text would just be truncated with ellipsis.\n */\n @property({ type: String, reflect: true })\n type: 'tooltip' | 'expand' = 'tooltip';\n\n /**\n * The string value to be truncated.\n */\n @property({ type: String, attribute: 'value', reflect: true })\n value = '';\n\n @state() private _isOverflowing = false;\n @state() private _isExpanded = false;\n @state() private _maxHeight = 'none';\n\n @query(`.${blockClass}_content`) private _textElement!: HTMLElement;\n private _lineHeight = 0;\n private _isLayered = false;\n private _resizeObserver?: ResizeObserver;\n private readonly _truncatedInstanceId = `tt-${++truncatedInstanceCounter}`;\n\n private get _truncatedSelector(): string {\n return `[${TRUNCATED_INSTANCE_ATTR}=\"${this._truncatedInstanceId}\"]`;\n }\n\n private _syncTruncatedVars() {\n setVarsForSelector(this._truncatedSelector, {\n '--line-clamp-value': this.lines === 0 ? 'none' : String(this.lines),\n '--max-height-value': this._maxHeight || 'none',\n });\n }\n\n static styles = styles;\n\n connectedCallback() {\n super.connectedCallback();\n this._isLayered = !!this.closest(`${carbonPrefix}-layer`);\n this.type = this.type || 'tooltip';\n }\n\n disconnectedCallback() {\n this._resizeObserver?.disconnect();\n clearSelector(this._truncatedSelector);\n super.disconnectedCallback();\n }\n\n protected firstUpdated() {\n if (this._textElement) {\n this._textElement.setAttribute(\n TRUNCATED_INSTANCE_ATTR,\n this._truncatedInstanceId\n );\n adoptOnRoot(this.renderRoot as ShadowRoot);\n this._syncTruncatedVars();\n }\n requestAnimationFrame(() => {\n const computedStyle = getComputedStyle(this._textElement);\n this._lineHeight = parseFloat(computedStyle.lineHeight);\n this._setupResizeObserver();\n // Initial overflow check after first render\n this._updateOverflowStatus();\n });\n }\n\n protected updated(changed: Map<string, unknown>) {\n if (changed.has('lines') || changed.has('value')) {\n // Use requestAnimationFrame to ensure DOM is updated before checking overflow\n requestAnimationFrame(() => {\n this._updateOverflowStatus();\n this._updateMaxHeight();\n });\n }\n if (this._textElement) {\n this._syncTruncatedVars();\n }\n }\n\n private _updateMaxHeight() {\n if (this.type !== 'expand') {\n return;\n }\n requestAnimationFrame(() => {\n if (!this._textElement) {\n return;\n }\n this._maxHeight =\n this.lines > 0 && !this._isExpanded\n ? `${this.lines * this._lineHeight}px`\n : `${this._textElement.scrollHeight}px`;\n });\n }\n\n private _setupResizeObserver() {\n if (!this._textElement) {\n return;\n }\n\n if (this._resizeObserver) {\n this._resizeObserver.disconnect();\n }\n\n this._resizeObserver = new ResizeObserver(() => {\n this._updateOverflowStatus();\n });\n\n this._resizeObserver.observe(this);\n }\n\n private _updateOverflowStatus() {\n if (!this._textElement || this.lines <= 0) {\n return;\n }\n this._updateMaxHeight();\n const { scrollHeight, clientHeight } = this._textElement;\n const buffer = this._lineHeight / 2; // buffer of at least half of line height for a stable outcome\n\n const isOverflowing = scrollHeight > clientHeight + buffer;\n\n if (isOverflowing !== this._isOverflowing) {\n this._isOverflowing = isOverflowing;\n }\n }\n\n private _handleKeydown(evt: KeyboardEvent) {\n const { key } = evt;\n if (key === 'Enter' || key === ' ') {\n this._toggleExpansion();\n }\n }\n\n private _toggleExpansion() {\n this._isExpanded = !this._isExpanded;\n this._updateMaxHeight();\n this._textElement?.classList.add(`${blockClass}_transition`);\n const onTransitionEnd = () => {\n this._textElement?.querySelector('button')?.focus();\n this._textElement?.removeEventListener('transitionend', onTransitionEnd);\n };\n this._textElement?.addEventListener('transitionend', onTransitionEnd);\n\n /**\n * currently you cannot animate line-clamping\n * you can however animate max-height\n * this removes the clamping and then quickly adds it so you can see the ellipsis\n */\n if (this._isExpanded === false) {\n this._textElement?.classList.add(`${blockClass}_content--closing`);\n setTimeout(() => {\n this._textElement?.classList.remove(`${blockClass}_content--closing`);\n }, 100);\n }\n }\n\n private _renderToggleButton() {\n const className = classMap({\n [`${blockClass}_button-collapse`]: this._isExpanded,\n [`${blockClass}_button-expand`]: !this._isExpanded,\n [`${blockClass}_button-layered`]: this._isLayered,\n [`${blockClass}_button-hide`]: !this._isOverflowing && !this._isExpanded,\n });\n const label = this._isExpanded ? this.collapseLabel : this.expandLabel;\n return html`\n <span\n aria-controls=${this.id}\n aria-expanded=${this._isExpanded}\n class=${className}\n @click=${this._toggleExpansion}\n @keydown=${this._handleKeydown}\n role=\"button\"\n tabIndex=\"0\">\n ${label}\n </span>\n `;\n }\n\n private _handleSlotChange() {\n // When slotted content changes, recalculate overflow\n requestAnimationFrame(() => {\n this._updateOverflowStatus();\n });\n }\n\n render() {\n // Always render slot, with value as fallback content\n // This allows styled slotted content to be displayed while value is used for tooltip\n const content = html`<slot @slotchange=${this._handleSlotChange}\n >${this.value}</slot\n >`;\n\n // For tooltip content, always use value property (plain text for tooltip)\n const tooltipContent = this.value;\n\n const contentClasses = classMap({\n [`${blockClass}_content`]: true,\n [`${blockClass}_content--expanded`]: this._isExpanded,\n [`${blockClass}_content--expand-type`]: this.type === 'expand',\n });\n\n const valueBody = html`\n <div id=${this.id} class=${contentClasses}>${content}</div>\n `;\n\n // For tooltip, show plain text in tooltip content\n const tooltipVariant = html`\n <cds-custom-tooltip\n align=${this.align}\n autoalign=${this.autoalign}\n enter-delay-ms=\"0\"\n leave-delay-ms=\"0\">\n ${valueBody}\n <cds-custom-tooltip-content>${tooltipContent}</cds-custom-tooltip-content>\n </cds-custom-tooltip>\n `;\n\n const expandVariant = html`${valueBody} ${this._renderToggleButton()}`;\n\n return this.type === 'tooltip' && this._isOverflowing\n ? tooltipVariant\n : expandVariant;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n [elementName]: CDSAIChatTruncatedText;\n }\n}\n\nexport { CDSAIChatTruncatedText };\nexport default CDSAIChatTruncatedText;\n"],"names":["customElement"],"mappings":";;;;;;;;;;;;;;;;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W;AACpB,CAAA,EAAA,sBAAsB,CAkQ3B;AASD,qCAAe,sBAAsB;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"truncated-text.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
1
+ {"version":3,"file":"truncated-text.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"base-provider.js","sources":["../../../../../src/components/video-player/src/providers/base-provider.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAgDH;;;AAGG;MACmB,YAAY,CAAA;AAAlC,IAAA,WAAA,GAAA;QACY,IAAA,CAAA,SAAS,GAAuB,IAAI;QACpC,IAAA,CAAA,MAAM,GAAmB,EAAE;QAC3B,IAAA,CAAA,aAAa,GAAwB,IAAI;QACzC,IAAA,CAAA,YAAY,GAAwB,IAAI;QACxC,IAAA,CAAA,aAAa,GAAwB,IAAI;QACzC,IAAA,CAAA,aAAa,GAAoC,IAAI;IAiJjE;AA/IE;;;;;AAKG;AACH,IAAA,MAAM,IAAI,CAAC,SAAsB,EAAE,MAAsB,EAAA;AACvD,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS;AAC1B,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM;IACtB;AAmBA;;;;AAIG;AACH,IAAA,OAAO,CAAC,QAAoB,EAAA;AAC1B,QAAA,IAAI,CAAC,aAAa,GAAG,QAAQ;IAC/B;AAEA;;;;AAIG;AACH,IAAA,MAAM,CAAC,QAAoB,EAAA;AACzB,QAAA,IAAI,CAAC,YAAY,GAAG,QAAQ;IAC9B;AAEA;;;;AAIG;AACH,IAAA,OAAO,CAAC,QAAoB,EAAA;AAC1B,QAAA,IAAI,CAAC,aAAa,GAAG,QAAQ;IAC/B;AAEA;;;;AAIG;AACH,IAAA,OAAO,CAAC,QAAgC,EAAA;AACtC,QAAA,IAAI,CAAC,aAAa,GAAG,QAAQ;IAC/B;A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IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;QAC3B;IACF;AACD;;;;"}
1
+ {"version":3,"file":"base-provider.js","sources":["../../../../../src/components/video-player/src/providers/base-provider.ts"],"sourcesContent":["/**\n * @license\n *\n * Copyright IBM Corp. 2026\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Configuration options for media providers\n */\nexport interface ProviderConfig {\n /**\n * ARIA label for accessibility\n */\n ariaLabel?: string;\n\n /**\n * Whether to start playing automatically\n */\n playing?: boolean;\n\n /**\n * Subtitle tracks for native video (not used by iframe providers)\n */\n subtitleTracks?: Array<{\n src: string;\n language: string;\n label: string;\n kind?: 'subtitles' | 'captions' | 'descriptions';\n default?: boolean;\n }>;\n\n /**\n * Generic error message to display when media fails to load\n */\n errorMessage?: string;\n\n /**\n * Label suffix for loading state (e.g., \"Loading\")\n */\n loadingLabel?: string;\n\n /**\n * Label suffix for ready state (e.g., \"Ready\")\n */\n readyLabel?: string;\n\n /**\n * Label suffix for error state (e.g., \"Error\")\n */\n errorLabel?: string;\n}\n\n/**\n * Abstract base class for all media providers.\n * Defines the common interface that all providers must implement.\n */\nexport abstract class BaseProvider {\n protected container: HTMLElement | null = null;\n protected config: ProviderConfig = {};\n protected readyCallback: (() => void) | null = null;\n protected playCallback: (() => void) | null = null;\n protected pauseCallback: (() => void) | null = null;\n protected errorCallback: ((error: Error) => void) | null = null;\n\n /**\n * Initialize the provider with a container element and configuration\n *\n * @param container - The HTML element to render the player into\n * @param config - Configuration options for the provider\n */\n async init(container: HTMLElement, config: ProviderConfig): Promise<void> {\n this.container = container;\n this.config = config;\n }\n\n /**\n * Load a media URL\n *\n * @param url - The URL of the media to load\n */\n abstract load(url: string): Promise<void>;\n\n /**\n * Start or resume playback\n */\n abstract play(): void;\n\n /**\n * Pause playback\n */\n abstract pause(): void;\n\n /**\n * Register a callback for when the player is ready\n *\n * @param callback - Function to call when ready\n */\n onReady(callback: () => void): void {\n this.readyCallback = callback;\n }\n\n /**\n * Register a callback for when playback starts\n *\n * @param callback - Function to call when playing\n */\n onPlay(callback: () => void): void {\n this.playCallback = callback;\n }\n\n /**\n * Register a callback for when playback pauses\n *\n * @param callback - Function to call when paused\n */\n onPause(callback: () => void): void {\n this.pauseCallback = callback;\n }\n\n /**\n * Register a callback for when an error occurs\n *\n * @param callback - Function to call with error\n */\n onError(callback: (error: Error) => void): void {\n this.errorCallback = callback;\n }\n\n /**\n * Update aria attributes on an element based on state.\n * Subclasses should implement this to update iframe/video element attributes.\n *\n * @param element - The element to update\n * @param state - The current state (loading, ready, or error)\n */\n protected abstract updateAriaAttributes(\n element: HTMLElement,\n state: 'loading' | 'ready' | 'error'\n ): void;\n\n /**\n * Get the appropriate aria-label for a given state\n *\n * @param state - The current state\n * @returns The aria-label string\n */\n protected getStateLabel(state: 'loading' | 'ready' | 'error'): string {\n const baseLabel = this.config.ariaLabel || 'Video player';\n const stateLabels = {\n loading: this.config.loadingLabel || 'Loading',\n ready: this.config.readyLabel || 'Ready',\n error: this.config.errorLabel || 'Error',\n };\n return `${baseLabel} - ${stateLabels[state]}`;\n }\n\n /**\n * Clean up the provider and remove any DOM elements or event listeners\n */\n destroy(): void {\n if (this.container) {\n this.container.innerHTML = '';\n this.container = null;\n }\n this.readyCallback = null;\n this.playCallback = null;\n this.pauseCallback = null;\n this.errorCallback = null;\n }\n\n /**\n * Trigger the ready callback\n */\n protected triggerReady(): void {\n if (this.readyCallback) {\n this.readyCallback();\n }\n }\n\n /**\n * Trigger the play callback\n */\n protected triggerPlay(): void {\n if (this.playCallback) {\n this.playCallback();\n }\n }\n\n /**\n * Trigger the pause callback\n */\n protected triggerPause(): void {\n if (this.pauseCallback) {\n this.pauseCallback();\n }\n }\n\n /**\n * Trigger the error callback\n *\n * @param error - The error that occurred\n */\n protected triggerError(error: Error): void {\n if (this.errorCallback) {\n this.errorCallback(error);\n }\n }\n}\n"],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;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