@scania/tegel 1.14.0 → 1.15.0-component-versioning-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/index-ca8040ad.js +52 -44
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tagName-f24f57ce.js +119 -0
- package/dist/cjs/tds-accordion-item.cjs.entry.js +6 -3
- package/dist/cjs/tds-banner.cjs.entry.js +4 -2
- package/dist/cjs/tds-card.cjs.entry.js +8 -5
- package/dist/cjs/tds-core-header-item.cjs.entry.js +20 -0
- package/dist/cjs/tds-datetime.cjs.entry.js +5 -2
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +5 -3
- package/dist/cjs/tds-dropdown.cjs.entry.js +7 -5
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-footer-group.cjs.entry.js +5 -3
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +3 -1
- package/dist/cjs/tds-header-cell.cjs.entry.js +6 -4
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +5 -3
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +3 -1
- package/dist/cjs/{tds-core-header-item_2.cjs.entry.js → tds-header-item.cjs.entry.js} +5 -17
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +3 -1
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +3 -3
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +4 -1
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +4 -1
- package/dist/cjs/tds-header-launcher.cjs.entry.js +4 -2
- package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +12 -3
- package/dist/cjs/tds-message.cjs.entry.js +5 -2
- package/dist/cjs/tds-modal.cjs.entry.js +3 -1
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +16 -5
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -2
- package/dist/cjs/tds-popover-menu.cjs.entry.js +4 -2
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +3 -1
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +6 -4
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +5 -3
- package/dist/cjs/tds-side-menu-user-image.cjs.entry.js +22 -0
- package/dist/cjs/{tds-side-menu-user-image_2.cjs.entry.js → tds-side-menu-user-label.cjs.entry.js} +0 -16
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +4 -1
- package/dist/cjs/tds-slider.cjs.entry.js +10 -7
- package/dist/cjs/tds-step.cjs.entry.js +5 -3
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-body-row.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-footer.cjs.entry.js +11 -2
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-header.cjs.entry.js +4 -2
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +11 -2
- package/dist/cjs/tds-table.cjs.entry.js +10 -3
- package/dist/cjs/tds-text-field.cjs.entry.js +7 -5
- package/dist/cjs/tds-textarea.cjs.entry.js +6 -3
- package/dist/cjs/tds-toast.cjs.entry.js +5 -3
- package/dist/cjs/tds-tooltip.cjs.entry.js +4 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -3
- package/dist/collection/components/banner/banner.js +4 -2
- package/dist/collection/components/card/card.css +24 -0
- package/dist/collection/components/card/card.js +25 -4
- package/dist/collection/components/datetime/datetime.js +6 -3
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +5 -3
- package/dist/collection/components/dropdown/dropdown.js +7 -5
- package/dist/collection/components/footer/footer-group/footer-group.js +5 -3
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +3 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +5 -3
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +3 -1
- package/dist/collection/components/header/header-item/header-item.js +5 -3
- package/dist/collection/components/header/header-launcher/header-launcher.js +4 -2
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +3 -1
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +4 -1
- package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +4 -1
- package/dist/collection/components/message/message.js +5 -2
- package/dist/collection/components/modal/modal.js +3 -1
- package/dist/collection/components/popover-canvas/popover-canvas.js +4 -2
- package/dist/collection/components/popover-menu/popover-menu.js +4 -2
- package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +3 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +6 -4
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +5 -3
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +4 -1
- package/dist/collection/components/side-menu/side-menu.js +3 -3
- package/dist/collection/components/slider/slider.js +11 -8
- package/dist/collection/components/stepper/step/step.js +5 -3
- package/dist/collection/components/stepper/stepper.js +1 -1
- package/dist/collection/components/table/table/table.js +11 -4
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +4 -2
- package/dist/collection/components/table/table-body-row/table-body-row.js +4 -2
- package/dist/collection/components/table/table-footer/table-footer.js +11 -2
- package/dist/collection/components/table/table-header/table-header.js +4 -2
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +6 -4
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +4 -2
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +11 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +4 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +0 -4
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.css +1 -0
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +29 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +0 -4
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.css +1 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +33 -4
- package/dist/collection/components/text-field/text-field.js +7 -5
- package/dist/collection/components/textarea/textarea.js +6 -3
- package/dist/collection/components/toast/toast.js +5 -3
- package/dist/collection/components/tooltip/tooltip.js +4 -2
- package/dist/collection/utils/tagName.js +33 -0
- package/dist/components/p-a74b6809.js +117 -0
- package/dist/components/tds-accordion-item.js +7 -10
- package/dist/components/tds-banner.js +5 -9
- package/dist/components/tds-card.js +10 -12
- package/dist/components/tds-checkbox.js +89 -1
- package/dist/components/tds-core-header-item.js +30 -1
- package/dist/components/tds-datetime.js +6 -9
- package/dist/components/tds-divider.js +33 -1
- package/dist/components/tds-dropdown-option.js +6 -16
- package/dist/components/tds-dropdown.js +8 -12
- package/dist/components/tds-folder-tabs.js +5 -9
- package/dist/components/tds-footer-group.js +6 -10
- package/dist/components/tds-header-brand-symbol.js +4 -14
- package/dist/components/tds-header-cell.js +7 -11
- package/dist/components/tds-header-dropdown-list-item.js +39 -1
- package/dist/components/tds-header-dropdown-list.js +99 -1
- package/dist/components/tds-header-dropdown.js +6 -34
- package/dist/components/tds-header-hamburger.js +4 -20
- package/dist/components/tds-header-item.js +70 -1
- package/dist/components/tds-header-launcher-button.js +39 -1
- package/dist/components/tds-header-launcher-list-item.js +5 -8
- package/dist/components/tds-header-launcher-list.js +5 -8
- package/dist/components/tds-header-launcher.js +5 -39
- package/dist/components/tds-icon.js +63 -1
- package/dist/components/tds-inline-tab.js +1 -1
- package/dist/components/tds-inline-tabs.js +14 -10
- package/dist/components/tds-message.js +6 -9
- package/dist/components/tds-modal.js +4 -8
- package/dist/components/tds-navigation-tab.js +1 -1
- package/dist/components/tds-navigation-tabs.js +18 -12
- package/dist/components/tds-popover-canvas.js +66 -1
- package/dist/components/tds-popover-core.js +1998 -1
- package/dist/components/tds-popover-menu.js +5 -9
- package/dist/components/tds-side-menu-close-button.js +4 -8
- package/dist/components/tds-side-menu-collapse-button.js +7 -11
- package/dist/components/tds-side-menu-dropdown.js +6 -16
- package/dist/components/tds-side-menu-item.js +88 -1
- package/dist/components/tds-side-menu-user-image.js +35 -1
- package/dist/components/tds-side-menu-user-label.js +35 -1
- package/dist/components/tds-side-menu-user.js +5 -14
- package/dist/components/tds-slider.js +11 -14
- package/dist/components/tds-step.js +6 -10
- package/dist/components/tds-table-body-input-wrapper.js +5 -9
- package/dist/components/tds-table-body-row.js +5 -9
- package/dist/components/tds-table-footer.js +12 -9
- package/dist/components/tds-table-header-input-wrapper.js +5 -9
- package/dist/components/tds-table-header.js +5 -9
- package/dist/components/tds-table-toolbar.js +12 -9
- package/dist/components/tds-table.js +10 -3
- package/dist/components/tds-text-field.js +8 -12
- package/dist/components/tds-textarea.js +7 -10
- package/dist/components/tds-toast.js +6 -10
- package/dist/components/tds-tooltip.js +5 -9
- package/dist/esm/index-51d04e39.js +52 -44
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tagName-0d04643f.js +117 -0
- package/dist/esm/tds-accordion-item.entry.js +7 -4
- package/dist/esm/tds-banner.entry.js +4 -2
- package/dist/esm/tds-card.entry.js +8 -5
- package/dist/esm/tds-core-header-item.entry.js +16 -0
- package/dist/esm/tds-datetime.entry.js +6 -3
- package/dist/esm/tds-dropdown-option.entry.js +5 -3
- package/dist/esm/tds-dropdown.entry.js +7 -5
- package/dist/esm/tds-folder-tabs.entry.js +4 -2
- package/dist/esm/tds-footer-group.entry.js +5 -3
- package/dist/esm/tds-header-brand-symbol.entry.js +3 -1
- package/dist/esm/tds-header-cell.entry.js +6 -4
- package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-header-dropdown.entry.js +5 -3
- package/dist/esm/tds-header-hamburger.entry.js +3 -1
- package/dist/esm/{tds-core-header-item_2.entry.js → tds-header-item.entry.js} +6 -17
- package/dist/esm/tds-header-launcher-button.entry.js +3 -1
- package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-item.entry.js +5 -2
- package/dist/esm/tds-header-launcher-list.entry.js +5 -2
- package/dist/esm/tds-header-launcher.entry.js +4 -2
- package/dist/esm/tds-inline-tab.entry.js +1 -1
- package/dist/esm/tds-inline-tabs.entry.js +12 -3
- package/dist/esm/tds-message.entry.js +6 -3
- package/dist/esm/tds-modal.entry.js +3 -1
- package/dist/esm/tds-navigation-tab.entry.js +1 -1
- package/dist/esm/tds-navigation-tabs.entry.js +16 -5
- package/dist/esm/tds-popover-canvas.entry.js +4 -2
- package/dist/esm/tds-popover-menu.entry.js +4 -2
- package/dist/esm/tds-side-menu-close-button.entry.js +3 -1
- package/dist/esm/tds-side-menu-collapse-button.entry.js +6 -4
- package/dist/esm/tds-side-menu-dropdown.entry.js +5 -3
- package/dist/esm/tds-side-menu-user-image.entry.js +18 -0
- package/dist/esm/{tds-side-menu-user-image_2.entry.js → tds-side-menu-user-label.entry.js} +1 -16
- package/dist/esm/tds-side-menu-user.entry.js +5 -2
- package/dist/esm/tds-slider.entry.js +11 -8
- package/dist/esm/tds-step.entry.js +5 -3
- package/dist/esm/tds-table-body-input-wrapper.entry.js +4 -2
- package/dist/esm/tds-table-body-row.entry.js +4 -2
- package/dist/esm/tds-table-footer.entry.js +11 -2
- package/dist/esm/tds-table-header-input-wrapper.entry.js +4 -2
- package/dist/esm/tds-table-header.entry.js +4 -2
- package/dist/esm/tds-table-toolbar.entry.js +11 -2
- package/dist/esm/tds-table.entry.js +10 -3
- package/dist/esm/tds-text-field.entry.js +7 -5
- package/dist/esm/tds-textarea.entry.js +7 -4
- package/dist/esm/tds-toast.entry.js +5 -3
- package/dist/esm/tds-tooltip.entry.js +4 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-07b525fa.entry.js +1 -0
- package/dist/tegel/p-0a2f8635.entry.js +1 -0
- package/dist/tegel/p-0efe32ef.entry.js +1 -0
- package/dist/tegel/p-101d5ad9.entry.js +1 -0
- package/dist/tegel/{p-6c26e66f.entry.js → p-24d62f73.entry.js} +1 -1
- package/dist/tegel/p-2d9011d4.entry.js +1 -0
- package/dist/tegel/p-30a2b7a9.entry.js +1 -0
- package/dist/tegel/p-3bb5f47b.entry.js +1 -0
- package/dist/tegel/p-3c937615.entry.js +1 -0
- package/dist/tegel/p-3f12d4a8.entry.js +1 -0
- package/dist/tegel/p-57d8aa8f.entry.js +1 -0
- package/dist/tegel/p-589289a1.entry.js +1 -0
- package/dist/tegel/p-58b552d6.entry.js +1 -0
- package/dist/tegel/p-5fed1ea6.entry.js +1 -0
- package/dist/tegel/p-61d1cf24.entry.js +1 -0
- package/dist/tegel/p-63991699.entry.js +1 -0
- package/dist/tegel/p-7546a139.entry.js +1 -0
- package/dist/tegel/p-7711d485.entry.js +1 -0
- package/dist/tegel/p-790367cd.entry.js +1 -0
- package/dist/tegel/{p-80edba0f.entry.js → p-7c75d8d3.entry.js} +1 -1
- package/dist/tegel/p-8064b3ed.entry.js +1 -0
- package/dist/tegel/p-80d28081.entry.js +1 -0
- package/dist/tegel/p-82481096.entry.js +1 -0
- package/dist/tegel/p-859e3ebf.js +1 -0
- package/dist/tegel/p-8deb6ba6.entry.js +1 -0
- package/dist/tegel/p-8f30a9cd.entry.js +1 -0
- package/dist/tegel/p-904e90d6.entry.js +1 -0
- package/dist/tegel/p-980a153a.entry.js +1 -0
- package/dist/tegel/p-980fe7c8.entry.js +1 -0
- package/dist/tegel/p-9aa5875a.entry.js +1 -0
- package/dist/tegel/p-a74b6809.js +1 -0
- package/dist/tegel/p-afb182fc.entry.js +1 -0
- package/dist/tegel/p-b543f063.entry.js +1 -0
- package/dist/tegel/p-b71d6a39.entry.js +1 -0
- package/dist/tegel/p-b834b254.entry.js +1 -0
- package/dist/tegel/p-b8970b91.entry.js +1 -0
- package/dist/tegel/p-bf65f439.entry.js +1 -0
- package/dist/tegel/p-c002a601.entry.js +1 -0
- package/dist/tegel/p-c0381ba7.entry.js +1 -0
- package/dist/tegel/p-ccad7d42.entry.js +1 -0
- package/dist/tegel/p-cde009d8.entry.js +1 -0
- package/dist/tegel/p-df945483.entry.js +1 -0
- package/dist/tegel/p-e5a9ec95.entry.js +1 -0
- package/dist/tegel/p-e7fac8ad.entry.js +1 -0
- package/dist/tegel/p-e9d824f5.entry.js +1 -0
- package/dist/tegel/p-edbf6bf4.entry.js +1 -0
- package/dist/tegel/p-ef8e4959.entry.js +1 -0
- package/dist/tegel/{p-56dfd78a.entry.js → p-f3f1f357.entry.js} +1 -1
- package/dist/tegel/{p-f841f094.entry.js → p-fc7a7f06.entry.js} +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/Users/rhyme/projects/scania/tegel/packages/core/.stencil/src/utils/tagNames.d.ts +4 -0
- package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +1 -0
- package/dist/types/components/card/card.d.ts +2 -1
- package/dist/types/components/datetime/datetime.d.ts +1 -0
- package/dist/types/components/header/header-launcher-list/header-launcher-list.d.ts +1 -0
- package/dist/types/components/header/header-launcher-list-item/header-launcher-list-item.d.ts +1 -0
- package/dist/types/components/message/message.d.ts +1 -0
- package/dist/types/components/side-menu/side-menu-user/side-menu-user.d.ts +1 -0
- package/dist/types/components/slider/slider.d.ts +1 -0
- package/dist/types/components/stepper/step/step.d.ts +1 -1
- package/dist/types/components/table/table/table.d.ts +1 -0
- package/dist/types/components/table/table-footer/table-footer.d.ts +1 -0
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +1 -1
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +1 -0
- package/dist/types/components/tabs/inline-tabs/inline-tabs.d.ts +3 -0
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.d.ts +3 -0
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/components.d.ts +18 -0
- package/dist/types/utils/tagName.d.ts +5 -0
- package/package.json +2 -9
- package/dist/components/p-0676aa23.js +0 -76
- package/dist/components/p-09d36119.js +0 -37
- package/dist/components/p-0c3cab16.js +0 -90
- package/dist/components/p-30de8ac4.js +0 -32
- package/dist/components/p-3e74be57.js +0 -65
- package/dist/components/p-8e74bb22.js +0 -57
- package/dist/components/p-a9609e88.js +0 -72
- package/dist/components/p-cfb1b588.js +0 -41
- package/dist/components/p-dc461e7b.js +0 -2000
- package/dist/components/p-dddaa520.js +0 -37
- package/dist/components/p-e46088d9.js +0 -35
- package/dist/components/p-e4d7c655.js +0 -91
- package/dist/components/p-fcec766c.js +0 -101
- package/dist/tegel/p-06d2fa56.entry.js +0 -1
- package/dist/tegel/p-0a4fe3db.entry.js +0 -1
- package/dist/tegel/p-0f38bea7.entry.js +0 -1
- package/dist/tegel/p-1a2f3852.entry.js +0 -1
- package/dist/tegel/p-1bc2c73c.entry.js +0 -1
- package/dist/tegel/p-2b030cef.entry.js +0 -1
- package/dist/tegel/p-2da2c193.entry.js +0 -1
- package/dist/tegel/p-36e88ce8.entry.js +0 -1
- package/dist/tegel/p-480c6c28.entry.js +0 -1
- package/dist/tegel/p-4ab7461e.entry.js +0 -1
- package/dist/tegel/p-4bab99d5.entry.js +0 -1
- package/dist/tegel/p-54a105a4.entry.js +0 -1
- package/dist/tegel/p-578f6d73.entry.js +0 -1
- package/dist/tegel/p-588a05aa.entry.js +0 -1
- package/dist/tegel/p-5a891dd2.entry.js +0 -1
- package/dist/tegel/p-5d0e8f1e.entry.js +0 -1
- package/dist/tegel/p-631dde03.entry.js +0 -1
- package/dist/tegel/p-6938329a.entry.js +0 -1
- package/dist/tegel/p-7d83ba98.entry.js +0 -1
- package/dist/tegel/p-91225c7a.entry.js +0 -1
- package/dist/tegel/p-930e767e.entry.js +0 -1
- package/dist/tegel/p-9332c225.js +0 -1
- package/dist/tegel/p-98f5b520.entry.js +0 -1
- package/dist/tegel/p-9de400f4.entry.js +0 -1
- package/dist/tegel/p-a9654cd4.entry.js +0 -1
- package/dist/tegel/p-a97dd06a.entry.js +0 -1
- package/dist/tegel/p-ac09f8d4.entry.js +0 -1
- package/dist/tegel/p-ada411aa.entry.js +0 -1
- package/dist/tegel/p-b34cf70d.entry.js +0 -1
- package/dist/tegel/p-b4c7099f.entry.js +0 -1
- package/dist/tegel/p-b8593b29.entry.js +0 -1
- package/dist/tegel/p-b9ac3122.entry.js +0 -1
- package/dist/tegel/p-c12eaac3.entry.js +0 -1
- package/dist/tegel/p-c18b2746.entry.js +0 -1
- package/dist/tegel/p-c22c761c.entry.js +0 -1
- package/dist/tegel/p-c917d8be.entry.js +0 -1
- package/dist/tegel/p-dcbd977f.entry.js +0 -1
- package/dist/tegel/p-e237cdcc.entry.js +0 -1
- package/dist/tegel/p-e6a5dda4.entry.js +0 -1
- package/dist/tegel/p-e7108828.entry.js +0 -1
- package/dist/tegel/p-f0d46e61.entry.js +0 -1
- package/dist/tegel/p-f823777e.entry.js +0 -1
- package/dist/cjs/{isHeadingElement-4f06b688.js → getPreviousNestedChildOfSiblingsMatching-4e700df1.js} +12 -12
- package/dist/esm/{isHeadingElement-8efea284.js → getPreviousNestedChildOfSiblingsMatching-a6fcb512.js} +12 -12
|
@@ -163,7 +163,7 @@ export class TdsSideMenu {
|
|
|
163
163
|
"references": {
|
|
164
164
|
"CollapseEvent": {
|
|
165
165
|
"location": "local",
|
|
166
|
-
"path": "/
|
|
166
|
+
"path": "/Users/rhyme/projects/scania/tegel/packages/core/src/components/side-menu/side-menu.tsx",
|
|
167
167
|
"id": "src/components/side-menu/side-menu.tsx::CollapseEvent"
|
|
168
168
|
}
|
|
169
169
|
}
|
|
@@ -187,7 +187,7 @@ export class TdsSideMenu {
|
|
|
187
187
|
"references": {
|
|
188
188
|
"CollapseEvent": {
|
|
189
189
|
"location": "local",
|
|
190
|
-
"path": "/
|
|
190
|
+
"path": "/Users/rhyme/projects/scania/tegel/packages/core/src/components/side-menu/side-menu.tsx",
|
|
191
191
|
"id": "src/components/side-menu/side-menu.tsx::CollapseEvent"
|
|
192
192
|
}
|
|
193
193
|
}
|
|
@@ -211,7 +211,7 @@ export class TdsSideMenu {
|
|
|
211
211
|
"references": {
|
|
212
212
|
"InternalTdsSideMenuPropChange": {
|
|
213
213
|
"location": "local",
|
|
214
|
-
"path": "/
|
|
214
|
+
"path": "/Users/rhyme/projects/scania/tegel/packages/core/src/components/side-menu/side-menu.tsx",
|
|
215
215
|
"id": "src/components/side-menu/side-menu.tsx::InternalTdsSideMenuPropChange"
|
|
216
216
|
}
|
|
217
217
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../utils/generateUniqueId";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
export class TdsSlider {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.wrapperElement = null;
|
|
@@ -291,24 +292,25 @@ export class TdsSlider {
|
|
|
291
292
|
this.updateTrack();
|
|
292
293
|
}
|
|
293
294
|
render() {
|
|
294
|
-
|
|
295
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
296
|
+
return (h("div", { key: 'd676666417f2124dd55ca83f8d8823b47dca5275', class: {
|
|
295
297
|
'tds-slider-wrapper': true,
|
|
296
298
|
'read-only': this.readOnly,
|
|
297
|
-
} }, h("input", { key: '
|
|
299
|
+
} }, h("input", { key: '1cb6a822d82f5bfd0234dbc20cf46ee178ef4f3f', class: "tds-slider-native-element", type: "range", name: this.name, min: this.min, max: this.max, value: this.value, disabled: this.disabled }), h("div", { key: '25ee1da1072d4081404310fefcf6156ac1545bb6', class: {
|
|
298
300
|
'tds-slider': true,
|
|
299
301
|
'disabled': this.disabled,
|
|
300
302
|
'tds-slider-small': this.useSmall,
|
|
301
303
|
}, ref: (el) => {
|
|
302
304
|
this.wrapperElement = el;
|
|
303
|
-
} }, h("label", { key: '
|
|
305
|
+
} }, h("label", { key: '9f613d2362d32772238e4f9cf4cc21333fa610bb', class: this.showTickNumbers && 'offset' }, this.label), this.useInput && (h("div", { key: 'ebbcd4682a5563b5781b0aeeeeac2e56f6a79fbd', class: "tds-slider__input-values" }, h("div", { key: '3b0b92b1408f79864825be16dc851b12183bb799', class: "tds-slider__input-value min-value" }, this.min))), this.useControls && (h("div", { key: '6d36e25c24c5fe18200f65703a018b92726b3dee', class: "tds-slider__controls" }, h("div", { key: 'fb4de7652d093df433e2be7cc06a7b9a9421ed58', class: "tds-slider__control tds-slider__control-minus", onClick: (event) => this.stepLeft(event) }, h(prefixedTagNames.tdsIcon, { key: '6a0f6fd30de791dfe2bcab654a9368707cc5ff4c', name: "minus", size: "16px" })))), h("div", { key: '0a49a454753cae2f4e49bc5cdfe4094201e0f41b', class: "tds-slider-inner" }, this.tickValues.length > 0 && (h("div", { key: 'c920f993c2bf263ecaea5fa6b3904a34e8b94fe8', class: "tds-slider__value-dividers-wrapper" }, h("div", { key: 'ed326517f7c3338c88d3314c5848960de2882447', 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: '5170894e75bd459c9dc5e6010a8312b611c664e8', class: "tds-slider__track", ref: (el) => {
|
|
304
306
|
this.trackElement = el;
|
|
305
|
-
}, tabindex: this.disabled ? '-1' : '0' }, h("div", { key: '
|
|
307
|
+
}, tabindex: this.disabled ? '-1' : '0' }, h("div", { key: '55e94d65579e662b3b92a43418524f348ef4c69c', class: "tds-slider__track-fill", ref: (el) => {
|
|
306
308
|
this.trackFillElement = el;
|
|
307
|
-
} }), h("div", { key: '
|
|
309
|
+
} }), h("div", { key: 'a8129aaa54e8a03f254e8858e98427fa3f99f452', class: "tds-slider__thumb", ref: (el) => {
|
|
308
310
|
this.thumbElement = el;
|
|
309
|
-
}, onMouseDown: () => this.grabThumb(), onTouchStart: () => this.grabThumb() }, this.tooltip && (h("div", { key: '
|
|
311
|
+
}, onMouseDown: () => this.grabThumb(), onTouchStart: () => this.grabThumb() }, this.tooltip && (h("div", { key: '1d478384f0b6c31d4a2766a3a627cdd4574cd79e', class: "tds-slider__value" }, this.value, h("svg", { key: '343f422c8042eacbb37737913dcfd4e065a03679', width: "18", height: "14", viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '5057f976f09b5f176f2c1489e6ab94aed8dc0472', 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: '8ed0d33b1b5be47b9e231d88bf2ea9fa8d7a9199', class: "tds-slider__thumb-inner", ref: (el) => {
|
|
310
312
|
this.thumbInnerElement = el;
|
|
311
|
-
} })))), this.useInput && (h("div", { key: '
|
|
313
|
+
} })))), this.useInput && (h("div", { key: '17cdc0c35da1c5355edcacec51a84146ba052350', class: "tds-slider__input-values" }, h("div", { key: 'af0f7c10aa16cc44789c827f7eee086fa4abfc70', class: "tds-slider__input-value", onClick: (event) => this.stepLeft(event) }, this.max), h("div", { key: '6879810e310ab9f036cd37cd907f704470334cb8', class: "tds-slider__input-field-wrapper" }, h("input", { key: '4ea73453907e378ec31fa2c99517d7ba16af5d5a', size: this.calculateInputSizeFromMax(), class: "tds-slider__input-field", value: this.value, readOnly: this.readOnly, onBlur: (event) => this.updateSliderValueOnInputChange(event), onKeyDown: (event) => this.handleInputFieldEnterPress(event), type: "number", min: this.min, max: this.max })))), this.useControls && (h("div", { key: '9afa97d14e9e9b44c0f412462b302d160051161d', class: "tds-slider__controls" }, h("div", { key: 'efd5e7f9b2f3287e5294bebc51739c6b07876ec7', class: "tds-slider__control tds-slider__control-plus", onClick: (event) => this.stepRight(event) }, h(prefixedTagNames.tdsIcon, { key: '5d0fd79876dab01667cf73dcd816a9198e33bd85', name: "plus", size: "16px" })))))));
|
|
312
314
|
}
|
|
313
315
|
static get is() { return "tds-slider"; }
|
|
314
316
|
static get originalStyleUrls() {
|
|
@@ -667,6 +669,7 @@ export class TdsSlider {
|
|
|
667
669
|
}
|
|
668
670
|
};
|
|
669
671
|
}
|
|
672
|
+
static get elementRef() { return "host"; }
|
|
670
673
|
static get watchers() {
|
|
671
674
|
return [{
|
|
672
675
|
"propName": "value",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const propToStateMap = {
|
|
3
4
|
orientation: 'orientation',
|
|
4
5
|
labelPosition: 'labelPosition',
|
|
@@ -19,7 +20,7 @@ export class TdsStep {
|
|
|
19
20
|
}
|
|
20
21
|
/* Needs to be onload to do this on any updates. */
|
|
21
22
|
componentWillLoad() {
|
|
22
|
-
this.stepperEl = this.
|
|
23
|
+
this.stepperEl = this.host.closest('tds-stepper');
|
|
23
24
|
this.orientation = this.stepperEl.orientation;
|
|
24
25
|
this.labelPosition = this.stepperEl.labelPosition;
|
|
25
26
|
this.size = this.stepperEl.size;
|
|
@@ -39,7 +40,8 @@ export class TdsStep {
|
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
render() {
|
|
42
|
-
|
|
43
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
44
|
+
return (h(Host, { key: '52a70297ba2b6f186916f597e2e6f355fea93d50' }, h("div", { key: 'e6abd1a5dc488b03a16451e162ea9b6911e36875', role: "listitem", class: `${this.size} ${this.orientation} text-${this.labelPosition} ${this.hideLabels ? 'hide-labels' : ''}` }, h("span", { key: 'e98b565719a767a03386f9e351be40c3843ae7f2', class: `${this.state} content-container` }, this.state === 'success' || this.state === 'error' ? (h(prefixedTagNames.tdsIcon, { class: 'tds-step-icon', name: this.state === 'success' ? 'tick' : 'warning', size: this.size === 'lg' ? '20px' : '16px' })) : (h("span", { class: "index-container" }, this.index))), !this.hideLabels && (h("div", { key: 'eb6814fb3f3b932de0ea2adaa02e8d350db105b0', class: `label ${this.size} ${this.state}` }, h("slot", { key: '8e3c42eaa55d71e278f73ac7c920510fc182f00b', name: "label" }))))));
|
|
43
45
|
}
|
|
44
46
|
static get is() { return "tds-step"; }
|
|
45
47
|
static get encapsulation() { return "shadow"; }
|
|
@@ -100,7 +102,7 @@ export class TdsStep {
|
|
|
100
102
|
"labelPosition": {}
|
|
101
103
|
};
|
|
102
104
|
}
|
|
103
|
-
static get elementRef() { return "
|
|
105
|
+
static get elementRef() { return "host"; }
|
|
104
106
|
static get listeners() {
|
|
105
107
|
return [{
|
|
106
108
|
"name": "internalTdsPropsChange",
|
|
@@ -173,7 +173,7 @@ export class TdsStepper {
|
|
|
173
173
|
"references": {
|
|
174
174
|
"InternalTdsStepperPropChange": {
|
|
175
175
|
"location": "local",
|
|
176
|
-
"path": "/
|
|
176
|
+
"path": "/Users/rhyme/projects/scania/tegel/packages/core/src/components/stepper/stepper.tsx",
|
|
177
177
|
"id": "src/components/stepper/stepper.tsx::InternalTdsStepperPropChange"
|
|
178
178
|
}
|
|
179
179
|
}
|
|
@@ -48,6 +48,13 @@ export class TdsTable {
|
|
|
48
48
|
});
|
|
49
49
|
return selectedRowsData;
|
|
50
50
|
}
|
|
51
|
+
getStyles() {
|
|
52
|
+
const styles = {};
|
|
53
|
+
if (this.horizontalScrollWidth) {
|
|
54
|
+
styles.width = `${this.horizontalScrollWidth}px`;
|
|
55
|
+
}
|
|
56
|
+
return styles;
|
|
57
|
+
}
|
|
51
58
|
multiselectChanged(newValue) {
|
|
52
59
|
this.emitInternalTdsPropChange('multiselect', newValue);
|
|
53
60
|
}
|
|
@@ -78,11 +85,11 @@ export class TdsTable {
|
|
|
78
85
|
}
|
|
79
86
|
}
|
|
80
87
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
88
|
+
return (h(Host, { key: '580c1c90c9f4556b16037c3200ae739a891bea88', class: {
|
|
82
89
|
'tds-table--responsive': this.responsive,
|
|
83
90
|
'tds-mode-variant-primary': this.modeVariant === 'primary',
|
|
84
91
|
'tds-mode-variant-secondary': this.modeVariant === 'secondary',
|
|
85
|
-
} }, h("table", { key: '
|
|
92
|
+
} }, h("table", { key: 'f2e9d248c5e93e6d83cfcd74408f99ed54c1ae95', style: this.getStyles(), class: {
|
|
86
93
|
'tds-table': true,
|
|
87
94
|
'tds-table--compact': this.compactDesign,
|
|
88
95
|
'tds-table--divider': this.verticalDividers,
|
|
@@ -93,7 +100,7 @@ export class TdsTable {
|
|
|
93
100
|
'tds-table--horizontal-scroll-toolbar-compact': this.enableHorizontalScrollToolbarDesign && this.compactDesign,
|
|
94
101
|
'tds-table--horizontal-scroll-footer': this.enableHorizontalScrollFooterDesign && !this.compactDesign,
|
|
95
102
|
'tds-table--horizontal-scroll-footer-compact': this.enableHorizontalScrollFooterDesign && this.compactDesign,
|
|
96
|
-
} }, h("slot", { key: '
|
|
103
|
+
} }, h("slot", { key: '74edfe5bc755d4a7880b1368452f2906ebc5346a' }))));
|
|
97
104
|
}
|
|
98
105
|
static get is() { return "tds-table"; }
|
|
99
106
|
static get encapsulation() { return "shadow"; }
|
|
@@ -298,7 +305,7 @@ export class TdsTable {
|
|
|
298
305
|
"references": {
|
|
299
306
|
"InternalTdsTablePropChange": {
|
|
300
307
|
"location": "local",
|
|
301
|
-
"path": "/
|
|
308
|
+
"path": "/Users/rhyme/projects/scania/tegel/packages/core/src/components/table/table/table.tsx",
|
|
302
309
|
"id": "src/components/table/table/table.tsx::InternalTdsTablePropChange"
|
|
303
310
|
}
|
|
304
311
|
}
|
package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = ['compactDesign'];
|
|
3
4
|
export class TdsTableBodyInputWrapper {
|
|
4
5
|
constructor() {
|
|
@@ -63,11 +64,12 @@ export class TdsTableBodyInputWrapper {
|
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
render() {
|
|
66
|
-
|
|
67
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
68
|
+
return (h(Host, { key: '05e41154f07408493f682755fcfce90b16540f05', class: {
|
|
67
69
|
'focused-input-wrapper': this.inputFocused,
|
|
68
70
|
'show-icon': this.showIcon,
|
|
69
71
|
'tds-table__compact': this.compactDesign,
|
|
70
|
-
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(
|
|
72
|
+
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(prefixedTagNames.tdsIcon, { class: "edit-icon", slot: "icon", size: "16px", name: "edit" })) : null));
|
|
71
73
|
}
|
|
72
74
|
static get is() { return "tds-table-body-input-wrapper"; }
|
|
73
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = [
|
|
3
4
|
'multiselect',
|
|
4
5
|
'verticalDividers',
|
|
@@ -48,12 +49,13 @@ export class TdsTableBodyRow {
|
|
|
48
49
|
});
|
|
49
50
|
}
|
|
50
51
|
render() {
|
|
51
|
-
|
|
52
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
53
|
+
return (h(Host, { key: '0ac4875938275167c52bdb1a66fc54158c61a76d', class: {
|
|
52
54
|
'tds-table__row': true,
|
|
53
55
|
'tds-table__row--selected': this.selected,
|
|
54
56
|
'tds-table__compact': this.compactDesign,
|
|
55
57
|
'tds-table--divider': this.verticalDividers,
|
|
56
|
-
} }, this.multiselect && (h("td", { key: '
|
|
58
|
+
} }, this.multiselect && (h("td", { key: 'c7207da4609b85ae7d2af89df17a06021ed4d5dc', class: "tds-table__body-cell tds-table__body-cell--checkbox tds-form-label tds-form-label--table" }, h(prefixedTagNames.tdsCheckbox, { key: '46d7c610a47b1318d0d30d689bcdcfde5761727c', onTdsChange: (event) => this.handleCheckboxChange(event), checked: this.selected, disabled: this.disabled }))), h("slot", { key: '06e607ab15a8f5610f67be5afd2a46ed0f96c4b4' })));
|
|
57
59
|
}
|
|
58
60
|
static get is() { return "tds-table-body-row"; }
|
|
59
61
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = [
|
|
3
4
|
'compactDesign',
|
|
4
5
|
'horizontalScrollWidth',
|
|
@@ -93,11 +94,19 @@ export class TdsTableFooter {
|
|
|
93
94
|
});
|
|
94
95
|
this.storeLastCorrectValue(this.paginationValue);
|
|
95
96
|
}
|
|
97
|
+
getStyles() {
|
|
98
|
+
const styles = {};
|
|
99
|
+
if (this.horizontalScrollWidth) {
|
|
100
|
+
styles.width = `${this.horizontalScrollWidth}px`;
|
|
101
|
+
}
|
|
102
|
+
return styles;
|
|
103
|
+
}
|
|
96
104
|
render() {
|
|
97
|
-
|
|
105
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
106
|
+
return (h(Host, { key: '2b1679b41dc9820424351c33e85591f36818d1e1', class: {
|
|
98
107
|
'tds-table--compact': this.compactDesign,
|
|
99
108
|
'footer__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
100
|
-
}, style: this.
|
|
109
|
+
}, style: this.getStyles() }, h("tr", { key: '153812eec84fce53dc6dc8ac7ca0ef80dfd76213', class: "tds-table__footer-row" }, h("td", { key: '8393249d6dc9f5758e7b4fa83d7cfcbde59dbc77', class: "tds-table__footer-cell", colSpan: this.columnsNumber }, this.pagination && (h("div", { key: 'cbd30e634548f1019ccd1bc15512a6b65ff13034', class: "tds-table__pagination" }, h("div", { key: '1c4a05e5ee585ca96b632082cdc34b7d5e520447', class: "tds-table__row-selector" }), h("div", { key: 'aaa98355f48907c761157c79d6676a357b431e98', class: "tds-table__page-selector" }, h("input", { key: '8bea9cd1dd079ec4062a0fc1a72b57d5aafbdf69', 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: '75c510c649be650ad2c52d894eee1f99ceed9d96', class: "tds-table__footer-text" }, "of ", h("span", { key: 'cbdf2851142771260e5f2ded77fac0313e326e69' }, this.pages), " pages"), h("button", { key: 'e881d7d94881aef373551e37b9371a9f6b4d5332', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue <= 1, onClick: () => this.previousPage() }, h(prefixedTagNames.tdsIcon, { key: 'efb8d1f38cb9cea4fccc9b9df0649837d44dfa46', name: "chevron_left", size: "20px" })), h("button", { key: '6017258d6ec87aea2e34739c17d63d1e0762c2d6', type: "button", class: "tds-table__footer-btn", disabled: this.paginationValue >= this.pages, onClick: () => this.nextPage() }, h(prefixedTagNames.tdsIcon, { key: 'c020cb98076c8c5e26cb9d4a78f0600272e4ebf5', name: "chevron_right", size: "20px" })))))))));
|
|
101
110
|
}
|
|
102
111
|
static get is() { return "tds-table-footer"; }
|
|
103
112
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = [
|
|
3
4
|
'multiselect',
|
|
4
5
|
'expandableRows',
|
|
@@ -82,11 +83,12 @@ export class TdsTableHeaderRow {
|
|
|
82
83
|
});
|
|
83
84
|
}
|
|
84
85
|
render() {
|
|
85
|
-
|
|
86
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
87
|
+
return (h(Host, { key: 'c6b52b1d3a4758d2f633b63276491d54378997d0', class: {
|
|
86
88
|
'tds-table--compact': this.compactDesign,
|
|
87
89
|
'tds-table--divider': this.verticalDividers,
|
|
88
90
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
89
|
-
} }, h("tr", { key: '
|
|
91
|
+
} }, h("tr", { key: '4f9c9077abe94dd132d70c3b1917b5ee321bb86c' }, this.multiselect && (h("th", { key: '93fe6f0b820002e877368a406a1f27993f8c76d9', class: "tds-table__header-cell tds-table__header-cell--checkbox" }, h("div", { key: '0ee069d210c5bf362585034db083d675e20790d9', class: "tds-form-label tds-form-label--table" }, h(prefixedTagNames.tdsCheckbox, { key: '8a1db3dd87cf767823c4a20a9d7c4fd25e9c595c', checked: this.allSelected || this.selected, disabled: this.disabled, indeterminate: this.indeterminate, onTdsChange: (event) => this.handleCheckboxChange(event) })))), this.expandableRows && (h("th", { key: '2a141bca63ff69c3572f18e83ba67c375b11b988', class: "tds-table__header-cell tds-table__header-cell--checkbox" })), h("slot", { key: 'b5cfad23823fbddf0136ea696ec5870f114075f6' }))));
|
|
90
92
|
}
|
|
91
93
|
static get is() { return "tds-table-header"; }
|
|
92
94
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = [
|
|
3
4
|
'multiselect',
|
|
4
5
|
'expandableRows',
|
|
@@ -29,9 +30,9 @@ export class TdsTableHeaderCell {
|
|
|
29
30
|
key: this.cellKey,
|
|
30
31
|
});
|
|
31
32
|
};
|
|
32
|
-
this.headerCellContent = () => {
|
|
33
|
+
this.headerCellContent = (prefixedTagNames) => {
|
|
33
34
|
if (this.sortable) {
|
|
34
|
-
return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick(), style: { justifyContent: this.textAlignState } }, h("span", { class: "tds-table__header-button-text" }, this.cellValue, h("slot", null)), this.sortingDirection === undefined && (h(
|
|
35
|
+
return (h("button", { class: "tds-table__header-button", onClick: () => this.sortButtonClick(), style: { justifyContent: this.textAlignState } }, h("span", { class: "tds-table__header-button-text" }, this.cellValue, h("slot", null)), this.sortingDirection === undefined && (h(prefixedTagNames.tdsIcon, { class: "tds-table__header-button-icon", name: "sorting", size: "16px" })), this.sortingDirection && ['asc', 'desc'].includes(this.sortingDirection) && (h(prefixedTagNames.tdsIcon, { class: `tds-table__header-button-icon ${this.sortingDirection === 'asc' ? 'tds-table__header-button-icon--rotate' : ''}`, name: "arrow_down", size: "16px" }))));
|
|
35
36
|
}
|
|
36
37
|
return (h("p", { class: {
|
|
37
38
|
'tds-table__header-text': true,
|
|
@@ -105,7 +106,8 @@ export class TdsTableHeaderCell {
|
|
|
105
106
|
this.host.closest('tds-table').getElementsByTagName('tds-table-toolbar').length >= 1;
|
|
106
107
|
}
|
|
107
108
|
render() {
|
|
108
|
-
|
|
109
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
110
|
+
return (h(Host, { key: '0dc5485f665fc02b21ed16b04e130b49037fa491', class: {
|
|
109
111
|
'tds-table__header-cell': true,
|
|
110
112
|
'tds-table__header-cell--sortable': this.sortable,
|
|
111
113
|
'tds-table__header-cell--is-sorted': this.sortedByMyKey,
|
|
@@ -116,7 +118,7 @@ export class TdsTableHeaderCell {
|
|
|
116
118
|
'tds-table--extra-column': this.multiselect || this.expandableRows,
|
|
117
119
|
'tds-table--toolbar-available': this.enableToolbarDesign,
|
|
118
120
|
'tds-table--no-padding': this.disablePadding,
|
|
119
|
-
}, style: { minWidth: this.customWidth }, onMouseOver: () => this.onHeadCellHover(this.cellKey), onMouseLeave: () => this.onHeadCellHover('') }, this.headerCellContent()));
|
|
121
|
+
}, style: { minWidth: this.customWidth }, onMouseOver: () => this.onHeadCellHover(this.cellKey), onMouseLeave: () => this.onHeadCellHover('') }, this.headerCellContent(prefixedTagNames)));
|
|
120
122
|
}
|
|
121
123
|
static get is() { return "tds-header-cell"; }
|
|
122
124
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = ['compactDesign'];
|
|
3
4
|
export class TdsTableHeaderInputWrapper {
|
|
4
5
|
constructor() {
|
|
@@ -63,11 +64,12 @@ export class TdsTableHeaderInputWrapper {
|
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
render() {
|
|
66
|
-
|
|
67
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
68
|
+
return (h(Host, { key: '379cdc2f1c18f2a15919e9d2b431f192f2e719d5', class: {
|
|
67
69
|
'focused-input-wrapper': this.inputFocused,
|
|
68
70
|
'show-icon': this.showIcon,
|
|
69
71
|
'tds-table__compact': this.compactDesign,
|
|
70
|
-
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(
|
|
72
|
+
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(prefixedTagNames.tdsIcon, { class: "search-icon", slot: "icon", size: "16px", name: "search" })) : null));
|
|
71
73
|
}
|
|
72
74
|
static get is() { return "tds-table-header-input-wrapper"; }
|
|
73
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
const relevantTableProps = [
|
|
3
4
|
'compactDesign',
|
|
4
5
|
'noMinWidth',
|
|
@@ -55,11 +56,19 @@ export class TdsTableToolbar {
|
|
|
55
56
|
tdsTableSearchBar.classList.remove('tds-table__searchbar--active');
|
|
56
57
|
}
|
|
57
58
|
}
|
|
59
|
+
getStyles() {
|
|
60
|
+
const styles = {};
|
|
61
|
+
if (this.horizontalScrollWidth) {
|
|
62
|
+
styles.width = `${this.horizontalScrollWidth}px`;
|
|
63
|
+
}
|
|
64
|
+
return styles;
|
|
65
|
+
}
|
|
58
66
|
render() {
|
|
59
|
-
|
|
67
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
68
|
+
return (h(Host, { key: '017e5a33806f969620e47af13c1abd4d5cc73c1e', class: {
|
|
60
69
|
'tds-table--compact': this.compactDesign,
|
|
61
70
|
'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
62
|
-
}, style: this.
|
|
71
|
+
}, style: this.getStyles() }, h("div", { key: '8a2e0b3ff1cb452706d4a01818f6159749dbb89a', class: "tds-table__upper-bar-flex" }, h("caption", { key: '91dcfc3b3e1a6f88a816c8aaadd6160bd9ad9474', class: "tds-table__title" }, this.tableTitle), h("div", { key: '62b725ed18e7406d2635c62ae057abb6cf214cba', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '0dc45e13a7185194002e25a9116b6535307d6412', class: "tds-table__searchbar" }, h("input", { key: '6f147fde17c9c01c58ed2178c084a5be48c84186', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: 'd2b540ca62e3b4c3a917b2283510760be12e0b2a', class: "tds-table__searchbar-icon" }, h(prefixedTagNames.tdsIcon, { key: '39b663fbe530f36568e282768ed7b5630722fb01', name: "search", size: "20px" })))), h("slot", { key: '19474502d0d73d1c3a7b899a8a21cc269bd8efe8', name: "end" })))));
|
|
63
72
|
}
|
|
64
73
|
static get is() { return "tds-table-toolbar"; }
|
|
65
74
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the tab elements.
|
|
4
5
|
*/
|
|
@@ -160,9 +161,10 @@ export class TdsFolderTabs {
|
|
|
160
161
|
this.removeEventListenerFromTabs();
|
|
161
162
|
}
|
|
162
163
|
render() {
|
|
163
|
-
|
|
164
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
165
|
+
return (h(Host, { key: '7f81db3a95250825f2ad5b6b614af7eddfe33b66', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'be070eb5e8484fc397426bb8e0c3f35ed4a1e851', class: "wrapper", ref: (el) => {
|
|
164
166
|
this.navWrapperElement = el;
|
|
165
|
-
} }, h("button", { key: '
|
|
167
|
+
} }, h("button", { key: '6d3862bddb1407519259a5eab162ab0ddf95e76c', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h(prefixedTagNames.tdsIcon, { key: 'e36ee18f2896ad27889619a284c8e39ea0397148', name: "chevron_left", size: "20px" })), h("slot", { key: '1b62b7716c519f9eb9c2b2a8eab327a25d621a7e', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'ac50c266270eab2bc53172f2e000a0d93ca4aa2d', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h(prefixedTagNames.tdsIcon, { key: 'c62208f8e55c6d4662872a9b676e9993c61ec03d', name: "chevron_right", size: "20px" })))));
|
|
166
168
|
}
|
|
167
169
|
static get is() { return "tds-folder-tabs"; }
|
|
168
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the tab elements.
|
|
4
5
|
*/
|
|
@@ -60,6 +61,7 @@ export class TdsInlineTabs {
|
|
|
60
61
|
this.modeVariant = 'primary';
|
|
61
62
|
this.defaultSelectedIndex = 0;
|
|
62
63
|
this.selectedIndex = undefined;
|
|
64
|
+
this.leftPadding = 32;
|
|
63
65
|
this.showLeftScroll = false;
|
|
64
66
|
this.showRightScroll = false;
|
|
65
67
|
}
|
|
@@ -139,12 +141,18 @@ export class TdsInlineTabs {
|
|
|
139
141
|
this.showRightScroll = false;
|
|
140
142
|
}
|
|
141
143
|
}
|
|
144
|
+
applyCustomLeftPadding() {
|
|
145
|
+
if (this.navWrapperElement) {
|
|
146
|
+
this.navWrapperElement.style.paddingLeft = `${this.leftPadding}px`;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
142
149
|
handleSlotChange() {
|
|
143
150
|
this.initializeTabs();
|
|
144
151
|
this.addEventListenerToTabs();
|
|
145
152
|
this.initializeSelectedTab();
|
|
146
153
|
this.updateScrollButtons();
|
|
147
154
|
this.addResizeObserver();
|
|
155
|
+
this.applyCustomLeftPadding(); // Apply custom left padding to the wrapper
|
|
148
156
|
}
|
|
149
157
|
connectedCallback() {
|
|
150
158
|
this.initializeTabs();
|
|
@@ -160,9 +168,10 @@ export class TdsInlineTabs {
|
|
|
160
168
|
this.removeEventListenerFromTabs();
|
|
161
169
|
}
|
|
162
170
|
render() {
|
|
163
|
-
|
|
171
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
172
|
+
return (h(Host, { key: 'bc607732f1152e69199b3fca66efc4ebfd9683f7', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'ac41e6a7b6495c4ae9516a7e76e36f26be0b13d5', class: "wrapper", ref: (el) => {
|
|
164
173
|
this.navWrapperElement = el;
|
|
165
|
-
} }, h("button", { key: '
|
|
174
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '02979087fbd289a8959e63c3960aa34e431505bc', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h(prefixedTagNames.tdsIcon, { key: 'e60e28cd233f054cde23c03b21a98185f18c82c1', name: "chevron_left", size: "20px" })), h("slot", { key: '82a24bd27e62b3dc58457a0a4ed9ee8fa1c2a6f7', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'bea28e92a4cbe56d35106b399b8bc7734dc04290', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h(prefixedTagNames.tdsIcon, { key: '55317e5de61ad0ab7713852dc067e6f254d57988', name: "chevron_right", size: "20px" })))));
|
|
166
175
|
}
|
|
167
176
|
static get is() { return "tds-inline-tabs"; }
|
|
168
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -230,6 +239,24 @@ export class TdsInlineTabs {
|
|
|
230
239
|
},
|
|
231
240
|
"attribute": "selected-index",
|
|
232
241
|
"reflect": true
|
|
242
|
+
},
|
|
243
|
+
"leftPadding": {
|
|
244
|
+
"type": "number",
|
|
245
|
+
"mutable": false,
|
|
246
|
+
"complexType": {
|
|
247
|
+
"original": "number",
|
|
248
|
+
"resolved": "number",
|
|
249
|
+
"references": {}
|
|
250
|
+
},
|
|
251
|
+
"required": false,
|
|
252
|
+
"optional": false,
|
|
253
|
+
"docs": {
|
|
254
|
+
"tags": [],
|
|
255
|
+
"text": "Custom left padding value for the wrapper element."
|
|
256
|
+
},
|
|
257
|
+
"attribute": "left-padding",
|
|
258
|
+
"reflect": true,
|
|
259
|
+
"defaultValue": "32"
|
|
233
260
|
}
|
|
234
261
|
};
|
|
235
262
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the tab elements.
|
|
4
5
|
*/
|
|
@@ -60,6 +61,7 @@ export class TdsNavigationTabs {
|
|
|
60
61
|
this.modeVariant = 'primary';
|
|
61
62
|
this.defaultSelectedIndex = 0;
|
|
62
63
|
this.selectedIndex = undefined;
|
|
64
|
+
this.leftPadding = 32;
|
|
63
65
|
this.showLeftScroll = false;
|
|
64
66
|
this.showRightScroll = false;
|
|
65
67
|
}
|
|
@@ -112,8 +114,10 @@ export class TdsNavigationTabs {
|
|
|
112
114
|
child.classList.remove('last');
|
|
113
115
|
child.classList.remove('first');
|
|
114
116
|
});
|
|
115
|
-
this.children
|
|
116
|
-
|
|
117
|
+
if (this.children.length > 0) {
|
|
118
|
+
this.children[0].classList.add('first');
|
|
119
|
+
this.children[this.children.length - 1].classList.add('last');
|
|
120
|
+
}
|
|
117
121
|
}
|
|
118
122
|
initializeSelectedTab() {
|
|
119
123
|
if (this.selectedIndex === undefined) {
|
|
@@ -137,12 +141,18 @@ export class TdsNavigationTabs {
|
|
|
137
141
|
this.showRightScroll = false;
|
|
138
142
|
}
|
|
139
143
|
}
|
|
144
|
+
applyCustomLeftPadding() {
|
|
145
|
+
if (this.navWrapperElement) {
|
|
146
|
+
this.navWrapperElement.style.paddingLeft = `${this.leftPadding}px`;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
140
149
|
handleSlotChange() {
|
|
141
150
|
this.initializeTabs();
|
|
142
151
|
this.addEventListenerToTabs();
|
|
143
152
|
this.initializeSelectedTab();
|
|
144
153
|
this.updateScrollButtons();
|
|
145
154
|
this.addResizeObserver();
|
|
155
|
+
this.applyCustomLeftPadding(); // Apply custom left padding to the wrapper
|
|
146
156
|
}
|
|
147
157
|
connectedCallback() {
|
|
148
158
|
this.initializeTabs();
|
|
@@ -158,9 +168,10 @@ export class TdsNavigationTabs {
|
|
|
158
168
|
this.removeEventListenerFromTabs();
|
|
159
169
|
}
|
|
160
170
|
render() {
|
|
161
|
-
|
|
171
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
172
|
+
return (h(Host, { key: 'fc517a4647224414ac6b1643b7ff3cb94810e69c', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '4a26e80281ecc5a791a8c5eee623fdc8a1630f68', class: "wrapper", ref: (el) => {
|
|
162
173
|
this.navWrapperElement = el;
|
|
163
|
-
} }, h("button", { key: '
|
|
174
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '6b60e0b9635abf48ca821f8e157b2dff42f8ea24', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h(prefixedTagNames.tdsIcon, { key: 'eccc37fc81804e909bec8a77279fee3eb156aaa2', name: "chevron_left", size: "20px" })), h("slot", { key: 'f48ae4ce1f825415a5c70d86a73caad8411b9bec', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'd0fca82d30d9e354edd26147be75f03fbabdedc0', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h(prefixedTagNames.tdsIcon, { key: 'bc9270c86e3bfbdfb9168f12865d294f2e7fba3a', name: "chevron_right", size: "20px" })))));
|
|
164
175
|
}
|
|
165
176
|
static get is() { return "tds-navigation-tabs"; }
|
|
166
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -228,6 +239,24 @@ export class TdsNavigationTabs {
|
|
|
228
239
|
},
|
|
229
240
|
"attribute": "selected-index",
|
|
230
241
|
"reflect": true
|
|
242
|
+
},
|
|
243
|
+
"leftPadding": {
|
|
244
|
+
"type": "number",
|
|
245
|
+
"mutable": false,
|
|
246
|
+
"complexType": {
|
|
247
|
+
"original": "number",
|
|
248
|
+
"resolved": "number",
|
|
249
|
+
"references": {}
|
|
250
|
+
},
|
|
251
|
+
"required": false,
|
|
252
|
+
"optional": false,
|
|
253
|
+
"docs": {
|
|
254
|
+
"tags": [],
|
|
255
|
+
"text": "Custom left padding value for the wrapper element."
|
|
256
|
+
},
|
|
257
|
+
"attribute": "left-padding",
|
|
258
|
+
"reflect": true,
|
|
259
|
+
"defaultValue": "32"
|
|
231
260
|
}
|
|
232
261
|
};
|
|
233
262
|
}
|