@scania/tegel 1.40.0-table-pagination-rowsperpage-reset-bug-beta.0 → 1.40.0-ts-strict-mode-beta.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 +4 -3
- package/dist/cjs/tds-button_2.cjs.entry.js +7 -5
- package/dist/cjs/tds-card.cjs.entry.js +2 -2
- package/dist/cjs/tds-checkbox.cjs.entry.js +6 -3
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +9 -5
- package/dist/cjs/tds-datetime.cjs.entry.js +8 -5
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +49 -31
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +10 -3
- package/dist/cjs/tds-footer-group.cjs.entry.js +7 -6
- package/dist/cjs/tds-footer-item.cjs.entry.js +7 -3
- 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 +10 -5
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +5 -3
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +7 -5
- package/dist/cjs/tds-header-launcher.cjs.entry.js +8 -4
- package/dist/cjs/tds-header.cjs.entry.js +8 -6
- package/dist/cjs/tds-icon.cjs.entry.js +1 -2
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +10 -3
- package/dist/cjs/tds-message.cjs.entry.js +2 -2
- package/dist/cjs/tds-modal.cjs.entry.js +5 -4
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +12 -5
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -4
- package/dist/cjs/tds-popover-core.cjs.entry.js +10 -8
- package/dist/cjs/tds-popover-menu.cjs.entry.js +4 -4
- package/dist/cjs/tds-radio-button.cjs.entry.js +4 -1
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +5 -4
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +13 -9
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +3 -3
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +5 -4
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +15 -9
- package/dist/cjs/tds-side-menu.cjs.entry.js +12 -9
- package/dist/cjs/tds-slider.cjs.entry.js +26 -16
- package/dist/cjs/tds-step.cjs.entry.js +3 -1
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +17 -10
- package/dist/cjs/tds-table-body-row.cjs.entry.js +8 -5
- package/dist/cjs/tds-table-body.cjs.entry.js +9 -5
- package/dist/cjs/tds-table-footer.cjs.entry.js +17 -26
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-header.cjs.entry.js +24 -18
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +6 -4
- package/dist/cjs/tds-table.cjs.entry.js +14 -12
- package/dist/cjs/tds-text-field.cjs.entry.js +7 -6
- package/dist/cjs/tds-textarea.cjs.entry.js +5 -4
- package/dist/cjs/tds-toggle.cjs.entry.js +5 -4
- package/dist/cjs/tds-tooltip.cjs.entry.js +6 -10
- 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 +9 -7
- package/dist/collection/components/card/card.js +4 -4
- package/dist/collection/components/checkbox/checkbox.js +7 -4
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/datetime/datetime.js +10 -7
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +9 -6
- package/dist/collection/components/dropdown/dropdown.js +44 -31
- package/dist/collection/components/footer/footer-group/footer-group.css +1 -4
- package/dist/collection/components/footer/footer-group/footer-group.js +6 -5
- package/dist/collection/components/footer/footer-item/footer-item.css +3 -3
- package/dist/collection/components/footer/footer-item/footer-item.js +6 -2
- 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 +7 -5
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +5 -3
- package/dist/collection/components/header/header-item/header-item.js +9 -5
- package/dist/collection/components/header/header-launcher/header-launcher.js +8 -4
- package/dist/collection/components/header/header.js +8 -6
- package/dist/collection/components/icon/icon.js +3 -4
- package/dist/collection/components/message/message.js +4 -4
- package/dist/collection/components/modal/modal.js +8 -7
- package/dist/collection/components/popover-canvas/popover-canvas.js +9 -9
- package/dist/collection/components/popover-core/popover-core.js +20 -23
- package/dist/collection/components/popover-menu/popover-menu.js +9 -9
- package/dist/collection/components/radio-button/radio-button.js +4 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +5 -4
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +5 -4
- 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 +13 -9
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +15 -9
- package/dist/collection/components/side-menu/side-menu.js +12 -9
- package/dist/collection/components/slider/slider.js +26 -16
- package/dist/collection/components/stepper/step/step.js +3 -1
- package/dist/collection/components/table/table/table.js +36 -18
- package/dist/collection/components/table/table-body/table-body.js +9 -5
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +7 -6
- 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 +13 -10
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +23 -16
- package/dist/collection/components/table/table-footer/table-footer.js +22 -34
- package/dist/collection/components/table/table-header/table-header.js +27 -21
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +22 -17
- 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 +8 -6
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +12 -5
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +10 -3
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +12 -5
- package/dist/collection/components/text-field/text-field.js +9 -8
- package/dist/collection/components/textarea/textarea.js +7 -6
- package/dist/collection/components/toggle/toggle.js +5 -4
- package/dist/collection/components/tooltip/tooltip.js +9 -13
- package/dist/collection/utils/appendHiddenInput.js +6 -4
- package/dist/components/{p-d10d21bd.js → p-0d286c19.js} +2 -2
- package/dist/components/{p-63552d0e.js → p-415fafb3.js} +5 -5
- package/dist/components/{p-3308d5fa.js → p-6fd2b339.js} +10 -8
- package/dist/components/{p-c62b61fe.js → p-799470b1.js} +7 -5
- package/dist/components/{p-2a2d66fe.js → p-7e02ea3e.js} +41 -26
- package/dist/components/{p-6ef207b2.js → p-98d082f9.js} +11 -8
- package/dist/components/{p-3a7e4d0d.js → p-a64cbc40.js} +10 -9
- package/dist/components/{p-04a014cf.js → p-ad376f70.js} +7 -11
- package/dist/components/{p-9336db16.js → p-da11a695.js} +5 -3
- package/dist/components/{p-1dafdc8c.js → p-e0ccf8e6.js} +15 -9
- package/dist/components/{p-44f5b5e1.js → p-e627f11b.js} +6 -3
- package/dist/components/{p-7c3348eb.js → p-ead6727f.js} +9 -5
- package/dist/components/{p-f7d94947.js → p-edc838a0.js} +1 -2
- 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 +5 -4
- 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 +9 -6
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +1 -1
- package/dist/components/tds-folder-tabs.js +11 -4
- package/dist/components/tds-footer-group.js +8 -7
- package/dist/components/tds-footer-item.js +7 -3
- 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 +11 -6
- package/dist/components/tds-header-dropdown-list.js +1 -1
- package/dist/components/tds-header-dropdown.js +11 -9
- 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 +13 -9
- package/dist/components/tds-header.js +8 -6
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tabs.js +11 -4
- package/dist/components/tds-message.js +3 -3
- package/dist/components/tds-modal.js +6 -5
- package/dist/components/tds-navigation-tabs.js +13 -6
- 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 +4 -1
- package/dist/components/tds-side-menu-close-button.js +1 -1
- package/dist/components/tds-side-menu-collapse-button.js +6 -5
- package/dist/components/tds-side-menu-dropdown-list-item.js +13 -9
- package/dist/components/tds-side-menu-dropdown-list.js +3 -3
- package/dist/components/tds-side-menu-dropdown.js +7 -6
- package/dist/components/tds-side-menu-item.js +1 -1
- package/dist/components/tds-side-menu.js +12 -9
- package/dist/components/tds-slider.js +30 -20
- package/dist/components/tds-step.js +4 -2
- package/dist/components/tds-table-body-input-wrapper.js +2 -2
- package/dist/components/tds-table-body-row-expandable.js +17 -10
- package/dist/components/tds-table-body-row.js +9 -6
- package/dist/components/tds-table-body.js +9 -5
- package/dist/components/tds-table-footer.js +22 -33
- package/dist/components/tds-table-header-input-wrapper.js +2 -2
- package/dist/components/tds-table-header.js +25 -19
- package/dist/components/tds-table-toolbar.js +7 -5
- package/dist/components/tds-table.js +14 -12
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-textarea.js +8 -7
- package/dist/components/tds-toast.js +1 -1
- package/dist/components/tds-toggle.js +5 -4
- 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 +4 -3
- package/dist/esm/tds-button_2.entry.js +7 -5
- package/dist/esm/tds-card.entry.js +2 -2
- package/dist/esm/tds-checkbox.entry.js +6 -3
- package/dist/esm/tds-core-header-item_2.entry.js +9 -5
- package/dist/esm/tds-datetime.entry.js +8 -5
- package/dist/esm/tds-dropdown_2.entry.js +49 -31
- package/dist/esm/tds-folder-tabs.entry.js +10 -3
- package/dist/esm/tds-footer-group.entry.js +7 -6
- package/dist/esm/tds-footer-item.entry.js +7 -3
- 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 +10 -5
- package/dist/esm/tds-header-dropdown-list.entry.js +5 -3
- package/dist/esm/tds-header-dropdown.entry.js +7 -5
- package/dist/esm/tds-header-launcher.entry.js +8 -4
- package/dist/esm/tds-header.entry.js +8 -6
- package/dist/esm/tds-icon.entry.js +1 -2
- package/dist/esm/tds-inline-tabs.entry.js +10 -3
- package/dist/esm/tds-message.entry.js +2 -2
- package/dist/esm/tds-modal.entry.js +5 -4
- package/dist/esm/tds-navigation-tabs.entry.js +12 -5
- package/dist/esm/tds-popover-canvas.entry.js +4 -4
- package/dist/esm/tds-popover-core.entry.js +10 -8
- package/dist/esm/tds-popover-menu.entry.js +4 -4
- package/dist/esm/tds-radio-button.entry.js +4 -1
- package/dist/esm/tds-side-menu-collapse-button.entry.js +5 -4
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +13 -9
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +3 -3
- package/dist/esm/tds-side-menu-dropdown.entry.js +5 -4
- package/dist/esm/tds-side-menu-item.entry.js +15 -9
- package/dist/esm/tds-side-menu.entry.js +12 -9
- package/dist/esm/tds-slider.entry.js +26 -16
- package/dist/esm/tds-step.entry.js +3 -1
- package/dist/esm/tds-table-body-input-wrapper.entry.js +1 -1
- package/dist/esm/tds-table-body-row-expandable.entry.js +17 -10
- package/dist/esm/tds-table-body-row.entry.js +8 -5
- package/dist/esm/tds-table-body.entry.js +9 -5
- package/dist/esm/tds-table-footer.entry.js +17 -26
- package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
- package/dist/esm/tds-table-header.entry.js +24 -18
- package/dist/esm/tds-table-toolbar.entry.js +6 -4
- package/dist/esm/tds-table.entry.js +14 -12
- package/dist/esm/tds-text-field.entry.js +7 -6
- package/dist/esm/tds-textarea.entry.js +5 -4
- package/dist/esm/tds-toggle.entry.js +5 -4
- package/dist/esm/tds-tooltip.entry.js +6 -10
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-08c16b2f.entry.js +1 -0
- package/dist/tegel/p-0b37e91a.entry.js +1 -0
- package/dist/tegel/p-1e1a87c1.entry.js +1 -0
- package/dist/tegel/p-2268af7f.entry.js +1 -0
- package/dist/tegel/p-252a7d3f.entry.js +1 -0
- package/dist/tegel/p-25473962.entry.js +1 -0
- package/dist/tegel/{p-650b98bf.entry.js → p-27369d6a.entry.js} +1 -1
- package/dist/tegel/p-27d39882.entry.js +1 -0
- package/dist/tegel/p-3ef04672.entry.js +1 -0
- package/dist/tegel/p-40d99d7d.entry.js +1 -0
- package/dist/tegel/{p-28f85555.entry.js → p-40fa0f5b.entry.js} +1 -1
- package/dist/tegel/p-48a3e489.entry.js +1 -0
- package/dist/tegel/p-4e15f31d.entry.js +1 -0
- package/dist/tegel/p-57c08d0d.entry.js +1 -0
- package/dist/tegel/p-58ac68f3.entry.js +1 -0
- package/dist/tegel/p-6a472310.entry.js +1 -0
- package/dist/tegel/p-7104b955.entry.js +1 -0
- package/dist/tegel/p-781b2939.entry.js +1 -0
- package/dist/tegel/p-894e7e11.entry.js +1 -0
- package/dist/tegel/p-942f8c6f.entry.js +1 -0
- package/dist/tegel/p-98eff725.entry.js +1 -0
- package/dist/tegel/p-9b06bd5f.entry.js +1 -0
- package/dist/tegel/p-9c56b031.entry.js +1 -0
- package/dist/tegel/p-a20a54ef.entry.js +1 -0
- package/dist/tegel/p-a2b2092a.entry.js +1 -0
- package/dist/tegel/p-a334b517.entry.js +1 -0
- package/dist/tegel/p-a4e4c450.entry.js +1 -0
- package/dist/tegel/p-a60ed3de.entry.js +1 -0
- package/dist/tegel/p-a6dca188.entry.js +1 -0
- package/dist/tegel/{p-464469fe.entry.js → p-a912035b.entry.js} +1 -1
- package/dist/tegel/p-b218db70.entry.js +1 -0
- package/dist/tegel/p-b3b13975.entry.js +1 -0
- package/dist/tegel/{p-987f8f0f.entry.js → p-b9afb39e.entry.js} +1 -1
- package/dist/tegel/p-bb8c2a36.entry.js +1 -0
- package/dist/tegel/p-bee9e9d1.entry.js +1 -0
- package/dist/tegel/{p-f31f56fe.entry.js → p-c5694dd6.entry.js} +1 -1
- package/dist/tegel/{p-57a28f62.entry.js → p-ca068263.entry.js} +1 -1
- package/dist/tegel/p-d501a665.entry.js +1 -0
- package/dist/tegel/{p-f2318c88.entry.js → p-da38aa9a.entry.js} +1 -1
- package/dist/tegel/p-dda1ac69.entry.js +1 -0
- package/dist/tegel/{p-55f9c79a.entry.js → p-e0dc09f9.entry.js} +1 -1
- package/dist/tegel/p-e29fa563.entry.js +1 -0
- package/dist/tegel/p-ed66ef30.entry.js +1 -0
- package/dist/tegel/p-f5ca4fbf.entry.js +1 -0
- package/dist/tegel/p-f602b3a1.entry.js +1 -0
- package/dist/tegel/p-f922308f.entry.js +1 -0
- package/dist/tegel/p-fb300776.entry.js +1 -0
- package/dist/tegel/p-fd22d1ca.entry.js +1 -0
- package/dist/tegel/{p-c6968db1.entry.js → p-fe4335ca.entry.js} +1 -1
- package/dist/tegel/tegel.css +1 -1
- 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 +5 -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 +6 -3
- 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 +8 -5
- 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 -5
- 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 +81 -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-08ad6a21.entry.js +0 -1
- package/dist/tegel/p-08f63e5d.entry.js +0 -1
- package/dist/tegel/p-09cd056c.entry.js +0 -1
- package/dist/tegel/p-0c9a51d9.entry.js +0 -1
- package/dist/tegel/p-0cfe8671.entry.js +0 -1
- package/dist/tegel/p-0e772ad7.entry.js +0 -1
- package/dist/tegel/p-17bc1e49.entry.js +0 -1
- package/dist/tegel/p-1859156f.entry.js +0 -1
- package/dist/tegel/p-1f4267a8.entry.js +0 -1
- package/dist/tegel/p-24a76927.entry.js +0 -1
- package/dist/tegel/p-3450dd6c.entry.js +0 -1
- package/dist/tegel/p-3462a7cc.entry.js +0 -1
- package/dist/tegel/p-354d3986.entry.js +0 -1
- package/dist/tegel/p-3c97cb45.entry.js +0 -1
- package/dist/tegel/p-3e6d65ee.entry.js +0 -1
- package/dist/tegel/p-445fa788.entry.js +0 -1
- package/dist/tegel/p-51a17707.entry.js +0 -1
- package/dist/tegel/p-52689019.entry.js +0 -1
- package/dist/tegel/p-6b340718.entry.js +0 -1
- package/dist/tegel/p-72006dd7.entry.js +0 -1
- package/dist/tegel/p-743d4f07.entry.js +0 -1
- package/dist/tegel/p-77cfb0ef.entry.js +0 -1
- package/dist/tegel/p-7887bdbb.entry.js +0 -1
- package/dist/tegel/p-7b598e60.entry.js +0 -1
- package/dist/tegel/p-7ef50e7f.entry.js +0 -1
- package/dist/tegel/p-8c2695af.entry.js +0 -1
- package/dist/tegel/p-9f187848.entry.js +0 -1
- package/dist/tegel/p-9fdc8fa5.entry.js +0 -1
- package/dist/tegel/p-a090bd2f.entry.js +0 -1
- package/dist/tegel/p-a472f649.entry.js +0 -1
- package/dist/tegel/p-a4cbb541.entry.js +0 -1
- package/dist/tegel/p-a56436c8.entry.js +0 -1
- package/dist/tegel/p-a8abc8d9.entry.js +0 -1
- package/dist/tegel/p-b210d23c.entry.js +0 -1
- package/dist/tegel/p-c0cbc9f5.entry.js +0 -1
- package/dist/tegel/p-cf717912.entry.js +0 -1
- package/dist/tegel/p-d1d45942.entry.js +0 -1
- package/dist/tegel/p-d7cdbc4e.entry.js +0 -1
- package/dist/tegel/p-f3c32d4d.entry.js +0 -1
- package/dist/tegel/p-fd15ced7.entry.js +0 -1
|
@@ -17,8 +17,8 @@ export class TdsSlider {
|
|
|
17
17
|
this.supposedValueSlot = -1;
|
|
18
18
|
this.resizeObserverAdded = false;
|
|
19
19
|
this.resetEventListenerAdded = false;
|
|
20
|
+
this.formElement = null;
|
|
20
21
|
this.ariaLiveElement = null;
|
|
21
|
-
this.announcementDebounceTimeout = null;
|
|
22
22
|
this.resetToInitialValue = () => {
|
|
23
23
|
this.forceValueUpdate(this.initialValue);
|
|
24
24
|
this.reset();
|
|
@@ -83,21 +83,22 @@ export class TdsSlider {
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
handleRelease(event) {
|
|
86
|
+
var _a, _b, _c;
|
|
86
87
|
if (!this.thumbGrabbed) {
|
|
87
88
|
const clickedOnTrack = event.target === this.trackElement || event.target === this.trackFillElement;
|
|
88
89
|
if (clickedOnTrack) {
|
|
89
90
|
this.thumbCore(event);
|
|
90
|
-
this.trackElement.focus();
|
|
91
|
+
(_a = this.trackElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
91
92
|
}
|
|
92
93
|
return;
|
|
93
94
|
}
|
|
94
95
|
this.thumbGrabbed = false;
|
|
95
|
-
this.thumbInnerElement.classList.remove('pressed');
|
|
96
|
+
(_b = this.thumbInnerElement) === null || _b === void 0 ? void 0 : _b.classList.remove('pressed');
|
|
96
97
|
if (this.thumbElement) {
|
|
97
98
|
this.thumbElement.setAttribute('aria-grabbed', 'false');
|
|
98
99
|
}
|
|
99
100
|
this.updateValue(event);
|
|
100
|
-
this.trackElement.focus();
|
|
101
|
+
(_c = this.trackElement) === null || _c === void 0 ? void 0 : _c.focus();
|
|
101
102
|
}
|
|
102
103
|
handleMove(event) {
|
|
103
104
|
if (!this.thumbGrabbed) {
|
|
@@ -141,8 +142,11 @@ export class TdsSlider {
|
|
|
141
142
|
return snappedLocalLeft;
|
|
142
143
|
}
|
|
143
144
|
thumbCore(event) {
|
|
145
|
+
var _a;
|
|
144
146
|
const numTicks = parseInt(this.ticks);
|
|
145
|
-
const trackRect = this.trackElement.getBoundingClientRect();
|
|
147
|
+
const trackRect = (_a = this.trackElement) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
148
|
+
if (!trackRect)
|
|
149
|
+
return;
|
|
146
150
|
let localLeft = 0;
|
|
147
151
|
if (event.type === 'mousemove' || event.type === 'mouseup') {
|
|
148
152
|
localLeft = event.clientX - trackRect.left;
|
|
@@ -157,7 +161,9 @@ export class TdsSlider {
|
|
|
157
161
|
localLeft = this.updateSupposedValueSlot(localLeft);
|
|
158
162
|
}
|
|
159
163
|
this.thumbLeft = this.constrainThumb(localLeft);
|
|
160
|
-
this.thumbElement
|
|
164
|
+
if (this.thumbElement) {
|
|
165
|
+
this.thumbElement.style.left = `${this.thumbLeft}px`;
|
|
166
|
+
}
|
|
161
167
|
this.updateValue(event);
|
|
162
168
|
}
|
|
163
169
|
updateTrack() {
|
|
@@ -173,6 +179,8 @@ export class TdsSlider {
|
|
|
173
179
|
// Debounce announcements to prevent too many rapid announcements
|
|
174
180
|
clearTimeout(this.announcementDebounceTimeout);
|
|
175
181
|
this.announcementDebounceTimeout = setTimeout(() => {
|
|
182
|
+
if (!this.ariaLiveElement)
|
|
183
|
+
return;
|
|
176
184
|
this.ariaLiveElement.textContent = `${this.label ? this.label + ' ' : ''}${this.value} of ${this.max}`;
|
|
177
185
|
}, 50);
|
|
178
186
|
}
|
|
@@ -296,11 +304,12 @@ export class TdsSlider {
|
|
|
296
304
|
}
|
|
297
305
|
}
|
|
298
306
|
grabThumb() {
|
|
307
|
+
var _a;
|
|
299
308
|
if (this.readOnly) {
|
|
300
309
|
return;
|
|
301
310
|
}
|
|
302
311
|
this.thumbGrabbed = true;
|
|
303
|
-
this.thumbInnerElement.classList.add('pressed');
|
|
312
|
+
(_a = this.thumbInnerElement) === null || _a === void 0 ? void 0 : _a.classList.add('pressed');
|
|
304
313
|
if (this.thumbElement) {
|
|
305
314
|
this.thumbElement.setAttribute('aria-grabbed', 'true');
|
|
306
315
|
}
|
|
@@ -393,7 +402,8 @@ export class TdsSlider {
|
|
|
393
402
|
this.calculateThumbLeftFromValue(this.value);
|
|
394
403
|
this.updateTrack();
|
|
395
404
|
});
|
|
396
|
-
|
|
405
|
+
if (this.wrapperElement)
|
|
406
|
+
resizeObserver.observe(this.wrapperElement);
|
|
397
407
|
}
|
|
398
408
|
this.calculateThumbLeftFromValue(this.value);
|
|
399
409
|
this.updateTrack();
|
|
@@ -430,30 +440,30 @@ export class TdsSlider {
|
|
|
430
440
|
}
|
|
431
441
|
render() {
|
|
432
442
|
const ariaLabel = this.readOnly ? this.tdsReadOnlyAriaLabel : this.label || this.tdsAriaLabel;
|
|
433
|
-
return (h("div", { key: '
|
|
443
|
+
return (h("div", { key: '24887d4b2784913aed5eca30aad868b29bc3dc71', class: {
|
|
434
444
|
'tds-slider-wrapper': true,
|
|
435
445
|
'read-only': this.readOnly,
|
|
436
|
-
} }, h("input", { key: '
|
|
446
|
+
} }, h("input", { key: 'a30068ce649a2a4154df73f076b0d889898e2220', class: "tds-slider-native-element", type: "range", name: this.name, min: this.min, max: this.max, step: this.step, value: this.value, disabled: this.disabled }), h("div", { key: '38a8a4993efb95dc74a6b998a4a6dce68a57193d', class: "sr-only", "aria-live": "assertive", ref: (el) => {
|
|
437
447
|
this.ariaLiveElement = el;
|
|
438
|
-
} }), h("div", { key: '
|
|
448
|
+
} }), h("div", { key: 'dbdcd7a7524249488066f6cbc7ccda1edc125348', class: {
|
|
439
449
|
'tds-slider': true,
|
|
440
450
|
'disabled': this.disabled,
|
|
441
451
|
'tds-slider-small': this.useSmall,
|
|
442
452
|
}, ref: (el) => {
|
|
443
453
|
this.wrapperElement = el;
|
|
444
|
-
}, "aria-disabled": this.disabled ? 'true' : 'false' }, h("label", { key: '
|
|
454
|
+
}, "aria-disabled": this.disabled ? 'true' : 'false' }, h("label", { key: '703fef163564db3dab89f7ef62c8ec8ae849091a', id: `${this.sliderId}-label`, class: { offset: this.showTickNumbers } }, this.label), this.useInput && (h("div", { key: '61e0a370c74b04c29b7c3d8f227727df2d72e2e1', class: "tds-slider__input-values" }, h("div", { key: '080c7a8d5fe68231a33946284eaf0b42509ae2aa', class: "tds-slider__input-value min-value" }, this.min))), this.useControls && (h("div", { key: 'c281e3c27afb09bbde92bb45b95494bda73a2d1e', class: "tds-slider__controls" }, h("div", { key: '43388973041f6257683c1e95c28273b36329584b', class: "tds-slider__control tds-slider__control-minus", onClick: (event) => this.stepLeft(event), role: "button", "aria-label": "Decrease value", tabindex: this.disabled || this.readOnly ? '-1' : '0' }, h("tds-icon", { key: 'be17662d98c4e89ac549d7604fb8ef039ec1a4ff', name: "minus", size: "16px" })))), h("div", { key: '2d34951d542b45ff4fce0869bd9877626b414641', class: "tds-slider-inner", tabIndex: -1 }, this.tickValues.length > 0 && (h("div", { key: '991096492d690f53e0d597bd05d4f9f3fa875831', class: "tds-slider__value-dividers-wrapper" }, h("div", { key: 'e2362ac7b9af796e0d4b2961c99d6ef850f873fc', class: "tds-slider__value-dividers" }, this.tickValues.map((value) => (h("div", { class: "tds-slider__value-divider" }, this.showTickNumbers && h("span", null, value))))))), h("div", { key: '303410bc80f3fc1a49c1a1954f287151ba1397df', class: "tds-slider__track", ref: (el) => {
|
|
445
455
|
this.trackElement = el;
|
|
446
456
|
}, tabindex: this.disabled ? '-1' : '0', role: "presentation", onFocus: () => {
|
|
447
457
|
if (this.thumbElement) {
|
|
448
458
|
this.thumbElement.focus();
|
|
449
459
|
}
|
|
450
|
-
} }, h("div", { key: '
|
|
460
|
+
} }, h("div", { key: '458f4a54a0ffc5eef7ad1933ba1713f378e03bb2', class: "tds-slider__track-fill", ref: (el) => {
|
|
451
461
|
this.trackFillElement = el;
|
|
452
|
-
} }), h("div", { key: '
|
|
462
|
+
} }), h("div", { key: '09f5c914b3e31f40cbc5114ba11ac8ed6b6c10e3', class: "tds-slider__thumb", ref: (el) => {
|
|
453
463
|
this.thumbElement = el;
|
|
454
|
-
}, onMouseDown: () => this.grabThumb(), onTouchStart: () => this.grabThumb(), role: "slider", "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.value, "aria-valuetext": `${this.value} of ${this.max}`, "aria-labelledby": `${this.sliderId}-label`, "aria-grabbed": this.thumbGrabbed ? 'true' : 'false', "aria-label": ariaLabel, tabindex: this.disabled ? '-1' : '0' }, this.tooltip && (h("div", { key: '
|
|
464
|
+
}, onMouseDown: () => this.grabThumb(), onTouchStart: () => this.grabThumb(), role: "slider", "aria-valuemin": this.min, "aria-valuemax": this.max, "aria-valuenow": this.value, "aria-valuetext": `${this.value} of ${this.max}`, "aria-labelledby": `${this.sliderId}-label`, "aria-grabbed": this.thumbGrabbed ? 'true' : 'false', "aria-label": ariaLabel, tabindex: this.disabled ? '-1' : '0' }, this.tooltip && (h("div", { key: '915c5a0873d719e716a9eda6f24df4f289dcc3e3', class: "tds-slider__value" }, this.value, h("svg", { key: 'd1ad51a448a9314c8a9dc87e5b4c969d9699833f', width: "18", height: "14", viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '84dd5e1bfdddb3f96ce260fde63ec01979e2e8f7', d: "M8.15882 12.6915L0.990487 1.54076C0.562658 0.875246 1.0405 0 1.83167 0H16.1683C16.9595 0 17.4373 0.875246 17.0095 1.54076L9.84118 12.6915C9.44754 13.3038 8.55246 13.3038 8.15882 12.6915Z", fill: "currentColor" })))), h("div", { key: '3c2bd4378b7d2f894bd04af1d0d4f68472d94129', class: "tds-slider__thumb-inner", ref: (el) => {
|
|
455
465
|
this.thumbInnerElement = el;
|
|
456
|
-
} })))), this.useInput && (h("div", { key: '
|
|
466
|
+
} })))), this.useInput && (h("div", { key: '8d7b06d47eb9c5b8adef909a63b4017143025477', class: "tds-slider__input-values" }, h("div", { key: '1e5e6cb7d0522ca0e89e67fd0125684b32e2c4f6', class: "tds-slider__input-value", onClick: (event) => this.stepLeft(event) }, this.max), h("div", { key: 'e3a5d242963f2868f2f26674243c36c634422501', class: "tds-slider__input-field-wrapper" }, h("tds-text-field", { key: '840ddc76488d4d1de29be8d3b2032d57894d2b7a', noMinWidth: true, size: "sm", type: "number", value: this.value, min: this.min, max: this.max, readOnly: this.readOnly, disabled: this.disabled, onTdsChange: (e) => console.log(e), tdsAriaLabel: this.readOnly ? this.tdsReadOnlyAriaLabel : undefined, onTdsBlur: (event) => this.updateSliderValueFromTextField(event), onKeyDown: (event) => this.handleInputFieldEnterPress(event) })))), this.useControls && (h("div", { key: 'c71f7b90d4565cccdb41ef56e1dc3485506baad1', class: "tds-slider__controls" }, h("div", { key: 'c968cc1187252f95b5953a7a91437a09d0255d72', class: "tds-slider__control tds-slider__control-plus", onClick: (event) => this.stepRight(event), role: "button", "aria-label": "Increase value", tabindex: this.disabled || this.readOnly ? '-1' : '0' }, h("tds-icon", { key: '8e3488bcad15f4f6dd7182b066a905019d87d20d', name: "plus", size: "16px" })))))));
|
|
457
467
|
}
|
|
458
468
|
static get is() { return "tds-slider"; }
|
|
459
469
|
static get originalStyleUrls() {
|
|
@@ -21,6 +21,8 @@ export class TdsStep {
|
|
|
21
21
|
/* Needs to be onload to do this on any updates. */
|
|
22
22
|
componentWillLoad() {
|
|
23
23
|
this.stepperEl = this.el.closest('tds-stepper');
|
|
24
|
+
if (!this.stepperEl)
|
|
25
|
+
return;
|
|
24
26
|
this.orientation = this.stepperEl.orientation;
|
|
25
27
|
this.labelPosition = this.stepperEl.labelPosition;
|
|
26
28
|
this.size = this.stepperEl.size;
|
|
@@ -40,7 +42,7 @@ export class TdsStep {
|
|
|
40
42
|
}
|
|
41
43
|
}
|
|
42
44
|
render() {
|
|
43
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: '4da9583f2f8f406775789bb2ba2fb4a048bd2bb2' }, h("div", { key: '68552288702a78338767482726cc50c294c813c4', role: "listitem", "aria-disabled": this.state === 'upcoming' ? 'true' : 'false', "aria-current": this.tdsAriaCurrent, tabIndex: -1, "aria-label": `Step ${this.index}: ${this.state}`, class: `${this.size} ${this.orientation} text-${this.labelPosition} ${this.hideLabels ? 'hide-labels' : ''}` }, h("span", { key: '12da4b94879916c29a142ae2b1c9158132369242', class: `${this.state} content-container` }, this.state === 'success' || this.state === 'error' ? (h("tds-icon", { "aria-hidden": "true", svgTitle: `tds-step-icon-${this.stepperId}`, class: 'tds-step-icon', name: this.state === 'success' ? 'tick' : 'warning', size: this.size === 'lg' ? '20px' : '16px' })) : (h("span", { "aria-hidden": "true", class: "index-container" }, this.index))), !this.hideLabels && (h("div", { key: 'b67fe88775ae01d9878bfea0ed65a5e89bcd096c', "aria-hidden": "true", class: `label ${this.size} ${this.state}` }, h("slot", { key: '63476ee55ea1577a09b3885dd287ef117c00fc3c', name: "label" }))))));
|
|
44
46
|
}
|
|
45
47
|
static get is() { return "tds-step"; }
|
|
46
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -29,20 +29,19 @@ export class TdsTable {
|
|
|
29
29
|
}
|
|
30
30
|
/** Returns all selected rows data. */
|
|
31
31
|
async getSelectedRows() {
|
|
32
|
+
var _a;
|
|
32
33
|
let selectedRowsData = [];
|
|
33
34
|
const tableBody = this.host.querySelector('tds-table-body');
|
|
34
|
-
const selectedRows = Array.from(tableBody.querySelectorAll('tds-table-body-row')).filter((element) => element.selected);
|
|
35
|
+
const selectedRows = Array.from((_a = tableBody === null || tableBody === void 0 ? void 0 : tableBody.querySelectorAll('tds-table-body-row')) !== null && _a !== void 0 ? _a : []).filter((element) => element.selected);
|
|
35
36
|
selectedRows.forEach((row) => {
|
|
36
37
|
let selectedRow = [];
|
|
37
38
|
const rowCells = Array.from(row.getElementsByTagName('tds-body-cell'));
|
|
38
39
|
rowCells.forEach((cell) => {
|
|
39
40
|
var _a;
|
|
40
41
|
const cellObject = {
|
|
41
|
-
cellKey:
|
|
42
|
-
cellValue: null,
|
|
42
|
+
cellKey: cell.cellKey,
|
|
43
|
+
cellValue: ((_a = cell.cellValue) !== null && _a !== void 0 ? _a : cell.innerText),
|
|
43
44
|
};
|
|
44
|
-
cellObject.cellKey = cell.cellKey;
|
|
45
|
-
cellObject.cellValue = (_a = cell.cellValue) !== null && _a !== void 0 ? _a : cell.innerText;
|
|
46
45
|
selectedRow = [...selectedRow, cellObject];
|
|
47
46
|
});
|
|
48
47
|
selectedRowsData = [...selectedRowsData, selectedRow];
|
|
@@ -82,18 +81,21 @@ export class TdsTable {
|
|
|
82
81
|
}
|
|
83
82
|
componentWillRender() {
|
|
84
83
|
if (this.horizontalScrollWidth) {
|
|
85
|
-
this.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
84
|
+
const closestTable = this.host.closest('tds-table');
|
|
85
|
+
if (closestTable) {
|
|
86
|
+
this.enableHorizontalScrollToolbarDesign =
|
|
87
|
+
closestTable.getElementsByTagName('tds-table-toolbar').length >= 1;
|
|
88
|
+
this.enableHorizontalScrollFooterDesign =
|
|
89
|
+
closestTable.getElementsByTagName('tds-table-footer').length >= 1;
|
|
90
|
+
}
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
render() {
|
|
92
|
-
return (h(Host, { key: '
|
|
94
|
+
return (h(Host, { key: '7a09b4ad8b4b79d0c6488ae2fc56b756857abe67', class: {
|
|
93
95
|
'tds-table--responsive': this.responsive,
|
|
94
96
|
'tds-mode-variant-primary': this.modeVariant === 'primary',
|
|
95
97
|
'tds-mode-variant-secondary': this.modeVariant === 'secondary',
|
|
96
|
-
} }, h("table", { key: '
|
|
98
|
+
} }, h("table", { key: '949b04b7b26286b8641df078290eadb843899d76', style: this.getStyles(), class: {
|
|
97
99
|
'tds-table': true,
|
|
98
100
|
'tds-table--compact': this.compactDesign,
|
|
99
101
|
'tds-table--divider': this.verticalDividers,
|
|
@@ -104,7 +106,7 @@ export class TdsTable {
|
|
|
104
106
|
'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
|
|
105
107
|
'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
|
|
106
108
|
'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
|
|
107
|
-
} }, h("slot", { key: '
|
|
109
|
+
} }, h("slot", { key: '319e8974bf20f3fba6c7ef286a494d4875bd2c44' }))));
|
|
108
110
|
}
|
|
109
111
|
static get is() { return "tds-table"; }
|
|
110
112
|
static get encapsulation() { return "shadow"; }
|
|
@@ -231,8 +233,8 @@ export class TdsTable {
|
|
|
231
233
|
"type": "string",
|
|
232
234
|
"mutable": false,
|
|
233
235
|
"complexType": {
|
|
234
|
-
"original": "'primary' | 'secondary'",
|
|
235
|
-
"resolved": "\"primary\" | \"secondary\"",
|
|
236
|
+
"original": "'primary' | 'secondary' | null",
|
|
237
|
+
"resolved": "\"primary\" | \"secondary\" | null",
|
|
236
238
|
"references": {}
|
|
237
239
|
},
|
|
238
240
|
"required": false,
|
|
@@ -267,8 +269,8 @@ export class TdsTable {
|
|
|
267
269
|
"type": "string",
|
|
268
270
|
"mutable": false,
|
|
269
271
|
"complexType": {
|
|
270
|
-
"original": "string",
|
|
271
|
-
"resolved": "string",
|
|
272
|
+
"original": "string | null",
|
|
273
|
+
"resolved": "null | string | undefined",
|
|
272
274
|
"references": {}
|
|
273
275
|
},
|
|
274
276
|
"required": false,
|
|
@@ -338,15 +340,31 @@ export class TdsTable {
|
|
|
338
340
|
return {
|
|
339
341
|
"getSelectedRows": {
|
|
340
342
|
"complexType": {
|
|
341
|
-
"signature": "() => Promise<
|
|
343
|
+
"signature": "() => Promise<{ cellKey: string; cellValue: string | number; }[][]>",
|
|
342
344
|
"parameters": [],
|
|
343
345
|
"references": {
|
|
344
346
|
"Promise": {
|
|
345
347
|
"location": "global",
|
|
346
348
|
"id": "global::Promise"
|
|
349
|
+
},
|
|
350
|
+
"RowCell": {
|
|
351
|
+
"location": "global",
|
|
352
|
+
"id": "global::RowCell"
|
|
353
|
+
},
|
|
354
|
+
"Array": {
|
|
355
|
+
"location": "global",
|
|
356
|
+
"id": "global::Array"
|
|
357
|
+
},
|
|
358
|
+
"HTMLTdsTableBodyRowElement": {
|
|
359
|
+
"location": "global",
|
|
360
|
+
"id": "global::HTMLTdsTableBodyRowElement"
|
|
361
|
+
},
|
|
362
|
+
"HTMLTdsBodyCellElement": {
|
|
363
|
+
"location": "global",
|
|
364
|
+
"id": "global::HTMLTdsBodyCellElement"
|
|
347
365
|
}
|
|
348
366
|
},
|
|
349
|
-
"return": "Promise<
|
|
367
|
+
"return": "Promise<RowCell[][]>"
|
|
350
368
|
},
|
|
351
369
|
"docs": {
|
|
352
370
|
"text": "Returns all selected rows data.",
|
|
@@ -41,16 +41,20 @@ export class TdsTableBody {
|
|
|
41
41
|
this.bodyCheckBoxClicked();
|
|
42
42
|
}
|
|
43
43
|
connectedCallback() {
|
|
44
|
+
var _a;
|
|
44
45
|
this.tableEl = this.host.closest('tds-table');
|
|
45
|
-
this.tableId = this.tableEl.tableId;
|
|
46
|
+
this.tableId = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.tableId;
|
|
46
47
|
}
|
|
47
48
|
componentWillLoad() {
|
|
48
49
|
relevantTableProps.forEach((tablePropName) => {
|
|
49
|
-
|
|
50
|
+
var _a;
|
|
51
|
+
this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
|
|
50
52
|
});
|
|
51
53
|
}
|
|
52
54
|
componentWillRender() {
|
|
53
|
-
|
|
55
|
+
var _a, _b;
|
|
56
|
+
const headrColumn = (_a = this.host.parentElement) === null || _a === void 0 ? void 0 : _a.querySelector('tds-table-header');
|
|
57
|
+
const headerColumnsNo = (_b = headrColumn === null || headrColumn === void 0 ? void 0 : headrColumn.children.length) !== null && _b !== void 0 ? _b : 0;
|
|
54
58
|
// multiselect and expended features requires one extra column for controls...
|
|
55
59
|
if (this.multiselect || this.expandableRows) {
|
|
56
60
|
this.columnsNumber = headerColumnsNo + 1;
|
|
@@ -60,12 +64,12 @@ export class TdsTableBody {
|
|
|
60
64
|
}
|
|
61
65
|
}
|
|
62
66
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
67
|
+
return (h(Host, { key: '80e470d85ca46b398d9254bbcf84865b65656c7c', "data-selected-rows": this.multiselectArrayJSON, class: {
|
|
64
68
|
'tds-table--zebra-mode-rows-odd': this.zebraMode === 'rows-odd',
|
|
65
69
|
'tds-table--zebra-mode-rows-even': this.zebraMode === 'rows-even',
|
|
66
70
|
'tds-table--zebra-mode-columns-odd': this.zebraMode === 'columns-odd',
|
|
67
71
|
'tds-table--zebra-mode-columns-even': this.zebraMode === 'columns-even',
|
|
68
|
-
} }, h("slot", { key: '
|
|
72
|
+
} }, h("slot", { key: 'ef1c5c7a13129ff08d48d568088c05e2416b8284' })));
|
|
69
73
|
}
|
|
70
74
|
static get is() { return "tds-table-body"; }
|
|
71
75
|
static get originalStyleUrls() {
|
|
@@ -63,7 +63,8 @@ export class TdsTableBodyCell {
|
|
|
63
63
|
componentWillLoad() {
|
|
64
64
|
if (this.tableEl) {
|
|
65
65
|
relevantTableProps.forEach((tablePropName) => {
|
|
66
|
-
|
|
66
|
+
var _a;
|
|
67
|
+
this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
|
|
67
68
|
});
|
|
68
69
|
}
|
|
69
70
|
if (this.textAlign) {
|
|
@@ -83,13 +84,13 @@ export class TdsTableBodyCell {
|
|
|
83
84
|
// Conditionally set padding style
|
|
84
85
|
padding: paddingStyle,
|
|
85
86
|
};
|
|
86
|
-
return (h(Host, { key: '
|
|
87
|
+
return (h(Host, { key: '2a56a35d85a6f9f05894ee254edc590c2d7e96b5', class: {
|
|
87
88
|
'tds-table__body-cell': true,
|
|
88
89
|
'tds-table__body-cell--hover': this.activeSorting,
|
|
89
90
|
'tds-table__compact': this.compactDesign,
|
|
90
91
|
'tds-table--divider': this.verticalDividers,
|
|
91
92
|
'tds-table--no-min-width': this.noMinWidth,
|
|
92
|
-
}, style: dynamicStyles, role: "cell" }, this.cellValue, h("slot", { key: '
|
|
93
|
+
}, style: dynamicStyles, role: "cell" }, this.cellValue, h("slot", { key: 'daa924435db192e5205247edc52a5a995dff6f08' })));
|
|
93
94
|
}
|
|
94
95
|
static get is() { return "tds-body-cell"; }
|
|
95
96
|
static get encapsulation() { return "shadow"; }
|
|
@@ -123,11 +124,11 @@ export class TdsTableBodyCell {
|
|
|
123
124
|
"reflect": true
|
|
124
125
|
},
|
|
125
126
|
"cellKey": {
|
|
126
|
-
"type": "
|
|
127
|
+
"type": "string",
|
|
127
128
|
"mutable": false,
|
|
128
129
|
"complexType": {
|
|
129
|
-
"original": "
|
|
130
|
-
"resolved": "
|
|
130
|
+
"original": "string",
|
|
131
|
+
"resolved": "string",
|
|
131
132
|
"references": {}
|
|
132
133
|
},
|
|
133
134
|
"required": false,
|
package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js
CHANGED
|
@@ -81,7 +81,7 @@ export class TdsTableBodyInputWrapper {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
render() {
|
|
84
|
-
return (h(Host, { key: '
|
|
84
|
+
return (h(Host, { key: '332c2ebf290f802f6b8067a1b7b0754cbca2b9aa', class: {
|
|
85
85
|
'focused-input-wrapper': this.inputFocused,
|
|
86
86
|
'show-icon': this.showIcon,
|
|
87
87
|
'tds-table__compact': this.compactDesign,
|
|
@@ -20,17 +20,19 @@ export class TdsTableBodyRow {
|
|
|
20
20
|
this.tableId = '';
|
|
21
21
|
}
|
|
22
22
|
async handleCheckboxChange(event) {
|
|
23
|
+
var _a;
|
|
23
24
|
this.selected = event.detail.checked;
|
|
24
25
|
this.tdsSelect.emit({
|
|
25
26
|
tableId: this.tableId,
|
|
26
27
|
checked: this.selected,
|
|
27
|
-
selectedRows: await this.tableEl.getSelectedRows(),
|
|
28
|
+
selectedRows: await ((_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.getSelectedRows()),
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
31
|
handleRowClick(e) {
|
|
32
|
+
var _a, _b, _c;
|
|
31
33
|
if (!this.clickable)
|
|
32
34
|
return;
|
|
33
|
-
|
|
35
|
+
const rowIndex = Array.from((_c = (_b = (_a = this.host) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.children) !== null && _c !== void 0 ? _c : []).indexOf(this.host);
|
|
34
36
|
this.tdsClick.emit({
|
|
35
37
|
event: e,
|
|
36
38
|
tableId: this.tableId,
|
|
@@ -63,18 +65,19 @@ export class TdsTableBodyRow {
|
|
|
63
65
|
componentWillLoad() {
|
|
64
66
|
if (this.tableEl) {
|
|
65
67
|
relevantTableProps.forEach((tablePropName) => {
|
|
66
|
-
|
|
68
|
+
var _a;
|
|
69
|
+
this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
|
|
67
70
|
});
|
|
68
71
|
}
|
|
69
72
|
}
|
|
70
73
|
render() {
|
|
71
|
-
return (h(Host, { key: '
|
|
74
|
+
return (h(Host, { key: '377d16a55b6c2cb87940ee6ec8629e71dde6ad17', tabindex: this.clickable ? '0' : null, class: {
|
|
72
75
|
'tds-table__row': true,
|
|
73
76
|
'tds-table__row--selected': this.selected,
|
|
74
77
|
'tds-table__compact': this.compactDesign,
|
|
75
78
|
'tds-table--divider': this.verticalDividers,
|
|
76
79
|
'tds-table__row--clickable': this.clickable,
|
|
77
|
-
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e), role: "row" }, this.multiselect && (h("td", { key: '
|
|
80
|
+
}, onClick: (e) => this.handleRowClick(e), onKeyDown: (e) => this.handleKeyDown(e), role: "row" }, this.multiselect && (h("td", { key: 'a65e6eed2e09e49c80c5f25312613c874a3d3b1a', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h("tds-checkbox", { key: '37b7bb583a756031ee86c57015523fdb659d683d', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("slot", { key: '35cdd94e92fc239d756b4ba240f10cd1e1914512' })));
|
|
78
81
|
}
|
|
79
82
|
static get is() { return "tds-table-body-row"; }
|
|
80
83
|
static get encapsulation() { return "shadow"; }
|
|
@@ -113,7 +116,7 @@ export class TdsTableBodyRow {
|
|
|
113
116
|
"mutable": false,
|
|
114
117
|
"complexType": {
|
|
115
118
|
"original": "boolean",
|
|
116
|
-
"resolved": "boolean",
|
|
119
|
+
"resolved": "boolean | undefined",
|
|
117
120
|
"references": {}
|
|
118
121
|
},
|
|
119
122
|
"required": false,
|
|
@@ -168,8 +171,8 @@ export class TdsTableBodyRow {
|
|
|
168
171
|
"text": "Event emitted when a row is selected/deselected."
|
|
169
172
|
},
|
|
170
173
|
"complexType": {
|
|
171
|
-
"original": "{\n tableId: string;\n checked: boolean;\n selectedRows:
|
|
172
|
-
"resolved": "{ tableId: string; checked: boolean; selectedRows:
|
|
174
|
+
"original": "{\n tableId: string | undefined;\n checked: boolean;\n selectedRows: object[] | undefined;\n }",
|
|
175
|
+
"resolved": "{ tableId: string | undefined; checked: boolean; selectedRows: object[] | undefined; }",
|
|
173
176
|
"references": {}
|
|
174
177
|
}
|
|
175
178
|
}, {
|
|
@@ -183,8 +186,8 @@ export class TdsTableBodyRow {
|
|
|
183
186
|
"text": "Event emitted when a row is clicked."
|
|
184
187
|
},
|
|
185
188
|
"complexType": {
|
|
186
|
-
"original": "{\n event: MouseEvent;\n tableId: string;\n rowIndex: number;\n }",
|
|
187
|
-
"resolved": "{ event: MouseEvent; tableId: string; rowIndex: number; }",
|
|
189
|
+
"original": "{\n event: MouseEvent;\n tableId: string | undefined;\n rowIndex: number;\n }",
|
|
190
|
+
"resolved": "{ event: MouseEvent; tableId: string | undefined; rowIndex: number; }",
|
|
188
191
|
"references": {
|
|
189
192
|
"MouseEvent": {
|
|
190
193
|
"location": "global",
|
package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js
CHANGED
|
@@ -72,24 +72,30 @@ 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;
|
|
75
76
|
/* if user did set a prop we use that as default behaviour */
|
|
76
77
|
if (this.expanded !== undefined) {
|
|
77
78
|
this.isExpanded = this.expanded;
|
|
78
79
|
}
|
|
79
80
|
this.tableEl = this.host.closest('tds-table');
|
|
80
|
-
this.tableId = this.tableEl.tableId;
|
|
81
|
+
this.tableId = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.tableId;
|
|
81
82
|
}
|
|
82
83
|
componentWillLoad() {
|
|
83
84
|
relevantTableProps.forEach((tablePropName) => {
|
|
84
|
-
|
|
85
|
+
var _a;
|
|
86
|
+
this[tablePropName] = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a[tablePropName];
|
|
85
87
|
});
|
|
86
88
|
}
|
|
87
89
|
componentWillRender() {
|
|
90
|
+
var _a;
|
|
88
91
|
if (this.colSpan !== null) {
|
|
89
92
|
this.columnsNumber = this.colSpan;
|
|
90
93
|
}
|
|
91
94
|
else {
|
|
92
|
-
|
|
95
|
+
const header = (_a = this.tableEl) === null || _a === void 0 ? void 0 : _a.querySelector('tds-table-header');
|
|
96
|
+
if (header) {
|
|
97
|
+
this.columnsNumber = header.childElementCount + 1;
|
|
98
|
+
}
|
|
93
99
|
}
|
|
94
100
|
}
|
|
95
101
|
sendValue() {
|
|
@@ -101,26 +107,27 @@ export class TdsTableBodyRowExpandable {
|
|
|
101
107
|
this.sendValue();
|
|
102
108
|
}
|
|
103
109
|
render() {
|
|
104
|
-
|
|
110
|
+
var _a;
|
|
111
|
+
return (h(Host, { key: 'd818a7b62472e7e6811b2aa6c22332e18d567d6d', class: {
|
|
105
112
|
'tds-table__row': true,
|
|
106
113
|
'tds-table__row-expand--active': this.isExpanded,
|
|
107
114
|
'tds-table__compact': this.compactDesign,
|
|
108
115
|
'tds-table--divider': this.verticalDividers,
|
|
109
|
-
} }, h("tr", { key: '
|
|
116
|
+
} }, h("tr", { key: '0efc401cb4cd6687aa732200990b685acb84000b', id: `expandable-content-${this.rowId}`, class: {
|
|
110
117
|
'tds-table__row': true,
|
|
111
118
|
'tds-table__row--expanded': this.isExpanded,
|
|
112
|
-
}, part: "row" }, h("td", { key: '
|
|
119
|
+
}, part: "row" }, h("td", { key: 'fae9736c8db81cfa7e7df618ebd03953b58c9178', class: {
|
|
113
120
|
'tds-table__cell-expand': true,
|
|
114
|
-
} }, h("label", { key: '
|
|
121
|
+
} }, h("label", { key: '325036919c99275a30386ec075fc2eb828702c8f', class: "tds-table__expand-control-container" }, h("input", { key: '43e62f1d60a19801a526931ec4a9f0c5f7e98e6b', 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: '0bea7d5d977ab0b2517ec5595a2b8640c6ce591b', class: "tds-expendable-row-icon" }, h("svg", { key: 'e7b63e3a6eb1d418f43259b25b84205abaa75bd7', fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: 'ff0e7f089fd0c1c2cfc5cc4339cdaab4e7f9e275', "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: '9bfd6e772f1a56cbcb5ada2fe9dd59c40e975faf' })), h("tr", { key: 'b3f61ca1d940ad529a44f283b81b43aefacc394d', class: {
|
|
115
122
|
'tds-table__row-expand': true,
|
|
116
123
|
'tds-table__row-expand--expanded': this.isExpanded,
|
|
117
|
-
}, part: "expand-row" }, h("td", { key: '
|
|
124
|
+
}, part: "expand-row" }, h("td", { key: '6635855ce743fa01d531119d90d3491ee416751b', class: {
|
|
118
125
|
'tds-table__cell-expand': true,
|
|
119
126
|
'tds-table__cell-expand--overflow-hidden': this.overflow === 'hidden',
|
|
120
127
|
'tds-table__cell-expand--overflow-visible': this.overflow === 'visible',
|
|
121
|
-
}, part: "expand-row-cell", colSpan: this.columnsNumber }, h("div", { key: '
|
|
128
|
+
}, part: "expand-row-cell", colSpan: (_a = this.columnsNumber) !== null && _a !== void 0 ? _a : undefined }, h("div", { key: '0b99435f7c84aa90155ab7229921bef06e90373b', style: {
|
|
122
129
|
overflow: this.overflow,
|
|
123
|
-
} }, h("slot", { key: '
|
|
130
|
+
} }, h("slot", { key: 'd8e730bcfabe84c4a370b111defa1aa1584f4b96', name: "expand-row" }))))));
|
|
124
131
|
}
|
|
125
132
|
static get is() { return "tds-table-body-row-expandable"; }
|
|
126
133
|
static get encapsulation() { return "shadow"; }
|
|
@@ -140,8 +147,8 @@ export class TdsTableBodyRowExpandable {
|
|
|
140
147
|
"type": "number",
|
|
141
148
|
"mutable": false,
|
|
142
149
|
"complexType": {
|
|
143
|
-
"original": "number",
|
|
144
|
-
"resolved": "number",
|
|
150
|
+
"original": "number | null",
|
|
151
|
+
"resolved": "null | number",
|
|
145
152
|
"references": {}
|
|
146
153
|
},
|
|
147
154
|
"required": false,
|
|
@@ -271,8 +278,8 @@ export class TdsTableBodyRowExpandable {
|
|
|
271
278
|
"text": ""
|
|
272
279
|
},
|
|
273
280
|
"complexType": {
|
|
274
|
-
"original": "
|
|
275
|
-
"resolved": "
|
|
281
|
+
"original": "object",
|
|
282
|
+
"resolved": "object",
|
|
276
283
|
"references": {}
|
|
277
284
|
}
|
|
278
285
|
}, {
|
|
@@ -286,8 +293,8 @@ export class TdsTableBodyRowExpandable {
|
|
|
286
293
|
"text": "Sends unique table row identifier and isExpanded status when it is expanded/collapsed."
|
|
287
294
|
},
|
|
288
295
|
"complexType": {
|
|
289
|
-
"original": "{\n rowId: string;\n isExpanded: boolean;\n tableId: string;\n }",
|
|
290
|
-
"resolved": "{ rowId: string; isExpanded: boolean; tableId: string; }",
|
|
296
|
+
"original": "{\n rowId: string;\n isExpanded: boolean;\n tableId: string | undefined;\n }",
|
|
297
|
+
"resolved": "{ rowId: string; isExpanded: boolean; tableId: string | undefined; }",
|
|
291
298
|
"references": {}
|
|
292
299
|
}
|
|
293
300
|
}];
|