tinkiet 0.11.4 → 0.11.8

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.
@@ -1,17 +1,21 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js")):"function"==typeof define&&define.amd?define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js"],e):"object"==typeof exports?exports.tinkiet=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js")):t.tinkiet=e(t.lit,t["lit/decorators.js"],t["lit/directives/class-map.js"],t["lit/directives/if-defined.js"],t["lit/directives/unsafe-html.js"])}(this,(t,e,r,o,a)=>(()=>{"use strict";var i={125:t=>{t.exports=r},161:e=>{e.exports=t},291:t=>{t.exports=o},429:t=>{t.exports=e},968:t=>{t.exports=a}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var l={};s.r(l),s.d(l,{NotieLevel:()=>It,TkAccordion:()=>m,TkBadge:()=>x,TkBox:()=>p,TkButton:()=>$,TkCheckbox:()=>_,TkChip:()=>S,TkDialog:()=>C,TkDrawer:()=>T,TkForm:()=>R,TkIcon:()=>q,TkIcons:()=>N,TkListItem:()=>M,TkLoading:()=>Tt,TkNavigationBar:()=>Rt,TkNavigationItem:()=>Lt,TkNotie:()=>Kt,TkPages:()=>Yt,TkRadio:()=>Ft,TkSelect:()=>Wt,TkSlider:()=>Gt,TkSwitch:()=>te,TkTabGroup:()=>re,TkTextarea:()=>ae,TkTextfield:()=>Nt,TkTheme:()=>ne,TkTooltip:()=>le,TkTopbar:()=>qt});var c=s(161),h=s(429);var d=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let p=class extends c.LitElement{constructor(){super(...arguments),this.ripple=!1,this.showRipple=t=>{const e=t.clientX,r=t.clientY,{offsetWidth:o,offsetHeight:a}=this,i=document.createElement("span");i.classList.add("ripple","open");const n=document.createElement("span");i.appendChild(n),this.shadowRoot.appendChild(i);const s=this.getBoundingClientRect(),l=2*Math.max(o,o);n.style.width=n.style.height=l+"px",n.style.left=e-s.left-l/2+"px",n.style.top=r-s.top-l/2+"px";n.animate({transform:["scale(0)","scale(1)"]},{easing:"ease-out",fill:"both",duration:500}).onfinish=()=>{i.classList.remove("open");n.animate({opacity:["0.5","0"]},{easing:"ease-in",fill:"both",duration:300}).onfinish=()=>{requestAnimationFrame(()=>{i.remove()})}}},this.hideRipple=t=>{var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll(".ripple:not([open])").forEach(t=>{t.querySelector("span").animate({opacity:["0.5","0"]},{easing:"ease-out",fill:"both",duration:300}).onfinish=()=>{requestAnimationFrame(()=>{t.remove()})}})}}static get styles(){return[c.css`
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js")):"function"==typeof define&&define.amd?define(["lit","lit/decorators.js","lit/directives/class-map.js","lit/directives/if-defined.js","lit/directives/unsafe-html.js"],e):"object"==typeof exports?exports.tinkiet=e(require("lit"),require("lit/decorators.js"),require("lit/directives/class-map.js"),require("lit/directives/if-defined.js"),require("lit/directives/unsafe-html.js")):t.tinkiet=e(t.lit,t["lit/decorators.js"],t["lit/directives/class-map.js"],t["lit/directives/if-defined.js"],t["lit/directives/unsafe-html.js"])}(this,(t,e,r,o,a)=>(()=>{"use strict";var i={125:t=>{t.exports=r},161:e=>{e.exports=t},291:t=>{t.exports=o},429:t=>{t.exports=e},968:t=>{t.exports=a}},n={};function s(t){var e=n[t];if(void 0!==e)return e.exports;var r=n[t]={exports:{}};return i[t](r,r.exports,s),r.exports}s.d=(t,e)=>{for(var r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var l={};s.r(l),s.d(l,{NotieLevel:()=>It,TkAccordion:()=>m,TkBadge:()=>x,TkBox:()=>p,TkButton:()=>$,TkCheckbox:()=>_,TkChip:()=>A,TkDialog:()=>E,TkDrawer:()=>T,TkForm:()=>R,TkIcon:()=>q,TkIcons:()=>B,TkListItem:()=>M,TkLoading:()=>Tt,TkNavigationBar:()=>Rt,TkNavigationItem:()=>Lt,TkNotie:()=>Kt,TkPages:()=>Yt,TkRadio:()=>Qt,TkSelect:()=>Wt,TkSlider:()=>Gt,TkSwitch:()=>te,TkTabGroup:()=>re,TkTextarea:()=>ae,TkTextfield:()=>Bt,TkTheme:()=>ne,TkTooltip:()=>le,TkTopbar:()=>qt});var c=s(161),h=s(429);var d=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let p=class extends c.LitElement{constructor(){super(...arguments),this.ripple=!1,this.showRipple=t=>{const e=t.clientX,r=t.clientY,{offsetWidth:o,offsetHeight:a}=this,i=document.createElement("span");i.classList.add("ripple","open");const n=document.createElement("span");i.appendChild(n),this.shadowRoot.appendChild(i);const s=this.getBoundingClientRect(),l=2*Math.max(o,o);n.style.width=n.style.height=l+"px",n.style.left=e-s.left-l/2+"px",n.style.top=r-s.top-l/2+"px";n.animate({transform:["scale(0)","scale(1)"]},{easing:"ease-out",fill:"both",duration:500}).onfinish=()=>{i.classList.remove("open");n.animate({opacity:["0.5","0"]},{easing:"ease-in",fill:"both",duration:300}).onfinish=()=>{requestAnimationFrame(()=>{i.remove()})}}},this.hideRipple=t=>{var e;null===(e=this.shadowRoot)||void 0===e||e.querySelectorAll(".ripple:not([open])").forEach(t=>{t.querySelector("span").animate({opacity:["0.5","0"]},{easing:"ease-out",fill:"both",duration:300}).onfinish=()=>{requestAnimationFrame(()=>{t.remove()})}})}}static get styles(){return[c.css`
2
2
  ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:flex;position:relative;flex-direction:column;box-sizing:border-box}:host([hidden]){display:none}.ripple{position:absolute;top:0;left:0;right:0;bottom:0;overflow:hidden;pointer-events:none}.ripple span{position:absolute;border-radius:50%;background-color:hsla(var(--on-primary), 0.5)}:host([align-content=start]){align-content:flex-start}:host([align-content=end]){align-content:flex-end}:host([align-content=stretch]){align-content:stretch}:host([align-content=center]){align-content:center}:host([align-content=around]){align-content:space-around}:host([align-content=between]){align-content:space-between}:host([align-items=start]){align-items:flex-start}:host([align-items=end]){align-items:flex-end}:host([align-items=stretch]){align-items:stretch}:host([align-items=center]){align-items:center}:host([align-items=baseline]){align-items:baseline}:host([align-self=start]){align-self:flex-start}:host([align-self=end]){align-self:flex-end}:host([align-self=stretch]){align-self:stretch}:host([align-self=center]){align-self:center}:host([background=primary]){background-color:hsl(var(--primary))}:host([color=primary]){color:hsl(var(--primary))}:host([background=on-primary]){background-color:hsl(var(--on-primary))}:host([color=on-primary]){color:hsl(var(--on-primary))}:host([background=secondary]){background-color:hsl(var(--secondary))}:host([color=secondary]){color:hsl(var(--secondary))}:host([background=on-secondary]){background-color:hsl(var(--on-secondary))}:host([color=on-secondary]){color:hsl(var(--on-secondary))}:host([background=tertiary]){background-color:hsl(var(--tertiary))}:host([color=tertiary]){color:hsl(var(--tertiary))}:host([background=on-tertiary]){background-color:hsl(var(--on-tertiary))}:host([color=on-tertiary]){color:hsl(var(--on-tertiary))}:host([background=neutral]){background-color:hsl(var(--neutral))}:host([color=neutral]){color:hsl(var(--neutral))}:host([background=on-neutral]){background-color:hsl(var(--on-neutral))}:host([color=on-neutral]){color:hsl(var(--on-neutral))}:host([background=neutral-variant]){background-color:hsl(var(--neutral-variant))}:host([color=neutral-variant]){color:hsl(var(--neutral-variant))}:host([background=on-neutral-variant]){background-color:hsl(var(--on-neutral-variant))}:host([color=on-neutral-variant]){color:hsl(var(--on-neutral-variant))}:host([background=error]){background-color:hsl(var(--error))}:host([color=error]){color:hsl(var(--error))}:host([background=on-error]){background-color:hsl(var(--on-error))}:host([color=on-error]){color:hsl(var(--on-error))}:host([background=primary-container]){background-color:hsl(var(--primary-container))}:host([color=primary-container]){color:hsl(var(--primary-container))}:host([background=on-primary-container]){background-color:hsl(var(--on-primary-container))}:host([color=on-primary-container]){color:hsl(var(--on-primary-container))}:host([background=secondary-container]){background-color:hsl(var(--secondary-container))}:host([color=secondary-container]){color:hsl(var(--secondary-container))}:host([background=on-secondary-container]){background-color:hsl(var(--on-secondary-container))}:host([color=on-secondary-container]){color:hsl(var(--on-secondary-container))}:host([background=tertiary-container]){background-color:hsl(var(--tertiary-container))}:host([color=tertiary-container]){color:hsl(var(--tertiary-container))}:host([background=on-tertiary-container]){background-color:hsl(var(--on-tertiary-container))}:host([color=on-tertiary-container]){color:hsl(var(--on-tertiary-container))}:host([background=neutral-container]){background-color:hsl(var(--neutral-container))}:host([color=neutral-container]){color:hsl(var(--neutral-container))}:host([background=on-neutral-container]){background-color:hsl(var(--on-neutral-container))}:host([color=on-neutral-container]){color:hsl(var(--on-neutral-container))}:host([background=neutral-variant-container]){background-color:hsl(var(--neutral-variant-container))}:host([color=neutral-variant-container]){color:hsl(var(--neutral-variant-container))}:host([background=on-neutral-variant-container]){background-color:hsl(var(--on-neutral-variant-container))}:host([color=on-neutral-variant-container]){color:hsl(var(--on-neutral-variant-container))}:host([background=error-container]){background-color:hsl(var(--error-container))}:host([color=error-container]){color:hsl(var(--error-container))}:host([background=on-error-container]){background-color:hsl(var(--on-error-container))}:host([color=on-error-container]){color:hsl(var(--on-error-container))}:host([background=primary-0]){background-color:hsl(var(--primary-0))}:host([color=primary-0]){color:hsl(var(--primary-0))}:host([background=surface]){background-color:hsl(var(--surface))}:host([color=surface]){color:hsl(var(--surface))}:host([background=on-surface]){background-color:hsl(var(--on-surface))}:host([color=on-surface]){color:hsl(var(--on-surface))}:host([background=surface-dim]){background-color:hsl(var(--surface-dim))}:host([color=surface-dim]){color:hsl(var(--surface-dim))}:host([background=surface-bright]){background-color:hsl(var(--surface-bright))}:host([color=surface-bright]){color:hsl(var(--surface-bright))}:host([background=surface-container-lowest]){background-color:hsl(var(--surface-container-lowest))}:host([color=surface-container-lowest]){color:hsl(var(--surface-container-lowest))}:host([background=surface-container-low]){background-color:hsl(var(--surface-container-low))}:host([color=surface-container-low]){color:hsl(var(--surface-container-low))}:host([background=surface-container]){background-color:hsl(var(--surface-container))}:host([color=surface-container]){color:hsl(var(--surface-container))}:host([background=surface-container-high]){background-color:hsl(var(--surface-container-high))}:host([color=surface-container-high]){color:hsl(var(--surface-container-high))}:host([background=surface-container-highest]){background-color:hsl(var(--surface-container-highest))}:host([color=surface-container-highest]){color:hsl(var(--surface-container-highest))}:host([background=surface-variant]){background-color:hsl(var(--surface-variant))}:host([color=surface-variant]){color:hsl(var(--surface-variant))}:host([background=on-surface-variant]){background-color:hsl(var(--on-surface-variant))}:host([color=on-surface-variant]){color:hsl(var(--on-surface-variant))}:host([background=outline]){background-color:hsl(var(--outline))}:host([color=outline]){color:hsl(var(--outline))}:host([background=outline-variant]){background-color:hsl(var(--outline-variant))}:host([color=outline-variant]){color:hsl(var(--outline-variant))}:host([background=inverse-surface]){background-color:hsl(var(--inverse-surface))}:host([color=inverse-surface]){color:hsl(var(--inverse-surface))}:host([background=inverse-on-surface]){background-color:hsl(var(--inverse-on-surface))}:host([color=inverse-on-surface]){color:hsl(var(--inverse-on-surface))}:host([background=background]){background-color:hsl(var(--background))}:host([color=background]){color:hsl(var(--background))}:host([background=on-background]){background-color:hsl(var(--on-background))}:host([color=on-background]){color:hsl(var(--on-background))}:host([background=shadow]){background-color:hsl(var(--shadow))}:host([color=shadow]){color:hsl(var(--shadow))}:host([background=primary-10]){background-color:hsl(var(--primary-10))}:host([color=primary-10]){color:hsl(var(--primary-10))}:host([background=primary-20]){background-color:hsl(var(--primary-20))}:host([color=primary-20]){color:hsl(var(--primary-20))}:host([background=primary-30]){background-color:hsl(var(--primary-30))}:host([color=primary-30]){color:hsl(var(--primary-30))}:host([background=primary-40]){background-color:hsl(var(--primary-40))}:host([color=primary-40]){color:hsl(var(--primary-40))}:host([background=primary-50]){background-color:hsl(var(--primary-50))}:host([color=primary-50]){color:hsl(var(--primary-50))}:host([background=primary-60]){background-color:hsl(var(--primary-60))}:host([color=primary-60]){color:hsl(var(--primary-60))}:host([background=primary-70]){background-color:hsl(var(--primary-70))}:host([color=primary-70]){color:hsl(var(--primary-70))}:host([background=primary-80]){background-color:hsl(var(--primary-80))}:host([color=primary-80]){color:hsl(var(--primary-80))}:host([background=primary-90]){background-color:hsl(var(--primary-90))}:host([color=primary-90]){color:hsl(var(--primary-90))}:host([background=primary-95]){background-color:hsl(var(--primary-95))}:host([color=primary-95]){color:hsl(var(--primary-95))}:host([background=primary-99]){background-color:hsl(var(--primary-99))}:host([color=primary-99]){color:hsl(var(--primary-99))}:host([background=primary-100]){background-color:hsl(var(--primary-100))}:host([color=primary-100]){color:hsl(var(--primary-100))}:host([background=secondary-0]){background-color:hsl(var(--secondary-0))}:host([color=secondary-0]){color:hsl(var(--secondary-0))}:host([background=secondary-10]){background-color:hsl(var(--secondary-10))}:host([color=secondary-10]){color:hsl(var(--secondary-10))}:host([background=secondary-20]){background-color:hsl(var(--secondary-20))}:host([color=secondary-20]){color:hsl(var(--secondary-20))}:host([background=secondary-30]){background-color:hsl(var(--secondary-30))}:host([color=secondary-30]){color:hsl(var(--secondary-30))}:host([background=secondary-40]){background-color:hsl(var(--secondary-40))}:host([color=secondary-40]){color:hsl(var(--secondary-40))}:host([background=secondary-50]){background-color:hsl(var(--secondary-50))}:host([color=secondary-50]){color:hsl(var(--secondary-50))}:host([background=secondary-60]){background-color:hsl(var(--secondary-60))}:host([color=secondary-60]){color:hsl(var(--secondary-60))}:host([background=secondary-70]){background-color:hsl(var(--secondary-70))}:host([color=secondary-70]){color:hsl(var(--secondary-70))}:host([background=secondary-80]){background-color:hsl(var(--secondary-80))}:host([color=secondary-80]){color:hsl(var(--secondary-80))}:host([background=secondary-90]){background-color:hsl(var(--secondary-90))}:host([color=secondary-90]){color:hsl(var(--secondary-90))}:host([background=secondary-100]){background-color:hsl(var(--secondary-100))}:host([color=secondary-100]){color:hsl(var(--secondary-100))}:host([background=tertiary-0]){background-color:hsl(var(--tertiary-0))}:host([color=tertiary-0]){color:hsl(var(--tertiary-0))}:host([background=tertiary-10]){background-color:hsl(var(--tertiary-10))}:host([color=tertiary-10]){color:hsl(var(--tertiary-10))}:host([background=tertiary-20]){background-color:hsl(var(--tertiary-20))}:host([color=tertiary-20]){color:hsl(var(--tertiary-20))}:host([background=tertiary-30]){background-color:hsl(var(--tertiary-30))}:host([color=tertiary-30]){color:hsl(var(--tertiary-30))}:host([background=tertiary-40]){background-color:hsl(var(--tertiary-40))}:host([color=tertiary-40]){color:hsl(var(--tertiary-40))}:host([background=tertiary-50]){background-color:hsl(var(--tertiary-50))}:host([color=tertiary-50]){color:hsl(var(--tertiary-50))}:host([background=tertiary-60]){background-color:hsl(var(--tertiary-60))}:host([color=tertiary-60]){color:hsl(var(--tertiary-60))}:host([background=tertiary-70]){background-color:hsl(var(--tertiary-70))}:host([color=tertiary-70]){color:hsl(var(--tertiary-70))}:host([background=tertiary-80]){background-color:hsl(var(--tertiary-80))}:host([color=tertiary-80]){color:hsl(var(--tertiary-80))}:host([background=tertiary-90]){background-color:hsl(var(--tertiary-90))}:host([color=tertiary-90]){color:hsl(var(--tertiary-90))}:host([background=tertiary-100]){background-color:hsl(var(--tertiary-100))}:host([color=tertiary-100]){color:hsl(var(--tertiary-100))}:host([background=neutral-0]){background-color:hsl(var(--neutral-0))}:host([color=neutral-0]){color:hsl(var(--neutral-0))}:host([background=neutral-10]){background-color:hsl(var(--neutral-10))}:host([color=neutral-10]){color:hsl(var(--neutral-10))}:host([background=neutral-20]){background-color:hsl(var(--neutral-20))}:host([color=neutral-20]){color:hsl(var(--neutral-20))}:host([background=neutral-30]){background-color:hsl(var(--neutral-30))}:host([color=neutral-30]){color:hsl(var(--neutral-30))}:host([background=neutral-40]){background-color:hsl(var(--neutral-40))}:host([color=neutral-40]){color:hsl(var(--neutral-40))}:host([background=neutral-50]){background-color:hsl(var(--neutral-50))}:host([color=neutral-50]){color:hsl(var(--neutral-50))}:host([background=neutral-60]){background-color:hsl(var(--neutral-60))}:host([color=neutral-60]){color:hsl(var(--neutral-60))}:host([background=neutral-70]){background-color:hsl(var(--neutral-70))}:host([color=neutral-70]){color:hsl(var(--neutral-70))}:host([background=neutral-80]){background-color:hsl(var(--neutral-80))}:host([color=neutral-80]){color:hsl(var(--neutral-80))}:host([background=neutral-90]){background-color:hsl(var(--neutral-90))}:host([color=neutral-90]){color:hsl(var(--neutral-90))}:host([background=neutral-100]){background-color:hsl(var(--neutral-100))}:host([color=neutral-100]){color:hsl(var(--neutral-100))}:host([background=error-0]){background-color:hsl(var(--error-0))}:host([color=error-0]){color:hsl(var(--error-0))}:host([background=error-10]){background-color:hsl(var(--error-10))}:host([color=error-10]){color:hsl(var(--error-10))}:host([background=error-20]){background-color:hsl(var(--error-20))}:host([color=error-20]){color:hsl(var(--error-20))}:host([background=error-30]){background-color:hsl(var(--error-30))}:host([color=error-30]){color:hsl(var(--error-30))}:host([background=error-40]){background-color:hsl(var(--error-40))}:host([color=error-40]){color:hsl(var(--error-40))}:host([background=error-50]){background-color:hsl(var(--error-50))}:host([color=error-50]){color:hsl(var(--error-50))}:host([background=error-60]){background-color:hsl(var(--error-60))}:host([color=error-60]){color:hsl(var(--error-60))}:host([background=error-70]){background-color:hsl(var(--error-70))}:host([color=error-70]){color:hsl(var(--error-70))}:host([background=error-80]){background-color:hsl(var(--error-80))}:host([color=error-80]){color:hsl(var(--error-80))}:host([background=error-90]){background-color:hsl(var(--error-90))}:host([color=error-90]){color:hsl(var(--error-90))}:host([background=error-100]){background-color:hsl(var(--error-100))}:host([color=error-100]){color:hsl(var(--error-100))}:host([direction=column]){flex-direction:column}:host([direction=row]){flex-direction:row}:host([direction=row-reverse]){flex-direction:row-reverse}:host([direction=column-reverse]){flex-direction:column-reverse}:host([text=center]){text-align:center}:host([text=justify]){text-align:justify}:host([text=left]){text-align:left}:host([text=right]){text-align:right}:host([weight="100"]){font-weight:100}:host([weight="200"]){font-weight:200}:host([weight="300"]){font-weight:300}:host([weight="400"]){font-weight:400}:host([weight="500"]){font-weight:500}:host([weight="600"]){font-weight:600}:host([weight="700"]){font-weight:700}:host([weight="800"]){font-weight:800}:host([weight="900"]){font-weight:900}:host([weight=lighter]){font-weight:lighter}:host([weight=bold]){font-weight:bold}:host([weight=bolder]){font-weight:bolder}:host([direction=row]){flex-direction:row}:host([direction=row-reverse]){flex-direction:row}:host([elevation="1"]){box-shadow:var(--box-elevation, 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15))}:host([elevation="2"]){box-shadow:var(--box-elevation, 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15))}:host([elevation="3"]){box-shadow:var(--box-elevation, 0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15))}:host([fill=horizontal]){width:100%}:host([fill=vertical]){height:100%}:host([fill=true]){width:100%;height:100%}:host([flex=grow]){flex:1 0}:host([flex=shrink]){flex:0 1}:host([flex=true]){flex:1 1}:host([flex=false]){flex:0 0}:host([gap=xsmall]) ::slotted(*),:host([gap=xsmall][direction=column]) ::slotted(*){margin:var(--spacing-xs, 0.25rem) 0}:host([gap=xsmall][direction=row]) ::slotted(*){margin:0 var(--spacing-xs, 0.25rem)}:host([margin=xsmall]){margin:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([vmargin=xsmall]){margin-top:var(--box-margin, var(--spacing-xs, 0.25rem));margin-bottom:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([hmargin=xsmall]){margin-left:var(--box-margin, var(--spacing-xs, 0.25rem));margin-right:var(--box-margin, var(--spacing-xs, 0.25rem))}:host([margin="xsmall auto"]){margin:var(--box-margin, var(--spacing-xs, 0.25rem)) auto}:host([margin="auto xsmall"]){margin:auto var(--box-margin, var(--spacing-xs, 0.25rem))}:host([padding=xsmall]){padding:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([vpadding=xsmall]){padding-top:var(--box-padding, var(--spacing-xs, 0.25rem));padding-bottom:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([hpadding=xsmall]){padding-left:var(--box-padding, var(--spacing-xs, 0.25rem));padding-right:var(--box-padding, var(--spacing-xs, 0.25rem))}:host([gap=small]) ::slotted(*),:host([gap=small][direction=column]) ::slotted(*){margin:var(--spacing-s, 0.5rem) 0}:host([gap=small][direction=row]) ::slotted(*){margin:0 var(--spacing-s, 0.5rem)}:host([margin=small]){margin:var(--box-margin, var(--spacing-s, 0.5rem))}:host([vmargin=small]){margin-top:var(--box-margin, var(--spacing-s, 0.5rem));margin-bottom:var(--box-margin, var(--spacing-s, 0.5rem))}:host([hmargin=small]){margin-left:var(--box-margin, var(--spacing-s, 0.5rem));margin-right:var(--box-margin, var(--spacing-s, 0.5rem))}:host([margin="small auto"]){margin:var(--box-margin, var(--spacing-s, 0.5rem)) auto}:host([margin="auto small"]){margin:auto var(--box-margin, var(--spacing-s, 0.5rem))}:host([padding=small]){padding:var(--box-padding, var(--spacing-s, 0.5rem))}:host([vpadding=small]){padding-top:var(--box-padding, var(--spacing-s, 0.5rem));padding-bottom:var(--box-padding, var(--spacing-s, 0.5rem))}:host([hpadding=small]){padding-left:var(--box-padding, var(--spacing-s, 0.5rem));padding-right:var(--box-padding, var(--spacing-s, 0.5rem))}:host([gap=medium]) ::slotted(*),:host([gap=medium][direction=column]) ::slotted(*){margin:var(--spacing-m, 1rem) 0}:host([gap=medium][direction=row]) ::slotted(*){margin:0 var(--spacing-m, 1rem)}:host([margin=medium]){margin:var(--box-margin, var(--spacing-m, 1rem))}:host([vmargin=medium]){margin-top:var(--box-margin, var(--spacing-m, 1rem));margin-bottom:var(--box-margin, var(--spacing-m, 1rem))}:host([hmargin=medium]){margin-left:var(--box-margin, var(--spacing-m, 1rem));margin-right:var(--box-margin, var(--spacing-m, 1rem))}:host([margin="medium auto"]){margin:var(--box-margin, var(--spacing-m, 1rem)) auto}:host([margin="auto medium"]){margin:auto var(--box-margin, var(--spacing-m, 1rem))}:host([padding=medium]){padding:var(--box-padding, var(--spacing-m, 1rem))}:host([vpadding=medium]){padding-top:var(--box-padding, var(--spacing-m, 1rem));padding-bottom:var(--box-padding, var(--spacing-m, 1rem))}:host([hpadding=medium]){padding-left:var(--box-padding, var(--spacing-m, 1rem));padding-right:var(--box-padding, var(--spacing-m, 1rem))}:host([gap=large]) ::slotted(*),:host([gap=large][direction=column]) ::slotted(*){margin:var(--spacing-l, 1.25rem) 0}:host([gap=large][direction=row]) ::slotted(*){margin:0 var(--spacing-l, 1.25rem)}:host([margin=large]){margin:var(--box-margin, var(--spacing-l, 1.25rem))}:host([vmargin=large]){margin-top:var(--box-margin, var(--spacing-l, 1.25rem));margin-bottom:var(--box-margin, var(--spacing-l, 1.25rem))}:host([hmargin=large]){margin-left:var(--box-margin, var(--spacing-l, 1.25rem));margin-right:var(--box-margin, var(--spacing-l, 1.25rem))}:host([margin="large auto"]){margin:var(--box-margin, var(--spacing-l, 1.25rem)) auto}:host([margin="auto large"]){margin:auto var(--box-margin, var(--spacing-l, 1.25rem))}:host([padding=large]){padding:var(--box-padding, var(--spacing-l, 1.25rem))}:host([vpadding=large]){padding-top:var(--box-padding, var(--spacing-l, 1.25rem));padding-bottom:var(--box-padding, var(--spacing-l, 1.25rem))}:host([hpadding=large]){padding-left:var(--box-padding, var(--spacing-l, 1.25rem));padding-right:var(--box-padding, var(--spacing-l, 1.25rem))}:host([gap=xlarge]) ::slotted(*),:host([gap=xlarge][direction=column]) ::slotted(*){margin:var(--spacing-xl, 2rem) 0}:host([gap=xlarge][direction=row]) ::slotted(*){margin:0 var(--spacing-xl, 2rem)}:host([margin=xlarge]){margin:var(--box-margin, var(--spacing-xl, 2rem))}:host([vmargin=xlarge]){margin-top:var(--box-margin, var(--spacing-xl, 2rem));margin-bottom:var(--box-margin, var(--spacing-xl, 2rem))}:host([hmargin=xlarge]){margin-left:var(--box-margin, var(--spacing-xl, 2rem));margin-right:var(--box-margin, var(--spacing-xl, 2rem))}:host([margin="xlarge auto"]){margin:var(--box-margin, var(--spacing-xl, 2rem)) auto}:host([margin="auto xlarge"]){margin:auto var(--box-margin, var(--spacing-xl, 2rem))}:host([padding=xlarge]){padding:var(--box-padding, var(--spacing-xl, 2rem))}:host([vpadding=xlarge]){padding-top:var(--box-padding, var(--spacing-xl, 2rem));padding-bottom:var(--box-padding, var(--spacing-xl, 2rem))}:host([hpadding=xlarge]){padding-left:var(--box-padding, var(--spacing-xl, 2rem));padding-right:var(--box-padding, var(--spacing-xl, 2rem))}:host([font=xsmall]),:host([size=xsmall]){font-size:var(--box-font-size, var(--font-size-xs, 0.625rem))}:host([font=small]),:host([size=small]){font-size:var(--box-font-size, var(--font-size-s, 0.875rem))}:host([font=medium]),:host([size=medium]){font-size:var(--box-font-size, var(--font-size-m, 1rem))}:host([font=large]),:host([size=large]){font-size:var(--box-font-size, var(--font-size-l, 1.25rem))}:host([font=xlarge]),:host([size=xlarge]){font-size:var(--box-font-size, var(--font-size-xl, 1.5rem))}:host([font=xxlarge]),:host([size=xxlarge]){font-size:var(--box-font-size, var(--font-size-xxl, 2.25rem))}:host([justify=start]){justify-content:flex-start}:host([justify=end]){justify-content:flex-end}:host([justify=stretch]){justify-content:stretch}:host([justify=baseline]){justify-content:baseline}:host([justify=center]){justify-content:center}:host([justify=around]){justify-content:space-around}:host([justify=between]){justify-content:space-between}:host([justify=evenly]){justify-content:space-evenly}:host([overflow=auto]){overflow:auto}:host([overflow=hidden]){overflow:hidden}:host([overflow=scroll]){overflow:scroll}:host([overflow=visible]){overflow:visible}:host([radius=none]){border-radius:var(--box-border-radius, 0)}:host([radius=small]){border-radius:var(--box-border-radius, var(--border-radius-small, 0.125rem))}:host([radius=medium]){border-radius:var(--box-border-radius, var(--border-radius-medium, 0.25rem))}:host([radius=large]){border-radius:var(--box-border-radius, var(--border-radius-large, 0.5rem))}:host([radius=xlarge]){border-radius:var(--box-border-radius, var(--border-radius-x-large, 1rem))}:host([radius=circle]){border-radius:var(--box-border-radius, var(--border-radius-circle, 50%))}:host([radius=pill]){border-radius:var(--box-border-radius, var(--border-radius-pill, 9999px))}:host([max-width=xxsmall]){max-width:var(--box-max-width, var(--size-xxs, 2rem))}:host([width=xxsmall]){width:var(--box-width, var(--size-xxs, 2rem))}:host([max-height=xxsmall]){max-height:var(--box-max-height, var(--size-xxs, 2rem))}:host([height=xxsmall]){height:var(--box-height, var(--size-xxs, 2rem))}:host([max-width=xsmall]){max-width:var(--box-max-width, var(--size-xs, 4rem))}:host([width=xsmall]){width:var(--box-width, var(--size-xs, 4rem))}:host([max-height=xsmall]){max-height:var(--box-max-height, var(--size-xs, 4rem))}:host([height=xsmall]){height:var(--box-height, var(--size-xs, 4rem))}:host([max-width=small]){max-width:var(--box-max-width, var(--size-s, 8rem))}:host([width=small]){width:var(--box-width, var(--size-s, 8rem))}:host([max-height=small]){max-height:var(--box-max-height, var(--size-s, 8rem))}:host([height=small]){height:var(--box-height, var(--size-s, 8rem))}:host([max-width=medium]){max-width:var(--box-max-width, var(--size-m, 16rem))}:host([width=medium]){width:var(--box-width, var(--size-m, 16rem))}:host([max-height=medium]){max-height:var(--box-max-height, var(--size-m, 16rem))}:host([height=medium]){height:var(--box-height, var(--size-m, 16rem))}:host([max-width=large]){max-width:var(--box-max-width, var(--size-l, 32rem))}:host([width=large]){width:var(--box-width, var(--size-l, 32rem))}:host([max-height=large]){max-height:var(--box-max-height, var(--size-l, 32rem))}:host([height=large]){height:var(--box-height, var(--size-l, 32rem))}:host([max-width=xlarge]){max-width:var(--box-max-width, var(--size-xl, 48rem))}:host([width=xlarge]){width:var(--box-width, var(--size-xl, 48rem))}:host([max-height=xlarge]){max-height:var(--box-max-height, var(--size-xl, 48rem))}:host([height=xlarge]){height:var(--box-height, var(--size-xl, 48rem))}:host([max-width=xxlarge]){max-width:var(--box-max-width, var(--size-xxl, 64rem))}:host([width=xxlarge]){width:var(--box-width, var(--size-xxl, 64rem))}:host([max-height=xxlarge]){max-height:var(--box-max-height, var(--size-xxl, 64rem))}:host([height=xxlarge]){height:var(--box-height, var(--size-xxl, 64rem))}:host([wrap=true]){flex-wrap:wrap}:host([wrap=reverse]){flex-wrap:wrap-reverse}')}
3
3
  `]}render(){return c.html`
4
4
  <slot></slot>
5
- `}connectedCallback(){this.ripple&&(this.addEventListener("mousedown",this.showRipple,{passive:!0}),this.addEventListener("mouseup",this.hideRipple,{passive:!0})),super.connectedCallback()}disconnectedCallback(){this.removeEventListener("mousedown",this.showRipple),this.removeEventListener("mouseup",this.hideRipple),super.disconnectedCallback()}updated(t){super.updated(t)}};function u(t=10){return`_${Math.random().toString(36).substr(2,t)}`}d([(0,h.property)({type:Boolean})],p.prototype,"ripple",void 0),d([(0,h.property)()],p.prototype,"background",void 0),d([(0,h.property)()],p.prototype,"color",void 0),p=d([(0,h.customElement)("tk-box")],p);var v=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};class b extends p{constructor(){super(...arguments),this._id=u(),this.disabled=!1}updated(t){this.tabIndex=this.disabled?-1:0,super.updated(t)}}v([(0,h.property)({type:Boolean})],b.prototype,"_id",void 0),v([(0,h.property)({type:Boolean})],b.prototype,"disabled",void 0);var g=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let m=class extends b{static get styles(){return[...p.styles,c.css`
6
- ${(0,c.unsafeCSS)('\ufeff*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host .header{position:relative;overflow:hidden;color:hsl(var(--on-surface));background-color:hsl(var(--surface-container-low));padding:16px;border:1px solid hsl(var(--outline-variant));border-radius:12px;box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);gap:12px;cursor:pointer;transition:background-color var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),color var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),box-shadow var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),border-color var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1))}:host .header:after{transition:transform .3s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1));content:"▼";display:inline-block;font-size:12px;margin-inline-start:8px}:host .header:before{content:"";position:absolute;inset:0;background:hsl(var(--on-surface));opacity:0;transition:opacity var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1));pointer-events:none}:host .header .before{width:fit-content}:host .header .header-content{flex:1}:host .content{width:100%;margin:4px 0 0;padding:0 16px;opacity:0;visibility:hidden;max-height:0;overflow:hidden;transform:translateY(-8px);transition:max-height .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),opacity .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),transform .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1));background:hsl(var(--surface-container-lowest));border-radius:0 0 12px 12px}:host h3,:host h5{margin:0}:host .header:hover:before{opacity:.08}:host .header:active:before{opacity:.12}:host .header:focus-visible{outline:none;border-color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15),0 0 0 3px hsl(var(--primary)/0.2)}:host([checked]) .header{background-color:hsl(var(--primary-container));color:hsl(var(--on-primary-container));border-color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15)}:host([checked]) .header:after{transform:rotate(180deg)}:host([checked]) .header:before{background:hsl(var(--on-primary-container))}:host([checked]) .content{opacity:1;visibility:visible;max-height:var(--tk-accordion-max-height, 1000px);padding:12px 16px;transform:translateY(0);transition:max-height .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),opacity .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),transform .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1))}:host([pill]) .header{border-radius:9999px}@media(prefers-reduced-motion: reduce){:host .header:after{transition:none}:host .header:before{transition:none}:host .header{transition:none}:host .content{transition:none}}')}
7
- `]}constructor(){super(),this.checked=!1,this.rippleHeader=!1,this.handleClick=this.handleClick.bind(this)}render(){return c.html`
5
+ `}connectedCallback(){this.ripple&&(this.addEventListener("mousedown",this.showRipple,{passive:!0}),this.addEventListener("mouseup",this.hideRipple,{passive:!0})),super.connectedCallback()}disconnectedCallback(){this.removeEventListener("mousedown",this.showRipple),this.removeEventListener("mouseup",this.hideRipple),super.disconnectedCallback()}updated(t){super.updated(t)}};function u(t=10){return`_${Math.random().toString(36).substr(2,t)}`}d([(0,h.property)({type:Boolean})],p.prototype,"ripple",void 0),d([(0,h.property)()],p.prototype,"background",void 0),d([(0,h.property)()],p.prototype,"color",void 0),p=d([(0,h.customElement)("tk-box")],p);var v=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};class b extends p{constructor(){super(...arguments),this._id=u(),this.disabled=!1}updated(t){this.tabIndex=this.disabled?-1:0,super.updated(t)}}v([(0,h.property)({type:String})],b.prototype,"_id",void 0),v([(0,h.property)({type:Boolean})],b.prototype,"disabled",void 0);var g=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let m=class extends b{static get styles(){return[...p.styles,c.css`
6
+ ${(0,c.unsafeCSS)('\ufeff*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host .header{position:relative;overflow:hidden;color:hsl(var(--on-surface));background-color:hsl(var(--surface-container-low));padding:16px;border:1px solid hsl(var(--outline-variant));border-radius:12px;box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);gap:12px;cursor:pointer;transition:background-color var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),color var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),box-shadow var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),border-color var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1))}:host .header:after{transition:transform .3s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1));content:"▼";display:inline-block;font-size:12px;margin-inline-start:8px}:host .header:before{content:"";position:absolute;inset:0;background:hsl(var(--on-surface));opacity:0;transition:opacity var(--transition-duration-medium, 180ms) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1));pointer-events:none}:host .header .before{width:fit-content}:host .header .header-content{flex:1}:host .content{width:100%;margin:4px 0 0;padding:0 16px;opacity:0;visibility:hidden;max-height:0;overflow:hidden;transform:translateY(-8px);transition:max-height .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),opacity .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),transform .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1));background:hsl(var(--surface-container-lowest));border-radius:0 0 12px 12px}:host h3,:host h5{margin:0}:host .header:hover:before{opacity:.08}:host .header:active:before{opacity:.12}:host .header:focus-visible{outline:none;border-color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15),0 0 0 3px hsl(var(--primary)/0.2)}:host([checked]) .header{background-color:hsl(var(--primary-container));color:hsl(var(--on-primary-container));border-color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15)}:host([checked]) .header:after{transform:rotate(180deg)}:host([checked]) .header:before{background:hsl(var(--on-primary-container))}:host([checked]) .content{opacity:1;visibility:visible;max-height:var(--tk-accordion-max-height, 1000px);overflow-y:scroll;padding:12px 16px;transform:translateY(0);transition:max-height .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),opacity .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)),transform .28s var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1))}:host([pill]) .header{border-radius:9999px}@media(prefers-reduced-motion: reduce){:host .header:after{transition:none}:host .header:before{transition:none}:host .header{transition:none}:host .content{transition:none}}')}
7
+ `]}constructor(){super(),this.name="",this.checked=!1,this.rippleHeader=!1,this.handleClick=this.handleClick.bind(this)}render(){return c.html`
8
8
  <tk-box margin="small">
9
9
  <tk-box
10
10
  @click=${this.handleClick}
11
+ @keydown=${this.onKeyDown}
11
12
  ?ripple=${this.rippleHeader}
12
13
  class="header"
13
14
  direction="row"
14
15
  align-items="center"
16
+ role="button"
17
+ tabindex="0"
18
+ aria-expanded=${this.checked}
15
19
  >
16
20
  <tk-box class="before">
17
21
  <slot name="before"></slot>
@@ -25,29 +29,56 @@
25
29
  <slot></slot>
26
30
  </tk-box>
27
31
  </tk-box>
28
- `}firstUpdated(){this.$input=document.createElement("input"),this.$input.type="radio",this.$input.slot="none",this.$input.style.display="none",this.$input.setAttribute("aria-hidden","true"),this.$input.tabIndex=-1,this.syncInput(),this.appendChild(this.$input)}updated(t){super.updated(t),this.syncInput()}onKeyDown(t){"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(){this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-accordion[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}syncInput(){var t;this.$input&&(this.$input.id=this.id,this.$input.name=null!==(t=this.name)&&void 0!==t?t:"",this.$input.checked=this.checked,this.$input.disabled=this.disabled)}};g([(0,h.property)({attribute:!0,type:String})],m.prototype,"name",void 0),g([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],m.prototype,"checked",void 0),g([(0,h.property)({attribute:"ripple-header",type:Boolean})],m.prototype,"rippleHeader",void 0),m=g([(0,h.customElement)("tk-accordion")],m);var y=s(125);var f=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let x=class extends c.LitElement{constructor(){super(...arguments),this.label=""}static get styles(){return c.css`
32
+ `}firstUpdated(){this.$input=document.createElement("input"),this.$input.type="radio",this.$input.slot="none",this.$input.style.display="none",this.$input.setAttribute("aria-hidden","true"),this.$input.tabIndex=-1,this.syncInput(),this.appendChild(this.$input)}updated(t){super.updated(t),(t.has("checked")||t.has("name")||t.has("disabled"))&&this.syncInput()}onKeyDown(t){this.disabled||"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.handleClick())}handleClick(){this.disabled||(this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-accordion[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}syncInput(){var t;this.$input&&(this.$input.id=this.id,this.$input.name=null!==(t=this.name)&&void 0!==t?t:"",this.$input.checked=this.checked,this.$input.disabled=this.disabled)}};g([(0,h.property)({attribute:!0,type:String})],m.prototype,"name",void 0),g([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],m.prototype,"checked",void 0),g([(0,h.property)({attribute:"ripple-header",type:Boolean})],m.prototype,"rippleHeader",void 0),m=g([(0,h.customElement)("tk-accordion")],m);var y=s(125);var f=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let x=class extends c.LitElement{constructor(){super(...arguments),this.label=""}static get styles(){return c.css`
29
33
  ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex}:host .badge{background-color:var(--tk-badge-color, hsl(var(--error)));font-family:"Trebuchet MS","Lucida Sans Unicode","Lucida Grande","Lucida Sans",Arial,sans-serif;color:var(--tk-badge-text-color, hsl(var(--on-error)));height:16px;min-width:16px;max-width:34px;border-radius:8px;padding:4px;font-size:10px;line-height:8px;text-align:center;white-space:nowrap;user-select:none;cursor:inherit}:host .badge.empty{height:6px;width:6px;min-width:6px;border-radius:100%}')}
30
34
  `}render(){const t=0===this.label.trim().length;return c.html`
31
35
  <slot></slot>
32
36
  <div class=${(0,y.classMap)({badge:!0,empty:t})}>${this.label}</div>
33
- `}};f([(0,h.property)({type:String})],x.prototype,"label",void 0),x=f([(0,h.customElement)("tk-badge")],x);var k=s(291);var w=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let $=class extends p{constructor(){super(...arguments),this._id=u(),this.href=null,this.type="button",this.disabled=!1,this.fab=!1,this.ripple=!0,this.onKeyDown=t=>{"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())},this.handleClick=t=>{var e;this.href&&t.isTrusted?(t.stopPropagation(),t.preventDefault(),this.$ahref.click()):(t.isTrusted&&"submit"==this.type||"reset"==this.type)&&(null===(e=this.querySelector("button"))||void 0===e||e.click())}}static get styles(){return[...p.styles,c.css`
34
- ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex;justify-content:center;flex-shrink:0;flex-direction:row;align-items:center;position:relative;cursor:pointer;text-align:center;text-decoration:none;vertical-align:middle;text-overflow:ellipsis;user-select:none;overflow:hidden;border-radius:20px;height:40px;width:40px;color:hsl(var(--primary))}:host tk-icon{width:24px;height:24px}:host([extended]){width:auto}:host([extended]) .content{display:flex;align-items:center;pointer-events:none;font-family:Roboto,sans-serif;line-height:20px;font-size:var(--font-size, 14px);font-weight:500;margin:0 24px}:host([extended]) .content.has-icon{margin:0 24px 0 8px}:host([extended]) tk-icon{margin-left:16px;width:18px;height:18px}:host(:hover),:host(:focus){background-color:hsla(var(--primary), 0.3);outline:none}:host([elevated]){background-color:hsl(var(--surface-container-low));color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:host([elevated]:hover),:host([elevated]:focus){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15);background-color:hsl(var(--surface-container-high));outline:none}:host([filled]){background-color:hsl(var(--primary));color:hsl(var(--on-primary))}:host([filled]:hover){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);background-color:hsla(var(--primary), 0.6)}:host([filled]:focus){background-color:hsla(var(--primary), 0.6);outline:none}:host([tonal]){background-color:hsl(var(--secondary-container));color:hsl(var(--on-secondary-container))}:host([tonal]:hover){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);background-color:hsla(var(--on-secondary-container), 0.3)}:host([tonal]:focus){background-color:hsla(var(--on-secondary-container), 0.3);outline:none}:host([outlined]){background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));color:hsl(var(--primary))}:host([outlined]:hover){background-color:hsla(var(--primary), 0.08);color:hsl(var(--primary))}:host([outlined]:focus){background-color:hsla(var(--primary), 0.12);border-color:hsl(var(--primary));outline:none}:host([fab]){background-color:hsl(var(--primary));display:inline-flex;justify-content:center;align-items:center;color:hsl(var(--on-primary));box-shadow:0px 1px 3px 0px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);width:56px;height:56px;padding:12px;border-radius:16px}:host([fab]) tk-icon{margin-left:0;width:24px;height:24px}:host([fab]) .content{margin:0}:host([fab][extended]){width:auto;min-width:80px}:host([fab][extended]) .content{margin:0 24px}:host([fab][extended]) .content.has-icon{margin:0 24px 0 8px}:host([fab][extended]) tk-icon{margin-left:16px}:host([fab]:hover){background-color:hsla(var(--on-primary-container), 0.3)}:host([fab]:focus){box-shadow:0px 1px 3px 0px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);background-color:hsla(var(--on-primary-container), 0.3);outline:none}:host([fab][small]){width:40px;height:40px;border-radius:12px}:host([fab][small]) tk-icon{width:24px;height:24px}:host([fab][large]){width:96px;height:96px;border-radius:28px}:host([fab][large]) tk-icon{width:36px;height:36px}:host([disabled]){pointer-events:none;cursor:not-allowed;background-color:hsla(var(--on-surface), 0.12);box-shadow:none;opacity:.5;color:hsl(var(--on-surface))}")}
35
- `]}render(){return c.html`
37
+ `}};f([(0,h.property)({type:String})],x.prototype,"label",void 0),x=f([(0,h.customElement)("tk-badge")],x);var k=s(291);var w=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let $=class extends p{constructor(){super(...arguments),this._id=u(),this.href=null,this.type="button",this.disabled=!1,this.fab=!1,this.ripple=!0,this.onKeyDown=t=>{"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())},this.handleClick=t=>{var e;this.href&&t.isTrusted?(t.stopPropagation(),t.preventDefault(),this.$ahref.click()):(t.isTrusted&&"submit"==this.type||"reset"==this.type)&&(null===(e=this.querySelector("button"))||void 0===e||e.click())},this.slotChanged=()=>{this.toggleAttributeForSlot(this.$defaultSlot,"extended")},this.badgeInChanged=()=>{this.toggleAttributeForSlot(this.$badgeInSlot,"has-badge-in")},this.badgeOutChanged=()=>{this.toggleAttributeForSlot(this.$badgeOutSlot,"has-badge-out")}}static get styles(){return[...p.styles,c.css`
38
+ ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex;justify-content:center;flex-shrink:0;flex-direction:row;align-items:center;position:relative;cursor:pointer;text-align:center;text-decoration:none;vertical-align:middle;text-overflow:ellipsis;user-select:none;overflow:hidden;border-radius:20px;height:40px;width:40px;color:hsl(var(--primary))}:host tk-icon{width:24px;height:24px}.badge-in,.badge-out{display:none}:host([has-badge-in]) .badge-in,:host([has-badge-out]) .badge-out{display:inline-flex;align-items:center}.badge-in{align-items:center;margin:0 12px 0 8px}.badge-out{position:absolute;top:0;right:0;transform:translate(50%, -50%);pointer-events:none}:host([extended]){width:auto}:host([extended]) .content{display:flex;align-items:center;pointer-events:none;font-family:Roboto,sans-serif;line-height:20px;font-size:var(--font-size, 14px);font-weight:500;margin:0 24px}:host([extended]) .content.has-icon{margin:0 24px 0 8px}:host([extended]) tk-icon{margin-left:16px;width:18px;height:18px}:host(:hover),:host(:focus){background-color:hsla(var(--primary), 0.3);outline:none}:host([elevated]){background-color:hsl(var(--surface-container-low));color:hsl(var(--primary));box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15)}:host([elevated]:hover),:host([elevated]:focus){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 2px 6px 2px rgba(0,0,0,.15);background-color:hsl(var(--surface-container-high));outline:none}:host([filled]){background-color:hsl(var(--primary));color:hsl(var(--on-primary))}:host([filled]:hover){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);background-color:hsla(var(--primary), 0.6)}:host([filled]:focus){background-color:hsla(var(--primary), 0.6);outline:none}:host([tonal]){background-color:hsl(var(--secondary-container));color:hsl(var(--on-secondary-container))}:host([tonal]:hover){box-shadow:0px 1px 2px 0px rgba(0,0,0,.3),0px 1px 3px 1px rgba(0,0,0,.15);background-color:hsla(var(--on-secondary-container), 0.3)}:host([tonal]:focus){background-color:hsla(var(--on-secondary-container), 0.3);outline:none}:host([outlined]){background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));color:hsl(var(--primary))}:host([outlined]:hover){background-color:hsla(var(--primary), 0.08);color:hsl(var(--primary))}:host([outlined]:focus){background-color:hsla(var(--primary), 0.12);border-color:hsl(var(--primary));outline:none}:host([fab]){background-color:hsl(var(--primary));display:inline-flex;justify-content:center;align-items:center;color:hsl(var(--on-primary));box-shadow:0px 1px 3px 0px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);width:56px;height:56px;padding:12px;border-radius:16px}:host([fab]) tk-icon{margin-left:0;width:24px;height:24px}:host([fab]) .content{margin:0}:host([fab][extended]){width:auto;min-width:80px}:host([fab][extended]) .content{margin:0 24px}:host([fab][extended]) .content.has-icon{margin:0 24px 0 8px}:host([fab][extended]) tk-icon{margin-left:16px}:host([fab]:hover){background-color:hsla(var(--on-primary-container), 0.3)}:host([fab]:focus){box-shadow:0px 1px 3px 0px rgba(0,0,0,.3),0px 4px 8px 3px rgba(0,0,0,.15);background-color:hsla(var(--on-primary-container), 0.3);outline:none}:host([fab][small]){width:40px;height:40px;border-radius:12px}:host([fab][small]) tk-icon{width:24px;height:24px}:host([fab][large]){width:96px;height:96px;border-radius:28px}:host([fab][large]) tk-icon{width:36px;height:36px}:host([disabled]){pointer-events:none;cursor:not-allowed;background-color:hsla(var(--on-surface), 0.12);box-shadow:none;opacity:.5;color:hsl(var(--on-surface))}")}
39
+ `]}hasSlotContent(t){var e;return(null!==(e=null==t?void 0:t.assignedNodes({flatten:!0}))&&void 0!==e?e:[]).some(t=>{var e;return t.nodeType===Node.TEXT_NODE?!!(null===(e=t.textContent)||void 0===e?void 0:e.trim()):t.nodeType!==Node.COMMENT_NODE})}toggleAttributeForSlot(t,e){this.hasSlotContent(t)?this.setAttribute(e,""):this.removeAttribute(e)}render(){return c.html`
36
40
  ${this.iconPath?c.html`
37
41
  <tk-icon path="${this.iconPath}"></tk-icon>
38
42
  `:""}
