@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.
- package/dist/arthritis.wc.js +1 -0
- package/dist/index.js +1 -1
- package/dist/init.js +1 -1
- package/dist/svelte.js +1 -1
- package/package.json +2 -2
- package/dist/overlap-list.wc.js +0 -1
|
@@ -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("./
|
|
1
|
+
const t=()=>{import("./arthritis.wc.js"),import("./language.interface.js")};export{t as default};
|
package/dist/init.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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
|
|
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": "
|
|
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/
|
|
49
|
+
"url": "https://github.com/GlycanAge/ga-components.git"
|
|
50
50
|
},
|
|
51
51
|
"release": {
|
|
52
52
|
"branches": [
|
package/dist/overlap-list.wc.js
DELETED
|
@@ -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};
|