@duetds/components 6.10.4 → 6.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +299 -59
- package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/lib/cjs/duet-callout.cjs.entry.js +1 -1
- package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
- package/lib/cjs/duet-card.cjs.entry.js +3 -3
- 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 +8 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +8 -7
- package/lib/cjs/duet-collapsible.cjs.entry.js +3 -2
- package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
- package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +3 -3
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +3 -2
- 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 +2 -2
- package/lib/cjs/duet-hero.cjs.entry.js +2 -2
- package/lib/cjs/duet-icon.cjs.entry.js +3 -3
- 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 +2 -2
- package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +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 +33 -2
- package/lib/cjs/duet-popup-menu.cjs.entry.js +88 -2
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-promo-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- 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 +56 -27
- 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 +4 -4
- package/lib/cjs/duet-slideout.cjs.entry.js +4 -4
- 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-popup.cjs.entry.js +56 -0
- package/lib/cjs/duet-tooltip.cjs.entry.js +20 -15
- package/lib/cjs/duet-tray.cjs.entry.js +2 -2
- 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 +6 -86
- package/lib/cjs/{focus-utils-a66763f4.js → focus-utils-f19181d6.js} +1 -1
- package/lib/cjs/{index-4eb7ce33.js → index-ef0568d5.js} +6 -19
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/slot-query-1624497e.js +10 -0
- package/lib/cjs/{token-utils-c1864408.js → token-utils-18a05118.js} +1 -1
- package/lib/cjs/{tokens.module-5fe478ed.js → tokens.module-d30fb52a.js} +1 -0
- package/lib/collection/collection-manifest.json +2 -1
- package/lib/collection/common/index.js +1 -0
- package/lib/collection/common/slot-query.js +9 -0
- package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
- package/lib/collection/components/duet-alert/duet-alert.js +1 -1
- package/lib/collection/components/duet-button/duet-button.js +5 -5
- package/lib/collection/components/duet-caption/duet-caption.js +1 -1
- package/lib/collection/components/duet-card/duet-card.js +3 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-chip/duet-chip.js +37 -4
- package/lib/collection/components/duet-choice/duet-choice.js +10 -14
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +6 -8
- package/lib/collection/components/duet-combobox/duet-combobox.js +3 -3
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +2 -1
- package/lib/collection/components/duet-footer/duet-footer.js +7 -7
- package/lib/collection/components/duet-grid/duet-grid.js +3 -3
- package/lib/collection/components/duet-header/duet-header.js +15 -15
- package/lib/collection/components/duet-heading/duet-heading.js +1 -1
- package/lib/collection/components/duet-hero/duet-hero.css +6 -1
- package/lib/collection/components/duet-hero/duet-hero.js +5 -5
- package/lib/collection/components/duet-icon/duet-icon.js +1 -1
- package/lib/collection/components/duet-input/duet-input.js +8 -8
- package/lib/collection/components/duet-label/duet-label.js +2 -2
- package/lib/collection/components/duet-layout/duet-layout.js +1 -1
- package/lib/collection/components/duet-list/duet-list.js +3 -3
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
- package/lib/collection/components/duet-modal/duet-modal.js +3 -3
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +70 -5
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +120 -1
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- package/lib/collection/components/duet-show-more/duet-show-more.js +220 -27
- package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
- package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +5 -5
- package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
- package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +183 -0
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +251 -0
- package/lib/collection/components/duet-tooltip/duet-tooltip.css +0 -163
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +25 -14
- package/lib/collection/components/duet-upload/duet-upload.js +14 -14
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +1 -1
- package/lib/collection/utils/teleport.js +30 -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 +5 -5
- 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 +4 -4
- 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 +11 -3
- package/lib/dist-custom-elements/duet-choice-group.js +16 -10
- package/lib/dist-custom-elements/duet-choice.js +12 -11
- package/lib/dist-custom-elements/duet-collapsible.js +4 -3
- package/lib/dist-custom-elements/duet-combobox.js +3 -3
- 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 +26 -20
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +8 -8
- 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 +9 -9
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +10 -10
- 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 +20 -14
- 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 +22 -16
- 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 +38 -4
- package/lib/dist-custom-elements/duet-popup-menu.js +90 -4
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-promo-card.js +4 -4
- package/lib/dist-custom-elements/duet-radio-group.js +16 -10
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +3 -3
- 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 +71 -33
- 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 +4 -4
- package/lib/dist-custom-elements/duet-slideout.js +4 -4
- 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 +26 -20
- 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 +20 -14
- 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-popup.d.ts +11 -0
- package/lib/dist-custom-elements/duet-tooltip-popup.js +9 -0
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +4 -4
- 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 +19 -19
- 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-a60259d1.js → p-00416416.js} +1 -1
- package/lib/dist-custom-elements/{p-1f14a267.js → p-04bb5c9f.js} +1 -1
- package/lib/dist-custom-elements/{p-efaad71c.js → p-061830ef.js} +1 -1
- package/lib/dist-custom-elements/{p-4c575cf4.js → p-0ada372b.js} +30 -19
- package/lib/dist-custom-elements/{p-26a65533.js → p-0aeec550.js} +2 -2
- package/lib/dist-custom-elements/{p-661fee29.js → p-0c506783.js} +5 -5
- package/lib/dist-custom-elements/{p-ffc196f5.js → p-0c934ab8.js} +5 -5
- package/lib/dist-custom-elements/{p-7681059e.js → p-1212aab5.js} +1 -1
- package/lib/dist-custom-elements/{p-0f04ecb5.js → p-127ad24e.js} +1 -1
- package/lib/dist-custom-elements/{p-1b34adf1.js → p-1f5d4fdb.js} +2 -2
- package/lib/dist-custom-elements/{p-84a78894.js → p-238d0ad2.js} +1 -1
- package/lib/dist-custom-elements/{p-e467de13.js → p-264ce363.js} +1 -1
- package/lib/dist-custom-elements/{p-25d3d458.js → p-2c9478af.js} +2 -2
- package/lib/dist-custom-elements/{p-5114f1bd.js → p-31eb790f.js} +2 -2
- package/lib/dist-custom-elements/{p-03297bf3.js → p-42fe016c.js} +2 -2
- package/lib/dist-custom-elements/{p-80cd62f8.js → p-44376288.js} +5 -5
- package/lib/dist-custom-elements/{p-7c2e755b.js → p-55c2bb2d.js} +1 -1
- package/lib/dist-custom-elements/{p-006d0fb1.js → p-62d5eeeb.js} +4 -3
- package/lib/dist-custom-elements/{p-de68431d.js → p-661e7864.js} +1 -1
- package/lib/dist-custom-elements/{p-5c48ca92.js → p-757bf6af.js} +1 -1
- package/lib/dist-custom-elements/{p-3e609785.js → p-773bf99a.js} +1 -1
- package/lib/dist-custom-elements/{p-e0afb5aa.js → p-7d158728.js} +10 -10
- package/lib/dist-custom-elements/{p-171c70e8.js → p-85edc0fe.js} +2 -2
- package/lib/dist-custom-elements/{p-226f50bb.js → p-980b82ed.js} +2 -2
- package/lib/dist-custom-elements/p-9d915d45.js +8 -0
- package/lib/dist-custom-elements/{p-08f20e44.js → p-b761b810.js} +2 -2
- package/lib/dist-custom-elements/{p-8a1632b1.js → p-ba31dce0.js} +3 -3
- package/lib/dist-custom-elements/{p-b98f1d2a.js → p-baccad0b.js} +2 -2
- package/lib/dist-custom-elements/{p-265d42fd.js → p-c35ceaed.js} +1 -1
- package/lib/dist-custom-elements/{p-d5e61aac.js → p-c6c0520d.js} +3 -3
- package/lib/dist-custom-elements/{p-37255027.js → p-ca8561b3.js} +20 -14
- package/lib/dist-custom-elements/{p-e8475b3c.js → p-cd9b5f96.js} +1 -1
- package/lib/dist-custom-elements/{p-dbb9df4e.js → p-cedbe8b5.js} +4 -4
- package/lib/dist-custom-elements/p-cfe72fa4.js +88 -0
- package/lib/dist-custom-elements/{p-25fa826f.js → p-dfbbdce3.js} +4 -18
- package/lib/dist-custom-elements/{p-2b8c0c2f.js → p-e71e9330.js} +16 -10
- package/lib/dist-custom-elements/{p-c85e7fbd.js → p-f462e031.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-dee73c08.system.entry.js → p-0077c0b9.system.entry.js} +2 -2
- package/lib/duet/{p-6892546a.system.entry.js → p-015f92ba.system.entry.js} +2 -2
- package/lib/duet/{p-45046cb8.system.entry.js → p-03b229f9.system.entry.js} +1 -1
- package/lib/duet/{p-f78e3197.system.entry.js → p-04da6058.system.entry.js} +1 -1
- package/lib/duet/p-076452be.js +1 -1
- package/lib/duet/{p-a5cf2316.entry.js → p-07b68373.entry.js} +1 -1
- package/lib/duet/{p-a6696d45.entry.js → p-0a5bea68.entry.js} +1 -1
- package/lib/duet/p-0b19b2fc.system.entry.js +4 -0
- package/lib/duet/{p-8862fec1.system.entry.js → p-0d941b02.system.entry.js} +2 -2
- package/lib/duet/{p-ae7602cb.entry.js → p-0de1d79f.entry.js} +1 -1
- package/lib/duet/{p-8c6e3c4f.system.js → p-10695d55.system.js} +1 -1
- package/lib/duet/p-120fcef7.system.entry.js +4 -0
- package/lib/duet/{p-184ee980.system.entry.js → p-1447cb8a.system.entry.js} +1 -1
- package/lib/duet/{p-ca2725cd.system.entry.js → p-16493302.system.entry.js} +1 -1
- package/lib/duet/{p-11d01178.system.entry.js → p-17e717aa.system.entry.js} +1 -1
- package/lib/duet/p-1880e89c.system.js +5 -0
- package/lib/duet/{p-8445fc10.entry.js → p-19c4479c.entry.js} +1 -1
- package/lib/duet/p-1afb6da1.system.entry.js +4 -0
- package/lib/duet/{p-2a9b8270.system.entry.js → p-1b7bb41b.system.entry.js} +2 -2
- package/lib/duet/{p-6508eed1.system.entry.js → p-1eb8f4fe.system.entry.js} +2 -2
- package/lib/duet/p-200f1abc.entry.js +4 -0
- package/lib/duet/{p-13fa33f3.system.entry.js → p-21e22519.system.entry.js} +1 -1
- package/lib/duet/{p-c1c6a4f5.entry.js → p-22b301c0.entry.js} +1 -1
- package/lib/duet/{p-b650e679.system.entry.js → p-26fc5f52.system.entry.js} +2 -2
- package/lib/duet/{p-71a46879.system.js → p-277d9e45.system.js} +1 -1
- package/lib/duet/{p-cb4799d1.system.entry.js → p-2827e61e.system.entry.js} +2 -2
- package/lib/duet/{p-8db6114f.system.entry.js → p-2867f068.system.entry.js} +2 -2
- package/lib/duet/{p-28b0deff.system.entry.js → p-28e7d8ee.system.entry.js} +2 -2
- package/lib/duet/p-2b16b250.system.entry.js +4 -0
- package/lib/duet/{p-0b696003.system.entry.js → p-2b79476c.system.entry.js} +1 -1
- package/lib/duet/{p-c0874730.entry.js → p-2bfb9cf4.entry.js} +1 -1
- package/lib/duet/{p-bc541e97.system.entry.js → p-2ed796cf.system.entry.js} +2 -2
- package/lib/duet/{p-a86ae0c3.entry.js → p-30c6c9f0.entry.js} +1 -1
- package/lib/duet/{p-4667e5cc.entry.js → p-30f0945c.entry.js} +1 -1
- package/lib/duet/{p-c185ea87.system.entry.js → p-312ae93d.system.entry.js} +2 -2
- package/lib/duet/{p-380ead38.system.entry.js → p-32d6a948.system.entry.js} +1 -1
- package/lib/duet/{p-ca4d7a6d.system.entry.js → p-3499c5ce.system.entry.js} +2 -2
- package/lib/duet/{p-4fc64fe9.system.entry.js → p-358f27d4.system.entry.js} +1 -1
- package/lib/duet/{p-82330774.system.entry.js → p-35fddc0c.system.entry.js} +2 -2
- package/lib/duet/{p-2bd98cbe.system.entry.js → p-379b7a5b.system.entry.js} +1 -1
- package/lib/duet/{p-f90e86d3.entry.js → p-3a47193c.entry.js} +1 -1
- package/lib/duet/p-3a9e4386.system.entry.js +4 -0
- package/lib/duet/{p-cff11c78.entry.js → p-3cff6ebc.entry.js} +1 -1
- package/lib/duet/{p-6e93b2f3.entry.js → p-3dbbd772.entry.js} +1 -1
- package/lib/duet/{p-000a0a75.system.entry.js → p-3f9bafee.system.entry.js} +1 -1
- package/lib/duet/{p-7284cb09.system.entry.js → p-3fd216ee.system.entry.js} +2 -2
- package/lib/duet/{p-2a37e574.system.entry.js → p-402a51b4.system.entry.js} +2 -2
- package/lib/duet/{p-e288bb38.system.entry.js → p-42e29141.system.entry.js} +2 -2
- package/lib/duet/{p-871eca43.entry.js → p-435cb7c2.entry.js} +1 -1
- package/lib/duet/p-440aff1c.system.entry.js +4 -0
- package/lib/duet/{p-c79f4b4b.entry.js → p-46547a79.entry.js} +1 -1
- package/lib/duet/{p-77616680.entry.js → p-469c8430.entry.js} +1 -1
- package/lib/duet/{p-4af3a90a.entry.js → p-49c0b3f8.entry.js} +1 -1
- package/lib/duet/p-4b9c271c.entry.js +4 -0
- package/lib/duet/{p-604adb3e.entry.js → p-4ba495ae.entry.js} +1 -1
- package/lib/duet/{p-06969947.system.entry.js → p-4c05864f.system.entry.js} +1 -1
- package/lib/duet/{p-20c19d2e.system.entry.js → p-4cb95b05.system.entry.js} +1 -1
- package/lib/duet/{p-b594282a.entry.js → p-4f49a9ca.entry.js} +1 -1
- package/lib/duet/{p-a2ddca83.system.entry.js → p-57bc9d10.system.entry.js} +2 -2
- package/lib/duet/p-5a9d75e1.js +1 -1
- package/lib/duet/{p-a0f76a04.system.entry.js → p-5ba959af.system.entry.js} +1 -1
- package/lib/duet/p-5c8e5f29.system.js +4 -0
- package/lib/duet/{p-700cc5d1.entry.js → p-5c9febf5.entry.js} +1 -1
- package/lib/duet/{p-df213a66.system.entry.js → p-5cca8d3e.system.entry.js} +2 -2
- package/lib/duet/{p-c5efb3f6.entry.js → p-6105d937.entry.js} +1 -1
- package/lib/duet/{p-a66ca0af.entry.js → p-61611577.entry.js} +1 -1
- package/lib/duet/{p-4f321fb8.entry.js → p-6322975a.entry.js} +1 -1
- package/lib/duet/{p-4956fa1c.system.entry.js → p-6a1f6639.system.entry.js} +2 -2
- package/lib/duet/{p-05dd0fb6.entry.js → p-6b7d3c8c.entry.js} +1 -1
- package/lib/duet/{p-be295e13.system.entry.js → p-6c7a20e1.system.entry.js} +2 -2
- package/lib/duet/{p-549a1ffd.system.entry.js → p-6e8dbf19.system.entry.js} +2 -2
- package/lib/duet/{p-b4b5f803.entry.js → p-6ea838bf.entry.js} +1 -1
- package/lib/duet/{p-da4f4b6c.entry.js → p-6fba1a6d.entry.js} +1 -1
- package/lib/duet/{p-f58832f6.entry.js → p-71cc3d68.entry.js} +1 -1
- package/lib/duet/{p-8275330c.system.entry.js → p-74b822f7.system.entry.js} +2 -2
- package/lib/duet/{p-e8d8c7a2.system.entry.js → p-75d98b0c.system.entry.js} +2 -2
- package/lib/duet/{p-a76ceaf6.js → p-75f7a572.js} +1 -1
- package/lib/duet/{p-6bb42603.entry.js → p-762f26d7.entry.js} +1 -1
- package/lib/duet/p-7649b95e.js +4 -0
- package/lib/duet/{p-521b2f02.system.entry.js → p-798f633d.system.entry.js} +1 -1
- package/lib/duet/p-79b6ac98.js +5 -0
- package/lib/duet/{p-8cf359d9.entry.js → p-7b29ea1b.entry.js} +1 -1
- package/lib/duet/{p-9ec0d197.entry.js → p-7d0c4a6e.entry.js} +1 -1
- package/lib/duet/{p-31155f08.entry.js → p-80c9d1a3.entry.js} +1 -1
- package/lib/duet/p-82b5380b.system.js +1 -1
- package/lib/duet/{p-e983ff0c.entry.js → p-84492c72.entry.js} +1 -1
- package/lib/duet/{p-d4bc7a19.entry.js → p-84848786.entry.js} +1 -1
- package/lib/duet/p-864ccce8.system.entry.js +4 -0
- package/lib/duet/p-8793147c.system.entry.js +4 -0
- package/lib/duet/{p-c391b2a4.entry.js → p-890ce3fa.entry.js} +1 -1
- package/lib/duet/{p-721bf508.entry.js → p-8b1084e1.entry.js} +1 -1
- package/lib/duet/{p-7565b093.entry.js → p-8cde4aa3.entry.js} +1 -1
- package/lib/duet/{p-ffa34163.entry.js → p-8d1df4a0.entry.js} +1 -1
- package/lib/duet/{p-86e7a88a.entry.js → p-8fe534ac.entry.js} +1 -1
- package/lib/duet/{p-773268e7.system.entry.js → p-90b0a60f.system.entry.js} +2 -2
- package/lib/duet/{p-32ee127a.system.entry.js → p-95a2dc66.system.entry.js} +1 -1
- package/lib/duet/{p-3c43d0ee.entry.js → p-98894eb0.entry.js} +1 -1
- package/lib/duet/p-9a9bc779.entry.js +4 -0
- package/lib/duet/{p-d988f03a.entry.js → p-9b96a374.entry.js} +1 -1
- package/lib/duet/p-9d915d45.js +4 -0
- package/lib/duet/{p-ccb08e8c.entry.js → p-a18c65be.entry.js} +1 -1
- package/lib/duet/p-a4376044.entry.js +4 -0
- package/lib/duet/{p-7f588669.entry.js → p-a481cf6f.entry.js} +1 -1
- package/lib/duet/{p-3b33c459.entry.js → p-a4f63bc8.entry.js} +1 -1
- package/lib/duet/{p-b77224fc.entry.js → p-a57b8625.entry.js} +1 -1
- package/lib/duet/p-a5ee6446.entry.js +4 -0
- package/lib/duet/{p-7e061e75.system.entry.js → p-a7925c2c.system.entry.js} +2 -2
- package/lib/duet/p-a8657943.entry.js +4 -0
- package/lib/duet/{p-f74e934b.system.entry.js → p-a9dee517.system.entry.js} +1 -1
- package/lib/duet/p-aaf1b496.system.js +4 -0
- package/lib/duet/{p-32d31570.entry.js → p-ab1488e4.entry.js} +1 -1
- package/lib/duet/{p-28cf3d78.entry.js → p-ab308aa0.entry.js} +1 -1
- package/lib/duet/{p-110c2c76.system.entry.js → p-ab9b002c.system.entry.js} +1 -1
- package/lib/duet/{p-d0175269.entry.js → p-ad3c2f28.entry.js} +1 -1
- package/lib/duet/p-ae4927ce.entry.js +4 -0
- package/lib/duet/{p-9ad6fc83.entry.js → p-b07af8d7.entry.js} +1 -1
- package/lib/duet/{p-38e24930.entry.js → p-b29fac9e.entry.js} +1 -1
- package/lib/duet/{p-c2ff6bb2.entry.js → p-b54bf042.entry.js} +1 -1
- package/lib/duet/{p-276da9b8.entry.js → p-b5546c64.entry.js} +1 -1
- package/lib/duet/{p-a7ed46e3.entry.js → p-b6d43529.entry.js} +1 -1
- package/lib/duet/p-b6d51921.system.js +1 -1
- package/lib/duet/{p-40463065.system.entry.js → p-bdd55461.system.entry.js} +2 -2
- package/lib/duet/p-be37633b.entry.js +4 -0
- package/lib/duet/{p-368e63a8.entry.js → p-be8e6a2f.entry.js} +1 -1
- package/lib/duet/{p-e79c63b6.entry.js → p-bf35789c.entry.js} +1 -1
- package/lib/duet/p-c1aafc6e.entry.js +4 -0
- package/lib/duet/{p-5e2af124.entry.js → p-c1b71a60.entry.js} +1 -1
- package/lib/duet/{p-1616c51d.system.entry.js → p-c2860fc6.system.entry.js} +2 -2
- package/lib/duet/{p-c0c92199.system.entry.js → p-c3bf4ada.system.entry.js} +1 -1
- package/lib/duet/{p-ec796dfe.system.entry.js → p-c8967f73.system.entry.js} +2 -2
- package/lib/duet/p-c8dc599d.system.js +1 -1
- package/lib/duet/{p-dd1393e3.system.js → p-ca783bce.system.js} +1 -1
- package/lib/duet/{p-d841291b.entry.js → p-cad183f3.entry.js} +1 -1
- package/lib/duet/{p-a61825d9.entry.js → p-caf1d401.entry.js} +1 -1
- package/lib/duet/p-cb620ca3.system.entry.js +4 -0
- package/lib/duet/{p-c9198461.entry.js → p-cd1ed6f6.entry.js} +1 -1
- package/lib/duet/{p-5ed8969b.system.entry.js → p-cdbd1085.system.entry.js} +2 -2
- package/lib/duet/{p-b134229a.system.entry.js → p-ce48373f.system.entry.js} +2 -2
- package/lib/duet/{p-8584bcfe.system.entry.js → p-cefbaef0.system.entry.js} +1 -1
- package/lib/duet/{p-b7fe2c37.system.entry.js → p-cfdd8822.system.entry.js} +1 -1
- package/lib/duet/{p-60c99082.system.entry.js → p-d58ad6fe.system.entry.js} +1 -1
- package/lib/duet/{p-8146f5d7.system.entry.js → p-d7460d04.system.entry.js} +2 -2
- package/lib/duet/{p-d42279cd.entry.js → p-d86b661a.entry.js} +1 -1
- package/lib/duet/{p-72d18d55.entry.js → p-dc003f39.entry.js} +1 -1
- package/lib/duet/{p-00355028.system.entry.js → p-dd2c8397.system.entry.js} +1 -1
- package/lib/duet/{p-d6dfa7c8.system.entry.js → p-de933c56.system.entry.js} +1 -1
- package/lib/duet/{p-6baede6c.system.entry.js → p-deb6c0b1.system.entry.js} +1 -1
- package/lib/duet/p-df10a767.js +1 -1
- package/lib/duet/{p-99a90b30.entry.js → p-e009dd0e.entry.js} +1 -1
- package/lib/duet/{p-15505723.system.entry.js → p-e0711844.system.entry.js} +1 -1
- package/lib/duet/p-e414a557.js +4 -0
- package/lib/duet/{p-1ff16557.system.entry.js → p-e53475fd.system.entry.js} +1 -1
- package/lib/duet/{p-fd1dcee1.entry.js → p-e66b2cf4.entry.js} +1 -1
- package/lib/duet/{p-d029f8dc.system.entry.js → p-e689dc8c.system.entry.js} +2 -2
- package/lib/duet/{p-c6122404.entry.js → p-eb478d40.entry.js} +1 -1
- package/lib/duet/{p-e6315f68.system.entry.js → p-ebaf813c.system.entry.js} +1 -1
- package/lib/duet/{p-e368e194.entry.js → p-ebd0deb2.entry.js} +1 -1
- package/lib/duet/{p-26ed5006.system.entry.js → p-ec120930.system.entry.js} +2 -2
- package/lib/duet/{p-322f69c7.entry.js → p-ed2fa79e.entry.js} +1 -1
- package/lib/duet/{p-1483de5f.system.entry.js → p-f15e031a.system.entry.js} +2 -2
- package/lib/duet/{p-099119d3.system.entry.js → p-f58f7049.system.entry.js} +1 -1
- package/lib/duet/{p-699f593c.system.entry.js → p-f5bc03c1.system.entry.js} +2 -2
- package/lib/duet/p-f5c10f8e.entry.js +4 -0
- package/lib/duet/{p-6ee35830.entry.js → p-f6ba5087.entry.js} +1 -1
- package/lib/duet/{p-35b74797.entry.js → p-f783a2bc.entry.js} +1 -1
- package/lib/duet/{p-90f06b7a.system.entry.js → p-f80275c5.system.entry.js} +2 -2
- package/lib/duet/p-f93a4db5.entry.js +4 -0
- package/lib/duet/{p-7a3071a5.system.entry.js → p-fa579e10.system.entry.js} +1 -1
- package/lib/duet/{p-684b2d77.system.entry.js → p-fdd13933.system.entry.js} +2 -2
- package/lib/esm/duet-action-button.entry.js +3 -3
- 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 +3 -3
- 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 +3 -3
- package/lib/esm/duet-callout.entry.js +1 -1
- package/lib/esm/duet-caption_4.entry.js +3 -3
- package/lib/esm/duet-card.entry.js +3 -3
- 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 +8 -1
- package/lib/esm/duet-choice_2.entry.js +8 -7
- package/lib/esm/duet-collapsible.entry.js +3 -2
- package/lib/esm/duet-combobox.entry.js +1 -1
- package/lib/esm/duet-contact-card.entry.js +1 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +3 -3
- package/lib/esm/duet-editable-table_3.entry.js +3 -3
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +3 -2
- 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 +2 -2
- package/lib/esm/duet-hero.entry.js +2 -2
- package/lib/esm/duet-icon.entry.js +3 -3
- 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 +2 -2
- package/lib/esm/duet-multiselect.entry.js +1 -1
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +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 +33 -2
- package/lib/esm/duet-popup-menu.entry.js +89 -3
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-promo-card.entry.js +3 -3
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +2 -2
- 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 +57 -28
- 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 +4 -4
- package/lib/esm/duet-slideout.entry.js +4 -4
- 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-popup.entry.js +52 -0
- package/lib/esm/duet-tooltip.entry.js +20 -15
- package/lib/esm/duet-tray.entry.js +2 -2
- 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 +7 -87
- package/lib/esm/{focus-utils-e2239371.js → focus-utils-a516bd48.js} +1 -1
- package/lib/esm/{index-b67ea1f1.js → index-23851de5.js} +7 -18
- package/lib/esm/loader.js +3 -3
- package/lib/esm/slot-query-8c7dce21.js +8 -0
- package/lib/esm/{token-utils-a1dcaa4b.js → token-utils-058d6220.js} +1 -1
- package/lib/esm/{tokens.module-ed773027.js → tokens.module-f436c2cd.js} +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +2 -2
- package/lib/esm-es5/duet-alert.entry.js +2 -2
- 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 +2 -2
- package/lib/esm-es5/duet-callout.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +2 -2
- package/lib/esm-es5/duet-card.entry.js +2 -2
- package/lib/esm-es5/duet-checkbox.entry.js +2 -2
- 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 +2 -2
- package/lib/esm-es5/duet-collapsible.entry.js +2 -2
- package/lib/esm-es5/duet-combobox.entry.js +2 -2
- 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 +2 -2
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +2 -2
- 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 +2 -2
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- package/lib/esm-es5/duet-header_2.entry.js +2 -2
- package/lib/esm-es5/duet-hero.entry.js +2 -2
- package/lib/esm-es5/duet-icon.entry.js +2 -2
- package/lib/esm-es5/duet-input_2.entry.js +2 -2
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-button.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +2 -2
- package/lib/esm-es5/duet-multiselect.entry.js +2 -2
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +2 -2
- package/lib/esm-es5/duet-number-input.entry.js +2 -2
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +2 -2
- package/lib/esm-es5/duet-popup-menu-item.entry.js +2 -2
- package/lib/esm-es5/duet-popup-menu.entry.js +2 -2
- 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 +2 -2
- package/lib/esm-es5/duet-range-slider.entry.js +2 -2
- package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +2 -2
- 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 +2 -2
- package/lib/esm-es5/duet-slideout-panel.entry.js +2 -2
- package/lib/esm-es5/duet-slideout.entry.js +2 -2
- package/lib/esm-es5/duet-step_2.entry.js +2 -2
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +2 -2
- package/lib/esm-es5/duet-textarea.entry.js +2 -2
- package/lib/esm-es5/duet-toggle.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip-popup.entry.js +4 -0
- package/lib/esm-es5/duet-tooltip.entry.js +2 -2
- 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 +2 -2
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/floating-ui.dom.esm-37dc174a.js +1 -1
- package/lib/esm-es5/{focus-utils-e2239371.js → focus-utils-a516bd48.js} +1 -1
- package/lib/esm-es5/index-23851de5.js +5 -0
- package/lib/esm-es5/language-utils-6be16ff0.js +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/slot-query-8c7dce21.js +4 -0
- package/lib/esm-es5/string-utils-5954f458.js +1 -1
- package/lib/esm-es5/{token-utils-a1dcaa4b.js → token-utils-058d6220.js} +1 -1
- package/lib/esm-es5/{tokens.module-ed773027.js → tokens.module-f436c2cd.js} +1 -1
- package/lib/types/common/index.d.ts +1 -0
- package/lib/types/common/slot-query.d.ts +1 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +5 -0
- package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +1 -1
- package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +8 -1
- package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +26 -0
- package/lib/types/components/duet-show-more/duet-show-more.d.ts +36 -5
- package/lib/types/components/duet-tooltip/duet-tooltip-popup.d.ts +41 -0
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +4 -4
- package/lib/types/components.d.ts +133 -2
- package/lib/types/utils/teleport.d.ts +15 -0
- package/package.json +5 -5
- package/lib/cjs/dom-c42e1019.js +0 -78
- package/lib/cjs/shadow-css-6c99270e.js +0 -392
- package/lib/dist-custom-elements/p-6ee53ac3.js +0 -390
- package/lib/duet/p-053be9dd.system.js +0 -5
- package/lib/duet/p-08c7360e.system.entry.js +0 -4
- package/lib/duet/p-101cc3fe.system.entry.js +0 -4
- package/lib/duet/p-19ea4e54.entry.js +0 -4
- package/lib/duet/p-2a9e5e4c.entry.js +0 -4
- package/lib/duet/p-434b31e9.system.js +0 -4
- package/lib/duet/p-4f90dd0a.entry.js +0 -4
- package/lib/duet/p-540d7ed6.entry.js +0 -4
- package/lib/duet/p-6cf44bfa.system.js +0 -24
- package/lib/duet/p-6ee53ac3.js +0 -15
- package/lib/duet/p-756341c2.system.entry.js +0 -4
- package/lib/duet/p-8094e185.entry.js +0 -4
- package/lib/duet/p-8daa915d.system.entry.js +0 -4
- package/lib/duet/p-91b3d075.entry.js +0 -4
- package/lib/duet/p-9226aca2.entry.js +0 -4
- package/lib/duet/p-9c159fd4.js +0 -22
- package/lib/duet/p-9d9204af.system.js +0 -16
- package/lib/duet/p-9e72b23c.system.entry.js +0 -4
- package/lib/duet/p-a1978b4b.entry.js +0 -4
- package/lib/duet/p-b362d8f7.entry.js +0 -4
- package/lib/duet/p-c6b09397.js +0 -4
- package/lib/duet/p-f5b53f2f.system.entry.js +0 -4
- package/lib/duet/p-f9603b0d.entry.js +0 -4
- package/lib/duet/p-fbd0d098.js +0 -5
- package/lib/duet/p-fd4785ab.js +0 -4
- package/lib/duet/p-feaaff49.system.entry.js +0 -4
- package/lib/duet/p-ff5a9358.system.entry.js +0 -4
- package/lib/esm/dom-ae12a113.js +0 -76
- package/lib/esm/shadow-css-66bc7949.js +0 -390
- package/lib/esm-es5/dom-ae12a113.js +0 -24
- package/lib/esm-es5/index-b67ea1f1.js +0 -5
- package/lib/esm-es5/shadow-css-66bc7949.js +0 -15
- /package/lib/dist-custom-elements/{p-152ee893.js → p-ec4d603d.js} +0 -0
|
@@ -1,390 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
/*
|
|
5
|
-
Stencil Client Platform v3.1.0 | MIT Licensed | https://stenciljs.com
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* @license
|
|
9
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
10
|
-
*
|
|
11
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
12
|
-
* found in the LICENSE file at https://angular.io/license
|
|
13
|
-
*
|
|
14
|
-
* This file is a port of shadowCSS from webcomponents.js to TypeScript.
|
|
15
|
-
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
16
|
-
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
17
|
-
*/
|
|
18
|
-
const safeSelector = (selector) => {
|
|
19
|
-
const placeholders = [];
|
|
20
|
-
let index = 0;
|
|
21
|
-
// Replaces attribute selectors with placeholders.
|
|
22
|
-
// The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
|
|
23
|
-
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
24
|
-
const replaceBy = `__ph-${index}__`;
|
|
25
|
-
placeholders.push(keep);
|
|
26
|
-
index++;
|
|
27
|
-
return replaceBy;
|
|
28
|
-
});
|
|
29
|
-
// Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
|
|
30
|
-
// WS and "+" would otherwise be interpreted as selector separators.
|
|
31
|
-
const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
|
|
32
|
-
const replaceBy = `__ph-${index}__`;
|
|
33
|
-
placeholders.push(exp);
|
|
34
|
-
index++;
|
|
35
|
-
return pseudo + replaceBy;
|
|
36
|
-
});
|
|
37
|
-
const ss = {
|
|
38
|
-
content,
|
|
39
|
-
placeholders,
|
|
40
|
-
};
|
|
41
|
-
return ss;
|
|
42
|
-
};
|
|
43
|
-
const restoreSafeSelector = (placeholders, content) => {
|
|
44
|
-
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
45
|
-
};
|
|
46
|
-
const _polyfillHost = '-shadowcsshost';
|
|
47
|
-
const _polyfillSlotted = '-shadowcssslotted';
|
|
48
|
-
// note: :host-context pre-processed to -shadowcsshostcontext.
|
|
49
|
-
const _polyfillHostContext = '-shadowcsscontext';
|
|
50
|
-
const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
|
|
51
|
-
const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
|
|
52
|
-
const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
|
|
53
|
-
const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
|
|
54
|
-
const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
|
|
55
|
-
const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
56
|
-
const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
57
|
-
const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
|
|
58
|
-
const _polyfillHostRe = /-shadowcsshost/gim;
|
|
59
|
-
const _colonHostRe = /:host/gim;
|
|
60
|
-
const _colonSlottedRe = /::slotted/gim;
|
|
61
|
-
const _colonHostContextRe = /:host-context/gim;
|
|
62
|
-
const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
63
|
-
const stripComments = (input) => {
|
|
64
|
-
return input.replace(_commentRe, '');
|
|
65
|
-
};
|
|
66
|
-
const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
|
67
|
-
const extractCommentsWithHash = (input) => {
|
|
68
|
-
return input.match(_commentWithHashRe) || [];
|
|
69
|
-
};
|
|
70
|
-
const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
|
|
71
|
-
const _curlyRe = /([{}])/g;
|
|
72
|
-
const _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
|
|
73
|
-
const OPEN_CURLY = '{';
|
|
74
|
-
const CLOSE_CURLY = '}';
|
|
75
|
-
const BLOCK_PLACEHOLDER = '%BLOCK%';
|
|
76
|
-
const processRules = (input, ruleCallback) => {
|
|
77
|
-
const inputWithEscapedBlocks = escapeBlocks(input);
|
|
78
|
-
let nextBlockIndex = 0;
|
|
79
|
-
return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
|
|
80
|
-
const selector = m[2];
|
|
81
|
-
let content = '';
|
|
82
|
-
let suffix = m[4];
|
|
83
|
-
let contentPrefix = '';
|
|
84
|
-
if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
|
|
85
|
-
content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
|
|
86
|
-
suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
|
|
87
|
-
contentPrefix = '{';
|
|
88
|
-
}
|
|
89
|
-
const cssRule = {
|
|
90
|
-
selector,
|
|
91
|
-
content,
|
|
92
|
-
};
|
|
93
|
-
const rule = ruleCallback(cssRule);
|
|
94
|
-
return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
const escapeBlocks = (input) => {
|
|
98
|
-
const inputParts = input.split(_curlyRe);
|
|
99
|
-
const resultParts = [];
|
|
100
|
-
const escapedBlocks = [];
|
|
101
|
-
let bracketCount = 0;
|
|
102
|
-
let currentBlockParts = [];
|
|
103
|
-
for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
|
|
104
|
-
const part = inputParts[partIndex];
|
|
105
|
-
if (part === CLOSE_CURLY) {
|
|
106
|
-
bracketCount--;
|
|
107
|
-
}
|
|
108
|
-
if (bracketCount > 0) {
|
|
109
|
-
currentBlockParts.push(part);
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
if (currentBlockParts.length > 0) {
|
|
113
|
-
escapedBlocks.push(currentBlockParts.join(''));
|
|
114
|
-
resultParts.push(BLOCK_PLACEHOLDER);
|
|
115
|
-
currentBlockParts = [];
|
|
116
|
-
}
|
|
117
|
-
resultParts.push(part);
|
|
118
|
-
}
|
|
119
|
-
if (part === OPEN_CURLY) {
|
|
120
|
-
bracketCount++;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
if (currentBlockParts.length > 0) {
|
|
124
|
-
escapedBlocks.push(currentBlockParts.join(''));
|
|
125
|
-
resultParts.push(BLOCK_PLACEHOLDER);
|
|
126
|
-
}
|
|
127
|
-
const strEscapedBlocks = {
|
|
128
|
-
escapedString: resultParts.join(''),
|
|
129
|
-
blocks: escapedBlocks,
|
|
130
|
-
};
|
|
131
|
-
return strEscapedBlocks;
|
|
132
|
-
};
|
|
133
|
-
const insertPolyfillHostInCssText = (selector) => {
|
|
134
|
-
selector = selector
|
|
135
|
-
.replace(_colonHostContextRe, _polyfillHostContext)
|
|
136
|
-
.replace(_colonHostRe, _polyfillHost)
|
|
137
|
-
.replace(_colonSlottedRe, _polyfillSlotted);
|
|
138
|
-
return selector;
|
|
139
|
-
};
|
|
140
|
-
const convertColonRule = (cssText, regExp, partReplacer) => {
|
|
141
|
-
// m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
|
|
142
|
-
return cssText.replace(regExp, (...m) => {
|
|
143
|
-
if (m[2]) {
|
|
144
|
-
const parts = m[2].split(',');
|
|
145
|
-
const r = [];
|
|
146
|
-
for (let i = 0; i < parts.length; i++) {
|
|
147
|
-
const p = parts[i].trim();
|
|
148
|
-
if (!p)
|
|
149
|
-
break;
|
|
150
|
-
r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
|
|
151
|
-
}
|
|
152
|
-
return r.join(',');
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
return _polyfillHostNoCombinator + m[3];
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
};
|
|
159
|
-
const colonHostPartReplacer = (host, part, suffix) => {
|
|
160
|
-
return host + part.replace(_polyfillHost, '') + suffix;
|
|
161
|
-
};
|
|
162
|
-
const convertColonHost = (cssText) => {
|
|
163
|
-
return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
|
|
164
|
-
};
|
|
165
|
-
const colonHostContextPartReplacer = (host, part, suffix) => {
|
|
166
|
-
if (part.indexOf(_polyfillHost) > -1) {
|
|
167
|
-
return colonHostPartReplacer(host, part, suffix);
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
return host + part + suffix + ', ' + part + ' ' + host + suffix;
|
|
171
|
-
}
|
|
172
|
-
};
|
|
173
|
-
const convertColonSlotted = (cssText, slotScopeId) => {
|
|
174
|
-
const slotClass = '.' + slotScopeId + ' > ';
|
|
175
|
-
const selectors = [];
|
|
176
|
-
cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
|
|
177
|
-
if (m[2]) {
|
|
178
|
-
const compound = m[2].trim();
|
|
179
|
-
const suffix = m[3];
|
|
180
|
-
const slottedSelector = slotClass + compound + suffix;
|
|
181
|
-
let prefixSelector = '';
|
|
182
|
-
for (let i = m[4] - 1; i >= 0; i--) {
|
|
183
|
-
const char = m[5][i];
|
|
184
|
-
if (char === '}' || char === ',') {
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
prefixSelector = char + prefixSelector;
|
|
188
|
-
}
|
|
189
|
-
const orgSelector = prefixSelector + slottedSelector;
|
|
190
|
-
const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
|
|
191
|
-
if (orgSelector.trim() !== addedSelector.trim()) {
|
|
192
|
-
const updatedSelector = `${addedSelector}, ${orgSelector}`;
|
|
193
|
-
selectors.push({
|
|
194
|
-
orgSelector,
|
|
195
|
-
updatedSelector,
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
return slottedSelector;
|
|
199
|
-
}
|
|
200
|
-
else {
|
|
201
|
-
return _polyfillHostNoCombinator + m[3];
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
return {
|
|
205
|
-
selectors,
|
|
206
|
-
cssText,
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
const convertColonHostContext = (cssText) => {
|
|
210
|
-
return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
|
|
211
|
-
};
|
|
212
|
-
const convertShadowDOMSelectors = (cssText) => {
|
|
213
|
-
return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
|
|
214
|
-
};
|
|
215
|
-
const makeScopeMatcher = (scopeSelector) => {
|
|
216
|
-
const lre = /\[/g;
|
|
217
|
-
const rre = /\]/g;
|
|
218
|
-
scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
|
|
219
|
-
return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
|
|
220
|
-
};
|
|
221
|
-
const selectorNeedsScoping = (selector, scopeSelector) => {
|
|
222
|
-
const re = makeScopeMatcher(scopeSelector);
|
|
223
|
-
return !re.test(selector);
|
|
224
|
-
};
|
|
225
|
-
const injectScopingSelector = (selector, scopingSelector) => {
|
|
226
|
-
return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {
|
|
227
|
-
return before + scopingSelector + colon + after;
|
|
228
|
-
});
|
|
229
|
-
};
|
|
230
|
-
const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
|
|
231
|
-
// In Android browser, the lastIndex is not reset when the regex is used in String.replace()
|
|
232
|
-
_polyfillHostRe.lastIndex = 0;
|
|
233
|
-
if (_polyfillHostRe.test(selector)) {
|
|
234
|
-
const replaceBy = `.${hostSelector}`;
|
|
235
|
-
return selector
|
|
236
|
-
.replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))
|
|
237
|
-
.replace(_polyfillHostRe, replaceBy + ' ');
|
|
238
|
-
}
|
|
239
|
-
return scopeSelector + ' ' + selector;
|
|
240
|
-
};
|
|
241
|
-
const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
|
|
242
|
-
const isRe = /\[is=([^\]]*)\]/g;
|
|
243
|
-
scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
|
|
244
|
-
const className = '.' + scopeSelector;
|
|
245
|
-
const _scopeSelectorPart = (p) => {
|
|
246
|
-
let scopedP = p.trim();
|
|
247
|
-
if (!scopedP) {
|
|
248
|
-
return '';
|
|
249
|
-
}
|
|
250
|
-
if (p.indexOf(_polyfillHostNoCombinator) > -1) {
|
|
251
|
-
scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
|
|
252
|
-
}
|
|
253
|
-
else {
|
|
254
|
-
// remove :host since it should be unnecessary
|
|
255
|
-
const t = p.replace(_polyfillHostRe, '');
|
|
256
|
-
if (t.length > 0) {
|
|
257
|
-
scopedP = injectScopingSelector(t, className);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
return scopedP;
|
|
261
|
-
};
|
|
262
|
-
const safeContent = safeSelector(selector);
|
|
263
|
-
selector = safeContent.content;
|
|
264
|
-
let scopedSelector = '';
|
|
265
|
-
let startIndex = 0;
|
|
266
|
-
let res;
|
|
267
|
-
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
268
|
-
// If a selector appears before :host it should not be shimmed as it
|
|
269
|
-
// matches on ancestor elements and not on elements in the host's shadow
|
|
270
|
-
// `:host-context(div)` is transformed to
|
|
271
|
-
// `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
|
|
272
|
-
// the `div` is not part of the component in the 2nd selectors and should not be scoped.
|
|
273
|
-
// Historically `component-tag:host` was matching the component so we also want to preserve
|
|
274
|
-
// this behavior to avoid breaking legacy apps (it should not match).
|
|
275
|
-
// The behavior should be:
|
|
276
|
-
// - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
|
|
277
|
-
// - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
|
|
278
|
-
// `:host-context(tag)`)
|
|
279
|
-
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
280
|
-
// Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
|
|
281
|
-
let shouldScope = !hasHost;
|
|
282
|
-
while ((res = sep.exec(selector)) !== null) {
|
|
283
|
-
const separator = res[1];
|
|
284
|
-
const part = selector.slice(startIndex, res.index).trim();
|
|
285
|
-
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
286
|
-
const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
|
|
287
|
-
scopedSelector += `${scopedPart} ${separator} `;
|
|
288
|
-
startIndex = sep.lastIndex;
|
|
289
|
-
}
|
|
290
|
-
const part = selector.substring(startIndex);
|
|
291
|
-
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
292
|
-
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
293
|
-
// replace the placeholders with their original values
|
|
294
|
-
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
295
|
-
};
|
|
296
|
-
const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
|
|
297
|
-
return selector
|
|
298
|
-
.split(',')
|
|
299
|
-
.map((shallowPart) => {
|
|
300
|
-
if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
|
|
301
|
-
return shallowPart.trim();
|
|
302
|
-
}
|
|
303
|
-
if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
|
|
304
|
-
return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
|
|
305
|
-
}
|
|
306
|
-
else {
|
|
307
|
-
return shallowPart.trim();
|
|
308
|
-
}
|
|
309
|
-
})
|
|
310
|
-
.join(', ');
|
|
311
|
-
};
|
|
312
|
-
const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
|
|
313
|
-
return processRules(cssText, (rule) => {
|
|
314
|
-
let selector = rule.selector;
|
|
315
|
-
let content = rule.content;
|
|
316
|
-
if (rule.selector[0] !== '@') {
|
|
317
|
-
selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
|
318
|
-
}
|
|
319
|
-
else if (rule.selector.startsWith('@media') ||
|
|
320
|
-
rule.selector.startsWith('@supports') ||
|
|
321
|
-
rule.selector.startsWith('@page') ||
|
|
322
|
-
rule.selector.startsWith('@document')) {
|
|
323
|
-
content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
|
|
324
|
-
}
|
|
325
|
-
const cssRule = {
|
|
326
|
-
selector: selector.replace(/\s{2,}/g, ' ').trim(),
|
|
327
|
-
content,
|
|
328
|
-
};
|
|
329
|
-
return cssRule;
|
|
330
|
-
});
|
|
331
|
-
};
|
|
332
|
-
const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
|
|
333
|
-
cssText = insertPolyfillHostInCssText(cssText);
|
|
334
|
-
cssText = convertColonHost(cssText);
|
|
335
|
-
cssText = convertColonHostContext(cssText);
|
|
336
|
-
const slotted = convertColonSlotted(cssText, slotScopeId);
|
|
337
|
-
cssText = slotted.cssText;
|
|
338
|
-
cssText = convertShadowDOMSelectors(cssText);
|
|
339
|
-
if (scopeId) {
|
|
340
|
-
cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
|
|
341
|
-
}
|
|
342
|
-
cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
343
|
-
cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
|
|
344
|
-
return {
|
|
345
|
-
cssText: cssText.trim(),
|
|
346
|
-
slottedSelectors: slotted.selectors,
|
|
347
|
-
};
|
|
348
|
-
};
|
|
349
|
-
const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
|
|
350
|
-
const hostScopeId = scopeId + '-h';
|
|
351
|
-
const slotScopeId = scopeId + '-s';
|
|
352
|
-
const commentsWithHash = extractCommentsWithHash(cssText);
|
|
353
|
-
cssText = stripComments(cssText);
|
|
354
|
-
const orgSelectors = [];
|
|
355
|
-
if (commentOriginalSelector) {
|
|
356
|
-
const processCommentedSelector = (rule) => {
|
|
357
|
-
const placeholder = `/*!@___${orgSelectors.length}___*/`;
|
|
358
|
-
const comment = `/*!@${rule.selector}*/`;
|
|
359
|
-
orgSelectors.push({ placeholder, comment });
|
|
360
|
-
rule.selector = placeholder + rule.selector;
|
|
361
|
-
return rule;
|
|
362
|
-
};
|
|
363
|
-
cssText = processRules(cssText, (rule) => {
|
|
364
|
-
if (rule.selector[0] !== '@') {
|
|
365
|
-
return processCommentedSelector(rule);
|
|
366
|
-
}
|
|
367
|
-
else if (rule.selector.startsWith('@media') ||
|
|
368
|
-
rule.selector.startsWith('@supports') ||
|
|
369
|
-
rule.selector.startsWith('@page') ||
|
|
370
|
-
rule.selector.startsWith('@document')) {
|
|
371
|
-
rule.content = processRules(rule.content, processCommentedSelector);
|
|
372
|
-
return rule;
|
|
373
|
-
}
|
|
374
|
-
return rule;
|
|
375
|
-
});
|
|
376
|
-
}
|
|
377
|
-
const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
|
|
378
|
-
cssText = [scoped.cssText, ...commentsWithHash].join('\n');
|
|
379
|
-
if (commentOriginalSelector) {
|
|
380
|
-
orgSelectors.forEach(({ placeholder, comment }) => {
|
|
381
|
-
cssText = cssText.replace(placeholder, comment);
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
385
|
-
cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
|
|
386
|
-
});
|
|
387
|
-
return cssText;
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
export { scopeCss };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
var __extends=this&&this.__extends||function(){var e=function(t,n){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n))e[n]=t[n]};return e(t,n)};return function(t,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}();var __awaiter=this&&this.__awaiter||function(e,t,n,r){function a(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function o(e){try{s(r.next(e))}catch(t){i(t)}}function l(e){try{s(r["throw"](e))}catch(t){i(t)}}function s(e){e.done?n(e.value):a(e.value).then(o,l)}s((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,a,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(t){return s([e,t])}}function s(l){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(n=0)),n)try{if(r=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;a=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1];i=l;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(l);break}if(i[2])n.ops.pop();n.trys.pop();continue}l=t.call(e,n)}catch(s){l=[6,s];a=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,i;r<a;r++){if(i||!(r in t)){if(!i)i=Array.prototype.slice.call(t,0,r);i[r]=t[r]}}return e.concat(i||Array.prototype.slice.call(t))};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/System.register([],(function(e,t){"use strict";return{execute:function(){var n=this;var r=e("N","duet");var a=e("E",{cdnURILocal:"http://0.0.0.0:3334",cdnURIProd:"https://cdn.duetds.com/api",duetIconVersion:"3.0.62"});var i;var o;var l;var s=false;var $=false;var f=false;var u=false;var c=false;var v=e("B",{isDev:false,isBrowser:true,isServer:false,isTesting:false});var d=function(e,t){if(t===void 0){t=""}{return function(){return}}};var h=function(e,t){{return function(){return}}};var p="r";var m="o";var g="s";var y="t";var b="s-id";var w="sty-id";var N="c-id";var R="{visibility:hidden}.hydrated{visibility:inherit}";var x="http://www.w3.org/1999/xlink";var S={};var _="http://www.w3.org/2000/svg";var k="http://www.w3.org/1999/xhtml";var T=function(e){return e!=null};var L=function(e){e=typeof e;return e==="object"||e==="function"};function A(e){var t,n,r;return(r=(n=(t=e.head)===null||t===void 0?void 0:t.querySelector('meta[name="csp-nonce"]'))===null||n===void 0?void 0:n.getAttribute("content"))!==null&&r!==void 0?r:undefined}var C=e("h",(function(e,t){var n=[];for(var r=2;r<arguments.length;r++){n[r-2]=arguments[r]}var a=null;var i=null;var o=null;var l=false;var s=false;var $=[];var f=function(t){for(var n=0;n<t.length;n++){a=t[n];if(Array.isArray(a)){f(a)}else if(a!=null&&typeof a!=="boolean"){if(l=typeof e!=="function"&&!L(a)){a=String(a)}if(l&&s){$[$.length-1].$text$+=a}else{$.push(l?I(null,a):a)}s=l}}};f(n);if(t){if(t.key){i=t.key}if(t.name){o=t.name}{var u=t.className||t.class;if(u){t.class=typeof u!=="object"?u:Object.keys(u).filter((function(e){return u[e]})).join(" ")}}}if(typeof e==="function"){return e(t===null?{}:t,$,P)}var c=I(e,null);c.$attrs$=t;if($.length>0){c.$children$=$}{c.$key$=i}{c.$name$=o}return c}));var I=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};{n.$attrs$=null}{n.$key$=null}{n.$name$=null}return n};var j=e("H",{});var E=function(e){return e&&e.$tag$===j};var P={forEach:function(e,t){return e.map(O).forEach(t)},map:function(e,t){return e.map(O).map(t).map(M)}};var O=function(e){return{vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}};var M=function(e){if(typeof e.vtag==="function"){var t=Object.assign({},e.vattrs);if(e.vkey){t.key=e.vkey}if(e.vname){t.name=e.vname}return C.apply(void 0,__spreadArray([e.vtag,t],e.vchildren||[],false))}var n=I(e.vtag,e.vtext);n.$attrs$=e.vattrs;n.$children$=e.vchildren;n.$key$=e.vkey;n.$name$=e.vname;return n};var B=function(e,t,n,r){var a=d("hydrateClient",t);var i=e.shadowRoot;var o=[];var l=[];var s=i?[]:null;var $=r.$vnode$=I(t,null);if(!Ze.$orgLocNodes$){z(Ye.body,Ze.$orgLocNodes$=new Map)}e[b]=n;e.removeAttribute(b);q($,o,l,s,e,e,n);o.map((function(e){var n=e.$hostId$+"."+e.$nodeId$;var r=Ze.$orgLocNodes$.get(n);var a=e.$elm$;if(r&&et&&r["s-en"]===""){r.parentNode.insertBefore(a,r.nextSibling)}if(!i){a["s-hn"]=t;if(r){a["s-ol"]=r;a["s-ol"]["s-nr"]=a}}Ze.$orgLocNodes$.delete(n)}));if(i){s.map((function(e){if(e){i.appendChild(e)}}))}a()};var q=function(e,t,n,r,a,i,o){var l;var s;var $;var f;if(i.nodeType===1){l=i.getAttribute(N);if(l){s=l.split(".");if(s[0]===o||s[0]==="0"){$={$flags$:0,$hostId$:s[0],$nodeId$:s[1],$depth$:s[2],$index$:s[3],$tag$:i.tagName.toLowerCase(),$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null};t.push($);i.removeAttribute(N);if(!e.$children$){e.$children$=[]}e.$children$[$.$index$]=$;e=$;if(r&&$.$depth$==="0"){r[$.$index$]=$.$elm$}}}for(f=i.childNodes.length-1;f>=0;f--){q(e,t,n,r,a,i.childNodes[f],o)}if(i.shadowRoot){for(f=i.shadowRoot.childNodes.length-1;f>=0;f--){q(e,t,n,r,a,i.shadowRoot.childNodes[f],o)}}}else if(i.nodeType===8){s=i.nodeValue.split(".");if(s[1]===o||s[1]==="0"){l=s[0];$={$flags$:0,$hostId$:s[1],$nodeId$:s[2],$depth$:s[3],$index$:s[4],$elm$:i,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null};if(l===y){$.$elm$=i.nextSibling;if($.$elm$&&$.$elm$.nodeType===3){$.$text$=$.$elm$.textContent;t.push($);i.remove();if(!e.$children$){e.$children$=[]}e.$children$[$.$index$]=$;if(r&&$.$depth$==="0"){r[$.$index$]=$.$elm$}}}else if($.$hostId$===o){if(l===g){$.$tag$="slot";if(s[5]){i["s-sn"]=$.$name$=s[5]}else{i["s-sn"]=""}i["s-sr"]=true;if(r){$.$elm$=Ye.createElement($.$tag$);if($.$name$){$.$elm$.setAttribute("name",$.$name$)}i.parentNode.insertBefore($.$elm$,i);i.remove();if($.$depth$==="0"){r[$.$index$]=$.$elm$}}n.push($);if(!e.$children$){e.$children$=[]}e.$children$[$.$index$]=$}else if(l===p){if(r){i.remove()}else{a["s-cr"]=i;i["s-cn"]=true}}}}}else if(e&&e.$tag$==="style"){var u=I(null,i.textContent);u.$elm$=i;u.$index$="0";e.$children$=[u]}};var z=function(e,t){if(e.nodeType===1){var n=0;for(;n<e.childNodes.length;n++){z(e.childNodes[n],t)}if(e.shadowRoot){for(n=0;n<e.shadowRoot.childNodes.length;n++){z(e.shadowRoot.childNodes[n],t)}}}else if(e.nodeType===8){var r=e.nodeValue.split(".");if(r[0]===m){t.set(r[1]+"."+r[2],e);e.nodeValue="";e["s-en"]=r[3]}}};var U=function(e,t){if(e!=null&&!L(e)){if(t&4){return e==="false"?false:e===""||!!e}if(t&2){return parseFloat(e)}if(t&1){return String(e)}return e}return e};var V=e("g",(function(e){return He(e).$hostElement$}));var H=e("c",(function(e,t,n){var r=V(e);return{emit:function(e){return D(r,t,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:e})}}}));var D=function(e,t,n){var r=Ze.ce(t,n);e.dispatchEvent(r);return r};var F=new WeakMap;var W=function(e,t,n){var r=Qe.get(e);if(nt&&n){r=r||new CSSStyleSheet;if(typeof r==="string"){r=t}else{r.replaceSync(t)}}else{r=t}Qe.set(e,r)};var G=function(e,t,n,r){var a;var i=K(t);var o=Qe.get(i);e=e.nodeType===11?e:Ye;if(o){if(typeof o==="string"){e=e.head||e;var l=F.get(e);var s=void 0;if(!l){F.set(e,l=new Set)}if(!l.has(i)){if(e.host&&(s=e.querySelector("[".concat(w,'="').concat(i,'"]')))){s.innerHTML=o}else{{s=Ye.createElement("style");s.innerHTML=o}var $=(a=Ze.$nonce$)!==null&&a!==void 0?a:A(Ye);if($!=null){s.setAttribute("nonce",$)}e.insertBefore(s,e.querySelector("link"))}if(l){l.add(i)}}}else if(!e.adoptedStyleSheets.includes(o)){e.adoptedStyleSheets=__spreadArray(__spreadArray([],e.adoptedStyleSheets,true),[o],false)}}return i};var J=function(e){var t=e.$cmpMeta$;var n=e.$hostElement$;var r=t.$flags$;var a=d("attachStyles",t.$tagName$);var i=G(et&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t);if(r&10){n["s-sc"]=i;n.classList.add(i+"-h");if(r&2){n.classList.add(i+"-s")}}a()};var K=function(e,t){return"sc-"+e.$tagName$};var Q=function(e){return e.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{")};var X=function(e,t,n,r,a,i){if(n!==r){var o=We(e,t);var l=t.toLowerCase();if(t==="class"){var s=e.classList;var $=Z(n);var f=Z(r);s.remove.apply(s,$.filter((function(e){return e&&!f.includes(e)})));s.add.apply(s,f.filter((function(e){return e&&!$.includes(e)})))}else if(t==="style"){{for(var u in n){if(!r||r[u]==null){if(u.includes("-")){e.style.removeProperty(u)}else{e.style[u]=""}}}}for(var u in r){if(!n||r[u]!==n[u]){if(u.includes("-")){e.style.setProperty(u,r[u])}else{e.style[u]=r[u]}}}}else if(t==="key");else if(t==="ref"){if(r){r(e)}}else if(!o&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"){t=t.slice(3)}else if(We(Xe,l)){t=l.slice(2)}else{t=l[2]+t.slice(3)}if(n){Ze.rel(e,t,n,false)}if(r){Ze.ael(e,t,r,false)}}else{var c=L(r);if((o||c&&r!==null)&&!a){try{if(!e.tagName.includes("-")){var v=r==null?"":r;if(t==="list"){o=false}else if(n==null||e[t]!=v){e[t]=v}}else{e[t]=r}}catch(h){}}var d=false;{if(l!==(l=l.replace(/^xlink\:?/,""))){t=l;d=true}}if(r==null||r===false){if(r!==false||e.getAttribute(t)===""){if(d){e.removeAttributeNS(x,t)}else{e.removeAttribute(t)}}}else if((!o||i&4||a)&&!c){r=r===true?"":r;if(d){e.setAttributeNS(x,t,r)}else{e.setAttribute(t,r)}}}}};var Y=/\s/;var Z=function(e){return!e?[]:e.split(Y)};var ee=function(e,t,n,r){var a=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$;var i=e&&e.$attrs$||S;var o=t.$attrs$||S;{for(r in i){if(!(r in o)){X(a,r,i[r],undefined,n,t.$flags$)}}}for(r in o){X(a,r,i[r],o[r],n,t.$flags$)}};var te=function(e,t,n,r){var a=t.$children$[n];var $=0;var c;var v;var d;if(!s){f=true;if(a.$tag$==="slot"){if(i){r.classList.add(i+"-s")}a.$flags$|=a.$children$?2:1}}if(a.$text$!==null){c=a.$elm$=Ye.createTextNode(a.$text$)}else if(a.$flags$&1){c=a.$elm$=Ye.createTextNode("")}else{if(!u){u=a.$tag$==="svg"}c=a.$elm$=Ye.createElementNS(u?_:k,a.$flags$&2?"slot-fb":a.$tag$);if(u&&a.$tag$==="foreignObject"){u=false}{ee(null,a,u)}if(T(i)&&c["s-si"]!==i){c.classList.add(c["s-si"]=i)}if(a.$children$){for($=0;$<a.$children$.length;++$){v=te(e,a,$,c);if(v){c.appendChild(v)}}}{if(a.$tag$==="svg"){u=false}else if(c.tagName==="foreignObject"){u=true}}}{c["s-hn"]=l;if(a.$flags$&(2|1)){c["s-sr"]=true;c["s-cr"]=o;c["s-sn"]=a.$name$||"";d=e&&e.$children$&&e.$children$[n];if(d&&d.$tag$===a.$tag$&&e.$elm$){ne(e.$elm$,false)}}}return c};var ne=function(e,t){Ze.$flags$|=1;var n=e.childNodes;for(var r=n.length-1;r>=0;r--){var a=n[r];if(a["s-hn"]!==l&&a["s-ol"]){se(a).insertBefore(a,le(a));a["s-ol"].remove();a["s-ol"]=undefined;f=true}if(t){ne(a,t)}}Ze.$flags$&=~1};var re=function(e,t,n,r,a,i){var o=e["s-cr"]&&e["s-cr"].parentNode||e;var s;if(o.shadowRoot&&o.tagName===l){o=o.shadowRoot}for(;a<=i;++a){if(r[a]){s=te(null,n,a,e);if(s){r[a].$elm$=s;o.insertBefore(s,le(t))}}}};var ae=function(e,t,n,r,a){for(;t<=n;++t){if(r=e[t]){a=r.$elm$;de(r);{$=true;if(a["s-ol"]){a["s-ol"].remove()}else{ne(a,true)}}a.remove()}}};var ie=function(e,t,n,r){var a=0;var i=0;var o=0;var l=0;var s=t.length-1;var $=t[0];var f=t[s];var u=r.length-1;var c=r[0];var v=r[u];var d;var h;while(a<=s&&i<=u){if($==null){$=t[++a]}else if(f==null){f=t[--s]}else if(c==null){c=r[++i]}else if(v==null){v=r[--u]}else if(oe($,c)){$e($,c);$=t[++a];c=r[++i]}else if(oe(f,v)){$e(f,v);f=t[--s];v=r[--u]}else if(oe($,v)){if($.$tag$==="slot"||v.$tag$==="slot"){ne($.$elm$.parentNode,false)}$e($,v);e.insertBefore($.$elm$,f.$elm$.nextSibling);$=t[++a];v=r[--u]}else if(oe(f,c)){if($.$tag$==="slot"||v.$tag$==="slot"){ne(f.$elm$.parentNode,false)}$e(f,c);e.insertBefore(f.$elm$,$.$elm$);f=t[--s];c=r[++i]}else{o=-1;{for(l=a;l<=s;++l){if(t[l]&&t[l].$key$!==null&&t[l].$key$===c.$key$){o=l;break}}}if(o>=0){h=t[o];if(h.$tag$!==c.$tag$){d=te(t&&t[i],n,o,e)}else{$e(h,c);t[o]=undefined;d=h.$elm$}c=r[++i]}else{d=te(t&&t[i],n,i,e);c=r[++i]}if(d){{se($.$elm$).insertBefore(d,le($.$elm$))}}}}if(a>s){re(e,r[u+1]==null?null:r[u+1].$elm$,n,r,i,u)}else if(i>u){ae(t,a,s)}};var oe=function(e,t){if(e.$tag$===t.$tag$){if(e.$tag$==="slot"){return e.$name$===t.$name$}{return e.$key$===t.$key$}}return false};var le=function(e){return e&&e["s-ol"]||e};var se=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode};var $e=function(e,t){var n=t.$elm$=e.$elm$;var r=e.$children$;var a=t.$children$;var i=t.$tag$;var o=t.$text$;var l;if(o===null){{u=i==="svg"?true:i==="foreignObject"?false:u}{if(i==="slot");else{ee(e,t,u)}}if(r!==null&&a!==null){ie(n,r,t,a)}else if(a!==null){if(e.$text$!==null){n.textContent=""}re(n,null,t,a,0,a.length-1)}else if(r!==null){ae(r,0,r.length-1)}if(u&&i==="svg"){u=false}}else if(l=n["s-cr"]){l.parentNode.textContent=o}else if(e.$text$!==o){n.data=o}};var fe=function(e){var t=e.childNodes;var n;var r;var a;var i;var o;var l;for(r=0,a=t.length;r<a;r++){n=t[r];if(n.nodeType===1){if(n["s-sr"]){o=n["s-sn"];n.hidden=false;for(i=0;i<a;i++){l=t[i].nodeType;if(t[i]["s-hn"]!==n["s-hn"]||o!==""){if(l===1&&o===t[i].getAttribute("slot")){n.hidden=true;break}}else{if(l===1||l===3&&t[i].textContent.trim()!==""){n.hidden=true;break}}}}fe(n)}}};var ue=[];var ce=function(e){var t;var n;var r;var a;var i;var o;var l=0;var s=e.childNodes;var f=s.length;for(;l<f;l++){t=s[l];if(t["s-sr"]&&(n=t["s-cr"])&&n.parentNode){r=n.parentNode.childNodes;a=t["s-sn"];for(o=r.length-1;o>=0;o--){n=r[o];if(!n["s-cn"]&&!n["s-nr"]&&n["s-hn"]!==t["s-hn"]){if(ve(n,a)){i=ue.find((function(e){return e.$nodeToRelocate$===n}));$=true;n["s-sn"]=n["s-sn"]||a;if(i){i.$slotRefNode$=t}else{ue.push({$slotRefNode$:t,$nodeToRelocate$:n})}if(n["s-sr"]){ue.map((function(e){if(ve(e.$nodeToRelocate$,n["s-sn"])){i=ue.find((function(e){return e.$nodeToRelocate$===n}));if(i&&!e.$slotRefNode$){e.$slotRefNode$=i.$slotRefNode$}}}))}}else if(!ue.some((function(e){return e.$nodeToRelocate$===n}))){ue.push({$nodeToRelocate$:n})}}}}if(t.nodeType===1){ce(t)}}};var ve=function(e,t){if(e.nodeType===1){if(e.getAttribute("slot")===null&&t===""){return true}if(e.getAttribute("slot")===t){return true}return false}if(e["s-sn"]===t){return true}return t===""};var de=function(e){{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null);e.$children$&&e.$children$.map(de)}};var he=function(e,t){var n=e.$hostElement$;var r=e.$cmpMeta$;var a=e.$vnode$||I(null,null);var u=E(t)?t:C(null,null,t);l=n.tagName;if(r.$attrsToReflect$){u.$attrs$=u.$attrs$||{};r.$attrsToReflect$.map((function(e){var t=e[0],r=e[1];return u.$attrs$[r]=n[t]}))}u.$tag$=null;u.$flags$|=4;e.$vnode$=u;u.$elm$=a.$elm$=n.shadowRoot||n;{i=n["s-sc"]}{o=n["s-cr"];s=et&&(r.$flags$&1)!==0;$=false}$e(a,u);{Ze.$flags$|=1;if(f){ce(u.$elm$);var c=void 0;var v=void 0;var d=void 0;var h=void 0;var p=void 0;var m=void 0;var g=0;for(;g<ue.length;g++){c=ue[g];v=c.$nodeToRelocate$;if(!v["s-ol"]){d=Ye.createTextNode("");d["s-nr"]=v;v.parentNode.insertBefore(v["s-ol"]=d,v)}}for(g=0;g<ue.length;g++){c=ue[g];v=c.$nodeToRelocate$;if(c.$slotRefNode$){h=c.$slotRefNode$.parentNode;p=c.$slotRefNode$.nextSibling;d=v["s-ol"];while(d=d.previousSibling){m=d["s-nr"];if(m&&m["s-sn"]===v["s-sn"]&&h===m.parentNode){m=m.nextSibling;if(!m||!m["s-nr"]){p=m;break}}}if(!p&&h!==v.parentNode||v.nextSibling!==p){if(v!==p){if(!v["s-hn"]&&v["s-ol"]){v["s-hn"]=v["s-ol"].parentNode.nodeName}h.insertBefore(v,p)}}}else{if(v.nodeType===1){v.hidden=true}}}}if($){fe(u.$elm$)}Ze.$flags$&=~1;ue.length=0}};var pe=function(e,t){if(t&&!e.$onRenderResolve$&&t["s-p"]){t["s-p"].push(new Promise((function(t){return e.$onRenderResolve$=t})))}};var me=function(e,t){{e.$flags$|=16}if(e.$flags$&4){e.$flags$|=512;return}pe(e,e.$ancestorComponent$);var n=function(){return ge(e,t)};return $t(n)};var ge=function(e,t){var n=d("scheduleUpdate",e.$cmpMeta$.$tagName$);var r=e.$lazyInstance$;var a;if(t){{e.$flags$|=256;if(e.$queuedListeners$){e.$queuedListeners$.map((function(e){var t=e[0],n=e[1];return Re(r,t,n)}));e.$queuedListeners$=null}}{a=Re(r,"componentWillLoad")}}{a=xe(a,(function(){return Re(r,"componentWillRender")}))}n();return xe(a,(function(){return ye(e,r,t)}))};var ye=function(e,t,r){return __awaiter(n,void 0,void 0,(function(){var n,a,i,o,l,s;return __generator(this,(function($){n=e.$hostElement$;a=d("update",e.$cmpMeta$.$tagName$);i=n["s-rc"];if(r){J(e)}o=d("render",e.$cmpMeta$.$tagName$);{be(e,t)}if(i){i.map((function(e){return e()}));n["s-rc"]=undefined}o();a();{l=n["s-p"];s=function(){return we(e)};if(l.length===0){s()}else{Promise.all(l).then(s);e.$flags$|=4;l.length=0}}return[2]}))}))};var be=function(e,t,n){try{t=t.render();{e.$flags$&=~16}{e.$flags$|=2}{{{he(e,t)}}}}catch(r){Ge(r,e.$hostElement$)}return null};var we=function(e){var t=e.$cmpMeta$.$tagName$;var n=e.$hostElement$;var r=d("postUpdate",t);var a=e.$lazyInstance$;var i=e.$ancestorComponent$;{Re(a,"componentDidRender")}if(!(e.$flags$&64)){e.$flags$|=64;{Se(n)}{Re(a,"componentDidLoad")}r();{e.$onReadyResolve$(n);if(!i){Ne()}}}else{{Re(a,"componentDidUpdate")}r()}{e.$onInstanceResolve$(n)}{if(e.$onRenderResolve$){e.$onRenderResolve$();e.$onRenderResolve$=undefined}if(e.$flags$&512){st((function(){return me(e,false)}))}e.$flags$&=~(4|512)}};var Ne=function(e){{Se(Ye.documentElement)}st((function(){return D(Xe,"appload",{detail:{namespace:r}})}))};var Re=function(e,t,n){if(e&&e[t]){try{return e[t](n)}catch(r){Ge(r)}}return undefined};var xe=function(e,t){return e&&e.then?e.then(t):t()};var Se=function(e){return e.classList.add("hydrated")};var _e=function(e,t){return He(e).$instanceValues$.get(t)};var ke=function(e,t,n,r){var a=He(e);var i=a.$hostElement$;var o=a.$instanceValues$.get(t);var l=a.$flags$;var s=a.$lazyInstance$;n=U(n,r.$members$[t][0]);var $=Number.isNaN(o)&&Number.isNaN(n);var f=n!==o&&!$;if((!(l&8)||o===undefined)&&f){a.$instanceValues$.set(t,n);if(s){if(r.$watchers$&&l&128){var u=r.$watchers$[t];if(u){u.map((function(e){try{s[e](n,o,t)}catch(r){Ge(r,i)}}))}}if((l&(2|16))===2){me(a,false)}}}};var Te=function(e,t,n){if(t.$members$){if(e.watchers){t.$watchers$=e.watchers}var r=Object.entries(t.$members$);var a=e.prototype;r.map((function(e){var r=e[0],i=e[1][0];if(i&31||n&2&&i&32){Object.defineProperty(a,r,{get:function(){return _e(this,r)},set:function(e){ke(this,r,e,t)},configurable:true,enumerable:true})}else if(n&1&&i&64){Object.defineProperty(a,r,{value:function(){var e=[];for(var t=0;t<arguments.length;t++){e[t]=arguments[t]}var n=He(this);return n.$onInstancePromise$.then((function(){var t;return(t=n.$lazyInstance$)[r].apply(t,e)}))}})}}));if(n&1){var i=new Map;a.attributeChangedCallback=function(e,t,n){var r=this;Ze.jmp((function(){var t=i.get(e);if(r.hasOwnProperty(t)){n=r[t];delete r[t]}else if(a.hasOwnProperty(t)&&typeof r[t]==="number"&&r[t]==n){return}r[t]=n===null&&typeof r[t]==="boolean"?false:n}))};e.observedAttributes=r.filter((function(e){var t=e[0],n=e[1];return n[0]&15})).map((function(e){var n=e[0],r=e[1];var a=r[1]||n;i.set(a,n);if(r[0]&512){t.$attrsToReflect$.push([n,a])}return a}))}}return e};var Le=function(e,r,a,i,o){return __awaiter(n,void 0,void 0,(function(){var e,n,i,l,s,$,f;return __generator(this,(function(u){switch(u.label){case 0:if(!((r.$flags$&32)===0))return[3,5];r.$flags$|=32;o=Ke(a);if(!o.then)return[3,2];e=h();return[4,o];case 1:o=u.sent();e();u.label=2;case 2:if(!o.isProxied){{a.$watchers$=o.watchers}Te(o,a,2);o.isProxied=true}n=d("createInstance",a.$tagName$);{r.$flags$|=8}try{new o(r)}catch(c){Ge(c)}{r.$flags$&=~8}{r.$flags$|=128}n();Ae(r.$lazyInstance$);if(!o.style)return[3,5];i=o.style;l=K(a);if(!!Qe.has(l))return[3,5];s=d("registerStyles",a.$tagName$);if(!(a.$flags$&8))return[3,4];return[4,t.import("./p-9d9204af.system.js").then((function(e){return e.scopeCss(i,l,false)}))];case 3:i=u.sent();u.label=4;case 4:W(l,i,!!(a.$flags$&1));s();u.label=5;case 5:$=r.$ancestorComponent$;f=function(){return me(r,true)};if($&&$["s-rc"]){$["s-rc"].push(f)}else{f()}return[2]}}))}))};var Ae=function(e){{Re(e,"connectedCallback")}};var Ce=function(e){if((Ze.$flags$&1)===0){var t=He(e);var n=t.$cmpMeta$;var r=d("connectedCallback",n.$tagName$);if(!(t.$flags$&1)){t.$flags$|=1;var a=void 0;{a=e.getAttribute(b);if(a){if(et&&n.$flags$&1){var i=G(e.shadowRoot,n);e.classList.remove(i+"-h",i+"-s")}B(e,n.$tagName$,a,t)}}if(!a){if(n.$flags$&(4|8)){Ie(e)}}{var o=e;while(o=o.parentNode||o.host){if(o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){pe(t,t.$ancestorComponent$=o);break}}}if(n.$members$){Object.entries(n.$members$).map((function(t){var n=t[0],r=t[1][0];if(r&31&&e.hasOwnProperty(n)){var a=e[n];delete e[n];e[n]=a}}))}{st((function(){return Le(e,t,n)}))}}else{Me(e,t,n.$listeners$);Ae(t.$lazyInstance$)}r()}};var Ie=function(e){var t=e["s-cr"]=Ye.createComment("");t["s-cn"]=true;e.insertBefore(t,e.firstChild)};var je=function(e){if((Ze.$flags$&1)===0){var t=He(e);var n=t.$lazyInstance$;{if(t.$rmListeners$){t.$rmListeners$.map((function(e){return e()}));t.$rmListeners$=undefined}}{Re(n,"disconnectedCallback")}}};var Ee=function(e,t){var n=function(e){__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}t.prototype.item=function(e){return this[e]};return t}(Array);if(t.$flags$&8){var r=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get:function(){return this.childNodes.map((function(e){return e.nodeType===1}))}});Object.defineProperty(e,"childElementCount",{get:function(){return e.children.length}});Object.defineProperty(e,"childNodes",{get:function(){var e=r.call(this);if((Ze.$flags$&1)===0&&He(this).$flags$&2){var t=new n;for(var a=0;a<e.length;a++){var i=e[a]["s-nr"];if(i){t.push(i)}}return t}return n.from(e)}})}};var Pe=e("b",(function(e,t){if(t===void 0){t={}}var n;var r=d();var a=[];var i=t.exclude||[];var o=Xe.customElements;var l=Ye.head;var s=l.querySelector("meta[charset]");var $=Ye.createElement("style");var f=[];var u=Ye.querySelectorAll("[".concat(w,"]"));var c;var v=true;var h=0;Object.assign(Ze,t);Ze.$resourcesUrl$=new URL(t.resourcesUrl||"./",Ye.baseURI).href;{Ze.$flags$|=2}{for(;h<u.length;h++){W(u[h].getAttribute(w),Q(u[h].innerHTML),true)}}e.map((function(e){e[1].map((function(t){var n={$flags$:t[0],$tagName$:t[1],$members$:t[2],$listeners$:t[3]};{n.$members$=t[2]}{n.$listeners$=t[3]}{n.$attrsToReflect$=[]}{n.$watchers$={}}if(!et&&n.$flags$&1){n.$flags$|=8}var r=n.$tagName$;var l=function(e){__extends(t,e);function t(t){var r=e.call(this,t)||this;t=r;Fe(t,n);if(n.$flags$&1){if(et){{t.attachShadow({mode:"open",delegatesFocus:!!(n.$flags$&16)})}}else if(!("shadowRoot"in t)){t.shadowRoot=t}}{Ee(t,n)}return r}t.prototype.connectedCallback=function(){var e=this;if(c){clearTimeout(c);c=null}if(v){f.push(this)}else{Ze.jmp((function(){return Ce(e)}))}};t.prototype.disconnectedCallback=function(){var e=this;Ze.jmp((function(){return je(e)}))};t.prototype.componentOnReady=function(){return He(this).$onReadyPromise$};return t}(HTMLElement);n.$lazyBundleId$=e[0];if(!i.includes(r)&&!o.get(r)){a.push(r);o.define(r,Te(l,n,1))}}))}));{$.innerHTML=a+R;$.setAttribute("data-styles","");var p=(n=Ze.$nonce$)!==null&&n!==void 0?n:A(Ye);if(p!=null){$.setAttribute("nonce",p)}l.insertBefore($,s?s.nextSibling:l.firstChild)}v=false;if(f.length){f.map((function(e){return e.connectedCallback()}))}else{{Ze.jmp((function(){return c=setTimeout(Ne,30)}))}}r()}));var Oe=e("F",(function(e,t){return t}));var Me=function(e,t,n,r){if(n){n.map((function(n){var r=n[0],a=n[1],i=n[2];var o=qe(e,r);var l=Be(t,i);var s=ze(r);Ze.ael(o,a,l,s);(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return Ze.rel(o,a,l,s)}))}))}};var Be=function(e,t){return function(n){try{{if(e.$flags$&256){e.$lazyInstance$[t](n)}else{(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}}}catch(r){Ge(r)}}};var qe=function(e,t){if(t&4)return Ye;if(t&8)return Xe;if(t&16)return Ye.body;return e};var ze=function(e){return(e&2)!==0};var Ue=e("s",(function(e){return Ze.$nonce$=e}));var Ve=new WeakMap;var He=function(e){return Ve.get(e)};var De=e("r",(function(e,t){return Ve.set(t.$lazyInstance$=e,t)}));var Fe=function(e,t){var n={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};{n.$onInstancePromise$=new Promise((function(e){return n.$onInstanceResolve$=e}))}{n.$onReadyPromise$=new Promise((function(e){return n.$onReadyResolve$=e}));e["s-p"]=[];e["s-rc"]=[]}Me(e,n,t.$listeners$);return Ve.set(e,n)};var We=function(e,t){return t in e};var Ge=function(e,t){return(0,console.error)(e,t)};var Je=new Map;var Ke=function(e,n,r){var a=e.$tagName$.replace(/-/g,"_");var i=e.$lazyBundleId$;var o=Je.get(i);if(o){return o[a]}
|
|
5
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/return t.import("./".concat(i,".entry.js").concat("")).then((function(e){{Je.set(i,e)}return e[a]}),Ge)};var Qe=new Map;var Xe=e("w",typeof window!=="undefined"?window:{});var Ye=e("d",Xe.document||{head:{}});var Ze=e("a",{$flags$:0,$resourcesUrl$:"",jmp:function(e){return e()},raf:function(e){return requestAnimationFrame(e)},ael:function(e,t,n,r){return e.addEventListener(t,n,r)},rel:function(e,t,n,r){return e.removeEventListener(t,n,r)},ce:function(e,t){return new CustomEvent(e,t)}});var et=function(){return(Ye.head.attachShadow+"").indexOf("[native")>-1}();var tt=e("p",(function(e){return Promise.resolve(e)}));var nt=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(e){}return false}();var rt=[];var at=[];var it=function(e,t){return function(n){e.push(n);if(!c){c=true;if(t&&Ze.$flags$&4){st(lt)}else{Ze.raf(lt)}}}};var ot=function(e){for(var t=0;t<e.length;t++){try{e[t](performance.now())}catch(n){Ge(n)}}e.length=0};var lt=function(){ot(rt);{ot(at);if(c=rt.length>0){Ze.raf(lt)}}};var st=function(e){return tt().then(e)};var $t=it(at,true)}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
System.register(["./p-053be9dd.system.js","./p-33b3aba4.system.js"],(function(e){"use strict";var t,n,i,o,r;return{setters:[function(e){t=e.r;n=e.h;i=e.H;o=e.g},function(e){r=e.i}],execute:function(){var a='*,*::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:flex;flex-direction:row;gap:0.5rem;align-items:center;justify-content:flex-start}.duet-popup-menu-item{display:flex;flex-grow:1;gap:8px;align-items:center;height:100%;padding:8px 20px;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:400;line-height:1.25;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-popup-menu-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-popup-menu-item: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-popup-menu-item.active,.duet-popup-menu-item.active:hover{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-popup-menu-item.active.duet-theme-turva,.duet-popup-menu-item.active:hover.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(198, 12, 48)}.duet-popup-menu-item:hover{background:rgb(230, 242, 248)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(228, 228, 230)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}';var u=e("duet_popup_menu_item",function(){function e(e){t(this,e);this.accessibleLabel=undefined;this.theme="";this.url=undefined;this.external=false;this.value=undefined;this.leadingIcon=undefined;this.trailingIcon=undefined;this.trailingText=undefined;this.active=false}e.prototype.componentWillLoad=function(){r(this)};e.prototype.render=function(){var e=this.url?"a":"button";var t={"duet-popup-menu-item":true,active:this.active,"duet-theme-turva":this.theme==="turva"};return n(i,null,n(e,{role:"menuitem","aria-label":this.accessibleLabel,class:t,value:this.value,href:this.url,target:this.external?"_blank":undefined,rel:this.external?"noopener":undefined},this.leadingIcon&&n("duet-icon",{name:this.leadingIcon,size:"xx-small",color:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),n("span",{class:"duet-popup-menu-item-label"},n("slot",null)),this.trailingIcon&&n("duet-icon",{name:this.trailingIcon,size:"xx-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&n("span",{class:"duet-popup-menu-item-trailing"},this.trailingText)))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());u.style=a}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,e,o,i){function r(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,a){function n(t){try{s(i.next(t))}catch(e){a(e)}}function l(t){try{s(i["throw"](t))}catch(e){a(e)}}function s(t){t.done?o(t.value):r(t.value).then(n,l)}s((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,r,a,n;return n={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function l(t){return function(e){return s([t,e])}}function s(l){if(i)throw new TypeError("Generator is already executing.");while(n&&(n=0,l[0]&&(o=0)),o)try{if(i=1,r&&(a=l[0]&2?r["return"]:l[0]?r["throw"]||((a=r["return"])&&a.call(r),0):r.next)&&!(a=a.call(r,l[1])).done)return a;if(r=0,a)l=[l[0]&2,a.value];switch(l[0]){case 0:case 1:a=l;break;case 4:o.label++;return{value:l[1],done:false};case 5:o.label++;r=l[1];l=[0];continue;case 7:l=o.ops.pop();o.trys.pop();continue;default:if(!(a=o.trys,a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){o=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){o.label=l[1];break}if(l[0]===6&&o.label<a[1]){o.label=a[1];a=l;break}if(a&&o.label<a[2]){o.label=a[2];o.ops.push(l);break}if(a[2])o.ops.pop();o.trys.pop();continue}l=e.call(t,o)}catch(s){l=[6,s];r=0}finally{i=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};
|
|
2
|
-
/*!
|
|
3
|
-
* Built with Duet Design System
|
|
4
|
-
*/System.register(["./p-053be9dd.system.js","./p-45e609b1.system.js","./p-82b5380b.system.js","./p-33b3aba4.system.js","./p-5f6bd5db.system.js","./p-c8dc599d.system.js","./p-b6d51921.system.js"],(function(t){"use strict";var e,o,i,r,a,n,l,s,p,c,u,d,b,h,f,m;return{setters:[function(t){e=t.r;o=t.h;i=t.H;r=t.g},function(t){a=t.m;n=t.a},function(t){l=t.c;s=t.f;p=t.s;c=t.a},function(t){u=t.i},function(t){d=t.c},function(t){b=t.g;h=t.a;f=t.c;m=t.d},function(){}],execute:function(){var g='*,*::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;position:relative;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}.duet-tooltip{position:absolute;z-index:950;display:none;width:282px;min-height:48px;max-height:340px;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:400;line-height:1.25;color:rgb(0, 41, 77);visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:300ms ease;transform-origin:100% 100%}.duet-tooltip.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);border-color:rgb(228, 228, 230);box-shadow:0 2px 10px 0 rgba(117, 117, 117, 0.13)}.duet-tooltip .arrow{position:absolute;width:22px;height:22px;pointer-events:none}.duet-tooltip .arrow.bottom,.duet-tooltip .arrow.bottom-start,.duet-tooltip .arrow.bottom-end{top:-21px}.duet-tooltip .arrow-container{position:relative;width:100%;height:100%;pointer-events:none}.duet-tooltip .arrow-container::after{position:absolute;z-index:200;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container::before{position:absolute;z-index:100;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container.top::after,.duet-tooltip .arrow-container.top-start::after,.duet-tooltip .arrow-container.top-end::after{bottom:2px;left:2px;border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.top::before,.duet-tooltip .arrow-container.top-start::before,.duet-tooltip .arrow-container.top-end::before{bottom:-1px;left:1px;border:11px solid transparent;border-top:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip .arrow-container.top::before,.duet-theme-turva .duet-tooltip .arrow-container.top-start::before,.duet-theme-turva .duet-tooltip .arrow-container.top-end::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip .arrow-container.bottom::after,.duet-tooltip .arrow-container.bottom-start::after,.duet-tooltip .arrow-container.bottom-end::after{bottom:1px;left:2px;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.bottom::before,.duet-tooltip .arrow-container.bottom-start::before,.duet-tooltip .arrow-container.bottom-end::before{bottom:1px;left:1px;border:11px solid transparent;border-bottom:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip .arrow-container.bottom::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-start::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-end::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-has-label{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-active{visibility:visible;opacity:1;transition-property:transform, opacity}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button.duet-theme-turva{color:rgb(198, 12, 48)}.duet-tooltip-button:hover{color:rgb(0, 77, 128)}.duet-tooltip-button:hover.duet-theme-turva{color:rgb(148, 9, 37)}.duet-tooltip-button:focus{background:transparent !important;outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}:host(.user-is-tabbing) .duet-tooltip-button.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-scrollable{padding:20px !important;width:100%;max-height:250px;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-scrollable:focus{outline:none}:host(.user-is-tabbing) .duet-tooltip-scrollable: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-theme-turva .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-tooltip-scrollable::-webkit-scrollbar{width:4px}.duet-tooltip-scrollable::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(225, 227, 230);border-radius:4px}.duet-theme-turva .duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(228, 228, 230)}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;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.25;text-align:left;white-space:normal;vertical-align:top}.duet-theme-turva .duet-tooltip-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-tooltip-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0 !important;padding:0 !important;margin:0 !important;line-height:normal;color:rgb(0, 41, 77);cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;-webkit-appearance:none;appearance:none}.duet-tooltip-close:focus{outline:none;box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva .duet-tooltip-close:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px rgb(23, 28, 58)}';var w=t("duet_tooltip",function(){function t(t){var o=this;e(this,t);this.mql=[window.matchMedia(a.replace(/'/g,"")),window.matchMedia(n.replace(/'/g,""))];this.tooltipId=d("DuetTooltip");this.openTooltip=function(){o.focusTarget="tooltip";o.active=true};this.closeTooltip=function(t){if(t===void 0){t=false}if(t){o.focusTarget="trigger"}o.active=false};this.toggleOpen=function(){o.active?o.closeTooltip():o.openTooltip()};this.handleFocusOut=function(t){if(!o.active){return}var e=t.relatedTarget;if(e==null||o.element.shadowRoot.contains(e)||o.element.contains(e)){return}o.closeTooltip()};this.handleKeyDown=function(t){var e=t.keyCode===27;var i=t.target===o.scrollableEl&&t.shiftKey&&t.keyCode===9;if(e||i){o.closeTooltip(true)}};this.handleCloseClick=function(){o.closeTooltip(true)};this.updatePlacement=function(){return __awaiter(o,void 0,void 0,(function(){var t,e,o,i,r;return __generator(this,(function(a){switch(a.label){case 0:o=true;if(this.breakpoint==="large"&&!this.mql[1].matches){o=false}else if(this.breakpoint==="medium"&&!this.mql[0].matches){o=false}i=o?"top-start":"top-end";if(this.direction==="left"){i="top-end"}else if(this.direction==="right"){i="top-start"}return[4,l(this.buttonEl,this.tooltipEl,{placement:i,middleware:[s(),p({padding:5}),c({element:this.arrowEl})]})];case 1:r=a.sent();this.tooltipY=r.y;this.tooltipX=r.x;this.placement=r.placement;this.arrowY=(t=r.middlewareData.arrow)===null||t===void 0?void 0:t.y;this.arrowX=(e=r.middlewareData.arrow)===null||e===void 0?void 0:e.x;return[2]}}))}))};this.placement="bottom";this.tooltipY=undefined;this.tooltipX=undefined;this.arrowX=undefined;this.arrowY=undefined;this.theme="";this.language=b();this.accessibleLabelDefault={fi:"Näytä lisätietoja",en:"Show more information",sv:"Visa mer tilläggsuppgifter"};this.accessibleLabel=h(this.accessibleLabelDefault,this.language);this.accessibleInputLabel=undefined;this.accessibleCloseLabelDefault={fi:"Sulje lisätiedot",en:"Close details",sv:"Stäng tilläggsuppgifter"};this.accessibleCloseLabel=h(this.accessibleCloseLabelDefault,this.language);this.label="";this.breakpoint="medium";this.direction="auto";this.positionVertical="0";this.positionHorizontal="0";this.active=false}t.prototype.watchLanguageStateHandler=function(t,e){if(t!==e&&this.accessibleLabel===this.accessibleLabelDefault[e]){this.accessibleLabel=h(this.accessibleLabelDefault,t)}if(t!==e&&this.accessibleCloseLabel===this.accessibleCloseLabelDefault[e]){this.accessibleCloseLabel=h(this.accessibleCloseLabelDefault,t)}};t.prototype.componentWillLoad=function(){u(this)};t.prototype.componentDidLoad=function(){{this.updatePlacement()}};t.prototype.componentDidUpdate=function(){switch(this.focusTarget){case"tooltip":this.scrollableEl.focus({preventScroll:true});break;case"trigger":this.buttonEl.focus({preventScroll:true});break}this.focusTarget=null};t.prototype.connectedCallback=function(){f(this)};t.prototype.disconnectedCallback=function(){m(this)};t.prototype.onScroll=function(){var t=this;clearTimeout(this.scrollTimer);this.scrollTimer=setTimeout((function(){if(t.active){t.updatePlacement()}}),100)};t.prototype.handleWindowResize=function(){var t=this;clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout((function(){t.updatePlacement()}),100)};t.prototype.handleDocumentClick=function(t){var e=this;if(!this.active){return}var o=t.composedPath();var i=o.every((function(t){return t!==e.element}));if(i){this.closeTooltip()}};t.prototype.handleActiveChange=function(t){return __awaiter(this,void 0,void 0,(function(){var e=this;return __generator(this,(function(o){if(t){this.updatePlacement()}else{setTimeout((function(){return e.updatePlacement()}),300)}return[2]}))}))};t.prototype.render=function(){var t,e;var r=this;var a={transform:"translateY(".concat(this.positionVertical,") translateX(").concat(this.positionHorizontal,")"),zIndex:this.active?"201":""};var n={top:"".concat(this.tooltipY,"px"),left:"".concat(this.tooltipX,"px"),display:"block"};var l={top:this.arrowY?"".concat(this.arrowY,"px"):undefined,left:this.arrowX?"".concat(this.arrowX,"px"):undefined};return o(i,{style:a},o("button",{ref:function(t){return r.buttonEl=t},"aria-controls":this.tooltipId,"aria-expanded":this.active?"true":"false",onClick:this.toggleOpen,type:"button",class:{"duet-tooltip-button":true,"duet-tooltip-button-has-label":!!this.label,"duet-theme-turva":this.theme==="turva"}},o("svg",{"aria-hidden":"true",role:"img",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},o("path",{d:"m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z"}),o("circle",{cx:"11.625",cy:"7.125",r:"1.125"}),o("path",{d:"m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z"})),this.label?o("span",{class:"duet-tooltip-label"},this.label):o("duet-visually-hidden",null,this.accessibleInputLabel?"".concat(this.accessibleInputLabel,", ").concat(this.accessibleLabel):this.accessibleLabel)),o("div",{ref:function(t){return r.tooltipEl=t},style:n,class:{"duet-tooltip":true,"duet-theme-turva":this.theme==="turva","duet-tooltip-has-label":!!this.label,"duet-tooltip-active":this.active===true},onClick:function(t){return t.stopPropagation()},onKeyDown:this.handleKeyDown,onFocusout:this.handleFocusOut},o("div",{ref:function(t){return r.scrollableEl=t},class:"duet-tooltip-scrollable",tabindex:"0",id:this.tooltipId},o("slot",null)),o("div",{ref:function(t){return r.arrowEl=t},class:(t={arrow:true},t[this.placement]=true,t),style:l},o("div",{class:(e={"arrow-container":true},e[this.placement]=true,e)})),o("button",{type:"button",class:"duet-tooltip-close",onClick:this.handleCloseClick},o("duet-icon",{name:"navigation-close-small",margin:"none",color:"currentColor",size:"xxx-small"}),o("duet-visually-hidden",null,this.accessibleCloseLabel))))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{language:["watchLanguageStateHandler"],active:["handleActiveChange"]}},enumerable:false,configurable:true});return t}());w.style=g}}}));
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as t,h as o,H as e,g as i}from"./p-fbd0d098.js";import{m as r,a}from"./p-b519ac77.js";import{c as s,f as n,s as l,a as p}from"./p-df10a767.js";import{i as d}from"./p-4ebf1618.js";import{c as h}from"./p-c1325e35.js";import{g as u,a as b,c,d as m}from"./p-076452be.js";import"./p-5a9d75e1.js";const g=class{constructor(o){t(this,o),this.mql=[window.matchMedia(r.replace(/'/g,"")),window.matchMedia(a.replace(/'/g,""))],this.tooltipId=h("DuetTooltip"),this.openTooltip=()=>{this.focusTarget="tooltip",this.active=!0},this.closeTooltip=(t=!1)=>{t&&(this.focusTarget="trigger"),this.active=!1},this.toggleOpen=()=>{this.active?this.closeTooltip():this.openTooltip()},this.handleFocusOut=t=>{if(!this.active)return;const o=t.relatedTarget;null==o||this.element.shadowRoot.contains(o)||this.element.contains(o)||this.closeTooltip()},this.handleKeyDown=t=>{(27===t.keyCode||t.target===this.scrollableEl&&t.shiftKey&&9===t.keyCode)&&this.closeTooltip(!0)},this.handleCloseClick=()=>{this.closeTooltip(!0)},this.updatePlacement=async()=>{var t,o;let e=!0;("large"!==this.breakpoint||this.mql[1].matches)&&("medium"!==this.breakpoint||this.mql[0].matches)||(e=!1);let i=e?"top-start":"top-end";"left"===this.direction?i="top-end":"right"===this.direction&&(i="top-start");const r=await s(this.buttonEl,this.tooltipEl,{placement:i,middleware:[n(),l({padding:5}),p({element:this.arrowEl})]});this.tooltipY=r.y,this.tooltipX=r.x,this.placement=r.placement,this.arrowY=null===(t=r.middlewareData.arrow)||void 0===t?void 0:t.y,this.arrowX=null===(o=r.middlewareData.arrow)||void 0===o?void 0:o.x},this.placement="bottom",this.tooltipY=void 0,this.tooltipX=void 0,this.arrowX=void 0,this.arrowY=void 0,this.theme="",this.language=u(),this.accessibleLabelDefault={fi:"Näytä lisätietoja",en:"Show more information",sv:"Visa mer tilläggsuppgifter"},this.accessibleLabel=b(this.accessibleLabelDefault,this.language),this.accessibleInputLabel=void 0,this.accessibleCloseLabelDefault={fi:"Sulje lisätiedot",en:"Close details",sv:"Stäng tilläggsuppgifter"},this.accessibleCloseLabel=b(this.accessibleCloseLabelDefault,this.language),this.label="",this.breakpoint="medium",this.direction="auto",this.positionVertical="0",this.positionHorizontal="0",this.active=!1}watchLanguageStateHandler(t,o){t!==o&&this.accessibleLabel===this.accessibleLabelDefault[o]&&(this.accessibleLabel=b(this.accessibleLabelDefault,t)),t!==o&&this.accessibleCloseLabel===this.accessibleCloseLabelDefault[o]&&(this.accessibleCloseLabel=b(this.accessibleCloseLabelDefault,t))}componentWillLoad(){d(this)}componentDidLoad(){this.updatePlacement()}componentDidUpdate(){switch(this.focusTarget){case"tooltip":this.scrollableEl.focus({preventScroll:!0});break;case"trigger":this.buttonEl.focus({preventScroll:!0})}this.focusTarget=null}connectedCallback(){c(this)}disconnectedCallback(){m(this)}onScroll(){clearTimeout(this.scrollTimer),this.scrollTimer=setTimeout((()=>{this.active&&this.updatePlacement()}),100)}handleWindowResize(){clearTimeout(this.resizeTimer),this.resizeTimer=setTimeout((()=>{this.updatePlacement()}),100)}handleDocumentClick(t){this.active&&t.composedPath().every((t=>t!==this.element))&&this.closeTooltip()}async handleActiveChange(t){t?this.updatePlacement():setTimeout((()=>this.updatePlacement()),300)}render(){const t={top:`${this.tooltipY}px`,left:`${this.tooltipX}px`,display:"block"},i={top:this.arrowY?`${this.arrowY}px`:void 0,left:this.arrowX?`${this.arrowX}px`:void 0};return o(e,{style:{transform:`translateY(${this.positionVertical}) translateX(${this.positionHorizontal})`,zIndex:this.active?"201":""}},o("button",{ref:t=>this.buttonEl=t,"aria-controls":this.tooltipId,"aria-expanded":this.active?"true":"false",onClick:this.toggleOpen,type:"button",class:{"duet-tooltip-button":!0,"duet-tooltip-button-has-label":!!this.label,"duet-theme-turva":"turva"===this.theme}},o("svg",{"aria-hidden":"true",role:"img",fill:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},o("path",{d:"m13.5 17.25c-1.241 0-2.25-1.009-2.25-2.25v-3.75h-.75c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h.75c.827 0 1.5.673 1.5 1.5v3.75c0 .414.336.75.75.75h.75c.414 0 .75.336.75.75s-.336.75-.75.75z"}),o("circle",{cx:"11.625",cy:"7.125",r:"1.125"}),o("path",{d:"m12 24c-6.617 0-12-5.383-12-12s5.383-12 12-12 12 5.383 12 12-5.383 12-12 12zm0-22.5c-5.79 0-10.5 4.71-10.5 10.5s4.71 10.5 10.5 10.5 10.5-4.71 10.5-10.5-4.71-10.5-10.5-10.5z"})),this.label?o("span",{class:"duet-tooltip-label"},this.label):o("duet-visually-hidden",null,this.accessibleInputLabel?`${this.accessibleInputLabel}, ${this.accessibleLabel}`:this.accessibleLabel)),o("div",{ref:t=>this.tooltipEl=t,style:t,class:{"duet-tooltip":!0,"duet-theme-turva":"turva"===this.theme,"duet-tooltip-has-label":!!this.label,"duet-tooltip-active":!0===this.active},onClick:t=>t.stopPropagation(),onKeyDown:this.handleKeyDown,onFocusout:this.handleFocusOut},o("div",{ref:t=>this.scrollableEl=t,class:"duet-tooltip-scrollable",tabindex:"0",id:this.tooltipId},o("slot",null)),o("div",{ref:t=>this.arrowEl=t,class:{arrow:!0,[this.placement]:!0},style:i},o("div",{class:{"arrow-container":!0,[this.placement]:!0}})),o("button",{type:"button",class:"duet-tooltip-close",onClick:this.handleCloseClick},o("duet-icon",{name:"navigation-close-small",margin:"none",color:"currentColor",size:"xxx-small"}),o("duet-visually-hidden",null,this.accessibleCloseLabel))))}get element(){return i(this)}static get watchers(){return{language:["watchLanguageStateHandler"],active:["handleActiveChange"]}}};g.style='*,*::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;position:relative;z-index:200;display:inline-flex;width:auto;margin-top:-16px !important;margin-left:-3px !important;-webkit-tap-highlight-color:transparent}.duet-tooltip{position:absolute;z-index:950;display:none;width:282px;min-height:48px;max-height:340px;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:400;line-height:1.25;color:rgb(0, 41, 77);visibility:hidden;background:rgb(255, 255, 255);border:1px solid rgb(225, 227, 230);border-radius:4px;box-shadow:0 2px 10px 0 rgba(0, 41, 77, 0.07);opacity:0;transition:300ms ease;transform-origin:100% 100%}.duet-tooltip.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);border-color:rgb(228, 228, 230);box-shadow:0 2px 10px 0 rgba(117, 117, 117, 0.13)}.duet-tooltip .arrow{position:absolute;width:22px;height:22px;pointer-events:none}.duet-tooltip .arrow.bottom,.duet-tooltip .arrow.bottom-start,.duet-tooltip .arrow.bottom-end{top:-21px}.duet-tooltip .arrow-container{position:relative;width:100%;height:100%;pointer-events:none}.duet-tooltip .arrow-container::after{position:absolute;z-index:200;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container::before{position:absolute;z-index:100;width:0;height:0;pointer-events:none;content:""}.duet-tooltip .arrow-container.top::after,.duet-tooltip .arrow-container.top-start::after,.duet-tooltip .arrow-container.top-end::after{bottom:2px;left:2px;border:10px solid transparent;border-top:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.top::before,.duet-tooltip .arrow-container.top-start::before,.duet-tooltip .arrow-container.top-end::before{bottom:-1px;left:1px;border:11px solid transparent;border-top:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip .arrow-container.top::before,.duet-theme-turva .duet-tooltip .arrow-container.top-start::before,.duet-theme-turva .duet-tooltip .arrow-container.top-end::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip .arrow-container.bottom::after,.duet-tooltip .arrow-container.bottom-start::after,.duet-tooltip .arrow-container.bottom-end::after{bottom:1px;left:2px;border:10px solid transparent;border-bottom:10px solid rgb(255, 255, 255)}.duet-tooltip .arrow-container.bottom::before,.duet-tooltip .arrow-container.bottom-start::before,.duet-tooltip .arrow-container.bottom-end::before{bottom:1px;left:1px;border:11px solid transparent;border-bottom:11px solid rgb(225, 227, 230)}.duet-theme-turva .duet-tooltip .arrow-container.bottom::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-start::before,.duet-theme-turva .duet-tooltip .arrow-container.bottom-end::before{border-top:11px solid rgb(228, 228, 230)}.duet-tooltip.duet-tooltip-has-label{right:auto !important;left:0;width:282px !important;transform-origin:0 0 !important}.duet-tooltip.duet-tooltip-active{visibility:visible;opacity:1;transition-property:transform, opacity}.duet-tooltip-button{z-index:100;display:inline-block;align-items:center;justify-content:center;min-width:48px;height:48px;padding:0 !important;margin-right:-12px;line-height:normal !important;color:rgb(0, 119, 179);white-space:nowrap;cursor:pointer;background:transparent !important;border-radius:4px}.duet-tooltip-button.duet-theme-turva{color:rgb(198, 12, 48)}.duet-tooltip-button:hover{color:rgb(0, 77, 128)}.duet-tooltip-button:hover.duet-theme-turva{color:rgb(148, 9, 37)}.duet-tooltip-button:focus{background:transparent !important;outline:0}:host(.user-is-tabbing) .duet-tooltip-button:focus{background:transparent !important;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}:host(.user-is-tabbing) .duet-tooltip-button.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tooltip-button svg{width:20px;height:20px;pointer-events:none}.duet-tooltip-button-has-label{margin-right:0}.duet-tooltip-scrollable{padding:20px !important;width:100%;max-height:250px;padding-right:25px !important;overflow-y:auto;-webkit-hyphens:auto;hyphens:auto;border-radius:4px;-webkit-overflow-scrolling:touch}.duet-tooltip-scrollable:focus{outline:none}:host(.user-is-tabbing) .duet-tooltip-scrollable: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-theme-turva .duet-tooltip-scrollable:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-tooltip-scrollable::-webkit-scrollbar{width:4px}.duet-tooltip-scrollable::-webkit-scrollbar-track{border-radius:4px}.duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(225, 227, 230);border-radius:4px}.duet-theme-turva .duet-tooltip-scrollable::-webkit-scrollbar-thumb{background:rgb(228, 228, 230)}.duet-tooltip-label{position:relative;z-index:100;display:inline-block;max-width:calc(100% - 30px);margin-left:12px !important;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.25;text-align:left;white-space:normal;vertical-align:top}.duet-theme-turva .duet-tooltip-label{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"}.duet-tooltip-close{position:absolute;top:8px;right:8px;display:flex;align-items:center;justify-content:center;width:17px;height:17px;min-height:0 !important;padding:0 !important;margin:0 !important;line-height:normal;color:rgb(0, 41, 77);cursor:pointer;background:rgb(245, 248, 250);border-radius:50%;-webkit-appearance:none;appearance:none}.duet-tooltip-close:focus{outline:none;box-shadow:0 0 0 2px rgb(0, 119, 179)}.duet-theme-turva .duet-tooltip-close:focus{color:rgb(23, 28, 58);box-shadow:0 0 0 2px rgb(23, 28, 58)}';export{g as duet_tooltip}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as t,H as i,g as o}from"./p-fbd0d098.js";import{i as a}from"./p-4ebf1618.js";import{c as s}from"./p-c1325e35.js";const l=class{constructor(t){e(this,t),this.errorId=s("DuetError"),this.labelId=s("DuetLabel"),this.checkHasTooltip=()=>{this.hasTooltip=!!this.element.querySelector("[slot='tooltip']")},this.hasTooltip=!1,this.theme="",this.margin="auto",this.caption=void 0,this.label=void 0,this.error=void 0,this.accessibleLiveError="polite",this.labelHidden=!1}componentWillLoad(){a(this),this.checkHasTooltip()}render(){return t(i,{class:{"duet-m-0":"none"===this.margin}},t("fieldset",{"aria-labelledby":this.labelId,"aria-describedby":this.error?this.errorId:null,class:{"duet-fieldset":!0,"duet-theme-turva":"turva"===this.theme}},t("legend",{id:this.labelId},t("span",null,this.label),this.caption&&t("span",null,this.caption)),t("div",{class:{"duet-legend-wrapper":!0,"duet-legend-has-caption":!!this.caption,"duet-legend-has-tooltip":this.hasTooltip,"duet-legend-hidden":this.labelHidden}},t("div",{class:"duet-fieldset-label"},t("span",{"aria-hidden":"true"},this.label),t("slot",{onSlotchange:this.checkHasTooltip,name:"tooltip"})),this.caption&&t("div",{class:"duet-fieldset-caption","aria-hidden":"true"},t("duet-caption",{margin:"none"},this.caption))),t("slot",null),t("span",{class:"duet-fieldset-help",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&t("span",null,this.error))))}get element(){return o(this)}};l.style='*,*::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-bottom:12px !important;display:block;width:100%}:host(.duet-m-0){margin:0 !important}fieldset{position:relative;width:100%;min-width:0;border:0}fieldset legend{position:absolute !important;top:0;width:1px !important;height:1px !important;padding:0 !important;overflow:hidden !important;clip:rect(1px, 1px, 1px, 1px) !important;border:0 !important}.duet-legend-wrapper{position:relative;display:block;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";font-size:1rem;font-weight:600;line-height:1.5;color:rgb(0, 41, 77);text-align:left;background:transparent}.duet-theme-turva .duet-legend-wrapper{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-fieldset-label{margin-bottom:12px !important;margin-top:8px}.duet-legend-has-caption .duet-fieldset-label{margin-bottom:6px !important}.duet-legend-has-tooltip .duet-fieldset-label{padding-right:36px}@media (min-width: 48em){.duet-legend-has-tooltip .duet-fieldset-label{margin-bottom:3px !important;padding-right:0}}@media (min-width: 48em){.duet-legend-has-tooltip.duet-legend-has-caption .duet-fieldset-label{margin-bottom:-3px !important}}.duet-fieldset-caption{margin-bottom:12px !important}.duet-fieldset-help{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:0.875rem;font-weight:400;line-height:1.25;color:rgb(222, 35, 98);border-radius:4px}.duet-fieldset-help span{display:block;margin-top:12px}.duet-theme-turva .duet-fieldset-help{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(224, 42, 13)}::slotted(duet-tooltip){position:absolute;top:4px;right:0}@media (min-width: 48em){::slotted(duet-tooltip){position:relative;right:auto}}.duet-legend-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';export{l as duet_fieldset}
|