@glycanage/web-components 0.0.0-development → 1.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.
@@ -0,0 +1 @@
1
+ import{P as p,c,S as h,i as $,f as g,s as w,e as i,t as f,a as o,b as m,d as u,g as v,n as l,h as x}from"./svelte.js";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(p);function _(n){let e,s,a;return{c(){e=i("div"),s=i("span"),a=f(n[0]),o(e,"background-color","#CBDBD1"),o(e,"width","100%"),o(e,"height","100%"),o(e,"border-radius","12px")},m(t,r){m(t,e,r),u(e,s),u(s,a)},p(t,[r]){r&1&&v(a,t[0])},i:l,o:l,d(t){t&&x(e)}}}function b(n,e,s){let{language:a}=e,{report:t}=e;return n.$$set=r=>{"language"in r&&s(1,a=r.language),"report"in r&&s(0,t=r.report)},[t,a]}class d extends h{constructor(e){super(),$(this,e,b,_,w,{language:1,report:0})}get language(){return this.$$.ctx[1]}set language(e){this.$$set({language:e}),g()}get report(){return this.$$.ctx[0]}set report(e){this.$$set({report:e}),g()}}customElements.define("ga-arthritis",c(d,{language:{},report:{}},[],[],!0));export{d as default};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const t=()=>{import("./overlap-list.wc.js"),import("./language.interface.js")};export{t as default};
1
+ const t=()=>{import("./arthritis.wc.js"),import("./language.interface.js")};export{t as default};
package/dist/init.js CHANGED
@@ -1 +1 @@
1
- function i(){}export{i as init};
1
+ class e{getReport(i){return Promise.resolve(!0)}}function n(){window.GaWebComponentService=new e}export{n as init};
package/dist/svelte.js CHANGED
@@ -1 +1 @@
1
- var q=Object.defineProperty,R=(t,n,e)=>n in t?q(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,a=(t,n,e)=>(R(t,typeof n!="symbol"?n+"":n,e),e);function b(){}function P(t){return t()}function C(){return Object.create(null)}function m(t){t.forEach(P)}function L(t){return typeof t=="function"}function z(t,n){return t!=t?n==n:t!==n||t&&typeof t=="object"||typeof t=="function"}function D(t){return Object.keys(t).length===0}function F(t,n){t.appendChild(n)}function S(t,n,e){t.insertBefore(n,e||null)}function _(t){t.parentNode&&t.parentNode.removeChild(t)}function G(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function B(t){return document.createElement(t)}function y(t){return document.createTextNode(t)}function I(){return y(" ")}function K(){return y("")}function M(t,n,e){e==null?t.removeAttribute(n):t.getAttribute(n)!==e&&t.setAttribute(n,e)}function Q(t){return Array.from(t.childNodes)}function U(t,n){n=""+n,t.data!==n&&(t.data=n)}function V(t){const n={};return t.childNodes.forEach(e=>{n[e.slot||"default"]=!0}),n}let v;function p(t){v=t}const l=[],T=[];let f=[];const H=[],W=Promise.resolve();let x=!1;function X(){x||(x=!0,W.then(w))}function E(t){f.push(t)}const k=new Set;let d=0;function w(){if(d!==0)return;const t=v;do{try{for(;d<l.length;){const n=l[d];d++,p(n),Y(n.$$)}}catch(n){throw l.length=0,d=0,n}for(p(null),l.length=0,d=0;T.length;)T.pop()();for(let n=0;n<f.length;n+=1){const e=f[n];k.has(e)||(k.add(e),e())}f.length=0}while(l.length);for(;H.length;)H.pop()();x=!1,k.clear(),p(t)}function Y(t){if(t.fragment!==null){t.update(),m(t.before_update);const n=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,n),t.after_update.forEach(E)}}function Z(t){const n=[],e=[];f.forEach(r=>t.indexOf(r)===-1?n.push(r):e.push(r)),e.forEach(r=>r()),f=n}const tt=new Set;function nt(t,n){t&&t.i&&(tt.delete(t),t.i(n))}function et(t){return t?.length!==void 0?t:Array.from(t)}function st(t,n,e){const{fragment:r,after_update:s}=t.$$;r&&r.m(n,e),E(()=>{const o=t.$$.on_mount.map(P).filter(L);t.$$.on_destroy?t.$$.on_destroy.push(...o):m(o),t.$$.on_mount=[]}),s.forEach(E)}function rt(t,n){const e=t.$$;e.fragment!==null&&(Z(e.after_update),m(e.on_destroy),e.fragment&&e.fragment.d(n),e.on_destroy=e.fragment=null,e.ctx=[])}function ot(t,n){t.$$.dirty[0]===-1&&(l.push(t),X(),t.$$.dirty.fill(0)),t.$$.dirty[n/31|0]|=1<<n%31}function it(t,n,e,r,s,o,c,$=[-1]){const u=v;p(t);const i=t.$$={fragment:null,ctx:[],props:o,update:b,not_equal:s,bound:C(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(u?u.$$.context:[])),callbacks:C(),dirty:$,skip_bound:!1,root:n.target||u.$$.root};c&&c(i.root);let A=!1;if(i.ctx=e?e(t,n.props||{},(h,O,...j)=>{const N=j.length?j[0]:O;return i.ctx&&s(i.ctx[h],i.ctx[h]=N)&&(!i.skip_bound&&i.bound[h]&&i.bound[h](N),A&&ot(t,h)),O}):[],i.update(),A=!0,m(i.before_update),i.fragment=r?r(i.ctx):!1,n.target){if(n.hydrate){const h=Q(n.target);i.fragment&&i.fragment.l(h),h.forEach(_)}else i.fragment&&i.fragment.c();n.intro&&nt(t.$$.fragment),st(t,n.target,n.anchor),w()}p(u)}let J;typeof HTMLElement=="function"&&(J=class extends HTMLElement{constructor(t,n,e){super(),a(this,"$$ctor"),a(this,"$$s"),a(this,"$$c"),a(this,"$$cn",!1),a(this,"$$d",{}),a(this,"$$r",!1),a(this,"$$p_d",{}),a(this,"$$l",{}),a(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=n,e&&this.attachShadow({mode:"open"})}addEventListener(t,n,e){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const r=this.$$c.$on(t,n);this.$$l_u.set(n,r)}super.addEventListener(t,n,e)}removeEventListener(t,n,e){if(super.removeEventListener(t,n,e),this.$$c){const r=this.$$l_u.get(n);r&&(r(),this.$$l_u.delete(n))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=B("slot"),s!=="default"&&M(o,"name",s)},m:function(c,$){S(c,o,$)},d:function(c){c&&_(o)}}}};if(await Promise.resolve(),!this.$$cn)return;const n={},e=V(this);for(const s of this.$$s)s in e&&(n[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=g(o,s.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:n,$$scope:{ctx:[]}}});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=g(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const o of this.$$l[s]){const c=this.$$c.$on(s,o);this.$$l_u.set(o,c)}this.$$l={}}}attributeChangedCallback(t,n,e){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=g(t,e,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function g(t,n,e,r){var s;const o=(s=e[t])==null?void 0:s.type;if(n=o==="Boolean"&&typeof n!="boolean"?n!=null:n,!r||!e[t])return n;if(r==="toAttribute")switch(o){case"Object":case"Array":return n==null?null:JSON.stringify(n);case"Boolean":return n?"":null;case"Number":return n??null;default:return n}else switch(o){case"Object":case"Array":return n&&JSON.parse(n);case"Boolean":return n;case"Number":return n!=null?+n:n;default:return n}}function $t(t,n,e,r,s,o){let c=class extends J{constructor(){super(t,e,s),this.$$p_d=n}static get observedAttributes(){return Object.keys(n).map($=>(n[$].attribute||$).toLowerCase())}};return Object.keys(n).forEach($=>{Object.defineProperty(c.prototype,$,{get(){return this.$$c&&$ in this.$$c?this.$$c[$]:this.$$d[$]},set(u){var i;u=g($,u,n),this.$$d[$]=u,(i=this.$$c)==null||i.$set({[$]:u})}})}),r.forEach($=>{Object.defineProperty(c.prototype,$,{get(){var u;return(u=this.$$c)==null?void 0:u[$]}})}),o&&(c=o(c)),t.element=c,c}class ct{constructor(){a(this,"$$"),a(this,"$$set")}$destroy(){rt(this,1),this.$destroy=b}$on(n,e){if(!L(e))return b;const r=this.$$.callbacks[n]||(this.$$.callbacks[n]=[]);return r.push(e),()=>{const s=r.indexOf(e);s!==-1&&r.splice(s,1)}}$set(n){this.$$set&&!D(n)&&(this.$$.skip_bound=!0,this.$$set(n),this.$$.skip_bound=!1)}}const ut="4";export{ut as P,ct as S,K as a,S as b,$t as c,_ as d,et as e,w as f,G as g,B as h,it as i,I as j,M as k,F as l,U as m,b as n,z as s,y as t};
1
+ var H=Object.defineProperty,J=(t,e,n)=>e in t?H(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,a=(t,e,n)=>(J(t,typeof e!="symbol"?e+"":e,n),n);function b(){}function P(t){return t()}function N(){return Object.create(null)}function m(t){t.forEach(P)}function C(t){return typeof t=="function"}function q(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function R(t){return Object.keys(t).length===0}function z(t,e){t.appendChild(e)}function L(t,e,n){t.insertBefore(e,n||null)}function y(t){t.parentNode&&t.parentNode.removeChild(t)}function S(t){return document.createElement(t)}function D(t){return document.createTextNode(t)}function F(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function G(t){return Array.from(t.childNodes)}function I(t,e){e=""+e,t.data!==e&&(t.data=e)}function K(t,e,n,r){n==null?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function Q(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let _;function p(t){_=t}const l=[],B=[];let f=[];const M=[],U=Promise.resolve();let v=!1;function V(){v||(v=!0,U.then(w))}function x(t){f.push(t)}const E=new Set;let d=0;function w(){if(d!==0)return;const t=_;do{try{for(;d<l.length;){const e=l[d];d++,p(e),W(e.$$)}}catch(e){throw l.length=0,d=0,e}for(p(null),l.length=0,d=0;B.length;)B.pop()();for(let e=0;e<f.length;e+=1){const n=f[e];E.has(n)||(E.add(n),n())}f.length=0}while(l.length);for(;M.length;)M.pop()();v=!1,E.clear(),p(t)}function W(t){if(t.fragment!==null){t.update(),m(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(x)}}function X(t){const e=[],n=[];f.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),f=e}const Y=new Set;function Z(t,e){t&&t.i&&(Y.delete(t),t.i(e))}function tt(t,e,n){const{fragment:r,after_update:s}=t.$$;r&&r.m(e,n),x(()=>{const o=t.$$.on_mount.map(P).filter(C);t.$$.on_destroy?t.$$.on_destroy.push(...o):m(o),t.$$.on_mount=[]}),s.forEach(x)}function et(t,e){const n=t.$$;n.fragment!==null&&(X(n.after_update),m(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function nt(t,e){t.$$.dirty[0]===-1&&(l.push(t),V(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function st(t,e,n,r,s,o,c,$=[-1]){const u=_;p(t);const i=t.$$={fragment:null,ctx:[],props:o,update:b,not_equal:s,bound:N(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(u?u.$$.context:[])),callbacks:N(),dirty:$,skip_bound:!1,root:e.target||u.$$.root};c&&c(i.root);let k=!1;if(i.ctx=n?n(t,e.props||{},(h,O,...j)=>{const A=j.length?j[0]:O;return i.ctx&&s(i.ctx[h],i.ctx[h]=A)&&(!i.skip_bound&&i.bound[h]&&i.bound[h](A),k&&nt(t,h)),O}):[],i.update(),k=!0,m(i.before_update),i.fragment=r?r(i.ctx):!1,e.target){if(e.hydrate){const h=G(e.target);i.fragment&&i.fragment.l(h),h.forEach(y)}else i.fragment&&i.fragment.c();e.intro&&Z(t.$$.fragment),tt(t,e.target,e.anchor),w()}p(u)}let T;typeof HTMLElement=="function"&&(T=class extends HTMLElement{constructor(t,e,n){super(),a(this,"$$ctor"),a(this,"$$s"),a(this,"$$c"),a(this,"$$cn",!1),a(this,"$$d",{}),a(this,"$$r",!1),a(this,"$$p_d",{}),a(this,"$$l",{}),a(this,"$$l_u",new Map),this.$$ctor=t,this.$$s=e,n&&this.attachShadow({mode:"open"})}addEventListener(t,e,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const r=this.$$c.$on(t,e);this.$$l_u.set(e,r)}super.addEventListener(t,e,n)}removeEventListener(t,e,n){if(super.removeEventListener(t,e,n),this.$$c){const r=this.$$l_u.get(e);r&&(r(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(s){return()=>{let o;return{c:function(){o=S("slot"),s!=="default"&&F(o,"name",s)},m:function(c,$){L(c,o,$)},d:function(c){c&&y(o)}}}};if(await Promise.resolve(),!this.$$cn)return;const e={},n=Q(this);for(const s of this.$$s)s in n&&(e[s]=[t(s)]);for(const s of this.attributes){const o=this.$$g_p(s.name);o in this.$$d||(this.$$d[o]=g(o,s.value,this.$$p_d,"toProp"))}this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const r=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const o=g(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const s in this.$$l)for(const o of this.$$l[s]){const c=this.$$c.$on(s,o);this.$$l_u.set(o,c)}this.$$l={}}}attributeChangedCallback(t,e,n){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=g(t,n,this.$$p_d,"toProp"),(r=this.$$c)==null||r.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{this.$$cn||(this.$$c.$destroy(),this.$$c=void 0)})}$$g_p(t){return Object.keys(this.$$p_d).find(e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t)||t}});function g(t,e,n,r){var s;const o=(s=n[t])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(o){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function rt(t,e,n,r,s,o){let c=class extends T{constructor(){super(t,n,s),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map($=>(e[$].attribute||$).toLowerCase())}};return Object.keys(e).forEach($=>{Object.defineProperty(c.prototype,$,{get(){return this.$$c&&$ in this.$$c?this.$$c[$]:this.$$d[$]},set(u){var i;u=g($,u,e),this.$$d[$]=u,(i=this.$$c)==null||i.$set({[$]:u})}})}),r.forEach($=>{Object.defineProperty(c.prototype,$,{get(){var u;return(u=this.$$c)==null?void 0:u[$]}})}),o&&(c=o(c)),t.element=c,c}class ot{constructor(){a(this,"$$"),a(this,"$$set")}$destroy(){et(this,1),this.$destroy=b}$on(e,n){if(!C(n))return b;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const s=r.indexOf(n);s!==-1&&r.splice(s,1)}}$set(e){this.$$set&&!R(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const it="4";export{it as P,ot as S,K as a,L as b,rt as c,z as d,S as e,w as f,I as g,y as h,st as i,b as n,q as s,D as t};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@glycanage/web-components",
3
3
  "description": "A collection of web-components",
4
- "version": "0.0.0-development",
4
+ "version": "1.0.0",
5
5
  "type": "module",
6
6
  "main": "dist/lib/@glycanage/web-components.js",
7
7
  "scripts": {
@@ -46,7 +46,7 @@
46
46
  ],
47
47
  "repository": {
48
48
  "type": "git",
49
- "url": "https://github.com/glycanage/web-components.git"
49
+ "url": "https://github.com/GlycanAge/ga-components.git"
50
50
  },
51
51
  "release": {
52
52
  "branches": [
@@ -1 +0,0 @@
1
- import{P as y,c as E,S as N,i as P,f as d,s as q,e as h,a as B,b as v,n as m,d as $,g as C,h as u,t as w,j as b,k as _,l as p,m as x}from"./svelte.js";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(y);function S(l,a,r){const t=l.slice();return t[3]=a[r],t}function j(l){let a,r,t=l[0][l[3].label]+"",n,s,e,g=l[0][l[3].overlap]+"",c,f;return{c(){a=u("div"),r=u("span"),n=w(t),s=b(),e=u("span"),c=w(g),f=b(),_(r,"class","label"),_(e,"class","overlap overlap-"+l[3].overlap)},m(o,i){v(o,a,i),p(a,r),p(r,n),p(a,s),p(a,e),p(e,c),p(a,f)},p(o,i){i&1&&t!==(t=o[0][o[3].label]+"")&&x(n,t),i&1&&g!==(g=o[0][o[3].overlap]+"")&&x(c,g)},d(o){o&&$(a)}}}function I(l){let a,r=h(l[1]),t=[];for(let n=0;n<r.length;n+=1)t[n]=j(S(l,r,n));return{c(){for(let n=0;n<t.length;n+=1)t[n].c();a=B()},m(n,s){for(let e=0;e<t.length;e+=1)t[e]&&t[e].m(n,s);v(n,a,s)},p(n,[s]){if(s&3){r=h(n[1]);let e;for(e=0;e<r.length;e+=1){const g=S(n,r,e);t[e]?t[e].p(g,s):(t[e]=j(g),t[e].c(),t[e].m(a.parentNode,a))}for(;e<t.length;e+=1)t[e].d(1);t.length=r.length}},i:m,o:m,d(n){n&&$(a),C(t,n)}}}function L(l,a,r){let{language:t}=a,{report:n}=a;const s=[];return l.$$set=e=>{"language"in e&&r(0,t=e.language),"report"in e&&r(2,n=e.report)},[t,s,n]}class k extends N{constructor(a){super(),P(this,a,L,I,q,{language:0,report:2})}get language(){return this.$$.ctx[0]}set language(a){this.$$set({language:a}),d()}get report(){return this.$$.ctx[2]}set report(a){this.$$set({report:a}),d()}}customElements.define("ga-overlap-list",E(k,{language:{},report:{}},[],[],!0));export{k as default};