@scania/tegel 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +178 -178
- package/components/checkbox.js +75 -0
- package/{dist/components → components}/core-header-item.js +1 -0
- package/{dist/components → components}/divider.js +1 -0
- package/{dist/components → components}/header-dropdown-list-item.js +1 -0
- package/{dist/components → components}/header-dropdown-list.js +1 -0
- package/{dist/components → components}/header-item.js +1 -0
- package/{dist/components → components}/header-launcher-button.js +1 -0
- package/{dist/components → components}/icon.js +2 -1
- package/{dist/components → components}/popover-canvas.js +1 -0
- package/{dist/components → components}/popover-core.js +1 -0
- package/{dist/components → components}/side-menu-item.js +1 -0
- package/{dist/components → components}/side-menu-user-image.js +1 -0
- package/{dist/components → components}/side-menu-user-label.js +1 -0
- package/{dist/components → components}/tds-accordion-item.d.ts +1 -1
- package/{dist/components → components}/tds-accordion-item.js +6 -5
- package/{dist/components → components}/tds-accordion.d.ts +1 -1
- package/{dist/components → components}/tds-accordion.js +1 -0
- package/{dist/components → components}/tds-badge.d.ts +1 -1
- package/{dist/components → components}/tds-badge.js +1 -0
- package/{dist/components → components}/tds-banner.d.ts +1 -1
- package/{dist/components → components}/tds-banner.js +1 -9
- package/{dist/components → components}/tds-block.d.ts +1 -1
- package/{dist/components → components}/tds-block.js +1 -0
- package/{dist/components → components}/tds-body-cell.d.ts +1 -1
- package/{dist/components → components}/tds-body-cell.js +1 -0
- package/{dist/components → components}/tds-breadcrumb.d.ts +1 -1
- package/{dist/components → components}/tds-breadcrumb.js +1 -0
- package/{dist/components → components}/tds-breadcrumbs.d.ts +1 -1
- package/{dist/components → components}/tds-breadcrumbs.js +1 -0
- package/{dist/components → components}/tds-button.d.ts +1 -1
- package/{dist/components → components}/tds-button.js +1 -0
- package/{dist/components → components}/tds-card.d.ts +1 -1
- package/{dist/components → components}/tds-card.js +1 -0
- package/{dist/components → components}/tds-checkbox.d.ts +1 -1
- package/{dist/components → components}/tds-chip.d.ts +1 -1
- package/{dist/components → components}/tds-chip.js +1 -0
- package/{dist/components → components}/tds-core-header-item.d.ts +1 -1
- package/{dist/components → components}/tds-datetime.d.ts +1 -1
- package/{dist/components → components}/tds-datetime.js +9 -8
- package/{dist/components → components}/tds-divider.d.ts +1 -1
- package/{dist/components → components}/tds-dropdown-option.d.ts +1 -1
- package/{dist/components → components}/tds-dropdown-option.js +6 -5
- package/{dist/components → components}/tds-dropdown.d.ts +1 -1
- package/{dist/components → components}/tds-dropdown.js +18 -17
- package/{dist/components → components}/tds-folder-tab.d.ts +1 -1
- package/{dist/components → components}/tds-folder-tab.js +2 -1
- package/{dist/components → components}/tds-folder-tabs.d.ts +1 -1
- package/{dist/components → components}/tds-folder-tabs.js +1 -0
- package/{dist/components → components}/tds-footer-group.d.ts +1 -1
- package/{dist/components → components}/tds-footer-group.js +3 -2
- package/{dist/components → components}/tds-footer-item.d.ts +1 -1
- package/{dist/components → components}/tds-footer-item.js +1 -0
- package/{dist/components → components}/tds-footer.d.ts +1 -1
- package/{dist/components → components}/tds-footer.js +1 -0
- package/{dist/components → components}/tds-header-brand-symbol.d.ts +1 -1
- package/{dist/components → components}/tds-header-brand-symbol.js +1 -0
- package/{dist/components → components}/tds-header-cell.d.ts +1 -1
- package/{dist/components → components}/tds-header-cell.js +1 -0
- package/{dist/components → components}/tds-header-dropdown-list-item.d.ts +1 -1
- package/{dist/components → components}/tds-header-dropdown-list-user.d.ts +1 -1
- package/{dist/components → components}/tds-header-dropdown-list-user.js +1 -0
- package/{dist/components → components}/tds-header-dropdown-list.d.ts +1 -1
- package/{dist/components → components}/tds-header-dropdown.d.ts +1 -1
- package/{dist/components → components}/tds-header-dropdown.js +1 -0
- package/{dist/components → components}/tds-header-hamburger.d.ts +1 -1
- package/{dist/components → components}/tds-header-hamburger.js +1 -0
- package/{dist/components → components}/tds-header-item.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-button.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-grid-item.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-grid-item.js +1 -0
- package/{dist/components → components}/tds-header-launcher-grid-title.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-grid-title.js +1 -0
- package/{dist/components → components}/tds-header-launcher-grid.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-grid.js +1 -0
- package/{dist/components → components}/tds-header-launcher-list-item.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-list-item.js +1 -0
- package/{dist/components → components}/tds-header-launcher-list-title.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-list-title.js +1 -0
- package/{dist/components → components}/tds-header-launcher-list.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher-list.js +1 -0
- package/{dist/components → components}/tds-header-launcher.d.ts +1 -1
- package/{dist/components → components}/tds-header-launcher.js +1 -0
- package/{dist/components → components}/tds-header-title.d.ts +1 -1
- package/{dist/components → components}/tds-header-title.js +1 -0
- package/{dist/components → components}/tds-header.d.ts +1 -1
- package/{dist/components → components}/tds-header.js +1 -0
- package/{dist/components → components}/tds-icon.d.ts +1 -1
- package/{dist/components → components}/tds-inline-tab.d.ts +1 -1
- package/{dist/components → components}/tds-inline-tab.js +2 -1
- package/{dist/components → components}/tds-inline-tabs.d.ts +1 -1
- package/{dist/components → components}/tds-inline-tabs.js +1 -0
- package/{dist/components → components}/tds-link.d.ts +1 -1
- package/{dist/components → components}/tds-link.js +4 -3
- package/{dist/components → components}/tds-message.d.ts +1 -1
- package/{dist/components → components}/tds-message.js +4 -3
- package/{dist/components → components}/tds-modal.d.ts +1 -1
- package/{dist/components → components}/tds-modal.js +1 -0
- package/{dist/components → components}/tds-navigation-tab.d.ts +1 -1
- package/{dist/components → components}/tds-navigation-tab.js +2 -1
- package/{dist/components → components}/tds-navigation-tabs.d.ts +1 -1
- package/{dist/components → components}/tds-navigation-tabs.js +1 -0
- package/{dist/components → components}/tds-popover-canvas.d.ts +1 -1
- package/{dist/components → components}/tds-popover-core.d.ts +1 -1
- package/{dist/components → components}/tds-popover-menu-item.d.ts +1 -1
- package/{dist/components → components}/tds-popover-menu-item.js +1 -0
- package/{dist/components → components}/tds-popover-menu.d.ts +1 -1
- package/{dist/components → components}/tds-popover-menu.js +1 -0
- package/{dist/components → components}/tds-radio-button.d.ts +1 -1
- package/{dist/components → components}/tds-radio-button.js +1 -0
- package/{dist/components → components}/tds-side-menu-close-button.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-close-button.js +1 -0
- package/{dist/components → components}/tds-side-menu-collapse-button.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-collapse-button.js +1 -0
- package/{dist/components → components}/tds-side-menu-dropdown-list-item.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-dropdown-list-item.js +1 -0
- package/{dist/components → components}/tds-side-menu-dropdown-list.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-dropdown-list.js +1 -0
- package/{dist/components → components}/tds-side-menu-dropdown.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-dropdown.js +1 -0
- package/{dist/components → components}/tds-side-menu-item.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-overlay.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-overlay.js +1 -0
- package/{dist/components → components}/tds-side-menu-user-image.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-user-label.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-user.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu-user.js +1 -0
- package/{dist/components → components}/tds-side-menu.d.ts +1 -1
- package/{dist/components → components}/tds-side-menu.js +1 -0
- package/{dist/components → components}/tds-slider.d.ts +1 -1
- package/{dist/components → components}/tds-slider.js +1 -0
- package/{dist/components → components}/tds-spinner.d.ts +1 -1
- package/{dist/components → components}/tds-spinner.js +1 -0
- package/{dist/components → components}/tds-step.d.ts +1 -1
- package/{dist/components → components}/tds-step.js +1 -0
- package/{dist/components → components}/tds-stepper.d.ts +1 -1
- package/{dist/components → components}/tds-stepper.js +1 -0
- package/{dist/components → components}/tds-table-body-row-expandable.d.ts +1 -1
- package/{dist/components → components}/tds-table-body-row-expandable.js +1 -0
- package/{dist/components → components}/tds-table-body-row.d.ts +1 -1
- package/{dist/components → components}/tds-table-body-row.js +1 -0
- package/{dist/components → components}/tds-table-body.d.ts +1 -1
- package/{dist/components → components}/tds-table-body.js +1 -0
- package/{dist/components → components}/tds-table-footer.d.ts +1 -1
- package/{dist/components → components}/tds-table-footer.js +2 -1
- package/{dist/components → components}/tds-table-header.d.ts +1 -1
- package/{dist/components → components}/tds-table-header.js +1 -0
- package/{dist/components → components}/tds-table-toolbar.d.ts +1 -1
- package/{dist/components → components}/tds-table-toolbar.js +1 -0
- package/{dist/components → components}/tds-table.d.ts +1 -1
- package/{dist/components → components}/tds-table.js +1 -0
- package/{dist/components → components}/tds-text-field.d.ts +1 -1
- package/{dist/components → components}/tds-text-field.js +12 -11
- package/{dist/components → components}/tds-textarea.d.ts +1 -1
- package/{dist/components → components}/tds-textarea.js +11 -10
- package/{dist/components → components}/tds-toast.d.ts +1 -1
- package/{dist/components → components}/tds-toast.js +3 -2
- package/{dist/components → components}/tds-toggle.d.ts +1 -1
- package/{dist/components → components}/tds-toggle.js +1 -0
- package/{dist/components → components}/tds-tooltip.d.ts +1 -1
- package/{dist/components → components}/tds-tooltip.js +1 -0
- package/dist/cjs/tds-accordion-item.cjs.entry.js +5 -5
- package/dist/cjs/tds-banner.cjs.entry.js +0 -9
- package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/tds-datetime.cjs.entry.js +8 -8
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +5 -5
- package/dist/cjs/tds-dropdown.cjs.entry.js +17 -17
- package/dist/cjs/tds-folder-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer-group.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-link.cjs.entry.js +3 -3
- package/dist/cjs/tds-message.cjs.entry.js +3 -3
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/tds-text-field.cjs.entry.js +11 -11
- package/dist/cjs/tds-textarea.cjs.entry.js +10 -10
- package/dist/cjs/tds-toast.cjs.entry.js +2 -2
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -6
- package/dist/collection/components/accordion/accordion.stories.js +21 -21
- package/dist/collection/components/badge/badge.stories.js +30 -30
- package/dist/collection/components/banner/banner.js +2 -25
- package/dist/collection/components/banner/banner.stories.js +16 -19
- package/dist/collection/components/block/block.stories.js +9 -9
- package/dist/collection/components/breadcrumbs/breadcrumbs.stories.js +12 -12
- package/dist/collection/components/button/button.stories.js +26 -26
- package/dist/collection/components/card/card.js +2 -2
- package/dist/collection/components/card/card.stories.js +31 -31
- package/dist/collection/components/checkbox/checkbox.css +14 -0
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/checkbox/checkbox.stories.js +22 -22
- package/dist/collection/components/chip/chip.js +5 -5
- package/dist/collection/components/chip/chip.stories.js +93 -93
- package/dist/collection/components/datetime/datetime.js +8 -8
- package/dist/collection/components/datetime/datetime.stories.js +40 -40
- package/dist/collection/components/divider/divider.stories.js +4 -4
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.css +4 -4
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +5 -5
- package/dist/collection/components/dropdown/dropdown.js +18 -18
- package/dist/collection/components/dropdown/dropdown.stories.js +57 -57
- package/dist/collection/components/footer/footer-group/footer-group.js +2 -2
- package/dist/collection/components/footer/footer.stories.js +93 -93
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +1 -1
- package/dist/collection/components/header/header-item/header-item.js +1 -1
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +1 -1
- package/dist/collection/components/header/header.stories.js +31 -31
- package/dist/collection/components/icon/icon.stories.js +2 -2
- package/dist/collection/components/icon/iconsArray.js +115 -115
- package/dist/collection/components/link/link.js +3 -3
- package/dist/collection/components/link/link.stories.js +9 -9
- package/dist/collection/components/message/message.js +3 -3
- package/dist/collection/components/message/message.stories.js +18 -18
- package/dist/collection/components/modal/modal.js +1 -1
- package/dist/collection/components/modal/modal.stories.js +27 -27
- package/dist/collection/components/popover-canvas/popover-canvas.js +1 -1
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +33 -33
- 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/popover-menu/popover-menu.stories.js +60 -60
- package/dist/collection/components/radio-button/radio-button.js +2 -2
- package/dist/collection/components/radio-button/radio-button.stories.js +44 -44
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +1 -1
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +1 -1
- package/dist/collection/components/side-menu/side-menu.js +4 -4
- package/dist/collection/components/side-menu/side-menu.stories.js +143 -143
- package/dist/collection/components/slider/slider.js +1 -1
- package/dist/collection/components/slider/slider.stories.js +38 -38
- package/dist/collection/components/spinner/spinner.stories.js +5 -5
- package/dist/collection/components/stepper/stepper.js +2 -2
- package/dist/collection/components/stepper/stepper.stories.js +14 -14
- package/dist/collection/components/table/table/table.js +2 -2
- package/dist/collection/components/table/table-body-row/table-body-row.js +1 -1
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +1 -1
- package/dist/collection/components/table/table-component-basic.stories.js +51 -51
- package/dist/collection/components/table/table-component-batch-actions.stories.js +58 -58
- package/dist/collection/components/table/table-component-custom-width.stories.js +52 -52
- package/dist/collection/components/table/table-component-expandable-rows.stories.js +38 -38
- package/dist/collection/components/table/table-component-filtering.stories.js +71 -71
- package/dist/collection/components/table/table-component-multiselect.stories.js +73 -73
- package/dist/collection/components/table/table-component-pagination.stories.js +72 -72
- package/dist/collection/components/table/table-component-sorting.stories.js +74 -74
- package/dist/collection/components/table/table-footer/table-footer.css +2 -1
- package/dist/collection/components/table/table-footer/table-footer.js +1 -1
- package/dist/collection/components/table/table-header/table-header.js +1 -1
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +3 -3
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +1 -1
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +2 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +34 -34
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +1 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +2 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +34 -34
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +1 -1
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +2 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +36 -36
- package/dist/collection/components/text-field/text-field.js +12 -12
- package/dist/collection/components/text-field/text-field.stories.js +45 -45
- package/dist/collection/components/textarea/textarea.js +10 -10
- package/dist/collection/components/textarea/textarea.stories.js +40 -40
- package/dist/collection/components/toast/toast.js +3 -3
- package/dist/collection/components/toast/toast.stories.js +15 -15
- package/dist/collection/components/toggle/toggle.js +1 -1
- package/dist/collection/components/toggle/toggle.stories.js +17 -17
- package/dist/collection/components/tooltip/tooltip.stories.js +33 -33
- package/dist/collection/stories/Installation/installation.stories.js +205 -205
- package/dist/collection/stories/announcements/announce-tegel.stories.js +248 -248
- package/dist/collection/stories/announcements/prefix-change.stories.js +79 -79
- package/dist/collection/stories/foundations/color/color-brand.stories.js +24 -24
- package/dist/collection/stories/foundations/color/color-scales.stories.js +18 -18
- package/dist/collection/stories/foundations/color/color-semantic.stories.js +26 -26
- package/dist/collection/stories/foundations/grid/grid.stories.js +334 -334
- package/dist/collection/stories/foundations/spacing/spacing-element.stories.js +90 -90
- package/dist/collection/stories/foundations/spacing/spacing-layout.stories.js +84 -84
- package/dist/collection/stories/foundations/typography/typography-body.stories.js +7 -7
- package/dist/collection/stories/foundations/typography/typography-detail.stories.js +8 -8
- package/dist/collection/stories/foundations/typography/typography-headline.stories.js +17 -17
- package/dist/collection/stories/foundations/typography/typography-paragraph.stories.js +3 -3
- package/dist/collection/stories/patterns/navigation/navigation-basic.stories.js +53 -53
- package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +227 -227
- package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +202 -202
- package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +98 -98
- package/dist/collection/stories/tegel.stories.js +270 -279
- package/dist/collection/stories/utility/color/background-color.stories.js +13 -13
- package/dist/collection/stories/utility/color/text-color.stories.js +11 -11
- package/dist/esm/polyfills/core-js.js +0 -0
- package/dist/esm/polyfills/dom.js +0 -0
- package/dist/esm/polyfills/es5-html-element.js +0 -0
- package/dist/esm/polyfills/index.js +0 -0
- package/dist/esm/polyfills/system.js +0 -0
- package/dist/esm/tds-accordion-item.entry.js +5 -5
- package/dist/esm/tds-banner.entry.js +0 -9
- package/dist/esm/tds-checkbox.entry.js +1 -1
- package/dist/esm/tds-datetime.entry.js +8 -8
- package/dist/esm/tds-dropdown-option.entry.js +5 -5
- package/dist/esm/tds-dropdown.entry.js +17 -17
- package/dist/esm/tds-folder-tab.entry.js +1 -1
- package/dist/esm/tds-footer-group.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-link.entry.js +3 -3
- package/dist/esm/tds-message.entry.js +3 -3
- package/dist/esm/tds-navigation-tab.entry.js +1 -1
- package/dist/esm/tds-table-footer.entry.js +1 -1
- package/dist/esm/tds-text-field.entry.js +11 -11
- package/dist/esm/tds-textarea.entry.js +10 -10
- package/dist/esm/tds-toast.entry.js +2 -2
- package/dist/tegel/p-2efaac74.entry.js +1 -0
- package/dist/tegel/{p-9b560c6d.entry.js → p-67fa6245.entry.js} +1 -1
- package/dist/tegel/p-e9ae12d7.entry.js +1 -0
- package/dist/tegel/{p-52edb8b7.entry.js → p-e9b8d1d5.entry.js} +1 -1
- package/dist/tegel/tegel.css +2 -4
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/banner/banner.d.ts +0 -5
- package/dist/types/components/text-field/text-field.d.ts +1 -1
- package/dist/types/components.d.ts +58 -64
- package/dist/types/global.d.ts +2 -2
- package/package.json +81 -80
- package/dist/components/checkbox.js +0 -74
- package/dist/tegel/p-cf75e7c1.entry.js +0 -1
- package/dist/tegel/p-faaa50c2.entry.js +0 -1
- /package/{dist/components → components}/index.d.ts +0 -0
- /package/{dist/components → components}/index.js +0 -0
- /package/{dist/components → components}/tds-checkbox.js +0 -0
- /package/{dist/components → components}/tds-core-header-item.js +0 -0
- /package/{dist/components → components}/tds-divider.js +0 -0
- /package/{dist/components → components}/tds-header-dropdown-list-item.js +0 -0
- /package/{dist/components → components}/tds-header-dropdown-list.js +0 -0
- /package/{dist/components → components}/tds-header-item.js +0 -0
- /package/{dist/components → components}/tds-header-launcher-button.js +0 -0
- /package/{dist/components → components}/tds-icon.js +0 -0
- /package/{dist/components → components}/tds-popover-canvas.js +0 -0
- /package/{dist/components → components}/tds-popover-core.js +0 -0
- /package/{dist/components → components}/tds-side-menu-item.js +0 -0
- /package/{dist/components → components}/tds-side-menu-user-image.js +0 -0
- /package/{dist/components → components}/tds-side-menu-user-label.js +0 -0
- /package/{dist/components → components}/utils.js +0 -0
|
@@ -117,8 +117,8 @@ export default {
|
|
|
117
117
|
modeVariant: 'Inherit from parent',
|
|
118
118
|
compactDesign: false,
|
|
119
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>
|
|
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
122
|
</tds-button><tds-button type="primary" size="sm" text="Download"></tds-button></div>`),
|
|
123
123
|
verticalDivider: false,
|
|
124
124
|
noMinWidth: false,
|
|
@@ -128,61 +128,61 @@ export default {
|
|
|
128
128
|
column4Width: '',
|
|
129
129
|
},
|
|
130
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>
|
|
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
187
|
`);
|
|
188
188
|
export const BatchAction = BatchActionTemplate.bind({});
|
|
@@ -118,57 +118,57 @@ export default {
|
|
|
118
118
|
column4Width: '110px',
|
|
119
119
|
},
|
|
120
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>
|
|
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
173
|
</tds-table>`);
|
|
174
174
|
export const CustomWidth = BasicTemplate.bind({});
|
|
@@ -118,43 +118,43 @@ export default {
|
|
|
118
118
|
column4Width: '',
|
|
119
119
|
},
|
|
120
120
|
};
|
|
121
|
-
const ExpandableRowTemplate = ({ modeVariant, compactDesign, responsiveDesign, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
|
|
122
|
-
<tds-table
|
|
123
|
-
expandable-rows
|
|
124
|
-
vertical-dividers="${verticalDivider}"
|
|
125
|
-
compact-design="${compactDesign}"
|
|
126
|
-
responsive="${responsiveDesign}"
|
|
127
|
-
${noMinWidth ? 'no-min-width' : ''}
|
|
128
|
-
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
|
|
129
|
-
>
|
|
130
|
-
<tds-table-header>
|
|
131
|
-
<tds-header-cell cell-key='truck' cell-value='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
|
|
132
|
-
<tds-header-cell cell-key='driver' cell-value='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
|
|
133
|
-
<tds-header-cell cell-key='country' cell-value='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
|
|
134
|
-
<tds-header-cell cell-key='mileage' cell-value='Mileage' text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
|
|
135
|
-
</tds-table-header>
|
|
136
|
-
<tds-table-body>
|
|
137
|
-
<tds-table-body-row-expandable>
|
|
138
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
139
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
140
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
141
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
142
|
-
<div slot="expand-row">Hello world 1</div>
|
|
143
|
-
</tds-table-body-row-expandable>
|
|
144
|
-
<tds-table-body-row-expandable>
|
|
145
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
146
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
147
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
148
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
149
|
-
<div slot="expand-row">Hello to you too</div>
|
|
150
|
-
</tds-table-body-row-expandable>
|
|
151
|
-
<tds-table-body-row-expandable>
|
|
152
|
-
<tds-body-cell cell-value="Test value 9" cell-key="truck"></tds-body-cell>
|
|
153
|
-
<tds-body-cell cell-value="Test value 10" cell-key="driver"></tds-body-cell>
|
|
154
|
-
<tds-body-cell cell-value="Test value 11" cell-key="country"></tds-body-cell>
|
|
155
|
-
<tds-body-cell cell-value="Test value 12" cell-key="mileage"></tds-body-cell>
|
|
156
|
-
<div slot="expand-row"><tds-button type="primary" text="Call to action"></tds-button></div>
|
|
157
|
-
</tds-table-body-row-expandable>
|
|
158
|
-
</tds-table-body>
|
|
121
|
+
const ExpandableRowTemplate = ({ modeVariant, compactDesign, responsiveDesign, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
|
|
122
|
+
<tds-table
|
|
123
|
+
expandable-rows
|
|
124
|
+
vertical-dividers="${verticalDivider}"
|
|
125
|
+
compact-design="${compactDesign}"
|
|
126
|
+
responsive="${responsiveDesign}"
|
|
127
|
+
${noMinWidth ? 'no-min-width' : ''}
|
|
128
|
+
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
|
|
129
|
+
>
|
|
130
|
+
<tds-table-header>
|
|
131
|
+
<tds-header-cell cell-key='truck' cell-value='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
|
|
132
|
+
<tds-header-cell cell-key='driver' cell-value='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
|
|
133
|
+
<tds-header-cell cell-key='country' cell-value='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
|
|
134
|
+
<tds-header-cell cell-key='mileage' cell-value='Mileage' text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
|
|
135
|
+
</tds-table-header>
|
|
136
|
+
<tds-table-body>
|
|
137
|
+
<tds-table-body-row-expandable>
|
|
138
|
+
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
139
|
+
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
140
|
+
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
141
|
+
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
142
|
+
<div slot="expand-row">Hello world 1</div>
|
|
143
|
+
</tds-table-body-row-expandable>
|
|
144
|
+
<tds-table-body-row-expandable>
|
|
145
|
+
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
146
|
+
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
147
|
+
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
148
|
+
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
149
|
+
<div slot="expand-row">Hello to you too</div>
|
|
150
|
+
</tds-table-body-row-expandable>
|
|
151
|
+
<tds-table-body-row-expandable>
|
|
152
|
+
<tds-body-cell cell-value="Test value 9" cell-key="truck"></tds-body-cell>
|
|
153
|
+
<tds-body-cell cell-value="Test value 10" cell-key="driver"></tds-body-cell>
|
|
154
|
+
<tds-body-cell cell-value="Test value 11" cell-key="country"></tds-body-cell>
|
|
155
|
+
<tds-body-cell cell-value="Test value 12" cell-key="mileage"></tds-body-cell>
|
|
156
|
+
<div slot="expand-row"><tds-button type="primary" text="Call to action"></tds-button></div>
|
|
157
|
+
</tds-table-body-row-expandable>
|
|
158
|
+
</tds-table-body>
|
|
159
159
|
</tds-table>`);
|
|
160
160
|
export const ExpandableRows = ExpandableRowTemplate.bind({});
|
|
@@ -126,76 +126,76 @@ export default {
|
|
|
126
126
|
column4Width: '',
|
|
127
127
|
},
|
|
128
128
|
};
|
|
129
|
-
const FilteringTemplate = ({ modeVariant, compactDesign, responsiveDesign, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
|
|
130
|
-
<tds-table
|
|
131
|
-
vertical-dividers="${verticalDivider}"
|
|
132
|
-
compact-design="${compactDesign}"
|
|
133
|
-
${responsiveDesign ? 'responsive' : ''}
|
|
134
|
-
${noMinWidth ? 'no-min-width' : ''}
|
|
135
|
-
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
|
|
136
|
-
>
|
|
137
|
-
<tds-table-toolbar table-title="Filter" filter></tds-table-toolbar>
|
|
138
|
-
<tds-table-header>
|
|
139
|
-
<tds-header-cell cell-key='truck' cell-value='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
|
|
140
|
-
<tds-header-cell cell-key='driver' cell-value='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
|
|
141
|
-
<tds-header-cell cell-key='country' cell-value='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
|
|
142
|
-
<tds-header-cell cell-key='mileage' cell-value='Mileage' text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
|
|
143
|
-
</tds-table-header>
|
|
144
|
-
<tds-table-body-row>
|
|
145
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
146
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
147
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
148
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
149
|
-
</tds-table-body-row>
|
|
150
|
-
<tds-table-body-row>
|
|
151
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
152
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
153
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
154
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
155
|
-
</tds-table-body-row>
|
|
156
|
-
<tds-table-body-row>
|
|
157
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
158
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
159
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
160
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
161
|
-
</tds-table-body-row>
|
|
162
|
-
<tds-table-body-row>
|
|
163
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
164
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
165
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
166
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
167
|
-
</tds-table-body-row>
|
|
168
|
-
<tds-table-body-row>
|
|
169
|
-
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
170
|
-
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
171
|
-
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
172
|
-
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
173
|
-
</tds-table-body-row>
|
|
174
|
-
<tds-table-body-row>
|
|
175
|
-
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
176
|
-
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
177
|
-
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
178
|
-
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
179
|
-
</tds-table-body-row>
|
|
180
|
-
<tds-table-footer>
|
|
181
|
-
</tds-table-footer>
|
|
182
|
-
</tds-table>
|
|
183
|
-
<!-- Note: Code below is just for demo purposes -->
|
|
184
|
-
<div class="tds-u-mt1" style="width: 500px; background-color: lightblue; padding: 16px;">
|
|
185
|
-
<p class="tds-u-mt0">Note: This box works only in "Canvas" tab.</p>
|
|
186
|
-
<h5 class="tds-u-mt0 tds-u-mb0">Event test box</h5>
|
|
187
|
-
<h6 class="tds-u-mt1 tds-u-mb0">Event name:</h6>
|
|
188
|
-
<textarea id="event-name-textarea" rows="1" cols="50" readonly></textarea>
|
|
189
|
-
<h6 class="tds-u-mt0 tds-u-mb0">Events value (aka detail)</h6>
|
|
190
|
-
<br>
|
|
191
|
-
<textarea id="event-value-textarea" rows="4" cols="50" readonly></textarea>
|
|
192
|
-
</div>
|
|
193
|
-
|
|
194
|
-
<script>
|
|
195
|
-
|
|
196
|
-
window.addEventListener('tdsFilter', e => {
|
|
197
|
-
document.getElementById('event-name-textarea').value = e.type;
|
|
198
|
-
document.getElementById('event-value-textarea').value = JSON.stringify(e.detail, null, 2);
|
|
199
|
-
});
|
|
129
|
+
const FilteringTemplate = ({ modeVariant, compactDesign, responsiveDesign, verticalDivider, noMinWidth, column1Width, column2Width, column3Width, column4Width, }) => formatHtmlPreview(`
|
|
130
|
+
<tds-table
|
|
131
|
+
vertical-dividers="${verticalDivider}"
|
|
132
|
+
compact-design="${compactDesign}"
|
|
133
|
+
${responsiveDesign ? 'responsive' : ''}
|
|
134
|
+
${noMinWidth ? 'no-min-width' : ''}
|
|
135
|
+
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}
|
|
136
|
+
>
|
|
137
|
+
<tds-table-toolbar table-title="Filter" filter></tds-table-toolbar>
|
|
138
|
+
<tds-table-header>
|
|
139
|
+
<tds-header-cell cell-key='truck' cell-value='Truck type' ${column1Width ? `custom-width="${column1Width}"` : ''}></tds-header-cell>
|
|
140
|
+
<tds-header-cell cell-key='driver' cell-value='Driver name' ${column2Width ? `custom-width="${column2Width}"` : ''}></tds-header-cell>
|
|
141
|
+
<tds-header-cell cell-key='country' cell-value='Country' ${column3Width ? `custom-width="${column3Width}"` : ''}></tds-header-cell>
|
|
142
|
+
<tds-header-cell cell-key='mileage' cell-value='Mileage' text-align='right' ${column4Width ? `custom-width="${column4Width}"` : ''}></tds-header-cell>
|
|
143
|
+
</tds-table-header>
|
|
144
|
+
<tds-table-body-row>
|
|
145
|
+
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
146
|
+
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
147
|
+
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
148
|
+
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
149
|
+
</tds-table-body-row>
|
|
150
|
+
<tds-table-body-row>
|
|
151
|
+
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
152
|
+
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
153
|
+
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
154
|
+
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
155
|
+
</tds-table-body-row>
|
|
156
|
+
<tds-table-body-row>
|
|
157
|
+
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
158
|
+
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
159
|
+
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
160
|
+
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
161
|
+
</tds-table-body-row>
|
|
162
|
+
<tds-table-body-row>
|
|
163
|
+
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
164
|
+
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
165
|
+
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
166
|
+
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
167
|
+
</tds-table-body-row>
|
|
168
|
+
<tds-table-body-row>
|
|
169
|
+
<tds-body-cell cell-value="Test value 1" cell-key="truck"></tds-body-cell>
|
|
170
|
+
<tds-body-cell cell-value="Test value 2" cell-key="driver"></tds-body-cell>
|
|
171
|
+
<tds-body-cell cell-value="Test value 3" cell-key="country"></tds-body-cell>
|
|
172
|
+
<tds-body-cell cell-value="Test value 4" cell-key="mileage"></tds-body-cell>
|
|
173
|
+
</tds-table-body-row>
|
|
174
|
+
<tds-table-body-row>
|
|
175
|
+
<tds-body-cell cell-value="Test value 5" cell-key="truck"></tds-body-cell>
|
|
176
|
+
<tds-body-cell cell-value="Test value 6" cell-key="driver"></tds-body-cell>
|
|
177
|
+
<tds-body-cell cell-value="Test value 7" cell-key="country"></tds-body-cell>
|
|
178
|
+
<tds-body-cell cell-value="Test value 8" cell-key="mileage"></tds-body-cell>
|
|
179
|
+
</tds-table-body-row>
|
|
180
|
+
<tds-table-footer>
|
|
181
|
+
</tds-table-footer>
|
|
182
|
+
</tds-table>
|
|
183
|
+
<!-- Note: Code below is just for demo purposes -->
|
|
184
|
+
<div class="tds-u-mt1" style="width: 500px; background-color: lightblue; padding: 16px;">
|
|
185
|
+
<p class="tds-u-mt0">Note: This box works only in "Canvas" tab.</p>
|
|
186
|
+
<h5 class="tds-u-mt0 tds-u-mb0">Event test box</h5>
|
|
187
|
+
<h6 class="tds-u-mt1 tds-u-mb0">Event name:</h6>
|
|
188
|
+
<textarea id="event-name-textarea" rows="1" cols="50" readonly></textarea>
|
|
189
|
+
<h6 class="tds-u-mt0 tds-u-mb0">Events value (aka detail)</h6>
|
|
190
|
+
<br>
|
|
191
|
+
<textarea id="event-value-textarea" rows="4" cols="50" readonly></textarea>
|
|
192
|
+
</div>
|
|
193
|
+
|
|
194
|
+
<script>
|
|
195
|
+
|
|
196
|
+
window.addEventListener('tdsFilter', e => {
|
|
197
|
+
document.getElementById('event-name-textarea').value = e.type;
|
|
198
|
+
document.getElementById('event-value-textarea').value = JSON.stringify(e.detail, null, 2);
|
|
199
|
+
});
|
|
200
200
|
</script>`);
|
|
201
201
|
export const Filtering = FilteringTemplate.bind({});
|