scb-wc-test 0.1.362 → 0.1.364
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 +5 -0
- package/index.js +1 -85
- package/mvc/components/scb-accordion/scb-accordion-item.js +11 -11
- package/mvc/components/scb-accordion/scb-accordion.js +7 -7
- package/mvc/components/scb-app-bar/scb-app-bar.js +11 -11
- package/mvc/components/scb-avatar/scb-avatar.js +11 -11
- package/mvc/components/scb-badge/scb-badge.js +6 -6
- package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +3 -3
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +12 -12
- package/mvc/components/scb-button/scb-button.js +30 -30
- package/mvc/components/scb-calendar/scb-calendar-event.js +3 -3
- package/mvc/components/scb-calendar/scb-calendar.js +21 -21
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +16 -16
- package/mvc/components/scb-card/scb-card.js +45 -45
- package/mvc/components/scb-checkbox/scb-checkbox-group.js +4 -4
- package/mvc/components/scb-checkbox/scb-checkbox.js +7 -7
- package/mvc/components/scb-chevron/scb-chevron.js +3 -3
- package/mvc/components/scb-chip/scb-chip.js +6 -6
- package/mvc/components/scb-collapse/scb-collapse.js +4 -4
- package/mvc/components/scb-cookies-consent/scb-cookies-consent.js +3 -3
- package/mvc/components/scb-datepicker/scb-datepicker.js +18 -18
- package/mvc/components/scb-dialog/scb-dialog.js +25 -25
- package/mvc/components/scb-divider/scb-divider.js +2 -2
- package/mvc/components/scb-drawer/scb-drawer.js +6 -6
- package/mvc/components/scb-drop-zone/scb-drop-zone.js +28 -28
- package/mvc/components/scb-dropdown/scb-dropdown.js +9 -9
- package/mvc/components/scb-fab/scb-fab.js +6 -6
- package/mvc/components/scb-fact-card/scb-fact-card-content.js +6 -6
- package/mvc/components/scb-fact-card/scb-fact-card.js +7 -7
- package/mvc/components/scb-footer/scb-footer-section.js +2 -2
- package/mvc/components/scb-footer/scb-footer.js +33 -33
- package/mvc/components/scb-gallery-grid/scb-gallery-grid.js +10 -10
- package/mvc/components/scb-grid/scb-grid-item.js +2 -2
- package/mvc/components/scb-grid/scb-grid.js +2 -2
- package/mvc/components/scb-grid/scb-stack.js +2 -2
- package/mvc/components/scb-header/scb-header-menu-group.js +1 -1
- package/mvc/components/scb-header/scb-header-menu-item.js +2 -2
- package/mvc/components/scb-header/scb-header-tab.js +2 -2
- package/mvc/components/scb-header/scb-header-utility.js +1 -1
- package/mvc/components/scb-header/scb-header.js +35 -35
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +7 -7
- package/mvc/components/scb-icon-button/scb-icon-button.js +26 -26
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +15 -15
- package/mvc/components/scb-link/scb-link.js +9 -9
- package/mvc/components/scb-list/scb-list-item.js +19 -19
- package/mvc/components/scb-list/scb-list.js +4 -4
- package/mvc/components/scb-menu/scb-menu-item.js +9 -9
- package/mvc/components/scb-menu/scb-menu-section.js +4 -4
- package/mvc/components/scb-menu/scb-menu.js +5 -5
- package/mvc/components/scb-menu/scb-sub-menu.js +3 -3
- package/mvc/components/scb-nav/scb-nav-item.js +2 -2
- package/mvc/components/scb-nav/scb-nav.js +3 -3
- package/mvc/components/scb-notification-card/scb-notification-card.js +13 -13
- package/mvc/components/scb-options-menu/scb-options-menu-item.js +3 -3
- package/mvc/components/scb-options-menu/scb-options-menu.js +3 -3
- package/mvc/components/scb-options-menu/scb-options-sub-menu.js +3 -3
- package/mvc/components/scb-overlay/scb-overlay.js +5 -5
- package/mvc/components/scb-pagination/scb-pagination.js +26 -26
- package/mvc/components/scb-progress-indicator/scb-progress-indicator.js +6 -6
- package/mvc/components/scb-progress-stepper/scb-progress-step.js +8 -8
- package/mvc/components/scb-progress-stepper/scb-progress-stepper.js +3 -3
- package/mvc/components/scb-radio-button/scb-radio-button.js +9 -9
- package/mvc/components/scb-radio-button/scb-radio-group.js +5 -5
- package/mvc/components/scb-scrollspy/scb-scrollspy.js +7 -7
- package/mvc/components/scb-search/scb-search.js +7 -7
- package/mvc/components/scb-segmented-button/scb-segmented-button.js +2 -2
- package/mvc/components/scb-segmented-button/scb-segmented-item.js +6 -6
- package/mvc/components/scb-select/scb-select-option.js +6 -6
- package/mvc/components/scb-select/scb-select.js +6 -6
- package/mvc/components/scb-skeleton/scb-skeleton.js +3 -3
- package/mvc/components/scb-slider/scb-slider.js +4 -4
- package/mvc/components/scb-snackbar/scb-snackbar.js +10 -10
- package/mvc/components/scb-status-pill/scb-status-pill.js +4 -4
- package/mvc/components/scb-stepper/scb-step.js +11 -11
- package/mvc/components/scb-stepper/scb-stepper.js +3 -3
- package/mvc/components/scb-switch/scb-switch.js +5 -5
- package/mvc/components/scb-table/scb-table.js +3 -3
- package/mvc/components/scb-table-advanced/scb-table-advanced.js +4 -4
- package/mvc/components/scb-tabs/scb-primary-tab.js +2 -2
- package/mvc/components/scb-tabs/scb-secondary-tab.js +2 -2
- package/mvc/components/scb-tabs/scb-tabs.js +2 -2
- package/mvc/components/scb-textfield/scb-textfield.js +24 -24
- package/mvc/components/scb-toc/scb-toc-item.js +5 -5
- package/mvc/components/scb-toc/scb-toc.js +4 -4
- package/mvc/components/scb-tooltip/scb-tooltip.js +13 -11
- package/mvc/components/scb-vignette/scb-vignette.js +3 -3
- package/mvc/components/scb-viz/scb-viz-actions-runtime.js +2 -2
- package/mvc/components/scb-viz/scb-viz-print-runtime.js +13 -13
- 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 +14 -14
- package/mvc/vendor/assertClassBrand.js +1 -0
- package/mvc/vendor/classPrivateFieldGet2.js +1 -0
- package/mvc/vendor/decorate.js +1 -0
- package/mvc/vendor/preload-helper.js +1 -1
- package/mvc/vendor/vendor-material.js +117 -549
- package/mvc/vendor/vendor.js +4 -84
- package/package.json +10 -2
- package/scb-accordion/scb-accordion-item.js +166 -175
- package/scb-accordion/scb-accordion.js +119 -122
- package/scb-app-bar/scb-app-bar.js +206 -200
- package/scb-avatar/scb-avatar.js +104 -120
- package/scb-badge/scb-badge.js +94 -97
- package/scb-breadcrumb/scb-breadcrumb-item.js +47 -59
- package/scb-breadcrumb/scb-breadcrumb.js +166 -169
- package/scb-button/scb-button.js +138 -169
- package/scb-calendar/scb-calendar-event.js +43 -55
- package/scb-calendar/scb-calendar.js +582 -520
- package/scb-calendar-card/scb-calendar-card.js +187 -174
- package/scb-card/scb-card.js +694 -689
- package/scb-checkbox/scb-checkbox-group.js +75 -80
- package/scb-checkbox/scb-checkbox.js +195 -218
- package/scb-chevron/scb-chevron.js +33 -40
- package/scb-chip/scb-chip.js +193 -237
- package/scb-collapse/scb-collapse.js +185 -196
- package/scb-cookies-consent/scb-cookies-consent.js +95 -102
- package/scb-datepicker/scb-datepicker.js +289 -330
- package/scb-dialog/scb-dialog.js +354 -411
- package/scb-divider/scb-divider.js +50 -58
- package/scb-drawer/scb-drawer.js +193 -237
- package/scb-drop-zone/scb-drop-zone.js +555 -588
- package/scb-dropdown/scb-dropdown.js +357 -424
- package/scb-fab/scb-fab.js +89 -98
- package/scb-fact-card/scb-fact-card-content.js +44 -47
- package/scb-fact-card/scb-fact-card.js +165 -160
- package/scb-footer/scb-footer-section.js +20 -25
- package/scb-footer/scb-footer.js +189 -201
- package/scb-gallery-grid/scb-gallery-grid.js +129 -150
- package/scb-grid/scb-grid-item.js +70 -69
- package/scb-grid/scb-grid.js +100 -90
- package/scb-grid/scb-stack.js +87 -88
- package/scb-header/scb-header-menu-group.js +20 -20
- package/scb-header/scb-header-menu-item.js +17 -30
- package/scb-header/scb-header-tab.js +20 -30
- package/scb-header/scb-header-utility.js +26 -26
- package/scb-header/scb-header.js +956 -1082
- package/scb-horizontal-scroller/scb-horizontal-scroller.js +213 -225
- package/scb-icon-button/scb-icon-button.js +220 -264
- package/scb-keyfigure-card/scb-keyfigure-card.js +160 -166
- package/scb-link/scb-link.js +87 -91
- package/scb-list/scb-list-item.js +158 -184
- package/scb-list/scb-list.js +98 -106
- package/scb-menu/scb-menu-item.js +188 -211
- package/scb-menu/scb-menu-section.js +24 -31
- package/scb-menu/scb-menu.js +86 -98
- package/scb-menu/scb-sub-menu.js +30 -43
- package/scb-nav/scb-nav-item.js +68 -74
- package/scb-nav/scb-nav.js +164 -172
- package/scb-notification-card/scb-notification-card.js +157 -182
- package/scb-options-menu/scb-options-menu-item.js +167 -164
- package/scb-options-menu/scb-options-menu.js +154 -157
- package/scb-options-menu/scb-options-sub-menu.js +39 -44
- package/scb-overlay/scb-overlay.js +57 -65
- package/scb-pagination/scb-pagination.js +253 -283
- package/scb-progress-indicator/scb-progress-indicator.js +134 -140
- package/scb-progress-stepper/scb-progress-step.js +92 -99
- package/scb-progress-stepper/scb-progress-stepper.js +77 -79
- package/scb-radio-button/scb-radio-button.js +138 -156
- package/scb-radio-button/scb-radio-group.js +185 -237
- package/scb-scrollspy/scb-scrollspy.js +610 -586
- package/scb-search/scb-search.js +392 -397
- package/scb-segmented-button/scb-segmented-button.js +182 -206
- package/scb-segmented-button/scb-segmented-item.js +62 -68
- package/scb-select/scb-select-option.js +33 -51
- package/scb-select/scb-select.js +274 -286
- package/scb-skeleton/scb-skeleton.js +58 -68
- package/scb-slider/scb-slider.js +75 -83
- package/scb-snackbar/scb-snackbar.js +132 -152
- package/scb-status-pill/scb-status-pill.js +57 -64
- package/scb-stepper/scb-step.js +127 -130
- package/scb-stepper/scb-stepper.js +195 -224
- package/scb-switch/scb-switch.js +135 -154
- package/scb-table/scb-table.js +154 -175
- package/scb-table-advanced/scb-table-advanced.js +273 -306
- package/scb-tabs/scb-primary-tab.js +62 -83
- package/scb-tabs/scb-secondary-tab.js +62 -87
- package/scb-tabs/scb-tabs.js +71 -81
- package/scb-textfield/scb-textfield.js +454 -488
- package/scb-toc/scb-toc-item.js +222 -229
- package/scb-toc/scb-toc.js +86 -95
- package/scb-tooltip/scb-tooltip.d.ts +2 -0
- package/scb-tooltip/scb-tooltip.js +257 -359
- package/scb-vignette/scb-vignette.js +55 -59
- package/scb-viz/scb-viz-actions-runtime.js +142 -165
- package/scb-viz/scb-viz-print-runtime.js +43 -46
- package/scb-viz/scb-viz-series-differentiation-registry.js +109 -98
- package/scb-viz/scb-viz-series-differentiation-runtime.js +120 -162
- package/scb-viz/scb-viz-table-runtime.js +81 -88
- package/scb-viz/scb-viz.js +1676 -1878
- package/scb-wc-test.bundle.js +3577 -4393
package/all.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import './all.js';
|
|
2
2
|
import './blazor/scb-blazor-bridge.js';
|
|
3
3
|
import './index.js';
|
|
4
|
+
import './index2.js';
|
|
4
5
|
import './mvc/components/all.js';
|
|
5
6
|
import './mvc/components/scb-accordion/scb-accordion-item.js';
|
|
6
7
|
import './mvc/components/scb-accordion/scb-accordion.js';
|
|
@@ -93,6 +94,9 @@ import './mvc/components/scb-viz/scb-viz-series-differentiation-runtime.js';
|
|
|
93
94
|
import './mvc/components/scb-viz/scb-viz-table-runtime.js';
|
|
94
95
|
import './mvc/components/scb-viz/scb-viz.js';
|
|
95
96
|
import './mvc/scb-blazor-bridge.js';
|
|
97
|
+
import './mvc/vendor/assertClassBrand.js';
|
|
98
|
+
import './mvc/vendor/classPrivateFieldGet2.js';
|
|
99
|
+
import './mvc/vendor/decorate.js';
|
|
96
100
|
import './mvc/vendor/preload-helper.js';
|
|
97
101
|
import './mvc/vendor/vendor-lit.js';
|
|
98
102
|
import './mvc/vendor/vendor-material.js';
|
|
@@ -187,3 +191,4 @@ import './scb-viz/scb-viz-series-differentiation-registry.js';
|
|
|
187
191
|
import './scb-viz/scb-viz-series-differentiation-runtime.js';
|
|
188
192
|
import './scb-viz/scb-viz-table-runtime.js';
|
|
189
193
|
import './scb-viz/scb-viz.js';
|
|
194
|
+
import './_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.js';
|
package/index.js
CHANGED
|
@@ -1,85 +1 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./scb-accordion/scb-accordion.js";
|
|
3
|
-
import "./scb-app-bar/scb-app-bar.js";
|
|
4
|
-
import "./scb-avatar/scb-avatar.js";
|
|
5
|
-
import "./scb-badge/scb-badge.js";
|
|
6
|
-
import "./scb-breadcrumb/scb-breadcrumb-item.js";
|
|
7
|
-
import "./scb-breadcrumb/scb-breadcrumb.js";
|
|
8
|
-
import "./scb-button/scb-button.js";
|
|
9
|
-
import "./scb-calendar/scb-calendar-event.js";
|
|
10
|
-
import "./scb-calendar/scb-calendar.js";
|
|
11
|
-
import "./scb-calendar-card/scb-calendar-card.js";
|
|
12
|
-
import "./scb-card/scb-card.js";
|
|
13
|
-
import "./scb-checkbox/scb-checkbox-group.js";
|
|
14
|
-
import "./scb-checkbox/scb-checkbox.js";
|
|
15
|
-
import "./scb-chevron/scb-chevron.js";
|
|
16
|
-
import "./scb-chip/scb-chip.js";
|
|
17
|
-
import "./scb-collapse/scb-collapse.js";
|
|
18
|
-
import "./scb-cookies-consent/scb-cookies-consent.js";
|
|
19
|
-
import "./scb-datepicker/scb-datepicker.js";
|
|
20
|
-
import "./scb-dialog/scb-dialog.js";
|
|
21
|
-
import "./scb-divider/scb-divider.js";
|
|
22
|
-
import "./scb-drawer/scb-drawer.js";
|
|
23
|
-
import "./scb-drop-zone/scb-drop-zone.js";
|
|
24
|
-
import "./scb-dropdown/scb-dropdown.js";
|
|
25
|
-
import "./scb-fab/scb-fab.js";
|
|
26
|
-
import "./scb-fact-card/scb-fact-card-content.js";
|
|
27
|
-
import "./scb-fact-card/scb-fact-card.js";
|
|
28
|
-
import "./scb-footer/scb-footer-section.js";
|
|
29
|
-
import "./scb-footer/scb-footer.js";
|
|
30
|
-
import "./scb-gallery-grid/scb-gallery-grid.js";
|
|
31
|
-
import "./scb-grid/scb-grid-item.js";
|
|
32
|
-
import "./scb-grid/scb-grid.js";
|
|
33
|
-
import "./scb-grid/scb-stack.js";
|
|
34
|
-
import "./scb-header/scb-header-menu-group.js";
|
|
35
|
-
import "./scb-header/scb-header-menu-item.js";
|
|
36
|
-
import "./scb-header/scb-header-tab.js";
|
|
37
|
-
import "./scb-header/scb-header-utility.js";
|
|
38
|
-
import "./scb-header/scb-header.js";
|
|
39
|
-
import "./scb-horizontal-scroller/scb-horizontal-scroller.js";
|
|
40
|
-
import "./scb-icon-button/scb-icon-button.js";
|
|
41
|
-
import "./scb-keyfigure-card/scb-keyfigure-card.js";
|
|
42
|
-
import "./scb-link/scb-link.js";
|
|
43
|
-
import "./scb-list/scb-list-item.js";
|
|
44
|
-
import "./scb-list/scb-list.js";
|
|
45
|
-
import "./scb-menu/scb-menu-item.js";
|
|
46
|
-
import "./scb-menu/scb-menu-section.js";
|
|
47
|
-
import "./scb-menu/scb-menu.js";
|
|
48
|
-
import "./scb-menu/scb-sub-menu.js";
|
|
49
|
-
import "./scb-nav/scb-nav-item.js";
|
|
50
|
-
import "./scb-nav/scb-nav.js";
|
|
51
|
-
import "./scb-notification-card/scb-notification-card.js";
|
|
52
|
-
import "./scb-options-menu/scb-options-menu-item.js";
|
|
53
|
-
import "./scb-options-menu/scb-options-menu.js";
|
|
54
|
-
import "./scb-options-menu/scb-options-sub-menu.js";
|
|
55
|
-
import "./scb-overlay/scb-overlay.js";
|
|
56
|
-
import "./scb-pagination/scb-pagination.js";
|
|
57
|
-
import "./scb-progress-indicator/scb-progress-indicator.js";
|
|
58
|
-
import "./scb-progress-stepper/scb-progress-step.js";
|
|
59
|
-
import "./scb-progress-stepper/scb-progress-stepper.js";
|
|
60
|
-
import "./scb-radio-button/scb-radio-button.js";
|
|
61
|
-
import "./scb-radio-button/scb-radio-group.js";
|
|
62
|
-
import "./scb-scrollspy/scb-scrollspy.js";
|
|
63
|
-
import "./scb-search/scb-search.js";
|
|
64
|
-
import "./scb-segmented-button/scb-segmented-button.js";
|
|
65
|
-
import "./scb-segmented-button/scb-segmented-item.js";
|
|
66
|
-
import "./scb-select/scb-select-option.js";
|
|
67
|
-
import "./scb-select/scb-select.js";
|
|
68
|
-
import "./scb-skeleton/scb-skeleton.js";
|
|
69
|
-
import "./scb-slider/scb-slider.js";
|
|
70
|
-
import "./scb-snackbar/scb-snackbar.js";
|
|
71
|
-
import "./scb-status-pill/scb-status-pill.js";
|
|
72
|
-
import "./scb-stepper/scb-step.js";
|
|
73
|
-
import "./scb-stepper/scb-stepper.js";
|
|
74
|
-
import "./scb-switch/scb-switch.js";
|
|
75
|
-
import "./scb-table/scb-table.js";
|
|
76
|
-
import "./scb-table-advanced/scb-table-advanced.js";
|
|
77
|
-
import "./scb-tabs/scb-primary-tab.js";
|
|
78
|
-
import "./scb-tabs/scb-secondary-tab.js";
|
|
79
|
-
import "./scb-tabs/scb-tabs.js";
|
|
80
|
-
import "./scb-textfield/scb-textfield.js";
|
|
81
|
-
import "./scb-toc/scb-toc-item.js";
|
|
82
|
-
import "./scb-toc/scb-toc.js";
|
|
83
|
-
import "./scb-tooltip/scb-tooltip.js";
|
|
84
|
-
import "./scb-vignette/scb-vignette.js";
|
|
85
|
-
import "./scb-viz/scb-viz.js";
|
|
1
|
+
import "./index2.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import"../../vendor/vendor-material.js";import{_ as b,b as m,g as h,h as o,v as l,y as s}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as r}from"../../vendor/decorate.js";import"../scb-chevron/scb-chevron.js";(function(){try{var g=typeof globalThis<"u"?globalThis:window;if(!g.__scb_ce_guard_installed__){g.__scb_ce_guard_installed__=!0;var i=customElements.define.bind(customElements);customElements.define=function(t,e,v){try{customElements.get(t)||i(t,e,v)}catch(c){var n=String(c||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();var d,p,a=(d=class extends b{constructor(...i){super(...i),this.open=!1,this.title="",this.content="",this.overline="",this.supportingText="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.imgHrefImage="",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.density=0,this._unique=p._uid(),this._ignoreNextNativeTitleAttrChange=!1,this._onSummaryClick=t=>{t.preventDefault();const e=!this.open;this.closest("scb-accordion")?.onItemToggled?.(this,e),this.setOpen(e)},this._onToggle=t=>{const e=t.currentTarget;e.open||(e.open=!0),this._applyInertByOpen()}}static _uid(){return globalThis.crypto?.randomUUID?.()??`${p._uidPrefix}-${++p._uidSeq}`}static get observedAttributes(){const i=super.observedAttributes||[];return i.includes("title")?i:[...i,"title"]}attributeChangedCallback(i,t,e){if(i==="title"&&this._ignoreNextNativeTitleAttrChange){this._ignoreNextNativeTitleAttrChange=!1;return}super.attributeChangedCallback(i,t,e),i==="title"&&e!==null&&(this._ignoreNextNativeTitleAttrChange=!0,this.removeAttribute("title"))}firstUpdated(){this._applyInertByOpen()}_applyInertByOpen(){const i=this.renderRoot.querySelector(".scb-accordion-bottom");i&&(this.open?(i.removeAttribute("inert"),i.setAttribute("aria-hidden","false")):(i.setAttribute("inert",""),i.setAttribute("aria-hidden","true")))}_onKeyDown(i){const t=this.closest("scb-accordion"),e=Array.from(t?.querySelectorAll("scb-accordion-item")||[]).map(c=>c.renderRoot.querySelector("details")?.querySelector(".scb-accordion-top")||null).filter(c=>!!c),v=i.currentTarget,n=e.indexOf(v);switch(i.key){case"ArrowDown":i.preventDefault(),n<e.length-1&&e[n+1].focus();break;case"ArrowUp":i.preventDefault(),n>0&&e[n-1].focus();break;case"Home":i.preventDefault(),e.length&&e[0].focus();break;case"End":i.preventDefault(),e.length&&e[e.length-1].focus();break}}setOpen(i){this.open=!!i;const t=this.renderRoot.querySelector("details");t&&!t.open&&(t.open=!0),this._applyInertByOpen()}updated(i){if(i.has("open")){const t=this.renderRoot.querySelector("details");t&&!t.open&&(t.open=!0),this._applyInertByOpen(),this.dispatchEvent(new CustomEvent("open-changed",{detail:{open:this.open,title:this.title},bubbles:!0,composed:!0}))}}render(){const i=`bottom-${this._unique}`,t=`header-${this._unique}`,e=this.leading?this.leadingVariant==="image"&&this.imgHrefImage?s`<img part="leading-image" class="img" src="${this.imgHrefImage}" alt="" />`:this.leadingVariant==="avatar"?s`
|
|
2
2
|
<scb-avatar
|
|
3
3
|
label=${this.avatarLabel}
|
|
4
4
|
alt=${this.avatarAlt}
|
|
@@ -7,37 +7,37 @@ import{a as g,n,i as v,E as p,x as l,t as b}from"../../vendor/vendor.js";import"
|
|
|
7
7
|
shape="circular"
|
|
8
8
|
variant=${this.avatarVariant}
|
|
9
9
|
></scb-avatar>
|
|
10
|
-
`:this.leadingVariant==="icon"?
|
|
10
|
+
`:this.leadingVariant==="icon"?s`<md-icon>${this.leadingIcon}</md-icon>`:l:l;return s`
|
|
11
11
|
<details class="scb-accordion-item" open @toggle=${this._onToggle}>
|
|
12
12
|
<summary
|
|
13
|
-
id=${
|
|
13
|
+
id=${t}
|
|
14
14
|
class="scb-accordion-top"
|
|
15
|
-
aria-controls=${
|
|
15
|
+
aria-controls=${i}
|
|
16
16
|
@click=${this._onSummaryClick}
|
|
17
17
|
@keydown=${this._onKeyDown}
|
|
18
18
|
>
|
|
19
19
|
<md-ripple></md-ripple>
|
|
20
20
|
|
|
21
|
-
${this.leading?
|
|
21
|
+
${this.leading?s`<div class="leading">${e}</div>`:l}
|
|
22
22
|
|
|
23
23
|
<div class="texts">
|
|
24
|
-
${this.overline?
|
|
24
|
+
${this.overline?s`<div class="overline">${this.overline}</div>`:l}
|
|
25
25
|
<div class="title">${this.title}</div>
|
|
26
|
-
${this.supportingText?
|
|
26
|
+
${this.supportingText?s`<div class="supporting-text">${this.supportingText}</div>`:l}
|
|
27
27
|
</div>
|
|
28
28
|
|
|
29
29
|
<scb-chevron class="chevron" .open=${this.open}></scb-chevron>
|
|
30
30
|
</summary>
|
|
31
31
|
|
|
32
|
-
<div id=${
|
|
32
|
+
<div id=${i} class="scb-accordion-bottom" role="region" aria-labelledby=${t}>
|
|
33
33
|
<div class="bottom-inner">
|
|
34
34
|
<slot>${this.content}</slot>
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
37
|
</details>
|
|
38
38
|
|
|
39
|
-
<md-focus-ring for=${
|
|
40
|
-
`}}
|
|
39
|
+
<md-focus-ring for=${t} inward></md-focus-ring>
|
|
40
|
+
`}},p=d,d._uidPrefix=`uid-${Math.random().toString(36).slice(2)}`,d._uidSeq=0,d.styles=[m`
|
|
41
41
|
:host {
|
|
42
42
|
display: block;
|
|
43
43
|
position: relative;
|
|
@@ -208,4 +208,4 @@ import{a as g,n,i as v,E as p,x as l,t as b}from"../../vendor/vendor.js";import"
|
|
|
208
208
|
@media (prefers-reduced-motion: reduce) {
|
|
209
209
|
md-ripple { display: none; }
|
|
210
210
|
}
|
|
211
|
-
`];r([
|
|
211
|
+
`],d);r([o({type:Boolean,reflect:!0})],a.prototype,"open",void 0);r([o({type:String})],a.prototype,"title",void 0);r([o({type:String})],a.prototype,"content",void 0);r([o({type:String,attribute:"overline"})],a.prototype,"overline",void 0);r([o({type:String,attribute:"supporting-text"})],a.prototype,"supportingText",void 0);r([o({type:Boolean})],a.prototype,"leading",void 0);r([o({type:String,attribute:"leading-variant",reflect:!0})],a.prototype,"leadingVariant",void 0);r([o({type:String,attribute:"leading-icon"})],a.prototype,"leadingIcon",void 0);r([o({type:String,attribute:"img-href-image",reflect:!0})],a.prototype,"imgHrefImage",void 0);r([o({type:String,attribute:"avatar-label"})],a.prototype,"avatarLabel",void 0);r([o({type:String,attribute:"avatar-alt"})],a.prototype,"avatarAlt",void 0);r([o({type:String,attribute:"avatar-variant"})],a.prototype,"avatarVariant",void 0);r([o({type:String,attribute:"avatar-src"})],a.prototype,"avatarSrc",void 0);r([o({type:Number,reflect:!0})],a.prototype,"density",void 0);a=p=r([h("scb-accordion-item")],a);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_ as m,b as v,g as y,h as a,v as _,y as b}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as c}from"../../vendor/decorate.js";import"./scb-accordion-item.js";import{n as k,t as n}from"../../vendor/assertClassBrand.js";import"../scb-button/scb-button.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(i,r,l){try{customElements.get(i)||t(i,r,l)}catch(h){var g=String(h||"");if(g.indexOf("already been used")===-1&&g.indexOf("NotSupportedError")===-1)throw h}}}}catch{}})();var s,p,o=(s=new WeakSet,p=class extends m{constructor(...t){super(...t),k(this,s),this.singleOpen=!1,this.showCloseAll=!1,this.size="large",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0}connectedCallback(){super.connectedCallback(),this.addEventListener("open-changed",n(s,this,f))}disconnectedCallback(){this.removeEventListener("open-changed",n(s,this,f)),super.disconnectedCallback()}render(){const t=!this.singleOpen&&this.showCloseAll,i=t?n(s,this,S).call(this):!1;return b`
|
|
2
2
|
<div class="scb-accordion" ?single-open=${this.singleOpen}>
|
|
3
3
|
${t?b`
|
|
4
4
|
<div class="scb-accordion-actions" role="toolbar" aria-label="Accordionkontroller">
|
|
5
5
|
<scb-button
|
|
6
6
|
variant="text"
|
|
7
|
-
label=${
|
|
8
|
-
@click=${
|
|
7
|
+
label=${i?"Stäng alla":"Öppna alla"}
|
|
8
|
+
@click=${n(s,this,O)}
|
|
9
9
|
></scb-button>
|
|
10
10
|
</div>
|
|
11
|
-
`:
|
|
11
|
+
`:_}
|
|
12
12
|
|
|
13
|
-
<slot @slotchange=${
|
|
13
|
+
<slot @slotchange=${n(s,this,A)}></slot>
|
|
14
14
|
</div>
|
|
15
|
-
`}firstUpdated(){
|
|
15
|
+
`}firstUpdated(){n(s,this,u).call(this),n(s,this,d).call(this)}updated(t){(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&n(s,this,u).call(this),t.has("singleOpen")&&n(s,this,d).call(this)}_getDirectItems(){return Array.from(this.children).filter(t=>t.tagName==="SCB-ACCORDION-ITEM")}onItemToggled(t,i){if(this.singleOpen&&i){this._getDirectItems().forEach(r=>{r!==t&&r.setOpen(!1)});return}!this.singleOpen&&this.showCloseAll&&this.requestUpdate()}mapSpacingToken(t){if(!t)return;const i=String(t).trim();if(i)return/^\d+$/.test(i)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(i,10)))})`:i}},p.styles=v`
|
|
16
16
|
:host {
|
|
17
17
|
display: block;
|
|
18
18
|
margin-block-start: var(--scb-accordion-spacing-block-start, 0);
|
|
@@ -41,4 +41,4 @@ import{a as _,n as l,i as O,E as k,x as b,t as S}from"../../vendor/vendor.js";im
|
|
|
41
41
|
padding-block-start: var(--scb-accordion-actions-padding-block);
|
|
42
42
|
padding-block-end: var(--scb-accordion-actions-padding-block);
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
`,p);function S(){const e=this._getDirectItems();return e.length>0&&e.every(t=>t.open)}function O(){if(this.singleOpen||!this.showCloseAll)return;const e=this._getDirectItems(),t=e.length>0&&e.every(i=>i.open);e.forEach(i=>i.setOpen(!t))}function f(){this.singleOpen||this.showCloseAll&&this.requestUpdate()}function A(){if(this.singleOpen){n(s,this,d).call(this);return}this.showCloseAll&&this.requestUpdate()}function d(){if(!this.singleOpen)return;const e=this._getDirectItems().filter(t=>t.open);e.length<=1||e.slice(1).forEach(t=>t.setOpen(!1))}function u(){const e=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??e,i=this.mapSpacingToken(this.spacingBottom)??e,r=this.mapSpacingToken(this.spacingLeft),l=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-accordion-spacing-block-start",t):this.style.removeProperty("--scb-accordion-spacing-block-start"),i?this.style.setProperty("--scb-accordion-spacing-block-end",i):this.style.removeProperty("--scb-accordion-spacing-block-end"),r?this.style.setProperty("--scb-accordion-spacing-inline-start",r):this.style.removeProperty("--scb-accordion-spacing-inline-start"),l?this.style.setProperty("--scb-accordion-spacing-inline-end",l):this.style.removeProperty("--scb-accordion-spacing-inline-end")}c([a({type:Boolean,attribute:"single-open",reflect:!0})],o.prototype,"singleOpen",void 0);c([a({type:Boolean,attribute:"show-close-all",reflect:!0})],o.prototype,"showCloseAll",void 0);c([a({type:String,reflect:!0})],o.prototype,"size",void 0);c([a({type:String,reflect:!0})],o.prototype,"spacing",void 0);c([a({type:String,attribute:"spacing-top",reflect:!0})],o.prototype,"spacingTop",void 0);c([a({type:String,attribute:"spacing-bottom",reflect:!0})],o.prototype,"spacingBottom",void 0);c([a({type:String,attribute:"spacing-left",reflect:!0})],o.prototype,"spacingLeft",void 0);c([a({type:String,attribute:"spacing-right",reflect:!0})],o.prototype,"spacingRight",void 0);o=c([y("scb-accordion")],o);
|
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_ as z,b as T,g as $,h as o,y as d}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as r}from"../../vendor/decorate.js";import{n as w,t as s}from"../../vendor/assertClassBrand.js";import"../scb-button/scb-button.js";import"../scb-icon-button/scb-icon-button.js";import"../scb-search/scb-search.js";import"../scb-avatar/scb-avatar.js";(function(){try{var a=typeof globalThis<"u"?globalThis:window;if(!a.__scb_ce_guard_installed__){a.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,n,h){try{customElements.get(e)||t(e,n,h)}catch(p){var g=String(p||"");if(g.indexOf("already been used")===-1&&g.indexOf("NotSupportedError")===-1)throw p}}}}catch{}})();var i,b,l=(i=new WeakSet,b=class extends z{constructor(...t){super(...t),w(this,i),this.title="",this.appBarTitle="",this.type="default",this.position="default",this.searchSupportingText="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.__titleResizeRaf=0}connectedCallback(){super.connectedCallback(),typeof ResizeObserver<"u"&&(this.__titleResizeObserver=new ResizeObserver(()=>s(i,this,m).call(this)))}disconnectedCallback(){this.__titleResizeRaf&&(cancelAnimationFrame(this.__titleResizeRaf),this.__titleResizeRaf=0),this.__titleResizeObserver?.disconnect(),this.__titleResizeObserver=void 0,super.disconnectedCallback()}handleActionsSlotChange(t){t.target.assignedElements({flatten:!0}).forEach(e=>{if(e.tagName==="SCB-BUTTON"){const n=e;n.hasAttribute("size")||n.setAttribute("size","small")}}),s(i,this,m).call(this)}handleAvatarSlotChange(t){t.target.assignedElements({flatten:!0}).forEach(e=>{e.tagName==="SCB-AVATAR"&&e.setAttribute("size","small")}),s(i,this,m).call(this)}firstUpdated(){s(i,this,y).call(this),s(i,this,u).call(this)}updated(t){(t.has("title")||t.has("appBarTitle"))&&(this.dispatchEvent(new CustomEvent("title-changed",{detail:{title:c.call(s(i,this))},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("app-bar-title-changed",{detail:{appBarTitle:c.call(s(i,this))},bubbles:!0,composed:!0}))),t.has("position")&&this.dispatchEvent(new CustomEvent("position-changed",{detail:{position:this.position},bubbles:!0,composed:!0})),t.has("type")&&(this.dispatchEvent(new CustomEvent("type-changed",{detail:{type:this.type},bubbles:!0,composed:!0})),s(i,this,u).call(this)),t.has("searchSupportingText")&&this.dispatchEvent(new CustomEvent("search-supporting-text-changed",{detail:{searchSupportingText:this.searchSupportingText},bubbles:!0,composed:!0})),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&s(i,this,y).call(this)}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}render(){switch(this.type){case"small-flexible":return d`
|
|
2
2
|
<header class="small-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label="Small app bar">
|
|
3
3
|
<div class="leading">
|
|
4
4
|
<slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
5
5
|
</div>
|
|
6
|
-
<h1 class="headline">${
|
|
6
|
+
<h1 class="headline">${c.call(s(i,this))}</h1>
|
|
7
7
|
<div class="trailing">
|
|
8
8
|
<slot name="trailing" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
9
9
|
<slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
|
|
10
10
|
</div>
|
|
11
11
|
</header>
|
|
12
|
-
`;case"medium-flexible":return
|
|
12
|
+
`;case"medium-flexible":return d`
|
|
13
13
|
<header class="medium-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label="Medium flexible app bar">
|
|
14
14
|
<div class="leading">
|
|
15
15
|
<slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
16
16
|
</div>
|
|
17
|
-
<h1 class="headline">${
|
|
17
|
+
<h1 class="headline">${c.call(s(i,this))}</h1>
|
|
18
18
|
<div class="trailing">
|
|
19
19
|
<slot name="trailing" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
20
20
|
<slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
|
|
21
21
|
</div>
|
|
22
22
|
</header>
|
|
23
|
-
`;case"large-flexible":return
|
|
23
|
+
`;case"large-flexible":return d`
|
|
24
24
|
<header class="large-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label="Large flexible app bar">
|
|
25
25
|
<div class="leading">
|
|
26
26
|
<slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
27
27
|
</div>
|
|
28
|
-
<h1 class="headline">${
|
|
28
|
+
<h1 class="headline">${c.call(s(i,this))}</h1>
|
|
29
29
|
<div class="trailing">
|
|
30
30
|
<slot name="trailing" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
31
31
|
<slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
|
|
32
32
|
</div>
|
|
33
33
|
</header>
|
|
34
|
-
`;case"search":return
|
|
34
|
+
`;case"search":return d`
|
|
35
35
|
<header class="search ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label="Search app bar">
|
|
36
36
|
<div class="leading">
|
|
37
37
|
<slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
@@ -44,18 +44,18 @@ import{a as $,n as h,i as E,x as f,t as k}from"../../vendor/vendor.js";import"..
|
|
|
44
44
|
<slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
|
|
45
45
|
</div>
|
|
46
46
|
</header>
|
|
47
|
-
`;default:return
|
|
47
|
+
`;default:return d`
|
|
48
48
|
<header class="default ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label="Small app bar">
|
|
49
49
|
<div class="leading">
|
|
50
50
|
<slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
51
51
|
</div>
|
|
52
|
-
<h1 class="headline">${
|
|
52
|
+
<h1 class="headline">${c.call(s(i,this))}</h1>
|
|
53
53
|
<div class="trailing">
|
|
54
54
|
<slot name="trailing" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
55
55
|
<slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
|
|
56
56
|
</div>
|
|
57
57
|
</header>
|
|
58
|
-
`}}}
|
|
58
|
+
`}}},b.styles=[T`
|
|
59
59
|
:host {
|
|
60
60
|
display: block;
|
|
61
61
|
font-family: var(--brand-font, Inter, Arial, sans-serif);
|
|
@@ -163,4 +163,4 @@ import{a as $,n as h,i as E,x as f,t as k}from"../../vendor/vendor.js";import"..
|
|
|
163
163
|
align-items: center;
|
|
164
164
|
gap: var(--spacing-2);
|
|
165
165
|
}
|
|
166
|
-
`];p(
|
|
166
|
+
`],b);function m(){this.type==="default"&&(this.__titleResizeRaf||(this.__titleResizeRaf=requestAnimationFrame(()=>{this.__titleResizeRaf=0,s(i,this,k).call(this)})))}function u(){this.__titleResizeObserver?.disconnect();const a=this.shadowRoot?.querySelector("header");if(a&&a.style.removeProperty("--scb-app-bar-title-max-width"),this.type!=="default"||!this.__titleResizeObserver)return;const t=this.shadowRoot?.querySelector("header.default");if(!t)return;const e=t.querySelector(".leading"),n=t.querySelector(".trailing");!e||!n||(this.__titleResizeObserver.observe(t),this.__titleResizeObserver.observe(e),this.__titleResizeObserver.observe(n),s(i,this,m).call(this))}function f(a){if(!a)return 0;const t=parseFloat(a);return Number.isFinite(t)?t:0}function v(a){const t=getComputedStyle(a);return s(i,this,f).call(this,t.columnGap||t.gap)}function k(){const a=this.shadowRoot?.querySelector("header.default");if(!a)return;const t=a.querySelector(".leading"),e=a.querySelector(".trailing");if(!t||!e)return;const n=a.getBoundingClientRect(),h=t.getBoundingClientRect(),g=e.getBoundingClientRect(),p=getComputedStyle(a),S=s(i,this,f).call(this,p.paddingInlineStart||p.paddingLeft),_=s(i,this,f).call(this,p.paddingInlineEnd||p.paddingRight),x=Math.max(0,n.width-S-_),R=Math.max(h.width,g.width),C=Math.max(s(i,this,v).call(this,t),s(i,this,v).call(this,e)),A=Math.max(0,x-R*2-C*2);a.style.setProperty("--scb-app-bar-title-max-width",`${A}px`)}function y(){const a=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??a,e=this.mapSpacingToken(this.spacingBottom)??a,n=this.mapSpacingToken(this.spacingLeft),h=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-app-bar-spacing-block-start",t):this.style.removeProperty("--scb-app-bar-spacing-block-start"),e?this.style.setProperty("--scb-app-bar-spacing-block-end",e):this.style.removeProperty("--scb-app-bar-spacing-block-end"),n?this.style.setProperty("--scb-app-bar-spacing-inline-start",n):this.style.removeProperty("--scb-app-bar-spacing-inline-start"),h?this.style.setProperty("--scb-app-bar-spacing-inline-end",h):this.style.removeProperty("--scb-app-bar-spacing-inline-end")}function c(){return this.appBarTitle||this.title}r([o({type:String,reflect:!0})],l.prototype,"title",void 0);r([o({type:String,attribute:"app-bar-title",reflect:!0})],l.prototype,"appBarTitle",void 0);r([o({type:String,reflect:!0})],l.prototype,"type",void 0);r([o({type:String,reflect:!0})],l.prototype,"position",void 0);r([o({type:String,attribute:"search-supporting-text",reflect:!0})],l.prototype,"searchSupportingText",void 0);r([o({type:String,reflect:!0})],l.prototype,"spacing",void 0);r([o({type:String,attribute:"spacing-top",reflect:!0})],l.prototype,"spacingTop",void 0);r([o({type:String,attribute:"spacing-bottom",reflect:!0})],l.prototype,"spacingBottom",void 0);r([o({type:String,attribute:"spacing-left",reflect:!0})],l.prototype,"spacingLeft",void 0);r([o({type:String,attribute:"spacing-right",reflect:!0})],l.prototype,"spacingRight",void 0);l=r([$("scb-app-bar")],l);
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/vendor-material.js","../../vendor/vendor.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{_ as m}from"../../vendor/
|
|
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 b,b as f,g as y,h as s,m as u,v as l,y as n}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as a}from"../../vendor/decorate.js";import{n as z,t as m}from"../../vendor/assertClassBrand.js";import{t as v}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(i,o,c){try{customElements.get(i)||t(i,o,c)}catch(g){var d=String(g||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw g}}}}catch{}})();var p,h,e=(p=new WeakSet,h=class extends b{constructor(...t){super(...t),z(this,p),this.src="",this.alt="",this.label="",this.size="medium",this.shape="circular",this.iconName="",this.variant="image",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this._imgError=!1,this._hasIconSlot=!1,this._onImgLoad=()=>{this._imgError=!1,this.dispatchEvent(new CustomEvent("image-load",{bubbles:!0,composed:!0}))},this._onImgError=()=>{this._imgError=!0,this.dispatchEvent(new CustomEvent("image-error",{bubbles:!0,composed:!0}))},this._onIconSlotChange=i=>{const o=i.currentTarget;this._hasIconSlot=(o.assignedNodes({flatten:!0})||[]).length>0}}async firstUpdated(){this.variant==="icon"&&await v(()=>import("../../vendor/vendor-material.js").then(t=>t.p),__vite__mapDeps([0,1,2]),import.meta.url),m(p,this,_).call(this)}updated(t){super.updated(t),t.has("variant")&&this.variant==="icon"&&v(()=>import("../../vendor/vendor-material.js").then(i=>i.p),__vite__mapDeps([0,1,2]),import.meta.url),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&m(p,this,_).call(this)}_initials(){const t=(this.label||this.alt||"").trim();if(!t)return"?";const i=t.split(/\s+/).filter(Boolean);return i.length===1?i[0].slice(0,1).toUpperCase():(i[0].slice(0,1)+i[i.length-1].slice(0,1)).toUpperCase()}_ariaLabel(){const t=(this.label||this.alt||"").trim();return t||null}mapSpacingToken(t){if(!t)return;const i=String(t).trim();if(i)return/^\d+$/.test(i)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(i,10)))})`:i}render(){const t=this._ariaLabel(),i=this.variant==="image"&&!!this.src&&!this._imgError,o=n`${l}
|
|
3
3
|
<slot name="icon" @slotchange=${this._onIconSlotChange}></slot>
|
|
4
|
-
${this._hasIconSlot?
|
|
5
|
-
`,
|
|
4
|
+
${this._hasIconSlot?l:this.iconName?n`<md-icon aria-hidden="true">${this.iconName}</md-icon>`:n`<div class="fallback" part="fallback">${this._initials()}</div>`}
|
|
5
|
+
`,c=i?n`<img
|
|
6
6
|
class="photo"
|
|
7
7
|
part="image"
|
|
8
8
|
src=${this.src}
|
|
9
9
|
alt=${this.alt}
|
|
10
10
|
@load=${this._onImgLoad}
|
|
11
11
|
@error=${this._onImgError}
|
|
12
|
-
/>`:
|
|
12
|
+
/>`:n`
|
|
13
13
|
<slot name="icon" @slotchange=${this._onIconSlotChange}></slot>
|
|
14
|
-
${this._hasIconSlot?
|
|
15
|
-
`;return
|
|
16
|
-
<div class="container" part="container" role="img" aria-label=${t??
|
|
17
|
-
${this.variant==="icon"?
|
|
14
|
+
${this._hasIconSlot?l:this.iconName?n`<md-icon aria-hidden="true">${this.iconName}</md-icon>`:n`<div class="fallback" part="fallback">${this._initials()}</div>`}
|
|
15
|
+
`;return n`
|
|
16
|
+
<div class="container" part="container" role="img" aria-label=${t??l}>
|
|
17
|
+
${this.variant==="icon"?o:c}
|
|
18
18
|
</div>
|
|
19
|
-
`}}
|
|
19
|
+
`}},h.styles=f`
|
|
20
20
|
:host {
|
|
21
21
|
display: inline-block;
|
|
22
22
|
vertical-align: middle;
|
|
@@ -108,4 +108,4 @@ import{_ as m}from"../../vendor/preload-helper.js";import{a as f,n,r as _,i as b
|
|
|
108
108
|
outline-offset: 2px;
|
|
109
109
|
border-radius: var(--_radius);
|
|
110
110
|
}
|
|
111
|
-
|
|
111
|
+
`,h);function _(){const r=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??r,i=this.mapSpacingToken(this.spacingBottom)??r,o=this.mapSpacingToken(this.spacingLeft)??r,c=this.mapSpacingToken(this.spacingRight)??r;t?this.style.setProperty("--scb-avatar-spacing-block-start",t):this.style.removeProperty("--scb-avatar-spacing-block-start"),i?this.style.setProperty("--scb-avatar-spacing-block-end",i):this.style.removeProperty("--scb-avatar-spacing-block-end"),o?this.style.setProperty("--scb-avatar-spacing-inline-start",o):this.style.removeProperty("--scb-avatar-spacing-inline-start"),c?this.style.setProperty("--scb-avatar-spacing-inline-end",c):this.style.removeProperty("--scb-avatar-spacing-inline-end")}a([s({type:String})],e.prototype,"src",void 0);a([s({type:String})],e.prototype,"alt",void 0);a([s({type:String})],e.prototype,"label",void 0);a([s({type:String,reflect:!0})],e.prototype,"size",void 0);a([s({type:String,reflect:!0})],e.prototype,"shape",void 0);a([s({type:String,attribute:"icon-name",reflect:!0})],e.prototype,"iconName",void 0);a([s({type:String,reflect:!0})],e.prototype,"variant",void 0);a([s({type:String,reflect:!0})],e.prototype,"spacing",void 0);a([s({type:String,attribute:"spacing-top",reflect:!0})],e.prototype,"spacingTop",void 0);a([s({type:String,attribute:"spacing-bottom",reflect:!0})],e.prototype,"spacingBottom",void 0);a([s({type:String,attribute:"spacing-left",reflect:!0})],e.prototype,"spacingLeft",void 0);a([s({type:String,attribute:"spacing-right",reflect:!0})],e.prototype,"spacingRight",void 0);a([u()],e.prototype,"_imgError",void 0);a([u()],e.prototype,"_hasIconSlot",void 0);e=a([y("scb-avatar")],e);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_ as b,b as h,g,h as o,y as u}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as s}from"../../vendor/decorate.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(i,r,a){try{customElements.get(i)||t(i,r,a)}catch(d){var n=String(d||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var c,e=(c=class extends b{constructor(...t){super(...t),this._slotClickHandler=i=>{const r=this.shadowRoot?.querySelector("slot"),a=i.target;a&&a!==r&&a.dispatchEvent(new CustomEvent("hide-badge",{bubbles:!0,composed:!0}))},this.autoHide=!1,this.sizing="fit-content",this.position="relative",this.positionTop=0,this.positionRight=void 0,this.positionSide="right",this.positionLeft=void 0,this.value="",this.label="",this.hidden=!1,this.variant="dot",this._badgeVisible=!0,this._onHideBadge=()=>{this._badgeVisible=!1,this.requestUpdate()}}firstUpdated(){const t=this.shadowRoot?.querySelector("slot");this.autoHide&&t&&t.addEventListener("click",this._slotClickHandler)}updated(){const t=this.shadowRoot?.querySelector("slot");t&&(this.autoHide?t.addEventListener("click",this._slotClickHandler):t.removeEventListener("click",this._slotClickHandler))}connectedCallback(){super.connectedCallback(),this.addEventListener("hide-badge",this._onHideBadge)}disconnectedCallback(){this.removeEventListener("hide-badge",this._onHideBadge),super.disconnectedCallback()}mapSpacingToken(t){if(t==null)return;if(typeof t=="number"&&!Number.isNaN(t))return`${t}px`;const i=String(t).trim();if(i)return/^\d+$/.test(i)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(i,10)))})`:i}render(){const t=this.mapSpacingToken(this.positionRight)??"var(--spacing-4)",i=this.mapSpacingToken(this.positionLeft)??"var(--spacing-4)",r=this.mapSpacingToken(this.positionTop)??"0px";this.style.setProperty("--scb-badge-absolute-top",r),this.style.setProperty("--scb-badge-absolute-right",t),this.style.setProperty("--scb-badge-absolute-left",i);let a=this.value;!isNaN(Number(this.value))&&this.value.length>4&&(a=this.value.slice(0,4)+"+");const n=this.variant==="value"&&!this.value?"badge-value-empty":"",d=this._badgeVisible?"":"badge--hide",p=this.label||(this.variant==="dot"?"Indikator":`Märke: ${a}`);return u`
|
|
2
2
|
<div class="badge-content">
|
|
3
3
|
<slot></slot>
|
|
4
4
|
<div
|
|
5
|
-
class="badge ${
|
|
5
|
+
class="badge ${n} ${d}"
|
|
6
6
|
role="status"
|
|
7
|
-
aria-label="${this.variant==="dot",
|
|
8
|
-
aria-hidden="${this.variant==="dot"&&!this.label?"true":"false"}">${this.variant==="dot"?"":
|
|
7
|
+
aria-label="${this.variant==="dot",p}"
|
|
8
|
+
aria-hidden="${this.variant==="dot"&&!this.label?"true":"false"}">${this.variant==="dot"?"":a}</div>
|
|
9
9
|
</div>
|
|
10
|
-
`}}
|
|
10
|
+
`}},c.styles=h`
|
|
11
11
|
:host {
|
|
12
12
|
display: block;
|
|
13
13
|
position: relative;
|
|
@@ -77,4 +77,4 @@ import{a as c,n as r,i as p,x as b,t as h}from"../../vendor/vendor.js";(function
|
|
|
77
77
|
justify-content: center;
|
|
78
78
|
gap: var(--scb-badge-relative-gap);
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
`,c);s([o({type:Boolean,reflect:!0,attribute:"auto-hide"})],e.prototype,"autoHide",void 0);s([o({type:String,reflect:!0})],e.prototype,"sizing",void 0);s([o({type:String,reflect:!0})],e.prototype,"position",void 0);s([o({type:String,attribute:"position-top"})],e.prototype,"positionTop",void 0);s([o({type:String,attribute:"position-right"})],e.prototype,"positionRight",void 0);s([o({type:String,reflect:!0,attribute:"position-side"})],e.prototype,"positionSide",void 0);s([o({type:String,attribute:"position-left"})],e.prototype,"positionLeft",void 0);s([o({type:String,reflect:!0})],e.prototype,"value",void 0);s([o({type:String,reflect:!0})],e.prototype,"label",void 0);s([o({type:Boolean,reflect:!0})],e.prototype,"hidden",void 0);s([o({type:String,reflect:!0})],e.prototype,"variant",void 0);e=s([g("scb-badge")],e);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{_ as d,b as h,g as b,h as a,y as c}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as r}from"../../vendor/decorate.js";import"../scb-link/scb-link.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(i,o,l){try{customElements.get(i)||t(i,o,l)}catch(u){var n=String(u||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw u}}}}catch{}})();var e=class extends d{constructor(...t){super(...t),this.label="",this.isCurrent=!1,this.href=""}connectedCallback(){if(super.connectedCallback(),this.hasAttribute("current")&&!this.hasAttribute("is-current")&&(this.isCurrent=!0),!this.href){const t=this.getAttribute("href");t&&(this.href=t)}}static get styles(){return h`
|
|
2
2
|
.breadcrumb-separator {
|
|
3
3
|
margin: var(--spacing-0) var(--spacing-3);
|
|
4
4
|
color: var(--md-sys-color-on-surface);
|
|
@@ -8,7 +8,7 @@ import{n as o,t as h,i as b,a as f,x as l}from"../../vendor/vendor.js";import"..
|
|
|
8
8
|
color: var(--md-sys-color-on-surface);
|
|
9
9
|
font-family: var(--brand, Inter);
|
|
10
10
|
}
|
|
11
|
-
`}updated(
|
|
11
|
+
`}updated(t){t.has("isCurrent")&&(this.dispatchEvent(new CustomEvent("current-changed",{detail:{isCurrent:this.isCurrent},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("currentchanged",{detail:{isCurrent:this.isCurrent,value:this.isCurrent},bubbles:!0,composed:!0})))}render(){return!0===this.isCurrent?c`<span class="breadcrumb-current">${this.label}</span>`:c`
|
|
12
12
|
<scb-link href="${this.href||this.getAttribute("href")||""}">${this.label}</scb-link>
|
|
13
13
|
<span class="breadcrumb-separator">/</span>
|
|
14
|
-
`}}
|
|
14
|
+
`}};r([a({type:String})],e.prototype,"label",void 0);r([a({type:Boolean,attribute:"is-current",reflect:!0})],e.prototype,"isCurrent",void 0);r([a({type:String,attribute:"item-href"})],e.prototype,"href",void 0);e=r([b("scb-breadcrumb-item")],e);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import"../../vendor/vendor-material.js";import{_ as v,b as k,g as _,h as p,y as d}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as c}from"../../vendor/decorate.js";import{n as w,t as g}from"../../vendor/assertClassBrand.js";import"../scb-link/scb-link.js";import"./scb-breadcrumb-item.js";(function(){try{var b=typeof globalThis<"u"?globalThis:window;if(!b.__scb_ce_guard_installed__){b.__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(r){var o=String(r||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw r}}}}catch{}})();var m,n=(m=new WeakSet,class extends v{constructor(...e){super(...e),w(this,m),this.showAll=!1,this.currentIndex=void 0,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0}static get styles(){return k`
|
|
2
2
|
:host {
|
|
3
3
|
display: block;
|
|
4
4
|
margin-block-start: var(--scb-breadcrumb-spacing-block-start, 0);
|
|
@@ -66,10 +66,10 @@ import{n as u,t as v,i as _,a as k,x as b}from"../../vendor/vendor.js";import"./
|
|
|
66
66
|
transform: translateY(0);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
|
-
`}connectedCallback(){super.connectedCallback(),this._observer=new MutationObserver(()=>{this.requestUpdate()}),this._observer.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["label","item-href","href","is-current","current"]})}disconnectedCallback(){super.disconnectedCallback(),this._observer?.disconnect()}firstUpdated(){g(this,
|
|
70
|
-
<div class="scb-breadcrumb ${
|
|
71
|
-
${
|
|
72
|
-
${
|
|
69
|
+
`}connectedCallback(){super.connectedCallback(),this._observer=new MutationObserver(()=>{this.requestUpdate()}),this._observer.observe(this,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["label","item-href","href","is-current","current"]})}disconnectedCallback(){super.disconnectedCallback(),this._observer?.disconnect()}firstUpdated(){g(m,this,y).call(this)}updated(e){e.has("showAll")&&(this.dispatchEvent(new CustomEvent("show-all-changed",{detail:{showAll:this.showAll},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("showallchanged",{detail:{showAll:this.showAll,value:this.showAll},bubbles:!0,composed:!0}))),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&g(m,this,y).call(this)}mapSpacingToken(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}_onEllipsisClick(){this.showAll?this.showAll=!1:(this.showAll=!0,this.updateComplete.then(()=>{const e=this.shadowRoot?.querySelectorAll(".scb-breadcrumb.expanded .breadcrumb-item");e&&(e.forEach((t,s)=>{t.classList.add("breadcrumb-animate"),t.style.animationDelay=`${s*60}ms`}),setTimeout(()=>{e.forEach(t=>{t.classList.remove("breadcrumb-animate"),t.style.animationDelay=""})},600))}))}getItemLabel(e){const t=e.label;return typeof t=="string"?t:e.getAttribute("label")??""}getItemHref(e){const t=e;return typeof t.itemHref=="string"?t.itemHref:typeof t.href=="string"?t.href:e.getAttribute("item-href")??e.getAttribute("href")??""}render(){const e=Array.from(this.children).filter(r=>r.tagName.toLowerCase()==="scb-breadcrumb-item"),t=Math.max(0,e.length-1);let s=t;if(e.length>0){const r=typeof this.currentIndex=="number"&&!Number.isNaN(this.currentIndex)?Math.trunc(this.currentIndex):void 0;if(typeof r=="number"&&r>=0&&r<e.length)s=r;else for(let i=e.length-1;i>=0;i--){const a=e[i];if(typeof a.isCurrent=="boolean"?a.isCurrent:e[i].hasAttribute("is-current")||e[i].hasAttribute("current")){s=i;break}}e.forEach((i,a)=>{i.toggleAttribute("is-current",a===s)})}const l=e.length>6&&!this.showAll&&s===t,o=[];if(l){const r=e.slice(0,3),i=e.slice(-3);r.forEach((a,u)=>{o.push({type:"item",item:a,isCurrent:u===s})}),o.push({type:"ellipsis"}),i.forEach((a,u)=>{const h=e.length-3+u;o.push({type:"item",item:a,isCurrent:h===s})})}else e.forEach((r,i)=>{o.push({type:"item",item:r,isCurrent:i===s})});return d`
|
|
70
|
+
<div class="scb-breadcrumb ${l?"collapsed":"expanded"}">
|
|
71
|
+
${o.map((r,i)=>{const a=i===0?d``:d`<span class="breadcrumb-separator">/</span>`;if(r.type==="ellipsis")return d`
|
|
72
|
+
${a}
|
|
73
73
|
<span
|
|
74
74
|
class="breadcrumb-item ellipsis"
|
|
75
75
|
aria-label="Visa alla"
|
|
@@ -83,14 +83,14 @@ import{n as u,t as v,i as _,a as k,x as b}from"../../vendor/vendor.js";import"./
|
|
|
83
83
|
more_horiz
|
|
84
84
|
</md-icon>
|
|
85
85
|
</span>
|
|
86
|
-
`;const
|
|
87
|
-
${
|
|
88
|
-
<span class="breadcrumb-item breadcrumb-current">${
|
|
89
|
-
`:
|
|
90
|
-
${
|
|
86
|
+
`;const u=this.getItemLabel(r.item),h=this.getItemHref(r.item);return r.isCurrent?d`
|
|
87
|
+
${a}
|
|
88
|
+
<span class="breadcrumb-item breadcrumb-current">${u}</span>
|
|
89
|
+
`:d`
|
|
90
|
+
${a}
|
|
91
91
|
<span class="breadcrumb-item">
|
|
92
|
-
<scb-link href="${h}">${
|
|
92
|
+
<scb-link href="${h}">${u}</scb-link>
|
|
93
93
|
</span>
|
|
94
94
|
`})}
|
|
95
95
|
</div>
|
|
96
|
-
`}};
|
|
96
|
+
`}});function y(){const b=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??b,t=this.mapSpacingToken(this.spacingBottom)??b,s=this.mapSpacingToken(this.spacingLeft),l=this.mapSpacingToken(this.spacingRight);e?this.style.setProperty("--scb-breadcrumb-spacing-block-start",e):this.style.removeProperty("--scb-breadcrumb-spacing-block-start"),t?this.style.setProperty("--scb-breadcrumb-spacing-block-end",t):this.style.removeProperty("--scb-breadcrumb-spacing-block-end"),s?this.style.setProperty("--scb-breadcrumb-spacing-inline-start",s):this.style.removeProperty("--scb-breadcrumb-spacing-inline-start"),l?this.style.setProperty("--scb-breadcrumb-spacing-inline-end",l):this.style.removeProperty("--scb-breadcrumb-spacing-inline-end")}c([p({type:Boolean,attribute:"show-all",reflect:!0})],n.prototype,"showAll",void 0);c([p({type:Number,attribute:"current-index",reflect:!0})],n.prototype,"currentIndex",void 0);c([p({type:String,reflect:!0})],n.prototype,"spacing",void 0);c([p({type:String,attribute:"spacing-top",reflect:!0})],n.prototype,"spacingTop",void 0);c([p({type:String,attribute:"spacing-bottom",reflect:!0})],n.prototype,"spacingBottom",void 0);c([p({type:String,attribute:"spacing-left",reflect:!0})],n.prototype,"spacingLeft",void 0);c([p({type:String,attribute:"spacing-right",reflect:!0})],n.prototype,"spacingRight",void 0);n=c([_("scb-breadcrumb")],n);
|