@scania/tegel 1.18.0-beta.0 → 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
package/dist/collection/components/table/table-header-input-wrapper/table-header-input-wrapper.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
|
const relevantTableProps = ['compactDesign'];
|
|
3
5
|
export class TdsTableHeaderInputWrapper {
|
|
4
6
|
constructor() {
|
|
@@ -22,7 +24,7 @@ export class TdsTableHeaderInputWrapper {
|
|
|
22
24
|
}
|
|
23
25
|
}
|
|
24
26
|
connectedCallback() {
|
|
25
|
-
const tableEl = this.host
|
|
27
|
+
const tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
26
28
|
if (tableEl) {
|
|
27
29
|
this.tableId = tableEl.getAttribute('table-id');
|
|
28
30
|
}
|
|
@@ -31,7 +33,7 @@ export class TdsTableHeaderInputWrapper {
|
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
componentWillLoad() {
|
|
34
|
-
const tableEl = this.host
|
|
36
|
+
const tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
35
37
|
if (tableEl) {
|
|
36
38
|
relevantTableProps.forEach((tablePropName) => {
|
|
37
39
|
this[tablePropName] = tableEl[tablePropName];
|
|
@@ -63,11 +65,12 @@ export class TdsTableHeaderInputWrapper {
|
|
|
63
65
|
}
|
|
64
66
|
}
|
|
65
67
|
render() {
|
|
66
|
-
|
|
68
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
69
|
+
return (h(Host, { key: 'f46f163de241ce331dca3089eb15528e9e7d6baf', class: {
|
|
67
70
|
'focused-input-wrapper': this.inputFocused,
|
|
68
71
|
'show-icon': this.showIcon,
|
|
69
72
|
'tds-table__compact': this.compactDesign,
|
|
70
|
-
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(
|
|
73
|
+
} }, this.renderSlot ? h("slot", { onSlotchange: () => this.handleSlotChange() }) : null, this.showIcon ? (h(prefixedTagNames.tdsIcon, { class: "search-icon", slot: "icon", size: "16px", name: "search" })) : null));
|
|
71
74
|
}
|
|
72
75
|
static get is() { return "tds-table-header-input-wrapper"; }
|
|
73
76
|
static get encapsulation() { return "shadow"; }
|
|
@@ -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
|
const relevantTableProps = [
|
|
3
5
|
'compactDesign',
|
|
4
6
|
'noMinWidth',
|
|
@@ -32,7 +34,7 @@ export class TdsTableToolbar {
|
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
connectedCallback() {
|
|
35
|
-
this.tableEl = this.host
|
|
37
|
+
this.tableEl = findClosestComponent(this.host, 'tdsTable');
|
|
36
38
|
this.tableId = this.tableEl.tableId;
|
|
37
39
|
}
|
|
38
40
|
componentWillLoad() {
|
|
@@ -63,10 +65,11 @@ export class TdsTableToolbar {
|
|
|
63
65
|
return styles;
|
|
64
66
|
}
|
|
65
67
|
render() {
|
|
66
|
-
|
|
68
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
69
|
+
return (h(Host, { key: 'dd9f4aa5fe5fc7d2601800f1458ed867e36cc87c', class: {
|
|
67
70
|
'tds-table--compact': this.compactDesign,
|
|
68
71
|
'toolbar__horizontal-scroll': !!this.horizontalScrollWidth,
|
|
69
|
-
}, style: this.getStyles() }, h("div", { key: '
|
|
72
|
+
}, style: this.getStyles() }, h("div", { key: '58a85d8024c69d67b0295a5e79bbac90cf86d39d', class: "tds-table__upper-bar-flex" }, h("caption", { key: 'd7420a5f0fa606a3ef441a61a0fd10618fbe1fa5', class: "tds-table__title" }, this.tableTitle), h("div", { key: 'afe576548c355196dff3b2e2355453d33d5f5b4a', class: "tds-table__actionbar" }, this.filter && (h("div", { key: '0ccc225cf7c0c1e2ef03c19595f7714c6daca195', class: "tds-table__searchbar" }, h("input", { key: '723a44980b18901bee2408a5f4af80e8e8b11773', class: "tds-table__searchbar-input", type: "text", onKeyUp: (event) => this.handleSearch(event) }), h("span", { key: '11888fa68284d352979cdb3fe9868db5d0e5e129', class: "tds-table__searchbar-icon" }, h(prefixedTagNames.tdsIcon, { key: '30df3849b8a69eee6a42c1ce689aad6334f6b9e5', name: "search", size: "20px" })))), h("slot", { key: '11f4ae49fcfca3241fabfbbc5532090d358e0dbe', name: "end" })))));
|
|
70
73
|
}
|
|
71
74
|
static get is() { return "tds-table-toolbar"; }
|
|
72
75
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the tab elements.
|
|
4
5
|
*/
|
|
@@ -160,9 +161,10 @@ export class TdsFolderTabs {
|
|
|
160
161
|
this.removeEventListenerFromTabs();
|
|
161
162
|
}
|
|
162
163
|
render() {
|
|
163
|
-
|
|
164
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
165
|
+
return (h(Host, { key: 'c7822f3f9e24ee66c3782ed7ea054bf4a8819099', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: 'bbfa39dbe601afde0fdb21f8af42ad2ad7dbae59', class: "wrapper", ref: (el) => {
|
|
164
166
|
this.navWrapperElement = el;
|
|
165
|
-
} }, h("button", { key: '
|
|
167
|
+
} }, h("button", { key: '48308ab796caa64d4c4190fb89d75adb1fbb5a50', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, disabled: !this.showLeftScroll, onClick: () => this.scrollLeft() }, h(prefixedTagNames.tdsIcon, { key: '14d8d684712438a6306535e3cf489ca707d9217a', name: "chevron_left", size: "20px" })), h("slot", { key: '0bc3aa19870d8fb12859256804fcb614b01f32bc', onSlotchange: () => this.handleSlotChange() }), h("button", { key: '25a41c57abd7fb999b1f5983a212c3cec0fb4e0e', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, disabled: !this.showRightScroll, onClick: () => this.scrollRight() }, h(prefixedTagNames.tdsIcon, { key: '4eb9c940876ae98ff15db4790e1e1274a96210df', name: "chevron_right", size: "20px" })))));
|
|
166
168
|
}
|
|
167
169
|
static get is() { return "tds-folder-tabs"; }
|
|
168
170
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the tab elements.
|
|
4
5
|
*/
|
|
@@ -167,9 +168,10 @@ export class TdsInlineTabs {
|
|
|
167
168
|
this.removeEventListenerFromTabs();
|
|
168
169
|
}
|
|
169
170
|
render() {
|
|
170
|
-
|
|
171
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
172
|
+
return (h(Host, { key: 'd84f86419af02d8d561077d932936f797fbfb31b', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '604702fca926fbe3dafe9fec6e9d2fc62c3d8a41', class: "wrapper", ref: (el) => {
|
|
171
173
|
this.navWrapperElement = el;
|
|
172
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '
|
|
174
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: 'a235a8a7277de2e9d1c6db6b395674b00e3bf278', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h(prefixedTagNames.tdsIcon, { key: 'b1252b30f2a18611c897c2f031babec979949fe1', name: "chevron_left", size: "20px" })), h("slot", { key: 'e7123725b3d0633ffe0d2e7adf54e5e32a5468f2', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'b3f17859e2612fdf8372e3ca41cf626ee9602d4a', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h(prefixedTagNames.tdsIcon, { key: '89c0cafa8d776336d3f79515eeda89155a1cb06c', name: "chevron_right", size: "20px" })))));
|
|
173
175
|
}
|
|
174
176
|
static get is() { return "tds-inline-tabs"; }
|
|
175
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../../utils/tagName";
|
|
2
3
|
/**
|
|
3
4
|
* @slot <default> - <b>Unnamed slot.</b> For the tab elements.
|
|
4
5
|
*/
|
|
@@ -167,9 +168,10 @@ export class TdsNavigationTabs {
|
|
|
167
168
|
this.removeEventListenerFromTabs();
|
|
168
169
|
}
|
|
169
170
|
render() {
|
|
170
|
-
|
|
171
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
172
|
+
return (h(Host, { key: '3fc213fbbd4aca3a8cf174c54bbd3bc5592081d8', role: "list", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, h("div", { key: '2ea4a81415f97413972248073d3662b8570556d8', class: "wrapper", ref: (el) => {
|
|
171
173
|
this.navWrapperElement = el;
|
|
172
|
-
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '
|
|
174
|
+
}, style: { paddingLeft: `${this.leftPadding}px` } }, h("button", { key: '755cb2e82df972679f60bd970a8c109b598102c3', class: `scroll-left-button ${this.showLeftScroll ? 'show' : ''}`, onClick: () => this.scrollLeft(), disabled: !this.showLeftScroll }, h(prefixedTagNames.tdsIcon, { key: '464442e41ffb43d78fb43addea3f889021399f42', name: "chevron_left", size: "20px" })), h("slot", { key: 'b9f6b22e2b3aee60c722f164b0604e06b27eff63', onSlotchange: () => this.handleSlotChange() }), h("button", { key: 'a8ba2569f8c6fa3368a32567cde0203489ac393d', class: `scroll-right-button ${this.showRightScroll ? 'show' : ''}`, onClick: () => this.scrollRight(), disabled: !this.showRightScroll }, h(prefixedTagNames.tdsIcon, { key: 'afd428866b64952394eec13bd378da3ed5424a3f', name: "chevron_right", size: "20px" })))));
|
|
173
175
|
}
|
|
174
176
|
static get is() { return "tds-navigation-tabs"; }
|
|
175
177
|
static get encapsulation() { return "shadow"; }
|
|
@@ -349,8 +349,8 @@
|
|
|
349
349
|
margin: 0 0 0 14px;
|
|
350
350
|
color: var(--tds-text-field-ps-color);
|
|
351
351
|
}
|
|
352
|
-
.text-field-slot-wrap-prefix::slotted(:not(tds-
|
|
353
|
-
.text-field-slot-wrap-suffix::slotted(:not(tds-
|
|
352
|
+
.text-field-slot-wrap-prefix::slotted(:not(.tds-icon__icon)),
|
|
353
|
+
.text-field-slot-wrap-suffix::slotted(:not(.tds-icon__icon)) {
|
|
354
354
|
margin: 0 0 0 2px;
|
|
355
355
|
}
|
|
356
356
|
.text-field-slot-wrap-prefix.text-field-error,
|
|
@@ -361,6 +361,6 @@
|
|
|
361
361
|
.text-field-slot-wrap-suffix {
|
|
362
362
|
margin: 0 14px 0 0;
|
|
363
363
|
}
|
|
364
|
-
.text-field-slot-wrap-suffix::slotted(:not(tds-
|
|
364
|
+
.text-field-slot-wrap-suffix::slotted(:not(.tds-icon__icon)) {
|
|
365
365
|
margin: 0 2px 0 0;
|
|
366
366
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
import hasSlot from "../../utils/hasSlot";
|
|
3
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
3
4
|
/**
|
|
4
5
|
* @slot prefix - Slot for the prefix in the component.
|
|
5
6
|
* @slot suffix - Slot for the suffix in the component. Suffix is hidden when the input is in readonly state.
|
|
@@ -48,7 +49,8 @@ export class TdsTextField {
|
|
|
48
49
|
var _a;
|
|
49
50
|
const usesPrefixSlot = hasSlot('prefix', this.host);
|
|
50
51
|
const usesSuffixSlot = hasSlot('suffix', this.host);
|
|
51
|
-
|
|
52
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
53
|
+
return (h("div", { key: '141d82f3bb565871290b22bdc81ccb0f3f8528d7', class: {
|
|
52
54
|
'form-text-field-nomin': this.noMinWidth,
|
|
53
55
|
'form-text-field': !this.focusInput || this.disabled,
|
|
54
56
|
'text-field-focus': this.focusInput && !this.disabled,
|
|
@@ -62,12 +64,12 @@ export class TdsTextField {
|
|
|
62
64
|
'form-text-field-sm': this.size === 'sm',
|
|
63
65
|
'form-text-field-error': this.state === 'error',
|
|
64
66
|
'form-text-field-success': this.state === 'success',
|
|
65
|
-
} }, this.labelPosition === 'outside' && (h("div", { key: '
|
|
67
|
+
} }, this.labelPosition === 'outside' && (h("div", { key: '5f6c4b8c31070f0210726cbbda797e22e7a4c9cf', class: "text-field-label-outside" }, h("div", { key: '99035b37282d1a0f515da68c10d61d3c7fb9d7f8' }, this.label))), h("div", { key: '138afcb4a1b2707708f8cb083dced516528864c7', onClick: () => this.textInput.focus(), class: "text-field-container" }, usesPrefixSlot && (h("div", { key: '7344d1255dcd617f9f1ddfdcfff41e71b9d44755', class: {
|
|
66
68
|
'text-field-slot-wrap-prefix': true,
|
|
67
69
|
'text-field-error': this.state === 'error',
|
|
68
70
|
'text-field-success': this.state === 'success',
|
|
69
71
|
'text-field-default': this.state === 'default',
|
|
70
|
-
} }, h("slot", { key: '
|
|
72
|
+
} }, h("slot", { key: 'da339e8ce954c7a52e1cde1db5ef8e79d3902bf4', name: "prefix" }))), h("div", { key: 'dd4c572362c58f12dc1396b0acfa91046c54f053', class: "text-field-input-container" }, h("input", { key: 'adde4aa5834b186ffd3bfdc2440f6d89984eab04', ref: (inputEl) => (this.textInput = inputEl), class: {
|
|
71
73
|
'text-field-input': true,
|
|
72
74
|
'text-field-input-sm': this.size === 'sm',
|
|
73
75
|
'text-field-input-md': this.size === 'md',
|
|
@@ -80,13 +82,13 @@ export class TdsTextField {
|
|
|
80
82
|
if (!this.readOnly) {
|
|
81
83
|
this.handleBlur(event);
|
|
82
84
|
}
|
|
83
|
-
} }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '
|
|
85
|
+
} }), this.labelPosition === 'inside' && this.size !== 'sm' && (h("label", { key: '8b8369cee1bead3625d0f37f658ec78e5407c309', class: "text-field-label-inside" }, this.label))), h("div", { key: '850146994b5754989ad096ee2d0273b502d0ddb0', class: "text-field-bar" }), usesSuffixSlot && (h("div", { key: 'abd6dcd89dd3309b73b08fc98fd37cc8063e1536', class: {
|
|
84
86
|
'text-field-slot-wrap-suffix': true,
|
|
85
87
|
'text-field-error': this.state === 'error',
|
|
86
88
|
'text-field-success': this.state === 'success',
|
|
87
89
|
'text-field-default': this.state === 'default',
|
|
88
90
|
'tds-u-display-none': this.readOnly,
|
|
89
|
-
} }, h("slot", { key: '
|
|
91
|
+
} }, h("slot", { key: '6bf52e828841de68d56efff61fc77a07fc62e6db', name: "suffix" }))), h("span", { key: 'e52238e33e18d03246e08da731e1a0dccd3b0cf0', class: "text-field-icon__readonly" }, h(prefixedTagNames.tdsIcon, { key: '996e37c7cc519c155026de8277d2fe6c08948858', name: "edit_inactive", size: "20px" })), h("span", { key: '878e26ab9bc489be9d5c4c6d5479a9f5053d8459', class: "text-field-icon__readonly-label" }, "This field is non-editable")), (this.helper || this.maxLength > 0) && (h("div", { key: 'f928b76bd6b4ed5b937c8a5cc051f49d00be510e', class: "text-field-helper" }, this.state === 'error' && (h("div", { key: '1f57aaa3b835d028e6930b74572b57ce79d0eaf3', class: "text-field-helper-error-state" }, h(prefixedTagNames.tdsIcon, { key: '67db0b2ca1e4f304405def4a203341ce4fd24312', name: "error", size: "16px" }), this.helper)), this.state !== 'error' && this.helper, this.maxLength > 0 && (h("div", { key: '39737284a2008115169022d3469f25f95085d01e', class: "text-field-textcounter" }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '6da4eb1f9477f9b3fea086ca70671e1a03b11a4c', class: "text-field-textcounter-divider" }, " / "), this.maxLength))))));
|
|
90
92
|
}
|
|
91
93
|
static get is() { return "tds-text-field"; }
|
|
92
94
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
2
3
|
export class TdsTextarea {
|
|
3
4
|
constructor() {
|
|
4
5
|
this.label = '';
|
|
@@ -38,7 +39,8 @@ export class TdsTextarea {
|
|
|
38
39
|
}
|
|
39
40
|
render() {
|
|
40
41
|
var _a;
|
|
41
|
-
|
|
42
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
43
|
+
return (h("div", { key: '2ffbc3fe9c91d2be0e8a01ca835a92271b1bc0ac', class: `
|
|
42
44
|
textarea-container
|
|
43
45
|
${this.labelPosition === 'inside' ? 'textarea-label-inside' : ''}
|
|
44
46
|
${this.focusInput ? 'textarea-focus' : ''}
|
|
@@ -48,7 +50,7 @@ export class TdsTextarea {
|
|
|
48
50
|
${this.value ? 'textarea-data' : ''}
|
|
49
51
|
${this.state === 'error' || this.state === 'success' ? `textarea-${this.state}` : ''}
|
|
50
52
|
${this.noMinWidth ? 'no-min-width' : ''}
|
|
51
|
-
` }, this.labelPosition !== 'no-label' && h("span", { key: '
|
|
53
|
+
` }, this.labelPosition !== 'no-label' && h("span", { key: '4900080ba517f1a38ef38d542988f385b38533ed', class: 'textarea-label' }, this.label), h("div", { key: 'f148888e98418ff355cb64dcce03aed344d98cbc', class: "textarea-wrapper" }, h("textarea", { key: 'ed14dd41f9ee8384ca824b1c0de33b76ab3b3153', class: 'textarea-input', ref: (inputEl) => (this.textEl = inputEl), disabled: this.disabled, readonly: this.readOnly, placeholder: this.placeholder, value: this.value, name: this.name, autofocus: this.autofocus, maxlength: this.maxLength, cols: this.cols, rows: this.rows, onFocus: (event) => {
|
|
52
54
|
if (!this.readOnly) {
|
|
53
55
|
this.handleFocus(event);
|
|
54
56
|
}
|
|
@@ -56,7 +58,7 @@ export class TdsTextarea {
|
|
|
56
58
|
if (!this.readOnly) {
|
|
57
59
|
this.handleBlur(event);
|
|
58
60
|
}
|
|
59
|
-
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event) }), h("span", { key: '
|
|
61
|
+
}, onInput: (event) => this.handleInput(event), onChange: (event) => this.handleChange(event) }), h("span", { key: 'bb848734a2517199be59296307c408eddfa9ddff', class: "textarea-resizer-icon" }, h("svg", { key: 'e78b4be10f32ab013d5dfe974841372e9f493426', width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'bad8f7bafc618fcb2bcc8c9d08b7023b52bb367d', "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M11.8536 0.853553C12.0488 0.658291 12.0488 0.341709 11.8536 0.146447C11.6583 -0.0488155 11.3417 -0.0488155 11.1464 0.146447L0.146447 11.1464C-0.0488155 11.3417 -0.0488155 11.6583 0.146447 11.8536C0.341709 12.0488 0.658291 12.0488 0.853553 11.8536L11.8536 0.853553ZM11.8536 4.64645C12.0488 4.84171 12.0488 5.15829 11.8536 5.35355L5.35355 11.8536C5.15829 12.0488 4.84171 12.0488 4.64645 11.8536C4.45118 11.6583 4.45118 11.3417 4.64645 11.1464L11.1464 4.64645C11.3417 4.45118 11.6583 4.45118 11.8536 4.64645ZM11.8536 8.64645C12.0488 8.84171 12.0488 9.15829 11.8536 9.35355L9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536C8.45118 11.6583 8.45118 11.3417 8.64645 11.1464L11.1464 8.64645C11.3417 8.45118 11.6583 8.45118 11.8536 8.64645Z", fill: "currentColor" }))), h("span", { key: 'dd180dcf4529be58a6db11a4cf8f7d68df7a8cfa', class: "textarea-icon__readonly" }, h(prefixedTagNames.tdsIcon, { key: '5b8111eeb2788ae26843eae41e97c95c83111724', name: "edit_inactive" })), h("span", { key: '81bedd221938ffc0e116bed90613d8805a24fc02', class: "textarea-icon__readonly-label" }, "This field is non-editable")), h("span", { key: 'e9cbeee4ee01ea188a900122cb305a3da2ebda5a', class: 'textarea-helper' }, this.state === 'error' && h(prefixedTagNames.tdsIcon, { key: '0bf1f5d24a654c9153d68d8b3d81953a0b6c4e6a', name: "error", size: "16px" }), this.helper), this.maxLength > 0 && (h("div", { key: '6f226fcab1a9ec86c75a4979e780e0c655457632', class: 'textarea-textcounter' }, this.value === null ? 0 : (_a = this.value) === null || _a === void 0 ? void 0 : _a.length, h("span", { key: '21161e36801d902822b5e8a8e58f342b4b69aae9', class: "textfield-textcounter-divider" }, " / "), " ", this.maxLength))));
|
|
60
62
|
}
|
|
61
63
|
static get is() { return "tds-textarea"; }
|
|
62
64
|
static get encapsulation() { return "scoped"; }
|
|
@@ -423,4 +425,5 @@ export class TdsTextarea {
|
|
|
423
425
|
}
|
|
424
426
|
}];
|
|
425
427
|
}
|
|
428
|
+
static get elementRef() { return "host"; }
|
|
426
429
|
}
|
|
@@ -15,25 +15,25 @@
|
|
|
15
15
|
:host .wrapper.information {
|
|
16
16
|
border-left: 4px solid var(--tds-information);
|
|
17
17
|
}
|
|
18
|
-
:host .wrapper.information
|
|
18
|
+
:host .wrapper.information .icon {
|
|
19
19
|
color: var(--tds-information);
|
|
20
20
|
}
|
|
21
21
|
:host .wrapper.success {
|
|
22
22
|
border-left: 4px solid var(--tds-positive);
|
|
23
23
|
}
|
|
24
|
-
:host .wrapper.success
|
|
24
|
+
:host .wrapper.success .icon {
|
|
25
25
|
color: var(--tds-positive);
|
|
26
26
|
}
|
|
27
27
|
:host .wrapper.error {
|
|
28
28
|
border-left: 4px solid var(--tds-negative);
|
|
29
29
|
}
|
|
30
|
-
:host .wrapper.error
|
|
30
|
+
:host .wrapper.error .icon {
|
|
31
31
|
color: var(--tds-negative);
|
|
32
32
|
}
|
|
33
33
|
:host .wrapper.warning {
|
|
34
34
|
border-left: 4px solid var(--tds-warning);
|
|
35
35
|
}
|
|
36
|
-
:host .wrapper.warning
|
|
36
|
+
:host .wrapper.warning .icon {
|
|
37
37
|
color: var(--tds-warning);
|
|
38
38
|
}
|
|
39
39
|
:host .wrapper button.close {
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
outline: 2px solid var(--tds-blue-400);
|
|
54
54
|
outline-offset: -2px;
|
|
55
55
|
}
|
|
56
|
-
:host .wrapper button.close
|
|
56
|
+
:host .wrapper button.close .icon {
|
|
57
57
|
color: var(--tds-toast-dissmiss-color);
|
|
58
58
|
padding: 0;
|
|
59
59
|
}
|
|
60
|
-
:host
|
|
60
|
+
:host .icon {
|
|
61
61
|
padding: 14px 0 0 12px;
|
|
62
62
|
}
|
|
63
63
|
:host .content {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
2
|
import generateUniqueId from "../../utils/generateUniqueId";
|
|
3
3
|
import hasSlot from "../../utils/hasSlot";
|
|
4
|
+
import { getPrefixedTagNames } from "../../utils/tagName";
|
|
4
5
|
/**
|
|
5
6
|
* @slot header - Slot for the Toast header.
|
|
6
7
|
* @slot subheader - Slot for the Toast subheader.
|
|
@@ -58,12 +59,14 @@ export class TdsToast {
|
|
|
58
59
|
const usesHeaderSlot = hasSlot('header', this.host);
|
|
59
60
|
const usesSubheaderSlot = hasSlot('subheader', this.host);
|
|
60
61
|
const usesActionsSlot = hasSlot('actions', this.host);
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
63
|
+
return (h(Host, { key: '78c74c1686e4d0820eb3f56a4a745bd5e3821790', toastRole: this.toastRole, "aria-describedby": this.host.getAttribute('aria-describedby'), class: {
|
|
64
|
+
'tds-toast__toast': true,
|
|
65
|
+
'hide': this.hidden,
|
|
66
|
+
'show': !this.hidden,
|
|
67
|
+
} }, h("div", { key: '89e5f717d0ffae890c36fb7232b5050ee58c88ae', class: `
|
|
65
68
|
wrapper
|
|
66
|
-
${this.variant}` }, h(
|
|
69
|
+
${this.variant}` }, h(prefixedTagNames.tdsIcon, { key: '9c9d0f82620dd1e1809b6be4fc2ac147f9c297ee', class: "icon", name: this.getIconName(), size: "20px" }), h("div", { key: '91e8e4718f63002f1419c7ca59f75170afd4fea0', class: `content` }, h("div", { key: '05fa1bd015f1c57945496b5676f908e8d8e4369d', class: "header-subheader" }, this.header && h("div", { key: '6e6322e0ebd6a3d692f7031955c0ce86ef15bd8b', class: "header" }, this.header), usesHeaderSlot && h("slot", { key: '1b376221cffd4c488c21375385ebe13926b48929', name: "header" }), this.subheader && h("div", { key: '16800c1b193cec322e1688fb14ce2669256566a0', class: "subheader" }, this.subheader), usesSubheaderSlot && h("slot", { key: '754e558a74d3fd49e67d1aa111d98bf07fa81498', name: "subheader" })), usesActionsSlot && (h("div", { key: '6301ef7f0bcf1545b1f4da47151207e1ae43cfe5', class: `toast-bottom ${usesSubheaderSlot || this.subheader ? 'subheader' : 'no-subheader'}` }, h("slot", { key: '726406d9c50002b53f62f5f909dd88d3b663b42d', name: "actions" })))), this.closable && (h("button", { key: '8f109e5e2e6bbc2c928b4530e9a7ce1e930601e2', onClick: this.handleClose, class: "close" }, h(prefixedTagNames.tdsIcon, { key: '0996e5753dddca460089809d76030ee8d5c0ce83', class: "icon", name: "cross", size: "20px" }))))));
|
|
67
70
|
}
|
|
68
71
|
static get is() { return "tds-toast"; }
|
|
69
72
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } 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 tooltip contents.
|
|
5
6
|
*/
|
|
@@ -51,7 +52,8 @@ export class TdsTooltip {
|
|
|
51
52
|
}
|
|
52
53
|
render() {
|
|
53
54
|
var _a;
|
|
54
|
-
|
|
55
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
56
|
+
return (h(Host, { key: 'a0c6888bc1971fa8eee816c1b3ff6a34990a1434' }, h(prefixedTagNames.tdsPopoverCore, Object.assign({ key: 'b588d5c2b43c823530212f718b82db59cdd4b0ad' }, this.inheritedAttributes, { class: {
|
|
55
57
|
'tds-tooltip': true,
|
|
56
58
|
[`tds-tooltip-${this.border}`]: true,
|
|
57
59
|
[(_a = this.inheritedAttributes.class) !== null && _a !== void 0 ? _a : '']: true,
|
|
@@ -60,7 +62,7 @@ export class TdsTooltip {
|
|
|
60
62
|
this.show = true;
|
|
61
63
|
}, onInternalTdsClose: () => {
|
|
62
64
|
this.show = false;
|
|
63
|
-
} }), this.text, h("slot", { key: '
|
|
65
|
+
} }), this.text, h("slot", { key: '12f1e8a295ddc16111dc9e01353ffb431da50e59' }))));
|
|
64
66
|
}
|
|
65
67
|
static get is() { return "tds-tooltip"; }
|
|
66
68
|
static get encapsulation() { return "scoped"; }
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { getPrefixedTagNames } from "./tagName";
|
|
2
|
+
/**
|
|
3
|
+
* Checks if the given host element is within a specific component based on the component's tag name.
|
|
4
|
+
*
|
|
5
|
+
* @param {HTMLElement} host - The element to check.
|
|
6
|
+
* @param {keyof PrefixedTagNames} component - The tag name of the component to check against.
|
|
7
|
+
* @returns {HTMLElement | null} The closest ancestor element that matches the component's tag name, or null if not found.
|
|
8
|
+
*/
|
|
9
|
+
export const findClosestComponent = (host, component) => host.closest(getPrefixedTagNames(host)[component]);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { getPrefixedTagNames, paramCaseToCamelCase, getTagName } from "./tagName";
|
|
2
|
+
export const getDirectChildHTMLElementOfKind = (element, tagName) => {
|
|
3
|
+
const children = Array.from(element.children);
|
|
4
|
+
const prefixedElementTagName = getPrefixedTagNames(element)[paramCaseToCamelCase(tagName)];
|
|
5
|
+
return Array.from(children).filter((el) => getTagName(el) === prefixedElementTagName);
|
|
6
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// eslint-disable-next-line import/no-relative-packages
|
|
2
|
+
import { TAG_NAMES } from "./tagNames";
|
|
3
|
+
// Utils to handle tag names for 'tds-' prefixed components
|
|
4
|
+
export const getTagName = (el) => {
|
|
5
|
+
if (!el || !(el instanceof HTMLElement)) {
|
|
6
|
+
console.error('Invalid element provided:', el);
|
|
7
|
+
return ''; // Return a default or throw an error
|
|
8
|
+
}
|
|
9
|
+
return el.tagName.toLowerCase();
|
|
10
|
+
};
|
|
11
|
+
export const paramCaseToCamelCase = (str) => str.replace(/-(\w)/g, (_, group) => group.toUpperCase());
|
|
12
|
+
export const getTagNameWithoutPrefix = (host) => {
|
|
13
|
+
const tagName = getTagName(host);
|
|
14
|
+
const [, tagNameWithoutPrefix = ''] = /^(?:[a-z-]+-)?(tds-[a-z-]+)$/.exec(tagName) || [];
|
|
15
|
+
return (tagNameWithoutPrefix || tagName); // return tagName as fallback for default tags
|
|
16
|
+
};
|
|
17
|
+
class PrefixedTagNamesCache extends Map {
|
|
18
|
+
}
|
|
19
|
+
const PREFIXED_TAG_NAMES_CACHE = new PrefixedTagNamesCache();
|
|
20
|
+
export const getPrefixedTagNames = (host) => {
|
|
21
|
+
const [, prefix = ''] = /^([a-z-]+)-tds-[a-z-]+$/.exec(getTagName(host)) || [];
|
|
22
|
+
if (!PREFIXED_TAG_NAMES_CACHE.has(prefix)) {
|
|
23
|
+
const tagNames = TAG_NAMES.reduce(prefix
|
|
24
|
+
? (result, tag) => (Object.assign(Object.assign({}, result), { [paramCaseToCamelCase(tag)]: `${prefix}-${tag}` }))
|
|
25
|
+
: (result, tag) => (Object.assign(Object.assign({}, result), { [paramCaseToCamelCase(tag)]: tag })), {});
|
|
26
|
+
PREFIXED_TAG_NAMES_CACHE.set(prefix, tagNames);
|
|
27
|
+
}
|
|
28
|
+
return PREFIXED_TAG_NAMES_CACHE.get(prefix);
|
|
29
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
export const TAG_NAMES = [
|
|
2
|
+
'tds-accordion',
|
|
3
|
+
'tds-badge',
|
|
4
|
+
'tds-block',
|
|
5
|
+
'tds-breadcrumbs',
|
|
6
|
+
'tds-button',
|
|
7
|
+
'tds-banner',
|
|
8
|
+
'tds-card',
|
|
9
|
+
'tds-checkbox',
|
|
10
|
+
'tds-chip',
|
|
11
|
+
'tds-datetime',
|
|
12
|
+
'tds-divider',
|
|
13
|
+
'tds-dropdown',
|
|
14
|
+
'tds-footer',
|
|
15
|
+
'tds-header',
|
|
16
|
+
'tds-icon',
|
|
17
|
+
'tds-link',
|
|
18
|
+
'tds-message',
|
|
19
|
+
'tds-modal',
|
|
20
|
+
'tds-popover-canvas',
|
|
21
|
+
'tds-popover-core',
|
|
22
|
+
'tds-popover-menu',
|
|
23
|
+
'tds-radio-button',
|
|
24
|
+
'tds-side-menu',
|
|
25
|
+
'tds-slider',
|
|
26
|
+
'tds-spinner',
|
|
27
|
+
'tds-stepper',
|
|
28
|
+
'tds-text-field',
|
|
29
|
+
'tds-textarea',
|
|
30
|
+
'tds-toast',
|
|
31
|
+
'tds-toggle',
|
|
32
|
+
'tds-tooltip',
|
|
33
|
+
'tds-accordion-item',
|
|
34
|
+
'tds-breadcrumb',
|
|
35
|
+
'tds-dropdown-option',
|
|
36
|
+
'tds-footer-group',
|
|
37
|
+
'tds-footer-item',
|
|
38
|
+
'tds-core-header-item',
|
|
39
|
+
'tds-header-dropdown',
|
|
40
|
+
'tds-header-brand-symbol',
|
|
41
|
+
'tds-header-dropdown-list',
|
|
42
|
+
'tds-header-dropdown-list-item',
|
|
43
|
+
'tds-header-hamburger',
|
|
44
|
+
'tds-header-dropdown-list-user',
|
|
45
|
+
'tds-header-item',
|
|
46
|
+
'tds-header-launcher',
|
|
47
|
+
'tds-header-launcher-button',
|
|
48
|
+
'tds-header-launcher-grid',
|
|
49
|
+
'tds-header-launcher-grid-item',
|
|
50
|
+
'tds-header-launcher-grid-title',
|
|
51
|
+
'tds-header-launcher-list',
|
|
52
|
+
'tds-header-launcher-list-item',
|
|
53
|
+
'tds-header-launcher-list-title',
|
|
54
|
+
'tds-header-title',
|
|
55
|
+
'tds-popover-menu-item',
|
|
56
|
+
'tds-side-menu-dropdown',
|
|
57
|
+
'tds-side-menu-collapse-button',
|
|
58
|
+
'tds-side-menu-close-button',
|
|
59
|
+
'tds-side-menu-dropdown-list',
|
|
60
|
+
'tds-side-menu-item',
|
|
61
|
+
'tds-side-menu-dropdown-list-item',
|
|
62
|
+
'tds-side-menu-overlay',
|
|
63
|
+
'tds-side-menu-user',
|
|
64
|
+
'tds-side-menu-user-image',
|
|
65
|
+
'tds-side-menu-user-label',
|
|
66
|
+
'tds-step',
|
|
67
|
+
'tds-table',
|
|
68
|
+
'tds-table-body',
|
|
69
|
+
'tds-body-cell',
|
|
70
|
+
'tds-table-body-input-wrapper',
|
|
71
|
+
'tds-table-body-row',
|
|
72
|
+
'tds-table-body-row-expandable',
|
|
73
|
+
'tds-table-footer',
|
|
74
|
+
'tds-table-header',
|
|
75
|
+
'tds-header-cell',
|
|
76
|
+
'tds-table-header-input-wrapper',
|
|
77
|
+
'tds-table-toolbar',
|
|
78
|
+
'tds-folder-tabs',
|
|
79
|
+
'tds-inline-tabs',
|
|
80
|
+
'tds-navigation-tabs',
|
|
81
|
+
'tds-date-picker',
|
|
82
|
+
'tds-date-range-picker',
|
|
83
|
+
'tds-folder-tab',
|
|
84
|
+
'tds-inline-tab',
|
|
85
|
+
'tds-navigation-tab',
|
|
86
|
+
'date-picker-day',
|
|
87
|
+
'date-picker-month',
|
|
88
|
+
'date-picker-year',
|
|
89
|
+
'date-range-picker-day',
|
|
90
|
+
];
|
|
91
|
+
export const INTERNAL_TAG_NAMES = [];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { g as getPrefixedTagNames } from './p-b33f8162.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks if the given host element is within a specific component based on the component's tag name.
|
|
5
|
+
*
|
|
6
|
+
* @param {HTMLElement} host - The element to check.
|
|
7
|
+
* @param {keyof PrefixedTagNames} component - The tag name of the component to check against.
|
|
8
|
+
* @returns {HTMLElement | null} The closest ancestor element that matches the component's tag name, or null if not found.
|
|
9
|
+
*/
|
|
10
|
+
const findClosestComponent = (host, component) => host.closest(getPrefixedTagNames(host)[component]);
|
|
11
|
+
|
|
12
|
+
export { findClosestComponent as f };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
|
|
2
2
|
import { d as dfs } from './p-52bf0fdf.js';
|
|
3
|
-
import {
|
|
3
|
+
import { g as getPrefixedTagNames } from './p-b33f8162.js';
|
|
4
4
|
|
|
5
5
|
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)}:host ::slotted(button:focus-visible),:host ::slotted(a:focus-visible){outline:2px solid var(--tds-blue-400);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){background-color:var(--tds-header--basic-element-background-selected);padding-top:4px;border-bottom-style:solid;border-bottom-width:4px;border-bottom-color:var(--tds-nav-item-border-color-active)}";
|
|
6
6
|
const TdsHeaderItemStyle0 = headerItemCss;
|
|
@@ -28,7 +28,8 @@ const TdsHeaderItem = /*@__PURE__*/ proxyCustomElement(class TdsHeaderItem exten
|
|
|
28
28
|
*/
|
|
29
29
|
updateSlottedElements() {
|
|
30
30
|
if (this.slotEl) {
|
|
31
|
-
const isIconOrSvg = (element) => element.tagName.toLowerCase()
|
|
31
|
+
const isIconOrSvg = (element) => element.tagName.toLowerCase().endsWith('tds-icon') ||
|
|
32
|
+
element.tagName.toLowerCase() === 'svg';
|
|
32
33
|
const addIconClass = (element) => element.classList.add('__tds-header-item-icon');
|
|
33
34
|
this.updateSlotted(isIconOrSvg, addIconClass);
|
|
34
35
|
const isImage = (element) => element.tagName.toLowerCase() === 'img';
|
|
@@ -42,10 +43,11 @@ const TdsHeaderItem = /*@__PURE__*/ proxyCustomElement(class TdsHeaderItem exten
|
|
|
42
43
|
this.slotEl.addEventListener('slotchange', this.updateSlottedElements);
|
|
43
44
|
}
|
|
44
45
|
render() {
|
|
45
|
-
|
|
46
|
+
const prefixedTagNames = getPrefixedTagNames(this.host);
|
|
47
|
+
return (h(Host, { key: 'd1c94674e28c6a6cf9a9af92db727502b1651925', class: "tds-header__item" }, h(prefixedTagNames.tdsCoreHeaderItem, { key: '9a87862220bc119fc9317dca058695bd51c3d454', class: {
|
|
46
48
|
'component-active': this.active,
|
|
47
49
|
'component-selected': this.selected,
|
|
48
|
-
} }, h("slot", { key: '
|
|
50
|
+
} }, h("slot", { key: '56fc833b48a34bb114676824139ecac3d0402a43' }))));
|
|
49
51
|
}
|
|
50
52
|
get host() { return this; }
|
|
51
53
|
static get style() { return TdsHeaderItemStyle0; }
|
|
@@ -57,18 +59,13 @@ function defineCustomElement() {
|
|
|
57
59
|
if (typeof customElements === "undefined") {
|
|
58
60
|
return;
|
|
59
61
|
}
|
|
60
|
-
const components = ["tds-header-item"
|
|
62
|
+
const components = ["tds-header-item"];
|
|
61
63
|
components.forEach(tagName => { switch (tagName) {
|
|
62
64
|
case "tds-header-item":
|
|
63
65
|
if (!customElements.get(tagName)) {
|
|
64
66
|
customElements.define(tagName, TdsHeaderItem);
|
|
65
67
|
}
|
|
66
68
|
break;
|
|
67
|
-
case "tds-core-header-item":
|
|
68
|
-
if (!customElements.get(tagName)) {
|
|
69
|
-
defineCustomElement$1();
|
|
70
|
-
}
|
|
71
|
-
break;
|
|
72
69
|
} });
|
|
73
70
|
}
|
|
74
71
|
defineCustomElement();
|