@scania/tegel 1.29.0 → 1.30.0-beta-enhance-focus-dropdown.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-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-body-cell.cjs.entry.js +2 -2
- package/dist/cjs/tds-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +3 -3
- package/dist/cjs/tds-datetime.cjs.entry.js +9 -5
- package/dist/cjs/tds-divider.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +63 -15
- 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 +11 -3
- 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 +21 -3
- 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 +3 -3
- package/dist/cjs/tds-modal.cjs.entry.js +19 -7
- 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 +2 -2
- 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-side-menu.cjs.entry.js +4 -3
- package/dist/cjs/tds-slider.cjs.entry.js +36 -22
- package/dist/cjs/tds-spinner.cjs.entry.js +2 -2
- package/dist/cjs/tds-step.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +19 -1
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +8 -7
- package/dist/cjs/tds-table-body-row.cjs.entry.js +2 -2
- 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 +2 -2
- package/dist/cjs/tds-table-header.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +6 -2
- package/dist/cjs/tds-text-field.cjs.entry.js +5 -5
- 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 +2 -2
- package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +2 -2
- package/dist/collection/components/button/button.css +11 -11
- package/dist/collection/components/datetime/datetime.css +6 -3
- package/dist/collection/components/datetime/datetime.js +29 -7
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +1 -1
- package/dist/collection/components/dropdown/dropdown.js +62 -14
- 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 +2 -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 +19 -3
- package/dist/{components/p-9b40a24d.js → collection/components/icon/scaniaIconsArray.js} +246 -66
- package/dist/collection/components/icon/tratonIconsArray.js +32 -0
- package/dist/collection/components/link/link.js +2 -2
- package/dist/collection/components/message/message.js +3 -3
- package/dist/collection/components/modal/modal.js +19 -7
- 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-core/tds-popover-core.css +573 -12
- 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/side-menu/side-menu.js +4 -3
- package/dist/collection/components/slider/slider.js +36 -22
- package/dist/collection/components/spinner/spinner.css +1 -0
- 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 +2 -2
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +19 -1
- package/dist/collection/components/table/table-body-row/table-body-row.js +2 -2
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +26 -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 +29 -3
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +2 -2
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +24 -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 +5 -5
- 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 +2 -2
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/collection/types/ScaniaIcons.js +1 -0
- package/dist/collection/types/TratonIcons.js +1 -0
- package/dist/components/{p-ce28efb8.js → p-0f58e26f.js} +63 -15
- package/dist/components/p-405c5512.js +2098 -0
- package/dist/components/{p-8a483a61.js → p-6732b15a.js} +2 -2
- package/dist/components/{p-7dbc1182.js → p-6cdccb27.js} +3 -3
- package/dist/components/{p-9ba3c16e.js → p-7ee8b262.js} +2 -2
- package/dist/components/{p-74971a3e.js → p-84a20410.js} +2 -2
- package/dist/components/{p-da0800c1.js → p-877931c5.js} +1 -1
- package/dist/components/{p-3f2187a4.js → p-927cf777.js} +1 -1
- package/dist/components/{p-e1622f4a.js → p-9ad61cb5.js} +1 -1
- package/dist/components/{p-bff614d5.js → p-b609e7a7.js} +1 -1
- package/dist/components/{p-cb52e59b.js → p-c54d2efe.js} +3 -3
- package/dist/components/p-c715ab56.js +85 -0
- package/dist/components/{p-9336db16.js → p-d0cf68be.js} +1 -1
- package/dist/components/{p-76c8d381.js → p-e7d40d15.js} +3 -3
- package/dist/components/{p-f4c6f29b.js → p-ece91cb9.js} +4 -4
- package/dist/components/tds-accordion-item.js +3 -3
- package/dist/components/tds-banner.js +1 -1
- package/dist/components/tds-body-cell.js +2 -2
- package/dist/components/tds-button.js +1 -1
- package/dist/components/tds-card.js +1 -1
- package/dist/components/tds-core-header-item.js +1 -1
- package/dist/components/tds-datetime.js +12 -7
- 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 +13 -4
- 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 +4 -4
- package/dist/components/tds-modal.js +20 -8
- 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-side-menu.js +4 -3
- package/dist/components/tds-slider.js +37 -23
- package/dist/components/tds-spinner.js +2 -2
- package/dist/components/tds-step.js +2 -2
- package/dist/components/tds-table-body-input-wrapper.js +20 -2
- package/dist/components/tds-table-body-row-expandable.js +9 -7
- package/dist/components/tds-table-body-row.js +2 -2
- package/dist/components/tds-table-body.js +2 -2
- package/dist/components/tds-table-footer.js +6 -6
- package/dist/components/tds-table-header-input-wrapper.js +3 -3
- package/dist/components/tds-table-header.js +2 -2
- package/dist/components/tds-table-toolbar.js +8 -3
- package/dist/components/tds-text-field.js +6 -6
- package/dist/components/tds-textarea.js +6 -6
- package/dist/components/tds-toast.js +4 -4
- package/dist/components/tds-toggle.js +2 -2
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-accordion-item.entry.js +2 -2
- package/dist/esm/tds-body-cell.entry.js +2 -2
- package/dist/esm/tds-button.entry.js +1 -1
- package/dist/esm/tds-core-header-item_2.entry.js +3 -3
- package/dist/esm/tds-datetime.entry.js +9 -5
- package/dist/esm/tds-divider.entry.js +1 -1
- package/dist/esm/tds-dropdown_2.entry.js +63 -15
- 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 +11 -3
- 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 +22 -4
- 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 +3 -3
- package/dist/esm/tds-modal.entry.js +19 -7
- 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 +2 -2
- 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-side-menu.entry.js +4 -3
- package/dist/esm/tds-slider.entry.js +36 -22
- package/dist/esm/tds-spinner.entry.js +2 -2
- package/dist/esm/tds-step.entry.js +1 -1
- package/dist/esm/tds-table-body-input-wrapper.entry.js +19 -1
- package/dist/esm/tds-table-body-row-expandable.entry.js +8 -7
- package/dist/esm/tds-table-body-row.entry.js +2 -2
- 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 +2 -2
- package/dist/esm/tds-table-header.entry.js +2 -2
- package/dist/esm/tds-table-toolbar.entry.js +6 -2
- package/dist/esm/tds-text-field.entry.js +5 -5
- 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 +2 -2
- package/dist/esm/tds-tooltip.entry.js +2 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/{p-6c8b40f7.entry.js → p-051c9000.entry.js} +1 -1
- package/dist/tegel/{p-2deba066.entry.js → p-06d3490c.entry.js} +1 -1
- package/dist/tegel/{p-4cafd755.entry.js → p-0ca95c76.entry.js} +1 -1
- package/dist/tegel/p-0cfe8671.entry.js +1 -0
- package/dist/tegel/{p-27e64ae1.entry.js → p-1116da44.entry.js} +1 -1
- package/dist/tegel/{p-003184ea.entry.js → p-1336fb6c.entry.js} +1 -1
- package/dist/tegel/{p-646d1df4.entry.js → p-1bbef1a5.entry.js} +1 -1
- package/dist/tegel/{p-54ac3ec2.entry.js → p-2286d4c3.entry.js} +1 -1
- package/dist/tegel/p-22b6223e.entry.js +1 -0
- package/dist/tegel/p-23ea1922.entry.js +1 -0
- package/dist/tegel/p-26e8f033.entry.js +1 -0
- package/dist/tegel/{p-27777c26.entry.js → p-2774f177.entry.js} +1 -1
- package/dist/tegel/p-27c2f109.entry.js +1 -0
- package/dist/tegel/{p-7486e9f9.entry.js → p-29170339.entry.js} +1 -1
- package/dist/tegel/{p-97e88e6e.entry.js → p-2c56421f.entry.js} +1 -1
- package/dist/tegel/{p-e5e9bd0c.entry.js → p-2e1d2b49.entry.js} +1 -1
- package/dist/tegel/p-30c88c69.entry.js +1 -0
- package/dist/tegel/{p-4e8e7bcd.entry.js → p-3c51a017.entry.js} +1 -1
- package/dist/tegel/p-3ec01fb3.entry.js +1 -0
- package/dist/tegel/p-462a6049.entry.js +1 -0
- package/dist/tegel/p-46c9af0f.entry.js +1 -0
- package/dist/tegel/{p-4241afd6.entry.js → p-4bd0d41c.entry.js} +1 -1
- package/dist/tegel/p-503cea9d.entry.js +1 -0
- package/dist/tegel/p-5ade1970.entry.js +1 -0
- package/dist/tegel/{p-0e5c6384.entry.js → p-5bb01a99.entry.js} +1 -1
- package/dist/tegel/p-5bca9fe7.entry.js +1 -0
- package/dist/tegel/p-601a74ad.entry.js +1 -0
- package/dist/tegel/p-614cc097.entry.js +1 -0
- package/dist/tegel/{p-dfe4bb23.entry.js → p-6631ea34.entry.js} +1 -1
- package/dist/tegel/p-69a6a39d.entry.js +1 -0
- package/dist/tegel/p-6cdbdb4e.entry.js +1 -0
- package/dist/tegel/p-6eed8c31.entry.js +1 -0
- package/dist/tegel/p-760ab1ad.entry.js +1 -0
- package/dist/tegel/p-7caad569.entry.js +1 -0
- package/dist/tegel/{p-c0cbc9f5.entry.js → p-7cb9790d.entry.js} +1 -1
- package/dist/tegel/p-7d427dff.entry.js +1 -0
- package/dist/tegel/{p-2446dfb6.entry.js → p-87ba6285.entry.js} +1 -1
- package/dist/tegel/{p-c23a3f12.entry.js → p-9099d978.entry.js} +1 -1
- package/dist/tegel/p-90a97cc2.entry.js +1 -0
- package/dist/tegel/{p-319e992d.entry.js → p-98106799.entry.js} +1 -1
- package/dist/tegel/p-9899e52e.entry.js +1 -0
- package/dist/tegel/{p-87929060.entry.js → p-9d8bb017.entry.js} +1 -1
- package/dist/tegel/{p-33f1f60e.entry.js → p-a1262f8f.entry.js} +1 -1
- package/dist/tegel/{p-7ef50e7f.entry.js → p-a66a4a4e.entry.js} +1 -1
- package/dist/tegel/{p-354d3986.entry.js → p-a829417c.entry.js} +1 -1
- package/dist/tegel/{p-0c421cde.entry.js → p-a9253c3a.entry.js} +1 -1
- package/dist/tegel/{p-1286da6a.entry.js → p-ab103d0c.entry.js} +1 -1
- package/dist/tegel/{p-286f470e.entry.js → p-abad3489.entry.js} +1 -1
- package/dist/tegel/p-acdd29b8.entry.js +1 -0
- package/dist/tegel/{p-08ad6a21.entry.js → p-aec3e4cf.entry.js} +1 -1
- package/dist/tegel/p-b152840e.entry.js +1 -0
- package/dist/tegel/p-b7848493.entry.js +1 -0
- package/dist/tegel/p-b9603974.entry.js +1 -0
- package/dist/tegel/{p-e88b2128.entry.js → p-b994e7ac.entry.js} +1 -1
- package/dist/tegel/{p-58b928e5.entry.js → p-bbeb4e1b.entry.js} +1 -1
- package/dist/tegel/{p-2faeb483.entry.js → p-bcdf13e0.entry.js} +1 -1
- package/dist/tegel/{p-9f187848.entry.js → p-bd935506.entry.js} +1 -1
- package/dist/tegel/p-c3d91dfa.entry.js +1 -0
- package/dist/tegel/{p-918a3c1a.entry.js → p-d14500a1.entry.js} +1 -1
- package/dist/tegel/{p-7f2228be.entry.js → p-d29a777f.entry.js} +1 -1
- package/dist/tegel/{p-6b675e89.entry.js → p-d4891ce6.entry.js} +1 -1
- package/dist/tegel/p-d56f426f.entry.js +1 -0
- package/dist/tegel/{p-8a4837ae.entry.js → p-debd6adc.entry.js} +1 -1
- package/dist/tegel/p-e7a452a8.entry.js +1 -0
- package/dist/tegel/{p-a10b3a4a.entry.js → p-f4b5e80b.entry.js} +1 -1
- package/dist/tegel/p-f71c3fca.entry.js +1 -0
- package/dist/tegel/p-fbffe3aa.entry.js +1 -0
- package/dist/tegel/{p-faa512fd.entry.js → p-fc0ceca7.entry.js} +1 -1
- package/dist/tegel/tegel.css +4 -2
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/datetime/datetime.d.ts +3 -1
- package/dist/types/components/dropdown/dropdown.d.ts +1 -0
- package/dist/types/components/icon/icon.d.ts +3 -1
- package/dist/types/components/slider/slider.d.ts +1 -0
- package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +1 -0
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +2 -0
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +3 -0
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +2 -0
- package/dist/types/components.d.ts +34 -2
- package/dist/types/types/Icons.d.ts +3 -1
- package/dist/types/types/ScaniaIcons.d.ts +1 -0
- package/dist/types/types/TratonIcons.d.ts +1 -0
- package/package.json +6 -1
- package/dist/components/p-b0ca50a3.js +0 -2098
- package/dist/tegel/p-05da560e.entry.js +0 -1
- package/dist/tegel/p-0bd4fd5c.entry.js +0 -1
- package/dist/tegel/p-0e37277e.entry.js +0 -1
- package/dist/tegel/p-0fd8e378.entry.js +0 -1
- package/dist/tegel/p-1cda8fe6.entry.js +0 -1
- package/dist/tegel/p-2551fd5b.entry.js +0 -1
- package/dist/tegel/p-2fbf2fdb.entry.js +0 -1
- package/dist/tegel/p-304f5a5c.entry.js +0 -1
- package/dist/tegel/p-37e979b3.entry.js +0 -1
- package/dist/tegel/p-3c348fcb.entry.js +0 -1
- package/dist/tegel/p-4de2807c.entry.js +0 -1
- package/dist/tegel/p-5c8fd75e.entry.js +0 -1
- package/dist/tegel/p-63d2c1fe.entry.js +0 -1
- package/dist/tegel/p-66786ba0.entry.js +0 -1
- package/dist/tegel/p-8afeb375.entry.js +0 -1
- package/dist/tegel/p-8e9c6ef4.entry.js +0 -1
- package/dist/tegel/p-8f1aead7.entry.js +0 -1
- package/dist/tegel/p-981e6232.entry.js +0 -1
- package/dist/tegel/p-9858b0fe.entry.js +0 -1
- package/dist/tegel/p-9ef67795.entry.js +0 -1
- package/dist/tegel/p-a56ad3d8.entry.js +0 -1
- package/dist/tegel/p-ab00e6e4.entry.js +0 -1
- package/dist/tegel/p-b210d23c.entry.js +0 -1
- package/dist/tegel/p-ba51ab15.entry.js +0 -1
- package/dist/tegel/p-c163d44f.entry.js +0 -1
- package/dist/tegel/p-c1b7d773.entry.js +0 -1
- package/dist/tegel/p-ca32a270.entry.js +0 -1
- package/dist/tegel/p-ccbafacd.entry.js +0 -1
- package/dist/tegel/p-d38039b3.entry.js +0 -1
- package/dist/tegel/p-d515fcdb.entry.js +0 -1
- package/dist/tegel/p-eff1d877.entry.js +0 -1
|
@@ -31,7 +31,7 @@ export class TdsTableHeaderCell {
|
|
|
31
31
|
};
|
|
32
32
|
this.headerCellContent = () => {
|
|
33
33
|
if (this.sortable) {
|
|
34
|
-
return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick(), style: { justifyContent: this.textAlignState } }, h("span", { class: "tds-table__header-button-text" }, this.cellValue, h("slot", null)), this.sortingDirection === undefined && (h("tds-icon", { class: "tds-table__header-button-icon", name: "sorting", size: "16px" })), this.sortingDirection && ['asc', 'desc'].includes(this.sortingDirection) && (h("tds-icon", { class: `tds-table__header-button-icon ${this.sortingDirection === 'asc' ? 'tds-table__header-button-icon--rotate' : ''}`, name: "arrow_down", size: "16px" }))));
|
|
34
|
+
return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick(), style: { justifyContent: this.textAlignState }, "aria-label": this.tdsAriaLabelSortButton }, h("span", { class: "tds-table__header-button-text" }, this.cellValue, h("slot", null)), this.sortingDirection === undefined && (h("tds-icon", { svgTitle: "sorting", class: "tds-table__header-button-icon", name: "sorting", size: "16px" })), this.sortingDirection && ['asc', 'desc'].includes(this.sortingDirection) && (h("tds-icon", { svgTitle: "arrow down", class: `tds-table__header-button-icon ${this.sortingDirection === 'asc' ? 'tds-table__header-button-icon--rotate' : ''}`, name: "arrow_down", size: "16px" }))));
|
|
35
35
|
}
|
|
36
36
|
return (h("p", { class: {
|
|
37
37
|
'tds-table__header-text': true,
|
|
@@ -50,6 +50,7 @@ export class TdsTableHeaderCell {
|
|
|
50
50
|
this.sortable = false;
|
|
51
51
|
this.textAlign = 'left';
|
|
52
52
|
this.disablePadding = false;
|
|
53
|
+
this.tdsAriaLabelSortButton = '';
|
|
53
54
|
this.textAlignState = undefined;
|
|
54
55
|
this.sortingDirection = undefined;
|
|
55
56
|
this.sortedByMyKey = false;
|
|
@@ -104,8 +105,15 @@ export class TdsTableHeaderCell {
|
|
|
104
105
|
this.enableToolbarDesign =
|
|
105
106
|
this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
|
|
106
107
|
}
|
|
108
|
+
getAriaSort() {
|
|
109
|
+
if (this.sortingDirection === 'asc')
|
|
110
|
+
return 'ascending';
|
|
111
|
+
if (this.sortingDirection === 'desc')
|
|
112
|
+
return 'descending';
|
|
113
|
+
return 'none';
|
|
114
|
+
}
|
|
107
115
|
render() {
|
|
108
|
-
return (h(Host, { key: '
|
|
116
|
+
return (h(Host, { key: 'c832982801653ad4ed4be858fa88f6d3d3de02ef', class: {
|
|
109
117
|
'tds-table__header-cell': true,
|
|
110
118
|
'tds-table__header-cell--sortable': this.sortable,
|
|
111
119
|
'tds-table__header-cell--is-sorted': this.sortedByMyKey,
|
|
@@ -116,7 +124,7 @@ export class TdsTableHeaderCell {
|
|
|
116
124
|
'tds-table--extra-column': this.multiselect || this.expandableRows,
|
|
117
125
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
118
126
|
'tds-table--no-padding': this.disablePadding,
|
|
119
|
-
}, style: { minWidth: this.customWidth }, onMouseOver: () => this.onHeadCellHover(this.cellKey), onMouseLeave: () => this.onHeadCellHover('') }, this.headerCellContent()));
|
|
127
|
+
}, style: { minWidth: this.customWidth }, onMouseOver: () => this.onHeadCellHover(this.cellKey), onMouseLeave: () => this.onHeadCellHover(''), role: "columnheader", "aria-sort": this.getAriaSort() }, this.headerCellContent()));
|
|
120
128
|
}
|
|
121
129
|
static get is() { return "tds-header-cell"; }
|
|
122
130
|
static get encapsulation() { return "shadow"; }
|
|
@@ -236,6 +244,24 @@ export class TdsTableHeaderCell {
|
|
|
236
244
|
"attribute": "disable-padding",
|
|
237
245
|
"reflect": true,
|
|
238
246
|
"defaultValue": "false"
|
|
247
|
+
},
|
|
248
|
+
"tdsAriaLabelSortButton": {
|
|
249
|
+
"type": "string",
|
|
250
|
+
"mutable": false,
|
|
251
|
+
"complexType": {
|
|
252
|
+
"original": "string",
|
|
253
|
+
"resolved": "string",
|
|
254
|
+
"references": {}
|
|
255
|
+
},
|
|
256
|
+
"required": false,
|
|
257
|
+
"optional": true,
|
|
258
|
+
"docs": {
|
|
259
|
+
"tags": [],
|
|
260
|
+
"text": "Aria label for the sort button, providing an accessible description"
|
|
261
|
+
},
|
|
262
|
+
"attribute": "tds-aria-label-sort-button",
|
|
263
|
+
"reflect": true,
|
|
264
|
+
"defaultValue": "''"
|
|
239
265
|
}
|
|
240
266
|
};
|
|
241
267
|
}
|
package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js
CHANGED
|
@@ -63,11 +63,11 @@ export class TdsTableHeaderInputWrapper {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: 'e92640dc4c88b52574960d7234b377d7e5eaaa8e', class: {
|
|
67
67
|
'focused-input-wrapper': this.inputFocused,
|
|
68
68
|
'show-icon': this.showIcon,
|
|
69
69
|
'tds-table__compact': this.compactDesign,
|
|
70
|
-
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h("tds-icon", { class: "search-icon", slot: "icon", size: "16px", name: "search" })) : null));
|
|
70
|
+
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h("tds-icon", { svgTitle: "search", class: "search-icon", slot: "icon", size: "16px", name: "search" })) : null));
|
|
71
71
|
}
|
|
72
72
|
static get is() { return "tds-table-header-input-wrapper"; }
|
|
73
73
|
static get encapsulation() { return "shadow"; }
|
|
@@ -12,6 +12,7 @@ export class TdsTableToolbar {
|
|
|
12
12
|
constructor() {
|
|
13
13
|
this.tableTitle = '';
|
|
14
14
|
this.filter = false;
|
|
15
|
+
this.tdsSearchAriaLabel = '';
|
|
15
16
|
this.verticalDividers = false;
|
|
16
17
|
this.compactDesign = false;
|
|
17
18
|
this.noMinWidth = false;
|
|
@@ -34,6 +35,9 @@ export class TdsTableToolbar {
|
|
|
34
35
|
connectedCallback() {
|
|
35
36
|
this.tableEl = this.host.closest('tds-table');
|
|
36
37
|
this.tableId = this.tableEl.tableId;
|
|
38
|
+
if (!this.tdsSearchAriaLabel) {
|
|
39
|
+
console.warn('tds-table-toolbar: tdsSearchAriaLabel is highly recommended for accessibility');
|
|
40
|
+
}
|
|
37
41
|
}
|
|
38
42
|
componentWillLoad() {
|
|
39
43
|
relevantTableProps.forEach((tablePropName) => {
|
|
@@ -63,10 +67,10 @@ export class TdsTableToolbar {
|
|
|
63
67
|
return styles;
|
|
64
68
|
}
|
|
65
69
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '7ff5d6032f2ada9a95d5fa33286ad31940163dfc', class: {
|
|
67
71
|
'tds-table--compact': this.compactDesign,
|
|
68
72
|
'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
69
|
-
}, style: this.getStyles() }, h("div", { key: '
|
|
73
|
+
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: '9975a508256b56731dd51f7687a16dff7994cf2a', class: "tds-table__upper-bar-flex" }, h("caption", { key: '997271d59b13fe9f88086e8bc5334d6412887fe8', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle), h("div", { key: '6da0901c59e6e053cadfb540ded0e738e492f8ed', class: "tds-table__actionbar" }, this.filter && (h("div", { key: 'dfb2a778e959c5b26d42be07378b52c09c9f95d3', class: "tds-table__searchbar" }, h("input", { key: '13918cd96afb703cf71a0aeeb1dd3014a4cba665', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), h("span", { key: 'a95553216a9a0c94fbd08c43ef44c95389a82f7e', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '6a9396e3f6f8508acb802e92b320b5c8f2cda517', name: "search", size: "20px" })))), h("slot", { key: '7cf66ff8283724f421e6bdc018cee62f4cd480b1', name: "end" })))));
|
|
70
74
|
}
|
|
71
75
|
static get is() { return "tds-table-toolbar"; }
|
|
72
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -117,6 +121,24 @@ export class TdsTableToolbar {
|
|
|
117
121
|
"attribute": "filter",
|
|
118
122
|
"reflect": true,
|
|
119
123
|
"defaultValue": "false"
|
|
124
|
+
},
|
|
125
|
+
"tdsSearchAriaLabel": {
|
|
126
|
+
"type": "string",
|
|
127
|
+
"mutable": false,
|
|
128
|
+
"complexType": {
|
|
129
|
+
"original": "string",
|
|
130
|
+
"resolved": "string",
|
|
131
|
+
"references": {}
|
|
132
|
+
},
|
|
133
|
+
"required": false,
|
|
134
|
+
"optional": false,
|
|
135
|
+
"docs": {
|
|
136
|
+
"tags": [],
|
|
137
|
+
"text": "Aria label for the search input, providing an accessible description"
|
|
138
|
+
},
|
|
139
|
+
"attribute": "tds-search-aria-label",
|
|
140
|
+
"reflect": false,
|
|
141
|
+
"defaultValue": "''"
|
|
120
142
|
}
|
|
121
143
|
};
|
|
122
144
|
}
|
|
@@ -35,10 +35,10 @@ export class TdsFolderTab {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '3e036096f61107d381945ce7b9a4478668666d20', "aria-selected": this.selected }, h("div", { key: 'a99712b0487ea9102b4cd0afd3c079a0f52b7ce9', class: {
|
|
39
39
|
selected: this.selected,
|
|
40
40
|
disabled: this.disabled,
|
|
41
|
-
}, style: { width: `${this.tabWidth}px` } }, h("slot", { key: '
|
|
41
|
+
}, style: { width: `${this.tabWidth}px` } }, h("slot", { key: 'eddb270a4d93a3fe824531bd86b769246545262e' }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "tds-folder-tab"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -162,9 +162,9 @@ export class TdsFolderTabs {
|
|
|
162
162
|
this.removeEventListenerFromTabs();
|
|
163
163
|
}
|
|
164
164
|
render() {
|
|
165
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: '382b6b5286588f36ff98f20c1a6a76cc5f59aac0', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'd3118c3bb9e31de96eaabc91c78d125856c665d5', class: "wrapper", ref: (el) => {
|
|
166
166
|
this.navWrapperElement = el;
|
|
167
|
-
} }, h("button", { key: '
|
|
167
|
+
} }, h("button", { key: '26f0d1733a766f96de00328e041e06ecab13c1dc', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: '1e62e87833204ccfe40ffc52f29567dc75f3f9e0', name: "chevron_left", size: "20px" })), h("slot", { key: '7c33f235eed736380307d496d62da55223d7f90b', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'b2d3faaa0bc01f1385cf44e80e29f5445e928381', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: 'c04434dd18f0ae0c2b2e43b5dfd4ab4a5c317a25', name: "chevron_right", size: "20px" })))));
|
|
168
168
|
}
|
|
169
169
|
static get is() { return "tds-folder-tabs"; }
|
|
170
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,11 +30,11 @@ export class TdsInlineTab {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
33
|
+
return (h(Host, { key: 'fb0af4b885f31d9afa67f76bf3cf122f59876079', "aria-selected": this.selected }, h("div", { key: '624b7370a054f490575a9a2491eaa9277f4a77ba', class: {
|
|
34
34
|
'inline-tab-item': true,
|
|
35
35
|
'selected': this.selected,
|
|
36
36
|
'disabled': this.disabled,
|
|
37
|
-
} }, h("slot", { key: '
|
|
37
|
+
} }, h("slot", { key: '0eadedfe560fe93faebf07a8f1a546ae022676d9' }))));
|
|
38
38
|
}
|
|
39
39
|
static get is() { return "tds-inline-tab"; }
|
|
40
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -169,9 +169,9 @@ export class TdsInlineTabs {
|
|
|
169
169
|
this.removeEventListenerFromTabs();
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
|
-
return (h(Host, { key: '
|
|
172
|
+
return (h(Host, { key: 'ccd58f7b7b6bb4423fa45a6d6177386f5561e32a', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '0369ce03c5cb29f24762b6b5bb3ba932f82a0869', class: "wrapper", ref: (el) => {
|
|
173
173
|
this.navWrapperElement = el;
|
|
174
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '
|
|
174
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'f8cf277e9bb870d3b7d53bc3eff73806b61f0828', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'f72664b9b0f19b9a0c4ded16bd1be4b66594406a', name: "chevron_left", size: "20px" })), h("slot", { key: '1e2bc784f1148361bf04b34cbbdb62f3d3aad8af', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'b9d0e45c7d46a399081d561e496c5d1cc81132b0', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '55bbe28b1524a0ac6a808b1fb41225263977005f', name: "chevron_right", size: "20px" })))));
|
|
175
175
|
}
|
|
176
176
|
static get is() { return "tds-inline-tabs"; }
|
|
177
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,8 +30,8 @@ export class TdsNavigationTab {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
render() {
|
|
33
|
-
return (h(Host, { key: '
|
|
34
|
-
${this.disabled ? 'disabled' : ''}` }, h("slot", { key: '
|
|
33
|
+
return (h(Host, { key: '089ff23cbaa8ec219eb3771964a6843015b47378' }, h("div", { key: 'c75620addf322521de678bf4012c5c1dfdeb9464', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
|
|
34
|
+
${this.disabled ? 'disabled' : ''}` }, h("slot", { key: 'f3bb65a7f8aad7adfc0ccb5d4bbc1c98c368978b' }))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "tds-navigation-tab"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -169,15 +169,15 @@ export class TdsNavigationTabs {
|
|
|
169
169
|
this.removeEventListenerFromTabs();
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
|
-
return (h(Host, { key: '
|
|
172
|
+
return (h(Host, { key: '26d9458d689f9304aa6fb6a5b07f05079c715152', role: "tablist", class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: '8b8568c45abe2952607764df75682a10864bf35e', class: "wrapper", ref: (el) => {
|
|
173
173
|
this.navWrapperElement = el;
|
|
174
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '
|
|
174
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '369338833a13937105bf4ebaf50a22b9cb5d618f', "aria-label": this.tdsScrollLeftAriaLabel, class: {
|
|
175
175
|
'scroll-left-button': true,
|
|
176
176
|
'show': this.showLeftScroll,
|
|
177
|
-
}, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '
|
|
177
|
+
}, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'bea7b39e109ad4453065176b0e16e0d0595ba37a', name: "chevron_left", size: "20px" })), h("slot", { key: '5b82ca06921a3566ab7c1614d6e551e4332d8112', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '50c111d8298d3715503b251d890c2a59f984c9fc', "aria-label": this.tdsScrollRightAriaLabel, class: {
|
|
178
178
|
'scroll-right-button': true,
|
|
179
179
|
'show': this.showRightScroll,
|
|
180
|
-
}, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '
|
|
180
|
+
}, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '9e7ba00a1c6e155dcb8f76a175411ee9d20fb669', name: "chevron_right", size: "20px" })))));
|
|
181
181
|
}
|
|
182
182
|
static get is() { return "tds-navigation-tabs"; }
|
|
183
183
|
static get encapsulation() { return "shadow"; }
|
|
@@ -76,7 +76,7 @@ export class TdsTextField {
|
|
|
76
76
|
var _a;
|
|
77
77
|
const usesPrefixSlot = hasSlot('prefix', this.host);
|
|
78
78
|
const usesSuffixSlot = hasSlot('suffix', this.host);
|
|
79
|
-
return (h("div", { key: '
|
|
79
|
+
return (h("div", { key: '81cbb5cca60842e284e60630307f246b50650d79', class: {
|
|
80
80
|
'form-text-field': true,
|
|
81
81
|
'form-text-field-nomin': this.noMinWidth,
|
|
82
82
|
'text-field-focus': this.focusInput && !this.disabled,
|
|
@@ -94,12 +94,12 @@ export class TdsTextField {
|
|
|
94
94
|
'form-text-field-sm': this.size === 'sm',
|
|
95
95
|
'form-text-field-error': this.state === 'error',
|
|
96
96
|
'form-text-field-success': this.state === 'success',
|
|
97
|
-
} }, this.labelPosition === 'outside' && (h("div", { key: '
|
|
97
|
+
} }, this.labelPosition === 'outside' && (h("div", { key: '57bc0784f18f9ed2c4fd31699832599ac73ceb32', class: "text-field-label-outside" }, h("label", { key: '8cadf1065d6556d6f9dc74b70d3c36b48db86e38', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: 'd191fdf981ac742c4a95fa69202607f0c73606d7', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: 'de76fcf2db999b9e21b33bf3554d22e4e7648574', class: {
|
|
98
98
|
'text-field-slot-wrap-prefix': true,
|
|
99
99
|
'text-field-error': this.state === 'error',
|
|
100
100
|
'text-field-success': this.state === 'success',
|
|
101
101
|
'text-field-default': this.state === 'default',
|
|
102
|
-
} }, h("slot", { key: '
|
|
102
|
+
} }, h("slot", { key: 'ab87f5a55f1a7d94bbcb624bc1c4f864c0136cf8', name: "prefix" }))), h("div", { key: '7097450497a908bef52ab5d28966267c984f433d', class: "text-field-input-container" }, h("input", { key: 'f25d3c0ce37078cf018aa80cea8d5e055656f2c1', ref: (inputEl) => {
|
|
103
103
|
this.textInput = inputEl;
|
|
104
104
|
}, class: {
|
|
105
105
|
'text-field-input': true,
|
|
@@ -114,13 +114,13 @@ export class TdsTextField {
|
|
|
114
114
|
if (!this.readOnly) {
|
|
115
115
|
this.handleBlur(event);
|
|
116
116
|
}
|
|
117
|
-
}, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby":
|
|
117
|
+
}, "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}` }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '40a00f563ef4c62345a39d03937f0824ccef0c44', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), h("div", { key: 'b41eb0927e23dff6fd12a8304f7bff5a8b743a54', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: '0d26ee8cb9838ee91574119ae0e1febb06318c9c', class: {
|
|
118
118
|
'text-field-slot-wrap-suffix': true,
|
|
119
119
|
'text-field-error': this.state === 'error',
|
|
120
120
|
'text-field-success': this.state === 'success',
|
|
121
121
|
'text-field-default': this.state === 'default',
|
|
122
122
|
'tds-u-display-none': this.readOnly,
|
|
123
|
-
} }, h("slot", { key: '
|
|
123
|
+
} }, h("slot", { key: '1af3d2006e55936a8afcce17ca9519b9bb9907c5', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (h("span", { key: '89b9f9b62e50006f933ab36974f8d6c6e2dab9c8', class: "text-field-icon__readonly" }, h("tds-icon", { key: '44cc31f05988149991d58d090187e444b33ec62e', name: "edit_inactive", size: "20px" }))), h("span", { key: '73f3021a39c0a880224879356866cd214ccb225e', class: "text-field-icon__readonly-label" }, "This field is non-editable")), h("div", { key: 'c70487a997117103ec68ddbdf86d0ca9701f2202', "aria-live": "assertive" }, (this.helper || this.maxLength > 0) && (h("div", { key: 'dee32001897276fe40813ef0b29077d31a331b0d', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (h("div", { key: '31e68824fb88938e6c7fc3f9f80a84bce101a8f9', class: "text-field-helper-error-state" }, !this.readOnly && h("tds-icon", { key: '63e22a80312fdd7365a8aec9a5fcd7c8104c376a', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && this.maxLength > 0 && (h("span", { key: 'e31d5df19bbf0d8278f2f2dbc7d978d770378a89', class: {
|
|
124
124
|
'text-field-textcounter-divider': true,
|
|
125
125
|
'text-field-textcounter-disabled': this.disabled,
|
|
126
126
|
} }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, " / ", this.maxLength)))))));
|
|
@@ -58,7 +58,7 @@ export class TdsTextarea {
|
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
60
|
var _a;
|
|
61
|
-
return (h("div", { key: '
|
|
61
|
+
return (h("div", { key: 'b0af8053153a8752a82d1b4f9a1f3c6e347ba4e5', class: {
|
|
62
62
|
'textarea-container': true,
|
|
63
63
|
'textarea-label-inside': this.labelPosition === 'inside',
|
|
64
64
|
'textarea-focus': this.focusInput,
|
|
@@ -68,7 +68,7 @@ export class TdsTextarea {
|
|
|
68
68
|
'textarea-data': this.value !== '',
|
|
69
69
|
[`textarea-${this.state}`]: this.state === 'error' || this.state === 'success',
|
|
70
70
|
'no-min-width': this.noMinWidth,
|
|
71
|
-
} }, this.labelPosition !== 'no-label' && (h("label", { key: '
|
|
71
|
+
} }, this.labelPosition !== 'no-label' && (h("label", { key: 'e7acfb3ee16ae429ae5b530c678de7178cfadb37', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), h("div", { key: '8e4a259a015dbb7d5f52eb890c0b1865c7d23c2a', class: "textarea-wrapper" }, h("textarea", { key: 'af0bf0fe69baa4c33c8d628a509ef2771d581728', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
|
|
72
72
|
this.textEl = inputEl;
|
|
73
73
|
}, disabled: this.disabled, readonly: !this.disabled && this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
|
|
74
74
|
if (!this.readOnly) {
|
|
@@ -78,7 +78,7 @@ export class TdsTextarea {
|
|
|
78
78
|
if (!this.readOnly) {
|
|
79
79
|
this.handleBlur(event);
|
|
80
80
|
}
|
|
81
|
-
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), h("span", { key: '
|
|
81
|
+
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": this.state === 'error' ? 'true' : 'false', "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), h("span", { key: 'a4d4472cc29ceee2df18621253e4790298dab8e6', class: "textarea-resizer-icon" }, h("svg", { key: '086a281f3fec5590ddb8563ef1e65136d4b831d4', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '5d6935da052a1163db2d6526e2c419a9e7621b80', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (h("span", { key: '9b6e37cfdb98c9dbc5207a7a615dda7bc53a12f9', class: "textarea-icon__readonly" }, h("tds-tooltip", { key: '847bf8835a69bb18cc248fc0a79fb63cd56cd4bc', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), h("tds-icon", { key: 'fc952bfb4ded2a415d8877a02b42cc5ca852aa92', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), h("span", { key: '73ab74707b95ac4be6fe44da50fbd85034010c30', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && !this.readOnly && h("tds-icon", { key: '0a51fe5b3ca770969ad7c42155c16ddf1349a215', name: "error", size: "16px" }), this.helper), this.maxLength > 0 && (h("div", { key: 'faaa8a3ea81472dc078084e25d6513b2633118b7', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '1a465fbeacf28fff5fa4bac5f6f03c94b01538e6', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
|
|
82
82
|
}
|
|
83
83
|
static get is() { return "tds-textarea"; }
|
|
84
84
|
static get encapsulation() { return "scoped"; }
|
|
@@ -65,12 +65,12 @@ export class TdsToast {
|
|
|
65
65
|
const usesHeaderSlot = hasSlot('header', this.host);
|
|
66
66
|
const usesSubheaderSlot = hasSlot('subheader', this.host);
|
|
67
67
|
const usesActionsSlot = hasSlot('actions', this.host);
|
|
68
|
-
return (h(Host, { key: '
|
|
68
|
+
return (h(Host, { key: 'b5f8ebf48f31ced7100681b06339ba896d6eca64', "aria-live": this.tdsAriaLive, toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
|
|
69
69
|
hide: this.hidden,
|
|
70
70
|
show: !this.hidden,
|
|
71
|
-
} }, h("div", { key: '
|
|
71
|
+
} }, h("div", { key: 'bd1e5c5c04b8aa66cb44241fb37711df0d797d28', class: `
|
|
72
72
|
wrapper
|
|
73
|
-
${this.variant}` }, h("tds-icon", { key: '
|
|
73
|
+
${this.variant}` }, h("tds-icon", { key: 'aa6e3fd61ad5a2e962f6e70d48ce266b7c8913e0', name: this.getIconName(), size: "20px", svgTitle: this.getIconName() }), h("div", { key: '8502cb5c3b305942fe14ffde76ee4dfc63758ce8', class: `content` }, h("div", { key: '5ef927acd2e0d6bba51c4b20b79fee1240c821ef', class: "header-subheader" }, this.header && h("div", { key: 'c568d13668da3502c5f34810fea5f3a9d9629572', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: 'e9316b99d758019127faf05adb9ae1754e3ea910', name: "header" }), this.subheader && h("div", { key: '428e2659621c6eb4ddb302b9cab6902d93d2f514', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: '2ec858d2feeaf679ab8aa061cab2156f926e29a2', name: "subheader" })), usesActionsSlot && (h("div", { key: '3f4836e54bedbeb3b02b78c0ac0bfa47770c4f80', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: '76fa5d8534ea34010968a7183e07e62a4be3e5f7', name: "actions" })))), this.closable && (h("button", { key: '8076fa3d885b7649758b084301e092d083103ecd', id: "my-button", "aria-label": this.tdsCloseAriaLabel, onClick: this.handleClose, class: "close" }, h("tds-icon", { key: 'f9bf7fa804352e9d09bbdc6251fe02c89cb174a8', name: "cross", size: "20px", svgTitle: "cross" }))))));
|
|
74
74
|
}
|
|
75
75
|
static get is() { return "tds-toast"; }
|
|
76
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -38,10 +38,10 @@ export class TdsToggle {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return (h("div", { key: '
|
|
41
|
+
return (h("div", { key: 'f1151ef33eaf8ee11761badb74dcb24916481ce1', class: "tds-toggle" }, this.headline && (h("div", { key: '848f0bf92aa6e21a7d84dea6d3cc41f3228cbb9b', class: {
|
|
42
42
|
'toggle-headline': true,
|
|
43
43
|
'disabled': this.disabled,
|
|
44
|
-
} }, this.headline)), h("input", { key: '
|
|
44
|
+
} }, this.headline)), h("input", { key: '25907b86ae6fe55dca60b1254a3901bb090a8d36', "aria-label": this.tdsAriaLabel, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), this.labelSlot && (h("label", { key: 'ef3c492d3d3c7bddc34c64bfcc568e47f17a2cd1', class: { disabled: this.disabled }, htmlFor: this.toggleId }, h("slot", { key: '339f355bbba7f3c18de4049df1d0a82d87884f44', name: "label" })))));
|
|
45
45
|
}
|
|
46
46
|
static get is() { return "tds-toggle"; }
|
|
47
47
|
static get encapsulation() { return "scoped"; }
|
|
@@ -58,7 +58,7 @@ export class TdsTooltip {
|
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
60
|
var _a;
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: 'c09e902febe788fe0f38d9abca24864bfbf59b2d', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, h("tds-popover-core", Object.assign({ key: '2ae840c2abe03714f071034bda652265ef09fc9b' }, this.inheritedAttributes, { class: {
|
|
62
62
|
'tds-tooltip': true,
|
|
63
63
|
[`tds-tooltip-${this.border}`]: true,
|
|
64
64
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
@@ -71,7 +71,7 @@ export class TdsTooltip {
|
|
|
71
71
|
// @ts-ignore
|
|
72
72
|
onInternalTdsClose: () => {
|
|
73
73
|
this.show = false;
|
|
74
|
-
}, defaultShow: this.defaultShow }), this.text, h("slot", { key: '
|
|
74
|
+
}, defaultShow: this.defaultShow }), this.text, h("slot", { key: 'f0211f7e337709f4b8d0e8e4374c0ebd39635f25' }))));
|
|
75
75
|
}
|
|
76
76
|
static get is() { return "tds-tooltip"; }
|
|
77
77
|
static get encapsulation() { return "scoped"; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, d as createEvent, h, c as Host } from './p-28ef5186.js';
|
|
2
2
|
import { c as convertToString, a as convertArrayToStrings } from './p-a1181b1f.js';
|
|
3
|
-
import {
|
|
3
|
+
import { g as generateUniqueId } from './p-11648030.js';
|
|
4
|
+
import { d as defineCustomElement$1 } from './p-c715ab56.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* Find the next focusable element index in a list of focusable elements.
|
|
@@ -135,7 +136,15 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
135
136
|
if (!this.disabled) {
|
|
136
137
|
this.open = !this.open;
|
|
137
138
|
if (this.open) {
|
|
138
|
-
this.
|
|
139
|
+
if (this.filter) {
|
|
140
|
+
this.focusInputElement();
|
|
141
|
+
}
|
|
142
|
+
else {
|
|
143
|
+
const button = this.host.shadowRoot.querySelector('button');
|
|
144
|
+
if (button) {
|
|
145
|
+
button.focus();
|
|
146
|
+
}
|
|
147
|
+
}
|
|
139
148
|
}
|
|
140
149
|
}
|
|
141
150
|
};
|
|
@@ -181,11 +190,13 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
181
190
|
this.handleFocus = (event) => {
|
|
182
191
|
this.open = true;
|
|
183
192
|
this.filterFocus = true;
|
|
184
|
-
if (this.multiselect) {
|
|
193
|
+
if (this.multiselect && this.inputElement) {
|
|
185
194
|
this.inputElement.value = '';
|
|
186
195
|
}
|
|
187
196
|
this.tdsFocus.emit(event);
|
|
188
|
-
this.
|
|
197
|
+
if (this.filter) {
|
|
198
|
+
this.handleFilter({ target: { value: '' } });
|
|
199
|
+
}
|
|
189
200
|
};
|
|
190
201
|
this.handleBlur = (event) => {
|
|
191
202
|
this.tdsBlur.emit(event);
|
|
@@ -340,7 +351,18 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
340
351
|
}
|
|
341
352
|
/** Method that forces focus on the input element. */
|
|
342
353
|
async focusElement() {
|
|
343
|
-
this.
|
|
354
|
+
if (this.filter) {
|
|
355
|
+
// For filter mode, focus the input element
|
|
356
|
+
this.focusInputElement();
|
|
357
|
+
}
|
|
358
|
+
else {
|
|
359
|
+
// For non-filter mode, focus the button element
|
|
360
|
+
const button = this.host.shadowRoot.querySelector('button');
|
|
361
|
+
if (button) {
|
|
362
|
+
button.focus();
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
// Always trigger the focus event to open the dropdown
|
|
344
366
|
this.handleFocus({});
|
|
345
367
|
}
|
|
346
368
|
/** Method for setting the value of the Dropdown.
|
|
@@ -370,6 +392,7 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
370
392
|
}
|
|
371
393
|
}
|
|
372
394
|
async onKeyDown(event) {
|
|
395
|
+
var _a;
|
|
373
396
|
// Get the active element
|
|
374
397
|
const { activeElement } = document;
|
|
375
398
|
if (!activeElement) {
|
|
@@ -396,6 +419,14 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
396
419
|
}
|
|
397
420
|
else if (event.key === 'Escape') {
|
|
398
421
|
this.open = false;
|
|
422
|
+
// Return focus to input/button when Escape key is used
|
|
423
|
+
if (this.filter) {
|
|
424
|
+
(_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
const button = this.host.shadowRoot.querySelector('button');
|
|
428
|
+
button === null || button === void 0 ? void 0 : button.focus();
|
|
429
|
+
}
|
|
399
430
|
}
|
|
400
431
|
}
|
|
401
432
|
// If the Dropdown gets closed,
|
|
@@ -406,6 +437,8 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
406
437
|
this.inputElement.value = this.selectedOptions.length ? this.getValue() : '';
|
|
407
438
|
}
|
|
408
439
|
}
|
|
440
|
+
// Update the inert state of dropdown list when open state changes
|
|
441
|
+
this.updateDropdownListInertState();
|
|
409
442
|
}
|
|
410
443
|
handleDefaultValueChange(newValue) {
|
|
411
444
|
if (newValue !== undefined && newValue !== null) {
|
|
@@ -453,6 +486,8 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
453
486
|
if (form) {
|
|
454
487
|
form.addEventListener('reset', this.resetInput);
|
|
455
488
|
}
|
|
489
|
+
// Initialize inert state after rendering
|
|
490
|
+
this.updateDropdownListInertState();
|
|
456
491
|
}
|
|
457
492
|
disconnectedCallback() {
|
|
458
493
|
const form = this.host.closest('form');
|
|
@@ -465,11 +500,24 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
465
500
|
console.warn('Tegel Dropdown component: tdsAriaLabel prop is missing');
|
|
466
501
|
}
|
|
467
502
|
}
|
|
503
|
+
updateDropdownListInertState() {
|
|
504
|
+
if (this.dropdownList) {
|
|
505
|
+
if (this.open) {
|
|
506
|
+
this.dropdownList.removeAttribute('inert');
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
this.dropdownList.setAttribute('inert', '');
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
}
|
|
468
513
|
render() {
|
|
469
514
|
appendHiddenInput(this.host, this.name, this.selectedOptions.join(','), this.disabled);
|
|
470
|
-
|
|
515
|
+
// Generate unique IDs for associating labels and helpers with the input/button
|
|
516
|
+
const labelId = this.label ? `dropdown-label-${this.name || generateUniqueId()}` : undefined;
|
|
517
|
+
const helperId = this.helper ? `dropdown-helper-${this.name || generateUniqueId()}` : undefined;
|
|
518
|
+
return (h(Host, { key: 'aed0a485fc4634cdba2599fa9792fb6289a7459c', class: {
|
|
471
519
|
[`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
|
|
472
|
-
} }, this.label && this.labelPosition === 'outside' && (h("div", { key: '
|
|
520
|
+
} }, this.label && this.labelPosition === 'outside' && (h("div", { key: '39d11ac06547b133540f037a0c09ddc40b972cb5', id: labelId, class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '8ab624d380289699887b660d30512b2e892f71c0', class: {
|
|
473
521
|
'dropdown-select': true,
|
|
474
522
|
[this.size]: true,
|
|
475
523
|
'disabled': this.disabled,
|
|
@@ -478,11 +526,11 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
478
526
|
focus: this.filterFocus,
|
|
479
527
|
disabled: this.disabled,
|
|
480
528
|
error: this.error,
|
|
481
|
-
} }, h("div", { class: "value-wrapper" }, this.label && this.labelPosition === 'inside' && this.placeholder && (h("div", { class: `label-inside ${this.size}` }, this.label)), this.label && this.labelPosition === 'inside' && !this.placeholder && (h("div", { class: `
|
|
529
|
+
} }, h("div", { class: "value-wrapper" }, this.label && this.labelPosition === 'inside' && this.placeholder && (h("div", { id: labelId, class: `label-inside ${this.size}` }, this.label)), this.label && this.labelPosition === 'inside' && !this.placeholder && (h("div", { id: labelId, class: `
|
|
482
530
|
label-inside-as-placeholder
|
|
483
531
|
${this.size}
|
|
484
532
|
${this.selectedOptions.length ? 'selected' : ''}
|
|
485
|
-
` }, this.label)), h("input", { "aria-label": this.tdsAriaLabel, "aria-disabled": this.disabled,
|
|
533
|
+
` }, this.label)), h("input", { "aria-label": this.tdsAriaLabel, "aria-labelledby": labelId, "aria-describedby": helperId, "aria-disabled": this.disabled,
|
|
486
534
|
// eslint-disable-next-line no-return-assign
|
|
487
535
|
ref: (inputEl) => (this.inputElement = inputEl), class: {
|
|
488
536
|
placeholder: this.labelPosition === 'inside',
|
|
@@ -503,11 +551,11 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
503
551
|
}, class: {
|
|
504
552
|
'clear-icon': true,
|
|
505
553
|
'hide': !(this.open && this.inputElement.value !== ''),
|
|
506
|
-
}, name: "cross", size: "16px" }), h("tds-icon", {
|
|
554
|
+
}, name: "cross", size: "16px" }), h("tds-icon", { tdsAriaHidden: true, role: "button", "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", onClick: this.handleToggleOpen, onKeyDown: (event) => {
|
|
507
555
|
if (event.key === 'Enter') {
|
|
508
556
|
this.handleToggleOpen();
|
|
509
557
|
}
|
|
510
|
-
}, class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))) : (h("button", { "aria-label": this.tdsAriaLabel, "aria-disabled": this.disabled, onClick: () => this.handleToggleOpen(), onKeyDown: (event) => {
|
|
558
|
+
}, class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))) : (h("button", { "aria-label": this.tdsAriaLabel, "aria-labelledby": labelId, "aria-describedby": helperId, "aria-disabled": this.disabled, onClick: () => this.handleToggleOpen(), onKeyDown: (event) => {
|
|
511
559
|
if (event.key === 'Escape') {
|
|
512
560
|
this.open = false;
|
|
513
561
|
}
|
|
@@ -515,11 +563,11 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
515
563
|
${this.selectedOptions.length ? 'value' : 'placeholder'}
|
|
516
564
|
${this.open ? 'open' : 'closed'}
|
|
517
565
|
${this.error ? 'error' : ''}
|
|
518
|
-
`, disabled: this.disabled }, h("div", { class: `value-wrapper ${this.size}` }, this.label && this.labelPosition === 'inside' && this.placeholder && (h("div", { class: `label-inside ${this.size}` }, this.label)), this.label && this.labelPosition === 'inside' && !this.placeholder && (h("div", { class: `
|
|
566
|
+
`, disabled: this.disabled }, h("div", { class: `value-wrapper ${this.size}` }, this.label && this.labelPosition === 'inside' && this.placeholder && (h("div", { id: labelId, class: `label-inside ${this.size}` }, this.label)), this.label && this.labelPosition === 'inside' && !this.placeholder && (h("div", { id: labelId, class: `
|
|
519
567
|
label-inside-as-placeholder
|
|
520
568
|
${this.size}
|
|
521
569
|
${this.selectedOptions.length ? 'selected' : ''}
|
|
522
|
-
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, this.selectedOptions.length ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '
|
|
570
|
+
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, this.selectedOptions.length ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '989c425c5a608444533e33ad83313aa56569c225', role: "listbox", "aria-label": this.tdsAriaLabel, "aria-hidden": this.open ? 'false' : 'true', inert: !this.open, "aria-orientation": "vertical", "aria-multiselectable": this.multiselect, ref: (element) => {
|
|
523
571
|
this.dropdownList = element;
|
|
524
572
|
}, class: {
|
|
525
573
|
'dropdown-list': true,
|
|
@@ -530,11 +578,11 @@ const TdsDropdown = /*@__PURE__*/ proxyCustomElement(class TdsDropdown extends H
|
|
|
530
578
|
'closed': !this.open,
|
|
531
579
|
[`animation-enter-${this.animation}`]: this.animation !== 'none' && this.open,
|
|
532
580
|
[`animation-exit-${this.animation}`]: this.animation !== 'none' && !this.open,
|
|
533
|
-
} }, h("slot", { key: '
|
|
581
|
+
} }, h("slot", { key: '6e54bbb0eacf27cfdbf3b393f2c9e690adb394e8', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: '4bdaf935cd213f63e7a8665b5d6f69ee0589d7b9', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '112c76fa88eef7798b9b0d435ae03e62880a9ff8', id: helperId, class: {
|
|
534
582
|
helper: true,
|
|
535
583
|
error: this.error,
|
|
536
584
|
disabled: this.disabled,
|
|
537
|
-
} }, this.error && h("tds-icon", { key: '
|
|
585
|
+
} }, this.error && h("tds-icon", { key: '055e681faca85a461b07619c42fa0eb48a6ec028', name: "error", size: "16px" }), this.helper))));
|
|
538
586
|
}
|
|
539
587
|
get host() { return this; }
|
|
540
588
|
static get watchers() { return {
|