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,23 @@
|
|
|
1
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
2
|
+
export declare class ScbCookiesConsent extends LitElement {
|
|
3
|
+
open: boolean;
|
|
4
|
+
autoRemove: boolean;
|
|
5
|
+
title: string;
|
|
6
|
+
supportingText: string;
|
|
7
|
+
ariaLabel: string;
|
|
8
|
+
spacing: undefined;
|
|
9
|
+
spacingTop: undefined;
|
|
10
|
+
spacingBottom: undefined;
|
|
11
|
+
spacingLeft: undefined;
|
|
12
|
+
spacingRight: undefined;
|
|
13
|
+
static styles: import('lit').CSSResult;
|
|
14
|
+
private _updateButtonWidth;
|
|
15
|
+
private mapSpacingToken;
|
|
16
|
+
private applySpacing;
|
|
17
|
+
firstUpdated(_changed: PropertyValues): void;
|
|
18
|
+
protected updated(changed: PropertyValues): void;
|
|
19
|
+
connectedCallback(): void;
|
|
20
|
+
disconnectedCallback(): void;
|
|
21
|
+
closeAndRemove(eventName: string): void;
|
|
22
|
+
render(): import('lit-html').TemplateResult<1> | null;
|
|
23
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
export declare class ScbDatepicker extends LitElement {
|
|
3
|
+
private _currentDate;
|
|
4
|
+
private _selectedDate;
|
|
5
|
+
private _showMonthDropdown;
|
|
6
|
+
private _showYearDropdown;
|
|
7
|
+
variant: 'datetime-local' | 'date';
|
|
8
|
+
lang: 'sv' | 'en';
|
|
9
|
+
selectedValue: string;
|
|
10
|
+
open: boolean;
|
|
11
|
+
private _selectedHour;
|
|
12
|
+
private _selectedMinute;
|
|
13
|
+
private readonly _viewportMargin;
|
|
14
|
+
private readonly _popupOffset;
|
|
15
|
+
private _onWindowReposition;
|
|
16
|
+
private _isRenderedInsideDialog;
|
|
17
|
+
private _positionPopupWithinViewport;
|
|
18
|
+
static styles: import('lit').CSSResult[];
|
|
19
|
+
updated(changed: PropertyValues): void;
|
|
20
|
+
disconnectedCallback(): void;
|
|
21
|
+
private _monthNames;
|
|
22
|
+
render(): TemplateResult;
|
|
23
|
+
private _getMonthDays;
|
|
24
|
+
private _outsideClickHandler;
|
|
25
|
+
private _toggleMonthDropdown;
|
|
26
|
+
private _toggleYearDropdown;
|
|
27
|
+
private _onMonthChangeCustom;
|
|
28
|
+
private _onYearChangeCustom;
|
|
29
|
+
private _prevMonth;
|
|
30
|
+
private _prevYear;
|
|
31
|
+
private _nextMonth;
|
|
32
|
+
private _nextYear;
|
|
33
|
+
private _isToday;
|
|
34
|
+
private _isSelected;
|
|
35
|
+
private _selectDate;
|
|
36
|
+
private _fireDateTimeChange;
|
|
37
|
+
private _onTimeChange;
|
|
38
|
+
private _close;
|
|
39
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
type Variant = 'basic' | 'alert' | 'confirm' | 'choose' | 'form' | 'floating' | 'iframe';
|
|
3
|
+
type FormMethod = '' | 'GET' | 'POST' | 'PUT' | 'DELETE';
|
|
4
|
+
export declare class ScbDialog extends LitElement {
|
|
5
|
+
open: boolean;
|
|
6
|
+
maxW?: string;
|
|
7
|
+
maxH?: string;
|
|
8
|
+
zIndex?: number;
|
|
9
|
+
inSb: boolean;
|
|
10
|
+
scrimClose: boolean;
|
|
11
|
+
spacing: undefined;
|
|
12
|
+
spacingTop: undefined;
|
|
13
|
+
spacingBottom: undefined;
|
|
14
|
+
spacingLeft: undefined;
|
|
15
|
+
spacingRight: undefined;
|
|
16
|
+
variant: Variant;
|
|
17
|
+
label: string;
|
|
18
|
+
icon: string;
|
|
19
|
+
supportingText: string;
|
|
20
|
+
okButton: string;
|
|
21
|
+
cancelButton: string;
|
|
22
|
+
deleteButton: string;
|
|
23
|
+
confirmButton: string;
|
|
24
|
+
denyButton: string;
|
|
25
|
+
resetButton: string;
|
|
26
|
+
submitButton: string;
|
|
27
|
+
formId: string;
|
|
28
|
+
formAction: string;
|
|
29
|
+
formMethod: FormMethod;
|
|
30
|
+
private __lastTriggerEl;
|
|
31
|
+
static styles: import('lit').CSSResult;
|
|
32
|
+
private __getActionFromEvent;
|
|
33
|
+
private __onDocumentClick;
|
|
34
|
+
private __onDocumentKeydown;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
|
+
private __applyZIndex;
|
|
38
|
+
private __applyMaxSize;
|
|
39
|
+
protected updated(ch: Map<PropertyKey, unknown>): void;
|
|
40
|
+
private __updateTriggersExpanded;
|
|
41
|
+
private __toggleScrollLock;
|
|
42
|
+
private mapSpacingToken;
|
|
43
|
+
private __applySpacing;
|
|
44
|
+
private __setOpen;
|
|
45
|
+
private __fire;
|
|
46
|
+
private __getSlottedElements;
|
|
47
|
+
private __appendHiddenFormValue;
|
|
48
|
+
private __clearGeneratedFormValues;
|
|
49
|
+
private __syncSlottedFormValues;
|
|
50
|
+
private __validateFormAndSlottedFields;
|
|
51
|
+
private __onScrimClick;
|
|
52
|
+
private __onOk;
|
|
53
|
+
private __onCancel;
|
|
54
|
+
private __onConfirm;
|
|
55
|
+
private __onDeny;
|
|
56
|
+
private __onReset;
|
|
57
|
+
private __onSubmit;
|
|
58
|
+
private __onKeydownTrap;
|
|
59
|
+
private __slotIsEmpty;
|
|
60
|
+
private renderHeader;
|
|
61
|
+
private renderContentDefault;
|
|
62
|
+
private renderContentIframe;
|
|
63
|
+
private renderActions;
|
|
64
|
+
private renderBody;
|
|
65
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
66
|
+
}
|
|
67
|
+
declare global {
|
|
68
|
+
interface HTMLElementTagNameMap {
|
|
69
|
+
'scb-dialog': ScbDialog;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
type Variant = 'thin' | 'bold';
|
|
3
|
+
type Direction = 'horizontal' | 'vertical';
|
|
4
|
+
type Inset = 'none' | 'both' | 'start' | 'end';
|
|
5
|
+
type Anchor = 'start' | 'end';
|
|
6
|
+
export declare class ScbDivider extends LitElement {
|
|
7
|
+
#private;
|
|
8
|
+
variant: Variant;
|
|
9
|
+
direction: Direction;
|
|
10
|
+
inset: Inset;
|
|
11
|
+
overlay: boolean;
|
|
12
|
+
anchor: Anchor;
|
|
13
|
+
/**
|
|
14
|
+
* Styr avstånd ortogonalt mot avdelaren.
|
|
15
|
+
* - Horizontal divider: spacing ger margin-block (avstånd ovan/under).
|
|
16
|
+
* - Vertical divider: spacing ger margin-inline (avstånd vänster/höger), om inte overlay används.
|
|
17
|
+
*
|
|
18
|
+
* Värden:
|
|
19
|
+
* - "N" (0–14) mappas till var(--spacing-N)
|
|
20
|
+
* - Annars tas värdet som ett CSS-värde (t.ex. "16px", "1rem", "var(--spacing-6)").
|
|
21
|
+
*/
|
|
22
|
+
spacing: undefined;
|
|
23
|
+
static styles: import('lit').CSSResult;
|
|
24
|
+
firstUpdated(): void;
|
|
25
|
+
updated(changed: Map<string, unknown>): void;
|
|
26
|
+
private mapSpacingToken;
|
|
27
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
28
|
+
}
|
|
29
|
+
declare global {
|
|
30
|
+
interface HTMLElementTagNameMap {
|
|
31
|
+
'scb-divider': ScbDivider;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
|
|
4
|
+
<scb-drawer>
|
|
5
|
+
|
|
6
|
+
Sidomeny som kan vara static eller floating.
|
|
7
|
+
Kontroll/styrning
|
|
8
|
+
— Triggers i DOM:
|
|
9
|
+
• aria-controls="<drawer-id>" växlar mellan öppet och stängt; aria-expanded uppdateras automatiskt på samma element.
|
|
10
|
+
• data-drawer-open|close|toggle="<drawer-id>" öppnar/stänger/växlar explicit. aria-expanded uppdateras inte; lägg även aria-controls om state ska speglas.
|
|
11
|
+
• Triggers hittas via event.composedPath() och fungerar även över shadow DOM; om båda attributtyperna används på samma element prioriteras data-drawer-*.
|
|
12
|
+
— Programmatiskt: element.open = true|false. Alla effekter hanteras, exempelvis overlay, scroll-lås, fokus och events.
|
|
13
|
+
Overlay
|
|
14
|
+
— Aktiveras med overlay och ritas som global scrim på document.body.
|
|
15
|
+
— Klick på overlay stänger om close-on-overlay är satt (default: true).
|
|
16
|
+
— lock-scroll låser <html> och <body> medan drawern är öppen.
|
|
17
|
+
— Klick utanför drawern stänger komponenten. Utan overlay: klick utanför själva drawern. Med overlay: klick på overlay (styrt av close-on-overlay).
|
|
18
|
+
Fokus och tangentbord
|
|
19
|
+
— ESC stänger.
|
|
20
|
+
— I overlay-läge finns en enkel focus trap (Tab/Shift+Tab).
|
|
21
|
+
— Fokus återställs till senaste trigger när drawern stängs.
|
|
22
|
+
Modal
|
|
23
|
+
— modal sätter role="dialog" och aria-modal="true".
|
|
24
|
+
Händelser
|
|
25
|
+
— "scb-drawer-opened" och "scb-drawer-closed" bubblar vid state-ändring och fångas av Blazor-bridgen.
|
|
26
|
+
— "scbdraweropened" och "scbdrawerclosed" är alias för samma händelser.
|
|
27
|
+
*/
|
|
28
|
+
export declare class ScbDrawer extends LitElement {
|
|
29
|
+
floating: boolean;
|
|
30
|
+
left: boolean;
|
|
31
|
+
right: boolean;
|
|
32
|
+
open: boolean;
|
|
33
|
+
overlay: boolean;
|
|
34
|
+
lockScroll: boolean;
|
|
35
|
+
closeOnOverlay: boolean;
|
|
36
|
+
modal: boolean;
|
|
37
|
+
private __effectiveSide;
|
|
38
|
+
private __lastTriggerEl;
|
|
39
|
+
private static __overlayEl;
|
|
40
|
+
private static __overlayStack;
|
|
41
|
+
private static __lockedCount;
|
|
42
|
+
private static __prevDocOverflow;
|
|
43
|
+
private static __prevBodyOverflow;
|
|
44
|
+
private static __prevDocPaddingRight;
|
|
45
|
+
private static __prevBodyPaddingRight;
|
|
46
|
+
private __lastTriggerWasAriaControls;
|
|
47
|
+
private static __ensureOverlayStyles;
|
|
48
|
+
private static __ensureOverlay;
|
|
49
|
+
private static __showOverlay;
|
|
50
|
+
private static __hideOverlay;
|
|
51
|
+
private static __lockScrollEnable;
|
|
52
|
+
private static __lockScrollDisable;
|
|
53
|
+
static styles: import('lit').CSSResult;
|
|
54
|
+
render(): TemplateResult;
|
|
55
|
+
connectedCallback(): void;
|
|
56
|
+
disconnectedCallback(): void;
|
|
57
|
+
private __getActionFromEvent;
|
|
58
|
+
private __onDocumentClick;
|
|
59
|
+
private __onDocumentKeydown;
|
|
60
|
+
private __getFocusable;
|
|
61
|
+
private __setOpen;
|
|
62
|
+
private __syncLastTriggerExpanded;
|
|
63
|
+
private __syncEffectiveSide;
|
|
64
|
+
protected willUpdate(changed: Map<string, unknown>): void;
|
|
65
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
66
|
+
private __applyOpenSideEffects;
|
|
67
|
+
}
|
|
68
|
+
declare global {
|
|
69
|
+
interface HTMLElementTagNameMap {
|
|
70
|
+
'scb-drawer': ScbDrawer;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
type DropZoneType = 'default' | 'image';
|
|
3
|
+
export declare class ScbDropZone extends LitElement {
|
|
4
|
+
static formAssociated: boolean;
|
|
5
|
+
private _internals;
|
|
6
|
+
/** Variant som styr vilka filer som får väljas som standard. */
|
|
7
|
+
type: DropZoneType;
|
|
8
|
+
/** Namn som används när komponenten skickas i formulär. */
|
|
9
|
+
name: string;
|
|
10
|
+
/** Tillåter val av flera filer. */
|
|
11
|
+
multiple: boolean;
|
|
12
|
+
/** Rubrik i drop-zonen. */
|
|
13
|
+
label: string;
|
|
14
|
+
/** Förklarande text i drop-zonen. */
|
|
15
|
+
supportingText: string;
|
|
16
|
+
/** Hjälptext under den förklarande texten. */
|
|
17
|
+
metaText: string;
|
|
18
|
+
/** Text på primär knapp. */
|
|
19
|
+
buttonLabel: string;
|
|
20
|
+
/** Text på knappen för att ersätta vald fil. */
|
|
21
|
+
replaceButtonLabel: string;
|
|
22
|
+
/** Text på knappen för att ta bort vald fil. */
|
|
23
|
+
removeButtonLabel: string;
|
|
24
|
+
/** Litet prefix ovanför förhandsvisningens rubrik. */
|
|
25
|
+
previewEyebrow: string;
|
|
26
|
+
/** Rubrik i förhandsvisningen när ingen fil är vald. */
|
|
27
|
+
emptyPreviewTitle: string;
|
|
28
|
+
/** Text i förhandsvisningen när ingen fil är vald. */
|
|
29
|
+
emptyPreviewMeta: string;
|
|
30
|
+
/** Accept-värde för native file input. */
|
|
31
|
+
accept: string;
|
|
32
|
+
/** Döljer förhandsvisningspanelen. */
|
|
33
|
+
hidePreview: boolean;
|
|
34
|
+
/** Visar befintlig fil i förhandsvisningen i enfilsläge. */
|
|
35
|
+
showExistingPreview: boolean;
|
|
36
|
+
/** Inaktiverar uppladdning. */
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
/** Förhandsvisningens källa för befintlig fil. */
|
|
39
|
+
previewSrc: string;
|
|
40
|
+
/** Alt-text för förhandsvisning av befintlig fil. */
|
|
41
|
+
previewAlt: string;
|
|
42
|
+
/** Rubrik i förhandsvisningen när befintlig fil finns. */
|
|
43
|
+
previewTitle: string;
|
|
44
|
+
/** Metatext i förhandsvisningen när befintlig fil finns. */
|
|
45
|
+
previewMeta: string;
|
|
46
|
+
/** Referensvärde för befintlig sparad fil. */
|
|
47
|
+
existingValue: string;
|
|
48
|
+
/** Fältnamn som används för befintlig sparad fil i formulär. */
|
|
49
|
+
existingValueName: string;
|
|
50
|
+
/** Fältnamn som används för borttagningsönskemål i formulär. */
|
|
51
|
+
removeValueName: string;
|
|
52
|
+
private _isDragOver;
|
|
53
|
+
private _selectedPreviewKind;
|
|
54
|
+
private _selectedPreviewSrc;
|
|
55
|
+
private _selectedPreviewAlt;
|
|
56
|
+
private _selectedPreviewTitle;
|
|
57
|
+
private _selectedPreviewMeta;
|
|
58
|
+
private _selectedPreviewItems;
|
|
59
|
+
private _markedForRemoval;
|
|
60
|
+
private _dragDepth;
|
|
61
|
+
private _previewSource;
|
|
62
|
+
private _form;
|
|
63
|
+
private _formDataHandler;
|
|
64
|
+
constructor();
|
|
65
|
+
static styles: import('lit').CSSResult;
|
|
66
|
+
private get _resolvedAccept();
|
|
67
|
+
private get _hasExistingPreview();
|
|
68
|
+
private get _resolvedPreviewKind();
|
|
69
|
+
private get _hasPreview();
|
|
70
|
+
private get _resolvedLabel();
|
|
71
|
+
private get _resolvedSupportingText();
|
|
72
|
+
private get _resolvedMetaText();
|
|
73
|
+
private get _resolvedButtonLabel();
|
|
74
|
+
private get _resolvedReplaceButtonLabel();
|
|
75
|
+
private get _resolvedRemoveButtonLabel();
|
|
76
|
+
private get _resolvedPreviewEyebrow();
|
|
77
|
+
private get _resolvedEmptyPreviewTitle();
|
|
78
|
+
private get _resolvedEmptyPreviewMeta();
|
|
79
|
+
private get _resolvedPreviewSrc();
|
|
80
|
+
private get _resolvedPreviewAlt();
|
|
81
|
+
private get _resolvedPreviewTitle();
|
|
82
|
+
private get _resolvedPreviewMeta();
|
|
83
|
+
connectedCallback(): void;
|
|
84
|
+
disconnectedCallback(): void;
|
|
85
|
+
updated(changedProperties: Map<string, unknown>): void;
|
|
86
|
+
formDisabledCallback(disabled: boolean): void;
|
|
87
|
+
formResetCallback(): void;
|
|
88
|
+
private _syncFormValue;
|
|
89
|
+
private _appendToFormData;
|
|
90
|
+
openPicker(): void;
|
|
91
|
+
setPreviewState(state: {
|
|
92
|
+
src?: string;
|
|
93
|
+
alt?: string;
|
|
94
|
+
title?: string;
|
|
95
|
+
meta?: string;
|
|
96
|
+
}): void;
|
|
97
|
+
setExistingFileState(state: {
|
|
98
|
+
value?: string;
|
|
99
|
+
src?: string;
|
|
100
|
+
alt?: string;
|
|
101
|
+
title?: string;
|
|
102
|
+
meta?: string;
|
|
103
|
+
}): void;
|
|
104
|
+
clearPreviewState(): void;
|
|
105
|
+
clearExistingFileState(): void;
|
|
106
|
+
private _dispatch;
|
|
107
|
+
private _handleFiles;
|
|
108
|
+
private _onZoneClick;
|
|
109
|
+
private _onZoneKeydown;
|
|
110
|
+
private _preventDefaultDrag;
|
|
111
|
+
private _onDragEnter;
|
|
112
|
+
private _onDragOver;
|
|
113
|
+
private _onDragLeave;
|
|
114
|
+
private _onDrop;
|
|
115
|
+
private _onNativeInputChange;
|
|
116
|
+
private _onChooseButtonClick;
|
|
117
|
+
private _onReplaceButtonClick;
|
|
118
|
+
private _onRemoveButtonClick;
|
|
119
|
+
private _onRemoveSelectedItemClick;
|
|
120
|
+
private _isAcceptedFile;
|
|
121
|
+
private _setSelectedFilesState;
|
|
122
|
+
private _clearSelectedFileState;
|
|
123
|
+
private _applySelectedPreviewItems;
|
|
124
|
+
private _removeSelectedItemAt;
|
|
125
|
+
private _renderSelectedImageCards;
|
|
126
|
+
private _clearNativeInputValue;
|
|
127
|
+
private _revokeObjectUrl;
|
|
128
|
+
private _revokeObjectUrlsForItems;
|
|
129
|
+
private _getPreviewKindForFile;
|
|
130
|
+
private _getFileExtension;
|
|
131
|
+
private _getFileExtensionLabel;
|
|
132
|
+
private _getFileTypeLabel;
|
|
133
|
+
private _formatFileSize;
|
|
134
|
+
private _renderPreviewMedia;
|
|
135
|
+
private _renderPreview;
|
|
136
|
+
render(): TemplateResult;
|
|
137
|
+
}
|
|
138
|
+
declare global {
|
|
139
|
+
interface HTMLElementTagNameMap {
|
|
140
|
+
'scb-drop-zone': ScbDropZone;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { LitElement, PropertyValues, TemplateResult } from 'lit';
|
|
2
|
+
export type ScbDropdownVariant = 'filled' | 'outlined' | 'filled-tonal' | 'text';
|
|
3
|
+
export type ScbDropdownSize = 'small' | 'medium' | 'large';
|
|
4
|
+
export declare class ScbDropdown extends LitElement {
|
|
5
|
+
static styles: import('lit').CSSResult;
|
|
6
|
+
label: string;
|
|
7
|
+
variant: ScbDropdownVariant;
|
|
8
|
+
size: ScbDropdownSize;
|
|
9
|
+
open: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
spacing: undefined;
|
|
12
|
+
spacingTop: undefined;
|
|
13
|
+
spacingBottom: undefined;
|
|
14
|
+
spacingLeft: undefined;
|
|
15
|
+
spacingRight: undefined;
|
|
16
|
+
menuGap: string | null;
|
|
17
|
+
width: string | null;
|
|
18
|
+
minWidth: string | null;
|
|
19
|
+
maxWidth: string | null;
|
|
20
|
+
dataIndex: string | null;
|
|
21
|
+
ariaCurrent: string | null;
|
|
22
|
+
private _triggerEl;
|
|
23
|
+
private _slotEl;
|
|
24
|
+
private _panelSurfaceEl;
|
|
25
|
+
private _panelInnerEl;
|
|
26
|
+
private _slottedMenuEl;
|
|
27
|
+
private _openSettledTimer;
|
|
28
|
+
private _menuCloseTimer;
|
|
29
|
+
private _panelResizeObserver;
|
|
30
|
+
private _panelHeightSyncRaf;
|
|
31
|
+
private _onDocumentClickBound;
|
|
32
|
+
private _onDocumentKeydownBound;
|
|
33
|
+
private _onSlottedMenuOpen;
|
|
34
|
+
private _onSlottedMenuClose;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
38
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
39
|
+
private _applyPanelVars;
|
|
40
|
+
private _applyPanelSizing;
|
|
41
|
+
private _setupPanelResizeObserver;
|
|
42
|
+
private _schedulePanelHeightSync;
|
|
43
|
+
private _syncPanelMaxHeightByOpen;
|
|
44
|
+
private _mapSpacingToken;
|
|
45
|
+
private _mapHostSpacingToken;
|
|
46
|
+
private _applySpacing;
|
|
47
|
+
private _onSlotChange;
|
|
48
|
+
private _syncSlottedMenu;
|
|
49
|
+
private _detachSlottedMenuListeners;
|
|
50
|
+
private _syncSlottedMenuOpen;
|
|
51
|
+
private _syncOverflowVisibilityByOpen;
|
|
52
|
+
private _getPanelTransitionMs;
|
|
53
|
+
private _getTransitionMs;
|
|
54
|
+
private _applyInertByOpen;
|
|
55
|
+
private _supportsInert;
|
|
56
|
+
private _collectFocusableFromSlot;
|
|
57
|
+
private _removeTabIndexesIfNeeded;
|
|
58
|
+
private _restoreTabIndexesIfNeeded;
|
|
59
|
+
private _closeAllSubMenus;
|
|
60
|
+
focus(options?: FocusOptions): void;
|
|
61
|
+
private _onTriggerClick;
|
|
62
|
+
private _applyChevronState;
|
|
63
|
+
private _ensureTriggerChevronEl;
|
|
64
|
+
protected render(): TemplateResult;
|
|
65
|
+
}
|
|
66
|
+
declare global {
|
|
67
|
+
interface HTMLElementTagNameMap {
|
|
68
|
+
'scb-dropdown': ScbDropdown;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { LitElement, TemplateResult, PropertyValues } from 'lit';
|
|
2
|
+
type FabSize = 'small' | 'medium' | 'large';
|
|
3
|
+
type FabType = 'regular' | 'extended';
|
|
4
|
+
export declare class ScbFab extends LitElement {
|
|
5
|
+
#private;
|
|
6
|
+
/** Ikonens namn (t.ex. "edit"). */
|
|
7
|
+
icon: string;
|
|
8
|
+
/** Text som visas när type="extended". */
|
|
9
|
+
label: string;
|
|
10
|
+
/** Tillgänglighetslabel. Krävs för type="regular". */
|
|
11
|
+
ariaLabel: string;
|
|
12
|
+
/** Storlek. */
|
|
13
|
+
size: FabSize;
|
|
14
|
+
/** Typ av FAB. */
|
|
15
|
+
type: FabType;
|
|
16
|
+
/** Inaktiverad. */
|
|
17
|
+
disabled: boolean;
|
|
18
|
+
/** Vertikalt avstånd till omgivande innehåll. "N" mappar till var(--spacing-N). */
|
|
19
|
+
spacing: undefined;
|
|
20
|
+
/** Överkantens avstånd. Om satt går före spacing. 0–14 mappar till var(--spacing-N), annars CSS-värde. */
|
|
21
|
+
spacingTop: undefined;
|
|
22
|
+
/** Nederkantens avstånd. Om satt går före spacing. 0–14 mappar till var(--spacing-N), annars CSS-värde. */
|
|
23
|
+
spacingBottom: undefined;
|
|
24
|
+
/** Vänsterkantens avstånd. 0–14 mappar till var(--spacing-N), annars CSS-värde. */
|
|
25
|
+
spacingLeft: undefined;
|
|
26
|
+
/** Högerkantens avstånd. 0–14 mappar till var(--spacing-N), annars CSS-värde. */
|
|
27
|
+
spacingRight: undefined;
|
|
28
|
+
static styles: import('lit').CSSResult;
|
|
29
|
+
connectedCallback(): void;
|
|
30
|
+
disconnectedCallback(): void;
|
|
31
|
+
protected firstUpdated(): void;
|
|
32
|
+
protected updated(changed: PropertyValues): void;
|
|
33
|
+
private mapSpacing;
|
|
34
|
+
private __renderMd;
|
|
35
|
+
render(): TemplateResult;
|
|
36
|
+
}
|
|
37
|
+
declare global {
|
|
38
|
+
interface HTMLElementTagNameMap {
|
|
39
|
+
'scb-fab': ScbFab;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class ScbFactCardContent extends LitElement {
|
|
3
|
+
#private;
|
|
4
|
+
title: string;
|
|
5
|
+
factCardTitle: string;
|
|
6
|
+
subtitle: string;
|
|
7
|
+
supportingText: string;
|
|
8
|
+
static styles: import('lit').CSSResult;
|
|
9
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
10
|
+
}
|
|
11
|
+
declare global {
|
|
12
|
+
interface HTMLElementTagNameMap {
|
|
13
|
+
'scb-fact-card-content': ScbFactCardContent;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class ScbFactCard extends LitElement {
|
|
3
|
+
#private;
|
|
4
|
+
private static __iconLoaded;
|
|
5
|
+
private static __instances;
|
|
6
|
+
private static __docListenerAttached;
|
|
7
|
+
private static __handleDocClick;
|
|
8
|
+
private static __ensureDocListener;
|
|
9
|
+
private static __maybeRemoveDocListener;
|
|
10
|
+
private __onCloseClick;
|
|
11
|
+
variant: 'filled' | 'outlined';
|
|
12
|
+
size: 'small' | 'medium' | 'large';
|
|
13
|
+
title: string;
|
|
14
|
+
subtitle: string;
|
|
15
|
+
supportingText: string;
|
|
16
|
+
icon: string;
|
|
17
|
+
showCloseButton: boolean;
|
|
18
|
+
open: boolean;
|
|
19
|
+
__lastTriggerEl: HTMLElement | null;
|
|
20
|
+
sizing: 'stretch' | 'content-width' | 'content-height';
|
|
21
|
+
width: string;
|
|
22
|
+
maxWidth: string;
|
|
23
|
+
height: string;
|
|
24
|
+
maxHeight: string;
|
|
25
|
+
/**
|
|
26
|
+
* Vertikalt avstånd till omgivande innehåll.
|
|
27
|
+
* spacing sätter både top och bottom om spacing-top/spacing-bottom inte är satta.
|
|
28
|
+
* "N" (0–14) mappar till var(--spacing-N), annars valfritt CSS-värde (till exempel "16px" eller "var(--spacing-6)").
|
|
29
|
+
*/
|
|
30
|
+
spacing: undefined;
|
|
31
|
+
spacingTop: undefined;
|
|
32
|
+
spacingBottom: undefined;
|
|
33
|
+
spacingLeft: undefined;
|
|
34
|
+
spacingRight: undefined;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
|
+
protected updated(ch: Map<string, unknown>): void;
|
|
38
|
+
private __updateTriggersExpanded;
|
|
39
|
+
private __setOpen;
|
|
40
|
+
static styles: import('lit').CSSResult;
|
|
41
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
42
|
+
firstUpdated(): Promise<void>;
|
|
43
|
+
private mapSpacingToken;
|
|
44
|
+
}
|
|
45
|
+
declare global {
|
|
46
|
+
interface HTMLElementTagNameMap {
|
|
47
|
+
'scb-fact-card': ScbFactCard;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
* Lätt wrapper för en länkkolumn i <scb-footer>.
|
|
4
|
+
* Används endast som datakälla - renderas inte visuellt.
|
|
5
|
+
*
|
|
6
|
+
* <scb-footer-section title="Rubrik">
|
|
7
|
+
* <scb-link href="#">Länk 1</scb-link>
|
|
8
|
+
* <scb-link href="#">Länk 2</scb-link>
|
|
9
|
+
* </scb-footer-section>
|
|
10
|
+
*/
|
|
11
|
+
export declare class ScbFooterSection extends LitElement {
|
|
12
|
+
title: string;
|
|
13
|
+
static styles: import('lit').CSSResult;
|
|
14
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
'scb-footer-section': ScbFooterSection;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LitElement, TemplateResult } from 'lit';
|
|
2
|
+
type FooterLink = {
|
|
3
|
+
label: string;
|
|
4
|
+
href: string;
|
|
5
|
+
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
6
|
+
};
|
|
7
|
+
type FooterSection = {
|
|
8
|
+
title: string;
|
|
9
|
+
links: FooterLink[];
|
|
10
|
+
};
|
|
11
|
+
export declare class ScbFooter extends LitElement {
|
|
12
|
+
#private;
|
|
13
|
+
maxWidth: string;
|
|
14
|
+
deferPaint: boolean;
|
|
15
|
+
spacing: undefined;
|
|
16
|
+
spacingTop: undefined;
|
|
17
|
+
spacingBottom: undefined;
|
|
18
|
+
sections: FooterSection[];
|
|
19
|
+
description: string;
|
|
20
|
+
static styles: import('lit').CSSResult;
|
|
21
|
+
connectedCallback(): void;
|
|
22
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
23
|
+
disconnectedCallback(): void;
|
|
24
|
+
render(): TemplateResult;
|
|
25
|
+
}
|
|
26
|
+
declare global {
|
|
27
|
+
interface HTMLElementTagNameMap {
|
|
28
|
+
'scb-footer': ScbFooter;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
export declare class ScbGalleryGrid extends LitElement {
|
|
3
|
+
#private;
|
|
4
|
+
variant: 'default' | 'masonry';
|
|
5
|
+
enableClickCarousel: boolean;
|
|
6
|
+
private overlayOpen;
|
|
7
|
+
private overlayIndex;
|
|
8
|
+
private overlayImages;
|
|
9
|
+
static styles: import('lit').CSSResult;
|
|
10
|
+
connectedCallback(): void;
|
|
11
|
+
disconnectedCallback(): void;
|
|
12
|
+
protected firstUpdated(): void;
|
|
13
|
+
protected updated(changed: Map<string, unknown>): void;
|
|
14
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
interface HTMLElementTagNameMap {
|
|
18
|
+
'scb-gallery-grid': ScbGalleryGrid;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LitElement } from 'lit';
|
|
2
|
+
/**
|
|
3
|
+
<scb-grid-item>
|
|
4
|
+
Styr enskilda celler i <scb-grid>.
|
|
5
|
+
- Kolumn-span: col-span*, reflectas som CSS-variabler
|
|
6
|
+
- Rad-span: row-span*, omvandlas till "span N" och läses av <scb-grid>
|
|
7
|
+
- Per-item justering: align/justify (align-self/justify-self)
|
|
8
|
+
- fit: fyll radens höjd samt låt första slottade barnet sträcka sig
|
|
9
|
+
*/
|
|
10
|
+
export declare class ScbGridItem extends LitElement {
|
|
11
|
+
#private;
|
|
12
|
+
colSpan?: number;
|
|
13
|
+
colSpanCompact?: number;
|
|
14
|
+
colSpanMedium?: number;
|
|
15
|
+
colSpanExpanded?: number;
|
|
16
|
+
rowSpan?: number;
|
|
17
|
+
rowSpanCompact?: number;
|
|
18
|
+
rowSpanMedium?: number;
|
|
19
|
+
rowSpanExpanded?: number;
|
|
20
|
+
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
21
|
+
justify?: 'start' | 'center' | 'end' | 'stretch';
|
|
22
|
+
fit: boolean;
|
|
23
|
+
static styles: import('lit').CSSResult;
|
|
24
|
+
protected firstUpdated(): void;
|
|
25
|
+
protected updated(): void;
|
|
26
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
27
|
+
}
|
|
28
|
+
declare global {
|
|
29
|
+
interface HTMLElementTagNameMap {
|
|
30
|
+
'scb-grid-item': ScbGridItem;
|
|
31
|
+
}
|
|
32
|
+
}
|