scb-wc 0.1.30 → 0.1.32
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/mvc/components/scb-card/scb-card.js +44 -40
- package/mvc/scb-logo.svg +20 -20
- package/mvc/scb.svg +13 -13
- package/package.json +2 -2
- package/scb-card/scb-card.js +33 -29
- package/scb-wc.bundle.js +33 -29
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/vendor-material.js","../../vendor/vendor.js","../../vendor/vendor-lit.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import"../../vendor/vendor-material.js";import{_ as
|
|
2
|
+
import"../../vendor/vendor-material.js";import{_ as lt,b as dt,g as $,h as a,v as o,y as n}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as s}from"../../vendor/decorate.js";import{n as pt,t as v}from"../../vendor/assertClassBrand.js";import"../scb-button/scb-button.js";import{t as W}from"../../vendor/preload-helper.js";import"../scb-icon-button/scb-icon-button.js";import"../scb-list/scb-list.js";import"../scb-avatar/scb-avatar.js";import"../scb-link/scb-link.js";import"../scb-chip/scb-chip.js";import"../scb-tooltip/scb-tooltip.js";(function(){try{var l=typeof globalThis<"u"?globalThis:window;if(!l.__scb_ce_guard_installed__){l.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,r,d){try{customElements.get(e)||t(e,r,d)}catch(b){var h=String(b||"");if(h.indexOf("already been used")===-1&&h.indexOf("NotSupportedError")===-1)throw b}}}}catch{}})();var g,_,S,ht=["standard","list","social","link","action","container"],c={fromAttribute:l=>l??"",toAttribute:l=>typeof l!="string"||l.trim()===""?null:l},i=(g=new WeakSet,_=class extends lt{constructor(...t){super(...t),pt(this,g),this.__managedSocialAttributes=new Set(["social-comments-text","social-comments","social-comments-href","social-likes-text","social-likes","social-likes-hover-content","social-has-liked","social-likes-interactive","social-author","social-author-text","social-author-href"]),this.__isSyncingManagedSocialAttributes=!1,this.type="standard",this.variant="standard",this.direction="dynamic",this.size="large",this.mediaType="",this.mediaHref="",this.mediaAlt="",this.mediaSrcset="",this.mediaSizes="",this.mediaLoading="auto",this.mediaDecoding="async",this.mediaFetchPriority="auto",this.mediaFit="cover",this.mediaPosition="center",this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.mediaPlaceholder=!1,this.cardHref="",this.href="",this.title="",this.cardTitle="",this.subtitle="",this.vignette="",this.vignetteVariant="filled",this.vignetteSpacing=void 0,this.vignetteSpacingTop=void 0,this.vignetteSpacingBottom=void 0,this.vignetteSpacingLeft=void 0,this.vignetteSpacingRight=void 0,this.supportingText="",this.commentsText="",this.commentsDisabled=!1,this.commentsHref="",this.likesText="",this.likesDisabled=!1,this.likesHoverContent="",this.hasLiked=!1,this.likesInteractive=!0,this.author=!1,this.authorText="",this.authorHref="",this.replyEnabled=!1,this.editEnabled=!1,this.deleteEnabled=!1,this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.innerPadding=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.__onImgLoad=e=>{const r=e.currentTarget.closest(".media");r&&r.classList.add("is-loaded")},this.__onKeyDown=e=>{const r=this.__effectiveHref();(e.key==="Enter"||e.key===" ")&&r&&(e.preventDefault(),this.__navigate(r,e))},this.__handleHrefNavigation=e=>{const r=this.__effectiveHref();r&&(e.target.closest("a")||this.__navigate(r,e))}}attributeChangedCallback(t,e,r){this.__isSyncingManagedSocialAttributes&&this.__managedSocialAttributes.has(t)||super.attributeChangedCallback(t,e,r)}get likeButton(){return this.cardType!=="social"?null:this.renderRoot.querySelector(".likes scb-icon-button")}__calcAspectWH(t){const e=(t||"").trim();if(!e)return{w:600,h:400};const r=e.includes("/")?e.split("/"):e.includes(":")?e.split(":"):e.includes("x")?e.split("x"):null;if(r&&r.length===2){const h=Number(r[0]),b=Number(r[1]);if(h>0&&b>0)return{w:h,h:b}}const d=Number(e);return isFinite(d)&&d>0?{w:1e3,h:Math.round(1e3/d)}:{w:600,h:400}}__noWrapText(t){return(t??"").replace(/ /g," ").replace(/-/g,"‑")}__decodeHtmlEntities(t){const e=document.createElement("textarea");return e.innerHTML=t,e.value}__normalizePlainText(t){let e=String(t??"");for(let r=0;r<5;r+=1){const d=this.__decodeHtmlEntities(e);if(d===e)break;e=d}return e.replace(/<\s*(br|\/p|\/div|\/li|\/h[1-6]|\/tr)\b[^>]*>/gi," ").replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim()}get cardType(){const t=(this.type||"standard").toLowerCase();return ht.includes(t)?t:"standard"}__dispatchLikeEvent(t,e){this.dispatchEvent(new CustomEvent(t,{bubbles:!0,composed:!0,detail:e})),this.dispatchEvent(new CustomEvent(t.replace("-",""),{bubbles:!0,composed:!0,detail:e}))}__dispatchSocialActionEvent(t,e){this.dispatchEvent(new CustomEvent(`social-${t}`,{bubbles:!0,composed:!0,detail:{action:t,originalEvent:e}}))}__dispatchCardNavigate(t,e){const r={href:t,originalEvent:e},d=new CustomEvent("card-navigate",{bubbles:!0,composed:!0,cancelable:!0,detail:r});if(this.dispatchEvent(d),d.defaultPrevented)return!1;const h=new CustomEvent("cardnavigate",{bubbles:!0,composed:!0,cancelable:!0,detail:r});return this.dispatchEvent(h),!h.defaultPrevented}__effectiveHref(){return this.cardHref||this.href}__navigate(t,e){t&&this.__dispatchCardNavigate(t,e)&&window.open(t,"_self")}__hasSlottedContent(t){return Array.from(this.children).some(e=>e.getAttribute("slot")===t)}__mediaTemplate(){if(this.__hasSlottedContent("media"))return n`
|
|
3
3
|
<div class="media">
|
|
4
4
|
<slot name="media"></slot>
|
|
5
5
|
</div>
|
|
@@ -25,38 +25,38 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
25
25
|
@load=${this.__onImgLoad}
|
|
26
26
|
/>
|
|
27
27
|
</div>
|
|
28
|
-
`}return null}mapSpacingToken(t){if(!t)return;const e=String(t).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}__syncStringAttribute(t,e){this.__isSyncingManagedSocialAttributes=!0;try{typeof e=="string"&&e.trim()!==""?this.setAttribute(t,e):this.removeAttribute(t)}finally{this.__isSyncingManagedSocialAttributes=!1}}__syncNumberAttribute(t,e){this.__isSyncingManagedSocialAttributes=!0;try{typeof e=="number"&&Number.isFinite(e)?this.setAttribute(t,String(e)):this.removeAttribute(t)}finally{this.__isSyncingManagedSocialAttributes=!1}}__syncBooleanAttribute(t,e){this.__isSyncingManagedSocialAttributes=!0;try{e?this.setAttribute(t,""):this.removeAttribute(t)}finally{this.__isSyncingManagedSocialAttributes=!1}}__syncSocialAttributes(){this.cardType==="social"&&(this.__syncStringAttribute("social-comments-text",this.commentsText),this.__syncNumberAttribute("social-comments",this.comments),this.__syncStringAttribute("social-comments-href",this.commentsHref),this.__syncStringAttribute("social-likes-text",this.likesText),this.__syncNumberAttribute("social-likes",this.likes),this.__syncStringAttribute("social-likes-hover-content",this.likesHoverContent),this.__syncBooleanAttribute("social-has-liked",this.hasLiked),this.__syncBooleanAttribute("social-likes-interactive",this.likesInteractive),this.__syncBooleanAttribute("social-author",this.author),this.__syncStringAttribute("social-author-text",this.authorText),this.__syncStringAttribute("social-author-href",this.authorHref))}render(){const t=this.cardType,e=this.variant?`${this.variant.toLowerCase()}`:"",r=(this.direction||"dynamic").toLowerCase(),d=t!=="list"&&t!=="container"&&r!=="vertical"&&r!=="horizontal"?"dynamic-direction":"",h=t==="list"||t==="container"?"vertical":r==="horizontal"?"horizontal":"vertical",b=this.__effectiveHref(),f=(t==="standard"||t==="social")&&!!b,
|
|
28
|
+
`}return null}mapSpacingToken(t){if(!t)return;const e=String(t).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}__syncStringAttribute(t,e){this.__isSyncingManagedSocialAttributes=!0;try{typeof e=="string"&&e.trim()!==""?this.setAttribute(t,e):this.removeAttribute(t)}finally{this.__isSyncingManagedSocialAttributes=!1}}__syncNumberAttribute(t,e){this.__isSyncingManagedSocialAttributes=!0;try{typeof e=="number"&&Number.isFinite(e)?this.setAttribute(t,String(e)):this.removeAttribute(t)}finally{this.__isSyncingManagedSocialAttributes=!1}}__syncBooleanAttribute(t,e){this.__isSyncingManagedSocialAttributes=!0;try{e?this.setAttribute(t,""):this.removeAttribute(t)}finally{this.__isSyncingManagedSocialAttributes=!1}}__syncSocialAttributes(){this.cardType==="social"&&(this.__syncStringAttribute("social-comments-text",this.commentsText),this.__syncNumberAttribute("social-comments",this.comments),this.__syncStringAttribute("social-comments-href",this.commentsHref),this.__syncStringAttribute("social-likes-text",this.likesText),this.__syncNumberAttribute("social-likes",this.likes),this.__syncStringAttribute("social-likes-hover-content",this.likesHoverContent),this.__syncBooleanAttribute("social-has-liked",this.hasLiked),this.__syncBooleanAttribute("social-likes-interactive",this.likesInteractive),this.__syncBooleanAttribute("social-author",this.author),this.__syncStringAttribute("social-author-text",this.authorText),this.__syncStringAttribute("social-author-href",this.authorHref))}render(){const t=this.cardType,e=this.variant?`${this.variant.toLowerCase()}`:"",r=(this.direction||"dynamic").toLowerCase(),d=t!=="list"&&t!=="container"&&r!=="vertical"&&r!=="horizontal"?"dynamic-direction":"",h=t==="list"||t==="container"?"vertical":r==="horizontal"?"horizontal":"vertical",b=this.__effectiveHref(),f=(t==="standard"||t==="social")&&!!b,U=f?"clickable":"",E=this.date instanceof Date?this.date.toISOString().slice(0,10):this.date||"",H=t==="social"?this.__normalizePlainText(this.supportingText):this.supportingText,w=!!T.call(v(g,this))||this.__hasSlottedContent("heading"),C=!!this.subtitle||this.__hasSlottedContent("subtitle"),F=!!H||this.__hasSlottedContent("supporting-text"),B=!!E||this.__hasSlottedContent("date"),J=this.__hasSlottedContent("footer"),D=(m=!1)=>w?n`
|
|
29
29
|
<div class="header">
|
|
30
30
|
<slot name="heading">
|
|
31
31
|
${m?n`<a class="title" href="${b}" tabindex="-1">${T.call(v(g,this))}</a>`:n`<span class="title">${T.call(v(g,this))}</span>`}
|
|
32
32
|
</slot>
|
|
33
33
|
${m?n`<md-icon>arrow_forward</md-icon>`:o}
|
|
34
34
|
</div>
|
|
35
|
-
`:o,
|
|
35
|
+
`:o,R=()=>C?n`<div class="sub-label"><slot name="subtitle">${this.subtitle}</slot></div>`:o,Q=()=>F?n`<div class="supporting-text"><slot name="supporting-text">${H}</slot></div>`:o,Y=()=>B?n`<div class="date"><slot name="date">${E}</slot></div>`:o,Z=()=>this.__mediaTemplate(),tt=this.vignetteSpacing||o,et=this.vignetteSpacingTop||o,it=this.vignetteSpacingBottom||(this.vignetteSpacing?o:"5"),st=this.vignetteSpacingLeft||o,at=this.vignetteSpacingRight||o,A=!!this.vignette?.trim(),rt=A?n`<scb-chip
|
|
36
36
|
class="content-vignette"
|
|
37
37
|
variant="static"
|
|
38
38
|
static-variant="${this.vignetteVariant==="outline"||this.vignetteVariant==="outlined"?"outlined":"filled"}"
|
|
39
39
|
label="${this.vignette}"
|
|
40
|
-
spacing=${
|
|
41
|
-
spacing-top=${
|
|
42
|
-
spacing-bottom=${
|
|
43
|
-
spacing-left=${
|
|
44
|
-
spacing-right=${
|
|
45
|
-
></scb-chip>`:o,
|
|
46
|
-
${
|
|
40
|
+
spacing=${tt}
|
|
41
|
+
spacing-top=${et}
|
|
42
|
+
spacing-bottom=${it}
|
|
43
|
+
spacing-left=${st}
|
|
44
|
+
spacing-right=${at}
|
|
45
|
+
></scb-chip>`:o,nt=this.__hasSlottedContent("scb-chip")||A,N=()=>this.__hasSlottedContent("scb-chip")?n`<div class="chip-slot"><slot name="scb-chip"></slot></div>`:A?n`<div class="chip-slot">${rt}</div>`:o,x=(m=!1,L=!0,u=!0)=>n`
|
|
46
|
+
${N()}
|
|
47
47
|
<div class="top-content">
|
|
48
|
-
${
|
|
49
|
-
${
|
|
50
|
-
${
|
|
51
|
-
${u?
|
|
48
|
+
${D(m)}
|
|
49
|
+
${R()}
|
|
50
|
+
${L?Q():o}
|
|
51
|
+
${u?Y():o}
|
|
52
52
|
</div>
|
|
53
|
-
`,y=()=>
|
|
53
|
+
`,y=()=>J?n`
|
|
54
54
|
<div class="content footer">
|
|
55
55
|
<slot name="footer"></slot>
|
|
56
56
|
</div>
|
|
57
|
-
`:o,z=m=>n`
|
|
57
|
+
`:o,I=nt||w||C||F||B,z=m=>n`
|
|
58
58
|
<div
|
|
59
|
-
class="scb-card ${e} ${h} ${d} ${
|
|
59
|
+
class="scb-card ${e} ${h} ${d} ${U}"
|
|
60
60
|
@click=${f?this.__handleHrefNavigation:null}
|
|
61
61
|
@keydown=${f?this.__onKeyDown:null}
|
|
62
62
|
style="cursor:${f?"pointer":"default"};"
|
|
@@ -65,7 +65,7 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
65
65
|
aria-label=${T.call(v(g,this))||this.subtitle||"Kort"}
|
|
66
66
|
>
|
|
67
67
|
${f?n`<md-ripple></md-ripple>`:""}
|
|
68
|
-
${
|
|
68
|
+
${Z()}
|
|
69
69
|
${m}
|
|
70
70
|
</div>
|
|
71
71
|
<md-focus-ring></md-focus-ring>
|
|
@@ -76,13 +76,13 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
76
76
|
</div>
|
|
77
77
|
`);case"list":return z(n`
|
|
78
78
|
<div class="full-content">
|
|
79
|
-
${x(!1)}
|
|
80
|
-
<div class="content list">
|
|
79
|
+
${I?x(!1):o}
|
|
80
|
+
<div class="content list ${I?"has-top-content":""}">
|
|
81
81
|
<slot name="list"></slot><slot></slot>
|
|
82
82
|
</div>
|
|
83
83
|
${y()}
|
|
84
84
|
</div>
|
|
85
|
-
`);case"social":const m=this.commentsHref,
|
|
85
|
+
`);case"social":const m=this.commentsHref,L=p=>{p.stopPropagation()},u=p=>{const k=this.renderRoot?.querySelector(".scb-card");k&&(p?k.classList.add("no-hover"):k.classList.remove("no-hover"))},ct=this.commentsText?`${this.commentsText}: `:"",ot=this.likesText?`${this.likesText}: `:"",P=p=>k=>{k.stopPropagation(),this.__dispatchSocialActionEvent(p,k)},M=this.likesDisabled?o:n`
|
|
86
86
|
<span
|
|
87
87
|
class="likes"
|
|
88
88
|
@mouseenter=${()=>u(!0)}
|
|
@@ -100,7 +100,7 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
100
100
|
@hover=${p=>{p.preventDefault(),p.stopPropagation(),this.__dispatchLikeEvent("like-hover",{hasLiked:this.hasLiked,likes:this.likes??0})}}
|
|
101
101
|
></scb-icon-button>
|
|
102
102
|
`:n`<md-icon>thumb_up</md-icon>`}
|
|
103
|
-
<span class="social-text">${
|
|
103
|
+
<span class="social-text">${ot}${this.likes??0}</span>
|
|
104
104
|
</span>
|
|
105
105
|
`;return z(n`
|
|
106
106
|
<div class="full-content">
|
|
@@ -112,7 +112,7 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
112
112
|
class="author social-text"
|
|
113
113
|
href="${this.authorHref||"#"}"
|
|
114
114
|
tabindex="0"
|
|
115
|
-
@click=${
|
|
115
|
+
@click=${L}
|
|
116
116
|
@mouseenter=${()=>u(!0)}
|
|
117
117
|
@mouseleave=${()=>u(!1)}
|
|
118
118
|
>${this.authorText}</a
|
|
@@ -128,7 +128,7 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
128
128
|
<scb-icon-button
|
|
129
129
|
href="${m}"
|
|
130
130
|
tabindex="0"
|
|
131
|
-
@click=${
|
|
131
|
+
@click=${L}
|
|
132
132
|
variant="standard"
|
|
133
133
|
icon="comment"
|
|
134
134
|
aria-label="Gå till kommentarer"
|
|
@@ -136,7 +136,7 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
136
136
|
`:n`
|
|
137
137
|
<md-icon>comment</md-icon>
|
|
138
138
|
`}
|
|
139
|
-
<span class="social-text">${
|
|
139
|
+
<span class="social-text">${ct}${this.comments??0}</span>
|
|
140
140
|
</span>
|
|
141
141
|
`}
|
|
142
142
|
${this.likesHoverContent?n`
|
|
@@ -147,16 +147,16 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
147
147
|
trigger="hover"
|
|
148
148
|
position="right"
|
|
149
149
|
>
|
|
150
|
-
${
|
|
150
|
+
${M}
|
|
151
151
|
</scb-tooltip>
|
|
152
|
-
`:
|
|
152
|
+
`:M}
|
|
153
153
|
${this.replyEnabled?n`
|
|
154
154
|
<span class="social-action">
|
|
155
155
|
<scb-icon-button
|
|
156
156
|
variant="standard"
|
|
157
157
|
icon="reply"
|
|
158
158
|
aria-label="Svara"
|
|
159
|
-
@click=${
|
|
159
|
+
@click=${P("reply")}
|
|
160
160
|
></scb-icon-button>
|
|
161
161
|
<span class="social-text">Svara</span>
|
|
162
162
|
</span>
|
|
@@ -167,7 +167,7 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
167
167
|
variant="standard"
|
|
168
168
|
icon="edit"
|
|
169
169
|
aria-label="Redigera"
|
|
170
|
-
@click=${
|
|
170
|
+
@click=${P("edit")}
|
|
171
171
|
></scb-icon-button>
|
|
172
172
|
<span class="social-text">Redigera</span>
|
|
173
173
|
</span>
|
|
@@ -178,7 +178,7 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
178
178
|
variant="standard"
|
|
179
179
|
icon="delete"
|
|
180
180
|
aria-label="Ta bort"
|
|
181
|
-
@click=${
|
|
181
|
+
@click=${P("delete")}
|
|
182
182
|
></scb-icon-button>
|
|
183
183
|
<span class="social-text">Ta bort</span>
|
|
184
184
|
</span>
|
|
@@ -204,12 +204,12 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
204
204
|
${y()}
|
|
205
205
|
</div>
|
|
206
206
|
`);case"container":return z(n`
|
|
207
|
-
<div class="container-content ${C
|
|
208
|
-
${
|
|
209
|
-
${C
|
|
207
|
+
<div class="container-content ${w||C?"has-header":""}">
|
|
208
|
+
${N()}
|
|
209
|
+
${w||C?n`
|
|
210
210
|
<div class="top-content">
|
|
211
|
-
${
|
|
212
|
-
${
|
|
211
|
+
${D(!1)}
|
|
212
|
+
${R()}
|
|
213
213
|
</div>
|
|
214
214
|
`:o}
|
|
215
215
|
<slot></slot>
|
|
@@ -220,7 +220,7 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
220
220
|
${x(!!b)}
|
|
221
221
|
${y()}
|
|
222
222
|
</div>
|
|
223
|
-
`)}}updated(t){super.updated(t),t.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),t.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),t.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),t.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),t.has("type")&&(this.cardType==="list"?this.setAttribute("data-density","-2"):this.removeAttribute("data-density")),this.mediaFit&&this.mediaFit!=="cover"?this.style.setProperty("--scb-card-media-fit",this.mediaFit):this.style.removeProperty("--scb-card-media-fit"),this.mediaPosition&&this.mediaPosition!=="center"?this.style.setProperty("--scb-card-media-position",this.mediaPosition):this.style.removeProperty("--scb-card-media-position"),this.__syncSocialAttributes(),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&v(g,this,
|
|
223
|
+
`)}}updated(t){super.updated(t),t.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),t.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),t.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),t.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),t.has("type")&&(this.cardType==="list"?this.setAttribute("data-density","-2"):this.removeAttribute("data-density")),this.mediaFit&&this.mediaFit!=="cover"?this.style.setProperty("--scb-card-media-fit",this.mediaFit):this.style.removeProperty("--scb-card-media-fit"),this.mediaPosition&&this.mediaPosition!=="center"?this.style.setProperty("--scb-card-media-position",this.mediaPosition):this.style.removeProperty("--scb-card-media-position"),this.__syncSocialAttributes(),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&v(g,this,V).call(this),(t.has("innerPadding")||t.has("paddingTop")||t.has("paddingBottom")||t.has("paddingLeft")||t.has("paddingRight"))&&v(g,this,j).call(this)}async firstUpdated(t){S.__iconLoaded||(await W(()=>import("../../vendor/vendor-material.js").then(e=>e.p),__vite__mapDeps([0,1,2]),import.meta.url),S.__iconLoaded=!0),S.__rippleLoaded||(await W(()=>import("../../vendor/vendor-material.js").then(e=>e.f),__vite__mapDeps([0,1,2]),import.meta.url),S.__rippleLoaded=!0),v(g,this,V).call(this),v(g,this,j).call(this),this.__syncSocialAttributes()}},S=_,_.__iconLoaded=!1,_.__rippleLoaded=!1,_.styles=dt`
|
|
224
224
|
:host {
|
|
225
225
|
display: block;
|
|
226
226
|
container-type: inline-size;
|
|
@@ -276,7 +276,7 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
276
276
|
--scb-card-size-social-icon-font-size: var(--md-sys-typescale-title-large-size, 20px);
|
|
277
277
|
--scb-card-size-social-text: var(--md-sys-typescale-body-small-size, 12px);
|
|
278
278
|
|
|
279
|
-
--scb-card-size-list-offset: var(--spacing-
|
|
279
|
+
--scb-card-size-list-offset: var(--spacing-5, 16px);
|
|
280
280
|
--scb-card-size-actions-offset: var(--spacing-7, 24px);
|
|
281
281
|
--scb-card-size-footer-offset: var(--spacing-7, 24px);
|
|
282
282
|
--scb-card-size-links-offset: var(--spacing-3, 8px);
|
|
@@ -311,7 +311,7 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
311
311
|
--scb-card-size-social-icon: var(--scale-04, 18px);
|
|
312
312
|
--scb-card-size-social-icon-font-size: var(--scale-04, 18px);
|
|
313
313
|
|
|
314
|
-
--scb-card-size-list-offset: var(--spacing-
|
|
314
|
+
--scb-card-size-list-offset: var(--spacing-4, 12px);
|
|
315
315
|
--scb-card-size-actions-offset: var(--spacing-6, 20px);
|
|
316
316
|
--scb-card-size-footer-offset: var(--spacing-6, 20px);
|
|
317
317
|
--scb-card-size-links-offset: var(--spacing-2, 4px);
|
|
@@ -346,7 +346,7 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
346
346
|
--scb-card-size-social-icon: var(--scale-03, 16px);
|
|
347
347
|
--scb-card-size-social-icon-font-size: var(--scale-03, 16px);
|
|
348
348
|
|
|
349
|
-
--scb-card-size-list-offset: var(--spacing-
|
|
349
|
+
--scb-card-size-list-offset: var(--spacing-3, 8px);
|
|
350
350
|
--scb-card-size-actions-offset: var(--spacing-5, 16px);
|
|
351
351
|
--scb-card-size-footer-offset: var(--spacing-5, 16px);
|
|
352
352
|
--scb-card-size-links-offset: var(--spacing-2, 4px);
|
|
@@ -793,6 +793,10 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
793
793
|
}
|
|
794
794
|
|
|
795
795
|
.scb-card .content.list {
|
|
796
|
+
margin-top: 0;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
.scb-card .content.list.has-top-content {
|
|
796
800
|
margin-top: var(--scb-card-size-list-offset);
|
|
797
801
|
}
|
|
798
802
|
|
|
@@ -850,4 +854,4 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
|
|
|
850
854
|
.scb-card.filled-alternative .content.list ::slotted(scb-list) {
|
|
851
855
|
--scb-list-bg: var(--md-sys-color-surface-container, #EEF3FF);
|
|
852
856
|
}
|
|
853
|
-
`,_);function T(){return this.cardTitle||this.title}function
|
|
857
|
+
`,_);function T(){return this.cardTitle||this.title}function V(){const l=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??l,e=this.mapSpacingToken(this.spacingBottom)??l,r=this.mapSpacingToken(this.spacingLeft),d=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-card-spacing-block-start",t):this.style.removeProperty("--scb-card-spacing-block-start"),e?this.style.setProperty("--scb-card-spacing-block-end",e):this.style.removeProperty("--scb-card-spacing-block-end"),r?this.style.setProperty("--scb-card-spacing-inline-start",r):this.style.removeProperty("--scb-card-spacing-inline-start"),d?this.style.setProperty("--scb-card-spacing-inline-end",d):this.style.removeProperty("--scb-card-spacing-inline-end")}function j(){const l=this.mapSpacingToken(this.innerPadding),t=this.mapSpacingToken(this.paddingTop)??l,e=this.mapSpacingToken(this.paddingBottom)??l,r=this.mapSpacingToken(this.paddingLeft)??l,d=this.mapSpacingToken(this.paddingRight)??l;t?this.style.setProperty("--scb-card-content-padding-block-start",t):this.style.removeProperty("--scb-card-content-padding-block-start"),e?this.style.setProperty("--scb-card-content-padding-block-end",e):this.style.removeProperty("--scb-card-content-padding-block-end"),r?this.style.setProperty("--scb-card-content-padding-inline-start",r):this.style.removeProperty("--scb-card-content-padding-inline-start"),d?this.style.setProperty("--scb-card-content-padding-inline-end",d):this.style.removeProperty("--scb-card-content-padding-inline-end")}s([a({type:String,reflect:!0,converter:c})],i.prototype,"type",void 0);s([a({type:String,reflect:!0,converter:c})],i.prototype,"variant",void 0);s([a({type:String,reflect:!0,converter:c})],i.prototype,"direction",void 0);s([a({type:String,reflect:!0})],i.prototype,"size",void 0);s([a({type:String,attribute:"media-type"})],i.prototype,"mediaType",void 0);s([a({type:String,attribute:"media-href"})],i.prototype,"mediaHref",void 0);s([a({type:String,attribute:"media-alt"})],i.prototype,"mediaAlt",void 0);s([a({type:String,attribute:"media-srcset"})],i.prototype,"mediaSrcset",void 0);s([a({type:String,attribute:"media-sizes"})],i.prototype,"mediaSizes",void 0);s([a({type:String,attribute:"media-loading"})],i.prototype,"mediaLoading",void 0);s([a({type:String,attribute:"media-decoding"})],i.prototype,"mediaDecoding",void 0);s([a({type:String,attribute:"media-fetchpriority"})],i.prototype,"mediaFetchPriority",void 0);s([a({type:String,attribute:"media-fit"})],i.prototype,"mediaFit",void 0);s([a({type:String,attribute:"media-position"})],i.prototype,"mediaPosition",void 0);s([a({type:String,attribute:"media-width"})],i.prototype,"mediaWidth",void 0);s([a({type:String,attribute:"media-height"})],i.prototype,"mediaHeight",void 0);s([a({type:String,attribute:"media-aspect"})],i.prototype,"mediaAspect",void 0);s([a({type:Boolean,attribute:"media-placeholder"})],i.prototype,"mediaPlaceholder",void 0);s([a({type:String,attribute:"card-href",reflect:!0,converter:c})],i.prototype,"cardHref",void 0);s([a({type:String,reflect:!0,converter:c})],i.prototype,"href",void 0);s([a({type:String,reflect:!0,converter:c})],i.prototype,"title",void 0);s([a({type:String,attribute:"card-title",reflect:!0,converter:c})],i.prototype,"cardTitle",void 0);s([a({type:String,reflect:!0,converter:c})],i.prototype,"subtitle",void 0);s([a({type:String,reflect:!0,converter:c})],i.prototype,"vignette",void 0);s([a({type:String,attribute:"vignette-variant",reflect:!0,converter:c})],i.prototype,"vignetteVariant",void 0);s([a({type:String,attribute:"vignette-spacing",reflect:!0,converter:c})],i.prototype,"vignetteSpacing",void 0);s([a({type:String,attribute:"vignette-spacing-top",reflect:!0,converter:c})],i.prototype,"vignetteSpacingTop",void 0);s([a({type:String,attribute:"vignette-spacing-bottom",reflect:!0,converter:c})],i.prototype,"vignetteSpacingBottom",void 0);s([a({type:String,attribute:"vignette-spacing-left",reflect:!0,converter:c})],i.prototype,"vignetteSpacingLeft",void 0);s([a({type:String,attribute:"vignette-spacing-right",reflect:!0,converter:c})],i.prototype,"vignetteSpacingRight",void 0);s([a({type:String,attribute:"supporting-text",reflect:!0,converter:c})],i.prototype,"supportingText",void 0);s([a({type:Date,reflect:!0})],i.prototype,"date",void 0);s([a({type:String,attribute:"social-comments-text"})],i.prototype,"commentsText",void 0);s([a({type:Number,attribute:"social-comments"})],i.prototype,"comments",void 0);s([a({type:Boolean,attribute:"social-comments-disabled"})],i.prototype,"commentsDisabled",void 0);s([a({type:String,attribute:"social-comments-href"})],i.prototype,"commentsHref",void 0);s([a({type:String,attribute:"social-likes-text"})],i.prototype,"likesText",void 0);s([a({type:Number,attribute:"social-likes"})],i.prototype,"likes",void 0);s([a({type:Boolean,attribute:"social-likes-disabled"})],i.prototype,"likesDisabled",void 0);s([a({type:String,attribute:"social-likes-hover-content"})],i.prototype,"likesHoverContent",void 0);s([a({type:Boolean,attribute:"social-has-liked"})],i.prototype,"hasLiked",void 0);s([a({type:Boolean,attribute:"social-likes-interactive"})],i.prototype,"likesInteractive",void 0);s([a({type:Boolean,attribute:"social-author"})],i.prototype,"author",void 0);s([a({type:String,attribute:"social-author-text"})],i.prototype,"authorText",void 0);s([a({type:String,attribute:"social-author-href"})],i.prototype,"authorHref",void 0);s([a({type:Boolean,attribute:"social-reply-enabled"})],i.prototype,"replyEnabled",void 0);s([a({type:Boolean,attribute:"social-edit-enabled"})],i.prototype,"editEnabled",void 0);s([a({type:Boolean,attribute:"social-delete-enabled"})],i.prototype,"deleteEnabled",void 0);s([a({type:String,reflect:!0,converter:c})],i.prototype,"sizing",void 0);s([a({type:String,reflect:!0,converter:c})],i.prototype,"width",void 0);s([a({type:String,reflect:!0,attribute:"max-width",converter:c})],i.prototype,"maxWidth",void 0);s([a({type:String,reflect:!0,converter:c})],i.prototype,"height",void 0);s([a({type:String,reflect:!0,attribute:"max-height",converter:c})],i.prototype,"maxHeight",void 0);s([a({type:String,reflect:!0,converter:c})],i.prototype,"spacing",void 0);s([a({type:String,attribute:"spacing-top",reflect:!0,converter:c})],i.prototype,"spacingTop",void 0);s([a({type:String,attribute:"spacing-bottom",reflect:!0,converter:c})],i.prototype,"spacingBottom",void 0);s([a({type:String,attribute:"spacing-left",reflect:!0,converter:c})],i.prototype,"spacingLeft",void 0);s([a({type:String,attribute:"spacing-right",reflect:!0,converter:c})],i.prototype,"spacingRight",void 0);s([a({type:String,attribute:"padding",reflect:!0,converter:c})],i.prototype,"innerPadding",void 0);s([a({type:String,attribute:"padding-top",reflect:!0,converter:c})],i.prototype,"paddingTop",void 0);s([a({type:String,attribute:"padding-bottom",reflect:!0,converter:c})],i.prototype,"paddingBottom",void 0);s([a({type:String,attribute:"padding-left",reflect:!0,converter:c})],i.prototype,"paddingLeft",void 0);s([a({type:String,attribute:"padding-right",reflect:!0,converter:c})],i.prototype,"paddingRight",void 0);i=S=s([$("scb-card")],i);var O=class extends i{constructor(){super(),this.type="list"}get cardType(){return"list"}};O=s([$("scb-list-card")],O);var K=class extends i{constructor(){super(),this.type="link"}get cardType(){return"link"}};K=s([$("scb-link-card")],K);var q=class extends i{constructor(){super(),this.type="action"}get cardType(){return"action"}};q=s([$("scb-action-card")],q);var G=class extends i{constructor(){super(),this.type="social"}get cardType(){return"social"}};G=s([$("scb-social-card")],G);var X=class extends i{constructor(){super(),this.type="container"}get cardType(){return"container"}};X=s([$("scb-container-card")],X);export{q as ScbActionCard,X as ScbContainerCard,K as ScbLinkCard,O as ScbListCard,G as ScbSocialCard};
|
package/mvc/scb-logo.svg
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
-
<svg viewBox="-0.0002 -0.0066 1344.9076 377.9532" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<defs>
|
|
4
|
-
<style type="text/css">
|
|
5
|
-
g {
|
|
6
|
-
fill: #100f0d;
|
|
7
|
-
}
|
|
8
|
-
g:target {
|
|
9
|
-
fill: #fff;
|
|
10
|
-
}
|
|
11
|
-
</style>
|
|
12
|
-
</defs>
|
|
13
|
-
<g transform="matrix(1.3333330154418945, 0, 0, -1.3333330154418945, 0, 377.9466552734375)" id="g10">
|
|
14
|
-
<g transform="scale(0.1)" id="inverted">
|
|
15
|
-
<path id="path14" d="m 1346.6,2515.59 c 0,48.24 -39.11,87.31 -87.4,87.31 -48.29,0 -87.4,-39.07 -87.4,-87.31 V 312.898 c 0,-48.339 39.11,-87.5 87.4,-87.5 48.29,0 87.4,39.161 87.4,87.5 V 1106.8 c 0,5.77 4.79,10.45 10.51,10.45 h 287.22 c 5.76,0 10.5,-4.68 10.5,-10.45 V 305.969 C 1654.83,137.02 1477.67,0 1259.2,0 1040.63,0 863.523,137.02 863.523,305.969 V 2528.77 c 0,168.86 177.107,305.88 395.677,305.88 218.47,0 395.63,-137.02 395.63,-305.88 V 1738.1 c 0,-5.86 -4.74,-10.45 -10.5,-10.45 h -287.22 c -5.72,0 -10.51,4.59 -10.51,10.45 v 777.49"/>
|
|
16
|
-
<path id="path16" d="M 10.4414,2265.38 C -8.01563,2136.85 -1.52734,1926.1 26.1172,1807.73 56.4922,1678.71 231.645,1417.96 310.555,1296.86 389.566,1175.85 494.949,1049.49 493.375,880.922 V 477.18 c 0,-48.25 -39.109,-87.41 -87.406,-87.41 -48.145,0 -87.254,39.16 -87.254,87.41 v 618.79 c 0,5.76 -4.785,10.55 -10.645,10.55 H 20.9453 c -5.8711,0 -10.5039,-4.79 -10.5039,-10.55 V 458.719 c 0,-168.957 177.1056,-305.969 395.5276,-305.969 218.574,0 395.683,137.012 395.683,305.969 v 422.203 c -1.324,289.568 -80.332,331.748 -182.867,505.398 -73.445,124.71 -254.121,381.95 -284.398,510.97 -27.735,118.36 -26.516,255.39 -15.672,379.9 0,48.25 39.109,87.41 87.254,87.41 48.297,0 87.406,-39.16 87.406,-87.41 v -550.32 c 0,-5.77 4.746,-10.45 10.645,-10.45 h 287.085 c 5.911,0 10.547,4.68 10.547,10.45 v 538.51 c 0,169.06 -177.109,305.97 -395.683,305.97 -218.422,0 -395.5276,-136.91 -395.5276,-305.97"/>
|
|
17
|
-
<path id="path18" d="m 1726.57,2547.82 h 440.8 c 182.04,0 329.61,-147.57 329.61,-329.52 v -462.24 c 0,-129.59 -84.97,-238.98 -202.16,-276.48 v -6.24 c 117.19,-37.4 202.16,-146.89 202.16,-276.58 V 491.148 c 0,-160.367 -130.2,-290.457 -290.45,-290.457 l -479.96,-0.293 c -5.91,0 -10.6,4.793 -10.6,10.454 V 2537.37 c 0,5.66 4.69,10.45 10.6,10.45 m 308.27,-229.22 c -5.97,0 -10.65,-4.78 -10.65,-10.55 v -729.33 c 0,-5.97 4.68,-10.65 10.65,-10.65 h 43.36 c 58.01,0 105.08,47.16 105.08,105.18 v 540.18 c 0,58 -47.07,105.17 -105.08,105.17 z m 0,-982.29 c -5.97,0 -10.65,-4.69 -10.65,-10.45 V 430.59 c 0,-5.86 4.68,-10.649 10.65,-10.649 h 51.85 c 58.12,0 105.09,47.18 105.09,105.188 v 706.011 c 0,58.19 -46.97,105.17 -105.09,105.17 h -51.85"/>
|
|
18
|
-
</g>
|
|
19
|
-
</g>
|
|
20
|
-
<text style="fill: rgb(1, 1, 1); font-family: Roboto; font-size: 139.2px; font-weight: 500; stroke: rgb(0, 0, 0); white-space: pre;" x="455.182" y="234.25">Designsystem</text>
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<svg viewBox="-0.0002 -0.0066 1344.9076 377.9532" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<defs>
|
|
4
|
+
<style type="text/css">
|
|
5
|
+
g {
|
|
6
|
+
fill: #100f0d;
|
|
7
|
+
}
|
|
8
|
+
g:target {
|
|
9
|
+
fill: #fff;
|
|
10
|
+
}
|
|
11
|
+
</style>
|
|
12
|
+
</defs>
|
|
13
|
+
<g transform="matrix(1.3333330154418945, 0, 0, -1.3333330154418945, 0, 377.9466552734375)" id="g10">
|
|
14
|
+
<g transform="scale(0.1)" id="inverted">
|
|
15
|
+
<path id="path14" d="m 1346.6,2515.59 c 0,48.24 -39.11,87.31 -87.4,87.31 -48.29,0 -87.4,-39.07 -87.4,-87.31 V 312.898 c 0,-48.339 39.11,-87.5 87.4,-87.5 48.29,0 87.4,39.161 87.4,87.5 V 1106.8 c 0,5.77 4.79,10.45 10.51,10.45 h 287.22 c 5.76,0 10.5,-4.68 10.5,-10.45 V 305.969 C 1654.83,137.02 1477.67,0 1259.2,0 1040.63,0 863.523,137.02 863.523,305.969 V 2528.77 c 0,168.86 177.107,305.88 395.677,305.88 218.47,0 395.63,-137.02 395.63,-305.88 V 1738.1 c 0,-5.86 -4.74,-10.45 -10.5,-10.45 h -287.22 c -5.72,0 -10.51,4.59 -10.51,10.45 v 777.49"/>
|
|
16
|
+
<path id="path16" d="M 10.4414,2265.38 C -8.01563,2136.85 -1.52734,1926.1 26.1172,1807.73 56.4922,1678.71 231.645,1417.96 310.555,1296.86 389.566,1175.85 494.949,1049.49 493.375,880.922 V 477.18 c 0,-48.25 -39.109,-87.41 -87.406,-87.41 -48.145,0 -87.254,39.16 -87.254,87.41 v 618.79 c 0,5.76 -4.785,10.55 -10.645,10.55 H 20.9453 c -5.8711,0 -10.5039,-4.79 -10.5039,-10.55 V 458.719 c 0,-168.957 177.1056,-305.969 395.5276,-305.969 218.574,0 395.683,137.012 395.683,305.969 v 422.203 c -1.324,289.568 -80.332,331.748 -182.867,505.398 -73.445,124.71 -254.121,381.95 -284.398,510.97 -27.735,118.36 -26.516,255.39 -15.672,379.9 0,48.25 39.109,87.41 87.254,87.41 48.297,0 87.406,-39.16 87.406,-87.41 v -550.32 c 0,-5.77 4.746,-10.45 10.645,-10.45 h 287.085 c 5.911,0 10.547,4.68 10.547,10.45 v 538.51 c 0,169.06 -177.109,305.97 -395.683,305.97 -218.422,0 -395.5276,-136.91 -395.5276,-305.97"/>
|
|
17
|
+
<path id="path18" d="m 1726.57,2547.82 h 440.8 c 182.04,0 329.61,-147.57 329.61,-329.52 v -462.24 c 0,-129.59 -84.97,-238.98 -202.16,-276.48 v -6.24 c 117.19,-37.4 202.16,-146.89 202.16,-276.58 V 491.148 c 0,-160.367 -130.2,-290.457 -290.45,-290.457 l -479.96,-0.293 c -5.91,0 -10.6,4.793 -10.6,10.454 V 2537.37 c 0,5.66 4.69,10.45 10.6,10.45 m 308.27,-229.22 c -5.97,0 -10.65,-4.78 -10.65,-10.55 v -729.33 c 0,-5.97 4.68,-10.65 10.65,-10.65 h 43.36 c 58.01,0 105.08,47.16 105.08,105.18 v 540.18 c 0,58 -47.07,105.17 -105.08,105.17 z m 0,-982.29 c -5.97,0 -10.65,-4.69 -10.65,-10.45 V 430.59 c 0,-5.86 4.68,-10.649 10.65,-10.649 h 51.85 c 58.12,0 105.09,47.18 105.09,105.188 v 706.011 c 0,58.19 -46.97,105.17 -105.09,105.17 h -51.85"/>
|
|
18
|
+
</g>
|
|
19
|
+
</g>
|
|
20
|
+
<text style="fill: rgb(1, 1, 1); font-family: Roboto; font-size: 139.2px; font-weight: 500; stroke: rgb(0, 0, 0); white-space: pre;" x="455.182" y="234.25">Designsystem</text>
|
|
21
21
|
</svg>
|
package/mvc/scb.svg
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
<svg
|
|
2
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
-
aria-hidden="true"
|
|
5
|
-
role="img"
|
|
6
|
-
width="48"
|
|
7
|
-
height="48"
|
|
8
|
-
preserveAspectRatio="xMidYMid meet"
|
|
9
|
-
viewBox="0 0 1300 1300"
|
|
10
|
-
>
|
|
11
|
-
<path d="M539.3,128.2c0-19.3-15.7-35-35-35c-19.3,0-35,15.6-35,35v882.1c0,19.4,15.7,35,35,35c19.3,0,35-15.7,35-35V692.4 c0-2.3,1.9-4.2,4.2-4.2h115c2.3,0,4.2,1.9,4.2,4.2v320.7c0,67.7-71,122.5-158.4,122.5c-87.5,0-158.5-54.9-158.5-122.5V122.9 c0-67.6,70.9-122.5,158.5-122.5c87.5,0,158.4,54.9,158.4,122.5v316.6c0,2.3-1.9,4.2-4.2,4.2h-115c-2.3,0-4.2-1.8-4.2-4.2V128.2z" />
|
|
12
|
-
<path d="M4.2,228.4c-7.4,51.5-4.8,135.9,6.3,183.3c12.2,51.7,82.3,156.1,113.9,204.6c31.6,48.5,73.8,99.1,73.2,166.6v161.7 c0,19.3-15.7,35-35,35c-19.3,0-34.9-15.7-34.9-35V696.7c0-2.3-1.9-4.2-4.3-4.2H8.4c-2.4,0-4.2,1.9-4.2,4.2v255.2 c0,67.7,70.9,122.5,158.4,122.5c87.5,0,158.5-54.9,158.5-122.5V782.8c-0.5-116-32.2-132.9-73.2-202.4 c-29.4-49.9-101.8-153-113.9-204.6c-11.1-47.4-10.6-102.3-6.3-152.1c0-19.3,15.7-35,34.9-35c19.3,0,35,15.7,35,35V444 c0,2.3,1.9,4.2,4.3,4.2h115c2.4,0,4.2-1.9,4.2-4.2V228.4c0-67.7-70.9-122.5-158.5-122.5C75.1,105.8,4.2,160.7,4.2,228.4" />
|
|
13
|
-
<path d="M814.9,600.4c-2.4,0-4.3,1.9-4.3,4.2v358.5c0,2.3,1.9,4.3,4.3,4.3h20.8c23.3,0,42.1-18.9,42.1-42.1V642.6 c0-23.3-18.8-42.1-42.1-42.1H814.9z M814.9,207.1c-2.4,0-4.3,1.9-4.3,4.2v292.1c0,2.4,1.9,4.3,4.3,4.3h17.4 c23.2,0,42.1-18.9,42.1-42.1V249.2c0-23.2-18.9-42.1-42.1-42.1H814.9z M691.5,115.3H868c72.9,0,132,59.1,132,132v185.1 c0,51.9-34,95.7-81,110.7v2.5c46.9,15,81,58.8,81,110.8v282.6c0,64.2-52.1,116.3-116.3,116.3l-192.2,0.1c-2.4,0-4.2-1.9-4.2-4.2 V119.4C687.2,117.2,689.1,115.3,691.5,115.3" />
|
|
1
|
+
<svg
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
3
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
4
|
+
aria-hidden="true"
|
|
5
|
+
role="img"
|
|
6
|
+
width="48"
|
|
7
|
+
height="48"
|
|
8
|
+
preserveAspectRatio="xMidYMid meet"
|
|
9
|
+
viewBox="0 0 1300 1300"
|
|
10
|
+
>
|
|
11
|
+
<path d="M539.3,128.2c0-19.3-15.7-35-35-35c-19.3,0-35,15.6-35,35v882.1c0,19.4,15.7,35,35,35c19.3,0,35-15.7,35-35V692.4 c0-2.3,1.9-4.2,4.2-4.2h115c2.3,0,4.2,1.9,4.2,4.2v320.7c0,67.7-71,122.5-158.4,122.5c-87.5,0-158.5-54.9-158.5-122.5V122.9 c0-67.6,70.9-122.5,158.5-122.5c87.5,0,158.4,54.9,158.4,122.5v316.6c0,2.3-1.9,4.2-4.2,4.2h-115c-2.3,0-4.2-1.8-4.2-4.2V128.2z" />
|
|
12
|
+
<path d="M4.2,228.4c-7.4,51.5-4.8,135.9,6.3,183.3c12.2,51.7,82.3,156.1,113.9,204.6c31.6,48.5,73.8,99.1,73.2,166.6v161.7 c0,19.3-15.7,35-35,35c-19.3,0-34.9-15.7-34.9-35V696.7c0-2.3-1.9-4.2-4.3-4.2H8.4c-2.4,0-4.2,1.9-4.2,4.2v255.2 c0,67.7,70.9,122.5,158.4,122.5c87.5,0,158.5-54.9,158.5-122.5V782.8c-0.5-116-32.2-132.9-73.2-202.4 c-29.4-49.9-101.8-153-113.9-204.6c-11.1-47.4-10.6-102.3-6.3-152.1c0-19.3,15.7-35,34.9-35c19.3,0,35,15.7,35,35V444 c0,2.3,1.9,4.2,4.3,4.2h115c2.4,0,4.2-1.9,4.2-4.2V228.4c0-67.7-70.9-122.5-158.5-122.5C75.1,105.8,4.2,160.7,4.2,228.4" />
|
|
13
|
+
<path d="M814.9,600.4c-2.4,0-4.3,1.9-4.3,4.2v358.5c0,2.3,1.9,4.3,4.3,4.3h20.8c23.3,0,42.1-18.9,42.1-42.1V642.6 c0-23.3-18.8-42.1-42.1-42.1H814.9z M814.9,207.1c-2.4,0-4.3,1.9-4.3,4.2v292.1c0,2.4,1.9,4.3,4.3,4.3h17.4 c23.2,0,42.1-18.9,42.1-42.1V249.2c0-23.2-18.9-42.1-42.1-42.1H814.9z M691.5,115.3H868c72.9,0,132,59.1,132,132v185.1 c0,51.9-34,95.7-81,110.7v2.5c46.9,15,81,58.8,81,110.8v282.6c0,64.2-52.1,116.3-116.3,116.3l-192.2,0.1c-2.4,0-4.2-1.9-4.2-4.2 V119.4C687.2,117.2,689.1,115.3,691.5,115.3" />
|
|
14
14
|
</svg>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "scb-wc",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.32",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "index.js",
|
|
@@ -437,5 +437,5 @@
|
|
|
437
437
|
},
|
|
438
438
|
"./mvc/*": "./mvc/*"
|
|
439
439
|
},
|
|
440
|
-
"buildHash": "
|
|
440
|
+
"buildHash": "151D6662C704FA66E06125E0B14303CDAD4CC4E1B154E2D9ECE72FC136A16B8A"
|
|
441
441
|
}
|
package/scb-card/scb-card.js
CHANGED
|
@@ -111,7 +111,7 @@ var s, c = [
|
|
|
111
111
|
--scb-card-size-social-icon-font-size: var(--md-sys-typescale-title-large-size, 20px);
|
|
112
112
|
--scb-card-size-social-text: var(--md-sys-typescale-body-small-size, 12px);
|
|
113
113
|
|
|
114
|
-
--scb-card-size-list-offset: var(--spacing-
|
|
114
|
+
--scb-card-size-list-offset: var(--spacing-5, 16px);
|
|
115
115
|
--scb-card-size-actions-offset: var(--spacing-7, 24px);
|
|
116
116
|
--scb-card-size-footer-offset: var(--spacing-7, 24px);
|
|
117
117
|
--scb-card-size-links-offset: var(--spacing-3, 8px);
|
|
@@ -146,7 +146,7 @@ var s, c = [
|
|
|
146
146
|
--scb-card-size-social-icon: var(--scale-04, 18px);
|
|
147
147
|
--scb-card-size-social-icon-font-size: var(--scale-04, 18px);
|
|
148
148
|
|
|
149
|
-
--scb-card-size-list-offset: var(--spacing-
|
|
149
|
+
--scb-card-size-list-offset: var(--spacing-4, 12px);
|
|
150
150
|
--scb-card-size-actions-offset: var(--spacing-6, 20px);
|
|
151
151
|
--scb-card-size-footer-offset: var(--spacing-6, 20px);
|
|
152
152
|
--scb-card-size-links-offset: var(--spacing-2, 4px);
|
|
@@ -181,7 +181,7 @@ var s, c = [
|
|
|
181
181
|
--scb-card-size-social-icon: var(--scale-03, 16px);
|
|
182
182
|
--scb-card-size-social-icon-font-size: var(--scale-03, 16px);
|
|
183
183
|
|
|
184
|
-
--scb-card-size-list-offset: var(--spacing-
|
|
184
|
+
--scb-card-size-list-offset: var(--spacing-3, 8px);
|
|
185
185
|
--scb-card-size-actions-offset: var(--spacing-5, 16px);
|
|
186
186
|
--scb-card-size-footer-offset: var(--spacing-5, 16px);
|
|
187
187
|
--scb-card-size-links-offset: var(--spacing-2, 4px);
|
|
@@ -628,6 +628,10 @@ var s, c = [
|
|
|
628
628
|
}
|
|
629
629
|
|
|
630
630
|
.scb-card .content.list {
|
|
631
|
+
margin-top: 0;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.scb-card .content.list.has-top-content {
|
|
631
635
|
margin-top: var(--scb-card-size-list-offset);
|
|
632
636
|
}
|
|
633
637
|
|
|
@@ -886,19 +890,19 @@ var s, c = [
|
|
|
886
890
|
spacing-bottom=${w}
|
|
887
891
|
spacing-left=${T}
|
|
888
892
|
spacing-right=${E}
|
|
889
|
-
></scb-chip>` : i, k = () => this.__hasSlottedContent("scb-chip") ? r`<div class="chip-slot"><slot name="scb-chip"></slot></div>` : D ? r`<div class="chip-slot">${O}</div>` : i,
|
|
890
|
-
${
|
|
893
|
+
></scb-chip>` : i, k = this.__hasSlottedContent("scb-chip") || D, A = () => this.__hasSlottedContent("scb-chip") ? r`<div class="chip-slot"><slot name="scb-chip"></slot></div>` : D ? r`<div class="chip-slot">${O}</div>` : i, j = (e = !1, t = !0, n = !0) => r`
|
|
894
|
+
${A()}
|
|
891
895
|
<div class="top-content">
|
|
892
896
|
${_(e)}
|
|
893
897
|
${v()}
|
|
894
898
|
${t ? y() : i}
|
|
895
899
|
${n ? b() : i}
|
|
896
900
|
</div>
|
|
897
|
-
`,
|
|
901
|
+
`, M = () => g ? r`
|
|
898
902
|
<div class="content footer">
|
|
899
903
|
<slot name="footer"></slot>
|
|
900
904
|
</div>
|
|
901
|
-
` : i,
|
|
905
|
+
` : i, N = k || f || p || m || h, P = (e) => r`
|
|
902
906
|
<div
|
|
903
907
|
class="scb-card ${t} ${o} ${a} ${l}"
|
|
904
908
|
@click=${c ? this.__handleHrefNavigation : null}
|
|
@@ -915,19 +919,19 @@ var s, c = [
|
|
|
915
919
|
<md-focus-ring></md-focus-ring>
|
|
916
920
|
`;
|
|
917
921
|
switch (e) {
|
|
918
|
-
case "standard": return
|
|
922
|
+
case "standard": return P(r`
|
|
919
923
|
<div class="full-content">
|
|
920
|
-
${
|
|
921
|
-
${
|
|
924
|
+
${j(!!s)}
|
|
925
|
+
${M()}
|
|
922
926
|
</div>
|
|
923
927
|
`);
|
|
924
|
-
case "list": return
|
|
928
|
+
case "list": return P(r`
|
|
925
929
|
<div class="full-content">
|
|
926
|
-
${
|
|
927
|
-
<div class="content list">
|
|
930
|
+
${N ? j(!1) : i}
|
|
931
|
+
<div class="content list ${N ? "has-top-content" : ""}">
|
|
928
932
|
<slot name="list"></slot><slot></slot>
|
|
929
933
|
</div>
|
|
930
|
-
${
|
|
934
|
+
${M()}
|
|
931
935
|
</div>
|
|
932
936
|
`);
|
|
933
937
|
case "social":
|
|
@@ -974,9 +978,9 @@ var s, c = [
|
|
|
974
978
|
<span class="social-text">${o}${this.likes ?? 0}</span>
|
|
975
979
|
</span>
|
|
976
980
|
`;
|
|
977
|
-
return
|
|
981
|
+
return P(r`
|
|
978
982
|
<div class="full-content">
|
|
979
|
-
${
|
|
983
|
+
${j(!!s)}
|
|
980
984
|
<div class="content">
|
|
981
985
|
<div class="social-metrics">
|
|
982
986
|
${this.author ? r`
|
|
@@ -1057,30 +1061,30 @@ var s, c = [
|
|
|
1057
1061
|
` : i}
|
|
1058
1062
|
</div>
|
|
1059
1063
|
</div>
|
|
1060
|
-
${
|
|
1064
|
+
${M()}
|
|
1061
1065
|
</div>
|
|
1062
1066
|
`);
|
|
1063
|
-
case "link": return
|
|
1067
|
+
case "link": return P(r`
|
|
1064
1068
|
<div class="full-content">
|
|
1065
|
-
${
|
|
1069
|
+
${j(!1)}
|
|
1066
1070
|
<div class="content links">
|
|
1067
1071
|
<slot name="links"></slot><slot></slot>
|
|
1068
1072
|
</div>
|
|
1069
|
-
${
|
|
1073
|
+
${M()}
|
|
1070
1074
|
</div>
|
|
1071
1075
|
`);
|
|
1072
|
-
case "action": return
|
|
1076
|
+
case "action": return P(r`
|
|
1073
1077
|
<div class="full-content">
|
|
1074
|
-
${
|
|
1078
|
+
${j(!1)}
|
|
1075
1079
|
<div class="content actions">
|
|
1076
1080
|
<slot name="actions"></slot><slot></slot>
|
|
1077
1081
|
</div>
|
|
1078
|
-
${
|
|
1082
|
+
${M()}
|
|
1079
1083
|
</div>
|
|
1080
1084
|
`);
|
|
1081
|
-
case "container": return
|
|
1085
|
+
case "container": return P(r`
|
|
1082
1086
|
<div class="container-content ${f || p ? "has-header" : ""}">
|
|
1083
|
-
${
|
|
1087
|
+
${A()}
|
|
1084
1088
|
${f || p ? r`
|
|
1085
1089
|
<div class="top-content">
|
|
1086
1090
|
${_(!1)}
|
|
@@ -1088,13 +1092,13 @@ var s, c = [
|
|
|
1088
1092
|
</div>
|
|
1089
1093
|
` : i}
|
|
1090
1094
|
<slot></slot>
|
|
1091
|
-
${
|
|
1095
|
+
${M()}
|
|
1092
1096
|
</div>
|
|
1093
1097
|
`);
|
|
1094
|
-
default: return
|
|
1098
|
+
default: return P(r`
|
|
1095
1099
|
<div class="full-content">
|
|
1096
|
-
${
|
|
1097
|
-
${
|
|
1100
|
+
${j(!!s)}
|
|
1101
|
+
${M()}
|
|
1098
1102
|
</div>
|
|
1099
1103
|
`);
|
|
1100
1104
|
}
|
package/scb-wc.bundle.js
CHANGED
|
@@ -5106,7 +5106,7 @@ var ScbWc=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module
|
|
|
5106
5106
|
--scb-card-size-social-icon-font-size: var(--md-sys-typescale-title-large-size, 20px);
|
|
5107
5107
|
--scb-card-size-social-text: var(--md-sys-typescale-body-small-size, 12px);
|
|
5108
5108
|
|
|
5109
|
-
--scb-card-size-list-offset: var(--spacing-
|
|
5109
|
+
--scb-card-size-list-offset: var(--spacing-5, 16px);
|
|
5110
5110
|
--scb-card-size-actions-offset: var(--spacing-7, 24px);
|
|
5111
5111
|
--scb-card-size-footer-offset: var(--spacing-7, 24px);
|
|
5112
5112
|
--scb-card-size-links-offset: var(--spacing-3, 8px);
|
|
@@ -5141,7 +5141,7 @@ var ScbWc=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module
|
|
|
5141
5141
|
--scb-card-size-social-icon: var(--scale-04, 18px);
|
|
5142
5142
|
--scb-card-size-social-icon-font-size: var(--scale-04, 18px);
|
|
5143
5143
|
|
|
5144
|
-
--scb-card-size-list-offset: var(--spacing-
|
|
5144
|
+
--scb-card-size-list-offset: var(--spacing-4, 12px);
|
|
5145
5145
|
--scb-card-size-actions-offset: var(--spacing-6, 20px);
|
|
5146
5146
|
--scb-card-size-footer-offset: var(--spacing-6, 20px);
|
|
5147
5147
|
--scb-card-size-links-offset: var(--spacing-2, 4px);
|
|
@@ -5176,7 +5176,7 @@ var ScbWc=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module
|
|
|
5176
5176
|
--scb-card-size-social-icon: var(--scale-03, 16px);
|
|
5177
5177
|
--scb-card-size-social-icon-font-size: var(--scale-03, 16px);
|
|
5178
5178
|
|
|
5179
|
-
--scb-card-size-list-offset: var(--spacing-
|
|
5179
|
+
--scb-card-size-list-offset: var(--spacing-3, 8px);
|
|
5180
5180
|
--scb-card-size-actions-offset: var(--spacing-5, 16px);
|
|
5181
5181
|
--scb-card-size-footer-offset: var(--spacing-5, 16px);
|
|
5182
5182
|
--scb-card-size-links-offset: var(--spacing-2, 4px);
|
|
@@ -5623,6 +5623,10 @@ var ScbWc=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module
|
|
|
5623
5623
|
}
|
|
5624
5624
|
|
|
5625
5625
|
.scb-card .content.list {
|
|
5626
|
+
margin-top: 0;
|
|
5627
|
+
}
|
|
5628
|
+
|
|
5629
|
+
.scb-card .content.list.has-top-content {
|
|
5626
5630
|
margin-top: var(--scb-card-size-list-offset);
|
|
5627
5631
|
}
|
|
5628
5632
|
|
|
@@ -5723,19 +5727,19 @@ var ScbWc=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module
|
|
|
5723
5727
|
spacing-bottom=${oe}
|
|
5724
5728
|
spacing-left=${se}
|
|
5725
5729
|
spacing-right=${ce}
|
|
5726
|
-
></scb-chip>`:x,de=()=>this.__hasSlottedContent(`scb-chip`)?b`<div class="chip-slot"><slot name="scb-chip"></slot></div>`:le?b`<div class="chip-slot">${ue}</div>`:x,
|
|
5727
|
-
${
|
|
5730
|
+
></scb-chip>`:x,de=this.__hasSlottedContent(`scb-chip`)||le,fe=()=>this.__hasSlottedContent(`scb-chip`)?b`<div class="chip-slot"><slot name="scb-chip"></slot></div>`:le?b`<div class="chip-slot">${ue}</div>`:x,pe=(e=!1,t=!0,n=!0)=>b`
|
|
5731
|
+
${fe()}
|
|
5728
5732
|
<div class="top-content">
|
|
5729
5733
|
${h(e)}
|
|
5730
5734
|
${ee()}
|
|
5731
5735
|
${t?te():x}
|
|
5732
5736
|
${n?ne():x}
|
|
5733
5737
|
</div>
|
|
5734
|
-
`,
|
|
5738
|
+
`,me=()=>m?b`
|
|
5735
5739
|
<div class="content footer">
|
|
5736
5740
|
<slot name="footer"></slot>
|
|
5737
5741
|
</div>
|
|
5738
|
-
`:x,
|
|
5742
|
+
`:x,he=de||u||d||f||p,ge=e=>b`
|
|
5739
5743
|
<div
|
|
5740
5744
|
class="scb-card ${t} ${i} ${r} ${s}"
|
|
5741
5745
|
@click=${o?this.__handleHrefNavigation:null}
|
|
@@ -5750,18 +5754,18 @@ var ScbWc=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module
|
|
|
5750
5754
|
${e}
|
|
5751
5755
|
</div>
|
|
5752
5756
|
<md-focus-ring></md-focus-ring>
|
|
5753
|
-
`;switch(e){case`standard`:return
|
|
5757
|
+
`;switch(e){case`standard`:return ge(b`
|
|
5754
5758
|
<div class="full-content">
|
|
5755
|
-
${
|
|
5756
|
-
${
|
|
5759
|
+
${pe(!!a)}
|
|
5760
|
+
${me()}
|
|
5757
5761
|
</div>
|
|
5758
|
-
`);case`list`:return
|
|
5762
|
+
`);case`list`:return ge(b`
|
|
5759
5763
|
<div class="full-content">
|
|
5760
|
-
${
|
|
5761
|
-
<div class="content list">
|
|
5764
|
+
${he?pe(!1):x}
|
|
5765
|
+
<div class="content list ${he?`has-top-content`:``}">
|
|
5762
5766
|
<slot name="list"></slot><slot></slot>
|
|
5763
5767
|
</div>
|
|
5764
|
-
${
|
|
5768
|
+
${me()}
|
|
5765
5769
|
</div>
|
|
5766
5770
|
`);case`social`:let e=this.commentsHref,t=e=>{e.stopPropagation()},n=e=>{let t=this.renderRoot?.querySelector(`.scb-card`);t&&(e?t.classList.add(`no-hover`):t.classList.remove(`no-hover`))},r=this.commentsText?`${this.commentsText}: `:``,i=this.likesText?`${this.likesText}: `:``,o=e=>t=>{t.stopPropagation(),this.__dispatchSocialActionEvent(e,t)},s=this.likesDisabled?x:b`
|
|
5767
5771
|
<span
|
|
@@ -5783,9 +5787,9 @@ var ScbWc=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module
|
|
|
5783
5787
|
`:b`<md-icon>thumb_up</md-icon>`}
|
|
5784
5788
|
<span class="social-text">${i}${this.likes??0}</span>
|
|
5785
5789
|
</span>
|
|
5786
|
-
`;return
|
|
5790
|
+
`;return ge(b`
|
|
5787
5791
|
<div class="full-content">
|
|
5788
|
-
${
|
|
5792
|
+
${pe(!!a)}
|
|
5789
5793
|
<div class="content">
|
|
5790
5794
|
<div class="social-metrics">
|
|
5791
5795
|
${this.author?b`
|
|
@@ -5866,27 +5870,27 @@ var ScbWc=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module
|
|
|
5866
5870
|
`:x}
|
|
5867
5871
|
</div>
|
|
5868
5872
|
</div>
|
|
5869
|
-
${
|
|
5873
|
+
${me()}
|
|
5870
5874
|
</div>
|
|
5871
|
-
`);case`link`:return
|
|
5875
|
+
`);case`link`:return ge(b`
|
|
5872
5876
|
<div class="full-content">
|
|
5873
|
-
${
|
|
5877
|
+
${pe(!1)}
|
|
5874
5878
|
<div class="content links">
|
|
5875
5879
|
<slot name="links"></slot><slot></slot>
|
|
5876
5880
|
</div>
|
|
5877
|
-
${
|
|
5881
|
+
${me()}
|
|
5878
5882
|
</div>
|
|
5879
|
-
`);case`action`:return
|
|
5883
|
+
`);case`action`:return ge(b`
|
|
5880
5884
|
<div class="full-content">
|
|
5881
|
-
${
|
|
5885
|
+
${pe(!1)}
|
|
5882
5886
|
<div class="content actions">
|
|
5883
5887
|
<slot name="actions"></slot><slot></slot>
|
|
5884
5888
|
</div>
|
|
5885
|
-
${
|
|
5889
|
+
${me()}
|
|
5886
5890
|
</div>
|
|
5887
|
-
`);case`container`:return
|
|
5891
|
+
`);case`container`:return ge(b`
|
|
5888
5892
|
<div class="container-content ${u||d?`has-header`:``}">
|
|
5889
|
-
${
|
|
5893
|
+
${fe()}
|
|
5890
5894
|
${u||d?b`
|
|
5891
5895
|
<div class="top-content">
|
|
5892
5896
|
${h(!1)}
|
|
@@ -5894,12 +5898,12 @@ var ScbWc=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module
|
|
|
5894
5898
|
</div>
|
|
5895
5899
|
`:x}
|
|
5896
5900
|
<slot></slot>
|
|
5897
|
-
${
|
|
5901
|
+
${me()}
|
|
5898
5902
|
</div>
|
|
5899
|
-
`);default:return
|
|
5903
|
+
`);default:return ge(b`
|
|
5900
5904
|
<div class="full-content">
|
|
5901
|
-
${
|
|
5902
|
-
${
|
|
5905
|
+
${pe(!!a)}
|
|
5906
|
+
${me()}
|
|
5903
5907
|
</div>
|
|
5904
5908
|
`)}}updated(e){super.updated(e),e.has(`width`)&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty(`inline-size`)),e.has(`maxWidth`)&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty(`max-inline-size`)),e.has(`height`)&&(this.height?this.style.blockSize=this.height:this.style.removeProperty(`block-size`)),e.has(`maxHeight`)&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty(`max-block-size`)),e.has(`type`)&&(this.cardType===`list`?this.setAttribute(`data-density`,`-2`):this.removeAttribute(`data-density`)),this.mediaFit&&this.mediaFit!==`cover`?this.style.setProperty(`--scb-card-media-fit`,this.mediaFit):this.style.removeProperty(`--scb-card-media-fit`),this.mediaPosition&&this.mediaPosition!==`center`?this.style.setProperty(`--scb-card-media-position`,this.mediaPosition):this.style.removeProperty(`--scb-card-media-position`),this.__syncSocialAttributes(),(e.has(`spacing`)||e.has(`spacingTop`)||e.has(`spacingBottom`)||e.has(`spacingLeft`)||e.has(`spacingRight`))&&this.#t(),(e.has(`innerPadding`)||e.has(`paddingTop`)||e.has(`paddingBottom`)||e.has(`paddingLeft`)||e.has(`paddingRight`))&&this.#n()}async firstUpdated(e){bl.__iconLoaded||(await Promise.resolve().then(()=>(k(),Bi)),bl.__iconLoaded=!0),bl.__rippleLoaded||(await Promise.resolve().then(()=>(E(),gn)),bl.__rippleLoaded=!0),this.#t(),this.#n(),this.__syncSocialAttributes()}};P([g({type:String,reflect:!0,converter:U})],W.prototype,`type`,void 0),P([g({type:String,reflect:!0,converter:U})],W.prototype,`variant`,void 0),P([g({type:String,reflect:!0,converter:U})],W.prototype,`direction`,void 0),P([g({type:String,reflect:!0})],W.prototype,`size`,void 0),P([g({type:String,attribute:`media-type`})],W.prototype,`mediaType`,void 0),P([g({type:String,attribute:`media-href`})],W.prototype,`mediaHref`,void 0),P([g({type:String,attribute:`media-alt`})],W.prototype,`mediaAlt`,void 0),P([g({type:String,attribute:`media-srcset`})],W.prototype,`mediaSrcset`,void 0),P([g({type:String,attribute:`media-sizes`})],W.prototype,`mediaSizes`,void 0),P([g({type:String,attribute:`media-loading`})],W.prototype,`mediaLoading`,void 0),P([g({type:String,attribute:`media-decoding`})],W.prototype,`mediaDecoding`,void 0),P([g({type:String,attribute:`media-fetchpriority`})],W.prototype,`mediaFetchPriority`,void 0),P([g({type:String,attribute:`media-fit`})],W.prototype,`mediaFit`,void 0),P([g({type:String,attribute:`media-position`})],W.prototype,`mediaPosition`,void 0),P([g({type:String,attribute:`media-width`})],W.prototype,`mediaWidth`,void 0),P([g({type:String,attribute:`media-height`})],W.prototype,`mediaHeight`,void 0),P([g({type:String,attribute:`media-aspect`})],W.prototype,`mediaAspect`,void 0),P([g({type:Boolean,attribute:`media-placeholder`})],W.prototype,`mediaPlaceholder`,void 0),P([g({type:String,attribute:`card-href`,reflect:!0,converter:U})],W.prototype,`cardHref`,void 0),P([g({type:String,reflect:!0,converter:U})],W.prototype,`href`,void 0),P([g({type:String,reflect:!0,converter:U})],W.prototype,`title`,void 0),P([g({type:String,attribute:`card-title`,reflect:!0,converter:U})],W.prototype,`cardTitle`,void 0),P([g({type:String,reflect:!0,converter:U})],W.prototype,`subtitle`,void 0),P([g({type:String,reflect:!0,converter:U})],W.prototype,`vignette`,void 0),P([g({type:String,attribute:`vignette-variant`,reflect:!0,converter:U})],W.prototype,`vignetteVariant`,void 0),P([g({type:String,attribute:`vignette-spacing`,reflect:!0,converter:U})],W.prototype,`vignetteSpacing`,void 0),P([g({type:String,attribute:`vignette-spacing-top`,reflect:!0,converter:U})],W.prototype,`vignetteSpacingTop`,void 0),P([g({type:String,attribute:`vignette-spacing-bottom`,reflect:!0,converter:U})],W.prototype,`vignetteSpacingBottom`,void 0),P([g({type:String,attribute:`vignette-spacing-left`,reflect:!0,converter:U})],W.prototype,`vignetteSpacingLeft`,void 0),P([g({type:String,attribute:`vignette-spacing-right`,reflect:!0,converter:U})],W.prototype,`vignetteSpacingRight`,void 0),P([g({type:String,attribute:`supporting-text`,reflect:!0,converter:U})],W.prototype,`supportingText`,void 0),P([g({type:Date,reflect:!0})],W.prototype,`date`,void 0),P([g({type:String,attribute:`social-comments-text`})],W.prototype,`commentsText`,void 0),P([g({type:Number,attribute:`social-comments`})],W.prototype,`comments`,void 0),P([g({type:Boolean,attribute:`social-comments-disabled`})],W.prototype,`commentsDisabled`,void 0),P([g({type:String,attribute:`social-comments-href`})],W.prototype,`commentsHref`,void 0),P([g({type:String,attribute:`social-likes-text`})],W.prototype,`likesText`,void 0),P([g({type:Number,attribute:`social-likes`})],W.prototype,`likes`,void 0),P([g({type:Boolean,attribute:`social-likes-disabled`})],W.prototype,`likesDisabled`,void 0),P([g({type:String,attribute:`social-likes-hover-content`})],W.prototype,`likesHoverContent`,void 0),P([g({type:Boolean,attribute:`social-has-liked`})],W.prototype,`hasLiked`,void 0),P([g({type:Boolean,attribute:`social-likes-interactive`})],W.prototype,`likesInteractive`,void 0),P([g({type:Boolean,attribute:`social-author`})],W.prototype,`author`,void 0),P([g({type:String,attribute:`social-author-text`})],W.prototype,`authorText`,void 0),P([g({type:String,attribute:`social-author-href`})],W.prototype,`authorHref`,void 0),P([g({type:Boolean,attribute:`social-reply-enabled`})],W.prototype,`replyEnabled`,void 0),P([g({type:Boolean,attribute:`social-edit-enabled`})],W.prototype,`editEnabled`,void 0),P([g({type:Boolean,attribute:`social-delete-enabled`})],W.prototype,`deleteEnabled`,void 0),P([g({type:String,reflect:!0,converter:U})],W.prototype,`sizing`,void 0),P([g({type:String,reflect:!0,converter:U})],W.prototype,`width`,void 0),P([g({type:String,reflect:!0,attribute:`max-width`,converter:U})],W.prototype,`maxWidth`,void 0),P([g({type:String,reflect:!0,converter:U})],W.prototype,`height`,void 0),P([g({type:String,reflect:!0,attribute:`max-height`,converter:U})],W.prototype,`maxHeight`,void 0),P([g({type:String,reflect:!0,converter:U})],W.prototype,`spacing`,void 0),P([g({type:String,attribute:`spacing-top`,reflect:!0,converter:U})],W.prototype,`spacingTop`,void 0),P([g({type:String,attribute:`spacing-bottom`,reflect:!0,converter:U})],W.prototype,`spacingBottom`,void 0),P([g({type:String,attribute:`spacing-left`,reflect:!0,converter:U})],W.prototype,`spacingLeft`,void 0),P([g({type:String,attribute:`spacing-right`,reflect:!0,converter:U})],W.prototype,`spacingRight`,void 0),P([g({type:String,attribute:`padding`,reflect:!0,converter:U})],W.prototype,`innerPadding`,void 0),P([g({type:String,attribute:`padding-top`,reflect:!0,converter:U})],W.prototype,`paddingTop`,void 0),P([g({type:String,attribute:`padding-bottom`,reflect:!0,converter:U})],W.prototype,`paddingBottom`,void 0),P([g({type:String,attribute:`padding-left`,reflect:!0,converter:U})],W.prototype,`paddingLeft`,void 0),P([g({type:String,attribute:`padding-right`,reflect:!0,converter:U})],W.prototype,`paddingRight`,void 0),W=bl=P([o(`scb-card`)],W);var Sl=class extends W{constructor(){super(),this.type=`list`}get cardType(){return`list`}};Sl=P([o(`scb-list-card`)],Sl);var Cl=class extends W{constructor(){super(),this.type=`link`}get cardType(){return`link`}};Cl=P([o(`scb-link-card`)],Cl);var wl=class extends W{constructor(){super(),this.type=`action`}get cardType(){return`action`}};wl=P([o(`scb-action-card`)],wl);var Tl=class extends W{constructor(){super(),this.type=`social`}get cardType(){return`social`}};Tl=P([o(`scb-social-card`)],Tl);var El=class extends W{constructor(){super(),this.type=`container`}get cardType(){return`container`}};El=P([o(`scb-container-card`)],El),C(),y(),F();var Dl=class extends S{constructor(...e){super(...e),this._contentId=`scb-collapse-content-${Math.random().toString(36).substr(2,9)}`,this.variant=`elements`,this.collapsedHeight=40,this.visibleElements=1,this.expanded=!1,this._elementCount=0,this.expandButtonLabel=`Mer`,this.collapseButtonLabel=`Mindre`,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.itemsGap=void 0,this._contentHeight=0}get _regionLabel(){return`${this.expanded?this.collapseButtonLabel:this.expandButtonLabel} – ${this._contentId}`}static{this.styles=m`
|
|
5905
5909
|
:host {
|