@scania/tegel 1.18.0-1.18.0-tdsheaderitembeta.2 → 1.18.0-beta.2
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/findClosestComponent-64302a79.js +14 -0
- package/dist/cjs/getDirectChildHTMLElementOfKind-6e210da2.js +11 -0
- package/dist/cjs/index-ca8040ad.js +58 -46
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tagName-3399a06c.js +120 -0
- package/dist/cjs/tds-accordion-item.cjs.entry.js +7 -4
- package/dist/cjs/tds-badge.cjs.entry.js +1 -1
- package/dist/cjs/tds-banner.cjs.entry.js +5 -3
- package/dist/cjs/tds-block.cjs.entry.js +2 -2
- package/dist/cjs/tds-body-cell.cjs.entry.js +5 -3
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/tds-button.cjs.entry.js +3 -3
- package/dist/cjs/tds-card.cjs.entry.js +4 -2
- package/dist/cjs/tds-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/tds-chip.cjs.entry.js +1 -1
- package/dist/cjs/tds-core-header-item.cjs.entry.js +20 -0
- package/dist/cjs/tds-datetime.cjs.entry.js +6 -3
- package/dist/cjs/tds-divider.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +95 -0
- package/dist/cjs/{tds-dropdown_2.cjs.entry.js → tds-dropdown.cjs.entry.js} +12 -98
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-footer-group.cjs.entry.js +6 -4
- package/dist/cjs/tds-footer-item.cjs.entry.js +6 -2
- package/dist/cjs/tds-footer.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-cell.cjs.entry.js +9 -4
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +4 -4
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +5 -3
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +4 -2
- package/dist/cjs/{tds-core-header-item_2.cjs.entry.js → tds-header-item.cjs.entry.js} +6 -17
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +4 -2
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +4 -4
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +4 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +4 -1
- package/dist/cjs/tds-header-launcher.cjs.entry.js +6 -3
- package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header.cjs.entry.js +2 -15
- package/dist/cjs/tds-icon.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-link.cjs.entry.js +2 -2
- package/dist/cjs/tds-message.cjs.entry.js +6 -3
- package/dist/cjs/tds-modal.cjs.entry.js +3 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -2
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/tds-popover-menu.cjs.entry.js +5 -3
- package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +3 -1
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +8 -5
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +7 -5
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +5 -3
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +7 -4
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +8 -5
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user-image.cjs.entry.js +22 -0
- package/dist/cjs/tds-side-menu-user-label.cjs.entry.js +22 -0
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +5 -2
- package/dist/cjs/tds-slider.cjs.entry.js +11 -8
- package/dist/cjs/tds-step.cjs.entry.js +7 -4
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +8 -5
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +12 -9
- package/dist/cjs/tds-table-body-row.cjs.entry.js +6 -3
- package/dist/cjs/tds-table-body.cjs.entry.js +12 -6
- package/dist/cjs/tds-table-footer.cjs.entry.js +12 -8
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +8 -5
- package/dist/cjs/tds-table-header.cjs.entry.js +13 -7
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +6 -3
- package/dist/cjs/tds-table.cjs.entry.js +13 -9
- package/dist/cjs/tds-text-field.cjs.entry.js +8 -6
- package/dist/cjs/tds-textarea.cjs.entry.js +6 -3
- package/dist/cjs/tds-toast.cjs.entry.js +9 -6
- package/dist/cjs/tds-tooltip.cjs.entry.js +4 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +1 -6
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -3
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/banner/banner.css +1 -1
- package/dist/collection/components/banner/banner.js +4 -2
- package/dist/collection/components/block/block.js +2 -2
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/collection/components/button/button.css +58 -187
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/card/card.js +4 -2
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/datetime/datetime.css +2 -2
- package/dist/collection/components/datetime/datetime.js +6 -3
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +7 -7
- package/dist/collection/components/dropdown/dropdown.css +3 -3
- package/dist/collection/components/dropdown/dropdown.js +11 -8
- package/dist/collection/components/footer/footer-group/footer-group.css +2 -2
- package/dist/collection/components/footer/footer-group/footer-group.js +5 -3
- package/dist/collection/components/footer/footer-item/footer-item.js +5 -2
- package/dist/collection/components/footer/footer.js +1 -1
- package/dist/collection/components/header/core-header-item/core-header-item.js +1 -1
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.css +3 -3
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +1 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +5 -3
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +2 -2
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +2 -2
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +1 -1
- package/dist/collection/components/header/header-hamburger/header-hamburger.css +3 -3
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +3 -1
- package/dist/collection/components/header/header-item/header-item.js +6 -3
- package/dist/collection/components/header/header-launcher/header-launcher.js +6 -3
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.css +1 -1
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +3 -1
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +1 -1
- package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +1 -1
- package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +1 -1
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +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 +1 -1
- package/dist/collection/components/header/header-title/header-title.js +1 -1
- package/dist/collection/components/header/header.css +7 -7
- package/dist/collection/components/header/header.js +1 -14
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/link/link.js +2 -2
- package/dist/collection/components/message/message.css +5 -5
- package/dist/collection/components/message/message.js +5 -2
- package/dist/collection/components/modal/modal.js +3 -1
- package/dist/collection/components/popover-canvas/popover-canvas.js +4 -2
- package/dist/collection/components/popover-core/popover-core.js +1 -1
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.css +2 -2
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +2 -2
- package/dist/collection/components/popover-menu/popover-menu.css +1 -5
- package/dist/collection/components/popover-menu/popover-menu.js +4 -2
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +3 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +8 -5
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +7 -4
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +4 -3
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +6 -5
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +1 -1
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +6 -4
- package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.css +1 -1
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +4 -1
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +1 -1
- package/dist/collection/components/slider/slider.css +5 -5
- package/dist/collection/components/slider/slider.js +11 -8
- package/dist/collection/components/stepper/step/step.css +1 -1
- package/dist/collection/components/stepper/step/step.js +6 -3
- package/dist/collection/components/table/table/table.js +20 -9
- package/dist/collection/components/table/table-body/table-body.css +12 -12
- package/dist/collection/components/table/table-body/table-body.js +10 -5
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +4 -3
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.css +3 -3
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +7 -4
- package/dist/collection/components/table/table-body-row/table-body-row.js +6 -3
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +11 -9
- package/dist/collection/components/table/table-footer/table-footer.css +1 -1
- package/dist/collection/components/table/table-footer/table-footer.js +11 -7
- package/dist/collection/components/table/table-header/table-header.js +13 -7
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +9 -4
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.css +3 -3
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +7 -4
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +6 -3
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +4 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +4 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +4 -2
- package/dist/collection/components/text-field/text-field.css +3 -3
- package/dist/collection/components/text-field/text-field.js +7 -5
- package/dist/collection/components/textarea/textarea.js +6 -3
- package/dist/collection/components/toast/toast.css +6 -6
- package/dist/collection/components/toast/toast.js +8 -5
- package/dist/collection/components/tooltip/tooltip.js +4 -2
- package/dist/collection/utils/findClosestComponent.js +9 -0
- package/dist/collection/utils/getDirectChildHTMLElementOfKind.js +6 -0
- package/dist/collection/utils/tagName.js +29 -0
- package/dist/collection/utils/tagNames.js +91 -0
- package/dist/components/p-875e2e9c.js +12 -0
- package/dist/components/{p-0676aa23.js → p-93414e58.js} +7 -10
- package/dist/components/p-b33f8162.js +116 -0
- package/dist/components/p-d18575db.js +9 -0
- package/dist/components/tds-accordion-item.js +8 -11
- package/dist/components/tds-badge.js +1 -1
- package/dist/components/tds-banner.js +6 -10
- package/dist/components/tds-block.js +2 -2
- package/dist/components/tds-body-cell.js +4 -3
- package/dist/components/tds-breadcrumb.js +1 -1
- package/dist/components/tds-breadcrumbs.js +1 -1
- package/dist/components/tds-button.js +3 -3
- package/dist/components/tds-card.js +5 -9
- package/dist/components/tds-checkbox.js +89 -1
- package/dist/components/tds-chip.js +1 -1
- package/dist/components/tds-core-header-item.js +30 -1
- package/dist/components/tds-datetime.js +7 -10
- package/dist/components/tds-divider.js +33 -1
- package/dist/components/tds-dropdown-option.js +112 -1
- package/dist/components/tds-dropdown.js +516 -1
- package/dist/components/tds-folder-tabs.js +5 -9
- package/dist/components/tds-footer-group.js +7 -11
- package/dist/components/tds-footer-item.js +5 -2
- package/dist/components/tds-footer.js +1 -1
- package/dist/components/tds-header-brand-symbol.js +4 -10
- package/dist/components/tds-header-cell.js +10 -11
- package/dist/components/tds-header-dropdown-list-item.js +39 -1
- package/dist/components/tds-header-dropdown-list-user.js +1 -1
- package/dist/components/tds-header-dropdown-list.js +99 -1
- package/dist/components/tds-header-dropdown.js +6 -34
- package/dist/components/tds-header-hamburger.js +5 -21
- package/dist/components/tds-header-item.js +1 -1
- package/dist/components/tds-header-launcher-button.js +39 -1
- package/dist/components/tds-header-launcher-grid-item.js +1 -1
- package/dist/components/tds-header-launcher-grid-title.js +1 -1
- package/dist/components/tds-header-launcher-grid.js +1 -1
- package/dist/components/tds-header-launcher-list-item.js +5 -8
- package/dist/components/tds-header-launcher-list-title.js +1 -1
- package/dist/components/tds-header-launcher-list.js +5 -8
- package/dist/components/tds-header-launcher.js +7 -40
- package/dist/components/tds-header-title.js +1 -1
- package/dist/components/tds-header.js +2 -15
- package/dist/components/tds-icon.js +63 -1
- package/dist/components/tds-inline-tabs.js +5 -9
- package/dist/components/tds-link.js +2 -2
- package/dist/components/tds-message.js +7 -10
- package/dist/components/tds-modal.js +4 -8
- package/dist/components/tds-navigation-tabs.js +5 -9
- package/dist/components/tds-popover-canvas.js +66 -1
- package/dist/components/tds-popover-core.js +1998 -1
- package/dist/components/tds-popover-menu-item.js +3 -3
- package/dist/components/tds-popover-menu.js +6 -10
- package/dist/components/tds-radio-button.js +1 -1
- package/dist/components/tds-side-menu-close-button.js +4 -8
- package/dist/components/tds-side-menu-collapse-button.js +9 -12
- package/dist/components/tds-side-menu-dropdown-list-item.js +6 -5
- package/dist/components/tds-side-menu-dropdown-list.js +4 -3
- package/dist/components/tds-side-menu-dropdown.js +8 -17
- package/dist/components/tds-side-menu-item.js +90 -1
- package/dist/components/tds-side-menu-overlay.js +1 -1
- package/dist/components/tds-side-menu-user-image.js +35 -1
- package/dist/components/tds-side-menu-user-label.js +35 -1
- package/dist/components/tds-side-menu-user.js +6 -15
- package/dist/components/tds-slider.js +13 -16
- package/dist/components/tds-step.js +8 -11
- package/dist/components/tds-table-body-input-wrapper.js +9 -12
- package/dist/components/tds-table-body-row-expandable.js +11 -9
- package/dist/components/tds-table-body-row.js +7 -10
- package/dist/components/tds-table-body.js +11 -6
- package/dist/components/tds-table-footer.js +13 -33
- package/dist/components/tds-table-header-input-wrapper.js +9 -12
- package/dist/components/tds-table-header.js +14 -14
- package/dist/components/tds-table-toolbar.js +7 -10
- package/dist/components/tds-table.js +12 -9
- package/dist/components/tds-text-field.js +9 -13
- package/dist/components/tds-textarea.js +7 -10
- package/dist/components/tds-toast.js +10 -13
- package/dist/components/tds-tooltip.js +5 -9
- package/dist/esm/findClosestComponent-884d0262.js +12 -0
- package/dist/esm/getDirectChildHTMLElementOfKind-96e23d9f.js +9 -0
- package/dist/esm/index-51d04e39.js +58 -46
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tagName-2e4b5836.js +116 -0
- package/dist/esm/tds-accordion-item.entry.js +8 -5
- package/dist/esm/tds-badge.entry.js +1 -1
- package/dist/esm/tds-banner.entry.js +5 -3
- package/dist/esm/tds-block.entry.js +2 -2
- package/dist/esm/tds-body-cell.entry.js +5 -3
- package/dist/esm/tds-breadcrumb.entry.js +1 -1
- package/dist/esm/tds-breadcrumbs.entry.js +1 -1
- package/dist/esm/tds-button.entry.js +3 -3
- package/dist/esm/tds-card.entry.js +4 -2
- package/dist/esm/tds-checkbox.entry.js +2 -2
- package/dist/esm/tds-chip.entry.js +1 -1
- package/dist/esm/tds-core-header-item.entry.js +16 -0
- package/dist/esm/tds-datetime.entry.js +7 -4
- package/dist/esm/tds-divider.entry.js +1 -1
- package/dist/{components/p-1c256b8d.js → esm/tds-dropdown-option.entry.js} +15 -50
- package/dist/{components/p-f5531179.js → esm/tds-dropdown.entry.js} +20 -66
- package/dist/esm/tds-folder-tabs.entry.js +4 -2
- package/dist/esm/tds-footer-group.entry.js +6 -4
- package/dist/esm/tds-footer-item.entry.js +6 -2
- package/dist/esm/tds-footer.entry.js +1 -1
- package/dist/esm/tds-header-brand-symbol.entry.js +2 -2
- package/dist/esm/tds-header-cell.entry.js +9 -4
- package/dist/esm/tds-header-dropdown-list-item.entry.js +2 -2
- package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list.entry.js +3 -3
- package/dist/esm/tds-header-dropdown.entry.js +5 -3
- package/dist/esm/tds-header-hamburger.entry.js +4 -2
- package/dist/esm/{tds-core-header-item_2.entry.js → tds-header-item.entry.js} +7 -17
- package/dist/esm/tds-header-launcher-button.entry.js +4 -2
- package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid.entry.js +2 -2
- package/dist/esm/tds-header-launcher-list-item.entry.js +5 -2
- package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list.entry.js +5 -2
- package/dist/esm/tds-header-launcher.entry.js +6 -3
- package/dist/esm/tds-header-title.entry.js +1 -1
- package/dist/esm/tds-header.entry.js +2 -15
- package/dist/esm/tds-icon.entry.js +1 -1
- package/dist/esm/tds-inline-tabs.entry.js +4 -2
- package/dist/esm/tds-link.entry.js +2 -2
- package/dist/esm/tds-message.entry.js +7 -4
- package/dist/esm/tds-modal.entry.js +3 -1
- package/dist/esm/tds-navigation-tabs.entry.js +4 -2
- package/dist/esm/tds-popover-canvas.entry.js +4 -2
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-popover-menu-item.entry.js +3 -3
- package/dist/esm/tds-popover-menu.entry.js +5 -3
- package/dist/esm/tds-radio-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-close-button.entry.js +3 -1
- package/dist/esm/tds-side-menu-collapse-button.entry.js +8 -5
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +7 -5
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +5 -3
- package/dist/esm/tds-side-menu-dropdown.entry.js +7 -4
- package/dist/esm/tds-side-menu-item.entry.js +8 -5
- package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
- package/dist/esm/tds-side-menu-user-image.entry.js +18 -0
- package/dist/esm/tds-side-menu-user-label.entry.js +18 -0
- package/dist/esm/tds-side-menu-user.entry.js +6 -3
- package/dist/esm/tds-slider.entry.js +12 -9
- package/dist/esm/tds-step.entry.js +7 -4
- package/dist/esm/tds-table-body-input-wrapper.entry.js +8 -5
- package/dist/esm/tds-table-body-row-expandable.entry.js +12 -9
- package/dist/esm/tds-table-body-row.entry.js +6 -3
- package/dist/esm/tds-table-body.entry.js +12 -6
- package/dist/esm/tds-table-footer.entry.js +12 -8
- package/dist/esm/tds-table-header-input-wrapper.entry.js +8 -5
- package/dist/esm/tds-table-header.entry.js +13 -7
- package/dist/esm/tds-table-toolbar.entry.js +6 -3
- package/dist/esm/tds-table.entry.js +13 -9
- package/dist/esm/tds-text-field.entry.js +8 -6
- package/dist/esm/tds-textarea.entry.js +7 -4
- package/dist/esm/tds-toast.entry.js +9 -6
- package/dist/esm/tds-tooltip.entry.js +4 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-01dc0370.entry.js +1 -0
- package/dist/tegel/p-06431096.entry.js +1 -0
- package/dist/tegel/p-07e3a645.entry.js +1 -0
- package/dist/tegel/p-082d6de9.entry.js +1 -0
- package/dist/tegel/p-0a228d69.entry.js +1 -0
- package/dist/tegel/p-0d80429b.entry.js +1 -0
- package/dist/tegel/p-136c978a.entry.js +1 -0
- package/dist/tegel/p-13f14f71.entry.js +1 -0
- package/dist/tegel/p-15638893.entry.js +1 -0
- package/dist/tegel/p-16d3d938.entry.js +1 -0
- package/dist/tegel/p-191a6e60.entry.js +1 -0
- package/dist/tegel/p-19cda6ca.entry.js +1 -0
- package/dist/tegel/p-1c4b7a7d.entry.js +1 -0
- package/dist/tegel/p-2094ccde.entry.js +1 -0
- package/dist/tegel/p-26603eef.entry.js +1 -0
- package/dist/tegel/p-2b5871d5.entry.js +1 -0
- package/dist/tegel/p-304a4c84.entry.js +1 -0
- package/dist/tegel/p-3cc3e9f1.entry.js +1 -0
- package/dist/tegel/p-3cf784a4.entry.js +1 -0
- package/dist/tegel/p-400d5972.entry.js +1 -0
- package/dist/tegel/p-4132bc7c.entry.js +1 -0
- package/dist/tegel/{p-de540cc0.entry.js → p-416d8080.entry.js} +1 -1
- package/dist/tegel/p-43a74ec0.entry.js +1 -0
- package/dist/tegel/p-448fef57.entry.js +1 -0
- package/dist/tegel/p-45aa4dca.entry.js +1 -0
- package/dist/tegel/p-48148b7d.entry.js +1 -0
- package/dist/tegel/p-4a2000f2.entry.js +1 -0
- package/dist/tegel/{p-f9325536.entry.js → p-4b23a02f.entry.js} +1 -1
- package/dist/tegel/p-4eea4c8f.entry.js +1 -0
- package/dist/tegel/p-54a87c06.entry.js +1 -0
- package/dist/tegel/p-5be505ca.entry.js +1 -0
- package/dist/tegel/p-5f5fb18b.entry.js +1 -0
- package/dist/tegel/p-62196862.entry.js +1 -0
- package/dist/tegel/p-6542a541.entry.js +1 -0
- package/dist/tegel/p-6aea533d.entry.js +1 -0
- package/dist/tegel/p-6bc339db.entry.js +1 -0
- package/dist/tegel/p-718a5428.entry.js +1 -0
- package/dist/tegel/{p-fe9b385f.entry.js → p-73d72704.entry.js} +1 -1
- package/dist/tegel/{p-ede11de8.entry.js → p-7639adea.entry.js} +1 -1
- package/dist/tegel/p-79a4da37.entry.js +1 -0
- package/dist/tegel/p-7e989008.entry.js +1 -0
- package/dist/tegel/p-807d3a4e.entry.js +1 -0
- package/dist/tegel/p-81dc1e2f.entry.js +1 -0
- package/dist/tegel/p-854dcbe4.entry.js +1 -0
- package/dist/tegel/p-859e3ebf.js +1 -0
- package/dist/tegel/p-875e2e9c.js +1 -0
- package/dist/tegel/p-876a3b13.entry.js +1 -0
- package/dist/tegel/p-8a5df7a0.entry.js +1 -0
- package/dist/tegel/{p-50fcdc56.entry.js → p-8ccf3a15.entry.js} +1 -1
- package/dist/tegel/p-91072613.entry.js +1 -0
- package/dist/tegel/{p-bda3d846.entry.js → p-938f3efa.entry.js} +1 -1
- package/dist/tegel/p-985a2d37.entry.js +1 -0
- package/dist/tegel/{p-6b405a0f.entry.js → p-9a120de1.entry.js} +1 -1
- package/dist/tegel/p-9ac97508.entry.js +1 -0
- package/dist/tegel/{p-1ce239bf.entry.js → p-9d00bc5e.entry.js} +1 -1
- package/dist/tegel/p-9e49e118.entry.js +1 -0
- package/dist/tegel/p-a056ecbf.entry.js +1 -0
- package/dist/tegel/p-a66dcbc0.entry.js +1 -0
- package/dist/tegel/p-abe194db.entry.js +1 -0
- package/dist/tegel/p-ae0d0422.entry.js +1 -0
- package/dist/tegel/{p-c3513f1f.entry.js → p-b1fcdbd1.entry.js} +1 -1
- package/dist/tegel/p-b33f8162.js +1 -0
- package/dist/tegel/{p-9bf7f5cd.entry.js → p-b36fafa5.entry.js} +1 -1
- package/dist/tegel/{p-e65dba91.entry.js → p-b7cb84d1.entry.js} +1 -1
- package/dist/tegel/{p-cd289e17.entry.js → p-c026cd40.entry.js} +1 -1
- package/dist/tegel/p-ca19d259.entry.js +1 -0
- package/dist/tegel/{p-0df92ce7.entry.js → p-cc2524ea.entry.js} +1 -1
- package/dist/tegel/p-cdd4acb0.entry.js +1 -0
- package/dist/tegel/p-d023830f.entry.js +1 -0
- package/dist/tegel/p-d18575db.js +1 -0
- package/dist/tegel/{p-a464920f.entry.js → p-db250bc9.entry.js} +1 -1
- package/dist/tegel/p-ddb96690.entry.js +1 -0
- package/dist/tegel/p-e455db38.entry.js +1 -0
- package/dist/tegel/p-ef49682d.entry.js +1 -0
- package/dist/tegel/p-efc72ccb.entry.js +1 -0
- package/dist/tegel/p-f7c4f098.entry.js +1 -0
- package/dist/tegel/{p-137929b7.entry.js → p-fb026b94.entry.js} +1 -1
- package/dist/tegel/p-fc844498.entry.js +1 -0
- package/dist/tegel/tegel.css +1 -1
- 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/datetime/datetime.d.ts +1 -0
- package/dist/types/components/header/header-launcher-list/header-launcher-list.d.ts +1 -0
- package/dist/types/components/header/header-launcher-list-item/header-launcher-list-item.d.ts +1 -0
- package/dist/types/components/header/header.d.ts +0 -2
- package/dist/types/components/message/message.d.ts +1 -0
- package/dist/types/components/side-menu/side-menu-user/side-menu-user.d.ts +1 -0
- package/dist/types/components/slider/slider.d.ts +1 -0
- package/dist/types/components/stepper/step/step.d.ts +1 -1
- package/dist/types/components/table/table/table.d.ts +1 -1
- package/dist/types/components/table/table-footer/table-footer.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/utils/findClosestComponent.d.ts +9 -0
- package/dist/types/utils/getDirectChildHTMLElementOfKind.d.ts +2 -0
- package/dist/types/utils/tagName.d.ts +6 -0
- package/dist/types/utils/tagNames.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +0 -38
- package/dist/components/p-09d36119.js +0 -37
- package/dist/components/p-0c3cab16.js +0 -90
- package/dist/components/p-30de8ac4.js +0 -32
- package/dist/components/p-3e74be57.js +0 -65
- package/dist/components/p-8e74bb22.js +0 -57
- package/dist/components/p-a9609e88.js +0 -72
- package/dist/components/p-cfb1b588.js +0 -41
- package/dist/components/p-dc461e7b.js +0 -2000
- package/dist/components/p-dddaa520.js +0 -37
- package/dist/components/p-e46088d9.js +0 -35
- package/dist/components/p-e4d7c655.js +0 -91
- package/dist/components/p-fcec766c.js +0 -101
- package/dist/esm/tds-dropdown_2.entry.js +0 -560
- package/dist/esm/tds-side-menu-user-image_2.entry.js +0 -33
- package/dist/tegel/p-06d2fa56.entry.js +0 -1
- package/dist/tegel/p-088bfcd4.entry.js +0 -1
- package/dist/tegel/p-0f38bea7.entry.js +0 -1
- package/dist/tegel/p-0f486a7c.entry.js +0 -1
- package/dist/tegel/p-1634247e.entry.js +0 -1
- package/dist/tegel/p-1a2f3852.entry.js +0 -1
- package/dist/tegel/p-1bc2c73c.entry.js +0 -1
- package/dist/tegel/p-285d7485.entry.js +0 -1
- package/dist/tegel/p-2b030cef.entry.js +0 -1
- package/dist/tegel/p-2e44b4e9.entry.js +0 -1
- package/dist/tegel/p-46fe6712.entry.js +0 -1
- package/dist/tegel/p-4ab7461e.entry.js +0 -1
- package/dist/tegel/p-4bab99d5.entry.js +0 -1
- package/dist/tegel/p-51e49417.entry.js +0 -1
- package/dist/tegel/p-52be41ce.entry.js +0 -1
- package/dist/tegel/p-54a105a4.entry.js +0 -1
- package/dist/tegel/p-588a05aa.entry.js +0 -1
- package/dist/tegel/p-5a891dd2.entry.js +0 -1
- package/dist/tegel/p-5d0e8f1e.entry.js +0 -1
- package/dist/tegel/p-6938329a.entry.js +0 -1
- package/dist/tegel/p-6aabf7e1.entry.js +0 -1
- package/dist/tegel/p-6c26e66f.entry.js +0 -1
- package/dist/tegel/p-73dd2dbb.entry.js +0 -1
- package/dist/tegel/p-7a83cf55.entry.js +0 -1
- package/dist/tegel/p-7d83ba98.entry.js +0 -1
- package/dist/tegel/p-831111e9.entry.js +0 -1
- package/dist/tegel/p-8ae952b6.entry.js +0 -1
- package/dist/tegel/p-91225c7a.entry.js +0 -1
- package/dist/tegel/p-91dcddd5.entry.js +0 -1
- package/dist/tegel/p-930e767e.entry.js +0 -1
- package/dist/tegel/p-9332c225.js +0 -1
- package/dist/tegel/p-959a6780.entry.js +0 -1
- package/dist/tegel/p-987084a5.entry.js +0 -1
- package/dist/tegel/p-9c2dfecc.entry.js +0 -1
- package/dist/tegel/p-9de400f4.entry.js +0 -1
- package/dist/tegel/p-a5a67770.entry.js +0 -1
- package/dist/tegel/p-a642c800.entry.js +0 -1
- package/dist/tegel/p-a9654cd4.entry.js +0 -1
- package/dist/tegel/p-aed1c5cf.entry.js +0 -1
- package/dist/tegel/p-b21eb276.entry.js +0 -1
- package/dist/tegel/p-b4c7099f.entry.js +0 -1
- package/dist/tegel/p-b9ac3122.entry.js +0 -1
- package/dist/tegel/p-b9e37cf2.entry.js +0 -1
- package/dist/tegel/p-bb129d43.entry.js +0 -1
- package/dist/tegel/p-bcae4d3a.entry.js +0 -1
- package/dist/tegel/p-c18b2746.entry.js +0 -1
- package/dist/tegel/p-c790ef93.entry.js +0 -1
- package/dist/tegel/p-c917d8be.entry.js +0 -1
- package/dist/tegel/p-cd5219ac.entry.js +0 -1
- package/dist/tegel/p-d1cbe5be.entry.js +0 -1
- package/dist/tegel/p-db00f607.entry.js +0 -1
- package/dist/tegel/p-dcbd977f.entry.js +0 -1
- package/dist/tegel/p-e7108828.entry.js +0 -1
- package/dist/tegel/p-ed02ad2b.entry.js +0 -1
- package/dist/tegel/p-f0d46e61.entry.js +0 -1
- package/dist/tegel/p-f841f094.entry.js +0 -1
- package/dist/tegel/p-ff5cd75f.entry.js +0 -1
- package/dist/cjs/{isHeadingElement-4f06b688.js → getPreviousNestedChildOfSiblingsMatching-4e700df1.js} +12 -12
- package/dist/esm/{isHeadingElement-8efea284.js → getPreviousNestedChildOfSiblingsMatching-a6fcb512.js} +12 -12
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-51d04e39.js';
|
|
2
|
+
import { g as getPrefixedTagNames } from './tagName-2e4b5836.js';
|
|
3
|
+
import { f as findClosestComponent } from './findClosestComponent-884d0262.js';
|
|
2
4
|
|
|
3
|
-
const stepCss = ":host{position:relative;display:table-cell}:host [role=listitem]{display:flex;justify-content:start;flex-direction:row;align-items:center;gap:8px}:host [role=listitem].text-below{flex-direction:column}:host [role=listitem].lg{padding:0 20px;font:var(--tds-detail-01);letter-spacing:var(--tds-detail-01-ls)}:host [role=listitem].lg .content-container{height:30px;min-width:30px}:host [role=listitem].lg .content-container tds-
|
|
5
|
+
const stepCss = ":host{position:relative;display:table-cell}:host [role=listitem]{display:flex;justify-content:start;flex-direction:row;align-items:center;gap:8px}:host [role=listitem].text-below{flex-direction:column}:host [role=listitem].lg{padding:0 20px;font:var(--tds-detail-01);letter-spacing:var(--tds-detail-01-ls)}:host [role=listitem].lg .content-container{height:30px;min-width:30px}:host [role=listitem].lg .content-container .tds-icon__icon{vertical-align:bottom}:host [role=listitem].lg .content-container .index-container{vertical-align:sub}:host [role=listitem].lg.vertical::after{content:\" \";position:absolute;background-color:var(--tds-stepper-icon-step-background-after);opacity:0.16;height:36px;width:1px;top:40px;left:36px}:host [role=listitem].lg.horizontal::after{content:\" \";position:absolute;background-color:var(--tds-stepper-icon-step-background-after);opacity:0.16;height:1px;left:calc(50% + 24px);right:0;top:18px}:host [role=listitem].lg.horizontal::before{content:\" \";position:absolute;background-color:var(--tds-stepper-icon-step-background-after);opacity:0.16;height:1px;right:calc(50% + 24px);left:0;top:18px}:host [role=listitem].lg.horizontal.text-aside:not(.hide-labels)::after{content:\" \";position:absolute;background-color:var(--tds-stepper-icon-step-background-after);opacity:0.16;height:1px;top:16px;width:10px;left:auto;right:-10px}:host [role=listitem].lg.horizontal.text-aside:not(.hide-labels)::before{content:\" \";position:absolute;background-color:var(--tds-stepper-icon-step-background-after);opacity:0.16;height:1px;top:16px;width:10px;left:-10px;right:auto}:host [role=listitem].sm{padding:0 20px;font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls)}:host [role=listitem].sm .index-container{vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline}:host [role=listitem].sm .content-container{height:24px;min-width:24px}:host [role=listitem].sm .tds-step-icon{vertical-align:-webkit-baseline-middle;vertical-align:-moz-middle-with-baseline;margin-top:-2px}:host [role=listitem].sm.vertical::after{content:\" \";position:absolute;background-color:var(--tds-stepper-icon-step-background-after);opacity:0.16;height:20px;width:1px;top:34px;left:32px}:host [role=listitem].sm.vertical::before{content:\" \";position:absolute;background-color:var(--tds-stepper-icon-step-background-after);opacity:0.16;height:20px;width:1px;top:34px;left:32px}:host [role=listitem].sm.horizontal::after{content:\" \";position:absolute;background-color:var(--tds-stepper-icon-step-background-after);opacity:0.16;height:1px;left:calc(50% + 16px + 8px);right:0;top:13px}:host [role=listitem].sm.horizontal::before{content:\" \";position:absolute;background-color:var(--tds-stepper-icon-step-background-after);opacity:0.16;height:1px;left:0;right:calc(50% + 24px);top:13px}:host [role=listitem].sm.horizontal.text-aside:not(.hide-labels)::after{content:\" \";position:absolute;background-color:var(--tds-stepper-icon-step-background-after);opacity:0.16;height:1px;top:13px;width:10px;left:auto;right:-10px}:host [role=listitem].sm.horizontal.text-aside:not(.hide-labels)::before{content:\" \";position:absolute;background-color:var(--tds-stepper-icon-step-background-after);opacity:0.16;height:1px;top:13px;width:10px;left:-10px;right:auto}:host [role=listitem] .content-container{border-radius:100px;border:1px solid var(--tds-stepper-icon-background);text-align:center;position:relative}:host [role=listitem] .content-container.error{border-color:var(--tds-negative);color:var(--tds-negative)}:host [role=listitem] .content-container.success{background-color:var(--tds-positive);border-color:var(--tds-positive);color:var(--tds-white)}:host [role=listitem] .content-container.upcoming{background-color:transparent;border-color:var(--tds-stepper-label-border-color-upcoming);color:var(--tds-stepper-label-text-color-upcoming);opacity:var(--tds-stepper-label-text-opacity-upcoming)}:host [role=listitem] .label{text-align:center}:host [role=listitem] .label.lg{font:var(--tds-detail-01);letter-spacing:var(--tds-detail-01-ls)}:host [role=listitem] .label.sm{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls)}:host [role=listitem] .label.upcoming{color:var(--tds-stepper-label-text-color-upcoming);opacity:var(--tds-stepper-label-text-opacity-upcoming)}:host(:last-of-type) [role=listitem].horizontal{padding-right:0}:host(:last-of-type) [role=listitem].sm::after,:host(:last-of-type) [role=listitem].lg::after{display:none}:host(:last-of-type) [role=listitem].sm.vertical::before{display:none}:host(:first-of-type) [role=listitem].horizontal{padding-left:0}:host(:first-of-type) [role=listitem].sm::before,:host(:first-of-type) [role=listitem].lg::before{display:none}";
|
|
4
6
|
const TdsStepStyle0 = stepCss;
|
|
5
7
|
|
|
6
8
|
const propToStateMap = {
|
|
@@ -21,7 +23,7 @@ const TdsStep = class {
|
|
|
21
23
|
}
|
|
22
24
|
/* Needs to be onload to do this on any updates. */
|
|
23
25
|
componentWillLoad() {
|
|
24
|
-
this.stepperEl = this.
|
|
26
|
+
this.stepperEl = findClosestComponent(this.host, 'tdsStepper');
|
|
25
27
|
this.orientation = this.stepperEl.orientation;
|
|
26
28
|
this.labelPosition = this.stepperEl.labelPosition;
|
|
27
29
|
this.size = this.stepperEl.size;
|
|
@@ -41,9 +43,10 @@ const TdsStep = class {
|
|
|
41
43
|
}
|
|
42
44
|
}
|
|
43
45
|
render() {
|
|
44
|
-
|
|
46
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
47
|
+
return (h(Host, { key: '29992ccdc6089419be59ca3004a260d001ce09bc' }, h("div", { key: '8b357d9c3e503d706b8417afa3cf98bf0afaa2db', role: "listitem", class: `${this.size} ${this.orientation} text-${this.labelPosition} ${this.hideLabels ? 'hide-labels' : ''}` }, h("span", { key: 'a75819750c696683abb1c4ed88256ee65ea2ee4e', class: `${this.state} content-container` }, this.state === 'success' || this.state === 'error' ? (h(prefixedTagNames.tdsIcon, { class: 'tds-step-icon', name: this.state === 'success' ? 'tick' : 'warning', size: this.size === 'lg' ? '20px' : '16px' })) : (h("span", { class: "index-container" }, this.index))), !this.hideLabels && (h("div", { key: 'ae0b4e9fb600402086c0c3840b14cad4743c10c5', class: `label ${this.size} ${this.state}` }, h("slot", { key: '529bba8ee45dd888f31550d95bbf1a836d0fab43', name: "label" }))))));
|
|
45
48
|
}
|
|
46
|
-
get
|
|
49
|
+
get host() { return getElement(this); }
|
|
47
50
|
};
|
|
48
51
|
TdsStep.style = TdsStepStyle0;
|
|
49
52
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-51d04e39.js';
|
|
2
|
+
import { g as getPrefixedTagNames } from './tagName-2e4b5836.js';
|
|
3
|
+
import { f as findClosestComponent } from './findClosestComponent-884d0262.js';
|
|
2
4
|
|
|
3
|
-
const tableBodyInputWrapperCss = ":host{position:relative}:host(.focused-input-wrapper)
|
|
5
|
+
const tableBodyInputWrapperCss = ":host{position:relative}:host(.focused-input-wrapper) .edit-icon{display:inline-block}:host(.show-icon) ::slotted(input){padding-right:var(--tds-spacing-element-24)}:host(:hover) .edit-icon{display:inline-block}:host(:hover) ::slotted(input:not(:focus)){background-color:var(--tds-table-input-background-hover)}.edit-icon{display:none;position:absolute;right:10px;top:1px;pointer-events:none;cursor:pointer}::slotted(input){box-sizing:border-box;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding-left:var(--tds-spacing-element-16);padding-right:var(--tds-spacing-element-16);color:var(--tds-table-color);background-color:transparent;height:48px;border-radius:0;border:0;border-bottom:2px solid transparent;width:100%;cursor:pointer}::slotted(input)::placeholder{color:var(--tds-table-color)}::slotted(input:disabled){background-color:var(--tds-table-input-background-disabled)}::slotted(input:focus){outline:none;background-color:var(--tds-table-input-background-focus);border-bottom:2px solid var(--tds-text-field-bar)}:host(.tds-table__compact) ::slotted(input){height:32px;}";
|
|
4
6
|
const TdsTableBodyInputWrapperStyle0 = tableBodyInputWrapperCss;
|
|
5
7
|
|
|
6
8
|
const relevantTableProps = ['compactDesign'];
|
|
@@ -27,7 +29,7 @@ const TdsTableBodyInputWrapper = class {
|
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
connectedCallback() {
|
|
30
|
-
const tableEl = this.host
|
|
32
|
+
const tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
31
33
|
if (tableEl) {
|
|
32
34
|
this.tableId = tableEl.getAttribute('table-id');
|
|
33
35
|
}
|
|
@@ -36,7 +38,7 @@ const TdsTableBodyInputWrapper = class {
|
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
componentWillLoad() {
|
|
39
|
-
const tableEl = this.host
|
|
41
|
+
const tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
40
42
|
if (tableEl) {
|
|
41
43
|
relevantTableProps.forEach((tablePropName) => {
|
|
42
44
|
this[tablePropName] = tableEl[tablePropName];
|
|
@@ -68,11 +70,12 @@ const TdsTableBodyInputWrapper = class {
|
|
|
68
70
|
}
|
|
69
71
|
}
|
|
70
72
|
render() {
|
|
71
|
-
|
|
73
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
74
|
+
return (h(Host, { key: '20eb879a6a7699ae79768bd7e99cc5e2c23465a0', class: {
|
|
72
75
|
'focused-input-wrapper': this.inputFocused,
|
|
73
76
|
'show-icon': this.showIcon,
|
|
74
77
|
'tds-table__compact': this.compactDesign,
|
|
75
|
-
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(
|
|
78
|
+
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(prefixedTagNames.tdsIcon, { class: "edit-icon", slot: "icon", size: "16px", name: "edit" })) : null));
|
|
76
79
|
}
|
|
77
80
|
get host() { return getElement(this); }
|
|
78
81
|
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-51d04e39.js';
|
|
2
2
|
import { g as generateUniqueId } from './generateUniqueId-7934d315.js';
|
|
3
|
+
import { f as findClosestComponent } from './findClosestComponent-884d0262.js';
|
|
4
|
+
import './tagName-2e4b5836.js';
|
|
3
5
|
|
|
4
6
|
const tableBodyRowExpandableCss = ":host{box-sizing:border-box;display:contents}:host *{box-sizing:border-box}:host .tds-table__row,:host .tds-table__row-extend{display:table-row;border-bottom:1px solid var(--tds-table-divider);background-color:var(--tds-table-body-row-background);transition:background-color 200ms ease;color:var(--tds-table-color)}:host .tds-table__row--expanded{border-bottom:none}:host .tds-table__row:hover,:host .tds-table__row-extend:hover{background-color:var(--tds-table-body-row-background-hover)}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:46px;cursor:pointer;padding:0 16px;position:relative}:host .tds-table__expand-control-container .tds-table__expand-input{all:unset;top:0;left:0;width:100%;height:100%;position:absolute;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .tds-table__expand-control-container .tds-expendable-row-icon{height:16px;width:16px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__row-expand{display:none;transition:background-color 200ms ease}:host .tds-table__row-expand--expanded{border-bottom:1px solid var(--tds-table-divider)}:host .tds-table__row-expand .tds-table__cell-expand{max-width:1px;overflow:auto;padding:16px 16px 16px 66px;color:var(--tds-table-color)}:host .tds-table__row-expand .tds-table__cell-expand--overflow-visible{overflow:visible}:host .tds-table__row-expand .tds-table__cell-expand--overflow-hidden{overflow:hidden}:host(.tds-table__row-expand--active) .tds-table__row{background-color:var(--tds-table-body-row-background-selected)}:host(.tds-table__row-expand--active) .tds-table__expand-control-container .tds-expendable-row-icon{transform:rotate(180deg)}:host(.tds-table__row-expand--active) .tds-table__row-expand{background-color:var(--tds-table-body-row-background-selected);display:table-row}:host(.tds-table__compact) .tds-table__expand-control-container{height:30px}:host(.tds-table__compact) .tds-table__row-expand .tds-table__cell-expand{padding:8px 16px 8px 66px}:host(.tds-table__row--hidden){display:none}:host(.tds-table--divider) .tds-table__cell--expand{border-right:1px solid var(--tds-table-divider)}";
|
|
5
7
|
const TdsTableBodyRowExpandableStyle0 = tableBodyRowExpandableCss;
|
|
@@ -74,7 +76,7 @@ const TdsTableBodyRowExpandable = class {
|
|
|
74
76
|
if (this.expanded !== undefined) {
|
|
75
77
|
this.isExpanded = this.expanded;
|
|
76
78
|
}
|
|
77
|
-
this.tableEl = this.host
|
|
79
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
78
80
|
this.tableId = this.tableEl.tableId;
|
|
79
81
|
}
|
|
80
82
|
componentWillLoad() {
|
|
@@ -87,7 +89,7 @@ const TdsTableBodyRowExpandable = class {
|
|
|
87
89
|
this.columnsNumber = this.colSpan;
|
|
88
90
|
}
|
|
89
91
|
else {
|
|
90
|
-
this.columnsNumber = this.tableEl.querySelector('tds-
|
|
92
|
+
this.columnsNumber = this.tableEl.querySelector('.tds-table__header').childElementCount + 1;
|
|
91
93
|
}
|
|
92
94
|
}
|
|
93
95
|
sendValue() {
|
|
@@ -99,26 +101,27 @@ const TdsTableBodyRowExpandable = class {
|
|
|
99
101
|
this.sendValue();
|
|
100
102
|
}
|
|
101
103
|
render() {
|
|
102
|
-
return (h(Host, { key: '
|
|
104
|
+
return (h(Host, { key: 'e275194131e3b901f08e84674b705b5bd4b73dab', class: {
|
|
103
105
|
'tds-table__row': true,
|
|
106
|
+
'tds-table__row-expandable': true,
|
|
104
107
|
'tds-table__row-expand--active': this.isExpanded,
|
|
105
108
|
'tds-table__compact': this.compactDesign,
|
|
106
109
|
'tds-table--divider': this.verticalDividers,
|
|
107
|
-
} }, h("tr", { key: '
|
|
110
|
+
} }, h("tr", { key: '8a488cfb99978c2066d51d0d7eeec350aaf59401', class: {
|
|
108
111
|
'tds-table__row': true,
|
|
109
112
|
'tds-table__row--expanded': this.isExpanded,
|
|
110
|
-
}, part: "row" }, h("td", { key: '
|
|
113
|
+
}, part: "row" }, h("td", { key: '38e261d4dd352b63fda51e5deab4b43e248b0d42', class: {
|
|
111
114
|
'tds-table__cell-expand': true,
|
|
112
|
-
} }, h("label", { key: '
|
|
115
|
+
} }, h("label", { key: 'e4082d9ce72f3f6468fde0dcba42e7e7dad89694', class: "tds-table__expand-control-container" }, h("input", { key: '14caacf5fce60d40c88a9867ccc6aa65ab64ba7d', class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded }), h("span", { key: 'a726e3de3ec5f2d1c428b6b212344f8f9bdf75f4', class: "tds-expendable-row-icon" }, h("svg", { key: '8f7bb2b5c774f56af390f0c698ee4b1d856ba91d', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '9591cbc63658dff5264e8a71a192f3a2f9433353', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M4.273 9.783a1 1 0 0 1 1.415 0l9.888 9.888a.6.6 0 0 0 .848 0l9.888-9.888a1 1 0 1 1 1.415 1.414l-9.889 9.889a2.6 2.6 0 0 1-3.677 0l-9.888-9.889a1 1 0 0 1 0-1.414Z", fill: "currentColor" }))))), h("slot", { key: '835d2581036aa51becf36911bc5f777722cd7e4d' })), h("tr", { key: 'd2f07ef2ab2eed65c9fff301bcc371b9000fb6f1', class: {
|
|
113
116
|
'tds-table__row-expand': true,
|
|
114
117
|
'tds-table__row-expand--expanded': this.isExpanded,
|
|
115
|
-
}, part: "expand-row" }, h("td", { key: '
|
|
118
|
+
}, part: "expand-row" }, h("td", { key: 'b98c7704015cc08c0561b591ea0a9c59e5d10d43', class: {
|
|
116
119
|
'tds-table__cell-expand': true,
|
|
117
120
|
'tds-table__cell-expand--overflow-hidden': this.overflow === 'hidden',
|
|
118
121
|
'tds-table__cell-expand--overflow-visible': this.overflow === 'visible',
|
|
119
|
-
}, part: "expand-row-cell", colSpan: this.columnsNumber }, h("div", { key: '
|
|
122
|
+
}, part: "expand-row-cell", colSpan: this.columnsNumber }, h("div", { key: 'dd5e53a20718e92dda6ff93d6a715054289bab51', style: {
|
|
120
123
|
overflow: this.overflow,
|
|
121
|
-
} }, h("slot", { key: '
|
|
124
|
+
} }, h("slot", { key: '7e919ed8681143d6bdf13afe6b94d6a8e23be046', name: "expand-row" }))))));
|
|
122
125
|
}
|
|
123
126
|
get host() { return getElement(this); }
|
|
124
127
|
static get watchers() { return {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-51d04e39.js';
|
|
2
|
+
import { g as getPrefixedTagNames } from './tagName-2e4b5836.js';
|
|
3
|
+
import { f as findClosestComponent } from './findClosestComponent-884d0262.js';
|
|
2
4
|
|
|
3
5
|
const tableBodyRowCss = ":host(.tds-table__row){box-sizing:border-box;display:table-row;border-bottom:1px solid var(--tds-table-divider);background-color:var(--tds-table-body-row-background);transition:background-color 200ms ease;color:var(--tds-table-color)}:host(.tds-table__row) *{box-sizing:border-box}:host(.tds-table__row) .tds-table__body-cell--checkbox{min-width:48px;width:48px;padding:0}:host(.tds-table__row:hover){background-color:var(--tds-table-body-row-background-hover)}:host(.tds-table__row--selected){background-color:var(--tds-table-body-row-background-selected)}:host(.tds-table__row--selected:hover){background-color:var(--tds-table-body-row-background-selected-hover)}:host(.tds-table__row--hidden){display:none}:host(.tds-table__row--expended){width:100%;background-color:pink}:host .tds-form-label--table{width:100%;height:48px;display:flex;justify-content:center;align-items:center;cursor:pointer}:host(.tds-table__compact) .tds-form-label--table{height:32px}:host(.tds-table--divider) .tds-table__body-cell--checkbox{border-right:1px solid var(--tds-table-divider)}:host(.tds-table__row--clickable){cursor:pointer}:host(.tds-table__row--clickable:focus-visible){outline:var(--focus-outline, 2px solid blue)}";
|
|
4
6
|
const TdsTableBodyRowStyle0 = tableBodyRowCss;
|
|
@@ -60,7 +62,7 @@ const TdsTableBodyRow = class {
|
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
64
|
connectedCallback() {
|
|
63
|
-
this.tableEl = this.host
|
|
65
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
64
66
|
this.tableId = this.tableEl.tableId;
|
|
65
67
|
}
|
|
66
68
|
componentWillLoad() {
|
|
@@ -69,13 +71,14 @@ const TdsTableBodyRow = class {
|
|
|
69
71
|
});
|
|
70
72
|
}
|
|
71
73
|
render() {
|
|
72
|
-
|
|
74
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
75
|
+
return (h(Host, { key: 'cfd1becf3ee22ac65136c27fdaca6f959223ef3e', tabindex: this.clickable ? '0' : null, class: {
|
|
73
76
|
'tds-table__row': true,
|
|
74
77
|
'tds-table__row--selected': this.selected,
|
|
75
78
|
'tds-table__compact': this.compactDesign,
|
|
76
79
|
'tds-table--divider': this.verticalDividers,
|
|
77
80
|
'tds-table__row--clickable': this.clickable,
|
|
78
|
-
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e) }, this.multiselect && (h("td", { key: '
|
|
81
|
+
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e) }, this.multiselect && (h("td", { key: 'c2ccf6b1f7a66f1bd4c52cce338a1def6266213b', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h(prefixedTagNames.tdsCheckbox, { key: '119932b4933f138bc2e70b11ade59a93ff27e576', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("slot", { key: '94e8b65e4a5cd1bc64db114c0de0ea914846fa44' })));
|
|
79
82
|
}
|
|
80
83
|
get host() { return getElement(this); }
|
|
81
84
|
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-51d04e39.js';
|
|
2
|
+
import { f as findClosestComponent } from './findClosestComponent-884d0262.js';
|
|
3
|
+
import { g as getDirectChildHTMLElementOfKind } from './getDirectChildHTMLElementOfKind-96e23d9f.js';
|
|
4
|
+
import './tagName-2e4b5836.js';
|
|
2
5
|
|
|
3
|
-
const tableBodyCss = ":host
|
|
6
|
+
const tableBodyCss = ":host,.tds-table__body{box-sizing:border-box;display:table-row-group}:host *,.tds-table__body *{box-sizing:border-box}:host .tds-table__info-message,.tds-table__body .tds-table__info-message{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:table-cell;box-sizing:border-box;color:var(--tds-table-color);padding:var(--tds-spacing-element-16);min-width:192px;vertical-align:top;background-color:transparent;transition:background-color 200ms ease}.tds-table__body.tds-table--zebra-mode-rows-odd .tds-table__row:nth-child(odd){background-color:var(--tds-table-zebra-mode-backround)}.tds-table__body.tds-table--zebra-mode-rows-odd .tds-table__row:nth-child(odd):hover{background-color:var(--tds-table-body-row-background-hover)}.tds-table__body.tds-table--zebra-mode-rows-even .tds-table__row:nth-child(even){background-color:var(--tds-table-zebra-mode-backround)}.tds-table__body.tds-table--zebra-mode-rows-even .tds-table__row:nth-child(even):hover{background-color:var(--tds-table-body-row-background-hover)}.tds-table__body.tds-table--zebra-mode-columns-odd .tds-table__body-cell:nth-child(odd){background-color:var(--tds-table-zebra-mode-backround)}.tds-table__body.tds-table--zebra-mode-columns-odd .tds-table__body-cell.tds-table__body-cell--hover:nth-child(odd){background-color:var(--tds-table-body-cell-background-hover)}.tds-table__body.tds-table--zebra-mode-columns-even .tds-table__body-cell:nth-child(even){background-color:var(--tds-table-zebra-mode-backround)}.tds-table__body.tds-table--zebra-mode-columns-even .tds-table__body-cell.tds-table__body-cell--hover:nth-child(even){background-color:var(--tds-table-body-cell-background-hover)}.tds-table__body.tds-table--zebra-mode-columns-even .tds-table__row:hover .tds-table__body-cell,.tds-table__body.tds-table--zebra-mode-columns-odd .tds-table__row:hover .tds-table__body-cell{background-color:transparent}";
|
|
4
7
|
const TdsTableBodyStyle0 = tableBodyCss;
|
|
5
8
|
|
|
6
9
|
const relevantTableProps = [
|
|
@@ -43,7 +46,7 @@ const TdsTableBody = class {
|
|
|
43
46
|
this.bodyCheckBoxClicked();
|
|
44
47
|
}
|
|
45
48
|
connectedCallback() {
|
|
46
|
-
this.tableEl = this.host
|
|
49
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
47
50
|
this.tableId = this.tableEl.tableId;
|
|
48
51
|
}
|
|
49
52
|
componentWillLoad() {
|
|
@@ -52,8 +55,10 @@ const TdsTableBody = class {
|
|
|
52
55
|
});
|
|
53
56
|
}
|
|
54
57
|
componentWillRender() {
|
|
55
|
-
const
|
|
56
|
-
|
|
58
|
+
const table = findClosestComponent(this.host, 'tdsTable');
|
|
59
|
+
const tableHeader = getDirectChildHTMLElementOfKind(table, 'tds-table-header')[0];
|
|
60
|
+
const headerColumnsNo = tableHeader.children.length;
|
|
61
|
+
// Adjust column count for controls
|
|
57
62
|
if (this.multiselect || this.expandableRows) {
|
|
58
63
|
this.columnsNumber = headerColumnsNo + 1;
|
|
59
64
|
}
|
|
@@ -62,12 +67,13 @@ const TdsTableBody = class {
|
|
|
62
67
|
}
|
|
63
68
|
}
|
|
64
69
|
render() {
|
|
65
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: 'd449c07d33d9bee1367b30575ac0235ca4c23c48', "data-selected-rows": this.multiselectArrayJSON, class: {
|
|
71
|
+
'tds-table__body': true,
|
|
66
72
|
'tds-table--zebra-mode-rows-odd': this.zebraMode === 'rows-odd',
|
|
67
73
|
'tds-table--zebra-mode-rows-even': this.zebraMode === 'rows-even',
|
|
68
74
|
'tds-table--zebra-mode-columns-odd': this.zebraMode === 'columns-odd',
|
|
69
75
|
'tds-table--zebra-mode-columns-even': this.zebraMode === 'columns-even',
|
|
70
|
-
} }, h("slot", { key: '
|
|
76
|
+
} }, h("slot", { key: '8eb5de644e4aa6d05fdaad9c0cab9baa7c0ad3e0' })));
|
|
71
77
|
}
|
|
72
78
|
get host() { return getElement(this); }
|
|
73
79
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-51d04e39.js';
|
|
2
|
+
import { g as getPrefixedTagNames } from './tagName-2e4b5836.js';
|
|
3
|
+
import { f as findClosestComponent } from './findClosestComponent-884d0262.js';
|
|
2
4
|
|
|
3
|
-
const tableFooterCss = ":host{box-sizing:border-box;display:table-footer-group;height:var(--tds-spacing-element-48)}:host *{box-sizing:border-box}:host .tds-table__footer-row{background-color:var(--tds-table-footer-background);color:var(--tds-table-color)}:host .tds-table__footer-cell{padding:0 var(--tds-spacing-element-16)}:host .tds-table__footer-cell .tds-table__pagination{height:var(--tds-spacing-element-48);display:flex;align-items:center;justify-content:space-between}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector{display:flex;align-items:center}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector .rows-per-page,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector .rows-per-page{display:flex;align-items:center;margin-right:var(--tds-spacing-element-16)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector .rows-per-page p,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector .rows-per-page p{margin-right:var(--tds-spacing-element-8)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);background-color:var(--tds-table-footer-page-selector-input-background);color:var(--tds-table-color);width:54px;height:30px;border:none;border-radius:var(--tds-spacing-element-4);transition:background-color 250ms ease;margin-right:var(--tds-spacing-element-4);padding-left:var(--tds-spacing-element-16)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:hover{background-color:var(--tds-table-footer-page-selector-input-background-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:disabled{color:var(--tds-table-footer-page-selector-input-color-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input--shake{animation:tds-shake-animation 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;transform:translate3d(0, 0, 0);backface-visibility:hidden;perspective:1000px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-text{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:1px 8px 0 0}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{display:flex;justify-content:center;align-items:center;border:none;background-color:transparent;cursor:pointer;height:var(--tds-spacing-element-32);width:var(--tds-spacing-element-32);border-radius:var(--tds-spacing-element-4);transition:background-color 250ms ease;color:var(--tds-table-footer-page-selector-icon)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:hover{background-color:var(--tds-table-footer-btn-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled{cursor:default;color:var(--tds-table-footer-page-selector-icon-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled:hover{background-color:transparent}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn-svg{height:var(--tds-spacing-element-20);width:var(--tds-spacing-element-20);fill:var(--tds-table-color)}:host(.tds-table--compact){height:var(--tds-spacing-element-32)}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination{height:var(--tds-spacing-element-32)}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{height:var(--tds-spacing-element-24)}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{height:28px;width:28px}:host(.footer__horizontal-scroll){display:inline-table;position:absolute;margin-top:10px}@keyframes tds-shake-animation{10%,90%{transform:translate3d(-1px, 0, 0)}20%,80%{transform:translate3d(2px, 0, 0)}30%,50%,70%{transform:translate3d(-4px, 0, 0)}40%,60%{transform:translate3d(4px, 0, 0)}}
|
|
5
|
+
const tableFooterCss = ":host{box-sizing:border-box;display:table-footer-group;height:var(--tds-spacing-element-48)}:host *{box-sizing:border-box}:host .tds-table__footer-row{background-color:var(--tds-table-footer-background);color:var(--tds-table-color)}:host .tds-table__footer-cell{padding:0 var(--tds-spacing-element-16)}:host .tds-table__footer-cell .tds-table__pagination{height:var(--tds-spacing-element-48);display:flex;align-items:center;justify-content:space-between}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector{display:flex;align-items:center}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector .rows-per-page,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector .rows-per-page{display:flex;align-items:center;margin-right:var(--tds-spacing-element-16)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__row-selector .rows-per-page p,:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector .rows-per-page p{margin-right:var(--tds-spacing-element-8)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);background-color:var(--tds-table-footer-page-selector-input-background);color:var(--tds-table-color);width:54px;height:30px;border:none;border-radius:var(--tds-spacing-element-4);transition:background-color 250ms ease;margin-right:var(--tds-spacing-element-4);padding-left:var(--tds-spacing-element-16)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:hover{background-color:var(--tds-table-footer-page-selector-input-background-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input:disabled{color:var(--tds-table-footer-page-selector-input-color-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input--shake{animation:tds-shake-animation 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;transform:translate3d(0, 0, 0);backface-visibility:hidden;perspective:1000px}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-text{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:1px 8px 0 0}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{display:flex;justify-content:center;align-items:center;border:none;background-color:transparent;cursor:pointer;height:var(--tds-spacing-element-32);width:var(--tds-spacing-element-32);border-radius:var(--tds-spacing-element-4);transition:background-color 250ms ease;color:var(--tds-table-footer-page-selector-icon)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:hover{background-color:var(--tds-table-footer-btn-hover)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled{cursor:default;color:var(--tds-table-footer-page-selector-icon-disabled)}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn:disabled:hover{background-color:transparent}:host .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn-svg{height:var(--tds-spacing-element-20);width:var(--tds-spacing-element-20);fill:var(--tds-table-color)}:host(.tds-table--compact){height:var(--tds-spacing-element-32)}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination{height:var(--tds-spacing-element-32)}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__page-selector-input{height:var(--tds-spacing-element-24)}:host(.tds-table--compact) .tds-table__footer-cell .tds-table__pagination .tds-table__footer-btn{height:28px;width:28px}:host(.footer__horizontal-scroll){display:inline-table;position:absolute;margin-top:10px}@keyframes tds-shake-animation{10%,90%{transform:translate3d(-1px, 0, 0)}20%,80%{transform:translate3d(2px, 0, 0)}30%,50%,70%{transform:translate3d(-4px, 0, 0)}40%,60%{transform:translate3d(4px, 0, 0)}}.page-dropdown:focus-within::after{content:\"\";position:absolute;bottom:0;left:0;height:100%;width:100%;background-color:transparent;border-radius:var(--tds-spacing-element-4);pointer-events:none;outline:2px solid var(--tds-blue-400);outline-offset:-2px}";
|
|
4
6
|
const TdsTableFooterStyle0 = tableFooterCss;
|
|
5
7
|
|
|
6
8
|
const relevantTableProps = [
|
|
@@ -83,16 +85,16 @@ const TdsTableFooter = class {
|
|
|
83
85
|
}
|
|
84
86
|
}
|
|
85
87
|
connectedCallback() {
|
|
86
|
-
this.tableEl = this.host
|
|
88
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
87
89
|
this.tableId = this.tableEl.tableId;
|
|
88
90
|
}
|
|
89
|
-
|
|
91
|
+
componentDidLoad() {
|
|
90
92
|
relevantTableProps.forEach((tablePropName) => {
|
|
91
93
|
this[tablePropName] = this.tableEl[tablePropName];
|
|
92
94
|
});
|
|
93
95
|
this.storeLastCorrectValue(this.paginationValue);
|
|
94
96
|
/** Get the number of columns. */
|
|
95
|
-
const numberOfColumns = this.host.parentElement.querySelector('tds-
|
|
97
|
+
const numberOfColumns = this.host.parentElement.querySelector('.tds-table__header').childElementCount;
|
|
96
98
|
if (this.cols) {
|
|
97
99
|
this.columnsNumber = this.cols;
|
|
98
100
|
}
|
|
@@ -133,12 +135,14 @@ const TdsTableFooter = class {
|
|
|
133
135
|
}
|
|
134
136
|
render() {
|
|
135
137
|
var _a;
|
|
136
|
-
|
|
138
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
139
|
+
return (h(Host, { key: 'da39085487ba931d60e338e75b4dff13481cfaf1', class: {
|
|
140
|
+
'tds-table__footer': true,
|
|
137
141
|
'tds-table--compact': this.compactDesign,
|
|
138
142
|
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
139
|
-
}, style: this.getStyles() }, h("tr", { key: '
|
|
140
|
-
return (h(
|
|
141
|
-
}))))), h("div", { key: '
|
|
143
|
+
}, style: this.getStyles() }, h("tr", { key: 'b7de7d5272df212a14b0e873b189abd1a7fae0b8', class: "tds-table__footer-row" }, h("td", { key: 'c667e0a78cda25e62ea7572628056691c5dce2e7', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '5ace612f33fe8e28730a2d8e2d698b4e8310c2d7', class: "tds-table__pagination" }, h("div", { key: 'fc2f7fee9ba348087e192531a2f77ddf4ba6393e', class: "tds-table__row-selector" }, this.rowsperpage && ((_a = this.rowsPerPageValues) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("div", { key: 'ac6d4d17ace7ec7688ad340eecdeb9d5050f576b', class: "rows-per-page" }, h("p", { key: 'fba8bf499d2fe16f10a198469095083d963ad6d3' }, "Rows per page"), h(prefixedTagNames.tdsDropdown, { key: '7c041e6c1d778f0d24bb059fa7e37192d4225bf9', modeVariant: "secondary", id: "rows-dropdown", class: "page-dropdown", size: "xs", defaultValue: `${this.rowsPerPageValues[0]}`, onTdsChange: (event) => this.rowsPerPageChange(event) }, this.rowsPerPageValues.map((value) => {
|
|
144
|
+
return (h(prefixedTagNames.tdsDropdownOption, { value: `${value}` }, value));
|
|
145
|
+
}))))), h("div", { key: '2e32b948d847694ad74f833b5676c804cf6c2157', class: "tds-table__page-selector" }, h("input", { key: '901d8d532d200ae0507272c686f90c966bb587ed', ref: (element) => (this.inputElement = element), class: "tds-table__page-selector-input", type: "number", min: "1", max: this.pages, value: this.paginationValue, pattern: "[0-9]+", dir: "ltr", onChange: (event) => this.paginationInputChange(event), onAnimationEnd: removeShakeAnimation }), h("p", { key: 'bb89fdd72f40f31536e82b681083484d1efae714', class: "tds-table__footer-text" }, "of ", h("span", { key: 'fd449fbd27cc1d3192b51a3a97f8167579e2556f' }, this.pages), " pages"), h("button", { key: 'e70a18bc1f868944f7c0f264722afd7cee140b42', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.firstPage() }, h(prefixedTagNames.tdsIcon, { key: '41ddc6f0c58e635c3d4200c55ab7a34fd3288686', name: "skip_backwards", size: "20px" })), h("button", { key: '56c33b756010d733ed3a473b969e70c7a2a5f676', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h(prefixedTagNames.tdsIcon, { key: '8d5a509cbd314765d1633d5e5b32b6f1290b87df', name: "chevron_left", size: "20px" })), h("button", { key: 'ab75710a3bcc777f21790ab325c8fcee7bf89dfd', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h(prefixedTagNames.tdsIcon, { key: '9b809581458e37542336b93be50c220024317469', name: "chevron_right", size: "20px" })), h("button", { key: 'efa985cfc9a9bbca26a4f95bc9ea6dd073f62ae0', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.lastPage() }, h(prefixedTagNames.tdsIcon, { key: 'db64e73b8acb3a1ae3498d13a5c2c545394f55ce', name: "skip_forward", size: "20px" })))))))));
|
|
142
146
|
}
|
|
143
147
|
get host() { return getElement(this); }
|
|
144
148
|
};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-51d04e39.js';
|
|
2
|
+
import { g as getPrefixedTagNames } from './tagName-2e4b5836.js';
|
|
3
|
+
import { f as findClosestComponent } from './findClosestComponent-884d0262.js';
|
|
2
4
|
|
|
3
|
-
const tableHeaderInputWrapperCss = ":host{position:relative}:host(:hover)
|
|
5
|
+
const tableHeaderInputWrapperCss = ":host{position:relative}:host(:hover) .search-icon{display:inline-block}:host(.focused-input-wrapper) .search-icon{display:inline-block}:host(.focused-input-wrapper) ::slotted(input:not(:focus)){background-color:var(--tds-table-input-background-hover)}:host(.show-icon) ::slotted(input){padding-left:35px}.search-icon{color:var(--tds-table-input-header-icon);position:absolute;left:15px;top:1px}::slotted(input){box-sizing:border-box;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-table-color);padding-left:var(--tds-spacing-element-16);padding-right:var(--tds-spacing-element-16);height:48px;border-radius:0;background-color:transparent;border:0;border-bottom:2px solid transparent}::slotted(input)::placeholder{color:var(--tds-table-input-header-placeholder)}::slotted(input:focus){outline:none;background-color:var(--tds-table-input-header-background-focus);border-bottom:2px solid var(--tds-text-field-bar)}:host(.tds-table__compact) ::slotted(input){height:32px;}";
|
|
4
6
|
const TdsTableHeaderInputWrapperStyle0 = tableHeaderInputWrapperCss;
|
|
5
7
|
|
|
6
8
|
const relevantTableProps = ['compactDesign'];
|
|
@@ -27,7 +29,7 @@ const TdsTableHeaderInputWrapper = class {
|
|
|
27
29
|
}
|
|
28
30
|
}
|
|
29
31
|
connectedCallback() {
|
|
30
|
-
const tableEl = this.host
|
|
32
|
+
const tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
31
33
|
if (tableEl) {
|
|
32
34
|
this.tableId = tableEl.getAttribute('table-id');
|
|
33
35
|
}
|
|
@@ -36,7 +38,7 @@ const TdsTableHeaderInputWrapper = class {
|
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
componentWillLoad() {
|
|
39
|
-
const tableEl = this.host
|
|
41
|
+
const tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
40
42
|
if (tableEl) {
|
|
41
43
|
relevantTableProps.forEach((tablePropName) => {
|
|
42
44
|
this[tablePropName] = tableEl[tablePropName];
|
|
@@ -68,11 +70,12 @@ const TdsTableHeaderInputWrapper = class {
|
|
|
68
70
|
}
|
|
69
71
|
}
|
|
70
72
|
render() {
|
|
71
|
-
|
|
73
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
74
|
+
return (h(Host, { key: 'f46f163de241ce331dca3089eb15528e9e7d6baf', class: {
|
|
72
75
|
'focused-input-wrapper': this.inputFocused,
|
|
73
76
|
'show-icon': this.showIcon,
|
|
74
77
|
'tds-table__compact': this.compactDesign,
|
|
75
|
-
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(
|
|
78
|
+
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(prefixedTagNames.tdsIcon, { class: "search-icon", slot: "icon", size: "16px", name: "search" })) : null));
|
|
76
79
|
}
|
|
77
80
|
get host() { return getElement(this); }
|
|
78
81
|
};
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-51d04e39.js';
|
|
2
|
+
import { g as getPrefixedTagNames } from './tagName-2e4b5836.js';
|
|
3
|
+
import { f as findClosestComponent } from './findClosestComponent-884d0262.js';
|
|
4
|
+
import { g as getDirectChildHTMLElementOfKind } from './getDirectChildHTMLElementOfKind-96e23d9f.js';
|
|
2
5
|
|
|
3
6
|
const tableHeaderCss = ":host{box-sizing:border-box;display:table-header-group}:host *{box-sizing:border-box}:host .tds-table__header-cell--checkbox{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);display:table-cell;text-align:left;color:var(--tds-table-color);background-color:var(--tds-table-header-background);border-bottom:1px solid var(--tds-table-divider);height:48px;box-sizing:border-box;overflow:hidden;transition:background-color 200ms ease;min-width:unset;width:48px;padding:0;border-top-left-radius:4px}:host .tds-form-label--table{width:100%;height:48px;display:flex;justify-content:center;align-items:center;cursor:pointer}:host .tds-table__expand-control-container{display:flex;justify-content:center;align-items:center;height:48px;cursor:pointer}:host .tds-table__expand-control-container .tds-table__expand-input{display:none}:host .tds-table__expand-control-container .tds-expandable-row-icon{height:20px;width:20px;transition:transform 200ms ease;transform:rotate(0)}:host .tds-table__expand-control-container .tds-expandable-row-icon--opened{transform:rotate(180deg)}:host ::slotted(tds-header-cell:hover){background-color:var(--tds-table-header-background-hover)}:host(.tds-table--compact) .tds-table__header-cell--checkbox{height:32px}:host(.tds-table--compact) .tds-form-label--table{height:32px}:host(.tds-table--divider) .tds-table__header-cell--checkbox{border-right:1px solid var(--tds-table-divider)}:host(.tds-table--toolbar-available) .tds-table__header-cell--checkbox{border-top-left-radius:0}";
|
|
4
7
|
const TdsTableHeaderStyle0 = tableHeaderCss;
|
|
@@ -51,11 +54,11 @@ const TdsTableHeaderRow = class {
|
|
|
51
54
|
}
|
|
52
55
|
bodyExpandClicked() {
|
|
53
56
|
const numberOfExtendRowsActive = this.host.parentElement
|
|
54
|
-
.querySelector('tds-
|
|
57
|
+
.querySelector('.tds-table__body')
|
|
55
58
|
.getElementsByClassName('tds-table__row-extend--active').length;
|
|
56
59
|
const numberOfExtendRows = this.host.parentElement
|
|
57
|
-
.querySelector('tds-
|
|
58
|
-
.
|
|
60
|
+
.querySelector('.tds-table__body')
|
|
61
|
+
.getElementsByClassName('.tds-table__row-expandable').length;
|
|
59
62
|
if (numberOfExtendRows === numberOfExtendRowsActive) {
|
|
60
63
|
this.mainExpendSelected = true;
|
|
61
64
|
}
|
|
@@ -64,7 +67,7 @@ const TdsTableHeaderRow = class {
|
|
|
64
67
|
}
|
|
65
68
|
}
|
|
66
69
|
connectedCallback() {
|
|
67
|
-
this.tableEl = this.host
|
|
70
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
68
71
|
this.tableId = this.tableEl.tableId;
|
|
69
72
|
}
|
|
70
73
|
componentWillLoad() {
|
|
@@ -73,8 +76,9 @@ const TdsTableHeaderRow = class {
|
|
|
73
76
|
});
|
|
74
77
|
}
|
|
75
78
|
componentWillRender() {
|
|
79
|
+
const tdsTableElement = findClosestComponent(this.host, 'tdsTable');
|
|
76
80
|
this.enableToolbarDesign =
|
|
77
|
-
|
|
81
|
+
getDirectChildHTMLElementOfKind(tdsTableElement, 'tds-table-toolbar').length >= 1;
|
|
78
82
|
}
|
|
79
83
|
async handleCheckboxChange(event) {
|
|
80
84
|
this.allSelected = event.detail.checked;
|
|
@@ -85,11 +89,13 @@ const TdsTableHeaderRow = class {
|
|
|
85
89
|
});
|
|
86
90
|
}
|
|
87
91
|
render() {
|
|
88
|
-
|
|
92
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
93
|
+
return (h(Host, { key: '986af13197816825c30a3b299cc2f7d1679db040', class: {
|
|
94
|
+
'tds-table__header': true,
|
|
89
95
|
'tds-table--compact': this.compactDesign,
|
|
90
96
|
'tds-table--divider': this.verticalDividers,
|
|
91
97
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
92
|
-
} }, h("tr", { key: '
|
|
98
|
+
} }, h("tr", { key: 'd6c4d067f46bb8ec9163c2376f8a69ea62672fa5' }, this.multiselect && (h("th", { key: '783cc35039a6b41d9dce45a3a55620aed9a3453b', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, h("div", { key: '4a9db9d553a30ae7928b2048386fb5847f49eb76', class: "tds-form-label tds-form-label--table" }, h(prefixedTagNames.tdsCheckbox, { key: '404ae6e1aaab093519956f6b48c7f7fee716577c', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (h("th", { key: '3b317b08db740ead4af6f4dcdd095cbaac85060c', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), h("slot", { key: 'bac9254f26d399eb273e00ccee193d4e3ddd673d' }))));
|
|
93
99
|
}
|
|
94
100
|
get host() { return getElement(this); }
|
|
95
101
|
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-51d04e39.js';
|
|
2
|
+
import { g as getPrefixedTagNames } from './tagName-2e4b5836.js';
|
|
3
|
+
import { f as findClosestComponent } from './findClosestComponent-884d0262.js';
|
|
2
4
|
|
|
3
5
|
const tableToolbarCss = ":host{box-sizing:border-box;display:table-caption;position:relative;background-color:var(--tds-table-toolbar-background);color:var(--tds-table-color);padding:0 var(--tds-spacing-element-16);height:64px;border-top-left-radius:4px;border-top-right-radius:4px}:host *{box-sizing:border-box}:host .tds-table__upper-bar-flex{width:100%;height:100%;display:flex;justify-content:space-between}:host .tds-table__title{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);padding-top:var(--tds-spacing-element-16);text-align:left}:host .tds-table__actionbar,:host slot[name=end]::slotted(*){display:flex;align-self:center}:host .tds-table__searchbar{display:flex;align-self:center;position:relative;height:40px;width:40px;border-radius:4px 4px 0 0;transition:background-color 250ms ease, width 250ms ease;overflow:hidden;background-color:transparent}:host .tds-table__searchbar::after{content:\"\";width:100%;height:2px;position:absolute;bottom:0;background-color:var(--tds-blue-400);transform:scaleX(0);transition:transform 150ms ease}:host .tds-table__searchbar:focus-within::after{transform:scaleX(100%)}:host .tds-table__searchbar:focus-within,:host .tds-table__searchbar.tds-table__searchbar--active{width:208px;background-color:var(--tds-table-toolbar-searchbar-background)}:host .tds-table__searchbar:focus-within:hover,:host .tds-table__searchbar.tds-table__searchbar--active:hover{background-color:var(--tds-table-toolbar-searchbar-background)}:host .tds-table__searchbar .tds-table__searchbar-input{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-table-color);z-index:1;width:100%;height:100%;border:none;padding:0 36px 0 16px;background-color:transparent;outline:none;cursor:pointer}:host .tds-table__searchbar .tds-table__searchbar-input :focus{background-color:var(--tds-table-toolbar-searchbar-background)}:host .tds-table__searchbar:hover{background-color:var(--tds-table-toolbar-searchbar-background-hover)}:host .tds-table__searchbar .tds-table__searchbar-icon{z-index:0;position:absolute;right:9px;top:9px;width:20px;height:20px}:host(.toolbar__horizontal-scroll){position:absolute;top:var(--tds-spacing-element-16)}:host(.tds-table--compact){height:56px}";
|
|
4
6
|
const TdsTableToolbarStyle0 = tableToolbarCss;
|
|
@@ -35,7 +37,7 @@ const TdsTableToolbar = class {
|
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
connectedCallback() {
|
|
38
|
-
this.tableEl = this.host
|
|
40
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
39
41
|
this.tableId = this.tableEl.tableId;
|
|
40
42
|
}
|
|
41
43
|
componentWillLoad() {
|
|
@@ -66,10 +68,11 @@ const TdsTableToolbar = class {
|
|
|
66
68
|
return styles;
|
|
67
69
|
}
|
|
68
70
|
render() {
|
|
69
|
-
|
|
71
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
72
|
+
return (h(Host, { key: 'dd9f4aa5fe5fc7d2601800f1458ed867e36cc87c', class: {
|
|
70
73
|
'tds-table--compact': this.compactDesign,
|
|
71
74
|
'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
72
|
-
}, style: this.getStyles() }, h("div", { key: '
|
|
75
|
+
}, style: this.getStyles() }, h("div", { key: '58a85d8024c69d67b0295a5e79bbac90cf86d39d', class: "tds-table__upper-bar-flex" }, h("caption", { key: 'd7420a5f0fa606a3ef441a61a0fd10618fbe1fa5', class: "tds-table__title" }, this.tableTitle), h("div", { key: 'afe576548c355196dff3b2e2355453d33d5f5b4a', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '0ccc225cf7c0c1e2ef03c19595f7714c6daca195', class: "tds-table__searchbar" }, h("input", { key: '723a44980b18901bee2408a5f4af80e8e8b11773', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: '11888fa68284d352979cdb3fe9868db5d0e5e129', class: "tds-table__searchbar-icon" }, h(prefixedTagNames.tdsIcon, { key: '30df3849b8a69eee6a42c1ce689aad6334f6b9e5', name: "search", size: "20px" })))), h("slot", { key: '11f4ae49fcfca3241fabfbbc5532090d358e0dbe', name: "end" })))));
|
|
73
76
|
}
|
|
74
77
|
get host() { return getElement(this); }
|
|
75
78
|
};
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-51d04e39.js';
|
|
2
2
|
import { g as generateUniqueId } from './generateUniqueId-7934d315.js';
|
|
3
|
+
import { f as findClosestComponent } from './findClosestComponent-884d0262.js';
|
|
4
|
+
import { g as getDirectChildHTMLElementOfKind } from './getDirectChildHTMLElementOfKind-96e23d9f.js';
|
|
5
|
+
import './tagName-2e4b5836.js';
|
|
3
6
|
|
|
4
7
|
const tableCss = ":host{--tds-scrollbar-width-standard:thin;--tds-scrollbar-width:10px;--tds-scrollbar-height:10px;--tds-scrollbar-thumb-border-width:3px;--tds-scrollbar-thumb-border-hover-width:2px}body{scrollbar-width:thin}:host,.tds-table{border-collapse:collapse;display:table;box-sizing:border-box}:host *,.tds-table *{box-sizing:border-box}:host(.tds-table--responsive),.tds-table--responsive{width:100%}.tds-table--horizontal-scroll{display:block;overflow-x:scroll;white-space:nowrap}.tds-table--horizontal-scroll:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background:var(--tds-scrollbar-hover-thumb-color);background-clip:padding-box}.tds-table--horizontal-scroll::-webkit-scrollbar{height:var(--tds-scrollbar-height)}.tds-table--horizontal-scroll::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}.tds-table--horizontal-scroll::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}.tds-table--horizontal-scroll::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){.tds-table--horizontal-scroll{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}.tds-table--horizontal-scroll-toolbar{margin-top:64px}.tds-table--horizontal-scroll-toolbar-compact{margin-top:56px}.tds-table--horizontal-scroll-footer{margin-bottom:49px}.tds-table--horizontal-scroll-footer-compact{margin-bottom:33px}";
|
|
5
8
|
const TdsTableStyle0 = tableCss;
|
|
@@ -31,11 +34,11 @@ const TdsTable = class {
|
|
|
31
34
|
/** Returns all selected rows data. */
|
|
32
35
|
async getSelectedRows() {
|
|
33
36
|
let selectedRowsData = [];
|
|
34
|
-
const tableBody = this.host.querySelector('tds-
|
|
35
|
-
const selectedRows = Array.from(tableBody.querySelectorAll('tds-
|
|
37
|
+
const tableBody = this.host.querySelector('.tds-table__body');
|
|
38
|
+
const selectedRows = Array.from(tableBody.querySelectorAll('.tds-table__row')).filter((element) => element.selected);
|
|
36
39
|
selectedRows.forEach((row) => {
|
|
37
40
|
let selectedRow = [];
|
|
38
|
-
const rowCells = Array.from(row.
|
|
41
|
+
const rowCells = Array.from(row.querySelectorAll('.tds-table__body-cell'));
|
|
39
42
|
rowCells.forEach((cell) => {
|
|
40
43
|
var _a;
|
|
41
44
|
const cellObject = {
|
|
@@ -81,20 +84,21 @@ const TdsTable = class {
|
|
|
81
84
|
widthChanged(newValue) {
|
|
82
85
|
this.emitInternalTdsPropChange('horizontalScrollWidth', newValue);
|
|
83
86
|
}
|
|
84
|
-
|
|
87
|
+
componentDidRender() {
|
|
85
88
|
if (this.horizontalScrollWidth) {
|
|
89
|
+
const tdsTableElement = findClosestComponent(this.host, 'tdsTable');
|
|
86
90
|
this.enableHorizontalScrollToolbarDesign =
|
|
87
|
-
|
|
91
|
+
getDirectChildHTMLElementOfKind(tdsTableElement, 'tds-table-toolbar').length >= 1;
|
|
88
92
|
this.enableHorizontalScrollFooterDesign =
|
|
89
|
-
|
|
93
|
+
getDirectChildHTMLElementOfKind(tdsTableElement, 'tds-table-footer').length >= 1;
|
|
90
94
|
}
|
|
91
95
|
}
|
|
92
96
|
render() {
|
|
93
|
-
return (h(Host, { key: '
|
|
97
|
+
return (h(Host, { key: '55301935993e5fc7a526a7132df15cbcd0107206', class: {
|
|
94
98
|
'tds-table--responsive': this.responsive,
|
|
95
99
|
'tds-mode-variant-primary': this.modeVariant === 'primary',
|
|
96
100
|
'tds-mode-variant-secondary': this.modeVariant === 'secondary',
|
|
97
|
-
} }, h("table", { key: '
|
|
101
|
+
} }, h("table", { key: '970da50a6e4990808c846975dafc79de1263c8e6', style: this.getStyles(), class: {
|
|
98
102
|
'tds-table': true,
|
|
99
103
|
'tds-table--compact': this.compactDesign,
|
|
100
104
|
'tds-table--divider': this.verticalDividers,
|
|
@@ -105,7 +109,7 @@ const TdsTable = class {
|
|
|
105
109
|
'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
|
|
106
110
|
'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
|
|
107
111
|
'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
|
|
108
|
-
} }, h("slot", { key: '
|
|
112
|
+
} }, h("slot", { key: 'df9ef8fd03af6a5e43b6b2681b3c8de4d6711853' }))));
|
|
109
113
|
}
|
|
110
114
|
get host() { return getElement(this); }
|
|
111
115
|
static get watchers() { return {
|