@xplortech/apollo-data 0.0.3-draft.64d0fa1
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/LICENSE +21 -0
- package/README.md +112 -0
- package/dist/apollo-data/apollo-data.esm.js +1 -0
- package/dist/apollo-data/index.esm.js +1 -0
- package/dist/apollo-data/p-Bb2nY-Tf.js +2 -0
- package/dist/apollo-data/p-DQuL1Twl.js +1 -0
- package/dist/apollo-data/p-e6584598.entry.js +11 -0
- package/dist/cjs/apollo-data-bar-chart_2.cjs.entry.js +68368 -0
- package/dist/cjs/apollo-data.cjs.js +25 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/index-Cl7HgRm0.js +1198 -0
- package/dist/cjs/index.cjs.js +7 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/collection/apollo-data-base.js +38 -0
- package/dist/collection/collection-manifest.json +13 -0
- package/dist/collection/components/apollo-data-bar/apollo-data-bar.js +367 -0
- package/dist/collection/components/apollo-data-donut/apollo-data-donut.js +479 -0
- package/dist/collection/examples/apollo-data-bar.examples.js +160 -0
- package/dist/collection/examples/apollo-data-donut.examples.js +100 -0
- package/dist/collection/examples/index.js +2 -0
- package/dist/collection/index.js +10 -0
- package/dist/collection/utils/code-generator.js +240 -0
- package/dist/collection/utils/constants.js +2 -0
- package/dist/collection/utils/utils.js +3 -0
- package/dist/components/apollo-data-bar-chart.d.ts +11 -0
- package/dist/components/apollo-data-bar-chart.js +1 -0
- package/dist/components/apollo-data-donut-chart.d.ts +11 -0
- package/dist/components/apollo-data-donut-chart.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-7XF5Cax8.js +11 -0
- package/dist/components/p-Dws5s-Xe.js +1 -0
- package/dist/esm/apollo-data-bar-chart_2.entry.js +68365 -0
- package/dist/esm/apollo-data.js +21 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/index-Bb2nY-Tf.js +1190 -0
- package/dist/esm/index.js +5 -0
- package/dist/esm/loader.js +11 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/apollo-data-base.d.ts +7 -0
- package/dist/types/components/apollo-data-bar/apollo-data-bar.d.ts +298 -0
- package/dist/types/components/apollo-data-donut/apollo-data-donut.d.ts +533 -0
- package/dist/types/components.d.ts +102 -0
- package/dist/types/examples/apollo-data-bar.examples.d.ts +12 -0
- package/dist/types/examples/apollo-data-donut.examples.d.ts +11 -0
- package/dist/types/examples/index.d.ts +2 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/stencil-public-runtime.d.ts +1839 -0
- package/dist/types/utils/code-generator.d.ts +12 -0
- package/dist/types/utils/constants.d.ts +2 -0
- package/dist/types/utils/utils.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +92 -0
- package/src/examples/apollo-data-bar.examples.ts +172 -0
- package/src/examples/apollo-data-donut.examples.ts +118 -0
- package/src/examples/index.ts +2 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t,e=(t,e)=>{var n;Object.entries(null!=(n=e.o.t)?n:{}).map((([n,[o]])=>{if(31&o||32&o){const o=t[n],l=function(t,e){for(;t;){const n=Object.getOwnPropertyDescriptor(t,e);if(null==n?void 0:n.get)return n;t=Object.getPrototypeOf(t)}}(Object.getPrototypeOf(t),n)||Object.getOwnPropertyDescriptor(t,n);l&&Object.defineProperty(t,n,{get(){return l.get.call(this)},set(t){l.set.call(this,t)},configurable:!0,enumerable:!0}),t[n]=e.l.has(n)?e.l.get(n):o}}))},n=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>(0,console.error)(t,e),l="undefined"!=typeof window?window:{},s=l.HTMLElement||class{},r={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},i=!!(()=>{try{return!!l.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})()&&(()=>!!l.document&&Object.getOwnPropertyDescriptor(l.document.adoptedStyleSheets,"length").writable)(),c=!1,u=[],a=[],f=(t,e)=>n=>{t.push(n),c||(c=!0,e&&4&r.i?m(h):r.raf(h))},d=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},h=()=>{d(u),d(a),(c=u.length>0)&&r.raf(h)},m=t=>Promise.resolve(undefined).then(t),p=f(a,!0),b=t=>{const e=new URL(t,r.u);return e.origin!==l.location.origin?e.href:e.pathname},$=t=>r.u=t;function v(){const e=this.attachShadow({mode:"open"});void 0===t&&(t=null),t&&(i?e.adoptedStyleSheets.push(t):e.adoptedStyleSheets=[...e.adoptedStyleSheets,t])}var y,w=new WeakMap,j=t=>"object"==(t=typeof t)||"function"===t,O=(t,e,...n)=>{let o=null,l=null,s=!1,r=!1;const i=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!j(o))&&(o=String(o)),s&&r?i[i.length-1].h+=o:i.push(s?g(null,o):o),r=s)};c(n),e&&e.key&&(l=e.key);const u=g(t,null);return u.m=e,i.length>0&&(u.p=i),u.$=l,u},g=(t,e)=>({i:0,v:t,h:null!=e?e:null,j:null,p:null,m:null,$:null}),S={},k=(t,e)=>null==t||j(t)?t:1&e?String(t):t,M=(t,e,n,o,l,s)=>{if(n===o)return;let r=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else{const i=j(o);if(r||i&&null!==o)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||l)&&!i&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}},E=(t,e,n)=>{const o=11===e.j.nodeType&&e.j.host?e.j.host:e.j,l=t&&t.m||{},s=e.m||{};for(const t of C(Object.keys(l)))t in s||M(o,t,l[t],void 0,n,e.i);for(const t of C(Object.keys(s)))M(o,t,l[t],s[t],n,e.i)};function C(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var _=!1,x=(t,e,n)=>{const o=e.p[n];let s,r,i=0;if(!l.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(s=o.j=l.document.createElement(o.v),E(null,o,_),o.p){const e="template"===o.v?s.content:s;for(i=0;i<o.p.length;++i)r=x(t,o,i),r&&e.appendChild(r)}return s["s-hn"]=y,s},P=(t,e,n,o,l,s)=>{let r,i=t;for(i.shadowRoot&&i.tagName===y&&(i=i.shadowRoot),"template"===n.v&&(i=i.content);l<=s;++l)o[l]&&(r=x(null,n,l),r&&(o[l].j=r,L(i,r,e)))},U=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.j;t&&t.remove()}}},A=(t,e,n=!1)=>t.v===e.v&&(n?(n&&!t.$&&e.$&&(t.$=e.$),!0):t.$===e.$),D=(t,e,n=!1)=>{const o=e.j=t.j,l=t.p,s=e.p;E(t,e,_),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,r,i=0,c=0,u=0,a=0,f=e.length-1,d=e[0],h=e[f],m=o.length-1,p=o[0],b=o[m];const $="template"===n.v?t.content:t;for(;i<=f&&c<=m;)if(null==d)d=e[++i];else if(null==h)h=e[--f];else if(null==p)p=o[++c];else if(null==b)b=o[--m];else if(A(d,p,l))D(d,p,l),d=e[++i],p=o[++c];else if(A(h,b,l))D(h,b,l),h=e[--f],b=o[--m];else if(A(d,b,l))D(d,b,l),L($,d.j,h.j.nextSibling),d=e[++i],b=o[--m];else if(A(h,p,l))D(h,p,l),L($,h.j,d.j),h=e[--f],p=o[++c];else{for(u=-1,a=i;a<=f;++a)if(e[a]&&null!==e[a].$&&e[a].$===p.$){u=a;break}u>=0?(r=e[u],r.v!==p.v?s=x(e&&e[c],n,u):(D(r,p,l),e[u]=void 0,s=r.j),p=o[++c]):(s=x(e&&e[c],n,c),p=o[++c]),s&&L(d.j.parentNode,s,d.j)}i>f?P(t,null==o[m+1]?null:o[m+1].j,n,o,c,m):c>m&&U(e,i,f)})(o,l,e,s,n):null!==s?P(o,null,e,s,0,s.length-1):!n&&null!==l&&U(l,0,l.length-1)},L=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),R=(t,e,n=!1)=>{const o=t.$hostElement$,l=t.O||g(null,null);var s;const r=(s=e)&&s.v===S?e:O(null,null,e);if(y=o.tagName,n&&r.m)for(const t of Object.keys(r.m))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.m[t]=o[t]);r.v=null,r.i|=4,t.O=r,r.j=l.j=o.shadowRoot||o,D(l,r,n)},W=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},H=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);W(t,t.k);const n=()=>N(t,e);if(!e)return p(n);queueMicrotask((()=>{n()}))},N=(t,e)=>{const n=t.$hostElement$,o=n;if(!o)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=G(o,e?"componentWillLoad":"componentWillUpdate",void 0,n),l=q(l,(()=>G(o,"componentWillRender",void 0,n))),q(l,(()=>V(t,o,e)))},q=(t,e)=>F(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),F=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,V=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];z(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>Y(t);0===e.length?n():(Promise.all(e).then(n),t.i|=4,e.length=0)}},z=(t,e,n,l)=>{try{e=e.render(),t.i&=-17,t.i|=2,R(t,e,l)}catch(e){o(e,t.$hostElement$)}return null},Y=t=>{const e=t.$hostElement$,n=e,o=t.k;G(n,"componentDidRender",void 0,e),64&t.i?G(n,"componentDidUpdate",void 0,e):(t.i|=64,I(e),G(n,"componentDidLoad",void 0,e),t.M(e),o||B()),t.S&&(t.S(),t.S=void 0),512&t.i&&m((()=>H(t,!1))),t.i&=-517},B=()=>{m((()=>(t=>{const e=r.ce("appload",{detail:{namespace:"apollo-data"}});return t.dispatchEvent(e),e})(l)))},G=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){o(t,l)}},I=t=>t.classList.add("hydrated"),J=(t,e,o,l)=>{const s=n(t);if(!s)return;const r=t,i=s.l.get(e),c=s.i,u=r;o=k(o,l.t[e][0]);const a=Number.isNaN(i)&&Number.isNaN(o);if(o!==i&&!a&&(s.l.set(e,o),2==(18&c))){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(o,i,e))return;H(s,!1)}},K=(t,e)=>{var o,l;const s=t.prototype;if(e.t){const i=Object.entries(null!=(o=e.t)?o:{});i.map((([t,[o]])=>{if(31&o||32&o){const{get:l,set:r}=Object.getOwnPropertyDescriptor(s,t)||{};l&&(e.t[t][0]|=2048),r&&(e.t[t][0]|=4096),Object.defineProperty(s,t,{get(){return l?l.apply(this):(e=t,n(this).l.get(e));var e},configurable:!0,enumerable:!0}),Object.defineProperty(s,t,{set(l){const s=n(this);if(s){if(r)return void 0===(32&o?this[t]:s.$hostElement$[t])&&s.l.get(t)&&(l=s.l.get(t)),r.apply(this,[k(l,o)]),void J(this,t,l=32&o?this[t]:s.$hostElement$[t],e);J(this,t,l,e)}}})}}));{const o=new Map;s.attributeChangedCallback=function(t,l,c){r.jmp((()=>{var r;const u=o.get(t),a=n(this);if(this.hasOwnProperty(u),s.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==c)return;if(null==u){const n=null==a?void 0:a.i;if(a&&n&&!(8&n)&&c!==l){const o=this,s=null==(r=e.C)?void 0:r[t];null==s||s.forEach((e=>{const[[s,r]]=Object.entries(e);null!=o[s]&&(128&n||1&r)&&o[s].call(o,c,l,t)}))}return}const f=i.find((([t])=>t===u));f&&4&f[1][0]&&(c=null!==c&&"false"!==c);const d=Object.getOwnPropertyDescriptor(s,u);c==this[u]||d.get&&!d.set||(this[u]=c)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(l=e.C)?l:{}),...i.filter((([t,e])=>31&e[0])).map((([t,e])=>{const n=e[1]||t;return o.set(n,t),n}))]))}}return t},Q=(t,o)=>{const l={i:o[0],_:o[1]};l.t=o[2];const s=t.prototype.connectedCallback,i=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,n)=>{const o={i:0,$hostElement$:t,o:n,l:new Map,P:new Map};o.U=new Promise((t=>o.M=t)),t["s-p"]=[],t["s-rc"]=[];const l=o;t.__stencil__getHostRef=()=>l,512&n.i&&e(t,o)})(this,l)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!n(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&r.i)){const e=n(t);if(!e)return;const o=e.o,l=()=>{};if(1&e.i)(null==e?void 0:e.A)||(null==e?void 0:e.U)&&e.U.then((()=>{}));else{e.i|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){W(e,e.k=n);break}}o.t&&Object.entries(o.t).map((([e,[n]])=>{if(31&n&&e in t&&t[e]!==Object.prototype[e]){const n=t[e];delete t[e],t[e]=n}})),(async(t,e)=>{32&e.i||(e.i|=32,customElements.whenDefined(t.localName).then((()=>e.i|=128)));const n=e.k,o=()=>H(e,!0);n&&n["s-rc"]?n["s-rc"].push(o):o()})(t,e)}l()}})(this),s&&s.call(this)},disconnectedCallback(){(async t=>{1&r.i||n(t),w.has(t)&&w.delete(t),t.shadowRoot&&w.has(t.shadowRoot)&&w.delete(t.shadowRoot)})(this),i&&i.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${l._}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else v.call(this,l)}}),t.is=l._,K(t,l)},T=t=>r.D=t,X=t=>Object.assign(r,t);function Z(t,e){R({$hostElement$:e},t)}function tt(t){return t}export{S as H,T as a,X as b,s as c,b as g,O as h,Q as p,Z as r,$ as s,tt as t}
|