@scania/tegel 1.48.0 → 1.48.1
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-body-cell.cjs.entry.js +3 -3
- package/dist/cjs/tds-button_2.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 +3 -3
- package/dist/cjs/tds-datetime.cjs.entry.js +3 -3
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +6 -6
- 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 +4 -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 +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 +2 -2
- package/dist/cjs/tds-header.cjs.entry.js +1 -1
- package/dist/cjs/tds-icon.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +4 -10
- package/dist/cjs/tds-link.cjs.entry.js +2 -2
- package/dist/cjs/tds-message.cjs.entry.js +2 -2
- package/dist/cjs/tds-modal.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +4 -4
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +3 -3
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-popover-menu.cjs.entry.js +3 -3
- package/dist/cjs/tds-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +3 -3
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +2 -2
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +2 -2
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-slider.cjs.entry.js +8 -8
- package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tds-step.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +34 -9
- 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 +56 -6
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-header.cjs.entry.js +3 -3
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/tds-table.cjs.entry.js +8 -5
- package/dist/cjs/tds-tag.cjs.entry.js +2 -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 +3 -3
- package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/chip/chip.css +20 -19
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/datetime/datetime.js +3 -3
- 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 +5 -5
- 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.css +1 -0
- package/dist/collection/components/header/header-title/header-title.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/link/link.js +2 -2
- package/dist/collection/components/message/message.js +2 -2
- package/dist/collection/components/modal/modal.js +2 -2
- package/dist/collection/components/popover-canvas/popover-canvas.js +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.js +2 -2
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +2 -2
- package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +1 -1
- package/dist/collection/components/slider/slider.js +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.js +12 -5
- package/dist/collection/components/table/table-body/table-body.js +2 -2
- package/dist/collection/components/table/table-body-cell/table-body-cell.css +11 -8
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +40 -2
- 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 +26 -1
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +89 -9
- package/dist/collection/components/table/table-footer/table-footer.js +59 -6
- package/dist/collection/components/table/table-header/table-header.css +0 -3
- package/dist/collection/components/table/table-header/table-header.js +2 -2
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +34 -27
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +41 -3
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +1 -1
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +3 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +3 -9
- 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/tag/tag.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 +3 -3
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/components/{p-9AbeYlK8.js → p-BLhZliIO.js} +1 -1
- package/dist/components/{p-BrDlXJ4P.js → p-BMeMtNu0.js} +1 -1
- package/dist/components/{p-Dh34QRlJ.js → p-BYl_hs2I.js} +1 -1
- package/dist/components/{p-MrnWQiwK.js → p-BonnqD8w.js} +1 -1
- package/dist/components/{p-BFcLEwMn.js → p-Bp11uQum.js} +1 -1
- package/dist/components/{p-BfVaBQQ6.js → p-C4MTsi5W.js} +1 -1
- package/dist/components/{p-BWqvStj8.js → p-C9VPZFHA.js} +1 -1
- package/dist/components/{p-BuqEW3pN.js → p-CKbZVUR2.js} +1 -1
- package/dist/components/{p-CWEJdWOg.js → p-CuBmZ6sl.js} +1 -1
- package/dist/components/{p-OdH1OynJ.js → p-CwklLnIa.js} +1 -1
- package/dist/components/{p-dspMBqQE.js → p-CzyhBRHW.js} +1 -1
- package/dist/components/p-DGE6WcOB.js +1 -0
- package/dist/components/{p-Civ53ZSy.js → p-DdOzmmZe.js} +1 -1
- package/dist/components/p-DjZ0RkWr.js +1 -0
- package/dist/components/p-DlkBTA_R.js +1 -0
- package/dist/components/{p-C0fx1H4h.js → p-hVetZOGH.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-card.js +1 -1
- package/dist/components/tds-chip.js +1 -1
- package/dist/components/tds-core-header-item.js +1 -1
- package/dist/components/tds-datetime.js +1 -1
- 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 +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-footer.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-list-user.js +1 -1
- package/dist/components/tds-header-dropdown-list.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-grid-title.js +1 -1
- package/dist/components/tds-header-launcher-grid.js +1 -1
- package/dist/components/tds-header-launcher-list-item.js +1 -1
- package/dist/components/tds-header-launcher-list-title.js +1 -1
- package/dist/components/tds-header-launcher-list.js +1 -1
- package/dist/components/tds-header-launcher.js +1 -1
- 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 +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-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/loader.js +1 -1
- package/dist/esm/tds-body-cell.entry.js +3 -3
- package/dist/esm/tds-button_2.entry.js +1 -1
- package/dist/esm/tds-chip.entry.js +2 -2
- package/dist/esm/tds-core-header-item_2.entry.js +3 -3
- package/dist/esm/tds-datetime.entry.js +3 -3
- package/dist/esm/tds-dropdown_2.entry.js +6 -6
- 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 +4 -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 +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 +2 -2
- package/dist/esm/tds-header.entry.js +1 -1
- package/dist/esm/tds-icon.entry.js +1 -1
- package/dist/esm/tds-inline-tab.entry.js +2 -2
- package/dist/esm/tds-inline-tabs.entry.js +4 -10
- package/dist/esm/tds-link.entry.js +2 -2
- package/dist/esm/tds-message.entry.js +2 -2
- package/dist/esm/tds-modal.entry.js +2 -2
- package/dist/esm/tds-navigation-tab.entry.js +2 -2
- package/dist/esm/tds-navigation-tabs.entry.js +4 -4
- package/dist/esm/tds-popover-canvas.entry.js +3 -3
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-popover-menu-item.entry.js +2 -2
- package/dist/esm/tds-popover-menu.entry.js +3 -3
- package/dist/esm/tds-radio-button.entry.js +2 -2
- package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-collapse-button.entry.js +3 -3
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +2 -2
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +2 -2
- package/dist/esm/tds-side-menu-dropdown.entry.js +3 -3
- package/dist/esm/tds-side-menu-item.entry.js +2 -2
- package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
- package/dist/esm/tds-side-menu-user-image_2.entry.js +2 -2
- package/dist/esm/tds-side-menu-user.entry.js +1 -1
- package/dist/esm/tds-slider.entry.js +8 -8
- package/dist/esm/tds-spinner.entry.js +1 -1
- package/dist/esm/tds-step.entry.js +1 -1
- package/dist/esm/tds-table-body-row-expandable.entry.js +34 -9
- 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 +56 -6
- package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
- package/dist/esm/tds-table-header.entry.js +3 -3
- package/dist/esm/tds-table-toolbar.entry.js +2 -2
- package/dist/esm/tds-table.entry.js +8 -5
- package/dist/esm/tds-tag.entry.js +2 -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 +3 -3
- package/dist/esm/tds-tooltip.entry.js +2 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-0056a170.entry.js +1 -0
- package/dist/tegel/p-01f5774a.entry.js +1 -0
- package/dist/tegel/{p-4748cad9.entry.js → p-0426cbc9.entry.js} +1 -1
- package/dist/tegel/{p-182d7066.entry.js → p-117b6fd9.entry.js} +1 -1
- package/dist/tegel/p-11f23ac6.entry.js +1 -0
- package/dist/tegel/{p-82743378.entry.js → p-12d791e7.entry.js} +1 -1
- package/dist/tegel/{p-567cbbe3.entry.js → p-158fd791.entry.js} +1 -1
- package/dist/tegel/{p-c2ffb85d.entry.js → p-15bc881b.entry.js} +1 -1
- package/dist/tegel/{p-8eaea9b6.entry.js → p-182669b3.entry.js} +1 -1
- package/dist/tegel/{p-ea500860.entry.js → p-1f7bf292.entry.js} +1 -1
- package/dist/tegel/{p-e64bc780.entry.js → p-1ff8bbed.entry.js} +1 -1
- package/dist/tegel/{p-9a6a1e5a.entry.js → p-2818d320.entry.js} +1 -1
- package/dist/tegel/{p-85e2b8b8.entry.js → p-2b1c9edf.entry.js} +1 -1
- package/dist/tegel/{p-f98f7716.entry.js → p-2eaf9959.entry.js} +1 -1
- package/dist/tegel/{p-daab519f.entry.js → p-2fa10d10.entry.js} +1 -1
- package/dist/tegel/{p-97c3349e.entry.js → p-44cbb1d0.entry.js} +1 -1
- package/dist/tegel/{p-66404c24.entry.js → p-45f611ce.entry.js} +1 -1
- package/dist/tegel/p-4df49756.entry.js +1 -0
- package/dist/tegel/{p-d0c0f219.entry.js → p-4ff91349.entry.js} +1 -1
- package/dist/tegel/{p-e8be1c01.entry.js → p-50593c6d.entry.js} +1 -1
- package/dist/tegel/{p-a4fc2b2c.entry.js → p-5492f7b1.entry.js} +1 -1
- package/dist/tegel/p-5af70803.entry.js +1 -0
- package/dist/tegel/{p-722edda3.entry.js → p-5b66a01d.entry.js} +1 -1
- package/dist/tegel/{p-3a9793ef.entry.js → p-60c4deaf.entry.js} +1 -1
- package/dist/tegel/{p-9b2663c2.entry.js → p-62e7169c.entry.js} +1 -1
- package/dist/tegel/p-630d0a10.entry.js +1 -0
- package/dist/tegel/{p-3a4c94fa.entry.js → p-6410c845.entry.js} +1 -1
- package/dist/tegel/{p-85b3d6a6.entry.js → p-6c3e8059.entry.js} +1 -1
- package/dist/tegel/{p-37d10816.entry.js → p-6c61a2f0.entry.js} +1 -1
- package/dist/tegel/{p-a9f3bec2.entry.js → p-6e8da39b.entry.js} +1 -1
- package/dist/tegel/p-72f04cd1.entry.js +1 -0
- package/dist/tegel/{p-a7c5f9e5.entry.js → p-7492a041.entry.js} +1 -1
- package/dist/tegel/{p-cc482c30.entry.js → p-7ba5eadf.entry.js} +1 -1
- package/dist/tegel/{p-dad64a2f.entry.js → p-8354ed21.entry.js} +1 -1
- package/dist/tegel/p-8817bb70.entry.js +1 -0
- package/dist/tegel/{p-7f41c308.entry.js → p-88761a57.entry.js} +1 -1
- package/dist/tegel/p-8b3e1cd0.entry.js +1 -0
- package/dist/tegel/p-8e0402a1.entry.js +1 -0
- package/dist/tegel/{p-ee9667d7.entry.js → p-8f89e6d1.entry.js} +1 -1
- package/dist/tegel/{p-41ce0d20.entry.js → p-9802c999.entry.js} +1 -1
- package/dist/tegel/{p-c405daa1.entry.js → p-9a9ac3b2.entry.js} +1 -1
- package/dist/tegel/{p-21da22c7.entry.js → p-9dd59846.entry.js} +1 -1
- package/dist/tegel/p-a10af11f.entry.js +1 -0
- package/dist/tegel/{p-f25d7602.entry.js → p-a96da238.entry.js} +1 -1
- package/dist/tegel/p-ac5abaa4.entry.js +1 -0
- package/dist/tegel/p-ae5bc89a.entry.js +1 -0
- package/dist/tegel/p-b881093c.entry.js +1 -0
- package/dist/tegel/{p-7d54c68f.entry.js → p-b9096df7.entry.js} +1 -1
- package/dist/tegel/p-be4b4dfd.entry.js +1 -0
- package/dist/tegel/{p-892bdb23.entry.js → p-bf85e0e7.entry.js} +1 -1
- package/dist/tegel/{p-e4a3e0f4.entry.js → p-c1bafa58.entry.js} +1 -1
- package/dist/tegel/{p-17500423.entry.js → p-c51b97da.entry.js} +1 -1
- package/dist/tegel/{p-c8d602b9.entry.js → p-c74d8810.entry.js} +1 -1
- package/dist/tegel/p-c7a7d0c3.entry.js +1 -0
- package/dist/tegel/p-cc133aa7.entry.js +1 -0
- package/dist/tegel/p-ce117e66.entry.js +1 -0
- package/dist/tegel/{p-22d1d304.entry.js → p-d477128f.entry.js} +1 -1
- package/dist/tegel/p-de5fa736.entry.js +1 -0
- package/dist/tegel/{p-19e70185.entry.js → p-dfbbe349.entry.js} +1 -1
- package/dist/tegel/{p-936a7ca6.entry.js → p-e82bf5c9.entry.js} +1 -1
- package/dist/tegel/p-e9d550f5.entry.js +1 -0
- package/dist/tegel/{p-1171b918.entry.js → p-ed40e3b0.entry.js} +1 -1
- package/dist/tegel/{p-52e8c108.entry.js → p-f019e894.entry.js} +1 -1
- package/dist/tegel/{p-2ab5a886.entry.js → p-f0b836d4.entry.js} +1 -1
- package/dist/tegel/{p-1d403667.entry.js → p-f844ce31.entry.js} +1 -1
- package/dist/tegel/{p-26d6f766.entry.js → p-f84ce63c.entry.js} +1 -1
- package/dist/tegel/{p-652d5980.entry.js → p-fc26b649.entry.js} +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +4 -0
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +12 -0
- package/dist/types/components/table/table-footer/table-footer.d.ts +4 -0
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +5 -1
- package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +0 -1
- package/dist/types/components/tag/tag.d.ts +1 -1
- package/dist/types/components.d.ts +107 -3
- package/package.json +1 -1
- package/dist/components/p-CLzENrFV.js +0 -1
- package/dist/components/p-DC6RGvDS.js +0 -1
- package/dist/components/p-Dgt5K9eM.js +0 -1
- package/dist/tegel/p-103beac4.entry.js +0 -1
- package/dist/tegel/p-19103b43.entry.js +0 -1
- package/dist/tegel/p-1b235896.entry.js +0 -1
- package/dist/tegel/p-1d160cef.entry.js +0 -1
- package/dist/tegel/p-1f343c1c.entry.js +0 -1
- package/dist/tegel/p-21ee8076.entry.js +0 -1
- package/dist/tegel/p-2e70052a.entry.js +0 -1
- package/dist/tegel/p-38e72fb9.entry.js +0 -1
- package/dist/tegel/p-3c706eea.entry.js +0 -1
- package/dist/tegel/p-5fc5e8b2.entry.js +0 -1
- package/dist/tegel/p-6952323d.entry.js +0 -1
- package/dist/tegel/p-7aedca1d.entry.js +0 -1
- package/dist/tegel/p-8f271e98.entry.js +0 -1
- package/dist/tegel/p-8fdf0d7e.entry.js +0 -1
- package/dist/tegel/p-c681502a.entry.js +0 -1
- package/dist/tegel/p-c8a575f1.entry.js +0 -1
- package/dist/tegel/p-d79a1010.entry.js +0 -1
- package/dist/tegel/p-dbfcc2a9.entry.js +0 -1
- package/dist/tegel/p-df943c9e.entry.js +0 -1
- package/dist/tegel/p-f67dd00a.entry.js +0 -1
|
@@ -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: 'd16b67e516e23d4f1efee4d09dfc451f79af08b2', 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
|
-
}, style: dynamicStyles,
|
|
91
|
+
} }, h("td", { key: '2ce3e0c0f219a4878deb118f2afa623d76c7cfbd', style: dynamicStyles, colSpan: this.colSpan, rowSpan: this.rowSpan }, this.cellValue, h("slot", { key: '5118a6568969761c1e4673ea0b2c1d947dc53164' }))));
|
|
92
92
|
}
|
|
93
93
|
static get is() { return "tds-body-cell"; }
|
|
94
94
|
static get encapsulation() { return "shadow"; }
|
|
@@ -187,6 +187,44 @@ export class TdsTableBodyCell {
|
|
|
187
187
|
"setter": false,
|
|
188
188
|
"reflect": true,
|
|
189
189
|
"attribute": "text-align"
|
|
190
|
+
},
|
|
191
|
+
"colSpan": {
|
|
192
|
+
"type": "number",
|
|
193
|
+
"mutable": false,
|
|
194
|
+
"complexType": {
|
|
195
|
+
"original": "number",
|
|
196
|
+
"resolved": "number | undefined",
|
|
197
|
+
"references": {}
|
|
198
|
+
},
|
|
199
|
+
"required": false,
|
|
200
|
+
"optional": true,
|
|
201
|
+
"docs": {
|
|
202
|
+
"tags": [],
|
|
203
|
+
"text": "Number of columns the cell should span."
|
|
204
|
+
},
|
|
205
|
+
"getter": false,
|
|
206
|
+
"setter": false,
|
|
207
|
+
"reflect": false,
|
|
208
|
+
"attribute": "col-span"
|
|
209
|
+
},
|
|
210
|
+
"rowSpan": {
|
|
211
|
+
"type": "number",
|
|
212
|
+
"mutable": false,
|
|
213
|
+
"complexType": {
|
|
214
|
+
"original": "number",
|
|
215
|
+
"resolved": "number | undefined",
|
|
216
|
+
"references": {}
|
|
217
|
+
},
|
|
218
|
+
"required": false,
|
|
219
|
+
"optional": true,
|
|
220
|
+
"docs": {
|
|
221
|
+
"tags": [],
|
|
222
|
+
"text": "Number of rows the cell should span."
|
|
223
|
+
},
|
|
224
|
+
"getter": false,
|
|
225
|
+
"setter": false,
|
|
226
|
+
"reflect": false,
|
|
227
|
+
"attribute": "row-span"
|
|
190
228
|
}
|
|
191
229
|
};
|
|
192
230
|
}
|
|
@@ -74,13 +74,13 @@ export class TdsTableBodyRow {
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: 'de0e413cf92011d5b652d19512dd58c243fb40f2', 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: '23fb993da5cac2a419719723d7a259460b179f55', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: 'eab391b07c02f9fa913022fc9c8ebef0dab16ce8', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("slot", { key: '5cd67b73cc428535ede2cb934d6b3dc36630e36d' })));
|
|
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
|
@@ -16,10 +16,29 @@
|
|
|
16
16
|
:host .tds-table__row--expanded {
|
|
17
17
|
border-bottom: none;
|
|
18
18
|
}
|
|
19
|
+
:host .tds-table__row--selected {
|
|
20
|
+
background-color: var(--tds-table-body-row-background-selected);
|
|
21
|
+
}
|
|
19
22
|
:host .tds-table__row:hover,
|
|
20
23
|
:host .tds-table__row-extend:hover {
|
|
21
24
|
background-color: var(--tds-table-body-row-background-hover);
|
|
22
25
|
}
|
|
26
|
+
:host .tds-table__row--selected:hover {
|
|
27
|
+
background-color: var(--tds-table-body-row-background-selected-hover);
|
|
28
|
+
}
|
|
29
|
+
:host .tds-table__body-cell--checkbox {
|
|
30
|
+
min-width: 48px;
|
|
31
|
+
width: 48px;
|
|
32
|
+
padding: 0;
|
|
33
|
+
}
|
|
34
|
+
:host .tds-form-label--table {
|
|
35
|
+
width: 100%;
|
|
36
|
+
height: 48px;
|
|
37
|
+
display: flex;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
align-items: center;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
23
42
|
:host .tds-table__expand-control-container {
|
|
24
43
|
display: flex;
|
|
25
44
|
justify-content: center;
|
|
@@ -87,11 +106,17 @@
|
|
|
87
106
|
:host(.tds-table__compact) .tds-table__row-expand .tds-table__cell-expand {
|
|
88
107
|
padding: 8px 16px 8px 66px;
|
|
89
108
|
}
|
|
109
|
+
:host(.tds-table__compact) .tds-form-label--table {
|
|
110
|
+
height: 32px;
|
|
111
|
+
}
|
|
90
112
|
|
|
91
113
|
:host(.tds-table__row--hidden) {
|
|
92
114
|
display: none;
|
|
93
115
|
}
|
|
94
116
|
|
|
95
|
-
:host(.tds-table--divider) .tds-table__cell
|
|
117
|
+
:host(.tds-table--divider) .tds-table__cell-expand {
|
|
118
|
+
border-right: 1px solid var(--tds-table-divider);
|
|
119
|
+
}
|
|
120
|
+
:host(.tds-table--divider) .tds-table__body-cell--checkbox {
|
|
96
121
|
border-right: 1px solid var(--tds-table-divider);
|
|
97
122
|
}
|
package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js
CHANGED
|
@@ -5,6 +5,7 @@ const relevantTableProps = [
|
|
|
5
5
|
'compactDesign',
|
|
6
6
|
'noMinWidth',
|
|
7
7
|
'modeVariant',
|
|
8
|
+
'multiselect',
|
|
8
9
|
];
|
|
9
10
|
/**
|
|
10
11
|
* @slot <default> - <b>Unnamed slot.</b> For the cells.
|
|
@@ -28,6 +29,10 @@ export class TdsTableBodyRowExpandable {
|
|
|
28
29
|
this.autoCollapse = false;
|
|
29
30
|
/** Aria label for the expand button, providing an accessible description */
|
|
30
31
|
this.tdsAriaLabelExpandButton = '';
|
|
32
|
+
/** Marks the row as selected, used for multiselect table. */
|
|
33
|
+
this.selected = false;
|
|
34
|
+
/** Marks the row as disabled, used for multiselect table. */
|
|
35
|
+
this.disabled = false;
|
|
31
36
|
/** Sets isExpanded state to true or fals internally */
|
|
32
37
|
this.isExpanded = false;
|
|
33
38
|
this.tableId = '';
|
|
@@ -36,6 +41,7 @@ export class TdsTableBodyRowExpandable {
|
|
|
36
41
|
this.compactDesign = false;
|
|
37
42
|
this.noMinWidth = false;
|
|
38
43
|
this.modeVariant = null;
|
|
44
|
+
this.multiselect = false;
|
|
39
45
|
}
|
|
40
46
|
internalTdsPropChangeListener(event) {
|
|
41
47
|
if (this.tableId === event.detail.tableId) {
|
|
@@ -101,7 +107,15 @@ export class TdsTableBodyRowExpandable {
|
|
|
101
107
|
else {
|
|
102
108
|
const header = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.querySelector('tds-table-header');
|
|
103
109
|
if (header) {
|
|
104
|
-
|
|
110
|
+
// Start with the number of data columns (header cells from slot)
|
|
111
|
+
let totalColumns = header.childElementCount;
|
|
112
|
+
// Add 1 for the expandable row control column
|
|
113
|
+
totalColumns += 1;
|
|
114
|
+
// Add 1 if multiselect is enabled (checkbox column)
|
|
115
|
+
if (this.multiselect) {
|
|
116
|
+
totalColumns += 1;
|
|
117
|
+
}
|
|
118
|
+
this.columnsNumber = totalColumns;
|
|
105
119
|
}
|
|
106
120
|
}
|
|
107
121
|
}
|
|
@@ -113,28 +127,38 @@ export class TdsTableBodyRowExpandable {
|
|
|
113
127
|
this.isExpanded = event.currentTarget.checked === true;
|
|
114
128
|
this.sendValue();
|
|
115
129
|
}
|
|
130
|
+
async handleCheckboxChange(event) {
|
|
131
|
+
var _a;
|
|
132
|
+
this.selected = event.detail.checked;
|
|
133
|
+
this.tdsSelect.emit({
|
|
134
|
+
tableId: this.tableId,
|
|
135
|
+
checked: this.selected,
|
|
136
|
+
selectedRows: await ((_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.getSelectedRows()),
|
|
137
|
+
});
|
|
138
|
+
}
|
|
116
139
|
render() {
|
|
117
140
|
var _a;
|
|
118
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: '53c6c5c66dd79503113385dd2b70026ea160fbf6', class: {
|
|
119
142
|
'tds-table__row': true,
|
|
120
143
|
'tds-table__row-expand--active': this.isExpanded,
|
|
121
144
|
'tds-table__compact': this.compactDesign,
|
|
122
145
|
'tds-table--divider': this.verticalDividers,
|
|
123
|
-
} }, h("tr", { key: '
|
|
146
|
+
} }, h("tr", { key: '6dc01208f1eb843e3e06c33f4e25913049957769', id: `expandable-content-${this.rowId}`, class: {
|
|
124
147
|
'tds-table__row': true,
|
|
125
148
|
'tds-table__row--expanded': this.isExpanded,
|
|
126
|
-
|
|
149
|
+
'tds-table__row--selected': this.selected,
|
|
150
|
+
}, part: "row" }, this.multiselect && (h("td", { key: '5a71e2f9bff42312b3cd9b2d45718c8344be06fe', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '9d7c37bec627e917ac93a2d5ebcd2eb3633b5208', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("td", { key: '5dfa199437435c4dc1c847f19a1dd2aa97803639', class: {
|
|
127
151
|
'tds-table__cell-expand': true,
|
|
128
|
-
} }, h("label", { key: '
|
|
152
|
+
} }, h("label", { key: '010aef1164845e706485d3e5770c83225b6f0c70', class: "tds-table__expand-control-container" }, h("input", { key: 'c27e847d9b855cb7a016236347c8af908f991f12', 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: 'b0ba2cb10f89f3e81bad48f982d2f84d994d49c3', class: "tds-expendable-row-icon" }, h("svg", { key: 'a0d7f78a7a7da51d056ed22b6092e74715f506af', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '5dc808624d2fcff7b4b9dd83fc9ef2b2b00e2cea', "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: 'c7e24da48dafb8ecd8d461a272897efa9723c634' })), h("tr", { key: '8b538e7208adf89505842965b969e0bcc393e1ab', class: {
|
|
129
153
|
'tds-table__row-expand': true,
|
|
130
154
|
'tds-table__row-expand--expanded': this.isExpanded,
|
|
131
|
-
}, part: "expand-row" }, h("td", { key: '
|
|
155
|
+
}, part: "expand-row" }, h("td", { key: 'b8cc7780fd35b1eb46718d1670f89b2c28c5e0fd', class: {
|
|
132
156
|
'tds-table__cell-expand': true,
|
|
133
157
|
'tds-table__cell-expand--overflow-hidden': this.overflow === 'hidden',
|
|
134
158
|
'tds-table__cell-expand--overflow-visible': this.overflow === 'visible',
|
|
135
|
-
}, 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: '877805be7aa699870575767188b63bf9b5eb4ffe', style: {
|
|
136
160
|
overflow: this.overflow,
|
|
137
|
-
} }, h("slot", { key: '
|
|
161
|
+
} }, h("slot", { key: '0fcc6e24283b7c8e755e42fc16a6adccdd0193b9', name: "expand-row" }))))));
|
|
138
162
|
}
|
|
139
163
|
static get is() { return "tds-table-body-row-expandable"; }
|
|
140
164
|
static get encapsulation() { return "shadow"; }
|
|
@@ -268,6 +292,46 @@ export class TdsTableBodyRowExpandable {
|
|
|
268
292
|
"reflect": true,
|
|
269
293
|
"attribute": "tds-aria-label-expand-button",
|
|
270
294
|
"defaultValue": "''"
|
|
295
|
+
},
|
|
296
|
+
"selected": {
|
|
297
|
+
"type": "boolean",
|
|
298
|
+
"mutable": false,
|
|
299
|
+
"complexType": {
|
|
300
|
+
"original": "boolean",
|
|
301
|
+
"resolved": "boolean",
|
|
302
|
+
"references": {}
|
|
303
|
+
},
|
|
304
|
+
"required": false,
|
|
305
|
+
"optional": false,
|
|
306
|
+
"docs": {
|
|
307
|
+
"tags": [],
|
|
308
|
+
"text": "Marks the row as selected, used for multiselect table."
|
|
309
|
+
},
|
|
310
|
+
"getter": false,
|
|
311
|
+
"setter": false,
|
|
312
|
+
"reflect": true,
|
|
313
|
+
"attribute": "selected",
|
|
314
|
+
"defaultValue": "false"
|
|
315
|
+
},
|
|
316
|
+
"disabled": {
|
|
317
|
+
"type": "boolean",
|
|
318
|
+
"mutable": false,
|
|
319
|
+
"complexType": {
|
|
320
|
+
"original": "boolean",
|
|
321
|
+
"resolved": "boolean | undefined",
|
|
322
|
+
"references": {}
|
|
323
|
+
},
|
|
324
|
+
"required": false,
|
|
325
|
+
"optional": true,
|
|
326
|
+
"docs": {
|
|
327
|
+
"tags": [],
|
|
328
|
+
"text": "Marks the row as disabled, used for multiselect table."
|
|
329
|
+
},
|
|
330
|
+
"getter": false,
|
|
331
|
+
"setter": false,
|
|
332
|
+
"reflect": true,
|
|
333
|
+
"attribute": "disabled",
|
|
334
|
+
"defaultValue": "false"
|
|
271
335
|
}
|
|
272
336
|
};
|
|
273
337
|
}
|
|
@@ -279,7 +343,8 @@ export class TdsTableBodyRowExpandable {
|
|
|
279
343
|
"verticalDividers": {},
|
|
280
344
|
"compactDesign": {},
|
|
281
345
|
"noMinWidth": {},
|
|
282
|
-
"modeVariant": {}
|
|
346
|
+
"modeVariant": {},
|
|
347
|
+
"multiselect": {}
|
|
283
348
|
};
|
|
284
349
|
}
|
|
285
350
|
static get events() {
|
|
@@ -316,6 +381,21 @@ export class TdsTableBodyRowExpandable {
|
|
|
316
381
|
"resolved": "{ rowId: string; isExpanded: boolean; tableId: string | undefined; }",
|
|
317
382
|
"references": {}
|
|
318
383
|
}
|
|
384
|
+
}, {
|
|
385
|
+
"method": "tdsSelect",
|
|
386
|
+
"name": "tdsSelect",
|
|
387
|
+
"bubbles": true,
|
|
388
|
+
"cancelable": false,
|
|
389
|
+
"composed": true,
|
|
390
|
+
"docs": {
|
|
391
|
+
"tags": [],
|
|
392
|
+
"text": "Event emitted when a row is selected/deselected."
|
|
393
|
+
},
|
|
394
|
+
"complexType": {
|
|
395
|
+
"original": "{\n tableId: string | undefined;\n checked: boolean;\n selectedRows: object[] | undefined;\n }",
|
|
396
|
+
"resolved": "{ tableId: string | undefined; checked: boolean; selectedRows: object[] | undefined; }",
|
|
397
|
+
"references": {}
|
|
398
|
+
}
|
|
319
399
|
}];
|
|
320
400
|
}
|
|
321
401
|
static get methods() {
|
|
@@ -2,6 +2,8 @@ import { h, Host, } from "@stencil/core";
|
|
|
2
2
|
const relevantTableProps = [
|
|
3
3
|
'compactDesign',
|
|
4
4
|
'horizontalScrollWidth',
|
|
5
|
+
'multiselect',
|
|
6
|
+
'expandableRows',
|
|
5
7
|
];
|
|
6
8
|
function removeShakeAnimation(e) {
|
|
7
9
|
e.target.classList.remove('tds-table__page-selector-input--shake');
|
|
@@ -24,6 +26,10 @@ export class TdsTableFooter {
|
|
|
24
26
|
this.columnsNumber = 0;
|
|
25
27
|
/* Sets the footer to use compact design. */
|
|
26
28
|
this.compactDesign = false;
|
|
29
|
+
/* State to track if multiselect is enabled on parent table. */
|
|
30
|
+
this.multiselect = false;
|
|
31
|
+
/* State to track if expandableRows is enabled on parent table. */
|
|
32
|
+
this.expandableRows = false;
|
|
27
33
|
this.lastCorrectValue = 1;
|
|
28
34
|
this.tableId = '';
|
|
29
35
|
this.horizontalScrollWidth = null;
|
|
@@ -84,6 +90,31 @@ export class TdsTableFooter {
|
|
|
84
90
|
});
|
|
85
91
|
}
|
|
86
92
|
}
|
|
93
|
+
colsChanged(newValue) {
|
|
94
|
+
if (newValue !== null) {
|
|
95
|
+
this.columnsNumber = newValue;
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
this.updateColumnsNumber();
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
updateColumnsNumber() {
|
|
102
|
+
var _a, _b, _c;
|
|
103
|
+
if (this.cols) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const numberOfColumns = (_c = (_b = (_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector('tds-table-header')) === null || _b === void 0 ? void 0 : _b.childElementCount) !== null && _c !== void 0 ? _c : 0;
|
|
107
|
+
let totalColumns = numberOfColumns;
|
|
108
|
+
// Add 1 for multiselect checkbox column
|
|
109
|
+
if (this.multiselect) {
|
|
110
|
+
totalColumns += 1;
|
|
111
|
+
}
|
|
112
|
+
// Add 1 for expandable rows column
|
|
113
|
+
if (this.expandableRows) {
|
|
114
|
+
totalColumns += 1;
|
|
115
|
+
}
|
|
116
|
+
this.columnsNumber = totalColumns;
|
|
117
|
+
}
|
|
87
118
|
connectedCallback() {
|
|
88
119
|
var _a;
|
|
89
120
|
this.tableEl = this.host.closest('tds-table');
|
|
@@ -102,7 +133,17 @@ export class TdsTableFooter {
|
|
|
102
133
|
this.columnsNumber = this.cols;
|
|
103
134
|
}
|
|
104
135
|
else {
|
|
105
|
-
|
|
136
|
+
// Calculate total columns including multiselect and expandable columns
|
|
137
|
+
let totalColumns = numberOfColumns;
|
|
138
|
+
// Add 1 for multiselect checkbox column
|
|
139
|
+
if (this.multiselect) {
|
|
140
|
+
totalColumns += 1;
|
|
141
|
+
}
|
|
142
|
+
// Add 1 for expandable rows column
|
|
143
|
+
if (this.expandableRows) {
|
|
144
|
+
totalColumns += 1;
|
|
145
|
+
}
|
|
146
|
+
this.columnsNumber = totalColumns;
|
|
106
147
|
}
|
|
107
148
|
}
|
|
108
149
|
/* Function to store last valid input */
|
|
@@ -138,16 +179,14 @@ export class TdsTableFooter {
|
|
|
138
179
|
}
|
|
139
180
|
render() {
|
|
140
181
|
var _a;
|
|
141
|
-
return (h(Host, { key: '
|
|
182
|
+
return (h(Host, { key: '961b5b3b5aa0311a2cc962601bbde69cb892c0df', class: {
|
|
142
183
|
'tds-table--compact': this.compactDesign,
|
|
143
184
|
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
144
|
-
}, style: this.getStyles() }, h("tr", { key: '
|
|
145
|
-
return (h("tds-dropdown-option", { value: `${value}` }, value));
|
|
146
|
-
}))))), h("div", { key: 'aa4872b13712174bfa21c94b15b93816c713fd29', class: "tds-table__page-selector" }, h("input", { key: 'fa1964c83ec002ccc6e4061ae1f8596d9ee15836', ref: (element) => {
|
|
185
|
+
}, style: this.getStyles() }, h("tr", { key: 'a95c34f7248fe17ff7e6911cb75ac5f8a7e66397', class: "tds-table__footer-row" }, h("td", { key: '3fa687650250154d63515696845c77b25a99a637', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '8484735a6d4d8d805b1a532a9ee3f982ac91aff5', class: "tds-table__pagination" }, h("div", { key: '543cfb0c349fb2a7b4443d4dfadb9b3891864ebc', class: "tds-table__row-selector" }, this.rowsperpage && ((_a = this.rowsPerPageValues) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("div", { key: '40ee62cc8374dc8113bed771a814289be7d978bd', class: "rows-per-page" }, h("p", { key: '0a1f178e952e55b250c5ad1e0b59f1f8d664a947' }, "Rows per page"), h("tds-dropdown", { key: 'c23f03459dd7bb4c90a646d61d604b1b9c7532aa', modeVariant: "secondary", id: "rows-dropdown", class: "page-dropdown", size: "xs", defaultValue: `${this.rowsPerPageValues[0]}`, onTdsChange: (event) => this.rowsPerPageChange(event) }, this.rowsPerPageValues.map((value) => (h("tds-dropdown-option", { value: `${value}` }, value))))))), h("div", { key: '2ba6b8e4a67f3d82980f48f8d858f9fe228ef04e', class: "tds-table__page-selector" }, h("input", { key: '45c5662f2c314d2616200f0faa10637cfadd8a0c', ref: (element) => {
|
|
147
186
|
if (element) {
|
|
148
187
|
this.inputElement = element;
|
|
149
188
|
}
|
|
150
|
-
}, 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: '
|
|
189
|
+
}, 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: 'acf03cce754c2e2992af498855a8e65370f80c0e', class: "tds-table__footer-text" }, "of ", h("span", { key: '9fb1b364868e11ae9feb3cd560f17973a36f12bd' }, this.pages), " pages"), h("button", { key: 'd0945e0f2dbd43fb1c433388b14c517d94da4d95', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.firstPage() }, h("tds-icon", { key: '8c2c3b150d61e4db7dcbf7558646be0f2b90fe84', name: "skip_backwards", size: "20px" })), h("button", { key: '7df941515765b780c4c72c52b0842c719b88ff2d', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: 'b8af8f6c3eb7680169764124ade9f6f56899b83d', name: "chevron_left", size: "20px" })), h("button", { key: 'd4cfa0117ef5bfbda435584a505d330d5bfb86a3', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: 'e1fa66d3959ed648952b0fd170b00f43db23385f', name: "chevron_right", size: "20px" })), h("button", { key: 'e8290d680d8ac50cf61089813b94fefa6682b2d1', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.lastPage() }, h("tds-icon", { key: '3e26941199388b86bb0069967851d74921300950', name: "skip_forward", size: "20px" })))))))));
|
|
151
190
|
}
|
|
152
191
|
static get is() { return "tds-table-footer"; }
|
|
153
192
|
static get encapsulation() { return "shadow"; }
|
|
@@ -287,6 +326,8 @@ export class TdsTableFooter {
|
|
|
287
326
|
return {
|
|
288
327
|
"columnsNumber": {},
|
|
289
328
|
"compactDesign": {},
|
|
329
|
+
"multiselect": {},
|
|
330
|
+
"expandableRows": {},
|
|
290
331
|
"lastCorrectValue": {},
|
|
291
332
|
"tableId": {},
|
|
292
333
|
"horizontalScrollWidth": {},
|
|
@@ -312,6 +353,18 @@ export class TdsTableFooter {
|
|
|
312
353
|
}];
|
|
313
354
|
}
|
|
314
355
|
static get elementRef() { return "host"; }
|
|
356
|
+
static get watchers() {
|
|
357
|
+
return [{
|
|
358
|
+
"propName": "cols",
|
|
359
|
+
"methodName": "colsChanged"
|
|
360
|
+
}, {
|
|
361
|
+
"propName": "multiselect",
|
|
362
|
+
"methodName": "updateColumnsNumber"
|
|
363
|
+
}, {
|
|
364
|
+
"propName": "expandableRows",
|
|
365
|
+
"methodName": "updateColumnsNumber"
|
|
366
|
+
}];
|
|
367
|
+
}
|
|
315
368
|
static get listeners() {
|
|
316
369
|
return [{
|
|
317
370
|
"name": "internalTdsTablePropChange",
|
|
@@ -49,9 +49,6 @@
|
|
|
49
49
|
:host .tds-table__expand-control-container .tds-expandable-row-icon--opened {
|
|
50
50
|
transform: rotate(180deg);
|
|
51
51
|
}
|
|
52
|
-
:host ::slotted(tds-header-cell:hover) {
|
|
53
|
-
background-color: var(--tds-table-header-background-hover);
|
|
54
|
-
}
|
|
55
52
|
|
|
56
53
|
:host(.tds-table--compact) .tds-table__header-cell--checkbox {
|
|
57
54
|
height: 32px;
|
|
@@ -90,11 +90,11 @@ export class TdsTableHeaderRow {
|
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
render() {
|
|
93
|
-
return (h(Host, { key: '
|
|
93
|
+
return (h(Host, { key: '88b6399e20ad62915e2fc6b7dc77f0274bcc4c53', 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: '39f977fed7af33525ade2bc1ba56d90689bd95f2' }, this.multiselect && (h("th", { key: '94fdaf3504f4f8a30cc201fce98f094a70936dbb', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, h("div", { key: '6e614faf8610379510fe440777a20083cb29f818', class: "tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '59732675c10272928260a88bcdf7e01ddd5cbc0c', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (h("th", { key: 'e359230499f01aed71f6c9c7dc929ebeb95bcde4', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), h("slot", { key: '8d359504221abdb767a8334d2c7ef6d89091f746' }))));
|
|
98
98
|
}
|
|
99
99
|
static get is() { return "tds-table-header"; }
|
|
100
100
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
:host
|
|
1
|
+
:host {
|
|
2
|
+
display: contents;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
:host(.tds-table__header-cell) th {
|
|
2
6
|
box-sizing: border-box;
|
|
3
7
|
font: var(--tds-headline-07);
|
|
4
8
|
letter-spacing: var(--tds-headline-07-ls);
|
|
5
|
-
display: table-cell;
|
|
6
9
|
text-align: left;
|
|
7
10
|
color: var(--tds-table-color);
|
|
8
11
|
background-color: var(--tds-table-header-background);
|
|
@@ -15,18 +18,22 @@
|
|
|
15
18
|
overflow: hidden;
|
|
16
19
|
transition: background-color 200ms ease;
|
|
17
20
|
}
|
|
18
|
-
:host(.tds-table__header-cell) * {
|
|
21
|
+
:host(.tds-table__header-cell) th * {
|
|
19
22
|
box-sizing: border-box;
|
|
20
23
|
}
|
|
21
|
-
:host(.tds-table__header-cell) .tds-table__header-text {
|
|
24
|
+
:host(.tds-table__header-cell) th .tds-table__header-text {
|
|
22
25
|
padding: 8px 16px;
|
|
23
26
|
margin: 0;
|
|
24
27
|
}
|
|
25
|
-
:host(.tds-table__header-cell) .tds-table__header-text-no-padding {
|
|
28
|
+
:host(.tds-table__header-cell) th .tds-table__header-text-no-padding {
|
|
26
29
|
padding: 0;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
:host(.tds-table__header-cell
|
|
32
|
+
:host(.tds-table__header-cell) th:hover {
|
|
33
|
+
background-color: var(--tds-table-header-background-hover);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
:host(.tds-table__header-cell--sortable) th .tds-table__header-button {
|
|
30
37
|
display: flex;
|
|
31
38
|
align-items: center;
|
|
32
39
|
gap: 8px;
|
|
@@ -40,20 +47,20 @@
|
|
|
40
47
|
cursor: pointer;
|
|
41
48
|
transition: background-color 200ms ease;
|
|
42
49
|
}
|
|
43
|
-
:host(.tds-table__header-cell--sortable) .tds-table__header-button:focus {
|
|
50
|
+
:host(.tds-table__header-cell--sortable) th .tds-table__header-button:focus {
|
|
44
51
|
outline: 2px solid var(--tds-table-header-btn-focus);
|
|
45
52
|
outline-offset: -2px;
|
|
46
53
|
}
|
|
47
|
-
:host(.tds-table__header-cell--sortable) .tds-table__header-button:focus .tds-table__header-button-icon {
|
|
54
|
+
:host(.tds-table__header-cell--sortable) th .tds-table__header-button:focus .tds-table__header-button-icon {
|
|
48
55
|
opacity: 1;
|
|
49
56
|
}
|
|
50
|
-
:host(.tds-table__header-cell--sortable) .tds-table__header-button .tds-table__header-button-text {
|
|
57
|
+
:host(.tds-table__header-cell--sortable) th .tds-table__header-button .tds-table__header-button-text {
|
|
51
58
|
font: var(--tds-headline-07);
|
|
52
59
|
letter-spacing: var(--tds-headline-07-ls);
|
|
53
60
|
text-align: left;
|
|
54
61
|
color: var(--tds-table-header-btn-color);
|
|
55
62
|
}
|
|
56
|
-
:host(.tds-table__header-cell--sortable) .tds-table__header-button .tds-table__header-button-icon {
|
|
63
|
+
:host(.tds-table__header-cell--sortable) th .tds-table__header-button .tds-table__header-button-icon {
|
|
57
64
|
/* not to shrink on lot of text */
|
|
58
65
|
flex: 0 0 16px;
|
|
59
66
|
height: 16px;
|
|
@@ -63,67 +70,67 @@
|
|
|
63
70
|
transition: opacity 200ms ease-in, transform 200ms ease;
|
|
64
71
|
color: var(--tds-table-color);
|
|
65
72
|
}
|
|
66
|
-
:host(.tds-table__header-cell--sortable) .tds-table__header-button:hover .tds-table__header-button-icon {
|
|
73
|
+
:host(.tds-table__header-cell--sortable) th .tds-table__header-button:hover .tds-table__header-button-icon {
|
|
67
74
|
opacity: 1;
|
|
68
75
|
}
|
|
69
76
|
|
|
70
|
-
:host(.tds-table__header-cell--is-sorted) .tds-table__header-button {
|
|
77
|
+
:host(.tds-table__header-cell--is-sorted) th .tds-table__header-button {
|
|
71
78
|
background-color: var(--tds-table-header-btn-background);
|
|
72
79
|
}
|
|
73
|
-
:host(.tds-table__header-cell--is-sorted) .tds-table__header-button:hover {
|
|
80
|
+
:host(.tds-table__header-cell--is-sorted) th .tds-table__header-button:hover {
|
|
74
81
|
background-color: var(--tds-table-header-btn-background-hover);
|
|
75
82
|
}
|
|
76
|
-
:host(.tds-table__header-cell--is-sorted) .tds-table__header-button .tds-table__header-button-icon {
|
|
83
|
+
:host(.tds-table__header-cell--is-sorted) th .tds-table__header-button .tds-table__header-button-icon {
|
|
77
84
|
opacity: 1;
|
|
78
85
|
}
|
|
79
|
-
:host(.tds-table__header-cell--is-sorted) .tds-table__header-button .tds-table__header-button-icon--rotate {
|
|
86
|
+
:host(.tds-table__header-cell--is-sorted) th .tds-table__header-button .tds-table__header-button-icon--rotate {
|
|
80
87
|
transform: rotate(180deg);
|
|
81
88
|
}
|
|
82
89
|
|
|
83
|
-
:host(.tds-table--compact) {
|
|
90
|
+
:host(.tds-table--compact) th {
|
|
84
91
|
height: 33px;
|
|
85
92
|
}
|
|
86
93
|
|
|
87
|
-
:host(.tds-table--divider) {
|
|
94
|
+
:host(.tds-table--divider) th {
|
|
88
95
|
border-right: 1px solid var(--tds-table-divider);
|
|
89
96
|
}
|
|
90
97
|
|
|
91
|
-
:host(.tds-table--divider:last-of-type) {
|
|
98
|
+
:host(.tds-table--divider:last-of-type) th {
|
|
92
99
|
border-right: none;
|
|
93
100
|
}
|
|
94
101
|
|
|
95
|
-
:host(.tds-table--no-min-width) {
|
|
102
|
+
:host(.tds-table--no-min-width) th {
|
|
96
103
|
min-width: unset;
|
|
97
104
|
}
|
|
98
105
|
|
|
99
|
-
:host(.tds-table--no-padding) {
|
|
106
|
+
:host(.tds-table--no-padding) th {
|
|
100
107
|
height: unset;
|
|
101
108
|
}
|
|
102
109
|
|
|
103
|
-
:host(.tds-table__header-cell:first-of-type) {
|
|
110
|
+
:host(.tds-table__header-cell:first-of-type) th {
|
|
104
111
|
border-top-left-radius: 4px;
|
|
105
112
|
}
|
|
106
113
|
|
|
107
|
-
:host(.tds-table__header-cell:last-of-type) {
|
|
114
|
+
:host(.tds-table__header-cell:last-of-type) th {
|
|
108
115
|
border-top-right-radius: 4px;
|
|
109
116
|
}
|
|
110
117
|
|
|
111
|
-
:host(.tds-table--extra-column:first-of-type) {
|
|
118
|
+
:host(.tds-table--extra-column:first-of-type) th {
|
|
112
119
|
border-top-left-radius: 0;
|
|
113
120
|
}
|
|
114
121
|
|
|
115
|
-
:host(.tds-table--toolbar-available) {
|
|
122
|
+
:host(.tds-table--toolbar-available) th {
|
|
116
123
|
border-radius: 0;
|
|
117
124
|
}
|
|
118
125
|
|
|
119
|
-
:host(.tds-table--extra-column.tds-table--toolbar-available) {
|
|
126
|
+
:host(.tds-table--extra-column.tds-table--toolbar-available) th {
|
|
120
127
|
border-radius: 0;
|
|
121
128
|
}
|
|
122
129
|
|
|
123
|
-
:host(.tds-table__header-cell.tds-table--toolbar-available:first-of-type) {
|
|
130
|
+
:host(.tds-table__header-cell.tds-table--toolbar-available:first-of-type) th {
|
|
124
131
|
border-top-left-radius: 0;
|
|
125
132
|
}
|
|
126
133
|
|
|
127
|
-
:host(.tds-table__header-cell.tds-table--toolbar-available:last-of-type) {
|
|
134
|
+
:host(.tds-table__header-cell.tds-table--toolbar-available:last-of-type) th {
|
|
128
135
|
border-top-right-radius: 0;
|
|
129
136
|
}
|