39
43
 
40
- <div class="content ${this.iconPath?"has-icon":""}" @slotchange=${this.slotChanged}>
41
- <slot></slot>
44
+ <div class="content ${this.iconPath?"has-icon":""}">
45
+ <slot @slotchange=${this.slotChanged}></slot>
46
+ </div>
47
+ <div class="badge-in">
48
+ <slot name="badge-in" @slotchange=${this.badgeInChanged}></slot>
49
+ </div>
50
+ <div class="badge-out">
51
+ <slot name="badge-out" @slotchange=${this.badgeOutChanged}></slot>
42
52
  </div>
43
53
 
44
54
  ${this.href?c.html`
45
55
  <a tabindex="-1" hidden id="ahref" href="${this.href}" target="${(0,k.ifDefined)(this.target)}" rel="noreferrer"></a>
46
56
  `:""}
47
57
  <button id=${this._id} hidden type="${(0,k.ifDefined)(this.type)}"></button>
48
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}updated(t){this.tabIndex=this.disabled?-1:0,super.updated(t)}firstUpdated(){"submit"!=this.type&&"reset"!=this.type||this.appendChild(this.$button)}slotChanged(){var t;const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("slot"),r=null==e?void 0:e.assignedNodes({flatten:!0});r&&r.length>0?this.setAttribute("extended",""):this.removeAttribute("extended")}};w([(0,h.property)()],$.prototype,"href",void 0),w([(0,h.property)()],$.prototype,"target",void 0),w([(0,h.property)()],$.prototype,"type",void 0),w([(0,h.property)({type:Boolean})],$.prototype,"disabled",void 0),w([(0,h.property)({type:Boolean})],$.prototype,"fab",void 0),w([(0,h.property)({type:String})],$.prototype,"iconPath",void 0),w([(0,h.property)()],$.prototype,"ripple",void 0),w([(0,h.query)("#ahref")],$.prototype,"$ahref",void 0),w([(0,h.query)("button")],$.prototype,"$button",void 0),$=w([(0,h.customElement)("tk-button")],$);var z=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let _=class extends c.LitElement{constructor(){super(),this._id=u(),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.handleClick=this.handleClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){const t={state:!0,disabled:this.disabled};return c.html`
58
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}updated(t){this.tabIndex=this.disabled?-1:0,super.updated(t)}firstUpdated(){"submit"!=this.type&&"reset"!=this.type||this.appendChild(this.$button),this.slotChanged(),this.badgeInChanged(),this.badgeOutChanged()}};w([(0,h.property)()],$.prototype,"href",void 0),w([(0,h.property)()],$.prototype,"target",void 0),w([(0,h.property)()],$.prototype,"type",void 0),w([(0,h.property)({type:Boolean})],$.prototype,"disabled",void 0),w([(0,h.property)({type:Boolean})],$.prototype,"fab",void 0),w([(0,h.property)({type:String})],$.prototype,"iconPath",void 0),w([(0,h.property)({type:Boolean})],$.prototype,"ripple",void 0),w([(0,h.query)("#ahref")],$.prototype,"$ahref",void 0),w([(0,h.query)("button")],$.prototype,"$button",void 0),w([(0,h.query)("slot:not([name])")],$.prototype,"$defaultSlot",void 0),w([(0,h.query)('slot[name="badge-in"]')],$.prototype,"$badgeInSlot",void 0),w([(0,h.query)('slot[name="badge-out"]')],$.prototype,"$badgeOutSlot",void 0),$=w([(0,h.customElement)("tk-button")],$);var z=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let _=class extends c.LitElement{constructor(){super(),this._id=u(),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.handleClick=this.handleClick.bind(this),this.onKeyDown=this.onKeyDown.bind(this)}render(){var t,e;const r=`${this._id}-label`,o=this.indeterminate?"mixed":this.checked?"true":"false",a={state:!0,disabled:this.disabled};return c.html`
59
+ <input
60
+ type="checkbox"
61
+ aria-hidden="true"
62
+ tabindex="-1"
63
+ style="display: none"
64
+ .id=${this._id}
65
+ .name=${null!==(t=this.name)&&void 0!==t?t:""}
66
+ .value=${null!==(e=this.value)&&void 0!==e?e:"on"}
67
+ ?checked=${this.checked}
68
+ ?disabled=${this.disabled}
69
+ .indeterminate=${this.indeterminate}
70
+ />
49
71
  <tk-box direction="row" align-items="center" @click=${this.handleClick}>
50
- <tk-box ripple tabindex="${this.disabled?-1:0}" class=${(0,y.classMap)(t)} @keydown=${this.onKeyDown}>
72
+ <tk-box
73
+ ripple
74
+ tabindex="${this.disabled?-1:0}"
75
+ class=${(0,y.classMap)(a)}
76
+ role="checkbox"
77
+ aria-checked=${o}
78
+ aria-disabled=${this.disabled?"true":"false"}
79
+ aria-labelledby=${r}
80
+ @keydown=${this.onKeyDown}
81
+ >
51
82
  <div class="checkbox">
52
83
  <svg id="checkmark" xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" preserveAspectRatio="none" viewBox="0 0 24 24">
53
84
  <path id="checkmark-path" fill="none" d="M1.73,12.91 8.1,19.28 22.79,4.59"></path>
@@ -55,13 +86,13 @@
55
86
  </svg>
56
87
  </div>
57
88
  </tk-box>
58
- <span class="label"><slot></slot></span>
89
+ <span class="label" id=${r}><slot></slot></span>
59
90
  </tk-box>
60
- `}firstUpdated(){this.$input=document.createElement("input"),this.$input.type="checkbox",this.$input.slot="none",this.$input.style.display="none",this.$input.setAttribute("aria-hidden","true"),this.$input.tabIndex=-1,this.syncInput(),this.appendChild(this.$input)}updated(){this.syncInput()}onKeyDown(t){this.disabled||"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())}handleClick(){this.disabled||(this.checked=!this.checked,this.indeterminate&&(this.indeterminate=!1),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))))}syncInput(){var t,e;this.$input&&(this.$input.id=this._id,this.$input.name=null!==(t=this.name)&&void 0!==t?t:"",this.$input.value=null!==(e=this.value)&&void 0!==e?e:"on",this.$input.checked=this.checked,this.$input.disabled=this.disabled,this.$input.indeterminate=this.indeterminate)}};_.styles=c.css`
91
+ `}updated(t){super.updated(t),t.has("indeterminate")&&this.$input&&(this.$input.indeterminate=this.indeterminate)}onKeyDown(t){this.disabled||"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.handleClick())}handleClick(){this.disabled||(this.checked=!this.checked,this.indeterminate&&(this.indeterminate=!1),this.dispatchEvent(new CustomEvent("change",{bubbles:!0,composed:!0,detail:{checked:this.checked,indeterminate:this.indeterminate}})))}};_.styles=c.css`
61
92
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex}:host .state{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:100%;outline:none;overflow:hidden}:host .checkbox{width:18px;height:18px;border:solid 2px hsl(var(--primary));transition:var(--checkbox-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), border-color var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));position:relative;display:inline-flex;align-items:center;justify-content:center;outline:none;-webkit-user-select:none;user-select:none;margin:0 5px}:host .label{user-select:none}:host([checked]) .checkbox{background-color:hsl(var(--primary))}:host([checked]:not([indeterminate])) #checkmark-path,:host([indeterminate]) #indeterminate-path{stroke-dashoffset:0}:host(:focus) #checkmark-path,:host(:hover) #checkmark-path{will-change:stroke-dashoffset}#checkmark{padding:1px}#checkmark-path,#indeterminate-path{stroke-width:5px;stroke:hsl(var(--on-primary));stroke-dasharray:30;stroke-dashoffset:30;transition:var(--checkbox-checkmark-transition, stroke-dashoffset var(--transition-duration-medium, 0.18s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)))}#checkmark-path{transition-delay:var(--checkbox-checkmark-path-delay, 50ms)}:host(:not([disabled])){cursor:pointer}:host(:focus) .state,:host(:hover) .state{background:hsla(var(--on-surface), 0.3)}:host([checked]:focus) .state,:host([checked]:hover) .state{background:hsla(var(--primary), 0.3)}:host([checked]:focus) .checked,:host([checked]:hover) .checked{background-color:hsl(var(--primary))}:host([disabled]){pointer-events:none}:host([disabled]) .checkbox{border-color:hsla(var(--on-surface), 0);background-color:hsla(var(--on-surface), 0.3)}:host([disabled]) #checkmark-path,:host([disabled]) #indeterminate-path{stroke:hsla(var(--on-surface-variant, 0.3))}:host([disabled]) .label{opacity:.6}")}
62
- `,z([(0,h.property)({attribute:!0,type:String})],_.prototype,"name",void 0),z([(0,h.property)({attribute:!0,type:String,reflect:!0})],_.prototype,"value",void 0),z([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],_.prototype,"checked",void 0),z([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],_.prototype,"disabled",void 0),z([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],_.prototype,"indeterminate",void 0),_=z([(0,h.customElement)("tk-checkbox")],_);var A=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let S=class extends c.LitElement{constructor(){super(...arguments),this.disabled=!1,this.removable=!1}onRemove(){this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}render(){return c.html`
63
- <div class="chip ${this.disabled?"disabled":""}">
64
-
93
+ `,z([(0,h.property)({attribute:!0,type:String})],_.prototype,"name",void 0),z([(0,h.property)({attribute:!0,type:String,reflect:!0})],_.prototype,"value",void 0),z([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],_.prototype,"checked",void 0),z([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],_.prototype,"disabled",void 0),z([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],_.prototype,"indeterminate",void 0),z([(0,h.query)("input[aria-hidden]")],_.prototype,"$input",void 0),_=z([(0,h.customElement)("tk-checkbox")],_);var S=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let A=class extends c.LitElement{constructor(){super(...arguments),this.disabled=!1,this.removable=!1,this.onRemove=t=>{t.stopPropagation(),this.disabled||this.dispatchEvent(new CustomEvent("remove",{bubbles:!0,composed:!0}))}}render(){const t={chip:!0,disabled:this.disabled};return c.html`
94
+ <div class=${(0,y.classMap)(t)} aria-disabled=${this.disabled?"true":"false"}>
95
+
65
96
  <!-- 3. LEADING ICON (optional) -->
