agentui-wc 0.1.50 → 0.1.51

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.
Files changed (43) hide show
  1. package/README.md +2 -2
  2. package/dist/README.md +2 -2
  3. package/dist/agentui.esm.js +4 -4
  4. package/dist/agentui.esm.js.map +7 -7
  5. package/dist/agentui.min.js +4 -4
  6. package/dist/agentui.min.js.map +7 -7
  7. package/dist/chunks/advanced.js +1 -1
  8. package/dist/chunks/forms.js +1 -1
  9. package/dist/component-schema.json +1 -1
  10. package/dist/components/au-error-boundary.js +1 -1
  11. package/dist/components/au-example.js +1 -1
  12. package/dist/components/au-radio.js +1 -1
  13. package/dist/routes/alerts.js +1 -1
  14. package/dist/routes/avatars.js +1 -1
  15. package/dist/routes/badges.js +1 -1
  16. package/dist/routes/buttons.js +1 -1
  17. package/dist/routes/callouts.js +1 -1
  18. package/dist/routes/cards.js +1 -1
  19. package/dist/routes/checkboxes.js +1 -1
  20. package/dist/routes/chips.js +1 -1
  21. package/dist/routes/{chunk-3qgbyp5t.js → chunk-4mjan2sj.js} +1 -1
  22. package/dist/routes/codeblocks.js +1 -1
  23. package/dist/routes/confirms.js +1 -1
  24. package/dist/routes/datatables.js +1 -1
  25. package/dist/routes/dividers.js +1 -1
  26. package/dist/routes/dropdowns.js +1 -1
  27. package/dist/routes/enterprise.js +2 -2
  28. package/dist/routes/icons.js +1 -1
  29. package/dist/routes/inputs.js +1 -1
  30. package/dist/routes/layout.js +1 -1
  31. package/dist/routes/modals.js +1 -1
  32. package/dist/routes/navbar.js +1 -1
  33. package/dist/routes/progress.js +1 -1
  34. package/dist/routes/radios.js +1 -1
  35. package/dist/routes/skeletons.js +1 -1
  36. package/dist/routes/spinners.js +1 -1
  37. package/dist/routes/switches.js +1 -1
  38. package/dist/routes/tables.js +1 -1
  39. package/dist/routes/tabs.js +1 -1
  40. package/dist/routes/toasts.js +1 -1
  41. package/dist/routes/tooltips.js +1 -1
  42. package/dist/routes/virtual-lists.js +1 -1
  43. package/package.json +2 -2
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="assets/logo-banner-400.webp" alt="AgentUI" width="400">
2
+ <img src="https://raw.githubusercontent.com/GiuseppeScottoLavina/AgentUI/main/assets/banner-400.webp" alt="AgentUI" width="400">
3
3
  </p>
4
4
 
5
5
  <h1 align="center">AgentUI</h1>
@@ -68,7 +68,7 @@ AgentUI is built on four ideas:
68
68
  ---
69
69
 
70
70
  <p align="center">
71
- <img src="assets/demo-showcase.webp" alt="AgentUI Demo" width="700">
71
+ <img src="https://raw.githubusercontent.com/GiuseppeScottoLavina/AgentUI/main/assets/demo-showcase.webp" alt="AgentUI Demo" width="700">
72
72
  </p>
73
73
 
74
74
  ---
package/dist/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <p align="center">
2
- <img src="assets/logo-banner-400.webp" alt="AgentUI" width="400">
2
+ <img src="https://raw.githubusercontent.com/GiuseppeScottoLavina/AgentUI/main/assets/banner-400.webp" alt="AgentUI" width="400">
3
3
  </p>
4
4
 
5
5
  <h1 align="center">AgentUI</h1>
@@ -68,7 +68,7 @@ AgentUI is built on four ideas:
68
68
  ---
69
69
 
70
70
  <p align="center">
71
- <img src="assets/demo-showcase.webp" alt="AgentUI Demo" width="700">
71
+ <img src="https://raw.githubusercontent.com/GiuseppeScottoLavina/AgentUI/main/assets/demo-showcase.webp" alt="AgentUI Demo" width="700">
72
72
  </p>
73
73
 
74
74
  ---
