@xplortech/apollo-core 0.0.0

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.
Files changed (49) hide show
  1. package/README.md +1 -0
  2. package/build/style.css +1129 -0
  3. package/dist/apollo-core/apollo-core.esm.js +1 -0
  4. package/dist/apollo-core/index.esm.js +0 -0
  5. package/dist/apollo-core/p-1c829417.js +1 -0
  6. package/dist/apollo-core/p-64ea0ce6.entry.js +1 -0
  7. package/dist/apollo-core/p-b76559ae.entry.js +1 -0
  8. package/dist/cjs/apollo-core.cjs.js +19 -0
  9. package/dist/cjs/index-3ceb30c2.js +980 -0
  10. package/dist/cjs/index.cjs.js +2 -0
  11. package/dist/cjs/loader.cjs.js +21 -0
  12. package/dist/cjs/xpl-pagination.cjs.entry.js +16 -0
  13. package/dist/cjs/xpl-table.cjs.entry.js +54 -0
  14. package/dist/collection/collection-manifest.json +13 -0
  15. package/dist/collection/components/xpl-pagination/xpl-pagination.js +9 -0
  16. package/dist/collection/components/xpl-table/xpl-table.js +157 -0
  17. package/dist/custom-elements/index.d.ts +51 -0
  18. package/dist/custom-elements/index.js +78 -0
  19. package/dist/esm/apollo-core.js +17 -0
  20. package/dist/esm/index-52844266.js +953 -0
  21. package/dist/esm/index.js +1 -0
  22. package/dist/esm/loader.js +17 -0
  23. package/dist/esm/polyfills/core-js.js +11 -0
  24. package/dist/esm/polyfills/css-shim.js +1 -0
  25. package/dist/esm/polyfills/dom.js +79 -0
  26. package/dist/esm/polyfills/es5-html-element.js +1 -0
  27. package/dist/esm/polyfills/index.js +34 -0
  28. package/dist/esm/polyfills/system.js +6 -0
  29. package/dist/esm/xpl-pagination.entry.js +12 -0
  30. package/dist/esm/xpl-table.entry.js +50 -0
  31. package/dist/index.cjs.js +1 -0
  32. package/dist/index.js +1 -0
  33. package/dist/loader/cdn.js +3 -0
  34. package/dist/loader/index.cjs.js +3 -0
  35. package/dist/loader/index.d.ts +13 -0
  36. package/dist/loader/index.es2017.js +3 -0
  37. package/dist/loader/index.js +4 -0
  38. package/dist/loader/package.json +10 -0
  39. package/dist/types/.stencil/xpl-pagination/xpl-pagination.d.ts +3 -0
  40. package/dist/types/.stencil/xpl-table/xpl-table.d.ts +16 -0
  41. package/dist/types/components.d.ts +61 -0
  42. package/dist/types/stencil-public-runtime.d.ts +1562 -0
  43. package/loader/cdn.js +3 -0
  44. package/loader/index.cjs.js +3 -0
  45. package/loader/index.d.ts +13 -0
  46. package/loader/index.es2017.js +3 -0
  47. package/loader/index.js +4 -0
  48. package/loader/package.json +10 -0
  49. package/package.json +56 -0
