scb-wc 0.1.78 → 0.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +41 -22
- package/all.js +0 -2
- package/index.js +88 -90
- package/mvc/components/all.js +0 -2
- package/mvc/components/scb-accordion/scb-accordion-item.js +3 -173
- package/mvc/components/scb-accordion/scb-accordion.js +4 -33
- package/mvc/components/scb-app-bar/scb-app-bar.js +2 -110
- package/mvc/components/scb-avatar/scb-avatar.js +2 -94
- package/mvc/components/scb-badge/scb-badge.js +2 -72
- package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +2 -12
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +4 -91
- package/mvc/components/scb-button/scb-button.js +47 -309
- package/mvc/components/scb-calendar/scb-calendar-event.js +2 -6
- package/mvc/components/scb-calendar/scb-calendar.js +6 -120
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +21 -350
- package/mvc/components/scb-card/scb-card.js +54 -819
- package/mvc/components/scb-checkbox/scb-checkbox-group.js +3 -31
- package/mvc/components/scb-checkbox/scb-checkbox.js +5 -127
- package/mvc/components/scb-chip/scb-chip.js +2 -76
- package/mvc/components/scb-collapse/scb-collapse.js +2 -44
- package/mvc/components/scb-cookies-consent/scb-cookies-consent.js +7 -73
- package/mvc/components/scb-dialog/scb-dialog.js +2 -213
- package/mvc/components/scb-divider/scb-divider.js +1 -69
- package/mvc/components/scb-drawer/scb-drawer.js +6 -102
- package/mvc/components/scb-drop-zone/scb-drop-zone.js +2 -410
- package/mvc/components/scb-dropdown/scb-dropdown.js +17 -222
- package/mvc/components/scb-fab/scb-fab.js +7 -95
- package/mvc/components/scb-fact-card/scb-fact-card-content.js +2 -69
- package/mvc/components/scb-fact-card/scb-fact-card.js +2 -214
- package/mvc/components/scb-footer/scb-footer-section.js +1 -3
- package/mvc/components/scb-footer/scb-footer.js +3 -172
- package/mvc/components/scb-gallery-grid/scb-gallery-grid.js +2 -112
- package/mvc/components/scb-grid/scb-grid-item.js +1 -32
- package/mvc/components/scb-grid/scb-grid.js +1 -99
- package/mvc/components/scb-grid/scb-stack.js +1 -33
- package/mvc/components/scb-header/scb-header-menu-item.js +1 -5
- package/mvc/components/scb-header/scb-header-tab.js +1 -5
- package/mvc/components/scb-header/scb-header.js +75 -888
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +43 -168
- package/mvc/components/scb-icon-button/scb-icon-button.js +59 -171
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +17 -218
- package/mvc/components/scb-link/scb-link.js +4 -55
- package/mvc/components/scb-list/scb-list-item.js +23 -126
- package/mvc/components/scb-list/scb-list.js +5 -26
- package/mvc/components/scb-menu/scb-menu-item.js +16 -190
- package/mvc/components/scb-menu/scb-menu-section.js +4 -36
- package/mvc/components/scb-menu/scb-menu.js +5 -69
- package/mvc/components/scb-menu/scb-sub-menu.js +2 -7
- package/mvc/components/scb-nav/scb-nav-item.js +1 -28
- package/mvc/components/scb-nav/scb-nav.js +5 -98
- package/mvc/components/scb-notification-card/scb-notification-card.js +7 -364
- package/mvc/components/scb-options-menu/scb-options-menu-item.js +3 -50
- package/mvc/components/scb-options-menu/scb-options-menu.js +2 -82
- package/mvc/components/scb-options-menu/scb-options-sub-menu.js +2 -31
- package/mvc/components/scb-overlay/scb-overlay.js +3 -43
- package/mvc/components/scb-pagination/scb-pagination.js +19 -221
- package/mvc/components/scb-progress-indicator/scb-progress-indicator.js +2 -67
- package/mvc/components/scb-progress-stepper/scb-progress-step.js +4 -121
- package/mvc/components/scb-progress-stepper/scb-progress-stepper.js +2 -56
- package/mvc/components/scb-radio-button/scb-radio-button.js +5 -116
- package/mvc/components/scb-radio-button/scb-radio-group.js +2 -32
- package/mvc/components/scb-scrollspy/scb-scrollspy.js +2 -61
- package/mvc/components/scb-search/scb-search.js +5 -249
- package/mvc/components/scb-segmented-button/scb-segmented-button.js +1 -32
- package/mvc/components/scb-segmented-button/scb-segmented-item.js +2 -70
- package/mvc/components/scb-select/scb-select-option.js +2 -54
- package/mvc/components/scb-select/scb-select.js +4 -244
- package/mvc/components/scb-skeleton/scb-skeleton.js +2 -35
- package/mvc/components/scb-slider/scb-slider.js +5 -9
- package/mvc/components/scb-snackbar/scb-snackbar.js +9 -84
- package/mvc/components/scb-status-pill/scb-status-pill.js +2 -43
- package/mvc/components/scb-stepper/scb-step.js +8 -186
- package/mvc/components/scb-stepper/scb-stepper.js +2 -130
- package/mvc/components/scb-switch/scb-switch.js +4 -49
- package/mvc/components/scb-table/scb-table.js +2 -48
- package/mvc/components/scb-table-advanced/scb-table-advanced.js +2 -53
- package/mvc/components/scb-tabs/scb-primary-tab.js +2 -7
- package/mvc/components/scb-tabs/scb-secondary-tab.js +2 -7
- package/mvc/components/scb-tabs/scb-tabs.js +4 -31
- package/mvc/components/scb-textfield/scb-textfield.js +142 -388
- package/mvc/components/scb-toc/scb-toc-item.js +3 -251
- package/mvc/components/scb-toc/scb-toc.js +2 -16
- package/mvc/components/scb-tooltip/scb-tooltip.js +8 -155
- package/mvc/components/scb-viz/scb-viz.js +4 -619
- package/mvc/scb-wc-core.css +1 -1
- package/mvc/scb-wc-selfhost.css +1 -1
- package/mvc/scb-wc.css +1 -1
- package/mvc/vendor/assist-chip.js +3 -3
- package/mvc/vendor/chip-set.js +1 -1
- package/mvc/vendor/chip.js +2 -2
- package/mvc/vendor/elevation.js +2 -2
- package/mvc/vendor/filter-chip.js +1 -1
- package/mvc/vendor/focusable.js +1 -1
- package/mvc/vendor/form-associated.js +1 -1
- package/mvc/vendor/icon.js +2 -2
- package/mvc/vendor/lazy-focus-ring.js +2 -0
- package/mvc/vendor/lazy-ripple.js +2 -0
- package/mvc/vendor/md-focus-ring.js +2 -2
- package/mvc/vendor/ripple.js +2 -2
- package/mvc/vendor/scb-card-variants.internal.js +284 -0
- package/mvc/vendor/scb-chevron.js +10 -0
- package/mvc/vendor/scb-header-drawer.internal.js +71 -0
- package/mvc/vendor/shared-styles.js +1 -1
- package/mvc/vendor/tab-styles.js +3 -3
- package/mvc/vendor/validator.js +1 -1
- package/mvc/vendor/vendor.js +3 -4
- package/package.json +2 -2
- package/scb-accordion/scb-accordion-item.js +33 -32
- package/scb-app-bar/scb-app-bar.js +1 -1
- package/scb-button/scb-button.js +287 -259
- package/scb-calendar/scb-calendar.js +49 -49
- package/scb-calendar-card/scb-calendar-card.js +105 -59
- package/scb-card/scb-card-variants.internal.js +230 -0
- package/scb-card/scb-card.js +387 -528
- package/scb-checkbox/scb-checkbox.js +0 -1
- package/scb-chevron/scb-chevron.js +0 -1
- package/scb-components/scb-button/scb-button.d.ts +14 -2
- package/scb-components/scb-calendar/scb-calendar.d.ts +1 -0
- package/scb-components/scb-calendar-card/scb-calendar-card.d.ts +16 -4
- package/scb-components/scb-card/scb-card-variants.internal.d.ts +15 -0
- package/scb-components/scb-card/scb-card.d.ts +26 -9
- package/scb-components/scb-cookies-consent/scb-cookies-consent.d.ts +3 -0
- package/scb-components/scb-header/scb-header-drawer.internal.d.ts +31 -0
- package/scb-components/scb-header/scb-header.d.ts +1 -2
- package/scb-components/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +6 -1
- package/scb-components/scb-icon-button/scb-icon-button.d.ts +28 -29
- package/scb-components/scb-keyfigure-card/scb-keyfigure-card.d.ts +13 -4
- package/scb-components/scb-list/scb-list-item.d.ts +20 -2
- package/scb-components/scb-list/scb-list.d.ts +1 -2
- package/scb-components/scb-nav/scb-nav.d.ts +2 -0
- package/scb-components/scb-segmented-button/scb-segmented-item.d.ts +1 -0
- package/scb-components/scb-select/scb-select-option.d.ts +2 -0
- package/scb-components/scb-toc/scb-toc-item.d.ts +1 -0
- package/scb-components/scb-tooltip/scb-tooltip.d.ts +2 -0
- package/scb-cookies-consent/scb-cookies-consent.js +43 -31
- package/scb-datepicker/scb-datepicker.js +27 -25
- package/scb-dialog/scb-dialog.js +1 -1
- package/scb-dropdown/scb-dropdown.js +29 -28
- package/scb-header/scb-header-drawer.internal.js +78 -0
- package/scb-header/scb-header.js +41 -89
- package/scb-horizontal-scroller/scb-horizontal-scroller.js +181 -88
- package/scb-icon-button/scb-icon-button.js +293 -205
- package/scb-keyfigure-card/scb-keyfigure-card.js +96 -43
- package/scb-list/scb-list-item.js +117 -52
- package/scb-list/scb-list.js +9 -9
- package/scb-nav/scb-nav.js +26 -23
- package/scb-notification-card/scb-notification-card.js +0 -2
- package/scb-options-menu/scb-options-menu-item.js +20 -20
- package/scb-pagination/scb-pagination.js +0 -1
- package/scb-progress-stepper/scb-progress-step.js +19 -17
- package/scb-radio-button/scb-radio-button.js +0 -1
- package/scb-search/scb-search.js +29 -28
- package/scb-segmented-button/scb-segmented-item.js +22 -19
- package/scb-select/scb-select-option.js +20 -14
- package/scb-select/scb-select.js +26 -26
- package/scb-stepper/scb-step.js +34 -31
- package/scb-textfield/scb-textfield.js +39 -39
- package/scb-toc/scb-toc-item.js +26 -26
- package/scb-tooltip/scb-tooltip.js +5 -4
- package/scb-viz/scb-viz.js +1 -1
- package/scb-wc-core.css +1 -1
- package/scb-wc-public-entry/index.d.ts +97 -0
- package/scb-wc-selfhost.css +1 -1
- package/scb-wc.bundle.js +1873 -1476
- package/scb-wc.css +1 -1
- package/scb-wc.d.ts +194 -198
- package/mvc/components/scb-chevron/scb-chevron.js +0 -41
- package/mvc/components/scb-datepicker/scb-datepicker.js +0 -296
- package/mvc/vendor/element-internals.js +0 -1
- package/mvc/vendor/filled-icon-button.js +0 -2
- package/mvc/vendor/filled-tonal-icon-button.js +0 -2
- package/mvc/vendor/form-label-activation.js +0 -1
- package/mvc/vendor/form-submitter.js +0 -1
- package/mvc/vendor/icon-button.js +0 -2
- package/mvc/vendor/list.js +0 -8
- package/mvc/vendor/outlined-icon-button.js +0 -2
- package/mvc/vendor/shared-styles2.js +0 -30
- package/scb-components/index.d.ts +0 -99
- package/scb-components/scb-chevron/scb-chevron.d.ts +0 -11
- package/scb-components/scb-datepicker/scb-datepicker.d.ts +0 -39
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as d,m as h,p as i,v as n,y as u}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as o}from"../../vendor/decorate.js";import"../scb-button/scb-button.js";import"../scb-icon-button/scb-icon-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,a,c){try{customElements.get(e)||t(e,a,c)}catch(b){var r=String(b||"");if(r.indexOf("already been used")===-1&&r.indexOf("NotSupportedError")===-1)throw b}}}}catch{}})();var p,s=(p=class extends d{constructor(...t){super(...t),this.message="",this.open=!1,this.actionText="",this.showClose=!1,this.fixed=!1,this.fadeout=!1,this.withLongerAction=!1,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0}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,a=this.mapSpacingToken(this.spacingBottom)??t,c=this.mapSpacingToken(this.spacingLeft),r=this.mapSpacingToken(this.spacingRight);e?this.style.setProperty("--scb-snackbar-spacing-block-start",e):this.style.removeProperty("--scb-snackbar-spacing-block-start"),a?this.style.setProperty("--scb-snackbar-spacing-block-end",a):this.style.removeProperty("--scb-snackbar-spacing-block-end"),c?this.style.setProperty("--scb-snackbar-spacing-inline-start",c):this.style.removeProperty("--scb-snackbar-spacing-inline-start"),r?this.style.setProperty("--scb-snackbar-spacing-inline-end",r):this.style.removeProperty("--scb-snackbar-spacing-inline-end")}connectedCallback(){super.connectedCallback(),this.applySpacing()}handleAction(){this.dispatchEvent(new CustomEvent("snackbar-action",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("snackbaraction",{bubbles:!0,composed:!0})),this.open=!1}handleClose(){this.open=!1}updated(t){super.updated(t),t.has("open")&&(this.open?(this.dispatchEvent(new CustomEvent("snackbar-open",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("snackbaropen",{bubbles:!0,composed:!0}))):(this.dispatchEvent(new CustomEvent("snackbar-close",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("snackbarclose",{bubbles:!0,composed:!0})))),(t.has("open")||t.has("fadeout"))&&(this.open&&this.fadeout?(window.clearTimeout(this._fadeoutTimer),this._fadeoutTimer=window.setTimeout(()=>{this.open=!1},5e3)):window.clearTimeout(this._fadeoutTimer)),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&this.applySpacing()}render(){const t=!!this.actionText,e=!!this.showClose;let a="snackbar";return!t&&!e&&(a+=" no-actions"),this.withLongerAction&&(a+=" longer-action"),n`
|
|
2
2
|
<div class="${a}" ?hidden=${!this.open}>
|
|
3
3
|
${this.withLongerAction?n`
|
|
4
4
|
<div class="message">${this.message}</div>
|
|
@@ -36,93 +36,18 @@ import{_ as d,b as h,g as m,h as i,y as n}from"../../vendor/vendor.js";import"..
|
|
|
36
36
|
`:""}
|
|
37
37
|
`}
|
|
38
38
|
</div>
|
|
39
|
-
`}},p.styles=
|
|
40
|
-
:host {
|
|
41
|
-
position: relative;
|
|
42
|
-
display: block;
|
|
43
|
-
min-width: 312px;
|
|
44
|
-
max-width: 560px;
|
|
45
|
-
font-family: var(--brand-font, 'Inter', sans-serif);
|
|
46
|
-
|
|
47
|
-
margin-block-start: var(--scb-snackbar-spacing-block-start, 0);
|
|
48
|
-
margin-block-end: var(--scb-snackbar-spacing-block-end, 0);
|
|
49
|
-
margin-inline-start: var(--scb-snackbar-spacing-inline-start, 0);
|
|
50
|
-
margin-inline-end: var(--scb-snackbar-spacing-inline-end, 0);
|
|
51
|
-
}
|
|
52
|
-
:host([fixed]) {
|
|
53
|
-
position: fixed;
|
|
54
|
-
z-index: 9999;
|
|
55
|
-
left: 50%;
|
|
56
|
-
bottom: 24px;
|
|
57
|
-
transform: translateX(-50%);
|
|
58
|
-
}
|
|
59
|
-
.snackbar {
|
|
60
|
-
background: var(--md-sys-color-inverse-surface);
|
|
61
|
-
color: var(--md-sys-color-inverse-on-surface);
|
|
62
|
-
border-radius: var(--md-sys-shape-corner-extra-small);
|
|
63
|
-
box-shadow:
|
|
64
|
-
0 4px 8px 3px rgba(0, 0, 0, 0.15),
|
|
65
|
-
0 1px 3px 0 rgba(0, 0, 0, 0.3);
|
|
66
|
-
display: flex;
|
|
67
|
-
align-items: center;
|
|
68
|
-
padding: 14px var(--spacing-5);
|
|
69
|
-
opacity: 0;
|
|
70
|
-
transition: opacity 0.3s, bottom 0.3s;
|
|
71
|
-
pointer-events: auto;
|
|
72
|
-
position: relative;
|
|
73
|
-
}
|
|
74
|
-
.snackbar.longer-action {
|
|
75
|
-
flex-direction: column;
|
|
76
|
-
align-items: flex-start;
|
|
77
|
-
}
|
|
78
|
-
.snackbar .actions {
|
|
79
|
-
display: flex;
|
|
80
|
-
margin-top: 10px;
|
|
81
|
-
width: 100%;
|
|
82
|
-
justify-content: flex-end;
|
|
83
|
-
}
|
|
84
|
-
.message.no-actions {
|
|
85
|
-
margin-right: 0;
|
|
86
|
-
}
|
|
87
|
-
:host([open]) .snackbar {
|
|
88
|
-
opacity: 1;
|
|
89
|
-
pointer-events: auto;
|
|
90
|
-
}
|
|
91
|
-
.message {
|
|
92
|
-
flex: 1 1 auto;
|
|
93
|
-
margin-right: var(--spacing-2);
|
|
94
|
-
font-size: var(--md-sys-typescale-body-medium-size);
|
|
95
|
-
line-height: var(--md-sys-typescale-body-medium-line-height);
|
|
96
|
-
letter-spacing: var(--md-sys-typescale-body-medium-tracking);
|
|
97
|
-
}
|
|
98
|
-
.snackbar scb-icon-button {
|
|
99
|
-
--md-icon-button-icon-color: var(--md-sys-color-inverse-on-surface);
|
|
100
|
-
--md-icon-button-hover-icon-color: var(--md-sys-color-inverse-on-surface);
|
|
101
|
-
--md-icon-button-hover-state-layer-color: var(
|
|
39
|
+
`}},p.styles=u`:host{position:relative;display:block;min-width:312px;max-width:560px;font-family:var(--brand-font, 'Inter', sans-serif);margin-block-start:var(--scb-snackbar-spacing-block-start, 0);margin-block-end:var(--scb-snackbar-spacing-block-end, 0);margin-inline-start:var(--scb-snackbar-spacing-inline-start, 0);margin-inline-end:var(--scb-snackbar-spacing-inline-end, 0)}:host([fixed]){position:fixed;z-index:9999;left:50%;bottom:24px;transform:translateX(-50%)}.snackbar{background:var(--md-sys-color-inverse-surface);color:var(--md-sys-color-inverse-on-surface);border-radius:var(--md-sys-shape-corner-extra-small);box-shadow:0 4px 8px 3px rgba(0,0,0,.15),0 1px 3px 0 rgba(0,0,0,.3);display:flex;align-items:center;padding:14px var(--spacing-5);opacity:0;transition:opacity .3s,bottom .3s;pointer-events:auto;position:relative}.snackbar.longer-action{flex-direction:column;align-items:flex-start}.snackbar .actions{display:flex;margin-top:10px;width:100%;justify-content:flex-end}.message.no-actions{margin-right:0}:host([open]) .snackbar{opacity:1;pointer-events:auto}.message{flex:1 1 auto;margin-right:var(--spacing-2);font-size:var(--md-sys-typescale-body-medium-size);line-height:var(--md-sys-typescale-body-medium-line-height);letter-spacing:var(--md-sys-typescale-body-medium-tracking)}.snackbar scb-button,.snackbar scb-icon-button{--md-focus-ring-color:var(--md-sys-color-inverse-on-surface)}.snackbar scb-icon-button{--md-icon-button-icon-color:var(--md-sys-color-inverse-on-surface);--md-icon-button-hover-icon-color:var(--md-sys-color-inverse-on-surface);--md-icon-button-hover-state-layer-color:var(
|
|
102
40
|
--md-sys-color-surface-container
|
|
103
|
-
)
|
|
104
|
-
--md-icon-button-focus-icon-color: var(
|
|
41
|
+
);--md-icon-button-focus-icon-color:var(
|
|
105
42
|
--md-sys-color-inverse-on-surface
|
|
106
|
-
)
|
|
107
|
-
--md-icon-button-pressed-icon-color: var(
|
|
43
|
+
);--md-icon-button-pressed-icon-color:var(
|
|
108
44
|
--md-sys-color-inverse-on-surface
|
|
109
|
-
)
|
|
110
|
-
--md-focus-ring-color: var(--md-sys-color-inverse-on-surface);
|
|
111
|
-
}
|
|
112
|
-
.snackbar scb-button {
|
|
113
|
-
--md-text-button-label-text-color: var(--md-sys-color-inverse-primary);
|
|
114
|
-
--md-text-button-hover-label-text-color: var(
|
|
45
|
+
)}.snackbar scb-button{--md-text-button-label-text-color:var(--md-sys-color-inverse-primary);--md-text-button-hover-label-text-color:var(
|
|
115
46
|
--md-sys-color-inverse-primary
|
|
116
|
-
)
|
|
117
|
-
--md-text-button-hover-state-layer-color: var(
|
|
47
|
+
);--md-text-button-hover-state-layer-color:var(
|
|
118
48
|
--md-sys-color-surface-container
|
|
119
|
-
)
|
|
120
|
-
--md-text-button-focus-label-text-color: var(
|
|
49
|
+
);--md-text-button-focus-label-text-color:var(
|
|
121
50
|
--md-sys-color-inverse-primary
|
|
122
|
-
)
|
|
123
|
-
--md-text-button-pressed-label-text-color: var(
|
|
51
|
+
);--md-text-button-pressed-label-text-color:var(
|
|
124
52
|
--md-sys-color-inverse-primary
|
|
125
|
-
);
|
|
126
|
-
--md-focus-ring-color: var(--md-sys-color-inverse-on-surface);
|
|
127
|
-
}
|
|
128
|
-
`,p);o([i({type:String})],s.prototype,"message",void 0);o([i({type:Boolean,reflect:!0})],s.prototype,"open",void 0);o([i({type:String,attribute:"action-text"})],s.prototype,"actionText",void 0);o([i({type:Boolean,attribute:"show-close"})],s.prototype,"showClose",void 0);o([i({type:Boolean,reflect:!0})],s.prototype,"fixed",void 0);o([i({type:Boolean})],s.prototype,"fadeout",void 0);o([i({type:Boolean,attribute:"with-longer-action"})],s.prototype,"withLongerAction",void 0);o([i({type:String,reflect:!0})],s.prototype,"spacing",void 0);o([i({type:String,attribute:"spacing-top",reflect:!0})],s.prototype,"spacingTop",void 0);o([i({type:String,attribute:"spacing-bottom",reflect:!0})],s.prototype,"spacingBottom",void 0);o([i({type:String,attribute:"spacing-left",reflect:!0})],s.prototype,"spacingLeft",void 0);o([i({type:String,attribute:"spacing-right",reflect:!0})],s.prototype,"spacingRight",void 0);s=o([m("scb-snackbar")],s);
|
|
53
|
+
)}`,p);o([i({type:String})],s.prototype,"message",void 0);o([i({type:Boolean,reflect:!0})],s.prototype,"open",void 0);o([i({type:String,attribute:"action-text"})],s.prototype,"actionText",void 0);o([i({type:Boolean,attribute:"show-close"})],s.prototype,"showClose",void 0);o([i({type:Boolean,reflect:!0})],s.prototype,"fixed",void 0);o([i({type:Boolean})],s.prototype,"fadeout",void 0);o([i({type:Boolean,attribute:"with-longer-action"})],s.prototype,"withLongerAction",void 0);o([i({type:String,reflect:!0})],s.prototype,"spacing",void 0);o([i({type:String,attribute:"spacing-top",reflect:!0})],s.prototype,"spacingTop",void 0);o([i({type:String,attribute:"spacing-bottom",reflect:!0})],s.prototype,"spacingBottom",void 0);o([i({type:String,attribute:"spacing-left",reflect:!0})],s.prototype,"spacingLeft",void 0);o([i({type:String,attribute:"spacing-right",reflect:!0})],s.prototype,"spacingRight",void 0);s=o([h("scb-snackbar")],s);
|
|
@@ -1,45 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as d,m as u,p as a,v as c,y as h}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import"../../vendor/icon.js";import{t as e}from"../../vendor/decorate.js";(function(){try{var p=typeof globalThis<"u"?globalThis:window;if(!p.__scb_ce_guard_installed__){p.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(s,r,o){try{customElements.get(s)||t(s,r,o)}catch(g){var n=String(g||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw g}}}}catch{}})();var l,i=(l=class extends d{constructor(...t){super(...t),this.status="",this.label="",this.showIcon=!1,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0}mapSpacingToken(t){if(!t)return;const s=String(t).trim();if(s)return/^\d+$/.test(s)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(s,10)))})`:s}applySpacing(){const t=this.mapSpacingToken(this.spacing),s=this.mapSpacingToken(this.spacingTop)??t,r=this.mapSpacingToken(this.spacingBottom)??t,o=this.mapSpacingToken(this.spacingLeft),n=this.mapSpacingToken(this.spacingRight);s?this.style.setProperty("--scb-status-pill-spacing-block-start",s):this.style.removeProperty("--scb-status-pill-spacing-block-start"),r?this.style.setProperty("--scb-status-pill-spacing-block-end",r):this.style.removeProperty("--scb-status-pill-spacing-block-end"),o?this.style.setProperty("--scb-status-pill-spacing-inline-start",o):this.style.removeProperty("--scb-status-pill-spacing-inline-start"),n?this.style.setProperty("--scb-status-pill-spacing-inline-end",n):this.style.removeProperty("--scb-status-pill-spacing-inline-end")}connectedCallback(){super.connectedCallback(),this.applySpacing()}updated(t){super.updated(t),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&this.applySpacing()}render(){return c`
|
|
2
2
|
${this.showIcon?this.status==="success"?c`<md-icon>check_circle</md-icon>`:this.status==="warning"?c`<md-icon>warning</md-icon>`:this.status==="error"?c`<md-icon>error</md-icon>`:"":""}
|
|
3
3
|
<span class="label">${this.label}</span>
|
|
4
|
-
`}},
|
|
5
|
-
:host {
|
|
6
|
-
display: inline-block;
|
|
7
|
-
border-radius: var(--md-sys-shape-corner-full);
|
|
8
|
-
padding: 6px var(--spacing-5);
|
|
9
|
-
border: none;
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
user-select: none;
|
|
12
|
-
display: flex;
|
|
13
|
-
align-items: center;
|
|
14
|
-
gap: var(--spacing-3);
|
|
15
|
-
width: fit-content;
|
|
16
|
-
font-family: var(--brand-font);
|
|
17
|
-
|
|
18
|
-
margin-block-start: var(--scb-status-pill-spacing-block-start, 0);
|
|
19
|
-
margin-block-end: var(--scb-status-pill-spacing-block-end, 0);
|
|
20
|
-
margin-inline-start: var(--scb-status-pill-spacing-inline-start, 0);
|
|
21
|
-
margin-inline-end: var(--scb-status-pill-spacing-inline-end, 0);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.label {
|
|
25
|
-
font-size: var(--md-sys-typescale-label-medium-size);
|
|
26
|
-
line-height: var(--md-sys-typescale-label-medium-line-height);
|
|
27
|
-
font-weight: var(--md-sys-typescale-label-medium-weight);
|
|
28
|
-
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
:host([status='success']) {
|
|
32
|
-
background: var(--md-sys-color-success-container);
|
|
33
|
-
color: var(--md-sys-color-on-success-container);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
:host([status='warning']) {
|
|
37
|
-
background: var(--md-sys-color-warning-container);
|
|
38
|
-
color: var(--md-sys-color-on-warning-container);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
:host([status='error']) {
|
|
42
|
-
background: var(--md-sys-color-error-container);
|
|
43
|
-
color: var(--md-sys-color-on-error-container);
|
|
44
|
-
}
|
|
45
|
-
`,p);e([a({type:String})],i.prototype,"status",void 0);e([a({type:String})],i.prototype,"label",void 0);e([a({type:Boolean,attribute:"show-icon"})],i.prototype,"showIcon",void 0);e([a({type:String,reflect:!0})],i.prototype,"spacing",void 0);e([a({type:String,attribute:"spacing-top",reflect:!0})],i.prototype,"spacingTop",void 0);e([a({type:String,attribute:"spacing-bottom",reflect:!0})],i.prototype,"spacingBottom",void 0);e([a({type:String,attribute:"spacing-left",reflect:!0})],i.prototype,"spacingLeft",void 0);e([a({type:String,attribute:"spacing-right",reflect:!0})],i.prototype,"spacingRight",void 0);i=e([h("scb-status-pill")],i);
|
|
4
|
+
`}},l.styles=h`:host{display:inline-block;border-radius:var(--md-sys-shape-corner-full);padding:6px var(--spacing-5);border:0;box-sizing:border-box;user-select:none;display:flex;align-items:center;gap:var(--spacing-3);width:fit-content;font-family:var(--brand-font);margin-block-start:var(--scb-status-pill-spacing-block-start, 0);margin-block-end:var(--scb-status-pill-spacing-block-end, 0);margin-inline-start:var(--scb-status-pill-spacing-inline-start, 0);margin-inline-end:var(--scb-status-pill-spacing-inline-end, 0)}.label{font-size:var(--md-sys-typescale-label-medium-size);line-height:var(--md-sys-typescale-label-medium-line-height);font-weight:var(--md-sys-typescale-label-medium-weight);letter-spacing:var(--md-sys-typescale-label-medium-tracking)}:host([status='success']){background:var(--md-sys-color-success-container);color:var(--md-sys-color-on-success-container)}:host([status='warning']){background:var(--md-sys-color-warning-container);color:var(--md-sys-color-on-warning-container)}:host([status='error']){background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container)}`,l);e([a({type:String})],i.prototype,"status",void 0);e([a({type:String})],i.prototype,"label",void 0);e([a({type:Boolean,attribute:"show-icon"})],i.prototype,"showIcon",void 0);e([a({type:String,reflect:!0})],i.prototype,"spacing",void 0);e([a({type:String,attribute:"spacing-top",reflect:!0})],i.prototype,"spacingTop",void 0);e([a({type:String,attribute:"spacing-bottom",reflect:!0})],i.prototype,"spacingBottom",void 0);e([a({type:String,attribute:"spacing-left",reflect:!0})],i.prototype,"spacingLeft",void 0);e([a({type:String,attribute:"spacing-right",reflect:!0})],i.prototype,"spacingRight",void 0);i=e([u("scb-status-pill")],i);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as p,m as h,p as a,v as s,y as u}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import"../../vendor/icon.js";import"../../vendor/ripple.js";import{n}from"../../vendor/lazy-focus-ring.js";import{t as i}from"../../vendor/decorate.js";(function(){try{var o=typeof globalThis<"u"?globalThis:window;if(!o.__scb_ce_guard_installed__){o.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(l,m,b){try{customElements.get(l)||e(l,m,b)}catch(d){var c=String(d||"");if(c.indexOf("already been used")===-1&&c.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var r,t=(r=class extends p{constructor(...e){super(...e),this.label="",this.subLabel="",this.symbolVariant="number",this.number=0,this.active=!1,this.completed=!1,this.changeOnCompleted=!1,this.islast=!1,this.variant="horizontal",this.widthWeight=1,this.icon=""}updated(){!this.subLabel||this.subLabel.trim()===""?this.setAttribute("no-content",""):this.removeAttribute("no-content"),this.widthWeight>0?this.style.setProperty("--scb-step-width-weight",String(this.widthWeight)):this.style.removeProperty("--scb-step-width-weight")}handleKeyDown(e){e.key==="Enter"||e.key===" "?(e.preventDefault(),this.dispatchEvent(new MouseEvent("click",{bubbles:!0,composed:!0}))):(e.key==="ArrowRight"||e.key==="ArrowLeft")&&(this.dispatchEvent(new CustomEvent("scb-stepper-keynav",{detail:{key:e.key},bubbles:!0,composed:!0})),e.preventDefault())}render(){const e=this.active?"step":void 0,l=this.label?`${this.label}${this.subLabel?": "+this.subLabel:""}`:void 0;switch(this.symbolVariant){case"icon":return s`
|
|
2
2
|
<div
|
|
3
3
|
class="scb-step-content"
|
|
4
4
|
tabindex="0"
|
|
5
5
|
role="listitem"
|
|
6
6
|
aria-current=${e}
|
|
7
|
-
aria-label=${
|
|
7
|
+
aria-label=${l}
|
|
8
8
|
@keydown=${this.handleKeyDown}
|
|
9
|
+
@focusin=${n}
|
|
9
10
|
>
|
|
10
11
|
<md-ripple></md-ripple>
|
|
11
12
|
<div class="symbol">
|
|
@@ -23,8 +24,9 @@ import{_ as b,b as p,g as h,h as a,y as s}from"../../vendor/vendor.js";import"..
|
|
|
23
24
|
tabindex="0"
|
|
24
25
|
role="listitem"
|
|
25
26
|
aria-current=${e}
|
|
26
|
-
aria-label=${
|
|
27
|
+
aria-label=${l}
|
|
27
28
|
@keydown=${this.handleKeyDown}
|
|
29
|
+
@focusin=${n}
|
|
28
30
|
>
|
|
29
31
|
<md-ripple></md-ripple>
|
|
30
32
|
<div class="symbol">
|
|
@@ -42,8 +44,9 @@ import{_ as b,b as p,g as h,h as a,y as s}from"../../vendor/vendor.js";import"..
|
|
|
42
44
|
tabindex="0"
|
|
43
45
|
role="listitem"
|
|
44
46
|
aria-current=${e}
|
|
45
|
-
aria-label=${
|
|
47
|
+
aria-label=${l}
|
|
46
48
|
@keydown=${this.handleKeyDown}
|
|
49
|
+
@focusin=${n}
|
|
47
50
|
>
|
|
48
51
|
<md-ripple></md-ripple>
|
|
49
52
|
<div class="symbol">
|
|
@@ -55,185 +58,4 @@ import{_ as b,b as p,g as h,h as a,y as s}from"../../vendor/vendor.js";import"..
|
|
|
55
58
|
</div>
|
|
56
59
|
<md-focus-ring></md-focus-ring>
|
|
57
60
|
</div>
|
|
58
|
-
`}}},
|
|
59
|
-
:host {
|
|
60
|
-
font-family: var(--brand-font);
|
|
61
|
-
--scb-step-slide-from-x: 0px;
|
|
62
|
-
--scb-step-slide-from-y: 0px;
|
|
63
|
-
--scb-step-label-active-weight: 600;
|
|
64
|
-
}
|
|
65
|
-
.scb-step-content {
|
|
66
|
-
width: fit-content;
|
|
67
|
-
max-width: 100%;
|
|
68
|
-
min-width: 0;
|
|
69
|
-
min-height: 100%;
|
|
70
|
-
display: flex;
|
|
71
|
-
flex-direction: column;
|
|
72
|
-
align-items: center;
|
|
73
|
-
position: relative;
|
|
74
|
-
margin-inline: auto;
|
|
75
|
-
cursor: pointer;
|
|
76
|
-
background: none;
|
|
77
|
-
box-sizing: border-box;
|
|
78
|
-
user-select: none;
|
|
79
|
-
padding-block: var(--spacing-1);
|
|
80
|
-
padding-inline: var(--spacing-4);
|
|
81
|
-
}
|
|
82
|
-
.scb-step-content:focus,
|
|
83
|
-
.scb-step-content:focus-visible {
|
|
84
|
-
outline: none ;
|
|
85
|
-
box-shadow: none ;
|
|
86
|
-
}
|
|
87
|
-
.symbol {
|
|
88
|
-
background-color: var(--md-sys-color-outline-variant);
|
|
89
|
-
color: var(--md-sys-color-on-primary);
|
|
90
|
-
border-radius: var(--md-sys-shape-corner-full);
|
|
91
|
-
min-width: var(--icon-size-medium);
|
|
92
|
-
height: var(--icon-size-medium);
|
|
93
|
-
display: flex;
|
|
94
|
-
align-items: center;
|
|
95
|
-
justify-content: center;
|
|
96
|
-
font-weight: var(--md-sys-typescale-label-small-weight);
|
|
97
|
-
font-size: var(--md-sys-typescale-label-small-size);
|
|
98
|
-
line-height: var(--md-sys-typescale-label-small-line-height);
|
|
99
|
-
letter-spacing: var(--md-sys-typescale-label-small-tracking);
|
|
100
|
-
position: relative;
|
|
101
|
-
z-index: 1;
|
|
102
|
-
will-change: transform, opacity;
|
|
103
|
-
transition:
|
|
104
|
-
background-color var(--motion-duration-short) var(--motion-easing-standard),
|
|
105
|
-
color var(--motion-duration-short) var(--motion-easing-standard),
|
|
106
|
-
transform var(--motion-duration-short) var(--motion-easing-emphasized);
|
|
107
|
-
padding: var(--spacing-3);
|
|
108
|
-
}
|
|
109
|
-
md-focus-ring {
|
|
110
|
-
border-radius: var(--md-sys-shape-corner-small);
|
|
111
|
-
}
|
|
112
|
-
md-icon {
|
|
113
|
-
font-size: 20px;
|
|
114
|
-
}
|
|
115
|
-
:host([active]) .symbol {
|
|
116
|
-
background-color: var(--md-sys-color-primary);
|
|
117
|
-
color: var(--md-sys-color-on-primary);
|
|
118
|
-
}
|
|
119
|
-
:host([completed]) .symbol {
|
|
120
|
-
background-color: var(--md-sys-color-primary);
|
|
121
|
-
color: var(--md-sys-color-on-primary);
|
|
122
|
-
}
|
|
123
|
-
.label {
|
|
124
|
-
margin-top: var(--spacing-3);
|
|
125
|
-
text-align: center;
|
|
126
|
-
font-size: var(--md-sys-typescale-label-medium-size);
|
|
127
|
-
line-height: var(--md-sys-typescale-label-medium-line-height);
|
|
128
|
-
letter-spacing: var(--md-sys-typescale-label-medium-tracking);
|
|
129
|
-
color: var(--md-sys-color-on-surface);
|
|
130
|
-
max-width: 90px;
|
|
131
|
-
word-break: break-word;
|
|
132
|
-
margin-bottom: var(--spacing-3);
|
|
133
|
-
display: grid;
|
|
134
|
-
justify-items: center;
|
|
135
|
-
}
|
|
136
|
-
.label::before {
|
|
137
|
-
content: attr(data-label);
|
|
138
|
-
font-weight: var(--scb-step-label-active-weight);
|
|
139
|
-
grid-area: 1 / 1;
|
|
140
|
-
height: 0;
|
|
141
|
-
overflow: hidden;
|
|
142
|
-
visibility: hidden;
|
|
143
|
-
white-space: inherit;
|
|
144
|
-
}
|
|
145
|
-
.label-text {
|
|
146
|
-
grid-area: 1 / 1;
|
|
147
|
-
}
|
|
148
|
-
.sub-label {
|
|
149
|
-
text-align: center;
|
|
150
|
-
display: grid;
|
|
151
|
-
justify-items: center;
|
|
152
|
-
}
|
|
153
|
-
.sub-label::before {
|
|
154
|
-
content: attr(data-label);
|
|
155
|
-
font-weight: var(--scb-step-label-active-weight);
|
|
156
|
-
grid-area: 1 / 1;
|
|
157
|
-
height: 0;
|
|
158
|
-
overflow: hidden;
|
|
159
|
-
visibility: hidden;
|
|
160
|
-
white-space: inherit;
|
|
161
|
-
}
|
|
162
|
-
.sub-label-text {
|
|
163
|
-
grid-area: 1 / 1;
|
|
164
|
-
}
|
|
165
|
-
:host([active]) .label, :host([active]) .sub-label {
|
|
166
|
-
font-weight: var(--scb-step-label-active-weight);
|
|
167
|
-
}
|
|
168
|
-
.content{
|
|
169
|
-
display: flex;
|
|
170
|
-
flex-direction: column;
|
|
171
|
-
align-items: center;
|
|
172
|
-
min-width: 0;
|
|
173
|
-
will-change: transform, opacity;
|
|
174
|
-
}
|
|
175
|
-
:host([variant="vertical"]) {
|
|
176
|
-
.scb-step-content {
|
|
177
|
-
width: 100%;
|
|
178
|
-
flex-direction: row;
|
|
179
|
-
align-items: flex-start;
|
|
180
|
-
gap: var(--spacing-5);
|
|
181
|
-
margin-inline: 0;
|
|
182
|
-
padding: var(--spacing-4);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
:host([no-content]) {
|
|
186
|
-
.scb-step-content {
|
|
187
|
-
align-items: center;
|
|
188
|
-
.label {
|
|
189
|
-
margin-bottom: 0px;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
:host([variant="vertical"]) .label{
|
|
194
|
-
margin-top: 0;
|
|
195
|
-
max-width: none;
|
|
196
|
-
text-align: left;
|
|
197
|
-
justify-items: start;
|
|
198
|
-
word-break: normal;
|
|
199
|
-
}
|
|
200
|
-
:host([variant="vertical"]) .sub-label{
|
|
201
|
-
text-align: left;
|
|
202
|
-
justify-items: start;
|
|
203
|
-
word-break: normal;
|
|
204
|
-
}
|
|
205
|
-
:host([variant="vertical"]) .content{
|
|
206
|
-
align-items: flex-start;
|
|
207
|
-
min-width: 0;
|
|
208
|
-
}
|
|
209
|
-
:host([symbol-variant="marker"]) .symbol {
|
|
210
|
-
min-width: 16px;
|
|
211
|
-
height: 16px;
|
|
212
|
-
}
|
|
213
|
-
:host([symbol-variant="marker"][completed][change-on-completed]) .symbol {
|
|
214
|
-
background-color: transparent;
|
|
215
|
-
color: var(--md-sys-color-primary);
|
|
216
|
-
md-icon{
|
|
217
|
-
font-size: var(--icon-size-small);
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
:host([active]) .symbol {
|
|
222
|
-
--scb-kf-pulse-scale: 1.08;
|
|
223
|
-
animation-duration: var(--motion-duration-medium);
|
|
224
|
-
animation-timing-function: var(--motion-easing-emphasized);
|
|
225
|
-
animation-iteration-count: 1;
|
|
226
|
-
animation-fill-mode: both;
|
|
227
|
-
animation-name: var(--motion-keyframe-pulse, scb-kf-pulse);
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
:host([completed]:not([active])) .symbol {
|
|
231
|
-
--scb-kf-pulse-scale: 1.04;
|
|
232
|
-
animation-duration: var(--motion-duration-short);
|
|
233
|
-
animation-timing-function: var(--motion-easing-standard);
|
|
234
|
-
animation-iteration-count: 1;
|
|
235
|
-
animation-fill-mode: both;
|
|
236
|
-
animation-name: var(--motion-keyframe-pulse, scb-kf-pulse);
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
`,l);i([a({type:String,reflect:!0})],t.prototype,"label",void 0);i([a({type:String,reflect:!0,attribute:"sub-label"})],t.prototype,"subLabel",void 0);i([a({type:String,reflect:!0,attribute:"symbol-variant"})],t.prototype,"symbolVariant",void 0);i([a({type:Number,reflect:!0})],t.prototype,"number",void 0);i([a({type:Boolean,reflect:!0})],t.prototype,"active",void 0);i([a({type:Boolean,reflect:!0})],t.prototype,"completed",void 0);i([a({type:Boolean,reflect:!0,attribute:"change-on-completed"})],t.prototype,"changeOnCompleted",void 0);i([a({type:Boolean,reflect:!0})],t.prototype,"islast",void 0);i([a({type:String,reflect:!0})],t.prototype,"variant",void 0);i([a({type:Number,reflect:!0,attribute:"width-weight"})],t.prototype,"widthWeight",void 0);i([a({type:String})],t.prototype,"icon",void 0);t=i([h("scb-step")],t);
|
|
61
|
+
`}}},r.styles=u`:host{font-family:var(--brand-font);--scb-step-slide-from-x:0px;--scb-step-slide-from-y:0px;--scb-step-label-active-weight:600}.scb-step-content{width:fit-content;max-width:100%;min-width:0;min-height:100%;display:flex;flex-direction:column;align-items:center;position:relative;margin-inline:auto;cursor:pointer;background:0 0;box-sizing:border-box;user-select:none;padding-block:var(--spacing-1);padding-inline:var(--spacing-4)}.scb-step-content:focus,.scb-step-content:focus-visible{outline:0;box-shadow:none}.symbol{background-color:var(--md-sys-color-outline-variant);color:var(--md-sys-color-on-primary);border-radius:var(--md-sys-shape-corner-full);min-width:var(--icon-size-medium);height:var(--icon-size-medium);display:flex;align-items:center;justify-content:center;font-weight:var(--md-sys-typescale-label-small-weight);font-size:var(--md-sys-typescale-label-small-size);line-height:var(--md-sys-typescale-label-small-line-height);letter-spacing:var(--md-sys-typescale-label-small-tracking);position:relative;z-index:1;will-change:transform,opacity;transition:background-color var(--motion-duration-short) var(--motion-easing-standard),color var(--motion-duration-short) var(--motion-easing-standard),transform var(--motion-duration-short) var(--motion-easing-emphasized);padding:var(--spacing-3)}md-focus-ring{border-radius:var(--md-sys-shape-corner-small)}md-icon{font-size:20px}:host([active]) .symbol,:host([completed]) .symbol{background-color:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary)}.label{margin-top:var(--spacing-3);text-align:center;font-size:var(--md-sys-typescale-label-medium-size);line-height:var(--md-sys-typescale-label-medium-line-height);letter-spacing:var(--md-sys-typescale-label-medium-tracking);color:var(--md-sys-color-on-surface);max-width:90px;word-break:break-word;margin-bottom:var(--spacing-3);display:grid;justify-items:center}.label::before,.sub-label::before{content:attr(data-label);font-weight:var(--scb-step-label-active-weight);grid-area:1/1;height:0;overflow:hidden;visibility:hidden;white-space:inherit}.label-text{grid-area:1/1}.sub-label{text-align:center;display:grid;justify-items:center}.sub-label-text{grid-area:1/1}:host([active]) .label,:host([active]) .sub-label{font-weight:var(--scb-step-label-active-weight)}.content{display:flex;flex-direction:column;align-items:center;min-width:0;will-change:transform,opacity}:host([variant="vertical"]) .label{margin-top:0;max-width:none}:host([variant="vertical"]) .label,:host([variant="vertical"]) .sub-label{text-align:left;justify-items:start;word-break:normal}:host([variant="vertical"]) .content{align-items:flex-start;min-width:0}:host([symbol-variant="marker"]) .symbol{min-width:16px;height:16px}:host([symbol-variant="marker"][completed][change-on-completed]) .symbol{background-color:transparent;color:var(--md-sys-color-primary)}:host([active]) .symbol,:host([completed]:not([active])) .symbol{animation-iteration-count:1;animation-fill-mode:both;animation-name:var(--motion-keyframe-pulse, scb-kf-pulse)}:host([active]) .symbol{--scb-kf-pulse-scale:1.08;animation-duration:var(--motion-duration-medium);animation-timing-function:var(--motion-easing-emphasized)}:host([completed]:not([active])) .symbol{--scb-kf-pulse-scale:1.04;animation-duration:var(--motion-duration-short);animation-timing-function:var(--motion-easing-standard)}`,r);i([a({type:String,reflect:!0})],t.prototype,"label",void 0);i([a({type:String,reflect:!0,attribute:"sub-label"})],t.prototype,"subLabel",void 0);i([a({type:String,reflect:!0,attribute:"symbol-variant"})],t.prototype,"symbolVariant",void 0);i([a({type:Number,reflect:!0})],t.prototype,"number",void 0);i([a({type:Boolean,reflect:!0})],t.prototype,"active",void 0);i([a({type:Boolean,reflect:!0})],t.prototype,"completed",void 0);i([a({type:Boolean,reflect:!0,attribute:"change-on-completed"})],t.prototype,"changeOnCompleted",void 0);i([a({type:Boolean,reflect:!0})],t.prototype,"islast",void 0);i([a({type:String,reflect:!0})],t.prototype,"variant",void 0);i([a({type:Number,reflect:!0,attribute:"width-weight"})],t.prototype,"widthWeight",void 0);i([a({type:String})],t.prototype,"icon",void 0);t=i([h("scb-step")],t);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{_,
|
|
1
|
+
import{h as _,m as x,p as l,v as k,y as w}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as p}from"../../vendor/decorate.js";import{n as I,t as c}from"../../vendor/assertClassBrand.js";import{n as g,r as y,t as b}from"../../vendor/classPrivateFieldGet2.js";import"./scb-step.js";(function(){try{var n=typeof globalThis<"u"?globalThis:window;if(!n.__scb_ce_guard_installed__){n.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,s,r){try{customElements.get(e)||t(e,s,r)}catch(h){var i=String(h||"");if(i.indexOf("already been used")===-1&&i.indexOf("NotSupportedError")===-1)throw h}}}}catch{}})();var v,d,a,u,o=(v=new WeakMap,d=new WeakMap,a=new WeakSet,u=class extends _{constructor(...t){super(...t),I(this,a),y(this,v,void 0),y(this,d,void 0),this.type="",this.label="",this.changeOnCompleted=!1,this.variant="horizontal",this.symbolVariant="number",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.activeIndex=0,g(d,this,0),this._onKeyNav=e=>{const s=this._getSteps(),r=this.activeIndex;let i=r;e.detail.key==="ArrowRight"?r<s.length-1?i=r+1:i=0:e.detail.key==="ArrowLeft"&&(r>0?i=r-1:i=s.length-1),i!==r&&(this._onStepClick(i),setTimeout(()=>{const h=s[i].shadowRoot?.querySelector(".scb-step-content");h&&"focus"in h&&typeof h.focus=="function"&&h.focus()},0))},this._onStepContainerClick=e=>{const s=this._getSteps(),r=e.composedPath(),i=s.findIndex(h=>r.includes(h));i!==-1&&this._onStepClick(i)},this._onSlotChange=()=>{const e=this._getSteps();if(e.length===0){this.activeIndex=0;return}this.activeIndex>e.length-1?this.activeIndex=e.length-1:this.activeIndex<0&&(this.activeIndex=0),this._updateSteps(),c(a,this,m).call(this)}}_onStepClick(t){const e=this.activeIndex;this.activeIndex=t,this._updateSteps(),this.dispatchEvent(new CustomEvent("step-change",{detail:{index:this.activeIndex,step:this._getSteps()[this.activeIndex]},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("stepchange",{detail:{index:this.activeIndex,step:this._getSteps()[this.activeIndex]},bubbles:!0,composed:!0})),t>e?(this.dispatchEvent(new CustomEvent("step-next",{detail:{from:e,to:t,step:this._getSteps()[t]},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("stepnext",{detail:{from:e,to:t,step:this._getSteps()[t]},bubbles:!0,composed:!0}))):t<e&&(this.dispatchEvent(new CustomEvent("step-prev",{detail:{from:e,to:t,step:this._getSteps()[t]},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("stepprev",{detail:{from:e,to:t,step:this._getSteps()[t]},bubbles:!0,composed:!0})))}nextStep(){const t=this._getSteps();this.activeIndex<t.length-1&&this._onStepClick(this.activeIndex+1)}prevStep(){this.activeIndex>0&&this._onStepClick(this.activeIndex-1)}getActiveIndex(){return this.activeIndex}_updateSteps(){const t=this._getSteps();this.style.setProperty("--scb-stepper-step-count",String(Math.max(1,t.length))),t.forEach((e,s)=>{e.active=s===this.activeIndex,e.completed=s<this.activeIndex,e.islast=!1,e.changeOnCompleted=this.changeOnCompleted,e.number=s+1,e.variant=this.variant,e.symbolVariant=this.symbolVariant}),t.length>0&&(t[t.length-1].islast=!0)}_getSteps(){return Array.from(this.querySelectorAll("scb-step"))}firstUpdated(t){this._updateSteps(),c(a,this,S).call(this),c(a,this,m).call(this)}updated(t){this._updateSteps(),(t.has("variant")||t.has("symbolVariant"))&&c(a,this,m).call(this),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&c(a,this,S).call(this)}render(){return k`
|
|
2
2
|
<div
|
|
3
3
|
class="steps"
|
|
4
4
|
role="list"
|
|
@@ -8,132 +8,4 @@ import{_,b as x,g as k,h as l,y as w}from"../../vendor/vendor.js";import"../../v
|
|
|
8
8
|
>
|
|
9
9
|
<slot @slotchange=${this._onSlotChange}></slot>
|
|
10
10
|
</div>
|
|
11
|
-
`}connectedCallback(){super.connectedCallback(),typeof ResizeObserver<"u"&&(g(v,this,new ResizeObserver(()=>{c(a,this,
|
|
12
|
-
:host {
|
|
13
|
-
--scb-stepper-width: 100%;
|
|
14
|
-
--scb-stepper-height: 100%;
|
|
15
|
-
--scb-stepper-step-count: 1;
|
|
16
|
-
--scb-stepper-connector-gap: var(--spacing-2);
|
|
17
|
-
--scb-stepper-symbol-size: var(--icon-size-medium);
|
|
18
|
-
display: block;
|
|
19
|
-
padding: var(--spacing-5) 0;
|
|
20
|
-
width: 100%;
|
|
21
|
-
color: var(--md-sys-color-on-surface);
|
|
22
|
-
font-family: var(--brand-font);
|
|
23
|
-
max-width: var(--scb-stepper-width);
|
|
24
|
-
height: var(--scb-stepper-height);
|
|
25
|
-
|
|
26
|
-
margin-block-start: var(--scb-stepper-spacing-block-start, 0);
|
|
27
|
-
margin-block-end: var(--scb-stepper-spacing-block-end, 0);
|
|
28
|
-
margin-inline-start: var(--scb-stepper-spacing-inline-start, 0);
|
|
29
|
-
margin-inline-end: var(--scb-stepper-spacing-inline-end, 0);
|
|
30
|
-
}
|
|
31
|
-
.steps {
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: row;
|
|
34
|
-
align-items: stretch;
|
|
35
|
-
justify-content: center;
|
|
36
|
-
position: relative;
|
|
37
|
-
width: 100%;
|
|
38
|
-
gap: 0;
|
|
39
|
-
height: 100%;
|
|
40
|
-
}
|
|
41
|
-
:host([variant='vertical']) .steps {
|
|
42
|
-
flex-direction: column;
|
|
43
|
-
gap: var(--spacing-8);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
:host([symbol-variant='marker']) {
|
|
47
|
-
--scb-stepper-symbol-size: 16px;
|
|
48
|
-
}
|
|
49
|
-
::slotted(scb-step) {
|
|
50
|
-
position: relative;
|
|
51
|
-
z-index: 1;
|
|
52
|
-
width: 100%;
|
|
53
|
-
min-width: 0;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
:host([variant='horizontal']) ::slotted(scb-step) {
|
|
57
|
-
flex: var(--scb-step-width-weight, 1) 1 0;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/* Horisontell connector
|
|
61
|
-
Bygger upp en linje per steg, med glapp både före och efter varje symbol.
|
|
62
|
-
Första steget ritar bara sin högra del och sista steget ritar bara sin vänstra del.
|
|
63
|
-
*/
|
|
64
|
-
:host([variant='horizontal']) ::slotted(scb-step)::before,
|
|
65
|
-
:host([variant='horizontal']) ::slotted(scb-step)::after {
|
|
66
|
-
content: '';
|
|
67
|
-
position: absolute;
|
|
68
|
-
top: calc(var(--spacing-4) + (var(--scb-stepper-symbol-size) / 2));
|
|
69
|
-
height: 1px;
|
|
70
|
-
background-color: var(--n-70);
|
|
71
|
-
transition: background-color var(--motion-duration-medium) var(--motion-easing-standard);
|
|
72
|
-
z-index: 0;
|
|
73
|
-
pointer-events: none;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
:host([variant='horizontal']) ::slotted(scb-step)::before {
|
|
77
|
-
left: 0;
|
|
78
|
-
right: calc(50% + (var(--scb-stepper-symbol-size) / 2) + var(--scb-stepper-connector-gap));
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
:host([variant='horizontal']) ::slotted(scb-step)::after {
|
|
82
|
-
left: calc(50% + (var(--scb-stepper-symbol-size) / 2) + var(--scb-stepper-connector-gap));
|
|
83
|
-
right: 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
:host([variant='horizontal']) ::slotted(scb-step:first-child)::before {
|
|
87
|
-
display: none;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
:host([variant='horizontal']) ::slotted(scb-step:last-child)::after {
|
|
91
|
-
display: none;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
:host([variant='horizontal']) ::slotted(scb-step[completed])::before,
|
|
95
|
-
:host([variant='horizontal']) ::slotted(scb-step[completed])::after {
|
|
96
|
-
background-color: var(--md-sys-color-primary);
|
|
97
|
-
}
|
|
98
|
-
:host([variant='horizontal']) ::slotted(scb-step[active])::before {
|
|
99
|
-
background-color: var(--md-sys-color-primary);
|
|
100
|
-
}
|
|
101
|
-
/* Vertikal connector */
|
|
102
|
-
::slotted(scb-step[variant='vertical'][completed]:not(:last-child))::after {
|
|
103
|
-
background-color: var(--md-sys-color-primary);
|
|
104
|
-
}
|
|
105
|
-
::slotted(scb-step[variant='vertical'][symbol-variant='marker'][completed]:not(:last-child))::after {
|
|
106
|
-
background-color: var(--md-sys-color-primary);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
::slotted(scb-step[variant='vertical']:not(:first-child))::before {
|
|
110
|
-
display: none;
|
|
111
|
-
}
|
|
112
|
-
::slotted(scb-step[variant='vertical']:not(:last-child))::after {
|
|
113
|
-
content: '';
|
|
114
|
-
position: absolute;
|
|
115
|
-
left: 28px;
|
|
116
|
-
top: 52px;
|
|
117
|
-
width: 1px;
|
|
118
|
-
height: calc(100% - 16px);
|
|
119
|
-
background-color: var(--n-70);
|
|
120
|
-
transition: background-color var(--motion-duration-medium) var(--motion-easing-standard);
|
|
121
|
-
z-index: 0;
|
|
122
|
-
transform: translateX(-50%);
|
|
123
|
-
}
|
|
124
|
-
::slotted(scb-step[variant='vertical'][symbol-variant='marker']:not(:last-child))::after {
|
|
125
|
-
content: '';
|
|
126
|
-
position: absolute;
|
|
127
|
-
left: 20px;
|
|
128
|
-
top: 38px;
|
|
129
|
-
width: 1px;
|
|
130
|
-
height: calc(100% - 2px);
|
|
131
|
-
background-color: var(--n-70);
|
|
132
|
-
transition: background-color var(--motion-duration-medium) var(--motion-easing-standard);
|
|
133
|
-
z-index: 0;
|
|
134
|
-
transform: translateX(-50%);
|
|
135
|
-
}
|
|
136
|
-
::slotted(scb-step[symbol-variant='marker']:not(:first-child))::before {
|
|
137
|
-
top: 20px;
|
|
138
|
-
}
|
|
139
|
-
`,u);function S(){const n=c(a,this,m).call(this,this.spacing),t=c(a,this,m).call(this,this.spacingTop)??n,e=c(a,this,m).call(this,this.spacingBottom)??n,s=c(a,this,m).call(this,this.spacingLeft),r=c(a,this,m).call(this,this.spacingRight);t?this.style.setProperty("--scb-stepper-spacing-block-start",t):this.style.removeProperty("--scb-stepper-spacing-block-start"),e?this.style.setProperty("--scb-stepper-spacing-block-end",e):this.style.removeProperty("--scb-stepper-spacing-block-end"),s?this.style.setProperty("--scb-stepper-spacing-inline-start",s):this.style.removeProperty("--scb-stepper-spacing-inline-start"),r?this.style.setProperty("--scb-stepper-spacing-inline-end",r):this.style.removeProperty("--scb-stepper-spacing-inline-end")}function m(n){if(!n)return;const t=String(n).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}function f(){b(d,this)||g(d,this,requestAnimationFrame(()=>{g(d,this,0),c(a,this,C).call(this)}))}function C(){const n=this._getSteps();n.length!==0&&n.forEach(t=>{const e=t.shadowRoot;if(!e)return;const s=e.querySelector(".label"),r=e.querySelector(".scb-step-content");if(!s)return;if(this.variant!=="horizontal"){s.style.removeProperty("max-width"),s.style.removeProperty("white-space"),s.style.removeProperty("word-break"),s.style.removeProperty("overflow-wrap");return}s.style.maxWidth="none",s.style.whiteSpace="nowrap",s.style.wordBreak="normal",s.style.overflowWrap="normal";const i=r?.clientWidth??t.clientWidth;i>0&&s.scrollWidth>i&&(s.style.maxWidth="100%",s.style.whiteSpace="normal",s.style.wordBreak="break-word",s.style.overflowWrap="anywhere")})}p([l({type:String,reflect:!0})],o.prototype,"type",void 0);p([l({type:String,reflect:!0})],o.prototype,"label",void 0);p([l({type:Boolean,reflect:!0,attribute:"change-on-completed"})],o.prototype,"changeOnCompleted",void 0);p([l({type:String})],o.prototype,"variant",void 0);p([l({type:String,reflect:!0,attribute:"symbol-variant"})],o.prototype,"symbolVariant",void 0);p([l({type:String,reflect:!0})],o.prototype,"spacing",void 0);p([l({type:String,attribute:"spacing-top",reflect:!0})],o.prototype,"spacingTop",void 0);p([l({type:String,attribute:"spacing-bottom",reflect:!0})],o.prototype,"spacingBottom",void 0);p([l({type:String,attribute:"spacing-left",reflect:!0})],o.prototype,"spacingLeft",void 0);p([l({type:String,attribute:"spacing-right",reflect:!0})],o.prototype,"spacingRight",void 0);p([l({type:Number,reflect:!0,attribute:"active-index"})],o.prototype,"activeIndex",void 0);o=p([k("scb-stepper")],o);
|
|
11
|
+
`}connectedCallback(){super.connectedCallback(),typeof ResizeObserver<"u"&&(g(v,this,new ResizeObserver(()=>{c(a,this,m).call(this)})),b(v,this).observe(this))}disconnectedCallback(){b(v,this)&&(b(v,this).disconnect(),g(v,this,void 0)),b(d,this)&&(cancelAnimationFrame(b(d,this)),g(d,this,0)),super.disconnectedCallback()}},u.styles=w`:host{--scb-stepper-width:100%;--scb-stepper-height:100%;--scb-stepper-step-count:1;--scb-stepper-connector-gap:var(--spacing-2);--scb-stepper-symbol-size:var(--icon-size-medium);display:block;padding:var(--spacing-5)0;width:100%;color:var(--md-sys-color-on-surface);font-family:var(--brand-font);max-width:var(--scb-stepper-width);height:var(--scb-stepper-height);margin-block-start:var(--scb-stepper-spacing-block-start, 0);margin-block-end:var(--scb-stepper-spacing-block-end, 0);margin-inline-start:var(--scb-stepper-spacing-inline-start, 0);margin-inline-end:var(--scb-stepper-spacing-inline-end, 0)}.steps{display:flex;flex-direction:row;align-items:stretch;justify-content:center;position:relative;width:100%;gap:0;height:100%}:host([variant='vertical']) .steps{flex-direction:column;gap:var(--spacing-8)}:host([symbol-variant='marker']){--scb-stepper-symbol-size:16px}::slotted(scb-step){position:relative;z-index:1;width:100%;min-width:0}:host([variant='horizontal']) ::slotted(scb-step){flex:var(--scb-step-width-weight, 1)1 0}:host([variant='horizontal']) ::slotted(scb-step)::after,:host([variant='horizontal']) ::slotted(scb-step)::before{content:"";position:absolute;top:calc(var(--spacing-4) + (var(--scb-stepper-symbol-size)/2));height:1px;background-color:var(--n-70);transition:background-color var(--motion-duration-medium) var(--motion-easing-standard);z-index:0;pointer-events:none}:host([variant='horizontal']) ::slotted(scb-step)::before{left:0;right:calc(50% + (var(--scb-stepper-symbol-size)/2) + var(--scb-stepper-connector-gap))}:host([variant='horizontal']) ::slotted(scb-step)::after{left:calc(50% + (var(--scb-stepper-symbol-size)/2) + var(--scb-stepper-connector-gap));right:0}:host([variant='horizontal']) ::slotted(scb-step:first-child)::before,:host([variant='horizontal']) ::slotted(scb-step:last-child)::after{display:none}:host([variant='horizontal']) ::slotted(scb-step[active])::before,:host([variant='horizontal']) ::slotted(scb-step[completed])::after,:host([variant='horizontal']) ::slotted(scb-step[completed])::before{background-color:var(--md-sys-color-primary)}::slotted(scb-step[variant=vertical][completed]:not(:last-child))::after,::slotted(scb-step[variant=vertical][symbol-variant=marker][completed]:not(:last-child))::after{background-color:var(--md-sys-color-primary)}::slotted(scb-step[variant=vertical]:not(:first-child))::before{display:none}::slotted(scb-step[variant=vertical]:not(:last-child))::after,::slotted(scb-step[variant=vertical][symbol-variant=marker]:not(:last-child))::after{content:"";position:absolute;left:28px;top:52px;width:1px;height:calc(100% - 16px);background-color:var(--n-70);transition:background-color var(--motion-duration-medium) var(--motion-easing-standard);z-index:0;transform:translateX(-50%)}::slotted(scb-step[variant=vertical][symbol-variant=marker]:not(:last-child))::after{left:20px;top:38px;height:calc(100% - 2px)}::slotted(scb-step[symbol-variant=marker]:not(:first-child))::before{top:20px}`,u);function S(){const n=c(a,this,f).call(this,this.spacing),t=c(a,this,f).call(this,this.spacingTop)??n,e=c(a,this,f).call(this,this.spacingBottom)??n,s=c(a,this,f).call(this,this.spacingLeft),r=c(a,this,f).call(this,this.spacingRight);t?this.style.setProperty("--scb-stepper-spacing-block-start",t):this.style.removeProperty("--scb-stepper-spacing-block-start"),e?this.style.setProperty("--scb-stepper-spacing-block-end",e):this.style.removeProperty("--scb-stepper-spacing-block-end"),s?this.style.setProperty("--scb-stepper-spacing-inline-start",s):this.style.removeProperty("--scb-stepper-spacing-inline-start"),r?this.style.setProperty("--scb-stepper-spacing-inline-end",r):this.style.removeProperty("--scb-stepper-spacing-inline-end")}function f(n){if(!n)return;const t=String(n).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}function m(){b(d,this)||g(d,this,requestAnimationFrame(()=>{g(d,this,0),c(a,this,C).call(this)}))}function C(){const n=this._getSteps();n.length!==0&&n.forEach(t=>{const e=t.shadowRoot;if(!e)return;const s=e.querySelector(".label"),r=e.querySelector(".scb-step-content");if(!s)return;if(this.variant!=="horizontal"){s.style.removeProperty("max-width"),s.style.removeProperty("white-space"),s.style.removeProperty("word-break"),s.style.removeProperty("overflow-wrap");return}s.style.maxWidth="none",s.style.whiteSpace="nowrap",s.style.wordBreak="normal",s.style.overflowWrap="normal";const i=r?.clientWidth??t.clientWidth;i>0&&s.scrollWidth>i&&(s.style.maxWidth="100%",s.style.whiteSpace="normal",s.style.wordBreak="break-word",s.style.overflowWrap="anywhere")})}p([l({type:String,reflect:!0})],o.prototype,"type",void 0);p([l({type:String,reflect:!0})],o.prototype,"label",void 0);p([l({type:Boolean,reflect:!0,attribute:"change-on-completed"})],o.prototype,"changeOnCompleted",void 0);p([l({type:String})],o.prototype,"variant",void 0);p([l({type:String,reflect:!0,attribute:"symbol-variant"})],o.prototype,"symbolVariant",void 0);p([l({type:String,reflect:!0})],o.prototype,"spacing",void 0);p([l({type:String,attribute:"spacing-top",reflect:!0})],o.prototype,"spacingTop",void 0);p([l({type:String,attribute:"spacing-bottom",reflect:!0})],o.prototype,"spacingBottom",void 0);p([l({type:String,attribute:"spacing-left",reflect:!0})],o.prototype,"spacingLeft",void 0);p([l({type:String,attribute:"spacing-right",reflect:!0})],o.prototype,"spacingRight",void 0);p([l({type:Number,reflect:!0,attribute:"active-index"})],o.prototype,"activeIndex",void 0);o=p([x("scb-stepper")],o);
|