@scania/tegel 1.0.0 → 1.0.3
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 +178 -178
- package/dist/cjs/dfs-babd18a6.js +29 -0
- package/dist/cjs/generateUniqueId-56da4810.js +28 -0
- package/dist/cjs/hasSlot-1c90e9ba.js +11 -0
- package/dist/cjs/{index-2a60e106.js → index-862c9693.js} +5 -5
- package/dist/cjs/inheritAriaAttributes-640b1abb.js +78 -0
- package/dist/cjs/inheritAttributes-845f5217.js +27 -0
- package/dist/cjs/isHeadingElement-d31dde38.js +71 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tds-accordion-item.cjs.entry.js +6 -6
- package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/tds-badge.cjs.entry.js +1 -1
- package/dist/cjs/tds-banner.cjs.entry.js +7 -15
- package/dist/cjs/tds-block.cjs.entry.js +5 -3
- package/dist/cjs/tds-body-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/tds-button.cjs.entry.js +4 -4
- package/dist/cjs/tds-card.cjs.entry.js +11 -10
- package/dist/cjs/tds-checkbox.cjs.entry.js +4 -4
- package/dist/cjs/tds-chip.cjs.entry.js +7 -6
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +3 -3
- package/dist/cjs/tds-datetime.cjs.entry.js +10 -10
- package/dist/cjs/tds-divider.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +9 -8
- package/dist/cjs/tds-dropdown.cjs.entry.js +195 -69
- package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer-group.cjs.entry.js +3 -3
- package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer.cjs.entry.js +5 -5
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +3 -3
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +5 -4
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +3 -3
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +3 -3
- package/dist/cjs/tds-header-launcher.cjs.entry.js +6 -4
- package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header.cjs.entry.js +21 -5
- package/dist/cjs/tds-icon.cjs.entry.js +5 -3
- package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +1 -7
- package/dist/cjs/tds-link.cjs.entry.js +4 -4
- package/dist/cjs/tds-message.cjs.entry.js +4 -4
- package/dist/cjs/tds-modal.cjs.entry.js +5 -5
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +1 -4
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +3 -3
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu.cjs.entry.js +3 -3
- package/dist/cjs/tds-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +4 -3
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu.cjs.entry.js +1 -1
- package/dist/cjs/tds-slider.cjs.entry.js +15 -9
- package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tds-step.cjs.entry.js +1 -1
- package/dist/cjs/tds-stepper.cjs.entry.js +3 -3
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-row.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-footer.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-header.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/tds-table.cjs.entry.js +3 -3
- package/dist/cjs/tds-text-field.cjs.entry.js +16 -16
- package/dist/cjs/tds-textarea.cjs.entry.js +11 -11
- package/dist/cjs/tds-toast.cjs.entry.js +9 -8
- package/dist/cjs/tds-toggle.cjs.entry.js +3 -3
- package/dist/cjs/tds-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/tegel.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -6
- package/dist/collection/components/accordion/accordion.stories.js +22 -22
- package/dist/collection/components/badge/badge.stories.js +31 -31
- package/dist/collection/components/banner/banner.js +4 -26
- package/dist/collection/components/banner/banner.stories.js +17 -20
- package/dist/collection/components/block/block.js +4 -2
- package/dist/collection/components/block/block.stories.js +10 -10
- package/dist/collection/components/breadcrumbs/breadcrumbs.stories.js +13 -13
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/button.stories.js +27 -27
- package/dist/collection/components/card/card.css +1 -0
- package/dist/collection/components/card/card.js +4 -3
- package/dist/collection/components/card/card.stories.js +32 -32
- package/dist/collection/components/checkbox/checkbox.css +14 -0
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/checkbox/checkbox.stories.js +23 -23
- package/dist/collection/components/chip/chip.js +7 -6
- package/dist/collection/components/chip/chip.stories.js +94 -94
- package/dist/collection/components/datetime/datetime.js +9 -9
- package/dist/collection/components/datetime/datetime.stories.js +41 -41
- package/dist/collection/components/divider/divider.stories.js +5 -5
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +4 -4
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +8 -7
- package/dist/collection/components/dropdown/dropdown.css +7 -2
- package/dist/collection/components/dropdown/dropdown.js +165 -75
- package/dist/collection/components/dropdown/dropdown.stories.js +54 -58
- package/dist/collection/components/footer/footer-group/footer-group.js +2 -2
- package/dist/collection/components/footer/footer.js +1 -1
- package/dist/collection/components/footer/footer.stories.js +94 -94
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +2 -2
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +2 -1
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +1 -1
- package/dist/collection/components/header/header-item/header-item.js +2 -2
- package/dist/collection/components/header/header-launcher/header-launcher.js +2 -1
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +2 -2
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +2 -1
- package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +1 -1
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +1 -1
- package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +1 -1
- package/dist/collection/components/header/header.js +2 -1
- package/dist/collection/components/header/header.stories.js +32 -32
- package/dist/collection/components/icon/icon.js +20 -1
- package/dist/collection/components/icon/icon.stories.js +3 -3
- package/dist/collection/components/icon/iconsArray.js +115 -115
- package/dist/collection/components/link/link.js +3 -3
- package/dist/collection/components/link/link.stories.js +10 -10
- package/dist/collection/components/message/message.js +3 -3
- package/dist/collection/components/message/message.stories.js +19 -19
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/modal/modal.stories.js +28 -28
- package/dist/collection/components/popover-canvas/popover-canvas.js +2 -2
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +34 -34
- package/dist/collection/components/popover-core/popover-core.js +1 -1
- package/dist/collection/components/popover-menu/popover-menu.js +2 -2
- package/dist/collection/components/popover-menu/popover-menu.stories.js +59 -61
- package/dist/collection/components/radio-button/radio-button.js +3 -3
- package/dist/collection/components/radio-button/radio-button.stories.js +45 -45
- package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +1 -1
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +2 -2
- package/dist/collection/components/side-menu/side-menu.js +4 -4
- package/dist/collection/components/side-menu/side-menu.stories.js +144 -144
- package/dist/collection/components/slider/slider.js +17 -8
- package/dist/collection/components/slider/slider.stories.js +39 -39
- package/dist/collection/components/spinner/spinner.stories.js +6 -6
- package/dist/collection/components/stepper/stepper.js +3 -3
- package/dist/collection/components/stepper/stepper.stories.js +15 -15
- package/dist/collection/components/table/table/table.js +3 -3
- package/dist/collection/components/table/table-body-row/table-body-row.js +1 -1
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +1 -1
- package/dist/collection/components/table/table-component-basic.stories.js +52 -52
- package/dist/collection/components/table/table-component-batch-actions.stories.js +59 -59
- package/dist/collection/components/table/table-component-custom-width.stories.js +53 -53
- package/dist/collection/components/table/table-component-expandable-rows.stories.js +39 -39
- package/dist/collection/components/table/table-component-filtering.stories.js +72 -80
- package/dist/collection/components/table/table-component-multiselect.stories.js +74 -75
- package/dist/collection/components/table/table-component-pagination.stories.js +73 -73
- package/dist/collection/components/table/table-component-sorting.stories.js +75 -75
- package/dist/collection/components/table/table-footer/table-footer.css +2 -1
- package/dist/collection/components/table/table-footer/table-footer.js +1 -1
- package/dist/collection/components/table/table-header/table-header.js +1 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +3 -3
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +1 -1
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +35 -35
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +1 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -8
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +35 -35
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +1 -1
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +2 -5
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +37 -37
- package/dist/collection/components/text-field/text-field.js +14 -14
- package/dist/collection/components/text-field/text-field.stories.js +46 -46
- package/dist/collection/components/textarea/textarea.js +10 -10
- package/dist/collection/components/textarea/textarea.stories.js +41 -41
- package/dist/collection/components/toast/toast.js +5 -4
- package/dist/collection/components/toast/toast.stories.js +16 -16
- package/dist/collection/components/toggle/toggle.js +2 -2
- package/dist/collection/components/toggle/toggle.stories.js +18 -18
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/tooltip.stories.js +24 -34
- package/dist/collection/stories/Installation/installation.stories.js +201 -205
- package/dist/collection/stories/announcements/announce-tegel.stories.js +248 -248
- package/dist/collection/stories/announcements/prefix-change.stories.js +79 -79
- package/dist/collection/stories/formatHtmlPreview.js +10 -0
- package/dist/collection/stories/foundations/color/color-brand.stories.js +25 -25
- package/dist/collection/stories/foundations/color/color-scales.stories.js +19 -19
- package/dist/collection/stories/foundations/color/color-semantic.stories.js +28 -28
- package/dist/collection/stories/foundations/grid/grid.stories.js +335 -335
- package/dist/collection/stories/foundations/spacing/spacing-element.stories.js +91 -91
- package/dist/collection/stories/foundations/spacing/spacing-layout.stories.js +85 -85
- package/dist/collection/stories/foundations/typography/typography-body.stories.js +8 -8
- package/dist/collection/stories/foundations/typography/typography-detail.stories.js +9 -9
- package/dist/collection/stories/foundations/typography/typography-headline.stories.js +18 -18
- package/dist/collection/stories/foundations/typography/typography-paragraph.stories.js +4 -4
- package/dist/collection/stories/patterns/navigation/navigation-basic.stories.js +54 -54
- package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +228 -228
- package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +203 -203
- package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +99 -99
- package/dist/collection/stories/tegel.stories.js +270 -279
- package/dist/collection/stories/utility/color/background-color.stories.js +14 -14
- package/dist/collection/stories/utility/color/text-color.stories.js +12 -12
- package/dist/collection/types/Attributes.js +1 -0
- package/dist/collection/utils/appendHiddenInput.js +25 -0
- package/dist/collection/utils/dfs.js +26 -0
- package/dist/collection/utils/findNextFocusableElement.js +16 -0
- package/dist/collection/utils/findPreviousFocusableElement.js +17 -0
- package/dist/collection/utils/generateUniqueId.js +25 -0
- package/dist/collection/utils/getNestedChildOfSiblingsMatching.js +22 -0
- package/dist/collection/utils/getNextNestedChildOfSiblingsMatching.js +32 -0
- package/dist/collection/utils/getNextSibling.js +2 -0
- package/dist/collection/utils/getPreviousNestedChildOfSiblingsMatching.js +32 -0
- package/dist/collection/utils/getPreviousSibling.js +2 -0
- package/dist/collection/utils/hasSlot.js +8 -0
- package/dist/collection/utils/inheritAriaAttributes.js +74 -0
- package/dist/collection/utils/inheritAttributes.js +24 -0
- package/dist/collection/utils/isHeadingElement.js +12 -0
- package/dist/collection/utils/updateListChildrenRoles.js +15 -0
- package/dist/components/checkbox.js +3 -2
- package/dist/components/core-header-item.js +1 -0
- package/dist/components/dfs.js +27 -0
- package/dist/components/divider.js +1 -0
- package/dist/components/generateUniqueId.js +26 -0
- package/dist/components/getPreviousNestedChildOfSiblingsMatching.js +68 -0
- package/dist/components/hasSlot.js +9 -0
- package/dist/components/header-dropdown-list-item.js +1 -0
- package/dist/components/header-dropdown-list.js +2 -1
- package/dist/components/header-item.js +2 -1
- package/dist/components/header-launcher-button.js +2 -1
- package/dist/components/icon.js +6 -2
- package/dist/components/inheritAriaAttributes.js +76 -0
- package/dist/components/inheritAttributes.js +25 -0
- package/dist/components/popover-canvas.js +2 -1
- package/dist/components/popover-core.js +1 -0
- package/dist/components/side-menu-item.js +2 -1
- package/dist/components/side-menu-user-image.js +1 -0
- package/dist/components/side-menu-user-label.js +1 -0
- package/dist/components/tds-accordion-item.js +6 -5
- package/dist/components/tds-accordion.js +1 -0
- package/dist/components/tds-badge.js +1 -0
- package/dist/components/tds-banner.js +3 -10
- package/dist/components/tds-block.js +5 -2
- package/dist/components/tds-body-cell.js +1 -0
- package/dist/components/tds-breadcrumb.js +1 -0
- package/dist/components/tds-breadcrumbs.js +1 -0
- package/dist/components/tds-button.js +2 -1
- package/dist/components/tds-card.js +4 -2
- package/dist/components/tds-chip.js +3 -1
- package/dist/components/tds-datetime.js +10 -9
- package/dist/components/tds-dropdown-option.js +9 -7
- package/dist/components/tds-dropdown.js +197 -69
- package/dist/components/tds-folder-tab.js +2 -1
- package/dist/components/tds-folder-tabs.js +1 -0
- package/dist/components/tds-footer-group.js +3 -2
- package/dist/components/tds-footer-item.js +1 -0
- package/dist/components/tds-footer.js +2 -1
- package/dist/components/tds-header-brand-symbol.js +1 -0
- package/dist/components/tds-header-cell.js +1 -0
- package/dist/components/tds-header-dropdown-list-user.js +1 -0
- package/dist/components/tds-header-dropdown.js +2 -1
- package/dist/components/tds-header-hamburger.js +2 -1
- package/dist/components/tds-header-launcher-grid-item.js +1 -0
- package/dist/components/tds-header-launcher-grid-title.js +2 -1
- package/dist/components/tds-header-launcher-grid.js +2 -1
- package/dist/components/tds-header-launcher-list-item.js +1 -0
- package/dist/components/tds-header-launcher-list-title.js +2 -1
- package/dist/components/tds-header-launcher-list.js +2 -1
- package/dist/components/tds-header-launcher.js +3 -1
- package/dist/components/tds-header-title.js +1 -0
- package/dist/components/tds-header.js +17 -1
- package/dist/components/tds-inline-tab.js +2 -1
- package/dist/components/tds-inline-tabs.js +1 -6
- package/dist/components/tds-link.js +4 -3
- package/dist/components/tds-message.js +4 -3
- package/dist/components/tds-modal.js +2 -1
- package/dist/components/tds-navigation-tab.js +2 -1
- package/dist/components/tds-navigation-tabs.js +1 -3
- package/dist/components/tds-popover-menu-item.js +1 -0
- package/dist/components/tds-popover-menu.js +2 -1
- package/dist/components/tds-radio-button.js +2 -1
- package/dist/components/tds-side-menu-close-button.js +2 -1
- package/dist/components/tds-side-menu-collapse-button.js +1 -0
- package/dist/components/tds-side-menu-dropdown-list-item.js +1 -0
- package/dist/components/tds-side-menu-dropdown-list.js +1 -0
- package/dist/components/tds-side-menu-dropdown.js +1 -0
- package/dist/components/tds-side-menu-overlay.js +1 -0
- package/dist/components/tds-side-menu-user.js +1 -0
- package/dist/components/tds-side-menu.js +1 -0
- package/dist/components/tds-slider.js +14 -7
- package/dist/components/tds-spinner.js +1 -0
- package/dist/components/tds-step.js +1 -0
- package/dist/components/tds-stepper.js +2 -1
- package/dist/components/tds-table-body-row-expandable.js +1 -0
- package/dist/components/tds-table-body-row.js +1 -0
- package/dist/components/tds-table-body.js +1 -0
- package/dist/components/tds-table-footer.js +2 -1
- package/dist/components/tds-table-header.js +1 -0
- package/dist/components/tds-table-toolbar.js +1 -0
- package/dist/components/tds-table.js +2 -1
- package/dist/components/tds-text-field.js +14 -13
- package/dist/components/tds-textarea.js +11 -10
- package/dist/components/tds-toast.js +5 -3
- package/dist/components/tds-toggle.js +2 -1
- package/dist/components/tds-tooltip.js +2 -1
- package/dist/esm/dfs-3f5bd9e8.js +27 -0
- package/dist/esm/generateUniqueId-c96c8ee6.js +26 -0
- package/dist/esm/hasSlot-d52114d0.js +9 -0
- package/dist/esm/{index-7471aeb6.js → index-21543b0f.js} +5 -5
- package/dist/esm/inheritAriaAttributes-d4dfca6b.js +76 -0
- package/dist/esm/inheritAttributes-8bb09af0.js +25 -0
- package/dist/esm/isHeadingElement-2c158fc4.js +68 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/tds-accordion-item.entry.js +6 -6
- package/dist/esm/tds-accordion.entry.js +1 -1
- package/dist/esm/tds-badge.entry.js +1 -1
- package/dist/esm/tds-banner.entry.js +3 -11
- package/dist/esm/tds-block.entry.js +5 -3
- package/dist/esm/tds-body-cell.entry.js +1 -1
- package/dist/esm/tds-breadcrumb.entry.js +1 -1
- package/dist/esm/tds-breadcrumbs.entry.js +1 -1
- package/dist/esm/tds-button.entry.js +2 -2
- package/dist/esm/tds-card.entry.js +4 -3
- package/dist/esm/tds-checkbox.entry.js +3 -3
- package/dist/esm/tds-chip.entry.js +3 -2
- package/dist/esm/tds-core-header-item_2.entry.js +2 -2
- package/dist/esm/tds-datetime.entry.js +10 -10
- package/dist/esm/tds-divider.entry.js +1 -1
- package/dist/esm/tds-dropdown-option.entry.js +9 -8
- package/dist/esm/tds-dropdown.entry.js +195 -69
- package/dist/esm/tds-folder-tab.entry.js +2 -2
- package/dist/esm/tds-folder-tabs.entry.js +1 -1
- package/dist/esm/tds-footer-group.entry.js +3 -3
- package/dist/esm/tds-footer-item.entry.js +1 -1
- package/dist/esm/tds-footer.entry.js +2 -2
- package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
- package/dist/esm/tds-header-cell.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list.entry.js +3 -2
- package/dist/esm/tds-header-dropdown.entry.js +2 -2
- package/dist/esm/tds-header-hamburger.entry.js +3 -2
- package/dist/esm/tds-header-launcher-button.entry.js +3 -2
- package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-title.entry.js +2 -2
- package/dist/esm/tds-header-launcher-grid.entry.js +3 -2
- package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-title.entry.js +2 -2
- package/dist/esm/tds-header-launcher-list.entry.js +2 -2
- package/dist/esm/tds-header-launcher.entry.js +4 -2
- package/dist/esm/tds-header-title.entry.js +1 -1
- package/dist/esm/tds-header.entry.js +18 -2
- package/dist/esm/tds-icon.entry.js +5 -3
- package/dist/esm/tds-inline-tab.entry.js +2 -2
- package/dist/esm/tds-inline-tabs.entry.js +1 -7
- package/dist/esm/tds-link.entry.js +4 -4
- package/dist/esm/tds-message.entry.js +4 -4
- package/dist/esm/tds-modal.entry.js +2 -2
- package/dist/esm/tds-navigation-tab.entry.js +2 -2
- package/dist/esm/tds-navigation-tabs.entry.js +1 -4
- package/dist/esm/tds-popover-canvas.entry.js +2 -2
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-popover-menu-item.entry.js +1 -1
- package/dist/esm/tds-popover-menu.entry.js +2 -2
- package/dist/esm/tds-radio-button.entry.js +2 -2
- package/dist/esm/tds-side-menu-close-button.entry.js +3 -2
- package/dist/esm/tds-side-menu-collapse-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown.entry.js +1 -1
- package/dist/esm/tds-side-menu-item.entry.js +2 -2
- package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
- package/dist/esm/tds-side-menu-user-image_2.entry.js +1 -1
- package/dist/esm/tds-side-menu-user.entry.js +1 -1
- package/dist/esm/tds-side-menu.entry.js +1 -1
- package/dist/esm/tds-slider.entry.js +14 -8
- package/dist/esm/tds-spinner.entry.js +1 -1
- package/dist/esm/tds-step.entry.js +1 -1
- package/dist/esm/tds-stepper.entry.js +2 -2
- package/dist/esm/tds-table-body-row-expandable.entry.js +1 -1
- package/dist/esm/tds-table-body-row.entry.js +1 -1
- package/dist/esm/tds-table-body.entry.js +1 -1
- package/dist/esm/tds-table-footer.entry.js +2 -2
- package/dist/esm/tds-table-header.entry.js +1 -1
- package/dist/esm/tds-table-toolbar.entry.js +1 -1
- package/dist/esm/tds-table.entry.js +2 -2
- package/dist/esm/tds-text-field.entry.js +14 -14
- package/dist/esm/tds-textarea.entry.js +11 -11
- package/dist/esm/tds-toast.entry.js +5 -4
- package/dist/esm/tds-toggle.entry.js +2 -2
- package/dist/esm/tds-tooltip.entry.js +2 -2
- package/dist/esm/tegel.js +4 -4
- package/dist/tegel/p-098a26f3.js +1 -0
- package/dist/tegel/{p-bd823881.entry.js → p-0a8ee1f9.entry.js} +1 -1
- package/dist/tegel/p-0c4fbe10.entry.js +1 -0
- package/dist/tegel/p-0edeccb6.js +1 -0
- package/dist/tegel/p-0f8f9398.entry.js +1 -0
- package/dist/tegel/p-1168e527.entry.js +1 -0
- package/dist/tegel/{p-52edb8b7.entry.js → p-15230250.entry.js} +1 -1
- package/dist/tegel/{p-514610b9.entry.js → p-17d0b13e.entry.js} +1 -1
- package/dist/tegel/{p-888fec9e.entry.js → p-22f15794.entry.js} +1 -1
- package/dist/tegel/{p-37b1329c.entry.js → p-235cda64.entry.js} +1 -1
- package/dist/tegel/{p-54ebce22.entry.js → p-23822382.entry.js} +1 -1
- package/dist/tegel/p-26e5d00c.entry.js +1 -0
- package/dist/tegel/p-2727d592.entry.js +1 -0
- package/dist/tegel/{p-9af2e8ab.entry.js → p-289a487d.entry.js} +1 -1
- package/dist/tegel/p-2955b397.entry.js +1 -0
- package/dist/tegel/{p-f2819741.entry.js → p-2ab8970f.entry.js} +1 -1
- package/dist/tegel/{p-5663c320.entry.js → p-30743f62.entry.js} +1 -1
- package/dist/tegel/p-3079490b.entry.js +1 -0
- package/dist/tegel/{p-446ab609.entry.js → p-30c571d4.entry.js} +1 -1
- package/dist/tegel/{p-286691df.entry.js → p-32c133ba.entry.js} +1 -1
- package/dist/tegel/p-35265b56.entry.js +1 -0
- package/dist/tegel/p-363ee512.entry.js +1 -0
- package/dist/tegel/{p-0d573de8.entry.js → p-3ad7d61d.entry.js} +1 -1
- package/dist/tegel/{p-d8215514.entry.js → p-3b39140f.entry.js} +1 -1
- package/dist/tegel/{p-0eac159c.entry.js → p-3cd5821f.entry.js} +1 -1
- package/dist/tegel/{p-073cf6c0.entry.js → p-44a3b63b.entry.js} +1 -1
- package/dist/tegel/p-4a02a38f.entry.js +1 -0
- package/dist/tegel/{p-824f5dad.entry.js → p-4af50429.entry.js} +1 -1
- package/dist/tegel/{p-62732059.entry.js → p-4bca96e5.entry.js} +1 -1
- package/dist/tegel/p-4df1ed46.entry.js +1 -0
- package/dist/tegel/{p-166d6252.entry.js → p-50ea7ad8.entry.js} +1 -1
- package/dist/tegel/{p-0d886890.entry.js → p-52719efc.entry.js} +1 -1
- package/dist/tegel/{p-d1be74e7.entry.js → p-555e1263.entry.js} +1 -1
- package/dist/tegel/p-57156832.entry.js +1 -0
- package/dist/tegel/{p-f6ff8d7e.entry.js → p-595c3a77.entry.js} +1 -1
- package/dist/tegel/{p-2782cab8.entry.js → p-5a6efad0.entry.js} +1 -1
- package/dist/tegel/{p-fc88f7ba.entry.js → p-5b9115c3.entry.js} +1 -1
- package/dist/tegel/{p-8b634b36.entry.js → p-72bbf0af.entry.js} +1 -1
- package/dist/tegel/{p-d289a792.entry.js → p-74644ab7.entry.js} +1 -1
- package/dist/tegel/{p-94c27eb3.entry.js → p-762357bb.entry.js} +1 -1
- package/dist/tegel/{p-cbb227b3.entry.js → p-7b0dabcb.entry.js} +1 -1
- package/dist/tegel/p-7e0ec688.entry.js +1 -0
- package/dist/tegel/p-81039661.js +1 -0
- package/dist/tegel/p-86f542a6.js +1 -0
- package/dist/tegel/{p-a72409fc.entry.js → p-8ad9d997.entry.js} +1 -1
- package/dist/tegel/{p-f712146b.entry.js → p-90597e3c.entry.js} +1 -1
- package/dist/tegel/p-931a6b29.entry.js +1 -0
- package/dist/tegel/{p-5b58d6c9.entry.js → p-950ad7d7.entry.js} +1 -1
- package/dist/tegel/{p-495d2b37.entry.js → p-970da069.entry.js} +1 -1
- package/dist/tegel/{p-26757a32.entry.js → p-9920be66.entry.js} +1 -1
- package/dist/tegel/{p-c1ed83c6.entry.js → p-9bc33f53.entry.js} +1 -1
- package/dist/tegel/{p-364654b5.entry.js → p-a0a1840f.entry.js} +1 -1
- package/dist/tegel/{p-026a3e05.entry.js → p-a3123355.entry.js} +1 -1
- package/dist/tegel/{p-d1289eb3.entry.js → p-a3440291.entry.js} +1 -1
- package/dist/tegel/{p-ae2c6537.entry.js → p-a7a12627.entry.js} +1 -1
- package/dist/tegel/{p-7bbae944.entry.js → p-a9df694d.entry.js} +1 -1
- package/dist/tegel/{p-9c6e8abb.entry.js → p-ac253317.entry.js} +1 -1
- package/dist/tegel/{p-38c68fac.entry.js → p-ac8585f9.entry.js} +1 -1
- package/dist/tegel/{p-301110a1.entry.js → p-adca7314.entry.js} +1 -1
- package/dist/tegel/p-adf21f07.entry.js +1 -0
- package/dist/tegel/p-ae110fc2.js +1 -0
- package/dist/tegel/{p-b0a5cef2.entry.js → p-b1e3feda.entry.js} +1 -1
- package/dist/tegel/{p-62154528.entry.js → p-c1b19d10.entry.js} +1 -1
- package/dist/tegel/{p-045e99f2.entry.js → p-c46dad72.entry.js} +1 -1
- package/dist/tegel/{p-77282750.entry.js → p-cb3ba5d0.entry.js} +1 -1
- package/dist/tegel/p-cc0ea750.entry.js +1 -0
- package/dist/tegel/p-cc2a998f.entry.js +1 -0
- package/dist/tegel/p-cc771b46.entry.js +1 -0
- package/dist/tegel/{p-386c3c42.entry.js → p-d98cf434.entry.js} +1 -1
- package/dist/tegel/{p-acabb656.entry.js → p-da386849.entry.js} +1 -1
- package/dist/tegel/p-df2c8c5b.entry.js +1 -0
- package/dist/tegel/{p-dfeaa580.entry.js → p-df7f3773.entry.js} +1 -1
- package/dist/tegel/{p-78a367c0.entry.js → p-e122947b.entry.js} +1 -1
- package/dist/tegel/p-e179315a.entry.js +1 -0
- package/dist/tegel/p-e74f77c4.entry.js +1 -0
- package/dist/tegel/{p-34e75630.entry.js → p-edc8b0b0.entry.js} +1 -1
- package/dist/tegel/p-effd0764.entry.js +1 -0
- package/dist/tegel/{p-c9c5b832.entry.js → p-f375707c.entry.js} +1 -1
- package/dist/tegel/{p-ef96df10.entry.js → p-f6ca4367.entry.js} +1 -1
- package/dist/tegel/p-f71c9fe3.entry.js +1 -0
- package/dist/tegel/p-f7ce52e9.js +1 -0
- package/dist/tegel/{p-974ee937.entry.js → p-f84d4394.entry.js} +1 -1
- package/dist/tegel/{p-eeedd806.entry.js → p-f9c37154.entry.js} +1 -1
- package/dist/tegel/p-ff07dea0.entry.js +1 -0
- package/dist/tegel/tegel.css +2 -4
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/banner/banner.d.ts +0 -5
- package/dist/types/components/block/block.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown.d.ts +29 -11
- package/dist/types/components/icon/icon.d.ts +2 -0
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +1 -1
- package/dist/types/components/popover-menu/popover-menu.d.ts +1 -1
- package/dist/types/components/slider/slider.d.ts +1 -1
- package/dist/types/components/table/table-component-filtering.stories.d.ts +0 -8
- package/dist/types/components/table/table-component-multiselect.stories.d.ts +0 -1
- package/dist/types/components/text-field/text-field.d.ts +1 -1
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +69 -66
- package/dist/types/global.d.ts +2 -2
- package/dist/types/stencil-public-runtime.d.ts +3 -3
- package/dist/types/stories/formatHtmlPreview.d.ts +2 -0
- package/dist/types/stories/foundations/color/color-semantic.stories.d.ts +1 -1
- package/dist/types/types/Attributes.d.ts +3 -0
- package/dist/types/utils/appendHiddenInput.d.ts +15 -0
- package/dist/types/utils/dfs.d.ts +10 -0
- package/dist/types/utils/findNextFocusableElement.d.ts +7 -0
- package/dist/types/utils/findPreviousFocusableElement.d.ts +8 -0
- package/dist/types/utils/generateUniqueId.d.ts +15 -0
- package/dist/types/utils/getNestedChildOfSiblingsMatching.d.ts +2 -0
- package/dist/types/utils/getNextNestedChildOfSiblingsMatching.d.ts +30 -0
- package/dist/types/utils/getNextSibling.d.ts +2 -0
- package/dist/types/utils/getPreviousNestedChildOfSiblingsMatching.d.ts +30 -0
- package/dist/types/utils/getPreviousSibling.d.ts +2 -0
- package/dist/types/utils/hasSlot.d.ts +8 -0
- package/dist/types/utils/inheritAriaAttributes.d.ts +9 -0
- package/dist/types/utils/inheritAttributes.d.ts +13 -0
- package/dist/types/utils/isHeadingElement.d.ts +8 -0
- package/dist/types/utils/updateListChildrenRoles.d.ts +6 -0
- package/package.json +81 -80
- package/dist/cjs/utils-23ce2e45.js +0 -501
- package/dist/collection/utils/utils.js +0 -369
- package/dist/collection/utils/utils.spec.js +0 -15
- package/dist/components/utils.js +0 -489
- package/dist/esm/utils-4d967376.js +0 -489
- package/dist/tegel/p-1af982bc.entry.js +0 -1
- package/dist/tegel/p-24fc848d.entry.js +0 -1
- package/dist/tegel/p-271d0081.entry.js +0 -1
- package/dist/tegel/p-3c5acada.entry.js +0 -1
- package/dist/tegel/p-461e81bd.entry.js +0 -1
- package/dist/tegel/p-4e676ba1.entry.js +0 -1
- package/dist/tegel/p-52b727a7.entry.js +0 -1
- package/dist/tegel/p-5e6318d2.entry.js +0 -1
- package/dist/tegel/p-6e1c6b71.entry.js +0 -1
- package/dist/tegel/p-7125dad7.entry.js +0 -1
- package/dist/tegel/p-8a502e4f.entry.js +0 -1
- package/dist/tegel/p-8a6dac22.entry.js +0 -1
- package/dist/tegel/p-8faaaaf3.entry.js +0 -1
- package/dist/tegel/p-8fea52fe.js +0 -43
- package/dist/tegel/p-98d31b74.entry.js +0 -1
- package/dist/tegel/p-9b560c6d.entry.js +0 -1
- package/dist/tegel/p-aeff41d5.entry.js +0 -1
- package/dist/tegel/p-c65429b4.entry.js +0 -1
- package/dist/tegel/p-ca8b8a16.entry.js +0 -1
- package/dist/tegel/p-cf75e7c1.entry.js +0 -1
- package/dist/tegel/p-d4aa3315.entry.js +0 -1
- package/dist/tegel/p-d852143b.entry.js +0 -1
- package/dist/tegel/p-ec6afc7b.entry.js +0 -1
- package/dist/tegel/p-f147d270.entry.js +0 -1
- package/dist/tegel/p-faaa50c2.entry.js +0 -1
- package/dist/types/utils/utils.d.ts +0 -164
- /package/dist/tegel/{p-43fe6507.js → p-31561847.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { g as generateUniqueId } from './
|
|
2
|
+
import { g as generateUniqueId } from './generateUniqueId.js';
|
|
3
3
|
|
|
4
4
|
const headerLauncherGridTitleCss = ".tds-header-launcher-grid-title{all:unset;box-sizing:border-box;font:var(--tds-detail-04);letter-spacing:var(--tds-detail-04-ls);color:var(--tds-header-app-launcher-grid-category-title-color);text-transform:uppercase;height:48px;padding:0 16px;display:flex;align-items:center;border-bottom:1px solid var(--tds-nav-dropdown-item-border-color);margin:0}";
|
|
5
5
|
|
|
@@ -27,6 +27,7 @@ function defineCustomElement$1() {
|
|
|
27
27
|
break;
|
|
28
28
|
} });
|
|
29
29
|
}
|
|
30
|
+
defineCustomElement$1();
|
|
30
31
|
|
|
31
32
|
const TdsHeaderLauncherGridTitle = TdsHeaderLauncherGridTitle$1;
|
|
32
33
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { g as getPreviousNestedChildOfSiblingsMatching, i as isHeadingElement } from './getPreviousNestedChildOfSiblingsMatching.js';
|
|
3
3
|
|
|
4
4
|
const headerLauncherGridCss = ".tds-header-launcher-grid{box-sizing:border-box;padding:12px;margin:0;list-style:none;width:100%;display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px;border-radius:none}";
|
|
5
5
|
|
|
@@ -49,6 +49,7 @@ function defineCustomElement$1() {
|
|
|
49
49
|
break;
|
|
50
50
|
} });
|
|
51
51
|
}
|
|
52
|
+
defineCustomElement$1();
|
|
52
53
|
|
|
53
54
|
const TdsHeaderLauncherGrid = TdsHeaderLauncherGrid$1;
|
|
54
55
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { g as generateUniqueId } from './
|
|
2
|
+
import { g as generateUniqueId } from './generateUniqueId.js';
|
|
3
3
|
|
|
4
4
|
const headerLauncherListTitleCss = ".tds-header-launcher-list-title{all:unset;box-sizing:border-box;font:var(--tds-detail-06);letter-spacing:var(--tds-detail-06-ls);color:var(--tds-header-app-launcher-category-title-color);text-transform:uppercase;height:48px;padding:0 16px;display:flex;align-items:center;border-bottom:1px solid var(--tds-nav-dropdown-item-border-color);margin:0}";
|
|
5
5
|
|
|
@@ -28,6 +28,7 @@ function defineCustomElement$1() {
|
|
|
28
28
|
break;
|
|
29
29
|
} });
|
|
30
30
|
}
|
|
31
|
+
defineCustomElement$1();
|
|
31
32
|
|
|
32
33
|
const TdsHeaderLauncherListTitle = TdsHeaderLauncherListTitle$1;
|
|
33
34
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { g as generateUniqueId } from './
|
|
2
|
+
import { g as generateUniqueId } from './generateUniqueId.js';
|
|
3
3
|
import { d as defineCustomElement$2 } from './header-dropdown-list.js';
|
|
4
4
|
|
|
5
5
|
const TdsHeaderLauncherList$1 = /*@__PURE__*/ proxyCustomElement(class TdsHeaderLauncherList extends HTMLElement {
|
|
@@ -30,6 +30,7 @@ function defineCustomElement$1() {
|
|
|
30
30
|
break;
|
|
31
31
|
} });
|
|
32
32
|
}
|
|
33
|
+
defineCustomElement$1();
|
|
33
34
|
|
|
34
35
|
const TdsHeaderLauncherList = TdsHeaderLauncherList$1;
|
|
35
36
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { g as generateUniqueId
|
|
2
|
+
import { g as generateUniqueId } from './generateUniqueId.js';
|
|
3
|
+
import { i as inheritAriaAttributes } from './inheritAriaAttributes.js';
|
|
3
4
|
import { d as defineCustomElement$7 } from './core-header-item.js';
|
|
4
5
|
import { d as defineCustomElement$6 } from './header-item.js';
|
|
5
6
|
import { d as defineCustomElement$5 } from './header-launcher-button.js';
|
|
@@ -107,6 +108,7 @@ function defineCustomElement$1() {
|
|
|
107
108
|
break;
|
|
108
109
|
} });
|
|
109
110
|
}
|
|
111
|
+
defineCustomElement$1();
|
|
110
112
|
|
|
111
113
|
const TdsHeaderLauncher = TdsHeaderLauncher$1;
|
|
112
114
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { i as inheritAriaAttributes } from './inheritAriaAttributes.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Loop through the children and add the 'listitem' role if needed.
|
|
6
|
+
* @param {Node} targetNode The node being updated.
|
|
7
|
+
* */
|
|
8
|
+
const updateListChildrenRoles = (targetNode) => {
|
|
9
|
+
targetNode.childNodes.forEach((node) => {
|
|
10
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
11
|
+
const element = node;
|
|
12
|
+
if (element.tagName.toLowerCase() !== 'li' && element.getAttribute('role') !== 'listitem') {
|
|
13
|
+
element.setAttribute('role', 'listitem');
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
};
|
|
3
18
|
|
|
4
19
|
const headerCss = "html,:root{--tds-nav-dropdown-menu-box:0 3px 3px rgb(0 0 0 / 15%), 0 -1px 1px rgb(0 0 0 / 1%);--tds-nav-dropdown-item-border-radius:0 0 4px 4px;--tds-font-family-headline:\"Scania Sans Headline\", arial, helvetica, sans-serif}tds-header{display:block;height:var(--tds-header-height);background-color:var(--tds-header-background);width:100%;z-index:300}nav{box-sizing:border-box;background-color:var(--tds-header-background);width:100%;display:block}nav *{box-sizing:border-box}nav .tds-header-component-list{height:var(--tds-header-height);all:unset;display:flex;justify-content:start;align-items:center}nav tds-header-dropdown,nav tds-header-item{display:none}nav .tds-header-middle-spacer{all:unset;display:block;flex-grow:1;height:var(--tds-header-height);border-right:1px solid var(--tds-header--basic-element-border)}@media screen and (min-width: 992px){nav tds-header-dropdown,nav tds-header-item{display:block}}nav tds-header-item:nth-child(3),nav tds-header-dropdown:nth-child(3){border-left:1px solid var(--tds-header--basic-element-border)}";
|
|
5
20
|
|
|
@@ -48,6 +63,7 @@ function defineCustomElement$1() {
|
|
|
48
63
|
break;
|
|
49
64
|
} });
|
|
50
65
|
}
|
|
66
|
+
defineCustomElement$1();
|
|
51
67
|
|
|
52
68
|
const TdsHeader = TdsHeader$1;
|
|
53
69
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -15,7 +15,7 @@ const TdsInlineTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTab exten
|
|
|
15
15
|
this.selected = selected;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { role: "listitem" }, h("div", { class: `inline-tab-item ${this.selected ? 'selected' : ''}
|
|
18
|
+
return (h(Host, { role: "listitem" }, h("div", { class: `inline-tab-item ${this.selected ? 'selected' : ''}
|
|
19
19
|
${this.disabled ? 'disabled' : ''}` }, h("slot", null))));
|
|
20
20
|
}
|
|
21
21
|
static get style() { return inlineTabCss; }
|
|
@@ -37,6 +37,7 @@ function defineCustomElement$1() {
|
|
|
37
37
|
break;
|
|
38
38
|
} });
|
|
39
39
|
}
|
|
40
|
+
defineCustomElement$1();
|
|
40
41
|
|
|
41
42
|
const TdsInlineTab = TdsInlineTab$1;
|
|
42
43
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -49,9 +49,6 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
|
|
|
49
49
|
this.children.forEach((element) => element.setSelected(false));
|
|
50
50
|
item.setSelected(true);
|
|
51
51
|
this.selectedIndex = index;
|
|
52
|
-
this.tdsChange.emit({
|
|
53
|
-
selectedTabIndex: this.selectedIndex,
|
|
54
|
-
});
|
|
55
52
|
}
|
|
56
53
|
}
|
|
57
54
|
});
|
|
@@ -73,9 +70,6 @@ const TdsInlineTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsInlineTabs ext
|
|
|
73
70
|
if (index === tabIndex) {
|
|
74
71
|
element.setSelected(true);
|
|
75
72
|
this.selectedIndex = tabIndex;
|
|
76
|
-
this.tdsChange.emit({
|
|
77
|
-
selectedTabIndex: this.selectedIndex,
|
|
78
|
-
});
|
|
79
73
|
}
|
|
80
74
|
return element;
|
|
81
75
|
});
|
|
@@ -184,6 +178,7 @@ function defineCustomElement$1() {
|
|
|
184
178
|
break;
|
|
185
179
|
} });
|
|
186
180
|
}
|
|
181
|
+
defineCustomElement$1();
|
|
187
182
|
|
|
188
183
|
const TdsInlineTabs = TdsInlineTabs$1;
|
|
189
184
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -14,9 +14,9 @@ const TdsLink$1 = /*@__PURE__*/ proxyCustomElement(class TdsLink extends HTMLEle
|
|
|
14
14
|
this.host.children[0].classList.add('tds-link-component');
|
|
15
15
|
}
|
|
16
16
|
render() {
|
|
17
|
-
return (h("span", { class: `
|
|
18
|
-
${this.disabled ? 'disabled' : ''}
|
|
19
|
-
${!this.underline ? 'no-underline' : ''}
|
|
17
|
+
return (h("span", { class: `
|
|
18
|
+
${this.disabled ? 'disabled' : ''}
|
|
19
|
+
${!this.underline ? 'no-underline' : ''}
|
|
20
20
|
` }, h("slot", null)));
|
|
21
21
|
}
|
|
22
22
|
get host() { return this; }
|
|
@@ -38,6 +38,7 @@ function defineCustomElement$1() {
|
|
|
38
38
|
break;
|
|
39
39
|
} });
|
|
40
40
|
}
|
|
41
|
+
defineCustomElement$1();
|
|
41
42
|
|
|
42
43
|
const TdsLink = TdsLink$1;
|
|
43
44
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -29,9 +29,9 @@ const TdsMessage$1 = /*@__PURE__*/ proxyCustomElement(class TdsMessage extends H
|
|
|
29
29
|
this.minimal = false;
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return (h(Host, null, h("div", { class: `
|
|
33
|
-
wrapper ${this.variant}
|
|
34
|
-
${this.minimal ? 'minimal' : ''}
|
|
32
|
+
return (h(Host, null, h("div", { class: `
|
|
33
|
+
wrapper ${this.variant}
|
|
34
|
+
${this.minimal ? 'minimal' : ''}
|
|
35
35
|
${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, !this.noIcon && h("tds-icon", { name: this.getIconName(), size: "20px" }), h("div", { class: `content` }, this.header && h("div", { class: "header" }, this.header), !this.minimal && (h("div", { class: "extended-message" }, h("slot", null)))))));
|
|
36
36
|
}
|
|
37
37
|
static get style() { return messageCss; }
|
|
@@ -60,6 +60,7 @@ function defineCustomElement$1() {
|
|
|
60
60
|
break;
|
|
61
61
|
} });
|
|
62
62
|
}
|
|
63
|
+
defineCustomElement$1();
|
|
63
64
|
|
|
64
65
|
const TdsMessage = TdsMessage$1;
|
|
65
66
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { h as hasSlot } from './
|
|
2
|
+
import { h as hasSlot } from './hasSlot.js';
|
|
3
3
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
4
4
|
|
|
5
5
|
const modalCss = ":root,.tds-mode-light{--tds-modal-backdrop:rgba(0 0 0 / 40%);--tds-modal-background:var(--tds-white);--tds-modal-text:var(--tds-grey-958);--tds-modal-icon:var(--tds-black);--tds-modal-icon-native:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.40338 2.34308C3.11048 2.05019 2.63561 2.05019 2.34272 2.34308C2.04982 2.63598 2.04982 3.11085 2.34272 3.40374L6.93897 8L2.34283 12.5961C2.04994 12.889 2.04994 13.3639 2.34283 13.6568C2.63572 13.9497 3.1106 13.9497 3.40349 13.6568L7.99963 9.06066L12.5958 13.6568C12.8887 13.9497 13.3635 13.9497 13.6564 13.6568C13.9493 13.3639 13.9493 12.889 13.6564 12.5961L9.06029 8L13.6565 3.40376C13.9494 3.11086 13.9494 2.63599 13.6565 2.3431C13.3636 2.0502 12.8888 2.0502 12.5959 2.3431L7.99963 6.93934L3.40338 2.34308Z' fill='black'/%3E%3C/svg%3E%0A\");--tds-modal-scrollbar:var(--tds-grey-300);--tds-modal-scrollbar-track:var(--tds-grey-300);--tds-modal-scrollbar-thumb:var(--tds-grey-500)}.tds-mode-dark{--tds-modal-backdrop:rgba(0 0 0 / 40%);--tds-modal-background:var(--tds-grey-900);--tds-modal-text:var(--tds-grey-50);--tds-modal-icon:var(--tds-white);--tds-modal-icon-native:url(\"data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.40338 2.34308C3.11048 2.05019 2.63561 2.05019 2.34272 2.34308C2.04982 2.63598 2.04982 3.11085 2.34272 3.40374L6.93897 8L2.34283 12.5961C2.04994 12.889 2.04994 13.3639 2.34283 13.6568C2.63572 13.9497 3.1106 13.9497 3.40349 13.6568L7.99963 9.06066L12.5958 13.6568C12.8887 13.9497 13.3635 13.9497 13.6564 13.6568C13.9493 13.3639 13.9493 12.889 13.6564 12.5961L9.06029 8L13.6565 3.40376C13.9494 3.11086 13.9494 2.63599 13.6565 2.3431C13.3636 2.0502 12.8888 2.0502 12.5959 2.3431L7.99963 6.93934L3.40338 2.34308Z' fill='white'/%3E%3C/svg%3E%0A\");--tds-modal-scrollbar:var(--tds-grey-300);--tds-modal-scrollbar-track:var(--tds-grey-300);--tds-modal-scrollbar-thumb:var(--tds-grey-500)}.tds-modal{box-sizing:border-box;background-color:var(--tds-modal-background);margin:auto;position:relative;border-radius:4px;padding:16px;max-height:85vh;overflow-y:auto;}.tds-modal *{box-sizing:border-box}.tds-modal::-webkit-scrollbar{width:5px;background-color:var(--tds-grey-300);border-radius:0 1em 1em 0}.tds-modal::-webkit-scrollbar-track{background-color:var(--tds-grey-300);border-radius:0 1em 1em 0}.tds-modal::-webkit-scrollbar-thumb{background-color:var(--tds-grey-500);border-radius:0 1em 1em 0}.tds-modal__actions-sticky{overflow:hidden}.tds-modal__actions-sticky .body{font:var(--tds-body-01);letter-spacing:var(--tds-body-01-ls);padding-bottom:96px;margin:0 -16px 0 0;max-height:calc(85vh - 36px);overflow-y:auto}.tds-modal__actions-sticky slot[name=actions]{position:absolute;bottom:-1px;left:0;right:0;background-color:var(--tds-modal-background);padding:var(--tds-spacing-element-16);display:flex;gap:16px}.tds-modal__actions-static slot[name=actions]{background-color:var(--tds-modal-background);display:flex;gap:16px}@media (min-width: 320px){.tds-modal-xs{width:100%}.tds-modal-sm{width:100%}.tds-modal-md{width:100%}.tds-modal-lg{width:100%}}@media (min-width: 672px){.tds-modal-xs{width:75%}.tds-modal-sm{width:62.5%}.tds-modal-md{width:75%}.tds-modal-lg{width:100%}}@media (min-width: 1056px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:43.75%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1312px){.tds-modal-xs{width:31.25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:62.5%}.tds-modal-lg{width:75%}}@media (min-width: 1584px){.tds-modal-xs{width:25%}.tds-modal-sm{width:37.5%}.tds-modal-md{width:50%}.tds-modal-lg{width:75%}}@media (max-width: 320px){.tds-modal-md,.tds-modal-lg,.tds-modal-sm{height:100%}.tds-modal-md slot[name=actions]::slotted(*),.tds-modal-lg slot[name=actions]::slotted(*),.tds-modal-sm slot[name=actions]::slotted(*){display:flex}}.header{display:flex;padding-bottom:var(--tds-spacing-element-8);position:sticky;top:0;background-color:var(--tds-modal-background);z-index:1}.header::before{content:\" \";position:absolute;height:16px;top:-16px;width:100%;background-color:var(--tds-modal-background)}.header,slot[name=header]::slotted(*){color:var(--tds-modal-text);font:var(--tds-headline-05);letter-spacing:var(--tds-headline-05-ls);margin:0;flex:1}.body{color:var(--tds-modal-text);font:var(--tds-body-01);letter-spacing:var(--tds-body-01-ls);padding-bottom:40px;overflow-y:visible;padding-right:16px;}.body::-webkit-scrollbar{width:5px;background-color:var(--tds-grey-300)}.body::-webkit-scrollbar-track{background-color:var(--tds-grey-300)}.body::-webkit-scrollbar-thumb{background-color:var(--tds-grey-500)}@media (min-width: 1056px){.body{padding-right:64px}}.tds-modal-backdrop{box-sizing:border-box;left:0;top:0;position:fixed;height:100%;width:100%;z-index:700;background-color:var(--tds-modal-backdrop);padding:0 16px}.tds-modal-backdrop *{box-sizing:border-box}@media (max-width: 320px){.tds-modal-backdrop{padding:0}}.tds-modal-backdrop.show{display:flex}.tds-modal-backdrop.hide{display:none}button.tds-modal-close{margin:0 0 auto auto;background-color:transparent;border:0;padding:0;appearance:unset}.tds-modal-close{display:inline-block;height:auto;color:var(--tds-modal-icon);cursor:pointer}.tds-modal-close:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}@media (min-width: 320px){.tds-modal-close{margin-left:var(--tds-spacing-element-16)}}@media (min-width: 1056px){.tds-modal-close{margin-left:var(--tds-spacing-element-48)}}.tds-modal-close-btn{display:inline-block;height:auto;background-repeat:no-repeat;cursor:pointer}@media (min-width: 320px){.tds-modal-close-btn{margin-left:var(--tds-spacing-element-16)}}@media (min-width: 1056px){.tds-modal-close-btn{margin-left:var(--tds-spacing-element-48)}}.tds-modal-close-btn svg{fill:var(--tds-modal-icon)}.tds-modal-overflow{overflow:hidden}:host{left:0;top:0;position:fixed;height:100%;width:100%;z-index:700;background-color:var(--tds-modal-backdrop);padding:0 16px}@media (max-width: 320px){:host{padding:0}}:host.show{display:flex}:host.hide{display:none}:host .tds-modal-close{border:none;background-color:transparent}:host .tds-modal-close-btn{border:none;background-color:transparent}:host(.show){display:flex}:host(.hide){display:none}";
|
|
@@ -127,6 +127,7 @@ function defineCustomElement$1() {
|
|
|
127
127
|
break;
|
|
128
128
|
} });
|
|
129
129
|
}
|
|
130
|
+
defineCustomElement$1();
|
|
130
131
|
|
|
131
132
|
const TdsModal = TdsModal$1;
|
|
132
133
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -15,7 +15,7 @@ const TdsNavigationTab$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigationT
|
|
|
15
15
|
this.selected = selected;
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { role: "listitem" }, h("div", { class: `navigation-tab-item ${this.selected ? 'selected' : ''}
|
|
18
|
+
return (h(Host, { role: "listitem" }, h("div", { class: `navigation-tab-item ${this.selected ? 'selected' : ''}
|
|
19
19
|
${this.disabled ? 'disabled' : ''}` }, h("slot", null))));
|
|
20
20
|
}
|
|
21
21
|
static get style() { return navigationTabCss; }
|
|
@@ -37,6 +37,7 @@ function defineCustomElement$1() {
|
|
|
37
37
|
break;
|
|
38
38
|
} });
|
|
39
39
|
}
|
|
40
|
+
defineCustomElement$1();
|
|
40
41
|
|
|
41
42
|
const TdsNavigationTab = TdsNavigationTab$1;
|
|
42
43
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -51,9 +51,6 @@ const TdsNavigationTabs$1 = /*@__PURE__*/ proxyCustomElement(class TdsNavigation
|
|
|
51
51
|
this.children.forEach((element) => element.setSelected(false));
|
|
52
52
|
item.setSelected(true);
|
|
53
53
|
this.selectedIndex = index;
|
|
54
|
-
this.tdsChange.emit({
|
|
55
|
-
selectedTabIndex: this.selectedIndex,
|
|
56
|
-
});
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
56
|
});
|
|
@@ -174,6 +171,7 @@ function defineCustomElement$1() {
|
|
|
174
171
|
break;
|
|
175
172
|
} });
|
|
176
173
|
}
|
|
174
|
+
defineCustomElement$1();
|
|
177
175
|
|
|
178
176
|
const TdsNavigationTabs = TdsNavigationTabs$1;
|
|
179
177
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { i as inheritAttributes } from './inheritAttributes.js';
|
|
3
3
|
import { d as defineCustomElement$2 } from './popover-core.js';
|
|
4
4
|
|
|
5
5
|
const popoverMenuCss = ".tds-popover-menu.sc-tds-popover-menu{box-sizing:border-box;overflow:hidden;width:160px;background-color:var(--tds-popover-menu-background);padding:16px 6px;box-shadow:0 3px 3px rgba(0, 0, 0, 0.15), 0 -1px 1px rgba(0, 0, 0, 0.1);border-radius:4px;z-index:900}.tds-popover-menu.sc-tds-popover-menu *.sc-tds-popover-menu{box-sizing:border-box}.tds-popover-menu.fluid-width.sc-tds-popover-menu{width:unset}tds-popover-core.sc-tds-popover-menu{padding:6px 0 !important}.sc-tds-popover-menu-s>tds-divider{display:block;padding:6px !important}";
|
|
@@ -57,6 +57,7 @@ function defineCustomElement$1() {
|
|
|
57
57
|
break;
|
|
58
58
|
} });
|
|
59
59
|
}
|
|
60
|
+
defineCustomElement$1();
|
|
60
61
|
|
|
61
62
|
const TdsPopoverMenu = TdsPopoverMenu$1;
|
|
62
63
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { g as generateUniqueId } from './
|
|
2
|
+
import { g as generateUniqueId } from './generateUniqueId.js';
|
|
3
3
|
|
|
4
4
|
const radioButtonCss = ".sc-tds-radio-button:root,.tds-mode-light.sc-tds-radio-button{--tds-radio-button-color:var(--tds-grey-958);--tds-radio-button-interaction-01:var(--tds-blue-800);--tds-radio-button-interaction-02:var(--tds-white);--tds-radio-button-background-hover:var(--tds-blue-800);--tds-radio-button-background-focus:var(--tds-blue-800);--tds-radio-button-disabled:var(--tds-grey-600);--tds-radio-button-border-color-disabled-after:var(--tds-grey-500);--tds-radio-button-color-disabled-after:var(--tds-grey-700);--tds-radio-button-color-disabled-before:var(--tds-grey-700)}.tds-mode-dark.sc-tds-radio-button{--tds-radio-button-color:var(--tds-white);--tds-radio-button-interaction-01:var(--tds-white);--tds-radio-button-interaction-02:var(--tds-grey-958);--tds-radio-button-background-hover:var(--tds-white);--tds-radio-button-background-focus:var(--tds-white);--tds-radio-button-disabled:var(--tds-grey-600);--tds-radio-button-border-color-disabled-after:var(--tds-grey-700);--tds-radio-button-color-disabled-after:var(--tds-grey-700)}.tds-radio-button.sc-tds-radio-button{box-sizing:border-box;display:flex;align-items:center;margin-left:-4px;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-radio-button-color)}.tds-radio-button.sc-tds-radio-button *.sc-tds-radio-button{box-sizing:border-box}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button{appearance:none;outline:none;margin:0;border:0;width:24px;height:24px;border-radius:50%;position:relative;cursor:pointer;flex-shrink:0;align-self:flex-start}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button+label.sc-tds-radio-button{padding:var(--tds-spacing-element-4) 0 var(--tds-spacing-element-4) var(--tds-spacing-element-4);cursor:pointer}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button::before,.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button::after{content:\"\";position:absolute;border-radius:50%;box-sizing:border-box}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button::before{width:24px;height:24px;left:0;top:0}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button::after{border:1px solid var(--tds-radio-button-interaction-01);background-color:var(--tds-radio-button-interaction-02);width:16px;height:16px;left:4px;top:4px}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:hover::before{background-color:var(--tds-radio-button-background-hover);opacity:0.12}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:focus::before{background-color:var(--tds-radio-button-background-focus);opacity:0.24;animation:rb-focus 0.4s cubic-bezier(0.65, 0.05, 0.38, 0.95) forwards}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:disabled,.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].disabled.sc-tds-radio-button{cursor:not-allowed}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:disabled::after,.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].disabled.sc-tds-radio-button::after{border-color:var(--tds-radio-button-border-color-disabled-after);background-color:var(--tds-radio-button-interaction-02)}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:disabled+label.sc-tds-radio-button,.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].disabled.sc-tds-radio-button+label.sc-tds-radio-button{color:var(--tds-radio-button-disabled);cursor:not-allowed}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:disabled:hover::before,.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].disabled.sc-tds-radio-button:hover::before{display:none;opacity:1}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:checked::after{border:4px solid var(--tds-radio-button-interaction-01)}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:checked:disabled:hover::before,.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:checked:disabled::before,.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:checked.disabled:hover::before,.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:checked.disabled::before{display:block;width:16px;height:16px;left:4px;top:4px;border:1px solid var(--tds-radio-button-color-disabled-before);box-sizing:content-box}.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:checked:disabled::after,.tds-radio-button.sc-tds-radio-button .tds-form-input[type=radio].sc-tds-radio-button:checked.disabled::after{border:4px solid var(--tds-radio-button-interaction-02);background-color:var(--tds-radio-button-color-disabled-after);left:5px;top:5px}@keyframes rb-focus{0%{transform:scale(0);opacity:0}100%{transform:scale(1);opacity:0.24}}";
|
|
5
5
|
|
|
@@ -47,6 +47,7 @@ function defineCustomElement$1() {
|
|
|
47
47
|
break;
|
|
48
48
|
} });
|
|
49
49
|
}
|
|
50
|
+
defineCustomElement$1();
|
|
50
51
|
|
|
51
52
|
const TdsRadioButton = TdsRadioButton$1;
|
|
52
53
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { i as inheritAriaAttributes } from './
|
|
2
|
+
import { i as inheritAriaAttributes } from './inheritAriaAttributes.js';
|
|
3
3
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
4
4
|
|
|
5
5
|
const sideMenuCloseButtonCss = ":host button{height:64px;width:100%;text-align:left;padding:0 24px;border:none;background-color:var(--tds-sidebar-side-menu-background-cover);font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-sidebar-side-menu-single-item-color);display:flex;align-items:center;border-bottom:1px solid var(--tds-sidebar-side-menu-bottom-menu-border-top)}:host button:hover{cursor:pointer;background-color:var(--tds-sidebar-item-state-hover)}:host button:focus-visible{cursor:pointer;border:1px solid var(--tds-sidebar-side-menu-single-subitem-selected-border-color)}";
|
|
@@ -35,6 +35,7 @@ function defineCustomElement$1() {
|
|
|
35
35
|
break;
|
|
36
36
|
} });
|
|
37
37
|
}
|
|
38
|
+
defineCustomElement$1();
|
|
38
39
|
|
|
39
40
|
const TdsSideMenuCloseButton = TdsSideMenuCloseButton$1;
|
|
40
41
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { g as generateUniqueId } from './
|
|
2
|
+
import { g as generateUniqueId } from './generateUniqueId.js';
|
|
3
3
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
4
4
|
|
|
5
5
|
const sliderCss = "tds-slider{box-sizing:border-box;width:100%}tds-slider *{box-sizing:border-box}tds-slider input[type=range].tds-slider-native-element{display:none}.tds-slider-wrapper{width:100%}.tds-slider-wrapper.read-only{pointer-events:none}.tds-slider{width:100%;display:flex;flex-wrap:nowrap;padding-top:65px}.tds-slider .tds-slider-inner{width:100%;height:20px;position:relative}.tds-slider .tds-slider__controls{position:relative;top:-25px}.tds-slider .tds-slider__controls .tds-slider__control{cursor:pointer}.tds-slider .tds-slider__controls .tds-slider__control.tds-slider__control-minus{padding:18px 18px 18px 0}.tds-slider .tds-slider__controls .tds-slider__control.tds-slider__control-plus{padding:18px 0 18px 18px}.tds-slider .tds-slider__input-values{position:relative;top:-25px;display:flex;flex-wrap:nowrap;align-items:center}.tds-slider .tds-slider__input-values .tds-slider__input-value{user-select:none;padding:18px;color:var(--tds-grey-700);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}.tds-slider .tds-slider__input-values .tds-slider__input-value.min-value{padding-left:0}.tds-slider .tds-slider__input-values .tds-slider__input-field-wrapper{background-color:var(--tds-slider-inputfield-background);display:flex;align-items:center;justify-content:center;border-radius:4px 4px 0 0}.tds-slider .tds-slider__input-values .tds-slider__input-field-wrapper input.tds-slider__input-field{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-slider-input-inputfield-color);border:0;background-color:transparent;text-align:center;padding:12px;box-shadow:inset 0 -1px 0 var(--tds-slider-inputfield-box-shadow);border-radius:4px 4px 0 0}.tds-slider .tds-slider__input-values .tds-slider__input-field-wrapper input.tds-slider__input-field:hover{box-shadow:inset 0 -1px 0 var(--tds-grey-600)}.tds-slider .tds-slider__input-values .tds-slider__input-field-wrapper input.tds-slider__input-field:focus{box-shadow:inset 0 -2px 0 var(--tds-blue-400);outline:0}.tds-slider label{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);user-select:none;position:absolute;color:var(--tds-slider-label-color);padding-bottom:16px;transform:translateY(-100%)}.tds-slider label.offset{padding-bottom:34px}.tds-slider .tds-slider__value{font:var(--tds-detail-01);letter-spacing:var(--tds-detail-01-ls);user-select:none;border-radius:4px;padding:8px;position:absolute;transform:translate(-50%, -100%);top:-24px;background-color:var(--tds-slider-value-tooltip-background);color:var(--tds-slider-value-tooltip-color)}.tds-slider .tds-slider__value svg{color:var(--tds-slider-value-tooltip-background);position:absolute;left:50%;transform:translateX(-50%);top:34px}.tds-slider .tds-slider__thumb{position:absolute}.tds-slider .tds-slider__thumb .tds-slider__thumb-inner{width:20px;height:20px;border-radius:100%;background-color:var(--tds-slider-thumb-color);position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);cursor:pointer}.tds-slider .tds-slider__thumb .tds-slider__thumb-inner::before{content:\" \";display:none;width:48px;height:48px;background-color:var(--tds-slider-thumb-color);position:absolute;border-radius:100%;top:50%;left:50%;transform:translate(-50%, -50%)}.tds-slider .tds-slider__thumb .tds-slider__thumb-inner:hover::before{display:block;opacity:0.08}.tds-slider .tds-slider__thumb .tds-slider__thumb-inner.pressed{width:24px;height:24px}.tds-slider .tds-slider__thumb .tds-slider__thumb-inner.pressed::before{display:block;opacity:0.16 !important}.tds-slider .tds-slider__value-dividers-wrapper{position:relative;width:100%;pointer-events:none}.tds-slider .tds-slider__value-dividers{pointer-events:none;position:absolute;display:flex;justify-content:space-between;width:100%}.tds-slider .tds-slider__value-dividers .tds-slider__value-divider{transform:translateY(-50%);height:16px;background-color:var(--tds-slider-divider-color);color:var(--tds-slider-divider-values-color);width:1px}.tds-slider .tds-slider__value-dividers .tds-slider__value-divider span{display:block;user-select:none;color:var(-tds-grey-700);font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);position:relative;top:-7px;left:50%;transform:translate(-50%, -100%);width:50px;text-align:center}.tds-slider .tds-slider__track{width:100%;height:2px;border-radius:1px;background-color:var(--tds-slider-track-color);position:relative}.tds-slider .tds-slider__track:focus{outline:0}.tds-slider .tds-slider__track:focus .tds-slider__thumb .tds-slider__thumb-inner{width:24px;height:24px}.tds-slider .tds-slider__track:focus .tds-slider__thumb .tds-slider__thumb-inner::before{display:block;opacity:0.08}.tds-slider .tds-slider__track .tds-slider__track-fill{background-color:var(--tds-slider-track-fill-color);border-radius:2px;height:4px;position:absolute;left:0;top:-1px}.tds-slider.disabled{cursor:not-allowed}.tds-slider.disabled>*{pointer-events:none}.tds-slider.disabled label{color:var(--tds-slider-disabled)}.tds-slider.disabled .tds-slider__controls .tds-slider__control{cursor:default}.tds-slider.disabled .tds-slider__controls .tds-slider__control.tds-slider__control-minus svg,.tds-slider.disabled .tds-slider__controls .tds-slider__control.tds-slider__control-plus svg{fill:var(--tds-slider-disabled)}.tds-slider.disabled .tds-slider__input-values .tds-slider__input-value{color:var(--tds-slider-disabled)}.tds-slider.disabled .tds-slider__input-values .tds-slider__input-field-wrapper{pointer-events:none}.tds-slider.disabled .tds-slider__input-values .tds-slider__input-field-wrapper input.tds-slider__input-field{color:var(--tds-slider-disabled);pointer-events:none}.tds-slider.disabled .tds-slider__value{display:none}.tds-slider.disabled .tds-slider__track .tds-slider__track-fill{background-color:var(--tds-slider-disabled)}.tds-slider.disabled .tds-slider__value-dividers .tds-slider__value-divider span{color:var(--tds-slider-disabled)}.tds-slider.disabled .tds-slider__thumb{pointer-events:none}.tds-slider.disabled .tds-slider__thumb .tds-slider__thumb-inner{background-color:var(--tds-slider-disabled);cursor:default}.tds-slider.tds-slider-small .tds-slider__thumb .tds-slider__thumb-inner{width:16px;height:16px}.tds-slider.tds-slider-small .tds-slider__thumb .tds-slider__thumb-inner::before{width:40px;height:40px}.tds-slider.tds-slider-small .tds-slider__thumb .tds-slider__thumb-inner.pressed{width:20px;height:20px}.tds-slider .tds-slider__controls .tds-slider__control{cursor:default}.tds-slider .tds-slider__controls .tds-slider__control.tds-slider__control-minus tds-icon,.tds-slider .tds-slider__controls .tds-slider__control.tds-slider__control-plus tds-icon{color:var(--tds-slider-controls-color)}.tds-slider.disabled .tds-slider__controls .tds-slider__control{cursor:default}.tds-slider.disabled .tds-slider__controls .tds-slider__control.tds-slider__control-minus tds-icon,.tds-slider.disabled .tds-slider__controls .tds-slider__control.tds-slider__control-plus tds-icon{color:var(--tds-slider-disabled)}";
|
|
@@ -20,7 +20,6 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
|
|
|
20
20
|
this.thumbGrabbed = false;
|
|
21
21
|
this.thumbLeft = 0;
|
|
22
22
|
this.tickValues = [];
|
|
23
|
-
this.readonlyState = false;
|
|
24
23
|
this.useControls = false;
|
|
25
24
|
this.useInput = false;
|
|
26
25
|
this.useSmall = false;
|
|
@@ -96,6 +95,11 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
|
|
|
96
95
|
}
|
|
97
96
|
this.thumbCore(event);
|
|
98
97
|
}
|
|
98
|
+
handleValueUpdate(newVal) {
|
|
99
|
+
this.calculateThumbLeftFromValue(newVal);
|
|
100
|
+
this.updateValueForced(newVal);
|
|
101
|
+
this.updateTrack();
|
|
102
|
+
}
|
|
99
103
|
updateSupposedValueSlot(localLeft) {
|
|
100
104
|
const numTicks = parseInt(this.ticks);
|
|
101
105
|
const trackWidth = this.getTrackWidth();
|
|
@@ -242,7 +246,7 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
|
|
|
242
246
|
this.updateTrack();
|
|
243
247
|
}
|
|
244
248
|
grabThumb() {
|
|
245
|
-
if (this.
|
|
249
|
+
if (this.readOnly) {
|
|
246
250
|
return;
|
|
247
251
|
}
|
|
248
252
|
this.thumbGrabbed = true;
|
|
@@ -252,7 +256,7 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
|
|
|
252
256
|
return this.max.length;
|
|
253
257
|
}
|
|
254
258
|
controlsStep(delta) {
|
|
255
|
-
if (this.
|
|
259
|
+
if (this.readOnly || this.disabled) {
|
|
256
260
|
return;
|
|
257
261
|
}
|
|
258
262
|
const numTicks = parseInt(this.ticks);
|
|
@@ -302,7 +306,6 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
|
|
|
302
306
|
}
|
|
303
307
|
this.tickValues.push(this.getMax());
|
|
304
308
|
}
|
|
305
|
-
this.readonlyState = this.readOnly;
|
|
306
309
|
this.useInput = false;
|
|
307
310
|
this.useControls = false;
|
|
308
311
|
if (this.controls) {
|
|
@@ -321,7 +324,7 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
|
|
|
321
324
|
}
|
|
322
325
|
}
|
|
323
326
|
render() {
|
|
324
|
-
return (h("div", { class: `tds-slider-wrapper ${this.
|
|
327
|
+
return (h("div", { class: `tds-slider-wrapper ${this.readOnly ? 'read-only' : ''}` }, h("input", { class: "tds-slider-native-element", type: "range", value: this.value, name: this.name, min: this.min, max: this.max, disabled: this.disabled }), h("div", { class: {
|
|
325
328
|
'tds-slider': true,
|
|
326
329
|
'disabled': this.disabled,
|
|
327
330
|
'tds-slider-small': this.useSmall,
|
|
@@ -342,7 +345,7 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
|
|
|
342
345
|
} })))), this.useInput && (h("div", { class: "tds-slider__input-values" }, h("div", { ref: (el) => {
|
|
343
346
|
this.minusElement = el;
|
|
344
347
|
}, class: "tds-slider__input-value" }, this.max), h("div", { class: "tds-slider__input-field-wrapper" }, h("input", { onFocus: (e) => {
|
|
345
|
-
if (this.
|
|
348
|
+
if (this.readOnly) {
|
|
346
349
|
e.preventDefault();
|
|
347
350
|
this.inputElement.blur();
|
|
348
351
|
}
|
|
@@ -352,6 +355,9 @@ const TdsSlider$1 = /*@__PURE__*/ proxyCustomElement(class TdsSlider extends HTM
|
|
|
352
355
|
this.plusElement = el;
|
|
353
356
|
}, class: "tds-slider__control tds-slider__control-plus" }, h("tds-icon", { name: "plus", size: "16px" })))))));
|
|
354
357
|
}
|
|
358
|
+
static get watchers() { return {
|
|
359
|
+
"value": ["handleValueUpdate"]
|
|
360
|
+
}; }
|
|
355
361
|
static get style() { return sliderCss; }
|
|
356
362
|
}, [0, "tds-slider", {
|
|
357
363
|
"label": [1],
|
|
@@ -390,6 +396,7 @@ function defineCustomElement$1() {
|
|
|
390
396
|
break;
|
|
391
397
|
} });
|
|
392
398
|
}
|
|
399
|
+
defineCustomElement$1();
|
|
393
400
|
|
|
394
401
|
const TdsSlider = TdsSlider$1;
|
|
395
402
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { g as generateUniqueId } from './
|
|
2
|
+
import { g as generateUniqueId } from './generateUniqueId.js';
|
|
3
3
|
|
|
4
4
|
const stepperCss = ":host [role=list]{display:flex;justify-content:space-evenly;min-width:100%}:host [role=list]:not(.text-position-aside){display:table;table-layout:fixed;width:100%;list-style:none}:host [role=list].vertical{height:100%;display:flex;flex-direction:column;justify-content:unset;gap:52px}:host [role=list].vertical.sm{gap:36px}:host [role=list].horizontal.text-position-aside{justify-content:unset}";
|
|
5
5
|
|
|
@@ -81,6 +81,7 @@ function defineCustomElement$1() {
|
|
|
81
81
|
break;
|
|
82
82
|
} });
|
|
83
83
|
}
|
|
84
|
+
defineCustomElement$1();
|
|
84
85
|
|
|
85
86
|
const TdsStepper = TdsStepper$1;
|
|
86
87
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { d as defineCustomElement$2 } from './icon.js';
|
|
3
3
|
|
|
4
|
-
const tableFooterCss = ":host{box-sizing:border-box;display:table-footer-group;height:48px}:host *{box-sizing:border-box}:host .tds-table__footer-row{background-color:var(--tds-table-footer-background);color:var(--tds-table-color)}:host .tds-table__footer-cell{padding:0 16px}:host .tds-table__footer-cell .tds-table__pagination{height:48px;display:flex;align-items:center;justify-content:space-between}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector{display:flex;align-items:center}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);background-color:var(--tds-table-footer-page-selector-input-background);color:var(--tds-table-color);width:54px;height:30px;border:none;border-radius:4px;transition:background-color 250ms ease;margin-right:4px;padding-left:16px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:hover{background-color:var(--tds-table-footer-page-selector-input-background-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:disabled{color:var(--tds-table-footer-page-selector-input-color-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input--shake{animation:tds-shake-animation 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;transform:translate3d(0, 0, 0);backface-visibility:hidden;perspective:1000px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-text{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:1px 8px 0 0}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{display:flex;justify-content:center;align-items:center;border:none;background-color:transparent;cursor:pointer;height:32px;width:32px;border-radius:4px;transition:background-color 250ms ease}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:hover{background-color:var(--tds-table-footer-btn-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled{cursor:default;
|
|
4
|
+
const tableFooterCss = ":host{box-sizing:border-box;display:table-footer-group;height:48px}:host *{box-sizing:border-box}:host .tds-table__footer-row{background-color:var(--tds-table-footer-background);color:var(--tds-table-color)}:host .tds-table__footer-cell{padding:0 16px}:host .tds-table__footer-cell .tds-table__pagination{height:48px;display:flex;align-items:center;justify-content:space-between}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector{display:flex;align-items:center}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);background-color:var(--tds-table-footer-page-selector-input-background);color:var(--tds-table-color);width:54px;height:30px;border:none;border-radius:4px;transition:background-color 250ms ease;margin-right:4px;padding-left:16px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:hover{background-color:var(--tds-table-footer-page-selector-input-background-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:disabled{color:var(--tds-table-footer-page-selector-input-color-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input--shake{animation:tds-shake-animation 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;transform:translate3d(0, 0, 0);backface-visibility:hidden;perspective:1000px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-text{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:1px 8px 0 0}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{display:flex;justify-content:center;align-items:center;border:none;background-color:transparent;cursor:pointer;height:32px;width:32px;border-radius:4px;transition:background-color 250ms ease;color:var(--tds-table-footer-page-selector-icon)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:hover{background-color:var(--tds-table-footer-btn-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled{cursor:default;color:var(--tds-table-footer-page-selector-icon-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled:hover{background-color:transparent}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn-svg{height:20px;width:20px;fill:var(--tds-table-color)}:host(.tds-table--compact){height:32px}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination{height:32px}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{height:24px}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{height:28px;width:28px}@keyframes tds-shake-animation{10%,90%{transform:translate3d(-1px, 0, 0)}20%,80%{transform:translate3d(2px, 0, 0)}30%,50%,70%{transform:translate3d(-4px, 0, 0)}40%,60%{transform:translate3d(4px, 0, 0)}}";
|
|
5
5
|
|
|
6
6
|
const relevantTableProps = ['compactDesign'];
|
|
7
7
|
function removeShakeAnimation(e) {
|
|
@@ -130,6 +130,7 @@ function defineCustomElement$1() {
|
|
|
130
130
|
break;
|
|
131
131
|
} });
|
|
132
132
|
}
|
|
133
|
+
defineCustomElement$1();
|
|
133
134
|
|
|
134
135
|
const TdsTableFooter = TdsTableFooter$1;
|
|
135
136
|
const defineCustomElement = defineCustomElement$1;
|