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.
Files changed (110) hide show
  1. package/all.d.ts +106 -0
  2. package/package.json +101 -2
  3. package/scb-components/index.d.ts +106 -0
  4. package/scb-components/scb-accordion/scb-accordion-item.d.ts +43 -0
  5. package/scb-components/scb-accordion/scb-accordion.d.ts +32 -0
  6. package/scb-components/scb-action-card/scb-action-card.d.ts +2 -0
  7. package/scb-components/scb-app-bar/scb-app-bar.d.ts +39 -0
  8. package/scb-components/scb-avatar/scb-avatar.d.ts +37 -0
  9. package/scb-components/scb-badge/scb-badge.d.ts +28 -0
  10. package/scb-components/scb-breadcrumb/scb-breadcrumb-item.d.ts +17 -0
  11. package/scb-components/scb-breadcrumb/scb-breadcrumb.d.ts +30 -0
  12. package/scb-components/scb-button/scb-button.d.ts +69 -0
  13. package/scb-components/scb-calendar/scb-calendar-event.d.ts +15 -0
  14. package/scb-components/scb-calendar/scb-calendar.d.ts +89 -0
  15. package/scb-components/scb-calendar-card/scb-calendar-card.d.ts +60 -0
  16. package/scb-components/scb-card/scb-action-card.d.ts +2 -0
  17. package/scb-components/scb-card/scb-card.d.ts +163 -0
  18. package/scb-components/scb-card/scb-container-card.d.ts +2 -0
  19. package/scb-components/scb-card/scb-link-card.d.ts +2 -0
  20. package/scb-components/scb-card/scb-list-card.d.ts +2 -0
  21. package/scb-components/scb-card/scb-social-card.d.ts +2 -0
  22. package/scb-components/scb-checkbox/scb-checkbox-group.d.ts +48 -0
  23. package/scb-components/scb-checkbox/scb-checkbox.d.ts +63 -0
  24. package/scb-components/scb-chevron/scb-chevron.d.ts +11 -0
  25. package/scb-components/scb-chip/scb-chip.d.ts +57 -0
  26. package/scb-components/scb-collapse/scb-collapse.d.ts +41 -0
  27. package/scb-components/scb-container-card/scb-container-card.d.ts +2 -0
  28. package/scb-components/scb-cookies-consent/scb-cookies-consent.d.ts +28 -0
  29. package/scb-components/scb-datepicker/scb-datepicker.d.ts +52 -0
  30. package/scb-components/scb-dialog/scb-dialog.d.ts +121 -0
  31. package/scb-components/scb-divider/scb-divider.d.ts +34 -0
  32. package/scb-components/scb-drawer/scb-drawer.d.ts +83 -0
  33. package/scb-components/scb-drop-zone/scb-drop-zone.d.ts +193 -0
  34. package/scb-components/scb-dropdown/scb-dropdown.d.ts +79 -0
  35. package/scb-components/scb-fact-card/scb-fact-card-content.d.ts +18 -0
  36. package/scb-components/scb-fact-card/scb-fact-card.d.ts +55 -0
  37. package/scb-components/scb-footer/scb-footer-section.d.ts +20 -0
  38. package/scb-components/scb-footer/scb-footer.d.ts +36 -0
  39. package/scb-components/scb-form-error-summary/scb-form-error-summary.d.ts +23 -0
  40. package/scb-components/scb-gallery-grid/scb-gallery-grid.d.ts +25 -0
  41. package/scb-components/scb-grid/scb-grid-item.d.ts +32 -0
  42. package/scb-components/scb-grid/scb-grid.d.ts +41 -0
  43. package/scb-components/scb-grid/scb-stack.d.ts +32 -0
  44. package/scb-components/scb-header/scb-header-menu-group.d.ts +12 -0
  45. package/scb-components/scb-header/scb-header-menu-item.d.ts +15 -0
  46. package/scb-components/scb-header/scb-header-tab.d.ts +15 -0
  47. package/scb-components/scb-header/scb-header-utility.d.ts +17 -0
  48. package/scb-components/scb-header/scb-header.d.ts +181 -0
  49. package/scb-components/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +68 -0
  50. package/scb-components/scb-icon/scb-icon.d.ts +19 -0
  51. package/scb-components/scb-icon-button/scb-icon-button.d.ts +72 -0
  52. package/scb-components/scb-keyfigure-card/scb-keyfigure-card.d.ts +58 -0
  53. package/scb-components/scb-link/scb-link.d.ts +25 -0
  54. package/scb-components/scb-link-button/scb-link-button.d.ts +30 -0
  55. package/scb-components/scb-link-card/scb-link-card.d.ts +2 -0
  56. package/scb-components/scb-list/scb-list-item.d.ts +65 -0
  57. package/scb-components/scb-list/scb-list.d.ts +30 -0
  58. package/scb-components/scb-list-card/scb-list-card.d.ts +2 -0
  59. package/scb-components/scb-menu/scb-menu-item.d.ts +65 -0
  60. package/scb-components/scb-menu/scb-menu-section.d.ts +12 -0
  61. package/scb-components/scb-menu/scb-menu.d.ts +54 -0
  62. package/scb-components/scb-menu/scb-sub-menu.d.ts +14 -0
  63. package/scb-components/scb-nav/scb-nav-item.d.ts +20 -0
  64. package/scb-components/scb-nav/scb-nav.d.ts +72 -0
  65. package/scb-components/scb-notification-card/scb-notification-card.d.ts +56 -0
  66. package/scb-components/scb-options-menu/scb-options-menu-item.d.ts +32 -0
  67. package/scb-components/scb-options-menu/scb-options-menu.d.ts +37 -0
  68. package/scb-components/scb-options-menu/scb-options-sub-menu.d.ts +16 -0
  69. package/scb-components/scb-overlay/scb-overlay.d.ts +24 -0
  70. package/scb-components/scb-pagination/scb-pagination.d.ts +47 -0
  71. package/scb-components/scb-progress-indicator/scb-progress-indicator.d.ts +32 -0
  72. package/scb-components/scb-progress-stepper/scb-progress-step.d.ts +29 -0
  73. package/scb-components/scb-progress-stepper/scb-progress-stepper.d.ts +29 -0
  74. package/scb-components/scb-radio-button/scb-radio-button.d.ts +25 -0
  75. package/scb-components/scb-radio-button/scb-radio-group.d.ts +54 -0
  76. package/scb-components/scb-scrollspy/scb-scrollspy.d.ts +217 -0
  77. package/scb-components/scb-search/scb-search.d.ts +116 -0
  78. package/scb-components/scb-segmented-button/scb-segmented-button.d.ts +86 -0
  79. package/scb-components/scb-segmented-button/scb-segmented-item.d.ts +28 -0
  80. package/scb-components/scb-select/scb-select-option.d.ts +20 -0
  81. package/scb-components/scb-select/scb-select.d.ts +95 -0
  82. package/scb-components/scb-skeleton/scb-skeleton.d.ts +36 -0
  83. package/scb-components/scb-slider/scb-slider.d.ts +64 -0
  84. package/scb-components/scb-snackbar/scb-snackbar.d.ts +28 -0
  85. package/scb-components/scb-social-card/scb-social-card.d.ts +2 -0
  86. package/scb-components/scb-status-pill/scb-status-pill.d.ts +23 -0
  87. package/scb-components/scb-stepper/scb-step.d.ts +31 -0
  88. package/scb-components/scb-stepper/scb-stepper.d.ts +50 -0
  89. package/scb-components/scb-switch/scb-switch.d.ts +65 -0
  90. package/scb-components/scb-table/scb-table.d.ts +41 -0
  91. package/scb-components/scb-table-advanced/scb-table-advanced.d.ts +58 -0
  92. package/scb-components/scb-tabs/scb-primary-tab.d.ts +16 -0
  93. package/scb-components/scb-tabs/scb-secondary-tab.d.ts +16 -0
  94. package/scb-components/scb-tabs/scb-tabs.d.ts +23 -0
  95. package/scb-components/scb-textfield/scb-textfield.d.ts +107 -0
  96. package/scb-components/scb-toc/scb-toc-item.d.ts +44 -0
  97. package/scb-components/scb-toc/scb-toc.d.ts +30 -0
  98. package/scb-components/scb-tooltip/scb-tooltip.d.ts +67 -0
  99. package/scb-components/scb-viz/scb-viz-actions-runtime.d.ts +26 -0
  100. package/scb-components/scb-viz/scb-viz-print-runtime.d.ts +30 -0
  101. package/scb-components/scb-viz/scb-viz-series-differentiation-registry.d.ts +21 -0
  102. package/scb-components/scb-viz/scb-viz-series-differentiation-runtime.d.ts +42 -0
  103. package/scb-components/scb-viz/scb-viz-table-runtime.d.ts +28 -0
  104. package/scb-components/scb-viz/scb-viz.d.ts +246 -0
  105. package/scb-components/shared/component-size-token.d.ts +1 -0
  106. package/scb-components/shared/lazy-focus-ring.d.ts +4 -0
  107. package/scb-components/shared/lazy-ripple.d.ts +9 -0
  108. package/scb-components/shared/manual-popover.d.ts +7 -0
  109. package/scb-components/shared/scb-icon-svg.d.ts +3 -0
  110. package/scb-wc.d.ts +212 -212
