scb-wc 0.1.75 → 0.1.76
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/index.js +20 -20
- package/mvc/components/scb-accordion/scb-accordion-item.js +2 -2
- package/mvc/components/scb-avatar/scb-avatar.js +2 -2
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +33 -15
- package/mvc/components/scb-button/scb-button.js +80 -41
- package/mvc/components/scb-calendar/scb-calendar.js +1 -1
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +4 -4
- package/mvc/components/scb-card/scb-card.js +3 -3
- package/mvc/components/scb-checkbox/scb-checkbox.js +32 -7
- package/mvc/components/scb-chip/scb-chip.js +6 -6
- package/mvc/components/scb-dialog/scb-dialog.js +1 -1
- package/mvc/components/scb-dropdown/scb-dropdown.js +1 -1
- package/mvc/components/scb-fab/scb-fab.js +24 -6
- package/mvc/components/scb-fact-card/scb-fact-card.js +4 -4
- package/mvc/components/scb-header/scb-header.js +474 -124
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +1 -1
- package/mvc/components/scb-icon-button/scb-icon-button.js +2 -2
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +2 -2
- package/mvc/components/scb-link/scb-link.js +14 -10
- package/mvc/components/scb-list/scb-list-item.js +5 -5
- package/mvc/components/scb-list/scb-list.js +3 -3
- package/mvc/components/scb-menu/scb-menu-item.js +2 -2
- package/mvc/components/scb-nav/scb-nav.js +1 -1
- package/mvc/components/scb-notification-card/scb-notification-card.js +1 -1
- package/mvc/components/scb-options-menu/scb-options-menu-item.js +1 -1
- package/mvc/components/scb-pagination/scb-pagination.js +1 -1
- package/mvc/components/scb-progress-stepper/scb-progress-step.js +1 -1
- package/mvc/components/scb-radio-button/scb-radio-button.js +39 -9
- package/mvc/components/scb-search/scb-search.js +3 -3
- package/mvc/components/scb-segmented-button/scb-segmented-item.js +1 -1
- package/mvc/components/scb-select/scb-select-option.js +3 -3
- package/mvc/components/scb-select/scb-select.js +1 -1
- package/mvc/components/scb-slider/scb-slider.js +58 -4
- package/mvc/components/scb-status-pill/scb-status-pill.js +1 -1
- package/mvc/components/scb-stepper/scb-step.js +1 -1
- package/mvc/components/scb-switch/scb-switch.js +51 -6
- package/mvc/components/scb-tabs/scb-primary-tab.js +3 -2
- package/mvc/components/scb-tabs/scb-secondary-tab.js +3 -2
- package/mvc/components/scb-tabs/scb-tabs.js +11 -2
- package/mvc/components/scb-textfield/scb-textfield.js +1 -1
- package/mvc/components/scb-toc/scb-toc-item.js +1 -1
- package/mvc/components/scb-tooltip/scb-tooltip.js +1 -1
- package/mvc/vendor/assist-chip.js +20 -0
- package/mvc/vendor/attachable-controller.js +1 -0
- package/mvc/vendor/checkbox-validator.js +1 -0
- package/mvc/vendor/chip-set.js +2 -0
- package/mvc/vendor/chip.js +18 -0
- package/mvc/vendor/delegate.js +1 -0
- package/mvc/vendor/element-internals.js +1 -0
- package/mvc/vendor/elevation.js +2 -0
- package/mvc/vendor/filled-icon-button.js +2 -0
- package/mvc/vendor/filled-tonal-icon-button.js +2 -0
- package/mvc/vendor/filter-chip.js +43 -0
- package/mvc/vendor/focusable.js +1 -0
- package/mvc/vendor/form-associated.js +1 -0
- package/mvc/vendor/form-label-activation.js +1 -0
- package/mvc/vendor/form-submitter.js +1 -0
- package/mvc/vendor/icon-button.js +2 -0
- package/mvc/vendor/icon.js +2 -0
- package/mvc/vendor/list.js +8 -0
- package/mvc/vendor/md-focus-ring.js +2 -0
- package/mvc/vendor/outlined-icon-button.js +2 -0
- package/mvc/vendor/redispatch-event.js +1 -0
- package/mvc/vendor/ripple.js +2 -0
- package/mvc/vendor/rolldown-runtime.js +1 -0
- package/mvc/vendor/shared-styles.js +3 -0
- package/mvc/vendor/shared-styles2.js +30 -0
- package/mvc/vendor/tab-styles.js +17 -0
- package/mvc/vendor/validator.js +1 -0
- package/package.json +2 -2
- package/scb-breadcrumb/scb-breadcrumb.js +38 -21
- package/scb-components/scb-header/scb-header.d.ts +11 -4
- package/scb-header/scb-header.js +512 -156
- package/scb-link/scb-link.js +24 -20
- package/scb-wc.bundle.js +602 -232
- package/mvc/vendor/vendor-material.js +0 -364
|
@@ -3,10 +3,10 @@ import "../scb-link/scb-link.js";
|
|
|
3
3
|
import "./scb-breadcrumb-item.js";
|
|
4
4
|
import { LitElement as t, css as n, html as r } from "lit";
|
|
5
5
|
import { customElement as i, property as a } from "lit/decorators.js";
|
|
6
|
-
import "@material/web/focus/md-focus-ring.js";
|
|
7
|
-
import "@material/web/icon/icon.js";
|
|
8
6
|
//#region src/scb-components/scb-breadcrumb/scb-breadcrumb.ts
|
|
9
|
-
var o =
|
|
7
|
+
var o, s = () => {
|
|
8
|
+
customElements.get("md-focus-ring") || (o ??= import("@material/web/focus/md-focus-ring.js").then(() => void 0));
|
|
9
|
+
}, c = class extends t {
|
|
10
10
|
constructor(...e) {
|
|
11
11
|
super(...e), 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;
|
|
12
12
|
}
|
|
@@ -60,12 +60,6 @@ var o = class extends t {
|
|
|
60
60
|
outline: none;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.breadcrumb-animate {
|
|
64
|
-
opacity: 0;
|
|
65
|
-
transform: translateY(10px);
|
|
66
|
-
animation: fadeInBreadcrumb 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
63
|
md-focus-ring {
|
|
70
64
|
position: absolute;
|
|
71
65
|
inset: 0;
|
|
@@ -81,6 +75,30 @@ var o = class extends t {
|
|
|
81
75
|
display: block;
|
|
82
76
|
}
|
|
83
77
|
|
|
78
|
+
.breadcrumb-animate {
|
|
79
|
+
opacity: 0;
|
|
80
|
+
transform: translateY(10px);
|
|
81
|
+
animation: fadeInBreadcrumb 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.breadcrumb-icon {
|
|
85
|
+
display: inline-block;
|
|
86
|
+
inline-size: 1em;
|
|
87
|
+
overflow: hidden;
|
|
88
|
+
font-family: 'Material Symbols Outlined';
|
|
89
|
+
font-size: var(--icon-size-medium, 24px);
|
|
90
|
+
line-height: 1;
|
|
91
|
+
text-align: center;
|
|
92
|
+
white-space: nowrap;
|
|
93
|
+
text-transform: none;
|
|
94
|
+
word-wrap: normal;
|
|
95
|
+
direction: ltr;
|
|
96
|
+
font-feature-settings: 'liga' 1;
|
|
97
|
+
font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
|
|
98
|
+
-webkit-font-smoothing: antialiased;
|
|
99
|
+
-moz-osx-font-smoothing: grayscale;
|
|
100
|
+
}
|
|
101
|
+
|
|
84
102
|
@keyframes fadeInBreadcrumb {
|
|
85
103
|
to {
|
|
86
104
|
opacity: 1;
|
|
@@ -208,15 +226,14 @@ var o = class extends t {
|
|
|
208
226
|
aria-label="Visa alla"
|
|
209
227
|
role="button"
|
|
210
228
|
tabindex="0"
|
|
229
|
+
@focusin=${s}
|
|
211
230
|
@click=${this._onEllipsisClick}
|
|
212
231
|
@keydown=${(e) => {
|
|
213
232
|
(e.key === "Enter" || e.key === " ") && this._onEllipsisClick();
|
|
214
233
|
}}
|
|
215
234
|
>
|
|
216
|
-
<md-
|
|
217
|
-
|
|
218
|
-
more_horiz
|
|
219
|
-
</md-icon>
|
|
235
|
+
<md-focus-ring aria-hidden="true"></md-focus-ring>
|
|
236
|
+
<span class="breadcrumb-icon" aria-hidden="true">more_horiz</span>
|
|
220
237
|
</span>
|
|
221
238
|
`;
|
|
222
239
|
let i = this.getItemLabel(e.item), a = this.getItemHref(e.item);
|
|
@@ -238,29 +255,29 @@ e([a({
|
|
|
238
255
|
type: Boolean,
|
|
239
256
|
attribute: "show-all",
|
|
240
257
|
reflect: !0
|
|
241
|
-
})],
|
|
258
|
+
})], c.prototype, "showAll", void 0), e([a({
|
|
242
259
|
type: Number,
|
|
243
260
|
attribute: "current-index",
|
|
244
261
|
reflect: !0
|
|
245
|
-
})],
|
|
262
|
+
})], c.prototype, "currentIndex", void 0), e([a({
|
|
246
263
|
type: String,
|
|
247
264
|
reflect: !0
|
|
248
|
-
})],
|
|
265
|
+
})], c.prototype, "spacing", void 0), e([a({
|
|
249
266
|
type: String,
|
|
250
267
|
attribute: "spacing-top",
|
|
251
268
|
reflect: !0
|
|
252
|
-
})],
|
|
269
|
+
})], c.prototype, "spacingTop", void 0), e([a({
|
|
253
270
|
type: String,
|
|
254
271
|
attribute: "spacing-bottom",
|
|
255
272
|
reflect: !0
|
|
256
|
-
})],
|
|
273
|
+
})], c.prototype, "spacingBottom", void 0), e([a({
|
|
257
274
|
type: String,
|
|
258
275
|
attribute: "spacing-left",
|
|
259
276
|
reflect: !0
|
|
260
|
-
})],
|
|
277
|
+
})], c.prototype, "spacingLeft", void 0), e([a({
|
|
261
278
|
type: String,
|
|
262
279
|
attribute: "spacing-right",
|
|
263
280
|
reflect: !0
|
|
264
|
-
})],
|
|
281
|
+
})], c.prototype, "spacingRight", void 0), c = e([i("scb-breadcrumb")], c);
|
|
265
282
|
//#endregion
|
|
266
|
-
export {
|
|
283
|
+
export { c as SCBBreadcrumb };
|
|
@@ -66,6 +66,7 @@ export declare class ScbHeader extends LitElement {
|
|
|
66
66
|
private _mobileSearchOpen;
|
|
67
67
|
private _drawerImportPromise?;
|
|
68
68
|
private _dropdownImportPromise?;
|
|
69
|
+
private _focusRingImportPromise?;
|
|
69
70
|
private _initialUpgradeComplete;
|
|
70
71
|
private _slotNavItems;
|
|
71
72
|
private _slotUtils;
|
|
@@ -95,7 +96,6 @@ export declare class ScbHeader extends LitElement {
|
|
|
95
96
|
private get _logoGroup();
|
|
96
97
|
private get _searchWrap();
|
|
97
98
|
private get _menuBtn();
|
|
98
|
-
private get _searchEl();
|
|
99
99
|
private get _tabsNav();
|
|
100
100
|
private _attachSlotObservers;
|
|
101
101
|
private _sameNavItems;
|
|
@@ -123,13 +123,16 @@ export declare class ScbHeader extends LitElement {
|
|
|
123
123
|
private _applyLogoSizing;
|
|
124
124
|
private _closeDrawerNow;
|
|
125
125
|
private _openDrawerNow;
|
|
126
|
+
private _ensureFocusRingReady;
|
|
127
|
+
private _onGlobalFocusRingKeydown;
|
|
128
|
+
private _onGlobalFocusRingPointerDown;
|
|
129
|
+
private _onLocalFocusIn;
|
|
126
130
|
private _ensureDrawerReady;
|
|
127
131
|
private _ensureDropdownReady;
|
|
128
132
|
private _onDrawerOpened;
|
|
129
133
|
private _onDrawerClosed;
|
|
130
134
|
private _syncMenuBtnAria;
|
|
131
135
|
private _onMenuClick;
|
|
132
|
-
private _onSearchClick;
|
|
133
136
|
private _onMobileSearchToggle;
|
|
134
137
|
private _getNavItems;
|
|
135
138
|
private _getDropdownForSlot;
|
|
@@ -142,10 +145,14 @@ export declare class ScbHeader extends LitElement {
|
|
|
142
145
|
private _renderMenuNodes;
|
|
143
146
|
private _renderMenuNode;
|
|
144
147
|
private _syncFlags;
|
|
145
|
-
private
|
|
146
|
-
private
|
|
148
|
+
private _emitSearchInput;
|
|
149
|
+
private _emitSearchChange;
|
|
150
|
+
private _onNativeSearchInput;
|
|
151
|
+
private _onNativeSearchSubmit;
|
|
147
152
|
private _onSearchClear;
|
|
153
|
+
private _onNativeSearchClear;
|
|
148
154
|
private _renderMenuButton;
|
|
155
|
+
private _renderSearchForm;
|
|
149
156
|
render(): TemplateResult;
|
|
150
157
|
private _renderTabSkeletons;
|
|
151
158
|
private _renderLogo;
|