@@ -0,0 +1 @@
1
+ import{p as e,b as t}from"./p-1c829417.js";(()=>{const t=import.meta.url,a={};return""!==t&&(a.resourcesUrl=new URL(".",t).href),e(a)})().then((e=>t([["p-b76559ae",[[1,"xpl-pagination"]]],["p-64ea0ce6",[[0,"xpl-table",{columns:[16],data:[16],fixed:[4],multiselect:[4],striped:[4],areAllSelected:[32],selected:[32]}]]]],e)));
File without changes
@@ -0,0 +1 @@
1
+ let e,n,t=!1;const l="undefined"!=typeof window?window:{},o=l.document||{head:{}},s={t:0,l:"",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)},c=e=>Promise.resolve(e),r={},i=e=>"object"==(e=typeof e)||"function"===e,a=(e,n,...t)=>{let l=null,o=!1,s=!1,c=[];const r=n=>{for(let t=0;t<n.length;t++)l=n[t],Array.isArray(l)?r(l):null!=l&&"boolean"!=typeof l&&((o="function"!=typeof e&&!i(l))&&(l+=""),o&&s?c[c.length-1].o+=l:c.push(o?u(null,l):l),s=o)};if(r(t),n){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.i=n,c.length>0&&(a.u=c),a},u=(e,n)=>({t:0,$:e,o:n,m:null,u:null,i:null}),f={},$=(e,n,t,o,c,r)=>{if(t!==o){let a=N(e,n),u=n.toLowerCase();if("class"===n){const n=e.classList,l=m(t),s=m(o);n.remove(...l.filter((e=>e&&!s.includes(e)))),n.add(...s.filter((e=>e&&!l.includes(e))))}else if(a||"o"!==n[0]||"n"!==n[1]){const l=i(o);if((a||l&&null!==o)&&!c)try{if(e.tagName.includes("-"))e[n]=o;else{let l=null==o?"":o;"list"===n?a=!1:null!=t&&e[n]==l||(e[n]=l)}}catch(e){}null==o||!1===o?!1===o&&""!==e.getAttribute(n)||e.removeAttribute(n):(!a||4&r||c)&&!l&&e.setAttribute(n,o=!0===o?"":o)}else n="-"===n[2]?n.slice(3):N(l,u)?u.slice(2):u[2]+n.slice(3),t&&s.rel(e,n,t,!1),o&&s.ael(e,n,o,!1)}},d=/\s/,m=e=>e?e.split(d):[],p=(e,n,t,l)=>{const o=11===n.m.nodeType&&n.m.host?n.m.host:n.m,s=e&&e.i||r,c=n.i||r;for(l in s)l in c||$(o,l,s[l],void 0,t,n.t);for(l in c)$(o,l,s[l],c[l],t,n.t)},b=(n,t,l)=>{let s,c,r=t.u[l],i=0;if(null!==r.o)s=r.m=o.createTextNode(r.o);else if(s=r.m=o.createElement(r.$),p(null,r,!1),null!=e&&s["s-si"]!==e&&s.classList.add(s["s-si"]=e),r.u)for(i=0;i<r.u.length;++i)c=b(n,r,i),c&&s.appendChild(c);return s},y=(e,t,l,o,s,c)=>{let r,i=e;for(i.shadowRoot&&i.tagName===n&&(i=i.shadowRoot);s<=c;++s)o[s]&&(r=b(null,l,s),r&&(o[s].m=r,i.insertBefore(r,t)))},h=(e,n,t,l)=>{for(;n<=t;++n)(l=e[n])&&l.m.remove()},w=(e,n)=>e.$===n.$,g=(e,n)=>{const t=n.m=e.m,l=e.u,o=n.u,s=n.o;null===s?("slot"===n.$||p(e,n,!1),null!==l&&null!==o?((e,n,t,l)=>{let o,s=0,c=0,r=n.length-1,i=n[0],a=n[r],u=l.length-1,f=l[0],$=l[u];for(;s<=r&&c<=u;)null==i?i=n[++s]:null==a?a=n[--r]:null==f?f=l[++c]:null==$?$=l[--u]:w(i,f)?(g(i,f),i=n[++s],f=l[++c]):w(a,$)?(g(a,$),a=n[--r],$=l[--u]):w(i,$)?(g(i,$),e.insertBefore(i.m,a.m.nextSibling),i=n[++s],$=l[--u]):w(a,f)?(g(a,f),e.insertBefore(a.m,i.m),a=n[--r],f=l[++c]):(o=b(n&&n[c],t,c),f=l[++c],o&&i.m.parentNode.insertBefore(o,i.m));s>r?y(e,null==l[u+1]?null:l[u+1].m,t,l,c,u):c>u&&h(n,s,r)})(t,l,n,o):null!==o?(null!==e.o&&(t.textContent=""),y(t,null,n,o,0,o.length-1)):null!==l&&h(l,0,l.length-1)):e.o!==s&&(t.data=s)},j=(e,n,t)=>{const l=(e=>W(e).p)(e);return{emit:e=>v(l,n,{bubbles:!!(4&t),composed:!!(2&t),cancelable:!!(1&t),detail:e})}},v=(e,n,t)=>{const l=s.ce(n,t);return e.dispatchEvent(l),l},M=(e,n)=>{n&&!e.h&&n["s-p"]&&n["s-p"].push(new Promise((n=>e.h=n)))},O=(e,n)=>{if(e.t|=16,!(4&e.t))return M(e,e.g),Q((()=>k(e,n)));e.t|=512},k=(e,n)=>{const t=e.j;let l;return n&&(l=L(t,"componentWillLoad")),T(l,(()=>P(e,t)))},P=async(e,n)=>{const t=e.p,l=t["s-rc"];x(e,n),l&&(l.map((e=>e())),t["s-rc"]=void 0);{const n=t["s-p"],l=()=>C(e);0===n.length?l():(Promise.all(n).then(l),e.t|=4,n.length=0)}},x=(t,l)=>{try{l=l.render(),t.t&=-17,t.t|=2,((t,l)=>{const o=t.p,s=t.v||u(null,null),c=(e=>e&&e.$===f)(l)?l:a(null,null,l);n=o.tagName,c.$=null,c.t|=4,t.v=c,c.m=s.m=o.shadowRoot||o,e=o["s-sc"],g(s,c)})(t,l)}catch(e){V(e,t.p)}return null},C=e=>{const n=e.p,t=e.g;64&e.t||(e.t|=64,A(n),e.M(n),t||E()),e.h&&(e.h(),e.h=void 0),512&e.t&&K((()=>O(e,!1))),e.t&=-517},E=()=>{A(o.documentElement),K((()=>v(l,"appload",{detail:{namespace:"apollo-core"}})))},L=(e,n,t)=>{if(e&&e[n])try{return e[n](t)}catch(e){V(e)}},T=(e,n)=>e&&e.then?e.then(n):n(),A=e=>e.classList.add("hydrated"),H=(e,n,t)=>{if(n.O){const l=Object.entries(n.O),o=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&t&&32&l)&&Object.defineProperty(o,e,{get(){return((e,n)=>W(this).k.get(n))(0,e)},set(t){((e,n,t,l)=>{const o=W(e),s=o.k.get(n),c=o.t,r=o.j;t=((e,n)=>null==e||i(e)?e:4&n?"false"!==e&&(""===e||!!e):e)(t,l.O[n][0]),8&c&&void 0!==s||t===s||(o.k.set(n,t),r&&2==(18&c)&&O(o,!1))})(this,e,t,n)},configurable:!0,enumerable:!0})})),1&t){const n=new Map;o.attributeChangedCallback=function(e,t,l){s.jmp((()=>{const t=n.get(e);this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,n])=>15&n[0])).map((([e,t])=>{const l=t[1]||e;return n.set(l,e),l}))}}return e},R=(e,n={})=>{const t=[],c=n.exclude||[],r=l.customElements,i=o.head,a=i.querySelector("meta[charset]"),u=o.createElement("style"),f=[];let $,d=!0;Object.assign(s,n),s.l=new URL(n.resourcesUrl||"./",o.baseURI).href,e.map((e=>e[1].map((n=>{const l={t:n[0],P:n[1],O:n[2],C:n[3]};l.O=n[2];const o=l.P,i=class extends HTMLElement{constructor(e){super(e),F(e=this,l),1&l.t&&e.attachShadow({mode:"open"})}connectedCallback(){$&&(clearTimeout($),$=null),d?f.push(this):s.jmp((()=>(e=>{if(0==(1&s.t)){const n=W(e),t=n.L,l=()=>{};if(!(1&n.t)){n.t|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){M(n,n.g=t);break}}t.O&&Object.entries(t.O).map((([n,[t]])=>{if(31&t&&e.hasOwnProperty(n)){const t=e[n];delete e[n],e[n]=t}})),(async(e,n,t,l,o)=>{if(0==(32&n.t)){if(n.t|=32,(o=z(t)).then){const e=()=>{};o=await o,e()}o.isProxied||(H(o,t,2),o.isProxied=!0);const e=()=>{};n.t|=8;try{new o(n)}catch(e){V(e)}n.t&=-9,e()}const s=n.g,c=()=>O(n,!0);s&&s["s-rc"]?s["s-rc"].push(c):c()})(0,n,t)}l()}})(this)))}disconnectedCallback(){s.jmp((()=>{}))}componentOnReady(){return W(this).T}};l.A=e[0],c.includes(o)||r.get(o)||(t.push(o),r.define(o,H(i,l,1)))})))),u.innerHTML=t+"{visibility:hidden}.hydrated{visibility:inherit}",u.setAttribute("data-styles",""),i.insertBefore(u,a?a.nextSibling:i.firstChild),d=!1,f.length?f.map((e=>e.connectedCallback())):s.jmp((()=>$=setTimeout(E,30)))},U=new WeakMap,W=e=>U.get(e),q=(e,n)=>U.set(n.j=e,n),F=(e,n)=>{const t={t:0,p:e,L:n,k:new Map};return t.T=new Promise((e=>t.M=e)),e["s-p"]=[],e["s-rc"]=[],U.set(e,t)},N=(e,n)=>n in e,V=(e,n)=>(0,console.error)(e,n),_=new Map,z=e=>{const n=e.P.replace(/-/g,"_"),t=e.A,l=_.get(t);return l?l[n]:import(`./${t}.entry.js`).then((e=>(_.set(t,e),e[n])),V)},B=[],D=[],G=(e,n)=>l=>{e.push(l),t||(t=!0,n&&4&s.t?K(J):s.raf(J))},I=e=>{for(let n=0;n<e.length;n++)try{e[n](performance.now())}catch(e){V(e)}e.length=0},J=()=>{I(B),I(D),(t=B.length>0)&&s.raf(J)},K=e=>c().then(e),Q=G(D,!0);export{f as H,R as b,j as c,a as h,c as p,q as r}
@@ -0,0 +1 @@
1
+ import{r as t,c as s,h as e,H as i}from"./p-1c829417.js";const h=class{constructor(e){t(this,e),this.tableSelect=s(this,"tableSelect",7),this.areAllSelected=!1,this.selectAll=t=>{const{target:s}=t;if(!(s instanceof HTMLInputElement))return;const{checked:e}=s;this.areAllSelected=e,this.selected=this.selected.map((()=>e)),this.onChange()},this.selectOne=(t,s)=>{const{target:e}=t;if(!(e instanceof HTMLInputElement))return;const{checked:i}=e;this.areAllSelected=!1,this.selected[s]=i,this.onChange()},this.onChange=()=>{this.tableSelect.emit({selected:this.selected,areAllSelected:this.areAllSelected})}}componentWillLoad(){this.areAllSelected=!1,this.selected=new Array(this.data.length).fill(!1)}render(){return e(i,null,e("div",{class:"xpl-table-container"},e("table",{class:`xpl-table${this.striped?" xpl-table--striped":""} xpl-table--sticky`},this.columns&&e("thead",null,this.columns.map(((t,s)=>e("th",null,this.multiselect&&0===s?e("input",{type:"checkbox",onChange:t=>{this.selectAll(t)},checked:this.areAllSelected}):null,t)))),this.data&&e("tbody",null,this.data.map((t=>e("tr",null,t.map(((t,s)=>e("td",null,this.multiselect&&0===s?e("input",{checked:this.selected[s],type:"checkbox",onChange:t=>this.selectOne(t,s)}):null,t))))))))))}};export{h as xpl_table}
@@ -0,0 +1 @@
1
+ import{r,h as s,H as t}from"./p-1c829417.js";const n=class{constructor(s){r(this,s)}render(){return s(t,null,s("slot",null))}};export{n as xpl_pagination}
@@ -0,0 +1,19 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-3ceb30c2.js');
4
+
5
+ /*
6
+ Stencil Client Patch Browser v2.6.0 | MIT Licensed | https://stenciljs.com
7
+ */
8
+ const patchBrowser = () => {
9
+ const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('apollo-core.cjs.js', document.baseURI).href));
10
+ const opts = {};
11
+ if (importMeta !== '') {
12
+ opts.resourcesUrl = new URL('.', importMeta).href;
13
+ }
14
+ return index.promiseResolve(opts);
15
+ };
16
+
17
+ patchBrowser().then(options => {
18
+ return index.bootstrapLazy([["xpl-pagination.cjs",[[1,"xpl-pagination"]]],["xpl-table.cjs",[[0,"xpl-table",{"columns":[16],"data":[16],"fixed":[4],"multiselect":[4],"striped":[4],"areAllSelected":[32],"selected":[32]}]]]], options);
19
+ });