@@ -0,0 +1,163 @@
1
+ import { LitElement } from 'lit';
2
+ import type { PropertyValues } from 'lit';
3
+ export type ScbCardType = 'standard' | 'list' | 'social' | 'link' | 'action' | 'container';
4
+ export declare class ScbCard extends LitElement {
5
+ private __lightDomObserver?;
6
+ private __dependencyKey;
7
+ private __focusRingRequested;
8
+ private __focusRingLoaded;
9
+ private __rippleRequested;
10
+ private __rippleLoaded;
11
+ private __pendingRippleEvent?;
12
+ private __pendingRippleClick;
13
+ private __variantRenderer?;
14
+ private __isSyncingManagedSocialAttributes;
15
+ type: ScbCardType;
16
+ variant: string;
17
+ direction: 'vertical' | 'horizontal' | 'dynamic';
18
+ size: 'small' | 'medium' | 'large';
19
+ mediaType: string;
20
+ mediaHref: string;
21
+ mediaAlt: string;
22
+ mediaSrcset: string;
23
+ mediaSizes: string;
24
+ mediaLoading: 'lazy' | 'eager' | 'auto';
25
+ mediaDecoding: 'async' | 'sync' | 'auto';
26
+ mediaFetchPriority: 'high' | 'low' | 'auto';
27
+ mediaFit: 'cover' | 'contain';
28
+ mediaPosition: string;
29
+ mediaWidth: string;
30
+ mediaHeight: string;
31
+ mediaAspect: string;
32
+ mediaPlaceholder: boolean;
33
+ cardHref: string;
34
+ href: string;
35
+ title: string;
36
+ cardTitle: string;
37
+ subtitle: string;
38
+ vignette: string;
39
+ vignetteVariant: 'outline' | 'outlined' | 'filled';
40
+ vignetteSpacing: undefined;
41
+ vignetteSpacingTop: undefined;
42
+ vignetteSpacingBottom: undefined;
43
+ vignetteSpacingLeft: undefined;
44
+ vignetteSpacingRight: undefined;
45
+ supportingText: string;
46
+ date?: Date;
47
+ commentsText: string;
48
+ comments?: number;
49
+ commentsDisabled: boolean;
50
+ commentsHref: string;
51
+ commentsLinkLabel: string;
52
+ likesText: string;
53
+ likeLabel: string;
54
+ likes?: number;
55
+ likesDisabled: boolean;
56
+ likesHoverContent: string;
57
+ hasLiked: boolean;
58
+ likesInteractive: boolean;
59
+ author: boolean;
60
+ authorText: string;
61
+ authorHref: string;
62
+ replyEnabled: boolean;
63
+ replyLabel: string;
64
+ editEnabled: boolean;
65
+ editLabel: string;
66
+ deleteEnabled: boolean;
67
+ deleteLabel: string;
68
+ sizing?: 'stretch' | 'content-width' | 'content-height';
69
+ width: string;
70
+ maxWidth: string;
71
+ height: string;
72
+ maxHeight: string;
73
+ spacing: undefined;
74
+ spacingTop: undefined;
75
+ spacingBottom: undefined;
76
+ spacingLeft: undefined;
77
+ spacingRight: undefined;
78
+ innerPadding: undefined;
79
+ paddingTop: undefined;
80
+ paddingBottom: undefined;
81
+ paddingLeft: undefined;
82
+ paddingRight: undefined;
83
+ static styles: import("lit").CSSResult;
84
+ attributeChangedCallback(name: string, old: string | null, value: string | null): void;
85
+ /**
86
+ * Returnerar like-knappen (scb-icon-button) om kortet är av typen 'social'.
87
+ */
88
+ get likeButton(): HTMLElement | null;
89
+ private __calcAspectWH;
90
+ private __mediaReserveAspect;
91
+ private __mediaReserveStyle;
92
+ private __slottedMediaAspect;
93
+ private __isAvatarMedia;
94
+ private __onImgLoad;
95
+ private get __resolvedTitle();
96
+ protected get cardType(): ScbCardType;
97
+ private __ensureVariantRenderer;
98
+ private __dispatchCardNavigate;
99
+ private __effectiveHref;
100
+ private __slottedCardLink;
101
+ private __primaryHref;
102
+ private __navigate;
103
+ private __slotNames;
104
+ private __hasSlottedContent;
105
+ private __hasLightDomElement;
106
+ private __syncListCardListSize;
107
+ private __actionCardButtonSize;
108
+ private __cardAvatarSize;
109
+ private __syncAvatarSizes;
110
+ /** Intern storlekskoppling för ikonknappar som social-varianten själv skapar. */
111
+ __socialIconButtonSize(): string;
112
+ private __syncActionCardButtonSizes;
113
+ private __slottedText;
114
+ private __ensureDependenciesReady;
115
+ private __ensureRippleOnInteraction;
116
+ private __syncRipple;
117
+ private __ensureFocusRingOnFocusVisible;
118
+ private __mediaTemplate;
119
+ private mapSpacingToken;
120
+ private __applySpacing;
121
+ private __applyPadding;
122
+ private __syncStringAttribute;
123
+ private __syncNumberAttribute;
124
+ private __syncBooleanAttribute;
125
+ private __syncSocialAttributes;
126
+ render(): import("lit-html").TemplateResult<1>;
127
+ protected updated(changed: PropertyValues): void;
128
+ protected firstUpdated(_changed: PropertyValues): Promise<void>;
129
+ disconnectedCallback(): void;
130
+ private __onKeyDown;
131
+ private __handleHrefNavigation;
132
+ private __handleSlottedCardLinkClick;
133
+ }
134
+ export declare class ScbListCard extends ScbCard {
135
+ constructor();
136
+ protected get cardType(): ScbCardType;
137
+ }
138
+ export declare class ScbLinkCard extends ScbCard {
139
+ constructor();
140
+ protected get cardType(): ScbCardType;
141
+ }
142
+ export declare class ScbActionCard extends ScbCard {
143
+ constructor();
144
+ protected get cardType(): ScbCardType;
145
+ }
146
+ export declare class ScbSocialCard extends ScbCard {
147
+ constructor();
148
+ protected get cardType(): ScbCardType;
149
+ }
150
+ export declare class ScbContainerCard extends ScbCard {
151
+ constructor();
152
+ protected get cardType(): ScbCardType;
153
+ }
154
+ declare global {
155
+ interface HTMLElementTagNameMap {
156
+ 'scb-card': ScbCard;
157
+ 'scb-list-card': ScbListCard;
158
+ 'scb-link-card': ScbLinkCard;
159
+ 'scb-action-card': ScbActionCard;
160
+ 'scb-social-card': ScbSocialCard;
161
+ 'scb-container-card': ScbContainerCard;
162
+ }
163
+ }
@@ -0,0 +1,2 @@
1
+ import '../scb-container-card/scb-container-card.js';
2
+ export { ScbContainerCard } from '../scb-container-card/scb-container-card.js';
@@ -0,0 +1,2 @@
1
+ import '../scb-link-card/scb-link-card.js';
2
+ export { ScbLinkCard } from '../scb-link-card/scb-link-card.js';
@@ -0,0 +1,2 @@
1
+ import '../scb-list-card/scb-list-card.js';
2
+ export { ScbListCard } from '../scb-list-card/scb-list-card.js';
@@ -0,0 +1,2 @@
1
+ import '../scb-social-card/scb-social-card.js';
2
+ export { ScbSocialCard } from '../scb-social-card/scb-social-card.js';
@@ -0,0 +1,48 @@
1
+ import { LitElement } from 'lit';
2
+ import '@material/web/icon/icon.js';
3
+ export declare class ScbCheckboxGroup 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
+ ariaLabel: string | null;
12
+ supportingText: string;
13
+ errorText: string;
14
+ spacing: undefined;
15
+ spacingTop: undefined;
16
+ spacingBottom: undefined;
17
+ spacingLeft: undefined;
18
+ spacingRight: undefined;
19
+ private _internals;
20
+ private _form;
21
+ private _formResetHandler;
22
+ private _formSubmitHandler;
23
+ private _initialChecked;
24
+ private _customValidationMessage;
25
+ private _validationMessage;
26
+ private _hasValidationBeenReported;
27
+ private _supportingTextId;
28
+ constructor();
29
+ static styles: import("lit").CSSResult;
30
+ render(): import("lit-html").TemplateResult<1>;
31
+ firstUpdated(): void;
32
+ disconnectedCallback(): void;
33
+ updated(changed: Map<string, unknown>): void;
34
+ get form(): HTMLFormElement | null;
35
+ get validity(): ValidityState | undefined;
36
+ get validationMessage(): string;
37
+ get willValidate(): boolean;
38
+ get labels(): NodeList | undefined;
39
+ checkValidity(): boolean;
40
+ reportValidity(): boolean;
41
+ setCustomValidity(message: string): void;
42
+ formDisabledCallback(disabled: boolean): void;
43
+ }
44
+ declare global {
45
+ interface HTMLElementTagNameMap {
46
+ 'scb-checkbox-group': ScbCheckboxGroup;
47
+ }
48
+ }
@@ -0,0 +1,63 @@
1
+ import { LitElement, TemplateResult, PropertyValues } from 'lit';
2
+ import '@material/web/checkbox/checkbox.js';
3
+ import '@material/web/icon/icon.js';
4
+ import './scb-checkbox-group.js';
5
+ export declare class ScbCheckbox extends LitElement {
6
+ #private;
7
+ static formAssociated: boolean;
8
+ private _internals;
9
+ constructor();
10
+ disabled: boolean;
11
+ indeterminate: boolean;
12
+ checked: boolean;
13
+ required: boolean;
14
+ error: boolean;
15
+ label: string;
16
+ supportingText: string;
17
+ errorText: string;
18
+ ariaLabel: string;
19
+ ariaControls: string | null;
20
+ ariaExpanded: string | null;
21
+ name: string;
22
+ value: string;
23
+ spacing: undefined;
24
+ spacingTop: undefined;
25
+ spacingBottom: undefined;
26
+ spacingLeft: undefined;
27
+ spacingRight: undefined;
28
+ private _form;
29
+ private _formResetHandler;
30
+ private _formSubmitHandler;
31
+ private _initialChecked;
32
+ private _customValidationMessage;
33
+ private _validationMessage;
34
+ private _hasValidationBeenReported;
35
+ private _checkboxId;
36
+ private _showOuterFocusRing;
37
+ connectedCallback(): void;
38
+ disconnectedCallback(): void;
39
+ protected firstUpdated(): void;
40
+ protected willUpdate(changed: PropertyValues): void;
41
+ protected updated(changed: PropertyValues): void;
42
+ formDisabledCallback(disabled: boolean): void;
43
+ private __syncInnerAria;
44
+ private __getValidationMessage;
45
+ private __syncValidity;
46
+ checkValidity(): boolean;
47
+ reportValidity(): boolean;
48
+ setCustomValidity(message: string): void;
49
+ get form(): HTMLFormElement | null;
50
+ get validity(): ValidityState | undefined;
51
+ get validationMessage(): string;
52
+ get willValidate(): boolean;
53
+ get labels(): NodeList | undefined;
54
+ private __syncFormValue;
55
+ static styles: import("lit").CSSResult;
56
+ render(): TemplateResult;
57
+ private __getVisibleSupportingText;
58
+ }
59
+ declare global {
60
+ interface HTMLElementTagNameMap {
61
+ 'scb-checkbox': ScbCheckbox;
62
+ }
63
+ }
@@ -0,0 +1,11 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class ScbChevron extends LitElement {
3
+ open: boolean;
4
+ static styles: import("lit").CSSResult;
5
+ render(): import("lit-html").TemplateResult<1>;
6
+ }
7
+ declare global {
8
+ interface HTMLElementTagNameMap {
9
+ 'scb-chevron': ScbChevron;
10
+ }
11
+ }
@@ -0,0 +1,57 @@
1
+ import { LitElement, TemplateResult, PropertyValues } from 'lit';
2
+ export declare class ScbChip extends LitElement {
3
+ #private;
4
+ static formAssociated: boolean;
5
+ variant: 'assist' | 'filter' | 'static';
6
+ staticVariant: 'outlined' | 'filled';
7
+ label: string;
8
+ icon: string;
9
+ disabled: boolean;
10
+ elevated: boolean;
11
+ removable: boolean;
12
+ selected: boolean;
13
+ disableToggle: boolean;
14
+ href: string;
15
+ target: '_self' | '_blank' | '_parent' | '_top' | '';
16
+ name: string;
17
+ value: string;
18
+ /**
19
+ * Vertikalt avstånd till omgivande innehåll.
20
+ * "N" (0–14) mappar till var(--spacing-N), annars valfritt CSS-värde.
21
+ * spacing-top / spacing-bottom styr över respektive kant och tar över spacing om de är satta.
22
+ * spacing-left / spacing-right styr avstånd åt respektive sida.
23
+ */
24
+ spacing: undefined;
25
+ /** Vertikalt avstånd ovanför chipet. Tar över spacing om satt. */
26
+ spacingTop: undefined;
27
+ /** Vertikalt avstånd under chipet. Tar över spacing om satt. */
28
+ spacingBottom: undefined;
29
+ /** Horisontellt avstånd till vänster om chipet. */
30
+ spacingLeft: undefined;
31
+ /** Horisontellt avstånd till höger om chipet. */
32
+ spacingRight: undefined;
33
+ private _internals;
34
+ private __loadedVariants;
35
+ private __chipSetLoaded;
36
+ private __iconLoaded;
37
+ constructor();
38
+ protected updated(changed: PropertyValues): void;
39
+ protected firstUpdated(): void;
40
+ private __ensureDepsLoaded;
41
+ static styles: import("lit").CSSResult;
42
+ private get _insideChipSet();
43
+ render(): TemplateResult;
44
+ private _renderChip;
45
+ private _toggleSelected;
46
+ private _onFilterClick;
47
+ private _onRemove;
48
+ private _forward;
49
+ private _updateFormValue;
50
+ formDisabledCallback(disabled: boolean): void;
51
+ private mapSpacingToken;
52
+ }
53
+ declare global {
54
+ interface HTMLElementTagNameMap {
55
+ 'scb-chip': ScbChip;
56
+ }
57
+ }
@@ -0,0 +1,41 @@
1
+ import { LitElement } from 'lit';
2
+ import type { ScbButtonSize, ScbButtonVariant } from '../scb-button/scb-button.js';
3
+ import '../scb-button/scb-button.js';
4
+ export type ScbCollapseTogglePosition = 'before' | 'after';
5
+ export type ScbCollapseToggleLayout = 'block' | 'inline';
6
+ export declare class ScbCollapse extends LitElement {
7
+ #private;
8
+ private _contentId;
9
+ private get _regionLabel();
10
+ variant: 'height' | 'elements';
11
+ collapsedHeight: number;
12
+ visibleElements: number;
13
+ expanded: boolean;
14
+ hideToggle: boolean;
15
+ toggleButtonVariant: ScbButtonVariant;
16
+ toggleButtonSize: ScbButtonSize;
17
+ togglePosition: ScbCollapseTogglePosition;
18
+ toggleLayout: ScbCollapseToggleLayout;
19
+ private _elementCount;
20
+ expandButtonLabel: string;
21
+ collapseButtonLabel: string;
22
+ spacing: undefined;
23
+ spacingTop: undefined;
24
+ spacingBottom: undefined;
25
+ spacingLeft: undefined;
26
+ spacingRight: undefined;
27
+ itemsGap: undefined;
28
+ static styles: import("lit").CSSResult;
29
+ toggle(): void;
30
+ private getDefaultSlot;
31
+ private getToggleMeasureStyles;
32
+ private mapSpacingToken;
33
+ private _contentHeight;
34
+ protected willUpdate(changedProps: Map<string, unknown>): void;
35
+ private _isFullyCollapsed;
36
+ firstUpdated(): void;
37
+ updated(changedProps: Map<string, unknown>): void;
38
+ _measureContent(shouldRequestUpdate?: boolean): void;
39
+ _countElements(shouldRequestUpdate?: boolean): void;
40
+ render(): import("lit-html").TemplateResult<1>;
41
+ }
@@ -0,0 +1,2 @@
1
+ import '../scb-card/scb-card.js';
2
+ export { ScbContainerCard } from '../scb-card/scb-card.js';
@@ -0,0 +1,28 @@
1
+ import { LitElement, PropertyValues } from 'lit';
2
+ export declare class ScbCookiesConsent extends LitElement {
3
+ open: boolean;
4
+ autoRemove: boolean;
5
+ title: string;
6
+ supportingText: string;
7
+ ariaLabel: string;
8
+ spacing: undefined;
9
+ spacingTop: undefined;
10
+ spacingBottom: undefined;
11
+ spacingLeft: undefined;
12
+ spacingRight: undefined;
13
+ static styles: import("lit").CSSResult;
14
+ private _updateButtonWidth;
15
+ private __syncButtonSizes;
16
+ private __ensureSlottedButtonsReady;
17
+ private __onButtonHydrationInteraction;
18
+ private __onButtonsSlotChange;
19
+ private mapSpacingToken;
20
+ private applySpacing;
21
+ firstUpdated(_changed: PropertyValues): void;
22
+ private __syncTopLayer;
23
+ protected updated(changed: PropertyValues): void;
24
+ connectedCallback(): void;
25
+ disconnectedCallback(): void;
26
+ closeAndRemove(eventName: string): void;
27
+ render(): import("lit-html").TemplateResult<1> | null;
28
+ }
@@ -0,0 +1,52 @@
1
+ import { LitElement, PropertyValues, TemplateResult } from 'lit';
2
+ import '../scb-icon-button/scb-icon-button.js';
3
+ import '../scb-button/scb-button.js';
4
+ import '@material/web/icon/icon.js';
5
+ import '@material/web/ripple/ripple.js';
6
+ import '../scb-divider/scb-divider.js';
7
+ export declare class ScbDatepicker extends LitElement {
8
+ private _currentDate;
9
+ private _selectedDate;
10
+ private _showMonthDropdown;
11
+ private _showYearDropdown;
12
+ variant: 'datetime-local' | 'date';
13
+ lang: 'sv' | 'en';
14
+ selectedValue: string;
15
+ open: boolean;
16
+ private _selectedHour;
17
+ private _selectedMinute;
18
+ private readonly _viewportMargin;
19
+ private readonly _popupOffset;
20
+ private _removeLazyFocusRingListeners?;
21
+ private _onWindowReposition;
22
+ private _isRenderedInsideDialog;
23
+ private _usesInPlaceLayout;
24
+ connectedCallback(): void;
25
+ private _positionPopupWithinViewport;
26
+ static styles: import("lit").CSSResult[];
27
+ updated(changed: PropertyValues): void;
28
+ disconnectedCallback(): void;
29
+ private _monthNames;
30
+ private _locale;
31
+ private _formatDateLabel;
32
+ private _closeOpenDropdowns;
33
+ private _onPopupKeydown;
34
+ render(): TemplateResult;
35
+ private _getMonthDays;
36
+ private _outsideClickHandler;
37
+ private _toggleMonthDropdown;
38
+ private _toggleYearDropdown;
39
+ private _centerOptionInContent;
40
+ private _onMonthChangeCustom;
41
+ private _onYearChangeCustom;
42
+ private _prevMonth;
43
+ private _prevYear;
44
+ private _nextMonth;
45
+ private _nextYear;
46
+ private _isToday;
47
+ private _isSelected;
48
+ private _selectDate;
49
+ private _fireDateTimeChange;
50
+ private _onTimeChange;
51
+ private _close;
52
+ }
@@ -0,0 +1,121 @@
1
+ import { LitElement } from 'lit';
2
+ import '../scb-button/scb-button.js';
3
+ import '../scb-icon-button/scb-icon-button.js';
4
+ import '../scb-textfield/scb-textfield.js';
5
+ import '../scb-checkbox/scb-checkbox.js';
6
+ import '../scb-radio-button/scb-radio-button.js';
7
+ import '../scb-switch/scb-switch.js';
8
+ import '../scb-chip/scb-chip.js';
9
+ import '@material/web/icon/icon.js';
10
+ type Variant = 'basic' | 'alert' | 'confirm' | 'choose' | 'form' | 'floating' | 'iframe';
11
+ type FormMethod = '' | 'GET' | 'POST' | 'PUT' | 'DELETE';
12
+ type FormEnctype = '' | 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
13
+ export declare class ScbDialog extends LitElement {
14
+ open: boolean;
15
+ maxW?: string;
16
+ maxH?: string;
17
+ zIndex?: number;
18
+ inSb: boolean;
19
+ scrimClose: boolean;
20
+ spacing: undefined;
21
+ spacingTop: undefined;
22
+ spacingBottom: undefined;
23
+ spacingLeft: undefined;
24
+ spacingRight: undefined;
25
+ variant: Variant;
26
+ label: string;
27
+ icon: string;
28
+ supportingText: string;
29
+ okButton: string;
30
+ cancelButton: string;
31
+ deleteButton: string;
32
+ confirmButton: string;
33
+ denyButton: string;
34
+ resetButton: string;
35
+ submitButton: string;
36
+ closeLabel: string;
37
+ formId: string;
38
+ formAction: string;
39
+ formMethod: FormMethod;
40
+ formEnctype: FormEnctype;
41
+ private __lastTriggerEl;
42
+ private __focusBeforeOpen;
43
+ private __stackInactive;
44
+ private __submitting;
45
+ private __submitAbortController?;
46
+ private __redirectingFocus;
47
+ private __scrollLocked;
48
+ private __initialControlStates;
49
+ private static __openDialogs;
50
+ private static __backgroundInertSnapshot;
51
+ private static readonly __focusableSelector;
52
+ static styles: import("lit").CSSResult;
53
+ private __getActionFromEvent;
54
+ private __onDocumentClick;
55
+ private __hasOpenNestedOverlay;
56
+ private __onDocumentKeydown;
57
+ private __onDocumentFocusIn;
58
+ private __isModalOverlay;
59
+ private static __getTopmostOpenDialog;
60
+ private static __restoreBackgroundInert;
61
+ private static __setBackgroundInert;
62
+ private __getRequestedZIndex;
63
+ private __setStackLayer;
64
+ private __setStackInactive;
65
+ private static __syncModalStack;
66
+ private __registerOpenDialog;
67
+ private __unregisterOpenDialog;
68
+ private __getDeepActiveElement;
69
+ private __isInsideDialog;
70
+ private __focusInitial;
71
+ private __clearSavedFocus;
72
+ private __restoreFocusAfterClose;
73
+ connectedCallback(): void;
74
+ disconnectedCallback(): void;
75
+ private __applyZIndex;
76
+ private __applyMaxSize;
77
+ protected updated(ch: Map<PropertyKey, unknown>): void;
78
+ private __updateTriggersExpanded;
79
+ private __usesInPlaceLayout;
80
+ private __toggleScrollLock;
81
+ private mapSpacingToken;
82
+ private __applySpacing;
83
+ private __setOpen;
84
+ private __fire;
85
+ private __fireCancelable;
86
+ private __getFormMethod;
87
+ private __getSlottedElements;
88
+ private __rememberInitialControlStates;
89
+ private __appendHiddenFormValue;
90
+ private __clearGeneratedFormValues;
91
+ private __syncSlottedFormValues;
92
+ private __appendSlottedFiles;
93
+ private __createFormData;
94
+ private __validateFormAndSlottedFields;
95
+ private __onScrimClick;
96
+ private __onOk;
97
+ private __onCancel;
98
+ private __onConfirm;
99
+ private __onDeny;
100
+ private __onReset;
101
+ private __onSubmit;
102
+ private __onFormSubmit;
103
+ private __isFocusableElement;
104
+ private __collectAssignedFocusableElements;
105
+ private __collectFocusableElements;
106
+ private __currentFocusableFromEvent;
107
+ private __onKeydownTrap;
108
+ private __slotIsEmpty;
109
+ private renderHeader;
110
+ private renderContentDefault;
111
+ private renderContentIframe;
112
+ private renderActions;
113
+ private renderBody;
114
+ render(): import("lit-html").TemplateResult<1>;
115
+ }
116
+ declare global {
117
+ interface HTMLElementTagNameMap {
118
+ 'scb-dialog': ScbDialog;
119
+ }
120
+ }
121
+ export {};
@@ -0,0 +1,34 @@
1
+ import { LitElement } from 'lit';
2
+ type Variant = 'thin' | 'bold';
3
+ type Direction = 'horizontal' | 'vertical';
4
+ type Inset = 'none' | 'both' | 'start' | 'end';
5
+ type Anchor = 'start' | 'end';
6
+ export declare class ScbDivider extends LitElement {
7
+ #private;
8
+ variant: Variant;
9
+ direction: Direction;
10
+ inset: Inset;
11
+ overlay: boolean;
12
+ anchor: Anchor;
13
+ /**
14
+ * Styr avstånd ortogonalt mot avdelaren.
15
+ * - Horizontal divider: spacing ger margin-block (avstånd ovan/under).
16
+ * - Vertical divider: spacing ger margin-inline (avstånd vänster/höger), om inte overlay används.
17
+ *
18
+ * Värden:
19
+ * - "N" (0–14) mappas till var(--spacing-N)
20
+ * - Annars tas värdet som ett CSS-värde (t.ex. "16px", "1rem", "var(--spacing-6)").
21
+ */
22
+ spacing: undefined;
23
+ static styles: import("lit").CSSResult;
24
+ firstUpdated(): void;
25
+ updated(changed: Map<string, unknown>): void;
26
+ private mapSpacingToken;
27
+ render(): import("lit-html").TemplateResult<1>;
28
+ }
29
+ declare global {
30
+ interface HTMLElementTagNameMap {
31
+ 'scb-divider': ScbDivider;
32
+ }
33
+ }
34
+ export {};