@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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Recursively finds the first matching element or child based on a provided condition.
|
|
5
|
+
*
|
|
6
|
+
* @param {ParentNode} parentNode - The starting element or shadow root to search from.
|
|
7
|
+
* @param {(el: HTMLElement) => boolean} searchPredicate - The condition to match the element, receives an HTMLElement and returns a boolean.
|
|
8
|
+
* @param {boolean} [pierceShadow=false] - Whether to pierce through shadow DOM boundaries.
|
|
9
|
+
* @returns {HTMLElement | null} - The first matching element or child, or null if none is found.
|
|
10
|
+
*/
|
|
11
|
+
function dfs(parentNode, searchPredicate, pierceShadow = false) {
|
|
12
|
+
if (parentNode instanceof HTMLElement && searchPredicate(parentNode)) {
|
|
13
|
+
return parentNode;
|
|
14
|
+
}
|
|
15
|
+
const childElements = parentNode instanceof HTMLSlotElement
|
|
16
|
+
? parentNode.assignedElements({ flatten: true })
|
|
17
|
+
: Array.from(parentNode.children);
|
|
18
|
+
if (pierceShadow && parentNode instanceof HTMLElement && parentNode.shadowRoot) {
|
|
19
|
+
childElements.push(...Array.from(parentNode.shadowRoot.children));
|
|
20
|
+
}
|
|
21
|
+
let foundElement = null;
|
|
22
|
+
childElements.some((child) => {
|
|
23
|
+
foundElement = dfs(child, searchPredicate, pierceShadow);
|
|
24
|
+
return foundElement !== null;
|
|
25
|
+
});
|
|
26
|
+
return foundElement;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
exports.dfs = dfs;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Generates a reasonably unique string ID based on current time (minutes, seconds, milliseconds) and random numbers.
|
|
5
|
+
*
|
|
6
|
+
* This function combines the current time and random numbers to generate
|
|
7
|
+
* a unique string ID. The function assumes that it won't be called frequently
|
|
8
|
+
* enough to generate two identical IDs within a millisecond, or that the random
|
|
9
|
+
* number generator will produce the same value twice in quick succession.
|
|
10
|
+
*
|
|
11
|
+
* Note: The IDs generated by this function are not globally unique and their length may vary.
|
|
12
|
+
* For truly unique and fixed-length IDs, consider using a more robust method such as UUID.
|
|
13
|
+
*
|
|
14
|
+
* @returns {string} A unique string ID.
|
|
15
|
+
*/
|
|
16
|
+
function generateUniqueId() {
|
|
17
|
+
const now = new Date();
|
|
18
|
+
const timeInMilliseconds = now.getMinutes() * 60000 + now.getSeconds() * 1000 + now.getMilliseconds(); // Get current time in milliseconds from the start of the hour
|
|
19
|
+
const randomNum1 = Math.floor(Math.random() * 1000000); // Random number between 0 and 999999
|
|
20
|
+
const randomNum2 = Math.floor(Math.random() * 1000000); // Another random number
|
|
21
|
+
// Convert to base 36 (using numbers and letters) and remove '0.' from the random number
|
|
22
|
+
const uniqueString = randomNum1.toString(36).substring(2) +
|
|
23
|
+
timeInMilliseconds.toString(36) +
|
|
24
|
+
randomNum2.toString(36).substring(2);
|
|
25
|
+
return uniqueString;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
exports.generateUniqueId = generateUniqueId;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks if the provided element has a slotted element
|
|
5
|
+
* in the slot with the corresponding slotName
|
|
6
|
+
* @param slotName the name of the slot.
|
|
7
|
+
* @param element the element to look for the slot within.
|
|
8
|
+
*/
|
|
9
|
+
const hasSlot = (slotName, element) => !!element.querySelector(`[slot="${slotName}"]`);
|
|
10
|
+
|
|
11
|
+
exports.hasSlot = hasSlot;
|
|
@@ -133,13 +133,13 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
133
133
|
};
|
|
134
134
|
walk(children);
|
|
135
135
|
if (vnodeData) {
|
|
136
|
-
// normalize class / classname attributes
|
|
137
136
|
if (vnodeData.key) {
|
|
138
137
|
key = vnodeData.key;
|
|
139
138
|
}
|
|
140
139
|
if (vnodeData.name) {
|
|
141
140
|
slotName = vnodeData.name;
|
|
142
141
|
}
|
|
142
|
+
// normalize class / className attributes
|
|
143
143
|
{
|
|
144
144
|
const classData = vnodeData.className || vnodeData.class;
|
|
145
145
|
if (classData) {
|
|
@@ -1396,7 +1396,7 @@ const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
1396
1396
|
// has a different next sibling or parent relocated
|
|
1397
1397
|
if (nodeToRelocate !== insertBeforeNode) {
|
|
1398
1398
|
if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
|
|
1399
|
-
// probably a component in the index.html that doesn't have
|
|
1399
|
+
// probably a component in the index.html that doesn't have its hostname set
|
|
1400
1400
|
nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
|
|
1401
1401
|
}
|
|
1402
1402
|
// add it back to the dom but in its new home
|
|
@@ -1579,6 +1579,10 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
1579
1579
|
*/
|
|
1580
1580
|
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
1581
1581
|
try {
|
|
1582
|
+
/**
|
|
1583
|
+
* minification optimization: `allRenderFn` is `true` if all components have a `render`
|
|
1584
|
+
* method, so we can call the method immediately. If not, check before calling it.
|
|
1585
|
+
*/
|
|
1582
1586
|
instance = instance.render() ;
|
|
1583
1587
|
{
|
|
1584
1588
|
hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
|
|
@@ -1661,6 +1665,16 @@ const appDidLoad = (who) => {
|
|
|
1661
1665
|
}
|
|
1662
1666
|
nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
|
|
1663
1667
|
};
|
|
1668
|
+
/**
|
|
1669
|
+
* Allows to safely call a method, e.g. `componentDidLoad`, on an instance,
|
|
1670
|
+
* e.g. custom element node. If a build figures out that e.g. no component
|
|
1671
|
+
* has a `componentDidLoad` method, the instance method gets removed from the
|
|
1672
|
+
* output bundle and this function returns `undefined`.
|
|
1673
|
+
* @param instance any object that may or may not contain methods
|
|
1674
|
+
* @param method method name
|
|
1675
|
+
* @param arg single arbitrary argument
|
|
1676
|
+
* @returns result of method call if it exists, otherwise `undefined`
|
|
1677
|
+
*/
|
|
1664
1678
|
const safeCall = (instance, method, arg) => {
|
|
1665
1679
|
if (instance && instance[method]) {
|
|
1666
1680
|
try {
|
|
@@ -1728,6 +1742,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
1728
1742
|
* @returns a reference to the same constructor passed in (but now mutated)
|
|
1729
1743
|
*/
|
|
1730
1744
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1745
|
+
var _a;
|
|
1731
1746
|
if (cmpMeta.$members$) {
|
|
1732
1747
|
if (Cstr.watchers) {
|
|
1733
1748
|
cmpMeta.$watchers$ = Cstr.watchers;
|
|
@@ -1765,7 +1780,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1765
1780
|
});
|
|
1766
1781
|
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
1767
1782
|
const attrNameToPropName = new Map();
|
|
1768
|
-
prototype.attributeChangedCallback = function (attrName,
|
|
1783
|
+
prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
|
|
1769
1784
|
plt.jmp(() => {
|
|
1770
1785
|
const propName = attrNameToPropName.get(attrName);
|
|
1771
1786
|
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
@@ -1788,12 +1803,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1788
1803
|
// customElements.define('my-component', MyComponent);
|
|
1789
1804
|
// </script>
|
|
1790
1805
|
// ```
|
|
1791
|
-
// In this case if we do not
|
|
1806
|
+
// In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
|
|
1792
1807
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
1793
1808
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
1794
|
-
// the connectedCallback attempts to
|
|
1809
|
+
// the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
|
|
1795
1810
|
//
|
|
1796
|
-
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/
|
|
1811
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
|
|
1797
1812
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
1798
1813
|
//
|
|
1799
1814
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
@@ -1813,21 +1828,49 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1813
1828
|
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1814
1829
|
return;
|
|
1815
1830
|
}
|
|
1831
|
+
else if (propName == null) {
|
|
1832
|
+
// At this point we should know this is not a "member", so we can treat it like watching an attribute
|
|
1833
|
+
// on a vanilla web component
|
|
1834
|
+
const hostRef = getHostRef(this);
|
|
1835
|
+
const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
|
|
1836
|
+
// We only want to trigger the callback(s) if:
|
|
1837
|
+
// 1. The instance is ready
|
|
1838
|
+
// 2. The watchers are ready
|
|
1839
|
+
// 3. The value has changed
|
|
1840
|
+
if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
|
|
1841
|
+
flags & 128 /* HOST_FLAGS.isWatchReady */ &&
|
|
1842
|
+
newValue !== oldValue) {
|
|
1843
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1844
|
+
const entry = cmpMeta.$watchers$[attrName];
|
|
1845
|
+
entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
|
|
1846
|
+
if (instance[callbackName] != null) {
|
|
1847
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1848
|
+
}
|
|
1849
|
+
});
|
|
1850
|
+
}
|
|
1851
|
+
return;
|
|
1852
|
+
}
|
|
1816
1853
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1817
1854
|
});
|
|
1818
1855
|
};
|
|
1819
|
-
//
|
|
1820
|
-
//
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1856
|
+
// Create an array of attributes to observe
|
|
1857
|
+
// This list in comprised of all strings used within a `@Watch()` decorator
|
|
1858
|
+
// on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
|
|
1859
|
+
// As such, there is no way to guarantee type-safety here that a user hasn't entered
|
|
1860
|
+
// an invalid attribute.
|
|
1861
|
+
Cstr.observedAttributes = Array.from(new Set([
|
|
1862
|
+
...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
|
|
1863
|
+
...members
|
|
1864
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
|
|
1865
|
+
.map(([propName, m]) => {
|
|
1866
|
+
const attrName = m[1] || propName;
|
|
1867
|
+
attrNameToPropName.set(attrName, propName);
|
|
1868
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1869
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1870
|
+
}
|
|
1871
|
+
return attrName;
|
|
1872
|
+
}),
|
|
1873
|
+
]));
|
|
1831
1874
|
}
|
|
1832
1875
|
}
|
|
1833
1876
|
return Cstr;
|
|
@@ -2029,6 +2072,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2029
2072
|
plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
|
|
2030
2073
|
lazyBundles.map((lazyBundle) => {
|
|
2031
2074
|
lazyBundle[1].map((compactMeta) => {
|
|
2075
|
+
var _a;
|
|
2032
2076
|
const cmpMeta = {
|
|
2033
2077
|
$flags$: compactMeta[0],
|
|
2034
2078
|
$tagName$: compactMeta[1],
|
|
@@ -2045,7 +2089,7 @@ const bootstrapLazy = (lazyBundles, options = {}) => {
|
|
|
2045
2089
|
cmpMeta.$attrsToReflect$ = [];
|
|
2046
2090
|
}
|
|
2047
2091
|
{
|
|
2048
|
-
cmpMeta.$watchers$ = {};
|
|
2092
|
+
cmpMeta.$watchers$ = (_a = compactMeta[4]) !== null && _a !== void 0 ? _a : {};
|
|
2049
2093
|
}
|
|
2050
2094
|
const tagName = options.transformTagName
|
|
2051
2095
|
? options.transformTagName(cmpMeta.$tagName$)
|
|
@@ -2168,13 +2212,40 @@ const hostListenerOpts = (flags) => (flags & 2 /* LISTENER_FLAGS.Capture */) !==
|
|
|
2168
2212
|
* @returns void
|
|
2169
2213
|
*/
|
|
2170
2214
|
const setNonce = (nonce) => (plt.$nonce$ = nonce);
|
|
2215
|
+
/**
|
|
2216
|
+
* A WeakMap mapping runtime component references to their corresponding host reference
|
|
2217
|
+
* instances.
|
|
2218
|
+
*/
|
|
2171
2219
|
const hostRefs = /*@__PURE__*/ new WeakMap();
|
|
2220
|
+
/**
|
|
2221
|
+
* Given a {@link d.RuntimeRef} retrieve the corresponding {@link d.HostRef}
|
|
2222
|
+
*
|
|
2223
|
+
* @param ref the runtime ref of interest
|
|
2224
|
+
* @returns the Host reference (if found) or undefined
|
|
2225
|
+
*/
|
|
2172
2226
|
const getHostRef = (ref) => hostRefs.get(ref);
|
|
2227
|
+
/**
|
|
2228
|
+
* Register a lazy instance with the {@link hostRefs} object so it's
|
|
2229
|
+
* corresponding {@link d.HostRef} can be retrieved later.
|
|
2230
|
+
*
|
|
2231
|
+
* @param lazyInstance the lazy instance of interest
|
|
2232
|
+
* @param hostRef that instances `HostRef` object
|
|
2233
|
+
* @returns a reference to the host ref WeakMap
|
|
2234
|
+
*/
|
|
2173
2235
|
const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
|
|
2174
|
-
|
|
2236
|
+
/**
|
|
2237
|
+
* Register a host element for a Stencil component, setting up various metadata
|
|
2238
|
+
* and callbacks based on {@link BUILD} flags as well as the component's runtime
|
|
2239
|
+
* metadata.
|
|
2240
|
+
*
|
|
2241
|
+
* @param hostElement the host element to register
|
|
2242
|
+
* @param cmpMeta runtime metadata for that component
|
|
2243
|
+
* @returns a reference to the host ref WeakMap
|
|
2244
|
+
*/
|
|
2245
|
+
const registerHost = (hostElement, cmpMeta) => {
|
|
2175
2246
|
const hostRef = {
|
|
2176
2247
|
$flags$: 0,
|
|
2177
|
-
$hostElement$:
|
|
2248
|
+
$hostElement$: hostElement,
|
|
2178
2249
|
$cmpMeta$: cmpMeta,
|
|
2179
2250
|
$instanceValues$: new Map(),
|
|
2180
2251
|
};
|
|
@@ -2183,11 +2254,11 @@ const registerHost = (elm, cmpMeta) => {
|
|
|
2183
2254
|
}
|
|
2184
2255
|
{
|
|
2185
2256
|
hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
|
|
2186
|
-
|
|
2187
|
-
|
|
2257
|
+
hostElement['s-p'] = [];
|
|
2258
|
+
hostElement['s-rc'] = [];
|
|
2188
2259
|
}
|
|
2189
|
-
addHostEventListeners(
|
|
2190
|
-
return hostRefs.set(
|
|
2260
|
+
addHostEventListeners(hostElement, hostRef, cmpMeta.$listeners$);
|
|
2261
|
+
return hostRefs.set(hostElement, hostRef);
|
|
2191
2262
|
};
|
|
2192
2263
|
const isMemberInElement = (elm, memberName) => memberName in elm;
|
|
2193
2264
|
const consoleError = (e, el) => (0, console.error)(e, el);
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const inheritAttributes = require('./inheritAttributes-845f5217.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* List of available ARIA attributes + `role`.
|
|
7
|
+
* Removed deprecated attributes.
|
|
8
|
+
* https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes
|
|
9
|
+
*/
|
|
10
|
+
const ariaAttributes = [
|
|
11
|
+
'role',
|
|
12
|
+
'aria-activedescendant',
|
|
13
|
+
'aria-atomic',
|
|
14
|
+
'aria-autocomplete',
|
|
15
|
+
'aria-braillelabel',
|
|
16
|
+
'aria-brailleroledescription',
|
|
17
|
+
'aria-busy',
|
|
18
|
+
'aria-checked',
|
|
19
|
+
'aria-colcount',
|
|
20
|
+
'aria-colindex',
|
|
21
|
+
'aria-colindextext',
|
|
22
|
+
'aria-colspan',
|
|
23
|
+
'aria-controls',
|
|
24
|
+
'aria-current',
|
|
25
|
+
'aria-describedby',
|
|
26
|
+
'aria-description',
|
|
27
|
+
'aria-details',
|
|
28
|
+
'aria-disabled',
|
|
29
|
+
'aria-errormessage',
|
|
30
|
+
'aria-expanded',
|
|
31
|
+
'aria-flowto',
|
|
32
|
+
'aria-haspopup',
|
|
33
|
+
'aria-hidden',
|
|
34
|
+
'aria-invalid',
|
|
35
|
+
'aria-keyshortcuts',
|
|
36
|
+
'aria-label',
|
|
37
|
+
'aria-labelledby',
|
|
38
|
+
'aria-level',
|
|
39
|
+
'aria-live',
|
|
40
|
+
'aria-multiline',
|
|
41
|
+
'aria-multiselectable',
|
|
42
|
+
'aria-orientation',
|
|
43
|
+
'aria-owns',
|
|
44
|
+
'aria-placeholder',
|
|
45
|
+
'aria-posinset',
|
|
46
|
+
'aria-pressed',
|
|
47
|
+
'aria-readonly',
|
|
48
|
+
'aria-relevant',
|
|
49
|
+
'aria-required',
|
|
50
|
+
'aria-roledescription',
|
|
51
|
+
'aria-rowcount',
|
|
52
|
+
'aria-rowindex',
|
|
53
|
+
'aria-rowindextext',
|
|
54
|
+
'aria-rowspan',
|
|
55
|
+
'aria-selected',
|
|
56
|
+
'aria-setsize',
|
|
57
|
+
'aria-sort',
|
|
58
|
+
'aria-valuemax',
|
|
59
|
+
'aria-valuemin',
|
|
60
|
+
'aria-valuenow',
|
|
61
|
+
'aria-valuetext',
|
|
62
|
+
];
|
|
63
|
+
/**
|
|
64
|
+
* Returns an array of aria attributes that should be copied from
|
|
65
|
+
* the shadow host element to a target within the light DOM.
|
|
66
|
+
* @param el The element that the attributes should be copied from.
|
|
67
|
+
* @param ignoreList The list of aria-attributes to ignore reflecting and removing from the host.
|
|
68
|
+
* Use this in instances where we manually specify aria attributes on the `<Host>` element.
|
|
69
|
+
*/
|
|
70
|
+
const inheritAriaAttributes = (el, ignoreList) => {
|
|
71
|
+
let attributesToInherit = ariaAttributes;
|
|
72
|
+
if (ignoreList && ignoreList.length > 0) {
|
|
73
|
+
attributesToInherit = attributesToInherit.filter((attr) => !ignoreList.includes(attr));
|
|
74
|
+
}
|
|
75
|
+
return inheritAttributes.inheritAttributes(el, attributesToInherit);
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
exports.inheritAriaAttributes = inheritAriaAttributes;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Elements inside of web components sometimes need to inherit global attributes
|
|
5
|
+
* set on the host. For example, the inner input in `ion-input` should inherit
|
|
6
|
+
* the `title` attribute that developers set directly on `ion-input`. This
|
|
7
|
+
* helper function should be called in componentWillLoad and assigned to a variable
|
|
8
|
+
* that is later used in the render function.
|
|
9
|
+
*
|
|
10
|
+
* This does not need to be reactive as changing attributes on the host element
|
|
11
|
+
* does not trigger a re-render.
|
|
12
|
+
*/
|
|
13
|
+
const inheritAttributes = (el, attributes = []) => {
|
|
14
|
+
const attributeObject = {};
|
|
15
|
+
attributes.forEach((attr) => {
|
|
16
|
+
if (el.hasAttribute(attr)) {
|
|
17
|
+
const value = el.getAttribute(attr);
|
|
18
|
+
if (value !== null) {
|
|
19
|
+
attributeObject[attr] = el.getAttribute(attr);
|
|
20
|
+
}
|
|
21
|
+
el.removeAttribute(attr);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
return attributeObject;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
exports.inheritAttributes = inheritAttributes;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const dfs = require('./dfs-babd18a6.js');
|
|
4
|
+
|
|
5
|
+
// A higher-order function to find the nested child of siblings matching a predicate,
|
|
6
|
+
// based on a sibling traversal function (getNextSibling or getPreviousSibling).
|
|
7
|
+
function getNestedChildOfSiblingsMatching(element, searchPredicate, siblingTraversalFn) {
|
|
8
|
+
// Start with the sibling of the provided element.
|
|
9
|
+
let sibling = siblingTraversalFn(element);
|
|
10
|
+
// Iterate through the siblings until there are no more siblings.
|
|
11
|
+
while (sibling) {
|
|
12
|
+
// Use the dfs helper function to find the deeply nested child
|
|
13
|
+
// that matches the given criteria within the current sibling.
|
|
14
|
+
const nestedChild = dfs.dfs(sibling, searchPredicate);
|
|
15
|
+
// If a matching deeply nested child is found, return it.
|
|
16
|
+
if (nestedChild) {
|
|
17
|
+
return nestedChild;
|
|
18
|
+
}
|
|
19
|
+
// Move on to the next sibling.
|
|
20
|
+
sibling = siblingTraversalFn(sibling);
|
|
21
|
+
}
|
|
22
|
+
// If no matching deeply nested child is found, return null.
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const getPreviousSibling = (element) => element.previousElementSibling;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Searches for a previous sibling element that has a nested child element matching the provided search predicate.
|
|
30
|
+
* The search starts from the given element and proceeds to its previous siblings, diving deep into each sibling's descendants.
|
|
31
|
+
*
|
|
32
|
+
* @param {HTMLElement} element - The starting element to begin the search from.
|
|
33
|
+
* @param {(el: HTMLElement) => boolean} searchPredicate - A predicate function that checks if an element matches the desired condition.
|
|
34
|
+
* @returns {HTMLElement | null} - The matching nested child element, or null if no matching element is found.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* // HTML structure:
|
|
38
|
+
* // <div>
|
|
39
|
+
* // <h1>Heading 1</h1>
|
|
40
|
+
* // <ul role="list">
|
|
41
|
+
* // <li>Item 1</li>
|
|
42
|
+
* // </ul>
|
|
43
|
+
* // </div>
|
|
44
|
+
* // <div>
|
|
45
|
+
* // <h2>Heading 2</h2>
|
|
46
|
+
* // <ul role="list">
|
|
47
|
+
* // <li>Item 2</li>
|
|
48
|
+
* // </ul>
|
|
49
|
+
* // </div>
|
|
50
|
+
*
|
|
51
|
+
* const searchPredicate = (el) => el.tagName.toLowerCase() === 'h2';
|
|
52
|
+
* const startingElement = document.querySelector('[role="list"]');
|
|
53
|
+
* const headingEl = getPreviousNestedChildOfSiblingsMatching(startingElement, searchPredicate);
|
|
54
|
+
* console.log(headingEl); // Logs the <h2>Heading 2</h2> element
|
|
55
|
+
*/
|
|
56
|
+
const getPreviousNestedChildOfSiblingsMatching = (element, searchPredicate) => getNestedChildOfSiblingsMatching(element, searchPredicate, getPreviousSibling);
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Checks if the given element is a heading element (h1-h6) or has a role of "heading".
|
|
60
|
+
*
|
|
61
|
+
* @param {HTMLElement} el - The element to check.
|
|
62
|
+
* @returns {boolean} - True if the element is a heading element, false otherwise.
|
|
63
|
+
*/
|
|
64
|
+
const isHeadingElement = (el) => {
|
|
65
|
+
const tagName = el.tagName.toLowerCase();
|
|
66
|
+
const role = el.getAttribute('role');
|
|
67
|
+
return ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tagName) || role === 'heading';
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
exports.getPreviousNestedChildOfSiblingsMatching = getPreviousNestedChildOfSiblingsMatching;
|
|
71
|
+
exports.isHeadingElement = isHeadingElement;
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-f21bdb5d.js');
|
|
6
6
|
|
|
7
7
|
const defineCustomElements = (win, options) => {
|
|
8
8
|
if (typeof window === 'undefined') return undefined;
|
|
9
|
-
return index.bootstrapLazy(JSON.parse("[[\"tds-header-launcher.cjs\",[[1,\"tds-header-launcher\",{\"open\":[32],\"buttonEl\":[32],\"hasListTypeMenu\":[32]},[[8,\"click\",\"onAnyClick\"]]]]],[\"tds-header-dropdown.cjs\",[[1,\"tds-header-dropdown\",{\"label\":[1],\"noDropdownIcon\":[4,\"no-dropdown-icon\"],\"selected\":[4],\"open\":[32],\"buttonEl\":[32]},[[4,\"click\",\"onAnyClick\"]]]]],[\"tds-header-hamburger.cjs\",[[1,\"tds-header-hamburger\"]]],[\"tds-dropdown-option.cjs\",[[17,\"tds-dropdown-option\",{\"value\":[1],\"disabled\":[4],\"selected\":[32],\"multiselect\":[32],\"size\":[32],\"setSelected\":[64]}]]],[\"tds-header-brand-symbol.cjs\",[[1,\"tds-header-brand-symbol\"]]],[\"tds-side-menu-dropdown.cjs\",[[1,\"tds-side-menu-dropdown\",{\"defaultOpen\":[4,\"default-open\"],\"buttonLabel\":[1,\"button-label\"],\"selected\":[4],\"open\":[32],\"hoverState\":[32],\"collapsed\":[32]},[[16,\"internalTdsSideMenuPropChange\",\"collapsedSideMenuEventHandler\"],[1,\"pointerenter\",\"onEventPointerEnter\"],[0,\"focusin\",\"onEventFocus\"],[1,\"pointerleave\",\"onEventPointerLeave\"],[0,\"focusout\",\"onEventBlur\"]]]]],[\"tds-side-menu-user.cjs\",[[1,\"tds-side-menu-user\",{\"heading\":[1],\"subheading\":[1],\"imgSrc\":[1,\"img-src\"],\"imgAlt\":[1,\"img-alt\"]}]]],[\"tds-accordion-item.cjs\",[[1,\"tds-accordion-item\",{\"header\":[1],\"expandIconPosition\":[1,\"expand-icon-position\"],\"disabled\":[4],\"expanded\":[4],\"paddingReset\":[4,\"padding-reset\"],\"toggleAccordionItem\":[64]}]]],[\"tds-banner.cjs\",[[1,\"tds-banner\",{\"icon\":[1],\"header\":[1],\"subheader\":[1],\"variant\":[1],\"bannerId\":[1,\"banner-id\"],\"hidden\":[516],\"hideBanner\":[64],\"showBanner\":[64]}]]],[\"tds-card.cjs\",[[1,\"tds-card\",{\"modeVariant\":[1,\"mode-variant\"],\"imagePlacement\":[1,\"image-placement\"],\"header\":[1],\"subheader\":[1],\"bodyImg\":[1,\"body-img\"],\"bodyImgAlt\":[1,\"body-img-alt\"],\"bodyDivider\":[4,\"body-divider\"],\"clickable\":[4],\"cardId\":[1,\"card-id\"]}]]],[\"tds-datetime.cjs\",[[2,\"tds-datetime\",{\"type\":[513],\"value\":[513],\"min\":[1],\"max\":[1],\"defaultValue\":[1,\"default-value\"],\"disabled\":[4],\"size\":[1],\"noMinWidth\":[4,\"no-min-width\"],\"modeVariant\":[1,\"mode-variant\"],\"name\":[1],\"state\":[1],\"autofocus\":[4],\"label\":[1],\"helper\":[1],\"focusInput\":[32]},[[0,\"focus\",\"handleFocusIn\"],[0,\"focusout\",\"handleFocusOut\"]]]]],[\"tds-dropdown.cjs\",[[1,\"tds-dropdown\",{\"name\":[1],\"disabled\":[4],\"helper\":[1],\"label\":[1],\"labelPosition\":[1,\"label-position\"],\"modeVariant\":[1,\"mode-variant\"],\"openDirection\":[1,\"open-direction\"],\"placeholder\":[1],\"size\":[1],\"error\":[4],\"multiselect\":[4],\"filter\":[4],\"noResultText\":[1,\"no-result-text\"],\"defaultValue\":[1,\"default-value\"],\"open\":[32],\"selection\":[32],\"filterResult\":[32],\"filterFocus\":[32],\"reset\":[64],\"setValue\":[64],\"removeValue\":[64],\"close\":[64]},[[9,\"mousedown\",\"onAnyClick\"],[0,\"keydown\",\"onKeyDown\"]]]]],[\"tds-folder-tabs.cjs\",[[1,\"tds-folder-tabs\",{\"modeVariant\":[1,\"mode-variant\"],\"defaultSelectedIndex\":[2,\"default-selected-index\"],\"selectedIndex\":[514,\"selected-index\"],\"buttonWidth\":[32],\"showLeftScroll\":[32],\"showRightScroll\":[32],\"selectTab\":[64]}]]],[\"tds-footer-group.cjs\",[[1,\"tds-footer-group\",{\"titleText\":[1,\"title-text\"],\"open\":[32]}]]],[\"tds-header-launcher-list.cjs\",[[4,\"tds-header-launcher-list\"]]],[\"tds-header-launcher-list-item.cjs\",[[1,\"tds-header-launcher-list-item\"]]],[\"tds-inline-tabs.cjs\",[[1,\"tds-inline-tabs\",{\"modeVariant\":[1,\"mode-variant\"],\"defaultSelectedIndex\":[2,\"default-selected-index\"],\"selectedIndex\":[514,\"selected-index\"],\"showLeftScroll\":[32],\"showRightScroll\":[32],\"buttonWidth\":[32],\"selectTab\":[64]}]]],[\"tds-message.cjs\",[[1,\"tds-message\",{\"header\":[1],\"modeVariant\":[1,\"mode-variant\"],\"variant\":[1],\"noIcon\":[4,\"no-icon\"],\"minimal\":[4]}]]],[\"tds-modal.cjs\",[[1,\"tds-modal\",{\"header\":[1],\"prevent\":[4],\"size\":[1],\"actionsPosition\":[1,\"actions-position\"],\"selector\":[1],\"referenceEl\":[16],\"show\":[4],\"isShown\":[32],\"showModal\":[64],\"closeModal\":[64]}]]],[\"tds-navigation-tabs.cjs\",[[1,\"tds-navigation-tabs\",{\"modeVariant\":[1,\"mode-variant\"],\"defaultSelectedIndex\":[2,\"default-selected-index\"],\"selectedIndex\":[514,\"selected-index\"],\"showLeftScroll\":[32],\"showRightScroll\":[32],\"selectTab\":[64]}]]],[\"tds-popover-menu.cjs\",[[6,\"tds-popover-menu\",{\"selector\":[1],\"referenceEl\":[16],\"show\":[4],\"placement\":[1],\"offsetSkidding\":[2,\"offset-skidding\"],\"offsetDistance\":[2,\"offset-distance\"],\"fluidWidth\":[4,\"fluid-width\"]}]]],[\"tds-side-menu-close-button.cjs\",[[1,\"tds-side-menu-close-button\"]]],[\"tds-side-menu-collapse-button.cjs\",[[1,\"tds-side-menu-collapse-button\",{\"collapsed\":[32]},[[16,\"internalTdsSideMenuPropChange\",\"collapseSideMenuEventHandler\"]]]]],[\"tds-slider.cjs\",[[0,\"tds-slider\",{\"label\":[1],\"value\":[1],\"min\":[1],\"max\":[1],\"ticks\":[1],\"showTickNumbers\":[4,\"show-tick-numbers\"],\"tooltip\":[4],\"disabled\":[4],\"readOnly\":[4,\"read-only\"],\"controls\":[4],\"input\":[4],\"step\":[1],\"name\":[1],\"thumbSize\":[1,\"thumb-size\"],\"snap\":[4],\"sliderId\":[1,\"slider-id\"],\"reset\":[64]},[[0,\"keydown\",\"handleKeydown\"],[9,\"mouseup\",\"handleMouseUp\"],[9,\"touchend\",\"handleTouchEnd\"],[9,\"mousemove\",\"handleMouseMove\"],[9,\"touchmove\",\"handleTouchMove\"]]]]],[\"tds-step.cjs\",[[1,\"tds-step\",{\"index\":[1],\"state\":[1],\"hideLabel\":[32],\"size\":[32],\"orientation\":[32],\"labelPosition\":[32]},[[16,\"internalTdsPropsChange\",\"handlePropsChange\"]]]]],[\"tds-table-body-row.cjs\",[[1,\"tds-table-body-row\",{\"selected\":[516],\"multiselect\":[32],\"mainCheckBoxStatus\":[32],\"verticalDividers\":[32],\"compactDesign\":[32],\"noMinWidth\":[32],\"tableId\":[32]},[[16,\"internalTdsTablePropChange\",\"internalTdsPropChangeListener\"]]]]],[\"tds-table-footer.cjs\",[[1,\"tds-table-footer\",{\"pagination\":[516],\"paginationValue\":[1538,\"pagination-value\"],\"pages\":[514],\"cols\":[2],\"columnsNumber\":[32],\"compactDesign\":[32],\"lastCorrectValue\":[32],\"tableId\":[32]},[[16,\"internalTdsTablePropChange\",\"internalTdsPropChangeListener\"]]]]],[\"tds-table-header.cjs\",[[1,\"tds-table-header\",{\"allSelected\":[1540,\"all-selected\"],\"multiselect\":[32],\"expandableRows\":[32],\"mainCheckboxSelected\":[32],\"mainExpendSelected\":[32],\"verticalDividers\":[32],\"compactDesign\":[32],\"noMinWidth\":[32],\"whiteBackground\":[32],\"enableToolbarDesign\":[32],\"tableId\":[32]},[[16,\"internalTdsTablePropChange\",\"internalTdsPropChangeListener\"],[16,\"internalTdsRowExpanded\",\"internalTdsRowExpandedListener\"]]]]],[\"tds-table-toolbar.cjs\",[[1,\"tds-table-toolbar\",{\"tableTitle\":[513,\"table-title\"],\"filter\":[516],\"verticalDividers\":[32],\"compactDesign\":[32],\"noMinWidth\":[32],\"whiteBackground\":[32],\"tableId\":[32]},[[16,\"internalTdsTablePropChange\",\"internalTdsPropChangeListener\"]]]]],[\"tds-text-field.cjs\",[[6,\"tds-text-field\",{\"type\":[513],\"labelPosition\":[1,\"label-position\"],\"label\":[1],\"helper\":[1],\"placeholder\":[1],\"value\":[513],\"disabled\":[4],\"readOnly\":[4,\"read-only\"],\"size\":[1],\"modeVariant\":[1,\"mode-variant\"],\"noMinWidth\":[4,\"no-min-width\"],\"name\":[1],\"state\":[1],\"maxLength\":[2,\"max-length\"],\"autofocus\":[4],\"focusInput\":[32]}]]],[\"tds-textarea.cjs\",[[2,\"tds-textarea\",{\"label\":[1],\"name\":[1],\"helper\":[1],\"cols\":[2],\"rows\":[2],\"labelPosition\":[1,\"label-position\"],\"placeholder\":[1],\"value\":[1],\"disabled\":[4],\"readOnly\":[4,\"read-only\"],\"state\":[1],\"maxLength\":[2,\"max-length\"],\"modeVariant\":[1,\"mode-variant\"],\"autofocus\":[4],\"noMinWidth\":[4,\"no-min-width\"],\"focusInput\":[32]}]]],[\"tds-toast.cjs\",[[1,\"tds-toast\",{\"toastId\":[1,\"toast-id\"],\"header\":[1],\"subheader\":[1],\"variant\":[1],\"hidden\":[516],\"toastRole\":[1,\"toast-role\"],\"hideToast\":[64],\"showToast\":[64]}]]],[\"tds-tooltip.cjs\",[[6,\"tds-tooltip\",{\"text\":[1],\"selector\":[1],\"referenceEl\":[16],\"mouseOverTooltip\":[4,\"mouse-over-tooltip\"],\"show\":[1028],\"placement\":[1]}]]],[\"tds-accordion.cjs\",[[1,\"tds-accordion\",{\"modeVariant\":[1,\"mode-variant\"]}]]],[\"tds-badge.cjs\",[[1,\"tds-badge\",{\"value\":[1],\"hidden\":[516],\"size\":[1],\"shape\":[32],\"text\":[32]}]]],[\"tds-block.cjs\",[[1,\"tds-block\",{\"modeVariant\":[1,\"mode-variant\"]}]]],[\"tds-body-cell.cjs\",[[1,\"tds-body-cell\",{\"cellValue\":[520,\"cell-value\"],\"cellKey\":[520,\"cell-key\"],\"disablePadding\":[516,\"disable-padding\"],\"textAlignState\":[32],\"activeSorting\":[32],\"verticalDividers\":[32],\"compactDesign\":[32],\"noMinWidth\":[32],\"whiteBackground\":[32],\"tableId\":[32]},[[16,\"internalTdsPropChange\",\"internalTdsPropChangeListener\"],[16,\"internalTdsHover\",\"internalTdsHoverListener\"],[16,\"internalTdsTextAlign\",\"internalTdsTextAlignListener\"]]]]],[\"tds-breadcrumb.cjs\",[[1,\"tds-breadcrumb\",{\"current\":[4]}]]],[\"tds-breadcrumbs.cjs\",[[1,\"tds-breadcrumbs\"]]],[\"tds-button.cjs\",[[6,\"tds-button\",{\"text\":[1],\"type\":[1],\"variant\":[1],\"size\":[1],\"disabled\":[4],\"fullbleed\":[4],\"modeVariant\":[1,\"mode-variant\"],\"onlyIcon\":[32]}]]],[\"tds-chip.cjs\",[[6,\"tds-chip\",{\"type\":[1],\"size\":[1],\"chipId\":[1,\"chip-id\"],\"checked\":[516],\"name\":[1],\"value\":[1]}]]],[\"tds-folder-tab.cjs\",[[1,\"tds-folder-tab\",{\"disabled\":[4],\"selected\":[32],\"tabWidth\":[32],\"setTabWidth\":[64],\"setSelected\":[64]}]]],[\"tds-footer.cjs\",[[1,\"tds-footer\",{\"modeVariant\":[1,\"mode-variant\"]}]]],[\"tds-footer-item.cjs\",[[1,\"tds-footer-item\"]]],[\"tds-header.cjs\",[[4,\"tds-header\"]]],[\"tds-header-cell.cjs\",[[1,\"tds-header-cell\",{\"cellKey\":[513,\"cell-key\"],\"cellValue\":[513,\"cell-value\"],\"customWidth\":[513,\"custom-width\"],\"sortable\":[4],\"textAlign\":[513,\"text-align\"],\"textAlignState\":[32],\"sortingDirection\":[32],\"sortedByMyKey\":[32],\"verticalDividers\":[32],\"compactDesign\":[32],\"noMinWidth\":[32],\"multiselect\":[32],\"enableToolbarDesign\":[32],\"tableId\":[32],\"expandableRows\":[32]},[[16,\"internalTdsPropChange\",\"internalTdsPropChangeListener\"],[16,\"internalSortButtonClicked\",\"updateOptionsContent\"]]]]],[\"tds-header-dropdown-list-user.cjs\",[[1,\"tds-header-dropdown-list-user\",{\"imgUrl\":[1,\"img-url\"],\"imgAlt\":[1,\"img-alt\"],\"header\":[1],\"subheader\":[1]}]]],[\"tds-header-launcher-grid.cjs\",[[4,\"tds-header-launcher-grid\",{\"headingElement\":[32]}]]],[\"tds-header-launcher-grid-item.cjs\",[[1,\"tds-header-launcher-grid-item\"]]],[\"tds-header-launcher-grid-title.cjs\",[[4,\"tds-header-launcher-grid-title\"]]],[\"tds-header-launcher-list-title.cjs\",[[4,\"tds-header-launcher-list-title\"]]],[\"tds-header-title.cjs\",[[1,\"tds-header-title\"]]],[\"tds-inline-tab.cjs\",[[1,\"tds-inline-tab\",{\"disabled\":[4],\"selected\":[32],\"setSelected\":[64]}]]],[\"tds-link.cjs\",[[1,\"tds-link\",{\"disabled\":[4],\"underline\":[4]}]]],[\"tds-navigation-tab.cjs\",[[1,\"tds-navigation-tab\",{\"disabled\":[4],\"selected\":[32],\"setSelected\":[64]}]]],[\"tds-popover-menu-item.cjs\",[[1,\"tds-popover-menu-item\",{\"disabled\":[4]}]]],[\"tds-radio-button.cjs\",[[6,\"tds-radio-button\",{\"name\":[1],\"value\":[1],\"radioId\":[1,\"radio-id\"],\"checked\":[516],\"required\":[4],\"disabled\":[4]}]]],[\"tds-side-menu.cjs\",[[1,\"tds-side-menu\",{\"open\":[4],\"persistent\":[4],\"collapsed\":[4],\"isUpperSlotEmpty\":[32],\"isCollapsed\":[32]},[[16,\"internalTdsCollapse\",\"collapsedSideMenuEventHandler\"]]]]],[\"tds-side-menu-dropdown-list.cjs\",[[1,\"tds-side-menu-dropdown-list\",{\"collapsed\":[32]},[[16,\"internalTdsSideMenuPropChange\",\"collapsedSideMenuEventHandler\"]]]]],[\"tds-side-menu-dropdown-list-item.cjs\",[[1,\"tds-side-menu-dropdown-list-item\",{\"selected\":[4],\"dropdownHasIcon\":[32],\"collapsed\":[32]},[[16,\"internalTdsSideMenuPropChange\",\"collapseSideMenuEventHandler\"]]]]],[\"tds-side-menu-overlay.cjs\",[[1,\"tds-side-menu-overlay\"]]],[\"tds-spinner.cjs\",[[0,\"tds-spinner\",{\"size\":[1],\"variant\":[1]}]]],[\"tds-stepper.cjs\",[[1,\"tds-stepper\",{\"orientation\":[1],\"labelPosition\":[1,\"label-position\"],\"size\":[1],\"hideLabels\":[4,\"hide-labels\"],\"stepperId\":[1,\"stepper-id\"]}]]],[\"tds-table.cjs\",[[1,\"tds-table\",{\"verticalDividers\":[516,\"vertical-dividers\"],\"compactDesign\":[516,\"compact-design\"],\"noMinWidth\":[516,\"no-min-width\"],\"multiselect\":[516],\"expandableRows\":[516,\"expandable-rows\"],\"responsive\":[516],\"modeVariant\":[513,\"mode-variant\"],\"tableId\":[1,\"table-id\"],\"getSelectedRows\":[64]}]]],[\"tds-table-body.cjs\",[[4,\"tds-table-body\",{\"multiselect\":[32],\"enablePaginationTableBody\":[32],\"expandableRows\":[32],\"multiselectArray\":[32],\"multiselectArrayJSON\":[32],\"mainCheckboxStatus\":[32],\"columnsNumber\":[32],\"tableId\":[32]},[[16,\"internalTdsTablePropChange\",\"internalTdsPropChangeListener\"],[16,\"internalTdsRowChange\",\"bodyCheckboxListener\"]]]]],[\"tds-table-body-row-expandable.cjs\",[[1,\"tds-table-body-row-expandable\",{\"colSpan\":[2,\"col-span\"],\"isExpanded\":[32],\"tableId\":[32],\"columnsNumber\":[32],\"verticalDividers\":[32],\"compactDesign\":[32],\"noMinWidth\":[32],\"modeVariant\":[32]},[[16,\"internalTdsTablePropChange\",\"internalTdsPropChangeListener\"]]]]],[\"tds-toggle.cjs\",[[6,\"tds-toggle\",{\"checked\":[516],\"required\":[4],\"size\":[1],\"name\":[1],\"headline\":[1],\"disabled\":[4],\"toggleId\":[1,\"toggle-id\"],\"toggle\":[64]}]]],[\"tds-header-launcher-button.cjs\",[[1,\"tds-header-launcher-button\",{\"active\":[4]}]]],[\"tds-divider.cjs\",[[1,\"tds-divider\",{\"orientation\":[1]}]]],[\"tds-header-dropdown-list.cjs\",[[1,\"tds-header-dropdown-list\",{\"size\":[513],\"headingElement\":[32]}]]],[\"tds-header-dropdown-list-item.cjs\",[[1,\"tds-header-dropdown-list-item\",{\"selected\":[4],\"size\":[513]}]]],[\"tds-popover-canvas.cjs\",[[6,\"tds-popover-canvas\",{\"selector\":[1],\"referenceEl\":[16],\"show\":[4],\"placement\":[1],\"offsetSkidding\":[2,\"offset-skidding\"],\"offsetDistance\":[2,\"offset-distance\"],\"modifiers\":[16]}]]],[\"tds-side-menu-user-image_2.cjs\",[[1,\"tds-side-menu-user-image\",{\"src\":[1],\"alt\":[1]}],[1,\"tds-side-menu-user-label\",{\"heading\":[1],\"subheading\":[1]}]]],[\"tds-side-menu-item.cjs\",[[1,\"tds-side-menu-item\",{\"selected\":[4],\"active\":[4],\"collapsed\":[32]},[[16,\"internalTdsSideMenuPropChange\",\"collapseSideMenuEventHandler\"]]]]],[\"tds-checkbox.cjs\",[[6,\"tds-checkbox\",{\"name\":[1],\"checkboxId\":[1,\"checkbox-id\"],\"disabled\":[4],\"required\":[4],\"checked\":[516],\"value\":[1],\"toggleCheckbox\":[64]}]]],[\"tds-popover-core.cjs\",[[6,\"tds-popover-core\",{\"selector\":[1],\"referenceEl\":[16],\"show\":[4],\"placement\":[1],\"offsetSkidding\":[2,\"offset-skidding\"],\"offsetDistance\":[2,\"offset-distance\"],\"modifiers\":[16],\"trigger\":[1],\"autoHide\":[4,\"auto-hide\"],\"renderedShowValue\":[32],\"popperInstance\":[32],\"target\":[32],\"isShown\":[32]},[[8,\"click\",\"onAnyClick\"]]]]],[\"tds-core-header-item_2.cjs\",[[1,\"tds-header-item\",{\"active\":[4],\"selected\":[4]}],[1,\"tds-core-header-item\"]]],[\"tds-icon.cjs\",[[1,\"tds-icon\",{\"name\":[513],\"size\":[513],\"icons_object\":[32],\"arrayOfIcons\":[32]}]]]]"), options);
|
|
9
|
+
return index.bootstrapLazy(JSON.parse("[[\"tds-header-launcher.cjs\",[[1,\"tds-header-launcher\",{\"open\":[32],\"buttonEl\":[32],\"hasListTypeMenu\":[32]},[[8,\"click\",\"onAnyClick\"]]]]],[\"tds-header-dropdown.cjs\",[[1,\"tds-header-dropdown\",{\"label\":[1],\"noDropdownIcon\":[4,\"no-dropdown-icon\"],\"selected\":[4],\"open\":[32],\"buttonEl\":[32]},[[4,\"click\",\"onAnyClick\"]]]]],[\"tds-header-hamburger.cjs\",[[1,\"tds-header-hamburger\"]]],[\"tds-dropdown-option.cjs\",[[17,\"tds-dropdown-option\",{\"value\":[1],\"disabled\":[4],\"selected\":[32],\"multiselect\":[32],\"size\":[32],\"setSelected\":[64]}]]],[\"tds-header-brand-symbol.cjs\",[[1,\"tds-header-brand-symbol\"]]],[\"tds-side-menu-dropdown.cjs\",[[1,\"tds-side-menu-dropdown\",{\"defaultOpen\":[4,\"default-open\"],\"buttonLabel\":[1,\"button-label\"],\"selected\":[4],\"open\":[32],\"hoverState\":[32],\"collapsed\":[32]},[[16,\"internalTdsSideMenuPropChange\",\"collapsedSideMenuEventHandler\"],[1,\"pointerenter\",\"onEventPointerEnter\"],[0,\"focusin\",\"onEventFocus\"],[1,\"pointerleave\",\"onEventPointerLeave\"],[0,\"focusout\",\"onEventBlur\"]]]]],[\"tds-side-menu-user.cjs\",[[1,\"tds-side-menu-user\",{\"heading\":[1],\"subheading\":[1],\"imgSrc\":[1,\"img-src\"],\"imgAlt\":[1,\"img-alt\"]}]]],[\"tds-accordion-item.cjs\",[[1,\"tds-accordion-item\",{\"header\":[1],\"expandIconPosition\":[1,\"expand-icon-position\"],\"disabled\":[4],\"expanded\":[4],\"paddingReset\":[4,\"padding-reset\"],\"toggleAccordionItem\":[64]}]]],[\"tds-banner.cjs\",[[1,\"tds-banner\",{\"icon\":[1],\"header\":[1],\"subheader\":[1],\"variant\":[1],\"bannerId\":[1,\"banner-id\"],\"hidden\":[516],\"hideBanner\":[64],\"showBanner\":[64]}]]],[\"tds-card.cjs\",[[1,\"tds-card\",{\"modeVariant\":[1,\"mode-variant\"],\"imagePlacement\":[1,\"image-placement\"],\"header\":[1],\"subheader\":[1],\"bodyImg\":[1,\"body-img\"],\"bodyImgAlt\":[1,\"body-img-alt\"],\"bodyDivider\":[4,\"body-divider\"],\"clickable\":[4],\"cardId\":[1,\"card-id\"]}]]],[\"tds-datetime.cjs\",[[2,\"tds-datetime\",{\"type\":[513],\"value\":[513],\"min\":[1],\"max\":[1],\"defaultValue\":[1,\"default-value\"],\"disabled\":[4],\"size\":[1],\"noMinWidth\":[4,\"no-min-width\"],\"modeVariant\":[1,\"mode-variant\"],\"name\":[1],\"state\":[1],\"autofocus\":[4],\"label\":[1],\"helper\":[1],\"focusInput\":[32]},[[0,\"focus\",\"handleFocusIn\"],[0,\"focusout\",\"handleFocusOut\"]]]]],[\"tds-dropdown.cjs\",[[1,\"tds-dropdown\",{\"name\":[1],\"disabled\":[4],\"helper\":[1],\"label\":[1],\"labelPosition\":[1,\"label-position\"],\"modeVariant\":[1,\"mode-variant\"],\"openDirection\":[1,\"open-direction\"],\"placeholder\":[1],\"size\":[1],\"error\":[4],\"multiselect\":[4],\"filter\":[4],\"noResultText\":[1,\"no-result-text\"],\"defaultValue\":[1,\"default-value\"],\"open\":[32],\"value\":[32],\"filterResult\":[32],\"filterFocus\":[32],\"reset\":[64],\"setValue\":[64],\"appendValue\":[64],\"removeValue\":[64],\"close\":[64]},[[9,\"mousedown\",\"onAnyClick\"],[0,\"keydown\",\"onKeyDown\"]],{\"open\":[\"handleOpenState\"]}]]],[\"tds-folder-tabs.cjs\",[[1,\"tds-folder-tabs\",{\"modeVariant\":[1,\"mode-variant\"],\"defaultSelectedIndex\":[2,\"default-selected-index\"],\"selectedIndex\":[514,\"selected-index\"],\"buttonWidth\":[32],\"showLeftScroll\":[32],\"showRightScroll\":[32],\"selectTab\":[64]},null,{\"selectedIndex\":[\"handleSelectedIndexUpdate\"]}]]],[\"tds-footer-group.cjs\",[[1,\"tds-footer-group\",{\"titleText\":[1,\"title-text\"],\"open\":[32]}]]],[\"tds-header-launcher-list.cjs\",[[4,\"tds-header-launcher-list\"]]],[\"tds-header-launcher-list-item.cjs\",[[1,\"tds-header-launcher-list-item\"]]],[\"tds-inline-tabs.cjs\",[[1,\"tds-inline-tabs\",{\"modeVariant\":[1,\"mode-variant\"],\"defaultSelectedIndex\":[2,\"default-selected-index\"],\"selectedIndex\":[514,\"selected-index\"],\"showLeftScroll\":[32],\"showRightScroll\":[32],\"buttonWidth\":[32],\"selectTab\":[64]},null,{\"selectedIndex\":[\"handleSelectedIndexUpdate\"]}]]],[\"tds-message.cjs\",[[1,\"tds-message\",{\"header\":[1],\"modeVariant\":[1,\"mode-variant\"],\"variant\":[1],\"noIcon\":[4,\"no-icon\"],\"minimal\":[4]}]]],[\"tds-modal.cjs\",[[1,\"tds-modal\",{\"header\":[1],\"prevent\":[4],\"size\":[1],\"actionsPosition\":[1,\"actions-position\"],\"selector\":[1],\"referenceEl\":[16],\"show\":[4],\"isShown\":[32],\"showModal\":[64],\"closeModal\":[64]}]]],[\"tds-navigation-tabs.cjs\",[[1,\"tds-navigation-tabs\",{\"modeVariant\":[1,\"mode-variant\"],\"defaultSelectedIndex\":[2,\"default-selected-index\"],\"selectedIndex\":[514,\"selected-index\"],\"showLeftScroll\":[32],\"showRightScroll\":[32],\"selectTab\":[64]},null,{\"selectedIndex\":[\"handleSelectedIndexUpdate\"]}]]],[\"tds-popover-menu.cjs\",[[6,\"tds-popover-menu\",{\"selector\":[1],\"referenceEl\":[16],\"show\":[4],\"placement\":[1],\"offsetSkidding\":[2,\"offset-skidding\"],\"offsetDistance\":[2,\"offset-distance\"],\"fluidWidth\":[4,\"fluid-width\"]}]]],[\"tds-side-menu-close-button.cjs\",[[1,\"tds-side-menu-close-button\"]]],[\"tds-side-menu-collapse-button.cjs\",[[1,\"tds-side-menu-collapse-button\",{\"collapsed\":[32]},[[16,\"internalTdsSideMenuPropChange\",\"collapseSideMenuEventHandler\"]]]]],[\"tds-slider.cjs\",[[0,\"tds-slider\",{\"label\":[1],\"value\":[1],\"min\":[1],\"max\":[1],\"ticks\":[1],\"showTickNumbers\":[4,\"show-tick-numbers\"],\"tooltip\":[4],\"disabled\":[4],\"readOnly\":[4,\"read-only\"],\"controls\":[4],\"input\":[4],\"step\":[1],\"name\":[1],\"thumbSize\":[1,\"thumb-size\"],\"snap\":[4],\"sliderId\":[1,\"slider-id\"],\"reset\":[64]},[[0,\"keydown\",\"handleKeydown\"],[9,\"mouseup\",\"handleMouseUp\"],[9,\"touchend\",\"handleTouchEnd\"],[9,\"mousemove\",\"handleMouseMove\"],[9,\"touchmove\",\"handleTouchMove\"]],{\"value\":[\"handleValueUpdate\"]}]]],[\"tds-step.cjs\",[[1,\"tds-step\",{\"index\":[1],\"state\":[1],\"hideLabel\":[32],\"size\":[32],\"orientation\":[32],\"labelPosition\":[32]},[[16,\"internalTdsPropsChange\",\"handlePropsChange\"]]]]],[\"tds-table-body-row.cjs\",[[1,\"tds-table-body-row\",{\"selected\":[516],\"multiselect\":[32],\"mainCheckBoxStatus\":[32],\"verticalDividers\":[32],\"compactDesign\":[32],\"noMinWidth\":[32],\"tableId\":[32]},[[16,\"internalTdsTablePropChange\",\"internalTdsPropChangeListener\"]]]]],[\"tds-table-footer.cjs\",[[1,\"tds-table-footer\",{\"pagination\":[516],\"paginationValue\":[1538,\"pagination-value\"],\"pages\":[514],\"cols\":[2],\"columnsNumber\":[32],\"compactDesign\":[32],\"lastCorrectValue\":[32],\"tableId\":[32]},[[16,\"internalTdsTablePropChange\",\"internalTdsPropChangeListener\"]]]]],[\"tds-table-header.cjs\",[[1,\"tds-table-header\",{\"allSelected\":[1540,\"all-selected\"],\"multiselect\":[32],\"expandableRows\":[32],\"mainCheckboxSelected\":[32],\"mainExpendSelected\":[32],\"verticalDividers\":[32],\"compactDesign\":[32],\"noMinWidth\":[32],\"whiteBackground\":[32],\"enableToolbarDesign\":[32],\"tableId\":[32]},[[16,\"internalTdsTablePropChange\",\"internalTdsPropChangeListener\"],[16,\"internalTdsRowExpanded\",\"internalTdsRowExpandedListener\"]]]]],[\"tds-table-toolbar.cjs\",[[1,\"tds-table-toolbar\",{\"tableTitle\":[513,\"table-title\"],\"filter\":[516],\"verticalDividers\":[32],\"compactDesign\":[32],\"noMinWidth\":[32],\"whiteBackground\":[32],\"tableId\":[32]},[[16,\"internalTdsTablePropChange\",\"internalTdsPropChangeListener\"]]]]],[\"tds-text-field.cjs\",[[6,\"tds-text-field\",{\"type\":[513],\"labelPosition\":[1,\"label-position\"],\"label\":[1],\"helper\":[1],\"placeholder\":[1],\"value\":[513],\"disabled\":[4],\"readOnly\":[4,\"read-only\"],\"size\":[1],\"modeVariant\":[1,\"mode-variant\"],\"noMinWidth\":[4,\"no-min-width\"],\"name\":[1],\"state\":[1],\"maxLength\":[2,\"max-length\"],\"autofocus\":[4],\"focusInput\":[32]}]]],[\"tds-textarea.cjs\",[[2,\"tds-textarea\",{\"label\":[1],\"name\":[1],\"helper\":[1],\"cols\":[2],\"rows\":[2],\"labelPosition\":[1,\"label-position\"],\"placeholder\":[1],\"value\":[1],\"disabled\":[4],\"readOnly\":[4,\"read-only\"],\"state\":[1],\"maxLength\":[2,\"max-length\"],\"modeVariant\":[1,\"mode-variant\"],\"autofocus\":[4],\"noMinWidth\":[4,\"no-min-width\"],\"focusInput\":[32]}]]],[\"tds-toast.cjs\",[[1,\"tds-toast\",{\"toastId\":[1,\"toast-id\"],\"header\":[1],\"subheader\":[1],\"variant\":[1],\"hidden\":[516],\"toastRole\":[1,\"toast-role\"],\"hideToast\":[64],\"showToast\":[64]}]]],[\"tds-tooltip.cjs\",[[6,\"tds-tooltip\",{\"text\":[1],\"selector\":[1],\"referenceEl\":[16],\"mouseOverTooltip\":[4,\"mouse-over-tooltip\"],\"show\":[1028],\"placement\":[1]}]]],[\"tds-accordion.cjs\",[[1,\"tds-accordion\",{\"modeVariant\":[1,\"mode-variant\"]}]]],[\"tds-badge.cjs\",[[1,\"tds-badge\",{\"value\":[1],\"hidden\":[516],\"size\":[1],\"shape\":[32],\"text\":[32]},null,{\"value\":[\"watchProps\"],\"size\":[\"watchProps\"]}]]],[\"tds-block.cjs\",[[1,\"tds-block\",{\"modeVariant\":[1,\"mode-variant\"]}]]],[\"tds-body-cell.cjs\",[[1,\"tds-body-cell\",{\"cellValue\":[520,\"cell-value\"],\"cellKey\":[520,\"cell-key\"],\"disablePadding\":[516,\"disable-padding\"],\"textAlignState\":[32],\"activeSorting\":[32],\"verticalDividers\":[32],\"compactDesign\":[32],\"noMinWidth\":[32],\"whiteBackground\":[32],\"tableId\":[32]},[[16,\"internalTdsPropChange\",\"internalTdsPropChangeListener\"],[16,\"internalTdsHover\",\"internalTdsHoverListener\"],[16,\"internalTdsTextAlign\",\"internalTdsTextAlignListener\"]]]]],[\"tds-breadcrumb.cjs\",[[1,\"tds-breadcrumb\",{\"current\":[4]}]]],[\"tds-breadcrumbs.cjs\",[[1,\"tds-breadcrumbs\"]]],[\"tds-button.cjs\",[[6,\"tds-button\",{\"text\":[1],\"type\":[1],\"variant\":[1],\"size\":[1],\"disabled\":[4],\"fullbleed\":[4],\"modeVariant\":[1,\"mode-variant\"],\"onlyIcon\":[32]}]]],[\"tds-chip.cjs\",[[6,\"tds-chip\",{\"type\":[1],\"size\":[1],\"chipId\":[1,\"chip-id\"],\"checked\":[516],\"name\":[1],\"value\":[1]}]]],[\"tds-folder-tab.cjs\",[[1,\"tds-folder-tab\",{\"disabled\":[4],\"selected\":[32],\"tabWidth\":[32],\"setTabWidth\":[64],\"setSelected\":[64]}]]],[\"tds-footer.cjs\",[[1,\"tds-footer\",{\"modeVariant\":[1,\"mode-variant\"]}]]],[\"tds-footer-item.cjs\",[[1,\"tds-footer-item\"]]],[\"tds-header.cjs\",[[4,\"tds-header\"]]],[\"tds-header-cell.cjs\",[[1,\"tds-header-cell\",{\"cellKey\":[513,\"cell-key\"],\"cellValue\":[513,\"cell-value\"],\"customWidth\":[513,\"custom-width\"],\"sortable\":[4],\"textAlign\":[513,\"text-align\"],\"textAlignState\":[32],\"sortingDirection\":[32],\"sortedByMyKey\":[32],\"verticalDividers\":[32],\"compactDesign\":[32],\"noMinWidth\":[32],\"multiselect\":[32],\"enableToolbarDesign\":[32],\"tableId\":[32],\"expandableRows\":[32]},[[16,\"internalTdsPropChange\",\"internalTdsPropChangeListener\"],[16,\"internalSortButtonClicked\",\"updateOptionsContent\"]]]]],[\"tds-header-dropdown-list-user.cjs\",[[1,\"tds-header-dropdown-list-user\",{\"imgUrl\":[1,\"img-url\"],\"imgAlt\":[1,\"img-alt\"],\"header\":[1],\"subheader\":[1]}]]],[\"tds-header-launcher-grid.cjs\",[[4,\"tds-header-launcher-grid\",{\"headingElement\":[32]}]]],[\"tds-header-launcher-grid-item.cjs\",[[1,\"tds-header-launcher-grid-item\"]]],[\"tds-header-launcher-grid-title.cjs\",[[4,\"tds-header-launcher-grid-title\"]]],[\"tds-header-launcher-list-title.cjs\",[[4,\"tds-header-launcher-list-title\"]]],[\"tds-header-title.cjs\",[[1,\"tds-header-title\"]]],[\"tds-inline-tab.cjs\",[[1,\"tds-inline-tab\",{\"disabled\":[4],\"selected\":[32],\"setSelected\":[64]}]]],[\"tds-link.cjs\",[[1,\"tds-link\",{\"disabled\":[4],\"underline\":[4]}]]],[\"tds-navigation-tab.cjs\",[[1,\"tds-navigation-tab\",{\"disabled\":[4],\"selected\":[32],\"setSelected\":[64]}]]],[\"tds-popover-menu-item.cjs\",[[1,\"tds-popover-menu-item\",{\"disabled\":[4]}]]],[\"tds-radio-button.cjs\",[[6,\"tds-radio-button\",{\"name\":[1],\"value\":[1],\"radioId\":[1,\"radio-id\"],\"checked\":[516],\"required\":[4],\"disabled\":[4]}]]],[\"tds-side-menu.cjs\",[[1,\"tds-side-menu\",{\"open\":[4],\"persistent\":[4],\"collapsed\":[4],\"isUpperSlotEmpty\":[32],\"isCollapsed\":[32]},[[16,\"internalTdsCollapse\",\"collapsedSideMenuEventHandler\"]],{\"collapsed\":[\"onCollapsedChange\"]}]]],[\"tds-side-menu-dropdown-list.cjs\",[[1,\"tds-side-menu-dropdown-list\",{\"collapsed\":[32]},[[16,\"internalTdsSideMenuPropChange\",\"collapsedSideMenuEventHandler\"]]]]],[\"tds-side-menu-dropdown-list-item.cjs\",[[1,\"tds-side-menu-dropdown-list-item\",{\"selected\":[4],\"dropdownHasIcon\":[32],\"collapsed\":[32]},[[16,\"internalTdsSideMenuPropChange\",\"collapseSideMenuEventHandler\"]]]]],[\"tds-side-menu-overlay.cjs\",[[1,\"tds-side-menu-overlay\"]]],[\"tds-spinner.cjs\",[[0,\"tds-spinner\",{\"size\":[1],\"variant\":[1]}]]],[\"tds-stepper.cjs\",[[1,\"tds-stepper\",{\"orientation\":[1],\"labelPosition\":[1,\"label-position\"],\"size\":[1],\"hideLabels\":[4,\"hide-labels\"],\"stepperId\":[1,\"stepper-id\"]},null,{\"orientation\":[\"handleDirectionChange\"],\"labelPosition\":[\"handleLabelPositionChange\"],\"size\":[\"handleSizeChange\"],\"hideLabels\":[\"handleHideLabelsChange\"]}]]],[\"tds-table.cjs\",[[1,\"tds-table\",{\"verticalDividers\":[516,\"vertical-dividers\"],\"compactDesign\":[516,\"compact-design\"],\"noMinWidth\":[516,\"no-min-width\"],\"multiselect\":[516],\"expandableRows\":[516,\"expandable-rows\"],\"responsive\":[516],\"modeVariant\":[513,\"mode-variant\"],\"tableId\":[1,\"table-id\"],\"getSelectedRows\":[64]},null,{\"multiselect\":[\"multiselectChanged\"],\"expandableRows\":[\"enableExpandableRowsChanged\"],\"compactDesign\":[\"compactDesignChanged\"],\"verticalDividers\":[\"verticalDividersChanged\"],\"noMinWidth\":[\"noMinWidthChanged\"],\"modeVariant\":[\"modeVariantChanged\"]}]]],[\"tds-table-body.cjs\",[[4,\"tds-table-body\",{\"multiselect\":[32],\"enablePaginationTableBody\":[32],\"expandableRows\":[32],\"multiselectArray\":[32],\"multiselectArrayJSON\":[32],\"mainCheckboxStatus\":[32],\"columnsNumber\":[32],\"tableId\":[32]},[[16,\"internalTdsTablePropChange\",\"internalTdsPropChangeListener\"],[16,\"internalTdsRowChange\",\"bodyCheckboxListener\"]]]]],[\"tds-table-body-row-expandable.cjs\",[[1,\"tds-table-body-row-expandable\",{\"colSpan\":[2,\"col-span\"],\"isExpanded\":[32],\"tableId\":[32],\"columnsNumber\":[32],\"verticalDividers\":[32],\"compactDesign\":[32],\"noMinWidth\":[32],\"modeVariant\":[32]},[[16,\"internalTdsTablePropChange\",\"internalTdsPropChangeListener\"]]]]],[\"tds-toggle.cjs\",[[6,\"tds-toggle\",{\"checked\":[516],\"required\":[4],\"size\":[1],\"name\":[1],\"headline\":[1],\"disabled\":[4],\"toggleId\":[1,\"toggle-id\"],\"toggle\":[64]}]]],[\"tds-header-launcher-button.cjs\",[[1,\"tds-header-launcher-button\",{\"active\":[4]}]]],[\"tds-divider.cjs\",[[1,\"tds-divider\",{\"orientation\":[1]}]]],[\"tds-header-dropdown-list.cjs\",[[1,\"tds-header-dropdown-list\",{\"size\":[513],\"headingElement\":[32]}]]],[\"tds-header-dropdown-list-item.cjs\",[[1,\"tds-header-dropdown-list-item\",{\"selected\":[4],\"size\":[513]}]]],[\"tds-popover-canvas.cjs\",[[6,\"tds-popover-canvas\",{\"selector\":[1],\"referenceEl\":[16],\"show\":[4],\"placement\":[1],\"offsetSkidding\":[2,\"offset-skidding\"],\"offsetDistance\":[2,\"offset-distance\"],\"modifiers\":[16]}]]],[\"tds-side-menu-user-image_2.cjs\",[[1,\"tds-side-menu-user-image\",{\"src\":[1],\"alt\":[1]}],[1,\"tds-side-menu-user-label\",{\"heading\":[1],\"subheading\":[1]}]]],[\"tds-side-menu-item.cjs\",[[1,\"tds-side-menu-item\",{\"selected\":[4],\"active\":[4],\"collapsed\":[32]},[[16,\"internalTdsSideMenuPropChange\",\"collapseSideMenuEventHandler\"]]]]],[\"tds-checkbox.cjs\",[[6,\"tds-checkbox\",{\"name\":[1],\"checkboxId\":[1,\"checkbox-id\"],\"disabled\":[4],\"required\":[4],\"checked\":[516],\"value\":[1],\"toggleCheckbox\":[64]}]]],[\"tds-popover-core.cjs\",[[6,\"tds-popover-core\",{\"selector\":[1],\"referenceEl\":[16],\"show\":[4],\"placement\":[1],\"offsetSkidding\":[2,\"offset-skidding\"],\"offsetDistance\":[2,\"offset-distance\"],\"modifiers\":[16],\"trigger\":[1],\"autoHide\":[4,\"auto-hide\"],\"renderedShowValue\":[32],\"popperInstance\":[32],\"target\":[32],\"isShown\":[32]},[[8,\"click\",\"onAnyClick\"]],{\"show\":[\"onShowChange\"],\"referenceEl\":[\"onReferenceElChanged\"],\"trigger\":[\"onTriggerChanged\"]}]]],[\"tds-core-header-item_2.cjs\",[[1,\"tds-header-item\",{\"active\":[4],\"selected\":[4]}],[1,\"tds-core-header-item\"]]],[\"tds-icon.cjs\",[[1,\"tds-icon\",{\"name\":[513],\"size\":[513],\"svgTitle\":[1,\"svg-title\"],\"icons_object\":[32],\"arrayOfIcons\":[32]}]]]]"), options);
|
|
10
10
|
};
|
|
11
11
|
|
|
12
12
|
exports.setNonce = index.setNonce;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-f21bdb5d.js');
|
|
6
6
|
|
|
7
7
|
const accordionItemCss = ".tds-accordion-item{box-sizing:border-box;list-style:none;color:var(--tds-accordion-color);position:relative;border-top:1px solid var(--tds-accordion-border)}.tds-accordion-item *{box-sizing:border-box}.tds-accordion-item button.tds-accordion-header-icon-start,.tds-accordion-item button.tds-accordion-header-icon-end{all:unset}.tds-accordion-item .tds-accordion-header-icon-start,.tds-accordion-item .tds-accordion-header-icon-end,.tds-accordion-item button.tds-accordion-header-icon-start,.tds-accordion-item button.tds-accordion-header-icon-end{box-sizing:border-box;cursor:pointer;display:flex;align-items:center;width:100%;font:var(--tds-headline-07);letter-spacing:var(--tds-headline-07-ls);padding:var(--tds-spacing-element-16);background-color:var(--tds-accordion-background)}.tds-accordion-item .tds-accordion-header-icon-start *,.tds-accordion-item .tds-accordion-header-icon-end *,.tds-accordion-item button.tds-accordion-header-icon-start *,.tds-accordion-item button.tds-accordion-header-icon-end *{box-sizing:border-box}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon,.tds-accordion-item button.tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item button.tds-accordion-header-icon-end .tds-accordion-icon{transform-origin:center;transition:transform 0.15s ease-in-out;color:var(--tds-accordion-icon-color)}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon>tds-icon,.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon>tds-icon,.tds-accordion-item button.tds-accordion-header-icon-start .tds-accordion-icon>tds-icon,.tds-accordion-item button.tds-accordion-header-icon-end .tds-accordion-icon>tds-icon{display:block}.tds-accordion-item .tds-accordion-title{flex-grow:2}.tds-accordion-item .tds-accordion-panel{cursor:default;padding:var(--tds-spacing-element-8) var(--tds-spacing-layout-64) var(--tds-spacing-element-32) var(--tds-spacing-element-16);display:none;font:var(--tds-detail-03);letter-spacing:var(--tds-detail-03-ls)}.tds-accordion-item .tds-accordion-panel p{margin:0;padding:0}.tds-accordion-item .tds-accordion-panel--padding-reset{padding-right:var(--tds-spacing-element-16)}.tds-accordion-item .tds-accordion-header-icon-end .tds-accordion-icon{margin:0 0 0 var(--tds-spacing-element-32)}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-title{order:1}.tds-accordion-item .tds-accordion-header-icon-start .tds-accordion-icon{order:0;margin:0 var(--tds-spacing-element-16) 0 0}.tds-accordion-item.disabled,.tds-accordion-item.disabled .tds-accordion-header-icon-end,.tds-accordion-item.disabled .tds-accordion-header-icon-start,.tds-accordion-item.disabled .tds-accordion-panel{color:var(--tds-accordion-color-disabled);cursor:not-allowed}.tds-accordion-item.disabled .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-header-icon-end .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-header-icon-start .tds-accordion-icon,.tds-accordion-item.disabled .tds-accordion-panel .tds-accordion-icon{color:var(--tds-accordion-color-disabled)}.tds-accordion-item.disabled:hover,.tds-accordion-item.disabled:hover *,.tds-accordion-item.disabled:focus,.tds-accordion-item.disabled:focus *,.tds-accordion-item.disabled:active,.tds-accordion-item.disabled:active *,.tds-accordion-item.disabled.active,.tds-accordion-item.disabled.active *{cursor:not-allowed}.tds-accordion-item.disabled:hover .tds-accordion-header-icon-start,.tds-accordion-item.disabled:hover .tds-accordion-header-icon-end,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-start,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-end,.tds-accordion-item.disabled:active .tds-accordion-header-icon-start,.tds-accordion-item.disabled:active .tds-accordion-header-icon-end,.tds-accordion-item.disabled.active .tds-accordion-header-icon-start,.tds-accordion-item.disabled.active .tds-accordion-header-icon-end{background-color:var(--tds-accordion-bg);outline:none;pointer-events:none}.tds-accordion-item.disabled:hover .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:hover .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:focus .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled:active .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled:active .tds-accordion-header-icon-end::after,.tds-accordion-item.disabled.active .tds-accordion-header-icon-start::after,.tds-accordion-item.disabled.active .tds-accordion-header-icon-end::after{border-color:transparent}.tds-accordion-item.expanded .tds-accordion-panel{display:block;padding-bottom:31px}.tds-accordion-item.expanded .tds-accordion-icon{transform:rotate(180deg)}.tds-accordion-item.expanded .tds-accordion-header-icon-end .tds-accordion-icon{margin-right:0;margin-left:var(--tds-spacing-element-32)}.tds-accordion-item.expanded .tds-accordion-header-icon-start .tds-accordion-icon{margin-left:0;margin-right:var(--tds-spacing-element-16)}.tds-accordion-item:focus{border-top:1px solid var(--tds-accordion-border-focus)}.tds-accordion-item[disabled=true]:focus{border-color:var(--tds-accordion-border)}:host(:focus) .tds-accordion-item{outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host(:focus) .tds-accordion-item .tds-accordion-header-icon-start,:host(:focus) .tds-accordion-item .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-focus);outline:none}:host(:hover) .tds-accordion-header-icon-start,:host(:hover) .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-hover)}:host(:active) .tds-accordion-header-icon-start,:host(:active) .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-active);outline:none}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-f21bdb5d.js');
|
|
6
6
|
|
|
7
7
|
const accordionCss = ":host{display:block;box-sizing:border-box}:host *{box-sizing:border-box}:host .tds-accordion-header-icon-start,:host .tds-accordion-header-icon-end{position:relative}:host(:focus){outline:2px solid var(--tds-blue-400);outline-offset:-2px}:host(:focus) .tds-accordion-item .tds-accordion-header-icon-start,:host(:focus) .tds-accordion-item .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-focus);outline:none}:host(:focus) .tds-accordion-item .tds-accordion-header-icon-start::after,:host(:focus) .tds-accordion-item .tds-accordion-header-icon-end::after{border-color:var(--tds-accordion-border-focus)}:host(:focus) .disabled,:host(:focus) .disabled *{cursor:not-allowed}:host(:focus) .disabled .tds-accordion-header-icon-start,:host(:focus) .disabled .tds-accordion-header-icon-end{background-color:var(--tds-accordion-bg);outline:none;pointer-events:none}:host(:focus) .disabled .tds-accordion-header-icon-start::after,:host(:focus) .disabled .tds-accordion-header-icon-end::after{border-color:transparent}:host(:active) .tds-accordion-header-icon-start,:host(:active) .tds-accordion-header-icon-end{background-color:var(--tds-accordion-background-active);outline:none}:host(:active) .disabled,:host(:active) .disabled *{cursor:not-allowed}:host(:active) .disabled .tds-accordion-header-icon-start,:host(:active) .disabled .tds-accordion-header-icon-end{background-color:var(--tds-accordion-bg);outline:none;pointer-events:none}:host(:active) .disabled .tds-accordion-header-icon-start::after,:host(:active) .disabled .tds-accordion-header-icon-end::after{border-color:transparent}:host(:last-child){border-bottom:1px solid var(--tds-accordion-border)}";
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-f21bdb5d.js');
|
|
6
6
|
|
|
7
7
|
const badgeCss = ":host{--tds-badge-background-color:var(--tds-negative);--tds-badge-color-text:var(--tds-white);box-sizing:border-box;display:block}:host *{box-sizing:border-box}.tds-badge{display:block;border-radius:12px;background-color:var(--tds-badge-background-color);text-align:center}.tds-badge.tds-badge-sm{height:8px;width:8px;line-height:8px}.tds-badge.tds-badge-lg{height:20px;line-height:20px;width:20px}.tds-badge.tds-badge-pill{display:inline-block;width:unset;padding-left:8px;padding-right:8px}.tds-badge.tds-badge-hidden{display:none}.tds-badge-text{font-family:var(--tds-font-family-semi-condensed-bold);font-size:12px;color:var(--tds-badge-color-text);font-weight:bold}";
|
|
8
8
|
|