@scania/tegel 1.52.0 → 1.53.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-DGBnICb9.js +2548 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/tds-badge.cjs.entry.js +1 -1
- package/dist/cjs/tds-banner.cjs.entry.js +1 -1
- package/dist/cjs/tds-block.cjs.entry.js +1 -1
- package/dist/cjs/tds-body-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/tds-button_2.cjs.entry.js +2 -2
- package/dist/cjs/tds-card.cjs.entry.js +1 -1
- package/dist/cjs/tds-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/tds-chip.cjs.entry.js +1 -1
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
- package/dist/cjs/tds-datetime.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +143 -98
- package/dist/cjs/tds-folder-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer-group.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-footer.cjs.entry.js +9 -5
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header.cjs.entry.js +1 -1
- package/dist/cjs/tds-icon.cjs.entry.js +3 -2
- package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-link.cjs.entry.js +2 -2
- package/dist/cjs/tds-message.cjs.entry.js +1 -1
- package/dist/cjs/tds-modal.cjs.entry.js +12 -8
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu.cjs.entry.js +1 -1
- package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu.cjs.entry.js +1 -1
- package/dist/cjs/tds-slider.cjs.entry.js +1 -1
- package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tds-step.cjs.entry.js +1 -1
- package/dist/cjs/tds-stepper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-row.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-footer.cjs.entry.js +18 -10
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-header.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/tds-table.cjs.entry.js +1 -1
- package/dist/cjs/tds-tag.cjs.entry.js +2 -2
- package/dist/cjs/tds-text-field.cjs.entry.js +1 -1
- package/dist/cjs/tds-textarea.cjs.entry.js +1 -1
- package/dist/cjs/tds-toast.cjs.entry.js +1 -1
- package/dist/cjs/tds-toggle.cjs.entry.js +1 -1
- package/dist/cjs/tds-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/tegel.cjs.js +2 -2
- package/dist/collection/assets/fonts/traton/TratonTypeDisplay-Bold.woff +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeDisplay-Bold.woff2 +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeDisplay-Medium.woff +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeDisplay-Medium.woff2 +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-Bold.woff +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-Bold.woff2 +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-BoldItalic.woff +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-BoldItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-Italic.woff +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-Italic.woff2 +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-Medium.woff +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-Medium.woff2 +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-MediumItalic.woff +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-MediumItalic.woff2 +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-Regular.woff +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-Regular.woff2 +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-SemiBold.woff +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-SemiBold.woff2 +0 -0
- package/dist/collection/assets/fonts/traton/TratonTypeText-SemiBoldItalic.woff2 +0 -0
- package/dist/collection/assets/icons/traton/placeholder.svg +3 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.css +7 -2
- package/dist/collection/components/button/button.css +105 -212
- package/dist/collection/components/dropdown/dropdown.js +144 -97
- package/dist/collection/components/footer/footer-item/footer-item.css +14 -6
- package/dist/collection/components/footer/footer.css +9 -3
- package/dist/collection/components/footer/footer.js +7 -3
- package/dist/collection/components/icon/tratonIconsArray.js +33 -2
- package/dist/collection/components/link/link.css +8 -4
- package/dist/collection/components/modal/modal.css +3 -11
- package/dist/collection/components/modal/modal.js +11 -7
- package/dist/collection/components/table/table-footer/table-footer.js +39 -13
- package/dist/collection/components/tag/tag.css +24 -3
- package/dist/collection/components/tooltip/tooltip.css +13 -8
- package/dist/components/index.js +1 -1
- package/dist/components/{p-DMVs7mmW.js → p-B4-NZ0-T.js} +1 -1
- package/dist/components/p-BVWWo6dK.js +1 -0
- package/dist/components/{p-D8Rhjha5.js → p-Cl3uo8RO.js} +1 -1
- package/dist/components/{p-DynhdmI7.js → p-DDTzvbMK.js} +1 -1
- package/dist/components/{p-DO04x4VW.js → p-DNQszLML.js} +1 -1
- package/dist/components/p-Do9F2RTX.js +1 -0
- package/dist/components/p-Egx6jNza.js +1 -0
- package/dist/components/tds-accordion-item.js +1 -1
- package/dist/components/tds-banner.js +1 -1
- package/dist/components/tds-breadcrumbs.js +1 -1
- package/dist/components/tds-button.js +1 -1
- package/dist/components/tds-card.js +1 -1
- package/dist/components/tds-datetime.js +1 -1
- package/dist/components/tds-dropdown-option.js +1 -1
- package/dist/components/tds-dropdown.js +1 -1
- package/dist/components/tds-folder-tabs.js +1 -1
- package/dist/components/tds-footer-group.js +1 -1
- package/dist/components/tds-footer-item.js +1 -1
- package/dist/components/tds-footer.js +1 -1
- package/dist/components/tds-header-cell.js +1 -1
- package/dist/components/tds-header-dropdown.js +1 -1
- package/dist/components/tds-header-hamburger.js +1 -1
- package/dist/components/tds-header-launcher-button.js +1 -1
- package/dist/components/tds-header-launcher.js +1 -1
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tabs.js +1 -1
- package/dist/components/tds-link.js +1 -1
- package/dist/components/tds-message.js +1 -1
- package/dist/components/tds-modal.js +1 -1
- package/dist/components/tds-navigation-tabs.js +1 -1
- package/dist/components/tds-side-menu-close-button.js +1 -1
- package/dist/components/tds-side-menu-dropdown.js +1 -1
- package/dist/components/tds-slider.js +1 -1
- package/dist/components/tds-step.js +1 -1
- package/dist/components/tds-table-body-input-wrapper.js +1 -1
- package/dist/components/tds-table-footer.js +1 -1
- package/dist/components/tds-table-header-input-wrapper.js +1 -1
- package/dist/components/tds-table-toolbar.js +1 -1
- package/dist/components/tds-tag.js +1 -1
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-textarea.js +1 -1
- package/dist/components/tds-toast.js +1 -1
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/index-VFN9WV0d.js +2519 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/tds-accordion-item.entry.js +1 -1
- package/dist/esm/tds-accordion.entry.js +1 -1
- package/dist/esm/tds-badge.entry.js +1 -1
- package/dist/esm/tds-banner.entry.js +1 -1
- package/dist/esm/tds-block.entry.js +1 -1
- package/dist/esm/tds-body-cell.entry.js +1 -1
- package/dist/esm/tds-breadcrumb.entry.js +1 -1
- package/dist/esm/tds-breadcrumbs.entry.js +2 -2
- package/dist/esm/tds-button_2.entry.js +2 -2
- package/dist/esm/tds-card.entry.js +1 -1
- package/dist/esm/tds-checkbox.entry.js +1 -1
- package/dist/esm/tds-chip.entry.js +1 -1
- package/dist/esm/tds-core-header-item_2.entry.js +1 -1
- package/dist/esm/tds-datetime.entry.js +1 -1
- package/dist/esm/tds-dropdown_2.entry.js +143 -98
- package/dist/esm/tds-folder-tab.entry.js +1 -1
- package/dist/esm/tds-folder-tabs.entry.js +1 -1
- package/dist/esm/tds-footer-group.entry.js +1 -1
- package/dist/esm/tds-footer-item.entry.js +2 -2
- package/dist/esm/tds-footer.entry.js +9 -5
- package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
- package/dist/esm/tds-header-cell.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-header-dropdown.entry.js +1 -1
- package/dist/esm/tds-header-hamburger.entry.js +1 -1
- package/dist/esm/tds-header-launcher-button.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list.entry.js +1 -1
- package/dist/esm/tds-header-launcher.entry.js +1 -1
- package/dist/esm/tds-header-title.entry.js +1 -1
- package/dist/esm/tds-header.entry.js +1 -1
- package/dist/esm/tds-icon.entry.js +3 -2
- package/dist/esm/tds-inline-tab.entry.js +1 -1
- package/dist/esm/tds-inline-tabs.entry.js +1 -1
- package/dist/esm/tds-link.entry.js +2 -2
- package/dist/esm/tds-message.entry.js +1 -1
- package/dist/esm/tds-modal.entry.js +12 -8
- package/dist/esm/tds-navigation-tab.entry.js +1 -1
- package/dist/esm/tds-navigation-tabs.entry.js +1 -1
- package/dist/esm/tds-popover-canvas.entry.js +1 -1
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-popover-menu-item.entry.js +1 -1
- package/dist/esm/tds-popover-menu.entry.js +1 -1
- package/dist/esm/tds-radio-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-collapse-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown.entry.js +1 -1
- package/dist/esm/tds-side-menu-item.entry.js +1 -1
- package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
- package/dist/esm/tds-side-menu-user-image_2.entry.js +1 -1
- package/dist/esm/tds-side-menu-user.entry.js +1 -1
- package/dist/esm/tds-side-menu.entry.js +1 -1
- package/dist/esm/tds-slider.entry.js +1 -1
- package/dist/esm/tds-spinner.entry.js +1 -1
- package/dist/esm/tds-step.entry.js +1 -1
- package/dist/esm/tds-stepper.entry.js +1 -1
- package/dist/esm/tds-table-body-input-wrapper.entry.js +1 -1
- package/dist/esm/tds-table-body-row-expandable.entry.js +1 -1
- package/dist/esm/tds-table-body-row.entry.js +1 -1
- package/dist/esm/tds-table-body.entry.js +1 -1
- package/dist/esm/tds-table-footer.entry.js +18 -10
- package/dist/esm/tds-table-header-input-wrapper.entry.js +1 -1
- package/dist/esm/tds-table-header.entry.js +1 -1
- package/dist/esm/tds-table-toolbar.entry.js +1 -1
- package/dist/esm/tds-table.entry.js +1 -1
- package/dist/esm/tds-tag.entry.js +2 -2
- package/dist/esm/tds-text-field.entry.js +1 -1
- package/dist/esm/tds-textarea.entry.js +1 -1
- package/dist/esm/tds-toast.entry.js +1 -1
- package/dist/esm/tds-toggle.entry.js +1 -1
- package/dist/esm/tds-tooltip.entry.js +2 -2
- package/dist/esm/tegel.js +3 -3
- package/dist/tegel/assets/fonts/traton/TratonTypeDisplay-Bold.woff +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeDisplay-Bold.woff2 +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeDisplay-Medium.woff +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeDisplay-Medium.woff2 +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-Bold.woff +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-Bold.woff2 +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-BoldItalic.woff +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-BoldItalic.woff2 +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-Italic.woff +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-Italic.woff2 +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-Medium.woff +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-Medium.woff2 +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-MediumItalic.woff +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-MediumItalic.woff2 +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-Regular.woff +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-Regular.woff2 +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-SemiBold.woff +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-SemiBold.woff2 +0 -0
- package/dist/tegel/assets/fonts/traton/TratonTypeText-SemiBoldItalic.woff2 +0 -0
- package/dist/tegel/assets/icons/traton/placeholder.svg +3 -0
- package/dist/tegel/{p-56310be9.entry.js → p-0287d7e6.entry.js} +1 -1
- package/dist/tegel/{p-36690d76.entry.js → p-09283aec.entry.js} +1 -1
- package/dist/tegel/p-09a49461.entry.js +1 -0
- package/dist/tegel/{p-59cf7a46.entry.js → p-1040713f.entry.js} +1 -1
- package/dist/tegel/{p-11c42fea.entry.js → p-15189121.entry.js} +1 -1
- package/dist/tegel/{p-4f9883a1.entry.js → p-17e2a780.entry.js} +1 -1
- package/dist/tegel/{p-6fd80b65.entry.js → p-1a6cc08f.entry.js} +1 -1
- package/dist/tegel/{p-19f6a98c.entry.js → p-21e5d59e.entry.js} +1 -1
- package/dist/tegel/{p-b1748053.entry.js → p-2368a679.entry.js} +1 -1
- package/dist/tegel/{p-9c9aab5c.entry.js → p-25ad3b5a.entry.js} +1 -1
- package/dist/tegel/{p-9be52179.entry.js → p-2664fa80.entry.js} +1 -1
- package/dist/tegel/{p-7df02354.entry.js → p-27147331.entry.js} +1 -1
- package/dist/tegel/{p-2d4fbdc1.entry.js → p-2a35cd68.entry.js} +1 -1
- package/dist/tegel/p-2bcff4fd.entry.js +1 -0
- package/dist/tegel/{p-74d00b66.entry.js → p-2e38e5f0.entry.js} +1 -1
- package/dist/tegel/{p-cabd33eb.entry.js → p-34a68c03.entry.js} +1 -1
- package/dist/tegel/{p-863e86f5.entry.js → p-39786a40.entry.js} +1 -1
- package/dist/tegel/{p-ceae3c8f.entry.js → p-3a8825e6.entry.js} +1 -1
- package/dist/tegel/p-3a9e4918.entry.js +1 -0
- package/dist/tegel/p-3ab869e0.entry.js +1 -0
- package/dist/tegel/{p-2afb0b8e.entry.js → p-3bd827a4.entry.js} +1 -1
- package/dist/tegel/{p-71b9932a.entry.js → p-42039b28.entry.js} +1 -1
- package/dist/tegel/{p-3b47d9c2.entry.js → p-42d189f0.entry.js} +1 -1
- package/dist/tegel/p-43a4ab98.entry.js +1 -0
- package/dist/tegel/{p-095876cb.entry.js → p-4427d72f.entry.js} +1 -1
- package/dist/tegel/{p-7a2fa294.entry.js → p-4942f086.entry.js} +1 -1
- package/dist/tegel/{p-9c52fe1f.entry.js → p-4f6aac2c.entry.js} +1 -1
- package/dist/tegel/p-50060137.entry.js +1 -0
- package/dist/tegel/{p-d90aafb6.entry.js → p-577f376b.entry.js} +1 -1
- package/dist/tegel/{p-2fb1a04b.entry.js → p-5a850695.entry.js} +1 -1
- package/dist/tegel/{p-4977e2ac.entry.js → p-5adfe9d6.entry.js} +1 -1
- package/dist/tegel/{p-1260b114.entry.js → p-5aee8773.entry.js} +1 -1
- package/dist/tegel/{p-eea31650.entry.js → p-5d18b544.entry.js} +1 -1
- package/dist/tegel/{p-d2db92f1.entry.js → p-6522ac2d.entry.js} +1 -1
- package/dist/tegel/{p-d8b80a86.entry.js → p-693d9a90.entry.js} +1 -1
- package/dist/tegel/{p-32f7d352.entry.js → p-749ca751.entry.js} +1 -1
- package/dist/tegel/{p-79456038.entry.js → p-7ca5da7e.entry.js} +1 -1
- package/dist/tegel/{p-fddf22db.entry.js → p-7de064e6.entry.js} +1 -1
- package/dist/tegel/{p-a2471f14.entry.js → p-7ea3179a.entry.js} +1 -1
- package/dist/tegel/p-7f3b6674.entry.js +1 -0
- package/dist/tegel/{p-c02c22d5.entry.js → p-8176c57c.entry.js} +1 -1
- package/dist/tegel/p-84ee8542.entry.js +1 -0
- package/dist/tegel/{p-f993cc32.entry.js → p-88a89bae.entry.js} +1 -1
- package/dist/tegel/{p-a0f84b48.entry.js → p-893b3a10.entry.js} +1 -1
- package/dist/tegel/{p-efce19b7.entry.js → p-8a32f501.entry.js} +1 -1
- package/dist/tegel/{p-823c1334.entry.js → p-8d5f25c6.entry.js} +1 -1
- package/dist/tegel/p-8fda5922.entry.js +1 -0
- package/dist/tegel/{p-bb6a5e22.entry.js → p-9122bbb9.entry.js} +1 -1
- package/dist/tegel/{p-0d71c9aa.entry.js → p-937a4ef1.entry.js} +1 -1
- package/dist/tegel/p-9539123c.entry.js +1 -0
- package/dist/tegel/p-974e6258.entry.js +1 -0
- package/dist/tegel/{p-f0dfebaf.entry.js → p-9baf0c95.entry.js} +1 -1
- package/dist/tegel/{p-311a647f.entry.js → p-9d3dd7a1.entry.js} +1 -1
- package/dist/tegel/{p-b6556200.entry.js → p-9d755c09.entry.js} +1 -1
- package/dist/tegel/{p-e7bd5414.entry.js → p-9f63eb3b.entry.js} +1 -1
- package/dist/tegel/p-VFN9WV0d.js +2 -0
- package/dist/tegel/{p-37dc9db8.entry.js → p-a2a65bdf.entry.js} +1 -1
- package/dist/tegel/{p-7c5558b9.entry.js → p-a476f37f.entry.js} +1 -1
- package/dist/tegel/{p-380e0207.entry.js → p-a4ce9d18.entry.js} +1 -1
- package/dist/tegel/{p-51f64a57.entry.js → p-aa048dfa.entry.js} +1 -1
- package/dist/tegel/p-ac3dd42b.entry.js +1 -0
- package/dist/tegel/{p-bb22708d.entry.js → p-aea4aea5.entry.js} +1 -1
- package/dist/tegel/{p-4f4aebc3.entry.js → p-b0fe7b44.entry.js} +1 -1
- package/dist/tegel/{p-9b17ac76.entry.js → p-baabfde2.entry.js} +1 -1
- package/dist/tegel/p-beb70800.entry.js +1 -0
- package/dist/tegel/{p-0f015d2b.entry.js → p-bfe2aab2.entry.js} +1 -1
- package/dist/tegel/p-cb8b1417.entry.js +1 -0
- package/dist/tegel/{p-590f9dc6.entry.js → p-d06b8bb8.entry.js} +1 -1
- package/dist/tegel/{p-ad549f40.entry.js → p-d0842e39.entry.js} +1 -1
- package/dist/tegel/{p-5d11c6b9.entry.js → p-d9faf299.entry.js} +1 -1
- package/dist/tegel/{p-50cc4747.entry.js → p-da18140a.entry.js} +1 -1
- package/dist/tegel/p-dd44ee2d.entry.js +1 -0
- package/dist/tegel/{p-27e336aa.entry.js → p-e676b230.entry.js} +1 -1
- package/dist/tegel/{p-09037af5.entry.js → p-e6df230b.entry.js} +1 -1
- package/dist/tegel/{p-ec239e6a.entry.js → p-ebdddea6.entry.js} +1 -1
- package/dist/tegel/{p-5524ecc6.entry.js → p-ed485529.entry.js} +1 -1
- package/dist/tegel/{p-9e9667a2.entry.js → p-f7518ea3.entry.js} +1 -1
- package/dist/tegel/{p-d946ae72.entry.js → p-f939a432.entry.js} +1 -1
- package/dist/tegel/{p-157a0f1b.entry.js → p-fa5e71b0.entry.js} +1 -1
- package/dist/tegel/{p-3dbb749e.entry.js → p-ff355ee6.entry.js} +1 -1
- package/dist/tegel/tegel.css +65 -29
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/dropdown/dropdown.d.ts +30 -17
- package/dist/types/components/footer/footer.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +6 -2
- package/dist/types/components/table/table-footer/table-footer.d.ts +5 -3
- package/dist/types/components.d.ts +15 -6
- package/package.json +4 -5
- package/dist/cjs/index-TseCxKiF.js +0 -2548
- package/dist/components/p-Dkw_xBUE.js +0 -1
- package/dist/components/p-T8F4U3Yc.js +0 -1
- package/dist/components/p-TTZk9Ssg.js +0 -1
- package/dist/esm/index-Befhko2r.js +0 -2519
- package/dist/tegel/p-14d1f541.entry.js +0 -1
- package/dist/tegel/p-2268f6b0.entry.js +0 -1
- package/dist/tegel/p-35421451.entry.js +0 -1
- package/dist/tegel/p-3b4f67b3.entry.js +0 -1
- package/dist/tegel/p-3da8d1a1.entry.js +0 -1
- package/dist/tegel/p-54a7b360.entry.js +0 -1
- package/dist/tegel/p-5ba6e899.entry.js +0 -1
- package/dist/tegel/p-5ca0d006.entry.js +0 -1
- package/dist/tegel/p-74412bf6.entry.js +0 -1
- package/dist/tegel/p-79aa39fb.entry.js +0 -1
- package/dist/tegel/p-Befhko2r.js +0 -2
- package/dist/tegel/p-bbc5f90f.entry.js +0 -1
- package/dist/tegel/p-c5208ac4.entry.js +0 -1
- package/dist/tegel/p-e09b5f6a.entry.js +0 -1
- package/dist/tegel/p-ecbfcb75.entry.js +0 -1
- package/dist/tegel/p-fdde3a0d.entry.js +0 -1
|
@@ -56,7 +56,46 @@ export class TdsDropdown {
|
|
|
56
56
|
this.selectedOptions = [];
|
|
57
57
|
this.filterQuery = '';
|
|
58
58
|
this.hasFocus = false;
|
|
59
|
+
this.pendingInvalidValues = new Set();
|
|
59
60
|
this.uuid = generateUniqueId();
|
|
61
|
+
this.handleArrowDown = (activeElement) => {
|
|
62
|
+
const children = this.getChildren();
|
|
63
|
+
/** Get the index of the current focus index, if there is no
|
|
64
|
+
nextElementSibling return the index for the first child in our Dropdown. */
|
|
65
|
+
const startingIndex = activeElement.nextElementSibling
|
|
66
|
+
? children.findIndex((element) => element === activeElement.nextElementSibling)
|
|
67
|
+
: 0;
|
|
68
|
+
if (children.length > 0) {
|
|
69
|
+
const elementIndex = findNextFocusableElement(children, startingIndex);
|
|
70
|
+
const target = typeof elementIndex === 'number' ? children[elementIndex] : children[0];
|
|
71
|
+
target === null || target === void 0 ? void 0 : target.focus();
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
this.handleArrowUp = (activeElement) => {
|
|
75
|
+
const children = this.getChildren();
|
|
76
|
+
/** Get the index of the current focus index, if there is no
|
|
77
|
+
previousElementSibling return the index for the first last in our Dropdown. */
|
|
78
|
+
const startingIndex = activeElement.nextElementSibling
|
|
79
|
+
? children.findIndex((element) => element === activeElement.previousElementSibling)
|
|
80
|
+
: 0;
|
|
81
|
+
if (children.length > 0) {
|
|
82
|
+
const elementIndex = findPreviousFocusableElement(children, startingIndex);
|
|
83
|
+
const target = typeof elementIndex === 'number' ? children[elementIndex] : children[children.length - 1];
|
|
84
|
+
target === null || target === void 0 ? void 0 : target.focus();
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
this.handleEscape = () => {
|
|
88
|
+
var _a, _b;
|
|
89
|
+
this.open = false;
|
|
90
|
+
/** Return focus to input/button when Escape key is used */
|
|
91
|
+
if (this.filter) {
|
|
92
|
+
(_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
const button = (_b = this.host.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('button');
|
|
96
|
+
button === null || button === void 0 ? void 0 : button.focus();
|
|
97
|
+
}
|
|
98
|
+
};
|
|
60
99
|
this.setDefaultOption = () => {
|
|
61
100
|
if (this.internalDefaultValue) {
|
|
62
101
|
/** Convert the internal default value to an array if it's not already */
|
|
@@ -66,13 +105,7 @@ export class TdsDropdown {
|
|
|
66
105
|
this.updateDropdownStateInternal(defaultValues);
|
|
67
106
|
}
|
|
68
107
|
};
|
|
69
|
-
this.getChildren = () =>
|
|
70
|
-
const tdsDropdownOptions = Array.from(this.host.children).filter((element) => element.tagName === 'TDS-DROPDOWN-OPTION');
|
|
71
|
-
if (tdsDropdownOptions.length === 0) {
|
|
72
|
-
console.warn('TDS DROPDOWN: No options found. Disregard if loading data asynchronously.');
|
|
73
|
-
}
|
|
74
|
-
return tdsDropdownOptions;
|
|
75
|
-
};
|
|
108
|
+
this.getChildren = () => Array.from(this.host.children).filter((element) => element.tagName === 'TDS-DROPDOWN-OPTION');
|
|
76
109
|
this.getSelectedChildren = () => {
|
|
77
110
|
if (this.selectedOptions.length === 0)
|
|
78
111
|
return [];
|
|
@@ -180,48 +213,51 @@ export class TdsDropdown {
|
|
|
180
213
|
}).length;
|
|
181
214
|
}
|
|
182
215
|
};
|
|
216
|
+
this.focusInput = (value) => {
|
|
217
|
+
if (this.inputElement) {
|
|
218
|
+
this.inputElement.value = value;
|
|
219
|
+
this.inputElement.focus();
|
|
220
|
+
}
|
|
221
|
+
};
|
|
183
222
|
this.handleFilterReset = () => {
|
|
184
223
|
if (this.multiselect) {
|
|
185
|
-
|
|
186
|
-
if (this.filterQuery.length > 0) {
|
|
187
|
-
const clearedValue = this.filterQuery;
|
|
188
|
-
this.filterQuery = '';
|
|
189
|
-
this.resetFilterVisibility();
|
|
190
|
-
if (this.inputElement) {
|
|
191
|
-
this.inputElement.value = this.getValue();
|
|
192
|
-
this.inputElement.focus();
|
|
193
|
-
}
|
|
194
|
-
this.tdsClear.emit({ clearedValue });
|
|
195
|
-
}
|
|
196
|
-
else if (this.selectedOptions.length > 0) {
|
|
197
|
-
const clearedValue = this.selectedOptions.join(',');
|
|
198
|
-
this.updateDropdownStateFromUser([]);
|
|
199
|
-
if (this.inputElement) {
|
|
200
|
-
this.inputElement.value = '';
|
|
201
|
-
this.inputElement.focus();
|
|
202
|
-
}
|
|
203
|
-
this.tdsClear.emit({ clearedValue });
|
|
204
|
-
}
|
|
224
|
+
this.handleMultiselectFilterReset();
|
|
205
225
|
}
|
|
206
226
|
else {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
227
|
+
this.handleSingleFilterReset();
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
/** Multiselect + filter: two-step clear */
|
|
231
|
+
this.handleMultiselectFilterReset = () => {
|
|
232
|
+
if (this.filterQuery.length > 0) {
|
|
233
|
+
const clearedValue = this.filterQuery;
|
|
234
|
+
this.filterQuery = '';
|
|
235
|
+
this.resetFilterVisibility();
|
|
236
|
+
this.focusInput(this.getValue());
|
|
237
|
+
this.tdsClear.emit({ clearedValue });
|
|
238
|
+
}
|
|
239
|
+
else if (this.selectedOptions.length > 0) {
|
|
240
|
+
const clearedValue = this.selectedOptions.join(',');
|
|
241
|
+
this.updateDropdownStateFromUser([]);
|
|
242
|
+
this.focusInput('');
|
|
243
|
+
this.tdsClear.emit({ clearedValue });
|
|
244
|
+
}
|
|
245
|
+
};
|
|
246
|
+
/** Single select + filter: clear everything immediately */
|
|
247
|
+
this.handleSingleFilterReset = () => {
|
|
248
|
+
const clearedParts = [];
|
|
249
|
+
if (this.filterQuery.length > 0) {
|
|
250
|
+
clearedParts.push(this.filterQuery);
|
|
251
|
+
this.filterQuery = '';
|
|
252
|
+
this.resetFilterVisibility();
|
|
253
|
+
}
|
|
254
|
+
if (this.selectedOptions.length > 0) {
|
|
255
|
+
clearedParts.push(this.selectedOptions.join(','));
|
|
256
|
+
this.updateDropdownStateFromUser([]);
|
|
257
|
+
}
|
|
258
|
+
this.focusInput('');
|
|
259
|
+
if (clearedParts.length > 0) {
|
|
260
|
+
this.tdsClear.emit({ clearedValue: clearedParts.join(',') });
|
|
225
261
|
}
|
|
226
262
|
};
|
|
227
263
|
this.resetFilterVisibility = () => {
|
|
@@ -286,7 +322,7 @@ export class TdsDropdown {
|
|
|
286
322
|
const normalizedValue = this.normalizeValue(newValue);
|
|
287
323
|
/** Only update if actually changed */
|
|
288
324
|
if (hasValueChanged(normalizedValue, this.selectedOptions)) {
|
|
289
|
-
this.
|
|
325
|
+
this.updateDropdownStateInternal(normalizedValue);
|
|
290
326
|
}
|
|
291
327
|
}
|
|
292
328
|
normalizeValue(value) {
|
|
@@ -317,8 +353,8 @@ export class TdsDropdown {
|
|
|
317
353
|
this.updateDropdownState(values, true);
|
|
318
354
|
}
|
|
319
355
|
updateDropdownState(values, emitChange = true) {
|
|
320
|
-
/** Validate the values
|
|
321
|
-
const validValues = this.validateValues(values);
|
|
356
|
+
/** Validate the values - only filter out invalid values for user-triggered changes */
|
|
357
|
+
const validValues = this.validateValues(values, emitChange);
|
|
322
358
|
/** Update internal state */
|
|
323
359
|
this.selectedOptions = [...validValues];
|
|
324
360
|
/** Update the value prop */
|
|
@@ -335,19 +371,17 @@ export class TdsDropdown {
|
|
|
335
371
|
/** Update value attribute */
|
|
336
372
|
this.setValueAttribute();
|
|
337
373
|
}
|
|
338
|
-
validateValues(values) {
|
|
339
|
-
/** Make sure we have children before validation */
|
|
374
|
+
validateValues(values, strict = false) {
|
|
340
375
|
const children = this.getChildren();
|
|
341
376
|
if (!children || children.length === 0) {
|
|
342
|
-
console.warn('No dropdown options found');
|
|
343
377
|
return values; /** Return original values if no children yet */
|
|
344
378
|
}
|
|
345
379
|
return values.filter((val) => {
|
|
346
380
|
const isValid = children.some((element) => convertToString(element.value) === convertToString(val));
|
|
347
|
-
if (!isValid) {
|
|
348
|
-
console.warn(`Option with value "${val}" does not exist`);
|
|
381
|
+
if (!isValid && strict) {
|
|
382
|
+
console.warn(`TDS DROPDOWN: Option with value "${val}" does not exist`);
|
|
349
383
|
}
|
|
350
|
-
return isValid;
|
|
384
|
+
return isValid || !strict;
|
|
351
385
|
});
|
|
352
386
|
}
|
|
353
387
|
updateOptionElements() {
|
|
@@ -473,47 +507,22 @@ export class TdsDropdown {
|
|
|
473
507
|
}
|
|
474
508
|
}
|
|
475
509
|
async onKeyDown(event) {
|
|
476
|
-
var _a, _b;
|
|
477
|
-
/** Get the active element */
|
|
478
510
|
const { activeElement } = document;
|
|
479
511
|
if (!activeElement) {
|
|
480
512
|
return;
|
|
481
513
|
}
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
}
|
|
495
|
-
else if (event.key === 'ArrowUp') {
|
|
496
|
-
/** Get the index of the current focus index, if there is no
|
|
497
|
-
previousElementSibling return the index for the first last in our Dropdown. */
|
|
498
|
-
const startingIndex = activeElement.nextElementSibling
|
|
499
|
-
? this.getChildren().findIndex((element) => element === activeElement.previousElementSibling)
|
|
500
|
-
: 0;
|
|
501
|
-
if (children.length > 0) {
|
|
502
|
-
const elementIndex = findPreviousFocusableElement(children, startingIndex);
|
|
503
|
-
const target = typeof elementIndex === 'number' ? children[elementIndex] : children[children.length - 1];
|
|
504
|
-
target === null || target === void 0 ? void 0 : target.focus();
|
|
505
|
-
}
|
|
506
|
-
}
|
|
507
|
-
else if (event.key === 'Escape') {
|
|
508
|
-
this.open = false;
|
|
509
|
-
/** Return focus to input/button when Escape key is used */
|
|
510
|
-
if (this.filter) {
|
|
511
|
-
(_a = this.inputElement) === null || _a === void 0 ? void 0 : _a.focus();
|
|
512
|
-
}
|
|
513
|
-
else {
|
|
514
|
-
const button = (_b = this.host.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('button');
|
|
515
|
-
button === null || button === void 0 ? void 0 : button.focus();
|
|
516
|
-
}
|
|
514
|
+
switch (event.key) {
|
|
515
|
+
case 'ArrowDown':
|
|
516
|
+
this.handleArrowDown(activeElement);
|
|
517
|
+
break;
|
|
518
|
+
case 'ArrowUp':
|
|
519
|
+
this.handleArrowUp(activeElement);
|
|
520
|
+
break;
|
|
521
|
+
case 'Escape':
|
|
522
|
+
this.handleEscape();
|
|
523
|
+
break;
|
|
524
|
+
default:
|
|
525
|
+
break;
|
|
517
526
|
}
|
|
518
527
|
}
|
|
519
528
|
/** If the Dropdown gets closed,
|
|
@@ -554,7 +563,45 @@ export class TdsDropdown {
|
|
|
554
563
|
}
|
|
555
564
|
/** Method to handle slot changes */
|
|
556
565
|
handleSlotChange() {
|
|
557
|
-
|
|
566
|
+
/**
|
|
567
|
+
* Warn for values that were pending from a previous slot change
|
|
568
|
+
* and are still invalid now that new options have arrived.
|
|
569
|
+
*/
|
|
570
|
+
this.warnAndClearPending();
|
|
571
|
+
if (this.selectedOptions.length > 0) {
|
|
572
|
+
this.updateDropdownStateInternal([...this.selectedOptions]);
|
|
573
|
+
}
|
|
574
|
+
else if (this.internalDefaultValue) {
|
|
575
|
+
this.setDefaultOption();
|
|
576
|
+
}
|
|
577
|
+
/** Track currently unmatched values as pending for the next slot change */
|
|
578
|
+
this.updatePendingInvalidValues();
|
|
579
|
+
}
|
|
580
|
+
/** Warn for pending values that are still not matched, then clear pending */
|
|
581
|
+
warnAndClearPending() {
|
|
582
|
+
const children = this.getChildren();
|
|
583
|
+
if (!children || children.length === 0 || this.pendingInvalidValues.size === 0)
|
|
584
|
+
return;
|
|
585
|
+
this.pendingInvalidValues.forEach((val) => {
|
|
586
|
+
const isValid = children.some((element) => convertToString(element.value) === convertToString(val));
|
|
587
|
+
if (!isValid) {
|
|
588
|
+
console.warn(`TDS DROPDOWN: Option with value "${val}" does not exist`);
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
this.pendingInvalidValues.clear();
|
|
592
|
+
}
|
|
593
|
+
/** Track unmatched selected values as pending for deferred warning */
|
|
594
|
+
updatePendingInvalidValues() {
|
|
595
|
+
const children = this.getChildren();
|
|
596
|
+
if (!children || children.length === 0)
|
|
597
|
+
return;
|
|
598
|
+
this.pendingInvalidValues.clear();
|
|
599
|
+
this.selectedOptions.forEach((val) => {
|
|
600
|
+
const isValid = children.some((element) => convertToString(element.value) === convertToString(val));
|
|
601
|
+
if (!isValid) {
|
|
602
|
+
this.pendingInvalidValues.add(val);
|
|
603
|
+
}
|
|
604
|
+
});
|
|
558
605
|
}
|
|
559
606
|
/** Method to check if we should normalize text */
|
|
560
607
|
normalizeString(text) {
|
|
@@ -632,9 +679,9 @@ export class TdsDropdown {
|
|
|
632
679
|
else if (showPlaceholderButton) {
|
|
633
680
|
buttonText = (_d = this.placeholder) !== null && _d !== void 0 ? _d : '';
|
|
634
681
|
}
|
|
635
|
-
return (h(Host, { key: '
|
|
682
|
+
return (h(Host, { key: 'ef4fbe1a77a277a93bf542f67d423a6935755522', class: {
|
|
636
683
|
[`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
|
|
637
|
-
} }, this.label && this.labelPosition === 'outside' && (h("div", { key: '
|
|
684
|
+
} }, this.label && this.labelPosition === 'outside' && (h("div", { key: 'e543abac115d7ab45c64776dada58b11d381ae8a', id: labelId, class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '029261f9bd4f46039ed049ca7e08f38641edae05', class: {
|
|
638
685
|
'dropdown-select': true,
|
|
639
686
|
[this.size]: true,
|
|
640
687
|
'disabled': this.disabled,
|
|
@@ -693,7 +740,7 @@ export class TdsDropdown {
|
|
|
693
740
|
}, class: {
|
|
694
741
|
'clear-icon': true,
|
|
695
742
|
'hide': !(this.multiselect && this.selectedOptions.length > 0),
|
|
696
|
-
}, name: "cross", size: "16px" }), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" })))), h("div", { key: '
|
|
743
|
+
}, name: "cross", size: "16px" }), h("tds-icon", { "aria-label": "Open/Close dropdown", svgTitle: "Open/Close dropdown", class: `menu-icon ${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" })))), h("div", { key: '67d82711bf2a53fdc77901c8a28bd83766c287d4', role: "listbox", "aria-label": this.tdsAriaLabel, inert: !this.open, "aria-orientation": "vertical", "aria-multiselectable": this.multiselect, ref: (element) => {
|
|
697
744
|
if (element)
|
|
698
745
|
this.dropdownList = element;
|
|
699
746
|
}, class: {
|
|
@@ -705,11 +752,11 @@ export class TdsDropdown {
|
|
|
705
752
|
'closed': !this.open,
|
|
706
753
|
[`animation-enter-${this.animation}`]: this.animation !== 'none' && this.open,
|
|
707
754
|
[`animation-exit-${this.animation}`]: this.animation !== 'none' && !this.open,
|
|
708
|
-
} }, h("slot", { key: '
|
|
755
|
+
} }, h("slot", { key: '36a3d6ec255decbf8233174eb29f996f141007d2', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: '84a4033110327c8237edff3defdbc831fb56869b', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '0862c49887b92e56f4846831cb514784369715d0', id: helperId, class: {
|
|
709
756
|
helper: true,
|
|
710
757
|
error: this.error,
|
|
711
758
|
disabled: this.disabled,
|
|
712
|
-
} }, this.error && h("tds-icon", { key: '
|
|
759
|
+
} }, this.error && h("tds-icon", { key: '107f29830769cb6928fec4d6cae9f050d47437d7', name: "error", size: "16px" }), this.helper))));
|
|
713
760
|
}
|
|
714
761
|
static get is() { return "tds-dropdown"; }
|
|
715
762
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
/* Typography Usage mixins */
|
|
1
2
|
:host([role=listitem]) div ::slotted(a),
|
|
2
3
|
:host([role=listitem]) div ::slotted(button) {
|
|
3
|
-
font: var(--
|
|
4
|
-
|
|
4
|
+
font-family: var(--detail-02-font-family);
|
|
5
|
+
font-size: var(--detail-02-font-size);
|
|
6
|
+
line-height: var(--detail-02-line-height);
|
|
7
|
+
font-weight: var(--detail-02-font-weight);
|
|
8
|
+
letter-spacing: var(--detail-02-letter-spacing);
|
|
9
|
+
text-transform: var(--detail-02-text-transform);
|
|
5
10
|
color: var(--tds-footer-main-links);
|
|
6
11
|
text-decoration: none;
|
|
7
12
|
}
|
|
@@ -18,8 +23,12 @@
|
|
|
18
23
|
}
|
|
19
24
|
:host([role=listitem]) div.top-part-child ::slotted(a),
|
|
20
25
|
:host([role=listitem]) div.top-part-child ::slotted(button) {
|
|
21
|
-
font: var(--
|
|
22
|
-
|
|
26
|
+
font-family: var(--detail-02-font-family);
|
|
27
|
+
font-size: var(--detail-02-font-size);
|
|
28
|
+
line-height: var(--detail-02-line-height);
|
|
29
|
+
font-weight: var(--detail-02-font-weight);
|
|
30
|
+
letter-spacing: var(--detail-02-letter-spacing);
|
|
31
|
+
text-transform: var(--detail-02-text-transform);
|
|
23
32
|
color: var(--tds-footer-top-links);
|
|
24
33
|
}
|
|
25
34
|
:host([role=listitem]) div.top-part-child ::slotted(a:focus-visible),
|
|
@@ -30,7 +39,7 @@
|
|
|
30
39
|
z-index: 1;
|
|
31
40
|
}
|
|
32
41
|
|
|
33
|
-
@media all and (
|
|
42
|
+
@media all and (width <= 992px) {
|
|
34
43
|
:host([role=listitem]) div.top-part-child {
|
|
35
44
|
border-bottom: 1px solid var(--tds-footer-top-divider);
|
|
36
45
|
}
|
|
@@ -39,7 +48,6 @@
|
|
|
39
48
|
display: block;
|
|
40
49
|
height: 100%;
|
|
41
50
|
padding: 19px 40px;
|
|
42
|
-
font-weight: normal;
|
|
43
51
|
}
|
|
44
52
|
:host([role=listitem]) div.top-part-child ::slotted(a:active),
|
|
45
53
|
:host([role=listitem]) div.top-part-child ::slotted(button:active) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* Typography Usage mixins */
|
|
1
2
|
:host {
|
|
2
3
|
display: block;
|
|
3
4
|
}
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
}
|
|
31
32
|
:host slot[name=end] {
|
|
32
33
|
margin-left: auto;
|
|
34
|
+
color: var(--tds-footer-main-social-icon);
|
|
33
35
|
}
|
|
34
36
|
:host .footer-main-bottom {
|
|
35
37
|
padding: 40px 0;
|
|
@@ -39,12 +41,16 @@
|
|
|
39
41
|
}
|
|
40
42
|
:host .footer-main-bottom small.copyright {
|
|
41
43
|
margin: 0;
|
|
42
|
-
font: var(--
|
|
43
|
-
|
|
44
|
+
font-family: var(--detail-02-font-family);
|
|
45
|
+
font-size: var(--detail-02-font-size);
|
|
46
|
+
line-height: var(--detail-02-line-height);
|
|
47
|
+
font-weight: var(--detail-02-font-weight);
|
|
48
|
+
letter-spacing: var(--detail-02-letter-spacing);
|
|
49
|
+
text-transform: var(--detail-02-text-transform);
|
|
44
50
|
color: var(--tds-footer-main-copyright);
|
|
45
51
|
}
|
|
46
52
|
:host .footer-main-bottom .brand {
|
|
47
|
-
background-image: var(--tds-
|
|
53
|
+
background-image: var(--tds-footer-logotype-local), var(--tds-footer-logotype-cdn);
|
|
48
54
|
background-repeat: no-repeat;
|
|
49
55
|
background-size: 117px;
|
|
50
56
|
background-position: right;
|
|
@@ -10,16 +10,20 @@ export class TdsFooter {
|
|
|
10
10
|
constructor() {
|
|
11
11
|
/** Mode variant of the component, based on current mode. */
|
|
12
12
|
this.modeVariant = null;
|
|
13
|
-
|
|
13
|
+
}
|
|
14
|
+
getBrandName() {
|
|
15
|
+
return this.host.closest('.traton') ? 'Traton' : 'Scania';
|
|
14
16
|
}
|
|
15
17
|
render() {
|
|
16
18
|
const usesTopSlot = hasSlot('top', this.host);
|
|
17
19
|
const usesStartSlot = hasSlot('start', this.host);
|
|
18
20
|
const usesEndSlot = hasSlot('end', this.host);
|
|
19
21
|
const usesCopyrightSlot = hasSlot('copyright', this.host);
|
|
20
|
-
|
|
22
|
+
const brandName = this.getBrandName();
|
|
23
|
+
const copyrightText = `Copyright © ${new Date().getFullYear()} ${brandName}`;
|
|
24
|
+
return (h(Host, { key: 'ac9e0121981c38b240ff4f96fbfc96fb59f51005', class: {
|
|
21
25
|
[`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null,
|
|
22
|
-
} }, h("footer", { key: '
|
|
26
|
+
} }, h("footer", { key: 'd17bd41f9de0efd4449fba8fa48894a86f5a682b' }, usesTopSlot && h("slot", { key: '7f557c36ba1da44009f5be05ed353ec1d92ab88f', name: "top" }), h("div", { key: '5a10ae17a39a6eb707e036076a471f1dec135d32', class: "footer-main" }, (usesStartSlot || usesEndSlot) && (h("div", { key: 'c3142b6c2e5251a0ce9c49c66524c7d982e4a70c', class: "footer-main-top" }, usesStartSlot && h("slot", { key: '29923cff3f6a1bf0be4ae67fe190eadfb74e59b2', name: "start" }), usesEndSlot && h("slot", { key: '6c9216a5c9ad01c94dbc00448a3b7e778dabc705', name: "end" }))), h("div", { key: '5c827108dc49ecd4c1d86aaad9de4b7b390009ad', class: "footer-main-bottom" }, h("small", { key: 'e9ed752b108bc7d9dd52154baa9f8cd9ed2c0039', class: "copyright" }, usesCopyrightSlot ? h("slot", { name: "copyright" }) : copyrightText), h("div", { key: '7183d25ff8387a0a8691a02734d7748867960020', class: "brand" }, h("p", { key: '4d0848e1c716dd68c51e2499d16707b9c48b53ce' }, brandName)))))));
|
|
23
27
|
}
|
|
24
28
|
static get is() { return "tds-footer"; }
|
|
25
29
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,2 +1,33 @@
|
|
|
1
|
-
export const iconsCollection =
|
|
2
|
-
|
|
1
|
+
export const iconsCollection =
|
|
2
|
+
'[{"name":"arrow_diagonal","definition":"M24 5.75H10v2h12.59L6 24.34l1.41 1.41L24 9.16v12.59h2v-16h-2Z","viewbox":"0 0 32 32"},{"name":"arrow_down","definition":"M24.59 16.59 17 24.17V4h-2v20.17L7.41 16.6 6 18l10 10 10-10-1.41-1.41Z","viewbox":"0 0 32 32"},{"name":"arrow_left","definition":"m4 16 10 10 1.41-1.41L7.83 17H28v-2H7.83l7.58-7.59L14 6 4 16Z","viewbox":"0 0 32 32"},{"name":"arrow_right","definition":"M28 16 18 6l-1.41 1.41L24.17 15H4v2h20.17l-7.58 7.59L18 26l10-10Z","viewbox":"0 0 32 32"},{"name":"arrow_up","definition":"M7.41 15.41 15 7.83V28h2V7.83l7.59 7.58L26 14 16 4 6 14l1.41 1.41Z","viewbox":"0 0 32 32"},{"name":"bento","definition":"M6 8a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 18a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM6 28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm10 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4Z","viewbox":"0 0 32 32"},{"name":"burger","definition":"M30 6H2v2h28V6Zm0 9H2v2h28v-2Zm0 9H2v2h28v-2Z","viewbox":"0 0 32 32"},{"name":"calendar","definition":"M26.47 4H22V2h-2v2h-8V2h-2v2H5.53L4 7v18l1.53 3h20.94L28 25V7l-1.53-3ZM10 6v2h2V6h8v2h2V6h3.25L26 7.48V10H6V7.48L6.75 6H10ZM6.75 26 6 24.52V12h20v12.52L25.25 26H6.75Z","viewbox":"0 0 32 32"},{"name":"chevron_down","definition":"m7.13 10.29-1.41 1.42 10 10 10-10-1.41-1.42-8.59 8.59-8.59-8.59Z","viewbox":"0 0 32 32"},{"name":"chevron_left","definition":"M21.41 7.41 20 6 10 16l10 10 1.41-1.41L12.83 16l8.58-8.59Z","viewbox":"0 0 32 32"},{"name":"chevron_right","definition":"M10.59 7.41 12 6l10 10-10 10-1.41-1.41L19.17 16 10.6 7.41Z","viewbox":"0 0 32 32"},{"name":"chevron_up","definition":"m24.89 21.7 1.4-1.4-10-10-10 10 1.42 1.4 8.59-8.58 8.59 8.58Z","viewbox":"0 0 32 32"},{"name":"cross","definition":"M25 8.41 23.59 7 16 14.59 8.41 7 7 8.41 14.59 16 7 23.59 8.41 25 16 17.41 23.59 25 25 23.59 17.41 16 25 8.41Z","viewbox":"0 0 32 32"},{"name":"edit","definition":"m23 3-6 6L4.13 21.87 3 29l7.13-1.13L23 15l6-6-6-6ZM9.18 26l-3.77.6.59-3.77 12.41-12.42 3.17 3.18L9.18 26ZM23 12.17 19.83 9 23 5.83 26.17 9 23 12.17Z","viewbox":"0 0 32 32"},{"name":"error","definition":"M16 30C8.28 30 2 23.72 2 16S8.28 2 16 2s14 6.28 14 14-6.28 14-14 14Zm0-26C9.38 4 4 9.38 4 16s5.38 12 12 12 12-5.38 12-12S22.62 4 16 4ZM17 9h-2v10h2V9Zm0 12h-2v2h2v-2Z","viewbox":"0 0 32 32"},{"name":"info","definition":"M16 30C8.28 30 2 23.72 2 16S8.28 2 16 2s14 6.28 14 14-6.28 14-14 14Zm0-26C9.38 4 4 9.38 4 16s5.38 12 12 12 12-5.38 12-12S22.62 4 16 4ZM17 13h-2v10h2V13Zm0-4h-2v2h2V9Z","viewbox":"0 0 32 32"},{"name":"minus","definition":"M28 15H4v2h24v-2Z","viewbox":"0 0 32 32"},{"name":"notification","definition":"M25 19.55V13a9 9 0 0 0-8-8.94V2h-2v2.06A9 9 0 0 0 7 13v6.55L5 21v5h22v-5l-2-1.45ZM25 24H7v-1.98l.03-.02L9 20.57V13a7 7 0 0 1 14 0v7.57L24.97 22l.03.02V24Zm-5 4h-8v2h8v-2Z","viewbox":"0 0 32 32"},{"name":"plus","definition":"M28 15H17V4h-2v11H4v2h11v11h2V17h11v-2Z","viewbox":"0 0 32 32"},{"name":"print","definition":"M28 9h-3V3H7v6H4l-2 3.93V23h5v6h18v-6h5V12.93L28 9ZM9 5h14v4H9V5Zm14 22H9v-9h14v9Zm5-6h-3v-5H7v5H4v-7.59L5.23 11h21.54L28 13.41V21Z","viewbox":"0 0 32 32"},{"name":"refresh","definition":"M19 10h4.98C22.11 7.5 19.2 6 16 6 10.49 6 6 10.49 6 16H4a12.01 12.01 0 0 1 21-7.94V4h2v8h-8v-2Zm-6 12H8.02c1.87 2.5 4.79 4 7.98 4 5.51 0 10-4.49 10-10h2a12.01 12.01 0 0 1-21 7.93V28H5v-8h8v2Z","viewbox":"0 0 32 32"},{"name":"search","definition":"m28 26.59-6.26-6.27A10.01 10.01 0 1 0 4 14a10.01 10.01 0 0 0 16.32 7.74L26.6 28l1.4-1.41ZM14 22a8 8 0 0 1 0-16 8 8 0 0 1 0 16Z","viewbox":"0 0 32 32"},{"name":"share","definition":"M25.1 21a4.08 4.08 0 0 0-3.15 1.48L10.83 16.9a3.75 3.75 0 0 0 .02-1.74l11.12-5.61a4.05 4.05 0 0 0 6.91-1.15 3.96 3.96 0 0 0-1.76-4.85 4.08 4.08 0 0 0-5.13.9 3.97 3.97 0 0 0-.88 3.29L9.93 13.36A4.05 4.05 0 0 0 2.86 16a3.97 3.97 0 0 0 2.61 3.74 4.09 4.09 0 0 0 4.46-1.09l11.2 5.65a3.97 3.97 0 0 0 2.42 4.38 4.08 4.08 0 0 0 4.4-.86A3.99 3.99 0 0 0 25.1 21Zm0-16a2.04 2.04 0 0 1 1.86 1.24 1.98 1.98 0 0 1-.44 2.18 2.03 2.03 0 0 1-3.45-1.41 2.03 2.03 0 0 1 2.02-2ZM6.9 18a2.04 2.04 0 0 1-1.87-1.23 1.98 1.98 0 0 1 .44-2.18A2.03 2.03 0 0 1 8.92 16a2.03 2.03 0 0 1-2.02 2Zm18.2 9a2.04 2.04 0 0 1-1.88-1.23 1.98 1.98 0 0 1 .44-2.18A2.03 2.03 0 0 1 27.11 25c0 .53-.2 1.04-.59 1.42-.38.37-.9.58-1.43.58Z","viewbox":"0 0 32 32"},{"name":"sorting","definition":"M27.6 20.6 24 24.2V8h-2v16.2l-3.6-3.6L17 22l6 6 6-6-1.4-1.4ZM9 4l-6 6 1.4 1.4L8 7.8V24h2V7.8l3.6 3.6L15 10 9 4Z","viewbox":"0 0 32 32"},{"name":"star","definition":"m30.07 13.39-.63-1.87-8.89-.87L17 2h-2l-3.55 8.65-8.89.87-.63 1.87 6.75 6.24-2 9.23L8.33 30 16 25.21 23.67 30l1.63-1.14-2-9.23 6.77-6.24Zm-13 10.13L16 22.85l-1.06.67-5.83 3.64 1.52-7.11.24-1.12-.87-.77-5.21-4.85 6.86-.67 1.2-.11.46-1.12L16 4.83l2.69 6.58.46 1.12 1.2.11 6.86.67L22 18.16l-.83.77.24 1.12 1.52 7.11-5.86-3.64Z","viewbox":"0 0 32 32"},{"name":"tick","definition":"m28 9-1.41-1.41L13 21.17 5.41 13.6 4 15l9 9L28 9Z","viewbox":"0 0 32 32"},{"name":"truck","definition":"M22 8H10v2h12V8ZM30 8h-4V6.52L23.7 2H8.3L6 6.52V8H2v2h4v20h5.2l1.03-2h7.55l1.02 2H26V10h4V8Zm-7.98 20L21 26H11l-1.02 2H8v-4h3l-1.02-2H8V7l1.53-3h12.94L24 7v15h-1.98L21 24h3v4h-1.98ZM23 16H9l4.08 8h5.84L23 16Zm-5.3 6h-3.4l-2.04-4h7.48l-2.04 4Z","viewbox":"0 0 32 32"},{"name":"warning","definition":"M27.68 23 18 4h-4L4.32 23l-.32.62V28h24v-4.38l-.32-.62ZM6 26v-1.9L15.22 6h1.56L26 24.1V26H6ZM17 11h-2v9h2v-9Zm0 11h-2v2h2v-2Z","viewbox":"0 0 32 32"},{"name":"placeholder","definition":"M2 4C2 2.89543 2.89543 2 4 2H6V4H4V6H2V4ZM14 4H10V2H14V4ZM22 4H18V2H22V4ZM28 4H26V2H28C29.1046 2 30 2.89543 30 4V6H28V4ZM4 10V14H2V10H4ZM28 14V10H30V14H28ZM4 18V22H2V18H4ZM28 22V18H30V22H28ZM4 26V28H6V30H4C2.89543 30 2 29.1046 2 28V26H4ZM28 28V26H30V28C30 29.1046 29.1046 30 28 30H26V28H28ZM10 28H14V30H10V28ZM18 28H22V30H18V28Z","viewbox":"0 0 32 32"}]';
|
|
3
|
+
export const iconsNames = [
|
|
4
|
+
'arrow_diagonal',
|
|
5
|
+
'arrow_down',
|
|
6
|
+
'arrow_left',
|
|
7
|
+
'arrow_right',
|
|
8
|
+
'arrow_up',
|
|
9
|
+
'bento',
|
|
10
|
+
'burger',
|
|
11
|
+
'calendar',
|
|
12
|
+
'chevron_down',
|
|
13
|
+
'chevron_left',
|
|
14
|
+
'chevron_right',
|
|
15
|
+
'chevron_up',
|
|
16
|
+
'cross',
|
|
17
|
+
'edit',
|
|
18
|
+
'error',
|
|
19
|
+
'info',
|
|
20
|
+
'minus',
|
|
21
|
+
'notification',
|
|
22
|
+
'placeholder',
|
|
23
|
+
'plus',
|
|
24
|
+
'print',
|
|
25
|
+
'refresh',
|
|
26
|
+
'search',
|
|
27
|
+
'share',
|
|
28
|
+
'sorting',
|
|
29
|
+
'star',
|
|
30
|
+
'tick',
|
|
31
|
+
'truck',
|
|
32
|
+
'warning',
|
|
33
|
+
];
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* Typography Usage mixins */
|
|
1
2
|
:host {
|
|
2
3
|
display: inline;
|
|
3
4
|
}
|
|
@@ -37,12 +38,15 @@
|
|
|
37
38
|
|
|
38
39
|
.disabled ::slotted(*),
|
|
39
40
|
.disabled ::slotted(*:visited) {
|
|
40
|
-
|
|
41
|
-
text-decoration-color: var(--tds-link-disabled);
|
|
41
|
+
opacity: var(--tds-link-opacity-disabled);
|
|
42
42
|
pointer-events: none;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.standalone ::slotted(*) {
|
|
46
|
-
font: var(--
|
|
47
|
-
|
|
46
|
+
font-family: var(--detail-02-font-family);
|
|
47
|
+
font-size: var(--detail-02-font-size);
|
|
48
|
+
line-height: var(--detail-02-line-height);
|
|
49
|
+
font-weight: var(--detail-02-font-weight);
|
|
50
|
+
letter-spacing: var(--detail-02-letter-spacing);
|
|
51
|
+
text-transform: var(--detail-02-text-transform);
|
|
48
52
|
}
|
|
@@ -176,9 +176,7 @@ body {
|
|
|
176
176
|
background-color: var(--background-elevation-layer-02);
|
|
177
177
|
z-index: 1;
|
|
178
178
|
}
|
|
179
|
-
|
|
180
|
-
.header,
|
|
181
|
-
slot[name=header]::slotted(*) {
|
|
179
|
+
.header .header-text {
|
|
182
180
|
font-family: var(--headline-05-font-family);
|
|
183
181
|
font-size: var(--headline-05-font-size);
|
|
184
182
|
line-height: var(--headline-05-line-height);
|
|
@@ -231,10 +229,7 @@ slot[name=header]::slotted(*) {
|
|
|
231
229
|
.tds-modal-backdrop {
|
|
232
230
|
box-sizing: border-box;
|
|
233
231
|
position: fixed;
|
|
234
|
-
|
|
235
|
-
right: 0;
|
|
236
|
-
bottom: 0;
|
|
237
|
-
left: 0;
|
|
232
|
+
inset: 0;
|
|
238
233
|
background-color: var(--tds-modal-backdrop-background);
|
|
239
234
|
pointer-events: auto;
|
|
240
235
|
}
|
|
@@ -301,10 +296,7 @@ button.tds-modal-close {
|
|
|
301
296
|
:host {
|
|
302
297
|
box-sizing: border-box;
|
|
303
298
|
position: fixed;
|
|
304
|
-
|
|
305
|
-
right: 0;
|
|
306
|
-
bottom: 0;
|
|
307
|
-
left: 0;
|
|
299
|
+
inset: 0;
|
|
308
300
|
padding: 0 16px;
|
|
309
301
|
z-index: 700;
|
|
310
302
|
pointer-events: none;
|
|
@@ -69,6 +69,8 @@ export class TdsModal {
|
|
|
69
69
|
referenceEl.addEventListener('click', this.handleReferenceElementClick);
|
|
70
70
|
}
|
|
71
71
|
};
|
|
72
|
+
this.headerId = `tds-modal-header-${generateUniqueId()}`;
|
|
73
|
+
this.bodyId = `tds-modal-body-${generateUniqueId()}`;
|
|
72
74
|
}
|
|
73
75
|
/** Shows the Modal. */
|
|
74
76
|
async showModal() {
|
|
@@ -96,7 +98,7 @@ export class TdsModal {
|
|
|
96
98
|
this.returnFocusOnClose();
|
|
97
99
|
}
|
|
98
100
|
}
|
|
99
|
-
|
|
101
|
+
initializeWithProps() {
|
|
100
102
|
if (this.closable === undefined) {
|
|
101
103
|
this.closable = true;
|
|
102
104
|
}
|
|
@@ -111,8 +113,11 @@ export class TdsModal {
|
|
|
111
113
|
console.warn('Tegel Modal: Missing focus origin. Please provide either a "referenceEl" or a "selector" to ensure focus returns to the element that opened the modal. If the modal is opened programmatically, this message can be ignored.');
|
|
112
114
|
}
|
|
113
115
|
}
|
|
116
|
+
connectedCallback() {
|
|
117
|
+
this.initializeWithProps();
|
|
118
|
+
}
|
|
114
119
|
componentWillLoad() {
|
|
115
|
-
this.
|
|
120
|
+
this.initializeWithProps();
|
|
116
121
|
}
|
|
117
122
|
disconnectedCallback() {
|
|
118
123
|
this.cleanupModal();
|
|
@@ -248,12 +253,11 @@ export class TdsModal {
|
|
|
248
253
|
render() {
|
|
249
254
|
const usesHeaderSlot = hasSlot('header', this.host);
|
|
250
255
|
const usesActionsSlot = hasSlot('actions', this.host);
|
|
251
|
-
const
|
|
252
|
-
|
|
253
|
-
return (h(Host, { key: '47c0d4fe04b057ad1f1295336bad71e541b052ac', role: this.tdsAlertDialog, "aria-modal": "true", "aria-describedby": bodyId, "aria-labelledby": headerId, class: {
|
|
256
|
+
const hasLabel = this.header || usesHeaderSlot;
|
|
257
|
+
return (h(Host, { key: '9b6d05e3f91850245f4e5de015286ccf46acdbd4', class: {
|
|
254
258
|
show: this.isShown,
|
|
255
259
|
hide: !this.isShown,
|
|
256
|
-
}, onClick: (event) => this.handleOverlayClick(event) }, h("div", { key: '
|
|
260
|
+
}, onClick: (event) => this.handleOverlayClick(event) }, h("div", { key: '628a621eb1563bdf719680119c92e84719d2d057', class: "tds-modal-backdrop" }), h("div", { key: '1835e48a649635b855c65a4238c2cb8adc496630', role: this.tdsAlertDialog, "aria-modal": "true", "aria-describedby": this.bodyId, "aria-labelledby": hasLabel ? this.headerId : undefined, class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}`, tabindex: "-1" }, h("div", { key: '49a81905f9fadefaf5407bb9c0b47eb1acdab3df', class: "header" }, this.header && (h("h1", { key: '2d61b4ab70694e4d43d7a7173345b8d65b932670', id: this.headerId, class: "header-text" }, this.header)), usesHeaderSlot && h("slot", { key: '655a49d64666a2ad7662d246f5062addf682decd', name: "header" }), this.closable && (h("button", { key: '4b694826ac8513d7ea62ff1c555092e6162b71b9', class: "tds-modal-close", "aria-label": "close", onClick: (event) => this.handleClose(event) }, h("tds-icon", { key: '02e7f0dbaa91e9dc0b4c73155bfc0c29f7510a36', name: "cross", size: "20px" })))), h("div", { key: 'ec6300db10150ccc29728501d6c435d1b13dcb83', id: this.bodyId, class: "body" }, h("slot", { key: 'b472e9edcc14a9900a614c4366d85fe7f05c5864', name: "body" })), usesActionsSlot && h("slot", { key: '8f6742f6084b93c1c44b310158340eddad3744fb', name: "actions" }))));
|
|
257
261
|
}
|
|
258
262
|
static get is() { return "tds-modal"; }
|
|
259
263
|
static get encapsulation() { return "shadow"; }
|
|
@@ -401,7 +405,7 @@ export class TdsModal {
|
|
|
401
405
|
"optional": true,
|
|
402
406
|
"docs": {
|
|
403
407
|
"tags": [],
|
|
404
|
-
"text": "Controls whether the Modal is shown or not.
|
|
408
|
+
"text": "Controls whether the Modal is shown or not. <br/> This prop allows the consumer of Tegel to control\nthe open/close interaction or set the modal visibility when opening the page. If it is not set, then\nthe modal has a fallback state for that interaction, defaulting to false."
|
|
405
409
|
},
|
|
406
410
|
"getter": false,
|
|
407
411
|
"setter": false,
|