@@ -114,7 +114,7 @@ ${Object.entries(a6).map(([Z,X])=>` --z-${Z}: ${X};`).join(`
114
114
  <span class="au-switch__thumb"></span>
115
115
  </span>
116
116
  ${$?`<span class="au-switch__label">${$}</span>`:""}
117
- `,this.style.display="inline-flex",this.style.alignItems="center",this.style.gap="12px",this.style.cursor=this.has("disabled")?"not-allowed":"pointer",this.#$()}update($,Z,X){this.#$()}#$(){let $=this.querySelector(".au-switch__track"),Z=this.querySelector(".au-switch__thumb"),X=this.has("checked"),J=this.has("disabled");if(this.style.cursor=J?"not-allowed":"pointer",$)if($.style.width="52px",$.style.height="32px",$.style.borderRadius="16px",$.style.position="relative",$.style.transition="background var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard)",J)$.style.background="color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent)";else $.style.background=X?"var(--md-sys-color-primary)":"var(--md-sys-color-surface-container-highest)";if(Z){let G=X?24:16,K=X?4:8,W=X?24:6;if(Z.style.width=`${G}px`,Z.style.height=`${G}px`,Z.style.borderRadius=`${G/2}px`,Z.style.position="absolute",Z.style.top=`${K}px`,Z.style.left=`${W}px`,Z.style.transition="all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized)",J)Z.style.background="color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent)",Z.style.boxShadow="none";else Z.style.background=X?"var(--md-sys-color-on-primary)":"var(--md-sys-color-outline)",Z.style.boxShadow="var(--md-sys-elevation-level1)"}let Q=this.querySelector(".au-switch__label");if(Q)Q.style.color=J?"color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent)":"var(--md-sys-color-on-surface)";this.setAttribute("aria-checked",String(X)),this.setAttribute("aria-disabled",String(J)),this.setAttribute("tabindex",J?"-1":"0");let Y=Q?.textContent||this.attr("label","");if(Y)this.setAttribute("aria-label",Y)}toggle(){if(this.has("checked"))this.removeAttribute("checked");else this.setAttribute("checked","");this.emit("au-change",{checked:this.has("checked")})}get checked(){return this.has("checked")}set checked($){if($)this.setAttribute("checked","");else this.removeAttribute("checked")}}_("au-switch",u1);class c1 extends z{static baseClass="au-radio-group";static cssFile="radio";static observedAttributes=["name","value"];connectedCallback(){super.connectedCallback(),this.setAttribute("role","radiogroup"),this.listen(this,"pointerdown",($)=>{let Z=$.target;while(Z&&Z.tagName!=="MU-RADIO")Z=Z.parentElement;if(Z&&!Z.hasAttribute("disabled"))y(Z,$)}),this.listen(this,"click",($)=>{let Z=$.target;while(Z&&Z.tagName!=="MU-RADIO")Z=Z.parentElement;if(Z&&!Z.hasAttribute("disabled"))this.select(Z.getAttribute("value"))})}render(){this.style.display="flex",this.style.flexDirection="column",this.style.gap="8px",this.setTimeout(()=>this.#$(),0)}update($,Z,X){if($==="value")this.#$()}#$(){let $=this.attr("value","");this.querySelectorAll("au-radio").forEach((Z)=>{if(Z.attr("value")===$)Z.setAttribute("checked","");else Z.removeAttribute("checked")})}select($){this.setAttribute("value",$),this.emit("au-change",{value:$})}get value(){return this.attr("value","")}set value($){this.setAttribute("value",$)}}class d1 extends z{static baseClass="au-radio";static observedAttributes=["value","checked","disabled","label"];#$="";#Z=!1;connectedCallback(){super.connectedCallback(),this.setAttribute("role","radio"),this.setupActivation(()=>{let $=this.closest("au-radio-group");if($)$.select(this.getAttribute("value"))})}render(){if(!this.#Z)this.#$=q(this.attr("label","")||this.textContent.trim()),this.#Z=!0;this.innerHTML=`
117
+ `,this.style.display="inline-flex",this.style.alignItems="center",this.style.gap="12px",this.style.cursor=this.has("disabled")?"not-allowed":"pointer",this.#$()}update($,Z,X){this.#$()}#$(){let $=this.querySelector(".au-switch__track"),Z=this.querySelector(".au-switch__thumb"),X=this.has("checked"),J=this.has("disabled");if(this.style.cursor=J?"not-allowed":"pointer",$)if($.style.width="52px",$.style.height="32px",$.style.borderRadius="16px",$.style.position="relative",$.style.transition="background var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-standard)",J)$.style.background="color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent)";else $.style.background=X?"var(--md-sys-color-primary)":"var(--md-sys-color-surface-container-highest)";if(Z){let G=X?24:16,K=X?4:8,W=X?24:6;if(Z.style.width=`${G}px`,Z.style.height=`${G}px`,Z.style.borderRadius=`${G/2}px`,Z.style.position="absolute",Z.style.top=`${K}px`,Z.style.left=`${W}px`,Z.style.transition="all var(--md-sys-motion-duration-short4) var(--md-sys-motion-easing-emphasized)",J)Z.style.background="color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent)",Z.style.boxShadow="none";else Z.style.background=X?"var(--md-sys-color-on-primary)":"var(--md-sys-color-outline)",Z.style.boxShadow="var(--md-sys-elevation-level1)"}let Q=this.querySelector(".au-switch__label");if(Q)Q.style.color=J?"color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent)":"var(--md-sys-color-on-surface)";this.setAttribute("aria-checked",String(X)),this.setAttribute("aria-disabled",String(J)),this.setAttribute("tabindex",J?"-1":"0");let Y=Q?.textContent||this.attr("label","");if(Y)this.setAttribute("aria-label",Y)}toggle(){if(this.has("checked"))this.removeAttribute("checked");else this.setAttribute("checked","");this.emit("au-change",{checked:this.has("checked")})}get checked(){return this.has("checked")}set checked($){if($)this.setAttribute("checked","");else this.removeAttribute("checked")}}_("au-switch",u1);class c1 extends z{static baseClass="au-radio-group";static cssFile="radio";static observedAttributes=["name","value"];connectedCallback(){super.connectedCallback(),this.setAttribute("role","radiogroup"),this.listen(this,"pointerdown",($)=>{let Z=$.target;while(Z&&Z.tagName!=="AU-RADIO")Z=Z.parentElement;if(Z&&!Z.hasAttribute("disabled"))y(Z,$)}),this.listen(this,"click",($)=>{let Z=$.target;while(Z&&Z.tagName!=="AU-RADIO")Z=Z.parentElement;if(Z&&!Z.hasAttribute("disabled"))this.select(Z.getAttribute("value"))})}render(){this.style.display="flex",this.style.flexDirection="column",this.style.gap="8px",this.setTimeout(()=>this.#$(),0)}update($,Z,X){if($==="value")this.#$()}#$(){let $=this.attr("value","");this.querySelectorAll("au-radio").forEach((Z)=>{if(Z.attr("value")===$)Z.setAttribute("checked","");else Z.removeAttribute("checked")})}select($){this.setAttribute("value",$),this.emit("au-change",{value:$})}get value(){return this.attr("value","")}set value($){this.setAttribute("value",$)}}class d1 extends z{static baseClass="au-radio";static observedAttributes=["value","checked","disabled","label"];#$="";#Z=!1;connectedCallback(){super.connectedCallback(),this.setAttribute("role","radio"),this.setupActivation(()=>{let $=this.closest("au-radio-group");if($)$.select(this.getAttribute("value"))})}render(){if(!this.#Z)this.#$=q(this.attr("label","")||this.textContent.trim()),this.#Z=!0;this.innerHTML=`
118
118
  <span class="au-radio__circle">
119
119
  <span class="au-radio__dot"></span>
120
120
  </span>
@@ -439,7 +439,7 @@ ${Object.entries(a6).map(([Z,X])=>` --z-${Z}: ${X};`).join(`
439
439
  <button class="au-agent-toolbar-btn" data-action="${X}" title="${$[X].label}">
440
440
  ${$[X].icon}
441
441
  </button>
442
- `).join("");this.innerHTML=Z}handleAction($,Z,X){this.dispatchEvent(new CustomEvent("au-action",{bubbles:!0,detail:{action:$}}))}}class M6 extends z{static get observedAttributes(){return["role","avatar","name","timestamp"]}static baseClass="au-message-bubble";constructor(){super();this._originalContent=null}get role(){return this.getAttribute("role")||"user"}get avatar(){return this.getAttribute("avatar")}get name(){return this.getAttribute("name")||(this.role==="user"?"You":"Assistant")}get timestamp(){return this.getAttribute("timestamp")}connectedCallback(){if(super.connectedCallback(),!this._originalContent)this._originalContent=Array.from(this.childNodes);this.render()}attributeChangedCallback($,Z,X){if(this.isConnected&&Z!==X)this.render()}render(){let $=this.role==="user",Z=$?"\uD83D\uDC64":"\uD83E\uDD16",X=$?"au-message-bubble-user":"au-message-bubble-assistant",J=document.createElement("div");J.className=`au-message-bubble-message ${X}`;let Q=document.createElement("div");if(Q.className=`au-message-bubble-avatar ${X}`,this.avatar){let U=document.createElement("img");U.src=this.avatar,U.alt=this.name,Q.appendChild(U)}else Q.textContent=Z;J.appendChild(Q);let Y=document.createElement("div");Y.className="au-message-bubble-content";let G=document.createElement("div");G.className=`au-message-bubble-header ${X}`;let K=document.createElement("span");if(K.className="au-message-bubble-name",K.textContent=this.name,G.appendChild(K),this.timestamp){let U=document.createElement("span");U.className="au-message-bubble-timestamp",U.textContent=this.timestamp,G.appendChild(U)}Y.appendChild(G);let W=document.createElement("div");if(W.className=`au-message-bubble-bubble ${X}`,this._originalContent)this._originalContent.forEach((U)=>W.appendChild(U.cloneNode(!0)));Y.appendChild(W),J.appendChild(Y),this.innerHTML="",this.appendChild(J)}}if(!customElements.get("au-prompt-input"))customElements.define("au-prompt-input",O6);if(!customElements.get("au-code-block"))customElements.define("au-code-block",N6);if(!customElements.get("au-agent-toolbar"))customElements.define("au-agent-toolbar",w6);if(!customElements.get("au-message-bubble"))customElements.define("au-message-bubble",M6);var J0=[];function R6(){return[...J0]}function A6(){J0.length=0}class T6 extends z{static baseClass="au-error-boundary";static observedAttributes=["fallback"];#$=!1;#Z=null;#X="";connectedCallback(){super.connectedCallback(),this.#X=this.innerHTML,this.listen(this,"error",this.#Y.bind(this)),this.#J()}#J(){let $=window.onerror;window.onerror=(Z,X,J,Q,Y)=>{if(this.#Q(Y))return this.#Y({detail:{error:Y,message:Z}}),!0;if($)return $(Z,X,J,Q,Y);return!1}}#Q($){if(!$?.stack)return!1;return Array.from(this.querySelectorAll("*")).filter((X)=>X.tagName.startsWith("MU-")).map((X)=>X.tagName.toLowerCase()).some((X)=>$.stack.includes(X))}#Y($){let Z=$?.detail?.error||$?.error||$;if(this.#$)return;if(this.#$=!0,this.#Z=Z,J0.push({timestamp:Date.now(),component:this.id||"au-error-boundary",error:{message:Z?.message||String(Z),stack:Z?.stack,name:Z?.name},context:{originalContent:this.#X.slice(0,200),parentUrl:window.location.href}}),J0.length>50)J0.shift();this.#G(),this.emit("au-error",{error:Z,boundary:this,recover:()=>this.recover()}),$?.stopPropagation?.()}#G(){let $=this.getAttribute("fallback");if($)this.innerHTML=$;else this.innerHTML=`
442
+ `).join("");this.innerHTML=Z}handleAction($,Z,X){this.dispatchEvent(new CustomEvent("au-action",{bubbles:!0,detail:{action:$}}))}}class M6 extends z{static get observedAttributes(){return["role","avatar","name","timestamp"]}static baseClass="au-message-bubble";constructor(){super();this._originalContent=null}get role(){return this.getAttribute("role")||"user"}get avatar(){return this.getAttribute("avatar")}get name(){return this.getAttribute("name")||(this.role==="user"?"You":"Assistant")}get timestamp(){return this.getAttribute("timestamp")}connectedCallback(){if(super.connectedCallback(),!this._originalContent)this._originalContent=Array.from(this.childNodes);this.render()}attributeChangedCallback($,Z,X){if(this.isConnected&&Z!==X)this.render()}render(){let $=this.role==="user",Z=$?"\uD83D\uDC64":"\uD83E\uDD16",X=$?"au-message-bubble-user":"au-message-bubble-assistant",J=document.createElement("div");J.className=`au-message-bubble-message ${X}`;let Q=document.createElement("div");if(Q.className=`au-message-bubble-avatar ${X}`,this.avatar){let U=document.createElement("img");U.src=this.avatar,U.alt=this.name,Q.appendChild(U)}else Q.textContent=Z;J.appendChild(Q);let Y=document.createElement("div");Y.className="au-message-bubble-content";let G=document.createElement("div");G.className=`au-message-bubble-header ${X}`;let K=document.createElement("span");if(K.className="au-message-bubble-name",K.textContent=this.name,G.appendChild(K),this.timestamp){let U=document.createElement("span");U.className="au-message-bubble-timestamp",U.textContent=this.timestamp,G.appendChild(U)}Y.appendChild(G);let W=document.createElement("div");if(W.className=`au-message-bubble-bubble ${X}`,this._originalContent)this._originalContent.forEach((U)=>W.appendChild(U.cloneNode(!0)));Y.appendChild(W),J.appendChild(Y),this.innerHTML="",this.appendChild(J)}}if(!customElements.get("au-prompt-input"))customElements.define("au-prompt-input",O6);if(!customElements.get("au-code-block"))customElements.define("au-code-block",N6);if(!customElements.get("au-agent-toolbar"))customElements.define("au-agent-toolbar",w6);if(!customElements.get("au-message-bubble"))customElements.define("au-message-bubble",M6);var J0=[];function R6(){return[...J0]}function A6(){J0.length=0}class T6 extends z{static baseClass="au-error-boundary";static observedAttributes=["fallback"];#$=!1;#Z=null;#X="";connectedCallback(){super.connectedCallback(),this.#X=this.innerHTML,this.listen(this,"error",this.#Y.bind(this)),this.#J()}#J(){let $=window.onerror;window.onerror=(Z,X,J,Q,Y)=>{if(this.#Q(Y))return this.#Y({detail:{error:Y,message:Z}}),!0;if($)return $(Z,X,J,Q,Y);return!1}}#Q($){if(!$?.stack)return!1;return Array.from(this.querySelectorAll("*")).filter((X)=>X.tagName.startsWith("AU-")).map((X)=>X.tagName.toLowerCase()).some((X)=>$.stack.includes(X))}#Y($){let Z=$?.detail?.error||$?.error||$;if(this.#$)return;if(this.#$=!0,this.#Z=Z,J0.push({timestamp:Date.now(),component:this.id||"au-error-boundary",error:{message:Z?.message||String(Z),stack:Z?.stack,name:Z?.name},context:{originalContent:this.#X.slice(0,200),parentUrl:window.location.href}}),J0.length>50)J0.shift();this.#G(),this.emit("au-error",{error:Z,boundary:this,recover:()=>this.recover()}),$?.stopPropagation?.()}#G(){let $=this.getAttribute("fallback");if($)this.innerHTML=$;else this.innerHTML=`
443
443
  <div class="au-error-boundary__fallback" role="alert" aria-live="polite">
444
444
  <au-icon name="error" style="--au-icon-size: 48px; color: var(--md-sys-color-error);"></au-icon>
445
445
  <p class="au-error-boundary__title">Something went wrong</p>
@@ -555,7 +555,7 @@ ${Object.entries(a6).map(([Z,X])=>` --z-${Z}: ${X};`).join(`
555
555
  </div>
556
556
  `,this.#X()}#Z($){let Z=new Set(["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"]),X=new Set(["a","abbr","b","bdo","br","cite","code","dfn","em","i","kbd","q","s","samp","small","span","strong","sub","sup","u","var"]),J="",Q=0,Y=" ",K=$.replace(/>\s+</g,"><").replace(/\s+/g," ").trim().split(/(<[^>]+>)/g).filter((W)=>W.trim());for(let W=0;W<K.length;W++){let U=K[W].trim();if(!U)continue;let D=U.startsWith("<"),F=U.startsWith("</"),V=U.endsWith("/>")||D&&Z.has(U.match(/<\/?(\w+)/)?.[1]?.toLowerCase());if(F)Q=Math.max(0,Q-1);let x=D?U.match(/<\/?(\w+)/)?.[1]?.toLowerCase():null,P=x&&X.has(x);if(D)if(!P||F){if(J&&!J.endsWith(`
557
557
  `))J+=`
558
- `;J+=Y.repeat(Q)+U}else J+=U;else J+=U;if(D&&!F&&!V&&!P)Q++}return J.trim()}#X(){this.style.display="block",this.style.marginBottom="24px";let $=this.querySelector(".au-example__card");if($)$.style.background="var(--md-sys-color-surface)",$.style.border="1px solid var(--md-sys-color-outline-variant)",$.style.borderRadius="var(--md-sys-shape-corner-large)";let Z=this.querySelector(".au-example__header");if(Z)Z.style.display="flex",Z.style.justifyContent="space-between",Z.style.alignItems="center",Z.style.padding="12px 16px",Z.style.borderBottom="1px solid var(--md-sys-color-outline-variant)",Z.style.background="var(--md-sys-color-surface-container-low)",Z.style.borderRadius="var(--md-sys-shape-corner-large) var(--md-sys-shape-corner-large) 0 0";let X=this.querySelector(".au-example__title");if(X)X.style.fontWeight="500",X.style.fontSize="var(--md-sys-typescale-title-small-size)",X.style.color="var(--md-sys-color-on-surface)",X.style.minWidth="0",X.style.overflow="hidden",X.style.textOverflow="ellipsis",X.style.whiteSpace="nowrap";let J=this.querySelector(".au-example__actions");if(J)J.style.display="flex",J.style.gap="4px";this.querySelectorAll(".au-example__btn").forEach((U)=>{U.style.background="transparent",U.style.border="none",U.style.cursor="pointer",U.style.padding="8px",U.style.borderRadius="50%",U.style.color="var(--md-sys-color-on-surface-variant)",U.style.display="flex",U.style.alignItems="center",U.style.justifyContent="center",U.style.transition="all 0.2s ease"});let Y=this.querySelector(".au-example__demo");if(Y){Y.style.boxSizing="border-box",Y.style.width="100%",Y.style.maxWidth="100%",Y.style.padding="24px",Y.style.display="flex",Y.style.flexWrap="wrap",Y.style.gap="16px",Y.style.alignItems="center",Y.style.justifyContent="flex-start";let U=new Set(["MU-STACK","MU-GRID","MU-LAYOUT"]);Array.from(Y.children).forEach((D)=>{if(!U.has(D.tagName))D.style.flexShrink="0"})}let G=this.querySelector(".au-example__code");if(G)G.style.borderTop="1px solid var(--md-sys-color-outline-variant)";let K=this.querySelector(".au-example__code au-code");if(K){K.style.borderTopLeftRadius="0",K.style.borderTopRightRadius="0",K.style.maxHeight="400px",K.style.overflow="auto";let U=K.querySelector(".au-code__header");if(U)U.style.borderRadius="0"}let W=document.createElement("style");if(W.textContent=`
558
+ `;J+=Y.repeat(Q)+U}else J+=U;else J+=U;if(D&&!F&&!V&&!P)Q++}return J.trim()}#X(){this.style.display="block",this.style.marginBottom="24px";let $=this.querySelector(".au-example__card");if($)$.style.background="var(--md-sys-color-surface)",$.style.border="1px solid var(--md-sys-color-outline-variant)",$.style.borderRadius="var(--md-sys-shape-corner-large)";let Z=this.querySelector(".au-example__header");if(Z)Z.style.display="flex",Z.style.justifyContent="space-between",Z.style.alignItems="center",Z.style.padding="12px 16px",Z.style.borderBottom="1px solid var(--md-sys-color-outline-variant)",Z.style.background="var(--md-sys-color-surface-container-low)",Z.style.borderRadius="var(--md-sys-shape-corner-large) var(--md-sys-shape-corner-large) 0 0";let X=this.querySelector(".au-example__title");if(X)X.style.fontWeight="500",X.style.fontSize="var(--md-sys-typescale-title-small-size)",X.style.color="var(--md-sys-color-on-surface)",X.style.minWidth="0",X.style.overflow="hidden",X.style.textOverflow="ellipsis",X.style.whiteSpace="nowrap";let J=this.querySelector(".au-example__actions");if(J)J.style.display="flex",J.style.gap="4px";this.querySelectorAll(".au-example__btn").forEach((U)=>{U.style.background="transparent",U.style.border="none",U.style.cursor="pointer",U.style.padding="8px",U.style.borderRadius="50%",U.style.color="var(--md-sys-color-on-surface-variant)",U.style.display="flex",U.style.alignItems="center",U.style.justifyContent="center",U.style.transition="all 0.2s ease"});let Y=this.querySelector(".au-example__demo");if(Y){Y.style.boxSizing="border-box",Y.style.width="100%",Y.style.maxWidth="100%",Y.style.padding="24px",Y.style.display="flex",Y.style.flexWrap="wrap",Y.style.gap="16px",Y.style.alignItems="center",Y.style.justifyContent="flex-start";let U=new Set(["AU-STACK","AU-GRID","AU-LAYOUT"]);Array.from(Y.children).forEach((D)=>{if(!U.has(D.tagName))D.style.flexShrink="0"})}let G=this.querySelector(".au-example__code");if(G)G.style.borderTop="1px solid var(--md-sys-color-outline-variant)";let K=this.querySelector(".au-example__code au-code");if(K){K.style.borderTopLeftRadius="0",K.style.borderTopRightRadius="0",K.style.maxHeight="400px",K.style.overflow="auto";let U=K.querySelector(".au-code__header");if(U)U.style.borderRadius="0"}let W=document.createElement("style");if(W.textContent=`
559
559
  .au-example__btn:hover {
560
560
  background: var(--md-sys-color-surface-container-high) !important;
561
561
  color: var(--md-sys-color-primary) !important;
@@ -591,4 +591,4 @@ ${Object.entries(a6).map(([Z,X])=>` --z-${Z}: ${X};`).join(`
591
591
  </div>
592
592
  `,this.style.display="block"}#Z(){let $=this.querySelector(".au-doc-page__tabs"),Z=this.querySelectorAll(".au-doc-page__content");if($)this.listen($,"au-tab-change",(X)=>{this.#$=X.detail.index,Z.forEach((J,Q)=>{J.style.display=Q===this.#$?"block":"none"})})}}_("au-doc-page",I6);if(!H.hasListeners(N.TOAST_SHOW))H.on(N.TOAST_SHOW,($)=>{v0.show($.message,$)});if(typeof window<"u"){window.AgentUI={signal:m,computed:u,effect:j0,batch:X1,Theme:f,bus:H,UIEvents:N,showToast:i0,createStore:o,appStore:n,Router:$1,http:Z1,HttpError:g,createFormState:J1,getFormValues:Q1,AgentAPI:W1,getAuComponentTree:c,describeComponent:x0,findByLabel:L0,getRegisteredComponents:r,createNamespacedStore:q0,getStore:o0,getAllStores:n0,captureAppState:s0,restoreAppState:r0,getStateHistory:t0,enableObservability:a0,disableObservability:e0,FeatureRegistry:U1,createFeature:N0,getFeatures:w0,getFeature:M0,getFeatureComponents:R0,getFeatureSummary:A0,getErrors:R6,clearErrors:A6,ComponentSchema:z1,getComponentSchema:T0,getAllSchemas:k0,getSchemaComponents:y0,getSchemaQuickRef:S0,enableVisualMarkers:P0,disableVisualMarkers:t,getMarkerMap:H0,getMarkerElement:B0,getMCPActions:O0,muConfirm:z6,async discoverAll(){if(!z._describeCatalog)await this.loadDescriptions();let Z={},X=["au-button","au-input","au-textarea","au-card","au-modal","au-alert","au-toast","au-checkbox","au-switch","au-radio","au-dropdown","au-tabs","au-tab","au-chip","au-badge","au-avatar","au-progress","au-spinner","au-skeleton","au-tooltip","au-table","au-datatable","au-form","au-stack","au-grid","au-container","au-divider","au-drawer","au-sidebar","au-navbar","au-bottom-nav","au-layout","au-router","au-page","au-theme-toggle","au-splash","au-virtual-list","au-lazy","au-repeat","au-fetch","au-confirm","au-schema-form","au-prompt-ui","au-error-boundary","au-code","au-callout","au-icon","au-api-table","au-example","au-doc-page"];for(let J of X){let Q=customElements.get(J);if(Q?.describe)Z[J]=Q.describe()}return Z},async loadDescriptions(){if(z._describeCatalog)return;let Z=document.querySelectorAll("script[src]"),X="";for(let Q of Z)if(Q.src.includes("agentui")){X=Q.src.substring(0,Q.src.lastIndexOf("/")+1);break}let J=X+"describe-catalog.json";try{let Q=await fetch(J);if(Q.ok)z._describeCatalog=await Q.json()}catch(Q){if(window.MICROUI_DEBUG)console.warn("[AgentUI] Could not load describe catalog from",J)}}};let $=()=>{if(window.MICROUI_DEBUG)console.log("[AgentUI] All components registered, emitting au-ready");document.dispatchEvent(new CustomEvent("au-ready",{detail:{version:"0.1.23",components:Array.from(customElements).length,timestamp:Date.now()}})),window.AgentUI.ready=!0};if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",$,{once:!0});else queueMicrotask($);if(window.MICROUI_DEBUG)console.log("[AgentUI] Debug mode enabled"),console.log("[AgentUI] Registered components:",r())}export{$4 as yieldToMain,y4 as transitionNamed,F1 as transition,B1 as throttle,j1 as supportsViewTransitions,V1 as supportsScheduler,m as signal,i0 as showToast,I0 as scheduler,x1 as scheduleTask,T4 as safe,C4 as runImmediate,I4 as runBackground,r0 as restoreAppState,E4 as processWithYield,h4 as processInChunks,S4 as navigateWithTransition,z6 as muConfirm,v4 as memo,D1 as keyboard,e6 as injectLayerTokens,Z1 as http,k4 as html,o0 as getStore,t0 as getStateHistory,S0 as getSchemaQuickRef,y0 as getSchemaComponents,r as getRegisteredComponents,H0 as getMarkerMap,B0 as getMarkerElement,O0 as getMCPActions,Q1 as getFormValues,w0 as getFeatures,A0 as getFeatureSummary,R0 as getFeatureComponents,M0 as getFeature,R6 as getErrors,T0 as getComponentSchema,c as getAuComponentTree,n0 as getAllStores,k0 as getAllSchemas,L0 as findByLabel,q as escapeHTML,P0 as enableVisualMarkers,a0 as enableObservability,j0 as effect,f4 as domBatch,t as disableVisualMarkers,e0 as disableObservability,x0 as describeComponent,_ as define,P1 as debounce,b4 as createVisibilityObserver,o as createStore,y as createRipple,q0 as createNamespacedStore,J1 as createFormState,N0 as createFeature,u as computed,A6 as clearErrors,s0 as captureAppState,H as bus,C as breakpoints,X1 as batch,n6 as attachRipple,n as appStore,L1 as afterPaint,a6 as Z_INDEX,N as UIEvents,v0 as Toast,f as Theme,$1 as Router,B4 as RippleMixin,_1 as KeyboardManager,g4 as IconNames,g as HttpError,U1 as FeatureRegistry,z1 as ComponentSchema,q1 as BreakpointObserver,E0 as BREAKPOINTS,V6 as AuVirtualList,X6 as AuTr,U6 as AuTooltip,W6 as AuToast,j6 as AuThemeToggle,$6 as AuThead,J6 as AuTh,f1 as AuTextarea,Q6 as AuTd,Z6 as AuTbody,n1 as AuTabs,e1 as AuTable,s1 as AuTab,u1 as AuSwitch,H1 as AuStack,F6 as AuSplash,K6 as AuSpinner,G6 as AuSkeleton,k1 as AuSidebarItem,T1 as AuSidebar,H6 as AuSchemaForm,D6 as AuRouter,L6 as AuRepeat,c1 as AuRadioGroup,d1 as AuRadio,O6 as AuPromptInput,a1 as AuProgress,q6 as AuPage,p1 as AuOption,R1 as AuNavbarLinks,M1 as AuNavbarBrand,A1 as AuNavbarActions,w1 as AuNavbar,$0 as AuNavItem,d as AuModal,M6 as AuMessageBubble,x6 as AuLazy,S1 as AuLayout,b1 as AuInput,I1 as AuIcon,O1 as AuGrid,h1 as AuForm,P6 as AuFetch,E6 as AuExample,T6 as AuErrorBoundary,z as AuElement,g1 as AuDropdown,$0 as AuDrawerItem,E1 as AuDrawer,I6 as AuDocPage,y1 as AuDivider,B6 as AuDataTable,N1 as AuContainer,_6 as AuConfirm,N6 as AuCodeBlock,k6 as AuCode,i1 as AuChip,m1 as AuCheckbox,l1 as AuCard,o1 as AuCallout,v1 as AuButton,C1 as AuBottomNav,t1 as AuBadge,Y6 as AuAvatar,y6 as AuApiTable,S6 as AuApiRow,r1 as AuAlert,w6 as AuAgentToolbar,W1 as AgentAPI};
593
593
 
594
- //# debugId=F34C79F229B35D2864756E2164756E21
594
+ //# debugId=A9914A0936252CCC64756E2164756E21