@carbon/ai-chat-components 0.7.0 → 0.7.1
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/custom-elements.json +1 -1
- package/es/components/code-snippet/src/codemirror/base-setup.js +3 -3
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.js +1 -1
- package/es/components/code-snippet/src/codemirror/content-sync.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/editor-manager.js +1 -1
- package/es/components/code-snippet/src/codemirror/language-controller.d.ts +1 -1
- package/es/components/code-snippet/src/codemirror/theme.js +1 -1
- package/es-custom/components/card/index.d.ts +11 -0
- package/es-custom/components/card/index.js +11 -0
- package/es-custom/components/card/index.js.map +1 -0
- package/es-custom/components/card/src/card-footer.d.ts +43 -0
- package/es-custom/components/card/src/card-footer.js +141 -0
- package/es-custom/components/card/src/card-footer.js.map +1 -0
- package/es-custom/components/card/src/card-footer.scss.js +13 -0
- package/es-custom/components/card/src/card-footer.scss.js.map +1 -0
- package/es-custom/components/card/src/card-steps.d.ts +28 -0
- package/es-custom/components/card/src/card-steps.js +91 -0
- package/es-custom/components/card/src/card-steps.js.map +1 -0
- package/es-custom/components/card/src/card-steps.scss.js +13 -0
- package/es-custom/components/card/src/card-steps.scss.js.map +1 -0
- package/es-custom/components/card/src/card.d.ts +27 -0
- package/es-custom/components/card/src/card.js +65 -0
- package/es-custom/components/card/src/card.js.map +1 -0
- package/es-custom/components/card/src/card.scss.js +13 -0
- package/es-custom/components/card/src/card.scss.js.map +1 -0
- package/es-custom/components/chain-of-thought/defs.d.ts +54 -0
- package/es-custom/components/chain-of-thought/defs.js +38 -0
- package/es-custom/components/chain-of-thought/defs.js.map +1 -0
- package/es-custom/components/chain-of-thought/index.d.ts +10 -0
- package/es-custom/components/chain-of-thought/index.js +13 -0
- package/es-custom/components/chain-of-thought/index.js.map +1 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.d.ts +43 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js +351 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.scss.js +13 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought-step.scss.js.map +1 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +33 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js +107 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.scss.js +13 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought-toggle.scss.js.map +1 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought.d.ts +41 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js +132 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought.js.map +1 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought.scss.js +13 -0
- package/es-custom/components/chain-of-thought/src/chain-of-thought.scss.js.map +1 -0
- package/es-custom/components/chain-of-thought/src/tool-call-data.d.ts +33 -0
- package/es-custom/components/chain-of-thought/src/tool-call-data.js +179 -0
- package/es-custom/components/chain-of-thought/src/tool-call-data.js.map +1 -0
- package/es-custom/components/chain-of-thought/src/tool-call-data.scss.js +13 -0
- package/es-custom/components/chain-of-thought/src/tool-call-data.scss.js.map +1 -0
- package/es-custom/components/chat-button/defs.d.ts +25 -0
- package/es-custom/components/chat-button/defs.js +36 -0
- package/es-custom/components/chat-button/defs.js.map +1 -0
- package/es-custom/components/chat-button/index.d.ts +9 -0
- package/es-custom/components/chat-button/index.js +9 -0
- package/es-custom/components/chat-button/index.js.map +1 -0
- package/es-custom/components/chat-button/src/chat-button.d.ts +40 -0
- package/es-custom/components/chat-button/src/chat-button.js +78 -0
- package/es-custom/components/chat-button/src/chat-button.js.map +1 -0
- package/es-custom/components/chat-button/src/chat-button.scss.js +13 -0
- package/es-custom/components/chat-button/src/chat-button.scss.js.map +1 -0
- package/es-custom/components/code-snippet/index.d.ts +3 -0
- package/es-custom/components/code-snippet/index.js +10 -0
- package/es-custom/components/code-snippet/index.js.map +1 -0
- package/es-custom/components/code-snippet/src/code-snippet-card.d.ts +63 -0
- package/es-custom/components/code-snippet/src/code-snippet-card.js +186 -0
- package/es-custom/components/code-snippet/src/code-snippet-card.js.map +1 -0
- package/es-custom/components/code-snippet/src/code-snippet.d.ts +461 -0
- package/es-custom/components/code-snippet/src/code-snippet.js +678 -0
- package/es-custom/components/code-snippet/src/code-snippet.js.map +1 -0
- package/es-custom/components/code-snippet/src/code-snippet.scss.js +13 -0
- package/es-custom/components/code-snippet/src/code-snippet.scss.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/base-setup.d.ts +12 -0
- package/es-custom/components/code-snippet/src/codemirror/base-setup.js +65 -0
- package/es-custom/components/code-snippet/src/codemirror/base-setup.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.d.ts +12 -0
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js +36 -0
- package/es-custom/components/code-snippet/src/codemirror/codemirror-loader.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +7 -0
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.js +13 -0
- package/es-custom/components/code-snippet/src/codemirror/codemirror-runtime.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/content-sync.d.ts +12 -0
- package/es-custom/components/code-snippet/src/codemirror/content-sync.js +72 -0
- package/es-custom/components/code-snippet/src/codemirror/content-sync.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.d.ts +28 -0
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js +75 -0
- package/es-custom/components/code-snippet/src/codemirror/editor-manager.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/language-controller.d.ts +38 -0
- package/es-custom/components/code-snippet/src/codemirror/language-controller.js +220 -0
- package/es-custom/components/code-snippet/src/codemirror/language-controller.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/language-data.d.ts +6 -0
- package/es-custom/components/code-snippet/src/codemirror/language-data.js +1043 -0
- package/es-custom/components/code-snippet/src/codemirror/language-data.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/language-utils.d.ts +79 -0
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js +219 -0
- package/es-custom/components/code-snippet/src/codemirror/language-utils.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/marker-utils.d.ts +123 -0
- package/es-custom/components/code-snippet/src/codemirror/marker-utils.js +183 -0
- package/es-custom/components/code-snippet/src/codemirror/marker-utils.js.map +1 -0
- package/es-custom/components/code-snippet/src/codemirror/theme.d.ts +54 -0
- package/es-custom/components/code-snippet/src/codemirror/theme.js +320 -0
- package/es-custom/components/code-snippet/src/codemirror/theme.js.map +1 -0
- package/es-custom/components/code-snippet/src/dom-utils.d.ts +24 -0
- package/es-custom/components/code-snippet/src/dom-utils.js +63 -0
- package/es-custom/components/code-snippet/src/dom-utils.js.map +1 -0
- package/es-custom/components/code-snippet/src/formatters.d.ts +4 -0
- package/es-custom/components/code-snippet/src/formatters.js +19 -0
- package/es-custom/components/code-snippet/src/formatters.js.map +1 -0
- package/es-custom/components/code-snippet/src/layout-utils.d.ts +22 -0
- package/es-custom/components/code-snippet/src/layout-utils.js +63 -0
- package/es-custom/components/code-snippet/src/layout-utils.js.map +1 -0
- package/es-custom/components/code-snippet/src/streaming-manager.d.ts +24 -0
- package/es-custom/components/code-snippet/src/streaming-manager.js +120 -0
- package/es-custom/components/code-snippet/src/streaming-manager.js.map +1 -0
- package/es-custom/components/feedback/index.d.ts +4 -0
- package/es-custom/components/feedback/index.js +10 -0
- package/es-custom/components/feedback/index.js.map +1 -0
- package/es-custom/components/feedback/src/feedback-buttons.d.ts +63 -0
- package/es-custom/components/feedback/src/feedback-buttons.js +113 -0
- package/es-custom/components/feedback/src/feedback-buttons.js.map +1 -0
- package/es-custom/components/feedback/src/feedback-buttons.scss.js +13 -0
- package/es-custom/components/feedback/src/feedback-buttons.scss.js.map +1 -0
- package/es-custom/components/feedback/src/feedback-buttons.template.d.ts +4 -0
- package/es-custom/components/feedback/src/feedback-buttons.template.js +79 -0
- package/es-custom/components/feedback/src/feedback-buttons.template.js.map +1 -0
- package/es-custom/components/feedback/src/feedback.d.ts +113 -0
- package/es-custom/components/feedback/src/feedback.js +195 -0
- package/es-custom/components/feedback/src/feedback.js.map +1 -0
- package/es-custom/components/feedback/src/feedback.scss.js +13 -0
- package/es-custom/components/feedback/src/feedback.scss.js.map +1 -0
- package/es-custom/components/feedback/src/feedback.template.d.ts +12 -0
- package/es-custom/components/feedback/src/feedback.template.js +115 -0
- package/es-custom/components/feedback/src/feedback.template.js.map +1 -0
- package/es-custom/components/markdown/index.d.ts +2 -0
- package/es-custom/components/markdown/index.js +9 -0
- package/es-custom/components/markdown/index.js.map +1 -0
- package/es-custom/components/markdown/src/markdown-renderer.d.ts +66 -0
- package/es-custom/components/markdown/src/markdown-renderer.js +359 -0
- package/es-custom/components/markdown/src/markdown-renderer.js.map +1 -0
- package/es-custom/components/markdown/src/markdown-token-tree.d.ts +32 -0
- package/es-custom/components/markdown/src/markdown-token-tree.js +180 -0
- package/es-custom/components/markdown/src/markdown-token-tree.js.map +1 -0
- package/es-custom/components/markdown/src/markdown.d.ts +72 -0
- package/es-custom/components/markdown/src/markdown.js +342 -0
- package/es-custom/components/markdown/src/markdown.js.map +1 -0
- package/es-custom/components/markdown/src/markdown.scss.js +13 -0
- package/es-custom/components/markdown/src/markdown.scss.js.map +1 -0
- package/es-custom/components/markdown/src/markdown.template.d.ts +6 -0
- package/es-custom/components/markdown/src/markdown.template.js +29 -0
- package/es-custom/components/markdown/src/markdown.template.js.map +1 -0
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.d.ts +7 -0
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js +84 -0
- package/es-custom/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -0
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.d.ts +7 -0
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.js +59 -0
- package/es-custom/components/markdown/src/plugins/markdown-it-highlight.js.map +1 -0
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.d.ts +12 -0
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js +73 -0
- package/es-custom/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/core.d.ts +26 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/core.js +330 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/core.js.map +1 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.d.ts +6 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js +63 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js.map +1 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/code.d.ts +6 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/code.js +43 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/code.js.map +1 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/index.d.ts +5 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/index.js +55 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/index.js.map +1 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/inline.d.ts +19 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js +210 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js.map +1 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/lists.d.ts +13 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js +156 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js.map +1 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/tables.d.ts +13 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js +216 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js.map +1 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/types.d.ts +34 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/types.js +8 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/types.js.map +1 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/utils.d.ts +25 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/utils.js +62 -0
- package/es-custom/components/markdown/src/plugins/markdownItAttrs/utils.js.map +1 -0
- package/es-custom/components/markdown/src/utils/html-helpers.d.ts +2 -0
- package/es-custom/components/markdown/src/utils/html-helpers.js +204 -0
- package/es-custom/components/markdown/src/utils/html-helpers.js.map +1 -0
- package/es-custom/components/markdown/src/utils/table-helpers.d.ts +31 -0
- package/es-custom/components/markdown/src/utils/table-helpers.js +106 -0
- package/es-custom/components/markdown/src/utils/table-helpers.js.map +1 -0
- package/es-custom/components/markdown/src/utils.d.ts +8 -0
- package/es-custom/components/markdown/src/utils.js +31 -0
- package/es-custom/components/markdown/src/utils.js.map +1 -0
- package/es-custom/components/processing/index.d.ts +1 -0
- package/es-custom/components/processing/index.js +9 -0
- package/es-custom/components/processing/index.js.map +1 -0
- package/es-custom/components/processing/src/processing.d.ts +16 -0
- package/es-custom/components/processing/src/processing.js +59 -0
- package/es-custom/components/processing/src/processing.js.map +1 -0
- package/es-custom/components/processing/src/processing.scss.js +13 -0
- package/es-custom/components/processing/src/processing.scss.js.map +1 -0
- package/es-custom/components/reasoning-steps/index.d.ts +4 -0
- package/es-custom/components/reasoning-steps/index.js +11 -0
- package/es-custom/components/reasoning-steps/index.js.map +1 -0
- package/es-custom/components/reasoning-steps/src/reasoning-step.d.ts +33 -0
- package/es-custom/components/reasoning-steps/src/reasoning-step.js +251 -0
- package/es-custom/components/reasoning-steps/src/reasoning-step.js.map +1 -0
- package/es-custom/components/reasoning-steps/src/reasoning-step.scss.js +13 -0
- package/es-custom/components/reasoning-steps/src/reasoning-step.scss.js.map +1 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +36 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js +81 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +13 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.scss.js.map +1 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.template.d.ts +3 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.template.js +43 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps-toggle.template.js.map +1 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps.d.ts +19 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js +112 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps.js.map +1 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps.scss.js +13 -0
- package/es-custom/components/reasoning-steps/src/reasoning-steps.scss.js.map +1 -0
- package/es-custom/components/table/index.d.ts +3 -0
- package/es-custom/components/table/index.js +9 -0
- package/es-custom/components/table/index.js.map +1 -0
- package/es-custom/components/table/src/table-loader.d.ts +4 -0
- package/es-custom/components/table/src/table-loader.js +28 -0
- package/es-custom/components/table/src/table-loader.js.map +1 -0
- package/es-custom/components/table/src/table-pagination.template.d.ts +27 -0
- package/es-custom/components/table/src/table-pagination.template.js +55 -0
- package/es-custom/components/table/src/table-pagination.template.js.map +1 -0
- package/es-custom/components/table/src/table-runtime.d.ts +2 -0
- package/es-custom/components/table/src/table-runtime.js +10 -0
- package/es-custom/components/table/src/table-runtime.js.map +1 -0
- package/es-custom/components/table/src/table-skeleton.template.d.ts +6 -0
- package/es-custom/components/table/src/table-skeleton.template.js +34 -0
- package/es-custom/components/table/src/table-skeleton.template.js.map +1 -0
- package/es-custom/components/table/src/table.d.ts +184 -0
- package/es-custom/components/table/src/table.js +543 -0
- package/es-custom/components/table/src/table.js.map +1 -0
- package/es-custom/components/table/src/table.scss.js +13 -0
- package/es-custom/components/table/src/table.scss.js.map +1 -0
- package/es-custom/components/table/src/table.template.d.ts +10 -0
- package/es-custom/components/table/src/table.template.js +89 -0
- package/es-custom/components/table/src/table.template.js.map +1 -0
- package/es-custom/components/table/src/types.d.ts +13 -0
- package/es-custom/components/table/src/types.js +8 -0
- package/es-custom/components/table/src/types.js.map +1 -0
- package/es-custom/components/toolbar/index.d.ts +1 -0
- package/es-custom/components/toolbar/index.js +9 -0
- package/es-custom/components/toolbar/index.js.map +1 -0
- package/es-custom/components/toolbar/src/toolbar.d.ts +38 -0
- package/es-custom/components/toolbar/src/toolbar.js +191 -0
- package/es-custom/components/toolbar/src/toolbar.js.map +1 -0
- package/es-custom/components/toolbar/src/toolbar.scss.js +13 -0
- package/es-custom/components/toolbar/src/toolbar.scss.js.map +1 -0
- package/es-custom/components/workspace-shell/index.d.ts +4 -0
- package/es-custom/components/workspace-shell/index.js +12 -0
- package/es-custom/components/workspace-shell/index.js.map +1 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-body.d.ts +17 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js +50 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-body.js.map +1 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.d.ts +40 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js +144 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.js.map +1 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.scss.js +13 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-footer.scss.js.map +1 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-header.d.ts +28 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js +78 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-header.js.map +1 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-header.scss.js +13 -0
- package/es-custom/components/workspace-shell/src/workspace-shell-header.scss.js.map +1 -0
- package/es-custom/components/workspace-shell/src/workspace-shell.d.ts +19 -0
- package/es-custom/components/workspace-shell/src/workspace-shell.js +56 -0
- package/es-custom/components/workspace-shell/src/workspace-shell.js.map +1 -0
- package/es-custom/components/workspace-shell/src/workspace-shell.scss.js +13 -0
- package/es-custom/components/workspace-shell/src/workspace-shell.scss.js.map +1 -0
- package/es-custom/globals/decorators/carbon-element.d.ts +37 -0
- package/es-custom/globals/decorators/carbon-element.js +68 -0
- package/es-custom/globals/decorators/carbon-element.js.map +1 -0
- package/es-custom/globals/decorators/index.d.ts +1 -0
- package/es-custom/globals/decorators/index.js +9 -0
- package/es-custom/globals/decorators/index.js.map +1 -0
- package/es-custom/globals/settings.d.ts +2 -0
- package/es-custom/globals/settings.js +20 -0
- package/es-custom/globals/settings.js.map +1 -0
- package/es-custom/globals/utils/uuid.d.ts +5 -0
- package/es-custom/globals/utils/uuid.js +32 -0
- package/es-custom/globals/utils/uuid.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
- package/es-custom/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
- package/es-custom/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js +11 -0
- package/es-custom/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js.map +1 -0
- package/es-custom/react/ai-label.d.ts +4 -0
- package/es-custom/react/ai-label.js +28 -0
- package/es-custom/react/ai-label.js.map +1 -0
- package/es-custom/react/button.d.ts +6 -0
- package/es-custom/react/button.js +29 -0
- package/es-custom/react/button.js.map +1 -0
- package/es-custom/react/card.d.ts +9 -0
- package/es-custom/react/card.js +43 -0
- package/es-custom/react/card.js.map +1 -0
- package/es-custom/react/chain-of-thought-step.d.ts +4 -0
- package/es-custom/react/chain-of-thought-step.js +32 -0
- package/es-custom/react/chain-of-thought-step.js.map +1 -0
- package/es-custom/react/chain-of-thought-toggle.d.ts +6 -0
- package/es-custom/react/chain-of-thought-toggle.js +31 -0
- package/es-custom/react/chain-of-thought-toggle.js.map +1 -0
- package/es-custom/react/chain-of-thought.d.ts +7 -0
- package/es-custom/react/chain-of-thought.js +33 -0
- package/es-custom/react/chain-of-thought.js.map +1 -0
- package/es-custom/react/chat-button.d.ts +13 -0
- package/es-custom/react/chat-button.js +30 -0
- package/es-custom/react/chat-button.js.map +1 -0
- package/es-custom/react/code-snippet-card.d.ts +4 -0
- package/es-custom/react/code-snippet-card.js +31 -0
- package/es-custom/react/code-snippet-card.js.map +1 -0
- package/es-custom/react/code-snippet.d.ts +4 -0
- package/es-custom/react/code-snippet.js +31 -0
- package/es-custom/react/code-snippet.js.map +1 -0
- package/es-custom/react/content-switcher.d.ts +7 -0
- package/es-custom/react/content-switcher.js +37 -0
- package/es-custom/react/content-switcher.js.map +1 -0
- package/es-custom/react/feedback-buttons.d.ts +4 -0
- package/es-custom/react/feedback-buttons.js +31 -0
- package/es-custom/react/feedback-buttons.js.map +1 -0
- package/es-custom/react/feedback.d.ts +6 -0
- package/es-custom/react/feedback.js +32 -0
- package/es-custom/react/feedback.js.map +1 -0
- package/es-custom/react/icon-button.d.ts +4 -0
- package/es-custom/react/icon-button.js +28 -0
- package/es-custom/react/icon-button.js.map +1 -0
- package/es-custom/react/icon.d.ts +4 -0
- package/es-custom/react/icon.js +28 -0
- package/es-custom/react/icon.js.map +1 -0
- package/es-custom/react/inline-notification.d.ts +4 -0
- package/es-custom/react/inline-notification.js +28 -0
- package/es-custom/react/inline-notification.js.map +1 -0
- package/es-custom/react/markdown.d.ts +4 -0
- package/es-custom/react/markdown.js +28 -0
- package/es-custom/react/markdown.js.map +1 -0
- package/es-custom/react/overflow-menu.d.ts +9 -0
- package/es-custom/react/overflow-menu.js +40 -0
- package/es-custom/react/overflow-menu.js.map +1 -0
- package/es-custom/react/processing.d.ts +4 -0
- package/es-custom/react/processing.js +28 -0
- package/es-custom/react/processing.js.map +1 -0
- package/es-custom/react/reasoning-step.d.ts +4 -0
- package/es-custom/react/reasoning-step.js +32 -0
- package/es-custom/react/reasoning-step.js.map +1 -0
- package/es-custom/react/reasoning-steps-toggle.d.ts +6 -0
- package/es-custom/react/reasoning-steps-toggle.js +31 -0
- package/es-custom/react/reasoning-steps-toggle.js.map +1 -0
- package/es-custom/react/reasoning-steps.d.ts +4 -0
- package/es-custom/react/reasoning-steps.js +28 -0
- package/es-custom/react/reasoning-steps.js.map +1 -0
- package/es-custom/react/tag.d.ts +4 -0
- package/es-custom/react/tag.js +28 -0
- package/es-custom/react/tag.js.map +1 -0
- package/es-custom/react/tile.d.ts +7 -0
- package/es-custom/react/tile.js +34 -0
- package/es-custom/react/tile.js.map +1 -0
- package/es-custom/react/tool-call-data.d.ts +4 -0
- package/es-custom/react/tool-call-data.js +28 -0
- package/es-custom/react/tool-call-data.js.map +1 -0
- package/es-custom/react/toolbar.d.ts +4 -0
- package/es-custom/react/toolbar.js +28 -0
- package/es-custom/react/toolbar.js.map +1 -0
- package/es-custom/react/utils/withWebComponentBridge.d.ts +15 -0
- package/es-custom/react/utils/withWebComponentBridge.js +95 -0
- package/es-custom/react/utils/withWebComponentBridge.js.map +1 -0
- package/es-custom/react/workspace-shell.d.ts +11 -0
- package/es-custom/react/workspace-shell.js +49 -0
- package/es-custom/react/workspace-shell.js.map +1 -0
- package/es-custom/testing/load-all-lazy-deps.d.ts +10 -0
- package/es-custom/testing/load-all-lazy-deps.js +30 -0
- package/es-custom/testing/load-all-lazy-deps.js.map +1 -0
- package/package.json +8 -6
- package/dist/16-C9Ph5740.js +0 -91
- package/dist/16-Dw0Ci4Fd.js +0 -91
- package/dist/16-FH37w-8T.js +0 -91
- package/dist/apl-ugs9-gp6.js +0 -91
- package/dist/asciiarmor-BsIYfA6P.js +0 -91
- package/dist/asn1-HkF5z2_O.js +0 -91
- package/dist/asterisk-CAIjKZq6.js +0 -91
- package/dist/button-Bc3tNCYN.js +0 -157
- package/dist/button-skeleton-DH50p4bH.js +0 -131
- package/dist/carbon-element-C38isbCs.js +0 -91
- package/dist/card.min.js +0 -193
- package/dist/chain-of-thought.min.js +0 -294
- package/dist/chat-button.min.js +0 -107
- package/dist/checkbox-skeleton-CS3inOnf.js +0 -166
- package/dist/class-map-BE4cOc2X.js +0 -128
- package/dist/clike-BIFB3b_k.js +0 -91
- package/dist/clojure-CXNiCqqB.js +0 -91
- package/dist/cmake-CR9NkLsk.js +0 -91
- package/dist/cobol-Ck90O_9v.js +0 -91
- package/dist/code-snippet.min.js +0 -91
- package/dist/codemirror-runtime-D8qZsrKE.js +0 -173
- package/dist/coffeescript-C0nvD2I-.js +0 -91
- package/dist/collection-helpers-BqatNkHh.js +0 -91
- package/dist/commonlisp-BROP4IME.js +0 -91
- package/dist/crystal-D6K96_U-.js +0 -91
- package/dist/css-CdH_tvvW.js +0 -91
- package/dist/cypher-CtHiEXsa.js +0 -91
- package/dist/d-Dcs18F9P.js +0 -91
- package/dist/diff-Bp64yuxL.js +0 -91
- package/dist/dockerfile-1DOwDLks.js +0 -91
- package/dist/dtd-DBKuh-AW.js +0 -91
- package/dist/dylan-ZUYgifRI.js +0 -91
- package/dist/ebnf-CEelJcGq.js +0 -91
- package/dist/ecl-CphVX9Cq.js +0 -91
- package/dist/eiffel-BQPneqZH.js +0 -91
- package/dist/elm-DSPAgqOt.js +0 -91
- package/dist/erlang-D_rMo9WA.js +0 -91
- package/dist/factor-CMTQjKbR.js +0 -91
- package/dist/fcl-BX3Rw6-t.js +0 -91
- package/dist/feedback.min.js +0 -281
- package/dist/forth-BGhjMNd3.js +0 -91
- package/dist/fortran-AEBjaYMh.js +0 -91
- package/dist/gas-DZXAjJGb.js +0 -91
- package/dist/gherkin-DxJx7fVg.js +0 -91
- package/dist/groovy-dfLbXlDy.js +0 -91
- package/dist/haskell-DyZ9y283.js +0 -91
- package/dist/haxe-D47ScCJn.js +0 -91
- package/dist/http-CQ5YdFwi.js +0 -91
- package/dist/icon-button-jLtiwRb4.js +0 -143
- package/dist/icon-loader-BKTEuybf.js +0 -101
- package/dist/idl-DMLd56tu.js +0 -91
- package/dist/if-defined-Dk7gHH6I.js +0 -96
- package/dist/index--CctdwCC.js +0 -91
- package/dist/index--ktPsmev.js +0 -168
- package/dist/index-BHiWR-3B.js +0 -91
- package/dist/index-BI8bnAEd.js +0 -91
- package/dist/index-BbGF94cg.js +0 -91
- package/dist/index-BnQBLEPx.js +0 -91
- package/dist/index-BsUuLdXD.js +0 -91
- package/dist/index-C2xfmTPp.js +0 -91
- package/dist/index-C3BN0MYy.js +0 -91
- package/dist/index-CD4di8Cf.js +0 -91
- package/dist/index-CVyUt3LQ.js +0 -91
- package/dist/index-Cg7m4sg1.js +0 -91
- package/dist/index-ClimwzxW.js +0 -91
- package/dist/index-CrevYuI-.js +0 -91
- package/dist/index-D5kcnwm2.js +0 -91
- package/dist/index-DCbIO0Hl.js +0 -91
- package/dist/index-Db-BDibx.js +0 -91
- package/dist/index-DmpHBiKi.js +0 -91
- package/dist/index-DzPjFlOn.js +0 -91
- package/dist/index-MgVf_8OP.js +0 -91
- package/dist/index-WHfhssUV.js +0 -91
- package/dist/index-rdaURAlB.js +0 -91
- package/dist/index-tFrMu4B_.js +0 -278
- package/dist/index-yLnmvqXN.js +0 -91
- package/dist/javascript-CB_5CYW7.js +0 -91
- package/dist/julia-DmOIk9mc.js +0 -91
- package/dist/livescript-BkgLC0lL.js +0 -91
- package/dist/loading-icon-CmnM4I_H.js +0 -106
- package/dist/lua-CWM_r9JC.js +0 -91
- package/dist/markdown.min.js +0 -298
- package/dist/mathematica-BSatVfC1.js +0 -91
- package/dist/mbox-4am1R8hd.js +0 -91
- package/dist/mirc-pdtTGW9l.js +0 -91
- package/dist/mllike-C0YFsE1U.js +0 -91
- package/dist/modelica-DVTWSHR-.js +0 -91
- package/dist/mscgen-ByAgrjGx.js +0 -91
- package/dist/mumps-X97p0_h_.js +0 -91
- package/dist/nginx-CqUadVPT.js +0 -91
- package/dist/nsis-Urp7BrWk.js +0 -91
- package/dist/ntriples-CToxeTsT.js +0 -91
- package/dist/octave-Dc4mpp8A.js +0 -91
- package/dist/oz-DX2Pk_mI.js +0 -91
- package/dist/pascal-B9GL_nqz.js +0 -91
- package/dist/perl-BvZFpXKD.js +0 -91
- package/dist/pig-BxFxDHBk.js +0 -91
- package/dist/powershell-CwCLRM7O.js +0 -91
- package/dist/processing.min.js +0 -105
- package/dist/properties-3nFD-Vnh.js +0 -91
- package/dist/protobuf-RqEyuWlw.js +0 -91
- package/dist/pug-1L6dEUb3.js +0 -91
- package/dist/puppet-C-gxR1ON.js +0 -91
- package/dist/python-BSbm1-vO.js +0 -91
- package/dist/q-4yAbTbi2.js +0 -91
- package/dist/r-BxfoMXlJ.js +0 -91
- package/dist/reasoning-steps.min.js +0 -202
- package/dist/rpm-DOp6MTEb.js +0 -91
- package/dist/ruby-DD6QCAKT.js +0 -91
- package/dist/sas-Cb-4sFOe.js +0 -91
- package/dist/scheme-CZsCl8E_.js +0 -91
- package/dist/settings-e2aItLYn.js +0 -99
- package/dist/shell-Bba6ETw_.js +0 -91
- package/dist/sieve-DZz1QovM.js +0 -91
- package/dist/simple-mode-DAyX7kcU.js +0 -91
- package/dist/smalltalk-BVigbKw-.js +0 -91
- package/dist/solr-BRh8QRgo.js +0 -91
- package/dist/sparql-DPq9GGqu.js +0 -91
- package/dist/spreadsheet-DWXWohNi.js +0 -91
- package/dist/sql-HgNux1Fi.js +0 -91
- package/dist/state-Bv4FM_9B.js +0 -96
- package/dist/stex-DB306cTl.js +0 -91
- package/dist/stylus-BVbE3BhF.js +0 -91
- package/dist/swift-k2z0otOi.js +0 -91
- package/dist/sync-D3qEZKNY.js +0 -91
- package/dist/table-runtime-Q-ak_IZE.js +0 -510
- package/dist/table.min.js +0 -91
- package/dist/tcl-BJwoeXra.js +0 -91
- package/dist/text-input-BlCqTf_p.js +0 -158
- package/dist/textile-9DAvWy-Y.js +0 -91
- package/dist/throttle-Bst9TagJ.js +0 -91
- package/dist/tiddlywiki-CDJdAycW.js +0 -91
- package/dist/tiki-Dlg5DFIR.js +0 -91
- package/dist/toml-DGqt7oU6.js +0 -91
- package/dist/toolbar.min.js +0 -178
- package/dist/troff-xJv1Y_X_.js +0 -91
- package/dist/ttcn-cfg-CrKiCUlI.js +0 -91
- package/dist/ttcn-dBogkyiy.js +0 -91
- package/dist/turtle-qtDt5E0f.js +0 -91
- package/dist/vb-h5NatM2n.js +0 -91
- package/dist/vbscript-BnXXn72l.js +0 -91
- package/dist/velocity-C_ZqzMiT.js +0 -91
- package/dist/verilog-s8oM517K.js +0 -91
- package/dist/vhdl-BgZd0MBH.js +0 -91
- package/dist/webidl-CDRn4bGa.js +0 -91
- package/dist/workspace-shell.min.js +0 -157
- package/dist/xquery-DTfjYCD7.js +0 -91
- package/dist/yacas-DxV9-gAO.js +0 -91
- package/dist/z80-PFwavMao.js +0 -91
- package/es/node_modules/@codemirror/autocomplete/dist/index.js +0 -258
- package/es/node_modules/@codemirror/autocomplete/dist/index.js.map +0 -1
- package/es/node_modules/@codemirror/commands/dist/index.js +0 -1140
- package/es/node_modules/@codemirror/commands/dist/index.js.map +0 -1
- package/es/node_modules/@codemirror/lint/dist/index.js +0 -636
- package/es/node_modules/@codemirror/lint/dist/index.js.map +0 -1
- package/es/node_modules/@lezer/common/dist/index.js +0 -253
- package/es/node_modules/@lezer/common/dist/index.js.map +0 -1
- package/es/node_modules/crelt/index.js +0 -37
- package/es/node_modules/crelt/index.js.map +0 -1
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { __decorate } from 'tslib';
|
|
9
|
+
import { LitElement, html } from 'lit';
|
|
10
|
+
import { property } from 'lit/decorators.js';
|
|
11
|
+
import styles from './reasoning-steps.scss.js';
|
|
12
|
+
import prefix from '../../../globals/settings.js';
|
|
13
|
+
import { carbonElement } from '../../../globals/decorators/carbon-element.js';
|
|
14
|
+
|
|
15
|
+
/*
|
|
16
|
+
* Copyright IBM Corp. 2025
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*
|
|
21
|
+
* @license
|
|
22
|
+
*/
|
|
23
|
+
const baseClass = `${prefix}--reasoning-steps`;
|
|
24
|
+
const stepSelector = `${prefix}-reasoning-step`;
|
|
25
|
+
let CDSAIChatReasoningSteps = class CDSAIChatReasoningSteps extends LitElement {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
this.open = false;
|
|
29
|
+
this.controlled = false;
|
|
30
|
+
}
|
|
31
|
+
connectedCallback() {
|
|
32
|
+
if (!this.hasAttribute("role")) {
|
|
33
|
+
this.setAttribute("role", "list");
|
|
34
|
+
}
|
|
35
|
+
super.connectedCallback();
|
|
36
|
+
}
|
|
37
|
+
updated(changedProperties) {
|
|
38
|
+
if (changedProperties.has("controlled")) {
|
|
39
|
+
this.propagateControlled();
|
|
40
|
+
}
|
|
41
|
+
if (changedProperties.has("open")) {
|
|
42
|
+
this.propagateOpen();
|
|
43
|
+
}
|
|
44
|
+
this.markLastVisibleStep();
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
get steps() {
|
|
50
|
+
return this.querySelectorAll(stepSelector);
|
|
51
|
+
}
|
|
52
|
+
propagateOpen() {
|
|
53
|
+
this.steps.forEach((step) => {
|
|
54
|
+
if (this.open) {
|
|
55
|
+
step.removeAttribute("inert");
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
step.setAttribute("inert", "");
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
propagateControlled() {
|
|
63
|
+
this.steps.forEach((step) => {
|
|
64
|
+
if (this.controlled) {
|
|
65
|
+
step.setAttribute("data-parent-controlled", "");
|
|
66
|
+
step.setAttribute("controlled", "");
|
|
67
|
+
}
|
|
68
|
+
else if (step.hasAttribute("data-parent-controlled")) {
|
|
69
|
+
step.removeAttribute("data-parent-controlled");
|
|
70
|
+
step.removeAttribute("controlled");
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
markLastVisibleStep() {
|
|
75
|
+
const steps = Array.from(this.steps);
|
|
76
|
+
steps.forEach((step) => {
|
|
77
|
+
step.removeAttribute("data-last-item");
|
|
78
|
+
});
|
|
79
|
+
const lastVisible = steps.reverse().find((step) => !step.hidden);
|
|
80
|
+
if (lastVisible) {
|
|
81
|
+
lastVisible.setAttribute("data-last-item", "");
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
render() {
|
|
85
|
+
return html `
|
|
86
|
+
<div class=${baseClass}>
|
|
87
|
+
<div
|
|
88
|
+
class="${baseClass}__wrapper"
|
|
89
|
+
aria-hidden=${this.open ? "false" : "true"}
|
|
90
|
+
>
|
|
91
|
+
<div class="${baseClass}__body">
|
|
92
|
+
<slot></slot>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
`;
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
CDSAIChatReasoningSteps.styles = styles;
|
|
100
|
+
__decorate([
|
|
101
|
+
property({ type: Boolean, attribute: "open", reflect: true })
|
|
102
|
+
], CDSAIChatReasoningSteps.prototype, "open", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
property({ type: Boolean, attribute: "controlled", reflect: true })
|
|
105
|
+
], CDSAIChatReasoningSteps.prototype, "controlled", void 0);
|
|
106
|
+
CDSAIChatReasoningSteps = __decorate([
|
|
107
|
+
carbonElement("cds-aichat-reasoning-steps")
|
|
108
|
+
], CDSAIChatReasoningSteps);
|
|
109
|
+
var CDSAIChatReasoningSteps$1 = CDSAIChatReasoningSteps;
|
|
110
|
+
|
|
111
|
+
export { CDSAIChatReasoningSteps, CDSAIChatReasoningSteps$1 as default };
|
|
112
|
+
//# sourceMappingURL=reasoning-steps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reasoning-steps.js","sources":["../../../../src/components/reasoning-steps/src/reasoning-steps.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAUH,MAAM,SAAS,GAAG,CAAA,EAAG,MAAM,mBAAmB;AAC9C,MAAM,YAAY,GAAG,CAAA,EAAG,MAAM,iBAAiB;AAG/C,IAAM,uBAAuB,GAA7B,MAAM,uBAAwB,SAAQ,UAAU,CAAA;AAAhD,IAAA,WAAA,GAAA;;QAIE,IAAA,CAAA,IAAI,GAAG,KAAK;QAGZ,IAAA,CAAA,UAAU,GAAG,KAAK;IA+EpB;IA7EE,iBAAiB,GAAA;QACf,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,EAAE;AAC9B,YAAA,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC;QACnC;QAEA,KAAK,CAAC,iBAAiB,EAAE;IAC3B;AAEA,IAAA,OAAO,CAAC,iBAA4C,EAAA;AAClD,QAAA,IAAI,iBAAiB,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE;YACvC,IAAI,CAAC,mBAAmB,EAAE;QAC5B;AAEA,QAAA,IAAI,iBAAiB,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;YACjC,IAAI,CAAC,aAAa,EAAE;QACtB;QAEA,IAAI,CAAC,mBAAmB,EAAE;IAC5B;AAEA;;AAEG;AACH,IAAA,IAAI,KAAK,GAAA;AACP,QAAA,OAAO,IAAI,CAAC,gBAAgB,CAAC,YAAY,CAAC;IAC5C;IAEA,aAAa,GAAA;QACX,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AAC1B,YAAA,IAAI,IAAI,CAAC,IAAI,EAAE;AACb,gBAAA,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC;YAC/B;iBAAO;AACL,gBAAA,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE,EAAE,CAAC;YAChC;AACF,QAAA,CAAC,CAAC;IACJ;IAEA,mBAAmB,GAAA;QACjB,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AAC1B,YAAA,IAAI,IAAI,CAAC,UAAU,EAAE;AACnB,gBAAA,IAAI,CAAC,YAAY,CAAC,wBAAwB,EAAE,EAAE,CAAC;AAC/C,gBAAA,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE,EAAE,CAAC;YACrC;AAAO,iBAAA,IAAI,IAAI,CAAC,YAAY,CAAC,wBAAwB,CAAC,EAAE;AACtD,gBAAA,IAAI,CAAC,eAAe,CAAC,wBAAwB,CAAC;AAC9C,gBAAA,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC;YACpC;AACF,QAAA,CAAC,CAAC;IACJ;IAEA,mBAAmB,GAAA;QACjB,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;AAEpC,QAAA,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AACrB,YAAA,IAAI,CAAC,eAAe,CAAC,gBAAgB,CAAC;AACxC,QAAA,CAAC,CAAC;AAEF,QAAA,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC;QAEhE,IAAI,WAAW,EAAE;AACf,YAAA,WAAW,CAAC,YAAY,CAAC,gBAAgB,EAAE,EAAE,CAAC;QAChD;IACF;IAEA,MAAM,GAAA;AACJ,QAAA,OAAO,IAAI,CAAA;mBACI,SAAS,CAAA;;mBAET,SAAS,CAAA;wBACJ,IAAI,CAAC,IAAI,GAAG,OAAO,GAAG,MAAM;;wBAE5B,SAAS,CAAA;;;;;KAK5B;IACH;;AApFO,uBAAA,CAAA,MAAM,GAAG,MAAH;AAGb,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;AAChD,CAAA,EAAA,uBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAGb,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,IAAI,EAAE;AAChD,CAAA,EAAA,uBAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAPf,uBAAuB,GAAA,UAAA,CAAA;IAD5B,aAAa,CAAC,4BAA4B;AACrC,CAAA,EAAA,uBAAuB,CAsF5B;AASD,gCAAe,uBAAuB;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { css } from 'lit';
|
|
9
|
+
|
|
10
|
+
var styles = css([":host{display:block;inline-size:100%}.cds-aichat--reasoning-steps__wrapper{display:grid;grid-template-rows:0fr;opacity:0;overflow:hidden;padding-inline-start:0;pointer-events:none;transition:grid-template-rows .11s cubic-bezier(0,0,.38,.9),padding-inline-start .11s cubic-bezier(0,0,.38,.9),opacity .11s cubic-bezier(0,0,.38,.9)}@media screen and (prefers-reduced-motion:reduce){.cds-aichat--reasoning-steps__wrapper{transition:none}}:host([open]) .cds-aichat--reasoning-steps__wrapper{border-inline-start:1px solid var(--cds-custom-border-subtle-02,#e0e0e0);grid-template-rows:1fr;opacity:1;overflow:visible;padding-inline-start:.25rem;pointer-events:auto}.cds-aichat--reasoning-steps__body{display:flex;flex-direction:column;gap:.5rem;min-block-size:0;overflow:hidden;padding:.5rem}"]);
|
|
11
|
+
|
|
12
|
+
export { styles as default };
|
|
13
|
+
//# sourceMappingURL=reasoning-steps.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reasoning-steps.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright IBM Corp. 2025
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*
|
|
14
|
+
* @license
|
|
15
|
+
*/
|
|
16
|
+
let tableRuntimePromise = null;
|
|
17
|
+
function loadTableRuntime() {
|
|
18
|
+
if (!tableRuntimePromise) {
|
|
19
|
+
tableRuntimePromise = import('./table-runtime.js');
|
|
20
|
+
}
|
|
21
|
+
return tableRuntimePromise;
|
|
22
|
+
}
|
|
23
|
+
function loadTableDeps() {
|
|
24
|
+
return loadTableRuntime();
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { loadTableDeps, loadTableRuntime };
|
|
28
|
+
//# sourceMappingURL=table-loader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-loader.js","sources":["../../../../src/components/table/src/table-loader.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;AAAA;;;;;;;AAOG;AAIH,IAAI,mBAAmB,GAAuC,IAAI;SAElD,gBAAgB,GAAA;IAC9B,IAAI,CAAC,mBAAmB,EAAE;AACxB,QAAA,mBAAmB,GAAG,OAAO,oBAAoB,CAAC;IACpD;AACA,IAAA,OAAO,mBAAmB;AAC5B;SAEgB,aAAa,GAAA;IAC3B,OAAO,gBAAgB,EAAE;AAC3B;;;;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "@carbon/web-components/es-custom/components/pagination/index.js";
|
|
2
|
+
import "@carbon/web-components/es-custom/components/select/index.js";
|
|
3
|
+
import { TableRowContent } from "./table.js";
|
|
4
|
+
interface TablePaginationProps {
|
|
5
|
+
_currentPageSize: number;
|
|
6
|
+
_currentPageNumber: number;
|
|
7
|
+
_filterVisibleRowIDs: Set<string>;
|
|
8
|
+
rows: TableRowContent[];
|
|
9
|
+
previousPageText: string;
|
|
10
|
+
nextPageText: string;
|
|
11
|
+
itemsPerPageText: string;
|
|
12
|
+
getPaginationSupplementalText?: ({ count }: {
|
|
13
|
+
count: number;
|
|
14
|
+
}) => string;
|
|
15
|
+
getPaginationStatusText?: ({ start, end, count, }: {
|
|
16
|
+
start: number;
|
|
17
|
+
end: number;
|
|
18
|
+
count: number;
|
|
19
|
+
}) => string;
|
|
20
|
+
_handlePageChangeEvent: (event: any) => void;
|
|
21
|
+
_handlePageSizeChangeEvent: (event: any) => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Table pagination view logic.
|
|
25
|
+
*/
|
|
26
|
+
declare function tablePaginationTemplate(props: TablePaginationProps): import("lit-html").TemplateResult<1>;
|
|
27
|
+
export { tablePaginationTemplate };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import '@carbon/web-components/es-custom/components/pagination/index.js';
|
|
9
|
+
import '@carbon/web-components/es-custom/components/select/index.js';
|
|
10
|
+
import { html } from 'lit';
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
* Copyright IBM Corp. 2025
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*
|
|
18
|
+
* @license
|
|
19
|
+
*/
|
|
20
|
+
// Import only the constants, not the class
|
|
21
|
+
const POSSIBLE_PAGE_SIZES = [5, 10, 15, 20, 50];
|
|
22
|
+
/**
|
|
23
|
+
* Table pagination view logic.
|
|
24
|
+
*/
|
|
25
|
+
function tablePaginationTemplate(props) {
|
|
26
|
+
const { _currentPageSize: currentPageSize, _currentPageNumber: currentPageNumber, _filterVisibleRowIDs: filterVisibleRowIDs, rows, previousPageText, nextPageText, itemsPerPageText, getPaginationSupplementalText, getPaginationStatusText, _handlePageChangeEvent: handlePageChangeEvent, _handlePageSizeChangeEvent: handlePageSizeChangeEvent, } = props;
|
|
27
|
+
if (!filterVisibleRowIDs || !filterVisibleRowIDs.size) {
|
|
28
|
+
return html ``;
|
|
29
|
+
}
|
|
30
|
+
const totalVisibleRows = filterVisibleRowIDs.size;
|
|
31
|
+
const totalRows = rows.length;
|
|
32
|
+
// Page sizes will only be included if the page size is less than the total number of rows.
|
|
33
|
+
const supportedPageSizes = POSSIBLE_PAGE_SIZES.filter((pageSize) => pageSize < totalRows);
|
|
34
|
+
return html `<cds-custom-pagination
|
|
35
|
+
page-size=${currentPageSize}
|
|
36
|
+
page=${currentPageNumber}
|
|
37
|
+
total-items=${totalVisibleRows}
|
|
38
|
+
totalPages=${Math.ceil(totalVisibleRows / currentPageSize)}
|
|
39
|
+
backward-text=${previousPageText}
|
|
40
|
+
forward-text=${nextPageText}
|
|
41
|
+
items-per-page-text=${itemsPerPageText}
|
|
42
|
+
.formatSupplementalText=${getPaginationSupplementalText}
|
|
43
|
+
.formatStatusWithDeterminateTotal=${getPaginationStatusText}
|
|
44
|
+
@cds-custom-pagination-changed-current=${handlePageChangeEvent}
|
|
45
|
+
@cds-custom-page-sizes-select-changed=${handlePageSizeChangeEvent}
|
|
46
|
+
>
|
|
47
|
+
${supportedPageSizes.map((pageSize) => html `<cds-custom-select-item value="${pageSize}"
|
|
48
|
+
>${pageSize}</cds-custom-select-item
|
|
49
|
+
>`)}
|
|
50
|
+
<cds-custom-select-item value="${totalRows}">${totalRows}</cds-custom-select-item>
|
|
51
|
+
</cds-custom-pagination>`;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { tablePaginationTemplate };
|
|
55
|
+
//# sourceMappingURL=table-pagination.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-pagination.template.js","sources":["../../../../src/components/table/src/table-pagination.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;AAAA;;;;;;;AAOG;AAQH;AACA,MAAM,mBAAmB,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;AAwB/C;;AAEG;AACH,SAAS,uBAAuB,CAAC,KAA2B,EAAA;AAC1D,IAAA,MAAM,EACJ,gBAAgB,EAAE,eAAe,EACjC,kBAAkB,EAAE,iBAAiB,EACrC,oBAAoB,EAAE,mBAAmB,EACzC,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,6BAA6B,EAC7B,uBAAuB,EACvB,sBAAsB,EAAE,qBAAqB,EAC7C,0BAA0B,EAAE,yBAAyB,GACtD,GAAG,KAAK;IAET,IAAI,CAAC,mBAAmB,IAAI,CAAC,mBAAmB,CAAC,IAAI,EAAE;QACrD,OAAO,IAAI,CAAA,CAAA,CAAE;IACf;AAEA,IAAA,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,IAAI;AACjD,IAAA,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM;;AAG7B,IAAA,MAAM,kBAAkB,GAAG,mBAAmB,CAAC,MAAM,CACnD,CAAC,QAAQ,KAAK,QAAQ,GAAG,SAAS,CACnC;AAED,IAAA,OAAO,IAAI,CAAA,CAAA;gBACG,eAAe;WACpB,iBAAiB;kBACV,gBAAgB;AACjB,eAAA,EAAA,IAAI,CAAC,IAAI,CAAC,gBAAgB,GAAG,eAAe,CAAC;oBAC1C,gBAAgB;mBACjB,YAAY;0BACL,gBAAgB;8BACZ,6BAA6B;wCACnB,uBAAuB;sCACzB,qBAAqB;qCACtB,yBAAyB;;MAExD,kBAAkB,CAAC,GAAG,CACtB,CAAC,QAAQ,KACP,IAAI,CAAA,CAAA,wBAAA,EAA2B,QAAQ,CAAA;aAClC,QAAQ,CAAA;UACX,CACL;AACyB,4BAAA,EAAA,SAAS,KAAK,SAAS,CAAA;oBACjC;AACpB;;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export { tableTemplate } from './table.template.js';
|
|
9
|
+
export { tablePaginationTemplate } from './table-pagination.template.js';
|
|
10
|
+
//# sourceMappingURL=table-runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-runtime.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright IBM Corp. 2025
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import '@carbon/web-components/es-custom/components/data-table/table-skeleton.js';
|
|
9
|
+
import { html } from 'lit';
|
|
10
|
+
|
|
11
|
+
/*
|
|
12
|
+
* Copyright IBM Corp. 2025
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
15
|
+
* LICENSE file in the root directory of this source tree.
|
|
16
|
+
*
|
|
17
|
+
* @license
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* Table skeleton view logic.
|
|
21
|
+
*/
|
|
22
|
+
function tableSkeletonTemplate(rowCount = 5) {
|
|
23
|
+
// Can add header names to the skeleton if we want to
|
|
24
|
+
// https://web-components.carbondesignsystem.com/?path=/docs/components-datatable-skeleton--overview#custom-headers.
|
|
25
|
+
return html `<cds-custom-table-skeleton
|
|
26
|
+
row-count=${rowCount}
|
|
27
|
+
column-count="2"
|
|
28
|
+
.showHeader=${false}
|
|
29
|
+
>
|
|
30
|
+
</cds-custom-table-skeleton>`;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export { tableSkeletonTemplate };
|
|
34
|
+
//# sourceMappingURL=table-skeleton.template.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-skeleton.template.js","sources":["../../../../src/components/table/src/table-skeleton.template.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;AAAA;;;;;;;AAOG;AAMH;;AAEG;AACH,SAAS,qBAAqB,CAAC,QAAQ,GAAG,CAAC,EAAA;;;AAGzC,IAAA,OAAO,IAAI,CAAA,CAAA;gBACG,QAAQ;;kBAEN,KAAK;;wBAEC;AACxB;;;;"}
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { TemplateResult, LitElement, PropertyValues } from "lit";
|
|
2
|
+
export interface TableCellContent {
|
|
3
|
+
text: string;
|
|
4
|
+
template?: TemplateResult | null;
|
|
5
|
+
}
|
|
6
|
+
export interface TableRowContent {
|
|
7
|
+
cells: TableCellContent[];
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Class functionality for the Table custom element.
|
|
11
|
+
*/
|
|
12
|
+
declare class CDSAIChatTable extends LitElement {
|
|
13
|
+
/**
|
|
14
|
+
* The optional table title.
|
|
15
|
+
*/
|
|
16
|
+
tableTitle?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The optional table description.
|
|
19
|
+
*/
|
|
20
|
+
tableDescription?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The array of cells for the header.
|
|
23
|
+
*/
|
|
24
|
+
headers: TableCellContent[];
|
|
25
|
+
/**
|
|
26
|
+
* The array of rows. Each row includes an array of cells.
|
|
27
|
+
*/
|
|
28
|
+
rows: TableRowContent[];
|
|
29
|
+
/**
|
|
30
|
+
* Whether or not the table content is loading. If it is then a skeleton state should be shown instead.
|
|
31
|
+
*/
|
|
32
|
+
loading: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* The text used for the filter placeholder.
|
|
35
|
+
*/
|
|
36
|
+
filterPlaceholderText: string;
|
|
37
|
+
/**
|
|
38
|
+
* The text used for the pagination's previous button tooltip.
|
|
39
|
+
*/
|
|
40
|
+
previousPageText: string;
|
|
41
|
+
/**
|
|
42
|
+
* The text used for the pagination's next button tooltip.
|
|
43
|
+
*/
|
|
44
|
+
nextPageText: string;
|
|
45
|
+
/**
|
|
46
|
+
* The text used for the pagination's item pre page text.
|
|
47
|
+
*/
|
|
48
|
+
itemsPerPageText: string;
|
|
49
|
+
/**
|
|
50
|
+
* The text used for the download button's accessible label.
|
|
51
|
+
*/
|
|
52
|
+
downloadLabelText: string;
|
|
53
|
+
/**
|
|
54
|
+
* The locale. Used by the carbon table component to change the collator for sorting.
|
|
55
|
+
*/
|
|
56
|
+
locale: string;
|
|
57
|
+
get defaultPageSize(): number;
|
|
58
|
+
set defaultPageSize(value: number);
|
|
59
|
+
/**
|
|
60
|
+
* The function used to get the supplemental text for the pagination component.
|
|
61
|
+
*/
|
|
62
|
+
getPaginationSupplementalText?: ({ count }: {
|
|
63
|
+
count: number;
|
|
64
|
+
}) => string;
|
|
65
|
+
/**
|
|
66
|
+
* The function used to get the status text for the pagination component.
|
|
67
|
+
*/
|
|
68
|
+
getPaginationStatusText?: ({ start, end, count, }: {
|
|
69
|
+
start: number;
|
|
70
|
+
end: number;
|
|
71
|
+
count: number;
|
|
72
|
+
}) => string;
|
|
73
|
+
static styles: any;
|
|
74
|
+
connectedCallback(): void;
|
|
75
|
+
/**
|
|
76
|
+
* Called after the element's DOM has been updated for the first time.
|
|
77
|
+
* Initializes the table page size.
|
|
78
|
+
*
|
|
79
|
+
* @param _changedProperties - Map of properties that changed during the update
|
|
80
|
+
*/
|
|
81
|
+
protected firstUpdated(_changedProperties: PropertyValues): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Updates the CSS custom property `--cds-custom-chat-table-width` based on the parent element's width.
|
|
84
|
+
* Also calculates the default page size on first run based on the measured width.
|
|
85
|
+
* This method is called once during component initialization.
|
|
86
|
+
*
|
|
87
|
+
* @private
|
|
88
|
+
*/
|
|
89
|
+
private _updateDefaultPageSize;
|
|
90
|
+
/**
|
|
91
|
+
* Called before the element updates to prepare state changes.
|
|
92
|
+
* Handles validation and re-initialization of table data when headers or rows change.
|
|
93
|
+
*
|
|
94
|
+
* @param changedProperties - Map of properties that changed during the update
|
|
95
|
+
* @protected
|
|
96
|
+
*/
|
|
97
|
+
protected willUpdate(changedProperties: PropertyValues<this>): void;
|
|
98
|
+
/**
|
|
99
|
+
* Validates the table structure by checking if all rows have the same number of cells as the header.
|
|
100
|
+
* Sets the internal `_isValid` state to false if any row has a mismatched cell count.
|
|
101
|
+
*
|
|
102
|
+
* A valid table requires:
|
|
103
|
+
* - All rows must have the same number of cells as there are headers
|
|
104
|
+
* - No rows can have more or fewer cells than the column count
|
|
105
|
+
*
|
|
106
|
+
* @private
|
|
107
|
+
*/
|
|
108
|
+
private _calcIsTableValid;
|
|
109
|
+
/**
|
|
110
|
+
* Initializes internal arrays used for table functionality.
|
|
111
|
+
* Creates a new array of rows with unique IDs and initializes the filter visibility tracking.
|
|
112
|
+
*
|
|
113
|
+
* This method:
|
|
114
|
+
* 1. Resets the `_rowsWithIDs` array and `_filterVisibleRowIDs` set
|
|
115
|
+
* 2. Assigns string-based IDs to each row for tracking purposes
|
|
116
|
+
* 3. Marks all rows as initially visible (not filtered out)
|
|
117
|
+
*
|
|
118
|
+
* @private
|
|
119
|
+
*/
|
|
120
|
+
private _initializeRowsArrays;
|
|
121
|
+
/**
|
|
122
|
+
* Configures the table's page size and filtering behavior.
|
|
123
|
+
* Determines whether filtering/searching should be enabled based on the number of rows
|
|
124
|
+
* relative to the current page size.
|
|
125
|
+
*
|
|
126
|
+
* Filtering is enabled when there are more rows than can fit on a single page,
|
|
127
|
+
* allowing users to search and paginate through large datasets.
|
|
128
|
+
*
|
|
129
|
+
* @private
|
|
130
|
+
*/
|
|
131
|
+
private _setPageSize;
|
|
132
|
+
private ensureTableRuntime;
|
|
133
|
+
/**
|
|
134
|
+
* Controls which table rows are visible based on pagination and filtering.
|
|
135
|
+
* Uses CSS display properties to show/hide rows rather than DOM manipulation.
|
|
136
|
+
*
|
|
137
|
+
* This approach is necessary because Carbon's table component handles its own
|
|
138
|
+
* sorting and we need to preserve the DOM order it creates. The method:
|
|
139
|
+
* 1. Hides all rows initially
|
|
140
|
+
* 2. Filters to only rows that haven't been filtered out
|
|
141
|
+
* 3. Shows only the rows that belong to the current page
|
|
142
|
+
*
|
|
143
|
+
* @param page - The page number to display (1-based)
|
|
144
|
+
* @param pageSize - Number of rows per page
|
|
145
|
+
* @private
|
|
146
|
+
*/
|
|
147
|
+
private _updateVisibleRows;
|
|
148
|
+
/**
|
|
149
|
+
* Handles the table download functionality by exporting all table data as a CSV file.
|
|
150
|
+
*
|
|
151
|
+
* This custom implementation is necessary because Carbon's default download feature:
|
|
152
|
+
* - Only exports selected rows (we want all data)
|
|
153
|
+
* - Only exports as JSON (we want CSV format)
|
|
154
|
+
* - Doesn't include all the data we need
|
|
155
|
+
*
|
|
156
|
+
* The method dynamically imports the CSV stringify library to avoid bundle bloat,
|
|
157
|
+
* creates a data URL to comply with CSP policies, and triggers a download.
|
|
158
|
+
*
|
|
159
|
+
* @public
|
|
160
|
+
*/
|
|
161
|
+
_handleDownload(): Promise<void>;
|
|
162
|
+
/**
|
|
163
|
+
* Renders the table component based on current state and data.
|
|
164
|
+
*
|
|
165
|
+
* The render logic follows this priority:
|
|
166
|
+
* 1. Shows skeleton loading state if `loading` is true
|
|
167
|
+
* 2. Shows table with pagination if there are more rows than the page size OR pagination was used
|
|
168
|
+
* 3. Shows table only if all rows fit on one page
|
|
169
|
+
*
|
|
170
|
+
* The method also applies the appropriate Carbon theme class (cds-custom--g90 for dark, cds-custom--white for light)
|
|
171
|
+
* to ensure proper styling based on the `dark` property.
|
|
172
|
+
*
|
|
173
|
+
* @returns The lit-html template for the table component
|
|
174
|
+
* @public
|
|
175
|
+
*/
|
|
176
|
+
render(): TemplateResult<1>;
|
|
177
|
+
}
|
|
178
|
+
declare global {
|
|
179
|
+
interface HTMLElementTagNameMap {
|
|
180
|
+
"cds-aichat-table": CDSAIChatTable;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
export { CDSAIChatTable };
|
|
184
|
+
export default CDSAIChatTable;
|