rettangoli-ui 0.0.8-rc2 → 0.0.9-rc2
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/rettangoli-esm.min.js +648 -0
- package/dist/rettangoli-iife-layout.min.js +617 -0
- package/dist/rettangoli-iife-ui.min.js +649 -0
- package/package.json +2 -2
- package/dist/rettangoli-ui.min.js +0 -615
@@ -0,0 +1,649 @@
|
|
1
|
+
var rettangoli=(()=>{var{isArray:at}=Array,{getPrototypeOf:Rt,getOwnPropertyDescriptor:jt}=Object,S=[],lt=()=>document.createRange(),N=(e,t,o)=>(e.set(t,o),o),Mt=(e,t)=>t.reduceRight(Wt,e),Wt=(e,t)=>e.childNodes[t],{setPrototypeOf:Et}=Object,j,ht=(e,t,o)=>(j||(j=lt()),o?j.setStartAfter(e):j.setStartBefore(e),j.setEndAfter(t),j.deleteContents(),e),Y=({firstChild:e,lastChild:t},o)=>ht(e,t,o),ct=!1,Z=(e,t)=>ct&&e.nodeType===11?1/t<0?t?Y(e,!0):e.lastChild:t?e.valueOf():e.firstChild:e,rt=e=>document.createComment(e),tt=class extends(t=>{function o(n){return Et(n,new.target.prototype)}return o.prototype=t.prototype,o})(DocumentFragment){#e=rt("<>");#o=rt("</>");#t=S;constructor(t){super(t),this.replaceChildren(this.#e,...t.childNodes,this.#o),ct=!0}get firstChild(){return this.#e}get lastChild(){return this.#o}get parentNode(){return this.#e.parentNode}remove(){Y(this,!1)}replaceWith(t){Y(this,!0).replaceWith(t)}valueOf(){let{parentNode:t}=this;if(t===this)this.#t===S&&(this.#t=[...this.childNodes]);else{if(t){let{firstChild:o,lastChild:n}=this;for(this.#t=[o];o!==n;)this.#t.push(o=o.nextSibling)}this.replaceChildren(...this.#t)}return this}},dt=(e,t,o)=>e.setAttribute(t,o),D=(e,t)=>e.removeAttribute(t),L,Ot=(e,t,o)=>{o=o.slice(1),L||(L=new WeakMap);let n=L.get(e)||N(L,e,{}),s=n[o];return s&&s[0]&&e.removeEventListener(o,...s),s=at(t)?t:[t,!1],n[o]=s,s[0]&&e.addEventListener(o,...s),t},V=(e,t)=>{let{t:o,n}=e,s=!1;switch(typeof t){case"object":if(t!==null){(n||o).replaceWith(e.n=t.valueOf());break}case"undefined":s=!0;default:o.data=s?"":t,n&&(e.n=null,n.replaceWith(o))}return t},I=(e,t,o)=>e[o]=t,Tt=(e,t,o)=>I(e,t,o.slice(1)),et=(e,t,o)=>t==null?(D(e,o),t):I(e,t,o),gt=(e,t)=>(typeof t=="function"?t(e):t.current=e,t),q=(e,t,o)=>(t==null?D(e,o):dt(e,o,t),t),Nt=(e,t,o)=>(e.toggleAttribute(o.slice(1),t),t),B=(e,t,o)=>{let{length:n}=t;if(e.data=`[${n}]`,n)return((s,i,a,r,g)=>{let p=a.length,l=i.length,h=p,c=0,d=0,u=null;for(;c<l||d<h;)if(l===c){let b=h<p?d?r(a[d-1],-0).nextSibling:r(a[h],0):g;for(;d<h;)s.insertBefore(r(a[d++],1),b)}else if(h===d)for(;c<l;)u&&u.has(i[c])||s.removeChild(r(i[c],-1)),c++;else if(i[c]===a[d])c++,d++;else if(i[l-1]===a[h-1])l--,h--;else if(i[c]===a[h-1]&&a[d]===i[l-1]){let b=r(i[--l],-0).nextSibling;s.insertBefore(r(a[d++],1),r(i[c++],-0).nextSibling),s.insertBefore(r(a[--h],1),b),i[l]=a[h]}else{if(!u){u=new Map;let b=d;for(;b<h;)u.set(a[b],b++)}if(u.has(i[c])){let b=u.get(i[c]);if(d<b&&b<h){let w=c,k=1;for(;++w<l&&w<h&&u.get(i[w])===b+k;)k++;if(k>b-d){let Q=r(i[c],0);for(;d<b;)s.insertBefore(r(a[d++],1),Q)}else s.replaceChild(r(a[d++],1),r(i[c++],-1))}else c++}else s.removeChild(r(i[c++],-1))}return a})(e.parentNode,o,t,Z,e);switch(o.length){case 1:o[0].remove();case 0:break;default:ht(Z(o[0],0),Z(o.at(-1),-0),!1)}return S},Vt=new Map([["aria",(e,t)=>{for(let o in t){let n=t[o],s=o==="role"?o:`aria-${o}`;n==null?D(e,s):dt(e,s,n)}return t}],["class",(e,t)=>et(e,t,t==null?"class":"className")],["data",(e,t)=>{let{dataset:o}=e;for(let n in t)t[n]==null?delete o[n]:o[n]=t[n];return t}],["ref",gt],["style",(e,t)=>t==null?et(e,t,"style"):I(e.style,t,"cssText")]]),zt=(e,t,o)=>{switch(t[0]){case".":return Tt;case"?":return Nt;case"@":return Ot;default:return o||"ownerSVGElement"in e?t==="ref"?gt:q:Vt.get(t)||(t in e?t.startsWith("on")?I:((n,s)=>{let i;do i=jt(n,s);while(!i&&(n=Rt(n)));return i})(e,t)?.set?et:q:q)}},Lt=(e,t)=>(e.textContent=t??"",t),T=(e,t,o)=>({a:e,b:t,c:o}),M=()=>T(null,null,S),pt=e=>(t,o)=>{let{a:n,b:s,c:i}=e(t,o),a=document.importNode(n,!0),r=S;if(s!==S){r=[];for(let c,d,u=0;u<s.length;u++){let{a:b,b:w,c:k}=s[u],Q=b===d?c:c=Mt(a,d=b);r[u]=(g=w,p=Q,l=k,h=w===B?[]:w===V?M():null,{v:S,u:g,t:p,n:l,c:h})}}var g,p,l,h;return((c,d)=>({b:c,c:d}))(i?a.firstChild:new tt(a),r)},Ht=/^(?:plaintext|script|style|textarea|title|xmp)$/i,Bt=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,Dt=/<([a-zA-Z0-9]+[a-zA-Z0-9:._-]*)([^>]*?)(\/?)>/g,It=/([^\s\\>"'=]+)\s*=\s*(['"]?)\x01/g,Pt=/[\x01\x02]/g,J,K,H=document.createElement("template"),Ut=(e,t)=>{if(t)return J||(J=document.createElementNS("http://www.w3.org/2000/svg","svg"),K=lt(),K.selectNodeContents(J)),K.createContextualFragment(e);H.innerHTML=e;let{content:o}=H;return H=H.cloneNode(!1),o},X=e=>{let t=[],o;for(;o=e.parentNode;)t.push(t.indexOf.call(o.childNodes,e)),e=o;return t},st=()=>document.createTextNode(""),Ft=(e,t,o)=>{let n=Ut(((g,p,l)=>{let h=0;return g.join("").trim().replace(Dt,(c,d,u,b)=>`<${d}${u.replace(It,"=$2$1").trimEnd()}${b?l||Bt.test(d)?" /":`></${d}`:""}>`).replace(Pt,c=>c===""?`<!--${p+h++}-->`:p+h++)})(e,O,o),o),{length:s}=e,i=S;if(s>1){let g=[],p=document.createTreeWalker(n,129),l=0,h=`${O}${l++}`;for(i=[];l<s;){let c=p.nextNode();if(c.nodeType===8){if(c.data===h){let d=at(t[l-1])?B:V;d===V&&g.push(c),i.push(T(X(c),d,null)),h=`${O}${l++}`}}else{let d;for(;c.hasAttribute(h);){d||(d=X(c));let u=c.getAttribute(h);i.push(T(d,zt(c,u,o),u)),D(c,h),h=`${O}${l++}`}!o&&Ht.test(c.localName)&&c.textContent.trim()===`<!--${h}-->`&&(i.push(T(d||X(c),Lt,null)),h=`${O}${l++}`)}}for(l=0;l<g.length;l++)g[l].replaceWith(st())}let{childNodes:a}=n,{length:r}=a;return r<1?(r=1,n.appendChild(st())):r===1&&s!==1&&a[0].nodeType!==1&&(r=0),N(ut,e,T(n,i,r===1))},ut=new WeakMap,O="is\xB5",ft=e=>(t,o)=>ut.get(t)||Ft(t,o,e),Gt=pt(ft(!1)),Qt=pt(ft(!0)),ot=(e,{s:t,t:o,v:n})=>{if(e.a!==o){let{b:s,c:i}=(t?Qt:Gt)(o,n);e.a=o,e.b=s,e.c=i}for(let{c:s}=e,i=0;i<s.length;i++){let a=n[i],r=s[i];switch(r.u){case B:r.v=B(r.t,Zt(r.c,a),r.v);break;case V:let g=a instanceof _?ot(r.c||(r.c=M()),a):(r.c=null,a);g!==r.v&&(r.v=V(r,g));break;default:a!==r.v&&(r.v=r.u(r.t,a,r.n,r.v))}}return e.b},Zt=(e,t)=>{let o=0,{length:n}=t;for(n<e.length&&e.splice(n);o<n;o++){let s=t[o];s instanceof _?t[o]=ot(e[o]||(e[o]=M()),s):e[o]=null}return t},_=class{constructor(t,o,n){this.s=t,this.t=o,this.v=n}toDOM(t=M()){return ot(t,this)}};var mt=e=>(t,...o)=>new _(e,t,o),A=mt(!1),ce=mt(!0),nt=new WeakMap,R=(e,t)=>((o,n)=>{let s=nt.get(o)||N(nt,o,M()),{b:i}=s,a=typeof n=="function"?n():n,r=a instanceof _?a.toDOM(s):a;return i!==r&&o.replaceChildren((s.b=r).valueOf()),o})(e,t),it=new WeakMap,bt=e=>(t,o)=>{let n=it.get(t)||N(it,t,new Map);return n.get(o)||N(n,o,function(s,...i){return new _(e,s,i).toDOM(this)}.bind(M()))},de=bt(!1),ge=bt(!0);function m(e,...t){let o="";return e.forEach((n,s)=>{o+=n+(t[s]||"")}),o}var vt={default:void 0,s:"@media only screen and (max-width: 640px)"},y=(e,t,o={})=>{let n="";for(let[s,i]of Object.entries(vt)){s!=="default"&&(n+=`${i} {`);for(let[a,r]of Object.entries(t)){let g=o[a]?` ${o[a]} `:" ";for(let[p,l]of Object.entries(r)){let h=e[a],c=l.startsWith("--")?`var(${l})`:l,d=s==="default"?a:`${s}-${a}`,u=s==="default"?`h-${a}`:`${s}-h-${a}`;if(h){let w=h.split(" ").map(k=>`${k}: ${c};`).join(" ");n+=`
|
2
|
+
:host([${d}="${p}"])${g}{
|
3
|
+
${w}
|
4
|
+
}
|
5
|
+
:host([${u}="${p}"]:hover)${g}{
|
6
|
+
${w}
|
7
|
+
}
|
8
|
+
`}else n+=`
|
9
|
+
:host([${d}="${p}"])${g}{
|
10
|
+
${l}
|
11
|
+
}
|
12
|
+
:host([${u}="${p}"]:hover)${g}{
|
13
|
+
${l}
|
14
|
+
}
|
15
|
+
`}}s!=="default"&&(n+="}")}return n};function qt(e){if(e===null||e.includes("/"))return!1;let t=String(e);return/[0-9]$/.test(t)}var Jt=e=>/%$/.test(e),v=e=>{if(e!==void 0)return Jt(e)?e:qt(e)?`${e}px`:e},f={xs:"--spacing-xs",s:"--spacing-s",m:"--spacing-m",l:"--spacing-l",xl:"--spacing-xl"};function W(e){let t="";for(let[o,n]of Object.entries(vt)){o!=="default"&&(t+=`${n} {
|
16
|
+
`);let s="";for(let[i,a]of Object.entries(e[o]))a!=null&&(s+=`${i}: ${a};
|
17
|
+
`);t+=`:host {
|
18
|
+
${s.trim()}
|
19
|
+
}
|
20
|
+
`,o!=="default"&&(t+=`}
|
21
|
+
`)}return t}var $=m`
|
22
|
+
:host([flex="0"]) {
|
23
|
+
flex: 0;
|
24
|
+
}
|
25
|
+
:host([flex="1"]) {
|
26
|
+
flex: 1;
|
27
|
+
}
|
28
|
+
:host([flex="2"]) {
|
29
|
+
flex: 2;
|
30
|
+
}
|
31
|
+
:host([flex="3"]) {
|
32
|
+
flex: 3;
|
33
|
+
}
|
34
|
+
:host([flex="4"]) {
|
35
|
+
flex: 4;
|
36
|
+
}
|
37
|
+
:host([flex="5"]) {
|
38
|
+
flex: 5;
|
39
|
+
}
|
40
|
+
:host([flex="6"]) {
|
41
|
+
flex: 6;
|
42
|
+
}
|
43
|
+
:host([flex="7"]) {
|
44
|
+
flex: 7;
|
45
|
+
}
|
46
|
+
:host([flex="8"]) {
|
47
|
+
flex: 8;
|
48
|
+
}
|
49
|
+
:host([flex="9"]) {
|
50
|
+
flex: 9;
|
51
|
+
}
|
52
|
+
:host([flex="10"]) {
|
53
|
+
flex: 10;
|
54
|
+
}
|
55
|
+
:host([flex="11"]) {
|
56
|
+
flex: 11;
|
57
|
+
}
|
58
|
+
:host([flex="12"]) {
|
59
|
+
flex: 12;
|
60
|
+
}
|
61
|
+
`;var Kt={mt:"margin-top",mr:"margin-right",mb:"margin-bottom",ml:"margin-left",m:"margin",mh:"margin-left margin-right",mv:"margin-top margin-bottom"},Xt={mt:f,mr:f,mb:f,ml:f,m:f,mh:f,mv:f},Yt={mt:"button",mr:"button",mb:"button",ml:"button",m:"button",mh:"button",mv:"button"},yt=y(Kt,Xt,Yt);var wt=({render:e,html:t})=>{let o=new CSSStyleSheet;return o.replaceSync(m`
|
62
|
+
:host {
|
63
|
+
display: contents;
|
64
|
+
}
|
65
|
+
slot {
|
66
|
+
display: contents;
|
67
|
+
}
|
68
|
+
|
69
|
+
button {
|
70
|
+
border-style: solid;
|
71
|
+
padding: 0px;
|
72
|
+
font-size: var(--typography-body-s-font-size);
|
73
|
+
font-weight: var(--typography-body-s-font-weight);
|
74
|
+
line-height: var(--typography-body-s-line-height);
|
75
|
+
letter-spacing: var(--typography-body-s-letter-spacing);
|
76
|
+
}
|
77
|
+
|
78
|
+
button:hover {
|
79
|
+
cursor: pointer;
|
80
|
+
}
|
81
|
+
|
82
|
+
:host([t="ps"]) button,
|
83
|
+
:host([t="p"]) button,
|
84
|
+
:host([t="pl"]) button {
|
85
|
+
color: var(--color-on-primary);
|
86
|
+
border-color: var(--color-primary);
|
87
|
+
background-color: var(--color-primary);
|
88
|
+
}
|
89
|
+
|
90
|
+
:host([t="ps"]) button:hover,
|
91
|
+
:host([t="p"]) button:hover,
|
92
|
+
:host([t="pl"]) button:hover {
|
93
|
+
border-color: var(--color-primary-hover);
|
94
|
+
background-color: var(--color-primary-hover);
|
95
|
+
}
|
96
|
+
|
97
|
+
:host([t="ps"]) button:active,
|
98
|
+
:host([t="p"]) button:active,
|
99
|
+
:host([t="pl"]) button:active {
|
100
|
+
border-color: var(--color-primary-active);
|
101
|
+
background-color: var(--color-primary-active);
|
102
|
+
}
|
103
|
+
|
104
|
+
:host([t="ss"]) button,
|
105
|
+
:host([t="s"]) button,
|
106
|
+
:host([t="sl"]) button {
|
107
|
+
color: var(--color-on-secondary);
|
108
|
+
border-color: var(--color-secondary);
|
109
|
+
background-color: var(--color-secondary);
|
110
|
+
}
|
111
|
+
|
112
|
+
:host([t="ss"]) button:hover,
|
113
|
+
:host([t="s"]) button:hover,
|
114
|
+
:host([t="sl"]) button:hover {
|
115
|
+
background-color: var(--color-secondary-hover);
|
116
|
+
border-color: var(--color-secondary-hover);
|
117
|
+
}
|
118
|
+
|
119
|
+
:host([t="ss"]) button:active,
|
120
|
+
:host([t="s"]) button:active,
|
121
|
+
:host([t="sl"]) button:active {
|
122
|
+
background-color: var(--color-secondary-active);
|
123
|
+
border-color: var(--color-secondary-active);
|
124
|
+
}
|
125
|
+
|
126
|
+
:host([t="es"]) button,
|
127
|
+
:host([t="e"]) button,
|
128
|
+
:host([t="el"]) button {
|
129
|
+
color: var(--color-on-error);
|
130
|
+
border-color: var(--color-error);
|
131
|
+
background-color: var(--color-error);
|
132
|
+
}
|
133
|
+
|
134
|
+
:host([t="es"]) button:hover,
|
135
|
+
:host([t="e"]) button:hover,
|
136
|
+
:host([t="el"]) button:hover {
|
137
|
+
background-color: var(--color-error-hover);
|
138
|
+
border-color: var(--color-error-hover);
|
139
|
+
}
|
140
|
+
|
141
|
+
:host([t="es"]) button:active,
|
142
|
+
:host([t="e"]) button:active,
|
143
|
+
:host([t="el"]) button:active {
|
144
|
+
background-color: var(--color-error-active);
|
145
|
+
border-color: var(--color-error-active);
|
146
|
+
}
|
147
|
+
|
148
|
+
:host([t="ns"]) button,
|
149
|
+
:host([t="n"]) button,
|
150
|
+
:host([t="nl"]) button {
|
151
|
+
color: var(--color-on-surface);
|
152
|
+
border-color: var(--color-surface-container);
|
153
|
+
background-color: var(--color-surface-container);
|
154
|
+
}
|
155
|
+
|
156
|
+
:host([t="ns"]) button:hover,
|
157
|
+
:host([t="n"]) button:hover,
|
158
|
+
:host([t="nl"]) button:hover {
|
159
|
+
background-color: var(--color-surface-container-high);
|
160
|
+
border-color: var(--color-surface-container-high);
|
161
|
+
}
|
162
|
+
|
163
|
+
:host([t="ns"]) button:active,
|
164
|
+
:host([t="n"]) button:active,
|
165
|
+
:host([t="nl"]) button:active {
|
166
|
+
background-color: var(--color-surface-container-high);
|
167
|
+
border-color: var(--color-surface-container-high);
|
168
|
+
}
|
169
|
+
|
170
|
+
:host([t="ps"]) button,
|
171
|
+
:host([t="ss"]) button,
|
172
|
+
:host([t="es"]) button,
|
173
|
+
:host([t="ns"]) button {
|
174
|
+
height: var(--button-height-s);
|
175
|
+
padding-left: var(--button-padding-horizontal-s);
|
176
|
+
padding-right: var(--button-padding-horizontal-s);
|
177
|
+
border-radius: var(--button-border-radius-s);
|
178
|
+
}
|
179
|
+
|
180
|
+
:host([t="p"]) button,
|
181
|
+
:host([t="s"]) button,
|
182
|
+
:host([t="e"]) button,
|
183
|
+
:host([t="n"]) button {
|
184
|
+
height: var(--button-height-m);
|
185
|
+
padding-left: var(--button-padding-horizontal-m);
|
186
|
+
padding-right: var(--button-padding-horizontal-m);
|
187
|
+
border-radius: var(--button-border-radius-m);
|
188
|
+
}
|
189
|
+
|
190
|
+
:host([t="pl"]) button,
|
191
|
+
:host([t="sl"]) button,
|
192
|
+
:host([t="el"]) button,
|
193
|
+
:host([t="nl"]) button {
|
194
|
+
height: var(--button-height-l);
|
195
|
+
padding-left: var(--button-padding-horizontal-l);
|
196
|
+
padding-right: var(--button-padding-horizontal-l);
|
197
|
+
border-radius: var(--button-border-radius-l);
|
198
|
+
font-size: var(--typography-label-l-font-size);
|
199
|
+
font-weight: var(--typography-label-l-font-weight);
|
200
|
+
line-height: var(--typography-label-l-line-height);
|
201
|
+
letter-spacing: var(--typography-label-l-letter-spacing);
|
202
|
+
}
|
203
|
+
${yt}
|
204
|
+
${$}
|
205
|
+
`),class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[o],e(this.shadow,this.render)}static get observedAttributes(){return["key","href","target","w","t"]}_buttonRef={};_assingRef=s=>{this._buttonRef.current=s;let i=v(this.getAttribute("w"));i==="f"?this._buttonRef.current.style.width="100%":i!=null&&(this._buttonRef.current.style.width=i)};attributeChangedCallback(s,i,a){if(!this._buttonRef.current)return;let r=v(this.getAttribute("w"));r==="f"?this._buttonRef.current.style.width="100%":r!=null&&(this._buttonRef.current.style.width=r,this._buttonRef.current.style.minWidth=r,this._buttonRef.current.style.maxWidth=r),e(this.shadow,this.render)}render=()=>this.getAttribute("href")?t`
|
206
|
+
<a
|
207
|
+
href=${this.getAttribute("href")}
|
208
|
+
target=${this.getAttribute("target")}
|
209
|
+
>
|
210
|
+
<button>
|
211
|
+
<slot></slot>
|
212
|
+
</button>
|
213
|
+
</a>
|
214
|
+
`:t`
|
215
|
+
<button ref=${this._assingRef}>
|
216
|
+
<slot></slot>
|
217
|
+
</button>
|
218
|
+
`}};var P=m`
|
219
|
+
|
220
|
+
:host([d="h"]) {
|
221
|
+
flex-direction: row;
|
222
|
+
}
|
223
|
+
:host(:not([d])) {
|
224
|
+
flex-direction: column;
|
225
|
+
}
|
226
|
+
:host([d="h"]:not([ah])) {
|
227
|
+
justify-content: flex-start;
|
228
|
+
}
|
229
|
+
:host([d="h"][ah="c"]) {
|
230
|
+
justify-content: center;
|
231
|
+
/* align-content: center; */
|
232
|
+
}
|
233
|
+
:host([d="h"][ah="e"]) {
|
234
|
+
justify-content: flex-end;
|
235
|
+
}
|
236
|
+
:host([d="h"]:not([av])) {
|
237
|
+
align-items: flex-start;
|
238
|
+
}
|
239
|
+
:host([d="h"][av="c"]) {
|
240
|
+
align-items: center;
|
241
|
+
align-content: center;
|
242
|
+
}
|
243
|
+
:host([d="h"][av="e"]) {
|
244
|
+
align-items: flex-end;
|
245
|
+
align-content: flex-end;
|
246
|
+
}
|
247
|
+
:host(:not([d]):not([ah])) {
|
248
|
+
align-items: flex-start;
|
249
|
+
}
|
250
|
+
:host(:not([d])[ah="c"]) {
|
251
|
+
align-items: center;
|
252
|
+
align-content: center;
|
253
|
+
}
|
254
|
+
:host(:not([d])[ah="e"]) {
|
255
|
+
align-items: flex-end;
|
256
|
+
align-content: flex-end;
|
257
|
+
}
|
258
|
+
:host(:not([d]):not([av])) {
|
259
|
+
justify-content: flex-start;
|
260
|
+
}
|
261
|
+
:host(:not([d])[av="c"]) {
|
262
|
+
justify-content: center;
|
263
|
+
}
|
264
|
+
:host(:not([d])[av="e"]) {
|
265
|
+
justify-content: flex-end;
|
266
|
+
}
|
267
|
+
@media screen and (max-width: 640px) {
|
268
|
+
:host([s-d="v"]) {
|
269
|
+
flex-direction: column;
|
270
|
+
}
|
271
|
+
:host([s-d="h"]) {
|
272
|
+
flex-direction: row;
|
273
|
+
}
|
274
|
+
:host([s-d="h"][s-av="c"]) {
|
275
|
+
align-items: center;
|
276
|
+
align-content: center;
|
277
|
+
}
|
278
|
+
:host([s-d="v"][s-av="c"]) {
|
279
|
+
justify-content: center;
|
280
|
+
}
|
281
|
+
}
|
282
|
+
`;var te={cur:"cursor"},ee={cur:{p:"pointer",m:"move",grab:"grab",grabbing:"grabbing"}},x=y(te,ee);var U=m`
|
283
|
+
:host([sh]:not([sv])) {
|
284
|
+
overflow-x: scroll;
|
285
|
+
flex-wrap: nowrap;
|
286
|
+
}
|
287
|
+
:host([sv]:not([sh])) {
|
288
|
+
overflow-y: scroll;
|
289
|
+
flex-wrap: nowrap;
|
290
|
+
}
|
291
|
+
:host([sh][sv]) {
|
292
|
+
overflow: scroll;
|
293
|
+
flex-wrap: nowrap;
|
294
|
+
}
|
295
|
+
:host([overflow="hidden"]) {
|
296
|
+
overflow: hidden;
|
297
|
+
flex-wrap: nowrap;
|
298
|
+
}
|
299
|
+
|
300
|
+
`;var z={xs:"--border-width-xs",s:"--border-width-s",m:"--border-width-m",l:"--border-width-l",xl:"--border-width-xl"},oe={pos:"position",shadow:"box-shadow",pt:"padding-top",pr:"padding-right",pb:"padding-bottom",pl:"padding-left",p:"padding",ph:"padding-left padding-right",pv:"padding-top padding-bottom",g:"gap",gv:"row-gap",gh:"column-gap",bw:"border-width",bwt:"border-top-width",bwr:"border-right-width",bwb:"border-bottom-width",bwl:"border-left-width",bc:"border-color",br:"border-radius"},re={bgc:{p:`
|
301
|
+
background-color: var(--color-primary);
|
302
|
+
color: var(--color-on-primary);
|
303
|
+
`,pc:`
|
304
|
+
background-color: var(--color-primary-container);
|
305
|
+
color: var(--color-on-primary-container);
|
306
|
+
`,s:`
|
307
|
+
background-color: var(--color-secondary);
|
308
|
+
color: var(--color-on-secondary);
|
309
|
+
`,sc:`
|
310
|
+
background-color: var(--color-secondary-container);
|
311
|
+
color: var(--color-on-secondary-container);
|
312
|
+
`,e:`
|
313
|
+
background-color: var(--color-error);
|
314
|
+
color: var(--color-on-error);
|
315
|
+
`,ec:`
|
316
|
+
background-color: var(--color-error-container);
|
317
|
+
color: var(--color-on-error-container);
|
318
|
+
`,su:`
|
319
|
+
background-color: var(--color-surface);
|
320
|
+
color: var(--color-on-surface);
|
321
|
+
`,sucl:`
|
322
|
+
background-color: var(--color-surface-container-low);
|
323
|
+
color: var(--color-on-surface);
|
324
|
+
`,suc:`
|
325
|
+
background-color: var(--color-surface-container);
|
326
|
+
color: var(--color-on-surface);
|
327
|
+
`,such:`
|
328
|
+
background-color: var(--color-surface-container-high);
|
329
|
+
color: var(--color-on-surface);
|
330
|
+
`,isu:`
|
331
|
+
background-color: var(--color-inverse-surface);
|
332
|
+
color: var(--color-inverse-on-surface);
|
333
|
+
`,o:`
|
334
|
+
background-color: var(--color-outline);
|
335
|
+
`,ov:`
|
336
|
+
background-color: var(--color-outline-variant);
|
337
|
+
`},pos:{rel:"relative",abs:"absolute",fix:"fixed"},cor:{full:`
|
338
|
+
top: 0;
|
339
|
+
right: 0;
|
340
|
+
bottom: 0;
|
341
|
+
left: 0;
|
342
|
+
height: 100%;
|
343
|
+
`,top:`
|
344
|
+
top: 0;
|
345
|
+
right: 0;
|
346
|
+
left: 0;
|
347
|
+
`,right:`
|
348
|
+
top: 0;
|
349
|
+
right: 0;
|
350
|
+
bottom: 0;
|
351
|
+
height: 100%;
|
352
|
+
`,bottom:`
|
353
|
+
right: 0;
|
354
|
+
bottom: 0;
|
355
|
+
left: 0;
|
356
|
+
`,left:`
|
357
|
+
bottom: 0;
|
358
|
+
left: 0;
|
359
|
+
top: 0;
|
360
|
+
height: 100%;
|
361
|
+
`},shadow:{s:"--shadow-s",m:"--shadow-m",l:"--shadow-l"},pt:f,pr:f,pb:f,pl:f,p:f,ph:f,pv:f,g:f,gv:f,gh:f,bw:z,bwt:z,bwr:z,bwb:z,bwl:z,bc:{p:"--color-primary",pc:"--color-primary-container",s:"--color-secondary",sc:"--color-secondary-container",e:"--color-error",ec:"--color-error-container",su:"--color-surface",sucl:"--color-surface-container-low",suc:"--color-surface-container",such:"--color-surface-container-high",isu:"--color-inverse-surface",o:"--color-outline",ov:"--color-outline-variant"},br:{xs:"--border-radius-xs",s:"--border-radius-s",m:"--border-radius-m",l:"--border-radius-l",xl:"--border-radius-xl",f:"50%"}},E=y(oe,re);var se={mt:"margin-top",mr:"margin-right",mb:"margin-bottom",ml:"margin-left",m:"margin",mh:"margin-left margin-right",mv:"margin-top margin-bottom"},ne={mt:f,mr:f,mb:f,ml:f,m:f,mh:f,mv:f},C=y(se,ne);var xt=({render:e,html:t})=>{let o=new CSSStyleSheet;return o.replaceSync(m`
|
362
|
+
slot {
|
363
|
+
display: contents;
|
364
|
+
}
|
365
|
+
:host([hidden]) {
|
366
|
+
display: none;
|
367
|
+
}
|
368
|
+
:host {
|
369
|
+
display: flex;
|
370
|
+
align-self: auto;
|
371
|
+
align-content: flex-start;
|
372
|
+
flex-wrap: wrap;
|
373
|
+
border-style: solid;
|
374
|
+
border-width: 0;
|
375
|
+
box-sizing: border-box;
|
376
|
+
}
|
377
|
+
:host([stretch]) {
|
378
|
+
align-self: stretch;
|
379
|
+
}
|
380
|
+
${$}
|
381
|
+
${U}
|
382
|
+
${P}
|
383
|
+
${C}
|
384
|
+
${x}
|
385
|
+
${E}
|
386
|
+
`),class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[o],e(this.shadow,this.render)}static get observedAttributes(){return["key","wh","w","h","hidden","s-w","s-h","s-d"]}_styles={default:{},s:{}};attributeChangedCallback(s,i,a){["default","s"].forEach(r=>{let g=u=>`${r==="default"?"":`${r}-`}${u}`,p=this.getAttribute(g("wh")),l=v(p===null?this.getAttribute(g("w")):p),h=v(p===null?this.getAttribute(g("h")):p),c=this.getAttribute(g("o")),d=this.getAttribute(g("z"));d!==null&&(this._styles[r]["z-index"]=d),c!==null&&(this._styles[r].opacity=c),l==="f"?this._styles[r].width="100%":l!==void 0&&(this._styles[r].width=l,this._styles[r]["min-width"]=l,this._styles[r]["max-width"]=l),h==="f"?this._styles[r].height="100%":h!==void 0&&(this._styles[r].height=h,this._styles[r]["min-height"]=h,this._styles[r]["max-height"]=h),this.hasAttribute("hidden")&&(this._styles[r].display="none")}),e(this.shadow,this.render)}render=()=>t`
|
387
|
+
<style>
|
388
|
+
${W(this._styles)}
|
389
|
+
</style>
|
390
|
+
<slot></slot>
|
391
|
+
`}};var ie={at:"text-align"},ae={at:{c:"center",e:"right",j:"justify"},s:{dm:`
|
392
|
+
font-size: var(--typography-display-m-font-size);
|
393
|
+
font-weight: var(--typography-display-m-font-weight);
|
394
|
+
line-height: var(--typography-display-m-line-height);
|
395
|
+
letter-spacing: var(--typography-display-m-letter-spacing);
|
396
|
+
`,hm:`
|
397
|
+
font-size: var(--typography-headline-m-font-size);
|
398
|
+
font-weight: var(--typography-headline-m-font-weight);
|
399
|
+
line-height: var(--typography-headline-m-line-height);
|
400
|
+
letter-spacing: var(--typography-headline-m-letter-spacing);
|
401
|
+
`,tl:`
|
402
|
+
font-size: var(--typography-title-l-font-size);
|
403
|
+
font-weight: var(--typography-title-l-font-weight);
|
404
|
+
line-height: var(--typography-title-l-line-height);
|
405
|
+
letter-spacing: var(--typography-title-l-letter-spacing);
|
406
|
+
`,tm:`
|
407
|
+
font-size: var(--typography-title-m-font-size);
|
408
|
+
font-weight: var(--typography-title-m-font-weight);
|
409
|
+
line-height: var(--typography-title-m-line-height);
|
410
|
+
letter-spacing: var(--typography-title-m-letter-spacing);
|
411
|
+
`,ts:`
|
412
|
+
font-size: var(--typography-title-s-font-size);
|
413
|
+
font-weight: var(--typography-title-s-font-weight);
|
414
|
+
line-height: var(--typography-title-s-line-height);
|
415
|
+
letter-spacing: var(--typography-title-s-letter-spacing);
|
416
|
+
`,bl:`
|
417
|
+
font-size: var(--typography-body-l-font-size);
|
418
|
+
font-weight: var(--typography-body-l-font-weight);
|
419
|
+
line-height: var(--typography-body-l-line-height);
|
420
|
+
letter-spacing: var(--typography-body-l-letter-spacing);
|
421
|
+
`,bm:`
|
422
|
+
font-size: var(--typography-body-m-font-size);
|
423
|
+
font-weight: var(--typography-body-m-font-weight);
|
424
|
+
line-height: var(--typography-body-m-line-height);
|
425
|
+
letter-spacing: var(--typography-body-m-letter-spacing);
|
426
|
+
`,bs:`
|
427
|
+
font-size: var(--typography-body-s-font-size);
|
428
|
+
font-weight: var(--typography-body-s-font-weight);
|
429
|
+
line-height: var(--typography-body-s-line-height);
|
430
|
+
letter-spacing: var(--typography-body-s-letter-spacing);
|
431
|
+
`,ll:`
|
432
|
+
font-size: var(--typography-label-l-font-size);
|
433
|
+
font-weight: var(--typography-label-l-font-weight);
|
434
|
+
line-height: var(--typography-label-l-line-height);
|
435
|
+
letter-spacing: var(--typography-label-l-letter-spacing);
|
436
|
+
`,lm:`
|
437
|
+
font-size: var(--typography-label-m-font-size);
|
438
|
+
font-weight: var(--typography-label-m-font-weight);
|
439
|
+
line-height: var(--typography-label-m-line-height);
|
440
|
+
letter-spacing: var(--typography-label-m-letter-spacing);
|
441
|
+
`}},St=y(ie,ae);var le={c:"color"},he={c:{"on-p":"--color-on-primary","on-pc":"--color-on-primary-container","on-s":"--color-on-secondary","on-sc":"--color-on-secondary-container","on-su":"--color-on-surface","on-su-v":"--color-on-surface-variant","i-on-su":"--color-inverse-on-surface","on-e":"--color-on-error","on-ec":"--color-on-error-container"}},F=y(le,he);var $t=({render:e,html:t})=>{let o=new CSSStyleSheet;o.replaceSync(m`
|
442
|
+
:host {
|
443
|
+
display: block;
|
444
|
+
}
|
445
|
+
slot {
|
446
|
+
display: contents;
|
447
|
+
}
|
448
|
+
:host ::slotted(a) {
|
449
|
+
text-decoration: var(--anchor-text-decoration);
|
450
|
+
color: var(--anchor-color);
|
451
|
+
}
|
452
|
+
:host ::slotted(a:hover) {
|
453
|
+
text-decoration: var(--anchor-text-decoration-hover);
|
454
|
+
color: var(--anchor-color-hover);
|
455
|
+
}
|
456
|
+
${St}
|
457
|
+
${F}
|
458
|
+
${C}
|
459
|
+
${x}
|
460
|
+
`);class n extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[o]}static get observedAttributes(){return["key","w","ellipsis"]}connectedCallback(){e(this.shadow,this.render)}attributeChangedCallback(i,a,r){let g=v(this.getAttribute("w"));this.hasAttribute("ellipsis")&&(this.style.overflow="hidden",this.style.textOverflow="ellipsis",this.style.whiteSpace="nowrap"),g==="f"?this.style.width="100%":g!==void 0&&(this.style.width=g),e(this.shadow,this.render)}render=()=>t` <slot></slot> `}return n};var Ct=({render:e,html:t})=>{let o=new CSSStyleSheet;return o.replaceSync(m`
|
461
|
+
:host {
|
462
|
+
border-style: solid;
|
463
|
+
box-sizing: border-box;
|
464
|
+
overflow: hidden;
|
465
|
+
border-width: 0;
|
466
|
+
}
|
467
|
+
slot {
|
468
|
+
display: contents;
|
469
|
+
}
|
470
|
+
:host([of="con"]) img {
|
471
|
+
object-fit: contain;
|
472
|
+
}
|
473
|
+
:host([of="cov"]) img {
|
474
|
+
object-fit: cover;
|
475
|
+
}
|
476
|
+
:host([of="none"]) img {
|
477
|
+
object-fit: none;
|
478
|
+
}
|
479
|
+
img {
|
480
|
+
height: 100%;
|
481
|
+
width: 100%;
|
482
|
+
}
|
483
|
+
${E}
|
484
|
+
${C}
|
485
|
+
${x}
|
486
|
+
`),class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[o]}_styles={default:{},s:{}};static get observedAttributes(){return["key","src","wh","w","h","hidden","height","width","s-wh","s-w","s-h"]}connectedCallback(){e(this.shadow,this.render)}attributeChangedCallback(s,i,a){["default","s"].forEach(r=>{let g=u=>`${r==="default"?"":`${r}-`}${u}`,p=this.getAttribute(g("wh")),l=v(p===null?this.getAttribute(g("w")):p),h=v(p===null?this.getAttribute(g("h")):p),c=this.getAttribute(g("o")),d=this.getAttribute(g("z"));d!==null&&(this._styles[r].zIndex=d),c!==null&&(this._styles[r].opacity=c),l==="f"?this._styles[r].width="100%":l!==void 0&&(this._styles[r].width=l,this._styles[r]["min-width"]=l,this._styles[r]["max-width"]=l),h==="f"?this._styles[r].height="100%":h!==void 0&&(this._styles[r].height=h,this._styles[r]["min-height"]=h,this._styles[r]["max-height"]=h)}),e(this.shadow,this.render)}render=()=>t`
|
487
|
+
<style>
|
488
|
+
${W(this._styles)}
|
489
|
+
</style>
|
490
|
+
<img
|
491
|
+
src="${this.getAttribute("src")}"
|
492
|
+
width="${this.getAttribute("width")}"
|
493
|
+
height="${this.getAttribute("height")}"
|
494
|
+
/>
|
495
|
+
`}};var kt=m`
|
496
|
+
:host([pt="xs"]) svg {
|
497
|
+
padding-top: var(--spacing-xs);
|
498
|
+
}
|
499
|
+
:host([pt="s"]) svg {
|
500
|
+
padding-top: var(--spacing-s);
|
501
|
+
}
|
502
|
+
:host([pt="m"]) svg {
|
503
|
+
padding-top: var(--spacing-m);
|
504
|
+
}
|
505
|
+
:host([pt="l"]) svg {
|
506
|
+
padding-top: var(--spacing-l);
|
507
|
+
}
|
508
|
+
:host([pt="xl"]) svg {
|
509
|
+
padding-top: var(--spacing-xl);
|
510
|
+
}
|
511
|
+
:host([pr="xs"]) svg {
|
512
|
+
padding-right: var(--spacing-xs);
|
513
|
+
}
|
514
|
+
:host([pr="s"]) svg {
|
515
|
+
padding-right: var(--spacing-s);
|
516
|
+
}
|
517
|
+
:host([pr="m"]) svg {
|
518
|
+
padding-right: var(--spacing-m);
|
519
|
+
}
|
520
|
+
:host([pr="l"]) svg {
|
521
|
+
padding-right: var(--spacing-l);
|
522
|
+
}
|
523
|
+
:host([pr="xl"]) svg {
|
524
|
+
padding-right: var(--spacing-xl);
|
525
|
+
}
|
526
|
+
:host([pb="xs"]) svg {
|
527
|
+
padding-bottom: var(--spacing-xs);
|
528
|
+
}
|
529
|
+
:host([pb="s"]) svg {
|
530
|
+
padding-bottom: var(--spacing-s);
|
531
|
+
}
|
532
|
+
:host([pb="m"]) svg {
|
533
|
+
padding-bottom: var(--spacing-m);
|
534
|
+
}
|
535
|
+
:host([pb="l"]) svg {
|
536
|
+
padding-bottom: var(--spacing-l);
|
537
|
+
}
|
538
|
+
:host([pb="xl"]) svg {
|
539
|
+
padding-bottom: var(--spacing-xl);
|
540
|
+
}
|
541
|
+
:host([pl="xs"]) svg {
|
542
|
+
padding-left: var(--spacing-xs);
|
543
|
+
}
|
544
|
+
:host([pl="s"]) svg {
|
545
|
+
padding-left: var(--spacing-s);
|
546
|
+
}
|
547
|
+
:host([pl="m"]) svg {
|
548
|
+
padding-left: var(--spacing-m);
|
549
|
+
}
|
550
|
+
:host([pl="l"]) svg {
|
551
|
+
padding-left: var(--spacing-l);
|
552
|
+
}
|
553
|
+
:host([pl="xl"]) svg {
|
554
|
+
padding-left: var(--spacing-xl);
|
555
|
+
}
|
556
|
+
:host([p="xs"]) svg {
|
557
|
+
padding: var(--spacing-xs);
|
558
|
+
}
|
559
|
+
:host([p="s"]) svg {
|
560
|
+
padding: var(--spacing-s);
|
561
|
+
}
|
562
|
+
:host([p="m"]) svg {
|
563
|
+
padding: var(--spacing-m);
|
564
|
+
}
|
565
|
+
:host([p="l"]) svg {
|
566
|
+
padding: var(--spacing-l);
|
567
|
+
}
|
568
|
+
:host([p="xl"]) svg {
|
569
|
+
padding: var(--spacing-xl);
|
570
|
+
}
|
571
|
+
:host([ph="xs"]) svg {
|
572
|
+
padding-left: var(--spacing-xs);
|
573
|
+
padding-right: var(--spacing-xs);
|
574
|
+
}
|
575
|
+
:host([ph="s"]) svg {
|
576
|
+
padding-left: var(--spacing-s);
|
577
|
+
padding-right: var(--spacing-s);
|
578
|
+
}
|
579
|
+
:host([ph="m"]) svg {
|
580
|
+
padding-left: var(--spacing-m);
|
581
|
+
padding-right: var(--spacing-m);
|
582
|
+
}
|
583
|
+
:host([ph="l"]) svg {
|
584
|
+
padding-left: var(--spacing-l);
|
585
|
+
padding-right: var(--spacing-l);
|
586
|
+
}
|
587
|
+
:host([ph="xl"]) svg {
|
588
|
+
padding-left: var(--spacing-xl);
|
589
|
+
padding-right: var(--spacing-xl);
|
590
|
+
}
|
591
|
+
:host([pv="xs"]) svg {
|
592
|
+
padding-top: var(--spacing-xs);
|
593
|
+
padding-bottom: var(--spacing-xs);
|
594
|
+
}
|
595
|
+
:host([pv="s"]) svg {
|
596
|
+
padding-top: var(--spacing-s);
|
597
|
+
padding-bottom: var(--spacing-s);
|
598
|
+
}
|
599
|
+
:host([pv="m"]) svg {
|
600
|
+
padding-top: var(--spacing-m);
|
601
|
+
padding-bottom: var(--spacing-m);
|
602
|
+
}
|
603
|
+
:host([pv="l"]) svg {
|
604
|
+
padding-top: var(--spacing-l);
|
605
|
+
padding-bottom: var(--spacing-l);
|
606
|
+
}
|
607
|
+
:host([pv="xl"]) svg {
|
608
|
+
padding-top: var(--spacing-xl);
|
609
|
+
padding-bottom: var(--spacing-xl);
|
610
|
+
}
|
611
|
+
`;var _t=({render:e,html:t})=>{let o=new CSSStyleSheet;return o.replaceSync(m`
|
612
|
+
${F}
|
613
|
+
${kt}
|
614
|
+
${$}
|
615
|
+
${x}
|
616
|
+
`),class G extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[o]}static _icons={};static get observedAttributes(){return["key","svg","w","h","wh"]}static get icons(){return G._icons}static addIcon(s,i){G._icons[s]=i}connectedCallback(){this.render()}attributeChangedCallback(s,i,a){let r=this.getAttribute("wh"),g=v(r===null?this.getAttribute("w"):r),p=v(r===null?this.getAttribute("h"):r);g&&(this.style.width=g),p&&(this.style.height=p),this.render()}render=()=>{try{let s=this.getAttribute("svg"),i=G._icons[s]||(window.rtglIcons||{})[s];if(i){this.shadow.innerHTML=i;return}}catch(s){console.log("error in rtgl-svg render",s)}this.shadow.innerHTML=""}}};var At=({render:e,html:t})=>{let o=new CSSStyleSheet;return o.replaceSync(m`
|
617
|
+
slot {
|
618
|
+
display: contents;
|
619
|
+
}
|
620
|
+
:host([hidden]) {
|
621
|
+
display: none;
|
622
|
+
}
|
623
|
+
:host {
|
624
|
+
display: flex;
|
625
|
+
align-self: auto;
|
626
|
+
align-content: flex-start;
|
627
|
+
flex-wrap: wrap;
|
628
|
+
border-style: solid;
|
629
|
+
border-width: 0;
|
630
|
+
box-sizing: border-box;
|
631
|
+
}
|
632
|
+
:host([stretch]) {
|
633
|
+
align-self: stretch;
|
634
|
+
}
|
635
|
+
${$}
|
636
|
+
${U}
|
637
|
+
${P}
|
638
|
+
${C}
|
639
|
+
${x}
|
640
|
+
${E}
|
641
|
+
`),class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[o]}connectedCallback(){e(this.shadow,this.render)}static get observedAttributes(){return["key","wh","w","h","hidden","s-w","s-h","s-d"]}_styles={default:{},s:{}};attributeChangedCallback(s,i,a){["default","s"].forEach(r=>{let g=u=>`${r==="default"?"":`${r}-`}${u}`,p=this.getAttribute(g("wh")),l=v(p===null?this.getAttribute(g("w")):p),h=v(p===null?this.getAttribute(g("h")):p),c=this.getAttribute(g("o")),d=this.getAttribute(g("z"));d!==null&&(this._styles[r]["z-index"]=d),c!==null&&(this._styles[r].opacity=c),l==="f"?this._styles[r].width="100%":l!==void 0&&(this._styles[r].width=l,this._styles[r]["min-width"]=l,this._styles[r]["max-width"]=l),h==="f"?this._styles[r].height="100%":h!==void 0&&(this._styles[r].height=h,this._styles[r]["min-height"]=h,this._styles[r]["max-height"]=h),this.hasAttribute("hidden")&&(this._styles[r].display="none")}),setTimeout(()=>{e(this.shadow,this.render)},0)}render=()=>t`
|
642
|
+
<style>
|
643
|
+
${W(this._styles)}
|
644
|
+
</style>
|
645
|
+
<slot name="top"></slot>
|
646
|
+
${this.items?.map((s,i)=>(typeof this.itemsRenderer=="function"?this.itemsRenderer:this.itemsRenderer.maps[s[this.itemsRenderer.key]])(s,i))}
|
647
|
+
<slot name="bottom"></slot>
|
648
|
+
`}};customElements.define("rtgl-button",wt({render:R,html:A}));customElements.define("rtgl-view",xt({render:R,html:A}));customElements.define("rtgl-text",$t({render:R,html:A}));customElements.define("rtgl-image",Ct({render:R,html:A}));customElements.define("rtgl-svg",_t({render:R,html:A}));customElements.define("rtgl-list-view",At({render:R,html:A}));})();
|
649
|
+
/*! (c) Andrea Giammarchi - MIT */
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "rettangoli-ui",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.9-rc2",
|
4
4
|
"description": "A UI component library for building web interfaces.",
|
5
5
|
"main": "entry-esm.js",
|
6
6
|
"type": "module",
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"license": "MIT",
|
19
19
|
"scripts": {
|
20
20
|
"dev": "npx @11ty/eleventy@3.0.0-beta.1 --serve --port 3000",
|
21
|
-
"build": "node esbuild.js
|
21
|
+
"build": "node esbuild.js"
|
22
22
|
},
|
23
23
|
"devDependencies": {
|
24
24
|
"esbuild": "^0.20.0",
|