scb-wc-test 0.1.85 → 0.1.87
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-breadcrumb/scb-breadcrumb-item.js +3 -2
- package/mvc/components/scb-button/scb-button.js +1 -1
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +29 -19
- package/mvc/components/scb-card/scb-card.js +115 -53
- package/mvc/components/scb-fact-card/scb-fact-card-content.js +46 -44
- package/mvc/components/scb-icon-button/scb-icon-button.js +1 -1
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +21 -8
- package/mvc/components/scb-notification-card/scb-notification-card.js +291 -170
- package/mvc/components/scb-viz/scb-viz.js +106 -107
- package/mvc/vendor/vendor-material.js +102 -102
- package/mvc/vendor/vendor.js +1 -1
- package/package.json +2 -2
- package/scb-badge/scb-badge.d.ts +1 -1
- package/scb-breadcrumb/scb-breadcrumb-item.js +3 -2
- package/scb-calendar-card/scb-calendar-card.js +71 -61
- package/scb-card/scb-card.d.ts +1 -1
- package/scb-card/scb-card.js +116 -54
- package/scb-fact-card/scb-fact-card-content.d.ts +5 -1
- package/scb-fact-card/scb-fact-card-content.js +67 -74
- package/scb-keyfigure-card/scb-keyfigure-card.d.ts +3 -1
- package/scb-keyfigure-card/scb-keyfigure-card.js +23 -11
- package/scb-notification-card/scb-notification-card.d.ts +19 -5
- package/scb-notification-card/scb-notification-card.js +336 -196
- package/scb-viz/scb-viz.d.ts +2 -2
- package/scb-viz/scb-viz.js +163 -162
- package/scb-wc-test.bundle.js +842 -635
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{n as
|
|
1
|
+
import{n as u,t as b,i as d,a as p,x as l}from"../../vendor/vendor.js";import"../scb-link/scb-link.js";import"../../vendor/vendor-material.js";(function(){try{var r=typeof globalThis<"u"?globalThis:window;if(!r.__scb_ce_guard_installed__){r.__scb_ce_guard_installed__=!0;var s=customElements.define.bind(customElements);customElements.define=function(t,a,e){try{customElements.get(t)||s(t,a,e)}catch(i){var n=String(i||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw i}}}}catch{}})();var f=Object.defineProperty,m=Object.getOwnPropertyDescriptor,o=(r,s,t,a)=>{for(var e=a>1?void 0:a?m(s,t):s,n=r.length-1,i;n>=0;n--)(i=r[n])&&(e=(a?i(s,t,e):i(e))||e);return a&&e&&f(s,t,e),e};let c=class extends d{constructor(){super(...arguments),this.label="",this.isCurrent=!1,this.href=""}static get styles(){return p`
|
|
2
2
|
.breadcrumb-separator {
|
|
3
3
|
margin: var(--spacing-0) var(--spacing-3);
|
|
4
4
|
color: var(--md-sys-color-on-surface);
|
|
@@ -7,8 +7,9 @@ import{n as o,t as b,i as p,a as d,x as l}from"../../vendor/vendor.js";import"..
|
|
|
7
7
|
.breadcrumb-current {
|
|
8
8
|
color: var(--md-sys-color-on-surface);
|
|
9
9
|
font-weight: var(--weight-semibold);
|
|
10
|
+
font-family: var(--brand, Inter);
|
|
10
11
|
}
|
|
11
12
|
`}updated(r){r.has("isCurrent")&&this.dispatchEvent(new CustomEvent("current-changed",{detail:{isCurrent:this.isCurrent},bubbles:!0,composed:!0}))}render(){switch(!0){case this.isCurrent:return l`<span class="breadcrumb-current">${this.label}</span>`;default:return l`
|
|
12
13
|
<scb-link href="${this.href}">${this.label}</scb-link>
|
|
13
14
|
<span class="breadcrumb-separator">/</span>
|
|
14
|
-
`}}};
|
|
15
|
+
`}}};o([u({type:String})],c.prototype,"label",2);o([u({type:Boolean,attribute:"is-current",reflect:!0})],c.prototype,"isCurrent",2);o([u({type:String,attribute:"item-href"})],c.prototype,"href",2);c=o([b("scb-breadcrumb-item")],c);
|
|
@@ -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"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as f}from"../../vendor/preload-helper.js";import{i as A,a as x,x as h,E as r,n as c,t as I}from"../../vendor/vendor.js";(function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(i,o,a){try{customElements.get(i)||e(i,o,a)}catch(d){var s=String(d||"");if(s.indexOf("already been used")===-1&&s.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var E=Object.defineProperty,L=Object.getOwnPropertyDescriptor,l=(t,e,i,o)=>{for(var a=o>1?void 0:o?L(e,i):e,s=t.length-1,d;s>=0;s--)(d=t[s])&&(a=(o?d(e,i,a):d(a))||a);return o&&a&&E(e,i,a),a};let n=class extends A{constructor(){super(...arguments),this.variant="filled",this.type="button",this.label="Button",this.trailingIcon=!1,this.icon="",this.disabled=!1,this.href="",this.target="",this.rel="",this.__loadedButtons=new Set,this.__iconLoaded=!1}async __ensureDepsLoaded(){if(!this.__loadedButtons.has(this.variant)){switch(this.variant){case"filled":await f(()=>import("../../vendor/vendor-material.js").then(t=>t.f),__vite__mapDeps([0,1]),import.meta.url);break;case"outlined":await f(()=>import("../../vendor/vendor-material.js").then(t=>t.o),__vite__mapDeps([0,1]),import.meta.url);break;case"filled-tonal":await f(()=>import("../../vendor/vendor-material.js").then(t=>t.
|
|
2
|
+
import{_ as f}from"../../vendor/preload-helper.js";import{i as A,a as x,x as h,E as r,n as c,t as I}from"../../vendor/vendor.js";(function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(i,o,a){try{customElements.get(i)||e(i,o,a)}catch(d){var s=String(d||"");if(s.indexOf("already been used")===-1&&s.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var E=Object.defineProperty,L=Object.getOwnPropertyDescriptor,l=(t,e,i,o)=>{for(var a=o>1?void 0:o?L(e,i):e,s=t.length-1,d;s>=0;s--)(d=t[s])&&(a=(o?d(e,i,a):d(a))||a);return o&&a&&E(e,i,a),a};let n=class extends A{constructor(){super(...arguments),this.variant="filled",this.type="button",this.label="Button",this.trailingIcon=!1,this.icon="",this.disabled=!1,this.href="",this.target="",this.rel="",this.__loadedButtons=new Set,this.__iconLoaded=!1}async __ensureDepsLoaded(){if(!this.__loadedButtons.has(this.variant)){switch(this.variant){case"filled":await f(()=>import("../../vendor/vendor-material.js").then(t=>t.f),__vite__mapDeps([0,1]),import.meta.url);break;case"outlined":await f(()=>import("../../vendor/vendor-material.js").then(t=>t.o),__vite__mapDeps([0,1]),import.meta.url);break;case"filled-tonal":await f(()=>import("../../vendor/vendor-material.js").then(t=>t.c),__vite__mapDeps([0,1]),import.meta.url);break;case"text":await f(()=>import("../../vendor/vendor-material.js").then(t=>t.t),__vite__mapDeps([0,1]),import.meta.url);break}this.__loadedButtons.add(this.variant)}this.icon&&!this.__iconLoaded&&(await f(()=>import("../../vendor/vendor-material.js").then(t=>t.i),__vite__mapDeps([0,1]),import.meta.url),this.__iconLoaded=!0)}__getMdHost(){return this.renderRoot.querySelector("md-filled-button, md-outlined-button, md-filled-tonal-button, md-text-button")}__getInnerNativeButton(t){return t?.shadowRoot?.querySelector("button")??null}__syncAriaToInner(){const t=this.__getMdHost(),e=this.__getInnerNativeButton(t);if(!t||!e)return;const i=(this.getAttribute("aria-label")||"").trim(),o=(t.getAttribute("aria-label")||"").trim(),a=this.label.trim()===""?(this.icon||"").trim():"",s=i||o||a;s?e.setAttribute("aria-label",s):e.removeAttribute("aria-label");const d=this.getAttribute("aria-controls");d!==null?e.setAttribute("aria-controls",d):e.removeAttribute("aria-controls");const v=this.getAttribute("aria-expanded");v!==null?e.setAttribute("aria-expanded",v):e.removeAttribute("aria-expanded"),t.removeAttribute("aria-label"),t.removeAttribute("aria-controls"),t.removeAttribute("aria-expanded"),this.removeAttribute("aria-expanded"),this.__ariaObserver?.disconnect(),this.__ariaObserver=new MutationObserver(g=>{const u=this.__getMdHost(),m=this.__getInnerNativeButton(u);if(!(!u||!m)){for(const _ of g){if(_.type!=="attributes"||!_.attributeName)continue;const b=_.attributeName,p=this.getAttribute(b);if(b==="aria-label"){const $=(u.getAttribute("aria-label")||"").trim(),y=(p||$||(this.label.trim()===""?(this.icon||"").trim():"")).trim();y?m.setAttribute("aria-label",y):m.removeAttribute("aria-label"),u.removeAttribute("aria-label")}else(b==="aria-controls"||b==="aria-expanded")&&(p===null?m.removeAttribute(b):m.setAttribute(b,p),b==="aria-expanded"&&this.removeAttribute("aria-expanded"))}u.removeAttribute("aria-label"),u.removeAttribute("aria-controls"),u.removeAttribute("aria-expanded")}}),this.__ariaObserver.observe(this,{attributes:!0,attributeFilter:["aria-label","aria-controls","aria-expanded"]})}firstUpdated(){(this.type==="submit"||this.type==="reset")&&this.addEventListener("click",()=>{if(!this.disabled){const t=this.closest("form");t&&(this.type==="submit"&&t.requestSubmit(),this.type==="reset"&&t.reset())}}),this.__ensureDepsLoaded(),this.__syncAriaToInner()}updated(t){(t.has("variant")||t.has("icon")&&this.icon)&&this.__ensureDepsLoaded(),t.has("variant")&&this.__syncAriaToInner()}disconnectedCallback(){this.__ariaObserver?.disconnect(),super.disconnectedCallback()}static get styles(){return x`
|
|
3
3
|
/* Gör hosten stretchbar i t.ex. flex/grid */
|
|
4
4
|
:host {
|
|
5
5
|
display: inline-flex;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/vendor-material.js","../../vendor/vendor.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as p}from"../../vendor/preload-helper.js";import{a as
|
|
2
|
+
import{_ as p}from"../../vendor/preload-helper.js";import{a as f,n as r,i as g,x as c,t as u}from"../../vendor/vendor.js";import"../../vendor/vendor-material.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var s=customElements.define.bind(customElements);customElements.define=function(n,o,a){try{customElements.get(n)||s(n,o,a)}catch(d){var l=String(d||"");if(l.indexOf("already been used")===-1&&l.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var y=Object.defineProperty,v=Object.getOwnPropertyDescriptor,t=(e,s,n,o)=>{for(var a=o>1?void 0:o?v(s,n):s,l=e.length-1,d;l>=0;l--)(d=e[l])&&(a=(o?d(s,n,a):d(a))||a);return o&&a&&y(s,n,a),a};let i=class extends g{constructor(){super(...arguments),this.variant="default",this.direction="horizontal",this.title="",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="stretch"}async firstUpdated(){i.__iconLoaded||(await p(()=>import("../../vendor/vendor-material.js").then(e=>e.i),__vite__mapDeps([0,1]),import.meta.url),i.__iconLoaded=!0),i.__rippleLoaded||(await p(()=>import("../../vendor/vendor-material.js").then(e=>e.r),__vite__mapDeps([0,1]),import.meta.url),i.__rippleLoaded=!0),this.__applyInnerSizing()}render(){const e=this.variant?`${this.variant.toLowerCase()}`:"",s=this.direction?`${this.direction.toLowerCase()}`:"",n=this.cardHref?"clickable":"",o=1,a="Jan",l=this.mediaWidth&&this.mediaWidth.trim()!==""?this.mediaWidth:"",d=this.mediaHeight&&this.mediaHeight.trim()!==""?this.mediaHeight:"",h=this.mediaAspect&&this.mediaAspect.trim()!==""?this.mediaAspect:"",m=`${l?`inline-size:${l};`:""}${d?`block-size:${d};`:""}${h?`aspect-ratio:${h};`:""}`;return c`
|
|
3
3
|
<div
|
|
4
|
-
class="calendar-card ${s} ${n} ${
|
|
4
|
+
class="calendar-card ${s} ${n} ${e}"
|
|
5
5
|
role="${this.cardHref?"link":"group"}"
|
|
6
6
|
aria-label="${this.title||"Kalenderkort"}"
|
|
7
7
|
tabindex="${this.cardHref?"0":"-1"}"
|
|
@@ -26,7 +26,7 @@ import{_ as p}from"../../vendor/preload-helper.js";import{a as g,n as r,i as f,x
|
|
|
26
26
|
</div>
|
|
27
27
|
</div>
|
|
28
28
|
<md-focus-ring></md-focus-ring>
|
|
29
|
-
`}__applyInnerSizing(){const
|
|
29
|
+
`}__applyInnerSizing(){const e=this.renderRoot.querySelector(".calendar-card");if(!e)return;this.width&&this.width.trim()!==""?(e.style.inlineSize="100%",e.style.maxInlineSize="100%"):(e.style.removeProperty("inline-size"),e.style.removeProperty("max-inline-size")),this.height&&this.height.trim()!==""||this.sizing==="stretch"?e.style.blockSize="100%":e.style.removeProperty("block-size"),this.maxHeight&&this.maxHeight.trim()!==""?e.style.maxBlockSize="100%":e.style.removeProperty("max-block-size")}_onKeyDown(e){(e.key==="Enter"||e.key===" ")&&this.cardHref&&(window.open(this.cardHref,"_self"),e.preventDefault())}_handleHrefNavigation(){this.cardHref&&(this.cardHrefNav==="tab"?window.open(this.cardHref,"_blank"):this.cardHrefNav==="window"?window.open(this.cardHref,"_blank","noopener,noreferrer,width=800,height=600"):window.open(this.cardHref,"_self"))}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("minWidth")&&(this.minWidth?this.style.minInlineSize=this.minWidth:this.style.removeProperty("min-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("minHeight")&&(this.minHeight?this.style.minBlockSize=this.minHeight:this.style.removeProperty("min-block-size")),(e.has("width")||e.has("height")||e.has("maxHeight")||e.has("sizing"))&&this.__applyInnerSizing()}};i.__iconLoaded=!1;i.__rippleLoaded=!1;i.styles=f`
|
|
30
30
|
:host {
|
|
31
31
|
display: block;
|
|
32
32
|
position: relative;
|
|
@@ -36,22 +36,22 @@ import{_ as p}from"../../vendor/preload-helper.js";import{a as g,n as r,i as f,x
|
|
|
36
36
|
padding: var(--scb-calendar-card-focus-ring-gap, 4px);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
:host([sizing=
|
|
39
|
+
:host([sizing='stretch']) {
|
|
40
40
|
inline-size: 100%;
|
|
41
41
|
block-size: 100%;
|
|
42
42
|
max-inline-size: none;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
:host([sizing=
|
|
45
|
+
:host([sizing='content-width']) {
|
|
46
46
|
display: inline-block;
|
|
47
47
|
inline-size: auto;
|
|
48
48
|
block-size: auto;
|
|
49
49
|
}
|
|
50
|
-
:host([sizing=
|
|
50
|
+
:host([sizing='content-width']) .calendar-card {
|
|
51
51
|
inline-size: max-content;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
:host([sizing=
|
|
54
|
+
:host([sizing='content-height']) {
|
|
55
55
|
inline-size: 100%;
|
|
56
56
|
block-size: auto;
|
|
57
57
|
max-inline-size: none;
|
|
@@ -74,7 +74,7 @@ import{_ as p}from"../../vendor/preload-helper.js";import{a as g,n as r,i as f,x
|
|
|
74
74
|
|
|
75
75
|
position: relative;
|
|
76
76
|
display: flex;
|
|
77
|
-
color: var(--md-sys-color-on-surface, #
|
|
77
|
+
color: var(--md-sys-color-on-surface, #0f0865);
|
|
78
78
|
font-family: var(--brand, Inter);
|
|
79
79
|
font-style: normal;
|
|
80
80
|
flex-direction: column;
|
|
@@ -82,7 +82,11 @@ import{_ as p}from"../../vendor/preload-helper.js";import{a as g,n as r,i as f,x
|
|
|
82
82
|
gap: var(--spacing-spacing-3, 8px);
|
|
83
83
|
align-self: stretch;
|
|
84
84
|
cursor: pointer;
|
|
85
|
-
transition:
|
|
85
|
+
transition:
|
|
86
|
+
box-shadow 0.18s ease,
|
|
87
|
+
transform 0.18s ease,
|
|
88
|
+
background-color 0.18s ease,
|
|
89
|
+
border-color 0.18s ease;
|
|
86
90
|
|
|
87
91
|
inline-size: 100%;
|
|
88
92
|
max-inline-size: 100%;
|
|
@@ -94,11 +98,13 @@ import{_ as p}from"../../vendor/preload-helper.js";import{a as g,n as r,i as f,x
|
|
|
94
98
|
.calendar-card .subtitle,
|
|
95
99
|
.calendar-card .supporting-text {
|
|
96
100
|
font-variant-numeric: proportional-nums;
|
|
97
|
-
font-feature-settings:
|
|
101
|
+
font-feature-settings: 'tnum' 0, 'pnum' 1;
|
|
98
102
|
}
|
|
99
103
|
|
|
100
104
|
.calendar-card:focus,
|
|
101
|
-
.calendar-card:focus-visible {
|
|
105
|
+
.calendar-card:focus-visible {
|
|
106
|
+
outline: none;
|
|
107
|
+
}
|
|
102
108
|
|
|
103
109
|
.calendar-card.horizontal {
|
|
104
110
|
flex-direction: row;
|
|
@@ -111,22 +117,24 @@ import{_ as p}from"../../vendor/preload-helper.js";import{a as g,n as r,i as f,x
|
|
|
111
117
|
|
|
112
118
|
.calendar-card.outlined {
|
|
113
119
|
border-radius: var(--radius-large, 16px);
|
|
114
|
-
border: 1px solid var(--md-sys-color-outline-variant, #
|
|
115
|
-
background: var(--md-sys-color-surface, #
|
|
120
|
+
border: 1px solid var(--md-sys-color-outline-variant, #ccc);
|
|
121
|
+
background: var(--md-sys-color-surface, #fff);
|
|
116
122
|
padding: var(--spacing-spacing-7, 24px) var(--spacing-spacing-6, 20px);
|
|
117
123
|
}
|
|
118
124
|
|
|
119
125
|
.calendar-card.filled {
|
|
120
126
|
border-radius: var(--radius-large, 16px);
|
|
121
|
-
background: var(--md-sys-color-surface-dim, #
|
|
127
|
+
background: var(--md-sys-color-surface-dim, #f9f8ef);
|
|
122
128
|
padding: var(--spacing-spacing-7, 24px) var(--spacing-spacing-6, 20px);
|
|
123
129
|
}
|
|
124
130
|
|
|
125
131
|
.calendar-card.filled .media {
|
|
126
|
-
background: var(--md-sys-color-surface, #
|
|
132
|
+
background: var(--md-sys-color-surface, #fff);
|
|
127
133
|
}
|
|
128
134
|
|
|
129
|
-
md-ripple {
|
|
135
|
+
md-ripple {
|
|
136
|
+
border-radius: var(--radius-l, 16px);
|
|
137
|
+
}
|
|
130
138
|
|
|
131
139
|
.media {
|
|
132
140
|
display: flex;
|
|
@@ -140,10 +148,12 @@ import{_ as p}from"../../vendor/preload-helper.js";import{a as g,n as r,i as f,x
|
|
|
140
148
|
align-items: center;
|
|
141
149
|
gap: var(--spacing-spacing-2, 4px);
|
|
142
150
|
border-radius: var(--radius-small, 8px);
|
|
143
|
-
background: var(--md-sys-color-surface-dim, #
|
|
151
|
+
background: var(--md-sys-color-surface-dim, #f9f8ef);
|
|
144
152
|
}
|
|
145
153
|
|
|
146
|
-
.calendar-card.horizontal .media {
|
|
154
|
+
.calendar-card.horizontal .media {
|
|
155
|
+
align-self: flex-start;
|
|
156
|
+
}
|
|
147
157
|
|
|
148
158
|
.media .day {
|
|
149
159
|
font-size: var(--scale-07, 28px);
|
|
@@ -233,4 +243,4 @@ import{_ as p}from"../../vendor/preload-helper.js";import{a as g,n as r,i as f,x
|
|
|
233
243
|
overflow: visible;
|
|
234
244
|
text-overflow: clip;
|
|
235
245
|
}
|
|
236
|
-
`;t([r({type:String,reflect:!0})],
|
|
246
|
+
`;t([r({type:String,reflect:!0})],i.prototype,"variant",2);t([r({type:String,reflect:!0})],i.prototype,"direction",2);t([r({type:String,reflect:!0})],i.prototype,"title",2);t([r({type:String,reflect:!0})],i.prototype,"subtitle",2);t([r({type:String,attribute:"supporting-text",reflect:!0})],i.prototype,"supportingText",2);t([r({type:String,attribute:"card-href"})],i.prototype,"cardHref",2);t([r({type:String,attribute:"card-href-nav"})],i.prototype,"cardHrefNav",2);t([r({type:Boolean,reflect:!0,attribute:"show-media"})],i.prototype,"showMedia",2);t([r({type:String,attribute:"media-width"})],i.prototype,"mediaWidth",2);t([r({type:String,attribute:"media-height"})],i.prototype,"mediaHeight",2);t([r({type:String,attribute:"media-aspect"})],i.prototype,"mediaAspect",2);t([r({type:String,reflect:!0})],i.prototype,"width",2);t([r({type:String,reflect:!0,attribute:"max-width"})],i.prototype,"maxWidth",2);t([r({type:String,attribute:"min-width"})],i.prototype,"minWidth",2);t([r({type:String,reflect:!0})],i.prototype,"height",2);t([r({type:String,reflect:!0,attribute:"max-height"})],i.prototype,"maxHeight",2);t([r({type:String,attribute:"min-height"})],i.prototype,"minHeight",2);t([r({type:String,reflect:!0})],i.prototype,"sizing",2);i=t([u("scb-calendar-card")],i);
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/vendor-material.js","../../vendor/vendor.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as
|
|
2
|
+
import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as b,x as i,t as v}from"../../vendor/vendor.js";import"../../vendor/vendor-material.js";import"../scb-list/scb-list.js";import"../scb-button/scb-button.js";import"../scb-link/scb-link.js";import"../scb-avatar/scb-avatar.js";import"../scb-list/scb-list-item.js";(function(){try{var o=typeof globalThis<"u"?globalThis:window;if(!o.__scb_ce_guard_installed__){o.__scb_ce_guard_installed__=!0;var a=customElements.define.bind(customElements);customElements.define=function(n,r,l){try{customElements.get(n)||a(n,r,l)}catch(c){var d=String(c||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();var g=Object.defineProperty,f=Object.getOwnPropertyDescriptor,e=(o,a,n,r)=>{for(var l=r>1?void 0:r?f(a,n):a,d=o.length-1,c;d>=0;d--)(c=o[d])&&(l=(r?c(a,n,l):c(l))||l);return r&&l&&g(a,n,l),l};let t=class extends b{constructor(){super(...arguments),this.type="",this.variant="",this.direction="",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.title="",this.subtitle="",this.supportingText="",this.commentsText="",this.comments=0,this.likesText="",this.likes=0,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.__onImgLoad=o=>{const a=o.currentTarget.closest(".media");a&&a.classList.add("is-loaded")},this.__onKeyDown=o=>{(o.key==="Enter"||o.key===" ")&&this.cardHref&&(o.preventDefault(),window.open(this.cardHref,"_self"))},this.__handleHrefNavigation=o=>{this.cardHref&&(o.target.closest("a")||window.open(this.cardHref,"_self"))}}__calcAspectWH(o){const a=(o||"").trim();if(!a)return{w:640,h:360};const n=a.includes("/")?a.split("/"):a.includes(":")?a.split(":"):a.includes("x")?a.split("x"):null;if(n&&n.length===2){const l=Number(n[0]),d=Number(n[1]);if(l>0&&d>0)return{w:l,h:d}}const r=Number(a);return isFinite(r)&&r>0?{w:1e3,h:Math.round(1e3/r)}:{w:640,h:360}}__mediaTemplate(){if((this.mediaType||"").toLowerCase()==="avatar")return i`
|
|
3
3
|
<div class="media">
|
|
4
4
|
<slot name="media">
|
|
5
5
|
<scb-avatar variant="icon" label="${this.title}" icon-name="person"></scb-avatar>
|
|
6
6
|
</slot>
|
|
7
7
|
</div>
|
|
8
|
-
`;if(this.mediaHref||this.mediaSrcset){let
|
|
9
|
-
<div class="media ${
|
|
10
|
-
<!-- Tillåt egna <source>-element via slot om man vill använda <picture> -->
|
|
8
|
+
`;if(this.mediaHref||this.mediaSrcset){let a=Number(this.mediaWidth)||0,n=Number(this.mediaHeight)||0;const r=(this.mediaAspect||"").trim();if(!a||!n){const h=this.__calcAspectWH(r||"16/9");a||(a=h.w),n||(n=h.h)}const l=`aspect-ratio:${r||`${a}/${n}`};`,d=this.mediaPlaceholder?"has-ph":"",c=this.mediaFit||"cover",p=this.mediaPosition||"center";return i`
|
|
9
|
+
<div class="media ${d}" style="${l}">
|
|
11
10
|
<slot name="media-sources"></slot>
|
|
12
11
|
<img
|
|
13
12
|
src="${this.mediaHref||""}"
|
|
@@ -17,15 +16,17 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
17
16
|
loading="${this.mediaLoading}"
|
|
18
17
|
decoding="${this.mediaDecoding}"
|
|
19
18
|
fetchpriority="${this.mediaFetchPriority}"
|
|
20
|
-
style="object-fit:${
|
|
21
|
-
width="${
|
|
19
|
+
style="object-fit:${c};object-position:${p};"
|
|
20
|
+
width="${a}"
|
|
22
21
|
height="${n}"
|
|
23
22
|
@load=${this.__onImgLoad}
|
|
24
23
|
/>
|
|
25
24
|
</div>
|
|
26
|
-
`}return null}render(){const
|
|
25
|
+
`}return null}render(){const o=this.variant?`${this.variant.toLowerCase()}`:"",a=this.type==="list"?"vertical":this.direction?this.direction.toLowerCase():"",n=this.cardHref?"clickable":"",r=this.date instanceof Date?this.date.toISOString().slice(0,10):this.date||"",l=(p=!1)=>p?i`<a class="title" href="${this.cardHref}" tabindex="0"
|
|
26
|
+
>${this.title}</a
|
|
27
|
+
><md-icon>arrow_forward</md-icon>`:i`<span class="title">${this.title}</span>`,d=()=>this.__mediaTemplate(),c=p=>i`
|
|
27
28
|
<div
|
|
28
|
-
class="scb-card ${
|
|
29
|
+
class="scb-card ${o} ${a} ${n}"
|
|
29
30
|
@click=${this.cardHref?this.__handleHrefNavigation:null}
|
|
30
31
|
@keydown=${this.cardHref?this.__onKeyDown:null}
|
|
31
32
|
style="cursor:${this.cardHref?"pointer":"default"};"
|
|
@@ -34,11 +35,11 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
34
35
|
aria-label=${this.title||"Kort"}
|
|
35
36
|
>
|
|
36
37
|
${this.cardHref?i`<md-ripple></md-ripple>`:""}
|
|
37
|
-
${
|
|
38
|
+
${d()}
|
|
38
39
|
${p}
|
|
39
40
|
</div>
|
|
40
41
|
<md-focus-ring></md-focus-ring>
|
|
41
|
-
`;switch(this.type){case"standard":return
|
|
42
|
+
`;switch(this.type){case"standard":return c(i`
|
|
42
43
|
<div class="full-content">
|
|
43
44
|
<div class="top-content">
|
|
44
45
|
${this.title?i`<div class="header">${l(!!this.cardHref)}</div>`:""}
|
|
@@ -47,7 +48,7 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
47
48
|
${r?i`<div class="date">${r}</div>`:""}
|
|
48
49
|
</div>
|
|
49
50
|
</div>
|
|
50
|
-
`);case"list":return
|
|
51
|
+
`);case"list":return c(i`
|
|
51
52
|
<div class="full-content">
|
|
52
53
|
<div class="top-content">
|
|
53
54
|
${this.title?i`<div class="header"><span class="title">${this.title}</span></div>`:""}
|
|
@@ -59,7 +60,7 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
59
60
|
<slot></slot>
|
|
60
61
|
</div>
|
|
61
62
|
</div>
|
|
62
|
-
`);case"social":return
|
|
63
|
+
`);case"social":return c(i`
|
|
63
64
|
<div class="full-content">
|
|
64
65
|
<div class="top-content">
|
|
65
66
|
${this.title?i`<div class="header">${l(!!this.cardHref)}</div>`:""}
|
|
@@ -69,12 +70,18 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
69
70
|
</div>
|
|
70
71
|
<div class="content">
|
|
71
72
|
<div class="social-metrics">
|
|
72
|
-
<span class="comments"
|
|
73
|
-
|
|
73
|
+
<span class="comments"
|
|
74
|
+
><md-icon>mode_comment</md-icon>
|
|
75
|
+
<span>${this.commentsText}: ${this.comments}</span></span
|
|
76
|
+
>
|
|
77
|
+
<span class="likes"
|
|
78
|
+
><md-icon>thumb_up</md-icon>
|
|
79
|
+
<span>${this.likesText}: ${this.likes}</span></span
|
|
80
|
+
>
|
|
74
81
|
</div>
|
|
75
82
|
</div>
|
|
76
83
|
</div>
|
|
77
|
-
`);case"link":return
|
|
84
|
+
`);case"link":return c(i`
|
|
78
85
|
<div class="full-content">
|
|
79
86
|
<div class="top-content">
|
|
80
87
|
${this.title?i`<div class="header"><span class="title">${this.title}</span></div>`:""}
|
|
@@ -86,7 +93,7 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
86
93
|
<slot></slot>
|
|
87
94
|
</div>
|
|
88
95
|
</div>
|
|
89
|
-
`);case"action":return
|
|
96
|
+
`);case"action":return c(i`
|
|
90
97
|
<div class="full-content">
|
|
91
98
|
<div class="top-content">
|
|
92
99
|
${this.title?i`<div class="header"><span class="title">${this.title}</span></div>`:""}
|
|
@@ -98,7 +105,7 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
98
105
|
<slot></slot>
|
|
99
106
|
</div>
|
|
100
107
|
</div>
|
|
101
|
-
`);default:return
|
|
108
|
+
`);default:return c(i`
|
|
102
109
|
<div class="full-content">
|
|
103
110
|
<div class="top-content">
|
|
104
111
|
${this.title?i`<div class="header">${l(!!this.cardHref)}</div>`:""}
|
|
@@ -107,7 +114,7 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
107
114
|
${r?i`<div class="date">${r}</div>`:""}
|
|
108
115
|
</div>
|
|
109
116
|
</div>
|
|
110
|
-
`)}}updated(
|
|
117
|
+
`)}}updated(o){super.updated(o),o.has("width")&&(this.width?this.style.inlineSize=this.width:this.style.removeProperty("inline-size")),o.has("maxWidth")&&(this.maxWidth?this.style.maxInlineSize=this.maxWidth:this.style.removeProperty("max-inline-size")),o.has("height")&&(this.height?this.style.blockSize=this.height:this.style.removeProperty("block-size")),o.has("maxHeight")&&(this.maxHeight?this.style.maxBlockSize=this.maxHeight:this.style.removeProperty("max-block-size")),o.has("type")&&(this.type==="list"?this.setAttribute("data-density","-2"):this.removeAttribute("data-density")),this.style.setProperty("--scb-card-media-fit",this.mediaFit||"cover"),this.style.setProperty("--scb-card-media-position",this.mediaPosition||"center")}async firstUpdated(o){t.__iconLoaded||(await m(()=>import("../../vendor/vendor-material.js").then(a=>a.i),__vite__mapDeps([0,1]),import.meta.url),t.__iconLoaded=!0),t.__rippleLoaded||(await m(()=>import("../../vendor/vendor-material.js").then(a=>a.r),__vite__mapDeps([0,1]),import.meta.url),t.__rippleLoaded=!0)}};t.__iconLoaded=!1;t.__rippleLoaded=!1;t.styles=u`
|
|
111
118
|
:host {
|
|
112
119
|
display: block;
|
|
113
120
|
box-sizing: border-box;
|
|
@@ -121,34 +128,44 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
121
128
|
--scb-card-horizontal-media-min: 96px;
|
|
122
129
|
--scb-card-horizontal-media-aspect: 16 / 9;
|
|
123
130
|
}
|
|
124
|
-
:host([type=
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
:host([type=
|
|
128
|
-
|
|
131
|
+
:host([type='standard']) {
|
|
132
|
+
--scb-card-max-w: var(--scb-card-standard-max-w);
|
|
133
|
+
}
|
|
134
|
+
:host([type='list']) {
|
|
135
|
+
--scb-card-max-w: var(--scb-card-list-max-w);
|
|
136
|
+
}
|
|
137
|
+
:host([type='social']) {
|
|
138
|
+
--scb-card-max-w: var(--scb-card-social-max-w);
|
|
139
|
+
}
|
|
140
|
+
:host([type='link']) {
|
|
141
|
+
--scb-card-max-w: var(--scb-card-link-max-w);
|
|
142
|
+
}
|
|
143
|
+
:host([type='action']) {
|
|
144
|
+
--scb-card-max-w: var(--scb-card-action-max-w);
|
|
145
|
+
}
|
|
129
146
|
|
|
130
147
|
:host([height]) .scb-card,
|
|
131
148
|
:host([max-height]) .scb-card,
|
|
132
|
-
:host([sizing=
|
|
149
|
+
:host([sizing='stretch']) .scb-card {
|
|
133
150
|
block-size: 100%;
|
|
134
151
|
}
|
|
135
152
|
|
|
136
|
-
:host([sizing=
|
|
153
|
+
:host([sizing='stretch']) {
|
|
137
154
|
inline-size: 100%;
|
|
138
155
|
block-size: 100%;
|
|
139
156
|
max-inline-size: none;
|
|
140
157
|
}
|
|
141
158
|
|
|
142
|
-
:host([sizing=
|
|
159
|
+
:host([sizing='content-width']) {
|
|
143
160
|
display: inline-block;
|
|
144
161
|
inline-size: auto;
|
|
145
162
|
block-size: auto;
|
|
146
163
|
}
|
|
147
|
-
:host([sizing=
|
|
164
|
+
:host([sizing='content-width']) .scb-card {
|
|
148
165
|
inline-size: max-content;
|
|
149
166
|
}
|
|
150
167
|
|
|
151
|
-
:host([sizing=
|
|
168
|
+
:host([sizing='content-height']) {
|
|
152
169
|
inline-size: 100%;
|
|
153
170
|
block-size: auto;
|
|
154
171
|
max-inline-size: none;
|
|
@@ -161,7 +178,9 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
161
178
|
display: none;
|
|
162
179
|
border-radius: var(--scb-card-focus-ring-radius, var(--md-sys-shape-corner-large));
|
|
163
180
|
}
|
|
164
|
-
:host(:focus-within) md-focus-ring {
|
|
181
|
+
:host(:focus-within) md-focus-ring {
|
|
182
|
+
display: block;
|
|
183
|
+
}
|
|
165
184
|
|
|
166
185
|
.scb-card {
|
|
167
186
|
color: var(--md-sys-color-on-surface);
|
|
@@ -178,14 +197,26 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
178
197
|
}
|
|
179
198
|
|
|
180
199
|
.scb-card:focus,
|
|
181
|
-
.scb-card:focus-visible {
|
|
200
|
+
.scb-card:focus-visible {
|
|
201
|
+
outline: none;
|
|
202
|
+
}
|
|
182
203
|
.scb-card a:focus,
|
|
183
|
-
.scb-card a:focus-visible {
|
|
204
|
+
.scb-card a:focus-visible {
|
|
205
|
+
outline: none;
|
|
206
|
+
}
|
|
184
207
|
|
|
185
|
-
.scb-card.outlined {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
.scb-card.
|
|
208
|
+
.scb-card.outlined {
|
|
209
|
+
border: 1px solid var(--md-sys-color-outline-variant);
|
|
210
|
+
}
|
|
211
|
+
.scb-card.filled {
|
|
212
|
+
background: var(--md-sys-color-surface-dim);
|
|
213
|
+
}
|
|
214
|
+
.scb-card.vertical {
|
|
215
|
+
flex-direction: column;
|
|
216
|
+
}
|
|
217
|
+
.scb-card.clickable {
|
|
218
|
+
cursor: pointer;
|
|
219
|
+
}
|
|
189
220
|
|
|
190
221
|
md-ripple {
|
|
191
222
|
position: absolute;
|
|
@@ -216,16 +247,29 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
216
247
|
position: absolute;
|
|
217
248
|
inset: 0;
|
|
218
249
|
background:
|
|
219
|
-
linear-gradient(
|
|
220
|
-
|
|
221
|
-
rgba(0,0,0
|
|
222
|
-
rgba(0,0,0
|
|
250
|
+
linear-gradient(
|
|
251
|
+
90deg,
|
|
252
|
+
rgba(0, 0, 0, 0.06) 25%,
|
|
253
|
+
rgba(0, 0, 0, 0.12) 37%,
|
|
254
|
+
rgba(0, 0, 0, 0.06) 63%
|
|
255
|
+
);
|
|
223
256
|
animation: scb-card-shimmer 1.2s infinite linear;
|
|
224
257
|
}
|
|
225
|
-
.media.is-loaded::before {
|
|
226
|
-
|
|
258
|
+
.media.is-loaded::before {
|
|
259
|
+
content: none;
|
|
260
|
+
}
|
|
261
|
+
@keyframes scb-card-shimmer {
|
|
262
|
+
0% {
|
|
263
|
+
transform: translateX(-100%);
|
|
264
|
+
}
|
|
265
|
+
100% {
|
|
266
|
+
transform: translateX(100%);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
227
269
|
|
|
228
|
-
.full-content {
|
|
270
|
+
.full-content {
|
|
271
|
+
padding: var(--spacing-7) var(--spacing-6);
|
|
272
|
+
}
|
|
229
273
|
.top-content {
|
|
230
274
|
display: flex;
|
|
231
275
|
flex-direction: column;
|
|
@@ -256,8 +300,13 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
256
300
|
overflow-wrap: normal;
|
|
257
301
|
hyphens: auto;
|
|
258
302
|
}
|
|
259
|
-
.header a.title {
|
|
260
|
-
|
|
303
|
+
.header a.title {
|
|
304
|
+
color: inherit;
|
|
305
|
+
text-decoration: none;
|
|
306
|
+
}
|
|
307
|
+
.header md-icon {
|
|
308
|
+
flex: 0 0 auto;
|
|
309
|
+
}
|
|
261
310
|
|
|
262
311
|
.sub-label {
|
|
263
312
|
font-size: var(--md-sys-typescale-title-medium-size);
|
|
@@ -286,8 +335,12 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
286
335
|
column-gap: var(--spacing-6);
|
|
287
336
|
padding: var(--spacing-6);
|
|
288
337
|
}
|
|
289
|
-
.scb-card.horizontal .media {
|
|
290
|
-
|
|
338
|
+
.scb-card.horizontal .media {
|
|
339
|
+
align-self: flex-start;
|
|
340
|
+
}
|
|
341
|
+
.scb-card.horizontal .media ::slotted(scb-avatar) {
|
|
342
|
+
margin: 0;
|
|
343
|
+
}
|
|
291
344
|
.scb-card.horizontal .full-content {
|
|
292
345
|
align-self: flex-start;
|
|
293
346
|
padding: 0;
|
|
@@ -295,8 +348,12 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
295
348
|
min-inline-size: 0;
|
|
296
349
|
flex: 1 1 auto;
|
|
297
350
|
}
|
|
298
|
-
.scb-card.horizontal .header {
|
|
299
|
-
|
|
351
|
+
.scb-card.horizontal .header {
|
|
352
|
+
align-items: flex-start;
|
|
353
|
+
}
|
|
354
|
+
.scb-card.horizontal .header md-icon {
|
|
355
|
+
align-self: flex-start;
|
|
356
|
+
}
|
|
300
357
|
|
|
301
358
|
.scb-card.horizontal .media img {
|
|
302
359
|
margin: 0;
|
|
@@ -309,7 +366,7 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
309
366
|
block-size: auto;
|
|
310
367
|
}
|
|
311
368
|
|
|
312
|
-
:host([sizing=
|
|
369
|
+
:host([sizing='content-width']) .scb-card.horizontal:has(.media img) .full-content {
|
|
313
370
|
inline-size: max-content;
|
|
314
371
|
flex: 0 1 auto;
|
|
315
372
|
}
|
|
@@ -326,13 +383,16 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
326
383
|
font-size: var(--md-sys-typescale-title-large-size);
|
|
327
384
|
vertical-align: middle;
|
|
328
385
|
}
|
|
329
|
-
.comments,
|
|
386
|
+
.comments,
|
|
387
|
+
.likes {
|
|
330
388
|
display: flex;
|
|
331
389
|
align-items: center;
|
|
332
390
|
gap: var(--spacing-2);
|
|
333
391
|
}
|
|
334
392
|
|
|
335
|
-
.scb-card .content.list {
|
|
393
|
+
.scb-card .content.list {
|
|
394
|
+
margin-top: var(--spacing-7);
|
|
395
|
+
}
|
|
336
396
|
|
|
337
397
|
.scb-card .content.actions ::slotted(*) {
|
|
338
398
|
margin-top: var(--spacing-7);
|
|
@@ -341,7 +401,9 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
341
401
|
gap: var(--spacing-3);
|
|
342
402
|
}
|
|
343
403
|
|
|
344
|
-
.scb-card .content.links {
|
|
404
|
+
.scb-card .content.links {
|
|
405
|
+
margin-top: var(--spacing-3);
|
|
406
|
+
}
|
|
345
407
|
.scb-card .content.links ::slotted(a),
|
|
346
408
|
.scb-card .content.links ::slotted(scb-link) {
|
|
347
409
|
display: block;
|
|
@@ -354,4 +416,4 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as u,n as s,i as v,x
|
|
|
354
416
|
.scb-card.filled .content.list ::slotted(scb-list) {
|
|
355
417
|
--scb-list-bg: var(--md-sys-color-surface-dim);
|
|
356
418
|
}
|
|
357
|
-
`;e([s({type:String})],t.prototype,"type",2);e([s({type:String})],t.prototype,"variant",2);e([s({type:String})],t.prototype,"direction",2);e([s({type:String,attribute:"media-type"})],t.prototype,"mediaType",2);e([s({type:String,attribute:"media-href"})],t.prototype,"mediaHref",2);e([s({type:String,attribute:"media-alt"})],t.prototype,"mediaAlt",2);e([s({type:String,attribute:"media-srcset"})],t.prototype,"mediaSrcset",2);e([s({type:String,attribute:"media-sizes"})],t.prototype,"mediaSizes",2);e([s({type:String,attribute:"media-loading"})],t.prototype,"mediaLoading",2);e([s({type:String,attribute:"media-decoding"})],t.prototype,"mediaDecoding",2);e([s({type:String,attribute:"media-fetchpriority"})],t.prototype,"mediaFetchPriority",2);e([s({type:String,attribute:"media-fit"})],t.prototype,"mediaFit",2);e([s({type:String,attribute:"media-position"})],t.prototype,"mediaPosition",2);e([s({type:String,attribute:"media-width"})],t.prototype,"mediaWidth",2);e([s({type:String,attribute:"media-height"})],t.prototype,"mediaHeight",2);e([s({type:String,attribute:"media-aspect"})],t.prototype,"mediaAspect",2);e([s({type:Boolean,attribute:"media-placeholder"})],t.prototype,"mediaPlaceholder",2);e([s({type:String,attribute:"card-href"})],t.prototype,"cardHref",2);e([s({type:String})],t.prototype,"title",2);e([s({type:String})],t.prototype,"subtitle",2);e([s({type:String,attribute:"supporting-text"})],t.prototype,"supportingText",2);e([s({type:Date,reflect:!0})],t.prototype,"date",2);e([s({type:String,attribute:"social-comments-text"})],t.prototype,"commentsText",2);e([s({type:Number,attribute:"social-comments",reflect:!0})],t.prototype,"comments",2);e([s({type:String,attribute:"social-likes-text"})],t.prototype,"likesText",2);e([s({type:Number,attribute:"social-likes",reflect:!0})],t.prototype,"likes",2);e([s({type:String,reflect:!0})],t.prototype,"sizing",2);e([s({type:String,reflect:!0})],t.prototype,"width",2);e([s({type:String,reflect:!0,attribute:"max-width"})],t.prototype,"maxWidth",2);e([s({type:String,reflect:!0})],t.prototype,"height",2);e([s({type:String,reflect:!0,attribute:"max-height"})],t.prototype,"maxHeight",2);t=e([
|
|
419
|
+
`;e([s({type:String,reflect:!0})],t.prototype,"type",2);e([s({type:String,reflect:!0})],t.prototype,"variant",2);e([s({type:String,reflect:!0})],t.prototype,"direction",2);e([s({type:String,attribute:"media-type"})],t.prototype,"mediaType",2);e([s({type:String,attribute:"media-href"})],t.prototype,"mediaHref",2);e([s({type:String,attribute:"media-alt"})],t.prototype,"mediaAlt",2);e([s({type:String,attribute:"media-srcset"})],t.prototype,"mediaSrcset",2);e([s({type:String,attribute:"media-sizes"})],t.prototype,"mediaSizes",2);e([s({type:String,attribute:"media-loading"})],t.prototype,"mediaLoading",2);e([s({type:String,attribute:"media-decoding"})],t.prototype,"mediaDecoding",2);e([s({type:String,attribute:"media-fetchpriority"})],t.prototype,"mediaFetchPriority",2);e([s({type:String,attribute:"media-fit"})],t.prototype,"mediaFit",2);e([s({type:String,attribute:"media-position"})],t.prototype,"mediaPosition",2);e([s({type:String,attribute:"media-width"})],t.prototype,"mediaWidth",2);e([s({type:String,attribute:"media-height"})],t.prototype,"mediaHeight",2);e([s({type:String,attribute:"media-aspect"})],t.prototype,"mediaAspect",2);e([s({type:Boolean,attribute:"media-placeholder"})],t.prototype,"mediaPlaceholder",2);e([s({type:String,attribute:"card-href",reflect:!0})],t.prototype,"cardHref",2);e([s({type:String,reflect:!0})],t.prototype,"title",2);e([s({type:String,reflect:!0})],t.prototype,"subtitle",2);e([s({type:String,attribute:"supporting-text",reflect:!0})],t.prototype,"supportingText",2);e([s({type:Date,reflect:!0})],t.prototype,"date",2);e([s({type:String,attribute:"social-comments-text",reflect:!0})],t.prototype,"commentsText",2);e([s({type:Number,attribute:"social-comments",reflect:!0})],t.prototype,"comments",2);e([s({type:String,attribute:"social-likes-text",reflect:!0})],t.prototype,"likesText",2);e([s({type:Number,attribute:"social-likes",reflect:!0})],t.prototype,"likes",2);e([s({type:String,reflect:!0})],t.prototype,"sizing",2);e([s({type:String,reflect:!0})],t.prototype,"width",2);e([s({type:String,reflect:!0,attribute:"max-width"})],t.prototype,"maxWidth",2);e([s({type:String,reflect:!0})],t.prototype,"height",2);e([s({type:String,reflect:!0,attribute:"max-height"})],t.prototype,"maxHeight",2);t=e([v("scb-card")],t);
|