scb-wc 0.1.28 → 0.1.29

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.
@@ -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 P,b as L,g as W,h as i,y as n}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as a}from"../../vendor/decorate.js";import{n as I,t as h}from"../../vendor/assertClassBrand.js";import{t as H}from"../../vendor/preload-helper.js";(function(){try{var r=typeof globalThis<"u"?globalThis:window;if(!r.__scb_ce_guard_installed__){r.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(s,l,c){try{customElements.get(s)||e(s,l,c)}catch(m){var g=String(m||"");if(g.indexOf("already been used")===-1&&g.indexOf("NotSupportedError")===-1)throw m}}}}catch{}})();var d,o,p,b={fromAttribute:r=>r??"",toAttribute:r=>typeof r!="string"||r.trim()===""?null:r},t=(d=new WeakSet,o=class extends P{constructor(...e){super(...e),I(this,d),this.variant="default",this.size="medium",this.date=null,this.direction="horizontal",this.title="",this.calendarCardTitle="",this.subtitle="",this.supportingText="",this.cardHref="",this.cardHrefNav="",this.showMedia=null,this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.width="",this.maxWidth="",this.minWidth="",this.height="",this.maxHeight="",this.minHeight="",this.sizing="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0}__hasSlottedContent(e){return!!this.querySelector(`[slot="${e}"]`)}__getSlottedText(e){return this.querySelector(`[slot="${e}"]`)?.textContent?.trim()??""}async firstUpdated(){p.__iconLoaded||(await H(()=>import("../../vendor/vendor-material.js").then(e=>e.p),__vite__mapDeps([0,1,2]),import.meta.url),p.__iconLoaded=!0),p.__rippleLoaded||(await H(()=>import("../../vendor/vendor-material.js").then(e=>e.f),__vite__mapDeps([0,1,2]),import.meta.url),p.__rippleLoaded=!0),this.__applyInnerSizing(),h(d,this,$).call(this)}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",s=this.direction?`${this.direction.toLowerCase()}`:"",l=this.cardHref?"clickable":"",c=this.__hasSlottedContent("heading"),g=this.__hasSlottedContent("subtitle"),m=this.__hasSlottedContent("supporting-text"),v=this.calendarCardTitle||this.title,y=this.subtitle,f=this.supportingText,u=c||!!v,x=g||!!y,T=m||!!f,{day:z,month:w}=h(d,this,A).call(this),_=this.mediaWidth&&this.mediaWidth.trim()!==""?this.mediaWidth:"",S=this.mediaHeight&&this.mediaHeight.trim()!==""?this.mediaHeight:"",k=this.mediaAspect&&this.mediaAspect.trim()!==""?this.mediaAspect:"",C=`${_?`inline-size:${_};`:""}${S?`block-size:${S};`:""}${k?`aspect-ratio:${k};`:""}`;return n`
2
+ import"../../vendor/vendor-material.js";import{_ as P,b as L,g as W,h as i,y as n}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as a}from"../../vendor/decorate.js";import{n as I,t as h}from"../../vendor/assertClassBrand.js";import{t as H}from"../../vendor/preload-helper.js";(function(){try{var r=typeof globalThis<"u"?globalThis:window;if(!r.__scb_ce_guard_installed__){r.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(s,l,c){try{customElements.get(s)||e(s,l,c)}catch(m){var g=String(m||"");if(g.indexOf("already been used")===-1&&g.indexOf("NotSupportedError")===-1)throw m}}}}catch{}})();var d,o,p,b={fromAttribute:r=>r??"",toAttribute:r=>typeof r!="string"||r.trim()===""?null:r},t=(d=new WeakSet,o=class extends P{constructor(...e){super(...e),I(this,d),this.variant="default",this.size="medium",this.date=null,this.direction="horizontal",this.title="",this.calendarCardTitle="",this.subtitle="",this.supportingText="",this.cardHref="",this.cardHrefNav="",this.showMedia=null,this.mediaWidth="",this.mediaHeight="",this.mediaAspect="",this.width="",this.maxWidth="",this.minWidth="",this.height="",this.maxHeight="",this.minHeight="",this.sizing="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0}__hasSlottedContent(e){return!!this.querySelector(`[slot="${e}"]`)}__getSlottedText(e){return this.querySelector(`[slot="${e}"]`)?.textContent?.trim()??""}async firstUpdated(){p.__iconLoaded||(await H(()=>import("../../vendor/vendor-material.js").then(e=>e.p),__vite__mapDeps([0,1,2]),import.meta.url),p.__iconLoaded=!0),p.__rippleLoaded||(await H(()=>import("../../vendor/vendor-material.js").then(e=>e.f),__vite__mapDeps([0,1,2]),import.meta.url),p.__rippleLoaded=!0),this.__applyInnerSizing(),h(d,this,$).call(this)}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",s=this.direction?`${this.direction.toLowerCase()}`:"",l=this.cardHref?"clickable":"",c=this.__hasSlottedContent("heading"),g=this.__hasSlottedContent("subtitle"),m=this.__hasSlottedContent("supporting-text"),v=this.calendarCardTitle||this.title,f=this.subtitle,y=this.supportingText,u=c||!!v,x=g||!!f,T=m||!!y,{day:z,month:w}=h(d,this,A).call(this),_=this.mediaWidth&&this.mediaWidth.trim()!==""?this.mediaWidth:"",k=this.mediaHeight&&this.mediaHeight.trim()!==""?this.mediaHeight:"",S=this.mediaAspect&&this.mediaAspect.trim()!==""?this.mediaAspect:"",C=`${_?`inline-size:${_};`:""}${k?`block-size:${k};`:""}${S?`aspect-ratio:${S};`:""}`;return n`
3
3
  <div
4
4
  class="calendar-card ${s} ${l} ${e}"
5
5
  role="${this.cardHref?"link":"group"}"
@@ -25,12 +25,12 @@ import"../../vendor/vendor-material.js";import{_ as P,b as L,g as W,h as i,y as
25
25
  ${this.cardHref?n`<div class="icon-container"><md-icon>arrow_forward</md-icon></div>`:""}
26
26
  </div>
27
27
  `:""}
28
- ${x?n`<div class="subtitle">${g?n`<slot name="subtitle"></slot>`:y}</div>`:""}
28
+ ${x?n`<div class="subtitle">${g?n`<slot name="subtitle"></slot>`:f}</div>`:""}
29
29
  </div>
30
30
  `:""}
31
31
  ${T?n`
32
32
  <div class="supporting-text">
33
- ${m?n`<slot name="supporting-text"></slot>`:f}
33
+ ${m?n`<slot name="supporting-text"></slot>`:y}
34
34
  </div>
35
35
  `:""}
36
36
  </div>
@@ -101,9 +101,9 @@ import"../../vendor/vendor-material.js";import{_ as P,b as L,g as W,h as i,y as
101
101
  --scb-calendar-card-subtitle-line-height: var(--md-sys-typescale-title-small-line-height, 24px);
102
102
  --scb-calendar-card-subtitle-letter-spacing: var(--md-sys-typescale-title-small-tracking, -0.2px);
103
103
 
104
- --scb-calendar-card-supporting-font-size: var(--md-sys-typescale-body-small-size, 14px);
105
- --scb-calendar-card-supporting-line-height: var(--md-sys-typescale-body-small-line-height, 20px);
106
- --scb-calendar-card-supporting-letter-spacing: var(--md-sys-typescale-body-small-tracking, -0.1px);
104
+ --scb-calendar-card-supporting-font-size: var(--md-sys-typescale-body-medium-size, 16px);
105
+ --scb-calendar-card-supporting-line-height: var(--md-sys-typescale-body-medium-line-height, 24px);
106
+ --scb-calendar-card-supporting-letter-spacing: var(--md-sys-typescale-body-medium-tracking, -0.15px);
107
107
  }
108
108
 
109
109
  :host([size='small']) {
@@ -361,4 +361,10 @@ import"../../vendor/vendor-material.js";import{_ as P,b as L,g as W,h as i,y as
361
361
  font: inherit;
362
362
  letter-spacing: inherit;
363
363
  }
364
+
365
+ .supporting-text ::slotted(scb-link) {
366
+ --scb-link-font-size: var(--scb-calendar-card-supporting-font-size);
367
+ --scb-link-line-height: var(--scb-calendar-card-supporting-line-height);
368
+ --scb-link-letter-spacing: var(--scb-calendar-card-supporting-letter-spacing);
369
+ }
364
370
  `,o);function B(){return this.__getSlottedText("heading")||this.calendarCardTitle||this.title}function D(){return this.__getSlottedText("subtitle")||this.subtitle}function E(){return B.call(h(d,this))||D.call(h(d,this))||"Kalenderkort"}function A(){const r={day:1,month:"Jan"};if(!this.date)return r;const e=this.date instanceof Date?this.date:(()=>{const c=new Date(String(this.date));return Number.isNaN(c.getTime())?null:c})();if(!e)return r;const s=e.getDate(),l=new Intl.DateTimeFormat("sv-SE",{month:"short"}).format(e).replace(".","").trim();return{day:s,month:l.charAt(0).toUpperCase()+l.slice(1)}}function $(){const r=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??r,s=this.mapSpacingToken(this.spacingBottom)??r,l=this.mapSpacingToken(this.spacingLeft),c=this.mapSpacingToken(this.spacingRight);e?this.style.setProperty("--scb-calendar-card-spacing-block-start",e):this.style.removeProperty("--scb-calendar-card-spacing-block-start"),s?this.style.setProperty("--scb-calendar-card-spacing-block-end",s):this.style.removeProperty("--scb-calendar-card-spacing-block-end"),l?this.style.setProperty("--scb-calendar-card-spacing-inline-start",l):this.style.removeProperty("--scb-calendar-card-spacing-inline-start"),c?this.style.setProperty("--scb-calendar-card-spacing-inline-end",c):this.style.removeProperty("--scb-calendar-card-spacing-inline-end")}a([i({type:String,reflect:!0})],t.prototype,"variant",void 0);a([i({type:String,reflect:!0})],t.prototype,"size",void 0);a([i({type:String,attribute:"date"})],t.prototype,"date",void 0);a([i({type:String,reflect:!0})],t.prototype,"direction",void 0);a([i({type:String,reflect:!0,converter:b})],t.prototype,"title",void 0);a([i({type:String,attribute:"calendar-card-title",reflect:!0,converter:b})],t.prototype,"calendarCardTitle",void 0);a([i({type:String,reflect:!0,converter:b})],t.prototype,"subtitle",void 0);a([i({type:String,attribute:"supporting-text",reflect:!0,converter:b})],t.prototype,"supportingText",void 0);a([i({type:String,attribute:"card-href"})],t.prototype,"cardHref",void 0);a([i({type:String,attribute:"card-href-nav"})],t.prototype,"cardHrefNav",void 0);a([i({type:Boolean,reflect:!0,attribute:"show-media"})],t.prototype,"showMedia",void 0);a([i({type:String,attribute:"media-width"})],t.prototype,"mediaWidth",void 0);a([i({type:String,attribute:"media-height"})],t.prototype,"mediaHeight",void 0);a([i({type:String,attribute:"media-aspect"})],t.prototype,"mediaAspect",void 0);a([i({type:String,reflect:!0})],t.prototype,"width",void 0);a([i({type:String,reflect:!0,attribute:"max-width"})],t.prototype,"maxWidth",void 0);a([i({type:String,attribute:"min-width"})],t.prototype,"minWidth",void 0);a([i({type:String,reflect:!0})],t.prototype,"height",void 0);a([i({type:String,reflect:!0,attribute:"max-height"})],t.prototype,"maxHeight",void 0);a([i({type:String,attribute:"min-height"})],t.prototype,"minHeight",void 0);a([i({type:String,reflect:!0,converter:b})],t.prototype,"sizing",void 0);a([i({type:String,reflect:!0})],t.prototype,"spacing",void 0);a([i({type:String,attribute:"spacing-top",reflect:!0})],t.prototype,"spacingTop",void 0);a([i({type:String,attribute:"spacing-bottom",reflect:!0})],t.prototype,"spacingBottom",void 0);a([i({type:String,attribute:"spacing-left",reflect:!0})],t.prototype,"spacingLeft",void 0);a([i({type:String,attribute:"spacing-right",reflect:!0})],t.prototype,"spacingRight",void 0);t=p=a([W("scb-calendar-card")],t);
@@ -1,16 +1,16 @@
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 ct,b as ot,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 dt,t as v}from"../../vendor/assertClassBrand.js";import"../scb-button/scb-button.js";import{t as N}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 d=typeof globalThis<"u"?globalThis:window;if(!d.__scb_ce_guard_installed__){d.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,r,l){try{customElements.get(e)||t(e,r,l)}catch(b){var h=String(b||"");if(h.indexOf("already been used")===-1&&h.indexOf("NotSupportedError")===-1)throw b}}}}catch{}})();var m,_,S,lt=["standard","list","social","link","action","container"],c={fromAttribute:d=>d??"",toAttribute:d=>typeof d!="string"||d.trim()===""?null:d},i=(m=new WeakSet,_=class extends ct{constructor(...t){super(...t),dt(this,m),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 l=Number(e);return isFinite(l)&&l>0?{w:1e3,h:Math.round(1e3/l)}:{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 l=this.__decodeHtmlEntities(e);if(l===e)break;e=l}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 lt.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},l=new CustomEvent("card-navigate",{bubbles:!0,composed:!0,cancelable:!0,detail:r});if(this.dispatchEvent(l),l.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`
2
+ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,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 lt,t as v}from"../../vendor/assertClassBrand.js";import"../scb-button/scb-button.js";import{t as N}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,dt=["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 ct{constructor(...t){super(...t),lt(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 dt.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>
6
6
  `;if((this.mediaType||"").toLowerCase()==="avatar")return n`
7
7
  <div class="media">
8
8
  <slot name="media">
9
- <scb-avatar variant="icon" label="${T.call(v(m,this))}" icon-name="person"></scb-avatar>
9
+ <scb-avatar variant="icon" label="${T.call(v(g,this))}" icon-name="person"></scb-avatar>
10
10
  </slot>
11
11
  </div>
12
- `;if(this.mediaHref||this.mediaSrcset){let t=Number(this.mediaWidth)||0,e=Number(this.mediaHeight)||0;const r=(this.mediaAspect||"").trim();if(!t||!e){const h=this.__calcAspectWH(r||"3/2");t||(t=h.w),e||(e=h.h)}const l=`aspect-ratio:${r||`${t}/${e}`};`;return n`
13
- <div class="media ${this.mediaPlaceholder?"has-ph":""}" style="${l}">
12
+ `;if(this.mediaHref||this.mediaSrcset){let t=Number(this.mediaWidth)||0,e=Number(this.mediaHeight)||0;const r=(this.mediaAspect||"").trim();if(!t||!e){const h=this.__calcAspectWH(r||"3/2");t||(t=h.w),e||(e=h.h)}const d=`aspect-ratio:${r||`${t}/${e}`};`;return n`
13
+ <div class="media ${this.mediaPlaceholder?"has-ph":""}" style="${d}">
14
14
  <slot name="media-sources"></slot>
15
15
  <img
16
16
  src="${this.mediaHref||""}"
@@ -25,12 +25,12 @@ 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(),l=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,q=f?"clickable":"",P=this.date instanceof Date?this.date.toISOString().slice(0,10):this.date||"",E=t==="social"?this.__normalizePlainText(this.supportingText):this.supportingText,C=!!T.call(v(m,this))||this.__hasSlottedContent("heading"),L=!!this.subtitle||this.__hasSlottedContent("subtitle"),G=!!E||this.__hasSlottedContent("supporting-text"),X=!!P||this.__hasSlottedContent("date"),U=this.__hasSlottedContent("footer"),H=(g=!1)=>C?n`
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,q=f?"clickable":"",P=this.date instanceof Date?this.date.toISOString().slice(0,10):this.date||"",E=t==="social"?this.__normalizePlainText(this.supportingText):this.supportingText,C=!!T.call(v(g,this))||this.__hasSlottedContent("heading"),L=!!this.subtitle||this.__hasSlottedContent("subtitle"),G=!!E||this.__hasSlottedContent("supporting-text"),X=!!P||this.__hasSlottedContent("date"),U=this.__hasSlottedContent("footer"),H=(m=!1)=>C?n`
29
29
  <div class="header">
30
30
  <slot name="heading">
31
- ${g?n`<a class="title" href="${b}" tabindex="-1">${T.call(v(m,this))}</a>`:n`<span class="title">${T.call(v(m,this))}</span>`}
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
- ${g?n`<md-icon>arrow_forward</md-icon>`:o}
33
+ ${m?n`<md-icon>arrow_forward</md-icon>`:o}
34
34
  </div>
35
35
  `:o,F=()=>L?n`<div class="sub-label"><slot name="subtitle">${this.subtitle}</slot></div>`:o,J=()=>G?n`<div class="supporting-text"><slot name="supporting-text">${E}</slot></div>`:o,Q=()=>X?n`<div class="date"><slot name="date">${P}</slot></div>`:o,Y=()=>this.__mediaTemplate(),Z=this.vignetteSpacing||o,tt=this.vignetteSpacingTop||o,et=this.vignetteSpacingBottom||(this.vignetteSpacing?o:"5"),it=this.vignetteSpacingLeft||o,st=this.vignetteSpacingRight||o,B=!!this.vignette?.trim(),at=B?n`<scb-chip
36
36
  class="content-vignette"
@@ -42,10 +42,10 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
42
42
  spacing-bottom=${et}
43
43
  spacing-left=${it}
44
44
  spacing-right=${st}
45
- ></scb-chip>`:o,D=()=>this.__hasSlottedContent("scb-chip")?n`<div class="chip-slot"><slot name="scb-chip"></slot></div>`:B?n`<div class="chip-slot">${at}</div>`:o,z=(g=!1,w=!0,u=!0)=>n`
45
+ ></scb-chip>`:o,D=()=>this.__hasSlottedContent("scb-chip")?n`<div class="chip-slot"><slot name="scb-chip"></slot></div>`:B?n`<div class="chip-slot">${at}</div>`:o,x=(m=!1,w=!0,u=!0)=>n`
46
46
  ${D()}
47
47
  <div class="top-content">
48
- ${H(g)}
48
+ ${H(m)}
49
49
  ${F()}
50
50
  ${w?J():o}
51
51
  ${u?Q():o}
@@ -54,35 +54,35 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
54
54
  <div class="content footer">
55
55
  <slot name="footer"></slot>
56
56
  </div>
57
- `:o,x=g=>n`
57
+ `:o,z=m=>n`
58
58
  <div
59
- class="scb-card ${e} ${h} ${l} ${q}"
59
+ class="scb-card ${e} ${h} ${d} ${q}"
60
60
  @click=${f?this.__handleHrefNavigation:null}
61
61
  @keydown=${f?this.__onKeyDown:null}
62
62
  style="cursor:${f?"pointer":"default"};"
63
63
  role=${f?"link":o}
64
64
  tabindex=${f?"0":o}
65
- aria-label=${T.call(v(m,this))||this.subtitle||"Kort"}
65
+ aria-label=${T.call(v(g,this))||this.subtitle||"Kort"}
66
66
  >
67
67
  ${f?n`<md-ripple></md-ripple>`:""}
68
68
  ${Y()}
69
- ${g}
69
+ ${m}
70
70
  </div>
71
71
  <md-focus-ring></md-focus-ring>
72
- `;switch(t){case"standard":return x(n`
72
+ `;switch(t){case"standard":return z(n`
73
73
  <div class="full-content">
74
- ${z(!!b)}
74
+ ${x(!!b)}
75
75
  ${y()}
76
76
  </div>
77
- `);case"list":return x(n`
77
+ `);case"list":return z(n`
78
78
  <div class="full-content">
79
- ${z(!1)}
79
+ ${x(!1)}
80
80
  <div class="content list">
81
81
  <slot name="list"></slot><slot></slot>
82
82
  </div>
83
83
  ${y()}
84
84
  </div>
85
- `);case"social":const g=this.commentsHref,w=p=>{p.stopPropagation()},u=p=>{const k=this.renderRoot?.querySelector(".scb-card");k&&(p?k.classList.add("no-hover"):k.classList.remove("no-hover"))},rt=this.commentsText?`${this.commentsText}: `:"",nt=this.likesText?`${this.likesText}: `:"",A=p=>k=>{k.stopPropagation(),this.__dispatchSocialActionEvent(p,k)},R=this.likesDisabled?o:n`
85
+ `);case"social":const m=this.commentsHref,w=p=>{p.stopPropagation()},u=p=>{const k=this.renderRoot?.querySelector(".scb-card");k&&(p?k.classList.add("no-hover"):k.classList.remove("no-hover"))},rt=this.commentsText?`${this.commentsText}: `:"",nt=this.likesText?`${this.likesText}: `:"",A=p=>k=>{k.stopPropagation(),this.__dispatchSocialActionEvent(p,k)},R=this.likesDisabled?o:n`
86
86
  <span
87
87
  class="likes"
88
88
  @mouseenter=${()=>u(!0)}
@@ -102,9 +102,9 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
102
102
  `:n`<md-icon>thumb_up</md-icon>`}
103
103
  <span class="social-text">${nt}${this.likes??0}</span>
104
104
  </span>
105
- `;return x(n`
105
+ `;return z(n`
106
106
  <div class="full-content">
107
- ${z(!!b)}
107
+ ${x(!!b)}
108
108
  <div class="content">
109
109
  <div class="social-metrics">
110
110
  ${this.author?n`
@@ -124,9 +124,9 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
124
124
  @mouseenter=${()=>u(!0)}
125
125
  @mouseleave=${()=>u(!1)}
126
126
  >
127
- ${g!==""?n`
127
+ ${m!==""?n`
128
128
  <scb-icon-button
129
- href="${g}"
129
+ href="${m}"
130
130
  tabindex="0"
131
131
  @click=${w}
132
132
  variant="standard"
@@ -187,23 +187,23 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
187
187
  </div>
188
188
  ${y()}
189
189
  </div>
190
- `);case"link":return x(n`
190
+ `);case"link":return z(n`
191
191
  <div class="full-content">
192
- ${z(!1)}
192
+ ${x(!1)}
193
193
  <div class="content links">
194
194
  <slot name="links"></slot><slot></slot>
195
195
  </div>
196
196
  ${y()}
197
197
  </div>
198
- `);case"action":return x(n`
198
+ `);case"action":return z(n`
199
199
  <div class="full-content">
200
- ${z(!1)}
200
+ ${x(!1)}
201
201
  <div class="content actions">
202
202
  <slot name="actions"></slot><slot></slot>
203
203
  </div>
204
204
  ${y()}
205
205
  </div>
206
- `);case"container":return x(n`
206
+ `);case"container":return z(n`
207
207
  <div class="container-content ${C||L?"has-header":""}">
208
208
  ${D()}
209
209
  ${C||L?n`
@@ -215,12 +215,12 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
215
215
  <slot></slot>
216
216
  ${y()}
217
217
  </div>
218
- `);default:return x(n`
218
+ `);default:return z(n`
219
219
  <div class="full-content">
220
- ${z(!!b)}
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(m,this,I).call(this),(t.has("innerPadding")||t.has("paddingTop")||t.has("paddingBottom")||t.has("paddingLeft")||t.has("paddingRight"))&&v(m,this,M).call(this)}async firstUpdated(t){S.__iconLoaded||(await N(()=>import("../../vendor/vendor-material.js").then(e=>e.p),__vite__mapDeps([0,1,2]),import.meta.url),S.__iconLoaded=!0),S.__rippleLoaded||(await N(()=>import("../../vendor/vendor-material.js").then(e=>e.f),__vite__mapDeps([0,1,2]),import.meta.url),S.__rippleLoaded=!0),v(m,this,I).call(this),v(m,this,M).call(this),this.__syncSocialAttributes()}},S=_,_.__iconLoaded=!1,_.__rippleLoaded=!1,_.styles=ot`
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,I).call(this),(t.has("innerPadding")||t.has("paddingTop")||t.has("paddingBottom")||t.has("paddingLeft")||t.has("paddingRight"))&&v(g,this,M).call(this)}async firstUpdated(t){S.__iconLoaded||(await N(()=>import("../../vendor/vendor-material.js").then(e=>e.p),__vite__mapDeps([0,1,2]),import.meta.url),S.__iconLoaded=!0),S.__rippleLoaded||(await N(()=>import("../../vendor/vendor-material.js").then(e=>e.f),__vite__mapDeps([0,1,2]),import.meta.url),S.__rippleLoaded=!0),v(g,this,I).call(this),v(g,this,M).call(this),this.__syncSocialAttributes()}},S=_,_.__iconLoaded=!1,_.__rippleLoaded=!1,_.styles=ot`
224
224
  :host {
225
225
  display: block;
226
226
  container-type: inline-size;
@@ -258,6 +258,10 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
258
258
  --scb-card-size-supporting-line-height: var(--md-sys-typescale-body-medium-line-height, 24px);
259
259
  --scb-card-size-supporting-letter-spacing: var(--md-sys-typescale-body-medium-tracking, -0.15px);
260
260
 
261
+ --scb-card-size-link-font-size: var(--scb-card-size-supporting-font-size);
262
+ --scb-card-size-link-line-height: var(--scb-card-size-supporting-line-height);
263
+ --scb-card-size-link-letter-spacing: var(--scb-card-size-supporting-letter-spacing);
264
+
261
265
  --scb-card-size-date-font-size: var(--md-sys-typescale-body-small-size, 12px);
262
266
  --scb-card-size-date-line-height: var(--md-sys-typescale-body-small-line-height, 24px);
263
267
  --scb-card-size-date-letter-spacing: var(--md-sys-typescale-body-small-tracking, -0.15px);
@@ -294,9 +298,9 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
294
298
  --scb-card-size-sub-label-line-height: var(--md-sys-typescale-title-small-line-height, 24px);
295
299
  --scb-card-size-sub-label-letter-spacing: var(--md-sys-typescale-title-small-tracking, -0.2px);
296
300
 
297
- --scb-card-size-supporting-font-size: var(--md-sys-typescale-body-small-size, 14px);
298
- --scb-card-size-supporting-line-height: var(--md-sys-typescale-body-small-line-height, 20px);
299
- --scb-card-size-supporting-letter-spacing: var(--md-sys-typescale-body-small-tracking, -0.1px);
301
+ --scb-card-size-supporting-font-size: var(--md-sys-typescale-body-medium-size, 16px);
302
+ --scb-card-size-supporting-line-height: var(--md-sys-typescale-body-medium-line-height, 24px);
303
+ --scb-card-size-supporting-letter-spacing: var(--md-sys-typescale-body-medium-tracking, -0.15px);
300
304
 
301
305
  --scb-card-size-horizontal-gap: var(--spacing-5, 16px);
302
306
  --scb-card-size-horizontal-padding: var(--spacing-5, 16px);
@@ -801,6 +805,9 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
801
805
 
802
806
  .scb-card .content.links {
803
807
  margin-top: var(--scb-card-size-links-offset);
808
+ font-size: var(--scb-card-size-link-font-size);
809
+ line-height: var(--scb-card-size-link-line-height);
810
+ letter-spacing: var(--scb-card-size-link-letter-spacing);
804
811
  }
805
812
 
806
813
  .scb-card .content.links ::slotted(a),
@@ -809,8 +816,27 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
809
816
  margin-block-start: var(--scb-card-size-links-item-offset);
810
817
  }
811
818
 
819
+ .scb-card .content.links ::slotted(a),
820
+ .scb-card .content.footer ::slotted(a),
821
+ slot[name='supporting-text']::slotted(a) {
822
+ font-size: var(--scb-card-size-link-font-size);
823
+ line-height: var(--scb-card-size-link-line-height);
824
+ letter-spacing: var(--scb-card-size-link-letter-spacing);
825
+ }
826
+
827
+ .scb-card .content.links ::slotted(scb-link),
828
+ .scb-card .content.footer ::slotted(scb-link),
829
+ slot[name='supporting-text']::slotted(scb-link) {
830
+ --scb-link-font-size: var(--scb-card-size-link-font-size);
831
+ --scb-link-line-height: var(--scb-card-size-link-line-height);
832
+ --scb-link-letter-spacing: var(--scb-card-size-link-letter-spacing);
833
+ }
834
+
812
835
  .scb-card .content.footer {
813
836
  margin-block-start: var(--scb-card-footer-offset, var(--scb-card-size-footer-offset));
837
+ font-size: var(--scb-card-size-link-font-size);
838
+ line-height: var(--scb-card-size-link-line-height);
839
+ letter-spacing: var(--scb-card-size-link-letter-spacing);
814
840
  }
815
841
 
816
842
  .scb-card:not(.filled):not(.filled-alternative) .content.list ::slotted(scb-list) {
@@ -824,4 +850,4 @@ import"../../vendor/vendor-material.js";import{_ as ct,b as ot,g as $,h as a,v a
824
850
  .scb-card.filled-alternative .content.list ::slotted(scb-list) {
825
851
  --scb-list-bg: var(--md-sys-color-surface-container, #EEF3FF);
826
852
  }
827
- `,_);function T(){return this.cardTitle||this.title}function I(){const d=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??d,e=this.mapSpacingToken(this.spacingBottom)??d,r=this.mapSpacingToken(this.spacingLeft),l=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"),l?this.style.setProperty("--scb-card-spacing-inline-end",l):this.style.removeProperty("--scb-card-spacing-inline-end")}function M(){const d=this.mapSpacingToken(this.innerPadding),t=this.mapSpacingToken(this.paddingTop)??d,e=this.mapSpacingToken(this.paddingBottom)??d,r=this.mapSpacingToken(this.paddingLeft)??d,l=this.mapSpacingToken(this.paddingRight)??d;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"),l?this.style.setProperty("--scb-card-content-padding-inline-end",l):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 W=class extends i{constructor(){super(),this.type="list"}get cardType(){return"list"}};W=s([$("scb-list-card")],W);var V=class extends i{constructor(){super(),this.type="link"}get cardType(){return"link"}};V=s([$("scb-link-card")],V);var j=class extends i{constructor(){super(),this.type="action"}get cardType(){return"action"}};j=s([$("scb-action-card")],j);var O=class extends i{constructor(){super(),this.type="social"}get cardType(){return"social"}};O=s([$("scb-social-card")],O);var K=class extends i{constructor(){super(),this.type="container"}get cardType(){return"container"}};K=s([$("scb-container-card")],K);export{j as ScbActionCard,K as ScbContainerCard,V as ScbLinkCard,W as ScbListCard,O as ScbSocialCard};
853
+ `,_);function T(){return this.cardTitle||this.title}function I(){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 M(){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 W=class extends i{constructor(){super(),this.type="list"}get cardType(){return"list"}};W=s([$("scb-list-card")],W);var V=class extends i{constructor(){super(),this.type="link"}get cardType(){return"link"}};V=s([$("scb-link-card")],V);var j=class extends i{constructor(){super(),this.type="action"}get cardType(){return"action"}};j=s([$("scb-action-card")],j);var O=class extends i{constructor(){super(),this.type="social"}get cardType(){return"social"}};O=s([$("scb-social-card")],O);var K=class extends i{constructor(){super(),this.type="container"}get cardType(){return"container"}};K=s([$("scb-container-card")],K);export{j as ScbActionCard,K as ScbContainerCard,V as ScbLinkCard,W as ScbListCard,O as ScbSocialCard};
@@ -1,9 +1,9 @@
1
- import{_,b as u,g,h as o,m as c,y as b}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as i}from"../../vendor/decorate.js";import{n as f,t as y}from"../../vendor/assertClassBrand.js";(function(){try{var d=typeof globalThis<"u"?globalThis:window;if(!d.__scb_ce_guard_installed__){d.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(a,s,n){try{customElements.get(a)||t(a,s,n)}catch(r){var l=String(r||"");if(l.indexOf("already been used")===-1&&l.indexOf("NotSupportedError")===-1)throw r}}}}catch{}})();var p,h,e=(p=new WeakSet,h=class extends _{constructor(...t){super(...t),f(this,p),this.title="",this.factCardTitle="",this.subtitle="",this.supportingText="",this.__hasHeading=!1,this.__hasSubtitle=!1,this.__hasSupportingText=!1,this.__hasLinks=!1}render(){const t=v.call(y(p,this)),a=this.subtitle,s=this.supportingText,n=this.__hasHeading||!!t,l=this.__hasSubtitle||!!a,r=this.__hasSupportingText||!!s;return b`
1
+ import{_ as g,b as u,g as b,h as l,m as o,y}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as i}from"../../vendor/decorate.js";import{n as _,t as f}from"../../vendor/assertClassBrand.js";(function(){try{var d=typeof globalThis<"u"?globalThis:window;if(!d.__scb_ce_guard_installed__){d.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(a,s,n){try{customElements.get(a)||t(a,s,n)}catch(r){var c=String(r||"");if(c.indexOf("already been used")===-1&&c.indexOf("NotSupportedError")===-1)throw r}}}}catch{}})();var p,h,e=(p=new WeakSet,h=class extends g{constructor(...t){super(...t),_(this,p),this.title="",this.factCardTitle="",this.subtitle="",this.supportingText="",this.__hasHeading=!1,this.__hasSubtitle=!1,this.__hasSupportingText=!1,this.__hasLinks=!1}render(){const t=m.call(f(p,this)),a=this.subtitle,s=this.supportingText,n=this.__hasHeading||!!t,c=this.__hasSubtitle||!!a,r=this.__hasSupportingText||!!s;return y`
2
2
  <div class="label" ?hidden=${!n}>
3
3
  <slot name="heading" ?hidden=${!this.__hasHeading} @slotchange=${()=>this.__syncSlot("heading")}></slot>
4
4
  ${this.__hasHeading?"":t}
5
5
  </div>
6
- <div class="sub-label" ?hidden=${!l}>
6
+ <div class="sub-label" ?hidden=${!c}>
7
7
  <slot name="subtitle" ?hidden=${!this.__hasSubtitle} @slotchange=${()=>this.__syncSlot("subtitle")}></slot>
8
8
  ${this.__hasSubtitle?"":a}
9
9
  </div>
@@ -56,10 +56,34 @@ import{_,b as u,g,h as o,m as c,y as b}from"../../vendor/vendor.js";import"../..
56
56
  margin: 0;
57
57
  }
58
58
 
59
+ .supporting-text ::slotted(a) {
60
+ font-size: var(--scb-fact-card-content-supporting-size, var(--md-sys-typescale-body-medium-size, 16px));
61
+ line-height: var(--scb-fact-card-content-supporting-line-height, var(--md-sys-typescale-body-medium-line-height, 24px));
62
+ letter-spacing: var(--scb-fact-card-content-supporting-letter-spacing, var(--md-sys-typescale-body-medium-tracking, -0.15px));
63
+ }
64
+
65
+ .supporting-text ::slotted(scb-link) {
66
+ --scb-link-font-size: var(--scb-fact-card-content-supporting-size, var(--md-sys-typescale-body-medium-size, 16px));
67
+ --scb-link-line-height: var(--scb-fact-card-content-supporting-line-height, var(--md-sys-typescale-body-medium-line-height, 24px));
68
+ --scb-link-letter-spacing: var(--scb-fact-card-content-supporting-letter-spacing, var(--md-sys-typescale-body-medium-tracking, -0.15px));
69
+ }
70
+
59
71
  .content.links ::slotted(*) {
60
72
  margin-top: var(--scb-fact-card-content-links-offset, var(--spacing-3, 8px));
61
73
  display: flex;
62
74
  flex-direction: column;
63
75
  gap: var(--scb-fact-card-content-links-gap, var(--spacing-3, 8px));
64
76
  }
65
- `,h);function v(){return this.factCardTitle||this.title}i([o({type:String,reflect:!0,attribute:"title"})],e.prototype,"title",void 0);i([o({type:String,reflect:!0,attribute:"fact-card-title"})],e.prototype,"factCardTitle",void 0);i([o({type:String,reflect:!0,attribute:"subtitle"})],e.prototype,"subtitle",void 0);i([o({type:String,reflect:!0,attribute:"supporting-text"})],e.prototype,"supportingText",void 0);i([c()],e.prototype,"__hasHeading",void 0);i([c()],e.prototype,"__hasSubtitle",void 0);i([c()],e.prototype,"__hasSupportingText",void 0);i([c()],e.prototype,"__hasLinks",void 0);e=i([g("scb-fact-card-content")],e);
77
+
78
+ .content.links ::slotted(a) {
79
+ font-size: var(--scb-fact-card-content-link-size, var(--scb-fact-card-content-supporting-size, var(--md-sys-typescale-body-medium-size, 16px)));
80
+ line-height: var(--scb-fact-card-content-link-line-height, var(--scb-fact-card-content-supporting-line-height, var(--md-sys-typescale-body-medium-line-height, 24px)));
81
+ letter-spacing: var(--scb-fact-card-content-link-letter-spacing, var(--scb-fact-card-content-supporting-letter-spacing, var(--md-sys-typescale-body-medium-tracking, -0.15px)));
82
+ }
83
+
84
+ .content.links ::slotted(scb-link) {
85
+ --scb-link-font-size: var(--scb-fact-card-content-link-size, var(--scb-fact-card-content-supporting-size, var(--md-sys-typescale-body-medium-size, 16px)));
86
+ --scb-link-line-height: var(--scb-fact-card-content-link-line-height, var(--scb-fact-card-content-supporting-line-height, var(--md-sys-typescale-body-medium-line-height, 24px)));
87
+ --scb-link-letter-spacing: var(--scb-fact-card-content-link-letter-spacing, var(--scb-fact-card-content-supporting-letter-spacing, var(--md-sys-typescale-body-medium-tracking, -0.15px)));
88
+ }
89
+ `,h);function m(){return this.factCardTitle||this.title}i([l({type:String,reflect:!0,attribute:"title"})],e.prototype,"title",void 0);i([l({type:String,reflect:!0,attribute:"fact-card-title"})],e.prototype,"factCardTitle",void 0);i([l({type:String,reflect:!0,attribute:"subtitle"})],e.prototype,"subtitle",void 0);i([l({type:String,reflect:!0,attribute:"supporting-text"})],e.prototype,"supportingText",void 0);i([o()],e.prototype,"__hasHeading",void 0);i([o()],e.prototype,"__hasSubtitle",void 0);i([o()],e.prototype,"__hasSupportingText",void 0);i([o()],e.prototype,"__hasLinks",void 0);e=i([b("scb-fact-card-content")],e);
@@ -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{_ as m,b as u,g as y,h as a,m as v,y as h}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as s}from"../../vendor/decorate.js";import{n as _,t as b}from"../../vendor/assertClassBrand.js";import{t as x}from"../../vendor/preload-helper.js";import"../scb-icon-button/scb-icon-button.js";import"../scb-link/scb-link.js";import"./scb-fact-card-content.js";(function(){try{var n=typeof globalThis<"u"?globalThis:window;if(!n.__scb_ce_guard_installed__){n.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,r,l){try{customElements.get(e)||t(e,r,l)}catch(d){var o=String(d||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var g,p,c,k={fromAttribute:n=>n??"",toAttribute:n=>typeof n!="string"||n.trim()===""?null:n},i=(g=new WeakSet,p=class extends m{constructor(...t){super(...t),_(this,g),this.__onCloseClick=e=>{e.stopPropagation(),this.__setOpen(!1)},this.variant="filled",this.size="large",this.title="",this.subtitle="",this.supportingText="",this.icon="",this.showCloseButton=!1,this.__hasIconSlot=!1,this.open=!0,this.__lastTriggerEl=null,this.sizing="",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.__onIconSlotChange=()=>{const e=this.renderRoot.querySelector('slot[name="icon"]');this.__hasIconSlot=!!e?.assignedNodes({flatten:!0}).some(r=>r.nodeType===Node.TEXT_NODE?!!r.textContent?.trim():!0)}}static __handleDocClick(t){const e=t.composedPath();for(const r of e){if(!(r instanceof Element))continue;const l=r.getAttribute("data-fact-card-toggle")||r.getAttribute("aria-controls");if(!l)continue;const o=c.__instances.get(l);if(!o){c.__instances.delete(l);continue}o.__lastTriggerEl=r,o.__setOpen(!o.open);break}}static __ensureDocListener(){c.__docListenerAttached||(document.addEventListener("click",c.__handleDocClick,!0),c.__docListenerAttached=!0)}static __maybeRemoveDocListener(){c.__docListenerAttached&&c.__instances.size===0&&(document.removeEventListener("click",c.__handleDocClick,!0),c.__docListenerAttached=!1)}connectedCallback(){super.connectedCallback(),this.id&&c.__instances.set(this.id,this),c.__ensureDocListener()}disconnectedCallback(){this.id&&c.__instances.delete(this.id),c.__maybeRemoveDocListener(),super.disconnectedCallback()}updated(t){t.has("open")&&this.__updateTriggersExpanded(),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("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&b(g,this,f).call(this)}__updateTriggersExpanded(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-fact-card-toggle="${this.id}"]`).forEach(t=>{t.hasAttribute("aria-controls")&&t.setAttribute("aria-expanded",String(this.open))})}__setOpen(t){const e=this.open;e!==t&&(this.open=t,this.dispatchEvent(new CustomEvent("openchange",{bubbles:!0,composed:!0,detail:{open:this.open}})),t&&!e?this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0})):!t&&e&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})))}render(){if(!this.open)return h``;const t=this.variant==="outlined"?"outlined":"filled",e=!!this.icon||this.__hasIconSlot||this.__hasLightDomSlot("icon");return h`
2
+ import{_ as f,b as u,g as y,h as a,m as v,y as h}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as s}from"../../vendor/decorate.js";import{n as _,t as b}from"../../vendor/assertClassBrand.js";import{t as x}from"../../vendor/preload-helper.js";import"../scb-icon-button/scb-icon-button.js";import"../scb-link/scb-link.js";import"./scb-fact-card-content.js";(function(){try{var n=typeof globalThis<"u"?globalThis:window;if(!n.__scb_ce_guard_installed__){n.__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(l){var o=String(l||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw l}}}}catch{}})();var g,p,c,k={fromAttribute:n=>n??"",toAttribute:n=>typeof n!="string"||n.trim()===""?null:n},i=(g=new WeakSet,p=class extends f{constructor(...t){super(...t),_(this,g),this.__onCloseClick=e=>{e.stopPropagation(),this.__setOpen(!1)},this.variant="filled",this.size="large",this.title="",this.subtitle="",this.supportingText="",this.icon="",this.showCloseButton=!1,this.__hasIconSlot=!1,this.open=!0,this.__lastTriggerEl=null,this.sizing="",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.__onIconSlotChange=()=>{const e=this.renderRoot.querySelector('slot[name="icon"]');this.__hasIconSlot=!!e?.assignedNodes({flatten:!0}).some(r=>r.nodeType===Node.TEXT_NODE?!!r.textContent?.trim():!0)}}static __handleDocClick(t){const e=t.composedPath();for(const r of e){if(!(r instanceof Element))continue;const d=r.getAttribute("data-fact-card-toggle")||r.getAttribute("aria-controls");if(!d)continue;const o=c.__instances.get(d);if(!o){c.__instances.delete(d);continue}o.__lastTriggerEl=r,o.__setOpen(!o.open);break}}static __ensureDocListener(){c.__docListenerAttached||(document.addEventListener("click",c.__handleDocClick,!0),c.__docListenerAttached=!0)}static __maybeRemoveDocListener(){c.__docListenerAttached&&c.__instances.size===0&&(document.removeEventListener("click",c.__handleDocClick,!0),c.__docListenerAttached=!1)}connectedCallback(){super.connectedCallback(),this.id&&c.__instances.set(this.id,this),c.__ensureDocListener()}disconnectedCallback(){this.id&&c.__instances.delete(this.id),c.__maybeRemoveDocListener(),super.disconnectedCallback()}updated(t){t.has("open")&&this.__updateTriggersExpanded(),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("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&b(g,this,m).call(this)}__updateTriggersExpanded(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-fact-card-toggle="${this.id}"]`).forEach(t=>{t.hasAttribute("aria-controls")&&t.setAttribute("aria-expanded",String(this.open))})}__setOpen(t){const e=this.open;e!==t&&(this.open=t,this.dispatchEvent(new CustomEvent("openchange",{bubbles:!0,composed:!0,detail:{open:this.open}})),t&&!e?this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0})):!t&&e&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0})))}render(){if(!this.open)return h``;const t=this.variant==="outlined"?"outlined":"filled",e=!!this.icon||this.__hasIconSlot||this.__hasLightDomSlot("icon");return h`
3
3
  <div class="outer ${e?"has-icon":""}">
4
4
  <div class="icon-wrapper ${t}" ?hidden=${!e}>
5
5
  <slot name="icon" @slotchange=${this.__onIconSlotChange}>
@@ -19,7 +19,7 @@ import{_ as m,b as u,g as y,h as a,m as v,y as h}from"../../vendor/vendor.js";im
19
19
  </div>
20
20
  </div>
21
21
  </div>
22
- `}async firstUpdated(){b(g,this,f).call(this),c.__iconLoaded||(await x(()=>import("../../vendor/vendor-material.js").then(t=>t.p),__vite__mapDeps([0,1,2]),import.meta.url),c.__iconLoaded=!0)}__hasLightDomSlot(t){return Array.from(this.children).some(e=>e.getAttribute("slot")===t)}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}},c=p,p.__iconLoaded=!1,p.__instances=new Map,p.__docListenerAttached=!1,p.styles=u`
22
+ `}async firstUpdated(){b(g,this,m).call(this),c.__iconLoaded||(await x(()=>import("../../vendor/vendor-material.js").then(t=>t.p),__vite__mapDeps([0,1,2]),import.meta.url),c.__iconLoaded=!0)}__hasLightDomSlot(t){return Array.from(this.children).some(e=>e.getAttribute("slot")===t)}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}},c=p,p.__iconLoaded=!1,p.__instances=new Map,p.__docListenerAttached=!1,p.styles=u`
23
23
  :host {
24
24
  --scb-fact-card-icon-overhang: 40px;
25
25
  display: block;
@@ -74,9 +74,9 @@ import{_ as m,b as u,g as y,h as a,m as v,y as h}from"../../vendor/vendor.js";im
74
74
  --scb-fact-card-content-subtitle-line-height: var(--md-sys-typescale-title-small-line-height, 24px);
75
75
  --scb-fact-card-content-subtitle-letter-spacing: var(--md-sys-typescale-title-small-tracking, -0.2px);
76
76
 
77
- --scb-fact-card-content-supporting-size: var(--md-sys-typescale-body-small-size, 14px);
78
- --scb-fact-card-content-supporting-line-height: var(--md-sys-typescale-body-small-line-height, 20px);
79
- --scb-fact-card-content-supporting-letter-spacing: var(--md-sys-typescale-body-small-tracking, -0.1px);
77
+ --scb-fact-card-content-supporting-size: var(--md-sys-typescale-body-medium-size, 16px);
78
+ --scb-fact-card-content-supporting-line-height: var(--md-sys-typescale-body-medium-line-height, 24px);
79
+ --scb-fact-card-content-supporting-letter-spacing: var(--md-sys-typescale-body-medium-tracking, -0.15px);
80
80
 
81
81
  --scb-fact-card-content-links-gap: var(--spacing-2, 4px);
82
82
  --scb-fact-card-content-links-offset: var(--spacing-2, 4px);
@@ -231,4 +231,4 @@ import{_ as m,b as u,g as y,h as a,m as v,y as h}from"../../vendor/vendor.js";im
231
231
  overflow-wrap: normal;
232
232
  hyphens: auto;
233
233
  }
234
- `,p);function f(){const n=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop),e=this.mapSpacingToken(this.spacingBottom),r=this.mapSpacingToken(this.spacingLeft),l=this.mapSpacingToken(this.spacingRight),o=t??n,d=e??n;o?this.style.setProperty("--scb-fact-card-spacing-block-start",o):this.style.removeProperty("--scb-fact-card-spacing-block-start"),d?this.style.setProperty("--scb-fact-card-spacing-block-end",d):this.style.removeProperty("--scb-fact-card-spacing-block-end"),r?this.style.setProperty("--scb-fact-card-spacing-inline-start",r):this.style.removeProperty("--scb-fact-card-spacing-inline-start"),l?this.style.setProperty("--scb-fact-card-spacing-inline-end",l):this.style.removeProperty("--scb-fact-card-spacing-inline-end")}s([a({type:String})],i.prototype,"variant",void 0);s([a({type:String,reflect:!0})],i.prototype,"size",void 0);s([a({type:String,attribute:"title"})],i.prototype,"title",void 0);s([a({type:String,attribute:"subtitle"})],i.prototype,"subtitle",void 0);s([a({type:String,attribute:"supporting-text"})],i.prototype,"supportingText",void 0);s([a({type:String})],i.prototype,"icon",void 0);s([a({type:Boolean,attribute:"show-close-button"})],i.prototype,"showCloseButton",void 0);s([v()],i.prototype,"__hasIconSlot",void 0);s([a({type:Boolean,reflect:!0})],i.prototype,"open",void 0);s([a({type:String,reflect:!0,converter:k})],i.prototype,"sizing",void 0);s([a({type:String,reflect:!0})],i.prototype,"width",void 0);s([a({type:String,reflect:!0,attribute:"max-width"})],i.prototype,"maxWidth",void 0);s([a({type:String,reflect:!0})],i.prototype,"height",void 0);s([a({type:String,reflect:!0,attribute:"max-height"})],i.prototype,"maxHeight",void 0);s([a({type:String,reflect:!0})],i.prototype,"spacing",void 0);s([a({type:String,reflect:!0,attribute:"spacing-top"})],i.prototype,"spacingTop",void 0);s([a({type:String,reflect:!0,attribute:"spacing-bottom"})],i.prototype,"spacingBottom",void 0);s([a({type:String,reflect:!0,attribute:"spacing-left"})],i.prototype,"spacingLeft",void 0);s([a({type:String,reflect:!0,attribute:"spacing-right"})],i.prototype,"spacingRight",void 0);i=c=s([y("scb-fact-card")],i);
234
+ `,p);function m(){const n=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop),e=this.mapSpacingToken(this.spacingBottom),r=this.mapSpacingToken(this.spacingLeft),d=this.mapSpacingToken(this.spacingRight),o=t??n,l=e??n;o?this.style.setProperty("--scb-fact-card-spacing-block-start",o):this.style.removeProperty("--scb-fact-card-spacing-block-start"),l?this.style.setProperty("--scb-fact-card-spacing-block-end",l):this.style.removeProperty("--scb-fact-card-spacing-block-end"),r?this.style.setProperty("--scb-fact-card-spacing-inline-start",r):this.style.removeProperty("--scb-fact-card-spacing-inline-start"),d?this.style.setProperty("--scb-fact-card-spacing-inline-end",d):this.style.removeProperty("--scb-fact-card-spacing-inline-end")}s([a({type:String})],i.prototype,"variant",void 0);s([a({type:String,reflect:!0})],i.prototype,"size",void 0);s([a({type:String,attribute:"title"})],i.prototype,"title",void 0);s([a({type:String,attribute:"subtitle"})],i.prototype,"subtitle",void 0);s([a({type:String,attribute:"supporting-text"})],i.prototype,"supportingText",void 0);s([a({type:String})],i.prototype,"icon",void 0);s([a({type:Boolean,attribute:"show-close-button"})],i.prototype,"showCloseButton",void 0);s([v()],i.prototype,"__hasIconSlot",void 0);s([a({type:Boolean,reflect:!0})],i.prototype,"open",void 0);s([a({type:String,reflect:!0,converter:k})],i.prototype,"sizing",void 0);s([a({type:String,reflect:!0})],i.prototype,"width",void 0);s([a({type:String,reflect:!0,attribute:"max-width"})],i.prototype,"maxWidth",void 0);s([a({type:String,reflect:!0})],i.prototype,"height",void 0);s([a({type:String,reflect:!0,attribute:"max-height"})],i.prototype,"maxHeight",void 0);s([a({type:String,reflect:!0})],i.prototype,"spacing",void 0);s([a({type:String,reflect:!0,attribute:"spacing-top"})],i.prototype,"spacingTop",void 0);s([a({type:String,reflect:!0,attribute:"spacing-bottom"})],i.prototype,"spacingBottom",void 0);s([a({type:String,reflect:!0,attribute:"spacing-left"})],i.prototype,"spacingLeft",void 0);s([a({type:String,reflect:!0,attribute:"spacing-right"})],i.prototype,"spacingRight",void 0);i=c=s([y("scb-fact-card")],i);
@@ -1,4 +1,4 @@
1
- import{_ as y,b as f,g as b,h as r,y as S}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as i}from"../../vendor/decorate.js";import{n as g,t as o}from"../../vendor/assertClassBrand.js";(function(){try{var a=typeof globalThis<"u"?globalThis:window;if(!a.__scb_ce_guard_installed__){a.__scb_ce_guard_installed__=!0;var s=customElements.define.bind(customElements);customElements.define=function(n,h,m){try{customElements.get(n)||s(n,h,m)}catch(u){var c=String(u||"");if(c.indexOf("already been used")===-1&&c.indexOf("NotSupportedError")===-1)throw u}}}}catch{}})();var e,p,w={fromAttribute(a){if(a===null)return!1;const s=a.trim().toLowerCase();return s!=="false"&&s!=="0"&&s!=="no"}},t=(e=new WeakSet,p=class extends y{constructor(...s){super(...s),g(this,e),this.fit=!1}firstUpdated(){o(e,this,d).call(this)}updated(){o(e,this,d).call(this)}render(){return S`<slot></slot>`}},p.styles=f`
1
+ import{_ as b,b as m,g as y,h as r,y as g}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as i}from"../../vendor/decorate.js";import{n as S,t as o}from"../../vendor/assertClassBrand.js";(function(){try{var a=typeof globalThis<"u"?globalThis:window;if(!a.__scb_ce_guard_installed__){a.__scb_ce_guard_installed__=!0;var s=customElements.define.bind(customElements);customElements.define=function(n,h,f){try{customElements.get(n)||s(n,h,f)}catch(d){var p=String(d||"");if(p.indexOf("already been used")===-1&&p.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var e,c,w={fromAttribute(a){if(a===null)return!1;const s=a.trim().toLowerCase();return s!=="false"&&s!=="0"&&s!=="no"}},t=(e=new WeakSet,c=class extends b{constructor(...s){super(...s),S(this,e),this.fit=!1}firstUpdated(){o(e,this,u).call(this)}updated(){o(e,this,u).call(this)}render(){return g`<slot></slot>`}},c.styles=m`
2
2
  :host {
3
3
  box-sizing: border-box;
4
4
  display: block;
@@ -6,6 +6,24 @@ import{_ as y,b as f,g as b,h as r,y as S}from"../../vendor/vendor.js";import"..
6
6
  justify-self: var(--scb-grid-item-justify, auto);
7
7
  block-size: auto;
8
8
  }
9
+
10
+ slot {
11
+ display: block;
12
+ inline-size: 100%;
13
+ }
14
+
9
15
  :host([fit]) { block-size: 100%; }
10
- :host([fit]) ::slotted(*) { block-size: 100%; }
11
- `,p);function d(){o(e,this,l).call(this,"--col-span",this.hasAttribute("col-span")?String(this.colSpan):null),o(e,this,l).call(this,"--col-span-compact",this.hasAttribute("col-span-compact")?String(this.colSpanCompact):null),o(e,this,l).call(this,"--col-span-medium",this.hasAttribute("col-span-medium")?String(this.colSpanMedium):null),o(e,this,l).call(this,"--col-span-expanded",this.hasAttribute("col-span-expanded")?String(this.colSpanExpanded):null),o(e,this,l).call(this,"--row-rule",this.hasAttribute("row-span")?`span ${this.rowSpan}`:null),o(e,this,l).call(this,"--row-rule-compact",this.hasAttribute("row-span-compact")?`span ${this.rowSpanCompact}`:null),o(e,this,l).call(this,"--row-rule-medium",this.hasAttribute("row-span-medium")?`span ${this.rowSpanMedium}`:null),o(e,this,l).call(this,"--row-rule-expanded",this.hasAttribute("row-span-expanded")?`span ${this.rowSpanExpanded}`:null),this.align?(this.style.setProperty("--scb-grid-item-align",this.align),this.style.setProperty("align-self",this.align)):(this.style.setProperty("--scb-grid-item-align","initial"),this.style.removeProperty("align-self")),this.justify?(this.style.setProperty("--scb-grid-item-justify",this.justify),this.style.setProperty("justify-self",this.justify)):(this.style.setProperty("--scb-grid-item-justify","initial"),this.style.removeProperty("justify-self"))}function l(a,s){this.style.setProperty(a,s===null||s===""?"initial":s)}i([r({type:Number,attribute:"col-span",reflect:!0})],t.prototype,"colSpan",void 0);i([r({type:Number,attribute:"col-span-compact",reflect:!0})],t.prototype,"colSpanCompact",void 0);i([r({type:Number,attribute:"col-span-medium",reflect:!0})],t.prototype,"colSpanMedium",void 0);i([r({type:Number,attribute:"col-span-expanded",reflect:!0})],t.prototype,"colSpanExpanded",void 0);i([r({type:Number,attribute:"row-span",reflect:!0})],t.prototype,"rowSpan",void 0);i([r({type:Number,attribute:"row-span-compact",reflect:!0})],t.prototype,"rowSpanCompact",void 0);i([r({type:Number,attribute:"row-span-medium",reflect:!0})],t.prototype,"rowSpanMedium",void 0);i([r({type:Number,attribute:"row-span-expanded",reflect:!0})],t.prototype,"rowSpanExpanded",void 0);i([r({type:String,reflect:!0})],t.prototype,"align",void 0);i([r({type:String,reflect:!0})],t.prototype,"justify",void 0);i([r({type:Boolean,reflect:!0,converter:w})],t.prototype,"fit",void 0);t=i([b("scb-grid-item")],t);
16
+ :host([fit]) ::slotted(scb-card),
17
+ :host([fit]) ::slotted(scb-link-card),
18
+ :host([fit]) ::slotted(scb-list-card),
19
+ :host([fit]) ::slotted(scb-action-card),
20
+ :host([fit]) ::slotted(scb-social-card),
21
+ :host([fit]) ::slotted(scb-container-card),
22
+ :host([fit]) ::slotted(scb-calendar-card),
23
+ :host([fit]) ::slotted(scb-notification-card),
24
+ :host([fit]) ::slotted(scb-fact-card),
25
+ :host([fit]) ::slotted(scb-keyfigure-card) {
26
+ block-size: 100%;
27
+ inline-size: 100%;
28
+ }
29
+ `,c);function u(){o(e,this,l).call(this,"--col-span",this.hasAttribute("col-span")?String(this.colSpan):null),o(e,this,l).call(this,"--col-span-compact",this.hasAttribute("col-span-compact")?String(this.colSpanCompact):null),o(e,this,l).call(this,"--col-span-medium",this.hasAttribute("col-span-medium")?String(this.colSpanMedium):null),o(e,this,l).call(this,"--col-span-expanded",this.hasAttribute("col-span-expanded")?String(this.colSpanExpanded):null),o(e,this,l).call(this,"--row-rule",this.hasAttribute("row-span")?`span ${this.rowSpan}`:null),o(e,this,l).call(this,"--row-rule-compact",this.hasAttribute("row-span-compact")?`span ${this.rowSpanCompact}`:null),o(e,this,l).call(this,"--row-rule-medium",this.hasAttribute("row-span-medium")?`span ${this.rowSpanMedium}`:null),o(e,this,l).call(this,"--row-rule-expanded",this.hasAttribute("row-span-expanded")?`span ${this.rowSpanExpanded}`:null),this.align?(this.style.setProperty("--scb-grid-item-align",this.align),this.style.setProperty("align-self",this.align)):(this.style.setProperty("--scb-grid-item-align","initial"),this.style.removeProperty("align-self")),this.justify?(this.style.setProperty("--scb-grid-item-justify",this.justify),this.style.setProperty("justify-self",this.justify)):(this.style.setProperty("--scb-grid-item-justify","initial"),this.style.removeProperty("justify-self"))}function l(a,s){this.style.setProperty(a,s===null||s===""?"initial":s)}i([r({type:Number,attribute:"col-span",reflect:!0})],t.prototype,"colSpan",void 0);i([r({type:Number,attribute:"col-span-compact",reflect:!0})],t.prototype,"colSpanCompact",void 0);i([r({type:Number,attribute:"col-span-medium",reflect:!0})],t.prototype,"colSpanMedium",void 0);i([r({type:Number,attribute:"col-span-expanded",reflect:!0})],t.prototype,"colSpanExpanded",void 0);i([r({type:Number,attribute:"row-span",reflect:!0})],t.prototype,"rowSpan",void 0);i([r({type:Number,attribute:"row-span-compact",reflect:!0})],t.prototype,"rowSpanCompact",void 0);i([r({type:Number,attribute:"row-span-medium",reflect:!0})],t.prototype,"rowSpanMedium",void 0);i([r({type:Number,attribute:"row-span-expanded",reflect:!0})],t.prototype,"rowSpanExpanded",void 0);i([r({type:String,reflect:!0})],t.prototype,"align",void 0);i([r({type:String,reflect:!0})],t.prototype,"justify",void 0);i([r({type:Boolean,reflect:!0,converter:w})],t.prototype,"fit",void 0);t=i([y("scb-grid-item")],t);
@@ -2,6 +2,7 @@ import{_ as u,b as h,g as b,h as s,y as v}from"../../vendor/vendor.js";import"..
2
2
  :host {
3
3
  box-sizing: border-box;
4
4
  display: block;
5
+ inline-size: 100%;
5
6
  max-width: var(--scb-grid-max-width, 1440px);
6
7
  margin-inline: auto;
7
8
  padding-inline: var(--scb-grid-padding-inline, 0);