@carbon/ai-chat-components 0.6.2 → 0.7.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/custom-elements.json +2611 -3856
- package/dist/16-BZMv8BLP.js +91 -0
- package/dist/16-DTIyOew7.js +91 -0
- package/dist/button-VYkJ5dwm.js +157 -0
- package/dist/button-skeleton-C44ojFOx.js +131 -0
- package/dist/card.min.js +193 -0
- package/dist/chain-of-thought.min.js +173 -155
- package/dist/chat-button.min.js +23 -23
- package/dist/checkbox-skeleton-B1dsTlWl.js +166 -0
- package/dist/{lit-element-DibNdm1l.js → class-map-CAQcKAyP.js} +38 -22
- package/dist/code-snippet.min.js +21 -21
- package/dist/codemirror-runtime-DjJTvK74.js +173 -0
- package/dist/{dockerfile-CKwmNxGw.js → dockerfile-C5Ju62-g.js} +21 -21
- package/dist/{factor-PwV725w2.js → factor-BLzOdeEw.js} +21 -21
- package/dist/feedback.min.js +68 -87
- package/dist/{icon-button-Ddd1Ihho.js → icon-button-B9XqYdUx.js} +33 -33
- package/dist/{icon-loader-DuM8rfP3.js → icon-loader-tzlfALFt.js} +23 -23
- package/dist/{if-defined-CbQ0hWcL.js → if-defined-DvPtK2Df.js} +22 -22
- package/dist/index--QAAkyqA.js +91 -0
- package/dist/{index-B1YAtZGR.js → index-1zAoDu0L.js} +21 -21
- package/dist/{index-BtI1vT4z.js → index-B6ll86Y6.js} +21 -21
- package/dist/index-B9DVtGsv.js +278 -0
- package/dist/index-BPU5uHmK.js +91 -0
- package/dist/index-BbWtDXd9.js +91 -0
- package/dist/index-BjsxSbgO.js +91 -0
- package/dist/index-BwI8x9E4.js +91 -0
- package/dist/index-C3KNlXVv.js +168 -0
- package/dist/index-CAdio42O.js +91 -0
- package/dist/index-CSMhs9Fm.js +91 -0
- package/dist/index-CU0IEHyz.js +91 -0
- package/dist/index-Cj-ZmC-W.js +91 -0
- package/dist/index-Ctl66nQF.js +91 -0
- package/dist/index-D7MLs7w5.js +91 -0
- package/dist/index-DH8wnvUn.js +91 -0
- package/dist/index-DWn_nnHo.js +91 -0
- package/dist/index-DpqlVRJ7.js +91 -0
- package/dist/index-Dx9Ms_uJ.js +91 -0
- package/dist/index-EwTPqhmw.js +91 -0
- package/dist/index-P1vutKel.js +91 -0
- package/dist/index-WQxGinYJ.js +91 -0
- package/dist/index-cK4rXRw-.js +91 -0
- package/dist/index-o-THaGga.js +91 -0
- package/dist/loading-icon-CRrLjNZH.js +106 -0
- package/dist/markdown.min.js +72 -70
- package/dist/{nsis-CWLatKhG.js → nsis-Biw-VyZu.js} +21 -21
- package/dist/processing.min.js +23 -23
- package/dist/{pug-DiwBvjDI.js → pug-BuYdIlne.js} +21 -21
- package/dist/reasoning-steps.min.js +69 -38
- package/dist/{state-B20s9hJU.js → state-CBq0UPBm.js} +21 -21
- package/dist/{table-runtime-CzipYmcB.js → table-runtime-CzXXhWmg.js} +86 -86
- package/dist/table.min.js +21 -21
- package/dist/text-input-VC8mmTlR.js +158 -0
- package/dist/toolbar.min.js +54 -56
- package/dist/workspace-shell.min.js +46 -51
- package/es/components/card/index.d.ts +11 -0
- package/es/components/{tile-container → card}/index.js +3 -1
- package/es/components/{tile-container → card}/index.js.map +1 -1
- package/es/components/card/src/card-footer.d.ts +43 -0
- package/es/components/card/src/card-footer.js +140 -0
- package/es/components/card/src/card-footer.js.map +1 -0
- package/es/components/card/src/card-footer.scss.js +13 -0
- package/es/components/card/src/card-footer.scss.js.map +1 -0
- package/es/components/card/src/card-steps.d.ts +28 -0
- package/es/components/card/src/card-steps.js +90 -0
- package/es/components/card/src/card-steps.js.map +1 -0
- package/es/components/{tile-container/src/tile-container.scss.js → card/src/card-steps.scss.js} +2 -2
- package/es/components/card/src/card-steps.scss.js.map +1 -0
- package/es/components/card/src/card.d.ts +27 -0
- package/es/components/card/src/card.js +65 -0
- package/es/components/card/src/card.js.map +1 -0
- package/es/components/card/src/card.scss.js +13 -0
- package/es/components/card/src/card.scss.js.map +1 -0
- package/es/components/chain-of-thought/defs.d.ts +54 -0
- package/es/components/chain-of-thought/{src/types.js → defs.js} +10 -1
- package/es/components/chain-of-thought/defs.js.map +1 -0
- package/es/components/chain-of-thought/index.d.ts +10 -4
- package/es/components/chain-of-thought/index.js +5 -3
- package/es/components/chain-of-thought/index.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought-step.d.ts +43 -0
- package/es/components/chain-of-thought/src/chain-of-thought-step.js +351 -0
- package/es/components/chain-of-thought/src/chain-of-thought-step.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought-step.scss.js +13 -0
- package/es/components/chain-of-thought/src/chain-of-thought-step.scss.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.d.ts +33 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js +107 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.scss.js +13 -0
- package/es/components/chain-of-thought/src/chain-of-thought-toggle.scss.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought.d.ts +23 -69
- package/es/components/chain-of-thought/src/chain-of-thought.js +88 -145
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -1
- package/es/components/chain-of-thought/src/chain-of-thought.scss.js +1 -1
- package/es/components/chain-of-thought/src/tool-call-data.d.ts +33 -0
- package/es/components/chain-of-thought/src/tool-call-data.js +179 -0
- package/es/components/chain-of-thought/src/tool-call-data.js.map +1 -0
- package/es/components/chain-of-thought/src/tool-call-data.scss.js +13 -0
- package/es/components/chain-of-thought/src/tool-call-data.scss.js.map +1 -0
- package/es/components/chat-button/src/chat-button.d.ts +11 -3
- package/es/components/chat-button/src/chat-button.js +15 -11
- package/es/components/chat-button/src/chat-button.js.map +1 -1
- package/es/components/code-snippet/index.d.ts +2 -2
- package/es/components/code-snippet/index.js +1 -1
- package/es/components/code-snippet/src/code-snippet-card.d.ts +63 -0
- package/es/components/code-snippet/src/code-snippet-card.js +186 -0
- package/es/components/code-snippet/src/code-snippet-card.js.map +1 -0
- package/es/components/code-snippet/src/code-snippet.d.ts +32 -31
- package/es/components/code-snippet/src/code-snippet.js +115 -29
- package/es/components/code-snippet/src/code-snippet.js.map +1 -1
- package/es/components/code-snippet/src/code-snippet.scss.js +1 -1
- package/es/components/feedback/index.d.ts +4 -7
- package/es/components/feedback/index.js +2 -4
- package/es/components/feedback/index.js.map +1 -1
- package/es/components/feedback/src/feedback-buttons.d.ts +9 -2
- package/es/components/feedback/src/feedback-buttons.js +24 -15
- package/es/components/feedback/src/feedback-buttons.js.map +1 -1
- package/es/components/feedback/src/feedback-buttons.template.d.ts +2 -2
- package/es/components/feedback/src/feedback-buttons.template.js.map +1 -1
- package/es/components/feedback/src/feedback.d.ts +9 -10
- package/es/components/feedback/src/feedback.js +35 -22
- package/es/components/feedback/src/feedback.js.map +1 -1
- package/es/components/feedback/src/feedback.scss.js +1 -1
- package/es/components/feedback/src/feedback.template.d.ts +2 -2
- package/es/components/feedback/src/feedback.template.js +4 -4
- package/es/components/feedback/src/feedback.template.js.map +1 -1
- package/es/components/markdown/index.d.ts +2 -2
- package/es/components/markdown/index.js +1 -1
- package/es/components/markdown/src/markdown-renderer.d.ts +4 -0
- package/es/components/markdown/src/markdown-renderer.js +16 -11
- package/es/components/markdown/src/markdown-renderer.js.map +1 -1
- package/es/components/markdown/src/markdown.d.ts +42 -14
- package/es/components/markdown/src/markdown.js +146 -42
- package/es/components/markdown/src/markdown.js.map +1 -1
- package/es/components/markdown/src/markdown.scss.js +1 -1
- package/es/components/markdown/src/markdown.template.d.ts +5 -2
- package/es/components/markdown/src/markdown.template.js +8 -3
- package/es/components/markdown/src/markdown.template.js.map +1 -1
- package/es/components/processing/src/processing.d.ts +8 -1
- package/es/components/processing/src/processing.js +7 -10
- package/es/components/processing/src/processing.js.map +1 -1
- package/es/components/processing/src/processing.scss.js +1 -1
- package/es/components/reasoning-steps/index.d.ts +4 -2
- package/es/components/reasoning-steps/index.js +3 -2
- package/es/components/reasoning-steps/index.js.map +1 -1
- package/es/components/reasoning-steps/src/{cds-aichat-reasoning-step.d.ts → reasoning-step.d.ts} +6 -7
- package/es/components/reasoning-steps/src/{cds-aichat-reasoning-step.js → reasoning-step.js} +24 -26
- package/es/components/reasoning-steps/src/reasoning-step.js.map +1 -0
- package/es/components/reasoning-steps/src/{cds-aichat-reasoning-step.scss.js → reasoning-step.scss.js} +1 -1
- package/es/components/reasoning-steps/src/reasoning-step.scss.js.map +1 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.d.ts +36 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js +81 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.js.map +1 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js +13 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.scss.js.map +1 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.template.d.ts +3 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.template.js +43 -0
- package/es/components/reasoning-steps/src/reasoning-steps-toggle.template.js.map +1 -0
- package/es/components/reasoning-steps/src/{cds-aichat-reasoning-steps.d.ts → reasoning-steps.d.ts} +6 -1
- package/es/components/reasoning-steps/src/{cds-aichat-reasoning-steps.js → reasoning-steps.js} +9 -6
- package/es/components/reasoning-steps/src/reasoning-steps.js.map +1 -0
- package/es/components/reasoning-steps/src/{cds-aichat-reasoning-steps.scss.js → reasoning-steps.scss.js} +1 -1
- package/es/components/reasoning-steps/src/reasoning-steps.scss.js.map +1 -0
- package/es/components/table/index.d.ts +2 -2
- package/es/components/table/index.js +1 -1
- package/es/components/table/src/table-pagination.template.d.ts +1 -1
- package/es/components/table/src/{cds-aichat-table.d.ts → table.d.ts} +12 -90
- package/es/components/table/src/{cds-aichat-table.js → table.js} +69 -37
- package/es/components/table/src/table.js.map +1 -0
- package/es/components/table/src/table.template.d.ts +2 -2
- package/es/components/table/src/table.template.js +2 -2
- package/es/components/table/src/table.template.js.map +1 -1
- package/es/components/toolbar/src/toolbar.d.ts +4 -5
- package/es/components/toolbar/src/toolbar.js +51 -40
- package/es/components/toolbar/src/toolbar.js.map +1 -1
- package/es/components/toolbar/src/toolbar.scss.js +1 -1
- package/es/components/workspace-shell/index.d.ts +0 -1
- package/es/components/workspace-shell/index.js +0 -1
- package/es/components/workspace-shell/index.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-body.d.ts +1 -0
- package/es/components/workspace-shell/src/workspace-shell-body.js +3 -4
- package/es/components/workspace-shell/src/workspace-shell-body.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +26 -5
- package/es/components/workspace-shell/src/workspace-shell-footer.js +101 -11
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.js +13 -0
- package/es/components/workspace-shell/src/workspace-shell-footer.scss.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell-header.d.ts +1 -0
- package/es/components/workspace-shell/src/workspace-shell-header.js +4 -4
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell-header.scss.js +13 -0
- package/es/components/workspace-shell/src/workspace-shell-header.scss.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell.d.ts +1 -2
- package/es/components/workspace-shell/src/workspace-shell.js +3 -30
- package/es/components/workspace-shell/src/workspace-shell.js.map +1 -1
- package/es/components/workspace-shell/src/workspace-shell.scss.js +1 -1
- package/es/react/card.d.ts +9 -0
- package/es/react/card.js +43 -0
- package/es/react/card.js.map +1 -0
- package/es/react/chain-of-thought-step.d.ts +4 -0
- package/es/react/chain-of-thought-step.js +32 -0
- package/es/react/chain-of-thought-step.js.map +1 -0
- package/es/react/chain-of-thought-toggle.d.ts +6 -0
- package/es/react/chain-of-thought-toggle.js +31 -0
- package/es/react/chain-of-thought-toggle.js.map +1 -0
- package/es/react/chain-of-thought.d.ts +4 -4
- package/es/react/chain-of-thought.js +7 -3
- package/es/react/chain-of-thought.js.map +1 -1
- package/es/react/code-snippet-card.d.ts +4 -0
- package/es/react/{code-snippet-tile-container.js → code-snippet-card.js} +8 -7
- package/es/react/code-snippet-card.js.map +1 -0
- package/es/react/feedback-buttons.d.ts +2 -2
- package/es/react/feedback-buttons.js +2 -2
- package/es/react/feedback-buttons.js.map +1 -1
- package/es/react/feedback.d.ts +2 -2
- package/es/react/feedback.js +2 -2
- package/es/react/feedback.js.map +1 -1
- package/es/react/inline-notification.d.ts +4 -0
- package/es/react/inline-notification.js +28 -0
- package/es/react/inline-notification.js.map +1 -0
- package/es/react/markdown.d.ts +1 -1
- package/es/react/markdown.js +1 -1
- package/es/react/reasoning-step.d.ts +3 -5
- package/es/react/reasoning-step.js +6 -5
- package/es/react/reasoning-step.js.map +1 -1
- package/es/react/reasoning-steps-toggle.d.ts +6 -0
- package/es/react/reasoning-steps-toggle.js +31 -0
- package/es/react/reasoning-steps-toggle.js.map +1 -0
- package/es/react/reasoning-steps.d.ts +3 -2
- package/es/react/reasoning-steps.js +4 -3
- package/es/react/reasoning-steps.js.map +1 -1
- package/es/react/tag.d.ts +4 -0
- package/es/react/{tile-container.js → tag.js} +6 -6
- package/es/react/tag.js.map +1 -0
- package/es/react/tile.js +2 -2
- package/es/react/tile.js.map +1 -1
- package/es/react/tool-call-data.d.ts +4 -0
- package/es/react/tool-call-data.js +28 -0
- package/es/react/tool-call-data.js.map +1 -0
- package/es/react/workspace-shell.d.ts +11 -0
- package/es/react/workspace-shell.js +49 -0
- package/es/react/workspace-shell.js.map +1 -0
- package/package.json +3 -3
- package/dist/button-D0B6NYRE.js +0 -157
- package/dist/button-skeleton-DtWa12gC.js +0 -116
- package/dist/checkbox-skeleton-BRqpmcmn.js +0 -166
- package/dist/class-map-BFgXCWx_.js +0 -106
- package/dist/codemirror-runtime-DCCflgzA.js +0 -173
- package/dist/index-B6_FOiFX.js +0 -91
- package/dist/index-BBF0opyU.js +0 -91
- package/dist/index-BIpfdWsb.js +0 -91
- package/dist/index-BamxlG85.js +0 -91
- package/dist/index-BnJifpJy.js +0 -91
- package/dist/index-BychCoXU.js +0 -91
- package/dist/index-CBCqx8Ps.js +0 -91
- package/dist/index-CBqFie3c.js +0 -91
- package/dist/index-CDTaA9BR.js +0 -91
- package/dist/index-CQp4LKsc.js +0 -91
- package/dist/index-CmBp-bbC.js +0 -168
- package/dist/index-D0SnJ7Ma.js +0 -91
- package/dist/index-D4zxQxf2.js +0 -91
- package/dist/index-DMzbawFt.js +0 -91
- package/dist/index-DTqHKU78.js +0 -91
- package/dist/index-Dj8jVVfA.js +0 -91
- package/dist/index-DqC-5dY5.js +0 -91
- package/dist/index-LHYDalJY.js +0 -91
- package/dist/index-MyumuXWu.js +0 -91
- package/dist/index-hvhxkyxb.js +0 -91
- package/dist/index-tpV6AVN_.js +0 -91
- package/dist/index-zZ0xfJxK.js +0 -367
- package/dist/query-Sqf3k5tK.js +0 -101
- package/dist/radio-group-manager-BqksDnno.js +0 -91
- package/dist/repeat-Cu9vY9y8.js +0 -96
- package/dist/text-input-BlvU8QGo.js +0 -158
- package/dist/tile-container.min.js +0 -100
- package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.d.ts +0 -15
- package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.js +0 -36
- package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.js.map +0 -1
- package/es/components/chain-of-thought/src/chain-of-thought.template.d.ts +0 -5
- package/es/components/chain-of-thought/src/chain-of-thought.template.js +0 -206
- package/es/components/chain-of-thought/src/chain-of-thought.template.js.map +0 -1
- package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.d.ts +0 -10
- package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.js +0 -50
- package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.js.map +0 -1
- package/es/components/chain-of-thought/src/types.d.ts +0 -73
- package/es/components/chain-of-thought/src/types.js.map +0 -1
- package/es/components/code-snippet/src/code-snippet-tile-container.d.ts +0 -32
- package/es/components/code-snippet/src/code-snippet-tile-container.js +0 -143
- package/es/components/code-snippet/src/code-snippet-tile-container.js.map +0 -1
- package/es/components/feedback/src/cds-aichat-feedback-buttons.d.ts +0 -15
- package/es/components/feedback/src/cds-aichat-feedback-buttons.js +0 -36
- package/es/components/feedback/src/cds-aichat-feedback-buttons.js.map +0 -1
- package/es/components/feedback/src/cds-aichat-feedback.d.ts +0 -15
- package/es/components/feedback/src/cds-aichat-feedback.js +0 -36
- package/es/components/feedback/src/cds-aichat-feedback.js.map +0 -1
- package/es/components/markdown/src/cds-aichat-markdown.d.ts +0 -13
- package/es/components/markdown/src/cds-aichat-markdown.js +0 -35
- package/es/components/markdown/src/cds-aichat-markdown.js.map +0 -1
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.js.map +0 -1
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.scss.js.map +0 -1
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.js.map +0 -1
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.scss.js.map +0 -1
- package/es/components/table/src/cds-aichat-table.js.map +0 -1
- package/es/components/tile-container/index.d.ts +0 -1
- package/es/components/tile-container/src/styles.scss.js +0 -13
- package/es/components/tile-container/src/styles.scss.js.map +0 -1
- package/es/components/tile-container/src/tile-container.d.ts +0 -12
- package/es/components/tile-container/src/tile-container.js +0 -85
- package/es/components/tile-container/src/tile-container.js.map +0 -1
- package/es/components/tile-container/src/tile-container.scss.js.map +0 -1
- package/es/components/workspace-shell/src/styles.scss.js +0 -13
- package/es/components/workspace-shell/src/styles.scss.js.map +0 -1
- package/es/components/workspace-shell/src/workspace-shell-toolbar.d.ts +0 -22
- package/es/components/workspace-shell/src/workspace-shell-toolbar.js +0 -61
- package/es/components/workspace-shell/src/workspace-shell-toolbar.js.map +0 -1
- package/es/react/code-snippet-tile-container.d.ts +0 -5
- package/es/react/code-snippet-tile-container.js.map +0 -1
- package/es/react/tile-container.d.ts +0 -4
- package/es/react/tile-container.js.map +0 -1
- package/dist/{16-Qupth_aH.js → 16-D66oSSKJ.js} +20 -20
- package/dist/{apl-BgtIAmDL.js → apl-Cq2qnGBp.js} +20 -20
- package/dist/{asciiarmor-tEIRKlaD.js → asciiarmor-Cb5hNJXm.js} +20 -20
- package/dist/{asn1-sXfvlwbA.js → asn1-ObfPhj90.js} +20 -20
- package/dist/{asterisk-CkP9KBn_.js → asterisk-CGEdhmtE.js} +20 -20
- package/dist/{carbon-element-CMnOQRY8.js → carbon-element-BHXvTuS8.js} +20 -20
- package/dist/{carbon-element-B18tSkZ6.js → carbon-element-CY_4MezR.js} +20 -20
- package/dist/{clike-Dz7-b3Bs.js → clike-D-W_e6Lj.js} +20 -20
- package/dist/{clojure-Cv2VjSR-.js → clojure-BKr3NaqS.js} +20 -20
- package/dist/{cmake-B7mApY_A.js → cmake-CCO4hHlz.js} +20 -20
- package/dist/{cobol-CLpo2wzU.js → cobol-BP7APbz-.js} +20 -20
- package/dist/{coffeescript-Cp4m_frl.js → coffeescript-DAdmYC08.js} +20 -20
- package/dist/{collection-helpers-CVjseChk.js → collection-helpers-CeBujCju.js} +20 -20
- package/dist/{commonlisp-DGHzJz_w.js → commonlisp-Bo8JYmEV.js} +20 -20
- package/dist/{crystal-D8zlcNoF.js → crystal-Bm8pGIh6.js} +20 -20
- package/dist/{css-gJR1aLn3.js → css-BJk1lVKu.js} +20 -20
- package/dist/{custom-element-Clzn_oL-.js → custom-element-DRG4IpGT.js} +20 -20
- package/dist/{cypher-CM68cGds.js → cypher-D-eVDQC7.js} +20 -20
- package/dist/{d-DS7hYUri.js → d-D9LdG4k3.js} +20 -20
- package/dist/{diff-BchMez5u.js → diff-DZtMXlRt.js} +20 -20
- package/dist/{dtd-B4jYcQ7M.js → dtd-BkbtUIcB.js} +20 -20
- package/dist/{dylan-DK2Dyib7.js → dylan-CCohaM4H.js} +20 -20
- package/dist/{ebnf-Cn6Vnzxw.js → ebnf-DtT6UrMv.js} +20 -20
- package/dist/{ecl-9PhKPFNU.js → ecl-C2GNxTt8.js} +20 -20
- package/dist/{eiffel-CqAx-iZ-.js → eiffel-BW4n6uyg.js} +20 -20
- package/dist/{elm-Cw3MFe2J.js → elm-B9lXrM6D.js} +20 -20
- package/dist/{erlang-DeNh2sjw.js → erlang-BKwBedv4.js} +20 -20
- package/dist/{fcl-Dku8gwKl.js → fcl-BGYmKRZe.js} +20 -20
- package/dist/{forth-ccFEopc8.js → forth-DTbOVELu.js} +20 -20
- package/dist/{fortran-C0Pd1bYf.js → fortran-Dr7q8x3V.js} +20 -20
- package/dist/{gas-C9KeMzH-.js → gas-CsCwQ5DC.js} +20 -20
- package/dist/{gherkin-CTd3ycq1.js → gherkin-CAJyZEc1.js} +20 -20
- package/dist/{groovy-C2OuB7B3.js → groovy-CpFdbfFQ.js} +20 -20
- package/dist/{haskell-CGuEw9Yh.js → haskell-V36thOn1.js} +20 -20
- package/dist/{haxe-Bpicn7Ma.js → haxe-CeQWqhmF.js} +20 -20
- package/dist/{http-C2Dl8BK6.js → http-Cm3L1exf.js} +20 -20
- package/dist/{idl-D0DUTXQY.js → idl-DyN-eyoA.js} +20 -20
- package/dist/{javascript-vBL1foWi.js → javascript-B7L-ezNz.js} +20 -20
- package/dist/{julia-YTKmImms.js → julia-B_bgxt8f.js} +20 -20
- package/dist/{livescript-BqlKQjy2.js → livescript-B0UjDUzz.js} +20 -20
- package/dist/{lua-DlwCIvBO.js → lua-Bs-1T_TR.js} +20 -20
- package/dist/{mathematica-Dv2FPQ3c.js → mathematica-QbiSkUw_.js} +20 -20
- package/dist/{mbox-BRYTWZIN.js → mbox-IxVDt6G7.js} +20 -20
- package/dist/{mirc-Bfe4ByuU.js → mirc--MFZdywV.js} +20 -20
- package/dist/{mllike-jcboaTW3.js → mllike-s7nUnXIp.js} +20 -20
- package/dist/{modelica-DyjAoT58.js → modelica-BCpZ0s1C.js} +20 -20
- package/dist/{mscgen-cDZZxW92.js → mscgen-Br8J94Pi.js} +20 -20
- package/dist/{mumps-BHJOz0VL.js → mumps-BsSCi6Lf.js} +20 -20
- package/dist/{nginx-C7Xm6ldH.js → nginx-ZiZlz_Vj.js} +20 -20
- package/dist/{ntriples-WgSzAP5x.js → ntriples-1fM-fgdb.js} +20 -20
- package/dist/{octave-D4LNKBtY.js → octave-nXauetiK.js} +20 -20
- package/dist/{oz-BoqKtF9D.js → oz-B13mLmyp.js} +20 -20
- package/dist/{pascal-Di4a6U4m.js → pascal-B_W4OXqj.js} +20 -20
- package/dist/{perl-DidNKejT.js → perl-a1VQ4XvC.js} +20 -20
- package/dist/{pig-BNb2vBfH.js → pig-BtQy1wID.js} +20 -20
- package/dist/{powershell-BKZXxjKi.js → powershell-uO49D63Q.js} +20 -20
- package/dist/{properties-DGvo0ocD.js → properties-BhuX6-mY.js} +20 -20
- package/dist/{protobuf-CO4RB5i_.js → protobuf-CNIIc7zI.js} +20 -20
- package/dist/{puppet-BuoIdj3c.js → puppet-ByObhsu2.js} +20 -20
- package/dist/{python-D0eLBtFd.js → python-PHhd4JZq.js} +20 -20
- package/dist/{q-C5wfDOE6.js → q-qVcarjaG.js} +20 -20
- package/dist/{r-B2NBzJ7Q.js → r-Cd28Rn61.js} +20 -20
- package/dist/{rpm-bppY7Ljs.js → rpm-tHd62SNx.js} +20 -20
- package/dist/{ruby-1BC0cOBU.js → ruby-BWVi67xq.js} +20 -20
- package/dist/{sas-BeMF8yJO.js → sas-BwjQFPr2.js} +20 -20
- package/dist/{scheme-CIQ0ih8s.js → scheme-Czr-sVIy.js} +20 -20
- package/dist/{settings-DtiFDQAJ.js → settings-C6RJ_X7P.js} +20 -20
- package/dist/{shell-Aikfsln6.js → shell-BetDWStl.js} +20 -20
- package/dist/{sieve-AcrCVYff.js → sieve-rrPKwsBh.js} +20 -20
- package/dist/{simple-mode-pAhBuoYJ.js → simple-mode-C8-rTa2M.js} +20 -20
- package/dist/{smalltalk-B2nQQuEp.js → smalltalk-YAI5xh7_.js} +20 -20
- package/dist/{solr-dRPr0Biz.js → solr-VDOKdk1b.js} +20 -20
- package/dist/{sparql-Cj99XEDx.js → sparql-zO1kYCog.js} +20 -20
- package/dist/{spreadsheet-sgTJtcQB.js → spreadsheet-6g8nHE2j.js} +20 -20
- package/dist/{sql-C8kOX3sr.js → sql-Biw9poPQ.js} +20 -20
- package/dist/{stex-7QvUJU5I.js → stex-THaXVwNW.js} +20 -20
- package/dist/{stylus-DkIl6udx.js → stylus-RHXL_HsJ.js} +20 -20
- package/dist/{swift-BjpHlYuP.js → swift-lfFyPRRo.js} +20 -20
- package/dist/{sync-CTB9Fa1m.js → sync-D5E2V6_l.js} +20 -20
- package/dist/{tcl-C1Yvc7pn.js → tcl-C4Tb2U0q.js} +20 -20
- package/dist/{textile-DKmSRPjM.js → textile-CnQDonvJ.js} +20 -20
- package/dist/{throttle-Bas3c59v.js → throttle-B7gS0Tg4.js} +20 -20
- package/dist/{tiddlywiki-DN1bYf4c.js → tiddlywiki-BPc4WZCH.js} +20 -20
- package/dist/{tiki-F3wxU3m-.js → tiki-D4dz8j1V.js} +20 -20
- package/dist/{toml-KiNov0Ms.js → toml-88vYtIh1.js} +20 -20
- package/dist/{troff-BZvX0oqw.js → troff-BgVjEoT-.js} +20 -20
- package/dist/{ttcn-BiJT56Tu.js → ttcn-DdYulzch.js} +20 -20
- package/dist/{ttcn-cfg-3VvAFBAY.js → ttcn-cfg-LwcHiYmJ.js} +20 -20
- package/dist/{turtle-BvExPgO5.js → turtle-CgiVr9yq.js} +20 -20
- package/dist/{vb-D2uTYiVC.js → vb-BWY0HckZ.js} +20 -20
- package/dist/{vbscript-DpTTELsB.js → vbscript-BBJV-ooB.js} +20 -20
- package/dist/{velocity-jIy5jhYQ.js → velocity-wom_bhlv.js} +20 -20
- package/dist/{verilog-CXOzQ6Od.js → verilog-BCY2xdlY.js} +20 -20
- package/dist/{vhdl-Dg-0Ynfd.js → vhdl-BjJYRa0a.js} +20 -20
- package/dist/{webidl-Elhmuz8r.js → webidl-KE8LT1tN.js} +20 -20
- package/dist/{xquery-EKuNgB1T.js → xquery-Ca5C9BJw.js} +20 -20
- package/dist/{yacas-CirFB63Y.js → yacas-DGeGvU7X.js} +20 -20
- package/dist/{z80-D_iQ-043.js → z80-CEYQTt8_.js} +20 -20
|
@@ -16,71 +16,71 @@
|
|
|
16
16
|
* https://www.npmjs.com/package/tslib
|
|
17
17
|
* https://www.npmjs.com/package/lit
|
|
18
18
|
* https://www.npmjs.com/package/markdown-it
|
|
19
|
-
* https://www.npmjs.com/package/dompurify
|
|
20
19
|
* https://www.npmjs.com/package/lodash-es
|
|
20
|
+
* https://www.npmjs.com/package/dompurify
|
|
21
|
+
* https://www.npmjs.com/package/@codemirror/state
|
|
21
22
|
* https://www.npmjs.com/package/csv-stringify
|
|
22
23
|
* https://www.npmjs.com/package/lit-html
|
|
23
24
|
* https://www.npmjs.com/package/@carbon/web-components
|
|
24
25
|
* https://www.npmjs.com/package/codemirror
|
|
25
|
-
* https://www.npmjs.com/package/@codemirror/state
|
|
26
26
|
* https://www.npmjs.com/package/@codemirror/language
|
|
27
|
-
* https://www.npmjs.com/package/@codemirror/autocomplete
|
|
28
27
|
* https://www.npmjs.com/package/@codemirror/commands
|
|
29
28
|
* https://www.npmjs.com/package/@codemirror/view
|
|
29
|
+
* https://www.npmjs.com/package/@codemirror/autocomplete
|
|
30
30
|
* https://www.npmjs.com/package/@codemirror/lint
|
|
31
31
|
* https://www.npmjs.com/package/@lezer/highlight
|
|
32
32
|
* https://www.npmjs.com/package/@codemirror/lang-sql
|
|
33
|
-
* https://www.npmjs.com/package/@codemirror/lang-css
|
|
34
33
|
* https://www.npmjs.com/package/@codemirror/lang-go
|
|
35
|
-
* https://www.npmjs.com/package/@codemirror/lang-html
|
|
36
34
|
* https://www.npmjs.com/package/@codemirror/lang-cpp
|
|
35
|
+
* https://www.npmjs.com/package/@codemirror/lang-css
|
|
36
|
+
* https://www.npmjs.com/package/@codemirror/lang-html
|
|
37
37
|
* https://www.npmjs.com/package/@codemirror/lang-java
|
|
38
38
|
* https://www.npmjs.com/package/@codemirror/lang-javascript
|
|
39
|
+
* https://www.npmjs.com/package/@codemirror/lang-jinja
|
|
39
40
|
* https://www.npmjs.com/package/@codemirror/lang-json
|
|
40
41
|
* https://www.npmjs.com/package/@codemirror/lang-less
|
|
41
|
-
* https://www.npmjs.com/package/@codemirror/lang-php
|
|
42
42
|
* https://www.npmjs.com/package/@codemirror/lang-liquid
|
|
43
|
+
* https://www.npmjs.com/package/@codemirror/lang-php
|
|
43
44
|
* https://www.npmjs.com/package/@codemirror/lang-markdown
|
|
44
|
-
* https://www.npmjs.com/package/@codemirror/lang-
|
|
45
|
-
* https://www.npmjs.com/package/@codemirror/lang-python
|
|
46
|
-
* https://www.npmjs.com/package/@codemirror/lang-sass
|
|
45
|
+
* https://www.npmjs.com/package/@codemirror/lang-wast
|
|
47
46
|
* https://www.npmjs.com/package/@codemirror/lang-rust
|
|
48
47
|
* https://www.npmjs.com/package/@codemirror/lang-yaml
|
|
48
|
+
* https://www.npmjs.com/package/@codemirror/lang-python
|
|
49
|
+
* https://www.npmjs.com/package/@codemirror/lang-sass
|
|
49
50
|
* https://www.npmjs.com/package/@codemirror/legacy-modes
|
|
50
|
-
* https://www.npmjs.com/package/@codemirror/lang-xml
|
|
51
|
-
* https://www.npmjs.com/package/@codemirror/lang-angular
|
|
52
|
-
* https://www.npmjs.com/package/@codemirror/lang-wast
|
|
53
51
|
* https://www.npmjs.com/package/@codemirror/lang-vue
|
|
52
|
+
* https://www.npmjs.com/package/@codemirror/lang-angular
|
|
53
|
+
* https://www.npmjs.com/package/@codemirror/lang-xml
|
|
54
54
|
* https://www.npmjs.com/package/@carbon/icons
|
|
55
55
|
* https://www.npmjs.com/package/@carbon/utilities
|
|
56
56
|
* https://www.npmjs.com/package/@carbon/icon-helpers
|
|
57
57
|
* https://www.npmjs.com/package/program-language-detector
|
|
58
58
|
* https://www.npmjs.com/package/lit-element
|
|
59
59
|
* https://www.npmjs.com/package/@lit/reactive-element
|
|
60
|
+
* https://www.npmjs.com/package/@marijn/find-cluster-break
|
|
60
61
|
* https://www.npmjs.com/package/@codemirror/search
|
|
61
62
|
* https://www.npmjs.com/package/crelt
|
|
62
63
|
* https://www.npmjs.com/package/w3c-keyname
|
|
63
64
|
* https://www.npmjs.com/package/style-mod
|
|
64
|
-
* https://www.npmjs.com/package/@marijn/find-cluster-break
|
|
65
65
|
* https://www.npmjs.com/package/@lezer/common
|
|
66
|
-
* https://www.npmjs.com/package/@lezer/lr
|
|
67
|
-
* https://www.npmjs.com/package/@lezer/css
|
|
68
66
|
* https://www.npmjs.com/package/@lezer/go
|
|
67
|
+
* https://www.npmjs.com/package/@lezer/lr
|
|
69
68
|
* https://www.npmjs.com/package/@lezer/cpp
|
|
70
69
|
* https://www.npmjs.com/package/@lezer/java
|
|
70
|
+
* https://www.npmjs.com/package/@lezer/css
|
|
71
71
|
* https://www.npmjs.com/package/@lezer/html
|
|
72
|
-
* https://www.npmjs.com/package/@lezer/json
|
|
73
72
|
* https://www.npmjs.com/package/@lezer/javascript
|
|
74
|
-
* https://www.npmjs.com/package/@lezer/python
|
|
75
|
-
* https://www.npmjs.com/package/@lezer/rust
|
|
76
|
-
* https://www.npmjs.com/package/@lezer/markdown
|
|
77
73
|
* https://www.npmjs.com/package/@lezer/php
|
|
74
|
+
* https://www.npmjs.com/package/@lezer/json
|
|
78
75
|
* https://www.npmjs.com/package/@lezer/yaml
|
|
76
|
+
* https://www.npmjs.com/package/@lezer/rust
|
|
77
|
+
* https://www.npmjs.com/package/@lezer/python
|
|
79
78
|
* https://www.npmjs.com/package/@lezer/sass
|
|
79
|
+
* https://www.npmjs.com/package/@lezer/markdown
|
|
80
80
|
* https://www.npmjs.com/package/@lezer/xml
|
|
81
81
|
* https://www.npmjs.com/package/@internationalized/number
|
|
82
|
-
* https://www.npmjs.com/package/linkify-it
|
|
83
82
|
* https://www.npmjs.com/package/mdurl
|
|
83
|
+
* https://www.npmjs.com/package/linkify-it
|
|
84
84
|
* https://www.npmjs.com/package/punycode.js
|
|
85
85
|
* https://www.npmjs.com/package/uc.micro
|
|
86
86
|
* https://www.npmjs.com/package/@floating-ui/dom
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
* https://www.npmjs.com/package/@floating-ui/utils
|
|
89
89
|
*/
|
|
90
90
|
|
|
91
|
-
import{i as
|
|
91
|
+
import{i as t,_ as e,n as a,a as o,x as i,e as s}from"./class-map-CAQcKAyP.js";import{p as n}from"./settings-C6RJ_X7P.js";import{c as r}from"./carbon-element-CY_4MezR.js";import{_ as c,a as d,g as l}from"./loading-icon-CRrLjNZH.js";import{c as h,p}from"./carbon-element-BHXvTuS8.js";import{i as u}from"./icon-loader-tzlfALFt.js";import{o as g}from"./if-defined-DvPtK2Df.js";import{r as f}from"./state-CBq0UPBm.js";import{_ as b}from"./16-D66oSSKJ.js";import{_ as v}from"./16-DTIyOew7.js";var m=t([":host{display:block}:host([open]) .cds-aichat--chain-of-thought-content{display:block;max-block-size:-moz-fit-content;max-block-size:fit-content;opacity:1;overflow:visible}.cds-aichat--chain-of-thought-content{display:none;max-block-size:0;opacity:0;overflow:hidden;transition:all allow-discrete .11s cubic-bezier(0,0,.38,.9)}.cds-aichat--chain-of-thought-inner-content{background-color:var(--cds-layer-01,#f4f4f4);border:1px solid var(--cds-border-subtle-01,#c6c6c6);margin-block-start:.5rem}"]);
|
|
92
92
|
/*
|
|
93
93
|
* Copyright IBM Corp. 2025
|
|
94
94
|
*
|
|
@@ -105,33 +105,31 @@ import{i as e,_ as t,a,x as i}from"./lit-element-DibNdm1l.js";import{c as o}from
|
|
|
105
105
|
*
|
|
106
106
|
* @license
|
|
107
107
|
*/
|
|
108
|
-
const g=new Intl.NumberFormat("en-US"),b=({stepNumber:e,stepTitle:t})=>`${g.format(e)}: ${t||""}`;class m extends a{constructor(){super(...arguments),this.open=!1,this.steps=[],this.formatStepLabelText=b,this.inputLabelText="Input",this.outputLabelText="Output",this.toolLabelText="Tool",this.explainabilityText="Show chain of thought",this.statusSucceededLabelText="Succeeded",this.statusFailedLabelText="Failed",this.statusProcessingLabelText="Processing",this._steps=[],this._chainOfThoughtPanelID=`${c}-chain-of-thought-panel-id-${"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}`}firstUpdated(e){const t=this.steps??[];this._steps=t.map(e=>({...e,open:!1}))}updated(e){if(e.has("steps")){const e=this.steps??[],t=this._steps??[];this._steps=e.map((e,a)=>({...e,open:t[a]?.open??!1}))}}}m.styles=f,t([n({type:Boolean,attribute:"open",reflect:!0})],m.prototype,"open",void 0),t([n({type:Array,attribute:"steps",reflect:!0})],m.prototype,"steps",void 0),t([n({type:Function,attribute:!1})],m.prototype,"formatStepLabelText",void 0),t([n({type:String,attribute:"input-label-text",reflect:!0})],m.prototype,"inputLabelText",void 0),t([n({type:String,attribute:"output-label-text",reflect:!0})],m.prototype,"outputLabelText",void 0),t([n({type:String,attribute:"tool-label-text",reflect:!0})],m.prototype,"toolLabelText",void 0),t([n({type:String,attribute:"explainability-text",reflect:!0})],m.prototype,"explainabilityText",void 0),t([n({type:Function,attribute:!1})],m.prototype,"onToggle",void 0),t([n({type:Function,attribute:!1})],m.prototype,"onStepToggle",void 0),t([n({type:String,attribute:"status-succeeded-label-text",reflect:!0})],m.prototype,"statusSucceededLabelText",void 0),t([n({type:String,attribute:"status-failed-label-text",reflect:!0})],m.prototype,"statusFailedLabelText",void 0),t([n({type:String,attribute:"status-processing-label-text",reflect:!0})],m.prototype,"statusProcessingLabelText",void 0),t([n({type:String,attribute:"filter-placeholder-text"})],m.prototype,"filterPlaceholderText",void 0),t([n({type:String,attribute:"previous-page-text"})],m.prototype,"previousPageText",void 0),t([n({type:String,attribute:"next-page-text"})],m.prototype,"nextPageText",void 0),t([n({type:String,attribute:"items-per-page-text"})],m.prototype,"itemsPerPageText",void 0),t([n({type:String,attribute:"locale"})],m.prototype,"locale",void 0),t([n({type:Object,attribute:!1})],m.prototype,"getPaginationSupplementalText",void 0),t([n({type:Object,attribute:!1})],m.prototype,"getPaginationStatusText",void 0),t([n({type:String,attribute:"feedback"})],m.prototype,"feedback",void 0),t([n({type:String,attribute:"show-less-text"})],m.prototype,"showLessText",void 0),t([n({type:String,attribute:"show-more-text"})],m.prototype,"showMoreText",void 0),t([n({type:String,attribute:"tooltip-content"})],m.prototype,"tooltipContent",void 0),t([n({type:Object,attribute:!1})],m.prototype,"getLineCountText",void 0),t([s()],m.prototype,"_steps",void 0),t([s()],m.prototype,"_chainOfThoughtPanelID",void 0);var v,y={elem:"svg",attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:16,height:16},content:[{elem:"path",attrs:{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z"}},{elem:"path",attrs:{fill:"none",d:"M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"}}],name:"error--filled",size:16};!function(e){e.INACTIVE="inactive",e.ACTIVE="active",e.FINISHED="finished",e.ERROR="error"}(v||(v={}));var x=e([".cds--layer-one,:root{--cds-layer:var(--cds-layer-01,#f4f4f4);--cds-layer-active:var(--cds-layer-active-01,#c6c6c6);--cds-layer-background:var(--cds-layer-background-01,#fff);--cds-layer-hover:var(--cds-layer-hover-01,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-01,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-01,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-01,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-01,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-01,#a8a8a8);--cds-field:var(--cds-field-01,#f4f4f4);--cds-field-hover:var(--cds-field-hover-01,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-00,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-01,#c6c6c6);--cds-border-strong:var(--cds-border-strong-01,#8d8d8d);--cds-border-tile:var(--cds-border-tile-01,#c6c6c6)}.cds--layer-two{--cds-layer:var(--cds-layer-02,#fff);--cds-layer-active:var(--cds-layer-active-02,#c6c6c6);--cds-layer-background:var(--cds-layer-background-02,#f4f4f4);--cds-layer-hover:var(--cds-layer-hover-02,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-02,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-02,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-02,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-02,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-02,#a8a8a8);--cds-field:var(--cds-field-02,#fff);--cds-field-hover:var(--cds-field-hover-02,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-01,#c6c6c6);--cds-border-subtle-selected:var(--cds-border-subtle-selected-02,#c6c6c6);--cds-border-strong:var(--cds-border-strong-02,#8d8d8d);--cds-border-tile:var(--cds-border-tile-02,#a8a8a8)}.cds--layer-three{--cds-layer:var(--cds-layer-03,#f4f4f4);--cds-layer-active:var(--cds-layer-active-03,#c6c6c6);--cds-layer-background:var(--cds-layer-background-03,#fff);--cds-layer-hover:var(--cds-layer-hover-03,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-03,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-03,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-03,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-03,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-03,#a8a8a8);--cds-field:var(--cds-field-03,#f4f4f4);--cds-field-hover:var(--cds-field-hover-03,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-02,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-03,#c6c6c6);--cds-border-strong:var(--cds-border-strong-03,#8d8d8d);--cds-border-tile:var(--cds-border-tile-03,#c6c6c6)}.cds--layer-one.cds--layer__with-background,.cds--layer-three.cds--layer__with-background,.cds--layer-two.cds--layer__with-background{background-color:var(--cds-layer-background)}.cds--loading{border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds--loading *,.cds--loading :after,.cds--loading :before{box-sizing:inherit}.cds--loading{animation-duration:.69s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:cds--rotate;animation-timing-function:linear}.cds--loading svg circle{animation-duration:10ms;animation-name:cds--init-stroke;animation-timing-function:cubic-bezier(.5,0,.1,1)}@media screen and (prefers-reduced-motion:reduce){.cds--loading svg circle{animation:none}}.cds--loading{block-size:5.5rem;inline-size:5.5rem}.cds--loading__svg{fill:transparent}.cds--loading__svg circle{stroke-dasharray:276.4608 276.4608;stroke-linecap:butt;stroke-width:10}.cds--loading__stroke{stroke:var(--cds-interactive,#0f62fe);stroke-dashoffset:52.527552}.cds--loading--small .cds--loading__stroke{stroke-dashoffset:143.759616}.cds--loading--stop{animation:cds--rotate-end-p1 .7s cubic-bezier(0,0,.25,1) forwards,cds--rotate-end-p2 .7s cubic-bezier(0,0,.25,1) .7s forwards}.cds--loading--stop svg circle{animation-delay:.7s;animation-duration:.7s;animation-fill-mode:forwards;animation-name:cds--stroke-end;animation-timing-function:cubic-bezier(0,0,.25,1)}@media screen and (prefers-reduced-motion:reduce){.cds--loading--stop svg circle{animation:none}}.cds--loading--small{block-size:1rem;inline-size:1rem;line-height:1rem}.cds--loading--small circle{stroke-width:16}.cds--loading--small .cds--loading__svg{stroke:var(--cds-interactive,#0f62fe)}.cds--loading__background{stroke:var(--cds-layer-accent);stroke-dashoffset:-22}@supports (hanging-punctuation:first) and (font:-apple-system-body) and (-webkit-appearance:none){circle.cds--loading__background{stroke-dasharray:265;stroke-dashoffset:0}}.cds--loading-overlay{align-items:center;background-color:var(--cds-overlay,rgba(0,0,0,.6));block-size:100%;display:flex;inline-size:100%;inset-block-start:0;inset-inline-start:0;justify-content:center;position:fixed;transition:background-color .7s cubic-bezier(.4,.14,.3,1);z-index:6000}.cds--loading-overlay--stop{display:none}@keyframes cds--rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes cds--rotate-end-p1{to{transform:rotate(1turn)}}@keyframes cds--rotate-end-p2{to{transform:rotate(-1turn)}}@keyframes cds--init-stroke{0%{stroke-dashoffset:276.4608}to{stroke-dashoffset:52.527552}}@keyframes cds--stroke-end{0%{stroke-dashoffset:52.527552}to{stroke-dashoffset:276.4608}}@keyframes prefix--stroke{to{stroke-dashoffset:0}}.cds--inline-loading,:host(cds-inline-loading){align-items:center;color:var(--cds-text-secondary,#525252);display:flex;inline-size:100%;min-block-size:2rem}.cds--inline-loading__text{font-size:var(--cds-label-02-font-size,.875rem);font-weight:var(--cds-label-02-font-weight,400);letter-spacing:var(--cds-label-02-letter-spacing,.16px);line-height:var(--cds-label-02-line-height,1.28572)}.cds--inline-loading__animation{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem;position:relative}.cds--inline-loading__checkmark-container{fill:var(--cds-support-success,#24a148)}.cds--inline-loading__checkmark-container.cds--inline-loading__svg{inline-size:.75rem;inset-block-start:.75rem;position:absolute}.cds--inline-loading__checkmark-container[hidden]{display:none}.cds--inline-loading__checkmark{animation-duration:.25s;animation-fill-mode:forwards;animation-name:cds--stroke;fill:none;stroke:var(--cds-interactive,#0f62fe);stroke-dasharray:12;stroke-dashoffset:12;stroke-width:1.8;transform-origin:50% 50%}.cds--inline-loading--error{block-size:1rem;fill:var(--cds-support-error,#da1e28);inline-size:1rem}.cds--inline-loading--error[hidden]{display:none}.cds--loading--small .cds--inline-loading__svg{stroke:var(--cds-interactive,#0f62fe)}.cds--btn .cds--inline-loading--btn{min-block-size:0}.cds--btn .cds--inline-loading--btn .cds--inline-loading__text{font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);line-height:var(--cds-body-short-01-line-height,1.28572)}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){.cds--inline-loading__checkmark-container{inset-block-start:1px;inset-inline-end:.5rem}.cds--inline-loading__checkmark{animation:none;stroke-dasharray:0;stroke-dashoffset:0}}"]);let k=class extends a{constructor(){super(...arguments),this.iconDescription="Loading",this.successDelay=1500,this.status=v.ACTIVE}get assistiveText(){return this.iconDescription}set assistiveText(e){this.iconDescription=e}_renderIcon(){const{iconDescription:e,status:t}=this;if(t===v.ERROR)return p(y,{class:`${l}--inline-loading--error`,"aria-label":e});const a={bubbles:!0,cancelable:!0,composed:!0};if(t===v.FINISHED)return setTimeout(()=>{this.dispatchEvent(new CustomEvent(this.constructor.eventOnSuccess,a))},this.successDelay),p(d,{class:`${l}--inline-loading__checkmark-container`,"aria-label":e});if(t===v.INACTIVE||t===v.ACTIVE){const a=r({[`${l}--loading`]:!0,[`${l}--loading--small`]:!0,[`${l}--loading--stop`]:t===v.INACTIVE});return i`
|
|
108
|
+
const y=`${n}-chain-of-thought-step`;let x=class extends o{constructor(){super(...arguments),this.open=!1,this.controlled=!1,this.panelId=`${n}-chain-of-thought-panel-id-${"undefined"!=typeof crypto&&"function"==typeof crypto.randomUUID?crypto.randomUUID():"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}`}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","list"),this.addEventListener("chain-of-thought-step-toggled",this.handleStepToggle),super.connectedCallback()}disconnectedCallback(){this.removeEventListener("chain-of-thought-step-toggled",this.handleStepToggle),super.disconnectedCallback()}get steps(){return this.querySelectorAll(y)}updated(t){t.has("controlled")&&this.propagateControlled(),t.has("open")&&void 0!==t.get("open")&&this.dispatchToggleEvent()}handleStepToggle(t){const{detail:e,target:a}=t;this.onStepToggle?.(Boolean(e?.open),a)}propagateControlled(){this.steps.forEach(t=>{this.controlled?(t.setAttribute("data-parent-controlled",""),t.setAttribute("controlled","")):t.hasAttribute("data-parent-controlled")&&(t.removeAttribute("data-parent-controlled"),t.removeAttribute("controlled"))})}dispatchToggleEvent(){const t={open:this.open,panelId:this.panelId};this.dispatchEvent(new CustomEvent("chain-of-thought-toggled",{detail:t,bubbles:!0,composed:!0}));const e=this.shadowRoot?.getElementById(this.panelId)??this;this.onToggle?.(this.open,e)}render(){return i`
|
|
109
|
+
<div class="${n}--chain-of-thought">
|
|
110
|
+
<div
|
|
111
|
+
id=${this.panelId}
|
|
112
|
+
class="${n}--chain-of-thought-content"
|
|
113
|
+
aria-hidden=${this.open?"false":"true"}
|
|
114
|
+
?hidden=${!this.open}
|
|
115
|
+
>
|
|
116
|
+
<div class="${n}--chain-of-thought-inner-content">
|
|
117
|
+
<slot></slot>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
`}};x.styles=m,e([a({type:Boolean,reflect:!0})],x.prototype,"open",void 0),e([a({type:Boolean,reflect:!0})],x.prototype,"controlled",void 0),e([a({type:String,attribute:"panel-id",reflect:!0})],x.prototype,"panelId",void 0),e([a({type:Function,attribute:!1})],x.prototype,"onToggle",void 0),e([a({type:Function,attribute:!1})],x.prototype,"onStepToggle",void 0),x=e([r("cds-aichat-chain-of-thought")],x);var k,$=x;!function(t){t.INACTIVE="inactive",t.ACTIVE="active",t.FINISHED="finished",t.ERROR="error"}(k||(k={}));var S=t([".cds--layer-one,:root{--cds-layer:var(--cds-layer-01,#f4f4f4);--cds-layer-active:var(--cds-layer-active-01,#c6c6c6);--cds-layer-background:var(--cds-layer-background-01,#fff);--cds-layer-hover:var(--cds-layer-hover-01,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-01,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-01,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-01,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-01,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-01,#a8a8a8);--cds-field:var(--cds-field-01,#f4f4f4);--cds-field-hover:var(--cds-field-hover-01,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-00,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-01,#c6c6c6);--cds-border-strong:var(--cds-border-strong-01,#8d8d8d);--cds-border-tile:var(--cds-border-tile-01,#c6c6c6)}.cds--layer-two{--cds-layer:var(--cds-layer-02,#fff);--cds-layer-active:var(--cds-layer-active-02,#c6c6c6);--cds-layer-background:var(--cds-layer-background-02,#f4f4f4);--cds-layer-hover:var(--cds-layer-hover-02,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-02,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-02,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-02,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-02,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-02,#a8a8a8);--cds-field:var(--cds-field-02,#fff);--cds-field-hover:var(--cds-field-hover-02,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-01,#c6c6c6);--cds-border-subtle-selected:var(--cds-border-subtle-selected-02,#c6c6c6);--cds-border-strong:var(--cds-border-strong-02,#8d8d8d);--cds-border-tile:var(--cds-border-tile-02,#a8a8a8)}.cds--layer-three{--cds-layer:var(--cds-layer-03,#f4f4f4);--cds-layer-active:var(--cds-layer-active-03,#c6c6c6);--cds-layer-background:var(--cds-layer-background-03,#fff);--cds-layer-hover:var(--cds-layer-hover-03,#e8e8e8);--cds-layer-selected:var(--cds-layer-selected-03,#e0e0e0);--cds-layer-selected-hover:var(--cds-layer-selected-hover-03,#d1d1d1);--cds-layer-accent:var(--cds-layer-accent-03,#e0e0e0);--cds-layer-accent-hover:var(--cds-layer-accent-hover-03,#d1d1d1);--cds-layer-accent-active:var(--cds-layer-accent-active-03,#a8a8a8);--cds-field:var(--cds-field-03,#f4f4f4);--cds-field-hover:var(--cds-field-hover-03,#e8e8e8);--cds-border-subtle:var(--cds-border-subtle-02,#e0e0e0);--cds-border-subtle-selected:var(--cds-border-subtle-selected-03,#c6c6c6);--cds-border-strong:var(--cds-border-strong-03,#8d8d8d);--cds-border-tile:var(--cds-border-tile-03,#c6c6c6)}.cds--layer-one.cds--layer__with-background,.cds--layer-three.cds--layer__with-background,.cds--layer-two.cds--layer__with-background{background-color:var(--cds-layer-background)}.cds--loading{border:0;box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;padding:0;vertical-align:baseline}.cds--loading *,.cds--loading :after,.cds--loading :before{box-sizing:inherit}.cds--loading{animation-duration:.69s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:cds--rotate;animation-timing-function:linear}.cds--loading svg circle{animation-duration:10ms;animation-name:cds--init-stroke;animation-timing-function:cubic-bezier(.5,0,.1,1)}@media screen and (prefers-reduced-motion:reduce){.cds--loading svg circle{animation:none}}.cds--loading{block-size:5.5rem;inline-size:5.5rem}.cds--loading__svg{fill:transparent}.cds--loading__svg circle{stroke-dasharray:276.4608 276.4608;stroke-linecap:butt;stroke-width:10}.cds--loading__stroke{stroke:var(--cds-interactive,#0f62fe);stroke-dashoffset:52.527552}.cds--loading--small .cds--loading__stroke{stroke-dashoffset:143.759616}.cds--loading--stop{animation:cds--rotate-end-p1 .7s cubic-bezier(0,0,.25,1) forwards,cds--rotate-end-p2 .7s cubic-bezier(0,0,.25,1) .7s forwards}.cds--loading--stop svg circle{animation-delay:.7s;animation-duration:.7s;animation-fill-mode:forwards;animation-name:cds--stroke-end;animation-timing-function:cubic-bezier(0,0,.25,1)}@media screen and (prefers-reduced-motion:reduce){.cds--loading--stop svg circle{animation:none}}.cds--loading--small{block-size:1rem;inline-size:1rem;line-height:1rem}.cds--loading--small circle{stroke-width:16}.cds--loading--small .cds--loading__svg{stroke:var(--cds-interactive,#0f62fe)}.cds--loading__background{stroke:var(--cds-layer-accent);stroke-dashoffset:-22}@supports (hanging-punctuation:first) and (font:-apple-system-body) and (-webkit-appearance:none){circle.cds--loading__background{stroke-dasharray:265;stroke-dashoffset:0}}.cds--loading-overlay{align-items:center;background-color:var(--cds-overlay,rgba(0,0,0,.6));block-size:100%;display:flex;inline-size:100%;inset-block-start:0;inset-inline-start:0;justify-content:center;position:fixed;transition:background-color .7s cubic-bezier(.4,.14,.3,1);z-index:6000}.cds--loading-overlay--stop{display:none}@keyframes cds--rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes cds--rotate-end-p1{to{transform:rotate(1turn)}}@keyframes cds--rotate-end-p2{to{transform:rotate(-1turn)}}@keyframes cds--init-stroke{0%{stroke-dashoffset:276.4608}to{stroke-dashoffset:52.527552}}@keyframes cds--stroke-end{0%{stroke-dashoffset:52.527552}to{stroke-dashoffset:276.4608}}@keyframes prefix--stroke{to{stroke-dashoffset:0}}.cds--inline-loading,:host(cds-inline-loading){align-items:center;color:var(--cds-text-secondary,#525252);display:flex;inline-size:100%;min-block-size:2rem}.cds--inline-loading__text{font-size:var(--cds-label-02-font-size,.875rem);font-weight:var(--cds-label-02-font-weight,400);letter-spacing:var(--cds-label-02-letter-spacing,.16px);line-height:var(--cds-label-02-line-height,1.28572)}.cds--inline-loading__animation{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem;position:relative}.cds--inline-loading__checkmark-container{fill:var(--cds-support-success,#24a148)}.cds--inline-loading__checkmark-container.cds--inline-loading__svg{inline-size:.75rem;inset-block-start:.75rem;position:absolute}.cds--inline-loading__checkmark-container[hidden]{display:none}.cds--inline-loading__checkmark{animation-duration:.25s;animation-fill-mode:forwards;animation-name:cds--stroke;fill:none;stroke:var(--cds-interactive,#0f62fe);stroke-dasharray:12;stroke-dashoffset:12;stroke-width:1.8;transform-origin:50% 50%}.cds--inline-loading--error{block-size:1rem;fill:var(--cds-support-error,#da1e28);inline-size:1rem}.cds--inline-loading--error[hidden]{display:none}.cds--loading--small .cds--inline-loading__svg{stroke:var(--cds-interactive,#0f62fe)}.cds--btn .cds--inline-loading--btn{min-block-size:0}.cds--btn .cds--inline-loading--btn .cds--inline-loading__text{font-size:var(--cds-body-short-01-font-size,.875rem);font-weight:var(--cds-body-short-01-font-weight,400);letter-spacing:var(--cds-body-short-01-letter-spacing,.16px);line-height:var(--cds-body-short-01-line-height,1.28572)}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){.cds--inline-loading__checkmark-container{inset-block-start:1px;inset-inline-end:.5rem}.cds--inline-loading__checkmark{animation:none;stroke-dasharray:0;stroke-dashoffset:0}}"]);let C=class extends o{constructor(){super(...arguments),this.iconDescription="Loading",this.successDelay=1500,this.status=k.ACTIVE}get assistiveText(){return this.iconDescription}set assistiveText(t){this.iconDescription=t}_renderIcon(){const{iconDescription:t,status:e}=this;if(e===k.ERROR)return u(c,{class:`${p}--inline-loading--error`,"aria-label":t});const a={bubbles:!0,cancelable:!0,composed:!0};if(e===k.FINISHED)return setTimeout(()=>{this.dispatchEvent(new CustomEvent(this.constructor.eventOnSuccess,a))},this.successDelay),u(d,{class:`${p}--inline-loading__checkmark-container`,"aria-label":t});if(e===k.INACTIVE||e===k.ACTIVE){const a=s({[`${p}--loading`]:!0,[`${p}--loading--small`]:!0,[`${p}--loading--stop`]:e===k.INACTIVE});return i`
|
|
109
122
|
<div class="${a}">
|
|
110
|
-
${(
|
|
111
|
-
<svg class="${l}--loading__svg" viewBox="0 0 100 100">
|
|
112
|
-
${e?i` <title>${e}</title> `:void 0}
|
|
113
|
-
<circle
|
|
114
|
-
?hidden="${!t}"
|
|
115
|
-
class="${l}--loading__background"
|
|
116
|
-
cx="50%"
|
|
117
|
-
cy="50%"
|
|
118
|
-
r="${"42"}" />
|
|
119
|
-
<circle
|
|
120
|
-
class="${l}--loading__stroke"
|
|
121
|
-
cx="50%"
|
|
122
|
-
cy="50%"
|
|
123
|
-
r="${"42"}" />
|
|
124
|
-
</svg>
|
|
125
|
-
`)({description:e,small:!0})}
|
|
123
|
+
${l({description:t,small:!0})}
|
|
126
124
|
</div>
|
|
127
|
-
`}}static get eventOnSuccess(){return`${
|
|
128
|
-
<div class="${
|
|
129
|
-
${
|
|
125
|
+
`}}static get eventOnSuccess(){return`${p}-inline-loading-onsuccess`}connectedCallback(){this.hasAttribute("aria-live")||this.setAttribute("aria-live","assertive"),super.connectedCallback()}render(){const t=this._renderIcon(),e=t?i`
|
|
126
|
+
<div class="${p}--inline-loading__animation">
|
|
127
|
+
${t}
|
|
130
128
|
</div>
|
|
131
129
|
`:void 0;return i`
|
|
132
|
-
${
|
|
133
|
-
<div class="${
|
|
134
|
-
`}};
|
|
130
|
+
${e}
|
|
131
|
+
<div class="${p}--inline-loading__text"><slot></slot></div>
|
|
132
|
+
`}};C.styles=S,e([a({attribute:"assistive-text"})],C.prototype,"assistiveText",null),e([a({attribute:"icon-description"})],C.prototype,"iconDescription",void 0),e([a({attribute:"success-delay"})],C.prototype,"successDelay",void 0),e([a({reflect:!0})],C.prototype,"status",void 0),C=e([h(`${p}-inline-loading`)],C);var T,z=t([":host{background:var(--cds-layer-02,var(--cds-layer-02,#fff));display:block;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}:host([data-step-parity=even]){background:var(--cds-layer-accent-02,var(--cds-layer-accent-02,#e0e0e0))}.cds-aichat--chain-of-thought-accordion-item-content{background:var(--cds-layer-01,#f4f4f4);color:var(--cds-text-primary,#161616);display:block;max-block-size:-moz-fit-content;max-block-size:fit-content;opacity:1;overflow:visible;transition:all allow-discrete .11s cubic-bezier(0,0,.38,.9)}.cds-aichat--chain-of-thought-item{padding-block:1rem;padding-inline:2rem 1rem}.cds-aichat--chain-of-thought-accordion-item-content[hidden]{display:none;max-block-size:0;opacity:0;overflow:hidden;padding-block:0;padding-inline:0}.cds-aichat--chain-of-thought-accordion-item-header-chevron{color:var(--cds-text-primary,#161616);display:flex;flex:0 1 2rem;justify-content:center}@media screen and (prefers-reduced-motion:reduce){.cds-aichat--chain-of-thought-accordion-item-header-chevron svg{fill:var(--cds-text-primary,#161616);transform:rotate(-270deg);transition:none}}.cds-aichat--chain-of-thought-accordion-item-header-chevron svg{fill:var(--cds-text-primary,#161616);transform:rotate(-270deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}.cds-aichat--chain-of-thought-accordion-item-header-chevron[data-open] svg{transform:rotate(-90deg)}.cds-aichat--chain-of-thought-accordion-item-header-chevron[data-disabled] svg{visibility:hidden}.cds-aichat--chain-of-thought-accordion-item-static{align-items:center;background:var(--cds-layer-accent-02,var(--cds-layer-accent-02,#e0e0e0));block-size:2rem;color:var(--cds-text-primary,#161616);display:flex;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:inherit;font-size:100%;inline-size:100%;margin:0;padding:0;text-align:start;vertical-align:baseline}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header *,.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header :after,.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header :before{box-sizing:inherit}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header::-moz-focus-inner{border:0}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header{align-items:center;background:var(--cds-layer-accent-02,var(--cds-layer-accent-02,#e0e0e0));block-size:2rem;display:flex;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);padding:.5rem 0}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header[disabled]{cursor:default}.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header:focus,.cds-aichat--chain-of-thought-accordion-item button.cds-aichat--chain-of-thought-accordion-item-header:focus-visible{box-shadow:0 -1px 0 0 var(--cds-focus,#0f62fe),inset 0 1px 0 0 var(--cds-focus,#0f62fe),inset 2px 0 0 0 var(--cds-focus,#0f62fe),0 1px 0 0 var(--cds-focus,#0f62fe),inset 0 -1px 0 0 var(--cds-focus,#0f62fe),inset -2px 0 0 0 var(--cds-focus,#0f62fe);outline:none;position:relative;z-index:2}:host([data-step-parity=odd]) .cds-aichat--chain-of-thought-accordion-item-static,:host([data-step-parity=odd]) button.cds-aichat--chain-of-thought-accordion-item-header{background:var(--cds-layer-02,var(--cds-layer-02,#fff))}.cds-aichat--chain-of-thought-accordion-item-header-title{color:var(--cds-text-primary,#161616);flex:1 1;margin-inline-end:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cds-aichat--chain-of-thought-accordion-item-header-status{align-items:center;display:flex;flex:0 0 1.5rem;justify-content:center}.cds-aichat--chain-of-thought-accordion-item-header-status--failure{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem}.cds-aichat--chain-of-thought-accordion-item-header-status--failure svg{fill:var(--cds-support-error,#da1e28)}.cds-aichat--chain-of-thought-accordion-item-header-status--success{align-items:center;display:flex;justify-content:center;margin-inline-end:.5rem}.cds-aichat--chain-of-thought-accordion-item-header-status--success svg{fill:var(--cds-support-success,#24a148)}"]);
|
|
135
133
|
/*
|
|
136
134
|
* Copyright IBM Corp. 2025
|
|
137
135
|
*
|
|
@@ -139,8 +137,7 @@ const g=new Intl.NumberFormat("en-US"),b=({stepNumber:e,stepTitle:t})=>`${g.form
|
|
|
139
137
|
* LICENSE file in the root directory of this source tree.
|
|
140
138
|
*
|
|
141
139
|
* @license
|
|
142
|
-
|
|
143
|
-
var $;k.styles=x,t([n({attribute:"assistive-text"})],k.prototype,"assistiveText",null),t([n({attribute:"icon-description"})],k.prototype,"iconDescription",void 0),t([n({attribute:"success-delay"})],k.prototype,"successDelay",void 0),t([n({reflect:!0})],k.prototype,"status",void 0),k=t([h(`${l}-inline-loading`)],k),function(e){e.PROCESSING="processing",e.FAILURE="failure",e.SUCCESS="success"}($||($={}));
|
|
140
|
+
*/!function(t){t.PROCESSING="processing",t.FAILURE="failure",t.SUCCESS="success"}(T||(T={}));
|
|
144
141
|
/*
|
|
145
142
|
* Copyright IBM Corp. 2025
|
|
146
143
|
*
|
|
@@ -149,7 +146,79 @@ var $;k.styles=x,t([n({attribute:"assistive-text"})],k.prototype,"assistiveText"
|
|
|
149
146
|
*
|
|
150
147
|
* @license
|
|
151
148
|
*/
|
|
152
|
-
const
|
|
149
|
+
const w=`${n}--chain-of-thought-accordion-item`,_=`${n}--chain-of-thought-accordion-item-header-status`,E=new Intl.NumberFormat("en-US");let I=0;const N=t=>`${w}-${t}-${I++}`;let L=class extends o{constructor(){super(...arguments),this.title="",this.stepNumber=0,this.labelText="",this.status=T.SUCCESS,this.open=!1,this.controlled=!1,this.statusSucceededLabelText="Succeeded",this.statusFailedLabelText="Failed",this.statusProcessingLabelText="Processing",this.hasBodyContent=!1,this.headerId=N("header"),this.contentId=N("content")}connectedCallback(){this.hasAttribute("role")||this.setAttribute("role","listitem"),super.connectedCallback(),this.evaluateBodyContent(),this.updateStepParity()}updated(t){t.has("stepNumber")&&this.updateStepParity()}firstUpdated(){const t=this.shadowRoot?.querySelector("slot:not([name])"),e=t?.assignedNodes({flatten:!0});e&&this.evaluateBodyContent(e)}getTriggerElement(){return this.shadowRoot?this.shadowRoot.querySelector(`.${w}-header`):null}evaluateBodyContent(t){const e=(t??Array.from(this.childNodes)).some(t=>this.isBodyNode(t));e!==this.hasBodyContent&&(this.hasBodyContent=e,e||!this.open||this.controlled||(this.open=!1))}isBodyNode(t){if(t.nodeType===Node.ELEMENT_NODE){const e=t;return!e.getAttribute("slot")&&(!this.isToolCallDataNode(e)||this.toolCallDataHasContent(e))}return t.nodeType===Node.TEXT_NODE&&Boolean(t.textContent?.trim())}updateStepParity(){if(this.stepNumber>0){const t=this.stepNumber%2==0?"even":"odd";this.setAttribute("data-step-parity",t)}else this.removeAttribute("data-step-parity")}isToolCallDataNode(t){return"cds-aichat-tool-call-data"===t.tagName.toLowerCase()}toolCallDataHasContent(t){const e=t.toolName??t.getAttribute("tool-name");return!!e?.toString().trim()||Array.from(t.childNodes).some(t=>this.hasChildContent(t))}hasChildContent(t){if(t.nodeType===Node.TEXT_NODE)return Boolean(t.textContent?.trim());if(t.nodeType===Node.ELEMENT_NODE){const e=t;return this.isToolCallDataNode(e)?this.toolCallDataHasContent(e):Array.from(e.childNodes).some(t=>this.hasChildContent(t))}return!1}handleBodySlotChange(t){const e=t.target.assignedNodes({flatten:!0});this.evaluateBodyContent(e)}handleToggleRequest(t=!this.open){const e={bubbles:!0,cancelable:!0,composed:!0,detail:{open:t}};this.dispatchEvent(new CustomEvent("chain-of-thought-step-beingtoggled",e))&&(this.controlled||(this.open=t),this.dispatchEvent(new CustomEvent("chain-of-thought-step-toggled",e)))}handleButtonClick(){this.hasBodyContent&&this.handleToggleRequest(!this.open)}handleButtonKeydown(t){this.open&&("Escape"!==t.key&&"Esc"!==t.key||(t.stopPropagation(),this.handleToggleRequest(!1)))}focus(t){const e=this.getTriggerElement();e?e.focus(t):super.focus(t)}getHeaderTitle(){if(this.labelText)return this.labelText;if(this.stepNumber>0){return`${E.format(this.stepNumber)}: ${this.title||""}`}return this.title}renderStatusIcon(){switch(this.status){case T.PROCESSING:return i`<cds-inline-loading
|
|
150
|
+
status="active"
|
|
151
|
+
aria-label="${this.statusProcessingLabelText}"
|
|
152
|
+
></cds-inline-loading>`;case T.FAILURE:return i`<span
|
|
153
|
+
class="${_}--${T.FAILURE}"
|
|
154
|
+
aria-label="${this.statusFailedLabelText}"
|
|
155
|
+
>${u(c)}</span
|
|
156
|
+
>`;default:return i`<span
|
|
157
|
+
class="${_}--${T.SUCCESS}"
|
|
158
|
+
aria-label="${this.statusSucceededLabelText}"
|
|
159
|
+
>${u(d)}</span
|
|
160
|
+
>`}}renderInteractiveHeader(){const t=this.getHeaderTitle();return i`
|
|
161
|
+
<button
|
|
162
|
+
id=${this.headerId}
|
|
163
|
+
type="button"
|
|
164
|
+
part="expando"
|
|
165
|
+
class="${w}-header"
|
|
166
|
+
aria-expanded="${String(this.open)}"
|
|
167
|
+
aria-controls="${this.contentId}"
|
|
168
|
+
@click=${this.handleButtonClick}
|
|
169
|
+
@keydown=${this.handleButtonKeydown}
|
|
170
|
+
>
|
|
171
|
+
<span
|
|
172
|
+
class="${w}-header-chevron"
|
|
173
|
+
?data-open=${this.open}
|
|
174
|
+
aria-hidden="true"
|
|
175
|
+
>
|
|
176
|
+
${u(b)}
|
|
177
|
+
</span>
|
|
178
|
+
<span class="${w}-header-title">
|
|
179
|
+
<slot name="title">${t}</slot>
|
|
180
|
+
</span>
|
|
181
|
+
<span class="${_}" aria-hidden="false"
|
|
182
|
+
>${this.renderStatusIcon()}</span
|
|
183
|
+
>
|
|
184
|
+
</button>
|
|
185
|
+
`}renderStaticHeader(){const t=this.getHeaderTitle();return i`
|
|
186
|
+
<div class="${w}-static" id=${this.headerId} part="expando">
|
|
187
|
+
<span class="${w}-header-chevron" aria-hidden="true"
|
|
188
|
+
>—</span
|
|
189
|
+
>
|
|
190
|
+
<span class="${w}-header-title">
|
|
191
|
+
<slot name="title">${t}</slot>
|
|
192
|
+
</span>
|
|
193
|
+
<span class="${_}" aria-hidden="true">
|
|
194
|
+
${this.renderStatusIcon()}
|
|
195
|
+
</span>
|
|
196
|
+
</div>
|
|
197
|
+
`}renderPanel(){const t=!this.hasBodyContent;return i`
|
|
198
|
+
<div
|
|
199
|
+
id=${this.contentId}
|
|
200
|
+
class="${w}-content"
|
|
201
|
+
part="wrapper"
|
|
202
|
+
aria-hidden="${this.open&&!t?"false":"true"}"
|
|
203
|
+
role=${g(t?void 0:"region")}
|
|
204
|
+
aria-labelledby=${g(t?void 0:this.headerId)}
|
|
205
|
+
?hidden=${t||!this.open}
|
|
206
|
+
>
|
|
207
|
+
<div
|
|
208
|
+
class="${n}--chain-of-thought-item"
|
|
209
|
+
part="content"
|
|
210
|
+
data-visible="${this.open&&!t}"
|
|
211
|
+
>
|
|
212
|
+
<slot
|
|
213
|
+
@slotchange=${this.handleBodySlotChange}
|
|
214
|
+
?hidden=${t}
|
|
215
|
+
></slot>
|
|
216
|
+
</div>
|
|
217
|
+
</div>
|
|
218
|
+
`}render(){const t=s({[w]:!0,[`${w}--open`]:this.open&&this.hasBodyContent,[`${w}--static`]:!this.hasBodyContent});return i`<div class=${t}>
|
|
219
|
+
${this.hasBodyContent?this.renderInteractiveHeader():this.renderStaticHeader()}
|
|
220
|
+
${this.renderPanel()}
|
|
221
|
+
</div>`}};L.styles=z,e([a({type:String,attribute:"title"})],L.prototype,"title",void 0),e([a({type:Number,attribute:"step-number",reflect:!0})],L.prototype,"stepNumber",void 0),e([a({type:String,attribute:"label-text"})],L.prototype,"labelText",void 0),e([a({type:String,attribute:"status"})],L.prototype,"status",void 0),e([a({type:Boolean,reflect:!0,attribute:"open"})],L.prototype,"open",void 0),e([a({type:Boolean,reflect:!0,attribute:"controlled"})],L.prototype,"controlled",void 0),e([a({type:String,attribute:"status-succeeded-label-text",reflect:!0})],L.prototype,"statusSucceededLabelText",void 0),e([a({type:String,attribute:"status-failed-label-text",reflect:!0})],L.prototype,"statusFailedLabelText",void 0),e([a({type:String,attribute:"status-processing-label-text",reflect:!0})],L.prototype,"statusProcessingLabelText",void 0),e([f()],L.prototype,"hasBodyContent",void 0),L=e([r("cds-aichat-chain-of-thought-step")],L);var A=t([":host{display:block;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}.cds-aichat--tool-call-data{padding-block-end:1rem}.cds-aichat--tool-call-data:last-child{padding-block-end:0}.cds-aichat--tool-call-data-label{font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857)}"]);
|
|
153
222
|
/*
|
|
154
223
|
* Copyright IBM Corp. 2025
|
|
155
224
|
*
|
|
@@ -157,115 +226,42 @@ const T=`${c}--chain-of-thought-item`,_=`${c}--chain-of-thought-accordion-item-h
|
|
|
157
226
|
* LICENSE file in the root directory of this source tree.
|
|
158
227
|
*
|
|
159
228
|
* @license
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
>
|
|
189
|
-
<span
|
|
190
|
-
class="${c}--chain-of-thought-accordion-item-header-chevron"
|
|
191
|
-
?data-disabled=${b}
|
|
192
|
-
?data-open=${t.open}
|
|
193
|
-
>${p(u)}</span
|
|
194
|
-
>
|
|
195
|
-
<span class="${c}--chain-of-thought-accordion-item-header-title"
|
|
196
|
-
>${r({stepNumber:f,stepTitle:t.title||t.tool_name||""})}</span
|
|
197
|
-
>
|
|
198
|
-
<span class="${_}"
|
|
199
|
-
>${function(e,t,a,o){switch(e){case $.PROCESSING:return i`<cds-inline-loading
|
|
200
|
-
status="active"
|
|
201
|
-
aria-label="${o}"
|
|
202
|
-
></cds-inline-loading>`;case $.FAILURE:return i`<span
|
|
203
|
-
class="${_}--${$.FAILURE}"
|
|
204
|
-
aria-label="${a}"
|
|
205
|
-
>${p(y)}</span
|
|
206
|
-
>`;default:return i`<span
|
|
207
|
-
class="${_}--${$.SUCCESS}"
|
|
208
|
-
aria-label="${t}"
|
|
209
|
-
>${p(d)}</span
|
|
210
|
-
>`}}(t.status||$.SUCCESS,s,l,h)}</span
|
|
211
|
-
>
|
|
212
|
-
</button>
|
|
213
|
-
<div
|
|
214
|
-
class="${c}--chain-of-thought-accordion-item-content"
|
|
215
|
-
id=${g}
|
|
216
|
-
?hidden=${!t.open}
|
|
217
|
-
>
|
|
218
|
-
${function(e,t){const{inputLabelText:a,outputLabelText:o,toolLabelText:n,filterPlaceholderText:r,previousPageText:s,nextPageText:c,itemsPerPageText:d,locale:l,getPaginationSupplementalText:h,getPaginationStatusText:p,feedback:u,showLessText:f,showMoreText:g,tooltipContent:b,getLineCountText:m}=e;return t.open?i` ${t.description?i`<div
|
|
219
|
-
class="${T} ${T}-description"
|
|
220
|
-
>
|
|
221
|
-
<cds-aichat-markdown
|
|
222
|
-
sanitize-html
|
|
223
|
-
markdown=${t.description}
|
|
224
|
-
filter-placeholder-text=${r}
|
|
225
|
-
previous-page-text=${s}
|
|
226
|
-
next-page-text=${c}
|
|
227
|
-
items-per-page-text=${d}
|
|
228
|
-
locale=${l}
|
|
229
|
-
.getPaginationSupplementalText=${h}
|
|
230
|
-
.getPaginationStatusText=${p}
|
|
231
|
-
feedback=${u}
|
|
232
|
-
show-less-text=${f}
|
|
233
|
-
show-more-text=${g}
|
|
234
|
-
tooltip-content=${b}
|
|
235
|
-
.getLineCountText=${m}
|
|
236
|
-
></cds-aichat-markdown>
|
|
237
|
-
</div>`:null}
|
|
238
|
-
${t.tool_name?i`<div
|
|
239
|
-
class="${T} ${T}-toolName"
|
|
240
|
-
>
|
|
241
|
-
<div class="${T}-label">${n}</div>
|
|
242
|
-
${t.tool_name}
|
|
243
|
-
</div>`:null}
|
|
244
|
-
${w(t.request?.args,a,"input",e)}
|
|
245
|
-
${w(t.response?.content,o,"output",e)}`:i``}(e,t)}
|
|
246
|
-
</div>
|
|
247
|
-
</div>`})}`:i``}let S=class extends m{render(){return function(e){const{_chainOfThoughtPanelID:t,explainabilityText:a,open:o,onToggle:n}=e;return i`<div class="${c}--chain-of-thought">
|
|
248
|
-
<button
|
|
249
|
-
class="${c}--chain-of-thought-button"
|
|
250
|
-
@click=${function(){e.open=!e.open,n?.(e.open,e)}}
|
|
251
|
-
aria-expanded=${o}
|
|
252
|
-
aria-controls=${t}
|
|
253
|
-
>
|
|
254
|
-
<span class="${c}--chain-of-thought-button-chevron"
|
|
255
|
-
>${p(u)}</span
|
|
229
|
+
*/const B=`${n}--tool-call-data`;let D=class extends o{constructor(){super(...arguments),this.toolName="",this.inputLabelText="Input",this.outputLabelText="Output",this.toolLabelText="Tool",this.hasDescriptionSlot=!1,this.hasInputSlot=!1,this.hasOutputSlot=!1}connectedCallback(){super.connectedCallback(),queueMicrotask(()=>this.syncSlotContent())}firstUpdated(){this.syncSlotContent()}handleSlotChange(t,e){const a=e.target.assignedNodes({flatten:!0}),o=this.hasAssignedContent(a);"description"===t&&o!==this.hasDescriptionSlot&&(this.hasDescriptionSlot=o),"input"===t&&o!==this.hasInputSlot&&(this.hasInputSlot=o),"output"===t&&o!==this.hasOutputSlot&&(this.hasOutputSlot=o)}syncSlotContent(){const t=this.shadowRoot?.querySelector('slot[name="description"]'),e=this.shadowRoot?.querySelector('slot[name="input"]'),a=this.shadowRoot?.querySelector('slot[name="output"]');t&&(this.hasDescriptionSlot=this.hasAssignedContent(t.assignedNodes({flatten:!0}))),e&&(this.hasInputSlot=this.hasAssignedContent(e.assignedNodes({flatten:!0}))),a&&(this.hasOutputSlot=this.hasAssignedContent(a.assignedNodes({flatten:!0})))}hasAssignedContent(t){return t.some(t=>t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.TEXT_NODE&&Boolean(t.textContent?.trim()))}render(){const t=Boolean(this.toolName);return t||this.hasDescriptionSlot||this.hasInputSlot||this.hasOutputSlot?i`
|
|
230
|
+
<div
|
|
231
|
+
class="${B} ${B}-description"
|
|
232
|
+
part="description"
|
|
233
|
+
?hidden=${!this.hasDescriptionSlot}
|
|
234
|
+
>
|
|
235
|
+
<slot
|
|
236
|
+
name="description"
|
|
237
|
+
@slotchange=${t=>this.handleSlotChange("description",t)}
|
|
238
|
+
></slot>
|
|
239
|
+
</div>
|
|
240
|
+
${t?i`<div class="${B} ${B}-toolName">
|
|
241
|
+
<div class="${B}-label">${this.toolLabelText}</div>
|
|
242
|
+
${this.toolName}
|
|
243
|
+
</div>`:null}
|
|
244
|
+
<div
|
|
245
|
+
class="${B} ${B}-input"
|
|
246
|
+
?hidden=${!this.hasInputSlot}
|
|
247
|
+
>
|
|
248
|
+
<div class="${B}-label">${this.inputLabelText}</div>
|
|
249
|
+
<slot
|
|
250
|
+
name="input"
|
|
251
|
+
@slotchange=${t=>this.handleSlotChange("input",t)}
|
|
252
|
+
></slot>
|
|
253
|
+
</div>
|
|
254
|
+
<div
|
|
255
|
+
class="${B} ${B}-output"
|
|
256
|
+
?hidden=${!this.hasOutputSlot}
|
|
256
257
|
>
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
?hidden=${!o}
|
|
263
|
-
>
|
|
264
|
-
<div class="${c}--chain-of-thought-inner-content">
|
|
265
|
-
${z(e)}
|
|
258
|
+
<div class="${B}-label">${this.outputLabelText}</div>
|
|
259
|
+
<slot
|
|
260
|
+
name="output"
|
|
261
|
+
@slotchange=${t=>this.handleSlotChange("output",t)}
|
|
262
|
+
></slot>
|
|
266
263
|
</div>
|
|
267
|
-
|
|
268
|
-
</div>`}
|
|
264
|
+
`:i``}};D.styles=A,e([a({type:String,attribute:"tool-name"})],D.prototype,"toolName",void 0),e([a({type:String,attribute:"input-label-text",reflect:!0})],D.prototype,"inputLabelText",void 0),e([a({type:String,attribute:"output-label-text",reflect:!0})],D.prototype,"outputLabelText",void 0),e([a({type:String,attribute:"tool-label-text",reflect:!0})],D.prototype,"toolLabelText",void 0),e([f()],D.prototype,"hasDescriptionSlot",void 0),e([f()],D.prototype,"hasInputSlot",void 0),e([f()],D.prototype,"hasOutputSlot",void 0),D=e([r("cds-aichat-tool-call-data")],D);var R=t([":host{display:block;font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857);max-inline-size:100%}:host([open]) .cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(0deg)}.cds-aichat--chain-of-thought-button-chevron{display:flex;flex-basis:1.5rem}@media screen and (prefers-reduced-motion:reduce){.cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(-90deg);transition:none}}.cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(-90deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}button.cds-aichat--chain-of-thought-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;box-sizing:border-box;cursor:pointer;display:inline-block;font-family:inherit;font-size:100%;inline-size:100%;margin:0;padding:0;text-align:start;vertical-align:baseline}button.cds-aichat--chain-of-thought-button *,button.cds-aichat--chain-of-thought-button :after,button.cds-aichat--chain-of-thought-button :before{box-sizing:inherit}button.cds-aichat--chain-of-thought-button::-moz-focus-inner{border:0}button.cds-aichat--chain-of-thought-button{align-items:center;color:var(--cds-text-primary,#161616);display:inline-flex;flex:0 0 auto;font-size:var(--cds-heading-01-font-size,.875rem);font-weight:var(--cds-heading-01-font-weight,600);inline-size:-moz-max-content;inline-size:max-content;letter-spacing:var(--cds-heading-01-letter-spacing,.16px);line-height:var(--cds-heading-01-line-height,1.42857);max-inline-size:100%;min-inline-size:0}.cds-aichat--chain-of-thought-button-label{flex:0 1 auto;min-inline-size:-moz-fit-content;min-inline-size:fit-content;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.cds-aichat--chain-of-thought-button:focus,button.cds-aichat--chain-of-thought-button:focus-visible{outline:2px solid var(--cds-focus,#0f62fe)}"]);
|
|
269
265
|
/*
|
|
270
266
|
* Copyright IBM Corp. 2025
|
|
271
267
|
*
|
|
@@ -273,4 +269,26 @@ function(e){if(e)try{if("object"==typeof e)return`\`\`\`\n${JSON.stringify(e,nul
|
|
|
273
269
|
* LICENSE file in the root directory of this source tree.
|
|
274
270
|
*
|
|
275
271
|
* @license
|
|
276
|
-
*/(this)
|
|
272
|
+
*/let O=class extends o{constructor(){super(...arguments),this.open=!1,this.openLabelText="Hide chain of thought",this.closedLabelText="Show chain of thought",this.disabled=!1}handleToggleClick(){if(this.disabled)return;const t=!this.open;this.open=t,this.dispatchEvent(new CustomEvent("chain-of-thought-toggle",{detail:{open:t,panelId:this.panelId},bubbles:!0,composed:!0}))}render(){const t=this.open?this.openLabelText:this.closedLabelText;return i`
|
|
273
|
+
<button
|
|
274
|
+
class="${n}--chain-of-thought-button"
|
|
275
|
+
type="button"
|
|
276
|
+
aria-expanded=${this.open?"true":"false"}
|
|
277
|
+
aria-controls=${g(this.panelId)}
|
|
278
|
+
?disabled=${this.disabled}
|
|
279
|
+
@click=${this.handleToggleClick}
|
|
280
|
+
>
|
|
281
|
+
<span
|
|
282
|
+
class="${n}--chain-of-thought-button-chevron"
|
|
283
|
+
aria-hidden="true"
|
|
284
|
+
>
|
|
285
|
+
${u(v)}
|
|
286
|
+
</span>
|
|
287
|
+
<span
|
|
288
|
+
class="${n}--chain-of-thought-button-label"
|
|
289
|
+
title=${t}
|
|
290
|
+
>
|
|
291
|
+
${t}
|
|
292
|
+
</span>
|
|
293
|
+
</button>
|
|
294
|
+
`}};O.styles=R,e([a({type:Boolean,reflect:!0})],O.prototype,"open",void 0),e([a({type:String,attribute:"open-label-text",reflect:!0})],O.prototype,"openLabelText",void 0),e([a({type:String,attribute:"closed-label-text",reflect:!0})],O.prototype,"closedLabelText",void 0),e([a({type:String,attribute:"panel-id",reflect:!0})],O.prototype,"panelId",void 0),e([a({type:Boolean,reflect:!0})],O.prototype,"disabled",void 0),O=e([r("cds-aichat-chain-of-thought-toggle")],O);export{x as CDSAIChatChainOfThought,L as CDSAIChatChainOfThoughtStep,O as CDSAIChatChainOfThoughtToggle,D as CDSAIChatToolCallData,T as ChainOfThoughtStepStatus,$ as default};
|