@scania/tegel 1.53.0 → 1.54.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/index-DPzF1h3L.js +2548 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tds-accordion-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/tds-badge.cjs.entry.js +1 -1
- package/dist/cjs/tds-banner.cjs.entry.js +2 -2
- package/dist/cjs/tds-block.cjs.entry.js +1 -1
- package/dist/cjs/tds-body-cell.cjs.entry.js +4 -4
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/tds-button_2.cjs.entry.js +2 -2
- package/dist/cjs/tds-card.cjs.entry.js +4 -3
- package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/tds-chip.cjs.entry.js +2 -2
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +2 -2
- package/dist/cjs/tds-datetime.cjs.entry.js +2 -2
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +3 -3
- package/dist/cjs/tds-folder-tab.cjs.entry.js +4 -4
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +5 -6
- package/dist/cjs/tds-footer-group.cjs.entry.js +2 -2
- package/dist/cjs/tds-footer-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-footer.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-cell.cjs.entry.js +23 -4
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +2 -2
- 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 +2 -2
- 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 +23 -37
- package/dist/cjs/tds-inline-tab.cjs.entry.js +4 -4
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +5 -6
- package/dist/cjs/tds-link.cjs.entry.js +3 -3
- package/dist/cjs/tds-message.cjs.entry.js +4 -4
- package/dist/cjs/tds-modal.cjs.entry.js +4 -4
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +4 -4
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +7 -8
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -4
- package/dist/cjs/tds-popover-core.cjs.entry.js +2 -2
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/tds-popover-menu.cjs.entry.js +4 -4
- package/dist/cjs/tds-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +2 -2
- 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 +4 -4
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +3 -3
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +4 -4
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +4 -4
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +2 -2
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +3 -3
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +2 -2
- package/dist/cjs/tds-side-menu.cjs.entry.js +2 -2
- package/dist/cjs/tds-slider.cjs.entry.js +9 -9
- package/dist/cjs/tds-spinner.cjs.entry.js +2 -2
- package/dist/cjs/tds-step.cjs.entry.js +2 -2
- package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +9 -9
- package/dist/cjs/tds-table-body-row.cjs.entry.js +3 -3
- package/dist/cjs/tds-table-body.cjs.entry.js +3 -3
- package/dist/cjs/tds-table-footer.cjs.entry.js +18 -4
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +2 -2
- package/dist/cjs/tds-table-header.cjs.entry.js +3 -3
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +3 -3
- package/dist/cjs/tds-table.cjs.entry.js +17 -5
- package/dist/cjs/tds-tag.cjs.entry.js +2 -2
- package/dist/cjs/tds-text-field.cjs.entry.js +7 -7
- package/dist/cjs/tds-textarea.cjs.entry.js +5 -5
- package/dist/cjs/tds-toast.cjs.entry.js +5 -5
- package/dist/cjs/tds-toggle.cjs.entry.js +4 -4
- package/dist/cjs/tds-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/tegel.cjs.js +2 -2
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +2 -2
- package/dist/collection/components/banner/banner.css +23 -9
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.css +2 -2
- package/dist/collection/components/button/button.css +7 -7
- package/dist/collection/components/card/card.css +24 -5
- package/dist/collection/components/card/card.js +3 -2
- package/dist/collection/components/chip/chip.css +2 -2
- package/dist/collection/components/datetime/datetime.css +2 -2
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +2 -2
- package/dist/collection/components/dropdown/dropdown.css +6 -5
- package/dist/collection/components/footer/footer-group/footer-group.css +2 -2
- package/dist/collection/components/footer/footer-item/footer-item.css +6 -6
- package/dist/collection/components/header/header-dropdown/header-dropdown.css +2 -1
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +2 -2
- package/dist/collection/components/header/header-item/header-item.css +2 -2
- package/dist/collection/components/header/header-launcher/header-launcher.css +2 -1
- package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.css +2 -2
- package/dist/collection/components/icon/icon.js +23 -39
- package/dist/collection/components/icon/tratonIconsArray.js +1 -2
- package/dist/collection/components/link/link.js +2 -2
- package/dist/collection/components/message/message.css +9 -7
- package/dist/collection/components/message/message.js +2 -2
- package/dist/collection/components/modal/modal.css +15 -13
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/popover-canvas/popover-canvas.js +3 -3
- 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 +3 -3
- package/dist/collection/components/radio-button/radio-button.js +2 -2
- 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 +3 -3
- 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.css +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.css +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.css +2 -1
- package/dist/collection/components/slider/slider.js +8 -8
- 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/table.css +2 -1
- package/dist/collection/components/table/table/table.js +59 -3
- package/dist/collection/components/table/table-body/table-body.js +2 -2
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +4 -4
- 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 +2 -2
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +2 -2
- 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 +77 -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 +25 -5
- 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.css +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.css +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +3 -4
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +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.css +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +3 -4
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +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.css +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +5 -6
- package/dist/collection/components/tag/tag.js +1 -1
- package/dist/collection/components/text-field/text-field.css +1 -1
- package/dist/collection/components/text-field/text-field.js +5 -5
- package/dist/collection/components/textarea/textarea.css +2 -2
- package/dist/collection/components/textarea/textarea.js +3 -3
- package/dist/collection/components/toast/toast.css +13 -16
- package/dist/collection/components/toast/toast.js +3 -3
- package/dist/collection/components/toggle/toggle.js +3 -3
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/components/{p-Cl3uo8RO.js → p-B-9923_a.js} +1 -1
- package/dist/components/p-B0Pz58BS.js +1 -0
- package/dist/components/{p-Cr5AJ7EI.js → p-B1QdNOPI.js} +1 -1
- package/dist/components/p-B5eSTxGJ.js +1 -0
- package/dist/components/{p-Dh4rW_04.js → p-BGW6utqb.js} +1 -1
- package/dist/components/p-BcKywCnz.js +1 -0
- package/dist/components/p-CGFX3Srb.js +1 -0
- package/dist/components/{p-CkGDaQ3D.js → p-CJtN1EIg.js} +1 -1
- package/dist/components/{p-DNQszLML.js → p-CiGYIe0v.js} +1 -1
- package/dist/components/p-DRO9e7F4.js +1 -0
- package/dist/components/p-DgETo9IA.js +1 -0
- package/dist/components/{p-BVWWo6dK.js → p-Dlj2h0pg.js} +1 -1
- package/dist/components/{p-2Sehn7YQ.js → p-Duga9LJ2.js} +1 -1
- package/dist/components/{p-Egx6jNza.js → p-VwQKu81G.js} +1 -1
- package/dist/components/tds-accordion-item.js +1 -1
- package/dist/components/tds-banner.js +1 -1
- package/dist/components/tds-body-cell.js +1 -1
- package/dist/components/tds-breadcrumb.js +1 -1
- package/dist/components/tds-button.js +1 -1
- package/dist/components/tds-card.js +1 -1
- package/dist/components/tds-chip.js +1 -1
- package/dist/components/tds-datetime.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 +1 -1
- package/dist/components/tds-folder-tabs.js +1 -1
- package/dist/components/tds-footer-group.js +1 -1
- package/dist/components/tds-footer-item.js +1 -1
- package/dist/components/tds-header-brand-symbol.js +1 -1
- package/dist/components/tds-header-cell.js +1 -1
- package/dist/components/tds-header-dropdown-list-item.js +1 -1
- package/dist/components/tds-header-dropdown.js +1 -1
- package/dist/components/tds-header-hamburger.js +1 -1
- 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-list-item.js +1 -1
- package/dist/components/tds-header-launcher.js +1 -1
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tab.js +1 -1
- package/dist/components/tds-inline-tabs.js +1 -1
- package/dist/components/tds-link.js +1 -1
- package/dist/components/tds-message.js +1 -1
- package/dist/components/tds-modal.js +1 -1
- package/dist/components/tds-navigation-tab.js +1 -1
- package/dist/components/tds-navigation-tabs.js +1 -1
- 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 +1 -1
- package/dist/components/tds-popover-menu.js +1 -1
- package/dist/components/tds-radio-button.js +1 -1
- package/dist/components/tds-side-menu-close-button.js +1 -1
- package/dist/components/tds-side-menu-collapse-button.js +1 -1
- package/dist/components/tds-side-menu-dropdown-list-item.js +1 -1
- package/dist/components/tds-side-menu-dropdown-list.js +1 -1
- package/dist/components/tds-side-menu-dropdown.js +1 -1
- 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 +1 -1
- package/dist/components/tds-side-menu.js +1 -1
- package/dist/components/tds-slider.js +1 -1
- package/dist/components/tds-spinner.js +1 -1
- package/dist/components/tds-step.js +1 -1
- package/dist/components/tds-table-body-input-wrapper.js +1 -1
- package/dist/components/tds-table-body-row-expandable.js +1 -1
- package/dist/components/tds-table-body-row.js +1 -1
- package/dist/components/tds-table-body.js +1 -1
- package/dist/components/tds-table-footer.js +1 -1
- package/dist/components/tds-table-header-input-wrapper.js +1 -1
- package/dist/components/tds-table-header.js +1 -1
- package/dist/components/tds-table-toolbar.js +1 -1
- package/dist/components/tds-table.js +1 -1
- package/dist/components/tds-tag.js +1 -1
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-textarea.js +1 -1
- package/dist/components/tds-toast.js +1 -1
- package/dist/components/tds-toggle.js +1 -1
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/index-DO74lOFd.js +2519 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/tds-accordion-item.entry.js +2 -2
- package/dist/esm/tds-accordion.entry.js +1 -1
- package/dist/esm/tds-badge.entry.js +1 -1
- package/dist/esm/tds-banner.entry.js +2 -2
- package/dist/esm/tds-block.entry.js +1 -1
- package/dist/esm/tds-body-cell.entry.js +4 -4
- package/dist/esm/tds-breadcrumb.entry.js +2 -2
- package/dist/esm/tds-breadcrumbs.entry.js +1 -1
- package/dist/esm/tds-button_2.entry.js +2 -2
- package/dist/esm/tds-card.entry.js +4 -3
- package/dist/esm/tds-checkbox.entry.js +1 -1
- package/dist/esm/tds-chip.entry.js +2 -2
- package/dist/esm/tds-core-header-item_2.entry.js +2 -2
- package/dist/esm/tds-datetime.entry.js +2 -2
- package/dist/esm/tds-dropdown_2.entry.js +3 -3
- package/dist/esm/tds-folder-tab.entry.js +4 -4
- package/dist/esm/tds-folder-tabs.entry.js +5 -6
- package/dist/esm/tds-footer-group.entry.js +2 -2
- package/dist/esm/tds-footer-item.entry.js +2 -2
- package/dist/esm/tds-footer.entry.js +1 -1
- package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
- package/dist/esm/tds-header-cell.entry.js +23 -4
- package/dist/esm/tds-header-dropdown-list-item.entry.js +2 -2
- package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-header-dropdown.entry.js +2 -2
- 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 +2 -2
- 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 +23 -37
- package/dist/esm/tds-inline-tab.entry.js +4 -4
- package/dist/esm/tds-inline-tabs.entry.js +5 -6
- package/dist/esm/tds-link.entry.js +3 -3
- package/dist/esm/tds-message.entry.js +4 -4
- package/dist/esm/tds-modal.entry.js +4 -4
- package/dist/esm/tds-navigation-tab.entry.js +4 -4
- package/dist/esm/tds-navigation-tabs.entry.js +7 -8
- package/dist/esm/tds-popover-canvas.entry.js +4 -4
- package/dist/esm/tds-popover-core.entry.js +2 -2
- package/dist/esm/tds-popover-menu-item.entry.js +3 -3
- package/dist/esm/tds-popover-menu.entry.js +4 -4
- package/dist/esm/tds-radio-button.entry.js +3 -3
- package/dist/esm/tds-side-menu-close-button.entry.js +2 -2
- package/dist/esm/tds-side-menu-collapse-button.entry.js +4 -4
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +4 -4
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +3 -3
- package/dist/esm/tds-side-menu-dropdown.entry.js +4 -4
- package/dist/esm/tds-side-menu-item.entry.js +4 -4
- package/dist/esm/tds-side-menu-overlay.entry.js +2 -2
- package/dist/esm/tds-side-menu-user-image_2.entry.js +3 -3
- package/dist/esm/tds-side-menu-user.entry.js +2 -2
- package/dist/esm/tds-side-menu.entry.js +2 -2
- package/dist/esm/tds-slider.entry.js +9 -9
- package/dist/esm/tds-spinner.entry.js +2 -2
- package/dist/esm/tds-step.entry.js +2 -2
- package/dist/esm/tds-stepper.entry.js +1 -1
- package/dist/esm/tds-table-body-input-wrapper.entry.js +2 -2
- package/dist/esm/tds-table-body-row-expandable.entry.js +9 -9
- package/dist/esm/tds-table-body-row.entry.js +3 -3
- package/dist/esm/tds-table-body.entry.js +3 -3
- package/dist/esm/tds-table-footer.entry.js +18 -4
- package/dist/esm/tds-table-header-input-wrapper.entry.js +2 -2
- package/dist/esm/tds-table-header.entry.js +3 -3
- package/dist/esm/tds-table-toolbar.entry.js +3 -3
- package/dist/esm/tds-table.entry.js +17 -5
- package/dist/esm/tds-tag.entry.js +2 -2
- package/dist/esm/tds-text-field.entry.js +7 -7
- package/dist/esm/tds-textarea.entry.js +5 -5
- package/dist/esm/tds-toast.entry.js +5 -5
- package/dist/esm/tds-toggle.entry.js +4 -4
- package/dist/esm/tds-tooltip.entry.js +3 -3
- package/dist/esm/tegel.js +3 -3
- package/dist/tegel/p-00f7e2fe.entry.js +1 -0
- package/dist/tegel/{p-3bd827a4.entry.js → p-05310ea7.entry.js} +1 -1
- package/dist/tegel/p-07d68bce.entry.js +1 -0
- package/dist/tegel/p-086183b6.entry.js +1 -0
- package/dist/tegel/p-0c0af5a8.entry.js +1 -0
- package/dist/tegel/p-0d6707b3.entry.js +1 -0
- package/dist/tegel/{p-8a32f501.entry.js → p-155d9f85.entry.js} +1 -1
- package/dist/tegel/{p-fa5e71b0.entry.js → p-15e36d6d.entry.js} +1 -1
- package/dist/tegel/{p-50060137.entry.js → p-16ad0e37.entry.js} +1 -1
- package/dist/tegel/p-17c11413.entry.js +1 -0
- package/dist/tegel/{p-84ee8542.entry.js → p-1f7bf9f0.entry.js} +1 -1
- package/dist/tegel/p-21bf17ff.entry.js +1 -0
- package/dist/tegel/p-22d03dc3.entry.js +1 -0
- package/dist/tegel/{p-42039b28.entry.js → p-2370c9e1.entry.js} +1 -1
- package/dist/tegel/p-354988d3.entry.js +1 -0
- package/dist/tegel/{p-43a4ab98.entry.js → p-3866fed7.entry.js} +1 -1
- package/dist/tegel/{p-a2a65bdf.entry.js → p-38f2223b.entry.js} +1 -1
- package/dist/tegel/{p-ff355ee6.entry.js → p-3c1cc00f.entry.js} +1 -1
- package/dist/tegel/{p-577f376b.entry.js → p-42d38e89.entry.js} +1 -1
- package/dist/tegel/p-46b2d0ea.entry.js +1 -0
- package/dist/tegel/{p-39786a40.entry.js → p-49757da4.entry.js} +1 -1
- package/dist/tegel/{p-974e6258.entry.js → p-51ec28bb.entry.js} +1 -1
- package/dist/tegel/{p-09283aec.entry.js → p-52223829.entry.js} +1 -1
- package/dist/tegel/{p-2368a679.entry.js → p-54445896.entry.js} +1 -1
- package/dist/tegel/p-581ad082.entry.js +1 -0
- package/dist/tegel/p-5aae21db.entry.js +1 -0
- package/dist/tegel/{p-6522ac2d.entry.js → p-5aee5376.entry.js} +1 -1
- package/dist/tegel/{p-8d5f25c6.entry.js → p-5b4607fb.entry.js} +1 -1
- package/dist/tegel/p-5c6b067d.entry.js +1 -0
- package/dist/tegel/{p-f939a432.entry.js → p-5dad80b8.entry.js} +1 -1
- package/dist/tegel/{p-3a8825e6.entry.js → p-5dc21700.entry.js} +1 -1
- package/dist/tegel/p-5e309655.entry.js +1 -0
- package/dist/tegel/p-5f560eda.entry.js +1 -0
- package/dist/tegel/{p-9d755c09.entry.js → p-5fba3df7.entry.js} +1 -1
- package/dist/tegel/p-663c5494.entry.js +1 -0
- package/dist/tegel/{p-0287d7e6.entry.js → p-6e4ace8a.entry.js} +1 -1
- package/dist/tegel/{p-5adfe9d6.entry.js → p-6f193415.entry.js} +1 -1
- package/dist/tegel/p-708a6c1d.entry.js +1 -0
- package/dist/tegel/{p-baabfde2.entry.js → p-7332cbd9.entry.js} +1 -1
- package/dist/tegel/p-75c1520d.entry.js +1 -0
- package/dist/tegel/{p-4427d72f.entry.js → p-7bd7cc73.entry.js} +1 -1
- package/dist/tegel/{p-da18140a.entry.js → p-7e35055d.entry.js} +1 -1
- package/dist/tegel/p-802e2119.entry.js +1 -0
- package/dist/tegel/{p-ed485529.entry.js → p-82e37e02.entry.js} +1 -1
- package/dist/tegel/p-84b46a32.entry.js +1 -0
- package/dist/tegel/{p-aa048dfa.entry.js → p-84f72528.entry.js} +1 -1
- package/dist/tegel/{p-09a49461.entry.js → p-8521649a.entry.js} +1 -1
- package/dist/tegel/{p-5a850695.entry.js → p-86e16d44.entry.js} +1 -1
- package/dist/tegel/p-8bf8546d.entry.js +1 -0
- package/dist/tegel/{p-2e38e5f0.entry.js → p-918df975.entry.js} +1 -1
- package/dist/tegel/p-9397b75a.entry.js +1 -0
- package/dist/tegel/{p-9baf0c95.entry.js → p-97ebf34f.entry.js} +1 -1
- package/dist/tegel/{p-8fda5922.entry.js → p-9d462ca4.entry.js} +1 -1
- package/dist/tegel/p-DO74lOFd.js +2 -0
- package/dist/tegel/p-a11961fd.entry.js +1 -0
- package/dist/tegel/{p-27147331.entry.js → p-a1968a57.entry.js} +1 -1
- package/dist/tegel/{p-749ca751.entry.js → p-a5c483f2.entry.js} +1 -1
- package/dist/tegel/{p-3ab869e0.entry.js → p-a859dedf.entry.js} +1 -1
- package/dist/tegel/{p-9539123c.entry.js → p-aa14dbbb.entry.js} +1 -1
- package/dist/tegel/{p-693d9a90.entry.js → p-ab734c4d.entry.js} +1 -1
- package/dist/tegel/{p-7f3b6674.entry.js → p-b17da00c.entry.js} +1 -1
- package/dist/tegel/p-b19125cc.entry.js +1 -0
- package/dist/tegel/{p-9d3dd7a1.entry.js → p-c19c0ec5.entry.js} +1 -1
- package/dist/tegel/{p-42d189f0.entry.js → p-c32eb8dd.entry.js} +1 -1
- package/dist/tegel/{p-b0fe7b44.entry.js → p-c6c257bf.entry.js} +1 -1
- package/dist/tegel/p-c6cf463b.entry.js +1 -0
- package/dist/tegel/{p-d06b8bb8.entry.js → p-c9085ee4.entry.js} +1 -1
- package/dist/tegel/{p-893b3a10.entry.js → p-cb165e5d.entry.js} +1 -1
- package/dist/tegel/{p-bfe2aab2.entry.js → p-d251e381.entry.js} +1 -1
- package/dist/tegel/{p-a4ce9d18.entry.js → p-d4af286a.entry.js} +1 -1
- package/dist/tegel/p-d8dfe177.entry.js +1 -0
- package/dist/tegel/p-dfdda68b.entry.js +1 -0
- package/dist/tegel/p-e2fb88e5.entry.js +1 -0
- package/dist/tegel/{p-e6df230b.entry.js → p-eb2375d7.entry.js} +1 -1
- package/dist/tegel/{p-15189121.entry.js → p-f2e0eaba.entry.js} +1 -1
- package/dist/tegel/{p-9122bbb9.entry.js → p-f75b0006.entry.js} +1 -1
- package/dist/tegel/p-f7ab4928.entry.js +1 -0
- package/dist/tegel/{p-8176c57c.entry.js → p-f9fec0b3.entry.js} +1 -1
- package/dist/tegel/p-fcd1c8f3.entry.js +1 -0
- package/dist/tegel/p-fd4e9fb7.entry.js +1 -0
- package/dist/tegel/tegel.css +1007 -10
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/card/card.d.ts +1 -0
- package/dist/types/components/icon/icon.d.ts +3 -6
- package/dist/types/components/table/table/table.d.ts +9 -0
- package/dist/types/components/table/table-footer/table-footer.d.ts +7 -0
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +5 -2
- package/dist/types/components.d.ts +55 -2
- package/package.json +1 -1
- package/dist/cjs/index-DGBnICb9.js +0 -2548
- package/dist/collection/utils/accessibility.js +0 -30
- package/dist/components/p-B4-NZ0-T.js +0 -1
- package/dist/components/p-BkkKUMC2.js +0 -1
- package/dist/components/p-D7QKvdhL.js +0 -1
- package/dist/components/p-DDTzvbMK.js +0 -1
- package/dist/components/p-Df03ehYR.js +0 -1
- package/dist/components/p-Do9F2RTX.js +0 -1
- package/dist/esm/index-VFN9WV0d.js +0 -2519
- package/dist/tegel/p-1040713f.entry.js +0 -1
- package/dist/tegel/p-17e2a780.entry.js +0 -1
- package/dist/tegel/p-1a6cc08f.entry.js +0 -1
- package/dist/tegel/p-21e5d59e.entry.js +0 -1
- package/dist/tegel/p-25ad3b5a.entry.js +0 -1
- package/dist/tegel/p-2664fa80.entry.js +0 -1
- package/dist/tegel/p-2a35cd68.entry.js +0 -1
- package/dist/tegel/p-2bcff4fd.entry.js +0 -1
- package/dist/tegel/p-34a68c03.entry.js +0 -1
- package/dist/tegel/p-3a9e4918.entry.js +0 -1
- package/dist/tegel/p-4942f086.entry.js +0 -1
- package/dist/tegel/p-4f6aac2c.entry.js +0 -1
- package/dist/tegel/p-5aee8773.entry.js +0 -1
- package/dist/tegel/p-5d18b544.entry.js +0 -1
- package/dist/tegel/p-7ca5da7e.entry.js +0 -1
- package/dist/tegel/p-7de064e6.entry.js +0 -1
- package/dist/tegel/p-7ea3179a.entry.js +0 -1
- package/dist/tegel/p-88a89bae.entry.js +0 -1
- package/dist/tegel/p-937a4ef1.entry.js +0 -1
- package/dist/tegel/p-9f63eb3b.entry.js +0 -1
- package/dist/tegel/p-VFN9WV0d.js +0 -2
- package/dist/tegel/p-a476f37f.entry.js +0 -1
- package/dist/tegel/p-ac3dd42b.entry.js +0 -1
- package/dist/tegel/p-aea4aea5.entry.js +0 -1
- package/dist/tegel/p-beb70800.entry.js +0 -1
- package/dist/tegel/p-cb8b1417.entry.js +0 -1
- package/dist/tegel/p-d0842e39.entry.js +0 -1
- package/dist/tegel/p-d9faf299.entry.js +0 -1
- package/dist/tegel/p-dd44ee2d.entry.js +0 -1
- package/dist/tegel/p-e676b230.entry.js +0 -1
- package/dist/tegel/p-ebdddea6.entry.js +0 -1
- package/dist/tegel/p-f7518ea3.entry.js +0 -1
- package/dist/types/utils/accessibility.d.ts +0 -14
|
@@ -64,12 +64,12 @@ export class TdsTableBody {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '60769d20b1be88e96358e43d627188860b85f580', "data-selected-rows": this.multiselectArrayJSON, class: {
|
|
68
68
|
'tds-table--zebra-mode-rows-odd': this.zebraMode === 'rows-odd',
|
|
69
69
|
'tds-table--zebra-mode-rows-even': this.zebraMode === 'rows-even',
|
|
70
70
|
'tds-table--zebra-mode-columns-odd': this.zebraMode === 'columns-odd',
|
|
71
71
|
'tds-table--zebra-mode-columns-even': this.zebraMode === 'columns-even',
|
|
72
|
-
} }, h("slot", { key: '
|
|
72
|
+
} }, h("slot", { key: '7f2451f49224792b663dacc60f66f33d2e9e70de' })));
|
|
73
73
|
}
|
|
74
74
|
static get is() { return "tds-table-body"; }
|
|
75
75
|
static get originalStyleUrls() {
|
|
@@ -23,7 +23,7 @@ export class TdsTableBodyCell {
|
|
|
23
23
|
event.detail.changed
|
|
24
24
|
.filter((changedProp) => relevantTableProps.includes(changedProp))
|
|
25
25
|
.forEach((changedProp) => {
|
|
26
|
-
if (
|
|
26
|
+
if (!(changedProp in this)) {
|
|
27
27
|
throw new Error(`Table prop is not supported: ${changedProp}`);
|
|
28
28
|
}
|
|
29
29
|
this[changedProp] = event.detail[changedProp];
|
|
@@ -82,13 +82,13 @@ export class TdsTableBodyCell {
|
|
|
82
82
|
// Conditionally set padding style
|
|
83
83
|
padding: paddingStyle,
|
|
84
84
|
};
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: '2cd26f5d02b28c1ecfdc85449ba9ada8bdf659d1', class: {
|
|
86
86
|
'tds-table__body-cell': true,
|
|
87
87
|
'tds-table__body-cell--hover': this.activeSorting,
|
|
88
88
|
'tds-table__compact': this.compactDesign,
|
|
89
89
|
'tds-table--divider': this.verticalDividers,
|
|
90
90
|
'tds-table--no-min-width': this.noMinWidth,
|
|
91
|
-
} }, h("td", { key: '
|
|
91
|
+
} }, h("td", { key: 'b92b6d629c144ec689439501b6d3349c5781addf', style: dynamicStyles, colSpan: this.colSpan, rowSpan: this.rowSpan }, this.cellValue, h("slot", { key: 'eacfe800394785849f4e5460a8590367cd4d9bce' }))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "tds-body-cell"; }
|
|
94
94
|
static get encapsulation() { return "shadow"; }
|
|
@@ -241,7 +241,7 @@ export class TdsTableBodyCell {
|
|
|
241
241
|
static get elementRef() { return "host"; }
|
|
242
242
|
static get listeners() {
|
|
243
243
|
return [{
|
|
244
|
-
"name": "
|
|
244
|
+
"name": "internalTdsTablePropChange",
|
|
245
245
|
"method": "internalTdsPropChangeListener",
|
|
246
246
|
"target": "body",
|
|
247
247
|
"capture": false,
|
package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js
CHANGED
|
@@ -82,7 +82,7 @@ export class TdsTableBodyInputWrapper {
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
render() {
|
|
85
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: '1a61abe1ae33890adae2565298086fe3d55f0cf0', class: {
|
|
86
86
|
'focused-input-wrapper': this.inputFocused,
|
|
87
87
|
'show-icon': this.showIcon,
|
|
88
88
|
'tds-table__compact': this.compactDesign,
|
|
@@ -74,13 +74,13 @@ export class TdsTableBodyRow {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '2d1a875e4fcc34fd35edbc2379bb333344da26f6', tabindex: this.clickable ? '0' : null, class: {
|
|
78
78
|
'tds-table__row': true,
|
|
79
79
|
'tds-table__row--selected': this.selected,
|
|
80
80
|
'tds-table__compact': this.compactDesign,
|
|
81
81
|
'tds-table--divider': this.verticalDividers,
|
|
82
82
|
'tds-table__row--clickable': this.clickable,
|
|
83
|
-
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e), role: "row" }, this.multiselect && (h("td", { key: '
|
|
83
|
+
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e), role: "row" }, this.multiselect && (h("td", { key: '454c4ebce72cc16c4bd0ea1d3ae57a6f1c9a6f7f', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: 'dfdc49c6156339ded9cd1ec0d0660d561334508e', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("slot", { key: '823f0be11a3c370a08439cecc0725485bf7ca20c' })));
|
|
84
84
|
}
|
|
85
85
|
static get is() { return "tds-table-body-row"; }
|
|
86
86
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css
CHANGED
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
cursor: pointer;
|
|
59
59
|
}
|
|
60
60
|
:host .tds-table__expand-control-container .tds-table__expand-input:focus {
|
|
61
|
-
outline: 2px solid var(--
|
|
62
|
-
box-shadow: 0 0 0 1px var(--
|
|
61
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
62
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
63
63
|
outline-offset: 1px;
|
|
64
64
|
z-index: 1;
|
|
65
65
|
}
|
package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js
CHANGED
|
@@ -138,27 +138,27 @@ export class TdsTableBodyRowExpandable {
|
|
|
138
138
|
}
|
|
139
139
|
render() {
|
|
140
140
|
var _a;
|
|
141
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: '4a19eecaddbe092c48da935ad1c9f3763f6c1bbf', class: {
|
|
142
142
|
'tds-table__row': true,
|
|
143
143
|
'tds-table__row-expand--active': this.isExpanded,
|
|
144
144
|
'tds-table__compact': this.compactDesign,
|
|
145
145
|
'tds-table--divider': this.verticalDividers,
|
|
146
|
-
} }, h("tr", { key: '
|
|
146
|
+
} }, h("tr", { key: '6724479fd5086ffd1d3f445c93fae3552f58cd08', id: `expandable-content-${this.rowId}`, class: {
|
|
147
147
|
'tds-table__row': true,
|
|
148
148
|
'tds-table__row--expanded': this.isExpanded,
|
|
149
149
|
'tds-table__row--selected': this.selected,
|
|
150
|
-
}, part: "row" }, this.multiselect && (h("td", { key: '
|
|
150
|
+
}, part: "row" }, this.multiselect && (h("td", { key: '6ff69b0dae005b397c56ed1eb354ad854ae5c007', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '525f6c830cfb5540659788f160fb385021d2d61a', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("td", { key: '1cc72fefa3ddf8faa7c92d51016ea3284b5e0ade', class: {
|
|
151
151
|
'tds-table__cell-expand': true,
|
|
152
|
-
} }, h("label", { key: '
|
|
152
|
+
} }, h("label", { key: 'd508a4cb105d5c7b6a25c842ee9c17d9bcc711d9', class: "tds-table__expand-control-container" }, h("input", { key: '02309a59872696a39bc14dc569353f6718ca72de', class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded, "aria-expanded": this.isExpanded ? 'true' : 'false', "aria-controls": `expandable-content-${this.rowId}`, "aria-label": this.tdsAriaLabelExpandButton }), h("span", { key: '048779f2625c0a7af929a450dedca38bad96ff1b', class: "tds-expendable-row-icon" }, h("svg", { key: '8ce707e13f806d2de2c9b2dae7b41366f49e7676', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '1d093d47b272fa218ab556a962ed34b5388128ce', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M4.273 9.783a1 1 0 0 1 1.415 0l9.888 9.888a.6.6 0 0 0 .848 0l9.888-9.888a1 1 0 1 1 1.415 1.414l-9.889 9.889a2.6 2.6 0 0 1-3.677 0l-9.888-9.889a1 1 0 0 1 0-1.414Z", fill: "currentColor" }))))), h("slot", { key: '5805b8699723c5ba1d1911bac9f83651b8f79503' })), h("tr", { key: '087e3a6f608f647d51087dc0952e6a24c631520b', class: {
|
|
153
153
|
'tds-table__row-expand': true,
|
|
154
154
|
'tds-table__row-expand--expanded': this.isExpanded,
|
|
155
|
-
}, part: "expand-row" }, h("td", { key: '
|
|
155
|
+
}, part: "expand-row" }, h("td", { key: 'd561520155d374db9e4c255a48ed5fb24c7f2718', class: {
|
|
156
156
|
'tds-table__cell-expand': true,
|
|
157
157
|
'tds-table__cell-expand--overflow-hidden': this.overflow === 'hidden',
|
|
158
158
|
'tds-table__cell-expand--overflow-visible': this.overflow === 'visible',
|
|
159
|
-
}, part: "expand-row-cell", colSpan: (_a = this.columnsNumber) !== null && _a !== void 0 ? _a : undefined }, h("div", { key: '
|
|
159
|
+
}, part: "expand-row-cell", colSpan: (_a = this.columnsNumber) !== null && _a !== void 0 ? _a : undefined }, h("div", { key: 'f8e443b5141f451fd389ab995b3a8aa3ed44df70', style: {
|
|
160
160
|
overflow: this.overflow,
|
|
161
|
-
} }, h("slot", { key: '
|
|
161
|
+
} }, h("slot", { key: '2c37f0136cab3b87307c16d55062f4aebc623e55', name: "expand-row" }))))));
|
|
162
162
|
}
|
|
163
163
|
static get is() { return "tds-table-body-row-expandable"; }
|
|
164
164
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,12 +14,18 @@ export class TdsTableFooter {
|
|
|
14
14
|
this.pagination = false;
|
|
15
15
|
/** Sets the pagination number. */
|
|
16
16
|
this.paginationValue = 1;
|
|
17
|
+
/** Set pagination label. Use {pages} as placeholder for the total number of pages. */
|
|
18
|
+
this.paginationLabel = 'of {pages} pages';
|
|
17
19
|
/** Enable rows per page dropdown */
|
|
18
20
|
this.rowsperpage = true;
|
|
21
|
+
/** Set rows per page label. */
|
|
22
|
+
this.rowsPerPageLabel = 'Rows per page';
|
|
19
23
|
/** Set available rows per page values. <br/> If pagination is enabled, this array must be defined and controlled by the consumer of Tegel */
|
|
20
24
|
this.rowsPerPageValues = [10, 25, 50];
|
|
21
25
|
/** Set rows per page dropdown open direction */
|
|
22
26
|
this.rowsPerPageDropdownOpenDirection = 'auto';
|
|
27
|
+
/** Set rows per page dropdown aria label. */
|
|
28
|
+
this.rowsPerPageDropdownAriaLabel = 'Select rows per page';
|
|
23
29
|
/** Sets the number of pages. <br/> If pagination is enabled, this value must be defined and controlled by the consumer of Tegel. */
|
|
24
30
|
this.pages = 0;
|
|
25
31
|
/** <b>Client override</b> Used to set the column span of the footer. Use as fallback if the automatic count of columns fails. */
|
|
@@ -184,16 +190,24 @@ export class TdsTableFooter {
|
|
|
184
190
|
}
|
|
185
191
|
return styles;
|
|
186
192
|
}
|
|
193
|
+
renderPaginationLabel() {
|
|
194
|
+
const pagesPlaceholder = '{pages}';
|
|
195
|
+
const paginationLabelParts = this.paginationLabel.split(pagesPlaceholder);
|
|
196
|
+
if (paginationLabelParts.length === 1) {
|
|
197
|
+
return this.paginationLabel;
|
|
198
|
+
}
|
|
199
|
+
return paginationLabelParts.flatMap((part, index) => index === paginationLabelParts.length - 1 ? [part] : [part, h("span", null, this.pages)]);
|
|
200
|
+
}
|
|
187
201
|
render() {
|
|
188
202
|
var _a;
|
|
189
|
-
return (h(Host, { key: '
|
|
203
|
+
return (h(Host, { key: '8dc06e9c565e608dd02bf74a0328b515aaea31c2', class: {
|
|
190
204
|
'tds-table--compact': this.compactDesign,
|
|
191
205
|
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
192
|
-
}, style: this.getStyles() }, h("tr", { key: '
|
|
206
|
+
}, style: this.getStyles() }, h("tr", { key: '1a64b9023acc03204ad4219fd986b106334ff6e6', class: "tds-table__footer-row" }, h("td", { key: '815d2a7aaf4c98035fc0b1bdb4b7b7668f4a5e83', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '65dbb8f0ffd41242553775c6e42fff5c626d0017', class: "tds-table__pagination" }, h("div", { key: 'de880d869b550d94ab543dcb3182b354ce09cc45', class: "tds-table__row-selector" }, this.rowsperpage && ((_a = this.rowsPerPageValues) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("div", { key: '481589d46734bed1e77037003169d12373e6e169', class: "rows-per-page" }, h("p", { key: 'f054474b89ddb6cd3245b215c9095f445582f6a9' }, this.rowsPerPageLabel), h("tds-dropdown", { key: '066a6f324de1a0c83f9e15350b133e8de14f8259', modeVariant: "secondary", id: "rows-dropdown", class: "page-dropdown", size: "xs", tdsAriaLabel: this.rowsPerPageDropdownAriaLabel, defaultValue: `${this.rowsPerPageValue}`, onTdsChange: (event) => this.rowsPerPageChange(event), openDirection: this.rowsPerPageDropdownOpenDirection }, this.rowsPerPageValues.map((value) => (h("tds-dropdown-option", { value: `${value}` }, value))))))), h("div", { key: '598f908e641e97a7d02681e57534817a063b1bd8', class: "tds-table__page-selector" }, h("input", { key: '5cca773b5720451a74716aaa4be370285d9b34a5', ref: (element) => {
|
|
193
207
|
if (element) {
|
|
194
208
|
this.inputElement = element;
|
|
195
209
|
}
|
|
196
|
-
}, class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: '
|
|
210
|
+
}, class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: '2fc916ca072a1f109408025f34e55efec40aa661', class: "tds-table__footer-text" }, this.renderPaginationLabel()), h("button", { key: '843fbd54ec2f77f4b4a494ed93ba6fa82ba169e7', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.firstPage() }, h("tds-icon", { key: '1f79a5af16a33b6635cd1533ac9852852bd6e6d6', name: "skip_backwards", size: "20px" })), h("button", { key: '3b7c30d4f1c167001bc42bde4523436aa807e501', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: '79cbe3606b633611e63cffc674f2552c496479ef', name: "chevron_left", size: "20px" })), h("button", { key: '7251a8abc9628336696267c8a7c9296f078c3304', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: 'e06b07d0aca6cfb3a053391ac92f0950b6d9dc30', name: "chevron_right", size: "20px" })), h("button", { key: 'f843cd3597e7419c174919254e28f5b94b9d184f', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.lastPage() }, h("tds-icon", { key: '5d217d4ff8ae825e1ac5cd31416b56dc04a323b3', name: "skip_forward", size: "20px" })))))))));
|
|
197
211
|
}
|
|
198
212
|
static get is() { return "tds-table-footer"; }
|
|
199
213
|
static get encapsulation() { return "shadow"; }
|
|
@@ -249,6 +263,26 @@ export class TdsTableFooter {
|
|
|
249
263
|
"attribute": "pagination-value",
|
|
250
264
|
"defaultValue": "1"
|
|
251
265
|
},
|
|
266
|
+
"paginationLabel": {
|
|
267
|
+
"type": "string",
|
|
268
|
+
"mutable": false,
|
|
269
|
+
"complexType": {
|
|
270
|
+
"original": "string",
|
|
271
|
+
"resolved": "string",
|
|
272
|
+
"references": {}
|
|
273
|
+
},
|
|
274
|
+
"required": false,
|
|
275
|
+
"optional": false,
|
|
276
|
+
"docs": {
|
|
277
|
+
"tags": [],
|
|
278
|
+
"text": "Set pagination label. Use {pages} as placeholder for the total number of pages."
|
|
279
|
+
},
|
|
280
|
+
"getter": false,
|
|
281
|
+
"setter": false,
|
|
282
|
+
"reflect": true,
|
|
283
|
+
"attribute": "pagination-label",
|
|
284
|
+
"defaultValue": "'of {pages} pages'"
|
|
285
|
+
},
|
|
252
286
|
"rowsperpage": {
|
|
253
287
|
"type": "boolean",
|
|
254
288
|
"mutable": false,
|
|
@@ -269,6 +303,26 @@ export class TdsTableFooter {
|
|
|
269
303
|
"attribute": "rowsperpage",
|
|
270
304
|
"defaultValue": "true"
|
|
271
305
|
},
|
|
306
|
+
"rowsPerPageLabel": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"mutable": false,
|
|
309
|
+
"complexType": {
|
|
310
|
+
"original": "string",
|
|
311
|
+
"resolved": "string",
|
|
312
|
+
"references": {}
|
|
313
|
+
},
|
|
314
|
+
"required": false,
|
|
315
|
+
"optional": false,
|
|
316
|
+
"docs": {
|
|
317
|
+
"tags": [],
|
|
318
|
+
"text": "Set rows per page label."
|
|
319
|
+
},
|
|
320
|
+
"getter": false,
|
|
321
|
+
"setter": false,
|
|
322
|
+
"reflect": true,
|
|
323
|
+
"attribute": "rows-per-page-label",
|
|
324
|
+
"defaultValue": "'Rows per page'"
|
|
325
|
+
},
|
|
272
326
|
"rowsPerPageValues": {
|
|
273
327
|
"type": "unknown",
|
|
274
328
|
"mutable": false,
|
|
@@ -307,6 +361,26 @@ export class TdsTableFooter {
|
|
|
307
361
|
"attribute": "rows-per-page-dropdown-open-direction",
|
|
308
362
|
"defaultValue": "'auto'"
|
|
309
363
|
},
|
|
364
|
+
"rowsPerPageDropdownAriaLabel": {
|
|
365
|
+
"type": "string",
|
|
366
|
+
"mutable": false,
|
|
367
|
+
"complexType": {
|
|
368
|
+
"original": "string",
|
|
369
|
+
"resolved": "string",
|
|
370
|
+
"references": {}
|
|
371
|
+
},
|
|
372
|
+
"required": false,
|
|
373
|
+
"optional": false,
|
|
374
|
+
"docs": {
|
|
375
|
+
"tags": [],
|
|
376
|
+
"text": "Set rows per page dropdown aria label."
|
|
377
|
+
},
|
|
378
|
+
"getter": false,
|
|
379
|
+
"setter": false,
|
|
380
|
+
"reflect": true,
|
|
381
|
+
"attribute": "rows-per-page-dropdown-aria-label",
|
|
382
|
+
"defaultValue": "'Select rows per page'"
|
|
383
|
+
},
|
|
310
384
|
"pages": {
|
|
311
385
|
"type": "number",
|
|
312
386
|
"mutable": false,
|
|
@@ -90,11 +90,11 @@ export class TdsTableHeaderRow {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
|
-
return (h(Host, { key: '
|
|
93
|
+
return (h(Host, { key: '3fd3b267495c342977831ff9733b1ac671e605c5', class: {
|
|
94
94
|
'tds-table--compact': this.compactDesign,
|
|
95
95
|
'tds-table--divider': this.verticalDividers,
|
|
96
96
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
97
|
-
} }, h("tr", { key: '
|
|
97
|
+
} }, h("tr", { key: 'f4ee401353ff0882aa3f9785721a44845c13ea2e' }, this.multiselect && (h("th", { key: '1a72135d5fbcc84c73aee71f6d6cf563dcef00a8', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, h("div", { key: 'beff818341bb016234d1b2ce312c950f8be7938d', class: "tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '796c809f3238345667e724c9a416fd807cf8b218', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (h("th", { key: 'd22a9cf5c6d23de55c184c7bec8972732ab32d49', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), h("slot", { key: '8e4ff0efe17956fb9ef8bf0a21e18bcd660515da' }))));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "tds-table-header"; }
|
|
100
100
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,6 +5,7 @@ const relevantTableProps = [
|
|
|
5
5
|
'compactDesign',
|
|
6
6
|
'noMinWidth',
|
|
7
7
|
'verticalDividers',
|
|
8
|
+
'sortColumnKey',
|
|
8
9
|
];
|
|
9
10
|
/**
|
|
10
11
|
* @slot <default> - <b>Unnamed slot.</b> For the cell contents.
|
|
@@ -67,11 +68,14 @@ export class TdsTableHeaderCell {
|
|
|
67
68
|
event.detail.changed
|
|
68
69
|
.filter((changedProp) => relevantTableProps.includes(changedProp))
|
|
69
70
|
.forEach((changedProp) => {
|
|
70
|
-
if (
|
|
71
|
+
if (!(changedProp in this)) {
|
|
71
72
|
throw new Error(`Table prop is not supported: ${changedProp}`);
|
|
72
73
|
}
|
|
73
74
|
this[changedProp] = event.detail[changedProp];
|
|
74
75
|
});
|
|
76
|
+
if (event.detail.changed.some((changedProp) => changedProp === 'sortColumnKey' || changedProp === 'sortDirection')) {
|
|
77
|
+
this.syncSortingStateFromTable();
|
|
78
|
+
}
|
|
75
79
|
}
|
|
76
80
|
}
|
|
77
81
|
updateOptionsContent(event) {
|
|
@@ -96,6 +100,21 @@ export class TdsTableHeaderCell {
|
|
|
96
100
|
var _a;
|
|
97
101
|
this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
|
|
98
102
|
});
|
|
103
|
+
this.syncSortingStateFromTable();
|
|
104
|
+
}
|
|
105
|
+
isSortDirection(sortDirection) {
|
|
106
|
+
return sortDirection === 'asc' || sortDirection === 'desc';
|
|
107
|
+
}
|
|
108
|
+
syncSortingStateFromTable() {
|
|
109
|
+
var _a;
|
|
110
|
+
const sortDirection = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.sortDirection;
|
|
111
|
+
if (!this.sortColumnKey || !this.isSortDirection(sortDirection)) {
|
|
112
|
+
this.sortedByMyKey = false;
|
|
113
|
+
this.sortingDirection = undefined;
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
this.sortedByMyKey = this.sortable && this.cellKey === this.sortColumnKey;
|
|
117
|
+
this.sortingDirection = this.sortedByMyKey ? sortDirection : undefined;
|
|
99
118
|
}
|
|
100
119
|
componentWillRender() {
|
|
101
120
|
// if text alignment matches any of the acceptable values, use it. Otherwise, set "left" as default
|
|
@@ -118,7 +137,7 @@ export class TdsTableHeaderCell {
|
|
|
118
137
|
return 'none';
|
|
119
138
|
}
|
|
120
139
|
render() {
|
|
121
|
-
return (h(Host, { key: '
|
|
140
|
+
return (h(Host, { key: 'fa26adb6bbc2221337613d4e0cdbd9d356c97a36', class: {
|
|
122
141
|
'tds-table__header-cell': true,
|
|
123
142
|
'tds-table__header-cell--sortable': this.sortable,
|
|
124
143
|
'tds-table__header-cell--is-sorted': this.sortedByMyKey,
|
|
@@ -129,7 +148,7 @@ export class TdsTableHeaderCell {
|
|
|
129
148
|
'tds-table--extra-column': this.multiselect || this.expandableRows,
|
|
130
149
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
131
150
|
'tds-table--no-padding': this.disablePadding,
|
|
132
|
-
} }, h("th", { key: '
|
|
151
|
+
} }, h("th", { key: '93d822a9b0c7fb7ef5a45a2440057afc8a8bd962', style: { minWidth: this.customWidth }, onMouseOver: () => this.onHeadCellHover(this.cellKey), onFocus: () => this.onHeadCellHover(this.cellKey), onMouseLeave: () => this.onHeadCellHover(''), onBlur: () => this.onHeadCellHover(''), "aria-sort": this.getAriaSort(), colSpan: this.colSpan, rowSpan: this.rowSpan }, this.headerCellContent())));
|
|
133
152
|
}
|
|
134
153
|
static get is() { return "tds-header-cell"; }
|
|
135
154
|
static get encapsulation() { return "shadow"; }
|
|
@@ -340,7 +359,8 @@ export class TdsTableHeaderCell {
|
|
|
340
359
|
"multiselect": {},
|
|
341
360
|
"enableToolbarDesign": {},
|
|
342
361
|
"tableId": {},
|
|
343
|
-
"expandableRows": {}
|
|
362
|
+
"expandableRows": {},
|
|
363
|
+
"sortColumnKey": {}
|
|
344
364
|
};
|
|
345
365
|
}
|
|
346
366
|
static get events() {
|
|
@@ -418,7 +438,7 @@ export class TdsTableHeaderCell {
|
|
|
418
438
|
static get elementRef() { return "host"; }
|
|
419
439
|
static get listeners() {
|
|
420
440
|
return [{
|
|
421
|
-
"name": "
|
|
441
|
+
"name": "internalTdsTablePropChange",
|
|
422
442
|
"method": "internalTdsPropChangeListener",
|
|
423
443
|
"target": "body",
|
|
424
444
|
"capture": false,
|
package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js
CHANGED
|
@@ -64,7 +64,7 @@ export class TdsTableHeaderInputWrapper {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '524d664d605a1cefb1fc700cf62a31976e85de2c', class: {
|
|
68
68
|
'focused-input-wrapper': this.inputFocused,
|
|
69
69
|
'show-icon': this.showIcon,
|
|
70
70
|
'tds-table__compact': this.compactDesign,
|
|
@@ -73,10 +73,10 @@ export class TdsTableToolbar {
|
|
|
73
73
|
return styles;
|
|
74
74
|
}
|
|
75
75
|
render() {
|
|
76
|
-
return (h(Host, { key: '
|
|
76
|
+
return (h(Host, { key: '82de92eb66d3592648321ec69f571a7f8562870d', class: {
|
|
77
77
|
'tds-table--compact': this.compactDesign,
|
|
78
78
|
'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
79
|
-
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: '
|
|
79
|
+
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: '87aff8f8230e0289217e9b4ba276fd90adeed20d', class: "tds-table__upper-bar-flex" }, h("div", { key: 'c4cd83ece587f591ac7532580cd6d52f82be3cf6', class: "tds-table__actionbar-left" }, this.tableTitle && (h("caption", { key: '5305f59a0e6c97dded2cf07fe78738d829ea862e', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle)), h("slot", { key: 'c76b2d1bd6dcc3ae00cbe8ebc217e3de2b77a16e', name: "start" })), h("div", { key: 'f06062c8f1c11ff05d41aa6b2a5811899036b240', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '0b59c9b54861d4c02a5ec0861d52120f834f1208', class: "tds-table__searchbar" }, h("input", { key: '6b06fb4aa86958c44c7fc8d1eeaa5bd895e52b82', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), h("span", { key: '3ee299d71b855f904b8b478d8d58e058aefd66b8', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '7beaa148dfa57c227534c5015a2c6ccd924bb921', name: "search", size: "20px" })))), h("slot", { key: '0d88dc478526afcfe25dc56b9d3b8426c48ba8a7', name: "end" })))));
|
|
80
80
|
}
|
|
81
81
|
static get is() { return "tds-table-toolbar"; }
|
|
82
82
|
static get encapsulation() { return "shadow"; }
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
border: none;
|
|
23
23
|
}
|
|
24
24
|
:host ::slotted(*:focus-within)::before {
|
|
25
|
-
outline: 2px solid var(--
|
|
26
|
-
box-shadow: 0 0 0 1px var(--
|
|
25
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
26
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
27
27
|
outline-offset: 1px;
|
|
28
28
|
z-index: 1;
|
|
29
29
|
content: "";
|
|
@@ -35,10 +35,10 @@ export class TdsFolderTab {
|
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return (h(Host, { key: '
|
|
38
|
+
return (h(Host, { key: '5b4c8d2ab085c9be43403c2330ffb1dfd187cd08', "aria-selected": this.selected }, h("div", { key: 'dadda798fcce1cc0dc47ebbf50ce1c9b439052ab', 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: '4b4a1ee2671fb5b298588a74c44b056bb58081d5' }))));
|
|
42
42
|
}
|
|
43
43
|
static get is() { return "tds-folder-tab"; }
|
|
44
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
}
|
|
56
56
|
:host .scroll-right-button:focus-within::before,
|
|
57
57
|
:host .scroll-left-button:focus-within::before {
|
|
58
|
-
outline: 2px solid var(--
|
|
59
|
-
box-shadow: 0 0 0 1px var(--
|
|
58
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
59
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
60
60
|
outline-offset: 1px;
|
|
61
61
|
z-index: 1;
|
|
62
62
|
content: "";
|
|
@@ -45,7 +45,7 @@ export class TdsFolderTabs {
|
|
|
45
45
|
};
|
|
46
46
|
this.addEventListenerToTabs = () => {
|
|
47
47
|
this.tabElements = Array.from(this.host.children);
|
|
48
|
-
this.tabElements.
|
|
48
|
+
this.tabElements.forEach((item, index) => {
|
|
49
49
|
const clickHandler = () => {
|
|
50
50
|
if (!item.disabled) {
|
|
51
51
|
const tdsChangeEvent = this.tdsChange.emit({
|
|
@@ -60,7 +60,6 @@ export class TdsFolderTabs {
|
|
|
60
60
|
};
|
|
61
61
|
item.addEventListener('click', clickHandler);
|
|
62
62
|
this.clickHandlers.set(item, clickHandler); // Store the handler in WeakMap
|
|
63
|
-
return item;
|
|
64
63
|
});
|
|
65
64
|
};
|
|
66
65
|
this.removeEventListenerFromTabs = () => {
|
|
@@ -178,9 +177,9 @@ export class TdsFolderTabs {
|
|
|
178
177
|
this.removeEventListenerFromTabs();
|
|
179
178
|
}
|
|
180
179
|
render() {
|
|
181
|
-
return (h(Host, { key: '
|
|
180
|
+
return (h(Host, { key: '5a514ad6fbd392b08496a09a20598ef5475094c8', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'fa544277ee2adb5b4cda82972e4027cf411fa9d1', class: "wrapper", ref: (el) => {
|
|
182
181
|
this.navWrapperElement = el;
|
|
183
|
-
} }, h("button", { key: '
|
|
182
|
+
} }, h("button", { key: 'cb2b3bb4d4bc420c4a916e6731c226bc3ebd8c6b', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: '2cfece96b48343b5caa87952457439932e178eda', name: "chevron_left", size: "20px" })), h("slot", { key: '2813c0254fd9a8fbce52e4c1d27b8eb344314137', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '08e2612873a7311ff35a0fecc1e72bb020a30cf3', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: 'd90995179f38202e249a889ce9e909d9218184e0', name: "chevron_right", size: "20px" })))));
|
|
184
183
|
}
|
|
185
184
|
static get is() { return "tds-folder-tabs"; }
|
|
186
185
|
static get encapsulation() { return "shadow"; }
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
top: 3px;
|
|
31
31
|
bottom: 3px;
|
|
32
32
|
outline: 2px solid var(--tds-blue-400);
|
|
33
|
-
outline: 2px solid var(--
|
|
34
|
-
box-shadow: 0 0 0 1px var(--
|
|
33
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
34
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
35
35
|
outline-offset: 1px;
|
|
36
36
|
z-index: 1;
|
|
37
37
|
}
|
|
@@ -31,11 +31,11 @@ export class TdsInlineTab {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'cddeb55abe1eca0ffeb7bbd3e8b773868aacea9a', "aria-selected": this.selected }, h("div", { key: 'e53a5dd3857c24301858678735f18e398f3e44c4', class: {
|
|
35
35
|
'inline-tab-item': true,
|
|
36
36
|
'selected': this.selected,
|
|
37
37
|
'disabled': this.disabled,
|
|
38
|
-
} }, h("slot", { key: '
|
|
38
|
+
} }, h("slot", { key: 'bebb2c7a36479a9f2139420c7b6aafa89b1d03e7' }))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "tds-inline-tab"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
content: "";
|
|
73
73
|
position: absolute;
|
|
74
74
|
inset: 3px;
|
|
75
|
-
outline: 2px solid var(--
|
|
76
|
-
box-shadow: 0 0 0 1px var(--
|
|
75
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
76
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
77
77
|
outline-offset: 1px;
|
|
78
78
|
z-index: 1;
|
|
79
79
|
}
|
|
@@ -46,7 +46,7 @@ export class TdsInlineTabs {
|
|
|
46
46
|
};
|
|
47
47
|
this.addEventListenerToTabs = () => {
|
|
48
48
|
this.tabElements = Array.from(this.host.children);
|
|
49
|
-
this.tabElements.
|
|
49
|
+
this.tabElements.forEach((item, index) => {
|
|
50
50
|
const clickHandler = () => {
|
|
51
51
|
if (!item.disabled) {
|
|
52
52
|
const tdsChangeEvent = this.tdsChange.emit({
|
|
@@ -61,7 +61,6 @@ export class TdsInlineTabs {
|
|
|
61
61
|
};
|
|
62
62
|
item.addEventListener('click', clickHandler);
|
|
63
63
|
this.clickHandlers.set(item, clickHandler); // Store the handler in WeakMap
|
|
64
|
-
return item;
|
|
65
64
|
});
|
|
66
65
|
};
|
|
67
66
|
this.removeEventListenerFromTabs = () => {
|
|
@@ -179,9 +178,9 @@ export class TdsInlineTabs {
|
|
|
179
178
|
this.removeEventListenerFromTabs();
|
|
180
179
|
}
|
|
181
180
|
render() {
|
|
182
|
-
return (h(Host, { key: '
|
|
181
|
+
return (h(Host, { key: '38532db9803b29ef6de96f338c14c35b4205b5d7', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}`, style: { '--padding-left': `${this.leftPadding}px` } }, h("div", { key: 'd093194a98d9c92223bd5db6419ad90a984d9238', class: "wrapper", ref: (el) => {
|
|
183
182
|
this.navWrapperElement = el;
|
|
184
|
-
} }, h("button", { key: '
|
|
183
|
+
} }, h("button", { key: '24a52205d7b5bd708397a26ad9749cfd8b121262', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: '28006de41f8488e74711b6dfd82ebb29507d78c8', name: "chevron_left", size: "20px" })), h("slot", { key: '7f8cea1755acf76a987d716fe293585f936c4bfa', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'bacebe334ce63ff55cdb38ef5ab32b88fef72151', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: 'c0f5a5ed3ad7c2ebcb059d01542a7b6c69ac6529', name: "chevron_right", size: "20px" })))));
|
|
185
184
|
}
|
|
186
185
|
static get is() { return "tds-inline-tabs"; }
|
|
187
186
|
static get encapsulation() { return "shadow"; }
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
right: 0;
|
|
29
29
|
top: 3px;
|
|
30
30
|
bottom: 3px;
|
|
31
|
-
outline: 2px solid var(--
|
|
32
|
-
box-shadow: 0 0 0 1px var(--
|
|
31
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
32
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
33
33
|
outline-offset: 1px;
|
|
34
34
|
z-index: 1;
|
|
35
35
|
}
|
|
@@ -31,8 +31,8 @@ export class TdsNavigationTab {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
35
|
-
${this.disabled ? 'disabled' : ''}` }, h("slot", { key: '
|
|
34
|
+
return (h(Host, { key: '7a5504183a5719b59900c52e6193755245e6caf9' }, h("div", { key: '5c514ced6f952df12067c414396ce2b8398c6cb9', class: `navigation-tab-item ${this.selected ? 'selected' : ''}
|
|
35
|
+
${this.disabled ? 'disabled' : ''}` }, h("slot", { key: '382acd34bdd7a3a7be15fb539978be51c5040482' }))));
|
|
36
36
|
}
|
|
37
37
|
static get is() { return "tds-navigation-tab"; }
|
|
38
38
|
static get encapsulation() { return "shadow"; }
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
content: "";
|
|
73
73
|
position: absolute;
|
|
74
74
|
inset: 3px;
|
|
75
|
-
outline: 2px solid var(--
|
|
76
|
-
box-shadow: 0 0 0 1px var(--
|
|
75
|
+
outline: 2px solid var(--component--focus-ring-color-strong);
|
|
76
|
+
box-shadow: 0 0 0 1px var(--component--focus-ring-color-discrete);
|
|
77
77
|
outline-offset: 1px;
|
|
78
78
|
z-index: 1;
|
|
79
79
|
}
|