rettangoli-ui 0.0.9-rc1 → 0.0.9
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 +279 -281
- package/dist/rettangoli-iife-layout.min.js +245 -246
- package/dist/rettangoli-iife-ui.min.js +278 -279
- package/package.json +1 -1
@@ -1,24 +1,24 @@
|
|
1
|
-
|
2
|
-
:host([${
|
3
|
-
${
|
1
|
+
function d(o,...l){let s="";return o.forEach((u,e)=>{s+=u+(l[e]||"")}),s}var M={default:void 0,s:"@media only screen and (max-width: 640px)"},f=(o,l,s={})=>{let u="";for(let[e,h]of Object.entries(M)){e!=="default"&&(u+=`${h} {`);for(let[g,t]of Object.entries(l)){let r=s[g]?` ${s[g]} `:" ";for(let[n,a]of Object.entries(t)){let c=o[g],m=a.startsWith("--")?`var(${a})`:a,b=e==="default"?g:`${e}-${g}`,y=e==="default"?`h-${g}`:`${e}-h-${g}`;if(c){let j=c.split(" ").map(z=>`${z}: ${m};`).join(" ");u+=`
|
2
|
+
:host([${b}="${n}"])${r}{
|
3
|
+
${j}
|
4
4
|
}
|
5
|
-
:host([${
|
6
|
-
${
|
5
|
+
:host([${y}="${n}"]:hover)${r}{
|
6
|
+
${j}
|
7
7
|
}
|
8
|
-
`}else
|
9
|
-
:host([${
|
10
|
-
${
|
8
|
+
`}else u+=`
|
9
|
+
:host([${b}="${n}"])${r}{
|
10
|
+
${a}
|
11
11
|
}
|
12
|
-
:host([${
|
13
|
-
${
|
12
|
+
:host([${y}="${n}"]:hover)${r}{
|
13
|
+
${a}
|
14
14
|
}
|
15
|
-
`}}
|
16
|
-
`);let
|
17
|
-
`);
|
18
|
-
${
|
15
|
+
`}}e!=="default"&&(u+="}")}return u};function E(o){if(o===null||o.includes("/"))return!1;let l=String(o);return/[0-9]$/.test(l)}var L=o=>/%$/.test(o),p=o=>{if(o!==void 0)return L(o)?o:E(o)?`${o}px`:o},i={xs:"--spacing-xs",s:"--spacing-s",m:"--spacing-m",l:"--spacing-l",xl:"--spacing-xl"};function S(o){let l="";for(let[s,u]of Object.entries(M)){s!=="default"&&(l+=`${u} {
|
16
|
+
`);let e="";for(let[h,g]of Object.entries(o[s]))g!=null&&(e+=`${h}: ${g};
|
17
|
+
`);l+=`:host {
|
18
|
+
${e.trim()}
|
19
19
|
}
|
20
|
-
`,
|
21
|
-
`)}return
|
20
|
+
`,s!=="default"&&(l+=`}
|
21
|
+
`)}return l}var w=d`
|
22
22
|
:host([flex="0"]) {
|
23
23
|
flex: 0;
|
24
24
|
}
|
@@ -58,164 +58,164 @@ var{isArray:pt}=Array,{getPrototypeOf:Nt,getOwnPropertyDescriptor:Rt}=Object,C=[
|
|
58
58
|
:host([flex="12"]) {
|
59
59
|
flex: 12;
|
60
60
|
}
|
61
|
-
`;var
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
61
|
+
`;var O={mt:"margin-top",mr:"margin-right",mb:"margin-bottom",ml:"margin-left",m:"margin",mh:"margin-left margin-right",mv:"margin-top margin-bottom"},H={mt:i,mr:i,mb:i,ml:i,m:i,mh:i,mv:i},I={mt:"button",mr:"button",mb:"button",ml:"button",m:"button",mh:"button",mv:"button"},T=f(O,H,I);var U=({render:o,html:l})=>{let s=new CSSStyleSheet;return s.replaceSync(d`
|
62
|
+
:host {
|
63
|
+
display: contents;
|
64
|
+
}
|
65
|
+
slot {
|
66
|
+
display: contents;
|
67
|
+
}
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
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
77
|
|
78
|
-
|
79
|
-
|
80
|
-
|
78
|
+
button:hover {
|
79
|
+
cursor: pointer;
|
80
|
+
}
|
81
81
|
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
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
89
|
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
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
96
|
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
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
103
|
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
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
111
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
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
118
|
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
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
125
|
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
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
133
|
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
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
140
|
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
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
147
|
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
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
155
|
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
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
162
|
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
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
169
|
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
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
179
|
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
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
189
|
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
`)
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
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
|
+
${T}
|
204
|
+
${w}
|
205
|
+
`),class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[s],o(this.shadow,this.render)}static get observedAttributes(){return["key","href","target","w","t"]}_buttonRef={};_assingRef=e=>{this._buttonRef.current=e;let h=p(this.getAttribute("w"));h==="f"?this._buttonRef.current.style.width="100%":h!=null&&(this._buttonRef.current.style.width=h)};attributeChangedCallback(e,h,g){if(!this._buttonRef.current)return;let t=p(this.getAttribute("w"));t==="f"?this._buttonRef.current.style.width="100%":t!=null&&(this._buttonRef.current.style.width=t,this._buttonRef.current.style.minWidth=t,this._buttonRef.current.style.maxWidth=t),o(this.shadow,this.render)}render=()=>this.getAttribute("href")?l`
|
206
|
+
<a
|
207
|
+
href=${this.getAttribute("href")}
|
208
|
+
target=${this.getAttribute("target")}
|
209
|
+
>
|
210
|
+
<button>
|
211
|
+
<slot></slot>
|
212
|
+
</button>
|
213
|
+
</a>
|
214
|
+
`:l`
|
215
|
+
<button ref=${this._assingRef}>
|
216
|
+
<slot></slot>
|
217
|
+
</button>
|
218
|
+
`}};var k=d`
|
219
219
|
|
220
220
|
:host([d="h"]) {
|
221
221
|
flex-direction: row;
|
@@ -279,7 +279,7 @@ var{isArray:pt}=Array,{getPrototypeOf:Nt,getOwnPropertyDescriptor:Rt}=Object,C=[
|
|
279
279
|
justify-content: center;
|
280
280
|
}
|
281
281
|
}
|
282
|
-
`;var
|
282
|
+
`;var P={cur:"cursor"},B={cur:{p:"pointer",m:"move",grab:"grab",grabbing:"grabbing"}},v=f(P,B);var C=d`
|
283
283
|
:host([sh]:not([sv])) {
|
284
284
|
overflow-x: scroll;
|
285
285
|
flex-wrap: nowrap;
|
@@ -297,7 +297,7 @@ var{isArray:pt}=Array,{getPrototypeOf:Nt,getOwnPropertyDescriptor:Rt}=Object,C=[
|
|
297
297
|
flex-wrap: nowrap;
|
298
298
|
}
|
299
299
|
|
300
|
-
`;var
|
300
|
+
`;var _={xs:"--border-width-xs",s:"--border-width-s",m:"--border-width-m",l:"--border-width-l",xl:"--border-width-xl"},D={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"},Q={bgc:{p:`
|
301
301
|
background-color: var(--color-primary);
|
302
302
|
color: var(--color-on-primary);
|
303
303
|
`,pc:`
|
@@ -358,36 +358,37 @@ var{isArray:pt}=Array,{getPrototypeOf:Nt,getOwnPropertyDescriptor:Rt}=Object,C=[
|
|
358
358
|
left: 0;
|
359
359
|
top: 0;
|
360
360
|
height: 100%;
|
361
|
-
`},shadow:{s:"--shadow-s",m:"--shadow-m",l:"--shadow-l"},pt:
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
361
|
+
`},shadow:{s:"--shadow-s",m:"--shadow-m",l:"--shadow-l"},pt:i,pr:i,pb:i,pl:i,p:i,ph:i,pv:i,g:i,gv:i,gh:i,bw:_,bwt:_,bwr:_,bwb:_,bwl:_,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%"}},$=f(D,Q);var F={mt:"margin-top",mr:"margin-right",mb:"margin-bottom",ml:"margin-left",m:"margin",mh:"margin-left margin-right",mv:"margin-top margin-bottom"},G={mt:i,mr:i,mb:i,ml:i,m:i,mh:i,mv:i},x=f(F,G);var N=({render:o,html:l})=>{let s=new CSSStyleSheet;return s.replaceSync(d`
|
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
|
+
${w}
|
381
|
+
${C}
|
380
382
|
${k}
|
381
|
-
${
|
382
|
-
${
|
383
|
-
${_}
|
383
|
+
${x}
|
384
|
+
${v}
|
384
385
|
${$}
|
385
|
-
${
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
386
|
+
`),class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[s],o(this.shadow,this.render)}static get observedAttributes(){return["key","wh","w","h","hidden","s-w","s-h","s-d"]}_styles={default:{},s:{}};attributeChangedCallback(e,h,g){["default","s"].forEach(t=>{let r=y=>`${t==="default"?"":`${t}-`}${y}`,n=this.getAttribute(r("wh")),a=p(n===null?this.getAttribute(r("w")):n),c=p(n===null?this.getAttribute(r("h")):n),m=this.getAttribute(r("o")),b=this.getAttribute(r("z"));b!==null&&(this._styles[t]["z-index"]=b),m!==null&&(this._styles[t].opacity=m),a==="f"?this._styles[t].width="100%":a!==void 0&&(this._styles[t].width=a,this._styles[t]["min-width"]=a,this._styles[t]["max-width"]=a),c==="f"?this._styles[t].height="100%":c!==void 0&&(this._styles[t].height=c,this._styles[t]["min-height"]=c,this._styles[t]["max-height"]=c),this.hasAttribute("hidden")&&(this._styles[t].display="none")}),o(this.shadow,this.render)}render=()=>l`
|
387
|
+
<style>
|
388
|
+
${S(this._styles)}
|
389
|
+
</style>
|
390
|
+
<slot></slot>
|
391
|
+
`}};var q={at:"text-align"},J={at:{c:"center",e:"right",j:"justify"},s:{dm:`
|
391
392
|
font-size: var(--typography-display-m-font-size);
|
392
393
|
font-weight: var(--typography-display-m-font-weight);
|
393
394
|
line-height: var(--typography-display-m-line-height);
|
@@ -437,63 +438,61 @@ var{isArray:pt}=Array,{getPrototypeOf:Nt,getOwnPropertyDescriptor:Rt}=Object,C=[
|
|
437
438
|
font-weight: var(--typography-label-m-font-weight);
|
438
439
|
line-height: var(--typography-label-m-line-height);
|
439
440
|
letter-spacing: var(--typography-label-m-letter-spacing);
|
440
|
-
`}},
|
441
|
-
:host {
|
442
|
-
|
443
|
-
}
|
444
|
-
slot {
|
445
|
-
|
446
|
-
}
|
447
|
-
:host ::slotted(a) {
|
448
|
-
|
449
|
-
|
450
|
-
}
|
451
|
-
:host ::slotted(a:hover) {
|
452
|
-
|
453
|
-
|
454
|
-
}
|
455
|
-
${
|
456
|
-
${
|
457
|
-
${
|
458
|
-
${
|
459
|
-
`);
|
460
|
-
|
461
|
-
|
462
|
-
:
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
}
|
484
|
-
${
|
485
|
-
${
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
>
|
496
|
-
`},ve=nt;var Wt=m`
|
441
|
+
`}},W=f(q,J);var K={c:"color"},X={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"}},A=f(K,X);var Y=({render:o,html:l})=>{let s=new CSSStyleSheet;s.replaceSync(d`
|
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
|
+
${W}
|
457
|
+
${A}
|
458
|
+
${x}
|
459
|
+
${v}
|
460
|
+
`);class u extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[s]}static get observedAttributes(){return["key","w","ellipsis"]}connectedCallback(){o(this.shadow,this.render)}attributeChangedCallback(h,g,t){let r=p(this.getAttribute("w"));this.hasAttribute("ellipsis")&&(this.style.overflow="hidden",this.style.textOverflow="ellipsis",this.style.whiteSpace="nowrap"),r==="f"?this.style.width="100%":r!==void 0&&(this.style.width=r),o(this.shadow,this.render)}render=()=>l` <slot></slot> `}return u};var Z=({render:o,html:l})=>{let s=new CSSStyleSheet;return s.replaceSync(d`
|
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
|
+
${$}
|
484
|
+
${x}
|
485
|
+
${v}
|
486
|
+
`),class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[s]}_styles={default:{},s:{}};static get observedAttributes(){return["key","src","wh","w","h","hidden","height","width","s-wh","s-w","s-h"]}connectedCallback(){o(this.shadow,this.render)}attributeChangedCallback(e,h,g){["default","s"].forEach(t=>{let r=y=>`${t==="default"?"":`${t}-`}${y}`,n=this.getAttribute(r("wh")),a=p(n===null?this.getAttribute(r("w")):n),c=p(n===null?this.getAttribute(r("h")):n),m=this.getAttribute(r("o")),b=this.getAttribute(r("z"));b!==null&&(this._styles[t].zIndex=b),m!==null&&(this._styles[t].opacity=m),a==="f"?this._styles[t].width="100%":a!==void 0&&(this._styles[t].width=a,this._styles[t]["min-width"]=a,this._styles[t]["max-width"]=a),c==="f"?this._styles[t].height="100%":c!==void 0&&(this._styles[t].height=c,this._styles[t]["min-height"]=c,this._styles[t]["max-height"]=c)}),o(this.shadow,this.render)}render=()=>l`
|
487
|
+
<style>
|
488
|
+
${S(this._styles)}
|
489
|
+
</style>
|
490
|
+
<img
|
491
|
+
src="${this.getAttribute("src")}"
|
492
|
+
width="${this.getAttribute("width")}"
|
493
|
+
height="${this.getAttribute("height")}"
|
494
|
+
/>
|
495
|
+
`}};var V=d`
|
497
496
|
:host([pt="xs"]) svg {
|
498
497
|
padding-top: var(--spacing-xs);
|
499
498
|
}
|
@@ -609,42 +608,41 @@ ${$}
|
|
609
608
|
padding-top: var(--spacing-xl);
|
610
609
|
padding-bottom: var(--spacing-xl);
|
611
610
|
}
|
612
|
-
`;var
|
613
|
-
${
|
614
|
-
${
|
615
|
-
${
|
616
|
-
${
|
617
|
-
`)
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
|
611
|
+
`;var tt=({render:o,html:l})=>{let s=new CSSStyleSheet;return s.replaceSync(d`
|
612
|
+
${A}
|
613
|
+
${V}
|
614
|
+
${w}
|
615
|
+
${v}
|
616
|
+
`),class R extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[s]}static _icons={};static get observedAttributes(){return["key","svg","w","h","wh"]}static get icons(){return R._icons}static addIcon(e,h){R._icons[e]=h}connectedCallback(){this.render()}attributeChangedCallback(e,h,g){let t=this.getAttribute("wh"),r=p(t===null?this.getAttribute("w"):t),n=p(t===null?this.getAttribute("h"):t);r&&(this.style.width=r),n&&(this.style.height=n),this.render()}render=()=>{try{let e=this.getAttribute("svg"),h=R._icons[e]||(window.rtglIcons||{})[e];if(h){this.shadow.innerHTML=h;return}}catch(e){console.log("error in rtgl-svg render",e)}this.shadow.innerHTML=""}}};var ot=({render:o,html:l})=>{let s=new CSSStyleSheet;return s.replaceSync(d`
|
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
|
+
${w}
|
636
|
+
${C}
|
636
637
|
${k}
|
637
|
-
${
|
638
|
-
${
|
639
|
-
${_}
|
638
|
+
${x}
|
639
|
+
${v}
|
640
640
|
${$}
|
641
|
-
${
|
642
|
-
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
`},we=at;export{ne as RettangoliButton,ve as RettangoliImage,we as RettangoliListView,ye as RettangoliSvg,be as RettangoliText,pe as RettangoliView};
|
650
|
-
/*! (c) Andrea Giammarchi - MIT */
|
641
|
+
`),class extends HTMLElement{constructor(){super(),this.shadow=this.attachShadow({mode:"closed"}),this.shadow.adoptedStyleSheets=[s]}connectedCallback(){o(this.shadow,this.render)}static get observedAttributes(){return["key","wh","w","h","hidden","s-w","s-h","s-d"]}_styles={default:{},s:{}};attributeChangedCallback(e,h,g){["default","s"].forEach(t=>{let r=y=>`${t==="default"?"":`${t}-`}${y}`,n=this.getAttribute(r("wh")),a=p(n===null?this.getAttribute(r("w")):n),c=p(n===null?this.getAttribute(r("h")):n),m=this.getAttribute(r("o")),b=this.getAttribute(r("z"));b!==null&&(this._styles[t]["z-index"]=b),m!==null&&(this._styles[t].opacity=m),a==="f"?this._styles[t].width="100%":a!==void 0&&(this._styles[t].width=a,this._styles[t]["min-width"]=a,this._styles[t]["max-width"]=a),c==="f"?this._styles[t].height="100%":c!==void 0&&(this._styles[t].height=c,this._styles[t]["min-height"]=c,this._styles[t]["max-height"]=c),this.hasAttribute("hidden")&&(this._styles[t].display="none")}),setTimeout(()=>{o(this.shadow,this.render)},0)}render=()=>l`
|
642
|
+
<style>
|
643
|
+
${S(this._styles)}
|
644
|
+
</style>
|
645
|
+
<slot name="top"></slot>
|
646
|
+
${this.items?.map((e,h)=>(typeof this.itemsRenderer=="function"?this.itemsRenderer:this.itemsRenderer.maps[e[this.itemsRenderer.key]])(e,h))}
|
647
|
+
<slot name="bottom"></slot>
|
648
|
+
`}};export{U as RettangoliButton,Z as RettangoliImage,ot as RettangoliListView,tt as RettangoliSvg,Y as RettangoliText,N as RettangoliView};
|