proto-table-wc 0.0.500 → 0.0.502
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/demo-table_2.cjs.entry.js +1 -1
- package/dist/cjs/index-c9a111f0.js +1112 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/proto-table-wc.cjs.js +9 -9
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/esm/demo-table_2.entry.js +1 -1
- package/dist/esm/index-78c62227.js +1086 -0
- package/dist/esm/loader.js +2 -2
- package/dist/esm/proto-table-wc.js +10 -10
- package/dist/proto-table-wc/{p-271c985b.entry.js → p-1fb75b34.entry.js} +1 -1
- package/dist/proto-table-wc/p-8b5d455f.js +2 -0
- package/dist/proto-table-wc/proto-table-wc.esm.js +1 -1
- package/package.json +3 -3
- package/dist/cjs/index-215e1883.js +0 -1809
- package/dist/esm/index-b878de0a.js +0 -1783
- package/dist/proto-table-wc/p-bb46f1f8.js +0 -2
@@ -1,2 +0,0 @@
|
|
1
|
-
let e,n,t=!1,l=!1;const o="slot-fb{display:contents}slot-fb[hidden]{display:none}",s={},i=e=>"object"==(e=typeof e)||"function"===e;function c(e){var n,t,l;return null!==(l=null===(t=null===(n=e.head)||void 0===n?void 0:n.querySelector('meta[name="csp-nonce"]'))||void 0===t?void 0:t.getAttribute("content"))&&void 0!==l?l:void 0}const r=(e,n,...t)=>{let l=null,o=null,s=!1,c=!1;const r=[],f=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?f(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!i(l))&&(l+=""),s&&c?r[r.length-1].t+=l:r.push(s?u(null,l):l),c=s)};if(f(t),n){n.key&&(o=n.key);{const e=n.className||n.class;e&&(n.class="object"!=typeof e?e:Object.keys(e).filter((n=>e[n])).join(" "))}}const a=u(e,null);return a.l=n,r.length>0&&(a.o=r),a.i=o,a},u=(e,n)=>({u:0,p:e,t:n,h:null,o:null,l:null,i:null}),f={},a=new WeakMap,d=e=>"sc-"+e.v,y=(e,n,t,l,o,s)=>{if(t!==l){let c=B(e,n),r=n.toLowerCase();if("class"===n){const n=e.classList,o=h(t),s=h(l);n.remove(...o.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!o.includes(e))))}else if("key"===n);else if("ref"===n)l&&l(e);else if(c||"o"!==n[0]||"n"!==n[1]){const r=i(l);if((c||r&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[n]=l;else{const o=null==l?"":l;"list"===n?c=!1:null!=t&&e[n]==o||(e[n]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(n)||e.removeAttribute(n):(!c||4&s||o)&&!r&&e.setAttribute(n,l=!0===l?"":l)}else if(n="-"===n[2]?n.slice(3):B(Q,r)?r.slice(2):r[2]+n.slice(3),t||l){const o=n.endsWith(v);n=n.replace($,""),t&&Y.rel(e,n,t,o),l&&Y.ael(e,n,l,o)}}},p=/\s/,h=e=>e?e.split(p):[],v="Capture",$=RegExp(v+"$"),m=(e,n,t,l)=>{const o=11===n.h.nodeType&&n.h.host?n.h.host:n.h,i=e&&e.l||s,c=n.l||s;for(l of b(Object.keys(i)))l in c||y(o,l,i[l],void 0,t,n.u);for(l of b(Object.keys(c)))y(o,l,i[l],c[l],t,n.u)};function b(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}const w=(l,o,s)=>{const i=o.o[s];let c,r,u=0;if(null!==i.t)c=i.h=X.createTextNode(i.t);else{if(t||(t="svg"===i.p),c=i.h=X.createElementNS(t?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",i.p),t&&"foreignObject"===i.p&&(t=!1),m(null,i,t),null!=e&&c["s-si"]!==e&&c.classList.add(c["s-si"]=e),i.o)for(u=0;u<i.o.length;++u)r=w(l,i,u),r&&c.appendChild(r);"svg"===i.p?t=!1:"foreignObject"===c.tagName&&(t=!0)}return c["s-hn"]=n,c},g=(e,t,l,o,s,i)=>{let c,r=e;for(r.shadowRoot&&r.tagName===n&&(r=r.shadowRoot);s<=i;++s)o[s]&&(c=w(null,l,s),c&&(o[s].h=c,r.insertBefore(c,t)))},j=(e,n,t)=>{for(let l=n;l<=t;++l){const n=e[l];if(n){const e=n.h;k(n),e&&e.remove()}}},S=(e,n,t=!1)=>e.p===n.p&&(!!t||e.i===n.i),O=(e,n,l=!1)=>{const o=n.h=e.h,s=e.o,i=n.o,c=n.p,r=n.t;null===r?(t="svg"===c||"foreignObject"!==c&&t,m(e,n,t),null!==s&&null!==i?((e,n,t,l,o=!1)=>{let s,i,c=0,r=0,u=0,f=0,a=n.length-1,d=n[0],y=n[a],p=l.length-1,h=l[0],v=l[p];for(;c<=a&&r<=p;)if(null==d)d=n[++c];else if(null==y)y=n[--a];else if(null==h)h=l[++r];else if(null==v)v=l[--p];else if(S(d,h,o))O(d,h,o),d=n[++c],h=l[++r];else if(S(y,v,o))O(y,v,o),y=n[--a],v=l[--p];else if(S(d,v,o))O(d,v,o),e.insertBefore(d.h,y.h.nextSibling),d=n[++c],v=l[--p];else if(S(y,h,o))O(y,h,o),e.insertBefore(y.h,d.h),y=n[--a],h=l[++r];else{for(u=-1,f=c;f<=a;++f)if(n[f]&&null!==n[f].i&&n[f].i===h.i){u=f;break}u>=0?(i=n[u],i.p!==h.p?s=w(n&&n[r],t,u):(O(i,h,o),n[u]=void 0,s=i.h),h=l[++r]):(s=w(n&&n[r],t,r),h=l[++r]),s&&d.h.parentNode.insertBefore(s,d.h)}c>a?g(e,null==l[p+1]?null:l[p+1].h,t,l,r,p):r>p&&j(n,c,a)})(o,s,n,i,l):null!==i?(null!==e.t&&(o.textContent=""),g(o,null,n,i,0,i.length-1)):null!==s&&j(s,0,s.length-1),t&&"svg"===c&&(t=!1)):e.t!==r&&(o.data=r)},k=e=>{e.l&&e.l.ref&&e.l.ref(null),e.o&&e.o.map(k)},M=(e,n)=>{n&&!e.$&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.$=n)))},C=(e,n)=>{if(e.u|=16,!(4&e.u))return M(e,e.m),ce((()=>x(e,n)));e.u|=512},x=(e,n)=>{const t=e.j;let l;return n&&(l=T(t,"componentWillLoad")),E(l,(()=>L(e,t,n)))},E=(e,n)=>P(e)?e.then(n):n(),P=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,L=async(e,n,t)=>{var l;const s=e.$hostElement$,i=s["s-rc"];t&&(e=>{const n=e.S,t=e.$hostElement$,l=n.u,s=((e,n)=>{var t;const l=d(n),s=K.get(l);if(e=11===e.nodeType?e:X,s)if("string"==typeof s){let i,r=a.get(e=e.head||e);if(r||a.set(e,r=new Set),!r.has(l)){{i=X.createElement("style"),i.innerHTML=s;const n=null!==(t=Y.O)&&void 0!==t?t:c(X);null!=n&&i.setAttribute("nonce",n),e.insertBefore(i,e.querySelector("link"))}4&n.u&&(i.innerHTML+=o),r&&r.add(l)}}else e.adoptedStyleSheets.includes(s)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,s]);return l})(t.shadowRoot?t.shadowRoot:t.getRootNode(),n);10&l&&(t["s-sc"]=s,t.classList.add(s+"-h"))})(e);A(e,n,s,t),i&&(i.map((e=>e())),s["s-rc"]=void 0);{const n=null!==(l=s["s-p"])&&void 0!==l?l:[],t=()=>N(e);0===n.length?t():(Promise.all(n).then(t),e.u|=4,n.length=0)}},A=(t,l,o,s)=>{try{l=l.render(),t.u&=-17,t.u|=2,((t,l,o=!1)=>{const s=t.$hostElement$,i=t.k||u(null,null),c=(e=>e&&e.p===f)(l)?l:r(null,null,l);if(n=s.tagName,o&&c.l)for(const e of Object.keys(c.l))s.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(c.l[e]=s[e]);c.p=null,c.u|=4,t.k=c,c.h=i.h=s.shadowRoot||s,e=s["s-sc"],O(i,c,o)})(t,l,s)}catch(e){G(e,t.$hostElement$)}return null},N=e=>{const n=e.$hostElement$,t=e.j,l=e.m;64&e.u||(e.u|=64,W(n),T(t,"componentDidLoad"),e.M(n),l||R()),e.$&&(e.$(),e.$=void 0),512&e.u&&ie((()=>C(e,!1))),e.u&=-517},R=()=>{W(X.documentElement),ie((()=>(e=>{const n=Y.ce("appload",{detail:{namespace:"proto-table-wc"}});return e.dispatchEvent(n),n})(Q)))},T=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){G(e)}},W=e=>e.classList.add("hydrated"),U=(e,n,t)=>{var l;const o=e.prototype;if(n.C){const s=Object.entries(n.C);if(s.map((([e,[n]])=>{(31&n||2&t&&32&n)&&Object.defineProperty(o,e,{get(){return((e,n)=>V(this).P.get(n))(0,e)},set(n){((e,n,t)=>{const l=V(e),o=l.P.get(n),s=l.u,c=l.j;t=(e=>(null==e||i(e),e))(t),8&s&&void 0!==o||t===o||Number.isNaN(o)&&Number.isNaN(t)||(l.P.set(n,t),c&&2==(18&s)&&C(l,!1))})(this,e,n)},configurable:!0,enumerable:!0})})),1&t){const t=new Map;o.attributeChangedCallback=function(e,l,s){Y.jmp((()=>{var i;const c=t.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(o.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const t=V(this),o=null==t?void 0:t.u;if(o&&!(8&o)&&128&o&&s!==l){const o=t.j,c=null===(i=n.L)||void 0===i?void 0:i[e];null==c||c.forEach((n=>{null!=o[n]&&o[n].call(o,s,l,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!==(l=n.L)&&void 0!==l?l:{}),...s.filter((([e,n])=>15&n[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},q=async(e,n,t)=>{let l;if(!(32&n.u)){if(n.u|=32,t.A){if(l=J(t),l.then){const e=()=>{};l=await l,e()}l.isProxied||(U(l,t,2),l.isProxied=!0);const e=()=>{};n.u|=8;try{new l(n)}catch(e){G(e)}n.u&=-9,e()}else l=e.constructor,customElements.whenDefined(t.v).then((()=>n.u|=128));if(l.style){let e=l.style;const n=d(t);if(!K.has(n)){const l=()=>{};((e,n,t)=>{let l=K.get(e);ee&&t?(l=l||new CSSStyleSheet,"string"==typeof l?l=n:l.replaceSync(n)):l=n,K.set(e,l)})(n,e,!!(1&t.u)),l()}}}const o=n.m,s=()=>C(n,!0);o&&o["s-rc"]?o["s-rc"].push(s):s()},D=(e,n={})=>{var t;const l=[],s=n.exclude||[],i=Q.customElements,r=X.head,u=r.querySelector("meta[charset]"),f=X.createElement("style"),a=[];let d,y=!0;Object.assign(Y,n),Y.N=new URL(n.resourcesUrl||"./",X.baseURI).href;let p=!1;if(e.map((e=>{e[1].map((n=>{const t={u:n[0],v:n[1],C:n[2],R:n[3]};4&t.u&&(p=!0),t.C=n[2];const o=t.v,c=class extends HTMLElement{constructor(e){super(e),z(e=this,t),1&t.u&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),y?a.push(this):Y.jmp((()=>(e=>{if(!(1&Y.u)){const n=V(e),t=n.S,l=()=>{};if(1&n.u)(null==n?void 0:n.j)||(null==n?void 0:n.T)&&n.T.then((()=>{}));else{n.u|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){M(n,n.m=t);break}}t.C&&Object.entries(t.C).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),q(e,n,t)}l()}})(this)))}disconnectedCallback(){Y.jmp((()=>(async()=>{if(!(1&Y.u)){const e=V(this);(null==e?void 0:e.j)||(null==e?void 0:e.T)&&e.T.then((()=>{}))}})()))}componentOnReady(){return V(this).T}};t.A=e[0],s.includes(o)||i.get(o)||(l.push(o),i.define(o,U(c,t,1)))}))})),l.length>0&&(p&&(f.textContent+=o),f.textContent+=l+"{visibility:hidden}.hydrated{visibility:inherit}",f.innerHTML.length)){f.setAttribute("data-styles","");const e=null!==(t=Y.O)&&void 0!==t?t:c(X);null!=e&&f.setAttribute("nonce",e),r.insertBefore(f,u?u.nextSibling:r.firstChild)}y=!1,a.length?a.map((e=>e.connectedCallback())):Y.jmp((()=>d=setTimeout(R,30)))},F=e=>Y.O=e,H=new WeakMap,V=e=>H.get(e),_=(e,n)=>H.set(n.j=e,n),z=(e,n)=>{const t={u:0,$hostElement$:e,S:n,P:new Map};return t.T=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],H.set(e,t)},B=(e,n)=>n in e,G=(e,n)=>(0,console.error)(e,n),I=new Map,J=e=>{const n=e.v.replace(/-/g,"_"),t=e.A,l=I.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(I.set(t,e),e[n])),G)
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},K=new Map,Q="undefined"!=typeof window?window:{},X=Q.document||{head:{}},Y={u:0,N:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,n,t,l)=>e.addEventListener(n,t,l),rel:(e,n,t,l)=>e.removeEventListener(n,t,l),ce:(e,n)=>new CustomEvent(e,n)},Z=e=>Promise.resolve(e),ee=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),ne=[],te=[],le=(e,n)=>t=>{e.push(t),l||(l=!0,n&&4&Y.u?ie(se):Y.raf(se))},oe=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){G(e)}e.length=0},se=()=>{oe(ne),oe(te),(l=ne.length>0)&&Y.raf(se)},ie=e=>Z().then(e),ce=le(te,!0);export{D as b,r as h,Z as p,_ as r,F as s}
|