@carbon/ai-chat-components 1.8.0 → 1.9.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.
- package/README.md +1 -5
- package/custom-elements.json +18138 -12542
- package/es/components/audio-player/index.d.ts +4 -4
- package/es/components/audio-player/src/audio-player.d.ts +1 -1
- package/es/components/audio-player/src/audio-player.js +33 -39
- package/es/components/audio-player/src/audio-player.js.map +1 -1
- package/es/components/audio-player/src/providers/base-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/base-provider.js +9 -10
- package/es/components/audio-player/src/providers/base-provider.js.map +1 -1
- package/es/components/audio-player/src/providers/native-audio-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/native-audio-provider.js +18 -19
- package/es/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
- package/es/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/soundcloud-provider.js +14 -15
- package/es/components/audio-player/src/providers/soundcloud-provider.js.map +1 -1
- package/es/components/audio-player/src/transcript.d.ts +2 -2
- package/es/components/audio-player/src/transcript.js +14 -17
- package/es/components/audio-player/src/transcript.js.map +1 -1
- package/es/components/audio-player/src/utils/url-detector.js +1 -2
- package/es/components/audio-player/src/utils/url-detector.js.map +1 -1
- package/es/components/card/index.d.ts +4 -4
- package/es/components/card/src/card-footer.d.ts +5 -5
- package/es/components/card/src/card-footer.js +12 -16
- package/es/components/card/src/card-footer.js.map +1 -1
- package/es/components/card/src/card-footer.scss.js +1 -1
- package/es/components/card/src/card-steps.d.ts +4 -4
- package/es/components/card/src/card-steps.js +3 -5
- package/es/components/card/src/card-steps.js.map +1 -1
- package/es/components/card/src/card-steps.scss.js +1 -1
- package/es/components/card/src/card.d.ts +2 -2
- package/es/components/card/src/card.js +3 -3
- package/es/components/card/src/card.scss.js +1 -1
- package/es/components/carousel/index.d.ts +1 -1
- package/es/components/carousel/src/carousel.d.ts +2 -2
- package/es/components/carousel/src/carousel.js +4 -6
- package/es/components/carousel/src/carousel.js.map +1 -1
- package/es/components/carousel/src/carousel.scss.js +1 -1
- package/es/components/chain-of-thought/defs.js +1 -1
- package/es/components/chain-of-thought/index.d.ts +10 -10
- package/es/components/chain-of-thought/src/chain-of-thought-step.d.ts +4 -4
- package/es/components/chain-of-thought/src/chain-of-thought-step.js +36 -42
- package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +11 -14
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.d.ts +4 -4
- package/es/components/chain-of-thought/src/chain-of-thought.js +16 -17
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
- package/es/components/chain-of-thought/src/tool-call-data.js +17 -23
- package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es/components/chat-button/defs.d.ts +1 -1
- package/es/components/chat-button/defs.js +1 -1
- package/es/components/chat-button/index.d.ts +2 -2
- package/es/components/chat-button/src/chat-button.d.ts +5 -5
- package/es/components/chat-button/src/chat-button.js +6 -6
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/chat-history/index.d.ts +11 -11
- package/es/components/chat-history/src/chat-history.scss.js +1 -1
- package/es/components/chat-history/src/history-content.d.ts +1 -1
- package/es/components/chat-history/src/history-content.js +6 -6
- package/es/components/chat-history/src/history-delete-panel.d.ts +2 -2
- package/es/components/chat-history/src/history-delete-panel.js +11 -11
- package/es/components/chat-history/src/history-header.d.ts +2 -2
- package/es/components/chat-history/src/history-header.js +9 -10
- package/es/components/chat-history/src/history-header.js.map +1 -1
- package/es/components/chat-history/src/history-loading.d.ts +2 -2
- package/es/components/chat-history/src/history-loading.js +1 -1
- package/es/components/chat-history/src/history-panel-item-input.d.ts +2 -2
- package/es/components/chat-history/src/history-panel-item-input.js +21 -22
- package/es/components/chat-history/src/history-panel-item-input.js.map +1 -1
- package/es/components/chat-history/src/history-panel-item.d.ts +5 -5
- package/es/components/chat-history/src/history-panel-item.js +39 -41
- package/es/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es/components/chat-history/src/history-panel-items.d.ts +1 -1
- package/es/components/chat-history/src/history-panel-items.js +1 -1
- package/es/components/chat-history/src/history-panel-menu.d.ts +1 -1
- package/es/components/chat-history/src/history-panel.d.ts +1 -1
- package/es/components/chat-history/src/history-panel.js +3 -3
- package/es/components/chat-history/src/history-search-item.d.ts +1 -1
- package/es/components/chat-history/src/history-search-item.js +4 -4
- package/es/components/chat-history/src/history-shell.d.ts +1 -1
- package/es/components/chat-history/src/history-shell.js +3 -3
- package/es/components/chat-history/src/history-toolbar.d.ts +9 -5
- package/es/components/chat-history/src/history-toolbar.js +13 -10
- package/es/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es/components/chat-shell/index.d.ts +5 -5
- package/es/components/chat-shell/src/chat-header.d.ts +8 -8
- package/es/components/chat-shell/src/chat-header.js +37 -45
- package/es/components/chat-shell/src/chat-header.js.map +1 -1
- package/es/components/chat-shell/src/corner-manager.d.ts +2 -2
- package/es/components/chat-shell/src/corner-manager.js +31 -32
- package/es/components/chat-shell/src/corner-manager.js.map +1 -1
- package/es/components/chat-shell/src/initialization-manager.d.ts +2 -2
- package/es/components/chat-shell/src/initialization-manager.js +1 -2
- package/es/components/chat-shell/src/initialization-manager.js.map +1 -1
- package/es/components/chat-shell/src/panel-manager.d.ts +1 -1
- package/es/components/chat-shell/src/panel-manager.js +12 -12
- package/es/components/chat-shell/src/panel.d.ts +2 -2
- package/es/components/chat-shell/src/panel.js +99 -100
- package/es/components/chat-shell/src/panel.js.map +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.d.ts +1 -1
- package/es/components/chat-shell/src/resize-observer-manager.js +10 -11
- package/es/components/chat-shell/src/resize-observer-manager.js.map +1 -1
- package/es/components/chat-shell/src/shell.d.ts +8 -8
- package/es/components/chat-shell/src/shell.js +130 -137
- package/es/components/chat-shell/src/shell.js.map +1 -1
- package/es/components/chat-shell/src/slot-observer.d.ts +2 -2
- package/es/components/chat-shell/src/slot-observer.js +5 -9
- package/es/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es/components/chat-shell/src/types.d.ts +4 -4
- package/es/components/chat-shell/src/workspace-manager-utils.d.ts +1 -1
- package/es/components/chat-shell/src/workspace-manager-utils.js +5 -6
- package/es/components/chat-shell/src/workspace-manager-utils.js.map +1 -1
- package/es/components/chat-shell/src/workspace-manager.d.ts +2 -2
- package/es/components/chat-shell/src/workspace-manager.js +33 -34
- package/es/components/chat-shell/src/workspace-manager.js.map +1 -1
- package/es/components/code-snippet/index.d.ts +4 -4
- package/es/components/code-snippet/src/code-snippet.d.ts +19 -8
- package/es/components/code-snippet/src/code-snippet.js +124 -98
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.js +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +8 -8
- package/es/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/content-sync.js +2 -2
- package/es/components/code-snippet/src/codemirror/detect-language.d.ts +6 -0
- package/es/components/code-snippet/src/codemirror/detect-language.js +77 -0
- package/es/components/code-snippet/src/codemirror/detect-language.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/diff-decorator.d.ts +2 -2
- package/es/components/code-snippet/src/codemirror/diff-decorator.js +4 -4
- package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -4
- package/es/components/code-snippet/src/codemirror/editor-manager.js +4 -4
- package/es/components/code-snippet/src/codemirror/language-controller.d.ts +3 -3
- package/es/components/code-snippet/src/codemirror/language-controller.js +3 -3
- package/es/components/code-snippet/src/codemirror/language-data.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/language-data.js +299 -299
- package/es/components/code-snippet/src/codemirror/language-utils.d.ts +2 -2
- package/es/components/code-snippet/src/codemirror/language-utils.js +60 -66
- package/es/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
- package/es/components/code-snippet/src/codemirror/marker-utils.js +15 -15
- package/es/components/code-snippet/src/codemirror/theme.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/theme.js +168 -163
- package/es/components/code-snippet/src/codemirror/theme.js.map +1 -1
- package/es/components/code-snippet/src/dom-utils.js +6 -6
- package/es/components/code-snippet/src/layout-utils.d.ts +2 -2
- package/es/components/code-snippet/src/layout-utils.js +28 -15
- package/es/components/code-snippet/src/layout-utils.js.map +1 -1
- package/es/components/code-snippet/src/streaming-manager.js +5 -5
- package/es/components/feedback/index.d.ts +4 -4
- package/es/components/feedback/src/feedback-buttons.d.ts +3 -3
- package/es/components/feedback/src/feedback-buttons.js +17 -19
- package/es/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es/components/feedback/src/feedback.d.ts +9 -9
- package/es/components/feedback/src/feedback.js +39 -45
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/feedback/src/feedback.scss.js +1 -1
- package/es/components/file-uploads/index.d.ts +13 -0
- package/es/components/file-uploads/index.js +10 -0
- package/es/components/file-uploads/index.js.map +1 -0
- package/es/components/file-uploads/src/file-type-icon.d.ts +18 -0
- package/es/components/file-uploads/src/file-type-icon.js +87 -0
- package/es/components/file-uploads/src/file-type-icon.js.map +1 -0
- package/es/components/file-uploads/src/file-upload-item.d.ts +104 -0
- package/es/components/file-uploads/src/file-upload-item.js +366 -0
- package/es/components/file-uploads/src/file-upload-item.js.map +1 -0
- package/es/components/file-uploads/src/file-upload-item.scss.js +13 -0
- package/es/components/file-uploads/src/file-upload-item.scss.js.map +1 -0
- package/es/components/file-uploads/src/file-uploads.d.ts +91 -0
- package/es/components/file-uploads/src/file-uploads.js +238 -0
- package/es/components/file-uploads/src/file-uploads.js.map +1 -0
- package/es/components/file-uploads/src/file-uploads.scss.js +13 -0
- package/es/components/file-uploads/src/file-uploads.scss.js.map +1 -0
- package/es/components/file-uploads/src/types.d.ts +39 -0
- package/es/components/file-uploads/src/types.js +8 -0
- package/es/components/file-uploads/src/types.js.map +1 -0
- package/es/components/launcher/index.d.ts +9 -0
- package/es/components/launcher/index.js +9 -0
- package/es/components/launcher/index.js.map +1 -0
- package/es/components/launcher/src/launcher.d.ts +68 -0
- package/es/components/launcher/src/launcher.js +152 -0
- package/es/components/launcher/src/launcher.js.map +1 -0
- package/es/components/launcher/src/launcher.scss.js +13 -0
- package/es/components/launcher/src/launcher.scss.js.map +1 -0
- package/es/components/markdown/index.d.ts +5 -4
- package/es/components/markdown/index.js +1 -0
- package/es/components/markdown/index.js.map +1 -1
- package/es/components/markdown/src/markdown-renderer-types.d.ts +10 -3
- package/es/components/markdown/src/markdown-renderer.d.ts +9 -9
- package/es/components/markdown/src/markdown-renderer.js +85 -80
- package/es/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es/components/markdown/src/markdown-token-tree.d.ts +9 -1
- package/es/components/markdown/src/markdown-token-tree.js +32 -21
- package/es/components/markdown/src/markdown-token-tree.js.map +1 -1
- package/es/components/markdown/src/markdown.d.ts +4 -7
- package/es/components/markdown/src/markdown.js +99 -81
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/markdown.scss.js +1 -1
- package/es/components/markdown/src/markdown.template.js +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-attrs.js +19 -19
- package/es/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-highlight.js +5 -5
- package/es/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -1
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js +14 -14
- package/es/components/markdown/src/utils/html-helpers.d.ts +1 -1
- package/es/components/markdown/src/utils/html-helpers.js +72 -72
- package/es/components/markdown/src/utils/lit-directives.d.ts +2 -2
- package/es/components/markdown/src/utils/lit-directives.js +5 -5
- package/es/components/markdown/src/utils/plugin-fallback.d.ts +4 -4
- package/es/components/markdown/src/utils/plugin-fallback.js +61 -61
- package/es/components/markdown/src/utils/streaming-table.d.ts +1 -1
- package/es/components/markdown/src/utils/streaming-table.js +6 -6
- package/es/components/markdown/src/utils/table-helpers.d.ts +4 -4
- package/es/components/markdown/src/utils/table-helpers.js +17 -18
- package/es/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es/components/processing/index.d.ts +1 -1
- package/es/components/processing/src/processing.d.ts +2 -2
- package/es/components/processing/src/processing.js +2 -2
- package/es/components/prompt-line/autocomplete/index.d.ts +12 -0
- package/es/components/prompt-line/autocomplete/index.js +9 -0
- package/es/components/prompt-line/autocomplete/index.js.map +1 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.d.ts +165 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.js +506 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js +13 -0
- package/es/components/prompt-line/autocomplete/src/autocomplete.scss.js.map +1 -0
- package/es/components/prompt-line/index.d.ts +26 -0
- package/es/components/prompt-line/index.js +32 -0
- package/es/components/prompt-line/index.js.map +1 -0
- package/es/components/prompt-line/src/autocomplete-controller.d.ts +180 -0
- package/es/components/prompt-line/src/autocomplete-controller.js +608 -0
- package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -0
- package/es/components/prompt-line/src/error-message.d.ts +46 -0
- package/es/components/prompt-line/src/error-message.js +134 -0
- package/es/components/prompt-line/src/error-message.js.map +1 -0
- package/es/components/prompt-line/src/error-message.scss.js +13 -0
- package/es/components/prompt-line/src/error-message.scss.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-constants.d.ts +17 -0
- package/es/components/prompt-line/src/prompt-line-constants.js +27 -0
- package/es/components/prompt-line/src/prompt-line-constants.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-controller.d.ts +155 -0
- package/es/components/prompt-line/src/prompt-line-controller.js +394 -0
- package/es/components/prompt-line/src/prompt-line-controller.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-rich-loader.d.ts +34 -0
- package/es/components/prompt-line/src/prompt-line-rich-loader.js +51 -0
- package/es/components/prompt-line/src/prompt-line-rich-loader.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +14 -0
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js +342 -0
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-shell.d.ts +72 -0
- package/es/components/prompt-line/src/prompt-line-shell.js +225 -0
- package/es/components/prompt-line/src/prompt-line-shell.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line-shell.scss.js +13 -0
- package/es/components/prompt-line/src/prompt-line-shell.scss.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line.d.ts +147 -0
- package/es/components/prompt-line/src/prompt-line.js +391 -0
- package/es/components/prompt-line/src/prompt-line.js.map +1 -0
- package/es/components/prompt-line/src/prompt-line.scss.js +13 -0
- package/es/components/prompt-line/src/prompt-line.scss.js.map +1 -0
- package/es/components/prompt-line/src/send-control.d.ts +46 -0
- package/es/components/prompt-line/src/send-control.js +136 -0
- package/es/components/prompt-line/src/send-control.js.map +1 -0
- package/es/components/prompt-line/src/send-control.scss.js +13 -0
- package/es/components/prompt-line/src/send-control.scss.js.map +1 -0
- package/es/components/prompt-line/src/stop-streaming-button.d.ts +42 -0
- package/es/components/prompt-line/src/stop-streaming-button.js +92 -0
- package/es/components/prompt-line/src/stop-streaming-button.js.map +1 -0
- package/es/components/prompt-line/src/stop-streaming-button.scss.js +13 -0
- package/es/components/prompt-line/src/stop-streaming-button.scss.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/build-extensions.d.ts +30 -0
- package/es/components/prompt-line/src/tiptap/build-extensions.js +38 -0
- package/es/components/prompt-line/src/tiptap/build-extensions.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +21 -0
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js +127 -0
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/carbon-mention.d.ts +19 -0
- package/es/components/prompt-line/src/tiptap/carbon-mention.js +237 -0
- package/es/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +23 -0
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js +70 -0
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/chat-enter.d.ts +17 -0
- package/es/components/prompt-line/src/tiptap/chat-enter.js +46 -0
- package/es/components/prompt-line/src/tiptap/chat-enter.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/editor-styles.d.ts +18 -0
- package/es/components/prompt-line/src/tiptap/editor-styles.js +83 -0
- package/es/components/prompt-line/src/tiptap/editor-styles.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/index.d.ts +42 -0
- package/es/components/prompt-line/src/tiptap/index.js +43 -0
- package/es/components/prompt-line/src/tiptap/index.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/json-utils.d.ts +61 -0
- package/es/components/prompt-line/src/tiptap/json-utils.js +158 -0
- package/es/components/prompt-line/src/tiptap/json-utils.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/keymap.d.ts +31 -0
- package/es/components/prompt-line/src/tiptap/keymap.js +59 -0
- package/es/components/prompt-line/src/tiptap/keymap.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/origin-meta.d.ts +11 -0
- package/es/components/prompt-line/src/tiptap/origin-meta.js +33 -0
- package/es/components/prompt-line/src/tiptap/origin-meta.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/plain-text-paste.d.ts +16 -0
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js +85 -0
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +87 -0
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js +41 -0
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/render-token-chip.d.ts +57 -0
- package/es/components/prompt-line/src/tiptap/render-token-chip.js +95 -0
- package/es/components/prompt-line/src/tiptap/render-token-chip.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/token-node-view.d.ts +36 -0
- package/es/components/prompt-line/src/tiptap/token-node-view.js +41 -0
- package/es/components/prompt-line/src/tiptap/token-node-view.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/trigger-utils.d.ts +37 -0
- package/es/components/prompt-line/src/tiptap/trigger-utils.js +53 -0
- package/es/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/types.d.ts +182 -0
- package/es/components/prompt-line/src/tiptap/types.js +8 -0
- package/es/components/prompt-line/src/tiptap/types.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/typing-indicator.d.ts +30 -0
- package/es/components/prompt-line/src/tiptap/typing-indicator.js +104 -0
- package/es/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -0
- package/es/components/prompt-line/src/tiptap/value-sync.d.ts +25 -0
- package/es/components/prompt-line/src/tiptap/value-sync.js +65 -0
- package/es/components/prompt-line/src/tiptap/value-sync.js.map +1 -0
- package/es/components/prompt-line/src/types.d.ts +100 -0
- package/es/components/prompt-line/src/types.js +50 -0
- package/es/components/prompt-line/src/types.js.map +1 -0
- package/es/components/reasoning-steps/index.d.ts +4 -4
- package/es/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-step.js +27 -31
- package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +12 -14
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
- package/es/components/reasoning-steps/src/reasoning-steps.js +19 -20
- package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es/components/shared/dynamic-css-var-sheet.js +7 -7
- package/es/components/shared/media-utils/script-loader.js +1 -2
- package/es/components/shared/media-utils/script-loader.js.map +1 -1
- package/es/components/table/index.d.ts +3 -3
- package/es/components/table/src/table-loader.d.ts +1 -1
- package/es/components/table/src/table-loader.js +1 -1
- package/es/components/table/src/table-pagination.template.d.ts +3 -3
- package/es/components/table/src/table-pagination.template.js +4 -5
- package/es/components/table/src/table-pagination.template.js.map +1 -1
- package/es/components/table/src/table-runtime.d.ts +2 -2
- package/es/components/table/src/table-skeleton.template.d.ts +1 -1
- package/es/components/table/src/table-skeleton.template.js +2 -3
- package/es/components/table/src/table-skeleton.template.js.map +1 -1
- package/es/components/table/src/table.d.ts +3 -4
- package/es/components/table/src/table.js +36 -39
- package/es/components/table/src/table.js.map +1 -1
- package/es/components/table/src/table.template.d.ts +5 -5
- package/es/components/table/src/table.template.js +6 -9
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/components/toolbar/index.d.ts +1 -1
- package/es/components/toolbar/src/toolbar.d.ts +9 -7
- package/es/components/toolbar/src/toolbar.js +45 -33
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.js +1 -1
- package/es/components/truncated-text/index.d.ts +1 -1
- package/es/components/truncated-text/src/truncated-text.d.ts +5 -5
- package/es/components/truncated-text/src/truncated-text.js +26 -28
- package/es/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es/components/truncated-text/src/truncated-text.scss.js +1 -1
- package/es/components/video-player/index.d.ts +2 -2
- package/es/components/video-player/src/providers/base-provider.d.ts +3 -3
- package/es/components/video-player/src/providers/base-provider.js +5 -6
- package/es/components/video-player/src/providers/base-provider.js.map +1 -1
- package/es/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/kaltura-provider.js +23 -24
- package/es/components/video-player/src/providers/kaltura-provider.js.map +1 -1
- package/es/components/video-player/src/providers/native-video-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/native-video-provider.js +20 -21
- package/es/components/video-player/src/providers/native-video-provider.js.map +1 -1
- package/es/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/vimeo-provider.js +23 -24
- package/es/components/video-player/src/providers/vimeo-provider.js.map +1 -1
- package/es/components/video-player/src/providers/youtube-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/youtube-provider.js +15 -16
- package/es/components/video-player/src/providers/youtube-provider.js.map +1 -1
- package/es/components/video-player/src/utils/url-detector.js +1 -2
- package/es/components/video-player/src/utils/url-detector.js.map +1 -1
- package/es/components/video-player/src/video-player.d.ts +2 -2
- package/es/components/video-player/src/video-player.js +37 -42
- package/es/components/video-player/src/video-player.js.map +1 -1
- package/es/components/workspace-shell/index.d.ts +4 -4
- package/es/components/workspace-shell/src/header-collapsible-manager.js +13 -14
- package/es/components/workspace-shell/src/header-collapsible-manager.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
- package/es/components/workspace-shell/src/workspace-shell-body.js +2 -2
- package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +4 -4
- package/es/components/workspace-shell/src/workspace-shell-footer.js +10 -11
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.d.ts +2 -2
- package/es/components/workspace-shell/src/workspace-shell-header.js +10 -13
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.d.ts +1 -1
- package/es/components/workspace-shell/src/workspace-shell.js +3 -3
- package/es/globals/decorators/carbon-element.d.ts +4 -4
- package/es/globals/decorators/carbon-element.js +2 -2
- package/es/globals/decorators/index.d.ts +1 -1
- package/es/globals/scss/common.scss.js +1 -1
- package/es/globals/settings.js +2 -2
- package/es/globals/utils/aria-announcer-manager.d.ts +62 -0
- package/es/globals/utils/aria-announcer-manager.js +125 -0
- package/es/globals/utils/aria-announcer-manager.js.map +1 -0
- package/es/globals/utils/browser-utils.d.ts +10 -0
- package/es/globals/utils/browser-utils.js +37 -0
- package/es/globals/utils/browser-utils.js.map +1 -0
- package/es/globals/utils/csv.d.ts +8 -0
- package/es/globals/utils/csv.js +37 -0
- package/es/globals/utils/csv.js.map +1 -0
- package/es/globals/utils/dom-utils.d.ts +6 -0
- package/es/globals/utils/dom-utils.js +39 -0
- package/es/globals/utils/dom-utils.js.map +1 -0
- package/es/globals/utils/focus-utils.js +4 -4
- package/es/{react → globals}/utils/iconTransform.d.ts +2 -2
- package/es/{react → globals}/utils/iconTransform.js +22 -23
- package/es/globals/utils/iconTransform.js.map +1 -0
- package/es/globals/utils/rtl-utils.js +1 -1
- package/es/globals/utils/uuid.js +5 -5
- package/es/react/__tests__/jest.setup.js +13 -14
- package/es/react/__tests__/jest.setup.js.map +1 -1
- package/es/react/ai-label-action-button.d.ts +1 -1
- package/es/react/ai-label-action-button.js +1 -1
- package/es/react/audio-player.d.ts +1 -1
- package/es/react/audio-player.js +5 -6
- package/es/react/audio-player.js.map +1 -1
- package/es/react/autocomplete.d.ts +11 -0
- package/es/react/autocomplete.js +36 -0
- package/es/react/autocomplete.js.map +1 -0
- package/es/react/card.d.ts +1 -1
- package/es/react/card.js +5 -5
- package/es/react/carousel.d.ts +1 -1
- package/es/react/carousel.js +2 -2
- package/es/react/chain-of-thought-step.d.ts +1 -1
- package/es/react/chain-of-thought-step.js +4 -4
- package/es/react/chain-of-thought-toggle.d.ts +2 -2
- package/es/react/chain-of-thought-toggle.js +3 -3
- package/es/react/chain-of-thought.d.ts +2 -2
- package/es/react/chain-of-thought.js +4 -4
- package/es/react/chat-button.d.ts +3 -3
- package/es/react/chat-button.js +2 -2
- package/es/react/chat-header.d.ts +3 -3
- package/es/react/chat-header.js +3 -3
- package/es/react/chat-shell.d.ts +2 -2
- package/es/react/chat-shell.js +2 -2
- package/es/react/code-snippet.d.ts +4 -4
- package/es/react/code-snippet.js +4 -4
- package/es/react/error-message.d.ts +11 -0
- package/es/react/error-message.js +28 -0
- package/es/react/error-message.js.map +1 -0
- package/es/react/feedback-buttons.d.ts +1 -1
- package/es/react/feedback-buttons.js +3 -3
- package/es/react/feedback.d.ts +2 -2
- package/es/react/feedback.js +4 -4
- package/es/react/file-upload-item.d.ts +11 -0
- package/es/react/file-upload-item.js +31 -0
- package/es/react/file-upload-item.js.map +1 -0
- package/es/react/file-uploads.d.ts +11 -0
- package/es/react/file-uploads.js +31 -0
- package/es/react/file-uploads.js.map +1 -0
- package/es/react/history/history-content.d.ts +1 -1
- package/es/react/history/history-content.js +1 -1
- package/es/react/history/history-delete-panel.d.ts +1 -1
- package/es/react/history/history-delete-panel.js +3 -3
- package/es/react/history/history-header.d.ts +1 -1
- package/es/react/history/history-header.js +2 -2
- package/es/react/history/history-loading.d.ts +1 -1
- package/es/react/history/history-loading.js +1 -1
- package/es/react/history/history-panel-item-input.d.ts +1 -1
- package/es/react/history/history-panel-item-input.js +4 -4
- package/es/react/history/history-panel-item.d.ts +1 -1
- package/es/react/history/history-panel-item.js +6 -6
- package/es/react/history/history-panel-items.d.ts +1 -1
- package/es/react/history/history-panel-items.js +1 -1
- package/es/react/history/history-panel-menu.d.ts +1 -1
- package/es/react/history/history-panel-menu.js +1 -1
- package/es/react/history/history-panel.d.ts +1 -1
- package/es/react/history/history-panel.js +1 -1
- package/es/react/history/history-search-item.d.ts +1 -1
- package/es/react/history/history-search-item.js +2 -2
- package/es/react/history/history-shell.d.ts +1 -1
- package/es/react/history/history-shell.js +1 -1
- package/es/react/history/history-toolbar.d.ts +1 -1
- package/es/react/history/history-toolbar.js +3 -3
- package/es/react/history/index.d.ts +12 -12
- package/es/react/hooks/useChatAutocomplete.d.ts +41 -0
- package/es/react/hooks/useChatAutocomplete.js +204 -0
- package/es/react/hooks/useChatAutocomplete.js.map +1 -0
- package/es/react/input-send-control.d.ts +11 -0
- package/es/react/input-send-control.js +32 -0
- package/es/react/input-send-control.js.map +1 -0
- package/es/react/launcher.d.ts +11 -0
- package/es/react/launcher.js +31 -0
- package/es/react/launcher.js.map +1 -0
- package/es/react/markdown.d.ts +7 -7
- package/es/react/markdown.js +13 -13
- package/es/react/markdown.js.map +1 -1
- package/es/react/panel.d.ts +1 -1
- package/es/react/panel.js +7 -7
- package/es/react/processing.d.ts +1 -1
- package/es/react/processing.js +2 -2
- package/es/react/prompt-line-shell.d.ts +18 -0
- package/es/react/prompt-line-shell.js +36 -0
- package/es/react/prompt-line-shell.js.map +1 -0
- package/es/react/prompt-line.d.ts +25 -0
- package/es/react/prompt-line.js +52 -0
- package/es/react/prompt-line.js.map +1 -0
- package/es/react/reasoning-step.d.ts +1 -1
- package/es/react/reasoning-step.js +4 -4
- package/es/react/reasoning-steps-toggle.d.ts +2 -2
- package/es/react/reasoning-steps-toggle.js +3 -3
- package/es/react/reasoning-steps.d.ts +1 -1
- package/es/react/reasoning-steps.js +2 -2
- package/es/react/stop-streaming-button.d.ts +11 -0
- package/es/react/stop-streaming-button.js +28 -0
- package/es/react/stop-streaming-button.js.map +1 -0
- package/es/react/table.d.ts +2 -2
- package/es/react/table.js +1 -1
- package/es/react/tool-call-data.d.ts +1 -1
- package/es/react/tool-call-data.js +2 -2
- package/es/react/toolbar.d.ts +4 -4
- package/es/react/toolbar.js +3 -3
- package/es/react/transcript.d.ts +1 -1
- package/es/react/transcript.js +3 -4
- package/es/react/transcript.js.map +1 -1
- package/es/react/utils/transformSuggestionConfig.d.ts +21 -0
- package/es/react/utils/transformSuggestionConfig.js +67 -0
- package/es/react/utils/transformSuggestionConfig.js.map +1 -0
- package/es/react/utils/withWebComponentBridge.d.ts +1 -1
- package/es/react/utils/withWebComponentBridge.js +22 -22
- package/es/react/video-player.d.ts +1 -1
- package/es/react/video-player.js +5 -6
- package/es/react/video-player.js.map +1 -1
- package/es/react/workspace-shell.d.ts +1 -1
- package/es/react/workspace-shell.js +6 -6
- package/es/testing/PageObjectId.js +1 -2
- package/es/testing/PageObjectId.js.map +1 -1
- package/es/testing/load-all-lazy-deps.d.ts +2 -2
- package/es/testing/load-all-lazy-deps.js +1 -1
- package/es/typings/overflow-menu.d.ts +2 -2
- package/es-custom/components/audio-player/index.d.ts +4 -4
- package/es-custom/components/audio-player/src/audio-player.d.ts +1 -1
- package/es-custom/components/audio-player/src/audio-player.js +33 -39
- package/es-custom/components/audio-player/src/audio-player.js.map +1 -1
- package/es-custom/components/audio-player/src/providers/base-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/base-provider.js +9 -10
- package/es-custom/components/audio-player/src/providers/base-provider.js.map +1 -1
- package/es-custom/components/audio-player/src/providers/native-audio-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/native-audio-provider.js +18 -19
- package/es-custom/components/audio-player/src/providers/native-audio-provider.js.map +1 -1
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.js +14 -15
- package/es-custom/components/audio-player/src/providers/soundcloud-provider.js.map +1 -1
- package/es-custom/components/audio-player/src/transcript.d.ts +2 -2
- package/es-custom/components/audio-player/src/transcript.js +14 -17
- package/es-custom/components/audio-player/src/transcript.js.map +1 -1
- package/es-custom/components/audio-player/src/utils/url-detector.js +1 -2
- package/es-custom/components/audio-player/src/utils/url-detector.js.map +1 -1
- package/es-custom/components/card/index.d.ts +4 -4
- package/es-custom/components/card/src/card-footer.d.ts +5 -5
- package/es-custom/components/card/src/card-footer.js +12 -16
- package/es-custom/components/card/src/card-footer.js.map +1 -1
- package/es-custom/components/card/src/card-footer.scss.js +1 -1
- package/es-custom/components/card/src/card-steps.d.ts +4 -4
- package/es-custom/components/card/src/card-steps.js +3 -5
- package/es-custom/components/card/src/card-steps.js.map +1 -1
- package/es-custom/components/card/src/card-steps.scss.js +1 -1
- package/es-custom/components/card/src/card.d.ts +2 -2
- package/es-custom/components/card/src/card.js +3 -3
- package/es-custom/components/card/src/card.scss.js +1 -1
- package/es-custom/components/carousel/index.d.ts +1 -1
- package/es-custom/components/carousel/src/carousel.d.ts +2 -2
- package/es-custom/components/carousel/src/carousel.js +4 -6
- package/es-custom/components/carousel/src/carousel.js.map +1 -1
- package/es-custom/components/carousel/src/carousel.scss.js +1 -1
- package/es-custom/components/chain-of-thought/defs.js +1 -1
- package/es-custom/components/chain-of-thought/index.d.ts +10 -10
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.d.ts +4 -4
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +36 -42
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +2 -2
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +11 -14
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/chain-of-thought.d.ts +4 -4
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js +16 -17
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +2 -2
- package/es-custom/components/chain-of-thought/src/tool-call-data.js +17 -23
- package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +1 -1
- package/es-custom/components/chat-button/defs.d.ts +1 -1
- package/es-custom/components/chat-button/defs.js +1 -1
- package/es-custom/components/chat-button/index.d.ts +2 -2
- package/es-custom/components/chat-button/src/chat-button.d.ts +5 -5
- package/es-custom/components/chat-button/src/chat-button.js +6 -6
- package/es-custom/components/chat-button/src/chat-button.scss.js +1 -1
- package/es-custom/components/chat-history/index.d.ts +11 -11
- package/es-custom/components/chat-history/src/chat-history.scss.js +1 -1
- package/es-custom/components/chat-history/src/history-content.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-content.js +6 -6
- package/es-custom/components/chat-history/src/history-delete-panel.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-delete-panel.js +11 -11
- package/es-custom/components/chat-history/src/history-header.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-header.js +9 -10
- package/es-custom/components/chat-history/src/history-header.js.map +1 -1
- package/es-custom/components/chat-history/src/history-loading.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-loading.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-item-input.d.ts +2 -2
- package/es-custom/components/chat-history/src/history-panel-item-input.js +21 -22
- package/es-custom/components/chat-history/src/history-panel-item-input.js.map +1 -1
- package/es-custom/components/chat-history/src/history-panel-item.d.ts +5 -5
- package/es-custom/components/chat-history/src/history-panel-item.js +39 -41
- package/es-custom/components/chat-history/src/history-panel-item.js.map +1 -1
- package/es-custom/components/chat-history/src/history-panel-items.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel-items.js +1 -1
- package/es-custom/components/chat-history/src/history-panel-menu.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-panel.js +3 -3
- package/es-custom/components/chat-history/src/history-search-item.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-search-item.js +4 -4
- package/es-custom/components/chat-history/src/history-shell.d.ts +1 -1
- package/es-custom/components/chat-history/src/history-shell.js +3 -3
- package/es-custom/components/chat-history/src/history-toolbar.d.ts +9 -5
- package/es-custom/components/chat-history/src/history-toolbar.js +13 -10
- package/es-custom/components/chat-history/src/history-toolbar.js.map +1 -1
- package/es-custom/components/chat-shell/index.d.ts +5 -5
- package/es-custom/components/chat-shell/src/chat-header.d.ts +8 -8
- package/es-custom/components/chat-shell/src/chat-header.js +37 -45
- package/es-custom/components/chat-shell/src/chat-header.js.map +1 -1
- package/es-custom/components/chat-shell/src/corner-manager.d.ts +2 -2
- package/es-custom/components/chat-shell/src/corner-manager.js +31 -32
- package/es-custom/components/chat-shell/src/corner-manager.js.map +1 -1
- package/es-custom/components/chat-shell/src/initialization-manager.d.ts +2 -2
- package/es-custom/components/chat-shell/src/initialization-manager.js +1 -2
- package/es-custom/components/chat-shell/src/initialization-manager.js.map +1 -1
- package/es-custom/components/chat-shell/src/panel-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/panel-manager.js +12 -12
- package/es-custom/components/chat-shell/src/panel.d.ts +2 -2
- package/es-custom/components/chat-shell/src/panel.js +99 -100
- package/es-custom/components/chat-shell/src/panel.js.map +1 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/resize-observer-manager.js +10 -11
- package/es-custom/components/chat-shell/src/resize-observer-manager.js.map +1 -1
- package/es-custom/components/chat-shell/src/shell.d.ts +8 -8
- package/es-custom/components/chat-shell/src/shell.js +130 -137
- package/es-custom/components/chat-shell/src/shell.js.map +1 -1
- package/es-custom/components/chat-shell/src/slot-observer.d.ts +2 -2
- package/es-custom/components/chat-shell/src/slot-observer.js +5 -9
- package/es-custom/components/chat-shell/src/slot-observer.js.map +1 -1
- package/es-custom/components/chat-shell/src/types.d.ts +4 -4
- package/es-custom/components/chat-shell/src/workspace-manager-utils.d.ts +1 -1
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js +5 -6
- package/es-custom/components/chat-shell/src/workspace-manager-utils.js.map +1 -1
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +2 -2
- package/es-custom/components/chat-shell/src/workspace-manager.js +33 -34
- package/es-custom/components/chat-shell/src/workspace-manager.js.map +1 -1
- package/es-custom/components/code-snippet/index.d.ts +4 -4
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +19 -8
- package/es-custom/components/code-snippet/src/code-snippet.js +124 -98
- package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es-custom/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/base-setup.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js +1 -1
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +8 -8
- package/es-custom/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/content-sync.js +2 -2
- package/es-custom/components/code-snippet/src/codemirror/detect-language.d.ts +6 -0
- package/es-custom/components/code-snippet/src/codemirror/detect-language.js +77 -0
- package/es-custom/components/code-snippet/src/codemirror/detect-language.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.d.ts +2 -2
- package/es-custom/components/code-snippet/src/codemirror/diff-decorator.js +4 -4
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.d.ts +4 -4
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js +4 -4
- package/es-custom/components/code-snippet/src/codemirror/language-controller.d.ts +3 -3
- package/es-custom/components/code-snippet/src/codemirror/language-controller.js +3 -3
- package/es-custom/components/code-snippet/src/codemirror/language-data.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/language-data.js +299 -299
- package/es-custom/components/code-snippet/src/codemirror/language-utils.d.ts +2 -2
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js +60 -66
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js.map +1 -1
- package/es-custom/components/code-snippet/src/codemirror/marker-utils.js +15 -15
- package/es-custom/components/code-snippet/src/codemirror/theme.d.ts +1 -1
- package/es-custom/components/code-snippet/src/codemirror/theme.js +168 -163
- package/es-custom/components/code-snippet/src/codemirror/theme.js.map +1 -1
- package/es-custom/components/code-snippet/src/dom-utils.js +6 -6
- package/es-custom/components/code-snippet/src/layout-utils.d.ts +2 -2
- package/es-custom/components/code-snippet/src/layout-utils.js +28 -15
- package/es-custom/components/code-snippet/src/layout-utils.js.map +1 -1
- package/es-custom/components/code-snippet/src/streaming-manager.js +5 -5
- package/es-custom/components/feedback/index.d.ts +4 -4
- package/es-custom/components/feedback/src/feedback-buttons.d.ts +3 -3
- package/es-custom/components/feedback/src/feedback-buttons.js +17 -19
- package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es-custom/components/feedback/src/feedback.d.ts +9 -9
- package/es-custom/components/feedback/src/feedback.js +39 -45
- package/es-custom/components/feedback/src/feedback.js.map +1 -1
- package/es-custom/components/feedback/src/feedback.scss.js +1 -1
- package/es-custom/components/file-uploads/index.d.ts +13 -0
- package/es-custom/components/file-uploads/index.js +10 -0
- package/es-custom/components/file-uploads/index.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-type-icon.d.ts +18 -0
- package/es-custom/components/file-uploads/src/file-type-icon.js +87 -0
- package/es-custom/components/file-uploads/src/file-type-icon.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-upload-item.d.ts +104 -0
- package/es-custom/components/file-uploads/src/file-upload-item.js +366 -0
- package/es-custom/components/file-uploads/src/file-upload-item.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-upload-item.scss.js +13 -0
- package/es-custom/components/file-uploads/src/file-upload-item.scss.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-uploads.d.ts +91 -0
- package/es-custom/components/file-uploads/src/file-uploads.js +238 -0
- package/es-custom/components/file-uploads/src/file-uploads.js.map +1 -0
- package/es-custom/components/file-uploads/src/file-uploads.scss.js +13 -0
- package/es-custom/components/file-uploads/src/file-uploads.scss.js.map +1 -0
- package/es-custom/components/file-uploads/src/types.d.ts +39 -0
- package/es-custom/components/file-uploads/src/types.js +8 -0
- package/es-custom/components/file-uploads/src/types.js.map +1 -0
- package/es-custom/components/launcher/index.d.ts +9 -0
- package/es-custom/components/launcher/index.js +9 -0
- package/es-custom/components/launcher/index.js.map +1 -0
- package/es-custom/components/launcher/src/launcher.d.ts +68 -0
- package/es-custom/components/launcher/src/launcher.js +152 -0
- package/es-custom/components/launcher/src/launcher.js.map +1 -0
- package/es-custom/components/launcher/src/launcher.scss.js +13 -0
- package/es-custom/components/launcher/src/launcher.scss.js.map +1 -0
- package/es-custom/components/markdown/index.d.ts +5 -4
- package/es-custom/components/markdown/index.js +1 -0
- package/es-custom/components/markdown/index.js.map +1 -1
- package/es-custom/components/markdown/src/markdown-renderer-types.d.ts +10 -3
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +9 -9
- package/es-custom/components/markdown/src/markdown-renderer.js +85 -80
- package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.d.ts +9 -1
- package/es-custom/components/markdown/src/markdown-token-tree.js +32 -21
- package/es-custom/components/markdown/src/markdown-token-tree.js.map +1 -1
- package/es-custom/components/markdown/src/markdown.d.ts +4 -7
- package/es-custom/components/markdown/src/markdown.js +99 -81
- package/es-custom/components/markdown/src/markdown.js.map +1 -1
- package/es-custom/components/markdown/src/markdown.scss.js +1 -1
- package/es-custom/components/markdown/src/markdown.template.js +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js +19 -19
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.js +5 -5
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.d.ts +1 -1
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js +14 -14
- package/es-custom/components/markdown/src/utils/html-helpers.d.ts +1 -1
- package/es-custom/components/markdown/src/utils/html-helpers.js +72 -72
- package/es-custom/components/markdown/src/utils/lit-directives.d.ts +2 -2
- package/es-custom/components/markdown/src/utils/lit-directives.js +5 -5
- package/es-custom/components/markdown/src/utils/plugin-fallback.d.ts +4 -4
- package/es-custom/components/markdown/src/utils/plugin-fallback.js +61 -61
- package/es-custom/components/markdown/src/utils/streaming-table.d.ts +1 -1
- package/es-custom/components/markdown/src/utils/streaming-table.js +6 -6
- package/es-custom/components/markdown/src/utils/table-helpers.d.ts +4 -4
- package/es-custom/components/markdown/src/utils/table-helpers.js +17 -18
- package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -1
- package/es-custom/components/processing/index.d.ts +1 -1
- package/es-custom/components/processing/src/processing.d.ts +2 -2
- package/es-custom/components/processing/src/processing.js +2 -2
- package/es-custom/components/prompt-line/autocomplete/index.d.ts +12 -0
- package/es-custom/components/prompt-line/autocomplete/index.js +9 -0
- package/es-custom/components/prompt-line/autocomplete/index.js.map +1 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.d.ts +165 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js +506 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.js.map +1 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js +13 -0
- package/es-custom/components/prompt-line/autocomplete/src/autocomplete.scss.js.map +1 -0
- package/es-custom/components/prompt-line/index.d.ts +26 -0
- package/es-custom/components/prompt-line/index.js +32 -0
- package/es-custom/components/prompt-line/index.js.map +1 -0
- package/es-custom/components/prompt-line/src/autocomplete-controller.d.ts +180 -0
- package/es-custom/components/prompt-line/src/autocomplete-controller.js +608 -0
- package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +1 -0
- package/es-custom/components/prompt-line/src/error-message.d.ts +46 -0
- package/es-custom/components/prompt-line/src/error-message.js +134 -0
- package/es-custom/components/prompt-line/src/error-message.js.map +1 -0
- package/es-custom/components/prompt-line/src/error-message.scss.js +13 -0
- package/es-custom/components/prompt-line/src/error-message.scss.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-constants.d.ts +17 -0
- package/es-custom/components/prompt-line/src/prompt-line-constants.js +27 -0
- package/es-custom/components/prompt-line/src/prompt-line-constants.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +155 -0
- package/es-custom/components/prompt-line/src/prompt-line-controller.js +394 -0
- package/es-custom/components/prompt-line/src/prompt-line-controller.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.d.ts +34 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js +51 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.d.ts +14 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +342 -0
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-shell.d.ts +72 -0
- package/es-custom/components/prompt-line/src/prompt-line-shell.js +225 -0
- package/es-custom/components/prompt-line/src/prompt-line-shell.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +13 -0
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line.d.ts +147 -0
- package/es-custom/components/prompt-line/src/prompt-line.js +391 -0
- package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -0
- package/es-custom/components/prompt-line/src/prompt-line.scss.js +13 -0
- package/es-custom/components/prompt-line/src/prompt-line.scss.js.map +1 -0
- package/es-custom/components/prompt-line/src/send-control.d.ts +46 -0
- package/es-custom/components/prompt-line/src/send-control.js +136 -0
- package/es-custom/components/prompt-line/src/send-control.js.map +1 -0
- package/es-custom/components/prompt-line/src/send-control.scss.js +13 -0
- package/es-custom/components/prompt-line/src/send-control.scss.js.map +1 -0
- package/es-custom/components/prompt-line/src/stop-streaming-button.d.ts +42 -0
- package/es-custom/components/prompt-line/src/stop-streaming-button.js +92 -0
- package/es-custom/components/prompt-line/src/stop-streaming-button.js.map +1 -0
- package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js +13 -0
- package/es-custom/components/prompt-line/src/stop-streaming-button.scss.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.d.ts +30 -0
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js +38 -0
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +21 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js +127 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.d.ts +19 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js +237 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +23 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js +70 -0
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.d.ts +17 -0
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js +46 -0
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.d.ts +18 -0
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js +83 -0
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/index.d.ts +42 -0
- package/es-custom/components/prompt-line/src/tiptap/index.js +43 -0
- package/es-custom/components/prompt-line/src/tiptap/index.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/json-utils.d.ts +61 -0
- package/es-custom/components/prompt-line/src/tiptap/json-utils.js +158 -0
- package/es-custom/components/prompt-line/src/tiptap/json-utils.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/keymap.d.ts +31 -0
- package/es-custom/components/prompt-line/src/tiptap/keymap.js +59 -0
- package/es-custom/components/prompt-line/src/tiptap/keymap.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.d.ts +11 -0
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.js +33 -0
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.d.ts +16 -0
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js +85 -0
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +87 -0
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js +41 -0
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.d.ts +57 -0
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js +95 -0
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.d.ts +36 -0
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.js +41 -0
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.d.ts +37 -0
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js +53 -0
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/types.d.ts +182 -0
- package/es-custom/components/prompt-line/src/tiptap/types.js +8 -0
- package/es-custom/components/prompt-line/src/tiptap/types.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.d.ts +30 -0
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +104 -0
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js.map +1 -0
- package/es-custom/components/prompt-line/src/tiptap/value-sync.d.ts +25 -0
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js +65 -0
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js.map +1 -0
- package/es-custom/components/prompt-line/src/types.d.ts +100 -0
- package/es-custom/components/prompt-line/src/types.js +50 -0
- package/es-custom/components/prompt-line/src/types.js.map +1 -0
- package/es-custom/components/reasoning-steps/index.d.ts +4 -4
- package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-step.js +27 -31
- package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +12 -14
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -1
- package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +2 -2
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js +19 -20
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -1
- package/es-custom/components/shared/dynamic-css-var-sheet.js +7 -7
- package/es-custom/components/shared/media-utils/script-loader.js +1 -2
- package/es-custom/components/shared/media-utils/script-loader.js.map +1 -1
- package/es-custom/components/table/index.d.ts +3 -3
- package/es-custom/components/table/src/table-loader.d.ts +1 -1
- package/es-custom/components/table/src/table-loader.js +1 -1
- package/es-custom/components/table/src/table-pagination.template.d.ts +3 -3
- package/es-custom/components/table/src/table-pagination.template.js +4 -5
- package/es-custom/components/table/src/table-pagination.template.js.map +1 -1
- package/es-custom/components/table/src/table-runtime.d.ts +2 -2
- package/es-custom/components/table/src/table-skeleton.template.d.ts +1 -1
- package/es-custom/components/table/src/table-skeleton.template.js +2 -3
- package/es-custom/components/table/src/table-skeleton.template.js.map +1 -1
- package/es-custom/components/table/src/table.d.ts +3 -4
- package/es-custom/components/table/src/table.js +36 -39
- package/es-custom/components/table/src/table.js.map +1 -1
- package/es-custom/components/table/src/table.template.d.ts +5 -5
- package/es-custom/components/table/src/table.template.js +6 -9
- package/es-custom/components/table/src/table.template.js.map +1 -1
- package/es-custom/components/toolbar/index.d.ts +1 -1
- package/es-custom/components/toolbar/src/toolbar.d.ts +9 -7
- package/es-custom/components/toolbar/src/toolbar.js +45 -33
- package/es-custom/components/toolbar/src/toolbar.js.map +1 -1
- package/es-custom/components/toolbar/src/toolbar.scss.js +1 -1
- package/es-custom/components/truncated-text/index.d.ts +1 -1
- package/es-custom/components/truncated-text/src/truncated-text.d.ts +5 -5
- package/es-custom/components/truncated-text/src/truncated-text.js +26 -28
- package/es-custom/components/truncated-text/src/truncated-text.js.map +1 -1
- package/es-custom/components/truncated-text/src/truncated-text.scss.js +1 -1
- package/es-custom/components/video-player/index.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/base-provider.d.ts +3 -3
- package/es-custom/components/video-player/src/providers/base-provider.js +5 -6
- package/es-custom/components/video-player/src/providers/base-provider.js.map +1 -1
- package/es-custom/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/kaltura-provider.js +23 -24
- package/es-custom/components/video-player/src/providers/kaltura-provider.js.map +1 -1
- package/es-custom/components/video-player/src/providers/native-video-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/native-video-provider.js +20 -21
- package/es-custom/components/video-player/src/providers/native-video-provider.js.map +1 -1
- package/es-custom/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/vimeo-provider.js +23 -24
- package/es-custom/components/video-player/src/providers/vimeo-provider.js.map +1 -1
- package/es-custom/components/video-player/src/providers/youtube-provider.d.ts +2 -2
- package/es-custom/components/video-player/src/providers/youtube-provider.js +15 -16
- package/es-custom/components/video-player/src/providers/youtube-provider.js.map +1 -1
- package/es-custom/components/video-player/src/utils/url-detector.js +1 -2
- package/es-custom/components/video-player/src/utils/url-detector.js.map +1 -1
- package/es-custom/components/video-player/src/video-player.d.ts +2 -2
- package/es-custom/components/video-player/src/video-player.js +37 -42
- package/es-custom/components/video-player/src/video-player.js.map +1 -1
- package/es-custom/components/workspace-shell/index.d.ts +4 -4
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.js +13 -14
- package/es-custom/components/workspace-shell/src/header-collapsible-manager.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-body.d.ts +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js +2 -2
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.d.ts +4 -4
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +10 -11
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell-header.d.ts +2 -2
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js +10 -13
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +1 -1
- package/es-custom/components/workspace-shell/src/workspace-shell.js +3 -3
- package/es-custom/globals/decorators/carbon-element.d.ts +4 -4
- package/es-custom/globals/decorators/carbon-element.js +2 -2
- package/es-custom/globals/decorators/index.d.ts +1 -1
- package/es-custom/globals/scss/common.scss.js +1 -1
- package/es-custom/globals/settings.js +2 -2
- package/es-custom/globals/utils/aria-announcer-manager.d.ts +62 -0
- package/es-custom/globals/utils/aria-announcer-manager.js +125 -0
- package/es-custom/globals/utils/aria-announcer-manager.js.map +1 -0
- package/es-custom/globals/utils/browser-utils.d.ts +10 -0
- package/es-custom/globals/utils/browser-utils.js +37 -0
- package/es-custom/globals/utils/browser-utils.js.map +1 -0
- package/es-custom/globals/utils/csv.d.ts +8 -0
- package/es-custom/globals/utils/csv.js +37 -0
- package/es-custom/globals/utils/csv.js.map +1 -0
- package/es-custom/globals/utils/dom-utils.d.ts +6 -0
- package/es-custom/globals/utils/dom-utils.js +39 -0
- package/es-custom/globals/utils/dom-utils.js.map +1 -0
- package/es-custom/globals/utils/focus-utils.js +4 -4
- package/es-custom/{react → globals}/utils/iconTransform.d.ts +2 -2
- package/es-custom/{react → globals}/utils/iconTransform.js +22 -23
- package/es-custom/globals/utils/iconTransform.js.map +1 -0
- package/es-custom/globals/utils/rtl-utils.js +1 -1
- package/es-custom/globals/utils/uuid.js +5 -5
- package/es-custom/react/__tests__/jest.setup.js +13 -14
- package/es-custom/react/__tests__/jest.setup.js.map +1 -1
- package/es-custom/react/ai-label-action-button.d.ts +1 -1
- package/es-custom/react/ai-label-action-button.js +1 -1
- package/es-custom/react/audio-player.d.ts +1 -1
- package/es-custom/react/audio-player.js +5 -6
- package/es-custom/react/audio-player.js.map +1 -1
- package/es-custom/react/autocomplete.d.ts +11 -0
- package/es-custom/react/autocomplete.js +36 -0
- package/es-custom/react/autocomplete.js.map +1 -0
- package/es-custom/react/card.d.ts +1 -1
- package/es-custom/react/card.js +5 -5
- package/es-custom/react/carousel.d.ts +1 -1
- package/es-custom/react/carousel.js +2 -2
- package/es-custom/react/chain-of-thought-step.d.ts +1 -1
- package/es-custom/react/chain-of-thought-step.js +4 -4
- package/es-custom/react/chain-of-thought-toggle.d.ts +2 -2
- package/es-custom/react/chain-of-thought-toggle.js +3 -3
- package/es-custom/react/chain-of-thought.d.ts +2 -2
- package/es-custom/react/chain-of-thought.js +4 -4
- package/es-custom/react/chat-button.d.ts +3 -3
- package/es-custom/react/chat-button.js +2 -2
- package/es-custom/react/chat-header.d.ts +3 -3
- package/es-custom/react/chat-header.js +3 -3
- package/es-custom/react/chat-shell.d.ts +2 -2
- package/es-custom/react/chat-shell.js +2 -2
- package/es-custom/react/code-snippet.d.ts +4 -4
- package/es-custom/react/code-snippet.js +4 -4
- package/es-custom/react/error-message.d.ts +11 -0
- package/es-custom/react/error-message.js +28 -0
- package/es-custom/react/error-message.js.map +1 -0
- package/es-custom/react/feedback-buttons.d.ts +1 -1
- package/es-custom/react/feedback-buttons.js +3 -3
- package/es-custom/react/feedback.d.ts +2 -2
- package/es-custom/react/feedback.js +4 -4
- package/es-custom/react/file-upload-item.d.ts +11 -0
- package/es-custom/react/file-upload-item.js +31 -0
- package/es-custom/react/file-upload-item.js.map +1 -0
- package/es-custom/react/file-uploads.d.ts +11 -0
- package/es-custom/react/file-uploads.js +31 -0
- package/es-custom/react/file-uploads.js.map +1 -0
- package/es-custom/react/history/history-content.d.ts +1 -1
- package/es-custom/react/history/history-content.js +1 -1
- package/es-custom/react/history/history-delete-panel.d.ts +1 -1
- package/es-custom/react/history/history-delete-panel.js +3 -3
- package/es-custom/react/history/history-header.d.ts +1 -1
- package/es-custom/react/history/history-header.js +2 -2
- package/es-custom/react/history/history-loading.d.ts +1 -1
- package/es-custom/react/history/history-loading.js +1 -1
- package/es-custom/react/history/history-panel-item-input.d.ts +1 -1
- package/es-custom/react/history/history-panel-item-input.js +4 -4
- package/es-custom/react/history/history-panel-item.d.ts +1 -1
- package/es-custom/react/history/history-panel-item.js +6 -6
- package/es-custom/react/history/history-panel-items.d.ts +1 -1
- package/es-custom/react/history/history-panel-items.js +1 -1
- package/es-custom/react/history/history-panel-menu.d.ts +1 -1
- package/es-custom/react/history/history-panel-menu.js +1 -1
- package/es-custom/react/history/history-panel.d.ts +1 -1
- package/es-custom/react/history/history-panel.js +1 -1
- package/es-custom/react/history/history-search-item.d.ts +1 -1
- package/es-custom/react/history/history-search-item.js +2 -2
- package/es-custom/react/history/history-shell.d.ts +1 -1
- package/es-custom/react/history/history-shell.js +1 -1
- package/es-custom/react/history/history-toolbar.d.ts +1 -1
- package/es-custom/react/history/history-toolbar.js +3 -3
- package/es-custom/react/history/index.d.ts +12 -12
- package/es-custom/react/hooks/useChatAutocomplete.d.ts +41 -0
- package/es-custom/react/hooks/useChatAutocomplete.js +204 -0
- package/es-custom/react/hooks/useChatAutocomplete.js.map +1 -0
- package/es-custom/react/input-send-control.d.ts +11 -0
- package/es-custom/react/input-send-control.js +32 -0
- package/es-custom/react/input-send-control.js.map +1 -0
- package/es-custom/react/launcher.d.ts +11 -0
- package/es-custom/react/launcher.js +31 -0
- package/es-custom/react/launcher.js.map +1 -0
- package/es-custom/react/markdown.d.ts +7 -7
- package/es-custom/react/markdown.js +13 -13
- package/es-custom/react/markdown.js.map +1 -1
- package/es-custom/react/panel.d.ts +1 -1
- package/es-custom/react/panel.js +7 -7
- package/es-custom/react/processing.d.ts +1 -1
- package/es-custom/react/processing.js +2 -2
- package/es-custom/react/prompt-line-shell.d.ts +18 -0
- package/es-custom/react/prompt-line-shell.js +36 -0
- package/es-custom/react/prompt-line-shell.js.map +1 -0
- package/es-custom/react/prompt-line.d.ts +25 -0
- package/es-custom/react/prompt-line.js +52 -0
- package/es-custom/react/prompt-line.js.map +1 -0
- package/es-custom/react/reasoning-step.d.ts +1 -1
- package/es-custom/react/reasoning-step.js +4 -4
- package/es-custom/react/reasoning-steps-toggle.d.ts +2 -2
- package/es-custom/react/reasoning-steps-toggle.js +3 -3
- package/es-custom/react/reasoning-steps.d.ts +1 -1
- package/es-custom/react/reasoning-steps.js +2 -2
- package/es-custom/react/stop-streaming-button.d.ts +11 -0
- package/es-custom/react/stop-streaming-button.js +28 -0
- package/es-custom/react/stop-streaming-button.js.map +1 -0
- package/es-custom/react/table.d.ts +2 -2
- package/es-custom/react/table.js +1 -1
- package/es-custom/react/tool-call-data.d.ts +1 -1
- package/es-custom/react/tool-call-data.js +2 -2
- package/es-custom/react/toolbar.d.ts +4 -4
- package/es-custom/react/toolbar.js +3 -3
- package/es-custom/react/transcript.d.ts +1 -1
- package/es-custom/react/transcript.js +3 -4
- package/es-custom/react/transcript.js.map +1 -1
- package/es-custom/react/utils/transformSuggestionConfig.d.ts +21 -0
- package/es-custom/react/utils/transformSuggestionConfig.js +67 -0
- package/es-custom/react/utils/transformSuggestionConfig.js.map +1 -0
- package/es-custom/react/utils/withWebComponentBridge.d.ts +1 -1
- package/es-custom/react/utils/withWebComponentBridge.js +22 -22
- package/es-custom/react/video-player.d.ts +1 -1
- package/es-custom/react/video-player.js +5 -6
- package/es-custom/react/video-player.js.map +1 -1
- package/es-custom/react/workspace-shell.d.ts +1 -1
- package/es-custom/react/workspace-shell.js +6 -6
- package/es-custom/testing/PageObjectId.js +1 -2
- package/es-custom/testing/PageObjectId.js.map +1 -1
- package/es-custom/testing/load-all-lazy-deps.d.ts +2 -2
- package/es-custom/testing/load-all-lazy-deps.js +1 -1
- package/es-custom/typings/overflow-menu.d.ts +2 -2
- package/package.json +25 -5
- package/scss/_custom-properties.scss +16 -18
- package/scss/_modifiers.scss +8 -8
- package/scss/_tokens-component.scss +2 -4
- package/scss/_tokens-layout.scss +2 -4
- package/scss/_utilities.scss +3 -5
- package/scss/common.scss +3 -3
- package/scss/grid.scss +2 -2
- package/scss/themes.scss +7 -7
- package/scss/vars.scss +3 -3
- package/telemetry.yml +53 -3
- package/es/components/chat-shell/src/aria-announcer-manager.d.ts +0 -40
- package/es/components/chat-shell/src/aria-announcer-manager.js +0 -104
- package/es/components/chat-shell/src/aria-announcer-manager.js.map +0 -1
- package/es/react/utils/iconTransform.js.map +0 -1
- package/es-custom/components/chat-shell/src/aria-announcer-manager.d.ts +0 -40
- package/es-custom/components/chat-shell/src/aria-announcer-manager.js +0 -104
- package/es-custom/components/chat-shell/src/aria-announcer-manager.js.map +0 -1
- package/es-custom/react/utils/iconTransform.js.map +0 -1
|
@@ -35,7 +35,7 @@ const generateId = (segment) => `${baseClass}-${segment}-${idCounter++}`;
|
|
|
35
35
|
let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
36
36
|
constructor() {
|
|
37
37
|
super(...arguments);
|
|
38
|
-
this.title =
|
|
38
|
+
this.title = '';
|
|
39
39
|
this.open = false;
|
|
40
40
|
this.controlled = false;
|
|
41
41
|
/**
|
|
@@ -45,35 +45,35 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
45
45
|
/**
|
|
46
46
|
* @internal
|
|
47
47
|
*/
|
|
48
|
-
this.headerId = generateId(
|
|
48
|
+
this.headerId = generateId('header');
|
|
49
49
|
/**
|
|
50
50
|
* @internal
|
|
51
51
|
*/
|
|
52
|
-
this.contentId = generateId(
|
|
52
|
+
this.contentId = generateId('content');
|
|
53
53
|
}
|
|
54
54
|
connectedCallback() {
|
|
55
|
-
if (!this.hasAttribute(
|
|
56
|
-
this.setAttribute(
|
|
55
|
+
if (!this.hasAttribute('role')) {
|
|
56
|
+
this.setAttribute('role', 'listitem');
|
|
57
57
|
}
|
|
58
58
|
super.connectedCallback();
|
|
59
59
|
this.evaluateBodyContent();
|
|
60
60
|
}
|
|
61
61
|
firstUpdated() {
|
|
62
|
-
const slot = this.shadowRoot?.querySelector(
|
|
62
|
+
const slot = this.shadowRoot?.querySelector('slot:not([name])');
|
|
63
63
|
const nodes = slot?.assignedNodes({ flatten: true });
|
|
64
64
|
this.evaluateBodyContent(nodes);
|
|
65
65
|
this.updatePanelInertState();
|
|
66
66
|
}
|
|
67
67
|
updated(changedProperties) {
|
|
68
68
|
super.updated(changedProperties);
|
|
69
|
-
if (changedProperties.has(
|
|
70
|
-
changedProperties.has(
|
|
69
|
+
if (changedProperties.has('open') ||
|
|
70
|
+
changedProperties.has('hasBodyContent')) {
|
|
71
71
|
this.updatePanelInertState();
|
|
72
72
|
}
|
|
73
73
|
// Announce when a real open/close toggle has settled so the scroll manager can
|
|
74
74
|
// recalculate geometry. Skip the initial render (no previous value).
|
|
75
|
-
if (changedProperties.has(
|
|
76
|
-
changedProperties.get(
|
|
75
|
+
if (changedProperties.has('open') &&
|
|
76
|
+
changedProperties.get('open') !== undefined) {
|
|
77
77
|
this.emitAnimationEndWhenSettled();
|
|
78
78
|
}
|
|
79
79
|
}
|
|
@@ -97,7 +97,7 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
97
97
|
isBodyNode(node) {
|
|
98
98
|
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
99
99
|
const element = node;
|
|
100
|
-
const slotName = element.getAttribute(
|
|
100
|
+
const slotName = element.getAttribute('slot');
|
|
101
101
|
return !slotName;
|
|
102
102
|
}
|
|
103
103
|
if (node.nodeType === Node.TEXT_NODE) {
|
|
@@ -123,14 +123,14 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
123
123
|
composed: true,
|
|
124
124
|
detail,
|
|
125
125
|
};
|
|
126
|
-
const canToggle = this.dispatchEvent(new CustomEvent(
|
|
126
|
+
const canToggle = this.dispatchEvent(new CustomEvent('reasoning-step-beingtoggled', init));
|
|
127
127
|
if (!canToggle) {
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
130
|
if (!this.controlled) {
|
|
131
131
|
this.open = nextState;
|
|
132
132
|
}
|
|
133
|
-
this.dispatchEvent(new CustomEvent(
|
|
133
|
+
this.dispatchEvent(new CustomEvent('reasoning-step-toggled', init));
|
|
134
134
|
}
|
|
135
135
|
handleButtonClick() {
|
|
136
136
|
this.handleToggleRequest(!this.open);
|
|
@@ -139,7 +139,7 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
139
139
|
if (!this.open) {
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
|
-
if (event.key ===
|
|
142
|
+
if (event.key === 'Escape' || event.key === 'Esc') {
|
|
143
143
|
event.stopPropagation();
|
|
144
144
|
this.handleToggleRequest(false);
|
|
145
145
|
}
|
|
@@ -162,8 +162,7 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
162
162
|
aria-expanded="${String(this.open)}"
|
|
163
163
|
aria-controls="${this.contentId}"
|
|
164
164
|
@click=${this.handleButtonClick}
|
|
165
|
-
@keydown=${this.handleButtonKeydown}
|
|
166
|
-
>
|
|
165
|
+
@keydown=${this.handleButtonKeydown}>
|
|
167
166
|
<span class="${baseClass}__icon" part="expando-icon" aria-hidden="true">
|
|
168
167
|
${iconLoader(ChevronRight16)}
|
|
169
168
|
</span>
|
|
@@ -200,7 +199,7 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
200
199
|
emitAnimationEndWhenSettled() {
|
|
201
200
|
requestAnimationFrame(() => {
|
|
202
201
|
const panel = this.shadowRoot?.querySelector(`.${baseClass}__panel`);
|
|
203
|
-
const emit = () => this.dispatchEvent(new CustomEvent(
|
|
202
|
+
const emit = () => this.dispatchEvent(new CustomEvent('reasoning-animation-end', {
|
|
204
203
|
bubbles: true,
|
|
205
204
|
composed: true,
|
|
206
205
|
detail: { open: this.open },
|
|
@@ -209,7 +208,7 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
209
208
|
// panel's opacity/padding transitions too can delay the emit well past the
|
|
210
209
|
// height settling. If it is not animating, the height is already final.
|
|
211
210
|
const animations = (panel?.getAnimations?.() ?? []).filter((animation) => animation instanceof CSSTransition &&
|
|
212
|
-
animation.transitionProperty ===
|
|
211
|
+
animation.transitionProperty === 'grid-template-rows');
|
|
213
212
|
if (!animations.length) {
|
|
214
213
|
emit();
|
|
215
214
|
return;
|
|
@@ -228,20 +227,17 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
228
227
|
id=${this.contentId}
|
|
229
228
|
class=${panelClasses}
|
|
230
229
|
part="wrapper"
|
|
231
|
-
aria-hidden="${this.open && !isHidden ?
|
|
232
|
-
role=${ifDefined(!isHidden ?
|
|
230
|
+
aria-hidden="${this.open && !isHidden ? 'false' : 'true'}"
|
|
231
|
+
role=${ifDefined(!isHidden ? 'region' : undefined)}
|
|
233
232
|
aria-labelledby=${ifDefined(!isHidden ? this.headerId : undefined)}
|
|
234
|
-
?hidden=${isHidden}
|
|
235
|
-
>
|
|
233
|
+
?hidden=${isHidden}>
|
|
236
234
|
<div
|
|
237
235
|
class="${baseClass}__panel-body"
|
|
238
236
|
part="content"
|
|
239
|
-
data-visible="${this.open && !isHidden}"
|
|
240
|
-
>
|
|
237
|
+
data-visible="${this.open && !isHidden}">
|
|
241
238
|
<slot
|
|
242
239
|
@slotchange=${this.handleBodySlotChange}
|
|
243
|
-
?hidden=${isHidden}
|
|
244
|
-
></slot>
|
|
240
|
+
?hidden=${isHidden}></slot>
|
|
245
241
|
</div>
|
|
246
242
|
</div>
|
|
247
243
|
`;
|
|
@@ -250,14 +246,14 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
250
246
|
* Apply/remove inert on assigned elements so they are untabbable when closed.
|
|
251
247
|
*/
|
|
252
248
|
updatePanelInertState() {
|
|
253
|
-
const slot = this.shadowRoot?.querySelector(
|
|
249
|
+
const slot = this.shadowRoot?.querySelector('slot:not([name])');
|
|
254
250
|
if (!slot) {
|
|
255
251
|
return;
|
|
256
252
|
}
|
|
257
253
|
const shouldInert = !this.open || !this.hasBodyContent;
|
|
258
254
|
const assignedElements = slot.assignedElements({ flatten: true });
|
|
259
255
|
assignedElements.forEach((element) => {
|
|
260
|
-
element.toggleAttribute(
|
|
256
|
+
element.toggleAttribute('inert', shouldInert);
|
|
261
257
|
});
|
|
262
258
|
}
|
|
263
259
|
render() {
|
|
@@ -278,13 +274,13 @@ let CDSAIChatReasoningStep = class CDSAIChatReasoningStep extends LitElement {
|
|
|
278
274
|
};
|
|
279
275
|
CDSAIChatReasoningStep.styles = [commonStyles, styles];
|
|
280
276
|
__decorate([
|
|
281
|
-
property({ type: String, attribute:
|
|
277
|
+
property({ type: String, attribute: 'title' })
|
|
282
278
|
], CDSAIChatReasoningStep.prototype, "title", void 0);
|
|
283
279
|
__decorate([
|
|
284
|
-
property({ type: Boolean, attribute:
|
|
280
|
+
property({ type: Boolean, attribute: 'open', reflect: true })
|
|
285
281
|
], CDSAIChatReasoningStep.prototype, "open", void 0);
|
|
286
282
|
__decorate([
|
|
287
|
-
property({ type: Boolean, attribute:
|
|
283
|
+
property({ type: Boolean, attribute: 'controlled', reflect: true })
|
|
288
284
|
], CDSAIChatReasoningStep.prototype, "controlled", void 0);
|
|
289
285
|
__decorate([
|
|
290
286
|
state()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reasoning-step.js","sources":["../../../../src/components/reasoning-steps/src/reasoning-step.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAaH,MAAM,SAAS,GAAG,CAAA,EAAG,MAAM,kBAAkB;AAC7C,IAAI,SAAS,GAAG,CAAC;AAEjB,MAAM,UAAU,GAAG,CAAC,OAAe,KACjC,CAAA,EAAG,SAAS,IAAI,OAAO,CAAA,CAAA,EAAI,SAAS,EAAE,EAAE;AAE1C;;;AAGG;AAEH,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,UAAU,CAAA;AAA/C,IAAA,WAAA,GAAA;;QAIE,IAAA,CAAA,KAAK,GAAG,EAAE;QAGV,IAAA,CAAA,IAAI,GAAG,KAAK;QAGZ,IAAA,CAAA,UAAU,GAAG,KAAK;AAElB;;AAEG;QAEK,IAAA,CAAA,cAAc,GAAG,KAAK;AAE9B;;AAEG;AACK,QAAA,IAAA,CAAA,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;AAEvC;;AAEG;AACK,QAAA,IAAA,CAAA,SAAS,GAAG,UAAU,CAAC,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"reasoning-step.js","sources":["../../../../src/components/reasoning-steps/src/reasoning-step.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAaH,MAAM,SAAS,GAAG,CAAA,EAAG,MAAM,kBAAkB;AAC7C,IAAI,SAAS,GAAG,CAAC;AAEjB,MAAM,UAAU,GAAG,CAAC,OAAe,KACjC,CAAA,EAAG,SAAS,IAAI,OAAO,CAAA,CAAA,EAAI,SAAS,EAAE,EAAE;AAE1C;;;AAGG;AAEH,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,UAAU,CAAA;AAA/C,IAAA,WAAA,GAAA;;QAIE,IAAA,CAAA,KAAK,GAAG,EAAE;QAGV,IAAA,CAAA,IAAI,GAAG,KAAK;QAGZ,IAAA,CAAA,UAAU,GAAG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EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE;AAChD,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAMX,UAAA,CAAA;AADP,IAAA,KAAK;AACyB,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,MAAA,CAAA;AAhB3B,sBAAsB,GAAA,UAAA,CAAA;AAD3B,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,eAAA,CAAiB;AACnC,CAAA,EAAA,sBAAsB,CAoT3B;AASD,+BAAe,sBAAsB;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* Reasoning steps toggle component
|
|
4
4
|
* @element cds-aichat-reasoning-steps-toggle
|
|
@@ -33,7 +33,7 @@ interface ReasoningStepsToggleEventDetail {
|
|
|
33
33
|
}
|
|
34
34
|
declare global {
|
|
35
35
|
interface HTMLElementTagNameMap {
|
|
36
|
-
|
|
36
|
+
'cds-aichat-reasoning-steps-toggle': CDSAIChatReasoningStepsToggle;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
export { CDSAIChatReasoningStepsToggle, type ReasoningStepsToggleEventDetail };
|
|
@@ -17,7 +17,7 @@ import styles from './reasoning-steps-toggle.scss.js';
|
|
|
17
17
|
import prefix from '../../../globals/settings.js';
|
|
18
18
|
|
|
19
19
|
/*
|
|
20
|
-
* Copyright IBM Corp. 2025
|
|
20
|
+
* Copyright IBM Corp. 2025, 2026
|
|
21
21
|
*
|
|
22
22
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
23
23
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -38,11 +38,11 @@ let CDSAIChatReasoningStepsToggle = class CDSAIChatReasoningStepsToggle extends
|
|
|
38
38
|
/**
|
|
39
39
|
* Label text when the panel is open.
|
|
40
40
|
*/
|
|
41
|
-
this.openLabelText =
|
|
41
|
+
this.openLabelText = 'Hide reasoning steps';
|
|
42
42
|
/**
|
|
43
43
|
* Label text when the panel is closed.
|
|
44
44
|
*/
|
|
45
|
-
this.closedLabelText =
|
|
45
|
+
this.closedLabelText = 'Show reasoning steps';
|
|
46
46
|
/**
|
|
47
47
|
* Whether the control should be disabled.
|
|
48
48
|
*/
|
|
@@ -54,7 +54,7 @@ let CDSAIChatReasoningStepsToggle = class CDSAIChatReasoningStepsToggle extends
|
|
|
54
54
|
}
|
|
55
55
|
const nextOpen = !this.open;
|
|
56
56
|
this.open = nextOpen;
|
|
57
|
-
this.dispatchEvent(new CustomEvent(
|
|
57
|
+
this.dispatchEvent(new CustomEvent('reasoning-steps-toggle', {
|
|
58
58
|
detail: { open: nextOpen },
|
|
59
59
|
bubbles: true,
|
|
60
60
|
composed: true,
|
|
@@ -66,18 +66,16 @@ let CDSAIChatReasoningStepsToggle = class CDSAIChatReasoningStepsToggle extends
|
|
|
66
66
|
<button
|
|
67
67
|
class="${prefix}--reasoning-steps-toggle"
|
|
68
68
|
type="button"
|
|
69
|
-
aria-expanded=${this.open ?
|
|
69
|
+
aria-expanded=${this.open ? 'true' : 'false'}
|
|
70
70
|
aria-controls=${ifDefined(this.panelID)}
|
|
71
71
|
?disabled=${this.disabled}
|
|
72
|
-
@click=${this.handleToggleClick}
|
|
73
|
-
>
|
|
72
|
+
@click=${this.handleToggleClick}>
|
|
74
73
|
<span class="${prefix}--reasoning-steps-toggle-label"
|
|
75
74
|
>${labelText}</span
|
|
76
75
|
>
|
|
77
76
|
<span
|
|
78
77
|
class="${prefix}--reasoning-steps-toggle-caret"
|
|
79
|
-
aria-hidden="true"
|
|
80
|
-
>
|
|
78
|
+
aria-hidden="true">
|
|
81
79
|
${iconLoader(ChevronUp16)}
|
|
82
80
|
</span>
|
|
83
81
|
</button>
|
|
@@ -86,19 +84,19 @@ let CDSAIChatReasoningStepsToggle = class CDSAIChatReasoningStepsToggle extends
|
|
|
86
84
|
};
|
|
87
85
|
CDSAIChatReasoningStepsToggle.styles = [commonStyles, styles];
|
|
88
86
|
__decorate([
|
|
89
|
-
property({ type: Boolean, attribute:
|
|
87
|
+
property({ type: Boolean, attribute: 'open', reflect: true })
|
|
90
88
|
], CDSAIChatReasoningStepsToggle.prototype, "open", void 0);
|
|
91
89
|
__decorate([
|
|
92
|
-
property({ type: String, attribute:
|
|
90
|
+
property({ type: String, attribute: 'open-label-text', reflect: true })
|
|
93
91
|
], CDSAIChatReasoningStepsToggle.prototype, "openLabelText", void 0);
|
|
94
92
|
__decorate([
|
|
95
|
-
property({ type: String, attribute:
|
|
93
|
+
property({ type: String, attribute: 'closed-label-text', reflect: true })
|
|
96
94
|
], CDSAIChatReasoningStepsToggle.prototype, "closedLabelText", void 0);
|
|
97
95
|
__decorate([
|
|
98
|
-
property({ type: String, attribute:
|
|
96
|
+
property({ type: String, attribute: 'panel-id', reflect: true })
|
|
99
97
|
], CDSAIChatReasoningStepsToggle.prototype, "panelID", void 0);
|
|
100
98
|
__decorate([
|
|
101
|
-
property({ type: Boolean, attribute:
|
|
99
|
+
property({ type: Boolean, attribute: 'disabled', reflect: true })
|
|
102
100
|
], CDSAIChatReasoningStepsToggle.prototype, "disabled", void 0);
|
|
103
101
|
CDSAIChatReasoningStepsToggle = __decorate([
|
|
104
102
|
carbonElement(`${prefix}-reasoning-steps-toggle`)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reasoning-steps-toggle.js","sources":["../../../../src/components/reasoning-steps/src/reasoning-steps-toggle.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAYH;;;AAGG;AAEH,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,UAAU,CAAA;AAAtD,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,KAAK;AAEZ;;AAEG;QAEH,IAAA,CAAA,aAAa,GAAG,sBAAsB;AAEtC;;AAEG;QAEH,IAAA,CAAA,eAAe,GAAG,sBAAsB;AAQxC;;AAEG;QAEH,IAAA,CAAA,QAAQ,GAAG,KAAK;
|
|
1
|
+
{"version":3,"file":"reasoning-steps-toggle.js","sources":["../../../../src/components/reasoning-steps/src/reasoning-steps-toggle.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAYH;;;AAGG;AAEH,IAAM,6BAA6B,GAAnC,MAAM,6BAA8B,SAAQ,UAAU,CAAA;AAAtD,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,KAAK;AAEZ;;AAEG;QAEH,IAAA,CAAA,aAAa,GAAG,sBAAsB;AAEtC;;AAEG;QAEH,IAAA,CAAA,eAAe,GAAG,sBAAsB;AAQxC;;AAEG;QAEH,IAAA,CAAA,QAAQ,GAAG,KAAK;IA0ClB;IAxCE,iBAAiB,GAAA;AACf,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB;QACF;AACA,QAAA,MAAM,QAAQ,GAAG,CAAC,IAAI,CAAC,IAAI;AAC3B,QAAA,IAAI,CAAC,IAAI,GAAG,QAAQ;AACpB,QAAA,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CACb,wBAAwB,EACxB;AACE,YAAA,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;AAC1B,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA,CACF,CACF;IACH;IAEA,MAAM,GAAA;AACJ,QAAA,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,eAAe;AAEvE,QAAA,OAAO,IAAI,CAAA;;iBAEE,MAAM,CAAA;;wBAEC,IAAI,CAAC,IAAI,GAAG,MAAM,GAAG,OAAO;AAC5B,sBAAA,EAAA,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC;AAC3B,kBAA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IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,uBAAA,CAAyB;AAC3C,CAAA,EAAA,6BAA6B,CAyElC;AAaD,sCAAe,6BAA6B;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LitElement } from
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
2
|
/**
|
|
3
3
|
* Reasoning steps container component
|
|
4
4
|
* @element cds-aichat-reasoning-steps
|
|
@@ -39,7 +39,7 @@ declare class CDSAIChatReasoningSteps extends LitElement {
|
|
|
39
39
|
}
|
|
40
40
|
declare global {
|
|
41
41
|
interface HTMLElementTagNameMap {
|
|
42
|
-
|
|
42
|
+
'cds-aichat-reasoning-steps': CDSAIChatReasoningSteps;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
export { CDSAIChatReasoningSteps };
|
|
@@ -46,8 +46,8 @@ let CDSAIChatReasoningSteps = class CDSAIChatReasoningSteps extends LitElement {
|
|
|
46
46
|
* the shrink is a frame late — which is exactly what produces a visible one-frame jump.
|
|
47
47
|
*/
|
|
48
48
|
attributeChangedCallback(name, old, value) {
|
|
49
|
-
if (name ===
|
|
50
|
-
this.dispatchEvent(new CustomEvent(
|
|
49
|
+
if (name === 'open' && old !== null && value === null) {
|
|
50
|
+
this.dispatchEvent(new CustomEvent('reasoning-animation-start', {
|
|
51
51
|
bubbles: true,
|
|
52
52
|
composed: true,
|
|
53
53
|
detail: { open: false },
|
|
@@ -56,13 +56,13 @@ let CDSAIChatReasoningSteps = class CDSAIChatReasoningSteps extends LitElement {
|
|
|
56
56
|
super.attributeChangedCallback(name, old, value);
|
|
57
57
|
}
|
|
58
58
|
updated(changedProperties) {
|
|
59
|
-
if (changedProperties.has(
|
|
59
|
+
if (changedProperties.has('controlled')) {
|
|
60
60
|
this.propagateControlled();
|
|
61
61
|
}
|
|
62
|
-
if (changedProperties.has(
|
|
62
|
+
if (changedProperties.has('open')) {
|
|
63
63
|
this.propagateOpen();
|
|
64
64
|
// Skip the initial render (no previous value) — only announce real toggles.
|
|
65
|
-
if (changedProperties.get(
|
|
65
|
+
if (changedProperties.get('open') !== undefined) {
|
|
66
66
|
this.emitAnimationEndWhenSettled();
|
|
67
67
|
}
|
|
68
68
|
}
|
|
@@ -77,33 +77,33 @@ let CDSAIChatReasoningSteps = class CDSAIChatReasoningSteps extends LitElement {
|
|
|
77
77
|
propagateOpen() {
|
|
78
78
|
this.steps.forEach((step) => {
|
|
79
79
|
if (this.open) {
|
|
80
|
-
step.removeAttribute(
|
|
80
|
+
step.removeAttribute('inert');
|
|
81
81
|
}
|
|
82
82
|
else {
|
|
83
|
-
step.setAttribute(
|
|
83
|
+
step.setAttribute('inert', '');
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
propagateControlled() {
|
|
88
88
|
this.steps.forEach((step) => {
|
|
89
89
|
if (this.controlled) {
|
|
90
|
-
step.setAttribute(
|
|
91
|
-
step.setAttribute(
|
|
90
|
+
step.setAttribute('data-parent-controlled', '');
|
|
91
|
+
step.setAttribute('controlled', '');
|
|
92
92
|
}
|
|
93
|
-
else if (step.hasAttribute(
|
|
94
|
-
step.removeAttribute(
|
|
95
|
-
step.removeAttribute(
|
|
93
|
+
else if (step.hasAttribute('data-parent-controlled')) {
|
|
94
|
+
step.removeAttribute('data-parent-controlled');
|
|
95
|
+
step.removeAttribute('controlled');
|
|
96
96
|
}
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
99
|
markLastVisibleStep() {
|
|
100
100
|
const steps = Array.from(this.steps);
|
|
101
101
|
steps.forEach((step) => {
|
|
102
|
-
step.removeAttribute(
|
|
102
|
+
step.removeAttribute('data-last-item');
|
|
103
103
|
});
|
|
104
104
|
const lastVisible = steps.reverse().find((step) => !step.hidden);
|
|
105
105
|
if (lastVisible) {
|
|
106
|
-
lastVisible.setAttribute(
|
|
106
|
+
lastVisible.setAttribute('data-last-item', '');
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
/**
|
|
@@ -121,7 +121,7 @@ let CDSAIChatReasoningSteps = class CDSAIChatReasoningSteps extends LitElement {
|
|
|
121
121
|
emitAnimationEndWhenSettled() {
|
|
122
122
|
requestAnimationFrame(() => {
|
|
123
123
|
const wrapper = this.shadowRoot?.querySelector(`.${baseClass}__wrapper`);
|
|
124
|
-
const emit = () => this.dispatchEvent(new CustomEvent(
|
|
124
|
+
const emit = () => this.dispatchEvent(new CustomEvent('reasoning-animation-end', {
|
|
125
125
|
bubbles: true,
|
|
126
126
|
composed: true,
|
|
127
127
|
detail: { open: this.open },
|
|
@@ -130,7 +130,7 @@ let CDSAIChatReasoningSteps = class CDSAIChatReasoningSteps extends LitElement {
|
|
|
130
130
|
// wrapper's opacity/padding transitions too can delay the emit well past the
|
|
131
131
|
// height settling. If it is not animating, the height is already final.
|
|
132
132
|
const animations = (wrapper?.getAnimations?.() ?? []).filter((animation) => animation instanceof CSSTransition &&
|
|
133
|
-
animation.transitionProperty ===
|
|
133
|
+
animation.transitionProperty === 'grid-template-rows');
|
|
134
134
|
if (!animations.length) {
|
|
135
135
|
emit();
|
|
136
136
|
return;
|
|
@@ -143,8 +143,7 @@ let CDSAIChatReasoningSteps = class CDSAIChatReasoningSteps extends LitElement {
|
|
|
143
143
|
<div class=${baseClass}>
|
|
144
144
|
<div
|
|
145
145
|
class="${baseClass}__wrapper"
|
|
146
|
-
aria-hidden=${this.open ?
|
|
147
|
-
>
|
|
146
|
+
aria-hidden=${this.open ? 'false' : 'true'}>
|
|
148
147
|
<div class="${baseClass}__body" role="list">
|
|
149
148
|
<slot></slot>
|
|
150
149
|
</div>
|
|
@@ -155,10 +154,10 @@ let CDSAIChatReasoningSteps = class CDSAIChatReasoningSteps extends LitElement {
|
|
|
155
154
|
};
|
|
156
155
|
CDSAIChatReasoningSteps.styles = [commonStyles, styles];
|
|
157
156
|
__decorate([
|
|
158
|
-
property({ type: Boolean, attribute:
|
|
157
|
+
property({ type: Boolean, attribute: 'open', reflect: true })
|
|
159
158
|
], CDSAIChatReasoningSteps.prototype, "open", void 0);
|
|
160
159
|
__decorate([
|
|
161
|
-
property({ type: Boolean, attribute:
|
|
160
|
+
property({ type: Boolean, attribute: 'controlled', reflect: true })
|
|
162
161
|
], CDSAIChatReasoningSteps.prototype, "controlled", void 0);
|
|
163
162
|
CDSAIChatReasoningSteps = __decorate([
|
|
164
163
|
carbonElement(`${prefix}-reasoning-steps`)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reasoning-steps.js","sources":["../../../../src/components/reasoning-steps/src/reasoning-steps.ts"],"sourcesContent":[null],"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;
|
|
1
|
+
{"version":3,"file":"reasoning-steps.js","sources":["../../../../src/components/reasoning-steps/src/reasoning-steps.ts"],"sourcesContent":[null],"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,iBAAiB,GAAA;QACf,KAAK,CAAC,iBAAiB,EAAE;IAC3B;AAEA;;;;;;;;AAQG;AACH,IAAA,wBAAwB,CACtB,IAAY,E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AuB;;;;"}
|
|
@@ -40,21 +40,21 @@ function getCssText() {
|
|
|
40
40
|
.map(([selector, declarations]) => {
|
|
41
41
|
const decls = Array.from(declarations.entries())
|
|
42
42
|
.map(([prop, value]) => `${prop}: ${value};`)
|
|
43
|
-
.join(
|
|
43
|
+
.join(' ');
|
|
44
44
|
return `${selector} { ${decls} }`;
|
|
45
45
|
})
|
|
46
|
-
.join(
|
|
46
|
+
.join('\n');
|
|
47
47
|
}
|
|
48
48
|
function ensureSheet() {
|
|
49
49
|
if (sheet) {
|
|
50
50
|
return sheet;
|
|
51
51
|
}
|
|
52
|
-
if (typeof document ===
|
|
52
|
+
if (typeof document === 'undefined' || typeof CSSStyleSheet === 'undefined') {
|
|
53
53
|
return null;
|
|
54
54
|
}
|
|
55
55
|
try {
|
|
56
56
|
const candidate = new CSSStyleSheet();
|
|
57
|
-
if (typeof candidate.replaceSync !==
|
|
57
|
+
if (typeof candidate.replaceSync !== 'function') {
|
|
58
58
|
// Older browsers / jsdom may construct a sheet but not implement
|
|
59
59
|
// the constructable-stylesheet write methods. Fall back to <style>.
|
|
60
60
|
return null;
|
|
@@ -68,7 +68,7 @@ function ensureSheet() {
|
|
|
68
68
|
return sheet;
|
|
69
69
|
}
|
|
70
70
|
function ensureFallbackStyleElement(root) {
|
|
71
|
-
if (typeof document ===
|
|
71
|
+
if (typeof document === 'undefined') {
|
|
72
72
|
return null;
|
|
73
73
|
}
|
|
74
74
|
const existing = fallbackStyleElements.get(root);
|
|
@@ -79,7 +79,7 @@ function ensureFallbackStyleElement(root) {
|
|
|
79
79
|
if (!ownerDocument) {
|
|
80
80
|
return null;
|
|
81
81
|
}
|
|
82
|
-
const styleElement = ownerDocument.createElement(
|
|
82
|
+
const styleElement = ownerDocument.createElement('style');
|
|
83
83
|
const container = root instanceof Document ? (root.head ?? root.documentElement) : root;
|
|
84
84
|
if (!container) {
|
|
85
85
|
return null;
|
|
@@ -116,7 +116,7 @@ function adoptOnRoot(root) {
|
|
|
116
116
|
// adoptedStyleSheets; fall back to a <style> element in that case.
|
|
117
117
|
const current = root.adoptedStyleSheets;
|
|
118
118
|
if (Array.isArray(current) ||
|
|
119
|
-
typeof current?.[Symbol.iterator] ===
|
|
119
|
+
typeof current?.[Symbol.iterator] === 'function') {
|
|
120
120
|
root.adoptedStyleSheets = [...current, s];
|
|
121
121
|
adoptedRoots.add(root);
|
|
122
122
|
return;
|
|
@@ -41,7 +41,7 @@ class ScriptLoader {
|
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
43
43
|
// Create and append new script element
|
|
44
|
-
const script = document.createElement(
|
|
44
|
+
const script = document.createElement('script');
|
|
45
45
|
script.src = url;
|
|
46
46
|
script.async = true;
|
|
47
47
|
script.onload = () => {
|
|
@@ -75,7 +75,6 @@ class ScriptLoader {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
ScriptLoader.loadedScripts = new Map();
|
|
78
|
-
// Made with Bob
|
|
79
78
|
|
|
80
79
|
export { ScriptLoader };
|
|
81
80
|
//# sourceMappingURL=script-loader.js.map
|
|
@@ -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":[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;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
|
+
import './src/table.js';
|
|
2
|
+
export { default } from './src/table.js';
|
|
3
|
+
export type { TableItemCell, TableItemRow } from './src/types.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type TableRuntimeModule = typeof import(
|
|
1
|
+
type TableRuntimeModule = typeof import('./table-runtime.js');
|
|
2
2
|
export declare function loadTableRuntime(): Promise<TableRuntimeModule>;
|
|
3
3
|
export declare function loadTableDeps(): Promise<TableRuntimeModule>;
|
|
4
4
|
export type { TableRuntimeModule };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { TableRowContent } from
|
|
1
|
+
import '@carbon/web-components/es/components/pagination/index.js';
|
|
2
|
+
import '@carbon/web-components/es/components/select/index.js';
|
|
3
|
+
import { TableRowContent } from './table.js';
|
|
4
4
|
interface TablePaginationProps {
|
|
5
5
|
_currentPageSize: number;
|
|
6
6
|
_currentPageNumber: number;
|
|
@@ -9,9 +9,10 @@ import '@carbon/web-components/es/components/pagination/index.js';
|
|
|
9
9
|
import '@carbon/web-components/es/components/select/index.js';
|
|
10
10
|
import { html } from 'lit';
|
|
11
11
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
12
|
+
import { isDirectionRTL } from '../../../globals/utils/rtl-utils.js';
|
|
12
13
|
|
|
13
14
|
/*
|
|
14
|
-
* Copyright IBM Corp. 2025
|
|
15
|
+
* Copyright IBM Corp. 2025, 2026
|
|
15
16
|
*
|
|
16
17
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
17
18
|
* LICENSE file in the root directory of this source tree.
|
|
@@ -44,10 +45,8 @@ function tablePaginationTemplate(props) {
|
|
|
44
45
|
.formatStatusWithDeterminateTotal=${ifDefined(getPaginationStatusText)}
|
|
45
46
|
@cds-pagination-changed-current=${handlePageChangeEvent}
|
|
46
47
|
@cds-page-sizes-select-changed=${handlePageSizeChangeEvent}
|
|
47
|
-
|
|
48
|
-
${supportedPageSizes.map((pageSize) => html `<cds-select-item value="${pageSize}"
|
|
49
|
-
>${pageSize}</cds-select-item
|
|
50
|
-
>`)}
|
|
48
|
+
forward-text-tooltip-position=${isDirectionRTL() ? 'right' : 'left'}>
|
|
49
|
+
${supportedPageSizes.map((pageSize) => html `<cds-select-item value="${pageSize}">${pageSize}</cds-select-item>`)}
|
|
51
50
|
<cds-select-item value="${totalRows}">${totalRows}</cds-select-item>
|
|
52
51
|
</cds-pagination>`;
|
|
53
52
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table-pagination.template.js","sources":["../../../../src/components/table/src/table-pagination.template.ts"],"sourcesContent":[null],"names":[],"mappings":"
|
|
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,2 +1,2 @@
|
|
|
1
|
-
export { tableTemplate } from
|
|
2
|
-
export { tablePaginationTemplate } from
|
|
1
|
+
export { tableTemplate } from './table.template.js';
|
|
2
|
+
export { tablePaginationTemplate } from './table-pagination.template.js';
|