scb-wc 0.1.3 → 0.1.4
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 +194 -164
- package/all.js +91 -5
- package/blazor/CustomEvents.cs +83 -0
- package/blazor/ScbBlazorInteropBase.cs +4460 -1674
- package/blazor/scb-blazor-bridge.js +6827 -2805
- package/blazor/wrappers/ScbAccordion.razor +50 -0
- package/blazor/wrappers/ScbAppBar.razor +95 -0
- package/blazor/wrappers/ScbBreadcrumb.razor +59 -0
- package/blazor/wrappers/ScbCalendar.razor +100 -0
- package/blazor/wrappers/ScbCalendarCard.razor +189 -0
- package/blazor/wrappers/ScbCheckbox.razor +92 -0
- package/blazor/wrappers/ScbCollapse.razor +76 -0
- package/blazor/wrappers/ScbCookiesConsent.razor +106 -0
- package/blazor/wrappers/ScbDatepicker.razor +77 -0
- package/blazor/wrappers/ScbDialog.razor +72 -0
- package/blazor/wrappers/ScbDrawer.razor +64 -0
- package/blazor/wrappers/ScbDropZone.razor +168 -0
- package/blazor/wrappers/ScbDropdown.razor +76 -0
- package/blazor/wrappers/ScbHorizontalScroller.razor +137 -0
- package/blazor/wrappers/ScbList.razor +77 -0
- package/blazor/wrappers/ScbMenu.razor +71 -0
- package/blazor/wrappers/ScbNav.razor +92 -0
- package/blazor/wrappers/ScbNotificationCard.razor +122 -0
- package/blazor/wrappers/ScbOptionsMenu.razor +88 -0
- package/blazor/wrappers/ScbPagination.razor +80 -0
- package/blazor/wrappers/ScbRadioGroup.razor +94 -0
- package/blazor/wrappers/ScbSearch.razor +83 -0
- package/blazor/wrappers/ScbSegmentedButton.razor +85 -0
- package/blazor/wrappers/ScbSelect.razor +79 -0
- package/blazor/wrappers/ScbSlider.razor +96 -0
- package/blazor/wrappers/ScbSnackbar.razor +93 -0
- package/blazor/wrappers/ScbSwitch.razor +92 -0
- package/blazor/wrappers/ScbTable.razor +67 -0
- package/blazor/wrappers/ScbTableAdvanced.razor +78 -0
- package/blazor/wrappers/ScbTabs.razor +55 -0
- package/blazor/wrappers/ScbTextfield.razor +104 -0
- package/blazor/wrappers/ScbTooltip.razor +88 -0
- package/blazor/wrappers/ScbViz.razor +142 -0
- package/demo-data-preview.svg +12 -0
- package/dummy.png +0 -0
- package/fonts/inter/files/inter-latin-wght-italic.woff2 +0 -0
- package/fonts/inter/files/inter-latin-wght-normal.woff2 +0 -0
- package/fonts/material-symbols-outlined/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
- package/index.js +91 -1
- package/mvc/components/all.js +90 -1
- package/mvc/components/scb-accordion/scb-accordion-item.js +211 -0
- package/mvc/components/scb-accordion/scb-accordion.js +44 -0
- package/mvc/components/scb-app-bar/scb-app-bar.js +166 -0
- package/mvc/components/scb-avatar/scb-avatar.js +111 -0
- package/mvc/components/scb-badge/scb-badge.js +80 -0
- package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +14 -0
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +96 -0
- package/mvc/components/scb-button/scb-button.js +268 -0
- package/mvc/components/scb-calendar/scb-calendar-event.js +6 -0
- package/mvc/components/scb-calendar/scb-calendar.js +168 -0
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +346 -0
- package/mvc/components/scb-card/scb-card.js +761 -0
- package/mvc/components/scb-checkbox/scb-checkbox-group.js +33 -0
- package/mvc/components/scb-checkbox/scb-checkbox.js +140 -0
- package/mvc/components/scb-chevron/scb-chevron.js +121 -0
- package/mvc/components/scb-chip/scb-chip.js +66 -0
- package/mvc/components/scb-collapse/scb-collapse.js +89 -0
- package/mvc/components/scb-cookies-consent/scb-cookies-consent.js +78 -0
- package/mvc/components/scb-datepicker/scb-datepicker.js +296 -0
- package/mvc/components/scb-dialog/scb-dialog.js +265 -0
- package/mvc/components/scb-divider/scb-divider.js +69 -0
- package/mvc/components/scb-drawer/scb-drawer.js +128 -0
- package/mvc/components/scb-drop-zone/scb-drop-zone.js +555 -0
- package/mvc/components/scb-dropdown/scb-dropdown.js +306 -0
- package/mvc/components/scb-fab/scb-fab.js +108 -0
- package/mvc/components/scb-fact-card/scb-fact-card-content.js +46 -0
- package/mvc/components/scb-fact-card/scb-fact-card.js +226 -0
- package/mvc/components/scb-footer/scb-footer-section.js +3 -0
- package/mvc/components/scb-footer/scb-footer.js +210 -0
- package/mvc/components/scb-gallery-grid/scb-gallery-grid.js +131 -0
- package/mvc/components/scb-grid/scb-grid-item.js +11 -0
- package/mvc/components/scb-grid/scb-grid.js +98 -0
- package/mvc/components/scb-grid/scb-stack.js +33 -0
- package/mvc/components/scb-header/scb-header-menu-group.js +1 -0
- package/mvc/components/scb-header/scb-header-menu-item.js +5 -0
- package/mvc/components/scb-header/scb-header-tab.js +5 -0
- package/mvc/components/scb-header/scb-header-utility.js +1 -0
- package/mvc/components/scb-header/scb-header.js +681 -0
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +196 -0
- package/mvc/components/scb-icon-button/scb-icon-button.js +171 -0
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +212 -0
- package/mvc/components/scb-link/scb-link.js +61 -0
- package/mvc/components/scb-list/scb-list-item.js +153 -0
- package/mvc/components/scb-list/scb-list.js +26 -0
- package/mvc/components/scb-menu/scb-menu-item.js +205 -0
- package/mvc/components/scb-menu/scb-menu-section.js +42 -0
- package/mvc/components/scb-menu/scb-menu.js +81 -0
- package/mvc/components/scb-menu/scb-sub-menu.js +10 -0
- package/mvc/components/scb-nav/scb-nav-item.js +28 -0
- package/mvc/components/scb-nav/scb-nav.js +104 -0
- package/mvc/components/scb-notification-card/scb-notification-card.js +358 -0
- package/mvc/components/scb-options-menu/scb-options-menu-item.js +66 -0
- package/mvc/components/scb-options-menu/scb-options-menu.js +88 -0
- package/mvc/components/scb-options-menu/scb-options-sub-menu.js +34 -0
- package/mvc/components/scb-overlay/scb-overlay.js +49 -0
- package/mvc/components/scb-pagination/scb-pagination.js +312 -0
- package/mvc/components/scb-progress-indicator/scb-progress-indicator.js +87 -0
- package/mvc/components/scb-progress-stepper/scb-progress-step.js +147 -0
- package/mvc/components/scb-progress-stepper/scb-progress-stepper.js +62 -0
- package/mvc/components/scb-radio-button/scb-radio-button.js +132 -0
- package/mvc/components/scb-radio-button/scb-radio-group.js +43 -0
- package/mvc/components/scb-scrollspy/scb-scrollspy.js +79 -0
- package/mvc/components/scb-search/scb-search.js +292 -0
- package/mvc/components/scb-segmented-button/scb-segmented-button.js +32 -0
- package/mvc/components/scb-segmented-button/scb-segmented-item.js +74 -0
- package/mvc/components/scb-select/scb-select-option.js +61 -0
- package/mvc/components/scb-select/scb-select.js +284 -0
- package/mvc/components/scb-skeleton/scb-skeleton.js +38 -0
- package/mvc/components/scb-slider/scb-slider.js +27 -0
- package/mvc/components/scb-snackbar/scb-snackbar.js +128 -0
- package/mvc/components/scb-status-pill/scb-status-pill.js +45 -0
- package/mvc/components/scb-stepper/scb-step.js +239 -0
- package/mvc/components/scb-stepper/scb-stepper.js +139 -0
- package/mvc/components/scb-switch/scb-switch.js +59 -0
- package/mvc/components/scb-table/scb-table.js +51 -0
- package/mvc/components/scb-table-advanced/scb-table-advanced.js +76 -0
- package/mvc/components/scb-tabs/scb-primary-tab.js +6 -0
- package/mvc/components/scb-tabs/scb-secondary-tab.js +6 -0
- package/mvc/components/scb-tabs/scb-tabs.js +28 -0
- package/mvc/components/scb-textfield/scb-textfield.js +595 -0
- package/mvc/components/scb-toc/scb-toc-item.js +303 -0
- package/mvc/components/scb-toc/scb-toc.js +19 -0
- package/mvc/components/scb-tooltip/scb-tooltip.js +196 -0
- package/mvc/components/scb-vignette/scb-vignette.js +37 -0
- package/mvc/components/scb-viz/scb-viz-actions-runtime.js +2 -0
- package/mvc/components/scb-viz/scb-viz-print-runtime.js +98 -0
- package/mvc/components/scb-viz/scb-viz-series-differentiation-registry.js +1 -0
- package/mvc/components/scb-viz/scb-viz-series-differentiation-runtime.js +1 -0
- package/mvc/components/scb-viz/scb-viz-table-runtime.js +1 -0
- package/mvc/components/scb-viz/scb-viz.js +1140 -0
- package/mvc/fonts/inter/files/inter-latin-wght-italic.woff2 +0 -0
- package/mvc/fonts/inter/files/inter-latin-wght-normal.woff2 +0 -0
- package/mvc/fonts/material-symbols-outlined/files/material-symbols-outlined-latin-wght-normal.woff2 +0 -0
- package/mvc/scb-blazor-bridge.js +6827 -2805
- package/mvc/scb-logo.svg +20 -20
- package/mvc/scb-typography.css +1 -1
- package/mvc/scb-wc.css +3 -2
- package/mvc/scb.svg +13 -13
- package/mvc/vendor/assertClassBrand.js +1 -0
- package/mvc/vendor/classPrivateFieldGet2.js +1 -0
- package/mvc/vendor/decorate.js +1 -0
- package/mvc/vendor/preload-helper.js +1 -0
- package/mvc/vendor/vendor-lit.js +1 -0
- package/mvc/vendor/vendor-material.js +364 -0
- package/mvc/vendor/vendor.js +4 -0
- package/package.json +420 -77
- package/scb-accordion/scb-accordion-item.js +340 -0
- package/scb-accordion/scb-accordion.js +151 -0
- package/scb-app-bar/scb-app-bar.js +317 -0
- package/scb-avatar/scb-avatar.js +197 -0
- package/scb-badge/scb-badge.js +165 -0
- package/scb-breadcrumb/scb-breadcrumb-item.js +62 -0
- package/scb-breadcrumb/scb-breadcrumb.js +255 -0
- package/scb-button/scb-button.js +398 -0
- package/scb-calendar/scb-calendar-event.js +48 -0
- package/scb-calendar/scb-calendar.js +700 -0
- package/scb-calendar-card/scb-calendar-card.js +505 -0
- package/scb-card/scb-card.js +1231 -0
- package/scb-checkbox/scb-checkbox-group.js +104 -0
- package/scb-checkbox/scb-checkbox.js +316 -0
- package/scb-chevron/scb-chevron.js +144 -0
- package/scb-chip/scb-chip.js +234 -0
- package/scb-collapse/scb-collapse.js +231 -0
- package/scb-cookies-consent/scb-cookies-consent.js +164 -0
- package/scb-datepicker/scb-datepicker.js +470 -0
- package/scb-dialog/scb-dialog.js +574 -0
- package/scb-divider/scb-divider.js +119 -0
- package/scb-drawer/scb-drawer.js +297 -0
- package/scb-drop-zone/scb-drop-zone.js +965 -0
- package/scb-dropdown/scb-dropdown.js +598 -0
- package/scb-fab/scb-fab.js +190 -0
- package/scb-fact-card/scb-fact-card-content.js +82 -0
- package/scb-fact-card/scb-fact-card.js +376 -0
- package/scb-footer/scb-footer-section.js +23 -0
- package/scb-footer/scb-footer.js +343 -0
- package/scb-gallery-grid/scb-gallery-grid.js +242 -0
- package/scb-grid/scb-grid-item.js +81 -0
- package/scb-grid/scb-grid.js +200 -0
- package/scb-grid/scb-stack.js +120 -0
- package/scb-header/scb-header-menu-group.js +21 -0
- package/scb-header/scb-header-menu-item.js +22 -0
- package/scb-header/scb-header-tab.js +25 -0
- package/scb-header/scb-header-utility.js +27 -0
- package/scb-header/scb-header.js +1358 -0
- package/scb-horizontal-scroller/scb-horizontal-scroller.js +353 -0
- package/scb-icon-button/scb-icon-button.js +335 -0
- package/scb-keyfigure-card/scb-keyfigure-card.js +340 -0
- package/scb-link/scb-link.js +136 -0
- package/scb-list/scb-list-item.js +297 -0
- package/scb-list/scb-list.js +119 -0
- package/scb-menu/scb-menu-item.js +330 -0
- package/scb-menu/scb-menu-section.js +60 -0
- package/scb-menu/scb-menu.js +154 -0
- package/scb-menu/scb-sub-menu.js +36 -0
- package/scb-nav/scb-nav-item.js +96 -0
- package/scb-nav/scb-nav.js +263 -0
- package/scb-notification-card/scb-notification-card.js +479 -0
- package/scb-options-menu/scb-options-menu-item.js +218 -0
- package/scb-options-menu/scb-options-menu.js +237 -0
- package/scb-options-menu/scb-options-sub-menu.js +69 -0
- package/scb-overlay/scb-overlay.js +144 -0
- package/scb-pagination/scb-pagination.js +438 -0
- package/scb-progress-indicator/scb-progress-indicator.js +199 -0
- package/scb-progress-stepper/scb-progress-step.js +213 -0
- package/scb-progress-stepper/scb-progress-stepper.js +132 -0
- package/scb-radio-button/scb-radio-button.js +249 -0
- package/scb-radio-button/scb-radio-group.js +216 -0
- package/scb-scrollspy/scb-scrollspy.js +670 -0
- package/scb-search/scb-search.js +643 -0
- package/scb-segmented-button/scb-segmented-button.js +215 -0
- package/scb-segmented-button/scb-segmented-item.js +133 -0
- package/scb-select/scb-select-option.js +88 -0
- package/scb-select/scb-select.js +517 -0
- package/scb-skeleton/scb-skeleton.js +92 -0
- package/scb-slider/scb-slider.js +98 -0
- package/scb-snackbar/scb-snackbar.js +223 -0
- package/scb-status-pill/scb-status-pill.js +100 -0
- package/scb-stepper/scb-step.js +311 -0
- package/scb-stepper/scb-stepper.js +325 -0
- package/scb-switch/scb-switch.js +182 -0
- package/scb-table/scb-table.js +202 -0
- package/scb-table-advanced/scb-table-advanced.js +327 -0
- package/scb-tabs/scb-primary-tab.js +68 -0
- package/scb-tabs/scb-secondary-tab.js +68 -0
- package/scb-tabs/scb-tabs.js +100 -0
- package/scb-test-components/index.d.ts +90 -0
- package/scb-test-components/scb-accordion/scb-accordion-item.d.ts +39 -0
- package/scb-test-components/scb-accordion/scb-accordion.d.ts +27 -0
- package/scb-test-components/scb-app-bar/scb-app-bar.d.ts +25 -0
- package/scb-test-components/scb-avatar/scb-avatar.d.ts +37 -0
- package/scb-test-components/scb-badge/scb-badge.d.ts +28 -0
- package/scb-test-components/scb-breadcrumb/scb-breadcrumb-item.d.ts +15 -0
- package/scb-test-components/scb-breadcrumb/scb-breadcrumb.d.ts +27 -0
- package/scb-test-components/scb-button/scb-button.d.ts +40 -0
- package/scb-test-components/scb-calendar/scb-calendar-event.d.ts +15 -0
- package/scb-test-components/scb-calendar/scb-calendar.d.ts +77 -0
- package/scb-test-components/scb-calendar-card/scb-calendar-card.d.ts +45 -0
- package/scb-test-components/scb-card/scb-card.d.ts +101 -0
- package/scb-test-components/scb-checkbox/scb-checkbox-group.d.ts +23 -0
- package/scb-test-components/scb-checkbox/scb-checkbox.d.ts +52 -0
- package/scb-test-components/scb-chevron/scb-chevron.d.ts +13 -0
- package/scb-test-components/scb-chip/scb-chip.d.ts +61 -0
- package/scb-test-components/scb-collapse/scb-collapse.d.ts +29 -0
- package/scb-test-components/scb-cookies-consent/scb-cookies-consent.d.ts +23 -0
- package/scb-test-components/scb-datepicker/scb-datepicker.d.ts +39 -0
- package/scb-test-components/scb-dialog/scb-dialog.d.ts +72 -0
- package/scb-test-components/scb-divider/scb-divider.d.ts +34 -0
- package/scb-test-components/scb-drawer/scb-drawer.d.ts +72 -0
- package/scb-test-components/scb-drop-zone/scb-drop-zone.d.ts +143 -0
- package/scb-test-components/scb-dropdown/scb-dropdown.d.ts +70 -0
- package/scb-test-components/scb-fab/scb-fab.d.ts +42 -0
- package/scb-test-components/scb-fact-card/scb-fact-card-content.d.ts +15 -0
- package/scb-test-components/scb-fact-card/scb-fact-card.d.ts +49 -0
- package/scb-test-components/scb-footer/scb-footer-section.d.ts +20 -0
- package/scb-test-components/scb-footer/scb-footer.d.ts +31 -0
- package/scb-test-components/scb-gallery-grid/scb-gallery-grid.d.ts +20 -0
- package/scb-test-components/scb-grid/scb-grid-item.d.ts +32 -0
- package/scb-test-components/scb-grid/scb-grid.d.ts +36 -0
- package/scb-test-components/scb-grid/scb-stack.d.ts +32 -0
- package/scb-test-components/scb-header/scb-header-menu-group.d.ts +12 -0
- package/scb-test-components/scb-header/scb-header-menu-item.d.ts +13 -0
- package/scb-test-components/scb-header/scb-header-tab.d.ts +13 -0
- package/scb-test-components/scb-header/scb-header-utility.d.ts +14 -0
- package/scb-test-components/scb-header/scb-header.d.ts +132 -0
- package/scb-test-components/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +47 -0
- package/scb-test-components/scb-icon-button/scb-icon-button.d.ts +76 -0
- package/scb-test-components/scb-keyfigure-card/scb-keyfigure-card.d.ts +46 -0
- package/scb-test-components/scb-link/scb-link.d.ts +25 -0
- package/scb-test-components/scb-list/scb-list-item.d.ts +38 -0
- package/scb-test-components/scb-list/scb-list.d.ts +26 -0
- package/scb-test-components/scb-menu/scb-menu-item.d.ts +52 -0
- package/scb-test-components/scb-menu/scb-menu-section.d.ts +11 -0
- package/scb-test-components/scb-menu/scb-menu.d.ts +25 -0
- package/scb-test-components/scb-menu/scb-sub-menu.d.ts +14 -0
- package/scb-test-components/scb-nav/scb-nav-item.d.ts +20 -0
- package/scb-test-components/scb-nav/scb-nav.d.ts +50 -0
- package/scb-test-components/scb-notification-card/scb-notification-card.d.ts +46 -0
- package/scb-test-components/scb-options-menu/scb-options-menu-item.d.ts +29 -0
- package/scb-test-components/scb-options-menu/scb-options-menu.d.ts +35 -0
- package/scb-test-components/scb-options-menu/scb-options-sub-menu.d.ts +11 -0
- package/scb-test-components/scb-overlay/scb-overlay.d.ts +24 -0
- package/scb-test-components/scb-pagination/scb-pagination.d.ts +36 -0
- package/scb-test-components/scb-progress-indicator/scb-progress-indicator.d.ts +28 -0
- package/scb-test-components/scb-progress-stepper/scb-progress-step.d.ts +21 -0
- package/scb-test-components/scb-progress-stepper/scb-progress-stepper.d.ts +22 -0
- package/scb-test-components/scb-radio-button/scb-radio-button.d.ts +26 -0
- package/scb-test-components/scb-radio-button/scb-radio-group.d.ts +49 -0
- package/scb-test-components/scb-scrollspy/scb-scrollspy.d.ts +217 -0
- package/scb-test-components/scb-search/scb-search.d.ts +96 -0
- package/scb-test-components/scb-segmented-button/scb-segmented-button.d.ts +80 -0
- package/scb-test-components/scb-segmented-button/scb-segmented-item.d.ts +21 -0
- package/scb-test-components/scb-select/scb-select-option.d.ts +16 -0
- package/scb-test-components/scb-select/scb-select.d.ts +62 -0
- package/scb-test-components/scb-skeleton/scb-skeleton.d.ts +25 -0
- package/scb-test-components/scb-slider/scb-slider.d.ts +28 -0
- package/scb-test-components/scb-snackbar/scb-snackbar.d.ts +24 -0
- package/scb-test-components/scb-status-pill/scb-status-pill.d.ts +22 -0
- package/scb-test-components/scb-stepper/scb-step.d.ts +22 -0
- package/scb-test-components/scb-stepper/scb-stepper.d.ts +47 -0
- package/scb-test-components/scb-switch/scb-switch.d.ts +52 -0
- package/scb-test-components/scb-table/scb-table.d.ts +24 -0
- package/scb-test-components/scb-table-advanced/scb-table-advanced.d.ts +39 -0
- package/scb-test-components/scb-tabs/scb-primary-tab.d.ts +15 -0
- package/scb-test-components/scb-tabs/scb-secondary-tab.d.ts +15 -0
- package/scb-test-components/scb-tabs/scb-tabs.d.ts +21 -0
- package/scb-test-components/scb-textfield/scb-textfield.d.ts +75 -0
- package/scb-test-components/scb-toc/scb-toc-item.d.ts +38 -0
- package/scb-test-components/scb-toc/scb-toc.d.ts +27 -0
- package/scb-test-components/scb-tooltip/scb-tooltip.d.ts +51 -0
- package/scb-test-components/scb-vignette/scb-vignette.d.ts +20 -0
- package/scb-test-components/scb-viz/scb-viz-actions-runtime.d.ts +26 -0
- package/scb-test-components/scb-viz/scb-viz-print-runtime.d.ts +27 -0
- package/scb-test-components/scb-viz/scb-viz-series-differentiation-registry.d.ts +21 -0
- package/scb-test-components/scb-viz/scb-viz-series-differentiation-runtime.d.ts +42 -0
- package/scb-test-components/scb-viz/scb-viz-table-runtime.d.ts +28 -0
- package/scb-test-components/scb-viz/scb-viz.d.ts +207 -0
- package/scb-textfield/scb-textfield.js +827 -0
- package/scb-toc/scb-toc-item.js +477 -0
- package/scb-toc/scb-toc.js +101 -0
- package/scb-tooltip/scb-tooltip.js +402 -0
- package/scb-typography.css +1 -1
- package/scb-vignette/scb-vignette.js +88 -0
- package/scb-viz/scb-viz-actions-runtime.js +143 -0
- package/scb-viz/scb-viz-print-runtime.js +121 -0
- package/scb-viz/scb-viz-series-differentiation-registry.js +117 -0
- package/scb-viz/scb-viz-series-differentiation-runtime.js +126 -0
- package/scb-viz/scb-viz-table-runtime.js +86 -0
- package/scb-viz/scb-viz.js +2195 -0
- package/scb-wc-selfhost.css +29 -0
- package/scb-wc.bundle.js +12893 -1099
- package/scb-wc.css +3 -2
- package/scb-wc.d.ts +180 -0
- package/index.d.ts +0 -0
- package/mvc/components/index.js +0 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import{_ as d,b as p,g as b,h as l,y as m}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as a}from"../../vendor/decorate.js";(function(){try{var s=typeof globalThis<"u"?globalThis:window;if(!s.__scb_ce_guard_installed__){s.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(e,u,h){try{customElements.get(e)||t(e,u,h)}catch(r){var o=String(r||"");if(o.indexOf("already been used")===-1&&o.indexOf("NotSupportedError")===-1)throw r}}}}catch{}})();var i,n=(i=class extends d{constructor(...t){super(...t),this.open=!1,this._show=()=>{this.setAttribute("open",""),this.open=!0},this._hide=e=>{this.removeAttribute("open"),this.open=!1,e&&e.stopPropagation()}}connectedCallback(){super.connectedCallback(),this.addEventListener("show-submenu",this._show),this.addEventListener("showsubmenu",this._show),this.addEventListener("hide-submenu",this._hide),this.addEventListener("hidesubmenu",this._hide)}disconnectedCallback(){this.removeEventListener("show-submenu",this._show),this.removeEventListener("showsubmenu",this._show),this.removeEventListener("hide-submenu",this._hide),this.removeEventListener("hidesubmenu",this._hide),super.disconnectedCallback()}firstUpdated(){let t=0,e=this.parentElement;for(;e;)e.tagName==="SCB-OPTIONS-SUB-MENU"&&t++,e=e.parentElement;t%2===1?this.setAttribute("open-left",""):this.removeAttribute("open-left")}render(){return m`
|
|
2
|
+
<div role="menu" class="submenu${this.open?" open":""}">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</div>
|
|
5
|
+
`}},i.styles=p`
|
|
6
|
+
:host {
|
|
7
|
+
display: block;
|
|
8
|
+
position: relative;
|
|
9
|
+
--scb-options-sub-menu-max-width: 300px;
|
|
10
|
+
--scb-options-sub-menu-max-height: 600px;
|
|
11
|
+
}
|
|
12
|
+
.submenu {
|
|
13
|
+
max-width: var(--scb-options-sub-menu-max-width);
|
|
14
|
+
max-height: var(--scb-options-sub-menu-max-height);
|
|
15
|
+
min-width: 112px;
|
|
16
|
+
display: none;
|
|
17
|
+
position: absolute;
|
|
18
|
+
left: 100%;
|
|
19
|
+
top: var(--scb-options-sub-menu-offset-top, -44px);
|
|
20
|
+
z-index: 100;
|
|
21
|
+
padding: var(--scb-options-menu-panel-padding-block, var(--spacing-3, 8px)) 0;
|
|
22
|
+
border-radius: var(--md-sys-shape-corner-extra-small);
|
|
23
|
+
background: var(--md-sys-color-surface, #FFF);
|
|
24
|
+
box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.20), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 4px 5px 0 rgba(0, 0, 0, 0.14);
|
|
25
|
+
}
|
|
26
|
+
:host([open-left]) .submenu {
|
|
27
|
+
left: auto;
|
|
28
|
+
right: 100%;
|
|
29
|
+
}
|
|
30
|
+
:host([open]) .submenu,
|
|
31
|
+
.submenu.open {
|
|
32
|
+
display: block;
|
|
33
|
+
}
|
|
34
|
+
`,i);a([l({type:Boolean,reflect:!0})],n.prototype,"open",void 0);n=a([b("scb-options-sub-menu")],n);
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import{_ as L,b as w,g as z,h as f,v as g,y as A}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as u}from"../../vendor/decorate.js";import{n as C,t as r}from"../../vendor/assertClassBrand.js";import{n as k,r as S,t as y}from"../../vendor/classPrivateFieldGet2.js";(function(){try{var i=typeof globalThis<"u"?globalThis:window;if(!i.__scb_ce_guard_installed__){i.__scb_ce_guard_installed__=!0;var s=customElements.define.bind(customElements);customElements.define=function(t,a,h){try{customElements.get(t)||s(t,a,h)}catch(p){var d=String(p||"");if(d.indexOf("already been used")===-1&&d.indexOf("NotSupportedError")===-1)throw p}}}}catch{}})();var n,v,_,c,e,l=(n=new WeakSet,v=new WeakMap,_=new WeakMap,c=class extends L{constructor(...s){super(...s),C(this,n),S(this,v,void 0),S(this,_,void 0),this.open=!1,this.variant="scrim",this.isStatic=!1,this.ariaLabel="",this.__lastTriggerEl=null,k(v,this,t=>{this.isStatic||r(n,this,O).call(this,t)||r(n,this,x).call(this)}),k(_,this,t=>{this.open&&t.key==="Escape"&&r(n,this,x).call(this)})}static __handleDocClick(s){const t=s.composedPath();for(const a of t){if(!(a instanceof Element))continue;const h=a.getAttribute("data-overlay-open"),d=a.getAttribute("data-overlay-close"),p=a.getAttribute("data-overlay-toggle"),E=a.getAttribute("aria-controls"),m=h||d||p||E;if(!m)continue;const o=e.__instances.get(m);if(!o){e.__instances.delete(m);continue}o.__lastTriggerEl=a,h?r(n,o,b).call(o,!0):d?r(n,o,b).call(o,!1):r(n,o,b).call(o,!o.open);break}}static __ensureDocListener(){e.__docListenerAttached||(document.addEventListener("click",e.__handleDocClick,!0),e.__docListenerAttached=!0)}static __maybeRemoveDocListener(){!e.__docListenerAttached||e.__instances.size>0||(document.removeEventListener("click",e.__handleDocClick,!0),e.__docListenerAttached=!1)}render(){return this.open?A`
|
|
2
|
+
<div class="scrim" @click=${y(v,this)}>
|
|
3
|
+
<div class="content" role="dialog" aria-modal="true" aria-label="${this.ariaLabel||g}">
|
|
4
|
+
<slot></slot>
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
`:g}connectedCallback(){super.connectedCallback(),this.id&&e.__instances.set(this.id,this),e.__ensureDocListener(),window.addEventListener("keydown",y(_,this))}updated(s){s.has("open")&&r(n,this,D).call(this)}disconnectedCallback(){this.id&&e.__instances.delete(this.id),e.__maybeRemoveDocListener(),window.removeEventListener("keydown",y(_,this)),super.disconnectedCallback()}},e=c,c.__instances=new Map,c.__docListenerAttached=!1,c.styles=w`
|
|
8
|
+
:host {
|
|
9
|
+
position: fixed;
|
|
10
|
+
inset: 0;
|
|
11
|
+
z-index: var(--scb-overlay-z-index, 1000);
|
|
12
|
+
display: none;
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([open]) {
|
|
17
|
+
display: block;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.scrim {
|
|
21
|
+
display: grid;
|
|
22
|
+
place-items: center;
|
|
23
|
+
inline-size: 100%;
|
|
24
|
+
block-size: 100%;
|
|
25
|
+
padding: var(--scb-overlay-padding, var(--spacing-6, 24px));
|
|
26
|
+
background: var(
|
|
27
|
+
--scb-overlay-backdrop,
|
|
28
|
+
color-mix(in srgb, var(--md-sys-color-scrim) 32%, transparent)
|
|
29
|
+
);
|
|
30
|
+
box-sizing: border-box;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:host([variant='solid']) .scrim {
|
|
34
|
+
background: var(--md-sys-color-surface);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.content {
|
|
38
|
+
position: relative;
|
|
39
|
+
max-inline-size: 100%;
|
|
40
|
+
max-block-size: 100%;
|
|
41
|
+
box-sizing: border-box;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.content ::slotted(*) {
|
|
45
|
+
margin: auto;
|
|
46
|
+
max-inline-size: 100%;
|
|
47
|
+
max-block-size: 100%;
|
|
48
|
+
}
|
|
49
|
+
`,c);function b(i){this.open=i}function x(){this.open&&(this.isStatic||(r(n,this,b).call(this,!1),this.dispatchEvent(new CustomEvent("scb-overlay-dismiss",{bubbles:!0,composed:!0}))))}function O(i){const s=this.renderRoot.querySelector("slot");if(!(s instanceof HTMLSlotElement))return!1;const t=i.composedPath();return s.assignedNodes({flatten:!0}).some(a=>t.includes(a))}function D(){this.id&&document.querySelectorAll(`[aria-controls="${this.id}"], [data-overlay-toggle="${this.id}"], [data-overlay-open="${this.id}"], [data-overlay-close="${this.id}"]`).forEach(i=>{i.hasAttribute("aria-controls")&&i.setAttribute("aria-expanded",String(this.open))})}u([f({type:Boolean,reflect:!0})],l.prototype,"open",void 0);u([f({type:String,reflect:!0})],l.prototype,"variant",void 0);u([f({type:Boolean,reflect:!0,attribute:"static"})],l.prototype,"isStatic",void 0);u([f({type:String,attribute:"aria-label"})],l.prototype,"ariaLabel",void 0);l=e=u([z("scb-overlay")],l);
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
import"../../vendor/vendor-material.js";import{_ as y,b as x,g as w,h as c,y as n}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as r}from"../../vendor/decorate.js";import"../scb-button/scb-button.js";import"../scb-icon-button/scb-icon-button.js";import"../scb-link/scb-link.js";(function(){try{var d=typeof globalThis<"u"?globalThis:window;if(!d.__scb_ce_guard_installed__){d.__scb_ce_guard_installed__=!0;var i=customElements.define.bind(customElements);customElements.define=function(t,s,a){try{customElements.get(t)||i(t,s,a)}catch(g){var l=String(g||"");if(l.indexOf("already been used")===-1&&l.indexOf("NotSupportedError")===-1)throw g}}}}catch{}})();var h,o=(h=class extends y{constructor(...i){super(...i),this.variant="icon-text",this.page=1,this.totalPages=0,this.pagingHref="",this.baseUri="",this.paginationAriaLabel="Paginering",this.currentAriaLabel="Nuvarande sida, ",this.pagingNumberAriaLabel="Gå till sida ",this.isNarrow=window.innerWidth<=768,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this._onResize=()=>{this.isNarrow=window.innerWidth<=768}}_emitPageChange(i){const t={page:i};this.dispatchEvent(new CustomEvent("page-change",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("pagechange",{detail:t,bubbles:!0,composed:!0}))}_getPagingHref(i){if(!this.pagingHref)return;const t=(this.baseUri||"").trim(),s=t||window.location.href,a=new URL(s,window.location.href),l=this.pagingHref.trim().replace(/^[?&]/,"").split("=")[0];if(l)return a.searchParams.delete(l),a.searchParams.set(l,String(i)),/^https?:\/\//i.test(t)?a.toString():`${a.pathname}${a.search}${a.hash}`}_handlePageSelection(i,t){!this.pagingHref&&t&&t.preventDefault(),this.page=i,this._emitPageChange(i)}_prevPage(i){if(this.page<=1){!this.pagingHref&&i&&i.preventDefault();return}this._handlePageSelection(this.page-1,i)}_nextPage(i){if(this.page>=this.totalPages){!this.pagingHref&&i&&i.preventDefault();return}this._handlePageSelection(this.page+1,i)}connectedCallback(){super.connectedCallback(),window.addEventListener("resize",this._onResize),this._onResize()}disconnectedCallback(){super.disconnectedCallback(),window.removeEventListener("resize",this._onResize)}mapSpacingToken(i){if(i==null)return;const t=String(i).trim();if(t)return/^\d+$/.test(t)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(t,10)))})`:t}__applySpacing(){const i=this.mapSpacingToken(this.spacing),t=this.mapSpacingToken(this.spacingTop)??i,s=this.mapSpacingToken(this.spacingBottom)??i,a=this.mapSpacingToken(this.spacingLeft),l=this.mapSpacingToken(this.spacingRight);t?this.style.setProperty("--scb-pagination-spacing-block-start",t):this.style.removeProperty("--scb-pagination-spacing-block-start"),s?this.style.setProperty("--scb-pagination-spacing-block-end",s):this.style.removeProperty("--scb-pagination-spacing-block-end"),a?this.style.setProperty("--scb-pagination-spacing-inline-start",a):this.style.removeProperty("--scb-pagination-spacing-inline-start"),l?this.style.setProperty("--scb-pagination-spacing-inline-end",l):this.style.removeProperty("--scb-pagination-spacing-inline-end")}firstUpdated(){this.__applySpacing()}updated(i){super.updated(i),(i.has("spacing")||i.has("spacingTop")||i.has("spacingBottom")||i.has("spacingLeft")||i.has("spacingRight"))&&this.__applySpacing()}render(){if(this.totalPages===0)return null;const i=this.variant?`${this.variant.toLowerCase()}`:"",t=[],{page:s,totalPages:a}=this,l=window.innerWidth<=768,g=l?1:2,b=this._getPagingHref(Math.max(1,this.page-1)),u=this._getPagingHref(Math.min(this.totalPages,this.page+1)),f=this.pagingHref?this.variant==="icon"?n`<a
|
|
2
|
+
class="paging-action-link"
|
|
3
|
+
href=${b}
|
|
4
|
+
@click=${this._prevPage}
|
|
5
|
+
aria-label="Föregående sida"
|
|
6
|
+
aria-disabled=${this.page===1?"true":"false"}
|
|
7
|
+
>
|
|
8
|
+
<scb-icon-button
|
|
9
|
+
icon="chevron_left"
|
|
10
|
+
?disabled=${this.page===1}
|
|
11
|
+
aria-label="Föregående sida"
|
|
12
|
+
></scb-icon-button>
|
|
13
|
+
</a>`:n`<a
|
|
14
|
+
class="paging-action-link"
|
|
15
|
+
href=${b}
|
|
16
|
+
@click=${this._prevPage}
|
|
17
|
+
aria-label="Föregående sida"
|
|
18
|
+
aria-disabled=${this.page===1?"true":"false"}
|
|
19
|
+
>
|
|
20
|
+
<scb-button
|
|
21
|
+
variant="text"
|
|
22
|
+
label="Föregående"
|
|
23
|
+
icon="chevron_left"
|
|
24
|
+
?disabled=${this.page===1}
|
|
25
|
+
aria-label="Föregående sida"
|
|
26
|
+
></scb-button>
|
|
27
|
+
</a>`:this.variant==="icon"?n`<scb-icon-button
|
|
28
|
+
icon="chevron_left"
|
|
29
|
+
@click=${this._prevPage}
|
|
30
|
+
?disabled=${this.page===1}
|
|
31
|
+
aria-label="Föregående sida"
|
|
32
|
+
></scb-icon-button>`:n`<scb-button
|
|
33
|
+
variant="text"
|
|
34
|
+
label="Föregående"
|
|
35
|
+
icon="chevron_left"
|
|
36
|
+
@click=${this._prevPage}
|
|
37
|
+
?disabled=${this.page===1}
|
|
38
|
+
aria-label="Föregående sida"
|
|
39
|
+
></scb-button>`,m=this.pagingHref?this.variant==="icon"?n`<a
|
|
40
|
+
class="paging-action-link"
|
|
41
|
+
href=${u}
|
|
42
|
+
@click=${this._nextPage}
|
|
43
|
+
aria-label="Nästa sida"
|
|
44
|
+
aria-disabled=${this.page===this.totalPages?"true":"false"}
|
|
45
|
+
>
|
|
46
|
+
<scb-icon-button
|
|
47
|
+
icon="chevron_right"
|
|
48
|
+
?disabled=${this.page===this.totalPages}
|
|
49
|
+
aria-label="Nästa sida"
|
|
50
|
+
></scb-icon-button>
|
|
51
|
+
</a>`:n`<a
|
|
52
|
+
class="paging-action-link"
|
|
53
|
+
href=${u}
|
|
54
|
+
@click=${this._nextPage}
|
|
55
|
+
aria-label="Nästa sida"
|
|
56
|
+
aria-disabled=${this.page===this.totalPages?"true":"false"}
|
|
57
|
+
>
|
|
58
|
+
<scb-button
|
|
59
|
+
variant="text"
|
|
60
|
+
label="Nästa"
|
|
61
|
+
icon="chevron_right"
|
|
62
|
+
iconPosition="right"
|
|
63
|
+
?disabled=${this.page===this.totalPages}
|
|
64
|
+
aria-label="Nästa sida"
|
|
65
|
+
trailing-icon
|
|
66
|
+
></scb-button>
|
|
67
|
+
</a>`:this.variant==="icon"?n`<scb-icon-button
|
|
68
|
+
icon="chevron_right"
|
|
69
|
+
@click=${this._nextPage}
|
|
70
|
+
?disabled=${this.page===this.totalPages}
|
|
71
|
+
aria-label="Nästa sida"
|
|
72
|
+
></scb-icon-button>`:n`<scb-button
|
|
73
|
+
variant="text"
|
|
74
|
+
label="Nästa"
|
|
75
|
+
icon="chevron_right"
|
|
76
|
+
iconPosition="right"
|
|
77
|
+
@click=${this._nextPage}
|
|
78
|
+
?disabled=${this.page===this.totalPages}
|
|
79
|
+
aria-label="Nästa sida"
|
|
80
|
+
trailing-icon
|
|
81
|
+
></scb-button>`,p=e=>e===s?n`
|
|
82
|
+
<li>
|
|
83
|
+
<span
|
|
84
|
+
class="page-number active"
|
|
85
|
+
aria-current="page"
|
|
86
|
+
aria-label="${this.currentAriaLabel} ${e}"
|
|
87
|
+
>${e}</span
|
|
88
|
+
>
|
|
89
|
+
</li>
|
|
90
|
+
`:n`
|
|
91
|
+
<li>
|
|
92
|
+
<scb-link
|
|
93
|
+
class="page-number${e===s?" active":""}"
|
|
94
|
+
@click=${v=>this._handlePageSelection(e,v)}
|
|
95
|
+
aria-current=${e===s?"page":void 0}
|
|
96
|
+
aria-label="${this.pagingNumberAriaLabel} ${e}"
|
|
97
|
+
href=${this._getPagingHref(e)}
|
|
98
|
+
?disabled=${e===s}
|
|
99
|
+
>${e}</scb-link
|
|
100
|
+
>
|
|
101
|
+
</li>
|
|
102
|
+
`;if(a<=8)for(let e=1;e<=a;e++)t.push(p(e));else if(t.push(p(1)),s<=4&&!l){for(let e=2;e<=5;e++)t.push(p(e));a>6?(t.push(n`<li><span class="ellipsis" aria-hidden="true">…</span></li>`),t.push(p(a))):a===6&&t.push(p(a))}else if(s<=3&&l){for(let e=2;e<=3;e++)t.push(p(e));a>4?(t.push(n`<li><span class="ellipsis" aria-hidden="true">…</span></li>`),t.push(p(a))):a===4&&t.push(p(a))}else if(s>=a-(g+1)){t.push(n`<li><span class="ellipsis" aria-hidden="true">…</span></li>`);for(let e=a-g*2;e<=a;e++)e>1&&t.push(p(e))}else{t.push(n`<li><span class="ellipsis" aria-hidden="true">…</span></li>`);for(let e=s-g;e<=s+g;e++)e>1&&e<a&&t.push(p(e));t.push(n`<li><span class="ellipsis" aria-hidden="true">…</span></li>`),t.push(p(a))}return l?n`
|
|
103
|
+
<nav aria-label="${this.paginationAriaLabel}" class="pagination ${i}">
|
|
104
|
+
<div class="pagination-row">
|
|
105
|
+
<div class="prev">
|
|
106
|
+
${f}
|
|
107
|
+
</div>
|
|
108
|
+
<ol>
|
|
109
|
+
${t}
|
|
110
|
+
</ol>
|
|
111
|
+
</div>
|
|
112
|
+
<div class="next">
|
|
113
|
+
${m}
|
|
114
|
+
</div>
|
|
115
|
+
</nav>
|
|
116
|
+
`:n`
|
|
117
|
+
<nav aria-label="${this.paginationAriaLabel}" class="pagination ${i}">
|
|
118
|
+
<div class="pagination-row">
|
|
119
|
+
<div class="prev">
|
|
120
|
+
${f}
|
|
121
|
+
</div>
|
|
122
|
+
<ol>
|
|
123
|
+
${t}
|
|
124
|
+
</ol>
|
|
125
|
+
<div class="next">
|
|
126
|
+
${m}
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</nav>
|
|
130
|
+
`}},h.styles=[x`
|
|
131
|
+
:host {
|
|
132
|
+
display: block;
|
|
133
|
+
width: 100%;
|
|
134
|
+
|
|
135
|
+
margin-block-start: var(--scb-pagination-spacing-block-start, 0);
|
|
136
|
+
margin-block-end: var(--scb-pagination-spacing-block-end, 0);
|
|
137
|
+
margin-inline-start: var(--scb-pagination-spacing-inline-start, 0);
|
|
138
|
+
margin-inline-end: var(--scb-pagination-spacing-inline-end, 0);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
:host .pagination {
|
|
142
|
+
--md-text-button-label-text-color: var(--md-sys-color-on-surface, #0F0865);
|
|
143
|
+
--md-text-button-pressed-state-layer-color: var(--md-sys-color-on-surface, #0F0865);
|
|
144
|
+
--md-text-button-focus-label-text-color: var(--md-sys-color-on-surface, #0F0865);
|
|
145
|
+
--md-text-button-hover-label-text-color: var(--md-sys-color-on-surface, #0F0865);
|
|
146
|
+
--md-text-button-pressed-label-text-color: var(--md-sys-color-on-surface, #0F0865);
|
|
147
|
+
--md-text-button-hover-state-layer-color: var(--md-sys-color-on-surface, #0F0865);
|
|
148
|
+
--md-text-button-label-text-weight: var(--weight-regular, 400);
|
|
149
|
+
--md-text-button-label-text-line-height: var(--md-sys-typescale-body-medium-line-height, 24px);
|
|
150
|
+
--md-text-button-label-text-size: var(--md-sys-typescale-body-medium-size, 16px);
|
|
151
|
+
--md-text-button-icon-color: var(--md-sys-color-on-surface, #0F0865);
|
|
152
|
+
--md-text-button-focus-icon-color: var(--md-sys-color-on-surface, #0F0865);
|
|
153
|
+
--md-text-button-hover-icon-color: var(--md-sys-color-on-surface, #0F0865);
|
|
154
|
+
--md-text-button-pressed-icon-color: var(--md-sys-color-on-surface, #0F0865);
|
|
155
|
+
--scb-link-decoration: none;
|
|
156
|
+
--scb-link-color: var(--md-sys-color-on-surface, #0F0865);
|
|
157
|
+
|
|
158
|
+
scb-link.page-number a {
|
|
159
|
+
cursor: pointer;
|
|
160
|
+
text-decoration: none;
|
|
161
|
+
display: inline-flex;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.pagination {
|
|
166
|
+
width: 100%;
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-direction: column;
|
|
169
|
+
gap: 0;
|
|
170
|
+
}
|
|
171
|
+
.pagination-row {
|
|
172
|
+
width: 100%;
|
|
173
|
+
display: flex;
|
|
174
|
+
flex-direction: row;
|
|
175
|
+
align-items: center;
|
|
176
|
+
gap: 4px;
|
|
177
|
+
}
|
|
178
|
+
.pagination-row .prev {
|
|
179
|
+
display: flex;
|
|
180
|
+
justify-content: flex-start;
|
|
181
|
+
width: auto;
|
|
182
|
+
}
|
|
183
|
+
.pagination-row ol {
|
|
184
|
+
width: auto;
|
|
185
|
+
display: flex;
|
|
186
|
+
flex-direction: row;
|
|
187
|
+
justify-content: flex-start;
|
|
188
|
+
gap: 4px;
|
|
189
|
+
margin: 0;
|
|
190
|
+
padding: 0;
|
|
191
|
+
list-style: none;
|
|
192
|
+
}
|
|
193
|
+
.pagination-row ol li {
|
|
194
|
+
min-width: 40px;
|
|
195
|
+
min-height: 40px;
|
|
196
|
+
display: flex;
|
|
197
|
+
align-items: center;
|
|
198
|
+
justify-content: center;
|
|
199
|
+
}
|
|
200
|
+
.pagination-row .next {
|
|
201
|
+
display: flex;
|
|
202
|
+
justify-content: flex-start;
|
|
203
|
+
align-items: center;
|
|
204
|
+
width: auto;
|
|
205
|
+
margin-top: 0;
|
|
206
|
+
}
|
|
207
|
+
scb-link.page-number a {
|
|
208
|
+
cursor: pointer;
|
|
209
|
+
text-decoration: none;
|
|
210
|
+
display: inline-flex;
|
|
211
|
+
}
|
|
212
|
+
.pagination-row ol li scb-link.page-number {
|
|
213
|
+
--scb-link-focus-ring-gap: 0;
|
|
214
|
+
--scb-link-decoration: none;
|
|
215
|
+
--scb-link-hover-thickness: 1px;
|
|
216
|
+
display: inline-flex;
|
|
217
|
+
align-items: center;
|
|
218
|
+
justify-content: center;
|
|
219
|
+
width: 40px;
|
|
220
|
+
height: 40px;
|
|
221
|
+
border-radius: 999px;
|
|
222
|
+
}
|
|
223
|
+
.pagination-row ol li scb-link.page-number::part(anchor) {
|
|
224
|
+
display: inline-flex;
|
|
225
|
+
align-items: center;
|
|
226
|
+
justify-content: center;
|
|
227
|
+
width: 40px;
|
|
228
|
+
height: 40px;
|
|
229
|
+
border-radius: 999px;
|
|
230
|
+
color: var(--md-sys-color-on-surface, #0F0865);
|
|
231
|
+
cursor: pointer;
|
|
232
|
+
text-decoration: none;
|
|
233
|
+
transition: background-color 120ms linear;
|
|
234
|
+
}
|
|
235
|
+
.pagination-row ol li scb-link.page-number::part(anchor):hover {
|
|
236
|
+
background: color-mix(
|
|
237
|
+
in srgb,
|
|
238
|
+
var(--md-text-button-hover-state-layer-color, var(--md-sys-color-on-surface, #0F0865)) 8%,
|
|
239
|
+
transparent
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
.pagination-row ol li scb-link.page-number::part(anchor):focus-visible {
|
|
243
|
+
background: color-mix(
|
|
244
|
+
in srgb,
|
|
245
|
+
var(--md-sys-color-on-surface, #0F0865) 10%,
|
|
246
|
+
transparent
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
.page-number.active {
|
|
250
|
+
display: inline-flex;
|
|
251
|
+
align-items: center;
|
|
252
|
+
justify-content: center;
|
|
253
|
+
border-radius: 50%;
|
|
254
|
+
background: var(--md-sys-color-primary, #1F44FF);
|
|
255
|
+
color: var(--md-sys-color-on-primary, #FFF);
|
|
256
|
+
text-align: center;
|
|
257
|
+
width: 40px;
|
|
258
|
+
height: 40px;
|
|
259
|
+
}
|
|
260
|
+
.page-number.active {
|
|
261
|
+
font-family: var(--brand-font, 'Inter', sans-serif);
|
|
262
|
+
}
|
|
263
|
+
.ellipsis {
|
|
264
|
+
margin: 0 4px;
|
|
265
|
+
color: #888;
|
|
266
|
+
user-select: none;
|
|
267
|
+
pointer-events: none;
|
|
268
|
+
}
|
|
269
|
+
scb-button[disabled] {
|
|
270
|
+
opacity: 0.5;
|
|
271
|
+
pointer-events: none;
|
|
272
|
+
}
|
|
273
|
+
.paging-action-link {
|
|
274
|
+
display: inline-flex;
|
|
275
|
+
text-decoration: none;
|
|
276
|
+
}
|
|
277
|
+
.paging-action-link[aria-disabled='true'] {
|
|
278
|
+
opacity: 0.5;
|
|
279
|
+
pointer-events: none;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
@media (max-width: 768px) {
|
|
283
|
+
.pagination .prev {
|
|
284
|
+
display: flex;
|
|
285
|
+
justify-content: flex-start;
|
|
286
|
+
}
|
|
287
|
+
.pagination .next {
|
|
288
|
+
width: 100%;
|
|
289
|
+
margin-top: 8px;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
@media (max-width: 390px) {
|
|
294
|
+
.pagination-row {
|
|
295
|
+
flex-direction: column;
|
|
296
|
+
gap: 0;
|
|
297
|
+
}
|
|
298
|
+
.pagination-row .prev {
|
|
299
|
+
width: 100%;
|
|
300
|
+
margin-bottom: 8px;
|
|
301
|
+
align-items: center;
|
|
302
|
+
}
|
|
303
|
+
.pagination-row ol {
|
|
304
|
+
width: 100%;
|
|
305
|
+
align-items: center;
|
|
306
|
+
}
|
|
307
|
+
.pagination-row .next {
|
|
308
|
+
width: 100%;
|
|
309
|
+
margin-top: 8px;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
`],h);r([c({type:String})],o.prototype,"variant",void 0);r([c({type:Number})],o.prototype,"page",void 0);r([c({type:Number,attribute:"total-pages"})],o.prototype,"totalPages",void 0);r([c({type:String,attribute:"paging-href"})],o.prototype,"pagingHref",void 0);r([c({type:String,attribute:"base-uri"})],o.prototype,"baseUri",void 0);r([c({type:String,attribute:"pagination-aria-label"})],o.prototype,"paginationAriaLabel",void 0);r([c({type:String,attribute:"current-aria-label"})],o.prototype,"currentAriaLabel",void 0);r([c({type:String,attribute:"paging-number-aria-label"})],o.prototype,"pagingNumberAriaLabel",void 0);r([c({type:Boolean})],o.prototype,"isNarrow",void 0);r([c({type:String})],o.prototype,"spacing",void 0);r([c({type:String,attribute:"spacing-top"})],o.prototype,"spacingTop",void 0);r([c({type:String,attribute:"spacing-bottom"})],o.prototype,"spacingBottom",void 0);r([c({type:String,attribute:"spacing-left"})],o.prototype,"spacingLeft",void 0);r([c({type:String,attribute:"spacing-right"})],o.prototype,"spacingRight",void 0);o=r([w("scb-pagination")],o);
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import{_ as h,b as u,g,h as a,y as o}from"../../vendor/vendor.js";import"../../vendor/vendor-lit.js";import{t as s}from"../../vendor/decorate.js";(function(){try{var p=typeof globalThis<"u"?globalThis:window;if(!p.__scb_ce_guard_installed__){p.__scb_ce_guard_installed__=!0;var t=customElements.define.bind(customElements);customElements.define=function(i,r,n){try{customElements.get(i)||t(i,r,n)}catch(d){var l=String(d||"");if(l.indexOf("already been used")===-1&&l.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var c,e=(c=class extends h{constructor(...t){super(...t),this.id="",this.type="circular",this.progress=25,this.isStatic=!0,this.spacing=void 0,this.spacingTop=void 0,this.spacingBottom=void 0,this.spacingLeft=void 0,this.spacingRight=void 0,this._isSyncingAria=!1,this._defaultAriaLabelApplied=!1,this._defaultAriaValueTextApplied=!1}static get observedAttributes(){return[...super.observedAttributes,"role","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuetext"]}attributeChangedCallback(t,i,r){super.attributeChangedCallback(t,i,r),i!==r&&(t==="role"||t.startsWith("aria-"))&&this.syncAria()}connectedCallback(){super.connectedCallback(),this.syncAria()}clampProgress(t){return Number.isNaN(t)?0:Math.max(0,Math.min(100,t))}applyDefaultAriaLabel(t){const i=this.getAttribute("aria-labelledby"),r=this.getAttribute("aria-label");if(i){this._defaultAriaLabelApplied&&(this.removeAttribute("aria-label"),this._defaultAriaLabelApplied=!1);return}if(r!==null){this._defaultAriaLabelApplied&&r!==t&&(this._defaultAriaLabelApplied=!1);return}this.setAttribute("aria-label",t),this._defaultAriaLabelApplied=!0}syncAria(){if(!this._isSyncingAria){this._isSyncingAria=!0;try{if(this.hasAttribute("role")||this.setAttribute("role","progressbar"),this.hasAttribute("aria-valuemin")||this.setAttribute("aria-valuemin","0"),this.hasAttribute("aria-valuemax")||this.setAttribute("aria-valuemax","100"),this.type==="linear"&&!this.isStatic){this.removeAttribute("aria-valuenow");const i=this.getAttribute("aria-valuetext");i===null?(this.setAttribute("aria-valuetext","Laddar"),this._defaultAriaValueTextApplied=!0):this._defaultAriaValueTextApplied&&i!=="Laddar"&&(this._defaultAriaValueTextApplied=!1),this.applyDefaultAriaLabel("Laddar");return}const t=this.clampProgress(this.progress);this.setAttribute("aria-valuenow",String(t)),this._defaultAriaValueTextApplied&&(this.getAttribute("aria-valuetext")==="Laddar"&&this.removeAttribute("aria-valuetext"),this._defaultAriaValueTextApplied=!1),this.applyDefaultAriaLabel("Förlopp")}finally{this._isSyncingAria=!1}}}mapSpacingToken(t){if(!t)return;const i=String(t).trim();if(i)return/^\d+$/.test(i)?`var(--spacing-${Math.max(0,Math.min(14,parseInt(i,10)))})`:i}applySpacing(){const t=this.mapSpacingToken(this.spacing),i=this.mapSpacingToken(this.spacingTop)??t,r=this.mapSpacingToken(this.spacingBottom)??t,n=this.mapSpacingToken(this.spacingLeft),l=this.mapSpacingToken(this.spacingRight);i?this.style.setProperty("--scb-progress-indicator-spacing-block-start",i):this.style.removeProperty("--scb-progress-indicator-spacing-block-start"),r?this.style.setProperty("--scb-progress-indicator-spacing-block-end",r):this.style.removeProperty("--scb-progress-indicator-spacing-block-end"),n?this.style.setProperty("--scb-progress-indicator-spacing-inline-start",n):this.style.removeProperty("--scb-progress-indicator-spacing-inline-start"),l?this.style.setProperty("--scb-progress-indicator-spacing-inline-end",l):this.style.removeProperty("--scb-progress-indicator-spacing-inline-end")}applyTypeLayout(){this.type==="linear"?(this.style.display="block",this.style.width="100%"):(this.style.removeProperty("display"),this.style.removeProperty("width"))}firstUpdated(t){this.applyTypeLayout(),this.applySpacing(),this.syncAria()}updated(t){super.updated(t),t.has("type")&&this.applyTypeLayout(),(t.has("spacing")||t.has("spacingTop")||t.has("spacingBottom")||t.has("spacingLeft")||t.has("spacingRight"))&&this.applySpacing(),(t.has("type")||t.has("progress")||t.has("isStatic"))&&this.syncAria()}render(){return o`
|
|
2
|
+
<div class="scb-progress-indicator">
|
|
3
|
+
${this.type==="circular"?o`
|
|
4
|
+
<div class="circular">
|
|
5
|
+
<svg class="circular-spin" viewBox="0 0 40 40" aria-hidden="true" focusable="false">
|
|
6
|
+
<circle class="circular-bg" cx="20" cy="20" r="16" fill="none" stroke-width="4" />
|
|
7
|
+
<circle
|
|
8
|
+
class="circular-fg"
|
|
9
|
+
cx="20" cy="20" r="16" fill="none" stroke-width="4"
|
|
10
|
+
stroke="var(--md-sys-color-primary)"
|
|
11
|
+
stroke-dasharray="${2*Math.PI*16}"
|
|
12
|
+
stroke-dashoffset="${(1-this.progress/100)*2*Math.PI*16}"
|
|
13
|
+
/>
|
|
14
|
+
</svg>
|
|
15
|
+
</div>
|
|
16
|
+
`:o`
|
|
17
|
+
<div class="linear" style="--progress-fill: var(--md-sys-color-primary);">
|
|
18
|
+
${this.isStatic?o`<div class="linear-static" style="width: ${this.progress}%;"></div>`:o`<div class="linear-loader"></div>`}
|
|
19
|
+
</div>
|
|
20
|
+
`}
|
|
21
|
+
</div>
|
|
22
|
+
`}},c.styles=[u`
|
|
23
|
+
|
|
24
|
+
.circular {
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: center;
|
|
27
|
+
justify-content: center;
|
|
28
|
+
width: 46px;
|
|
29
|
+
height: 46px;
|
|
30
|
+
position: relative;
|
|
31
|
+
}
|
|
32
|
+
.circular-spin {
|
|
33
|
+
animation: spin 1s linear infinite;
|
|
34
|
+
width: 46px;
|
|
35
|
+
height: 46px ;
|
|
36
|
+
position: relative;
|
|
37
|
+
z-index: 1;
|
|
38
|
+
}
|
|
39
|
+
@keyframes spin {
|
|
40
|
+
0% { transform: rotate(0deg); }
|
|
41
|
+
100% { transform: rotate(360deg); }
|
|
42
|
+
}
|
|
43
|
+
.circular-bg {
|
|
44
|
+
stroke: var(--md-sys-color-secondary-container);
|
|
45
|
+
}
|
|
46
|
+
.circular-fg {
|
|
47
|
+
transition: stroke-dashoffset 0.3s ease;
|
|
48
|
+
}
|
|
49
|
+
.linear {
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 6px;
|
|
52
|
+
background: var(--md-sys-color-secondary-container);
|
|
53
|
+
border-radius: 3px;
|
|
54
|
+
overflow: hidden;
|
|
55
|
+
position: relative;
|
|
56
|
+
}
|
|
57
|
+
:host {
|
|
58
|
+
display: inline-block;
|
|
59
|
+
margin-block-start: var(--scb-progress-indicator-spacing-block-start, 0);
|
|
60
|
+
margin-block-end: var(--scb-progress-indicator-spacing-block-end, 0);
|
|
61
|
+
margin-inline-start: var(--scb-progress-indicator-spacing-inline-start, 0);
|
|
62
|
+
margin-inline-end: var(--scb-progress-indicator-spacing-inline-end, 0);
|
|
63
|
+
--progress-fill: var(--md-sys-color-primary);
|
|
64
|
+
}
|
|
65
|
+
:host([type='linear']) {
|
|
66
|
+
display: block;
|
|
67
|
+
width: 100%;
|
|
68
|
+
}
|
|
69
|
+
.linear-loader {
|
|
70
|
+
height: 100%;
|
|
71
|
+
width: 40%;
|
|
72
|
+
background: var(--progress-fill);
|
|
73
|
+
border-radius: 3px;
|
|
74
|
+
animation: linear-progress 1.2s cubic-bezier(.4,0,.2,1) infinite;
|
|
75
|
+
}
|
|
76
|
+
.linear-static {
|
|
77
|
+
height: 100%;
|
|
78
|
+
border-radius: 3px;
|
|
79
|
+
transition: width 0.3s ease;
|
|
80
|
+
background: var(--progress-fill);
|
|
81
|
+
}
|
|
82
|
+
@keyframes linear-progress {
|
|
83
|
+
0% { margin-left: -40%; width: 40%; }
|
|
84
|
+
50% { margin-left: 30%; width: 60%; }
|
|
85
|
+
100% { margin-left: 100%; width: 40%; }
|
|
86
|
+
}
|
|
87
|
+
`],c);s([a({type:String})],e.prototype,"id",void 0);s([a({type:String,reflect:!0})],e.prototype,"type",void 0);s([a({type:Number,reflect:!0})],e.prototype,"progress",void 0);s([a({type:Boolean,attribute:"is-static"})],e.prototype,"isStatic",void 0);s([a({type:String,reflect:!0})],e.prototype,"spacing",void 0);s([a({type:String,attribute:"spacing-top",reflect:!0})],e.prototype,"spacingTop",void 0);s([a({type:String,attribute:"spacing-bottom",reflect:!0})],e.prototype,"spacingBottom",void 0);s([a({type:String,attribute:"spacing-left",reflect:!0})],e.prototype,"spacingLeft",void 0);s([a({type:String,attribute:"spacing-right",reflect:!0})],e.prototype,"spacingRight",void 0);e=s([g("scb-progress-indicator")],e);
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import"../../vendor/vendor-material.js";import{_ as h,b,g as f,h as a,m as u,y as r}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(o,i,c){try{customElements.get(o)||t(o,i,c)}catch(d){var p=String(d||"");if(p.indexOf("already been used")===-1&&p.indexOf("NotSupportedError")===-1)throw d}}}}catch{}})();var n,e=(n=class extends h{constructor(...t){super(...t),this.width="100%",this.active=!1,this.disabled=!1,this.href="",this.label="",this.position="top",this._stepId=`scb-step-${Math.random().toString(36).slice(2)}`}updated(t){super.updated?.(t),this.style.setProperty("--progress-step-width",this.width)}_onClick(){const t={width:this.width,label:this.label,active:this.active,disabled:this.disabled,href:this.href||void 0};this.dispatchEvent(new CustomEvent("step-click",{detail:t,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("stepclick",{detail:t,bubbles:!0,composed:!0}))}firstUpdated(t){super.firstUpdated?.(t),this._setupTooltipPositioning()}_setupTooltipPositioning(){new MutationObserver(()=>this._adjustTooltipPosition()).observe(this,{attributes:!0,childList:!0,subtree:!0}),window.addEventListener("resize",()=>this._adjustTooltipPosition())}_adjustTooltipPosition(){const t=this.renderRoot.querySelector(".tooltip");if(!t)return;t.style.left="50%",t.style.right="",t.style.transform="translateX(-50%)",t.classList.remove("tooltip-left","tooltip-right");const o=t.getBoundingClientRect(),i=8;o.right>window.innerWidth-i&&(t.style.left="auto",t.style.right=`${i}px`,t.style.transform="none",t.classList.add("tooltip-right")),o.left<i&&(t.style.left=`${i}px`,t.style.right="auto",t.style.transform="none",t.classList.add("tooltip-left"))}render(){return r`
|
|
2
|
+
${this.href&&!this.disabled?r`
|
|
3
|
+
<a
|
|
4
|
+
id=${this._stepId}
|
|
5
|
+
class="progress-step"
|
|
6
|
+
href=${this.href}
|
|
7
|
+
@click=${this._onClick}
|
|
8
|
+
tabindex="0"
|
|
9
|
+
role="link"
|
|
10
|
+
aria-disabled="false"
|
|
11
|
+
>
|
|
12
|
+
<md-ripple></md-ripple>
|
|
13
|
+
</a>
|
|
14
|
+
`:r`
|
|
15
|
+
<div
|
|
16
|
+
id=${this._stepId}
|
|
17
|
+
class="progress-step"
|
|
18
|
+
@click=${this._onClick}
|
|
19
|
+
tabindex=${this.disabled?-1:0}
|
|
20
|
+
role="button"
|
|
21
|
+
aria-disabled=${this.disabled?"true":"false"}
|
|
22
|
+
>
|
|
23
|
+
${this.disabled?"":r`<md-ripple></md-ripple>`}
|
|
24
|
+
</div>
|
|
25
|
+
`}
|
|
26
|
+
${this.disabled?"":r`<md-focus-ring for="${this._stepId}"></md-focus-ring>`}
|
|
27
|
+
${this.label&&!this.disabled?r`<div class="tooltip ${this.position==="bottom"?"bottom":"top"}">${this.label}</div>`:""}
|
|
28
|
+
`}},n.styles=b`
|
|
29
|
+
:host {
|
|
30
|
+
display: block;
|
|
31
|
+
width: var(--progress-step-width, 100%);
|
|
32
|
+
height: 100%;
|
|
33
|
+
cursor: pointer;
|
|
34
|
+
background: transparent;
|
|
35
|
+
position: relative;
|
|
36
|
+
}
|
|
37
|
+
.progress-step {
|
|
38
|
+
width: 100%;
|
|
39
|
+
height: 100%;
|
|
40
|
+
background: transparent;
|
|
41
|
+
position: relative;
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
border-right: 2px solid var(--md-sys-color-surface);
|
|
44
|
+
outline: none;
|
|
45
|
+
box-shadow: none;
|
|
46
|
+
display: block;
|
|
47
|
+
}
|
|
48
|
+
:host(.last-step) .progress-step {
|
|
49
|
+
border-right: none !important;
|
|
50
|
+
}
|
|
51
|
+
.progress-step:focus {
|
|
52
|
+
outline: none;
|
|
53
|
+
box-shadow: none;
|
|
54
|
+
}
|
|
55
|
+
:host([active]) .progress-step {
|
|
56
|
+
border-right: 2px solid var(--md-sys-color-surface);
|
|
57
|
+
}
|
|
58
|
+
:host([disabled]) {
|
|
59
|
+
cursor: not-allowed;
|
|
60
|
+
}
|
|
61
|
+
:host([disabled]) .progress-step {
|
|
62
|
+
background: #e6e6e699;
|
|
63
|
+
border-right: 2px solid #e6e6e699;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
md-focus-ring {
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
position: absolute;
|
|
69
|
+
inset: 0;
|
|
70
|
+
opacity: 0;
|
|
71
|
+
border-radius: 0;
|
|
72
|
+
transition: opacity 0.15s;
|
|
73
|
+
z-index: 4;
|
|
74
|
+
}
|
|
75
|
+
.progress-step:focus + md-focus-ring,
|
|
76
|
+
.progress-step:focus-visible + md-focus-ring {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.tooltip {
|
|
81
|
+
visibility: hidden;
|
|
82
|
+
opacity: 0;
|
|
83
|
+
position: absolute;
|
|
84
|
+
left: 50%;
|
|
85
|
+
transform: translateX(-50%);
|
|
86
|
+
z-index: 10;
|
|
87
|
+
max-width: 220px;
|
|
88
|
+
width: max-content;
|
|
89
|
+
background: var(--md-sys-color-inverse-surface);
|
|
90
|
+
border-radius: var(--md-sys-shape-corner-extra-small);
|
|
91
|
+
padding: var(--spacing-2) var(--spacing-3);
|
|
92
|
+
color: var(--md-sys-color-inverse-on-surface);
|
|
93
|
+
font-family: var(--brand-font);
|
|
94
|
+
font-size: var(--md-sys-typescale-body-small-size);
|
|
95
|
+
font-style: normal;
|
|
96
|
+
line-height: var(--md-sys-typescale-body-small-line-height);
|
|
97
|
+
letter-spacing: var(--md-sys-typescale-body-small-tracking);
|
|
98
|
+
white-space: normal;
|
|
99
|
+
pointer-events: none;
|
|
100
|
+
transition: opacity 0.2s, visibility 0.2s;
|
|
101
|
+
text-align: center;
|
|
102
|
+
}
|
|
103
|
+
.tooltip.top {
|
|
104
|
+
top: calc(100% + 10px);
|
|
105
|
+
}
|
|
106
|
+
.tooltip.bottom {
|
|
107
|
+
bottom: calc(100% + 10px);
|
|
108
|
+
}
|
|
109
|
+
.progress-step:hover ~ .tooltip,
|
|
110
|
+
.progress-step:focus ~ .tooltip {
|
|
111
|
+
visibility: visible;
|
|
112
|
+
opacity: 1;
|
|
113
|
+
}
|
|
114
|
+
.tooltip::after {
|
|
115
|
+
content: '';
|
|
116
|
+
position: absolute;
|
|
117
|
+
left: 50%;
|
|
118
|
+
transform: translateX(-50%);
|
|
119
|
+
width: 0;
|
|
120
|
+
height: 0;
|
|
121
|
+
pointer-events: none;
|
|
122
|
+
display: block;
|
|
123
|
+
}
|
|
124
|
+
.tooltip.top::after {
|
|
125
|
+
top: -6px;
|
|
126
|
+
border-left: 8px solid transparent;
|
|
127
|
+
border-right: 8px solid transparent;
|
|
128
|
+
border-bottom: 8px solid var(--md-sys-color-inverse-surface);
|
|
129
|
+
border-top: none;
|
|
130
|
+
}
|
|
131
|
+
.tooltip.bottom::after {
|
|
132
|
+
bottom: -6px;
|
|
133
|
+
border-left: 8px solid transparent;
|
|
134
|
+
border-right: 8px solid transparent;
|
|
135
|
+
border-top: 8px solid var(--md-sys-color-inverse-surface);
|
|
136
|
+
border-bottom: none;
|
|
137
|
+
}
|
|
138
|
+
.tooltip.tooltip-left::after {
|
|
139
|
+
left: 2px;
|
|
140
|
+
transform: none;
|
|
141
|
+
}
|
|
142
|
+
.tooltip.tooltip-right::after {
|
|
143
|
+
right: 2px;
|
|
144
|
+
left: auto;
|
|
145
|
+
transform: none;
|
|
146
|
+
}
|
|
147
|
+
`,n);s([a({type:String})],e.prototype,"width",void 0);s([a({type:Boolean,reflect:!0})],e.prototype,"active",void 0);s([a({type:Boolean,reflect:!0})],e.prototype,"disabled",void 0);s([a({type:String,reflect:!0})],e.prototype,"href",void 0);s([a({type:String})],e.prototype,"label",void 0);s([a({type:String})],e.prototype,"position",void 0);s([u()],e.prototype,"_stepId",void 0);e=s([f("scb-progress-step")],e);export{e as ScbProgressStep};
|