scb-wc 0.1.11 → 0.1.13
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/all.js +104 -1
- package/mvc/components/all.js +3 -90
- package/mvc/components/scb-accordion/scb-accordion-item.js +211 -1
- package/mvc/components/scb-accordion/scb-accordion.js +44 -1
- package/mvc/components/scb-app-bar/scb-app-bar.js +166 -1
- package/mvc/components/scb-avatar/scb-avatar.js +111 -1
- package/mvc/components/scb-badge/scb-badge.js +80 -1
- package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +14 -1
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +96 -1
- package/mvc/components/scb-button/scb-button.js +268 -1
- package/mvc/components/scb-calendar/scb-calendar-event.js +6 -1
- package/mvc/components/scb-calendar/scb-calendar.js +168 -1
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +346 -1
- package/mvc/components/scb-card/scb-card.js +761 -1
- package/mvc/components/scb-checkbox/scb-checkbox-group.js +33 -1
- package/mvc/components/scb-checkbox/scb-checkbox.js +140 -1
- package/mvc/components/{Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-chevron → scb-chevron}/scb-chevron.js +1 -1
- package/mvc/components/scb-chip/scb-chip.js +66 -1
- package/mvc/components/scb-collapse/scb-collapse.js +89 -1
- package/mvc/components/scb-cookies-consent/scb-cookies-consent.js +78 -1
- package/mvc/components/{Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-datepicker → scb-datepicker}/scb-datepicker.js +1 -1
- package/mvc/components/scb-dialog/scb-dialog.js +265 -1
- package/mvc/components/scb-divider/scb-divider.js +69 -1
- package/mvc/components/scb-drawer/scb-drawer.js +128 -1
- package/mvc/components/scb-drop-zone/scb-drop-zone.js +555 -1
- package/mvc/components/scb-dropdown/scb-dropdown.js +306 -1
- package/mvc/components/scb-fab/scb-fab.js +108 -1
- package/mvc/components/scb-fact-card/scb-fact-card-content.js +46 -1
- package/mvc/components/scb-fact-card/scb-fact-card.js +226 -1
- package/mvc/components/scb-footer/scb-footer-section.js +3 -1
- package/mvc/components/scb-footer/scb-footer.js +210 -1
- package/mvc/components/scb-gallery-grid/scb-gallery-grid.js +131 -1
- package/mvc/components/scb-grid/scb-grid-item.js +11 -1
- package/mvc/components/scb-grid/scb-grid.js +98 -1
- package/mvc/components/scb-grid/scb-stack.js +33 -1
- package/mvc/components/scb-header/scb-header-menu-group.js +1 -1
- package/mvc/components/scb-header/scb-header-menu-item.js +5 -1
- package/mvc/components/scb-header/scb-header-tab.js +5 -1
- package/mvc/components/scb-header/scb-header-utility.js +1 -1
- package/mvc/components/scb-header/scb-header.js +681 -1
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +196 -1
- package/mvc/components/scb-icon-button/scb-icon-button.js +171 -1
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +212 -1
- package/mvc/components/scb-link/scb-link.js +61 -1
- package/mvc/components/scb-list/scb-list-item.js +153 -1
- package/mvc/components/scb-list/scb-list.js +26 -1
- package/mvc/components/scb-menu/scb-menu-item.js +205 -1
- package/mvc/components/scb-menu/scb-menu-section.js +42 -1
- package/mvc/components/scb-menu/scb-menu.js +81 -1
- package/mvc/components/scb-menu/scb-sub-menu.js +10 -1
- package/mvc/components/scb-nav/scb-nav-item.js +28 -1
- package/mvc/components/scb-nav/scb-nav.js +104 -1
- package/mvc/components/scb-notification-card/scb-notification-card.js +358 -1
- package/mvc/components/scb-options-menu/scb-options-menu-item.js +66 -1
- package/mvc/components/scb-options-menu/scb-options-menu.js +88 -1
- package/mvc/components/scb-options-menu/scb-options-sub-menu.js +34 -1
- package/mvc/components/scb-overlay/scb-overlay.js +49 -1
- package/mvc/components/scb-pagination/scb-pagination.js +312 -1
- package/mvc/components/scb-progress-indicator/scb-progress-indicator.js +87 -1
- package/mvc/components/scb-progress-stepper/scb-progress-step.js +147 -1
- package/mvc/components/scb-progress-stepper/scb-progress-stepper.js +62 -1
- package/mvc/components/scb-radio-button/scb-radio-button.js +132 -1
- package/mvc/components/scb-radio-button/scb-radio-group.js +43 -1
- package/mvc/components/scb-scrollspy/scb-scrollspy.js +79 -1
- package/mvc/components/scb-search/scb-search.js +292 -1
- package/mvc/components/scb-segmented-button/scb-segmented-button.js +32 -1
- package/mvc/components/scb-segmented-button/scb-segmented-item.js +74 -1
- package/mvc/components/scb-select/scb-select-option.js +61 -1
- package/mvc/components/scb-select/scb-select.js +284 -1
- package/mvc/components/scb-skeleton/scb-skeleton.js +38 -1
- package/mvc/components/scb-slider/scb-slider.js +27 -1
- package/mvc/components/scb-snackbar/scb-snackbar.js +128 -1
- package/mvc/components/scb-status-pill/scb-status-pill.js +45 -1
- package/mvc/components/scb-stepper/scb-step.js +239 -1
- package/mvc/components/scb-stepper/scb-stepper.js +139 -1
- package/mvc/components/scb-switch/scb-switch.js +59 -1
- package/mvc/components/scb-table/scb-table.js +51 -1
- package/mvc/components/scb-table-advanced/scb-table-advanced.js +76 -1
- package/mvc/components/scb-tabs/scb-primary-tab.js +6 -1
- package/mvc/components/scb-tabs/scb-secondary-tab.js +6 -1
- package/mvc/components/scb-tabs/scb-tabs.js +28 -1
- package/mvc/components/scb-textfield/scb-textfield.js +595 -1
- package/mvc/components/scb-toc/scb-toc-item.js +303 -1
- package/mvc/components/scb-toc/scb-toc.js +19 -1
- package/mvc/components/scb-tooltip/scb-tooltip.js +196 -1
- package/mvc/components/scb-vignette/scb-vignette.js +37 -0
- package/mvc/components/scb-viz/scb-viz-actions-runtime.js +2 -1
- package/mvc/components/scb-viz/scb-viz-print-runtime.js +98 -1
- package/mvc/components/scb-viz/scb-viz-series-differentiation-registry.js +1 -1
- package/mvc/components/scb-viz/scb-viz-series-differentiation-runtime.js +1 -1
- package/mvc/components/scb-viz/scb-viz-table-runtime.js +1 -1
- package/mvc/components/scb-viz/scb-viz.js +1140 -1
- package/mvc/scb-logo.svg +20 -20
- package/mvc/scb.svg +13 -13
- package/package.json +462 -430
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-accordion/scb-accordion-item.js +0 -211
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-accordion/scb-accordion.js +0 -44
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-app-bar/scb-app-bar.js +0 -166
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-avatar/scb-avatar.js +0 -111
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-badge/scb-badge.js +0 -80
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-breadcrumb/scb-breadcrumb-item.js +0 -14
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-breadcrumb/scb-breadcrumb.js +0 -96
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-button/scb-button.js +0 -268
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-calendar/scb-calendar-event.js +0 -6
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-calendar/scb-calendar.js +0 -168
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-calendar-card/scb-calendar-card.js +0 -346
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-card/scb-card.js +0 -761
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-checkbox/scb-checkbox-group.js +0 -33
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-checkbox/scb-checkbox.js +0 -140
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-chip/scb-chip.js +0 -66
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-collapse/scb-collapse.js +0 -89
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-cookies-consent/scb-cookies-consent.js +0 -78
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-dialog/scb-dialog.js +0 -265
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-divider/scb-divider.js +0 -69
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-drawer/scb-drawer.js +0 -128
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-drop-zone/scb-drop-zone.js +0 -555
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-dropdown/scb-dropdown.js +0 -306
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-fab/scb-fab.js +0 -108
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-fact-card/scb-fact-card-content.js +0 -46
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-fact-card/scb-fact-card.js +0 -226
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-footer/scb-footer-section.js +0 -3
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-footer/scb-footer.js +0 -210
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-gallery-grid/scb-gallery-grid.js +0 -131
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-grid/scb-grid-item.js +0 -11
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-grid/scb-grid.js +0 -98
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-grid/scb-stack.js +0 -33
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-header/scb-header-menu-group.js +0 -1
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-header/scb-header-menu-item.js +0 -5
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-header/scb-header-tab.js +0 -5
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-header/scb-header-utility.js +0 -1
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-header/scb-header.js +0 -681
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-horizontal-scroller/scb-horizontal-scroller.js +0 -196
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-icon-button/scb-icon-button.js +0 -171
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-keyfigure-card/scb-keyfigure-card.js +0 -212
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-link/scb-link.js +0 -61
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-list/scb-list-item.js +0 -153
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-list/scb-list.js +0 -26
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-menu/scb-menu-item.js +0 -205
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-menu/scb-menu-section.js +0 -42
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-menu/scb-menu.js +0 -81
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-menu/scb-sub-menu.js +0 -10
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-nav/scb-nav-item.js +0 -28
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-nav/scb-nav.js +0 -104
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-notification-card/scb-notification-card.js +0 -358
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-options-menu/scb-options-menu-item.js +0 -66
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-options-menu/scb-options-menu.js +0 -88
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-options-menu/scb-options-sub-menu.js +0 -34
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-overlay/scb-overlay.js +0 -49
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-pagination/scb-pagination.js +0 -312
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-progress-indicator/scb-progress-indicator.js +0 -87
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-progress-stepper/scb-progress-step.js +0 -147
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-progress-stepper/scb-progress-stepper.js +0 -62
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-radio-button/scb-radio-button.js +0 -132
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-radio-button/scb-radio-group.js +0 -43
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-scrollspy/scb-scrollspy.js +0 -79
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-search/scb-search.js +0 -292
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-segmented-button/scb-segmented-button.js +0 -32
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-segmented-button/scb-segmented-item.js +0 -74
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-select/scb-select-option.js +0 -61
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-select/scb-select.js +0 -284
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-skeleton/scb-skeleton.js +0 -38
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-slider/scb-slider.js +0 -27
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-snackbar/scb-snackbar.js +0 -128
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-status-pill/scb-status-pill.js +0 -45
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-stepper/scb-step.js +0 -239
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-stepper/scb-stepper.js +0 -139
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-switch/scb-switch.js +0 -59
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-table/scb-table.js +0 -51
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-table-advanced/scb-table-advanced.js +0 -76
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-tabs/scb-primary-tab.js +0 -6
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-tabs/scb-secondary-tab.js +0 -6
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-tabs/scb-tabs.js +0 -28
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-textfield/scb-textfield.js +0 -595
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-toc/scb-toc-item.js +0 -303
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-toc/scb-toc.js +0 -19
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-tooltip/scb-tooltip.js +0 -196
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-vignette/scb-vignette.js +0 -37
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-viz/scb-viz-actions-runtime.js +0 -2
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-viz/scb-viz-print-runtime.js +0 -98
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-viz/scb-viz-series-differentiation-registry.js +0 -1
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-viz/scb-viz-series-differentiation-runtime.js +0 -1
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-viz/scb-viz-table-runtime.js +0 -1
- package/mvc/components/Users/peter/Documents/SCB.Material-latest-dev/src/scb-components/scb-viz/scb-viz.js +0 -1140
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import{_ as m,b as v,g as y,h as c,y as k}from"../../../../../../../../vendor/vendor.js";import"../../../../../../../../vendor/vendor-lit.js";import{t as a}from"../../../../../../../../vendor/decorate.js";import{n as x,t as n}from"../../../../../../../../vendor/assertClassBrand.js";import{n as _,r as S,t as b}from"../../../../../../../../vendor/classPrivateFieldGet2.js";(function(){try{var s=typeof globalThis<"u"?globalThis:window;if(!s.__scb_ce_guard_installed__){s.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(o,p,e){try{customElements.get(o)||t(o,p,e)}catch(u){var h=String(u||"");if(h.indexOf("already been used")===-1&&h.indexOf("NotSupportedError")===-1)throw u}}}}catch{}})();var l,r,d,i=(l=new WeakMap,r=new WeakSet,d=class extends m{constructor(...t){super(...t),x(this,r),S(this,l,void 0),this.orientation="vertical",this.disabled=!1,this.size="medium",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,_(l,this,()=>{const o=this.shadowRoot?.querySelector("slot");if(!o)return;const p=o.assignedElements({flatten:!0}).filter(e=>e.tagName.toLowerCase()==="scb-checkbox");for(const e of p){this.disabled?e.setAttribute("disabled",""):e.removeAttribute("disabled"),this.orientation==="horizontal"?e.setAttribute("orientation","horizontal"):e.removeAttribute("orientation");const h=e.hasAttribute("data-size-from-group");this.size==="medium"?h&&(e.removeAttribute("size"),e.removeAttribute("data-size-from-group")):(!e.hasAttribute("size")||h)&&(e.setAttribute("size",this.size),e.setAttribute("data-size-from-group",""))}})}render(){const t=this.orientation==="horizontal"?"row":"column";return k`
|
|
2
|
-
<div class="g" role="group" aria-disabled=${String(this.disabled)} style=${`--_dir:${t}`}>
|
|
3
|
-
<slot @slotchange=${b(l,this)}></slot>
|
|
4
|
-
</div>
|
|
5
|
-
`}firstUpdated(){n(r,this,f).call(this),b(l,this).call(this)}updated(t){(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&n(r,this,f).call(this),(t.has("disabled")||t.has("orientation")||t.has("size"))&&b(l,this).call(this)}},d.styles=v`
|
|
6
|
-
:host {
|
|
7
|
-
display: block;
|
|
8
|
-
/* Vertikal standard-spacing mellan items i gruppen */
|
|
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
|
-
margin-inline-start: var(--scb-checkbox-group-spacing-inline-start, 0);
|
|
14
|
-
margin-inline-end: var(--scb-checkbox-group-spacing-inline-end, 0);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
/* Horisontell standard-spacing mellan items om spacing för gruppen inte overrideas via CSS-variabel */
|
|
18
|
-
:host([orientation='horizontal']) {
|
|
19
|
-
--scb-checkbox-gap: var(--spacing-8, 32px);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.g {
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: var(--_dir, column);
|
|
25
|
-
align-items: flex-start;
|
|
26
|
-
gap: var(--scb-checkbox-gap);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/* När checkboxar ligger i en grupp ska spacing ägas av gruppen, inte av enskilda items */
|
|
30
|
-
::slotted(scb-checkbox) {
|
|
31
|
-
--scb-checkbox-gap: 0;
|
|
32
|
-
}
|
|
33
|
-
`,d);function f(){const s=n(r,this,g).call(this,this.spacing),t=n(r,this,g).call(this,this.spacingTop)??s,o=n(r,this,g).call(this,this.spacingBottom)??s,p=n(r,this,g).call(this,this.spacingLeft),e=n(r,this,g).call(this,this.spacingRight);t?this.style.setProperty("--scb-checkbox-group-spacing-block-start",t):this.style.removeProperty("--scb-checkbox-group-spacing-block-start"),o?this.style.setProperty("--scb-checkbox-group-spacing-block-end",o):this.style.removeProperty("--scb-checkbox-group-spacing-block-end"),p?this.style.setProperty("--scb-checkbox-group-spacing-inline-start",p):this.style.removeProperty("--scb-checkbox-group-spacing-inline-start"),e?this.style.setProperty("--scb-checkbox-group-spacing-inline-end",e):this.style.removeProperty("--scb-checkbox-group-spacing-inline-end")}function g(s){if(!s)return;const t=String(s).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}a([c({type:String,reflect:!0})],i.prototype,"orientation",void 0);a([c({type:Boolean,reflect:!0})],i.prototype,"disabled",void 0);a([c({type:String,reflect:!0})],i.prototype,"size",void 0);a([c({type:String,reflect:!0})],i.prototype,"spacing",void 0);a([c({type:String,attribute:"spacing-top",reflect:!0})],i.prototype,"spacingTop",void 0);a([c({type:String,attribute:"spacing-bottom",reflect:!0})],i.prototype,"spacingBottom",void 0);a([c({type:String,attribute:"spacing-left",reflect:!0})],i.prototype,"spacingLeft",void 0);a([c({type:String,attribute:"spacing-right",reflect:!0})],i.prototype,"spacingRight",void 0);i=a([y("scb-checkbox-group")],i);export{i as ScbCheckboxGroup};
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import"../../../../../../../../vendor/vendor-material.js";import{_ as I,b as M,g as R,h as c,v as p,y as x}from"../../../../../../../../vendor/vendor.js";import"../../../../../../../../vendor/vendor-lit.js";import{t as o}from"../../../../../../../../vendor/decorate.js";import{n as F,t as n}from"../../../../../../../../vendor/assertClassBrand.js";import{n as _,r as w,t as h}from"../../../../../../../../vendor/classPrivateFieldGet2.js";import"./scb-checkbox-group.js";(function(){try{var i=typeof globalThis<"u"?globalThis:window;if(!i.__scb_ce_guard_installed__){i.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(t,s,l){try{customElements.get(t)||e(t,s,l)}catch(V){var b=String(V||"");if(b.indexOf("already been used")===-1&&b.indexOf("NotSupportedError")===-1)throw V}}}}catch{}})();var r,u,g,m,k,L=!1,f=0,$=i=>{i.metaKey||i.altKey||i.ctrlKey||(L=!0)},d=()=>{L=!1},C=()=>{f===0&&(window.addEventListener("keydown",$,!0),window.addEventListener("pointerdown",d,!0),window.addEventListener("mousedown",d,!0),window.addEventListener("touchstart",d,!0)),f+=1},z=()=>{f=Math.max(0,f-1),f===0&&(window.removeEventListener("keydown",$,!0),window.removeEventListener("pointerdown",d,!0),window.removeEventListener("mousedown",d,!0),window.removeEventListener("touchstart",d,!0))},a=(r=new WeakSet,u=new WeakMap,g=new WeakMap,m=new WeakMap,k=class extends I{constructor(){super(),F(this,r),w(this,u,void 0),w(this,g,void 0),w(this,m,void 0),this._internals=null,this.disabled=!1,this.indeterminate=!1,this.checked=!1,this.required=!1,this.size="medium",this.label="",this.supportingText="",this.ariaLabel="",this.name="",this.value="on",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this._form=null,this._formResetHandler=null,this._initialChecked=!1,this._customValidationMessage="",this._checkboxId="",this._showOuterFocusRing=!1,_(u,this,()=>{this.disabled||this.label?.trim()&&L&&n(r,this,y).call(this,!0)}),_(g,this,()=>{n(r,this,y).call(this,!1)}),_(m,this,()=>{n(r,this,y).call(this,!1)}),"attachInternals"in this&&(this._internals=this.attachInternals())}connectedCallback(){super.connectedCallback(),C(),this._checkboxId=this.id||`scb-checkbox-${Math.random().toString(36).slice(2,11)}`,this._initialChecked=this.checked,n(r,this,S).call(this),this.addEventListener("focusin",h(u,this)),this.addEventListener("focusout",h(g,this)),this.addEventListener("pointerdown",h(m,this),!0),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(),z(),this.removeEventListener("focusin",h(u,this)),this.removeEventListener("focusout",h(g,this)),this.removeEventListener("pointerdown",h(m,this),!0),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,s=!!t.checked,l=!!t.indeterminate;this.checked=s,this.indeterminate=l,this.dispatchEvent(new CustomEvent("change",{detail:{checked:s,indeterminate:l},bubbles:!0,composed:!0}))}),this.shadowRoot?.querySelector("label.wrap")?.addEventListener("click",t=>{if(!this.disabled&&!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(),this.__syncValidity(),n(r,this,E).call(this)}updated(e){super.updated(e),e.has("disabled")&&(this.toggleAttribute("aria-disabled",this.disabled),this.disabled&&n(r,this,y).call(this,!1)),(e.has("label")||e.has("supportingText")||e.has("ariaLabel"))&&this.__syncInnerAria(),e.has("label")&&n(r,this,S).call(this),(e.has("checked")||e.has("disabled")||e.has("value"))&&this.__syncFormValue(),(e.has("checked")||e.has("disabled")||e.has("required"))&&this.__syncValidity(),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&n(r,this,E).call(this)}formDisabledCallback(e){this.disabled=e}__syncInnerAria(){const e=this.shadowRoot?.querySelector("md-checkbox")?.shadowRoot;if(!e)return;const t=e.querySelector('[role="checkbox"]')||e.querySelector('input[type="checkbox"]');if(!t)return;const s=!!this.label?.trim(),l=s?`${this._checkboxId}-label`:"",b=this.supportingText?`${this._checkboxId}-supporting-text`:"";s&&l?(t.setAttribute("aria-labelledby",l),t.removeAttribute("aria-label")):(t.removeAttribute("aria-labelledby"),this.ariaLabel?.trim()?t.setAttribute("aria-label",this.ariaLabel.trim()):t.removeAttribute("aria-label")),b?t.setAttribute("aria-describedby",b):t.removeAttribute("aria-describedby")}__getValidationMessage(){return this._customValidationMessage?this._customValidationMessage:this.required&&!this.checked?"Markera det här fältet.":""}__syncValidity(){const e=this.shadowRoot?.querySelector("md-checkbox"),t=this.disabled?"":this.__getValidationMessage();this._internals&&(t?this._internals.setValidity({valueMissing:!0},t,e??void 0):this._internals.setValidity({})),this.toggleAttribute("aria-invalid",!!t)}checkValidity(){return!this.__getValidationMessage()}reportValidity(){return this.__syncValidity(),this._internals?this._internals.reportValidity():this.checkValidity()}setCustomValidity(e){this._customValidationMessage=e,this.__syncValidity()}get validity(){return this._internals?.validity}get validationMessage(){return this._internals?.validationMessage??this.__getValidationMessage()}get willValidate(){return this._internals?.willValidate??!0}__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,t=!!this.label?.trim(),s=t?p:this.ariaLabel||p;return x`
|
|
2
|
-
<label class="wrap">
|
|
3
|
-
${t?x`<md-focus-ring class="outer-focus-ring" ?visible=${this._showOuterFocusRing}></md-focus-ring>`:p}
|
|
4
|
-
<div class="box-wrap">
|
|
5
|
-
<md-checkbox
|
|
6
|
-
id="${this._checkboxId}"
|
|
7
|
-
?disabled=${this.disabled}
|
|
8
|
-
?indeterminate=${this.indeterminate}
|
|
9
|
-
?checked=${this.checked}
|
|
10
|
-
?required=${this.required}
|
|
11
|
-
aria-label=${s}
|
|
12
|
-
></md-checkbox>
|
|
13
|
-
</div>
|
|
14
|
-
${t?x`<span class="lbl" id="${this._checkboxId}-label">${this.label}</span>`:p}
|
|
15
|
-
</label>
|
|
16
|
-
|
|
17
|
-
${this.supportingText?x`<div id="${e}" class="supporting-text">
|
|
18
|
-
${this.supportingText}
|
|
19
|
-
</div>`:p}
|
|
20
|
-
<slot></slot>
|
|
21
|
-
`}},k.formAssociated=!0,k.styles=M`
|
|
22
|
-
:host {
|
|
23
|
-
display: inline-grid;
|
|
24
|
-
grid-template-columns: auto;
|
|
25
|
-
grid-template-rows: auto auto;
|
|
26
|
-
row-gap: 0;
|
|
27
|
-
font-family: var(--brand-font, 'Inter', sans-serif);
|
|
28
|
-
|
|
29
|
-
--scb-checkbox-text-font: var(--md-sys-typescale-body-medium-font);
|
|
30
|
-
--scb-checkbox-text-size: var(--md-sys-typescale-body-medium-size);
|
|
31
|
-
--scb-checkbox-text-line-height: var(--md-sys-typescale-body-medium-line-height);
|
|
32
|
-
--scb-checkbox-text-tracking: var(--md-sys-typescale-body-medium-tracking);
|
|
33
|
-
--scb-checkbox-text-weight: var(--md-sys-typescale-body-medium-weight, var(--weight-regular, 400));
|
|
34
|
-
|
|
35
|
-
margin-block-start: var(--scb-checkbox-spacing-block-start, 0);
|
|
36
|
-
margin-block-end: var(--scb-checkbox-spacing-block-end, 0);
|
|
37
|
-
margin-inline-start: var(--scb-checkbox-spacing-inline-start, 0);
|
|
38
|
-
margin-inline-end: var(--scb-checkbox-spacing-inline-end, 0);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host([size='small']) {
|
|
42
|
-
--scb-checkbox-text-font: var(--md-sys-typescale-body-small-font);
|
|
43
|
-
--scb-checkbox-text-size: var(--md-sys-typescale-body-small-size);
|
|
44
|
-
--scb-checkbox-text-line-height: var(--md-sys-typescale-body-small-line-height);
|
|
45
|
-
--scb-checkbox-text-tracking: var(--md-sys-typescale-body-small-tracking);
|
|
46
|
-
--scb-checkbox-text-weight: var(--md-sys-typescale-body-small-weight, var(--weight-regular, 400));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
:host([size='large']) {
|
|
50
|
-
--scb-checkbox-text-font: var(--md-sys-typescale-body-large-font);
|
|
51
|
-
--scb-checkbox-text-size: var(--md-sys-typescale-body-large-size);
|
|
52
|
-
--scb-checkbox-text-line-height: var(--md-sys-typescale-body-large-line-height);
|
|
53
|
-
--scb-checkbox-text-tracking: var(--md-sys-typescale-body-large-tracking);
|
|
54
|
-
--scb-checkbox-text-weight: var(--md-sys-typescale-body-large-weight, var(--weight-regular, 400));
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
:host([orientation='horizontal']) {
|
|
58
|
-
margin-inline-end: var(--scb-checkbox-spacing-inline-end, var(--scb-checkbox-gap, var(--spacing-7, 24px)));
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.wrap {
|
|
62
|
-
display: inline-flex;
|
|
63
|
-
align-items: center;
|
|
64
|
-
gap: var(--spacing-5, 16px);
|
|
65
|
-
cursor: pointer;
|
|
66
|
-
position: relative;
|
|
67
|
-
overflow: visible;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.outer-focus-ring {
|
|
71
|
-
position: absolute;
|
|
72
|
-
inset:
|
|
73
|
-
calc(var(--spacing-2, 4px) * -1) /* topp */
|
|
74
|
-
calc(var(--spacing-4, 12px) * -1) /* höger */
|
|
75
|
-
calc(var(--spacing-2, 4px) * -1) /* botten */
|
|
76
|
-
calc(var(--spacing-4, 12px) * -1); /* vänster */
|
|
77
|
-
pointer-events: none;
|
|
78
|
-
--md-focus-ring-shape-start-start: var(--radius-s, 8px);
|
|
79
|
-
--md-focus-ring-shape-start-end: var(--radius-s, 8px);
|
|
80
|
-
--md-focus-ring-shape-end-start: var(--radius-s, 8px);
|
|
81
|
-
--md-focus-ring-shape-end-end: var(--radius-s, px);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
:host([data-has-label]) md-checkbox::part(focus-ring) {
|
|
85
|
-
display: none;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
:host([disabled]) .wrap {
|
|
89
|
-
cursor: default;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.box-wrap {
|
|
93
|
-
height: var(--scb-checkbox-target, 40px);
|
|
94
|
-
display: flex;
|
|
95
|
-
align-items: center;
|
|
96
|
-
justify-content: center;
|
|
97
|
-
overflow: visible;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
md-checkbox {
|
|
101
|
-
margin: 0;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.lbl {
|
|
105
|
-
color: var(--md-sys-color-on-surface);
|
|
106
|
-
font-family: var(--scb-checkbox-text-font, var(--brand-font));
|
|
107
|
-
font-size: var(--scb-checkbox-text-size);
|
|
108
|
-
line-height: var(--scb-checkbox-text-line-height);
|
|
109
|
-
font-weight: var(--scb-checkbox-text-weight);
|
|
110
|
-
letter-spacing: var(--scb-checkbox-text-tracking);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
:host([disabled]) .lbl {
|
|
114
|
-
color: var(--n-60);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.supporting-text {
|
|
118
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
119
|
-
font-family: var(--scb-checkbox-text-font, var(--brand-font));
|
|
120
|
-
font-size: var(--scb-checkbox-text-size);
|
|
121
|
-
line-height: var(--scb-checkbox-text-line-height, 20px);
|
|
122
|
-
font-weight: var(--scb-checkbox-text-weight);
|
|
123
|
-
letter-spacing: var(--scb-checkbox-text-tracking);
|
|
124
|
-
margin-left: calc(var(--spacing-3, 6px) + var(--scb-checkbox-target, 40px));
|
|
125
|
-
margin-bottom: var(--spacing-4, 8px);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
:host([disabled]) .supporting-text {
|
|
129
|
-
color: var(--n-60);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@media (prefers-color-scheme: dark) {
|
|
133
|
-
.lbl {
|
|
134
|
-
color: var(--md-sys-color-on-surface);
|
|
135
|
-
}
|
|
136
|
-
.supporting-text {
|
|
137
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
`,k);function y(i){this._showOuterFocusRing!==i&&(this._showOuterFocusRing=i,this.requestUpdate())}function S(){const i=!!this.label?.trim();this.toggleAttribute("data-has-label",i),i||n(r,this,y).call(this,!1)}function E(){const i=n(r,this,v).call(this,this.spacing),e=n(r,this,v).call(this,this.spacingTop)??i,t=n(r,this,v).call(this,this.spacingBottom)??i,s=n(r,this,v).call(this,this.spacingLeft),l=n(r,this,v).call(this,this.spacingRight);e?this.style.setProperty("--scb-checkbox-spacing-block-start",e):this.style.removeProperty("--scb-checkbox-spacing-block-start"),t?this.style.setProperty("--scb-checkbox-spacing-block-end",t):this.style.removeProperty("--scb-checkbox-spacing-block-end"),s?this.style.setProperty("--scb-checkbox-spacing-inline-start",s):this.style.removeProperty("--scb-checkbox-spacing-inline-start"),l?this.style.setProperty("--scb-checkbox-spacing-inline-end",l):this.style.removeProperty("--scb-checkbox-spacing-inline-end")}function v(i){if(!i)return;const e=String(i).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}o([c({type:Boolean,reflect:!0})],a.prototype,"disabled",void 0);o([c({type:Boolean,reflect:!0})],a.prototype,"indeterminate",void 0);o([c({type:Boolean,reflect:!0})],a.prototype,"checked",void 0);o([c({type:Boolean,reflect:!0})],a.prototype,"required",void 0);o([c({type:String,reflect:!0})],a.prototype,"size",void 0);o([c({type:String})],a.prototype,"label",void 0);o([c({type:String,attribute:"supporting-text"})],a.prototype,"supportingText",void 0);o([c({type:String,reflect:!0,attribute:"aria-label"})],a.prototype,"ariaLabel",void 0);o([c({type:String})],a.prototype,"name",void 0);o([c({type:String})],a.prototype,"value",void 0);o([c({type:String,reflect:!0})],a.prototype,"spacing",void 0);o([c({type:String,attribute:"spacing-top",reflect:!0})],a.prototype,"spacingTop",void 0);o([c({type:String,attribute:"spacing-bottom",reflect:!0})],a.prototype,"spacingBottom",void 0);o([c({type:String,attribute:"spacing-left",reflect:!0})],a.prototype,"spacingLeft",void 0);o([c({type:String,attribute:"spacing-right",reflect:!0})],a.prototype,"spacingRight",void 0);a=o([R("scb-checkbox")],a);export{a as ScbCheckbox};
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../../../../../../../vendor/vendor-material.js","../../../../../../../../vendor/vendor.js","../../../../../../../../vendor/vendor-lit.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as v,b as f,g as _,h as s,y as n}from"../../../../../../../../vendor/vendor.js";import"../../../../../../../../vendor/vendor-lit.js";import{t as i}from"../../../../../../../../vendor/decorate.js";import{n as g,t as u}from"../../../../../../../../vendor/assertClassBrand.js";import{t as p}from"../../../../../../../../vendor/preload-helper.js";(function(){try{var r=typeof globalThis<"u"?globalThis:window;if(!r.__scb_ce_guard_installed__){r.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(a,c,d){try{customElements.get(a)||t(a,c,d)}catch(l){var o=String(l||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw l}}}}catch{}})();var h,m,e=(h=new WeakSet,m=class extends v{constructor(){super(),g(this,h),this.variant="assist",this.label="",this.icon="",this.disabled=!1,this.elevated=!1,this.removable=!1,this.selected=!1,this.disableToggle=!1,this.href="",this.target="",this.name="",this.value="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.size="medium",this._internals=null,this.__loadedVariants=new Set,this.__chipSetLoaded=!1,this.__iconLoaded=!1,this._onFilterClick=t=>{if(this.disableToggle){const a=t.currentTarget;a&&(a.selected=this.selected),t.preventDefault();return}this._toggleSelected()},"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")||t.has("spacingLeft")||t.has("spacingRight"))&&u(h,this,b).call(this)}firstUpdated(){this.__ensureDepsLoaded(),u(h,this,b).call(this),this._updateFormValue()}async __ensureDepsLoaded(){if(!this.__loadedVariants.has(this.variant)){switch(this.variant){case"assist":await p(()=>import("../../../../../../../../vendor/vendor-material.js").then(t=>t.c),__vite__mapDeps([0,1,2]),import.meta.url);break;case"filter":await p(()=>import("../../../../../../../../vendor/vendor-material.js").then(t=>t.o),__vite__mapDeps([0,1,2]),import.meta.url);break}this.__loadedVariants.add(this.variant)}!this._insideChipSet&&!this.__chipSetLoaded&&(await p(()=>import("../../../../../../../../vendor/vendor-material.js").then(t=>t.s),__vite__mapDeps([0,1,2]),import.meta.url),this.__chipSetLoaded=!0),this.icon&&!this.__iconLoaded&&(await p(()=>import("../../../../../../../../vendor/vendor-material.js").then(t=>t.p),__vite__mapDeps([0,1,2]),import.meta.url),this.__iconLoaded=!0)}get _insideChipSet(){return!!this.closest("md-chip-set")}render(){const t=this._renderChip();return this._insideChipSet?t:n`<md-chip-set>${t}</md-chip-set>`}_renderChip(){const t=this.icon?n`<md-icon slot="icon">${this.icon}</md-icon>`:null;switch(this.variant){case"assist":{const a=this.target==="_blank"?"noopener noreferrer":void 0;return n`
|
|
3
|
-
<md-assist-chip
|
|
4
|
-
label=${this.label}
|
|
5
|
-
?disabled=${this.disabled}
|
|
6
|
-
?elevated=${this.elevated}
|
|
7
|
-
href=${this.href||void 0}
|
|
8
|
-
target=${this.href&&this.target||void 0}
|
|
9
|
-
rel=${a}
|
|
10
|
-
@update-focus=${this._forward}
|
|
11
|
-
>
|
|
12
|
-
${t}
|
|
13
|
-
</md-assist-chip>
|
|
14
|
-
`}case"filter":return n`
|
|
15
|
-
<md-filter-chip
|
|
16
|
-
label=${this.label}
|
|
17
|
-
?disabled=${this.disabled}
|
|
18
|
-
?removable=${this.removable}
|
|
19
|
-
?selected=${this.selected}
|
|
20
|
-
@remove=${this._onRemove}
|
|
21
|
-
@update-focus=${this._forward}
|
|
22
|
-
@click=${this._onFilterClick}
|
|
23
|
-
>
|
|
24
|
-
${t}
|
|
25
|
-
</md-filter-chip>
|
|
26
|
-
`;default:return n``}}_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 t=this.value||this.label||"";this._internals.setFormValue(t,this.name),this._internals.setValidity({})}formDisabledCallback(t){this.disabled=t}mapSpacingToken(t){if(!t)return;const a=String(t).trim();if(a)return/^\d+$/.test(a)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(a,10)))})`:a}},m.formAssociated=!0,m.styles=f`
|
|
27
|
-
:host {
|
|
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);
|
|
31
|
-
margin-inline-start: var(--scb-chip-spacing-inline-start, 0);
|
|
32
|
-
margin-inline-end: var(--scb-chip-spacing-inline-end, 0);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* Sätt samma färg på label för assist som är på filter */
|
|
36
|
-
:host md-assist-chip {
|
|
37
|
-
--_label-text-color: var(--md-sys-color-on-surface-variant);
|
|
38
|
-
--_hover-label-text-color: var(--md-sys-color-on-surface-variant);
|
|
39
|
-
--_focus-label-text-color: var(--md-sys-color-on-surface-variant);
|
|
40
|
-
--_pressed-label-text-color: var(--md-sys-color-on-surface-variant);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/* Storlekar: små/medium/stora chips via tokens.
|
|
44
|
-
Medium (default) är Material-standardvärdena. */
|
|
45
|
-
:host([size='small']) md-assist-chip,
|
|
46
|
-
:host([size='small']) md-filter-chip {
|
|
47
|
-
--md-assist-chip-label-text-size: var(--md-sys-typescale-label-small-size);
|
|
48
|
-
--md-filter-chip-label-text-size: var(--md-sys-typescale-label-small-size);
|
|
49
|
-
}
|
|
50
|
-
:host([size='medium']) md-assist-chip,
|
|
51
|
-
:host([size='medium']) md-filter-chip {
|
|
52
|
-
--md-assist-chip-label-text-size: var(--md-sys-typescale-label-medium-size);
|
|
53
|
-
--md-filter-chip-label-text-size: var(--md-sys-typescale-label-medium-size);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:host([size='large']) md-assist-chip,
|
|
57
|
-
:host([size='large']) md-filter-chip {
|
|
58
|
-
--md-assist-chip-label-text-size: var(--md-sys-typescale-body-large-size);
|
|
59
|
-
--md-filter-chip-label-text-size: var(--md-sys-typescale-body-large-size);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* md-icon {
|
|
63
|
-
color: var(--md-sys-color-on-surface);
|
|
64
|
-
font-size: var(--md-sys-typescale-body-large-size);
|
|
65
|
-
} */
|
|
66
|
-
`,m);function b(){const r=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop),a=this.mapSpacingToken(this.spacingBottom),c=this.mapSpacingToken(this.spacingLeft),d=this.mapSpacingToken(this.spacingRight),o=t??r,l=a??r;o?this.style.setProperty("--scb-chip-spacing-block-start",o):this.style.removeProperty("--scb-chip-spacing-block-start"),l?this.style.setProperty("--scb-chip-spacing-block-end",l):this.style.removeProperty("--scb-chip-spacing-block-end"),c?this.style.setProperty("--scb-chip-spacing-inline-start",c):this.style.removeProperty("--scb-chip-spacing-inline-start"),d?this.style.setProperty("--scb-chip-spacing-inline-end",d):this.style.removeProperty("--scb-chip-spacing-inline-end")}i([s({type:String,reflect:!0})],e.prototype,"variant",void 0);i([s({type:String})],e.prototype,"label",void 0);i([s({type:String})],e.prototype,"icon",void 0);i([s({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0);i([s({type:Boolean,reflect:!0})],e.prototype,"elevated",void 0);i([s({type:Boolean,reflect:!0})],e.prototype,"removable",void 0);i([s({type:Boolean,reflect:!0})],e.prototype,"selected",void 0);i([s({type:Boolean,reflect:!0,attribute:"disable-toggle"})],e.prototype,"disableToggle",void 0);i([s({type:String})],e.prototype,"href",void 0);i([s({type:String})],e.prototype,"target",void 0);i([s({type:String})],e.prototype,"name",void 0);i([s({type:String})],e.prototype,"value",void 0);i([s({type:String,reflect:!0})],e.prototype,"spacing",void 0);i([s({type:String,reflect:!0,attribute:"spacing-top"})],e.prototype,"spacingTop",void 0);i([s({type:String,reflect:!0,attribute:"spacing-bottom"})],e.prototype,"spacingBottom",void 0);i([s({type:String,reflect:!0,attribute:"spacing-left"})],e.prototype,"spacingLeft",void 0);i([s({type:String,reflect:!0,attribute:"spacing-right"})],e.prototype,"spacingRight",void 0);i([s({type:String,reflect:!0})],e.prototype,"size",void 0);e=i([_("scb-chip")],e);export{e as ScbChip};
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
import{_ as f,b as v,g as y,h as a,y as h}from"../../../../../../../../vendor/vendor.js";import"../../../../../../../../vendor/vendor-lit.js";import{t as n}from"../../../../../../../../vendor/decorate.js";import{n as _,t as d}from"../../../../../../../../vendor/assertClassBrand.js";import"../scb-button/scb-button.js";(function(){try{var l=typeof globalThis<"u"?globalThis:window;if(!l.__scb_ce_guard_installed__){l.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,i,s){try{customElements.get(e)||t(e,i,s)}catch(r){var p=String(r||"");if(p.indexOf("already been used")===-1&&p.indexOf("NotSupportedError")===-1)throw r}}}}catch{}})();var c,u,o=(c=new WeakSet,u=class extends f{constructor(...t){super(...t),_(this,c),this._contentId=`scb-collapse-content-${Math.random().toString(36).substr(2,9)}`,this.variant="elements",this.collapsedHeight=40,this.visibleElements=1,this.expanded=!1,this._elementCount=0,this.expandButtonLabel="Mer",this.collapseButtonLabel="Mindre",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.itemsGap=void 0,this._contentHeight=0}get _regionLabel(){return`${this.expanded?this.collapseButtonLabel:this.expandButtonLabel} – ${this._contentId}`}toggle(){this.expanded=!this.expanded}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}willUpdate(t){t.has("variant")&&(this._measureContent(!1),this._countElements(!1))}firstUpdated(){requestAnimationFrame(()=>{this._measureContent(),this._countElements()});const t=this.shadowRoot?.querySelector("slot");t&&t.addEventListener("slotchange",()=>{requestAnimationFrame(()=>{this._measureContent(),this._countElements(),d(c,this,g).call(this)})}),d(c,this,b).call(this),d(c,this,g).call(this)}updated(t){(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&d(c,this,b).call(this),t.has("itemsGap")&&(d(c,this,g).call(this),this._measureContent()),t.has("expanded")&&(d(c,this,g).call(this),this.dispatchEvent(new CustomEvent("expandedchange",{detail:{expanded:this.expanded},bubbles:!0,composed:!0})))}_measureContent(t=!0){if(this.variant==="height"){const e=this.shadowRoot?.querySelector("slot");if(e){const i=e.assignedNodes({flatten:!0});let s=0;i.forEach(r=>{if(r.nodeType===Node.ELEMENT_NODE){const m=r;s+=m.offsetHeight||m.scrollHeight||0}});const p=s;p!==this._contentHeight&&(this._contentHeight=p,t&&this.requestUpdate())}}}_countElements(t=!0){if(this.variant==="elements"){const e=this.shadowRoot?.querySelector("slot");if(e){const i=e.assignedNodes({flatten:!0}).filter(s=>s.nodeType===Node.ELEMENT_NODE).length;i!==this._elementCount&&(this._elementCount=i,t&&this.requestUpdate())}}}render(){if(this.variant==="height"){const t=this.expanded?`${this._contentHeight}px`:`${this.collapsedHeight}px`,e=this._contentHeight>this.collapsedHeight;return h`
|
|
2
|
-
<div
|
|
3
|
-
class="collapse-content"
|
|
4
|
-
id="${this._contentId}"
|
|
5
|
-
style="max-height: ${t};"
|
|
6
|
-
role="region"
|
|
7
|
-
aria-label="${this._regionLabel}"
|
|
8
|
-
>
|
|
9
|
-
<slot></slot>
|
|
10
|
-
${e&&!this.expanded?h`<div class="collapse-gradient-overlay"></div>`:""}
|
|
11
|
-
</div>
|
|
12
|
-
${e?h`
|
|
13
|
-
<scb-button
|
|
14
|
-
id="${this._contentId}-button"
|
|
15
|
-
@click="${this.toggle}"
|
|
16
|
-
variant="text"
|
|
17
|
-
label="${this.expanded?this.collapseButtonLabel:this.expandButtonLabel}"
|
|
18
|
-
icon="${this.expanded?"keyboard_arrow_up":"keyboard_arrow_down"}"
|
|
19
|
-
aria-controls="${this._contentId}"
|
|
20
|
-
aria-expanded="${this.expanded?"true":"false"}"
|
|
21
|
-
>
|
|
22
|
-
</scb-button>
|
|
23
|
-
`:""}
|
|
24
|
-
`}else{const t=typeof this.visibleElements=="string"?parseInt(this.visibleElements,10):this.visibleElements,e=this._elementCount>t;return setTimeout(()=>{const i=this.shadowRoot?.querySelector("slot");i&&i.assignedNodes({flatten:!0}).filter(s=>s.nodeType===Node.ELEMENT_NODE).forEach((s,p)=>{const r=s;!this.expanded&&p>=t?r.classList.add("scb-collapsed-hidden"):r.classList.remove("scb-collapsed-hidden")})},0),h`
|
|
25
|
-
<div
|
|
26
|
-
class="collapse-content"
|
|
27
|
-
id="${this._contentId}"
|
|
28
|
-
role="region"
|
|
29
|
-
aria-label="${this._regionLabel}"
|
|
30
|
-
>
|
|
31
|
-
<slot></slot>
|
|
32
|
-
</div>
|
|
33
|
-
${e?h`
|
|
34
|
-
<scb-button
|
|
35
|
-
id="${this._contentId}-button"
|
|
36
|
-
@click="${this.toggle}"
|
|
37
|
-
variant="text"
|
|
38
|
-
label="${this.expanded?this.collapseButtonLabel:this.expandButtonLabel}"
|
|
39
|
-
icon="${this.expanded?"keyboard_arrow_up":"keyboard_arrow_down"}"
|
|
40
|
-
aria-controls="${this._contentId}"
|
|
41
|
-
aria-expanded="${this.expanded?"true":"false"}"
|
|
42
|
-
>
|
|
43
|
-
</scb-button>
|
|
44
|
-
`:""}
|
|
45
|
-
`}}},u.styles=v`
|
|
46
|
-
:host {
|
|
47
|
-
display: block;
|
|
48
|
-
box-sizing: border-box;
|
|
49
|
-
margin-block-start: var(--scb-collapse-spacing-block-start, 0);
|
|
50
|
-
margin-block-end: var(--scb-collapse-spacing-block-end, 0);
|
|
51
|
-
margin-inline-start: var(--scb-collapse-spacing-inline-start, 0);
|
|
52
|
-
margin-inline-end: var(--scb-collapse-spacing-inline-end, 0);
|
|
53
|
-
}
|
|
54
|
-
.collapse-content {
|
|
55
|
-
overflow: hidden;
|
|
56
|
-
transition: max-height var(--motion-duration-medium) var(--motion-easing-standard);
|
|
57
|
-
}
|
|
58
|
-
.collapse-gradient-overlay {
|
|
59
|
-
position: absolute;
|
|
60
|
-
left: 0;
|
|
61
|
-
right: 0;
|
|
62
|
-
bottom: 0;
|
|
63
|
-
height: 48px;
|
|
64
|
-
pointer-events: none;
|
|
65
|
-
background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--md-sys-color-surface) 100%);
|
|
66
|
-
z-index: 1;
|
|
67
|
-
}
|
|
68
|
-
.collapse-content {
|
|
69
|
-
position: relative;
|
|
70
|
-
}
|
|
71
|
-
scb-button {
|
|
72
|
-
margin-top: 8px;
|
|
73
|
-
}
|
|
74
|
-
::slotted(.scb-collapsed-hidden) {
|
|
75
|
-
max-height: 0 !important;
|
|
76
|
-
opacity: 0;
|
|
77
|
-
overflow: hidden;
|
|
78
|
-
transition: max-height var(--motion-duration-medium) var(--motion-easing-standard), opacity var(--motion-duration-medium) var(--motion-easing-standard);
|
|
79
|
-
pointer-events: none;
|
|
80
|
-
margin: 0 !important;
|
|
81
|
-
padding: 0 !important;
|
|
82
|
-
}
|
|
83
|
-
::slotted(*) {
|
|
84
|
-
max-height: 1000px;
|
|
85
|
-
transition: max-height var(--motion-duration-medium) var(--motion-easing-standard), opacity var(--motion-duration-medium) var(--motion-easing-standard);
|
|
86
|
-
overflow: hidden;
|
|
87
|
-
display: block;
|
|
88
|
-
}
|
|
89
|
-
`,u);function b(){const l=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??l,e=this.mapSpacingToken(this.spacingBottom)??l,i=this.mapSpacingToken(this.spacingLeft),s=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-collapse-spacing-block-start",t):this.style.removeProperty("--scb-collapse-spacing-block-start"),e?this.style.setProperty("--scb-collapse-spacing-block-end",e):this.style.removeProperty("--scb-collapse-spacing-block-end"),i?this.style.setProperty("--scb-collapse-spacing-inline-start",i):this.style.removeProperty("--scb-collapse-spacing-inline-start"),s?this.style.setProperty("--scb-collapse-spacing-inline-end",s):this.style.removeProperty("--scb-collapse-spacing-inline-end")}function g(){const l=this.mapSpacingToken(this.itemsGap);l?this.style.setProperty("--scb-collapse-items-gap",l):this.style.removeProperty("--scb-collapse-items-gap");const t=this.shadowRoot?.querySelector("slot");t&&t.assignedNodes({flatten:!0}).filter(e=>e.nodeType===Node.ELEMENT_NODE).forEach((e,i)=>{const s=e;i===0||!l?s.style.removeProperty("margin-block-start"):s.style.setProperty("margin-block-start","var(--scb-collapse-items-gap)")})}n([a({type:String})],o.prototype,"variant",void 0);n([a({type:Number,attribute:"collapsed-height",reflect:!0})],o.prototype,"collapsedHeight",void 0);n([a({type:Number,attribute:"visible-elements",reflect:!0})],o.prototype,"visibleElements",void 0);n([a({type:Boolean,reflect:!0})],o.prototype,"expanded",void 0);n([a({type:String,attribute:"expand-button-label",reflect:!0})],o.prototype,"expandButtonLabel",void 0);n([a({type:String,attribute:"collapse-button-label",reflect:!0})],o.prototype,"collapseButtonLabel",void 0);n([a({type:String,reflect:!0})],o.prototype,"spacing",void 0);n([a({type:String,attribute:"spacing-top",reflect:!0})],o.prototype,"spacingTop",void 0);n([a({type:String,attribute:"spacing-bottom",reflect:!0})],o.prototype,"spacingBottom",void 0);n([a({type:String,attribute:"spacing-left",reflect:!0})],o.prototype,"spacingLeft",void 0);n([a({type:String,attribute:"spacing-right",reflect:!0})],o.prototype,"spacingRight",void 0);n([a({type:String,attribute:"items-gap",reflect:!0})],o.prototype,"itemsGap",void 0);o=n([y("scb-collapse")],o);export{o as ScbCollapse};
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import{_ as d,b as h,g as u,h as n,y as g}from"../../../../../../../../vendor/vendor.js";import"../../../../../../../../vendor/vendor-lit.js";import{t as s}from"../../../../../../../../vendor/decorate.js";import"../scb-button/scb-button.js";(function(){try{var r=typeof globalThis<"u"?globalThis:window;if(!r.__scb_ce_guard_installed__){r.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,i,a){try{customElements.get(e)||t(e,i,a)}catch(l){var c=String(l||"");if(c.indexOf("already been used")===-1&&c.indexOf("NotSupportedError")===-1)throw l}}}}catch{}})();var p,o=(p=class extends d{constructor(...t){super(...t),this.open=!0,this.autoRemove=!0,this.title="",this.supportingText="",this.ariaLabel="Cookie-inställningar",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this._updateButtonWidth=()=>{const e=window.innerWidth<=480,i=this.shadowRoot.querySelector('slot[name="buttons"]');i&&i.assignedElements().forEach(a=>{e?a.setAttribute("full-width",""):a.removeAttribute("full-width")})}}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}applySpacing(){const t=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??t,i=this.mapSpacingToken(this.spacingBottom)??t,a=this.mapSpacingToken(this.spacingLeft),c=this.mapSpacingToken(this.spacingRight);e?this.style.setProperty("--scb-cookies-consent-spacing-block-start",e):this.style.removeProperty("--scb-cookies-consent-spacing-block-start"),i?this.style.setProperty("--scb-cookies-consent-spacing-block-end",i):this.style.removeProperty("--scb-cookies-consent-spacing-block-end"),a?this.style.setProperty("--scb-cookies-consent-spacing-inline-start",a):this.style.removeProperty("--scb-cookies-consent-spacing-inline-start"),c?this.style.setProperty("--scb-cookies-consent-spacing-inline-end",c):this.style.removeProperty("--scb-cookies-consent-spacing-inline-end")}firstUpdated(t){this._updateButtonWidth(),window.addEventListener("resize",this._updateButtonWidth),this.addEventListener("click",e=>{const i=e.target;i.slot==="buttons"&&(i.id==="accept-btn"?this.closeAndRemove("cookies-accept"):i.id==="decline-btn"?this.closeAndRemove("cookies-decline"):i.id==="handle-btn"&&this.closeAndRemove("cookies-handle"))}),this.applySpacing()}updated(t){super.updated(t),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&this.applySpacing(),t.has("open")&&this.open&&this._updateButtonWidth()}connectedCallback(){super.connectedCallback(),this.id||(this.id="cookie-consent")}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._updateButtonWidth)}closeAndRemove(t){this.dispatchEvent(new CustomEvent(t));const e=t.includes("-")?t.replace(/-/g,""):"";e&&e!==t&&this.dispatchEvent(new CustomEvent(e)),this.autoRemove?this.remove():this.open=!1}render(){return this.open?g`
|
|
2
|
-
<div role="dialog" class="cookies-consent" aria-modal="true" aria-label=${this.ariaLabel}>
|
|
3
|
-
<h2>${this.title}</h2>
|
|
4
|
-
<div>
|
|
5
|
-
${this.supportingText}
|
|
6
|
-
</div>
|
|
7
|
-
<div class="button-container">
|
|
8
|
-
<slot name="buttons"></slot>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
`:null}},p.styles=h`
|
|
12
|
-
:host {
|
|
13
|
-
position: fixed;
|
|
14
|
-
width: 100%;
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
bottom: 32px;
|
|
18
|
-
left: 32px;
|
|
19
|
-
background: #fff;
|
|
20
|
-
color: #222;
|
|
21
|
-
box-shadow: 0 8px 10px -6px #0000001a, 0 20px 25px -5px #0000001a;
|
|
22
|
-
color: var(--md-sys-color-on-surface, #0f0865);
|
|
23
|
-
background: var(--md-sys-color-surface, #fff);
|
|
24
|
-
border-radius: 16px;
|
|
25
|
-
padding: 36px 0;
|
|
26
|
-
z-index: 1000;
|
|
27
|
-
gap: 16px;
|
|
28
|
-
font-family: 'Inter', sans-serif;
|
|
29
|
-
|
|
30
|
-
margin-block-start: var(--scb-cookies-consent-spacing-block-start, 0);
|
|
31
|
-
margin-block-end: var(--scb-cookies-consent-spacing-block-end, 0);
|
|
32
|
-
margin-inline-start: var(--scb-cookies-consent-spacing-inline-start, 0);
|
|
33
|
-
margin-inline-end: var(--scb-cookies-consent-spacing-inline-end, 0);
|
|
34
|
-
}
|
|
35
|
-
.cookies-consent {
|
|
36
|
-
display: flex;
|
|
37
|
-
flex-direction: column;
|
|
38
|
-
gap: 16px;
|
|
39
|
-
padding: 0 20px;
|
|
40
|
-
box-sizing: border-box;
|
|
41
|
-
margin: 0 auto;
|
|
42
|
-
max-width: 1440px;
|
|
43
|
-
position: relative;
|
|
44
|
-
width: 100%;
|
|
45
|
-
}
|
|
46
|
-
.cookies-consent h2 {
|
|
47
|
-
font-size: 16px;
|
|
48
|
-
line-height: 24px;
|
|
49
|
-
margin: 0;
|
|
50
|
-
hyphens: auto;
|
|
51
|
-
}
|
|
52
|
-
.button-container {
|
|
53
|
-
display: flex;
|
|
54
|
-
flex-direction: column;
|
|
55
|
-
gap: 8px;
|
|
56
|
-
justify-content: flex-start;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
::slotted{
|
|
60
|
-
md-filled-button {
|
|
61
|
-
width: 100%;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
@media only screen and (min-width: 481px) {
|
|
66
|
-
:host {
|
|
67
|
-
width: auto;
|
|
68
|
-
max-width: 650px;
|
|
69
|
-
}
|
|
70
|
-
.button-container {
|
|
71
|
-
flex-direction: row;
|
|
72
|
-
display: flex;
|
|
73
|
-
flex-wrap: wrap;
|
|
74
|
-
gap: 8px;
|
|
75
|
-
justify-content: flex-start;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
`,p);s([n({type:Boolean})],o.prototype,"open",void 0);s([n({type:Boolean,attribute:"auto-remove",converter:{fromAttribute:r=>r!=="false"}})],o.prototype,"autoRemove",void 0);s([n({type:String,reflect:!0})],o.prototype,"title",void 0);s([n({type:String,attribute:"supporting-text",reflect:!0})],o.prototype,"supportingText",void 0);s([n({type:String,attribute:"aria-label",reflect:!0})],o.prototype,"ariaLabel",void 0);s([n({type:String,reflect:!0})],o.prototype,"spacing",void 0);s([n({type:String,attribute:"spacing-top",reflect:!0})],o.prototype,"spacingTop",void 0);s([n({type:String,attribute:"spacing-bottom",reflect:!0})],o.prototype,"spacingBottom",void 0);s([n({type:String,attribute:"spacing-left",reflect:!0})],o.prototype,"spacingLeft",void 0);s([n({type:String,attribute:"spacing-right",reflect:!0})],o.prototype,"spacingRight",void 0);o=s([u("scb-cookies-consent")],o);export{o as ScbCookiesConsent};
|