@scania/tegel 1.38.0 → 1.40.0-stencil-core-4.38.1-beta.0
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/dist/cjs/getAriaInvalid-Bdg4qUb_.js +25 -0
- package/dist/cjs/index-Cpz8G-hs.js +2379 -0
- package/dist/cjs/{inheritAriaAttributes-dedbbc57.js → inheritAriaAttributes-D_xFGssc.js} +1 -1
- package/dist/cjs/{isHeadingElement-4f06b688.js → isHeadingElement-DihKNeqS.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/tds-accordion-item.cjs.entry.js +10 -7
- package/dist/cjs/tds-accordion.cjs.entry.js +4 -5
- package/dist/cjs/tds-badge.cjs.entry.js +6 -5
- package/dist/cjs/tds-banner.cjs.entry.js +18 -14
- package/dist/cjs/tds-block.cjs.entry.js +4 -5
- package/dist/cjs/tds-body-cell.cjs.entry.js +5 -11
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +3 -5
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +2 -6
- package/dist/cjs/tds-button_2.cjs.entry.js +93 -0
- package/dist/cjs/tds-card.cjs.entry.js +36 -20
- package/dist/cjs/tds-checkbox.cjs.entry.js +13 -15
- package/dist/cjs/tds-chip.cjs.entry.js +19 -16
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +11 -12
- package/dist/cjs/tds-datetime.cjs.entry.js +29 -25
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +113 -73
- package/dist/cjs/tds-folder-tab.cjs.entry.js +5 -8
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +15 -15
- package/dist/cjs/tds-footer-group.cjs.entry.js +8 -13
- package/dist/cjs/tds-footer-item.cjs.entry.js +3 -6
- package/dist/cjs/tds-footer.cjs.entry.js +7 -9
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +3 -6
- package/dist/cjs/tds-header-cell.cjs.entry.js +19 -23
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +7 -8
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +3 -10
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +6 -9
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +12 -16
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +5 -9
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +7 -9
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +3 -6
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +4 -7
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +5 -9
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +3 -6
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +4 -7
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +3 -5
- package/dist/cjs/tds-header-launcher.cjs.entry.js +8 -13
- package/dist/cjs/tds-header-title.cjs.entry.js +4 -7
- package/dist/cjs/tds-header.cjs.entry.js +5 -8
- package/dist/cjs/tds-icon.cjs.entry.js +11 -13
- package/dist/cjs/tds-inline-tab.cjs.entry.js +6 -8
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +17 -16
- package/dist/cjs/tds-link.cjs.entry.js +8 -8
- package/dist/cjs/tds-message.cjs.entry.js +16 -16
- package/dist/cjs/tds-modal.cjs.entry.js +20 -20
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +6 -8
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +18 -17
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +22 -13
- package/dist/cjs/tds-popover-core.cjs.entry.js +40 -36
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +5 -7
- package/dist/cjs/tds-popover-menu.cjs.entry.js +18 -13
- package/dist/cjs/tds-radio-button.cjs.entry.js +12 -15
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +5 -8
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +7 -12
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +6 -8
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +4 -7
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +8 -10
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +9 -9
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +3 -6
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +5 -13
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +3 -10
- package/dist/cjs/tds-side-menu.cjs.entry.js +15 -12
- package/dist/cjs/tds-slider.cjs.entry.js +78 -34
- package/dist/cjs/tds-spinner.cjs.entry.js +5 -6
- package/dist/cjs/tds-step.cjs.entry.js +4 -12
- package/dist/cjs/tds-stepper.cjs.entry.js +13 -6
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +4 -6
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +18 -14
- package/dist/cjs/tds-table-body-row.cjs.entry.js +7 -7
- package/dist/cjs/tds-table-body.cjs.entry.js +9 -13
- package/dist/cjs/tds-table-footer.cjs.entry.js +24 -20
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +4 -6
- package/dist/cjs/tds-table-header.cjs.entry.js +7 -8
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +7 -7
- package/dist/cjs/tds-table.cjs.entry.js +21 -7
- package/dist/cjs/tds-tag.cjs.entry.js +6 -8
- package/dist/cjs/tds-text-field.cjs.entry.js +29 -17
- package/dist/cjs/tds-textarea.cjs.entry.js +20 -15
- package/dist/cjs/tds-toast.cjs.entry.js +20 -20
- package/dist/cjs/tds-toggle.cjs.entry.js +16 -17
- package/dist/cjs/tds-tooltip.cjs.entry.js +21 -19
- package/dist/cjs/tegel.cjs.js +7 -8
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +9 -30
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +24 -6
- package/dist/collection/components/accordion/accordion.js +8 -2
- package/dist/collection/components/badge/badge.js +16 -4
- package/dist/collection/components/banner/banner.js +39 -18
- package/dist/collection/components/block/block.js +8 -2
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +4 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +4 -5
- package/dist/collection/components/button/button.css +14 -14
- package/dist/collection/components/button/button.js +44 -19
- package/dist/collection/components/card/card.css +12 -0
- package/dist/collection/components/card/card.js +105 -26
- package/dist/collection/components/checkbox/checkbox.js +41 -22
- package/dist/collection/components/chip/chip.css +23 -15
- package/dist/collection/components/chip/chip.js +41 -19
- package/dist/collection/components/datetime/datetime.css +21 -96
- package/dist/collection/components/datetime/datetime.js +77 -38
- package/dist/collection/components/divider/divider.js +9 -3
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +1 -1
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +46 -23
- package/dist/collection/components/dropdown/dropdown.js +141 -69
- package/dist/collection/components/footer/footer-group/footer-group.js +13 -11
- package/dist/collection/components/footer/footer-item/footer-item.js +1 -1
- package/dist/collection/components/footer/footer.js +7 -4
- package/dist/collection/components/header/core-header-item/core-header-item.js +1 -1
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +1 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.css +5 -0
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +22 -15
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +5 -3
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +5 -3
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +10 -4
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +17 -15
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +5 -6
- package/dist/collection/components/header/header-item/header-item.css +15 -8
- package/dist/collection/components/header/header-item/header-item.js +11 -4
- package/dist/collection/components/header/header-launcher/header-launcher.js +7 -7
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +10 -5
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +1 -4
- package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +1 -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-item/header-launcher-list-item.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-title/header-title.css +2 -0
- package/dist/collection/components/header/header-title/header-title.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/icon/icon.js +27 -16
- package/dist/collection/components/link/link.css +13 -15
- package/dist/collection/components/link/link.js +14 -5
- package/dist/collection/components/message/message.css +9 -9
- package/dist/collection/components/message/message.js +35 -18
- package/dist/collection/components/modal/modal.js +46 -25
- package/dist/collection/components/popover-canvas/popover-canvas.css +1 -1
- package/dist/collection/components/popover-canvas/popover-canvas.js +71 -24
- package/dist/collection/components/popover-core/popover-core.js +61 -30
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +6 -3
- package/dist/collection/components/popover-menu/popover-menu.js +46 -18
- package/dist/collection/components/radio-button/radio-button.js +37 -21
- 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 +5 -7
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +19 -10
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +2 -2
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.css +84 -5
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +6 -3
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +82 -5
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +11 -4
- package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +17 -15
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +9 -9
- package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +9 -9
- package/dist/collection/components/side-menu/side-menu.js +22 -10
- package/dist/collection/components/slider/slider.css +24 -28
- package/dist/collection/components/slider/slider.js +128 -45
- package/dist/collection/components/spinner/spinner.js +9 -3
- package/dist/collection/components/stepper/step/step.js +13 -12
- package/dist/collection/components/stepper/stepper.js +28 -6
- package/dist/collection/components/table/table/table.js +49 -12
- package/dist/collection/components/table/table-body/table-body.js +7 -8
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +18 -13
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +5 -2
- package/dist/collection/components/table/table-body-row/table-body-row.js +14 -5
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +34 -15
- package/dist/collection/components/table/table-footer/table-footer.js +39 -20
- package/dist/collection/components/table/table-header/table-header.js +18 -8
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +41 -28
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +8 -3
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +14 -5
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +6 -4
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +29 -16
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +11 -12
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +6 -3
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +9 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +33 -17
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +1 -1
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +6 -3
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +35 -19
- package/dist/collection/components/tag/tag.js +13 -6
- package/dist/collection/components/text-field/text-field.js +129 -36
- package/dist/collection/components/textarea/textarea.js +73 -31
- package/dist/collection/components/toast/toast.css +7 -7
- package/dist/collection/components/toast/toast.js +45 -24
- package/dist/collection/components/toggle/toggle.js +40 -22
- package/dist/collection/components/tooltip/tooltip.js +53 -26
- package/dist/collection/utils/dom.js +7 -0
- package/dist/collection/utils/getAriaInvalid.js +21 -0
- package/dist/components/index.js +1790 -1
- package/dist/components/{p-df84759a.js → p-B569z5eW.js} +29 -15
- package/dist/components/{p-6adb1ce3.js → p-BHBgkUfr.js} +15 -11
- package/dist/components/{p-9ad61cb5.js → p-BhLq7lgx.js} +8 -7
- package/dist/components/{p-94bfc9f4.js → p-BiyghEA7.js} +78 -56
- package/dist/components/{p-ea381f94.js → p-BxmFjTxG.js} +14 -10
- package/dist/components/{p-927cf777.js → p-CMsPXG7a.js} +8 -9
- package/dist/components/{p-b390ece5.js → p-CPDv0bBc.js} +16 -14
- package/dist/components/{p-44f5b5e1.js → p-Ca3wGDna.js} +18 -16
- package/dist/components/p-ChCWm6If.js +95 -0
- package/dist/components/{p-859e3ebf.js → p-CuIyaNyT.js} +1 -1
- package/dist/components/{p-63437b77.js → p-D1ati-pM.js} +14 -12
- package/dist/components/{p-40253725.js → p-DnzQe_HU.js} +27 -21
- package/dist/components/{p-b609e7a7.js → p-DuxH3vDC.js} +8 -9
- package/dist/components/{p-d64878cb.js → p-Ee9QeMgy.js} +53 -28
- package/dist/components/{p-6eecf159.js → p-FqP1yGh_.js} +10 -7
- package/dist/components/{p-71c3dfe9.js → p-HRj1DOvh.js} +12 -9
- package/dist/components/p-Ip9G3co9.js +205 -0
- package/dist/components/{p-0bd4c19c.js → p-Q3W78DlP.js} +1 -1
- package/dist/components/{p-d0cf68be.js → p-QnvG_QPu.js} +10 -9
- package/dist/components/{p-d3866be7.js → p-X1sPx4t5.js} +45 -37
- package/dist/components/p-wEP_nEaO.js +23 -0
- package/dist/components/tds-accordion-item.js +16 -9
- package/dist/components/tds-accordion.js +9 -6
- package/dist/components/tds-badge.js +11 -6
- package/dist/components/tds-banner.js +24 -16
- package/dist/components/tds-block.js +9 -6
- package/dist/components/tds-body-cell.js +10 -12
- package/dist/components/tds-breadcrumb.js +8 -6
- package/dist/components/tds-breadcrumbs.js +7 -7
- package/dist/components/tds-button.js +1 -89
- package/dist/components/tds-card.js +58 -24
- package/dist/components/tds-checkbox.js +1 -1
- package/dist/components/tds-chip.js +24 -17
- package/dist/components/tds-core-header-item.js +1 -1
- package/dist/components/tds-datetime.js +35 -27
- package/dist/components/tds-divider.js +1 -1
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +1 -1
- package/dist/components/tds-folder-tab.js +10 -9
- package/dist/components/tds-folder-tabs.js +21 -17
- package/dist/components/tds-footer-group.js +14 -15
- package/dist/components/tds-footer-item.js +8 -7
- package/dist/components/tds-footer.js +12 -10
- package/dist/components/tds-header-brand-symbol.js +10 -9
- package/dist/components/tds-header-cell.js +25 -25
- package/dist/components/tds-header-dropdown-list-item.js +1 -1
- package/dist/components/tds-header-dropdown-list-user.js +8 -11
- package/dist/components/tds-header-dropdown-list.js +1 -1
- package/dist/components/tds-header-dropdown.js +22 -22
- package/dist/components/tds-header-hamburger.js +12 -12
- package/dist/components/tds-header-item.js +1 -1
- package/dist/components/tds-header-launcher-button.js +1 -1
- package/dist/components/tds-header-launcher-grid-item.js +8 -7
- package/dist/components/tds-header-launcher-grid-title.js +9 -8
- package/dist/components/tds-header-launcher-grid.js +9 -9
- package/dist/components/tds-header-launcher-list-item.js +9 -8
- package/dist/components/tds-header-launcher-list-title.js +9 -8
- package/dist/components/tds-header-launcher-list.js +9 -7
- package/dist/components/tds-header-launcher.js +18 -19
- package/dist/components/tds-header-title.js +9 -8
- package/dist/components/tds-header.js +9 -8
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tab.js +11 -9
- package/dist/components/tds-inline-tabs.js +23 -18
- package/dist/components/tds-link.js +13 -9
- package/dist/components/tds-message.js +22 -18
- package/dist/components/tds-modal.js +26 -22
- package/dist/components/tds-navigation-tab.js +11 -9
- package/dist/components/tds-navigation-tabs.js +24 -19
- package/dist/components/tds-popover-canvas.js +1 -1
- package/dist/components/tds-popover-core.js +1 -1
- package/dist/components/tds-popover-menu-item.js +10 -8
- package/dist/components/tds-popover-menu.js +24 -15
- package/dist/components/tds-radio-button.js +17 -16
- package/dist/components/tds-side-menu-close-button.js +10 -9
- package/dist/components/tds-side-menu-collapse-button.js +13 -14
- package/dist/components/tds-side-menu-dropdown-list-item.js +11 -9
- package/dist/components/tds-side-menu-dropdown-list.js +9 -8
- package/dist/components/tds-side-menu-dropdown.js +15 -13
- package/dist/components/tds-side-menu-item.js +1 -1
- package/dist/components/tds-side-menu-overlay.js +8 -7
- package/dist/components/tds-side-menu-user-image.js +1 -1
- package/dist/components/tds-side-menu-user-label.js +1 -1
- package/dist/components/tds-side-menu-user.js +10 -13
- package/dist/components/tds-side-menu.js +20 -13
- package/dist/components/tds-slider.js +103 -37
- package/dist/components/tds-spinner.js +10 -7
- package/dist/components/tds-step.js +10 -14
- package/dist/components/tds-stepper.js +18 -7
- package/dist/components/tds-table-body-input-wrapper.js +10 -8
- package/dist/components/tds-table-body-row-expandable.js +23 -15
- package/dist/components/tds-table-body-row.js +13 -9
- package/dist/components/tds-table-body.js +14 -14
- package/dist/components/tds-table-footer.js +33 -25
- package/dist/components/tds-table-header-input-wrapper.js +10 -8
- package/dist/components/tds-table-header.js +13 -10
- package/dist/components/tds-table-toolbar.js +13 -9
- package/dist/components/tds-table.js +26 -8
- package/dist/components/tds-tag.js +11 -9
- package/dist/components/tds-text-field.js +1 -185
- package/dist/components/tds-textarea.js +28 -19
- package/dist/components/tds-toast.js +26 -22
- package/dist/components/tds-toggle.js +21 -18
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/getAriaInvalid-wEP_nEaO.js +23 -0
- package/dist/esm/index-Cl9XBhQW.js +2350 -0
- package/dist/esm/{inheritAriaAttributes-04f2f252.js → inheritAriaAttributes-DyLhgCIg.js} +1 -1
- package/dist/esm/{isHeadingElement-8efea284.js → isHeadingElement-BQco7VNg.js} +1 -1
- package/dist/esm/loader.js +3 -4
- package/dist/esm/tds-accordion-item.entry.js +10 -5
- package/dist/esm/tds-accordion.entry.js +4 -3
- package/dist/esm/tds-badge.entry.js +6 -3
- package/dist/esm/tds-banner.entry.js +18 -12
- package/dist/esm/tds-block.entry.js +4 -3
- package/dist/esm/tds-body-cell.entry.js +5 -9
- package/dist/esm/tds-breadcrumb.entry.js +3 -3
- package/dist/esm/tds-breadcrumbs.entry.js +2 -4
- package/dist/esm/tds-button_2.entry.js +90 -0
- package/dist/esm/tds-card.entry.js +36 -18
- package/dist/esm/tds-checkbox.entry.js +13 -13
- package/dist/esm/tds-chip.entry.js +19 -14
- package/dist/esm/tds-core-header-item_2.entry.js +11 -10
- package/dist/esm/tds-datetime.entry.js +29 -23
- package/dist/esm/tds-dropdown_2.entry.js +113 -71
- package/dist/esm/tds-folder-tab.entry.js +5 -6
- package/dist/esm/tds-folder-tabs.entry.js +15 -13
- package/dist/esm/tds-footer-group.entry.js +8 -11
- package/dist/esm/tds-footer-item.entry.js +3 -4
- package/dist/esm/tds-footer.entry.js +7 -7
- package/dist/esm/tds-header-brand-symbol.entry.js +3 -4
- package/dist/esm/tds-header-cell.entry.js +19 -21
- package/dist/esm/tds-header-dropdown-list-item.entry.js +7 -6
- package/dist/esm/tds-header-dropdown-list-user.entry.js +3 -8
- package/dist/esm/tds-header-dropdown-list.entry.js +6 -7
- package/dist/esm/tds-header-dropdown.entry.js +12 -14
- package/dist/esm/tds-header-hamburger.entry.js +5 -7
- package/dist/esm/tds-header-launcher-button.entry.js +7 -7
- package/dist/esm/tds-header-launcher-grid-item.entry.js +3 -4
- package/dist/esm/tds-header-launcher-grid-title.entry.js +4 -5
- package/dist/esm/tds-header-launcher-grid.entry.js +5 -7
- package/dist/esm/tds-header-launcher-list-item.entry.js +3 -4
- package/dist/esm/tds-header-launcher-list-title.entry.js +4 -5
- package/dist/esm/tds-header-launcher-list.entry.js +3 -3
- package/dist/esm/tds-header-launcher.entry.js +8 -11
- package/dist/esm/tds-header-title.entry.js +4 -5
- package/dist/esm/tds-header.entry.js +5 -6
- package/dist/esm/tds-icon.entry.js +11 -11
- package/dist/esm/tds-inline-tab.entry.js +6 -6
- package/dist/esm/tds-inline-tabs.entry.js +17 -14
- package/dist/esm/tds-link.entry.js +8 -6
- package/dist/esm/tds-message.entry.js +16 -14
- package/dist/esm/tds-modal.entry.js +20 -18
- package/dist/esm/tds-navigation-tab.entry.js +6 -6
- package/dist/esm/tds-navigation-tabs.entry.js +18 -15
- package/dist/esm/tds-popover-canvas.entry.js +22 -11
- package/dist/esm/tds-popover-core.entry.js +40 -34
- package/dist/esm/tds-popover-menu-item.entry.js +5 -5
- package/dist/esm/tds-popover-menu.entry.js +18 -11
- package/dist/esm/tds-radio-button.entry.js +12 -13
- package/dist/esm/tds-side-menu-close-button.entry.js +5 -6
- package/dist/esm/tds-side-menu-collapse-button.entry.js +7 -10
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +6 -6
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +4 -5
- package/dist/esm/tds-side-menu-dropdown.entry.js +8 -8
- package/dist/esm/tds-side-menu-item.entry.js +9 -7
- package/dist/esm/tds-side-menu-overlay.entry.js +3 -4
- package/dist/esm/tds-side-menu-user-image_2.entry.js +5 -11
- package/dist/esm/tds-side-menu-user.entry.js +3 -8
- package/dist/esm/tds-side-menu.entry.js +15 -10
- package/dist/esm/tds-slider.entry.js +78 -32
- package/dist/esm/tds-spinner.entry.js +5 -4
- package/dist/esm/tds-step.entry.js +4 -10
- package/dist/esm/tds-stepper.entry.js +13 -4
- package/dist/esm/tds-table-body-input-wrapper.entry.js +4 -4
- package/dist/esm/tds-table-body-row-expandable.entry.js +18 -12
- package/dist/esm/tds-table-body-row.entry.js +7 -5
- package/dist/esm/tds-table-body.entry.js +9 -11
- package/dist/esm/tds-table-footer.entry.js +24 -18
- package/dist/esm/tds-table-header-input-wrapper.entry.js +4 -4
- package/dist/esm/tds-table-header.entry.js +7 -6
- package/dist/esm/tds-table-toolbar.entry.js +7 -5
- package/dist/esm/tds-table.entry.js +21 -5
- package/dist/esm/tds-tag.entry.js +6 -6
- package/dist/esm/tds-text-field.entry.js +29 -15
- package/dist/esm/tds-textarea.entry.js +20 -13
- package/dist/esm/tds-toast.entry.js +20 -18
- package/dist/esm/tds-toggle.entry.js +16 -15
- package/dist/esm/tds-tooltip.entry.js +21 -17
- package/dist/esm/tegel.js +5 -5
- package/dist/tegel/{p-6e57997e.entry.js → p-03d1456f.entry.js} +1 -1
- package/dist/tegel/p-07c5665c.entry.js +1 -0
- package/dist/tegel/p-08d8a464.entry.js +1 -0
- package/dist/tegel/{p-b734b309.entry.js → p-0a3bd804.entry.js} +1 -1
- package/dist/tegel/{p-72006dd7.entry.js → p-0ab44df9.entry.js} +1 -1
- package/dist/tegel/p-0e8721cf.entry.js +1 -0
- package/dist/tegel/p-1371f357.entry.js +1 -0
- package/dist/tegel/p-147d2c33.entry.js +1 -0
- package/dist/tegel/p-250a843a.entry.js +1 -0
- package/dist/tegel/p-2b89b750.entry.js +1 -0
- package/dist/tegel/p-2c5e101e.entry.js +1 -0
- package/dist/tegel/p-2ebac517.entry.js +1 -0
- package/dist/tegel/p-36ea4775.entry.js +1 -0
- package/dist/tegel/p-37873e68.entry.js +1 -0
- package/dist/tegel/p-37aa4516.entry.js +1 -0
- package/dist/tegel/p-3910b9e0.entry.js +1 -0
- package/dist/tegel/p-39f80d1b.entry.js +1 -0
- package/dist/tegel/{p-3022d31d.entry.js → p-3c409856.entry.js} +1 -1
- package/dist/tegel/p-3e1edb21.entry.js +1 -0
- package/dist/tegel/p-3e27eee0.entry.js +1 -0
- package/dist/tegel/p-3f0c978a.entry.js +1 -0
- package/dist/tegel/p-41fa3671.entry.js +1 -0
- package/dist/tegel/{p-bcdf13e0.entry.js → p-449e8c13.entry.js} +1 -1
- package/dist/tegel/p-4b711300.entry.js +1 -0
- package/dist/tegel/p-4ebf13bf.entry.js +1 -0
- package/dist/tegel/{p-525c81b1.entry.js → p-57def79e.entry.js} +1 -1
- package/dist/tegel/p-599ae54d.entry.js +1 -0
- package/dist/tegel/{p-650b98bf.entry.js → p-59a1c10f.entry.js} +1 -1
- package/dist/tegel/p-5d64b236.entry.js +1 -0
- package/dist/tegel/p-6066b5be.entry.js +1 -0
- package/dist/tegel/p-620b157a.entry.js +1 -0
- package/dist/tegel/p-624a8ca4.entry.js +1 -0
- package/dist/tegel/p-628798d4.entry.js +1 -0
- package/dist/tegel/p-63646981.entry.js +1 -0
- package/dist/tegel/p-69bf3133.entry.js +1 -0
- package/dist/tegel/{p-d0f09796.entry.js → p-6cad127c.entry.js} +1 -1
- package/dist/tegel/p-6d3447b7.entry.js +1 -0
- package/dist/tegel/p-71943f32.entry.js +1 -0
- package/dist/tegel/p-7ba0b456.entry.js +1 -0
- package/dist/tegel/p-802e8d8a.entry.js +1 -0
- package/dist/tegel/p-80be1071.entry.js +1 -0
- package/dist/tegel/p-8501b0d7.entry.js +1 -0
- package/dist/tegel/{p-87219f00.entry.js → p-8ad8234f.entry.js} +1 -1
- package/dist/tegel/p-8d4d136f.entry.js +1 -0
- package/dist/tegel/{p-db38b4f2.entry.js → p-8d98759c.entry.js} +1 -1
- package/dist/tegel/p-902183d7.entry.js +1 -0
- package/dist/tegel/p-936d77e4.entry.js +1 -0
- package/dist/tegel/p-942df5c4.entry.js +1 -0
- package/dist/tegel/{p-fbffe3aa.entry.js → p-99f46fe1.entry.js} +1 -1
- package/dist/tegel/p-9b7ad650.entry.js +1 -0
- package/dist/tegel/{p-3a92d554.entry.js → p-9c62f888.entry.js} +1 -1
- package/dist/tegel/p-9f25060e.entry.js +1 -0
- package/dist/tegel/{p-9332c225.js → p-Bx66i7RU.js} +1 -1
- package/dist/tegel/p-Cl9XBhQW.js +2 -0
- package/dist/tegel/{p-0bd4c19c.js → p-Q3W78DlP.js} +1 -1
- package/dist/tegel/p-a08baed5.entry.js +1 -0
- package/dist/tegel/p-a30159f5.entry.js +1 -0
- package/dist/tegel/{p-c7b0253c.entry.js → p-a3ef627e.entry.js} +1 -1
- package/dist/tegel/{p-bb1d069f.entry.js → p-a595dba7.entry.js} +1 -1
- package/dist/tegel/p-aaacbe31.entry.js +1 -0
- package/dist/tegel/p-b0f44fd9.entry.js +1 -0
- package/dist/tegel/p-b2bfe0fb.entry.js +1 -0
- package/dist/tegel/{p-eff87481.entry.js → p-b4df0131.entry.js} +1 -1
- package/dist/tegel/p-b509c734.entry.js +1 -0
- package/dist/tegel/{p-0cfe8671.entry.js → p-b82a11bf.entry.js} +1 -1
- package/dist/tegel/p-bbea0ac6.entry.js +1 -0
- package/dist/tegel/p-c0114238.entry.js +1 -0
- package/dist/tegel/p-c578be27.entry.js +1 -0
- package/dist/tegel/p-d5041602.entry.js +1 -0
- package/dist/tegel/p-dfd5a301.entry.js +1 -0
- package/dist/tegel/{p-5dd2aac8.entry.js → p-e22a2a9b.entry.js} +1 -1
- package/dist/tegel/p-e25343d7.entry.js +1 -0
- package/dist/tegel/p-e2ce7b37.entry.js +1 -0
- package/dist/tegel/p-e4d0d1cb.entry.js +1 -0
- package/dist/tegel/{p-bdc913a0.entry.js → p-e853d304.entry.js} +1 -1
- package/dist/tegel/p-eb479100.entry.js +1 -0
- package/dist/tegel/{p-3ec01fb3.entry.js → p-ec41cf1e.entry.js} +1 -1
- package/dist/tegel/p-ec60f391.entry.js +1 -0
- package/dist/tegel/p-ee227187.entry.js +1 -0
- package/dist/tegel/p-ee500e52.entry.js +1 -0
- package/dist/tegel/p-f42f851e.entry.js +1 -0
- package/dist/tegel/p-f6cf2d52.entry.js +1 -0
- package/dist/tegel/p-wEP_nEaO.js +1 -0
- package/dist/tegel/tegel.css +4 -4
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/card/card.d.ts +10 -0
- package/dist/types/components/dropdown/dropdown.d.ts +4 -0
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +3 -1
- package/dist/types/components/slider/slider-stories-setup.d.ts +1 -1
- package/dist/types/components/slider/slider.d.ts +2 -0
- package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +1 -1
- package/dist/types/components/text-field/text-field.d.ts +5 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/components.d.ts +586 -4
- package/dist/types/stencil-public-runtime.d.ts +78 -5
- package/dist/types/utils/dom.d.ts +2 -0
- package/dist/types/utils/getAriaInvalid.d.ts +14 -0
- package/package.json +5 -3
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/index-ca8040ad.js +0 -2043
- package/dist/cjs/tds-button.cjs.entry.js +0 -67
- package/dist/cjs/tds-divider.cjs.entry.js +0 -31
- package/dist/components/p-28ef5186.js +0 -1507
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/index-51d04e39.js +0 -2013
- package/dist/esm/tds-button.entry.js +0 -63
- package/dist/esm/tds-divider.entry.js +0 -27
- package/dist/tegel/p-06d3490c.entry.js +0 -1
- package/dist/tegel/p-08f63e5d.entry.js +0 -1
- package/dist/tegel/p-0cac9ea6.entry.js +0 -1
- package/dist/tegel/p-177386d5.entry.js +0 -1
- package/dist/tegel/p-1b471db7.entry.js +0 -1
- package/dist/tegel/p-1bbef1a5.entry.js +0 -1
- package/dist/tegel/p-1c75f8a7.entry.js +0 -1
- package/dist/tegel/p-2049fab2.js +0 -2
- package/dist/tegel/p-22b6223e.entry.js +0 -1
- package/dist/tegel/p-23fb4dee.entry.js +0 -1
- package/dist/tegel/p-25d026a6.entry.js +0 -1
- package/dist/tegel/p-25f4b4ca.entry.js +0 -1
- package/dist/tegel/p-27c2f109.entry.js +0 -1
- package/dist/tegel/p-303acf88.entry.js +0 -1
- package/dist/tegel/p-397c8969.entry.js +0 -1
- package/dist/tegel/p-3ebe93ff.entry.js +0 -1
- package/dist/tegel/p-462a6049.entry.js +0 -1
- package/dist/tegel/p-46c9af0f.entry.js +0 -1
- package/dist/tegel/p-49364819.entry.js +0 -1
- package/dist/tegel/p-4a77edf1.entry.js +0 -1
- package/dist/tegel/p-5734c6ef.entry.js +0 -1
- package/dist/tegel/p-5bca9fe7.entry.js +0 -1
- package/dist/tegel/p-5c077bb9.entry.js +0 -1
- package/dist/tegel/p-601a74ad.entry.js +0 -1
- package/dist/tegel/p-614bcd4b.entry.js +0 -1
- package/dist/tegel/p-61a1dc59.entry.js +0 -1
- package/dist/tegel/p-6a615ac1.entry.js +0 -1
- package/dist/tegel/p-7013249b.entry.js +0 -1
- package/dist/tegel/p-704682d6.entry.js +0 -1
- package/dist/tegel/p-7caad569.entry.js +0 -1
- package/dist/tegel/p-7cb9790d.entry.js +0 -1
- package/dist/tegel/p-7d427dff.entry.js +0 -1
- package/dist/tegel/p-84de314b.entry.js +0 -1
- package/dist/tegel/p-86e99fdb.entry.js +0 -1
- package/dist/tegel/p-8ae4e03c.entry.js +0 -1
- package/dist/tegel/p-8c2695af.entry.js +0 -1
- package/dist/tegel/p-9099d978.entry.js +0 -1
- package/dist/tegel/p-9b0c886e.entry.js +0 -1
- package/dist/tegel/p-9b2257f3.entry.js +0 -1
- package/dist/tegel/p-a0591e58.entry.js +0 -1
- package/dist/tegel/p-a6238890.entry.js +0 -1
- package/dist/tegel/p-a66a4a4e.entry.js +0 -1
- package/dist/tegel/p-a74cb560.entry.js +0 -1
- package/dist/tegel/p-a829417c.entry.js +0 -1
- package/dist/tegel/p-a98767ea.entry.js +0 -1
- package/dist/tegel/p-abad3489.entry.js +0 -1
- package/dist/tegel/p-ae438c2e.entry.js +0 -1
- package/dist/tegel/p-aec3e4cf.entry.js +0 -1
- package/dist/tegel/p-b20f250b.entry.js +0 -1
- package/dist/tegel/p-b2b9561f.entry.js +0 -1
- package/dist/tegel/p-b994e7ac.entry.js +0 -1
- package/dist/tegel/p-bb9445ff.entry.js +0 -1
- package/dist/tegel/p-bcd5e06d.entry.js +0 -1
- package/dist/tegel/p-bd935506.entry.js +0 -1
- package/dist/tegel/p-c15eba7d.entry.js +0 -1
- package/dist/tegel/p-cd5103e3.entry.js +0 -1
- package/dist/tegel/p-cf7af8f2.entry.js +0 -1
- package/dist/tegel/p-d184a3f0.entry.js +0 -1
- package/dist/tegel/p-debd6adc.entry.js +0 -1
- package/dist/tegel/p-e1255160.js +0 -1
- package/dist/tegel/p-f2232281.entry.js +0 -1
- package/dist/tegel/p-f4b5e80b.entry.js +0 -1
- package/dist/tegel/p-f9c17612.entry.js +0 -1
- package/loader/package.json +0 -11
- /package/dist/cjs/{dfs-84f7f63e.js → dfs-Clg9RCmq.js} +0 -0
- /package/dist/cjs/{generateUniqueId-e3fc9863.js → generateUniqueId-ComXTAM_.js} +0 -0
- /package/dist/cjs/{hasSlot-1c90e9ba.js → hasSlot-D-DVNhGg.js} +0 -0
- /package/dist/cjs/{inheritAttributes-ff9ad737.js → inheritAttributes-CGw91JfB.js} +0 -0
- /package/dist/components/{p-a1181b1f.js → p-CBZ6wC3m.js} +0 -0
- /package/dist/components/{p-3fe9cbbf.js → p-CF8bH08v.js} +0 -0
- /package/dist/components/{p-52bf0fdf.js → p-CLF3diNe.js} +0 -0
- /package/dist/components/{p-11648030.js → p-Cn4f8w1e.js} +0 -0
- /package/dist/components/{p-ae110fc2.js → p-DDX6uFcm.js} +0 -0
- /package/dist/esm/{dfs-1e574d5f.js → dfs-CLF3diNe.js} +0 -0
- /package/dist/esm/{generateUniqueId-7934d315.js → generateUniqueId-Cn4f8w1e.js} +0 -0
- /package/dist/esm/{hasSlot-d52114d0.js → hasSlot-DDX6uFcm.js} +0 -0
- /package/dist/esm/{inheritAttributes-d21e267b.js → inheritAttributes-CF8bH08v.js} +0 -0
- /package/dist/tegel/{p-3fe9cbbf.js → p-CF8bH08v.js} +0 -0
- /package/dist/tegel/{p-52bf0fdf.js → p-CLF3diNe.js} +0 -0
- /package/dist/tegel/{p-11648030.js → p-Cn4f8w1e.js} +0 -0
- /package/dist/tegel/{p-ae110fc2.js → p-DDX6uFcm.js} +0 -0
|
@@ -14,6 +14,32 @@ function hasValueChanged(newValue, currentValue) {
|
|
|
14
14
|
*/
|
|
15
15
|
export class TdsDropdown {
|
|
16
16
|
constructor() {
|
|
17
|
+
/** Sets the Dropdown in a disabled state */
|
|
18
|
+
this.disabled = false;
|
|
19
|
+
/** Mode variant of the component, based on current mode. */
|
|
20
|
+
this.modeVariant = null;
|
|
21
|
+
/** The direction the Dropdown should open, auto if not specified. */
|
|
22
|
+
this.openDirection = 'auto';
|
|
23
|
+
/** The size of the Dropdown. */
|
|
24
|
+
this.size = 'lg';
|
|
25
|
+
this.animation = 'slide';
|
|
26
|
+
/** Sets the Dropdown in an error state */
|
|
27
|
+
this.error = false;
|
|
28
|
+
/** Enables multiselect in the Dropdown. */
|
|
29
|
+
this.multiselect = false;
|
|
30
|
+
/** Enables filtration in the Dropdown. */
|
|
31
|
+
this.filter = false;
|
|
32
|
+
/** Normalizes input text for fuzzier search */
|
|
33
|
+
this.normalizeText = true;
|
|
34
|
+
/** Text that is displayed if filter is used and there are no options that matches the search.
|
|
35
|
+
* Setting it to an empty string disables message from showing up. */
|
|
36
|
+
this.noResultText = 'No result';
|
|
37
|
+
/** Value of the dropdown. For multiselect, provide array of strings/numbers. For single select, provide a string/number. */
|
|
38
|
+
this.value = null;
|
|
39
|
+
this.open = false;
|
|
40
|
+
this.selectedOptions = [];
|
|
41
|
+
this.filterQuery = '';
|
|
42
|
+
this.hasFocus = false;
|
|
17
43
|
this.setDefaultOption = () => {
|
|
18
44
|
if (this.internalDefaultValue) {
|
|
19
45
|
// Convert the internal default value to an array if it's not already
|
|
@@ -96,6 +122,7 @@ export class TdsDropdown {
|
|
|
96
122
|
this.handleFilter = (event) => {
|
|
97
123
|
this.tdsInput.emit(event);
|
|
98
124
|
const query = event.target.value.toLowerCase();
|
|
125
|
+
this.filterQuery = query;
|
|
99
126
|
/* Check if the query is empty, and if so, show all options */
|
|
100
127
|
const children = this.getChildren();
|
|
101
128
|
if (query === '') {
|
|
@@ -121,26 +148,33 @@ export class TdsDropdown {
|
|
|
121
148
|
}
|
|
122
149
|
};
|
|
123
150
|
this.handleFilterReset = () => {
|
|
124
|
-
|
|
151
|
+
// only reset selected values when filterquery is blank
|
|
152
|
+
if (!this.filterQuery.length) {
|
|
153
|
+
this.reset();
|
|
154
|
+
}
|
|
125
155
|
this.inputElement.value = '';
|
|
126
156
|
this.handleFilter({ target: { value: '' } });
|
|
127
157
|
this.inputElement.focus();
|
|
128
158
|
// Add this line to ensure internal value is cleared
|
|
129
159
|
this.internalValue = '';
|
|
130
160
|
};
|
|
131
|
-
this.handleFocus = (
|
|
161
|
+
this.handleFocus = () => {
|
|
132
162
|
this.open = true;
|
|
133
163
|
this.filterFocus = true;
|
|
134
|
-
if (this.
|
|
164
|
+
if (this.inputElement) {
|
|
135
165
|
this.inputElement.value = '';
|
|
136
166
|
}
|
|
137
|
-
|
|
167
|
+
// Focus event is now handled by focusin listener
|
|
138
168
|
if (this.filter) {
|
|
139
169
|
this.handleFilter({ target: { value: '' } });
|
|
140
170
|
}
|
|
141
171
|
};
|
|
142
|
-
this.handleBlur = (
|
|
143
|
-
|
|
172
|
+
this.handleBlur = () => {
|
|
173
|
+
// Handle internal state changes when component loses focus
|
|
174
|
+
this.filterFocus = false;
|
|
175
|
+
if (this.inputElement) {
|
|
176
|
+
this.inputElement.value = this.getValue();
|
|
177
|
+
}
|
|
144
178
|
};
|
|
145
179
|
this.resetInput = () => {
|
|
146
180
|
const inputEl = this.host.querySelector('input');
|
|
@@ -148,30 +182,6 @@ export class TdsDropdown {
|
|
|
148
182
|
this.reset();
|
|
149
183
|
}
|
|
150
184
|
};
|
|
151
|
-
this.name = undefined;
|
|
152
|
-
this.disabled = false;
|
|
153
|
-
this.helper = undefined;
|
|
154
|
-
this.label = undefined;
|
|
155
|
-
this.labelPosition = undefined;
|
|
156
|
-
this.modeVariant = null;
|
|
157
|
-
this.openDirection = 'auto';
|
|
158
|
-
this.placeholder = undefined;
|
|
159
|
-
this.size = 'lg';
|
|
160
|
-
this.animation = 'slide';
|
|
161
|
-
this.error = false;
|
|
162
|
-
this.multiselect = false;
|
|
163
|
-
this.filter = false;
|
|
164
|
-
this.normalizeText = true;
|
|
165
|
-
this.noResultText = 'No result';
|
|
166
|
-
this.defaultValue = undefined;
|
|
167
|
-
this.value = null;
|
|
168
|
-
this.tdsAriaLabel = undefined;
|
|
169
|
-
this.open = false;
|
|
170
|
-
this.internalValue = undefined;
|
|
171
|
-
this.filterResult = undefined;
|
|
172
|
-
this.filterFocus = undefined;
|
|
173
|
-
this.internalDefaultValue = undefined;
|
|
174
|
-
this.selectedOptions = [];
|
|
175
185
|
}
|
|
176
186
|
handleValueChange(newValue) {
|
|
177
187
|
// Normalize to array
|
|
@@ -315,7 +325,7 @@ export class TdsDropdown {
|
|
|
315
325
|
}
|
|
316
326
|
}
|
|
317
327
|
// Always trigger the focus event to open the dropdown
|
|
318
|
-
this.handleFocus(
|
|
328
|
+
this.handleFocus();
|
|
319
329
|
}
|
|
320
330
|
/** Method for closing the Dropdown. */
|
|
321
331
|
async close() {
|
|
@@ -337,6 +347,25 @@ export class TdsDropdown {
|
|
|
337
347
|
}
|
|
338
348
|
}
|
|
339
349
|
}
|
|
350
|
+
onFocusIn(event) {
|
|
351
|
+
// Check if the focus is within this dropdown component
|
|
352
|
+
if (this.host.contains(event.target)) {
|
|
353
|
+
if (!this.hasFocus) {
|
|
354
|
+
this.hasFocus = true;
|
|
355
|
+
this.tdsFocus.emit(event);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
onFocusOut(event) {
|
|
360
|
+
// Only emit blur if focus is actually leaving the entire dropdown component
|
|
361
|
+
const relatedTarget = event.relatedTarget;
|
|
362
|
+
// If relatedTarget is null (focus going to body/window) or outside the component, emit blur
|
|
363
|
+
if (this.hasFocus && (!relatedTarget || !this.host.contains(relatedTarget))) {
|
|
364
|
+
this.hasFocus = false;
|
|
365
|
+
this.handleBlur();
|
|
366
|
+
this.tdsBlur.emit(event);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
340
369
|
async onKeyDown(event) {
|
|
341
370
|
var _a;
|
|
342
371
|
// Get the active element
|
|
@@ -456,9 +485,9 @@ export class TdsDropdown {
|
|
|
456
485
|
// Generate unique IDs for associating labels and helpers with the input/button
|
|
457
486
|
const labelId = this.label ? `dropdown-label-${this.name || generateUniqueId()}` : undefined;
|
|
458
487
|
const helperId = this.helper ? `dropdown-helper-${this.name || generateUniqueId()}` : undefined;
|
|
459
|
-
return (h(Host, { key: '
|
|
488
|
+
return (h(Host, { key: '8145c7b222a850157de5f328974f5c70b126b9e4', class: {
|
|
460
489
|
[`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
|
|
461
|
-
} }, this.label && this.labelPosition === 'outside' && (h("div", { key: '
|
|
490
|
+
} }, this.label && this.labelPosition === 'outside' && (h("div", { key: 'af3ad647c3c5bbb86f12033821020a4ed484d9e1', id: labelId, class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '099777e28368c78c9eb05945328899334c674865', class: {
|
|
462
491
|
'dropdown-select': true,
|
|
463
492
|
[this.size]: true,
|
|
464
493
|
'disabled': this.disabled,
|
|
@@ -475,13 +504,7 @@ export class TdsDropdown {
|
|
|
475
504
|
// eslint-disable-next-line no-return-assign
|
|
476
505
|
ref: (inputEl) => (this.inputElement = inputEl), class: {
|
|
477
506
|
placeholder: this.labelPosition === 'inside',
|
|
478
|
-
}, type: "text", placeholder: this.filterFocus ? '' : this.placeholder, value: this.multiselect && this.filterFocus ?
|
|
479
|
-
this.filterFocus = false;
|
|
480
|
-
if (this.multiselect) {
|
|
481
|
-
this.inputElement.value = this.getValue();
|
|
482
|
-
}
|
|
483
|
-
this.handleBlur(event);
|
|
484
|
-
}, onFocus: (event) => this.handleFocus(event), onKeyDown: (event) => {
|
|
507
|
+
}, type: "text", placeholder: this.filterFocus ? '' : this.placeholder, value: this.multiselect && this.filterFocus ? this.filterQuery : this.getValue(), disabled: this.disabled, onInput: (event) => this.handleFilter(event), onFocus: () => this.handleFocus(), onKeyDown: (event) => {
|
|
485
508
|
if (event.key === 'Escape') {
|
|
486
509
|
this.open = false;
|
|
487
510
|
}
|
|
@@ -508,7 +531,7 @@ export class TdsDropdown {
|
|
|
508
531
|
label-inside-as-placeholder
|
|
509
532
|
${this.size}
|
|
510
533
|
${this.selectedOptions.length ? 'selected' : ''}
|
|
511
|
-
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, this.selectedOptions.length ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '
|
|
534
|
+
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, this.selectedOptions.length ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: 'f5427c41c1abe1c84164a030e69800fd48911c73', role: "listbox", "aria-label": this.tdsAriaLabel, inert: !this.open, "aria-orientation": "vertical", "aria-multiselectable": this.multiselect, ref: (element) => {
|
|
512
535
|
this.dropdownList = element;
|
|
513
536
|
}, class: {
|
|
514
537
|
'dropdown-list': true,
|
|
@@ -519,11 +542,11 @@ export class TdsDropdown {
|
|
|
519
542
|
'closed': !this.open,
|
|
520
543
|
[`animation-enter-${this.animation}`]: this.animation !== 'none' && this.open,
|
|
521
544
|
[`animation-exit-${this.animation}`]: this.animation !== 'none' && !this.open,
|
|
522
|
-
} }, h("slot", { key: '
|
|
545
|
+
} }, h("slot", { key: '2e83898eec11f669c3477d5600dce1178b5c4f36', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: '0ff59cf47dbe302998ce72758b182e7565ddd210', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '3a60427fe8ca05d6bf4ba42f95bd0bc753f04ebd', id: helperId, class: {
|
|
523
546
|
helper: true,
|
|
524
547
|
error: this.error,
|
|
525
548
|
disabled: this.disabled,
|
|
526
|
-
} }, this.error && h("tds-icon", { key: '
|
|
549
|
+
} }, this.error && h("tds-icon", { key: 'bab7ba6449cb7cd62a149340f6de1fe13cfd49de', name: "error", size: "16px" }), this.helper))));
|
|
527
550
|
}
|
|
528
551
|
static get is() { return "tds-dropdown"; }
|
|
529
552
|
static get encapsulation() { return "shadow"; }
|
|
@@ -553,8 +576,10 @@ export class TdsDropdown {
|
|
|
553
576
|
"tags": [],
|
|
554
577
|
"text": "Name for the Dropdowns input element."
|
|
555
578
|
},
|
|
556
|
-
"
|
|
557
|
-
"
|
|
579
|
+
"getter": false,
|
|
580
|
+
"setter": false,
|
|
581
|
+
"reflect": false,
|
|
582
|
+
"attribute": "name"
|
|
558
583
|
},
|
|
559
584
|
"disabled": {
|
|
560
585
|
"type": "boolean",
|
|
@@ -570,8 +595,10 @@ export class TdsDropdown {
|
|
|
570
595
|
"tags": [],
|
|
571
596
|
"text": "Sets the Dropdown in a disabled state"
|
|
572
597
|
},
|
|
573
|
-
"
|
|
598
|
+
"getter": false,
|
|
599
|
+
"setter": false,
|
|
574
600
|
"reflect": false,
|
|
601
|
+
"attribute": "disabled",
|
|
575
602
|
"defaultValue": "false"
|
|
576
603
|
},
|
|
577
604
|
"helper": {
|
|
@@ -588,8 +615,10 @@ export class TdsDropdown {
|
|
|
588
615
|
"tags": [],
|
|
589
616
|
"text": "Helper text for the Dropdown."
|
|
590
617
|
},
|
|
591
|
-
"
|
|
592
|
-
"
|
|
618
|
+
"getter": false,
|
|
619
|
+
"setter": false,
|
|
620
|
+
"reflect": false,
|
|
621
|
+
"attribute": "helper"
|
|
593
622
|
},
|
|
594
623
|
"label": {
|
|
595
624
|
"type": "string",
|
|
@@ -605,8 +634,10 @@ export class TdsDropdown {
|
|
|
605
634
|
"tags": [],
|
|
606
635
|
"text": "Label text for the Dropdown."
|
|
607
636
|
},
|
|
608
|
-
"
|
|
609
|
-
"
|
|
637
|
+
"getter": false,
|
|
638
|
+
"setter": false,
|
|
639
|
+
"reflect": false,
|
|
640
|
+
"attribute": "label"
|
|
610
641
|
},
|
|
611
642
|
"labelPosition": {
|
|
612
643
|
"type": "string",
|
|
@@ -622,8 +653,10 @@ export class TdsDropdown {
|
|
|
622
653
|
"tags": [],
|
|
623
654
|
"text": "Label text position"
|
|
624
655
|
},
|
|
625
|
-
"
|
|
626
|
-
"
|
|
656
|
+
"getter": false,
|
|
657
|
+
"setter": false,
|
|
658
|
+
"reflect": false,
|
|
659
|
+
"attribute": "label-position"
|
|
627
660
|
},
|
|
628
661
|
"modeVariant": {
|
|
629
662
|
"type": "string",
|
|
@@ -639,8 +672,10 @@ export class TdsDropdown {
|
|
|
639
672
|
"tags": [],
|
|
640
673
|
"text": "Mode variant of the component, based on current mode."
|
|
641
674
|
},
|
|
642
|
-
"
|
|
675
|
+
"getter": false,
|
|
676
|
+
"setter": false,
|
|
643
677
|
"reflect": false,
|
|
678
|
+
"attribute": "mode-variant",
|
|
644
679
|
"defaultValue": "null"
|
|
645
680
|
},
|
|
646
681
|
"openDirection": {
|
|
@@ -657,8 +692,10 @@ export class TdsDropdown {
|
|
|
657
692
|
"tags": [],
|
|
658
693
|
"text": "The direction the Dropdown should open, auto if not specified."
|
|
659
694
|
},
|
|
660
|
-
"
|
|
695
|
+
"getter": false,
|
|
696
|
+
"setter": false,
|
|
661
697
|
"reflect": false,
|
|
698
|
+
"attribute": "open-direction",
|
|
662
699
|
"defaultValue": "'auto'"
|
|
663
700
|
},
|
|
664
701
|
"placeholder": {
|
|
@@ -675,8 +712,10 @@ export class TdsDropdown {
|
|
|
675
712
|
"tags": [],
|
|
676
713
|
"text": "Placeholder text for the Dropdown."
|
|
677
714
|
},
|
|
678
|
-
"
|
|
679
|
-
"
|
|
715
|
+
"getter": false,
|
|
716
|
+
"setter": false,
|
|
717
|
+
"reflect": false,
|
|
718
|
+
"attribute": "placeholder"
|
|
680
719
|
},
|
|
681
720
|
"size": {
|
|
682
721
|
"type": "string",
|
|
@@ -692,8 +731,10 @@ export class TdsDropdown {
|
|
|
692
731
|
"tags": [],
|
|
693
732
|
"text": "The size of the Dropdown."
|
|
694
733
|
},
|
|
695
|
-
"
|
|
734
|
+
"getter": false,
|
|
735
|
+
"setter": false,
|
|
696
736
|
"reflect": false,
|
|
737
|
+
"attribute": "size",
|
|
697
738
|
"defaultValue": "'lg'"
|
|
698
739
|
},
|
|
699
740
|
"animation": {
|
|
@@ -710,8 +751,10 @@ export class TdsDropdown {
|
|
|
710
751
|
"tags": [],
|
|
711
752
|
"text": ""
|
|
712
753
|
},
|
|
713
|
-
"
|
|
754
|
+
"getter": false,
|
|
755
|
+
"setter": false,
|
|
714
756
|
"reflect": false,
|
|
757
|
+
"attribute": "animation",
|
|
715
758
|
"defaultValue": "'slide'"
|
|
716
759
|
},
|
|
717
760
|
"error": {
|
|
@@ -728,8 +771,10 @@ export class TdsDropdown {
|
|
|
728
771
|
"tags": [],
|
|
729
772
|
"text": "Sets the Dropdown in an error state"
|
|
730
773
|
},
|
|
731
|
-
"
|
|
774
|
+
"getter": false,
|
|
775
|
+
"setter": false,
|
|
732
776
|
"reflect": false,
|
|
777
|
+
"attribute": "error",
|
|
733
778
|
"defaultValue": "false"
|
|
734
779
|
},
|
|
735
780
|
"multiselect": {
|
|
@@ -746,8 +791,10 @@ export class TdsDropdown {
|
|
|
746
791
|
"tags": [],
|
|
747
792
|
"text": "Enables multiselect in the Dropdown."
|
|
748
793
|
},
|
|
749
|
-
"
|
|
794
|
+
"getter": false,
|
|
795
|
+
"setter": false,
|
|
750
796
|
"reflect": false,
|
|
797
|
+
"attribute": "multiselect",
|
|
751
798
|
"defaultValue": "false"
|
|
752
799
|
},
|
|
753
800
|
"filter": {
|
|
@@ -764,8 +811,10 @@ export class TdsDropdown {
|
|
|
764
811
|
"tags": [],
|
|
765
812
|
"text": "Enables filtration in the Dropdown."
|
|
766
813
|
},
|
|
767
|
-
"
|
|
814
|
+
"getter": false,
|
|
815
|
+
"setter": false,
|
|
768
816
|
"reflect": false,
|
|
817
|
+
"attribute": "filter",
|
|
769
818
|
"defaultValue": "false"
|
|
770
819
|
},
|
|
771
820
|
"normalizeText": {
|
|
@@ -782,8 +831,10 @@ export class TdsDropdown {
|
|
|
782
831
|
"tags": [],
|
|
783
832
|
"text": "Normalizes input text for fuzzier search"
|
|
784
833
|
},
|
|
785
|
-
"
|
|
834
|
+
"getter": false,
|
|
835
|
+
"setter": false,
|
|
786
836
|
"reflect": false,
|
|
837
|
+
"attribute": "normalize-text",
|
|
787
838
|
"defaultValue": "true"
|
|
788
839
|
},
|
|
789
840
|
"noResultText": {
|
|
@@ -800,8 +851,10 @@ export class TdsDropdown {
|
|
|
800
851
|
"tags": [],
|
|
801
852
|
"text": "Text that is displayed if filter is used and there are no options that matches the search.\nSetting it to an empty string disables message from showing up."
|
|
802
853
|
},
|
|
803
|
-
"
|
|
854
|
+
"getter": false,
|
|
855
|
+
"setter": false,
|
|
804
856
|
"reflect": false,
|
|
857
|
+
"attribute": "no-result-text",
|
|
805
858
|
"defaultValue": "'No result'"
|
|
806
859
|
},
|
|
807
860
|
"defaultValue": {
|
|
@@ -818,8 +871,10 @@ export class TdsDropdown {
|
|
|
818
871
|
"tags": [],
|
|
819
872
|
"text": "Default value selected in the Dropdown."
|
|
820
873
|
},
|
|
821
|
-
"
|
|
822
|
-
"
|
|
874
|
+
"getter": false,
|
|
875
|
+
"setter": false,
|
|
876
|
+
"reflect": false,
|
|
877
|
+
"attribute": "default-value"
|
|
823
878
|
},
|
|
824
879
|
"value": {
|
|
825
880
|
"type": "any",
|
|
@@ -835,8 +890,10 @@ export class TdsDropdown {
|
|
|
835
890
|
"tags": [],
|
|
836
891
|
"text": "Value of the dropdown. For multiselect, provide array of strings/numbers. For single select, provide a string/number."
|
|
837
892
|
},
|
|
838
|
-
"
|
|
893
|
+
"getter": false,
|
|
894
|
+
"setter": false,
|
|
839
895
|
"reflect": false,
|
|
896
|
+
"attribute": "value",
|
|
840
897
|
"defaultValue": "null"
|
|
841
898
|
},
|
|
842
899
|
"tdsAriaLabel": {
|
|
@@ -853,8 +910,10 @@ export class TdsDropdown {
|
|
|
853
910
|
"tags": [],
|
|
854
911
|
"text": "Defines aria-label attribute for input"
|
|
855
912
|
},
|
|
856
|
-
"
|
|
857
|
-
"
|
|
913
|
+
"getter": false,
|
|
914
|
+
"setter": false,
|
|
915
|
+
"reflect": false,
|
|
916
|
+
"attribute": "tds-aria-label"
|
|
858
917
|
}
|
|
859
918
|
};
|
|
860
919
|
}
|
|
@@ -865,7 +924,8 @@ export class TdsDropdown {
|
|
|
865
924
|
"filterResult": {},
|
|
866
925
|
"filterFocus": {},
|
|
867
926
|
"internalDefaultValue": {},
|
|
868
|
-
"selectedOptions": {}
|
|
927
|
+
"selectedOptions": {},
|
|
928
|
+
"filterQuery": {}
|
|
869
929
|
};
|
|
870
930
|
}
|
|
871
931
|
static get events() {
|
|
@@ -1112,6 +1172,18 @@ export class TdsDropdown {
|
|
|
1112
1172
|
"target": "window",
|
|
1113
1173
|
"capture": false,
|
|
1114
1174
|
"passive": true
|
|
1175
|
+
}, {
|
|
1176
|
+
"name": "focusin",
|
|
1177
|
+
"method": "onFocusIn",
|
|
1178
|
+
"target": undefined,
|
|
1179
|
+
"capture": false,
|
|
1180
|
+
"passive": false
|
|
1181
|
+
}, {
|
|
1182
|
+
"name": "focusout",
|
|
1183
|
+
"method": "onFocusOut",
|
|
1184
|
+
"target": undefined,
|
|
1185
|
+
"capture": false,
|
|
1186
|
+
"passive": false
|
|
1115
1187
|
}, {
|
|
1116
1188
|
"name": "keydown",
|
|
1117
1189
|
"method": "onKeyDown",
|
|
@@ -6,15 +6,13 @@ import hasSlot from "../../../utils/hasSlot";
|
|
|
6
6
|
*/
|
|
7
7
|
export class TdsFooterGroup {
|
|
8
8
|
constructor() {
|
|
9
|
+
/** In mobile, this indicates when the group (if it's in the top part) is opened/closed. */
|
|
10
|
+
this.open = false;
|
|
9
11
|
/** If the group is placed in the main part of the Footer,
|
|
10
12
|
* it can have either start or end as a slot position otherwise undefined. */
|
|
11
13
|
this.slotPosition = null;
|
|
12
14
|
/** Indicates if a group is part of the top part of the Footer. */
|
|
13
15
|
this.topPartGroup = false;
|
|
14
|
-
this.titleText = undefined;
|
|
15
|
-
this.tdsListAriaLabel = undefined;
|
|
16
|
-
this.open = false;
|
|
17
|
-
this.isMobile = undefined;
|
|
18
16
|
}
|
|
19
17
|
updateIsMobile() {
|
|
20
18
|
this.isMobile = window.innerWidth <= 992;
|
|
@@ -41,12 +39,12 @@ export class TdsFooterGroup {
|
|
|
41
39
|
}
|
|
42
40
|
render() {
|
|
43
41
|
const hasTitleSlot = hasSlot('title', this.host);
|
|
44
|
-
return (h(Host, { key: '
|
|
42
|
+
return (h(Host, { key: 'ae7d97292dba7bf2054e1833e436dbabec499ed7', "aria-expanded": this.open ? 'true' : 'false' }, h("div", { key: 'e94d8a8f5cdab4eaa1ec72d9d8da2cf3634ddb86', class: this.isMobile ? 'mobile-view' : '' }, this.topPartGroup &&
|
|
45
43
|
(this.isMobile ? (h("button", { onClick: () => {
|
|
46
44
|
this.open = !this.open;
|
|
47
|
-
}, class: `footer-top-title-button ${this.open ? 'expanded' : 'closed'}` }, hasTitleSlot ? h("slot", { name: "title" }) : this.titleText, h("tds-icon", { name: "chevron_down", size: "20px", "aria-hidden": "true" }))) : (h("div", { class: "footer-top-title" }, hasTitleSlot ? h("slot", { name: "title" }) : this.titleText))), h("nav", { key: '
|
|
45
|
+
}, class: `footer-top-title-button ${this.open ? 'expanded' : 'closed'}` }, hasTitleSlot ? h("slot", { name: "title" }) : this.titleText, h("tds-icon", { name: "chevron_down", size: "20px", "aria-hidden": "true" }))) : (h("div", { class: "footer-top-title" }, hasTitleSlot ? h("slot", { name: "title" }) : this.titleText))), h("nav", { key: 'ab7829753c2e2e80b877470e92f1947d24aefe38', "aria-label": this.tdsListAriaLabel }, h("div", { key: 'e402e251eff4b82e2cfffdb7edc9db3e1c537325', role: "list", class: `${this.slotPosition ? this.slotPosition : ''}
|
|
48
46
|
${this.topPartGroup ? 'top-part-child' : ''}
|
|
49
|
-
${this.open ? 'expanded' : 'closed'}` }, h("slot", { key: '
|
|
47
|
+
${this.open ? 'expanded' : 'closed'}` }, h("slot", { key: 'd00e9acc84542e2694b6a9aa4b481a2263f79e4b' }))))));
|
|
50
48
|
}
|
|
51
49
|
static get is() { return "tds-footer-group"; }
|
|
52
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,8 +74,10 @@ export class TdsFooterGroup {
|
|
|
76
74
|
"tags": [],
|
|
77
75
|
"text": "Title text for the link group, only valid on top part of Footer."
|
|
78
76
|
},
|
|
79
|
-
"
|
|
80
|
-
"
|
|
77
|
+
"getter": false,
|
|
78
|
+
"setter": false,
|
|
79
|
+
"reflect": false,
|
|
80
|
+
"attribute": "title-text"
|
|
81
81
|
},
|
|
82
82
|
"tdsListAriaLabel": {
|
|
83
83
|
"type": "string",
|
|
@@ -93,8 +93,10 @@ export class TdsFooterGroup {
|
|
|
93
93
|
"tags": [],
|
|
94
94
|
"text": "Value to be used for the aria-label attribute for the nav element wrapping the list. Should be unique for accessibility."
|
|
95
95
|
},
|
|
96
|
-
"
|
|
97
|
-
"
|
|
96
|
+
"getter": false,
|
|
97
|
+
"setter": false,
|
|
98
|
+
"reflect": false,
|
|
99
|
+
"attribute": "tds-list-aria-label"
|
|
98
100
|
}
|
|
99
101
|
};
|
|
100
102
|
}
|
|
@@ -10,7 +10,7 @@ export class TdsFooterItem {
|
|
|
10
10
|
this.parentIsTopPart = this.host.closest('tds-footer-group').parentElement.slot === 'top';
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: 'cc3e94cd085ad62a1933a948014d06da55ffeb35', role: "listitem" }, h("div", { key: '602c0f0ede8f40bfc06e3899adb0afa7941602e3', class: `${this.parentIsTopPart ? 'top-part-child' : ''}` }, h("slot", { key: '2770b612c929deb25895455114d2a6e3a45957a4' }))));
|
|
14
14
|
}
|
|
15
15
|
static get is() { return "tds-footer-item"; }
|
|
16
16
|
static get encapsulation() { return "shadow"; }
|
|
@@ -8,17 +8,18 @@ import hasSlot from "../../utils/hasSlot";
|
|
|
8
8
|
*/
|
|
9
9
|
export class TdsFooter {
|
|
10
10
|
constructor() {
|
|
11
|
-
|
|
11
|
+
/** Mode variant of the component, based on current mode. */
|
|
12
12
|
this.modeVariant = null;
|
|
13
|
+
this.copyrightText = `Copyright © ${new Date().getFullYear()} Scania`;
|
|
13
14
|
}
|
|
14
15
|
render() {
|
|
15
16
|
const usesTopSlot = hasSlot('top', this.host);
|
|
16
17
|
const usesStartSlot = hasSlot('start', this.host);
|
|
17
18
|
const usesEndSlot = hasSlot('end', this.host);
|
|
18
19
|
const usesCopyrightSlot = hasSlot('copyright', this.host);
|
|
19
|
-
return (h(Host, { key: '
|
|
20
|
+
return (h(Host, { key: 'e3dee2f5ac2caebf6a9585b81cdbdda442562c2b', class: {
|
|
20
21
|
[`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null,
|
|
21
|
-
} }, h("footer", { key: '
|
|
22
|
+
} }, h("footer", { key: 'a243b3b440fa8cffc51bea0def2c0bd07288cf96' }, usesTopSlot && h("slot", { key: 'db60db3d12a0c34fdb9db66be986d541633e1d9b', name: "top" }), h("div", { key: '1d2881f8acc0789f8769604d72ebdef99961e380', class: "footer-main" }, (usesStartSlot || usesEndSlot) && (h("div", { key: 'c8a1cb2639700b51b39355163b0e8b26d1f82855', class: "footer-main-top" }, usesStartSlot && h("slot", { key: 'e343837536cc838b2382d946b8703821e627e6d1', name: "start" }), usesEndSlot && h("slot", { key: 'a181a6656e88f36b8d724d8ccdab33804bf51f0d', name: "end" }))), h("div", { key: '64178cb80d7e0b38d2d5f8a625c222772fd64741', class: "footer-main-bottom" }, h("small", { key: 'c9b3c7337d031cf4a18d5fad56938d490a0dac1e', class: "copyright" }, usesCopyrightSlot ? h("slot", { name: "copyright" }) : this.copyrightText), h("div", { key: '926e8672dd9d00ae5d0c951d506dc506ea698ed2', class: "brand" }, h("p", { key: '4e110423f7b958b3d427d88016ab18d02c6c8edf' }, "Scania")))))));
|
|
22
23
|
}
|
|
23
24
|
static get is() { return "tds-footer"; }
|
|
24
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -48,8 +49,10 @@ export class TdsFooter {
|
|
|
48
49
|
"tags": [],
|
|
49
50
|
"text": "Mode variant of the component, based on current mode."
|
|
50
51
|
},
|
|
51
|
-
"
|
|
52
|
+
"getter": false,
|
|
53
|
+
"setter": false,
|
|
52
54
|
"reflect": false,
|
|
55
|
+
"attribute": "mode-variant",
|
|
53
56
|
"defaultValue": "null"
|
|
54
57
|
}
|
|
55
58
|
};
|
|
@@ -4,7 +4,7 @@ import { h, Host } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class TdsCoreHeaderItem {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: 'cdc1e1712659f82b9bbefd67977de93963dbc68e' }, h("div", { key: '1c39a69aa967c64941be3507d7e88f92cea58623', class: "item" }, h("slot", { key: '62576106bdb13d983e5a415421522bbcddd348bf' }))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "tds-core-header-item"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -8,7 +8,7 @@ export class TdsHeaderBrandSymbol {
|
|
|
8
8
|
if (!aTag.hasAttribute('aria-label')) {
|
|
9
9
|
console.warn('Tegel Header Brand Symbol component: missing aria-label attribute for <a> tag inside slot');
|
|
10
10
|
}
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'b3f7cf4d264f2046844814a80f7b9b6a920b1a1e' }, h("tds-header-item", { key: '0be33ffe57b94442fac4f1e686f87fb1e2f1911d' }, h("slot", { key: '3f7f636bc5f7c1b2ee009c774337d0b41c45e477' }))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "tds-header-brand-symbol"; }
|
|
14
14
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,4 +56,9 @@ body {
|
|
|
56
56
|
:host .state-open .button {
|
|
57
57
|
position: relative;
|
|
58
58
|
z-index: 901;
|
|
59
|
+
}
|
|
60
|
+
:host .state-open tds-header-item button:hover,
|
|
61
|
+
:host .state-open tds-header-item a:hover {
|
|
62
|
+
background-color: var(--tds-nav-item-background-hover);
|
|
63
|
+
box-shadow: none;
|
|
59
64
|
}
|