@scania/tegel 1.40.0-ts-strict-mode-beta.0 → 1.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tds-accordion.cjs.entry.js +2 -2
- package/dist/cjs/tds-block.cjs.entry.js +1 -1
- package/dist/cjs/tds-body-cell.cjs.entry.js +3 -4
- package/dist/cjs/tds-button_2.cjs.entry.js +5 -7
- package/dist/cjs/tds-card.cjs.entry.js +2 -2
- package/dist/cjs/tds-checkbox.cjs.entry.js +3 -6
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +5 -9
- package/dist/cjs/tds-datetime.cjs.entry.js +5 -8
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +40 -50
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +3 -10
- package/dist/cjs/tds-footer-group.cjs.entry.js +5 -6
- package/dist/cjs/tds-footer-item.cjs.entry.js +2 -6
- package/dist/cjs/tds-footer.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-cell.cjs.entry.js +5 -10
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +3 -5
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +5 -7
- package/dist/cjs/tds-header-launcher.cjs.entry.js +4 -8
- package/dist/cjs/tds-header.cjs.entry.js +6 -8
- package/dist/cjs/tds-icon.cjs.entry.js +2 -1
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +3 -10
- package/dist/cjs/tds-message.cjs.entry.js +3 -3
- package/dist/cjs/tds-modal.cjs.entry.js +5 -6
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +5 -12
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -4
- package/dist/cjs/tds-popover-core.cjs.entry.js +8 -10
- package/dist/cjs/tds-popover-menu.cjs.entry.js +4 -4
- package/dist/cjs/tds-radio-button.cjs.entry.js +1 -4
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +4 -5
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +9 -13
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +3 -3
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +4 -5
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +9 -15
- package/dist/cjs/tds-side-menu.cjs.entry.js +9 -12
- package/dist/cjs/tds-slider.cjs.entry.js +16 -26
- package/dist/cjs/tds-step.cjs.entry.js +1 -3
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +10 -17
- package/dist/cjs/tds-table-body-row.cjs.entry.js +5 -8
- package/dist/cjs/tds-table-body.cjs.entry.js +5 -9
- package/dist/cjs/tds-table-footer.cjs.entry.js +8 -15
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-header.cjs.entry.js +18 -24
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +4 -6
- package/dist/cjs/tds-table.cjs.entry.js +12 -14
- package/dist/cjs/tds-text-field.cjs.entry.js +6 -7
- package/dist/cjs/tds-textarea.cjs.entry.js +4 -5
- package/dist/cjs/tds-toggle.cjs.entry.js +4 -5
- package/dist/cjs/tds-tooltip.cjs.entry.js +10 -6
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion.js +4 -4
- package/dist/collection/components/block/block.js +3 -3
- package/dist/collection/components/button/button.js +7 -9
- package/dist/collection/components/card/card.js +4 -4
- package/dist/collection/components/checkbox/checkbox.js +4 -7
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/datetime/datetime.js +7 -10
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +6 -9
- package/dist/collection/components/dropdown/dropdown.css +1 -0
- package/dist/collection/components/dropdown/dropdown.js +53 -44
- package/dist/collection/components/footer/footer-group/footer-group.js +5 -6
- package/dist/collection/components/footer/footer-item/footer-item.js +2 -6
- package/dist/collection/components/footer/footer.js +4 -4
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +2 -2
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +5 -7
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +3 -5
- package/dist/collection/components/header/header-item/header-item.js +5 -9
- package/dist/collection/components/header/header-launcher/header-launcher.js +4 -8
- package/dist/collection/components/header/header.js +6 -8
- package/dist/collection/components/icon/icon.js +4 -3
- package/dist/collection/components/message/message.css +2 -1
- package/dist/collection/components/message/message.js +4 -4
- package/dist/collection/components/modal/modal.css +54 -10
- package/dist/collection/components/modal/modal.js +7 -8
- package/dist/collection/components/popover-canvas/popover-canvas.js +9 -9
- package/dist/collection/components/popover-core/popover-core.js +23 -20
- package/dist/collection/components/popover-menu/popover-menu.js +9 -9
- package/dist/collection/components/radio-button/radio-button.js +1 -4
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +4 -5
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +4 -5
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +3 -3
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +9 -13
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +9 -15
- package/dist/collection/components/side-menu/side-menu.js +9 -12
- package/dist/collection/components/slider/slider.js +16 -26
- package/dist/collection/components/stepper/step/step.js +1 -3
- package/dist/collection/components/table/table/table.js +18 -36
- package/dist/collection/components/table/table-body/table-body.js +5 -9
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +6 -7
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +1 -1
- package/dist/collection/components/table/table-body-row/table-body-row.js +10 -13
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +16 -23
- package/dist/collection/components/table/table-footer/table-footer.js +13 -20
- package/dist/collection/components/table/table-header/table-header.js +21 -27
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +17 -22
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +1 -1
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +6 -8
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +5 -12
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +3 -10
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +5 -12
- package/dist/collection/components/text-field/text-field.js +8 -9
- package/dist/collection/components/textarea/textarea.js +6 -7
- package/dist/collection/components/toggle/toggle.js +4 -5
- package/dist/collection/components/tooltip/tooltip.js +13 -9
- package/dist/collection/utils/appendHiddenInput.js +4 -6
- package/dist/components/{p-ad376f70.js → p-04a014cf.js} +11 -7
- package/dist/components/{p-e0ccf8e6.js → p-1dafdc8c.js} +9 -15
- package/dist/components/{p-6fd2b339.js → p-3308d5fa.js} +8 -10
- package/dist/components/{p-a64cbc40.js → p-3a7e4d0d.js} +9 -10
- package/dist/components/{p-7e02ea3e.js → p-3f475529.js} +35 -42
- package/dist/components/{p-e627f11b.js → p-44f5b5e1.js} +3 -6
- package/dist/components/{p-415fafb3.js → p-63552d0e.js} +5 -5
- package/dist/components/{p-98d082f9.js → p-6ef207b2.js} +8 -11
- package/dist/components/{p-ead6727f.js → p-7c3348eb.js} +5 -9
- package/dist/components/{p-da11a695.js → p-9336db16.js} +3 -5
- package/dist/components/{p-799470b1.js → p-c62b61fe.js} +5 -7
- package/dist/components/{p-0d286c19.js → p-d10d21bd.js} +2 -2
- package/dist/components/{p-edc838a0.js → p-f7d94947.js} +2 -1
- package/dist/components/tds-accordion-item.js +1 -1
- package/dist/components/tds-accordion.js +2 -2
- package/dist/components/tds-banner.js +1 -1
- package/dist/components/tds-block.js +1 -1
- package/dist/components/tds-body-cell.js +4 -5
- package/dist/components/tds-button.js +1 -1
- package/dist/components/tds-card.js +4 -4
- package/dist/components/tds-checkbox.js +1 -1
- package/dist/components/tds-datetime.js +6 -9
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +1 -1
- package/dist/components/tds-folder-tabs.js +4 -11
- package/dist/components/tds-footer-group.js +6 -7
- package/dist/components/tds-footer-item.js +2 -6
- package/dist/components/tds-footer.js +2 -2
- package/dist/components/tds-header-brand-symbol.js +3 -3
- package/dist/components/tds-header-cell.js +6 -11
- package/dist/components/tds-header-dropdown-list.js +1 -1
- package/dist/components/tds-header-dropdown.js +9 -11
- package/dist/components/tds-header-hamburger.js +2 -2
- package/dist/components/tds-header-item.js +1 -1
- package/dist/components/tds-header-launcher-button.js +1 -1
- package/dist/components/tds-header-launcher-list.js +1 -1
- package/dist/components/tds-header-launcher.js +9 -13
- package/dist/components/tds-header.js +6 -8
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tabs.js +4 -11
- package/dist/components/tds-message.js +4 -4
- package/dist/components/tds-modal.js +6 -7
- package/dist/components/tds-navigation-tabs.js +6 -13
- package/dist/components/tds-popover-canvas.js +1 -1
- package/dist/components/tds-popover-core.js +1 -1
- package/dist/components/tds-popover-menu.js +5 -5
- package/dist/components/tds-radio-button.js +1 -4
- package/dist/components/tds-side-menu-close-button.js +1 -1
- package/dist/components/tds-side-menu-collapse-button.js +5 -6
- package/dist/components/tds-side-menu-dropdown-list-item.js +9 -13
- package/dist/components/tds-side-menu-dropdown-list.js +3 -3
- package/dist/components/tds-side-menu-dropdown.js +6 -7
- package/dist/components/tds-side-menu-item.js +1 -1
- package/dist/components/tds-side-menu.js +9 -12
- package/dist/components/tds-slider.js +20 -30
- package/dist/components/tds-step.js +2 -4
- package/dist/components/tds-table-body-input-wrapper.js +2 -2
- package/dist/components/tds-table-body-row-expandable.js +10 -17
- package/dist/components/tds-table-body-row.js +6 -9
- package/dist/components/tds-table-body.js +5 -9
- package/dist/components/tds-table-footer.js +12 -19
- package/dist/components/tds-table-header-input-wrapper.js +2 -2
- package/dist/components/tds-table-header.js +19 -25
- package/dist/components/tds-table-toolbar.js +5 -7
- package/dist/components/tds-table.js +12 -14
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-textarea.js +7 -8
- package/dist/components/tds-toast.js +1 -1
- package/dist/components/tds-toggle.js +4 -5
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tds-accordion.entry.js +2 -2
- package/dist/esm/tds-block.entry.js +1 -1
- package/dist/esm/tds-body-cell.entry.js +3 -4
- package/dist/esm/tds-button_2.entry.js +5 -7
- package/dist/esm/tds-card.entry.js +2 -2
- package/dist/esm/tds-checkbox.entry.js +3 -6
- package/dist/esm/tds-core-header-item_2.entry.js +5 -9
- package/dist/esm/tds-datetime.entry.js +5 -8
- package/dist/esm/tds-dropdown_2.entry.js +40 -50
- package/dist/esm/tds-folder-tabs.entry.js +3 -10
- package/dist/esm/tds-footer-group.entry.js +5 -6
- package/dist/esm/tds-footer-item.entry.js +2 -6
- package/dist/esm/tds-footer.entry.js +2 -2
- package/dist/esm/tds-header-brand-symbol.entry.js +2 -2
- package/dist/esm/tds-header-cell.entry.js +5 -10
- package/dist/esm/tds-header-dropdown-list.entry.js +3 -5
- package/dist/esm/tds-header-dropdown.entry.js +5 -7
- package/dist/esm/tds-header-launcher.entry.js +4 -8
- package/dist/esm/tds-header.entry.js +6 -8
- package/dist/esm/tds-icon.entry.js +2 -1
- package/dist/esm/tds-inline-tabs.entry.js +3 -10
- package/dist/esm/tds-message.entry.js +3 -3
- package/dist/esm/tds-modal.entry.js +5 -6
- package/dist/esm/tds-navigation-tabs.entry.js +5 -12
- package/dist/esm/tds-popover-canvas.entry.js +4 -4
- package/dist/esm/tds-popover-core.entry.js +8 -10
- package/dist/esm/tds-popover-menu.entry.js +4 -4
- package/dist/esm/tds-radio-button.entry.js +1 -4
- package/dist/esm/tds-side-menu-collapse-button.entry.js +4 -5
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +9 -13
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +3 -3
- package/dist/esm/tds-side-menu-dropdown.entry.js +4 -5
- package/dist/esm/tds-side-menu-item.entry.js +9 -15
- package/dist/esm/tds-side-menu.entry.js +9 -12
- package/dist/esm/tds-slider.entry.js +16 -26
- package/dist/esm/tds-step.entry.js +1 -3
- package/dist/esm/tds-table-body-input-wrapper.entry.js +1 -1
- package/dist/esm/tds-table-body-row-expandable.entry.js +10 -17
- package/dist/esm/tds-table-body-row.entry.js +5 -8
- package/dist/esm/tds-table-body.entry.js +5 -9
- package/dist/esm/tds-table-footer.entry.js +8 -15
- package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
- package/dist/esm/tds-table-header.entry.js +18 -24
- package/dist/esm/tds-table-toolbar.entry.js +4 -6
- package/dist/esm/tds-table.entry.js +12 -14
- package/dist/esm/tds-text-field.entry.js +6 -7
- package/dist/esm/tds-textarea.entry.js +4 -5
- package/dist/esm/tds-toggle.entry.js +4 -5
- package/dist/esm/tds-tooltip.entry.js +10 -6
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-0672ddfc.entry.js +1 -0
- package/dist/tegel/p-08ad6a21.entry.js +1 -0
- package/dist/tegel/p-08f63e5d.entry.js +1 -0
- package/dist/tegel/p-09cd056c.entry.js +1 -0
- package/dist/tegel/p-0c9a51d9.entry.js +1 -0
- package/dist/tegel/p-0cfe8671.entry.js +1 -0
- package/dist/tegel/p-0e772ad7.entry.js +1 -0
- package/dist/tegel/p-17bc1e49.entry.js +1 -0
- package/dist/tegel/p-1859156f.entry.js +1 -0
- package/dist/tegel/p-1f4267a8.entry.js +1 -0
- package/dist/tegel/p-24a76927.entry.js +1 -0
- package/dist/tegel/{p-40fa0f5b.entry.js → p-28f85555.entry.js} +1 -1
- package/dist/tegel/p-354d3986.entry.js +1 -0
- package/dist/tegel/p-3c97cb45.entry.js +1 -0
- package/dist/tegel/p-3e6d65ee.entry.js +1 -0
- package/dist/tegel/p-445fa788.entry.js +1 -0
- package/dist/tegel/{p-a912035b.entry.js → p-464469fe.entry.js} +1 -1
- package/dist/tegel/p-51a17707.entry.js +1 -0
- package/dist/tegel/p-52689019.entry.js +1 -0
- package/dist/tegel/{p-ca068263.entry.js → p-57a28f62.entry.js} +1 -1
- package/dist/tegel/{p-27369d6a.entry.js → p-650b98bf.entry.js} +1 -1
- package/dist/tegel/p-6b340718.entry.js +1 -0
- package/dist/tegel/p-72006dd7.entry.js +1 -0
- package/dist/tegel/p-743d4f07.entry.js +1 -0
- package/dist/tegel/p-77cfb0ef.entry.js +1 -0
- package/dist/tegel/p-7887bdbb.entry.js +1 -0
- package/dist/tegel/p-7b598e60.entry.js +1 -0
- package/dist/tegel/p-7ef50e7f.entry.js +1 -0
- package/dist/tegel/p-8c2695af.entry.js +1 -0
- package/dist/tegel/p-8eccfe32.entry.js +1 -0
- package/dist/tegel/{p-b9afb39e.entry.js → p-987f8f0f.entry.js} +1 -1
- package/dist/tegel/p-9b635e01.entry.js +1 -0
- package/dist/tegel/p-9f187848.entry.js +1 -0
- package/dist/tegel/p-9fdc8fa5.entry.js +1 -0
- package/dist/tegel/p-a090bd2f.entry.js +1 -0
- package/dist/tegel/p-a56436c8.entry.js +1 -0
- package/dist/tegel/p-b210d23c.entry.js +1 -0
- package/dist/tegel/p-c0cbc9f5.entry.js +1 -0
- package/dist/tegel/{p-fe4335ca.entry.js → p-c6968db1.entry.js} +1 -1
- package/dist/tegel/p-cf717912.entry.js +1 -0
- package/dist/tegel/p-cfd7ed1a.entry.js +1 -0
- package/dist/tegel/p-d1d45942.entry.js +1 -0
- package/dist/tegel/p-d7cdbc4e.entry.js +1 -0
- package/dist/tegel/p-e5b796e7.entry.js +1 -0
- package/dist/tegel/{p-e0dc09f9.entry.js → p-eb91e33b.entry.js} +1 -1
- package/dist/tegel/{p-da38aa9a.entry.js → p-f2318c88.entry.js} +1 -1
- package/dist/tegel/{p-c5694dd6.entry.js → p-f31f56fe.entry.js} +1 -1
- package/dist/tegel/p-f3c32d4d.entry.js +1 -0
- package/dist/tegel/p-fd15ced7.entry.js +1 -0
- package/dist/tegel/tegel.css +2 -2
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/accordion/accordion.d.ts +1 -1
- package/dist/types/components/block/block.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/card/card.d.ts +1 -1
- package/dist/types/components/datetime/datetime.d.ts +2 -2
- package/dist/types/components/dropdown/dropdown.d.ts +9 -5
- package/dist/types/components/footer/footer.d.ts +1 -1
- package/dist/types/components/icon/icon.d.ts +1 -1
- package/dist/types/components/message/message.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +1 -1
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +2 -2
- package/dist/types/components/popover-core/popover-core.d.ts +4 -4
- package/dist/types/components/popover-menu/popover-menu.d.ts +2 -2
- package/dist/types/components/slider/slider-stories-setup.d.ts +1 -1
- package/dist/types/components/table/table/table.d.ts +3 -6
- package/dist/types/components/table/table-body/table-body.d.ts +3 -3
- package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +5 -8
- package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +1 -1
- package/dist/types/components/table/table-body-row/table-body-row.d.ts +5 -5
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +7 -7
- package/dist/types/components/table/table-footer/table-footer.d.ts +4 -4
- package/dist/types/components/table/table-header/table-header.d.ts +5 -5
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +8 -8
- package/dist/types/components/table/table-header-input-wrapper/table-header-input-wrapper.d.ts +1 -1
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +4 -4
- package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +1 -1
- package/dist/types/components/text-field/text-field.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +2 -2
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +86 -81
- package/dist/types/types/Attributes.d.ts +1 -1
- package/dist/types/utils/findNextFocusableElement.d.ts +1 -1
- package/dist/types/utils/findPreviousFocusableElement.d.ts +1 -1
- package/dist/types/utils/getNextNestedChildOfSiblingsMatching.d.ts +1 -1
- package/dist/types/utils/getPreviousNestedChildOfSiblingsMatching.d.ts +1 -1
- package/package.json +1 -1
- package/dist/tegel/p-08c16b2f.entry.js +0 -1
- package/dist/tegel/p-0b37e91a.entry.js +0 -1
- package/dist/tegel/p-1e1a87c1.entry.js +0 -1
- package/dist/tegel/p-2268af7f.entry.js +0 -1
- package/dist/tegel/p-252a7d3f.entry.js +0 -1
- package/dist/tegel/p-25473962.entry.js +0 -1
- package/dist/tegel/p-27d39882.entry.js +0 -1
- package/dist/tegel/p-3ef04672.entry.js +0 -1
- package/dist/tegel/p-40d99d7d.entry.js +0 -1
- package/dist/tegel/p-48a3e489.entry.js +0 -1
- package/dist/tegel/p-4e15f31d.entry.js +0 -1
- package/dist/tegel/p-57c08d0d.entry.js +0 -1
- package/dist/tegel/p-58ac68f3.entry.js +0 -1
- package/dist/tegel/p-6a472310.entry.js +0 -1
- package/dist/tegel/p-7104b955.entry.js +0 -1
- package/dist/tegel/p-781b2939.entry.js +0 -1
- package/dist/tegel/p-894e7e11.entry.js +0 -1
- package/dist/tegel/p-942f8c6f.entry.js +0 -1
- package/dist/tegel/p-98eff725.entry.js +0 -1
- package/dist/tegel/p-9b06bd5f.entry.js +0 -1
- package/dist/tegel/p-9c56b031.entry.js +0 -1
- package/dist/tegel/p-a20a54ef.entry.js +0 -1
- package/dist/tegel/p-a2b2092a.entry.js +0 -1
- package/dist/tegel/p-a334b517.entry.js +0 -1
- package/dist/tegel/p-a4e4c450.entry.js +0 -1
- package/dist/tegel/p-a60ed3de.entry.js +0 -1
- package/dist/tegel/p-a6dca188.entry.js +0 -1
- package/dist/tegel/p-b218db70.entry.js +0 -1
- package/dist/tegel/p-b3b13975.entry.js +0 -1
- package/dist/tegel/p-bb8c2a36.entry.js +0 -1
- package/dist/tegel/p-bee9e9d1.entry.js +0 -1
- package/dist/tegel/p-d501a665.entry.js +0 -1
- package/dist/tegel/p-dda1ac69.entry.js +0 -1
- package/dist/tegel/p-e29fa563.entry.js +0 -1
- package/dist/tegel/p-ed66ef30.entry.js +0 -1
- package/dist/tegel/p-f5ca4fbf.entry.js +0 -1
- package/dist/tegel/p-f602b3a1.entry.js +0 -1
- package/dist/tegel/p-f922308f.entry.js +0 -1
- package/dist/tegel/p-fb300776.entry.js +0 -1
- package/dist/tegel/p-fd22d1ca.entry.js +0 -1
package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js
CHANGED
|
@@ -72,30 +72,24 @@ export class TdsTableBodyRowExpandable {
|
|
|
72
72
|
this.tdsChange.emit({ rowId: this.rowId, isExpanded: this.isExpanded, tableId: this.tableId });
|
|
73
73
|
}
|
|
74
74
|
connectedCallback() {
|
|
75
|
-
var _a;
|
|
76
75
|
/* if user did set a prop we use that as default behaviour */
|
|
77
76
|
if (this.expanded !== undefined) {
|
|
78
77
|
this.isExpanded = this.expanded;
|
|
79
78
|
}
|
|
80
79
|
this.tableEl = this.host.closest('tds-table');
|
|
81
|
-
this.tableId =
|
|
80
|
+
this.tableId = this.tableEl.tableId;
|
|
82
81
|
}
|
|
83
82
|
componentWillLoad() {
|
|
84
83
|
relevantTableProps.forEach((tablePropName) => {
|
|
85
|
-
|
|
86
|
-
this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
|
|
84
|
+
this[tablePropName] = this.tableEl[tablePropName];
|
|
87
85
|
});
|
|
88
86
|
}
|
|
89
87
|
componentWillRender() {
|
|
90
|
-
var _a;
|
|
91
88
|
if (this.colSpan !== null) {
|
|
92
89
|
this.columnsNumber = this.colSpan;
|
|
93
90
|
}
|
|
94
91
|
else {
|
|
95
|
-
|
|
96
|
-
if (header) {
|
|
97
|
-
this.columnsNumber = header.childElementCount + 1;
|
|
98
|
-
}
|
|
92
|
+
this.columnsNumber = this.tableEl.querySelector('tds-table-header').childElementCount + 1;
|
|
99
93
|
}
|
|
100
94
|
}
|
|
101
95
|
sendValue() {
|
|
@@ -107,27 +101,26 @@ export class TdsTableBodyRowExpandable {
|
|
|
107
101
|
this.sendValue();
|
|
108
102
|
}
|
|
109
103
|
render() {
|
|
110
|
-
|
|
111
|
-
return (h(Host, { key: 'd818a7b62472e7e6811b2aa6c22332e18d567d6d', class: {
|
|
104
|
+
return (h(Host, { key: '3d289d00082c284257728cec4f0ddcfc63dda863', class: {
|
|
112
105
|
'tds-table__row': true,
|
|
113
106
|
'tds-table__row-expand--active': this.isExpanded,
|
|
114
107
|
'tds-table__compact': this.compactDesign,
|
|
115
108
|
'tds-table--divider': this.verticalDividers,
|
|
116
|
-
} }, h("tr", { key: '
|
|
109
|
+
} }, h("tr", { key: '246ee336a3ab871346e1fcf81f02109121dc9657', id: `expandable-content-${this.rowId}`, class: {
|
|
117
110
|
'tds-table__row': true,
|
|
118
111
|
'tds-table__row--expanded': this.isExpanded,
|
|
119
|
-
}, part: "row" }, h("td", { key: '
|
|
112
|
+
}, part: "row" }, h("td", { key: 'b727b78965a4bdf0b6cf8ff7e8460d3dfae8327e', class: {
|
|
120
113
|
'tds-table__cell-expand': true,
|
|
121
|
-
} }, h("label", { key: '
|
|
114
|
+
} }, h("label", { key: 'c878be3429a3145b62b242f2e3d9c90ec0a74257', class: "tds-table__expand-control-container" }, h("input", { key: '6b99ef165e359012f83f7e298d9f83319493fc52', class: "tds-table__expand-input", type: "checkbox", onChange: (event) => this.onChangeHandler(event), checked: this.isExpanded, "aria-expanded": this.isExpanded ? 'true' : 'false', "aria-controls": `expandable-content-${this.rowId}`, "aria-label": this.tdsAriaLabelExpandButton }), h("span", { key: 'ec9e1aefc553362c0c3e15cb99118a9c2dfffd04', class: "tds-expendable-row-icon" }, h("svg", { key: '84b3270e5f1bfc7671adcea34d862fe0485f40a8', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: 'fc04209a4a2d35c19c7c74875c0ab302077abbf2', "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: '0c16341da217fbe920241a97b179335cb61e2364' })), h("tr", { key: 'a83ca5c30ec4945dfee096a408db4d1d240d3643', class: {
|
|
122
115
|
'tds-table__row-expand': true,
|
|
123
116
|
'tds-table__row-expand--expanded': this.isExpanded,
|
|
124
|
-
}, part: "expand-row" }, h("td", { key: '
|
|
117
|
+
}, part: "expand-row" }, h("td", { key: '2fcafe17b33ce39b5e1a3b149434006a70f6b8f3', class: {
|
|
125
118
|
'tds-table__cell-expand': true,
|
|
126
119
|
'tds-table__cell-expand--overflow-hidden': this.overflow === 'hidden',
|
|
127
120
|
'tds-table__cell-expand--overflow-visible': this.overflow === 'visible',
|
|
128
|
-
}, part: "expand-row-cell", colSpan:
|
|
121
|
+
}, part: "expand-row-cell", colSpan: this.columnsNumber }, h("div", { key: 'b696b23d127e32a8017692b03de1ce8ee9497dcb', style: {
|
|
129
122
|
overflow: this.overflow,
|
|
130
|
-
} }, h("slot", { key: '
|
|
123
|
+
} }, h("slot", { key: 'e64e00778fd7c85618ae4cbc19d232e2acb873b5', name: "expand-row" }))))));
|
|
131
124
|
}
|
|
132
125
|
static get is() { return "tds-table-body-row-expandable"; }
|
|
133
126
|
static get encapsulation() { return "shadow"; }
|
|
@@ -147,8 +140,8 @@ export class TdsTableBodyRowExpandable {
|
|
|
147
140
|
"type": "number",
|
|
148
141
|
"mutable": false,
|
|
149
142
|
"complexType": {
|
|
150
|
-
"original": "number
|
|
151
|
-
"resolved": "
|
|
143
|
+
"original": "number",
|
|
144
|
+
"resolved": "number",
|
|
152
145
|
"references": {}
|
|
153
146
|
},
|
|
154
147
|
"required": false,
|
|
@@ -278,8 +271,8 @@ export class TdsTableBodyRowExpandable {
|
|
|
278
271
|
"text": ""
|
|
279
272
|
},
|
|
280
273
|
"complexType": {
|
|
281
|
-
"original": "
|
|
282
|
-
"resolved": "
|
|
274
|
+
"original": "any",
|
|
275
|
+
"resolved": "any",
|
|
283
276
|
"references": {}
|
|
284
277
|
}
|
|
285
278
|
}, {
|
|
@@ -293,8 +286,8 @@ export class TdsTableBodyRowExpandable {
|
|
|
293
286
|
"text": "Sends unique table row identifier and isExpanded status when it is expanded/collapsed."
|
|
294
287
|
},
|
|
295
288
|
"complexType": {
|
|
296
|
-
"original": "{\n rowId: string;\n isExpanded: boolean;\n tableId: string
|
|
297
|
-
"resolved": "{ rowId: string; isExpanded: boolean; tableId: string
|
|
289
|
+
"original": "{\n rowId: string;\n isExpanded: boolean;\n tableId: string;\n }",
|
|
290
|
+
"resolved": "{ rowId: string; isExpanded: boolean; tableId: string; }",
|
|
298
291
|
"references": {}
|
|
299
292
|
}
|
|
300
293
|
}];
|
|
@@ -35,7 +35,7 @@ export class TdsTableFooter {
|
|
|
35
35
|
this.nextPage = () => {
|
|
36
36
|
/** If pages and greater or equal to the number of pages, increase pagination value.
|
|
37
37
|
* This is to not get above the number of pages in pagination value. */
|
|
38
|
-
if (this.
|
|
38
|
+
if (this.paginationValue <= this.pages) {
|
|
39
39
|
this.paginationValue++;
|
|
40
40
|
}
|
|
41
41
|
this.emitTdsPagination();
|
|
@@ -55,7 +55,7 @@ export class TdsTableFooter {
|
|
|
55
55
|
this.paginationValue = 1;
|
|
56
56
|
this.rowsperpage = true;
|
|
57
57
|
this.rowsPerPageValues = [10, 25, 50];
|
|
58
|
-
this.pages =
|
|
58
|
+
this.pages = null;
|
|
59
59
|
this.cols = null;
|
|
60
60
|
this.columnsNumber = 0;
|
|
61
61
|
this.compactDesign = false;
|
|
@@ -77,19 +77,16 @@ export class TdsTableFooter {
|
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
connectedCallback() {
|
|
80
|
-
var _a;
|
|
81
80
|
this.tableEl = this.host.closest('tds-table');
|
|
82
|
-
this.tableId =
|
|
81
|
+
this.tableId = this.tableEl.tableId;
|
|
83
82
|
}
|
|
84
83
|
componentWillLoad() {
|
|
85
|
-
var _a, _b, _c;
|
|
86
84
|
relevantTableProps.forEach((tablePropName) => {
|
|
87
|
-
|
|
88
|
-
this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
|
|
85
|
+
this[tablePropName] = this.tableEl[tablePropName];
|
|
89
86
|
});
|
|
90
87
|
this.storeLastCorrectValue(this.paginationValue);
|
|
91
88
|
/** Get the number of columns. */
|
|
92
|
-
const numberOfColumns =
|
|
89
|
+
const numberOfColumns = this.host.parentElement.querySelector('tds-table-header').childElementCount;
|
|
93
90
|
if (this.cols) {
|
|
94
91
|
this.columnsNumber = this.cols;
|
|
95
92
|
}
|
|
@@ -130,16 +127,12 @@ export class TdsTableFooter {
|
|
|
130
127
|
}
|
|
131
128
|
render() {
|
|
132
129
|
var _a;
|
|
133
|
-
return (h(Host, { key: '
|
|
130
|
+
return (h(Host, { key: 'd064beda251b663ad3afccebc98fb4718e3f1d09', class: {
|
|
134
131
|
'tds-table--compact': this.compactDesign,
|
|
135
132
|
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
136
|
-
}, style: this.getStyles() }, h("tr", { key: '
|
|
133
|
+
}, style: this.getStyles() }, h("tr", { key: '02d6c97e498e44ad70c86fd08cc665a8b89e2a07', class: "tds-table__footer-row" }, h("td", { key: 'e9d64ea0f3be240867d886973a40c557fe9899da', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: '4a8f3f921a4e103a1a14e368a4702cd8f6ceb18b', class: "tds-table__pagination" }, h("div", { key: 'c536fb9916071677bf20f033ebb184d469aa0774', class: "tds-table__row-selector" }, this.rowsperpage && ((_a = this.rowsPerPageValues) === null || _a === void 0 ? void 0 : _a.length) > 0 && (h("div", { key: '5a935d6c92a574e1ea0a081e955916526ec9da45', class: "rows-per-page" }, h("p", { key: 'ae9f908bc6803a814236a56e5801857a1989df54' }, "Rows per page"), h("tds-dropdown", { key: '1bcac2201accc7d613250c8f38b77ddc04bfb463', modeVariant: "secondary", id: "rows-dropdown", class: "page-dropdown", size: "xs", defaultValue: `${this.rowsPerPageValues[0]}`, onTdsChange: (event) => this.rowsPerPageChange(event) }, this.rowsPerPageValues.map((value) => {
|
|
137
134
|
return (h("tds-dropdown-option", { value: `${value}` }, value));
|
|
138
|
-
}))))), h("div", { key: '
|
|
139
|
-
if (element) {
|
|
140
|
-
this.inputElement = element;
|
|
141
|
-
}
|
|
142
|
-
}, 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: '86f6a581d1f5fe50ea2106821ff4afa6dd479387', class: "tds-table__footer-text" }, "of ", h("span", { key: '91872a9e6eb05e4e1f540d2a6d203cc2e3fd7a27' }, this.pages), " pages"), h("button", { key: '03a354dde544ac8f6e622f6543b69278896963d3', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.firstPage() }, h("tds-icon", { key: '6d80869e6cf2eba108b141113dc3ba3fe31e0a6a', name: "skip_backwards", size: "20px" })), h("button", { key: '0a95763fc3da9a93ca109dcf668ce8c5c5bd0e89', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: '43e2b68e24844eb964b63a3fb291921edbcd079a', name: "chevron_left", size: "20px" })), h("button", { key: 'c61b81dc60bd58383055c5d98b311bc74b593518', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: 'cdffb08f3cf5a72c98c6a526477add3feb4c5837', name: "chevron_right", size: "20px" })), h("button", { key: 'f6dc3bc7fc879bd205abce12dd235dbeaa767c5f', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.lastPage() }, h("tds-icon", { key: '2c302a54f07077eb3dd3b9665aee6276caceab62', name: "skip_forward", size: "20px" })))))))));
|
|
135
|
+
}))))), h("div", { key: '08f90bbe4dd64812b95de4be540c65afea1a5d7c', class: "tds-table__page-selector" }, h("input", { key: '4e780ad0a24f39df03edc044d110b6278589a61a', 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: '538690df3c6bef86bf14fe8b7c967b89257e5cb7', class: "tds-table__footer-text" }, "of ", h("span", { key: 'ec38ac0b07103bea8aec7ba3e7e88d73c2a756cb' }, this.pages), " pages"), h("button", { key: 'f196e4b87144a6e66a6a3d0451ca0d4ba32bd1af', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.firstPage() }, h("tds-icon", { key: '80041ff46837e3ba072b740cf79d1cf9bbf21b63', name: "skip_backwards", size: "20px" })), h("button", { key: 'c51d570daeb97dbe2cae4e344eb51b97d88bb10a', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h("tds-icon", { key: 'bc02c69dc75f412fac63d952458d0ea06530593c', name: "chevron_left", size: "20px" })), h("button", { key: 'df29a47121d892642b24533a0e132d1f2d13d545', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h("tds-icon", { key: 'b2ae455a7a62c647f5c79cfc8f41bcae4b41b12d', name: "chevron_right", size: "20px" })), h("button", { key: 'd333d73217b7ed86841810bd342e2dd3152ef560', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.lastPage() }, h("tds-icon", { key: '9d94abd5c17bc50b6a33c21dcc74b2689d514f2a', name: "skip_forward", size: "20px" })))))))));
|
|
143
136
|
}
|
|
144
137
|
static get is() { return "tds-table-footer"; }
|
|
145
138
|
static get encapsulation() { return "shadow"; }
|
|
@@ -241,14 +234,14 @@ export class TdsTableFooter {
|
|
|
241
234
|
},
|
|
242
235
|
"attribute": "pages",
|
|
243
236
|
"reflect": true,
|
|
244
|
-
"defaultValue": "
|
|
237
|
+
"defaultValue": "null"
|
|
245
238
|
},
|
|
246
239
|
"cols": {
|
|
247
240
|
"type": "number",
|
|
248
241
|
"mutable": false,
|
|
249
242
|
"complexType": {
|
|
250
|
-
"original": "number
|
|
251
|
-
"resolved": "
|
|
243
|
+
"original": "number",
|
|
244
|
+
"resolved": "number",
|
|
252
245
|
"references": {}
|
|
253
246
|
},
|
|
254
247
|
"required": false,
|
|
@@ -285,8 +278,8 @@ export class TdsTableFooter {
|
|
|
285
278
|
"text": "Event to send current page value to tds-table-body component, can also be listened to in order to implement custom pagination logic."
|
|
286
279
|
},
|
|
287
280
|
"complexType": {
|
|
288
|
-
"original": "{\n tableId: string
|
|
289
|
-
"resolved": "{ tableId: string
|
|
281
|
+
"original": "{\n tableId: string;\n paginationValue: number;\n rowsPerPage?: number;\n }",
|
|
282
|
+
"resolved": "{ tableId: string; paginationValue: number; rowsPerPage?: number; }",
|
|
290
283
|
"references": {}
|
|
291
284
|
}
|
|
292
285
|
}];
|
|
@@ -47,52 +47,46 @@ export class TdsTableHeaderRow {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
bodyExpandClicked() {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
50
|
+
const numberOfExtendRowsActive = this.host.parentElement
|
|
51
|
+
.querySelector('tds-table-body')
|
|
52
|
+
.getElementsByClassName('tds-table__row-extend--active').length;
|
|
53
|
+
const numberOfExtendRows = this.host.parentElement
|
|
54
|
+
.querySelector('tds-table-body')
|
|
55
|
+
.getElementsByTagName('tds-table-body-row-expendable').length;
|
|
56
|
+
if (numberOfExtendRows === numberOfExtendRowsActive) {
|
|
57
|
+
this.mainExpendSelected = true;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
this.mainExpendSelected = false;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
63
63
|
connectedCallback() {
|
|
64
|
-
var _a;
|
|
65
64
|
this.tableEl = this.host.closest('tds-table');
|
|
66
|
-
this.tableId =
|
|
65
|
+
this.tableId = this.tableEl.tableId;
|
|
67
66
|
}
|
|
68
67
|
componentWillLoad() {
|
|
69
68
|
relevantTableProps.forEach((tablePropName) => {
|
|
70
|
-
|
|
71
|
-
this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
|
|
69
|
+
this[tablePropName] = this.tableEl[tablePropName];
|
|
72
70
|
});
|
|
73
71
|
}
|
|
74
72
|
componentWillRender() {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
this.enableToolbarDesign =
|
|
78
|
-
(closestTable === null || closestTable === void 0 ? void 0 : closestTable.getElementsByTagName('tds-table-toolbar').length) >= 1;
|
|
79
|
-
}
|
|
73
|
+
this.enableToolbarDesign =
|
|
74
|
+
this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
|
|
80
75
|
}
|
|
81
76
|
async handleCheckboxChange(event) {
|
|
82
|
-
var _a;
|
|
83
77
|
this.allSelected = event.detail.checked;
|
|
84
78
|
this.tdsSelectAll.emit({
|
|
85
79
|
tableId: this.tableId,
|
|
86
80
|
checked: event.detail.checked,
|
|
87
|
-
selectedRows: await
|
|
81
|
+
selectedRows: await this.tableEl.getSelectedRows(),
|
|
88
82
|
});
|
|
89
83
|
}
|
|
90
84
|
render() {
|
|
91
|
-
return (h(Host, { key: '
|
|
85
|
+
return (h(Host, { key: '6c1cc431846a627cab836e62a551f9f5d6558a9d', class: {
|
|
92
86
|
'tds-table--compact': this.compactDesign,
|
|
93
87
|
'tds-table--divider': this.verticalDividers,
|
|
94
88
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
95
|
-
} }, h("tr", { key: '
|
|
89
|
+
} }, h("tr", { key: 'fe66a0019ffef72437ef0312e07d8e23b0c8f728' }, this.multiselect && (h("th", { key: 'a132d706ef3650e6909a2b1bd90ed51b53a8fe02', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, h("div", { key: 'a4a62796419d0f77a9a9b035a2493ec7cc184e9f', class: "tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '2b9e308d8098b8e2825936f6ff2ab0e1ec0e8897', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (h("th", { key: '916a17bb35705db77de44bee119c579dd55c2d8f', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), h("slot", { key: '79d44597fcb6fa6d2e94197c57a1c9dded7e9f3d' }))));
|
|
96
90
|
}
|
|
97
91
|
static get is() { return "tds-table-header"; }
|
|
98
92
|
static get encapsulation() { return "shadow"; }
|
|
@@ -151,7 +145,7 @@ export class TdsTableHeaderRow {
|
|
|
151
145
|
"mutable": true,
|
|
152
146
|
"complexType": {
|
|
153
147
|
"original": "boolean",
|
|
154
|
-
"resolved": "boolean
|
|
148
|
+
"resolved": "boolean",
|
|
155
149
|
"references": {}
|
|
156
150
|
},
|
|
157
151
|
"required": false,
|
|
@@ -210,8 +204,8 @@ export class TdsTableHeaderRow {
|
|
|
210
204
|
"text": "Event emitted when the status of the select all checkbox changes."
|
|
211
205
|
},
|
|
212
206
|
"complexType": {
|
|
213
|
-
"original": "{\n tableId: string
|
|
214
|
-
"resolved": "{ tableId: string
|
|
207
|
+
"original": "{\n tableId: string;\n checked: boolean;\n selectedRows: any[];\n }",
|
|
208
|
+
"resolved": "{ tableId: string; checked: boolean; selectedRows: any[]; }",
|
|
215
209
|
"references": {}
|
|
216
210
|
}
|
|
217
211
|
}];
|
|
@@ -87,14 +87,12 @@ export class TdsTableHeaderCell {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
connectedCallback() {
|
|
90
|
-
var _a;
|
|
91
90
|
this.tableEl = this.host.closest('tds-table');
|
|
92
|
-
this.tableId =
|
|
91
|
+
this.tableId = this.tableEl.tableId;
|
|
93
92
|
}
|
|
94
93
|
componentWillLoad() {
|
|
95
94
|
relevantTableProps.forEach((tablePropName) => {
|
|
96
|
-
|
|
97
|
-
this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
|
|
95
|
+
this[tablePropName] = this.tableEl[tablePropName];
|
|
98
96
|
});
|
|
99
97
|
}
|
|
100
98
|
componentWillRender() {
|
|
@@ -104,11 +102,8 @@ export class TdsTableHeaderCell {
|
|
|
104
102
|
: 'left';
|
|
105
103
|
// To enable body cells text align per rules set in head cell
|
|
106
104
|
this.internalTdsTextAlign.emit([this.tableId, this.cellKey, this.textAlignState]);
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
this.enableToolbarDesign =
|
|
110
|
-
closesetTable.getElementsByTagName('tds-table-toolbar').length >= 1;
|
|
111
|
-
}
|
|
105
|
+
this.enableToolbarDesign =
|
|
106
|
+
this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
|
|
112
107
|
}
|
|
113
108
|
getAriaSort() {
|
|
114
109
|
if (this.sortingDirection === 'asc')
|
|
@@ -118,7 +113,7 @@ export class TdsTableHeaderCell {
|
|
|
118
113
|
return 'none';
|
|
119
114
|
}
|
|
120
115
|
render() {
|
|
121
|
-
return (h(Host, { key: '
|
|
116
|
+
return (h(Host, { key: 'f128527938679fe448019802ea76cda1a57d75be', class: {
|
|
122
117
|
'tds-table__header-cell': true,
|
|
123
118
|
'tds-table__header-cell--sortable': this.sortable,
|
|
124
119
|
'tds-table__header-cell--is-sorted': this.sortedByMyKey,
|
|
@@ -150,7 +145,7 @@ export class TdsTableHeaderCell {
|
|
|
150
145
|
"mutable": false,
|
|
151
146
|
"complexType": {
|
|
152
147
|
"original": "string",
|
|
153
|
-
"resolved": "string
|
|
148
|
+
"resolved": "string",
|
|
154
149
|
"references": {}
|
|
155
150
|
},
|
|
156
151
|
"required": false,
|
|
@@ -167,7 +162,7 @@ export class TdsTableHeaderCell {
|
|
|
167
162
|
"mutable": false,
|
|
168
163
|
"complexType": {
|
|
169
164
|
"original": "string",
|
|
170
|
-
"resolved": "string
|
|
165
|
+
"resolved": "string",
|
|
171
166
|
"references": {}
|
|
172
167
|
},
|
|
173
168
|
"required": false,
|
|
@@ -184,7 +179,7 @@ export class TdsTableHeaderCell {
|
|
|
184
179
|
"mutable": false,
|
|
185
180
|
"complexType": {
|
|
186
181
|
"original": "string",
|
|
187
|
-
"resolved": "string
|
|
182
|
+
"resolved": "string",
|
|
188
183
|
"references": {}
|
|
189
184
|
},
|
|
190
185
|
"required": false,
|
|
@@ -255,7 +250,7 @@ export class TdsTableHeaderCell {
|
|
|
255
250
|
"mutable": false,
|
|
256
251
|
"complexType": {
|
|
257
252
|
"original": "string",
|
|
258
|
-
"resolved": "string
|
|
253
|
+
"resolved": "string",
|
|
259
254
|
"references": {}
|
|
260
255
|
},
|
|
261
256
|
"required": false,
|
|
@@ -296,8 +291,8 @@ export class TdsTableHeaderCell {
|
|
|
296
291
|
"text": "Sends unique Table identifier, column key and sorting direction to the tds-table-body component,\ncan also be listened to implement custom-sorting logic."
|
|
297
292
|
},
|
|
298
293
|
"complexType": {
|
|
299
|
-
"original": "{\n tableId: string
|
|
300
|
-
"resolved": "{ tableId: string
|
|
294
|
+
"original": "{\n tableId: string;\n columnKey: string;\n sortingDirection: 'asc' | 'desc';\n }",
|
|
295
|
+
"resolved": "{ tableId: string; columnKey: string; sortingDirection: \"desc\" | \"asc\"; }",
|
|
301
296
|
"references": {}
|
|
302
297
|
}
|
|
303
298
|
}, {
|
|
@@ -314,8 +309,8 @@ export class TdsTableHeaderCell {
|
|
|
314
309
|
"text": ""
|
|
315
310
|
},
|
|
316
311
|
"complexType": {
|
|
317
|
-
"original": "{\n tableId: string
|
|
318
|
-
"resolved": "{ tableId: string
|
|
312
|
+
"original": "{\n tableId: string;\n key: string;\n }",
|
|
313
|
+
"resolved": "{ tableId: string; key: string; }",
|
|
319
314
|
"references": {}
|
|
320
315
|
}
|
|
321
316
|
}, {
|
|
@@ -332,8 +327,8 @@ export class TdsTableHeaderCell {
|
|
|
332
327
|
"text": ""
|
|
333
328
|
},
|
|
334
329
|
"complexType": {
|
|
335
|
-
"original": "
|
|
336
|
-
"resolved": "
|
|
330
|
+
"original": "any",
|
|
331
|
+
"resolved": "any",
|
|
337
332
|
"references": {}
|
|
338
333
|
}
|
|
339
334
|
}, {
|
|
@@ -350,8 +345,8 @@ export class TdsTableHeaderCell {
|
|
|
350
345
|
"text": ""
|
|
351
346
|
},
|
|
352
347
|
"complexType": {
|
|
353
|
-
"original": "{\n tableId: string
|
|
354
|
-
"resolved": "{ tableId: string
|
|
348
|
+
"original": "{\n tableId: string;\n key: string;\n }",
|
|
349
|
+
"resolved": "{ tableId: string; key: string; }",
|
|
355
350
|
"references": {}
|
|
356
351
|
}
|
|
357
352
|
}];
|
package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js
CHANGED
|
@@ -63,7 +63,7 @@ export class TdsTableHeaderInputWrapper {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
render() {
|
|
66
|
-
return (h(Host, { key: '
|
|
66
|
+
return (h(Host, { key: '62070c88b54c313b2db10890023db32f0eaf66b5', class: {
|
|
67
67
|
'focused-input-wrapper': this.inputFocused,
|
|
68
68
|
'show-icon': this.showIcon,
|
|
69
69
|
'tds-table__compact': this.compactDesign,
|
|
@@ -34,17 +34,15 @@ export class TdsTableToolbar {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
connectedCallback() {
|
|
37
|
-
var _a;
|
|
38
37
|
this.tableEl = this.host.closest('tds-table');
|
|
39
|
-
this.tableId =
|
|
38
|
+
this.tableId = this.tableEl.tableId;
|
|
40
39
|
if (!this.tdsSearchAriaLabel) {
|
|
41
40
|
console.warn('tds-table-toolbar: tdsSearchAriaLabel is highly recommended for accessibility');
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
componentWillLoad() {
|
|
45
44
|
relevantTableProps.forEach((tablePropName) => {
|
|
46
|
-
|
|
47
|
-
this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
|
|
45
|
+
this[tablePropName] = this.tableEl[tablePropName];
|
|
48
46
|
});
|
|
49
47
|
}
|
|
50
48
|
handleSearch(event) {
|
|
@@ -70,10 +68,10 @@ export class TdsTableToolbar {
|
|
|
70
68
|
return styles;
|
|
71
69
|
}
|
|
72
70
|
render() {
|
|
73
|
-
return (h(Host, { key: '
|
|
71
|
+
return (h(Host, { key: 'e7ce21fcad3bfbc9f93088f777855baa9c6e3869', class: {
|
|
74
72
|
'tds-table--compact': this.compactDesign,
|
|
75
73
|
'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
76
|
-
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: '
|
|
74
|
+
}, style: this.getStyles(), "aria-labelledby": "table-toolbar-title" }, h("div", { key: '7310ec2851d440ba6529eb2d48bb20bcb508429f', class: "tds-table__upper-bar-flex" }, h("div", { key: '5b901252d433968edb04de20a25ea9c09bb39b4b', class: "tds-table__actionbar-left" }, this.tableTitle && (h("caption", { key: '661f8de9fe38cd72b098251b027c7e6f554033e5', id: "table-toolbar-title", class: "tds-table__title" }, this.tableTitle)), h("slot", { key: '8d00d01e2ac92c75f95dc6ae89e7b8769cde6dc1', name: "start" })), h("div", { key: 'fd28cb512ed5ad997cdb1f0b1dff8f7489f95db5', class: "tds-table__actionbar" }, this.filter && (h("div", { key: 'fb2649d623a21eeb1a8c3ed5c512d02d7bbb2efc', class: "tds-table__searchbar" }, h("input", { key: '9cd1284bec12081a2e99996eb6bd160ac926b751', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event), "aria-label": this.tdsSearchAriaLabel }), h("span", { key: '015060f9c59d06c430fabb0acabb8b476a477616', class: "tds-table__searchbar-icon" }, h("tds-icon", { key: '5f990c7f452a46bb0471dd658f24afd848d029e9', name: "search", size: "20px" })))), h("slot", { key: 'a91b2aee680ef316d2fdd46d46bfe9ec3eb3e314', name: "end" })))));
|
|
77
75
|
}
|
|
78
76
|
static get is() { return "tds-table-toolbar"; }
|
|
79
77
|
static get encapsulation() { return "shadow"; }
|
|
@@ -167,8 +165,8 @@ export class TdsTableToolbar {
|
|
|
167
165
|
"text": "Used for sending users' input to the main parent tds-table the component,\ncan also be listened to in order to implement custom sorting logic."
|
|
168
166
|
},
|
|
169
167
|
"complexType": {
|
|
170
|
-
"original": "{\n tableId: string
|
|
171
|
-
"resolved": "{ tableId: string
|
|
168
|
+
"original": "{\n tableId: string;\n query: string;\n }",
|
|
169
|
+
"resolved": "{ tableId: string; query: string; }",
|
|
172
170
|
"references": {}
|
|
173
171
|
}
|
|
174
172
|
}];
|
|
@@ -26,8 +26,7 @@ export class TdsFolderTabs {
|
|
|
26
26
|
this.updateScrollButtons();
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
|
|
30
|
-
resizeObserver.observe(this.navWrapperElement);
|
|
29
|
+
resizeObserver.observe(this.navWrapperElement);
|
|
31
30
|
};
|
|
32
31
|
this.addEventListenerToTabs = () => {
|
|
33
32
|
this.children = Array.from(this.host.children);
|
|
@@ -96,22 +95,16 @@ export class TdsFolderTabs {
|
|
|
96
95
|
this.children[this.selectedIndex].setSelected(true);
|
|
97
96
|
}
|
|
98
97
|
scrollRight() {
|
|
99
|
-
if (!this.navWrapperElement)
|
|
100
|
-
return;
|
|
101
98
|
const scroll = this.navWrapperElement.scrollLeft;
|
|
102
99
|
this.navWrapperElement.scrollLeft = scroll + this.buttonsWidth;
|
|
103
100
|
this.evaluateScrollButtons();
|
|
104
101
|
}
|
|
105
102
|
scrollLeft() {
|
|
106
|
-
if (!this.navWrapperElement)
|
|
107
|
-
return;
|
|
108
103
|
const scroll = this.navWrapperElement.scrollLeft;
|
|
109
104
|
this.navWrapperElement.scrollLeft = scroll - this.buttonsWidth;
|
|
110
105
|
this.evaluateScrollButtons();
|
|
111
106
|
}
|
|
112
107
|
evaluateScrollButtons() {
|
|
113
|
-
if (!this.navWrapperElement)
|
|
114
|
-
return;
|
|
115
108
|
const scroll = this.navWrapperElement.scrollLeft;
|
|
116
109
|
this.showRightScroll = scroll <= this.scrollWidth;
|
|
117
110
|
this.showLeftScroll = scroll > 0;
|
|
@@ -169,9 +162,9 @@ export class TdsFolderTabs {
|
|
|
169
162
|
this.removeEventListenerFromTabs();
|
|
170
163
|
}
|
|
171
164
|
render() {
|
|
172
|
-
return (h(Host, { key: '
|
|
165
|
+
return (h(Host, { key: '8c8c4916fe50279d530f99d21fef8f4ceb89fe55', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '5850bbcf52dfadf7a08dbe420916d98ed6d14b41', class: "wrapper", ref: (el) => {
|
|
173
166
|
this.navWrapperElement = el;
|
|
174
|
-
} }, h("button", { key: '
|
|
167
|
+
} }, h("button", { key: '9506486a1d6a2415bc8213cf1c0ab8c7789ad82c', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h("tds-icon", { key: 'e721ba34d2d703bd0ee2fe833e7859f282b6b332', name: "chevron_left", size: "20px" })), h("slot", { key: 'ee2558c4a7d35d8d6355df59b735344151742884', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '6ac20fbd52634a08bd6ef369a45fe0ebb7de9d5d', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h("tds-icon", { key: '20a1096cec8ef7e121200f469761fac9a2a5086d', name: "chevron_right", size: "20px" })))));
|
|
175
168
|
}
|
|
176
169
|
static get is() { return "tds-folder-tabs"; }
|
|
177
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -191,8 +184,8 @@ export class TdsFolderTabs {
|
|
|
191
184
|
"type": "string",
|
|
192
185
|
"mutable": false,
|
|
193
186
|
"complexType": {
|
|
194
|
-
"original": "'primary' | 'secondary'
|
|
195
|
-
"resolved": "\"primary\" | \"secondary\"
|
|
187
|
+
"original": "'primary' | 'secondary'",
|
|
188
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
196
189
|
"references": {}
|
|
197
190
|
},
|
|
198
191
|
"required": false,
|
|
@@ -26,8 +26,7 @@ export class TdsInlineTabs {
|
|
|
26
26
|
this.updateScrollButtons();
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
|
|
30
|
-
resizeObserver.observe(this.navWrapperElement);
|
|
29
|
+
resizeObserver.observe(this.navWrapperElement);
|
|
31
30
|
};
|
|
32
31
|
this.addEventListenerToTabs = () => {
|
|
33
32
|
this.children = Array.from(this.host.children);
|
|
@@ -97,22 +96,16 @@ export class TdsInlineTabs {
|
|
|
97
96
|
this.children[this.selectedIndex].setSelected(true);
|
|
98
97
|
}
|
|
99
98
|
scrollRight() {
|
|
100
|
-
if (!this.navWrapperElement)
|
|
101
|
-
return;
|
|
102
99
|
const scroll = this.navWrapperElement.scrollLeft;
|
|
103
100
|
this.navWrapperElement.scrollLeft = scroll + this.buttonsWidth;
|
|
104
101
|
this.evaluateScrollButtons();
|
|
105
102
|
}
|
|
106
103
|
scrollLeft() {
|
|
107
|
-
if (!this.navWrapperElement)
|
|
108
|
-
return;
|
|
109
104
|
const scroll = this.navWrapperElement.scrollLeft;
|
|
110
105
|
this.navWrapperElement.scrollLeft = scroll - this.buttonsWidth;
|
|
111
106
|
this.evaluateScrollButtons();
|
|
112
107
|
}
|
|
113
108
|
evaluateScrollButtons() {
|
|
114
|
-
if (!this.navWrapperElement)
|
|
115
|
-
return;
|
|
116
109
|
const scroll = this.navWrapperElement.scrollLeft;
|
|
117
110
|
this.showRightScroll = scroll <= this.scrollWidth;
|
|
118
111
|
this.showLeftScroll = scroll > 0;
|
|
@@ -176,9 +169,9 @@ export class TdsInlineTabs {
|
|
|
176
169
|
this.removeEventListenerFromTabs();
|
|
177
170
|
}
|
|
178
171
|
render() {
|
|
179
|
-
return (h(Host, { key: '
|
|
172
|
+
return (h(Host, { key: 'f33abd9071c85c0651a3ab93e3996ec44717e325', role: "tablist", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '8a5233b2a941a3a1e72dc45f93015b5e606663a8', class: "wrapper", ref: (el) => {
|
|
180
173
|
this.navWrapperElement = el;
|
|
181
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '
|
|
174
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'f2a8051863cfa93f8b2a5c562fc5ebefcc36b195', "aria-label": this.tdsScrollLeftAriaLabel, class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h("tds-icon", { key: 'a93d1cb8ddc5486bbb15449c328a25f6e8e2b4cd', name: "chevron_left", size: "20px" })), h("slot", { key: 'e5b096420d72d12c861730fd9829baeba7cce625', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'f154a7b6553fe77e3f09da314403db5326df8e21', "aria-label": this.tdsScrollRightAriaLabel, class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h("tds-icon", { key: '6832c693ab8a446a629788894f792f571c09cbe3', name: "chevron_right", size: "20px" })))));
|
|
182
175
|
}
|
|
183
176
|
static get is() { return "tds-inline-tabs"; }
|
|
184
177
|
static get encapsulation() { return "shadow"; }
|