scb-wc 0.1.231 → 0.1.233
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/all.d.ts +106 -0
- package/package.json +101 -2
- package/scb-components/index.d.ts +106 -0
- package/scb-components/scb-accordion/scb-accordion-item.d.ts +43 -0
- package/scb-components/scb-accordion/scb-accordion.d.ts +32 -0
- package/scb-components/scb-action-card/scb-action-card.d.ts +2 -0
- package/scb-components/scb-app-bar/scb-app-bar.d.ts +39 -0
- package/scb-components/scb-avatar/scb-avatar.d.ts +37 -0
- package/scb-components/scb-badge/scb-badge.d.ts +28 -0
- package/scb-components/scb-breadcrumb/scb-breadcrumb-item.d.ts +17 -0
- package/scb-components/scb-breadcrumb/scb-breadcrumb.d.ts +30 -0
- package/scb-components/scb-button/scb-button.d.ts +69 -0
- package/scb-components/scb-calendar/scb-calendar-event.d.ts +15 -0
- package/scb-components/scb-calendar/scb-calendar.d.ts +89 -0
- package/scb-components/scb-calendar-card/scb-calendar-card.d.ts +60 -0
- package/scb-components/scb-card/scb-action-card.d.ts +2 -0
- package/scb-components/scb-card/scb-card.d.ts +163 -0
- package/scb-components/scb-card/scb-container-card.d.ts +2 -0
- package/scb-components/scb-card/scb-link-card.d.ts +2 -0
- package/scb-components/scb-card/scb-list-card.d.ts +2 -0
- package/scb-components/scb-card/scb-social-card.d.ts +2 -0
- package/scb-components/scb-checkbox/scb-checkbox-group.d.ts +48 -0
- package/scb-components/scb-checkbox/scb-checkbox.d.ts +63 -0
- package/scb-components/scb-chevron/scb-chevron.d.ts +11 -0
- package/scb-components/scb-chip/scb-chip.d.ts +57 -0
- package/scb-components/scb-collapse/scb-collapse.d.ts +41 -0
- package/scb-components/scb-container-card/scb-container-card.d.ts +2 -0
- package/scb-components/scb-cookies-consent/scb-cookies-consent.d.ts +28 -0
- package/scb-components/scb-datepicker/scb-datepicker.d.ts +52 -0
- package/scb-components/scb-dialog/scb-dialog.d.ts +121 -0
- package/scb-components/scb-divider/scb-divider.d.ts +34 -0
- package/scb-components/scb-drawer/scb-drawer.d.ts +83 -0
- package/scb-components/scb-drop-zone/scb-drop-zone.d.ts +193 -0
- package/scb-components/scb-dropdown/scb-dropdown.d.ts +79 -0
- package/scb-components/scb-fact-card/scb-fact-card-content.d.ts +18 -0
- package/scb-components/scb-fact-card/scb-fact-card.d.ts +55 -0
- package/scb-components/scb-footer/scb-footer-section.d.ts +20 -0
- package/scb-components/scb-footer/scb-footer.d.ts +36 -0
- package/scb-components/scb-form-error-summary/scb-form-error-summary.d.ts +23 -0
- package/scb-components/scb-gallery-grid/scb-gallery-grid.d.ts +25 -0
- package/scb-components/scb-grid/scb-grid-item.d.ts +32 -0
- package/scb-components/scb-grid/scb-grid.d.ts +41 -0
- package/scb-components/scb-grid/scb-stack.d.ts +32 -0
- package/scb-components/scb-header/scb-header-menu-group.d.ts +12 -0
- package/scb-components/scb-header/scb-header-menu-item.d.ts +15 -0
- package/scb-components/scb-header/scb-header-tab.d.ts +15 -0
- package/scb-components/scb-header/scb-header-utility.d.ts +17 -0
- package/scb-components/scb-header/scb-header.d.ts +181 -0
- package/scb-components/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +68 -0
- package/scb-components/scb-icon/scb-icon.d.ts +19 -0
- package/scb-components/scb-icon-button/scb-icon-button.d.ts +72 -0
- package/scb-components/scb-keyfigure-card/scb-keyfigure-card.d.ts +58 -0
- package/scb-components/scb-link/scb-link.d.ts +25 -0
- package/scb-components/scb-link-button/scb-link-button.d.ts +30 -0
- package/scb-components/scb-link-card/scb-link-card.d.ts +2 -0
- package/scb-components/scb-list/scb-list-item.d.ts +65 -0
- package/scb-components/scb-list/scb-list.d.ts +30 -0
- package/scb-components/scb-list-card/scb-list-card.d.ts +2 -0
- package/scb-components/scb-menu/scb-menu-item.d.ts +65 -0
- package/scb-components/scb-menu/scb-menu-section.d.ts +12 -0
- package/scb-components/scb-menu/scb-menu.d.ts +54 -0
- package/scb-components/scb-menu/scb-sub-menu.d.ts +14 -0
- package/scb-components/scb-nav/scb-nav-item.d.ts +20 -0
- package/scb-components/scb-nav/scb-nav.d.ts +72 -0
- package/scb-components/scb-notification-card/scb-notification-card.d.ts +56 -0
- package/scb-components/scb-options-menu/scb-options-menu-item.d.ts +32 -0
- package/scb-components/scb-options-menu/scb-options-menu.d.ts +37 -0
- package/scb-components/scb-options-menu/scb-options-sub-menu.d.ts +16 -0
- package/scb-components/scb-overlay/scb-overlay.d.ts +24 -0
- package/scb-components/scb-pagination/scb-pagination.d.ts +47 -0
- package/scb-components/scb-progress-indicator/scb-progress-indicator.d.ts +32 -0
- package/scb-components/scb-progress-stepper/scb-progress-step.d.ts +29 -0
- package/scb-components/scb-progress-stepper/scb-progress-stepper.d.ts +29 -0
- package/scb-components/scb-radio-button/scb-radio-button.d.ts +25 -0
- package/scb-components/scb-radio-button/scb-radio-group.d.ts +54 -0
- package/scb-components/scb-scrollspy/scb-scrollspy.d.ts +217 -0
- package/scb-components/scb-search/scb-search.d.ts +116 -0
- package/scb-components/scb-segmented-button/scb-segmented-button.d.ts +86 -0
- package/scb-components/scb-segmented-button/scb-segmented-item.d.ts +28 -0
- package/scb-components/scb-select/scb-select-option.d.ts +20 -0
- package/scb-components/scb-select/scb-select.d.ts +95 -0
- package/scb-components/scb-skeleton/scb-skeleton.d.ts +36 -0
- package/scb-components/scb-slider/scb-slider.d.ts +64 -0
- package/scb-components/scb-snackbar/scb-snackbar.d.ts +28 -0
- package/scb-components/scb-social-card/scb-social-card.d.ts +2 -0
- package/scb-components/scb-status-pill/scb-status-pill.d.ts +23 -0
- package/scb-components/scb-stepper/scb-step.d.ts +31 -0
- package/scb-components/scb-stepper/scb-stepper.d.ts +50 -0
- package/scb-components/scb-switch/scb-switch.d.ts +65 -0
- package/scb-components/scb-table/scb-table.d.ts +41 -0
- package/scb-components/scb-table-advanced/scb-table-advanced.d.ts +58 -0
- package/scb-components/scb-tabs/scb-primary-tab.d.ts +16 -0
- package/scb-components/scb-tabs/scb-secondary-tab.d.ts +16 -0
- package/scb-components/scb-tabs/scb-tabs.d.ts +23 -0
- package/scb-components/scb-textfield/scb-textfield.d.ts +107 -0
- package/scb-components/scb-toc/scb-toc-item.d.ts +44 -0
- package/scb-components/scb-toc/scb-toc.d.ts +30 -0
- package/scb-components/scb-tooltip/scb-tooltip.d.ts +67 -0
- package/scb-components/scb-viz/scb-viz-actions-runtime.d.ts +26 -0
- package/scb-components/scb-viz/scb-viz-print-runtime.d.ts +30 -0
- package/scb-components/scb-viz/scb-viz-series-differentiation-registry.d.ts +21 -0
- package/scb-components/scb-viz/scb-viz-series-differentiation-runtime.d.ts +42 -0
- package/scb-components/scb-viz/scb-viz-table-runtime.d.ts +28 -0
- package/scb-components/scb-viz/scb-viz.d.ts +246 -0
- package/scb-components/shared/component-size-token.d.ts +1 -0
- package/scb-components/shared/lazy-focus-ring.d.ts +4 -0
- package/scb-components/shared/lazy-ripple.d.ts +9 -0
- package/scb-components/shared/manual-popover.d.ts +7 -0
- package/scb-components/shared/scb-icon-svg.d.ts +3 -0
- package/scb-wc.d.ts +212 -212
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { LitElement, TemplateResult, type PropertyValues } from 'lit';
|
|
2
|
+
import '../scb-divider/scb-divider.js';
|
|
3
|
+
import './scb-menu-item.js';
|
|
4
|
+
import './scb-menu-section.js';
|
|
5
|
+
import './scb-sub-menu.js';
|
|
6
|
+
export declare class ScbMenu extends LitElement {
|
|
7
|
+
#private;
|
|
8
|
+
label: string;
|
|
9
|
+
subLabel: string;
|
|
10
|
+
noHighlightSelected: boolean;
|
|
11
|
+
elevation: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Endpoint för lazy-laddade barn. När den är satt hämtar menyn barn
|
|
14
|
+
* för scb-menu-item[data-node-id][has-children] när itemet expanderas.
|
|
15
|
+
*/
|
|
16
|
+
lazySrc: string;
|
|
17
|
+
lazyIdParam: string;
|
|
18
|
+
lazyChildrenField: string;
|
|
19
|
+
lazyIdField: string;
|
|
20
|
+
lazyLabelField: string;
|
|
21
|
+
lazyHrefField: string;
|
|
22
|
+
lazyHasChildrenField: string;
|
|
23
|
+
lazyHasLinkField: string;
|
|
24
|
+
spacing: undefined;
|
|
25
|
+
spacingTop: undefined;
|
|
26
|
+
spacingBottom: undefined;
|
|
27
|
+
spacingLeft: undefined;
|
|
28
|
+
spacingRight: undefined;
|
|
29
|
+
private _lazyCache;
|
|
30
|
+
static styles: import("lit").CSSResult;
|
|
31
|
+
render(): TemplateResult;
|
|
32
|
+
protected firstUpdated(_changed: PropertyValues): void;
|
|
33
|
+
protected updated(changed: PropertyValues): void;
|
|
34
|
+
private mapSpacingToken;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
|
+
private _onGlobalSelect;
|
|
38
|
+
private _onMenuExpand;
|
|
39
|
+
private _loadLazyChildren;
|
|
40
|
+
private _setItemLoading;
|
|
41
|
+
private _hasSubMenu;
|
|
42
|
+
private _createSubMenu;
|
|
43
|
+
private _createLazyMenuItem;
|
|
44
|
+
private _fetchLazyChildren;
|
|
45
|
+
private _createLazyUrl;
|
|
46
|
+
private _normalizeChildren;
|
|
47
|
+
private _getRecordValue;
|
|
48
|
+
private _toBoolean;
|
|
49
|
+
}
|
|
50
|
+
declare global {
|
|
51
|
+
interface HTMLElementTagNameMap {
|
|
52
|
+
'scb-menu': ScbMenu;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
export declare class ScbSubmenu extends LitElement {
|
|
3
|
+
label: string;
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
connectedCallback(): void;
|
|
6
|
+
disconnectedCallback(): void;
|
|
7
|
+
private _onGlobalSelect;
|
|
8
|
+
render(): TemplateResult;
|
|
9
|
+
}
|
|
10
|
+
declare global {
|
|
11
|
+
interface HTMLElementTagNameMap {
|
|
12
|
+
'scb-sub-menu': ScbSubmenu;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class ScbNavItem extends LitElement {
|
|
3
|
+
href: string;
|
|
4
|
+
dataHref: string;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
static styles: import("lit").CSSResult;
|
|
7
|
+
connectedCallback(): void;
|
|
8
|
+
disconnectedCallback(): void;
|
|
9
|
+
protected updated(): void;
|
|
10
|
+
private __syncA11y;
|
|
11
|
+
private __onClick;
|
|
12
|
+
private __onKeyDown;
|
|
13
|
+
private __onKeyUp;
|
|
14
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
'scb-nav-item': ScbNavItem;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import '@material/web/ripple/ripple.js';
|
|
3
|
+
import './scb-nav-item.js';
|
|
4
|
+
export declare class ScbNav extends LitElement {
|
|
5
|
+
private __removeLazyFocusRingListeners?;
|
|
6
|
+
private __itemsEl;
|
|
7
|
+
private __resizeObserver;
|
|
8
|
+
private __resizeRaf;
|
|
9
|
+
private __canScrollLeft;
|
|
10
|
+
private __canScrollRight;
|
|
11
|
+
/** Aria-label för navigeringen (används om hosten saknar aria-label). */
|
|
12
|
+
label: string;
|
|
13
|
+
/** Matchar href-attributet på en item i slotten och markerar den som aktiv. */
|
|
14
|
+
activeHref: string;
|
|
15
|
+
/** Om nav:en ska uppdatera aktivt state när en item klickas. */
|
|
16
|
+
activateOnClick: boolean;
|
|
17
|
+
/** Om vänster/höger-skuggning ska visas när nav:en går att scrolla. */
|
|
18
|
+
scrollShadow: boolean;
|
|
19
|
+
leftScrollButtonLabel: string;
|
|
20
|
+
rightScrollButtonLabel: string;
|
|
21
|
+
/** Om nav:en ska ligga kvar i toppen vid scroll (position: sticky). */
|
|
22
|
+
sticky: boolean;
|
|
23
|
+
/** Top-offset för sticky-läget (t.ex. "0px" eller "64px"). */
|
|
24
|
+
stickyTop: string;
|
|
25
|
+
/** Z-index för sticky-läget. */
|
|
26
|
+
stickyZIndex: number;
|
|
27
|
+
/** Bakgrund för sticky-läget. Kan vara en central färgtoken eller en CSS-variabel (t.ex. var(--md-sys-color-surface) eller --md-sys-color-surface). */
|
|
28
|
+
stickyBackground: string;
|
|
29
|
+
/** Vertikalt avstånd till omgivande innehåll.
|
|
30
|
+
* spacing sätter både top och bottom om spacing-top / spacing-bottom inte är satta.
|
|
31
|
+
*/
|
|
32
|
+
spacing: undefined;
|
|
33
|
+
spacingTop: undefined;
|
|
34
|
+
spacingBottom: undefined;
|
|
35
|
+
spacingLeft: undefined;
|
|
36
|
+
spacingRight: undefined;
|
|
37
|
+
private __autoAriaLabel;
|
|
38
|
+
/** Prefix för auto-genererade id:n för items i slotten. */
|
|
39
|
+
private __itemIdPrefix;
|
|
40
|
+
private __itemIdCounter;
|
|
41
|
+
static styles: import("lit").CSSResult;
|
|
42
|
+
private mapSpacingToken;
|
|
43
|
+
private __applySpacing;
|
|
44
|
+
private __syncStickyStyles;
|
|
45
|
+
connectedCallback(): void;
|
|
46
|
+
disconnectedCallback(): void;
|
|
47
|
+
protected firstUpdated(): Promise<void>;
|
|
48
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
49
|
+
private __syncAriaLabel;
|
|
50
|
+
/** Säkerställer att slottade items får samma utseende som Material-knappar (ripple och fokus-ring). */
|
|
51
|
+
private __decorateItems;
|
|
52
|
+
private __getSlottedItems;
|
|
53
|
+
private __getItemHref;
|
|
54
|
+
private __applyActiveHref;
|
|
55
|
+
private __onSlotChange;
|
|
56
|
+
private __getScrollStep;
|
|
57
|
+
private __scrollBy;
|
|
58
|
+
private __scrollLeft;
|
|
59
|
+
private __scrollRight;
|
|
60
|
+
private __normalizeWheelDelta;
|
|
61
|
+
private __onWheel;
|
|
62
|
+
private __onItemsScroll;
|
|
63
|
+
private __scheduleScrollControlUpdate;
|
|
64
|
+
private __updateScrollControls;
|
|
65
|
+
private __onClick;
|
|
66
|
+
render(): TemplateResult;
|
|
67
|
+
}
|
|
68
|
+
declare global {
|
|
69
|
+
interface HTMLElementTagNameMap {
|
|
70
|
+
'scb-nav': ScbNav;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
import '../scb-icon/scb-icon.js';
|
|
4
|
+
import '../scb-icon-button/scb-icon-button.js';
|
|
5
|
+
type NotificationVariant = 'success' | 'error' | 'warning' | 'info';
|
|
6
|
+
type NotificationDirection = 'horizontal' | 'vertical';
|
|
7
|
+
type NotificationSizing = '' | 'stretch' | 'content-width' | 'content-height';
|
|
8
|
+
export declare class ScbNotificationCard extends LitElement {
|
|
9
|
+
#private;
|
|
10
|
+
variant: NotificationVariant;
|
|
11
|
+
direction: NotificationDirection;
|
|
12
|
+
title: string;
|
|
13
|
+
notificationCardTitle: string;
|
|
14
|
+
subtitle: string;
|
|
15
|
+
supportingText: string;
|
|
16
|
+
open: boolean;
|
|
17
|
+
linkText: string;
|
|
18
|
+
linkHref: string;
|
|
19
|
+
href: string;
|
|
20
|
+
showIcon: boolean;
|
|
21
|
+
showCloseButton: boolean;
|
|
22
|
+
closeLabel: string;
|
|
23
|
+
sizing: NotificationSizing;
|
|
24
|
+
width: string;
|
|
25
|
+
maxWidth: string;
|
|
26
|
+
height: string;
|
|
27
|
+
maxHeight: string;
|
|
28
|
+
fullHeight: boolean;
|
|
29
|
+
fullWidth: boolean;
|
|
30
|
+
spacing: undefined;
|
|
31
|
+
spacingTop: undefined;
|
|
32
|
+
spacingBottom: undefined;
|
|
33
|
+
spacingLeft: undefined;
|
|
34
|
+
spacingRight: undefined;
|
|
35
|
+
private __hasHeading;
|
|
36
|
+
private __hasSubtitle;
|
|
37
|
+
private __hasSupportingText;
|
|
38
|
+
private __hasFooter;
|
|
39
|
+
private __hasIcon;
|
|
40
|
+
static styles: import("lit").CSSResult[];
|
|
41
|
+
private _iconForVariant;
|
|
42
|
+
private _closeNotification;
|
|
43
|
+
private __resolveSpacingToken;
|
|
44
|
+
private __applySpacing;
|
|
45
|
+
private __hasLightDomSlot;
|
|
46
|
+
private __slotHasContent;
|
|
47
|
+
private __syncSlots;
|
|
48
|
+
protected updated(changed: PropertyValues): void;
|
|
49
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
50
|
+
}
|
|
51
|
+
declare global {
|
|
52
|
+
interface HTMLElementTagNameMap {
|
|
53
|
+
'scb-notification-card': ScbNotificationCard;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import '../scb-divider/scb-divider.js';
|
|
3
|
+
import '@material/web/icon/icon.js';
|
|
4
|
+
import '@material/web/ripple/ripple.js';
|
|
5
|
+
export declare class ScbOptionsMenuItem extends LitElement {
|
|
6
|
+
label: string;
|
|
7
|
+
hasSubMenu: boolean;
|
|
8
|
+
openLeft: boolean;
|
|
9
|
+
divider: boolean;
|
|
10
|
+
leadingIcon: string;
|
|
11
|
+
trailingIcon: string;
|
|
12
|
+
itemHref: string;
|
|
13
|
+
href: string;
|
|
14
|
+
static styles: import("lit").CSSResult;
|
|
15
|
+
private _subMenuChildObserver?;
|
|
16
|
+
private _subMenuAttrObserver?;
|
|
17
|
+
private _observedSubMenu;
|
|
18
|
+
private _syncSubMenuFlags;
|
|
19
|
+
private get _effectiveHref();
|
|
20
|
+
connectedCallback(): void;
|
|
21
|
+
disconnectedCallback(): void;
|
|
22
|
+
private handleClick;
|
|
23
|
+
/** Stänger submeny om fokus lämnar submenyn */
|
|
24
|
+
private _onBlur;
|
|
25
|
+
/** Tar bort open-submenu om ingen submeny är öppen när menyitem får fokus */
|
|
26
|
+
private _onFocus;
|
|
27
|
+
render(): TemplateResult;
|
|
28
|
+
_navigateToHref(e: Event): void;
|
|
29
|
+
_toggleSubMenu(): void;
|
|
30
|
+
/** Trigger click handler on Enter/Space for accessibility + pilnavigation */
|
|
31
|
+
private _onKeyDown;
|
|
32
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
import './scb-options-menu-item.js';
|
|
3
|
+
import './scb-options-sub-menu.js';
|
|
4
|
+
export declare class ScbOptionsMenu extends LitElement {
|
|
5
|
+
open: boolean;
|
|
6
|
+
size: 'small' | 'medium' | 'large';
|
|
7
|
+
inSb: boolean;
|
|
8
|
+
spacing: undefined;
|
|
9
|
+
spacingTop: undefined;
|
|
10
|
+
spacingBottom: undefined;
|
|
11
|
+
spacingLeft: undefined;
|
|
12
|
+
spacingRight: undefined;
|
|
13
|
+
__lastTriggerEl: HTMLElement | null;
|
|
14
|
+
static styles: import("lit").CSSResult;
|
|
15
|
+
protected firstUpdated(): void;
|
|
16
|
+
render(): TemplateResult;
|
|
17
|
+
private __onViewportChange;
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
/** Sätt endast state; side effects (overlay, fokus, events mm) hanteras i `updated()`. */
|
|
21
|
+
private __setOpen;
|
|
22
|
+
private __getActionFromEvent;
|
|
23
|
+
/** Returnerar true om klicket är i en scb-options-menu eller scb-options-sub-menu */
|
|
24
|
+
private isClickInScbMenu;
|
|
25
|
+
private __onDocumentClick;
|
|
26
|
+
private __onDocumentKeydown;
|
|
27
|
+
/** Reagera på ändrat `open` oavsett om det kom från triggers eller från kod (menu.open = …). */
|
|
28
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
29
|
+
/** scroll lock, aria-uppdatering, fokusflytt och öppna/stäng-events. */
|
|
30
|
+
private __applyOpenSideEffects;
|
|
31
|
+
private __positionToTrigger;
|
|
32
|
+
private __restoreFocusToTrigger;
|
|
33
|
+
/** Sätt aria-expanded=true/false på alla kontroller som pekar på aktuell meny via id. */
|
|
34
|
+
private __updateTriggersExpanded;
|
|
35
|
+
private __applySpacing;
|
|
36
|
+
private __mapSpacingToken;
|
|
37
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
export declare class ScbOptionsSubMenu extends LitElement {
|
|
3
|
+
open: boolean;
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
5
|
+
connectedCallback(): void;
|
|
6
|
+
disconnectedCallback(): void;
|
|
7
|
+
_show: () => void;
|
|
8
|
+
_hide: (e?: Event) => void;
|
|
9
|
+
firstUpdated(): void;
|
|
10
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
11
|
+
private _onViewportChange;
|
|
12
|
+
private _hasTopLayerParent;
|
|
13
|
+
private _syncPopover;
|
|
14
|
+
private _positionPopover;
|
|
15
|
+
render(): TemplateResult;
|
|
16
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { LitElement, nothing } from 'lit';
|
|
2
|
+
export declare class ScbOverlay extends LitElement {
|
|
3
|
+
#private;
|
|
4
|
+
private static __instances;
|
|
5
|
+
private static __docListenerAttached;
|
|
6
|
+
private static __handleDocClick;
|
|
7
|
+
private static __ensureDocListener;
|
|
8
|
+
private static __maybeRemoveDocListener;
|
|
9
|
+
open: boolean;
|
|
10
|
+
variant: 'scrim' | 'solid';
|
|
11
|
+
isStatic: boolean;
|
|
12
|
+
ariaLabel: string;
|
|
13
|
+
__lastTriggerEl: HTMLElement | null;
|
|
14
|
+
static styles: import("lit").CSSResult;
|
|
15
|
+
render(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
updated(changedProperties: Map<PropertyKey, unknown>): void;
|
|
18
|
+
disconnectedCallback(): void;
|
|
19
|
+
}
|
|
20
|
+
declare global {
|
|
21
|
+
interface HTMLElementTagNameMap {
|
|
22
|
+
'scb-overlay': ScbOverlay;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import '../scb-link/scb-link.js';
|
|
3
|
+
import '../scb-button/scb-button.js';
|
|
4
|
+
import '../scb-icon-button/scb-icon-button.js';
|
|
5
|
+
import '@material/web/icon/icon.js';
|
|
6
|
+
export declare class ScbPagination extends LitElement {
|
|
7
|
+
variant: 'icon-text' | 'icon';
|
|
8
|
+
alignment: 'start' | 'center' | 'end';
|
|
9
|
+
page: number;
|
|
10
|
+
totalPages: number;
|
|
11
|
+
pagingHref: string;
|
|
12
|
+
baseUri: string;
|
|
13
|
+
paginationAriaLabel: string;
|
|
14
|
+
currentAriaLabel: string;
|
|
15
|
+
pagingNumberAriaLabel: string;
|
|
16
|
+
previousLabel: string;
|
|
17
|
+
nextLabel: string;
|
|
18
|
+
previousAriaLabel: string;
|
|
19
|
+
nextAriaLabel: string;
|
|
20
|
+
isNarrow: boolean;
|
|
21
|
+
spacing: undefined;
|
|
22
|
+
spacingTop: undefined;
|
|
23
|
+
spacingBottom: undefined;
|
|
24
|
+
spacingLeft: undefined;
|
|
25
|
+
spacingRight: undefined;
|
|
26
|
+
private _resizeObserver?;
|
|
27
|
+
static styles: import("lit").CSSResult[];
|
|
28
|
+
private _emitPageChange;
|
|
29
|
+
private _getPagingHref;
|
|
30
|
+
private _composePageLabel;
|
|
31
|
+
private _handlePageSelection;
|
|
32
|
+
private _prevPage;
|
|
33
|
+
private _nextPage;
|
|
34
|
+
connectedCallback(): void;
|
|
35
|
+
disconnectedCallback(): void;
|
|
36
|
+
private _onResize;
|
|
37
|
+
private mapSpacingToken;
|
|
38
|
+
private __applySpacing;
|
|
39
|
+
protected firstUpdated(): void;
|
|
40
|
+
protected updated(changed: PropertyValues): void;
|
|
41
|
+
render(): import("lit-html").TemplateResult<1> | null;
|
|
42
|
+
}
|
|
43
|
+
declare global {
|
|
44
|
+
interface HTMLElementTagNameMap {
|
|
45
|
+
'scb-pagination': ScbPagination;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LitElement, TemplateResult, PropertyValues } from 'lit';
|
|
2
|
+
export declare class ScbProgressIndicator extends LitElement {
|
|
3
|
+
id: string;
|
|
4
|
+
type: 'circular' | 'linear';
|
|
5
|
+
progress: number;
|
|
6
|
+
isStatic: boolean;
|
|
7
|
+
loadingLabel: string;
|
|
8
|
+
progressLabel: string;
|
|
9
|
+
spacing: undefined;
|
|
10
|
+
spacingTop: undefined;
|
|
11
|
+
spacingBottom: undefined;
|
|
12
|
+
spacingLeft: undefined;
|
|
13
|
+
spacingRight: undefined;
|
|
14
|
+
static styles: import("lit").CSSResult[];
|
|
15
|
+
private _isSyncingAria;
|
|
16
|
+
private _defaultAriaLabelApplied;
|
|
17
|
+
private _defaultAriaLabelValue;
|
|
18
|
+
private _defaultAriaValueTextApplied;
|
|
19
|
+
private _defaultAriaValueTextValue;
|
|
20
|
+
static get observedAttributes(): string[];
|
|
21
|
+
attributeChangedCallback(name: string, old: string | null, value: string | null): void;
|
|
22
|
+
connectedCallback(): void;
|
|
23
|
+
private clampProgress;
|
|
24
|
+
private applyDefaultAriaLabel;
|
|
25
|
+
private syncAria;
|
|
26
|
+
private mapSpacingToken;
|
|
27
|
+
private applySpacing;
|
|
28
|
+
private applyTypeLayout;
|
|
29
|
+
protected firstUpdated(_changed: PropertyValues): void;
|
|
30
|
+
protected updated(changed: PropertyValues): void;
|
|
31
|
+
render(): TemplateResult;
|
|
32
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import '@material/web/ripple/ripple.js';
|
|
2
|
+
import { LitElement } from 'lit';
|
|
3
|
+
/**
|
|
4
|
+
* En komponent som visar en progress stepper enligt SCB-standard.
|
|
5
|
+
* @slot - Innehåll för stegen
|
|
6
|
+
*/
|
|
7
|
+
export declare class ScbProgressStep extends LitElement {
|
|
8
|
+
width: string;
|
|
9
|
+
active: boolean;
|
|
10
|
+
current: boolean;
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
href: string;
|
|
13
|
+
label: string;
|
|
14
|
+
position: 'top' | 'bottom';
|
|
15
|
+
private _stepId;
|
|
16
|
+
private _tooltipObserver?;
|
|
17
|
+
static styles: import("lit").CSSResult;
|
|
18
|
+
connectedCallback(): void;
|
|
19
|
+
disconnectedCallback(): void;
|
|
20
|
+
updated(changedProps: Map<string, any>): void;
|
|
21
|
+
private _onClick;
|
|
22
|
+
private _onKeydown;
|
|
23
|
+
firstUpdated(_changedProps: any): void;
|
|
24
|
+
_setupTooltipPositioning(): void;
|
|
25
|
+
private _showTooltip;
|
|
26
|
+
private _hideTooltip;
|
|
27
|
+
_adjustTooltipPosition: () => void;
|
|
28
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
import './scb-progress-step.js';
|
|
3
|
+
/**
|
|
4
|
+
* En komponent som visar en progress stepper enligt SCB-standard.
|
|
5
|
+
* @slot step-0 - Första steget
|
|
6
|
+
* @slot step-1 - Andra steget
|
|
7
|
+
* @slot step-n - Fler steg, indexbaserat
|
|
8
|
+
*/
|
|
9
|
+
export declare class ScbProgressStepper extends LitElement {
|
|
10
|
+
progressWidth: number;
|
|
11
|
+
height: 'normal' | 'high';
|
|
12
|
+
position: 'top' | 'bottom';
|
|
13
|
+
ariaLabel: string;
|
|
14
|
+
ariaLabelledby: string;
|
|
15
|
+
spacing: undefined;
|
|
16
|
+
spacingTop: undefined;
|
|
17
|
+
spacingBottom: undefined;
|
|
18
|
+
spacingLeft: undefined;
|
|
19
|
+
spacingRight: undefined;
|
|
20
|
+
static styles: import("lit").CSSResult;
|
|
21
|
+
private mapSpacingToken;
|
|
22
|
+
private applySpacing;
|
|
23
|
+
protected firstUpdated(): void;
|
|
24
|
+
protected updated(_changedProperties: PropertyValues): void;
|
|
25
|
+
private clampPercent;
|
|
26
|
+
private parseStepWidth;
|
|
27
|
+
private syncSteps;
|
|
28
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LitElement, TemplateResult, PropertyValues } from 'lit';
|
|
2
|
+
import '@material/web/radio/radio.js';
|
|
3
|
+
import './scb-radio-group.js';
|
|
4
|
+
export declare class ScbRadioButton extends LitElement {
|
|
5
|
+
#private;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
checked: boolean;
|
|
8
|
+
name: string;
|
|
9
|
+
value: string;
|
|
10
|
+
deselectable: boolean;
|
|
11
|
+
label: string;
|
|
12
|
+
supportingText: string;
|
|
13
|
+
ariaLabel: string;
|
|
14
|
+
private _radioId;
|
|
15
|
+
private _showOuterFocusRing;
|
|
16
|
+
connectedCallback(): void;
|
|
17
|
+
disconnectedCallback(): void;
|
|
18
|
+
private _onClick;
|
|
19
|
+
private _onRadioChange;
|
|
20
|
+
protected firstUpdated(): void;
|
|
21
|
+
protected updated(changed: PropertyValues): void;
|
|
22
|
+
private __syncInnerAria;
|
|
23
|
+
static styles: import("lit").CSSResult;
|
|
24
|
+
render(): TemplateResult;
|
|
25
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
import '@material/web/icon/icon.js';
|
|
3
|
+
export declare class ScbRadioGroup extends LitElement {
|
|
4
|
+
#private;
|
|
5
|
+
static formAssociated: boolean;
|
|
6
|
+
name: string;
|
|
7
|
+
orientation: 'vertical' | 'horizontal';
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
required: boolean;
|
|
10
|
+
error: boolean;
|
|
11
|
+
deselectable: boolean;
|
|
12
|
+
ariaLabel: string | null;
|
|
13
|
+
supportingText: string;
|
|
14
|
+
errorText: string;
|
|
15
|
+
/** Avstånd mellan radioknappar i gruppen ägs av CSS-variabeln --scb-radio-gap. */
|
|
16
|
+
/** Styr vertikalt avstånd till omgivande innehåll (samma modell som scb-checkbox-group). */
|
|
17
|
+
spacing: undefined;
|
|
18
|
+
spacingTop: undefined;
|
|
19
|
+
spacingBottom: undefined;
|
|
20
|
+
spacingLeft: undefined;
|
|
21
|
+
spacingRight: undefined;
|
|
22
|
+
/** Håller gruppens aktuella värde, speglar value på den radio-knapp som är vald. */
|
|
23
|
+
value: string;
|
|
24
|
+
private _internals;
|
|
25
|
+
private _form;
|
|
26
|
+
private _formResetHandler;
|
|
27
|
+
private _formSubmitHandler;
|
|
28
|
+
private _initialValue;
|
|
29
|
+
private _customValidationMessage;
|
|
30
|
+
private _validationMessage;
|
|
31
|
+
private _hasValidationBeenReported;
|
|
32
|
+
private _supportingTextId;
|
|
33
|
+
constructor();
|
|
34
|
+
static styles: import("lit").CSSResult;
|
|
35
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
36
|
+
firstUpdated(): void;
|
|
37
|
+
disconnectedCallback(): void;
|
|
38
|
+
protected willUpdate(changed: Map<string, unknown>): void;
|
|
39
|
+
get form(): HTMLFormElement | null;
|
|
40
|
+
get validity(): ValidityState | undefined;
|
|
41
|
+
get validationMessage(): string;
|
|
42
|
+
get willValidate(): boolean;
|
|
43
|
+
get labels(): NodeList | undefined;
|
|
44
|
+
checkValidity(): boolean;
|
|
45
|
+
reportValidity(): boolean;
|
|
46
|
+
setCustomValidity(message: string): void;
|
|
47
|
+
formDisabledCallback(disabled: boolean): void;
|
|
48
|
+
private __syncFormValue;
|
|
49
|
+
}
|
|
50
|
+
declare global {
|
|
51
|
+
interface HTMLElementTagNameMap {
|
|
52
|
+
'scb-radio-group': ScbRadioGroup;
|
|
53
|
+
}
|
|
54
|
+
}
|