@htmlbricks/hb-vertical-img-txt-archive 0.20.18 → 0.50.0-alpha.10
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/main.iife.js +2 -0
- package/{release/manifest.json → manifest.json} +3 -4
- package/package.json +15 -81
- package/types/webcomponent.type.d.json +78 -0
- package/types/webcomponent_events.type.d.json +27 -0
- package/LICENSE.md +0 -68
- package/README.md +0 -1
- package/extra/docs.ts +0 -187
- package/release/docs.js +0 -179
- package/release/docs.js.map +0 -1
- package/release/docs.ts +0 -187
- package/release/release.js +0 -2
- package/release/release.js.map +0 -1
- /package/{release → types}/webcomponent.type.d.ts +0 -0
package/main.iife.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var Kn=Object.defineProperty;var yr=T=>{throw TypeError(T)};var Jn=(T,A,x)=>A in T?Kn(T,A,{enumerable:!0,configurable:!0,writable:!0,value:x}):T[A]=x;var U=(T,A,x)=>Jn(T,typeof A!="symbol"?A+"":A,x),Er=(T,A,x)=>A.has(T)||yr("Cannot "+x);var D=(T,A,x)=>(Er(T,A,"read from private field"),x?x.call(T):A.get(T)),Et=(T,A,x)=>A.has(T)?yr("Cannot add the same private member more than once"):A instanceof WeakSet?A.add(T):A.set(T,x),bt=(T,A,x,Ce)=>(Er(T,A,"write to private field"),Ce?Ce.call(T,x):A.set(T,x),x);(function(T){"use strict";var ne,H;const A="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(A);const x=1,Ce=2,br=16,Tr=2,Tt="[",et="[!",tt="]",Te={},I=Symbol(),rt=!1,Y=2,Rt=4,ke=8,nt=16,J=32,ve=64,Ie=128,F=256,Pe=512,S=1024,Z=2048,_e=4096,Q=8192,De=16384,Rr=32768,it=65536,Ar=1<<19,At=1<<20,lt=Symbol("$state"),Or=Symbol("legacy props"),Nr=Symbol("");var st=Array.isArray,xr=Array.prototype.indexOf,ut=Array.from,Le=Object.keys,Me=Object.defineProperty,de=Object.getOwnPropertyDescriptor,Sr=Object.getOwnPropertyDescriptors,Cr=Object.prototype,kr=Array.prototype,Ot=Object.getPrototypeOf;function Ir(e){for(var t=0;t<e.length;t++)e[t]()}let qe=!1,at=[];function Nt(){qe=!1;const e=at.slice();at=[],Ir(e)}function Pr(e){qe||(qe=!0,queueMicrotask(Nt)),at.push(e)}function Dr(){qe&&Nt()}function xt(e){return e===this.v}function Lr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function St(e){return!Lr(e,this.v)}function Mr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function qr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Fr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function jr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Hr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Br(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Vr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Gr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Ur=!1;function j(e,t){var r={f:0,v:e,reactions:null,equals:xt,rv:0,wv:0};return r}function ft(e){return zr(j(e))}function ot(e,t=!1){const r=j(e);return t||(r.equals=St),r}function zr(e){return w!==null&&!W&&w.f&Y&&(X===null?Qr([e]):X.push(e)),e}function C(e,t){return w!==null&&!W&&ur()&&w.f&(Y|nt)&&(X===null||!X.includes(e))&&Gr(),Ct(e,t)}function Ct(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=Ut(),kt(e,Z),m!==null&&m.f&S&&!(m.f&(J|ve))&&(te===null?en([e]):te.push(e))),t}function kt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,i=0;i<n;i++){var l=r[i],s=l.f;s&Z||(K(l,t),s&(S|F)&&(s&Y?kt(l,_e):Ge(l)))}}function ct(e){var t=Y|Z,r=w!==null&&w.f&Y?w:null;return m===null||r!==null&&r.f&F?t|=F:m.f|=At,{ctx:M,deps:null,effects:null,equals:xt,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:r??m}}function Wr(e){const t=ct(e);return t.equals=St,t}function It(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)re(t[r])}}function Xr(e){for(var t=e.parent;t!==null;){if(!(t.f&Y))return t;t=t.parent}return null}function Kr(e){var t,r=m;se(Xr(e));try{It(e),t=Wt(e)}finally{se(r)}return t}function Pt(e){var t=Kr(e),r=(ue||e.f&F)&&e.deps!==null?_e:S;K(e,r),e.equals(t)||(e.v=t,e.wv=Ut())}function vt(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let R=!1;function ee(e){R=e}let b;function B(e){if(e===null)throw vt(),Te;return b=e}function Fe(){return B(ie(b))}function he(e){if(R){if(ie(b)!==null)throw vt(),Te;b=e}}function _t(){for(var e=0,t=b;;){if(t.nodeType===8){var r=t.data;if(r===tt){if(e===0)return t;e-=1}else(r===Tt||r===et)&&(e+=1)}var n=ie(t);t.remove(),t=n}}function z(e,t=null,r){if(typeof e!="object"||e===null||lt in e)return e;const n=Ot(e);if(n!==Cr&&n!==kr)return e;var i=new Map,l=st(e),s=j(0);l&&i.set("length",j(e.length));var o;return new Proxy(e,{defineProperty(c,f,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&Yr();var v=i.get(f);return v===void 0?(v=j(a.value),i.set(f,v)):C(v,z(a.value,o)),!0},deleteProperty(c,f){var a=i.get(f);if(a===void 0)f in c&&i.set(f,j(I));else{if(l&&typeof f=="string"){var v=i.get("length"),u=Number(f);Number.isInteger(u)&&u<v.v&&C(v,u)}C(a,I),Dt(s)}return!0},get(c,f,a){var d;if(f===lt)return e;var v=i.get(f),u=f in c;if(v===void 0&&(!u||(d=de(c,f))!=null&&d.writable)&&(v=j(z(u?c[f]:I,o)),i.set(f,v)),v!==void 0){var _=O(v);return _===I?void 0:_}return Reflect.get(c,f,a)},getOwnPropertyDescriptor(c,f){var a=Reflect.getOwnPropertyDescriptor(c,f);if(a&&"value"in a){var v=i.get(f);v&&(a.value=O(v))}else if(a===void 0){var u=i.get(f),_=u==null?void 0:u.v;if(u!==void 0&&_!==I)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return a},has(c,f){var _;if(f===lt)return!0;var a=i.get(f),v=a!==void 0&&a.v!==I||Reflect.has(c,f);if(a!==void 0||m!==null&&(!v||(_=de(c,f))!=null&&_.writable)){a===void 0&&(a=j(v?z(c[f],o):I),i.set(f,a));var u=O(a);if(u===I)return!1}return v},set(c,f,a,v){var N;var u=i.get(f),_=f in c;if(l&&f==="length")for(var d=a;d<u.v;d+=1){var h=i.get(d+"");h!==void 0?C(h,I):d in c&&(h=j(I),i.set(d+"",h))}u===void 0?(!_||(N=de(c,f))!=null&&N.writable)&&(u=j(void 0),C(u,z(a,o)),i.set(f,u)):(_=u.v!==I,C(u,z(a,o)));var E=Reflect.getOwnPropertyDescriptor(c,f);if(E!=null&&E.set&&E.set.call(v,a),!_){if(l&&typeof f=="string"){var p=i.get("length"),g=Number(f);Number.isInteger(g)&&g>=p.v&&C(p,g+1)}Dt(s)}return!0},ownKeys(c){O(s);var f=Reflect.ownKeys(c).filter(u=>{var _=i.get(u);return _===void 0||_.v!==I});for(var[a,v]of i)v.v!==I&&!(a in c)&&f.push(a);return f},setPrototypeOf(){Br()}})}function Dt(e,t=1){C(e,e.v+t)}var Lt,Mt,qt,Ft;function dt(){if(Lt===void 0){Lt=window,Mt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype;qt=de(t,"firstChild").get,Ft=de(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function pe(e=""){return document.createTextNode(e)}function $e(e){return qt.call(e)}function ie(e){return Ft.call(e)}function Re(e,t){if(!R)return $e(e);var r=$e(b);if(r===null)r=b.appendChild(pe());else if(t&&r.nodeType!==3){var n=pe();return r==null||r.before(n),B(n),n}return B(r),r}function Jr(e,t){if(!R){var r=$e(e);return r instanceof Comment&&r.data===""?ie(r):r}return b}function jt(e,t=1,r=!1){let n=R?b:e;for(var i;t--;)i=n,n=ie(n);if(!R)return n;var l=n==null?void 0:n.nodeType;if(r&&l!==3){var s=pe();return n===null?i==null||i.after(s):n.before(s),B(s),s}return B(n),n}function Ht(e){e.textContent=""}const Yt=0,Zr=1;let je=!1,He=Yt,Ae=!1,Oe=null,ge=!1,ht=!1;function Bt(e){ge=e}function Vt(e){ht=e}let oe=[],me=0,Zn=[],w=null,W=!1;function le(e){w=e}let m=null;function se(e){m=e}let X=null;function Qr(e){X=e}let k=null,L=0,te=null;function en(e){te=e}let Gt=1,Ye=0,ue=!1;function Ut(){return++Gt}function Ne(e){var v;var t=e.f;if(t&Z)return!0;if(t&_e){var r=e.deps,n=(t&F)!==0;if(r!==null){var i,l,s=(t&Pe)!==0,o=n&&m!==null&&!ue,c=r.length;if(s||o){var f=e,a=f.parent;for(i=0;i<c;i++)l=r[i],(s||!((v=l==null?void 0:l.reactions)!=null&&v.includes(f)))&&(l.reactions??(l.reactions=[])).push(f);s&&(f.f^=Pe),o&&a!==null&&!(a.f&F)&&(f.f^=F)}for(i=0;i<c;i++)if(l=r[i],Ne(l)&&Pt(l),l.wv>e.wv)return!0}(!n||m!==null&&!ue)&&K(e,S)}return!1}function tn(e,t){for(var r=t;r!==null;){if(r.f&Ie)try{r.fn(e);return}catch{r.f^=Ie}r=r.parent}throw je=!1,e}function rn(e){return(e.f&De)===0&&(e.parent===null||(e.parent.f&Ie)===0)}function Be(e,t,r,n){if(je){if(r===null&&(je=!1),rn(t))throw e;return}r!==null&&(je=!0);{tn(e,t);return}}function zt(e,t,r=!0){var n=e.reactions;if(n!==null)for(var i=0;i<n.length;i++){var l=n[i];l.f&Y?zt(l,t,!1):t===l&&(r?K(l,Z):l.f&S&&K(l,_e),Ge(l))}}function Wt(e){var _;var t=k,r=L,n=te,i=w,l=ue,s=X,o=M,c=W,f=e.f;k=null,L=0,te=null,w=f&(J|ve)?null:e,ue=(f&F)!==0&&(!ge||i===null||c),X=null,ir(e.ctx),W=!1,Ye++;try{var a=(0,e.fn)(),v=e.deps;if(k!==null){var u;if(Ve(e,L),v!==null&&L>0)for(v.length=L+k.length,u=0;u<k.length;u++)v[L+u]=k[u];else e.deps=v=k;if(!ue)for(u=L;u<v.length;u++)((_=v[u]).reactions??(_.reactions=[])).push(e)}else v!==null&&L<v.length&&(Ve(e,L),v.length=L);if(ur()&&te!==null&&!W&&v!==null&&!(e.f&(Y|_e|Z)))for(u=0;u<te.length;u++)zt(te[u],e);return i!==null&&Ye++,a}finally{k=t,L=r,te=n,w=i,ue=l,X=s,ir(o),W=c}}function nn(e,t){let r=t.reactions;if(r!==null){var n=xr.call(r,e);if(n!==-1){var i=r.length-1;i===0?r=t.reactions=null:(r[n]=r[i],r.pop())}}r===null&&t.f&Y&&(k===null||!k.includes(t))&&(K(t,_e),t.f&(F|Pe)||(t.f^=Pe),It(t),Ve(t,0))}function Ve(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)nn(e,r[n])}function pt(e){var t=e.f;if(!(t&De)){K(e,S);var r=m,n=M;m=e;try{t&nt?$n(e):er(e),Qt(e);var i=Wt(e);e.teardown=typeof i=="function"?i:null,e.wv=Gt;var l=e.deps,s;rt&&Ur&&e.f&Z}catch(o){Be(o,e,r,n||e.ctx)}finally{m=r}}}function Xt(){if(me>1e3){me=0;try{jr()}catch(e){if(Oe!==null)Be(e,Oe,null);else throw e}}me++}function Kt(e){var t=e.length;if(t!==0){Xt();var r=ge;ge=!0;try{for(var n=0;n<t;n++){var i=e[n];i.f&S||(i.f^=S);var l=un(i);ln(l)}}finally{ge=r}}}function ln(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var n=e[r];if(!(n.f&(De|Q)))try{Ne(n)&&(pt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?tr(n):n.fn=null))}catch(i){Be(i,n,null,n.ctx)}}}function sn(){if(Ae=!1,me>1001)return;const e=oe;oe=[],Kt(e),Ae||(me=0,Oe=null)}function Ge(e){He===Yt&&(Ae||(Ae=!0,queueMicrotask(sn))),Oe=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(ve|J)){if(!(r&S))return;t.f^=S}}oe.push(t)}function un(e){var t=[],r=e.first;e:for(;r!==null;){var n=r.f,i=(n&J)!==0,l=i&&(n&S)!==0,s=r.next;if(!l&&!(n&Q)){if(n&Rt)t.push(r);else if(i)r.f^=S;else{var o=w;try{w=r,Ne(r)&&pt(r)}catch(a){Be(a,r,null,r.ctx)}finally{w=o}}var c=r.first;if(c!==null){r=c;continue}}if(s===null){let a=r.parent;for(;a!==null;){if(e===a)break e;var f=a.next;if(f!==null){r=f;continue e}a=a.parent}}r=s}return t}function we(e){var t=He,r=oe;try{Xt();const i=[];He=Zr,oe=i,Ae=!1,Kt(r);var n=e==null?void 0:e();return Dr(),(oe.length>0||i.length>0)&&we(),me=0,Oe=null,n}finally{He=t,oe=r}}function O(e){var t=e.f,r=(t&Y)!==0;if(w!==null&&!W){X!==null&&X.includes(e)&&Vr();var n=w.deps;e.rv<Ye&&(e.rv=Ye,k===null&&n!==null&&n[L]===e?L++:k===null?k=[e]:(!ue||!k.includes(e))&&k.push(e))}else if(r&&e.deps===null&&e.effects===null){var i=e,l=i.parent;l!==null&&!(l.f&F)&&(i.f^=F)}return r&&(i=e,Ne(i)&&Pt(i)),e.v}function an(e){var t=W;try{return W=!0,e()}finally{W=t}}const fn=-7169;function K(e,t){e.f=e.f&fn|t}function on(e){m===null&&w===null&&Fr(),w!==null&&w.f&F&&m===null&&qr(),ht&&Mr()}function cn(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ce(e,t,r,n=!0){var i=(e&ve)!==0,l=m,s={ctx:M,deps:null,nodes_start:null,nodes_end:null,f:e|Z,first:null,fn:t,last:null,next:null,parent:i?null:l,prev:null,teardown:null,transitions:null,wv:0};if(r){var o=ge;try{Bt(!0),pt(s),s.f|=Rr}catch(a){throw re(s),a}finally{Bt(o)}}else t!==null&&Ge(s);var c=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&(At|Ie))===0;if(!c&&!i&&n&&(l!==null&&cn(s,l),w!==null&&w.f&Y)){var f=w;(f.effects??(f.effects=[])).push(s)}return s}function vn(e){const t=ce(ke,null,!1);return K(t,S),t.teardown=e,t}function _n(e){on();var t=m!==null&&(m.f&J)!==0&&M!==null&&!M.m;if(t){var r=M;(r.e??(r.e=[])).push({fn:e,effect:m,reaction:w})}else{var n=Jt(e);return n}}function dn(e){const t=ce(ve,e,!0);return()=>{re(t)}}function hn(e){const t=ce(ve,e,!0);return(r={})=>new Promise(n=>{r.outro?Ue(t,()=>{re(t),n(void 0)}):(re(t),n(void 0))})}function Jt(e){return ce(Rt,e,!1)}function pn(e){return ce(ke,e,!0)}function Zt(e,t=[],r=ct){const n=t.map(r);return $t(()=>e(...n.map(O)))}function $t(e,t=0){return ce(ke|nt|t,e,!0)}function xe(e,t=!0){return ce(ke|J,e,!0,t)}function Qt(e){var t=e.teardown;if(t!==null){const r=ht,n=w;Vt(!0),le(null);try{t.call(null)}finally{Vt(r),le(n)}}}function er(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var n=r.next;re(r,t),r=n}}function $n(e){for(var t=e.first;t!==null;){var r=t.next;t.f&J||re(t),t=r}}function re(e,t=!0){var r=!1;if((t||e.f&Ar)&&e.nodes_start!==null){for(var n=e.nodes_start,i=e.nodes_end;n!==null;){var l=n===i?null:ie(n);n.remove(),n=l}r=!0}er(e,t&&!r),Ve(e,0),K(e,De);var s=e.transitions;if(s!==null)for(const c of s)c.stop();Qt(e);var o=e.parent;o!==null&&o.first!==null&&tr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function tr(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ue(e,t){var r=[];gt(e,r,!0),rr(r,()=>{re(e),t&&t()})}function rr(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var i of e)i.out(n)}else t()}function gt(e,t,r){if(!(e.f&Q)){if(e.f^=Q,e.transitions!==null)for(const s of e.transitions)(s.is_global||r)&&t.push(s);for(var n=e.first;n!==null;){var i=n.next,l=(n.f&it)!==0||(n.f&J)!==0;gt(n,t,l?r:!1),n=i}}}function ze(e){nr(e,!0)}function nr(e,t){if(e.f&Q){e.f^=Q,e.f&S||(e.f^=S),Ne(e)&&(K(e,Z),Ge(e));for(var r=e.first;r!==null;){var n=r.next,i=(r.f&it)!==0||(r.f&J)!==0;nr(r,i?t:!1),r=n}if(e.transitions!==null)for(const l of e.transitions)(l.is_global||t)&&l.in()}}let M=null;function ir(e){M=e}function lr(e,t=!1,r){M={p:M,c:null,e:null,m:!1,s:e,x:null,l:null}}function sr(e){const t=M;if(t!==null){e!==void 0&&(t.x=e);const s=t.e;if(s!==null){var r=m,n=w;t.e=null;try{for(var i=0;i<s.length;i++){var l=s[i];se(l.effect),le(l.reaction),Jt(l.fn)}}finally{se(r),le(n)}}M=t.p,t.m=!0}return e||{}}function ur(){return!0}const gn=["touchstart","touchmove"];function mn(e){return gn.includes(e)}function wn(e,t,r,n=!0){n&&r();for(var i of t)e.addEventListener(i,r);vn(()=>{for(var l of t)e.removeEventListener(l,r)})}function yn(e){var t=w,r=m;le(null),se(null);try{return e()}finally{le(t),se(r)}}const En=new Set,ar=new Set;function We(e){var g;var t=this,r=t.ownerDocument,n=e.type,i=((g=e.composedPath)==null?void 0:g.call(e))||[],l=i[0]||e.target,s=0,o=e.__root;if(o){var c=i.indexOf(o);if(c!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;c<=f&&(s=c)}if(l=i[s]||e.target,l!==t){Me(e,"currentTarget",{configurable:!0,get(){return l||r}});var a=w,v=m;le(null),se(null);try{for(var u,_=[];l!==null;){var d=l.assignedSlot||l.parentNode||l.host||null;try{var h=l["__"+n];if(h!==void 0&&!l.disabled)if(st(h)){var[E,...p]=h;E.apply(l,[e,...p])}else h.call(l,e)}catch(N){u?_.push(N):u=N}if(e.cancelBubble||d===t||d===null)break;l=d}if(u){for(let N of _)queueMicrotask(()=>{throw N});throw u}}finally{e.__root=t,delete e.currentTarget,le(a),se(v)}}}function bn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Se(e,t){var r=m;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function fr(e,t){var r=(t&Tr)!==0,n,i=!e.startsWith("<!>");return()=>{if(R)return Se(b,null),b;n===void 0&&(n=bn(i?e:"<!>"+e),n=$e(n));var l=r||Mt?document.importNode(n,!0):n.cloneNode(!0);return Se(l,l),l}}function Tn(){if(R)return Se(b,null),b;var e=document.createDocumentFragment(),t=document.createComment(""),r=pe();return e.append(t,r),Se(t,r),e}function Xe(e,t){if(R){m.nodes_end=b,Fe();return}e!==null&&e.before(t)}function or(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r+"")}function cr(e,t){return vr(e,t)}function Rn(e,t){dt(),t.intro=t.intro??!1;const r=t.target,n=R,i=b;try{for(var l=$e(r);l&&(l.nodeType!==8||l.data!==Tt);)l=ie(l);if(!l)throw Te;ee(!0),B(l),Fe();const s=vr(e,{...t,anchor:l});if(b===null||b.nodeType!==8||b.data!==tt)throw vt(),Te;return ee(!1),s}catch(s){if(s===Te)return t.recover===!1&&Hr(),dt(),Ht(r),ee(!1),cr(e,t);throw s}finally{ee(n),B(i)}}const ye=new Map;function vr(e,{target:t,anchor:r,props:n={},events:i,context:l,intro:s=!0}){dt();var o=new Set,c=v=>{for(var u=0;u<v.length;u++){var _=v[u];if(!o.has(_)){o.add(_);var d=mn(_);t.addEventListener(_,We,{passive:d});var h=ye.get(_);h===void 0?(document.addEventListener(_,We,{passive:d}),ye.set(_,1)):ye.set(_,h+1)}}};c(ut(En)),ar.add(c);var f=void 0,a=hn(()=>{var v=r??t.appendChild(pe());return xe(()=>{if(l){lr({});var u=M;u.c=l}i&&(n.$$events=i),R&&Se(v,null),f=e(v,n)||{},R&&(m.nodes_end=b),l&&sr()}),()=>{var d;for(var u of o){t.removeEventListener(u,We);var _=ye.get(u);--_===0?(document.removeEventListener(u,We),ye.delete(u)):ye.set(u,_)}ar.delete(c),v!==r&&((d=v.parentNode)==null||d.removeChild(v))}});return mt.set(f,a),f}let mt=new WeakMap;function An(e,t){const r=mt.get(e);return r?(mt.delete(e),r(t)):Promise.resolve()}function On(e,t,r=!1){R&&Fe();var n=e,i=null,l=null,s=I,o=r?it:0,c=!1;const f=(v,u=!0)=>{c=!0,a(u,v)},a=(v,u)=>{if(s===(s=v))return;let _=!1;if(R){const d=n.data===et;!!s===d&&(n=_t(),B(n),ee(!1),_=!0)}s?(i?ze(i):u&&(i=xe(()=>u(n))),l&&Ue(l,()=>{l=null})):(l?ze(l):u&&(l=xe(()=>u(n))),i&&Ue(i,()=>{i=null})),_&&ee(!0)};$t(()=>{c=!1,t(f),c||a(null,null)},o),R&&(n=b)}function Nn(e,t,r,n){for(var i=[],l=t.length,s=0;s<l;s++)gt(t[s].e,i,!0);var o=l>0&&i.length===0&&r!==null;if(o){var c=r.parentNode;Ht(c),c.append(r),n.clear(),ae(e,t[0].prev,t[l-1].next)}rr(i,()=>{for(var f=0;f<l;f++){var a=t[f];o||(n.delete(a.k),ae(e,a.prev,a.next)),re(a.e,!o)}})}function xn(e,t,r,n,i,l=null){var s=e,o={items:new Map,first:null};{var c=e;s=R?B($e(c)):c.appendChild(pe())}R&&Fe();var f=null,a=!1,v=Wr(()=>{var u=r();return st(u)?u:u==null?[]:ut(u)});$t(()=>{var u=O(v),_=u.length;if(a&&_===0)return;a=_===0;let d=!1;if(R){var h=s.data===et;h!==(_===0)&&(s=_t(),B(s),ee(!1),d=!0)}if(R){for(var E=null,p,g=0;g<_;g++){if(b.nodeType===8&&b.data===tt){s=b,d=!0,ee(!1);break}var N=u[g],P=n(N,g);p=_r(b,o,E,null,N,P,g,i,t,r),o.items.set(P,p),E=p}_>0&&B(_t())}R||Sn(u,o,s,i,t,n,r),l!==null&&(_===0?f?ze(f):f=xe(()=>l(s)):f!==null&&Ue(f,()=>{f=null})),d&&ee(!0),O(v)}),R&&(s=b)}function Sn(e,t,r,n,i,l,s){var o=e.length,c=t.items,f=t.first,a=f,v,u=null,_=[],d=[],h,E,p,g;for(g=0;g<o;g+=1){if(h=e[g],E=l(h,g),p=c.get(E),p===void 0){var N=a?a.e.nodes_start:r;u=_r(N,t,u,u===null?t.first:u.next,h,E,g,n,i,s),c.set(E,u),_=[],d=[],a=u.next;continue}if(Cn(p,h,g),p.e.f&Q&&ze(p.e),p!==a){if(v!==void 0&&v.has(p)){if(_.length<d.length){var P=d[0],q;u=P.prev;var fe=_[0],V=_[_.length-1];for(q=0;q<_.length;q+=1)dr(_[q],P,r);for(q=0;q<d.length;q+=1)v.delete(d[q]);ae(t,fe.prev,V.next),ae(t,u,fe),ae(t,V,P),a=P,u=V,g-=1,_=[],d=[]}else v.delete(p),dr(p,a,r),ae(t,p.prev,p.next),ae(t,p,u===null?t.first:u.next),ae(t,u,p),u=p;continue}for(_=[],d=[];a!==null&&a.k!==E;)a.e.f&Q||(v??(v=new Set)).add(a),d.push(a),a=a.next;if(a===null)continue;p=a}_.push(p),u=p,a=p.next}if(a!==null||v!==void 0){for(var be=v===void 0?[]:ut(v);a!==null;)a.e.f&Q||be.push(a),a=a.next;var Ze=be.length;if(Ze>0){var Qe=o===0?r:null;Nn(t,be,Qe,c)}}m.first=t.first&&t.first.e,m.last=u&&u.e}function Cn(e,t,r,n){Ct(e.v,t),e.i=r}function _r(e,t,r,n,i,l,s,o,c,f){var a=(c&x)!==0,v=(c&br)===0,u=a?v?ot(i):j(i):i,_=c&Ce?j(s):s,d={i:_,v:u,k:l,a:null,e:null,prev:r,next:n};try{return d.e=xe(()=>o(e,u,_,f),R),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?t.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function dr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,i=t?t.e.nodes_start:r,l=e.e.nodes_start;l!==n;){var s=ie(l);i.before(l),l=s}}function ae(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function kn(e,t){Pr(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const i=document.createElement("style");i.id=t.hash,i.textContent=t.code,n.appendChild(i)}})}function wt(e,t,r,n){var i=e.__attributes??(e.__attributes={});R&&(i[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||i[t]!==(i[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[Nr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&In(e).includes(t)?e[t]=r:e.setAttribute(t,r))}var hr=new Map;function In(e){var t=hr.get(e.nodeName);if(t)return t;hr.set(e.nodeName,t=[]);for(var r,n=e,i=Element.prototype;i!==n;){r=Sr(n);for(var l in r)r[l].set&&t.push(l);n=Ot(n)}return t}function Pn(e,t){wn(window,["resize"],()=>yn(()=>t(window[e])))}function Ke(e,t,r,n){var i;i=e[t];var l=n,s=!0,o=!1,c=()=>(o=!0,s&&(s=!1,l=n),l);i===void 0&&n!==void 0&&(i=c());var f;f=()=>{var _=e[t];return _===void 0?c():(s=!0,o=!1,_)};var a=!1,v=ot(i),u=ct(()=>{var _=f(),d=O(v);return a?(a=!1,d):v.v=_});return function(_,d){if(arguments.length>0){const h=d?O(u):_;return u.equals(h)||(a=!0,C(v,h),o&&l!==void 0&&(l=h),an(()=>O(u))),_}return O(u)}}function Dn(e){return new Ln(e)}class Ln{constructor(t){Et(this,ne);Et(this,H);var l;var r=new Map,n=(s,o)=>{var c=ot(o);return r.set(s,c),c};const i=new Proxy({...t.props||{},$$events:{}},{get(s,o){return O(r.get(o)??n(o,Reflect.get(s,o)))},has(s,o){return o===Or?!0:(O(r.get(o)??n(o,Reflect.get(s,o))),Reflect.has(s,o))},set(s,o,c){return C(r.get(o)??n(o,c),c),Reflect.set(s,o,c)}});bt(this,H,(t.hydrate?Rn:cr)(t.component,{target:t.target,anchor:t.anchor,props:i,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((l=t==null?void 0:t.props)!=null&&l.$$host)||t.sync===!1)&&we(),bt(this,ne,i.$$events);for(const s of Object.keys(D(this,H)))s==="$set"||s==="$destroy"||s==="$on"||Me(this,s,{get(){return D(this,H)[s]},set(o){D(this,H)[s]=o},enumerable:!0});D(this,H).$set=s=>{Object.assign(i,s)},D(this,H).$destroy=()=>{An(D(this,H))}}$set(t){D(this,H).$set(t)}$on(t,r){D(this,ne)[t]=D(this,ne)[t]||[];const n=(...i)=>r.call(this,...i);return D(this,ne)[t].push(n),()=>{D(this,ne)[t]=D(this,ne)[t].filter(i=>i!==n)}}$destroy(){D(this,H).$destroy()}}ne=new WeakMap,H=new WeakMap;let pr;typeof HTMLElement=="function"&&(pr=class extends HTMLElement{constructor(t,r,n){super();U(this,"$$ctor");U(this,"$$s");U(this,"$$c");U(this,"$$cn",!1);U(this,"$$d",{});U(this,"$$r",!1);U(this,"$$p_d",{});U(this,"$$l",{});U(this,"$$l_u",new Map);U(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const i=this.$$c.$on(t,r);this.$$l_u.set(r,i)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const i=this.$$l_u.get(r);i&&(i(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(i){return l=>{const s=document.createElement("slot");i!=="default"&&(s.name=i),Xe(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=Mn(this);for(const i of this.$$s)i in n&&(i==="default"&&!this.$$d.children?(this.$$d.children=t(i),r.default=!0):r[i]=t(i));for(const i of this.attributes){const l=this.$$g_p(i.name);l in this.$$d||(this.$$d[l]=Je(l,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Dn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=dn(()=>{pn(()=>{var i;this.$$r=!0;for(const l of Le(this.$$c)){if(!((i=this.$$p_d[l])!=null&&i.reflect))continue;this.$$d[l]=this.$$c[l];const s=Je(l,this.$$d[l],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,s)}this.$$r=!1})});for(const i in this.$$l)for(const l of this.$$l[i]){const s=this.$$c.$on(i,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(t,r,n){var i;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Je(t,n,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Le(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Je(e,t,r,n){var l;const i=(l=r[e])==null?void 0:l.type;if(t=i==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(i){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(i){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function Mn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function qn(e,t,r,n,i,l){let s=class extends pr{constructor(){super(e,r,i),this.$$p_d=t}static get observedAttributes(){return Le(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Le(t).forEach(o=>{Me(s.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(c){var v;c=Je(o,c,t),this.$$d[o]=c;var f=this.$$c;if(f){var a=(v=de(f,o))==null?void 0:v.get;a?f[o]=c:f.$set({[o]:c})}}})}),n.forEach(o=>{Me(s.prototype,o,{get(){var c;return(c=this.$$c)==null?void 0:c[o]}})}),e.element=s,s}function Fn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ee={},yt,$r;function jn(){if($r)return yt;$r=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,r=/^\s*/,n=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,l=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,o=/^\s+|\s+$/g,c=`
|
|
2
|
+
`,f="/",a="*",v="",u="comment",_="declaration";yt=function(h,E){if(typeof h!="string")throw new TypeError("First argument must be a string");if(!h)return[];E=E||{};var p=1,g=1;function N(y){var $=y.match(t);$&&(p+=$.length);var G=y.lastIndexOf(c);g=~G?y.length-G:g+y.length}function P(){var y={line:p,column:g};return function($){return $.position=new q(y),be(),$}}function q(y){this.start=y,this.end={line:p,column:g},this.source=E.source}q.prototype.content=h;function fe(y){var $=new Error(E.source+":"+p+":"+g+": "+y);if($.reason=y,$.filename=E.source,$.line=p,$.column=g,$.source=h,!E.silent)throw $}function V(y){var $=y.exec(h);if($){var G=$[0];return N(G),h=h.slice(G.length),$}}function be(){V(r)}function Ze(y){var $;for(y=y||[];$=Qe();)$!==!1&&y.push($);return y}function Qe(){var y=P();if(!(f!=h.charAt(0)||a!=h.charAt(1))){for(var $=2;v!=h.charAt($)&&(a!=h.charAt($)||f!=h.charAt($+1));)++$;if($+=2,v===h.charAt($-1))return fe("End of comment missing");var G=h.slice(2,$-2);return g+=2,N(G),h=h.slice($),g+=2,y({type:u,comment:G})}}function zn(){var y=P(),$=V(n);if($){if(Qe(),!V(i))return fe("property missing ':'");var G=V(l),Xn=y({type:_,property:d($[0].replace(e,v)),value:G?d(G[0].replace(e,v)):v});return V(s),Xn}}function Wn(){var y=[];Ze(y);for(var $;$=zn();)$!==!1&&(y.push($),Ze(y));return y}return be(),Wn()};function d(h){return h?h.replace(o,v):v}return yt}var gr;function Hn(){if(gr)return Ee;gr=1;var e=Ee&&Ee.__importDefault||function(n){return n&&n.__esModule?n:{default:n}};Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.default=r;var t=e(jn());function r(n,i){var l=null;if(!n||typeof n!="string")return l;var s=(0,t.default)(n),o=typeof i=="function";return s.forEach(function(c){if(c.type==="declaration"){var f=c.property,a=c.value;o?i(f,a,c):a&&(l=l||{},l[f]=a)}}),l}return Ee}var Yn=Hn();const mr=Fn(Yn),Bn=mr.default||mr;var Vn=fr('<div class="collection_item svelte-gh74cd" part="item"><div class="collection_item_image"><img part="image" class="svelte-gh74cd"></div> <div class="collection_item_text"><h3 part="title"> </h3> <p part="text"> </p></div></div>'),Gn=fr('<div id="collection_container" part="container" class="svelte-gh74cd"></div>');const Un={hash:"svelte-gh74cd",code:'@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");:host {font-family:"Roboto", sans-serif;}#collection_container.svelte-gh74cd {display:grid;justify-content:space-between;grid-gap:20px;}.collection_item.svelte-gh74cd {max-width:100%;}img.svelte-gh74cd {width:100%;height:100%;object-fit:cover;}'};function wr(e,t){lr(t,!0),kn(e,Un);let r=Ke(t,"id",7,""),n=Ke(t,"style"),i=Ke(t,"size"),l=Ke(t,"collection"),s=ft(0),o=ft(5),c=ft(z({}));_n(()=>{var _;if(n()&&C(c,z(Bn(n()))),typeof l()=="string")try{l(JSON.parse(l()))}catch(d){console.error("error parsing collection",d)}let u=0;if((_=l())!=null&&_.length&&l().forEach(d=>{d.index=u++}),i())typeof i()=="string"&&i(Number(i())),C(o,z(i()));else if(l()){const d=Math.round(O(s)/250);C(o,z(d<l().length?d:l().length))}else C(o,5)});var f=Tn(),a=Jr(f);{var v=u=>{var _=Gn();xn(_,21,l,d=>d.index,(d,h)=>{var E=Vn(),p=Re(E),g=Re(p);he(p);var N=jt(p,2),P=Re(N),q=Re(P,!0);he(P);var fe=jt(P,2),V=Re(fe,!0);he(fe),he(N),he(E),Zt(()=>{wt(g,"src",O(h).image),wt(g,"alt",O(h).title),or(q,O(h).title),or(V,O(h).text)}),Xe(d,E)}),he(_),Zt(()=>wt(_,"style",`grid-template-columns: repeat(${O(o)||5}, auto)`)),Xe(u,_)};On(a,u=>{var _;(_=l())!=null&&_.length&&u(v)})}return Pn("innerWidth",u=>C(s,z(u))),Xe(e,f),sr({get id(){return r()},set id(u=""){r(u),we()},get style(){return n()},set style(u){n(u),we()},get size(){return i()},set size(u){i(u),we()},get collection(){return l()},set collection(u){l(u),we()}})}customElements.define("hb-vertical-img-txt-archive",qn(wr,{id:{},style:{},size:{},collection:{}},[],[],!0)),T.Component=wr,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})})(this["vertical-img-txt-archive"]=this["vertical-img-txt-archive"]||{});
|
|
@@ -106,6 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
+
"description": "",
|
|
109
110
|
"storybookArgs": {
|
|
110
111
|
"collection": {
|
|
111
112
|
"control": {
|
|
@@ -141,9 +142,7 @@
|
|
|
141
142
|
}
|
|
142
143
|
]
|
|
143
144
|
},
|
|
144
|
-
"author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
|
|
145
145
|
"contributors": [],
|
|
146
|
-
"owner": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
|
|
147
146
|
"htmlSlots": [],
|
|
148
147
|
"i18n": [],
|
|
149
148
|
"examples": [
|
|
@@ -366,7 +365,7 @@
|
|
|
366
365
|
"archives"
|
|
367
366
|
],
|
|
368
367
|
"size": {},
|
|
369
|
-
"iifePath": "
|
|
368
|
+
"iifePath": "main.iife.js",
|
|
370
369
|
"repoName": "@htmlbricks/hb-vertical-img-txt-archive",
|
|
371
|
-
"version": "0.
|
|
370
|
+
"version": "0.50.0-alpha.10"
|
|
372
371
|
}
|
package/package.json
CHANGED
|
@@ -1,82 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"node": ">=16.0.0"
|
|
18
|
-
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"start": "sirv dist",
|
|
21
|
-
"dev": "rm -rf ./dist && rollup -c -w",
|
|
22
|
-
"build": "rm -rf ./dist && rollup -c",
|
|
23
|
-
"generate-manifest": "npm run generate-schemes && monorepo-wc-packages-manifester --dir $PWD",
|
|
24
|
-
"generate-component-schema": "ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
|
|
25
|
-
"generate-events-schema": "ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json",
|
|
26
|
-
"generate-schemes": "npm run generate-events-schema && npm run generate-component-schema",
|
|
27
|
-
"copydest": "rsync -avh dist/* ./release/ --delete",
|
|
28
|
-
"build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
|
|
29
|
-
"build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
|
|
30
|
-
"prepublish": "npm run build:release"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"@rollup/plugin-alias": "^3.1.2",
|
|
34
|
-
"@rollup/plugin-commonjs": "^18.0.0",
|
|
35
|
-
"@rollup/plugin-json": "^4.1.0",
|
|
36
|
-
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
37
|
-
"@rollup/plugin-replace": "^4.0.0",
|
|
38
|
-
"@rollup/plugin-typescript": "^8.2.1",
|
|
39
|
-
"@tsconfig/svelte": "^1.0.10",
|
|
40
|
-
"@types/node": "^16.7.1",
|
|
41
|
-
"@typescript-eslint/eslint-plugin": "^4.22.0",
|
|
42
|
-
"@typescript-eslint/parser": "^4.22.0",
|
|
43
|
-
"eslint": "^7.25.0",
|
|
44
|
-
"eslint-plugin-jsdoc": "^33.0.0",
|
|
45
|
-
"eslint-plugin-svelte3": "^3.2.0",
|
|
46
|
-
"monorepo-wc-packages-manifester": "^0.0.3",
|
|
47
|
-
"node-sass": "^9.0.0",
|
|
48
|
-
"postcss": "^8.2.13",
|
|
49
|
-
"postcss-load-config": "^3.0.1",
|
|
50
|
-
"prettier": "^2.8.4",
|
|
51
|
-
"rollup": "^2.46.0",
|
|
52
|
-
"rollup-plugin-copy": "^3.4.0",
|
|
53
|
-
"rollup-plugin-css-only": "^3.1.0",
|
|
54
|
-
"rollup-plugin-livereload": "^2.0.0",
|
|
55
|
-
"rollup-plugin-svelte": "^7.1.0",
|
|
56
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
57
|
-
"rollup-plugin-ts-paths": "^1.0.5",
|
|
58
|
-
"rollup-plugin-typescript2": "^0.31.1",
|
|
59
|
-
"sass": "^1.32.12",
|
|
60
|
-
"sirv-cli": "^1.0.11",
|
|
61
|
-
"svelte": "^3.46.2",
|
|
62
|
-
"svelte-check": "^1.5.2",
|
|
63
|
-
"svelte-preprocess": "^4.7.2",
|
|
64
|
-
"ts-json-schema-generator": "^0.98.0",
|
|
65
|
-
"ts-node": "^9.1.1",
|
|
66
|
-
"tslib": "^2.2.0",
|
|
67
|
-
"ttypescript": "^1.5.12",
|
|
68
|
-
"typescript": "^4.3.5",
|
|
69
|
-
"typescript-transform-paths": "^2.2.3",
|
|
70
|
-
"wc-js-utils": "^0.0.1"
|
|
71
|
-
},
|
|
72
|
-
"keywords": [
|
|
73
|
-
"svelte",
|
|
74
|
-
"svelte-webcomponents",
|
|
75
|
-
"webcomponents"
|
|
76
|
-
],
|
|
77
|
-
"contributors": [],
|
|
78
|
-
"gitHead": "89b0885aff646abbcaebdf63ab8602aa87d3e218",
|
|
79
|
-
"dependencies": {
|
|
80
|
-
"style-to-object": "^0.3.0"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
2
|
+
"name": "@htmlbricks/hb-vertical-img-txt-archive",
|
|
3
|
+
"version": "0.50.0-alpha.10",
|
|
4
|
+
"contributors": [],
|
|
5
|
+
"description": "",
|
|
6
|
+
"licenses": [
|
|
7
|
+
{
|
|
8
|
+
"type": "Apache-2.0",
|
|
9
|
+
"path": "LICENSE.md",
|
|
10
|
+
"cost": 0,
|
|
11
|
+
"currency": "EUR"
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"main": "main.iife.js",
|
|
15
|
+
"dependencies": []
|
|
16
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Component",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Component": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"collection": {
|
|
9
|
+
"items": {
|
|
10
|
+
"$ref": "#/definitions/Item"
|
|
11
|
+
},
|
|
12
|
+
"type": "array"
|
|
13
|
+
},
|
|
14
|
+
"id": {
|
|
15
|
+
"type": "string"
|
|
16
|
+
},
|
|
17
|
+
"size": {
|
|
18
|
+
"type": "number"
|
|
19
|
+
},
|
|
20
|
+
"style": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"collection"
|
|
26
|
+
],
|
|
27
|
+
"type": "object"
|
|
28
|
+
},
|
|
29
|
+
"Item": {
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"properties": {
|
|
32
|
+
"image": {
|
|
33
|
+
"type": "string"
|
|
34
|
+
},
|
|
35
|
+
"index": {
|
|
36
|
+
"type": "number"
|
|
37
|
+
},
|
|
38
|
+
"link": {
|
|
39
|
+
"additionalProperties": false,
|
|
40
|
+
"properties": {
|
|
41
|
+
"type": {
|
|
42
|
+
"enum": [
|
|
43
|
+
"tab",
|
|
44
|
+
"page",
|
|
45
|
+
"event"
|
|
46
|
+
],
|
|
47
|
+
"type": "string"
|
|
48
|
+
},
|
|
49
|
+
"uri": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"type",
|
|
55
|
+
"uri"
|
|
56
|
+
],
|
|
57
|
+
"type": "object"
|
|
58
|
+
},
|
|
59
|
+
"subtitle": {
|
|
60
|
+
"type": "string"
|
|
61
|
+
},
|
|
62
|
+
"text": {
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
"title": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": [
|
|
70
|
+
"title",
|
|
71
|
+
"text",
|
|
72
|
+
"link",
|
|
73
|
+
"image"
|
|
74
|
+
],
|
|
75
|
+
"type": "object"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Events",
|
|
3
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
+
"definitions": {
|
|
5
|
+
"Events": {
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {
|
|
8
|
+
"collectionItemClick": {
|
|
9
|
+
"additionalProperties": false,
|
|
10
|
+
"properties": {
|
|
11
|
+
"uri": {
|
|
12
|
+
"type": "string"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"required": [
|
|
16
|
+
"uri"
|
|
17
|
+
],
|
|
18
|
+
"type": "object"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": [
|
|
22
|
+
"collectionItemClick"
|
|
23
|
+
],
|
|
24
|
+
"type": "object"
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
package/LICENSE.md
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
## MIT License
|
|
2
|
-
|
|
3
|
-
> Code and Contributions
|
|
4
|
-
|
|
5
|
-
Copyright (c) 2021 Dario Caruso (dottgonzo)
|
|
6
|
-
|
|
7
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
in the Software without restriction, including without limitation the rights
|
|
10
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
furnished to do so, subject to the following conditions:
|
|
13
|
-
|
|
14
|
-
The above copyright notice and this permission notice shall be included in all
|
|
15
|
-
copies or substantial portions of the Software.
|
|
16
|
-
|
|
17
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
-
SOFTWARE.
|
|
24
|
-
|
|
25
|
-
##### https://choosealicense.com/licenses/mit/
|
|
26
|
-
|
|
27
|
-
## Creative Commons BY-NC 4.0 License
|
|
28
|
-
|
|
29
|
-
> Images, assets and logos
|
|
30
|
-
|
|
31
|
-
Copyleft (c) 2021 Dario Caruso (dottgonzo)
|
|
32
|
-
|
|
33
|
-
#### You are free to:
|
|
34
|
-
|
|
35
|
-
- Share — copy and redistribute the material in any medium or format
|
|
36
|
-
- Adapt — remix, transform, and build upon the material
|
|
37
|
-
|
|
38
|
-
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
|
39
|
-
|
|
40
|
-
#### Under the following terms:
|
|
41
|
-
|
|
42
|
-
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that - suggests the licensor endorses you or your use.
|
|
43
|
-
- NonCommercial — You may not use the material for commercial purposes.
|
|
44
|
-
|
|
45
|
-
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
|
|
46
|
-
|
|
47
|
-
##### https://creativecommons.org/licenses/by-nc/4.0/
|
|
48
|
-
|
|
49
|
-
## Creative Commons BY 4.0 License
|
|
50
|
-
|
|
51
|
-
> Documentation and Translations
|
|
52
|
-
|
|
53
|
-
Copyleft (c) 2021 Dario Caruso (dottgonzo)
|
|
54
|
-
|
|
55
|
-
#### You are free to:
|
|
56
|
-
|
|
57
|
-
- Share — copy and redistribute the material in any medium or format
|
|
58
|
-
- Adapt — remix, transform, and build upon the material for any purpose, even commercially.
|
|
59
|
-
|
|
60
|
-
The licensor cannot revoke these freedoms as long as you follow the license terms.
|
|
61
|
-
|
|
62
|
-
#### Under the following terms:
|
|
63
|
-
|
|
64
|
-
- Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
|
|
65
|
-
|
|
66
|
-
No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
|
|
67
|
-
|
|
68
|
-
##### https://creativecommons.org/licenses/by/4.0/
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
# vertical image web component
|
package/extra/docs.ts
DELETED
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "wc-js-utils/main";
|
|
2
|
-
import type { Component } from "../app/types/webcomponent.type";
|
|
3
|
-
|
|
4
|
-
export const storybookArgs = {
|
|
5
|
-
collection: { control: { type: "object" } },
|
|
6
|
-
size: { control: { type: "number" } },
|
|
7
|
-
collectionItemClick: { collectionItemClick: "eventEvent" },
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
const cssVars: CssVar[] = [];
|
|
11
|
-
export const cssParts: CssPart[] = [{ name: "container" }, { name: "item" }, { name: "image" }, { name: "title" }, { name: "text" }];
|
|
12
|
-
export const htmlSlots: HtmlSlot[] = [];
|
|
13
|
-
export const i18nLanguages: i18nLang[] = [];
|
|
14
|
-
|
|
15
|
-
export const styleSetup: StyleSetup = {
|
|
16
|
-
vars: cssVars,
|
|
17
|
-
parts: cssParts,
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const examples: { name: string; description?: string; data: Component }[] = [
|
|
21
|
-
{
|
|
22
|
-
name: "default",
|
|
23
|
-
data: {
|
|
24
|
-
collection: [
|
|
25
|
-
{
|
|
26
|
-
title: "Title 1",
|
|
27
|
-
text: "Text 1",
|
|
28
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
29
|
-
image: "https://via.placeholder.com/300x200",
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
title: "Title 2",
|
|
33
|
-
text: "Text 2",
|
|
34
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
35
|
-
image: "https://via.placeholder.com/300x200",
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
{
|
|
39
|
-
title: "Title 3",
|
|
40
|
-
text: "Text 3",
|
|
41
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
42
|
-
image: "https://via.placeholder.com/300x200",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
title: "Title 4",
|
|
46
|
-
text: "Text 4",
|
|
47
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
48
|
-
image: "https://via.placeholder.com/300x200",
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
title: "Title 5",
|
|
52
|
-
text: "Text 5",
|
|
53
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
54
|
-
image: "https://via.placeholder.com/300x200",
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
title: "Title 6",
|
|
58
|
-
text: "Text 6",
|
|
59
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
60
|
-
image: "https://via.placeholder.com/300x200",
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
title: "Title 7",
|
|
64
|
-
text: "Text 7",
|
|
65
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
66
|
-
image: "https://via.placeholder.com/300x200",
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
title: "Title 8",
|
|
70
|
-
text: "Text 8",
|
|
71
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
72
|
-
image: "https://via.placeholder.com/300x200",
|
|
73
|
-
},
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: "default2",
|
|
79
|
-
data: {
|
|
80
|
-
collection: [
|
|
81
|
-
{
|
|
82
|
-
title: "Title 1",
|
|
83
|
-
text: "Text 1",
|
|
84
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
85
|
-
image: "https://via.placeholder.com/300x200",
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
title: "Title 2",
|
|
89
|
-
text: "Text 2",
|
|
90
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
91
|
-
image: "https://via.placeholder.com/300x200",
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
{
|
|
95
|
-
title: "Title 3",
|
|
96
|
-
text: "Text 3",
|
|
97
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
98
|
-
image: "https://via.placeholder.com/300x200",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
title: "Title 4",
|
|
102
|
-
text: "Text 4",
|
|
103
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
104
|
-
image: "https://via.placeholder.com/300x200",
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
title: "Title 5",
|
|
108
|
-
text: "Text 5",
|
|
109
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
110
|
-
image: "https://via.placeholder.com/300x200",
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
title: "Title 6",
|
|
114
|
-
text: "Text 6",
|
|
115
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
116
|
-
image: "https://via.placeholder.com/300x200",
|
|
117
|
-
},
|
|
118
|
-
],
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
name: "default3",
|
|
123
|
-
data: {
|
|
124
|
-
size: 4,
|
|
125
|
-
collection: [
|
|
126
|
-
{
|
|
127
|
-
title: "Title 1",
|
|
128
|
-
text: "Text 1",
|
|
129
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
130
|
-
image: "https://via.placeholder.com/300x200",
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
title: "Title 2",
|
|
134
|
-
text: "Text 2",
|
|
135
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
136
|
-
image: "https://via.placeholder.com/300x200",
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
{
|
|
140
|
-
title: "Title 3",
|
|
141
|
-
text: "Text 3",
|
|
142
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
143
|
-
image: "https://via.placeholder.com/300x200",
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
title: "Title 4",
|
|
147
|
-
text: "Text 4",
|
|
148
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
149
|
-
image: "https://via.placeholder.com/300x200",
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
title: "Title 5",
|
|
153
|
-
text: "Text 5",
|
|
154
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
155
|
-
image: "https://via.placeholder.com/300x200",
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
title: "Title 6",
|
|
159
|
-
text: "Text 6",
|
|
160
|
-
link: { type: "tab", uri: "https://www.google.com" },
|
|
161
|
-
image: "https://via.placeholder.com/300x200",
|
|
162
|
-
},
|
|
163
|
-
],
|
|
164
|
-
},
|
|
165
|
-
},
|
|
166
|
-
];
|
|
167
|
-
export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
|
|
168
|
-
definitions: null as any,
|
|
169
|
-
storybookArgs,
|
|
170
|
-
styleSetup,
|
|
171
|
-
author: null as any,
|
|
172
|
-
contributors: [],
|
|
173
|
-
owner: null as any,
|
|
174
|
-
htmlSlots,
|
|
175
|
-
i18n: i18nLanguages,
|
|
176
|
-
examples,
|
|
177
|
-
screenshots: [],
|
|
178
|
-
licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
|
|
179
|
-
readmePath: "README.md",
|
|
180
|
-
name: "hb-vertical-img-txt-archive",
|
|
181
|
-
category: "archives",
|
|
182
|
-
tags: ["archives"],
|
|
183
|
-
size: {},
|
|
184
|
-
iifePath: "release/release.js",
|
|
185
|
-
repoName: "@htmlbricks/hb-vertical-img-txt-archive",
|
|
186
|
-
version: null as any,
|
|
187
|
-
};
|