@scania/tegel 0.0.9 → 0.0.10
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/README.md +3 -0
- package/dist/cjs/index-ee36ffa1.js +8 -16
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{popper-9def2535.js → popper-d7adcfc6.js} +6 -12
- package/dist/cjs/tds-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-badge.cjs.entry.js +3 -3
- package/dist/cjs/tds-banner.cjs.entry.js +10 -10
- package/dist/cjs/tds-breadcrumb.cjs.entry.js +2 -4
- package/dist/cjs/tds-breadcrumbs.cjs.entry.js +0 -3
- package/dist/cjs/tds-button.cjs.entry.js +4 -11
- package/dist/cjs/tds-card.cjs.entry.js +19 -23
- package/dist/cjs/tds-checkbox.cjs.entry.js +2 -1
- package/dist/cjs/tds-chip.cjs.entry.js +14 -3
- package/dist/cjs/tds-core-header-item_2.cjs.entry.js +1 -1
- package/dist/cjs/{tds-dropdown-option-v2.cjs.entry.js → tds-dropdown-option.cjs.entry.js} +5 -5
- package/dist/cjs/{tds-dropdown-v2.cjs.entry.js → tds-dropdown.cjs.entry.js} +19 -19
- package/dist/cjs/tds-folder-tab.cjs.entry.js +2 -3
- package/dist/cjs/tds-folder-tabs.cjs.entry.js +5 -5
- package/dist/cjs/tds-footer-group.cjs.entry.js +3 -3
- package/dist/cjs/tds-footer-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-footer.cjs.entry.js +6 -6
- package/dist/cjs/tds-header-cell.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown-list-user.cjs.entry.js +4 -4
- package/dist/cjs/tds-header-dropdown-list.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-dropdown.cjs.entry.js +4 -3
- package/dist/cjs/tds-header-hamburger.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-grid-title.cjs.entry.js +3 -2
- package/dist/cjs/tds-header-launcher-grid.cjs.entry.js +1 -1
- package/dist/cjs/tds-header-launcher-list-title.cjs.entry.js +3 -2
- package/dist/cjs/tds-header-launcher-list.cjs.entry.js +2 -1
- package/dist/cjs/tds-header-launcher.cjs.entry.js +2 -2
- package/dist/cjs/tds-header.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-inline-tabs.cjs.entry.js +5 -5
- package/dist/cjs/tds-link.cjs.entry.js +1 -1
- package/dist/cjs/tds-message.cjs.entry.js +4 -4
- package/dist/cjs/tds-modal.cjs.entry.js +13 -5
- package/dist/cjs/tds-navigation-tab.cjs.entry.js +1 -1
- package/dist/cjs/tds-navigation-tabs.cjs.entry.js +5 -5
- package/dist/cjs/tds-popover-canvas.cjs.entry.js +1 -1
- package/dist/cjs/tds-popover-menu.cjs.entry.js +1 -1
- package/dist/cjs/tds-radio-button.cjs.entry.js +3 -2
- package/dist/cjs/tds-side-menu-close-button.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu-item.cjs.entry.js +1 -1
- package/dist/cjs/tds-side-menu.cjs.entry.js +2 -2
- package/dist/cjs/tds-slider.cjs.entry.js +12 -15
- package/dist/cjs/tds-stepper.cjs.entry.js +3 -2
- package/dist/cjs/tds-table-body.cjs.entry.js +4 -51
- package/dist/cjs/tds-table-footer.cjs.entry.js +47 -39
- package/dist/cjs/tds-table-toolbar.cjs.entry.js +2 -2
- package/dist/cjs/tds-table.cjs.entry.js +2 -1
- package/dist/cjs/tds-text-field.cjs.entry.js +6 -2
- package/dist/cjs/tds-toast.cjs.entry.js +11 -26
- package/dist/cjs/tds-toggle.cjs.entry.js +2 -1
- package/dist/cjs/tds-tooltip.cjs.entry.js +6 -2
- package/dist/cjs/tegel.cjs.js +1 -1
- package/dist/cjs/{utils-2beb1aa0.js → utils-41de5fb2.js} +32 -12
- package/dist/collection/collection-manifest.json +0 -3
- package/dist/collection/components/accordion/accordion-item/accordion-item.js +4 -1
- package/dist/collection/components/accordion/accordion.stories.js +100 -0
- package/dist/collection/components/badge/badge.js +4 -4
- package/dist/collection/components/badge/badge.stories.js +106 -0
- package/dist/collection/components/banner/banner.css +12 -9
- package/dist/collection/components/banner/banner.js +33 -17
- package/dist/collection/components/banner/banner.stories.js +107 -0
- package/dist/collection/components/block/block.stories.js +49 -0
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.css +4 -4
- package/dist/collection/components/breadcrumbs/breadcrumb/breadcrumb.js +1 -21
- package/dist/collection/components/breadcrumbs/breadcrumbs.js +0 -3
- package/dist/collection/components/breadcrumbs/breadcrumbs.stories.js +36 -0
- package/dist/collection/components/button/button.css +16 -0
- package/dist/collection/components/button/button.js +7 -12
- package/dist/collection/components/button/button.stories.js +167 -0
- package/dist/collection/components/card/card.css +18 -17
- package/dist/collection/components/card/card.js +32 -68
- package/dist/collection/components/card/card.stories.js +162 -0
- package/dist/collection/components/checkbox/checkbox.js +6 -2
- package/dist/collection/components/checkbox/checkbox.stories.js +80 -0
- package/dist/collection/components/chip/chip.css +23 -8
- package/dist/collection/components/chip/chip.js +19 -3
- package/dist/collection/components/chip/chip.stories.js +230 -0
- package/dist/collection/components/datetime/datetime.stories.js +195 -0
- package/dist/collection/components/divider/divider.stories.js +62 -0
- package/dist/collection/components/dropdown/dropdown-option/dropdown-option.js +142 -116
- package/dist/collection/components/dropdown/dropdown.css +212 -386
- package/dist/collection/components/dropdown/dropdown.js +472 -329
- package/dist/collection/components/dropdown/dropdown.stories.js +268 -0
- package/dist/collection/components/footer/footer-group/footer-group.css +3 -3
- package/dist/collection/components/footer/footer-group/footer-group.js +2 -2
- package/dist/collection/components/footer/footer-item/footer-item.css +16 -8
- package/dist/collection/components/footer/footer.css +8 -12
- package/dist/collection/components/footer/footer.js +10 -10
- package/dist/collection/components/footer/footer.stories.js +145 -0
- package/dist/collection/components/header/header-dropdown/header-dropdown.js +10 -5
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.css +1 -1
- package/dist/collection/components/header/header-dropdown-list-user/header-dropdown-list-user.js +13 -9
- package/dist/collection/components/header/header-hamburger/header-hamburger.css +0 -1
- package/dist/collection/components/header/header-launcher/header-launcher.js +2 -2
- package/dist/collection/components/header/header-launcher-grid-title/header-launcher-grid-title.js +3 -2
- package/dist/collection/components/header/header-launcher-list/header-launcher-list.js +2 -1
- package/dist/collection/components/header/header-launcher-list-title/header-launcher-list-title.js +3 -2
- package/dist/collection/components/header/header.css +1 -1
- package/dist/collection/components/header/header.js +5 -0
- package/dist/collection/components/header/header.stories.js +80 -0
- package/dist/collection/components/icon/icon.stories.js +48 -0
- package/dist/collection/components/link/link.css +16 -13
- package/dist/collection/components/link/link.js +1 -0
- package/dist/collection/components/link/link.stories.js +57 -0
- package/dist/collection/components/message/message.css +16 -16
- package/dist/collection/components/message/message.js +6 -3
- package/dist/collection/components/message/message.stories.js +110 -0
- package/dist/collection/components/modal/modal.css +19 -33
- package/dist/collection/components/modal/modal.js +36 -6
- package/dist/collection/components/modal/modal.stories.js +109 -0
- package/dist/collection/components/popover-canvas/popover-canvas.js +2 -2
- package/dist/collection/components/popover-canvas/popover-canvas.stories.js +92 -0
- package/dist/collection/components/popover-menu/popover-menu.js +2 -2
- package/dist/collection/components/popover-menu/popover-menu.stories.js +140 -0
- package/dist/collection/components/radio-button/radio-button.css +1 -1
- package/dist/collection/components/radio-button/radio-button.js +6 -2
- package/dist/collection/components/radio-button/radio-button.stories.js +91 -0
- package/dist/collection/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.js +3 -0
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.css +1 -1
- package/dist/collection/components/side-menu/side-menu-dropdown/side-menu-dropdown.js +5 -0
- package/dist/collection/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.js +3 -0
- package/dist/collection/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.js +3 -0
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.css +1 -1
- package/dist/collection/components/side-menu/side-menu-item/side-menu-item.js +3 -0
- package/dist/collection/components/side-menu/side-menu-user/side-menu-user.js +3 -0
- package/dist/collection/components/side-menu/side-menu-user-image/side-menu-user-image.js +5 -0
- package/dist/collection/components/side-menu/side-menu.css +6 -5
- package/dist/collection/components/side-menu/side-menu.js +11 -3
- package/dist/collection/components/side-menu/side-menu.stories.js +215 -0
- package/dist/collection/components/slider/slider.js +13 -16
- package/dist/collection/components/slider/slider.stories.js +243 -0
- package/dist/collection/components/spinner/spinner.stories.js +61 -0
- package/dist/collection/components/stepper/step/step.js +3 -0
- package/dist/collection/components/stepper/stepper.css +3 -0
- package/dist/collection/components/stepper/stepper.js +4 -3
- package/dist/collection/components/stepper/stepper.stories.js +95 -0
- package/dist/collection/components/table/table/table.js +4 -3
- package/dist/collection/components/table/table-body/table-body.js +15 -60
- package/dist/collection/components/table/table-body-row-expandable/table-body-row-expandable.js +3 -0
- package/dist/collection/components/table/table-component-basic.stories.js +184 -0
- package/dist/collection/components/table/table-component-batch-actions.stories.js +201 -0
- package/dist/collection/components/table/table-component-bodydata.stories.js +101 -0
- package/dist/collection/components/table/table-component-custom-width.stories.js +174 -0
- package/dist/collection/components/table/table-component-event-listeners.stories.js +193 -0
- package/dist/collection/components/table/table-component-expandable-rows.stories.js +160 -0
- package/dist/collection/components/table/table-component-filtering.stories.js +210 -0
- package/dist/collection/components/table/table-component-multiselect.stories.js +230 -0
- package/dist/collection/components/table/table-component-pagination.stories.js +215 -0
- package/dist/collection/components/table/table-component-sorting.stories.js +238 -0
- package/dist/collection/components/table/table-footer/table-footer.js +65 -54
- package/dist/collection/components/table/table-header-cell/table-header-cell.css +1 -0
- package/dist/collection/components/table/table-toolbar/table-toolbar.css +2 -1
- package/dist/collection/components/table/table-toolbar/table-toolbar.js +4 -1
- package/dist/collection/components/table/table.filtering.spec.js +0 -6
- package/dist/collection/components/table/table.spec.js +0 -6
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.css +10 -11
- package/dist/collection/components/tabs/folder-tabs/folder-tab/folder-tab.js +1 -2
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.js +5 -5
- package/dist/collection/components/tabs/folder-tabs/folder-tabs.stories.js +105 -0
- package/dist/collection/components/tabs/inline-tabs/inline-tab/inline-tab.css +13 -2
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.js +5 -5
- package/dist/collection/components/tabs/inline-tabs/inline-tabs.stories.js +99 -0
- package/dist/collection/components/tabs/navigation-tabs/navigation-tab/navigation-tab.css +13 -2
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.js +5 -5
- package/dist/collection/components/tabs/navigation-tabs/navigation-tabs.stories.js +101 -0
- package/dist/collection/components/text-field/text-field.js +10 -2
- package/dist/collection/components/text-field/text-field.stories.js +247 -0
- package/dist/collection/components/textarea/textarea.stories.js +188 -0
- package/dist/collection/components/toast/toast.css +32 -25
- package/dist/collection/components/toast/toast.js +17 -33
- package/dist/collection/components/toast/toast.stories.js +79 -0
- package/dist/collection/components/toggle/toggle.js +6 -2
- package/dist/collection/components/toggle/toggle.stories.js +95 -0
- package/dist/collection/components/tooltip/tooltip.js +27 -3
- package/dist/collection/components/tooltip/tooltip.stories.js +128 -0
- package/dist/collection/stories/Installation/installation.stories.js +222 -0
- package/dist/collection/stories/announcements/announce-tegel.stories.js +262 -0
- package/dist/collection/stories/announcements/prefix-change.stories.js +93 -0
- package/dist/collection/stories/foundations/color/color-brand.stories.js +38 -0
- package/dist/collection/stories/foundations/color/color-scales.stories.js +71 -0
- package/dist/collection/stories/foundations/color/color-semantic.stories.js +40 -0
- package/dist/collection/stories/foundations/grid/grid.stories.js +386 -0
- package/dist/collection/stories/foundations/spacing/spacing-element.stories.js +100 -0
- package/dist/collection/stories/foundations/spacing/spacing-layout.stories.js +94 -0
- package/dist/collection/stories/foundations/typography/typography-body.stories.js +16 -0
- package/dist/collection/stories/foundations/typography/typography-detail.stories.js +17 -0
- package/dist/collection/stories/foundations/typography/typography-headline.stories.js +39 -0
- package/dist/collection/stories/foundations/typography/typography-paragraph.stories.js +12 -0
- package/dist/collection/stories/patterns/navigation/navigation-basic.stories.js +85 -0
- package/dist/collection/stories/patterns/navigation/navigation-fewitems.stories.js +259 -0
- package/dist/collection/stories/patterns/navigation/navigation-manyitems.stories.js +246 -0
- package/dist/collection/stories/patterns/navigation/navigation-user-menu.stories.js +140 -0
- package/dist/collection/stories/tegel.stories.js +293 -0
- package/dist/collection/stories/utility/color/background-color.stories.js +96 -0
- package/dist/collection/stories/utility/color/text-color.stories.js +94 -0
- package/dist/collection/utils/utils.js +30 -11
- package/dist/components/checkbox.js +2 -1
- package/dist/components/header-dropdown-list.js +1 -1
- package/dist/components/header-item.js +1 -1
- package/dist/components/popper.js +6 -12
- package/dist/components/side-menu-item.js +1 -1
- package/dist/components/tds-accordion-item.js +1 -1
- package/dist/components/tds-badge.js +4 -4
- package/dist/components/tds-banner.js +12 -13
- package/dist/components/tds-breadcrumb.js +3 -6
- package/dist/components/tds-breadcrumbs.js +0 -3
- package/dist/components/tds-button.js +5 -13
- package/dist/components/tds-card.js +21 -29
- package/dist/components/tds-chip.js +14 -3
- package/dist/components/tds-dropdown-option.js +121 -1
- package/dist/components/tds-dropdown.js +318 -1
- package/dist/components/tds-folder-tab.js +2 -3
- package/dist/components/tds-folder-tabs.js +5 -5
- package/dist/components/tds-footer-group.js +3 -3
- package/dist/components/tds-footer-item.js +1 -1
- package/dist/components/tds-footer.js +7 -8
- package/dist/components/tds-header-cell.js +1 -1
- package/dist/components/tds-header-dropdown-list-user.js +6 -6
- package/dist/components/tds-header-dropdown.js +5 -4
- package/dist/components/tds-header-launcher-grid-title.js +3 -2
- package/dist/components/tds-header-launcher-grid.js +1 -1
- package/dist/components/tds-header-launcher-list-title.js +3 -2
- package/dist/components/tds-header-launcher-list.js +2 -1
- package/dist/components/tds-header-launcher.js +2 -2
- package/dist/components/tds-inline-tab.js +1 -1
- package/dist/components/tds-inline-tabs.js +5 -5
- package/dist/components/tds-link.js +3 -2
- package/dist/components/tds-message.js +4 -4
- package/dist/components/tds-modal.js +14 -5
- package/dist/components/tds-navigation-tab.js +1 -1
- package/dist/components/tds-navigation-tabs.js +5 -5
- package/dist/components/tds-radio-button.js +3 -2
- package/dist/components/tds-side-menu-dropdown.js +1 -1
- package/dist/components/tds-side-menu.js +2 -2
- package/dist/components/tds-slider.js +12 -15
- package/dist/components/tds-stepper.js +3 -2
- package/dist/components/tds-table-body.js +5 -53
- package/dist/components/tds-table-footer.js +50 -42
- package/dist/components/tds-table-toolbar.js +9 -3
- package/dist/components/tds-table.js +2 -1
- package/dist/components/tds-text-field.js +6 -2
- package/dist/components/tds-toast.js +12 -29
- package/dist/components/tds-toggle.js +2 -1
- package/dist/components/tds-tooltip.js +7 -2
- package/dist/components/utils.js +31 -12
- package/dist/esm/index-23ee700b.js +8 -16
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{popper-bfa25c7f.js → popper-15e448b4.js} +6 -12
- package/dist/esm/tds-accordion-item.entry.js +1 -1
- package/dist/esm/tds-badge.entry.js +3 -3
- package/dist/esm/tds-banner.entry.js +10 -10
- package/dist/esm/tds-breadcrumb.entry.js +2 -4
- package/dist/esm/tds-breadcrumbs.entry.js +0 -3
- package/dist/esm/tds-button.entry.js +4 -11
- package/dist/esm/tds-card.entry.js +19 -23
- package/dist/esm/tds-checkbox.entry.js +2 -1
- package/dist/esm/tds-chip.entry.js +15 -4
- package/dist/esm/tds-core-header-item_2.entry.js +1 -1
- package/dist/esm/{tds-dropdown-option-v2.entry.js → tds-dropdown-option.entry.js} +5 -5
- package/dist/esm/{tds-dropdown-v2.entry.js → tds-dropdown.entry.js} +19 -19
- package/dist/esm/tds-folder-tab.entry.js +2 -3
- package/dist/esm/tds-folder-tabs.entry.js +5 -5
- package/dist/esm/tds-footer-group.entry.js +3 -3
- package/dist/esm/tds-footer-item.entry.js +1 -1
- package/dist/esm/tds-footer.entry.js +6 -6
- package/dist/esm/tds-header-cell.entry.js +1 -1
- package/dist/esm/tds-header-dropdown-list-user.entry.js +4 -4
- package/dist/esm/tds-header-dropdown-list.entry.js +1 -1
- package/dist/esm/tds-header-dropdown.entry.js +4 -3
- package/dist/esm/tds-header-hamburger.entry.js +1 -1
- package/dist/esm/tds-header-launcher-button.entry.js +1 -1
- package/dist/esm/tds-header-launcher-grid-title.entry.js +3 -2
- package/dist/esm/tds-header-launcher-grid.entry.js +1 -1
- package/dist/esm/tds-header-launcher-list-title.entry.js +3 -2
- package/dist/esm/tds-header-launcher-list.entry.js +2 -1
- package/dist/esm/tds-header-launcher.entry.js +2 -2
- package/dist/esm/tds-header.entry.js +1 -1
- package/dist/esm/tds-inline-tab.entry.js +1 -1
- package/dist/esm/tds-inline-tabs.entry.js +5 -5
- package/dist/esm/tds-link.entry.js +1 -1
- package/dist/esm/tds-message.entry.js +4 -4
- package/dist/esm/tds-modal.entry.js +13 -5
- package/dist/esm/tds-navigation-tab.entry.js +1 -1
- package/dist/esm/tds-navigation-tabs.entry.js +5 -5
- package/dist/esm/tds-popover-canvas.entry.js +1 -1
- package/dist/esm/tds-popover-menu.entry.js +1 -1
- package/dist/esm/tds-radio-button.entry.js +3 -2
- package/dist/esm/tds-side-menu-close-button.entry.js +1 -1
- package/dist/esm/tds-side-menu-dropdown.entry.js +1 -1
- package/dist/esm/tds-side-menu-item.entry.js +1 -1
- package/dist/esm/tds-side-menu.entry.js +2 -2
- package/dist/esm/tds-slider.entry.js +12 -15
- package/dist/esm/tds-stepper.entry.js +3 -2
- package/dist/esm/tds-table-body.entry.js +4 -51
- package/dist/esm/tds-table-footer.entry.js +47 -39
- package/dist/esm/tds-table-toolbar.entry.js +2 -2
- package/dist/esm/tds-table.entry.js +2 -1
- package/dist/esm/tds-text-field.entry.js +7 -3
- package/dist/esm/tds-toast.entry.js +11 -26
- package/dist/esm/tds-toggle.entry.js +2 -1
- package/dist/esm/tds-tooltip.entry.js +6 -2
- package/dist/esm/tegel.js +1 -1
- package/dist/esm/{utils-9ac24735.js → utils-74fb1bed.js} +31 -12
- package/dist/tegel/p-000d60e5.entry.js +1 -0
- package/dist/tegel/p-04bff255.entry.js +1 -0
- package/dist/tegel/p-06093e3e.entry.js +1 -0
- package/dist/tegel/p-099025f0.entry.js +1 -0
- package/dist/tegel/p-0995ca77.entry.js +1 -0
- package/dist/tegel/p-10337d3f.entry.js +1 -0
- package/dist/tegel/p-19fb9ad5.entry.js +1 -0
- package/dist/tegel/p-1bac7d2e.entry.js +1 -0
- package/dist/tegel/p-1c82ccf0.entry.js +1 -0
- package/dist/tegel/p-347414ad.entry.js +1 -0
- package/dist/tegel/p-34a06d2f.entry.js +1 -0
- package/dist/tegel/p-3c9865c3.entry.js +1 -0
- package/dist/tegel/{p-c8d4af09.entry.js → p-40142a58.entry.js} +1 -1
- package/dist/tegel/p-48136431.entry.js +1 -0
- package/dist/tegel/p-49a084db.entry.js +1 -0
- package/dist/tegel/p-4c809685.entry.js +1 -0
- package/dist/tegel/p-54e56257.entry.js +1 -0
- package/dist/tegel/{p-e8fccebc.entry.js → p-56189659.entry.js} +1 -1
- package/dist/tegel/p-6bee84a2.entry.js +1 -0
- package/dist/tegel/p-6f0072cc.entry.js +1 -0
- package/dist/tegel/p-73a8f43e.entry.js +1 -0
- package/dist/tegel/p-8ba77ea3.entry.js +1 -0
- package/dist/tegel/p-8bd0a233.entry.js +1 -0
- package/dist/tegel/{p-e0ee20ee.entry.js → p-8c194dd8.entry.js} +1 -1
- package/dist/tegel/p-95e170f3.entry.js +1 -0
- package/dist/tegel/p-99837611.entry.js +1 -0
- package/dist/tegel/p-9991a816.entry.js +1 -0
- package/dist/tegel/{p-bcb2fad3.entry.js → p-9b29bf68.entry.js} +1 -1
- package/dist/tegel/{p-39227588.js → p-9dc14c21.js} +1 -1
- package/dist/tegel/p-9f1e1cc0.entry.js +1 -0
- package/dist/tegel/{p-232f5889.entry.js → p-9fe0d654.entry.js} +1 -1
- package/dist/tegel/{p-135575ae.entry.js → p-a08be1c3.entry.js} +1 -1
- package/dist/tegel/{p-3aa634ed.entry.js → p-a1ad46d2.entry.js} +1 -1
- package/dist/tegel/p-a34bb501.entry.js +1 -0
- package/dist/tegel/p-a4e3eb95.entry.js +1 -0
- package/dist/tegel/{p-fb3f4a14.entry.js → p-aa443b06.entry.js} +1 -1
- package/dist/tegel/p-afe13096.entry.js +1 -0
- package/dist/tegel/{p-cd2a74d7.entry.js → p-b0d313cd.entry.js} +1 -1
- package/dist/tegel/p-b1067b50.entry.js +1 -0
- package/dist/tegel/{p-7b34156b.entry.js → p-b5424456.entry.js} +1 -1
- package/dist/tegel/p-c15bbe0b.entry.js +1 -0
- package/dist/tegel/p-c411f254.entry.js +1 -0
- package/dist/tegel/p-c5588508.entry.js +1 -0
- package/dist/tegel/{p-b6a16219.entry.js → p-c5ab3a3b.entry.js} +1 -1
- package/dist/tegel/p-d5bd9b2e.entry.js +1 -0
- package/dist/tegel/p-df95f0ae.entry.js +1 -0
- package/dist/tegel/{p-de799b9a.entry.js → p-e24835ba.entry.js} +1 -1
- package/dist/tegel/p-e3f8fc68.entry.js +1 -0
- package/dist/tegel/{p-89283891.entry.js → p-e4dc07bb.entry.js} +1 -1
- package/dist/tegel/p-f36ec03b.entry.js +1 -0
- package/dist/tegel/{p-7331ec7b.entry.js → p-f795bc11.entry.js} +1 -1
- package/dist/tegel/{p-7d3a66ae.entry.js → p-f9d04ff2.entry.js} +1 -1
- package/dist/tegel/p-fc6da19c.entry.js +1 -0
- package/dist/tegel/tegel.css +2 -2
- package/dist/tegel/tegel.esm.js +1 -1
- package/dist/types/components/accordion/accordion-item/accordion-item.d.ts +3 -0
- package/dist/types/components/accordion/accordion.stories.d.ts +77 -0
- package/dist/types/components/badge/badge.stories.d.ts +73 -0
- package/dist/types/components/banner/banner.d.ts +7 -2
- package/dist/types/components/banner/banner.stories.d.ts +82 -0
- package/dist/types/components/block/block.stories.d.ts +32 -0
- package/dist/types/components/breadcrumbs/breadcrumb/breadcrumb.d.ts +0 -2
- package/dist/types/components/breadcrumbs/breadcrumbs.d.ts +0 -1
- package/dist/types/components/breadcrumbs/breadcrumbs.stories.d.ts +16 -0
- package/dist/types/components/button/button.d.ts +3 -1
- package/dist/types/components/button/button.stories.d.ts +133 -0
- package/dist/types/components/card/card.d.ts +11 -9
- package/dist/types/components/card/card.stories.d.ts +128 -0
- package/dist/types/components/checkbox/checkbox.d.ts +3 -0
- package/dist/types/components/checkbox/checkbox.stories.d.ts +52 -0
- package/dist/types/components/chip/chip.d.ts +6 -0
- package/dist/types/components/chip/chip.stories.d.ts +99 -0
- package/dist/types/components/datetime/datetime.stories.d.ts +125 -0
- package/dist/types/components/divider/divider.stories.d.ts +58 -0
- package/dist/types/components/dropdown/dropdown-option/dropdown-option.d.ts +28 -17
- package/dist/types/components/dropdown/dropdown.d.ts +79 -54
- package/dist/types/components/dropdown/dropdown.stories.d.ts +183 -0
- package/dist/types/components/footer/footer-group/footer-group.d.ts +1 -1
- package/dist/types/components/footer/footer.d.ts +5 -3
- package/dist/types/components/footer/footer.stories.d.ts +44 -0
- package/dist/types/components/header/header-dropdown/header-dropdown.d.ts +5 -1
- package/dist/types/components/header/header-dropdown-list-user/header-dropdown-list-user.d.ts +8 -4
- package/dist/types/components/header/header.d.ts +5 -0
- package/dist/types/components/header/header.stories.d.ts +31 -0
- package/dist/types/components/icon/icon.stories.d.ts +36 -0
- package/dist/types/components/link/link.stories.d.ts +44 -0
- package/dist/types/components/message/message.d.ts +3 -0
- package/dist/types/components/message/message.stories.d.ts +88 -0
- package/dist/types/components/modal/modal.d.ts +9 -3
- package/dist/types/components/modal/modal.stories.d.ts +70 -0
- package/dist/types/components/popover-canvas/popover-canvas.d.ts +1 -1
- package/dist/types/components/popover-canvas/popover-canvas.stories.d.ts +27 -0
- package/dist/types/components/popover-menu/popover-menu.d.ts +1 -1
- package/dist/types/components/popover-menu/popover-menu.stories.d.ts +40 -0
- package/dist/types/components/radio-button/radio-button.d.ts +3 -0
- package/dist/types/components/radio-button/radio-button.stories.d.ts +39 -0
- package/dist/types/components/side-menu/side-menu-collapse-button/side-menu-collapse-button.d.ts +3 -0
- package/dist/types/components/side-menu/side-menu-dropdown/side-menu-dropdown.d.ts +5 -0
- package/dist/types/components/side-menu/side-menu-dropdown-list/side-menu-dropdown-list.d.ts +3 -0
- package/dist/types/components/side-menu/side-menu-dropdown-list-item/side-menu-dropdown-list-item.d.ts +3 -0
- package/dist/types/components/side-menu/side-menu-item/side-menu-item.d.ts +3 -0
- package/dist/types/components/side-menu/side-menu-user/side-menu-user.d.ts +3 -0
- package/dist/types/components/side-menu/side-menu-user-image/side-menu-user-image.d.ts +4 -0
- package/dist/types/components/side-menu/side-menu.d.ts +8 -0
- package/dist/types/components/side-menu/side-menu.stories.d.ts +53 -0
- package/dist/types/components/slider/slider.d.ts +0 -1
- package/dist/types/components/slider/slider.stories.d.ts +235 -0
- package/dist/types/components/spinner/spinner.stories.d.ts +46 -0
- package/dist/types/components/stepper/step/step.d.ts +3 -0
- package/dist/types/components/stepper/stepper.stories.d.ts +80 -0
- package/dist/types/components/table/table-body/table-body.d.ts +6 -3
- package/dist/types/components/table/table-body-row-expandable/table-body-row-expandable.d.ts +3 -0
- package/dist/types/components/table/table-component-basic.stories.d.ts +144 -0
- package/dist/types/components/table/table-component-batch-actions.stories.d.ts +139 -0
- package/dist/types/components/table/table-component-bodydata.stories.d.ts +35 -0
- package/dist/types/components/table/table-component-custom-width.stories.d.ts +131 -0
- package/dist/types/components/table/table-component-event-listeners.stories.d.ts +131 -0
- package/dist/types/components/table/table-component-expandable-rows.stories.d.ts +131 -0
- package/dist/types/components/table/table-component-filtering.stories.d.ts +139 -0
- package/dist/types/components/table/table-component-multiselect.stories.d.ts +144 -0
- package/dist/types/components/table/table-component-pagination.stories.d.ts +131 -0
- package/dist/types/components/table/table-component-sorting.stories.d.ts +183 -0
- package/dist/types/components/table/table-footer/table-footer.d.ts +7 -7
- package/dist/types/components/table/table-toolbar/table-toolbar.d.ts +3 -0
- package/dist/types/components/tabs/folder-tabs/folder-tabs.stories.d.ts +69 -0
- package/dist/types/components/tabs/inline-tabs/inline-tabs.stories.d.ts +61 -0
- package/dist/types/components/tabs/navigation-tabs/navigation-tabs.stories.d.ts +61 -0
- package/dist/types/components/text-field/text-field.d.ts +5 -0
- package/dist/types/components/text-field/text-field.stories.d.ts +201 -0
- package/dist/types/components/textarea/textarea.stories.d.ts +139 -0
- package/dist/types/components/toast/toast.d.ts +5 -4
- package/dist/types/components/toast/toast.stories.d.ts +56 -0
- package/dist/types/components/toggle/toggle.d.ts +3 -0
- package/dist/types/components/toggle/toggle.stories.d.ts +74 -0
- package/dist/types/components/tooltip/tooltip.d.ts +3 -1
- package/dist/types/components/tooltip/tooltip.stories.d.ts +66 -0
- package/dist/types/components.d.ts +105 -393
- package/dist/types/stories/Installation/installation.stories.d.ts +7 -0
- package/dist/types/stories/announcements/announce-tegel.stories.d.ts +6 -0
- package/dist/types/stories/announcements/prefix-change.stories.d.ts +6 -0
- package/dist/types/stories/foundations/color/color-brand.stories.d.ts +13 -0
- package/dist/types/stories/foundations/color/color-scales.stories.d.ts +30 -0
- package/dist/types/stories/foundations/color/color-semantic.stories.d.ts +13 -0
- package/dist/types/stories/foundations/grid/grid.stories.d.ts +35 -0
- package/dist/types/stories/foundations/spacing/spacing-element.stories.d.ts +8 -0
- package/dist/types/stories/foundations/spacing/spacing-layout.stories.d.ts +8 -0
- package/dist/types/stories/foundations/typography/typography-body.stories.d.ts +8 -0
- package/dist/types/stories/foundations/typography/typography-detail.stories.d.ts +8 -0
- package/dist/types/stories/foundations/typography/typography-headline.stories.d.ts +21 -0
- package/dist/types/stories/foundations/typography/typography-paragraph.stories.d.ts +8 -0
- package/dist/types/stories/patterns/navigation/navigation-basic.stories.d.ts +23 -0
- package/dist/types/stories/patterns/navigation/navigation-fewitems.stories.d.ts +23 -0
- package/dist/types/stories/patterns/navigation/navigation-manyitems.stories.d.ts +38 -0
- package/dist/types/stories/patterns/navigation/navigation-user-menu.stories.d.ts +33 -0
- package/dist/types/stories/tegel.stories.d.ts +6 -0
- package/dist/types/stories/utility/color/background-color.stories.d.ts +64 -0
- package/dist/types/stories/utility/color/text-color.stories.d.ts +64 -0
- package/dist/types/utils/utils.d.ts +20 -6
- package/package.json +21 -24
- package/dist/cjs/tds-dropdown-filter.cjs.entry.js +0 -96
- package/dist/cjs/tds-dropdown_2.cjs.entry.js +0 -339
- package/dist/collection/components/dropdown/dropdown-filter/dropdown-filter.js +0 -380
- package/dist/collection/components/dropdown-v2/dropdown-option-v2/dropdown-option-v2.js +0 -216
- package/dist/collection/components/dropdown-v2/dropdown-v2.css +0 -286
- package/dist/collection/components/dropdown-v2/dropdown-v2.js +0 -726
- package/dist/components/dropdown-option.js +0 -104
- package/dist/components/dropdown.js +0 -304
- package/dist/components/tds-dropdown-filter.d.ts +0 -11
- package/dist/components/tds-dropdown-filter.js +0 -150
- package/dist/components/tds-dropdown-option-v2.d.ts +0 -11
- package/dist/components/tds-dropdown-option-v2.js +0 -126
- package/dist/components/tds-dropdown-v2.d.ts +0 -11
- package/dist/components/tds-dropdown-v2.js +0 -323
- package/dist/esm/tds-dropdown-filter.entry.js +0 -92
- package/dist/esm/tds-dropdown_2.entry.js +0 -334
- package/dist/tegel/p-07e5df94.entry.js +0 -1
- package/dist/tegel/p-0a3e7512.entry.js +0 -1
- package/dist/tegel/p-0e55d72f.entry.js +0 -1
- package/dist/tegel/p-107d3da8.entry.js +0 -1
- package/dist/tegel/p-13b02a4f.entry.js +0 -1
- package/dist/tegel/p-19e9addd.entry.js +0 -1
- package/dist/tegel/p-1fb5c5d4.entry.js +0 -1
- package/dist/tegel/p-2bee16f6.entry.js +0 -1
- package/dist/tegel/p-2e2c91c4.entry.js +0 -1
- package/dist/tegel/p-330ed982.entry.js +0 -1
- package/dist/tegel/p-3604b5d3.entry.js +0 -1
- package/dist/tegel/p-375e361b.entry.js +0 -1
- package/dist/tegel/p-55dc4711.entry.js +0 -1
- package/dist/tegel/p-59f1cb9b.entry.js +0 -1
- package/dist/tegel/p-5a6aba01.entry.js +0 -1
- package/dist/tegel/p-60733f89.entry.js +0 -1
- package/dist/tegel/p-6a530c2f.entry.js +0 -1
- package/dist/tegel/p-732256e0.entry.js +0 -1
- package/dist/tegel/p-76f941e8.entry.js +0 -1
- package/dist/tegel/p-7b0853e6.entry.js +0 -1
- package/dist/tegel/p-90686bc7.entry.js +0 -1
- package/dist/tegel/p-95da9b7f.entry.js +0 -1
- package/dist/tegel/p-99f540db.entry.js +0 -1
- package/dist/tegel/p-9bcc42cf.entry.js +0 -1
- package/dist/tegel/p-9f57d275.entry.js +0 -1
- package/dist/tegel/p-9fe384ad.entry.js +0 -1
- package/dist/tegel/p-a5604352.entry.js +0 -1
- package/dist/tegel/p-acb62b52.entry.js +0 -1
- package/dist/tegel/p-aeffa257.entry.js +0 -1
- package/dist/tegel/p-b8d88873.entry.js +0 -1
- package/dist/tegel/p-beb8a6bd.entry.js +0 -1
- package/dist/tegel/p-c90a247c.entry.js +0 -1
- package/dist/tegel/p-ca4527de.entry.js +0 -1
- package/dist/tegel/p-cf4cfc54.entry.js +0 -1
- package/dist/tegel/p-d3f5cf74.entry.js +0 -1
- package/dist/tegel/p-d67d67be.entry.js +0 -1
- package/dist/tegel/p-da4c92b9.entry.js +0 -1
- package/dist/tegel/p-f6206d3c.entry.js +0 -1
- package/dist/tegel/p-fc47d911.entry.js +0 -1
- package/dist/types/components/dropdown/dropdown-filter/dropdown-filter.d.ts +0 -47
- package/dist/types/components/dropdown-v2/dropdown-option-v2/dropdown-option-v2.d.ts +0 -35
- package/dist/types/components/dropdown-v2/dropdown-v2.d.ts +0 -86
- /package/dist/collection/components/{dropdown-v2/dropdown-option-v2/dropdown-option-v2.css → dropdown/dropdown-option/dropdown-option.css} +0 -0
- /package/dist/tegel/{p-9d707f6e.js → p-7c0dcd00.js} +0 -0
|
@@ -1,726 +0,0 @@
|
|
|
1
|
-
import { Host, h } from '@stencil/core';
|
|
2
|
-
import { appendChildElement, appendHiddenInput, findNextFocusableItem, findPreviousFocusableItem, } from '../../utils/utils';
|
|
3
|
-
export class TdsDropdownV2 {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.connectedCallback = () => {
|
|
6
|
-
if (!this.options) {
|
|
7
|
-
this.children = Array.from(this.host.children);
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
this.setDefaultOption = () => {
|
|
11
|
-
this.children = this.children.map((element) => {
|
|
12
|
-
if (this.multiselect) {
|
|
13
|
-
this.defaultValue.split(',').forEach((defaultValue) => {
|
|
14
|
-
if (defaultValue === element.value) {
|
|
15
|
-
element.setSelected(true);
|
|
16
|
-
this.selection = this.selection
|
|
17
|
-
? [...this.selection, { value: element.value, label: element.textContent }]
|
|
18
|
-
: [{ value: element.value, label: element.textContent }];
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
else {
|
|
23
|
-
if (this.defaultValue === element.value) {
|
|
24
|
-
this.reset();
|
|
25
|
-
element.setSelected(true);
|
|
26
|
-
this.selection = [{ value: element.value, label: element.textContent }];
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return element;
|
|
30
|
-
});
|
|
31
|
-
this.handleChange();
|
|
32
|
-
};
|
|
33
|
-
this.getOpenDirection = () => {
|
|
34
|
-
const dropdownMenuHeight = this.dropdownList.offsetHeight;
|
|
35
|
-
const distanceToBottom = this.host.getBoundingClientRect().top;
|
|
36
|
-
const viewportHeight = window.innerHeight;
|
|
37
|
-
if (distanceToBottom + dropdownMenuHeight + 57 > viewportHeight) {
|
|
38
|
-
this.openDirection = 'up';
|
|
39
|
-
}
|
|
40
|
-
else {
|
|
41
|
-
this.openDirection = 'down';
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
this.getValue = () => {
|
|
45
|
-
var _a, _b;
|
|
46
|
-
if (this.filter) {
|
|
47
|
-
return (_a = this.selection) === null || _a === void 0 ? void 0 : _a.map((item) => item.label).toString();
|
|
48
|
-
}
|
|
49
|
-
return (_b = this.selection) === null || _b === void 0 ? void 0 : _b.map((item) => item.label).join(', ');
|
|
50
|
-
};
|
|
51
|
-
this.handleFilter = (event) => {
|
|
52
|
-
this.tdsInput.emit(event);
|
|
53
|
-
const query = event.target.value.toLowerCase();
|
|
54
|
-
/* Check if the query is empty, and if so show all options */
|
|
55
|
-
if (query === '') {
|
|
56
|
-
this.children = this.children.map((element) => {
|
|
57
|
-
element.removeAttribute('hidden');
|
|
58
|
-
return element;
|
|
59
|
-
});
|
|
60
|
-
this.filterResult = null;
|
|
61
|
-
/* Hide the options that does not match the query */
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
this.filterResult = this.children.filter((element) => {
|
|
65
|
-
if (!element.textContent.toLowerCase().includes(query.toLowerCase())) {
|
|
66
|
-
element.setAttribute('hidden', '');
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
element.removeAttribute('hidden');
|
|
70
|
-
}
|
|
71
|
-
return !element.hasAttribute('hidden');
|
|
72
|
-
}).length;
|
|
73
|
-
}
|
|
74
|
-
};
|
|
75
|
-
this.handleFocus = (event) => {
|
|
76
|
-
this.tdsFocus.emit(event);
|
|
77
|
-
};
|
|
78
|
-
this.handleBlur = (event) => {
|
|
79
|
-
this.tdsBlur.emit(event);
|
|
80
|
-
};
|
|
81
|
-
this.handleChange = () => {
|
|
82
|
-
var _a, _b;
|
|
83
|
-
this.tdsChange.emit({
|
|
84
|
-
name: this.name,
|
|
85
|
-
value: (_b = (_a = this.selection) === null || _a === void 0 ? void 0 : _a.map((item) => item.value).toString()) !== null && _b !== void 0 ? _b : null,
|
|
86
|
-
});
|
|
87
|
-
};
|
|
88
|
-
this.name = undefined;
|
|
89
|
-
this.disabled = false;
|
|
90
|
-
this.helper = undefined;
|
|
91
|
-
this.label = undefined;
|
|
92
|
-
this.labelPosition = undefined;
|
|
93
|
-
this.modeVariant = null;
|
|
94
|
-
this.openDirection = 'auto';
|
|
95
|
-
this.placeholder = undefined;
|
|
96
|
-
this.size = 'lg';
|
|
97
|
-
this.error = false;
|
|
98
|
-
this.multiselect = false;
|
|
99
|
-
this.filter = false;
|
|
100
|
-
this.noResultText = 'No result';
|
|
101
|
-
this.defaultValue = undefined;
|
|
102
|
-
this.options = undefined;
|
|
103
|
-
this.open = false;
|
|
104
|
-
this.selection = undefined;
|
|
105
|
-
this.filterResult = undefined;
|
|
106
|
-
this.filterFocus = undefined;
|
|
107
|
-
}
|
|
108
|
-
/** Method that resets the Dropdown. */
|
|
109
|
-
async reset() {
|
|
110
|
-
this.children.forEach((element) => element.setSelected(false));
|
|
111
|
-
this.selection = null;
|
|
112
|
-
this.handleChange();
|
|
113
|
-
}
|
|
114
|
-
/** Method for setting the value of the Dropdown. */
|
|
115
|
-
async setValue(newValue, newValueLabel) {
|
|
116
|
-
if (this.multiselect) {
|
|
117
|
-
this.selection = this.selection
|
|
118
|
-
? [...this.selection, { value: newValue, label: newValueLabel }]
|
|
119
|
-
: [{ value: newValue, label: newValueLabel }];
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
this.selection = [{ value: newValue, label: newValueLabel }];
|
|
123
|
-
this.children = this.children.map((element) => {
|
|
124
|
-
if (element.value !== newValue) {
|
|
125
|
-
element.setSelected(false);
|
|
126
|
-
}
|
|
127
|
-
return element;
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
this.handleChange();
|
|
131
|
-
return this.selection;
|
|
132
|
-
}
|
|
133
|
-
/** Method for removing a selected value in the Dropdown. */
|
|
134
|
-
async removeValue(oldValue) {
|
|
135
|
-
if (this.multiselect) {
|
|
136
|
-
this.children.forEach((element) => {
|
|
137
|
-
if (element.value === oldValue) {
|
|
138
|
-
this.selection = this.selection.filter((item) => item.value !== element.value);
|
|
139
|
-
element.setSelected(false);
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
else {
|
|
144
|
-
this.reset();
|
|
145
|
-
}
|
|
146
|
-
this.handleChange();
|
|
147
|
-
return this.selection;
|
|
148
|
-
}
|
|
149
|
-
/** Method for closing the Dropdown. */
|
|
150
|
-
async close() {
|
|
151
|
-
this.open = false;
|
|
152
|
-
}
|
|
153
|
-
onAnyClick(event) {
|
|
154
|
-
if (this.open) {
|
|
155
|
-
// Source: https://lamplightdev.com/blog/2021/04/10/how-to-detect-clicks-outside-of-a-web-component/
|
|
156
|
-
const isClickOutside = !event.composedPath().includes(this.host);
|
|
157
|
-
if (isClickOutside) {
|
|
158
|
-
this.open = false;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
async onKeyDown(event) {
|
|
163
|
-
// Get the active element
|
|
164
|
-
const { activeElement } = document;
|
|
165
|
-
if (!activeElement) {
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
168
|
-
if (event.key === 'ArrowDown') {
|
|
169
|
-
/* Get the index of the currently focus index, if there is no
|
|
170
|
-
nextElementSibling return the index for the first child in our Dropdown. */
|
|
171
|
-
const startingIndex = activeElement.nextElementSibling
|
|
172
|
-
? this.children.findIndex((element) => element === activeElement.nextElementSibling)
|
|
173
|
-
: 0;
|
|
174
|
-
const elementIndex = findNextFocusableItem(this.children, startingIndex);
|
|
175
|
-
this.children[elementIndex].focus();
|
|
176
|
-
}
|
|
177
|
-
else if (event.key === 'ArrowUp') {
|
|
178
|
-
/* Get the index of the currently focus index, if there is no
|
|
179
|
-
previousElementSibling return the index for the first last in our Dropdown. */
|
|
180
|
-
const startingIndex = activeElement.nextElementSibling
|
|
181
|
-
? this.children.findIndex((element) => element === activeElement.previousElementSibling)
|
|
182
|
-
: 0;
|
|
183
|
-
const elementIndex = findPreviousFocusableItem(this.children, startingIndex);
|
|
184
|
-
this.children[elementIndex].focus();
|
|
185
|
-
}
|
|
186
|
-
else if (event.key === 'Escape') {
|
|
187
|
-
this.open = false;
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
// If the Dropdown gets closed this sets the value of the drodpown to the current selection labels or null if no selection is made.
|
|
191
|
-
handleOpenState() {
|
|
192
|
-
var _a, _b;
|
|
193
|
-
if (this.filter && this.multiselect) {
|
|
194
|
-
if (!this.open) {
|
|
195
|
-
this.inputElement.value = (_b = (_a = this.selection) === null || _a === void 0 ? void 0 : _a.map((item) => item.label).toString()) !== null && _b !== void 0 ? _b : null;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
componentDidLoad() {
|
|
200
|
-
if (this.defaultValue) {
|
|
201
|
-
this.setDefaultOption();
|
|
202
|
-
}
|
|
203
|
-
if (this.openDirection === 'auto') {
|
|
204
|
-
this.getOpenDirection();
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
render() {
|
|
208
|
-
var _a, _b, _c, _d;
|
|
209
|
-
if (this.options) {
|
|
210
|
-
let id = 0;
|
|
211
|
-
this.options.forEach((option) => {
|
|
212
|
-
appendChildElement(this.host, 'tds-dropdown-option-v2', [
|
|
213
|
-
{ key: 'value', value: option.value },
|
|
214
|
-
{ key: 'disabled', value: option.disabled.toString() },
|
|
215
|
-
], option.label, `id${id++}`);
|
|
216
|
-
});
|
|
217
|
-
this.children = Array.from(this.host.children).filter((element) => element.tagName === 'TDS-DROPDOWN-OPTION-V2');
|
|
218
|
-
}
|
|
219
|
-
appendHiddenInput(this.host, this.name, (_a = this.selection) === null || _a === void 0 ? void 0 : _a.map((item) => item.value).toString(), this.disabled);
|
|
220
|
-
return (h(Host, { role: "select", class: `${this.modeVariant ? `tds-mode-variant-${this.modeVariant}` : ''}` }, this.label && this.labelPosition === 'outside' && (h("div", { class: `label-outside ${this.disabled ? 'disabled' : ''}` }, this.label)), h("div", { class: `dropdown-select ${this.size} ${this.disabled ? 'disabled' : ''}` }, this.filter ? (h("div", { class: `filter ${this.filterFocus ? 'focus' : ''}
|
|
221
|
-
${this.disabled ? 'disabled' : ''}` }, h("div", { class: "value-wrapper" }, this.label && this.labelPosition === 'inside' && this.placeholder && (h("div", { class: `label-inside ${this.size}` }, this.label)), this.label && this.labelPosition === 'inside' && !this.placeholder && (h("div", { class: `
|
|
222
|
-
label-inside-as-placeholder
|
|
223
|
-
${this.size}
|
|
224
|
-
${((_b = this.selection) === null || _b === void 0 ? void 0 : _b.length) ? 'selected' : ''}
|
|
225
|
-
` }, this.label)), h("input", {
|
|
226
|
-
// eslint-disable-next-line no-return-assign
|
|
227
|
-
ref: (element) => (this.inputElement = element), class: `${this.labelPosition === 'inside' ? 'placeholder' : ''}`, type: "text", placeholder: this.placeholder, value: this.getValue(), disabled: this.disabled, onInput: (event) => this.handleFilter(event), onBlur: (event) => {
|
|
228
|
-
this.filterFocus = false;
|
|
229
|
-
this.handleBlur(event);
|
|
230
|
-
}, onFocus: (event) => {
|
|
231
|
-
this.open = true;
|
|
232
|
-
this.filterFocus = true;
|
|
233
|
-
this.handleFocus(event);
|
|
234
|
-
}, onKeyDown: (event) => {
|
|
235
|
-
if (event.key === 'Escape') {
|
|
236
|
-
this.open = false;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
})), h("tds-icon", { onClick: () => {
|
|
240
|
-
this.open = !this.open;
|
|
241
|
-
}, class: `${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))) : (h("button", { onClick: () => {
|
|
242
|
-
this.open = !this.open;
|
|
243
|
-
}, onKeyDown: (event) => {
|
|
244
|
-
if (event.key === 'Escape') {
|
|
245
|
-
this.open = false;
|
|
246
|
-
}
|
|
247
|
-
}, class: `
|
|
248
|
-
${this.selection ? 'value' : 'placeholder'}
|
|
249
|
-
${this.open ? 'open' : 'closed'}
|
|
250
|
-
`, disabled: this.disabled }, h("div", { class: `value-wrapper ${this.size}` }, this.label && this.labelPosition === 'inside' && this.placeholder && (h("div", { class: `label-inside ${this.size}` }, this.label)), this.label && this.labelPosition === 'inside' && !this.placeholder && (h("div", { class: `
|
|
251
|
-
label-inside-as-placeholder
|
|
252
|
-
${this.size}
|
|
253
|
-
${((_c = this.selection) === null || _c === void 0 ? void 0 : _c.length) ? 'selected' : ''}
|
|
254
|
-
` }, this.label)), h("div", { class: `placeholder ${this.size}` }, ((_d = this.selection) === null || _d === void 0 ? void 0 : _d.length) ? this.getValue() : this.placeholder), h("tds-icon", { class: `${this.open ? 'open' : 'closed'}`, name: "chevron_down", size: "16px" }))))), h("div", { ref: (element) => (this.dropdownList = element), class: `dropdown-list
|
|
255
|
-
${this.size}
|
|
256
|
-
${this.open ? 'open' : 'closed'}
|
|
257
|
-
${this.openDirection}
|
|
258
|
-
${this.label && this.labelPosition === 'outside' ? 'label-outside' : ''}` }, h("slot", null), this.filterResult === 0 && (h("div", { class: `no-result ${this.size}` }, this.noResultText))), this.helper && (h("div", { class: `helper ${this.error ? 'error' : ''} ${this.disabled ? 'disabled' : ''}` }, this.error && h("tds-icon", { name: "error", size: "16px" }), this.helper))));
|
|
259
|
-
}
|
|
260
|
-
static get is() { return "tds-dropdown-v2"; }
|
|
261
|
-
static get encapsulation() { return "shadow"; }
|
|
262
|
-
static get originalStyleUrls() {
|
|
263
|
-
return {
|
|
264
|
-
"$": ["dropdown-v2.scss"]
|
|
265
|
-
};
|
|
266
|
-
}
|
|
267
|
-
static get styleUrls() {
|
|
268
|
-
return {
|
|
269
|
-
"$": ["dropdown-v2.css"]
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
static get properties() {
|
|
273
|
-
return {
|
|
274
|
-
"name": {
|
|
275
|
-
"type": "string",
|
|
276
|
-
"mutable": false,
|
|
277
|
-
"complexType": {
|
|
278
|
-
"original": "string",
|
|
279
|
-
"resolved": "string",
|
|
280
|
-
"references": {}
|
|
281
|
-
},
|
|
282
|
-
"required": false,
|
|
283
|
-
"optional": false,
|
|
284
|
-
"docs": {
|
|
285
|
-
"tags": [],
|
|
286
|
-
"text": "Name for the Dropdowns input element."
|
|
287
|
-
},
|
|
288
|
-
"attribute": "name",
|
|
289
|
-
"reflect": false
|
|
290
|
-
},
|
|
291
|
-
"disabled": {
|
|
292
|
-
"type": "boolean",
|
|
293
|
-
"mutable": false,
|
|
294
|
-
"complexType": {
|
|
295
|
-
"original": "boolean",
|
|
296
|
-
"resolved": "boolean",
|
|
297
|
-
"references": {}
|
|
298
|
-
},
|
|
299
|
-
"required": false,
|
|
300
|
-
"optional": false,
|
|
301
|
-
"docs": {
|
|
302
|
-
"tags": [],
|
|
303
|
-
"text": "Sets the Dropdown in a disabled state"
|
|
304
|
-
},
|
|
305
|
-
"attribute": "disabled",
|
|
306
|
-
"reflect": false,
|
|
307
|
-
"defaultValue": "false"
|
|
308
|
-
},
|
|
309
|
-
"helper": {
|
|
310
|
-
"type": "string",
|
|
311
|
-
"mutable": false,
|
|
312
|
-
"complexType": {
|
|
313
|
-
"original": "string",
|
|
314
|
-
"resolved": "string",
|
|
315
|
-
"references": {}
|
|
316
|
-
},
|
|
317
|
-
"required": false,
|
|
318
|
-
"optional": false,
|
|
319
|
-
"docs": {
|
|
320
|
-
"tags": [],
|
|
321
|
-
"text": "Helper text for the Dropdown."
|
|
322
|
-
},
|
|
323
|
-
"attribute": "helper",
|
|
324
|
-
"reflect": false
|
|
325
|
-
},
|
|
326
|
-
"label": {
|
|
327
|
-
"type": "string",
|
|
328
|
-
"mutable": false,
|
|
329
|
-
"complexType": {
|
|
330
|
-
"original": "string",
|
|
331
|
-
"resolved": "string",
|
|
332
|
-
"references": {}
|
|
333
|
-
},
|
|
334
|
-
"required": false,
|
|
335
|
-
"optional": false,
|
|
336
|
-
"docs": {
|
|
337
|
-
"tags": [],
|
|
338
|
-
"text": "Label text for the Dropdown."
|
|
339
|
-
},
|
|
340
|
-
"attribute": "label",
|
|
341
|
-
"reflect": false
|
|
342
|
-
},
|
|
343
|
-
"labelPosition": {
|
|
344
|
-
"type": "string",
|
|
345
|
-
"mutable": false,
|
|
346
|
-
"complexType": {
|
|
347
|
-
"original": "'inside' | 'outside'",
|
|
348
|
-
"resolved": "\"inside\" | \"outside\"",
|
|
349
|
-
"references": {}
|
|
350
|
-
},
|
|
351
|
-
"required": false,
|
|
352
|
-
"optional": false,
|
|
353
|
-
"docs": {
|
|
354
|
-
"tags": [],
|
|
355
|
-
"text": "Label text position"
|
|
356
|
-
},
|
|
357
|
-
"attribute": "label-position",
|
|
358
|
-
"reflect": false
|
|
359
|
-
},
|
|
360
|
-
"modeVariant": {
|
|
361
|
-
"type": "string",
|
|
362
|
-
"mutable": false,
|
|
363
|
-
"complexType": {
|
|
364
|
-
"original": "'primary' | 'secondary'",
|
|
365
|
-
"resolved": "\"primary\" | \"secondary\"",
|
|
366
|
-
"references": {}
|
|
367
|
-
},
|
|
368
|
-
"required": false,
|
|
369
|
-
"optional": false,
|
|
370
|
-
"docs": {
|
|
371
|
-
"tags": [],
|
|
372
|
-
"text": "Mode variant of the component, based on current mode."
|
|
373
|
-
},
|
|
374
|
-
"attribute": "mode-variant",
|
|
375
|
-
"reflect": false,
|
|
376
|
-
"defaultValue": "null"
|
|
377
|
-
},
|
|
378
|
-
"openDirection": {
|
|
379
|
-
"type": "string",
|
|
380
|
-
"mutable": false,
|
|
381
|
-
"complexType": {
|
|
382
|
-
"original": "'up' | 'down' | 'auto'",
|
|
383
|
-
"resolved": "\"auto\" | \"down\" | \"up\"",
|
|
384
|
-
"references": {}
|
|
385
|
-
},
|
|
386
|
-
"required": false,
|
|
387
|
-
"optional": false,
|
|
388
|
-
"docs": {
|
|
389
|
-
"tags": [],
|
|
390
|
-
"text": "The direction the Dropdown should open, auto if not specified."
|
|
391
|
-
},
|
|
392
|
-
"attribute": "open-direction",
|
|
393
|
-
"reflect": false,
|
|
394
|
-
"defaultValue": "'auto'"
|
|
395
|
-
},
|
|
396
|
-
"placeholder": {
|
|
397
|
-
"type": "string",
|
|
398
|
-
"mutable": false,
|
|
399
|
-
"complexType": {
|
|
400
|
-
"original": "string",
|
|
401
|
-
"resolved": "string",
|
|
402
|
-
"references": {}
|
|
403
|
-
},
|
|
404
|
-
"required": false,
|
|
405
|
-
"optional": false,
|
|
406
|
-
"docs": {
|
|
407
|
-
"tags": [],
|
|
408
|
-
"text": "Placeholder text for the Dropdown."
|
|
409
|
-
},
|
|
410
|
-
"attribute": "placeholder",
|
|
411
|
-
"reflect": false
|
|
412
|
-
},
|
|
413
|
-
"size": {
|
|
414
|
-
"type": "string",
|
|
415
|
-
"mutable": false,
|
|
416
|
-
"complexType": {
|
|
417
|
-
"original": "'sm' | 'md' | 'lg'",
|
|
418
|
-
"resolved": "\"lg\" | \"md\" | \"sm\"",
|
|
419
|
-
"references": {}
|
|
420
|
-
},
|
|
421
|
-
"required": false,
|
|
422
|
-
"optional": false,
|
|
423
|
-
"docs": {
|
|
424
|
-
"tags": [],
|
|
425
|
-
"text": "The size of the Dropdown."
|
|
426
|
-
},
|
|
427
|
-
"attribute": "size",
|
|
428
|
-
"reflect": false,
|
|
429
|
-
"defaultValue": "'lg'"
|
|
430
|
-
},
|
|
431
|
-
"error": {
|
|
432
|
-
"type": "boolean",
|
|
433
|
-
"mutable": false,
|
|
434
|
-
"complexType": {
|
|
435
|
-
"original": "boolean",
|
|
436
|
-
"resolved": "boolean",
|
|
437
|
-
"references": {}
|
|
438
|
-
},
|
|
439
|
-
"required": false,
|
|
440
|
-
"optional": false,
|
|
441
|
-
"docs": {
|
|
442
|
-
"tags": [],
|
|
443
|
-
"text": "Sets the Dropdown in an error state"
|
|
444
|
-
},
|
|
445
|
-
"attribute": "error",
|
|
446
|
-
"reflect": false,
|
|
447
|
-
"defaultValue": "false"
|
|
448
|
-
},
|
|
449
|
-
"multiselect": {
|
|
450
|
-
"type": "boolean",
|
|
451
|
-
"mutable": false,
|
|
452
|
-
"complexType": {
|
|
453
|
-
"original": "boolean",
|
|
454
|
-
"resolved": "boolean",
|
|
455
|
-
"references": {}
|
|
456
|
-
},
|
|
457
|
-
"required": false,
|
|
458
|
-
"optional": false,
|
|
459
|
-
"docs": {
|
|
460
|
-
"tags": [],
|
|
461
|
-
"text": "Enables multiselect in the Dropdown."
|
|
462
|
-
},
|
|
463
|
-
"attribute": "multiselect",
|
|
464
|
-
"reflect": false,
|
|
465
|
-
"defaultValue": "false"
|
|
466
|
-
},
|
|
467
|
-
"filter": {
|
|
468
|
-
"type": "boolean",
|
|
469
|
-
"mutable": false,
|
|
470
|
-
"complexType": {
|
|
471
|
-
"original": "boolean",
|
|
472
|
-
"resolved": "boolean",
|
|
473
|
-
"references": {}
|
|
474
|
-
},
|
|
475
|
-
"required": false,
|
|
476
|
-
"optional": false,
|
|
477
|
-
"docs": {
|
|
478
|
-
"tags": [],
|
|
479
|
-
"text": "Enables filtration in the Dropdown."
|
|
480
|
-
},
|
|
481
|
-
"attribute": "filter",
|
|
482
|
-
"reflect": false,
|
|
483
|
-
"defaultValue": "false"
|
|
484
|
-
},
|
|
485
|
-
"noResultText": {
|
|
486
|
-
"type": "string",
|
|
487
|
-
"mutable": false,
|
|
488
|
-
"complexType": {
|
|
489
|
-
"original": "string",
|
|
490
|
-
"resolved": "string",
|
|
491
|
-
"references": {}
|
|
492
|
-
},
|
|
493
|
-
"required": false,
|
|
494
|
-
"optional": false,
|
|
495
|
-
"docs": {
|
|
496
|
-
"tags": [],
|
|
497
|
-
"text": "Text that is displayed if filter is used and there are no options that matches the search."
|
|
498
|
-
},
|
|
499
|
-
"attribute": "no-result-text",
|
|
500
|
-
"reflect": false,
|
|
501
|
-
"defaultValue": "'No result'"
|
|
502
|
-
},
|
|
503
|
-
"defaultValue": {
|
|
504
|
-
"type": "string",
|
|
505
|
-
"mutable": false,
|
|
506
|
-
"complexType": {
|
|
507
|
-
"original": "string",
|
|
508
|
-
"resolved": "string",
|
|
509
|
-
"references": {}
|
|
510
|
-
},
|
|
511
|
-
"required": false,
|
|
512
|
-
"optional": false,
|
|
513
|
-
"docs": {
|
|
514
|
-
"tags": [],
|
|
515
|
-
"text": "Default value selected in the Dropdown."
|
|
516
|
-
},
|
|
517
|
-
"attribute": "default-value",
|
|
518
|
-
"reflect": false
|
|
519
|
-
},
|
|
520
|
-
"options": {
|
|
521
|
-
"type": "unknown",
|
|
522
|
-
"mutable": false,
|
|
523
|
-
"complexType": {
|
|
524
|
-
"original": "Array<{ value: string; label: string; disabled: boolean }>",
|
|
525
|
-
"resolved": "{ value: string; label: string; disabled: boolean; }[]",
|
|
526
|
-
"references": {
|
|
527
|
-
"Array": {
|
|
528
|
-
"location": "global"
|
|
529
|
-
}
|
|
530
|
-
}
|
|
531
|
-
},
|
|
532
|
-
"required": false,
|
|
533
|
-
"optional": false,
|
|
534
|
-
"docs": {
|
|
535
|
-
"tags": [],
|
|
536
|
-
"text": "Populate the Dropdown via a JSON array"
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
};
|
|
540
|
-
}
|
|
541
|
-
static get states() {
|
|
542
|
-
return {
|
|
543
|
-
"open": {},
|
|
544
|
-
"selection": {},
|
|
545
|
-
"filterResult": {},
|
|
546
|
-
"filterFocus": {}
|
|
547
|
-
};
|
|
548
|
-
}
|
|
549
|
-
static get events() {
|
|
550
|
-
return [{
|
|
551
|
-
"method": "tdsChange",
|
|
552
|
-
"name": "tdsChange",
|
|
553
|
-
"bubbles": true,
|
|
554
|
-
"cancelable": false,
|
|
555
|
-
"composed": true,
|
|
556
|
-
"docs": {
|
|
557
|
-
"tags": [],
|
|
558
|
-
"text": "Change event for the Dropdown."
|
|
559
|
-
},
|
|
560
|
-
"complexType": {
|
|
561
|
-
"original": "{\n name: string;\n value: string;\n }",
|
|
562
|
-
"resolved": "{ name: string; value: string; }",
|
|
563
|
-
"references": {}
|
|
564
|
-
}
|
|
565
|
-
}, {
|
|
566
|
-
"method": "tdsFocus",
|
|
567
|
-
"name": "tdsFocus",
|
|
568
|
-
"bubbles": true,
|
|
569
|
-
"cancelable": false,
|
|
570
|
-
"composed": true,
|
|
571
|
-
"docs": {
|
|
572
|
-
"tags": [],
|
|
573
|
-
"text": "Focus event for the Dropdown."
|
|
574
|
-
},
|
|
575
|
-
"complexType": {
|
|
576
|
-
"original": "FocusEvent",
|
|
577
|
-
"resolved": "FocusEvent",
|
|
578
|
-
"references": {
|
|
579
|
-
"FocusEvent": {
|
|
580
|
-
"location": "global"
|
|
581
|
-
}
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
}, {
|
|
585
|
-
"method": "tdsBlur",
|
|
586
|
-
"name": "tdsBlur",
|
|
587
|
-
"bubbles": true,
|
|
588
|
-
"cancelable": false,
|
|
589
|
-
"composed": true,
|
|
590
|
-
"docs": {
|
|
591
|
-
"tags": [],
|
|
592
|
-
"text": "Blur event for the Dropdown."
|
|
593
|
-
},
|
|
594
|
-
"complexType": {
|
|
595
|
-
"original": "FocusEvent",
|
|
596
|
-
"resolved": "FocusEvent",
|
|
597
|
-
"references": {
|
|
598
|
-
"FocusEvent": {
|
|
599
|
-
"location": "global"
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
}, {
|
|
604
|
-
"method": "tdsInput",
|
|
605
|
-
"name": "tdsInput",
|
|
606
|
-
"bubbles": true,
|
|
607
|
-
"cancelable": false,
|
|
608
|
-
"composed": true,
|
|
609
|
-
"docs": {
|
|
610
|
-
"tags": [],
|
|
611
|
-
"text": "Input event for the Dropdown."
|
|
612
|
-
},
|
|
613
|
-
"complexType": {
|
|
614
|
-
"original": "InputEvent",
|
|
615
|
-
"resolved": "InputEvent",
|
|
616
|
-
"references": {
|
|
617
|
-
"InputEvent": {
|
|
618
|
-
"location": "global"
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
}
|
|
622
|
-
}];
|
|
623
|
-
}
|
|
624
|
-
static get methods() {
|
|
625
|
-
return {
|
|
626
|
-
"reset": {
|
|
627
|
-
"complexType": {
|
|
628
|
-
"signature": "() => Promise<void>",
|
|
629
|
-
"parameters": [],
|
|
630
|
-
"references": {
|
|
631
|
-
"Promise": {
|
|
632
|
-
"location": "global"
|
|
633
|
-
}
|
|
634
|
-
},
|
|
635
|
-
"return": "Promise<void>"
|
|
636
|
-
},
|
|
637
|
-
"docs": {
|
|
638
|
-
"text": "Method that resets the Dropdown.",
|
|
639
|
-
"tags": []
|
|
640
|
-
}
|
|
641
|
-
},
|
|
642
|
-
"setValue": {
|
|
643
|
-
"complexType": {
|
|
644
|
-
"signature": "(newValue: string, newValueLabel: string) => Promise<{ value: string; label: string; }[]>",
|
|
645
|
-
"parameters": [{
|
|
646
|
-
"tags": [],
|
|
647
|
-
"text": ""
|
|
648
|
-
}, {
|
|
649
|
-
"tags": [],
|
|
650
|
-
"text": ""
|
|
651
|
-
}],
|
|
652
|
-
"references": {
|
|
653
|
-
"Promise": {
|
|
654
|
-
"location": "global"
|
|
655
|
-
},
|
|
656
|
-
"HTMLTdsDropdownOptionV2Element": {
|
|
657
|
-
"location": "global"
|
|
658
|
-
}
|
|
659
|
-
},
|
|
660
|
-
"return": "Promise<{ value: string; label: string; }[]>"
|
|
661
|
-
},
|
|
662
|
-
"docs": {
|
|
663
|
-
"text": "Method for setting the value of the Dropdown.",
|
|
664
|
-
"tags": []
|
|
665
|
-
}
|
|
666
|
-
},
|
|
667
|
-
"removeValue": {
|
|
668
|
-
"complexType": {
|
|
669
|
-
"signature": "(oldValue: string) => Promise<{ value: string; label: string; }[]>",
|
|
670
|
-
"parameters": [{
|
|
671
|
-
"tags": [],
|
|
672
|
-
"text": ""
|
|
673
|
-
}],
|
|
674
|
-
"references": {
|
|
675
|
-
"Promise": {
|
|
676
|
-
"location": "global"
|
|
677
|
-
}
|
|
678
|
-
},
|
|
679
|
-
"return": "Promise<{ value: string; label: string; }[]>"
|
|
680
|
-
},
|
|
681
|
-
"docs": {
|
|
682
|
-
"text": "Method for removing a selected value in the Dropdown.",
|
|
683
|
-
"tags": []
|
|
684
|
-
}
|
|
685
|
-
},
|
|
686
|
-
"close": {
|
|
687
|
-
"complexType": {
|
|
688
|
-
"signature": "() => Promise<void>",
|
|
689
|
-
"parameters": [],
|
|
690
|
-
"references": {
|
|
691
|
-
"Promise": {
|
|
692
|
-
"location": "global"
|
|
693
|
-
}
|
|
694
|
-
},
|
|
695
|
-
"return": "Promise<void>"
|
|
696
|
-
},
|
|
697
|
-
"docs": {
|
|
698
|
-
"text": "Method for closing the Dropdown.",
|
|
699
|
-
"tags": []
|
|
700
|
-
}
|
|
701
|
-
}
|
|
702
|
-
};
|
|
703
|
-
}
|
|
704
|
-
static get elementRef() { return "host"; }
|
|
705
|
-
static get watchers() {
|
|
706
|
-
return [{
|
|
707
|
-
"propName": "open",
|
|
708
|
-
"methodName": "handleOpenState"
|
|
709
|
-
}];
|
|
710
|
-
}
|
|
711
|
-
static get listeners() {
|
|
712
|
-
return [{
|
|
713
|
-
"name": "mousedown",
|
|
714
|
-
"method": "onAnyClick",
|
|
715
|
-
"target": "window",
|
|
716
|
-
"capture": false,
|
|
717
|
-
"passive": true
|
|
718
|
-
}, {
|
|
719
|
-
"name": "keydown",
|
|
720
|
-
"method": "onKeyDown",
|
|
721
|
-
"target": undefined,
|
|
722
|
-
"capture": false,
|
|
723
|
-
"passive": false
|
|
724
|
-
}];
|
|
725
|
-
}
|
|
726
|
-
}
|