@scania/tegel 1.25.0 → 1.26.0-value-prop-fix.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/loader.cjs.js +1 -1
- package/dist/cjs/tds-badge.cjs.entry.js +5 -9
- package/dist/cjs/tds-banner.cjs.entry.js +3 -4
- package/dist/cjs/tds-block.cjs.entry.js +3 -1
- package/dist/cjs/tds-body-cell.cjs.entry.js +9 -6
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +7 -1
- package/dist/cjs/tds-button.cjs.entry.js +12 -4
- package/dist/cjs/tds-card.cjs.entry.js +5 -5
- package/dist/cjs/tds-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/tds-chip.cjs.entry.js +7 -2
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +40 -3
- package/dist/cjs/tds-datetime.cjs.entry.js +20 -13
- package/dist/cjs/tds-divider.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +256 -208
- package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +2 -2
- package/dist/cjs/tds-footer-group.cjs.entry.js +3 -3
- package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +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 +1 -1
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header.cjs.entry.js +1 -1
- package/dist/cjs/tds-icon.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +2 -2
- package/dist/cjs/tds-link.cjs.entry.js +2 -2
- package/dist/cjs/tds-message.cjs.entry.js +2 -2
- package/dist/cjs/tds-modal.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +4 -4
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +2 -2
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-popover-menu.cjs.entry.js +2 -2
- package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +4 -4
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +2 -2
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +2 -2
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-slider.cjs.entry.js +7 -7
- package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tds-step.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +7 -7
- package/dist/cjs/tds-table-body-row.cjs.entry.js +9 -6
- package/dist/cjs/tds-table-body.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-footer.cjs.entry.js +3 -3
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-header.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/tds-text-field.cjs.entry.js +6 -6
- package/dist/cjs/tds-textarea.cjs.entry.js +3 -3
- package/dist/cjs/tds-toast.cjs.entry.js +3 -3
- package/dist/cjs/tds-toggle.cjs.entry.js +11 -2
- package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/badge/badge.js +24 -9
- package/dist/collection/components/banner/banner.js +21 -4
- package/dist/collection/components/block/block.js +27 -2
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.css +9 -10
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +2 -2
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +30 -1
- package/dist/collection/components/button/button.css +3 -3
- package/dist/collection/components/button/button.js +28 -3
- package/dist/collection/components/card/card.js +5 -5
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/chip/chip.js +8 -3
- package/dist/collection/components/datetime/datetime.css +20 -0
- package/dist/collection/components/datetime/datetime.js +22 -15
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +41 -16
- package/dist/collection/components/dropdown/dropdown.js +280 -250
- package/dist/collection/components/footer/footer-group/footer-group.js +3 -3
- package/dist/collection/components/footer/footer-item/footer-item.js +1 -1
- package/dist/collection/components/footer/footer.js +2 -2
- 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.js +3 -3
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +1 -1
- 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.js +1 -1
- package/dist/collection/components/header/header-item/header-item.js +39 -2
- package/dist/collection/components/header/header-launcher/header-launcher.js +2 -2
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +1 -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 +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.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/link/link.js +2 -2
- package/dist/collection/components/message/message.js +2 -2
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/popover-canvas/popover-canvas.js +2 -2
- package/dist/collection/components/popover-core/popover-core.js +1 -1
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +2 -2
- package/dist/collection/components/popover-menu/popover-menu.js +2 -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 +1 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +4 -4
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +3 -3
- 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.js +2 -2
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +2 -2
- 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 +1 -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.js +7 -7
- package/dist/collection/components/spinner/spinner.js +1 -1
- package/dist/collection/components/stepper/step/step.js +1 -1
- package/dist/collection/components/table/table-body/table-body.js +2 -2
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +9 -6
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +1 -1
- package/dist/collection/components/table/table-body-row/table-body-row.js +9 -6
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +7 -7
- package/dist/collection/components/table/table-footer/table-footer.js +3 -3
- package/dist/collection/components/table/table-header/table-header.js +2 -2
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +1 -1
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +1 -1
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +4 -4
- package/dist/collection/components/text-field/text-field.js +6 -6
- package/dist/collection/components/textarea/textarea.js +3 -3
- package/dist/collection/components/toast/toast.js +3 -3
- package/dist/collection/components/toggle/toggle.js +28 -2
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/utils/axeHelpers.js +1 -1
- package/dist/collection/utils/convertToString.js +14 -0
- package/dist/components/{p-2ef329f1.js → p-0e6efec9.js} +2 -2
- package/dist/components/{p-4bdaf254.js → p-265c3467.js} +1 -1
- package/dist/components/{p-f0a50868.js → p-29d19dc8.js} +3 -3
- package/dist/components/{p-75437dea.js → p-34737ed9.js} +1 -1
- package/dist/components/{p-dd6ff1e2.js → p-3cd8af42.js} +223 -204
- package/dist/components/{p-d1ace0be.js → p-3e93886d.js} +1 -1
- package/dist/components/{p-3351035f.js → p-4764a1d5.js} +1 -1
- package/dist/components/{p-f1980746.js → p-4c1e3344.js} +4 -4
- package/dist/components/{p-9d7232d0.js → p-8c849aa2.js} +2 -2
- package/dist/components/{p-1e110ab8.js → p-98730c19.js} +39 -15
- package/dist/components/p-a1181b1f.js +16 -0
- package/dist/components/{p-ad77fb02.js → p-a2b7bdef.js} +1 -1
- package/dist/components/{p-eac79032.js → p-c65351ab.js} +2 -2
- package/dist/components/{p-3a7f88ff.js → p-d61bd22e.js} +40 -3
- package/dist/components/{p-707a562e.js → p-e49a0ceb.js} +1 -1
- package/dist/components/{p-8f8b0827.js → p-e8d2dbbf.js} +1 -1
- package/dist/components/tds-accordion-item.js +1 -1
- package/dist/components/tds-badge.js +7 -9
- package/dist/components/tds-banner.js +5 -5
- package/dist/components/tds-block.js +5 -2
- package/dist/components/tds-body-cell.js +9 -6
- package/dist/components/tds-breadcrumb.js +3 -3
- package/dist/components/tds-breadcrumbs.js +10 -2
- package/dist/components/tds-button.js +13 -4
- package/dist/components/tds-card.js +6 -6
- package/dist/components/tds-checkbox.js +1 -1
- package/dist/components/tds-chip.js +7 -2
- package/dist/components/tds-core-header-item.js +1 -1
- package/dist/components/tds-datetime.js +21 -14
- 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 +2 -2
- package/dist/components/tds-folder-tabs.js +3 -3
- package/dist/components/tds-footer-group.js +4 -4
- package/dist/components/tds-footer-item.js +1 -1
- package/dist/components/tds-footer.js +2 -2
- package/dist/components/tds-header-brand-symbol.js +3 -3
- package/dist/components/tds-header-cell.js +2 -2
- package/dist/components/tds-header-dropdown-list-item.js +1 -1
- package/dist/components/tds-header-dropdown-list-user.js +1 -1
- package/dist/components/tds-header-dropdown-list.js +1 -1
- package/dist/components/tds-header-dropdown.js +8 -8
- package/dist/components/tds-header-hamburger.js +4 -4
- 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 +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 +2 -2
- package/dist/components/tds-header-launcher-list-title.js +1 -1
- package/dist/components/tds-header-launcher-list.js +2 -2
- package/dist/components/tds-header-launcher.js +8 -8
- package/dist/components/tds-header-title.js +1 -1
- package/dist/components/tds-header.js +1 -1
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tab.js +2 -2
- package/dist/components/tds-inline-tabs.js +3 -3
- package/dist/components/tds-link.js +2 -2
- package/dist/components/tds-message.js +3 -3
- package/dist/components/tds-modal.js +3 -3
- package/dist/components/tds-navigation-tab.js +2 -2
- package/dist/components/tds-navigation-tabs.js +5 -5
- 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 +2 -2
- package/dist/components/tds-popover-menu.js +3 -3
- package/dist/components/tds-radio-button.js +1 -1
- package/dist/components/tds-side-menu-close-button.js +2 -2
- package/dist/components/tds-side-menu-collapse-button.js +5 -5
- package/dist/components/tds-side-menu-dropdown-list-item.js +2 -2
- package/dist/components/tds-side-menu-dropdown-list.js +2 -2
- package/dist/components/tds-side-menu-dropdown.js +5 -5
- package/dist/components/tds-side-menu-item.js +1 -1
- package/dist/components/tds-side-menu-overlay.js +1 -1
- 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 +3 -3
- package/dist/components/tds-slider.js +8 -8
- package/dist/components/tds-spinner.js +1 -1
- package/dist/components/tds-step.js +2 -2
- package/dist/components/tds-table-body-input-wrapper.js +2 -2
- package/dist/components/tds-table-body-row-expandable.js +7 -7
- package/dist/components/tds-table-body-row.js +10 -7
- package/dist/components/tds-table-body.js +2 -2
- package/dist/components/tds-table-footer.js +7 -7
- package/dist/components/tds-table-header-input-wrapper.js +2 -2
- package/dist/components/tds-table-header.js +3 -3
- package/dist/components/tds-table-toolbar.js +3 -3
- package/dist/components/tds-text-field.js +7 -7
- package/dist/components/tds-textarea.js +4 -4
- package/dist/components/tds-toast.js +4 -4
- package/dist/components/tds-toggle.js +12 -2
- package/dist/components/tds-tooltip.js +3 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-badge.entry.js +5 -9
- package/dist/esm/tds-banner.entry.js +3 -4
- package/dist/esm/tds-block.entry.js +3 -1
- package/dist/esm/tds-body-cell.entry.js +9 -6
- package/dist/esm/tds-breadcrumb.entry.js +3 -3
- package/dist/esm/tds-breadcrumbs.entry.js +7 -1
- package/dist/esm/tds-button.entry.js +12 -4
- package/dist/esm/tds-card.entry.js +5 -5
- package/dist/esm/tds-checkbox.entry.js +2 -2
- package/dist/esm/tds-chip.entry.js +7 -2
- package/dist/esm/tds-core-header-item_2.entry.js +40 -3
- package/dist/esm/tds-datetime.entry.js +20 -13
- package/dist/esm/tds-divider.entry.js +1 -1
- package/dist/esm/tds-dropdown_2.entry.js +256 -208
- package/dist/esm/tds-folder-tab.entry.js +2 -2
- package/dist/esm/tds-folder-tabs.entry.js +2 -2
- package/dist/esm/tds-footer-group.entry.js +3 -3
- package/dist/esm/tds-footer-item.entry.js +1 -1
- package/dist/esm/tds-footer.entry.js +2 -2
- package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
- package/dist/esm/tds-header-cell.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list-item.entry.js +2 -2
- package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-header-dropdown.entry.js +3 -3
- package/dist/esm/tds-header-hamburger.entry.js +1 -1
- package/dist/esm/tds-header-launcher-button.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list.entry.js +1 -1
- package/dist/esm/tds-header-launcher.entry.js +2 -2
- package/dist/esm/tds-header-title.entry.js +1 -1
- package/dist/esm/tds-header.entry.js +1 -1
- package/dist/esm/tds-icon.entry.js +1 -1
- package/dist/esm/tds-inline-tab.entry.js +2 -2
- package/dist/esm/tds-inline-tabs.entry.js +2 -2
- package/dist/esm/tds-link.entry.js +2 -2
- package/dist/esm/tds-message.entry.js +2 -2
- package/dist/esm/tds-modal.entry.js +2 -2
- package/dist/esm/tds-navigation-tab.entry.js +2 -2
- package/dist/esm/tds-navigation-tabs.entry.js +4 -4
- package/dist/esm/tds-popover-canvas.entry.js +2 -2
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-popover-menu-item.entry.js +2 -2
- package/dist/esm/tds-popover-menu.entry.js +2 -2
- package/dist/esm/tds-radio-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-collapse-button.entry.js +4 -4
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +2 -2
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +2 -2
- package/dist/esm/tds-side-menu-dropdown.entry.js +3 -3
- package/dist/esm/tds-side-menu-item.entry.js +2 -2
- package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
- package/dist/esm/tds-side-menu-user-image_2.entry.js +2 -2
- package/dist/esm/tds-side-menu-user.entry.js +1 -1
- package/dist/esm/tds-slider.entry.js +7 -7
- package/dist/esm/tds-spinner.entry.js +1 -1
- package/dist/esm/tds-step.entry.js +1 -1
- package/dist/esm/tds-table-body-input-wrapper.entry.js +1 -1
- package/dist/esm/tds-table-body-row-expandable.entry.js +7 -7
- package/dist/esm/tds-table-body-row.entry.js +9 -6
- package/dist/esm/tds-table-body.entry.js +2 -2
- package/dist/esm/tds-table-footer.entry.js +3 -3
- package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
- package/dist/esm/tds-table-header.entry.js +2 -2
- package/dist/esm/tds-table-toolbar.entry.js +2 -2
- package/dist/esm/tds-text-field.entry.js +6 -6
- package/dist/esm/tds-textarea.entry.js +3 -3
- package/dist/esm/tds-toast.entry.js +3 -3
- package/dist/esm/tds-toggle.entry.js +11 -2
- package/dist/esm/tds-tooltip.entry.js +2 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-01edebef.entry.js +1 -0
- package/dist/tegel/{p-3e144a83.entry.js → p-035e58e6.entry.js} +1 -1
- package/dist/tegel/{p-170ab61b.entry.js → p-065d6f83.entry.js} +1 -1
- package/dist/tegel/p-0c1e632d.entry.js +1 -0
- package/dist/tegel/{p-72106a5c.entry.js → p-168122a7.entry.js} +1 -1
- package/dist/tegel/{p-6eeded00.entry.js → p-19eb4ae1.entry.js} +1 -1
- package/dist/tegel/p-1b390acb.entry.js +1 -0
- package/dist/tegel/{p-059a9499.entry.js → p-288a09ef.entry.js} +1 -1
- package/dist/tegel/{p-b2018a5b.entry.js → p-3204ae8f.entry.js} +1 -1
- package/dist/tegel/p-32be63ea.entry.js +1 -0
- package/dist/tegel/{p-cc2730d8.entry.js → p-34b793c9.entry.js} +1 -1
- package/dist/tegel/p-3c2f7033.entry.js +1 -0
- package/dist/tegel/p-46205cfb.entry.js +1 -0
- package/dist/tegel/p-4d5963d0.entry.js +1 -0
- package/dist/tegel/{p-68859ddc.entry.js → p-4e298888.entry.js} +1 -1
- package/dist/tegel/{p-9c3f2c12.entry.js → p-4e33cbda.entry.js} +1 -1
- package/dist/tegel/{p-b425b2f4.entry.js → p-4ee344e5.entry.js} +1 -1
- package/dist/tegel/p-4f5f152a.entry.js +1 -0
- package/dist/tegel/p-4fe6512b.entry.js +1 -0
- package/dist/tegel/p-5242a1f6.entry.js +1 -0
- package/dist/tegel/{p-038c22ff.entry.js → p-542d7b3e.entry.js} +1 -1
- package/dist/tegel/{p-5eaa23dc.entry.js → p-5a7110b8.entry.js} +1 -1
- package/dist/tegel/{p-93930c03.entry.js → p-5ba254ee.entry.js} +1 -1
- package/dist/tegel/{p-06968bd7.entry.js → p-60b38806.entry.js} +1 -1
- package/dist/tegel/{p-9016758e.entry.js → p-64c80f14.entry.js} +1 -1
- package/dist/tegel/{p-7929d22f.entry.js → p-654785d2.entry.js} +1 -1
- package/dist/tegel/p-6f17d37f.entry.js +1 -0
- package/dist/tegel/p-70795d6e.entry.js +1 -0
- package/dist/tegel/{p-4a282c25.entry.js → p-72fd0083.entry.js} +1 -1
- package/dist/tegel/{p-3d3ee51f.entry.js → p-74fc9c92.entry.js} +1 -1
- package/dist/tegel/p-77c79b91.entry.js +1 -0
- package/dist/tegel/{p-54154f09.entry.js → p-77d457b8.entry.js} +1 -1
- package/dist/tegel/{p-4b7c53a6.entry.js → p-78d5acd7.entry.js} +1 -1
- package/dist/tegel/{p-44c33b20.entry.js → p-7c4c65c9.entry.js} +1 -1
- package/dist/tegel/{p-3a32fe40.entry.js → p-848c2732.entry.js} +1 -1
- package/dist/tegel/p-868757d9.entry.js +1 -0
- package/dist/tegel/p-8c8b9908.entry.js +1 -0
- package/dist/tegel/{p-59293f88.entry.js → p-93a4bd11.entry.js} +1 -1
- package/dist/tegel/{p-2f32991e.entry.js → p-96635c10.entry.js} +1 -1
- package/dist/tegel/{p-c289dfb9.entry.js → p-a0fc0cc2.entry.js} +1 -1
- package/dist/tegel/p-a5e0f030.entry.js +1 -0
- package/dist/tegel/{p-96bdf035.entry.js → p-aa9d281b.entry.js} +1 -1
- package/dist/tegel/p-ae46766a.entry.js +1 -0
- package/dist/tegel/{p-86b30f71.entry.js → p-aef6b130.entry.js} +1 -1
- package/dist/tegel/{p-f67b4047.entry.js → p-b35e7208.entry.js} +1 -1
- package/dist/tegel/{p-a86fe122.entry.js → p-b39ffad4.entry.js} +1 -1
- package/dist/tegel/p-b5ced8e5.entry.js +1 -0
- package/dist/tegel/{p-fd3d56aa.entry.js → p-b6526302.entry.js} +1 -1
- package/dist/tegel/{p-e7300cca.entry.js → p-b686f1ad.entry.js} +1 -1
- package/dist/tegel/{p-b96cd80d.entry.js → p-b9576881.entry.js} +1 -1
- package/dist/tegel/p-b9f81e53.entry.js +1 -0
- package/dist/tegel/p-be1d1345.entry.js +1 -0
- package/dist/tegel/{p-708a8bab.entry.js → p-bee533b5.entry.js} +1 -1
- package/dist/tegel/{p-99da056d.entry.js → p-c56be8d1.entry.js} +1 -1
- package/dist/tegel/{p-2a38b053.entry.js → p-c8404432.entry.js} +1 -1
- package/dist/tegel/{p-24ff5903.entry.js → p-ca93de01.entry.js} +1 -1
- package/dist/tegel/p-cc6c06e3.entry.js +1 -0
- package/dist/tegel/{p-b19ce79c.entry.js → p-cca85da0.entry.js} +1 -1
- package/dist/tegel/p-cde32bc6.entry.js +1 -0
- package/dist/tegel/p-d0abf078.entry.js +1 -0
- package/dist/tegel/{p-6d022f47.entry.js → p-d267665e.entry.js} +1 -1
- package/dist/tegel/{p-e9ac7a1a.entry.js → p-d33cb2d1.entry.js} +1 -1
- package/dist/tegel/{p-5fea857b.entry.js → p-d47c744f.entry.js} +1 -1
- package/dist/tegel/p-d65dfe04.entry.js +1 -0
- package/dist/tegel/{p-2a96bd05.entry.js → p-d853f8c2.entry.js} +1 -1
- package/dist/tegel/p-d9511720.entry.js +1 -0
- package/dist/tegel/{p-0b773208.entry.js → p-dcbc35af.entry.js} +1 -1
- package/dist/tegel/{p-fd432c54.entry.js → p-dfbbaefd.entry.js} +1 -1
- package/dist/tegel/{p-88204e0a.entry.js → p-ea3e071f.entry.js} +1 -1
- package/dist/tegel/{p-2795009a.entry.js → p-ed17283a.entry.js} +1 -1
- package/dist/tegel/{p-e478953c.entry.js → p-ee7f07ae.entry.js} +1 -1
- package/dist/tegel/{p-b9b63210.entry.js → p-f1b0211a.entry.js} +1 -1
- package/dist/tegel/p-f43278f0.entry.js +1 -0
- package/dist/tegel/{p-a392e6e7.entry.js → p-fa07db58.entry.js} +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/badge/badge.d.ts +3 -0
- package/dist/types/components/banner/banner.d.ts +4 -0
- package/dist/types/components/block/block.d.ts +8 -1
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +3 -0
- package/dist/types/components/button/button.d.ts +3 -0
- package/dist/types/components/datetime/datetime.d.ts +2 -2
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +6 -2
- package/dist/types/components/dropdown/dropdown.d.ts +27 -24
- package/dist/types/components/header/header-item/header-item.d.ts +7 -0
- package/dist/types/components/toggle/toggle.d.ts +5 -0
- package/dist/types/components.d.ts +104 -23
- package/dist/types/utils/convertToString.d.ts +7 -0
- package/package.json +1 -1
- package/dist/tegel/p-0939b9fb.entry.js +0 -1
- package/dist/tegel/p-0cb6c898.entry.js +0 -1
- package/dist/tegel/p-1703f73a.entry.js +0 -1
- package/dist/tegel/p-32b7f431.entry.js +0 -1
- package/dist/tegel/p-39373227.entry.js +0 -1
- package/dist/tegel/p-3c22aef7.entry.js +0 -1
- package/dist/tegel/p-3e1b1399.entry.js +0 -1
- package/dist/tegel/p-48bbc11f.entry.js +0 -1
- package/dist/tegel/p-4b231bf9.entry.js +0 -1
- package/dist/tegel/p-4c2f313d.entry.js +0 -1
- package/dist/tegel/p-69b38504.entry.js +0 -1
- package/dist/tegel/p-7090a95c.entry.js +0 -1
- package/dist/tegel/p-85a9032e.entry.js +0 -1
- package/dist/tegel/p-92f81cda.entry.js +0 -1
- package/dist/tegel/p-9eaaa2c0.entry.js +0 -1
- package/dist/tegel/p-a38dda58.entry.js +0 -1
- package/dist/tegel/p-b647d20e.entry.js +0 -1
- package/dist/tegel/p-be88c5ab.entry.js +0 -1
- package/dist/tegel/p-d7f48112.entry.js +0 -1
- package/dist/tegel/p-d926d075.entry.js +0 -1
- package/dist/tegel/p-ddd33cce.entry.js +0 -1
- package/dist/tegel/p-ea4a9a4f.entry.js +0 -1
- package/dist/tegel/p-ee0e04ed.entry.js +0 -1
- package/dist/tegel/p-f050aad8.entry.js +0 -1
- package/dist/tegel/p-f4db0231.entry.js +0 -1
- package/dist/tegel/p-ffd827ef.entry.js +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
|
|
2
|
-
import {
|
|
3
|
-
import { d as defineCustomElement$
|
|
2
|
+
import { c as convertToString } from './p-a1181b1f.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './p-c65351ab.js';
|
|
4
|
+
import { d as defineCustomElement$1 } from './p-a2b7bdef.js';
|
|
4
5
|
|
|
5
6
|
const dropdownOptionCss = ":host{box-sizing:border-box;display:block;background-color:var(--tds-dropdown-option-background)}:host *{box-sizing:border-box}:host .dropdown-option{color:var(--tds-dropdown-option-color);border-bottom:1px solid var(--tds-dropdown-option-border);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);overflow-wrap:anywhere;transition:background-color var(--tds-motion-duration-fast-02) var(--tds-motion-easing-scania)}:host .dropdown-option.selected{background-color:var(--tds-dropdown-option-background-selected)}:host .dropdown-option.disabled{color:var(--tds-dropdown-option-color-disabled)}:host .dropdown-option button:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .dropdown-option button{all:unset;width:100%}:host .dropdown-option button.lg{padding:19px 0 20px}:host .dropdown-option button.md{padding:15px 0 16px}:host .dropdown-option button.sm{padding:11px 0 12px}:host .dropdown-option button.xs{padding:7px 0 8px}:host .dropdown-option button .single-select{display:flex;align-items:center;justify-content:space-between;padding:0 16px}:host .dropdown-option .multiselect{width:100%;height:100%}:host .dropdown-option .multiselect tds-checkbox{display:flex;height:100%;width:100%}:host .dropdown-option .multiselect tds-checkbox.lg{padding:15px 16px 16px}:host .dropdown-option .multiselect tds-checkbox.md{padding:11px 16px 12px}:host .dropdown-option .multiselect tds-checkbox.sm{padding:7px 16px 8px}:host .dropdown-option .multiselect tds-checkbox.xs{padding:7px 16px 8px}:host .dropdown-option:hover{background-color:var(--tds-dropdown-option-background-hover);cursor:pointer}:host .dropdown-option:hover.disabled{background-color:var(--tds-dropdown-option-background);cursor:not-allowed}:host([hidden]){display:none}";
|
|
6
7
|
const TdsDropdownOptionStyle0 = dropdownOptionCss;
|
|
@@ -13,22 +14,32 @@ const TdsDropdownOption = /*@__PURE__*/ proxyCustomElement(class TdsDropdownOpti
|
|
|
13
14
|
this.tdsSelect = createEvent(this, "tdsSelect", 6);
|
|
14
15
|
this.tdsFocus = createEvent(this, "tdsFocus", 6);
|
|
15
16
|
this.tdsBlur = createEvent(this, "tdsBlur", 6);
|
|
17
|
+
this.parentElement = null;
|
|
18
|
+
// @ts-ignore
|
|
19
|
+
// eslint-disable-next-line no-unused-vars,
|
|
20
|
+
this.label = '';
|
|
16
21
|
this.componentWillRender = () => {
|
|
22
|
+
var _a, _b, _c;
|
|
23
|
+
if (!this.host.parentElement) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
17
26
|
this.parentElement =
|
|
18
|
-
this.host.parentElement.tagName === 'TDS-DROPDOWN'
|
|
27
|
+
((_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.tagName) === 'TDS-DROPDOWN'
|
|
19
28
|
? this.host.parentElement
|
|
20
29
|
: this.host.getRootNode().host;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
if (this.parentElement) {
|
|
31
|
+
this.multiselect = (_b = this.parentElement.multiselect) !== null && _b !== void 0 ? _b : false;
|
|
32
|
+
this.size = this.parentElement.size || 'lg';
|
|
33
|
+
}
|
|
34
|
+
this.label = ((_c = this.host.textContent) === null || _c === void 0 ? void 0 : _c.trim()) || '';
|
|
24
35
|
};
|
|
25
36
|
this.handleSingleSelect = () => {
|
|
26
37
|
if (!this.disabled) {
|
|
27
38
|
this.selected = true;
|
|
28
|
-
this.parentElement.appendValue(this.
|
|
39
|
+
this.parentElement.appendValue(this.internalValue);
|
|
29
40
|
this.parentElement.close();
|
|
30
41
|
this.tdsSelect.emit({
|
|
31
|
-
value: this.
|
|
42
|
+
value: this.internalValue,
|
|
32
43
|
selected: this.selected,
|
|
33
44
|
});
|
|
34
45
|
}
|
|
@@ -36,18 +47,18 @@ const TdsDropdownOption = /*@__PURE__*/ proxyCustomElement(class TdsDropdownOpti
|
|
|
36
47
|
this.handleMultiselect = (event) => {
|
|
37
48
|
if (!this.disabled) {
|
|
38
49
|
if (event.detail.checked) {
|
|
39
|
-
this.parentElement.appendValue(this.
|
|
50
|
+
this.parentElement.appendValue(this.internalValue);
|
|
40
51
|
this.selected = true;
|
|
41
52
|
this.tdsSelect.emit({
|
|
42
|
-
value: this.
|
|
53
|
+
value: this.internalValue,
|
|
43
54
|
selected: this.selected,
|
|
44
55
|
});
|
|
45
56
|
}
|
|
46
57
|
else {
|
|
47
|
-
this.parentElement.removeValue(this.
|
|
58
|
+
this.parentElement.removeValue(this.internalValue);
|
|
48
59
|
this.selected = false;
|
|
49
60
|
this.tdsSelect.emit({
|
|
50
|
-
value: this.
|
|
61
|
+
value: this.internalValue,
|
|
51
62
|
selected: this.selected,
|
|
52
63
|
});
|
|
53
64
|
}
|
|
@@ -61,17 +72,24 @@ const TdsDropdownOption = /*@__PURE__*/ proxyCustomElement(class TdsDropdownOpti
|
|
|
61
72
|
this.tdsBlur.emit(event);
|
|
62
73
|
};
|
|
63
74
|
this.value = undefined;
|
|
75
|
+
this.internalValue = undefined;
|
|
64
76
|
this.disabled = false;
|
|
65
77
|
this.selected = false;
|
|
66
|
-
this.multiselect =
|
|
78
|
+
this.multiselect = false;
|
|
67
79
|
this.size = 'lg';
|
|
68
80
|
}
|
|
69
81
|
/** Method to select/deselect an option. */
|
|
70
82
|
async setSelected(selected) {
|
|
71
83
|
this.selected = selected;
|
|
72
84
|
}
|
|
85
|
+
valueWatcher(newValue) {
|
|
86
|
+
this.internalValue = convertToString(newValue);
|
|
87
|
+
}
|
|
88
|
+
componentWillLoad() {
|
|
89
|
+
this.internalValue = convertToString(this.value);
|
|
90
|
+
}
|
|
73
91
|
render() {
|
|
74
|
-
return (h(Host, { key: '
|
|
92
|
+
return (h(Host, { key: 'af1229553e89c02aca1d7c11bbc80acd25ce44b5', role: "option", "aria-disabled": this.disabled, "aria-selected": this.selected }, h("div", { key: 'c93eb33d1864028690ab981c0f676f03993265c4', class: `dropdown-option
|
|
75
93
|
${this.size}
|
|
76
94
|
${this.selected ? 'selected' : ''}
|
|
77
95
|
${this.disabled ? 'disabled' : ''}
|
|
@@ -89,14 +107,20 @@ const TdsDropdownOption = /*@__PURE__*/ proxyCustomElement(class TdsDropdownOpti
|
|
|
89
107
|
}
|
|
90
108
|
static get delegatesFocus() { return true; }
|
|
91
109
|
get host() { return this; }
|
|
110
|
+
static get watchers() { return {
|
|
111
|
+
"value": ["valueWatcher"]
|
|
112
|
+
}; }
|
|
92
113
|
static get style() { return TdsDropdownOptionStyle0; }
|
|
93
114
|
}, [17, "tds-dropdown-option", {
|
|
94
|
-
"value": [
|
|
115
|
+
"value": [8],
|
|
95
116
|
"disabled": [4],
|
|
117
|
+
"internalValue": [32],
|
|
96
118
|
"selected": [32],
|
|
97
119
|
"multiselect": [32],
|
|
98
120
|
"size": [32],
|
|
99
121
|
"setSelected": [64]
|
|
122
|
+
}, undefined, {
|
|
123
|
+
"value": ["valueWatcher"]
|
|
100
124
|
}]);
|
|
101
125
|
function defineCustomElement() {
|
|
102
126
|
if (typeof customElements === "undefined") {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Converts a value (string or number) to string
|
|
3
|
+
* @param value - The value to convert
|
|
4
|
+
* @returns The string representation of the value, or empty string if null/undefined
|
|
5
|
+
*/
|
|
6
|
+
const convertToString = (value) => {
|
|
7
|
+
if (value === null || value === undefined)
|
|
8
|
+
return '';
|
|
9
|
+
return value.toString();
|
|
10
|
+
};
|
|
11
|
+
// Optional: If we need array conversion often
|
|
12
|
+
const convertArrayToStrings = (values) => {
|
|
13
|
+
return values.map((value) => convertToString(value));
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { convertArrayToStrings as a, convertToString as c };
|
|
@@ -36,7 +36,7 @@ const Icon = /*@__PURE__*/ proxyCustomElement(class Icon extends H {
|
|
|
36
36
|
this.arrayOfIcons = [...this.arrayOfIcons];
|
|
37
37
|
}
|
|
38
38
|
render() {
|
|
39
|
-
return h(Host, { key: '
|
|
39
|
+
return h(Host, { key: '7501bac4e182e5b44030b140b4c2c68e0fd2522b' }, this.setIcons());
|
|
40
40
|
}
|
|
41
41
|
static get style() { return TdsIconStyle0; }
|
|
42
42
|
}, [1, "tds-icon", {
|
|
@@ -57,11 +57,11 @@ const TdsCheckbox = /*@__PURE__*/ proxyCustomElement(class TdsCheckbox extends H
|
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
|
-
return (h("div", { key: '
|
|
60
|
+
return (h("div", { key: '7362e4e69df24e5615f9f23fe8bc9b72b29cf525', class: "tds-checkbox" }, h("input", { key: '43f2b6070677645ad7bc9c47e2bd65df43735eff',
|
|
61
61
|
// eslint-disable-next-line no-return-assign
|
|
62
62
|
ref: (inputElement) => (this.inputElement = inputElement), indeterminate: this.indeterminate, "aria-checked": this.checked, "aria-required": this.required, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), required: this.required, type: "checkbox", name: this.name, value: this.value, id: this.checkboxId, checked: this.checked, disabled: this.disabled, onFocus: (event) => this.handleFocus(event), onBlur: (event) => this.handleBlur(event), onChange: () => {
|
|
63
63
|
this.handleChange();
|
|
64
|
-
} }), h("label", { key: '
|
|
64
|
+
} }), h("label", { key: 'caaa642c85a0d2913441c0e7baa3ca28e9b3a7a8', htmlFor: this.checkboxId }, h("slot", { key: '12d411bbcd3baa9ed43cec5d4d25a1ad4c982ce5', name: "label" }))));
|
|
65
65
|
}
|
|
66
66
|
get host() { return this; }
|
|
67
67
|
static get watchers() { return {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
|
|
2
2
|
import { d as dfs } from './p-52bf0fdf.js';
|
|
3
|
-
import { d as defineCustomElement$1 } from './p-
|
|
3
|
+
import { d as defineCustomElement$1 } from './p-e49a0ceb.js';
|
|
4
4
|
|
|
5
5
|
const headerItemCss = ":host ::slotted(button),:host ::slotted(a){all:unset;box-sizing:border-box;background-color:var(--tds-header-background);border-right:1px solid var(--tds-header--basic-element-border);width:100%;height:100%;cursor:pointer;padding:0 24px;display:flex;align-items:center;gap:8px}:host ::slotted(button) *,:host ::slotted(a) *{box-sizing:border-box}:host ::slotted(button:hover),:host ::slotted(a:hover){background-color:var(--tds-header-item-hover)}:host ::slotted(button:focus-visible),:host ::slotted(a:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .component-active ::slotted(button),:host .component-active ::slotted(a){background-color:var(--tds-header--basic-element-background-open);color:var(--tds-header-nav-item-dropdown-opened-color);border-color:var(--tds-header--basic-element-border-open)}:host .component-selected:not(.component-active) ::slotted(button),:host .component-selected:not(.component-active) ::slotted(a){background-color:var(--tds-header--basic-element-background-selected);padding-top:4px;border-bottom-style:solid;border-bottom-width:4px;border-bottom-color:var(--tds-nav-item-border-color-active)}";
|
|
6
6
|
const TdsHeaderItemStyle0 = headerItemCss;
|
|
@@ -36,16 +36,53 @@ const TdsHeaderItem = /*@__PURE__*/ proxyCustomElement(class TdsHeaderItem exten
|
|
|
36
36
|
this.updateSlotted(isImage, addImageClass);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Read the native "order" attribute on the host and update the CSS order accordingly.
|
|
41
|
+
* If the attribute "order" has the value "end", the order is set to 1. Otherwise, 0.
|
|
42
|
+
*/
|
|
43
|
+
updateOrder() {
|
|
44
|
+
const orderValue = this.host.getAttribute('order');
|
|
45
|
+
switch (orderValue) {
|
|
46
|
+
case 'end':
|
|
47
|
+
this.host.style.order = '1';
|
|
48
|
+
break;
|
|
49
|
+
case 'start':
|
|
50
|
+
case null:
|
|
51
|
+
default:
|
|
52
|
+
this.host.style.order = '0';
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
39
56
|
componentDidLoad() {
|
|
40
57
|
this.slotEl = this.host.shadowRoot.querySelector('slot');
|
|
41
58
|
this.updateSlottedElements();
|
|
42
59
|
this.slotEl.addEventListener('slotchange', this.updateSlottedElements);
|
|
60
|
+
// Set the order on initial load.
|
|
61
|
+
this.updateOrder();
|
|
62
|
+
// Create a MutationObserver to listen for changes on the "order" attribute.
|
|
63
|
+
this.mutationObserver = new MutationObserver((mutations) => {
|
|
64
|
+
mutations.forEach((mutation) => {
|
|
65
|
+
if (mutation.type === 'attributes' && mutation.attributeName === 'order') {
|
|
66
|
+
this.updateOrder();
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
// Start observing the host element for attribute changes (specifically "order").
|
|
71
|
+
this.mutationObserver.observe(this.host, {
|
|
72
|
+
attributes: true,
|
|
73
|
+
attributeFilter: ['order'],
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
disconnectedCallback() {
|
|
77
|
+
if (this.mutationObserver) {
|
|
78
|
+
this.mutationObserver.disconnect();
|
|
79
|
+
}
|
|
43
80
|
}
|
|
44
81
|
render() {
|
|
45
|
-
return (h(Host, { key: '
|
|
82
|
+
return (h(Host, { key: '04494c94f296aeaed5dc491c2ebf31450e15efc1' }, h("tds-core-header-item", { key: '8a699bc7134795ca9670a0f21a688dc3efadd51a', class: {
|
|
46
83
|
'component-active': this.active,
|
|
47
84
|
'component-selected': this.selected,
|
|
48
|
-
} }, h("slot", { key: '
|
|
85
|
+
} }, h("slot", { key: 'd0c443c281df9015bbdbffd1b56035d2c7e0cca2' }))));
|
|
49
86
|
}
|
|
50
87
|
get host() { return this; }
|
|
51
88
|
static get style() { return TdsHeaderItemStyle0; }
|
|
@@ -10,7 +10,7 @@ const TdsCoreHeaderItem = /*@__PURE__*/ proxyCustomElement(class TdsCoreHeaderIt
|
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '6d8190cb3f2b389127bef36f6fa72da8d9486e5a' }, h("div", { key: 'f254e9b56d7cd61d0e9ee0d63de39cbaa9d63935', class: "item" }, h("slot", { key: '4c4dcb455f9964ad3310e269b5d00098e8d8cea9' }))));
|
|
14
14
|
}
|
|
15
15
|
static get style() { return TdsCoreHeaderItemStyle0; }
|
|
16
16
|
}, [1, "tds-core-header-item"]);
|
|
@@ -11,7 +11,7 @@ const Divider = /*@__PURE__*/ proxyCustomElement(class Divider extends H {
|
|
|
11
11
|
this.orientation = 'horizontal';
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: 'da07834ddc86e611803422b2a756c76109034fbf', role: "separator", "aria-orientation": this.orientation === 'vertical' ? 'vertical' : undefined }, h("div", { key: '90671868ed03281cfbd821cdb7057d4e79d790c3', class: `divider ${this.orientation}` })));
|
|
15
15
|
}
|
|
16
16
|
static get style() { return TdsDividerStyle0; }
|
|
17
17
|
}, [1, "tds-divider", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
|
|
2
2
|
import { g as generateUniqueId } from './p-11648030.js';
|
|
3
|
-
import { d as defineCustomElement$2 } from './p-
|
|
3
|
+
import { d as defineCustomElement$2 } from './p-a2b7bdef.js';
|
|
4
4
|
|
|
5
5
|
const accordionItemCss = ".tds-accordion-item{box-sizing:border-box;list-style:none;color:var(--tds-accordion-color);position:relative;border-top:1px solid var(--tds-accordion-border)}.tds-accordion-item *{box-sizing:border-box}.tds-accordion-item button.tds-accordion-header-icon-start,.tds-accordion-item button.tds-accordion-header-icon-end{all:unset}.tds-accordion-item .tds-accordion-header-icon-start,.tds-accordion-item .tds-accordion-header-icon-end,.tds-accordion-item button.tds-accordion-header-icon-start,.tds-accordion-item button.tds-accordion-header-icon-end{box-sizing:border-box;cursor:pointer;display:flex;align-items:center;width:100%;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);padding:var(--tds-spacing-element-16);background-color:var(--tds-accordion-background)}.tds-accordion-item .tds-accordion-header-icon-start *,.tds-accordion-item .tds-accordion-header-icon-end *,.tds-accordion-item button.tds-accordion-header-icon-start *,.tds-accordion-item button.tds-accordion-header-icon-end *{box-sizing:border-box}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon,.tds-accordion-item button.tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item button.tds-accordion-header-icon-end .tds-accordion-icon{transform-origin:center;transition:transform 0.15s ease-in-out;color:var(--tds-accordion-icon-color)}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon>tds-icon,.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon>tds-icon,.tds-accordion-item button.tds-accordion-header-icon-start .tds-accordion-icon>tds-icon,.tds-accordion-item button.tds-accordion-header-icon-end .tds-accordion-icon>tds-icon{display:block}.tds-accordion-item .tds-accordion-title{flex-grow:2}.tds-accordion-item .tds-accordion-panel{cursor:default;padding:var(--tds-spacing-element-8) var(--tds-spacing-layout-64) var(--tds-spacing-element-32) var(--tds-spacing-element-16);display:none;font:var(--tds-detail-03);letter-spacing:var(--tds-detail-03-ls)}.tds-accordion-item .tds-accordion-panel p{margin:0;padding:0}.tds-accordion-item .tds-accordion-panel--padding-reset{padding-right:var(--tds-spacing-element-16)}.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon{margin:0 0 0 var(--tds-spacing-element-32)}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-title{order:1}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon{order:0;margin:0 var(--tds-spacing-element-16) 0 0}.tds-accordion-item.disabled,.tds-accordion-item.disabled .tds-accordion-header-icon-end,.tds-accordion-item.disabled .tds-accordion-header-icon-start,.tds-accordion-item.disabled .tds-accordion-panel{color:var(--tds-accordion-color-disabled);cursor:not-allowed}.tds-accordion-item.disabled .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-header-icon-end .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-panel .tds-accordion-icon{color:var(--tds-accordion-color-disabled)}.tds-accordion-item.disabled:hover,.tds-accordion-item.disabled:hover *,.tds-accordion-item.disabled:focus,.tds-accordion-item.disabled:focus *,.tds-accordion-item.disabled:active,.tds-accordion-item.disabled:active *,.tds-accordion-item.disabled.active,.tds-accordion-item.disabled.active *{cursor:not-allowed}.tds-accordion-item.disabled:hover .tds-accordion-header-icon-start,.tds-accordion-item.disabled:hover .tds-accordion-header-icon-end,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-start,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-end,.tds-accordion-item.disabled:active .tds-accordion-header-icon-start,.tds-accordion-item.disabled:active .tds-accordion-header-icon-end,.tds-accordion-item.disabled.active .tds-accordion-header-icon-start,.tds-accordion-item.disabled.active .tds-accordion-header-icon-end{background-color:var(--tds-accordion-bg);outline:none;pointer-events:none}.tds-accordion-item.disabled:hover .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:hover .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled:active .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:active .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled.active .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled.active .tds-accordion-header-icon-end::after{border-color:transparent}.tds-accordion-item.expanded .tds-accordion-panel{display:block;padding-bottom:31px}.tds-accordion-item.expanded .tds-accordion-icon{transform:rotate(180deg)}.tds-accordion-item.expanded .tds-accordion-header-icon-end .tds-accordion-icon{margin-right:0;margin-left:var(--tds-spacing-element-32)}.tds-accordion-item.expanded .tds-accordion-header-icon-start .tds-accordion-icon{margin-left:0;margin-right:var(--tds-spacing-element-16)}.tds-accordion-item:focus{border-top:1px solid var(--tds-accordion-border-focus)}.tds-accordion-item[disabled=true]:focus{border-color:var(--tds-accordion-border)}:host(:focus) .tds-accordion-item{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host(:focus) .tds-accordion-item .tds-accordion-header-icon-start,:host(:focus) .tds-accordion-item .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-focus);outline:none}:host(:hover) .tds-accordion-header-icon-start,:host(:hover) .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-hover)}:host(:active) .tds-accordion-header-icon-start,:host(:active) .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-active);outline:none}";
|
|
6
6
|
const TdsAccordionItemStyle0 = accordionItemCss;
|
|
@@ -11,6 +11,8 @@ const TdsBadge$1 = /*@__PURE__*/ proxyCustomElement(class TdsBadge extends H {
|
|
|
11
11
|
this.value = '';
|
|
12
12
|
this.hidden = false;
|
|
13
13
|
this.size = 'lg';
|
|
14
|
+
this.tdsAriaLive = 'polite';
|
|
15
|
+
this.tdsAriaLabel = '';
|
|
14
16
|
this.shape = '';
|
|
15
17
|
this.text = '';
|
|
16
18
|
}
|
|
@@ -23,24 +25,18 @@ const TdsBadge$1 = /*@__PURE__*/ proxyCustomElement(class TdsBadge extends H {
|
|
|
23
25
|
checkProps() {
|
|
24
26
|
const valueAsNumber = parseInt(this.value);
|
|
25
27
|
if (!Number.isNaN(valueAsNumber) && this.size !== 'sm') {
|
|
26
|
-
this.shape = this.value.
|
|
28
|
+
this.shape = this.value.length >= 2 ? 'pill' : '';
|
|
27
29
|
this.size = 'lg';
|
|
28
30
|
this.text = valueAsNumber.toString().length >= 3 ? '99+' : valueAsNumber.toString();
|
|
29
31
|
}
|
|
30
|
-
else {
|
|
31
|
-
// eslint-disable-next-line no-unused-expressions, @typescript-eslint/no-unused-expressions
|
|
32
|
-
if (this.value !== '' && this.size !== 'sm') {
|
|
33
|
-
console.warn('The provided value is either empty or string, please provide value as number.');
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
32
|
}
|
|
37
33
|
render() {
|
|
38
|
-
return (h("host", { key: '
|
|
34
|
+
return (h("host", { key: '1bb4a6deafad993e87c934ae2e1fac7d0fa94306', role: "status", class: {
|
|
39
35
|
'tds-badge': true,
|
|
40
36
|
[`tds-badge-${this.size}`]: true,
|
|
41
37
|
'tds-badge-pill': this.shape === 'pill',
|
|
42
38
|
'tds-badge-hidden': this.hidden,
|
|
43
|
-
} }, h("div", { key: '
|
|
39
|
+
}, "aria-label": this.tdsAriaLabel, "aria-live": this.tdsAriaLive }, h("div", { key: '3a32a1394cebceb7600d39508ab2dd5d91087ead', class: "tds-badge-text", "aria-hidden": "true" }, this.text)));
|
|
44
40
|
}
|
|
45
41
|
static get watchers() { return {
|
|
46
42
|
"value": ["watchProps"],
|
|
@@ -51,6 +47,8 @@ const TdsBadge$1 = /*@__PURE__*/ proxyCustomElement(class TdsBadge extends H {
|
|
|
51
47
|
"value": [1],
|
|
52
48
|
"hidden": [516],
|
|
53
49
|
"size": [1],
|
|
50
|
+
"tdsAriaLive": [1, "tds-aria-live"],
|
|
51
|
+
"tdsAriaLabel": [32],
|
|
54
52
|
"shape": [32],
|
|
55
53
|
"text": [32]
|
|
56
54
|
}, undefined, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
|
|
2
2
|
import { g as generateUniqueId } from './p-11648030.js';
|
|
3
3
|
import { h as hasSlot } from './p-ae110fc2.js';
|
|
4
|
-
import { d as defineCustomElement$2 } from './p-
|
|
4
|
+
import { d as defineCustomElement$2 } from './p-a2b7bdef.js';
|
|
5
5
|
|
|
6
6
|
const bannerCss = ":host(.hide){display:none;visibility:hidden}:host(.error){background-color:var(--tds-banner-background-error)}:host(.information){background-color:var(--tds-banner-background-info)}:host{display:flex;background-color:var(--tds-banner-background-default);z-index:400;padding-left:16px}:host .banner-icon{padding-left:4px;padding-top:14px;padding-right:12px;color:var(--tds-banner-prefix-default-color)}:host .banner-icon.error{color:var(--tds-banner-prefix-error-color)}:host .banner-icon.information{color:var(--tds-banner-prefix-info-color)}:host .content{color:var(--tds-banner-text-color);display:flex;flex-direction:column;flex-grow:1;padding:16px 0}:host .content.no-icon{padding-left:16px}:host .header-subheader{display:flex;flex-direction:column;gap:4px}:host .header,:host slot[name=header]{font:var(--tds-headline-06);letter-spacing:var(--tds-headline-06-ls)}:host .subheader,:host slot[name=subheader]{display:block;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}:host slot[name=actions]::slotted(*){display:block;width:fit-content;margin-top:16px}:host .banner-close{color:var(--tds-banner-x-color)}:host .banner-close button{padding-right:16px;padding-top:14px;background-color:transparent;border:none;color:var(--tds-banner-x-color)}:host .banner-close button:hover{cursor:pointer}:host .banner-close button:focus-visible{outline:none}:host .banner-close button:focus-visible tds-icon{outline:2px solid var(--tds-blue-400);outline-offset:-2px}";
|
|
7
7
|
const TdsBannerStyle0 = bannerCss;
|
|
@@ -26,6 +26,7 @@ const TdsBanner$1 = /*@__PURE__*/ proxyCustomElement(class TdsBanner extends H {
|
|
|
26
26
|
this.variant = 'default';
|
|
27
27
|
this.bannerId = generateUniqueId();
|
|
28
28
|
this.hidden = false;
|
|
29
|
+
this.roleType = 'banner';
|
|
29
30
|
}
|
|
30
31
|
/** Hides the Banner. */
|
|
31
32
|
async hideBanner() {
|
|
@@ -47,13 +48,11 @@ const TdsBanner$1 = /*@__PURE__*/ proxyCustomElement(class TdsBanner extends H {
|
|
|
47
48
|
const usesHeaderSlot = hasSlot('subheader', this.host);
|
|
48
49
|
const usesSubheaderSlot = hasSlot('subheader', this.host);
|
|
49
50
|
const usesActionsSlot = hasSlot('actions', this.host);
|
|
50
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '75cdf09f84a1dac7638a4788eb48c46bca25df4e', role: this.roleType, "aria-hidden": `${this.hidden}`, "aria-live": this.roleType === 'alert' ? 'assertive' : 'polite', "aria-atomic": this.host.getAttribute('aria-atomic'), class: {
|
|
51
52
|
[this.variant]: true,
|
|
52
53
|
hide: this.hidden,
|
|
53
54
|
show: !this.hidden,
|
|
54
|
-
} }, this.icon && (h("div", { key: '
|
|
55
|
-
this.handleClose();
|
|
56
|
-
} }, h("tds-icon", { key: '0a97ab51a7c1f3cff24cb348903c0e32cd5c3975', name: "cross", size: "20px" })))));
|
|
55
|
+
} }, this.icon && (h("div", { key: 'fbc4f8da1b9ff964b676644167543cdbee176f42', class: `banner-icon ${this.variant}` }, h("tds-icon", { key: '26030bb557b9577084a54e2ef890138a2e77a798', name: this.icon, size: "20px", svgTitle: this.icon }))), h("div", { key: '94b8134ce4407f3a1190e35948d030734d76d7e5', class: "content" }, h("div", { key: '4352ab96dfa32e26bc99b0f0c7fec0393c15d784', class: "header-subheader" }, this.header && h("div", { key: 'c31647bdaaeccc5209630da0e20024d1b93f55e9', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: 'ad0ab42576026a5d563559150197bf2fcb6de0e0', name: "header" }), this.subheader && h("div", { key: '20c64e0e58e582d8c5a2cb384c73176864ad650f', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: 'b43635b5d0c36e54562676f57f2296290d04e087', name: "subheader" })), usesActionsSlot && h("slot", { key: '37613fb7d8b745aac05b9878f2e2c195bcca6453', name: "actions" })), h("div", { key: '670d386ded1892d4db0e462b4a34a9de7a559d89', class: `banner-close` }, h("button", { key: 'bacd3ab747cbdfbcc61732b13385506e17691ab6', "aria-label": "Close banner", onClick: this.handleClose }, h("tds-icon", { key: '7e508cf4500350cc74e24fa7338b98134560ce31', name: "cross", size: "20px", svgTitle: "Close" })))));
|
|
57
56
|
}
|
|
58
57
|
get host() { return this; }
|
|
59
58
|
static get style() { return TdsBannerStyle0; }
|
|
@@ -64,6 +63,7 @@ const TdsBanner$1 = /*@__PURE__*/ proxyCustomElement(class TdsBanner extends H {
|
|
|
64
63
|
"variant": [1],
|
|
65
64
|
"bannerId": [1, "banner-id"],
|
|
66
65
|
"hidden": [516],
|
|
66
|
+
"roleType": [1, "role-type"],
|
|
67
67
|
"hideBanner": [64],
|
|
68
68
|
"showBanner": [64]
|
|
69
69
|
}]);
|
|
@@ -9,6 +9,7 @@ const TdsBlock$1 = /*@__PURE__*/ proxyCustomElement(class TdsBlock extends H {
|
|
|
9
9
|
this.__registerHost();
|
|
10
10
|
this.__attachShadow();
|
|
11
11
|
this.modeVariant = null;
|
|
12
|
+
this.componentTag = 'div';
|
|
12
13
|
}
|
|
13
14
|
getNestingLevel() {
|
|
14
15
|
let level = 0;
|
|
@@ -22,6 +23,7 @@ const TdsBlock$1 = /*@__PURE__*/ proxyCustomElement(class TdsBlock extends H {
|
|
|
22
23
|
return level;
|
|
23
24
|
}
|
|
24
25
|
render() {
|
|
26
|
+
const TagType = this.componentTag;
|
|
25
27
|
const nestingLevel = this.getNestingLevel();
|
|
26
28
|
let evenOddClass = '';
|
|
27
29
|
if (this.modeVariant === null) {
|
|
@@ -32,12 +34,13 @@ const TdsBlock$1 = /*@__PURE__*/ proxyCustomElement(class TdsBlock extends H {
|
|
|
32
34
|
evenOddClass = 'tds-block-odd';
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
|
-
return (h(
|
|
37
|
+
return (h(TagType, { key: '82ac7d3a746ea2fafafd81e5bcbb1d4c0d854ca2', class: `tds-block ${evenOddClass} ${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("slot", { key: '6e3930c8b38ac92eb26a6080e16698352865afe8' })));
|
|
36
38
|
}
|
|
37
39
|
get host() { return this; }
|
|
38
40
|
static get style() { return TdsBlockStyle0; }
|
|
39
41
|
}, [1, "tds-block", {
|
|
40
|
-
"modeVariant": [1, "mode-variant"]
|
|
42
|
+
"modeVariant": [1, "mode-variant"],
|
|
43
|
+
"componentTag": [1, "component-tag"]
|
|
41
44
|
}]);
|
|
42
45
|
function defineCustomElement$1() {
|
|
43
46
|
if (typeof customElements === "undefined") {
|
|
@@ -60,13 +60,16 @@ const TdsTableBodyCell = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyCell
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
connectedCallback() {
|
|
63
|
+
var _a;
|
|
63
64
|
this.tableEl = this.host.closest('tds-table');
|
|
64
|
-
this.tableId = this.tableEl.tableId;
|
|
65
|
+
this.tableId = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.tableId;
|
|
65
66
|
}
|
|
66
67
|
componentWillLoad() {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
if (this.tableEl) {
|
|
69
|
+
relevantTableProps.forEach((tablePropName) => {
|
|
70
|
+
this[tablePropName] = this.tableEl[tablePropName];
|
|
71
|
+
});
|
|
72
|
+
}
|
|
70
73
|
if (this.textAlign) {
|
|
71
74
|
this.textAlignState = this.textAlign;
|
|
72
75
|
}
|
|
@@ -84,13 +87,13 @@ const TdsTableBodyCell = /*@__PURE__*/ proxyCustomElement(class TdsTableBodyCell
|
|
|
84
87
|
// Conditionally set padding style
|
|
85
88
|
padding: paddingStyle,
|
|
86
89
|
};
|
|
87
|
-
return (h(Host, { key: '
|
|
90
|
+
return (h(Host, { key: '1a20de405d23d807c9584791793ecc271354ef56', class: {
|
|
88
91
|
'tds-table__body-cell': true,
|
|
89
92
|
'tds-table__body-cell--hover': this.activeSorting,
|
|
90
93
|
'tds-table__compact': this.compactDesign,
|
|
91
94
|
'tds-table--divider': this.verticalDividers,
|
|
92
95
|
'tds-table--no-min-width': this.noMinWidth,
|
|
93
|
-
}, style: dynamicStyles }, this.cellValue, h("slot", { key: '
|
|
96
|
+
}, style: dynamicStyles }, this.cellValue, h("slot", { key: '0954fdb9b7ab354dd9321602b6d4045afc72fc1f' })));
|
|
94
97
|
}
|
|
95
98
|
get host() { return this; }
|
|
96
99
|
static get style() { return TdsBodyCellStyle0; }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { p as proxyCustomElement, H, h } from './p-28ef5186.js';
|
|
1
|
+
import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
|
|
2
2
|
|
|
3
|
-
const breadcrumbCss = "@charset \"UTF-8\"
|
|
3
|
+
const breadcrumbCss = "@charset \"UTF-8\";:host([role=listitem]) div ::slotted(*){color:var(--tds-breadcrumb-color);text-decoration:none}:host([role=listitem]) div:hover ::slotted(*){color:var(--tds-breadcrumb-color-hover);text-decoration:underline}:host([role=listitem]) div ::slotted(*:focus-visible){outline:2px solid var(--tds-blue-400);outline-offset:-2px;outline-offset:0}:host([role=listitem]) div.current ::slotted(*),:host([role=listitem]) div [aria-current=page] ::slotted(*){pointer-events:none;cursor:default;color:var(--tds-breadcrumb-color-current)}:host([role=listitem]) div.current:hover ::slotted(*),:host([role=listitem]) div [aria-current=page]:hover ::slotted(*){text-decoration:none;cursor:not-allowed}:host([role=listitem]) div::after{content:\"›\";color:var(--tds-breadcrumb-separator-color);margin-right:4px;margin-left:4px;display:inline-block;width:4px;height:8px}:host([role=listitem]) .current::after{display:none}";
|
|
4
4
|
const TdsBreadcrumbStyle0 = breadcrumbCss;
|
|
5
5
|
|
|
6
6
|
const TdsBreadcrumb$1 = /*@__PURE__*/ proxyCustomElement(class TdsBreadcrumb extends H {
|
|
@@ -11,7 +11,7 @@ const TdsBreadcrumb$1 = /*@__PURE__*/ proxyCustomElement(class TdsBreadcrumb ext
|
|
|
11
11
|
this.current = false;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(
|
|
14
|
+
return (h(Host, { key: 'eec4404abfba50f930de99d55150bfd38dac0d62', role: "listitem" }, h("div", Object.assign({ key: '37dab2315d9bd952f385dc58433e9cf9fd9411ca', class: { current: this.current } }, (this.current ? { 'aria-current': 'page' } : {})), h("slot", { key: '2abcee4e18ef900c088cc855e3a62fac56876366' }))));
|
|
15
15
|
}
|
|
16
16
|
static get style() { return TdsBreadcrumbStyle0; }
|
|
17
17
|
}, [1, "tds-breadcrumb", {
|
|
@@ -8,15 +8,23 @@ const TdsBreadcrumbs$1 = /*@__PURE__*/ proxyCustomElement(class TdsBreadcrumbs e
|
|
|
8
8
|
super();
|
|
9
9
|
this.__registerHost();
|
|
10
10
|
this.__attachShadow();
|
|
11
|
+
this.tdsAriaLabel = undefined;
|
|
12
|
+
}
|
|
13
|
+
connectedCallback() {
|
|
14
|
+
if (!this.tdsAriaLabel) {
|
|
15
|
+
console.warn('Tegel Breadcrumbs component: missing tdsAriaLabel prop');
|
|
16
|
+
}
|
|
11
17
|
}
|
|
12
18
|
render() {
|
|
13
19
|
var _a;
|
|
14
20
|
(_a = this.host.children[this.host.children.length - 1]) === null || _a === void 0 ? void 0 : _a.classList.add('last');
|
|
15
|
-
return (h("nav", { key: '
|
|
21
|
+
return (h("nav", { key: '68f54833d5a557a37e7a826c29bfe4a99b80fd70', "aria-label": this.tdsAriaLabel }, h("div", { key: '60188db3fa82f0f8a292f425f2d2f100cec8fa13', role: "list", class: "tds-breadcrumb" }, h("slot", { key: 'c3c6a50079d49fa1c6915df2f72f7a093051fb06' }))));
|
|
16
22
|
}
|
|
17
23
|
get host() { return this; }
|
|
18
24
|
static get style() { return TdsBreadcrumbsStyle0; }
|
|
19
|
-
}, [1, "tds-breadcrumbs"
|
|
25
|
+
}, [1, "tds-breadcrumbs", {
|
|
26
|
+
"tdsAriaLabel": [1, "tds-aria-label"]
|
|
27
|
+
}]);
|
|
20
28
|
function defineCustomElement$1() {
|
|
21
29
|
if (typeof customElements === "undefined") {
|
|
22
30
|
return;
|