@carbon/ai-chat-components 0.5.0 → 0.6.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 +9201 -295
- package/dist/16-dhcD1XnN.js +91 -0
- package/dist/apl-DqFn9Cbk.js +91 -0
- package/dist/asciiarmor-CQVR_D9L.js +91 -0
- package/dist/asn1-Bdl290ll.js +91 -0
- package/dist/asterisk-CHhwduFx.js +91 -0
- package/dist/button-C7jiyqgq.js +157 -0
- package/dist/button-skeleton-CmP7IJd9.js +116 -0
- package/dist/carbon-element-Bx5dT_rO.js +91 -0
- package/dist/carbon-element-GZbOyRvd.js +91 -0
- package/dist/chain-of-thought.min.js +276 -0
- package/dist/chat-button.min.js +71 -81
- package/dist/checkbox-skeleton-DwliWSxe.js +166 -0
- package/dist/class-map-C991A_SZ.js +106 -0
- package/dist/clike-D_BRCCKx.js +91 -0
- package/dist/clojure-DJgQfSNr.js +91 -0
- package/dist/cmake-B-ZvYGPj.js +91 -0
- package/dist/cobol-DQkSt8H4.js +91 -0
- package/dist/code-snippet.min.js +91 -0
- package/dist/codemirror-runtime-BNdgITbn.js +173 -0
- package/dist/coffeescript-BLbmGaLw.js +91 -0
- package/dist/collection-helpers-CFQuvZZA.js +91 -0
- package/dist/commonlisp-C9udfub_.js +91 -0
- package/dist/crystal-Cx264mZy.js +91 -0
- package/dist/css-C3wBe_UD.js +91 -0
- package/dist/custom-element-Cn0sJQhF.js +96 -0
- package/dist/cypher-B6v9gzB5.js +91 -0
- package/dist/d-TP3OUaM_.js +91 -0
- package/dist/diff-Y92SrBOy.js +91 -0
- package/dist/dockerfile-b9e_zbYe.js +91 -0
- package/dist/dtd-CyzcM_UR.js +91 -0
- package/dist/dylan-CLgWKLaP.js +91 -0
- package/dist/ebnf-Cj21Kqae.js +91 -0
- package/dist/ecl-BcwtDAaq.js +91 -0
- package/dist/eiffel-Dgs2eMt8.js +91 -0
- package/dist/elm-Lz8luKdH.js +91 -0
- package/dist/erlang-M1-xYwsL.js +91 -0
- package/dist/factor-DMuLpKP7.js +91 -0
- package/dist/fcl-6D51jO4g.js +91 -0
- package/dist/feedback.min.js +300 -0
- package/dist/forth-C50AZvgy.js +91 -0
- package/dist/fortran-Dpu0QrPi.js +91 -0
- package/dist/gas-B9QnMcpy.js +91 -0
- package/dist/gherkin-DTyHG7By.js +91 -0
- package/dist/groovy-C5hIRvZS.js +91 -0
- package/dist/haskell-riE-Rg6U.js +91 -0
- package/dist/haxe-BKi5Bt6T.js +91 -0
- package/dist/http-CCf5f1Lw.js +91 -0
- package/dist/icon-button-slcp5_YI.js +143 -0
- package/dist/icon-loader-B470ctm0.js +101 -0
- package/dist/idl-ChujC8hT.js +91 -0
- package/dist/if-defined-KYZWA80L.js +96 -0
- package/dist/index-BE2hQiYV.js +91 -0
- package/dist/index-BJSu7ZrY.js +91 -0
- package/dist/index-BNCWBho3.js +91 -0
- package/dist/index-Bo9Cedlp.js +91 -0
- package/dist/index-BtGjzzQh.js +91 -0
- package/dist/index-BvcTcg8N.js +91 -0
- package/dist/index-CL7jwlI7.js +91 -0
- package/dist/index-CPho0oBg.js +91 -0
- package/dist/index-CSzVoPB_.js +91 -0
- package/dist/index-CbsQNetX.js +91 -0
- package/dist/index-CdZ_a1WB.js +91 -0
- package/dist/index-Ce_RTZPK.js +91 -0
- package/dist/index-Cic4krlv.js +91 -0
- package/dist/index-CqP0C8Q_.js +91 -0
- package/dist/index-CsEIBvob.js +91 -0
- package/dist/index-D5o8uLCI.js +168 -0
- package/dist/index-D8SIiSq6.js +367 -0
- package/dist/index-DP_9bMys.js +91 -0
- package/dist/index-DofS9KDk.js +91 -0
- package/dist/index-Duo7vkZg.js +91 -0
- package/dist/index-DxcNpyu9.js +91 -0
- package/dist/index-ET89Rloy.js +91 -0
- package/dist/index-LQA85hjt.js +91 -0
- package/dist/index-T4fwu_xG.js +91 -0
- package/dist/javascript-BXzknqbJ.js +91 -0
- package/dist/julia-Ks6uUXS_.js +91 -0
- package/dist/{settings-XW6XylsZ.js → lit-element-Cj6JUqRW.js} +70 -12
- package/dist/livescript-C-N_oa0B.js +91 -0
- package/dist/lua-DyvKK1uJ.js +91 -0
- package/dist/markdown.min.js +296 -0
- package/dist/mathematica-DEg7Ra1Y.js +91 -0
- package/dist/mbox-DreqCmNH.js +91 -0
- package/dist/mirc-Cf2JTO1B.js +91 -0
- package/dist/mllike-BrIsM2v2.js +91 -0
- package/dist/modelica-B8SYrhCg.js +91 -0
- package/dist/mscgen-Ci9STQqX.js +91 -0
- package/dist/mumps-DdZIEnoV.js +91 -0
- package/dist/nginx-csHLvOI4.js +91 -0
- package/dist/nsis-BJ14NiV_.js +91 -0
- package/dist/ntriples-r4TsB1vg.js +91 -0
- package/dist/octave-DAywLo7W.js +91 -0
- package/dist/oz-DF39EOLJ.js +91 -0
- package/dist/pascal-Cdx2JBFI.js +91 -0
- package/dist/perl-CUDzEjb5.js +91 -0
- package/dist/pig-BgGDN3Fs.js +91 -0
- package/dist/powershell-yf7ZzrwA.js +91 -0
- package/dist/processing.min.js +71 -4
- package/dist/properties-Cna57Jh2.js +91 -0
- package/dist/protobuf-CWUMO8BP.js +91 -0
- package/dist/pug-D44aRpDl.js +91 -0
- package/dist/puppet-9oZPpLZK.js +91 -0
- package/dist/python-BzmgDs2d.js +91 -0
- package/dist/q-DDRrIilQ.js +91 -0
- package/dist/query-CIc5rDzI.js +101 -0
- package/dist/r-DT4JIpvb.js +91 -0
- package/dist/radio-group-manager-Dy7yXQky.js +91 -0
- package/dist/reasoning-steps.min.js +171 -0
- package/dist/repeat-DA7noZfi.js +96 -0
- package/dist/rpm-Q94njsnC.js +91 -0
- package/dist/ruby-p6VwoSsc.js +91 -0
- package/dist/sas-C8r72_Ai.js +91 -0
- package/dist/scheme-Bw1qfPdY.js +91 -0
- package/dist/settings-Bx1fCry0.js +99 -0
- package/dist/shell-B0162WXP.js +91 -0
- package/dist/sieve-DcAl9TNY.js +91 -0
- package/dist/simple-mode-dBIHJK_w.js +91 -0
- package/dist/smalltalk-BRpoyy0q.js +91 -0
- package/dist/solr-CntivwdY.js +91 -0
- package/dist/sparql-CPxRv-GB.js +91 -0
- package/dist/spreadsheet-DiWzltX0.js +91 -0
- package/dist/sql-BZFWK8-D.js +91 -0
- package/dist/state-ldHJ0lGt.js +96 -0
- package/dist/stex-DVnajZzj.js +91 -0
- package/dist/stylus-BCkTgCvi.js +91 -0
- package/dist/swift-DumH6rGA.js +91 -0
- package/dist/sync-BrWXU4C6.js +91 -0
- package/dist/table-runtime-C-85Ozvo.js +510 -0
- package/dist/table.min.js +91 -0
- package/dist/tcl-Ds60z3Ro.js +91 -0
- package/dist/text-input-BNmEJ8ys.js +158 -0
- package/dist/textile-CgTb_UUX.js +91 -0
- package/dist/throttle-CT5ZAUBU.js +91 -0
- package/dist/tiddlywiki-D0BukLzX.js +91 -0
- package/dist/tiki-DlrtqA5_.js +91 -0
- package/dist/tile-container.min.js +70 -14
- package/dist/toml-CG0tgYZ1.js +91 -0
- package/dist/toolbar.min.js +180 -0
- package/dist/troff-DZdS2uzR.js +91 -0
- package/dist/ttcn-D2NdeEoM.js +91 -0
- package/dist/ttcn-cfg-dCpHFW8J.js +91 -0
- package/dist/turtle-DBImhCBD.js +91 -0
- package/dist/vb-BdASAZha.js +91 -0
- package/dist/vbscript-DlJph2V7.js +91 -0
- package/dist/velocity-ds6Akj1B.js +91 -0
- package/dist/verilog-KFajwNWD.js +91 -0
- package/dist/vhdl-DWozufY6.js +91 -0
- package/dist/webidl-BSUbcB__.js +91 -0
- package/dist/workspace-shell.min.js +162 -0
- package/dist/xquery-CvISDSSw.js +91 -0
- package/dist/yacas-BNn6e9ff.js +91 -0
- package/dist/z80-BwinLJKG.js +91 -0
- package/es/components/chain-of-thought/index.d.ts +4 -0
- package/es/components/chain-of-thought/index.js +11 -0
- package/es/components/chain-of-thought/index.js.map +1 -0
- package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.d.ts +15 -0
- package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.js +36 -0
- package/es/components/chain-of-thought/src/cds-aichat-chain-of-thought.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought.d.ts +87 -0
- package/es/components/chain-of-thought/src/chain-of-thought.js +189 -0
- package/es/components/chain-of-thought/src/chain-of-thought.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought.scss.js +13 -0
- package/es/components/chain-of-thought/src/chain-of-thought.scss.js.map +1 -0
- package/es/components/chain-of-thought/src/chain-of-thought.template.d.ts +5 -0
- package/es/components/chain-of-thought/src/chain-of-thought.template.js +206 -0
- package/es/components/chain-of-thought/src/chain-of-thought.template.js.map +1 -0
- package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.d.ts +10 -0
- package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.js +50 -0
- package/es/components/chain-of-thought/src/parse-unknown-data-to-markdown.js.map +1 -0
- package/es/components/chain-of-thought/src/types.d.ts +73 -0
- package/es/components/chain-of-thought/src/types.js +29 -0
- package/es/components/chain-of-thought/src/types.js.map +1 -0
- package/es/components/chat-button/defs.d.ts +25 -0
- package/es/components/chat-button/defs.js +36 -0
- package/es/components/chat-button/defs.js.map +1 -0
- package/es/components/chat-button/index.d.ts +1 -1
- package/es/components/chat-button/index.js +1 -1
- package/es/components/chat-button/src/chat-button.d.ts +32 -0
- package/es/components/chat-button/{chat-button.js → src/chat-button.js} +16 -10
- package/es/components/chat-button/src/chat-button.js.map +1 -0
- package/es/components/chat-button/src/chat-button.scss.js +1 -1
- package/es/components/code-snippet/index.d.ts +3 -0
- package/es/components/code-snippet/index.js +10 -0
- package/es/components/code-snippet/index.js.map +1 -0
- package/es/components/code-snippet/src/code-snippet-tile-container.d.ts +32 -0
- package/es/components/code-snippet/src/code-snippet-tile-container.js +143 -0
- package/es/components/code-snippet/src/code-snippet-tile-container.js.map +1 -0
- package/es/components/code-snippet/src/code-snippet.d.ts +482 -0
- package/es/components/code-snippet/src/code-snippet.js +592 -0
- package/es/components/code-snippet/src/code-snippet.js.map +1 -0
- package/es/components/code-snippet/src/code-snippet.scss.js +13 -0
- package/es/components/code-snippet/src/code-snippet.scss.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/base-setup.d.ts +12 -0
- package/es/components/code-snippet/src/codemirror/base-setup.js +65 -0
- package/es/components/code-snippet/src/codemirror/base-setup.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/codemirror-loader.d.ts +12 -0
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js +36 -0
- package/es/components/code-snippet/src/codemirror/codemirror-loader.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.d.ts +7 -0
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.js +13 -0
- package/es/components/code-snippet/src/codemirror/codemirror-runtime.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/content-sync.d.ts +12 -0
- package/es/components/code-snippet/src/codemirror/content-sync.js +72 -0
- package/es/components/code-snippet/src/codemirror/content-sync.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/editor-manager.d.ts +28 -0
- package/es/components/code-snippet/src/codemirror/editor-manager.js +75 -0
- package/es/components/code-snippet/src/codemirror/editor-manager.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/language-controller.d.ts +38 -0
- package/es/components/code-snippet/src/codemirror/language-controller.js +220 -0
- package/es/components/code-snippet/src/codemirror/language-controller.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/language-data.d.ts +6 -0
- package/es/components/code-snippet/src/codemirror/language-data.js +1043 -0
- package/es/components/code-snippet/src/codemirror/language-data.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/language-utils.d.ts +79 -0
- package/es/components/code-snippet/src/codemirror/language-utils.js +219 -0
- package/es/components/code-snippet/src/codemirror/language-utils.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/marker-utils.d.ts +123 -0
- package/es/components/code-snippet/src/codemirror/marker-utils.js +183 -0
- package/es/components/code-snippet/src/codemirror/marker-utils.js.map +1 -0
- package/es/components/code-snippet/src/codemirror/theme.d.ts +54 -0
- package/es/components/code-snippet/src/codemirror/theme.js +320 -0
- package/es/components/code-snippet/src/codemirror/theme.js.map +1 -0
- package/es/components/code-snippet/src/dom-utils.d.ts +24 -0
- package/es/components/code-snippet/src/dom-utils.js +63 -0
- package/es/components/code-snippet/src/dom-utils.js.map +1 -0
- package/es/components/code-snippet/src/formatters.d.ts +4 -0
- package/es/components/code-snippet/src/formatters.js +19 -0
- package/es/components/code-snippet/src/formatters.js.map +1 -0
- package/es/components/code-snippet/src/layout-utils.d.ts +22 -0
- package/es/components/code-snippet/src/layout-utils.js +63 -0
- package/es/components/code-snippet/src/layout-utils.js.map +1 -0
- package/es/components/code-snippet/src/streaming-manager.d.ts +24 -0
- package/es/components/code-snippet/src/streaming-manager.js +120 -0
- package/es/components/code-snippet/src/streaming-manager.js.map +1 -0
- package/es/components/feedback/index.d.ts +7 -0
- package/es/components/feedback/index.js +12 -0
- package/es/components/feedback/index.js.map +1 -0
- package/es/components/feedback/src/cds-aichat-feedback-buttons.d.ts +15 -0
- package/es/components/feedback/src/cds-aichat-feedback-buttons.js +36 -0
- package/es/components/feedback/src/cds-aichat-feedback-buttons.js.map +1 -0
- package/es/components/feedback/src/cds-aichat-feedback.d.ts +15 -0
- package/es/components/feedback/src/cds-aichat-feedback.js +36 -0
- package/es/components/feedback/src/cds-aichat-feedback.js.map +1 -0
- package/es/components/feedback/src/feedback-buttons.d.ts +56 -0
- package/es/components/feedback/src/feedback-buttons.js +104 -0
- package/es/components/feedback/src/feedback-buttons.js.map +1 -0
- package/es/components/feedback/src/feedback-buttons.scss.js +13 -0
- package/es/components/feedback/src/feedback-buttons.scss.js.map +1 -0
- package/es/components/feedback/src/feedback-buttons.template.d.ts +4 -0
- package/es/components/feedback/src/feedback-buttons.template.js +79 -0
- package/es/components/feedback/src/feedback-buttons.template.js.map +1 -0
- package/es/components/feedback/src/feedback.d.ts +114 -0
- package/es/components/feedback/src/feedback.js +182 -0
- package/es/components/feedback/src/feedback.js.map +1 -0
- package/es/components/feedback/src/feedback.scss.js +13 -0
- package/es/components/feedback/src/feedback.scss.js.map +1 -0
- package/es/components/feedback/src/feedback.template.d.ts +12 -0
- package/es/components/feedback/src/feedback.template.js +115 -0
- package/es/components/feedback/src/feedback.template.js.map +1 -0
- package/es/components/markdown/index.d.ts +2 -0
- package/es/components/markdown/index.js +9 -0
- package/es/components/markdown/index.js.map +1 -0
- package/es/components/markdown/src/cds-aichat-markdown.d.ts +13 -0
- package/es/components/markdown/src/cds-aichat-markdown.js +35 -0
- package/es/components/markdown/src/cds-aichat-markdown.js.map +1 -0
- package/es/components/markdown/src/markdown-renderer.d.ts +62 -0
- package/es/components/markdown/src/markdown-renderer.js +353 -0
- package/es/components/markdown/src/markdown-renderer.js.map +1 -0
- package/es/components/markdown/src/markdown-token-tree.d.ts +32 -0
- package/es/components/markdown/src/markdown-token-tree.js +178 -0
- package/es/components/markdown/src/markdown-token-tree.js.map +1 -0
- package/es/components/markdown/src/markdown.d.ts +44 -0
- package/es/components/markdown/src/markdown.js +238 -0
- package/es/components/markdown/src/markdown.js.map +1 -0
- package/es/components/markdown/src/markdown.scss.js +13 -0
- package/es/components/markdown/src/markdown.scss.js.map +1 -0
- package/es/components/markdown/src/markdown.template.d.ts +3 -0
- package/es/components/markdown/src/markdown.template.js +24 -0
- package/es/components/markdown/src/markdown.template.js.map +1 -0
- package/es/components/markdown/src/plugins/markdown-it-attrs.d.ts +7 -0
- package/es/components/markdown/src/plugins/markdown-it-attrs.js +84 -0
- package/es/components/markdown/src/plugins/markdown-it-attrs.js.map +1 -0
- package/es/components/markdown/src/plugins/markdown-it-highlight.d.ts +7 -0
- package/es/components/markdown/src/plugins/markdown-it-highlight.js +59 -0
- package/es/components/markdown/src/plugins/markdown-it-highlight.js.map +1 -0
- package/es/components/markdown/src/plugins/markdown-it-task-lists.d.ts +12 -0
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js +73 -0
- package/es/components/markdown/src/plugins/markdown-it-task-lists.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/core.d.ts +26 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/core.js +330 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/core.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.d.ts +6 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js +63 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/blocks.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.d.ts +6 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.js +43 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/code.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.d.ts +5 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.js +55 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/index.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.d.ts +19 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js +210 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/inline.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.d.ts +13 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js +156 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/lists.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.d.ts +13 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js +216 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/patterns/tables.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/types.d.ts +34 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/types.js +8 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/types.js.map +1 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/utils.d.ts +25 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/utils.js +62 -0
- package/es/components/markdown/src/plugins/markdownItAttrs/utils.js.map +1 -0
- package/es/components/markdown/src/utils/html-helpers.d.ts +2 -0
- package/es/components/markdown/src/utils/html-helpers.js +204 -0
- package/es/components/markdown/src/utils/html-helpers.js.map +1 -0
- package/es/components/markdown/src/utils/table-helpers.d.ts +31 -0
- package/es/components/markdown/src/utils/table-helpers.js +106 -0
- package/es/components/markdown/src/utils/table-helpers.js.map +1 -0
- package/es/components/markdown/src/utils.d.ts +8 -0
- package/es/components/markdown/src/utils.js +31 -0
- package/es/components/markdown/src/utils.js.map +1 -0
- package/es/components/reasoning-steps/index.d.ts +2 -0
- package/es/components/reasoning-steps/index.js +10 -0
- package/es/components/reasoning-steps/index.js.map +1 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.d.ts +29 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.js +231 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.js.map +1 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.scss.js +13 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-step.scss.js.map +1 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.d.ts +13 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.js +96 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.js.map +1 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.scss.js +13 -0
- package/es/components/reasoning-steps/src/cds-aichat-reasoning-steps.scss.js.map +1 -0
- package/es/components/table/index.d.ts +3 -0
- package/es/components/table/index.js +9 -0
- package/es/components/table/index.js.map +1 -0
- package/es/components/table/src/cds-aichat-table.d.ts +262 -0
- package/es/components/table/src/cds-aichat-table.js +511 -0
- package/es/components/table/src/cds-aichat-table.js.map +1 -0
- package/es/components/table/src/table-loader.d.ts +4 -0
- package/es/components/table/src/table-loader.js +28 -0
- package/es/components/table/src/table-loader.js.map +1 -0
- package/es/components/table/src/table-pagination.template.d.ts +27 -0
- package/es/components/table/src/table-pagination.template.js +55 -0
- package/es/components/table/src/table-pagination.template.js.map +1 -0
- package/es/components/table/src/table-runtime.d.ts +2 -0
- package/es/components/table/src/table-runtime.js +10 -0
- package/es/components/table/src/table-runtime.js.map +1 -0
- package/es/components/table/src/table-skeleton.template.d.ts +6 -0
- package/es/components/table/src/table-skeleton.template.js +34 -0
- package/es/components/table/src/table-skeleton.template.js.map +1 -0
- package/es/components/table/src/table.scss.js +13 -0
- package/es/components/table/src/table.scss.js.map +1 -0
- package/es/components/table/src/table.template.d.ts +10 -0
- package/es/components/table/src/table.template.js +89 -0
- package/es/components/table/src/table.template.js.map +1 -0
- package/es/components/table/src/types.d.ts +13 -0
- package/es/components/table/src/types.js +8 -0
- package/es/components/table/src/types.js.map +1 -0
- package/es/components/tile-container/src/styles.scss.js +1 -1
- package/es/components/toolbar/index.d.ts +1 -0
- package/es/components/toolbar/index.js +9 -0
- package/es/components/toolbar/index.js.map +1 -0
- package/es/components/toolbar/src/toolbar.d.ts +39 -0
- package/es/components/toolbar/src/toolbar.js +179 -0
- package/es/components/toolbar/src/toolbar.js.map +1 -0
- package/es/components/toolbar/src/toolbar.scss.js +13 -0
- package/es/components/toolbar/src/toolbar.scss.js.map +1 -0
- package/es/components/workspace-shell/index.d.ts +5 -0
- package/es/components/workspace-shell/index.js +13 -0
- package/es/components/workspace-shell/index.js.map +1 -0
- package/es/components/workspace-shell/src/styles.scss.js +13 -0
- package/es/components/workspace-shell/src/styles.scss.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell-body.d.ts +16 -0
- package/es/components/workspace-shell/src/workspace-shell-body.js +50 -0
- package/es/components/workspace-shell/src/workspace-shell-body.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell-footer.d.ts +19 -0
- package/es/components/workspace-shell/src/workspace-shell-footer.js +53 -0
- package/es/components/workspace-shell/src/workspace-shell-footer.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell-header.d.ts +27 -0
- package/es/components/workspace-shell/src/workspace-shell-header.js +77 -0
- package/es/components/workspace-shell/src/workspace-shell-header.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell-toolbar.d.ts +22 -0
- package/es/components/workspace-shell/src/workspace-shell-toolbar.js +61 -0
- package/es/components/workspace-shell/src/workspace-shell-toolbar.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell.d.ts +20 -0
- package/es/components/workspace-shell/src/workspace-shell.js +83 -0
- package/es/components/workspace-shell/src/workspace-shell.js.map +1 -0
- package/es/components/workspace-shell/src/workspace-shell.scss.js +13 -0
- package/es/components/workspace-shell/src/workspace-shell.scss.js.map +1 -0
- package/es/globals/utils/uuid.d.ts +5 -0
- package/es/globals/utils/uuid.js +32 -0
- package/es/globals/utils/uuid.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js +9 -0
- package/es/node_modules/@carbon/utilities/es/documentLang/documentLang.js.map +1 -0
- package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js +11 -0
- package/es/node_modules/@carbon/utilities/es/overflowHandler/overflowHandler.js.map +1 -0
- package/es/node_modules/@codemirror/autocomplete/dist/index.js +258 -0
- package/es/node_modules/@codemirror/autocomplete/dist/index.js.map +1 -0
- package/es/node_modules/@codemirror/commands/dist/index.js +1140 -0
- package/es/node_modules/@codemirror/commands/dist/index.js.map +1 -0
- package/es/node_modules/@codemirror/lint/dist/index.js +636 -0
- package/es/node_modules/@codemirror/lint/dist/index.js.map +1 -0
- package/es/node_modules/@lezer/common/dist/index.js +253 -0
- package/es/node_modules/@lezer/common/dist/index.js.map +1 -0
- package/es/node_modules/crelt/index.js +37 -0
- package/es/node_modules/crelt/index.js.map +1 -0
- package/es/react/ai-label.d.ts +2 -1
- package/es/react/ai-label.js +3 -2
- package/es/react/ai-label.js.map +1 -1
- package/es/react/button.d.ts +2 -1
- package/es/react/button.js +3 -2
- package/es/react/button.js.map +1 -1
- package/es/react/chain-of-thought.d.ts +7 -0
- package/es/react/chain-of-thought.js +29 -0
- package/es/react/chain-of-thought.js.map +1 -0
- package/es/react/chat-button.d.ts +4 -4
- package/es/react/chat-button.js +6 -4
- package/es/react/chat-button.js.map +1 -1
- package/es/react/code-snippet-tile-container.d.ts +5 -0
- package/es/react/code-snippet-tile-container.js +30 -0
- package/es/react/code-snippet-tile-container.js.map +1 -0
- package/es/react/code-snippet.d.ts +4 -0
- package/es/react/code-snippet.js +31 -0
- package/es/react/code-snippet.js.map +1 -0
- package/es/react/content-switcher.d.ts +7 -0
- package/es/react/content-switcher.js +37 -0
- package/es/react/content-switcher.js.map +1 -0
- package/es/react/feedback-buttons.d.ts +4 -0
- package/es/react/feedback-buttons.js +28 -0
- package/es/react/feedback-buttons.js.map +1 -0
- package/es/react/feedback.d.ts +6 -0
- package/es/react/feedback.js +32 -0
- package/es/react/feedback.js.map +1 -0
- package/es/react/icon-button.d.ts +2 -1
- package/es/react/icon-button.js +3 -2
- package/es/react/icon-button.js.map +1 -1
- package/es/react/icon.d.ts +4 -0
- package/es/react/icon.js +28 -0
- package/es/react/icon.js.map +1 -0
- package/es/react/markdown.d.ts +4 -0
- package/es/react/markdown.js +28 -0
- package/es/react/markdown.js.map +1 -0
- package/es/react/overflow-menu.d.ts +9 -0
- package/es/react/overflow-menu.js +40 -0
- package/es/react/overflow-menu.js.map +1 -0
- package/es/react/processing.d.ts +2 -1
- package/es/react/processing.js +3 -2
- package/es/react/processing.js.map +1 -1
- package/es/react/reasoning-step.d.ts +6 -0
- package/es/react/reasoning-step.js +31 -0
- package/es/react/reasoning-step.js.map +1 -0
- package/es/react/reasoning-steps.d.ts +3 -0
- package/es/react/reasoning-steps.js +27 -0
- package/es/react/reasoning-steps.js.map +1 -0
- package/es/react/tile-container.d.ts +2 -1
- package/es/react/tile-container.js +3 -2
- package/es/react/tile-container.js.map +1 -1
- package/es/react/tile.d.ts +3 -2
- package/es/react/tile.js +5 -4
- package/es/react/tile.js.map +1 -1
- package/es/react/toolbar.d.ts +4 -0
- package/es/react/toolbar.js +28 -0
- package/es/react/toolbar.js.map +1 -0
- package/es/react/utils/withWebComponentBridge.d.ts +15 -0
- package/es/react/utils/withWebComponentBridge.js +95 -0
- package/es/react/utils/withWebComponentBridge.js.map +1 -0
- package/es/testing/load-all-lazy-deps.d.ts +10 -0
- package/es/testing/load-all-lazy-deps.js +30 -0
- package/es/testing/load-all-lazy-deps.js.map +1 -0
- package/package.json +39 -5
- package/dist/carbon-element-CMR7BOhG.js +0 -24
- package/dist/class-map-h7IEvsL_.js +0 -39
- package/es/components/chat-button/chat-button.d.ts +0 -23
- package/es/components/chat-button/chat-button.js.map +0 -1
- package/es/components/chat-button/src/chat-button.template.d.ts +0 -16
- package/es/components/chat-button/src/chat-button.template.js +0 -27
- package/es/components/chat-button/src/chat-button.template.js.map +0 -1
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2025
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @license
|
|
11
|
+
*
|
|
12
|
+
* This bundle contains the following third-party dependencies:
|
|
13
|
+
*
|
|
14
|
+
* Also refer to the following links for the license of other third-party dependencies:
|
|
15
|
+
*
|
|
16
|
+
* https://www.npmjs.com/package/tslib
|
|
17
|
+
* https://www.npmjs.com/package/lit
|
|
18
|
+
* https://www.npmjs.com/package/markdown-it
|
|
19
|
+
* https://www.npmjs.com/package/lodash-es
|
|
20
|
+
* https://www.npmjs.com/package/dompurify
|
|
21
|
+
* https://www.npmjs.com/package/csv-stringify
|
|
22
|
+
* https://www.npmjs.com/package/lit-html
|
|
23
|
+
* https://www.npmjs.com/package/@carbon/web-components
|
|
24
|
+
* https://www.npmjs.com/package/codemirror
|
|
25
|
+
* https://www.npmjs.com/package/@codemirror/state
|
|
26
|
+
* https://www.npmjs.com/package/@codemirror/language
|
|
27
|
+
* https://www.npmjs.com/package/@codemirror/view
|
|
28
|
+
* https://www.npmjs.com/package/@codemirror/autocomplete
|
|
29
|
+
* https://www.npmjs.com/package/@codemirror/commands
|
|
30
|
+
* https://www.npmjs.com/package/@codemirror/lint
|
|
31
|
+
* https://www.npmjs.com/package/@codemirror/lang-sql
|
|
32
|
+
* https://www.npmjs.com/package/@codemirror/lang-cpp
|
|
33
|
+
* https://www.npmjs.com/package/@codemirror/lang-css
|
|
34
|
+
* https://www.npmjs.com/package/@codemirror/lang-go
|
|
35
|
+
* https://www.npmjs.com/package/@codemirror/lang-html
|
|
36
|
+
* https://www.npmjs.com/package/@codemirror/lang-java
|
|
37
|
+
* https://www.npmjs.com/package/@codemirror/lang-javascript
|
|
38
|
+
* https://www.npmjs.com/package/@codemirror/lang-json
|
|
39
|
+
* https://www.npmjs.com/package/@codemirror/lang-less
|
|
40
|
+
* https://www.npmjs.com/package/@codemirror/lang-jinja
|
|
41
|
+
* https://www.npmjs.com/package/@codemirror/lang-liquid
|
|
42
|
+
* https://www.npmjs.com/package/@codemirror/lang-markdown
|
|
43
|
+
* https://www.npmjs.com/package/@codemirror/lang-php
|
|
44
|
+
* https://www.npmjs.com/package/@codemirror/lang-rust
|
|
45
|
+
* https://www.npmjs.com/package/@codemirror/lang-sass
|
|
46
|
+
* https://www.npmjs.com/package/@codemirror/lang-python
|
|
47
|
+
* https://www.npmjs.com/package/@codemirror/lang-wast
|
|
48
|
+
* https://www.npmjs.com/package/@codemirror/lang-xml
|
|
49
|
+
* https://www.npmjs.com/package/@codemirror/legacy-modes
|
|
50
|
+
* https://www.npmjs.com/package/@codemirror/lang-yaml
|
|
51
|
+
* https://www.npmjs.com/package/@codemirror/lang-vue
|
|
52
|
+
* https://www.npmjs.com/package/@codemirror/lang-angular
|
|
53
|
+
* https://www.npmjs.com/package/@lezer/highlight
|
|
54
|
+
* https://www.npmjs.com/package/@carbon/icons
|
|
55
|
+
* https://www.npmjs.com/package/@carbon/utilities
|
|
56
|
+
* https://www.npmjs.com/package/@carbon/icon-helpers
|
|
57
|
+
* https://www.npmjs.com/package/program-language-detector
|
|
58
|
+
* https://www.npmjs.com/package/lit-element
|
|
59
|
+
* https://www.npmjs.com/package/@lit/reactive-element
|
|
60
|
+
* https://www.npmjs.com/package/@codemirror/search
|
|
61
|
+
* https://www.npmjs.com/package/crelt
|
|
62
|
+
* https://www.npmjs.com/package/w3c-keyname
|
|
63
|
+
* https://www.npmjs.com/package/style-mod
|
|
64
|
+
* https://www.npmjs.com/package/@marijn/find-cluster-break
|
|
65
|
+
* https://www.npmjs.com/package/@lezer/common
|
|
66
|
+
* https://www.npmjs.com/package/@lezer/lr
|
|
67
|
+
* https://www.npmjs.com/package/@lezer/java
|
|
68
|
+
* https://www.npmjs.com/package/@lezer/go
|
|
69
|
+
* https://www.npmjs.com/package/@lezer/css
|
|
70
|
+
* https://www.npmjs.com/package/@lezer/cpp
|
|
71
|
+
* https://www.npmjs.com/package/@lezer/html
|
|
72
|
+
* https://www.npmjs.com/package/@lezer/javascript
|
|
73
|
+
* https://www.npmjs.com/package/@lezer/markdown
|
|
74
|
+
* https://www.npmjs.com/package/@lezer/sass
|
|
75
|
+
* https://www.npmjs.com/package/@lezer/rust
|
|
76
|
+
* https://www.npmjs.com/package/@lezer/json
|
|
77
|
+
* https://www.npmjs.com/package/@lezer/php
|
|
78
|
+
* https://www.npmjs.com/package/@lezer/python
|
|
79
|
+
* https://www.npmjs.com/package/@lezer/yaml
|
|
80
|
+
* https://www.npmjs.com/package/@lezer/xml
|
|
81
|
+
* https://www.npmjs.com/package/@internationalized/number
|
|
82
|
+
* https://www.npmjs.com/package/linkify-it
|
|
83
|
+
* https://www.npmjs.com/package/mdurl
|
|
84
|
+
* https://www.npmjs.com/package/punycode.js
|
|
85
|
+
* https://www.npmjs.com/package/uc.micro
|
|
86
|
+
* https://www.npmjs.com/package/@floating-ui/dom
|
|
87
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
88
|
+
* https://www.npmjs.com/package/@floating-ui/utils
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
const n="cds",e=`\n a[href]:not(#start-sentinel, #end-sentinel), area[href], input:not([disabled]):not([tabindex='-1']),\n button:not([disabled]):not([tabindex='-1']),select:not([disabled]):not([tabindex='-1']),\n textarea:not([disabled]):not([tabindex='-1']),\n iframe, object, embed, *[tabindex]:not([tabindex='-1']), *[contenteditable=true],\n ${n}-accordion-item,\n ${n}-actionable-notification-button,\n ${n}-ai-label,\n ${n}-button,\n ${n}-breadcrumb-link,\n ${n}-checkbox,\n ${n}-code-snippet,\n ${n}-combo-box,\n ${n}-content-switcher-item,\n ${n}-copy-button,\n ${n}-table-header-row,\n ${n}-table-row,\n ${n}-table-toolbar-search,\n ${n}-date-picker-input,\n ${n}-dropdown,\n ${n}-icon-button,\n ${n}-input,\n ${n}-link,\n ${n}-number-input,\n ${n}-modal,\n ${n}-modal-close-button,\n ${n}-modal-footer-button,\n ${n}-multi-select,\n ${n}-inline-notification,\n ${n}-toast-notification,\n ${n}-overflow-menu,\n ${n}-overflow-menu-item,\n ${n}-page-sizes-select,\n ${n}-pages-select,\n ${n}-progress-step,\n ${n}-radio-button,\n ${n}-search,\n ${n}-slider,\n ${n}-slider-input,\n ${n}-structured-list,\n ${n}-tab,\n ${n}-filter-tag,\n ${n}-textarea,\n ${n}-text-input,\n ${n}-clickable-tile,\n ${n}-expandable-tile,\n ${n}-radio-tile,\n ${n}-selectable-tile,\n ${n}-toggle,\n ${n}-tooltip,\n ${n}-tooltip-definition,\n ${n}-tooltip-icon,\n ${n}-header-menu,\n ${n}-header-menu-button,\n ${n}-header-menu-item,\n ${n}-header-name,\n ${n}-header-nav-item,\n ${n}-side-nav-link,\n ${n}-side-nav-menu,\n ${n}-side-nav-menu-item,\n ${n}-slug\n`,t=n=>e=>"function"==typeof e?((n,e)=>{try{customElements.define(n,e)}catch(e){console.warn(`Attempting to re-define ${n}`)}return e})(n,e):((n,e)=>{const{kind:t,elements:i}=e;return{kind:t,elements:i,finisher(e){try{customElements.define(n,e)}catch(e){console.warn(`Attempting to re-define ${n}`)}}}})(n,e);export{t as c,n as p,e as s};
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*
|
|
4
|
+
* Copyright IBM Corp. 2025
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* @license
|
|
11
|
+
*
|
|
12
|
+
* This bundle contains the following third-party dependencies:
|
|
13
|
+
*
|
|
14
|
+
* Also refer to the following links for the license of other third-party dependencies:
|
|
15
|
+
*
|
|
16
|
+
* https://www.npmjs.com/package/tslib
|
|
17
|
+
* https://www.npmjs.com/package/lit
|
|
18
|
+
* https://www.npmjs.com/package/markdown-it
|
|
19
|
+
* https://www.npmjs.com/package/lodash-es
|
|
20
|
+
* https://www.npmjs.com/package/dompurify
|
|
21
|
+
* https://www.npmjs.com/package/csv-stringify
|
|
22
|
+
* https://www.npmjs.com/package/lit-html
|
|
23
|
+
* https://www.npmjs.com/package/@carbon/web-components
|
|
24
|
+
* https://www.npmjs.com/package/codemirror
|
|
25
|
+
* https://www.npmjs.com/package/@codemirror/state
|
|
26
|
+
* https://www.npmjs.com/package/@codemirror/language
|
|
27
|
+
* https://www.npmjs.com/package/@codemirror/view
|
|
28
|
+
* https://www.npmjs.com/package/@codemirror/autocomplete
|
|
29
|
+
* https://www.npmjs.com/package/@codemirror/commands
|
|
30
|
+
* https://www.npmjs.com/package/@codemirror/lint
|
|
31
|
+
* https://www.npmjs.com/package/@codemirror/lang-sql
|
|
32
|
+
* https://www.npmjs.com/package/@codemirror/lang-cpp
|
|
33
|
+
* https://www.npmjs.com/package/@codemirror/lang-css
|
|
34
|
+
* https://www.npmjs.com/package/@codemirror/lang-go
|
|
35
|
+
* https://www.npmjs.com/package/@codemirror/lang-html
|
|
36
|
+
* https://www.npmjs.com/package/@codemirror/lang-java
|
|
37
|
+
* https://www.npmjs.com/package/@codemirror/lang-javascript
|
|
38
|
+
* https://www.npmjs.com/package/@codemirror/lang-json
|
|
39
|
+
* https://www.npmjs.com/package/@codemirror/lang-less
|
|
40
|
+
* https://www.npmjs.com/package/@codemirror/lang-jinja
|
|
41
|
+
* https://www.npmjs.com/package/@codemirror/lang-liquid
|
|
42
|
+
* https://www.npmjs.com/package/@codemirror/lang-markdown
|
|
43
|
+
* https://www.npmjs.com/package/@codemirror/lang-php
|
|
44
|
+
* https://www.npmjs.com/package/@codemirror/lang-rust
|
|
45
|
+
* https://www.npmjs.com/package/@codemirror/lang-sass
|
|
46
|
+
* https://www.npmjs.com/package/@codemirror/lang-python
|
|
47
|
+
* https://www.npmjs.com/package/@codemirror/lang-wast
|
|
48
|
+
* https://www.npmjs.com/package/@codemirror/lang-xml
|
|
49
|
+
* https://www.npmjs.com/package/@codemirror/legacy-modes
|
|
50
|
+
* https://www.npmjs.com/package/@codemirror/lang-yaml
|
|
51
|
+
* https://www.npmjs.com/package/@codemirror/lang-vue
|
|
52
|
+
* https://www.npmjs.com/package/@codemirror/lang-angular
|
|
53
|
+
* https://www.npmjs.com/package/@lezer/highlight
|
|
54
|
+
* https://www.npmjs.com/package/@carbon/icons
|
|
55
|
+
* https://www.npmjs.com/package/@carbon/utilities
|
|
56
|
+
* https://www.npmjs.com/package/@carbon/icon-helpers
|
|
57
|
+
* https://www.npmjs.com/package/program-language-detector
|
|
58
|
+
* https://www.npmjs.com/package/lit-element
|
|
59
|
+
* https://www.npmjs.com/package/@lit/reactive-element
|
|
60
|
+
* https://www.npmjs.com/package/@codemirror/search
|
|
61
|
+
* https://www.npmjs.com/package/crelt
|
|
62
|
+
* https://www.npmjs.com/package/w3c-keyname
|
|
63
|
+
* https://www.npmjs.com/package/style-mod
|
|
64
|
+
* https://www.npmjs.com/package/@marijn/find-cluster-break
|
|
65
|
+
* https://www.npmjs.com/package/@lezer/common
|
|
66
|
+
* https://www.npmjs.com/package/@lezer/lr
|
|
67
|
+
* https://www.npmjs.com/package/@lezer/java
|
|
68
|
+
* https://www.npmjs.com/package/@lezer/go
|
|
69
|
+
* https://www.npmjs.com/package/@lezer/css
|
|
70
|
+
* https://www.npmjs.com/package/@lezer/cpp
|
|
71
|
+
* https://www.npmjs.com/package/@lezer/html
|
|
72
|
+
* https://www.npmjs.com/package/@lezer/javascript
|
|
73
|
+
* https://www.npmjs.com/package/@lezer/markdown
|
|
74
|
+
* https://www.npmjs.com/package/@lezer/sass
|
|
75
|
+
* https://www.npmjs.com/package/@lezer/rust
|
|
76
|
+
* https://www.npmjs.com/package/@lezer/json
|
|
77
|
+
* https://www.npmjs.com/package/@lezer/php
|
|
78
|
+
* https://www.npmjs.com/package/@lezer/python
|
|
79
|
+
* https://www.npmjs.com/package/@lezer/yaml
|
|
80
|
+
* https://www.npmjs.com/package/@lezer/xml
|
|
81
|
+
* https://www.npmjs.com/package/@internationalized/number
|
|
82
|
+
* https://www.npmjs.com/package/linkify-it
|
|
83
|
+
* https://www.npmjs.com/package/mdurl
|
|
84
|
+
* https://www.npmjs.com/package/punycode.js
|
|
85
|
+
* https://www.npmjs.com/package/uc.micro
|
|
86
|
+
* https://www.npmjs.com/package/@floating-ui/dom
|
|
87
|
+
* https://www.npmjs.com/package/@floating-ui/core
|
|
88
|
+
* https://www.npmjs.com/package/@floating-ui/utils
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
import{i as e,_ as t,a,x as i}from"./lit-element-Cj6JUqRW.js";import{c as o}from"./carbon-element-Bx5dT_rO.js";import{n,a as c}from"./class-map-C991A_SZ.js";import{r}from"./state-ldHJ0lGt.js";import{p as s}from"./settings-Bx1fCry0.js";import"./markdown.min.js";import{_ as d}from"./index-D8SIiSq6.js";import{p as l,c as h}from"./carbon-element-GZbOyRvd.js";import{i as u}from"./icon-loader-B470ctm0.js";import{_ as p}from"./16-dhcD1XnN.js";import"./throttle-CT5ZAUBU.js";import"./repeat-DA7noZfi.js";import"./button-skeleton-CmP7IJd9.js";import"./button-C7jiyqgq.js";import"./if-defined-KYZWA80L.js";import"./checkbox-skeleton-DwliWSxe.js";import"./query-CIc5rDzI.js";import"./index-D5o8uLCI.js";import"./tile-container.min.js";import"./radio-group-manager-Dy7yXQky.js";import"./icon-button-slcp5_YI.js";var f=e([":host{display:block;margin-block-start:1rem}: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}:host([open]) .cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(-90deg)}.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(-270deg);transition:none}}.cds-aichat--chain-of-thought-button-chevron svg{transform:rotate(-270deg);transition:all .11s cubic-bezier(.2,0,.38,.9)}.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}.cds-aichat--chain-of-thought-item:not(:last-child){padding-block-end:.75rem}.cds-aichat--chain-of-thought-item cds-aichat-markdown:not(:first-child){padding-block-start:.5rem}.cds-aichat--chain-of-thought-item-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)}button.cds-aichat--chain-of-thought-button{box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;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{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;inline-size:100%;padding:0;text-align:start}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:flex;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)}button.cds-aichat--chain-of-thought-button:focus,button.cds-aichat--chain-of-thought-button:focus-visible{outline:2px solid var(--cds-focus,#0f62fe)}.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 button.cds-aichat--chain-of-thought-accordion-item-header{box-sizing:border-box;font-family:inherit;font-size:100%;margin:0;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{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:0;cursor:pointer;display:inline-block;inline-size:100%;padding:0;text-align:start}.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,#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}.cds-aichat--chain-of-thought-accordion-item:nth-child(odd) button.cds-aichat--chain-of-thought-accordion-item-header{background: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)}"]);
|
|
92
|
+
/*
|
|
93
|
+
* Copyright IBM Corp. 2025
|
|
94
|
+
*
|
|
95
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
96
|
+
* LICENSE file in the root directory of this source tree.
|
|
97
|
+
*
|
|
98
|
+
* @license
|
|
99
|
+
*/
|
|
100
|
+
/*
|
|
101
|
+
* Copyright IBM Corp. 2025
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
104
|
+
* LICENSE file in the root directory of this source tree.
|
|
105
|
+
*
|
|
106
|
+
* @license
|
|
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=`${s}-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([r()],m.prototype,"_steps",void 0),t([r()],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 u(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),u(d,{class:`${l}--inline-loading__checkmark-container`,"aria-label":e});if(t===v.INACTIVE||t===v.ACTIVE){const a=c({[`${l}--loading`]:!0,[`${l}--loading--small`]:!0,[`${l}--loading--stop`]:t===v.INACTIVE});return i`
|
|
109
|
+
<div class="${a}">
|
|
110
|
+
${(({description:e,small:t})=>i`
|
|
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})}
|
|
126
|
+
</div>
|
|
127
|
+
`}}static get eventOnSuccess(){return`${l}-inline-loading-onsuccess`}connectedCallback(){this.hasAttribute("aria-live")||this.setAttribute("aria-live","assertive"),super.connectedCallback()}render(){const e=this._renderIcon(),t=e?i`
|
|
128
|
+
<div class="${l}--inline-loading__animation">
|
|
129
|
+
${e}
|
|
130
|
+
</div>
|
|
131
|
+
`:void 0;return i`
|
|
132
|
+
${t}
|
|
133
|
+
<div class="${l}--inline-loading__text"><slot></slot></div>
|
|
134
|
+
`}};
|
|
135
|
+
/*
|
|
136
|
+
* Copyright IBM Corp. 2025
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
139
|
+
* LICENSE file in the root directory of this source tree.
|
|
140
|
+
*
|
|
141
|
+
* @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"}($||($={}));
|
|
144
|
+
/*
|
|
145
|
+
* Copyright IBM Corp. 2025
|
|
146
|
+
*
|
|
147
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
148
|
+
* LICENSE file in the root directory of this source tree.
|
|
149
|
+
*
|
|
150
|
+
* @license
|
|
151
|
+
*/
|
|
152
|
+
const T=`${s}--chain-of-thought-item`,_=`${s}--chain-of-thought-accordion-item-header-status`;function w(e,t,a,o){const n=
|
|
153
|
+
/*
|
|
154
|
+
* Copyright IBM Corp. 2025
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
157
|
+
* LICENSE file in the root directory of this source tree.
|
|
158
|
+
*
|
|
159
|
+
* @license
|
|
160
|
+
*/
|
|
161
|
+
function(e){if(e)try{if("object"==typeof e)return`\`\`\`\n${JSON.stringify(e,null,2)}\n\`\`\`\n`;if("string"==typeof e)try{const t=JSON.parse(e);return`\`\`\`\n${JSON.stringify(t,null,2)}\n\`\`\`\n`}catch(t){return e}return String(e)}catch(e){return void console.error("Cannot parse step content",e)}}(e);return n?function(e,t,a,o){const{filterPlaceholderText:n,previousPageText:c,nextPageText:r,itemsPerPageText:s,locale:d,getPaginationSupplementalText:l,getPaginationStatusText:h,feedback:u,showLessText:p,showMoreText:f,tooltipContent:g,getLineCountText:b}=o;return i`<div
|
|
162
|
+
class="${T} ${T}-${a}"
|
|
163
|
+
>
|
|
164
|
+
<div class="${T}-label">${t}</div>
|
|
165
|
+
<cds-aichat-markdown
|
|
166
|
+
sanitize-html
|
|
167
|
+
markdown=${e}
|
|
168
|
+
filter-placeholder-text=${n}
|
|
169
|
+
previous-page-text=${c}
|
|
170
|
+
next-page-text=${r}
|
|
171
|
+
items-per-page-text=${s}
|
|
172
|
+
locale=${d}
|
|
173
|
+
.getPaginationSupplementalText=${l}
|
|
174
|
+
.getPaginationStatusText=${h}
|
|
175
|
+
feedback=${u}
|
|
176
|
+
show-less-text=${p}
|
|
177
|
+
show-more-text=${f}
|
|
178
|
+
tooltip-content=${g}
|
|
179
|
+
.getLineCountText=${b}
|
|
180
|
+
></cds-aichat-markdown>
|
|
181
|
+
</div>`}(n,t,a,o):i``}function z(e){const{_steps:t,open:a,_chainOfThoughtPanelID:o,onStepToggle:n,formatStepLabelText:c,statusSucceededLabelText:r,statusFailedLabelText:l,statusProcessingLabelText:h}=e;return a?i`${t.map((t,a)=>{const f=a+1,g=`${o}-step-${f}-content`,b=!t.description&&!t.request&&!t.response;return i`<div class="${s}--chain-of-thought-accordion-item">
|
|
182
|
+
<button
|
|
183
|
+
class="${s}--chain-of-thought-accordion-item-header"
|
|
184
|
+
@click=${()=>{t.open=!t.open,e.requestUpdate();const a=e.shadowRoot?.querySelector(`#${g}`);a&&n?.(t.open,a)}}
|
|
185
|
+
aria-expanded=${t.open}
|
|
186
|
+
aria-controls=${g}
|
|
187
|
+
?disabled=${b}
|
|
188
|
+
>
|
|
189
|
+
<span
|
|
190
|
+
class="${s}--chain-of-thought-accordion-item-header-chevron"
|
|
191
|
+
?data-disabled=${b}
|
|
192
|
+
?data-open=${t.open}
|
|
193
|
+
>${u(p)}</span
|
|
194
|
+
>
|
|
195
|
+
<span class="${s}--chain-of-thought-accordion-item-header-title"
|
|
196
|
+
>${c({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
|
+
>${u(y)}</span
|
|
206
|
+
>`;default:return i`<span
|
|
207
|
+
class="${_}--${$.SUCCESS}"
|
|
208
|
+
aria-label="${t}"
|
|
209
|
+
>${u(d)}</span
|
|
210
|
+
>`}}(t.status||$.SUCCESS,r,l,h)}</span
|
|
211
|
+
>
|
|
212
|
+
</button>
|
|
213
|
+
<div
|
|
214
|
+
class="${s}--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:c,previousPageText:r,nextPageText:s,itemsPerPageText:d,locale:l,getPaginationSupplementalText:h,getPaginationStatusText:u,feedback:p,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=${c}
|
|
225
|
+
previous-page-text=${r}
|
|
226
|
+
next-page-text=${s}
|
|
227
|
+
items-per-page-text=${d}
|
|
228
|
+
locale=${l}
|
|
229
|
+
.getPaginationSupplementalText=${h}
|
|
230
|
+
.getPaginationStatusText=${u}
|
|
231
|
+
feedback=${p}
|
|
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="${s}--chain-of-thought">
|
|
248
|
+
<button
|
|
249
|
+
class="${s}--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="${s}--chain-of-thought-button-chevron"
|
|
255
|
+
>${u(p)}</span
|
|
256
|
+
>
|
|
257
|
+
${a}
|
|
258
|
+
</button>
|
|
259
|
+
<div
|
|
260
|
+
id=${t}
|
|
261
|
+
class="${s}--chain-of-thought-content"
|
|
262
|
+
?hidden=${!o}
|
|
263
|
+
>
|
|
264
|
+
<div class="${s}--chain-of-thought-inner-content">
|
|
265
|
+
${z(e)}
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
</div>`}
|
|
269
|
+
/*
|
|
270
|
+
* Copyright IBM Corp. 2025
|
|
271
|
+
*
|
|
272
|
+
* This source code is licensed under the Apache-2.0 license found in the
|
|
273
|
+
* LICENSE file in the root directory of this source tree.
|
|
274
|
+
*
|
|
275
|
+
* @license
|
|
276
|
+
*/(this)}};S=t([o("cds-aichat-chain-of-thought")],S);var L=S;export{m as ChainOfThoughtElement,$ as ChainOfThoughtStepStatus,L as default};
|