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
|
@@ -2,7 +2,6 @@ import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.126.0/helpe
|
|
|
2
2
|
import "./scb-checkbox-group.js";
|
|
3
3
|
import { LitElement as t, css as n, html as r, nothing as i } from "lit";
|
|
4
4
|
import { customElement as a, property as o } from "lit/decorators.js";
|
|
5
|
-
import "@material/web/focus/md-focus-ring.js";
|
|
6
5
|
import "@material/web/checkbox/checkbox.js";
|
|
7
6
|
//#region src/scb-components/scb-checkbox/scb-checkbox.ts
|
|
8
7
|
var s = !1, c = 0, l = (e) => {
|
|
@@ -24,13 +24,25 @@ export declare class ScbButton extends LitElement {
|
|
|
24
24
|
spacingRight: undefined;
|
|
25
25
|
private __ariaObserver?;
|
|
26
26
|
private __hasDefaultSlotContent;
|
|
27
|
-
private
|
|
28
|
-
private
|
|
27
|
+
private __nativeFocusRingReady;
|
|
28
|
+
private __nativeRippleReady;
|
|
29
|
+
private __nativeRipplePendingPointerEvent?;
|
|
30
|
+
private __nativeRipplePendingClick;
|
|
31
|
+
private __getNativeControl;
|
|
29
32
|
private __handleDefaultSlotChange;
|
|
30
33
|
private __syncAriaToInner;
|
|
34
|
+
private __syncAriaToControl;
|
|
35
|
+
connectedCallback(): void;
|
|
31
36
|
protected firstUpdated(): void;
|
|
32
37
|
protected updated(changed: Map<string, unknown>): void;
|
|
33
38
|
disconnectedCallback(): void;
|
|
39
|
+
private __ensureNativeFocusRing;
|
|
40
|
+
private __onNativeFocusIn;
|
|
41
|
+
private __ensureNativeRipple;
|
|
42
|
+
private __onNativePointerWarmup;
|
|
43
|
+
private __onNativeClick;
|
|
44
|
+
private __syncNativeFocusRingControl;
|
|
45
|
+
private __replayNativeRippleState;
|
|
34
46
|
private mapSpacingToken;
|
|
35
47
|
static get styles(): import('lit').CSSResult;
|
|
36
48
|
render(): TemplateResult;
|
|
@@ -36,6 +36,7 @@ export declare class ScbCalendar extends LitElement {
|
|
|
36
36
|
static styles: import('lit').CSSResult;
|
|
37
37
|
private _mutationObserver;
|
|
38
38
|
private _syncingDisplay;
|
|
39
|
+
private _removeLazyFocusRingListeners?;
|
|
39
40
|
connectedCallback(): void;
|
|
40
41
|
disconnectedCallback(): void;
|
|
41
42
|
private mapSpacingToken;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
2
|
export declare class ScbCalendarCard extends LitElement {
|
|
3
|
-
#private;
|
|
4
3
|
variant: 'default' | 'outlined' | 'filled';
|
|
5
4
|
size: 'small' | 'medium' | 'large';
|
|
6
5
|
date: string | Date | null;
|
|
@@ -27,17 +26,30 @@ export declare class ScbCalendarCard extends LitElement {
|
|
|
27
26
|
spacingBottom: undefined;
|
|
28
27
|
spacingLeft: undefined;
|
|
29
28
|
spacingRight: undefined;
|
|
30
|
-
private
|
|
31
|
-
private
|
|
29
|
+
private __focusRingRequested;
|
|
30
|
+
private __focusRingLoaded;
|
|
31
|
+
private __rippleRequested;
|
|
32
|
+
private __rippleLoaded;
|
|
33
|
+
private __pendingRippleEvent?;
|
|
34
|
+
private __pendingRippleClick;
|
|
32
35
|
private __hasSlottedContent;
|
|
33
36
|
private __getSlottedText;
|
|
34
|
-
|
|
37
|
+
private get __resolvedTitle();
|
|
38
|
+
private get __resolvedSubtitle();
|
|
39
|
+
private get __resolvedLabel();
|
|
40
|
+
protected firstUpdated(): void;
|
|
35
41
|
static styles: import('lit').CSSResult;
|
|
42
|
+
private __ensureRipple;
|
|
43
|
+
private __syncRipple;
|
|
44
|
+
private __onPointerInteraction;
|
|
45
|
+
private __ensureFocusRingOnFocusVisible;
|
|
36
46
|
render(): import('lit-html').TemplateResult<1>;
|
|
47
|
+
private __getDateParts;
|
|
37
48
|
private __applyInnerSizing;
|
|
38
49
|
private _onKeyDown;
|
|
39
50
|
private _handleHrefNavigation;
|
|
40
51
|
private mapSpacingToken;
|
|
52
|
+
private __applySpacing;
|
|
41
53
|
protected updated(changed: Map<string, unknown>): void;
|
|
42
54
|
}
|
|
43
55
|
declare global {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ScbCard, ScbCardType } from './scb-card.js';
|
|
2
|
+
export type ScbCardVariantType = Exclude<ScbCardType, 'standard'>;
|
|
3
|
+
export type ScbCardVariantRenderParts = {
|
|
4
|
+
topContentTpl: (withLink?: boolean, includeSupportingText?: boolean, includeDate?: boolean, supportingText?: string) => unknown;
|
|
5
|
+
footerTpl: () => unknown;
|
|
6
|
+
contentChipTpl: () => unknown;
|
|
7
|
+
headerTpl: (withLink?: boolean) => unknown;
|
|
8
|
+
subtitleTpl: () => unknown;
|
|
9
|
+
effectiveHref: string;
|
|
10
|
+
hasHeading: boolean;
|
|
11
|
+
hasSubtitle: boolean;
|
|
12
|
+
hasListTopContent: boolean;
|
|
13
|
+
};
|
|
14
|
+
export declare function ensureScbCardVariantStyles(renderRoot: Element | DocumentFragment): void;
|
|
15
|
+
export declare function renderScbCardVariant(card: ScbCard, cardType: ScbCardVariantType, parts: ScbCardVariantRenderParts): unknown;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
export type ScbCardType = 'standard' | 'list' | 'social' | 'link' | 'action' | 'container';
|
|
3
3
|
export declare class ScbCard extends LitElement {
|
|
4
|
-
|
|
5
|
-
private
|
|
6
|
-
private
|
|
7
|
-
private
|
|
4
|
+
private __lightDomObserver?;
|
|
5
|
+
private __dependencyKey;
|
|
6
|
+
private __focusRingRequested;
|
|
7
|
+
private __focusRingLoaded;
|
|
8
|
+
private __rippleRequested;
|
|
9
|
+
private __rippleLoaded;
|
|
10
|
+
private __pendingRippleEvent?;
|
|
11
|
+
private __pendingRippleClick;
|
|
12
|
+
private __variantRenderer?;
|
|
8
13
|
private __isSyncingManagedSocialAttributes;
|
|
9
14
|
type: ScbCardType;
|
|
10
15
|
variant: string;
|
|
@@ -76,19 +81,29 @@ export declare class ScbCard extends LitElement {
|
|
|
76
81
|
*/
|
|
77
82
|
get likeButton(): HTMLElement | null;
|
|
78
83
|
private __calcAspectWH;
|
|
84
|
+
private __mediaReserveAspect;
|
|
85
|
+
private __mediaReserveStyle;
|
|
86
|
+
private __slottedMediaAspect;
|
|
79
87
|
private __onImgLoad;
|
|
80
|
-
private
|
|
81
|
-
private __decodeHtmlEntities;
|
|
82
|
-
private __normalizePlainText;
|
|
88
|
+
private get __resolvedTitle();
|
|
83
89
|
protected get cardType(): ScbCardType;
|
|
84
|
-
private
|
|
85
|
-
private __dispatchSocialActionEvent;
|
|
90
|
+
private __ensureVariantRenderer;
|
|
86
91
|
private __dispatchCardNavigate;
|
|
87
92
|
private __effectiveHref;
|
|
93
|
+
private __slottedCardLink;
|
|
94
|
+
private __primaryHref;
|
|
88
95
|
private __navigate;
|
|
96
|
+
private __slotNames;
|
|
89
97
|
private __hasSlottedContent;
|
|
98
|
+
private __hasLightDomElement;
|
|
99
|
+
private __ensureDependenciesReady;
|
|
100
|
+
private __ensureRippleOnInteraction;
|
|
101
|
+
private __syncRipple;
|
|
102
|
+
private __ensureFocusRingOnFocusVisible;
|
|
90
103
|
private __mediaTemplate;
|
|
91
104
|
private mapSpacingToken;
|
|
105
|
+
private __applySpacing;
|
|
106
|
+
private __applyPadding;
|
|
92
107
|
private __syncStringAttribute;
|
|
93
108
|
private __syncNumberAttribute;
|
|
94
109
|
private __syncBooleanAttribute;
|
|
@@ -96,8 +111,10 @@ export declare class ScbCard extends LitElement {
|
|
|
96
111
|
render(): import('lit-html').TemplateResult<1>;
|
|
97
112
|
protected updated(changed: PropertyValues): void;
|
|
98
113
|
protected firstUpdated(_changed: PropertyValues): Promise<void>;
|
|
114
|
+
disconnectedCallback(): void;
|
|
99
115
|
private __onKeyDown;
|
|
100
116
|
private __handleHrefNavigation;
|
|
117
|
+
private __handleSlottedCardLinkClick;
|
|
101
118
|
}
|
|
102
119
|
export declare class ScbListCard extends ScbCard {
|
|
103
120
|
constructor();
|
|
@@ -12,6 +12,9 @@ export declare class ScbCookiesConsent extends LitElement {
|
|
|
12
12
|
spacingRight: undefined;
|
|
13
13
|
static styles: import('lit').CSSResult;
|
|
14
14
|
private _updateButtonWidth;
|
|
15
|
+
private __ensureSlottedButtonsReady;
|
|
16
|
+
private __onButtonHydrationInteraction;
|
|
17
|
+
private __onButtonsSlotChange;
|
|
15
18
|
private mapSpacingToken;
|
|
16
19
|
private applySpacing;
|
|
17
20
|
firstUpdated(_changed: PropertyValues): void;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TemplateResult } from 'lit';
|
|
2
|
+
interface HeaderDrawerMenuNode {
|
|
3
|
+
label: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
icon?: string;
|
|
6
|
+
children?: HeaderDrawerMenuNode[];
|
|
7
|
+
}
|
|
8
|
+
interface HeaderDrawerUtilityItem {
|
|
9
|
+
label: string;
|
|
10
|
+
href: string;
|
|
11
|
+
}
|
|
12
|
+
export interface HeaderDrawerRenderOptions {
|
|
13
|
+
drawerId: string;
|
|
14
|
+
drawerOverlay: boolean;
|
|
15
|
+
size: 'small' | 'medium' | 'large';
|
|
16
|
+
menuLabel?: string;
|
|
17
|
+
menuSubLabel?: string;
|
|
18
|
+
menuSearchPlaceholder?: string;
|
|
19
|
+
menuSectionLabel?: string;
|
|
20
|
+
includeUtilityInMenu: boolean;
|
|
21
|
+
menu: HeaderDrawerMenuNode[];
|
|
22
|
+
utils: HeaderDrawerUtilityItem[];
|
|
23
|
+
hasDrawerCloseSlot: boolean;
|
|
24
|
+
hasDrawerMenuSlot: boolean;
|
|
25
|
+
onDrawerOpened: (event: Event) => void;
|
|
26
|
+
onDrawerClosed: (event: Event) => void;
|
|
27
|
+
onMenuSelect: (event: Event) => void;
|
|
28
|
+
onDrawerSlotChange: () => void | Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
export declare const renderHeaderDrawer: (options: HeaderDrawerRenderOptions) => TemplateResult;
|
|
31
|
+
export {};
|
|
@@ -63,6 +63,7 @@ export declare class ScbHeader extends LitElement {
|
|
|
63
63
|
private _menuExpanded;
|
|
64
64
|
private _searchId;
|
|
65
65
|
private _drawerReady;
|
|
66
|
+
private _drawerRenderer?;
|
|
66
67
|
private _mobileSearchOpen;
|
|
67
68
|
private _drawerImportPromise?;
|
|
68
69
|
private _dropdownImportPromise?;
|
|
@@ -147,8 +148,6 @@ export declare class ScbHeader extends LitElement {
|
|
|
147
148
|
private _onTabClick;
|
|
148
149
|
private _onDropdownTabActivate;
|
|
149
150
|
private _onTabsKeydown;
|
|
150
|
-
private _renderMenuNodes;
|
|
151
|
-
private _renderMenuNode;
|
|
152
151
|
private _syncFlags;
|
|
153
152
|
private _emitSearchInput;
|
|
154
153
|
private _emitSearchChange;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
export declare class ScbHorizontalScroller extends LitElement {
|
|
3
|
-
#private;
|
|
4
3
|
/** Variant för scroll-layout. */
|
|
5
4
|
variant: 'standard' | 'inline';
|
|
6
5
|
/** Fast bredd på scroller, t.ex. '400px' eller '100%'. */
|
|
@@ -26,6 +25,8 @@ export declare class ScbHorizontalScroller extends LitElement {
|
|
|
26
25
|
static styles: import('lit').CSSResult;
|
|
27
26
|
private getScrollStep;
|
|
28
27
|
private doScrollBy;
|
|
28
|
+
private __scrollLeft;
|
|
29
|
+
private __scrollRight;
|
|
29
30
|
private updateScrollButtons;
|
|
30
31
|
connectedCallback(): void;
|
|
31
32
|
disconnectedCallback(): void;
|
|
@@ -36,6 +37,8 @@ export declare class ScbHorizontalScroller extends LitElement {
|
|
|
36
37
|
private slotEl;
|
|
37
38
|
private sizeObserver;
|
|
38
39
|
private resizeRaf;
|
|
40
|
+
private __onFocusIn;
|
|
41
|
+
private __onLazyFocusRingKeydown;
|
|
39
42
|
private dispatchCustomEvent;
|
|
40
43
|
private dispatchCustomEventWithAlias;
|
|
41
44
|
private handleScroll;
|
|
@@ -43,5 +46,7 @@ export declare class ScbHorizontalScroller extends LitElement {
|
|
|
43
46
|
firstUpdated(): void;
|
|
44
47
|
updated(changed: PropertyValues): void;
|
|
45
48
|
private mapSpacingToken;
|
|
49
|
+
private __applySpacing;
|
|
50
|
+
private __applyInternalGap;
|
|
46
51
|
render(): import('lit-html').TemplateResult<1>;
|
|
47
52
|
}
|
|
@@ -12,7 +12,7 @@ export declare class ScbIconButton extends LitElement {
|
|
|
12
12
|
/** Alias för filled. Styrs via attribute "icon-filled". */
|
|
13
13
|
get iconFilled(): boolean;
|
|
14
14
|
set iconFilled(value: boolean);
|
|
15
|
-
/** Tillgänglighetslabel. Speglas till
|
|
15
|
+
/** Tillgänglighetslabel. Speglas till den faktiska knappen/länken. */
|
|
16
16
|
ariaLabel: string;
|
|
17
17
|
/** Variant enligt Material. */
|
|
18
18
|
variant: IconVariant;
|
|
@@ -31,41 +31,40 @@ export declare class ScbIconButton extends LitElement {
|
|
|
31
31
|
/** Inaktiverad. */
|
|
32
32
|
disabled: boolean;
|
|
33
33
|
/** Vertikalt avstånd till omgivande innehåll. "N" mappar till var(--spacing-N). */
|
|
34
|
-
spacing
|
|
35
|
-
/** Överkantens avstånd. Om satt går före spacing. 0
|
|
36
|
-
spacingTop
|
|
37
|
-
/** Nederkantens avstånd. Om satt går före spacing. 0
|
|
38
|
-
spacingBottom
|
|
39
|
-
/** Vänsterkantens avstånd. 0
|
|
40
|
-
spacingLeft
|
|
41
|
-
/** Högerkantens avstånd. 0
|
|
42
|
-
spacingRight
|
|
34
|
+
spacing?: string;
|
|
35
|
+
/** Överkantens avstånd. Om satt går före spacing. 0-14 mappar till var(--spacing-N), annars CSS-värde. */
|
|
36
|
+
spacingTop?: string;
|
|
37
|
+
/** Nederkantens avstånd. Om satt går före spacing. 0-14 mappar till var(--spacing-N), annars CSS-värde. */
|
|
38
|
+
spacingBottom?: string;
|
|
39
|
+
/** Vänsterkantens avstånd. 0-14 mappar till var(--spacing-N), annars CSS-värde. */
|
|
40
|
+
spacingLeft?: string;
|
|
41
|
+
/** Högerkantens avstånd. 0-14 mappar till var(--spacing-N), annars CSS-värde. */
|
|
42
|
+
spacingRight?: string;
|
|
43
43
|
href: string;
|
|
44
44
|
target: string;
|
|
45
45
|
rel: string;
|
|
46
46
|
private __filledValue;
|
|
47
|
-
private
|
|
48
|
-
private
|
|
49
|
-
private
|
|
50
|
-
|
|
47
|
+
private __focusRingReady;
|
|
48
|
+
private __focusRingImportRequested;
|
|
49
|
+
private __rippleReady;
|
|
50
|
+
private __pendingRippleEvent?;
|
|
51
|
+
private __pendingRippleClick;
|
|
52
|
+
protected firstUpdated(): void;
|
|
51
53
|
protected updated(changed: PropertyValues): void;
|
|
52
|
-
|
|
53
|
-
private
|
|
54
|
-
|
|
55
|
-
private
|
|
56
|
-
|
|
57
|
-
private
|
|
58
|
-
|
|
59
|
-
private
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
private __syncTitleAndAria;
|
|
54
|
+
focus(options?: FocusOptions): void;
|
|
55
|
+
private __getNativeControl;
|
|
56
|
+
private __syncInteractiveState;
|
|
57
|
+
private __ensureFocusRing;
|
|
58
|
+
private __onFocusIn;
|
|
59
|
+
private __ensureRipple;
|
|
60
|
+
private __onPointerInteraction;
|
|
61
|
+
private __replayRippleState;
|
|
62
|
+
private __onClick;
|
|
63
|
+
private __effectiveLabel;
|
|
64
|
+
private __currentIcon;
|
|
64
65
|
private mapSpacingToken;
|
|
65
66
|
static styles: import('lit').CSSResult;
|
|
66
|
-
private
|
|
67
|
-
private __renderSingleIcon;
|
|
68
|
-
private __renderMd;
|
|
67
|
+
private __renderControl;
|
|
69
68
|
render(): TemplateResult;
|
|
70
69
|
}
|
|
71
70
|
declare global {
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from 'lit';
|
|
2
2
|
export declare class ScbKeyFigureCard extends LitElement {
|
|
3
|
-
|
|
4
|
-
private
|
|
5
|
-
private
|
|
3
|
+
private __focusRingRequested;
|
|
4
|
+
private __focusRingLoaded;
|
|
5
|
+
private __rippleRequested;
|
|
6
|
+
private __rippleLoaded;
|
|
7
|
+
private __pendingRippleEvent?;
|
|
8
|
+
private __pendingRippleClick;
|
|
6
9
|
keyfigure: number | string;
|
|
7
10
|
subtitle: string;
|
|
8
11
|
supportingText: string;
|
|
@@ -28,14 +31,20 @@ export declare class ScbKeyFigureCard extends LitElement {
|
|
|
28
31
|
spacingRight: undefined;
|
|
29
32
|
static styles: import('lit').CSSResult;
|
|
30
33
|
private formatNumber;
|
|
31
|
-
protected firstUpdated():
|
|
34
|
+
protected firstUpdated(): void;
|
|
32
35
|
private get __effectiveHref();
|
|
33
36
|
private __hasSlottedContent;
|
|
34
37
|
private __slottedText;
|
|
38
|
+
private __ensureSlottedIconDeps;
|
|
39
|
+
private __ensureRipple;
|
|
40
|
+
private __syncRipple;
|
|
41
|
+
private __onPointerInteraction;
|
|
42
|
+
private __ensureFocusRingOnFocusVisible;
|
|
35
43
|
render(): import('lit-html').TemplateResult<1>;
|
|
36
44
|
private __applyInnerSizing;
|
|
37
45
|
protected updated(changed: PropertyValues): void;
|
|
38
46
|
private mapSpacingToken;
|
|
47
|
+
private __applySpacing;
|
|
39
48
|
private __dispatchNavigateEvents;
|
|
40
49
|
private __navigate;
|
|
41
50
|
private __onKeyDown;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { LitElement,
|
|
1
|
+
import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
2
2
|
export declare class ScbListItem extends LitElement {
|
|
3
|
-
#private;
|
|
4
3
|
type: 'text' | 'link';
|
|
5
4
|
href: string;
|
|
6
5
|
itemHref: string;
|
|
@@ -25,10 +24,29 @@ export declare class ScbListItem extends LitElement {
|
|
|
25
24
|
trailingSwitchSelected: boolean;
|
|
26
25
|
density: -4 | -2 | 0;
|
|
27
26
|
noDivider: boolean;
|
|
27
|
+
private __scbCheckboxLoaded;
|
|
28
|
+
private __scbSwitchLoaded;
|
|
29
|
+
private __focusRingRequested;
|
|
30
|
+
private __focusRingLoaded;
|
|
31
|
+
private __rippleRequested;
|
|
32
|
+
private __rippleLoaded;
|
|
33
|
+
private __pendingRippleEvent?;
|
|
34
|
+
private __pendingRippleClick;
|
|
28
35
|
static get styles(): import('lit').CSSResult;
|
|
29
36
|
protected firstUpdated(): Promise<void>;
|
|
37
|
+
disconnectedCallback(): void;
|
|
30
38
|
protected updated(changed: PropertyValues): void;
|
|
39
|
+
private __ensureDepsLoaded;
|
|
40
|
+
private __ensureRipple;
|
|
41
|
+
private __syncRipple;
|
|
42
|
+
private __onPointerInteraction;
|
|
43
|
+
private __onFocusIn;
|
|
44
|
+
private __onLazyFocusRingKeydown;
|
|
45
|
+
private __ensureFocusRing;
|
|
31
46
|
private onRowClick;
|
|
47
|
+
private __setTrailingSwitchSelected;
|
|
48
|
+
private __onTrailingSwitchChange;
|
|
49
|
+
private __onKeydown;
|
|
32
50
|
render(): TemplateResult;
|
|
33
51
|
}
|
|
34
52
|
declare global {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { LitElement, TemplateResult, PropertyValues } from 'lit';
|
|
2
2
|
export declare class ScbList extends LitElement {
|
|
3
|
-
#private;
|
|
4
3
|
noDivider: boolean;
|
|
5
4
|
spacing: undefined;
|
|
6
5
|
spacingTop: undefined;
|
|
@@ -8,7 +7,7 @@ export declare class ScbList extends LitElement {
|
|
|
8
7
|
spacingLeft: undefined;
|
|
9
8
|
spacingRight: undefined;
|
|
10
9
|
private _slotEl;
|
|
11
|
-
protected firstUpdated():
|
|
10
|
+
protected firstUpdated(): void;
|
|
12
11
|
protected updated(changed: PropertyValues): void;
|
|
13
12
|
private _onSlotChange;
|
|
14
13
|
private _getItems;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement, TemplateResult } from 'lit';
|
|
2
2
|
export declare class ScbNav extends LitElement {
|
|
3
|
+
private __removeLazyFocusRingListeners?;
|
|
3
4
|
/** Aria-label för navigeringen (används om hosten saknar aria-label). */
|
|
4
5
|
label: string;
|
|
5
6
|
/** Matchar href-attributet på en item i slotten och markerar den som aktiv. */
|
|
@@ -31,6 +32,7 @@ export declare class ScbNav extends LitElement {
|
|
|
31
32
|
private __applySpacing;
|
|
32
33
|
private __syncStickyStyles;
|
|
33
34
|
connectedCallback(): void;
|
|
35
|
+
disconnectedCallback(): void;
|
|
34
36
|
protected firstUpdated(): Promise<void>;
|
|
35
37
|
protected updated(changed: Map<string, unknown>): void;
|
|
36
38
|
private __syncAriaLabel;
|
|
@@ -13,6 +13,7 @@ export declare class ScbSegmentedItem extends LitElement {
|
|
|
13
13
|
private get isEffectivelyDisabled();
|
|
14
14
|
private onHostKeydown;
|
|
15
15
|
private get hasDefaultSlotContent();
|
|
16
|
+
connectedCallback(): void;
|
|
16
17
|
static styles: import('lit').CSSResult;
|
|
17
18
|
render(): import('lit-html').TemplateResult<1>;
|
|
18
19
|
private updateInteractiveAttributes;
|
|
@@ -11,6 +11,8 @@ export declare class ScbSelectOption extends LitElement {
|
|
|
11
11
|
showRadio: boolean;
|
|
12
12
|
label: string;
|
|
13
13
|
noHighlightSelected: boolean;
|
|
14
|
+
connectedCallback(): void;
|
|
15
|
+
disconnectedCallback(): void;
|
|
14
16
|
static styles: import('lit').CSSResult;
|
|
15
17
|
render(): import('lit-html').TemplateResult<1>;
|
|
16
18
|
}
|
|
@@ -12,6 +12,7 @@ export declare class ScbTocItem extends LitElement {
|
|
|
12
12
|
private static _uid;
|
|
13
13
|
private _unique;
|
|
14
14
|
private _overflowVisibleTimer;
|
|
15
|
+
private _removeLazyFocusRingListeners?;
|
|
15
16
|
static styles: import('lit').CSSResult[];
|
|
16
17
|
private _slotHasContent;
|
|
17
18
|
private _trailingSlotHasContent;
|
|
@@ -19,6 +19,8 @@ export declare class ScbTooltip extends LitElement {
|
|
|
19
19
|
private _triggerEl;
|
|
20
20
|
private _originalPosition;
|
|
21
21
|
private readonly _tooltipId;
|
|
22
|
+
private _buttonDepsLoaded;
|
|
23
|
+
private _ensureButtonDepsIfNeeded;
|
|
22
24
|
static styles: import('lit').CSSResult;
|
|
23
25
|
protected firstUpdated(): void;
|
|
24
26
|
protected updated(changed: PropertyValues<this>): void;
|