@scania/tegel 1.11.0 → 1.12.1-ng-form-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{index-fd96d7bb.js → index-e35387f4.js} +1656 -1606
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/tds-badge.cjs.entry.js +1 -1
- package/dist/cjs/tds-banner.cjs.entry.js +1 -1
- package/dist/cjs/tds-block.cjs.entry.js +1 -1
- package/dist/cjs/tds-body-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/tds-button.cjs.entry.js +2 -2
- package/dist/cjs/tds-card.cjs.entry.js +1 -1
- package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/tds-chip.cjs.entry.js +1 -1
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
- package/dist/cjs/tds-datetime.cjs.entry.js +1 -1
- package/dist/cjs/tds-divider.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown.cjs.entry.js +18 -29
- package/dist/cjs/tds-folder-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer-group.cjs.entry.js +1 -1
- 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 +15 -19
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header.cjs.entry.js +2 -2
- package/dist/cjs/tds-icon.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-link.cjs.entry.js +1 -1
- package/dist/cjs/tds-message.cjs.entry.js +1 -1
- package/dist/cjs/tds-modal.cjs.entry.js +1 -1
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu.cjs.entry.js +1 -1
- package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu.cjs.entry.js +2 -2
- package/dist/cjs/tds-slider.cjs.entry.js +1 -1
- package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tds-step.cjs.entry.js +3 -3
- package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +5 -5
- package/dist/cjs/tds-table-body-row.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-footer.cjs.entry.js +11 -4
- package/dist/cjs/tds-table-header.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +8 -3
- package/dist/cjs/tds-table.cjs.entry.js +26 -6
- package/dist/cjs/tds-text-field.cjs.entry.js +2 -2
- package/dist/cjs/tds-textarea.cjs.entry.js +3 -3
- package/dist/cjs/tds-toast.cjs.entry.js +1 -1
- package/dist/cjs/tds-toggle.cjs.entry.js +2 -2
- package/dist/cjs/tds-tooltip.cjs.entry.js +12 -5
- package/dist/cjs/tegel.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/button/button.css +8 -5
- package/dist/collection/components/dropdown/dropdown.css +1 -0
- package/dist/collection/components/dropdown/dropdown.js +16 -27
- package/dist/collection/components/footer/footer.js +1 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.css +1 -0
- package/dist/collection/components/header/header-launcher/header-launcher.css +1 -0
- package/dist/collection/components/header/header.css +1 -0
- package/dist/collection/components/popover-canvas/popover-canvas.js +1 -1
- package/dist/collection/components/popover-core/popover-core.js +1 -1
- package/dist/collection/components/popover-menu/popover-menu.js +1 -1
- package/dist/collection/components/side-menu/side-menu.css +1 -0
- package/dist/collection/components/side-menu/side-menu.js +3 -3
- package/dist/collection/components/stepper/step/step.css +16 -6
- package/dist/collection/components/stepper/step/step.js +1 -1
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/table/table/table.css +61 -0
- package/dist/collection/components/table/table/table.js +50 -4
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +7 -4
- package/dist/collection/components/table/table-footer/table-footer.css +6 -0
- package/dist/collection/components/table/table-footer/table-footer.js +11 -3
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +7 -0
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +31 -17
- package/dist/collection/components/table/table-toolbar/table-toolbar.css +5 -0
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +8 -2
- package/dist/collection/components/text-field/text-field.js +1 -1
- package/dist/collection/components/textarea/textarea.css +0 -3
- package/dist/collection/components/textarea/textarea.js +1 -1
- package/dist/collection/components/toggle/toggle.css +6 -0
- package/dist/collection/components/tooltip/tooltip.js +31 -6
- package/dist/components/index.js +1 -1
- package/dist/components/{p-7be5d0df.js → p-31ae0be9.js} +1 -1
- package/dist/components/{p-604b1ae6.js → p-35fa6479.js} +165 -129
- package/dist/components/{p-2d20f437.js → p-555d76b0.js} +1 -1
- package/dist/components/{p-c393fec5.js → p-5f5420e5.js} +1 -1
- package/dist/components/{p-2bb5f9be.js → p-8bc5892d.js} +1 -1
- package/dist/components/{p-b226e1ea.js → p-9994dba8.js} +1 -1
- package/dist/components/{p-e7f57d5e.js → p-aa4f86ab.js} +1 -1
- package/dist/components/{p-3a5f08b0.js → p-b114a29a.js} +4 -4
- package/dist/components/{p-19c59509.js → p-b205ce2c.js} +2 -2
- package/dist/components/{p-0ea19663.js → p-b7b6d3b1.js} +1 -1
- package/dist/components/{p-b615fa10.js → p-b84363b3.js} +1 -1
- package/dist/components/{p-d9d19636.js → p-d9cf3eaa.js} +2 -2
- package/dist/components/{p-7972bf06.js → p-e5207615.js} +1 -1
- package/dist/components/{p-a79e3dad.js → p-ead7cac2.js} +1 -1
- package/dist/components/tds-accordion-item.js +2 -2
- package/dist/components/tds-accordion.js +1 -1
- package/dist/components/tds-badge.js +1 -1
- package/dist/components/tds-banner.js +2 -2
- package/dist/components/tds-block.js +1 -1
- package/dist/components/tds-body-cell.js +1 -1
- package/dist/components/tds-breadcrumb.js +1 -1
- package/dist/components/tds-breadcrumbs.js +1 -1
- package/dist/components/tds-button.js +2 -2
- package/dist/components/tds-card.js +2 -2
- package/dist/components/tds-checkbox.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 +2 -2
- package/dist/components/tds-divider.js +1 -1
- package/dist/components/tds-dropdown-option.js +3 -3
- package/dist/components/tds-dropdown.js +19 -30
- package/dist/components/tds-folder-tab.js +1 -1
- package/dist/components/tds-folder-tabs.js +2 -2
- package/dist/components/tds-footer-group.js +2 -2
- package/dist/components/tds-footer-item.js +1 -1
- package/dist/components/tds-footer.js +2 -2
- package/dist/components/tds-header-brand-symbol.js +3 -3
- package/dist/components/tds-header-cell.js +23 -20
- 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 +7 -7
- package/dist/components/tds-header-hamburger.js +4 -4
- package/dist/components/tds-header-item.js +1 -1
- package/dist/components/tds-header-launcher-button.js +1 -1
- package/dist/components/tds-header-launcher-grid-item.js +1 -1
- package/dist/components/tds-header-launcher-grid-title.js +1 -1
- package/dist/components/tds-header-launcher-grid.js +1 -1
- package/dist/components/tds-header-launcher-list-item.js +2 -2
- package/dist/components/tds-header-launcher-list-title.js +1 -1
- package/dist/components/tds-header-launcher-list.js +2 -2
- package/dist/components/tds-header-launcher.js +8 -8
- package/dist/components/tds-header-title.js +1 -1
- package/dist/components/tds-header.js +2 -2
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tab.js +1 -1
- package/dist/components/tds-inline-tabs.js +2 -2
- package/dist/components/tds-link.js +1 -1
- package/dist/components/tds-message.js +2 -2
- package/dist/components/tds-modal.js +2 -2
- package/dist/components/tds-navigation-tab.js +1 -1
- package/dist/components/tds-navigation-tabs.js +2 -2
- 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 +2 -2
- package/dist/components/tds-radio-button.js +1 -1
- package/dist/components/tds-side-menu-close-button.js +2 -2
- package/dist/components/tds-side-menu-collapse-button.js +2 -2
- 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 +3 -3
- package/dist/components/tds-side-menu-item.js +1 -1
- package/dist/components/tds-side-menu-overlay.js +1 -1
- package/dist/components/tds-side-menu-user-image.js +1 -1
- package/dist/components/tds-side-menu-user-label.js +1 -1
- package/dist/components/tds-side-menu-user.js +3 -3
- package/dist/components/tds-side-menu.js +2 -2
- package/dist/components/tds-slider.js +2 -2
- package/dist/components/tds-spinner.js +1 -1
- package/dist/components/tds-step.js +4 -4
- package/dist/components/tds-stepper.js +1 -1
- package/dist/components/tds-table-body-row-expandable.js +5 -5
- package/dist/components/tds-table-body-row.js +2 -2
- package/dist/components/tds-table-body.js +1 -1
- package/dist/components/tds-table-footer.js +14 -6
- package/dist/components/tds-table-header.js +2 -2
- package/dist/components/tds-table-toolbar.js +11 -5
- package/dist/components/tds-table.js +31 -7
- package/dist/components/tds-text-field.js +3 -3
- package/dist/components/tds-textarea.js +4 -4
- package/dist/components/tds-toast.js +2 -2
- package/dist/components/tds-toggle.js +2 -2
- package/dist/components/tds-tooltip.js +14 -6
- package/dist/esm/{index-9aa00178.js → index-e7907201.js} +1656 -1606
- package/dist/esm/loader.js +3 -3
- package/dist/esm/tds-accordion-item.entry.js +1 -1
- package/dist/esm/tds-accordion.entry.js +1 -1
- package/dist/esm/tds-badge.entry.js +1 -1
- package/dist/esm/tds-banner.entry.js +1 -1
- package/dist/esm/tds-block.entry.js +1 -1
- package/dist/esm/tds-body-cell.entry.js +1 -1
- package/dist/esm/tds-breadcrumb.entry.js +1 -1
- package/dist/esm/tds-breadcrumbs.entry.js +1 -1
- package/dist/esm/tds-button.entry.js +2 -2
- package/dist/esm/tds-card.entry.js +1 -1
- package/dist/esm/tds-checkbox.entry.js +1 -1
- package/dist/esm/tds-chip.entry.js +1 -1
- package/dist/esm/tds-core-header-item_2.entry.js +1 -1
- package/dist/esm/tds-datetime.entry.js +1 -1
- package/dist/esm/tds-divider.entry.js +1 -1
- package/dist/esm/tds-dropdown-option.entry.js +1 -1
- package/dist/esm/tds-dropdown.entry.js +18 -29
- package/dist/esm/tds-folder-tab.entry.js +1 -1
- package/dist/esm/tds-folder-tabs.entry.js +1 -1
- package/dist/esm/tds-footer-group.entry.js +1 -1
- 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 +15 -19
- package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-header-dropdown.entry.js +2 -2
- package/dist/esm/tds-header-hamburger.entry.js +1 -1
- package/dist/esm/tds-header-launcher-button.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list.entry.js +1 -1
- package/dist/esm/tds-header-launcher.entry.js +2 -2
- package/dist/esm/tds-header-title.entry.js +1 -1
- package/dist/esm/tds-header.entry.js +2 -2
- package/dist/esm/tds-icon.entry.js +1 -1
- package/dist/esm/tds-inline-tab.entry.js +1 -1
- package/dist/esm/tds-inline-tabs.entry.js +1 -1
- package/dist/esm/tds-link.entry.js +1 -1
- package/dist/esm/tds-message.entry.js +1 -1
- package/dist/esm/tds-modal.entry.js +1 -1
- package/dist/esm/tds-navigation-tab.entry.js +1 -1
- package/dist/esm/tds-navigation-tabs.entry.js +1 -1
- package/dist/esm/tds-popover-canvas.entry.js +1 -1
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-popover-menu-item.entry.js +1 -1
- package/dist/esm/tds-popover-menu.entry.js +1 -1
- package/dist/esm/tds-radio-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-collapse-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown.entry.js +1 -1
- package/dist/esm/tds-side-menu-item.entry.js +1 -1
- package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
- package/dist/esm/tds-side-menu-user-image_2.entry.js +1 -1
- package/dist/esm/tds-side-menu-user.entry.js +1 -1
- package/dist/esm/tds-side-menu.entry.js +2 -2
- package/dist/esm/tds-slider.entry.js +1 -1
- package/dist/esm/tds-spinner.entry.js +1 -1
- package/dist/esm/tds-step.entry.js +3 -3
- package/dist/esm/tds-stepper.entry.js +1 -1
- package/dist/esm/tds-table-body-row-expandable.entry.js +5 -5
- package/dist/esm/tds-table-body-row.entry.js +1 -1
- package/dist/esm/tds-table-body.entry.js +1 -1
- package/dist/esm/tds-table-footer.entry.js +11 -4
- package/dist/esm/tds-table-header.entry.js +1 -1
- package/dist/esm/tds-table-toolbar.entry.js +8 -3
- package/dist/esm/tds-table.entry.js +26 -6
- package/dist/esm/tds-text-field.entry.js +2 -2
- package/dist/esm/tds-textarea.entry.js +3 -3
- package/dist/esm/tds-toast.entry.js +1 -1
- package/dist/esm/tds-toggle.entry.js +2 -2
- package/dist/esm/tds-tooltip.entry.js +12 -5
- package/dist/esm/tegel.js +4 -4
- package/dist/tegel/{p-54e139fa.entry.js → p-0042d57c.entry.js} +1 -1
- package/dist/tegel/p-013d5d11.entry.js +1 -0
- package/dist/tegel/p-01cf5bee.entry.js +1 -0
- package/dist/tegel/{p-6d7887d7.entry.js → p-020bdfc8.entry.js} +1 -1
- package/dist/tegel/{p-641b0db1.entry.js → p-046a6a9c.entry.js} +1 -1
- package/dist/tegel/{p-a384f9a0.entry.js → p-11498ada.entry.js} +1 -1
- package/dist/tegel/{p-da0fceab.entry.js → p-15f87007.entry.js} +1 -1
- package/dist/tegel/{p-fb8e02ff.entry.js → p-1c705c6b.entry.js} +1 -1
- package/dist/tegel/{p-39370666.entry.js → p-20af56e4.entry.js} +1 -1
- package/dist/tegel/{p-b7e4fc1c.entry.js → p-223998c5.entry.js} +1 -1
- package/dist/tegel/p-2247d9ae.entry.js +1 -0
- package/dist/tegel/{p-d6cf180a.entry.js → p-256739c3.entry.js} +1 -1
- package/dist/tegel/{p-39977bb1.entry.js → p-2d7fdfc5.entry.js} +1 -1
- package/dist/tegel/{p-b2c68cbc.entry.js → p-2e9b7793.entry.js} +1 -1
- package/dist/tegel/{p-9ee01e60.entry.js → p-33ddfd31.entry.js} +1 -1
- package/dist/tegel/{p-53593a00.entry.js → p-35f939eb.entry.js} +1 -1
- package/dist/tegel/{p-87387c4b.entry.js → p-37af53cd.entry.js} +1 -1
- package/dist/tegel/p-425a03a8.entry.js +1 -0
- package/dist/tegel/p-461dbefd.entry.js +1 -0
- package/dist/tegel/{p-c64f7cfe.entry.js → p-46845a5c.entry.js} +1 -1
- package/dist/tegel/{p-c17b8164.entry.js → p-49a2ae8d.entry.js} +1 -1
- package/dist/tegel/{p-0a3f16c3.entry.js → p-49b6ca33.entry.js} +1 -1
- package/dist/tegel/{p-afe00180.entry.js → p-4ff6e472.entry.js} +1 -1
- package/dist/tegel/{p-c3d1ab6b.entry.js → p-500b062e.entry.js} +1 -1
- package/dist/tegel/{p-b975e962.entry.js → p-539a8a98.entry.js} +1 -1
- package/dist/tegel/{p-cd19d0f3.entry.js → p-57078ea5.entry.js} +1 -1
- package/dist/tegel/{p-8da2893f.entry.js → p-5d27536b.entry.js} +1 -1
- package/dist/tegel/{p-e7e960f6.entry.js → p-5e404c89.entry.js} +1 -1
- package/dist/tegel/{p-752a508f.entry.js → p-65f6dda4.entry.js} +1 -1
- package/dist/tegel/p-6638de62.entry.js +1 -0
- package/dist/tegel/p-679d6abd.js +2 -0
- package/dist/tegel/{p-8545dc7a.entry.js → p-69a4b584.entry.js} +1 -1
- package/dist/tegel/p-6a7b1318.entry.js +1 -0
- package/dist/tegel/{p-8d4a30ac.entry.js → p-6c826e8f.entry.js} +1 -1
- package/dist/tegel/{p-f8029cbb.entry.js → p-6ed47430.entry.js} +1 -1
- package/dist/tegel/{p-47d4ea47.entry.js → p-7011cf2c.entry.js} +1 -1
- package/dist/tegel/{p-fdd59c9c.entry.js → p-7a1f6e88.entry.js} +1 -1
- package/dist/tegel/{p-70460f61.entry.js → p-7db7cdbd.entry.js} +1 -1
- package/dist/tegel/{p-10c67559.entry.js → p-7edfd01e.entry.js} +1 -1
- package/dist/tegel/{p-154b0295.entry.js → p-7f4c5200.entry.js} +1 -1
- package/dist/tegel/{p-af1a436c.entry.js → p-83255ba3.entry.js} +1 -1
- package/dist/tegel/{p-de10bf9c.entry.js → p-85552da0.entry.js} +1 -1
- package/dist/tegel/p-8a702e4f.entry.js +1 -0
- package/dist/tegel/{p-6128483a.entry.js → p-8e5b6da7.entry.js} +1 -1
- package/dist/tegel/{p-927fad9a.entry.js → p-8e5c5c59.entry.js} +1 -1
- package/dist/tegel/{p-1e5daa25.entry.js → p-92c323b9.entry.js} +1 -1
- package/dist/tegel/{p-31e34f56.entry.js → p-95c17631.entry.js} +1 -1
- package/dist/tegel/{p-21df17f2.entry.js → p-98c91f5a.entry.js} +1 -1
- package/dist/tegel/{p-9d15b453.entry.js → p-9a66445f.entry.js} +1 -1
- package/dist/tegel/{p-f18d7a60.entry.js → p-a00b6607.entry.js} +1 -1
- package/dist/tegel/{p-0e419ec2.entry.js → p-ab4c51be.entry.js} +1 -1
- package/dist/tegel/p-af331ddd.entry.js +1 -0
- package/dist/tegel/{p-4dc24f53.entry.js → p-af385656.entry.js} +1 -1
- package/dist/tegel/{p-0c3dc988.entry.js → p-b0a0193a.entry.js} +1 -1
- package/dist/tegel/p-b0d58491.entry.js +1 -0
- package/dist/tegel/{p-de59b8dd.entry.js → p-b44a09ea.entry.js} +1 -1
- package/dist/tegel/{p-da7072c2.entry.js → p-bbb6845d.entry.js} +1 -1
- package/dist/tegel/{p-7c33a930.entry.js → p-c04e8a54.entry.js} +1 -1
- package/dist/tegel/{p-5c07ccd7.entry.js → p-c0ecda3d.entry.js} +1 -1
- package/dist/tegel/{p-7e3d4dfc.entry.js → p-c345b310.entry.js} +1 -1
- package/dist/tegel/{p-66d9fd55.entry.js → p-c6637944.entry.js} +1 -1
- package/dist/tegel/p-c96b81e5.entry.js +1 -0
- package/dist/tegel/{p-8134e5d4.entry.js → p-c9df3ab0.entry.js} +1 -1
- package/dist/tegel/{p-4b4cda77.entry.js → p-cc51ad30.entry.js} +1 -1
- package/dist/tegel/{p-2bc51e55.entry.js → p-cdb2dd5e.entry.js} +1 -1
- package/dist/tegel/{p-120ddbc3.entry.js → p-d052194d.entry.js} +1 -1
- package/dist/tegel/p-d6729285.entry.js +1 -0
- package/dist/tegel/{p-de085966.entry.js → p-db57d021.entry.js} +1 -1
- package/dist/tegel/{p-3f05b4f9.entry.js → p-e1051e82.entry.js} +1 -1
- package/dist/tegel/{p-91df4ba5.entry.js → p-e2665f9d.entry.js} +1 -1
- package/dist/tegel/p-e7b98ace.entry.js +1 -0
- package/dist/tegel/{p-de071583.entry.js → p-ee72b4b8.entry.js} +1 -1
- package/dist/tegel/{p-6d39b655.entry.js → p-f297779a.entry.js} +1 -1
- package/dist/tegel/p-f2c844de.entry.js +1 -0
- package/dist/tegel/p-f5f4b866.entry.js +1 -0
- package/dist/tegel/{p-0ee8d8f8.entry.js → p-f9d061c4.entry.js} +1 -1
- package/dist/tegel/{p-78f41f1e.entry.js → p-fba62542.entry.js} +1 -1
- package/dist/tegel/{p-08b7ab13.entry.js → p-fcbcec06.entry.js} +1 -1
- package/dist/tegel/p-fe818c12.entry.js +1 -0
- package/dist/tegel/tegel.css +2 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/table/table/table.d.ts +9 -0
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +3 -0
- package/dist/types/components/table/table-footer/table-footer.d.ts +1 -0
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +3 -1
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +1 -0
- package/dist/types/components/tooltip/tooltip.d.ts +3 -0
- package/dist/types/components.d.ts +24 -0
- package/dist/types/stencil-public-runtime.d.ts +2 -10
- package/loader/index.d.ts +3 -0
- package/package.json +6 -6
- package/dist/tegel/p-0552fcf0.entry.js +0 -1
- package/dist/tegel/p-0b2429b7.entry.js +0 -1
- package/dist/tegel/p-1839e86c.entry.js +0 -1
- package/dist/tegel/p-2581e064.entry.js +0 -1
- package/dist/tegel/p-306ceae7.js +0 -2
- package/dist/tegel/p-4dcd862a.entry.js +0 -1
- package/dist/tegel/p-53d3bfdb.entry.js +0 -1
- package/dist/tegel/p-5540ec23.entry.js +0 -1
- package/dist/tegel/p-5abd13c0.entry.js +0 -1
- package/dist/tegel/p-6bd5c9f3.entry.js +0 -1
- package/dist/tegel/p-7995afce.entry.js +0 -1
- package/dist/tegel/p-879e02ad.entry.js +0 -1
- package/dist/tegel/p-a34c65df.entry.js +0 -1
- package/dist/tegel/p-b945b89c.entry.js +0 -1
- package/dist/tegel/p-c652dddb.entry.js +0 -1
- package/dist/tegel/p-de3bf6c0.entry.js +0 -1
- package/dist/tegel/p-e0dd13b6.entry.js +0 -1
|
@@ -8,40 +8,27 @@ import appendHiddenInput from "../../utils/appendHiddenInput";
|
|
|
8
8
|
export class TdsDropdown {
|
|
9
9
|
constructor() {
|
|
10
10
|
this.setDefaultOption = () => {
|
|
11
|
-
// Ensure this.host.children is not empty
|
|
12
|
-
if (this.host.children.length === 0) {
|
|
13
|
-
console.warn('TDS DROPDOWN: Data missing. Disregard if loading data asynchronously.');
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
11
|
if (this.defaultValue) {
|
|
17
12
|
const children = Array.from(this.host.children).filter((element) => element.tagName === 'TDS-DROPDOWN-OPTION');
|
|
18
13
|
let matched = false;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
matched = true;
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
if (this.defaultValue === element.value) {
|
|
14
|
+
const defaultValues = this.multiselect
|
|
15
|
+
? new Set(this.defaultValue.split(','))
|
|
16
|
+
: [this.defaultValue];
|
|
17
|
+
defaultValues.forEach((value) => {
|
|
18
|
+
children.forEach((element) => {
|
|
19
|
+
if (value === element.value) {
|
|
31
20
|
element.setSelected(true);
|
|
32
|
-
this.value =
|
|
21
|
+
this.value = this.value
|
|
22
|
+
? [...new Set([...this.value, element.value])]
|
|
23
|
+
: [element.value];
|
|
33
24
|
matched = true;
|
|
34
25
|
}
|
|
35
|
-
|
|
36
|
-
element.setSelected(false);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
this.setValueAttribute();
|
|
40
|
-
return element;
|
|
26
|
+
});
|
|
41
27
|
});
|
|
42
28
|
if (!matched) {
|
|
43
29
|
console.warn(`TDS DROPDOWN: No matching option found for defaultValue "${this.defaultValue}"`);
|
|
44
30
|
}
|
|
31
|
+
this.setValueAttribute();
|
|
45
32
|
}
|
|
46
33
|
};
|
|
47
34
|
/* Returns a list of all children that are tds-dropdown-option elements */
|
|
@@ -172,6 +159,7 @@ export class TdsDropdown {
|
|
|
172
159
|
}
|
|
173
160
|
/** Method that resets the Dropdown, marks all children as non-selected and resets the value to null. */
|
|
174
161
|
async reset() {
|
|
162
|
+
this.dropdownList.scrollTop = 0;
|
|
175
163
|
this.internalReset();
|
|
176
164
|
this.handleChange();
|
|
177
165
|
}
|
|
@@ -202,6 +190,7 @@ export class TdsDropdown {
|
|
|
202
190
|
console.warn('Tried to select multiple items, but multiselect is not enabled.');
|
|
203
191
|
nextValue = [nextValue[0]];
|
|
204
192
|
}
|
|
193
|
+
nextValue = [...new Set(nextValue)];
|
|
205
194
|
this.internalReset();
|
|
206
195
|
for (let i = 0; i < nextValue.length; i++) {
|
|
207
196
|
const optionExist = this.getChildren().some((element) => element.value === nextValue[i]);
|
|
@@ -349,7 +338,7 @@ export class TdsDropdown {
|
|
|
349
338
|
render() {
|
|
350
339
|
var _a, _b, _c, _d;
|
|
351
340
|
appendHiddenInput(this.host, this.name, (_a = this.value) === null || _a === void 0 ? void 0 : _a.map((value) => value).toString(), this.disabled);
|
|
352
|
-
return (h(Host, { key: '
|
|
341
|
+
return (h(Host, { key: 'f08f174f60709c0ede8466ae013cab38f12fc809', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { key: '5ab1a9904dbc8c3e95b8d62d7088ed99eee0a7c0', class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '57d50d6e45a036204d518545efa4e59a44d8f3f9', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
|
|
353
342
|
filter: true,
|
|
354
343
|
focus: this.filterFocus,
|
|
355
344
|
disabled: this.disabled,
|
|
@@ -392,11 +381,11 @@ export class TdsDropdown {
|
|
|
392
381
|
label-inside-as-placeholder
|
|
393
382
|
${this.size}
|
|
394
383
|
${((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) ? 'selected' : ''}
|
|
395
|
-
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, ((_d = this.value) === null || _d === void 0 ? void 0 : _d.length) ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '
|
|
384
|
+
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, ((_d = this.value) === null || _d === void 0 ? void 0 : _d.length) ? this.getValue() : this.placeholder), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '05f33587702d1d9f3a0bef68575a00b7f712db8e', ref: (element) => (this.dropdownList = element), class: `dropdown-list
|
|
396
385
|
${this.size}
|
|
397
386
|
${this.open ? 'open' : 'closed'}
|
|
398
387
|
${this.getOpenDirection()}
|
|
399
|
-
${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", { key: '
|
|
388
|
+
${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", { key: '07fc8da74d16295b89a7e09c942dad2e1d4c7a85', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: 'b3952bdad6f4f69d6054e585070b446adb993c13', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '88b3cf13c0bd1ba03a5de47c58f6e4b42ecbaab1', class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h("tds-icon", { key: 'd9538b144e0bd14dc33969d65e78545d20fe1bf4', name: "error", size: "16px" }), this.helper))));
|
|
400
389
|
}
|
|
401
390
|
static get is() { return "tds-dropdown"; }
|
|
402
391
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,7 +16,7 @@ export class TdsFooter {
|
|
|
16
16
|
const usesStartSlot = hasSlot('start', this.host);
|
|
17
17
|
const usesEndSlot = hasSlot('end', this.host);
|
|
18
18
|
const usesCopyrightSlot = hasSlot('copyright', this.host);
|
|
19
|
-
return (h(Host, { key: '454d913eea834fa60400c9714370d14425bc24b6', class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("footer", { key: '77ee89f78b3df1658a6c9e1f5b73273b447aca6d' }, usesTopSlot && h("slot", { key: '6a3c601f7fcd034d659848c3a568460489f874ca', name: "top" }), h("div", { key: '245560e49f1aa3ac1c0d9234f2b53c6c8be12a32', class: "footer-main" }, (usesStartSlot || usesEndSlot) && (h("div", { key: '
|
|
19
|
+
return (h(Host, { key: '454d913eea834fa60400c9714370d14425bc24b6', class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("footer", { key: '77ee89f78b3df1658a6c9e1f5b73273b447aca6d' }, usesTopSlot && h("slot", { key: '6a3c601f7fcd034d659848c3a568460489f874ca', name: "top" }), h("div", { key: '245560e49f1aa3ac1c0d9234f2b53c6c8be12a32', class: "footer-main" }, (usesStartSlot || usesEndSlot) && (h("div", { key: '2b3220a69f400b8b609fb423f4136b9fb3d1bf96', class: "footer-main-top" }, usesStartSlot && h("slot", { key: '952412fc57aef7abe5a195ac173a14a48a626c95', name: "start" }), usesEndSlot && h("slot", { key: 'a8b8f6d9c625b7da0ecee95e05a1cda4492b964a', name: "end" }))), h("div", { key: 'ca1e76bd613fa3662a5822882fc4ddc0e030c606', class: "footer-main-bottom" }, h("small", { key: '5c5c3803d71c51b8793993240f00912b89377985', class: "copyright" }, usesCopyrightSlot ? h("slot", { name: "copyright" }) : this.copyrightText), h("div", { key: '2ebada35ffde37a7824b100fe34dd947c525741e', class: "brand" }, h("p", { key: 'e6233b2ce0d5f36a54f9069a9feec687388bc795' }, "Scania")))))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "tds-footer"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -163,7 +163,7 @@ export class TdsSideMenu {
|
|
|
163
163
|
"references": {
|
|
164
164
|
"CollapseEvent": {
|
|
165
165
|
"location": "local",
|
|
166
|
-
"path": "/
|
|
166
|
+
"path": "/Users/johnny/dev/scania/tegel/packages/core/src/components/side-menu/side-menu.tsx",
|
|
167
167
|
"id": "src/components/side-menu/side-menu.tsx::CollapseEvent"
|
|
168
168
|
}
|
|
169
169
|
}
|
|
@@ -187,7 +187,7 @@ export class TdsSideMenu {
|
|
|
187
187
|
"references": {
|
|
188
188
|
"CollapseEvent": {
|
|
189
189
|
"location": "local",
|
|
190
|
-
"path": "/
|
|
190
|
+
"path": "/Users/johnny/dev/scania/tegel/packages/core/src/components/side-menu/side-menu.tsx",
|
|
191
191
|
"id": "src/components/side-menu/side-menu.tsx::CollapseEvent"
|
|
192
192
|
}
|
|
193
193
|
}
|
|
@@ -211,7 +211,7 @@ export class TdsSideMenu {
|
|
|
211
211
|
"references": {
|
|
212
212
|
"InternalTdsSideMenuPropChange": {
|
|
213
213
|
"location": "local",
|
|
214
|
-
"path": "/
|
|
214
|
+
"path": "/Users/johnny/dev/scania/tegel/packages/core/src/components/side-menu/side-menu.tsx",
|
|
215
215
|
"id": "src/components/side-menu/side-menu.tsx::InternalTdsSideMenuPropChange"
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
display: table-cell;
|
|
4
4
|
}
|
|
5
|
-
:host tds-icon {
|
|
6
|
-
line-height: 1;
|
|
7
|
-
}
|
|
8
5
|
:host [role=listitem] {
|
|
9
6
|
display: flex;
|
|
10
7
|
justify-content: start;
|
|
@@ -24,6 +21,12 @@
|
|
|
24
21
|
height: 30px;
|
|
25
22
|
min-width: 30px;
|
|
26
23
|
}
|
|
24
|
+
:host [role=listitem].lg .content-container tds-icon {
|
|
25
|
+
vertical-align: bottom;
|
|
26
|
+
}
|
|
27
|
+
:host [role=listitem].lg .content-container .index-container {
|
|
28
|
+
vertical-align: sub;
|
|
29
|
+
}
|
|
27
30
|
:host [role=listitem].lg.vertical::after {
|
|
28
31
|
content: " ";
|
|
29
32
|
position: absolute;
|
|
@@ -81,10 +84,19 @@
|
|
|
81
84
|
font: var(--tds-detail-05);
|
|
82
85
|
letter-spacing: var(--tds-detail-05-ls);
|
|
83
86
|
}
|
|
87
|
+
:host [role=listitem].sm .index-container {
|
|
88
|
+
vertical-align: -webkit-baseline-middle;
|
|
89
|
+
vertical-align: -moz-middle-with-baseline;
|
|
90
|
+
}
|
|
84
91
|
:host [role=listitem].sm .content-container {
|
|
85
92
|
height: 24px;
|
|
86
93
|
min-width: 24px;
|
|
87
94
|
}
|
|
95
|
+
:host [role=listitem].sm .tds-step-icon {
|
|
96
|
+
vertical-align: -webkit-baseline-middle;
|
|
97
|
+
vertical-align: -moz-middle-with-baseline;
|
|
98
|
+
margin-top: -2px;
|
|
99
|
+
}
|
|
88
100
|
:host [role=listitem].sm.vertical::after {
|
|
89
101
|
content: " ";
|
|
90
102
|
position: absolute;
|
|
@@ -150,9 +162,7 @@
|
|
|
150
162
|
:host [role=listitem] .content-container {
|
|
151
163
|
border-radius: 100px;
|
|
152
164
|
border: 1px solid var(--tds-stepper-icon-background);
|
|
153
|
-
|
|
154
|
-
justify-content: center;
|
|
155
|
-
align-items: center;
|
|
165
|
+
text-align: center;
|
|
156
166
|
position: relative;
|
|
157
167
|
}
|
|
158
168
|
:host [role=listitem] .content-container.error {
|
|
@@ -39,7 +39,7 @@ export class TdsStep {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
render() {
|
|
42
|
-
return (h(Host, { key: '25272154fa202dc80faadec2f69bb76c7cfb23ba' }, h("div", { key: 'b95ec3ae0c8842cce29a26a00b77e9d63ddf3e7c', role: "listitem", class: `${this.size} ${this.orientation} text-${this.labelPosition} ${this.hideLabels ? 'hide-labels' : ''}` }, h("
|
|
42
|
+
return (h(Host, { key: '25272154fa202dc80faadec2f69bb76c7cfb23ba' }, h("div", { key: 'b95ec3ae0c8842cce29a26a00b77e9d63ddf3e7c', role: "listitem", class: `${this.size} ${this.orientation} text-${this.labelPosition} ${this.hideLabels ? 'hide-labels' : ''}` }, h("span", { key: '0dfc323696c80230df87de15858a08c2051e9f64', class: `${this.state} content-container` }, this.state === 'success' || this.state === 'error' ? (h("tds-icon", { class: 'tds-step-icon', name: this.state === 'success' ? 'tick' : 'warning', size: this.size === 'lg' ? '20px' : '16px' })) : (h("span", { class: "index-container" }, this.index))), !this.hideLabels && (h("div", { key: '1726259dde21fea66e1554f6f5760176e3a24b13', class: `label ${this.size} ${this.state}` }, h("slot", { key: 'dd9d6499348d2e7bbf36920c63dd836371dbd090', name: "label" }))))));
|
|
43
43
|
}
|
|
44
44
|
static get is() { return "tds-step"; }
|
|
45
45
|
static get encapsulation() { return "shadow"; }
|
|
@@ -173,7 +173,7 @@ export class TdsStepper {
|
|
|
173
173
|
"references": {
|
|
174
174
|
"InternalTdsStepperPropChange": {
|
|
175
175
|
"location": "local",
|
|
176
|
-
"path": "/
|
|
176
|
+
"path": "/Users/johnny/dev/scania/tegel/packages/core/src/components/stepper/stepper.tsx",
|
|
177
177
|
"id": "src/components/stepper/stepper.tsx::InternalTdsStepperPropChange"
|
|
178
178
|
}
|
|
179
179
|
}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--tds-scrollbar-width-standard: thin;
|
|
3
|
+
--tds-scrollbar-width: 10px;
|
|
4
|
+
--tds-scrollbar-height: 10px;
|
|
5
|
+
--tds-scrollbar-thumb-border-width: 3px;
|
|
6
|
+
--tds-scrollbar-thumb-border-hover-width: 2px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
body {
|
|
10
|
+
scrollbar-width: thin;
|
|
11
|
+
}
|
|
12
|
+
|
|
1
13
|
:host,
|
|
2
14
|
.tds-table {
|
|
3
15
|
border-collapse: collapse;
|
|
@@ -12,4 +24,53 @@
|
|
|
12
24
|
:host(.tds-table--responsive),
|
|
13
25
|
.tds-table--responsive {
|
|
14
26
|
width: 100%;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.tds-table--horizontal-scroll {
|
|
30
|
+
display: block;
|
|
31
|
+
overflow-x: scroll;
|
|
32
|
+
white-space: nowrap;
|
|
33
|
+
}
|
|
34
|
+
.tds-table--horizontal-scroll:hover::-webkit-scrollbar-thumb {
|
|
35
|
+
border: var(--tds-scrollbar-thumb-border-hover-width) solid transparent;
|
|
36
|
+
background: var(--tds-scrollbar-hover-thumb-color);
|
|
37
|
+
background-clip: padding-box;
|
|
38
|
+
}
|
|
39
|
+
.tds-table--horizontal-scroll::-webkit-scrollbar {
|
|
40
|
+
height: var(--tds-scrollbar-height);
|
|
41
|
+
}
|
|
42
|
+
.tds-table--horizontal-scroll::-webkit-scrollbar-track {
|
|
43
|
+
background: transparent;
|
|
44
|
+
}
|
|
45
|
+
.tds-table--horizontal-scroll::-webkit-scrollbar-thumb {
|
|
46
|
+
border-radius: 40px;
|
|
47
|
+
background: var(--tds-scrollbar-thumb-color);
|
|
48
|
+
border: var(--tds-scrollbar-thumb-border-width) solid transparent;
|
|
49
|
+
background-clip: padding-box;
|
|
50
|
+
}
|
|
51
|
+
.tds-table--horizontal-scroll::-webkit-scrollbar-button {
|
|
52
|
+
height: 0;
|
|
53
|
+
width: 0;
|
|
54
|
+
}
|
|
55
|
+
@supports not selector(::-webkit-scrollbar) {
|
|
56
|
+
.tds-table--horizontal-scroll {
|
|
57
|
+
scrollbar-color: var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);
|
|
58
|
+
scrollbar-width: var(--tds-scrollbar-width-standard);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tds-table--horizontal-scroll-toolbar {
|
|
63
|
+
margin-top: 64px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.tds-table--horizontal-scroll-toolbar-compact {
|
|
67
|
+
margin-top: 56px;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.tds-table--horizontal-scroll-footer {
|
|
71
|
+
margin-bottom: 49px;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.tds-table--horizontal-scroll-footer-compact {
|
|
75
|
+
margin-bottom: 33px;
|
|
15
76
|
}
|
|
@@ -14,7 +14,10 @@ export class TdsTable {
|
|
|
14
14
|
this.expandableRows = false;
|
|
15
15
|
this.responsive = false;
|
|
16
16
|
this.modeVariant = null;
|
|
17
|
+
this.horizontalScrollWidth = null;
|
|
17
18
|
this.tableId = generateUniqueId();
|
|
19
|
+
this.enableHorizontalScrollToolbarDesign = false;
|
|
20
|
+
this.enableHorizontalScrollFooterDesign = false;
|
|
18
21
|
}
|
|
19
22
|
emitInternalTdsPropChange(changedValueName, changedValue) {
|
|
20
23
|
this.internalTdsTablePropChange.emit({
|
|
@@ -63,18 +66,34 @@ export class TdsTable {
|
|
|
63
66
|
modeVariantChanged(newValue) {
|
|
64
67
|
this.emitInternalTdsPropChange('modeVariant', newValue);
|
|
65
68
|
}
|
|
69
|
+
widthChanged(newValue) {
|
|
70
|
+
this.emitInternalTdsPropChange('horizontalScrollWidth', newValue);
|
|
71
|
+
}
|
|
72
|
+
componentWillRender() {
|
|
73
|
+
if (this.horizontalScrollWidth) {
|
|
74
|
+
this.enableHorizontalScrollToolbarDesign =
|
|
75
|
+
this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
|
|
76
|
+
this.enableHorizontalScrollFooterDesign =
|
|
77
|
+
this.host.closest('tds-table').getElementsByTagName('tds-table-footer').length >= 1;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
66
80
|
render() {
|
|
67
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: 'da929268a984ca0e81843132b2fafd6c79bec3b3', class: {
|
|
68
82
|
'tds-table--responsive': this.responsive,
|
|
69
83
|
'tds-mode-variant-primary': this.modeVariant === 'primary',
|
|
70
84
|
'tds-mode-variant-secondary': this.modeVariant === 'secondary',
|
|
71
|
-
} }, h("table", { key: '
|
|
85
|
+
} }, h("table", { key: '2ba662d97bc834a7a0d6d71338fc7c322bc15741', style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {}, class: {
|
|
72
86
|
'tds-table': true,
|
|
73
87
|
'tds-table--compact': this.compactDesign,
|
|
74
88
|
'tds-table--divider': this.verticalDividers,
|
|
75
89
|
'tds-table--no-min-width': this.noMinWidth,
|
|
76
90
|
'tds-table--responsive': this.responsive,
|
|
77
|
-
|
|
91
|
+
'tds-table--horizontal-scroll': !!this.horizontalScrollWidth,
|
|
92
|
+
'tds-table--horizontal-scroll-toolbar': this.enableHorizontalScrollToolbarDesign && !this.compactDesign,
|
|
93
|
+
'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
|
|
94
|
+
'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
|
|
95
|
+
'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
|
|
96
|
+
} }, h("slot", { key: 'c95e71aeaac2f4378d440bb23ff890c9c4a76fdf' }))));
|
|
78
97
|
}
|
|
79
98
|
static get is() { return "tds-table"; }
|
|
80
99
|
static get encapsulation() { return "shadow"; }
|
|
@@ -215,6 +234,24 @@ export class TdsTable {
|
|
|
215
234
|
"reflect": true,
|
|
216
235
|
"defaultValue": "null"
|
|
217
236
|
},
|
|
237
|
+
"horizontalScrollWidth": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"mutable": false,
|
|
240
|
+
"complexType": {
|
|
241
|
+
"original": "string",
|
|
242
|
+
"resolved": "string",
|
|
243
|
+
"references": {}
|
|
244
|
+
},
|
|
245
|
+
"required": false,
|
|
246
|
+
"optional": true,
|
|
247
|
+
"docs": {
|
|
248
|
+
"tags": [],
|
|
249
|
+
"text": "Width of the table, used as the constraint for horizontal scrolling.\n**NOTE**: this will disable usage of the responsive flag"
|
|
250
|
+
},
|
|
251
|
+
"attribute": "horizontal-scroll-width",
|
|
252
|
+
"reflect": false,
|
|
253
|
+
"defaultValue": "null"
|
|
254
|
+
},
|
|
218
255
|
"tableId": {
|
|
219
256
|
"type": "string",
|
|
220
257
|
"mutable": false,
|
|
@@ -235,6 +272,12 @@ export class TdsTable {
|
|
|
235
272
|
}
|
|
236
273
|
};
|
|
237
274
|
}
|
|
275
|
+
static get states() {
|
|
276
|
+
return {
|
|
277
|
+
"enableHorizontalScrollToolbarDesign": {},
|
|
278
|
+
"enableHorizontalScrollFooterDesign": {}
|
|
279
|
+
};
|
|
280
|
+
}
|
|
238
281
|
static get events() {
|
|
239
282
|
return [{
|
|
240
283
|
"method": "internalTdsTablePropChange",
|
|
@@ -255,7 +298,7 @@ export class TdsTable {
|
|
|
255
298
|
"references": {
|
|
256
299
|
"InternalTdsTablePropChange": {
|
|
257
300
|
"location": "local",
|
|
258
|
-
"path": "/
|
|
301
|
+
"path": "/Users/johnny/dev/scania/tegel/packages/core/src/components/table/table/table.tsx",
|
|
259
302
|
"id": "src/components/table/table/table.tsx::InternalTdsTablePropChange"
|
|
260
303
|
}
|
|
261
304
|
}
|
|
@@ -303,6 +346,9 @@ export class TdsTable {
|
|
|
303
346
|
}, {
|
|
304
347
|
"propName": "modeVariant",
|
|
305
348
|
"methodName": "modeVariantChanged"
|
|
349
|
+
}, {
|
|
350
|
+
"propName": "horizontalScrollWidth",
|
|
351
|
+
"methodName": "widthChanged"
|
|
306
352
|
}];
|
|
307
353
|
}
|
|
308
354
|
}
|
package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js
CHANGED
|
@@ -9,6 +9,9 @@ const relevantTableProps = [
|
|
|
9
9
|
/**
|
|
10
10
|
* @slot <default> - <b>Unnamed slot.</b> For the cells.
|
|
11
11
|
* @slot expand-row - Slot for the expanded row.
|
|
12
|
+
|
|
13
|
+
* @part row - Selector for the main row of the table.
|
|
14
|
+
* @part expand-row - Selector for the expanded row of the table.
|
|
12
15
|
*/
|
|
13
16
|
export class TdsTableBodyRowExpandable {
|
|
14
17
|
constructor() {
|
|
@@ -81,18 +84,18 @@ export class TdsTableBodyRowExpandable {
|
|
|
81
84
|
this.sendValue();
|
|
82
85
|
}
|
|
83
86
|
render() {
|
|
84
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: 'cd23997b2d0b659691199b0f6a7be6aa51689ee4', class: {
|
|
85
88
|
'tds-table__row': true,
|
|
86
89
|
'tds-table__row-expand--active': this.isExpanded,
|
|
87
90
|
'tds-table__compact': this.compactDesign,
|
|
88
91
|
'tds-table--divider': this.verticalDividers,
|
|
89
|
-
} }, h("tr", { key: '
|
|
92
|
+
} }, h("tr", { key: 'a3fec49a0b97a35f61db7c31dfc023ba3acebd86', class: {
|
|
90
93
|
'tds-table__row': true,
|
|
91
94
|
'tds-table__row--expanded': this.isExpanded,
|
|
92
|
-
} }, h("td", { key: '
|
|
95
|
+
}, part: "row" }, h("td", { key: 'd995074fc578640544f59df3426762ff6595dd0b', class: "tds-table__cell tds-table__cell--expand" }, h("label", { key: '0f905bda5651a8c9dc30094dbc402e5e618e4030', class: "tds-table__expand-control-container" }, h("input", { key: '9b316a0e3a44cfa21851a1ac2ec0980d53d3aa54', class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded }), h("span", { key: '022d891384b907d3ebce4b2138fef4f5c6f7d44f', class: "tds-expendable-row-icon" }, h("svg", { key: 'fb7ccb4d599e72a9d7a56808f59226779ffe611b', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '1e2c766463813a4b1edc32093abbbf501b99974b', "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: '7f0e3d93df3da8eeff969daa9aba8eecaa1e6e23' })), h("tr", { key: '89766434b64dd9bf0aecf805fdd494aab68f8af9', class: {
|
|
93
96
|
'tds-table__row-expand': true,
|
|
94
97
|
'tds-table__row-expand--expanded': this.isExpanded,
|
|
95
|
-
} }, h("td", { key: '
|
|
98
|
+
}, part: "expand-row" }, h("td", { key: 'f0c746d12fae92eae3e6bf9651c826fb3aacbefe', class: "tds-table__cell-expand", colSpan: this.columnsNumber }, h("slot", { key: '0a9e454379a7a6a72b3d6ea33a66a4aaaac09e8f', name: "expand-row" })))));
|
|
96
99
|
}
|
|
97
100
|
static get is() { return "tds-table-body-row-expandable"; }
|
|
98
101
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
-
const relevantTableProps = [
|
|
2
|
+
const relevantTableProps = [
|
|
3
|
+
'compactDesign',
|
|
4
|
+
'horizontalScrollWidth',
|
|
5
|
+
];
|
|
3
6
|
function removeShakeAnimation(e) {
|
|
4
7
|
e.target.classList.remove('tds-table__page-selector-input--shake');
|
|
5
8
|
}
|
|
@@ -38,6 +41,7 @@ export class TdsTableFooter {
|
|
|
38
41
|
this.compactDesign = false;
|
|
39
42
|
this.lastCorrectValue = undefined;
|
|
40
43
|
this.tableId = '';
|
|
44
|
+
this.horizontalScrollWidth = null;
|
|
41
45
|
}
|
|
42
46
|
internalTdsPropChangeListener(event) {
|
|
43
47
|
if (this.tableId === event.detail.tableId) {
|
|
@@ -90,7 +94,10 @@ export class TdsTableFooter {
|
|
|
90
94
|
this.storeLastCorrectValue(this.paginationValue);
|
|
91
95
|
}
|
|
92
96
|
render() {
|
|
93
|
-
return (h(Host, { key: '
|
|
97
|
+
return (h(Host, { key: 'fe6221e5dd2ec57e63afefc5e45c0b3f5ad85d8f', class: {
|
|
98
|
+
'tds-table--compact': this.compactDesign,
|
|
99
|
+
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
100
|
+
}, style: this.horizontalScrollWidth ? { width: this.horizontalScrollWidth } : {} }, h("tr", { key: '6f6bfca5e7719084b2c4564b86806f6eb7867601', class: "tds-table__footer-row" }, h("td", { key: '2c4389dfa2c028798246a5c4d8b9bdcc05a780f2', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '0831e596963e20222feee940fb7d7d489f832b5e', class: "tds-table__pagination" }, h("div", { key: '1129e67d9b69b06a1fadde589f9ad37a1bd9fcca', class: "tds-table__row-selector" }), h("div", { key: '81e685df813d615027470d4c84c468bb2c5fccca', class: "tds-table__page-selector" }, h("input", { key: '4b116837ae02fcbf6b51b940587ae6159d40f5cb', ref: (element) => (this.inputElement = element), 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: '927af4715b33f50679aef3ec5eccc5fd4044add7', class: "tds-table__footer-text" }, "of ", h("span", { key: '2d89421fbbbb0828623465f39edc506b9bfa82da' }, this.pages), " pages"), h("button", { key: '37916d812b7b4510b088b382f48b2d9f04d212b2', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: 'd89ac980f4c48fe6c14610f27ccc05e43994631e', name: "chevron_left", size: "20px" })), h("button", { key: '246b17fc6ff26e3830d5a359a4a5de844bc93a1b', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: '6fa3441ed75b484974e50ee41ea1444bea7c30e2', name: "chevron_right", size: "20px" })))))))));
|
|
94
101
|
}
|
|
95
102
|
static get is() { return "tds-table-footer"; }
|
|
96
103
|
static get encapsulation() { return "shadow"; }
|
|
@@ -185,7 +192,8 @@ export class TdsTableFooter {
|
|
|
185
192
|
"columnsNumber": {},
|
|
186
193
|
"compactDesign": {},
|
|
187
194
|
"lastCorrectValue": {},
|
|
188
|
-
"tableId": {}
|
|
195
|
+
"tableId": {},
|
|
196
|
+
"horizontalScrollWidth": {}
|
|
189
197
|
};
|
|
190
198
|
}
|
|
191
199
|
static get events() {
|
|
@@ -22,6 +22,9 @@
|
|
|
22
22
|
padding: 8px 16px;
|
|
23
23
|
margin: 0;
|
|
24
24
|
}
|
|
25
|
+
:host(.tds-table__header-cell) .tds-table__header-text-no-padding {
|
|
26
|
+
padding: 0;
|
|
27
|
+
}
|
|
25
28
|
|
|
26
29
|
:host(.tds-table__header-cell--sortable) .tds-table__header-button {
|
|
27
30
|
display: flex;
|
|
@@ -93,6 +96,10 @@
|
|
|
93
96
|
min-width: unset;
|
|
94
97
|
}
|
|
95
98
|
|
|
99
|
+
:host(.tds-table--no-padding) {
|
|
100
|
+
height: unset;
|
|
101
|
+
}
|
|
102
|
+
|
|
96
103
|
:host(.tds-table__header-cell:first-of-type) {
|
|
97
104
|
border-top-left-radius: 4px;
|
|
98
105
|
}
|