@carbon/ai-chat-components 1.9.0-alpha.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/LICENSE +201 -0
- package/README.md +1 -5
- package/custom-elements.json +3838 -3356
- 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 -38
- 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 -9
- 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 -18
- package/es/components/audio-player/src/providers/soundcloud-provider.d.ts +2 -2
- package/es/components/audio-player/src/providers/soundcloud-provider.js +14 -14
- package/es/components/audio-player/src/transcript.d.ts +2 -2
- package/es/components/audio-player/src/transcript.js +13 -16
- package/es/components/audio-player/src/transcript.js.map +1 -1
- package/es/components/audio-player/src/utils/url-detector.js +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/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 -44
- package/es/components/chat-shell/src/chat-header.js.map +1 -1
- package/es/components/chat-shell/src/corner-manager.d.ts +1 -1
- package/es/components/chat-shell/src/corner-manager.js +30 -30
- package/es/components/chat-shell/src/initialization-manager.d.ts +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 -10
- package/es/components/chat-shell/src/shell.d.ts +8 -8
- package/es/components/chat-shell/src/shell.js +128 -135
- package/es/components/chat-shell/src/shell.js.map +1 -1
- package/es/components/chat-shell/src/slot-observer.d.ts +1 -1
- package/es/components/chat-shell/src/slot-observer.js +4 -7
- 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.js +4 -4
- package/es/components/chat-shell/src/workspace-manager.d.ts +1 -1
- package/es/components/chat-shell/src/workspace-manager.js +32 -32
- package/es/components/code-snippet/index.d.ts +4 -4
- package/es/components/code-snippet/src/code-snippet.d.ts +8 -8
- package/es/components/code-snippet/src/code-snippet.js +87 -93
- package/es/components/code-snippet/src/code-snippet.js.map +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 +163 -163
- 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 +9 -9
- 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 +38 -45
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/file-uploads/index.d.ts +5 -4
- 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 +69 -8
- package/es/components/file-uploads/src/file-upload-item.js +210 -111
- package/es/components/file-uploads/src/file-upload-item.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.d.ts +8 -4
- package/es/components/file-uploads/src/file-uploads.js +54 -29
- package/es/components/file-uploads/src/file-uploads.js.map +1 -1
- package/es/components/file-uploads/src/file-uploads.scss.js +1 -1
- 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 -5
- 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 +1 -1
- package/es/components/markdown/src/markdown-token-tree.js +20 -20
- package/es/components/markdown/src/markdown.d.ts +4 -7
- package/es/components/markdown/src/markdown.js +96 -82
- package/es/components/markdown/src/markdown.js.map +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/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js +1 -1
- package/es/components/prompt-line/index.d.ts +18 -18
- package/es/components/prompt-line/src/autocomplete-controller.d.ts +10 -8
- package/es/components/prompt-line/src/autocomplete-controller.js +107 -47
- package/es/components/prompt-line/src/autocomplete-controller.js.map +1 -1
- package/es/components/prompt-line/src/error-message.d.ts +3 -7
- package/es/components/prompt-line/src/error-message.js +13 -23
- package/es/components/prompt-line/src/error-message.js.map +1 -1
- package/es/components/prompt-line/src/error-message.scss.js +1 -1
- package/es/components/prompt-line/src/prompt-line-constants.js +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-controller.js +83 -83
- package/es/components/prompt-line/src/prompt-line-rich-loader.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-loader.js +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-runtime.d.ts +1 -1
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js +30 -28
- package/es/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.d.ts +2 -2
- package/es/components/prompt-line/src/prompt-line-shell.js +11 -13
- package/es/components/prompt-line/src/prompt-line-shell.js.map +1 -1
- package/es/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
- package/es/components/prompt-line/src/prompt-line.d.ts +5 -5
- package/es/components/prompt-line/src/prompt-line.js +35 -35
- package/es/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es/components/prompt-line/src/send-control.d.ts +4 -4
- package/es/components/prompt-line/src/send-control.js +18 -20
- package/es/components/prompt-line/src/send-control.js.map +1 -1
- package/es/components/prompt-line/src/stop-streaming-button.d.ts +3 -3
- package/es/components/prompt-line/src/stop-streaming-button.js +7 -8
- package/es/components/prompt-line/src/stop-streaming-button.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/build-extensions.d.ts +3 -3
- package/es/components/prompt-line/src/tiptap/build-extensions.js +2 -2
- package/es/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +2 -2
- package/es/components/prompt-line/src/tiptap/carbon-autocomplete.js +7 -7
- package/es/components/prompt-line/src/tiptap/carbon-mention.d.ts +2 -2
- package/es/components/prompt-line/src/tiptap/carbon-mention.js +9 -9
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +4 -3
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js +18 -12
- package/es/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/chat-enter.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/chat-enter.js +2 -2
- package/es/components/prompt-line/src/tiptap/editor-styles.js +26 -26
- package/es/components/prompt-line/src/tiptap/index.d.ts +24 -24
- package/es/components/prompt-line/src/tiptap/index.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/json-utils.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/json-utils.js +17 -17
- package/es/components/prompt-line/src/tiptap/keymap.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/keymap.js +3 -3
- package/es/components/prompt-line/src/tiptap/origin-meta.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/origin-meta.js +2 -2
- package/es/components/prompt-line/src/tiptap/plain-text-paste.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/plain-text-paste.js +5 -5
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +3 -3
- package/es/components/prompt-line/src/tiptap/render-in-light-dom.js +3 -3
- package/es/components/prompt-line/src/tiptap/render-token-chip.d.ts +4 -4
- package/es/components/prompt-line/src/tiptap/render-token-chip.js +22 -22
- package/es/components/prompt-line/src/tiptap/token-node-view.d.ts +4 -4
- package/es/components/prompt-line/src/tiptap/token-node-view.js +1 -1
- package/es/components/prompt-line/src/tiptap/trigger-utils.d.ts +9 -2
- package/es/components/prompt-line/src/tiptap/trigger-utils.js +11 -2
- package/es/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
- package/es/components/prompt-line/src/tiptap/types.d.ts +24 -3
- package/es/components/prompt-line/src/tiptap/typing-indicator.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/typing-indicator.js +2 -2
- package/es/components/prompt-line/src/tiptap/value-sync.d.ts +1 -1
- package/es/components/prompt-line/src/tiptap/value-sync.js +2 -2
- package/es/components/prompt-line/src/types.d.ts +2 -2
- package/es/components/prompt-line/src/types.js.map +1 -1
- 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 -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 -5
- package/es/components/video-player/src/providers/kaltura-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/kaltura-provider.js +23 -23
- 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 -20
- package/es/components/video-player/src/providers/vimeo-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/vimeo-provider.js +23 -23
- package/es/components/video-player/src/providers/youtube-provider.d.ts +2 -2
- package/es/components/video-player/src/providers/youtube-provider.js +15 -15
- package/es/components/video-player/src/utils/url-detector.js +1 -1
- package/es/components/video-player/src/video-player.d.ts +2 -2
- package/es/components/video-player/src/video-player.js +37 -41
- 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 -13
- 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 +1 -1
- package/es/globals/utils/aria-announcer-manager.js +6 -6
- package/es/globals/utils/browser-utils.js +1 -1
- 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.js +1 -1
- package/es/globals/utils/focus-utils.js +4 -4
- package/es/globals/utils/iconTransform.d.ts +2 -2
- package/es/globals/utils/iconTransform.js +21 -21
- package/es/globals/utils/rtl-utils.js +1 -1
- package/es/globals/utils/uuid.js +5 -5
- package/es/react/__tests__/jest.setup.js +12 -12
- 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 -5
- package/es/react/autocomplete.d.ts +1 -1
- package/es/react/autocomplete.js +5 -5
- 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 +2 -2
- 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 +3 -3
- package/es/react/error-message.d.ts +1 -1
- package/es/react/error-message.js +1 -1
- 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 +1 -1
- package/es/react/file-uploads.js +2 -2
- 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 +4 -4
- package/es/react/hooks/useChatAutocomplete.js +38 -12
- package/es/react/hooks/useChatAutocomplete.js.map +1 -1
- package/es/react/input-send-control.d.ts +1 -1
- package/es/react/input-send-control.js +3 -3
- 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 +1 -1
- package/es/react/prompt-line-shell.js +1 -1
- package/es/react/prompt-line.d.ts +1 -1
- package/es/react/prompt-line.js +9 -9
- 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 +1 -1
- package/es/react/stop-streaming-button.js +1 -1
- 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 +2 -2
- package/es/react/transcript.d.ts +1 -1
- package/es/react/transcript.js +3 -3
- package/es/react/utils/transformSuggestionConfig.d.ts +3 -3
- package/es/react/utils/transformSuggestionConfig.js +3 -3
- package/es/react/utils/transformSuggestionConfig.js.map +1 -1
- 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 -5
- package/es/react/workspace-shell.d.ts +1 -1
- package/es/react/workspace-shell.js +6 -6
- 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 -38
- 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 -9
- 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 -18
- 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 -14
- package/es-custom/components/audio-player/src/transcript.d.ts +2 -2
- package/es-custom/components/audio-player/src/transcript.js +13 -16
- package/es-custom/components/audio-player/src/transcript.js.map +1 -1
- package/es-custom/components/audio-player/src/utils/url-detector.js +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/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 -44
- package/es-custom/components/chat-shell/src/chat-header.js.map +1 -1
- package/es-custom/components/chat-shell/src/corner-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/corner-manager.js +30 -30
- package/es-custom/components/chat-shell/src/initialization-manager.d.ts +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 -10
- package/es-custom/components/chat-shell/src/shell.d.ts +8 -8
- package/es-custom/components/chat-shell/src/shell.js +128 -135
- package/es-custom/components/chat-shell/src/shell.js.map +1 -1
- package/es-custom/components/chat-shell/src/slot-observer.d.ts +1 -1
- package/es-custom/components/chat-shell/src/slot-observer.js +4 -7
- 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.js +4 -4
- package/es-custom/components/chat-shell/src/workspace-manager.d.ts +1 -1
- package/es-custom/components/chat-shell/src/workspace-manager.js +32 -32
- package/es-custom/components/code-snippet/index.d.ts +4 -4
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +8 -8
- package/es-custom/components/code-snippet/src/code-snippet.js +87 -93
- package/es-custom/components/code-snippet/src/code-snippet.js.map +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 +163 -163
- 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 +9 -9
- 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 +38 -45
- package/es-custom/components/feedback/src/feedback.js.map +1 -1
- package/es-custom/components/file-uploads/index.d.ts +5 -4
- 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 +69 -8
- package/es-custom/components/file-uploads/src/file-upload-item.js +210 -111
- package/es-custom/components/file-uploads/src/file-upload-item.js.map +1 -1
- package/es-custom/components/file-uploads/src/file-uploads.d.ts +8 -4
- package/es-custom/components/file-uploads/src/file-uploads.js +54 -29
- package/es-custom/components/file-uploads/src/file-uploads.js.map +1 -1
- package/es-custom/components/file-uploads/src/file-uploads.scss.js +1 -1
- 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/components/autocomplete → es-custom/components/launcher}/index.js.map +1 -1
- 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 -5
- 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 +1 -1
- package/es-custom/components/markdown/src/markdown-token-tree.js +20 -20
- package/es-custom/components/markdown/src/markdown.d.ts +4 -7
- package/es-custom/components/markdown/src/markdown.js +96 -82
- package/es-custom/components/markdown/src/markdown.js.map +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/{autocomplete → prompt-line/autocomplete}/index.js.map +1 -1
- 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/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js +1 -1
- package/es-custom/components/prompt-line/index.d.ts +18 -18
- package/es-custom/components/prompt-line/src/autocomplete-controller.d.ts +10 -8
- package/es-custom/components/prompt-line/src/autocomplete-controller.js +107 -47
- package/es-custom/components/prompt-line/src/autocomplete-controller.js.map +1 -1
- package/es-custom/components/prompt-line/src/error-message.d.ts +3 -7
- package/es-custom/components/prompt-line/src/error-message.js +13 -23
- package/es-custom/components/prompt-line/src/error-message.js.map +1 -1
- package/es-custom/components/prompt-line/src/error-message.scss.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-constants.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-controller.js +83 -83
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-loader.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.d.ts +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js +30 -28
- package/es-custom/components/prompt-line/src/prompt-line-rich-runtime.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.d.ts +2 -2
- package/es-custom/components/prompt-line/src/prompt-line-shell.js +11 -13
- package/es-custom/components/prompt-line/src/prompt-line-shell.js.map +1 -1
- package/es-custom/components/prompt-line/src/prompt-line-shell.scss.js +1 -1
- package/es-custom/components/prompt-line/src/prompt-line.d.ts +5 -5
- package/es-custom/components/prompt-line/src/prompt-line.js +35 -35
- package/es-custom/components/prompt-line/src/prompt-line.js.map +1 -1
- package/es-custom/components/prompt-line/src/send-control.d.ts +4 -4
- package/es-custom/components/prompt-line/src/send-control.js +18 -20
- package/es-custom/components/prompt-line/src/send-control.js.map +1 -1
- package/es-custom/components/prompt-line/src/stop-streaming-button.d.ts +3 -3
- package/es-custom/components/prompt-line/src/stop-streaming-button.js +7 -8
- package/es-custom/components/prompt-line/src/stop-streaming-button.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.d.ts +3 -3
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/build-extensions.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.d.ts +2 -2
- package/es-custom/components/prompt-line/src/tiptap/carbon-autocomplete.js +7 -7
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.d.ts +2 -2
- package/es-custom/components/prompt-line/src/tiptap/carbon-mention.js +9 -9
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.d.ts +4 -3
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js +18 -12
- package/es-custom/components/prompt-line/src/tiptap/carbon-starter-trigger.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/chat-enter.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/editor-styles.js +26 -26
- package/es-custom/components/prompt-line/src/tiptap/index.d.ts +24 -24
- package/es-custom/components/prompt-line/src/tiptap/index.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/json-utils.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/json-utils.js +17 -17
- package/es-custom/components/prompt-line/src/tiptap/keymap.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/keymap.js +3 -3
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/origin-meta.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/plain-text-paste.js +5 -5
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.d.ts +3 -3
- package/es-custom/components/prompt-line/src/tiptap/render-in-light-dom.js +3 -3
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.d.ts +4 -4
- package/es-custom/components/prompt-line/src/tiptap/render-token-chip.js +22 -22
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.d.ts +4 -4
- package/es-custom/components/prompt-line/src/tiptap/token-node-view.js +1 -1
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.d.ts +9 -2
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js +11 -2
- package/es-custom/components/prompt-line/src/tiptap/trigger-utils.js.map +1 -1
- package/es-custom/components/prompt-line/src/tiptap/types.d.ts +24 -3
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/typing-indicator.js +2 -2
- package/es-custom/components/prompt-line/src/tiptap/value-sync.d.ts +1 -1
- package/es-custom/components/prompt-line/src/tiptap/value-sync.js +2 -2
- package/es-custom/components/prompt-line/src/types.d.ts +2 -2
- package/es-custom/components/prompt-line/src/types.js.map +1 -1
- 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 -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 -5
- 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 -23
- 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 -20
- 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 -23
- 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 -15
- package/es-custom/components/video-player/src/utils/url-detector.js +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 -41
- 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 -13
- 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 +1 -1
- package/es-custom/globals/utils/aria-announcer-manager.js +6 -6
- package/es-custom/globals/utils/browser-utils.js +1 -1
- 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.js +1 -1
- package/es-custom/globals/utils/focus-utils.js +4 -4
- package/es-custom/globals/utils/iconTransform.d.ts +2 -2
- package/es-custom/globals/utils/iconTransform.js +21 -21
- 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 +12 -12
- 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 -5
- package/es-custom/react/autocomplete.d.ts +1 -1
- package/es-custom/react/autocomplete.js +5 -5
- 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 +2 -2
- 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 +3 -3
- package/es-custom/react/error-message.d.ts +1 -1
- package/es-custom/react/error-message.js +1 -1
- 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 +1 -1
- package/es-custom/react/file-uploads.js +2 -2
- 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 +4 -4
- package/es-custom/react/hooks/useChatAutocomplete.js +38 -12
- package/es-custom/react/hooks/useChatAutocomplete.js.map +1 -1
- package/es-custom/react/input-send-control.d.ts +1 -1
- package/es-custom/react/input-send-control.js +3 -3
- 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 +1 -1
- package/es-custom/react/prompt-line-shell.js +1 -1
- package/es-custom/react/prompt-line.d.ts +1 -1
- package/es-custom/react/prompt-line.js +9 -9
- 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 +1 -1
- package/es-custom/react/stop-streaming-button.js +1 -1
- 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 +2 -2
- package/es-custom/react/transcript.d.ts +1 -1
- package/es-custom/react/transcript.js +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.d.ts +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.js +3 -3
- package/es-custom/react/utils/transformSuggestionConfig.js.map +1 -1
- 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 -5
- package/es-custom/react/workspace-shell.d.ts +1 -1
- package/es-custom/react/workspace-shell.js +6 -6
- 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 +4 -5
- package/scss/_custom-properties.scss +15 -15
- package/scss/_modifiers.scss +8 -8
- package/scss/_tokens-component.scss +1 -1
- package/scss/_tokens-layout.scss +1 -1
- package/scss/_utilities.scss +2 -2
- 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 +64 -5
- package/es/components/autocomplete/index.d.ts +0 -15
- package/es/components/autocomplete/index.js +0 -11
- package/es/components/autocomplete/src/autocomplete-item-group.d.ts +0 -44
- package/es/components/autocomplete/src/autocomplete-item-group.js +0 -139
- package/es/components/autocomplete/src/autocomplete-item-group.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item-group.scss.js +0 -13
- package/es/components/autocomplete/src/autocomplete-item-group.scss.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item.d.ts +0 -54
- package/es/components/autocomplete/src/autocomplete-item.js +0 -197
- package/es/components/autocomplete/src/autocomplete-item.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete-item.scss.js +0 -13
- package/es/components/autocomplete/src/autocomplete-item.scss.js.map +0 -1
- package/es/components/autocomplete/src/autocomplete.d.ts +0 -97
- package/es/components/autocomplete/src/autocomplete.js +0 -321
- package/es/components/autocomplete/src/autocomplete.js.map +0 -1
- package/es-custom/components/autocomplete/index.d.ts +0 -15
- package/es-custom/components/autocomplete/index.js +0 -11
- package/es-custom/components/autocomplete/src/autocomplete-item-group.d.ts +0 -44
- package/es-custom/components/autocomplete/src/autocomplete-item-group.js +0 -139
- package/es-custom/components/autocomplete/src/autocomplete-item-group.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js +0 -13
- package/es-custom/components/autocomplete/src/autocomplete-item-group.scss.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item.d.ts +0 -54
- package/es-custom/components/autocomplete/src/autocomplete-item.js +0 -197
- package/es-custom/components/autocomplete/src/autocomplete-item.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete-item.scss.js +0 -13
- package/es-custom/components/autocomplete/src/autocomplete-item.scss.js.map +0 -1
- package/es-custom/components/autocomplete/src/autocomplete.d.ts +0 -97
- package/es-custom/components/autocomplete/src/autocomplete.js +0 -321
- package/es-custom/components/autocomplete/src/autocomplete.js.map +0 -1
- /package/es/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js.map +0 -0
- /package/es-custom/components/{autocomplete → prompt-line/autocomplete}/src/autocomplete.scss.js.map +0 -0
|
@@ -32,17 +32,17 @@ import styles from './chat-history.scss.js';
|
|
|
32
32
|
let CDSAIChatHistoryDeletePanel = class CDSAIChatHistoryDeletePanel extends LitElement {
|
|
33
33
|
constructor() {
|
|
34
34
|
super(...arguments);
|
|
35
|
-
this.cancelText =
|
|
36
|
-
this.deleteText =
|
|
35
|
+
this.cancelText = 'Cancel';
|
|
36
|
+
this.deleteText = 'Delete';
|
|
37
37
|
/**
|
|
38
38
|
* Id of the chat item being deleted.
|
|
39
39
|
*/
|
|
40
|
-
this.itemId =
|
|
40
|
+
this.itemId = '';
|
|
41
41
|
/**
|
|
42
42
|
* Handles cancel button click event
|
|
43
43
|
*/
|
|
44
44
|
this._handleCancelClick = () => {
|
|
45
|
-
this.dispatchEvent(new CustomEvent(
|
|
45
|
+
this.dispatchEvent(new CustomEvent('history-delete-cancel', {
|
|
46
46
|
bubbles: true,
|
|
47
47
|
composed: true,
|
|
48
48
|
}));
|
|
@@ -54,7 +54,7 @@ let CDSAIChatHistoryDeletePanel = class CDSAIChatHistoryDeletePanel extends LitE
|
|
|
54
54
|
const focusDetail = this.itemId.length > 0
|
|
55
55
|
? this._getFocusDetailForDeletedItem(this.itemId)
|
|
56
56
|
: {};
|
|
57
|
-
this.dispatchEvent(new CustomEvent(
|
|
57
|
+
this.dispatchEvent(new CustomEvent('history-delete-confirm', {
|
|
58
58
|
bubbles: true,
|
|
59
59
|
composed: true,
|
|
60
60
|
detail: {
|
|
@@ -81,7 +81,7 @@ let CDSAIChatHistoryDeletePanel = class CDSAIChatHistoryDeletePanel extends LitE
|
|
|
81
81
|
const next = nodes[index + 1] ?? (index > 0 ? nodes[index - 1] : undefined);
|
|
82
82
|
const nextId = next?.id;
|
|
83
83
|
nextItemId =
|
|
84
|
-
typeof nextId ===
|
|
84
|
+
typeof nextId === 'string' && nextId.length > 0 ? nextId : undefined;
|
|
85
85
|
}
|
|
86
86
|
return {
|
|
87
87
|
itemId,
|
|
@@ -92,7 +92,7 @@ let CDSAIChatHistoryDeletePanel = class CDSAIChatHistoryDeletePanel extends LitE
|
|
|
92
92
|
// auto focus on delete button when delete panel first renders.
|
|
93
93
|
async firstUpdated() {
|
|
94
94
|
await this.updateComplete;
|
|
95
|
-
this._deleteButton?.shadowRoot?.querySelector(
|
|
95
|
+
this._deleteButton?.shadowRoot?.querySelector('button').focus();
|
|
96
96
|
}
|
|
97
97
|
render() {
|
|
98
98
|
const { cancelText, deleteText, _handleCancelClick: handleCancelClick, _handleDeleteClick: handleDeleteClick, } = this;
|
|
@@ -113,7 +113,7 @@ let CDSAIChatHistoryDeletePanel = class CDSAIChatHistoryDeletePanel extends LitE
|
|
|
113
113
|
>
|
|
114
114
|
<cds-aichat-button size="sm" kind="danger" @click=${handleDeleteClick}
|
|
115
115
|
>${deleteText}
|
|
116
|
-
${iconLoader(TrashCan16, { slot:
|
|
116
|
+
${iconLoader(TrashCan16, { slot: 'icon' })}</cds-aichat-button
|
|
117
117
|
>
|
|
118
118
|
</div>
|
|
119
119
|
</div>
|
|
@@ -122,13 +122,13 @@ let CDSAIChatHistoryDeletePanel = class CDSAIChatHistoryDeletePanel extends LitE
|
|
|
122
122
|
};
|
|
123
123
|
CDSAIChatHistoryDeletePanel.styles = styles;
|
|
124
124
|
__decorate([
|
|
125
|
-
property({ type: String, attribute:
|
|
125
|
+
property({ type: String, attribute: 'cancel-text', reflect: true })
|
|
126
126
|
], CDSAIChatHistoryDeletePanel.prototype, "cancelText", void 0);
|
|
127
127
|
__decorate([
|
|
128
|
-
property({ type: String, attribute:
|
|
128
|
+
property({ type: String, attribute: 'delete-text', reflect: true })
|
|
129
129
|
], CDSAIChatHistoryDeletePanel.prototype, "deleteText", void 0);
|
|
130
130
|
__decorate([
|
|
131
|
-
property({ type: String, attribute:
|
|
131
|
+
property({ type: String, attribute: 'item-id', reflect: true })
|
|
132
132
|
], CDSAIChatHistoryDeletePanel.prototype, "itemId", void 0);
|
|
133
133
|
__decorate([
|
|
134
134
|
query('cds-aichat-button[kind="danger"]')
|
|
@@ -35,15 +35,15 @@ let CDSAIChatHistoryHeader = class CDSAIChatHistoryHeader extends LitElement {
|
|
|
35
35
|
/**
|
|
36
36
|
* Sets default slot value to header
|
|
37
37
|
*/
|
|
38
|
-
this.slot =
|
|
38
|
+
this.slot = 'header';
|
|
39
39
|
/**
|
|
40
40
|
* Header title
|
|
41
41
|
*/
|
|
42
|
-
this.headerTitle =
|
|
42
|
+
this.headerTitle = 'Chats';
|
|
43
43
|
/**
|
|
44
44
|
* Label for close chat history button.
|
|
45
45
|
*/
|
|
46
|
-
this.closeButtonLabel =
|
|
46
|
+
this.closeButtonLabel = 'Close chat history';
|
|
47
47
|
/**
|
|
48
48
|
* Render close chat history panel button
|
|
49
49
|
*/
|
|
@@ -52,7 +52,7 @@ let CDSAIChatHistoryHeader = class CDSAIChatHistoryHeader extends LitElement {
|
|
|
52
52
|
* Handles close button click event
|
|
53
53
|
*/
|
|
54
54
|
this._handleCloseButtonClick = () => {
|
|
55
|
-
this.dispatchEvent(new CustomEvent(
|
|
55
|
+
this.dispatchEvent(new CustomEvent('history-header-close-click', {
|
|
56
56
|
bubbles: true,
|
|
57
57
|
composed: true,
|
|
58
58
|
}));
|
|
@@ -66,9 +66,8 @@ let CDSAIChatHistoryHeader = class CDSAIChatHistoryHeader extends LitElement {
|
|
|
66
66
|
class="${prefix}--history-header__close-button"
|
|
67
67
|
kind="ghost"
|
|
68
68
|
align="right"
|
|
69
|
-
@click=${handleCloseButtonClick}
|
|
70
|
-
|
|
71
|
-
${iconLoader(ChevronLeft16, { slot: "icon" })}
|
|
69
|
+
@click=${handleCloseButtonClick}>
|
|
70
|
+
${iconLoader(ChevronLeft16, { slot: 'icon' })}
|
|
72
71
|
<span slot="tooltip-content">${closeButtonLabel}</span>
|
|
73
72
|
</cds-icon-button>`
|
|
74
73
|
: nothing}
|
|
@@ -81,13 +80,13 @@ __decorate([
|
|
|
81
80
|
property({ type: String, reflect: true })
|
|
82
81
|
], CDSAIChatHistoryHeader.prototype, "slot", void 0);
|
|
83
82
|
__decorate([
|
|
84
|
-
property({ type: String, reflect: true, attribute:
|
|
83
|
+
property({ type: String, reflect: true, attribute: 'header-title' })
|
|
85
84
|
], CDSAIChatHistoryHeader.prototype, "headerTitle", void 0);
|
|
86
85
|
__decorate([
|
|
87
|
-
property({ type: String, attribute:
|
|
86
|
+
property({ type: String, attribute: 'close-button-label' })
|
|
88
87
|
], CDSAIChatHistoryHeader.prototype, "closeButtonLabel", void 0);
|
|
89
88
|
__decorate([
|
|
90
|
-
property({ type: Boolean, attribute:
|
|
89
|
+
property({ type: Boolean, attribute: 'show-close-action', reflect: true })
|
|
91
90
|
], CDSAIChatHistoryHeader.prototype, "showCloseAction", void 0);
|
|
92
91
|
CDSAIChatHistoryHeader = __decorate([
|
|
93
92
|
carbonElement(`${prefix}-history-header`)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-header.js","sources":["../../../../src/components/chat-history/src/history-header.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAYH;;;;;AAKG;AAEH,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,UAAU,CAAA;AAA/C,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,QAAQ;AAEf;;AAEG;QAEH,IAAA,CAAA,WAAW,GAAG,OAAO;AAErB;;AAEG;QAEH,IAAA,CAAA,gBAAgB,GAAG,oBAAoB;AAEvC;;AAEG;QAEH,IAAA,CAAA,eAAe,GAAG,KAAK;AAEvB;;AAEG;QACH,IAAA,CAAA,uBAAuB,GAAG,MAAK;AAC7B,YAAA,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,4BAA4B,EAAE;AAC5C,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,IAAI;AACf,aAAA,CAAC,CACH;AACH,QAAA,CAAC;
|
|
1
|
+
{"version":3,"file":"history-header.js","sources":["../../../../src/components/chat-history/src/history-header.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAYH;;;;;AAKG;AAEH,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,UAAU,CAAA;AAA/C,IAAA,WAAA,GAAA;;AACE;;AAEG;QAEH,IAAA,CAAA,IAAI,GAAG,QAAQ;AAEf;;AAEG;QAEH,IAAA,CAAA,WAAW,GAAG,OAAO;AAErB;;AAEG;QAEH,IAAA,CAAA,gBAAgB,GAAG,oBAAoB;AAEvC;;AAEG;QAEH,IAAA,CAAA,eAAe,GAAG,KAAK;AAEvB;;AAEG;QACH,IAAA,CAAA,uBAAuB,GAAG,MAAK;AAC7B,YAAA,IAAI,CAAC,aAAa,CAChB,IAAI,WAAW,CAAC,4BAA4B,EAAE;AAC5C,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,QAAQ,EAAE,IAAI;AACf,aAAA,CAAC,CACH;AACH,QAAA,CAAC;IA4BH;IA1BE,MAAM,GAAA;AACJ,QAAA,MAAM,EACJ,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,uBAAuB,EAAE,sBAAsB,GAChD,GAAG,IAAI;AAER,QAAA,OAAO,IAAI,CAAA;QAEP;cACI,IAAI,CAAA,CAAA;uBACO,MAAM,CAAA;;;uBAGN,sBAAsB,CAAA;gBAC7B,UAAU,CAAC,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CACd,gBAAgB,CAAA;AAC9B,8BAAA;AACrB,cAAE,OACN;AACe,mBAAA,EAAA,MAAM,4BAA4B,WAAW,CAAA;KAC7D;IACH;;AAEO,sBAAA,CAAA,MAAM,GAAG,MAAH;AAzDb,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;AACzB,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAMhB,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE;AAC9C,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,aAAA,EAAA,MAAA,CAAA;AAMtB,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,oBAAoB,EAAE;AACnB,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,MAAA,CAAA;AAMxC,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,OAAO,EAAE,IAAI,EAAE;AAClD,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,iBAAA,EAAA,MAAA,CAAA;AAvBpB,sBAAsB,GAAA,UAAA,CAAA;AAD3B,IAAA,aAAa,CAAC,CAAA,EAAG,MAAM,CAAA,eAAA,CAAiB;AACnC,CAAA,EAAA,sBAAsB,CA+D3B;AAGD,+BAAe,sBAAsB;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
import
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '@carbon/web-components/es/components/skeleton-text/skeleton-text.js';
|
|
3
3
|
/**
|
|
4
4
|
* Chat History loading state.
|
|
5
5
|
*
|
|
@@ -33,7 +33,7 @@ let CDSAIChatHistoryLoading = class CDSAIChatHistoryLoading extends LitElement {
|
|
|
33
33
|
/**
|
|
34
34
|
* Sets default slot value to content
|
|
35
35
|
*/
|
|
36
|
-
this.slot =
|
|
36
|
+
this.slot = 'content';
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
39
|
return html ` <div class="${prefix}--history-loading__results">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
type TooltipAlignment =
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
type TooltipAlignment = 'top' | 'top-left' | 'top-right' | 'bottom' | 'bottom-left' | 'bottom-right' | 'left' | 'right';
|
|
3
3
|
declare const CDSAIChatHistoryPanelItemInput_base: {
|
|
4
4
|
new (...args: any[]): {
|
|
5
5
|
_handles: Set<import("@carbon/web-components/es/globals/internal/handle.js").default>;
|
|
@@ -46,11 +46,11 @@ let CDSAIChatHistoryPanelItemInput = class CDSAIChatHistoryPanelItemInput extend
|
|
|
46
46
|
/**
|
|
47
47
|
* Label for cancel button
|
|
48
48
|
*/
|
|
49
|
-
this.cancelLabel =
|
|
49
|
+
this.cancelLabel = 'Cancel';
|
|
50
50
|
/**
|
|
51
51
|
* label for save button
|
|
52
52
|
*/
|
|
53
|
-
this.saveLabel =
|
|
53
|
+
this.saveLabel = 'Save';
|
|
54
54
|
/**
|
|
55
55
|
* `true` if the input is in an invalid state.
|
|
56
56
|
*/
|
|
@@ -58,7 +58,7 @@ let CDSAIChatHistoryPanelItemInput = class CDSAIChatHistoryPanelItemInput extend
|
|
|
58
58
|
/**
|
|
59
59
|
* Error message text to display when the input is invalid.
|
|
60
60
|
*/
|
|
61
|
-
this.invalidMessage =
|
|
61
|
+
this.invalidMessage = '';
|
|
62
62
|
/**
|
|
63
63
|
* Flag to track if an action has been triggered to prevent focusout from executing an additional action
|
|
64
64
|
*/
|
|
@@ -70,16 +70,16 @@ let CDSAIChatHistoryPanelItemInput = class CDSAIChatHistoryPanelItemInput extend
|
|
|
70
70
|
/**
|
|
71
71
|
* Initial value of the input
|
|
72
72
|
*/
|
|
73
|
-
this._initialValue =
|
|
73
|
+
this._initialValue = '';
|
|
74
74
|
/**
|
|
75
75
|
* Handler for rename action button clicks
|
|
76
76
|
*/
|
|
77
77
|
this._handleActionButtonClick = (event) => {
|
|
78
78
|
const target = event.currentTarget;
|
|
79
|
-
if (target.className ===
|
|
79
|
+
if (target.className === 'rename-action--cancel') {
|
|
80
80
|
this._handleCancel();
|
|
81
81
|
}
|
|
82
|
-
else if (target.className ===
|
|
82
|
+
else if (target.className === 'rename-action--save') {
|
|
83
83
|
this._handleSave();
|
|
84
84
|
}
|
|
85
85
|
};
|
|
@@ -90,10 +90,10 @@ let CDSAIChatHistoryPanelItemInput = class CDSAIChatHistoryPanelItemInput extend
|
|
|
90
90
|
*/
|
|
91
91
|
this._handleKeydown = (event) => {
|
|
92
92
|
switch (event.key) {
|
|
93
|
-
case
|
|
93
|
+
case 'Escape':
|
|
94
94
|
this._handleCancel();
|
|
95
95
|
break;
|
|
96
|
-
case
|
|
96
|
+
case 'Enter':
|
|
97
97
|
if (this._canSave) {
|
|
98
98
|
this._handleSave();
|
|
99
99
|
}
|
|
@@ -109,7 +109,7 @@ let CDSAIChatHistoryPanelItemInput = class CDSAIChatHistoryPanelItemInput extend
|
|
|
109
109
|
* * @param event The event.
|
|
110
110
|
*/
|
|
111
111
|
this._handleActionButtonKeyDown = (event) => {
|
|
112
|
-
if (event.key ===
|
|
112
|
+
if (event.key === 'Enter') {
|
|
113
113
|
event.preventDefault();
|
|
114
114
|
this._handleActionButtonClick(event);
|
|
115
115
|
}
|
|
@@ -132,7 +132,7 @@ let CDSAIChatHistoryPanelItemInput = class CDSAIChatHistoryPanelItemInput extend
|
|
|
132
132
|
_handleInput({ target }) {
|
|
133
133
|
this.value = target.value;
|
|
134
134
|
this._valueChanged = this.value !== this._initialValue;
|
|
135
|
-
const inputChangeEvent = new CustomEvent(
|
|
135
|
+
const inputChangeEvent = new CustomEvent('history-panel-item-input-change', {
|
|
136
136
|
bubbles: true,
|
|
137
137
|
composed: true,
|
|
138
138
|
detail: {
|
|
@@ -151,7 +151,7 @@ let CDSAIChatHistoryPanelItemInput = class CDSAIChatHistoryPanelItemInput extend
|
|
|
151
151
|
bubbles: true,
|
|
152
152
|
composed: true,
|
|
153
153
|
};
|
|
154
|
-
const inputCancelEvent = new CustomEvent(
|
|
154
|
+
const inputCancelEvent = new CustomEvent('history-panel-item-input-cancel', init);
|
|
155
155
|
this.dispatchEvent(inputCancelEvent);
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
@@ -167,7 +167,7 @@ let CDSAIChatHistoryPanelItemInput = class CDSAIChatHistoryPanelItemInput extend
|
|
|
167
167
|
itemId: this.itemId,
|
|
168
168
|
},
|
|
169
169
|
};
|
|
170
|
-
const inputSaveEvent = new CustomEvent(
|
|
170
|
+
const inputSaveEvent = new CustomEvent('history-panel-item-input-save', init);
|
|
171
171
|
this.dispatchEvent(inputSaveEvent);
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
@@ -192,7 +192,7 @@ let CDSAIChatHistoryPanelItemInput = class CDSAIChatHistoryPanelItemInput extend
|
|
|
192
192
|
connectedCallback() {
|
|
193
193
|
super.connectedCallback();
|
|
194
194
|
this._initialValue = this.value;
|
|
195
|
-
this.tooltipAlignment = this.tooltipAlignment ??
|
|
195
|
+
this.tooltipAlignment = this.tooltipAlignment ?? 'top';
|
|
196
196
|
}
|
|
197
197
|
firstUpdated() {
|
|
198
198
|
if (this.input) {
|
|
@@ -214,19 +214,18 @@ let CDSAIChatHistoryPanelItemInput = class CDSAIChatHistoryPanelItemInput extend
|
|
|
214
214
|
<input type="text" placeholder="${placeholder}" value="${value}" @input="${handleInput}" @keydown=${handleKeydown} aria-label="${labelText}" ?data-invalid=${invalid}></input>
|
|
215
215
|
<div class="${prefix}--history-panel-item--rename__actions">
|
|
216
216
|
<cds-icon-button class="rename-action--cancel" align="${tooltipAlignment}" size="sm" kind="ghost" @click=${handleActionButtonClick} @keydown=${handleActionButtonKeyDown}>
|
|
217
|
-
${iconLoader(Close16, { slot:
|
|
217
|
+
${iconLoader(Close16, { slot: 'icon' })}
|
|
218
218
|
<span slot="tooltip-content">${cancelLabel}</span>
|
|
219
219
|
</cds-icon-button>
|
|
220
220
|
<cds-icon-button class="rename-action--save" align="${tooltipAlignment}" size="sm" kind="ghost" @click=${handleActionButtonClick} @keydown=${handleActionButtonKeyDown} ?disabled=${!canSave}>
|
|
221
|
-
${iconLoader(Checkmark16, { slot:
|
|
221
|
+
${iconLoader(Checkmark16, { slot: 'icon' })}
|
|
222
222
|
<span slot="tooltip-content">${saveLabel}</span>
|
|
223
223
|
</cds-icon-button>
|
|
224
224
|
</div>
|
|
225
225
|
</div>
|
|
226
226
|
${invalid && invalidMessage
|
|
227
227
|
? html `<div
|
|
228
|
-
class="${prefix}--history-panel-item-input__invalid-message-container"
|
|
229
|
-
>
|
|
228
|
+
class="${prefix}--history-panel-item-input__invalid-message-container">
|
|
230
229
|
<div class="${prefix}__invalid-message-text">
|
|
231
230
|
${invalidMessage}
|
|
232
231
|
</div>
|
|
@@ -258,19 +257,19 @@ __decorate([
|
|
|
258
257
|
property()
|
|
259
258
|
], CDSAIChatHistoryPanelItemInput.prototype, "placeholder", void 0);
|
|
260
259
|
__decorate([
|
|
261
|
-
property({ type: Boolean, attribute:
|
|
260
|
+
property({ type: Boolean, attribute: 'invalid' })
|
|
262
261
|
], CDSAIChatHistoryPanelItemInput.prototype, "invalid", void 0);
|
|
263
262
|
__decorate([
|
|
264
|
-
property({ type: String, attribute:
|
|
263
|
+
property({ type: String, attribute: 'invalid-message' })
|
|
265
264
|
], CDSAIChatHistoryPanelItemInput.prototype, "invalidMessage", void 0);
|
|
266
265
|
__decorate([
|
|
267
|
-
property({ type: String, attribute:
|
|
266
|
+
property({ type: String, attribute: 'item-id' })
|
|
268
267
|
], CDSAIChatHistoryPanelItemInput.prototype, "itemId", void 0);
|
|
269
268
|
__decorate([
|
|
270
|
-
query(
|
|
269
|
+
query('input')
|
|
271
270
|
], CDSAIChatHistoryPanelItemInput.prototype, "input", void 0);
|
|
272
271
|
__decorate([
|
|
273
|
-
HostListener(
|
|
272
|
+
HostListener('focusout')
|
|
274
273
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- https://github.com/carbon-design-system/carbon/issues/20071
|
|
275
274
|
// @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to
|
|
276
275
|
], CDSAIChatHistoryPanelItemInput.prototype, "_handleFocusOut", null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"history-panel-item-input.js","sources":["../../../../src/components/chat-history/src/history-panel-item-input.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AA4BH;;;;;;;;;;;AAWG;AAEH,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,iBAAiB,CAC5D,UAAU,CAAC,UAAU,CAAC,CACvB,CAAA;AAFD,IAAA,WAAA,GAAA;;AAGE;;AAEG;QAEH,IAAA,CAAA,WAAW,GAAG,QAAQ;AAQtB;;AAEG;QAEH,IAAA,CAAA,SAAS,GAAG,MAAM;AAoBlB;;AAEG;QAEH,IAAA,CAAA,OAAO,GAAG,KAAK;AAEf;;AAEG;QAEH,IAAA,CAAA,cAAc,GAAG,EAAE;AAUnB;;AAEG;QACK,IAAA,CAAA,gBAAgB,GAAG,KAAK;AAEhC;;AAEG;QACK,IAAA,CAAA,aAAa,GAAG,KAAK;AAE7B;;AAEG;QACK,IAAA,CAAA,aAAa,GAAG,EAAE;AAuE1B;;AAEG;AACK,QAAA,IAAA,CAAA,wBAAwB,GAAG,CAAC,KAAY,KAAI;AAClD,YAAA,MAAM,MAAM,GAAG,KAAK,CAAC,aAA4B;AACjD,YAAA,IAAI,MAAM,CAAC,SAAS,KAAK,uBAAuB,EAAE;gBAChD,IAAI,CAAC,aAAa,EAAE;YACtB;AAAO,iBAAA,IAAI,MAAM,CAAC,SAAS,KAAK,qBAAqB,EAAE;gBACrD,IAAI,CAAC,WAAW,EAAE;YACpB;AACF,QAAA,CAAC;AAED;;;;AAIG;AACK,QAAA,IAAA,CAAA,cAAc,GAAG,CAAC,KAAoB,KAAI;AAChD,YAAA,QAAQ,KAAK,CAAC,GAAG;AACf,gBAAA,KAAK,QAAQ;oBACX,IAAI,CAAC,aAAa,EAAE;oBACpB;AACF,gBAAA,KAAK,OAAO;AACV,oBAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;wBACjB,IAAI,CAAC,WAAW,EAAE;oBACpB;yBAAO;wBACL,IAAI,CAAC,aAAa,EAAE;oBACtB;oBACA;;AAIN,QAAA,CAAC;AAED;;;;AAIG;AACK,QAAA,IAAA,CAAA,0BAA0B,GAAG,CAAC,KAAoB,KAAI;AAC5D,YAAA,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO,EAAE;gBACzB,KAAK,CAAC,cAAc,EAAE;AACtB,gBAAA,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC;YACtC;AACF,QAAA,CAAC;
|
|
1
|
+
{"version":3,"file":"history-panel-item-input.js","sources":["../../../../src/components/chat-history/src/history-panel-item-input.ts"],"sourcesContent":[null],"names":[],"mappings":"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"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { LitElement } from
|
|
2
|
-
import
|
|
3
|
-
import { CarbonIcon } from
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import './history-panel-item-input.js';
|
|
3
|
+
import { CarbonIcon } from '@carbon/web-components/es/globals/internal/icon-loader-utils.js';
|
|
4
|
+
import '@carbon/web-components/es/components/overflow-menu/index.js';
|
|
5
|
+
import '@carbon/web-components/es/components/icon-button/index.js';
|
|
6
6
|
export interface Action {
|
|
7
7
|
text: string;
|
|
8
8
|
delete?: boolean;
|
|
@@ -62,7 +62,7 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
62
62
|
/**
|
|
63
63
|
* Overflow tooltip label
|
|
64
64
|
*/
|
|
65
|
-
this.overflowMenuLabel =
|
|
65
|
+
this.overflowMenuLabel = 'Options';
|
|
66
66
|
/**
|
|
67
67
|
* `true` to always show the actions menu for this item.
|
|
68
68
|
* When set, the actions menu will be visible without requiring hover or selection.
|
|
@@ -76,7 +76,7 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
76
76
|
/**
|
|
77
77
|
* Error message to display below the rename input when it is invalid.
|
|
78
78
|
*/
|
|
79
|
-
this.renameInvalidMessage =
|
|
79
|
+
this.renameInvalidMessage = '';
|
|
80
80
|
/**
|
|
81
81
|
* `true` if the parent menu is expanded.
|
|
82
82
|
* This is automatically set based on the parent history-panel-menu's expanded attribute.
|
|
@@ -90,7 +90,7 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
90
90
|
* * @param event The event.
|
|
91
91
|
*/
|
|
92
92
|
this._handleMenuTriggerKeyDown = (event) => {
|
|
93
|
-
if (event.key ===
|
|
93
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
94
94
|
this._adjustMenuPosition();
|
|
95
95
|
}
|
|
96
96
|
};
|
|
@@ -99,9 +99,9 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
99
99
|
*/
|
|
100
100
|
this._handleMenuItemClick = (event) => {
|
|
101
101
|
const target = event.currentTarget;
|
|
102
|
-
const menuItemText = target.getAttribute(
|
|
102
|
+
const menuItemText = target.getAttribute('data-action-text') || target.textContent?.trim();
|
|
103
103
|
// Dispatch a custom event with item details
|
|
104
|
-
const itemActionEvent = new CustomEvent(
|
|
104
|
+
const itemActionEvent = new CustomEvent('history-item-menu-action', {
|
|
105
105
|
bubbles: true,
|
|
106
106
|
composed: true,
|
|
107
107
|
detail: {
|
|
@@ -119,7 +119,7 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
119
119
|
* * @param event The event.
|
|
120
120
|
*/
|
|
121
121
|
this._handleMenuItemKeyDown = (event) => {
|
|
122
|
-
if (event.key ===
|
|
122
|
+
if (event.key === 'Enter' || event.key === ' ') {
|
|
123
123
|
event.preventDefault();
|
|
124
124
|
this._handleMenuItemClick(event);
|
|
125
125
|
// Close the overflow menu after handling the action
|
|
@@ -129,23 +129,23 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
// Handle arrow keys
|
|
132
|
-
if (event.key ===
|
|
132
|
+
if (event.key === 'ArrowDown' || event.key === 'ArrowUp') {
|
|
133
133
|
event.preventDefault();
|
|
134
134
|
event.stopPropagation();
|
|
135
|
-
const direction = event.key ===
|
|
135
|
+
const direction = event.key === 'ArrowDown' ? 1 : -1;
|
|
136
136
|
// Find the menu body - the event target is the menu item
|
|
137
137
|
const target = event.target;
|
|
138
|
-
const menuBody = target.closest(
|
|
138
|
+
const menuBody = target.closest('cds-overflow-menu-body');
|
|
139
139
|
if (!menuBody) {
|
|
140
140
|
return;
|
|
141
141
|
}
|
|
142
|
-
const menuItems = Array.from(menuBody.querySelectorAll(
|
|
142
|
+
const menuItems = Array.from(menuBody.querySelectorAll('cds-overflow-menu-item:not([disabled])'));
|
|
143
143
|
if (menuItems.length === 0) {
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
146
|
const currentIndex = menuItems.findIndex((item) => item.contains(document.activeElement) ||
|
|
147
147
|
item === document.activeElement ||
|
|
148
|
-
item.matches(
|
|
148
|
+
item.matches(':focus-within'));
|
|
149
149
|
let nextIndex;
|
|
150
150
|
if (currentIndex === -1) {
|
|
151
151
|
// No item focused, focus first or last
|
|
@@ -165,7 +165,7 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
165
165
|
}
|
|
166
166
|
};
|
|
167
167
|
this._handleKeyDown = (event) => {
|
|
168
|
-
if (event.key ===
|
|
168
|
+
if (event.key === 'Enter') {
|
|
169
169
|
event.preventDefault();
|
|
170
170
|
this._handleClick(event);
|
|
171
171
|
}
|
|
@@ -224,10 +224,10 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
224
224
|
const isOverflowMenuClick = composedPath.some((element) => {
|
|
225
225
|
if (element instanceof HTMLElement) {
|
|
226
226
|
const tagName = element.tagName?.toLowerCase();
|
|
227
|
-
return (tagName?.includes(
|
|
228
|
-
tagName ===
|
|
229
|
-
tagName ===
|
|
230
|
-
tagName ===
|
|
227
|
+
return (tagName?.includes('overflow-menu') ||
|
|
228
|
+
tagName === 'cds-overflow-menu' ||
|
|
229
|
+
tagName === 'cds-overflow-menu-body' ||
|
|
230
|
+
tagName === 'cds-overflow-menu-item');
|
|
231
231
|
}
|
|
232
232
|
return false;
|
|
233
233
|
});
|
|
@@ -235,7 +235,7 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
235
235
|
return;
|
|
236
236
|
}
|
|
237
237
|
// Dispatch a custom event with item details
|
|
238
|
-
const itemActionEvent = new CustomEvent(
|
|
238
|
+
const itemActionEvent = new CustomEvent('history-item-selected', {
|
|
239
239
|
bubbles: true,
|
|
240
240
|
composed: true,
|
|
241
241
|
detail: {
|
|
@@ -250,17 +250,17 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
250
250
|
super.connectedCallback();
|
|
251
251
|
// Inherit show-actions from parent panel if not explicitly set on this item
|
|
252
252
|
const parentPanel = this.closest(`${prefix}-history-panel`);
|
|
253
|
-
if (parentPanel && !this.hasAttribute(
|
|
253
|
+
if (parentPanel && !this.hasAttribute('show-actions')) {
|
|
254
254
|
// Set initial value
|
|
255
|
-
this.showActions = parentPanel.hasAttribute(
|
|
255
|
+
this.showActions = parentPanel.hasAttribute('show-actions');
|
|
256
256
|
// Watch for changes to parent's show-actions attribute
|
|
257
257
|
this._parentObserver = new MutationObserver(() => {
|
|
258
|
-
const parentHasAttribute = parentPanel.hasAttribute(
|
|
258
|
+
const parentHasAttribute = parentPanel.hasAttribute('show-actions');
|
|
259
259
|
this.showActions = parentHasAttribute;
|
|
260
260
|
});
|
|
261
261
|
this._parentObserver.observe(parentPanel, {
|
|
262
262
|
attributes: true,
|
|
263
|
-
attributeFilter: [
|
|
263
|
+
attributeFilter: ['show-actions'],
|
|
264
264
|
});
|
|
265
265
|
}
|
|
266
266
|
// Track parent menu's expanded state
|
|
@@ -271,7 +271,7 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
271
271
|
this._parentMenuToggleListener = ((event) => {
|
|
272
272
|
this.parentMenuExpanded = event.detail.expanded;
|
|
273
273
|
});
|
|
274
|
-
parentMenu.addEventListener(
|
|
274
|
+
parentMenu.addEventListener('cds-side-nav-menu-toggled', this._parentMenuToggleListener);
|
|
275
275
|
}
|
|
276
276
|
}
|
|
277
277
|
disconnectedCallback() {
|
|
@@ -280,7 +280,7 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
280
280
|
this._parentObserver?.disconnect();
|
|
281
281
|
// Remove event listener from parent menu
|
|
282
282
|
if (this._parentMenu && this._parentMenuToggleListener) {
|
|
283
|
-
this._parentMenu.removeEventListener(
|
|
283
|
+
this._parentMenu.removeEventListener('cds-side-nav-menu-toggled', this._parentMenuToggleListener);
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
firstUpdated() {
|
|
@@ -294,17 +294,17 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
294
294
|
updated(changedProperties) {
|
|
295
295
|
super.updated(changedProperties);
|
|
296
296
|
if (this.input) {
|
|
297
|
-
this.input.addEventListener(
|
|
297
|
+
this.input.addEventListener('history-panel-item-input-cancel', () => {
|
|
298
298
|
this.rename = false;
|
|
299
299
|
this.renameInvalid = false;
|
|
300
|
-
this.renameInvalidMessage =
|
|
300
|
+
this.renameInvalidMessage = '';
|
|
301
301
|
});
|
|
302
|
-
this.input.addEventListener(
|
|
302
|
+
this.input.addEventListener('history-panel-item-input-save', (event) => {
|
|
303
303
|
const newName = event.detail.newName;
|
|
304
304
|
this.name = newName;
|
|
305
305
|
this.rename = false;
|
|
306
306
|
this.renameInvalid = false;
|
|
307
|
-
this.renameInvalidMessage =
|
|
307
|
+
this.renameInvalidMessage = '';
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
310
|
}
|
|
@@ -325,11 +325,10 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
325
325
|
align="top-right"
|
|
326
326
|
size="sm"
|
|
327
327
|
@click=${adjustMenuPosition}
|
|
328
|
-
@keydown=${handleMenuTriggerKeyDown}
|
|
329
|
-
>
|
|
328
|
+
@keydown=${handleMenuTriggerKeyDown}>
|
|
330
329
|
${iconLoader(OverflowMenuVertical16, {
|
|
331
330
|
class: `${prefix}--overflow-menu__icon`,
|
|
332
|
-
slot:
|
|
331
|
+
slot: 'icon',
|
|
333
332
|
})}
|
|
334
333
|
<span slot="tooltip-content">${overflowMenuLabel}</span>
|
|
335
334
|
<cds-overflow-menu-body flipped>
|
|
@@ -349,8 +348,7 @@ let CDSAIChatHistoryPanelItem = class CDSAIChatHistoryPanelItem extends HostList
|
|
|
349
348
|
value="${name}"
|
|
350
349
|
item-id="${id}"
|
|
351
350
|
?invalid=${this.renameInvalid}
|
|
352
|
-
invalid-message="${this.renameInvalidMessage}"
|
|
353
|
-
></cds-aichat-history-panel-item-input>
|
|
351
|
+
invalid-message="${this.renameInvalidMessage}"></cds-aichat-history-panel-item-input>
|
|
354
352
|
`}
|
|
355
353
|
`;
|
|
356
354
|
}
|
|
@@ -372,39 +370,39 @@ __decorate([
|
|
|
372
370
|
property({ type: Array })
|
|
373
371
|
], CDSAIChatHistoryPanelItem.prototype, "actions", void 0);
|
|
374
372
|
__decorate([
|
|
375
|
-
property({ type: String, attribute:
|
|
373
|
+
property({ type: String, attribute: 'overflow-menu-label' })
|
|
376
374
|
], CDSAIChatHistoryPanelItem.prototype, "overflowMenuLabel", void 0);
|
|
377
375
|
__decorate([
|
|
378
|
-
property({ type: Boolean, reflect: true, attribute:
|
|
376
|
+
property({ type: Boolean, reflect: true, attribute: 'show-actions' })
|
|
379
377
|
], CDSAIChatHistoryPanelItem.prototype, "showActions", void 0);
|
|
380
378
|
__decorate([
|
|
381
|
-
property({ type: Boolean, reflect: true, attribute:
|
|
379
|
+
property({ type: Boolean, reflect: true, attribute: 'rename-invalid' })
|
|
382
380
|
], CDSAIChatHistoryPanelItem.prototype, "renameInvalid", void 0);
|
|
383
381
|
__decorate([
|
|
384
382
|
property({
|
|
385
383
|
type: String,
|
|
386
384
|
reflect: true,
|
|
387
|
-
attribute:
|
|
385
|
+
attribute: 'rename-invalid-message',
|
|
388
386
|
})
|
|
389
387
|
], CDSAIChatHistoryPanelItem.prototype, "renameInvalidMessage", void 0);
|
|
390
388
|
__decorate([
|
|
391
|
-
property({ type: Boolean, reflect: true, attribute:
|
|
389
|
+
property({ type: Boolean, reflect: true, attribute: 'parent-menu-expanded' })
|
|
392
390
|
], CDSAIChatHistoryPanelItem.prototype, "parentMenuExpanded", void 0);
|
|
393
391
|
__decorate([
|
|
394
392
|
query(`${prefix}-history-panel-item-input`)
|
|
395
393
|
], CDSAIChatHistoryPanelItem.prototype, "input", void 0);
|
|
396
394
|
__decorate([
|
|
397
|
-
query(
|
|
395
|
+
query('cds-overflow-menu')
|
|
398
396
|
], CDSAIChatHistoryPanelItem.prototype, "overflowMenu", void 0);
|
|
399
397
|
__decorate([
|
|
400
|
-
query(
|
|
398
|
+
query('cds-overflow-menu-body')
|
|
401
399
|
], CDSAIChatHistoryPanelItem.prototype, "overflowMenuBody", void 0);
|
|
402
400
|
__decorate([
|
|
403
|
-
HostListener(
|
|
401
|
+
HostListener('click')
|
|
404
402
|
// @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to
|
|
405
403
|
], CDSAIChatHistoryPanelItem.prototype, "_handleClick", null);
|
|
406
404
|
__decorate([
|
|
407
|
-
HostListener(
|
|
405
|
+
HostListener('keydown')
|
|
408
406
|
// @ts-ignore: The decorator refers to this method but TS thinks this method is not referred to
|
|
409
407
|
], CDSAIChatHistoryPanelItem.prototype, "_handleKeyDown", void 0);
|
|
410
408
|
CDSAIChatHistoryPanelItem = __decorate([
|