@scania/tegel 1.18.0-1.18.0-tdsheaderitembeta.2 → 1.18.0-beta.2
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/findClosestComponent-64302a79.js +14 -0
- package/dist/cjs/getDirectChildHTMLElementOfKind-6e210da2.js +11 -0
- package/dist/cjs/index-ca8040ad.js +58 -46
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tagName-3399a06c.js +120 -0
- package/dist/cjs/tds-accordion-item.cjs.entry.js +7 -4
- package/dist/cjs/tds-badge.cjs.entry.js +1 -1
- package/dist/cjs/tds-banner.cjs.entry.js +5 -3
- package/dist/cjs/tds-block.cjs.entry.js +2 -2
- package/dist/cjs/tds-body-cell.cjs.entry.js +5 -3
- 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 +3 -3
- package/dist/cjs/tds-card.cjs.entry.js +4 -2
- package/dist/cjs/tds-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/tds-chip.cjs.entry.js +1 -1
- package/dist/cjs/tds-core-header-item.cjs.entry.js +20 -0
- package/dist/cjs/tds-datetime.cjs.entry.js +6 -3
- package/dist/cjs/tds-divider.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +95 -0
- package/dist/cjs/{tds-dropdown_2.cjs.entry.js → tds-dropdown.cjs.entry.js} +12 -98
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-footer-group.cjs.entry.js +6 -4
- package/dist/cjs/tds-footer-item.cjs.entry.js +6 -2
- package/dist/cjs/tds-footer.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-cell.cjs.entry.js +9 -4
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +4 -4
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +5 -3
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +4 -2
- package/dist/cjs/{tds-core-header-item_2.cjs.entry.js → tds-header-item.cjs.entry.js} +6 -17
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +4 -2
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +4 -4
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +4 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +4 -1
- package/dist/cjs/tds-header-launcher.cjs.entry.js +6 -3
- package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header.cjs.entry.js +2 -15
- package/dist/cjs/tds-icon.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-link.cjs.entry.js +2 -2
- package/dist/cjs/tds-message.cjs.entry.js +6 -3
- package/dist/cjs/tds-modal.cjs.entry.js +3 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -2
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/tds-popover-menu.cjs.entry.js +5 -3
- package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +3 -1
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +8 -5
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +7 -5
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +5 -3
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +7 -4
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +8 -5
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user-image.cjs.entry.js +22 -0
- package/dist/cjs/tds-side-menu-user-label.cjs.entry.js +22 -0
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +5 -2
- package/dist/cjs/tds-slider.cjs.entry.js +11 -8
- package/dist/cjs/tds-step.cjs.entry.js +7 -4
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +8 -5
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +12 -9
- package/dist/cjs/tds-table-body-row.cjs.entry.js +6 -3
- package/dist/cjs/tds-table-body.cjs.entry.js +12 -6
- package/dist/cjs/tds-table-footer.cjs.entry.js +12 -8
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +8 -5
- package/dist/cjs/tds-table-header.cjs.entry.js +13 -7
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +6 -3
- package/dist/cjs/tds-table.cjs.entry.js +13 -9
- package/dist/cjs/tds-text-field.cjs.entry.js +8 -6
- package/dist/cjs/tds-textarea.cjs.entry.js +6 -3
- package/dist/cjs/tds-toast.cjs.entry.js +9 -6
- package/dist/cjs/tds-tooltip.cjs.entry.js +4 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +1 -6
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -3
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/banner/banner.css +1 -1
- package/dist/collection/components/banner/banner.js +4 -2
- package/dist/collection/components/block/block.js +2 -2
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/collection/components/button/button.css +58 -187
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/card/card.js +4 -2
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/datetime/datetime.css +2 -2
- package/dist/collection/components/datetime/datetime.js +6 -3
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +7 -7
- package/dist/collection/components/dropdown/dropdown.css +3 -3
- package/dist/collection/components/dropdown/dropdown.js +11 -8
- package/dist/collection/components/footer/footer-group/footer-group.css +2 -2
- package/dist/collection/components/footer/footer-group/footer-group.js +5 -3
- package/dist/collection/components/footer/footer-item/footer-item.js +5 -2
- package/dist/collection/components/footer/footer.js +1 -1
- 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.css +3 -3
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +1 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +5 -3
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +2 -2
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +2 -2
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +1 -1
- package/dist/collection/components/header/header-hamburger/header-hamburger.css +3 -3
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +3 -1
- package/dist/collection/components/header/header-item/header-item.js +6 -3
- package/dist/collection/components/header/header-launcher/header-launcher.js +6 -3
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.css +1 -1
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +3 -1
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +1 -1
- 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 +4 -1
- package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +4 -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.js +1 -1
- package/dist/collection/components/header/header.css +7 -7
- package/dist/collection/components/header/header.js +1 -14
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/link/link.js +2 -2
- package/dist/collection/components/message/message.css +5 -5
- package/dist/collection/components/message/message.js +5 -2
- package/dist/collection/components/modal/modal.js +3 -1
- package/dist/collection/components/popover-canvas/popover-canvas.js +4 -2
- package/dist/collection/components/popover-core/popover-core.js +1 -1
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.css +2 -2
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +2 -2
- package/dist/collection/components/popover-menu/popover-menu.css +1 -5
- package/dist/collection/components/popover-menu/popover-menu.js +4 -2
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +3 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +8 -5
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +7 -4
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +4 -3
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +6 -5
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +1 -1
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +6 -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.css +1 -1
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +4 -1
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +1 -1
- package/dist/collection/components/slider/slider.css +5 -5
- package/dist/collection/components/slider/slider.js +11 -8
- package/dist/collection/components/stepper/step/step.css +1 -1
- package/dist/collection/components/stepper/step/step.js +6 -3
- package/dist/collection/components/table/table/table.js +20 -9
- package/dist/collection/components/table/table-body/table-body.css +12 -12
- package/dist/collection/components/table/table-body/table-body.js +10 -5
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +4 -3
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.css +3 -3
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +7 -4
- package/dist/collection/components/table/table-body-row/table-body-row.js +6 -3
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +11 -9
- package/dist/collection/components/table/table-footer/table-footer.css +1 -1
- package/dist/collection/components/table/table-footer/table-footer.js +11 -7
- package/dist/collection/components/table/table-header/table-header.js +13 -7
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +9 -4
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.css +3 -3
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +7 -4
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +6 -3
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +4 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +4 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +4 -2
- package/dist/collection/components/text-field/text-field.css +3 -3
- package/dist/collection/components/text-field/text-field.js +7 -5
- package/dist/collection/components/textarea/textarea.js +6 -3
- package/dist/collection/components/toast/toast.css +6 -6
- package/dist/collection/components/toast/toast.js +8 -5
- package/dist/collection/components/tooltip/tooltip.js +4 -2
- package/dist/collection/utils/findClosestComponent.js +9 -0
- package/dist/collection/utils/getDirectChildHTMLElementOfKind.js +6 -0
- package/dist/collection/utils/tagName.js +29 -0
- package/dist/collection/utils/tagNames.js +91 -0
- package/dist/components/p-875e2e9c.js +12 -0
- package/dist/components/{p-0676aa23.js → p-93414e58.js} +7 -10
- package/dist/components/p-b33f8162.js +116 -0
- package/dist/components/p-d18575db.js +9 -0
- package/dist/components/tds-accordion-item.js +8 -11
- package/dist/components/tds-badge.js +1 -1
- package/dist/components/tds-banner.js +6 -10
- package/dist/components/tds-block.js +2 -2
- package/dist/components/tds-body-cell.js +4 -3
- package/dist/components/tds-breadcrumb.js +1 -1
- package/dist/components/tds-breadcrumbs.js +1 -1
- package/dist/components/tds-button.js +3 -3
- package/dist/components/tds-card.js +5 -9
- package/dist/components/tds-checkbox.js +89 -1
- package/dist/components/tds-chip.js +1 -1
- package/dist/components/tds-core-header-item.js +30 -1
- package/dist/components/tds-datetime.js +7 -10
- package/dist/components/tds-divider.js +33 -1
- package/dist/components/tds-dropdown-option.js +112 -1
- package/dist/components/tds-dropdown.js +516 -1
- package/dist/components/tds-folder-tabs.js +5 -9
- package/dist/components/tds-footer-group.js +7 -11
- package/dist/components/tds-footer-item.js +5 -2
- package/dist/components/tds-footer.js +1 -1
- package/dist/components/tds-header-brand-symbol.js +4 -10
- package/dist/components/tds-header-cell.js +10 -11
- package/dist/components/tds-header-dropdown-list-item.js +39 -1
- package/dist/components/tds-header-dropdown-list-user.js +1 -1
- package/dist/components/tds-header-dropdown-list.js +99 -1
- package/dist/components/tds-header-dropdown.js +6 -34
- package/dist/components/tds-header-hamburger.js +5 -21
- package/dist/components/tds-header-item.js +1 -1
- package/dist/components/tds-header-launcher-button.js +39 -1
- package/dist/components/tds-header-launcher-grid-item.js +1 -1
- package/dist/components/tds-header-launcher-grid-title.js +1 -1
- package/dist/components/tds-header-launcher-grid.js +1 -1
- package/dist/components/tds-header-launcher-list-item.js +5 -8
- package/dist/components/tds-header-launcher-list-title.js +1 -1
- package/dist/components/tds-header-launcher-list.js +5 -8
- package/dist/components/tds-header-launcher.js +7 -40
- package/dist/components/tds-header-title.js +1 -1
- package/dist/components/tds-header.js +2 -15
- package/dist/components/tds-icon.js +63 -1
- package/dist/components/tds-inline-tabs.js +5 -9
- package/dist/components/tds-link.js +2 -2
- package/dist/components/tds-message.js +7 -10
- package/dist/components/tds-modal.js +4 -8
- package/dist/components/tds-navigation-tabs.js +5 -9
- package/dist/components/tds-popover-canvas.js +66 -1
- package/dist/components/tds-popover-core.js +1998 -1
- package/dist/components/tds-popover-menu-item.js +3 -3
- package/dist/components/tds-popover-menu.js +6 -10
- package/dist/components/tds-radio-button.js +1 -1
- package/dist/components/tds-side-menu-close-button.js +4 -8
- package/dist/components/tds-side-menu-collapse-button.js +9 -12
- package/dist/components/tds-side-menu-dropdown-list-item.js +6 -5
- package/dist/components/tds-side-menu-dropdown-list.js +4 -3
- package/dist/components/tds-side-menu-dropdown.js +8 -17
- package/dist/components/tds-side-menu-item.js +90 -1
- package/dist/components/tds-side-menu-overlay.js +1 -1
- package/dist/components/tds-side-menu-user-image.js +35 -1
- package/dist/components/tds-side-menu-user-label.js +35 -1
- package/dist/components/tds-side-menu-user.js +6 -15
- package/dist/components/tds-slider.js +13 -16
- package/dist/components/tds-step.js +8 -11
- package/dist/components/tds-table-body-input-wrapper.js +9 -12
- package/dist/components/tds-table-body-row-expandable.js +11 -9
- package/dist/components/tds-table-body-row.js +7 -10
- package/dist/components/tds-table-body.js +11 -6
- package/dist/components/tds-table-footer.js +13 -33
- package/dist/components/tds-table-header-input-wrapper.js +9 -12
- package/dist/components/tds-table-header.js +14 -14
- package/dist/components/tds-table-toolbar.js +7 -10
- package/dist/components/tds-table.js +12 -9
- package/dist/components/tds-text-field.js +9 -13
- package/dist/components/tds-textarea.js +7 -10
- package/dist/components/tds-toast.js +10 -13
- package/dist/components/tds-tooltip.js +5 -9
- package/dist/esm/findClosestComponent-884d0262.js +12 -0
- package/dist/esm/getDirectChildHTMLElementOfKind-96e23d9f.js +9 -0
- package/dist/esm/index-51d04e39.js +58 -46
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tagName-2e4b5836.js +116 -0
- package/dist/esm/tds-accordion-item.entry.js +8 -5
- package/dist/esm/tds-badge.entry.js +1 -1
- package/dist/esm/tds-banner.entry.js +5 -3
- package/dist/esm/tds-block.entry.js +2 -2
- package/dist/esm/tds-body-cell.entry.js +5 -3
- 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 +3 -3
- package/dist/esm/tds-card.entry.js +4 -2
- package/dist/esm/tds-checkbox.entry.js +2 -2
- package/dist/esm/tds-chip.entry.js +1 -1
- package/dist/esm/tds-core-header-item.entry.js +16 -0
- package/dist/esm/tds-datetime.entry.js +7 -4
- package/dist/esm/tds-divider.entry.js +1 -1
- package/dist/{components/p-1c256b8d.js → esm/tds-dropdown-option.entry.js} +15 -50
- package/dist/{components/p-f5531179.js → esm/tds-dropdown.entry.js} +20 -66
- package/dist/esm/tds-folder-tabs.entry.js +4 -2
- package/dist/esm/tds-footer-group.entry.js +6 -4
- package/dist/esm/tds-footer-item.entry.js +6 -2
- package/dist/esm/tds-footer.entry.js +1 -1
- package/dist/esm/tds-header-brand-symbol.entry.js +2 -2
- package/dist/esm/tds-header-cell.entry.js +9 -4
- package/dist/esm/tds-header-dropdown-list-item.entry.js +2 -2
- package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list.entry.js +3 -3
- package/dist/esm/tds-header-dropdown.entry.js +5 -3
- package/dist/esm/tds-header-hamburger.entry.js +4 -2
- package/dist/esm/{tds-core-header-item_2.entry.js → tds-header-item.entry.js} +7 -17
- package/dist/esm/tds-header-launcher-button.entry.js +4 -2
- package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid.entry.js +2 -2
- package/dist/esm/tds-header-launcher-list-item.entry.js +5 -2
- package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list.entry.js +5 -2
- package/dist/esm/tds-header-launcher.entry.js +6 -3
- package/dist/esm/tds-header-title.entry.js +1 -1
- package/dist/esm/tds-header.entry.js +2 -15
- package/dist/esm/tds-icon.entry.js +1 -1
- package/dist/esm/tds-inline-tabs.entry.js +4 -2
- package/dist/esm/tds-link.entry.js +2 -2
- package/dist/esm/tds-message.entry.js +7 -4
- package/dist/esm/tds-modal.entry.js +3 -1
- package/dist/esm/tds-navigation-tabs.entry.js +4 -2
- package/dist/esm/tds-popover-canvas.entry.js +4 -2
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-popover-menu-item.entry.js +3 -3
- package/dist/esm/tds-popover-menu.entry.js +5 -3
- package/dist/esm/tds-radio-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-close-button.entry.js +3 -1
- package/dist/esm/tds-side-menu-collapse-button.entry.js +8 -5
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +7 -5
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +5 -3
- package/dist/esm/tds-side-menu-dropdown.entry.js +7 -4
- package/dist/esm/tds-side-menu-item.entry.js +8 -5
- package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
- package/dist/esm/tds-side-menu-user-image.entry.js +18 -0
- package/dist/esm/tds-side-menu-user-label.entry.js +18 -0
- package/dist/esm/tds-side-menu-user.entry.js +6 -3
- package/dist/esm/tds-slider.entry.js +12 -9
- package/dist/esm/tds-step.entry.js +7 -4
- package/dist/esm/tds-table-body-input-wrapper.entry.js +8 -5
- package/dist/esm/tds-table-body-row-expandable.entry.js +12 -9
- package/dist/esm/tds-table-body-row.entry.js +6 -3
- package/dist/esm/tds-table-body.entry.js +12 -6
- package/dist/esm/tds-table-footer.entry.js +12 -8
- package/dist/esm/tds-table-header-input-wrapper.entry.js +8 -5
- package/dist/esm/tds-table-header.entry.js +13 -7
- package/dist/esm/tds-table-toolbar.entry.js +6 -3
- package/dist/esm/tds-table.entry.js +13 -9
- package/dist/esm/tds-text-field.entry.js +8 -6
- package/dist/esm/tds-textarea.entry.js +7 -4
- package/dist/esm/tds-toast.entry.js +9 -6
- package/dist/esm/tds-tooltip.entry.js +4 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-01dc0370.entry.js +1 -0
- package/dist/tegel/p-06431096.entry.js +1 -0
- package/dist/tegel/p-07e3a645.entry.js +1 -0
- package/dist/tegel/p-082d6de9.entry.js +1 -0
- package/dist/tegel/p-0a228d69.entry.js +1 -0
- package/dist/tegel/p-0d80429b.entry.js +1 -0
- package/dist/tegel/p-136c978a.entry.js +1 -0
- package/dist/tegel/p-13f14f71.entry.js +1 -0
- package/dist/tegel/p-15638893.entry.js +1 -0
- package/dist/tegel/p-16d3d938.entry.js +1 -0
- package/dist/tegel/p-191a6e60.entry.js +1 -0
- package/dist/tegel/p-19cda6ca.entry.js +1 -0
- package/dist/tegel/p-1c4b7a7d.entry.js +1 -0
- package/dist/tegel/p-2094ccde.entry.js +1 -0
- package/dist/tegel/p-26603eef.entry.js +1 -0
- package/dist/tegel/p-2b5871d5.entry.js +1 -0
- package/dist/tegel/p-304a4c84.entry.js +1 -0
- package/dist/tegel/p-3cc3e9f1.entry.js +1 -0
- package/dist/tegel/p-3cf784a4.entry.js +1 -0
- package/dist/tegel/p-400d5972.entry.js +1 -0
- package/dist/tegel/p-4132bc7c.entry.js +1 -0
- package/dist/tegel/{p-de540cc0.entry.js → p-416d8080.entry.js} +1 -1
- package/dist/tegel/p-43a74ec0.entry.js +1 -0
- package/dist/tegel/p-448fef57.entry.js +1 -0
- package/dist/tegel/p-45aa4dca.entry.js +1 -0
- package/dist/tegel/p-48148b7d.entry.js +1 -0
- package/dist/tegel/p-4a2000f2.entry.js +1 -0
- package/dist/tegel/{p-f9325536.entry.js → p-4b23a02f.entry.js} +1 -1
- package/dist/tegel/p-4eea4c8f.entry.js +1 -0
- package/dist/tegel/p-54a87c06.entry.js +1 -0
- package/dist/tegel/p-5be505ca.entry.js +1 -0
- package/dist/tegel/p-5f5fb18b.entry.js +1 -0
- package/dist/tegel/p-62196862.entry.js +1 -0
- package/dist/tegel/p-6542a541.entry.js +1 -0
- package/dist/tegel/p-6aea533d.entry.js +1 -0
- package/dist/tegel/p-6bc339db.entry.js +1 -0
- package/dist/tegel/p-718a5428.entry.js +1 -0
- package/dist/tegel/{p-fe9b385f.entry.js → p-73d72704.entry.js} +1 -1
- package/dist/tegel/{p-ede11de8.entry.js → p-7639adea.entry.js} +1 -1
- package/dist/tegel/p-79a4da37.entry.js +1 -0
- package/dist/tegel/p-7e989008.entry.js +1 -0
- package/dist/tegel/p-807d3a4e.entry.js +1 -0
- package/dist/tegel/p-81dc1e2f.entry.js +1 -0
- package/dist/tegel/p-854dcbe4.entry.js +1 -0
- package/dist/tegel/p-859e3ebf.js +1 -0
- package/dist/tegel/p-875e2e9c.js +1 -0
- package/dist/tegel/p-876a3b13.entry.js +1 -0
- package/dist/tegel/p-8a5df7a0.entry.js +1 -0
- package/dist/tegel/{p-50fcdc56.entry.js → p-8ccf3a15.entry.js} +1 -1
- package/dist/tegel/p-91072613.entry.js +1 -0
- package/dist/tegel/{p-bda3d846.entry.js → p-938f3efa.entry.js} +1 -1
- package/dist/tegel/p-985a2d37.entry.js +1 -0
- package/dist/tegel/{p-6b405a0f.entry.js → p-9a120de1.entry.js} +1 -1
- package/dist/tegel/p-9ac97508.entry.js +1 -0
- package/dist/tegel/{p-1ce239bf.entry.js → p-9d00bc5e.entry.js} +1 -1
- package/dist/tegel/p-9e49e118.entry.js +1 -0
- package/dist/tegel/p-a056ecbf.entry.js +1 -0
- package/dist/tegel/p-a66dcbc0.entry.js +1 -0
- package/dist/tegel/p-abe194db.entry.js +1 -0
- package/dist/tegel/p-ae0d0422.entry.js +1 -0
- package/dist/tegel/{p-c3513f1f.entry.js → p-b1fcdbd1.entry.js} +1 -1
- package/dist/tegel/p-b33f8162.js +1 -0
- package/dist/tegel/{p-9bf7f5cd.entry.js → p-b36fafa5.entry.js} +1 -1
- package/dist/tegel/{p-e65dba91.entry.js → p-b7cb84d1.entry.js} +1 -1
- package/dist/tegel/{p-cd289e17.entry.js → p-c026cd40.entry.js} +1 -1
- package/dist/tegel/p-ca19d259.entry.js +1 -0
- package/dist/tegel/{p-0df92ce7.entry.js → p-cc2524ea.entry.js} +1 -1
- package/dist/tegel/p-cdd4acb0.entry.js +1 -0
- package/dist/tegel/p-d023830f.entry.js +1 -0
- package/dist/tegel/p-d18575db.js +1 -0
- package/dist/tegel/{p-a464920f.entry.js → p-db250bc9.entry.js} +1 -1
- package/dist/tegel/p-ddb96690.entry.js +1 -0
- package/dist/tegel/p-e455db38.entry.js +1 -0
- package/dist/tegel/p-ef49682d.entry.js +1 -0
- package/dist/tegel/p-efc72ccb.entry.js +1 -0
- package/dist/tegel/p-f7c4f098.entry.js +1 -0
- package/dist/tegel/{p-137929b7.entry.js → p-fb026b94.entry.js} +1 -1
- package/dist/tegel/p-fc844498.entry.js +1 -0
- package/dist/tegel/tegel.css +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +1 -0
- package/dist/types/components/datetime/datetime.d.ts +1 -0
- package/dist/types/components/header/header-launcher-list/header-launcher-list.d.ts +1 -0
- package/dist/types/components/header/header-launcher-list-item/header-launcher-list-item.d.ts +1 -0
- package/dist/types/components/header/header.d.ts +0 -2
- package/dist/types/components/message/message.d.ts +1 -0
- package/dist/types/components/side-menu/side-menu-user/side-menu-user.d.ts +1 -0
- package/dist/types/components/slider/slider.d.ts +1 -0
- package/dist/types/components/stepper/step/step.d.ts +1 -1
- package/dist/types/components/table/table/table.d.ts +1 -1
- package/dist/types/components/table/table-footer/table-footer.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/utils/findClosestComponent.d.ts +9 -0
- package/dist/types/utils/getDirectChildHTMLElementOfKind.d.ts +2 -0
- package/dist/types/utils/tagName.d.ts +6 -0
- package/dist/types/utils/tagNames.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +0 -38
- package/dist/components/p-09d36119.js +0 -37
- package/dist/components/p-0c3cab16.js +0 -90
- package/dist/components/p-30de8ac4.js +0 -32
- package/dist/components/p-3e74be57.js +0 -65
- package/dist/components/p-8e74bb22.js +0 -57
- package/dist/components/p-a9609e88.js +0 -72
- package/dist/components/p-cfb1b588.js +0 -41
- package/dist/components/p-dc461e7b.js +0 -2000
- package/dist/components/p-dddaa520.js +0 -37
- package/dist/components/p-e46088d9.js +0 -35
- package/dist/components/p-e4d7c655.js +0 -91
- package/dist/components/p-fcec766c.js +0 -101
- package/dist/esm/tds-dropdown_2.entry.js +0 -560
- package/dist/esm/tds-side-menu-user-image_2.entry.js +0 -33
- package/dist/tegel/p-06d2fa56.entry.js +0 -1
- package/dist/tegel/p-088bfcd4.entry.js +0 -1
- package/dist/tegel/p-0f38bea7.entry.js +0 -1
- package/dist/tegel/p-0f486a7c.entry.js +0 -1
- package/dist/tegel/p-1634247e.entry.js +0 -1
- package/dist/tegel/p-1a2f3852.entry.js +0 -1
- package/dist/tegel/p-1bc2c73c.entry.js +0 -1
- package/dist/tegel/p-285d7485.entry.js +0 -1
- package/dist/tegel/p-2b030cef.entry.js +0 -1
- package/dist/tegel/p-2e44b4e9.entry.js +0 -1
- package/dist/tegel/p-46fe6712.entry.js +0 -1
- package/dist/tegel/p-4ab7461e.entry.js +0 -1
- package/dist/tegel/p-4bab99d5.entry.js +0 -1
- package/dist/tegel/p-51e49417.entry.js +0 -1
- package/dist/tegel/p-52be41ce.entry.js +0 -1
- package/dist/tegel/p-54a105a4.entry.js +0 -1
- package/dist/tegel/p-588a05aa.entry.js +0 -1
- package/dist/tegel/p-5a891dd2.entry.js +0 -1
- package/dist/tegel/p-5d0e8f1e.entry.js +0 -1
- package/dist/tegel/p-6938329a.entry.js +0 -1
- package/dist/tegel/p-6aabf7e1.entry.js +0 -1
- package/dist/tegel/p-6c26e66f.entry.js +0 -1
- package/dist/tegel/p-73dd2dbb.entry.js +0 -1
- package/dist/tegel/p-7a83cf55.entry.js +0 -1
- package/dist/tegel/p-7d83ba98.entry.js +0 -1
- package/dist/tegel/p-831111e9.entry.js +0 -1
- package/dist/tegel/p-8ae952b6.entry.js +0 -1
- package/dist/tegel/p-91225c7a.entry.js +0 -1
- package/dist/tegel/p-91dcddd5.entry.js +0 -1
- package/dist/tegel/p-930e767e.entry.js +0 -1
- package/dist/tegel/p-9332c225.js +0 -1
- package/dist/tegel/p-959a6780.entry.js +0 -1
- package/dist/tegel/p-987084a5.entry.js +0 -1
- package/dist/tegel/p-9c2dfecc.entry.js +0 -1
- package/dist/tegel/p-9de400f4.entry.js +0 -1
- package/dist/tegel/p-a5a67770.entry.js +0 -1
- package/dist/tegel/p-a642c800.entry.js +0 -1
- package/dist/tegel/p-a9654cd4.entry.js +0 -1
- package/dist/tegel/p-aed1c5cf.entry.js +0 -1
- package/dist/tegel/p-b21eb276.entry.js +0 -1
- package/dist/tegel/p-b4c7099f.entry.js +0 -1
- package/dist/tegel/p-b9ac3122.entry.js +0 -1
- package/dist/tegel/p-b9e37cf2.entry.js +0 -1
- package/dist/tegel/p-bb129d43.entry.js +0 -1
- package/dist/tegel/p-bcae4d3a.entry.js +0 -1
- package/dist/tegel/p-c18b2746.entry.js +0 -1
- package/dist/tegel/p-c790ef93.entry.js +0 -1
- package/dist/tegel/p-c917d8be.entry.js +0 -1
- package/dist/tegel/p-cd5219ac.entry.js +0 -1
- package/dist/tegel/p-d1cbe5be.entry.js +0 -1
- package/dist/tegel/p-db00f607.entry.js +0 -1
- package/dist/tegel/p-dcbd977f.entry.js +0 -1
- package/dist/tegel/p-e7108828.entry.js +0 -1
- package/dist/tegel/p-ed02ad2b.entry.js +0 -1
- package/dist/tegel/p-f0d46e61.entry.js +0 -1
- package/dist/tegel/p-f841f094.entry.js +0 -1
- package/dist/tegel/p-ff5cd75f.entry.js +0 -1
- package/dist/cjs/{isHeadingElement-4f06b688.js → getPreviousNestedChildOfSiblingsMatching-4e700df1.js} +12 -12
- package/dist/esm/{isHeadingElement-8efea284.js → getPreviousNestedChildOfSiblingsMatching-a6fcb512.js} +12 -12
|
@@ -2,6 +2,8 @@ import { Host, h, } from "@stencil/core";
|
|
|
2
2
|
import findNextFocusableElement from "../../utils/findNextFocusableElement";
|
|
3
3
|
import findPreviousFocusableElement from "../../utils/findPreviousFocusableElement";
|
|
4
4
|
import appendHiddenInput from "../../utils/appendHiddenInput";
|
|
5
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
6
|
+
import { getDirectChildHTMLElementOfKind } from "../../utils/getDirectChildHTMLElementOfKind";
|
|
5
7
|
/**
|
|
6
8
|
* @slot <default> - <b>Unnamed slot.</b> For dropdown option elements.
|
|
7
9
|
*/
|
|
@@ -9,7 +11,7 @@ export class TdsDropdown {
|
|
|
9
11
|
constructor() {
|
|
10
12
|
this.setDefaultOption = () => {
|
|
11
13
|
if (this.defaultValue) {
|
|
12
|
-
const children =
|
|
14
|
+
const children = getDirectChildHTMLElementOfKind(this.host, 'tds-dropdown-option');
|
|
13
15
|
if (children.length === 0) {
|
|
14
16
|
console.warn('TDS DROPDOWN: No options found. Disregard if loading data asynchronously.');
|
|
15
17
|
return;
|
|
@@ -37,7 +39,7 @@ export class TdsDropdown {
|
|
|
37
39
|
};
|
|
38
40
|
/* Returns a list of all children that are tds-dropdown-option elements */
|
|
39
41
|
this.getChildren = () => {
|
|
40
|
-
const tdsDropdownOptions =
|
|
42
|
+
const tdsDropdownOptions = getDirectChildHTMLElementOfKind(this.host, 'tds-dropdown-option');
|
|
41
43
|
if (tdsDropdownOptions.length === 0) {
|
|
42
44
|
console.warn('TDS DROPDOWN: Data missing. Disregard if loading data asynchronously.');
|
|
43
45
|
}
|
|
@@ -345,7 +347,8 @@ export class TdsDropdown {
|
|
|
345
347
|
render() {
|
|
346
348
|
var _a, _b, _c, _d;
|
|
347
349
|
appendHiddenInput(this.host, this.name, (_a = this.value) === null || _a === void 0 ? void 0 : _a.map((value) => value).toString(), this.disabled);
|
|
348
|
-
|
|
350
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
351
|
+
return (h(Host, { key: '88d3152b3fe61e1925de953b5dc9213ccd256da3', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { key: '9c2168cff564dac81acf4b2920e58fd5a4b0dd5e', class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '5a95664b168f7525354ec6189883ccc26b17108f', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
|
|
349
352
|
filter: true,
|
|
350
353
|
focus: this.filterFocus,
|
|
351
354
|
disabled: this.disabled,
|
|
@@ -375,15 +378,15 @@ export class TdsDropdown {
|
|
|
375
378
|
this.open = false;
|
|
376
379
|
}
|
|
377
380
|
}
|
|
378
|
-
})), h(
|
|
381
|
+
})), h(prefixedTagNames.tdsIcon, { tabIndex: 0, role: "button", "aria-label": "Clear filter", svgTitle: "Clear filter", onClick: this.handleFilterReset, onKeyDown: (event) => {
|
|
379
382
|
if (event.key === 'Enter') {
|
|
380
383
|
this.handleFilterReset();
|
|
381
384
|
}
|
|
382
|
-
}, class: `clear-icon ${this.open && this.inputElement.value !== '' ? '' : 'hide'}`, name: "cross", size: "16px" }), h(
|
|
385
|
+
}, class: `icon clear-icon ${this.open && this.inputElement.value !== '' ? '' : 'hide'}`, name: "cross", size: "16px" }), h(prefixedTagNames.tdsIcon, { tabIndex: 0, role: "button", "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", onClick: this.handleToggleOpen, onKeyDown: (event) => {
|
|
383
386
|
if (event.key === 'Enter') {
|
|
384
387
|
this.handleToggleOpen();
|
|
385
388
|
}
|
|
386
|
-
}, class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))) : (h("button", { onClick: () => this.handleToggleOpen(), onKeyDown: (event) => {
|
|
389
|
+
}, class: `icon menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))) : (h("button", { onClick: () => this.handleToggleOpen(), onKeyDown: (event) => {
|
|
387
390
|
if (event.key === 'Escape') {
|
|
388
391
|
this.open = false;
|
|
389
392
|
}
|
|
@@ -395,11 +398,11 @@ export class TdsDropdown {
|
|
|
395
398
|
label-inside-as-placeholder
|
|
396
399
|
${this.size}
|
|
397
400
|
${((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) ? 'selected' : ''}
|
|
398
|
-
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, ((_d = this.value) === null || _d === void 0 ? void 0 : _d.length) ? this.getValue() : this.placeholder), h(
|
|
401
|
+
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, ((_d = this.value) === null || _d === void 0 ? void 0 : _d.length) ? this.getValue() : this.placeholder), h(prefixedTagNames.tdsIcon, { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `icon menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: 'aa14b7639e4024f42de1d289103bd62a928e30c2', ref: (element) => (this.dropdownList = element), class: `dropdown-list
|
|
399
402
|
${this.size}
|
|
400
403
|
${this.open ? 'open' : 'closed'}
|
|
401
404
|
${this.getOpenDirection()}
|
|
402
|
-
${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", { key: '
|
|
405
|
+
${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", { key: '4c9c5de6cd7ea30f3219dd223b05fd7db050b552', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: 'a97144f77f789287770552a79dbd65f4493eebb3', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '0375133d3dcdc1d38ae01b201f0da965502312a6', class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h(prefixedTagNames.tdsIcon, { key: '783196d0c418c8d80a199c3c1ac979c93c63ba32', name: "error", size: "16px" }), this.helper))));
|
|
403
406
|
}
|
|
404
407
|
static get is() { return "tds-dropdown"; }
|
|
405
408
|
static get encapsulation() { return "shadow"; }
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
:host button.footer-top-title-button.expanded {
|
|
25
25
|
border-bottom: none;
|
|
26
26
|
}
|
|
27
|
-
:host button.footer-top-title-button.expanded
|
|
27
|
+
:host button.footer-top-title-button.expanded .icon {
|
|
28
28
|
transform: rotateZ(180deg);
|
|
29
29
|
}
|
|
30
30
|
:host button.footer-top-title-button:hover {
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
outline: 2px solid var(--tds-blue-400);
|
|
38
38
|
outline-offset: -2px;
|
|
39
39
|
}
|
|
40
|
-
:host button.footer-top-title-button
|
|
40
|
+
:host button.footer-top-title-button .icon {
|
|
41
41
|
transition: transform 0.2s ease-in-out;
|
|
42
42
|
}
|
|
43
43
|
:host [role=list] {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For footer items.
|
|
4
5
|
*/
|
|
@@ -19,11 +20,12 @@ export class TdsFooterGroup {
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
render() {
|
|
22
|
-
|
|
23
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
24
|
+
return (h(Host, { key: '0069ebbc4bd78ba0dd35f5f55fe4437604368c73' }, this.titleText && this.topPartGroup && (h("div", { key: 'e7f7b785dcfb0ecb6b8e2edb6e8f28edee2376c4', class: "footer-top-title" }, this.titleText)), this.titleText && this.topPartGroup && (h("button", { key: 'cc98da6fac0615c61b5e98d8dcec69ad420f65a1', onClick: () => {
|
|
23
25
|
this.open = !this.open;
|
|
24
|
-
}, class: `footer-top-title-button ${this.open ? 'expanded' : 'closed'}` }, this.titleText, h(
|
|
26
|
+
}, class: `footer-top-title-button ${this.open ? 'expanded' : 'closed'}` }, this.titleText, h(prefixedTagNames.tdsIcon, { key: 'd716dc726509ff223f386f6a72101f5386d91d3a', class: "icon", name: "chevron_down", size: "20px" }))), h("div", { key: '880445a5e1577d9b0f6a76fe8e5f7e25f56c2fe2', role: "list", class: `${this.slotPosition ? this.slotPosition : ''}
|
|
25
27
|
${this.topPartGroup ? 'top-part-child' : ''}
|
|
26
|
-
${this.open ? 'expanded' : 'closed'}` }, h("slot", { key: '
|
|
28
|
+
${this.open ? 'expanded' : 'closed'}` }, h("slot", { key: '5871db144d51ec2b55d68a7a603e74f8c9dd6da3' }))));
|
|
27
29
|
}
|
|
28
30
|
static get is() { return "tds-footer-group"; }
|
|
29
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For slotting a link, button, or similar.
|
|
4
5
|
*/
|
|
@@ -7,10 +8,12 @@ export class TdsFooterItem {
|
|
|
7
8
|
this.parentIsTopPart = false;
|
|
8
9
|
}
|
|
9
10
|
connectedCallback() {
|
|
10
|
-
this.parentIsTopPart =
|
|
11
|
+
this.parentIsTopPart =
|
|
12
|
+
findClosestComponent(this.host, 'tdsFooterGroup').parentElement
|
|
13
|
+
.slot === 'top';
|
|
11
14
|
}
|
|
12
15
|
render() {
|
|
13
|
-
return (h("div", { key: '
|
|
16
|
+
return (h("div", { key: '75eee4dd92e6a0c4b40e209bf49ebfb20d3d18e2', role: "listitem", class: `${this.parentIsTopPart ? 'top-part-child' : ''}` }, h("slot", { key: 'f8b89029499c402ff61948cc5fdcbab5d7939125' })));
|
|
14
17
|
}
|
|
15
18
|
static get is() { return "tds-footer-item"; }
|
|
16
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,7 +16,7 @@ export class TdsFooter {
|
|
|
16
16
|
const usesStartSlot = hasSlot('start', this.host);
|
|
17
17
|
const usesEndSlot = hasSlot('end', this.host);
|
|
18
18
|
const usesCopyrightSlot = hasSlot('copyright', this.host);
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'dd3e396bfb048b9226dc787ecfd443e49f60453e', class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("footer", { key: '37ab67f6b6326f5073d0cfa1b1635eab9e208e34' }, usesTopSlot && h("slot", { key: 'bf606048f715e5ee658df47ea0adb4ea6c47fb95', name: "top" }), h("div", { key: 'fbec5db90ab083b4b5f0b517dae9f1205746e576', class: "footer-main" }, (usesStartSlot || usesEndSlot) && (h("div", { key: '5c14276b2ade3f8a9a9c94869042050162a3feaf', class: "footer-main-top" }, usesStartSlot && h("slot", { key: 'bcad4d2ac3984932c8caeb1b34f11167de328412', name: "start" }), usesEndSlot && h("slot", { key: 'abd9f059bbbde2d7cba5a06f9aa9598ab2abcaad', name: "end" }))), h("div", { key: '0e6a7ac7766ee8c93a2cd87ab4592558b5b1313d', class: "footer-main-bottom" }, h("small", { key: 'ef951bdd9587dc914fb26bd550d77c1a932b4c6b', class: "copyright" }, usesCopyrightSlot ? h("slot", { name: "copyright" }) : this.copyrightText), h("div", { key: 'b1112dcba36b7c6b8025d07f7af8b89b7344a717', class: "brand" }, h("p", { key: 'd1673683ee0823962036b9999d7e6ed8f4f554c5' }, "Scania")))))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "tds-footer"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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: 'e8885c807a38e63ef3f3f63f35b3206abeed40c8' }, h("div", { key: 'a0c9f17a4734f6b986ea5786d588584f046afae2', class: "item" }, h("slot", { key: 'f5c8f00bd84083437cd6568d338df99085b2f0c7' }))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "tds-core-header-item"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
:host tds-
|
|
1
|
+
:host .tds-header__item {
|
|
2
2
|
display: none;
|
|
3
3
|
}
|
|
4
|
-
:host tds-
|
|
4
|
+
:host .tds-header__item ::slotted(*) {
|
|
5
5
|
background-image: var(--tds-background-image-scania-symbol-svg), var(--tds-background-image-scania-symbol-png);
|
|
6
6
|
background-size: 30px auto;
|
|
7
7
|
background-position: center;
|
|
8
8
|
background-repeat: no-repeat;
|
|
9
9
|
}
|
|
10
10
|
@media (min-width: 992px) {
|
|
11
|
-
:host tds-
|
|
11
|
+
:host .tds-header__item {
|
|
12
12
|
display: block;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -4,7 +4,7 @@ import { h, Host } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class TdsHeaderBrandSymbol {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '39709445926296861ce688e6c1efa35c895457a9' }, h("tds-header-item", { key: 'b1b0882e9193404f8e68fd9e764e439527eb36e3' }, h("slot", { key: '92c641720b89e6f1c44abcd0984e13d1eb38d76e' }))));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "tds-header-brand-symbol"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../../utils/generateUniqueId";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For injecting a dropdown list.
|
|
5
6
|
* @slot icon - Slot for an Icon in the dropdown button.
|
|
@@ -31,13 +32,14 @@ export class TdsHeaderDropdown {
|
|
|
31
32
|
this.open = !this.open;
|
|
32
33
|
}
|
|
33
34
|
render() {
|
|
34
|
-
|
|
35
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
36
|
+
return (h(Host, { key: '8a3613fd78ef63d1e63d9506fc388a286d2e16c1', class: "tds-header__dropdown" }, h("div", { key: '310b8eafc30fc26ff734d84ae365f254c6f1eb8a', class: {
|
|
35
37
|
'state-open': this.open,
|
|
36
|
-
} }, h(
|
|
38
|
+
} }, h(prefixedTagNames.tdsHeaderItem, { key: '4f7c6341e7a59c565f572d6797f849c12f060faf', class: "button", active: this.open, selected: this.selected }, h("button", { key: 'e6cac60975dc40f7892490dcb898283e181a7e85', ref: (el) => {
|
|
37
39
|
this.buttonEl = el;
|
|
38
40
|
}, "aria-expanded": `${this.open}`, "aria-controls": `launcher-${this.uuid}`, "aria-current": this.selected ? 'location' : 'false', onClick: () => {
|
|
39
41
|
this.toggleDropdown();
|
|
40
|
-
} }, h("slot", { key: '
|
|
42
|
+
} }, h("slot", { key: 'b74566770298996b19b51c766dbd9526737ce34b', name: "icon" }), this.label, h("slot", { key: 'd82a7f957af137e288ac96e825b9d745c8442433', name: "label" }), !this.noDropdownIcon && (h(prefixedTagNames.tdsIcon, { key: '39ccf71d90b5db3611d7d02798b248e7a2c1ad65', class: "dropdown-icon", name: "chevron_down", size: "16px" })))), this.buttonEl && (h(prefixedTagNames.tdsPopoverCore, { key: '3905bfaa26d0a321f07a79247dec85b02f850a8b', id: `tds-dropdown-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
|
|
41
43
|
{
|
|
42
44
|
name: 'flip',
|
|
43
45
|
options: {
|
|
@@ -21,7 +21,7 @@ export class TdsHeaderDropdownList {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
let listRoot = this.host;
|
|
24
|
-
if (this.host.parentElement.tagName.toLowerCase()
|
|
24
|
+
if (this.host.parentElement.tagName.toLowerCase().endsWith('tds-header-launcher-list')) {
|
|
25
25
|
listRoot = this.host.parentElement;
|
|
26
26
|
}
|
|
27
27
|
const headingEl = getPreviousNestedChildOfSiblingsMatching(listRoot, isHeadingElement);
|
|
@@ -72,7 +72,7 @@ export class TdsHeaderDropdownList {
|
|
|
72
72
|
'role': 'list',
|
|
73
73
|
'aria-labelledby': (_a = this.headingElement) === null || _a === void 0 ? void 0 : _a.id,
|
|
74
74
|
};
|
|
75
|
-
return (h(Host, Object.assign({ key: '
|
|
75
|
+
return (h(Host, Object.assign({ key: 'c0697469203d518cfc523cb863eeba0598e252e2' }, attributes), h("slot", { key: '2f6e52d048d4d1bd6923e36fc215e742d93cfdc8' })));
|
|
76
76
|
}
|
|
77
77
|
static get is() { return "tds-header-dropdown-list"; }
|
|
78
78
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js
CHANGED
|
@@ -8,10 +8,10 @@ export class TdsHeaderDropdownListItem {
|
|
|
8
8
|
this.size = 'md';
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: '9d785b73d93abb62d29226c2f00a5daa890533f4' }, h("div", { key: '55c56f2feaecbfbd5af46172a4b08025184727af', class: {
|
|
12
12
|
'component': true,
|
|
13
13
|
'component-selected': this.selected,
|
|
14
|
-
} }, h("slot", { key: '
|
|
14
|
+
} }, h("slot", { key: '431787db451e299cbc7e03165228d6eaf7af9be0' }))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "tds-header-dropdown-list-item"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js
CHANGED
|
@@ -11,7 +11,7 @@ export class TdsHeaderDropdownListLgUser {
|
|
|
11
11
|
this.subheader = undefined;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '4ac29a9c2fed72a57fb46353622fbbc750ac9cce', role: "listitem" }, h("div", { key: 'c16801b9e75757b739a1d699dd91397d72f80411', class: "user-box" }, this.imgUrl && h("img", { key: '0ad2f52fc115985ae2c3e6241bb7e66f9a6648df', src: this.imgUrl, alt: this.imgAlt }), h("slot", { key: 'b3ce711b5d5527e9bff7e97e11154c7bbdd9c846', name: "thumbanil" }), h("div", { key: 'cecc2455a403a0e801efa9b14ee36082b13d3c12', class: "user-content" }, h("div", { key: 'c8f9655175a353d88091ee34ab2d292bdfcd3f6e', class: "header" }, this.header, h("slot", { key: 'dacb842e16fd86f5da747191995a22f5efec6871', name: "header" })), h("div", { key: '8b87e008e1bdce2e8ce492a173b6b6bd18270c2a', class: "subheader" }, this.subheader, h("slot", { key: 'da8bb0a024fabfdd8f7cb00175c248add24c138c', name: "subheader" }))))));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "tds-header-dropdown-list-user"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
:host {
|
|
5
5
|
color: var(--tds-white);
|
|
6
6
|
}
|
|
7
|
-
:host tds-
|
|
7
|
+
:host .tds-header__item {
|
|
8
8
|
display: block;
|
|
9
9
|
}
|
|
10
10
|
:host .icon {
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
@media screen and (min-width: 992px) {
|
|
18
|
-
:host tds-
|
|
18
|
+
:host .tds-header__item {
|
|
19
19
|
display: none;
|
|
20
20
|
}
|
|
21
|
-
:host([persistent]) tds-
|
|
21
|
+
:host([persistent]) .tds-header__item {
|
|
22
22
|
display: block;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import inheritAriaAttributes from "../../../utils/inheritAriaAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
export class TdsHeaderHamburger {
|
|
4
5
|
render() {
|
|
5
6
|
const inheritedButtonProps = Object.assign({}, inheritAriaAttributes(this.host));
|
|
6
|
-
|
|
7
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
8
|
+
return (h(Host, { key: '8766100e5a351b94455a2143f0998c7adaeb13ae' }, h(prefixedTagNames.tdsHeaderItem, { key: 'f52081eb5ce4e0c65e894e178e91e29e036d8fbe' }, h("button", Object.assign({ key: '28ae470738a3509dffa958849d1a5f475c8dadbf' }, inheritedButtonProps), h(prefixedTagNames.tdsIcon, { key: '8221221bb775b3350553de5a4fce08f06e2584e4', class: "icon", name: "burger", size: "20px" })))));
|
|
7
9
|
}
|
|
8
10
|
static get is() { return "tds-header-hamburger"; }
|
|
9
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import dfs from "../../../utils/dfs";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For a link or button element.
|
|
5
6
|
*/
|
|
@@ -23,7 +24,8 @@ export class TdsHeaderItem {
|
|
|
23
24
|
*/
|
|
24
25
|
updateSlottedElements() {
|
|
25
26
|
if (this.slotEl) {
|
|
26
|
-
const isIconOrSvg = (element) => element.tagName.toLowerCase()
|
|
27
|
+
const isIconOrSvg = (element) => element.tagName.toLowerCase().endsWith('tds-icon') ||
|
|
28
|
+
element.tagName.toLowerCase() === 'svg';
|
|
27
29
|
const addIconClass = (element) => element.classList.add('__tds-header-item-icon');
|
|
28
30
|
this.updateSlotted(isIconOrSvg, addIconClass);
|
|
29
31
|
const isImage = (element) => element.tagName.toLowerCase() === 'img';
|
|
@@ -37,10 +39,11 @@ export class TdsHeaderItem {
|
|
|
37
39
|
this.slotEl.addEventListener('slotchange', this.updateSlottedElements);
|
|
38
40
|
}
|
|
39
41
|
render() {
|
|
40
|
-
|
|
42
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
43
|
+
return (h(Host, { key: 'd1c94674e28c6a6cf9a9af92db727502b1651925', class: "tds-header__item" }, h(prefixedTagNames.tdsCoreHeaderItem, { key: '9a87862220bc119fc9317dca058695bd51c3d454', class: {
|
|
41
44
|
'component-active': this.active,
|
|
42
45
|
'component-selected': this.selected,
|
|
43
|
-
} }, h("slot", { key: '
|
|
46
|
+
} }, h("slot", { key: '56fc833b48a34bb114676824139ecac3d0402a43' }))));
|
|
44
47
|
}
|
|
45
48
|
static get is() { return "tds-header-item"; }
|
|
46
49
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../../utils/generateUniqueId";
|
|
3
3
|
import inheritAriaAttributes from "../../../utils/inheritAriaAttributes";
|
|
4
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
5
|
+
import { getDirectChildHTMLElementOfKind } from "../../../utils/getDirectChildHTMLElementOfKind";
|
|
4
6
|
/**
|
|
5
7
|
* @slot <default> - <b>Unnamed slot.</b> For a launcher list (or grid) element.
|
|
6
8
|
*/
|
|
@@ -19,7 +21,7 @@ export class TdsHeaderLauncher {
|
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
componentDidLoad() {
|
|
22
|
-
const hasListTypeMenu =
|
|
24
|
+
const hasListTypeMenu = getDirectChildHTMLElementOfKind(this.host, 'tds-header-launcher-list').length >= 1;
|
|
23
25
|
this.hasListTypeMenu = hasListTypeMenu;
|
|
24
26
|
}
|
|
25
27
|
toggleLauncher() {
|
|
@@ -32,11 +34,12 @@ export class TdsHeaderLauncher {
|
|
|
32
34
|
}, 'ref': (el) => {
|
|
33
35
|
this.buttonEl = el;
|
|
34
36
|
} });
|
|
35
|
-
|
|
37
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
38
|
+
return (h(Host, { key: '7e72228afe40b13614b4eca786492b86944345a8' }, h("div", { key: '1063514167e0e4bc7d53ba739be9fbee93a8f757', class: {
|
|
36
39
|
'wrapper': true,
|
|
37
40
|
'state-open': this.open,
|
|
38
41
|
'state-list-type-menu': this.hasListTypeMenu,
|
|
39
|
-
} }, h(
|
|
42
|
+
} }, h(prefixedTagNames.tdsHeaderLauncherButton, Object.assign({ key: 'b069993d8c4a123428d0ddc024829a07fab4a624' }, buttonAttributes)), this.buttonEl && (h(prefixedTagNames.tdsPopoverCanvas, { key: '27548779b1efb005a8d89c4afe4cd515cb20cbf1', id: `tds-launcher-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
|
|
40
43
|
{
|
|
41
44
|
name: 'flip',
|
|
42
45
|
options: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import inheritAriaAttributes from "../../../utils/inheritAriaAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
export class TdsHeaderLauncherButton {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.active = false;
|
|
@@ -7,7 +8,8 @@ export class TdsHeaderLauncherButton {
|
|
|
7
8
|
render() {
|
|
8
9
|
this.ariaAttributes = Object.assign(Object.assign({}, this.ariaAttributes), inheritAriaAttributes(this.host));
|
|
9
10
|
const buttonProps = Object.assign({}, this.ariaAttributes);
|
|
10
|
-
|
|
11
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
12
|
+
return (h(Host, { key: 'e6357e528e1c037edb0ed2cc4cdfa40289ac6862' }, h(prefixedTagNames.tdsHeaderItem, { key: '56c80411d63b0d36e15aa5278a81e37263bda327', active: this.active }, h("button", Object.assign({ key: '896fbc1b991bb21812c9e69ffb0c9abcbc265413' }, buttonProps), h(prefixedTagNames.tdsIcon, { key: '7baadad7cb84eae8a04b16c82b3c34da862b0096', class: "icon", name: "bento", size: "20px" })))));
|
|
11
13
|
}
|
|
12
14
|
static get is() { return "tds-header-launcher-button"; }
|
|
13
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,7 +28,7 @@ export class TdsHeaderLauncherGrid {
|
|
|
28
28
|
'role': 'list',
|
|
29
29
|
'aria-labelledby': (_a = this.headingElement) === null || _a === void 0 ? void 0 : _a.id,
|
|
30
30
|
};
|
|
31
|
-
return (h(Host, { key: '
|
|
31
|
+
return (h(Host, { key: '3ca92ef28fe905f448679807bba463d8427d2ba1' }, h("div", Object.assign({ key: '896b03c9f0fdb7cf318600cefe6e0f5aae5007ab' }, listAttributes), h("slot", { key: '0e6ec5b644c19a1173cc5dcda96dbcac7debfcef' }))));
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "tds-header-launcher-grid"; }
|
|
34
34
|
static get originalStyleUrls() {
|
package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js
CHANGED
|
@@ -4,7 +4,7 @@ import { h, Host } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class TdsHeaderLauncherGridItem {
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '1a0733342889c931d0c31d8d9af476229ba23785', role: "listitem" }, h("slot", { key: 'f9009bce11ae1766146297725251484b8e318388' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "tds-header-launcher-grid-item"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js
CHANGED
|
@@ -8,7 +8,7 @@ export class TdsHeaderLauncherGridTitle {
|
|
|
8
8
|
this.uuid = generateUniqueId();
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'b095e1745d756e7df2a4fbcc0cb95203f8c0dd15' }, h("h3", { key: '3f46748a885ce336fce8e848e88c8385049c4033', class: "tds-header-launcher-grid-title", id: `tds-header-launcher-grid-title-${this.uuid}` }, h("slot", { key: '13f3ecc6175e1cad6528a01b5daa6452a955b56e' }))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "tds-header-launcher-grid-title"; }
|
|
14
14
|
static get originalStyleUrls() {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../../utils/generateUniqueId";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For list items.
|
|
5
6
|
*/
|
|
@@ -8,7 +9,9 @@ export class TdsHeaderLauncherList {
|
|
|
8
9
|
this.uuid = generateUniqueId();
|
|
9
10
|
}
|
|
10
11
|
render() {
|
|
11
|
-
|
|
12
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
13
|
+
return (h(Host, { key: '26a833f61af492c2d1a37063e0b03c61eece87e1' }, h(prefixedTagNames.tdsHeaderDropdownList, { key: 'e6c01161fa004825bdf91c3a5c3d3ac8bbfcf3b5', size: "lg" }, h("slot", { key: '497ffc699f0ac8804f35c6040ad4b7c9765839cc' }))));
|
|
12
14
|
}
|
|
13
15
|
static get is() { return "tds-header-launcher-list"; }
|
|
16
|
+
static get elementRef() { return "host"; }
|
|
14
17
|
}
|
package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For a link or button element.
|
|
4
5
|
*/
|
|
5
6
|
export class TdsHeaderLauncherListItem {
|
|
6
7
|
render() {
|
|
7
|
-
|
|
8
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
9
|
+
return (h(Host, { key: 'ce1b1850d4775f61935e9893a45a4aa6309e180c' }, h(prefixedTagNames.tdsHeaderDropdownListItem, { key: '73ec49c152b0b89d697dc2e60cd1ec43e45913ef', size: "lg" }, h("slot", { key: '95aecaee748a3631881b3a5053b5795dd7de02e1' }))));
|
|
8
10
|
}
|
|
9
11
|
static get is() { return "tds-header-launcher-list-item"; }
|
|
10
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,4 +20,5 @@ export class TdsHeaderLauncherListItem {
|
|
|
18
20
|
"$": ["header-launcher-list-item.css"]
|
|
19
21
|
};
|
|
20
22
|
}
|
|
23
|
+
static get elementRef() { return "host"; }
|
|
21
24
|
}
|
package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js
CHANGED
|
@@ -8,7 +8,7 @@ export class TdsHeaderLauncherListTitle {
|
|
|
8
8
|
this.uuid = generateUniqueId();
|
|
9
9
|
}
|
|
10
10
|
render() {
|
|
11
|
-
return (h(Host, { key: '
|
|
11
|
+
return (h(Host, { key: 'cbb9bf06629c54432a690fdd3eeb4031f10504fc' }, h("h3", { key: '5dcd1844afce1919882ee63fb27adfd499b844fa', class: "tds-header-launcher-list-title", id: `tds-header-launcher-${this.uuid}` }, h("slot", { key: '7f89b60a74c14336cc9ceb1f83199920c78dc87b' }))));
|
|
12
12
|
}
|
|
13
13
|
static get is() { return "tds-header-launcher-list-title"; }
|
|
14
14
|
static get originalStyleUrls() {
|
|
@@ -4,7 +4,7 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class TdsHeaderTitle {
|
|
6
6
|
render() {
|
|
7
|
-
return (h("h4", { key: '
|
|
7
|
+
return (h("h4", { key: 'eccc6bdc25cacf555263b9ed5be7fb9a2017f60e' }, h("slot", { key: '3ae13db7cb7224eaed0f419e815c245a80c0f845' })));
|
|
8
8
|
}
|
|
9
9
|
static get is() { return "tds-header-title"; }
|
|
10
10
|
static get encapsulation() { return "shadow"; }
|
|
@@ -20,7 +20,7 @@ html,
|
|
|
20
20
|
--tds-font-family-headline: "Scania Sans Headline", arial, helvetica, sans-serif;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
tds-
|
|
23
|
+
.tds-header__header {
|
|
24
24
|
display: block;
|
|
25
25
|
height: var(--tds-header-height);
|
|
26
26
|
background-color: var(--tds-header-background);
|
|
@@ -44,8 +44,8 @@ nav .tds-header-component-list {
|
|
|
44
44
|
justify-content: center;
|
|
45
45
|
align-items: center;
|
|
46
46
|
}
|
|
47
|
-
nav tds-
|
|
48
|
-
nav tds-
|
|
47
|
+
nav .tds-header__dropdown,
|
|
48
|
+
nav .tds-header__item {
|
|
49
49
|
display: none;
|
|
50
50
|
}
|
|
51
51
|
nav .tds-header-middle-spacer {
|
|
@@ -56,13 +56,13 @@ nav .tds-header-middle-spacer {
|
|
|
56
56
|
border-right: 1px solid var(--tds-header--basic-element-border);
|
|
57
57
|
}
|
|
58
58
|
@media screen and (min-width: 992px) {
|
|
59
|
-
nav tds-
|
|
60
|
-
nav tds-
|
|
59
|
+
nav .tds-header__dropdown,
|
|
60
|
+
nav .tds-header__item {
|
|
61
61
|
display: block;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
nav tds-
|
|
65
|
-
nav tds-
|
|
64
|
+
nav .tds-header__item:nth-child(3),
|
|
65
|
+
nav .tds-header__dropdown:nth-child(3) {
|
|
66
66
|
/* Adds a left border to the button after the title, if any */
|
|
67
67
|
border-left: 1px solid var(--tds-header--basic-element-border);
|
|
68
68
|
}
|
|
@@ -9,23 +9,16 @@ import inheritAriaAttributes from "../../utils/inheritAriaAttributes";
|
|
|
9
9
|
*/
|
|
10
10
|
export class TdsHeader {
|
|
11
11
|
constructor() {
|
|
12
|
-
console.log('TdsHeader: constructor');
|
|
13
12
|
const callback = (mutationsList) => {
|
|
14
13
|
mutationsList.forEach((mutation) => {
|
|
15
14
|
if (mutation.type === 'childList') {
|
|
16
|
-
console.log('TdsHeader: Mutation observed - childList changed');
|
|
17
15
|
updateListChildrenRoles(mutation.target);
|
|
18
16
|
}
|
|
19
17
|
});
|
|
20
18
|
};
|
|
21
19
|
this.observer = new MutationObserver(callback);
|
|
22
20
|
}
|
|
23
|
-
handleSlotChange() {
|
|
24
|
-
console.log('TdsHeader: handleSlotChange called');
|
|
25
|
-
this.applyNameEnd();
|
|
26
|
-
}
|
|
27
21
|
componentDidLoad() {
|
|
28
|
-
console.log('TdsHeader: componentDidLoad');
|
|
29
22
|
const hostElement = this.host;
|
|
30
23
|
const navElement = hostElement.querySelector('.tds-header-component-list');
|
|
31
24
|
this.observer.observe(navElement, {
|
|
@@ -34,18 +27,12 @@ export class TdsHeader {
|
|
|
34
27
|
});
|
|
35
28
|
updateListChildrenRoles(navElement);
|
|
36
29
|
}
|
|
37
|
-
applyNameEnd() {
|
|
38
|
-
console.log('TdsHeader: applyNameEnd called');
|
|
39
|
-
// Any additional code for `applyNameEnd` can go here
|
|
40
|
-
}
|
|
41
30
|
disconnectedCallback() {
|
|
42
|
-
console.log('TdsHeader: disconnectedCallback');
|
|
43
31
|
this.observer.disconnect();
|
|
44
32
|
}
|
|
45
33
|
render() {
|
|
46
|
-
console.log('TdsHeader: render');
|
|
47
34
|
const navAttributes = Object.assign({}, inheritAriaAttributes(this.host));
|
|
48
|
-
return (h(Host, { key: '
|
|
35
|
+
return (h(Host, { key: '1e65712e11267defd7590a7f4769e5e553137f04', class: "tds-header__header" }, h("slot", { key: '830f824cc36667999b00b947d6589094276b4ca1', name: "hamburger" }), h("slot", { key: '063fca5b8caf0e072443b99bf20a5f344557d838', name: "title" }), h("nav", Object.assign({ key: '98a8433a655ca99f2535d71b7b2a1d5ff354ca80' }, navAttributes), h("ul", { key: '613c6cd171c8fe223e9d82b0f78a0e805676bffb', class: "tds-header-component-list" }, h("slot", { key: 'a3ec4fe9002960527b77df577e50f4b975f485f7' }), h("li", { key: '19596ec2902daa179731cfab07018d8fd3b525e6', class: "tds-header-middle-spacer" }), h("slot", { key: '291db6f1b534181ad30f87d18e5daf967bd92e55', name: "end" })))));
|
|
49
36
|
}
|
|
50
37
|
static get is() { return "tds-header"; }
|
|
51
38
|
static get originalStyleUrls() {
|
|
@@ -28,7 +28,7 @@ export class Icon {
|
|
|
28
28
|
this.arrayOfIcons = [...this.arrayOfIcons];
|
|
29
29
|
}
|
|
30
30
|
render() {
|
|
31
|
-
return h(Host, { key: '
|
|
31
|
+
return h(Host, { key: '2efc81167f5b7b5b9965b198d3a5365a745c36f0', class: "tds-icon__icon" }, this.setIcons());
|
|
32
32
|
}
|
|
33
33
|
static get is() { return "tds-icon"; }
|
|
34
34
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,10 +11,10 @@ export class TdsLink {
|
|
|
11
11
|
this.host.children[0].classList.add('tds-link-component');
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h("span", { key: '
|
|
14
|
+
return (h("span", { key: 'ac78b9966c1ce4cc0413c945c0b230ba5ef9f7cc', class: `
|
|
15
15
|
${this.disabled ? 'disabled' : ''}
|
|
16
16
|
${!this.underline ? 'no-underline' : ''}
|
|
17
|
-
` }, h("slot", { key: '
|
|
17
|
+
` }, h("slot", { key: '4862d09ae448b87af8c503923a3b5828e7286e5b' })));
|
|
18
18
|
}
|
|
19
19
|
static get is() { return "tds-link"; }
|
|
20
20
|
static get encapsulation() { return "shadow"; }
|