@xplortech/xhb-embed 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +0,0 @@
1
- var u,d=new Uint8Array(16);function i(){if(!u&&(u=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!u))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return u(d)}var r=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function a(t){return typeof t=="string"&&r.test(t)}var n=[];for(var s=0;s<256;++s)n.push((s+256).toString(16).substr(1));function g(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f=(n[t[e+0]]+n[t[e+1]]+n[t[e+2]]+n[t[e+3]]+"-"+n[t[e+4]]+n[t[e+5]]+"-"+n[t[e+6]]+n[t[e+7]]+"-"+n[t[e+8]]+n[t[e+9]]+"-"+n[t[e+10]]+n[t[e+11]]+n[t[e+12]]+n[t[e+13]]+n[t[e+14]]+n[t[e+15]]).toLowerCase();if(!a(f))throw TypeError("Stringified UUID is invalid");return f}function p(t,e,f){t=t||{};var o=t.random||(t.rng||i)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,g(o)}export{p as v};
@@ -1 +0,0 @@
1
- import{r as d,h as c,H as a,g as i}from"./index-CXE8y519.js";const s=class{constructor(o){d(this,o),this.initialExpanded=!1,this.size="3",this.borderType="none",this.expanded=this.initialExpanded,this.toggleAccordion=n=>{n.stopPropagation(),this.expanded=!this.expanded}}watchInitialExpanded(){this.expanded=this.initialExpanded}async parentCheckboxChange(o){return this.el.querySelectorAll(".xpl-accordion-content .xpl-checkbox:not([disabled])").forEach(e=>{e.checked=o}),null}handleChildCheckboxChange(){const o=this.el.querySelectorAll(".xpl-accordion-content .xpl-checkbox:not([disabled])"),n=Array.from(o).filter(t=>t.checked).length,e=this.el.querySelector(".xpl-accordion-header xpl-checkbox")||this.el.querySelector(".xpl-accordion-header input");if(e)switch(n){case 0:e.checked=!1,e.indeterminate=!1;break;case o.length:e.checked=!0,e.indeterminate=!1;break;default:e.checked=!1,e.indeterminate=!0}}listenToChangeEvent(){this.handleChildCheckboxChange()}render(){const o={none:"",bordered:`xpl-accordion--border-bordered${this.expanded?"--expanded":""}`,bottom:`xpl-accordion--border-bottom${this.expanded?"--expanded":""}`}[this.borderType];return c(a,{key:"196af13fff0f920975af9c4a6ebe726a98e5a663",class:`xpl-accordion ${o}`},c("button",{key:"724993d5464ef62e7bc6ec0d63334fcebf8d93fa","aria-expanded":this.expanded,"aria-controls":this.contentId,class:"xpl-accordion-toggle-area",onClick:this.toggleAccordion,type:"button"},c("header",{key:"8b38921367d44ff8e2dbfb5fcecf4712f480b907",class:`xpl-accordion-header xpl-accordion-header--size-${this.size}`},c("slot",{key:"a940edeb394372f71cc927db8dfa622ce2c281f8",name:"heading"},this.header),c("xpl-icon",{key:"9e8e85697f46f808802cc4466046ada165e372e6",size:16,icon:"chevron-down",class:`xpl-accordion-icon-chevron ${this.expanded?"xpl-accordion-icon-chevron--rotate":""}`})),c("div",{key:"a91f59cd8a2450b8d46ba9880a05f67a8d1cbb62",class:"xpl-accordion-description"},c("slot",{key:"6cc83b45061eb6349dd7f8934bc49b4f1a3b878d",name:"description"},this.description))),c("section",{key:"72d5e5b77651c23a08b52849079e42456a5aed6d",id:this.contentId,role:"region",class:`xpl-accordion-content xpl-accordion-content--${this.expanded?"shown":"hidden"} ${this.expanded?{none:"",bordered:"xpl-accordion-content--shown-bordered",bottom:"xpl-accordion-content--shown-border-bottom"}[this.borderType]:""}`},c("slot",{key:"46231eeef0f6457a26e70aaf3a976a5a2b6076c3",name:"content"})))}get el(){return i(this)}static get watchers(){return{initialExpanded:[{watchInitialExpanded:0}]}}};export{s as xpl_accordion};
@@ -1 +0,0 @@
1
- import{r as i,h as a,H as t}from"./index-CXE8y519.js";const s=class{constructor(e){i(this,e),this.withSubnav=!1,this.withUtility=!0,this.navWidth="default",this.navOpen=!0}closeNavOnMobile(){window.innerWidth<=640&&(this.navOpen=!1)}navToggleHandler(){this.navOpen=!this.navOpen}navWithHandler(e){this.navWidth=e.detail}onWindowResize(){this.closeNavOnMobile()}connectedCallback(){this.closeNavOnMobile()}componentWillLoad(){this.navOpen=this.isNavOpenAtStartup!==void 0?this.isNavOpenAtStartup:this.navOpen}render(){let e="xpl-application-shell";this.withUtility&&(e+=" xpl-application-shell--with_utility");let l="xpl-application-shell__nav";return l+=this.navOpen?` xpl-application-shell__nav--${this.navWidth}--open`:` xpl-application-shell__nav--${this.navWidth}`,a(t,{key:"fb7ea1e06b4e26898f0d115dade22a00b4e59c42",class:e},a("div",{key:"a2ffa00e3be22a9564b81c53bed26aa62a212cfe",class:l},a("slot",{key:"34633219fcf07dc7fe1db169937e7fed97681812",name:"nav"})),a("div",{key:"c67239ab7d3a151a64a7a7aa11b8fdb8d097ec50",class:"xpl-application-shell__subnav"},a("slot",{key:"8318c25bd82a31b574773ed38ff186b5186aa6a7",name:"subnav"})),a("div",{key:"22b3f72754c3f8e172b509daca09caafc5d5c088",class:"xpl-application-shell__utility"},a("slot",{key:"12cbf50d23d6ca4b3fe1143d5f2aeca357657332",name:"utility"})),a("div",{key:"dda9dc9741a06ec49cfcf5631d0782b54898b15a",class:"xpl-application-shell__content"},a("slot",{key:"5586153e5f3db1470a12112d929c4d6d814cbab8",name:"content"})),a("xpl-backdrop",{key:"1db206c2ad0253ccc3436922d1c38354efa96675",onClick:()=>this.navToggleHandler(),class:{"xpl-application-shell__backdrop--open":this.navOpen},relative:!0}))}};export{s as xpl_application_shell};