@scania/tegel 1.40.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 +4 -5
- 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 +4 -5
- package/dist/cjs/tds-body-cell.cjs.entry.js +3 -9
- 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 +13 -12
- package/dist/cjs/tds-card.cjs.entry.js +28 -19
- package/dist/cjs/tds-checkbox.cjs.entry.js +13 -15
- package/dist/cjs/tds-chip.cjs.entry.js +18 -15
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +7 -8
- package/dist/cjs/tds-datetime.cjs.entry.js +27 -23
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +48 -49
- package/dist/cjs/tds-folder-tab.cjs.entry.js +3 -6
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +13 -13
- package/dist/cjs/tds-footer-group.cjs.entry.js +6 -11
- package/dist/cjs/tds-footer-item.cjs.entry.js +3 -6
- package/dist/cjs/tds-footer.cjs.entry.js +5 -7
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +2 -5
- package/dist/cjs/tds-header-cell.cjs.entry.js +18 -22
- 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 +5 -8
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +8 -12
- 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 +6 -11
- package/dist/cjs/tds-header-title.cjs.entry.js +2 -5
- package/dist/cjs/tds-header.cjs.entry.js +4 -7
- package/dist/cjs/tds-icon.cjs.entry.js +10 -12
- package/dist/cjs/tds-inline-tab.cjs.entry.js +3 -5
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +14 -13
- package/dist/cjs/tds-link.cjs.entry.js +5 -5
- package/dist/cjs/tds-message.cjs.entry.js +14 -14
- package/dist/cjs/tds-modal.cjs.entry.js +19 -19
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +3 -5
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +14 -13
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +16 -10
- package/dist/cjs/tds-popover-core.cjs.entry.js +39 -35
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +3 -5
- package/dist/cjs/tds-popover-menu.cjs.entry.js +15 -10
- package/dist/cjs/tds-radio-button.cjs.entry.js +11 -14
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +4 -7
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +3 -6
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +3 -5
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +2 -5
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +5 -7
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +6 -6
- 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 +15 -12
- package/dist/cjs/tds-slider.cjs.entry.js +39 -24
- package/dist/cjs/tds-spinner.cjs.entry.js +4 -5
- package/dist/cjs/tds-step.cjs.entry.js +3 -11
- package/dist/cjs/tds-stepper.cjs.entry.js +13 -6
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +3 -5
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +11 -7
- package/dist/cjs/tds-table-body-row.cjs.entry.js +5 -5
- package/dist/cjs/tds-table-body.cjs.entry.js +7 -11
- package/dist/cjs/tds-table-footer.cjs.entry.js +21 -17
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +3 -5
- package/dist/cjs/tds-table-header.cjs.entry.js +5 -6
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +5 -5
- package/dist/cjs/tds-table.cjs.entry.js +21 -7
- package/dist/cjs/tds-tag.cjs.entry.js +5 -7
- package/dist/cjs/tds-text-field.cjs.entry.js +22 -13
- package/dist/cjs/tds-textarea.cjs.entry.js +16 -13
- package/dist/cjs/tds-toast.cjs.entry.js +16 -16
- package/dist/cjs/tds-toggle.cjs.entry.js +13 -14
- package/dist/cjs/tds-tooltip.cjs.entry.js +19 -17
- 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 +8 -2
- 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 +8 -2
- 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 +44 -19
- package/dist/collection/components/card/card.js +64 -28
- package/dist/collection/components/checkbox/checkbox.js +41 -22
- package/dist/collection/components/chip/chip.js +41 -19
- package/dist/collection/components/datetime/datetime.js +76 -37
- package/dist/collection/components/divider/divider.js +8 -2
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +16 -12
- package/dist/collection/components/dropdown/dropdown.css +3 -1
- package/dist/collection/components/dropdown/dropdown.js +113 -55
- package/dist/collection/components/footer/footer-group/footer-group.css +1 -4
- package/dist/collection/components/footer/footer-group/footer-group.js +10 -8
- package/dist/collection/components/footer/footer-item/footer-item.css +3 -3
- package/dist/collection/components/footer/footer.js +5 -2
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +19 -12
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +4 -2
- 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 +9 -2
- package/dist/collection/components/header/header-launcher/header-launcher.js +5 -5
- 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/icon/icon.js +26 -15
- 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 +33 -16
- package/dist/collection/components/modal/modal.css +54 -10
- package/dist/collection/components/modal/modal.js +44 -23
- package/dist/collection/components/popover-canvas/popover-canvas.js +46 -15
- package/dist/collection/components/popover-core/popover-core.js +60 -29
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +4 -1
- package/dist/collection/components/popover-menu/popover-menu.js +43 -15
- package/dist/collection/components/radio-button/radio-button.js +36 -20
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +16 -7
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +4 -1
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +9 -2
- 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 +22 -10
- package/dist/collection/components/slider/slider.js +90 -36
- package/dist/collection/components/spinner/spinner.js +8 -2
- package/dist/collection/components/stepper/step/step.js +12 -11
- package/dist/collection/components/stepper/stepper.js +28 -6
- package/dist/collection/components/table/table/table.js +49 -12
- package/dist/collection/components/table/table-body/table-body.js +5 -6
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +16 -11
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +4 -1
- package/dist/collection/components/table/table-body-row/table-body-row.js +12 -3
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +27 -8
- package/dist/collection/components/table/table-footer/table-footer.js +36 -17
- package/dist/collection/components/table/table-header/table-header.js +16 -6
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +40 -27
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +7 -2
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +12 -3
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +4 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +27 -14
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.js +4 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +31 -15
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.js +4 -1
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +31 -15
- package/dist/collection/components/tag/tag.js +12 -5
- package/dist/collection/components/text-field/text-field.js +85 -31
- package/dist/collection/components/textarea/textarea.js +68 -28
- package/dist/collection/components/toast/toast.js +42 -21
- package/dist/collection/components/toggle/toggle.js +37 -19
- package/dist/collection/components/tooltip/tooltip.js +51 -24
- package/dist/components/index.js +1825 -1
- package/dist/components/{p-63552d0e.js → p-B569z5eW.js} +22 -12
- package/dist/components/{p-7c3348eb.js → p-BHBgkUfr.js} +12 -8
- package/dist/components/{p-e1622f4a.js → p-BhLq7lgx.js} +7 -6
- package/dist/components/{p-2a2d66fe.js → p-BhQM9_yR.js} +49 -43
- package/dist/components/{p-1dafdc8c.js → p-BxmFjTxG.js} +11 -7
- package/dist/components/{p-3f2187a4.js → p-CMsPXG7a.js} +7 -8
- package/dist/components/{p-f7d94947.js → p-CPDv0bBc.js} +15 -13
- package/dist/components/{p-44f5b5e1.js → p-Ca3wGDna.js} +18 -16
- package/dist/components/{p-c62b61fe.js → p-ChCWm6If.js} +15 -11
- package/dist/components/{p-859e3ebf.js → p-CuIyaNyT.js} +1 -1
- package/dist/components/{p-d10d21bd.js → p-D1ati-pM.js} +13 -11
- package/dist/components/{p-04a014cf.js → p-DnzQe_HU.js} +25 -19
- 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-3a7e4d0d.js → p-Ip9G3co9.js} +30 -17
- package/dist/components/{p-0bd4c19c.js → p-Q3W78DlP.js} +1 -1
- package/dist/components/{p-9336db16.js → p-QnvG_QPu.js} +9 -8
- package/dist/components/{p-6ef207b2.js → p-SqXsUd-b.js} +15 -16
- package/dist/components/{p-3308d5fa.js → p-X1sPx4t5.js} +44 -36
- package/dist/components/tds-accordion-item.js +15 -8
- package/dist/components/tds-accordion.js +9 -6
- package/dist/components/tds-badge.js +11 -6
- package/dist/components/tds-banner.js +24 -16
- package/dist/components/tds-block.js +9 -6
- package/dist/components/tds-body-cell.js +8 -10
- 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 +36 -23
- 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 +33 -25
- 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 +19 -15
- package/dist/components/tds-footer-group.js +12 -13
- package/dist/components/tds-footer-item.js +8 -7
- package/dist/components/tds-footer.js +10 -8
- package/dist/components/tds-header-brand-symbol.js +9 -8
- package/dist/components/tds-header-cell.js +24 -24
- 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 +18 -18
- 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 +16 -17
- package/dist/components/tds-header-title.js +7 -6
- package/dist/components/tds-header.js +8 -7
- package/dist/components/tds-icon.js +1 -1
- package/dist/components/tds-inline-tab.js +8 -6
- package/dist/components/tds-inline-tabs.js +20 -15
- package/dist/components/tds-link.js +10 -6
- package/dist/components/tds-message.js +20 -16
- package/dist/components/tds-modal.js +25 -21
- package/dist/components/tds-navigation-tab.js +8 -6
- package/dist/components/tds-navigation-tabs.js +20 -15
- 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 +21 -12
- package/dist/components/tds-radio-button.js +16 -15
- package/dist/components/tds-side-menu-close-button.js +9 -8
- package/dist/components/tds-side-menu-collapse-button.js +9 -8
- package/dist/components/tds-side-menu-dropdown-list-item.js +8 -6
- package/dist/components/tds-side-menu-dropdown-list.js +7 -6
- package/dist/components/tds-side-menu-dropdown.js +12 -10
- 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 +20 -13
- package/dist/components/tds-slider.js +48 -29
- package/dist/components/tds-spinner.js +9 -6
- package/dist/components/tds-step.js +9 -13
- package/dist/components/tds-stepper.js +18 -7
- package/dist/components/tds-table-body-input-wrapper.js +9 -7
- package/dist/components/tds-table-body-row-expandable.js +16 -8
- package/dist/components/tds-table-body-row.js +11 -7
- package/dist/components/tds-table-body.js +12 -12
- package/dist/components/tds-table-footer.js +30 -22
- package/dist/components/tds-table-header-input-wrapper.js +9 -7
- package/dist/components/tds-table-header.js +11 -8
- package/dist/components/tds-table-toolbar.js +11 -7
- package/dist/components/tds-table.js +26 -8
- package/dist/components/tds-tag.js +10 -8
- package/dist/components/tds-text-field.js +1 -1
- package/dist/components/tds-textarea.js +24 -17
- package/dist/components/tds-toast.js +22 -18
- package/dist/components/tds-toggle.js +18 -15
- 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 +4 -3
- 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 +4 -3
- package/dist/esm/tds-body-cell.entry.js +3 -7
- 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 +13 -10
- package/dist/esm/tds-card.entry.js +28 -17
- package/dist/esm/tds-checkbox.entry.js +13 -13
- package/dist/esm/tds-chip.entry.js +18 -13
- package/dist/esm/tds-core-header-item_2.entry.js +7 -6
- package/dist/esm/tds-datetime.entry.js +27 -21
- package/dist/esm/tds-dropdown_2.entry.js +48 -47
- package/dist/esm/tds-folder-tab.entry.js +3 -4
- package/dist/esm/tds-folder-tabs.entry.js +13 -11
- package/dist/esm/tds-footer-group.entry.js +6 -9
- package/dist/esm/tds-footer-item.entry.js +3 -4
- package/dist/esm/tds-footer.entry.js +5 -5
- package/dist/esm/tds-header-brand-symbol.entry.js +2 -3
- package/dist/esm/tds-header-cell.entry.js +18 -20
- 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 +5 -6
- package/dist/esm/tds-header-dropdown.entry.js +8 -10
- 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 +6 -9
- package/dist/esm/tds-header-title.entry.js +2 -3
- package/dist/esm/tds-header.entry.js +4 -5
- package/dist/esm/tds-icon.entry.js +10 -10
- package/dist/esm/tds-inline-tab.entry.js +3 -3
- package/dist/esm/tds-inline-tabs.entry.js +14 -11
- package/dist/esm/tds-link.entry.js +5 -3
- package/dist/esm/tds-message.entry.js +14 -12
- package/dist/esm/tds-modal.entry.js +19 -17
- package/dist/esm/tds-navigation-tab.entry.js +3 -3
- package/dist/esm/tds-navigation-tabs.entry.js +14 -11
- package/dist/esm/tds-popover-canvas.entry.js +16 -8
- package/dist/esm/tds-popover-core.entry.js +39 -33
- package/dist/esm/tds-popover-menu-item.entry.js +3 -3
- package/dist/esm/tds-popover-menu.entry.js +15 -8
- package/dist/esm/tds-radio-button.entry.js +11 -12
- package/dist/esm/tds-side-menu-close-button.entry.js +4 -5
- package/dist/esm/tds-side-menu-collapse-button.entry.js +3 -4
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +3 -3
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +2 -3
- package/dist/esm/tds-side-menu-dropdown.entry.js +5 -5
- package/dist/esm/tds-side-menu-item.entry.js +6 -4
- 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 +15 -10
- package/dist/esm/tds-slider.entry.js +39 -22
- package/dist/esm/tds-spinner.entry.js +4 -3
- package/dist/esm/tds-step.entry.js +3 -9
- package/dist/esm/tds-stepper.entry.js +13 -4
- package/dist/esm/tds-table-body-input-wrapper.entry.js +3 -3
- package/dist/esm/tds-table-body-row-expandable.entry.js +11 -5
- package/dist/esm/tds-table-body-row.entry.js +5 -3
- package/dist/esm/tds-table-body.entry.js +7 -9
- package/dist/esm/tds-table-footer.entry.js +21 -15
- package/dist/esm/tds-table-header-input-wrapper.entry.js +3 -3
- package/dist/esm/tds-table-header.entry.js +5 -4
- package/dist/esm/tds-table-toolbar.entry.js +5 -3
- package/dist/esm/tds-table.entry.js +21 -5
- package/dist/esm/tds-tag.entry.js +5 -5
- package/dist/esm/tds-text-field.entry.js +22 -11
- package/dist/esm/tds-textarea.entry.js +16 -11
- package/dist/esm/tds-toast.entry.js +16 -14
- package/dist/esm/tds-toggle.entry.js +13 -12
- package/dist/esm/tds-tooltip.entry.js +19 -15
- package/dist/esm/tegel.js +5 -5
- package/dist/tegel/p-03ff8648.entry.js +1 -0
- package/dist/tegel/{p-743d4f07.entry.js → p-08ef673e.entry.js} +1 -1
- 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-24a76927.entry.js → p-192332e7.entry.js} +1 -1
- package/dist/tegel/{p-f2318c88.entry.js → p-1f255f25.entry.js} +1 -1
- package/dist/tegel/{p-09cd056c.entry.js → p-206d4703.entry.js} +1 -1
- 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-fd15ced7.entry.js → p-2a1342d8.entry.js} +1 -1
- 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-72006dd7.entry.js → p-3de8e52b.entry.js} +1 -1
- 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-a090bd2f.entry.js → p-4489b7d5.entry.js} +1 -1
- 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-51a17707.entry.js → p-73c9a5b3.entry.js} +1 -1
- 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-0e772ad7.entry.js → p-954e6cf0.entry.js} +1 -1
- 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-f31f56fe.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-3450dd6c.entry.js → p-d2b7c692.entry.js} +1 -1
- package/dist/tegel/{p-650b98bf.entry.js → p-d659aefa.entry.js} +1 -1
- package/dist/tegel/p-d67ff384.entry.js +1 -0
- package/dist/tegel/{p-0cfe8671.entry.js → p-d8a35537.entry.js} +1 -1
- package/dist/tegel/{p-c6968db1.entry.js → p-de9f2a0d.entry.js} +1 -1
- package/dist/tegel/p-dec2ede0.entry.js +1 -0
- package/dist/tegel/{p-d1d45942.entry.js → p-e1daba90.entry.js} +1 -1
- 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-77cfb0ef.entry.js → p-fa8a4f27.entry.js} +1 -1
- package/dist/tegel/{p-987f8f0f.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/dropdown/dropdown.d.ts +4 -0
- package/dist/types/components/slider/slider-stories-setup.d.ts +1 -1
- package/dist/types/components.d.ts +547 -0
- package/dist/types/stencil-public-runtime.d.ts +86 -4
- 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-0672ddfc.entry.js +0 -1
- package/dist/tegel/p-08ad6a21.entry.js +0 -1
- package/dist/tegel/p-08f63e5d.entry.js +0 -1
- package/dist/tegel/p-0c9a51d9.entry.js +0 -1
- package/dist/tegel/p-177386d5.entry.js +0 -1
- package/dist/tegel/p-17bc1e49.entry.js +0 -1
- package/dist/tegel/p-1859156f.entry.js +0 -1
- package/dist/tegel/p-1b471db7.entry.js +0 -1
- package/dist/tegel/p-1f4267a8.entry.js +0 -1
- package/dist/tegel/p-2049fab2.js +0 -2
- package/dist/tegel/p-28f85555.entry.js +0 -1
- package/dist/tegel/p-304f5a5c.entry.js +0 -1
- package/dist/tegel/p-3462a7cc.entry.js +0 -1
- package/dist/tegel/p-354d3986.entry.js +0 -1
- package/dist/tegel/p-3c97cb45.entry.js +0 -1
- package/dist/tegel/p-3e6d65ee.entry.js +0 -1
- package/dist/tegel/p-445fa788.entry.js +0 -1
- package/dist/tegel/p-464469fe.entry.js +0 -1
- package/dist/tegel/p-4de2807c.entry.js +0 -1
- package/dist/tegel/p-52689019.entry.js +0 -1
- package/dist/tegel/p-55f9c79a.entry.js +0 -1
- package/dist/tegel/p-57a28f62.entry.js +0 -1
- package/dist/tegel/p-5c8fd75e.entry.js +0 -1
- package/dist/tegel/p-6b340718.entry.js +0 -1
- package/dist/tegel/p-7887bdbb.entry.js +0 -1
- package/dist/tegel/p-7b598e60.entry.js +0 -1
- package/dist/tegel/p-7ef50e7f.entry.js +0 -1
- package/dist/tegel/p-8c2695af.entry.js +0 -1
- package/dist/tegel/p-9f187848.entry.js +0 -1
- package/dist/tegel/p-9fdc8fa5.entry.js +0 -1
- package/dist/tegel/p-a4cbb541.entry.js +0 -1
- package/dist/tegel/p-a56436c8.entry.js +0 -1
- package/dist/tegel/p-a8abc8d9.entry.js +0 -1
- package/dist/tegel/p-ab00e6e4.entry.js +0 -1
- package/dist/tegel/p-b210d23c.entry.js +0 -1
- package/dist/tegel/p-b7abb81f.entry.js +0 -1
- package/dist/tegel/p-bcd5e06d.entry.js +0 -1
- package/dist/tegel/p-c0cbc9f5.entry.js +0 -1
- package/dist/tegel/p-c23a3f12.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-cf717912.entry.js +0 -1
- package/dist/tegel/p-d7cdbc4e.entry.js +0 -1
- package/dist/tegel/p-e1255160.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-f3c32d4d.entry.js +0 -1
- package/dist/tegel/p-f8a37d39.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
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h,
|
|
2
|
-
import { g as generateUniqueId } from './generateUniqueId-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, a as getElement } from './index-BqRtRha-.js';
|
|
2
|
+
import { g as generateUniqueId } from './generateUniqueId-Cn4f8w1e.js';
|
|
3
3
|
|
|
4
4
|
const checkboxCss = ".sc-tds-checkbox-h{align-items:center;position:relative;box-sizing:border-box}.tds-checkbox.sc-tds-checkbox{box-sizing:border-box;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-checkbox-text);display:flex;align-items:center;margin-left:-4px}.tds-checkbox.sc-tds-checkbox *.sc-tds-checkbox{box-sizing:border-box}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox{appearance:none;outline:none;margin:0;border:0;border-radius:2px;width:24px;height:24px;position:relative;cursor:pointer;flex-shrink:0;align-self:flex-start}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox+label.sc-tds-checkbox{color:var(--tds-checkbox-color);padding-left:var(--tds-spacing-element-4);padding-top:var(--tds-spacing-element-4);padding-bottom:var(--tds-spacing-element-4);cursor:pointer;display:flex;align-items:center}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox+label.sc-tds-checkbox::before{content:\"\";position:absolute;width:100%;height:100%;left:0;top:0}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox::before,.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox::after{content:\"\";position:absolute;box-sizing:border-box}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox::before{width:20px;height:20px;left:2px;top:2px;border-radius:4px}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox::after{border:1px solid var(--tds-checkbox-interaction-01);background-color:var(--tds-checkbox-interaction-02);width:16px;height:16px;left:4px;top:4px;border-radius:2px}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:hover::before{background-color:var(--tds-checkbox-background-hover);opacity:var(--tds-checkbox-background-opacity-hover)}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:focus-visible::before{background-color:var(--tds-checkbox-background-focus);opacity:var(--tds-checkbox-background-opacity-focus);transition:opacity 0.2s ease-in-out}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:disabled,.tds-checkbox.sc-tds-checkbox input[type=checkbox].disabled.sc-tds-checkbox{cursor:not-allowed}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:disabled::after,.tds-checkbox.sc-tds-checkbox input[type=checkbox].disabled.sc-tds-checkbox::after{border-color:var(--tds-checkbox-border-color-disabled-after)}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:disabled+label.sc-tds-checkbox,.tds-checkbox.sc-tds-checkbox input[type=checkbox].disabled.sc-tds-checkbox+label.sc-tds-checkbox{color:var(--tds-checkbox-disabled);cursor:not-allowed}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:disabled:hover::before,.tds-checkbox.sc-tds-checkbox input[type=checkbox].disabled.sc-tds-checkbox:hover::before{display:none}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:checked::after{background-image:var(--tds-checkbox-background-img);background-color:var(--tds-checkbox-interaction-01);background-repeat:no-repeat;background-position:center}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:checked:hover::before{background-color:var(--tds-checkbox-background-hover);opacity:var(--tds-checkbox-background-opacity-hover)}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:checked:disabled:hover::before,.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:checked:disabled::before,.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:checked.disabled:hover::before,.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:checked.disabled::before{display:block;width:16px;height:16px;left:4px;top:4px;border:1px solid #b0b7c4}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:checked:disabled::after,.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:checked.disabled::after{background-image:var(--tds-checkbox-background-img-disabled);background-color:var(--tds-checkbox-interaction-02);color:var(--tds-checkbox-color-disabled-after)}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:indeterminate::after{background-image:var(--tds-checkbox-background-img-indeterminate);background-color:var(--tds-checkbox-interaction-01);background-repeat:no-repeat;background-position:center}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:indeterminate:disabled:hover::before,.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:indeterminate:disabled::before{display:block;width:16px;height:16px;left:4px;top:4px;border:1px solid #b0b7c4}.tds-checkbox.sc-tds-checkbox input[type=checkbox].sc-tds-checkbox:indeterminate:disabled::after{background-image:var(--tds-checkbox-background-img-indeterminate-disabled);background-color:var(--tds-checkbox-interaction-02);color:var(--tds-checkbox-color-disabled-after)}";
|
|
5
|
-
const TdsCheckboxStyle0 = checkboxCss;
|
|
6
5
|
|
|
7
6
|
const TdsCheckbox = class {
|
|
8
7
|
constructor(hostRef) {
|
|
@@ -10,6 +9,16 @@ const TdsCheckbox = class {
|
|
|
10
9
|
this.tdsChange = createEvent(this, "tdsChange", 6);
|
|
11
10
|
this.tdsFocus = createEvent(this, "tdsFocus", 6);
|
|
12
11
|
this.tdsBlur = createEvent(this, "tdsBlur", 6);
|
|
12
|
+
/** ID for the Checkbox's input element. Randomly generated if not specified. */
|
|
13
|
+
this.checkboxId = generateUniqueId();
|
|
14
|
+
/** Sets the Checkbox in a disabled state */
|
|
15
|
+
this.disabled = false;
|
|
16
|
+
/** Make the Checkbox required */
|
|
17
|
+
this.required = false;
|
|
18
|
+
/** Sets the Checkbox as checked */
|
|
19
|
+
this.checked = false;
|
|
20
|
+
/** Sets the Checkbox as indeterminate */
|
|
21
|
+
this.indeterminate = false;
|
|
13
22
|
this.handleChange = () => {
|
|
14
23
|
this.checked = !this.checked;
|
|
15
24
|
this.indeterminate = false;
|
|
@@ -20,15 +29,6 @@ const TdsCheckbox = class {
|
|
|
20
29
|
value: this.value,
|
|
21
30
|
});
|
|
22
31
|
};
|
|
23
|
-
this.name = undefined;
|
|
24
|
-
this.checkboxId = generateUniqueId();
|
|
25
|
-
this.disabled = false;
|
|
26
|
-
this.required = false;
|
|
27
|
-
this.checked = false;
|
|
28
|
-
this.indeterminate = false;
|
|
29
|
-
this.value = undefined;
|
|
30
|
-
this.tdsAriaLabel = undefined;
|
|
31
|
-
this.tdsAriaDescribedby = undefined;
|
|
32
32
|
}
|
|
33
33
|
/** Toggles the checked value of the component. */
|
|
34
34
|
async toggleCheckbox() {
|
|
@@ -75,6 +75,6 @@ const TdsCheckbox = class {
|
|
|
75
75
|
"indeterminate": ["handleIndeterminateState"]
|
|
76
76
|
}; }
|
|
77
77
|
};
|
|
78
|
-
TdsCheckbox.style =
|
|
78
|
+
TdsCheckbox.style = checkboxCss;
|
|
79
79
|
|
|
80
80
|
export { TdsCheckbox as tds_checkbox };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host,
|
|
2
|
-
import { g as generateUniqueId } from './generateUniqueId-
|
|
3
|
-
import { h as hasSlot } from './hasSlot-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BqRtRha-.js';
|
|
2
|
+
import { g as generateUniqueId } from './generateUniqueId-Cn4f8w1e.js';
|
|
3
|
+
import { h as hasSlot } from './hasSlot-DDX6uFcm.js';
|
|
4
4
|
|
|
5
5
|
const chipCss = ".sc-tds-chip-s>*{display:inline-flex;align-items:center}.sc-tds-chip-h.sc-tds-chip-s>[slot=label],.sc-tds-chip-h .sc-tds-chip-s>[slot=label]{padding-top:2px}.component.sc-tds-chip .tds-chip-component.sc-tds-chip{display:inline-flex}.component.sc-tds-chip .tds-chip-component.sc-tds-chip label.sc-tds-chip{background-color:var(--tds-chips-background);color:var(--tds-chips-color);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:inline-flex;align-items:center;border-radius:32px;border:1px solid var(--tds-chips-border);cursor:pointer;white-space:nowrap}.component.sc-tds-chip .tds-chip-component.sc-tds-chip label.sc-tds-chip:hover{background-color:var(--tds-chips-background-hover);border-color:var(--tds-chips-border-hover)}.component.sc-tds-chip .tds-chip-component.disabled.sc-tds-chip label.sc-tds-chip{background-color:var(--tds-chips-background-disabled);color:var(--tds-chips-text-disabled);border-color:transparent;cursor:default;pointer-events:none}.component.sc-tds-chip .tds-chip-component.disabled.sc-tds-chip input.sc-tds-chip{pointer-events:none}.component.sc-tds-chip .tds-chip-component.disabled.sc-tds-chip input[type=radio].sc-tds-chip:checked:disabled+label.sc-tds-chip{background-color:var(--tds-chips-background-active-disabled);color:var(--tds-chips-text-checked-disabled);border-color:transparent}.component.sc-tds-chip .tds-chip-component.disabled.sc-tds-chip input[type=checkbox].sc-tds-chip:checked:disabled+label.sc-tds-chip{background-color:var(--tds-chips-background-active-disabled);color:var(--tds-chips-text-checked-disabled);border-color:transparent}.component.sc-tds-chip .tds-chip-component.lg.sc-tds-chip label.sc-tds-chip{height:16px;padding:8px 16px;gap:6px}.component.sc-tds-chip .tds-chip-component.sm.sc-tds-chip label.sc-tds-chip{height:16px;padding:4px 12px;gap:4px}.component.sc-tds-chip .tds-chip-component.sm.prefix.sc-tds-chip label.sc-tds-chip{padding:4px 12px 4px 8px}.component.sc-tds-chip .tds-chip-component.sm.suffix.sc-tds-chip label.sc-tds-chip{padding:4px 8px 4px 12px}.component.sc-tds-chip .tds-chip-component.lg.prefix.sc-tds-chip label.sc-tds-chip{padding:8px 16px 8px 10px}.component.sc-tds-chip .tds-chip-component.lg.suffix.sc-tds-chip label.sc-tds-chip{padding:8px 10px 8px 16px}.component.sc-tds-chip .tds-chip-component.sm.prefix.suffix.sc-tds-chip label.sc-tds-chip{padding:4px 8px}.component.sc-tds-chip .tds-chip-component.lg.prefix.suffix.sc-tds-chip label.sc-tds-chip{padding:8px 10px}.component.sc-tds-chip .tds-chip-component.sc-tds-chip input.sc-tds-chip{opacity:0;position:absolute;z-index:-1}.component.sc-tds-chip .tds-chip-component.sc-tds-chip input.sc-tds-chip:focus-visible+label.sc-tds-chip{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1;background-color:var(--tds-chips-background-focus);border-color:transparent}.component.sc-tds-chip .tds-chip-component.sc-tds-chip input.sc-tds-chip:checked+label.sc-tds-chip{background-color:var(--tds-chips-background-active);color:var(--tds-chips-color-active);border-color:var(--tds-chips-background-active)}.component.sc-tds-chip .tds-chip-component.sc-tds-chip input.sc-tds-chip:checked+label.sc-tds-chip:hover{background-color:var(--tds-chips-background-active-hover);border-color:var(--tds-chips-border-selected-hover)}";
|
|
6
|
-
const TdsChipStyle0 = chipCss;
|
|
7
6
|
|
|
8
7
|
const TdsChip = class {
|
|
9
8
|
constructor(hostRef) {
|
|
@@ -11,6 +10,20 @@ const TdsChip = class {
|
|
|
11
10
|
this.tdsChange = createEvent(this, "tdsChange", 6);
|
|
12
11
|
this.internalRadioOnChange = createEvent(this, "internalRadioOnChange", 6);
|
|
13
12
|
this.tdsClick = createEvent(this, "tdsClick", 6);
|
|
13
|
+
/** Type of Chip, depends on usage */
|
|
14
|
+
this.type = 'button';
|
|
15
|
+
/** Size of the Chip component */
|
|
16
|
+
this.size = 'lg';
|
|
17
|
+
/** ID used for internal Chip functionality and events, must be unique.
|
|
18
|
+
*
|
|
19
|
+
* **NOTE**: If you're listening for input events, you need to set this ID yourself to identify the input,
|
|
20
|
+
* as the default ID is random and will be different every time.
|
|
21
|
+
*/
|
|
22
|
+
this.chipId = generateUniqueId();
|
|
23
|
+
/** Controls component's checked attribute. Valid only for type checkbox and radio. */
|
|
24
|
+
this.checked = false;
|
|
25
|
+
/** Sets the Chip in a disabled state */
|
|
26
|
+
this.disabled = false;
|
|
14
27
|
this.handleChange = () => {
|
|
15
28
|
if (!this.disabled) {
|
|
16
29
|
// Only proceed if not disabled
|
|
@@ -43,14 +56,6 @@ const TdsChip = class {
|
|
|
43
56
|
});
|
|
44
57
|
}
|
|
45
58
|
};
|
|
46
|
-
this.type = 'button';
|
|
47
|
-
this.size = 'lg';
|
|
48
|
-
this.chipId = generateUniqueId();
|
|
49
|
-
this.checked = false;
|
|
50
|
-
this.name = undefined;
|
|
51
|
-
this.value = undefined;
|
|
52
|
-
this.disabled = false;
|
|
53
|
-
this.tdsAriaLabel = undefined;
|
|
54
59
|
}
|
|
55
60
|
handleInternaRadioChange(event) {
|
|
56
61
|
const { chipId, checked, groupName } = event.detail;
|
|
@@ -88,6 +93,6 @@ const TdsChip = class {
|
|
|
88
93
|
}
|
|
89
94
|
get host() { return getElement(this); }
|
|
90
95
|
};
|
|
91
|
-
TdsChip.style =
|
|
96
|
+
TdsChip.style = chipCss;
|
|
92
97
|
|
|
93
98
|
export { TdsChip as tds_chip };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host,
|
|
2
|
-
import { d as dfs } from './dfs-
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BqRtRha-.js';
|
|
2
|
+
import { d as dfs } from './dfs-CLF3diNe.js';
|
|
3
3
|
|
|
4
4
|
const coreHeaderItemCss = ":host{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-header-nav-item-color)}:host .item{all:unset;box-sizing:border-box;display:flex;justify-content:center;align-items:center;min-width:var(--tds-header-height);height:var(--tds-header-height);margin:0}:host .item *{box-sizing:border-box}:host slot{white-space:nowrap}:host ::slotted(svg){font-size:20px}";
|
|
5
|
-
const TdsCoreHeaderItemStyle0 = coreHeaderItemCss;
|
|
6
5
|
|
|
7
6
|
const TdsCoreHeaderItem = class {
|
|
8
7
|
constructor(hostRef) {
|
|
@@ -12,15 +11,17 @@ const TdsCoreHeaderItem = class {
|
|
|
12
11
|
return (h(Host, { key: 'cdc1e1712659f82b9bbefd67977de93963dbc68e' }, h("div", { key: '1c39a69aa967c64941be3507d7e88f92cea58623', class: "item" }, h("slot", { key: '62576106bdb13d983e5a415421522bbcddd348bf' }))));
|
|
13
12
|
}
|
|
14
13
|
};
|
|
15
|
-
TdsCoreHeaderItem.style =
|
|
14
|
+
TdsCoreHeaderItem.style = coreHeaderItemCss;
|
|
16
15
|
|
|
17
16
|
const headerItemCss = ":host ::slotted(button),:host ::slotted(a){all:unset;box-sizing:border-box;background-color:var(--tds-header-background);border-right:1px solid var(--tds-header--basic-element-border);width:100%;height:100%;cursor:pointer;padding:0 24px;display:flex;align-items:center;gap:8px}:host ::slotted(button) *,:host ::slotted(a) *{box-sizing:border-box}:host ::slotted(button:hover),:host ::slotted(a:hover){background-color:var(--tds-header-item-hover);box-shadow:inset 0 -2px 0 0 var(--tds-header-item-border-hover)}:host ::slotted(button:active),:host ::slotted(a:active){background-color:var(--tds-header-item-active);box-shadow:inset 0 -2px 0 0 var(--tds-header-item-border-active)}:host ::slotted(button:focus-visible),:host ::slotted(a:focus-visible){border:none;margin-right:1px;outline:2px solid var(--tds-focus-outline-color);box-shadow:inset 0 0 0 3px var(--tds-white);outline-offset:-2px}:host .component-active ::slotted(button),:host .component-active ::slotted(a){background-color:var(--tds-header--basic-element-background-open);color:var(--tds-header-nav-item-dropdown-opened-color);border-color:var(--tds-header--basic-element-border-open)}:host .component-selected:not(.component-active) ::slotted(button),:host .component-selected:not(.component-active) ::slotted(a){box-shadow:inset 0 -4px 0 0 var(--tds-header-item-border-hover)}:host .component-selected:not(.component-active) ::slotted(button:focus-visible),:host .component-selected:not(.component-active) ::slotted(a:focus-visible){box-shadow:inset 0 0 0 3px var(--tds-white)}";
|
|
18
|
-
const TdsHeaderItemStyle0 = headerItemCss;
|
|
19
17
|
|
|
20
18
|
const TdsHeaderItem = class {
|
|
21
19
|
constructor(hostRef) {
|
|
22
20
|
registerInstance(this, hostRef);
|
|
21
|
+
/** If the button should appear active. Can be used when the button is
|
|
22
|
+
* triggering a dropdown, and the dropdown is open, for example. */
|
|
23
23
|
this.active = false;
|
|
24
|
+
/** If the button should appear selected. */
|
|
24
25
|
this.selected = false;
|
|
25
26
|
}
|
|
26
27
|
updateSlotted(searchPredicate, mutationCallback) {
|
|
@@ -96,6 +97,6 @@ const TdsHeaderItem = class {
|
|
|
96
97
|
}
|
|
97
98
|
get host() { return getElement(this); }
|
|
98
99
|
};
|
|
99
|
-
TdsHeaderItem.style =
|
|
100
|
+
TdsHeaderItem.style = headerItemCss;
|
|
100
101
|
|
|
101
102
|
export { TdsCoreHeaderItem as tds_core_header_item, TdsHeaderItem as tds_header_item };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
2
|
-
import { g as generateUniqueId } from './generateUniqueId-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-BqRtRha-.js';
|
|
2
|
+
import { g as generateUniqueId } from './generateUniqueId-Cn4f8w1e.js';
|
|
3
3
|
|
|
4
4
|
const datetimeCss = "@supports selector(input::-webkit-datetime-edit){.tds-datetime-input.sc-tds-datetime:not(:focus)::-webkit-datetime-edit,.tds-datetime-input-md.sc-tds-datetime:not(:focus)::-webkit-datetime-edit,.tds-datetime-input-sm.sc-tds-datetime:not(:focus)::-webkit-datetime-edit{color:var(--tds-datetime-placeholder-color)}}.tds-datetime-input[type=datetime-local].sc-tds-datetime~.icon-time.sc-tds-datetime,.tds-datetime-input-md[type=datetime-local].sc-tds-datetime~.icon-time.sc-tds-datetime,.tds-datetime-input-sm[type=datetime-local].sc-tds-datetime~.icon-time.sc-tds-datetime{display:none}.tds-datetime-input[type=date].sc-tds-datetime~.icon-time.sc-tds-datetime,.tds-datetime-input-md[type=date].sc-tds-datetime~.icon-time.sc-tds-datetime,.tds-datetime-input-sm[type=date].sc-tds-datetime~.icon-time.sc-tds-datetime{display:none}.tds-datetime-input[type=month].sc-tds-datetime~.icon-time.sc-tds-datetime,.tds-datetime-input-md[type=month].sc-tds-datetime~.icon-time.sc-tds-datetime,.tds-datetime-input-sm[type=month].sc-tds-datetime~.icon-time.sc-tds-datetime{display:none}.tds-datetime-input[type=week].sc-tds-datetime~.icon-time.sc-tds-datetime,.tds-datetime-input-md[type=week].sc-tds-datetime~.icon-time.sc-tds-datetime,.tds-datetime-input-sm[type=week].sc-tds-datetime~.icon-time.sc-tds-datetime{display:none}.tds-datetime-input[type=time].sc-tds-datetime~.icon-datetime-local.sc-tds-datetime,.tds-datetime-input-md[type=time].sc-tds-datetime~.icon-datetime-local.sc-tds-datetime,.tds-datetime-input-sm[type=time].sc-tds-datetime~.icon-datetime-local.sc-tds-datetime{display:none}.tds-datetime-input.sc-tds-datetime{box-sizing:border-box;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-datetime-color);background-color:var(--tds-datetime-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-20) var(--tds-spacing-element-16)}.tds-datetime-input.sc-tds-datetime *.sc-tds-datetime{box-sizing:border-box}.tds-datetime-input.sc-tds-datetime:disabled{background-color:var(--tds-datetime-background-disabled);color:var(--tds-datetime-color-disabled);cursor:not-allowed}.tds-datetime-input.sc-tds-datetime:disabled~.tds-datetime-label-inside.sc-tds-datetime{color:var(--tds-datetime-label-disabled)}.tds-datetime-input-md.sc-tds-datetime{box-sizing:border-box;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-datetime-color);background-color:var(--tds-datetime-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.tds-datetime-input-md.sc-tds-datetime *.sc-tds-datetime{box-sizing:border-box}.tds-datetime-input-md.sc-tds-datetime:disabled{background-color:var(--tds-datetime-background-disabled);color:var(--tds-datetime-color-disabled);cursor:not-allowed}.tds-datetime-input-md.sc-tds-datetime:disabled~.tds-datetime-label-inside.sc-tds-datetime{color:var(--tds-datetime-label-disabled)}.tds-datetime-input-sm.sc-tds-datetime{box-sizing:border-box;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-datetime-color);background-color:var(--tds-datetime-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.tds-datetime-input-sm.sc-tds-datetime *.sc-tds-datetime{box-sizing:border-box}.tds-datetime-input-sm.sc-tds-datetime:disabled{background-color:var(--tds-datetime-background-disabled);color:var(--tds-datetime-color-disabled);cursor:not-allowed}.tds-datetime-input-sm.sc-tds-datetime:disabled~.tds-datetime-label-inside.sc-tds-datetime{color:var(--tds-datetime-label-disabled)}.tds-datetime-container.sc-tds-datetime{border-radius:4px 4px 0 0;display:flex;position:relative;height:56px;box-sizing:border-box;background-color:var(--tds-datetime-background);border-bottom:1px solid var(--tds-datetime-border-bottom);transition:border-bottom-color 200ms ease}.tds-datetime-container.sc-tds-datetime:hover{border-bottom-color:var(--tds-datetime-border-bottom-hover)}.tds-form-datetime-md.sc-tds-datetime .tds-datetime-container.sc-tds-datetime{height:48px}.tds-form-datetime-sm.sc-tds-datetime .tds-datetime-container.sc-tds-datetime{height:40px}.tds-datetime-input-container.sc-tds-datetime{position:relative;width:100%}.tds-datetime-input-container.sc-tds-datetime .datetime-icon.sc-tds-datetime{height:20px;width:20px;position:absolute;top:50%;transform:translateY(-50%);right:18px;pointer-events:none;color:var(--tds-datetime-icon)}.tds-datetime-label.sc-tds-datetime{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:block;margin-bottom:var(--tds-spacing-element-8);color:var(--tds-datetime-label-color)}.tds-datetime-label-inside.sc-tds-datetime{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);position:absolute;pointer-events:none;color:var(--tds-datetime-label-inside-color);left:16px}.tds-datetime-label-inside.iphone.sc-tds-datetime{left:8px !important}.tds-form-datetime.sc-tds-datetime{display:block;min-width:208px;background:unset}.tds-form-datetime-nomin.sc-tds-datetime{min-width:auto}.tds-form-datetime.tds-datetime-container-label-inside.sc-tds-datetime .tds-datetime-input.sc-tds-datetime{padding-top:var(--tds-spacing-element-24);padding-bottom:15px}.tds-form-datetime.tds-datetime-container-label-inside.sc-tds-datetime .tds-datetime-input.sc-tds-datetime~.tds-datetime-label-inside.sc-tds-datetime{top:20px}.tds-form-datetime.tds-datetime-container-label-inside.sc-tds-datetime .tds-datetime-input-md.sc-tds-datetime{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.tds-form-datetime.tds-datetime-container-label-inside.sc-tds-datetime .tds-datetime-input-md.sc-tds-datetime~.tds-datetime-label-inside.sc-tds-datetime{top:16px}.tds-form-datetime.tds-datetime-container-label-inside.sc-tds-datetime .tds-datetime-input-sm.sc-tds-datetime{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.tds-form-datetime.tds-datetime-container-label-inside.sc-tds-datetime .tds-datetime-input-sm.sc-tds-datetime~.tds-datetime-label-inside.sc-tds-datetime{top:16px}.tds-form-datetime.tds-datetime-container-label-inside.sc-tds-datetime .tds-datetime-input-sm.sc-tds-datetime~.tds-datetime-label-inside.sc-tds-datetime{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.tds-form-datetime.tds-datetime-container-label-inside.sc-tds-datetime .tds-datetime-input-md.sc-tds-datetime~.tds-datetime-label-inside.sc-tds-datetime{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.tds-form-datetime.tds-datetime-container-label-inside.sc-tds-datetime .tds-datetime-input.sc-tds-datetime~.tds-datetime-label-inside.sc-tds-datetime{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:12px}.tds-datetime-focus.sc-tds-datetime .tds-datetime-input.sc-tds-datetime,.tds-datetime-focus.sc-tds-datetime .tds-datetime-input-md.sc-tds-datetime,.tds-datetime-focus.sc-tds-datetime .tds-datetime-input-sm.sc-tds-datetime{border-radius:0;outline:2px solid var(--tds-focus-outline-color);box-shadow:inset 0 0 0 3px var(--tds-white);outline-offset:-2px;z-index:1}.tds-datetime-focus.sc-tds-datetime .tds-datetime-container.sc-tds-datetime{border-bottom:none}.tds-datetime-helper.sc-tds-datetime{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:block;flex-basis:100%;padding-top:var(--tds-spacing-element-4);color:var(--tds-datetime-helper)}.tds-datetime-helper.sc-tds-datetime .tds-helper.sc-tds-datetime{display:inline-flex;gap:8px}.tds-form-datetime-disabled.sc-tds-datetime .tds-datetime-container.sc-tds-datetime{border-bottom-color:transparent}.tds-form-datetime-disabled.sc-tds-datetime .datetime-icon.sc-tds-datetime tds-icon.sc-tds-datetime{color:var(--tds-datetime-icon-disabled)}.tds-form-datetime-disabled.sc-tds-datetime .tds-datetime-label.sc-tds-datetime{color:var(--tds-datetime-label-disabled);cursor:not-allowed}.tds-form-datetime-disabled.sc-tds-datetime .tds-datetime-helper.sc-tds-datetime{color:var(--tds-datetime-helper-disabled)}.tds-form-datetime-success.sc-tds-datetime .tds-datetime-container.sc-tds-datetime{border-bottom-color:var(--tds-datetime-border-bottom-success);color:var(--tds-datetime-color-success)}.tds-form-datetime-error.sc-tds-datetime .tds-datetime-helper.sc-tds-datetime{color:var(--tds-datetime-helper-error)}.tds-form-datetime-error.sc-tds-datetime .tds-datetime-container.sc-tds-datetime{border-bottom-color:var(--tds-datetime-border-bottom-error)}.tds-datetime-textcounter.sc-tds-datetime{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-datetime-textcounter);float:right}.tds-datetime-textcounter.sc-tds-datetime .tds-datetime-textcounter-divider.sc-tds-datetime{letter-spacing:var(--tds-detail-05-ls);color:var(--tds-datetime-textcounter-divider)}input[type=datetime-local].sc-tds-datetime::-webkit-inner-spin-button,input[type=datetime-local].sc-tds-datetime::-webkit-calendar-picker-indicator{opacity:0}input[type=date].sc-tds-datetime::-webkit-inner-spin-button,input[type=date].sc-tds-datetime::-webkit-calendar-picker-indicator{opacity:0}input[type=month].sc-tds-datetime::-webkit-inner-spin-button,input[type=month].sc-tds-datetime::-webkit-calendar-picker-indicator{opacity:0}input[type=week].sc-tds-datetime::-webkit-inner-spin-button,input[type=week].sc-tds-datetime::-webkit-calendar-picker-indicator{opacity:0}input[type=time].sc-tds-datetime::-webkit-inner-spin-button,input[type=time].sc-tds-datetime::-webkit-calendar-picker-indicator{opacity:0}@supports (-moz-appearance: none){.type-datetime-local.sc-tds-datetime .icon-datetime-local.sc-tds-datetime,.type-date.sc-tds-datetime .icon-datetime-local.sc-tds-datetime{display:none}}";
|
|
5
|
-
const TdsDatetimeStyle0 = datetimeCss;
|
|
6
5
|
|
|
7
6
|
const TdsDatetime = class {
|
|
8
7
|
constructor(hostRef) {
|
|
@@ -11,6 +10,30 @@ const TdsDatetime = class {
|
|
|
11
10
|
this.tdsBlur = createEvent(this, "tdsBlur", 6);
|
|
12
11
|
this.tdsFocus = createEvent(this, "tdsFocus", 6);
|
|
13
12
|
this.tdsInput = createEvent(this, "tdsInput", 6);
|
|
13
|
+
/** Sets an input type */
|
|
14
|
+
this.type = 'datetime-local';
|
|
15
|
+
/** Value of the input text */
|
|
16
|
+
this.value = '';
|
|
17
|
+
/** Default value of the component. Format for time: HH-MM. Format for date: YY-MM-DD. Format for month: YY-MM. Format for week: YY-Www Format for date-time: YY-MM-DDTHH-MM */
|
|
18
|
+
this.defaultValue = 'none';
|
|
19
|
+
/** Set input in disabled state */
|
|
20
|
+
this.disabled = false;
|
|
21
|
+
/** Size of the input */
|
|
22
|
+
this.size = 'lg';
|
|
23
|
+
/** Resets min width rule */
|
|
24
|
+
this.noMinWidth = false;
|
|
25
|
+
/** Set the variant of the Datetime component. */
|
|
26
|
+
this.modeVariant = null;
|
|
27
|
+
/** Name property. Uses a unique ID as fallback if not specified. */
|
|
28
|
+
this.name = `datetime-${generateUniqueId()}`;
|
|
29
|
+
/** Autofocus for input */
|
|
30
|
+
this.autofocus = false;
|
|
31
|
+
/** Label text for the component */
|
|
32
|
+
this.label = '';
|
|
33
|
+
/** Position of the label */
|
|
34
|
+
this.labelPosition = 'no-label';
|
|
35
|
+
/** Helper text for the component */
|
|
36
|
+
this.helper = '';
|
|
14
37
|
this.getDefaultValue = () => {
|
|
15
38
|
const dateTimeObj = {
|
|
16
39
|
year: this.defaultValue.slice(0, 4),
|
|
@@ -35,23 +58,6 @@ const TdsDatetime = class {
|
|
|
35
58
|
throw new Error('Invalid type.');
|
|
36
59
|
}
|
|
37
60
|
};
|
|
38
|
-
this.type = 'datetime-local';
|
|
39
|
-
this.value = '';
|
|
40
|
-
this.min = undefined;
|
|
41
|
-
this.max = undefined;
|
|
42
|
-
this.defaultValue = 'none';
|
|
43
|
-
this.disabled = false;
|
|
44
|
-
this.size = 'lg';
|
|
45
|
-
this.noMinWidth = false;
|
|
46
|
-
this.modeVariant = null;
|
|
47
|
-
this.name = `datetime-${generateUniqueId()}`;
|
|
48
|
-
this.state = undefined;
|
|
49
|
-
this.autofocus = false;
|
|
50
|
-
this.label = '';
|
|
51
|
-
this.labelPosition = 'no-label';
|
|
52
|
-
this.helper = '';
|
|
53
|
-
this.tdsAriaLabel = undefined;
|
|
54
|
-
this.focusInput = undefined;
|
|
55
61
|
}
|
|
56
62
|
/** Method that resets the value of the Datetime, using defaultValue if is not 'none' */
|
|
57
63
|
async reset() {
|
|
@@ -145,6 +151,6 @@ const TdsDatetime = class {
|
|
|
145
151
|
}, class: className, type: this.type, disabled: this.disabled, value: this.value, min: this.min, max: this.max, autofocus: this.autofocus, name: this.name, id: this.name, onInput: (e) => this.handleInput(e), onBlur: (e) => this.handleBlur(e), onChange: (e) => this.handleChange(e), "aria-label": this.tdsAriaLabel ? this.tdsAriaLabel : this.label }), this.labelPosition === 'inside' && this.size !== 'sm' && this.label && (h("label", { key: '48d096356ad9f547bacbf407af12c4411d5dd45f', class: `tds-datetime-label-inside ${iphone && 'iphone'}`, htmlFor: this.name }, this.label)), h("div", { key: '0ea83c4003923ffed9b11ef22131000bb696a80f', class: "datetime-icon icon-datetime-local" }, h("tds-icon", { key: '6ab6fde60c3d8ce0ad212c0d248c597a23cc6ce7', size: "20px", name: "calendar", svgTitle: "Calendar" })), h("div", { key: '4c304db3c9e6159a7827b6a83c6f81d04cbf0d19', class: "datetime-icon icon-time" }, h("tds-icon", { key: '2a91a579dc5307d35ffbd47aa67616e2e692dd1c', size: "20px", name: "clock", svgTitle: "Clock" })))), this.helper && (h("div", { key: '4883298ade40b2177450f1af3cda0b02a9c24786', class: "tds-datetime-helper" }, h("div", { key: '5baaf00b0372f50341f1995c713e3cbece2c8a4d', class: "tds-helper" }, this.state === 'error' && h("tds-icon", { key: 'a8d4aedbbba2e083578825efadbeaede47d83055', name: "error", size: "16px", svgTitle: "error" }), this.helper)))));
|
|
146
152
|
}
|
|
147
153
|
};
|
|
148
|
-
TdsDatetime.style =
|
|
154
|
+
TdsDatetime.style = datetimeCss;
|
|
149
155
|
|
|
150
156
|
export { TdsDatetime as tds_datetime };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host,
|
|
2
|
-
import { g as generateUniqueId } from './generateUniqueId-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BqRtRha-.js';
|
|
2
|
+
import { g as generateUniqueId } from './generateUniqueId-Cn4f8w1e.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Find the next focusable element index in a list of focusable elements.
|
|
@@ -49,9 +49,6 @@ const appendHiddenInput = (element, name, value, disabled, additionalAttributes)
|
|
|
49
49
|
if (!element.querySelector('input')) {
|
|
50
50
|
input = element.ownerDocument.createElement('input');
|
|
51
51
|
input.type = 'hidden';
|
|
52
|
-
if (additionalAttributes) {
|
|
53
|
-
additionalAttributes.forEach((attr) => input.setAttribute(attr.key, attr.value));
|
|
54
|
-
}
|
|
55
52
|
element.appendChild(input);
|
|
56
53
|
}
|
|
57
54
|
input.disabled = disabled;
|
|
@@ -74,8 +71,7 @@ const convertArrayToStrings = (values) => {
|
|
|
74
71
|
return values.map((value) => convertToString(value));
|
|
75
72
|
};
|
|
76
73
|
|
|
77
|
-
const dropdownCss = "@charset \"UTF-8\";:host button{all:unset;height:100%;width:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);border-radius:var(--tds-dropdown-border-radius)}:host button:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host button .value-wrapper{padding:0 16px;display:flex;align-items:center;justify-content:space-between}:host button.placeholder{color:var(--tds-dropdown-placeholder-color);line-height:1.3}:host button.value{color:var(--tds-dropdown-value-color);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);line-height:1.3}:host button:focus{border-bottom:0}:host button.error{border-bottom:1px solid var(--tds-dropdown-error)}:host button.error:focus{border-bottom-color:transparent}:host button.error:focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:1px;background:var(--tds-dropdown-error)}:host button:disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host button .menu-icon{margin-right:0}:host .dropdown-select:focus-within{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .filter{display:flex;align-items:center;justify-content:space-between;height:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);padding-left:16px;border-radius:4px 4px 0 0}:host .filter:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host .filter.disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host .filter.disabled .value-wrapper input{color:var(--tds-dropdown-disabled-color)}:host .filter .value-wrapper{display:flex;width:100%;height:100%}:host .filter .value-wrapper input{color:var(--tds-dropdown-filter-input-color)}:host .filter .label-inside-as-placeholder{position:absolute;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);line-height:1.3;color:var(--tds-dropdown-placeholder-color)}:host .filter .label-inside-as-placeholder.lg{top:20px}:host .filter .label-inside-as-placeholder.md{top:16px}:host .filter .label-inside-as-placeholder.sm{display:none}:host .filter .label-inside-as-placeholder.selected{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .filter .label-inside-as-placeholder.selected.lg{top:12px}:host .filter .label-inside-as-placeholder.selected.md{top:8px}:host .filter .label-inside-as-placeholder.selected.sm{display:none}:host .filter .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .filter.focus{border-bottom:0}:host .filter.focus:hover{border-bottom:0}:host .filter.error{border-bottom:1px solid var(--tds-dropdown-error)}:host .filter.error.focus{border-bottom-color:transparent}:host .filter.error.focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:1px;background:var(--tds-dropdown-error)}:host .filter input{flex:1;all:unset;width:100%}:host .filter input::placeholder{color:var(--tds-dropdown-placeholder-color)}:host .filter input:disabled::placeholder{color:var(--tds-dropdown-disabled-color)}:host .filter tds-icon{cursor:pointer}:host .filter .menu-icon{margin-right:16px}:host .filter .clear-icon{margin:0 8px;color:var(--tds-dropdown-clear-icon-color);padding-right:8px;border-right:1px solid var(--tds-dropdown-clear-icon-color)}:host .filter .clear-icon:hover{color:var(--tds-dropdown-clear-icon-hover-color)}:host .filter .clear-icon.hide{display:none;visibility:hidden}:host{--tds-scrollbar-width-standard:thin;--tds-scrollbar-width:10px;--tds-scrollbar-height:10px;--tds-scrollbar-thumb-border-width:3px;--tds-scrollbar-thumb-border-hover-width:2px}body{scrollbar-width:thin}:host{display:block;position:relative;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}:host .label-outside{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-dropdown-label-color);margin-bottom:8px}:host .label-outside.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select{position:relative}:host .dropdown-select button:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1;border-radius:0}:host .dropdown-select button{transition:border-bottom-color var(--tds-motion-duration-fast-02) var(--tds-motion-easing-scania)}:host .dropdown-select button:hover{border-bottom-color:var(--tds-dropdown-border-bottom-hover)}:host .dropdown-select button{border-bottom-color:var(--tds-dropdown-border-bottom)}:host .dropdown-select button.error{border-bottom-color:var(--tds-dropdown-error)}:host .dropdown-select button.error:focus{border-bottom-color:transparent}:host .dropdown-select.disabled .label-inside,:host .dropdown-select.disabled .placeholder,:host .dropdown-select.disabled .label-inside-as-placeholder,:host .dropdown-select.disabled .value-wrapper{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select.disabled button{border:none}:host .dropdown-select .label-inside{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);color:var(--tds-dropdown-label-inside-color)}:host .dropdown-select .label-inside.lg{top:12px;left:16px}:host .dropdown-select .label-inside.md{top:8px;left:16px}:host .dropdown-select .label-inside.sm{display:none}:host .dropdown-select .label-inside.xs{display:none}:host .dropdown-select .label-inside+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select .placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:var(--tds-placeholder-margin);}:host .dropdown-select .placeholder.xs{line-height:1}:host .dropdown-select .label-inside-as-placeholder{color:var(--tds-dropdown-placeholder-color)}:host .dropdown-select .label-inside-as-placeholder.selected{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .dropdown-select .label-inside-as-placeholder.selected.lg{top:12px}:host .dropdown-select .label-inside-as-placeholder.selected.md{top:8px}:host .dropdown-select .label-inside-as-placeholder.selected.sm{display:none}:host .dropdown-select .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select.lg{height:55px}:host .dropdown-select.md{height:47px}:host .dropdown-select.sm{height:39px}:host .dropdown-select.xs{height:29px}:host .helper{margin-top:4px;color:var(--tds-dropdown-helper-color);font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;align-items:center;gap:8px}:host .helper.error{color:var(--tds-dropdown-error)}:host .helper.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-list{z-index:100;position:absolute;width:100%;transform-origin:top;box-shadow:0 2px 3px 0 rgba(0, 0, 0, 0.1);border-radius:var(--tds-dropdown-list-border-radius-down);overflow-y:auto;transform:scaleY(0);pointer-events:none}:host .dropdown-list:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background:var(--tds-scrollbar-hover-thumb-color);background-clip:padding-box}:host .dropdown-list::-webkit-scrollbar{width:var(--tds-scrollbar-width)}:host .dropdown-list::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}:host .dropdown-list::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}:host .dropdown-list::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){:host .dropdown-list{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}:host .dropdown-list.lg{max-height:312px}:host .dropdown-list.md{max-height:312px}:host .dropdown-list.sm{max-height:260px}:host .dropdown-list.xs{max-height:260px}:host .dropdown-list.up{bottom:100%;margin-top:0;margin-bottom:1px;transform-origin:bottom;display:flex;flex-direction:column-reverse;border-radius:var(--tds-dropdown-list-border-radius-up)}:host .dropdown-list.up.label-outside{bottom:calc(100% - 24px)}:host .dropdown-list.closed{transform:scaleY(0);pointer-events:none}:host .dropdown-list.open{transform:scaleY(1);visibility:visible;opacity:1;pointer-events:auto}:host .dropdown-list.animation-enter-slide{transition:transform var(--tds-motion-duration-moderate-01) var(--tds-motion-easing-enter)}:host .dropdown-list.animation-exit-slide{transition:transform var(--tds-motion-duration-moderate-01) var(--tds-motion-easing-exit)}:host .dropdown-list .no-result{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:flex;align-items:center;padding:0 16px;background-color:var(--tds-dropdown-bg)}:host .dropdown-list .no-result.lg{height:56px}:host .dropdown-list .no-result.md{height:48px}:host .dropdown-list .no-result.sm{height:40px}:host .dropdown-list .no-result.xs{height:40px}:host .menu-icon{color:var(--tds-dropdown-menu-icon-color)}:host tds-icon{transition:transform var(--tds-motion-duration-fast-02) var(--tds-motion-easing-scania)}:host tds-icon.open{transform:rotateZ(180deg)}";
|
|
78
|
-
const TdsDropdownStyle0 = dropdownCss;
|
|
74
|
+
const dropdownCss = "@charset \"UTF-8\";:host button{all:unset;height:100%;width:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);border-radius:var(--tds-dropdown-border-radius)}:host button:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host button .value-wrapper{padding:0 16px;display:flex;align-items:center;justify-content:space-between}:host button.placeholder{color:var(--tds-dropdown-placeholder-color);line-height:1.3}:host button.value{color:var(--tds-dropdown-value-color);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);line-height:1.3}:host button:focus{border-bottom:0}:host button.error{border-bottom:1px solid var(--tds-dropdown-error)}:host button.error:focus{border-bottom-color:transparent}:host button.error:focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:1px;background:var(--tds-dropdown-error)}:host button:disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host button .menu-icon{margin-right:0}:host .dropdown-select:focus-within{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host .filter{display:flex;align-items:center;justify-content:space-between;height:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);padding-left:16px;border-radius:4px 4px 0 0}:host .filter:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host .filter.disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host .filter.disabled .value-wrapper input{color:var(--tds-dropdown-disabled-color)}:host .filter .value-wrapper{display:flex;width:100%;height:100%}:host .filter .value-wrapper input{color:var(--tds-dropdown-filter-input-color)}:host .filter .label-inside-as-placeholder{position:absolute;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);line-height:1.3;color:var(--tds-dropdown-placeholder-color)}:host .filter .label-inside-as-placeholder.lg{top:20px}:host .filter .label-inside-as-placeholder.md{top:16px}:host .filter .label-inside-as-placeholder.sm{display:none}:host .filter .label-inside-as-placeholder.selected{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .filter .label-inside-as-placeholder.selected.lg{top:12px}:host .filter .label-inside-as-placeholder.selected.md{top:8px}:host .filter .label-inside-as-placeholder.selected.sm{display:none}:host .filter .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .filter.focus{border-bottom:0}:host .filter.focus:hover{border-bottom:0}:host .filter.error{border-bottom:1px solid var(--tds-dropdown-error)}:host .filter.error.focus{border-bottom-color:transparent}:host .filter.error.focus::before{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:1px;background:var(--tds-dropdown-error)}:host .filter input{flex:1;all:unset;width:100%}:host .filter input::placeholder{color:var(--tds-dropdown-placeholder-color)}:host .filter input:disabled::placeholder{color:var(--tds-dropdown-disabled-color)}:host .filter tds-icon{cursor:pointer}:host .filter .menu-icon{margin-right:16px}:host .filter .clear-icon{margin:0 8px;color:var(--tds-dropdown-clear-icon-color);padding-right:8px;border-right:1px solid var(--tds-dropdown-clear-icon-color)}:host .filter .clear-icon:hover{color:var(--tds-dropdown-clear-icon-hover-color)}:host .filter .clear-icon.hide{display:none;visibility:hidden}:host{--tds-scrollbar-width-standard:thin;--tds-scrollbar-width:10px;--tds-scrollbar-height:10px;--tds-scrollbar-thumb-border-width:3px;--tds-scrollbar-thumb-border-hover-width:2px}body{scrollbar-width:thin}:host{display:block;position:relative;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}:host .label-outside{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-dropdown-label-color);margin-bottom:8px}:host .label-outside.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select{position:relative}:host .dropdown-select button:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1;border-radius:0}:host .dropdown-select button{transition:border-bottom-color var(--tds-motion-duration-fast-02) var(--tds-motion-easing-scania)}:host .dropdown-select button:hover{border-bottom-color:var(--tds-dropdown-border-bottom-hover)}:host .dropdown-select button{border-bottom-color:var(--tds-dropdown-border-bottom)}:host .dropdown-select button.error{border-bottom-color:var(--tds-dropdown-error)}:host .dropdown-select button.error:focus{border-bottom-color:transparent}:host .dropdown-select.disabled .label-inside,:host .dropdown-select.disabled .placeholder,:host .dropdown-select.disabled .label-inside-as-placeholder,:host .dropdown-select.disabled .value-wrapper,:host .dropdown-select.disabled .menu-icon{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select.disabled button{border:none}:host .dropdown-select .label-inside{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);color:var(--tds-dropdown-label-inside-color)}:host .dropdown-select .label-inside.lg{top:12px;left:16px}:host .dropdown-select .label-inside.md{top:8px;left:16px}:host .dropdown-select .label-inside.sm{display:none}:host .dropdown-select .label-inside.xs{display:none}:host .dropdown-select .label-inside+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select .placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:var(--tds-placeholder-margin);}:host .dropdown-select .placeholder.xs{line-height:1}:host .dropdown-select .label-inside-as-placeholder{color:var(--tds-dropdown-placeholder-color)}:host .dropdown-select .label-inside-as-placeholder.selected{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .dropdown-select .label-inside-as-placeholder.selected.lg{top:12px}:host .dropdown-select .label-inside-as-placeholder.selected.md{top:8px}:host .dropdown-select .label-inside-as-placeholder.selected.sm{display:none}:host .dropdown-select .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select.lg{height:55px}:host .dropdown-select.md{height:47px}:host .dropdown-select.sm{height:39px}:host .dropdown-select.xs{height:29px}:host .helper{margin-top:4px;color:var(--tds-dropdown-helper-color);font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;align-items:center;gap:8px}:host .helper.error{color:var(--tds-dropdown-error)}:host .helper.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-list{z-index:100;position:absolute;width:100%;transform-origin:top;box-shadow:0 2px 3px 0 rgba(0, 0, 0, 0.1);border-radius:var(--tds-dropdown-list-border-radius-down);overflow-y:auto;transform:scaleY(0);pointer-events:none;background-color:var(--tds-dropdown-bg)}:host .dropdown-list:hover::-webkit-scrollbar-thumb{border:var(--tds-scrollbar-thumb-border-hover-width) solid transparent;background:var(--tds-scrollbar-hover-thumb-color);background-clip:padding-box}:host .dropdown-list::-webkit-scrollbar{width:var(--tds-scrollbar-width)}:host .dropdown-list::-webkit-scrollbar-track{background:var(--tds-scrollbar-track-color)}:host .dropdown-list::-webkit-scrollbar-thumb{border-radius:40px;background:var(--tds-scrollbar-thumb-color);border:var(--tds-scrollbar-thumb-border-width) solid transparent;background-clip:padding-box}:host .dropdown-list::-webkit-scrollbar-button{height:0;width:0}@supports not selector(::-webkit-scrollbar){:host .dropdown-list{scrollbar-color:var(--tds-scrollbar-thumb-color) var(--tds-scrollbar-track-color);scrollbar-width:var(--tds-scrollbar-width-standard)}}:host .dropdown-list.lg{max-height:312px}:host .dropdown-list.md{max-height:312px}:host .dropdown-list.sm{max-height:260px}:host .dropdown-list.xs{max-height:260px}:host .dropdown-list.up{bottom:100%;margin-top:0;margin-bottom:1px;transform-origin:bottom;display:flex;flex-direction:column-reverse;border-radius:var(--tds-dropdown-list-border-radius-up)}:host .dropdown-list.up.label-outside{bottom:calc(100% - 24px)}:host .dropdown-list.closed{transform:scaleY(0);pointer-events:none}:host .dropdown-list.open{transform:scaleY(1);visibility:visible;opacity:1;pointer-events:auto}:host .dropdown-list.animation-enter-slide{transition:transform var(--tds-motion-duration-moderate-01) var(--tds-motion-easing-enter)}:host .dropdown-list.animation-exit-slide{transition:transform var(--tds-motion-duration-moderate-01) var(--tds-motion-easing-exit)}:host .dropdown-list .no-result{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:flex;align-items:center;padding:0 16px;background-color:var(--tds-dropdown-bg)}:host .dropdown-list .no-result.lg{height:56px}:host .dropdown-list .no-result.md{height:48px}:host .dropdown-list .no-result.sm{height:40px}:host .dropdown-list .no-result.xs{height:40px}:host .menu-icon{color:var(--tds-dropdown-menu-icon-color)}:host tds-icon{transition:transform var(--tds-motion-duration-fast-02) var(--tds-motion-easing-scania)}:host tds-icon.open{transform:rotateZ(180deg)}";
|
|
79
75
|
|
|
80
76
|
function hasValueChanged(newValue, currentValue) {
|
|
81
77
|
if (newValue.length !== currentValue.length)
|
|
@@ -89,6 +85,32 @@ const TdsDropdown = class {
|
|
|
89
85
|
this.tdsFocus = createEvent(this, "tdsFocus", 6);
|
|
90
86
|
this.tdsBlur = createEvent(this, "tdsBlur", 6);
|
|
91
87
|
this.tdsInput = createEvent(this, "tdsInput", 6);
|
|
88
|
+
this.tdsClear = createEvent(this, "tdsClear", 6);
|
|
89
|
+
/** Sets the Dropdown in a disabled state */
|
|
90
|
+
this.disabled = false;
|
|
91
|
+
/** Mode variant of the component, based on current mode. */
|
|
92
|
+
this.modeVariant = null;
|
|
93
|
+
/** The direction the Dropdown should open, auto if not specified. */
|
|
94
|
+
this.openDirection = 'auto';
|
|
95
|
+
/** The size of the Dropdown. */
|
|
96
|
+
this.size = 'lg';
|
|
97
|
+
this.animation = 'slide';
|
|
98
|
+
/** Sets the Dropdown in an error state */
|
|
99
|
+
this.error = false;
|
|
100
|
+
/** Enables multiselect in the Dropdown. */
|
|
101
|
+
this.multiselect = false;
|
|
102
|
+
/** Enables filtration in the Dropdown. */
|
|
103
|
+
this.filter = false;
|
|
104
|
+
/** Normalizes input text for fuzzier search */
|
|
105
|
+
this.normalizeText = true;
|
|
106
|
+
/** Text that is displayed if filter is used and there are no options that matches the search.
|
|
107
|
+
* Setting it to an empty string disables message from showing up. */
|
|
108
|
+
this.noResultText = 'No result';
|
|
109
|
+
/** Value of the dropdown. For multiselect, provide array of strings/numbers. For single select, provide a string/number. */
|
|
110
|
+
this.value = null;
|
|
111
|
+
this.open = false;
|
|
112
|
+
this.selectedOptions = [];
|
|
113
|
+
this.filterQuery = '';
|
|
92
114
|
this.hasFocus = false;
|
|
93
115
|
this.setDefaultOption = () => {
|
|
94
116
|
if (this.internalDefaultValue) {
|
|
@@ -198,6 +220,8 @@ const TdsDropdown = class {
|
|
|
198
220
|
}
|
|
199
221
|
};
|
|
200
222
|
this.handleFilterReset = () => {
|
|
223
|
+
// Store the current filter query before clearing
|
|
224
|
+
const clearedValue = this.filterQuery;
|
|
201
225
|
// only reset selected values when filterquery is blank
|
|
202
226
|
if (!this.filterQuery.length) {
|
|
203
227
|
this.reset();
|
|
@@ -207,6 +231,7 @@ const TdsDropdown = class {
|
|
|
207
231
|
this.inputElement.focus();
|
|
208
232
|
// Add this line to ensure internal value is cleared
|
|
209
233
|
this.internalValue = '';
|
|
234
|
+
this.tdsClear.emit({ clearedValue });
|
|
210
235
|
};
|
|
211
236
|
this.handleFocus = () => {
|
|
212
237
|
this.open = true;
|
|
@@ -232,31 +257,6 @@ const TdsDropdown = class {
|
|
|
232
257
|
this.reset();
|
|
233
258
|
}
|
|
234
259
|
};
|
|
235
|
-
this.name = undefined;
|
|
236
|
-
this.disabled = false;
|
|
237
|
-
this.helper = undefined;
|
|
238
|
-
this.label = undefined;
|
|
239
|
-
this.labelPosition = undefined;
|
|
240
|
-
this.modeVariant = null;
|
|
241
|
-
this.openDirection = 'auto';
|
|
242
|
-
this.placeholder = undefined;
|
|
243
|
-
this.size = 'lg';
|
|
244
|
-
this.animation = 'slide';
|
|
245
|
-
this.error = false;
|
|
246
|
-
this.multiselect = false;
|
|
247
|
-
this.filter = false;
|
|
248
|
-
this.normalizeText = true;
|
|
249
|
-
this.noResultText = 'No result';
|
|
250
|
-
this.defaultValue = undefined;
|
|
251
|
-
this.value = null;
|
|
252
|
-
this.tdsAriaLabel = undefined;
|
|
253
|
-
this.open = false;
|
|
254
|
-
this.internalValue = undefined;
|
|
255
|
-
this.filterResult = undefined;
|
|
256
|
-
this.filterFocus = undefined;
|
|
257
|
-
this.internalDefaultValue = undefined;
|
|
258
|
-
this.selectedOptions = [];
|
|
259
|
-
this.filterQuery = '';
|
|
260
260
|
}
|
|
261
261
|
handleValueChange(newValue) {
|
|
262
262
|
// Normalize to array
|
|
@@ -418,6 +418,10 @@ const TdsDropdown = class {
|
|
|
418
418
|
// Source: https://lamplightdev.com/blog/2021/04/10/how-to-detect-clicks-outside-of-a-web-component/
|
|
419
419
|
const isClickOutside = !event.composedPath().includes(this.host);
|
|
420
420
|
if (isClickOutside) {
|
|
421
|
+
// Emit clear event if there's a filter query when clicking outside
|
|
422
|
+
if (this.filter && this.filterQuery) {
|
|
423
|
+
this.tdsClear.emit({ clearedValue: this.filterQuery });
|
|
424
|
+
}
|
|
421
425
|
this.open = false;
|
|
422
426
|
}
|
|
423
427
|
}
|
|
@@ -560,9 +564,9 @@ const TdsDropdown = class {
|
|
|
560
564
|
// Generate unique IDs for associating labels and helpers with the input/button
|
|
561
565
|
const labelId = this.label ? `dropdown-label-${this.name || generateUniqueId()}` : undefined;
|
|
562
566
|
const helperId = this.helper ? `dropdown-helper-${this.name || generateUniqueId()}` : undefined;
|
|
563
|
-
return (h(Host, { key: '
|
|
567
|
+
return (h(Host, { key: 'ebb4008f7e27e9f9de603b1dfeb5100f45f0e600', class: {
|
|
564
568
|
[`tds-mode-variant-${this.modeVariant}`]: Boolean(this.modeVariant),
|
|
565
|
-
} }, this.label && this.labelPosition === 'outside' && (h("div", { key: '
|
|
569
|
+
} }, this.label && this.labelPosition === 'outside' && (h("div", { key: '77f30a6ec80264fe89422b8f129e763d2fe2a64c', id: labelId, class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { key: '3d3d3ca87cae2df4f043feb1f6bdbf4482cc4223', class: {
|
|
566
570
|
'dropdown-select': true,
|
|
567
571
|
[this.size]: true,
|
|
568
572
|
'disabled': this.disabled,
|
|
@@ -606,7 +610,7 @@ const TdsDropdown = class {
|
|
|
606
610
|
label-inside-as-placeholder
|
|
607
611
|
${this.size}
|
|
608
612
|
${this.selectedOptions.length ? 'selected' : ''}
|
|
609
|
-
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, this.selectedOptions.length ? this.getValue() : this.placeholder), 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: '
|
|
613
|
+
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, this.selectedOptions.length ? this.getValue() : this.placeholder), 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: '48e96d8ecac8918e11c6e2c0e1321802b61dbf7d', role: "listbox", "aria-label": this.tdsAriaLabel, inert: !this.open, "aria-orientation": "vertical", "aria-multiselectable": this.multiselect, ref: (element) => {
|
|
610
614
|
this.dropdownList = element;
|
|
611
615
|
}, class: {
|
|
612
616
|
'dropdown-list': true,
|
|
@@ -617,11 +621,11 @@ const TdsDropdown = class {
|
|
|
617
621
|
'closed': !this.open,
|
|
618
622
|
[`animation-enter-${this.animation}`]: this.animation !== 'none' && this.open,
|
|
619
623
|
[`animation-exit-${this.animation}`]: this.animation !== 'none' && !this.open,
|
|
620
|
-
} }, h("slot", { key: '
|
|
624
|
+
} }, h("slot", { key: 'd49f3a638a9f6b1b08e3489dffad27151c0c554f', onSlotchange: () => this.handleSlotChange() }), this.filterResult === 0 && this.noResultText !== '' && (h("div", { key: 'b38d308604e30fdb130d72295d2d3f7bf2fb9bd6', class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { key: '1f8160ac1f0ecdc0d4f29faa31c469a0bd04b0d6', id: helperId, class: {
|
|
621
625
|
helper: true,
|
|
622
626
|
error: this.error,
|
|
623
627
|
disabled: this.disabled,
|
|
624
|
-
} }, this.error && h("tds-icon", { key: '
|
|
628
|
+
} }, this.error && h("tds-icon", { key: '487fb6deb5bd27347b2cd4f607e5488543185894', name: "error", size: "16px" }), this.helper))));
|
|
625
629
|
}
|
|
626
630
|
get host() { return getElement(this); }
|
|
627
631
|
static get watchers() { return {
|
|
@@ -630,10 +634,9 @@ const TdsDropdown = class {
|
|
|
630
634
|
"defaultValue": ["handleDefaultValueChange"]
|
|
631
635
|
}; }
|
|
632
636
|
};
|
|
633
|
-
TdsDropdown.style =
|
|
637
|
+
TdsDropdown.style = dropdownCss;
|
|
634
638
|
|
|
635
639
|
const dropdownOptionCss = ":host{box-sizing:border-box;display:block;background-color:var(--tds-dropdown-option-background)}:host *{box-sizing:border-box}:host .dropdown-option{color:var(--tds-dropdown-option-color);border-bottom:1px solid var(--tds-dropdown-option-border);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);overflow-wrap:anywhere;transition:background-color var(--tds-motion-duration-fast-02) var(--tds-motion-easing-scania)}:host .dropdown-option.selected{background-color:var(--tds-dropdown-option-background-selected)}:host .dropdown-option.disabled{color:var(--tds-dropdown-option-color-disabled)}:host .dropdown-option button:focus{outline:2px solid var(--tds-focus-outline-color);box-shadow:inset 0 0 0 3px var(--tds-white);outline-offset:-2px}:host .dropdown-option button{all:unset;width:100%}:host .dropdown-option button.lg{padding:19px 0 20px}:host .dropdown-option button.md{padding:15px 0 16px}:host .dropdown-option button.sm{padding:11px 0 12px}:host .dropdown-option button.xs{padding:7px 0 8px}:host .dropdown-option button .single-select{display:flex;align-items:center;justify-content:space-between;padding:0 16px}:host .dropdown-option .multiselect{width:100%;height:100%}:host .dropdown-option .multiselect tds-checkbox{display:flex;height:100%;width:100%}:host .dropdown-option .multiselect tds-checkbox.lg{padding:15px 16px 16px}:host .dropdown-option .multiselect tds-checkbox.md{padding:11px 16px 12px}:host .dropdown-option .multiselect tds-checkbox.sm{padding:7px 16px 8px}:host .dropdown-option .multiselect tds-checkbox.xs{padding:7px 16px 8px}:host .dropdown-option:hover{border-bottom-color:var(--tds-dropdown-option-border-hover);cursor:pointer}:host .dropdown-option:hover.disabled{border-bottom-color:var(--tds-dropdown-option-border-hover);cursor:not-allowed}:host([hidden]){display:none}";
|
|
636
|
-
const TdsDropdownOptionStyle0 = dropdownOptionCss;
|
|
637
640
|
|
|
638
641
|
const TdsDropdownOption = class {
|
|
639
642
|
constructor(hostRef) {
|
|
@@ -641,6 +644,11 @@ const TdsDropdownOption = class {
|
|
|
641
644
|
this.tdsSelect = createEvent(this, "tdsSelect", 6);
|
|
642
645
|
this.tdsFocus = createEvent(this, "tdsFocus", 6);
|
|
643
646
|
this.tdsBlur = createEvent(this, "tdsBlur", 6);
|
|
647
|
+
/** Sets the option as disabled. */
|
|
648
|
+
this.disabled = false;
|
|
649
|
+
this.selected = false;
|
|
650
|
+
this.multiselect = false;
|
|
651
|
+
this.size = 'lg';
|
|
644
652
|
this.parentElement = null;
|
|
645
653
|
// @ts-expect-error - label property is used internally for text content tracking
|
|
646
654
|
// eslint-disable-next-line no-unused-vars,
|
|
@@ -706,13 +714,6 @@ const TdsDropdownOption = class {
|
|
|
706
714
|
this.tdsBlur.emit(event);
|
|
707
715
|
}
|
|
708
716
|
};
|
|
709
|
-
this.value = undefined;
|
|
710
|
-
this.internalValue = undefined;
|
|
711
|
-
this.disabled = false;
|
|
712
|
-
this.tdsAriaLabel = undefined;
|
|
713
|
-
this.selected = false;
|
|
714
|
-
this.multiselect = false;
|
|
715
|
-
this.size = 'lg';
|
|
716
717
|
}
|
|
717
718
|
/** Method to select/deselect an option. */
|
|
718
719
|
async setSelected(selected) {
|
|
@@ -749,6 +750,6 @@ const TdsDropdownOption = class {
|
|
|
749
750
|
"value": ["valueWatcher"]
|
|
750
751
|
}; }
|
|
751
752
|
};
|
|
752
|
-
TdsDropdownOption.style =
|
|
753
|
+
TdsDropdownOption.style = dropdownOptionCss;
|
|
753
754
|
|
|
754
755
|
export { TdsDropdown as tds_dropdown, TdsDropdownOption as tds_dropdown_option };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host,
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BqRtRha-.js';
|
|
2
2
|
|
|
3
3
|
const folderTabCss = ":host{box-sizing:border-box;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;min-width:142px;display:block;width:calc(100% - 32px);font:var(--tds-headline-07) !important;letter-spacing:var(--tds-headline-07-ls) !important;cursor:pointer;padding:16px;white-space:nowrap;text-decoration:none;text-align:left;outline:none;border:none}:host ::slotted(*:focus-within)::before{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1;content:\"\";position:absolute;top:3px;bottom:3px;left:3px;right:3px}:host div:not(.selected){background-color:var(--tds-folder-tab-background);position:relative}:host div:not(.selected)::before{content:\"\";position:absolute;left:0;top:0;bottom:0;width:1px;background-color:var(--tds-folder-tab-divider-color)}:host div:not(.selected) ::slotted(*){border-top:2px solid transparent;color:var(--tds-folder-tab-item-color)}:host div:not(.selected):hover:not(.disabled){background-color:var(--tds-folder-tab-background-hover);cursor:pointer}:host div:not(.selected):hover:not(.disabled) ::slotted(*){border-top:2px solid var(--tds-folder-tab-top-border-hover);color:var(--tds-folder-tab-color)}:host div:not(.selected).disabled{background-color:var(--tds-folder-tab-item-background-disabled)}:host div:not(.selected).disabled ::slotted(*){color:var(--tds-folder-tab-item-color-disabled)}:host div:not(.selected).disabled ::slotted(*:focus-visible){outline:none}:host div:not(.selected).disabled ::slotted(*:hover){cursor:not-allowed}:host div:not(.selected).disabled ::slotted(*::after){content:none}:host .selected{background-color:var(--tds-folder-tab-background-selected);border-top:2px solid var(--tds-folder-tab-border-selected)}:host .selected::after{content:\" \";background-color:var(--tds-folder-tab-divider-color);width:1px;top:0;bottom:0;right:-1px;display:block;position:absolute;z-index:1}:host .selected ::slotted(*){color:var(--tds-folder-tab-color)}:host .selected:hover:not(.disabled){background-color:var(--tds-folder-tab-background-hover);cursor:pointer}:host .selected:hover:not(.disabled) ::slotted(*){color:var(--tds-folder-tab-color)}:host(.first) ::slotted(*){border-left-color:transparent}:host(.first) .selected{border-left:none}";
|
|
4
|
-
const TdsFolderTabStyle0 = folderTabCss;
|
|
5
4
|
|
|
6
5
|
const TdsFolderTab = class {
|
|
7
6
|
constructor(hostRef) {
|
|
8
7
|
registerInstance(this, hostRef);
|
|
8
|
+
/** Disables the Tab. */
|
|
9
9
|
this.disabled = false;
|
|
10
10
|
this.selected = false;
|
|
11
|
-
this.tabWidth = undefined;
|
|
12
11
|
}
|
|
13
12
|
/** @internal Method to set the width of the tab. Used by the <tds-folder-tabs> */
|
|
14
13
|
async setTabWidth(width) {
|
|
@@ -44,6 +43,6 @@ const TdsFolderTab = class {
|
|
|
44
43
|
}
|
|
45
44
|
get host() { return getElement(this); }
|
|
46
45
|
};
|
|
47
|
-
TdsFolderTab.style =
|
|
46
|
+
TdsFolderTab.style = folderTabCss;
|
|
48
47
|
|
|
49
48
|
export { TdsFolderTab as tds_folder_tab };
|
|
@@ -1,12 +1,22 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host,
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-BqRtRha-.js';
|
|
2
2
|
|
|
3
3
|
const folderTabsCss = ":host{box-sizing:border-box;overflow:hidden;outline:0}:host *{box-sizing:border-box}:host .wrapper{display:flex;overflow-x:scroll;scrollbar-width:none;position:relative}:host .wrapper::-webkit-scrollbar{display:none}:host .scroll-right-button{z-index:1;right:0}:host .scroll-left-button{z-index:1;left:0}:host .scroll-right-button,:host .scroll-left-button{height:50px;color:var(--tds-folder-tabs-scroll-btn-color);cursor:pointer;border:0;width:0;background-color:var(--tds-folder-tabs-scroll-btn-background);display:none;justify-content:center;align-items:center;opacity:0;pointer-events:none;position:sticky}:host .scroll-right-button.show,:host .scroll-left-button.show{min-width:48px;display:block;opacity:1;pointer-events:all}:host .scroll-right-button:hover,:host .scroll-left-button:hover{background-color:var(--tds-folder-tabs-scroll-btn-background-hover)}:host .scroll-right-button:active,:host .scroll-left-button:active{background-color:var(--tds-folder-tabs-scroll-btn-background-active)}:host .scroll-right-button:focus-within::before,:host .scroll-left-button:focus-within::before{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1;content:\"\";position:absolute;top:3px;bottom:3px;left:3px;right:3px}:host .scroll-right-button:focus,:host .scroll-left-button:focus{outline:0}:host .scroll-right-button svg,:host .scroll-left-button svg{fill:var(--tds-folder-tabs-scroll-btn-color)}";
|
|
4
|
-
const TdsFolderTabsStyle0 = folderTabsCss;
|
|
5
4
|
|
|
6
5
|
const TdsFolderTabs = class {
|
|
7
6
|
constructor(hostRef) {
|
|
8
7
|
registerInstance(this, hostRef);
|
|
9
8
|
this.tdsChange = createEvent(this, "tdsChange", 7);
|
|
9
|
+
/** Variant of the Tabs, primary= on white, secondary= on grey50 */
|
|
10
|
+
this.modeVariant = null;
|
|
11
|
+
/** Sets the default selected Tab. */
|
|
12
|
+
this.defaultSelectedIndex = 0;
|
|
13
|
+
/** Defines aria-label on left scroll button */
|
|
14
|
+
this.tdsScrollLeftAriaLabel = 'Scroll left';
|
|
15
|
+
/** Defines aria-label on right scroll button */
|
|
16
|
+
this.tdsScrollRightAriaLabel = 'Scroll right';
|
|
17
|
+
this.buttonWidth = 0;
|
|
18
|
+
this.showLeftScroll = false;
|
|
19
|
+
this.showRightScroll = false;
|
|
10
20
|
this.navWrapperElement = null; // reference to container with nav buttons
|
|
11
21
|
this.componentWidth = 0; // visible width of this component
|
|
12
22
|
this.buttonsWidth = 0; // total width of all nav items combined
|
|
@@ -60,14 +70,6 @@ const TdsFolderTabs = class {
|
|
|
60
70
|
}
|
|
61
71
|
});
|
|
62
72
|
};
|
|
63
|
-
this.modeVariant = null;
|
|
64
|
-
this.defaultSelectedIndex = 0;
|
|
65
|
-
this.selectedIndex = undefined;
|
|
66
|
-
this.tdsScrollLeftAriaLabel = 'Scroll left';
|
|
67
|
-
this.tdsScrollRightAriaLabel = 'Scroll right';
|
|
68
|
-
this.buttonWidth = 0;
|
|
69
|
-
this.showLeftScroll = false;
|
|
70
|
-
this.showRightScroll = false;
|
|
71
73
|
}
|
|
72
74
|
/** Sets the passed tabindex as the selected Tab. */
|
|
73
75
|
async selectTab(tabIndex) {
|
|
@@ -174,6 +176,6 @@ const TdsFolderTabs = class {
|
|
|
174
176
|
"selectedIndex": ["handleSelectedIndexUpdate"]
|
|
175
177
|
}; }
|
|
176
178
|
};
|
|
177
|
-
TdsFolderTabs.style =
|
|
179
|
+
TdsFolderTabs.style = folderTabsCss;
|
|
178
180
|
|
|
179
181
|
export { TdsFolderTabs as tds_folder_tabs };
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host,
|
|
2
|
-
import { h as hasSlot } from './hasSlot-
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-BqRtRha-.js';
|
|
2
|
+
import { h as hasSlot } from './hasSlot-DDX6uFcm.js';
|
|
3
3
|
|
|
4
|
-
const footerGroupCss = ":host{display:block}:host .footer-top-title{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-footer-top-links-header);padding-bottom:8px}:host .footer-top-title *,:host .footer-top-title ::slotted(*){margin:0}:host button.footer-top-title-button{border:none;width:100%;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-footer-top-links);background-color:transparent;text-align:left;padding:19px 24px;justify-content:space-between;border-bottom:1px solid var(--tds-footer-top-divider)}:host button.footer-top-title-button *,:host button.footer-top-title-button ::slotted(*){margin:0}:host button.footer-top-title-button.expanded
|
|
5
|
-
const TdsFooterGroupStyle0 = footerGroupCss;
|
|
4
|
+
const footerGroupCss = ":host{display:block}:host .footer-top-title{font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-footer-top-links-header);padding-bottom:8px}:host .footer-top-title *,:host .footer-top-title ::slotted(*){margin:0}:host button.footer-top-title-button{border:none;width:100%;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-footer-top-links);background-color:transparent;text-align:left;padding:19px 24px;justify-content:space-between;border-bottom:1px solid var(--tds-footer-top-divider)}:host button.footer-top-title-button *,:host button.footer-top-title-button ::slotted(*){margin:0}:host button.footer-top-title-button.expanded tds-icon{transform:rotateZ(180deg)}:host button.footer-top-title-button:hover{cursor:pointer}:host button.footer-top-title-button:active{background-color:var(--tds-footer-top-button-active)}:host button.footer-top-title-button:focus-visible{outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}:host button.footer-top-title-button tds-icon{transition:transform 0.2s ease-in-out}:host [role=list]{list-style:none;padding:0;margin:0;display:flex;gap:12px}:host [role=list].start,:host [role=list].end{gap:24px}:host [role=list].top-part-child{flex-direction:column}:host .mobile-view [role=list].start:not(.top-part-child){flex-direction:column}:host .mobile-view [role=list].start:not(.top-part-child).start,:host .mobile-view [role=list].start:not(.top-part-child).end{gap:8px}:host .mobile-view [role=list].top-part-child.closed{display:none}:host .mobile-view [role=list].top-part-child{gap:0}:host .mobile-view button.footer-top-title-button{display:flex;align-items:center}";
|
|
6
5
|
|
|
7
6
|
const TdsFooterGroup = class {
|
|
8
7
|
constructor(hostRef) {
|
|
9
8
|
registerInstance(this, hostRef);
|
|
9
|
+
/** In mobile, this indicates when the group (if it's in the top part) is opened/closed. */
|
|
10
|
+
this.open = false;
|
|
10
11
|
/** If the group is placed in the main part of the Footer,
|
|
11
12
|
* it can have either start or end as a slot position otherwise undefined. */
|
|
12
13
|
this.slotPosition = null;
|
|
13
14
|
/** Indicates if a group is part of the top part of the Footer. */
|
|
14
15
|
this.topPartGroup = false;
|
|
15
|
-
this.titleText = undefined;
|
|
16
|
-
this.tdsListAriaLabel = undefined;
|
|
17
|
-
this.open = false;
|
|
18
|
-
this.isMobile = undefined;
|
|
19
16
|
}
|
|
20
17
|
updateIsMobile() {
|
|
21
18
|
this.isMobile = window.innerWidth <= 992;
|
|
@@ -51,6 +48,6 @@ const TdsFooterGroup = class {
|
|
|
51
48
|
}
|
|
52
49
|
get host() { return getElement(this); }
|
|
53
50
|
};
|
|
54
|
-
TdsFooterGroup.style =
|
|
51
|
+
TdsFooterGroup.style = footerGroupCss;
|
|
55
52
|
|
|
56
53
|
export { TdsFooterGroup as tds_footer_group };
|