@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
|
@@ -3,19 +3,21 @@
|
|
|
3
3
|
var index = require('./index-DGsdvbvx.js');
|
|
4
4
|
var generateUniqueId = require('./generateUniqueId-ComXTAM_.js');
|
|
5
5
|
|
|
6
|
-
const tableBodyRowExpandableCss = () => `:host{box-sizing:border-box;display:contents}:host *{box-sizing:border-box}:host .tds-table__row,:host .tds-table__row-extend{display:table-row;border-bottom:1px solid var(--tds-table-divider);background-color:var(--tds-table-body-row-background);transition:background-color 200ms ease;color:var(--tds-table-color)}:host .tds-table__row--expanded{border-bottom:none}:host .tds-table__row:hover,:host .tds-table__row-extend:hover{background-color:var(--tds-table-body-row-background-hover)}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:46px;cursor:pointer;padding:0 16px;position:relative}:host .tds-table__expand-control-container .tds-table__expand-input{all:unset;top:0;left:0;width:100%;height:100%;position:absolute;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .tds-table__expand-control-container .tds-expendable-row-icon{height:16px;width:16px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__row-expand{display:none;transition:background-color 200ms ease}:host .tds-table__row-expand--expanded{border-bottom:1px solid var(--tds-table-divider)}:host .tds-table__row-expand .tds-table__cell-expand{max-width:1px;overflow:auto;padding:16px 16px 16px 66px;color:var(--tds-table-color)}:host .tds-table__row-expand .tds-table__cell-expand--overflow-visible{overflow:visible}:host .tds-table__row-expand .tds-table__cell-expand--overflow-hidden{overflow:hidden}:host(.tds-table__row-expand--active) .tds-table__row{background-color:var(--tds-table-body-row-background-selected)}:host(.tds-table__row-expand--active) .tds-table__expand-control-container .tds-expendable-row-icon{transform:rotate(180deg)}:host(.tds-table__row-expand--active) .tds-table__row-expand{background-color:var(--tds-table-body-row-background-selected);display:table-row}:host(.tds-table__compact) .tds-table__expand-control-container{height:30px}:host(.tds-table__compact) .tds-table__row-expand .tds-table__cell-expand{padding:8px 16px 8px 66px}:host(.tds-table__row--hidden){display:none}:host(.tds-table--divider) .tds-table__cell
|
|
6
|
+
const tableBodyRowExpandableCss = () => `:host{box-sizing:border-box;display:contents}:host *{box-sizing:border-box}:host .tds-table__row,:host .tds-table__row-extend{display:table-row;border-bottom:1px solid var(--tds-table-divider);background-color:var(--tds-table-body-row-background);transition:background-color 200ms ease;color:var(--tds-table-color)}:host .tds-table__row--expanded{border-bottom:none}:host .tds-table__row--selected{background-color:var(--tds-table-body-row-background-selected)}:host .tds-table__row:hover,:host .tds-table__row-extend:hover{background-color:var(--tds-table-body-row-background-hover)}:host .tds-table__row--selected:hover{background-color:var(--tds-table-body-row-background-selected-hover)}:host .tds-table__body-cell--checkbox{min-width:48px;width:48px;padding:0}:host .tds-form-label--table{width:100%;height:48px;display:flex;justify-content:center;align-items:center;cursor:pointer}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:46px;cursor:pointer;padding:0 16px;position:relative}:host .tds-table__expand-control-container .tds-table__expand-input{all:unset;top:0;left:0;width:100%;height:100%;position:absolute;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .tds-table__expand-control-container .tds-expendable-row-icon{height:16px;width:16px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__row-expand{display:none;transition:background-color 200ms ease}:host .tds-table__row-expand--expanded{border-bottom:1px solid var(--tds-table-divider)}:host .tds-table__row-expand .tds-table__cell-expand{max-width:1px;overflow:auto;padding:16px 16px 16px 66px;color:var(--tds-table-color)}:host .tds-table__row-expand .tds-table__cell-expand--overflow-visible{overflow:visible}:host .tds-table__row-expand .tds-table__cell-expand--overflow-hidden{overflow:hidden}:host(.tds-table__row-expand--active) .tds-table__row{background-color:var(--tds-table-body-row-background-selected)}:host(.tds-table__row-expand--active) .tds-table__expand-control-container .tds-expendable-row-icon{transform:rotate(180deg)}:host(.tds-table__row-expand--active) .tds-table__row-expand{background-color:var(--tds-table-body-row-background-selected);display:table-row}:host(.tds-table__compact) .tds-table__expand-control-container{height:30px}:host(.tds-table__compact) .tds-table__row-expand .tds-table__cell-expand{padding:8px 16px 8px 66px}:host(.tds-table__compact) .tds-form-label--table{height:32px}:host(.tds-table__row--hidden){display:none}:host(.tds-table--divider) .tds-table__cell-expand{border-right:1px solid var(--tds-table-divider)}:host(.tds-table--divider) .tds-table__body-cell--checkbox{border-right:1px solid var(--tds-table-divider)}`;
|
|
7
7
|
|
|
8
8
|
const relevantTableProps = [
|
|
9
9
|
'verticalDividers',
|
|
10
10
|
'compactDesign',
|
|
11
11
|
'noMinWidth',
|
|
12
12
|
'modeVariant',
|
|
13
|
+
'multiselect',
|
|
13
14
|
];
|
|
14
15
|
const TdsTableBodyRowExpandable = class {
|
|
15
16
|
constructor(hostRef) {
|
|
16
17
|
index.registerInstance(this, hostRef);
|
|
17
18
|
this.internalTdsRowExpanded = index.createEvent(this, "internalTdsRowExpanded", 6);
|
|
18
19
|
this.tdsChange = index.createEvent(this, "tdsChange", 6);
|
|
20
|
+
this.tdsSelect = index.createEvent(this, "tdsSelect", 6);
|
|
19
21
|
/** In case that automatic count of columns does not work, user can manually set this one.
|
|
20
22
|
* Take in mind that expandable control is column too */
|
|
21
23
|
this.colSpan = null;
|
|
@@ -28,6 +30,10 @@ const TdsTableBodyRowExpandable = class {
|
|
|
28
30
|
this.autoCollapse = false;
|
|
29
31
|
/** Aria label for the expand button, providing an accessible description */
|
|
30
32
|
this.tdsAriaLabelExpandButton = '';
|
|
33
|
+
/** Marks the row as selected, used for multiselect table. */
|
|
34
|
+
this.selected = false;
|
|
35
|
+
/** Marks the row as disabled, used for multiselect table. */
|
|
36
|
+
this.disabled = false;
|
|
31
37
|
/** Sets isExpanded state to true or fals internally */
|
|
32
38
|
this.isExpanded = false;
|
|
33
39
|
this.tableId = '';
|
|
@@ -36,6 +42,7 @@ const TdsTableBodyRowExpandable = class {
|
|
|
36
42
|
this.compactDesign = false;
|
|
37
43
|
this.noMinWidth = false;
|
|
38
44
|
this.modeVariant = null;
|
|
45
|
+
this.multiselect = false;
|
|
39
46
|
}
|
|
40
47
|
internalTdsPropChangeListener(event) {
|
|
41
48
|
if (this.tableId === event.detail.tableId) {
|
|
@@ -101,7 +108,15 @@ const TdsTableBodyRowExpandable = class {
|
|
|
101
108
|
else {
|
|
102
109
|
const header = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.querySelector('tds-table-header');
|
|
103
110
|
if (header) {
|
|
104
|
-
|
|
111
|
+
// Start with the number of data columns (header cells from slot)
|
|
112
|
+
let totalColumns = header.childElementCount;
|
|
113
|
+
// Add 1 for the expandable row control column
|
|
114
|
+
totalColumns += 1;
|
|
115
|
+
// Add 1 if multiselect is enabled (checkbox column)
|
|
116
|
+
if (this.multiselect) {
|
|
117
|
+
totalColumns += 1;
|
|
118
|
+
}
|
|
119
|
+
this.columnsNumber = totalColumns;
|
|
105
120
|
}
|
|
106
121
|
}
|
|
107
122
|
}
|
|
@@ -113,28 +128,38 @@ const TdsTableBodyRowExpandable = class {
|
|
|
113
128
|
this.isExpanded = event.currentTarget.checked === true;
|
|
114
129
|
this.sendValue();
|
|
115
130
|
}
|
|
131
|
+
async handleCheckboxChange(event) {
|
|
132
|
+
var _a;
|
|
133
|
+
this.selected = event.detail.checked;
|
|
134
|
+
this.tdsSelect.emit({
|
|
135
|
+
tableId: this.tableId,
|
|
136
|
+
checked: this.selected,
|
|
137
|
+
selectedRows: await ((_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.getSelectedRows()),
|
|
138
|
+
});
|
|
139
|
+
}
|
|
116
140
|
render() {
|
|
117
141
|
var _a;
|
|
118
|
-
return (index.h(index.Host, { key: '
|
|
142
|
+
return (index.h(index.Host, { key: '53c6c5c66dd79503113385dd2b70026ea160fbf6', class: {
|
|
119
143
|
'tds-table__row': true,
|
|
120
144
|
'tds-table__row-expand--active': this.isExpanded,
|
|
121
145
|
'tds-table__compact': this.compactDesign,
|
|
122
146
|
'tds-table--divider': this.verticalDividers,
|
|
123
|
-
} }, index.h("tr", { key: '
|
|
147
|
+
} }, index.h("tr", { key: '6dc01208f1eb843e3e06c33f4e25913049957769', id: `expandable-content-${this.rowId}`, class: {
|
|
124
148
|
'tds-table__row': true,
|
|
125
149
|
'tds-table__row--expanded': this.isExpanded,
|
|
126
|
-
|
|
150
|
+
'tds-table__row--selected': this.selected,
|
|
151
|
+
}, part: "row" }, this.multiselect && (index.h("td", { key: '5a71e2f9bff42312b3cd9b2d45718c8344be06fe', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, index.h("tds-checkbox", { key: '9d7c37bec627e917ac93a2d5ebcd2eb3633b5208', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), index.h("td", { key: '5dfa199437435c4dc1c847f19a1dd2aa97803639', class: {
|
|
127
152
|
'tds-table__cell-expand': true,
|
|
128
|
-
} }, index.h("label", { key: '
|
|
153
|
+
} }, index.h("label", { key: '010aef1164845e706485d3e5770c83225b6f0c70', class: "tds-table__expand-control-container" }, index.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 }), index.h("span", { key: 'b0ba2cb10f89f3e81bad48f982d2f84d994d49c3', class: "tds-expendable-row-icon" }, index.h("svg", { key: 'a0d7f78a7a7da51d056ed22b6092e74715f506af', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, index.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" }))))), index.h("slot", { key: 'c7e24da48dafb8ecd8d461a272897efa9723c634' })), index.h("tr", { key: '8b538e7208adf89505842965b969e0bcc393e1ab', class: {
|
|
129
154
|
'tds-table__row-expand': true,
|
|
130
155
|
'tds-table__row-expand--expanded': this.isExpanded,
|
|
131
|
-
}, part: "expand-row" }, index.h("td", { key: '
|
|
156
|
+
}, part: "expand-row" }, index.h("td", { key: 'b8cc7780fd35b1eb46718d1670f89b2c28c5e0fd', class: {
|
|
132
157
|
'tds-table__cell-expand': true,
|
|
133
158
|
'tds-table__cell-expand--overflow-hidden': this.overflow === 'hidden',
|
|
134
159
|
'tds-table__cell-expand--overflow-visible': this.overflow === 'visible',
|
|
135
|
-
}, part: "expand-row-cell", colSpan: (_a = this.columnsNumber) !== null && _a !== void 0 ? _a : undefined }, index.h("div", { key: '
|
|
160
|
+
}, part: "expand-row-cell", colSpan: (_a = this.columnsNumber) !== null && _a !== void 0 ? _a : undefined }, index.h("div", { key: '877805be7aa699870575767188b63bf9b5eb4ffe', style: {
|
|
136
161
|
overflow: this.overflow,
|
|
137
|
-
} }, index.h("slot", { key: '
|
|
162
|
+
} }, index.h("slot", { key: '0fcc6e24283b7c8e755e42fc16a6adccdd0193b9', name: "expand-row" }))))));
|
|
138
163
|
}
|
|
139
164
|
get host() { return index.getElement(this); }
|
|
140
165
|
static get watchers() { return {
|
|
@@ -79,13 +79,13 @@ const TdsTableBodyRow = class {
|
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
|
-
return (index.h(index.Host, { key: '
|
|
82
|
+
return (index.h(index.Host, { key: 'de0e413cf92011d5b652d19512dd58c243fb40f2', tabindex: this.clickable ? '0' : null, class: {
|
|
83
83
|
'tds-table__row': true,
|
|
84
84
|
'tds-table__row--selected': this.selected,
|
|
85
85
|
'tds-table__compact': this.compactDesign,
|
|
86
86
|
'tds-table--divider': this.verticalDividers,
|
|
87
87
|
'tds-table__row--clickable': this.clickable,
|
|
88
|
-
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e), role: "row" }, this.multiselect && (index.h("td", { key: '
|
|
88
|
+
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e), role: "row" }, this.multiselect && (index.h("td", { key: '23fb993da5cac2a419719723d7a259460b179f55', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, index.h("tds-checkbox", { key: 'eab391b07c02f9fa913022fc9c8ebef0dab16ce8', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), index.h("slot", { key: '5cd67b73cc428535ede2cb934d6b3dc36630e36d' })));
|
|
89
89
|
}
|
|
90
90
|
get host() { return index.getElement(this); }
|
|
91
91
|
};
|
|
@@ -67,12 +67,12 @@ const TdsTableBody = class {
|
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
render() {
|
|
70
|
-
return (index.h(index.Host, { key: '
|
|
70
|
+
return (index.h(index.Host, { key: 'd61524e078103156a13685d1071258a674767f5f', "data-selected-rows": this.multiselectArrayJSON, class: {
|
|
71
71
|
'tds-table--zebra-mode-rows-odd': this.zebraMode === 'rows-odd',
|
|
72
72
|
'tds-table--zebra-mode-rows-even': this.zebraMode === 'rows-even',
|
|
73
73
|
'tds-table--zebra-mode-columns-odd': this.zebraMode === 'columns-odd',
|
|
74
74
|
'tds-table--zebra-mode-columns-even': this.zebraMode === 'columns-even',
|
|
75
|
-
} }, index.h("slot", { key: '
|
|
75
|
+
} }, index.h("slot", { key: '2e7d10195e21f906269ae74f262debc2d3b4f38b' })));
|
|
76
76
|
}
|
|
77
77
|
get host() { return index.getElement(this); }
|
|
78
78
|
};
|
|
@@ -7,6 +7,8 @@ const tableFooterCss = () => `:host{box-sizing:border-box;display:table-footer-g
|
|
|
7
7
|
const relevantTableProps = [
|
|
8
8
|
'compactDesign',
|
|
9
9
|
'horizontalScrollWidth',
|
|
10
|
+
'multiselect',
|
|
11
|
+
'expandableRows',
|
|
10
12
|
];
|
|
11
13
|
function removeShakeAnimation(e) {
|
|
12
14
|
e.target.classList.remove('tds-table__page-selector-input--shake');
|
|
@@ -31,6 +33,10 @@ const TdsTableFooter = class {
|
|
|
31
33
|
this.columnsNumber = 0;
|
|
32
34
|
/* Sets the footer to use compact design. */
|
|
33
35
|
this.compactDesign = false;
|
|
36
|
+
/* State to track if multiselect is enabled on parent table. */
|
|
37
|
+
this.multiselect = false;
|
|
38
|
+
/* State to track if expandableRows is enabled on parent table. */
|
|
39
|
+
this.expandableRows = false;
|
|
34
40
|
this.lastCorrectValue = 1;
|
|
35
41
|
this.tableId = '';
|
|
36
42
|
this.horizontalScrollWidth = null;
|
|
@@ -91,6 +97,31 @@ const TdsTableFooter = class {
|
|
|
91
97
|
});
|
|
92
98
|
}
|
|
93
99
|
}
|
|
100
|
+
colsChanged(newValue) {
|
|
101
|
+
if (newValue !== null) {
|
|
102
|
+
this.columnsNumber = newValue;
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
this.updateColumnsNumber();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
updateColumnsNumber() {
|
|
109
|
+
var _a, _b, _c;
|
|
110
|
+
if (this.cols) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
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;
|
|
114
|
+
let totalColumns = numberOfColumns;
|
|
115
|
+
// Add 1 for multiselect checkbox column
|
|
116
|
+
if (this.multiselect) {
|
|
117
|
+
totalColumns += 1;
|
|
118
|
+
}
|
|
119
|
+
// Add 1 for expandable rows column
|
|
120
|
+
if (this.expandableRows) {
|
|
121
|
+
totalColumns += 1;
|
|
122
|
+
}
|
|
123
|
+
this.columnsNumber = totalColumns;
|
|
124
|
+
}
|
|
94
125
|
connectedCallback() {
|
|
95
126
|
var _a;
|
|
96
127
|
this.tableEl = this.host.closest('tds-table');
|
|
@@ -109,7 +140,17 @@ const TdsTableFooter = class {
|
|
|
109
140
|
this.columnsNumber = this.cols;
|
|
110
141
|
}
|
|
111
142
|
else {
|
|
112
|
-
|
|
143
|
+
// Calculate total columns including multiselect and expandable columns
|
|
144
|
+
let totalColumns = numberOfColumns;
|
|
145
|
+
// Add 1 for multiselect checkbox column
|
|
146
|
+
if (this.multiselect) {
|
|
147
|
+
totalColumns += 1;
|
|
148
|
+
}
|
|
149
|
+
// Add 1 for expandable rows column
|
|
150
|
+
if (this.expandableRows) {
|
|
151
|
+
totalColumns += 1;
|
|
152
|
+
}
|
|
153
|
+
this.columnsNumber = totalColumns;
|
|
113
154
|
}
|
|
114
155
|
}
|
|
115
156
|
/* Function to store last valid input */
|
|
@@ -145,18 +186,27 @@ const TdsTableFooter = class {
|
|
|
145
186
|
}
|
|
146
187
|
render() {
|
|
147
188
|
var _a;
|
|
148
|
-
return (index.h(index.Host, { key: '
|
|
189
|
+
return (index.h(index.Host, { key: '961b5b3b5aa0311a2cc962601bbde69cb892c0df', class: {
|
|
149
190
|
'tds-table--compact': this.compactDesign,
|
|
150
191
|
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
151
|
-
}, style: this.getStyles() }, index.h("tr", { key: '
|
|
152
|
-
return (index.h("tds-dropdown-option", { value: `${value}` }, value));
|
|
153
|
-
}))))), index.h("div", { key: 'aa4872b13712174bfa21c94b15b93816c713fd29', class: "tds-table__page-selector" }, index.h("input", { key: 'fa1964c83ec002ccc6e4061ae1f8596d9ee15836', ref: (element) => {
|
|
192
|
+
}, style: this.getStyles() }, index.h("tr", { key: 'a95c34f7248fe17ff7e6911cb75ac5f8a7e66397', class: "tds-table__footer-row" }, index.h("td", { key: '3fa687650250154d63515696845c77b25a99a637', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (index.h("div", { key: '8484735a6d4d8d805b1a532a9ee3f982ac91aff5', class: "tds-table__pagination" }, index.h("div", { key: '543cfb0c349fb2a7b4443d4dfadb9b3891864ebc', class: "tds-table__row-selector" }, this.rowsperpage && ((_a = this.rowsPerPageValues) === null || _a === void 0 ? void 0 : _a.length) > 0 && (index.h("div", { key: '40ee62cc8374dc8113bed771a814289be7d978bd', class: "rows-per-page" }, index.h("p", { key: '0a1f178e952e55b250c5ad1e0b59f1f8d664a947' }, "Rows per page"), index.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) => (index.h("tds-dropdown-option", { value: `${value}` }, value))))))), index.h("div", { key: '2ba6b8e4a67f3d82980f48f8d858f9fe228ef04e', class: "tds-table__page-selector" }, index.h("input", { key: '45c5662f2c314d2616200f0faa10637cfadd8a0c', ref: (element) => {
|
|
154
193
|
if (element) {
|
|
155
194
|
this.inputElement = element;
|
|
156
195
|
}
|
|
157
|
-
}, 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 }), index.h("p", { key: '
|
|
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 }), index.h("p", { key: 'acf03cce754c2e2992af498855a8e65370f80c0e', class: "tds-table__footer-text" }, "of ", index.h("span", { key: '9fb1b364868e11ae9feb3cd560f17973a36f12bd' }, this.pages), " pages"), index.h("button", { key: 'd0945e0f2dbd43fb1c433388b14c517d94da4d95', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.firstPage() }, index.h("tds-icon", { key: '8c2c3b150d61e4db7dcbf7558646be0f2b90fe84', name: "skip_backwards", size: "20px" })), index.h("button", { key: '7df941515765b780c4c72c52b0842c719b88ff2d', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, index.h("tds-icon", { key: 'b8af8f6c3eb7680169764124ade9f6f56899b83d', name: "chevron_left", size: "20px" })), index.h("button", { key: 'd4cfa0117ef5bfbda435584a505d330d5bfb86a3', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, index.h("tds-icon", { key: 'e1fa66d3959ed648952b0fd170b00f43db23385f', name: "chevron_right", size: "20px" })), index.h("button", { key: 'e8290d680d8ac50cf61089813b94fefa6682b2d1', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.lastPage() }, index.h("tds-icon", { key: '3e26941199388b86bb0069967851d74921300950', name: "skip_forward", size: "20px" })))))))));
|
|
158
197
|
}
|
|
159
198
|
get host() { return index.getElement(this); }
|
|
199
|
+
static get watchers() { return {
|
|
200
|
+
"cols": [{
|
|
201
|
+
"colsChanged": 0
|
|
202
|
+
}],
|
|
203
|
+
"multiselect": [{
|
|
204
|
+
"updateColumnsNumber": 0
|
|
205
|
+
}],
|
|
206
|
+
"expandableRows": [{
|
|
207
|
+
"updateColumnsNumber": 0
|
|
208
|
+
}]
|
|
209
|
+
}; }
|
|
160
210
|
};
|
|
161
211
|
TdsTableFooter.style = tableFooterCss();
|
|
162
212
|
|
|
@@ -70,7 +70,7 @@ const TdsTableHeaderInputWrapper = class {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
|
-
return (index.h(index.Host, { key: '
|
|
73
|
+
return (index.h(index.Host, { key: '4528be1b81397ac403bb7ba6cd274f26e1a6aff3', class: {
|
|
74
74
|
'focused-input-wrapper': this.inputFocused,
|
|
75
75
|
'show-icon': this.showIcon,
|
|
76
76
|
'tds-table__compact': this.compactDesign,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var index = require('./index-DGsdvbvx.js');
|
|
4
4
|
|
|
5
|
-
const tableHeaderCss = () => `:host{box-sizing:border-box;display:table-header-group}:host *{box-sizing:border-box}:host .tds-table__header-cell--checkbox{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);display:table-cell;text-align:left;color:var(--tds-table-color);background-color:var(--tds-table-header-background);border-bottom:1px solid var(--tds-table-divider);height:48px;box-sizing:border-box;overflow:hidden;transition:background-color 200ms ease;min-width:unset;width:48px;padding:0;border-top-left-radius:4px}:host .tds-form-label--table{width:100%;height:48px;display:flex;justify-content:center;align-items:center;cursor:pointer}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:48px;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input{display:none}:host .tds-table__expand-control-container .tds-expandable-row-icon{height:20px;width:20px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__expand-control-container .tds-expandable-row-icon--opened{transform:rotate(180deg)}:host
|
|
5
|
+
const tableHeaderCss = () => `:host{box-sizing:border-box;display:table-header-group}:host *{box-sizing:border-box}:host .tds-table__header-cell--checkbox{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);display:table-cell;text-align:left;color:var(--tds-table-color);background-color:var(--tds-table-header-background);border-bottom:1px solid var(--tds-table-divider);height:48px;box-sizing:border-box;overflow:hidden;transition:background-color 200ms ease;min-width:unset;width:48px;padding:0;border-top-left-radius:4px}:host .tds-form-label--table{width:100%;height:48px;display:flex;justify-content:center;align-items:center;cursor:pointer}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:48px;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input{display:none}:host .tds-table__expand-control-container .tds-expandable-row-icon{height:20px;width:20px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__expand-control-container .tds-expandable-row-icon--opened{transform:rotate(180deg)}:host(.tds-table--compact) .tds-table__header-cell--checkbox{height:32px}:host(.tds-table--compact) .tds-form-label--table{height:32px}:host(.tds-table--divider) .tds-table__header-cell--checkbox{border-right:1px solid var(--tds-table-divider)}:host(.tds-table--toolbar-available) .tds-table__header-cell--checkbox{border-top-left-radius:0}`;
|
|
6
6
|
|
|
7
7
|
const relevantTableProps = [
|
|
8
8
|
'multiselect',
|
|
@@ -94,11 +94,11 @@ const TdsTableHeaderRow = class {
|
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
|
-
return (index.h(index.Host, { key: '
|
|
97
|
+
return (index.h(index.Host, { key: '88b6399e20ad62915e2fc6b7dc77f0274bcc4c53', class: {
|
|
98
98
|
'tds-table--compact': this.compactDesign,
|
|
99
99
|
'tds-table--divider': this.verticalDividers,
|
|
100
100
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
101
|
-
} }, index.h("tr", { key: '
|
|
101
|
+
} }, index.h("tr", { key: '39f977fed7af33525ade2bc1ba56d90689bd95f2' }, this.multiselect && (index.h("th", { key: '94fdaf3504f4f8a30cc201fce98f094a70936dbb', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, index.h("div", { key: '6e614faf8610379510fe440777a20083cb29f818', class: "tds-form-label tds-form-label--table" }, index.h("tds-checkbox", { key: '59732675c10272928260a88bcdf7e01ddd5cbc0c', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (index.h("th", { key: 'e359230499f01aed71f6c9c7dc929ebeb95bcde4', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), index.h("slot", { key: '8d359504221abdb767a8334d2c7ef6d89091f746' }))));
|
|
102
102
|
}
|
|
103
103
|
get host() { return index.getElement(this); }
|
|
104
104
|
};
|
|
@@ -76,10 +76,10 @@ const TdsTableToolbar = class {
|
|
|
76
76
|
return styles;
|
|
77
77
|
}
|
|
78
78
|
render() {
|
|
79
|
-
return (index.h(index.Host, { key: '
|
|
79
|
+
return (index.h(index.Host, { key: 'be05d6c6aea404550a6717e89d10b8927e135ff1', class: {
|
|
80
80
|
'tds-table--compact': this.compactDesign,
|
|
81
81
|
'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
82
|
-
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, index.h("div", { key: '
|
|
82
|
+
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, index.h("div", { key: '7a352d94ee0b3d66cb5aff378bbaa50ab7cf7570', class: "tds-table__upper-bar-flex" }, index.h("div", { key: '0d5e20bcf75ee696d3fb6b9aabbe81e4d06caca3', class: "tds-table__actionbar-left" }, this.tableTitle && (index.h("caption", { key: '4fbd20e21eed929f095ed9ccc7b0976745a44d5c', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle)), index.h("slot", { key: '1f27b7ee7619d5fa0f3d7955d8389fd0a6ad240e', name: "start" })), index.h("div", { key: 'e1834ffef99023a09055afceabb3881b8dc9282e', class: "tds-table__actionbar" }, this.filter && (index.h("div", { key: 'b19d36b835ae78223f7aff455b7b737c9bd7e8b1', class: "tds-table__searchbar" }, index.h("input", { key: '0dc7030b377d68a4f38af12938a775f56a66f916', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), index.h("span", { key: '78ba2ad22e558359f43e6a3962df1cd62f5df087', class: "tds-table__searchbar-icon" }, index.h("tds-icon", { key: 'ccb72495379cf0bfed59263efc3c36bc9d004b55', name: "search", size: "20px" })))), index.h("slot", { key: 'baefd115b4f5b42a203698afdc9ce7b6d3a28d89', name: "end" })))));
|
|
83
83
|
}
|
|
84
84
|
get host() { return index.getElement(this); }
|
|
85
85
|
};
|
|
@@ -48,10 +48,13 @@ const TdsTable = class {
|
|
|
48
48
|
}
|
|
49
49
|
/** Returns all selected rows data. */
|
|
50
50
|
async getSelectedRows() {
|
|
51
|
-
var _a;
|
|
51
|
+
var _a, _b;
|
|
52
52
|
let selectedRowsData = [];
|
|
53
53
|
const tableBody = this.host.querySelector('tds-table-body');
|
|
54
|
-
|
|
54
|
+
// Get both regular rows and expandable rows
|
|
55
|
+
const regularRows = Array.from((_a = tableBody === null || tableBody === void 0 ? void 0 : tableBody.querySelectorAll('tds-table-body-row')) !== null && _a !== void 0 ? _a : []).filter((element) => element.selected);
|
|
56
|
+
const expandableRows = Array.from((_b = tableBody === null || tableBody === void 0 ? void 0 : tableBody.querySelectorAll('tds-table-body-row-expandable')) !== null && _b !== void 0 ? _b : []).filter((element) => element.selected);
|
|
57
|
+
const selectedRows = [...regularRows, ...expandableRows];
|
|
55
58
|
selectedRows.forEach((row) => {
|
|
56
59
|
let selectedRow = [];
|
|
57
60
|
const rowCells = Array.from(row.getElementsByTagName('tds-body-cell'));
|
|
@@ -110,11 +113,11 @@ const TdsTable = class {
|
|
|
110
113
|
}
|
|
111
114
|
}
|
|
112
115
|
render() {
|
|
113
|
-
return (index.h(index.Host, { key: '
|
|
116
|
+
return (index.h(index.Host, { key: '677bf0b8c1df0154c90438ad8af1c947b701a1f8', class: {
|
|
114
117
|
'tds-table--responsive': this.responsive,
|
|
115
118
|
'tds-mode-variant-primary': this.modeVariant === 'primary',
|
|
116
119
|
'tds-mode-variant-secondary': this.modeVariant === 'secondary',
|
|
117
|
-
} }, index.h("table", { key: '
|
|
120
|
+
} }, index.h("table", { key: '673a4b1bae0b0430760697b0312611d0a91421bf', style: this.getStyles(), class: {
|
|
118
121
|
'tds-table': true,
|
|
119
122
|
'tds-table--compact': this.compactDesign,
|
|
120
123
|
'tds-table--divider': this.verticalDividers,
|
|
@@ -125,7 +128,7 @@ const TdsTable = class {
|
|
|
125
128
|
'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
|
|
126
129
|
'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
|
|
127
130
|
'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
|
|
128
|
-
} }, index.h("slot", { key: '
|
|
131
|
+
} }, index.h("slot", { key: '218dfb52cd9498b0c72839dd6d0c2f4bb71a89cb' }))));
|
|
129
132
|
}
|
|
130
133
|
get host() { return index.getElement(this); }
|
|
131
134
|
static get watchers() { return {
|
|
@@ -17,9 +17,9 @@ const TdsTag = class {
|
|
|
17
17
|
const hasPrefixSlot = hasSlot.hasSlot('prefix', this.host);
|
|
18
18
|
const getTagClasses = () => ({
|
|
19
19
|
[`${this.size.toLowerCase()}`]: true,
|
|
20
|
-
[
|
|
20
|
+
[this.variant.toLowerCase()]: true,
|
|
21
21
|
});
|
|
22
|
-
return (index.h(index.Host, { key: '
|
|
22
|
+
return (index.h(index.Host, { key: '2521098fe251ec50aee644245e26ab39b5ef7109', class: getTagClasses() }, index.h("div", { key: '5b4964c3589f3a43d7751198a79a514d55e04ac5', class: "tds-tag__content" }, hasPrefixSlot && index.h("slot", { key: '241aa451188336040446248322c3a1560b69cd20', name: "prefix" }), index.h("span", { key: '9bea95c3f292ef6c4767ba9461f13b47fc5b2a50' }, this.text))));
|
|
23
23
|
}
|
|
24
24
|
get host() { return index.getElement(this); }
|
|
25
25
|
};
|
|
@@ -117,7 +117,7 @@ const TdsTextField = class {
|
|
|
117
117
|
var _a, _b, _c, _d;
|
|
118
118
|
const usesPrefixSlot = hasSlot.hasSlot('prefix', this.host);
|
|
119
119
|
const usesSuffixSlot = hasSlot.hasSlot('suffix', this.host);
|
|
120
|
-
return (index.h("div", { key: '
|
|
120
|
+
return (index.h("div", { key: 'fc3f2e8ac55bbf7d58853eab5219aea93f7c9ab9', class: {
|
|
121
121
|
'form-text-field': true,
|
|
122
122
|
'form-text-field-nomin': this.noMinWidth,
|
|
123
123
|
'text-field-focus': this.focusInput && !this.disabled,
|
|
@@ -135,12 +135,12 @@ const TdsTextField = class {
|
|
|
135
135
|
'form-text-field-sm': this.size === 'sm',
|
|
136
136
|
'form-text-field-error': this.state === 'error',
|
|
137
137
|
'form-text-field-success': this.state === 'success',
|
|
138
|
-
} }, this.labelPosition === 'outside' && (index.h("div", { key: '
|
|
138
|
+
} }, this.labelPosition === 'outside' && (index.h("div", { key: '54b1ec0d30841b9dee730a5da4d95f7c2ec513a7', class: "text-field-label-outside" }, index.h("label", { key: '96ac690b7f5265d96c24e52aa895b92bd5588656', htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), index.h("div", { key: 'ff11e245ef294a31ca2699fe2054059a702031ec', onClick: () => { var _a; return (_a = this.textInput) === null || _a === void 0 ? void 0 : _a.focus(); }, class: "text-field-container" }, usesPrefixSlot && (index.h("div", { key: '3132c1999e07ce858f54b10b6340541c40c3e02e', class: {
|
|
139
139
|
'text-field-slot-wrap-prefix': true,
|
|
140
140
|
'text-field-error': this.state === 'error',
|
|
141
141
|
'text-field-success': this.state === 'success',
|
|
142
142
|
'text-field-default': this.state === 'default',
|
|
143
|
-
} }, index.h("slot", { key: '
|
|
143
|
+
} }, index.h("slot", { key: '049997c0ac032385aa50dc13d33a63bbadcdf049', name: "prefix" }))), index.h("div", { key: '99cbbffbb290cf35caee77163f48fed58c8d6ddb', class: "text-field-input-container" }, index.h("input", { key: '73d21ee3ed1f0cc8877e5a0a6b683c4e331b22b1', ref: (inputEl) => {
|
|
144
144
|
this.textInput = inputEl;
|
|
145
145
|
}, class: {
|
|
146
146
|
'text-field-input': true,
|
|
@@ -156,13 +156,13 @@ const TdsTextField = class {
|
|
|
156
156
|
if (!this.readOnly) {
|
|
157
157
|
this.handleBlur(event);
|
|
158
158
|
}
|
|
159
|
-
}, "aria-invalid": getAriaInvalid.getAriaInvalid(this.host, this.state), "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}`, required: this.required, autocomplete: this.autocomplete }), this.labelPosition === 'inside' && this.size !== 'sm' && (index.h("label", { key: '
|
|
159
|
+
}, "aria-invalid": getAriaInvalid.getAriaInvalid(this.host, this.state), "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `text-field-helper-element-${this.uuid}`, "aria-readonly": this.readOnly, id: `text-field-input-element-${this.uuid}`, required: this.required, autocomplete: this.autocomplete }), this.labelPosition === 'inside' && this.size !== 'sm' && (index.h("label", { key: 'ad1c5bcdd51ff49e07602421f4e8f368160cc7b2', class: "text-field-label-inside", htmlFor: `text-field-input-element-${this.uuid}` }, this.label))), usesSuffixSlot && (index.h("div", { key: '52ef806d5f168301485834bd95800941b91a7bd5', class: {
|
|
160
160
|
'text-field-slot-wrap-suffix': true,
|
|
161
161
|
'text-field-error': this.state === 'error',
|
|
162
162
|
'text-field-success': this.state === 'success',
|
|
163
163
|
'text-field-default': this.state === 'default',
|
|
164
164
|
'tds-u-display-none': this.readOnly,
|
|
165
|
-
} }, index.h("slot", { key: '
|
|
165
|
+
} }, index.h("slot", { key: '837a31890e5a54fded2f05f40882f2756b9af41c', name: "suffix" }))), this.readOnly && !this.hideReadOnlyIcon && (index.h("span", { key: '4c4d50d36c26bc7a68f61aed515f49cb1c6c510a', class: "text-field-icon__readonly" }, index.h("tds-tooltip", { key: '065e0ff598dba8db4aefffa977c1773d9326a4ed', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), index.h("tds-icon", { key: '7825231a8693057fb9648c31f61631bed454b757', id: "readonly-tooltip", name: "edit_inactive", size: "20px" })))), index.h("div", { key: '993e4fe3d5d51af92b6cd27c904561e4691e097e', "aria-live": "assertive" }, (this.helper || ((_a = this.maxLength) !== null && _a !== void 0 ? _a : 0) > 0) && (index.h("div", { key: '52089552d0b3c2c1dd74ad0eb726882eb29e333e', class: "text-field-helper", id: `text-field-helper-element-${this.uuid}` }, this.state === 'error' && (index.h("div", { key: '95f826115b61119d6c538071b4bff75320ff38c8', class: "text-field-helper-error-state" }, !this.readOnly && index.h("tds-icon", { key: 'a8b1536d5ad673abec3d0b56af758179bc694ef4', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, !this.readOnly && ((_b = this.maxLength) !== null && _b !== void 0 ? _b : 0) > 0 && (index.h("span", { key: '0a37e035b4a707e6b541d045c4b7d11345bb3a7a', class: {
|
|
166
166
|
'text-field-textcounter-divider': true,
|
|
167
167
|
'text-field-textcounter-disabled': this.disabled,
|
|
168
168
|
} }, this.value === null ? 0 : (_c = this.value) === null || _c === void 0 ? void 0 : _c.length, " / ", (_d = this.maxLength) !== null && _d !== void 0 ? _d : 0)))))));
|
|
@@ -80,7 +80,7 @@ const TdsTextarea = class {
|
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
82
|
var _a, _b;
|
|
83
|
-
return (index.h("div", { key: '
|
|
83
|
+
return (index.h("div", { key: '8ec1f4fa4fe4812b82df611215e0e4d70e7f9675', class: {
|
|
84
84
|
'textarea-container': true,
|
|
85
85
|
'textarea-label-inside': this.labelPosition === 'inside',
|
|
86
86
|
'textarea-focus': this.focusInput,
|
|
@@ -90,7 +90,7 @@ const TdsTextarea = class {
|
|
|
90
90
|
'textarea-data': this.value !== '',
|
|
91
91
|
[`textarea-${this.state}`]: this.state === 'error' || this.state === 'success',
|
|
92
92
|
'no-min-width': this.noMinWidth,
|
|
93
|
-
} }, this.labelPosition !== 'no-label' && (index.h("label", { key: '
|
|
93
|
+
} }, this.labelPosition !== 'no-label' && (index.h("label", { key: '1934cea443322d3fe5985f4922d81adfc4b12050', htmlFor: `textarea-element-${this.uuid}`, class: 'textarea-label' }, this.label)), index.h("div", { key: 'b5fa8ea9b76c0d6f15f56e8f7118e2515c9f0575', class: "textarea-wrapper" }, index.h("textarea", { key: '8a646f1469e1ad85929e14b3307108a61346051d', id: `textarea-element-${this.uuid}`, class: 'textarea-input', ref: (inputEl) => {
|
|
94
94
|
this.textEl = inputEl;
|
|
95
95
|
}, disabled: this.disabled, readonly: !this.disabled && this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
|
|
96
96
|
if (!this.readOnly) {
|
|
@@ -100,7 +100,7 @@ const TdsTextarea = class {
|
|
|
100
100
|
if (!this.readOnly) {
|
|
101
101
|
this.handleBlur(event);
|
|
102
102
|
}
|
|
103
|
-
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": getAriaInvalid.getAriaInvalid(this.host, this.state), "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), index.h("span", { key: '
|
|
103
|
+
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event), "aria-invalid": getAriaInvalid.getAriaInvalid(this.host, this.state), "aria-readonly": this.readOnly ? 'true' : 'false', "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label, "aria-describedby": `textarea-helper-element-${this.uuid}` }), index.h("span", { key: '1862a87a0f4df2ce792224d52b7200e2dea869ce', class: "textarea-resizer-icon" }, index.h("svg", { key: '3d244807d961562154f440fe2fd5d9fcb646bf2d', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: 'c3156c218477a7561347c905fce3202ef30a2d70', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), !this.disabled && !this.hideReadOnlyIcon && this.readOnly && (index.h("span", { key: '01f19a2ffeb8eec26bd40f6c5fe528a51ab8efc2', class: "textarea-icon__readonly" }, index.h("tds-tooltip", { key: 'aad18ef17f48b67f16489c27259b6dc83d450ac7', placement: "top-end", text: "This field is non-editable", selector: "#readonly-tooltip" }), index.h("tds-icon", { key: 'a85ba4baecf20f9060ac9d31ae4cbdce6e55be52', id: "readonly-tooltip", name: "edit_inactive", svgTitle: "inactive" })))), index.h("span", { key: '9c091b88c2523593a4c17389500ea62bf9fb7daf', class: 'textarea-helper', "aria-live": "assertive", id: `textarea-helper-element-${this.uuid}` }, this.state === 'error' && this.helper && !this.readOnly && (index.h("tds-icon", { key: 'bfcefc87cf89f9113947fc1ca198c047e1ba1844', name: "error", size: "16px" })), this.helper), ((_a = this.maxLength) !== null && _a !== void 0 ? _a : 0) > 0 && (index.h("div", { key: '6d47d2aa60ac968db9e0ce348f313b3a73e99ce8', class: 'textarea-textcounter' }, this.value === null ? 0 : (_b = this.value) === null || _b === void 0 ? void 0 : _b.length, index.h("span", { key: '0c852f6eb696e038b6b3d624f749e35b88a02a44', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
|
|
104
104
|
}
|
|
105
105
|
get host() { return index.getElement(this); }
|
|
106
106
|
};
|
|
@@ -70,12 +70,12 @@ const TdsToast = class {
|
|
|
70
70
|
const usesHeaderSlot = hasSlot.hasSlot('header', this.host);
|
|
71
71
|
const usesSubheaderSlot = hasSlot.hasSlot('subheader', this.host);
|
|
72
72
|
const usesActionsSlot = hasSlot.hasSlot('actions', this.host);
|
|
73
|
-
return (index.h(index.Host, { key: '
|
|
73
|
+
return (index.h(index.Host, { key: '6b4edbfd2db3b36686d1f0a59efc37207bce1fe6', "aria-live": this.tdsAriaLive, toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
|
|
74
74
|
hide: this.hidden,
|
|
75
75
|
show: !this.hidden,
|
|
76
|
-
} }, index.h("div", { key: '
|
|
76
|
+
} }, index.h("div", { key: 'bb9a497e06ebf8252d671dbebe4647e2a970e110', class: `
|
|
77
77
|
wrapper
|
|
78
|
-
${this.variant}` }, index.h("tds-icon", { key: '
|
|
78
|
+
${this.variant}` }, index.h("tds-icon", { key: 'e80f0c5c9aa84c6af5b18a5c6419714256de15cc', name: this.getIconName(), size: "20px", svgTitle: this.getIconName() }), index.h("div", { key: '3579f1a4df6bb2f8e470faff9ed37411b273d2e9', class: `content` }, index.h("div", { key: '498a462acefd6c1de9de16cff54bd0562ba10afd', class: "header-subheader" }, this.header && index.h("div", { key: '6766649b4b76fcece961ea1ee0d0f6d6e633a7f3', class: "header" }, this.header), usesHeaderSlot && index.h("slot", { key: '758f4a23e4d02245bf733c8a5d77d78231c8bd8d', name: "header" }), this.subheader && index.h("div", { key: 'ba10c4f9ec1202c014d290bfb36e68e055e1231d', class: "subheader" }, this.subheader), usesSubheaderSlot && index.h("slot", { key: '41c064fc3bcbcc4228b6ac1bf6315cc25af8109e', name: "subheader" })), usesActionsSlot && (index.h("div", { key: 'c8ea9ffecfd96eef5eaa229e3e04a9c92964ada0', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, index.h("slot", { key: 'ff8bf4c4ab15613895d2547ed666c435928ae9e4', name: "actions" })))), this.closable && (index.h("button", { key: '2d702e910607b1264d1c943a8c2cd2203b6b318b', id: "my-button", "aria-label": this.tdsCloseAriaLabel, onClick: this.handleClose, class: "close" }, index.h("tds-icon", { key: '856d5148a41cab121714c59d78d3da9281b2e780', name: "cross", size: "20px", svgTitle: "cross" }))))));
|
|
79
79
|
}
|
|
80
80
|
get host() { return index.getElement(this); }
|
|
81
81
|
};
|
|
@@ -45,13 +45,13 @@ const TdsToggle = class {
|
|
|
45
45
|
this.labelSlot = this.host.querySelector("[slot='label']");
|
|
46
46
|
}
|
|
47
47
|
render() {
|
|
48
|
-
return (index.h("div", { key: '
|
|
48
|
+
return (index.h("div", { key: 'c60055a21cec53a50361aedf9be5734f33312a0c', class: "tds-toggle" }, this.headline && (index.h("div", { key: '69db2c26d93322a105a1485d5699baa252239fcd', class: {
|
|
49
49
|
'toggle-headline': true,
|
|
50
50
|
'disabled': this.disabled,
|
|
51
|
-
} }, this.headline)), index.h("input", { key: '
|
|
51
|
+
} }, this.headline)), index.h("input", { key: '95f8df390d76f15895dba32297602b368dd4e92f', ref: (inputEl) => {
|
|
52
52
|
if (inputEl)
|
|
53
53
|
this.inputElement = inputEl;
|
|
54
|
-
}, "aria-label": this.tdsAriaLabel, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), this.labelSlot && (index.h("label", { key: '
|
|
54
|
+
}, "aria-label": this.tdsAriaLabel, "aria-describedby": this.host.getAttribute('aria-describedby'), "aria-labelledby": this.host.getAttribute('aria-labelledby'), "aria-checked": this.checked, "aria-required": this.required, onChange: () => this.handleToggle(), class: `${this.size}`, checked: this.checked, disabled: this.disabled, required: this.required, type: "checkbox", name: this.name, id: this.toggleId, role: "switch" }), this.labelSlot && (index.h("label", { key: '7ff4be2cc525da36416b27b73162dbb3c7af5f24', class: { disabled: this.disabled }, htmlFor: this.toggleId }, index.h("slot", { key: '0f950e7eee719502e6f283469cb5d8e535c7ce9e', name: "label" })))));
|
|
55
55
|
}
|
|
56
56
|
get host() { return index.getElement(this); }
|
|
57
57
|
};
|
|
@@ -67,7 +67,7 @@ const TdsTooltip = class {
|
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
69
|
var _a;
|
|
70
|
-
return (index.h(index.Host, { key: '
|
|
70
|
+
return (index.h(index.Host, { key: 'e814ba0c931d15c9bfcf8b50ad62e30c87c5dbc6', role: "tooltip", "aria-describedby": this.tdsAriaDescribedby, "aria-label": this.text }, index.h("tds-popover-core", Object.assign({ key: 'eb7a20ba6b3c47fb58f7a2137574f22f02c329ee' }, this.inheritedAttributes, { class: {
|
|
71
71
|
'tds-tooltip': true,
|
|
72
72
|
[`tds-tooltip-${this.border}`]: true,
|
|
73
73
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
@@ -76,7 +76,7 @@ const TdsTooltip = class {
|
|
|
76
76
|
this.show = true;
|
|
77
77
|
}, onInternalTdsClose: () => {
|
|
78
78
|
this.show = false;
|
|
79
|
-
}, defaultShow: this.defaultShow }), this.text, index.h("slot", { key: '
|
|
79
|
+
}, defaultShow: this.defaultShow }), this.text, index.h("slot", { key: '7d0b1b149bcc61af44b378821ea6306b94d8b212' }))));
|
|
80
80
|
}
|
|
81
81
|
get host() { return index.getElement(this); }
|
|
82
82
|
};
|