@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../utils/generateUniqueId";
|
|
3
3
|
import hasSlot from "../../utils/hasSlot";
|
|
4
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
4
5
|
/**
|
|
5
6
|
* @slot header - Slot for the Card header.
|
|
6
7
|
* @slot subheader - Slot for the Card subheader.
|
|
@@ -22,11 +23,11 @@ export class TdsCard {
|
|
|
22
23
|
const usesThumbnailSlot = hasSlot('thumbnail', this.host);
|
|
23
24
|
return (h("div", { class: "card-header" }, usesThumbnailSlot && h("slot", { name: "thumbnail" }), h("div", { class: "header-subheader" }, this.header && h("span", { class: "header" }, this.header), usesHeaderSlot && h("slot", { name: "header" }), this.subheader && h("span", { class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { name: "subheader" }))));
|
|
24
25
|
};
|
|
25
|
-
this.getCardContent = () => {
|
|
26
|
+
this.getCardContent = (prefixedTagNames) => {
|
|
26
27
|
const usesBodySlot = hasSlot('body', this.host);
|
|
27
28
|
const usesBodyImageSlot = hasSlot('body-image', this.host);
|
|
28
29
|
const usesActionsSlot = hasSlot('actions', this.host);
|
|
29
|
-
return (h("div",
|
|
30
|
+
return (h("div", { class: this.stretch && 'stretch' }, this.imagePlacement === 'below-header' && this.getCardHeader(), h("div", { class: `card-body` }, usesBodyImageSlot && h("slot", { name: "body-image" }), this.bodyImg && h("img", { class: "card-body-img", src: this.bodyImg, alt: this.bodyImgAlt }), this.imagePlacement === 'above-header' && this.getCardHeader(), this.bodyDivider && h(prefixedTagNames.tdsDivider, null), usesBodySlot && h("slot", { name: "body" })), usesActionsSlot && h("slot", { name: `actions` })));
|
|
30
31
|
};
|
|
31
32
|
this.modeVariant = null;
|
|
32
33
|
this.imagePlacement = 'below-header';
|
|
@@ -36,14 +37,16 @@ export class TdsCard {
|
|
|
36
37
|
this.bodyImgAlt = undefined;
|
|
37
38
|
this.bodyDivider = false;
|
|
38
39
|
this.clickable = false;
|
|
40
|
+
this.stretch = false;
|
|
39
41
|
this.cardId = generateUniqueId();
|
|
40
42
|
}
|
|
41
43
|
render() {
|
|
42
|
-
|
|
44
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
45
|
+
return (h(Host, { key: 'e80744e65ac066b5c6a13f79cdaf9ed645f8a8fb', class: this.modeVariant && `tds-mode-variant-${this.modeVariant}` }, this.clickable ? (h("button", { class: `card ${this.clickable ? 'clickable' : ''} ${this.stretch ? `${this.imagePlacement}-stretch` : this.imagePlacement}`, onClick: () => {
|
|
43
46
|
if (this.clickable) {
|
|
44
47
|
this.handleClick();
|
|
45
48
|
}
|
|
46
|
-
} }, this.getCardContent())) : (h("div", { class: `card ${this.clickable ? 'clickable' : ''} ${this.imagePlacement}` }, this.getCardContent()))));
|
|
49
|
+
} }, this.getCardContent(prefixedTagNames))) : (h("div", { class: `card ${this.clickable ? 'clickable' : ''} ${this.stretch ? `${this.imagePlacement}-stretch` : this.imagePlacement}` }, this.getCardContent(prefixedTagNames)))));
|
|
47
50
|
}
|
|
48
51
|
static get is() { return "tds-card"; }
|
|
49
52
|
static get encapsulation() { return "shadow"; }
|
|
@@ -199,6 +202,24 @@ export class TdsCard {
|
|
|
199
202
|
"reflect": false,
|
|
200
203
|
"defaultValue": "false"
|
|
201
204
|
},
|
|
205
|
+
"stretch": {
|
|
206
|
+
"type": "boolean",
|
|
207
|
+
"mutable": false,
|
|
208
|
+
"complexType": {
|
|
209
|
+
"original": "boolean",
|
|
210
|
+
"resolved": "boolean",
|
|
211
|
+
"references": {}
|
|
212
|
+
},
|
|
213
|
+
"required": false,
|
|
214
|
+
"optional": false,
|
|
215
|
+
"docs": {
|
|
216
|
+
"tags": [],
|
|
217
|
+
"text": ""
|
|
218
|
+
},
|
|
219
|
+
"attribute": "stretch",
|
|
220
|
+
"reflect": false,
|
|
221
|
+
"defaultValue": "false"
|
|
222
|
+
},
|
|
202
223
|
"cardId": {
|
|
203
224
|
"type": "string",
|
|
204
225
|
"mutable": false,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
2
3
|
export class TdsDatetime {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.getDefaultValue = () => {
|
|
@@ -73,6 +74,7 @@ export class TdsDatetime {
|
|
|
73
74
|
this.tdsBlur.emit(e);
|
|
74
75
|
}
|
|
75
76
|
render() {
|
|
77
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
76
78
|
let className = ' tds-datetime-input';
|
|
77
79
|
if (this.size === 'md') {
|
|
78
80
|
className += `${className}-md`;
|
|
@@ -80,7 +82,7 @@ export class TdsDatetime {
|
|
|
80
82
|
if (this.size === 'sm') {
|
|
81
83
|
className += `${className}-sm`;
|
|
82
84
|
}
|
|
83
|
-
return (h("div", { key: '
|
|
85
|
+
return (h("div", { key: 'ff9559a2dcde10aa0ab9f7b246bc9a211ae14336', class: `
|
|
84
86
|
${this.noMinWidth ? 'tds-form-datetime-nomin' : ''}
|
|
85
87
|
${this.focusInput ? 'tds-form-datetime tds-datetime-focus' : ' tds-form-datetime'}
|
|
86
88
|
${this.value.length > 0 ? 'tds-datetime-data' : ''}
|
|
@@ -90,7 +92,7 @@ export class TdsDatetime {
|
|
|
90
92
|
${this.state === 'error' || this.state === 'success'
|
|
91
93
|
? `tds-form-datetime-${this.state}`
|
|
92
94
|
: ''}
|
|
93
|
-
${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && (h("label", { key: '
|
|
95
|
+
${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && (h("label", { key: '5f4eb55e9130b1225c5bee79dee4e001c687ccb9', htmlFor: this.name, class: "tds-datetime-label" }, this.label)), h("div", { key: '1421e6bd3e6fb90a15fd91accafa87c4ab7c3d35', onClick: (e) => this.handleFocusClick(e), class: "tds-datetime-container" }, h("div", { key: 'a4043f0231f57f17c8d32ca57c34c74e9589cd81', class: "tds-datetime-input-container" }, h("input", { key: '4dea136537509b8f860665c1f25cfceedafba168', ref: (inputEl) => (this.textInput = inputEl), class: className, type: this.type, disabled: this.disabled, value: this.value, min: this.min, max: this.max, autofocus: this.autofocus, name: this.name, onInput: (e) => this.handleInput(e), onBlur: (e) => this.handleBlur(e), onChange: (e) => this.handleChange(e) }), h("div", { key: '0de5760735617eee28368f4e6dc15d2cfd664172', class: "datetime-icon icon-datetime-local" }, h(prefixedTagNames.tdsIcon, { key: 'f0904a047029c721c744fb3d7a98adcb78be1dd5', size: "20px", name: "calendar" })), h("div", { key: '94f559661570e3de4495cbe029b50e96f5ad650a', class: "datetime-icon icon-time" }, h(prefixedTagNames.tdsIcon, { key: '37847e302e89774a85e0349a8ab401d6ba92d305', size: "20px", name: "clock" }))), h("div", { key: 'c7f0964c0131b312334089d541f3ce1d82ebbf6a', class: "tds-datetime-bar" })), this.helper && (h("div", { key: '670fb70fe2720a204881ea82892fab68d64e1f82', class: "tds-datetime-helper" }, h("div", { key: 'de655e36ffb7f5a7d97a75e1d4325041a2d179cd', class: "tds-helper" }, this.state === 'error' && (h(prefixedTagNames.tdsIcon, { key: '45fc7fd21f32a9cf56d703822b4dbe6afe1c0f2f', name: "error", size: "16px" })), this.helper)))));
|
|
94
96
|
}
|
|
95
97
|
static get is() { return "tds-datetime"; }
|
|
96
98
|
static get encapsulation() { return "scoped"; }
|
|
@@ -465,6 +467,7 @@ export class TdsDatetime {
|
|
|
465
467
|
}
|
|
466
468
|
};
|
|
467
469
|
}
|
|
470
|
+
static get elementRef() { return "host"; }
|
|
468
471
|
static get listeners() {
|
|
469
472
|
return [{
|
|
470
473
|
"name": "focus",
|
|
@@ -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 option label text.
|
|
4
5
|
*/
|
|
@@ -62,7 +63,8 @@ export class TdsDropdownOption {
|
|
|
62
63
|
this.selected = selected;
|
|
63
64
|
}
|
|
64
65
|
render() {
|
|
65
|
-
|
|
66
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
67
|
+
return (h(Host, { key: '7718cac4b266a8a6e093badf7d6ddb3a3e74fa21', role: "option", "aria-disabled": this.disabled, "aria-selected": this.selected }, h("div", { key: 'c28693ad8721d53cd9da2147058354ccebc8aa07', class: `dropdown-option
|
|
66
68
|
${this.size}
|
|
67
69
|
${this.selected ? 'selected' : ''}
|
|
68
70
|
${this.disabled ? 'disabled' : ''}
|
|
@@ -70,13 +72,13 @@ export class TdsDropdownOption {
|
|
|
70
72
|
if (event.key === 'Escape') {
|
|
71
73
|
this.parentElement.close();
|
|
72
74
|
}
|
|
73
|
-
} }, h(
|
|
75
|
+
} }, h(prefixedTagNames.tdsCheckbox, { onTdsChange: (event) => {
|
|
74
76
|
this.handleMultiselect(event);
|
|
75
77
|
}, disabled: this.disabled, checked: this.selected, class: {
|
|
76
78
|
[this.size]: true,
|
|
77
79
|
} }, h("div", { slot: "label" }, h("slot", null))))) : (h("button", { onClick: () => {
|
|
78
80
|
this.handleSingleSelect();
|
|
79
|
-
}, onFocus: (event) => this.handleFocus(event), onBlur: (event) => this.handleBlur(event), disabled: this.disabled, class: this.size }, h("div", { class: "single-select" }, h("slot", null), this.selected && h(
|
|
81
|
+
}, onFocus: (event) => this.handleFocus(event), onBlur: (event) => this.handleBlur(event), disabled: this.disabled, class: this.size }, h("div", { class: "single-select" }, h("slot", null), this.selected && (h(prefixedTagNames.tdsIcon, { name: "tick", size: "16px" }))))))));
|
|
80
82
|
}
|
|
81
83
|
static get is() { return "tds-dropdown-option"; }
|
|
82
84
|
static get encapsulation() { return "shadow"; }
|
|
@@ -2,6 +2,7 @@ import { Host, h, } from "@stencil/core";
|
|
|
2
2
|
import findNextFocusableElement from "../../utils/findNextFocusableElement";
|
|
3
3
|
import findPreviousFocusableElement from "../../utils/findPreviousFocusableElement";
|
|
4
4
|
import appendHiddenInput from "../../utils/appendHiddenInput";
|
|
5
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
5
6
|
/**
|
|
6
7
|
* @slot <default> - <b>Unnamed slot.</b> For dropdown option elements.
|
|
7
8
|
*/
|
|
@@ -341,8 +342,9 @@ export class TdsDropdown {
|
|
|
341
342
|
}
|
|
342
343
|
render() {
|
|
343
344
|
var _a, _b, _c, _d;
|
|
345
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
344
346
|
appendHiddenInput(this.host, this.name, (_a = this.value) === null || _a === void 0 ? void 0 : _a.map((value) => value).toString(), this.disabled);
|
|
345
|
-
return (h(Host, { key: '
|
|
347
|
+
return (h(Host, { key: '4c1cf54198f6f00501c337e858ea391272a551e2', role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { key: 'aa66572284cfbeb78b2b26edf17aad3ecc9a3c43', class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '114d2d6580dee9739620212079d6e516dacca31e', class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: {
|
|
346
348
|
filter: true,
|
|
347
349
|
focus: this.filterFocus,
|
|
348
350
|
disabled: this.disabled,
|
|
@@ -365,11 +367,11 @@ export class TdsDropdown {
|
|
|
365
367
|
this.open = false;
|
|
366
368
|
}
|
|
367
369
|
}
|
|
368
|
-
})), h(
|
|
370
|
+
})), h(prefixedTagNames.tdsIcon, { tabIndex: 0, role: "button", "aria-label": "Clear filter", svgTitle: "Clear filter", onClick: this.handleFilterReset, onKeyDown: (event) => {
|
|
369
371
|
if (event.key === 'Enter') {
|
|
370
372
|
this.handleFilterReset();
|
|
371
373
|
}
|
|
372
|
-
}, class: `clear-icon ${this.open && this.inputElement.value !== '' ? '' : 'hide'}`, name: "cross", size: "16px" }), h(
|
|
374
|
+
}, class: `clear-icon ${this.open && this.inputElement.value !== '' ? '' : 'hide'}`, name: "cross", size: "16px" }), h(prefixedTagNames.tdsIcon, { tabIndex: 0, role: "button", "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", onClick: this.handleToggleOpen, onKeyDown: (event) => {
|
|
373
375
|
if (event.key === 'Enter') {
|
|
374
376
|
this.handleToggleOpen();
|
|
375
377
|
}
|
|
@@ -385,11 +387,11 @@ export class TdsDropdown {
|
|
|
385
387
|
label-inside-as-placeholder
|
|
386
388
|
${this.size}
|
|
387
389
|
${((_c = this.value) === null || _c === void 0 ? void 0 : _c.length) ? 'selected' : ''}
|
|
388
|
-
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, ((_d = this.value) === null || _d === void 0 ? void 0 : _d.length) ? this.getValue() : this.placeholder), h(
|
|
390
|
+
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, ((_d = this.value) === null || _d === void 0 ? void 0 : _d.length) ? this.getValue() : this.placeholder), h(prefixedTagNames.tdsIcon, { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { key: '7087e043f7f55ed270cf75405a04ed930c0117de', ref: (element) => (this.dropdownList = element), class: `dropdown-list
|
|
389
391
|
${this.size}
|
|
390
392
|
${this.open ? 'open' : 'closed'}
|
|
391
393
|
${this.getOpenDirection()}
|
|
392
|
-
${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", { key: '
|
|
394
|
+
${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", { key: 'b9ca939c2e58a69f66011f812023b03315c5e631', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: 'd0f2de1b2a6f5a37224ba77a47e746b7892291b6', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '86aad799a3ba5950d8df21a3e485f645fd039ffd', class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && (h(prefixedTagNames.tdsIcon, { key: '9b51e3ffc96dbd1c39f8b8358df8808a447167e3', name: "error", size: "16px" })), this.helper))));
|
|
393
395
|
}
|
|
394
396
|
static get is() { return "tds-dropdown"; }
|
|
395
397
|
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 footer items.
|
|
4
5
|
*/
|
|
@@ -19,11 +20,12 @@ export class TdsFooterGroup {
|
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
22
|
render() {
|
|
22
|
-
|
|
23
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
24
|
+
return (h(Host, { key: 'e11ef7d9a8aec368d66af7b0cabe26dc902c85a7' }, this.titleText && this.topPartGroup && (h("div", { key: '3e2501b462125c822ae2c88ff730a55c0aad8260', class: "footer-top-title" }, this.titleText)), this.titleText && this.topPartGroup && (h("button", { key: '52daf369f035175fc48ee9199b0f1e7036e7c463', onClick: () => {
|
|
23
25
|
this.open = !this.open;
|
|
24
|
-
}, class: `footer-top-title-button ${this.open ? 'expanded' : 'closed'}` }, this.titleText, h(
|
|
26
|
+
}, class: `footer-top-title-button ${this.open ? 'expanded' : 'closed'}` }, this.titleText, h(prefixedTagNames.tdsIcon, { key: '3eb5fa8014c2715c55da365a58956580d1ae0409', name: "chevron_down", size: "20px" }))), h("div", { key: 'fed9169cb09fc437108cdebfaeeccec8574c6040', role: "list", class: `${this.slotPosition ? this.slotPosition : ''}
|
|
25
27
|
${this.topPartGroup ? 'top-part-child' : ''}
|
|
26
|
-
${this.open ? 'expanded' : 'closed'}` }, h("slot", { key: '
|
|
28
|
+
${this.open ? 'expanded' : 'closed'}` }, h("slot", { key: '30f371244d9019e299e3e1cc0ae515d1e36a5b9b' }))));
|
|
27
29
|
}
|
|
28
30
|
static get is() { return "tds-footer-group"; }
|
|
29
31
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For a link.
|
|
4
5
|
*/
|
|
5
6
|
export class TdsHeaderBrandSymbol {
|
|
6
7
|
render() {
|
|
7
|
-
|
|
8
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
9
|
+
return (h(Host, { key: '6f237ddae88d1a8c47da6517e69c8a46bde26b2b' }, h(prefixedTagNames.tdsHeaderItem, { key: '9e2eedf7f479dbff34d1e43008d1b3a524431567' }, h("slot", { key: '7d3349600bac83de2347ca11d10434826e24f213' }))));
|
|
8
10
|
}
|
|
9
11
|
static get is() { return "tds-header-brand-symbol"; }
|
|
10
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../../utils/generateUniqueId";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For injecting a dropdown list.
|
|
5
6
|
* @slot icon - Slot for an Icon in the dropdown button.
|
|
@@ -31,13 +32,14 @@ export class TdsHeaderDropdown {
|
|
|
31
32
|
this.open = !this.open;
|
|
32
33
|
}
|
|
33
34
|
render() {
|
|
34
|
-
|
|
35
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
36
|
+
return (h(Host, { key: '7e2cd60291832d0b78a7bb314f28c7bca0741ff5' }, h("div", { key: '5c7aa66e35135d792e7e17983913057bacae0a81', class: {
|
|
35
37
|
'state-open': this.open,
|
|
36
|
-
} }, h(
|
|
38
|
+
} }, h(prefixedTagNames.tdsHeaderItem, { key: '074a2bcc6b24729de6725022b249c7a77e3d2e3f', class: "button", active: this.open, selected: this.selected }, h("button", { key: '60b484244a06d6fff7df7fbfec57276acfc0deae', ref: (el) => {
|
|
37
39
|
this.buttonEl = el;
|
|
38
40
|
}, "aria-expanded": `${this.open}`, "aria-controls": `launcher-${this.uuid}`, "aria-current": this.selected ? 'location' : 'false', onClick: () => {
|
|
39
41
|
this.toggleDropdown();
|
|
40
|
-
} }, h("slot", { key: '
|
|
42
|
+
} }, h("slot", { key: 'b2a7281717686f186aeb9ccba55854362e4fad65', name: "icon" }), this.label, h("slot", { key: '6f9684dc01fe44c3a0e88f98ab276c6cc610b8cf', name: "label" }), !this.noDropdownIcon && (h(prefixedTagNames.tdsIcon, { key: 'e8a4ae7c78551f0578dbc0f97866d06a3efcce1e', class: "dropdown-icon", name: "chevron_down", size: "16px" })))), this.buttonEl && (h(prefixedTagNames.tdsPopoverCanvas, { key: '4cc743cd081481ed5558a2bfbc92048d25563e94', id: `tds-dropdown-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
|
|
41
43
|
{
|
|
42
44
|
name: 'flip',
|
|
43
45
|
options: {
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import inheritAriaAttributes from "../../../utils/inheritAriaAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
export class TdsHeaderHamburger {
|
|
4
5
|
render() {
|
|
6
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
5
7
|
const inheritedButtonProps = Object.assign({}, inheritAriaAttributes(this.host));
|
|
6
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'b44b763cd492848f49ffb03f20a84479bbf4dc6f' }, h(prefixedTagNames.tdsHeaderItem, { key: '2e545cec7a232a21184f01f0b6b03e411131f0c4' }, h("button", Object.assign({ key: '650633e93ff94d94a79662b13217cea3aaa8ea22' }, inheritedButtonProps), h(prefixedTagNames.tdsIcon, { key: '25ddaf1f48ae43f45040059fafd465de64a71a1f', class: "icon", name: "burger", size: "20px" })))));
|
|
7
9
|
}
|
|
8
10
|
static get is() { return "tds-header-hamburger"; }
|
|
9
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import dfs from "../../../utils/dfs";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For a link or button element.
|
|
5
6
|
*/
|
|
@@ -37,10 +38,11 @@ export class TdsHeaderItem {
|
|
|
37
38
|
this.slotEl.addEventListener('slotchange', this.updateSlottedElements);
|
|
38
39
|
}
|
|
39
40
|
render() {
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
42
|
+
return (h(Host, { key: '53e959002a5dd092b8a21b1746f2677b9e8f1bf6' }, h(prefixedTagNames.tdsCoreHeaderItem, { key: '32993eb9fd4c7ccfa0dc0a9af898ebd082e39ecd', class: {
|
|
43
|
+
'component-active and-other': this.active,
|
|
42
44
|
'component-selected': this.selected,
|
|
43
|
-
} }, h("slot", { key: '
|
|
45
|
+
} }, h("slot", { key: '3bbed91129ca0fe39e5edd287407b44d35e1f6d9' }))));
|
|
44
46
|
}
|
|
45
47
|
static get is() { return "tds-header-item"; }
|
|
46
48
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../../utils/generateUniqueId";
|
|
3
3
|
import inheritAriaAttributes from "../../../utils/inheritAriaAttributes";
|
|
4
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
4
5
|
/**
|
|
5
6
|
* @slot <default> - <b>Unnamed slot.</b> For a launcher list (or grid) element.
|
|
6
7
|
*/
|
|
@@ -26,17 +27,18 @@ export class TdsHeaderLauncher {
|
|
|
26
27
|
this.open = !this.open;
|
|
27
28
|
}
|
|
28
29
|
render() {
|
|
30
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
29
31
|
this.ariaAttributes = Object.assign(Object.assign({}, this.ariaAttributes), inheritAriaAttributes(this.host, ['role']));
|
|
30
32
|
const buttonAttributes = Object.assign(Object.assign({}, this.ariaAttributes), { 'aria-expanded': `${this.open}`, 'aria-controls': `launcher-${this.uuid}`, 'class': 'button', 'active': this.open, 'onClick': () => {
|
|
31
33
|
this.toggleLauncher();
|
|
32
34
|
}, 'ref': (el) => {
|
|
33
35
|
this.buttonEl = el;
|
|
34
36
|
} });
|
|
35
|
-
return (h(Host, { key: '
|
|
37
|
+
return (h(Host, { key: '676852dc130a6ac9500239445c8eefc244aba92d' }, h("div", { key: '320336c1b9f9d4e152b4d0977caffaa0a212ec90', class: {
|
|
36
38
|
'wrapper': true,
|
|
37
39
|
'state-open': this.open,
|
|
38
40
|
'state-list-type-menu': this.hasListTypeMenu,
|
|
39
|
-
} }, h(
|
|
41
|
+
} }, h(prefixedTagNames.tdsHeaderLauncherButton, Object.assign({ key: 'e342ef3f5bc23a694186c1c729cef676dc8c7f1e' }, buttonAttributes)), this.buttonEl && (h(prefixedTagNames.tdsPopoverCanvas, { key: '3c49f19fcca97529596140f707625b3192ec7758', id: `tds-launcher-${this.uuid}`, class: "menu", referenceEl: this.buttonEl, placement: "bottom-start", show: this.open, offsetDistance: 0, modifiers: [
|
|
40
42
|
{
|
|
41
43
|
name: 'flip',
|
|
42
44
|
options: {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import inheritAriaAttributes from "../../../utils/inheritAriaAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
export class TdsHeaderLauncherButton {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.active = false;
|
|
6
7
|
}
|
|
7
8
|
render() {
|
|
9
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
8
10
|
this.ariaAttributes = Object.assign(Object.assign({}, this.ariaAttributes), inheritAriaAttributes(this.host));
|
|
9
11
|
const buttonProps = Object.assign({}, this.ariaAttributes);
|
|
10
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '7b3cdd607d43179c06df73f9c1e93cc8a3d34110' }, h(prefixedTagNames.tdsHeaderItem, { key: '34947ba38eb0a041e98ad33ee3d9f3eb23d09d80', active: this.active }, h("button", Object.assign({ key: 'a54b553fc4da95d6655a1a508c61e9effb87e804' }, buttonProps), h(prefixedTagNames.tdsIcon, { key: 'bcbb1a11a47b1d278b46456fdc08e79aff248de6', class: "icon", name: "bento", size: "20px" })))));
|
|
11
13
|
}
|
|
12
14
|
static get is() { return "tds-header-launcher-button"; }
|
|
13
15
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../../utils/generateUniqueId";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For list items.
|
|
5
6
|
*/
|
|
@@ -8,7 +9,9 @@ export class TdsHeaderLauncherList {
|
|
|
8
9
|
this.uuid = generateUniqueId();
|
|
9
10
|
}
|
|
10
11
|
render() {
|
|
11
|
-
|
|
12
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
13
|
+
return (h(Host, { key: '181fea64b9b0c467cc3f87284a35bcd4f3744bfe' }, h(prefixedTagNames.tdsHeaderDropdownList, { key: 'fa756f0269c590d9d56741a4e5c79f0f2e276144', size: "lg" }, h("slot", { key: 'c7e198458ec21f602d432485d84e72af3b16e26b' }))));
|
|
12
14
|
}
|
|
13
15
|
static get is() { return "tds-header-launcher-list"; }
|
|
16
|
+
static get elementRef() { return "host"; }
|
|
14
17
|
}
|
package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For a link or button element.
|
|
4
5
|
*/
|
|
5
6
|
export class TdsHeaderLauncherListItem {
|
|
6
7
|
render() {
|
|
7
|
-
|
|
8
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
9
|
+
return (h(Host, { key: 'dc91e95bff5fc5a24a7888e8ea1c09d9f6ddd381' }, h(prefixedTagNames.tdsHeaderDropdownListItem, { key: '25c61bb9c8600a30fad53b1265f8b3608aaa510c', size: "lg" }, h("slot", { key: '02c4962deca0829a70e9a6d8dbd9a26d4a721933' }))));
|
|
8
10
|
}
|
|
9
11
|
static get is() { return "tds-header-launcher-list-item"; }
|
|
10
12
|
static get encapsulation() { return "shadow"; }
|
|
@@ -18,4 +20,5 @@ export class TdsHeaderLauncherListItem {
|
|
|
18
20
|
"$": ["header-launcher-list-item.css"]
|
|
19
21
|
};
|
|
20
22
|
}
|
|
23
|
+
static get elementRef() { return "host"; }
|
|
21
24
|
}
|
|
@@ -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 extended message. Not visible on minimal messages.
|
|
4
5
|
*/
|
|
@@ -25,10 +26,11 @@ export class TdsMessage {
|
|
|
25
26
|
this.minimal = false;
|
|
26
27
|
}
|
|
27
28
|
render() {
|
|
28
|
-
|
|
29
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
30
|
+
return (h(Host, { key: '388273d2a33152931a10fa1a26b2de908392aff6' }, h("div", { key: '65f066f605a1cc7efe87ead5375b8f556476deef', class: `
|
|
29
31
|
wrapper ${this.variant}
|
|
30
32
|
${this.minimal ? 'minimal' : ''}
|
|
31
|
-
${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, !this.noIcon && h(
|
|
33
|
+
${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, !this.noIcon && (h(prefixedTagNames.tdsIcon, { key: '291a17b2822d1d2ac9e6781d5097038ca29ef7d2', name: this.getIconName(), size: "20px" })), h("div", { key: '215381c9cfce537513900866d4f770218bf31662', class: `content` }, this.header && h("div", { key: 'c11eb4ca87b49fb7ddf98f6b5d0f8f1d56429b9d', class: "header" }, this.header), !this.minimal && (h("div", { key: '27e69500df32197323fc1e05bebb819be2f882e4', class: "extended-message" }, h("slot", { key: 'd50e21441cf16f1457072a933e8459c16170f3aa' })))))));
|
|
32
34
|
}
|
|
33
35
|
static get is() { return "tds-message"; }
|
|
34
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -135,4 +137,5 @@ export class TdsMessage {
|
|
|
135
137
|
}
|
|
136
138
|
};
|
|
137
139
|
}
|
|
140
|
+
static get elementRef() { return "host"; }
|
|
138
141
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import hasSlot from "../../utils/hasSlot";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot header - Slot for header text
|
|
5
6
|
* @slot body - Slot for main content of modal
|
|
@@ -110,9 +111,10 @@ export class TdsModal {
|
|
|
110
111
|
});
|
|
111
112
|
}
|
|
112
113
|
render() {
|
|
114
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
113
115
|
const usesHeaderSlot = hasSlot('header', this.host);
|
|
114
116
|
const usesActionsSlot = hasSlot('actions', this.host);
|
|
115
|
-
return (h(Host, { key: '
|
|
117
|
+
return (h(Host, { key: 'c132c58c8fad8644529d3da69c24b0ab2adf9df1', class: `${this.isShown ? 'show' : 'hide'}`, onClick: (event) => this.handleOverlayClick(event) }, h("div", { key: '7f68b5d68ec5fd68236df07fee40ec54ef5e3728', class: "tds-modal-backdrop" }), h("div", { key: '6a6b336f9e3f79953605351b124f672e42d88147', class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}` }, h("div", { key: '826344b73843c905780a54c60e12c083c910dd5c', class: "header" }, this.header && h("div", { key: '5e9deedca44877bd6d0440996e73b683cda520eb', class: "header-text" }, this.header), usesHeaderSlot && h("slot", { key: '3c0dd4c3fdd4975dcaa43144e93ec9b5c044656c', name: "header" }), this.closable && (h("button", { key: '90861404b8b329b34827138bf4221ebe29737e82', class: "tds-modal-close", "aria-label": "close", onClick: (event) => this.handleClose(event) }, h(prefixedTagNames.tdsIcon, { key: '563e956985492fc9f5c16b374f60c979bf746c62', name: "cross", size: "20px" })))), h("div", { key: 'aeb5db11812c6e1f6723ed12c1d3c8ea8efbe33e', class: "body" }, h("slot", { key: '7214799883b11d5b4b2f45ebafd6cd6b69b9f896', name: "body" })), usesActionsSlot && h("slot", { key: '0e93478772268d86115d4f6f0bfa6c62b52040f7', name: "actions" }))));
|
|
116
118
|
}
|
|
117
119
|
static get is() { return "tds-modal"; }
|
|
118
120
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import inheritAttributes from "../../utils/inheritAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For the contents of the popover.
|
|
5
6
|
*/
|
|
@@ -25,12 +26,13 @@ export class TdsPopoverCanvas {
|
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
27
28
|
var _a;
|
|
28
|
-
|
|
29
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
30
|
+
return (h(Host, { key: '20f9ec1ff4aa412411f04c1448ab218846b3daff' }, h(prefixedTagNames.tdsPopoverCore, Object.assign({ key: 'c40d4551a718074f8c1508ac37c92e757c550c06' }, this.inheritedAttributes, { class: {
|
|
29
31
|
'tds-popover-canvas': true,
|
|
30
32
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
31
33
|
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, modifiers: this.modifiers, trigger: 'click', ref: (el) => {
|
|
32
34
|
this.childRef = el;
|
|
33
|
-
} }), h("div", { key: '
|
|
35
|
+
} }), h("div", { key: '64101f87fa1f0d22962ddcc1337dafedd3dbd454' }, h("slot", { key: '4c0a7a20eece3cb14465d599821ff0467672476d' })))));
|
|
34
36
|
}
|
|
35
37
|
static get is() { return "tds-popover-canvas"; }
|
|
36
38
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import inheritAttributes from "../../utils/inheritAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For the list of menu items.
|
|
5
6
|
*/
|
|
@@ -25,13 +26,14 @@ export class TdsPopoverMenu {
|
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
27
28
|
var _a;
|
|
28
|
-
|
|
29
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
30
|
+
return (h(Host, { key: '175101f0b9f5df56fa56a2a15d43468d5065129a' }, h(prefixedTagNames.tdsPopoverCore, { key: '91613f80d57750fe7f1a5957e5b3c359708f85b2', class: {
|
|
29
31
|
'tds-popover-menu': true,
|
|
30
32
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
31
33
|
'fluid-width': this.fluidWidth,
|
|
32
34
|
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, ref: (el) => {
|
|
33
35
|
this.childRef = el;
|
|
34
|
-
} }, h("div", { key: '
|
|
36
|
+
} }, h("div", { key: 'a5ee1d312e2608e134924e584f0c7b81a79b7401', role: "list" }, h("slot", { key: '27ca85a642e2ca45a36522d1917ba01042c5f347' })))));
|
|
35
37
|
}
|
|
36
38
|
static get is() { return "tds-popover-menu"; }
|
|
37
39
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import inheritAriaAttributes from "../../../utils/inheritAriaAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
export class TdsSideMenuCloseButton {
|
|
4
5
|
render() {
|
|
6
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
5
7
|
const buttonProps = Object.assign({ 'aria-label': 'Close' }, inheritAriaAttributes(this.host));
|
|
6
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: 'b8d9efa8e96a192966ead2a13898665f82b3fc2d' }, h("button", Object.assign({ key: '39f2161c9d6330bb9d0ca2245b2e6b63622fd9a6' }, buttonProps), h(prefixedTagNames.tdsIcon, { key: 'a3e98760aef2bf5bced8a96cae2e01067ab5a61c', name: "cross", size: "20px" }))));
|
|
7
9
|
}
|
|
8
10
|
static get is() { return "tds-side-menu-close-button"; }
|
|
9
11
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the text label of the button.
|
|
4
5
|
* */
|
|
@@ -28,14 +29,15 @@ export class TdsSideMenuCollapseButton {
|
|
|
28
29
|
this.collapsed = this.sideMenuEl.collapsed;
|
|
29
30
|
}
|
|
30
31
|
render() {
|
|
31
|
-
|
|
32
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
33
|
+
return (h(Host, { key: '716bdffd158c839bca8c35073866d5c8983277c1', role: "button", tabindex: "0", onClick: () => {
|
|
32
34
|
this.handleClick();
|
|
33
|
-
} }, h("div", { key: '
|
|
35
|
+
} }, h("div", { key: 'e8d943133fdbc74d31e8e2f824ae7b2a47426f9d', class: {
|
|
34
36
|
'wrapper': true,
|
|
35
37
|
'state-collapsed': this.collapsed,
|
|
36
|
-
} }, h(
|
|
38
|
+
} }, h(prefixedTagNames.tdsSideMenuItem, { key: '13be747559758d11dba4a5a8be20762385155b86', class: {
|
|
37
39
|
button: true,
|
|
38
|
-
} }, h("a", { key: '
|
|
40
|
+
} }, h("a", { key: '2660af6cc804011bcbd9838b00949001002170c4' }, h("svg", { key: '10bfa3c93ab0ca8f0dc7fc5a84198bf37dc4f968', class: "icon", slot: "icon", fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: '5f77a44d3c22512f93d8c1bbcca0f650594c8be7', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16 1.975a1 1 0 0 1 1 1v20.3l9.311-9.312a1 1 0 0 1 1.415 1.414l-9.887 9.887a2.6 2.6 0 0 1-3.677 0l-9.887-9.887a1 1 0 1 1 1.414-1.414L15 23.274V2.975a1 1 0 0 1 1-1ZM5.188 28.001a1 1 0 0 0 0 2h21.62a1 1 0 1 0 0-2H5.188Z", fill: "currentColor" })), !this.collapsed && h("slot", { key: '0bb583b4f58f7933a55d515636b524ceb2ccb891' }))))));
|
|
39
41
|
}
|
|
40
42
|
static get is() { return "tds-side-menu-collapse-button"; }
|
|
41
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Fragment, h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot icon - Used for injecting the icon that compliments the dropdown title
|
|
4
5
|
* @slot label - Used for injecting the text, aka dropdown title
|
|
@@ -50,13 +51,14 @@ export class TdsSideMenuDropdown {
|
|
|
50
51
|
this.open = this.defaultOpen;
|
|
51
52
|
}
|
|
52
53
|
render() {
|
|
53
|
-
|
|
54
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
55
|
+
return (h(Host, { key: 'd61a2cd774e95646ec3f0c00a13404907cedecf1' }, h("div", { key: 'ab794f2a74f5d43d4f80ff84ac6a89abd4d8751d', class: {
|
|
54
56
|
'wrapper': true,
|
|
55
57
|
'state-open': this.getIsOpenState(),
|
|
56
58
|
'state-collapsed': this.collapsed,
|
|
57
|
-
} }, h(
|
|
59
|
+
} }, h(prefixedTagNames.tdsSideMenuItem, { key: 'e6b558615f822a452d63f174e1c83c80e4c07558', class: "button", active: this.getIsOpenState(), selected: this.selected, onClick: () => {
|
|
58
60
|
this.open = !this.open;
|
|
59
|
-
} }, h("button", { key: '
|
|
61
|
+
} }, h("button", { key: 'b9c9f561847d6b48ce83807fadc07192a42b11e3' }, h("slot", { key: 'e0ecb003ae2d04f0c7f01b357ab831ac2eb68d03', name: "icon" }), !this.collapsed && (h(Fragment, { key: 'f9fc33e944f4b56f86c7495084d32091d61fafa5' }, this.buttonLabel, h("slot", { key: 'c5494b6dd481897c452c8e45e21f35d0260f8703', name: "label" }), h(prefixedTagNames.tdsIcon, { key: '1a11f0ed9d78d15d4e68667ed79353af6a6255c9', class: "dropdown-icon", name: "chevron_down", size: "16px" }))))), h("div", { key: '75ef7b1e15e926813dabd29cb6f68b17774bbf4d', class: "menu" }, this.collapsed && (h("h3", { key: '89a41eed8483f37deb9391293584e93959d03532', class: "heading-collapsed" }, this.buttonLabel, h("slot", { key: '1c0cbdd49a1226ee5311a733ab24064ee3032604', name: "label" }))), h("slot", { key: '5850c21ffe901c0e8ed848d21106ff63653dce0a' })))));
|
|
60
62
|
}
|
|
61
63
|
static get is() { return "tds-side-menu-dropdown"; }
|
|
62
64
|
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
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> Used as alternative to props to inject <code><img...</code> element directly into the DOM.
|
|
4
5
|
* */
|
|
@@ -10,7 +11,8 @@ export class TdsSideMenuUser {
|
|
|
10
11
|
this.imgAlt = undefined;
|
|
11
12
|
}
|
|
12
13
|
render() {
|
|
13
|
-
|
|
14
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
15
|
+
return (h(Host, { key: '378797df81d1a0cdec4a7ad12813dcd2d57a8017' }, h(prefixedTagNames.tdsSideMenuUserImage, { key: 'faa47521346c55bfa10d27c2aabd9a9224ec1f88', src: this.imgSrc, alt: this.imgAlt }, h("slot", { key: '0863342a90fb83e8afc04d763181532c65f86060', name: "image" })), h(prefixedTagNames.tdsSideMenuUserLabel, { key: '7f5782f7a00fa2741d24f4d371da8f48e76b8267', heading: this.heading, subheading: this.subheading })));
|
|
14
16
|
}
|
|
15
17
|
static get is() { return "tds-side-menu-user"; }
|
|
16
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,4 +98,5 @@ export class TdsSideMenuUser {
|
|
|
96
98
|
}
|
|
97
99
|
};
|
|
98
100
|
}
|
|
101
|
+
static get elementRef() { return "host"; }
|
|
99
102
|
}
|