@uoguelph/web-components 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-ff6a2049.js → index-071d3e5a.js} +4 -0
- package/dist/cjs/{index-5114bde1.js → index-6dc56e9a.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/uofg-alert.cjs.entry.js +2 -2
- package/dist/cjs/uofg-back-to-top_5.cjs.entry.js +21 -6
- package/dist/cjs/uofg-modal.cjs.entry.js +2 -2
- package/dist/cjs/uofg-web-components.cjs.js +2 -2
- package/dist/collection/components/uofg-footer/uofg-footer.js +1 -1
- package/dist/collection/components/uofg-header/uofg-header.css +12 -2
- package/dist/collection/components/uofg-header/uofg-header.js +19 -3
- package/dist/components/uofg-footer.js +1 -1
- package/dist/components/uofg-header.js +20 -4
- package/dist/esm/{index-2e2e7c34.js → index-3ec94133.js} +1 -1
- package/dist/esm/{index-eadef739.js → index-6dc3d58a.js} +4 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/uofg-alert.entry.js +2 -2
- package/dist/esm/uofg-back-to-top_5.entry.js +21 -6
- package/dist/esm/uofg-modal.entry.js +2 -2
- package/dist/esm/uofg-web-components.js +3 -3
- package/dist/types/components/uofg-header/uofg-header.d.ts +5 -0
- package/dist/uofg-web-components/p-47011572.js +2 -0
- package/dist/uofg-web-components/{p-c1a7d36a.entry.js → p-5df42961.entry.js} +1 -1
- package/dist/uofg-web-components/{p-35d3a961.js → p-6bcfadab.js} +1 -1
- package/dist/uofg-web-components/{p-95a8ab03.entry.js → p-b6aa68d9.entry.js} +1 -1
- package/dist/uofg-web-components/p-bf178b1f.entry.js +1 -0
- package/dist/uofg-web-components/uofg-web-components.esm.js +1 -1
- package/package.json +1 -1
- package/dist/uofg-web-components/p-585da31c.entry.js +0 -1
- package/dist/uofg-web-components/p-d8e285c3.js +0 -2
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e,t,n=!1,l=0,o=!1;const s="http://www.w3.org/1999/xlink",i={},c=e=>"object"==(e=typeof e)||"function"===e;function r(e){var t,n,l;return null!==(l=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==l?l:void 0}const u=(e,t,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],u=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?u(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!c(l))&&(l+=""),s&&i?r[r.length-1].t+=l:r.push(s?a(null,l):l),i=s)};if(u(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,d);const f=a(e,null);return f.l=t,r.length>0&&(f.o=r),f.i=o,f},a=(e,t)=>({u:0,h:e,t,p:null,o:null,l:null,i:null}),f={},d={forEach:(e,t)=>e.map(h).forEach(t),map:(e,t)=>e.map(h).map(t).map(p)},h=e=>({vattrs:e.l,vchildren:e.o,vkey:e.i,vname:e.m,vtag:e.h,vtext:e.t}),p=e=>{if("function"==typeof e.vtag){const t=Object.assign({},e.vattrs);return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),u(e.vtag,t,...e.vchildren||[])}const t=a(e.vtag,e.vtext);return t.l=e.vattrs,t.o=e.vchildren,t.i=e.vkey,t.m=e.vname,t},y=e=>X(e).v,m=(e,t,n)=>{const l=y(e);return{emit:e=>v(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},v=(e,t,n)=>{const l=ce.ce(t,n);return e.dispatchEvent(l),l},$=new WeakMap,b=e=>"sc-"+e.$,w=(e,t,n,l,o,i)=>{if(n!==l){let r=ee(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,o=j(n),s=j(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const a=c(l);if((r||a&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}let f=!1;u!==(u=u.replace(/^xlink\:?/,""))&&(t=u,f=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(f?e.removeAttributeNS(s,t):e.removeAttribute(t)):(!r||4&i||o)&&!a&&(l=!0===l?"":l,f?e.setAttributeNS(s,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):ee(se,u)?u.slice(2):u[2]+t.slice(3),n&&ce.rel(e,t,n,!1),l&&ce.ael(e,t,l,!1)}},g=/\s/,j=e=>e?e.split(g):[],k=(e,t,n,l)=>{const o=11===t.p.nodeType&&t.p.host?t.p.host:t.p,s=e&&e.l||i,c=t.l||i;for(l in s)l in c||w(o,l,s[l],void 0,n,t.u);for(l in c)w(o,l,s[l],c[l],n,t.u)},S=(t,l,o)=>{const s=l.o[o];let i,c,r=0;if(null!==s.t)i=s.p=ie.createTextNode(s.t);else{if(n||(n="svg"===s.h),i=s.p=ie.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.h),n&&"foreignObject"===s.h&&(n=!1),k(null,s,n),null!=e&&i["s-si"]!==e&&i.classList.add(i["s-si"]=e),s.o)for(r=0;r<s.o.length;++r)c=S(t,s,r),c&&i.appendChild(c);"svg"===s.h?n=!1:"foreignObject"===i.tagName&&(n=!0)}return i},O=(e,n,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===t&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=S(null,l,s),c&&(o[s].p=c,r.insertBefore(c,n)))},M=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.p;P(t),e&&e.remove()}}},C=(e,t)=>e.h===t.h&&e.i===t.i,x=(e,t)=>{const l=t.p=e.p,o=e.o,s=t.o,i=t.h,c=t.t;null===c?(n="svg"===i||"foreignObject"!==i&&n,"slot"===i||k(e,t,n),null!==o&&null!==s?((e,t,n,l)=>{let o,s,i=0,c=0,r=0,u=0,a=t.length-1,f=t[0],d=t[a],h=l.length-1,p=l[0],y=l[h];for(;i<=a&&c<=h;)if(null==f)f=t[++i];else if(null==d)d=t[--a];else if(null==p)p=l[++c];else if(null==y)y=l[--h];else if(C(f,p))x(f,p),f=t[++i],p=l[++c];else if(C(d,y))x(d,y),d=t[--a],y=l[--h];else if(C(f,y))x(f,y),e.insertBefore(f.p,d.p.nextSibling),f=t[++i],y=l[--h];else if(C(d,p))x(d,p),e.insertBefore(d.p,f.p),d=t[--a],p=l[++c];else{for(r=-1,u=i;u<=a;++u)if(t[u]&&null!==t[u].i&&t[u].i===p.i){r=u;break}r>=0?(s=t[r],s.h!==p.h?o=S(t&&t[c],n,r):(x(s,p),t[r]=void 0,o=s.p),p=l[++c]):(o=S(t&&t[c],n,c),p=l[++c]),o&&f.p.parentNode.insertBefore(o,f.p)}i>a?O(e,null==l[h+1]?null:l[h+1].p,n,l,c,h):c>h&&M(t,i,a)})(l,o,t,s):null!==s?(null!==e.t&&(l.textContent=""),O(l,null,t,s,0,s.length-1)):null!==o&&M(o,0,o.length-1),n&&"svg"===i&&(n=!1)):e.t!==c&&(l.data=c)},P=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(P)},E=(e,t)=>{t&&!e.g&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.g=t)))},F=(e,t)=>{if(e.u|=16,!(4&e.u))return E(e,e.j),ve((()=>N(e,t)));e.u|=512},N=(e,t)=>{const n=e.k;return t&&(e.u|=256,e.S&&(e.S.map((([e,t])=>W(n,e,t))),e.S=void 0)),T(void 0,(()=>H(e,n,t)))},T=(e,t)=>A(e)?e.then(t):t(),A=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,H=async(e,t,n)=>{var l;const o=e.v,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.v,l=t.u,o=((e,t)=>{var n;const l=b(t),o=oe.get(l);if(e=11===e.nodeType?e:ie,o)if("string"==typeof o){let t,s=$.get(e=e.head||e);if(s||$.set(e,s=new Set),!s.has(l)){{t=ie.createElement("style"),t.innerHTML=o;const l=null!==(n=ce.M)&&void 0!==n?n:r(ie);null!=l&&t.setAttribute("nonce",l),e.insertBefore(t,e.querySelector("link"))}s&&s.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);L(e,t),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!==(l=o["s-p"])&&void 0!==l?l:[],n=()=>R(e);0===t.length?n():(Promise.all(t).then(n),e.u|=4,t.length=0)}},L=(n,l)=>{try{l=l.render(),n.u&=-17,n.u|=2,((n,l)=>{const o=n.v,s=n.C||a(null,null),i=(e=>e&&e.h===f)(l)?l:u(null,null,l);t=o.tagName,i.h=null,i.u|=4,n.C=i,i.p=s.p=o.shadowRoot||o,e=o["s-sc"],x(s,i)})(n,l)}catch(e){te(e,n.v)}return null},R=e=>{const t=e.v,n=e.j;64&e.u||(e.u|=64,q(t),e.P(t),n||U()),e.F(t),e.g&&(e.g(),e.g=void 0),512&e.u&&me((()=>F(e,!1))),e.u&=-517},U=()=>{q(ie.documentElement),ce.u|=2,me((()=>v(se,"appload",{detail:{namespace:"uofg-web-components"}})))},W=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){te(e)}},q=e=>e.classList.add("hydrated"),V=(e,t,n)=>{if(t.N){e.watchers&&(t.T=e.watchers);const l=Object.entries(t.N),o=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(o,e,{get(){return((e,t)=>X(this).A.get(t))(0,e)},set(n){((e,t,n,l)=>{const o=X(e),s=o.v,i=o.A.get(t),r=o.u,u=o.k;if(n=((e,t)=>null==e||c(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.N[t][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.A.set(t,n),u)){if(l.T&&128&r){const e=l.T[t];e&&e.map((e=>{try{u[e](n,i,t)}catch(e){te(e,s)}}))}2==(18&r)&&F(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(o,e,{value(...t){const n=X(this);return n.H.then((()=>n.k[e](...t)))}})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,l){ce.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},_=e=>{W(e,"connectedCallback")},z=(e,t={})=>{var n;const l=[],o=t.exclude||[],s=se.customElements,i=ie.head,c=i.querySelector("meta[charset]"),u=ie.createElement("style"),a=[];let f,d=!0;Object.assign(ce,t),ce.L=new URL(t.resourcesUrl||"./",ie.baseURI).href,t.syncQueue&&(ce.u|=4),e.map((e=>{e[1].map((t=>{const n={u:t[0],$:t[1],N:t[2],R:t[3]};n.N=t[2],n.R=t[3],n.T={};const i=n.$,c=class extends HTMLElement{constructor(e){super(e),Z(e=this,n),1&n.u&&e.attachShadow({mode:"open"})}connectedCallback(){f&&(clearTimeout(f),f=null),d?a.push(this):ce.jmp((()=>(e=>{if(0==(1&ce.u)){const t=X(e),n=t.O,l=()=>{};if(1&t.u)D(e,t,n.R),_(t.k);else{t.u|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){E(t,t.j=n);break}}n.N&&Object.entries(n.N).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,o)=>{if(0==(32&t.u)){t.u|=32;{if((o=le(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.T=o.watchers,V(o,n,2),o.isProxied=!0);const e=()=>{};t.u|=8;try{new o(t)}catch(e){te(e)}t.u&=-9,t.u|=128,e(),_(t.k)}if(o.style){let e=o.style;const t=b(n);if(!oe.has(t)){const l=()=>{};((e,t,n)=>{let l=oe.get(e);ue&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,oe.set(e,l)})(t,e,!!(1&n.u)),l()}}}const s=t.j,i=()=>F(t,!0);s&&s["s-rc"]?s["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){ce.jmp((()=>(()=>{if(0==(1&ce.u)){const e=X(this),t=e.k;e.U&&(e.U.map((e=>e())),e.U=void 0),W(t,"disconnectedCallback")}})()))}componentOnReady(){return X(this).W}};n.q=e[0],o.includes(i)||s.get(i)||(l.push(i),s.define(i,V(c,n,1)))}))}));{u.innerHTML=l+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles","");const e=null!==(n=ce.M)&&void 0!==n?n:r(ie);null!=e&&u.setAttribute("nonce",e),i.insertBefore(u,c?c.nextSibling:i.firstChild)}d=!1,a.length?a.map((e=>e.connectedCallback())):ce.jmp((()=>f=setTimeout(U,30)))},B=(e,t)=>t,D=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=I(e,n),i=G(t,o),c=J(n);ce.ael(s,l,i,c),(t.U=t.U||[]).push((()=>ce.rel(s,l,i,c)))}))},G=(e,t)=>n=>{try{256&e.u?e.k[t](n):(e.S=e.S||[]).push([t,n])}catch(e){te(e)}},I=(e,t)=>8&t?se:e,J=e=>0!=(2&e),K=e=>ce.M=e,Q=new WeakMap,X=e=>Q.get(e),Y=(e,t)=>Q.set(t.k=e,t),Z=(e,t)=>{const n={u:0,v:e,O:t,A:new Map};return n.H=new Promise((e=>n.F=e)),n.W=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],D(e,n,t.R),Q.set(e,n)},ee=(e,t)=>t in e,te=(e,t)=>(0,console.error)(e,t),ne=new Map,le=e=>{const t=e.$.replace(/-/g,"_"),n=e.q,l=ne.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ne.set(n,e),e[t])),te)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},oe=new Map,se="undefined"!=typeof window?window:{},ie=se.document||{head:{}},ce={u:0,L:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},re=e=>Promise.resolve(e),ue=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ae=[],fe=[],de=[],he=(e,t)=>n=>{e.push(n),o||(o=!0,t&&4&ce.u?me(ye):ce.raf(ye))},pe=(e,t)=>{let n=0,l=0;for(;n<e.length&&(l=performance.now())<t;)try{e[n++](l)}catch(e){te(e)}n===e.length?e.length=0:0!==n&&e.splice(0,n)},ye=()=>{l++,(e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){te(e)}e.length=0})(ae);{const e=2==(6&ce.u)?performance.now()+14*Math.ceil(.1*l):1/0;pe(fe,e),pe(de,e),fe.length>0&&(de.push(...fe),fe.length=0),(o=ae.length+fe.length+de.length>0)?ce.raf(ye):l=0}},me=e=>re().then(e),ve=he(fe,!0);export{B as F,f as H,z as b,m as c,y as g,u as h,re as p,Y as r,K as s}
|