@scania/tegel 1.18.0-1.18.0-tdsheaderitembeta.2 → 1.18.0-beta.2
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/findClosestComponent-64302a79.js +14 -0
- package/dist/cjs/getDirectChildHTMLElementOfKind-6e210da2.js +11 -0
- package/dist/cjs/index-ca8040ad.js +58 -46
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/tagName-3399a06c.js +120 -0
- package/dist/cjs/tds-accordion-item.cjs.entry.js +7 -4
- package/dist/cjs/tds-badge.cjs.entry.js +1 -1
- package/dist/cjs/tds-banner.cjs.entry.js +5 -3
- package/dist/cjs/tds-block.cjs.entry.js +2 -2
- package/dist/cjs/tds-body-cell.cjs.entry.js +5 -3
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/tds-button.cjs.entry.js +3 -3
- package/dist/cjs/tds-card.cjs.entry.js +4 -2
- package/dist/cjs/tds-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/tds-chip.cjs.entry.js +1 -1
- package/dist/cjs/tds-core-header-item.cjs.entry.js +20 -0
- package/dist/cjs/tds-datetime.cjs.entry.js +6 -3
- package/dist/cjs/tds-divider.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +95 -0
- package/dist/cjs/{tds-dropdown_2.cjs.entry.js → tds-dropdown.cjs.entry.js} +12 -98
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-footer-group.cjs.entry.js +6 -4
- package/dist/cjs/tds-footer-item.cjs.entry.js +6 -2
- package/dist/cjs/tds-footer.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-cell.cjs.entry.js +9 -4
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +2 -2
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +4 -4
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +5 -3
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +4 -2
- package/dist/cjs/{tds-core-header-item_2.cjs.entry.js → tds-header-item.cjs.entry.js} +6 -17
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +4 -2
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +4 -4
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +4 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +4 -1
- package/dist/cjs/tds-header-launcher.cjs.entry.js +6 -3
- package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header.cjs.entry.js +2 -15
- package/dist/cjs/tds-icon.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-link.cjs.entry.js +2 -2
- package/dist/cjs/tds-message.cjs.entry.js +6 -3
- package/dist/cjs/tds-modal.cjs.entry.js +3 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +4 -2
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +4 -2
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +3 -3
- package/dist/cjs/tds-popover-menu.cjs.entry.js +5 -3
- package/dist/cjs/tds-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +3 -1
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +8 -5
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +7 -5
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +5 -3
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +7 -4
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +8 -5
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user-image.cjs.entry.js +22 -0
- package/dist/cjs/tds-side-menu-user-label.cjs.entry.js +22 -0
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +5 -2
- package/dist/cjs/tds-slider.cjs.entry.js +11 -8
- package/dist/cjs/tds-step.cjs.entry.js +7 -4
- package/dist/cjs/tds-table-body-input-wrapper.cjs.entry.js +8 -5
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +12 -9
- package/dist/cjs/tds-table-body-row.cjs.entry.js +6 -3
- package/dist/cjs/tds-table-body.cjs.entry.js +12 -6
- package/dist/cjs/tds-table-footer.cjs.entry.js +12 -8
- package/dist/cjs/tds-table-header-input-wrapper.cjs.entry.js +8 -5
- package/dist/cjs/tds-table-header.cjs.entry.js +13 -7
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +6 -3
- package/dist/cjs/tds-table.cjs.entry.js +13 -9
- package/dist/cjs/tds-text-field.cjs.entry.js +8 -6
- package/dist/cjs/tds-textarea.cjs.entry.js +6 -3
- package/dist/cjs/tds-toast.cjs.entry.js +9 -6
- package/dist/cjs/tds-tooltip.cjs.entry.js +4 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/collection/components/accordion/accordion-item/accordion-item.css +1 -6
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +6 -3
- package/dist/collection/components/badge/badge.js +1 -1
- package/dist/collection/components/banner/banner.css +1 -1
- package/dist/collection/components/banner/banner.js +4 -2
- package/dist/collection/components/block/block.js +2 -2
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +1 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
- package/dist/collection/components/button/button.css +58 -187
- package/dist/collection/components/button/button.js +2 -2
- package/dist/collection/components/card/card.js +4 -2
- package/dist/collection/components/checkbox/checkbox.js +2 -2
- package/dist/collection/components/chip/chip.js +1 -1
- package/dist/collection/components/datetime/datetime.css +2 -2
- package/dist/collection/components/datetime/datetime.js +6 -3
- package/dist/collection/components/divider/divider.js +1 -1
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +7 -7
- package/dist/collection/components/dropdown/dropdown.css +3 -3
- package/dist/collection/components/dropdown/dropdown.js +11 -8
- package/dist/collection/components/footer/footer-group/footer-group.css +2 -2
- package/dist/collection/components/footer/footer-group/footer-group.js +5 -3
- package/dist/collection/components/footer/footer-item/footer-item.js +5 -2
- package/dist/collection/components/footer/footer.js +1 -1
- package/dist/collection/components/header/core-header-item/core-header-item.js +1 -1
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.css +3 -3
- package/dist/collection/components/header/header-brand-symbol/header-brand-symbol.js +1 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +5 -3
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +2 -2
- package/dist/collection/components/header/header-dropdown-list-item/header-dropdown-list-item.js +2 -2
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +1 -1
- package/dist/collection/components/header/header-hamburger/header-hamburger.css +3 -3
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +3 -1
- package/dist/collection/components/header/header-item/header-item.js +6 -3
- package/dist/collection/components/header/header-launcher/header-launcher.js +6 -3
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.css +1 -1
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +3 -1
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +1 -1
- package/dist/collection/components/header/header-launcher-grid-item/header-launcher-grid-item.js +1 -1
- package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +1 -1
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +4 -1
- package/dist/collection/components/header/header-launcher-list-item/header-launcher-list-item.js +4 -1
- package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +1 -1
- package/dist/collection/components/header/header-title/header-title.js +1 -1
- package/dist/collection/components/header/header.css +7 -7
- package/dist/collection/components/header/header.js +1 -14
- package/dist/collection/components/icon/icon.js +1 -1
- package/dist/collection/components/link/link.js +2 -2
- package/dist/collection/components/message/message.css +5 -5
- package/dist/collection/components/message/message.js +5 -2
- package/dist/collection/components/modal/modal.js +3 -1
- package/dist/collection/components/popover-canvas/popover-canvas.js +4 -2
- package/dist/collection/components/popover-core/popover-core.js +1 -1
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.css +2 -2
- package/dist/collection/components/popover-menu/popover-menu-item/popover-menu-item.js +2 -2
- package/dist/collection/components/popover-menu/popover-menu.css +1 -5
- package/dist/collection/components/popover-menu/popover-menu.js +4 -2
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +3 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +8 -5
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +7 -4
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +4 -3
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +6 -5
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +1 -1
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +6 -4
- package/dist/collection/components/side-menu/side-menu-overlay/side-menu-overlay.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.css +1 -1
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +4 -1
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +1 -1
- package/dist/collection/components/side-menu/side-menu-user-label/side-menu-user-label.js +1 -1
- package/dist/collection/components/slider/slider.css +5 -5
- package/dist/collection/components/slider/slider.js +11 -8
- package/dist/collection/components/stepper/step/step.css +1 -1
- package/dist/collection/components/stepper/step/step.js +6 -3
- package/dist/collection/components/table/table/table.js +20 -9
- package/dist/collection/components/table/table-body/table-body.css +12 -12
- package/dist/collection/components/table/table-body/table-body.js +10 -5
- package/dist/collection/components/table/table-body-cell/table-body-cell.js +4 -3
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.css +3 -3
- package/dist/collection/components/table/table-body-input-wrapper/table-body-input-wrapper.js +7 -4
- package/dist/collection/components/table/table-body-row/table-body-row.js +6 -3
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +11 -9
- package/dist/collection/components/table/table-footer/table-footer.css +1 -1
- package/dist/collection/components/table/table-footer/table-footer.js +11 -7
- package/dist/collection/components/table/table-header/table-header.js +13 -7
- package/dist/collection/components/table/table-header-cell/table-header-cell.js +9 -4
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.css +3 -3
- package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.js +7 -4
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +6 -3
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +4 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +4 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +4 -2
- package/dist/collection/components/text-field/text-field.css +3 -3
- package/dist/collection/components/text-field/text-field.js +7 -5
- package/dist/collection/components/textarea/textarea.js +6 -3
- package/dist/collection/components/toast/toast.css +6 -6
- package/dist/collection/components/toast/toast.js +8 -5
- package/dist/collection/components/tooltip/tooltip.js +4 -2
- package/dist/collection/utils/findClosestComponent.js +9 -0
- package/dist/collection/utils/getDirectChildHTMLElementOfKind.js +6 -0
- package/dist/collection/utils/tagName.js +29 -0
- package/dist/collection/utils/tagNames.js +91 -0
- package/dist/components/p-875e2e9c.js +12 -0
- package/dist/components/{p-0676aa23.js → p-93414e58.js} +7 -10
- package/dist/components/p-b33f8162.js +116 -0
- package/dist/components/p-d18575db.js +9 -0
- package/dist/components/tds-accordion-item.js +8 -11
- package/dist/components/tds-badge.js +1 -1
- package/dist/components/tds-banner.js +6 -10
- package/dist/components/tds-block.js +2 -2
- package/dist/components/tds-body-cell.js +4 -3
- package/dist/components/tds-breadcrumb.js +1 -1
- package/dist/components/tds-breadcrumbs.js +1 -1
- package/dist/components/tds-button.js +3 -3
- package/dist/components/tds-card.js +5 -9
- package/dist/components/tds-checkbox.js +89 -1
- package/dist/components/tds-chip.js +1 -1
- package/dist/components/tds-core-header-item.js +30 -1
- package/dist/components/tds-datetime.js +7 -10
- package/dist/components/tds-divider.js +33 -1
- package/dist/components/tds-dropdown-option.js +112 -1
- package/dist/components/tds-dropdown.js +516 -1
- package/dist/components/tds-folder-tabs.js +5 -9
- package/dist/components/tds-footer-group.js +7 -11
- package/dist/components/tds-footer-item.js +5 -2
- package/dist/components/tds-footer.js +1 -1
- package/dist/components/tds-header-brand-symbol.js +4 -10
- package/dist/components/tds-header-cell.js +10 -11
- package/dist/components/tds-header-dropdown-list-item.js +39 -1
- package/dist/components/tds-header-dropdown-list-user.js +1 -1
- package/dist/components/tds-header-dropdown-list.js +99 -1
- package/dist/components/tds-header-dropdown.js +6 -34
- package/dist/components/tds-header-hamburger.js +5 -21
- package/dist/components/tds-header-item.js +1 -1
- package/dist/components/tds-header-launcher-button.js +39 -1
- package/dist/components/tds-header-launcher-grid-item.js +1 -1
- package/dist/components/tds-header-launcher-grid-title.js +1 -1
- package/dist/components/tds-header-launcher-grid.js +1 -1
- package/dist/components/tds-header-launcher-list-item.js +5 -8
- package/dist/components/tds-header-launcher-list-title.js +1 -1
- package/dist/components/tds-header-launcher-list.js +5 -8
- package/dist/components/tds-header-launcher.js +7 -40
- package/dist/components/tds-header-title.js +1 -1
- package/dist/components/tds-header.js +2 -15
- package/dist/components/tds-icon.js +63 -1
- package/dist/components/tds-inline-tabs.js +5 -9
- package/dist/components/tds-link.js +2 -2
- package/dist/components/tds-message.js +7 -10
- package/dist/components/tds-modal.js +4 -8
- package/dist/components/tds-navigation-tabs.js +5 -9
- package/dist/components/tds-popover-canvas.js +66 -1
- package/dist/components/tds-popover-core.js +1998 -1
- package/dist/components/tds-popover-menu-item.js +3 -3
- package/dist/components/tds-popover-menu.js +6 -10
- package/dist/components/tds-radio-button.js +1 -1
- package/dist/components/tds-side-menu-close-button.js +4 -8
- package/dist/components/tds-side-menu-collapse-button.js +9 -12
- package/dist/components/tds-side-menu-dropdown-list-item.js +6 -5
- package/dist/components/tds-side-menu-dropdown-list.js +4 -3
- package/dist/components/tds-side-menu-dropdown.js +8 -17
- package/dist/components/tds-side-menu-item.js +90 -1
- package/dist/components/tds-side-menu-overlay.js +1 -1
- package/dist/components/tds-side-menu-user-image.js +35 -1
- package/dist/components/tds-side-menu-user-label.js +35 -1
- package/dist/components/tds-side-menu-user.js +6 -15
- package/dist/components/tds-slider.js +13 -16
- package/dist/components/tds-step.js +8 -11
- package/dist/components/tds-table-body-input-wrapper.js +9 -12
- package/dist/components/tds-table-body-row-expandable.js +11 -9
- package/dist/components/tds-table-body-row.js +7 -10
- package/dist/components/tds-table-body.js +11 -6
- package/dist/components/tds-table-footer.js +13 -33
- package/dist/components/tds-table-header-input-wrapper.js +9 -12
- package/dist/components/tds-table-header.js +14 -14
- package/dist/components/tds-table-toolbar.js +7 -10
- package/dist/components/tds-table.js +12 -9
- package/dist/components/tds-text-field.js +9 -13
- package/dist/components/tds-textarea.js +7 -10
- package/dist/components/tds-toast.js +10 -13
- package/dist/components/tds-tooltip.js +5 -9
- package/dist/esm/findClosestComponent-884d0262.js +12 -0
- package/dist/esm/getDirectChildHTMLElementOfKind-96e23d9f.js +9 -0
- package/dist/esm/index-51d04e39.js +58 -46
- package/dist/esm/loader.js +1 -1
- package/dist/esm/tagName-2e4b5836.js +116 -0
- package/dist/esm/tds-accordion-item.entry.js +8 -5
- package/dist/esm/tds-badge.entry.js +1 -1
- package/dist/esm/tds-banner.entry.js +5 -3
- package/dist/esm/tds-block.entry.js +2 -2
- package/dist/esm/tds-body-cell.entry.js +5 -3
- package/dist/esm/tds-breadcrumb.entry.js +1 -1
- package/dist/esm/tds-breadcrumbs.entry.js +1 -1
- package/dist/esm/tds-button.entry.js +3 -3
- package/dist/esm/tds-card.entry.js +4 -2
- package/dist/esm/tds-checkbox.entry.js +2 -2
- package/dist/esm/tds-chip.entry.js +1 -1
- package/dist/esm/tds-core-header-item.entry.js +16 -0
- package/dist/esm/tds-datetime.entry.js +7 -4
- package/dist/esm/tds-divider.entry.js +1 -1
- package/dist/{components/p-1c256b8d.js → esm/tds-dropdown-option.entry.js} +15 -50
- package/dist/{components/p-f5531179.js → esm/tds-dropdown.entry.js} +20 -66
- package/dist/esm/tds-folder-tabs.entry.js +4 -2
- package/dist/esm/tds-footer-group.entry.js +6 -4
- package/dist/esm/tds-footer-item.entry.js +6 -2
- package/dist/esm/tds-footer.entry.js +1 -1
- package/dist/esm/tds-header-brand-symbol.entry.js +2 -2
- package/dist/esm/tds-header-cell.entry.js +9 -4
- package/dist/esm/tds-header-dropdown-list-item.entry.js +2 -2
- package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list.entry.js +3 -3
- package/dist/esm/tds-header-dropdown.entry.js +5 -3
- package/dist/esm/tds-header-hamburger.entry.js +4 -2
- package/dist/esm/{tds-core-header-item_2.entry.js → tds-header-item.entry.js} +7 -17
- package/dist/esm/tds-header-launcher-button.entry.js +4 -2
- package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid.entry.js +2 -2
- package/dist/esm/tds-header-launcher-list-item.entry.js +5 -2
- package/dist/esm/tds-header-launcher-list-title.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list.entry.js +5 -2
- package/dist/esm/tds-header-launcher.entry.js +6 -3
- package/dist/esm/tds-header-title.entry.js +1 -1
- package/dist/esm/tds-header.entry.js +2 -15
- package/dist/esm/tds-icon.entry.js +1 -1
- package/dist/esm/tds-inline-tabs.entry.js +4 -2
- package/dist/esm/tds-link.entry.js +2 -2
- package/dist/esm/tds-message.entry.js +7 -4
- package/dist/esm/tds-modal.entry.js +3 -1
- package/dist/esm/tds-navigation-tabs.entry.js +4 -2
- package/dist/esm/tds-popover-canvas.entry.js +4 -2
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-popover-menu-item.entry.js +3 -3
- package/dist/esm/tds-popover-menu.entry.js +5 -3
- package/dist/esm/tds-radio-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-close-button.entry.js +3 -1
- package/dist/esm/tds-side-menu-collapse-button.entry.js +8 -5
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +7 -5
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +5 -3
- package/dist/esm/tds-side-menu-dropdown.entry.js +7 -4
- package/dist/esm/tds-side-menu-item.entry.js +8 -5
- package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
- package/dist/esm/tds-side-menu-user-image.entry.js +18 -0
- package/dist/esm/tds-side-menu-user-label.entry.js +18 -0
- package/dist/esm/tds-side-menu-user.entry.js +6 -3
- package/dist/esm/tds-slider.entry.js +12 -9
- package/dist/esm/tds-step.entry.js +7 -4
- package/dist/esm/tds-table-body-input-wrapper.entry.js +8 -5
- package/dist/esm/tds-table-body-row-expandable.entry.js +12 -9
- package/dist/esm/tds-table-body-row.entry.js +6 -3
- package/dist/esm/tds-table-body.entry.js +12 -6
- package/dist/esm/tds-table-footer.entry.js +12 -8
- package/dist/esm/tds-table-header-input-wrapper.entry.js +8 -5
- package/dist/esm/tds-table-header.entry.js +13 -7
- package/dist/esm/tds-table-toolbar.entry.js +6 -3
- package/dist/esm/tds-table.entry.js +13 -9
- package/dist/esm/tds-text-field.entry.js +8 -6
- package/dist/esm/tds-textarea.entry.js +7 -4
- package/dist/esm/tds-toast.entry.js +9 -6
- package/dist/esm/tds-tooltip.entry.js +4 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/tegel/p-01dc0370.entry.js +1 -0
- package/dist/tegel/p-06431096.entry.js +1 -0
- package/dist/tegel/p-07e3a645.entry.js +1 -0
- package/dist/tegel/p-082d6de9.entry.js +1 -0
- package/dist/tegel/p-0a228d69.entry.js +1 -0
- package/dist/tegel/p-0d80429b.entry.js +1 -0
- package/dist/tegel/p-136c978a.entry.js +1 -0
- package/dist/tegel/p-13f14f71.entry.js +1 -0
- package/dist/tegel/p-15638893.entry.js +1 -0
- package/dist/tegel/p-16d3d938.entry.js +1 -0
- package/dist/tegel/p-191a6e60.entry.js +1 -0
- package/dist/tegel/p-19cda6ca.entry.js +1 -0
- package/dist/tegel/p-1c4b7a7d.entry.js +1 -0
- package/dist/tegel/p-2094ccde.entry.js +1 -0
- package/dist/tegel/p-26603eef.entry.js +1 -0
- package/dist/tegel/p-2b5871d5.entry.js +1 -0
- package/dist/tegel/p-304a4c84.entry.js +1 -0
- package/dist/tegel/p-3cc3e9f1.entry.js +1 -0
- package/dist/tegel/p-3cf784a4.entry.js +1 -0
- package/dist/tegel/p-400d5972.entry.js +1 -0
- package/dist/tegel/p-4132bc7c.entry.js +1 -0
- package/dist/tegel/{p-de540cc0.entry.js → p-416d8080.entry.js} +1 -1
- package/dist/tegel/p-43a74ec0.entry.js +1 -0
- package/dist/tegel/p-448fef57.entry.js +1 -0
- package/dist/tegel/p-45aa4dca.entry.js +1 -0
- package/dist/tegel/p-48148b7d.entry.js +1 -0
- package/dist/tegel/p-4a2000f2.entry.js +1 -0
- package/dist/tegel/{p-f9325536.entry.js → p-4b23a02f.entry.js} +1 -1
- package/dist/tegel/p-4eea4c8f.entry.js +1 -0
- package/dist/tegel/p-54a87c06.entry.js +1 -0
- package/dist/tegel/p-5be505ca.entry.js +1 -0
- package/dist/tegel/p-5f5fb18b.entry.js +1 -0
- package/dist/tegel/p-62196862.entry.js +1 -0
- package/dist/tegel/p-6542a541.entry.js +1 -0
- package/dist/tegel/p-6aea533d.entry.js +1 -0
- package/dist/tegel/p-6bc339db.entry.js +1 -0
- package/dist/tegel/p-718a5428.entry.js +1 -0
- package/dist/tegel/{p-fe9b385f.entry.js → p-73d72704.entry.js} +1 -1
- package/dist/tegel/{p-ede11de8.entry.js → p-7639adea.entry.js} +1 -1
- package/dist/tegel/p-79a4da37.entry.js +1 -0
- package/dist/tegel/p-7e989008.entry.js +1 -0
- package/dist/tegel/p-807d3a4e.entry.js +1 -0
- package/dist/tegel/p-81dc1e2f.entry.js +1 -0
- package/dist/tegel/p-854dcbe4.entry.js +1 -0
- package/dist/tegel/p-859e3ebf.js +1 -0
- package/dist/tegel/p-875e2e9c.js +1 -0
- package/dist/tegel/p-876a3b13.entry.js +1 -0
- package/dist/tegel/p-8a5df7a0.entry.js +1 -0
- package/dist/tegel/{p-50fcdc56.entry.js → p-8ccf3a15.entry.js} +1 -1
- package/dist/tegel/p-91072613.entry.js +1 -0
- package/dist/tegel/{p-bda3d846.entry.js → p-938f3efa.entry.js} +1 -1
- package/dist/tegel/p-985a2d37.entry.js +1 -0
- package/dist/tegel/{p-6b405a0f.entry.js → p-9a120de1.entry.js} +1 -1
- package/dist/tegel/p-9ac97508.entry.js +1 -0
- package/dist/tegel/{p-1ce239bf.entry.js → p-9d00bc5e.entry.js} +1 -1
- package/dist/tegel/p-9e49e118.entry.js +1 -0
- package/dist/tegel/p-a056ecbf.entry.js +1 -0
- package/dist/tegel/p-a66dcbc0.entry.js +1 -0
- package/dist/tegel/p-abe194db.entry.js +1 -0
- package/dist/tegel/p-ae0d0422.entry.js +1 -0
- package/dist/tegel/{p-c3513f1f.entry.js → p-b1fcdbd1.entry.js} +1 -1
- package/dist/tegel/p-b33f8162.js +1 -0
- package/dist/tegel/{p-9bf7f5cd.entry.js → p-b36fafa5.entry.js} +1 -1
- package/dist/tegel/{p-e65dba91.entry.js → p-b7cb84d1.entry.js} +1 -1
- package/dist/tegel/{p-cd289e17.entry.js → p-c026cd40.entry.js} +1 -1
- package/dist/tegel/p-ca19d259.entry.js +1 -0
- package/dist/tegel/{p-0df92ce7.entry.js → p-cc2524ea.entry.js} +1 -1
- package/dist/tegel/p-cdd4acb0.entry.js +1 -0
- package/dist/tegel/p-d023830f.entry.js +1 -0
- package/dist/tegel/p-d18575db.js +1 -0
- package/dist/tegel/{p-a464920f.entry.js → p-db250bc9.entry.js} +1 -1
- package/dist/tegel/p-ddb96690.entry.js +1 -0
- package/dist/tegel/p-e455db38.entry.js +1 -0
- package/dist/tegel/p-ef49682d.entry.js +1 -0
- package/dist/tegel/p-efc72ccb.entry.js +1 -0
- package/dist/tegel/p-f7c4f098.entry.js +1 -0
- package/dist/tegel/{p-137929b7.entry.js → p-fb026b94.entry.js} +1 -1
- package/dist/tegel/p-fc844498.entry.js +1 -0
- package/dist/tegel/tegel.css +1 -1
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +1 -0
- package/dist/types/components/datetime/datetime.d.ts +1 -0
- package/dist/types/components/header/header-launcher-list/header-launcher-list.d.ts +1 -0
- package/dist/types/components/header/header-launcher-list-item/header-launcher-list-item.d.ts +1 -0
- package/dist/types/components/header/header.d.ts +0 -2
- package/dist/types/components/message/message.d.ts +1 -0
- package/dist/types/components/side-menu/side-menu-user/side-menu-user.d.ts +1 -0
- package/dist/types/components/slider/slider.d.ts +1 -0
- package/dist/types/components/stepper/step/step.d.ts +1 -1
- package/dist/types/components/table/table/table.d.ts +1 -1
- package/dist/types/components/table/table-footer/table-footer.d.ts +1 -1
- package/dist/types/components/textarea/textarea.d.ts +1 -0
- package/dist/types/utils/findClosestComponent.d.ts +9 -0
- package/dist/types/utils/getDirectChildHTMLElementOfKind.d.ts +2 -0
- package/dist/types/utils/tagName.d.ts +6 -0
- package/dist/types/utils/tagNames.d.ts +4 -0
- package/package.json +1 -1
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +0 -38
- package/dist/components/p-09d36119.js +0 -37
- package/dist/components/p-0c3cab16.js +0 -90
- package/dist/components/p-30de8ac4.js +0 -32
- package/dist/components/p-3e74be57.js +0 -65
- package/dist/components/p-8e74bb22.js +0 -57
- package/dist/components/p-a9609e88.js +0 -72
- package/dist/components/p-cfb1b588.js +0 -41
- package/dist/components/p-dc461e7b.js +0 -2000
- package/dist/components/p-dddaa520.js +0 -37
- package/dist/components/p-e46088d9.js +0 -35
- package/dist/components/p-e4d7c655.js +0 -91
- package/dist/components/p-fcec766c.js +0 -101
- package/dist/esm/tds-dropdown_2.entry.js +0 -560
- package/dist/esm/tds-side-menu-user-image_2.entry.js +0 -33
- package/dist/tegel/p-06d2fa56.entry.js +0 -1
- package/dist/tegel/p-088bfcd4.entry.js +0 -1
- package/dist/tegel/p-0f38bea7.entry.js +0 -1
- package/dist/tegel/p-0f486a7c.entry.js +0 -1
- package/dist/tegel/p-1634247e.entry.js +0 -1
- package/dist/tegel/p-1a2f3852.entry.js +0 -1
- package/dist/tegel/p-1bc2c73c.entry.js +0 -1
- package/dist/tegel/p-285d7485.entry.js +0 -1
- package/dist/tegel/p-2b030cef.entry.js +0 -1
- package/dist/tegel/p-2e44b4e9.entry.js +0 -1
- package/dist/tegel/p-46fe6712.entry.js +0 -1
- package/dist/tegel/p-4ab7461e.entry.js +0 -1
- package/dist/tegel/p-4bab99d5.entry.js +0 -1
- package/dist/tegel/p-51e49417.entry.js +0 -1
- package/dist/tegel/p-52be41ce.entry.js +0 -1
- package/dist/tegel/p-54a105a4.entry.js +0 -1
- package/dist/tegel/p-588a05aa.entry.js +0 -1
- package/dist/tegel/p-5a891dd2.entry.js +0 -1
- package/dist/tegel/p-5d0e8f1e.entry.js +0 -1
- package/dist/tegel/p-6938329a.entry.js +0 -1
- package/dist/tegel/p-6aabf7e1.entry.js +0 -1
- package/dist/tegel/p-6c26e66f.entry.js +0 -1
- package/dist/tegel/p-73dd2dbb.entry.js +0 -1
- package/dist/tegel/p-7a83cf55.entry.js +0 -1
- package/dist/tegel/p-7d83ba98.entry.js +0 -1
- package/dist/tegel/p-831111e9.entry.js +0 -1
- package/dist/tegel/p-8ae952b6.entry.js +0 -1
- package/dist/tegel/p-91225c7a.entry.js +0 -1
- package/dist/tegel/p-91dcddd5.entry.js +0 -1
- package/dist/tegel/p-930e767e.entry.js +0 -1
- package/dist/tegel/p-9332c225.js +0 -1
- package/dist/tegel/p-959a6780.entry.js +0 -1
- package/dist/tegel/p-987084a5.entry.js +0 -1
- package/dist/tegel/p-9c2dfecc.entry.js +0 -1
- package/dist/tegel/p-9de400f4.entry.js +0 -1
- package/dist/tegel/p-a5a67770.entry.js +0 -1
- package/dist/tegel/p-a642c800.entry.js +0 -1
- package/dist/tegel/p-a9654cd4.entry.js +0 -1
- package/dist/tegel/p-aed1c5cf.entry.js +0 -1
- package/dist/tegel/p-b21eb276.entry.js +0 -1
- package/dist/tegel/p-b4c7099f.entry.js +0 -1
- package/dist/tegel/p-b9ac3122.entry.js +0 -1
- package/dist/tegel/p-b9e37cf2.entry.js +0 -1
- package/dist/tegel/p-bb129d43.entry.js +0 -1
- package/dist/tegel/p-bcae4d3a.entry.js +0 -1
- package/dist/tegel/p-c18b2746.entry.js +0 -1
- package/dist/tegel/p-c790ef93.entry.js +0 -1
- package/dist/tegel/p-c917d8be.entry.js +0 -1
- package/dist/tegel/p-cd5219ac.entry.js +0 -1
- package/dist/tegel/p-d1cbe5be.entry.js +0 -1
- package/dist/tegel/p-db00f607.entry.js +0 -1
- package/dist/tegel/p-dcbd977f.entry.js +0 -1
- package/dist/tegel/p-e7108828.entry.js +0 -1
- package/dist/tegel/p-ed02ad2b.entry.js +0 -1
- package/dist/tegel/p-f0d46e61.entry.js +0 -1
- package/dist/tegel/p-f841f094.entry.js +0 -1
- package/dist/tegel/p-ff5cd75f.entry.js +0 -1
- package/dist/cjs/{isHeadingElement-4f06b688.js → getPreviousNestedChildOfSiblingsMatching-4e700df1.js} +12 -12
- package/dist/esm/{isHeadingElement-8efea284.js → getPreviousNestedChildOfSiblingsMatching-a6fcb512.js} +12 -12
|
@@ -7,26 +7,26 @@
|
|
|
7
7
|
:host .wrapper.information {
|
|
8
8
|
border-left: 4px solid var(--tds-information);
|
|
9
9
|
}
|
|
10
|
-
:host .wrapper.information
|
|
10
|
+
:host .wrapper.information .icon {
|
|
11
11
|
color: var(--tds-information);
|
|
12
12
|
}
|
|
13
13
|
:host .wrapper.success {
|
|
14
14
|
border-left: 4px solid var(--tds-positive);
|
|
15
15
|
}
|
|
16
|
-
:host .wrapper.success
|
|
16
|
+
:host .wrapper.success .icon {
|
|
17
17
|
color: var(--tds-positive);
|
|
18
18
|
}
|
|
19
19
|
:host .wrapper.error {
|
|
20
20
|
background-color: var(--tds-message-type-error-background);
|
|
21
21
|
border-left: 4px solid var(--tds-negative);
|
|
22
22
|
}
|
|
23
|
-
:host .wrapper.error
|
|
23
|
+
:host .wrapper.error .icon {
|
|
24
24
|
color: var(--tds-negative);
|
|
25
25
|
}
|
|
26
26
|
:host .wrapper.warning {
|
|
27
27
|
border-left: 4px solid var(--tds-warning);
|
|
28
28
|
}
|
|
29
|
-
:host .wrapper.warning
|
|
29
|
+
:host .wrapper.warning .icon {
|
|
30
30
|
color: var(--tds-warning);
|
|
31
31
|
}
|
|
32
32
|
:host .wrapper.minimal {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
:host .wrapper.minimal.error .header {
|
|
44
44
|
color: var(--tds-negative);
|
|
45
45
|
}
|
|
46
|
-
:host
|
|
46
|
+
:host .icon {
|
|
47
47
|
padding-right: 16px;
|
|
48
48
|
}
|
|
49
49
|
:host .content {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the extended message. Not visible on minimal messages.
|
|
4
5
|
*/
|
|
@@ -25,10 +26,11 @@ export class TdsMessage {
|
|
|
25
26
|
this.minimal = false;
|
|
26
27
|
}
|
|
27
28
|
render() {
|
|
28
|
-
|
|
29
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
30
|
+
return (h(Host, { key: '8658fa43c508ef6b60fd3f6a6cbcdaf892f769ed' }, h("div", { key: 'd38d9f83f5d179bd899badd00f1f504988da8deb', class: `
|
|
29
31
|
wrapper ${this.variant}
|
|
30
32
|
${this.minimal ? 'minimal' : ''}
|
|
31
|
-
${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, !this.noIcon && h(
|
|
33
|
+
${this.modeVariant !== null ? `tds-mode-variant-${this.modeVariant}` : ''}` }, !this.noIcon && (h(prefixedTagNames.tdsIcon, { key: 'a4b4bd55fe53acd7549284d4bb805569d61ccd5a', class: "icon", name: this.getIconName(), size: "20px" })), h("div", { key: 'e9e24d412635b3e2d43da64d9dfcdc8d837698de', class: `content` }, this.header && h("div", { key: 'b939d197c8d6dfacf092006b4820b9d29b83ae9b', class: "header" }, this.header), !this.minimal && (h("div", { key: '9bf431350378dfd70cfa22f120ab3ccee7bfcc48', class: "extended-message" }, h("slot", { key: '4533896d9fc5916dca6a8dcadda502dbbda60ce1' })))))));
|
|
32
34
|
}
|
|
33
35
|
static get is() { return "tds-message"; }
|
|
34
36
|
static get encapsulation() { return "shadow"; }
|
|
@@ -135,4 +137,5 @@ export class TdsMessage {
|
|
|
135
137
|
}
|
|
136
138
|
};
|
|
137
139
|
}
|
|
140
|
+
static get elementRef() { return "host"; }
|
|
138
141
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import hasSlot from "../../utils/hasSlot";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot header - Slot for header text
|
|
5
6
|
* @slot body - Slot for main content of modal
|
|
@@ -112,7 +113,8 @@ export class TdsModal {
|
|
|
112
113
|
render() {
|
|
113
114
|
const usesHeaderSlot = hasSlot('header', this.host);
|
|
114
115
|
const usesActionsSlot = hasSlot('actions', this.host);
|
|
115
|
-
|
|
116
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
117
|
+
return (h(Host, { key: 'd8d4663bf34447a7c437a2548eb5cb7b54966904', class: `${this.isShown ? 'show' : 'hide'}`, onClick: (event) => this.handleOverlayClick(event) }, h("div", { key: '22deee723aad6d1c6911ac1a4d9fdfb3c49ee9d7', class: "tds-modal-backdrop" }), h("div", { key: 'a02ddd0a4c7cc15e3a88ee4afeb9fa11e05a0920', class: `tds-modal tds-modal__actions-${this.actionsPosition} tds-modal-${this.size}` }, h("div", { key: 'e5025289a4bc71e088dbae5addfac7283afe4cd4', class: "header" }, this.header && h("div", { key: '0b8036a08d88e61e7a25d718184e78f1662fc71b', class: "header-text" }, this.header), usesHeaderSlot && h("slot", { key: 'e560702407b26f9e87699ad2c88f7767925d95b0', name: "header" }), this.closable && (h("button", { key: 'e6ab572230e9cf42aee383082b2471999e59fa84', class: "tds-modal-close", "aria-label": "close", onClick: (event) => this.handleClose(event) }, h(prefixedTagNames.tdsIcon, { key: 'e7d152b8e78c76eb89bcbd37a951bacdcd1a189d', name: "cross", size: "20px" })))), h("div", { key: '4f60b951463c91015d753e3baaec55a0d2f61557', class: "body" }, h("slot", { key: '13fadc6021577e560a8302679ba05c66609992ff', name: "body" })), usesActionsSlot && h("slot", { key: '71d510b8442111c272610d8b6334e7a11e548ebe', name: "actions" }))));
|
|
116
118
|
}
|
|
117
119
|
static get is() { return "tds-modal"; }
|
|
118
120
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import inheritAttributes from "../../utils/inheritAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For the contents of the popover.
|
|
5
6
|
*/
|
|
@@ -25,12 +26,13 @@ export class TdsPopoverCanvas {
|
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
27
28
|
var _a;
|
|
28
|
-
|
|
29
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
30
|
+
return (h(Host, { key: '4dfa496e7ce0d92c2575832b8289440fddc1e57a' }, h(prefixedTagNames.tdsPopoverCore, Object.assign({ key: '588b26ceae93946774d39e3aa7382f40b82052fa' }, this.inheritedAttributes, { class: {
|
|
29
31
|
'tds-popover-canvas': true,
|
|
30
32
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
31
33
|
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, modifiers: this.modifiers, trigger: 'click', ref: (el) => {
|
|
32
34
|
this.childRef = el;
|
|
33
|
-
} }), h("div", { key: '
|
|
35
|
+
} }), h("div", { key: 'c8fa624a0f6b65f77ea8ddf8f576ade6899b1f7c' }, h("slot", { key: '0c91f6654cb2a3e51ffd8f5f66c46fc673313b00' })))));
|
|
34
36
|
}
|
|
35
37
|
static get is() { return "tds-popover-canvas"; }
|
|
36
38
|
static get encapsulation() { return "scoped"; }
|
|
@@ -159,7 +159,7 @@ export class TdsPopoverCore {
|
|
|
159
159
|
if (this.autoHide) {
|
|
160
160
|
hostStyle = { display: this.isShown ? 'block' : 'none' };
|
|
161
161
|
}
|
|
162
|
-
return (h(Host, { key: '
|
|
162
|
+
return (h(Host, { key: 'b0731931ab490f2003c8c29e1cf6c61163c614d9', style: hostStyle, id: `tds-popover-core-${this.uuid}` }, h("slot", { key: '3e0c276eb679436168b488eead06f30b5ec8225d' })));
|
|
163
163
|
}
|
|
164
164
|
static get is() { return "tds-popover-core"; }
|
|
165
165
|
static get encapsulation() { return "scoped"; }
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
pointer-events: none;
|
|
23
23
|
color: var(--tds-popover-menu-divider-disabled-color);
|
|
24
24
|
}
|
|
25
|
-
:host .wrapper.disabled ::slotted(tds-
|
|
25
|
+
:host .wrapper.disabled ::slotted(.tds-icon__icon) {
|
|
26
26
|
color: var(--tds-popover-menu-divider-disabled-icon-color);
|
|
27
27
|
}
|
|
28
|
-
:host ::slotted(*:not(tds-
|
|
28
|
+
:host ::slotted(*:not(.tds-icon__icon)) {
|
|
29
29
|
all: unset;
|
|
30
30
|
width: 100%;
|
|
31
31
|
display: inline-flex;
|
|
@@ -4,10 +4,10 @@ export class TdsPopoverMenuItem {
|
|
|
4
4
|
this.disabled = false;
|
|
5
5
|
}
|
|
6
6
|
render() {
|
|
7
|
-
return (h(Host, { key: '
|
|
7
|
+
return (h(Host, { key: '394e2fd1ee96323b2db9398a2e48c1a2cfdd6611', role: "listitem" }, h("div", { key: '452da1f9627c7c5db647fa91072ef735cd0a06d3', class: {
|
|
8
8
|
wrapper: true,
|
|
9
9
|
disabled: this.disabled,
|
|
10
|
-
} }, h("slot", { key: '
|
|
10
|
+
} }, h("slot", { key: '7a3d7a8415116fc625363c6378caf66a9ff026c1' }))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "tds-popover-menu-item"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
width: 160px;
|
|
5
5
|
background-color: var(--tds-popover-menu-background);
|
|
6
|
-
padding:
|
|
6
|
+
padding: 6px 0 !important;
|
|
7
7
|
box-shadow: 0 3px 3px rgba(0, 0, 0, 0.15), 0 -1px 1px rgba(0, 0, 0, 0.1);
|
|
8
8
|
border-radius: 4px;
|
|
9
9
|
z-index: 900;
|
|
@@ -15,10 +15,6 @@
|
|
|
15
15
|
width: unset;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
tds-popover-core {
|
|
19
|
-
padding: 6px 0 !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
18
|
::slotted(tds-divider) {
|
|
23
19
|
display: block;
|
|
24
20
|
padding: 6px !important;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import inheritAttributes from "../../utils/inheritAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For the list of menu items.
|
|
5
6
|
*/
|
|
@@ -25,13 +26,14 @@ export class TdsPopoverMenu {
|
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
27
28
|
var _a;
|
|
28
|
-
|
|
29
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
30
|
+
return (h(Host, { key: 'e5f323655f7cbd3a11dd14d9f078d419ff97d3e1' }, h(prefixedTagNames.tdsPopoverCore, { key: 'aa67f812691dcc09f2da0a78a4e6d4b01310f19d', class: {
|
|
29
31
|
'tds-popover-menu': true,
|
|
30
32
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
31
33
|
'fluid-width': this.fluidWidth,
|
|
32
34
|
}, selector: this.selector, referenceEl: this.referenceEl, show: this.show, placement: this.placement, offsetSkidding: this.offsetSkidding, offsetDistance: this.offsetDistance, ref: (el) => {
|
|
33
35
|
this.childRef = el;
|
|
34
|
-
} }, h("div", { key: '
|
|
36
|
+
} }, h("div", { key: 'd6e85e1d7c17afc4688cd78b6847dcebc72e7241', role: "list" }, h("slot", { key: '34d0991b86c98ea2b33da2f3f5883933aef4921c' })))));
|
|
35
37
|
}
|
|
36
38
|
static get is() { return "tds-popover-menu"; }
|
|
37
39
|
static get encapsulation() { return "scoped"; }
|
|
@@ -19,7 +19,7 @@ export class TdsRadioButton {
|
|
|
19
19
|
this.disabled = false;
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return (h("div", { key: '
|
|
22
|
+
return (h("div", { key: '9981b311527401585e8d856efd31d400ef4f04ff', class: "tds-radio-button" }, h("input", { key: '42376124bb5c5111034cf33328312417696c1f4f', class: "tds-form-input", type: "radio", name: this.name, id: this.radioId, value: this.value, checked: this.checked, "aria-checked": this.checked, required: this.required, disabled: this.disabled, onChange: () => this.handleChange() }), h("label", { key: 'dcae7b92564cdc7ffea21bc6962a58c47f4fa7e1', htmlFor: this.radioId }, h("slot", { key: 'a1d77af8e076cac6d1959dbc393f11b6d4362756', name: "label" }))));
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "tds-radio-button"; }
|
|
25
25
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import inheritAriaAttributes from "../../../utils/inheritAriaAttributes";
|
|
3
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
4
|
export class TdsSideMenuCloseButton {
|
|
4
5
|
render() {
|
|
5
6
|
const buttonProps = Object.assign({ 'aria-label': 'Close' }, inheritAriaAttributes(this.host));
|
|
6
|
-
|
|
7
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
8
|
+
return (h(Host, { key: '7486dc122a3662d92d55c8195f406eb744c4d1ff' }, h("button", Object.assign({ key: 'cb982f67321cd23e4483bf4f42096cf5c5e6f032' }, buttonProps), h(prefixedTagNames.tdsIcon, { key: '18441a77bfab2dc8886f25a393cc2a862351cc30', name: "cross", size: "20px" }))));
|
|
7
9
|
}
|
|
8
10
|
static get is() { return "tds-side-menu-close-button"; }
|
|
9
11
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
2
4
|
/**
|
|
3
5
|
* @slot <default> - <b>Unnamed slot.</b> For the text label of the button.
|
|
4
6
|
* */
|
|
@@ -24,18 +26,19 @@ export class TdsSideMenuCollapseButton {
|
|
|
24
26
|
this.collapsed = event.detail.collapsed;
|
|
25
27
|
}
|
|
26
28
|
connectedCallback() {
|
|
27
|
-
this.sideMenuEl = this.host
|
|
29
|
+
this.sideMenuEl = findClosestComponent(this.host, 'tdsSideMenu');
|
|
28
30
|
this.collapsed = this.sideMenuEl.collapsed;
|
|
29
31
|
}
|
|
30
32
|
render() {
|
|
31
|
-
|
|
33
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
34
|
+
return (h(Host, { key: '1047ada52c0e2a2a5572c1c57a61c42e7d5a047f', role: "button", tabindex: "0", onClick: () => {
|
|
32
35
|
this.handleClick();
|
|
33
|
-
} }, h("div", { key: '
|
|
36
|
+
} }, h("div", { key: 'f3dc464aa050e5b764109d26ee1125290bff5fbb', class: {
|
|
34
37
|
'wrapper': true,
|
|
35
38
|
'state-collapsed': this.collapsed,
|
|
36
|
-
} }, h(
|
|
39
|
+
} }, h(prefixedTagNames.tdsSideMenuItem, { key: '558708845ccf578ba3df7a39e0c3ae0838699cad', class: {
|
|
37
40
|
button: true,
|
|
38
|
-
} }, h("a", { key: '
|
|
41
|
+
} }, h("a", { key: '87b0fe1659908e89e1fb918fb1c65c9b1f879898' }, h("svg", { key: '1aec6d540f3e18cbd001e310623dded8f75d6ca3', class: "icon", slot: "icon", fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32" }, h("path", { key: 'f829cdd43f848fe3ee44d8c926f483219c3b8260', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M16 1.975a1 1 0 0 1 1 1v20.3l9.311-9.312a1 1 0 0 1 1.415 1.414l-9.887 9.887a2.6 2.6 0 0 1-3.677 0l-9.887-9.887a1 1 0 1 1 1.414-1.414L15 23.274V2.975a1 1 0 0 1 1-1ZM5.188 28.001a1 1 0 0 0 0 2h21.62a1 1 0 1 0 0-2H5.188Z", fill: "currentColor" })), !this.collapsed && h("slot", { key: '076c082597d1f0fbc8aaf251ef30f61687c043e1' }))))));
|
|
39
42
|
}
|
|
40
43
|
static get is() { return "tds-side-menu-collapse-button"; }
|
|
41
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { Fragment, h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
3
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
2
4
|
/**
|
|
3
5
|
* @slot icon - Used for injecting the icon that compliments the dropdown title
|
|
4
6
|
* @slot label - Used for injecting the text, aka dropdown title
|
|
@@ -45,18 +47,19 @@ export class TdsSideMenuDropdown {
|
|
|
45
47
|
return this.collapsed ? (_a = this.hoverState) === null || _a === void 0 ? void 0 : _a.isHovered : this.open;
|
|
46
48
|
}
|
|
47
49
|
connectedCallback() {
|
|
48
|
-
this.sideMenuEl = this.host
|
|
50
|
+
this.sideMenuEl = findClosestComponent(this.host, 'tdsSideMenu');
|
|
49
51
|
this.collapsed = this.sideMenuEl.collapsed;
|
|
50
52
|
this.open = this.defaultOpen;
|
|
51
53
|
}
|
|
52
54
|
render() {
|
|
53
|
-
|
|
55
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
56
|
+
return (h(Host, { key: '1827847b06f291279e4a87ed69fa894900dea6d8' }, h("div", { key: 'ce4001ca5f54358b124a6e799d4b8575e8585e9d', class: {
|
|
54
57
|
'wrapper': true,
|
|
55
58
|
'state-open': this.getIsOpenState(),
|
|
56
59
|
'state-collapsed': this.collapsed,
|
|
57
|
-
} }, h(
|
|
60
|
+
} }, h(prefixedTagNames.tdsSideMenuItem, { key: '647d047735e07ce10ff1b29a769d7bbf4ee552e3', class: "button", active: this.getIsOpenState(), selected: this.selected, onClick: () => {
|
|
58
61
|
this.open = !this.open;
|
|
59
|
-
} }, h("button", { key: '
|
|
62
|
+
} }, h("button", { key: '315f640f09e65851e148f378ba3b38d70b0ff732' }, h("slot", { key: '5929de731189625ebe18ee80a5883c795bc9ee77', name: "icon" }), !this.collapsed && (h(Fragment, { key: 'a1ed66961510c1b36f1c158327c46e9bd834f5cb' }, this.buttonLabel, h("slot", { key: 'f772910c872e31659b651c05a972b8225517b94a', name: "label" }), h(prefixedTagNames.tdsIcon, { key: 'a9d5576a057243415b4d1f527e742a7e2812b50b', class: "dropdown-icon", name: "chevron_down", size: "16px" }))))), h("div", { key: '109d2a4f7cec66a68e937a1922c4a5a8ddb16505', class: "menu" }, this.collapsed && (h("h3", { key: '08e7f464e230a6d8e0caa3088749d679be1343f9', class: "heading-collapsed" }, this.buttonLabel, h("slot", { key: '8f0c0377d46f965bab22c44dd69d0090d2e2ca4a', name: "label" }))), h("slot", { key: '0e83ab1aa8c07f19a25e24c1c6be0c2fcb639c15' })))));
|
|
60
63
|
}
|
|
61
64
|
static get is() { return "tds-side-menu-dropdown"; }
|
|
62
65
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For injection of <code>tds-side-menu-dropdown-list-item</code> subcomponents.
|
|
4
5
|
* */
|
|
@@ -11,13 +12,13 @@ export class TdsSideMenuDropdownList {
|
|
|
11
12
|
}
|
|
12
13
|
connectedCallback() {
|
|
13
14
|
var _a;
|
|
14
|
-
this.sideMenuEl = this.host
|
|
15
|
+
this.sideMenuEl = findClosestComponent(this.host, 'tdsSideMenu');
|
|
15
16
|
this.collapsed = (_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed;
|
|
16
17
|
}
|
|
17
18
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: '6b8f6c8119ebc648207b04e31c4e4741ef01c0b5', role: "list" }, h("div", { key: '14b3b0bccbcfbca94112c8b28c455f7969257cad', class: {
|
|
19
20
|
'state-collapsed': this.collapsed,
|
|
20
|
-
} }, h("slot", { key: '
|
|
21
|
+
} }, h("slot", { key: '987f9c7e4b31aefca9686821bec1257427812a21' }))));
|
|
21
22
|
}
|
|
22
23
|
static get is() { return "tds-side-menu-dropdown-list"; }
|
|
23
24
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For injecting a native <code><button></code> or <code><a></code> element.
|
|
4
5
|
* */
|
|
@@ -13,27 +14,27 @@ export class TdsSideMenuDropdownListItem {
|
|
|
13
14
|
}
|
|
14
15
|
connectedCallback() {
|
|
15
16
|
var _a;
|
|
16
|
-
this.sideMenuEl = this.host
|
|
17
|
+
this.sideMenuEl = findClosestComponent(this.host, 'tdsSideMenu');
|
|
17
18
|
this.collapsed = (_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed;
|
|
18
19
|
}
|
|
19
20
|
componentDidLoad() {
|
|
20
21
|
var _a;
|
|
21
|
-
const dropdownEl = this.host
|
|
22
|
+
const dropdownEl = findClosestComponent(this.host, 'tdsSideMenuDropdown');
|
|
22
23
|
const dropdownBtnIconSlotEl = dropdownEl.shadowRoot.querySelector('slot[name="icon"]');
|
|
23
24
|
const btnIconSlottedEls = dropdownBtnIconSlotEl.assignedElements();
|
|
24
25
|
const hasBtnIcon = (btnIconSlottedEls === null || btnIconSlottedEls === void 0 ? void 0 : btnIconSlottedEls.length) > 0;
|
|
25
|
-
const btnIconIsUserImage = (
|
|
26
|
+
const btnIconIsUserImage = (_a = btnIconSlottedEls === null || btnIconSlottedEls === void 0 ? void 0 : btnIconSlottedEls[0]) === null || _a === void 0 ? void 0 : _a.tagName.toLowerCase().endsWith('tds-side-menu-user-image');
|
|
26
27
|
if (hasBtnIcon && !btnIconIsUserImage) {
|
|
27
28
|
this.dropdownHasIcon = true;
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
render() {
|
|
31
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: 'c47e1fad9e2a430ad64402a8e48af6a7b24a330d', role: "listitem" }, h("div", { key: '8647c8716ecbb51c642a257727ec8c48c4a9bd60', class: {
|
|
32
33
|
'component': true,
|
|
33
34
|
'component-selected': this.selected,
|
|
34
35
|
'component-dropdown-has-icon': this.dropdownHasIcon,
|
|
35
36
|
'component-collapsed': this.collapsed,
|
|
36
|
-
} }, h("slot", { key: '
|
|
37
|
+
} }, h("slot", { key: '8d2c7082086a0854b4990559106f0ef136a40f60' }))));
|
|
37
38
|
}
|
|
38
39
|
static get is() { return "tds-side-menu-dropdown-list-item"; }
|
|
39
40
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import dfs from "../../../utils/dfs";
|
|
3
|
+
import { findClosestComponent } from "../../../utils/findClosestComponent";
|
|
3
4
|
/**
|
|
4
5
|
* @slot <default> - <b>Unnamed slot.</b> For injecting a native <code><button</code> and <code><a></code> element.
|
|
5
6
|
* */
|
|
@@ -24,7 +25,8 @@ export class TdsSideMenuItem {
|
|
|
24
25
|
*/
|
|
25
26
|
updateSlottedElements() {
|
|
26
27
|
if (this.slotEl) {
|
|
27
|
-
const isIconOrSvg = (element) => element.tagName.toLowerCase()
|
|
28
|
+
const isIconOrSvg = (element) => element.tagName.toLowerCase().endsWith('tds-icon') ||
|
|
29
|
+
element.tagName.toLowerCase() === 'svg';
|
|
28
30
|
const addIconClass = (element) => {
|
|
29
31
|
element.classList.add('__tds-side-menu-item-icon');
|
|
30
32
|
if (this.collapsed) {
|
|
@@ -41,7 +43,7 @@ export class TdsSideMenuItem {
|
|
|
41
43
|
var _a;
|
|
42
44
|
// closest() will return null if side-menu-item is inside a shadowRoot that
|
|
43
45
|
// does not contain a side-menu. This is the case for the side-menu-dropdown.
|
|
44
|
-
this.sideMenuEl = this.host
|
|
46
|
+
this.sideMenuEl = findClosestComponent(this.host, 'tdsSideMenu');
|
|
45
47
|
this.collapsed = (_a = this.sideMenuEl) === null || _a === void 0 ? void 0 : _a.collapsed;
|
|
46
48
|
}
|
|
47
49
|
componentDidLoad() {
|
|
@@ -54,12 +56,12 @@ export class TdsSideMenuItem {
|
|
|
54
56
|
this.updateSlottedElements();
|
|
55
57
|
}
|
|
56
58
|
render() {
|
|
57
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '386c370ad3c9509d3d357b1a100fc48d3f9179c1' }, h("div", { key: '3136d3cd56eb58b6227cb64334ab67dc824698a7', class: {
|
|
58
60
|
'component': true,
|
|
59
61
|
'component-selected': this.selected,
|
|
60
62
|
'component-active': this.active,
|
|
61
63
|
'component-collapsed': this.collapsed,
|
|
62
|
-
} }, h("slot", { key: '
|
|
64
|
+
} }, h("slot", { key: 'c1e0434015361d4fc1f68ba5c33ac35c5741966b' }))));
|
|
63
65
|
}
|
|
64
66
|
static get is() { return "tds-side-menu-item"; }
|
|
65
67
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
export class TdsSideMenuOverlay {
|
|
3
3
|
render() {
|
|
4
|
-
return (h(Host, { key: '
|
|
4
|
+
return (h(Host, { key: '4e5ee559f2210af73350725bb713c3c5a2ec62e7' }, h("div", { key: '7b8494f203996e8fbd9cdb0cb8659cc939d974b8' })));
|
|
5
5
|
}
|
|
6
6
|
static get is() { return "tds-side-menu-overlay"; }
|
|
7
7
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> Used as alternative to props to inject <code><img...</code> element directly into the DOM.
|
|
4
5
|
* */
|
|
@@ -10,7 +11,8 @@ export class TdsSideMenuUser {
|
|
|
10
11
|
this.imgAlt = undefined;
|
|
11
12
|
}
|
|
12
13
|
render() {
|
|
13
|
-
|
|
14
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
15
|
+
return (h(Host, { key: '9f694ba496db9859eb827f0dc2f382e4434ee61c' }, h(prefixedTagNames.tdsSideMenuUserImage, { key: '851205e352f9fce6aff545a277298b3aca048315', class: "user-image", src: this.imgSrc, alt: this.imgAlt }, h("slot", { key: '2dfef908a3ec8f8c6054f8427604f1827b55cd49', name: "image" })), h(prefixedTagNames.tdsSideMenuUserLabel, { key: 'be7e31d4e8afe764dbdd7a87b00117c49f463690', heading: this.heading, subheading: this.subheading })));
|
|
14
16
|
}
|
|
15
17
|
static get is() { return "tds-side-menu-user"; }
|
|
16
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -96,4 +98,5 @@ export class TdsSideMenuUser {
|
|
|
96
98
|
}
|
|
97
99
|
};
|
|
98
100
|
}
|
|
101
|
+
static get elementRef() { return "host"; }
|
|
99
102
|
}
|
|
@@ -12,7 +12,7 @@ export class TdsSideMenuUserImage {
|
|
|
12
12
|
this.alt = undefined;
|
|
13
13
|
}
|
|
14
14
|
render() {
|
|
15
|
-
return (h(Host, { key: '
|
|
15
|
+
return (h(Host, { key: 'b3106a36d68732fb20b70d691da5f4b903568b18' }, h("slot", { key: 'a685eed98b4dd1c5a7fd26e5255bb1b91fba2427' }), this.src && h("img", { key: '0e671356961fa6cb1613f7695b575ce40086e064', src: this.src, alt: this.alt })));
|
|
16
16
|
}
|
|
17
17
|
static get is() { return "tds-side-menu-user-image"; }
|
|
18
18
|
static get encapsulation() { return "shadow"; }
|
|
@@ -5,7 +5,7 @@ export class TdsSideMenuUserLabel {
|
|
|
5
5
|
this.subheading = undefined;
|
|
6
6
|
}
|
|
7
7
|
render() {
|
|
8
|
-
return (h(Host, { key: '
|
|
8
|
+
return (h(Host, { key: '8dc22599239ca34fc6d1b63d1409aaf7921c0056' }, this.heading, this.subheading && h("div", { key: '0f408be52713a85c63f9d527cbcc8d6c6c15077f', class: "subheading" }, this.subheading)));
|
|
9
9
|
}
|
|
10
10
|
static get is() { return "tds-side-menu-user-label"; }
|
|
11
11
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
tds-
|
|
1
|
+
.tds-slider__slider {
|
|
2
2
|
box-sizing: border-box;
|
|
3
3
|
width: 100%;
|
|
4
4
|
}
|
|
5
|
-
tds-
|
|
5
|
+
.tds-slider__slider * {
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
}
|
|
8
|
-
tds-
|
|
8
|
+
.tds-slider__slider input[type=range].tds-slider-native-element {
|
|
9
9
|
display: none;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -266,12 +266,12 @@ tds-slider input[type=range].tds-slider-native-element {
|
|
|
266
266
|
.tds-slider .tds-slider__controls .tds-slider__control {
|
|
267
267
|
cursor: default;
|
|
268
268
|
}
|
|
269
|
-
.tds-slider .tds-slider__controls .tds-slider__control.tds-slider__control-minus tds-
|
|
269
|
+
.tds-slider .tds-slider__controls .tds-slider__control.tds-slider__control-minus .tds-icon__icon, .tds-slider .tds-slider__controls .tds-slider__control.tds-slider__control-plus .tds-icon__icon {
|
|
270
270
|
color: var(--tds-slider-controls-color);
|
|
271
271
|
}
|
|
272
272
|
.tds-slider.disabled .tds-slider__controls .tds-slider__control {
|
|
273
273
|
cursor: default;
|
|
274
274
|
}
|
|
275
|
-
.tds-slider.disabled .tds-slider__controls .tds-slider__control.tds-slider__control-minus tds-
|
|
275
|
+
.tds-slider.disabled .tds-slider__controls .tds-slider__control.tds-slider__control-minus .tds-icon__icon, .tds-slider.disabled .tds-slider__controls .tds-slider__control.tds-slider__control-plus .tds-icon__icon {
|
|
276
276
|
color: var(--tds-slider-disabled);
|
|
277
277
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../utils/generateUniqueId";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
export class TdsSlider {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.wrapperElement = null;
|
|
@@ -291,24 +292,25 @@ export class TdsSlider {
|
|
|
291
292
|
this.updateTrack();
|
|
292
293
|
}
|
|
293
294
|
render() {
|
|
294
|
-
|
|
295
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
296
|
+
return (h(Host, { key: 'f59be8845e333caa7c0af833373649a391563b09', class: "tds-slider__slider" }, h("div", { key: '4d7d3ecec1ce3bd44ed141c5022bda6625b8a660', class: {
|
|
295
297
|
'tds-slider-wrapper': true,
|
|
296
298
|
'read-only': this.readOnly,
|
|
297
|
-
} }, h("input", { key: '
|
|
299
|
+
} }, h("input", { key: 'a8a54f6b4230cc4f8ef148279725c452df2ef4b6', class: "tds-slider-native-element", type: "range", name: this.name, min: this.min, max: this.max, value: this.value, disabled: this.disabled }), h("div", { key: 'c0e0208c6caa21a535a4cbb750fed41cb14ef030', class: {
|
|
298
300
|
'tds-slider': true,
|
|
299
301
|
'disabled': this.disabled,
|
|
300
302
|
'tds-slider-small': this.useSmall,
|
|
301
303
|
}, ref: (el) => {
|
|
302
304
|
this.wrapperElement = el;
|
|
303
|
-
} }, h("label", { key: '
|
|
305
|
+
} }, h("label", { key: '606706a15d33ae88a85853b0d5b11bbd51a06f3f', class: this.showTickNumbers && 'offset' }, this.label), this.useInput && (h("div", { key: '5ce2a53b1cbcbdce6cb02241023a4eba154fb289', class: "tds-slider__input-values" }, h("div", { key: '6db157a82e13fb891795e53f06a6a58992280084', class: "tds-slider__input-value min-value" }, this.min))), this.useControls && (h("div", { key: '548f48afde212ebf1122759ddcfebedc4658f1ac', class: "tds-slider__controls" }, h("div", { key: '9a7fb2027e0d59ba880b8eececbc92b657a12450', class: "tds-slider__control tds-slider__control-minus", onClick: (event) => this.stepLeft(event) }, h(prefixedTagNames.tdsIcon, { key: 'd0599b4d7ff1e0346a5b8382c8a76f164dc5a0c2', name: "minus", size: "16px" })))), h("div", { key: 'fbfe482a64615d87faa69e506b1299dc04307532', class: "tds-slider-inner" }, this.tickValues.length > 0 && (h("div", { key: 'b4dcdf3c127630416df0140af968530cd3ee350d', class: "tds-slider__value-dividers-wrapper" }, h("div", { key: '89bcb0d85cfc5a10fe7f556443472655a9e71ffa', class: "tds-slider__value-dividers" }, this.tickValues.map((value) => (h("div", { class: "tds-slider__value-divider" }, this.showTickNumbers && h("span", null, value))))))), h("div", { key: 'c2587f4cd87a37facb581541a8eb5a1fbdae57bf', class: "tds-slider__track", ref: (el) => {
|
|
304
306
|
this.trackElement = el;
|
|
305
|
-
}, tabindex: this.disabled ? '-1' : '0' }, h("div", { key: '
|
|
307
|
+
}, tabindex: this.disabled ? '-1' : '0' }, h("div", { key: '0a52a7ede85117e2173cfc2d216d90cbbe70d160', class: "tds-slider__track-fill", ref: (el) => {
|
|
306
308
|
this.trackFillElement = el;
|
|
307
|
-
} }), h("div", { key: '
|
|
309
|
+
} }), h("div", { key: '45501ff0945089133881250aa76ef0d56fd9c7ca', class: "tds-slider__thumb", ref: (el) => {
|
|
308
310
|
this.thumbElement = el;
|
|
309
|
-
}, onMouseDown: () => this.grabThumb(), onTouchStart: () => this.grabThumb() }, this.tooltip && (h("div", { key: '
|
|
311
|
+
}, onMouseDown: () => this.grabThumb(), onTouchStart: () => this.grabThumb() }, this.tooltip && (h("div", { key: 'e1811ea68007f25f29c03445629367b3caff26fe', class: "tds-slider__value" }, this.value, h("svg", { key: 'a5a7bb1d10ecfc6db49a81be22193a995d9baef0', width: "18", height: "14", viewBox: "0 0 18 14", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'f91bceaf2cbb9349e1a6d84346e4e5380cf6092d', d: "M8.15882 12.6915L0.990487 1.54076C0.562658 0.875246 1.0405 0 1.83167 0H16.1683C16.9595 0 17.4373 0.875246 17.0095 1.54076L9.84118 12.6915C9.44754 13.3038 8.55246 13.3038 8.15882 12.6915Z", fill: "currentColor" })))), h("div", { key: '83db8611dce8cf7320cb90a321b11a76ad96b6c7', class: "tds-slider__thumb-inner", ref: (el) => {
|
|
310
312
|
this.thumbInnerElement = el;
|
|
311
|
-
} })))), this.useInput && (h("div", { key: '
|
|
313
|
+
} })))), this.useInput && (h("div", { key: 'e9de8343593a63432acd32eff6c2321380c8d5c7', class: "tds-slider__input-values" }, h("div", { key: 'fb2b211bb8074af560d63e571423f869dc4c1fbd', class: "tds-slider__input-value", onClick: (event) => this.stepLeft(event) }, this.max), h("div", { key: '3b57ca9930a560835d3b770043ae0b28bd160956', class: "tds-slider__input-field-wrapper" }, h("input", { key: '363feca5141de60ea1d8c04c4b18e8297c7fe22c', size: this.calculateInputSizeFromMax(), class: "tds-slider__input-field", value: this.value, readOnly: this.readOnly, onBlur: (event) => this.updateSliderValueOnInputChange(event), onKeyDown: (event) => this.handleInputFieldEnterPress(event), type: "number", min: this.min, max: this.max })))), this.useControls && (h("div", { key: 'c815745f6a926c6ebc495bd6b0c29f9230076239', class: "tds-slider__controls" }, h("div", { key: 'd10edf5b472e2bbe6016a9a23885e5f6167da5fd', class: "tds-slider__control tds-slider__control-plus", onClick: (event) => this.stepRight(event) }, h(prefixedTagNames.tdsIcon, { key: '7b629d35bf387ca0932f68f537809587963add2d', name: "plus", size: "16px" }))))))));
|
|
312
314
|
}
|
|
313
315
|
static get is() { return "tds-slider"; }
|
|
314
316
|
static get originalStyleUrls() {
|
|
@@ -667,6 +669,7 @@ export class TdsSlider {
|
|
|
667
669
|
}
|
|
668
670
|
};
|
|
669
671
|
}
|
|
672
|
+
static get elementRef() { return "host"; }
|
|
670
673
|
static get watchers() {
|
|
671
674
|
return [{
|
|
672
675
|
"propName": "value",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
height: 30px;
|
|
22
22
|
min-width: 30px;
|
|
23
23
|
}
|
|
24
|
-
:host [role=listitem].lg .content-container tds-
|
|
24
|
+
:host [role=listitem].lg .content-container .tds-icon__icon {
|
|
25
25
|
vertical-align: bottom;
|
|
26
26
|
}
|
|
27
27
|
:host [role=listitem].lg .content-container .index-container {
|