scb-wc-test 0.1.105 → 0.1.107
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-accordion/scb-accordion.js +8 -2
- package/mvc/components/scb-avatar/scb-avatar.js +19 -10
- package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +2 -3
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +13 -7
- package/mvc/components/scb-button/scb-button.js +34 -32
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +13 -11
- package/mvc/components/scb-card/scb-card.js +44 -41
- package/mvc/components/scb-checkbox/scb-checkbox-group.js +15 -13
- package/mvc/components/scb-checkbox/scb-checkbox.js +6 -6
- package/mvc/components/scb-chip/scb-chip.js +27 -7
- package/mvc/components/scb-divider/scb-divider.js +41 -15
- package/mvc/components/scb-fact-card/scb-fact-card.js +37 -18
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +71 -43
- package/mvc/components/scb-icon-button/scb-icon-button.js +16 -10
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +6 -4
- package/mvc/components/scb-list/scb-list.js +3 -3
- package/mvc/components/scb-notification-card/scb-notification-card.js +5 -5
- package/mvc/components/scb-pagination/scb-pagination.js +165 -107
- package/mvc/components/scb-radio-button/scb-radio-group.js +22 -11
- package/mvc/components/scb-search/scb-search.js +84 -32
- package/mvc/components/scb-segmented-button/scb-segmented-button.js +15 -13
- package/mvc/components/scb-status-pill/scb-status-pill.js +17 -13
- package/mvc/components/scb-stepper/scb-stepper.js +32 -29
- package/mvc/components/scb-switch/scb-switch.js +11 -8
- package/mvc/components/scb-tabs/scb-tabs.js +22 -19
- package/mvc/components/scb-textfield/scb-textfield.js +14 -10
- package/mvc/components/scb-toc/scb-toc.js +6 -3
- package/mvc/components/scb-viz/scb-viz.js +188 -178
- package/package.json +2 -2
- package/scb-accordion/scb-accordion.d.ts +13 -0
- package/scb-accordion/scb-accordion.js +53 -21
- package/scb-avatar/scb-avatar.d.ts +6 -0
- package/scb-avatar/scb-avatar.js +96 -61
- package/scb-breadcrumb/scb-breadcrumb-item.js +8 -9
- package/scb-breadcrumb/scb-breadcrumb.d.ts +6 -0
- package/scb-breadcrumb/scb-breadcrumb.js +61 -30
- package/scb-button/scb-button.d.ts +10 -0
- package/scb-button/scb-button.js +89 -65
- package/scb-calendar-card/scb-calendar-card.d.ts +5 -0
- package/scb-calendar-card/scb-calendar-card.js +79 -55
- package/scb-card/scb-card.d.ts +5 -0
- package/scb-card/scb-card.js +165 -140
- package/scb-checkbox/scb-checkbox-group.d.ts +3 -1
- package/scb-checkbox/scb-checkbox-group.js +59 -40
- package/scb-checkbox/scb-checkbox.d.ts +11 -0
- package/scb-checkbox/scb-checkbox.js +78 -56
- package/scb-chip/scb-chip.d.ts +24 -0
- package/scb-chip/scb-chip.js +137 -65
- package/scb-divider/scb-divider.d.ts +14 -0
- package/scb-divider/scb-divider.js +91 -43
- package/scb-fact-card/scb-fact-card.d.ts +10 -0
- package/scb-fact-card/scb-fact-card.js +135 -94
- package/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +10 -0
- package/scb-horizontal-scroller/scb-horizontal-scroller.js +179 -120
- package/scb-icon-button/scb-icon-button.d.ts +10 -1
- package/scb-icon-button/scb-icon-button.js +88 -59
- package/scb-keyfigure-card/scb-keyfigure-card.d.ts +10 -0
- package/scb-keyfigure-card/scb-keyfigure-card.js +76 -52
- package/scb-list/scb-list.d.ts +7 -1
- package/scb-list/scb-list.js +62 -40
- package/scb-notification-card/scb-notification-card.d.ts +5 -0
- package/scb-notification-card/scb-notification-card.js +56 -39
- package/scb-pagination/scb-pagination.d.ts +12 -1
- package/scb-pagination/scb-pagination.js +235 -147
- package/scb-radio-button/scb-radio-group.d.ts +14 -3
- package/scb-radio-button/scb-radio-group.js +120 -67
- package/scb-search/scb-search.d.ts +15 -2
- package/scb-search/scb-search.js +152 -69
- package/scb-segmented-button/scb-segmented-button.d.ts +45 -4
- package/scb-segmented-button/scb-segmented-button.js +163 -72
- package/scb-status-pill/scb-status-pill.d.ts +12 -1
- package/scb-status-pill/scb-status-pill.js +51 -27
- package/scb-stepper/scb-stepper.d.ts +11 -3
- package/scb-stepper/scb-stepper.js +134 -101
- package/scb-switch/scb-switch.d.ts +21 -2
- package/scb-switch/scb-switch.js +97 -45
- package/scb-tabs/scb-tabs.d.ts +8 -0
- package/scb-tabs/scb-tabs.js +74 -44
- package/scb-textfield/scb-textfield.d.ts +7 -0
- package/scb-textfield/scb-textfield.js +43 -16
- package/scb-toc/scb-toc.d.ts +10 -1
- package/scb-toc/scb-toc.js +49 -18
- package/scb-viz/scb-viz.d.ts +10 -3
- package/scb-viz/scb-viz.js +278 -236
- package/scb-wc-test.bundle.js +1184 -901
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as m,n as d,i as y,x as k,t as x}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(s,o,i){try{customElements.get(s)||e(s,o,i)}catch(c){var n=String(c||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();var S=Object.defineProperty,w=Object.getOwnPropertyDescriptor,v=t=>{throw TypeError(t)},l=(t,e,s,o)=>{for(var i=o>1?void 0:o?w(e,s):e,n=t.length-1,c;n>=0;n--)(c=t[n])&&(i=(o?c(e,s,i):c(i))||i);return o&&i&&S(e,s,i),i},_=(t,e,s)=>e.has(t)||v("Cannot "+s),b=(t,e,s)=>(_(t,e,"read from private field"),s?s.call(t):e.get(t)),f=(t,e,s)=>e.has(t)?v("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),h=(t,e,s)=>(_(t,e,"access private method"),s),p,a,u,g;let r=class extends y{constructor(){super(...arguments),f(this,a),this.orientation="vertical",this.disabled=!1,this.spacing="",this.spacingTop="",this.spacingBottom="",f(this,p,()=>{const t=this.shadowRoot?.querySelector("slot");if(!t)return;const e=t.assignedElements({flatten:!0}).filter(s=>s.tagName.toLowerCase()==="scb-checkbox");for(const s of e)this.disabled?s.setAttribute("disabled",""):s.removeAttribute("disabled"),this.orientation==="horizontal"?s.setAttribute("orientation","horizontal"):s.removeAttribute("orientation")})}render(){const t=this.orientation==="horizontal"?"row":"column";return k`
|
|
2
2
|
<div class="g" role="group" aria-disabled=${String(this.disabled)} style=${`--_dir:${t}`}>
|
|
3
|
-
<slot @slotchange=${
|
|
3
|
+
<slot @slotchange=${b(this,p)}></slot>
|
|
4
4
|
</div>
|
|
5
|
-
`}firstUpdated(){
|
|
5
|
+
`}firstUpdated(){h(this,a,u).call(this),b(this,p).call(this)}updated(t){(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom"))&&h(this,a,u).call(this),(t.has("disabled")||t.has("orientation"))&&b(this,p).call(this)}};p=new WeakMap;a=new WeakSet;u=function(){const t=h(this,a,g).call(this,this.spacing),e=h(this,a,g).call(this,this.spacingTop)??t,s=h(this,a,g).call(this,this.spacingBottom)??t;e?this.style.setProperty("--scb-checkbox-group-spacing-block-start",e):this.style.removeProperty("--scb-checkbox-group-spacing-block-start"),s?this.style.setProperty("--scb-checkbox-group-spacing-block-end",s):this.style.removeProperty("--scb-checkbox-group-spacing-block-end")};g=function(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};r.styles=m`
|
|
6
6
|
:host {
|
|
7
7
|
display: block;
|
|
8
|
+
/* Vertikal standard-spacing mellan items i gruppen */
|
|
8
9
|
--scb-checkbox-gap: var(--spacing-4, 12px);
|
|
10
|
+
|
|
11
|
+
margin-block-start: var(--scb-checkbox-group-spacing-block-start, 0);
|
|
12
|
+
margin-block-end: var(--scb-checkbox-group-spacing-block-end, 0);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Horisontell standard-spacing mellan items om spacing för gruppen inte overrideas via CSS-variabel */
|
|
16
|
+
:host([orientation='horizontal']) {
|
|
17
|
+
--scb-checkbox-gap: var(--spacing-8, 32px);
|
|
9
18
|
}
|
|
10
19
|
|
|
11
20
|
.g {
|
|
12
21
|
display: flex;
|
|
13
22
|
flex-direction: var(--_dir, column);
|
|
14
23
|
align-items: flex-start;
|
|
15
|
-
gap: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
:host([spacing='group']) .g {
|
|
19
24
|
gap: var(--scb-checkbox-gap);
|
|
20
25
|
}
|
|
21
26
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
:host([spacing='group']) ::slotted(scb-checkbox) {
|
|
27
|
+
/* När checkboxar ligger i en grupp ska spacing ägas av gruppen, inte av enskilda items */
|
|
28
|
+
::slotted(scb-checkbox) {
|
|
27
29
|
--scb-checkbox-gap: 0;
|
|
28
30
|
}
|
|
29
|
-
`;l([d({type:String,reflect:!0})],
|
|
31
|
+
`;l([d({type:String,reflect:!0})],r.prototype,"orientation",2);l([d({type:Boolean,reflect:!0})],r.prototype,"disabled",2);l([d({type:String,reflect:!0})],r.prototype,"spacing",2);l([d({type:String,attribute:"spacing-top",reflect:!0})],r.prototype,"spacingTop",2);l([d({type:String,attribute:"spacing-bottom",reflect:!0})],r.prototype,"spacingBottom",2);r=l([x("scb-checkbox-group")],r);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as b,n as c,i as p,E as d,x as h,t as u}from"../../vendor/vendor.js";import"../../vendor/vendor-material.js";import"./scb-checkbox-group.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var r=customElements.define.bind(customElements);customElements.define=function(t,a,i){try{customElements.get(t)||r(t,a,i)}catch(l){var s=String(l||"");if(s.indexOf("already been used")===-1&&s.indexOf("NotSupportedError")===-1)throw l}}}}catch{}})();var m=Object.defineProperty,f=Object.getOwnPropertyDescriptor,n=(e,r,t,a)=>{for(var i=a>1?void 0:a?f(r,t):r,s=e.length-1,l;s>=0;s--)(l=e[s])&&(i=(a?l(r,t,i):l(i))||i);return a&&i&&m(r,t,i),i};let o=class extends p{constructor(){super(),this._internals=null,this.disabled=!1,this.indeterminate=!1,this.checked=!1,this.label="",this.supportingText="",this.ariaLabel="",this.name="",this.value="on",this._form=null,this._formResetHandler=null,this._initialChecked=!1,this._checkboxId="","attachInternals"in this&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),this._checkboxId=this.id||`scb-checkbox-${Math.random().toString(36).slice(2,11)}`,this._initialChecked=this.checked,this._form=this.closest("form"),this._form&&(this._formResetHandler=()=>{this.checked=this._initialChecked,this.indeterminate=!1,this.__syncFormValue()},this._form.addEventListener("reset",this._formResetHandler,!0)),this.__syncFormValue()}disconnectedCallback(){super.disconnectedCallback(),this._form&&this._formResetHandler&&this._form.removeEventListener("reset",this._formResetHandler,!0)}firstUpdated(){const e=this.shadowRoot?.querySelector("md-checkbox");e&&e.addEventListener("change",()=>{const t=e,a=!!t.checked,i=!!t.indeterminate;this.checked=a,this.indeterminate=i,this.dispatchEvent(new CustomEvent("change",{detail:{checked:a,indeterminate:i},bubbles:!0,composed:!0}))}),this.shadowRoot?.querySelector("label.wrap")?.addEventListener("click",t=>{if(this.disabled)return;if(!t.composedPath().some(s=>{const l=s;return l?.tagName?.toLowerCase?.()==="md-checkbox"||l?.classList?.contains("box-wrap")})){t.preventDefault();const s=this.shadowRoot.querySelector("md-checkbox");s&&(s.checked=!s.checked,s.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})))}}),this.__syncInnerAria()}updated(e){super.updated(e),e.has("disabled")&&this.toggleAttribute("aria-disabled",this.disabled),(e.has("label")||e.has("supportingText")||e.has("ariaLabel"))&&this.__syncInnerAria(),(e.has("checked")||e.has("disabled")||e.has("value"))&&this.__syncFormValue()}formDisabledCallback(e){this.disabled=e}__syncInnerAria(){const r=this.shadowRoot?.querySelector("md-checkbox")?.shadowRoot;if(!r)return;const t=r.querySelector('[role="checkbox"]')||r.querySelector('input[type="checkbox"]');if(!t)return;const a=!!this.label?.trim(),i=a?`${this._checkboxId}-label`:"",s=this.supportingText?`${this._checkboxId}-supporting-text`:"";a&&i?(t.setAttribute("aria-labelledby",i),t.removeAttribute("aria-label")):(t.removeAttribute("aria-labelledby"),this.ariaLabel?.trim()?t.setAttribute("aria-label",this.ariaLabel.trim()):t.removeAttribute("aria-label")),s?t.setAttribute("aria-describedby",s):t.removeAttribute("aria-describedby")}__syncFormValue(){if(!this._internals)return;const e=this.disabled||!this.checked?null:this.value;this._internals.setFormValue(e)}render(){const e=this.supportingText?`${this._checkboxId}-supporting-text`:void 0,r=!!this.label?.trim(),t=r?d:this.ariaLabel||d;return h`
|
|
2
2
|
<label class="wrap">
|
|
3
3
|
<div class="box-wrap">
|
|
4
4
|
<md-checkbox
|
|
@@ -6,17 +6,17 @@ import{a as p,n,i as h,E as d,x as b,t as u}from"../../vendor/vendor.js";import"
|
|
|
6
6
|
?disabled=${this.disabled}
|
|
7
7
|
?indeterminate=${this.indeterminate}
|
|
8
8
|
?checked=${this.checked}
|
|
9
|
-
aria-label=${
|
|
9
|
+
aria-label=${t}
|
|
10
10
|
></md-checkbox>
|
|
11
11
|
</div>
|
|
12
|
-
${
|
|
12
|
+
${r?h`<span class="lbl" id="${this._checkboxId}-label">${this.label}</span>`:d}
|
|
13
13
|
</label>
|
|
14
14
|
|
|
15
|
-
${this.supportingText?
|
|
15
|
+
${this.supportingText?h`<div id="${e}" class="supporting-text">
|
|
16
16
|
${this.supportingText}
|
|
17
17
|
</div>`:d}
|
|
18
18
|
<slot></slot>
|
|
19
|
-
`}};
|
|
19
|
+
`}};o.formAssociated=!0;o.styles=b`
|
|
20
20
|
:host {
|
|
21
21
|
display: inline-grid;
|
|
22
22
|
grid-template-columns: auto;
|
|
@@ -87,4 +87,4 @@ import{a as p,n,i as h,E as d,x as b,t as u}from"../../vendor/vendor.js";import"
|
|
|
87
87
|
color: var(--md-sys-color-on-surface-variant);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
`;
|
|
90
|
+
`;n([c({type:Boolean,reflect:!0})],o.prototype,"disabled",2);n([c({type:Boolean,reflect:!0})],o.prototype,"indeterminate",2);n([c({type:Boolean,reflect:!0})],o.prototype,"checked",2);n([c({type:String})],o.prototype,"label",2);n([c({type:String,attribute:"supporting-text"})],o.prototype,"supportingText",2);n([c({type:String,reflect:!0,attribute:"aria-label"})],o.prototype,"ariaLabel",2);n([c({type:String})],o.prototype,"name",2);n([c({type:String})],o.prototype,"value",2);o=n([u("scb-checkbox")],o);export{o as ScbCheckbox};
|
|
@@ -1,17 +1,17 @@
|
|
|
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
|
|
2
|
+
import{_ as d}from"../../vendor/preload-helper.js";import{a as b,n as r,i as v,x as c,t as f}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,l,o){try{customElements.get(i)||e(i,l,o)}catch(h){var n=String(h||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw h}}}}catch{}})();var y=Object.defineProperty,g=Object.getOwnPropertyDescriptor,_=t=>{throw TypeError(t)},a=(t,e,i,l)=>{for(var o=l>1?void 0:l?g(e,i):e,n=t.length-1,h;n>=0;n--)(h=t[n])&&(o=(l?h(e,i,o):h(o))||o);return l&&o&&y(e,i,o),o},S=(t,e,i)=>e.has(t)||_("Cannot "+i),E=(t,e,i)=>e.has(t)?_("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),m=(t,e,i)=>(S(t,e,"access private method"),i),p,u;let s=class extends v{constructor(){super(),E(this,p),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.href="",this.target="",this.name="",this.value="",this.spacing="",this.spacingTop="",this.spacingBottom="",this.size="",this._internals=null,this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1,"attachInternals"in this&&(this._internals=this.attachInternals())}updated(t){super.updated(t),(t.has("variant")||t.has("icon"))&&this.__ensureDepsLoaded(),t.has("disabled")&&(this.toggleAttribute("aria-disabled",this.disabled),this.dispatchEvent(new CustomEvent("disabled-changed",{detail:{disabled:this.disabled},bubbles:!0,composed:!0}))),t.has("variant")&&this.dispatchEvent(new CustomEvent("variant-changed",{detail:{variant:this.variant},bubbles:!0,composed:!0})),t.has("label")&&this.dispatchEvent(new CustomEvent("label-changed",{detail:{label:this.label},bubbles:!0,composed:!0})),t.has("elevated")&&this.dispatchEvent(new CustomEvent("elevated-changed",{detail:{elevated:this.elevated},bubbles:!0,composed:!0})),t.has("icon")&&this.dispatchEvent(new CustomEvent("icon-changed",{detail:{icon:this.icon},bubbles:!0,composed:!0})),t.has("size")&&this.dispatchEvent(new CustomEvent("size-changed",{detail:{size:this.size},bubbles:!0,composed:!0})),(t.has("selected")||t.has("disabled")||t.has("variant")||t.has("value")||t.has("name"))&&this._updateFormValue(),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom"))&&m(this,p,u).call(this)}firstUpdated(){this.__ensureDepsLoaded(),m(this,p,u).call(this),this._updateFormValue()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await d(()=>import("../../vendor/vendor-material.js").then(t=>t.e),__vite__mapDeps([0,1]),import.meta.url);break;case"filter":await d(()=>import("../../vendor/vendor-material.js").then(t=>t.g),__vite__mapDeps([0,1]),import.meta.url);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await d(()=>import("../../vendor/vendor-material.js").then(t=>t.h),__vite__mapDeps([0,1]),import.meta.url),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await d(()=>import("../../vendor/vendor-material.js").then(t=>t.i),__vite__mapDeps([0,1]),import.meta.url),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const t=this._renderChip();return this._insideChipSet?t:c`<md-chip-set>${t}</md-chip-set>`}_renderChip(){const t=this.icon?c`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":{const e=this.target==="_blank"?"noopener noreferrer":void 0;return c`
|
|
3
3
|
<md-assist-chip
|
|
4
4
|
label=${this.label}
|
|
5
5
|
?disabled=${this.disabled}
|
|
6
6
|
?elevated=${this.elevated}
|
|
7
7
|
href=${this.href||void 0}
|
|
8
8
|
target=${this.href&&this.target||void 0}
|
|
9
|
-
rel=${
|
|
9
|
+
rel=${e}
|
|
10
10
|
@update-focus=${this._forward}
|
|
11
11
|
>
|
|
12
|
-
${
|
|
12
|
+
${t}
|
|
13
13
|
</md-assist-chip>
|
|
14
|
-
`}case"filter":return
|
|
14
|
+
`}case"filter":return c`
|
|
15
15
|
<md-filter-chip
|
|
16
16
|
label=${this.label}
|
|
17
17
|
?disabled=${this.disabled}
|
|
@@ -21,11 +21,13 @@ import{_ as c}from"../../vendor/preload-helper.js";import{a as p,n as a,i as u,x
|
|
|
21
21
|
@update-focus=${this._forward}
|
|
22
22
|
@click=${()=>this._toggleSelected()}
|
|
23
23
|
>
|
|
24
|
-
${
|
|
24
|
+
${t}
|
|
25
25
|
</md-filter-chip>
|
|
26
|
-
`;default:return
|
|
26
|
+
`;default:return c``}}_toggleSelected(){this.selected=!this.selected,this.dispatchEvent(new CustomEvent("selected-changed",{detail:{selected:this.selected},bubbles:!0,composed:!0})),this._updateFormValue()}_onRemove(t){t.stopPropagation(),this.dispatchEvent(new CustomEvent("remove",{detail:{label:this.label},bubbles:!0,composed:!0}))}_forward(t){this.dispatchEvent(new CustomEvent(t.type,{detail:t.detail,bubbles:!0,composed:!0}))}_updateFormValue(){if(!this._internals)return;if(!(this.variant==="filter"&&this.selected&&!this.disabled&&!!this.name)){this._internals.setFormValue(null),this._internals.setValidity({});return}const e=this.value||this.label||"";this._internals.setFormValue(e,this.name),this._internals.setValidity({})}formDisabledCallback(t){this.disabled=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}};p=new WeakSet;u=function(){const t=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop),i=this.mapSpacingToken(this.spacingBottom),l=e??t,o=i??t;l?this.style.setProperty("--scb-chip-spacing-block-start",l):this.style.removeProperty("--scb-chip-spacing-block-start"),o?this.style.setProperty("--scb-chip-spacing-block-end",o):this.style.removeProperty("--scb-chip-spacing-block-end")};s.formAssociated=!0;s.styles=b`
|
|
27
27
|
:host {
|
|
28
28
|
display: inline-block;
|
|
29
|
+
margin-block-start: var(--scb-chip-spacing-block-start, 0);
|
|
30
|
+
margin-block-end: var(--scb-chip-spacing-block-end, 0);
|
|
29
31
|
}
|
|
30
32
|
|
|
31
33
|
/* Sätt samma färg på label för assist som är på filter */
|
|
@@ -36,8 +38,26 @@ import{_ as c}from"../../vendor/preload-helper.js";import{a as p,n as a,i as u,x
|
|
|
36
38
|
--_pressed-label-text-color: var(--md-sys-color-on-surface-variant);
|
|
37
39
|
}
|
|
38
40
|
|
|
41
|
+
/* Storlekar: små/medium/stora chips via tokens.
|
|
42
|
+
Medium (default) är Material-standardvärdena. */
|
|
43
|
+
:host([size='small']) md-assist-chip,
|
|
44
|
+
:host([size='small']) md-filter-chip {
|
|
45
|
+
--md-assist-chip-container-height: 28px;
|
|
46
|
+
--md-filter-chip-container-height: 28px;
|
|
47
|
+
--md-assist-chip-label-text-size: 0.8125rem;
|
|
48
|
+
--md-filter-chip-label-text-size: 0.8125rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:host([size='large']) md-assist-chip,
|
|
52
|
+
:host([size='large']) md-filter-chip {
|
|
53
|
+
--md-assist-chip-container-height: 40px;
|
|
54
|
+
--md-filter-chip-container-height: 40px;
|
|
55
|
+
--md-assist-chip-label-text-size: 0.9375rem;
|
|
56
|
+
--md-filter-chip-label-text-size: 0.9375rem;
|
|
57
|
+
}
|
|
58
|
+
|
|
39
59
|
md-icon {
|
|
40
60
|
color: var(--md-sys-color-on-surface);
|
|
41
61
|
font-size: var(--md-sys-typescale-body-large-size);
|
|
42
62
|
}
|
|
43
|
-
`;
|
|
63
|
+
`;a([r({type:String,reflect:!0})],s.prototype,"variant",2);a([r({type:String})],s.prototype,"label",2);a([r({type:String})],s.prototype,"icon",2);a([r({type:Boolean,reflect:!0})],s.prototype,"disabled",2);a([r({type:Boolean,reflect:!0})],s.prototype,"elevated",2);a([r({type:Boolean,reflect:!0})],s.prototype,"removable",2);a([r({type:Boolean,reflect:!0})],s.prototype,"selected",2);a([r({type:String})],s.prototype,"href",2);a([r({type:String})],s.prototype,"target",2);a([r({type:String})],s.prototype,"name",2);a([r({type:String})],s.prototype,"value",2);a([r({type:String,reflect:!0})],s.prototype,"spacing",2);a([r({type:String,reflect:!0,attribute:"spacing-top"})],s.prototype,"spacingTop",2);a([r({type:String,reflect:!0,attribute:"spacing-bottom"})],s.prototype,"spacingBottom",2);a([r({type:String,reflect:!0})],s.prototype,"size",2);s=a([f("scb-chip")],s);
|
|
@@ -1,43 +1,69 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as g,n as d,i as b,x as u,t as f}from"../../vendor/vendor.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var i=customElements.define.bind(customElements);customElements.define=function(t,s,r){try{customElements.get(t)||i(t,s,r)}catch(c){var o=String(c||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();var y=Object.defineProperty,_=Object.getOwnPropertyDescriptor,h=e=>{throw TypeError(e)},a=(e,i,t,s)=>{for(var r=s>1?void 0:s?_(i,t):i,o=e.length-1,c;o>=0;o--)(c=e[o])&&(r=(s?c(i,t,r):c(r))||r);return s&&r&&y(i,t,r),r},m=(e,i,t)=>i.has(e)||h("Cannot "+t),k=(e,i,t)=>i.has(e)?h("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,t),p=(e,i,t)=>(m(e,i,"access private method"),t),l,v;let n=class extends b{constructor(){super(...arguments),k(this,l),this.variant="thin",this.direction="horizontal",this.inset="none",this.overlay=!1,this.anchor="end",this.spacing=""}firstUpdated(){p(this,l,v).call(this)}updated(e){e.has("spacing")&&p(this,l,v).call(this)}mapSpacingToken(e){if(!e)return;const i=String(e).trim();if(i)return/^\d+$/.test(i)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(i,10)))})`:i}render(){return u``}};l=new WeakSet;v=function(){const e=this.mapSpacingToken(this.spacing);e?this.style.setProperty("--scb-divider-spacing-orth",e):this.style.removeProperty("--scb-divider-spacing-orth")};n.styles=g`
|
|
2
2
|
:host {
|
|
3
3
|
--scb-divider-color: var(--md-sys-color-outline-variant);
|
|
4
4
|
--scb-divider-thickness: 1px;
|
|
5
5
|
--scb-divider-gap: var(--scb-grid-column-gap, var(--spacing-6, 24px));
|
|
6
|
+
--scb-divider-spacing-orth: 0;
|
|
7
|
+
|
|
6
8
|
display: block;
|
|
7
9
|
box-sizing: border-box;
|
|
8
|
-
pointer-events: none;
|
|
10
|
+
pointer-events: none;
|
|
9
11
|
}
|
|
10
|
-
|
|
12
|
+
|
|
13
|
+
:host([variant='bold']) {
|
|
11
14
|
--scb-divider-color: var(--md-sys-color-outline);
|
|
12
15
|
}
|
|
13
16
|
|
|
14
|
-
:
|
|
17
|
+
/* Horisontell avdelare: drar ut sig på inline-led, spacing på block-led (ovan/under). */
|
|
18
|
+
:host(:not([direction='vertical'])) {
|
|
15
19
|
inline-size: 100%;
|
|
16
20
|
block-size: var(--scb-divider-thickness);
|
|
17
21
|
background: var(--scb-divider-color);
|
|
22
|
+
margin-block: var(--scb-divider-spacing-orth, 0);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:host([inset='both']:not([direction='vertical'])) {
|
|
26
|
+
margin-inline: var(--spacing-8, 32px);
|
|
27
|
+
}
|
|
28
|
+
:host([inset='start']:not([direction='vertical'])) {
|
|
29
|
+
margin-inline-start: var(--spacing-8, 32px);
|
|
30
|
+
}
|
|
31
|
+
:host([inset='end']:not([direction='vertical'])) {
|
|
32
|
+
margin-inline-end: var(--spacing-8, 32px);
|
|
18
33
|
}
|
|
19
|
-
:host([inset="both"]:not([direction="vertical"])) { margin-inline: var(--spacing-8, 32px); }
|
|
20
|
-
:host([inset="start"]:not([direction="vertical"])) { margin-inline-start: var(--spacing-8, 32px); }
|
|
21
|
-
:host([inset="end"]:not([direction="vertical"])) { margin-inline-end: var(--spacing-8, 32px); }
|
|
22
34
|
|
|
23
|
-
:
|
|
35
|
+
/* Vertikal avdelare: drar ut sig på block-led, spacing på inline-led (vänster/höger). */
|
|
36
|
+
:host([direction='vertical']:not([overlay])) {
|
|
24
37
|
inline-size: var(--scb-divider-thickness);
|
|
25
38
|
block-size: 100%;
|
|
26
39
|
background: var(--scb-divider-color);
|
|
27
40
|
align-self: stretch;
|
|
28
41
|
justify-self: center;
|
|
42
|
+
margin-inline: var(--scb-divider-spacing-orth, 0);
|
|
29
43
|
}
|
|
30
|
-
:host([direction="vertical"][inset="both"]:not([overlay])) { margin-block: var(--spacing-8, 32px); }
|
|
31
|
-
:host([direction="vertical"][inset="start"]:not([overlay])) { margin-block-start: var(--spacing-8, 32px); }
|
|
32
|
-
:host([direction="vertical"][inset="end"]:not([overlay])) { margin-block-end: var(--spacing-8, 32px); }
|
|
33
44
|
|
|
34
|
-
:host([
|
|
45
|
+
:host([direction='vertical'][inset='both']:not([overlay])) {
|
|
46
|
+
margin-block: var(--spacing-8, 32px);
|
|
47
|
+
}
|
|
48
|
+
:host([direction='vertical'][inset='start']:not([overlay])) {
|
|
49
|
+
margin-block-start: var(--spacing-8, 32px);
|
|
50
|
+
}
|
|
51
|
+
:host([direction='vertical'][inset='end']:not([overlay])) {
|
|
52
|
+
margin-block-end: var(--spacing-8, 32px);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/* Overlay-variant för vertikal avdelare, spacing ignoreras (absolut positionerad). */
|
|
56
|
+
:host([overlay][direction='vertical']) {
|
|
35
57
|
position: absolute;
|
|
36
58
|
top: 0;
|
|
37
59
|
bottom: 0;
|
|
38
60
|
inline-size: var(--scb-divider-thickness);
|
|
39
61
|
background: var(--scb-divider-color);
|
|
40
62
|
}
|
|
41
|
-
:host([overlay][direction=
|
|
42
|
-
|
|
43
|
-
|
|
63
|
+
:host([overlay][direction='vertical'][anchor='end']) {
|
|
64
|
+
right: calc(var(--scb-divider-gap) / -2);
|
|
65
|
+
}
|
|
66
|
+
:host([overlay][direction='vertical'][anchor='start']) {
|
|
67
|
+
left: calc(var(--scb-divider-gap) / -2);
|
|
68
|
+
}
|
|
69
|
+
`;a([d({type:String,reflect:!0})],n.prototype,"variant",2);a([d({type:String,reflect:!0})],n.prototype,"direction",2);a([d({type:String,reflect:!0})],n.prototype,"inset",2);a([d({type:Boolean,reflect:!0})],n.prototype,"overlay",2);a([d({type:String,reflect:!0})],n.prototype,"anchor",2);a([d({type:String,reflect:!0})],n.prototype,"spacing",2);n=a([f("scb-divider")],n);
|
|
@@ -1,15 +1,21 @@
|
|
|
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
|
|
2
|
+
import{_ as b}from"../../vendor/preload-helper.js";import{a as f,n as a,i as m,x as d,t as _}from"../../vendor/vendor.js";import"../scb-icon-button/scb-icon-button.js";import"./scb-fact-card-content.js";import"../scb-link/scb-link.js";import"../../vendor/vendor-material.js";(function(){try{var t=typeof globalThis<"u"?globalThis:window;if(!t.__scb_ce_guard_installed__){t.__scb_ce_guard_installed__=!0;var i=customElements.define.bind(customElements);customElements.define=function(s,r,o){try{customElements.get(s)||i(s,r,o)}catch(l){var c=String(l||"");if(c.indexOf("already been used")===-1&&c.indexOf("NotSupportedError")===-1)throw l}}}}catch{}})();var v=Object.defineProperty,y=Object.getOwnPropertyDescriptor,g=t=>{throw TypeError(t)},n=(t,i,s,r)=>{for(var o=r>1?void 0:r?y(i,s):i,c=t.length-1,l;c>=0;c--)(l=t[c])&&(o=(r?l(i,s,o):l(o))||o);return r&&o&&v(i,s,o),o},x=(t,i,s)=>i.has(t)||g("Cannot "+s),z=(t,i,s)=>i.has(t)?g("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(t):i.set(t,s),u=(t,i,s)=>(x(t,i,"access private method"),s),p,h;let e=class extends m{constructor(){super(...arguments),z(this,p),this.__onCloseClick=t=>{t.stopPropagation(),this.__setOpen(!1)},this.variant="filled",this.title="",this.subtitle="",this.supportingText="",this.icon="",this.showCloseButton=!1,this.open=!0,this.__lastTriggerEl=null,this.sizing="stretch",this.width="",this.maxWidth="",this.height="",this.maxHeight="",this.spacing="",this.spacingTop="",this.spacingBottom=""}static __handleDocClick(t){const i=t.composedPath();for(const s of i){if(!(s instanceof Element))continue;const r=s.getAttribute("data-fact-card-toggle")||s.getAttribute("aria-controls");if(!r)continue;const o=e.__instances.get(r);if(!o){e.__instances.delete(r);continue}o.__lastTriggerEl=s,o.__setOpen(!o.open),t.stopPropagation();break}}static __ensureDocListener(){e.__docListenerAttached||(document.addEventListener("click",e.__handleDocClick,!0),e.__docListenerAttached=!0)}static __maybeRemoveDocListener(){e.__docListenerAttached&&e.__instances.size===0&&(document.removeEventListener("click",e.__handleDocClick,!0),e.__docListenerAttached=!1)}connectedCallback(){super.connectedCallback(),this.id&&e.__instances.set(this.id,this),e.__ensureDocListener()}disconnectedCallback(){this.id&&e.__instances.delete(this.id),e.__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"))&&u(this,p,h).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 i=this.open;this.open=t,t&&!i?this.dispatchEvent(new CustomEvent("open",{bubbles:!0,composed:!0})):!t&&i&&this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}render(){if(!this.open)return d``;const t=this.variant==="outlined"?"outlined":"filled",i=!!this.icon;return d`
|
|
3
3
|
<div class="outer ${i?"has-icon":""}">
|
|
4
|
-
${i?d`<div class="icon-wrapper ${
|
|
5
|
-
<div class="scb-fact-card ${
|
|
6
|
-
${this.showCloseButton?d
|
|
4
|
+
${i?d`<div class="icon-wrapper ${t}"><md-icon>${this.icon}</md-icon></div>`:""}
|
|
5
|
+
<div class="scb-fact-card ${t} ${this.showCloseButton?"has-close":""}">
|
|
6
|
+
${this.showCloseButton?d`
|
|
7
|
+
<scb-icon-button
|
|
8
|
+
variant="standard"
|
|
9
|
+
icon="close"
|
|
10
|
+
@click=${this.__onCloseClick}
|
|
11
|
+
></scb-icon-button>
|
|
12
|
+
`:""}
|
|
7
13
|
<div class="content">
|
|
8
14
|
<slot></slot>
|
|
9
15
|
</div>
|
|
10
16
|
</div>
|
|
11
17
|
</div>
|
|
12
|
-
`}async firstUpdated(){
|
|
18
|
+
`}async firstUpdated(){u(this,p,h).call(this),e.__iconLoaded||(await b(()=>import("../../vendor/vendor-material.js").then(t=>t.i),__vite__mapDeps([0,1]),import.meta.url),e.__iconLoaded=!0)}mapSpacingToken(t){if(!t)return;const i=String(t).trim();if(i)return/^\d+$/.test(i)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(i,10)))})`:i}};p=new WeakSet;h=function(){const t=this.mapSpacingToken(this.spacing),i=this.mapSpacingToken(this.spacingTop),s=this.mapSpacingToken(this.spacingBottom),r=i??t,o=s??t;r?this.style.setProperty("--scb-fact-card-spacing-block-start",r):this.style.removeProperty("--scb-fact-card-spacing-block-start"),o?this.style.setProperty("--scb-fact-card-spacing-block-end",o):this.style.removeProperty("--scb-fact-card-spacing-block-end")};e.__iconLoaded=!1;e.__instances=new Map;e.__docListenerAttached=!1;e.styles=f`
|
|
13
19
|
:host {
|
|
14
20
|
--scb-fact-card-icon-overhang: 40px;
|
|
15
21
|
display: block;
|
|
@@ -20,20 +26,22 @@ import{_ as h}from"../../vendor/preload-helper.js";import{a as p,n as r,i as u,x
|
|
|
20
26
|
max-inline-size: var(--scb-fact-card-max-w);
|
|
21
27
|
height: auto;
|
|
22
28
|
padding: 0;
|
|
29
|
+
margin-block-start: var(--scb-fact-card-spacing-block-start, 0);
|
|
30
|
+
margin-block-end: var(--scb-fact-card-spacing-block-end, 0);
|
|
23
31
|
}
|
|
24
32
|
|
|
25
|
-
:host([sizing=
|
|
33
|
+
:host([sizing='stretch']) {
|
|
26
34
|
inline-size: 100%;
|
|
27
35
|
block-size: 100%;
|
|
28
36
|
max-inline-size: none;
|
|
29
37
|
}
|
|
30
|
-
:host([sizing=
|
|
38
|
+
:host([sizing='content-width']) {
|
|
31
39
|
display: inline-block;
|
|
32
40
|
inline-size: auto;
|
|
33
41
|
block-size: auto;
|
|
34
42
|
max-inline-size: var(--scb-fact-card-max-w);
|
|
35
43
|
}
|
|
36
|
-
:host([sizing=
|
|
44
|
+
:host([sizing='content-height']) {
|
|
37
45
|
inline-size: 100%;
|
|
38
46
|
block-size: auto;
|
|
39
47
|
max-inline-size: none;
|
|
@@ -47,13 +55,13 @@ import{_ as h}from"../../vendor/preload-helper.js";import{a as p,n as r,i as u,x
|
|
|
47
55
|
padding-top: var(--_icon-pad);
|
|
48
56
|
box-sizing: border-box;
|
|
49
57
|
}
|
|
50
|
-
:host([sizing=
|
|
58
|
+
:host([sizing='content-width']) .outer {
|
|
51
59
|
inline-size: max-content;
|
|
52
60
|
}
|
|
53
61
|
|
|
54
62
|
:host([height]) .outer,
|
|
55
63
|
:host([max-height]) .outer,
|
|
56
|
-
:host([sizing=
|
|
64
|
+
:host([sizing='stretch']) .outer {
|
|
57
65
|
block-size: 100%;
|
|
58
66
|
}
|
|
59
67
|
|
|
@@ -74,16 +82,25 @@ import{_ as h}from"../../vendor/preload-helper.js";import{a as p,n as r,i as u,x
|
|
|
74
82
|
|
|
75
83
|
:host([height]) .scb-fact-card,
|
|
76
84
|
:host([max-height]) .scb-fact-card,
|
|
77
|
-
:host([sizing=
|
|
85
|
+
:host([sizing='stretch']) .scb-fact-card {
|
|
78
86
|
block-size: calc(100% - var(--_icon-pad));
|
|
79
87
|
}
|
|
80
88
|
|
|
81
|
-
.scb-fact-card.has-close {
|
|
89
|
+
.scb-fact-card.has-close {
|
|
90
|
+
padding-right: var(--spacing-12);
|
|
91
|
+
}
|
|
82
92
|
|
|
83
|
-
.scb-fact-card.outlined {
|
|
93
|
+
.scb-fact-card.outlined {
|
|
94
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
95
|
+
background: var(--md-sys-color-surface);
|
|
96
|
+
}
|
|
84
97
|
|
|
85
|
-
.outer.has-icon {
|
|
86
|
-
|
|
98
|
+
.outer.has-icon {
|
|
99
|
+
--_icon-pad: var(--scb-fact-card-icon-overhang);
|
|
100
|
+
}
|
|
101
|
+
.outer.has-icon .scb-fact-card {
|
|
102
|
+
border-top-left-radius: 0;
|
|
103
|
+
}
|
|
87
104
|
|
|
88
105
|
.icon-wrapper {
|
|
89
106
|
position: absolute;
|
|
@@ -94,7 +111,7 @@ import{_ as h}from"../../vendor/preload-helper.js";import{a as p,n as r,i as u,x
|
|
|
94
111
|
padding-bottom: 0;
|
|
95
112
|
width: fit-content;
|
|
96
113
|
border-radius: var(--md-sys-shape-corner-full) var(--md-sys-shape-corner-full) 0 0 /
|
|
97
|
-
|
|
114
|
+
var(--md-sys-shape-corner-full) var(--md-sys-shape-corner-full) 0 0;
|
|
98
115
|
background: var(--md-sys-color-surface-dim);
|
|
99
116
|
line-height: 0;
|
|
100
117
|
}
|
|
@@ -110,7 +127,9 @@ import{_ as h}from"../../vendor/preload-helper.js";import{a as p,n as r,i as u,x
|
|
|
110
127
|
top: var(--scale-01);
|
|
111
128
|
}
|
|
112
129
|
|
|
113
|
-
.scb-fact-card.clickable {
|
|
130
|
+
.scb-fact-card.clickable {
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
114
133
|
|
|
115
134
|
.content {
|
|
116
135
|
display: flex;
|
|
@@ -130,4 +149,4 @@ import{_ as h}from"../../vendor/preload-helper.js";import{a as p,n as r,i as u,x
|
|
|
130
149
|
overflow-wrap: normal;
|
|
131
150
|
hyphens: auto;
|
|
132
151
|
}
|
|
133
|
-
`;
|
|
152
|
+
`;n([a({type:String})],e.prototype,"variant",2);n([a({type:String,attribute:"title"})],e.prototype,"title",2);n([a({type:String,attribute:"subtitle"})],e.prototype,"subtitle",2);n([a({type:String,attribute:"supporting-text"})],e.prototype,"supportingText",2);n([a({type:String})],e.prototype,"icon",2);n([a({type:Boolean,attribute:"show-close-button"})],e.prototype,"showCloseButton",2);n([a({type:Boolean,reflect:!0})],e.prototype,"open",2);n([a({type:String,reflect:!0})],e.prototype,"sizing",2);n([a({type:String,reflect:!0})],e.prototype,"width",2);n([a({type:String,reflect:!0,attribute:"max-width"})],e.prototype,"maxWidth",2);n([a({type:String,reflect:!0})],e.prototype,"height",2);n([a({type:String,reflect:!0,attribute:"max-height"})],e.prototype,"maxHeight",2);n([a({type:String,reflect:!0})],e.prototype,"spacing",2);n([a({type:String,reflect:!0,attribute:"spacing-top"})],e.prototype,"spacingTop",2);n([a({type:String,reflect:!0,attribute:"spacing-bottom"})],e.prototype,"spacingBottom",2);e=n([_("scb-fact-card")],e);
|