scb-wc 0.1.78 → 0.1.80
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/README.md +41 -22
- package/all.js +0 -2
- package/index.js +88 -90
- package/mvc/components/all.js +0 -2
- package/mvc/components/scb-accordion/scb-accordion-item.js +3 -173
- package/mvc/components/scb-accordion/scb-accordion.js +4 -33
- package/mvc/components/scb-app-bar/scb-app-bar.js +2 -110
- package/mvc/components/scb-avatar/scb-avatar.js +2 -94
- package/mvc/components/scb-badge/scb-badge.js +2 -72
- package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +2 -12
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +4 -91
- package/mvc/components/scb-button/scb-button.js +47 -309
- package/mvc/components/scb-calendar/scb-calendar-event.js +2 -6
- package/mvc/components/scb-calendar/scb-calendar.js +6 -120
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +21 -350
- package/mvc/components/scb-card/scb-card.js +54 -819
- package/mvc/components/scb-checkbox/scb-checkbox-group.js +3 -31
- package/mvc/components/scb-checkbox/scb-checkbox.js +5 -127
- package/mvc/components/scb-chip/scb-chip.js +2 -76
- package/mvc/components/scb-collapse/scb-collapse.js +2 -44
- package/mvc/components/scb-cookies-consent/scb-cookies-consent.js +7 -73
- package/mvc/components/scb-dialog/scb-dialog.js +2 -213
- package/mvc/components/scb-divider/scb-divider.js +1 -69
- package/mvc/components/scb-drawer/scb-drawer.js +6 -102
- package/mvc/components/scb-drop-zone/scb-drop-zone.js +2 -410
- package/mvc/components/scb-dropdown/scb-dropdown.js +17 -222
- package/mvc/components/scb-fab/scb-fab.js +7 -95
- package/mvc/components/scb-fact-card/scb-fact-card-content.js +2 -69
- package/mvc/components/scb-fact-card/scb-fact-card.js +2 -214
- package/mvc/components/scb-footer/scb-footer-section.js +1 -3
- package/mvc/components/scb-footer/scb-footer.js +3 -172
- package/mvc/components/scb-gallery-grid/scb-gallery-grid.js +2 -112
- package/mvc/components/scb-grid/scb-grid-item.js +1 -32
- package/mvc/components/scb-grid/scb-grid.js +1 -99
- package/mvc/components/scb-grid/scb-stack.js +1 -33
- package/mvc/components/scb-header/scb-header-menu-item.js +1 -5
- package/mvc/components/scb-header/scb-header-tab.js +1 -5
- package/mvc/components/scb-header/scb-header.js +75 -888
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +43 -168
- package/mvc/components/scb-icon-button/scb-icon-button.js +59 -171
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +17 -218
- package/mvc/components/scb-link/scb-link.js +4 -55
- package/mvc/components/scb-list/scb-list-item.js +23 -126
- package/mvc/components/scb-list/scb-list.js +5 -26
- package/mvc/components/scb-menu/scb-menu-item.js +16 -190
- package/mvc/components/scb-menu/scb-menu-section.js +4 -36
- package/mvc/components/scb-menu/scb-menu.js +5 -69
- package/mvc/components/scb-menu/scb-sub-menu.js +2 -7
- package/mvc/components/scb-nav/scb-nav-item.js +1 -28
- package/mvc/components/scb-nav/scb-nav.js +5 -98
- package/mvc/components/scb-notification-card/scb-notification-card.js +7 -364
- package/mvc/components/scb-options-menu/scb-options-menu-item.js +3 -50
- package/mvc/components/scb-options-menu/scb-options-menu.js +2 -82
- package/mvc/components/scb-options-menu/scb-options-sub-menu.js +2 -31
- package/mvc/components/scb-overlay/scb-overlay.js +3 -43
- package/mvc/components/scb-pagination/scb-pagination.js +19 -221
- package/mvc/components/scb-progress-indicator/scb-progress-indicator.js +2 -67
- package/mvc/components/scb-progress-stepper/scb-progress-step.js +4 -121
- package/mvc/components/scb-progress-stepper/scb-progress-stepper.js +2 -56
- package/mvc/components/scb-radio-button/scb-radio-button.js +5 -116
- package/mvc/components/scb-radio-button/scb-radio-group.js +2 -32
- package/mvc/components/scb-scrollspy/scb-scrollspy.js +2 -61
- package/mvc/components/scb-search/scb-search.js +5 -249
- package/mvc/components/scb-segmented-button/scb-segmented-button.js +1 -32
- package/mvc/components/scb-segmented-button/scb-segmented-item.js +2 -70
- package/mvc/components/scb-select/scb-select-option.js +2 -54
- package/mvc/components/scb-select/scb-select.js +4 -244
- package/mvc/components/scb-skeleton/scb-skeleton.js +2 -35
- package/mvc/components/scb-slider/scb-slider.js +5 -9
- package/mvc/components/scb-snackbar/scb-snackbar.js +9 -84
- package/mvc/components/scb-status-pill/scb-status-pill.js +2 -43
- package/mvc/components/scb-stepper/scb-step.js +8 -186
- package/mvc/components/scb-stepper/scb-stepper.js +2 -130
- package/mvc/components/scb-switch/scb-switch.js +4 -49
- package/mvc/components/scb-table/scb-table.js +2 -48
- package/mvc/components/scb-table-advanced/scb-table-advanced.js +2 -53
- package/mvc/components/scb-tabs/scb-primary-tab.js +2 -7
- package/mvc/components/scb-tabs/scb-secondary-tab.js +2 -7
- package/mvc/components/scb-tabs/scb-tabs.js +4 -31
- package/mvc/components/scb-textfield/scb-textfield.js +142 -388
- package/mvc/components/scb-toc/scb-toc-item.js +3 -251
- package/mvc/components/scb-toc/scb-toc.js +2 -16
- package/mvc/components/scb-tooltip/scb-tooltip.js +8 -155
- package/mvc/components/scb-viz/scb-viz.js +4 -619
- package/mvc/scb-wc-core.css +1 -1
- package/mvc/scb-wc-selfhost.css +1 -1
- package/mvc/scb-wc.css +1 -1
- package/mvc/vendor/assist-chip.js +3 -3
- package/mvc/vendor/chip-set.js +1 -1
- package/mvc/vendor/chip.js +2 -2
- package/mvc/vendor/elevation.js +2 -2
- package/mvc/vendor/filter-chip.js +1 -1
- package/mvc/vendor/focusable.js +1 -1
- package/mvc/vendor/form-associated.js +1 -1
- package/mvc/vendor/icon.js +2 -2
- package/mvc/vendor/lazy-focus-ring.js +2 -0
- package/mvc/vendor/lazy-ripple.js +2 -0
- package/mvc/vendor/md-focus-ring.js +2 -2
- package/mvc/vendor/ripple.js +2 -2
- package/mvc/vendor/scb-card-variants.internal.js +284 -0
- package/mvc/vendor/scb-chevron.js +10 -0
- package/mvc/vendor/scb-header-drawer.internal.js +71 -0
- package/mvc/vendor/shared-styles.js +1 -1
- package/mvc/vendor/tab-styles.js +3 -3
- package/mvc/vendor/validator.js +1 -1
- package/mvc/vendor/vendor.js +3 -4
- package/package.json +2 -2
- package/scb-accordion/scb-accordion-item.js +33 -32
- package/scb-app-bar/scb-app-bar.js +1 -1
- package/scb-button/scb-button.js +287 -259
- package/scb-calendar/scb-calendar.js +49 -49
- package/scb-calendar-card/scb-calendar-card.js +105 -59
- package/scb-card/scb-card-variants.internal.js +230 -0
- package/scb-card/scb-card.js +387 -528
- package/scb-checkbox/scb-checkbox.js +0 -1
- package/scb-chevron/scb-chevron.js +0 -1
- package/scb-components/scb-button/scb-button.d.ts +14 -2
- package/scb-components/scb-calendar/scb-calendar.d.ts +1 -0
- package/scb-components/scb-calendar-card/scb-calendar-card.d.ts +16 -4
- package/scb-components/scb-card/scb-card-variants.internal.d.ts +15 -0
- package/scb-components/scb-card/scb-card.d.ts +26 -9
- package/scb-components/scb-cookies-consent/scb-cookies-consent.d.ts +3 -0
- package/scb-components/scb-header/scb-header-drawer.internal.d.ts +31 -0
- package/scb-components/scb-header/scb-header.d.ts +1 -2
- package/scb-components/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +6 -1
- package/scb-components/scb-icon-button/scb-icon-button.d.ts +28 -29
- package/scb-components/scb-keyfigure-card/scb-keyfigure-card.d.ts +13 -4
- package/scb-components/scb-list/scb-list-item.d.ts +20 -2
- package/scb-components/scb-list/scb-list.d.ts +1 -2
- package/scb-components/scb-nav/scb-nav.d.ts +2 -0
- package/scb-components/scb-segmented-button/scb-segmented-item.d.ts +1 -0
- package/scb-components/scb-select/scb-select-option.d.ts +2 -0
- package/scb-components/scb-toc/scb-toc-item.d.ts +1 -0
- package/scb-components/scb-tooltip/scb-tooltip.d.ts +2 -0
- package/scb-cookies-consent/scb-cookies-consent.js +43 -31
- package/scb-datepicker/scb-datepicker.js +27 -25
- package/scb-dialog/scb-dialog.js +1 -1
- package/scb-dropdown/scb-dropdown.js +29 -28
- package/scb-header/scb-header-drawer.internal.js +78 -0
- package/scb-header/scb-header.js +41 -89
- package/scb-horizontal-scroller/scb-horizontal-scroller.js +181 -88
- package/scb-icon-button/scb-icon-button.js +293 -205
- package/scb-keyfigure-card/scb-keyfigure-card.js +96 -43
- package/scb-list/scb-list-item.js +117 -52
- package/scb-list/scb-list.js +9 -9
- package/scb-nav/scb-nav.js +26 -23
- package/scb-notification-card/scb-notification-card.js +0 -2
- package/scb-options-menu/scb-options-menu-item.js +20 -20
- package/scb-pagination/scb-pagination.js +0 -1
- package/scb-progress-stepper/scb-progress-step.js +19 -17
- package/scb-radio-button/scb-radio-button.js +0 -1
- package/scb-search/scb-search.js +29 -28
- package/scb-segmented-button/scb-segmented-item.js +22 -19
- package/scb-select/scb-select-option.js +20 -14
- package/scb-select/scb-select.js +26 -26
- package/scb-stepper/scb-step.js +34 -31
- package/scb-textfield/scb-textfield.js +39 -39
- package/scb-toc/scb-toc-item.js +26 -26
- package/scb-tooltip/scb-tooltip.js +5 -4
- package/scb-viz/scb-viz.js +1 -1
- package/scb-wc-core.css +1 -1
- package/scb-wc-public-entry/index.d.ts +97 -0
- package/scb-wc-selfhost.css +1 -1
- package/scb-wc.bundle.js +1873 -1476
- package/scb-wc.css +1 -1
- package/scb-wc.d.ts +194 -198
- package/mvc/components/scb-chevron/scb-chevron.js +0 -41
- package/mvc/components/scb-datepicker/scb-datepicker.js +0 -296
- package/mvc/vendor/element-internals.js +0 -1
- package/mvc/vendor/filled-icon-button.js +0 -2
- package/mvc/vendor/filled-tonal-icon-button.js +0 -2
- package/mvc/vendor/form-label-activation.js +0 -1
- package/mvc/vendor/form-submitter.js +0 -1
- package/mvc/vendor/icon-button.js +0 -2
- package/mvc/vendor/list.js +0 -8
- package/mvc/vendor/outlined-icon-button.js +0 -2
- package/mvc/vendor/shared-styles2.js +0 -30
- package/scb-components/index.d.ts +0 -99
- package/scb-components/scb-chevron/scb-chevron.d.ts +0 -11
- package/scb-components/scb-datepicker/scb-datepicker.d.ts +0 -39
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{f as l,h as g,m as u,p as o,v as b,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 b`
|
|
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}
|
|
@@ -19,71 +19,4 @@ import{_ as g,b as u,g as b,h as l,m as o,y}from"../../vendor/vendor.js";import"
|
|
|
19
19
|
<div class="content links" ?hidden=${!this.__hasLinks}>
|
|
20
20
|
<slot @slotchange=${()=>this.__syncSlot("default")}></slot>
|
|
21
21
|
</div>
|
|
22
|
-
`}firstUpdated(){this.__syncAllSlots()}__syncAllSlots(){this.__syncSlot("heading"),this.__syncSlot("subtitle"),this.__syncSlot("supporting-text"),this.__syncSlot("default")}__syncSlot(t){const a=t==="default"?"slot:not([name])":`slot[name="${t}"]`,s=!!this.renderRoot.querySelector(a)?.assignedNodes({flatten:!0}).some(n=>n.nodeType===Node.TEXT_NODE?!!n.textContent?.trim():!0);if(t==="heading"){this.__hasHeading=s;return}if(t==="subtitle"){this.__hasSubtitle=s;return}if(t==="supporting-text"){this.__hasSupportingText=s;return}this.__hasLinks=s}},h.styles=u
|
|
23
|
-
:host {
|
|
24
|
-
display: flex;
|
|
25
|
-
flex-direction: column;
|
|
26
|
-
gap: var(--scb-fact-card-content-block-gap, var(--spacing-4, 12px));
|
|
27
|
-
width: 100%;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.label {
|
|
31
|
-
display: flex;
|
|
32
|
-
justify-content: space-between;
|
|
33
|
-
align-items: center;
|
|
34
|
-
font-size: var(--scb-fact-card-content-title-size, var(--md-sys-typescale-headline-small-size, 22px));
|
|
35
|
-
font-weight: var(--weight-bold, 700);
|
|
36
|
-
line-height: var(--scb-fact-card-content-title-line-height, var(--md-sys-typescale-headline-small-line-height, 28px));
|
|
37
|
-
letter-spacing: var(--scb-fact-card-content-title-letter-spacing, var(--md-sys-typescale-headline-small-tracking, -0.5px));
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.sub-label {
|
|
41
|
-
font-size: var(--scb-fact-card-content-subtitle-size, var(--md-sys-typescale-title-medium-size, 18px));
|
|
42
|
-
font-weight: var(--weight-semibold, 600);
|
|
43
|
-
line-height: var(--scb-fact-card-content-subtitle-line-height, var(--md-sys-typescale-title-medium-line-height, 26px));
|
|
44
|
-
letter-spacing: var(--scb-fact-card-content-subtitle-letter-spacing, var(--md-sys-typescale-title-medium-tracking, -0.3px));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.supporting-text {
|
|
48
|
-
font-size: var(--scb-fact-card-content-supporting-size, var(--md-sys-typescale-body-medium-size, 16px));
|
|
49
|
-
line-height: var(--scb-fact-card-content-supporting-line-height, var(--md-sys-typescale-body-medium-line-height, 24px));
|
|
50
|
-
letter-spacing: var(--scb-fact-card-content-supporting-letter-spacing, var(--md-sys-typescale-body-medium-tracking, -0.15px));
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.label ::slotted(*),
|
|
54
|
-
.sub-label ::slotted(*),
|
|
55
|
-
.supporting-text ::slotted(*) {
|
|
56
|
-
margin: 0;
|
|
57
|
-
}
|
|
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
|
-
|
|
71
|
-
.content.links ::slotted(*) {
|
|
72
|
-
margin-top: var(--scb-fact-card-content-links-offset, var(--spacing-3, 8px));
|
|
73
|
-
display: flex;
|
|
74
|
-
flex-direction: column;
|
|
75
|
-
gap: var(--scb-fact-card-content-links-gap, var(--spacing-3, 8px));
|
|
76
|
-
}
|
|
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);
|
|
22
|
+
`}firstUpdated(){this.__syncAllSlots()}__syncAllSlots(){this.__syncSlot("heading"),this.__syncSlot("subtitle"),this.__syncSlot("supporting-text"),this.__syncSlot("default")}__syncSlot(t){const a=t==="default"?"slot:not([name])":`slot[name="${t}"]`,s=!!this.renderRoot.querySelector(a)?.assignedNodes({flatten:!0}).some(n=>n.nodeType===Node.TEXT_NODE?!!n.textContent?.trim():!0);if(t==="heading"){this.__hasHeading=s;return}if(t==="subtitle"){this.__hasSubtitle=s;return}if(t==="supporting-text"){this.__hasSupportingText=s;return}this.__hasLinks=s}},h.styles=y`:host{display:flex;flex-direction:column;gap:var(--scb-fact-card-content-block-gap, var(--spacing-4, 12px));width:100%}.label{display:flex;justify-content:space-between;align-items:center;font-size:var(--scb-fact-card-content-title-size, var(--md-sys-typescale-headline-small-size, 22px));font-weight:var(--weight-bold, 700);line-height:var(--scb-fact-card-content-title-line-height, var(--md-sys-typescale-headline-small-line-height, 28px));letter-spacing:var(--scb-fact-card-content-title-letter-spacing, var(--md-sys-typescale-headline-small-tracking, -0.5px))}.sub-label{font-size:var(--scb-fact-card-content-subtitle-size, var(--md-sys-typescale-title-medium-size, 18px));font-weight:var(--weight-semibold, 600);line-height:var(--scb-fact-card-content-subtitle-line-height, var(--md-sys-typescale-title-medium-line-height, 26px));letter-spacing:var(--scb-fact-card-content-subtitle-letter-spacing, var(--md-sys-typescale-title-medium-tracking, -0.3px))}.supporting-text{font-size:var(--scb-fact-card-content-supporting-size, var(--md-sys-typescale-body-medium-size, 16px));line-height:var(--scb-fact-card-content-supporting-line-height, var(--md-sys-typescale-body-medium-line-height, 24px));letter-spacing:var(--scb-fact-card-content-supporting-letter-spacing, var(--md-sys-typescale-body-medium-tracking, -0.15px))}.label ::slotted(*),.sub-label ::slotted(*),.supporting-text ::slotted(*){margin:0}.supporting-text ::slotted(a){font-size:var(--scb-fact-card-content-supporting-size, var(--md-sys-typescale-body-medium-size, 16px));line-height:var(--scb-fact-card-content-supporting-line-height, var(--md-sys-typescale-body-medium-line-height, 24px));letter-spacing:var(--scb-fact-card-content-supporting-letter-spacing, var(--md-sys-typescale-body-medium-tracking, -0.15px))}.supporting-text ::slotted(scb-link){--scb-link-font-size:var(--scb-fact-card-content-supporting-size, var(--md-sys-typescale-body-medium-size, 16px));--scb-link-line-height:var(--scb-fact-card-content-supporting-line-height, var(--md-sys-typescale-body-medium-line-height, 24px));--scb-link-letter-spacing:var(--scb-fact-card-content-supporting-letter-spacing, var(--md-sys-typescale-body-medium-tracking, -0.15px))}.content.links ::slotted(*){margin-top:var(--scb-fact-card-content-links-offset, var(--spacing-3, 8px));display:flex;flex-direction:column;gap:var(--scb-fact-card-content-links-gap, var(--spacing-3, 8px))}.content.links ::slotted(a){font-size:var(--scb-fact-card-content-link-size, var(--scb-fact-card-content-supporting-size, var(--md-sys-typescale-body-medium-size, 16px)));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)));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)))}.content.links ::slotted(scb-link){--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)));--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)));--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)))}`,h);function m(){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([l()],e.prototype,"__hasHeading",void 0);i([l()],e.prototype,"__hasSubtitle",void 0);i([l()],e.prototype,"__hasSupportingText",void 0);i([l()],e.prototype,"__hasLinks",void 0);e=i([u("scb-fact-card-content")],e);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/icon.js","../../vendor/rolldown-runtime.js","../../vendor/vendor.js","../../vendor/vendor-lit.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{
|
|
2
|
+
import{f,h as u,m as y,p as a,v as h,y as v}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as _}from"../../vendor/preload-helper.js";import{t as s}from"../../vendor/decorate.js";import{n as x,t as b}from"../../vendor/assertClassBrand.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(p){var o=String(p||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw p}}}}catch{}})();var g,l,c,z={fromAttribute:n=>n??"",toAttribute:n=>typeof n!="string"||n.trim()===""?null:n},i=(g=new WeakSet,l=class extends u{constructor(...t){super(...t),x(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,216 +19,4 @@ import{_ as f,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,m).call(this),c.__iconLoaded||(await
|
|
23
|
-
:host {
|
|
24
|
-
--scb-fact-card-icon-overhang: 40px;
|
|
25
|
-
display: block;
|
|
26
|
-
position: relative;
|
|
27
|
-
box-sizing: border-box;
|
|
28
|
-
inline-size: 100%;
|
|
29
|
-
min-inline-size: 0;
|
|
30
|
-
max-inline-size: var(--scb-fact-card-max-w, none);
|
|
31
|
-
height: auto;
|
|
32
|
-
padding: 0;
|
|
33
|
-
margin-block-start: var(--scb-fact-card-spacing-block-start, 0);
|
|
34
|
-
margin-block-end: var(--scb-fact-card-spacing-block-end, 0);
|
|
35
|
-
margin-inline-start: var(--scb-fact-card-spacing-inline-start, 0);
|
|
36
|
-
margin-inline-end: var(--scb-fact-card-spacing-inline-end, 0);
|
|
37
|
-
|
|
38
|
-
--scb-fact-card-padding: var(--spacing-7, 24px);
|
|
39
|
-
--scb-fact-card-content-gap: var(--spacing-8, 32px);
|
|
40
|
-
--scb-fact-card-close-padding-right: var(--spacing-12, 80px);
|
|
41
|
-
--scb-fact-card-icon-padding-block: var(--spacing-5, 16px);
|
|
42
|
-
--scb-fact-card-icon-padding-inline: var(--spacing-7, 24px);
|
|
43
|
-
|
|
44
|
-
--scb-fact-card-content-title-size: var(--md-sys-typescale-headline-small-size, 22px);
|
|
45
|
-
--scb-fact-card-content-title-line-height: var(--md-sys-typescale-headline-small-line-height, 28px);
|
|
46
|
-
--scb-fact-card-content-title-letter-spacing: var(--md-sys-typescale-headline-small-tracking, -0.5px);
|
|
47
|
-
|
|
48
|
-
--scb-fact-card-content-subtitle-size: var(--md-sys-typescale-title-medium-size, 18px);
|
|
49
|
-
--scb-fact-card-content-subtitle-line-height: var(--md-sys-typescale-title-medium-line-height, 26px);
|
|
50
|
-
--scb-fact-card-content-subtitle-letter-spacing: var(--md-sys-typescale-title-medium-tracking, -0.3px);
|
|
51
|
-
|
|
52
|
-
--scb-fact-card-content-supporting-size: var(--md-sys-typescale-body-medium-size, 16px);
|
|
53
|
-
--scb-fact-card-content-supporting-line-height: var(--md-sys-typescale-body-medium-line-height, 24px);
|
|
54
|
-
--scb-fact-card-content-supporting-letter-spacing: var(--md-sys-typescale-body-medium-tracking, -0.15px);
|
|
55
|
-
|
|
56
|
-
--scb-fact-card-content-links-gap: var(--spacing-3, 8px);
|
|
57
|
-
--scb-fact-card-content-links-offset: var(--spacing-3, 8px);
|
|
58
|
-
--scb-fact-card-content-block-gap: var(--spacing-4, 12px);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:host([size='medium']) {
|
|
62
|
-
--scb-fact-card-icon-overhang: 36px;
|
|
63
|
-
--scb-fact-card-padding: var(--spacing-6, 20px);
|
|
64
|
-
--scb-fact-card-content-gap: var(--spacing-6, 20px);
|
|
65
|
-
--scb-fact-card-close-padding-right: var(--spacing-11, 64px);
|
|
66
|
-
--scb-fact-card-icon-padding-block: var(--spacing-4, 12px);
|
|
67
|
-
--scb-fact-card-icon-padding-inline: var(--spacing-6, 20px);
|
|
68
|
-
|
|
69
|
-
--scb-fact-card-content-title-size: var(--md-sys-typescale-title-large-size, 20px);
|
|
70
|
-
--scb-fact-card-content-title-line-height: var(--md-sys-typescale-title-large-line-height, 28px);
|
|
71
|
-
--scb-fact-card-content-title-letter-spacing: var(--md-sys-typescale-title-large-tracking, -0.3px);
|
|
72
|
-
|
|
73
|
-
--scb-fact-card-content-subtitle-size: var(--md-sys-typescale-title-small-size, 16px);
|
|
74
|
-
--scb-fact-card-content-subtitle-line-height: var(--md-sys-typescale-title-small-line-height, 24px);
|
|
75
|
-
--scb-fact-card-content-subtitle-letter-spacing: var(--md-sys-typescale-title-small-tracking, -0.2px);
|
|
76
|
-
|
|
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
|
-
|
|
81
|
-
--scb-fact-card-content-links-gap: var(--spacing-2, 4px);
|
|
82
|
-
--scb-fact-card-content-links-offset: var(--spacing-2, 4px);
|
|
83
|
-
--scb-fact-card-content-block-gap: var(--spacing-3, 8px);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
:host([size='small']) {
|
|
87
|
-
--scb-fact-card-icon-overhang: 32px;
|
|
88
|
-
--scb-fact-card-padding: var(--spacing-5, 16px);
|
|
89
|
-
--scb-fact-card-content-gap: var(--spacing-5, 16px);
|
|
90
|
-
--scb-fact-card-close-padding-right: var(--spacing-10, 56px);
|
|
91
|
-
--scb-fact-card-icon-padding-block: var(--spacing-3, 8px);
|
|
92
|
-
--scb-fact-card-icon-padding-inline: var(--spacing-5, 16px);
|
|
93
|
-
|
|
94
|
-
--scb-fact-card-content-title-size: var(--md-sys-typescale-title-medium-size, 18px);
|
|
95
|
-
--scb-fact-card-content-title-line-height: var(--md-sys-typescale-title-medium-line-height, 26px);
|
|
96
|
-
--scb-fact-card-content-title-letter-spacing: var(--md-sys-typescale-title-medium-tracking, -0.3px);
|
|
97
|
-
|
|
98
|
-
--scb-fact-card-content-subtitle-size: var(--md-sys-typescale-body-medium-size, 16px);
|
|
99
|
-
--scb-fact-card-content-subtitle-line-height: var(--md-sys-typescale-body-medium-line-height, 24px);
|
|
100
|
-
--scb-fact-card-content-subtitle-letter-spacing: var(--md-sys-typescale-body-medium-tracking, -0.15px);
|
|
101
|
-
|
|
102
|
-
--scb-fact-card-content-supporting-size: var(--md-sys-typescale-body-small-size, 14px);
|
|
103
|
-
--scb-fact-card-content-supporting-line-height: var(--md-sys-typescale-body-small-line-height, 20px);
|
|
104
|
-
--scb-fact-card-content-supporting-letter-spacing: var(--md-sys-typescale-body-small-tracking, -0.1px);
|
|
105
|
-
|
|
106
|
-
--scb-fact-card-content-links-gap: var(--spacing-2, 4px);
|
|
107
|
-
--scb-fact-card-content-links-offset: var(--spacing-2, 4px);
|
|
108
|
-
--scb-fact-card-content-block-gap: var(--spacing-2, 4px);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
:host([sizing='stretch']) {
|
|
112
|
-
inline-size: 100%;
|
|
113
|
-
block-size: 100%;
|
|
114
|
-
max-inline-size: none;
|
|
115
|
-
}
|
|
116
|
-
:host([sizing='content-width']) {
|
|
117
|
-
display: inline-block;
|
|
118
|
-
inline-size: auto;
|
|
119
|
-
block-size: auto;
|
|
120
|
-
max-inline-size: var(--scb-fact-card-max-w, none);
|
|
121
|
-
}
|
|
122
|
-
:host([sizing='content-height']) {
|
|
123
|
-
inline-size: 100%;
|
|
124
|
-
block-size: auto;
|
|
125
|
-
max-inline-size: none;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.outer {
|
|
129
|
-
position: relative;
|
|
130
|
-
inline-size: 100%;
|
|
131
|
-
max-inline-size: 100%;
|
|
132
|
-
--_icon-pad: 0px;
|
|
133
|
-
padding-top: var(--_icon-pad);
|
|
134
|
-
box-sizing: border-box;
|
|
135
|
-
}
|
|
136
|
-
:host([sizing='content-width']) .outer {
|
|
137
|
-
inline-size: max-content;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
:host([height]) .outer,
|
|
141
|
-
:host([max-height]) .outer,
|
|
142
|
-
:host([sizing='stretch']) .outer {
|
|
143
|
-
block-size: 100%;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
.scb-fact-card {
|
|
147
|
-
color: var(--md-sys-color-on-surface, #0F0865);
|
|
148
|
-
font-family: var(--brand-font, "Inter", sans-serif);
|
|
149
|
-
position: relative;
|
|
150
|
-
border-radius: var(--md-sys-shape-corner-large, 16px);
|
|
151
|
-
background: var(--md-sys-color-surface-dim, #F9F8EF);
|
|
152
|
-
padding: var(--scb-fact-card-padding);
|
|
153
|
-
box-sizing: border-box;
|
|
154
|
-
inline-size: 100%;
|
|
155
|
-
max-inline-size: 100%;
|
|
156
|
-
min-inline-size: 0;
|
|
157
|
-
overflow: hidden;
|
|
158
|
-
block-size: auto;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
:host([height]) .scb-fact-card,
|
|
162
|
-
:host([max-height]) .scb-fact-card,
|
|
163
|
-
:host([sizing='stretch']) .scb-fact-card {
|
|
164
|
-
block-size: calc(100% - var(--_icon-pad));
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.scb-fact-card.has-close {
|
|
168
|
-
padding-right: var(--scb-fact-card-close-padding-right);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
.scb-fact-card.outlined {
|
|
172
|
-
border: 1px solid var(--md-sys-color-outline, #808080);
|
|
173
|
-
background: var(--md-sys-color-surface, #FFFFFF);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.outer.has-icon {
|
|
177
|
-
--_icon-pad: var(--scb-fact-card-icon-overhang);
|
|
178
|
-
}
|
|
179
|
-
.outer.has-icon .scb-fact-card {
|
|
180
|
-
border-top-left-radius: 0;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.icon-wrapper {
|
|
184
|
-
position: absolute;
|
|
185
|
-
z-index: 1;
|
|
186
|
-
top: 0;
|
|
187
|
-
left: 0;
|
|
188
|
-
padding: var(--scb-fact-card-icon-padding-block) var(--scb-fact-card-icon-padding-inline);
|
|
189
|
-
padding-bottom: 0;
|
|
190
|
-
width: fit-content;
|
|
191
|
-
border-radius: var(--md-sys-shape-corner-full, 1000px) var(--md-sys-shape-corner-full, 1000px) 0 0 /
|
|
192
|
-
var(--md-sys-shape-corner-full, 1000px) var(--md-sys-shape-corner-full, 1000px) 0 0;
|
|
193
|
-
background: var(--md-sys-color-surface-dim, #F9F8EF);
|
|
194
|
-
line-height: 0;
|
|
195
|
-
}
|
|
196
|
-
.icon-wrapper.outlined {
|
|
197
|
-
border: var(--stroke-border, 1px) solid var(--md-sys-color-outline, #808080);
|
|
198
|
-
border-bottom: none;
|
|
199
|
-
background: var(--md-sys-color-surface, #FFFFFF);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
scb-icon-button {
|
|
203
|
-
position: absolute;
|
|
204
|
-
right: var(--scale-01, 12px);
|
|
205
|
-
top: var(--scale-01, 12px);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.icon-wrapper ::slotted(*) {
|
|
209
|
-
margin: 0;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.scb-fact-card.clickable {
|
|
213
|
-
cursor: pointer;
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.content {
|
|
217
|
-
display: flex;
|
|
218
|
-
flex-direction: column;
|
|
219
|
-
gap: var(--scb-fact-card-content-gap);
|
|
220
|
-
inline-size: 100%;
|
|
221
|
-
min-inline-size: 0;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
.content .label,
|
|
225
|
-
.content .sub-label,
|
|
226
|
-
.content .supporting-text {
|
|
227
|
-
white-space: normal;
|
|
228
|
-
overflow: visible;
|
|
229
|
-
text-overflow: clip;
|
|
230
|
-
word-break: normal;
|
|
231
|
-
overflow-wrap: normal;
|
|
232
|
-
hyphens: auto;
|
|
233
|
-
}
|
|
234
|
-
`,l);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,p=e??n;o?this.style.setProperty("--scb-fact-card-spacing-block-start",o):this.style.removeProperty("--scb-fact-card-spacing-block-start"),p?this.style.setProperty("--scb-fact-card-spacing-block-end",p):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);
|
|
22
|
+
`}async firstUpdated(){b(g,this,m).call(this),c.__iconLoaded||(await _(()=>import("../../vendor/icon.js").then(t=>t.t),__vite__mapDeps([0,1,2,3]),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=l,l.__iconLoaded=!1,l.__instances=new Map,l.__docListenerAttached=!1,l.styles=v`:host{--scb-fact-card-icon-overhang:40px;display:block;position:relative;box-sizing:border-box;inline-size:100%;min-inline-size:0;max-inline-size:var(--scb-fact-card-max-w, none);height:auto;padding:0;margin-block-start:var(--scb-fact-card-spacing-block-start, 0);margin-block-end:var(--scb-fact-card-spacing-block-end, 0);margin-inline-start:var(--scb-fact-card-spacing-inline-start, 0);margin-inline-end:var(--scb-fact-card-spacing-inline-end, 0);--scb-fact-card-padding:var(--spacing-7, 24px);--scb-fact-card-content-gap:var(--spacing-8, 32px);--scb-fact-card-close-padding-right:var(--spacing-12, 80px);--scb-fact-card-icon-padding-block:var(--spacing-5, 16px);--scb-fact-card-icon-padding-inline:var(--spacing-7, 24px);--scb-fact-card-content-title-size:var(--md-sys-typescale-headline-small-size, 22px);--scb-fact-card-content-title-line-height:var(--md-sys-typescale-headline-small-line-height, 28px);--scb-fact-card-content-title-letter-spacing:var(--md-sys-typescale-headline-small-tracking, -0.5px);--scb-fact-card-content-subtitle-size:var(--md-sys-typescale-title-medium-size, 18px);--scb-fact-card-content-subtitle-line-height:var(--md-sys-typescale-title-medium-line-height, 26px);--scb-fact-card-content-subtitle-letter-spacing:var(--md-sys-typescale-title-medium-tracking, -0.3px);--scb-fact-card-content-supporting-size:var(--md-sys-typescale-body-medium-size, 16px);--scb-fact-card-content-supporting-line-height:var(--md-sys-typescale-body-medium-line-height, 24px);--scb-fact-card-content-supporting-letter-spacing:var(--md-sys-typescale-body-medium-tracking, -0.15px);--scb-fact-card-content-links-gap:var(--spacing-3, 8px);--scb-fact-card-content-links-offset:var(--spacing-3, 8px);--scb-fact-card-content-block-gap:var(--spacing-4, 12px)}:host([size='medium']),:host([size='small']){--scb-fact-card-content-links-gap:var(--spacing-2, 4px);--scb-fact-card-content-links-offset:var(--spacing-2, 4px)}:host([size='medium']){--scb-fact-card-icon-overhang:36px;--scb-fact-card-padding:var(--spacing-6, 20px);--scb-fact-card-content-gap:var(--spacing-6, 20px);--scb-fact-card-close-padding-right:var(--spacing-11, 64px);--scb-fact-card-icon-padding-block:var(--spacing-4, 12px);--scb-fact-card-icon-padding-inline:var(--spacing-6, 20px);--scb-fact-card-content-title-size:var(--md-sys-typescale-title-large-size, 20px);--scb-fact-card-content-title-line-height:var(--md-sys-typescale-title-large-line-height, 28px);--scb-fact-card-content-title-letter-spacing:var(--md-sys-typescale-title-large-tracking, -0.3px);--scb-fact-card-content-subtitle-size:var(--md-sys-typescale-title-small-size, 16px);--scb-fact-card-content-subtitle-line-height:var(--md-sys-typescale-title-small-line-height, 24px);--scb-fact-card-content-subtitle-letter-spacing:var(--md-sys-typescale-title-small-tracking, -0.2px);--scb-fact-card-content-supporting-size:var(--md-sys-typescale-body-medium-size, 16px);--scb-fact-card-content-supporting-line-height:var(--md-sys-typescale-body-medium-line-height, 24px);--scb-fact-card-content-supporting-letter-spacing:var(--md-sys-typescale-body-medium-tracking, -0.15px);--scb-fact-card-content-block-gap:var(--spacing-3, 8px)}:host([size='small']){--scb-fact-card-icon-overhang:32px;--scb-fact-card-padding:var(--spacing-5, 16px);--scb-fact-card-content-gap:var(--spacing-5, 16px);--scb-fact-card-close-padding-right:var(--spacing-10, 56px);--scb-fact-card-icon-padding-block:var(--spacing-3, 8px);--scb-fact-card-icon-padding-inline:var(--spacing-5, 16px);--scb-fact-card-content-title-size:var(--md-sys-typescale-title-medium-size, 18px);--scb-fact-card-content-title-line-height:var(--md-sys-typescale-title-medium-line-height, 26px);--scb-fact-card-content-title-letter-spacing:var(--md-sys-typescale-title-medium-tracking, -0.3px);--scb-fact-card-content-subtitle-size:var(--md-sys-typescale-body-medium-size, 16px);--scb-fact-card-content-subtitle-line-height:var(--md-sys-typescale-body-medium-line-height, 24px);--scb-fact-card-content-subtitle-letter-spacing:var(--md-sys-typescale-body-medium-tracking, -0.15px);--scb-fact-card-content-supporting-size:var(--md-sys-typescale-body-small-size, 14px);--scb-fact-card-content-supporting-line-height:var(--md-sys-typescale-body-small-line-height, 20px);--scb-fact-card-content-supporting-letter-spacing:var(--md-sys-typescale-body-small-tracking, -0.1px);--scb-fact-card-content-block-gap:var(--spacing-2, 4px)}:host([sizing='stretch']){inline-size:100%;block-size:100%;max-inline-size:none}:host([sizing='content-width']){display:inline-block;inline-size:auto;block-size:auto;max-inline-size:var(--scb-fact-card-max-w, none)}:host([sizing='content-height']){inline-size:100%;block-size:auto;max-inline-size:none}.outer{position:relative;inline-size:100%;max-inline-size:100%;--_icon-pad:0px;padding-top:var(--_icon-pad);box-sizing:border-box}:host([sizing='content-width']) .outer{inline-size:max-content}:host([height]) .outer,:host([max-height]) .outer,:host([sizing='stretch']) .outer{block-size:100%}.scb-fact-card{color:var(--md-sys-color-on-surface, #0F0865);font-family:var(--brand-font, "Inter", sans-serif);position:relative;border-radius:var(--md-sys-shape-corner-large, 16px);background:var(--md-sys-color-surface-dim, #F9F8EF);padding:var(--scb-fact-card-padding);box-sizing:border-box;inline-size:100%;max-inline-size:100%;min-inline-size:0;overflow:hidden;block-size:auto}:host([height]) .scb-fact-card,:host([max-height]) .scb-fact-card,:host([sizing='stretch']) .scb-fact-card{block-size:calc(100% - var(--_icon-pad))}.scb-fact-card.has-close{padding-right:var(--scb-fact-card-close-padding-right)}.scb-fact-card.outlined{border:1px solid var(--md-sys-color-outline, #808080);background:var(--md-sys-color-surface, #FFFFFF)}.outer.has-icon{--_icon-pad:var(--scb-fact-card-icon-overhang)}.outer.has-icon .scb-fact-card{border-top-left-radius:0}.icon-wrapper{position:absolute;z-index:1;top:0;left:0;padding:var(--scb-fact-card-icon-padding-block) var(--scb-fact-card-icon-padding-inline);padding-bottom:0;width:fit-content;border-radius:var(--md-sys-shape-corner-full, 1000px) var(--md-sys-shape-corner-full, 1000px)0 0/var(--md-sys-shape-corner-full, 1000px) var(--md-sys-shape-corner-full, 1000px)0 0;background:var(--md-sys-color-surface-dim, #F9F8EF);line-height:0}.icon-wrapper.outlined{border:var(--stroke-border, 1px) solid var(--md-sys-color-outline, #808080);border-bottom:none;background:var(--md-sys-color-surface, #FFFFFF)}scb-icon-button{position:absolute;right:var(--scale-01, 12px);top:var(--scale-01, 12px)}.icon-wrapper ::slotted(*){margin:0}.scb-fact-card.clickable{cursor:pointer}.content{display:flex;flex-direction:column;gap:var(--scb-fact-card-content-gap);inline-size:100%;min-inline-size:0}.content .label,.content .sub-label,.content .supporting-text{white-space:normal;overflow:visible;text-overflow:clip;word-break:normal;overflow-wrap:normal;hyphens:auto}`,l);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,p=e??n;o?this.style.setProperty("--scb-fact-card-spacing-block-start",o):this.style.removeProperty("--scb-fact-card-spacing-block-start"),p?this.style.setProperty("--scb-fact-card-spacing-block-end",p):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([f()],i.prototype,"__hasIconSlot",void 0);s([a({type:Boolean,reflect:!0})],i.prototype,"open",void 0);s([a({type:String,reflect:!0,converter:z})],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,3 +1 @@
|
|
|
1
|
-
import{
|
|
2
|
-
:host { display: none; }
|
|
3
|
-
`,r);c([f({type:String,reflect:!0})],s.prototype,"title",void 0);s=c([u("scb-footer-section")],s);
|
|
1
|
+
import{h as d,m as _,p as u,v as f,y as m}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as c}from"../../vendor/decorate.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(o,a,l){try{customElements.get(o)||e(o,a,l)}catch(n){var i=String(n||"");if(i.indexOf("already been used")===-1&&i.indexOf("NotSupportedError")===-1)throw n}}}}catch{}})();var r,s=(r=class extends d{constructor(...e){super(...e),this.title=""}render(){return f`<slot></slot>`}},r.styles=m`:host{display:none}`,r);c([u({type:String,reflect:!0})],s.prototype,"title",void 0);s=c([_("scb-footer-section")],s);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as N,m as B,p as g,v as b,y as M}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as d}from"../../vendor/decorate.js";import{n as P,t as s}from"../../vendor/assertClassBrand.js";import{n as o,r as x,t as h}from"../../vendor/classPrivateFieldGet2.js";import"../scb-link/scb-link.js";import"./scb-footer-section.js";import"../scb-grid/scb-grid-item.js";import"../scb-grid/scb-grid.js";(function(){try{var e=typeof globalThis<"u"?globalThis:window;if(!e.__scb_ce_guard_installed__){e.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(a,n,i){try{customElements.get(a)||t(a,n,i)}catch(v){var l=String(v||"");if(l.indexOf("already been used")===-1&&l.indexOf("NotSupportedError")===-1)throw v}}}}catch{}})();var p,m,f,u,r,y,O={fromAttribute(e){if(e===null)return!1;const t=e.trim().toLowerCase();return t!=="false"&&t!=="0"&&t!=="no"}},c=(p=new WeakMap,m=new WeakMap,f=new WeakMap,u=new WeakMap,r=new WeakSet,y=class extends N{constructor(...t){super(...t),P(this,r),x(this,p,void 0),x(this,m,void 0),x(this,f,void 0),x(this,u,void 0),this.maxWidth="1440px",this.deferPaint=!1,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.sections=[],this.description="Statistikmyndigheten SCB förser samhället med statistik för beslutsfattande, debatt och forskning.",o(p,this,null),o(m,this,""),o(u,this,!1)}connectedCallback(){super.connectedCallback(),this.style.setProperty("--scb-footer-max-width",this.maxWidth),s(r,this,_).call(this),s(r,this,$).call(this,!0),s(r,this,T).call(this)}updated(t){t.has("maxWidth")&&this.style.setProperty("--scb-footer-max-width",this.maxWidth),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom"))&&s(r,this,_).call(this)}disconnectedCallback(){super.disconnectedCallback(),h(f,this)?.disconnect()}render(){const t=W.call(s(r,this));return b`
|
|
2
2
|
<footer class="outer" role="contentinfo">
|
|
3
3
|
<nav aria-label="Sidfot med länkar">
|
|
4
4
|
<scb-grid
|
|
@@ -28,176 +28,7 @@ import{_ as N,b as B,g as M,h as g,y as b}from"../../vendor/vendor.js";import"..
|
|
|
28
28
|
</div>
|
|
29
29
|
</div>
|
|
30
30
|
</footer>
|
|
31
|
-
`}},y.styles=
|
|
32
|
-
:host {
|
|
33
|
-
display: block;
|
|
34
|
-
color: var(--p-100);
|
|
35
|
-
background: var(--scb-footer-bg, var(--p-20));
|
|
36
|
-
margin-block-start: var(--scb-footer-spacing-block-start, 0);
|
|
37
|
-
margin-block-end: var(--scb-footer-spacing-block-end, 0);
|
|
38
|
-
/* Token för loggans bredd och proportion i footer */
|
|
39
|
-
--scb-footer-logo-w: 48px;
|
|
40
|
-
--scb-footer-logo-aspect: 48 / 54;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.outer {
|
|
44
|
-
display: flex;
|
|
45
|
-
flex-direction: column;
|
|
46
|
-
align-items: center;
|
|
47
|
-
padding: var(--spacing-10, 48px) 0 var(--spacing-5, 16px);
|
|
48
|
-
gap: var(--spacing-4, 12px);
|
|
49
|
-
align-self: stretch;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
:host([defer-paint]) .outer {
|
|
53
|
-
content-visibility: auto;
|
|
54
|
-
contain-intrinsic-size: var(--scb-footer-cis, 560px);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
nav { width: 100%; }
|
|
58
|
-
|
|
59
|
-
scb-grid {
|
|
60
|
-
--scb-grid-padding-inline: var(--spacing-8, 32px);
|
|
61
|
-
--scb-grid-row-gap: var(--spacing-9, 40px);
|
|
62
|
-
--scb-grid-column-gap: var(--spacing-9, 40px);
|
|
63
|
-
--scb-grid-gap: var(--spacing-9, 40px) var(--spacing-9, 40px);
|
|
64
|
-
--scb-grid-max-width: var(--scb-footer-max-width, 1440px);
|
|
65
|
-
}
|
|
66
|
-
@media (max-width: 839.98px) {
|
|
67
|
-
scb-grid { --scb-grid-row-gap: var(--spacing-11, 64px); }
|
|
68
|
-
}
|
|
69
|
-
@media (min-width: 840px) {
|
|
70
|
-
scb-grid { --scb-grid-row-gap: var(--spacing-11, 64px); }
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.group {
|
|
74
|
-
display: flex;
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
gap: var(--spacing-7, 24px);
|
|
77
|
-
min-width: 248px;
|
|
78
|
-
flex: 1 0 0;
|
|
79
|
-
align-self: stretch;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@media (min-width: 840px) {
|
|
83
|
-
.group--centered {
|
|
84
|
-
flex: 0 1 248px;
|
|
85
|
-
min-width: 248px;
|
|
86
|
-
max-width: 320px;
|
|
87
|
-
align-items: center;
|
|
88
|
-
text-align: center;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.group--centered .title {
|
|
92
|
-
text-align: center;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.group--centered ul {
|
|
96
|
-
align-items: center;
|
|
97
|
-
text-align: center;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.group--centered scb-link::part(anchor) {
|
|
101
|
-
text-align: center;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
@media (min-width: 840px) {
|
|
106
|
-
.center-row {
|
|
107
|
-
display: flex;
|
|
108
|
-
align-items: start;
|
|
109
|
-
justify-content: center;
|
|
110
|
-
flex-wrap: wrap;
|
|
111
|
-
gap: var(--spacing-9, 40px);
|
|
112
|
-
width: fit-content;
|
|
113
|
-
max-width: 100%;
|
|
114
|
-
margin-inline: auto;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
@media (max-width: 599px) {
|
|
119
|
-
scb-grid-item:nth-child(n+2) .group { margin-top: var(--spacing-7, 24px); }
|
|
120
|
-
}
|
|
121
|
-
@media (min-width: 600px) and (max-width: 839px) {
|
|
122
|
-
scb-grid-item:nth-child(n+3) .group { margin-top: var(--spacing-7, 24px); }
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.title {
|
|
126
|
-
margin: 0;
|
|
127
|
-
color: var(--p-100);
|
|
128
|
-
font-family: var(--brand-font);
|
|
129
|
-
font-size: var(--md-sys-typescale-title-medium-size);
|
|
130
|
-
line-height: var(--md-sys-typescale-title-medium-line-height);
|
|
131
|
-
letter-spacing: var(--md-sys-typescale-title-medium-tracking);
|
|
132
|
-
font-weight: var(--weight-semibold);
|
|
133
|
-
align-self: stretch;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
ul {
|
|
137
|
-
list-style: none;
|
|
138
|
-
margin: 0;
|
|
139
|
-
padding: 0;
|
|
140
|
-
display: flex;
|
|
141
|
-
flex-direction: column;
|
|
142
|
-
gap: var(--spacing-5, 16px);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
scb-link {
|
|
146
|
-
--scb-link-color: var(--p-100);
|
|
147
|
-
--scb-link-visited-color: var(--p-100);
|
|
148
|
-
}
|
|
149
|
-
scb-link::part(anchor) {
|
|
150
|
-
font-family: var(--brand-font);
|
|
151
|
-
font-size: var(--md-sys-typescale-body-medium-size);
|
|
152
|
-
line-height: var(--md-sys-typescale-body-medium-line-height);
|
|
153
|
-
font-weight: var(--weight-regular);
|
|
154
|
-
letter-spacing: var(--md-sys-typescale-body-medium-tracking, -0.15px);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
.brand {
|
|
158
|
-
display: flex;
|
|
159
|
-
flex-direction: column;
|
|
160
|
-
align-items: center;
|
|
161
|
-
align-self: stretch;
|
|
162
|
-
padding: var(--spacing-9, 40px) var(--spacing-8, 32px);
|
|
163
|
-
gap: var(--spacing-5, 16px);
|
|
164
|
-
}
|
|
165
|
-
.brand-inner {
|
|
166
|
-
width: 100%;
|
|
167
|
-
max-width: var(--scb-footer-max-width, 1440px);
|
|
168
|
-
display: flex;
|
|
169
|
-
flex-direction: column;
|
|
170
|
-
align-items: center;
|
|
171
|
-
gap: var(--spacing-5, 16px);
|
|
172
|
-
margin-inline: auto;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/* tokeniserad storlek samt låst proportion för loggan */
|
|
176
|
-
.logo {
|
|
177
|
-
display: block;
|
|
178
|
-
inline-size: var(--scb-footer-logo-w);
|
|
179
|
-
block-size: calc(var(--scb-footer-logo-w) * (54 / 48));
|
|
180
|
-
aspect-ratio: var(--scb-footer-logo-aspect);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.desc {
|
|
184
|
-
margin: 0;
|
|
185
|
-
text-align: center;
|
|
186
|
-
opacity: .9;
|
|
187
|
-
font-family: var(--brand-font);
|
|
188
|
-
font-size: var(--md-sys-typescale-body-small-size);
|
|
189
|
-
line-height: var(--md-sys-typescale-body-small-line-height);
|
|
190
|
-
font-weight: var(--weight-regular);
|
|
191
|
-
letter-spacing: var(--md-sys-typescale-body-small-tracking, -0.1px);
|
|
192
|
-
color: var(--p-100);
|
|
193
|
-
width: min(100%, 312px);
|
|
194
|
-
overflow-wrap: anywhere;
|
|
195
|
-
}
|
|
196
|
-
@media (min-width: 600px) { .desc { width: min(100%, 376px); } }
|
|
197
|
-
|
|
198
|
-
.spacer { display: none; }
|
|
199
|
-
@media (min-width: 840px) { .spacer { display: block; } }
|
|
200
|
-
`,y);function w(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}function _(){const e=s(r,this,w).call(this,this.spacing),t=s(r,this,w).call(this,this.spacingTop)??e,a=s(r,this,w).call(this,this.spacingBottom)??e;t?this.style.setProperty("--scb-footer-spacing-block-start",t):this.style.removeProperty("--scb-footer-spacing-block-start"),a?this.style.setProperty("--scb-footer-spacing-block-end",a):this.style.removeProperty("--scb-footer-spacing-block-end")}function T(){h(f,this)?.disconnect(),o(f,this,new MutationObserver(e=>{for(const t of e){if(t.type==="childList"){const a=[...t.addedNodes].some(i=>i.tagName==="SCB-FOOTER-SECTION"||i.tagName==="SCB-LINK"),n=[...t.removedNodes].some(i=>i.tagName==="SCB-FOOTER-SECTION"||i.tagName==="SCB-LINK");if(a||n){s(r,this,S).call(this);return}}if(t.type==="attributes"&&(t.target.tagName==="SCB-FOOTER-SECTION"||t.target.tagName==="SCB-LINK")){s(r,this,S).call(this);return}}})),h(f,this).observe(this,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["title","href","target"]})}function S(){h(u,this)||(o(u,this,!0),queueMicrotask(()=>{o(u,this,!1),s(r,this,$).call(this,!1)}))}function W(){return h(d,this)??this.sections??[]}function $(e=!1){const t=Array.from(this.querySelectorAll("scb-footer-section"));if(!t.length){h(d,this)!==null&&(o(d,this,null),o(m,this,""),e||this.requestUpdate());return}const a=t.map(i=>({title:(i.getAttribute("title")||"").trim(),links:Array.from(i.querySelectorAll("scb-link")).map(l=>{const v=(l.getAttribute("href")||"").trim(),C=l.getAttribute("target"),k={label:(l.textContent||"").trim(),href:v};return C&&(k.target=C),k})})),n=JSON.stringify(a);n!==h(m,this)&&(o(m,this,n),o(d,this,a),e||this.requestUpdate())}function E(e){const t=[],n=e.length;if(n>0&&n<4)return t.push(b`
|
|
31
|
+
`}},y.styles=M`:host{display:block;color:var(--p-100);background:var(--scb-footer-bg, var(--p-20));margin-block-start:var(--scb-footer-spacing-block-start, 0);margin-block-end:var(--scb-footer-spacing-block-end, 0);--scb-footer-logo-w:48px;--scb-footer-logo-aspect:48 / 54}.outer{display:flex;flex-direction:column;align-items:center;padding:var(--spacing-10, 48px)0 var(--spacing-5, 16px);gap:var(--spacing-4, 12px);align-self:stretch}:host([defer-paint]) .outer{content-visibility:auto;contain-intrinsic-size:var(--scb-footer-cis, 560px)}nav{width:100%}scb-grid{--scb-grid-padding-inline:var(--spacing-8, 32px);--scb-grid-row-gap:var(--spacing-9, 40px);--scb-grid-column-gap:var(--spacing-9, 40px);--scb-grid-gap:var(--spacing-9, 40px) var(--spacing-9, 40px);--scb-grid-max-width:var(--scb-footer-max-width, 1440px)}@media (max-width:839.98px){scb-grid{--scb-grid-row-gap:var(--spacing-11, 64px)}}@media (min-width:840px){scb-grid{--scb-grid-row-gap:var(--spacing-11, 64px)}}.group,ul{display:flex;flex-direction:column}.group{gap:var(--spacing-7, 24px);min-width:248px;flex:1 0 0;align-self:stretch}@media (min-width:840px){.group--centered{flex:0 1 248px;min-width:248px;max-width:320px}.group--centered .title{text-align:center}.group--centered,.group--centered ul{align-items:center;text-align:center}.group--centered scb-link::part(anchor){text-align:center}.center-row{display:flex;align-items:start;justify-content:center;flex-wrap:wrap;gap:var(--spacing-9, 40px);width:fit-content;max-width:100%;margin-inline:auto}}@media (max-width:599px){scb-grid-item:nth-child(n+2) .group{margin-top:var(--spacing-7, 24px)}}@media (min-width:600px) and (max-width:839px){scb-grid-item:nth-child(n+3) .group{margin-top:var(--spacing-7, 24px)}}.title{margin:0;color:var(--p-100);font-family:var(--brand-font);font-size:var(--md-sys-typescale-title-medium-size);line-height:var(--md-sys-typescale-title-medium-line-height);letter-spacing:var(--md-sys-typescale-title-medium-tracking);font-weight:var(--weight-semibold);align-self:stretch}ul{list-style:none;margin:0;padding:0;gap:var(--spacing-5, 16px)}scb-link{--scb-link-color:var(--p-100);--scb-link-visited-color:var(--p-100)}scb-link::part(anchor){font-family:var(--brand-font);font-size:var(--md-sys-typescale-body-medium-size);line-height:var(--md-sys-typescale-body-medium-line-height);font-weight:var(--weight-regular);letter-spacing:var(--md-sys-typescale-body-medium-tracking, -0.15px)}.brand,.brand-inner{display:flex;flex-direction:column;align-items:center;gap:var(--spacing-5, 16px)}.brand{align-self:stretch;padding:var(--spacing-9, 40px) var(--spacing-8, 32px)}.brand-inner{width:100%;max-width:var(--scb-footer-max-width, 1440px);margin-inline:auto}.logo{display:block;inline-size:var(--scb-footer-logo-w);block-size:calc(var(--scb-footer-logo-w)*(54/48));aspect-ratio:var(--scb-footer-logo-aspect)}.desc{margin:0;text-align:center;opacity:.9;font-family:var(--brand-font);font-size:var(--md-sys-typescale-body-small-size);line-height:var(--md-sys-typescale-body-small-line-height);font-weight:var(--weight-regular);letter-spacing:var(--md-sys-typescale-body-small-tracking, -0.1px);color:var(--p-100);width:min(100%,312px);overflow-wrap:anywhere}@media (min-width:600px){.desc{width:min(100%,376px)}}.spacer{display:none}@media (min-width:840px){.spacer{display:block}}`,y);function w(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}function _(){const e=s(r,this,w).call(this,this.spacing),t=s(r,this,w).call(this,this.spacingTop)??e,a=s(r,this,w).call(this,this.spacingBottom)??e;t?this.style.setProperty("--scb-footer-spacing-block-start",t):this.style.removeProperty("--scb-footer-spacing-block-start"),a?this.style.setProperty("--scb-footer-spacing-block-end",a):this.style.removeProperty("--scb-footer-spacing-block-end")}function T(){h(f,this)?.disconnect(),o(f,this,new MutationObserver(e=>{for(const t of e){if(t.type==="childList"){const a=[...t.addedNodes].some(i=>i.tagName==="SCB-FOOTER-SECTION"||i.tagName==="SCB-LINK"),n=[...t.removedNodes].some(i=>i.tagName==="SCB-FOOTER-SECTION"||i.tagName==="SCB-LINK");if(a||n){s(r,this,S).call(this);return}}if(t.type==="attributes"&&(t.target.tagName==="SCB-FOOTER-SECTION"||t.target.tagName==="SCB-LINK")){s(r,this,S).call(this);return}}})),h(f,this).observe(this,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["title","href","target"]})}function S(){h(u,this)||(o(u,this,!0),queueMicrotask(()=>{o(u,this,!1),s(r,this,$).call(this,!1)}))}function W(){return h(p,this)??this.sections??[]}function $(e=!1){const t=Array.from(this.querySelectorAll("scb-footer-section"));if(!t.length){h(p,this)!==null&&(o(p,this,null),o(m,this,""),e||this.requestUpdate());return}const a=t.map(i=>({title:(i.getAttribute("title")||"").trim(),links:Array.from(i.querySelectorAll("scb-link")).map(l=>{const v=(l.getAttribute("href")||"").trim(),C=l.getAttribute("target"),k={label:(l.textContent||"").trim(),href:v};return C&&(k.target=C),k})})),n=JSON.stringify(a);n!==h(m,this)&&(o(m,this,n),o(p,this,a),e||this.requestUpdate())}function E(e){const t=[],n=e.length;if(n>0&&n<4)return t.push(b`
|
|
201
32
|
<scb-grid-item
|
|
202
33
|
col-span-compact="4"
|
|
203
34
|
col-span-medium="8"
|
|
@@ -226,4 +57,4 @@ import{_ as N,b as B,g as M,h as g,y as b}from"../../vendor/vendor.js";import"..
|
|
|
226
57
|
`)}
|
|
227
58
|
</ul>
|
|
228
59
|
</section>
|
|
229
|
-
`}
|
|
60
|
+
`}d([g({type:String,attribute:"max-width",reflect:!0,converter:{fromAttribute:e=>{if(e==null)return"1440px";const t=e.trim();return t===""?"1440px":/^\d+$/.test(t)?`${t}px`:t}}})],c.prototype,"maxWidth",void 0);d([g({type:Boolean,reflect:!0,attribute:"defer-paint",converter:O})],c.prototype,"deferPaint",void 0);d([g({type:String,reflect:!0})],c.prototype,"spacing",void 0);d([g({type:String,attribute:"spacing-top",reflect:!0})],c.prototype,"spacingTop",void 0);d([g({type:String,attribute:"spacing-bottom",reflect:!0})],c.prototype,"spacingBottom",void 0);d([g({type:Array})],c.prototype,"sections",void 0);d([g({type:String})],c.prototype,"description",void 0);c=d([B("scb-footer")],c);
|