@duetds/components 6.8.2 → 6.8.3
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/hydrate/index.js +254 -58
- package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
- package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -2
- package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
- package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +1 -1
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +1 -1
- package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +1 -1
- package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +11 -3
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +17 -4
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-menu-bar.cjs.entry.js +7 -1
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +2 -2
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +9 -3
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +30 -9
- package/lib/cjs/duet-slideout.cjs.entry.js +41 -9
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +13 -3
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +31 -5
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +12 -3
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +42 -4
- package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +11 -3
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +17 -4
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +4 -1
- package/lib/cjs/duet-tray.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{focus-utils-65c3a6dd.js → focus-utils-2ff2eab6.js} +1 -1
- package/lib/cjs/{index-5bd185a8.js → index-6d5f06d0.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.css +3 -0
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +20 -0
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +16 -1
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.css +7 -0
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.css +7 -0
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +41 -2
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.css +7 -0
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +9 -1
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.css +7 -0
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +1 -1
- package/lib/collection/components/duet-number-input/duet-number-input.js +2 -2
- package/lib/collection/components/duet-slideout/duet-slideout.css +14 -0
- package/lib/collection/components/duet-slideout/duet-slideout.js +68 -6
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +7 -0
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +1 -1
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.css +16 -0
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +53 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.css +8 -1
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +33 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +7 -0
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +71 -2
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +41 -8
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +73 -3
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css +30 -0
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +29 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.css +54 -0
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +28 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +8 -0
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +7 -0
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +41 -2
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.css +7 -0
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +9 -1
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +7 -0
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +1 -1
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +3 -0
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
- package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +3 -3
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +6 -6
- package/lib/dist-custom-elements/duet-choice.js +5 -5
- package/lib/dist-custom-elements/duet-collapsible.js +6 -3
- package/lib/dist-custom-elements/duet-combobox.js +2 -2
- package/lib/dist-custom-elements/duet-contact-card.js +8 -8
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +10 -10
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +1 -1
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-footer.js +4 -4
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +8 -8
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +9 -9
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -1
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +3 -3
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +12 -4
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +20 -6
- package/lib/dist-custom-elements/duet-menu-bar-link.js +4 -4
- package/lib/dist-custom-elements/duet-menu-bar.js +9 -3
- package/lib/dist-custom-elements/duet-modal.js +7 -7
- package/lib/dist-custom-elements/duet-multiselect.js +8 -8
- package/lib/dist-custom-elements/duet-nav.js +1 -1
- package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
- package/lib/dist-custom-elements/duet-notification.js +2 -2
- package/lib/dist-custom-elements/duet-number-input.js +11 -11
- package/lib/dist-custom-elements/duet-page-heading.js +2 -2
- package/lib/dist-custom-elements/duet-pagination.js +7 -7
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-radio-group.js +6 -6
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +2 -2
- package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +1 -1
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-slideout-lang.js +4 -10
- package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +12 -5
- package/lib/dist-custom-elements/duet-slideout-panel.js +32 -10
- package/lib/dist-custom-elements/duet-slideout.js +43 -11
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +15 -4
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +35 -7
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +14 -4
- package/lib/dist-custom-elements/duet-submenu-bar.js +46 -6
- package/lib/dist-custom-elements/duet-tab-group.js +10 -10
- package/lib/dist-custom-elements/duet-tab.js +1 -1
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +8 -8
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +12 -4
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +20 -6
- package/lib/dist-custom-elements/duet-toolbar-link.js +4 -4
- package/lib/dist-custom-elements/duet-toolbar.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +3 -3
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +18 -18
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-f6dad5c3.js → p-05e73b74.js} +1 -1
- package/lib/dist-custom-elements/{p-4040e9d1.js → p-10030e7c.js} +1 -1
- package/lib/dist-custom-elements/{p-df0799f0.js → p-13d9d4b0.js} +1 -1
- package/lib/dist-custom-elements/{p-b239c17f.js → p-1cb77270.js} +2 -2
- package/lib/dist-custom-elements/{p-2f7dd873.js → p-26afb575.js} +1 -1
- package/lib/dist-custom-elements/{p-6c1ba2d9.js → p-2e97d3cf.js} +1 -1
- package/lib/dist-custom-elements/{p-c6acb315.js → p-4a7f34e4.js} +2 -2
- package/lib/dist-custom-elements/{p-7ef0b13d.js → p-4ad31816.js} +1 -1
- package/lib/dist-custom-elements/{p-68b17599.js → p-53076cdd.js} +2 -2
- package/lib/dist-custom-elements/{p-1e73f619.js → p-57aace09.js} +6 -3
- package/lib/dist-custom-elements/{p-a1c07138.js → p-5ab6461c.js} +1 -1
- package/lib/dist-custom-elements/{p-6b444ad0.js → p-681c9a42.js} +5 -5
- package/lib/dist-custom-elements/{p-015d1608.js → p-6a8cdb7b.js} +1 -1
- package/lib/dist-custom-elements/{p-27004490.js → p-7a6f9236.js} +1 -1
- package/lib/dist-custom-elements/{p-d0a59e71.js → p-84c970d9.js} +1 -1
- package/lib/dist-custom-elements/{p-17f54d13.js → p-87b5525b.js} +3 -3
- package/lib/dist-custom-elements/{p-92a173c2.js → p-89dbfa07.js} +1 -1
- package/lib/dist-custom-elements/{p-7003023f.js → p-8aa1b007.js} +1 -1
- package/lib/dist-custom-elements/{p-e76d5673.js → p-8d8f500f.js} +6 -6
- package/lib/dist-custom-elements/{p-84465a50.js → p-9556589f.js} +1 -1
- package/lib/dist-custom-elements/{p-35850774.js → p-9b6166b7.js} +1 -1
- package/lib/dist-custom-elements/{p-bd43e7e4.js → p-9bf072bd.js} +2 -2
- package/lib/dist-custom-elements/{p-07f7b627.js → p-9cfa785f.js} +3 -3
- package/lib/dist-custom-elements/{p-5881ed64.js → p-9f1bb199.js} +1 -1
- package/lib/dist-custom-elements/{p-b869fb52.js → p-a0efab88.js} +4 -4
- package/lib/dist-custom-elements/{p-f070808d.js → p-c86c6df0.js} +2 -2
- package/lib/dist-custom-elements/{p-a4002a4d.js → p-cb7de9dd.js} +1 -1
- package/lib/dist-custom-elements/{p-c828fba6.js → p-ce7b7450.js} +1 -1
- package/lib/dist-custom-elements/{p-43f613b6.js → p-d5e06462.js} +1 -1
- package/lib/dist-custom-elements/{p-4ebe6fca.js → p-db69ae9d.js} +7 -7
- package/lib/dist-custom-elements/{p-f2ee6981.js → p-dd03af24.js} +1 -1
- package/lib/dist-custom-elements/{p-a3194fa3.js → p-f7a12024.js} +8 -8
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-a2fba110.system.entry.js → p-0115b516.system.entry.js} +1 -1
- package/lib/duet/{p-24e47e60.system.entry.js → p-01833853.system.entry.js} +1 -1
- package/lib/duet/{p-5f4a75ea.system.entry.js → p-032d0db3.system.entry.js} +1 -1
- package/lib/duet/{p-d719bc5b.system.entry.js → p-0335d3ba.system.entry.js} +2 -2
- package/lib/duet/p-04a1f201.entry.js +4 -0
- package/lib/duet/{p-4a0eabaa.system.entry.js → p-07f8de09.system.entry.js} +1 -1
- package/lib/duet/{p-898b51f5.entry.js → p-0f2c807b.entry.js} +1 -1
- package/lib/duet/p-1515b46a.entry.js +4 -0
- package/lib/duet/{p-77e68564.entry.js → p-15b65a7c.entry.js} +1 -1
- package/lib/duet/p-15e1c955.entry.js +4 -0
- package/lib/duet/{p-0cc7ecde.system.entry.js → p-18a1350b.system.entry.js} +2 -2
- package/lib/duet/{p-04e7a695.system.entry.js → p-1bb2106c.system.entry.js} +1 -1
- package/lib/duet/{p-484cb1df.entry.js → p-1c21f6ee.entry.js} +1 -1
- package/lib/duet/{p-aba0c851.system.entry.js → p-1ccc3647.system.entry.js} +1 -1
- package/lib/duet/{p-e3dfa3fd.system.entry.js → p-1e86fdd0.system.entry.js} +1 -1
- package/lib/duet/{p-61b2a984.entry.js → p-1ea20994.entry.js} +1 -1
- package/lib/duet/{p-aa4d6d89.entry.js → p-1ec42ecd.entry.js} +1 -1
- package/lib/duet/{p-7b98e5b6.system.entry.js → p-20291d6a.system.entry.js} +1 -1
- package/lib/duet/{p-2c4f8685.system.entry.js → p-259eff20.system.entry.js} +1 -1
- package/lib/duet/p-268a27e0.system.entry.js +4 -0
- package/lib/duet/{p-68e640b3.system.entry.js → p-2765a53e.system.entry.js} +1 -1
- package/lib/duet/p-2a57d9b6.entry.js +4 -0
- package/lib/duet/{p-e0273afd.system.entry.js → p-2b3c2e41.system.entry.js} +1 -1
- package/lib/duet/{p-3f59ba68.entry.js → p-2c19f162.entry.js} +1 -1
- package/lib/duet/{p-05b8ca0a.system.entry.js → p-2d0a6607.system.entry.js} +1 -1
- package/lib/duet/{p-2c8c2eb0.entry.js → p-2e5b3bcf.entry.js} +1 -1
- package/lib/duet/{p-5f6f8b70.entry.js → p-2e6a3a17.entry.js} +1 -1
- package/lib/duet/{p-2020fc25.system.entry.js → p-31159c85.system.entry.js} +1 -1
- package/lib/duet/{p-0c17cc73.entry.js → p-35afcb27.entry.js} +1 -1
- package/lib/duet/p-39c79c00.system.entry.js +4 -0
- package/lib/duet/p-3ab084e8.system.entry.js +4 -0
- package/lib/duet/{p-1878784a.entry.js → p-3aeb487a.entry.js} +1 -1
- package/lib/duet/{p-3646032b.entry.js → p-3c5967bc.entry.js} +1 -1
- package/lib/duet/p-3dc1f3c6.system.entry.js +4 -0
- package/lib/duet/p-3f01f964.system.entry.js +4 -0
- package/lib/duet/{p-7204d1fd.system.entry.js → p-3ffbaf35.system.entry.js} +1 -1
- package/lib/duet/p-40b6203e.system.entry.js +4 -0
- package/lib/duet/{p-42160f39.entry.js → p-4266b177.entry.js} +1 -1
- package/lib/duet/{p-746ea729.entry.js → p-44c56bb6.entry.js} +1 -1
- package/lib/duet/{p-488a4d3f.entry.js → p-470e0520.entry.js} +1 -1
- package/lib/duet/p-475f863c.entry.js +4 -0
- package/lib/duet/{p-b457649c.entry.js → p-48a22eca.entry.js} +1 -1
- package/lib/duet/{p-7f7f4403.system.entry.js → p-49ebb54d.system.entry.js} +1 -1
- package/lib/duet/p-4af19474.entry.js +4 -0
- package/lib/duet/p-4d25be5d.entry.js +4 -0
- package/lib/duet/{p-5bc052a4.entry.js → p-4d5cb241.entry.js} +1 -1
- package/lib/duet/{p-ae043b1a.entry.js → p-4ddb8b0f.entry.js} +1 -1
- package/lib/duet/p-4f203781.js +4 -0
- package/lib/duet/{p-4e21a0e1.entry.js → p-50ee41e3.entry.js} +1 -1
- package/lib/duet/p-51588335.entry.js +4 -0
- package/lib/duet/{p-48ee2f44.entry.js → p-53de8491.entry.js} +1 -1
- package/lib/duet/p-56b49a2b.system.entry.js +4 -0
- package/lib/duet/{p-b9eec94d.entry.js → p-5a884cab.entry.js} +1 -1
- package/lib/duet/p-5bf71c27.entry.js +4 -0
- package/lib/duet/p-5fcf69f8.entry.js +4 -0
- package/lib/duet/{p-5b5238f6.system.entry.js → p-614c7065.system.entry.js} +1 -1
- package/lib/duet/{p-08577b4d.entry.js → p-64c8ddb9.entry.js} +1 -1
- package/lib/duet/{p-353cdb52.entry.js → p-68ab467a.entry.js} +1 -1
- package/lib/duet/{p-9e71007b.system.entry.js → p-70425e80.system.entry.js} +1 -1
- package/lib/duet/p-74c8d3c2.entry.js +4 -0
- package/lib/duet/{p-a5689603.system.entry.js → p-74e6b8fd.system.entry.js} +1 -1
- package/lib/duet/p-75492e02.system.entry.js +4 -0
- package/lib/duet/{p-346a2bd3.system.entry.js → p-76fdc86f.system.entry.js} +1 -1
- package/lib/duet/{p-1183c748.entry.js → p-770f94ca.entry.js} +1 -1
- package/lib/duet/p-77c2e21e.system.js +4 -0
- package/lib/duet/p-7c7f6370.entry.js +4 -0
- package/lib/duet/p-7f1506d7.entry.js +4 -0
- package/lib/duet/p-7ff34de9.entry.js +4 -0
- package/lib/duet/p-82e4f38f.entry.js +4 -0
- package/lib/duet/{p-1a769d18.entry.js → p-84cf594e.entry.js} +1 -1
- package/lib/duet/{p-3815cc9a.entry.js → p-84f17b60.entry.js} +1 -1
- package/lib/duet/{p-c99c31f7.entry.js → p-85961465.entry.js} +1 -1
- package/lib/duet/{p-6dd1beb2.entry.js → p-886c35c2.entry.js} +1 -1
- package/lib/duet/{p-ffa1f02e.system.entry.js → p-8ae86f38.system.entry.js} +1 -1
- package/lib/duet/{p-d2a65bd0.system.entry.js → p-8d4c36cc.system.entry.js} +1 -1
- package/lib/duet/{p-50e66d06.entry.js → p-8e6d9b39.entry.js} +1 -1
- package/lib/duet/{p-3d2b012c.entry.js → p-8ed7e105.entry.js} +1 -1
- package/lib/duet/p-8f1e0f63.entry.js +4 -0
- package/lib/duet/{p-5e3a7392.system.entry.js → p-9207cd90.system.entry.js} +1 -1
- package/lib/duet/{p-ef058a21.system.js → p-92d37e55.system.js} +1 -1
- package/lib/duet/{p-d48d67bc.entry.js → p-9431cbd9.entry.js} +1 -1
- package/lib/duet/{p-df278f38.system.entry.js → p-94fa2062.system.entry.js} +1 -1
- package/lib/duet/{p-0f50db76.entry.js → p-9693b127.entry.js} +1 -1
- package/lib/duet/{p-97eeacac.entry.js → p-9a911da7.entry.js} +1 -1
- package/lib/duet/{p-dc399de0.system.entry.js → p-9abc893a.system.entry.js} +1 -1
- package/lib/duet/{p-9e0534d6.entry.js → p-9aebf3f7.entry.js} +1 -1
- package/lib/duet/{p-2ed52ca0.system.entry.js → p-9ca2af16.system.entry.js} +1 -1
- package/lib/duet/{p-1e65e29d.system.entry.js → p-9d4592dc.system.entry.js} +1 -1
- package/lib/duet/{p-ec7a79f2.system.entry.js → p-9fd3df4e.system.entry.js} +1 -1
- package/lib/duet/{p-29413090.system.entry.js → p-a6653cdc.system.entry.js} +1 -1
- package/lib/duet/{p-0de14da6.system.entry.js → p-a8432547.system.entry.js} +1 -1
- package/lib/duet/{p-69617b20.entry.js → p-a8d67797.entry.js} +1 -1
- package/lib/duet/{p-f426cd26.system.entry.js → p-aabd9905.system.entry.js} +1 -1
- package/lib/duet/{p-308907c6.entry.js → p-ab4af140.entry.js} +1 -1
- package/lib/duet/p-abdd047f.system.entry.js +4 -0
- package/lib/duet/{p-70703d59.system.entry.js → p-b1296afd.system.entry.js} +1 -1
- package/lib/duet/{p-0b36298e.system.entry.js → p-b3c6d973.system.entry.js} +1 -1
- package/lib/duet/{p-f49afb80.system.entry.js → p-b7c160f8.system.entry.js} +1 -1
- package/lib/duet/{p-654e6734.system.entry.js → p-c3436d4d.system.entry.js} +1 -1
- package/lib/duet/{p-d114fc82.entry.js → p-c48232b6.entry.js} +1 -1
- package/lib/duet/p-c88e1b86.system.entry.js +4 -0
- package/lib/duet/{p-28fabb76.entry.js → p-c96b1fae.entry.js} +1 -1
- package/lib/duet/{p-d174f424.entry.js → p-c989c952.entry.js} +1 -1
- package/lib/duet/{p-41bac23d.entry.js → p-ca6f6878.entry.js} +1 -1
- package/lib/duet/{p-151a48c3.entry.js → p-cb814de3.entry.js} +1 -1
- package/lib/duet/p-cbd1e2c6.system.entry.js +4 -0
- package/lib/duet/{p-e0a55532.entry.js → p-cc332f12.entry.js} +1 -1
- package/lib/duet/p-cffc25f7.system.entry.js +4 -0
- package/lib/duet/p-d03517b4.system.entry.js +4 -0
- package/lib/duet/{p-c46a5357.js → p-d4d0fd29.js} +1 -1
- package/lib/duet/{p-4d16edd4.system.entry.js → p-d4e3b832.system.entry.js} +1 -1
- package/lib/duet/{p-cd515231.entry.js → p-d7014558.entry.js} +1 -1
- package/lib/duet/{p-f2f38e08.system.entry.js → p-d7d050f5.system.entry.js} +1 -1
- package/lib/duet/p-d871a695.system.entry.js +4 -0
- package/lib/duet/{p-582f45a6.entry.js → p-d8d0fb8f.entry.js} +1 -1
- package/lib/duet/{p-e48b3cb6.system.entry.js → p-d94e5b57.system.entry.js} +1 -1
- package/lib/duet/{p-374e2afa.system.entry.js → p-d9a1ce3e.system.entry.js} +1 -1
- package/lib/duet/p-da73f58c.system.entry.js +4 -0
- package/lib/duet/{p-06639fa9.system.js → p-dbc13c36.system.js} +1 -1
- package/lib/duet/p-dd6b8fec.system.entry.js +4 -0
- package/lib/duet/{p-0936046f.system.entry.js → p-deb0bf2b.system.entry.js} +1 -1
- package/lib/duet/{p-06e42ed2.system.entry.js → p-def345e8.system.entry.js} +1 -1
- package/lib/duet/{p-a7886626.system.entry.js → p-e30006d7.system.entry.js} +1 -1
- package/lib/duet/p-e459f448.entry.js +4 -0
- package/lib/duet/{p-7c95a58b.system.entry.js → p-e651dcce.system.entry.js} +1 -1
- package/lib/duet/{p-61f38e7c.entry.js → p-eb92e362.entry.js} +1 -1
- package/lib/duet/{p-6791f183.system.entry.js → p-ecb55af2.system.entry.js} +2 -2
- package/lib/duet/{p-642ab531.system.entry.js → p-ef7c6a28.system.entry.js} +2 -2
- package/lib/duet/p-efdc7c2e.entry.js +4 -0
- package/lib/duet/p-efe489f3.entry.js +4 -0
- package/lib/duet/{p-5db96ea2.system.entry.js → p-f5708af6.system.entry.js} +1 -1
- package/lib/duet/{p-b0a272b8.system.entry.js → p-f998b544.system.entry.js} +1 -1
- package/lib/duet/{p-b32e5d04.system.entry.js → p-fc1cf69f.system.entry.js} +1 -1
- package/lib/duet/p-fd7a5a08.entry.js +4 -0
- package/lib/duet/{p-b1a9298f.entry.js → p-fd7de93a.entry.js} +1 -1
- package/lib/duet/{p-c4c035fe.entry.js → p-fee010a2.entry.js} +1 -1
- package/lib/duet/{p-f3c7ffda.system.entry.js → p-ff84ff9d.system.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +1 -1
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-breadcrumb.entry.js +1 -1
- package/lib/esm/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm/duet-button_2.entry.js +1 -1
- package/lib/esm/duet-caption_4.entry.js +1 -1
- package/lib/esm/duet-card.entry.js +1 -1
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +2 -2
- package/lib/esm/duet-collapsible.entry.js +4 -2
- package/lib/esm/duet-combobox.entry.js +1 -1
- package/lib/esm/duet-contact-card.entry.js +1 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +1 -1
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +1 -1
- package/lib/esm/duet-grid_2.entry.js +1 -1
- package/lib/esm/duet-header_2.entry.js +1 -1
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +1 -1
- package/lib/esm/duet-input_2.entry.js +1 -1
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +11 -3
- package/lib/esm/duet-menu-bar-dropdown.entry.js +17 -4
- package/lib/esm/duet-menu-bar-link.entry.js +3 -3
- package/lib/esm/duet-menu-bar.entry.js +7 -1
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-multiselect.entry.js +1 -1
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +1 -1
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +2 -2
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +1 -1
- package/lib/esm/duet-slideout-lang.entry.js +2 -2
- package/lib/esm/duet-slideout-link.entry.js +3 -3
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +9 -3
- package/lib/esm/duet-slideout-panel.entry.js +30 -9
- package/lib/esm/duet-slideout.entry.js +41 -9
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +13 -3
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +31 -5
- package/lib/esm/duet-submenu-bar-link.entry.js +12 -3
- package/lib/esm/duet-submenu-bar.entry.js +42 -4
- package/lib/esm/duet-textarea.entry.js +1 -1
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +11 -3
- package/lib/esm/duet-toolbar-dropdown.entry.js +17 -4
- package/lib/esm/duet-toolbar-link.entry.js +3 -3
- package/lib/esm/duet-toolbar.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +4 -1
- package/lib/esm/duet-tray.entry.js +1 -1
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +3 -3
- package/lib/esm/{focus-utils-21a3a53d.js → focus-utils-24487417.js} +1 -1
- package/lib/esm/{index-bcaee850.js → index-3b6ef857.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +1 -1
- package/lib/esm-es5/duet-contact-card.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-slideout-panel.entry.js +2 -2
- package/lib/esm-es5/duet-slideout.entry.js +2 -2
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +2 -2
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/focus-utils-24487417.js +4 -0
- package/lib/esm-es5/{index-bcaee850.js → index-3b6ef857.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +4 -0
- package/lib/types/components/duet-menu-bar/duet-menu-bar.d.ts +3 -1
- package/lib/types/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.d.ts +6 -0
- package/lib/types/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.d.ts +1 -0
- package/lib/types/components/duet-slideout/duet-slideout.d.ts +9 -0
- package/lib/types/components/duet-slideout-panel/duet-slideout-panel.d.ts +5 -0
- package/lib/types/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.d.ts +5 -0
- package/lib/types/components/duet-submenu-bar/duet-submenu-bar.d.ts +11 -0
- package/lib/types/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.d.ts +10 -0
- package/lib/types/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.d.ts +9 -0
- package/lib/types/components/duet-submenu-bar-link/duet-submenu-bar-link.d.ts +5 -0
- package/lib/types/components/duet-toolbar-dropdown/duet-toolbar-dropdown.d.ts +6 -0
- package/lib/types/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.d.ts +1 -0
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +1 -0
- package/lib/types/components.d.ts +60 -0
- package/package.json +5 -5
- package/lib/duet/p-02f78e7e.entry.js +0 -4
- package/lib/duet/p-095c84a5.system.entry.js +0 -4
- package/lib/duet/p-0bc5e109.entry.js +0 -4
- package/lib/duet/p-14f3c696.system.entry.js +0 -4
- package/lib/duet/p-151ed5e0.system.entry.js +0 -4
- package/lib/duet/p-181d4b35.entry.js +0 -4
- package/lib/duet/p-1dcbe259.entry.js +0 -4
- package/lib/duet/p-28d28436.system.entry.js +0 -4
- package/lib/duet/p-3c4d9930.system.entry.js +0 -4
- package/lib/duet/p-3e428087.entry.js +0 -4
- package/lib/duet/p-40411d3b.system.entry.js +0 -4
- package/lib/duet/p-4176d5a4.entry.js +0 -4
- package/lib/duet/p-498b7d6a.system.entry.js +0 -4
- package/lib/duet/p-5fa09cdb.entry.js +0 -4
- package/lib/duet/p-61785e0b.system.entry.js +0 -4
- package/lib/duet/p-658283be.system.entry.js +0 -4
- package/lib/duet/p-6d4d5fc6.entry.js +0 -4
- package/lib/duet/p-727d0488.entry.js +0 -4
- package/lib/duet/p-72988da1.entry.js +0 -4
- package/lib/duet/p-78f118fb.entry.js +0 -4
- package/lib/duet/p-803ceb21.system.entry.js +0 -4
- package/lib/duet/p-86e6814a.entry.js +0 -4
- package/lib/duet/p-8b0d3fae.system.entry.js +0 -4
- package/lib/duet/p-9e886ecf.entry.js +0 -4
- package/lib/duet/p-a1eb24b8.system.entry.js +0 -4
- package/lib/duet/p-a7edccbb.entry.js +0 -4
- package/lib/duet/p-a8bb4f37.entry.js +0 -4
- package/lib/duet/p-aeea9d49.system.entry.js +0 -4
- package/lib/duet/p-b75cdfc6.entry.js +0 -4
- package/lib/duet/p-b8a5580a.entry.js +0 -4
- package/lib/duet/p-c3caf728.js +0 -4
- package/lib/duet/p-c7b12a60.system.js +0 -4
- package/lib/duet/p-c954e200.system.entry.js +0 -4
- package/lib/duet/p-d8ccc12d.entry.js +0 -4
- package/lib/duet/p-ea17eb88.entry.js +0 -4
- package/lib/duet/p-f3089cd4.system.entry.js +0 -4
- package/lib/duet/p-f550f63a.system.entry.js +0 -4
- package/lib/duet/p-f5623ee8.entry.js +0 -4
- package/lib/esm-es5/focus-utils-21a3a53d.js +0 -4
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { media_query_large } from "@duetds/tokens/lib/tokens.json";
|
|
5
5
|
import { h, Host } from "@stencil/core";
|
|
6
6
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
7
|
+
import { isEscapeKey } from "../../utils/keyboard-utils";
|
|
7
8
|
export class DuetSubmenuBarDropdown {
|
|
8
9
|
constructor() {
|
|
9
10
|
/**
|
|
@@ -24,6 +25,7 @@ export class DuetSubmenuBarDropdown {
|
|
|
24
25
|
};
|
|
25
26
|
this.iconSize = "small";
|
|
26
27
|
this.theme = "";
|
|
28
|
+
this.active = false;
|
|
27
29
|
this.open = false;
|
|
28
30
|
this.icon = undefined;
|
|
29
31
|
}
|
|
@@ -59,14 +61,38 @@ export class DuetSubmenuBarDropdown {
|
|
|
59
61
|
}
|
|
60
62
|
this.boundMqlFunctions = [];
|
|
61
63
|
}
|
|
64
|
+
handleEscape(e) {
|
|
65
|
+
if (isEscapeKey(e)) {
|
|
66
|
+
if (this.open) {
|
|
67
|
+
this.open = false;
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
const dropdown = this.element.closest("duet-submenu-bar");
|
|
71
|
+
dropdown.open = false;
|
|
72
|
+
dropdown.setFocus();
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Sets focus. Use this method instead of the global focus().
|
|
78
|
+
*/
|
|
79
|
+
async setFocus(options) {
|
|
80
|
+
this.button.focus(options);
|
|
81
|
+
}
|
|
62
82
|
/**
|
|
63
83
|
* render() function
|
|
64
84
|
* Always the last one in the class.
|
|
65
85
|
*/
|
|
66
86
|
render() {
|
|
67
|
-
return (h(Host, null, h("div", { class: {
|
|
68
|
-
|
|
69
|
-
|
|
87
|
+
return (h(Host, null, h("div", { class: {
|
|
88
|
+
"duet-submenu-bar-dropdown": true,
|
|
89
|
+
"duet-theme-turva": this.theme === "turva",
|
|
90
|
+
open: this.open,
|
|
91
|
+
active: this.active,
|
|
92
|
+
} }, h("button", { ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
93
|
+
open: this.open,
|
|
94
|
+
active: this.active,
|
|
95
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { theme: this.theme, name: this.icon, size: this.iconSize, margin: "none", color: "currentColor" })), h("div", { class: "label" }, h("span", { class: "label-text" }, h("slot", { name: "label" })), h("duet-icon", { class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
70
96
|
items: true,
|
|
71
97
|
hidden: !this.open,
|
|
72
98
|
} }, h("slot", null)))));
|
|
@@ -108,6 +134,24 @@ export class DuetSubmenuBarDropdown {
|
|
|
108
134
|
"reflect": false,
|
|
109
135
|
"defaultValue": "\"\""
|
|
110
136
|
},
|
|
137
|
+
"active": {
|
|
138
|
+
"type": "boolean",
|
|
139
|
+
"mutable": true,
|
|
140
|
+
"complexType": {
|
|
141
|
+
"original": "boolean",
|
|
142
|
+
"resolved": "boolean",
|
|
143
|
+
"references": {}
|
|
144
|
+
},
|
|
145
|
+
"required": false,
|
|
146
|
+
"optional": false,
|
|
147
|
+
"docs": {
|
|
148
|
+
"tags": [],
|
|
149
|
+
"text": "Active"
|
|
150
|
+
},
|
|
151
|
+
"attribute": "active",
|
|
152
|
+
"reflect": false,
|
|
153
|
+
"defaultValue": "false"
|
|
154
|
+
},
|
|
111
155
|
"open": {
|
|
112
156
|
"type": "boolean",
|
|
113
157
|
"mutable": true,
|
|
@@ -151,6 +195,32 @@ export class DuetSubmenuBarDropdown {
|
|
|
151
195
|
"iconSize": {}
|
|
152
196
|
};
|
|
153
197
|
}
|
|
198
|
+
static get methods() {
|
|
199
|
+
return {
|
|
200
|
+
"setFocus": {
|
|
201
|
+
"complexType": {
|
|
202
|
+
"signature": "(options?: FocusOptions) => Promise<void>",
|
|
203
|
+
"parameters": [{
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": ""
|
|
206
|
+
}],
|
|
207
|
+
"references": {
|
|
208
|
+
"Promise": {
|
|
209
|
+
"location": "global"
|
|
210
|
+
},
|
|
211
|
+
"FocusOptions": {
|
|
212
|
+
"location": "global"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"return": "Promise<void>"
|
|
216
|
+
},
|
|
217
|
+
"docs": {
|
|
218
|
+
"text": "Sets focus. Use this method instead of the global focus().",
|
|
219
|
+
"tags": []
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
}
|
|
154
224
|
static get elementRef() { return "element"; }
|
|
155
225
|
static get listeners() {
|
|
156
226
|
return [{
|
package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.css
CHANGED
|
@@ -46,10 +46,40 @@
|
|
|
46
46
|
font-size: 0.875rem;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
+
.duet-submenu-bar-dropdown-link:focus {
|
|
50
|
+
outline: 0;
|
|
51
|
+
box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
|
|
52
|
+
}
|
|
53
|
+
.duet-submenu-bar-dropdown-link:focus.duet-theme-turva {
|
|
54
|
+
box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
|
|
55
|
+
}
|
|
56
|
+
.duet-submenu-bar-dropdown-link.active .label {
|
|
57
|
+
position: relative;
|
|
58
|
+
}
|
|
59
|
+
.duet-submenu-bar-dropdown-link.active .label::after {
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: auto;
|
|
62
|
+
bottom: 0;
|
|
63
|
+
left: 0;
|
|
64
|
+
display: block;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 1px;
|
|
67
|
+
content: "";
|
|
68
|
+
background: rgb(0, 119, 179);
|
|
69
|
+
transform: 1px;
|
|
70
|
+
}
|
|
71
|
+
@media (min-width: 62em) {
|
|
72
|
+
.duet-submenu-bar-dropdown-link.active .label::after {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
49
76
|
.duet-submenu-bar-dropdown-link.duet-theme-turva {
|
|
50
77
|
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
51
78
|
color: rgb(23, 28, 58);
|
|
52
79
|
}
|
|
80
|
+
.duet-submenu-bar-dropdown-link.duet-theme-turva.active .label::after {
|
|
81
|
+
background: rgb(198, 12, 48);
|
|
82
|
+
}
|
|
53
83
|
@media (min-width: 62em) {
|
|
54
84
|
.duet-submenu-bar-dropdown-link:hover {
|
|
55
85
|
color: rgb(0, 77, 128);
|
package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { h, Host } from "@stencil/core";
|
|
5
5
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
|
+
import { isEscapeKey } from "../../utils/keyboard-utils";
|
|
6
7
|
export class DuetSubmenuBarDropdownLink {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.theme = "";
|
|
10
|
+
this.active = false;
|
|
9
11
|
this.href = "#";
|
|
10
12
|
this.icon = undefined;
|
|
11
13
|
this.caret = false;
|
|
@@ -17,6 +19,13 @@ export class DuetSubmenuBarDropdownLink {
|
|
|
17
19
|
componentWillLoad() {
|
|
18
20
|
inheritGlobalTheme(this);
|
|
19
21
|
}
|
|
22
|
+
handleEscape(e) {
|
|
23
|
+
if (isEscapeKey(e)) {
|
|
24
|
+
const dropdown = this.element.closest("duet-submenu-bar-dropdown");
|
|
25
|
+
dropdown.open = false;
|
|
26
|
+
dropdown.setFocus();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
20
29
|
/**
|
|
21
30
|
* render() function
|
|
22
31
|
* Always the last one in the class.
|
|
@@ -26,7 +35,8 @@ export class DuetSubmenuBarDropdownLink {
|
|
|
26
35
|
"duet-submenu-bar-dropdown-link": true,
|
|
27
36
|
"duet-theme-turva": this.theme === "turva",
|
|
28
37
|
highlight: this.highlight,
|
|
29
|
-
|
|
38
|
+
active: this.active,
|
|
39
|
+
}, "aria-current": this.active ? "true" : "false", href: this.href, onKeyUp: e => this.handleEscape(e) }, this.icon && h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" }), h("span", { class: "label" }, h("slot", null)), this.caret && h("duet-icon", { name: "action-arrow-right-small", size: "xxx-small", margin: "none" }))));
|
|
30
40
|
}
|
|
31
41
|
static get is() { return "duet-submenu-bar-dropdown-link"; }
|
|
32
42
|
static get encapsulation() { return "shadow"; }
|
|
@@ -65,6 +75,24 @@ export class DuetSubmenuBarDropdownLink {
|
|
|
65
75
|
"reflect": false,
|
|
66
76
|
"defaultValue": "\"\""
|
|
67
77
|
},
|
|
78
|
+
"active": {
|
|
79
|
+
"type": "boolean",
|
|
80
|
+
"mutable": true,
|
|
81
|
+
"complexType": {
|
|
82
|
+
"original": "boolean",
|
|
83
|
+
"resolved": "boolean",
|
|
84
|
+
"references": {}
|
|
85
|
+
},
|
|
86
|
+
"required": false,
|
|
87
|
+
"optional": false,
|
|
88
|
+
"docs": {
|
|
89
|
+
"tags": [],
|
|
90
|
+
"text": "Active"
|
|
91
|
+
},
|
|
92
|
+
"attribute": "active",
|
|
93
|
+
"reflect": false,
|
|
94
|
+
"defaultValue": "false"
|
|
95
|
+
},
|
|
68
96
|
"href": {
|
|
69
97
|
"type": "string",
|
|
70
98
|
"mutable": true,
|
|
@@ -55,10 +55,64 @@
|
|
|
55
55
|
color: rgb(0, 77, 128);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
.duet-submenu-bar-link:focus {
|
|
59
|
+
outline: 0;
|
|
60
|
+
box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
|
|
61
|
+
}
|
|
62
|
+
.duet-submenu-bar-link:focus.duet-theme-turva {
|
|
63
|
+
box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
|
|
64
|
+
}
|
|
65
|
+
@media (min-width: 62em) {
|
|
66
|
+
.duet-submenu-bar-link.active {
|
|
67
|
+
color: rgb(0, 119, 179);
|
|
68
|
+
}
|
|
69
|
+
.duet-theme-turva .duet-submenu-bar-link.active {
|
|
70
|
+
color: rgb(198, 12, 48);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
.duet-submenu-bar-link.active .label {
|
|
74
|
+
position: relative;
|
|
75
|
+
}
|
|
76
|
+
.duet-submenu-bar-link.active .label::after {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: auto;
|
|
79
|
+
bottom: 0;
|
|
80
|
+
left: 0;
|
|
81
|
+
display: block;
|
|
82
|
+
width: 100%;
|
|
83
|
+
height: 1px;
|
|
84
|
+
content: "";
|
|
85
|
+
background: rgb(0, 119, 179);
|
|
86
|
+
transform: 1px;
|
|
87
|
+
}
|
|
88
|
+
@media (min-width: 62em) {
|
|
89
|
+
.duet-submenu-bar-link.active .label::after {
|
|
90
|
+
display: none;
|
|
91
|
+
}
|
|
92
|
+
.duet-submenu-bar-link.active::after {
|
|
93
|
+
position: absolute;
|
|
94
|
+
top: auto;
|
|
95
|
+
bottom: 0;
|
|
96
|
+
left: 0;
|
|
97
|
+
display: block;
|
|
98
|
+
width: 100%;
|
|
99
|
+
height: 1px;
|
|
100
|
+
content: "";
|
|
101
|
+
background: rgb(0, 119, 179);
|
|
102
|
+
transition: 300ms ease;
|
|
103
|
+
transform: translateY(1px);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
58
106
|
.duet-submenu-bar-link.duet-theme-turva {
|
|
59
107
|
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
60
108
|
color: rgb(23, 28, 58);
|
|
61
109
|
}
|
|
110
|
+
.duet-submenu-bar-link.duet-theme-turva.active .label::after {
|
|
111
|
+
background: rgb(198, 12, 48);
|
|
112
|
+
}
|
|
113
|
+
.duet-submenu-bar-link.duet-theme-turva.active::after {
|
|
114
|
+
background: rgb(198, 12, 48);
|
|
115
|
+
}
|
|
62
116
|
@media (min-width: 62em) {
|
|
63
117
|
.duet-submenu-bar-link:hover {
|
|
64
118
|
color: rgb(0, 41, 77);
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
import { media_query_large } from "@duetds/tokens/lib/tokens.json";
|
|
5
5
|
import { h, Host } from "@stencil/core";
|
|
6
6
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
7
|
+
import { isEscapeKey } from "../../utils/keyboard-utils";
|
|
7
8
|
export class DuetSubmenuBarLink {
|
|
8
9
|
constructor() {
|
|
9
10
|
/**
|
|
@@ -21,6 +22,7 @@ export class DuetSubmenuBarLink {
|
|
|
21
22
|
};
|
|
22
23
|
this.iconSize = "small";
|
|
23
24
|
this.theme = "";
|
|
25
|
+
this.active = false;
|
|
24
26
|
this.href = "#";
|
|
25
27
|
this.icon = undefined;
|
|
26
28
|
}
|
|
@@ -50,12 +52,19 @@ export class DuetSubmenuBarLink {
|
|
|
50
52
|
}
|
|
51
53
|
this.boundMqlFunctions = [];
|
|
52
54
|
}
|
|
55
|
+
handleEscape(e) {
|
|
56
|
+
if (isEscapeKey(e)) {
|
|
57
|
+
const dropdown = this.element.closest("duet-submenu-bar");
|
|
58
|
+
dropdown.open = false;
|
|
59
|
+
dropdown.setFocus();
|
|
60
|
+
}
|
|
61
|
+
}
|
|
53
62
|
/**
|
|
54
63
|
* render() function
|
|
55
64
|
* Always the last one in the class.
|
|
56
65
|
*/
|
|
57
66
|
render() {
|
|
58
|
-
return (h(Host, null, h("a", { class: { "duet-submenu-bar-link": true, "duet-theme-turva": this.theme === "turva" }, href: this.href,
|
|
67
|
+
return (h(Host, null, h("a", { class: { "duet-submenu-bar-link": true, "duet-theme-turva": this.theme === "turva", active: this.active }, href: this.href, onKeyUp: e => this.handleEscape(e), "aria-current": this.active ? "true" : "false" }, this.icon && (h("duet-icon", { theme: this.theme, name: this.icon, size: this.iconSize, margin: "none", color: "currentColor" })), h("span", { class: "label" }, h("slot", null)))));
|
|
59
68
|
}
|
|
60
69
|
static get is() { return "duet-submenu-bar-link"; }
|
|
61
70
|
static get encapsulation() { return "shadow"; }
|
|
@@ -94,6 +103,24 @@ export class DuetSubmenuBarLink {
|
|
|
94
103
|
"reflect": false,
|
|
95
104
|
"defaultValue": "\"\""
|
|
96
105
|
},
|
|
106
|
+
"active": {
|
|
107
|
+
"type": "boolean",
|
|
108
|
+
"mutable": true,
|
|
109
|
+
"complexType": {
|
|
110
|
+
"original": "boolean",
|
|
111
|
+
"resolved": "boolean",
|
|
112
|
+
"references": {}
|
|
113
|
+
},
|
|
114
|
+
"required": false,
|
|
115
|
+
"optional": false,
|
|
116
|
+
"docs": {
|
|
117
|
+
"tags": [],
|
|
118
|
+
"text": "Active"
|
|
119
|
+
},
|
|
120
|
+
"attribute": "active",
|
|
121
|
+
"reflect": false,
|
|
122
|
+
"defaultValue": "false"
|
|
123
|
+
},
|
|
97
124
|
"href": {
|
|
98
125
|
"type": "string",
|
|
99
126
|
"mutable": true,
|
|
@@ -331,6 +331,14 @@
|
|
|
331
331
|
color: rgb(0, 41, 77);
|
|
332
332
|
text-align: left;
|
|
333
333
|
}
|
|
334
|
+
.duet-tab-group-content:focus {
|
|
335
|
+
outline: 0;
|
|
336
|
+
box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important;
|
|
337
|
+
}
|
|
338
|
+
.duet-theme-turva .duet-tab-group-content:focus {
|
|
339
|
+
outline: 0;
|
|
340
|
+
box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important;
|
|
341
|
+
}
|
|
334
342
|
.duet-tab-group-content.checked-group-content {
|
|
335
343
|
padding: 28px 0 28px 0;
|
|
336
344
|
}
|
|
@@ -54,6 +54,10 @@
|
|
|
54
54
|
color: rgb(0, 41, 77);
|
|
55
55
|
background: rgb(243, 249, 252);
|
|
56
56
|
}
|
|
57
|
+
.duet-toolbar-dropdown button:focus {
|
|
58
|
+
outline: 0;
|
|
59
|
+
box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
|
|
60
|
+
}
|
|
57
61
|
.duet-toolbar-dropdown button.open .caret {
|
|
58
62
|
transform: rotate(180deg);
|
|
59
63
|
}
|
|
@@ -105,6 +109,9 @@
|
|
|
105
109
|
color: rgb(23, 28, 58);
|
|
106
110
|
background: rgb(245, 245, 247);
|
|
107
111
|
}
|
|
112
|
+
.duet-toolbar-dropdown.duet-theme-turva button:focus {
|
|
113
|
+
box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
|
|
114
|
+
}
|
|
108
115
|
.duet-toolbar-dropdown.duet-theme-turva button.active, .duet-toolbar-dropdown.duet-theme-turva button.open {
|
|
109
116
|
color: rgb(23, 28, 58);
|
|
110
117
|
}
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { h, Host } from "@stencil/core";
|
|
5
5
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
|
+
import { isEscapeKey } from "../../utils/keyboard-utils";
|
|
6
7
|
export class DuetToolbarDropdown {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.onClick = () => {
|
|
@@ -25,6 +26,18 @@ export class DuetToolbarDropdown {
|
|
|
25
26
|
componentWillLoad() {
|
|
26
27
|
inheritGlobalTheme(this);
|
|
27
28
|
}
|
|
29
|
+
handleEscape(e) {
|
|
30
|
+
if (isEscapeKey(e)) {
|
|
31
|
+
this.open = false;
|
|
32
|
+
this.setFocus();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Sets focus. Use this method instead of the global focus().
|
|
37
|
+
*/
|
|
38
|
+
async setFocus(options) {
|
|
39
|
+
this.button.focus(options);
|
|
40
|
+
}
|
|
28
41
|
/**
|
|
29
42
|
* render() function
|
|
30
43
|
* Always the last one in the class.
|
|
@@ -38,10 +51,10 @@ export class DuetToolbarDropdown {
|
|
|
38
51
|
"duet-toolbar-dropdown": true,
|
|
39
52
|
"duet-theme-turva": this.theme === "turva",
|
|
40
53
|
[itemsAlign]: true,
|
|
41
|
-
} }, h("button", { "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", id: "button", type: "button", class: {
|
|
54
|
+
} }, h("button", { ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
42
55
|
active: this.active,
|
|
43
56
|
open: this.open,
|
|
44
|
-
}, onClick: this.onClick }, this.icon && (h("duet-icon", { theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("div", { class: "label" }, h("slot", { name: "label" }), h("duet-icon", { class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
57
|
+
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("div", { class: "label" }, h("slot", { name: "label" }), h("duet-icon", { class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
45
58
|
items: true,
|
|
46
59
|
hidden: !this.open,
|
|
47
60
|
} }, h("slot", null)))));
|
|
@@ -139,6 +152,32 @@ export class DuetToolbarDropdown {
|
|
|
139
152
|
}
|
|
140
153
|
};
|
|
141
154
|
}
|
|
155
|
+
static get methods() {
|
|
156
|
+
return {
|
|
157
|
+
"setFocus": {
|
|
158
|
+
"complexType": {
|
|
159
|
+
"signature": "(options?: FocusOptions) => Promise<void>",
|
|
160
|
+
"parameters": [{
|
|
161
|
+
"tags": [],
|
|
162
|
+
"text": ""
|
|
163
|
+
}],
|
|
164
|
+
"references": {
|
|
165
|
+
"Promise": {
|
|
166
|
+
"location": "global"
|
|
167
|
+
},
|
|
168
|
+
"FocusOptions": {
|
|
169
|
+
"location": "global"
|
|
170
|
+
}
|
|
171
|
+
},
|
|
172
|
+
"return": "Promise<void>"
|
|
173
|
+
},
|
|
174
|
+
"docs": {
|
|
175
|
+
"text": "Sets focus. Use this method instead of the global focus().",
|
|
176
|
+
"tags": []
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
}
|
|
142
181
|
static get elementRef() { return "element"; }
|
|
143
182
|
static get listeners() {
|
|
144
183
|
return [{
|
|
@@ -44,6 +44,13 @@
|
|
|
44
44
|
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
45
45
|
color: rgb(23, 28, 58);
|
|
46
46
|
}
|
|
47
|
+
.duet-toolbar-dropdown-link:focus {
|
|
48
|
+
outline: 0;
|
|
49
|
+
box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
|
|
50
|
+
}
|
|
51
|
+
.duet-toolbar-dropdown-link:focus.duet-theme-turva {
|
|
52
|
+
box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
|
|
53
|
+
}
|
|
47
54
|
.duet-toolbar-dropdown-link.active, .duet-toolbar-dropdown-link.active:hover {
|
|
48
55
|
color: rgb(255, 255, 255);
|
|
49
56
|
background: rgb(0, 119, 179);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import { h, Host } from "@stencil/core";
|
|
5
5
|
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
|
+
import { isEscapeKey } from "../../utils/keyboard-utils";
|
|
6
7
|
export class DuetToolbarDropdownLink {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.accessibleLabel = undefined;
|
|
@@ -18,6 +19,13 @@ export class DuetToolbarDropdownLink {
|
|
|
18
19
|
componentWillLoad() {
|
|
19
20
|
inheritGlobalTheme(this);
|
|
20
21
|
}
|
|
22
|
+
handleEscape(e) {
|
|
23
|
+
if (isEscapeKey(e)) {
|
|
24
|
+
const dropdown = this.element.closest("duet-toolbar-dropdown");
|
|
25
|
+
dropdown.open = false;
|
|
26
|
+
dropdown.setFocus();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
21
29
|
/**
|
|
22
30
|
* render() function
|
|
23
31
|
* Always the last one in the class.
|
|
@@ -27,7 +35,7 @@ export class DuetToolbarDropdownLink {
|
|
|
27
35
|
"duet-toolbar-dropdown-link": true,
|
|
28
36
|
"duet-theme-turva": this.theme === "turva",
|
|
29
37
|
active: this.active,
|
|
30
|
-
}, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "menuitem", "aria-label": this.accessibleLabel }, this.icon && h("duet-icon", { name: this.icon, size: "x-small", margin: "none" }), h("slot", null))));
|
|
38
|
+
}, href: this.href, lang: this.targetLanguage, hreflang: this.targetLanguage, role: "menuitem", "aria-label": this.accessibleLabel, "aria-current": this.active ? "true" : "false", onKeyUp: e => this.handleEscape(e) }, this.icon && h("duet-icon", { name: this.icon, size: "x-small", margin: "none" }), h("slot", null))));
|
|
31
39
|
}
|
|
32
40
|
static get is() { return "duet-toolbar-dropdown-link"; }
|
|
33
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,6 +52,13 @@
|
|
|
52
52
|
color: rgb(23, 28, 58);
|
|
53
53
|
background: rgb(245, 245, 247);
|
|
54
54
|
}
|
|
55
|
+
.duet-toolbar-link:focus {
|
|
56
|
+
outline: 0;
|
|
57
|
+
box-shadow: 0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179);
|
|
58
|
+
}
|
|
59
|
+
.duet-toolbar-link:focus.duet-theme-turva {
|
|
60
|
+
box-shadow: 0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58);
|
|
61
|
+
}
|
|
55
62
|
.duet-toolbar-link.active {
|
|
56
63
|
color: rgb(0, 41, 77);
|
|
57
64
|
}
|
|
@@ -21,7 +21,7 @@ export class DuetToolbarLink {
|
|
|
21
21
|
* Always the last one in the class.
|
|
22
22
|
*/
|
|
23
23
|
render() {
|
|
24
|
-
return (h(Host, null, h("a", { class: { "duet-toolbar-link": true, "duet-theme-turva": this.theme === "turva", active: this.active }, href: this.href }, this.icon && (h("duet-icon", { size: "x-small", name: this.icon, margin: "none", theme: this.theme, color: "currentColor" })), h("slot", null))));
|
|
24
|
+
return (h(Host, null, h("a", { class: { "duet-toolbar-link": true, "duet-theme-turva": this.theme === "turva", active: this.active }, href: this.href, "aria-current": this.active ? "true" : "false" }, this.icon && (h("duet-icon", { size: "x-small", name: this.icon, margin: "none", theme: this.theme, color: "currentColor" })), h("slot", null))));
|
|
25
25
|
}
|
|
26
26
|
static get is() { return "duet-toolbar-link"; }
|
|
27
27
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-9cfa785f.js';
|
|
5
5
|
|
|
6
6
|
const DuetActionButton = DuetActionButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-681c9a42.js';
|
|
5
5
|
|
|
6
6
|
const DuetAlert = DuetAlert$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-2e97d3cf.js';
|
|
5
5
|
|
|
6
6
|
const DuetBadge = DuetBadge$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-89dbfa07.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
-
import { d as defineCustomElement$2 } from './p-
|
|
6
|
+
import { d as defineCustomElement$2 } from './p-26afb575.js';
|
|
7
7
|
|
|
8
8
|
const duetBreadcrumbCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:100%;font-size:0.875rem;font-weight:inherit;color:rgb(0, 41, 77);text-decoration:none}.duet-breadcrumb:hover{color:rgb(0, 77, 128)}.duet-breadcrumb.duet-theme-turva{color:rgb(23, 28, 58)}.duet-breadcrumb.duet-theme-turva:hover{color:rgb(148, 9, 37)}.duet-breadcrumb:focus{outline:0}.duet-breadcrumb:active{opacity:0.75}:host(.user-is-tabbing) .duet-breadcrumb:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-breadcrumb.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-breadcrumb.duet-breadcrumb-without-href:hover{color:rgb(0, 41, 77)}.duet-breadcrumb.duet-breadcrumb-without-href.duet-theme-turva:hover{color:rgb(23, 28, 58)}.duet-breadcrumb.duet-breadcrumb-without-href:active{opacity:1}";
|
|
9
9
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, F as Fragment, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h, F as Fragment, d as Host } from './p-89dbfa07.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { g as getLocaleString } from './p-6c05e879.js';
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-26afb575.js';
|
|
8
8
|
|
|
9
9
|
var actionArrowRightSmall={"title":"action-arrow-right-small","tags":"action arrow right small caret","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z\"/></svg>"};
|
|
10
10
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetButton$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetButton$1, d as defineCustomElement$1 } from './p-a0efab88.js';
|
|
5
5
|
|
|
6
6
|
const DuetButton = DuetButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCaption$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCaption$1, d as defineCustomElement$1 } from './p-9556589f.js';
|
|
5
5
|
|
|
6
6
|
const DuetCaption = DuetCaption$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Host } from './p-89dbfa07.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { c as createID } from './p-c1325e35.js';
|
|
7
7
|
import { i as isKeyboardClick } from './p-d8549efe.js';
|
|
8
8
|
import { s as sanitizeString } from './p-5a9d75e1.js';
|
|
9
9
|
import { g as getColorByName } from './p-9ed347f9.js';
|
|
10
|
-
import { d as defineCustomElement$3 } from './p-
|
|
11
|
-
import { d as defineCustomElement$2 } from './p-
|
|
10
|
+
import { d as defineCustomElement$3 } from './p-26afb575.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-9b6166b7.js';
|
|
12
12
|
|
|
13
13
|
const duetHeadingLevels = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
14
14
|
const duetBlock = "div";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCheckbox$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCheckbox$1, d as defineCustomElement$1 } from './p-10030e7c.js';
|
|
5
5
|
|
|
6
6
|
const DuetCheckbox = DuetCheckbox$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCheckmark$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCheckmark$1, d as defineCustomElement$1 } from './p-dd03af24.js';
|
|
5
5
|
|
|
6
6
|
const DuetCheckmark = DuetCheckmark$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|