@scania/tegel 1.18.0-beta.0 → 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,4 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
2
4
|
const propToStateMap = {
|
|
3
5
|
orientation: 'orientation',
|
|
4
6
|
labelPosition: 'labelPosition',
|
|
@@ -19,7 +21,7 @@ export class TdsStep {
|
|
|
19
21
|
}
|
|
20
22
|
/* Needs to be onload to do this on any updates. */
|
|
21
23
|
componentWillLoad() {
|
|
22
|
-
this.stepperEl = this.
|
|
24
|
+
this.stepperEl = findClosestComponent(this.host, 'tdsStepper');
|
|
23
25
|
this.orientation = this.stepperEl.orientation;
|
|
24
26
|
this.labelPosition = this.stepperEl.labelPosition;
|
|
25
27
|
this.size = this.stepperEl.size;
|
|
@@ -39,7 +41,8 @@ export class TdsStep {
|
|
|
39
41
|
}
|
|
40
42
|
}
|
|
41
43
|
render() {
|
|
42
|
-
|
|
44
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
45
|
+
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" }))))));
|
|
43
46
|
}
|
|
44
47
|
static get is() { return "tds-step"; }
|
|
45
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -100,7 +103,7 @@ export class TdsStep {
|
|
|
100
103
|
"labelPosition": {}
|
|
101
104
|
};
|
|
102
105
|
}
|
|
103
|
-
static get elementRef() { return "
|
|
106
|
+
static get elementRef() { return "host"; }
|
|
104
107
|
static get listeners() {
|
|
105
108
|
return [{
|
|
106
109
|
"name": "internalTdsPropsChange",
|
|
@@ -2,6 +2,8 @@
|
|
|
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/generateUniqueId";
|
|
5
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
6
|
+
import { getDirectChildHTMLElementOfKind } from "../../../utils/getDirectChildHTMLElementOfKind";
|
|
5
7
|
/**
|
|
6
8
|
* @slot <default> - <b>Unnamed slot.</b> For the table contents.
|
|
7
9
|
*/
|
|
@@ -30,11 +32,11 @@ export class TdsTable {
|
|
|
30
32
|
/** Returns all selected rows data. */
|
|
31
33
|
async getSelectedRows() {
|
|
32
34
|
let selectedRowsData = [];
|
|
33
|
-
const tableBody = this.host.querySelector('tds-
|
|
34
|
-
const selectedRows = Array.from(tableBody.querySelectorAll('tds-
|
|
35
|
+
const tableBody = this.host.querySelector('.tds-table__body');
|
|
36
|
+
const selectedRows = Array.from(tableBody.querySelectorAll('.tds-table__row')).filter((element) => element.selected);
|
|
35
37
|
selectedRows.forEach((row) => {
|
|
36
38
|
let selectedRow = [];
|
|
37
|
-
const rowCells = Array.from(row.
|
|
39
|
+
const rowCells = Array.from(row.querySelectorAll('.tds-table__body-cell'));
|
|
38
40
|
rowCells.forEach((cell) => {
|
|
39
41
|
var _a;
|
|
40
42
|
const cellObject = {
|
|
@@ -80,20 +82,21 @@ export class TdsTable {
|
|
|
80
82
|
widthChanged(newValue) {
|
|
81
83
|
this.emitInternalTdsPropChange('horizontalScrollWidth', newValue);
|
|
82
84
|
}
|
|
83
|
-
|
|
85
|
+
componentDidRender() {
|
|
84
86
|
if (this.horizontalScrollWidth) {
|
|
87
|
+
const tdsTableElement = findClosestComponent(this.host, 'tdsTable');
|
|
85
88
|
this.enableHorizontalScrollToolbarDesign =
|
|
86
|
-
|
|
89
|
+
getDirectChildHTMLElementOfKind(tdsTableElement, 'tds-table-toolbar').length >= 1;
|
|
87
90
|
this.enableHorizontalScrollFooterDesign =
|
|
88
|
-
|
|
91
|
+
getDirectChildHTMLElementOfKind(tdsTableElement, 'tds-table-footer').length >= 1;
|
|
89
92
|
}
|
|
90
93
|
}
|
|
91
94
|
render() {
|
|
92
|
-
return (h(Host, { key: '
|
|
95
|
+
return (h(Host, { key: '55301935993e5fc7a526a7132df15cbcd0107206', class: {
|
|
93
96
|
'tds-table--responsive': this.responsive,
|
|
94
97
|
'tds-mode-variant-primary': this.modeVariant === 'primary',
|
|
95
98
|
'tds-mode-variant-secondary': this.modeVariant === 'secondary',
|
|
96
|
-
} }, h("table", { key: '
|
|
99
|
+
} }, h("table", { key: '970da50a6e4990808c846975dafc79de1263c8e6', style: this.getStyles(), class: {
|
|
97
100
|
'tds-table': true,
|
|
98
101
|
'tds-table--compact': this.compactDesign,
|
|
99
102
|
'tds-table--divider': this.verticalDividers,
|
|
@@ -104,7 +107,7 @@ export class TdsTable {
|
|
|
104
107
|
'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
|
|
105
108
|
'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
|
|
106
109
|
'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
|
|
107
|
-
} }, h("slot", { key: '
|
|
110
|
+
} }, h("slot", { key: 'df9ef8fd03af6a5e43b6b2681b3c8de4d6711853' }))));
|
|
108
111
|
}
|
|
109
112
|
static get is() { return "tds-table"; }
|
|
110
113
|
static get encapsulation() { return "shadow"; }
|
|
@@ -344,6 +347,14 @@ export class TdsTable {
|
|
|
344
347
|
"Promise": {
|
|
345
348
|
"location": "global",
|
|
346
349
|
"id": "global::Promise"
|
|
350
|
+
},
|
|
351
|
+
"HTMLTdsTableBodyRowElement": {
|
|
352
|
+
"location": "global",
|
|
353
|
+
"id": "global::HTMLTdsTableBodyRowElement"
|
|
354
|
+
},
|
|
355
|
+
"HTMLTdsBodyCellElement": {
|
|
356
|
+
"location": "global",
|
|
357
|
+
"id": "global::HTMLTdsBodyCellElement"
|
|
347
358
|
}
|
|
348
359
|
},
|
|
349
360
|
"return": "Promise<any[]>"
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
:host,
|
|
2
|
-
tds-
|
|
2
|
+
.tds-table__body {
|
|
3
3
|
box-sizing: border-box;
|
|
4
4
|
display: table-row-group;
|
|
5
5
|
}
|
|
6
6
|
:host *,
|
|
7
|
-
tds-
|
|
7
|
+
.tds-table__body * {
|
|
8
8
|
box-sizing: border-box;
|
|
9
9
|
}
|
|
10
10
|
:host .tds-table__info-message,
|
|
11
|
-
tds-
|
|
11
|
+
.tds-table__body .tds-table__info-message {
|
|
12
12
|
font: var(--tds-detail-02);
|
|
13
13
|
letter-spacing: var(--tds-detail-02-ls);
|
|
14
14
|
display: table-cell;
|
|
@@ -21,30 +21,30 @@ tds-table-body .tds-table__info-message {
|
|
|
21
21
|
transition: background-color 200ms ease;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
tds-
|
|
24
|
+
.tds-table__body.tds-table--zebra-mode-rows-odd .tds-table__row:nth-child(odd) {
|
|
25
25
|
background-color: var(--tds-table-zebra-mode-backround);
|
|
26
26
|
}
|
|
27
|
-
tds-
|
|
27
|
+
.tds-table__body.tds-table--zebra-mode-rows-odd .tds-table__row:nth-child(odd):hover {
|
|
28
28
|
background-color: var(--tds-table-body-row-background-hover);
|
|
29
29
|
}
|
|
30
|
-
tds-
|
|
30
|
+
.tds-table__body.tds-table--zebra-mode-rows-even .tds-table__row:nth-child(even) {
|
|
31
31
|
background-color: var(--tds-table-zebra-mode-backround);
|
|
32
32
|
}
|
|
33
|
-
tds-
|
|
33
|
+
.tds-table__body.tds-table--zebra-mode-rows-even .tds-table__row:nth-child(even):hover {
|
|
34
34
|
background-color: var(--tds-table-body-row-background-hover);
|
|
35
35
|
}
|
|
36
|
-
tds-
|
|
36
|
+
.tds-table__body.tds-table--zebra-mode-columns-odd .tds-table__body-cell:nth-child(odd) {
|
|
37
37
|
background-color: var(--tds-table-zebra-mode-backround);
|
|
38
38
|
}
|
|
39
|
-
tds-
|
|
39
|
+
.tds-table__body.tds-table--zebra-mode-columns-odd .tds-table__body-cell.tds-table__body-cell--hover:nth-child(odd) {
|
|
40
40
|
background-color: var(--tds-table-body-cell-background-hover);
|
|
41
41
|
}
|
|
42
|
-
tds-
|
|
42
|
+
.tds-table__body.tds-table--zebra-mode-columns-even .tds-table__body-cell:nth-child(even) {
|
|
43
43
|
background-color: var(--tds-table-zebra-mode-backround);
|
|
44
44
|
}
|
|
45
|
-
tds-
|
|
45
|
+
.tds-table__body.tds-table--zebra-mode-columns-even .tds-table__body-cell.tds-table__body-cell--hover:nth-child(even) {
|
|
46
46
|
background-color: var(--tds-table-body-cell-background-hover);
|
|
47
47
|
}
|
|
48
|
-
tds-
|
|
48
|
+
.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 {
|
|
49
49
|
background-color: transparent;
|
|
50
50
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
3
|
+
import { getDirectChildHTMLElementOfKind } from "../../../utils/getDirectChildHTMLElementOfKind";
|
|
2
4
|
const relevantTableProps = [
|
|
3
5
|
'multiselect',
|
|
4
6
|
'expandableRows',
|
|
@@ -41,7 +43,7 @@ export class TdsTableBody {
|
|
|
41
43
|
this.bodyCheckBoxClicked();
|
|
42
44
|
}
|
|
43
45
|
connectedCallback() {
|
|
44
|
-
this.tableEl = this.host
|
|
46
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
45
47
|
this.tableId = this.tableEl.tableId;
|
|
46
48
|
}
|
|
47
49
|
componentWillLoad() {
|
|
@@ -50,8 +52,10 @@ export class TdsTableBody {
|
|
|
50
52
|
});
|
|
51
53
|
}
|
|
52
54
|
componentWillRender() {
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
+
const table = findClosestComponent(this.host, 'tdsTable');
|
|
56
|
+
const tableHeader = getDirectChildHTMLElementOfKind(table, 'tds-table-header')[0];
|
|
57
|
+
const headerColumnsNo = tableHeader.children.length;
|
|
58
|
+
// Adjust column count for controls
|
|
55
59
|
if (this.multiselect || this.expandableRows) {
|
|
56
60
|
this.columnsNumber = headerColumnsNo + 1;
|
|
57
61
|
}
|
|
@@ -60,12 +64,13 @@ export class TdsTableBody {
|
|
|
60
64
|
}
|
|
61
65
|
}
|
|
62
66
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: 'd449c07d33d9bee1367b30575ac0235ca4c23c48', "data-selected-rows": this.multiselectArrayJSON, class: {
|
|
68
|
+
'tds-table__body': true,
|
|
64
69
|
'tds-table--zebra-mode-rows-odd': this.zebraMode === 'rows-odd',
|
|
65
70
|
'tds-table--zebra-mode-rows-even': this.zebraMode === 'rows-even',
|
|
66
71
|
'tds-table--zebra-mode-columns-odd': this.zebraMode === 'columns-odd',
|
|
67
72
|
'tds-table--zebra-mode-columns-even': this.zebraMode === 'columns-even',
|
|
68
|
-
} }, h("slot", { key: '
|
|
73
|
+
} }, h("slot", { key: '8eb5de644e4aa6d05fdaad9c0cab9baa7c0ad3e0' })));
|
|
69
74
|
}
|
|
70
75
|
static get is() { return "tds-table-body"; }
|
|
71
76
|
static get originalStyleUrls() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
2
3
|
const relevantTableProps = [
|
|
3
4
|
'verticalDividers',
|
|
4
5
|
'compactDesign',
|
|
@@ -56,7 +57,7 @@ export class TdsTableBodyCell {
|
|
|
56
57
|
}
|
|
57
58
|
}
|
|
58
59
|
connectedCallback() {
|
|
59
|
-
this.tableEl = this.host
|
|
60
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
60
61
|
this.tableId = this.tableEl.tableId;
|
|
61
62
|
}
|
|
62
63
|
componentWillLoad() {
|
|
@@ -80,13 +81,13 @@ export class TdsTableBodyCell {
|
|
|
80
81
|
// Conditionally set padding style
|
|
81
82
|
padding: paddingStyle,
|
|
82
83
|
};
|
|
83
|
-
return (h(Host, { key: '
|
|
84
|
+
return (h(Host, { key: '6de8ab0824c4f9f51d5de083f652fa2f2a6606c0', class: {
|
|
84
85
|
'tds-table__body-cell': true,
|
|
85
86
|
'tds-table__body-cell--hover': this.activeSorting,
|
|
86
87
|
'tds-table__compact': this.compactDesign,
|
|
87
88
|
'tds-table--divider': this.verticalDividers,
|
|
88
89
|
'tds-table--no-min-width': this.noMinWidth,
|
|
89
|
-
}, style: dynamicStyles }, this.cellValue, h("slot", { key: '
|
|
90
|
+
}, style: dynamicStyles }, this.cellValue, h("slot", { key: 'ab77a6e5a3b7aa2b157e68c407d113aa50e31ffb' })));
|
|
90
91
|
}
|
|
91
92
|
static get is() { return "tds-body-cell"; }
|
|
92
93
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
:host(.focused-input-wrapper)
|
|
5
|
+
:host(.focused-input-wrapper) .edit-icon {
|
|
6
6
|
display: inline-block;
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -10,14 +10,14 @@
|
|
|
10
10
|
padding-right: var(--tds-spacing-element-24);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
:host(:hover)
|
|
13
|
+
:host(:hover) .edit-icon {
|
|
14
14
|
display: inline-block;
|
|
15
15
|
}
|
|
16
16
|
:host(:hover) ::slotted(input:not(:focus)) {
|
|
17
17
|
background-color: var(--tds-table-input-background-hover);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
.edit-icon {
|
|
21
21
|
display: none;
|
|
22
22
|
position: absolute;
|
|
23
23
|
right: 10px;
|
package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
2
4
|
const relevantTableProps = ['compactDesign'];
|
|
3
5
|
export class TdsTableBodyInputWrapper {
|
|
4
6
|
constructor() {
|
|
@@ -22,7 +24,7 @@ export class TdsTableBodyInputWrapper {
|
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
connectedCallback() {
|
|
25
|
-
const tableEl = this.host
|
|
27
|
+
const tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
26
28
|
if (tableEl) {
|
|
27
29
|
this.tableId = tableEl.getAttribute('table-id');
|
|
28
30
|
}
|
|
@@ -31,7 +33,7 @@ export class TdsTableBodyInputWrapper {
|
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
componentWillLoad() {
|
|
34
|
-
const tableEl = this.host
|
|
36
|
+
const tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
35
37
|
if (tableEl) {
|
|
36
38
|
relevantTableProps.forEach((tablePropName) => {
|
|
37
39
|
this[tablePropName] = tableEl[tablePropName];
|
|
@@ -63,11 +65,12 @@ export class TdsTableBodyInputWrapper {
|
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
67
|
render() {
|
|
66
|
-
|
|
68
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
69
|
+
return (h(Host, { key: '20eb879a6a7699ae79768bd7e99cc5e2c23465a0', class: {
|
|
67
70
|
'focused-input-wrapper': this.inputFocused,
|
|
68
71
|
'show-icon': this.showIcon,
|
|
69
72
|
'tds-table__compact': this.compactDesign,
|
|
70
|
-
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(
|
|
73
|
+
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(prefixedTagNames.tdsIcon, { class: "edit-icon", slot: "icon", size: "16px", name: "edit" })) : null));
|
|
71
74
|
}
|
|
72
75
|
static get is() { return "tds-table-body-input-wrapper"; }
|
|
73
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
2
4
|
const relevantTableProps = [
|
|
3
5
|
'multiselect',
|
|
4
6
|
'verticalDividers',
|
|
@@ -56,7 +58,7 @@ export class TdsTableBodyRow {
|
|
|
56
58
|
}
|
|
57
59
|
}
|
|
58
60
|
connectedCallback() {
|
|
59
|
-
this.tableEl = this.host
|
|
61
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
60
62
|
this.tableId = this.tableEl.tableId;
|
|
61
63
|
}
|
|
62
64
|
componentWillLoad() {
|
|
@@ -65,13 +67,14 @@ export class TdsTableBodyRow {
|
|
|
65
67
|
});
|
|
66
68
|
}
|
|
67
69
|
render() {
|
|
68
|
-
|
|
70
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
71
|
+
return (h(Host, { key: 'cfd1becf3ee22ac65136c27fdaca6f959223ef3e', tabindex: this.clickable ? '0' : null, class: {
|
|
69
72
|
'tds-table__row': true,
|
|
70
73
|
'tds-table__row--selected': this.selected,
|
|
71
74
|
'tds-table__compact': this.compactDesign,
|
|
72
75
|
'tds-table--divider': this.verticalDividers,
|
|
73
76
|
'tds-table__row--clickable': this.clickable,
|
|
74
|
-
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e) }, this.multiselect && (h("td", { key: '
|
|
77
|
+
}, 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' })));
|
|
75
78
|
}
|
|
76
79
|
static get is() { return "tds-table-body-row"; }
|
|
77
80
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../../utils/generateUniqueId";
|
|
3
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
3
4
|
const relevantTableProps = [
|
|
4
5
|
'verticalDividers',
|
|
5
6
|
'compactDesign',
|
|
@@ -75,7 +76,7 @@ export class TdsTableBodyRowExpandable {
|
|
|
75
76
|
if (this.expanded !== undefined) {
|
|
76
77
|
this.isExpanded = this.expanded;
|
|
77
78
|
}
|
|
78
|
-
this.tableEl = this.host
|
|
79
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
79
80
|
this.tableId = this.tableEl.tableId;
|
|
80
81
|
}
|
|
81
82
|
componentWillLoad() {
|
|
@@ -88,7 +89,7 @@ export class TdsTableBodyRowExpandable {
|
|
|
88
89
|
this.columnsNumber = this.colSpan;
|
|
89
90
|
}
|
|
90
91
|
else {
|
|
91
|
-
this.columnsNumber = this.tableEl.querySelector('tds-
|
|
92
|
+
this.columnsNumber = this.tableEl.querySelector('.tds-table__header').childElementCount + 1;
|
|
92
93
|
}
|
|
93
94
|
}
|
|
94
95
|
sendValue() {
|
|
@@ -100,26 +101,27 @@ export class TdsTableBodyRowExpandable {
|
|
|
100
101
|
this.sendValue();
|
|
101
102
|
}
|
|
102
103
|
render() {
|
|
103
|
-
return (h(Host, { key: '
|
|
104
|
+
return (h(Host, { key: 'e275194131e3b901f08e84674b705b5bd4b73dab', class: {
|
|
104
105
|
'tds-table__row': true,
|
|
106
|
+
'tds-table__row-expandable': true,
|
|
105
107
|
'tds-table__row-expand--active': this.isExpanded,
|
|
106
108
|
'tds-table__compact': this.compactDesign,
|
|
107
109
|
'tds-table--divider': this.verticalDividers,
|
|
108
|
-
} }, h("tr", { key: '
|
|
110
|
+
} }, h("tr", { key: '8a488cfb99978c2066d51d0d7eeec350aaf59401', class: {
|
|
109
111
|
'tds-table__row': true,
|
|
110
112
|
'tds-table__row--expanded': this.isExpanded,
|
|
111
|
-
}, part: "row" }, h("td", { key: '
|
|
113
|
+
}, part: "row" }, h("td", { key: '38e261d4dd352b63fda51e5deab4b43e248b0d42', class: {
|
|
112
114
|
'tds-table__cell-expand': true,
|
|
113
|
-
} }, 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: {
|
|
114
116
|
'tds-table__row-expand': true,
|
|
115
117
|
'tds-table__row-expand--expanded': this.isExpanded,
|
|
116
|
-
}, part: "expand-row" }, h("td", { key: '
|
|
118
|
+
}, part: "expand-row" }, h("td", { key: 'b98c7704015cc08c0561b591ea0a9c59e5d10d43', class: {
|
|
117
119
|
'tds-table__cell-expand': true,
|
|
118
120
|
'tds-table__cell-expand--overflow-hidden': this.overflow === 'hidden',
|
|
119
121
|
'tds-table__cell-expand--overflow-visible': this.overflow === 'visible',
|
|
120
|
-
}, part: "expand-row-cell", colSpan: this.columnsNumber }, h("div", { key: '
|
|
122
|
+
}, part: "expand-row-cell", colSpan: this.columnsNumber }, h("div", { key: 'dd5e53a20718e92dda6ff93d6a715054289bab51', style: {
|
|
121
123
|
overflow: this.overflow,
|
|
122
|
-
} }, h("slot", { key: '
|
|
124
|
+
} }, h("slot", { key: '7e919ed8681143d6bdf13afe6b94d6a8e23be046', name: "expand-row" }))))));
|
|
123
125
|
}
|
|
124
126
|
static get is() { return "tds-table-body-row-expandable"; }
|
|
125
127
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
2
4
|
const relevantTableProps = [
|
|
3
5
|
'compactDesign',
|
|
4
6
|
'horizontalScrollWidth',
|
|
@@ -77,16 +79,16 @@ export class TdsTableFooter {
|
|
|
77
79
|
}
|
|
78
80
|
}
|
|
79
81
|
connectedCallback() {
|
|
80
|
-
this.tableEl = this.host
|
|
82
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
81
83
|
this.tableId = this.tableEl.tableId;
|
|
82
84
|
}
|
|
83
|
-
|
|
85
|
+
componentDidLoad() {
|
|
84
86
|
relevantTableProps.forEach((tablePropName) => {
|
|
85
87
|
this[tablePropName] = this.tableEl[tablePropName];
|
|
86
88
|
});
|
|
87
89
|
this.storeLastCorrectValue(this.paginationValue);
|
|
88
90
|
/** Get the number of columns. */
|
|
89
|
-
const numberOfColumns = this.host.parentElement.querySelector('tds-
|
|
91
|
+
const numberOfColumns = this.host.parentElement.querySelector('.tds-table__header').childElementCount;
|
|
90
92
|
if (this.cols) {
|
|
91
93
|
this.columnsNumber = this.cols;
|
|
92
94
|
}
|
|
@@ -127,12 +129,14 @@ export class TdsTableFooter {
|
|
|
127
129
|
}
|
|
128
130
|
render() {
|
|
129
131
|
var _a;
|
|
130
|
-
|
|
132
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
133
|
+
return (h(Host, { key: 'da39085487ba931d60e338e75b4dff13481cfaf1', class: {
|
|
134
|
+
'tds-table__footer': true,
|
|
131
135
|
'tds-table--compact': this.compactDesign,
|
|
132
136
|
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
133
|
-
}, style: this.getStyles() }, h("tr", { key: '
|
|
134
|
-
return (h(
|
|
135
|
-
}))))), h("div", { key: '
|
|
137
|
+
}, 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) => {
|
|
138
|
+
return (h(prefixedTagNames.tdsDropdownOption, { value: `${value}` }, value));
|
|
139
|
+
}))))), 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" })))))))));
|
|
136
140
|
}
|
|
137
141
|
static get is() { return "tds-table-footer"; }
|
|
138
142
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
4
|
+
import { getDirectChildHTMLElementOfKind } from "../../../utils/getDirectChildHTMLElementOfKind";
|
|
2
5
|
const relevantTableProps = [
|
|
3
6
|
'multiselect',
|
|
4
7
|
'expandableRows',
|
|
@@ -48,11 +51,11 @@ export class TdsTableHeaderRow {
|
|
|
48
51
|
}
|
|
49
52
|
bodyExpandClicked() {
|
|
50
53
|
const numberOfExtendRowsActive = this.host.parentElement
|
|
51
|
-
.querySelector('tds-
|
|
54
|
+
.querySelector('.tds-table__body')
|
|
52
55
|
.getElementsByClassName('tds-table__row-extend--active').length;
|
|
53
56
|
const numberOfExtendRows = this.host.parentElement
|
|
54
|
-
.querySelector('tds-
|
|
55
|
-
.
|
|
57
|
+
.querySelector('.tds-table__body')
|
|
58
|
+
.getElementsByClassName('.tds-table__row-expandable').length;
|
|
56
59
|
if (numberOfExtendRows === numberOfExtendRowsActive) {
|
|
57
60
|
this.mainExpendSelected = true;
|
|
58
61
|
}
|
|
@@ -61,7 +64,7 @@ export class TdsTableHeaderRow {
|
|
|
61
64
|
}
|
|
62
65
|
}
|
|
63
66
|
connectedCallback() {
|
|
64
|
-
this.tableEl = this.host
|
|
67
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
65
68
|
this.tableId = this.tableEl.tableId;
|
|
66
69
|
}
|
|
67
70
|
componentWillLoad() {
|
|
@@ -70,8 +73,9 @@ export class TdsTableHeaderRow {
|
|
|
70
73
|
});
|
|
71
74
|
}
|
|
72
75
|
componentWillRender() {
|
|
76
|
+
const tdsTableElement = findClosestComponent(this.host, 'tdsTable');
|
|
73
77
|
this.enableToolbarDesign =
|
|
74
|
-
|
|
78
|
+
getDirectChildHTMLElementOfKind(tdsTableElement, 'tds-table-toolbar').length >= 1;
|
|
75
79
|
}
|
|
76
80
|
async handleCheckboxChange(event) {
|
|
77
81
|
this.allSelected = event.detail.checked;
|
|
@@ -82,11 +86,13 @@ export class TdsTableHeaderRow {
|
|
|
82
86
|
});
|
|
83
87
|
}
|
|
84
88
|
render() {
|
|
85
|
-
|
|
89
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
90
|
+
return (h(Host, { key: '986af13197816825c30a3b299cc2f7d1679db040', class: {
|
|
91
|
+
'tds-table__header': true,
|
|
86
92
|
'tds-table--compact': this.compactDesign,
|
|
87
93
|
'tds-table--divider': this.verticalDividers,
|
|
88
94
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
89
|
-
} }, h("tr", { key: '
|
|
95
|
+
} }, 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' }))));
|
|
90
96
|
}
|
|
91
97
|
static get is() { return "tds-table-header"; }
|
|
92
98
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
|
+
import { getDirectChildHTMLElementOfKind } from "../../../utils/getDirectChildHTMLElementOfKind";
|
|
4
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
2
5
|
const relevantTableProps = [
|
|
3
6
|
'multiselect',
|
|
4
7
|
'expandableRows',
|
|
@@ -31,7 +34,8 @@ export class TdsTableHeaderCell {
|
|
|
31
34
|
};
|
|
32
35
|
this.headerCellContent = () => {
|
|
33
36
|
if (this.sortable) {
|
|
34
|
-
|
|
37
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
38
|
+
return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick(), style: { justifyContent: this.textAlignState } }, h("span", { class: "tds-table__header-button-text" }, this.cellValue, h("slot", null)), this.sortingDirection === undefined && (h(prefixedTagNames.tdsIcon, { class: "tds-table__header-button-icon", name: "sorting", size: "16px" })), this.sortingDirection && ['asc', 'desc'].includes(this.sortingDirection) && (h(prefixedTagNames.tdsIcon, { class: `tds-table__header-button-icon ${this.sortingDirection === 'asc' ? 'tds-table__header-button-icon--rotate' : ''}`, name: "arrow_down", size: "16px" }))));
|
|
35
39
|
}
|
|
36
40
|
return (h("p", { class: {
|
|
37
41
|
'tds-table__header-text': true,
|
|
@@ -86,7 +90,7 @@ export class TdsTableHeaderCell {
|
|
|
86
90
|
}
|
|
87
91
|
}
|
|
88
92
|
connectedCallback() {
|
|
89
|
-
this.tableEl = this.host
|
|
93
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
90
94
|
this.tableId = this.tableEl.tableId;
|
|
91
95
|
}
|
|
92
96
|
componentWillLoad() {
|
|
@@ -101,11 +105,12 @@ export class TdsTableHeaderCell {
|
|
|
101
105
|
: 'left';
|
|
102
106
|
// To enable body cells text align per rules set in head cell
|
|
103
107
|
this.internalTdsTextAlign.emit([this.tableId, this.cellKey, this.textAlignState]);
|
|
108
|
+
const tdsTableElement = findClosestComponent(this.host, 'tdsTable');
|
|
104
109
|
this.enableToolbarDesign =
|
|
105
|
-
|
|
110
|
+
getDirectChildHTMLElementOfKind(tdsTableElement, 'tds-table-toolbar').length >= 1;
|
|
106
111
|
}
|
|
107
112
|
render() {
|
|
108
|
-
return (h(Host, { key: '
|
|
113
|
+
return (h(Host, { key: 'd5fdec272a6ed5286ddc8bdeb1c46950545a1a7c', class: {
|
|
109
114
|
'tds-table__header-cell': true,
|
|
110
115
|
'tds-table__header-cell--sortable': this.sortable,
|
|
111
116
|
'tds-table__header-cell--is-sorted': this.sortedByMyKey,
|
package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.css
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
position: relative;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
:host(:hover)
|
|
5
|
+
:host(:hover) .search-icon {
|
|
6
6
|
display: inline-block;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
:host(.focused-input-wrapper)
|
|
9
|
+
:host(.focused-input-wrapper) .search-icon {
|
|
10
10
|
display: inline-block;
|
|
11
11
|
}
|
|
12
12
|
:host(.focused-input-wrapper) ::slotted(input:not(:focus)) {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
padding-left: 35px;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
.search-icon {
|
|
21
21
|
color: var(--tds-table-input-header-icon);
|
|
22
22
|
position: absolute;
|
|
23
23
|
left: 15px;
|