@ezeep/ezeep-js 1.0.157 → 1.0.160
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/ezeep.cjs.js +2 -2
- package/dist/cjs/ezp-auth_14.cjs.entry.js +30 -25
- package/dist/cjs/{index-d547be4e.js → index-baa7689a.js} +8 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/ezp-auth/ezp-auth.js +16 -16
- package/dist/collection/components/ezp-printer-selection/ezp-printer-selection.js +5 -6
- package/dist/collection/components/ezp-printing/ezp-printing.js +24 -0
- package/dist/collection/components/ezp-upload/ezp-upload.css +1 -0
- package/dist/collection/components/ezp-user-menu/ezp-user-menu.js +5 -1
- package/dist/custom-elements/index.js +30 -25
- package/dist/directives/proxies.ts +1 -1
- package/dist/esm/ezeep.js +2 -2
- package/dist/esm/ezp-auth_14.entry.js +30 -25
- package/dist/esm/{index-485041ac.js → index-18d4bf15.js} +8 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm-es5/ezeep.js +1 -1
- package/dist/esm-es5/ezp-auth_14.entry.js +3 -3
- package/dist/esm-es5/index-18d4bf15.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/ezeep/ezeep.esm.js +1 -1
- package/dist/ezeep/ezeep.js +1 -1
- package/dist/ezeep/p-80d5c308.system.js +1 -0
- package/dist/ezeep/{p-f310e367.entry.js → p-9ff19f99.entry.js} +2 -2
- package/dist/ezeep/p-d9b69b53.js +1 -0
- package/dist/ezeep/{p-e149771a.system.entry.js → p-e762ca0f.system.entry.js} +3 -3
- package/{www/build/p-cc2bb341.system.js → dist/ezeep/p-f96ca6a7.system.js} +1 -1
- package/dist/types/components/ezp-auth/ezp-auth.d.ts +2 -1
- package/dist/types/components/ezp-printer-selection/ezp-printer-selection.d.ts +1 -1
- package/dist/types/components/ezp-printing/ezp-printing.d.ts +1 -0
- package/dist/types/components.d.ts +1 -0
- package/package.json +1 -1
- package/www/build/ezeep.esm.js +1 -1
- package/www/build/ezeep.js +1 -1
- package/www/build/p-80d5c308.system.js +1 -0
- package/www/build/{p-f310e367.entry.js → p-9ff19f99.entry.js} +2 -2
- package/www/build/p-d9b69b53.js +1 -0
- package/www/build/{p-e149771a.system.entry.js → p-e762ca0f.system.entry.js} +3 -3
- package/{dist/ezeep/p-cc2bb341.system.js → www/build/p-f96ca6a7.system.js} +1 -1
- package/www/index.html +1 -1
- package/dist/esm-es5/index-485041ac.js +0 -1
- package/dist/ezeep/p-d4dae139.system.js +0 -1
- package/dist/ezeep/p-fa808a39.js +0 -1
- package/www/build/p-d4dae139.system.js +0 -1
- package/www/build/p-fa808a39.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
let e,t,n=!1,l=null,s=!1;const o="undefined"!=typeof window?window:{},i=o.document||{head:{}},r={t: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)},c=e=>Promise.resolve(e),a=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),u=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=e,i=f(t,s),c=h(n);r.ael(o,l,i,c),(t.o=t.o||[]).push((()=>r.rel(o,l,i,c)))}))},f=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){oe(e)}},h=e=>0!=(2&e),p="http://www.w3.org/1999/xlink",d=new WeakMap,y=e=>"sc-"+e.h,$={},m=e=>"object"==(e=typeof e)||"function"===e,w=(e,t,...n)=>{let l=null,s=null,o=!1,i=!1,r=[];const c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!m(l))&&(l+=""),o&&i?r[r.length-1].p+=l:r.push(o?b(null,l):l),i=o)};if(c(n),t){t.key&&(s=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,v);const a=b(e,null);return a.$=t,r.length>0&&(a.m=r),a.g=s,a},b=(e,t)=>({t:0,v:e,p:t,j:null,m:null,$:null,g:null}),g={},v={forEach:(e,t)=>e.map(j).forEach(t),map:(e,t)=>e.map(j).map(t).map(k)},j=e=>({vattrs:e.$,vchildren:e.m,vkey:e.g,vname:e.k,vtag:e.v,vtext:e.p}),k=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),w(e.vtag,t,...e.vchildren||[])}const t=b(e.vtag,e.vtext);return t.$=e.vattrs,t.m=e.vchildren,t.g=e.vkey,t.k=e.vname,t},S=(e,t,n,l,s,i)=>{if(n!==l){let c=se(e,t),a=t.toLowerCase();if("class"===t){const t=e.classList,s=M(n),o=M(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.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(c||"o"!==t[0]||"n"!==t[1]){const o=m(l);if((c||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}let r=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,r=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(r?e.removeAttributeNS(p,t):e.removeAttribute(t)):(!c||4&i||s)&&!o&&(l=!0===l?"":l,r?e.setAttributeNS(p,t,l):e.setAttribute(t,l))}else t="-"===t[2]?t.slice(3):se(o,a)?a.slice(2):a[2]+t.slice(3),n&&r.rel(e,t,n,!1),l&&r.ael(e,t,l,!1)}},O=/\s/,M=e=>e?e.split(O):[],x=(e,t,n,l)=>{const s=11===t.j.nodeType&&t.j.host?t.j.host:t.j,o=e&&e.$||$,i=t.$||$;for(l in o)l in i||S(s,l,o[l],void 0,n,t.t);for(l in i)S(s,l,o[l],i[l],n,t.t)},C=(t,l,s)=>{let o,r,c=l.m[s],a=0;if(null!==c.p)o=c.j=i.createTextNode(c.p);else{if(n||(n="svg"===c.v),o=c.j=i.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.v),n&&"foreignObject"===c.v&&(n=!1),x(null,c,n),null!=e&&o["s-si"]!==e&&o.classList.add(o["s-si"]=e),c.m)for(a=0;a<c.m.length;++a)r=C(t,c,a),r&&o.appendChild(r);"svg"===c.v?n=!1:"foreignObject"===o.tagName&&(n=!0)}return o},L=(e,n,l,s,o,i)=>{let r,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=i;++o)s[o]&&(r=C(null,l,o),r&&(s[o].j=r,c.insertBefore(r,n)))},P=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.j,W(l),s.remove())},E=(e,t)=>e.v===t.v&&e.g===t.g,U=(e,t)=>{const l=t.j=e.j,s=e.m,o=t.m,i=t.v,r=t.p;null===r?(n="svg"===i||"foreignObject"!==i&&n,"slot"===i||x(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o,i=0,r=0,c=0,a=0,u=t.length-1,f=t[0],h=t[u],p=l.length-1,d=l[0],y=l[p];for(;i<=u&&r<=p;)if(null==f)f=t[++i];else if(null==h)h=t[--u];else if(null==d)d=l[++r];else if(null==y)y=l[--p];else if(E(f,d))U(f,d),f=t[++i],d=l[++r];else if(E(h,y))U(h,y),h=t[--u],y=l[--p];else if(E(f,y))U(f,y),e.insertBefore(f.j,h.j.nextSibling),f=t[++i],y=l[--p];else if(E(h,d))U(h,d),e.insertBefore(h.j,f.j),h=t[--u],d=l[++r];else{for(c=-1,a=i;a<=u;++a)if(t[a]&&null!==t[a].g&&t[a].g===d.g){c=a;break}c>=0?(o=t[c],o.v!==d.v?s=C(t&&t[r],n,c):(U(o,d),t[c]=void 0,s=o.j),d=l[++r]):(s=C(t&&t[r],n,r),d=l[++r]),s&&f.j.parentNode.insertBefore(s,f.j)}i>u?L(e,null==l[p+1]?null:l[p+1].j,n,l,r,p):r>p&&P(t,i,u)})(l,s,t,o):null!==o?(null!==e.p&&(l.textContent=""),L(l,null,t,o,0,o.length-1)):null!==s&&P(s,0,s.length-1),n&&"svg"===i&&(n=!1)):e.p!==r&&(l.data=r)},W=e=>{e.$&&e.$.ref&&e.$.ref(null),e.m&&e.m.map(W)},F=e=>te(e).S,R=(e,t,n)=>{const l=F(e);return{emit:e=>T(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},T=(e,t,n)=>{const l=r.ce(t,n);return e.dispatchEvent(l),l},A=(e,t)=>{t&&!e.O&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.O=t)))},H=(e,t)=>{if(e.t|=16,!(4&e.t))return A(e,e.M),ye((()=>q(e,t)));e.t|=512},q=(e,t)=>{const n=e.i;let l;return t?(e.t|=256,e.u&&(e.u.map((([e,t])=>G(n,e,t))),e.u=null),l=G(n,"componentWillLoad")):l=G(n,"componentWillUpdate"),I(l,(()=>z(e,n,t)))},z=async(e,t,n)=>{const l=e.S,s=l["s-rc"];n&&(e=>{const t=e.C,n=e.S,l=t.t,s=((e,t)=>{let n=y(t),l=ce.get(n);if(e=11===e.nodeType?e:i,l)if("string"==typeof l){let t,s=d.get(e=e.head||e);s||d.set(e,s=new Set),s.has(n)||(t=i.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);D(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>V(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},D=(n,s)=>{try{l=s,s=s.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.L||b(null,null),i=(e=>e&&e.v===g)(l)?l:w(null,null,l);t=s.tagName,i.v=null,i.t|=4,n.L=i,i.j=o.j=s.shadowRoot||s,e=s["s-sc"],U(o,i)})(n,s)}catch(e){oe(e,n.S)}return l=null,null},N=()=>l,V=e=>{const t=e.S,n=e.i,l=e.M;64&e.t||(e.t|=64,J(t),G(n,"componentDidLoad"),e.P(t),l||B()),e.U(t),e.O&&(e.O(),e.O=void 0),512&e.t&&de((()=>H(e,!1))),e.t&=-517},_=e=>{{const t=te(e),n=t.S.isConnected;return n&&2==(18&t.t)&&H(t,!1),n}},B=()=>{J(i.documentElement),de((()=>T(o,"appload",{detail:{namespace:"ezeep"}})))},G=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){oe(e)}},I=(e,t)=>e&&e.then?e.then(t):t(),J=e=>e.classList.add("hydrated"),K=(e,t,n)=>{if(t.W){e.watchers&&(t.F=e.watchers);const l=Object.entries(t.W),s=e.prototype;if(l.map((([e,[l]])=>{31&l||2&n&&32&l?Object.defineProperty(s,e,{get(){return((e,t)=>te(this).R.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=te(e),o=s.S,i=s.R.get(t),r=s.t,c=s.i;if(n=((e,t)=>null==e||m(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.W[t][0]),!(8&r&&void 0!==i||n===i)&&(s.R.set(t,n),c)){if(l.F&&128&r){const e=l.F[t];e&&e.map((e=>{try{c[e](n,i,t)}catch(e){oe(e,o)}}))}2==(18&r)&&H(s,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&l&&Object.defineProperty(s,e,{value(...t){const n=te(this);return n.T.then((()=>n.i[e](...t)))}})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){r.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.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},Q=e=>{G(e,"connectedCallback")},X=(e,t={})=>{const n=[],l=t.exclude||[],s=o.customElements,c=i.head,f=c.querySelector("meta[charset]"),h=i.createElement("style"),p=[];let d,$=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",i.baseURI).href,e.map((e=>{e[1].map((t=>{const o={t:t[0],h:t[1],W:t[2],A:t[3]};o.W=t[2],o.A=t[3],o.F={};const i=o.h,c=class extends HTMLElement{constructor(e){super(e),le(e=this,o),1&o.t&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),$?p.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=te(e),n=t.C,l=()=>{};if(1&t.t)u(e,t,n.A),Q(t.i);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){A(t,t.M=n);break}}n.W&&Object.entries(n.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=re(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(n.F=s.watchers,K(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){oe(e)}t.t&=-9,t.t|=128,e(),Q(t.i)}if(s.style){let e=s.style;const t=y(n);if(!ce.has(t)){const l=()=>{};((e,t,n)=>{let l=ce.get(e);a&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,ce.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.M,i=()=>H(t,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const e=te(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return te(this).H}};o.q=e[0],l.includes(i)||s.get(i)||(n.push(i),s.define(i,K(c,o,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),c.insertBefore(h,f?f.nextSibling:c.firstChild),$=!1,p.length?p.map((e=>e.connectedCallback())):r.jmp((()=>d=setTimeout(B,30)))},Y=e=>{const t=new URL(e,r.l);return t.origin!==o.location.origin?t.href:t.pathname},Z=(e,t)=>t,ee=new WeakMap,te=e=>ee.get(e),ne=(e,t)=>ee.set(t.i=e,t),le=(e,t)=>{const n={t:0,S:e,C:t,R:new Map};return n.T=new Promise((e=>n.U=e)),n.H=new Promise((e=>n.P=e)),e["s-p"]=[],e["s-rc"]=[],u(e,n,t.A),ee.set(e,n)},se=(e,t)=>t in e,oe=(e,t)=>(0,console.error)(e,t),ie=new Map,re=e=>{const t=e.h.replace(/-/g,"_"),n=e.q,l=ie.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(ie.set(n,e),e[t])),oe)},ce=new Map,ae=[],ue=[],fe=(e,t)=>n=>{e.push(n),s||(s=!0,t&&4&r.t?de(pe):r.raf(pe))},he=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){oe(e)}e.length=0},pe=()=>{he(ae),he(ue),(s=ae.length>0)&&r.raf(pe)},de=e=>c().then(e),ye=fe(ue,!0);export{Z as F,g as H,F as a,X as b,R as c,Y as d,_ as f,N as g,w as h,c as p,ne as r}
|