@scania/tegel 0.0.10 → 0.0.12
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-ee36ffa1.js +4 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tds-banner.cjs.entry.js +6 -6
- package/dist/cjs/tds-body-cell_2.cjs.entry.js +4 -8
- package/dist/cjs/tds-button.cjs.entry.js +22 -16
- package/dist/cjs/tds-card.cjs.entry.js +3 -3
- package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/tds-chip.cjs.entry.js +2 -2
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
- package/dist/cjs/tds-datetime.cjs.entry.js +3 -1
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown.cjs.entry.js +36 -14
- package/dist/cjs/tds-footer.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-cell.cjs.entry.js +5 -5
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +6 -6
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-launcher.cjs.entry.js +2 -2
- package/dist/cjs/tds-header.cjs.entry.js +1 -1
- package/dist/cjs/tds-link.cjs.entry.js +1 -1
- package/dist/cjs/tds-message.cjs.entry.js +3 -3
- package/dist/cjs/tds-modal.cjs.entry.js +2 -2
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +10 -80
- package/dist/{components/popper.js → cjs/tds-popover-core.cjs.entry.js} +160 -1
- package/dist/cjs/tds-popover-menu.cjs.entry.js +12 -62
- package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu.cjs.entry.js +7 -3
- package/dist/cjs/tds-slider.cjs.entry.js +6 -2
- package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +1 -3
- package/dist/cjs/tds-table-body.cjs.entry.js +6 -9
- package/dist/cjs/tds-table-header.cjs.entry.js +5 -5
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/tds-table.cjs.entry.js +14 -10
- package/dist/cjs/tds-text-field.cjs.entry.js +2 -2
- package/dist/cjs/tds-toast.cjs.entry.js +5 -5
- package/dist/cjs/tds-toggle.cjs.entry.js +1 -1
- package/dist/cjs/tds-tooltip.cjs.entry.js +41 -82
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/cjs/{utils-41de5fb2.js → utils-a908536d.js} +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +1 -0
- package/dist/collection/components/accordion/accordion.js +3 -0
- package/dist/collection/components/banner/banner.css +1 -1
- package/dist/collection/components/banner/banner.js +11 -11
- package/dist/collection/components/banner/banner.stories.js +8 -8
- package/dist/collection/components/block/block.js +3 -0
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +3 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +3 -0
- package/dist/collection/components/button/button.css +35 -16
- package/dist/collection/components/button/button.js +43 -18
- package/dist/collection/components/button/button.stories.js +26 -8
- package/dist/collection/components/card/card.css +3 -0
- package/dist/collection/components/card/card.js +1 -1
- package/dist/collection/components/card/card.stories.js +2 -1
- package/dist/collection/components/chip/chip.js +2 -2
- package/dist/collection/components/datetime/datetime.js +38 -2
- package/dist/collection/components/datetime/datetime.stories.js +27 -3
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +4 -1
- package/dist/collection/components/dropdown/dropdown.js +45 -14
- package/dist/collection/components/footer/footer-group/footer-group.js +3 -0
- package/dist/collection/components/footer/footer-item/footer-item.js +3 -0
- package/dist/collection/components/footer/footer.css +1 -0
- package/dist/collection/components/header/core-header-item/core-header-item.js +3 -0
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +3 -0
- package/dist/collection/components/header/header-dropdown/header-dropdown.css +1 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +1 -0
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.css +2 -2
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +10 -7
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.css +3 -3
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +7 -4
- package/dist/collection/components/header/header-item/header-item.js +3 -0
- package/dist/collection/components/header/header-launcher/header-launcher.css +1 -1
- package/dist/collection/components/header/header-launcher/header-launcher.js +3 -0
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +3 -0
- package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +3 -0
- package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +3 -0
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +4 -1
- package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +4 -1
- package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +3 -0
- package/dist/collection/components/header/header-title/header-title.js +3 -0
- package/dist/collection/components/header/header.js +1 -0
- package/dist/collection/components/header/header.stories.js +2 -0
- package/dist/collection/components/link/link.js +4 -1
- package/dist/collection/components/link/link.stories.js +5 -3
- package/dist/collection/components/message/message.js +7 -7
- package/dist/collection/components/message/message.stories.js +6 -6
- package/dist/collection/components/modal/modal.css +2 -2
- package/dist/collection/components/popover-canvas/popover-canvas.css +4 -8
- package/dist/collection/components/popover-canvas/popover-canvas.js +13 -102
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +8 -8
- package/dist/collection/components/popover-core/popover-core.js +390 -0
- package/dist/collection/components/popover-menu/popover-menu.css +3 -9
- package/dist/collection/components/popover-menu/popover-menu.js +17 -80
- package/dist/collection/components/popover-menu/popover-menu.stories.js +3 -3
- 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-dropdown-list/side-menu-dropdown-list.js +1 -1
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.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-overlay/side-menu-overlay.css +8 -1
- package/dist/collection/components/side-menu/side-menu.css +12 -11
- package/dist/collection/components/side-menu/side-menu.js +9 -5
- package/dist/collection/components/slider/slider.js +5 -1
- package/dist/collection/components/stepper/stepper.js +3 -0
- package/dist/collection/components/table/table/table.js +22 -15
- package/dist/collection/components/table/table-body/table-body.js +10 -13
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +3 -0
- package/dist/collection/components/table/table-body-row/table-body-row.css +2 -2
- package/dist/collection/components/table/table-body-row/table-body-row.js +7 -9
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.css +4 -0
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +1 -2
- package/dist/collection/components/table/table-component-basic.stories.js +1 -1
- package/dist/collection/components/table/table-component-batch-actions.stories.js +2 -2
- package/dist/collection/components/table/table-component-bodydata.stories.js +1 -1
- package/dist/collection/components/table/table-component-custom-width.stories.js +1 -1
- package/dist/collection/components/table/table-component-event-listeners.stories.js +1 -1
- package/dist/collection/components/table/table-component-expandable-rows.stories.js +2 -2
- package/dist/collection/components/table/table-component-filtering.stories.js +6 -4
- package/dist/collection/components/table/table-component-multiselect.stories.js +5 -5
- package/dist/collection/components/table/table-component-pagination.stories.js +1 -1
- package/dist/collection/components/table/table-component-sorting.stories.js +1 -1
- package/dist/collection/components/table/table-header/table-header.js +10 -7
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +7 -7
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +4 -4
- package/dist/collection/components/table/table.filtering.spec.js +1 -1
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +3 -0
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +3 -0
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +3 -0
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +3 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +3 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +3 -0
- package/dist/collection/components/text-field/text-field.css +8 -6
- package/dist/collection/components/toast/toast.css +1 -1
- package/dist/collection/components/toast/toast.js +5 -5
- package/dist/collection/components/toast/toast.stories.js +6 -6
- package/dist/collection/components/tooltip/tooltip.css +1 -1
- package/dist/collection/components/tooltip/tooltip.js +45 -109
- package/dist/collection/components/tooltip/tooltip.stories.js +9 -1
- package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +1 -1
- package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +4 -3
- package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +1 -1
- package/dist/collection/stories/tegel.stories.js +1 -1
- package/dist/components/header-dropdown-list-item.js +3 -3
- package/dist/components/header-dropdown-list.js +7 -7
- package/dist/components/popover-canvas.js +20 -89
- package/dist/{esm/popper-15e448b4.js → components/popover-core.js} +184 -1
- package/dist/components/table-body-row.js +5 -10
- package/dist/components/tds-banner.js +6 -6
- package/dist/components/tds-button.js +23 -17
- package/dist/components/tds-card.js +2 -2
- package/dist/components/tds-chip.js +1 -1
- package/dist/components/tds-datetime.js +5 -1
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +35 -13
- package/dist/components/tds-footer.js +1 -1
- package/dist/components/tds-header-cell.js +7 -7
- package/dist/components/tds-header-dropdown.js +15 -9
- package/dist/components/tds-header-launcher-grid.js +1 -1
- package/dist/components/tds-header-launcher-list-item.js +1 -1
- package/dist/components/tds-header-launcher-list.js +1 -1
- package/dist/components/tds-header-launcher.js +17 -11
- package/dist/components/tds-link.js +1 -1
- package/dist/components/tds-message.js +4 -4
- package/dist/components/tds-modal.js +1 -1
- package/dist/components/tds-popover-core.d.ts +11 -0
- package/dist/components/tds-popover-core.js +6 -0
- package/dist/components/tds-popover-menu.js +22 -70
- package/dist/components/tds-side-menu-overlay.js +1 -1
- package/dist/components/tds-side-menu.js +10 -6
- package/dist/components/tds-slider.js +5 -1
- package/dist/components/tds-table-body-row-expandable.js +1 -3
- package/dist/components/tds-table-body.js +8 -11
- package/dist/components/tds-table-header.js +7 -7
- package/dist/components/tds-table-toolbar.js +3 -3
- package/dist/components/tds-table.js +16 -12
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-toast.js +5 -5
- package/dist/components/tds-tooltip.js +51 -90
- package/dist/components/utils.js +1 -1
- package/dist/esm/index-23ee700b.js +4 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-banner.entry.js +6 -6
- package/dist/esm/tds-body-cell_2.entry.js +4 -8
- package/dist/esm/tds-button.entry.js +22 -16
- package/dist/esm/tds-card.entry.js +3 -3
- package/dist/esm/tds-checkbox.entry.js +1 -1
- package/dist/esm/tds-chip.entry.js +2 -2
- package/dist/esm/tds-core-header-item_2.entry.js +1 -1
- package/dist/esm/tds-datetime.entry.js +3 -1
- package/dist/esm/tds-dropdown-option.entry.js +1 -1
- package/dist/esm/tds-dropdown.entry.js +36 -14
- package/dist/esm/tds-footer.entry.js +2 -2
- package/dist/esm/tds-header-cell.entry.js +5 -5
- package/dist/esm/tds-header-dropdown-list-item.entry.js +2 -2
- package/dist/esm/tds-header-dropdown-list.entry.js +6 -6
- package/dist/esm/tds-header-dropdown.entry.js +2 -2
- package/dist/esm/tds-header-hamburger.entry.js +1 -1
- package/dist/esm/tds-header-launcher-button.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list.entry.js +2 -2
- package/dist/esm/tds-header-launcher.entry.js +2 -2
- package/dist/esm/tds-header.entry.js +1 -1
- package/dist/esm/tds-link.entry.js +1 -1
- package/dist/esm/tds-message.entry.js +3 -3
- package/dist/esm/tds-modal.entry.js +2 -2
- package/dist/esm/tds-popover-canvas.entry.js +10 -80
- package/dist/{cjs/popper-d7adcfc6.js → esm/tds-popover-core.entry.js} +155 -2
- package/dist/esm/tds-popover-menu.entry.js +12 -62
- package/dist/esm/tds-radio-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-item.entry.js +1 -1
- package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
- package/dist/esm/tds-side-menu.entry.js +7 -3
- package/dist/esm/tds-slider.entry.js +6 -2
- package/dist/esm/tds-stepper.entry.js +1 -1
- package/dist/esm/tds-table-body-row-expandable.entry.js +1 -3
- package/dist/esm/tds-table-body.entry.js +6 -9
- package/dist/esm/tds-table-header.entry.js +5 -5
- package/dist/esm/tds-table-toolbar.entry.js +2 -2
- package/dist/esm/tds-table.entry.js +14 -10
- package/dist/esm/tds-text-field.entry.js +2 -2
- package/dist/esm/tds-toast.entry.js +5 -5
- package/dist/esm/tds-toggle.entry.js +1 -1
- package/dist/esm/tds-tooltip.entry.js +42 -83
- package/dist/esm/tegel.js +1 -1
- package/dist/esm/{utils-74fb1bed.js → utils-8544b156.js} +1 -1
- package/dist/tegel/{p-347414ad.entry.js → p-0ae649c3.entry.js} +1 -1
- package/dist/tegel/p-129ad2a4.entry.js +1 -0
- package/dist/tegel/{p-a4e3eb95.entry.js → p-13db5228.entry.js} +1 -1
- package/dist/tegel/{p-1acb8407.entry.js → p-1f43d4f0.entry.js} +1 -1
- package/dist/tegel/p-24488e72.entry.js +1 -0
- package/dist/tegel/{p-9f1e1cc0.entry.js → p-284d950d.entry.js} +1 -1
- package/dist/tegel/p-28a07d46.entry.js +1 -0
- package/dist/tegel/{p-e4dc07bb.entry.js → p-31848a92.entry.js} +1 -1
- package/dist/tegel/p-39e17b32.entry.js +1 -0
- package/dist/tegel/{p-aa443b06.entry.js → p-3d28689e.entry.js} +1 -1
- package/dist/tegel/{p-99837611.entry.js → p-400282e5.entry.js} +1 -1
- package/dist/tegel/{p-9b29bf68.entry.js → p-42990ec0.entry.js} +1 -1
- package/dist/tegel/p-5e0a3931.entry.js +1 -0
- package/dist/tegel/p-5e4b20ea.entry.js +1 -0
- package/dist/tegel/p-5ed7d376.entry.js +1 -0
- package/dist/tegel/{p-c5ab3a3b.entry.js → p-656add37.entry.js} +1 -1
- package/dist/tegel/{p-54e56257.entry.js → p-6654e59d.entry.js} +1 -1
- package/dist/tegel/p-6caac101.entry.js +1 -0
- package/dist/tegel/{p-9dc14c21.js → p-72fced16.js} +1 -1
- package/dist/tegel/p-76c000e3.entry.js +1 -0
- package/dist/tegel/p-7a03d28c.entry.js +1 -0
- package/dist/tegel/p-7c35af1b.entry.js +1 -0
- package/dist/tegel/p-7ccff0a5.entry.js +1 -0
- package/dist/tegel/p-81915088.entry.js +1 -0
- package/dist/tegel/{p-9fe0d654.entry.js → p-823399ef.entry.js} +1 -1
- package/dist/tegel/{p-8ba77ea3.entry.js → p-84d231a5.entry.js} +1 -1
- package/dist/tegel/{p-fc6da19c.entry.js → p-86028bac.entry.js} +1 -1
- package/dist/tegel/{p-b5424456.entry.js → p-88807dac.entry.js} +1 -1
- package/dist/tegel/p-88d7c4c1.entry.js +1 -0
- package/dist/tegel/p-8e82be94.entry.js +1 -0
- package/dist/tegel/p-9f8aac62.entry.js +1 -0
- package/dist/tegel/p-a8cc3901.entry.js +1 -0
- package/dist/tegel/{p-f9d04ff2.entry.js → p-aa7e2f79.entry.js} +1 -1
- package/dist/tegel/p-afde572b.entry.js +1 -0
- package/dist/tegel/p-b63b9baa.entry.js +1 -0
- package/dist/tegel/p-c0ac4d0a.entry.js +1 -0
- package/dist/tegel/p-c2566d65.entry.js +1 -0
- package/dist/tegel/p-d0f15f73.entry.js +1 -0
- package/dist/tegel/{p-10337d3f.entry.js → p-d2ca7f58.entry.js} +1 -1
- package/dist/tegel/p-d3c3633b.entry.js +1 -0
- package/dist/tegel/p-d4c25eb6.entry.js +1 -0
- package/dist/tegel/{p-e24835ba.entry.js → p-d60cb9e5.entry.js} +1 -1
- package/dist/tegel/p-d735c39f.entry.js +1 -0
- package/dist/tegel/{p-e3f8fc68.entry.js → p-df318a85.entry.js} +1 -1
- package/dist/tegel/p-e36ceefe.entry.js +1 -0
- package/dist/tegel/{p-c15bbe0b.entry.js → p-f682dd0b.entry.js} +1 -1
- package/dist/tegel/p-fe4ac74c.entry.js +1 -0
- package/dist/tegel/tegel.css +2 -2
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +1 -0
- package/dist/types/components/accordion/accordion.d.ts +3 -0
- package/dist/types/components/banner/banner.d.ts +3 -3
- package/dist/types/components/banner/banner.stories.d.ts +2 -2
- package/dist/types/components/block/block.d.ts +3 -0
- package/dist/types/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +3 -0
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +3 -0
- package/dist/types/components/button/button.d.ts +6 -3
- package/dist/types/components/button/button.stories.d.ts +16 -2
- package/dist/types/components/chip/chip.d.ts +1 -1
- package/dist/types/components/datetime/datetime.d.ts +5 -1
- package/dist/types/components/datetime/datetime.stories.d.ts +26 -0
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +4 -1
- package/dist/types/components/dropdown/dropdown.d.ts +5 -1
- package/dist/types/components/footer/footer-group/footer-group.d.ts +3 -0
- package/dist/types/components/footer/footer-item/footer-item.d.ts +3 -0
- package/dist/types/components/header/core-header-item/core-header-item.d.ts +3 -0
- package/dist/types/components/header/header-brand-symbol/header-brand-symbol.d.ts +3 -0
- package/dist/types/components/header/header-dropdown/header-dropdown.d.ts +1 -0
- package/dist/types/components/header/header-dropdown-list/header-dropdown-list.d.ts +5 -1
- package/dist/types/components/header/header-dropdown-list-item/header-dropdown-list-item.d.ts +5 -2
- package/dist/types/components/header/header-item/header-item.d.ts +3 -0
- package/dist/types/components/header/header-launcher/header-launcher.d.ts +3 -0
- package/dist/types/components/header/header-launcher-grid/header-launcher-grid.d.ts +3 -0
- package/dist/types/components/header/header-launcher-grid-item/header-launcher-grid-item.d.ts +3 -0
- package/dist/types/components/header/header-launcher-grid-title/header-launcher-grid-title.d.ts +3 -0
- package/dist/types/components/header/header-launcher-list/header-launcher-list.d.ts +3 -0
- package/dist/types/components/header/header-launcher-list-item/header-launcher-list-item.d.ts +3 -0
- package/dist/types/components/header/header-launcher-list-title/header-launcher-list-title.d.ts +3 -0
- package/dist/types/components/header/header-title/header-title.d.ts +3 -0
- package/dist/types/components/header/header.d.ts +1 -0
- package/dist/types/components/header/header.stories.d.ts +1 -0
- package/dist/types/components/link/link.d.ts +3 -0
- package/dist/types/components/message/message.d.ts +3 -3
- package/dist/types/components/message/message.stories.d.ts +2 -2
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +7 -13
- package/dist/types/components/popover-core/popover-core.d.ts +46 -0
- package/dist/types/components/popover-menu/popover-menu.d.ts +12 -10
- package/dist/types/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.d.ts +1 -1
- package/dist/types/components/side-menu/side-menu-dropdown/side-menu-dropdown.d.ts +1 -1
- package/dist/types/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.d.ts +1 -1
- package/dist/types/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.d.ts +1 -1
- package/dist/types/components/side-menu/side-menu-item/side-menu-item.d.ts +1 -1
- package/dist/types/components/side-menu/side-menu.d.ts +1 -1
- package/dist/types/components/stepper/stepper.d.ts +3 -0
- package/dist/types/components/table/table/table.d.ts +9 -6
- package/dist/types/components/table/table-body/table-body.d.ts +4 -4
- package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +3 -0
- package/dist/types/components/table/table-body-row/table-body-row.d.ts +4 -2
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +1 -0
- package/dist/types/components/table/table-component-multiselect.stories.d.ts +2 -2
- package/dist/types/components/table/table-header/table-header.d.ts +5 -2
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +2 -2
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +1 -1
- package/dist/types/components/tabs/folder-tabs/folder-tab/folder-tab.d.ts +3 -0
- package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +3 -0
- package/dist/types/components/tabs/inline-tabs/inline-tab/inline-tab.d.ts +3 -0
- package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +3 -0
- package/dist/types/components/tabs/navigation-tabs/navigation-tab/navigation-tab.d.ts +3 -0
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +3 -0
- package/dist/types/components/toast/toast.d.ts +1 -1
- package/dist/types/components/toast/toast.stories.d.ts +2 -2
- package/dist/types/components/tooltip/tooltip.d.ts +16 -8
- package/dist/types/components.d.ts +172 -51
- package/package.json +4 -3
- package/dist/tegel/p-06093e3e.entry.js +0 -1
- package/dist/tegel/p-0995ca77.entry.js +0 -1
- package/dist/tegel/p-19fb9ad5.entry.js +0 -1
- package/dist/tegel/p-1bac7d2e.entry.js +0 -1
- package/dist/tegel/p-22b2c81a.entry.js +0 -1
- package/dist/tegel/p-2707da38.entry.js +0 -1
- package/dist/tegel/p-34a06d2f.entry.js +0 -1
- package/dist/tegel/p-3c9865c3.entry.js +0 -1
- package/dist/tegel/p-40142a58.entry.js +0 -1
- package/dist/tegel/p-44a2664d.entry.js +0 -1
- package/dist/tegel/p-48136431.entry.js +0 -1
- package/dist/tegel/p-49a084db.entry.js +0 -1
- package/dist/tegel/p-4c809685.entry.js +0 -1
- package/dist/tegel/p-6200fc54.entry.js +0 -1
- package/dist/tegel/p-674009bd.entry.js +0 -1
- package/dist/tegel/p-6bee84a2.entry.js +0 -1
- package/dist/tegel/p-73a8f43e.entry.js +0 -1
- package/dist/tegel/p-7c0dcd00.js +0 -1
- package/dist/tegel/p-8c194dd8.entry.js +0 -1
- package/dist/tegel/p-95e170f3.entry.js +0 -1
- package/dist/tegel/p-a34bb501.entry.js +0 -1
- package/dist/tegel/p-afe13096.entry.js +0 -1
- package/dist/tegel/p-c5588508.entry.js +0 -1
- package/dist/tegel/p-d5bd9b2e.entry.js +0 -1
- package/dist/tegel/p-e95059e9.entry.js +0 -1
- package/dist/tegel/p-f36ec03b.entry.js +0 -1
- package/dist/tegel/p-f795bc11.entry.js +0 -1
|
@@ -1,77 +1,30 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
|
-
import {
|
|
2
|
+
import { inheritAttributes } from '../../utils/utils';
|
|
3
|
+
/**
|
|
4
|
+
* @slot <default> - <b>Unnamed slot.</b> For the list of menu items.
|
|
5
|
+
*/
|
|
3
6
|
export class TdsPopoverMenu {
|
|
4
7
|
constructor() {
|
|
8
|
+
this.inheritedAttributes = [];
|
|
5
9
|
this.selector = '';
|
|
6
10
|
this.referenceEl = undefined;
|
|
7
|
-
this.show =
|
|
11
|
+
this.show = null;
|
|
8
12
|
this.placement = 'auto';
|
|
9
13
|
this.offsetSkidding = 0;
|
|
10
14
|
this.offsetDistance = 8;
|
|
11
|
-
this.renderedShowValue = false;
|
|
12
|
-
this.popperInstance = undefined;
|
|
13
|
-
this.target = undefined;
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
this.show = false;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
componentDidLoad() {
|
|
21
|
-
var _a;
|
|
22
|
-
this.target = (_a = this.referenceEl) !== null && _a !== void 0 ? _a : document.querySelector(this.selector);
|
|
23
|
-
this.renderedShowValue = this.show;
|
|
24
|
-
this.popperInstance = createPopper(this.target, this.popoverMenuElement, {
|
|
25
|
-
strategy: 'fixed',
|
|
26
|
-
placement: this.placement,
|
|
27
|
-
modifiers: [
|
|
28
|
-
{
|
|
29
|
-
name: 'offset',
|
|
30
|
-
options: {
|
|
31
|
-
offset: [this.offsetSkidding, this.offsetDistance],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
});
|
|
36
|
-
const showMenu = () => {
|
|
37
|
-
this.show = true;
|
|
38
|
-
};
|
|
39
|
-
const hideMenu = () => {
|
|
40
|
-
this.show = false;
|
|
41
|
-
};
|
|
42
|
-
this.target.addEventListener('mousedown', (event) => {
|
|
43
|
-
event.stopPropagation();
|
|
44
|
-
if (this.show) {
|
|
45
|
-
hideMenu();
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
showMenu();
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
this.popoverMenuElement.addEventListener('mousemove', (event) => {
|
|
52
|
-
event.stopPropagation();
|
|
53
|
-
});
|
|
54
|
-
this.popoverMenuElement.addEventListener('mousedown', (event) => {
|
|
55
|
-
event.stopPropagation();
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
componentDidRender() {
|
|
59
|
-
if (this.show && !this.renderedShowValue) {
|
|
60
|
-
// Here we update the popper position since its position is wrong
|
|
61
|
-
// before it is rendered.
|
|
62
|
-
this.popperInstance.update();
|
|
63
|
-
}
|
|
64
|
-
this.renderedShowValue = this.show;
|
|
65
|
-
}
|
|
66
|
-
disconnectedCallback() {
|
|
67
|
-
var _a;
|
|
68
|
-
(_a = this.popperInstance) === null || _a === void 0 ? void 0 : _a.destroy();
|
|
16
|
+
componentWillLoad() {
|
|
17
|
+
this.inheritedAttributes = inheritAttributes(this.host, ['style', 'class']);
|
|
69
18
|
}
|
|
70
19
|
render() {
|
|
71
|
-
|
|
20
|
+
var _a;
|
|
21
|
+
return (h(Host, null, h("tds-popover-core", { class: {
|
|
22
|
+
'tds-popover-menu': true,
|
|
23
|
+
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
24
|
+
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance }, h("slot", null))));
|
|
72
25
|
}
|
|
73
26
|
static get is() { return "tds-popover-menu"; }
|
|
74
|
-
static get encapsulation() { return "
|
|
27
|
+
static get encapsulation() { return "scoped"; }
|
|
75
28
|
static get originalStyleUrls() {
|
|
76
29
|
return {
|
|
77
30
|
"$": ["popover-menu.scss"]
|
|
@@ -133,11 +86,11 @@ export class TdsPopoverMenu {
|
|
|
133
86
|
"optional": false,
|
|
134
87
|
"docs": {
|
|
135
88
|
"tags": [],
|
|
136
|
-
"text": "
|
|
89
|
+
"text": "Controls whether the Popover is shown or not. If this is set hiding and showing\nwill be decided by this prop and will need to be controlled from the outside. This\nalso means that clicking outside of the popover won't close it."
|
|
137
90
|
},
|
|
138
91
|
"attribute": "show",
|
|
139
92
|
"reflect": false,
|
|
140
|
-
"defaultValue": "
|
|
93
|
+
"defaultValue": "null"
|
|
141
94
|
},
|
|
142
95
|
"placement": {
|
|
143
96
|
"type": "string",
|
|
@@ -200,21 +153,5 @@ export class TdsPopoverMenu {
|
|
|
200
153
|
}
|
|
201
154
|
};
|
|
202
155
|
}
|
|
203
|
-
static get
|
|
204
|
-
return {
|
|
205
|
-
"renderedShowValue": {},
|
|
206
|
-
"popperInstance": {},
|
|
207
|
-
"target": {}
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
static get elementRef() { return "popoverMenuElement"; }
|
|
211
|
-
static get listeners() {
|
|
212
|
-
return [{
|
|
213
|
-
"name": "mousedown",
|
|
214
|
-
"method": "handleOutsideClick",
|
|
215
|
-
"target": "window",
|
|
216
|
-
"capture": false,
|
|
217
|
-
"passive": true
|
|
218
|
-
}];
|
|
219
|
-
}
|
|
156
|
+
static get elementRef() { return "host"; }
|
|
220
157
|
}
|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
'Top start',
|
|
35
35
|
'Top end',
|
|
36
36
|
'Left',
|
|
37
|
-
'Left
|
|
37
|
+
'Left start',
|
|
38
38
|
'Left end',
|
|
39
39
|
'Right',
|
|
40
40
|
'Right start',
|
|
@@ -67,7 +67,7 @@ const Template = ({ menuPosition, icons }) => {
|
|
|
67
67
|
'Top start': 'top-start',
|
|
68
68
|
'Top end': 'top-end',
|
|
69
69
|
'Left': 'left',
|
|
70
|
-
'Left
|
|
70
|
+
'Left start': 'left-start',
|
|
71
71
|
'Left end': 'left-end',
|
|
72
72
|
'Right': 'right',
|
|
73
73
|
'Right start': 'right-start',
|
|
@@ -130,7 +130,7 @@ const Template = ({ menuPosition, icons }) => {
|
|
|
130
130
|
<tds-icon slot="icon" size="16px" name="kebab"></tds-icon>
|
|
131
131
|
</tds-button>
|
|
132
132
|
</div>
|
|
133
|
-
|
|
133
|
+
|
|
134
134
|
<script>
|
|
135
135
|
// The 'selector' prop on Popover-Menu can be used instead, but it might be less ideal in frameworks like React
|
|
136
136
|
document.getElementById('my-popover-menu').referenceEl = document.getElementById('my-popover-button');
|
package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
/**
|
|
3
|
-
* @slot <default> - <b>Unnamed slot.</b>
|
|
3
|
+
* @slot <default> - <b>Unnamed slot.</b> For the text label of the button.
|
|
4
4
|
* */
|
|
5
5
|
export class TdsSideMenuCollapseButton {
|
|
6
6
|
constructor() {
|
|
@@ -2,7 +2,7 @@ import { Fragment, h, Host } from '@stencil/core';
|
|
|
2
2
|
/**
|
|
3
3
|
* @slot button-icon - Used for injecting the icon that compliments the dropdown title
|
|
4
4
|
* @slot button-label - Used for injecting the text, aka dropdown title
|
|
5
|
-
* @slot <default>
|
|
5
|
+
* @slot <default> - <b>Unnamed slot.</b> For injection of the <code>tds-side-menu-dropdown-list</code> subcomponent.
|
|
6
6
|
* */
|
|
7
7
|
export class TdsSideMenuDropdown {
|
|
8
8
|
constructor() {
|
package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Host, h } from '@stencil/core';
|
|
2
2
|
/**
|
|
3
|
-
* @slot <default> - <b>Unnamed slot.</b>
|
|
3
|
+
* @slot <default> - <b>Unnamed slot.</b> For injection of <code>tds-side-menu-dropdown-list-item</code> subcomponents.
|
|
4
4
|
* */
|
|
5
5
|
export class TdsSideMenuDropdownList {
|
|
6
6
|
constructor() {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
/**
|
|
3
|
-
* @slot <default>
|
|
3
|
+
* @slot <default> - <b>Unnamed slot.</b> For injecting a native <code><button></code> or <code><a></code> element.
|
|
4
4
|
* */
|
|
5
5
|
export class TdsSideMenuDropdownListItem {
|
|
6
6
|
constructor() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
import { dfs } from '../../../utils/utils';
|
|
3
3
|
/**
|
|
4
|
-
* @slot <default>
|
|
4
|
+
* @slot <default> - <b>Unnamed slot.</b> For injecting a native <code><button</code> and <code><a></code> element.
|
|
5
5
|
* */
|
|
6
6
|
export class TdsSideMenuItem {
|
|
7
7
|
constructor() {
|
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
position:
|
|
2
|
+
position: fixed;
|
|
3
3
|
width: 100%;
|
|
4
4
|
height: 100%;
|
|
5
5
|
background-color: black;
|
|
6
6
|
transition: opacity 0.4s linear;
|
|
7
7
|
opacity: 0;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
div {
|
|
11
|
+
position: fixed;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
pointer-events: none;
|
|
8
15
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
top: 0;
|
|
10
10
|
width: 100%;
|
|
11
11
|
height: 100%;
|
|
12
|
+
z-index: 400;
|
|
12
13
|
}
|
|
13
14
|
:host .wrapper {
|
|
14
15
|
height: inherit;
|
|
@@ -48,41 +49,41 @@
|
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
@media (max-width: 992px) {
|
|
51
|
-
:host(
|
|
52
|
+
:host(.menu-opened) {
|
|
52
53
|
pointer-events: auto;
|
|
53
|
-
z-index:
|
|
54
|
+
z-index: 400;
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
57
|
@media (min-width: 992px) {
|
|
57
|
-
:host(
|
|
58
|
+
:host(.menu-persistent) {
|
|
58
59
|
pointer-events: auto;
|
|
59
60
|
position: static;
|
|
60
61
|
width: 272px;
|
|
61
62
|
height: auto;
|
|
62
63
|
border-right: 1px solid var(--tds-sidebar-side-menu-bottom-menu-border-top);
|
|
63
64
|
}
|
|
64
|
-
:host(
|
|
65
|
+
:host(.menu-persistent) .wrapper slot[name=overlay]::slotted(tds-side-menu-overlay) {
|
|
65
66
|
display: none;
|
|
66
67
|
}
|
|
67
|
-
:host(
|
|
68
|
+
:host(.menu-persistent) .wrapper slot[name=close-button]::slotted(tds-side-menu-close-button) {
|
|
68
69
|
display: none;
|
|
69
70
|
}
|
|
70
|
-
:host(
|
|
71
|
+
:host(.menu-persistent) .wrapper .tds-side-menu-wrapper {
|
|
71
72
|
transform: none;
|
|
72
73
|
}
|
|
73
|
-
:host(
|
|
74
|
+
:host(.menu-persistent) .menu {
|
|
74
75
|
width: 272px;
|
|
75
76
|
}
|
|
76
|
-
:host(
|
|
77
|
+
:host(.menu-persistent) .state-closed {
|
|
77
78
|
display: block;
|
|
78
79
|
}
|
|
79
|
-
:host(
|
|
80
|
+
:host(.menu-persistent):host(.menu-collapsed) {
|
|
80
81
|
width: 69px;
|
|
81
82
|
}
|
|
82
|
-
:host(
|
|
83
|
+
:host(.menu-persistent):host(.menu-collapsed) .menu {
|
|
83
84
|
width: 68px;
|
|
84
85
|
}
|
|
85
|
-
:host(
|
|
86
|
+
:host(.menu-persistent) slot[name=end]::slotted(*) {
|
|
86
87
|
display: none;
|
|
87
88
|
}
|
|
88
89
|
}
|
|
@@ -6,7 +6,7 @@ const INITIALIZE_ANIMATION_DELAY = 500;
|
|
|
6
6
|
/**
|
|
7
7
|
* @slot overlay - Used of injection of tds-side-menu-overlay
|
|
8
8
|
* @slot close-button - Used for injection of tds-side-menu-close-button that is show when in mobile view
|
|
9
|
-
* @slot <default> - <b>Unnamed slot.</b>
|
|
9
|
+
* @slot <default> - <b>Unnamed slot.</b> For primary content of the side menu - like buttons.
|
|
10
10
|
* Used for nesting main content of Side Menu, e.g. <code><tds-side-menu-item></code> and <code><tds-side-menu-dropdown></code> components
|
|
11
11
|
* @slot end - Used for items that are presented at the bottom of the Side Menu, e.g. profile settings
|
|
12
12
|
* @slot sticky-end - Used for tds-side-menu-collapse-button component
|
|
@@ -93,7 +93,11 @@ export class TdsSideMenu {
|
|
|
93
93
|
this.isClosed = true;
|
|
94
94
|
}
|
|
95
95
|
render() {
|
|
96
|
-
return (h(Host, { role: "navigation"
|
|
96
|
+
return (h(Host, { role: "navigation", class: {
|
|
97
|
+
'menu-opened': this.open,
|
|
98
|
+
'menu-persistent': this.persistent,
|
|
99
|
+
'menu-collapsed': this.collapsed,
|
|
100
|
+
} }, h("div", { class: {
|
|
97
101
|
'wrapper': true,
|
|
98
102
|
'state-upper-slot-empty': this.isUpperSlotEmpty,
|
|
99
103
|
'state-open': this.isOpen || this.isOpening,
|
|
@@ -129,7 +133,7 @@ export class TdsSideMenu {
|
|
|
129
133
|
"text": "Applicable only for mobile. If the Side Menu is open or not."
|
|
130
134
|
},
|
|
131
135
|
"attribute": "open",
|
|
132
|
-
"reflect":
|
|
136
|
+
"reflect": false,
|
|
133
137
|
"defaultValue": "false"
|
|
134
138
|
},
|
|
135
139
|
"persistent": {
|
|
@@ -147,7 +151,7 @@ export class TdsSideMenu {
|
|
|
147
151
|
"text": "Applicable only for desktop. If the Side Menu should always be shown."
|
|
148
152
|
},
|
|
149
153
|
"attribute": "persistent",
|
|
150
|
-
"reflect":
|
|
154
|
+
"reflect": false,
|
|
151
155
|
"defaultValue": "false"
|
|
152
156
|
},
|
|
153
157
|
"collapsed": {
|
|
@@ -165,7 +169,7 @@ export class TdsSideMenu {
|
|
|
165
169
|
"text": "If the Side Menu is collapsed. Only a persistent desktop menu can be collapsed.\nNOTE: Only use this if you have prevented the automatic collapsing with preventDefault on the tds-Collapse event."
|
|
166
170
|
},
|
|
167
171
|
"attribute": "collapsed",
|
|
168
|
-
"reflect":
|
|
172
|
+
"reflect": false,
|
|
169
173
|
"defaultValue": "false"
|
|
170
174
|
}
|
|
171
175
|
};
|
|
@@ -316,7 +316,11 @@ export class TdsSlider {
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
render() {
|
|
319
|
-
return (h("div", { class: `tds-slider-wrapper ${this.readonlyState ? 'read-only' : ''}` }, h("input", { class: "tds-slider-native-element", type: "range", value: this.value, name: this.name, min: this.min, max: this.max, disabled: this.disabled }), h("div", { class:
|
|
319
|
+
return (h("div", { class: `tds-slider-wrapper ${this.readonlyState ? 'read-only' : ''}` }, h("input", { class: "tds-slider-native-element", type: "range", value: this.value, name: this.name, min: this.min, max: this.max, disabled: this.disabled }), h("div", { class: {
|
|
320
|
+
'tds-slider': true,
|
|
321
|
+
'disabled': this.disabled,
|
|
322
|
+
'tds-slider-small': this.useSmall,
|
|
323
|
+
}, ref: (el) => {
|
|
320
324
|
this.wrapperElement = el;
|
|
321
325
|
} }, h("label", { class: this.showTickNumbers && 'offset' }, this.label), this.useInput && (h("div", { class: "tds-slider__input-values" }, h("div", { ref: (el) => {
|
|
322
326
|
this.minusElement = el;
|
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
// https://medium.com/@scottmgerstl/passing-an-object-or-array-to-stencil-dd62b7d92641
|
|
3
3
|
import { h, Host } from '@stencil/core';
|
|
4
4
|
import { generateUniqueId } from '../../../utils/utils';
|
|
5
|
+
/**
|
|
6
|
+
* @slot <default> - <b>Unnamed slot.</b> For the table contents.
|
|
7
|
+
*/
|
|
5
8
|
export class TdsTable {
|
|
6
9
|
constructor() {
|
|
7
10
|
this.verticalDividers = false;
|
|
8
11
|
this.compactDesign = false;
|
|
9
12
|
this.noMinWidth = undefined;
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
+
this.multiselect = false;
|
|
14
|
+
this.expandableRows = false;
|
|
15
|
+
this.responsive = false;
|
|
13
16
|
this.modeVariant = null;
|
|
14
17
|
this.tableId = generateUniqueId();
|
|
15
18
|
}
|
|
@@ -21,10 +24,10 @@ export class TdsTable {
|
|
|
21
24
|
});
|
|
22
25
|
}
|
|
23
26
|
enableMultiselectChanged(newValue) {
|
|
24
|
-
this.emitInternalTdsPropChange('
|
|
27
|
+
this.emitInternalTdsPropChange('multiselect', newValue);
|
|
25
28
|
}
|
|
26
29
|
enableExpandableRowsChanged(newValue) {
|
|
27
|
-
this.emitInternalTdsPropChange('
|
|
30
|
+
this.emitInternalTdsPropChange('expandableRows', newValue);
|
|
28
31
|
}
|
|
29
32
|
compactDesignChanged(newValue) {
|
|
30
33
|
this.emitInternalTdsPropChange('compactDesign', newValue);
|
|
@@ -39,12 +42,16 @@ export class TdsTable {
|
|
|
39
42
|
this.emitInternalTdsPropChange('modeVariant', newValue);
|
|
40
43
|
}
|
|
41
44
|
render() {
|
|
42
|
-
return (h(Host, { class: {
|
|
45
|
+
return (h(Host, { class: {
|
|
46
|
+
'tds-table--responsive': this.responsive,
|
|
47
|
+
'tds-mode-variant-primary': this.modeVariant === 'primary',
|
|
48
|
+
'tds-mode-variant-secondary': this.modeVariant === 'secondary',
|
|
49
|
+
} }, h("table", { class: {
|
|
43
50
|
'tds-table': true,
|
|
44
51
|
'tds-table--compact': this.compactDesign,
|
|
45
52
|
'tds-table--divider': this.verticalDividers,
|
|
46
53
|
'tds-table--no-min-width': this.noMinWidth,
|
|
47
|
-
'tds-table--responsive': this.
|
|
54
|
+
'tds-table--responsive': this.responsive,
|
|
48
55
|
} }, h("slot", null))));
|
|
49
56
|
}
|
|
50
57
|
static get is() { return "tds-table"; }
|
|
@@ -114,7 +121,7 @@ export class TdsTable {
|
|
|
114
121
|
"attribute": "no-min-width",
|
|
115
122
|
"reflect": true
|
|
116
123
|
},
|
|
117
|
-
"
|
|
124
|
+
"multiselect": {
|
|
118
125
|
"type": "boolean",
|
|
119
126
|
"mutable": false,
|
|
120
127
|
"complexType": {
|
|
@@ -128,11 +135,11 @@ export class TdsTable {
|
|
|
128
135
|
"tags": [],
|
|
129
136
|
"text": "Enables multiselect feature of Table"
|
|
130
137
|
},
|
|
131
|
-
"attribute": "
|
|
138
|
+
"attribute": "multiselect",
|
|
132
139
|
"reflect": true,
|
|
133
140
|
"defaultValue": "false"
|
|
134
141
|
},
|
|
135
|
-
"
|
|
142
|
+
"expandableRows": {
|
|
136
143
|
"type": "boolean",
|
|
137
144
|
"mutable": false,
|
|
138
145
|
"complexType": {
|
|
@@ -146,11 +153,11 @@ export class TdsTable {
|
|
|
146
153
|
"tags": [],
|
|
147
154
|
"text": "Enables extended row feature of Table"
|
|
148
155
|
},
|
|
149
|
-
"attribute": "
|
|
156
|
+
"attribute": "expandable-rows",
|
|
150
157
|
"reflect": true,
|
|
151
158
|
"defaultValue": "false"
|
|
152
159
|
},
|
|
153
|
-
"
|
|
160
|
+
"responsive": {
|
|
154
161
|
"type": "boolean",
|
|
155
162
|
"mutable": false,
|
|
156
163
|
"complexType": {
|
|
@@ -164,7 +171,7 @@ export class TdsTable {
|
|
|
164
171
|
"tags": [],
|
|
165
172
|
"text": "Enables Table to take 100% available width with equal spacing of columns"
|
|
166
173
|
},
|
|
167
|
-
"attribute": "
|
|
174
|
+
"attribute": "responsive",
|
|
168
175
|
"reflect": true,
|
|
169
176
|
"defaultValue": "false"
|
|
170
177
|
},
|
|
@@ -235,10 +242,10 @@ export class TdsTable {
|
|
|
235
242
|
static get elementRef() { return "host"; }
|
|
236
243
|
static get watchers() {
|
|
237
244
|
return [{
|
|
238
|
-
"propName": "
|
|
245
|
+
"propName": "multiselect",
|
|
239
246
|
"methodName": "enableMultiselectChanged"
|
|
240
247
|
}, {
|
|
241
|
-
"propName": "
|
|
248
|
+
"propName": "expandableRows",
|
|
242
249
|
"methodName": "enableExpandableRowsChanged"
|
|
243
250
|
}, {
|
|
244
251
|
"propName": "compactDesign",
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { h, Host, } from '@stencil/core';
|
|
2
|
-
const relevantTableProps = [
|
|
3
|
-
'enableMultiselect',
|
|
4
|
-
'enableExpandableRows',
|
|
5
|
-
];
|
|
2
|
+
const relevantTableProps = ['multiselect', 'expandableRows'];
|
|
6
3
|
/**
|
|
7
|
-
* @slot <default> -
|
|
4
|
+
* @slot <default> - <b>Unnamed slot.</b> For table rows.
|
|
8
5
|
* @slot no-result - Slot for no result message when using filtering.
|
|
9
|
-
*/
|
|
6
|
+
*/
|
|
10
7
|
export class TdsTableBody {
|
|
11
8
|
constructor() {
|
|
12
9
|
this.uncheckAll = () => {
|
|
@@ -39,9 +36,9 @@ export class TdsTableBody {
|
|
|
39
36
|
this.bodyData = undefined;
|
|
40
37
|
this.noResultMessage = undefined;
|
|
41
38
|
this.rowsPerPage = 1;
|
|
42
|
-
this.
|
|
39
|
+
this.multiselect = false;
|
|
43
40
|
this.enablePaginationTableBody = false;
|
|
44
|
-
this.
|
|
41
|
+
this.expandableRows = false;
|
|
45
42
|
this.innerBodyData = [];
|
|
46
43
|
this.bodyDataManipulated = [];
|
|
47
44
|
this.bodyDataOriginal = [];
|
|
@@ -98,7 +95,7 @@ export class TdsTableBody {
|
|
|
98
95
|
};
|
|
99
96
|
}
|
|
100
97
|
sortData(keyValue, sortingDirection) {
|
|
101
|
-
if (this.
|
|
98
|
+
if (this.multiselect) {
|
|
102
99
|
// Uncheck all checkboxes as the state of checkbox is lost on sorting. Do it only in case multiSelect is True.
|
|
103
100
|
this.uncheckAll();
|
|
104
101
|
}
|
|
@@ -125,7 +122,7 @@ export class TdsTableBody {
|
|
|
125
122
|
}
|
|
126
123
|
searchFunction(searchTerm) {
|
|
127
124
|
// grab all rows in body
|
|
128
|
-
const dataRowsFiltering = this.host.querySelectorAll('tds-table-body-row');
|
|
125
|
+
const dataRowsFiltering = this.host.querySelectorAll('tds-table-body-row, tds-table-body-row-expandable');
|
|
129
126
|
if (searchTerm.length > 0) {
|
|
130
127
|
if (this.enablePaginationTableBody) {
|
|
131
128
|
this.tempPaginationDisable = true;
|
|
@@ -190,7 +187,7 @@ export class TdsTableBody {
|
|
|
190
187
|
componentWillRender() {
|
|
191
188
|
const headerColumnsNo = this.host.parentElement.querySelector('tds-table-header').children.length;
|
|
192
189
|
// multiselect and expended features requires one extra column for controls...
|
|
193
|
-
if (this.
|
|
190
|
+
if (this.multiselect || this.expandableRows) {
|
|
194
191
|
this.columnsNumber = headerColumnsNo + 1;
|
|
195
192
|
}
|
|
196
193
|
else {
|
|
@@ -252,9 +249,9 @@ export class TdsTableBody {
|
|
|
252
249
|
static get states() {
|
|
253
250
|
return {
|
|
254
251
|
"rowsPerPage": {},
|
|
255
|
-
"
|
|
252
|
+
"multiselect": {},
|
|
256
253
|
"enablePaginationTableBody": {},
|
|
257
|
-
"
|
|
254
|
+
"expandableRows": {},
|
|
258
255
|
"innerBodyData": {},
|
|
259
256
|
"bodyDataManipulated": {},
|
|
260
257
|
"bodyDataOriginal": {},
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
:host(.tds-table__row--selected) {
|
|
23
|
-
background-color: var(--tds-table-body-row-background-
|
|
23
|
+
background-color: var(--tds-table-body-row-background-selected);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
:host(.tds-table__row--selected:hover) {
|
|
27
|
-
background-color: var(--tds-table-body-row-background-
|
|
27
|
+
background-color: var(--tds-table-body-row-background-selected-hover);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
:host(.tds-table__row--hidden) {
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { h, Host } from '@stencil/core';
|
|
2
2
|
const relevantTableProps = [
|
|
3
|
-
'
|
|
3
|
+
'multiselect',
|
|
4
4
|
'verticalDividers',
|
|
5
5
|
'compactDesign',
|
|
6
|
-
'modeVariant',
|
|
7
6
|
];
|
|
7
|
+
/**
|
|
8
|
+
* @slot <default> - <b>Unnamed slot.</b> For the cells.
|
|
9
|
+
*/
|
|
8
10
|
export class TdsTableBodyRow {
|
|
9
11
|
constructor() {
|
|
10
|
-
this.
|
|
12
|
+
this.multiselect = false;
|
|
11
13
|
this.bodyCheckBoxStatus = false;
|
|
12
14
|
this.mainCheckBoxStatus = false;
|
|
13
15
|
this.verticalDividers = false;
|
|
14
16
|
this.compactDesign = false;
|
|
15
17
|
this.noMinWidth = false;
|
|
16
|
-
this.modeVariant = null;
|
|
17
18
|
this.tableId = '';
|
|
18
19
|
}
|
|
19
20
|
bodyCheckBoxClicked(event) {
|
|
@@ -79,9 +80,7 @@ export class TdsTableBodyRow {
|
|
|
79
80
|
'tds-table__row': true,
|
|
80
81
|
'tds-table__compact': this.compactDesign,
|
|
81
82
|
'tds-table--divider': this.verticalDividers,
|
|
82
|
-
|
|
83
|
-
'tds-mode-variant-secondary': this.modeVariant === 'secondary',
|
|
84
|
-
} }, this.enableMultiselect && (h("td", { class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h("tds-checkbox", { onTdsChange: (event) => this.bodyCheckBoxClicked(event), checked: this.bodyCheckBoxStatus }))), h("slot", null)));
|
|
83
|
+
} }, this.multiselect && (h("td", { class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h("tds-checkbox", { onTdsChange: (event) => this.bodyCheckBoxClicked(event), checked: this.bodyCheckBoxStatus }))), h("slot", null)));
|
|
85
84
|
}
|
|
86
85
|
static get is() { return "tds-table-body-row"; }
|
|
87
86
|
static get encapsulation() { return "shadow"; }
|
|
@@ -97,13 +96,12 @@ export class TdsTableBodyRow {
|
|
|
97
96
|
}
|
|
98
97
|
static get states() {
|
|
99
98
|
return {
|
|
100
|
-
"
|
|
99
|
+
"multiselect": {},
|
|
101
100
|
"bodyCheckBoxStatus": {},
|
|
102
101
|
"mainCheckBoxStatus": {},
|
|
103
102
|
"verticalDividers": {},
|
|
104
103
|
"compactDesign": {},
|
|
105
104
|
"noMinWidth": {},
|
|
106
|
-
"modeVariant": {},
|
|
107
105
|
"tableId": {}
|
|
108
106
|
};
|
|
109
107
|
}
|
package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js
CHANGED
|
@@ -6,6 +6,7 @@ const relevantTableProps = [
|
|
|
6
6
|
'modeVariant',
|
|
7
7
|
];
|
|
8
8
|
/**
|
|
9
|
+
* @slot <default> - <b>Unnamed slot.</b> For the cells.
|
|
9
10
|
* @slot expand-row - Slot for the expanded row.
|
|
10
11
|
*/
|
|
11
12
|
export class TdsTableBodyRowExpandable {
|
|
@@ -64,8 +65,6 @@ export class TdsTableBodyRowExpandable {
|
|
|
64
65
|
'tds-table__row-expand--active': this.isExpanded,
|
|
65
66
|
'tds-table__compact': this.compactDesign,
|
|
66
67
|
'tds-table--divider': this.verticalDividers,
|
|
67
|
-
'tds-mode-variant-primary': this.modeVariant === 'primary',
|
|
68
|
-
'tds-mode-variant-secondary': this.modeVariant === 'secondary',
|
|
69
68
|
} }, h("tr", { class: "tds-table__row" }, h("td", { class: "tds-table__cell tds-table__cell--expand" }, h("label", { class: "tds-table__expand-control-container" }, h("input", { class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded }), h("span", { class: "tds-expendable-row-icon" }, h("svg", { fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M4.273 9.783a1 1 0 0 1 1.415 0l9.888 9.888a.6.6 0 0 0 .848 0l9.888-9.888a1 1 0 1 1 1.415 1.414l-9.889 9.889a2.6 2.6 0 0 1-3.677 0l-9.888-9.889a1 1 0 0 1 0-1.414Z", fill: "currentColor" }))))), h("slot", null)), h("tr", { class: "tds-table__row-expand" }, h("td", { class: "tds-table__cell-expand", colSpan: this.columnsNumber }, h("slot", { name: "expand-row" })))));
|
|
70
69
|
}
|
|
71
70
|
static get is() { return "tds-table-body-row-expandable"; }
|
|
@@ -133,7 +133,7 @@ const BasicTemplate = ({ modeVariant, compactDesign, responsiveDesign, disablePa
|
|
|
133
133
|
<tds-table
|
|
134
134
|
vertical-dividers="${verticalDivider}"
|
|
135
135
|
compact-design="${compactDesign}"
|
|
136
|
-
|
|
136
|
+
responsive="${responsiveDesign}"
|
|
137
137
|
${noMinWidth ? 'no-min-width' : ''}
|
|
138
138
|
${modeVariant !== 'Inherit from parent' ? `mode-variant="${modeVariant.toLowerCase()}"` : ''}>
|
|
139
139
|
<tds-table-header>
|