@scania/tegel 1.4.0 → 1.6.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-ae4fbf97.js → index-f36d4629.js} +33 -13
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tds-accordion-item.cjs.entry.js +6 -5
- package/dist/cjs/tds-accordion.cjs.entry.js +4 -3
- package/dist/cjs/tds-badge.cjs.entry.js +4 -3
- package/dist/cjs/tds-banner.cjs.entry.js +5 -4
- package/dist/cjs/tds-block.cjs.entry.js +4 -3
- package/dist/cjs/tds-body-cell.cjs.entry.js +5 -4
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +4 -3
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +4 -3
- package/dist/cjs/tds-button.cjs.entry.js +4 -3
- package/dist/cjs/tds-card.cjs.entry.js +4 -3
- package/dist/cjs/tds-checkbox.cjs.entry.js +5 -5
- package/dist/cjs/tds-chip.cjs.entry.js +5 -4
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +8 -6
- package/dist/cjs/tds-datetime.cjs.entry.js +9 -4
- package/dist/cjs/tds-divider.cjs.entry.js +4 -3
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +4 -3
- package/dist/cjs/tds-dropdown.cjs.entry.js +7 -6
- package/dist/cjs/tds-folder-tab.cjs.entry.js +5 -4
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +5 -4
- package/dist/cjs/tds-footer-group.cjs.entry.js +6 -5
- package/dist/cjs/tds-footer-item.cjs.entry.js +4 -3
- package/dist/cjs/tds-footer.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-cell.cjs.entry.js +6 -5
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +5 -4
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +6 -5
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-launcher.cjs.entry.js +5 -4
- package/dist/cjs/tds-header-title.cjs.entry.js +4 -3
- package/dist/cjs/tds-header.cjs.entry.js +4 -3
- package/dist/cjs/tds-icon.cjs.entry.js +7 -5
- package/dist/cjs/tds-inline-tab.cjs.entry.js +5 -4
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +5 -4
- package/dist/cjs/tds-link.cjs.entry.js +5 -4
- package/dist/cjs/tds-message.cjs.entry.js +5 -4
- package/dist/cjs/tds-modal.cjs.entry.js +5 -4
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +5 -4
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +5 -4
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +5 -4
- package/dist/cjs/tds-popover-core.cjs.entry.js +2 -2
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +5 -4
- package/dist/cjs/tds-popover-menu.cjs.entry.js +5 -4
- package/dist/cjs/tds-radio-button.cjs.entry.js +4 -3
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +4 -3
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +7 -6
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +5 -4
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +5 -4
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +6 -5
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +5 -4
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +4 -3
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +7 -5
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +4 -3
- package/dist/cjs/tds-side-menu.cjs.entry.js +6 -5
- package/dist/cjs/tds-slider.cjs.entry.js +9 -8
- package/dist/cjs/tds-spinner.cjs.entry.js +4 -3
- package/dist/cjs/tds-step.cjs.entry.js +4 -3
- package/dist/cjs/tds-stepper.cjs.entry.js +4 -3
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +5 -4
- package/dist/cjs/tds-table-body-row.cjs.entry.js +6 -4
- package/dist/cjs/tds-table-body.cjs.entry.js +4 -3
- package/dist/cjs/tds-table-footer.cjs.entry.js +4 -3
- package/dist/cjs/tds-table-header.cjs.entry.js +6 -4
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +4 -3
- package/dist/cjs/tds-table.cjs.entry.js +6 -5
- package/dist/cjs/tds-text-field.cjs.entry.js +8 -5
- package/dist/cjs/tds-textarea.cjs.entry.js +6 -5
- package/dist/cjs/tds-toast.cjs.entry.js +7 -6
- package/dist/cjs/tds-toggle.cjs.entry.js +4 -3
- package/dist/cjs/tds-tooltip.cjs.entry.js +5 -4
- package/dist/cjs/tegel.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +3 -3
- package/dist/collection/components/accordion/accordion.js +1 -1
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/banner/banner.js +2 -2
- package/dist/collection/components/block/block.js +1 -1
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +2 -3
- package/dist/collection/components/chip/chip.js +2 -2
- package/dist/collection/components/datetime/datetime.js +33 -4
- 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.css +1 -0
- package/dist/collection/components/dropdown/dropdown.js +3 -3
- 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 +1 -1
- package/dist/collection/components/header/core-header-item/core-header-item.js +1 -1
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +1 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +3 -3
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +1 -1
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +2 -2
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +1 -1
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +1 -1
- package/dist/collection/components/header/header-item/header-item.js +2 -2
- package/dist/collection/components/header/header-launcher/header-launcher.js +2 -2
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +1 -1
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +1 -1
- package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +1 -1
- package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +1 -1
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +1 -1
- package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +1 -1
- package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +1 -1
- package/dist/collection/components/header/header-title/header-title.js +1 -1
- package/dist/collection/components/header/header.js +1 -1
- package/dist/collection/components/icon/icon.js +24 -6
- package/dist/collection/components/link/link.js +2 -2
- package/dist/collection/components/message/message.js +2 -2
- package/dist/collection/components/modal/modal.css +1 -1
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/popover-canvas/popover-canvas.js +2 -2
- package/dist/collection/components/popover-core/popover-core.js +1 -1
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +2 -2
- package/dist/collection/components/popover-menu/popover-menu.js +2 -2
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +4 -4
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +3 -3
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +2 -2
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +2 -2
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +2 -2
- package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +1 -1
- package/dist/collection/components/side-menu/side-menu.js +3 -3
- package/dist/collection/components/slider/slider.js +6 -6
- package/dist/collection/components/spinner/spinner.js +1 -1
- 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.js +3 -3
- package/dist/collection/components/table/table-body/table-body.js +1 -1
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +2 -2
- package/dist/collection/components/table/table-body-row/table-body-row.js +21 -2
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +2 -2
- package/dist/collection/components/table/table-footer/table-footer.js +1 -1
- package/dist/collection/components/table/table-header/table-header.js +24 -5
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +14 -11
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +1 -1
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +2 -2
- package/dist/collection/components/text-field/text-field.js +41 -5
- package/dist/collection/components/textarea/textarea.js +3 -3
- package/dist/collection/components/toast/toast.js +4 -4
- package/dist/collection/components/toggle/toggle.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +2 -2
- package/dist/components/checkbox.js +4 -4
- package/dist/components/core-header-item.js +3 -2
- package/dist/components/divider.js +3 -2
- package/dist/components/header-dropdown-list-item.js +4 -3
- package/dist/components/header-dropdown-list.js +3 -2
- package/dist/components/header-item.js +4 -3
- package/dist/components/header-launcher-button.js +3 -2
- package/dist/components/icon.js +7 -4
- package/dist/components/popover-canvas.js +4 -3
- package/dist/components/popover-core.js +1 -1
- package/dist/components/side-menu-item.js +4 -3
- package/dist/components/side-menu-user-image.js +3 -2
- package/dist/components/side-menu-user-label.js +3 -2
- package/dist/components/tds-accordion-item.js +5 -4
- package/dist/components/tds-accordion.js +3 -2
- package/dist/components/tds-badge.js +3 -2
- package/dist/components/tds-banner.js +4 -3
- package/dist/components/tds-block.js +3 -2
- package/dist/components/tds-body-cell.js +4 -3
- package/dist/components/tds-breadcrumb.js +3 -2
- package/dist/components/tds-breadcrumbs.js +3 -2
- package/dist/components/tds-button.js +3 -2
- package/dist/components/tds-card.js +3 -2
- package/dist/components/tds-chip.js +4 -3
- package/dist/components/tds-datetime.js +11 -5
- package/dist/components/tds-dropdown-option.js +3 -2
- package/dist/components/tds-dropdown.js +6 -5
- package/dist/components/tds-folder-tab.js +4 -3
- package/dist/components/tds-folder-tabs.js +4 -3
- package/dist/components/tds-footer-group.js +5 -4
- package/dist/components/tds-footer-item.js +3 -2
- package/dist/components/tds-footer.js +3 -2
- package/dist/components/tds-header-brand-symbol.js +3 -2
- package/dist/components/tds-header-cell.js +5 -4
- package/dist/components/tds-header-dropdown-list-user.js +3 -2
- package/dist/components/tds-header-dropdown.js +5 -4
- package/dist/components/tds-header-hamburger.js +3 -2
- package/dist/components/tds-header-launcher-grid-item.js +3 -2
- package/dist/components/tds-header-launcher-grid-title.js +3 -2
- package/dist/components/tds-header-launcher-grid.js +3 -2
- package/dist/components/tds-header-launcher-list-item.js +3 -2
- package/dist/components/tds-header-launcher-list-title.js +3 -2
- package/dist/components/tds-header-launcher-list.js +1 -1
- package/dist/components/tds-header-launcher.js +4 -3
- package/dist/components/tds-header-title.js +3 -2
- package/dist/components/tds-header.js +3 -2
- package/dist/components/tds-inline-tab.js +4 -3
- package/dist/components/tds-inline-tabs.js +4 -3
- package/dist/components/tds-link.js +4 -3
- package/dist/components/tds-message.js +4 -3
- package/dist/components/tds-modal.js +4 -3
- package/dist/components/tds-navigation-tab.js +4 -3
- package/dist/components/tds-navigation-tabs.js +4 -3
- package/dist/components/tds-popover-menu-item.js +4 -3
- package/dist/components/tds-popover-menu.js +4 -3
- package/dist/components/tds-radio-button.js +3 -2
- package/dist/components/tds-side-menu-close-button.js +3 -2
- package/dist/components/tds-side-menu-collapse-button.js +6 -5
- package/dist/components/tds-side-menu-dropdown-list-item.js +4 -3
- package/dist/components/tds-side-menu-dropdown-list.js +4 -3
- package/dist/components/tds-side-menu-dropdown.js +5 -4
- package/dist/components/tds-side-menu-overlay.js +3 -2
- package/dist/components/tds-side-menu-user.js +3 -2
- package/dist/components/tds-side-menu.js +5 -4
- package/dist/components/tds-slider.js +8 -7
- package/dist/components/tds-spinner.js +3 -2
- package/dist/components/tds-step.js +3 -2
- package/dist/components/tds-stepper.js +3 -2
- package/dist/components/tds-table-body-row-expandable.js +4 -3
- package/dist/components/tds-table-body-row.js +6 -3
- package/dist/components/tds-table-body.js +3 -2
- package/dist/components/tds-table-footer.js +3 -2
- package/dist/components/tds-table-header.js +6 -3
- package/dist/components/tds-table-toolbar.js +3 -2
- package/dist/components/tds-table.js +5 -4
- package/dist/components/tds-text-field.js +9 -4
- package/dist/components/tds-textarea.js +5 -4
- package/dist/components/tds-toast.js +6 -5
- package/dist/components/tds-toggle.js +3 -2
- package/dist/components/tds-tooltip.js +4 -3
- package/dist/esm/{index-6e6ff771.js → index-ab4edc4a.js} +33 -13
- package/dist/esm/loader.js +3 -3
- package/dist/esm/tds-accordion-item.entry.js +6 -5
- package/dist/esm/tds-accordion.entry.js +4 -3
- package/dist/esm/tds-badge.entry.js +4 -3
- package/dist/esm/tds-banner.entry.js +5 -4
- package/dist/esm/tds-block.entry.js +4 -3
- package/dist/esm/tds-body-cell.entry.js +5 -4
- package/dist/esm/tds-breadcrumb.entry.js +4 -3
- package/dist/esm/tds-breadcrumbs.entry.js +4 -3
- package/dist/esm/tds-button.entry.js +4 -3
- package/dist/esm/tds-card.entry.js +4 -3
- package/dist/esm/tds-checkbox.entry.js +5 -5
- package/dist/esm/tds-chip.entry.js +5 -4
- package/dist/esm/tds-core-header-item_2.entry.js +8 -6
- package/dist/esm/tds-datetime.entry.js +9 -4
- package/dist/esm/tds-divider.entry.js +4 -3
- package/dist/esm/tds-dropdown-option.entry.js +4 -3
- package/dist/esm/tds-dropdown.entry.js +7 -6
- package/dist/esm/tds-folder-tab.entry.js +5 -4
- package/dist/esm/tds-folder-tabs.entry.js +5 -4
- package/dist/esm/tds-footer-group.entry.js +6 -5
- package/dist/esm/tds-footer-item.entry.js +4 -3
- package/dist/esm/tds-footer.entry.js +4 -3
- package/dist/esm/tds-header-brand-symbol.entry.js +4 -3
- package/dist/esm/tds-header-cell.entry.js +6 -5
- package/dist/esm/tds-header-dropdown-list-item.entry.js +5 -4
- package/dist/esm/tds-header-dropdown-list-user.entry.js +4 -3
- package/dist/esm/tds-header-dropdown-list.entry.js +4 -3
- package/dist/esm/tds-header-dropdown.entry.js +6 -5
- package/dist/esm/tds-header-hamburger.entry.js +4 -3
- package/dist/esm/tds-header-launcher-button.entry.js +4 -3
- package/dist/esm/tds-header-launcher-grid-item.entry.js +4 -3
- package/dist/esm/tds-header-launcher-grid-title.entry.js +4 -3
- package/dist/esm/tds-header-launcher-grid.entry.js +4 -3
- package/dist/esm/tds-header-launcher-list-item.entry.js +4 -3
- package/dist/esm/tds-header-launcher-list-title.entry.js +4 -3
- package/dist/esm/tds-header-launcher-list.entry.js +2 -2
- package/dist/esm/tds-header-launcher.entry.js +5 -4
- package/dist/esm/tds-header-title.entry.js +4 -3
- package/dist/esm/tds-header.entry.js +4 -3
- package/dist/esm/tds-icon.entry.js +7 -5
- package/dist/esm/tds-inline-tab.entry.js +5 -4
- package/dist/esm/tds-inline-tabs.entry.js +5 -4
- package/dist/esm/tds-link.entry.js +5 -4
- package/dist/esm/tds-message.entry.js +5 -4
- package/dist/esm/tds-modal.entry.js +5 -4
- package/dist/esm/tds-navigation-tab.entry.js +5 -4
- package/dist/esm/tds-navigation-tabs.entry.js +5 -4
- package/dist/esm/tds-popover-canvas.entry.js +5 -4
- package/dist/esm/tds-popover-core.entry.js +2 -2
- package/dist/esm/tds-popover-menu-item.entry.js +5 -4
- package/dist/esm/tds-popover-menu.entry.js +5 -4
- package/dist/esm/tds-radio-button.entry.js +4 -3
- package/dist/esm/tds-side-menu-close-button.entry.js +4 -3
- package/dist/esm/tds-side-menu-collapse-button.entry.js +7 -6
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +5 -4
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +5 -4
- package/dist/esm/tds-side-menu-dropdown.entry.js +6 -5
- package/dist/esm/tds-side-menu-item.entry.js +5 -4
- package/dist/esm/tds-side-menu-overlay.entry.js +4 -3
- package/dist/esm/tds-side-menu-user-image_2.entry.js +7 -5
- package/dist/esm/tds-side-menu-user.entry.js +4 -3
- package/dist/esm/tds-side-menu.entry.js +6 -5
- package/dist/esm/tds-slider.entry.js +9 -8
- package/dist/esm/tds-spinner.entry.js +4 -3
- package/dist/esm/tds-step.entry.js +4 -3
- package/dist/esm/tds-stepper.entry.js +4 -3
- package/dist/esm/tds-table-body-row-expandable.entry.js +5 -4
- package/dist/esm/tds-table-body-row.entry.js +6 -4
- package/dist/esm/tds-table-body.entry.js +4 -3
- package/dist/esm/tds-table-footer.entry.js +4 -3
- package/dist/esm/tds-table-header.entry.js +6 -4
- package/dist/esm/tds-table-toolbar.entry.js +4 -3
- package/dist/esm/tds-table.entry.js +6 -5
- package/dist/esm/tds-text-field.entry.js +8 -5
- package/dist/esm/tds-textarea.entry.js +6 -5
- package/dist/esm/tds-toast.entry.js +7 -6
- package/dist/esm/tds-toggle.entry.js +4 -3
- package/dist/esm/tds-tooltip.entry.js +5 -4
- package/dist/esm/tegel.js +4 -4
- package/dist/tegel/p-013d0bd6.entry.js +1 -0
- package/dist/tegel/p-048b8480.entry.js +1 -0
- package/dist/tegel/{p-8fedca76.entry.js → p-0c564ca1.entry.js} +1 -1
- package/dist/tegel/p-145808cf.entry.js +1 -0
- package/dist/tegel/p-1590e242.entry.js +1 -0
- package/dist/tegel/p-17b8763f.entry.js +1 -0
- package/dist/tegel/p-1b671dbc.entry.js +1 -0
- package/dist/tegel/p-200def59.entry.js +1 -0
- package/dist/tegel/p-23ed39c5.entry.js +1 -0
- package/dist/tegel/{p-fc3df599.entry.js → p-24466c21.entry.js} +1 -1
- package/dist/tegel/p-25616b50.entry.js +1 -0
- package/dist/tegel/p-2d534698.entry.js +1 -0
- package/dist/tegel/p-2fb7f571.entry.js +1 -0
- package/dist/tegel/p-30417aac.entry.js +1 -0
- package/dist/tegel/p-30dc9a8b.entry.js +1 -0
- package/dist/tegel/p-32f13b73.entry.js +1 -0
- package/dist/tegel/p-36db31d4.entry.js +1 -0
- package/dist/tegel/p-391b6b34.entry.js +1 -0
- package/dist/tegel/p-40519ff4.entry.js +1 -0
- package/dist/tegel/p-447ecb47.entry.js +1 -0
- package/dist/tegel/p-4aa948cf.entry.js +1 -0
- package/dist/tegel/p-4ac12ddb.entry.js +1 -0
- package/dist/tegel/p-4ca0f396.entry.js +1 -0
- package/dist/tegel/p-5047cf31.entry.js +1 -0
- package/dist/tegel/p-521fd6fe.entry.js +1 -0
- package/dist/tegel/p-55afd9bb.entry.js +1 -0
- package/dist/tegel/p-5b23048d.entry.js +1 -0
- package/dist/tegel/p-5c528867.entry.js +1 -0
- package/dist/tegel/p-5ec7c389.entry.js +1 -0
- package/dist/tegel/p-61b2e46f.entry.js +1 -0
- package/dist/tegel/p-632a58e4.entry.js +1 -0
- package/dist/tegel/p-68821acd.entry.js +1 -0
- package/dist/tegel/p-68f0f81d.entry.js +1 -0
- package/dist/tegel/p-6bb7fa2c.js +2 -0
- package/dist/tegel/p-6bca93b8.entry.js +1 -0
- package/dist/tegel/p-6e4cda16.entry.js +1 -0
- package/dist/tegel/p-6fa16688.entry.js +1 -0
- package/dist/tegel/p-708a52b1.entry.js +1 -0
- package/dist/tegel/p-71063a5a.entry.js +1 -0
- package/dist/tegel/p-72b79121.entry.js +1 -0
- package/dist/tegel/p-77a5d874.entry.js +1 -0
- package/dist/tegel/p-7b9149c0.entry.js +1 -0
- package/dist/tegel/p-7bbfa1ea.entry.js +1 -0
- package/dist/tegel/p-81cc50f8.entry.js +1 -0
- package/dist/tegel/p-825fd938.entry.js +1 -0
- package/dist/tegel/p-8af4737f.entry.js +1 -0
- package/dist/tegel/p-8df9b81f.entry.js +1 -0
- package/dist/tegel/p-8e40b046.entry.js +1 -0
- package/dist/tegel/p-8e442441.entry.js +1 -0
- package/dist/tegel/p-9544a2e7.entry.js +1 -0
- package/dist/tegel/p-9731cc82.entry.js +1 -0
- package/dist/tegel/p-9995c9e6.entry.js +1 -0
- package/dist/tegel/p-9d79f2fe.entry.js +1 -0
- package/dist/tegel/p-a0fba0df.entry.js +1 -0
- package/dist/tegel/p-a2934b2a.entry.js +1 -0
- package/dist/tegel/p-a2ad0d53.entry.js +1 -0
- package/dist/tegel/p-ab76d48c.entry.js +1 -0
- package/dist/tegel/p-adddb2db.entry.js +1 -0
- package/dist/tegel/p-ae5db9b9.entry.js +1 -0
- package/dist/tegel/p-b13959d0.entry.js +1 -0
- package/dist/tegel/p-b8cc0ab0.entry.js +1 -0
- package/dist/tegel/p-b91045a2.entry.js +1 -0
- package/dist/tegel/p-c0ced88a.entry.js +1 -0
- package/dist/tegel/p-c3ad28ea.entry.js +1 -0
- package/dist/tegel/p-c95a8a36.entry.js +1 -0
- package/dist/tegel/p-c9f701f6.entry.js +1 -0
- package/dist/tegel/p-cb080d0b.entry.js +1 -0
- package/dist/tegel/p-cd406a82.entry.js +1 -0
- package/dist/tegel/p-cd93fb3a.entry.js +1 -0
- package/dist/tegel/p-d604194c.entry.js +1 -0
- package/dist/tegel/p-d8b12e59.entry.js +1 -0
- package/dist/tegel/p-db20a6e9.entry.js +1 -0
- package/dist/tegel/p-dc35de46.entry.js +1 -0
- package/dist/tegel/p-e2f1a7a2.entry.js +1 -0
- package/dist/tegel/p-e35f0c64.entry.js +1 -0
- package/dist/tegel/p-eda20d0d.entry.js +1 -0
- package/dist/tegel/p-ee537028.entry.js +1 -0
- package/dist/tegel/p-f51101e4.entry.js +1 -0
- package/dist/tegel/p-fa3bd57f.entry.js +1 -0
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/datetime/datetime.d.ts +3 -1
- package/dist/types/components/icon/icon.d.ts +6 -3
- package/dist/types/components/table/table-body-row/table-body-row.d.ts +2 -0
- package/dist/types/components/table/table-header/table-header.d.ts +5 -3
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +14 -8
- package/dist/types/components/text-field/text-field.d.ts +5 -1
- package/dist/types/components.d.ts +66 -22
- package/package.json +2 -2
- package/dist/collection/components/accordion/accordion.stories.js +0 -100
- package/dist/collection/components/accordion/test/basic/accordion.e2e.js +0 -19
- package/dist/collection/components/accordion/test/disabled/accordion.e2e.js +0 -19
- package/dist/collection/components/accordion/test/expanded/accordion.e2e.js +0 -24
- package/dist/collection/components/accordion/test/padding-reset/accordion.e2e.js +0 -24
- package/dist/collection/components/badge/badge.stories.js +0 -106
- package/dist/collection/components/badge/test/basic/badge.e2e.js +0 -10
- package/dist/collection/components/badge/test/value/badge.e2e.js +0 -11
- package/dist/collection/components/banner/banner.stories.js +0 -92
- package/dist/collection/components/banner/test/basic/banner.e2e.js +0 -15
- package/dist/collection/components/banner/test/default/banner.e2e.js +0 -37
- package/dist/collection/components/banner/test/error/banner.e2e.js +0 -15
- package/dist/collection/components/banner/test/information/banner.e2e.js +0 -15
- package/dist/collection/components/block/block.stories.js +0 -49
- package/dist/collection/components/breadcrumbs/breadcrumbs.stories.js +0 -36
- package/dist/collection/components/breadcrumbs/test/default/breadcrumbs.e2e.js +0 -33
- package/dist/collection/components/button/button.stories.js +0 -185
- package/dist/collection/components/button/test/basic/button.e2e.js +0 -35
- package/dist/collection/components/button/test/danger/button.e2e.js +0 -18
- package/dist/collection/components/button/test/disabled/button.e2e.js +0 -24
- package/dist/collection/components/button/test/ghost/button.e2e.js +0 -18
- package/dist/collection/components/button/test/icon/button.e2e.js +0 -38
- package/dist/collection/components/button/test/secondary/button.e2e.js +0 -18
- package/dist/collection/components/card/card.stories.js +0 -163
- package/dist/collection/components/card/test/basic/card.e2e.js +0 -10
- package/dist/collection/components/card/test/clickable/card.e2e.js +0 -21
- package/dist/collection/components/card/test/default/card.e2e.js +0 -33
- package/dist/collection/components/checkbox/checkbox.stories.js +0 -93
- package/dist/collection/components/chip/chip.stories.js +0 -230
- package/dist/collection/components/datetime/datetime.stories.js +0 -219
- package/dist/collection/components/divider/divider.stories.js +0 -62
- package/dist/collection/components/dropdown/dropdown.stories.js +0 -260
- package/dist/collection/components/dropdown/test/basic/dropdown.e2e.js +0 -41
- package/dist/collection/components/dropdown/test/default/dropdown.e2e.js +0 -76
- package/dist/collection/components/dropdown/test/error/dropdown.e2e.js +0 -36
- package/dist/collection/components/dropdown/test/filter/dropdown.e2e.js +0 -56
- package/dist/collection/components/dropdown/test/filter/hide-no-result-message/dropdown.e2e.js +0 -23
- package/dist/collection/components/dropdown/test/filter/normalize-text-false/dropdown.e2e.js +0 -43
- package/dist/collection/components/dropdown/test/multiselect/dropdown.e2e.js +0 -81
- package/dist/collection/components/footer/footer.stories.js +0 -145
- package/dist/collection/components/footer/test/default/footer.e2e.js +0 -34
- package/dist/collection/components/header/header.stories.js +0 -82
- package/dist/collection/components/header/test/default/header.e2e.js +0 -44
- package/dist/collection/components/icon/icon.stories.js +0 -48
- package/dist/collection/components/link/link.stories.js +0 -59
- package/dist/collection/components/message/message.stories.js +0 -109
- package/dist/collection/components/message/test/basic/message.e2e.js +0 -16
- package/dist/collection/components/message/test/error/message.e2e.js +0 -28
- package/dist/collection/components/message/test/information/message.e2e.js +0 -10
- package/dist/collection/components/message/test/success/message.e2e.js +0 -10
- package/dist/collection/components/message/test/warning/message.e2e.js +0 -10
- package/dist/collection/components/modal/modal.stories.js +0 -119
- package/dist/collection/components/modal/test/default/modal.e2e.js +0 -28
- package/dist/collection/components/modal/test/open-close/modal.e2e.js +0 -63
- package/dist/collection/components/modal/test/prevent-true/modal.e2e.js +0 -13
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +0 -92
- package/dist/collection/components/popover-canvas/test/default/popover-canvas.e2e.js +0 -30
- package/dist/collection/components/popover-canvas/test/show-false/popover-canvas.e2e.js +0 -30
- package/dist/collection/components/popover-canvas/test/show-true/popover-canvas.e2e.js +0 -30
- package/dist/collection/components/popover-menu/popover-menu.stories.js +0 -146
- package/dist/collection/components/popover-menu/test/default/popover-menu.e2e.js +0 -60
- package/dist/collection/components/popover-menu/test/icons-fluid/popover-menu.e2e.js +0 -27
- package/dist/collection/components/popover-menu/test/show/popover-menu.e2e.js +0 -20
- package/dist/collection/components/popover-menu/test/show-false/popover-menu.e2e.js +0 -20
- package/dist/collection/components/radio-button/radio-button.stories.js +0 -91
- package/dist/collection/components/side-menu/side-menu.stories.js +0 -224
- package/dist/collection/components/side-menu/test/collapsible/side-menu.e2e.js +0 -28
- package/dist/collection/components/side-menu/test/default/side-menu.e2e.js +0 -38
- package/dist/collection/components/slider/slider.stories.js +0 -243
- package/dist/collection/components/spinner/spinner.stories.js +0 -61
- package/dist/collection/components/stepper/stepper.stories.js +0 -95
- package/dist/collection/components/table/table/test/batch/table.e2e.js +0 -24
- package/dist/collection/components/table/table/test/default/table.e2e.js +0 -46
- package/dist/collection/components/table/table/test/expandable-row/table.e2e.js +0 -64
- package/dist/collection/components/table/table/test/filtering/table.e2e.js +0 -41
- package/dist/collection/components/table/table/test/multiselect/table.e2e.js +0 -47
- package/dist/collection/components/table/table/test/pagination/table.e2e.js +0 -53
- package/dist/collection/components/table/table/test/sorting/table.e2e.js +0 -36
- package/dist/collection/components/table/table-component-basic.stories.js +0 -184
- package/dist/collection/components/table/table-component-batch-actions.stories.js +0 -188
- package/dist/collection/components/table/table-component-custom-width.stories.js +0 -174
- package/dist/collection/components/table/table-component-expandable-rows.stories.js +0 -160
- package/dist/collection/components/table/table-component-filtering.stories.js +0 -195
- package/dist/collection/components/table/table-component-multiselect.stories.js +0 -211
- package/dist/collection/components/table/table-component-pagination.stories.js +0 -196
- package/dist/collection/components/table/table-component-sorting.stories.js +0 -240
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +0 -105
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +0 -99
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +0 -101
- package/dist/collection/components/text-field/text-field.stories.js +0 -247
- package/dist/collection/components/textarea/test/basic/textarea.e2e.js +0 -26
- package/dist/collection/components/textarea/test/default/textarea.e2e.js +0 -34
- package/dist/collection/components/textarea/test/read-only/textarea.e2e.js +0 -26
- package/dist/collection/components/textarea/textarea.stories.js +0 -188
- package/dist/collection/components/toast/toast.stories.js +0 -90
- package/dist/collection/components/toggle/toggle.stories.js +0 -95
- package/dist/collection/components/tooltip/tooltip.stories.js +0 -126
- package/dist/collection/stories/Installation/angular.stories.js +0 -111
- package/dist/collection/stories/Installation/javascript.stories.js +0 -99
- package/dist/collection/stories/Installation/react.stories.js +0 -117
- package/dist/collection/stories/announcements/announce-tegel.stories.js +0 -262
- package/dist/collection/stories/announcements/prefix-change.stories.js +0 -93
- package/dist/collection/stories/formatHtmlPreview.js +0 -10
- package/dist/collection/stories/foundations/color/color-brand.stories.js +0 -38
- package/dist/collection/stories/foundations/color/color-scales.stories.js +0 -71
- package/dist/collection/stories/foundations/color/color-semantic.stories.js +0 -40
- package/dist/collection/stories/foundations/grid/grid.stories.js +0 -386
- package/dist/collection/stories/foundations/spacing/spacing-element.stories.js +0 -100
- package/dist/collection/stories/foundations/spacing/spacing-layout.stories.js +0 -94
- package/dist/collection/stories/foundations/typography/typography-body.stories.js +0 -16
- package/dist/collection/stories/foundations/typography/typography-detail.stories.js +0 -17
- package/dist/collection/stories/foundations/typography/typography-headline.stories.js +0 -39
- package/dist/collection/stories/foundations/typography/typography-paragraph.stories.js +0 -12
- package/dist/collection/stories/patterns/navigation/navigation-basic.stories.js +0 -85
- package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +0 -259
- package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +0 -247
- package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +0 -140
- package/dist/collection/stories/tegel.stories.js +0 -283
- package/dist/collection/stories/utility/color/background-color.stories.js +0 -96
- package/dist/collection/stories/utility/color/text-color.stories.js +0 -94
- package/dist/tegel/p-0657ff1a.entry.js +0 -1
- package/dist/tegel/p-0d0c6493.entry.js +0 -1
- package/dist/tegel/p-18940c9c.entry.js +0 -1
- package/dist/tegel/p-1945a0f3.entry.js +0 -1
- package/dist/tegel/p-1a7230e1.entry.js +0 -1
- package/dist/tegel/p-1e4217c5.entry.js +0 -1
- package/dist/tegel/p-21df464d.entry.js +0 -1
- package/dist/tegel/p-24e3d7e2.entry.js +0 -1
- package/dist/tegel/p-25e56f32.entry.js +0 -1
- package/dist/tegel/p-29556a90.entry.js +0 -1
- package/dist/tegel/p-2b344346.entry.js +0 -1
- package/dist/tegel/p-2b829947.entry.js +0 -1
- package/dist/tegel/p-2c513250.entry.js +0 -1
- package/dist/tegel/p-2c8de389.entry.js +0 -1
- package/dist/tegel/p-2caafb56.entry.js +0 -1
- package/dist/tegel/p-2cdb5f19.entry.js +0 -1
- package/dist/tegel/p-2f9c1ad7.entry.js +0 -1
- package/dist/tegel/p-30f28214.entry.js +0 -1
- package/dist/tegel/p-317b5299.entry.js +0 -1
- package/dist/tegel/p-326cb2ba.entry.js +0 -1
- package/dist/tegel/p-40562f4b.entry.js +0 -1
- package/dist/tegel/p-422e53ec.entry.js +0 -1
- package/dist/tegel/p-49813878.entry.js +0 -1
- package/dist/tegel/p-4c4f5168.entry.js +0 -1
- package/dist/tegel/p-4cc28733.entry.js +0 -1
- package/dist/tegel/p-4d661599.js +0 -2
- package/dist/tegel/p-4da1c8a8.entry.js +0 -1
- package/dist/tegel/p-4e195abb.entry.js +0 -1
- package/dist/tegel/p-50978479.entry.js +0 -1
- package/dist/tegel/p-50ffec23.entry.js +0 -1
- package/dist/tegel/p-515dfcea.entry.js +0 -1
- package/dist/tegel/p-556600b1.entry.js +0 -1
- package/dist/tegel/p-55964061.entry.js +0 -1
- package/dist/tegel/p-58835a58.entry.js +0 -1
- package/dist/tegel/p-63cd5c41.entry.js +0 -1
- package/dist/tegel/p-66b5c8ba.entry.js +0 -1
- package/dist/tegel/p-6a8a1f0f.entry.js +0 -1
- package/dist/tegel/p-6ae68836.entry.js +0 -1
- package/dist/tegel/p-6dc8f2dd.entry.js +0 -1
- package/dist/tegel/p-71479b49.entry.js +0 -1
- package/dist/tegel/p-73db3fab.entry.js +0 -1
- package/dist/tegel/p-75846b6a.entry.js +0 -1
- package/dist/tegel/p-7bb9c668.entry.js +0 -1
- package/dist/tegel/p-86ae068b.entry.js +0 -1
- package/dist/tegel/p-8d22e0d4.entry.js +0 -1
- package/dist/tegel/p-8f1b824b.entry.js +0 -1
- package/dist/tegel/p-936a8c86.entry.js +0 -1
- package/dist/tegel/p-94bce2be.entry.js +0 -1
- package/dist/tegel/p-981e917a.entry.js +0 -1
- package/dist/tegel/p-98716bbf.entry.js +0 -1
- package/dist/tegel/p-9a00d07e.entry.js +0 -1
- package/dist/tegel/p-a3f6cc1e.entry.js +0 -1
- package/dist/tegel/p-aa069789.entry.js +0 -1
- package/dist/tegel/p-aa627d7b.entry.js +0 -1
- package/dist/tegel/p-aebe9fdf.entry.js +0 -1
- package/dist/tegel/p-be72cf43.entry.js +0 -1
- package/dist/tegel/p-bf95003c.entry.js +0 -1
- package/dist/tegel/p-c6553022.entry.js +0 -1
- package/dist/tegel/p-c7b2017c.entry.js +0 -1
- package/dist/tegel/p-ca6b5098.entry.js +0 -1
- package/dist/tegel/p-ceb13ac1.entry.js +0 -1
- package/dist/tegel/p-d08d8a44.entry.js +0 -1
- package/dist/tegel/p-d2efffab.entry.js +0 -1
- package/dist/tegel/p-d33b5f47.entry.js +0 -1
- package/dist/tegel/p-d82ec760.entry.js +0 -1
- package/dist/tegel/p-d82fecc1.entry.js +0 -1
- package/dist/tegel/p-dc2b8ccc.entry.js +0 -1
- package/dist/tegel/p-dee090d9.entry.js +0 -1
- package/dist/tegel/p-df3d220d.entry.js +0 -1
- package/dist/tegel/p-ea6b7621.entry.js +0 -1
- package/dist/tegel/p-ed69bc61.entry.js +0 -1
- package/dist/tegel/p-f4011972.entry.js +0 -1
- package/dist/tegel/p-f54daf7d.entry.js +0 -1
- package/dist/tegel/p-f801cf0e.entry.js +0 -1
- package/dist/tegel/p-fc250504.entry.js +0 -1
- package/dist/tegel/p-fcfb96da.entry.js +0 -1
- package/dist/tegel/p-fe2a3b1d.entry.js +0 -1
- package/dist/types/components/accordion/accordion.stories.d.ts +0 -77
- package/dist/types/components/badge/badge.stories.d.ts +0 -73
- package/dist/types/components/banner/banner.stories.d.ts +0 -69
- package/dist/types/components/block/block.stories.d.ts +0 -32
- package/dist/types/components/breadcrumbs/breadcrumbs.stories.d.ts +0 -16
- package/dist/types/components/button/button.stories.d.ts +0 -147
- package/dist/types/components/card/card.stories.d.ts +0 -128
- package/dist/types/components/checkbox/checkbox.stories.d.ts +0 -65
- package/dist/types/components/chip/chip.stories.d.ts +0 -99
- package/dist/types/components/datetime/datetime.stories.d.ts +0 -151
- package/dist/types/components/divider/divider.stories.d.ts +0 -58
- package/dist/types/components/dropdown/dropdown.stories.d.ts +0 -205
- package/dist/types/components/footer/footer.stories.d.ts +0 -44
- package/dist/types/components/header/header.stories.d.ts +0 -32
- package/dist/types/components/icon/icon.stories.d.ts +0 -36
- package/dist/types/components/link/link.stories.d.ts +0 -44
- package/dist/types/components/message/message.stories.d.ts +0 -88
- package/dist/types/components/modal/modal.stories.d.ts +0 -78
- package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +0 -27
- package/dist/types/components/popover-menu/popover-menu.stories.d.ts +0 -51
- package/dist/types/components/radio-button/radio-button.stories.d.ts +0 -39
- package/dist/types/components/side-menu/side-menu.stories.d.ts +0 -65
- package/dist/types/components/slider/slider.stories.d.ts +0 -235
- package/dist/types/components/spinner/spinner.stories.d.ts +0 -46
- package/dist/types/components/stepper/stepper.stories.d.ts +0 -80
- package/dist/types/components/table/table-component-basic.stories.d.ts +0 -144
- package/dist/types/components/table/table-component-batch-actions.stories.d.ts +0 -139
- package/dist/types/components/table/table-component-custom-width.stories.d.ts +0 -131
- package/dist/types/components/table/table-component-expandable-rows.stories.d.ts +0 -131
- package/dist/types/components/table/table-component-filtering.stories.d.ts +0 -131
- package/dist/types/components/table/table-component-multiselect.stories.d.ts +0 -147
- package/dist/types/components/table/table-component-pagination.stories.d.ts +0 -131
- package/dist/types/components/table/table-component-sorting.stories.d.ts +0 -183
- package/dist/types/components/tabs/folder-tabs/folder-tabs.stories.d.ts +0 -69
- package/dist/types/components/tabs/inline-tabs/inline-tabs.stories.d.ts +0 -61
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +0 -61
- package/dist/types/components/text-field/text-field.stories.d.ts +0 -201
- package/dist/types/components/textarea/textarea.stories.d.ts +0 -139
- package/dist/types/components/toast/toast.stories.d.ts +0 -64
- package/dist/types/components/toggle/toggle.stories.d.ts +0 -74
- package/dist/types/components/tooltip/tooltip.stories.d.ts +0 -66
- package/dist/types/stories/Installation/angular.stories.d.ts +0 -6
- package/dist/types/stories/Installation/javascript.stories.d.ts +0 -7
- package/dist/types/stories/Installation/react.stories.d.ts +0 -6
- package/dist/types/stories/announcements/announce-tegel.stories.d.ts +0 -6
- package/dist/types/stories/announcements/prefix-change.stories.d.ts +0 -6
- package/dist/types/stories/formatHtmlPreview.d.ts +0 -2
- package/dist/types/stories/foundations/color/color-brand.stories.d.ts +0 -13
- package/dist/types/stories/foundations/color/color-scales.stories.d.ts +0 -30
- package/dist/types/stories/foundations/color/color-semantic.stories.d.ts +0 -13
- package/dist/types/stories/foundations/grid/grid.stories.d.ts +0 -35
- package/dist/types/stories/foundations/spacing/spacing-element.stories.d.ts +0 -8
- package/dist/types/stories/foundations/spacing/spacing-layout.stories.d.ts +0 -8
- package/dist/types/stories/foundations/typography/typography-body.stories.d.ts +0 -8
- package/dist/types/stories/foundations/typography/typography-detail.stories.d.ts +0 -8
- package/dist/types/stories/foundations/typography/typography-headline.stories.d.ts +0 -21
- package/dist/types/stories/foundations/typography/typography-paragraph.stories.d.ts +0 -8
- package/dist/types/stories/patterns/navigation/navigation-basic.stories.d.ts +0 -23
- package/dist/types/stories/patterns/navigation/navigation-fewitems.stories.d.ts +0 -23
- package/dist/types/stories/patterns/navigation/navigation-manyitems.stories.d.ts +0 -38
- package/dist/types/stories/patterns/navigation/navigation-user-menu.stories.d.ts +0 -33
- package/dist/types/stories/tegel.stories.d.ts +0 -6
- package/dist/types/stories/utility/color/background-color.stories.d.ts +0 -64
- package/dist/types/stories/utility/color/text-color.stories.d.ts +0 -64
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { test } from "stencil-playwright";
|
|
2
|
-
import { expect } from "@playwright/test";
|
|
3
|
-
const componentTestPath = 'src/components/table/table/test/sorting/index.html';
|
|
4
|
-
test.describe('tds-table-sorting', () => {
|
|
5
|
-
test('renders sorting table correctly', async ({ page }) => {
|
|
6
|
-
await page.goto(componentTestPath);
|
|
7
|
-
const tableComponent = page.getByRole('table');
|
|
8
|
-
await expect(tableComponent).toHaveCount(1);
|
|
9
|
-
/* Check for diffs in screenshot */
|
|
10
|
-
await expect(page).toHaveScreenshot({ maxDiffPixels: 0 });
|
|
11
|
-
});
|
|
12
|
-
test('table has header "Sorting"', async ({ page }) => {
|
|
13
|
-
await page.goto(componentTestPath);
|
|
14
|
-
/* Search for header by text and see if it exists */
|
|
15
|
-
const tdsTableToolbarCaption = page.getByText('Sorting');
|
|
16
|
-
await expect(tdsTableToolbarCaption).toHaveCount(1);
|
|
17
|
-
await expect(tdsTableToolbarCaption).toBeVisible();
|
|
18
|
-
});
|
|
19
|
-
test('column headers are clickable', async ({ page }) => {
|
|
20
|
-
await page.goto(componentTestPath);
|
|
21
|
-
const myEventSpy = await page.spyOnEvent('tdsSort');
|
|
22
|
-
const truckTypeHeader = page.getByText('Truck type');
|
|
23
|
-
await truckTypeHeader.click();
|
|
24
|
-
expect(myEventSpy).toHaveReceivedEventTimes(1);
|
|
25
|
-
const driverNameHeader = page.getByText('Driver name');
|
|
26
|
-
await driverNameHeader.click();
|
|
27
|
-
expect(myEventSpy).toHaveReceivedEventTimes(2);
|
|
28
|
-
const countryHeader = page.getByText('Country');
|
|
29
|
-
await countryHeader.click();
|
|
30
|
-
expect(myEventSpy).toHaveReceivedEventTimes(3);
|
|
31
|
-
const mileageHeader = page.getByText('Mileage');
|
|
32
|
-
await mileageHeader.click();
|
|
33
|
-
expect(myEventSpy).toHaveReceivedEventTimes(4);
|
|
34
|
-
await expect(page).toHaveScreenshot({ maxDiffPixels: 0 });
|
|
35
|
-
});
|
|
36
|
-
});
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import tdsTable from "./table/readme.md";
|
|
2
|
-
import tdsTableToolbar from "./table-toolbar/readme.md";
|
|
3
|
-
import tdsHeader from "./table-header/readme.md";
|
|
4
|
-
import tdsHeaderCell from "./table-header-cell/readme.md";
|
|
5
|
-
import tdsTableBody from "./table-body/readme.md";
|
|
6
|
-
import tdsBodyRow from "./table-body-row/readme.md";
|
|
7
|
-
import tdsBodyRowExpandable from "./table-body-row-expandable/readme.md";
|
|
8
|
-
import tdsBodyCell from "./table-body-cell/readme.md";
|
|
9
|
-
import tdsTableFooter from "./table-footer/readme.md";
|
|
10
|
-
import { ComponentsFolder } from "../../utils/constants";
|
|
11
|
-
import formatHtmlPreview from "../../stories/formatHtmlPreview";
|
|
12
|
-
export default {
|
|
13
|
-
title: `${ComponentsFolder}/Table`,
|
|
14
|
-
parameters: {
|
|
15
|
-
notes: {
|
|
16
|
-
'tds-table': tdsTable,
|
|
17
|
-
'tds-table-toolbar': tdsTableToolbar,
|
|
18
|
-
'tds-header': tdsHeader,
|
|
19
|
-
'tds-header-cell': tdsHeaderCell,
|
|
20
|
-
'tds-table-body': tdsTableBody,
|
|
21
|
-
'tds-body-row': tdsBodyRow,
|
|
22
|
-
'tds-body-row-expandable': tdsBodyRowExpandable,
|
|
23
|
-
'tds-body-cell': tdsBodyCell,
|
|
24
|
-
'tds-table-footer': tdsTableFooter,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
argTypes: {
|
|
28
|
-
modeVariant: {
|
|
29
|
-
name: 'Mode variant',
|
|
30
|
-
description: 'Mode variant adjusts component colors to have better visibility depending on global mode and background.',
|
|
31
|
-
control: {
|
|
32
|
-
type: 'radio',
|
|
33
|
-
},
|
|
34
|
-
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
35
|
-
table: {
|
|
36
|
-
defaultValue: { summary: 'Inherit from parent' },
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
compactDesign: {
|
|
40
|
-
name: 'Compact design',
|
|
41
|
-
description: 'Enables compact design of the Table, rows with less height.',
|
|
42
|
-
control: {
|
|
43
|
-
type: 'boolean',
|
|
44
|
-
},
|
|
45
|
-
table: {
|
|
46
|
-
defaultValue: { summary: false },
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
responsiveDesign: {
|
|
50
|
-
name: 'Responsive Table',
|
|
51
|
-
description: 'Enables Table to take 100% of available width. For column values less than 192px, "No minimum width" has to be enabled too.',
|
|
52
|
-
control: {
|
|
53
|
-
type: 'boolean',
|
|
54
|
-
},
|
|
55
|
-
table: {
|
|
56
|
-
defaultValue: { summary: false },
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
disablePadding: {
|
|
60
|
-
name: 'Disable cell padding',
|
|
61
|
-
description: 'By default each cell comes with padding. Disabling padding rule can be useful when a users want to insert another HTML element in cell, eg. input.',
|
|
62
|
-
control: {
|
|
63
|
-
type: 'boolean',
|
|
64
|
-
},
|
|
65
|
-
table: {
|
|
66
|
-
defaultValue: { summary: false },
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
verticalDivider: {
|
|
70
|
-
name: 'Vertical dividers',
|
|
71
|
-
description: 'Enables vertical dividers between Table columns.',
|
|
72
|
-
control: {
|
|
73
|
-
type: 'boolean',
|
|
74
|
-
},
|
|
75
|
-
table: {
|
|
76
|
-
defaultValue: { summary: false },
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
noMinWidth: {
|
|
80
|
-
name: 'No minimum width',
|
|
81
|
-
description: 'Resets min-width rule and enables setting column width value to less than 192px which is the default. When enabled, controls for column width will show here.',
|
|
82
|
-
control: {
|
|
83
|
-
type: 'boolean',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
column1Width: {
|
|
87
|
-
name: 'Column 1 width',
|
|
88
|
-
description: 'Value of width for column 1. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
89
|
-
control: {
|
|
90
|
-
type: 'text',
|
|
91
|
-
},
|
|
92
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
93
|
-
},
|
|
94
|
-
column2Width: {
|
|
95
|
-
name: 'Column 2 width',
|
|
96
|
-
description: 'Value of width for column 2. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
97
|
-
control: {
|
|
98
|
-
type: 'text',
|
|
99
|
-
},
|
|
100
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
101
|
-
},
|
|
102
|
-
column3Width: {
|
|
103
|
-
name: 'Column 3 width',
|
|
104
|
-
description: 'Value of width for column 3. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
105
|
-
control: {
|
|
106
|
-
type: 'text',
|
|
107
|
-
},
|
|
108
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
109
|
-
},
|
|
110
|
-
column4Width: {
|
|
111
|
-
name: 'Column 4 width',
|
|
112
|
-
description: 'Value of width for column 4. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
113
|
-
control: {
|
|
114
|
-
type: 'text',
|
|
115
|
-
},
|
|
116
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
117
|
-
},
|
|
118
|
-
},
|
|
119
|
-
args: {
|
|
120
|
-
modeVariant: 'Inherit from parent',
|
|
121
|
-
compactDesign: false,
|
|
122
|
-
responsiveDesign: false,
|
|
123
|
-
disablePadding: false,
|
|
124
|
-
verticalDivider: false,
|
|
125
|
-
noMinWidth: false,
|
|
126
|
-
column1Width: '',
|
|
127
|
-
column2Width: '',
|
|
128
|
-
column3Width: '',
|
|
129
|
-
column4Width: '',
|
|
130
|
-
},
|
|
131
|
-
};
|
|
132
|
-
const BasicTemplate = ({ modeVariant, compactDesign, responsiveDesign, disablePadding, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
|
|
133
|
-
<tds-table
|
|
134
|
-
vertical-dividers="${verticalDivider}"
|
|
135
|
-
compact-design="${compactDesign}"
|
|
136
|
-
responsive="${responsiveDesign}"
|
|
137
|
-
${noMinWidth ? 'no-min-width' : ''}
|
|
138
|
-
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}>
|
|
139
|
-
<tds-table-header>
|
|
140
|
-
<tds-header-cell cell-key='truck' cell-value='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
|
|
141
|
-
<tds-header-cell cell-key='driver' cell-value='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
|
|
142
|
-
<tds-header-cell cell-key='country' cell-value='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
|
|
143
|
-
<tds-header-cell cell-key='mileage' cell-value='Mileage' text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
|
|
144
|
-
</tds-table-header>
|
|
145
|
-
<tds-table-body>
|
|
146
|
-
<tds-table-body-row>
|
|
147
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck" disable-padding="${disablePadding}"></tds-body-cell>
|
|
148
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver" disable-padding="${disablePadding}"></tds-body-cell>
|
|
149
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country" disable-padding="${disablePadding}"></tds-body-cell>
|
|
150
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage" disable-padding="${disablePadding}"></tds-body-cell>
|
|
151
|
-
</tds-table-body-row>
|
|
152
|
-
<tds-table-body-row>
|
|
153
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck" disable-padding="${disablePadding}"></tds-body-cell>
|
|
154
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver" disable-padding="${disablePadding}"></tds-body-cell>
|
|
155
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country" disable-padding="${disablePadding}"></tds-body-cell>
|
|
156
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage" disable-padding="${disablePadding}"></tds-body-cell>
|
|
157
|
-
</tds-table-body-row>
|
|
158
|
-
<tds-table-body-row>
|
|
159
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck" disable-padding="${disablePadding}"></tds-body-cell>
|
|
160
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver" disable-padding="${disablePadding}"></tds-body-cell>
|
|
161
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country" disable-padding="${disablePadding}"></tds-body-cell>
|
|
162
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage" disable-padding="${disablePadding}"></tds-body-cell>
|
|
163
|
-
</tds-table-body-row>
|
|
164
|
-
<tds-table-body-row>
|
|
165
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck" disable-padding="${disablePadding}"></tds-body-cell>
|
|
166
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver" disable-padding="${disablePadding}"></tds-body-cell>
|
|
167
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country" disable-padding="${disablePadding}"></tds-body-cell>
|
|
168
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage" disable-padding="${disablePadding}"></tds-body-cell>
|
|
169
|
-
</tds-table-body-row>
|
|
170
|
-
<tds-table-body-row>
|
|
171
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck" disable-padding="${disablePadding}"></tds-body-cell>
|
|
172
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver" disable-padding="${disablePadding}"></tds-body-cell>
|
|
173
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country" disable-padding="${disablePadding}"></tds-body-cell>
|
|
174
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage" disable-padding="${disablePadding}"></tds-body-cell>
|
|
175
|
-
</tds-table-body-row>
|
|
176
|
-
<tds-table-body-row>
|
|
177
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck" disable-padding="${disablePadding}"></tds-body-cell>
|
|
178
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver" disable-padding="${disablePadding}"></tds-body-cell>
|
|
179
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country" disable-padding="${disablePadding}"></tds-body-cell>
|
|
180
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage" disable-padding="${disablePadding}"></tds-body-cell>
|
|
181
|
-
</tds-table-body-row>
|
|
182
|
-
</tds-table-body>
|
|
183
|
-
</tds-table>`);
|
|
184
|
-
export const Basic = BasicTemplate.bind({});
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import formatHtmlPreview from "../../stories/formatHtmlPreview";
|
|
2
|
-
import tdsTable from "./table/readme.md";
|
|
3
|
-
import tdsTableToolbar from "./table-toolbar/readme.md";
|
|
4
|
-
import tdsHeader from "./table-header/readme.md";
|
|
5
|
-
import tdsHeaderCell from "./table-header-cell/readme.md";
|
|
6
|
-
import tdsTableBody from "./table-body/readme.md";
|
|
7
|
-
import tdsBodyRow from "./table-body-row/readme.md";
|
|
8
|
-
import tdsBodyRowExpandable from "./table-body-row-expandable/readme.md";
|
|
9
|
-
import tdsBodyCell from "./table-body-cell/readme.md";
|
|
10
|
-
import tdsTableFooter from "./table-footer/readme.md";
|
|
11
|
-
import { ComponentsFolder } from "../../utils/constants";
|
|
12
|
-
export default {
|
|
13
|
-
title: `${ComponentsFolder}/Table`,
|
|
14
|
-
parameters: {
|
|
15
|
-
notes: {
|
|
16
|
-
'tds-table': tdsTable,
|
|
17
|
-
'tds-table-toolbar': tdsTableToolbar,
|
|
18
|
-
'tds-header': tdsHeader,
|
|
19
|
-
'tds-header-cell': tdsHeaderCell,
|
|
20
|
-
'tds-table-body': tdsTableBody,
|
|
21
|
-
'tds-body-row': tdsBodyRow,
|
|
22
|
-
'tds-body-row-expandable': tdsBodyRowExpandable,
|
|
23
|
-
'tds-body-cell': tdsBodyCell,
|
|
24
|
-
'tds-table-footer': tdsTableFooter,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
argTypes: {
|
|
28
|
-
modeVariant: {
|
|
29
|
-
name: 'Mode variant',
|
|
30
|
-
description: 'Mode variant adjusts component colors to have better visibility depending on global mode and background.',
|
|
31
|
-
control: {
|
|
32
|
-
type: 'radio',
|
|
33
|
-
},
|
|
34
|
-
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
35
|
-
table: {
|
|
36
|
-
defaultValue: { summary: 'Inherit from parent' },
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
compactDesign: {
|
|
40
|
-
name: 'Compact design',
|
|
41
|
-
description: 'Enables compact design of the Table, rows with less height.',
|
|
42
|
-
control: {
|
|
43
|
-
type: 'boolean',
|
|
44
|
-
},
|
|
45
|
-
table: {
|
|
46
|
-
defaultValue: { summary: false },
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
responsiveDesign: {
|
|
50
|
-
name: 'Responsive Table',
|
|
51
|
-
description: 'Enables Table to take 100% of available width. For column values less than 192px, "No minimum width" has to be enabled too.',
|
|
52
|
-
control: {
|
|
53
|
-
type: 'boolean',
|
|
54
|
-
},
|
|
55
|
-
table: {
|
|
56
|
-
defaultValue: { summary: false },
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
batchArea: {
|
|
60
|
-
name: 'Batch code',
|
|
61
|
-
description: 'Enables code to be injected into the toolbar area.',
|
|
62
|
-
control: {
|
|
63
|
-
type: 'text',
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
verticalDivider: {
|
|
67
|
-
name: 'Vertical dividers',
|
|
68
|
-
description: 'Enables vertical dividers between Table columns.',
|
|
69
|
-
control: {
|
|
70
|
-
type: 'boolean',
|
|
71
|
-
},
|
|
72
|
-
table: {
|
|
73
|
-
defaultValue: { summary: false },
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
noMinWidth: {
|
|
77
|
-
name: 'No minimum width',
|
|
78
|
-
description: 'Resets min-width rule and enables setting column width value to less than 192px which is the default. When enabled, controls for column width will show here.',
|
|
79
|
-
control: {
|
|
80
|
-
type: 'boolean',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
column1Width: {
|
|
84
|
-
name: 'Column 1 width',
|
|
85
|
-
description: 'Value of width for column 1. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
86
|
-
control: {
|
|
87
|
-
type: 'text',
|
|
88
|
-
},
|
|
89
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
90
|
-
},
|
|
91
|
-
column2Width: {
|
|
92
|
-
name: 'Column 2 width',
|
|
93
|
-
description: 'Value of width for column 2. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
94
|
-
control: {
|
|
95
|
-
type: 'text',
|
|
96
|
-
},
|
|
97
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
98
|
-
},
|
|
99
|
-
column3Width: {
|
|
100
|
-
name: 'Column 3 width',
|
|
101
|
-
description: 'Value of width for column 3. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
102
|
-
control: {
|
|
103
|
-
type: 'text',
|
|
104
|
-
},
|
|
105
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
106
|
-
},
|
|
107
|
-
column4Width: {
|
|
108
|
-
name: 'Column 4 width',
|
|
109
|
-
description: 'Value of width for column 4. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
110
|
-
control: {
|
|
111
|
-
type: 'text',
|
|
112
|
-
},
|
|
113
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
args: {
|
|
117
|
-
modeVariant: 'Inherit from parent',
|
|
118
|
-
compactDesign: false,
|
|
119
|
-
responsiveDesign: false,
|
|
120
|
-
batchArea: formatHtmlPreview(`<div slot="end" class="tds-u-flex tds-u-align-items-center tds-u-h-100 tds-u-gap1"><tds-button type="ghost" size="sm">
|
|
121
|
-
<tds-icon slot="icon" class="tds-btn-icon" size="16px" name="settings"></tds-icon>
|
|
122
|
-
</tds-button><tds-button type="primary" size="sm" text="Download"></tds-button></div>`),
|
|
123
|
-
verticalDivider: false,
|
|
124
|
-
noMinWidth: false,
|
|
125
|
-
column1Width: '',
|
|
126
|
-
column2Width: '',
|
|
127
|
-
column3Width: '',
|
|
128
|
-
column4Width: '',
|
|
129
|
-
},
|
|
130
|
-
};
|
|
131
|
-
const BatchActionTemplate = ({ modeVariant, compactDesign, responsiveDesign, batchArea, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
|
|
132
|
-
<tds-table
|
|
133
|
-
vertical-dividers="${verticalDivider}"
|
|
134
|
-
compact-design="${compactDesign}"
|
|
135
|
-
responsive="${responsiveDesign}"
|
|
136
|
-
${noMinWidth ? 'no-min-width' : ''}
|
|
137
|
-
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
|
|
138
|
-
>
|
|
139
|
-
<tds-table-toolbar table-title="Batch action">
|
|
140
|
-
${batchArea}
|
|
141
|
-
</tds-table-toolbar>
|
|
142
|
-
<tds-table-header>
|
|
143
|
-
<tds-header-cell ${column1Width ? `style="width: ${column1Width};"` : ''} cell-key='truck' cell-value='Truck type'></tds-header-cell>
|
|
144
|
-
<tds-header-cell ${column2Width ? `style="width: ${column2Width};"` : ''} cell-key='driver' cell-value='Driver name'></tds-header-cell>
|
|
145
|
-
<tds-header-cell ${column3Width ? `style="width: ${column3Width};"` : ''} cell-key='country' cell-value='Country'></tds-header-cell>
|
|
146
|
-
<tds-header-cell ${column4Width ? `style="width: ${column4Width};"` : ''} cell-key='mileage' cell-value='Mileage' text-align='right'></tds-header-cell>
|
|
147
|
-
</tds-table-header>
|
|
148
|
-
<tds-table-body>
|
|
149
|
-
<tds-table-body-row>
|
|
150
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
151
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
152
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
153
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
154
|
-
</tds-table-body-row>
|
|
155
|
-
<tds-table-body-row>
|
|
156
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
157
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
158
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
159
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
160
|
-
</tds-table-body-row>
|
|
161
|
-
<tds-table-body-row>
|
|
162
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
163
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
164
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
165
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
166
|
-
</tds-table-body-row>
|
|
167
|
-
<tds-table-body-row>
|
|
168
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
169
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
170
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
171
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
172
|
-
</tds-table-body-row>
|
|
173
|
-
<tds-table-body-row>
|
|
174
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
175
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
176
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
177
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
178
|
-
</tds-table-body-row>
|
|
179
|
-
<tds-table-body-row>
|
|
180
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
181
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
182
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
183
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
184
|
-
</tds-table-body-row>
|
|
185
|
-
</tds-table-body>
|
|
186
|
-
</tds-table>
|
|
187
|
-
`);
|
|
188
|
-
export const BatchAction = BatchActionTemplate.bind({});
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import formatHtmlPreview from "../../stories/formatHtmlPreview";
|
|
2
|
-
import tdsTable from "./table/readme.md";
|
|
3
|
-
import tdsTableToolbar from "./table-toolbar/readme.md";
|
|
4
|
-
import tdsHeader from "./table-header/readme.md";
|
|
5
|
-
import tdsHeaderCell from "./table-header-cell/readme.md";
|
|
6
|
-
import tdsTableBody from "./table-body/readme.md";
|
|
7
|
-
import tdsBodyRow from "./table-body-row/readme.md";
|
|
8
|
-
import tdsBodyRowExpandable from "./table-body-row-expandable/readme.md";
|
|
9
|
-
import tdsBodyCell from "./table-body-cell/readme.md";
|
|
10
|
-
import tdsTableFooter from "./table-footer/readme.md";
|
|
11
|
-
import { ComponentsFolder } from "../../utils/constants";
|
|
12
|
-
export default {
|
|
13
|
-
title: `${ComponentsFolder}/Table`,
|
|
14
|
-
parameters: {
|
|
15
|
-
notes: {
|
|
16
|
-
'tds-table': tdsTable,
|
|
17
|
-
'tds-table-toolbar': tdsTableToolbar,
|
|
18
|
-
'tds-header': tdsHeader,
|
|
19
|
-
'tds-header-cell': tdsHeaderCell,
|
|
20
|
-
'tds-table-body': tdsTableBody,
|
|
21
|
-
'tds-body-row': tdsBodyRow,
|
|
22
|
-
'tds-body-row-expandable': tdsBodyRowExpandable,
|
|
23
|
-
'tds-body-cell': tdsBodyCell,
|
|
24
|
-
'tds-table-footer': tdsTableFooter,
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
argTypes: {
|
|
28
|
-
modeVariant: {
|
|
29
|
-
name: 'Mode variant',
|
|
30
|
-
description: 'Mode variant adjusts component colors to have better visibility depending on global mode and background.',
|
|
31
|
-
control: {
|
|
32
|
-
type: 'radio',
|
|
33
|
-
},
|
|
34
|
-
options: ['Inherit from parent', 'Primary', 'Secondary'],
|
|
35
|
-
table: {
|
|
36
|
-
defaultValue: { summary: 'Inherit from parent' },
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
compactDesign: {
|
|
40
|
-
name: 'Compact design',
|
|
41
|
-
description: 'Enables compact design of the Table, rows with less height.',
|
|
42
|
-
control: {
|
|
43
|
-
type: 'boolean',
|
|
44
|
-
},
|
|
45
|
-
table: {
|
|
46
|
-
defaultValue: { summary: false },
|
|
47
|
-
},
|
|
48
|
-
},
|
|
49
|
-
responsiveDesign: {
|
|
50
|
-
name: 'Responsive Table',
|
|
51
|
-
description: 'Enables Table to take 100% of available width. For column values less than 192px, "No minimum width" has to be enabled too.',
|
|
52
|
-
control: {
|
|
53
|
-
type: 'boolean',
|
|
54
|
-
},
|
|
55
|
-
table: {
|
|
56
|
-
defaultValue: { summary: false },
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
verticalDivider: {
|
|
60
|
-
name: 'Vertical dividers',
|
|
61
|
-
description: 'Enables vertical dividers between Table columns.',
|
|
62
|
-
control: {
|
|
63
|
-
type: 'boolean',
|
|
64
|
-
},
|
|
65
|
-
table: {
|
|
66
|
-
defaultValue: { summary: false },
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
noMinWidth: {
|
|
70
|
-
name: 'No minimum width',
|
|
71
|
-
description: 'Resets min-width rule and enables setting column width value to less than 192px which is the default. When enabled, controls for column width will show here.',
|
|
72
|
-
control: {
|
|
73
|
-
type: 'boolean',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
column1Width: {
|
|
77
|
-
name: 'Column 1 width',
|
|
78
|
-
description: 'Value of width for column 1. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
79
|
-
control: {
|
|
80
|
-
type: 'text',
|
|
81
|
-
},
|
|
82
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
83
|
-
},
|
|
84
|
-
column2Width: {
|
|
85
|
-
name: 'Column 2 width',
|
|
86
|
-
description: 'Value of width for column 2. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
87
|
-
control: {
|
|
88
|
-
type: 'text',
|
|
89
|
-
},
|
|
90
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
91
|
-
},
|
|
92
|
-
column3Width: {
|
|
93
|
-
name: 'Column 3 width',
|
|
94
|
-
description: 'Value of width for column 3. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
95
|
-
control: {
|
|
96
|
-
type: 'text',
|
|
97
|
-
},
|
|
98
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
99
|
-
},
|
|
100
|
-
column4Width: {
|
|
101
|
-
name: 'Column 4 width',
|
|
102
|
-
description: 'Value of width for column 4. In order to work correctly "No minimum width" has to be enabled too. When editing please provide a unit next to the value, eg. 200px.',
|
|
103
|
-
control: {
|
|
104
|
-
type: 'text',
|
|
105
|
-
},
|
|
106
|
-
if: { arg: 'noMinWidth', eq: true },
|
|
107
|
-
},
|
|
108
|
-
},
|
|
109
|
-
args: {
|
|
110
|
-
modeVariant: 'Inherit from parent',
|
|
111
|
-
compactDesign: false,
|
|
112
|
-
responsiveDesign: false,
|
|
113
|
-
verticalDivider: true,
|
|
114
|
-
noMinWidth: true,
|
|
115
|
-
column1Width: '321px',
|
|
116
|
-
column2Width: '400px',
|
|
117
|
-
column3Width: '150px',
|
|
118
|
-
column4Width: '110px',
|
|
119
|
-
},
|
|
120
|
-
};
|
|
121
|
-
const BasicTemplate = ({ modeVariant, compactDesign, responsiveDesign, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
|
|
122
|
-
<tds-table
|
|
123
|
-
vertical-dividers="${verticalDivider}"
|
|
124
|
-
compact-design="${compactDesign}"
|
|
125
|
-
responsive="${responsiveDesign}"
|
|
126
|
-
${noMinWidth ? 'no-min-width' : ''}
|
|
127
|
-
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
|
|
128
|
-
>
|
|
129
|
-
<tds-table-header>
|
|
130
|
-
<tds-header-cell cell-key='truck' cell-value='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''} ></tds-header-cell>
|
|
131
|
-
<tds-header-cell cell-key='driver' cell-value='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
|
|
132
|
-
<tds-header-cell cell-key='country' cell-value='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
|
|
133
|
-
<tds-header-cell cell-key='mileage' cell-value='Mileage' ${column4Width ? `custom-width="${column4Width}"` : ''} text-align='right'></tds-header-cell>
|
|
134
|
-
</tds-table-header>
|
|
135
|
-
<tds-table-body>
|
|
136
|
-
<tds-table-body-row>
|
|
137
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
138
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
139
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
140
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
141
|
-
</tds-table-body-row>
|
|
142
|
-
<tds-table-body-row>
|
|
143
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
144
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
145
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
146
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
147
|
-
</tds-table-body-row>
|
|
148
|
-
<tds-table-body-row>
|
|
149
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
150
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
151
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
152
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
153
|
-
</tds-table-body-row>
|
|
154
|
-
<tds-table-body-row>
|
|
155
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
156
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
157
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
158
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
159
|
-
</tds-table-body-row>
|
|
160
|
-
<tds-table-body-row>
|
|
161
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
162
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
163
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
164
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
165
|
-
</tds-table-body-row>
|
|
166
|
-
<tds-table-body-row>
|
|
167
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
168
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
169
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
170
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
171
|
-
</tds-table-body-row>
|
|
172
|
-
</tds-table-body>
|
|
173
|
-
</tds-table>`);
|
|
174
|
-
export const CustomWidth = BasicTemplate.bind({});
|