scb-wc 0.1.128 → 0.1.129
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 +22 -41
- package/all.js +6 -0
- package/blazor/ScbBlazorInteropBase.cs +65 -0
- package/blazor/scb-blazor-bridge.js +46 -0
- package/fonts/material-symbols-outlined/files/material-symbols-outlined-subset.woff2 +0 -0
- package/icons.json +11 -3
- package/index.js +95 -89
- package/mvc/components/all.js +6 -0
- package/mvc/components/scb-accordion/scb-accordion-item.js +2 -1
- package/mvc/components/scb-accordion/scb-accordion.js +7 -7
- package/mvc/components/scb-app-bar/scb-app-bar.js +11 -11
- package/mvc/components/scb-badge/scb-badge.js +5 -5
- package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +2 -2
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +7 -7
- package/mvc/components/scb-button/scb-button.js +4 -4
- package/mvc/components/scb-calendar/scb-calendar.js +35 -27
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +5 -5
- package/mvc/components/scb-card/scb-card.js +29 -29
- package/mvc/components/scb-checkbox/scb-checkbox.js +19 -13
- package/mvc/{vendor → components/scb-chevron}/scb-chevron.js +1 -1
- package/mvc/components/scb-chip/scb-chip.js +2 -2
- package/mvc/components/scb-collapse/scb-collapse.js +13 -9
- package/mvc/components/scb-datepicker/scb-datepicker.js +132 -0
- package/mvc/components/scb-dialog/scb-dialog.js +16 -16
- package/mvc/components/scb-drawer/scb-drawer.js +5 -4
- package/mvc/components/scb-drop-zone/scb-drop-zone.js +39 -30
- package/mvc/components/scb-dropdown/scb-dropdown.js +4 -2
- package/mvc/components/scb-fab/scb-fab.js +10 -9
- package/mvc/components/scb-fact-card/scb-fact-card.js +3 -2
- package/mvc/components/scb-footer/scb-footer.js +13 -13
- package/mvc/components/scb-form-error-summary/scb-form-error-summary.js +24 -0
- package/mvc/components/scb-gallery-grid/scb-gallery-grid.js +14 -9
- package/mvc/components/scb-header/scb-header-menu-group.js +1 -1
- package/mvc/components/scb-header/scb-header-menu-item.js +1 -1
- package/mvc/components/scb-header/scb-header-tab.js +1 -1
- package/mvc/components/scb-header/scb-header.js +25 -25
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +10 -10
- package/mvc/components/scb-icon-button/scb-icon-button.js +5 -5
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +6 -6
- package/mvc/components/scb-link/scb-link.js +2 -2
- package/mvc/components/scb-list/scb-list-item.js +14 -6
- package/mvc/components/scb-list/scb-list.js +2 -2
- package/mvc/components/scb-menu/scb-menu-item.js +16 -16
- package/mvc/components/scb-menu/scb-menu.js +6 -6
- package/mvc/components/scb-nav/scb-nav.js +5 -5
- package/mvc/components/scb-notification-card/scb-notification-card.js +7 -7
- package/mvc/components/scb-options-menu/scb-options-menu-item.js +3 -3
- package/mvc/components/scb-options-menu/scb-options-menu.js +2 -2
- package/mvc/components/scb-overlay/scb-overlay.js +5 -5
- package/mvc/components/scb-pagination/scb-pagination.js +56 -90
- package/mvc/components/scb-progress-indicator/scb-progress-indicator.js +4 -4
- package/mvc/components/scb-progress-stepper/scb-progress-step.js +14 -9
- package/mvc/components/scb-progress-stepper/scb-progress-stepper.js +14 -8
- package/mvc/components/scb-radio-button/scb-radio-group.js +11 -4
- package/mvc/components/scb-search/scb-search.js +13 -9
- 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 +33 -12
- package/mvc/components/scb-skeleton/scb-skeleton.js +2 -2
- package/mvc/components/scb-slider/scb-slider.js +55 -48
- package/mvc/components/scb-snackbar/scb-snackbar.js +21 -7
- package/mvc/components/scb-stepper/scb-step.js +7 -7
- package/mvc/components/scb-stepper/scb-stepper.js +3 -3
- package/mvc/components/scb-switch/scb-switch.js +20 -8
- package/mvc/components/scb-table/scb-table.js +2 -2
- package/mvc/components/scb-table-advanced/scb-table-advanced.js +5 -5
- package/mvc/components/scb-textfield/scb-textfield.js +35 -152
- package/mvc/components/scb-toc/scb-toc-item.js +5 -4
- package/mvc/components/scb-toc/scb-toc.js +7 -5
- package/mvc/components/scb-tooltip/scb-tooltip.js +1 -1
- package/mvc/components/scb-viz/scb-viz.js +1 -1
- package/mvc/components/shared/lazy-focus-ring.js +2 -0
- package/mvc/components/shared/lazy-ripple.js +2 -0
- package/mvc/components/shared/scb-icon-svg.js +11 -0
- package/mvc/fonts/material-symbols-outlined/files/material-symbols-outlined-subset.woff2 +0 -0
- package/mvc/scb-blazor-bridge.js +46 -0
- package/mvc/scb-logo.svg +20 -20
- 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/scb.svg +13 -13
- package/mvc/vendor/scb-card-variants.internal.js +20 -21
- package/mvc/vendor/scb-header-drawer.internal.js +4 -2
- package/package.json +6 -2
- package/scb-accordion/scb-accordion-item.js +1 -0
- package/scb-accordion/scb-accordion.js +12 -3
- package/scb-app-bar/scb-app-bar.js +25 -12
- package/scb-badge/scb-badge.js +23 -23
- package/scb-breadcrumb/scb-breadcrumb-item.js +9 -0
- package/scb-breadcrumb/scb-breadcrumb.js +5 -2
- package/scb-button/scb-button.js +27 -4
- package/scb-calendar/scb-calendar.js +97 -72
- package/scb-calendar-card/scb-calendar-card.js +10 -4
- package/scb-card/scb-card-variants.internal.js +23 -22
- package/scb-card/scb-card.js +72 -38
- package/scb-checkbox/scb-checkbox.js +86 -23
- package/scb-chevron/scb-chevron.js +1 -0
- package/scb-chip/scb-chip.js +15 -6
- package/scb-collapse/scb-collapse.js +26 -9
- package/scb-components/index.d.ts +104 -0
- package/scb-components/scb-accordion/scb-accordion.d.ts +3 -0
- package/scb-components/scb-app-bar/scb-app-bar.d.ts +3 -0
- package/scb-components/scb-breadcrumb/scb-breadcrumb.d.ts +1 -0
- package/scb-components/scb-button/scb-button.d.ts +2 -0
- package/scb-components/scb-calendar/scb-calendar.d.ts +2 -0
- package/scb-components/scb-calendar-card/scb-calendar-card.d.ts +2 -0
- package/scb-components/scb-card/scb-card.d.ts +6 -0
- package/scb-components/scb-checkbox/scb-checkbox.d.ts +10 -0
- package/scb-components/scb-chevron/scb-chevron.d.ts +11 -0
- package/scb-components/scb-collapse/scb-collapse.d.ts +2 -0
- package/scb-components/scb-datepicker/scb-datepicker.d.ts +45 -0
- package/scb-components/scb-dialog/scb-dialog.d.ts +7 -0
- package/scb-components/scb-drawer/scb-drawer.d.ts +8 -1
- package/scb-components/scb-drop-zone/scb-drop-zone.d.ts +49 -0
- package/scb-components/scb-fact-card/scb-fact-card.d.ts +1 -0
- package/scb-components/scb-footer/scb-footer.d.ts +1 -0
- package/scb-components/scb-form-error-summary/scb-form-error-summary.d.ts +22 -0
- package/scb-components/scb-gallery-grid/scb-gallery-grid.d.ts +4 -0
- package/scb-components/scb-header/scb-header-drawer.internal.d.ts +2 -0
- package/scb-components/scb-header/scb-header-menu-item.d.ts +2 -0
- package/scb-components/scb-header/scb-header-tab.d.ts +2 -0
- package/scb-components/scb-header/scb-header.d.ts +6 -0
- package/scb-components/scb-list/scb-list-item.d.ts +3 -0
- package/scb-components/scb-list/scb-list.d.ts +2 -0
- package/scb-components/scb-menu/scb-menu-item.d.ts +7 -0
- package/scb-components/scb-nav/scb-nav.d.ts +2 -0
- package/scb-components/scb-notification-card/scb-notification-card.d.ts +1 -0
- package/scb-components/scb-pagination/scb-pagination.d.ts +6 -0
- package/scb-components/scb-progress-indicator/scb-progress-indicator.d.ts +4 -0
- package/scb-components/scb-progress-stepper/scb-progress-step.d.ts +3 -0
- package/scb-components/scb-progress-stepper/scb-progress-stepper.d.ts +6 -0
- package/scb-components/scb-radio-button/scb-radio-group.d.ts +7 -0
- package/scb-components/scb-search/scb-search.d.ts +9 -0
- package/scb-components/scb-select/scb-select-option.d.ts +1 -0
- package/scb-components/scb-select/scb-select.d.ts +20 -0
- package/scb-components/scb-skeleton/scb-skeleton.d.ts +8 -0
- package/scb-components/scb-slider/scb-slider.d.ts +35 -0
- package/scb-components/scb-snackbar/scb-snackbar.d.ts +2 -0
- package/scb-components/scb-switch/scb-switch.d.ts +11 -0
- package/scb-components/scb-table/scb-table.d.ts +6 -0
- package/scb-components/scb-table-advanced/scb-table-advanced.d.ts +6 -0
- package/scb-components/scb-textfield/scb-textfield.d.ts +12 -0
- package/scb-components/scb-toc/scb-toc-item.d.ts +2 -0
- package/scb-components/scb-toc/scb-toc.d.ts +2 -0
- package/scb-components/scb-tooltip/scb-tooltip.d.ts +5 -0
- package/scb-components/scb-viz/scb-viz.d.ts +1 -1
- 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/scb-icon-svg.d.ts +3 -0
- package/scb-datepicker/scb-datepicker.js +38 -8
- package/scb-dialog/scb-dialog.js +88 -35
- package/scb-drawer/scb-drawer.js +77 -19
- package/scb-drop-zone/scb-drop-zone.js +187 -52
- package/scb-dropdown/scb-dropdown.js +3 -1
- package/scb-fab/scb-fab.js +1 -0
- package/scb-fact-card/scb-fact-card.js +6 -2
- package/scb-footer/scb-footer.js +30 -25
- package/scb-form-error-summary/scb-form-error-summary.js +151 -0
- package/scb-gallery-grid/scb-gallery-grid.js +79 -35
- package/scb-header/scb-header-drawer.internal.js +2 -0
- package/scb-header/scb-header-menu-group.js +1 -1
- package/scb-header/scb-header-menu-item.js +6 -0
- package/scb-header/scb-header-tab.js +6 -0
- package/scb-header/scb-header.js +35 -15
- package/scb-horizontal-scroller/scb-horizontal-scroller.js +4 -4
- package/scb-link/scb-link.js +10 -0
- package/scb-list/scb-list-item.js +52 -35
- package/scb-list/scb-list.js +21 -11
- package/scb-menu/scb-menu-item.js +53 -13
- package/scb-menu/scb-menu.js +1 -1
- package/scb-nav/scb-nav.js +9 -3
- package/scb-notification-card/scb-notification-card.js +29 -8
- package/scb-options-menu/scb-options-menu-item.js +4 -4
- package/scb-options-menu/scb-options-menu.js +5 -10
- package/scb-overlay/scb-overlay.js +73 -11
- package/scb-pagination/scb-pagination.js +131 -117
- package/scb-progress-indicator/scb-progress-indicator.js +17 -9
- package/scb-progress-stepper/scb-progress-step.js +26 -10
- package/scb-progress-stepper/scb-progress-stepper.js +55 -31
- package/scb-radio-button/scb-radio-group.js +92 -16
- package/scb-search/scb-search.js +104 -16
- package/scb-select/scb-select-option.js +4 -1
- package/scb-select/scb-select.js +235 -71
- package/scb-skeleton/scb-skeleton.js +26 -2
- package/scb-slider/scb-slider.js +162 -29
- package/scb-snackbar/scb-snackbar.js +34 -7
- package/scb-stepper/scb-step.js +12 -5
- package/scb-stepper/scb-stepper.js +4 -4
- package/scb-switch/scb-switch.js +103 -16
- package/scb-table/scb-table.js +53 -16
- package/scb-table-advanced/scb-table-advanced.js +50 -14
- package/scb-textfield/scb-textfield.js +42 -18
- package/scb-toc/scb-toc-item.js +24 -15
- package/scb-toc/scb-toc.js +24 -9
- package/scb-tooltip/scb-tooltip.js +14 -4
- package/scb-viz/scb-viz.js +1 -0
- package/scb-wc-core.css +1 -1
- package/scb-wc-selfhost.css +1 -1
- package/scb-wc.bundle.js +3896 -3341
- package/scb-wc.css +1 -1
- package/scb-wc.d.ts +208 -196
- package/shared/scb-icon-svg.js +5 -2
- package/mvc/vendor/lazy-focus-ring.js +0 -2
- package/mvc/vendor/lazy-ripple.js +0 -2
- package/mvc/vendor/scb-icon-svg.js +0 -11
- package/scb-wc-public-entry/index.d.ts +0 -98
package/index.js
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { addLazyFocusRingListeners as e, ensureFocusRingOnFocusVisible as t, ensureFocusRingOnTab as n, ensureFocusRingReady as r } from "./shared/lazy-focus-ring.js";
|
|
2
|
+
import { ScbChevron as i } from "./scb-chevron/scb-chevron.js";
|
|
3
|
+
import { ScbAccordionItem as a } from "./scb-accordion/scb-accordion-item.js";
|
|
4
|
+
import { ScbButton as o } from "./scb-button/scb-button.js";
|
|
5
|
+
import { ScbAccordion as s } from "./scb-accordion/scb-accordion.js";
|
|
6
|
+
import { ScbActionCard as c, ScbCard as l, ScbContainerCard as u, ScbLinkCard as d, ScbListCard as f, ScbSocialCard as p } from "./scb-card/scb-card.js";
|
|
5
7
|
import "./scb-action-card/scb-action-card.js";
|
|
6
|
-
import { ScbIconButton as
|
|
7
|
-
import { ScbSearch as
|
|
8
|
-
import { ScbAvatar as
|
|
9
|
-
import { ScbAppBar as
|
|
10
|
-
import { ScbBadge as
|
|
11
|
-
import { ScbLink as
|
|
12
|
-
import { SCBBreadcrumbItem as
|
|
13
|
-
import { SCBBreadcrumb as
|
|
14
|
-
import { ScbCalendarEvent as
|
|
15
|
-
import { ScbDivider as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
8
|
+
import { ScbIconButton as m } from "./scb-icon-button/scb-icon-button.js";
|
|
9
|
+
import { ScbSearch as h } from "./scb-search/scb-search.js";
|
|
10
|
+
import { ScbAvatar as g } from "./scb-avatar/scb-avatar.js";
|
|
11
|
+
import { ScbAppBar as _ } from "./scb-app-bar/scb-app-bar.js";
|
|
12
|
+
import { ScbBadge as v } from "./scb-badge/scb-badge.js";
|
|
13
|
+
import { ScbLink as y } from "./scb-link/scb-link.js";
|
|
14
|
+
import { SCBBreadcrumbItem as b } from "./scb-breadcrumb/scb-breadcrumb-item.js";
|
|
15
|
+
import { SCBBreadcrumb as x } from "./scb-breadcrumb/scb-breadcrumb.js";
|
|
16
|
+
import { ScbCalendarEvent as S } from "./scb-calendar/scb-calendar-event.js";
|
|
17
|
+
import { ScbDivider as C } from "./scb-divider/scb-divider.js";
|
|
18
|
+
import { ScbDatepicker as w } from "./scb-datepicker/scb-datepicker.js";
|
|
19
|
+
import { ScbTooltip as T } from "./scb-tooltip/scb-tooltip.js";
|
|
20
|
+
import { ScbTextField as E } from "./scb-textfield/scb-textfield.js";
|
|
21
|
+
import { ScbCheckboxGroup as D } from "./scb-checkbox/scb-checkbox-group.js";
|
|
22
|
+
import { ScbCheckbox as O } from "./scb-checkbox/scb-checkbox.js";
|
|
23
|
+
import { ScbRadioGroup as k } from "./scb-radio-button/scb-radio-group.js";
|
|
24
|
+
import { ScbRadioButton as A } from "./scb-radio-button/scb-radio-button.js";
|
|
25
|
+
import { ScbSwitch as j } from "./scb-switch/scb-switch.js";
|
|
26
|
+
import { ScbChip as M } from "./scb-chip/scb-chip.js";
|
|
27
|
+
import { ScbDialog as N } from "./scb-dialog/scb-dialog.js";
|
|
28
|
+
import { ScbListItem as P } from "./scb-list/scb-list-item.js";
|
|
29
|
+
import { ScbList as F } from "./scb-list/scb-list.js";
|
|
30
|
+
import { ScbCalendar as I } from "./scb-calendar/scb-calendar.js";
|
|
31
|
+
import { ScbCalendarCard as L } from "./scb-calendar-card/scb-calendar-card.js";
|
|
29
32
|
import "./scb-card/scb-action-card.js";
|
|
30
33
|
import "./scb-container-card/scb-container-card.js";
|
|
31
34
|
import "./scb-card/scb-container-card.js";
|
|
@@ -35,65 +38,68 @@ import "./scb-list-card/scb-list-card.js";
|
|
|
35
38
|
import "./scb-card/scb-list-card.js";
|
|
36
39
|
import "./scb-social-card/scb-social-card.js";
|
|
37
40
|
import "./scb-card/scb-social-card.js";
|
|
38
|
-
import { ScbCollapse as
|
|
39
|
-
import { ScbCookiesConsent as
|
|
40
|
-
import { ScbDrawer as
|
|
41
|
-
import { ScbDropZone as
|
|
42
|
-
import { ScbOptionsMenuItem as
|
|
43
|
-
import { ScbOptionsSubMenu as
|
|
44
|
-
import { ScbOptionsMenu as
|
|
45
|
-
import { ScbDropdown as
|
|
46
|
-
import { ScbFab as
|
|
47
|
-
import { ScbFactCardContent as
|
|
48
|
-
import { ScbFactCard as
|
|
49
|
-
import { ScbFooterSection as
|
|
50
|
-
import { ScbGridItem as
|
|
51
|
-
import { ScbStack as
|
|
52
|
-
import { ScbGrid as
|
|
53
|
-
import { ScbFooter as
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
|
|
41
|
+
import { ScbCollapse as R } from "./scb-collapse/scb-collapse.js";
|
|
42
|
+
import { ScbCookiesConsent as z } from "./scb-cookies-consent/scb-cookies-consent.js";
|
|
43
|
+
import { ScbDrawer as B } from "./scb-drawer/scb-drawer.js";
|
|
44
|
+
import { ScbDropZone as V } from "./scb-drop-zone/scb-drop-zone.js";
|
|
45
|
+
import { ScbOptionsMenuItem as H } from "./scb-options-menu/scb-options-menu-item.js";
|
|
46
|
+
import { ScbOptionsSubMenu as U } from "./scb-options-menu/scb-options-sub-menu.js";
|
|
47
|
+
import { ScbOptionsMenu as W } from "./scb-options-menu/scb-options-menu.js";
|
|
48
|
+
import { ScbDropdown as G } from "./scb-dropdown/scb-dropdown.js";
|
|
49
|
+
import { ScbFab as K } from "./scb-fab/scb-fab.js";
|
|
50
|
+
import { ScbFactCardContent as q } from "./scb-fact-card/scb-fact-card-content.js";
|
|
51
|
+
import { ScbFactCard as J } from "./scb-fact-card/scb-fact-card.js";
|
|
52
|
+
import { ScbFooterSection as Y } from "./scb-footer/scb-footer-section.js";
|
|
53
|
+
import { ScbGridItem as X } from "./scb-grid/scb-grid-item.js";
|
|
54
|
+
import { ScbStack as Z } from "./scb-grid/scb-stack.js";
|
|
55
|
+
import { ScbGrid as Q } from "./scb-grid/scb-grid.js";
|
|
56
|
+
import { ScbFooter as $ } from "./scb-footer/scb-footer.js";
|
|
57
|
+
import { ScbIcon as ee } from "./scb-icon/scb-icon.js";
|
|
58
|
+
import { ScbNotificationCard as te } from "./scb-notification-card/scb-notification-card.js";
|
|
59
|
+
import { ScbFormErrorSummary as ne } from "./scb-form-error-summary/scb-form-error-summary.js";
|
|
60
|
+
import { hasScbSvgIcon as re, renderScbIcon as ie } from "./shared/scb-icon-svg.js";
|
|
61
|
+
import { ScbHorizontalScroller as ae } from "./scb-horizontal-scroller/scb-horizontal-scroller.js";
|
|
62
|
+
import { ScbOverlay as oe } from "./scb-overlay/scb-overlay.js";
|
|
63
|
+
import { ScbGalleryGrid as se } from "./scb-gallery-grid/scb-gallery-grid.js";
|
|
64
|
+
import { ScbHeaderMenuGroup as ce } from "./scb-header/scb-header-menu-group.js";
|
|
65
|
+
import { ScbHeaderMenuItem as le } from "./scb-header/scb-header-menu-item.js";
|
|
66
|
+
import { ScbHeaderTab as ue } from "./scb-header/scb-header-tab.js";
|
|
67
|
+
import { ScbHeaderUtility as de } from "./scb-header/scb-header-utility.js";
|
|
68
|
+
import { ScbHeader as fe } from "./scb-header/scb-header.js";
|
|
69
|
+
import { ScbKeyFigureCard as pe } from "./scb-keyfigure-card/scb-keyfigure-card.js";
|
|
70
|
+
import { ScbMenuItem as me } from "./scb-menu/scb-menu-item.js";
|
|
71
|
+
import { ScbmenuSection as he } from "./scb-menu/scb-menu-section.js";
|
|
72
|
+
import { ScbSubmenu as ge } from "./scb-menu/scb-sub-menu.js";
|
|
73
|
+
import { ScbMenu as _e } from "./scb-menu/scb-menu.js";
|
|
74
|
+
import { ScbNavItem as ve } from "./scb-nav/scb-nav-item.js";
|
|
75
|
+
import { ScbNav as ye } from "./scb-nav/scb-nav.js";
|
|
76
|
+
import { ScbPagination as be } from "./scb-pagination/scb-pagination.js";
|
|
77
|
+
import { ScbProgressIndicator as xe } from "./scb-progress-indicator/scb-progress-indicator.js";
|
|
78
|
+
import { ScbProgressStep as Se } from "./scb-progress-stepper/scb-progress-step.js";
|
|
79
|
+
import { ScbProgressStepper as Ce } from "./scb-progress-stepper/scb-progress-stepper.js";
|
|
80
|
+
import { ScbScrollspy as we } from "./scb-scrollspy/scb-scrollspy.js";
|
|
81
|
+
import { ScbSegmentedItem as Te } from "./scb-segmented-button/scb-segmented-item.js";
|
|
82
|
+
import { ScbSegmentedButton as Ee } from "./scb-segmented-button/scb-segmented-button.js";
|
|
83
|
+
import { ScbSelectOption as De } from "./scb-select/scb-select-option.js";
|
|
84
|
+
import { ScbSelect as Oe } from "./scb-select/scb-select.js";
|
|
85
|
+
import { ScbSkeleton as ke } from "./scb-skeleton/scb-skeleton.js";
|
|
86
|
+
import { ScbSlider as Ae } from "./scb-slider/scb-slider.js";
|
|
87
|
+
import { ScbSnackbar as je } from "./scb-snackbar/scb-snackbar.js";
|
|
88
|
+
import { ScbStatusPill as Me } from "./scb-status-pill/scb-status-pill.js";
|
|
89
|
+
import { ScbStep as Ne } from "./scb-stepper/scb-step.js";
|
|
90
|
+
import { ScbStepper as Pe } from "./scb-stepper/scb-stepper.js";
|
|
91
|
+
import { ScbTable as Fe } from "./scb-table/scb-table.js";
|
|
92
|
+
import { ScbTableAdvanced as Ie } from "./scb-table-advanced/scb-table-advanced.js";
|
|
93
|
+
import { ScbPrimaryTab as Le } from "./scb-tabs/scb-primary-tab.js";
|
|
94
|
+
import { ScbSecondaryTab as Re } from "./scb-tabs/scb-secondary-tab.js";
|
|
95
|
+
import { ScbTabs as ze } from "./scb-tabs/scb-tabs.js";
|
|
96
|
+
import { ScbTocItem as Be } from "./scb-toc/scb-toc-item.js";
|
|
97
|
+
import { ScbToc as Ve } from "./scb-toc/scb-toc.js";
|
|
98
|
+
import { buildScbVizExportFileName as He, createScbVizCsvBlob as Ue, createScbVizRasterBlobFromElement as We, createScbVizRasterDataUrlFromElement as Ge, downloadScbVizBlob as Ke, getScbVizCurrentFullscreenElement as qe, getScbVizExportBaseFileName as Je, getScbVizFullscreenDocument as Ye, isScbVizFullscreenSupported as Xe, openScbVizPrintFrame as Ze, runWithScbVizForcedPrintLightMode as Qe, toggleScbVizFullscreen as $e } from "./scb-viz/scb-viz-actions-runtime.js";
|
|
99
|
+
import { buildScbVizPrintDocumentHtml as et, buildScbVizPrintableFooterHtml as tt, buildScbVizPrintableTableHtml as nt } from "./scb-viz/scb-viz-print-runtime.js";
|
|
100
|
+
import { appendScbVizSeriesDifferentiationPatternMarks as rt, getScbVizSeriesDifferentiationPatternDefinition as it, getScbVizSeriesDifferentiationPatternKinds as at, getScbVizSeriesDifferentiationRegistry as ot, getScbVizSeriesDifferentiationVariant as st, scbVizSeriesDifferentiationRegistry as ct } from "./scb-viz/scb-viz-series-differentiation-registry.js";
|
|
101
|
+
import { clearScbVizSeriesDifferentiationColorClass as lt, clearScbVizSeriesDifferentiationMetadata as ut, ensureScbVizGroupedSeriesDifferentiationStore as dt, ensureScbVizStyledModeSeriesPattern as ft, getScbVizGroupedSeriesDifferentiationKey as pt, getScbVizGroupedSeriesDifferentiationVariant as mt, getScbVizGroupedSeriesDifferentiationVariantIndex as ht, getScbVizHighchartsColorClassName as gt, getScbVizHighchartsSvgElement as _t, getScbVizHighchartsSvgRoot as vt, getScbVizLegendSeriesDifferentiationTargets as yt, getScbVizSeriesDifferentiationColorIndex as bt, getScbVizSeriesDifferentiationVariantByIndex as xt, isScbVizGroupedSeriesDifferentiationChart as St, isScbVizHighchartsStyledMode as Ct, setScbVizSeriesDifferentiationColorClass as wt, setScbVizSeriesDifferentiationMetadata as Tt, shouldShowScbVizSeriesDifferentiationAction as Et, usesScbVizGroupedPointDifferentiation as Dt } from "./scb-viz/scb-viz-series-differentiation-runtime.js";
|
|
102
|
+
import { buildScbVizResolvedTableView as Ot, createScbVizCsvRows as kt, inferScbVizTableAlignments as At, normalizeScbVizRenderableCell as jt, readScbVizTableDataFromSlot as Mt } from "./scb-viz/scb-viz-table-runtime.js";
|
|
103
|
+
import { ScbViz as Nt } from "./scb-viz/scb-viz.js";
|
|
104
|
+
import { ensureRippleReady as Pt, syncRippleToControl as Ft } from "./shared/lazy-ripple.js";
|
|
105
|
+
export { x as SCBBreadcrumb, b as SCBBreadcrumbItem, s as ScbAccordion, a as ScbAccordionItem, c as ScbActionCard, _ as ScbAppBar, g as ScbAvatar, v as ScbBadge, o as ScbButton, I as ScbCalendar, L as ScbCalendarCard, S as ScbCalendarEvent, l as ScbCard, O as ScbCheckbox, D as ScbCheckboxGroup, i as ScbChevron, M as ScbChip, R as ScbCollapse, u as ScbContainerCard, z as ScbCookiesConsent, w as ScbDatepicker, N as ScbDialog, C as ScbDivider, B as ScbDrawer, V as ScbDropZone, G as ScbDropdown, K as ScbFab, J as ScbFactCard, q as ScbFactCardContent, $ as ScbFooter, Y as ScbFooterSection, ne as ScbFormErrorSummary, se as ScbGalleryGrid, Q as ScbGrid, X as ScbGridItem, fe as ScbHeader, ce as ScbHeaderMenuGroup, le as ScbHeaderMenuItem, ue as ScbHeaderTab, de as ScbHeaderUtility, ae as ScbHorizontalScroller, ee as ScbIcon, m as ScbIconButton, pe as ScbKeyFigureCard, y as ScbLink, d as ScbLinkCard, F as ScbList, f as ScbListCard, P as ScbListItem, _e as ScbMenu, me as ScbMenuItem, ye as ScbNav, ve as ScbNavItem, te as ScbNotificationCard, W as ScbOptionsMenu, H as ScbOptionsMenuItem, U as ScbOptionsSubMenu, oe as ScbOverlay, be as ScbPagination, Le as ScbPrimaryTab, xe as ScbProgressIndicator, Se as ScbProgressStep, Ce as ScbProgressStepper, A as ScbRadioButton, k as ScbRadioGroup, we as ScbScrollspy, h as ScbSearch, Re as ScbSecondaryTab, Ee as ScbSegmentedButton, Te as ScbSegmentedItem, Oe as ScbSelect, De as ScbSelectOption, ke as ScbSkeleton, Ae as ScbSlider, je as ScbSnackbar, p as ScbSocialCard, Z as ScbStack, Me as ScbStatusPill, Ne as ScbStep, Pe as ScbStepper, ge as ScbSubmenu, j as ScbSwitch, Fe as ScbTable, Ie as ScbTableAdvanced, ze as ScbTabs, E as ScbTextField, Ve as ScbToc, Be as ScbTocItem, T as ScbTooltip, Nt as ScbViz, he as ScbmenuSection, e as addLazyFocusRingListeners, rt as appendScbVizSeriesDifferentiationPatternMarks, He as buildScbVizExportFileName, et as buildScbVizPrintDocumentHtml, tt as buildScbVizPrintableFooterHtml, nt as buildScbVizPrintableTableHtml, Ot as buildScbVizResolvedTableView, lt as clearScbVizSeriesDifferentiationColorClass, ut as clearScbVizSeriesDifferentiationMetadata, Ue as createScbVizCsvBlob, kt as createScbVizCsvRows, We as createScbVizRasterBlobFromElement, Ge as createScbVizRasterDataUrlFromElement, Ke as downloadScbVizBlob, t as ensureFocusRingOnFocusVisible, n as ensureFocusRingOnTab, r as ensureFocusRingReady, Pt as ensureRippleReady, dt as ensureScbVizGroupedSeriesDifferentiationStore, ft as ensureScbVizStyledModeSeriesPattern, qe as getScbVizCurrentFullscreenElement, Je as getScbVizExportBaseFileName, Ye as getScbVizFullscreenDocument, pt as getScbVizGroupedSeriesDifferentiationKey, mt as getScbVizGroupedSeriesDifferentiationVariant, ht as getScbVizGroupedSeriesDifferentiationVariantIndex, gt as getScbVizHighchartsColorClassName, _t as getScbVizHighchartsSvgElement, vt as getScbVizHighchartsSvgRoot, yt as getScbVizLegendSeriesDifferentiationTargets, bt as getScbVizSeriesDifferentiationColorIndex, it as getScbVizSeriesDifferentiationPatternDefinition, at as getScbVizSeriesDifferentiationPatternKinds, ot as getScbVizSeriesDifferentiationRegistry, st as getScbVizSeriesDifferentiationVariant, xt as getScbVizSeriesDifferentiationVariantByIndex, re as hasScbSvgIcon, At as inferScbVizTableAlignments, Xe as isScbVizFullscreenSupported, St as isScbVizGroupedSeriesDifferentiationChart, Ct as isScbVizHighchartsStyledMode, jt as normalizeScbVizRenderableCell, Ze as openScbVizPrintFrame, Mt as readScbVizTableDataFromSlot, ie as renderScbIcon, Qe as runWithScbVizForcedPrintLightMode, ct as scbVizSeriesDifferentiationRegistry, wt as setScbVizSeriesDifferentiationColorClass, Tt as setScbVizSeriesDifferentiationMetadata, Et as shouldShowScbVizSeriesDifferentiationAction, Ft as syncRippleToControl, $e as toggleScbVizFullscreen, Dt as usesScbVizGroupedPointDifferentiation };
|
package/mvc/components/all.js
CHANGED
|
@@ -18,10 +18,12 @@ import './scb-card/scb-list-card.js';
|
|
|
18
18
|
import './scb-card/scb-social-card.js';
|
|
19
19
|
import './scb-checkbox/scb-checkbox.js';
|
|
20
20
|
import './scb-checkbox/scb-checkbox-group.js';
|
|
21
|
+
import './scb-chevron/scb-chevron.js';
|
|
21
22
|
import './scb-chip/scb-chip.js';
|
|
22
23
|
import './scb-collapse/scb-collapse.js';
|
|
23
24
|
import './scb-container-card/scb-container-card.js';
|
|
24
25
|
import './scb-cookies-consent/scb-cookies-consent.js';
|
|
26
|
+
import './scb-datepicker/scb-datepicker.js';
|
|
25
27
|
import './scb-dialog/scb-dialog.js';
|
|
26
28
|
import './scb-divider/scb-divider.js';
|
|
27
29
|
import './scb-drawer/scb-drawer.js';
|
|
@@ -32,6 +34,7 @@ import './scb-fact-card/scb-fact-card.js';
|
|
|
32
34
|
import './scb-fact-card/scb-fact-card-content.js';
|
|
33
35
|
import './scb-footer/scb-footer.js';
|
|
34
36
|
import './scb-footer/scb-footer-section.js';
|
|
37
|
+
import './scb-form-error-summary/scb-form-error-summary.js';
|
|
35
38
|
import './scb-gallery-grid/scb-gallery-grid.js';
|
|
36
39
|
import './scb-grid/scb-grid.js';
|
|
37
40
|
import './scb-grid/scb-grid-item.js';
|
|
@@ -96,3 +99,6 @@ import './scb-viz/scb-viz-print-runtime.js';
|
|
|
96
99
|
import './scb-viz/scb-viz-series-differentiation-registry.js';
|
|
97
100
|
import './scb-viz/scb-viz-series-differentiation-runtime.js';
|
|
98
101
|
import './scb-viz/scb-viz-table-runtime.js';
|
|
102
|
+
import './shared/lazy-focus-ring.js';
|
|
103
|
+
import './shared/lazy-ripple.js';
|
|
104
|
+
import './shared/scb-icon-svg.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as l,h as m,m as b,p as o,v as s,y as h}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import"../../vendor/icon.js";import"../../vendor/ripple.js";import{
|
|
1
|
+
import{g as l,h as m,m as b,p as o,v as s,y as h}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import"../../vendor/icon.js";import"../../vendor/ripple.js";import{ensureFocusRingOnFocusVisible as u}from"../shared/lazy-focus-ring.js";import{t as r}from"../../vendor/decorate.js";import"../scb-chevron/scb-chevron.js";(function(){try{var g=typeof globalThis<"u"?globalThis:window;if(!g.__scb_ce_guard_installed__){g.__scb_ce_guard_installed__=!0;var i=customElements.define.bind(customElements);customElements.define=function(t,e,v){try{customElements.get(t)||i(t,e,v)}catch(c){var n=String(c||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();var d,p,a=(d=class extends m{constructor(...i){super(...i),this.open=!1,this.title="",this.content="",this.overline="",this.supportingText="",this.leading=!1,this.leadingVariant="",this.leadingIcon="",this.imgHrefImage="",this.avatarLabel="",this.avatarAlt="",this.avatarVariant="icon",this.avatarSrc="",this.density=0,this._unique=p._uid(),this._ignoreNextNativeTitleAttrChange=!1,this._onSummaryClick=t=>{t.preventDefault();const e=!this.open;this.closest("scb-accordion")?.onItemToggled?.(this,e),this.setOpen(e)},this._onToggle=t=>{const e=t.currentTarget;e.open||(e.open=!0),this._applyInertByOpen()}}static _uid(){return globalThis.crypto?.randomUUID?.()??`${p._uidPrefix}-${++p._uidSeq}`}static get observedAttributes(){const i=super.observedAttributes||[];return i.includes("title")?i:[...i,"title"]}attributeChangedCallback(i,t,e){if(i==="title"&&this._ignoreNextNativeTitleAttrChange){this._ignoreNextNativeTitleAttrChange=!1;return}super.attributeChangedCallback(i,t,e),i==="title"&&e!==null&&(this._ignoreNextNativeTitleAttrChange=!0,this.removeAttribute("title"))}firstUpdated(){this._applyInertByOpen()}_applyInertByOpen(){const i=this.renderRoot.querySelector(".scb-accordion-bottom");i&&(this.open?(i.removeAttribute("inert"),i.setAttribute("aria-hidden","false")):(i.setAttribute("inert",""),i.setAttribute("aria-hidden","true")))}_onKeyDown(i){const t=this.closest("scb-accordion"),e=Array.from(t?.querySelectorAll("scb-accordion-item")||[]).map(c=>c.renderRoot.querySelector("details")?.querySelector(".scb-accordion-top")||null).filter(c=>!!c),v=i.currentTarget,n=e.indexOf(v);switch(i.key){case"ArrowDown":i.preventDefault(),n<e.length-1&&e[n+1].focus();break;case"ArrowUp":i.preventDefault(),n>0&&e[n-1].focus();break;case"Home":i.preventDefault(),e.length&&e[0].focus();break;case"End":i.preventDefault(),e.length&&e[e.length-1].focus();break}}setOpen(i){this.open=!!i;const t=this.renderRoot.querySelector("details");t&&!t.open&&(t.open=!0),this._applyInertByOpen()}updated(i){if(i.has("open")){const t=this.renderRoot.querySelector("details");t&&!t.open&&(t.open=!0),this._applyInertByOpen(),this.dispatchEvent(new CustomEvent("open-changed",{detail:{open:this.open,title:this.title},bubbles:!0,composed:!0}))}}render(){const i=`bottom-${this._unique}`,t=`header-${this._unique}`,e=this.leading?this.leadingVariant==="image"&&this.imgHrefImage?s`<img part="leading-image" class="img" src="${this.imgHrefImage}" alt="" />`:this.leadingVariant==="avatar"?s`
|
|
2
2
|
<scb-avatar
|
|
3
3
|
label=${this.avatarLabel}
|
|
4
4
|
alt=${this.avatarAlt}
|
|
@@ -13,6 +13,7 @@ import{g as l,h as m,m as b,p as o,v as s,y as h}from"../../vendor/vendor.js";im
|
|
|
13
13
|
id=${t}
|
|
14
14
|
class="scb-accordion-top"
|
|
15
15
|
aria-controls=${i}
|
|
16
|
+
aria-expanded=${String(this.open)}
|
|
16
17
|
@click=${this._onSummaryClick}
|
|
17
18
|
@keydown=${this._onKeyDown}
|
|
18
19
|
@focusin=${u}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import{g as m,h as
|
|
1
|
+
import{g as m,h as y,m as v,p as a,v as b,y as _}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as o}from"../../vendor/decorate.js";import"./scb-accordion-item.js";import{n as S,t as c}from"../../vendor/assertClassBrand.js";import"../scb-button/scb-button.js";(function(){try{var i=typeof globalThis<"u"?globalThis:window;if(!i.__scb_ce_guard_installed__){i.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,r,l){try{customElements.get(e)||t(e,r,l)}catch(g){var h=String(g||"");if(h.indexOf("already been used")===-1&&h.indexOf("NotSupportedError")===-1)throw g}}}}catch{}})();var n,p,s=(n=new WeakSet,p=class extends y{constructor(...t){super(...t),S(this,n),this.singleOpen=!1,this.showCloseAll=!1,this.openAllLabel="Öppna alla",this.closeAllLabel="Stäng alla",this.controlsLabel="Accordionkontroller",this.size="large",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0}connectedCallback(){super.connectedCallback(),this.addEventListener("open-changed",c(n,this,f))}disconnectedCallback(){this.removeEventListener("open-changed",c(n,this,f)),super.disconnectedCallback()}render(){const t=!this.singleOpen&&this.showCloseAll,e=t?c(n,this,k).call(this):!1;return b`
|
|
2
2
|
<div class="scb-accordion" ?single-open=${this.singleOpen}>
|
|
3
|
-
${t?
|
|
4
|
-
<div class="scb-accordion-actions" role="toolbar" aria-label
|
|
3
|
+
${t?b`
|
|
4
|
+
<div class="scb-accordion-actions" role="toolbar" aria-label=${this.controlsLabel}>
|
|
5
5
|
<scb-button
|
|
6
6
|
variant="text"
|
|
7
|
-
label=${
|
|
8
|
-
@click=${n
|
|
7
|
+
label=${e?this.closeAllLabel:this.openAllLabel}
|
|
8
|
+
@click=${c(n,this,A)}
|
|
9
9
|
></scb-button>
|
|
10
10
|
</div>
|
|
11
11
|
`:m}
|
|
12
12
|
|
|
13
|
-
<slot @slotchange=${n
|
|
13
|
+
<slot @slotchange=${c(n,this,O)}></slot>
|
|
14
14
|
</div>
|
|
15
|
-
`}firstUpdated(){n
|
|
15
|
+
`}firstUpdated(){c(n,this,u).call(this),c(n,this,d).call(this)}updated(t){(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&c(n,this,u).call(this),t.has("singleOpen")&&c(n,this,d).call(this)}_getDirectItems(){return Array.from(this.children).filter(t=>t.tagName==="SCB-ACCORDION-ITEM")}onItemToggled(t,e){if(this.singleOpen&&e){this._getDirectItems().forEach(r=>{r!==t&&r.setOpen(!1)});return}!this.singleOpen&&this.showCloseAll&&this.requestUpdate()}mapSpacingToken(t){if(!t)return;const e=String(t).trim();if(e)return/^\d+$/.test(e)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(e,10)))})`:e}},p.styles=_`:host{display:block;margin-block-start:var(--scb-accordion-spacing-block-start, 0);margin-block-end:var(--scb-accordion-spacing-block-end, 0);margin-inline-start:var(--scb-accordion-spacing-inline-start, 0);margin-inline-end:var(--scb-accordion-spacing-inline-end, 0);--scb-accordion-actions-padding-inline:var(--spacing-5, 16px)}:host,:host([size='medium']),:host([size='small']){--scb-accordion-actions-padding-block:var(--spacing-2, 4px)}:host([size='medium']){--scb-accordion-actions-padding-inline:var(--spacing-5, 16px)}:host([size='small']){--scb-accordion-actions-padding-inline:var(--spacing-4, 12px)}.scb-accordion-actions{display:flex;justify-content:flex-end;padding-inline:var(--scb-accordion-actions-padding-inline);padding-block-start:var(--scb-accordion-actions-padding-block);padding-block-end:var(--scb-accordion-actions-padding-block)}`,p);function k(){const i=this._getDirectItems();return i.length>0&&i.every(t=>t.open)}function A(){if(this.singleOpen||!this.showCloseAll)return;const i=this._getDirectItems(),t=i.length>0&&i.every(e=>e.open);i.forEach(e=>e.setOpen(!t))}function f(){this.singleOpen||this.showCloseAll&&this.requestUpdate()}function O(){if(this.singleOpen){c(n,this,d).call(this);return}this.showCloseAll&&this.requestUpdate()}function d(){if(!this.singleOpen)return;const i=this._getDirectItems().filter(t=>t.open);i.length<=1||i.slice(1).forEach(t=>t.setOpen(!1))}function u(){const i=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??i,e=this.mapSpacingToken(this.spacingBottom)??i,r=this.mapSpacingToken(this.spacingLeft),l=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-accordion-spacing-block-start",t):this.style.removeProperty("--scb-accordion-spacing-block-start"),e?this.style.setProperty("--scb-accordion-spacing-block-end",e):this.style.removeProperty("--scb-accordion-spacing-block-end"),r?this.style.setProperty("--scb-accordion-spacing-inline-start",r):this.style.removeProperty("--scb-accordion-spacing-inline-start"),l?this.style.setProperty("--scb-accordion-spacing-inline-end",l):this.style.removeProperty("--scb-accordion-spacing-inline-end")}o([a({type:Boolean,attribute:"single-open",reflect:!0})],s.prototype,"singleOpen",void 0);o([a({type:Boolean,attribute:"show-close-all",reflect:!0})],s.prototype,"showCloseAll",void 0);o([a({type:String,attribute:"open-all-label"})],s.prototype,"openAllLabel",void 0);o([a({type:String,attribute:"close-all-label"})],s.prototype,"closeAllLabel",void 0);o([a({type:String,attribute:"controls-label"})],s.prototype,"controlsLabel",void 0);o([a({type:String,reflect:!0})],s.prototype,"size",void 0);o([a({type:String,reflect:!0})],s.prototype,"spacing",void 0);o([a({type:String,attribute:"spacing-top",reflect:!0})],s.prototype,"spacingTop",void 0);o([a({type:String,attribute:"spacing-bottom",reflect:!0})],s.prototype,"spacingBottom",void 0);o([a({type:String,attribute:"spacing-left",reflect:!0})],s.prototype,"spacingLeft",void 0);o([a({type:String,attribute:"spacing-right",reflect:!0})],s.prototype,"spacingRight",void 0);s=o([v("scb-accordion")],s);
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import{h as z,m as T,p as o,v as d,y as
|
|
2
|
-
<header class="small-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label
|
|
1
|
+
import{h as z,m as T,p as o,v as d,y as w}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as l}from"../../vendor/decorate.js";import{n as k,t as i}from"../../vendor/assertClassBrand.js";import"../scb-button/scb-button.js";import"../scb-icon-button/scb-icon-button.js";import"../scb-search/scb-search.js";import"../scb-avatar/scb-avatar.js";(function(){try{var a=typeof globalThis<"u"?globalThis:window;if(!a.__scb_ce_guard_installed__){a.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(s,r,c){try{customElements.get(s)||t(s,r,c)}catch(h){var b=String(h||"");if(b.indexOf("already been used")===-1&&b.indexOf("NotSupportedError")===-1)throw h}}}}catch{}})();var e,f,n=(e=new WeakSet,f=class extends z{constructor(...t){super(...t),k(this,e),this.title="",this.appBarTitle="",this.type="default",this.position="default",this.ariaLabel="",this.defaultAriaLabel="Appfält",this.searchAriaLabel="Sökfält",this.searchSupportingText="",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this.__titleResizeRaf=0}connectedCallback(){super.connectedCallback(),typeof ResizeObserver<"u"&&(this.__titleResizeObserver=new ResizeObserver(()=>i(e,this,m).call(this)))}disconnectedCallback(){this.__titleResizeRaf&&(cancelAnimationFrame(this.__titleResizeRaf),this.__titleResizeRaf=0),this.__titleResizeObserver?.disconnect(),this.__titleResizeObserver=void 0,super.disconnectedCallback()}handleActionsSlotChange(t){t.target.assignedElements({flatten:!0}).forEach(s=>{if(s.tagName==="SCB-BUTTON"){const r=s;(!r.hasAttribute("size")||r.getAttribute("size")==="medium")&&r.setAttribute("size","small")}}),i(e,this,m).call(this)}handleAvatarSlotChange(t){t.target.assignedElements({flatten:!0}).forEach(s=>{s.tagName==="SCB-AVATAR"&&s.setAttribute("size","small")}),i(e,this,m).call(this)}firstUpdated(){i(e,this,S).call(this),i(e,this,v).call(this)}updated(t){(t.has("title")||t.has("appBarTitle"))&&(this.dispatchEvent(new CustomEvent("title-changed",{detail:{title:p.call(i(e,this))},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("app-bar-title-changed",{detail:{appBarTitle:p.call(i(e,this))},bubbles:!0,composed:!0}))),t.has("position")&&this.dispatchEvent(new CustomEvent("position-changed",{detail:{position:this.position},bubbles:!0,composed:!0})),t.has("type")&&(this.dispatchEvent(new CustomEvent("type-changed",{detail:{type:this.type},bubbles:!0,composed:!0})),i(e,this,v).call(this)),t.has("searchSupportingText")&&this.dispatchEvent(new CustomEvent("search-supporting-text-changed",{detail:{searchSupportingText:this.searchSupportingText},bubbles:!0,composed:!0})),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&i(e,this,S).call(this)}mapSpacingToken(t){if(!t)return;const s=String(t).trim();if(s)return/^\d+$/.test(s)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(s,10)))})`:s}render(){switch(this.type){case"small-flexible":return d`
|
|
2
|
+
<header class="small-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label=${g.call(i(e,this))}>
|
|
3
3
|
<div class="leading">
|
|
4
4
|
<slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
5
5
|
</div>
|
|
6
|
-
<h1 class="headline">${
|
|
6
|
+
<h1 class="headline">${p.call(i(e,this))}</h1>
|
|
7
7
|
<div class="trailing">
|
|
8
8
|
<slot name="trailing" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
9
9
|
<slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
|
|
10
10
|
</div>
|
|
11
11
|
</header>
|
|
12
12
|
`;case"medium-flexible":return d`
|
|
13
|
-
<header class="medium-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label
|
|
13
|
+
<header class="medium-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label=${g.call(i(e,this))}>
|
|
14
14
|
<div class="leading">
|
|
15
15
|
<slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
16
16
|
</div>
|
|
17
|
-
<h1 class="headline">${
|
|
17
|
+
<h1 class="headline">${p.call(i(e,this))}</h1>
|
|
18
18
|
<div class="trailing">
|
|
19
19
|
<slot name="trailing" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
20
20
|
<slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
|
|
21
21
|
</div>
|
|
22
22
|
</header>
|
|
23
23
|
`;case"large-flexible":return d`
|
|
24
|
-
<header class="large-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label
|
|
24
|
+
<header class="large-flexible ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label=${g.call(i(e,this))}>
|
|
25
25
|
<div class="leading">
|
|
26
26
|
<slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
27
27
|
</div>
|
|
28
|
-
<h1 class="headline">${
|
|
28
|
+
<h1 class="headline">${p.call(i(e,this))}</h1>
|
|
29
29
|
<div class="trailing">
|
|
30
30
|
<slot name="trailing" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
31
31
|
<slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
|
|
32
32
|
</div>
|
|
33
33
|
</header>
|
|
34
34
|
`;case"search":return d`
|
|
35
|
-
<header class="search ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label
|
|
35
|
+
<header class="search ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label=${g.call(i(e,this))}>
|
|
36
36
|
<div class="leading">
|
|
37
37
|
<slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
38
38
|
</div>
|
|
@@ -45,14 +45,14 @@ import{h as z,m as T,p as o,v as d,y as $}from"../../vendor/vendor.js";import"..
|
|
|
45
45
|
</div>
|
|
46
46
|
</header>
|
|
47
47
|
`;default:return d`
|
|
48
|
-
<header class="default ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label
|
|
48
|
+
<header class="default ${this.position=="bottom"?"position-bottom":this.position=="top"?"position-top":""}" role="banner" aria-label=${g.call(i(e,this))}>
|
|
49
49
|
<div class="leading">
|
|
50
50
|
<slot name="leading" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
51
51
|
</div>
|
|
52
|
-
<h1 class="headline">${
|
|
52
|
+
<h1 class="headline">${p.call(i(e,this))}</h1>
|
|
53
53
|
<div class="trailing">
|
|
54
54
|
<slot name="trailing" @slotchange=${this.handleActionsSlotChange}></slot>
|
|
55
55
|
<slot name="avatar" @slotchange=${this.handleAvatarSlotChange}></slot>
|
|
56
56
|
</div>
|
|
57
57
|
</header>
|
|
58
|
-
`}}},
|
|
58
|
+
`}}},f.styles=[w`:host{display:block;font-family:var(--brand-font, Inter, Arial, sans-serif);position:relative;container-type:inline-size;container-name:app-bar-container;--app-search-height:64px;margin-block-start:var(--scb-app-bar-spacing-block-start, 0);margin-block-end:var(--scb-app-bar-spacing-block-end, 0);margin-inline-start:var(--scb-app-bar-spacing-inline-start, 0);margin-inline-end:var(--scb-app-bar-spacing-inline-end, 0)}header{background:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface);display:flex;align-items:center;padding:0 var(--spacing-5);position:relative;z-index:10;transition:height .3s;min-height:var(--app-search-height)}header.search{height:var(--app-search-height)}header.medium-flexible{min-height:96px}header.large-flexible{min-height:128px}header.position-top{position:fixed;top:0;left:0;right:0;z-index:100}header.position-bottom{position:fixed;bottom:0;left:0;right:0;z-index:100}header.default .trailing{margin-inline-start:auto}header.default .headline{position:absolute;inset-inline-start:50%;inset-block-start:50%;transform:translate(-50%,-50%);max-width:var(--scb-app-bar-title-max-width, 100%);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.headline{flex:1 1 auto;text-align:center;font-family:var(--md-sys-typescale-title-large-font, var(--brand-font, Inter, Arial, sans-serif));font-size:var(--md-sys-typescale-title-large-size);line-height:var(--md-sys-typescale-title-large-line-height, calc(var(--md-sys-typescale-title-large-size) * 1.3));font-weight:600;margin:0}header.small-flexible .headline{text-align:left;margin-left:var(--spacing-5)}header.medium-flexible .headline{font-family:var(--md-sys-typescale-headline-small-font, var(--brand-font, Inter, Arial, sans-serif));font-size:var(--md-sys-typescale-headline-small-size);line-height:var(--md-sys-typescale-headline-small-line-height, 30px);font-weight:700;letter-spacing:var(--md-sys-typescale-headline-small-tracking);text-align:left;margin:0 0 0 var(--spacing-3)}header.large-flexible .headline{font-family:var(--md-sys-typescale-headline-medium-font, var(--brand-font, Inter, Arial, sans-serif));font-size:var(--md-sys-typescale-headline-medium-size);font-weight:700;line-height:var(--md-sys-typescale-headline-medium-line-height);letter-spacing:var(--md-sys-typescale-headline-medium-tracking);text-align:left;margin:0 0 0 var(--spacing-3)}.search-container{flex:1 1 auto;display:flex;align-items:center;justify-content:center;padding:0 var(--spacing-3)}.leading,.trailing{display:flex;align-items:center;gap:var(--spacing-2)}`],f);function m(){this.type==="default"&&(this.__titleResizeRaf||(this.__titleResizeRaf=requestAnimationFrame(()=>{this.__titleResizeRaf=0,i(e,this,E).call(this)})))}function v(){this.__titleResizeObserver?.disconnect();const a=this.shadowRoot?.querySelector("header");if(a&&a.style.removeProperty("--scb-app-bar-title-max-width"),this.type!=="default"||!this.__titleResizeObserver)return;const t=this.shadowRoot?.querySelector("header.default");if(!t)return;const s=t.querySelector(".leading"),r=t.querySelector(".trailing");!s||!r||(this.__titleResizeObserver.observe(t),this.__titleResizeObserver.observe(s),this.__titleResizeObserver.observe(r),i(e,this,m).call(this))}function u(a){if(!a)return 0;const t=parseFloat(a);return Number.isFinite(t)?t:0}function y(a){const t=getComputedStyle(a);return i(e,this,u).call(this,t.columnGap||t.gap)}function E(){const a=this.shadowRoot?.querySelector("header.default");if(!a)return;const t=a.querySelector(".leading"),s=a.querySelector(".trailing");if(!t||!s)return;const r=a.getBoundingClientRect(),c=t.getBoundingClientRect(),b=s.getBoundingClientRect(),h=getComputedStyle(a),_=i(e,this,u).call(this,h.paddingInlineStart||h.paddingLeft),x=i(e,this,u).call(this,h.paddingInlineEnd||h.paddingRight),A=Math.max(0,r.width-_-x),R=Math.max(c.width,b.width),C=Math.max(i(e,this,y).call(this,t),i(e,this,y).call(this,s)),$=Math.max(0,A-R*2-C*2);a.style.setProperty("--scb-app-bar-title-max-width",`${$}px`)}function S(){const a=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??a,s=this.mapSpacingToken(this.spacingBottom)??a,r=this.mapSpacingToken(this.spacingLeft),c=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-app-bar-spacing-block-start",t):this.style.removeProperty("--scb-app-bar-spacing-block-start"),s?this.style.setProperty("--scb-app-bar-spacing-block-end",s):this.style.removeProperty("--scb-app-bar-spacing-block-end"),r?this.style.setProperty("--scb-app-bar-spacing-inline-start",r):this.style.removeProperty("--scb-app-bar-spacing-inline-start"),c?this.style.setProperty("--scb-app-bar-spacing-inline-end",c):this.style.removeProperty("--scb-app-bar-spacing-inline-end")}function p(){return this.appBarTitle||this.title}function g(){const a=this.ariaLabel.trim();return a||(this.type==="search"?this.searchAriaLabel:this.defaultAriaLabel)}l([o({type:String,reflect:!0})],n.prototype,"title",void 0);l([o({type:String,attribute:"app-bar-title",reflect:!0})],n.prototype,"appBarTitle",void 0);l([o({type:String,reflect:!0})],n.prototype,"type",void 0);l([o({type:String,reflect:!0})],n.prototype,"position",void 0);l([o({type:String,attribute:"aria-label",reflect:!0})],n.prototype,"ariaLabel",void 0);l([o({type:String,attribute:"default-aria-label"})],n.prototype,"defaultAriaLabel",void 0);l([o({type:String,attribute:"search-aria-label"})],n.prototype,"searchAriaLabel",void 0);l([o({type:String,attribute:"search-supporting-text",reflect:!0})],n.prototype,"searchSupportingText",void 0);l([o({type:String,reflect:!0})],n.prototype,"spacing",void 0);l([o({type:String,attribute:"spacing-top",reflect:!0})],n.prototype,"spacingTop",void 0);l([o({type:String,attribute:"spacing-bottom",reflect:!0})],n.prototype,"spacingBottom",void 0);l([o({type:String,attribute:"spacing-left",reflect:!0})],n.prototype,"spacingLeft",void 0);l([o({type:String,attribute:"spacing-right",reflect:!0})],n.prototype,"spacingRight",void 0);n=l([T("scb-app-bar")],n);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import{h as
|
|
1
|
+
import{g as p,h as v,m as f,p as o,v as y,y as m}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as s}from"../../vendor/decorate.js";(function(){try{var l=typeof globalThis<"u"?globalThis:window;if(!l.__scb_ce_guard_installed__){l.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(i,r,a){try{customElements.get(i)||t(i,r,a)}catch(d){var n=String(d||"");if(n.indexOf("already been used")===-1&&n.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var b,e=(b=class extends v{constructor(...t){super(...t),this._slotClickHandler=i=>{const r=this.shadowRoot?.querySelector("slot"),a=i.target;a&&a!==r&&a.dispatchEvent(new CustomEvent("hide-badge",{bubbles:!0,composed:!0}))},this.autoHide=!1,this.sizing="fit-content",this.position="relative",this.positionTop=0,this.positionRight=void 0,this.positionSide="right",this.positionLeft=void 0,this.value="",this.label="",this.hidden=!1,this.variant="dot",this._badgeVisible=!0,this._onHideBadge=()=>{this._badgeVisible=!1,this.requestUpdate()}}firstUpdated(){const t=this.shadowRoot?.querySelector("slot");this.autoHide&&t&&t.addEventListener("click",this._slotClickHandler)}updated(){const t=this.shadowRoot?.querySelector("slot");t&&(this.autoHide?t.addEventListener("click",this._slotClickHandler):t.removeEventListener("click",this._slotClickHandler))}connectedCallback(){super.connectedCallback(),this.addEventListener("hide-badge",this._onHideBadge)}disconnectedCallback(){this.removeEventListener("hide-badge",this._onHideBadge),super.disconnectedCallback()}mapSpacingToken(t){if(t==null)return;if(typeof t=="number"&&!Number.isNaN(t))return`${t}px`;const i=String(t).trim();if(i)return/^\d+$/.test(i)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(i,10)))})`:i}render(){const t=this.mapSpacingToken(this.positionRight)??"var(--spacing-4)",i=this.mapSpacingToken(this.positionLeft)??"var(--spacing-4)",r=this.mapSpacingToken(this.positionTop)??"0px";this.style.setProperty("--scb-badge-absolute-top",r),this.style.setProperty("--scb-badge-absolute-right",t),this.style.setProperty("--scb-badge-absolute-left",i);let a=this.value;!isNaN(Number(this.value))&&this.value.length>4&&(a=this.value.slice(0,4)+"+");const n=this.variant==="value"&&!this.value?"badge-value-empty":"",d=this._badgeVisible?"":"badge--hide",g=this.label.trim(),u=this.variant==="value"&&a.trim(),h=g||(u?`Märke: ${a}`:""),c=!h||this.hidden||!this._badgeVisible;return y`
|
|
2
2
|
<div class="badge-content">
|
|
3
3
|
<slot></slot>
|
|
4
4
|
<div
|
|
5
5
|
class="badge ${n} ${d}"
|
|
6
|
-
role
|
|
7
|
-
aria-label
|
|
8
|
-
aria-hidden
|
|
6
|
+
role=${c?p:"status"}
|
|
7
|
+
aria-label=${c?p:h}
|
|
8
|
+
aria-hidden=${c?"true":p}>${this.variant==="dot"?"":a}</div>
|
|
9
9
|
</div>
|
|
10
|
-
`}},
|
|
10
|
+
`}},b.styles=m`:host{display:block;position:relative;overflow:visible;width:fit-content;--scb-badge-font-size:var(--scale-01);--scb-badge-line-height:100%;--scb-badge-relative-gap:0px;--scb-badge-background-color:var(--md-sys-color-error);--scb-badge-color:var(--md-sys-color-on-error);--scb-badge-width:8px;--scb-badge-height:8px}:host([sizing="fit-parent"]){width:100%}:host([variant="value"]) .badge{width:fit-content;padding:6px}:host([variant="value"]) .badge.badge-value-empty{width:var(--scb-badge-width);padding:var(--spacing-2)}:host([hidden]) .badge{display:none}.badge{transition:transform .25s cubic-bezier(.4,2,.6,1),opacity .18s linear;will-change:transform,opacity}.badge--hide{opacity:0;transform:scale(1.3);pointer-events:none}.badge{background-color:var(--scb-badge-background-color);color:var(--scb-badge-color);font-size:var(--scb-badge-font-size);font-weight:var(--weight-semibold);line-height:var(--scb-badge-line-height);letter-spacing:var(--md-sys-typescale-label-medium-tracking);border-radius:var(--md-sys-shape-corner-full);display:flex;align-items:center;justify-content:center;width:var(--scb-badge-width);height:var(--scb-badge-height);position:absolute;top:var(--scb-badge-absolute-top);left:calc(100% - var(--scb-badge-absolute-right));white-space:nowrap}:host([position-side="left"]) .badge{left:var(--scb-badge-absolute-left)}:host([position="relative"]) .badge{position:relative;top:unset;left:unset}:host([position="relative"]) .badge-content{display:flex;align-items:center;justify-content:center;gap:var(--scb-badge-relative-gap)}`,b);s([o({type:Boolean,reflect:!0,attribute:"auto-hide"})],e.prototype,"autoHide",void 0);s([o({type:String,reflect:!0})],e.prototype,"sizing",void 0);s([o({type:String,reflect:!0})],e.prototype,"position",void 0);s([o({type:String,attribute:"position-top"})],e.prototype,"positionTop",void 0);s([o({type:String,attribute:"position-right"})],e.prototype,"positionRight",void 0);s([o({type:String,reflect:!0,attribute:"position-side"})],e.prototype,"positionSide",void 0);s([o({type:String,attribute:"position-left"})],e.prototype,"positionLeft",void 0);s([o({type:String,reflect:!0})],e.prototype,"value",void 0);s([o({type:String,reflect:!0})],e.prototype,"label",void 0);s([o({type:Boolean,reflect:!0})],e.prototype,"hidden",void 0);s([o({type:String,reflect:!0})],e.prototype,"variant",void 0);e=s([f("scb-badge")],e);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{h
|
|
1
|
+
import{h,m as d,p as a,v as n,y as b}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as r}from"../../vendor/decorate.js";import"../scb-link/scb-link.js";(function(){try{var i=typeof globalThis<"u"?globalThis:window;if(!i.__scb_ce_guard_installed__){i.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(s,u,l){try{customElements.get(s)||t(s,u,l)}catch(c){var o=String(c||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw c}}}}catch{}})();var e=class extends h{constructor(...t){super(...t),this.label="",this.isCurrent=!1,this.href=""}connectedCallback(){if(super.connectedCallback(),this.hasAttribute("current")&&!this.hasAttribute("is-current")&&(this.isCurrent=!0),!this.href){const t=this.getAttribute("href");t&&(this.href=t)}}static get styles(){return b`.breadcrumb-separator{margin:var(--spacing-0) var(--spacing-3);color:var(--md-sys-color-on-surface)}.breadcrumb-current{color:var(--md-sys-color-on-surface);font-family:var(--brand-font, var(--brand, "Inter"), sans-serif)}.breadcrumb-current ::slotted(*){display:inline!important;margin:0!important;color:inherit!important;font:inherit!important;letter-spacing:inherit!important;line-height:inherit!important}`}getLabelContent(){return this.label||n`<slot></slot>`}updated(t){t.has("isCurrent")&&(this.dispatchEvent(new CustomEvent("current-changed",{detail:{isCurrent:this.isCurrent},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("currentchanged",{detail:{isCurrent:this.isCurrent,value:this.isCurrent},bubbles:!0,composed:!0})))}render(){const t=this.getLabelContent();return!0===this.isCurrent?n`<span class="breadcrumb-current">${t}</span>`:n`
|
|
2
2
|
<scb-link href="${this.href||this.getAttribute("href")||""}">${t}</scb-link>
|
|
3
3
|
<span class="breadcrumb-separator">/</span>
|
|
4
|
-
`}};r([a({type:String})],e.prototype,"label",void 0);r([a({type:Boolean,attribute:"is-current",reflect:!0})],e.prototype,"isCurrent",void 0);r([a({type:String,attribute:"item-href"})],e.prototype,"href",void 0);e=r([
|
|
4
|
+
`}};r([a({type:String})],e.prototype,"label",void 0);r([a({type:Boolean,attribute:"is-current",reflect:!0})],e.prototype,"isCurrent",void 0);r([a({type:String,attribute:"item-href"})],e.prototype,"href",void 0);e=r([d("scb-breadcrumb-item")],e);
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["../../vendor/md-focus-ring.js","../../vendor/rolldown-runtime.js","../../vendor/vendor.js","../../vendor/attachable-controller.js","../../vendor/vendor-lit.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{h as
|
|
2
|
+
import{h as w,m as k,p,v as d,y as _}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as x}from"../../vendor/preload-helper.js";import{t as o}from"../../vendor/decorate.js";import{n as A,t as g}from"../../vendor/assertClassBrand.js";import"../scb-link/scb-link.js";import"./scb-breadcrumb-item.js";(function(){try{var c=typeof globalThis<"u"?globalThis:window;if(!c.__scb_ce_guard_installed__){c.__scb_ce_guard_installed__=!0;var e=customElements.define.bind(customElements);customElements.define=function(t,s,b){try{customElements.get(t)||e(t,s,b)}catch(r){var l=String(r||"");if(l.indexOf("already been used")===-1&&l.indexOf("NotSupportedError")===-1)throw r}}}}catch{}})();var m,y,S=()=>{customElements.get("md-focus-ring")||(y??(y=x(()=>import("../../vendor/md-focus-ring.js").then(c=>c.t).then(()=>{}),__vite__mapDeps([0,1,2,3,4]),import.meta.url)))},n=(m=new WeakSet,class extends w{constructor(...e){super(...e),A(this,m),this.showAll=!1,this.currentIndex=void 0,this.showAllLabel="Visa alla",this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0}static get styles(){return _`@keyframes fadeInBreadcrumb{to{opacity:1;transform:translateY(0)}}:host{display:block;box-sizing:border-box;min-block-size:var(--scb-breadcrumb-min-block-size,
|
|
3
3
|
calc(
|
|
4
4
|
var(--md-sys-typescale-body-medium-line-height, 24px) +
|
|
5
5
|
var(--spacing-3, 8px)
|
|
6
6
|
)
|
|
7
7
|
);margin-block-start:var(--scb-breadcrumb-spacing-block-start, 0);margin-block-end:var(--scb-breadcrumb-spacing-block-end, 0);margin-inline-start:var(--scb-breadcrumb-spacing-inline-start, 0);margin-inline-end:var(--scb-breadcrumb-spacing-inline-end, 0)}.scb-breadcrumb{display:flex;align-items:center;flex-wrap:wrap}.breadcrumb-item{display:inline-flex;align-items:center}.breadcrumb-separator{margin:var(--spacing-0) var(--spacing-3);color:var(--md-sys-color-on-surface)}.breadcrumb-current{color:var(--md-sys-color-on-surface);font-family:var(--brand-font, var(--brand, "Inter"), sans-serif)}.ellipsis{cursor:pointer;display:inline-flex;color:var(--md-sys-color-primary);position:relative}.ellipsis:focus{outline:0}md-focus-ring{position:absolute;inset:0;pointer-events:none;display:none;border-radius:var(--scb-card-focus-ring-radius,
|
|
8
8
|
var(--md-sys-shape-corner-large)
|
|
9
|
-
)}.ellipsis:focus md-focus-ring{display:block}.breadcrumb-animate{opacity:0;transform:translateY(10px);animation:fadeInBreadcrumb .4s cubic-bezier(.4,0,.2,1) forwards}.breadcrumb-icon{display:inline-block;inline-size:1em;overflow:hidden;font-family:"Material Symbols Outlined";font-size:var(--icon-size-medium, 24px);line-height:1;text-align:center;white-space:nowrap;text-transform:none;word-wrap:normal;direction:ltr;font-feature-settings:"liga"1;font-variation-settings:"FILL"0,"wght"400,"GRAD"0,"opsz"24;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}`}connectedCallback(){super.connectedCallback(),this._observer=new MutationObserver(()=>{this.requestUpdate()}),this._observer.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["label","item-href","href","is-current","current"]})}disconnectedCallback(){super.disconnectedCallback(),this._observer?.disconnect()}firstUpdated(){g(m,this,v).call(this)}updated(e){e.has("showAll")&&(this.dispatchEvent(new CustomEvent("show-all-changed",{detail:{showAll:this.showAll},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("showallchanged",{detail:{showAll:this.showAll,value:this.showAll},bubbles:!0,composed:!0}))),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&g(m,this,v).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}_onEllipsisClick(){this.showAll?this.showAll=!1:(this.showAll=!0,this.updateComplete.then(()=>{const e=this.shadowRoot?.querySelectorAll(".scb-breadcrumb.expanded .breadcrumb-item");e&&(e.forEach((t,s)=>{t.classList.add("breadcrumb-animate"),t.style.animationDelay=`${s*60}ms`}),setTimeout(()=>{e.forEach(t=>{t.classList.remove("breadcrumb-animate"),t.style.animationDelay=""})},600))}))}getItemLabel(e){const t=e.label;if(typeof t=="string"&&t.trim())return t;const s=e.getAttribute("label");return s?.trim()?s:e.textContent?.trim()??""}getItemHref(e){const t=e;return typeof t.itemHref=="string"?t.itemHref:typeof t.href=="string"?t.href:e.getAttribute("item-href")??e.getAttribute("href")??""}render(){const e=Array.from(this.children).filter(r=>r.tagName.toLowerCase()==="scb-breadcrumb-item"),t=Math.max(0,e.length-1);let s=t;if(e.length>0){const r=typeof this.currentIndex=="number"&&!Number.isNaN(this.currentIndex)?Math.trunc(this.currentIndex):void 0;if(typeof r=="number"&&r>=0&&r<e.length)s=r;else for(let i=e.length-1;i>=0;i--){const a=e[i];if(typeof a.isCurrent=="boolean"?a.isCurrent:e[i].hasAttribute("is-current")||e[i].hasAttribute("current")){s=i;break}}e.forEach((i,a)=>{i.toggleAttribute("is-current",a===s)})}const
|
|
10
|
-
<div class="scb-breadcrumb ${
|
|
11
|
-
${
|
|
9
|
+
)}.ellipsis:focus md-focus-ring{display:block}.breadcrumb-animate{opacity:0;transform:translateY(10px);animation:fadeInBreadcrumb .4s cubic-bezier(.4,0,.2,1) forwards}.breadcrumb-icon{display:inline-block;inline-size:1em;overflow:hidden;font-family:"Material Symbols Outlined";font-size:var(--icon-size-medium, 24px);line-height:1;text-align:center;white-space:nowrap;text-transform:none;word-wrap:normal;direction:ltr;font-feature-settings:"liga"1;font-variation-settings:"FILL"0,"wght"400,"GRAD"0,"opsz"24;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}`}connectedCallback(){super.connectedCallback(),this._observer=new MutationObserver(()=>{this.requestUpdate()}),this._observer.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["label","item-href","href","is-current","current"]})}disconnectedCallback(){super.disconnectedCallback(),this._observer?.disconnect()}firstUpdated(){g(m,this,v).call(this)}updated(e){e.has("showAll")&&(this.dispatchEvent(new CustomEvent("show-all-changed",{detail:{showAll:this.showAll},bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("showallchanged",{detail:{showAll:this.showAll,value:this.showAll},bubbles:!0,composed:!0}))),(e.has("spacing")||e.has("spacingTop")||e.has("spacingBottom")||e.has("spacingLeft")||e.has("spacingRight"))&&g(m,this,v).call(this)}mapSpacingToken(e){if(!e)return;const t=String(e).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}_onEllipsisClick(){this.showAll?this.showAll=!1:(this.showAll=!0,this.updateComplete.then(()=>{const e=this.shadowRoot?.querySelectorAll(".scb-breadcrumb.expanded .breadcrumb-item");e&&(e.forEach((t,s)=>{t.classList.add("breadcrumb-animate"),t.style.animationDelay=`${s*60}ms`}),setTimeout(()=>{e.forEach(t=>{t.classList.remove("breadcrumb-animate"),t.style.animationDelay=""})},600))}))}getItemLabel(e){const t=e.label;if(typeof t=="string"&&t.trim())return t;const s=e.getAttribute("label");return s?.trim()?s:e.textContent?.trim()??""}getItemHref(e){const t=e;return typeof t.itemHref=="string"?t.itemHref:typeof t.href=="string"?t.href:e.getAttribute("item-href")??e.getAttribute("href")??""}render(){const e=Array.from(this.children).filter(r=>r.tagName.toLowerCase()==="scb-breadcrumb-item"),t=Math.max(0,e.length-1);let s=t;if(e.length>0){const r=typeof this.currentIndex=="number"&&!Number.isNaN(this.currentIndex)?Math.trunc(this.currentIndex):void 0;if(typeof r=="number"&&r>=0&&r<e.length)s=r;else for(let i=e.length-1;i>=0;i--){const a=e[i];if(typeof a.isCurrent=="boolean"?a.isCurrent:e[i].hasAttribute("is-current")||e[i].hasAttribute("current")){s=i;break}}e.forEach((i,a)=>{i.toggleAttribute("is-current",a===s)})}const b=e.length>6&&!this.showAll&&s===t,l=[];if(b){const r=e.slice(0,3),i=e.slice(-3);r.forEach((a,u)=>{l.push({type:"item",item:a,isCurrent:u===s})}),l.push({type:"ellipsis"}),i.forEach((a,u)=>{const h=e.length-3+u;l.push({type:"item",item:a,isCurrent:h===s})})}else e.forEach((r,i)=>{l.push({type:"item",item:r,isCurrent:i===s})});return d`
|
|
10
|
+
<div class="scb-breadcrumb ${b?"collapsed":"expanded"}">
|
|
11
|
+
${l.map((r,i)=>{const a=i===0?d``:d`<span class="breadcrumb-separator">/</span>`;if(r.type==="ellipsis")return d`
|
|
12
12
|
${a}
|
|
13
13
|
<span
|
|
14
14
|
class="breadcrumb-item ellipsis"
|
|
15
|
-
aria-label
|
|
15
|
+
aria-label=${this.showAllLabel}
|
|
16
16
|
role="button"
|
|
17
17
|
tabindex="0"
|
|
18
|
-
@focusin=${
|
|
18
|
+
@focusin=${S}
|
|
19
19
|
@click=${this._onEllipsisClick}
|
|
20
20
|
@keydown=${f=>{(f.key==="Enter"||f.key===" ")&&this._onEllipsisClick()}}
|
|
21
21
|
>
|
|
@@ -32,4 +32,4 @@ import{h as k,m as _,p as b,v as d,y as w}from"../../vendor/vendor.js";import"..
|
|
|
32
32
|
</span>
|
|
33
33
|
`})}
|
|
34
34
|
</div>
|
|
35
|
-
`}});function v(){const
|
|
35
|
+
`}});function v(){const c=this.mapSpacingToken(this.spacing),e=this.mapSpacingToken(this.spacingTop)??c,t=this.mapSpacingToken(this.spacingBottom)??c,s=this.mapSpacingToken(this.spacingLeft),b=this.mapSpacingToken(this.spacingRight);e?this.style.setProperty("--scb-breadcrumb-spacing-block-start",e):this.style.removeProperty("--scb-breadcrumb-spacing-block-start"),t?this.style.setProperty("--scb-breadcrumb-spacing-block-end",t):this.style.removeProperty("--scb-breadcrumb-spacing-block-end"),s?this.style.setProperty("--scb-breadcrumb-spacing-inline-start",s):this.style.removeProperty("--scb-breadcrumb-spacing-inline-start"),b?this.style.setProperty("--scb-breadcrumb-spacing-inline-end",b):this.style.removeProperty("--scb-breadcrumb-spacing-inline-end")}o([p({type:Boolean,attribute:"show-all",reflect:!0})],n.prototype,"showAll",void 0);o([p({type:Number,attribute:"current-index",reflect:!0})],n.prototype,"currentIndex",void 0);o([p({type:String,attribute:"show-all-label"})],n.prototype,"showAllLabel",void 0);o([p({type:String,reflect:!0})],n.prototype,"spacing",void 0);o([p({type:String,attribute:"spacing-top",reflect:!0})],n.prototype,"spacingTop",void 0);o([p({type:String,attribute:"spacing-bottom",reflect:!0})],n.prototype,"spacingBottom",void 0);o([p({type:String,attribute:"spacing-left",reflect:!0})],n.prototype,"spacingLeft",void 0);o([p({type:String,attribute:"spacing-right",reflect:!0})],n.prototype,"spacingRight",void 0);n=o([k("scb-breadcrumb")],n);
|