@scania/tegel 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/dfs-babd18a6.js +29 -0
- package/dist/cjs/generateUniqueId-56da4810.js +28 -0
- package/dist/cjs/hasSlot-1c90e9ba.js +11 -0
- package/dist/cjs/{index-2a60e106.js → index-f21bdb5d.js} +96 -25
- package/dist/cjs/inheritAriaAttributes-640b1abb.js +78 -0
- package/dist/cjs/inheritAttributes-845f5217.js +27 -0
- package/dist/cjs/isHeadingElement-d31dde38.js +71 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-accordion.cjs.entry.js +1 -1
- package/dist/cjs/tds-badge.cjs.entry.js +1 -1
- package/dist/cjs/tds-banner.cjs.entry.js +7 -6
- package/dist/cjs/tds-block.cjs.entry.js +5 -3
- package/dist/cjs/tds-body-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/tds-button.cjs.entry.js +5 -5
- package/dist/cjs/tds-card.cjs.entry.js +11 -10
- package/dist/cjs/tds-checkbox.cjs.entry.js +3 -3
- package/dist/cjs/tds-chip.cjs.entry.js +7 -6
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +3 -3
- package/dist/cjs/tds-datetime.cjs.entry.js +2 -2
- package/dist/cjs/tds-divider.cjs.entry.js +1 -1
- package/dist/cjs/tds-dropdown-option.cjs.entry.js +4 -3
- package/dist/cjs/tds-dropdown.cjs.entry.js +191 -57
- package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer-group.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer.cjs.entry.js +5 -5
- package/dist/cjs/tds-header-brand-symbol.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +3 -3
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-launcher-grid-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +3 -3
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +5 -4
- package/dist/cjs/tds-header-launcher-list-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +3 -3
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +3 -3
- package/dist/cjs/tds-header-launcher.cjs.entry.js +6 -4
- package/dist/cjs/tds-header-title.cjs.entry.js +1 -1
- package/dist/cjs/tds-header.cjs.entry.js +21 -5
- package/dist/cjs/tds-icon.cjs.entry.js +4 -2
- package/dist/cjs/tds-inline-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +1 -7
- package/dist/cjs/tds-link.cjs.entry.js +1 -1
- package/dist/cjs/tds-message.cjs.entry.js +1 -1
- package/dist/cjs/tds-modal.cjs.entry.js +17 -21
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +2 -2
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +1 -4
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +3 -3
- package/dist/cjs/tds-popover-core.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu.cjs.entry.js +3 -3
- package/dist/cjs/tds-radio-button.cjs.entry.js +3 -3
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +4 -3
- package/dist/cjs/tds-side-menu-collapse-button.cjs.entry.js +2 -2
- package/dist/cjs/tds-side-menu-dropdown-list-item.cjs.entry.js +3 -1
- package/dist/cjs/tds-side-menu-dropdown-list.cjs.entry.js +3 -1
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +2 -1
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +5 -3
- package/dist/cjs/tds-side-menu-overlay.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user-image_2.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-user.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu.cjs.entry.js +1 -1
- package/dist/cjs/tds-slider.cjs.entry.js +15 -9
- package/dist/cjs/tds-spinner.cjs.entry.js +1 -1
- package/dist/cjs/tds-step.cjs.entry.js +1 -1
- package/dist/cjs/tds-stepper.cjs.entry.js +3 -3
- package/dist/cjs/tds-table-body-row-expandable.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body-row.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-body.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-footer.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-header.cjs.entry.js +1 -1
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/tds-table.cjs.entry.js +3 -3
- package/dist/cjs/tds-text-field.cjs.entry.js +5 -5
- package/dist/cjs/tds-textarea.cjs.entry.js +1 -1
- package/dist/cjs/tds-toast.cjs.entry.js +8 -7
- package/dist/cjs/tds-toggle.cjs.entry.js +3 -3
- package/dist/cjs/tds-tooltip.cjs.entry.js +3 -3
- package/dist/cjs/tegel.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +2 -2
- package/dist/collection/components/accordion/accordion.stories.js +1 -1
- package/dist/collection/components/badge/badge.stories.js +1 -1
- package/dist/collection/components/banner/banner.js +2 -1
- package/dist/collection/components/banner/banner.stories.js +2 -2
- package/dist/collection/components/block/block.js +4 -2
- package/dist/collection/components/block/block.stories.js +1 -1
- package/dist/collection/components/breadcrumbs/breadcrumbs.stories.js +1 -1
- package/dist/collection/components/button/button.css +12 -12
- package/dist/collection/components/button/button.js +1 -1
- package/dist/collection/components/button/button.stories.js +2 -2
- package/dist/collection/components/card/card.css +4 -2
- package/dist/collection/components/card/card.js +2 -1
- package/dist/collection/components/card/card.stories.js +1 -1
- package/dist/collection/components/checkbox/checkbox.js +1 -1
- package/dist/collection/components/checkbox/checkbox.stories.js +1 -1
- package/dist/collection/components/chip/chip.js +2 -1
- package/dist/collection/components/chip/chip.stories.js +1 -1
- package/dist/collection/components/datetime/datetime.js +1 -1
- package/dist/collection/components/datetime/datetime.stories.js +1 -1
- package/dist/collection/components/divider/divider.stories.js +1 -1
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +4 -3
- package/dist/collection/components/dropdown/dropdown.css +7 -2
- package/dist/collection/components/dropdown/dropdown.js +161 -63
- package/dist/collection/components/dropdown/dropdown.stories.js +10 -14
- package/dist/collection/components/dropdown/test/dropdown.e2e.js +32 -0
- package/dist/collection/components/dropdown/test/dropdown.filter.spec.js +49 -0
- package/dist/collection/components/dropdown/test/dropdown.multiselect.e2e.js +31 -0
- package/dist/collection/components/dropdown/test/dropdown.multiselect.spec.js +51 -0
- package/dist/collection/components/dropdown/test/dropdown.spec.js +51 -0
- package/dist/collection/components/footer/footer.js +2 -3
- package/dist/collection/components/footer/footer.stories.js +1 -1
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +1 -1
- package/dist/collection/components/header/header-dropdown-list/header-dropdown-list.js +2 -1
- package/dist/collection/components/header/header-hamburger/header-hamburger.js +1 -1
- package/dist/collection/components/header/header-item/header-item.js +1 -1
- package/dist/collection/components/header/header-launcher/header-launcher.js +2 -1
- package/dist/collection/components/header/header-launcher-button/header-launcher-button.js +1 -1
- package/dist/collection/components/header/header-launcher-grid/header-launcher-grid.js +2 -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 +1 -1
- package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +1 -1
- package/dist/collection/components/header/header.js +2 -1
- package/dist/collection/components/header/header.stories.js +1 -1
- package/dist/collection/components/icon/icon.js +20 -1
- package/dist/collection/components/icon/icon.stories.js +1 -1
- package/dist/collection/components/link/link.stories.js +1 -1
- package/dist/collection/components/message/message.stories.js +1 -1
- package/dist/collection/components/modal/modal.css +27 -33
- package/dist/collection/components/modal/modal.js +12 -16
- package/dist/collection/components/modal/modal.stories.js +17 -7
- package/dist/collection/components/popover-canvas/popover-canvas.js +1 -1
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +1 -1
- package/dist/collection/components/popover-menu/popover-menu.js +1 -1
- package/dist/collection/components/popover-menu/popover-menu.stories.js +3 -5
- package/dist/collection/components/radio-button/radio-button.js +1 -1
- package/dist/collection/components/radio-button/radio-button.stories.js +1 -1
- package/dist/collection/components/side-menu/side-menu-close-button/side-menu-close-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +1 -1
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +1 -0
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +2 -0
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +2 -0
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +3 -1
- package/dist/collection/components/side-menu/side-menu.js +3 -3
- package/dist/collection/components/side-menu/side-menu.stories.js +12 -3
- package/dist/collection/components/slider/slider.js +16 -7
- package/dist/collection/components/slider/slider.stories.js +3 -3
- package/dist/collection/components/spinner/spinner.stories.js +1 -1
- package/dist/collection/components/stepper/stepper.js +6 -3
- package/dist/collection/components/stepper/stepper.stories.js +1 -1
- package/dist/collection/components/table/table/table.js +2 -2
- package/dist/collection/components/table/table-component-basic.stories.js +1 -1
- package/dist/collection/components/table/table-component-batch-actions.stories.js +1 -1
- package/dist/collection/components/table/table-component-custom-width.stories.js +1 -1
- package/dist/collection/components/table/table-component-expandable-rows.stories.js +1 -1
- package/dist/collection/components/table/table-component-filtering.stories.js +1 -9
- package/dist/collection/components/table/table-component-multiselect.stories.js +1 -2
- package/dist/collection/components/table/table-component-pagination.stories.js +1 -1
- package/dist/collection/components/table/table-component-sorting.stories.js +1 -1
- package/dist/collection/components/table/table.filtering.spec.js +0 -3
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.css +3 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +1 -1
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +3 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +1 -7
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +1 -1
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +4 -3
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +0 -3
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +1 -1
- package/dist/collection/components/text-field/text-field.js +2 -2
- package/dist/collection/components/text-field/text-field.stories.js +1 -1
- package/dist/collection/components/textarea/textarea.stories.js +1 -1
- package/dist/collection/components/toast/toast.css +6 -4
- package/dist/collection/components/toast/toast.js +2 -1
- package/dist/collection/components/toast/toast.stories.js +1 -1
- package/dist/collection/components/toggle/toggle.js +1 -1
- package/dist/collection/components/toggle/toggle.stories.js +1 -1
- package/dist/collection/components/tooltip/tooltip.js +1 -1
- package/dist/collection/components/tooltip/tooltip.stories.js +3 -13
- package/dist/collection/stories/Installation/installation.stories.js +4 -8
- package/dist/collection/stories/formatHtmlPreview.js +10 -0
- package/dist/collection/stories/foundations/color/color-brand.stories.js +1 -1
- package/dist/collection/stories/foundations/color/color-scales.stories.js +1 -1
- package/dist/collection/stories/foundations/color/color-semantic.stories.js +2 -2
- package/dist/collection/stories/foundations/grid/grid.stories.js +1 -1
- package/dist/collection/stories/foundations/spacing/spacing-element.stories.js +1 -1
- package/dist/collection/stories/foundations/spacing/spacing-layout.stories.js +1 -1
- package/dist/collection/stories/foundations/typography/typography-body.stories.js +1 -1
- package/dist/collection/stories/foundations/typography/typography-detail.stories.js +1 -1
- package/dist/collection/stories/foundations/typography/typography-headline.stories.js +1 -1
- package/dist/collection/stories/foundations/typography/typography-paragraph.stories.js +1 -1
- package/dist/collection/stories/patterns/navigation/navigation-basic.stories.js +1 -1
- package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +1 -1
- package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +1 -1
- package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +1 -1
- package/dist/collection/stories/utility/color/background-color.stories.js +1 -1
- package/dist/collection/stories/utility/color/text-color.stories.js +1 -1
- package/dist/collection/types/Attributes.js +1 -0
- package/dist/collection/utils/appendHiddenInput.js +25 -0
- package/dist/collection/utils/dfs.js +26 -0
- package/dist/collection/utils/findNextFocusableElement.js +16 -0
- package/dist/collection/utils/findPreviousFocusableElement.js +17 -0
- package/dist/collection/utils/generateUniqueId.js +25 -0
- package/dist/collection/utils/getNestedChildOfSiblingsMatching.js +22 -0
- package/dist/collection/utils/getNextNestedChildOfSiblingsMatching.js +32 -0
- package/dist/collection/utils/getNextSibling.js +2 -0
- package/dist/collection/utils/getPreviousNestedChildOfSiblingsMatching.js +32 -0
- package/dist/collection/utils/getPreviousSibling.js +2 -0
- package/dist/collection/utils/hasSlot.js +8 -0
- package/dist/collection/utils/inheritAriaAttributes.js +74 -0
- package/dist/collection/utils/inheritAttributes.js +24 -0
- package/dist/collection/utils/isHeadingElement.js +12 -0
- package/dist/collection/utils/updateListChildrenRoles.js +15 -0
- package/{components → dist/components}/checkbox.js +1 -1
- package/dist/components/dfs.js +27 -0
- package/dist/components/generateUniqueId.js +26 -0
- package/dist/components/getPreviousNestedChildOfSiblingsMatching.js +68 -0
- package/dist/components/hasSlot.js +9 -0
- package/{components → dist/components}/header-dropdown-list.js +1 -1
- package/{components → dist/components}/header-item.js +1 -1
- package/{components → dist/components}/header-launcher-button.js +1 -1
- package/{components → dist/components}/icon.js +4 -1
- package/dist/components/inheritAriaAttributes.js +76 -0
- package/dist/components/inheritAttributes.js +25 -0
- package/{components → dist/components}/popover-canvas.js +1 -1
- package/{components → dist/components}/popover-core.js +5 -1
- package/{components → dist/components}/side-menu-item.js +3 -1
- package/{components → dist/components}/tds-accordion-item.d.ts +1 -1
- package/{components → dist/components}/tds-accordion.d.ts +1 -1
- package/{components → dist/components}/tds-badge.d.ts +1 -1
- package/{components → dist/components}/tds-badge.js +3 -0
- package/{components → dist/components}/tds-banner.d.ts +1 -1
- package/{components → dist/components}/tds-banner.js +2 -1
- package/{components → dist/components}/tds-block.d.ts +1 -1
- package/{components → dist/components}/tds-block.js +4 -2
- package/{components → dist/components}/tds-body-cell.d.ts +1 -1
- package/{components → dist/components}/tds-breadcrumb.d.ts +1 -1
- package/{components → dist/components}/tds-breadcrumbs.d.ts +1 -1
- package/{components → dist/components}/tds-button.d.ts +1 -1
- package/dist/components/tds-button.js +70 -0
- package/{components → dist/components}/tds-card.d.ts +1 -1
- package/{components → dist/components}/tds-card.js +3 -2
- package/{components → dist/components}/tds-checkbox.d.ts +1 -1
- package/{components → dist/components}/tds-chip.d.ts +1 -1
- package/{components → dist/components}/tds-chip.js +2 -1
- package/{components → dist/components}/tds-core-header-item.d.ts +1 -1
- package/{components → dist/components}/tds-datetime.d.ts +1 -1
- package/{components → dist/components}/tds-datetime.js +1 -1
- package/{components → dist/components}/tds-divider.d.ts +1 -1
- package/{components → dist/components}/tds-dropdown-option.d.ts +1 -1
- package/{components → dist/components}/tds-dropdown-option.js +3 -2
- package/{components → dist/components}/tds-dropdown.d.ts +1 -1
- package/dist/components/tds-dropdown.js +456 -0
- package/{components → dist/components}/tds-folder-tab.d.ts +1 -1
- package/{components → dist/components}/tds-folder-tab.js +1 -1
- package/{components → dist/components}/tds-folder-tabs.d.ts +1 -1
- package/{components → dist/components}/tds-folder-tabs.js +2 -0
- package/{components → dist/components}/tds-footer-group.d.ts +1 -1
- package/{components → dist/components}/tds-footer-item.d.ts +1 -1
- package/{components → dist/components}/tds-footer.d.ts +1 -1
- package/{components → dist/components}/tds-footer.js +1 -1
- package/{components → dist/components}/tds-header-brand-symbol.d.ts +1 -1
- package/{components → dist/components}/tds-header-cell.d.ts +1 -1
- package/{components → dist/components}/tds-header-dropdown-list-item.d.ts +1 -1
- package/{components → dist/components}/tds-header-dropdown-list-user.d.ts +1 -1
- package/{components → dist/components}/tds-header-dropdown-list.d.ts +1 -1
- package/{components → dist/components}/tds-header-dropdown.d.ts +1 -1
- package/{components → dist/components}/tds-header-dropdown.js +1 -1
- package/{components → dist/components}/tds-header-hamburger.d.ts +1 -1
- package/{components → dist/components}/tds-header-hamburger.js +1 -1
- package/{components → dist/components}/tds-header-item.d.ts +1 -1
- package/{components → dist/components}/tds-header-launcher-button.d.ts +1 -1
- package/{components → dist/components}/tds-header-launcher-grid-item.d.ts +1 -1
- package/{components → dist/components}/tds-header-launcher-grid-title.d.ts +1 -1
- package/{components → dist/components}/tds-header-launcher-grid-title.js +1 -1
- package/{components → dist/components}/tds-header-launcher-grid.d.ts +1 -1
- package/{components → dist/components}/tds-header-launcher-grid.js +1 -1
- package/{components → dist/components}/tds-header-launcher-list-item.d.ts +1 -1
- package/{components → dist/components}/tds-header-launcher-list-title.d.ts +1 -1
- package/{components → dist/components}/tds-header-launcher-list-title.js +1 -1
- package/{components → dist/components}/tds-header-launcher-list.d.ts +1 -1
- package/{components → dist/components}/tds-header-launcher-list.js +1 -1
- package/{components → dist/components}/tds-header-launcher.d.ts +1 -1
- package/{components → dist/components}/tds-header-launcher.js +2 -1
- package/{components → dist/components}/tds-header-title.d.ts +1 -1
- package/{components → dist/components}/tds-header.d.ts +1 -1
- package/{components → dist/components}/tds-header.js +16 -1
- package/{components → dist/components}/tds-icon.d.ts +1 -1
- package/{components → dist/components}/tds-inline-tab.d.ts +1 -1
- package/dist/components/tds-inline-tab.js +45 -0
- package/{components → dist/components}/tds-inline-tabs.d.ts +1 -1
- package/{components → dist/components}/tds-inline-tabs.js +2 -6
- package/{components → dist/components}/tds-link.d.ts +1 -1
- package/{components → dist/components}/tds-message.d.ts +1 -1
- package/{components → dist/components}/tds-modal.d.ts +1 -1
- package/{components → dist/components}/tds-modal.js +13 -17
- package/{components → dist/components}/tds-navigation-tab.d.ts +1 -1
- package/dist/components/tds-navigation-tab.js +45 -0
- package/{components → dist/components}/tds-navigation-tabs.d.ts +1 -1
- package/{components → dist/components}/tds-navigation-tabs.js +2 -3
- package/{components → dist/components}/tds-popover-canvas.d.ts +1 -1
- package/{components → dist/components}/tds-popover-core.d.ts +1 -1
- package/{components → dist/components}/tds-popover-menu-item.d.ts +1 -1
- package/{components → dist/components}/tds-popover-menu.d.ts +1 -1
- package/{components → dist/components}/tds-popover-menu.js +1 -1
- package/{components → dist/components}/tds-radio-button.d.ts +1 -1
- package/{components → dist/components}/tds-radio-button.js +1 -1
- package/{components → dist/components}/tds-side-menu-close-button.d.ts +1 -1
- package/{components → dist/components}/tds-side-menu-close-button.js +1 -1
- package/{components → dist/components}/tds-side-menu-collapse-button.d.ts +1 -1
- package/{components → dist/components}/tds-side-menu-collapse-button.js +1 -1
- package/{components → dist/components}/tds-side-menu-dropdown-list-item.d.ts +1 -1
- package/{components → dist/components}/tds-side-menu-dropdown-list-item.js +2 -0
- package/{components → dist/components}/tds-side-menu-dropdown-list.d.ts +1 -1
- package/{components → dist/components}/tds-side-menu-dropdown-list.js +2 -0
- package/{components → dist/components}/tds-side-menu-dropdown.d.ts +1 -1
- package/{components → dist/components}/tds-side-menu-dropdown.js +1 -0
- package/{components → dist/components}/tds-side-menu-item.d.ts +1 -1
- package/{components → dist/components}/tds-side-menu-overlay.d.ts +1 -1
- package/{components → dist/components}/tds-side-menu-user-image.d.ts +1 -1
- package/{components → dist/components}/tds-side-menu-user-label.d.ts +1 -1
- package/{components → dist/components}/tds-side-menu-user.d.ts +1 -1
- package/{components → dist/components}/tds-side-menu.d.ts +1 -1
- package/{components → dist/components}/tds-side-menu.js +3 -1
- package/{components → dist/components}/tds-slider.d.ts +1 -1
- package/{components → dist/components}/tds-slider.js +16 -8
- package/{components → dist/components}/tds-spinner.d.ts +1 -1
- package/{components → dist/components}/tds-step.d.ts +1 -1
- package/{components → dist/components}/tds-stepper.d.ts +1 -1
- package/{components → dist/components}/tds-stepper.js +6 -1
- package/{components → dist/components}/tds-table-body-row-expandable.d.ts +1 -1
- package/{components → dist/components}/tds-table-body-row.d.ts +1 -1
- package/{components → dist/components}/tds-table-body.d.ts +1 -1
- package/{components → dist/components}/tds-table-footer.d.ts +1 -1
- package/{components → dist/components}/tds-table-header.d.ts +1 -1
- package/{components → dist/components}/tds-table-toolbar.d.ts +1 -1
- package/{components → dist/components}/tds-table.d.ts +1 -1
- package/{components → dist/components}/tds-table.js +8 -1
- package/{components → dist/components}/tds-text-field.d.ts +1 -1
- package/{components → dist/components}/tds-text-field.js +2 -2
- package/{components → dist/components}/tds-textarea.d.ts +1 -1
- package/{components → dist/components}/tds-toast.d.ts +1 -1
- package/{components → dist/components}/tds-toast.js +3 -2
- package/{components → dist/components}/tds-toggle.d.ts +1 -1
- package/{components → dist/components}/tds-toggle.js +1 -1
- package/{components → dist/components}/tds-tooltip.d.ts +1 -1
- package/{components → dist/components}/tds-tooltip.js +1 -1
- package/dist/esm/dfs-3f5bd9e8.js +27 -0
- package/dist/esm/generateUniqueId-c96c8ee6.js +26 -0
- package/dist/esm/hasSlot-d52114d0.js +9 -0
- package/dist/esm/{index-7471aeb6.js → index-35cb608c.js} +96 -25
- package/dist/esm/inheritAriaAttributes-d4dfca6b.js +76 -0
- package/dist/esm/inheritAttributes-8bb09af0.js +25 -0
- package/dist/esm/isHeadingElement-2c158fc4.js +68 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/tds-accordion-item.entry.js +1 -1
- package/dist/esm/tds-accordion.entry.js +1 -1
- package/dist/esm/tds-badge.entry.js +1 -1
- package/dist/esm/tds-banner.entry.js +3 -2
- package/dist/esm/tds-block.entry.js +5 -3
- package/dist/esm/tds-body-cell.entry.js +1 -1
- package/dist/esm/tds-breadcrumb.entry.js +1 -1
- package/dist/esm/tds-breadcrumbs.entry.js +1 -1
- package/dist/esm/tds-button.entry.js +3 -3
- package/dist/esm/tds-card.entry.js +4 -3
- package/dist/esm/tds-checkbox.entry.js +2 -2
- package/dist/esm/tds-chip.entry.js +3 -2
- package/dist/esm/tds-core-header-item_2.entry.js +2 -2
- package/dist/esm/tds-datetime.entry.js +2 -2
- package/dist/esm/tds-divider.entry.js +1 -1
- package/dist/esm/tds-dropdown-option.entry.js +4 -3
- package/dist/esm/tds-dropdown.entry.js +191 -57
- package/dist/esm/tds-folder-tab.entry.js +2 -2
- package/dist/esm/tds-folder-tabs.entry.js +1 -1
- package/dist/esm/tds-footer-group.entry.js +1 -1
- package/dist/esm/tds-footer-item.entry.js +1 -1
- package/dist/esm/tds-footer.entry.js +2 -2
- package/dist/esm/tds-header-brand-symbol.entry.js +1 -1
- package/dist/esm/tds-header-cell.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list-item.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list-user.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list.entry.js +3 -2
- package/dist/esm/tds-header-dropdown.entry.js +2 -2
- package/dist/esm/tds-header-hamburger.entry.js +3 -2
- package/dist/esm/tds-header-launcher-button.entry.js +3 -2
- package/dist/esm/tds-header-launcher-grid-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-title.entry.js +2 -2
- package/dist/esm/tds-header-launcher-grid.entry.js +3 -2
- package/dist/esm/tds-header-launcher-list-item.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-title.entry.js +2 -2
- package/dist/esm/tds-header-launcher-list.entry.js +2 -2
- package/dist/esm/tds-header-launcher.entry.js +4 -2
- package/dist/esm/tds-header-title.entry.js +1 -1
- package/dist/esm/tds-header.entry.js +18 -2
- package/dist/esm/tds-icon.entry.js +4 -2
- package/dist/esm/tds-inline-tab.entry.js +2 -2
- package/dist/esm/tds-inline-tabs.entry.js +1 -7
- package/dist/esm/tds-link.entry.js +1 -1
- package/dist/esm/tds-message.entry.js +1 -1
- package/dist/esm/tds-modal.entry.js +14 -18
- package/dist/esm/tds-navigation-tab.entry.js +2 -2
- package/dist/esm/tds-navigation-tabs.entry.js +1 -4
- package/dist/esm/tds-popover-canvas.entry.js +2 -2
- package/dist/esm/tds-popover-core.entry.js +1 -1
- package/dist/esm/tds-popover-menu-item.entry.js +1 -1
- package/dist/esm/tds-popover-menu.entry.js +2 -2
- package/dist/esm/tds-radio-button.entry.js +2 -2
- package/dist/esm/tds-side-menu-close-button.entry.js +3 -2
- package/dist/esm/tds-side-menu-collapse-button.entry.js +2 -2
- package/dist/esm/tds-side-menu-dropdown-list-item.entry.js +3 -1
- package/dist/esm/tds-side-menu-dropdown-list.entry.js +3 -1
- package/dist/esm/tds-side-menu-dropdown.entry.js +2 -1
- package/dist/esm/tds-side-menu-item.entry.js +4 -2
- package/dist/esm/tds-side-menu-overlay.entry.js +1 -1
- package/dist/esm/tds-side-menu-user-image_2.entry.js +1 -1
- package/dist/esm/tds-side-menu-user.entry.js +1 -1
- package/dist/esm/tds-side-menu.entry.js +1 -1
- package/dist/esm/tds-slider.entry.js +14 -8
- package/dist/esm/tds-spinner.entry.js +1 -1
- package/dist/esm/tds-step.entry.js +1 -1
- package/dist/esm/tds-stepper.entry.js +2 -2
- package/dist/esm/tds-table-body-row-expandable.entry.js +1 -1
- package/dist/esm/tds-table-body-row.entry.js +1 -1
- package/dist/esm/tds-table-body.entry.js +1 -1
- package/dist/esm/tds-table-footer.entry.js +1 -1
- package/dist/esm/tds-table-header.entry.js +1 -1
- package/dist/esm/tds-table-toolbar.entry.js +1 -1
- package/dist/esm/tds-table.entry.js +2 -2
- package/dist/esm/tds-text-field.entry.js +3 -3
- package/dist/esm/tds-textarea.entry.js +1 -1
- package/dist/esm/tds-toast.entry.js +4 -3
- package/dist/esm/tds-toggle.entry.js +2 -2
- package/dist/esm/tds-tooltip.entry.js +2 -2
- package/dist/esm/tegel.js +4 -4
- package/dist/tegel/{p-c1ed83c6.entry.js → p-016d07b2.entry.js} +1 -1
- package/dist/tegel/{p-5b58d6c9.entry.js → p-03fc5ca3.entry.js} +1 -1
- package/dist/tegel/{p-78a367c0.entry.js → p-05eda91f.entry.js} +1 -1
- package/dist/tegel/{p-38c68fac.entry.js → p-0893ad9d.entry.js} +1 -1
- package/dist/tegel/p-098a26f3.js +1 -0
- package/dist/tegel/{p-2782cab8.entry.js → p-0be49c5e.entry.js} +1 -1
- package/dist/tegel/{p-073cf6c0.entry.js → p-0d300a96.entry.js} +1 -1
- package/dist/tegel/{p-286691df.entry.js → p-0e6f9768.entry.js} +1 -1
- package/dist/tegel/p-0edeccb6.js +1 -0
- package/dist/tegel/p-18de1663.entry.js +1 -0
- package/dist/tegel/p-1a978a31.entry.js +1 -0
- package/dist/tegel/{p-eeedd806.entry.js → p-1efa3ab3.entry.js} +1 -1
- package/dist/tegel/{p-9c6e8abb.entry.js → p-1f35bdc7.entry.js} +1 -1
- package/dist/tegel/{p-888fec9e.entry.js → p-25347b32.entry.js} +1 -1
- package/dist/tegel/p-25f306a0.js +2 -0
- package/dist/tegel/p-2b8680cb.entry.js +1 -0
- package/dist/tegel/p-2eb27fd7.entry.js +1 -0
- package/dist/tegel/{p-301110a1.entry.js → p-3516a5fc.entry.js} +1 -1
- package/dist/tegel/{p-ae2c6537.entry.js → p-374161a8.entry.js} +1 -1
- package/dist/tegel/{p-f6ff8d7e.entry.js → p-3ade3e28.entry.js} +1 -1
- package/dist/tegel/{p-bd823881.entry.js → p-41016d27.entry.js} +1 -1
- package/dist/tegel/p-517deee0.entry.js +1 -0
- package/dist/tegel/{p-d289a792.entry.js → p-52979643.entry.js} +1 -1
- package/dist/tegel/{p-dfeaa580.entry.js → p-535504e3.entry.js} +1 -1
- package/dist/tegel/p-54680d69.entry.js +1 -0
- package/dist/tegel/p-5b9f499d.entry.js +1 -0
- package/dist/tegel/p-5e9aacd5.entry.js +1 -0
- package/dist/tegel/p-5f203f87.entry.js +1 -0
- package/dist/tegel/p-6adb65cb.entry.js +1 -0
- package/dist/tegel/{p-8b634b36.entry.js → p-6e863efc.entry.js} +1 -1
- package/dist/tegel/{p-495d2b37.entry.js → p-72d3a19b.entry.js} +1 -1
- package/dist/tegel/{p-f712146b.entry.js → p-7480ddd3.entry.js} +1 -1
- package/dist/tegel/p-78f42968.entry.js +1 -0
- package/dist/tegel/p-792a3cb6.entry.js +1 -0
- package/dist/tegel/{p-514610b9.entry.js → p-80a99356.entry.js} +1 -1
- package/dist/tegel/p-80b501e3.entry.js +1 -0
- package/dist/tegel/p-81039661.js +1 -0
- package/dist/tegel/p-86f542a6.js +1 -0
- package/dist/tegel/p-89e23724.entry.js +1 -0
- package/dist/tegel/{p-2efaac74.entry.js → p-8f1a037c.entry.js} +1 -1
- package/dist/tegel/{p-fc88f7ba.entry.js → p-900532bf.entry.js} +1 -1
- package/dist/tegel/p-90987d11.entry.js +1 -0
- package/dist/tegel/{p-62732059.entry.js → p-92984605.entry.js} +1 -1
- package/dist/tegel/p-97c23511.entry.js +1 -0
- package/dist/tegel/p-9839df9e.entry.js +1 -0
- package/dist/tegel/p-a001ec58.entry.js +1 -0
- package/dist/tegel/p-a0f3086c.entry.js +1 -0
- package/dist/tegel/{p-cbb227b3.entry.js → p-a5152b59.entry.js} +1 -1
- package/dist/tegel/{p-824f5dad.entry.js → p-a5a9cac8.entry.js} +1 -1
- package/dist/tegel/{p-c9c5b832.entry.js → p-a8712a64.entry.js} +1 -1
- package/dist/tegel/{p-166d6252.entry.js → p-aaaced18.entry.js} +1 -1
- package/dist/tegel/p-ae110fc2.js +1 -0
- package/dist/tegel/{p-ef96df10.entry.js → p-b0703dd5.entry.js} +1 -1
- package/dist/tegel/{p-94c27eb3.entry.js → p-bc94c1c2.entry.js} +1 -1
- package/dist/tegel/{p-0d886890.entry.js → p-be7119d3.entry.js} +1 -1
- package/dist/tegel/{p-b0a5cef2.entry.js → p-c0b7acbb.entry.js} +1 -1
- package/dist/tegel/p-c191ca51.entry.js +1 -0
- package/dist/tegel/{p-0eac159c.entry.js → p-c277a05d.entry.js} +1 -1
- package/dist/tegel/{p-e9b8d1d5.entry.js → p-c56160f2.entry.js} +1 -1
- package/dist/tegel/{p-f2819741.entry.js → p-cb9aba1b.entry.js} +1 -1
- package/dist/tegel/{p-974ee937.entry.js → p-ceaa2ea7.entry.js} +1 -1
- package/dist/tegel/p-d1dffa21.entry.js +1 -0
- package/dist/tegel/{p-34e75630.entry.js → p-d5bf6d99.entry.js} +1 -1
- package/dist/tegel/p-d5d2a4f0.entry.js +1 -0
- package/dist/tegel/{p-a72409fc.entry.js → p-d6c9b267.entry.js} +1 -1
- package/dist/tegel/{p-9af2e8ab.entry.js → p-d8137332.entry.js} +1 -1
- package/dist/tegel/{p-0d573de8.entry.js → p-db67d784.entry.js} +1 -1
- package/dist/tegel/p-dc0fcac8.entry.js +1 -0
- package/dist/tegel/p-dfbb887e.entry.js +1 -0
- package/dist/tegel/p-e035ddeb.entry.js +1 -0
- package/dist/tegel/{p-446ab609.entry.js → p-e3aa0903.entry.js} +1 -1
- package/dist/tegel/p-e3c5a663.entry.js +1 -0
- package/dist/tegel/{p-d1be74e7.entry.js → p-e4db065d.entry.js} +1 -1
- package/dist/tegel/p-e55ec17c.entry.js +1 -0
- package/dist/tegel/{p-acabb656.entry.js → p-e8c8ed2f.entry.js} +1 -1
- package/dist/tegel/p-ea5a0c9d.entry.js +1 -0
- package/dist/tegel/{p-026a3e05.entry.js → p-eda7ecf6.entry.js} +1 -1
- package/dist/tegel/p-efb40b9c.entry.js +1 -0
- package/dist/tegel/p-f5063d5b.entry.js +1 -0
- package/dist/tegel/{p-386c3c42.entry.js → p-f55da9ef.entry.js} +1 -1
- package/dist/tegel/p-f7ce52e9.js +1 -0
- package/dist/tegel/{p-7bbae944.entry.js → p-f8da6ce5.entry.js} +1 -1
- package/dist/tegel/{p-364654b5.entry.js → p-f935d5f3.entry.js} +1 -1
- package/dist/tegel/p-fc76d99c.entry.js +1 -0
- package/dist/tegel/p-fecfc7c7.entry.js +1 -0
- package/dist/tegel/tegel.css +2 -2
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/block/block.d.ts +1 -1
- package/dist/types/components/dropdown/dropdown.d.ts +33 -14
- package/dist/types/components/icon/icon.d.ts +2 -0
- package/dist/types/components/modal/modal.d.ts +2 -2
- package/dist/types/components/modal/modal.stories.d.ts +8 -0
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +1 -1
- package/dist/types/components/popover-menu/popover-menu.d.ts +1 -1
- package/dist/types/components/side-menu/side-menu.stories.d.ts +12 -0
- package/dist/types/components/slider/slider.d.ts +1 -1
- package/dist/types/components/stepper/stepper.d.ts +1 -0
- package/dist/types/components/table/table-component-filtering.stories.d.ts +0 -8
- package/dist/types/components/table/table-component-multiselect.stories.d.ts +0 -1
- package/dist/types/components/tooltip/tooltip.d.ts +1 -1
- package/dist/types/components.d.ts +11 -3
- package/dist/types/stencil-public-runtime.d.ts +3 -3
- package/dist/types/stories/formatHtmlPreview.d.ts +2 -0
- package/dist/types/stories/foundations/color/color-semantic.stories.d.ts +1 -1
- package/dist/types/types/Attributes.d.ts +3 -0
- package/dist/types/utils/appendHiddenInput.d.ts +15 -0
- package/dist/types/utils/dfs.d.ts +10 -0
- package/dist/types/utils/findNextFocusableElement.d.ts +7 -0
- package/dist/types/utils/findPreviousFocusableElement.d.ts +8 -0
- package/dist/types/utils/generateUniqueId.d.ts +15 -0
- package/dist/types/utils/getNestedChildOfSiblingsMatching.d.ts +2 -0
- package/dist/types/utils/getNextNestedChildOfSiblingsMatching.d.ts +30 -0
- package/dist/types/utils/getNextSibling.d.ts +2 -0
- package/dist/types/utils/getPreviousNestedChildOfSiblingsMatching.d.ts +30 -0
- package/dist/types/utils/getPreviousSibling.d.ts +2 -0
- package/dist/types/utils/hasSlot.d.ts +8 -0
- package/dist/types/utils/inheritAriaAttributes.d.ts +9 -0
- package/dist/types/utils/inheritAttributes.d.ts +13 -0
- package/dist/types/utils/isHeadingElement.d.ts +8 -0
- package/dist/types/utils/updateListChildrenRoles.d.ts +6 -0
- package/package.json +5 -4
- package/components/tds-button.js +0 -70
- package/components/tds-dropdown.js +0 -319
- package/components/tds-inline-tab.js +0 -45
- package/components/tds-navigation-tab.js +0 -45
- package/components/utils.js +0 -489
- package/dist/cjs/utils-23ce2e45.js +0 -501
- package/dist/collection/utils/utils.js +0 -369
- package/dist/collection/utils/utils.spec.js +0 -15
- package/dist/esm/utils-4d967376.js +0 -489
- package/dist/tegel/p-045e99f2.entry.js +0 -1
- package/dist/tegel/p-1af982bc.entry.js +0 -1
- package/dist/tegel/p-24fc848d.entry.js +0 -1
- package/dist/tegel/p-26757a32.entry.js +0 -1
- package/dist/tegel/p-271d0081.entry.js +0 -1
- package/dist/tegel/p-37b1329c.entry.js +0 -1
- package/dist/tegel/p-3c5acada.entry.js +0 -1
- package/dist/tegel/p-43fe6507.js +0 -2
- package/dist/tegel/p-461e81bd.entry.js +0 -1
- package/dist/tegel/p-4e676ba1.entry.js +0 -1
- package/dist/tegel/p-52b727a7.entry.js +0 -1
- package/dist/tegel/p-54ebce22.entry.js +0 -1
- package/dist/tegel/p-5663c320.entry.js +0 -1
- package/dist/tegel/p-5e6318d2.entry.js +0 -1
- package/dist/tegel/p-62154528.entry.js +0 -1
- package/dist/tegel/p-67fa6245.entry.js +0 -1
- package/dist/tegel/p-6e1c6b71.entry.js +0 -1
- package/dist/tegel/p-7125dad7.entry.js +0 -1
- package/dist/tegel/p-77282750.entry.js +0 -1
- package/dist/tegel/p-8a502e4f.entry.js +0 -1
- package/dist/tegel/p-8a6dac22.entry.js +0 -1
- package/dist/tegel/p-8faaaaf3.entry.js +0 -1
- package/dist/tegel/p-8fea52fe.js +0 -43
- package/dist/tegel/p-98d31b74.entry.js +0 -1
- package/dist/tegel/p-aeff41d5.entry.js +0 -1
- package/dist/tegel/p-c65429b4.entry.js +0 -1
- package/dist/tegel/p-ca8b8a16.entry.js +0 -1
- package/dist/tegel/p-d1289eb3.entry.js +0 -1
- package/dist/tegel/p-d4aa3315.entry.js +0 -1
- package/dist/tegel/p-d8215514.entry.js +0 -1
- package/dist/tegel/p-d852143b.entry.js +0 -1
- package/dist/tegel/p-e9ae12d7.entry.js +0 -1
- package/dist/tegel/p-ec6afc7b.entry.js +0 -1
- package/dist/tegel/p-f147d270.entry.js +0 -1
- package/dist/types/utils/utils.d.ts +0 -164
- /package/{components → dist/components}/core-header-item.js +0 -0
- /package/{components → dist/components}/divider.js +0 -0
- /package/{components → dist/components}/header-dropdown-list-item.js +0 -0
- /package/{components → dist/components}/index.d.ts +0 -0
- /package/{components → dist/components}/index.js +0 -0
- /package/{components → dist/components}/side-menu-user-image.js +0 -0
- /package/{components → dist/components}/side-menu-user-label.js +0 -0
- /package/{components → dist/components}/tds-accordion-item.js +0 -0
- /package/{components → dist/components}/tds-accordion.js +0 -0
- /package/{components → dist/components}/tds-body-cell.js +0 -0
- /package/{components → dist/components}/tds-breadcrumb.js +0 -0
- /package/{components → dist/components}/tds-breadcrumbs.js +0 -0
- /package/{components → dist/components}/tds-checkbox.js +0 -0
- /package/{components → dist/components}/tds-core-header-item.js +0 -0
- /package/{components → dist/components}/tds-divider.js +0 -0
- /package/{components → dist/components}/tds-footer-group.js +0 -0
- /package/{components → dist/components}/tds-footer-item.js +0 -0
- /package/{components → dist/components}/tds-header-brand-symbol.js +0 -0
- /package/{components → dist/components}/tds-header-cell.js +0 -0
- /package/{components → dist/components}/tds-header-dropdown-list-item.js +0 -0
- /package/{components → dist/components}/tds-header-dropdown-list-user.js +0 -0
- /package/{components → dist/components}/tds-header-dropdown-list.js +0 -0
- /package/{components → dist/components}/tds-header-item.js +0 -0
- /package/{components → dist/components}/tds-header-launcher-button.js +0 -0
- /package/{components → dist/components}/tds-header-launcher-grid-item.js +0 -0
- /package/{components → dist/components}/tds-header-launcher-list-item.js +0 -0
- /package/{components → dist/components}/tds-header-title.js +0 -0
- /package/{components → dist/components}/tds-icon.js +0 -0
- /package/{components → dist/components}/tds-link.js +0 -0
- /package/{components → dist/components}/tds-message.js +0 -0
- /package/{components → dist/components}/tds-popover-canvas.js +0 -0
- /package/{components → dist/components}/tds-popover-core.js +0 -0
- /package/{components → dist/components}/tds-popover-menu-item.js +0 -0
- /package/{components → dist/components}/tds-side-menu-item.js +0 -0
- /package/{components → dist/components}/tds-side-menu-overlay.js +0 -0
- /package/{components → dist/components}/tds-side-menu-user-image.js +0 -0
- /package/{components → dist/components}/tds-side-menu-user-label.js +0 -0
- /package/{components → dist/components}/tds-side-menu-user.js +0 -0
- /package/{components → dist/components}/tds-spinner.js +0 -0
- /package/{components → dist/components}/tds-step.js +0 -0
- /package/{components → dist/components}/tds-table-body-row-expandable.js +0 -0
- /package/{components → dist/components}/tds-table-body-row.js +0 -0
- /package/{components → dist/components}/tds-table-body.js +0 -0
- /package/{components → dist/components}/tds-table-footer.js +0 -0
- /package/{components → dist/components}/tds-table-header.js +0 -0
- /package/{components → dist/components}/tds-table-toolbar.js +0 -0
- /package/{components → dist/components}/tds-textarea.js +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as s,g as o}from"./p-43fe6507.js";import{i as r}from"./p-8fea52fe.js";const i=class{constructor(e){t(this,e)}render(){const t=Object.assign({},r(this.host));return e(s,null,e("tds-header-item",null,e("button",Object.assign({},t),e("tds-icon",{class:"icon",name:"burger",size:"20px"}))))}get host(){return o(this)}};i.style=":host{color:var(--tds-white)}:host tds-header-item{display:block}:host .icon{position:relative;margin-left:-6px;left:3px;transition:background 0.2s ease-in-out, color 0.2s ease-in-out}@media screen and (min-width: 992px){:host tds-header-item{display:none}:host([persistent]) tds-header-item{display:block}}";export{i as tds_header_hamburger}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as a,c as d,h as r,H as e,g as s}from"./p-43fe6507.js";import{h as t,g as i}from"./p-8fea52fe.js";const o=class{constructor(e){a(this,e),this.tdsClick=d(this,"tdsClick",6),this.handleClick=()=>{this.tdsClick.emit({cardId:this.cardId})},this.getCardHeader=()=>{const a=t("header",this.host),d=t("subheader",this.host),e=t("thumbnail",this.host);return r("div",{class:"card-header"},e&&r("slot",{name:"thumbnail"}),r("div",{class:"header-subheader"},this.header&&r("span",{class:"header"},this.header),a&&r("slot",{name:"header"}),this.subheader&&r("span",{class:"subheader"},this.subheader),d&&r("slot",{name:"subheader"})))},this.getCardContent=()=>{const a=t("body",this.host),d=t("body-image",this.host),e=t("actions",this.host);return r("div",null,"below-header"===this.imagePlacement&&this.getCardHeader(),r("div",{class:"card-body"},d&&r("slot",{name:"body-image"}),this.bodyImg&&r("img",{class:"card-body-img",src:this.bodyImg,alt:this.bodyImgAlt}),"above-header"===this.imagePlacement&&this.getCardHeader(),this.bodyDivider&&r("tds-divider",null),a&&r("slot",{name:"body"})),e&&r("slot",{name:"actions"}))},this.modeVariant=null,this.imagePlacement="below-header",this.header=void 0,this.subheader=void 0,this.bodyImg=void 0,this.bodyImgAlt=void 0,this.bodyDivider=!1,this.clickable=!1,this.cardId=i()}render(){return r(e,{class:this.modeVariant&&`tds-mode-variant-${this.modeVariant}`},this.clickable?r("button",{class:`card ${this.clickable?"clickable":""} ${this.imagePlacement}`,onClick:()=>{this.clickable&&this.handleClick()}},this.getCardContent()):r("div",{class:`card ${this.clickable?"clickable":""} ${this.imagePlacement}`},this.getCardContent()))}get host(){return s(this)}};o.style=".card{box-sizing:border-box;box-shadow:var(--tds-card-box);background-color:var(--tds-card-background);display:block;border-radius:4px;overflow:hidden}.card *{box-sizing:border-box}.card.clickable:hover{box-shadow:var(--tds-card-box-hover);cursor:pointer}.card .card-header{font:var(--tds-headline-06);letter-spacing:var(--tds-headline-06-ls);padding:16px;display:flex;align-items:center}.card .card-header slot[name=thumbnail]::slotted(*){width:36px;height:36px;border-radius:100%;margin-right:16px}.card .card-header .card-top-header{padding-left:16px;display:flex;flex-direction:column}.card .card-header .card-top-header.no-header-img{padding-left:0}.card .card-header.below{padding-top:16px}.card .header-subheader{display:flex;flex-direction:column;gap:4px}.card .header-subheader .header,.card .header-subheader slot[name=header]{color:var(--tds-card-headline)}.card .header-subheader .subheader,.card .header-subheader slot[name=subheader]{color:var(--tds-card-sub-headline)}.card .card-body-img{width:100%}.card .tds-divider{margin:16px 16px 0;background-color:var(--tds-card-divider);height:1px}.card .card-body{display:block;word-wrap:break-word}.card slot[name=body]::slotted(*){font:var(--tds-detail-03);letter-spacing:var(--tds-detail-03-ls);color:var(--tds-card-body-color);padding:0 16px;margin-bottom:16px;margin-top:16px;max-width:336px}.card slot[name=actions]::slotted(*){display:flex;padding:16px;color:var(--tds-card-icon-color)}button{border:none;text-align:left;padding:0}button:focus-visible{outline:2px solid var(--tds-blue-400);outline-offset:-2px}button:active{box-shadow:var(--tds-card-box-pressed)}";export{o as tds_card}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as o,H as e,g as i}from"./p-43fe6507.js";import{a as l,f as d,b as r}from"./p-8fea52fe.js";const a=class{constructor(o){t(this,o),this.tdsChange=s(this,"tdsChange",6),this.tdsFocus=s(this,"tdsFocus",6),this.tdsBlur=s(this,"tdsBlur",6),this.tdsInput=s(this,"tdsInput",6),this.setDefaultOption=()=>{this.children=Array.from(this.host.children).filter((t=>"TDS-DROPDOWN-OPTION"===t.tagName)).map((t=>(this.multiselect?this.defaultValue.split(",").forEach((s=>{s===t.value&&(t.setSelected(!0),this.selection=this.selection?[...this.selection,{value:t.value,label:t.textContent}]:[{value:t.value,label:t.textContent}])})):this.defaultValue===t.value?(t.setSelected(!0),this.selection=[{value:t.value,label:t.textContent}]):t.setSelected(!1),t)))},this.getChildren=()=>Array.from(this.host.children).filter((t=>"TDS-DROPDOWN-OPTION"===t.tagName)),this.getOpenDirection=()=>{var t,s,o,e,i;if("auto"===this.openDirection||!this.openDirection){const l=null!==(s=null===(t=this.dropdownList)||void 0===t?void 0:t.offsetHeight)&&void 0!==s?s:0;return(null!==(i=null===(e=(o=this.host).getBoundingClientRect)||void 0===e?void 0:e.call(o).top)&&void 0!==i?i:0)+l+57>window.innerHeight?"up":"down"}return this.openDirection},this.getValue=()=>{var t,s;return this.filter?null===(t=this.selection)||void 0===t?void 0:t.map((t=>t.label)).toString():null===(s=this.selection)||void 0===s?void 0:s.map((t=>t.label)).join(", ")},this.handleFilter=t=>{this.tdsInput.emit(t);const s=t.target.value.toLowerCase();""===s?(this.children=this.children.map((t=>(t.removeAttribute("hidden"),t))),this.filterResult=null):this.filterResult=this.children.filter((t=>(t.textContent.toLowerCase().includes(s.toLowerCase())?t.removeAttribute("hidden"):t.setAttribute("hidden",""),!t.hasAttribute("hidden")))).length},this.handleFocus=t=>{this.tdsFocus.emit(t)},this.handleBlur=t=>{this.tdsBlur.emit(t)},this.handleChange=()=>{var t,s;this.tdsChange.emit({name:this.name,value:null!==(s=null===(t=this.selection)||void 0===t?void 0:t.map((t=>t.value)).toString())&&void 0!==s?s:null})},this.name=void 0,this.disabled=!1,this.helper=void 0,this.label=void 0,this.labelPosition=void 0,this.modeVariant=null,this.openDirection="auto",this.placeholder=void 0,this.size="lg",this.error=!1,this.multiselect=!1,this.filter=!1,this.noResultText="No result",this.defaultValue=void 0,this.open=!1,this.selection=void 0,this.filterResult=void 0,this.filterFocus=void 0}async reset(){this.children=this.getChildren().map((t=>(t.setSelected(!1),t))),this.selection=null,this.host.setAttribute("value",null),this.handleChange()}async setValue(t,s){return this.multiselect?this.selection=this.selection?[...this.selection,{value:t,label:s}]:[{value:t,label:s}]:(this.selection=[{value:t,label:s}],this.children=this.getChildren().map((s=>(s.value!==t&&s.setSelected(!1),s)))),this.handleChange(),this.host.setAttribute("value",this.selection.map((t=>t.value)).toString()),this.selection}async removeValue(t){return this.multiselect?this.children=this.getChildren().map((s=>(s.value===t&&(this.selection=this.selection.filter((t=>t.value!==s.value)),s.setSelected(!1)),s))):this.reset(),this.handleChange(),this.selection}async close(){this.open=!1}onAnyClick(t){this.open&&!t.composedPath().includes(this.host)&&(this.open=!1)}async onKeyDown(t){const{activeElement:s}=document;if(s)if("ArrowDown"===t.key){const t=s.nextElementSibling?this.children.findIndex((t=>t===s.nextElementSibling)):0,o=d(this.children,t);this.children[o].focus()}else if("ArrowUp"===t.key){const t=s.nextElementSibling?this.children.findIndex((t=>t===s.previousElementSibling)):0,o=r(this.children,t);this.children[o].focus()}else"Escape"===t.key&&(this.open=!1)}handleOpenState(){var t,s;this.filter&&this.multiselect&&(this.open||(this.inputElement.value=null!==(s=null===(t=this.selection)||void 0===t?void 0:t.map((t=>t.label)).toString())&&void 0!==s?s:null))}componentDidLoad(){this.defaultValue&&this.setDefaultOption()}render(){var t,s,i,d;return l(this.host,this.name,null===(t=this.selection)||void 0===t?void 0:t.map((t=>t.value)).toString(),this.disabled),o(e,{role:"select",class:this.modeVariant?`tds-mode-variant-${this.modeVariant}`:""},this.label&&"outside"===this.labelPosition&&o("div",{class:"label-outside "+(this.disabled?"disabled":"")},this.label),o("div",{class:`dropdown-select ${this.size} ${this.disabled?"disabled":""}`},this.filter?o("div",{class:`filter ${this.filterFocus?"focus":""}\n ${this.disabled?"disabled":""}`},o("div",{class:"value-wrapper"},this.label&&"inside"===this.labelPosition&&this.placeholder&&o("div",{class:`label-inside ${this.size}`},this.label),this.label&&"inside"===this.labelPosition&&!this.placeholder&&o("div",{class:`\n label-inside-as-placeholder\n ${this.size}\n ${(null===(s=this.selection)||void 0===s?void 0:s.length)?"selected":""}\n `},this.label),o("input",{ref:t=>this.inputElement=t,class:"inside"===this.labelPosition?"placeholder":"",type:"text",placeholder:this.placeholder,value:this.getValue(),disabled:this.disabled,onInput:t=>this.handleFilter(t),onBlur:t=>{this.filterFocus=!1,this.handleBlur(t)},onFocus:t=>{this.open=!0,this.filterFocus=!0,this.handleFocus(t)},onKeyDown:t=>{"Escape"===t.key&&(this.open=!1)}})),o("tds-icon",{onClick:()=>{this.open=!this.open},class:this.open?"open":"closed",name:"chevron_down",size:"16px"})):o("button",{onClick:()=>{this.open=!this.open},onKeyDown:t=>{"Escape"===t.key&&(this.open=!1)},class:`\n ${this.selection?"value":"placeholder"}\n ${this.open?"open":"closed"}\n ${this.error?"error":""}\n `,disabled:this.disabled},o("div",{class:`value-wrapper ${this.size}`},this.label&&"inside"===this.labelPosition&&this.placeholder&&o("div",{class:`label-inside ${this.size}`},this.label),this.label&&"inside"===this.labelPosition&&!this.placeholder&&o("div",{class:`\n label-inside-as-placeholder\n ${this.size}\n ${(null===(i=this.selection)||void 0===i?void 0:i.length)?"selected":""}\n `},this.label),o("div",{class:`placeholder ${this.size}`},(null===(d=this.selection)||void 0===d?void 0:d.length)?this.getValue():this.placeholder),o("tds-icon",{class:this.open?"open":"closed",name:"chevron_down",size:"16px"})))),o("div",{ref:t=>this.dropdownList=t,class:`dropdown-list\n ${this.size}\n ${this.open?"open":"closed"}\n ${this.getOpenDirection()}\n ${this.label&&"outside"===this.labelPosition?"label-outside":""}`},o("slot",null),0===this.filterResult&&o("div",{class:`no-result ${this.size}`},this.noResultText)),this.helper&&o("div",{class:`helper ${this.error?"error":""} ${this.disabled?"disabled":""}`},this.error&&o("tds-icon",{name:"error",size:"16px"}),this.helper))}get host(){return i(this)}static get watchers(){return{open:["handleOpenState"]}}};a.style=':host button{all:unset;height:100%;width:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);border-radius:4px 4px 0 0}:host button:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host button .value-wrapper{padding:0 16px;display:flex;align-items:center;justify-content:space-between}:host button.placeholder{color:var(--tds-dropdown-placeholder-color)}:host button.value{color:var(--tds-dropdown-value-color)}:host button:focus{border-bottom-color:transparent}:host button:focus::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--tds-dropdown-border-bottom-open)}:host button.error{border-bottom:1px solid var(--tds-negative)}:host button:disabled{color:var(--tds-dropdown-disabled-color);border-bottom:1px solid transparent}:host .filter{display:flex;align-items:center;justify-content:space-between;height:100%;background-color:var(--tds-dropdown-bg);border-bottom:1px solid var(--tds-dropdown-border-bottom);padding-left:16px;border-radius:4px 4px 0 0}:host .filter:hover{border-bottom:1px solid var(--tds-dropdown-border-bottom-hover)}:host .filter.disabled{color:var(--tds-dropdown-disabled-color)}:host .filter .value-wrapper{display:flex;width:100%;height:100%}:host .filter .label-inside-as-placeholder{position:absolute;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);color:var(--tds-dropdown-placeholder-color)}:host .filter .label-inside-as-placeholder.lg{top:20px}:host .filter .label-inside-as-placeholder.md{top:16px}:host .filter .label-inside-as-placeholder.sm{display:none}:host .filter .label-inside-as-placeholder.selected{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .filter .label-inside-as-placeholder.selected.lg{top:12px}:host .filter .label-inside-as-placeholder.selected.md{top:8px}:host .filter .label-inside-as-placeholder.selected.sm{display:none}:host .filter .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .filter.focus{border-bottom-color:transparent}:host .filter.focus::before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--tds-dropdown-border-bottom-open)}:host .filter input{flex:1;all:unset;width:100%}:host .filter input::placeholder{color:var(--tds-dropdown-placeholder-color)}:host .filter input:disabled::placeholder{color:var(--tds-dropdown-disabled-color)}:host .filter tds-icon{margin-right:16px}:host{display:block;position:relative;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}:host .label-outside{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-dropdown-label-color);margin-bottom:8px}:host .label-outside.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select{position:relative}:host .dropdown-select.disabled .label-inside,:host .dropdown-select.disabled .placeholder,:host .dropdown-select.disabled .label-inside-as-placeholder,:host .dropdown-select.disabled .value-wrapper{color:var(--tds-dropdown-disabled-color)}:host .dropdown-select .label-inside{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);color:var(--tds-dropdown-label-inside-color)}:host .dropdown-select .label-inside.lg{top:12px;left:16px}:host .dropdown-select .label-inside.md{top:8px;left:16px}:host .dropdown-select .label-inside.sm{display:none}:host .dropdown-select .label-inside+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select .placeholder{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .dropdown-select .label-inside-as-placeholder{color:var(--tds-dropdown-placeholder-color)}:host .dropdown-select .label-inside-as-placeholder.selected{position:absolute;font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:all 0.2s ease-in-out}:host .dropdown-select .label-inside-as-placeholder.selected.lg{top:12px}:host .dropdown-select .label-inside-as-placeholder.selected.md{top:8px}:host .dropdown-select .label-inside-as-placeholder.selected.sm{display:none}:host .dropdown-select .label-inside-as-placeholder.selected+.placeholder:not(.sm){margin-top:8px}:host .dropdown-select.lg{height:55px}:host .dropdown-select.md{height:47px}:host .dropdown-select.sm{height:39px}:host .helper{margin-top:4px;color:var(--tds-dropdown-helper-color);font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;align-items:center;gap:8px}:host .helper.error{color:var(--tds-negative)}:host .helper.disabled{color:var(--tds-dropdown-disabled-color)}:host .dropdown-list{z-index:100;position:absolute;margin-top:1px;width:100%;transform-origin:top;transition:transform 0.2s ease-in-out;box-shadow:rgba(0, 0, 0, 0.1) 0 2px 3px 0;border-radius:0 0 4px 4px;overflow-y:auto}:host .dropdown-list::-webkit-scrollbar{width:4px;background-color:inherit}:host .dropdown-list::-webkit-scrollbar-thumb{background-color:var(--tds-grey-300)}:host .dropdown-list ::-webkit-scrollbar-button{height:0;width:0}:host .dropdown-list.lg{max-height:312px}:host .dropdown-list.md{max-height:312px}:host .dropdown-list.sm{max-height:260px}:host .dropdown-list.up{bottom:100%;margin-top:0;margin-bottom:1px;transform-origin:bottom;display:flex;flex-direction:column-reverse;box-shadow:rgba(0, 0, 0, 0.1) 0 -1px 3px 0;border-radius:4px 4px 0 0}:host .dropdown-list.up.label-outside{bottom:calc(100% - 24px)}:host .dropdown-list.closed{transform:scaleY(0);visibility:hidden}:host .dropdown-list.open{transform:scaleY(1)}:host .dropdown-list .no-result{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:flex;align-items:center;padding:0 16px;background-color:var(--tds-dropdown-bg)}:host .dropdown-list .no-result.lg{height:56px}:host .dropdown-list .no-result.md{height:48px}:host .dropdown-list .no-result.sm{height:40px}:host tds-icon{transition:transform 0.2s ease-in-out}:host tds-icon.open{transform:rotateZ(180deg)}';export{a as tds_dropdown}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as s,H as e,g as i}from"./p-43fe6507.js";import{i as o}from"./p-8fea52fe.js";const a=class{constructor(s){t(this,s),this.active=!1}render(){this.ariaAttributes=Object.assign(Object.assign({},this.ariaAttributes),o(this.host));const t=Object.assign({},this.ariaAttributes);return s(e,null,s("tds-header-item",{active:this.active},s("button",Object.assign({},t),s("tds-icon",{class:"icon",name:"bento",size:"20px"}))))}get host(){return i(this)}};a.style=":host{display:block}:host tds-header-item{display:block}:host .icon{position:relative;margin-left:-6px;left:3px;transition:all 0.2s ease-in-out}";export{a as tds_header_launcher_button}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as o,H as e}from"./p-43fe6507.js";const i=class{constructor(o){t(this,o),this.disabled=!1,this.selected=!1}async setSelected(t){this.selected=t}render(){return o(e,{role:"listitem"},o("div",{class:`inline-tab-item ${this.selected?"selected":""}\n ${this.disabled?"disabled":""}`},o("slot",null)))}};i.style=':host{box-sizing:border-box;z-index:200;display:block;position:relative}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:20px 4px}:host ::slotted(*:focus-visible)::before{content:"";position:absolute;left:0;right:0;top:20px;bottom:20px;outline:2px solid var(--tds-blue-400)}:host .inline-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .inline-tab-item{position:relative;margin-right:32px}:host .inline-tab-item:hover{cursor:pointer}:host .inline-tab-item:hover::after{width:100%}:host .inline-tab-item::after{content:" ";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-inline-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-inline-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-inline-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-inline-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-inline-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.first){margin-left:32px}:host(.last){margin-right:32px}';export{i as tds_inline_tab}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,h as o,H as t,g as e}from"./p-43fe6507.js";import{e as r}from"./p-8fea52fe.js";const i=class{constructor(o){s(this,o),this.inheritedAttributes=[],this.selector="",this.referenceEl=void 0,this.show=null,this.placement="auto",this.offsetSkidding=0,this.offsetDistance=8,this.fluidWidth=!1}componentWillLoad(){this.inheritedAttributes=r(this.host,["style","class"])}render(){var s;return o(t,null,o("tds-popover-core",{class:{"tds-popover-menu":!0,[null!==(s=this.inheritedAttributes.class)&&void 0!==s?s:""]:!0,"fluid-width":this.fluidWidth},selector:this.selector,referenceEl:this.referenceEl,show:this.show,placement:this.placement,offsetSkidding:this.offsetSkidding,offsetDistance:this.offsetDistance},o("div",{role:"list"},o("slot",null))))}get host(){return e(this)}};i.style=".tds-popover-menu.sc-tds-popover-menu{box-sizing:border-box;overflow:hidden;width:160px;background-color:var(--tds-popover-menu-background);padding:16px 6px;box-shadow:0 3px 3px rgba(0, 0, 0, 0.15), 0 -1px 1px rgba(0, 0, 0, 0.1);border-radius:4px;z-index:900}.tds-popover-menu.sc-tds-popover-menu *.sc-tds-popover-menu{box-sizing:border-box}.tds-popover-menu.fluid-width.sc-tds-popover-menu{width:unset}tds-popover-core.sc-tds-popover-menu{padding:6px 0 !important}.sc-tds-popover-menu-s>tds-divider{display:block;padding:6px !important}";export{i as tds_popover_menu}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as o,H as i}from"./p-43fe6507.js";const a=class{constructor(o){t(this,o),this.disabled=!1,this.selected=!1}async setSelected(t){this.selected=t}render(){return o(i,{role:"listitem"},o("div",{class:`navigation-tab-item ${this.selected?"selected":""}\n ${this.disabled?"disabled":""}`},o("slot",null)))}};a.style=':host{box-sizing:border-box;z-index:200;display:block}:host *{box-sizing:border-box}:host ::slotted(*){all:unset;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-navigation-tabs-tab-color);text-decoration:none;display:block;position:relative;transition:color 0.15s ease-in-out 0s;white-space:nowrap;background-color:transparent;border:0;width:100%;padding:26px 4px}:host ::slotted(*:focus-visible)::before{content:"";position:absolute;left:0;right:0;top:26px;bottom:26px;outline:2px solid var(--tds-blue-400)}:host .navigation-tab-item:not(.selected)::after{width:0%;transition:width 0.15s ease-in-out 0s}:host .navigation-tab-item{position:relative;margin-right:32px}:host .navigation-tab-item:hover{cursor:pointer}:host .navigation-tab-item:hover::after{width:100%}:host .navigation-tab-item::after{content:" ";position:absolute;bottom:0;right:0;left:0;margin-left:auto;width:0%;margin-right:auto;height:2px;background-color:var(--tds-navigation-tabs-tab-indicator-background-hover);z-index:1}:host .selected ::slotted(*){color:var(--tds-navigation-tabs-tab-color-selected)}:host .selected::after{width:100%;background-color:var(--tds-navigation-tabs-tab-indicator-background-active)}:host .disabled{color:var(--tds-navigation-tabs-tab-color-disabled)}:host .disabled ::slotted(*){opacity:var(--tds-navigation-tabs-tab-color-opacity-disabled)}:host .disabled::after{content:none}:host .disabled ::slotted(*:hover){cursor:not-allowed}:host .disabled ::slotted(*:focus-visible){outline:none}:host(.first){margin-left:32px}:host(.last){margin-right:32px}';export{a as tds_navigation_tab}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as e,h as d,g as i}from"./p-43fe6507.js";import{h as l}from"./p-8fea52fe.js";const s=class{constructor(d){t(this,d),this.tdsChange=e(this,"tdsChange",6),this.tdsInput=e(this,"tdsInput",6),this.tdsFocus=e(this,"tdsFocus",6),this.tdsBlur=e(this,"tdsBlur",6),this.type="text",this.labelPosition="no-label",this.label="",this.helper=void 0,this.placeholder="",this.value="",this.disabled=!1,this.readOnly=!1,this.size="lg",this.modeVariant=null,this.noMinWidth=!1,this.name="",this.state="default",this.maxLength=void 0,this.autofocus=!1,this.focusInput=void 0}handleChange(t){this.tdsChange.emit(t)}handleInput(t){this.tdsInput.emit(t),this.value=t.target.value}handleFocus(t){this.textInput.focus(),this.focusInput=!0,this.tdsFocus.emit(t)}handleBlur(t){this.focusInput=!1,this.tdsBlur.emit(t)}render(){var t;const e=l("prefix",this.host),i=l("suffix",this.host);return d("div",{class:`\n ${this.noMinWidth?"form-text-field-nomin":""}\n ${this.focusInput&&!this.disabled?"form-text-field text-field-focus":" form-text-field"}\n ${this.value?"text-field-data":""}\n ${"inside"===this.labelPosition&&"sm"!==this.size?"text-field-container-label-inside":""}\n ${this.disabled?"form-text-field-disabled":""}\n ${this.readOnly?"form-text-field-readonly":""}\n ${null!==this.modeVariant?`tds-mode-variant-${this.modeVariant}`:""}\n ${"md"===this.size?"form-text-field-md":""}\n ${"sm"===this.size?"form-text-field-sm":""}\n ${"error"===this.state||"success"===this.state?`form-text-field-${this.state}`:""}\n `},"outside"===this.labelPosition&&d("div",{class:"text-field-label-outside"},d("div",null,this.label)),d("div",{onClick:()=>this.textInput.focus(),class:"text-field-container"},e&&d("div",{class:`text-field-slot-wrap-prefix text-field-${this.state}`},d("slot",{name:"prefix"})),d("div",{class:"text-field-input-container"},d("input",{ref:t=>this.textInput=t,class:`text-field-input text-field-input-${this.size}`,type:this.type,disabled:this.disabled,readonly:this.readOnly,placeholder:this.placeholder,value:this.value,autofocus:this.autofocus,maxlength:this.maxLength,name:this.name,onInput:t=>this.handleInput(t),onChange:t=>this.handleChange(t),onFocus:t=>{this.readOnly||this.handleFocus(t)},onBlur:t=>{this.readOnly||this.handleBlur(t)}}),"inside"===this.labelPosition&&"sm"!==this.size&&d("label",{class:"text-field-label-inside"},this.label)),d("div",{class:"text-field-bar"}),i&&d("div",{class:`text-field-slot-wrap-suffix text-field-${this.state}`},d("slot",{name:"suffix"})),d("span",{class:"text-field-icon__readonly"},d("tds-icon",{name:"edit_inactive",size:"20px"})),d("span",{class:"text-field-icon__readonly-label"},"This field is non-editable")),d("div",{class:"text-field-helper"},"error"===this.state&&d("div",{class:"text-field-helper-error-state"},d("tds-icon",{name:"error",size:"16px"}),this.helper),"error"!==this.state&&this.helper,this.maxLength>0&&d("div",{class:"text-field-textcounter"},null===this.value?0:null===(t=this.value)||void 0===t?void 0:t.length,d("span",{class:"text-field-textcounter-divider"}," / "),this.maxLength)))}get host(){return i(this)}};s.style='.text-field-input-lg.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-20) var(--tds-spacing-element-16)}.text-field-input-lg.sc-tds-text-field::placeholder{color:var(--tds-text-field-color)}.text-field-input-lg.sc-tds-text-field:focus::placeholder{color:var(--tds-text-field-placeholder-focus-color)}.text-field-input-lg.sc-tds-text-field:disabled{cursor:not-allowed;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-lg.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-lg.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-input-md.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.text-field-input-md.sc-tds-text-field::placeholder{color:var(--tds-text-field-color)}.text-field-input-md.sc-tds-text-field:focus::placeholder{color:var(--tds-text-field-placeholder-focus-color)}.text-field-input-md.sc-tds-text-field:disabled{cursor:not-allowed;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-md.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-md.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-input-sm.sc-tds-text-field{all:unset;border-radius:4px 4px 0 0;width:100%;box-sizing:border-box;margin:0;border:none;outline:none;height:100%;color:var(--tds-text-field-color);background-color:var(--tds-text-field-background);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);padding:var(--tds-spacing-element-16)}.text-field-input-sm.sc-tds-text-field::placeholder{color:var(--tds-text-field-color)}.text-field-input-sm.sc-tds-text-field:focus::placeholder{color:var(--tds-text-field-placeholder-focus-color)}.text-field-input-sm.sc-tds-text-field:disabled{cursor:not-allowed;background-color:var(--tds-text-field-background-disabled);color:var(--tds-text-field-color-disabled)}.text-field-input-sm.sc-tds-text-field:disabled::placeholder{color:var(--tds-text-field-placeholder-disabled)}.text-field-input-sm.sc-tds-text-field:disabled~.text-field-label-inside.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-container.sc-tds-text-field{border-radius:4px 4px 0 0;display:flex;position:relative;height:56px;box-sizing:border-box;background-color:var(--tds-text-field-background);border-bottom:1px solid var(--tds-text-field-border-bottom);transition:border-bottom-color 200ms ease}.text-field-container.sc-tds-text-field:hover{border-bottom-color:var(--tds-text-field-border-bottom-hover)}.form-text-field-md.sc-tds-text-field .text-field-container.sc-tds-text-field{height:48px}.form-text-field-sm.sc-tds-text-field .text-field-container.sc-tds-text-field{height:40px}.text-field-input-container.sc-tds-text-field{position:relative;width:100%}.text-field-data.sc-tds-text-field,.text-field-input.sc-tds-text-field{color:var(--tds-text-field-data-color)}.text-field-label-outside.sc-tds-text-field>*.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:block;margin-bottom:var(--tds-spacing-element-8);color:var(--tds-text-field-label-color)}.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);position:absolute;pointer-events:none;color:var(--tds-text-field-label-inside-color);left:16px}.form-text-field.sc-tds-text-field{display:block;min-width:208px}.form-text-field-nomin.sc-tds-text-field{min-width:auto}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field{padding-top:var(--tds-spacing-element-24);padding-bottom:15px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:20px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-lg.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder-focus-color)}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:16px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-md.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder-focus-color)}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field{padding-top:var(--tds-spacing-element-20);padding-bottom:11px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{top:16px}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field .sc-tds-text-field::placeholder{color:transparent}.form-text-field.text-field-container-label-inside.sc-tds-text-field .text-field-input-sm.sc-tds-text-field:focus::placeholder{transition:color 0.35s ease;color:var(--tds-text-field-placeholder-focus-color)}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-sm.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-md.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:8px}.form-text-field.text-field-container-label-inside.text-field-focus.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field,.form-text-field.text-field-container-label-inside.text-field-data.sc-tds-text-field .text-field-input-lg.sc-tds-text-field~.text-field-label-inside.sc-tds-text-field{font:var(--tds-detail-07);letter-spacing:var(--tds-detail-07-ls);transition:0.1s ease all;top:12px}.text-field-bar.sc-tds-text-field{position:absolute;width:100%}.text-field-bar.sc-tds-text-field::before,.text-field-bar.sc-tds-text-field::after{content:"";height:2px;top:54px;width:0;position:absolute;background:var(--tds-text-field-bar);transition:0.35s ease all}.form-text-field-md.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.form-text-field-md.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{top:46px}.form-text-field-sm.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.form-text-field-sm.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{top:40px}.text-field-bar.sc-tds-text-field::before{left:50%}.text-field-bar.sc-tds-text-field::after{right:50%}.text-field-focus.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.text-field-focus.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{width:50%}.text-field-helper.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);display:flex;gap:8px;justify-content:space-between;flex-basis:100%;padding-top:var(--tds-spacing-element-4);color:var(--tds-text-field-helper)}.text-field-helper.sc-tds-text-field .text-field-textcounter.sc-tds-text-field{margin-left:auto}.form-text-field-disabled.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:transparent}.form-text-field-disabled.sc-tds-text-field .text-field-slot-wrap-prefix.sc-tds-text-field>*.sc-tds-text-field,.form-text-field-disabled.sc-tds-text-field .text-field-slot-wrap-suffix.sc-tds-text-field>*.sc-tds-text-field{color:var(--tds-text-field-ps-color-disabled)}.form-text-field-disabled.sc-tds-text-field .text-field-label-outside.sc-tds-text-field>*.sc-tds-text-field{color:var(--tds-text-field-label-disabled)}.text-field-icon__readonly.sc-tds-text-field{display:none;position:absolute;right:18px;top:18px;color:var(--tds-text-field-icon-read-only-label-color)}.text-field-icon__readonly-label.sc-tds-text-field{display:none;position:absolute;right:18px;top:48px;font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);padding:8px;white-space:nowrap;border-radius:4px 0 4px 4px;background-color:var(--tds-text-field-icon-read-only-label-background)}.form-text-field-readonly.sc-tds-text-field{pointer-events:none}.form-text-field-readonly.sc-tds-text-field .text-field-icon__readonly.sc-tds-text-field{display:block}.form-text-field-readonly.sc-tds-text-field .text-field-icon__readonly.sc-tds-text-field:hover~.text-field-icon__readonly-label.sc-tds-text-field{display:block}.form-text-field-readonly.sc-tds-text-field .text-field-input.sc-tds-text-field{padding-right:54px;background-color:transparent}.form-text-field-success.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-success)}.form-text-field-error.sc-tds-text-field .text-field-helper.sc-tds-text-field{color:var(--tds-text-field-helper-error)}.form-text-field-error.sc-tds-text-field .text-field-container.sc-tds-text-field{border-bottom-color:var(--tds-text-field-border-bottom-error)}.form-text-field-error.sc-tds-text-field .text-field-bar.sc-tds-text-field::before,.form-text-field-error.sc-tds-text-field .text-field-bar.sc-tds-text-field::after{background:var(--tds-text-field-bar-error)}.text-field-helper-error-state.sc-tds-text-field{display:flex;gap:8px;flex-wrap:nowrap}.text-field-textcounter.sc-tds-text-field{font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);color:var(--tds-text-field-textcounter);float:right}.text-field-textcounter.sc-tds-text-field .text-field-textcounter-divider.sc-tds-text-field{color:var(--tds-text-field-textcounter-divider)}.text-field-slot-wrap-prefix.sc-tds-text-field,.text-field-slot-wrap-suffix.sc-tds-text-field{align-self:center;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);margin:0 0 0 14px;color:var(--tds-text-field-ps-color)}.text-field-slot-wrap-prefix.sc-tds-text-field-s>:not(tds-icon),.text-field-slot-wrap-suffix.sc-tds-text-field-s>:not(tds-icon){margin:0 0 0 2px}.text-field-slot-wrap-prefix.text-field-error.sc-tds-text-field,.text-field-slot-wrap-suffix.text-field-error.sc-tds-text-field{color:var(--tds-text-field-ps-color-error)}.text-field-slot-wrap-suffix.sc-tds-text-field{margin:0 14px 0 0}.text-field-slot-wrap-suffix.sc-tds-text-field-s>:not(tds-icon){margin:0 2px 0 0}';export{s as tds_text_field}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as t,h as e,H as o,g as r}from"./p-43fe6507.js";import{g as i,h as a}from"./p-8fea52fe.js";const n=class{constructor(e){s(this,e),this.tdsClose=t(this,"tdsClose",7),this.handleClose=()=>{this.tdsClose.emit({bannerId:this.bannerId}).defaultPrevented||(this.hidden=!0)},this.icon=void 0,this.header=void 0,this.subheader=void 0,this.variant="default",this.bannerId=i(),this.hidden=!1}async hideBanner(){this.hidden=!0}async showBanner(){this.hidden=!1}connectedCallback(){"error"===this.variant?this.icon="error":"information"===this.variant&&(this.icon="info")}render(){const s=a("subheader",this.host),t=a("subheader",this.host),r=a("actions",this.host);return e(o,{role:"banner","aria-hidden":`${this.hidden}`,"aria-live":this.host.getAttribute("aria-live")?this.host.getAttribute("aria-live"):"polite","aria-atomic":this.host.getAttribute("aria-atomic"),class:`${this.variant} ${this.hidden?"hide":"show"}`},this.icon&&e("div",{class:`banner-icon ${this.variant}`},e("tds-icon",{name:this.icon,size:"20px"})),e("div",{class:"content"},e("div",{class:"header-subheader"},this.header&&e("div",{class:"header"},this.header),s&&e("slot",{name:"header"}),this.subheader&&e("div",{class:"subheader"},this.subheader),t&&e("slot",{name:"subheader"})),r&&e("slot",{name:"actions"})),e("div",{class:"banner-close"},e("button",{onClick:()=>{this.handleClose()}},e("tds-icon",{name:"cross",size:"20px"}))))}get host(){return r(this)}};n.style=":root,.tds-mode-light{--tds-link:var(--tds-blue-500);--tds-link-hover:var(--tds-blue-400);--tds-link-focus:var(--tds-blue-400);--tds-link-visited:var(--tds-grey-900);--tds-link-disabled:var(--tds-grey-400)}:root tds-toast,.tds-mode-light tds-toast{--tds-link:var(--tds-blue-300);--tds-link-hover:var(--tds-blue-400);--tds-link-focus:var(--tds-blue-400);--tds-link-visited:var(--tds-blue-100);--tds-link-disabled:var(--tds-grey-800)}.tds-mode-dark{--tds-link:var(--tds-blue-300);--tds-link-hover:var(--tds-blue-400);--tds-link-focus:var(--tds-blue-400);--tds-link-visited:var(--tds-blue-100);--tds-link-disabled:var(--tds-grey-800)}.tds-mode-dark tds-toast{--tds-link:var(--tds-blue-500);--tds-link-hover:var(--tds-blue-400);--tds-link-focus:var(--tds-blue-400);--tds-link-visited:var(--tds-grey-900);--tds-link-disabled:var(--tds-grey-400)}:host(.hide){display:none;visibility:hidden}:host(.error){background-color:var(--tds-banner-background-error)}:host(.information){background-color:var(--tds-banner-background-info)}:host{display:flex;background-color:var(--tds-banner-background-default);z-index:400}:host .banner-icon{padding-left:20px;padding-top:14px;padding-right:12px;color:var(--tds-banner-prefix-default-color)}:host .banner-icon.error{color:var(--tds-banner-prefix-error-color)}:host .banner-icon.information{color:var(--tds-banner-prefix-info-color)}:host .content{color:var(--tds-banner-text-color);display:flex;flex-direction:column;flex-grow:1;padding:16px 0}:host .content.no-icon{padding-left:16px}:host .header-subheader{display:flex;flex-direction:column;gap:4px}:host .header,:host slot[name=header]{font:var(--tds-headline-06);letter-spacing:var(--tds-headline-06-ls)}:host .subheader,:host slot[name=subheader]{display:block;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls)}:host slot[name=actions]::slotted(*){display:block;width:fit-content;margin-top:16px}:host .banner-close{color:var(--tds-banner-x-color)}:host .banner-close button{padding-right:16px;padding-top:14px;background-color:transparent;border:none;color:var(--tds-banner-x-color)}:host .banner-close button:hover{cursor:pointer}:host .banner-close button:focus-visible{outline:none}:host .banner-close button:focus-visible tds-icon{outline:2px solid var(--tds-blue-400);outline-offset:-2px}";export{n as tds_banner}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,c as s,h as o,H as e,g as r}from"./p-43fe6507.js";import{g as a,h as i}from"./p-8fea52fe.js";const n=class{constructor(o){t(this,o),this.tdsClose=s(this,"tdsClose",7),this.getIconName=()=>{switch(this.variant){case"information":default:return"info";case"error":return"error";case"warning":return"warning";case"success":return"tick"}},this.handleClose=()=>{this.tdsClose.emit({toastId:this.toastId}).defaultPrevented||(this.hidden=!0)},this.handleShow=()=>{this.tdsClose.emit({toastId:this.toastId}).defaultPrevented||(this.hidden=!1)},this.toastId=a(),this.header=void 0,this.subheader=void 0,this.variant="information",this.hidden=!1,this.toastRole="alert"}async hideToast(){this.hidden=!0}async showToast(){this.hidden=!1}render(){const t=i("header",this.host),s=i("subheader",this.host),r=i("actions",this.host);return o(e,{toastRole:this.toastRole,"aria-describedby":this.host.getAttribute("aria-describedby"),class:this.hidden?"hide":"show"},o("div",{class:`\n wrapper\n ${this.variant}`},o("tds-icon",{name:this.getIconName(),size:"20px"}),o("div",{class:"content"},o("div",{class:"header-subheader"},this.header&&o("div",{class:"header"},this.header),t&&o("slot",{name:"header"}),this.subheader&&o("div",{class:"subheader"},this.subheader),s&&o("slot",{name:"subheader"})),r&&o("div",{class:"toast-bottom "+(s||this.subheader?"subheader":"no-subheader")},o("slot",{name:"actions"}))),o("button",{onClick:()=>{this.handleClose()},class:"close"},o("tds-icon",{name:"cross",size:"20px"}))))}get host(){return r(this)}};n.style=":host(.hide){display:none;visibility:hidden}:host{z-index:800}:host .wrapper{display:flex;width:348px;background-color:var(--tds-toast-background-color);border-radius:4px}:host .wrapper.information{border-left:4px solid var(--tds-information)}:host .wrapper.information tds-icon{color:var(--tds-information)}:host .wrapper.success{border-left:4px solid var(--tds-positive)}:host .wrapper.success tds-icon{color:var(--tds-positive)}:host .wrapper.error{border-left:4px solid var(--tds-negative)}:host .wrapper.error tds-icon{color:var(--tds-negative)}:host .wrapper.warning{border-left:4px solid var(--tds-warning)}:host .wrapper.warning tds-icon{color:var(--tds-warning)}:host .wrapper button.close{height:20px;width:20px;display:flex;align-items:center;justify-content:center;margin:14px 14px 0 0;border:none;background:transparent}:host .wrapper button.close:hover{cursor:pointer}:host .wrapper button.close:focus{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host .wrapper button.close tds-icon{color:var(--tds-toast-dissmiss-color);padding:0}:host tds-icon{padding:14px 0 0 12px}:host .content{padding:16px 0 16px 10px;display:flex;flex-direction:column;flex:1}:host .content .header-subheader{display:flex;flex-direction:column;gap:4px}:host .content .header,:host .content slot[name=header]::slotted(*){font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);color:var(--tds-toast-headline-color)}:host .content .subheader,:host .content slot[name=subheader]::slotted(*){color:var(--tds-toast-subheadline-color);font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);max-width:252px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .content .subheader.no-link slot::slotted(*),:host .content slot[name=subheader]::slotted(*).no-link slot::slotted(*){padding-bottom:0}:host .content .toast-bottom{margin-top:12px}:host slot[name=actions]::slotted(*){color:var(--tds-toast-link-color)}:host .tds-mode-variant-primary{--tds-toast-background:var(--tds-toast-background-primary)}:host .tds-mode-variant-secondary{--tds-toast-background:var(--tds-toast-background-secondary)}";export{n as tds_toast}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as t,h as e,H as s,g as r}from"./p-43fe6507.js";import{g as a,i as h}from"./p-8fea52fe.js";const i=class{constructor(e){t(this,e),this.uuid=a(),this.open=!1,this.buttonEl=void 0,this.hasListTypeMenu=!1}onAnyClick(t){!t.composedPath().includes(this.host)&&(this.open=!1)}componentDidLoad(){this.host.shadowRoot.querySelector("slot:not([name])").assignedElements().some((t=>"tds-header-launcher-list"===t.tagName.toLowerCase()))&&(this.hasListTypeMenu=!0)}toggleLauncher(){this.open=!this.open}render(){this.ariaAttributes=Object.assign(Object.assign({},this.ariaAttributes),h(this.host,["role"]));const t=Object.assign(Object.assign({},this.ariaAttributes),{"aria-expanded":`${this.open}`,"aria-controls":`launcher-${this.uuid}`,class:"button",active:this.open,onClick:()=>{this.toggleLauncher()},ref:t=>{this.buttonEl=t}});return e(s,null,e("div",{class:{wrapper:!0,"state-open":this.open,"state-list-type-menu":this.hasListTypeMenu}},e("tds-header-launcher-button",Object.assign({},t)),this.buttonEl&&e("tds-popover-canvas",{id:`tds-launcher-${this.uuid}`,class:"menu",referenceEl:this.buttonEl,placement:"bottom-start",show:this.open,offsetDistance:0,modifiers:[{name:"flip",options:{fallbackPlacements:[]}}]},e("slot",null))))}get host(){return r(this)}};i.style=":host .wrapper{height:var(--tds-header-height);position:relative}:host .wrapper .menu{flex-direction:column;overflow-y:auto;max-height:calc(100vh - var(--tds-header-height));box-shadow:var(--tds-nav-dropdown-menu-box);background-color:var(--tds-header-app-launcher-menu-background);border-radius:0}:host .wrapper .menu::-webkit-scrollbar{width:4px;background-color:inherit}:host .wrapper .menu::-webkit-scrollbar-thumb{background-color:var(--tds-grey-300)}:host .wrapper .menu ::-webkit-scrollbar-button{height:0;width:0}@media all and (max-width: 384px){:host .wrapper .menu{width:100vw}}:host .wrapper.state-list-type-menu .menu{height:calc(100vh - var(--tds-header-height))}:host .wrapper.state-open .button{position:relative;z-index:901}";export{i as tds_header_launcher}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
export declare const formatHtmlPreview: (htmlStr: any) => string;
|
|
2
|
-
export declare function demoFormat(first: string, middle: string, last: string): string;
|
|
3
|
-
/** reference: https://github.com/ionic-team/ionic-framework/blob/main/core/src/utils/helpers.ts#L346
|
|
4
|
-
*
|
|
5
|
-
* Appends a hidden input element to allow the component
|
|
6
|
-
* work within and get picked up by a <form>.
|
|
7
|
-
* @param element The element on which the input with be appended.
|
|
8
|
-
* @param name Name of the input.
|
|
9
|
-
* @param value The value of the input.
|
|
10
|
-
* @param disabled Disables the input if true.
|
|
11
|
-
* @param additionalAttributes Additional attributes that should be passed to the input.
|
|
12
|
-
*/
|
|
13
|
-
export declare const appendHiddenInput: (element: HTMLElement, name: string, value: string | undefined | null, disabled: boolean, additionalAttributes?: {
|
|
14
|
-
key: string;
|
|
15
|
-
value: string;
|
|
16
|
-
}[]) => void;
|
|
17
|
-
/**
|
|
18
|
-
* Appends a child element to the supplied parentElement.
|
|
19
|
-
* @param parentElement The element on which the child element with be appended.
|
|
20
|
-
* @param tag Tag for the child element.
|
|
21
|
-
* @param attributes List of attributes to be added on the child element.
|
|
22
|
-
* @param slot Slot for the child element.
|
|
23
|
-
* @param id Id for the child element.
|
|
24
|
-
*/
|
|
25
|
-
export declare const appendChildElement: (parentElement: HTMLElement, tag: string, attributes: Array<{
|
|
26
|
-
key: string;
|
|
27
|
-
value: string;
|
|
28
|
-
}>, slot: any, id: string) => void;
|
|
29
|
-
/**
|
|
30
|
-
* Find the next focusable element index in a list of focusable elements.
|
|
31
|
-
* @param items List of focusable elements, element with a attribute of disabled that is true will be skipped over.
|
|
32
|
-
* @param nextItemIndex The index in the list to start the search on.
|
|
33
|
-
*/
|
|
34
|
-
export declare const findNextFocusableItem: (items: any[], nextItemIndex: number) => number;
|
|
35
|
-
/**
|
|
36
|
-
* Find the previous focusable element index in a list of focusable elements.
|
|
37
|
-
*
|
|
38
|
-
* @param items List of focusable elements, element with a attribute of disabled that is true will be skipped over.
|
|
39
|
-
* @param nextItemIndex The index in the list to start the search on.
|
|
40
|
-
*/
|
|
41
|
-
export declare const findPreviousFocusableItem: (items: any[], previousItemIndex: number) => number;
|
|
42
|
-
export type Attributes = {
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Elements inside of web components sometimes need to inherit global attributes
|
|
47
|
-
* set on the host. For example, the inner input in `ion-input` should inherit
|
|
48
|
-
* the `title` attribute that developers set directly on `ion-input`. This
|
|
49
|
-
* helper function should be called in componentWillLoad and assigned to a variable
|
|
50
|
-
* that is later used in the render function.
|
|
51
|
-
*
|
|
52
|
-
* This does not need to be reactive as changing attributes on the host element
|
|
53
|
-
* does not trigger a re-render.
|
|
54
|
-
*/
|
|
55
|
-
export declare const inheritAttributes: (el: HTMLElement, attributes?: string[]) => Attributes;
|
|
56
|
-
/**
|
|
57
|
-
* Returns an array of aria attributes that should be copied from
|
|
58
|
-
* the shadow host element to a target within the light DOM.
|
|
59
|
-
* @param el The element that the attributes should be copied from.
|
|
60
|
-
* @param ignoreList The list of aria-attributes to ignore reflecting and removing from the host.
|
|
61
|
-
* Use this in instances where we manually specify aria attributes on the `<Host>` element.
|
|
62
|
-
*/
|
|
63
|
-
export declare const inheritAriaAttributes: (el: HTMLElement, ignoreList?: string[]) => Attributes;
|
|
64
|
-
/**
|
|
65
|
-
* Recursively finds the first matching element or child based on a provided condition.
|
|
66
|
-
*
|
|
67
|
-
* @param {ParentNode} parentNode - The starting element or shadow root to search from.
|
|
68
|
-
* @param {(el: HTMLElement) => boolean} searchPredicate - The condition to match the element, receives an HTMLElement and returns a boolean.
|
|
69
|
-
* @param {boolean} [pierceShadow=false] - Whether to pierce through shadow DOM boundaries.
|
|
70
|
-
* @returns {HTMLElement | null} - The first matching element or child, or null if none is found.
|
|
71
|
-
*/
|
|
72
|
-
export declare function dfs(parentNode: ParentNode, searchPredicate: (el: HTMLElement) => boolean, pierceShadow?: boolean): HTMLElement | null;
|
|
73
|
-
/**
|
|
74
|
-
* Searches for a next sibling element that has a nested child element matching the provided search predicate.
|
|
75
|
-
* The search starts from the given element and proceeds to its next siblings, diving deep into each sibling's descendants.
|
|
76
|
-
*
|
|
77
|
-
* @param {HTMLElement} element - The starting element to begin the search from.
|
|
78
|
-
* @param {(el: HTMLElement) => boolean} searchPredicate - A predicate function that checks if an element matches the desired condition.
|
|
79
|
-
* @returns {HTMLElement | null} - The matching nested child element, or null if no matching element is found.
|
|
80
|
-
*
|
|
81
|
-
* @example
|
|
82
|
-
* // HTML structure:
|
|
83
|
-
* // <div>
|
|
84
|
-
* // <h1>Heading 1</h1>
|
|
85
|
-
* // <ul role="list">
|
|
86
|
-
* // <li>Item 1</li>
|
|
87
|
-
* // </ul>
|
|
88
|
-
* // </div>
|
|
89
|
-
* // <div>
|
|
90
|
-
* // <h2>Heading 2</h2>
|
|
91
|
-
* // <ul role="list">
|
|
92
|
-
* // <li>Item 2</li>
|
|
93
|
-
* // </ul>
|
|
94
|
-
* // </div>
|
|
95
|
-
*
|
|
96
|
-
* const searchPredicate = (el) => el.tagName.toLowerCase() === 'h2';
|
|
97
|
-
* const startingElement = document.querySelector('[role="list"]');
|
|
98
|
-
* const headingEl = getNextNestedChildOfSiblingsMatching(startingElement, searchPredicate);
|
|
99
|
-
* console.log(headingEl); // Logs the <h2>Heading 2</h2> element
|
|
100
|
-
*/
|
|
101
|
-
export declare const getNextNestedChildOfSiblingsMatching: (element: HTMLElement, searchPredicate: (el: HTMLElement) => boolean) => HTMLElement;
|
|
102
|
-
/**
|
|
103
|
-
* Searches for a previous sibling element that has a nested child element matching the provided search predicate.
|
|
104
|
-
* The search starts from the given element and proceeds to its previous siblings, diving deep into each sibling's descendants.
|
|
105
|
-
*
|
|
106
|
-
* @param {HTMLElement} element - The starting element to begin the search from.
|
|
107
|
-
* @param {(el: HTMLElement) => boolean} searchPredicate - A predicate function that checks if an element matches the desired condition.
|
|
108
|
-
* @returns {HTMLElement | null} - The matching nested child element, or null if no matching element is found.
|
|
109
|
-
*
|
|
110
|
-
* @example
|
|
111
|
-
* // HTML structure:
|
|
112
|
-
* // <div>
|
|
113
|
-
* // <h1>Heading 1</h1>
|
|
114
|
-
* // <ul role="list">
|
|
115
|
-
* // <li>Item 1</li>
|
|
116
|
-
* // </ul>
|
|
117
|
-
* // </div>
|
|
118
|
-
* // <div>
|
|
119
|
-
* // <h2>Heading 2</h2>
|
|
120
|
-
* // <ul role="list">
|
|
121
|
-
* // <li>Item 2</li>
|
|
122
|
-
* // </ul>
|
|
123
|
-
* // </div>
|
|
124
|
-
*
|
|
125
|
-
* const searchPredicate = (el) => el.tagName.toLowerCase() === 'h2';
|
|
126
|
-
* const startingElement = document.querySelector('[role="list"]');
|
|
127
|
-
* const headingEl = getPreviousNestedChildOfSiblingsMatching(startingElement, searchPredicate);
|
|
128
|
-
* console.log(headingEl); // Logs the <h2>Heading 2</h2> element
|
|
129
|
-
*/
|
|
130
|
-
export declare const getPreviousNestedChildOfSiblingsMatching: (element: HTMLElement, searchPredicate: (el: HTMLElement) => boolean) => HTMLElement;
|
|
131
|
-
/**
|
|
132
|
-
* Checks if the given element is a heading element (h1-h6) or has a role of "heading".
|
|
133
|
-
*
|
|
134
|
-
* @param {HTMLElement} el - The element to check.
|
|
135
|
-
* @returns {boolean} - True if the element is a heading element, false otherwise.
|
|
136
|
-
*/
|
|
137
|
-
export declare const isHeadingElement: (el: HTMLElement) => boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Loop through the children and add the 'listitem' role if needed.
|
|
140
|
-
* @param {Node} targetNode The node being updated.
|
|
141
|
-
* */
|
|
142
|
-
export declare const updateListChildrenRoles: (targetNode: Node) => void;
|
|
143
|
-
export declare function isFocusable(element: HTMLElement): boolean;
|
|
144
|
-
/**
|
|
145
|
-
* Checks if the provided element has a slotted element
|
|
146
|
-
* in the slot with the corresponding slotName
|
|
147
|
-
* @param slotName the name of the slot.
|
|
148
|
-
* @param element the element to look for the slot within.
|
|
149
|
-
*/
|
|
150
|
-
export declare const hasSlot: (slotName: string, element: HTMLElement) => boolean;
|
|
151
|
-
/**
|
|
152
|
-
* Generates a reasonably unique string ID based on current time (minutes, seconds, milliseconds) and random numbers.
|
|
153
|
-
*
|
|
154
|
-
* This function combines the current time and random numbers to generate
|
|
155
|
-
* a unique string ID. The function assumes that it won't be called frequently
|
|
156
|
-
* enough to generate two identical IDs within a millisecond, or that the random
|
|
157
|
-
* number generator will produce the same value twice in quick succession.
|
|
158
|
-
*
|
|
159
|
-
* Note: The IDs generated by this function are not globally unique and their length may vary.
|
|
160
|
-
* For truly unique and fixed-length IDs, consider using a more robust method such as UUID.
|
|
161
|
-
*
|
|
162
|
-
* @returns {string} A unique string ID.
|
|
163
|
-
*/
|
|
164
|
-
export declare function generateUniqueId(): string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|