@duetds/components 7.0.3 → 7.0.4
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 +45 -5
- 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-banner.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-callout.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-chip.cjs.entry.js +26 -3
- package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
- 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 +1 -1
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
- package/lib/cjs/duet-modal.cjs.entry.js +3 -3
- 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 +1 -1
- 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-popup-menu-item.cjs.entry.js +1 -1
- package/lib/cjs/duet-popup-menu.cjs.entry.js +2 -2
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-promo-card.cjs.entry.js +5 -3
- 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 +1 -1
- 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-shaped-image.cjs.entry.js +1 -1
- package/lib/cjs/duet-show-more.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
- 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 +1 -1
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-tooltip.cjs.entry.js +2 -2
- 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-upload-item.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-9d36c22c.js → focus-utils-667a4f83.js} +1 -1
- package/lib/cjs/{index-4a9e6a8d.js → index-319e30bb.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{teleport-04ad16c2.js → teleport-18e2b4b9.js} +14 -0
- package/lib/collection/components/duet-chip/duet-chip.css +5 -5
- package/lib/collection/components/duet-chip/duet-chip.js +29 -3
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +7 -0
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +20 -1
- package/lib/collection/utils/teleport.js +14 -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-banner.js +4 -4
- 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-callout.js +3 -3
- 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-chip.js +27 -4
- package/lib/dist-custom-elements/duet-choice-group.js +8 -8
- package/lib/dist-custom-elements/duet-choice.js +5 -5
- package/lib/dist-custom-elements/duet-collapsible.js +2 -2
- 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 +12 -12
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +7 -7
- 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 +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
- package/lib/dist-custom-elements/duet-modal.js +8 -8
- package/lib/dist-custom-elements/duet-multiselect.js +10 -10
- 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-popup-menu-item.js +2 -2
- package/lib/dist-custom-elements/duet-popup-menu.js +2 -2
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-promo-card.js +9 -6
- package/lib/dist-custom-elements/duet-radio-group.js +8 -8
- 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-shaped-image.js +1 -1
- package/lib/dist-custom-elements/duet-show-more.js +5 -5
- package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
- package/lib/dist-custom-elements/duet-slideout.js +2 -2
- 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 +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar.js +2 -2
- package/lib/dist-custom-elements/duet-tab-group.js +13 -13
- 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 +10 -10
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip-popup.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-item.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-7fff787b.js → p-0a5bc76d.js} +1 -1
- package/lib/dist-custom-elements/{p-45c275e3.js → p-0c12cea9.js} +1 -1
- package/lib/dist-custom-elements/{p-a1c19594.js → p-175941db.js} +2 -2
- package/lib/dist-custom-elements/{p-09eb437f.js → p-1aff20dc.js} +2 -2
- package/lib/dist-custom-elements/{p-bed00554.js → p-2007bad3.js} +1 -1
- package/lib/dist-custom-elements/{p-cae59a50.js → p-288a3be1.js} +1 -1
- package/lib/dist-custom-elements/{p-f6227b28.js → p-2f34816f.js} +1 -1
- package/lib/dist-custom-elements/{p-cdbbb365.js → p-3af7a8f7.js} +8 -8
- package/lib/dist-custom-elements/{p-01ca1405.js → p-3bae0600.js} +1 -1
- package/lib/dist-custom-elements/{p-a7d442ff.js → p-3c204dbe.js} +2 -2
- package/lib/dist-custom-elements/{p-c7e555d3.js → p-3f6149bf.js} +1 -1
- package/lib/dist-custom-elements/{p-56964577.js → p-42c5573b.js} +1 -1
- package/lib/dist-custom-elements/{p-bccea015.js → p-57a42162.js} +1 -1
- package/lib/dist-custom-elements/{p-394daa26.js → p-57e02127.js} +2 -2
- package/lib/dist-custom-elements/{p-c9bfb590.js → p-5c3bcf22.js} +3 -3
- package/lib/dist-custom-elements/{p-354db269.js → p-71d31bcd.js} +1 -1
- package/lib/dist-custom-elements/{p-63c149ab.js → p-7394e25f.js} +14 -0
- package/lib/dist-custom-elements/{p-4ae08034.js → p-77f70890.js} +2 -2
- package/lib/dist-custom-elements/{p-7eb86adf.js → p-78123037.js} +10 -10
- package/lib/dist-custom-elements/{p-a55c52a6.js → p-7b123b3e.js} +5 -5
- package/lib/dist-custom-elements/{p-8737788d.js → p-805ba7b9.js} +1 -1
- package/lib/dist-custom-elements/{p-2e6b1a33.js → p-8bd6e1bc.js} +1 -1
- package/lib/dist-custom-elements/{p-50541198.js → p-9284aee2.js} +4 -4
- package/lib/dist-custom-elements/{p-211b14c7.js → p-963c4150.js} +1 -1
- package/lib/dist-custom-elements/{p-45db67dd.js → p-966b5d62.js} +5 -5
- package/lib/dist-custom-elements/{p-781b7543.js → p-97227973.js} +3 -3
- package/lib/dist-custom-elements/{p-ba3d08bc.js → p-9c5d63ad.js} +1 -1
- package/lib/dist-custom-elements/{p-8d1bc112.js → p-a058928f.js} +1 -1
- package/lib/dist-custom-elements/{p-f51043ac.js → p-b267cbea.js} +1 -1
- package/lib/dist-custom-elements/{p-fb1123dc.js → p-b2fb181b.js} +10 -10
- package/lib/dist-custom-elements/{p-e04963b7.js → p-b80858dd.js} +1 -1
- package/lib/dist-custom-elements/{p-17d6c361.js → p-bb04fe7f.js} +1 -1
- package/lib/dist-custom-elements/{p-94169381.js → p-cfb28a0c.js} +6 -6
- package/lib/dist-custom-elements/{p-7308ef79.js → p-dff1e67c.js} +3 -3
- package/lib/dist-custom-elements/{p-81f7ebce.js → p-e8712b99.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-1acd8a42.entry.js → p-01c7ea4c.entry.js} +1 -1
- package/lib/duet/p-03301834.system.entry.js +4 -0
- package/lib/duet/{p-cd703e26.entry.js → p-0378492d.entry.js} +1 -1
- package/lib/duet/{p-25118401.system.entry.js → p-03adf8c5.system.entry.js} +1 -1
- package/lib/duet/{p-0e624782.entry.js → p-0536d4f1.entry.js} +1 -1
- package/lib/duet/{p-5179161b.system.entry.js → p-07e6c008.system.entry.js} +1 -1
- package/lib/duet/{p-f7123e67.system.entry.js → p-088a661f.system.entry.js} +1 -1
- package/lib/duet/{p-3ddf6916.system.entry.js → p-0bdfb054.system.entry.js} +1 -1
- package/lib/duet/{p-87283b10.system.entry.js → p-0ca57e44.system.entry.js} +1 -1
- package/lib/duet/{p-cb557764.system.entry.js → p-0e979bdf.system.entry.js} +1 -1
- package/lib/duet/{p-954f4a86.entry.js → p-0ffc30a9.entry.js} +1 -1
- package/lib/duet/{p-1e6aaa57.entry.js → p-123a88d7.entry.js} +1 -1
- package/lib/duet/{p-280428d4.entry.js → p-141c3785.entry.js} +1 -1
- package/lib/duet/{p-dbdfe515.entry.js → p-1531761d.entry.js} +1 -1
- package/lib/duet/{p-425b2c22.entry.js → p-160e3d1a.entry.js} +1 -1
- package/lib/duet/p-16aa0b6d.js +4 -0
- package/lib/duet/{p-c07132c5.system.entry.js → p-1707d400.system.entry.js} +1 -1
- package/lib/duet/{p-5245c60b.entry.js → p-17b1d9eb.entry.js} +1 -1
- package/lib/duet/{p-72eae333.entry.js → p-17bdab0e.entry.js} +1 -1
- package/lib/duet/{p-79a63404.entry.js → p-1b798cdc.entry.js} +1 -1
- package/lib/duet/{p-a0d59f13.system.entry.js → p-1f2e1726.system.entry.js} +1 -1
- package/lib/duet/{p-856e3160.entry.js → p-207c9c44.entry.js} +1 -1
- package/lib/duet/{p-4bd7256d.entry.js → p-289de2ad.entry.js} +1 -1
- package/lib/duet/{p-7a64cc9f.entry.js → p-28ce8bb5.entry.js} +1 -1
- package/lib/duet/{p-eaf4c304.entry.js → p-2917eb62.entry.js} +1 -1
- package/lib/duet/{p-1fd99601.entry.js → p-293a061c.entry.js} +1 -1
- package/lib/duet/p-2bf922c1.system.js +4 -0
- package/lib/duet/{p-2f2588e7.system.entry.js → p-2ca652ba.system.entry.js} +1 -1
- package/lib/duet/{p-e4ef1c35.system.entry.js → p-311f9175.system.entry.js} +1 -1
- package/lib/duet/{p-4109f236.entry.js → p-315dbcb4.entry.js} +1 -1
- package/lib/duet/{p-7bea960a.system.entry.js → p-327ade54.system.entry.js} +1 -1
- package/lib/duet/{p-53260ee7.entry.js → p-346e8e6c.entry.js} +1 -1
- package/lib/duet/{p-58890082.entry.js → p-34c79d16.entry.js} +1 -1
- package/lib/duet/p-38797671.system.js +4 -0
- package/lib/duet/{p-84b00b10.entry.js → p-3bcf0e0c.entry.js} +1 -1
- package/lib/duet/{p-0364ebf1.system.entry.js → p-3cfb3848.system.entry.js} +1 -1
- package/lib/duet/{p-490010fc.system.entry.js → p-3dca9b7e.system.entry.js} +1 -1
- package/lib/duet/{p-4ee75836.system.entry.js → p-3f55918c.system.entry.js} +1 -1
- package/lib/duet/{p-86774630.entry.js → p-40123642.entry.js} +1 -1
- package/lib/duet/{p-850a6fe5.entry.js → p-40144fe2.entry.js} +1 -1
- package/lib/duet/{p-e1177287.system.entry.js → p-4468cf59.system.entry.js} +1 -1
- package/lib/duet/{p-d71561ab.system.entry.js → p-462d86f5.system.entry.js} +1 -1
- package/lib/duet/{p-34735aa7.system.entry.js → p-4934db85.system.entry.js} +1 -1
- package/lib/duet/{p-6c74ff7d.entry.js → p-4a28ce2a.entry.js} +1 -1
- package/lib/duet/{p-bdd04620.entry.js → p-4cf06df4.entry.js} +1 -1
- package/lib/duet/{p-7b5f2256.system.entry.js → p-53e6d1bd.system.entry.js} +1 -1
- package/lib/duet/{p-15509f6e.system.entry.js → p-547cedf7.system.entry.js} +1 -1
- package/lib/duet/{p-d45f5318.system.entry.js → p-5498fa78.system.entry.js} +1 -1
- package/lib/duet/{p-133fa5b9.entry.js → p-577b7a04.entry.js} +1 -1
- package/lib/duet/{p-e7a42177.system.entry.js → p-57c6e5ee.system.entry.js} +1 -1
- package/lib/duet/{p-402fe9bb.entry.js → p-5923daf6.entry.js} +1 -1
- package/lib/duet/{p-05331b47.system.entry.js → p-5c5eabeb.system.entry.js} +1 -1
- package/lib/duet/{p-a3709ba8.entry.js → p-5c886ca3.entry.js} +1 -1
- package/lib/duet/{p-fe503601.system.entry.js → p-5d391571.system.entry.js} +1 -1
- package/lib/duet/{p-ec0d4516.system.entry.js → p-5fb5197f.system.entry.js} +1 -1
- package/lib/duet/{p-762d544b.entry.js → p-5fd8544a.entry.js} +1 -1
- package/lib/duet/{p-7ffa30cc.entry.js → p-618be70d.entry.js} +1 -1
- package/lib/duet/{p-5e21ade4.entry.js → p-61b928b9.entry.js} +1 -1
- package/lib/duet/{p-9fd9c565.entry.js → p-6440b594.entry.js} +1 -1
- package/lib/duet/{p-be8d6185.entry.js → p-648b3208.entry.js} +1 -1
- package/lib/duet/{p-655d18ed.entry.js → p-675ade8b.entry.js} +1 -1
- package/lib/duet/{p-cc697997.entry.js → p-69a57654.entry.js} +1 -1
- package/lib/duet/{p-837d2428.entry.js → p-6a43c3d5.entry.js} +1 -1
- package/lib/duet/{p-025aee18.system.entry.js → p-6c053c50.system.entry.js} +1 -1
- package/lib/duet/{p-1f3ef54c.system.entry.js → p-6e3445f4.system.entry.js} +1 -1
- package/lib/duet/{p-b3007a59.system.entry.js → p-718bbfc5.system.entry.js} +1 -1
- package/lib/duet/{p-a96baa2c.entry.js → p-7233b7dc.entry.js} +1 -1
- package/lib/duet/p-7394e25f.js +4 -0
- package/lib/duet/{p-289db8d5.system.entry.js → p-73a10c0b.system.entry.js} +1 -1
- package/lib/duet/{p-b1840d01.system.entry.js → p-7552ad86.system.entry.js} +1 -1
- package/lib/duet/{p-71d9491f.system.entry.js → p-75c3f4c0.system.entry.js} +1 -1
- package/lib/duet/{p-2cd983a5.entry.js → p-792ef5b7.entry.js} +1 -1
- package/lib/duet/{p-8a548bdd.system.entry.js → p-7b932d97.system.entry.js} +2 -2
- package/lib/duet/{p-a217bbe6.system.entry.js → p-7e9b2142.system.entry.js} +1 -1
- package/lib/duet/{p-28a389e9.entry.js → p-802b8355.entry.js} +1 -1
- package/lib/duet/{p-9515b9e9.entry.js → p-81b80553.entry.js} +1 -1
- package/lib/duet/{p-dbbd2827.system.entry.js → p-82566733.system.entry.js} +1 -1
- package/lib/duet/{p-525bc6aa.system.entry.js → p-833feae6.system.entry.js} +1 -1
- package/lib/duet/p-8793bb34.entry.js +4 -0
- package/lib/duet/{p-b6871f74.entry.js → p-8a42beda.entry.js} +1 -1
- package/lib/duet/{p-cfefa79a.system.entry.js → p-8aa280f9.system.entry.js} +1 -1
- package/lib/duet/{p-d93fc04f.entry.js → p-8b1b06da.entry.js} +1 -1
- package/lib/duet/{p-10fdf4b6.entry.js → p-8fbf3ff6.entry.js} +1 -1
- package/lib/duet/{p-50810916.entry.js → p-90fa9e6e.entry.js} +1 -1
- package/lib/duet/p-91748013.entry.js +4 -0
- package/lib/duet/{p-f7553fe0.entry.js → p-91baec23.entry.js} +1 -1
- package/lib/duet/{p-319dda98.entry.js → p-92d02b5c.entry.js} +1 -1
- package/lib/duet/{p-f3a5f3b1.system.entry.js → p-937b5c95.system.entry.js} +1 -1
- package/lib/duet/{p-4e0c4511.entry.js → p-94215f65.entry.js} +1 -1
- package/lib/duet/{p-343fbad0.entry.js → p-945fd23a.entry.js} +1 -1
- package/lib/duet/{p-e607d30b.system.entry.js → p-992557fa.system.entry.js} +1 -1
- package/lib/duet/{p-a6f577f9.entry.js → p-99f0fae9.entry.js} +1 -1
- package/lib/duet/{p-173df2e4.system.entry.js → p-9a401f2c.system.entry.js} +1 -1
- package/lib/duet/{p-fb79c3a3.system.entry.js → p-9ba197ac.system.entry.js} +2 -2
- package/lib/duet/{p-f37cc46d.entry.js → p-9c8b9927.entry.js} +1 -1
- package/lib/duet/{p-596bd6ac.system.entry.js → p-9da464aa.system.entry.js} +1 -1
- package/lib/duet/{p-3934691c.entry.js → p-a09aa4ba.entry.js} +1 -1
- package/lib/duet/{p-57d8583f.system.entry.js → p-a0d6fad9.system.entry.js} +1 -1
- package/lib/duet/{p-d5e0202d.system.entry.js → p-a10f7f46.system.entry.js} +1 -1
- package/lib/duet/{p-dd5ad15d.system.entry.js → p-a2b81ad4.system.entry.js} +1 -1
- package/lib/duet/{p-e811819e.system.entry.js → p-a37c4fbc.system.entry.js} +1 -1
- package/lib/duet/{p-d99a4a1a.entry.js → p-a3c12f34.entry.js} +1 -1
- package/lib/duet/{p-0907384b.entry.js → p-a7498022.entry.js} +1 -1
- package/lib/duet/{p-9fde0cba.system.entry.js → p-a894d8ef.system.entry.js} +1 -1
- package/lib/duet/{p-29a62a28.system.entry.js → p-a9c06558.system.entry.js} +1 -1
- package/lib/duet/{p-98822436.system.entry.js → p-a9c261ba.system.entry.js} +1 -1
- package/lib/duet/{p-d66bc2f6.system.entry.js → p-a9de62bc.system.entry.js} +1 -1
- package/lib/duet/{p-699d3413.system.entry.js → p-ad9f0652.system.entry.js} +1 -1
- package/lib/duet/{p-6a751733.system.entry.js → p-aef57e05.system.entry.js} +1 -1
- package/lib/duet/{p-7f169255.system.entry.js → p-af19e892.system.entry.js} +1 -1
- package/lib/duet/{p-e4d787d4.system.entry.js → p-af2421e9.system.entry.js} +1 -1
- package/lib/duet/{p-12049cf2.system.entry.js → p-af5fe245.system.entry.js} +1 -1
- package/lib/duet/p-b06d3b6b.system.entry.js +4 -0
- package/lib/duet/{p-997a296b.entry.js → p-b10ebe0a.entry.js} +1 -1
- package/lib/duet/{p-90501add.system.entry.js → p-b4aa698b.system.entry.js} +1 -1
- package/lib/duet/{p-6227b59a.js → p-b6d6d658.js} +1 -1
- package/lib/duet/{p-9aed3b29.entry.js → p-b93753a5.entry.js} +1 -1
- package/lib/duet/{p-63f39f13.system.entry.js → p-ba6b526a.system.entry.js} +1 -1
- package/lib/duet/{p-f221b4d3.entry.js → p-be1e20e9.entry.js} +1 -1
- package/lib/duet/{p-8ac86d47.entry.js → p-c1847f8b.entry.js} +1 -1
- package/lib/duet/{p-aca6a0bc.system.entry.js → p-c24c4722.system.entry.js} +1 -1
- package/lib/duet/{p-f9e17027.system.entry.js → p-c6e8bfef.system.entry.js} +1 -1
- package/lib/duet/{p-9823d394.entry.js → p-c72d03aa.entry.js} +1 -1
- package/lib/duet/p-c82bbd85.entry.js +4 -0
- package/lib/duet/{p-a35ebeba.system.entry.js → p-c97ceb80.system.entry.js} +1 -1
- package/lib/duet/{p-fd48f566.system.entry.js → p-cb221781.system.entry.js} +1 -1
- package/lib/duet/{p-443cb5e5.system.entry.js → p-cb8e71fc.system.entry.js} +1 -1
- package/lib/duet/{p-02171ea9.entry.js → p-cb94ffa6.entry.js} +1 -1
- package/lib/duet/{p-1f56f0d0.system.entry.js → p-cbbe42f5.system.entry.js} +1 -1
- package/lib/duet/{p-533732f2.entry.js → p-ce33bf44.entry.js} +1 -1
- package/lib/duet/{p-7196f608.system.entry.js → p-cfd0f787.system.entry.js} +1 -1
- package/lib/duet/{p-143c559d.entry.js → p-d085c819.entry.js} +1 -1
- package/lib/duet/{p-a79ff998.entry.js → p-d1dded0d.entry.js} +1 -1
- package/lib/duet/{p-02a6db74.system.entry.js → p-d4f23a84.system.entry.js} +1 -1
- package/lib/duet/{p-53782108.system.entry.js → p-d55907fe.system.entry.js} +1 -1
- package/lib/duet/{p-796e869b.system.js → p-d7159142.system.js} +1 -1
- package/lib/duet/{p-499dd9e0.system.entry.js → p-daecfcdd.system.entry.js} +1 -1
- package/lib/duet/{p-4e84c555.entry.js → p-dbb06949.entry.js} +1 -1
- package/lib/duet/{p-5b888a7f.entry.js → p-dcd5c72b.entry.js} +1 -1
- package/lib/duet/{p-729495d6.entry.js → p-de03d535.entry.js} +1 -1
- package/lib/duet/{p-0bcd462e.system.entry.js → p-deb27a44.system.entry.js} +1 -1
- package/lib/duet/{p-fd8f8c6a.system.entry.js → p-df06d448.system.entry.js} +1 -1
- package/lib/duet/{p-39414352.system.entry.js → p-e3df0b45.system.entry.js} +1 -1
- package/lib/duet/{p-191b1eb6.system.entry.js → p-e58c8fec.system.entry.js} +1 -1
- package/lib/duet/{p-ee665aea.system.entry.js → p-e67b7a8a.system.entry.js} +1 -1
- package/lib/duet/{p-5d25f767.entry.js → p-e8315560.entry.js} +1 -1
- package/lib/duet/{p-ae2d3837.entry.js → p-e8778e62.entry.js} +1 -1
- package/lib/duet/{p-6ebbe837.entry.js → p-e8bd1272.entry.js} +1 -1
- package/lib/duet/{p-e3ddccbb.system.entry.js → p-eabda61d.system.entry.js} +1 -1
- package/lib/duet/{p-9ce3f188.entry.js → p-eadc7225.entry.js} +1 -1
- package/lib/duet/{p-e19aa387.entry.js → p-eb6b1675.entry.js} +1 -1
- package/lib/duet/{p-52a9fb51.entry.js → p-eebdd34f.entry.js} +1 -1
- package/lib/duet/{p-c4584f42.entry.js → p-eed2cb3c.entry.js} +1 -1
- package/lib/duet/{p-3a072153.system.entry.js → p-ef58820c.system.entry.js} +1 -1
- package/lib/duet/{p-569f4139.entry.js → p-f2b2855c.entry.js} +1 -1
- package/lib/duet/{p-e10b81c6.system.entry.js → p-f3832666.system.entry.js} +1 -1
- package/lib/duet/{p-2c80c4ed.system.js → p-f4a6807b.system.js} +1 -1
- package/lib/duet/{p-523cd807.system.entry.js → p-f9fc8bd8.system.entry.js} +1 -1
- package/lib/duet/{p-d676525a.entry.js → p-fa08ad7c.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-banner.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-callout.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-chip.entry.js +26 -3
- package/lib/esm/duet-choice_2.entry.js +2 -2
- package/lib/esm/duet-collapsible.entry.js +1 -1
- 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 +1 -1
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar.entry.js +1 -1
- package/lib/esm/duet-modal.entry.js +3 -3
- 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 +1 -1
- package/lib/esm/duet-page-heading.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +1 -1
- package/lib/esm/duet-popup-menu-item.entry.js +1 -1
- package/lib/esm/duet-popup-menu.entry.js +2 -2
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-promo-card.entry.js +5 -3
- 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 +1 -1
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +1 -1
- package/lib/esm/duet-shaped-image.entry.js +1 -1
- package/lib/esm/duet-show-more.entry.js +1 -1
- package/lib/esm/duet-slideout-lang.entry.js +1 -1
- package/lib/esm/duet-slideout-link.entry.js +1 -1
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm/duet-slideout-panel.entry.js +2 -2
- package/lib/esm/duet-slideout.entry.js +2 -2
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar.entry.js +1 -1
- 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 +1 -1
- package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm/duet-toolbar-link.entry.js +1 -1
- package/lib/esm/duet-toolbar.entry.js +1 -1
- package/lib/esm/duet-tooltip-button_2.entry.js +2 -2
- package/lib/esm/duet-tooltip.entry.js +2 -2
- package/lib/esm/duet-tray.entry.js +1 -1
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-upload-item.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-ee387669.js → focus-utils-eb9b1f72.js} +1 -1
- package/lib/esm/{index-bda75cd5.js → index-cc1bfc90.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm/{teleport-4ede216d.js → teleport-6b18ccae.js} +14 -0
- package/lib/esm-es5/duet-action-button.entry.js +2 -2
- 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-banner.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-callout.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-chip.entry.js +2 -2
- 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 +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- 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-popup-menu-item.entry.js +1 -1
- package/lib/esm-es5/duet-popup-menu.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-promo-card.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 +1 -1
- 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-shaped-image.entry.js +1 -1
- package/lib/esm-es5/duet-show-more.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 +1 -1
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- 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 +1 -1
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- 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-button_2.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-upload-item.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-ee387669.js → focus-utils-eb9b1f72.js} +1 -1
- package/lib/esm-es5/{index-bda75cd5.js → index-cc1bfc90.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/teleport-6b18ccae.js +4 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +7 -1
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +4 -0
- package/lib/types/components.d.ts +10 -2
- package/lib/types/utils/teleport.d.ts +3 -0
- package/package.json +5 -5
- package/lib/duet/p-11c572a5.js +0 -4
- package/lib/duet/p-45d92a24.system.js +0 -4
- package/lib/duet/p-63c149ab.js +0 -4
- package/lib/duet/p-780d4ac1.system.entry.js +0 -4
- package/lib/duet/p-787e088e.entry.js +0 -4
- package/lib/duet/p-8cbf685e.entry.js +0 -4
- package/lib/duet/p-dacc151d.system.entry.js +0 -4
- package/lib/duet/p-ee46ab88.entry.js +0 -4
- package/lib/duet/p-f99da11a.system.js +0 -4
- package/lib/esm-es5/teleport-4ede216d.js +0 -4
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
*/
|
|
13
13
|
class Teleport {
|
|
14
14
|
constructor(element, target) {
|
|
15
|
+
this.isReact = this._isReact();
|
|
16
|
+
this.isActive = false;
|
|
15
17
|
this.element = element;
|
|
16
18
|
this.target = target || document.body;
|
|
17
19
|
this.teleportId = `${Math.random()}-${Date.now()}`.substring(2);
|
|
@@ -20,6 +22,10 @@ class Teleport {
|
|
|
20
22
|
* @param makeSiblingsInert - make all siblings of the element inert, use only with modals
|
|
21
23
|
*/
|
|
22
24
|
go(makeSiblingsInert = false) {
|
|
25
|
+
// Teleporting breaks modals in React
|
|
26
|
+
if (this.isReact && makeSiblingsInert) {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
23
29
|
this.stub = document.createElement("div");
|
|
24
30
|
this.element.insertAdjacentElement("afterend", this.stub);
|
|
25
31
|
this.target.appendChild(this.element);
|
|
@@ -28,8 +34,13 @@ class Teleport {
|
|
|
28
34
|
}
|
|
29
35
|
this.deletionObserver = new MutationObserver(this._deletionObserverCallback.bind(this));
|
|
30
36
|
this.deletionObserver.observe(document.documentElement, { childList: true, subtree: true });
|
|
37
|
+
this.isActive = true;
|
|
31
38
|
}
|
|
32
39
|
resume(delay = 0) {
|
|
40
|
+
if (!this.isActive) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
this.isActive = false;
|
|
33
44
|
if (delay) {
|
|
34
45
|
setTimeout(this._resume.bind(this), delay);
|
|
35
46
|
}
|
|
@@ -83,6 +94,9 @@ class Teleport {
|
|
|
83
94
|
}
|
|
84
95
|
});
|
|
85
96
|
}
|
|
97
|
+
_isReact() {
|
|
98
|
+
return !!Object.keys(document).find(key => key.includes("react"));
|
|
99
|
+
}
|
|
86
100
|
}
|
|
87
101
|
|
|
88
102
|
exports.Teleport = Teleport;
|
|
@@ -130,25 +130,25 @@
|
|
|
130
130
|
transition: width 300ms ease, transform 300ms ease;
|
|
131
131
|
transform: scaleX(0);
|
|
132
132
|
}
|
|
133
|
-
.duet-chip-container.duet-chip-filter-checked {
|
|
133
|
+
.duet-chip-container.duet-chip-filter-checked, .duet-chip-container.duet-chip-radio-checked {
|
|
134
134
|
background: rgb(230, 242, 248);
|
|
135
135
|
border-color: rgb(230, 242, 248);
|
|
136
136
|
}
|
|
137
|
-
.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container {
|
|
137
|
+
.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container, .duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container {
|
|
138
138
|
padding-right: 8px;
|
|
139
139
|
}
|
|
140
|
-
.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark) {
|
|
140
|
+
.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark), .duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon:not(.check-mark) {
|
|
141
141
|
width: 0;
|
|
142
142
|
overflow: hidden;
|
|
143
143
|
transition: width 300ms ease, transform 300ms ease;
|
|
144
144
|
transform: scaleX(0);
|
|
145
145
|
}
|
|
146
|
-
.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark {
|
|
146
|
+
.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark, .duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon.check-mark {
|
|
147
147
|
width: auto;
|
|
148
148
|
transition: width 300ms ease, transform 300ms ease;
|
|
149
149
|
transform: scaleX(1);
|
|
150
150
|
}
|
|
151
|
-
.duet-chip-container.duet-chip-filter-checked.duet-theme-turva {
|
|
151
|
+
.duet-chip-container.duet-chip-filter-checked.duet-theme-turva, .duet-chip-container.duet-chip-radio-checked.duet-theme-turva {
|
|
152
152
|
background: rgb(245, 245, 247);
|
|
153
153
|
border-color: rgb(245, 245, 247);
|
|
154
154
|
}
|
|
@@ -95,6 +95,15 @@ export class DuetChip {
|
|
|
95
95
|
this.checked = !this.checked;
|
|
96
96
|
this.emitChange(evt);
|
|
97
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
* Change checked state and emit duetChange event.
|
|
100
|
+
*/
|
|
101
|
+
this.onRadioChange = (evt) => {
|
|
102
|
+
const input = this.focusableElement;
|
|
103
|
+
const inputChecked = input.checked;
|
|
104
|
+
this.checked = inputChecked;
|
|
105
|
+
this.emitChange(evt);
|
|
106
|
+
};
|
|
98
107
|
/**
|
|
99
108
|
* Stop propagation and prevent default if popup is present, as the popup controls value and checked state.
|
|
100
109
|
*/
|
|
@@ -125,6 +134,16 @@ export class DuetChip {
|
|
|
125
134
|
this.name = undefined;
|
|
126
135
|
this.checked = false;
|
|
127
136
|
}
|
|
137
|
+
clearOtherRadioButtons() {
|
|
138
|
+
if (this.variation === "radio" && this.checked) {
|
|
139
|
+
const chips = document.querySelectorAll(`duet-chip[variation="radio"][name="${this.name}"]`);
|
|
140
|
+
chips.forEach(chip => {
|
|
141
|
+
if (chip !== this.element) {
|
|
142
|
+
chip.checked = false;
|
|
143
|
+
}
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
128
147
|
/**
|
|
129
148
|
* Component lifecycle events.
|
|
130
149
|
*/
|
|
@@ -148,6 +167,7 @@ export class DuetChip {
|
|
|
148
167
|
"duet-chip-has-icon": !!this.icon,
|
|
149
168
|
"duet-theme-turva": this.theme === "turva",
|
|
150
169
|
"duet-chip-filter-checked": this.variation === "filter" && this.checked,
|
|
170
|
+
"duet-chip-radio-checked": this.variation === "radio" && this.checked,
|
|
151
171
|
"duet-chip-filter-popup-open": this.popupOpen,
|
|
152
172
|
};
|
|
153
173
|
const focusHandlers = {
|
|
@@ -155,7 +175,7 @@ export class DuetChip {
|
|
|
155
175
|
onBlur: this.onBlur,
|
|
156
176
|
ref: el => (this.focusableElement = el),
|
|
157
177
|
};
|
|
158
|
-
return (h(Host, null, this.variation === "button" && (h("div", { class: classes }, h("button", Object.assign({ id: identifier, "aria-label": this.accessibleLabel }, focusHandlers), h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", null)))), this.variation === "input" && (h("div", { class: classes }, h("button", Object.assign({ id: identifier, class: "duet-chip-input-button", "aria-label": this.accessibleLabel }, focusHandlers), h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", null)), h("button", { class: "duet-chip-remove-button", onClick: this.onRemoveClick }, h("duet-icon", { name: "activity-close", size: "xx-small", margin: "none", color: "currentColor" })))), this.variation === "filter" && (h("div", { class: classes }, h("input", Object.assign({ "aria-haspopup": this.popup && "menu", "aria-controls": (_a = this.popup) === null || _a === void 0 ? void 0 : _a.id, "aria-expanded": this.popup ? (this.popupOpen ? "true" : "false") : undefined, id: identifier, type: "checkbox", name: this.name, value: this.value, checked: this.checked, onClick: this.onFilterClick, onChange: this.onFilterChange }, focusHandlers)), h("label", { htmlFor: identifier }, h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("duet-icon", { name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" })), h("slot", null), this.popup && (h("div", { class: "duet-chip-popup-disclosure" }, h("duet-icon", { name: "action-arrow-down-small", size: "xx-small", margin: "none", color: "currentColor" }))))))));
|
|
178
|
+
return (h(Host, null, this.variation === "button" && (h("div", { class: classes }, h("button", Object.assign({ id: identifier, "aria-label": this.accessibleLabel }, focusHandlers), h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", null)))), this.variation === "input" && (h("div", { class: classes }, h("button", Object.assign({ id: identifier, class: "duet-chip-input-button", "aria-label": this.accessibleLabel }, focusHandlers), h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", null)), h("button", { class: "duet-chip-remove-button", onClick: this.onRemoveClick }, h("duet-icon", { name: "activity-close", size: "xx-small", margin: "none", color: "currentColor" })))), this.variation === "filter" && (h("div", { class: classes }, h("input", Object.assign({ "aria-haspopup": this.popup && "menu", "aria-controls": (_a = this.popup) === null || _a === void 0 ? void 0 : _a.id, "aria-expanded": this.popup ? (this.popupOpen ? "true" : "false") : undefined, id: identifier, type: "checkbox", name: this.name, value: this.value, checked: this.checked, onClick: this.onFilterClick, onChange: this.onFilterChange }, focusHandlers)), h("label", { htmlFor: identifier }, h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("duet-icon", { name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" })), h("slot", null), this.popup && (h("div", { class: "duet-chip-popup-disclosure" }, h("duet-icon", { name: "action-arrow-down-small", size: "xx-small", margin: "none", color: "currentColor" })))))), this.variation === "radio" && (h("div", { class: classes }, h("input", Object.assign({ id: identifier, type: "radio", name: this.name, value: this.value, checked: this.checked, onChange: this.onRadioChange }, focusHandlers)), h("label", { htmlFor: identifier }, h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("duet-icon", { name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" })), h("slot", null))))));
|
|
159
179
|
}
|
|
160
180
|
static get is() { return "duet-chip"; }
|
|
161
181
|
static get encapsulation() { return "shadow"; }
|
|
@@ -193,7 +213,7 @@ export class DuetChip {
|
|
|
193
213
|
"mutable": false,
|
|
194
214
|
"complexType": {
|
|
195
215
|
"original": "DuetChipVariation",
|
|
196
|
-
"resolved": "\"button\" | \"filter\" | \"input\"",
|
|
216
|
+
"resolved": "\"button\" | \"filter\" | \"input\" | \"radio\"",
|
|
197
217
|
"references": {
|
|
198
218
|
"DuetChipVariation": {
|
|
199
219
|
"location": "local",
|
|
@@ -205,7 +225,7 @@ export class DuetChip {
|
|
|
205
225
|
"optional": false,
|
|
206
226
|
"docs": {
|
|
207
227
|
"tags": [],
|
|
208
|
-
"text": "Variation of the chip.\nButton should be used to present a list of actions or suggestions. It behaves like a button and must be used\ntogether with a click handler. Filter acts like a checkbox, it can be toggled on or off, and it should be\nused with a value. Input represents items input by the user, and the chip can be removed with a click.\nWARNING: Input variation is still work-in-progress and subject to change."
|
|
228
|
+
"text": "Variation of the chip.\nButton should be used to present a list of actions or suggestions. It behaves like a button and must be used\ntogether with a click handler. Filter acts like a checkbox, it can be toggled on or off, and it should be\nused with a value. Input represents items input by the user, and the chip can be removed with a click.\nRadio behaves like a radio button, it can be toggled on or off, and it should be used with a value and name.\nWARNING: Input variation is still work-in-progress and subject to change."
|
|
209
229
|
},
|
|
210
230
|
"attribute": "variation",
|
|
211
231
|
"reflect": false,
|
|
@@ -425,4 +445,10 @@ export class DuetChip {
|
|
|
425
445
|
};
|
|
426
446
|
}
|
|
427
447
|
static get elementRef() { return "element"; }
|
|
448
|
+
static get watchers() {
|
|
449
|
+
return [{
|
|
450
|
+
"propName": "checked",
|
|
451
|
+
"methodName": "clearOtherRadioButtons"
|
|
452
|
+
}];
|
|
453
|
+
}
|
|
428
454
|
}
|
|
@@ -50,6 +50,13 @@
|
|
|
50
50
|
.duet-promo-card.duet-m-0 {
|
|
51
51
|
margin: 0 !important;
|
|
52
52
|
}
|
|
53
|
+
.duet-promo-card .content-wrapper {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
height: 100%;
|
|
57
|
+
color: inherit;
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
}
|
|
53
60
|
.duet-promo-card .image {
|
|
54
61
|
position: relative;
|
|
55
62
|
width: 100%;
|
|
@@ -12,6 +12,7 @@ export class DuetPromoCard {
|
|
|
12
12
|
this.textColor = "secondary";
|
|
13
13
|
this.image = "";
|
|
14
14
|
this.headingLevel = "h3";
|
|
15
|
+
this.url = undefined;
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
17
18
|
* Component lifecycle events.
|
|
@@ -32,11 +33,12 @@ export class DuetPromoCard {
|
|
|
32
33
|
const bannerStyles = {
|
|
33
34
|
backgroundColor: backgroundColor ? backgroundColor : "none",
|
|
34
35
|
};
|
|
36
|
+
const TagName = this.url ? "a" : "div";
|
|
35
37
|
return (h(Host, { class: { "duet-m-0": this.margin === "none" } }, h("aside", { class: {
|
|
36
38
|
"duet-promo-card": true,
|
|
37
39
|
"duet-theme-turva": this.theme === "turva",
|
|
38
40
|
"no-bg-color": !this.backgroundColor,
|
|
39
|
-
}, style: bannerStyles }, h("img", { class: "image", src: this.image, alt: "", role: "presentation" }), h("div", { class: "content" }, this.hasPreHeadingSlot && (h("div", { class: "pre-heading" }, h("slot", { name: "pre-heading" }))), this.hasHeadingSlot && (h("div", { class: "heading" }, h("duet-heading", { theme: this.theme, level: this.headingLevel, "visual-level": "h3", margin: "none", color: this.textColor }, h("slot", { name: "heading" })))), this.hasDescriptionSlot && (h("div", { class: "description" }, h("duet-paragraph", { theme: this.theme, margin: "none", color: this.textColor }, h("slot", { name: "description" })))), this.hasActionSlot && (h("div", { class: "action" }, h("slot", { name: "action" })))))));
|
|
41
|
+
}, style: bannerStyles }, h(TagName, { href: this.url, class: "content-wrapper" }, h("img", { class: "image", src: this.image, alt: "", role: "presentation" }), h("div", { class: "content" }, this.hasPreHeadingSlot && (h("div", { class: "pre-heading" }, h("slot", { name: "pre-heading" }))), this.hasHeadingSlot && (h("div", { class: "heading" }, h("duet-heading", { theme: this.theme, level: this.headingLevel, "visual-level": "h3", margin: "none", color: this.textColor }, h("slot", { name: "heading" })))), this.hasDescriptionSlot && (h("div", { class: "description" }, h("duet-paragraph", { theme: this.theme, margin: "none", color: this.textColor }, h("slot", { name: "description" })))), this.hasActionSlot && (h("div", { class: "action" }, h("slot", { name: "action" }))))))));
|
|
40
42
|
}
|
|
41
43
|
static get is() { return "duet-promo-card"; }
|
|
42
44
|
static get encapsulation() { return "shadow"; }
|
|
@@ -184,6 +186,23 @@ export class DuetPromoCard {
|
|
|
184
186
|
"attribute": "heading-level",
|
|
185
187
|
"reflect": false,
|
|
186
188
|
"defaultValue": "\"h3\""
|
|
189
|
+
},
|
|
190
|
+
"url": {
|
|
191
|
+
"type": "string",
|
|
192
|
+
"mutable": false,
|
|
193
|
+
"complexType": {
|
|
194
|
+
"original": "string",
|
|
195
|
+
"resolved": "string",
|
|
196
|
+
"references": {}
|
|
197
|
+
},
|
|
198
|
+
"required": false,
|
|
199
|
+
"optional": false,
|
|
200
|
+
"docs": {
|
|
201
|
+
"tags": [],
|
|
202
|
+
"text": "A destination to link to, rendered in the href attribute of a link."
|
|
203
|
+
},
|
|
204
|
+
"attribute": "url",
|
|
205
|
+
"reflect": false
|
|
187
206
|
}
|
|
188
207
|
};
|
|
189
208
|
}
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
export class Teleport {
|
|
12
12
|
constructor(element, target) {
|
|
13
|
+
this.isReact = this._isReact();
|
|
14
|
+
this.isActive = false;
|
|
13
15
|
this.element = element;
|
|
14
16
|
this.target = target || document.body;
|
|
15
17
|
this.teleportId = `${Math.random()}-${Date.now()}`.substring(2);
|
|
@@ -18,6 +20,10 @@ export class Teleport {
|
|
|
18
20
|
* @param makeSiblingsInert - make all siblings of the element inert, use only with modals
|
|
19
21
|
*/
|
|
20
22
|
go(makeSiblingsInert = false) {
|
|
23
|
+
// Teleporting breaks modals in React
|
|
24
|
+
if (this.isReact && makeSiblingsInert) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
21
27
|
this.stub = document.createElement("div");
|
|
22
28
|
this.element.insertAdjacentElement("afterend", this.stub);
|
|
23
29
|
this.target.appendChild(this.element);
|
|
@@ -26,8 +32,13 @@ export class Teleport {
|
|
|
26
32
|
}
|
|
27
33
|
this.deletionObserver = new MutationObserver(this._deletionObserverCallback.bind(this));
|
|
28
34
|
this.deletionObserver.observe(document.documentElement, { childList: true, subtree: true });
|
|
35
|
+
this.isActive = true;
|
|
29
36
|
}
|
|
30
37
|
resume(delay = 0) {
|
|
38
|
+
if (!this.isActive) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
this.isActive = false;
|
|
31
42
|
if (delay) {
|
|
32
43
|
setTimeout(this._resume.bind(this), delay);
|
|
33
44
|
}
|
|
@@ -81,4 +92,7 @@ export class Teleport {
|
|
|
81
92
|
}
|
|
82
93
|
});
|
|
83
94
|
}
|
|
95
|
+
_isReact() {
|
|
96
|
+
return !!Object.keys(document).find(key => key.includes("react"));
|
|
97
|
+
}
|
|
84
98
|
}
|
|
@@ -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-97227973.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-7b123b3e.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-a058928f.js';
|
|
5
5
|
|
|
6
6
|
const DuetBadge = DuetBadge$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,12 +1,12 @@
|
|
|
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-57a42162.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { g as getColorByName } from './p-de68431d.js';
|
|
7
|
-
import { d as defineCustomElement$4 } from './p-
|
|
8
|
-
import { d as defineCustomElement$3 } from './p-
|
|
9
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$4 } from './p-bb04fe7f.js';
|
|
8
|
+
import { d as defineCustomElement$3 } from './p-42c5573b.js';
|
|
9
|
+
import { d as defineCustomElement$2 } from './p-71d31bcd.js';
|
|
10
10
|
|
|
11
11
|
const duetBannerCss = "*,*::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;margin-right:4px !important;margin-bottom:2px !important;display:block;width:auto}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-banner{display:grid;width:100%;height:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-style:normal;text-align:left;border-radius:24px}.duet-banner.duet-p-0{padding:0 !important}.duet-banner.duet-m-0{margin:0 !important}.duet-banner .visual{position:relative;overflow:hidden;border-top-left-radius:24px;border-top-right-radius:24px}.duet-banner .visual .image-container{position:relative;width:400px;height:400px;overflow:hidden;border-radius:20%;transform:rotate(7deg)}.duet-banner .visual .image{position:relative;top:20px;width:100%;height:100%;transform:rotate(-7deg);object-fit:cover}.duet-banner .visual .icon{position:absolute}.duet-banner .content{display:flex;flex-direction:column;gap:8px;padding:0 20px 36px}.duet-banner .action{display:flex;flex-direction:column;flex-grow:1;align-items:flex-start;justify-content:flex-end;padding-top:16px}.duet-banner.small{grid-template-rows:335px 1fr;max-width:335px}.duet-banner.small .visual{border-top-left-radius:24px;border-top-right-radius:24px}.duet-banner.small .visual .image-container{top:-130px;left:-40px}.duet-banner.small .visual .icon{bottom:30px;left:15px}.duet-banner.large{grid-template-rows:none;grid-template-columns:50% 50%;min-width:900px;max-width:1112px;height:320px;max-height:none}.duet-banner.large .visual{border-top-left-radius:24px;border-bottom-left-radius:24px}.duet-banner.large .visual .image-container{top:-30px;left:-30px}.duet-banner.large .visual .image{top:-15px;left:30px}.duet-banner.large .visual .icon{top:40px;bottom:auto;left:335px}.duet-banner.large .content{align-items:flex-start;justify-content:center;padding:0 72px 0 0}.duet-banner.large .action{flex-grow:0}.duet-banner.auto{grid-template-rows:335px 1fr;max-width:335px}.duet-banner.auto .visual{border-top-left-radius:24px;border-top-right-radius:24px}.duet-banner.auto .visual .image-container{top:-130px;left:-40px}.duet-banner.auto .visual .icon{bottom:30px;left:15px}@media (min-width: 62em){.duet-banner.auto{grid-template-rows:none;grid-template-columns:50% 50%;min-width:900px;max-width:1112px;height:320px;max-height:none}.duet-banner.auto .visual{border-top-left-radius:24px;border-bottom-left-radius:24px}.duet-banner.auto .visual .image-container{top:-30px;left:-30px}.duet-banner.auto .visual .image{top:-15px;left:30px}.duet-banner.auto .visual .icon{top:40px;bottom:auto;left:335px}.duet-banner.auto .content{align-items:flex-start;justify-content:center;padding:0 72px 0 0}.duet-banner.auto .action{flex-grow:0}}.duet-banner.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-banner.duet-theme-turva .visual .image-container{width:526px;height:456px;transform:none;-webkit-mask-image:url(\"data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E\");-webkit-mask-repeat:no-repeat;mask-image:url(\"data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E\");mask-repeat:no-repeat}.duet-banner.duet-theme-turva .visual .image{transform:none}.duet-banner.duet-theme-turva.small .visual .image-container{top:-164px;left:-147px}.duet-banner.duet-theme-turva.small .visual .image{top:0;left:0}.duet-banner.duet-theme-turva.small .visual .icon{bottom:15px}.duet-banner.duet-theme-turva.large .visual .image-container{top:-54.923px;left:-147px}.duet-banner.duet-theme-turva.large .visual .image{top:0;left:0}.duet-banner.duet-theme-turva.large .visual .icon{bottom:auto;left:295px}.duet-banner.duet-theme-turva.auto .visual .image-container{top:-164px;left:-147px}.duet-banner.duet-theme-turva.auto .visual .image{top:0;left:0}.duet-banner.duet-theme-turva.auto .visual .icon{bottom:15px}@media (min-width: 62em){.duet-banner.duet-theme-turva.auto .visual .image-container{top:-54.923px;left:-147px}.duet-banner.duet-theme-turva.auto .visual .image{top:0;left:0}.duet-banner.duet-theme-turva.auto .visual .icon{bottom:auto;left:295px}}";
|
|
12
12
|
|
|
@@ -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-57a42162.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-42c5573b.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:inherit;text-decoration:none}.duet-breadcrumb:focus{outline:0}: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)}";
|
|
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-57a42162.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { g as getLocaleString } from './p-03baceb5.js';
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-42c5573b.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-9284aee2.js';
|
|
5
5
|
|
|
6
6
|
const DuetButton = DuetButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,10 +1,10 @@
|
|
|
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-57a42162.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
-
import { d as defineCustomElement$3 } from './p-
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
6
|
+
import { d as defineCustomElement$3 } from './p-42c5573b.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-71d31bcd.js';
|
|
8
8
|
|
|
9
9
|
const duetCalloutCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:relative;display:block;width:100%}blockquote,figure{margin:0}.duet-callout{margin-bottom:28px !important;display:flex;align-items:center;justify-content:center;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-callout .container{display:flex;flex-direction:column;gap:8px;align-items:center;max-width:688px;text-align:center}.duet-callout .callout-icon{width:50px;padding-bottom:8px}.duet-callout .author{color:rgb(0, 41, 77)}.duet-callout.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-callout.duet-theme-turva .author{color:rgb(23, 28, 58)}.duet-callout.duet-m-0{margin:0 !important}";
|
|
10
10
|
|
|
@@ -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-b267cbea.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-57a42162.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-de68431d.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-42c5573b.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-2007bad3.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-e8712b99.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-b80858dd.js';
|
|
5
5
|
|
|
6
6
|
const DuetCheckmark = DuetCheckmark$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-57a42162.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { c as createID } from './p-c1325e35.js';
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-42c5573b.js';
|
|
8
8
|
|
|
9
|
-
const duetChipCss = "*,*::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;margin-right:16px !important;margin-bottom:12px !important;position:relative;display:inline-block;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}.duet-chip-container{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;hyphens:none;line-height:1.1;color:rgb(0, 41, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-style:solid;border-width:1px;border-radius:8px;transition:background-color 300ms ease, color 300ms ease, border-color 300ms ease, padding 300ms ease}.duet-chip-container.duet-p-0{padding:0 !important}.duet-chip-container.duet-m-0{margin:0 !important}.duet-chip-container.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255);border-color:rgb(23, 28, 58)}.duet-chip-container.duet-theme-turva:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-chip-container.duet-theme-turva:hover button,.duet-chip-container.duet-theme-turva:hover label{color:rgb(23, 28, 58) !important}.duet-chip-container:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-chip-container:hover button,.duet-chip-container:hover label{color:rgb(0, 119, 179) !important}.duet-chip-container:hover.duet-theme-turva button,.duet-chip-container:hover.duet-theme-turva label{color:rgb(198, 12, 48) !important}.duet-chip-container button,.duet-chip-container label{display:flex;align-items:center;width:100%;height:100%;padding:7px 16px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:600;color:rgb(0, 41, 77) !important;cursor:pointer}.duet-chip-container button:focus,.duet-chip-container label:focus{outline:none}.duet-chip-container button:hover,.duet-chip-container label:hover{color:rgb(0, 119, 179) !important}.duet-chip-container .duet-chip-icon-container{display:flex;align-items:center;height:16px;padding:0;transition:padding 300ms ease}.duet-chip-container.duet-chip-has-icon .duet-chip-icon-container{width:24px;height:16px;padding-right:8px}.duet-chip-container.duet-chip-has-icon.duet-chip-filter-checked .duet-chip-icon-container{padding-right:11px;padding-left:3px}.duet-chip-container duet-icon:not(.check-mark){width:auto;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked{background:rgb(230, 242, 248);border-color:rgb(230, 242, 248)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container{padding-right:8px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark){width:0;overflow:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark{width:auto;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container div.duet-chip-popup-disclosure{padding-left:8px}.duet-chip-container div.duet-chip-popup-disclosure duet-icon{transition:transform 300ms ease}.duet-chip-container.duet-chip-filter-popup-open{background:rgb(243, 249, 252);border-color:rgb(243, 249, 252)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input{display:flex;align-items:center;padding-right:0 !important}.duet-chip-container.duet-chip-input .duet-chip-input-button{flex-grow:1}.duet-chip-container.duet-chip-input .duet-chip-remove-button{width:26px;padding:8px 16px 8px 0;margin:-8px 0}:host(.user-is-tabbing) .duet-chip-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-chip-focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-chip-container input{position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;cursor:pointer;opacity:0}";
|
|
9
|
+
const duetChipCss = "*,*::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;margin-right:16px !important;margin-bottom:12px !important;position:relative;display:inline-block;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}.duet-chip-container{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;hyphens:none;line-height:1.1;color:rgb(0, 41, 77) !important;text-align:center;cursor:pointer;background:rgb(255, 255, 255);border-style:solid;border-width:1px;border-radius:8px;transition:background-color 300ms ease, color 300ms ease, border-color 300ms ease, padding 300ms ease}.duet-chip-container.duet-p-0{padding:0 !important}.duet-chip-container.duet-m-0{margin:0 !important}.duet-chip-container.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255);border-color:rgb(23, 28, 58)}.duet-chip-container.duet-theme-turva:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-chip-container.duet-theme-turva:hover button,.duet-chip-container.duet-theme-turva:hover label{color:rgb(23, 28, 58) !important}.duet-chip-container:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-chip-container:hover button,.duet-chip-container:hover label{color:rgb(0, 119, 179) !important}.duet-chip-container:hover.duet-theme-turva button,.duet-chip-container:hover.duet-theme-turva label{color:rgb(198, 12, 48) !important}.duet-chip-container button,.duet-chip-container label{display:flex;align-items:center;width:100%;height:100%;padding:7px 16px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;font-weight:600;color:rgb(0, 41, 77) !important;cursor:pointer}.duet-chip-container button:focus,.duet-chip-container label:focus{outline:none}.duet-chip-container button:hover,.duet-chip-container label:hover{color:rgb(0, 119, 179) !important}.duet-chip-container .duet-chip-icon-container{display:flex;align-items:center;height:16px;padding:0;transition:padding 300ms ease}.duet-chip-container.duet-chip-has-icon .duet-chip-icon-container{width:24px;height:16px;padding-right:8px}.duet-chip-container.duet-chip-has-icon.duet-chip-filter-checked .duet-chip-icon-container{padding-right:11px;padding-left:3px}.duet-chip-container duet-icon:not(.check-mark){width:auto;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container duet-icon.check-mark{width:0;overflow:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked,.duet-chip-container.duet-chip-radio-checked{background:rgb(230, 242, 248);border-color:rgb(230, 242, 248)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container{padding-right:8px}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon:not(.check-mark),.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon:not(.check-mark){width:0;overflow:hidden;transition:width 300ms ease, transform 300ms ease;transform:scaleX(0)}.duet-chip-container.duet-chip-filter-checked .duet-chip-icon-container duet-icon.check-mark,.duet-chip-container.duet-chip-radio-checked .duet-chip-icon-container duet-icon.check-mark{width:auto;transition:width 300ms ease, transform 300ms ease;transform:scaleX(1)}.duet-chip-container.duet-chip-filter-checked.duet-theme-turva,.duet-chip-container.duet-chip-radio-checked.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container div.duet-chip-popup-disclosure{padding-left:8px}.duet-chip-container div.duet-chip-popup-disclosure duet-icon{transition:transform 300ms ease}.duet-chip-container.duet-chip-filter-popup-open{background:rgb(243, 249, 252);border-color:rgb(243, 249, 252)}.duet-chip-container.duet-chip-filter-popup-open.duet-theme-turva{background:rgb(245, 245, 247);border-color:rgb(245, 245, 247)}.duet-chip-container.duet-chip-filter-popup-open .duet-chip-popup-disclosure duet-icon{transform:rotate(180deg)}.duet-chip-container.duet-chip-input{display:flex;align-items:center;padding-right:0 !important}.duet-chip-container.duet-chip-input .duet-chip-input-button{flex-grow:1}.duet-chip-container.duet-chip-input .duet-chip-remove-button{width:26px;padding:8px 16px 8px 0;margin:-8px 0}:host(.user-is-tabbing) .duet-chip-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-chip-focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-chip-container input{position:absolute !important;top:0;left:0;z-index:-1;width:100%;height:100%;cursor:pointer;opacity:0}";
|
|
10
10
|
|
|
11
11
|
const DuetChip$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
12
12
|
constructor() {
|
|
@@ -105,6 +105,15 @@ const DuetChip$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
105
105
|
this.checked = !this.checked;
|
|
106
106
|
this.emitChange(evt);
|
|
107
107
|
};
|
|
108
|
+
/**
|
|
109
|
+
* Change checked state and emit duetChange event.
|
|
110
|
+
*/
|
|
111
|
+
this.onRadioChange = (evt) => {
|
|
112
|
+
const input = this.focusableElement;
|
|
113
|
+
const inputChecked = input.checked;
|
|
114
|
+
this.checked = inputChecked;
|
|
115
|
+
this.emitChange(evt);
|
|
116
|
+
};
|
|
108
117
|
/**
|
|
109
118
|
* Stop propagation and prevent default if popup is present, as the popup controls value and checked state.
|
|
110
119
|
*/
|
|
@@ -135,6 +144,16 @@ const DuetChip$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
135
144
|
this.name = undefined;
|
|
136
145
|
this.checked = false;
|
|
137
146
|
}
|
|
147
|
+
clearOtherRadioButtons() {
|
|
148
|
+
if (this.variation === "radio" && this.checked) {
|
|
149
|
+
const chips = document.querySelectorAll(`duet-chip[variation="radio"][name="${this.name}"]`);
|
|
150
|
+
chips.forEach(chip => {
|
|
151
|
+
if (chip !== this.element) {
|
|
152
|
+
chip.checked = false;
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}
|
|
138
157
|
/**
|
|
139
158
|
* Component lifecycle events.
|
|
140
159
|
*/
|
|
@@ -158,6 +177,7 @@ const DuetChip$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
158
177
|
"duet-chip-has-icon": !!this.icon,
|
|
159
178
|
"duet-theme-turva": this.theme === "turva",
|
|
160
179
|
"duet-chip-filter-checked": this.variation === "filter" && this.checked,
|
|
180
|
+
"duet-chip-radio-checked": this.variation === "radio" && this.checked,
|
|
161
181
|
"duet-chip-filter-popup-open": this.popupOpen,
|
|
162
182
|
};
|
|
163
183
|
const focusHandlers = {
|
|
@@ -165,9 +185,12 @@ const DuetChip$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
165
185
|
onBlur: this.onBlur,
|
|
166
186
|
ref: el => (this.focusableElement = el),
|
|
167
187
|
};
|
|
168
|
-
return (h(Host, null, this.variation === "button" && (h("div", { class: classes }, h("button", Object.assign({ id: identifier, "aria-label": this.accessibleLabel }, focusHandlers), h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", null)))), this.variation === "input" && (h("div", { class: classes }, h("button", Object.assign({ id: identifier, class: "duet-chip-input-button", "aria-label": this.accessibleLabel }, focusHandlers), h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", null)), h("button", { class: "duet-chip-remove-button", onClick: this.onRemoveClick }, h("duet-icon", { name: "activity-close", size: "xx-small", margin: "none", color: "currentColor" })))), this.variation === "filter" && (h("div", { class: classes }, h("input", Object.assign({ "aria-haspopup": this.popup && "menu", "aria-controls": (_a = this.popup) === null || _a === void 0 ? void 0 : _a.id, "aria-expanded": this.popup ? (this.popupOpen ? "true" : "false") : undefined, id: identifier, type: "checkbox", name: this.name, value: this.value, checked: this.checked, onClick: this.onFilterClick, onChange: this.onFilterChange }, focusHandlers)), h("label", { htmlFor: identifier }, h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("duet-icon", { name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" })), h("slot", null), this.popup && (h("div", { class: "duet-chip-popup-disclosure" }, h("duet-icon", { name: "action-arrow-down-small", size: "xx-small", margin: "none", color: "currentColor" }))))))));
|
|
188
|
+
return (h(Host, null, this.variation === "button" && (h("div", { class: classes }, h("button", Object.assign({ id: identifier, "aria-label": this.accessibleLabel }, focusHandlers), h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", null)))), this.variation === "input" && (h("div", { class: classes }, h("button", Object.assign({ id: identifier, class: "duet-chip-input-button", "aria-label": this.accessibleLabel }, focusHandlers), h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" }))), h("slot", null)), h("button", { class: "duet-chip-remove-button", onClick: this.onRemoveClick }, h("duet-icon", { name: "activity-close", size: "xx-small", margin: "none", color: "currentColor" })))), this.variation === "filter" && (h("div", { class: classes }, h("input", Object.assign({ "aria-haspopup": this.popup && "menu", "aria-controls": (_a = this.popup) === null || _a === void 0 ? void 0 : _a.id, "aria-expanded": this.popup ? (this.popupOpen ? "true" : "false") : undefined, id: identifier, type: "checkbox", name: this.name, value: this.value, checked: this.checked, onClick: this.onFilterClick, onChange: this.onFilterChange }, focusHandlers)), h("label", { htmlFor: identifier }, h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("duet-icon", { name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" })), h("slot", null), this.popup && (h("div", { class: "duet-chip-popup-disclosure" }, h("duet-icon", { name: "action-arrow-down-small", size: "xx-small", margin: "none", color: "currentColor" })))))), this.variation === "radio" && (h("div", { class: classes }, h("input", Object.assign({ id: identifier, type: "radio", name: this.name, value: this.value, checked: this.checked, onChange: this.onRadioChange }, focusHandlers)), h("label", { htmlFor: identifier }, h("div", { class: "duet-chip-icon-container" }, this.icon && (h("duet-icon", { name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("duet-icon", { name: "messaging-checked-small", size: "xx-small", margin: "none", color: "currentColor", class: "check-mark" })), h("slot", null))))));
|
|
169
189
|
}
|
|
170
190
|
get element() { return this; }
|
|
191
|
+
static get watchers() { return {
|
|
192
|
+
"checked": ["clearOtherRadioButtons"]
|
|
193
|
+
}; }
|
|
171
194
|
static get style() { return duetChipCss; }
|
|
172
195
|
}, [1, "duet-chip", {
|
|
173
196
|
"accessibleLabel": [1, "accessible-label"],
|
|
@@ -1,16 +1,16 @@
|
|
|
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-57a42162.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { f as findCheckedOption, w as watchForOptions } from './p-12721178.js';
|
|
7
|
-
import { d as defineCustomElement$8 } from './p-
|
|
8
|
-
import { d as defineCustomElement$7 } from './p-
|
|
9
|
-
import { d as defineCustomElement$6 } from './p-
|
|
10
|
-
import { d as defineCustomElement$5 } from './p-
|
|
11
|
-
import { d as defineCustomElement$4 } from './p-
|
|
12
|
-
import { d as defineCustomElement$3 } from './p-
|
|
13
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$8 } from './p-b267cbea.js';
|
|
8
|
+
import { d as defineCustomElement$7 } from './p-77f70890.js';
|
|
9
|
+
import { d as defineCustomElement$6 } from './p-42c5573b.js';
|
|
10
|
+
import { d as defineCustomElement$5 } from './p-cfb28a0c.js';
|
|
11
|
+
import { d as defineCustomElement$4 } from './p-1aff20dc.js';
|
|
12
|
+
import { d as defineCustomElement$3 } from './p-5c3bcf22.js';
|
|
13
|
+
import { d as defineCustomElement$2 } from './p-2f34816f.js';
|
|
14
14
|
|
|
15
15
|
const duetChoiceGroupCss = "*.sc-duet-choice-group,*.sc-duet-choice-group::after,*.sc-duet-choice-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:block;margin-bottom:-12px}.horizontal.sc-duet-choice-group-h .duet-choice-group.duet-no-stacking.sc-duet-choice-group{display:flex}@media (min-width: 48em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{margin-bottom:0}}@media (max-width: 35.9375em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:flex}}.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}@media (max-width: 22.5em){.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}}.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 36em){.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 48em){.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 62em){.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 64.0625em){.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.duet-choice-group.sc-duet-choice-group{position:relative;width:100%;margin-bottom:-12px}";
|
|
16
16
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-57a42162.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { h as hasSlot } from './p-9d915d45.js';
|
|
7
7
|
import { D as DuetStringsExternalDefaults } from './p-76f00bd5.js';
|
|
@@ -9,10 +9,10 @@ import { c as createID } from './p-c1325e35.js';
|
|
|
9
9
|
import { F as FocusGuard } from './p-061830ef.js';
|
|
10
10
|
import { i as isKeyboardClick, a as isQuestionKey, b as isEscapeKey } from './p-d8549efe.js';
|
|
11
11
|
import { g as getLocaleString, a as getLanguage, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './p-03baceb5.js';
|
|
12
|
-
import { d as defineCustomElement$5 } from './p-
|
|
13
|
-
import { d as defineCustomElement$4 } from './p-
|
|
14
|
-
import { d as defineCustomElement$3 } from './p-
|
|
15
|
-
import { d as defineCustomElement$2 } from './p-
|
|
12
|
+
import { d as defineCustomElement$5 } from './p-b267cbea.js';
|
|
13
|
+
import { d as defineCustomElement$4 } from './p-42c5573b.js';
|
|
14
|
+
import { d as defineCustomElement$3 } from './p-2007bad3.js';
|
|
15
|
+
import { d as defineCustomElement$2 } from './p-2f34816f.js';
|
|
16
16
|
|
|
17
17
|
var messagingInfo={"title":"messaging-info","tags":"messaging info information circle","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5z\"/><circle cx=\"11.625\" cy=\"7.125\" r=\"1.125\"/><path d=\"M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z\"/></svg>"};
|
|
18
18
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h, d as Host } from './p-57a42162.js';
|
|
5
5
|
import { a as actionArrowDownSmall } from './p-115c79b6.js';
|
|
6
6
|
import { f as font_size_medium, t as tokens } from './p-b519ac77.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
@@ -9,7 +9,7 @@ import { h as hasSlot } from './p-9d915d45.js';
|
|
|
9
9
|
import { c as createID } from './p-c1325e35.js';
|
|
10
10
|
import { i as isKeyboardClick } from './p-d8549efe.js';
|
|
11
11
|
import { s as sanitizeString } from './p-5a9d75e1.js';
|
|
12
|
-
import { d as defineCustomElement$2 } from './p-
|
|
12
|
+
import { d as defineCustomElement$2 } from './p-42c5573b.js';
|
|
13
13
|
|
|
14
14
|
const duetCollapsibleCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=after-heading]){display:inline-block}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:block;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77)}:host(.duet-theme-turva){font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}.duet-collapsible-content{display:none;padding-left:18px;margin-top:8px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;-webkit-hyphens:auto;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77)}@media (max-width: 35.9375em){.duet-collapsible-content{font-size:0.875rem}}.duet-collapsible-content.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}:host([open])>.duet-collapsible-content{display:block}.duet-collapsible-heading{-webkit-user-select:none;user-select:none;display:flex;align-items:center;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77);text-align:left;cursor:pointer;border-radius:4px}.duet-collapsible-heading.full-width{width:100%}.duet-collapsible-heading.duet-collapsible-heading-centered{margin:auto}.duet-collapsible-heading.duet-collapsible-normal-weight{font-weight:400}.duet-collapsible-heading.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-collapsible-heading .duet-collapsible-heading-content{min-width:0}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div{margin-left:16px}.duet-collapsible-heading.has-after-heading .duet-collapsible-heading-content+div.float-right{margin-left:auto}.duet-collapsible-heading:focus{outline:0}:host(.user-is-tabbing) .duet-collapsible-heading:focus{border-radius:4px;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-collapsible-heading.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-collapsible-heading-icon{margin-right:8px !important;display:flex;align-items:center;justify-content:center;color:rgb(0, 41, 77);transition:transform 300ms ease}.duet-collapsible-heading-icon:last-child,.duet-collapsible-heading-icon:last-of-type{margin-right:0 !important}[aria-expanded=true] .duet-collapsible-heading-icon{transform:rotate(180deg)}";
|
|
15
15
|
|