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