@scania/tegel 1.40.0-ts-strict-mode-beta.0 → 1.41.0-angular-patch-types-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-CxAGLnpY.js +2414 -0
- package/dist/cjs/{inheritAriaAttributes-dedbbc57.js → inheritAriaAttributes-D_xFGssc.js} +1 -1
- package/dist/cjs/{isHeadingElement-4f06b688.js → isHeadingElement-DihKNeqS.js} +1 -1
- package/dist/cjs/loader.cjs.js +3 -6
- package/dist/cjs/tds-accordion-item.cjs.entry.js +9 -6
- package/dist/cjs/tds-accordion.cjs.entry.js +6 -7
- package/dist/cjs/tds-badge.cjs.entry.js +6 -5
- package/dist/cjs/tds-banner.cjs.entry.js +18 -14
- package/dist/cjs/tds-block.cjs.entry.js +5 -6
- package/dist/cjs/tds-body-cell.cjs.entry.js +6 -13
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +3 -5
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +2 -6
- package/dist/cjs/tds-button_2.cjs.entry.js +18 -19
- package/dist/cjs/tds-card.cjs.entry.js +30 -21
- package/dist/cjs/tds-checkbox.cjs.entry.js +16 -21
- package/dist/cjs/tds-chip.cjs.entry.js +18 -15
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +12 -17
- package/dist/cjs/tds-datetime.cjs.entry.js +32 -31
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +73 -92
- package/dist/cjs/tds-folder-tab.cjs.entry.js +3 -6
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +16 -23
- package/dist/cjs/tds-footer-group.cjs.entry.js +10 -16
- package/dist/cjs/tds-footer-item.cjs.entry.js +4 -11
- package/dist/cjs/tds-footer.cjs.entry.js +7 -9
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +4 -7
- package/dist/cjs/tds-header-cell.cjs.entry.js +23 -32
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +4 -5
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +2 -9
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +8 -13
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +13 -19
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +4 -8
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +6 -8
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +2 -5
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +3 -6
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +4 -8
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +2 -5
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +3 -6
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +2 -4
- package/dist/cjs/tds-header-launcher.cjs.entry.js +10 -19
- package/dist/cjs/tds-header-title.cjs.entry.js +2 -5
- package/dist/cjs/tds-header.cjs.entry.js +10 -15
- package/dist/cjs/tds-icon.cjs.entry.js +12 -13
- package/dist/cjs/tds-inline-tab.cjs.entry.js +3 -5
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +17 -23
- package/dist/cjs/tds-link.cjs.entry.js +5 -5
- package/dist/cjs/tds-message.cjs.entry.js +16 -16
- package/dist/cjs/tds-modal.cjs.entry.js +23 -24
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +3 -5
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +19 -25
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +19 -13
- package/dist/cjs/tds-popover-core.cjs.entry.js +47 -45
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +3 -5
- package/dist/cjs/tds-popover-menu.cjs.entry.js +18 -13
- package/dist/cjs/tds-radio-button.cjs.entry.js +12 -18
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +4 -7
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +7 -11
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +12 -18
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +5 -8
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +9 -12
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +15 -21
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +2 -5
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +3 -11
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +2 -9
- package/dist/cjs/tds-side-menu.cjs.entry.js +24 -24
- package/dist/cjs/tds-slider.cjs.entry.js +55 -50
- package/dist/cjs/tds-spinner.cjs.entry.js +4 -5
- package/dist/cjs/tds-step.cjs.entry.js +4 -14
- package/dist/cjs/tds-stepper.cjs.entry.js +13 -6
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +4 -6
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +21 -24
- package/dist/cjs/tds-table-body-row.cjs.entry.js +10 -13
- package/dist/cjs/tds-table-body.cjs.entry.js +12 -20
- package/dist/cjs/tds-table-footer.cjs.entry.js +28 -31
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +4 -6
- package/dist/cjs/tds-table-header.cjs.entry.js +23 -30
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +9 -11
- package/dist/cjs/tds-table.cjs.entry.js +33 -21
- package/dist/cjs/tds-tag.cjs.entry.js +5 -7
- package/dist/cjs/tds-text-field.cjs.entry.js +28 -20
- package/dist/cjs/tds-textarea.cjs.entry.js +20 -18
- package/dist/cjs/tds-toast.cjs.entry.js +16 -16
- package/dist/cjs/tds-toggle.cjs.entry.js +17 -19
- package/dist/cjs/tds-tooltip.cjs.entry.js +29 -23
- package/dist/cjs/tegel.cjs.js +7 -8
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +24 -6
- package/dist/collection/components/accordion/accordion.js +12 -6
- package/dist/collection/components/badge/badge.js +16 -4
- package/dist/collection/components/banner/banner.js +39 -18
- package/dist/collection/components/block/block.js +11 -5
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +4 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +4 -5
- package/dist/collection/components/button/button.js +51 -28
- package/dist/collection/components/card/card.js +68 -32
- package/dist/collection/components/checkbox/checkbox.js +45 -29
- package/dist/collection/components/chip/chip.js +42 -20
- package/dist/collection/components/datetime/datetime.js +83 -47
- package/dist/collection/components/divider/divider.js +8 -2
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +22 -21
- package/dist/collection/components/dropdown/dropdown.css +3 -1
- package/dist/collection/components/dropdown/dropdown.js +139 -94
- package/dist/collection/components/footer/footer-group/footer-group.js +15 -14
- package/dist/collection/components/footer/footer-item/footer-item.js +2 -6
- package/dist/collection/components/footer/footer.js +9 -6
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +2 -2
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +24 -19
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +7 -7
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +8 -2
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +16 -14
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +4 -5
- package/dist/collection/components/header/header-item/header-item.js +14 -11
- package/dist/collection/components/header/header-launcher/header-launcher.js +9 -13
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +9 -4
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +0 -3
- package/dist/collection/components/header/header.js +6 -8
- package/dist/collection/components/icon/icon.js +30 -18
- package/dist/collection/components/link/link.js +12 -3
- package/dist/collection/components/message/message.css +2 -1
- package/dist/collection/components/message/message.js +37 -20
- package/dist/collection/components/modal/modal.css +54 -10
- package/dist/collection/components/modal/modal.js +51 -31
- package/dist/collection/components/popover-canvas/popover-canvas.js +54 -23
- package/dist/collection/components/popover-core/popover-core.js +83 -49
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +4 -1
- package/dist/collection/components/popover-menu/popover-menu.js +51 -23
- package/dist/collection/components/radio-button/radio-button.js +37 -24
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +5 -6
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +20 -12
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +3 -3
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +13 -14
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +18 -17
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +16 -14
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +8 -8
- package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +8 -8
- package/dist/collection/components/side-menu/side-menu.js +31 -22
- package/dist/collection/components/slider/slider.js +106 -62
- package/dist/collection/components/spinner/spinner.js +8 -2
- package/dist/collection/components/stepper/step/step.js +13 -14
- package/dist/collection/components/stepper/stepper.js +28 -6
- package/dist/collection/components/table/table/table.js +67 -48
- package/dist/collection/components/table/table-body/table-body.js +10 -15
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +22 -18
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +5 -2
- package/dist/collection/components/table/table-body-row/table-body-row.js +22 -16
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +43 -31
- package/dist/collection/components/table/table-footer/table-footer.js +48 -36
- package/dist/collection/components/table/table-header/table-header.js +37 -33
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +57 -49
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +8 -3
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +18 -11
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +4 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +32 -26
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +4 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +34 -25
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +4 -1
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +36 -27
- package/dist/collection/components/tag/tag.js +12 -5
- package/dist/collection/components/text-field/text-field.js +93 -40
- package/dist/collection/components/textarea/textarea.js +74 -35
- package/dist/collection/components/toast/toast.js +42 -21
- package/dist/collection/components/toggle/toggle.js +41 -24
- package/dist/collection/components/tooltip/tooltip.js +64 -33
- package/dist/collection/utils/appendHiddenInput.js +4 -6
- package/dist/components/index.js +1825 -1
- package/dist/components/{p-415fafb3.js → p-B569z5eW.js} +25 -15
- package/dist/components/{p-ead6727f.js → p-BHBgkUfr.js} +17 -17
- package/dist/components/{p-e1622f4a.js → p-BhLq7lgx.js} +7 -6
- package/dist/components/{p-7e02ea3e.js → p-BhQM9_yR.js} +68 -77
- package/dist/components/{p-e0ccf8e6.js → p-BxmFjTxG.js} +20 -22
- package/dist/components/{p-3f2187a4.js → p-CMsPXG7a.js} +7 -8
- package/dist/components/{p-edc838a0.js → p-CPDv0bBc.js} +17 -14
- package/dist/components/{p-e627f11b.js → p-Ca3wGDna.js} +21 -22
- package/dist/components/{p-799470b1.js → p-ChCWm6If.js} +20 -18
- package/dist/components/{p-859e3ebf.js → p-CuIyaNyT.js} +1 -1
- package/dist/components/{p-0d286c19.js → p-D1ati-pM.js} +13 -11
- package/dist/components/{p-ad376f70.js → p-DnzQe_HU.js} +35 -25
- package/dist/components/{p-bff614d5.js → p-DuxH3vDC.js} +7 -8
- package/dist/components/{p-381677ec.js → p-FqP1yGh_.js} +9 -6
- package/dist/components/{p-de86852a.js → p-HRj1DOvh.js} +9 -6
- package/dist/components/{p-a64cbc40.js → p-Ip9G3co9.js} +36 -24
- package/dist/components/{p-0bd4c19c.js → p-Q3W78DlP.js} +1 -1
- package/dist/components/{p-da11a695.js → p-QnvG_QPu.js} +12 -13
- package/dist/components/{p-98d082f9.js → p-SqXsUd-b.js} +21 -25
- package/dist/components/{p-6fd2b339.js → p-X1sPx4t5.js} +52 -46
- package/dist/components/tds-accordion-item.js +15 -8
- package/dist/components/tds-accordion.js +11 -8
- package/dist/components/tds-badge.js +11 -6
- package/dist/components/tds-banner.js +24 -16
- package/dist/components/tds-block.js +10 -7
- package/dist/components/tds-body-cell.js +12 -15
- package/dist/components/tds-breadcrumb.js +8 -6
- package/dist/components/tds-breadcrumbs.js +7 -7
- package/dist/components/tds-button.js +1 -1
- package/dist/components/tds-card.js +38 -25
- package/dist/components/tds-checkbox.js +1 -1
- package/dist/components/tds-chip.js +23 -16
- package/dist/components/tds-core-header-item.js +1 -1
- package/dist/components/tds-datetime.js +38 -33
- package/dist/components/tds-divider.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-tab.js +8 -7
- package/dist/components/tds-folder-tabs.js +22 -25
- package/dist/components/tds-footer-group.js +16 -18
- package/dist/components/tds-footer-item.js +9 -12
- package/dist/components/tds-footer.js +12 -10
- package/dist/components/tds-header-brand-symbol.js +11 -10
- package/dist/components/tds-header-cell.js +29 -34
- package/dist/components/tds-header-dropdown-list-item.js +1 -1
- package/dist/components/tds-header-dropdown-list-user.js +7 -10
- package/dist/components/tds-header-dropdown-list.js +1 -1
- package/dist/components/tds-header-dropdown.js +23 -25
- package/dist/components/tds-header-hamburger.js +11 -11
- package/dist/components/tds-header-item.js +1 -1
- package/dist/components/tds-header-launcher-button.js +1 -1
- package/dist/components/tds-header-launcher-grid-item.js +7 -6
- package/dist/components/tds-header-launcher-grid-title.js +8 -7
- package/dist/components/tds-header-launcher-grid.js +8 -8
- package/dist/components/tds-header-launcher-list-item.js +8 -7
- package/dist/components/tds-header-launcher-list-title.js +8 -7
- package/dist/components/tds-header-launcher-list.js +8 -6
- package/dist/components/tds-header-launcher.js +20 -25
- package/dist/components/tds-header-title.js +7 -6
- package/dist/components/tds-header.js +14 -15
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tab.js +8 -6
- package/dist/components/tds-inline-tabs.js +23 -25
- package/dist/components/tds-link.js +10 -6
- package/dist/components/tds-message.js +22 -18
- package/dist/components/tds-modal.js +29 -26
- package/dist/components/tds-navigation-tab.js +8 -6
- package/dist/components/tds-navigation-tabs.js +25 -27
- package/dist/components/tds-popover-canvas.js +1 -1
- package/dist/components/tds-popover-core.js +1 -1
- package/dist/components/tds-popover-menu-item.js +8 -6
- package/dist/components/tds-popover-menu.js +24 -15
- package/dist/components/tds-radio-button.js +17 -19
- package/dist/components/tds-side-menu-close-button.js +9 -8
- package/dist/components/tds-side-menu-collapse-button.js +13 -13
- package/dist/components/tds-side-menu-dropdown-list-item.js +17 -19
- package/dist/components/tds-side-menu-dropdown-list.js +10 -9
- package/dist/components/tds-side-menu-dropdown.js +16 -15
- package/dist/components/tds-side-menu-item.js +1 -1
- package/dist/components/tds-side-menu-overlay.js +7 -6
- package/dist/components/tds-side-menu-user-image.js +1 -1
- package/dist/components/tds-side-menu-user-label.js +1 -1
- package/dist/components/tds-side-menu-user.js +9 -12
- package/dist/components/tds-side-menu.js +29 -25
- package/dist/components/tds-slider.js +64 -55
- package/dist/components/tds-spinner.js +9 -6
- package/dist/components/tds-step.js +10 -16
- package/dist/components/tds-stepper.js +18 -7
- package/dist/components/tds-table-body-input-wrapper.js +10 -8
- package/dist/components/tds-table-body-row-expandable.js +26 -25
- package/dist/components/tds-table-body-row.js +16 -15
- package/dist/components/tds-table-body.js +17 -21
- package/dist/components/tds-table-footer.js +37 -36
- package/dist/components/tds-table-header-input-wrapper.js +10 -8
- package/dist/components/tds-table-header.js +29 -32
- package/dist/components/tds-table-toolbar.js +15 -13
- package/dist/components/tds-table.js +38 -22
- package/dist/components/tds-tag.js +10 -8
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-textarea.js +28 -22
- package/dist/components/tds-toast.js +22 -18
- package/dist/components/tds-toggle.js +22 -20
- package/dist/components/tds-tooltip.js +1 -1
- package/dist/esm/index-BqRtRha-.js +2385 -0
- package/dist/esm/{inheritAriaAttributes-04f2f252.js → inheritAriaAttributes-DyLhgCIg.js} +1 -1
- package/dist/esm/{isHeadingElement-8efea284.js → isHeadingElement-BQco7VNg.js} +1 -1
- package/dist/esm/loader.js +3 -4
- package/dist/esm/tds-accordion-item.entry.js +9 -4
- package/dist/esm/tds-accordion.entry.js +6 -5
- package/dist/esm/tds-badge.entry.js +6 -3
- package/dist/esm/tds-banner.entry.js +18 -12
- package/dist/esm/tds-block.entry.js +5 -4
- package/dist/esm/tds-body-cell.entry.js +6 -11
- package/dist/esm/tds-breadcrumb.entry.js +3 -3
- package/dist/esm/tds-breadcrumbs.entry.js +2 -4
- package/dist/esm/tds-button_2.entry.js +18 -17
- package/dist/esm/tds-card.entry.js +30 -19
- package/dist/esm/tds-checkbox.entry.js +16 -19
- package/dist/esm/tds-chip.entry.js +18 -13
- package/dist/esm/tds-core-header-item_2.entry.js +12 -15
- package/dist/esm/tds-datetime.entry.js +32 -29
- package/dist/esm/tds-dropdown_2.entry.js +73 -90
- package/dist/esm/tds-folder-tab.entry.js +3 -4
- package/dist/esm/tds-folder-tabs.entry.js +16 -21
- package/dist/esm/tds-footer-group.entry.js +10 -14
- package/dist/esm/tds-footer-item.entry.js +4 -9
- package/dist/esm/tds-footer.entry.js +7 -7
- package/dist/esm/tds-header-brand-symbol.entry.js +4 -5
- package/dist/esm/tds-header-cell.entry.js +23 -30
- package/dist/esm/tds-header-dropdown-list-item.entry.js +4 -3
- package/dist/esm/tds-header-dropdown-list-user.entry.js +2 -7
- package/dist/esm/tds-header-dropdown-list.entry.js +8 -11
- package/dist/esm/tds-header-dropdown.entry.js +13 -17
- package/dist/esm/tds-header-hamburger.entry.js +4 -6
- package/dist/esm/tds-header-launcher-button.entry.js +6 -6
- package/dist/esm/tds-header-launcher-grid-item.entry.js +2 -3
- package/dist/esm/tds-header-launcher-grid-title.entry.js +3 -4
- package/dist/esm/tds-header-launcher-grid.entry.js +4 -6
- package/dist/esm/tds-header-launcher-list-item.entry.js +2 -3
- package/dist/esm/tds-header-launcher-list-title.entry.js +3 -4
- package/dist/esm/tds-header-launcher-list.entry.js +2 -2
- package/dist/esm/tds-header-launcher.entry.js +10 -17
- package/dist/esm/tds-header-title.entry.js +2 -3
- package/dist/esm/tds-header.entry.js +10 -13
- package/dist/esm/tds-icon.entry.js +12 -11
- package/dist/esm/tds-inline-tab.entry.js +3 -3
- package/dist/esm/tds-inline-tabs.entry.js +17 -21
- package/dist/esm/tds-link.entry.js +5 -3
- package/dist/esm/tds-message.entry.js +16 -14
- package/dist/esm/tds-modal.entry.js +23 -22
- package/dist/esm/tds-navigation-tab.entry.js +3 -3
- package/dist/esm/tds-navigation-tabs.entry.js +19 -23
- package/dist/esm/tds-popover-canvas.entry.js +19 -11
- package/dist/esm/tds-popover-core.entry.js +47 -43
- package/dist/esm/tds-popover-menu-item.entry.js +3 -3
- package/dist/esm/tds-popover-menu.entry.js +18 -11
- package/dist/esm/tds-radio-button.entry.js +12 -16
- package/dist/esm/tds-side-menu-close-button.entry.js +4 -5
- package/dist/esm/tds-side-menu-collapse-button.entry.js +7 -9
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +12 -16
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +5 -6
- package/dist/esm/tds-side-menu-dropdown.entry.js +9 -10
- package/dist/esm/tds-side-menu-item.entry.js +15 -19
- package/dist/esm/tds-side-menu-overlay.entry.js +2 -3
- package/dist/esm/tds-side-menu-user-image_2.entry.js +3 -9
- package/dist/esm/tds-side-menu-user.entry.js +2 -7
- package/dist/esm/tds-side-menu.entry.js +24 -22
- package/dist/esm/tds-slider.entry.js +55 -48
- package/dist/esm/tds-spinner.entry.js +4 -3
- package/dist/esm/tds-step.entry.js +4 -12
- package/dist/esm/tds-stepper.entry.js +13 -4
- package/dist/esm/tds-table-body-input-wrapper.entry.js +4 -4
- package/dist/esm/tds-table-body-row-expandable.entry.js +21 -22
- package/dist/esm/tds-table-body-row.entry.js +10 -11
- package/dist/esm/tds-table-body.entry.js +12 -18
- package/dist/esm/tds-table-footer.entry.js +28 -29
- package/dist/esm/tds-table-header-input-wrapper.entry.js +4 -4
- package/dist/esm/tds-table-header.entry.js +23 -28
- package/dist/esm/tds-table-toolbar.entry.js +9 -9
- package/dist/esm/tds-table.entry.js +33 -19
- package/dist/esm/tds-tag.entry.js +5 -5
- package/dist/esm/tds-text-field.entry.js +28 -18
- package/dist/esm/tds-textarea.entry.js +20 -16
- package/dist/esm/tds-toast.entry.js +16 -14
- package/dist/esm/tds-toggle.entry.js +17 -17
- package/dist/esm/tds-tooltip.entry.js +29 -21
- package/dist/esm/tegel.js +5 -5
- package/dist/tegel/p-03ff8648.entry.js +1 -0
- package/dist/tegel/p-08ef673e.entry.js +1 -0
- package/dist/tegel/{p-646d1df4.entry.js → p-0ac95ef0.entry.js} +1 -1
- package/dist/tegel/p-11159349.entry.js +1 -0
- package/dist/tegel/{p-87219f00.entry.js → p-15c69748.entry.js} +1 -1
- package/dist/tegel/p-192332e7.entry.js +1 -0
- package/dist/tegel/{p-da38aa9a.entry.js → p-1f255f25.entry.js} +1 -1
- package/dist/tegel/p-206d4703.entry.js +1 -0
- package/dist/tegel/{p-b734b309.entry.js → p-20b5c366.entry.js} +1 -1
- package/dist/tegel/p-26907beb.entry.js +1 -0
- package/dist/tegel/{p-2faeb483.entry.js → p-299e0e56.entry.js} +1 -1
- package/dist/tegel/p-2a1342d8.entry.js +1 -0
- package/dist/tegel/p-312c49f8.entry.js +1 -0
- package/dist/tegel/p-342052b9.entry.js +1 -0
- package/dist/tegel/p-3557fbdf.entry.js +1 -0
- package/dist/tegel/p-3806a0e4.entry.js +1 -0
- package/dist/tegel/{p-771f53c2.entry.js → p-3a5588b2.entry.js} +1 -1
- package/dist/tegel/p-3ba30c59.entry.js +1 -0
- package/dist/tegel/p-3bd99720.entry.js +1 -0
- package/dist/tegel/p-3de8e52b.entry.js +1 -0
- package/dist/tegel/p-41084e54.entry.js +1 -0
- package/dist/tegel/p-41242d2e.entry.js +1 -0
- package/dist/tegel/p-43f6c149.entry.js +1 -0
- package/dist/tegel/p-4489b7d5.entry.js +1 -0
- package/dist/tegel/p-4e58b98d.entry.js +1 -0
- package/dist/tegel/p-503abc18.entry.js +1 -0
- package/dist/tegel/{p-4b5e15cc.entry.js → p-5bea354f.entry.js} +1 -1
- package/dist/tegel/p-5eed2dae.entry.js +1 -0
- package/dist/tegel/p-6253f1d8.entry.js +1 -0
- package/dist/tegel/p-6301a8b5.entry.js +1 -0
- package/dist/tegel/{p-c163d44f.entry.js → p-648df3a1.entry.js} +1 -1
- package/dist/tegel/p-65d43cfd.entry.js +1 -0
- package/dist/tegel/p-6d4e71fd.entry.js +1 -0
- package/dist/tegel/p-73c9a5b3.entry.js +1 -0
- package/dist/tegel/{p-ceed0476.entry.js → p-7cec9df0.entry.js} +1 -1
- package/dist/tegel/p-7ef6db3c.entry.js +1 -0
- package/dist/tegel/p-81314f19.entry.js +1 -0
- package/dist/tegel/p-88d3bbbd.entry.js +1 -0
- package/dist/tegel/p-8a5df42a.entry.js +1 -0
- package/dist/tegel/p-8f1bbe70.entry.js +1 -0
- package/dist/tegel/p-9296f0d1.entry.js +1 -0
- package/dist/tegel/p-954e6cf0.entry.js +1 -0
- package/dist/tegel/{p-655051b6.entry.js → p-996f0ac5.entry.js} +1 -1
- package/dist/tegel/p-9fed9d16.entry.js +1 -0
- package/dist/tegel/p-BqRtRha-.js +2 -0
- package/dist/tegel/{p-9332c225.js → p-Bx66i7RU.js} +1 -1
- package/dist/tegel/{p-0bd4c19c.js → p-Q3W78DlP.js} +1 -1
- package/dist/tegel/p-a13ecd87.entry.js +1 -0
- package/dist/tegel/{p-3c348fcb.entry.js → p-a74d375a.entry.js} +1 -1
- package/dist/tegel/p-a8d29ac5.entry.js +1 -0
- package/dist/tegel/p-abe630f5.entry.js +1 -0
- package/dist/tegel/p-b2934101.entry.js +1 -0
- package/dist/tegel/p-b2d9244a.entry.js +1 -0
- package/dist/tegel/{p-2766b46f.entry.js → p-b5deab8e.entry.js} +1 -1
- package/dist/tegel/p-b901a7e3.entry.js +1 -0
- package/dist/tegel/{p-133351b5.entry.js → p-b9cb2eef.entry.js} +1 -1
- package/dist/tegel/p-bbcab377.entry.js +1 -0
- package/dist/tegel/{p-c2e514b4.entry.js → p-bc4d68b0.entry.js} +1 -1
- package/dist/tegel/p-c2ae97bb.entry.js +1 -0
- package/dist/tegel/{p-88bb1059.entry.js → p-c7c4f528.entry.js} +1 -1
- package/dist/tegel/p-ca437b9a.entry.js +1 -0
- package/dist/tegel/{p-c5694dd6.entry.js → p-d03f33c0.entry.js} +1 -1
- package/dist/tegel/p-d0c0c8f3.entry.js +1 -0
- package/dist/tegel/p-d1f9c4fd.entry.js +1 -0
- package/dist/tegel/p-d2b7c692.entry.js +1 -0
- package/dist/tegel/{p-27369d6a.entry.js → p-d659aefa.entry.js} +1 -1
- package/dist/tegel/p-d67ff384.entry.js +1 -0
- package/dist/tegel/p-d8a35537.entry.js +1 -0
- package/dist/tegel/{p-fe4335ca.entry.js → p-de9f2a0d.entry.js} +1 -1
- package/dist/tegel/p-dec2ede0.entry.js +1 -0
- package/dist/tegel/p-e1daba90.entry.js +1 -0
- package/dist/tegel/p-e5166678.entry.js +1 -0
- package/dist/tegel/p-e643c9b3.entry.js +1 -0
- package/dist/tegel/{p-8a4837ae.entry.js → p-e777d558.entry.js} +1 -1
- package/dist/tegel/p-f0c912af.entry.js +1 -0
- package/dist/tegel/p-f3da2bf5.entry.js +1 -0
- package/dist/tegel/p-f46be246.entry.js +1 -0
- package/dist/tegel/p-f5a7d350.entry.js +1 -0
- package/dist/tegel/p-fa19eac0.entry.js +1 -0
- package/dist/tegel/p-fa8a4f27.entry.js +1 -0
- package/dist/tegel/{p-b9afb39e.entry.js → p-fb59d675.entry.js} +1 -1
- package/dist/tegel/p-ff6da1f1.entry.js +1 -0
- package/dist/tegel/tegel.css +3 -3
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/accordion/accordion.d.ts +1 -1
- package/dist/types/components/block/block.d.ts +1 -1
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/card/card.d.ts +1 -1
- package/dist/types/components/datetime/datetime.d.ts +2 -2
- package/dist/types/components/dropdown/dropdown.d.ts +9 -5
- package/dist/types/components/footer/footer.d.ts +1 -1
- package/dist/types/components/icon/icon.d.ts +1 -1
- package/dist/types/components/message/message.d.ts +1 -1
- package/dist/types/components/modal/modal.d.ts +1 -1
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +2 -2
- package/dist/types/components/popover-core/popover-core.d.ts +4 -4
- package/dist/types/components/popover-menu/popover-menu.d.ts +2 -2
- package/dist/types/components/slider/slider-stories-setup.d.ts +2 -2
- package/dist/types/components/table/table/table.d.ts +3 -6
- package/dist/types/components/table/table-body/table-body.d.ts +3 -3
- package/dist/types/components/table/table-body-cell/table-body-cell.d.ts +5 -8
- package/dist/types/components/table/table-body-input-wrapper/table-body-input-wrapper.d.ts +1 -1
- package/dist/types/components/table/table-body-row/table-body-row.d.ts +5 -5
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +7 -7
- package/dist/types/components/table/table-footer/table-footer.d.ts +4 -4
- package/dist/types/components/table/table-header/table-header.d.ts +5 -5
- package/dist/types/components/table/table-header-cell/table-header-cell.d.ts +8 -8
- package/dist/types/components/table/table-header-input-wrapper/table-header-input-wrapper.d.ts +1 -1
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +4 -4
- package/dist/types/components/tabs/folder-tabs/folder-tabs.d.ts +1 -1
- package/dist/types/components/text-field/text-field.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +2 -2
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +628 -81
- package/dist/types/stencil-public-runtime.d.ts +86 -4
- package/dist/types/types/Attributes.d.ts +1 -1
- package/dist/types/utils/findNextFocusableElement.d.ts +1 -1
- package/dist/types/utils/findPreviousFocusableElement.d.ts +1 -1
- package/dist/types/utils/getNextNestedChildOfSiblingsMatching.d.ts +1 -1
- package/dist/types/utils/getPreviousNestedChildOfSiblingsMatching.d.ts +1 -1
- package/package.json +2 -2
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/index-ca8040ad.js +0 -2039
- package/dist/components/p-28ef5186.js +0 -1507
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/index-51d04e39.js +0 -2009
- package/dist/tegel/p-08c16b2f.entry.js +0 -1
- package/dist/tegel/p-0b37e91a.entry.js +0 -1
- package/dist/tegel/p-177386d5.entry.js +0 -1
- package/dist/tegel/p-1b471db7.entry.js +0 -1
- package/dist/tegel/p-1e1a87c1.entry.js +0 -1
- package/dist/tegel/p-2049fab2.js +0 -2
- package/dist/tegel/p-2268af7f.entry.js +0 -1
- package/dist/tegel/p-252a7d3f.entry.js +0 -1
- package/dist/tegel/p-25473962.entry.js +0 -1
- package/dist/tegel/p-27d39882.entry.js +0 -1
- package/dist/tegel/p-304f5a5c.entry.js +0 -1
- package/dist/tegel/p-3ef04672.entry.js +0 -1
- package/dist/tegel/p-40d99d7d.entry.js +0 -1
- package/dist/tegel/p-40fa0f5b.entry.js +0 -1
- package/dist/tegel/p-48a3e489.entry.js +0 -1
- package/dist/tegel/p-4de2807c.entry.js +0 -1
- package/dist/tegel/p-4e15f31d.entry.js +0 -1
- package/dist/tegel/p-57c08d0d.entry.js +0 -1
- package/dist/tegel/p-58ac68f3.entry.js +0 -1
- package/dist/tegel/p-5c8fd75e.entry.js +0 -1
- package/dist/tegel/p-6a472310.entry.js +0 -1
- package/dist/tegel/p-7104b955.entry.js +0 -1
- package/dist/tegel/p-781b2939.entry.js +0 -1
- package/dist/tegel/p-894e7e11.entry.js +0 -1
- package/dist/tegel/p-942f8c6f.entry.js +0 -1
- package/dist/tegel/p-98eff725.entry.js +0 -1
- package/dist/tegel/p-9b06bd5f.entry.js +0 -1
- package/dist/tegel/p-9c56b031.entry.js +0 -1
- package/dist/tegel/p-a20a54ef.entry.js +0 -1
- package/dist/tegel/p-a2b2092a.entry.js +0 -1
- package/dist/tegel/p-a334b517.entry.js +0 -1
- package/dist/tegel/p-a4e4c450.entry.js +0 -1
- package/dist/tegel/p-a60ed3de.entry.js +0 -1
- package/dist/tegel/p-a6dca188.entry.js +0 -1
- package/dist/tegel/p-a912035b.entry.js +0 -1
- package/dist/tegel/p-ab00e6e4.entry.js +0 -1
- package/dist/tegel/p-b218db70.entry.js +0 -1
- package/dist/tegel/p-b3b13975.entry.js +0 -1
- package/dist/tegel/p-b7abb81f.entry.js +0 -1
- package/dist/tegel/p-bb8c2a36.entry.js +0 -1
- package/dist/tegel/p-bcd5e06d.entry.js +0 -1
- package/dist/tegel/p-bee9e9d1.entry.js +0 -1
- package/dist/tegel/p-c23a3f12.entry.js +0 -1
- package/dist/tegel/p-ca068263.entry.js +0 -1
- package/dist/tegel/p-ca16f1ed.entry.js +0 -1
- package/dist/tegel/p-ca32a270.entry.js +0 -1
- package/dist/tegel/p-cc962b6c.entry.js +0 -1
- package/dist/tegel/p-d501a665.entry.js +0 -1
- package/dist/tegel/p-dda1ac69.entry.js +0 -1
- package/dist/tegel/p-e0dc09f9.entry.js +0 -1
- package/dist/tegel/p-e1255160.js +0 -1
- package/dist/tegel/p-e29fa563.entry.js +0 -1
- package/dist/tegel/p-e6e9d11f.entry.js +0 -1
- package/dist/tegel/p-e8b58680.entry.js +0 -1
- package/dist/tegel/p-ed66ef30.entry.js +0 -1
- package/dist/tegel/p-f5ca4fbf.entry.js +0 -1
- package/dist/tegel/p-f602b3a1.entry.js +0 -1
- package/dist/tegel/p-f8a37d39.entry.js +0 -1
- package/dist/tegel/p-f922308f.entry.js +0 -1
- package/dist/tegel/p-fb300776.entry.js +0 -1
- package/dist/tegel/p-fd22d1ca.entry.js +0 -1
- package/loader/package.json +0 -11
- /package/dist/cjs/{dfs-84f7f63e.js → dfs-Clg9RCmq.js} +0 -0
- /package/dist/cjs/{generateUniqueId-e3fc9863.js → generateUniqueId-ComXTAM_.js} +0 -0
- /package/dist/cjs/{getAriaInvalid-66a2eade.js → getAriaInvalid-Bdg4qUb_.js} +0 -0
- /package/dist/cjs/{hasSlot-1c90e9ba.js → hasSlot-D-DVNhGg.js} +0 -0
- /package/dist/cjs/{inheritAttributes-ff9ad737.js → inheritAttributes-CGw91JfB.js} +0 -0
- /package/dist/components/{p-a1181b1f.js → p-CBZ6wC3m.js} +0 -0
- /package/dist/components/{p-3fe9cbbf.js → p-CF8bH08v.js} +0 -0
- /package/dist/components/{p-52bf0fdf.js → p-CLF3diNe.js} +0 -0
- /package/dist/components/{p-11648030.js → p-Cn4f8w1e.js} +0 -0
- /package/dist/components/{p-ae110fc2.js → p-DDX6uFcm.js} +0 -0
- /package/dist/components/{p-bbf9492a.js → p-wEP_nEaO.js} +0 -0
- /package/dist/esm/{dfs-1e574d5f.js → dfs-CLF3diNe.js} +0 -0
- /package/dist/esm/{generateUniqueId-7934d315.js → generateUniqueId-Cn4f8w1e.js} +0 -0
- /package/dist/esm/{getAriaInvalid-a9944cb9.js → getAriaInvalid-wEP_nEaO.js} +0 -0
- /package/dist/esm/{hasSlot-d52114d0.js → hasSlot-DDX6uFcm.js} +0 -0
- /package/dist/esm/{inheritAttributes-d21e267b.js → inheritAttributes-CF8bH08v.js} +0 -0
- /package/dist/tegel/{p-3fe9cbbf.js → p-CF8bH08v.js} +0 -0
- /package/dist/tegel/{p-52bf0fdf.js → p-CLF3diNe.js} +0 -0
- /package/dist/tegel/{p-11648030.js → p-Cn4f8w1e.js} +0 -0
- /package/dist/tegel/{p-ae110fc2.js → p-DDX6uFcm.js} +0 -0
- /package/dist/tegel/{p-bbf9492a.js → p-wEP_nEaO.js} +0 -0
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { h, Host } from "@stencil/core";
|
|
3
3
|
import { iconsCollection as scaniaIcons } from "./scaniaIconsArray";
|
|
4
4
|
import { iconsCollection as tratonIcons } from "./tratonIconsArray";
|
|
5
|
+
// Map of brand classes to their respective icon collections
|
|
5
6
|
const brandIconMap = {
|
|
6
7
|
scania: scaniaIcons,
|
|
7
8
|
traton: tratonIcons,
|
|
@@ -10,18 +11,19 @@ const brandIconMap = {
|
|
|
10
11
|
};
|
|
11
12
|
export class Icon {
|
|
12
13
|
constructor() {
|
|
14
|
+
/** Pass the name of the icon.
|
|
15
|
+
* For icon names, refer to Storybook Icon controls dropdown or https://tegel.scania.com/foundations/icons/icon-library */
|
|
16
|
+
this.name = 'truck';
|
|
17
|
+
/** Pass a size of icon as a string, for example, 32px, 1rem, 4em... */
|
|
18
|
+
this.size = '16px';
|
|
19
|
+
/** Set aria-hidden attribute on svg */
|
|
20
|
+
this.tdsAriaHidden = false;
|
|
21
|
+
this.arrayOfIcons = [];
|
|
13
22
|
this.setIcons = () => this.arrayOfIcons.map((element) => {
|
|
14
23
|
if (element.name === this.name) {
|
|
15
24
|
return (h("svg", { "aria-hidden": this.tdsAriaHidden, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", "aria-labelledby": this.svgTitle ? `title-${this.name}` : undefined, "aria-describedby": this.svgDescription ? `desc-${this.name}` : undefined, role: "img", style: { fontSize: this.size }, height: this.size, width: this.size }, this.svgTitle && h("title", { id: `title-${this.name}` }, this.svgTitle), this.svgDescription && h("desc", { id: `desc-${this.name}` }, this.svgDescription), h("path", { fill: "currentColor", d: element.definition })));
|
|
16
25
|
}
|
|
17
26
|
});
|
|
18
|
-
this.name = 'truck';
|
|
19
|
-
this.size = '16px';
|
|
20
|
-
this.svgTitle = undefined;
|
|
21
|
-
this.tdsAriaHidden = false;
|
|
22
|
-
this.svgDescription = undefined;
|
|
23
|
-
this.icons_object = undefined;
|
|
24
|
-
this.arrayOfIcons = [];
|
|
25
27
|
}
|
|
26
28
|
componentWillLoad() {
|
|
27
29
|
this.detectAndSetBrand();
|
|
@@ -43,7 +45,7 @@ export class Icon {
|
|
|
43
45
|
this.arrayOfIcons = [...this.arrayOfIcons];
|
|
44
46
|
}
|
|
45
47
|
render() {
|
|
46
|
-
return h(Host, { key: '
|
|
48
|
+
return h(Host, { key: '28dd81a4993b7c842a115f7feca92d038b4ef195' }, this.setIcons());
|
|
47
49
|
}
|
|
48
50
|
static get is() { return "tds-icon"; }
|
|
49
51
|
static get encapsulation() { return "shadow"; }
|
|
@@ -64,7 +66,7 @@ export class Icon {
|
|
|
64
66
|
"mutable": false,
|
|
65
67
|
"complexType": {
|
|
66
68
|
"original": "IconNames",
|
|
67
|
-
"resolved": "\"profile\" | \"expand\" | \"info\" | \"error\" | \"global\" | \"
|
|
69
|
+
"resolved": "\"profile\" | \"expand\" | \"info\" | \"error\" | \"global\" | \"document\" | \"audio\" | \"link\" | \"video\" | \"image\" | \"text\" | \"download\" | \"target\" | \"key\" | \"list\" | \"placeholder\" | \"merge\" | \"copy\" | \"history\" | \"print\" | \"24v_battery_inactive\" | \"24v_battery\" | \"acceleration_inactive\" | \"acceleration\" | \"adblue_inactive\" | \"adblue\" | \"arrow_diagonal\" | \"arrow_down\" | \"arrow_left\" | \"arrow_right\" | \"arrow_up\" | \"audio_inactive\" | \"award\" | \"back\" | \"backward_inactive\" | \"backward\" | \"bento\" | \"bug_inactive\" | \"bug\" | \"burger\" | \"bus_inactive\" | \"bus\" | \"calendar_inactive\" | \"calendar\" | \"camera_inactive\" | \"camera\" | \"card\" | \"cart\" | \"charging_complete\" | \"charging_failed\" | \"charging_speed_inactive\" | \"charging_speed\" | \"charging_stopped\" | \"chevron_down\" | \"chevron_left\" | \"chevron_right\" | \"chevron_up\" | \"clock_inactive\" | \"clock\" | \"configurator\" | \"contact_inactive\" | \"contact\" | \"cookie_inactive\" | \"cookie\" | \"coolant_level_inactive\" | \"coolant_level\" | \"cross\" | \"cup_inactive\" | \"cup\" | \"dashboard\" | \"department_inactive\" | \"department\" | \"departure_scheduling_inactive\" | \"departure_scheduling\" | \"diamond_inactive\" | \"diamond\" | \"document_check\" | \"document_doc\" | \"document_eye\" | \"document_pdf\" | \"document_plus_inactive\" | \"document_plus\" | \"document_ppt\" | \"document_tool\" | \"document_wrong\" | \"document_xls\" | \"dollar\" | \"doner\" | \"double_kebab\" | \"driving_licence_inactive\" | \"driving_licence\" | \"drop_inactive\" | \"drop\" | \"edit_inactive\" | \"edit\" | \"email\" | \"engine_inactive\" | \"engine\" | \"environment_inactive\" | \"environment\" | \"exit\" | \"expand_inactive\" | \"export_inactive\" | \"export\" | \"eye_inactive\" | \"eye\" | \"face_dissatisfied\" | \"face_neutral\" | \"face_satisfied\" | \"factory_inactive\" | \"factory\" | \"ferry_inactive\" | \"ferry\" | \"filters_inactive\" | \"filters\" | \"flash_inactive\" | \"flash\" | \"folder\" | \"forward_inactive\" | \"forward\" | \"fuel_gauge_inactive\" | \"fuel_gauge\" | \"fuel_inactive\" | \"fuel\" | \"gift inactive\" | \"gift\" | \"guided_tour_inactive\" | \"guided_tour\" | \"hatch_open_1\" | \"hatch_open_2\" | \"hatch_open_inactive\" | \"hatch_open\" | \"heart_inactive\" | \"heart\" | \"heating_inactive_screen\" | \"history_inactive\" | \"home_inactive\" | \"home\" | \"idea_inactive\" | \"idea\" | \"image_add\" | \"image_inactive\" | \"image_set\" | \"insights\" | \"kebab\" | \"key_inactive\" | \"layer_inactive\" | \"layer\" | \"link_broken\" | \"list_inactive\" | \"lock_inactive\" | \"lock\" | \"map_cursor_inactive\" | \"map_cursor\" | \"maximize_fullscreen\" | \"meatballs\" | \"merge_inactive\" | \"message_inactive\" | \"message\" | \"mileage_inactive\" | \"mileage\" | \"minimize_fullscreen\" | \"minus\" | \"navigate_inactive\" | \"navigate\" | \"notification_inactive\" | \"notification\" | \"oil_level_inactive\" | \"oil_level\" | \"pause_inactive\" | \"pause\" | \"phone_inactive\" | \"phone\" | \"pie_chart\" | \"pin_inactive\" | \"pin\" | \"play_inactive\" | \"play\" | \"plus\" | \"powerplug_inactive\" | \"powerplug\" | \"print_inactive\" | \"privacy_inactive\" | \"privacy\" | \"profile_inactive\" | \"proportions_inactive\" | \"proportions\" | \"range_inactive\" | \"range\" | \"redirect\" | \"refresh_inactive\" | \"refresh\" | \"reload_inactive\" | \"reload\" | \"repeat\" | \"report_inactive\" | \"report\" | \"route_inactive\" | \"route\" | \"save_inactive\" | \"save\" | \"search\" | \"send_inactive\" | \"send\" | \"settings\" | \"share\" | \"skip_backwards\" | \"skip_forward\" | \"smartphone_inactive\" | \"smartphone\" | \"sorting\" | \"speedometer_inactive\" | \"speedometer\" | \"star\" | \"support\" | \"target_inactive\" | \"temperature_inactive\" | \"temperature\" | \"text_inactive\" | \"thumbs_down\" | \"thumbs_up\" | \"tick\" | \"timer\" | \"tool_inactive\" | \"tool\" | \"trailer_inactive\" | \"trailer\" | \"trash_inactive\" | \"trash\" | \"truck_inactive\" | \"truck\" | \"undo_inactive\" | \"undo\" | \"unlock\" | \"upload\" | \"video_inactive\" | \"wallet\" | \"warning\" | \"weight_inactive\" | \"weight\" | \"wifi_inactive\" | \"wifi\" | \"windscreen_heating_inactive\" | \"windscreen_heating\"",
|
|
68
70
|
"references": {
|
|
69
71
|
"IconNames": {
|
|
70
72
|
"location": "import",
|
|
@@ -79,8 +81,10 @@ export class Icon {
|
|
|
79
81
|
"tags": [],
|
|
80
82
|
"text": "Pass the name of the icon.\nFor icon names, refer to Storybook Icon controls dropdown or https://tegel.scania.com/foundations/icons/icon-library"
|
|
81
83
|
},
|
|
82
|
-
"
|
|
84
|
+
"getter": false,
|
|
85
|
+
"setter": false,
|
|
83
86
|
"reflect": true,
|
|
87
|
+
"attribute": "name",
|
|
84
88
|
"defaultValue": "'truck'"
|
|
85
89
|
},
|
|
86
90
|
"size": {
|
|
@@ -97,8 +101,10 @@ export class Icon {
|
|
|
97
101
|
"tags": [],
|
|
98
102
|
"text": "Pass a size of icon as a string, for example, 32px, 1rem, 4em..."
|
|
99
103
|
},
|
|
100
|
-
"
|
|
104
|
+
"getter": false,
|
|
105
|
+
"setter": false,
|
|
101
106
|
"reflect": true,
|
|
107
|
+
"attribute": "size",
|
|
102
108
|
"defaultValue": "'16px'"
|
|
103
109
|
},
|
|
104
110
|
"svgTitle": {
|
|
@@ -106,7 +112,7 @@ export class Icon {
|
|
|
106
112
|
"mutable": false,
|
|
107
113
|
"complexType": {
|
|
108
114
|
"original": "string",
|
|
109
|
-
"resolved": "string
|
|
115
|
+
"resolved": "string",
|
|
110
116
|
"references": {}
|
|
111
117
|
},
|
|
112
118
|
"required": false,
|
|
@@ -115,8 +121,10 @@ export class Icon {
|
|
|
115
121
|
"tags": [],
|
|
116
122
|
"text": "Override the default title for the svg. Also used by aria-labelledby."
|
|
117
123
|
},
|
|
118
|
-
"
|
|
119
|
-
"
|
|
124
|
+
"getter": false,
|
|
125
|
+
"setter": false,
|
|
126
|
+
"reflect": false,
|
|
127
|
+
"attribute": "svg-title"
|
|
120
128
|
},
|
|
121
129
|
"tdsAriaHidden": {
|
|
122
130
|
"type": "boolean",
|
|
@@ -132,8 +140,10 @@ export class Icon {
|
|
|
132
140
|
"tags": [],
|
|
133
141
|
"text": "Set aria-hidden attribute on svg"
|
|
134
142
|
},
|
|
135
|
-
"
|
|
143
|
+
"getter": false,
|
|
144
|
+
"setter": false,
|
|
136
145
|
"reflect": false,
|
|
146
|
+
"attribute": "tds-aria-hidden",
|
|
137
147
|
"defaultValue": "false"
|
|
138
148
|
},
|
|
139
149
|
"svgDescription": {
|
|
@@ -141,7 +151,7 @@ export class Icon {
|
|
|
141
151
|
"mutable": false,
|
|
142
152
|
"complexType": {
|
|
143
153
|
"original": "string",
|
|
144
|
-
"resolved": "string
|
|
154
|
+
"resolved": "string",
|
|
145
155
|
"references": {}
|
|
146
156
|
},
|
|
147
157
|
"required": false,
|
|
@@ -150,8 +160,10 @@ export class Icon {
|
|
|
150
160
|
"tags": [],
|
|
151
161
|
"text": "Set description for the svg. Also used by aria-describedby."
|
|
152
162
|
},
|
|
153
|
-
"
|
|
154
|
-
"
|
|
163
|
+
"getter": false,
|
|
164
|
+
"setter": false,
|
|
165
|
+
"reflect": false,
|
|
166
|
+
"attribute": "svg-description"
|
|
155
167
|
}
|
|
156
168
|
};
|
|
157
169
|
}
|
|
@@ -4,8 +4,11 @@ import { h } from "@stencil/core";
|
|
|
4
4
|
*/
|
|
5
5
|
export class TdsLink {
|
|
6
6
|
constructor() {
|
|
7
|
+
/** Disables the Link */
|
|
7
8
|
this.disabled = false;
|
|
9
|
+
/** Displays the Link with an underline. */
|
|
8
10
|
this.underline = true;
|
|
11
|
+
/** Displays the Link as a standalone component. Not part of a paragraph. */
|
|
9
12
|
this.standalone = false;
|
|
10
13
|
}
|
|
11
14
|
connectedCallback() {
|
|
@@ -60,8 +63,10 @@ export class TdsLink {
|
|
|
60
63
|
"tags": [],
|
|
61
64
|
"text": "Disables the Link"
|
|
62
65
|
},
|
|
63
|
-
"
|
|
66
|
+
"getter": false,
|
|
67
|
+
"setter": false,
|
|
64
68
|
"reflect": false,
|
|
69
|
+
"attribute": "disabled",
|
|
65
70
|
"defaultValue": "false"
|
|
66
71
|
},
|
|
67
72
|
"underline": {
|
|
@@ -78,8 +83,10 @@ export class TdsLink {
|
|
|
78
83
|
"tags": [],
|
|
79
84
|
"text": "Displays the Link with an underline."
|
|
80
85
|
},
|
|
81
|
-
"
|
|
86
|
+
"getter": false,
|
|
87
|
+
"setter": false,
|
|
82
88
|
"reflect": false,
|
|
89
|
+
"attribute": "underline",
|
|
83
90
|
"defaultValue": "true"
|
|
84
91
|
},
|
|
85
92
|
"standalone": {
|
|
@@ -96,8 +103,10 @@ export class TdsLink {
|
|
|
96
103
|
"tags": [],
|
|
97
104
|
"text": "Displays the Link as a standalone component. Not part of a paragraph."
|
|
98
105
|
},
|
|
99
|
-
"
|
|
106
|
+
"getter": false,
|
|
107
|
+
"setter": false,
|
|
100
108
|
"reflect": false,
|
|
109
|
+
"attribute": "standalone",
|
|
101
110
|
"defaultValue": "false"
|
|
102
111
|
}
|
|
103
112
|
};
|
|
@@ -5,6 +5,16 @@ import generateUniqueId from "../../utils/generateUniqueId";
|
|
|
5
5
|
*/
|
|
6
6
|
export class TdsMessage {
|
|
7
7
|
constructor() {
|
|
8
|
+
/** Variant of the component, based on current mode. */
|
|
9
|
+
this.modeVariant = null;
|
|
10
|
+
/** Variant of Message. */
|
|
11
|
+
this.variant = 'information';
|
|
12
|
+
/** Removes the icon in the Message. */
|
|
13
|
+
this.noIcon = false;
|
|
14
|
+
/** Minimal Message styling. */
|
|
15
|
+
this.minimal = false;
|
|
16
|
+
/** Role of the message component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages. */
|
|
17
|
+
this.tdsAlertDialog = 'dialog';
|
|
8
18
|
this.getIconName = () => {
|
|
9
19
|
switch (this.variant) {
|
|
10
20
|
case 'information':
|
|
@@ -19,13 +29,6 @@ export class TdsMessage {
|
|
|
19
29
|
return 'info';
|
|
20
30
|
}
|
|
21
31
|
};
|
|
22
|
-
this.header = undefined;
|
|
23
|
-
this.modeVariant = null;
|
|
24
|
-
this.variant = 'information';
|
|
25
|
-
this.noIcon = false;
|
|
26
|
-
this.minimal = false;
|
|
27
|
-
this.tdsAlertDialog = 'dialog';
|
|
28
|
-
this.tdsAriaLabel = undefined;
|
|
29
32
|
}
|
|
30
33
|
getAriaLabel() {
|
|
31
34
|
if (this.header) {
|
|
@@ -37,11 +40,11 @@ export class TdsMessage {
|
|
|
37
40
|
render() {
|
|
38
41
|
const headerId = this.header ? `tds-message-header-${generateUniqueId()}` : undefined;
|
|
39
42
|
const contentId = !this.minimal ? `tds-message-content-${generateUniqueId()}` : undefined;
|
|
40
|
-
return (h(Host, { key: '
|
|
43
|
+
return (h(Host, { key: 'ac71829f0647270d499469049a833c282abca25d', role: this.tdsAlertDialog, "aria-describedby": contentId, "aria-label": this.getAriaLabel(), class: { [`tds-mode-variant-${this.modeVariant}`]: this.modeVariant !== null } }, h("div", { key: 'ae95905137e70a95e6013e643e43baec0c10792b', class: {
|
|
41
44
|
wrapper: true,
|
|
42
45
|
[this.variant]: true,
|
|
43
46
|
minimal: this.minimal,
|
|
44
|
-
} }, !this.noIcon && (h("tds-icon", { key: '
|
|
47
|
+
} }, !this.noIcon && (h("tds-icon", { key: 'ea830e6051ef9e0f751a1e8d5e24fbd17ad6ec58', "aria-hidden": "true", "aria-label": `${this.variant}`, svgTitle: `${this.variant}`, name: this.getIconName(), size: "20px" })), h("div", { key: 'c71e70d57147d9ac050e7a223ed097e58cb6a49e', class: `content` }, this.header && (h("div", { key: '1acded0a8f8522792f41a4331a2009a42cbf4894', class: "header", id: headerId }, this.header)), !this.minimal && (h("div", { key: '0aed7c6daf7892e6ac1d5b3f8715e7c9032b11a3', class: "extended-message", id: contentId }, h("slot", { key: '75898f0a957581dc2720667c3eaae6e17201d81c' })))))));
|
|
45
48
|
}
|
|
46
49
|
static get is() { return "tds-message"; }
|
|
47
50
|
static get encapsulation() { return "shadow"; }
|
|
@@ -71,15 +74,17 @@ export class TdsMessage {
|
|
|
71
74
|
"tags": [],
|
|
72
75
|
"text": "Header text for the component."
|
|
73
76
|
},
|
|
74
|
-
"
|
|
75
|
-
"
|
|
77
|
+
"getter": false,
|
|
78
|
+
"setter": false,
|
|
79
|
+
"reflect": false,
|
|
80
|
+
"attribute": "header"
|
|
76
81
|
},
|
|
77
82
|
"modeVariant": {
|
|
78
83
|
"type": "string",
|
|
79
84
|
"mutable": false,
|
|
80
85
|
"complexType": {
|
|
81
|
-
"original": "'primary' | 'secondary'
|
|
82
|
-
"resolved": "\"primary\" | \"secondary\"
|
|
86
|
+
"original": "'primary' | 'secondary'",
|
|
87
|
+
"resolved": "\"primary\" | \"secondary\"",
|
|
83
88
|
"references": {}
|
|
84
89
|
},
|
|
85
90
|
"required": false,
|
|
@@ -88,8 +93,10 @@ export class TdsMessage {
|
|
|
88
93
|
"tags": [],
|
|
89
94
|
"text": "Variant of the component, based on current mode."
|
|
90
95
|
},
|
|
91
|
-
"
|
|
96
|
+
"getter": false,
|
|
97
|
+
"setter": false,
|
|
92
98
|
"reflect": false,
|
|
99
|
+
"attribute": "mode-variant",
|
|
93
100
|
"defaultValue": "null"
|
|
94
101
|
},
|
|
95
102
|
"variant": {
|
|
@@ -106,8 +113,10 @@ export class TdsMessage {
|
|
|
106
113
|
"tags": [],
|
|
107
114
|
"text": "Variant of Message."
|
|
108
115
|
},
|
|
109
|
-
"
|
|
116
|
+
"getter": false,
|
|
117
|
+
"setter": false,
|
|
110
118
|
"reflect": false,
|
|
119
|
+
"attribute": "variant",
|
|
111
120
|
"defaultValue": "'information'"
|
|
112
121
|
},
|
|
113
122
|
"noIcon": {
|
|
@@ -124,8 +133,10 @@ export class TdsMessage {
|
|
|
124
133
|
"tags": [],
|
|
125
134
|
"text": "Removes the icon in the Message."
|
|
126
135
|
},
|
|
127
|
-
"
|
|
136
|
+
"getter": false,
|
|
137
|
+
"setter": false,
|
|
128
138
|
"reflect": false,
|
|
139
|
+
"attribute": "no-icon",
|
|
129
140
|
"defaultValue": "false"
|
|
130
141
|
},
|
|
131
142
|
"minimal": {
|
|
@@ -142,8 +153,10 @@ export class TdsMessage {
|
|
|
142
153
|
"tags": [],
|
|
143
154
|
"text": "Minimal Message styling."
|
|
144
155
|
},
|
|
145
|
-
"
|
|
156
|
+
"getter": false,
|
|
157
|
+
"setter": false,
|
|
146
158
|
"reflect": false,
|
|
159
|
+
"attribute": "minimal",
|
|
147
160
|
"defaultValue": "false"
|
|
148
161
|
},
|
|
149
162
|
"tdsAlertDialog": {
|
|
@@ -160,8 +173,10 @@ export class TdsMessage {
|
|
|
160
173
|
"tags": [],
|
|
161
174
|
"text": "Role of the message component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages."
|
|
162
175
|
},
|
|
163
|
-
"
|
|
176
|
+
"getter": false,
|
|
177
|
+
"setter": false,
|
|
164
178
|
"reflect": false,
|
|
179
|
+
"attribute": "tds-alert-dialog",
|
|
165
180
|
"defaultValue": "'dialog'"
|
|
166
181
|
},
|
|
167
182
|
"tdsAriaLabel": {
|
|
@@ -178,8 +193,10 @@ export class TdsMessage {
|
|
|
178
193
|
"tags": [],
|
|
179
194
|
"text": "Provides an accessible name for the message component when no header is present. This ensures proper screen reader support for dialog/alertdialog roles."
|
|
180
195
|
},
|
|
181
|
-
"
|
|
182
|
-
"
|
|
196
|
+
"getter": false,
|
|
197
|
+
"setter": false,
|
|
198
|
+
"reflect": false,
|
|
199
|
+
"attribute": "tds-aria-label"
|
|
183
200
|
}
|
|
184
201
|
};
|
|
185
202
|
}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
--tds-scrollbar-width-standard: thin;
|
|
3
|
+
--tds-scrollbar-width: 10px;
|
|
4
|
+
--tds-scrollbar-height: 10px;
|
|
5
|
+
--tds-scrollbar-thumb-border-width: 3px;
|
|
6
|
+
--tds-scrollbar-thumb-border-hover-width: 2px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
body {
|
|
10
|
+
scrollbar-width: thin;
|
|
11
|
+
}
|
|
12
|
+
|
|
1
13
|
/* Typography Usage mixins */
|
|
2
14
|
/* Centralized map of typography types */
|
|
3
15
|
/* Utility mixin */
|
|
@@ -17,16 +29,32 @@
|
|
|
17
29
|
.tds-modal * {
|
|
18
30
|
box-sizing: border-box;
|
|
19
31
|
}
|
|
32
|
+
.tds-modal:hover::-webkit-scrollbar-thumb {
|
|
33
|
+
border: var(--tds-scrollbar-thumb-border-hover-width) solid transparent;
|
|
34
|
+
background: var(--tds-scrollbar-hover-thumb-color);
|
|
35
|
+
background-clip: padding-box;
|
|
36
|
+
}
|
|
20
37
|
.tds-modal::-webkit-scrollbar {
|
|
21
|
-
width:
|
|
22
|
-
background-color: transparent;
|
|
38
|
+
width: var(--tds-scrollbar-width);
|
|
23
39
|
}
|
|
24
40
|
.tds-modal::-webkit-scrollbar-track {
|
|
25
|
-
background-color
|
|
41
|
+
background: var(--tds-scrollbar-track-color);
|
|
26
42
|
}
|
|
27
43
|
.tds-modal::-webkit-scrollbar-thumb {
|
|
28
|
-
|
|
29
|
-
|
|
44
|
+
border-radius: 40px;
|
|
45
|
+
background: var(--tds-scrollbar-thumb-color);
|
|
46
|
+
border: var(--tds-scrollbar-thumb-border-width) solid transparent;
|
|
47
|
+
background-clip: padding-box;
|
|
48
|
+
}
|
|
49
|
+
.tds-modal::-webkit-scrollbar-button {
|
|
50
|
+
height: 0;
|
|
51
|
+
width: 0;
|
|
52
|
+
}
|
|
53
|
+
@supports not selector(::-webkit-scrollbar) {
|
|
54
|
+
.tds-modal {
|
|
55
|
+
scrollbar-color: var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);
|
|
56
|
+
scrollbar-width: var(--tds-scrollbar-width-standard);
|
|
57
|
+
}
|
|
30
58
|
}
|
|
31
59
|
.tds-modal__actions-sticky {
|
|
32
60
|
overflow: hidden;
|
|
@@ -175,16 +203,32 @@ slot[name=header]::slotted(*) {
|
|
|
175
203
|
overflow-y: visible;
|
|
176
204
|
padding: 0 16px 16px;
|
|
177
205
|
}
|
|
206
|
+
.body:hover::-webkit-scrollbar-thumb {
|
|
207
|
+
border: var(--tds-scrollbar-thumb-border-hover-width) solid transparent;
|
|
208
|
+
background: var(--tds-scrollbar-hover-thumb-color);
|
|
209
|
+
background-clip: padding-box;
|
|
210
|
+
}
|
|
178
211
|
.body::-webkit-scrollbar {
|
|
179
|
-
width:
|
|
180
|
-
background-color: transparent;
|
|
212
|
+
width: var(--tds-scrollbar-width);
|
|
181
213
|
}
|
|
182
214
|
.body::-webkit-scrollbar-track {
|
|
183
|
-
background-color
|
|
215
|
+
background: var(--tds-scrollbar-track-color);
|
|
184
216
|
}
|
|
185
217
|
.body::-webkit-scrollbar-thumb {
|
|
186
|
-
|
|
187
|
-
|
|
218
|
+
border-radius: 40px;
|
|
219
|
+
background: var(--tds-scrollbar-thumb-color);
|
|
220
|
+
border: var(--tds-scrollbar-thumb-border-width) solid transparent;
|
|
221
|
+
background-clip: padding-box;
|
|
222
|
+
}
|
|
223
|
+
.body::-webkit-scrollbar-button {
|
|
224
|
+
height: 0;
|
|
225
|
+
width: 0;
|
|
226
|
+
}
|
|
227
|
+
@supports not selector(::-webkit-scrollbar) {
|
|
228
|
+
.body {
|
|
229
|
+
scrollbar-color: var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);
|
|
230
|
+
scrollbar-width: var(--tds-scrollbar-width-standard);
|
|
231
|
+
}
|
|
188
232
|
}
|
|
189
233
|
|
|
190
234
|
.tds-modal-backdrop {
|
|
@@ -8,6 +8,20 @@ import generateUniqueId from "../../utils/generateUniqueId";
|
|
|
8
8
|
* */
|
|
9
9
|
export class TdsModal {
|
|
10
10
|
constructor() {
|
|
11
|
+
/** Disables closing Modal on clicking on overlay area. */
|
|
12
|
+
this.prevent = false;
|
|
13
|
+
/** Size of Modal */
|
|
14
|
+
this.size = 'md';
|
|
15
|
+
/** Changes the position behaviour of the actions slot. */
|
|
16
|
+
this.actionsPosition = 'static';
|
|
17
|
+
/** Shows or hides the close [X] button. */
|
|
18
|
+
this.closable = true;
|
|
19
|
+
/** Role of the modal component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages. */
|
|
20
|
+
this.tdsAlertDialog = 'dialog';
|
|
21
|
+
// State that keeps track of show/closed state for the Modal.
|
|
22
|
+
this.isShown = false;
|
|
23
|
+
// Focus state index in focusable Elements
|
|
24
|
+
this.activeElementIndex = 0;
|
|
11
25
|
this.handleClose = (event) => {
|
|
12
26
|
const closeEvent = this.tdsClose.emit(event);
|
|
13
27
|
this.returnFocusOnClose();
|
|
@@ -56,17 +70,6 @@ export class TdsModal {
|
|
|
56
70
|
referenceEl.addEventListener('click', this.handleReferenceElementClick);
|
|
57
71
|
}
|
|
58
72
|
};
|
|
59
|
-
this.header = undefined;
|
|
60
|
-
this.prevent = false;
|
|
61
|
-
this.size = 'md';
|
|
62
|
-
this.actionsPosition = 'static';
|
|
63
|
-
this.selector = undefined;
|
|
64
|
-
this.referenceEl = undefined;
|
|
65
|
-
this.show = undefined;
|
|
66
|
-
this.closable = true;
|
|
67
|
-
this.tdsAlertDialog = 'dialog';
|
|
68
|
-
this.isShown = false;
|
|
69
|
-
this.activeElementIndex = 0;
|
|
70
73
|
}
|
|
71
74
|
/** Shows the Modal. */
|
|
72
75
|
async showModal() {
|
|
@@ -130,7 +133,7 @@ export class TdsModal {
|
|
|
130
133
|
}
|
|
131
134
|
returnFocusOnClose() {
|
|
132
135
|
var _a;
|
|
133
|
-
|
|
136
|
+
let referenceElement = (_a = this.referenceEl) !== null && _a !== void 0 ? _a : document.querySelector(this.selector);
|
|
134
137
|
if (!referenceElement) {
|
|
135
138
|
return; // no element to return focus to
|
|
136
139
|
}
|
|
@@ -148,7 +151,6 @@ export class TdsModal {
|
|
|
148
151
|
}
|
|
149
152
|
}
|
|
150
153
|
getFocusableElements() {
|
|
151
|
-
var _a, _b;
|
|
152
154
|
const focusableSelectors = [
|
|
153
155
|
'a[href]',
|
|
154
156
|
'button:not([disabled])',
|
|
@@ -157,7 +159,7 @@ export class TdsModal {
|
|
|
157
159
|
'select:not([disabled])',
|
|
158
160
|
'[tabindex]:not([tabindex="-1"])',
|
|
159
161
|
].join(',');
|
|
160
|
-
const focusableInShadowRoot = Array.from(
|
|
162
|
+
const focusableInShadowRoot = Array.from(this.host.shadowRoot.querySelectorAll(focusableSelectors));
|
|
161
163
|
const focusableInSlots = Array.from(this.host.querySelectorAll(focusableSelectors));
|
|
162
164
|
/** Focusable elements */
|
|
163
165
|
return [...focusableInShadowRoot, ...focusableInSlots];
|
|
@@ -206,10 +208,10 @@ export class TdsModal {
|
|
|
206
208
|
const usesActionsSlot = hasSlot('actions', this.host);
|
|
207
209
|
const headerId = this.header ? `tds-modal-header-${generateUniqueId()}` : undefined;
|
|
208
210
|
const bodyId = `tds-modal-body-${generateUniqueId()}`;
|
|
209
|
-
return (h(Host, { key: '
|
|
211
|
+
return (h(Host, { key: '4a220f8d1156cd7ef30ba0f77e33f6b368a71c5d', role: this.tdsAlertDialog, "aria-modal": "true", "aria-describedby": bodyId, "aria-labelledby": headerId, class: {
|
|
210
212
|
show: this.isShown,
|
|
211
213
|
hide: !this.isShown,
|
|
212
|
-
}, onClick: (event) => this.handleOverlayClick(event) }, h("div", { key: '
|
|
214
|
+
}, onClick: (event) => this.handleOverlayClick(event) }, h("div", { key: '2129611789e7d9c1e32731f59100f75ff4e58800', class: "tds-modal-backdrop" }), h("div", { key: 'cce280887ce68ab5471cd939847c8f23703e6a11', class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}` }, h("div", { key: '2629204523dff0d2afefab238514db74b9d1a93b', id: headerId, class: "header" }, this.header && h("div", { key: '040ddd22c7b782d77e07cc1ff4cd1fdf0d508cbe', class: "header-text" }, this.header), usesHeaderSlot && h("slot", { key: '7b15247fea7c3ab2986e453b98e7a7f9ccff943f', name: "header" }), this.closable && (h("button", { key: '67e09f9f95ad58e02c1f9adb9883af4a1c16f837', class: "tds-modal-close", "aria-label": "close", onClick: (event) => this.handleClose(event) }, h("tds-icon", { key: '52694db7eb7dc40ca2ea8aeb3e13611f899177a8', name: "cross", size: "20px" })))), h("div", { key: 'b7fedc44fae5a964399f6b63fad96acaba9263a1', id: bodyId, class: "body" }, h("slot", { key: 'd60cbee2a55a487f738aa9a741d8b1e0cb74484e', name: "body" })), usesActionsSlot && h("slot", { key: 'c969e1f820a4f4ecfab84fe3349eee0233710f05', name: "actions" }))));
|
|
213
215
|
}
|
|
214
216
|
static get is() { return "tds-modal"; }
|
|
215
217
|
static get encapsulation() { return "shadow"; }
|
|
@@ -239,8 +241,10 @@ export class TdsModal {
|
|
|
239
241
|
"tags": [],
|
|
240
242
|
"text": "Sets the header of the Modal."
|
|
241
243
|
},
|
|
242
|
-
"
|
|
243
|
-
"
|
|
244
|
+
"getter": false,
|
|
245
|
+
"setter": false,
|
|
246
|
+
"reflect": false,
|
|
247
|
+
"attribute": "header"
|
|
244
248
|
},
|
|
245
249
|
"prevent": {
|
|
246
250
|
"type": "boolean",
|
|
@@ -256,8 +260,10 @@ export class TdsModal {
|
|
|
256
260
|
"tags": [],
|
|
257
261
|
"text": "Disables closing Modal on clicking on overlay area."
|
|
258
262
|
},
|
|
259
|
-
"
|
|
263
|
+
"getter": false,
|
|
264
|
+
"setter": false,
|
|
260
265
|
"reflect": false,
|
|
266
|
+
"attribute": "prevent",
|
|
261
267
|
"defaultValue": "false"
|
|
262
268
|
},
|
|
263
269
|
"size": {
|
|
@@ -274,8 +280,10 @@ export class TdsModal {
|
|
|
274
280
|
"tags": [],
|
|
275
281
|
"text": "Size of Modal"
|
|
276
282
|
},
|
|
277
|
-
"
|
|
283
|
+
"getter": false,
|
|
284
|
+
"setter": false,
|
|
278
285
|
"reflect": false,
|
|
286
|
+
"attribute": "size",
|
|
279
287
|
"defaultValue": "'md'"
|
|
280
288
|
},
|
|
281
289
|
"actionsPosition": {
|
|
@@ -292,8 +300,10 @@ export class TdsModal {
|
|
|
292
300
|
"tags": [],
|
|
293
301
|
"text": "Changes the position behaviour of the actions slot."
|
|
294
302
|
},
|
|
295
|
-
"
|
|
303
|
+
"getter": false,
|
|
304
|
+
"setter": false,
|
|
296
305
|
"reflect": false,
|
|
306
|
+
"attribute": "actions-position",
|
|
297
307
|
"defaultValue": "'static'"
|
|
298
308
|
},
|
|
299
309
|
"selector": {
|
|
@@ -310,15 +320,17 @@ export class TdsModal {
|
|
|
310
320
|
"tags": [],
|
|
311
321
|
"text": "CSS selector for the element that will show the Modal."
|
|
312
322
|
},
|
|
313
|
-
"
|
|
314
|
-
"
|
|
323
|
+
"getter": false,
|
|
324
|
+
"setter": false,
|
|
325
|
+
"reflect": false,
|
|
326
|
+
"attribute": "selector"
|
|
315
327
|
},
|
|
316
328
|
"referenceEl": {
|
|
317
329
|
"type": "unknown",
|
|
318
330
|
"mutable": false,
|
|
319
331
|
"complexType": {
|
|
320
332
|
"original": "HTMLElement | null",
|
|
321
|
-
"resolved": "HTMLElement
|
|
333
|
+
"resolved": "HTMLElement",
|
|
322
334
|
"references": {
|
|
323
335
|
"HTMLElement": {
|
|
324
336
|
"location": "global",
|
|
@@ -331,7 +343,9 @@ export class TdsModal {
|
|
|
331
343
|
"docs": {
|
|
332
344
|
"tags": [],
|
|
333
345
|
"text": "Element that will show the Modal (takes priority over selector)"
|
|
334
|
-
}
|
|
346
|
+
},
|
|
347
|
+
"getter": false,
|
|
348
|
+
"setter": false
|
|
335
349
|
},
|
|
336
350
|
"show": {
|
|
337
351
|
"type": "boolean",
|
|
@@ -347,8 +361,10 @@ export class TdsModal {
|
|
|
347
361
|
"tags": [],
|
|
348
362
|
"text": "Controls whether the Modal is shown or not. If this is set hiding and showing\nwill be decided by this prop and will need to be controlled from the outside."
|
|
349
363
|
},
|
|
350
|
-
"
|
|
351
|
-
"
|
|
364
|
+
"getter": false,
|
|
365
|
+
"setter": false,
|
|
366
|
+
"reflect": false,
|
|
367
|
+
"attribute": "show"
|
|
352
368
|
},
|
|
353
369
|
"closable": {
|
|
354
370
|
"type": "boolean",
|
|
@@ -364,8 +380,10 @@ export class TdsModal {
|
|
|
364
380
|
"tags": [],
|
|
365
381
|
"text": "Shows or hides the close [X] button."
|
|
366
382
|
},
|
|
367
|
-
"
|
|
383
|
+
"getter": false,
|
|
384
|
+
"setter": false,
|
|
368
385
|
"reflect": false,
|
|
386
|
+
"attribute": "closable",
|
|
369
387
|
"defaultValue": "true"
|
|
370
388
|
},
|
|
371
389
|
"tdsAlertDialog": {
|
|
@@ -382,8 +400,10 @@ export class TdsModal {
|
|
|
382
400
|
"tags": [],
|
|
383
401
|
"text": "Role of the modal component. Can be either 'alertdialog' for important messages that require immediate attention, or 'dialog' for regular messages."
|
|
384
402
|
},
|
|
385
|
-
"
|
|
403
|
+
"getter": false,
|
|
404
|
+
"setter": false,
|
|
386
405
|
"reflect": false,
|
|
406
|
+
"attribute": "tds-alert-dialog",
|
|
387
407
|
"defaultValue": "'dialog'"
|
|
388
408
|
}
|
|
389
409
|
};
|
|
@@ -406,8 +426,8 @@ export class TdsModal {
|
|
|
406
426
|
"text": "Emits when the Modal is closed."
|
|
407
427
|
},
|
|
408
428
|
"complexType": {
|
|
409
|
-
"original": "
|
|
410
|
-
"resolved": "
|
|
429
|
+
"original": "any",
|
|
430
|
+
"resolved": "any",
|
|
411
431
|
"references": {}
|
|
412
432
|
}
|
|
413
433
|
}, {
|