66
97
  <span class="leading">
67
98
  <slot name="leading"></slot>
@@ -75,30 +106,33 @@
75
106
  <!-- 4. TRAILING ICON -->
76
107
  <span class="trailing">
77
108
  <slot name="trailing">
78
- ${this.removable?c.html`<button class="remove" @click=${this.onRemove}>✕</button>`:""}
109
+ ${this.removable?c.html`<button class="remove" type="button" ?disabled=${this.disabled} aria-label="Remove" @click=${this.onRemove}>✕</button>`:""}
79
110
  </slot>
80
111
  </span>
81
112
 
82
113
  </div>
83
- `}};S.styles=c.css`${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}.chip{display:inline-flex;align-items:center;border-radius:10px;padding:3px 10px;background:hsl(var(--surface-container-highest));border:1px solid hsl(var(--outline-variant));font-size:13px;height:30px;gap:6px;line-height:1;cursor:pointer}.chip.disabled{opacity:.4;pointer-events:none}.chip .leading{display:inline-flex;align-items:center}.chip .leading slot::slotted(*){display:inline-flex;align-items:center}.chip .label{white-space:nowrap;display:inline-flex;align-items:center;line-height:1}.chip .trailing{display:inline-flex;align-items:center}.chip .trailing slot::slotted(*){display:inline-flex;align-items:center}.chip .trailing .remove{background:none;border:none;cursor:pointer;font-size:13px;line-height:1;opacity:.7}.chip .trailing .remove:hover{opacity:1}")}`,A([(0,h.property)({type:Boolean})],S.prototype,"disabled",void 0),A([(0,h.property)({type:Boolean})],S.prototype,"removable",void 0),S=A([(0,h.customElement)("tk-chip")],S);var E=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let C=class extends c.LitElement{constructor(){super(...arguments),this.modal=!1,this.open=!1,this.blurOverlay=!1,this.handleKeyDown=t=>{"Escape"===t.key&&this.open&&!this.modal&&this.hide()}}render(){return c.html`
114
+ `}};A.styles=c.css`${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}.chip{display:inline-flex;align-items:center;border-radius:10px;padding:3px 10px;background:hsl(var(--surface-container-highest));border:1px solid hsl(var(--outline-variant));font-size:13px;height:30px;gap:6px;line-height:1;cursor:pointer}.chip.disabled{opacity:.4;pointer-events:none}.chip .leading{display:inline-flex;align-items:center}.chip .leading slot::slotted(*){display:inline-flex;align-items:center}.chip .label{white-space:nowrap;display:inline-flex;align-items:center;line-height:1}.chip .trailing{display:inline-flex;align-items:center}.chip .trailing slot::slotted(*){display:inline-flex;align-items:center}.chip .trailing .remove{background:none;border:none;cursor:pointer;font-size:13px;line-height:1;opacity:.7}.chip .trailing .remove:hover{opacity:1}")}`,S([(0,h.property)({type:Boolean,reflect:!0})],A.prototype,"disabled",void 0),S([(0,h.property)({type:Boolean,reflect:!0})],A.prototype,"removable",void 0),A=S([(0,h.customElement)("tk-chip")],A);var C=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let E=class extends c.LitElement{constructor(){super(...arguments),this.modal=!1,this.open=!1,this.blurOverlay=!1,this.handleKeyDown=t=>{"Escape"===t.key&&this.open&&!this.modal&&this.hide()},this.onOverlayClick=()=>{this.modal||this.hide()}}render(){return c.html`
84
115
  ${this.open?c.html`
85
- <div class="overlay ${this.blurOverlay?"blur":""}" @click=${()=>this.modal?null:this.hide()}></div>
86
- <div class="container">
116
+ <div class="overlay ${this.blurOverlay?"blur":""}" @click=${this.onOverlayClick}></div>
117
+ <div class="container" role="dialog" aria-modal=${this.modal?"true":"false"}>
87
118
  <slot></slot>
88
119
  </div>
89
- `:""}
90
- `}updated(t){t.has("open")&&this.open&&this.dispatchEvent(new Event("did-show")),t.has("open")&&1==t.get("open")&&!this.open&&this.dispatchEvent(new Event("did-close"))}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}show(){return this.open=!0,new Promise(t=>{this.resolve=t})}hide(t=null){this.open=!1,this.resolve&&this.resolve(t)}};C.styles=c.css`
120
+ `:c.nothing}
121
+ `}updated(t){t.has("open")&&(this.open?this.dispatchEvent(new CustomEvent("did-show",{bubbles:!0})):!0===t.get("open")&&this.dispatchEvent(new CustomEvent("did-close",{bubbles:!0})))}connectedCallback(){super.connectedCallback(),window.addEventListener("keydown",this.handleKeyDown)}disconnectedCallback(){window.removeEventListener("keydown",this.handleKeyDown),super.disconnectedCallback()}show(){return this.open=!0,new Promise(t=>{this.resolve=t})}hide(t=null){this.open=!1,this.resolve&&this.resolve(t)}};E.styles=c.css`
91
122
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:none;position:relative;outline:none}:host([open]){display:block;z-index:var(--dialog-z-index, 300);position:fixed;top:0;left:0;width:100%;height:100%}:host([open]) .overlay{background-color:rgba(0,0,0,.5);position:absolute;top:0;left:0;bottom:0;right:0}:host([open]) .overlay.blur{backdrop-filter:blur(2px)}:host([open]) .container{animation:fade-in .3s forwards;position:fixed;margin:0;max-width:100%;height:100%;max-height:100%;width:fit-content;will-change:transform,opacity;overflow-y:auto;overscroll-behavior:contain}@keyframes fade-in{0%{opacity:0}100%{opacity:1}}@media(max-width: 400px){:host([open]) .container{padding:.1rem}}")}
92
- `,E([(0,h.property)({type:Boolean,attribute:!0})],C.prototype,"modal",void 0),E([(0,h.property)({type:Boolean,attribute:!0,reflect:!0})],C.prototype,"open",void 0),E([(0,h.property)({type:Boolean,attribute:"blur-overlay"})],C.prototype,"blurOverlay",void 0),C=E([(0,h.customElement)("tk-dialog")],C);var j=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let T=class extends c.LitElement{constructor(){super(...arguments),this._open=!1,this.over=!1,this.right=!1,this.swipeable=!1,this.overMediaQueryListener=t=>{t.matches?this.setAttribute("over",""):this.removeAttribute("over")},this.swipeX=0,this.swipeY=0,this.isHorizontalSwipe=!1}set open(t){if(t===this._open)return;const e=this._open;this._open=t,this.requestUpdate("open",e),this._open&&this.dispatchEvent(new Event("did-show")),this._open||this.dispatchEvent(new Event("did-close"))}get open(){return this._open}render(){return c.html`
123
+ `,C([(0,h.property)({type:Boolean,attribute:!0})],E.prototype,"modal",void 0),C([(0,h.property)({type:Boolean,attribute:!0,reflect:!0})],E.prototype,"open",void 0),C([(0,h.property)({type:Boolean,attribute:"blur-overlay"})],E.prototype,"blurOverlay",void 0),E=C([(0,h.customElement)("tk-dialog")],E);var j=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let T=class extends c.LitElement{constructor(){super(...arguments),this.open=!1,this.over=!1,this.right=!1,this.swipeable=!1,this.contentScrolled=!1,this.contentHasBottomShadow=!1,this.overMediaQueryListener=t=>{t.matches?this.setAttribute("over",""):this.removeAttribute("over")},this.handleOverlayClick=()=>{this.hide()},this.handleContentScroll=()=>{if(!this.$content)return;const{scrollTop:t,scrollHeight:e,clientHeight:r}=this.$content;this.contentScrolled=t>0;const o=Math.ceil(t+r)>=e;this.contentHasBottomShadow=!o&&e>r},this.swipeX=0,this.swipeY=0,this.isHorizontalSwipe=!1}render(){return c.html`
93
124
  <div class="container">
94
125
  <slot name="drawer-container"></slot>
95
126
  </div>
96
- <div class="overlay" @click=${()=>this.open=!1}></div>
127
+ <div class="overlay" @click=${this.handleOverlayClick}></div>
97
128
  <div class="drawer" @touchstart=${this.touchStart} @touchmove=${this.touchMove} @touchend=${this.touchEnd}>
98
129
  <div class="drawer-header">
99
130
  <slot name="drawer-header"></slot>
100
131
  </div>
101
- <div class="drawer-content">
132
+ <div
133
+ class="drawer-content ${this.contentScrolled?"has-top-shadow":""} ${this.contentHasBottomShadow?"has-bottom-shadow":""}"
134
+ @scroll=${this.handleContentScroll}
135
+ >
102
136
  <slot name="drawer-content"></slot>
103
137
  </div>
104
138
  <div class="drawer-footer">
@@ -107,9 +141,9 @@
107
141
  <div class="drawer-swipe"></div>
108
142
  </div>
109
143
 
110
- `}updated(t){t.has("overQuery")&&this.overMediaQuery(),t.has("openQuery")&&window.matchMedia(this.openQuery).matches&&this.show(),t.has("open")&&this.swipeable&&requestAnimationFrame(t=>{this.$drawer.removeAttribute("style")})}overMediaQuery(){this.mql&&this.mql.removeEventListener("change",this.overMediaQueryListener),this.mql=window.matchMedia(this.overQuery),this.mql.matches?this.setAttribute("over",""):this.removeAttribute("over"),this.mql.addEventListener("change",this.overMediaQueryListener)}hideIfOver(){var t;(this.overQuery&&(null===(t=this.mql)||void 0===t?void 0:t.matches)||this.over)&&(this.open=!1)}show(){this.open=!0}hide(){this.open=!1}toggle(){this.open=!this.open}touchStart(t){this.swipeable&&(this.$drawer.style.transition="transform 0ms ease",this.swipeX=t.touches[0].clientX,this.swipeY=t.touches[0].clientY)}touchMove(t){if(!this.swipeable)return;const e=t.touches[0].clientX-this.swipeX,r=t.touches[0].clientY-this.swipeY;if(this.isHorizontalSwipe=Math.abs(e)>Math.abs(r),this.isHorizontalSwipe){var o,a=this.open?e>0?0:e:e<0?0:e;o=this.open?"translateX("+a+"px)":`translateX(min(calc(-100% + 10px + ${a}px), 0px)`,requestAnimationFrame(t=>{this.$drawer.style.transform=o})}}touchEnd(t){if(!this.swipeable)return;requestAnimationFrame(t=>{this.$drawer.removeAttribute("style")});const e=t.changedTouches[0].clientX-this.swipeX;this.isHorizontalSwipe&&this.open?this.open=!(-50>e):this.isHorizontalSwipe&&!this.open&&(this.open=50<e),this.isHorizontalSwipe=!1}disconnectedCallback(){this.mql&&this.mql.removeEventListener("change",this.overMediaQueryListener),super.disconnectedCallback()}};T.styles=c.css`
111
- ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:block;height:100%;width:100%;position:relative;overflow:hidden;background-color:hsl(var(--surface))}.drawer{display:grid;grid-template-columns:var(--drawer-width, 256px) 10px;grid-template-rows:auto 1fr auto;grid-template-areas:"header swipe" "content swipe" "footer swipe";position:absolute;top:0;bottom:0;transform:translateX(calc(-100% + 10px));transition:transform cubic-bezier(0.4, 0, 0.2, 1) var(--transition-duration-medium, 180ms);will-change:transform;touch-action:pan-y;z-index:var(--drawer-z-index, 200);background-color:hsl(var(--surface))}.drawer .drawer-header{grid-area:header}.drawer .drawer-content{grid-area:content;overflow:auto}.drawer .drawer-footer{grid-area:footer}.drawer .drawer-swipe{grid-area:swipe;background-color:rgba(0,0,0,0)}:host([right]) .drawer{right:0;transform:translateX(calc(100% + 10px))}.overlay{position:absolute;top:0;left:0;right:0;bottom:0;z-index:var(--drawer-overlay-z-index, 200);background-color:rgba(0,0,0,.5);display:none}.container{transition:padding cubic-bezier(0.4, 0, 0.2, 1) var(--transition-duration-slow, 250ms);overflow:auto;height:100%}:host([open]) .drawer{transform:none}:host([open]) .container{padding-left:var(--drawer-width, 256px)}:host([open][over]) .drawer{background-color:hsl(var(--surface-container-low));box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)}:host([open][over]) .container{padding-left:0}:host([open][over]) .overlay{display:block}@media(max-width: var(--drawer-trigger-width, 400px)){:host([open]) .container{padding-left:0}:host([open]) .overlay{display:block}}')}
112
- `,j([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"open",null),j([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"over",void 0),j([(0,h.property)({type:String,attribute:"open-query"})],T.prototype,"openQuery",void 0),j([(0,h.property)({type:String,attribute:"over-query"})],T.prototype,"overQuery",void 0),j([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"right",void 0),j([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"swipeable",void 0),j([(0,h.query)("div.drawer")],T.prototype,"$drawer",void 0),j([(0,h.eventOptions)({passive:!0})],T.prototype,"touchStart",null),j([(0,h.eventOptions)({passive:!0})],T.prototype,"touchMove",null),j([(0,h.eventOptions)({passive:!0})],T.prototype,"touchEnd",null),T=j([(0,h.customElement)("tk-drawer")],T);var O=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let R=class extends c.LitElement{connectedCallback(){super.connectedCallback(),this.addEventListener("submit",this.submit)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("submit",this.submit)}submit(t){t.preventDefault();const e=this.getFormDataAsObject();this.dispatchEvent(new CustomEvent("fulfill",{detail:e}))}getFormDataAsObject(){const t=this.querySelector("form"),e={};return new FormData(t).forEach((t,r)=>{var o;const a=this.querySelector(`[name=${r}]`);if("TK-SLIDER"==a.tagName&&(t=Number(t)),"TK-CHECKBOX"!=a.tagName||"on"!=t&&"true"!=t||(t=!0),"TK-RADIO"!=a.tagName||"on"!=t&&"true"!=t||(t=!0),r.indexOf("-")>0){const a=r.split("-");e[a[0]]=null!==(o=e[a[0]])&&void 0!==o?o:{},e[a[0]][a[1]]=t}else e[r]=t}),e}};O([(0,h.property)()],R.prototype,"value",void 0),R=O([(0,h.customElement)("tk-form")],R);var D=s(968);var L=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n},P=function(t,e,r,o){return new(r||(r=Promise))(function(a,i){function n(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(n,s)}l((o=o.apply(t,e||[])).next())})};let q=class extends p{constructor(){super(...arguments),this.svg=""}static get styles(){return[...p.styles,c.css`
144
+ `}firstUpdated(){this.overQuery&&this.overMediaQuery(),this.openQuery&&window.matchMedia(this.openQuery).matches&&this.show(),this.handleContentScroll()}updated(t){super.updated(t),t.has("overQuery")&&this.overQuery&&this.overMediaQuery(),t.has("openQuery")&&this.openQuery&&window.matchMedia(this.openQuery).matches&&this.show(),t.has("open")&&(this.open?this.dispatchEvent(new CustomEvent("did-show",{bubbles:!0})):!0===t.get("open")&&this.dispatchEvent(new CustomEvent("did-close",{bubbles:!0})),this.swipeable&&this.$drawer&&requestAnimationFrame(()=>{this.$drawer.removeAttribute("style")}))}overMediaQuery(){this.mql&&this.mql.removeEventListener("change",this.overMediaQueryListener),this.mql=window.matchMedia(this.overQuery),this.mql.matches?this.setAttribute("over",""):this.removeAttribute("over"),this.mql.addEventListener("change",this.overMediaQueryListener)}hideIfOver(){var t;(this.overQuery&&(null===(t=this.mql)||void 0===t?void 0:t.matches)||this.over)&&(this.open=!1)}show(){this.open=!0}hide(){this.open=!1}toggle(){this.open=!this.open}touchStart(t){this.swipeable&&this.$drawer&&(this.$drawer.style.transition="transform 0ms ease",this.swipeX=t.touches[0].clientX,this.swipeY=t.touches[0].clientY)}touchMove(t){if(!this.swipeable||!this.$drawer)return;const e=t.touches[0].clientX-this.swipeX,r=t.touches[0].clientY-this.swipeY;if(this.isHorizontalSwipe=Math.abs(e)>Math.abs(r),!this.isHorizontalSwipe)return;const o=this.open?e>0?0:e:e<0?0:e,a=this.open?`translateX(${o}px)`:`translateX(min(calc(-100% + 10px + ${o}px), 0px))`;requestAnimationFrame(()=>{this.$drawer&&(this.$drawer.style.transform=a)})}touchEnd(t){if(!this.swipeable||!this.$drawer)return;requestAnimationFrame(()=>{var t;null===(t=this.$drawer)||void 0===t||t.removeAttribute("style")});const e=t.changedTouches[0].clientX-this.swipeX;this.isHorizontalSwipe&&this.open?this.open=!(-50>e):this.isHorizontalSwipe&&!this.open&&(this.open=50<e),this.isHorizontalSwipe=!1}disconnectedCallback(){this.mql&&this.mql.removeEventListener("change",this.overMediaQueryListener),super.disconnectedCallback()}};T.styles=c.css`
145
+ ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:block;height:100%;width:100%;position:relative;overflow:hidden;background-color:hsl(var(--surface))}.drawer{display:grid;grid-template-columns:var(--drawer-width, 256px) 10px;grid-template-rows:auto 1fr auto;grid-template-areas:"header swipe" "content swipe" "footer swipe";position:absolute;top:0;bottom:0;transform:translateX(calc(-100% + 10px));transition:transform cubic-bezier(0.4, 0, 0.2, 1) var(--transition-duration-medium, 180ms);will-change:transform;touch-action:pan-y;z-index:var(--drawer-z-index, 200);background-color:hsl(var(--surface))}.drawer .drawer-header{grid-area:header}.drawer .drawer-content{grid-area:content;overflow:auto;position:relative;transition:opacity var(--transition-duration-medium, 180ms) ease}.drawer .drawer-content::before,.drawer .drawer-content::after{content:"";position:sticky;display:block;height:14px;pointer-events:none;opacity:0;transition:opacity var(--transition-duration-medium, 180ms) ease;left:0;right:0;width:100%;z-index:1}.drawer .drawer-content::before{top:0;margin-top:-14px;background:linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0))}.drawer .drawer-content::after{bottom:0;margin-bottom:-14px;background:linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0))}.drawer .drawer-content.has-top-shadow::before{opacity:1}.drawer .drawer-content.has-bottom-shadow::after{opacity:1}.drawer .drawer-footer{grid-area:footer}.drawer .drawer-swipe{grid-area:swipe;background-color:rgba(0,0,0,0)}:host([right]) .drawer{right:0;transform:translateX(calc(100% + 10px))}.overlay{position:absolute;top:0;left:0;right:0;bottom:0;z-index:var(--drawer-overlay-z-index, 200);background-color:rgba(0,0,0,.5);display:none}.container{transition:padding cubic-bezier(0.4, 0, 0.2, 1) var(--transition-duration-slow, 250ms);overflow:auto;height:100%}:host([open]) .drawer{transform:none}:host([open]) .container{padding-left:var(--drawer-width, 256px)}:host([open][over]) .drawer{background-color:hsl(var(--surface-container-low));box-shadow:0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15)}:host([open][over]) .container{padding-left:0}:host([open][over]) .overlay{display:block}@media(max-width: var(--drawer-trigger-width, 400px)){:host([open]) .container{padding-left:0}:host([open]) .overlay{display:block}}')}
146
+ `,j([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"open",void 0),j([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"over",void 0),j([(0,h.property)({type:String,attribute:"open-query"})],T.prototype,"openQuery",void 0),j([(0,h.property)({type:String,attribute:"over-query"})],T.prototype,"overQuery",void 0),j([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"right",void 0),j([(0,h.property)({type:Boolean,reflect:!0})],T.prototype,"swipeable",void 0),j([(0,h.query)("div.drawer")],T.prototype,"$drawer",void 0),j([(0,h.query)("div.drawer-content")],T.prototype,"$content",void 0),j([(0,h.state)()],T.prototype,"contentScrolled",void 0),j([(0,h.state)()],T.prototype,"contentHasBottomShadow",void 0),j([(0,h.eventOptions)({passive:!0})],T.prototype,"touchStart",null),j([(0,h.eventOptions)({passive:!0})],T.prototype,"touchMove",null),j([(0,h.eventOptions)({passive:!0})],T.prototype,"touchEnd",null),T=j([(0,h.customElement)("tk-drawer")],T);var O=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let R=class extends c.LitElement{connectedCallback(){super.connectedCallback(),this.addEventListener("submit",this.submit)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("submit",this.submit)}submit(t){t.preventDefault();const e=this.getFormDataAsObject();this.dispatchEvent(new CustomEvent("fulfill",{detail:e}))}getFormDataAsObject(){const t=this.querySelector("form"),e={};return new FormData(t).forEach((t,r)=>{var o;const a=this.querySelector(`[name=${r}]`);if("TK-SLIDER"==a.tagName&&(t=Number(t)),"TK-CHECKBOX"!=a.tagName||"on"!=t&&"true"!=t||(t=!0),"TK-RADIO"!=a.tagName||"on"!=t&&"true"!=t||(t=!0),r.indexOf("-")>0){const a=r.split("-");e[a[0]]=null!==(o=e[a[0]])&&void 0!==o?o:{},e[a[0]][a[1]]=t}else e[r]=t}),e}};O([(0,h.property)()],R.prototype,"value",void 0),R=O([(0,h.customElement)("tk-form")],R);var D=s(968);var L=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n},P=function(t,e,r,o){return new(r||(r=Promise))(function(a,i){function n(t){try{l(o.next(t))}catch(t){i(t)}}function s(t){try{l(o.throw(t))}catch(t){i(t)}}function l(t){var e;t.done?a(t.value):(e=t.value,e instanceof r?e:new r(function(t){t(e)})).then(n,s)}l((o=o.apply(t,e||[])).next())})};let q=class extends p{constructor(){super(...arguments),this.svg=""}static get styles(){return[...p.styles,c.css`
113
147
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{--color: var(--tk-icon-color, currentColor);display:inline-flex;flex-shrink:0;width:1.5em;height:1.5em}:host svg{width:100%;height:100%;display:block;fill:var(--color)}")}
114
148
  `]}render(){return c.html`
115
149
  ${this.path?c.html`
@@ -117,20 +151,20 @@
117
151
  `:c.html`
118
152
  ${(0,D.unsafeHTML)(this.svg)}
119
153
  `}
120
- `}updated(t){t.has("name")&&this.name&&this.loadIcon()}loadIcon(){return P(this,void 0,void 0,function*(){const t=this.library?document.querySelector(`tk-icons[library=${this.library}]`):document.querySelector("tk-icons");t&&(this.svg=yield fetch(t.resolve(this.name)).then(t=>t.blob().then(e=>({contentType:t.headers.get("Content-Type"),raw:e}))).then(t=>t.contentType&&/svg/.test(t.contentType)?t.raw.text():""))})}};L([(0,h.property)()],q.prototype,"name",void 0),L([(0,h.property)()],q.prototype,"library",void 0),L([(0,h.property)()],q.prototype,"path",void 0),L([(0,h.property)()],q.prototype,"svg",void 0),q=L([(0,h.customElement)("tk-icon")],q);var B=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let N=class extends c.LitElement{constructor(){super(...arguments),this.library="default"}firstUpdated(){window.document.body.appendChild(this)}};B([(0,h.property)({attribute:!1})],N.prototype,"resolve",void 0),B([(0,h.property)({reflect:!0})],N.prototype,"library",void 0),N=B([(0,h.customElement)("tk-icons")],N);var H=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let M=class extends p{static get styles(){return[...p.styles,c.css`
154
+ `}updated(t){(t.has("name")||t.has("library"))&&this.name&&!this.path&&this.loadIcon()}loadIcon(){return P(this,void 0,void 0,function*(){if(!this.name||this.path)return void(this.svg="");const t=this.name,e=this.library,r=this.library?document.querySelector(`tk-icons[library=${this.library}]`):document.querySelector("tk-icons");if(r)try{const o=yield fetch(r.resolve(t));if(!o.ok)return void(this.svg="");const a=o.headers.get("Content-Type")||"";if(!/svg/i.test(a))return void(this.svg="");const i=yield o.text();t!==this.name||e!==this.library||this.path||(this.svg=i)}catch(t){this.svg=""}else this.svg=""})}};L([(0,h.property)()],q.prototype,"name",void 0),L([(0,h.property)()],q.prototype,"library",void 0),L([(0,h.property)()],q.prototype,"path",void 0),L([(0,h.state)()],q.prototype,"svg",void 0),q=L([(0,h.customElement)("tk-icon")],q);var N=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let B=class extends c.LitElement{constructor(){super(...arguments),this.library="default"}firstUpdated(){window.document.body.appendChild(this)}};N([(0,h.property)({attribute:!1})],B.prototype,"resolve",void 0),N([(0,h.property)({reflect:!0})],B.prototype,"library",void 0),B=N([(0,h.customElement)("tk-icons")],B);var H=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let M=class extends p{static get styles(){return[...p.styles,c.css`
121
155
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{height:56px;padding:0 24px 0 16px;border-radius:28px;display:flex;flex-direction:row;align-items:center;outline:none;overflow:hidden;position:relative;text-align:left;color:hsl(var(--on-surface-variant))}:host([clickable]),:host([href]){user-select:none}:host([clickable]:not([active]):not([disabled])),:host([href]:not([active]):not([disabled])){cursor:pointer}:host(:hover),:host(:focus){will-change:background,color;background-color:hsla(var(--on-surface), 0.08);color:hsl(var(--on-surface))}:host([active]){background-color:hsla(var(--secondary-container), 1);color:hsl(var(--on-secondary-container))}:host([active]:focus),:host([active]:hover){background-color:hsla(var(--secondary-container), 1);color:hsl(var(--on-secondary-container))}:host([disabled]){background:hsla(var(--surface-container-highest), 0.12);color:hsl(var(--on-surface-variant));opacity:.4;pointer-events:none}::slotted([slot=before]),::slotted([slot=after]){flex-shrink:0}::slotted([slot=before]){align-self:var(--list-item-left-align-self, center);margin:0 var(--spacing-m, 1rem) 0 0}::slotted([slot=after]){align-self:var(--list-item-left-align-self, center);margin:0 0 0 var(--spacing-m, 1rem)}#content{flex-grow:1;display:flex;flex-direction:column;max-width:100%}")}
122
156
  `]}render(){return c.html`
123
157
  <slot name="before" @click=${this.handleClick}></slot>
124
158
  <div id="content">
125
- <slot></slot>
159
+ <slot @slotchange=${this.ensureAriaLabel}></slot>
126
160
  </div>
127
161
  <slot name="after" @click=${this.handleClick}></slot>
128
162
  ${this.href?c.html`
129
- <a tabindex="-1" id="ahref" href="${this.href}" target=${(0,k.ifDefined)(this.target)} rel="noreferrer" aria-label=${this.ariaLabel}></a>
130
- `:""}
131
- `}constructor(){super(),this.href="",this.target="",this.onKeyDown=t=>{"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())},this.handleClick=t=>{const e=t.target;"BUTTON"!=e.tagName&&"TK-BUTTON"!=e.tagName&&"TK-SWITCH"!=e.tagName&&"TK-CHECKBOX"!=e.tagName&&this.href&&t.isTrusted&&(t.stopPropagation(),t.preventDefault(),this.$ahref.click())}}firstUpdated(){!this.ariaLabel&&this.innerText&&(this.ariaLabel=this.innerText)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}};H([(0,h.property)({attribute:!0})],M.prototype,"href",void 0),H([(0,h.property)({attribute:!0})],M.prototype,"target",void 0),H([(0,h.property)({attribute:"aria-label"})],M.prototype,"ariaLabel",void 0),H([(0,h.query)("#ahref")],M.prototype,"$ahref",void 0),M=H([(0,h.customElement)("tk-list-item")],M);const I=globalThis,U=I.trustedTypes,K=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,V="$lit$",Y=`lit$${Math.random().toFixed(9).slice(2)}$`,X="?"+Y,F=`<${X}>`,Q=document,W=()=>Q.createComment(""),Z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,J=t=>G(t)||"function"==typeof t?.[Symbol.iterator],tt="[ \t\n\f\r]",et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rt=/-->/g,ot=/>/g,at=RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,nt=/"/g,st=/^(?:script|style|textarea|title)$/i,lt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ct=(lt(1),lt(2),lt(3),Symbol.for("lit-noChange")),ht=Symbol.for("lit-nothing"),dt=new WeakMap,pt=Q.createTreeWalker(Q,129);function ut(t,e){if(!G(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(e):e}const vt=(t,e)=>{const r=t.length-1,o=[];let a,i=2===e?"<svg>":3===e?"<math>":"",n=et;for(let e=0;e<r;e++){const r=t[e];let s,l,c=-1,h=0;for(;h<r.length&&(n.lastIndex=h,l=n.exec(r),null!==l);)h=n.lastIndex,n===et?"!--"===l[1]?n=rt:void 0!==l[1]?n=ot:void 0!==l[2]?(st.test(l[2])&&(a=RegExp("</"+l[2],"g")),n=at):void 0!==l[3]&&(n=at):n===at?">"===l[0]?(n=a??et,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,s=l[1],n=void 0===l[3]?at:'"'===l[3]?nt:it):n===nt||n===it?n=at:n===rt||n===ot?n=et:(n=at,a=void 0);const d=n===at&&t[e+1].startsWith("/>")?" ":"";i+=n===et?r+F:c>=0?(o.push(s),r.slice(0,c)+V+r.slice(c)+Y+d):r+Y+(-2===c?e:d)}return[ut(t,i+(t[r]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]};class bt{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,i=0;const n=t.length-1,s=this.parts,[l,c]=vt(t,e);if(this.el=bt.createElement(l,r),pt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=pt.nextNode())&&s.length<n;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(V)){const e=c[i++],r=o.getAttribute(t).split(Y),n=/([.?@])?(.*)/.exec(e);s.push({type:1,index:a,name:n[2],strings:r,ctor:"."===n[1]?xt:"?"===n[1]?kt:"@"===n[1]?wt:ft}),o.removeAttribute(t)}else t.startsWith(Y)&&(s.push({type:6,index:a}),o.removeAttribute(t));if(st.test(o.tagName)){const t=o.textContent.split(Y),e=t.length-1;if(e>0){o.textContent=U?U.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],W()),pt.nextNode(),s.push({type:2,index:++a});o.append(t[e],W())}}}else if(8===o.nodeType)if(o.data===X)s.push({type:2,index:a});else{let t=-1;for(;-1!==(t=o.data.indexOf(Y,t+1));)s.push({type:7,index:a}),t+=Y.length-1}a++}}static createElement(t,e){const r=Q.createElement("template");return r.innerHTML=t,r}}function gt(t,e,r=t,o){if(e===ct)return e;let a=void 0!==o?r._$Co?.[o]:r._$Cl;const i=Z(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),void 0===i?a=void 0:(a=new i(t),a._$AT(t,r,o)),void 0!==o?(r._$Co??=[])[o]=a:r._$Cl=a),void 0!==a&&(e=gt(t,a._$AS(t,e.values),a,o)),e}class mt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??Q).importNode(e,!0);pt.currentNode=o;let a=pt.nextNode(),i=0,n=0,s=r[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new yt(a,a.nextSibling,this,t):1===s.type?e=new s.ctor(a,s.name,s.strings,this,t):6===s.type&&(e=new $t(a,this,t)),this._$AV.push(e),s=r[++n]}i!==s?.index&&(a=pt.nextNode(),i++)}return pt.currentNode=Q,o}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class yt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=gt(this,t,e),Z(t)?t===ht||null==t||""===t?(this._$AH!==ht&&this._$AR(),this._$AH=ht):t!==this._$AH&&t!==ct&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):J(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ht&&Z(this._$AH)?this._$AA.nextSibling.data=t:this.T(Q.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=bt.createElement(ut(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new mt(o,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=dt.get(t.strings);return void 0===e&&dt.set(t.strings,e=new bt(t)),e}k(t){G(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const a of t)o===e.length?e.push(r=new yt(this.O(W()),this.O(W()),this,this.options)):r=e[o],r._$AI(a),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ft{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ht}_$AI(t,e=this,r,o){const a=this.strings;let i=!1;if(void 0===a)t=gt(this,t,e,0),i=!Z(t)||t!==this._$AH&&t!==ct,i&&(this._$AH=t);else{const o=t;let n,s;for(t=a[0],n=0;n<a.length-1;n++)s=gt(this,o[r+n],e,n),s===ct&&(s=this._$AH[n]),i||=!Z(s)||s!==this._$AH[n],s===ht?t=ht:t!==ht&&(t+=(s??"")+a[n+1]),this._$AH[n]=s}i&&!o&&this.j(t)}j(t){t===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xt extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ht?void 0:t}}class kt extends ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ht)}}class wt extends ft{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){if((t=gt(this,t,e,0)??ht)===ct)return;const r=this._$AH,o=t===ht&&r!==ht||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==ht&&(r===ht||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class $t{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){gt(this,t)}}const zt=I.litHtmlPolyfillSupport;zt?.(bt,yt),(I.litHtmlVersions??=[]).push("3.3.1");const _t=1;class At{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const St="important",Et=" !"+St,Ct=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends At{constructor(t){if(super(t),t.type!==_t||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const o=t[r];return null==o?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){const{style:r}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?r.removeProperty(t):r[t]=null);for(const t in e){const o=e[t];if(null!=o){this.ft.add(t);const e="string"==typeof o&&o.endsWith(Et);t.includes("-")||e?r.setProperty(t,e?o.slice(0,-11):o,e?St:""):r[t]=o}}return ct}});var jt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Tt=class extends p{constructor(){super(...arguments),this.circle=!1,this.indeterminate=!1,this.percent=0}static get styles(){return[...p.styles,c.css`
163
+ <a tabindex="-1" id="ahref" href=${this.href} target=${(0,k.ifDefined)(this.target)} rel="noreferrer" aria-label=${this.ariaLabel}></a>
164
+ `:c.nothing}
165
+ `}constructor(){super(),this.href="",this.target="",this.ariaLabel="",this.onKeyDown=t=>{"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())},this.handleClick=t=>{const e=t.target;"BUTTON"!=e.tagName&&"TK-BUTTON"!=e.tagName&&"TK-SWITCH"!=e.tagName&&"TK-CHECKBOX"!=e.tagName&&this.href&&t.isTrusted&&this.$ahref&&(t.stopPropagation(),t.preventDefault(),this.$ahref.click())}}connectedCallback(){super.connectedCallback(),this.ensureAriaLabel(),this.addEventListener("keydown",this.onKeyDown),this.addEventListener("click",this.handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}ensureAriaLabel(){var t;if(this.ariaLabel)return;const e=null===(t=this.textContent)||void 0===t?void 0:t.trim();e&&(this.ariaLabel=e)}};H([(0,h.property)({type:String,reflect:!0})],M.prototype,"href",void 0),H([(0,h.property)({type:String,reflect:!0})],M.prototype,"target",void 0),H([(0,h.property)({attribute:"aria-label",reflect:!0})],M.prototype,"ariaLabel",void 0),H([(0,h.query)("#ahref")],M.prototype,"$ahref",void 0),M=H([(0,h.customElement)("tk-list-item")],M);const I=globalThis,U=I.trustedTypes,K=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,V="$lit$",Y=`lit$${Math.random().toFixed(9).slice(2)}$`,X="?"+Y,Q=`<${X}>`,F=document,W=()=>F.createComment(""),Z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,G=Array.isArray,J=t=>G(t)||"function"==typeof t?.[Symbol.iterator],tt="[ \t\n\f\r]",et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rt=/-->/g,ot=/>/g,at=RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),it=/'/g,nt=/"/g,st=/^(?:script|style|textarea|title)$/i,lt=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),ct=(lt(1),lt(2),lt(3),Symbol.for("lit-noChange")),ht=Symbol.for("lit-nothing"),dt=new WeakMap,pt=F.createTreeWalker(F,129);function ut(t,e){if(!G(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==K?K.createHTML(e):e}const vt=(t,e)=>{const r=t.length-1,o=[];let a,i=2===e?"<svg>":3===e?"<math>":"",n=et;for(let e=0;e<r;e++){const r=t[e];let s,l,c=-1,h=0;for(;h<r.length&&(n.lastIndex=h,l=n.exec(r),null!==l);)h=n.lastIndex,n===et?"!--"===l[1]?n=rt:void 0!==l[1]?n=ot:void 0!==l[2]?(st.test(l[2])&&(a=RegExp("</"+l[2],"g")),n=at):void 0!==l[3]&&(n=at):n===at?">"===l[0]?(n=a??et,c=-1):void 0===l[1]?c=-2:(c=n.lastIndex-l[2].length,s=l[1],n=void 0===l[3]?at:'"'===l[3]?nt:it):n===nt||n===it?n=at:n===rt||n===ot?n=et:(n=at,a=void 0);const d=n===at&&t[e+1].startsWith("/>")?" ":"";i+=n===et?r+Q:c>=0?(o.push(s),r.slice(0,c)+V+r.slice(c)+Y+d):r+Y+(-2===c?e:d)}return[ut(t,i+(t[r]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]};class bt{constructor({strings:t,_$litType$:e},r){let o;this.parts=[];let a=0,i=0;const n=t.length-1,s=this.parts,[l,c]=vt(t,e);if(this.el=bt.createElement(l,r),pt.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(o=pt.nextNode())&&s.length<n;){if(1===o.nodeType){if(o.hasAttributes())for(const t of o.getAttributeNames())if(t.endsWith(V)){const e=c[i++],r=o.getAttribute(t).split(Y),n=/([.?@])?(.*)/.exec(e);s.push({type:1,index:a,name:n[2],strings:r,ctor:"."===n[1]?xt:"?"===n[1]?kt:"@"===n[1]?wt:ft}),o.removeAttribute(t)}else t.startsWith(Y)&&(s.push({type:6,index:a}),o.removeAttribute(t));if(st.test(o.tagName)){const t=o.textContent.split(Y),e=t.length-1;if(e>0){o.textContent=U?U.emptyScript:"";for(let r=0;r<e;r++)o.append(t[r],W()),pt.nextNode(),s.push({type:2,index:++a});o.append(t[e],W())}}}else if(8===o.nodeType)if(o.data===X)s.push({type:2,index:a});else{let t=-1;for(;-1!==(t=o.data.indexOf(Y,t+1));)s.push({type:7,index:a}),t+=Y.length-1}a++}}static createElement(t,e){const r=F.createElement("template");return r.innerHTML=t,r}}function gt(t,e,r=t,o){if(e===ct)return e;let a=void 0!==o?r._$Co?.[o]:r._$Cl;const i=Z(e)?void 0:e._$litDirective$;return a?.constructor!==i&&(a?._$AO?.(!1),void 0===i?a=void 0:(a=new i(t),a._$AT(t,r,o)),void 0!==o?(r._$Co??=[])[o]=a:r._$Cl=a),void 0!==a&&(e=gt(t,a._$AS(t,e.values),a,o)),e}class mt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,o=(t?.creationScope??F).importNode(e,!0);pt.currentNode=o;let a=pt.nextNode(),i=0,n=0,s=r[0];for(;void 0!==s;){if(i===s.index){let e;2===s.type?e=new yt(a,a.nextSibling,this,t):1===s.type?e=new s.ctor(a,s.name,s.strings,this,t):6===s.type&&(e=new $t(a,this,t)),this._$AV.push(e),s=r[++n]}i!==s?.index&&(a=pt.nextNode(),i++)}return pt.currentNode=F,o}p(t){let e=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class yt{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,o){this.type=2,this._$AH=ht,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=gt(this,t,e),Z(t)?t===ht||null==t||""===t?(this._$AH!==ht&&this._$AR(),this._$AH=ht):t!==this._$AH&&t!==ct&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):J(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==ht&&Z(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=bt.createElement(ut(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new mt(o,this),r=t.u(this.options);t.p(e),this.T(r),this._$AH=t}}_$AC(t){let e=dt.get(t.strings);return void 0===e&&dt.set(t.strings,e=new bt(t)),e}k(t){G(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,o=0;for(const a of t)o===e.length?e.push(r=new yt(this.O(W()),this.O(W()),this,this.options)):r=e[o],r._$AI(a),o++;o<e.length&&(this._$AR(r&&r._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ft{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,o,a){this.type=1,this._$AH=ht,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=a,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=ht}_$AI(t,e=this,r,o){const a=this.strings;let i=!1;if(void 0===a)t=gt(this,t,e,0),i=!Z(t)||t!==this._$AH&&t!==ct,i&&(this._$AH=t);else{const o=t;let n,s;for(t=a[0],n=0;n<a.length-1;n++)s=gt(this,o[r+n],e,n),s===ct&&(s=this._$AH[n]),i||=!Z(s)||s!==this._$AH[n],s===ht?t=ht:t!==ht&&(t+=(s??"")+a[n+1]),this._$AH[n]=s}i&&!o&&this.j(t)}j(t){t===ht?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class xt extends ft{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===ht?void 0:t}}class kt extends ft{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==ht)}}class wt extends ft{constructor(t,e,r,o,a){super(t,e,r,o,a),this.type=5}_$AI(t,e=this){if((t=gt(this,t,e,0)??ht)===ct)return;const r=this._$AH,o=t===ht&&r!==ht||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,a=t!==ht&&(r===ht||o);o&&this.element.removeEventListener(this.name,this,r),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class $t{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){gt(this,t)}}const zt=I.litHtmlPolyfillSupport;zt?.(bt,yt),(I.litHtmlVersions??=[]).push("3.3.1");const _t=1;class St{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,r){this._$Ct=t,this._$AM=e,this._$Ci=r}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const At="important",Ct=" !"+At,Et=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends St{constructor(t){if(super(t),t.type!==_t||"style"!==t.name||t.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce((e,r)=>{const o=t[r];return null==o?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(t,[e]){const{style:r}=t.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(e)),this.render(e);for(const t of this.ft)null==e[t]&&(this.ft.delete(t),t.includes("-")?r.removeProperty(t):r[t]=null);for(const t in e){const o=e[t];if(null!=o){this.ft.add(t);const e="string"==typeof o&&o.endsWith(Ct);t.includes("-")||e?r.setProperty(t,e?o.slice(0,-11):o,e?At:""):r[t]=o}}return ct}});var jt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Tt=class extends p{constructor(){super(...arguments),this.circle=!1,this.indeterminate=!1,this.percent=0}static get styles(){return[...p.styles,c.css`
132
166
  ${(0,c.unsafeCSS)('*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{--color: hsl(var(--primary));--background-color: var(--tk-loading-background-color, hsl(var(--surface-dim)))}:host([secondary]){--color: hsl(var(--secondary))}:host([error]){--color: hsl(var(--error))}.circle{display:inline-flex;animation:rotator 3s linear infinite;transform-origin:center;width:56px;height:56px}.circle .track{stroke:var(--background-color);opacity:.4}.circle .path{stroke-dasharray:265;stroke-dashoffset:0;transform-origin:center;stroke:var(--color);animation:dash 3s ease-in-out infinite}@keyframes rotator{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes dash{0%{stroke-dashoffset:265}50%{stroke-dashoffset:65;transform:rotate(90deg)}100%{stroke-dashoffset:265;transform:rotate(360deg)}}:host([small]) .circle{width:20px;height:20px}:host([small]) .line{height:2px}:host([large]) .circle{width:96px;height:96px}:host([large]) .line{height:14px}.line{position:relative;background-color:var(--background-color);overflow:hidden;height:6px}.line .progress{background-color:var(--color);height:100%;position:relative;width:100%}.line .indeterminate{background-color:rgba(0,0,0,0);position:absolute;top:0;left:0;right:0;bottom:0}.line .indeterminate:before{content:"";position:absolute;background-color:var(--color);top:0;left:0;bottom:0;will-change:left,right;animation:indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite}.line .indeterminate:after{content:"";position:absolute;background-color:var(--color);top:0;left:0;bottom:0;will-change:left,right;animation:indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;animation-delay:1.15s}@keyframes indeterminate{0%{left:-35%;right:100%}60%{left:100%;right:-90%}100%{left:100%;right:-90%}}@keyframes indeterminate-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}100%{left:107%;right:-8%}}')}
133
- `]}render(){const t=this.normalizePercent(this.percent),e=2*Math.PI*40,r=e*(1-t/100),o=this.circle&&!this.indeterminate&&this.hasAttribute("percent"),a=this.indeterminate?void 0:t,i=o?Ct({animation:"none"}):c.nothing,n=o?Ct({animation:"none",strokeDasharray:`${e}`,strokeDashoffset:`${r}`}):c.nothing;return c.html`
167
+ `]}render(){const t=this.normalizePercent(this.percent),e=2*Math.PI*40,r=e*(1-t/100),o=this.circle&&!this.indeterminate&&this.hasAttribute("percent"),a=this.indeterminate?void 0:t,i=o?Et({animation:"none"}):c.nothing,n=o?Et({animation:"none",strokeDasharray:`${e}`,strokeDashoffset:`${r}`}):c.nothing;return c.html`
134
168
  ${this.circle?c.html`
135
169
  <svg
136
170
  class="circle"
@@ -161,7 +195,7 @@
161
195
  aria-valuemax="100"
162
196
  aria-valuenow=${(0,k.ifDefined)(a)}
163
197
  >
164
- <div class=${(0,y.classMap)({progress:!0,indeterminate:this.indeterminate})} style=${Ct(this.indeterminate?{width:"100%"}:{width:`${t}%`})}>
198
+ <div class=${(0,y.classMap)({progress:!0,indeterminate:this.indeterminate})} style=${Et(this.indeterminate?{width:"100%"}:{width:`${t}%`})}>
165
199
  ${this.indeterminate?c.html`<span class="visually-hidden">Loading</span>`:c.nothing}
166
200
  </div>
167
201
  </div>
@@ -194,7 +228,7 @@
194
228
  <div id="right">
195
229
  <slot name="right"></slot>
196
230
  </div>
197
- `}};qt=Pt([(0,h.customElement)("tk-topbar")],qt);var Bt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Nt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1}set value(t){this.$input?(this.$input.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$input?this.$input.value:this.initialValue||""}render(){return c.html`
231
+ `}};qt=Pt([(0,h.customElement)("tk-topbar")],qt);var Nt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Bt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1}set value(t){this.$input?(this.$input.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$input?this.$input.value:this.initialValue||""}render(){return c.html`
198
232
  <div id="container">
199
233
  <slot id="before" name="before"></slot>
200
234
  <div id="wrapper">
@@ -224,9 +258,9 @@
224
258
  </div>
225
259
  <slot id="after" name="after"></slot>
226
260
  </div>
227
- `}handleChange(){this.refreshAttributes()}firstUpdated(){var t;this.$input=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("input"),this.appendChild(this.$input),this.initialValue&&(this.value=this.initialValue)}refreshAttributes(){this.$input.value?this.setAttribute("dirty",""):this.removeAttribute("dirty"),this.$input.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid","")}focus(){this.$input.focus()}};Nt.styles=c.css`
261
+ `}handleChange(){this.refreshAttributes()}firstUpdated(){var t;this.$input=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("input"),this.appendChild(this.$input),this.initialValue&&(this.value=this.initialValue)}refreshAttributes(){this.$input.value?this.setAttribute("dirty",""):this.removeAttribute("dirty"),this.$input.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid","")}focus(){this.$input.focus()}};Bt.styles=c.css`
228
262
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{transform:translateZ(0);display:block;outline:none}:host #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface-variant));transition:var(--input-transition, border-color var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease), background var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease));position:relative;display:flex;align-items:center;overflow:hidden;padding:8px 16px 8px 16px;height:56px}:host #wrapper{position:relative;flex-grow:1}:host #label{color:hsl(var(--on-surface-variant));font-weight:400;line-height:64px;transition:var(--input-label-transition, top var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), font-size var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear));top:50%;transform:translateY(-50%);z-index:1;position:absolute;pointer-events:none;font-size:inherit;line-height:1;white-space:nowrap;-webkit-user-select:none;user-select:none}:host([disabled]){pointer-events:none;opacity:.38}:host(:hover) #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface))}:host(:focus-within) #container{border-bottom:solid 2px hsl(var(--primary));background-color:hsla(var(--on-surface), 0.3);padding:8px 16px 7px 16px}:host([outlined]) #container{background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));border-radius:4px}:host([outlined]:focus-within) #container{border:solid 2px hsl(var(--primary));padding:7px 15px 7px 15px}:host(:focus-within) #label,:host([dirty]) #label,:host([type=color]) #label,:host([type=date]) #label,:host([type=file]) #label,:host([type=range]) #label{font-size:var(--input-label-font-size, 0.75rem);top:0;transform:translateY(0);color:hsl(var(--primary))}#slot-wrapper,::slotted(input),::slotted(select),::slotted(textarea){caret-color:hsl(var(--primary));padding:var(--input-padding-top-bottom, 0.5rem) var(--_input-padding-left-right);font-size:var(--input-font-size, 1rem);text-align:var(--input-text-align, inherit);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;display:block;color:inherit;-webkit-text-fill-color:var(--_input-color);-webkit-overflow-scrolling:touch;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;margin:0;background:rgba(0,0,0,0);width:100%}:host([label]) #slot-wrapper,:host([label]) ::slotted(input),:host([label]) ::slotted(select),:host([label]) ::slotted(textarea){padding-top:16px}:host([invalid]){color:hsl(var(--error))}::slotted(input[type=color]){height:3.75rem;cursor:pointer}::slotted([slot=after]),::slotted([slot=before]){color:var(--input-before-after-color, hsl(var(--shadow)))}:host(:not([outlined]):not([filled])) ::slotted([slot=before]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host(:not([outlined]):not([filled])) ::slotted([slot=after]),:host([filled]) ::slotted([slot=before]),:host([outlined]) ::slotted([slot=before]){margin-left:var(--input-padding-left-right-outlined, 0.75rem)}:host([filled]) ::slotted([slot=after]),:host([outlined]) ::slotted([slot=after]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}")}
229
- `,Bt([(0,h.property)({type:String})],Nt.prototype,"value",null),Bt([(0,h.property)({attribute:!0,type:String})],Nt.prototype,"name",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"list",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"type",void 0),Bt([(0,h.property)({type:Boolean})],Nt.prototype,"required",void 0),Bt([(0,h.property)({type:Boolean,reflect:!0})],Nt.prototype,"disabled",void 0),Bt([(0,h.property)({type:Boolean})],Nt.prototype,"readonly",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"autocomplete",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"autocapitalize",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"pattern",void 0),Bt([(0,h.state)()],Nt.prototype,"initialValue",void 0),Bt([(0,h.property)({type:String})],Nt.prototype,"label",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"min",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"max",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"minLength",void 0),Bt([(0,h.property)({type:Number})],Nt.prototype,"maxLength",void 0),Bt([(0,h.eventOptions)({passive:!0})],Nt.prototype,"handleChange",null),Nt=Bt([(0,h.customElement)("tk-textfield")],Nt);var Ht,Mt,It,Ut=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};!function(t){t.show="show",t.force="force",t.confirm="confirm",t.input="input"}(Mt||(Mt={})),function(t){t.success="success",t.warning="warning",t.error="error",t.info="info",t.neutral="neutral"}(It||(It={}));let Kt=Ht=class extends p{static get styles(){return[...p.styles,c.css`
263
+ `,Nt([(0,h.property)({type:String})],Bt.prototype,"value",null),Nt([(0,h.property)({attribute:!0,type:String})],Bt.prototype,"name",void 0),Nt([(0,h.property)({type:String})],Bt.prototype,"list",void 0),Nt([(0,h.property)({type:String})],Bt.prototype,"type",void 0),Nt([(0,h.property)({type:Boolean})],Bt.prototype,"required",void 0),Nt([(0,h.property)({type:Boolean,reflect:!0})],Bt.prototype,"disabled",void 0),Nt([(0,h.property)({type:Boolean})],Bt.prototype,"readonly",void 0),Nt([(0,h.property)({type:String})],Bt.prototype,"autocomplete",void 0),Nt([(0,h.property)({type:String})],Bt.prototype,"autocapitalize",void 0),Nt([(0,h.property)({type:String})],Bt.prototype,"pattern",void 0),Nt([(0,h.state)()],Bt.prototype,"initialValue",void 0),Nt([(0,h.property)({type:String})],Bt.prototype,"label",void 0),Nt([(0,h.property)({type:Number})],Bt.prototype,"min",void 0),Nt([(0,h.property)({type:Number})],Bt.prototype,"max",void 0),Nt([(0,h.property)({type:Number})],Bt.prototype,"minLength",void 0),Nt([(0,h.property)({type:Number})],Bt.prototype,"maxLength",void 0),Nt([(0,h.eventOptions)({passive:!0})],Bt.prototype,"handleChange",null),Bt=Nt([(0,h.customElement)("tk-textfield")],Bt);var Ht,Mt,It,Ut=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};!function(t){t.show="show",t.force="force",t.confirm="confirm",t.input="input"}(Mt||(Mt={})),function(t){t.success="success",t.warning="warning",t.error="error",t.info="info",t.neutral="neutral"}(It||(It={}));let Kt=Ht=class extends p{static get styles(){return[...p.styles,c.css`
230
264
  ${(0,c.unsafeCSS)(":host{font-size:1.6rem;display:none;position:fixed;bottom:0;left:0;right:0;top:0;margin:0;z-index:var(--notie-z-index, 400)}:host .overlay{background-color:rgba(0,0,0,.5019607843);position:fixed;top:0;right:0;left:0;bottom:0}:host .container{position:fixed;right:0;left:0;bottom:0;height:fit-content;background-color:hsl(var(--primary));box-shadow:10px 10px 10px 10px var(--shadow);z-index:calc(var(--notie-z-index, 400) + 1);transform:translateY(100%);transition:all 150ms ease-in;color:hsl(var(--on-primary));text-align:center}:host .container.info{color:#fff;background-color:#4d82d6}:host .container.error{color:#fff;background-color:#e1715b}:host .container.warning{color:#fff;background-color:#d6a14d}:host .container.success{color:#fff;background-color:#57bf57}:host .text{padding:.5em}:host .input{--input-font-size: vars.$font-size-widescreen;background-color:var(--background, white);color:var(--foreground, black);text-align:center}:host .button{cursor:pointer;padding:.5em}:host .button.confirm,:host .button.force{background-color:#57bf57;color:#fff}:host .button.cancel{color:var(--on-error, white);background-color:var(--error, #e1715b)}@media screen and (max-width: 900px){:host{font-size:1.4rem}}:host([position=top]) .container{position:fixed;top:0;bottom:inherit;transform:translateY(-100%)}:host([open]) .container{transform:translateY(0)}")}
231
265
  `]}render(){return c.html`
232
266
  <div class="overlay" @click=${()=>this.type==Mt.force?null:this.hide(!1)}></div>
@@ -258,7 +292,7 @@
258
292
  <slot></slot>
259
293
  `}updated(t){t.has("page")&&this.updatePages()}updatePages(){const t=document.scrollingElement||document.documentElement;this.querySelectorAll(":scope > *").forEach(e=>{var r,o;const a=null!==(r=e.getAttribute("page"))&&void 0!==r?r:"default";a===this.page?(e.removeAttribute("hidden"),this.selected&&e.setAttribute(this.selected,""),this.handleScroll&&!e.hasAttribute("no-scroll")&&(t.scrollTop=null!==(o=this.scrollHistory[a])&&void 0!==o?o:0)):(e.setAttribute("hidden",""),this.selected&&e.removeAttribute(this.selected))})}};Yt.styles=c.css`
260
294
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host ::slotted([hidden]){display:none !important}")}
261
- `,Vt([(0,h.property)({attribute:"page",type:String,reflect:!0})],Yt.prototype,"page",null),Vt([(0,h.property)({attribute:!0,type:String})],Yt.prototype,"selected",void 0),Vt([(0,h.property)({attribute:"handle-scroll",type:Boolean})],Yt.prototype,"handleScroll",void 0),Yt=Vt([(0,h.customElement)("tk-pages")],Yt);var Xt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Ft=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.checked=!1,this.required=!1,this.disabled=!1,this.readonly=!1,this.onKeyDown=t=>{this.disabled||"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())},this.handleClick=()=>{this.disabled||(this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-radio[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))))}}render(){return c.html`
295
+ `,Vt([(0,h.property)({attribute:"page",type:String,reflect:!0})],Yt.prototype,"page",null),Vt([(0,h.property)({attribute:!0,type:String})],Yt.prototype,"selected",void 0),Vt([(0,h.property)({attribute:"handle-scroll",type:Boolean})],Yt.prototype,"handleScroll",void 0),Yt=Vt([(0,h.customElement)("tk-pages")],Yt);var Xt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Qt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.checked=!1,this.required=!1,this.disabled=!1,this.readonly=!1,this.onKeyDown=t=>{this.disabled||"Space"!==t.code&&"Enter"!==t.code||(t.preventDefault(),t.stopPropagation(),this.click())},this.handleClick=()=>{this.disabled||(this.checked=!this.checked,this.checked&&this.name&&this.getRootNode().querySelectorAll(`tk-radio[name="${this.name}"]`).forEach(t=>t!=this?t.checked=!1:null),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))))}}render(){return c.html`
262
296
  <tk-box direction="row" align-items="center">
263
297
  <tk-box ripple tabindex="${this.disabled?-1:0}" class="state">
264
298
  <div class="radio">
@@ -281,9 +315,9 @@
281
315
  name="${(0,k.ifDefined)(this.name)}"
282
316
  tabindex="-1"
283
317
  />
284
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}firstUpdated(){this.appendChild(this.$input)}};Ft.styles=c.css`
318
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.onKeyDown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this.handleClick),this.removeEventListener("keydown",this.onKeyDown)}firstUpdated(){this.appendChild(this.$input)}};Qt.styles=c.css`
285
319
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{display:inline-flex;cursor:pointer}:host .state{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border-radius:100%;overflow:hidden;outline:none}:host .radio{width:20px;height:20px;border:solid 2px hsl(var(--on-surface-variant));border-radius:100%;transition:var(--radio-transition, background var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)), border-color var(--transition-duration-fast, 0.12s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));position:relative;display:inline-flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}:host #dot{background:hsl(var(--primary));width:10px;height:10px;border-radius:100%;transition:var(--radio-dot-transition, transform var(--transition-duration-medium, 0.18s) var(--transition-timing-function-deceleration-curve, cubic-bezier(0, 0, 0.2, 1)));transform:scale(0)}:host .label{user-select:none}:host([checked]) .radio{border-color:hsl(var(--primary))}:host([checked]) #dot{transform:scale(1)}:host(:focus) .state,:host(:hover) .state{background:hsla(var(--on-surface), 0.3)}:host([checked]:focus) .state,:host([checked]:hover) .state{background:hsla(var(--primary), 0.3)}:host([disabled]){pointer-events:none;opacity:.5}:host([disabled]) .radio{border:solid 2px hsl(var(--on-surface-variant))}:host([disabled]) #dot{background:hsl(var(--on-surface-variant))}:host([disabled]) .label{opacity:.6}")}
286
- `,Xt([(0,h.property)({attribute:!0,type:String})],Ft.prototype,"name",void 0),Xt([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],Ft.prototype,"checked",void 0),Xt([(0,h.property)({type:Boolean})],Ft.prototype,"required",void 0),Xt([(0,h.property)({type:Boolean})],Ft.prototype,"disabled",void 0),Xt([(0,h.property)({type:Boolean})],Ft.prototype,"readonly",void 0),Xt([(0,h.property)({type:String,reflect:!0})],Ft.prototype,"value",void 0),Xt([(0,h.query)("input")],Ft.prototype,"$input",void 0),Ft=Xt([(0,h.customElement)("tk-radio")],Ft);var Qt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Wt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1}set value(t){this.$select?(this.$select.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$select?this.$select.value:this.initialValue||""}render(){return c.html`
320
+ `,Xt([(0,h.property)({attribute:!0,type:String})],Qt.prototype,"name",void 0),Xt([(0,h.property)({attribute:!0,type:Boolean,reflect:!0})],Qt.prototype,"checked",void 0),Xt([(0,h.property)({type:Boolean})],Qt.prototype,"required",void 0),Xt([(0,h.property)({type:Boolean})],Qt.prototype,"disabled",void 0),Xt([(0,h.property)({type:Boolean})],Qt.prototype,"readonly",void 0),Xt([(0,h.property)({type:String,reflect:!0})],Qt.prototype,"value",void 0),Xt([(0,h.query)("input")],Qt.prototype,"$input",void 0),Qt=Xt([(0,h.customElement)("tk-radio")],Qt);var Ft=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Wt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.type="text",this.required=!1,this.disabled=!1,this.readonly=!1}set value(t){this.$select?(this.$select.value=t,this.refreshAttributes()):this.initialValue=t}get value(){return null!=this.$select?this.$select.value:this.initialValue||""}render(){return c.html`
287
321
  <div id="container">
288
322
  <slot id="before" name="before"></slot>
289
323
  <div id="wrapper">
@@ -311,7 +345,7 @@
311
345
  </div>
312
346
  `}handleChange(){this.refreshAttributes()}firstUpdated(){var t;this.$select=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("select"),this.appendChild(this.$select);this.querySelectorAll("option").forEach(t=>this.$select.appendChild(t)),this.initialValue&&(this.value=this.initialValue)}refreshAttributes(){this.$select.value?this.setAttribute("dirty",""):this.removeAttribute("dirty"),this.$select.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid",""),setTimeout(()=>this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}};Wt.styles=c.css`
313
347
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{transform:translateZ(0);display:block;outline:none}:host #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface-variant));transition:var(--input-transition, border-color var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease), background var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease));position:relative;display:flex;align-items:center;overflow:hidden;padding:8px 16px 8px 16px;height:56px}:host #wrapper{position:relative;flex-grow:1}:host #label{color:hsl(var(--on-surface-variant));font-weight:400;line-height:64px;transition:var(--input-label-transition, top var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), font-size var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear));top:50%;transform:translateY(-50%);z-index:1;position:absolute;pointer-events:none;font-size:inherit;line-height:1;white-space:nowrap;-webkit-user-select:none;user-select:none}:host([disabled]){pointer-events:none;opacity:.38}:host(:hover) #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface))}:host(:focus-within) #container{border-bottom:solid 2px hsl(var(--primary));background-color:hsla(var(--on-surface), 0.3);padding:8px 16px 7px 16px}:host([outlined]) #container{background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));border-radius:4px}:host([outlined]:focus-within) #container{border:solid 2px hsl(var(--primary));padding:7px 15px 7px 15px}:host(:focus-within) #label,:host([dirty]) #label,:host([type=color]) #label,:host([type=date]) #label,:host([type=file]) #label,:host([type=range]) #label{font-size:var(--input-label-font-size, 0.75rem);top:0;transform:translateY(0);color:hsl(var(--primary))}#slot-wrapper,::slotted(input),::slotted(select),::slotted(textarea){caret-color:hsl(var(--primary));padding:var(--input-padding-top-bottom, 0.5rem) var(--_input-padding-left-right);font-size:var(--input-font-size, 1rem);text-align:var(--input-text-align, inherit);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;display:block;color:inherit;-webkit-text-fill-color:var(--_input-color);-webkit-overflow-scrolling:touch;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;margin:0;background:rgba(0,0,0,0);width:100%}:host([label]) #slot-wrapper,:host([label]) ::slotted(input),:host([label]) ::slotted(select),:host([label]) ::slotted(textarea){padding-top:16px}:host([invalid]){color:hsl(var(--error))}::slotted(input[type=color]){height:3.75rem;cursor:pointer}::slotted([slot=after]),::slotted([slot=before]){color:var(--input-before-after-color, hsl(var(--shadow)))}:host(:not([outlined]):not([filled])) ::slotted([slot=before]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host(:not([outlined]):not([filled])) ::slotted([slot=after]),:host([filled]) ::slotted([slot=before]),:host([outlined]) ::slotted([slot=before]){margin-left:var(--input-padding-left-right-outlined, 0.75rem)}:host([filled]) ::slotted([slot=after]),:host([outlined]) ::slotted([slot=after]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}#arrow{fill:var(--_input-state-color);z-index:-1;height:8px;position:absolute;top:50%;right:0;transform:translate(-100%, -50%)}::slotted(option){display:none}:host(:not([dirty])) ::slotted(select){opacity:0}")}
314
- `,Qt([(0,h.property)({type:String})],Wt.prototype,"value",null),Qt([(0,h.property)({attribute:!0,type:String})],Wt.prototype,"name",void 0),Qt([(0,h.property)({type:String})],Wt.prototype,"list",void 0),Qt([(0,h.property)({type:String})],Wt.prototype,"type",void 0),Qt([(0,h.property)({type:Boolean})],Wt.prototype,"required",void 0),Qt([(0,h.property)({type:Boolean})],Wt.prototype,"disabled",void 0),Qt([(0,h.property)({type:Boolean})],Wt.prototype,"readonly",void 0),Qt([(0,h.property)({type:String})],Wt.prototype,"autocomplete",void 0),Qt([(0,h.property)({type:String})],Wt.prototype,"pattern",void 0),Qt([(0,h.state)()],Wt.prototype,"initialValue",void 0),Qt([(0,h.property)({type:String})],Wt.prototype,"label",void 0),Qt([(0,h.property)({type:Number})],Wt.prototype,"min",void 0),Qt([(0,h.property)({type:Number})],Wt.prototype,"max",void 0),Qt([(0,h.property)({type:Number})],Wt.prototype,"minLength",void 0),Qt([(0,h.property)({type:Number})],Wt.prototype,"maxLength",void 0),Qt([(0,h.eventOptions)({passive:!0})],Wt.prototype,"handleChange",null),Wt=Qt([(0,h.customElement)("tk-select")],Wt);var Zt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Gt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.required=!1,this.disabled=!1,this.readonly=!1,this.thumbLabel=!1,this.thumbLabelPersist=!1,this.min=0,this.value=this.min,this.max=100}render(){return c.html`
348
+ `,Ft([(0,h.property)({type:String})],Wt.prototype,"value",null),Ft([(0,h.property)({attribute:!0,type:String})],Wt.prototype,"name",void 0),Ft([(0,h.property)({type:String})],Wt.prototype,"list",void 0),Ft([(0,h.property)({type:String})],Wt.prototype,"type",void 0),Ft([(0,h.property)({type:Boolean})],Wt.prototype,"required",void 0),Ft([(0,h.property)({type:Boolean})],Wt.prototype,"disabled",void 0),Ft([(0,h.property)({type:Boolean})],Wt.prototype,"readonly",void 0),Ft([(0,h.property)({type:String})],Wt.prototype,"autocomplete",void 0),Ft([(0,h.property)({type:String})],Wt.prototype,"pattern",void 0),Ft([(0,h.state)()],Wt.prototype,"initialValue",void 0),Ft([(0,h.property)({type:String})],Wt.prototype,"label",void 0),Ft([(0,h.property)({type:Number})],Wt.prototype,"min",void 0),Ft([(0,h.property)({type:Number})],Wt.prototype,"max",void 0),Ft([(0,h.property)({type:Number})],Wt.prototype,"minLength",void 0),Ft([(0,h.property)({type:Number})],Wt.prototype,"maxLength",void 0),Ft([(0,h.eventOptions)({passive:!0})],Wt.prototype,"handleChange",null),Wt=Ft([(0,h.customElement)("tk-select")],Wt);var Zt=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let Gt=class extends c.LitElement{constructor(){super(...arguments),this._id=u(),this.required=!1,this.disabled=!1,this.readonly=!1,this.thumbLabel=!1,this.thumbLabelPersist=!1,this.min=0,this.value=this.min,this.max=100}render(){return c.html`
315
349
  <div id="container">
316
350
  <slot id="before" name="before"></slot>
317
351
  <div id="wrapper">
@@ -416,11 +450,11 @@
416
450
  </div>
417
451
  `}handleChange(){this.refreshAttributes()}firstUpdated(){var t;this.$input=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("textarea"),this.appendChild(this.$input),this.initialValue&&(this.value=this.initialValue)}refreshAttributes(){this.$input.value?this.setAttribute("dirty",""):this.removeAttribute("dirty"),this.$input.checkValidity()?this.removeAttribute("invalid"):this.setAttribute("invalid","")}focus(){this.$input.focus()}};ae.styles=c.css`
418
452
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{transform:translateZ(0);display:block;outline:none}:host #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface-variant));transition:var(--input-transition, border-color var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease), background var(--transition-duration-medium, 0.18s) var(--transition-timing-function-ease, ease));position:relative;display:flex;align-items:center;overflow:hidden;padding:8px 16px 8px 16px;height:56px}:host #wrapper{position:relative;flex-grow:1}:host #label{color:hsl(var(--on-surface-variant));font-weight:400;line-height:64px;transition:var(--input-label-transition, top var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), font-size var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear), transform var(--transition-duration-fast, 0.12s) var(--transition-timing-function-linear, linear));top:50%;transform:translateY(-50%);z-index:1;position:absolute;pointer-events:none;font-size:inherit;line-height:1;white-space:nowrap;-webkit-user-select:none;user-select:none}:host([disabled]){pointer-events:none;opacity:.38}:host(:hover) #container{background-color:hsla(var(--surface-container-highest), 0.5);color:hsl(var(--on-surface));border-radius:4px 4px 0 0;font-size:var(--input-font-size, 1rem);border-bottom:solid 1px hsl(var(--on-surface))}:host(:focus-within) #container{border-bottom:solid 2px hsl(var(--primary));background-color:hsla(var(--on-surface), 0.3);padding:8px 16px 7px 16px}:host([outlined]) #container{background-color:rgba(0,0,0,0);border:solid 1px hsl(var(--outline));border-radius:4px}:host([outlined]:focus-within) #container{border:solid 2px hsl(var(--primary));padding:7px 15px 7px 15px}:host(:focus-within) #label,:host([dirty]) #label,:host([type=color]) #label,:host([type=date]) #label,:host([type=file]) #label,:host([type=range]) #label{font-size:var(--input-label-font-size, 0.75rem);top:0;transform:translateY(0);color:hsl(var(--primary))}#slot-wrapper,::slotted(input),::slotted(select),::slotted(textarea){caret-color:hsl(var(--primary));padding:var(--input-padding-top-bottom, 0.5rem) var(--_input-padding-left-right);font-size:var(--input-font-size, 1rem);text-align:var(--input-text-align, inherit);-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;display:block;color:inherit;-webkit-text-fill-color:var(--_input-color);-webkit-overflow-scrolling:touch;position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;outline:none;margin:0;background:rgba(0,0,0,0);width:100%}:host([label]) #slot-wrapper,:host([label]) ::slotted(input),:host([label]) ::slotted(select),:host([label]) ::slotted(textarea){padding-top:16px}:host([invalid]){color:hsl(var(--error))}::slotted(input[type=color]){height:3.75rem;cursor:pointer}::slotted([slot=after]),::slotted([slot=before]){color:var(--input-before-after-color, hsl(var(--shadow)))}:host(:not([outlined]):not([filled])) ::slotted([slot=before]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host(:not([outlined]):not([filled])) ::slotted([slot=after]),:host([filled]) ::slotted([slot=before]),:host([outlined]) ::slotted([slot=before]){margin-left:var(--input-padding-left-right-outlined, 0.75rem)}:host([filled]) ::slotted([slot=after]),:host([outlined]) ::slotted([slot=after]){margin-right:var(--input-padding-left-right-outlined, 0.75rem)}:host #container{height:auto;min-height:56px}#wrapper ::slotted(textarea){height:var(--textarea-height, var(--_textarea-height));min-height:var(--textarea-min-height, var(--textarea-height, var(--_textarea-height)));max-height:var(--textarea-max-height);resize:var(--textarea-resize, none);font-family:inherit}:host(:focus) ::slotted(textarea),:host(:hover) ::slotted(textarea){will-change:height}")}
419
- `,oe([(0,h.property)({type:String})],ae.prototype,"value",null),oe([(0,h.property)({attribute:!0,type:String})],ae.prototype,"name",void 0),oe([(0,h.property)({type:String})],ae.prototype,"list",void 0),oe([(0,h.property)({type:String})],ae.prototype,"type",void 0),oe([(0,h.property)({type:Boolean})],ae.prototype,"required",void 0),oe([(0,h.property)({type:Boolean,reflect:!0})],ae.prototype,"disabled",void 0),oe([(0,h.property)({type:Boolean})],ae.prototype,"readonly",void 0),oe([(0,h.property)({type:String})],ae.prototype,"autocomplete",void 0),oe([(0,h.property)({type:String})],ae.prototype,"autocapitalize",void 0),oe([(0,h.property)({type:String})],ae.prototype,"pattern",void 0),oe([(0,h.state)()],ae.prototype,"initialValue",void 0),oe([(0,h.property)({type:String})],ae.prototype,"label",void 0),oe([(0,h.property)({type:Number})],ae.prototype,"minLength",void 0),oe([(0,h.property)({type:Number})],ae.prototype,"maxLength",void 0),oe([(0,h.property)({type:Number})],ae.prototype,"rows",void 0),oe([(0,h.eventOptions)({passive:!0})],ae.prototype,"handleChange",null),ae=oe([(0,h.customElement)("tk-textarea")],ae);var ie=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let ne=class extends c.LitElement{constructor(){super(...arguments),this.primary="#62519f",this.secondary="#625B71",this.tertiary="#7D5260",this.error="#B3261E",this.neutral="#5E5F5C",this.neutralVariant="#5c6057",this.forceBody=!1,this.inverted=!1}render(){return c.html`
453
+ `,oe([(0,h.property)({type:String})],ae.prototype,"value",null),oe([(0,h.property)({attribute:!0,type:String})],ae.prototype,"name",void 0),oe([(0,h.property)({type:String})],ae.prototype,"list",void 0),oe([(0,h.property)({type:String})],ae.prototype,"type",void 0),oe([(0,h.property)({type:Boolean})],ae.prototype,"required",void 0),oe([(0,h.property)({type:Boolean,reflect:!0})],ae.prototype,"disabled",void 0),oe([(0,h.property)({type:Boolean})],ae.prototype,"readonly",void 0),oe([(0,h.property)({type:String})],ae.prototype,"autocomplete",void 0),oe([(0,h.property)({type:String})],ae.prototype,"autocapitalize",void 0),oe([(0,h.property)({type:String})],ae.prototype,"pattern",void 0),oe([(0,h.state)()],ae.prototype,"initialValue",void 0),oe([(0,h.property)({type:String})],ae.prototype,"label",void 0),oe([(0,h.property)({type:Number})],ae.prototype,"minLength",void 0),oe([(0,h.property)({type:Number})],ae.prototype,"maxLength",void 0),oe([(0,h.property)({type:Number})],ae.prototype,"rows",void 0),oe([(0,h.eventOptions)({passive:!0})],ae.prototype,"handleChange",null),ae=oe([(0,h.customElement)("tk-textarea")],ae);var ie=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let ne=class extends c.LitElement{constructor(){super(...arguments),this.primary="#62519f",this.secondary="#625B71",this.tertiary="#7D5260",this.error="#B3261E",this.neutral="#5E5F5C",this.neutralVariant="#5c6057",this.inverted=!1,this.primary_hsl=[],this.secondary_hsl=[],this.tertiary_hsl=[],this.error_hsl=[],this.neutral_hsl=[],this.neutral_variant_hsl=[]}render(){return c.html`
420
454
  <slot></slot>
421
- `}firstUpdated(t){this.setThemeColor()}hexToHSL(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);if(null==e)return["0","0%","0%"];const[,r,o,a]=e,i=parseInt(r,16)/255,n=parseInt(o,16)/255,s=parseInt(a,16)/255,l=Math.max(i,n,s),c=Math.min(i,n,s);let h=0,d=0,p=(l+c)/2;if(l!=c){const t=l-c;switch(d=p>.5?t/(2-l-c):t/(l+c),l){case i:h=(n-s)/t+(n<s?6:0);break;case n:h=(s-i)/t+2;break;case s:h=(i-n)/t+4}h/=6}return[(360*h).toString(),(100*d).toString()+"%",(100*p).toString()+"%"]}setThemeColor(){this.primary_hsl=this.hexToHSL(this.primary),this.secondary_hsl=this.hexToHSL(this.secondary),this.tertiary_hsl=this.hexToHSL(this.tertiary),this.error_hsl=this.hexToHSL(this.error),this.neutral_hsl=this.hexToHSL(this.neutral),this.neutral_variant_hsl=this.hexToHSL(this.neutralVariant);const t=document.createElement("style");t.innerHTML=`\n\t\t\t:root {\n\t\t\t\t--primary-h: ${this.primary_hsl[0]};\n\t\t\t\t--primary-s: ${this.primary_hsl[1]};\n\t\t\t\t--primary-l: ${this.primary_hsl[2]};\n\t\t\t\t--secondary-h: ${this.secondary_hsl[0]};\n\t\t\t\t--secondary-s: ${this.secondary_hsl[1]};\n\t\t\t\t--secondary-l: ${this.secondary_hsl[2]};\n\t\t\t\t--tertiary-h: ${this.tertiary_hsl[0]};\n\t\t\t\t--tertiary-s: ${this.tertiary_hsl[1]};\n\t\t\t\t--tertiary-l: ${this.tertiary_hsl[2]};\n\t\t\t\t--error-h: ${this.error_hsl[0]};\n\t\t\t\t--error-s: ${this.error_hsl[1]};\n\t\t\t\t--error-l: ${this.error_hsl[2]};\n\t\t\t\t--neutral-h: ${this.neutral_hsl[0]};\n\t\t\t\t--neutral-s: ${this.neutral_hsl[1]};\n\t\t\t\t--neutral-l: ${this.neutral_hsl[2]};\n\t\t\t\t--neutral-variant-h: ${this.neutral_variant_hsl[0]};\n\t\t\t\t--neutral-variant-s: ${this.neutral_variant_hsl[1]};\n\t\t\t\t--neutral-variant-l: ${this.neutral_variant_hsl[2]};\n\t\t\t}\n\t\t`,document.body.appendChild(t)}};ne.styles=c.css`
455
+ `}firstUpdated(t){this.setThemeColor()}updated(t){(t.has("primary")||t.has("secondary")||t.has("tertiary")||t.has("error")||t.has("neutral")||t.has("neutralVariant"))&&this.setThemeColor(),super.updated(t)}hexToHSL(t){const e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i.exec(t);if(null==e)return["0","0%","0%"];const[,r,o,a]=e,i=parseInt(r,16)/255,n=parseInt(o,16)/255,s=parseInt(a,16)/255,l=Math.max(i,n,s),c=Math.min(i,n,s);let h=0,d=0,p=(l+c)/2;if(l!=c){const t=l-c;switch(d=p>.5?t/(2-l-c):t/(l+c),l){case i:h=(n-s)/t+(n<s?6:0);break;case n:h=(s-i)/t+2;break;case s:h=(i-n)/t+4}h/=6}return[(360*h).toString(),(100*d).toString()+"%",(100*p).toString()+"%"]}setThemeColor(){this.primary_hsl=this.hexToHSL(this.primary),this.secondary_hsl=this.hexToHSL(this.secondary),this.tertiary_hsl=this.hexToHSL(this.tertiary),this.error_hsl=this.hexToHSL(this.error),this.neutral_hsl=this.hexToHSL(this.neutral),this.neutral_variant_hsl=this.hexToHSL(this.neutralVariant),this.styleEl||(this.styleEl=document.createElement("style"),document.body.appendChild(this.styleEl)),this.styleEl.innerHTML=`\n\t\t\t:root {\n\t\t\t\t--primary-h: ${this.primary_hsl[0]};\n\t\t\t\t--primary-s: ${this.primary_hsl[1]};\n\t\t\t\t--primary-l: ${this.primary_hsl[2]};\n\t\t\t\t--secondary-h: ${this.secondary_hsl[0]};\n\t\t\t\t--secondary-s: ${this.secondary_hsl[1]};\n\t\t\t\t--secondary-l: ${this.secondary_hsl[2]};\n\t\t\t\t--tertiary-h: ${this.tertiary_hsl[0]};\n\t\t\t\t--tertiary-s: ${this.tertiary_hsl[1]};\n\t\t\t\t--tertiary-l: ${this.tertiary_hsl[2]};\n\t\t\t\t--error-h: ${this.error_hsl[0]};\n\t\t\t\t--error-s: ${this.error_hsl[1]};\n\t\t\t\t--error-l: ${this.error_hsl[2]};\n\t\t\t\t--neutral-h: ${this.neutral_hsl[0]};\n\t\t\t\t--neutral-s: ${this.neutral_hsl[1]};\n\t\t\t\t--neutral-l: ${this.neutral_hsl[2]};\n\t\t\t\t--neutral-variant-h: ${this.neutral_variant_hsl[0]};\n\t\t\t\t--neutral-variant-s: ${this.neutral_variant_hsl[1]};\n\t\t\t\t--neutral-variant-l: ${this.neutral_variant_hsl[2]};\n\t\t\t}\n\t\t`}};ne.styles=c.css`
422
456
  ${(0,c.unsafeCSS)("*{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box}:host{font-family:var(--font-family, Roboto, sans-serif);font-size:var(--font-size, 1rem);--primary-0: var(--primary-h), var(--primary-s), 0%;--primary-10: var(--primary-h), var(--primary-s), calc(var(--primary-l) - (var(--primary-l)) / 30 * 20);--primary-20: var(--primary-h), var(--primary-s), calc(var(--primary-l) - (var(--primary-l)) / 30 * 10);--primary-30: var(--primary-h), var(--primary-s), calc(var(--primary-l) - (var(--primary-l)) / 30 * 5);--primary-40: var(--primary-h), var(--primary-s), calc(var(--primary-l));--primary-50: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 5);--primary-60: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 10);--primary-70: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 20);--primary-80: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 30);--primary-90: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 40);--primary-95: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 50);--primary-99: var(--primary-h), var(--primary-s), calc(var(--primary-l) + ((100% - var(--primary-l)) / 60) * 55);--primary-100: var(--primary-h), var(--primary-s), 100%;--secondary-0: var(--secondary-h), var(--secondary-s), 0%;--secondary-10: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) - (var(--secondary-l)) / 30 * 20);--secondary-20: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) - (var(--secondary-l)) / 30 * 10);--secondary-30: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) - (var(--secondary-l)) / 30 * 5);--secondary-40: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l));--secondary-50: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 5);--secondary-60: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 10);--secondary-70: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 20);--secondary-80: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 30);--secondary-90: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 40);--secondary-95: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 50);--secondary-99: var(--secondary-h), var(--secondary-s), calc(var(--secondary-l) + ((100% - var(--secondary-l)) / 60) * 55);--secondary-100: var(--secondary-h), var(--secondary-s), 100%;--tertiary-0: var(--tertiary-h), var(--tertiary-s), 0%;--tertiary-10: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) - (var(--tertiary-l)) / 30 * 20);--tertiary-20: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) - (var(--tertiary-l)) / 30 * 10);--tertiary-30: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) - (var(--tertiary-l)) / 30 * 5);--tertiary-40: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l));--tertiary-50: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 5);--tertiary-60: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 10);--tertiary-70: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 20);--tertiary-80: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 30);--tertiary-90: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 40);--tertiary-95: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 50);--tertiary-99: var(--tertiary-h), var(--tertiary-s), calc(var(--tertiary-l) + ((100% - var(--tertiary-l)) / 60) * 55);--tertiary-100: var(--tertiary-h), var(--tertiary-s), 100%;--error-0: var(--error-h), var(--error-s), 0%;--error-10: var(--error-h), var(--error-s), calc(var(--error-l) - (var(--error-l)) / 30 * 20);--error-20: var(--error-h), var(--error-s), calc(var(--error-l) - (var(--error-l)) / 30 * 10);--error-30: var(--error-h), var(--error-s), calc(var(--error-l) - (var(--error-l)) / 30 * 5);--error-40: var(--error-h), var(--error-s), calc(var(--error-l));--error-50: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 5);--error-60: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 10);--error-70: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 20);--error-80: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 30);--error-90: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 40);--error-95: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 50);--error-99: var(--error-h), var(--error-s), calc(var(--error-l) + ((100% - var(--error-l)) / 60) * 55);--error-100: var(--error-h), var(--error-s), 100%;--neutral-0: var(--neutral-h), var(--neutral-s), 0%;--neutral-4: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 26);--neutral-6: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 24);--neutral-10: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 20);--neutral-12: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l)- (var(--neutral-l)) / 30 * 18);--neutral-17: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 13);--neutral-22: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 8);--neutral-24: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) - (var(--neutral-l)) / 30 * 6);--neutral-40: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l));--neutral-87: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 30);--neutral-90: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 34);--neutral-92: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 38);--neutral-94: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 42);--neutral-96: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 46);--neutral-98: var(--neutral-h), var(--neutral-s), calc(var(--neutral-l) + ((100% - var(--neutral-l)) / 60) * 54);--neutral-100: var(--neutral-h), var(--neutral-s), 100%;--neutral-variant-0: var(--neutral-variant-h), var(--neutral-variant-s), 0%;--neutral-variant-30: var(--neutral-variant-h), var(--neutral-variant-s), calc(var(--neutral-variant-l) - (var(--neutral-variant-l)) / 30 * 10);--neutral-variant-50: var(--neutral-variant-h), var(--neutral-variant-s), calc(var(--neutral-variant-l) + ((100% - var(--neutral-variant-l)) / 60) * 5);--neutral-variant-60: var(--neutral-variant-h), var(--neutral-variant-s), calc(var(--neutral-variant-l) + ((100% - var(--neutral-variant-l)) / 60) * 10);--neutral-variant-80: var(--neutral-variant-h), var(--neutral-variant-s), calc(var(--neutral-variant-l) + ((100% - var(--neutral-variant-l)) / 60) * 30);--primary: var(--primary-40);--secondary: var(--secondary-40);--tertiary: var(--tertiary-40);--error: var(--error-40);--on-primary: var(--primary-100);--on-secondary: var(--secondary-100);--on-tertiary: var(--tertiary-100);--on-error: var(--error-100);--primary-container: var(--primary-90);--secondary-container: var(--secondary-90);--tertiary-container: var(--tertiary-90);--error-container: var(--error-90);--on-primary-container: var(--primary-10);--on-secondary-container: var(--secondary-10);--on-tertiary-container: var(--tertiary-10);--on-error-container: var(--error-10);--surface: var(--neutral-98);--surface-dim: var(--neutral-87);--surface-bright: var(--neutral-98);--surface-container-lowest: var(--neutral-100);--surface-container-low: var(--neutral-96);--surface-container: var(--neutral-94);--surface-container-high: var(--neutral-92);--surface-container-highest: var(--neutral-90);--surface-variant: var(--neutral-variant-90);--on-surface: var(--neutral-10);--on-surface-variant: var(--neutral-variant-30);--inverse-surface: var(--neutral-20);--inverse-on-surface: var(--neutral-95);--background: var(--neutral-98);--on-background: var(--neutral-10);--outline: var(--neutral-variant-50);--outline-variant: var(--neutral-variant-80);--inverse-surface: var(--neutral-20);--inverse-on-surface: var(--neutral-95);--inverse-primary: var(--primary-80);--shadow: var(--neutral-0);--scrim: var(--neutral-0);color:hsl(var(--on-background))}:host([inverted]){--primary: var(--primary-80);--secondary: var(--secondary-80);--tertiary: var(--tertiary-80);--error: var(--error-80);--on-primary: var(--primary-20);--on-secondary: var(--secondary-20);--on-tertiary: var(--tertiary-20);--on-error: var(--error-20);--primary-container: var(--primary-30);--secondary-container: var(--secondary-30);--tertiary-container: var(--tertiary-30);--error-container: var(--error-30);--on-primary-container: var(--primary-90);--on-secondary-container: var(--secondary-90);--on-tertiary-container: var(--tertiary-90);--on-error-container: var(--error-90);--surface: var(--neutral-6);--surface-dim: var(--neutral-6);--surface-bright: var(--neutral-24);--surface-container-lowest: var(--neutral-4);--surface-container-low: var(--neutral-10);--surface-container: var(--neutral-12);--surface-container-high: var(--neutral-17);--surface-container-highest: var(--neutral-22);--surface-variant: var(--neutral-variant-30);--on-surface: var(--neutral-90);--on-surface-variant: var(--neutral-variant-80);--inverse-surface: var(--neutral-90);--inverse-on-surface: var(--neutral-20);--background: var(--neutral-6);--on-background: var(--neutral-90);--outline: var(--neutral-variant-60);--outline-variant: var(--neutral-variant-30);--inverse-surface: var(--neutral-90);--inverse-on-surface: var(--neutral-20);--inverse-primary: var(--primary-40);--shadow: var(--neutral-0);--scrim: var(--neutral-0)}")}
423
- `,ie([(0,h.property)()],ne.prototype,"primary",void 0),ie([(0,h.property)()],ne.prototype,"secondary",void 0),ie([(0,h.property)()],ne.prototype,"tertiary",void 0),ie([(0,h.property)()],ne.prototype,"error",void 0),ie([(0,h.property)()],ne.prototype,"neutral",void 0),ie([(0,h.property)()],ne.prototype,"neutralVariant",void 0),ie([(0,h.property)({type:Boolean,attribute:"force-body",reflect:!0})],ne.prototype,"forceBody",void 0),ie([(0,h.property)({type:Boolean,attribute:!0,reflect:!0})],ne.prototype,"inverted",void 0),ie([(0,h.state)()],ne.prototype,"primary_hsl",void 0),ie([(0,h.state)()],ne.prototype,"secondary_hsl",void 0),ie([(0,h.state)()],ne.prototype,"tertiary_hsl",void 0),ie([(0,h.state)()],ne.prototype,"error_hsl",void 0),ie([(0,h.state)()],ne.prototype,"neutral_hsl",void 0),ie([(0,h.state)()],ne.prototype,"neutral_variant_hsl",void 0),ne=ie([(0,h.customElement)("tk-theme")],ne);var se=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let le=class extends c.LitElement{constructor(){super(...arguments),this.position="top"}render(){return c.html`
457
+ `,ie([(0,h.property)()],ne.prototype,"primary",void 0),ie([(0,h.property)()],ne.prototype,"secondary",void 0),ie([(0,h.property)()],ne.prototype,"tertiary",void 0),ie([(0,h.property)()],ne.prototype,"error",void 0),ie([(0,h.property)()],ne.prototype,"neutral",void 0),ie([(0,h.property)()],ne.prototype,"neutralVariant",void 0),ie([(0,h.property)({type:Boolean,attribute:!0,reflect:!0})],ne.prototype,"inverted",void 0),ne=ie([(0,h.customElement)("tk-theme")],ne);var se=function(t,e,r,o){var a,i=arguments.length,n=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,o);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(i<3?a(n):i>3?a(e,r,n):a(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};let le=class extends c.LitElement{constructor(){super(...arguments),this.position="top"}render(){return c.html`
424
458
  <div class="container">
425
459
  <slot></slot>
426
460
  <div class="tooltip ${this.position}">