@duetds/components 6.10.3 → 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 +526 -175
- 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 +89 -9
- package/lib/cjs/duet-choice_2.cjs.entry.js +9 -8
- 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 +31 -136
- 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 +6 -3
- 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 +35 -2
- package/lib/cjs/duet-popup-menu.cjs.entry.js +98 -8
- 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 +2 -2
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +1 -1
- package/lib/cjs/duet-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 +93 -0
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +6 -86
- package/lib/cjs/errorcodes.utils-5deca818.js +39 -0
- package/lib/cjs/{focus-utils-fa8771cc.js → focus-utils-f19181d6.js} +1 -1
- package/lib/cjs/{index-ad229c23.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 +4 -2
- package/lib/collection/common/index.js +1 -0
- package/lib/collection/common/slot-query.js +9 -0
- package/lib/collection/components/duet-chip/duet-chip.css +38 -10
- package/lib/collection/components/duet-chip/duet-chip.js +117 -9
- package/lib/collection/components/duet-choice/duet-choice.css +22 -22
- package/lib/collection/components/duet-choice/duet-choice.js +7 -11
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -5
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +2 -1
- package/lib/collection/components/duet-grid/duet-grid.css +260 -116
- package/lib/collection/components/duet-grid/duet-grid.js +22 -1
- package/lib/collection/components/duet-hero/duet-hero.css +6 -1
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +8 -1
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +118 -9
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +140 -1
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.js +219 -26
- 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 +24 -13
- package/lib/collection/components/duet-upload/duet-upload.js +37 -13
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +299 -0
- 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 +95 -12
- package/lib/dist-custom-elements/duet-choice-group.js +16 -10
- package/lib/dist-custom-elements/duet-choice.js +13 -12
- 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 +41 -4
- package/lib/dist-custom-elements/duet-popup-menu.js +101 -10
- 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.d.ts +11 -0
- package/lib/dist-custom-elements/duet-upload-item.js +9 -0
- package/lib/dist-custom-elements/duet-upload.js +59 -159
- 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-f4a36471.js → p-00416416.js} +1 -1
- package/lib/dist-custom-elements/{p-c9cee36a.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-fa4af49a.js → p-0ada372b.js} +30 -19
- package/lib/dist-custom-elements/{p-bd3f4de1.js → p-0aeec550.js} +2 -2
- package/lib/dist-custom-elements/{p-ddbc4897.js → p-0c506783.js} +6 -6
- package/lib/dist-custom-elements/{p-d993c8ca.js → p-0c934ab8.js} +5 -5
- package/lib/dist-custom-elements/{p-88a1aa29.js → p-1212aab5.js} +1 -1
- package/lib/dist-custom-elements/{p-0639a930.js → p-127ad24e.js} +1 -1
- package/lib/dist-custom-elements/{p-4524a59b.js → p-1f5d4fdb.js} +2 -2
- package/lib/dist-custom-elements/p-238d0ad2.js +187 -0
- package/lib/dist-custom-elements/{p-1460c5f4.js → p-264ce363.js} +1 -1
- package/lib/dist-custom-elements/{p-c5723f69.js → p-2c9478af.js} +2 -2
- package/lib/dist-custom-elements/{p-dade840c.js → p-31eb790f.js} +2 -2
- package/lib/dist-custom-elements/{p-f97098ff.js → p-42fe016c.js} +2 -2
- package/lib/dist-custom-elements/{p-c221f8d5.js → p-44376288.js} +5 -5
- package/lib/dist-custom-elements/{p-c3a8f22f.js → p-55c2bb2d.js} +1 -1
- package/lib/dist-custom-elements/{p-362cf634.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-9e321809.js → p-757bf6af.js} +1 -1
- package/lib/dist-custom-elements/{p-abf2f8eb.js → p-773bf99a.js} +1 -1
- package/lib/dist-custom-elements/p-7d158728.js +197 -0
- package/lib/dist-custom-elements/{p-9a39285c.js → p-85edc0fe.js} +2 -2
- package/lib/dist-custom-elements/{p-b0a1fc7a.js → p-980b82ed.js} +2 -2
- package/lib/dist-custom-elements/p-9d915d45.js +8 -0
- package/lib/dist-custom-elements/{p-ab8093ce.js → p-b761b810.js} +2 -2
- package/lib/dist-custom-elements/{p-87b42dc0.js → p-ba31dce0.js} +3 -3
- package/lib/dist-custom-elements/{p-06f56040.js → p-baccad0b.js} +2 -2
- package/lib/dist-custom-elements/{p-581d4969.js → p-c35ceaed.js} +1 -1
- package/lib/dist-custom-elements/{p-8549a5d3.js → p-c6c0520d.js} +3 -3
- package/lib/dist-custom-elements/{p-e6027c0e.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-0bab8976.js → p-cedbe8b5.js} +4 -4
- package/lib/dist-custom-elements/p-cfe72fa4.js +88 -0
- package/lib/dist-custom-elements/{p-e550208a.js → p-dfbbdce3.js} +4 -18
- package/lib/dist-custom-elements/{p-a76c2c68.js → p-e71e9330.js} +16 -10
- package/lib/dist-custom-elements/{p-b0e822ad.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-0de3b52d.system.entry.js → p-0077c0b9.system.entry.js} +2 -2
- package/lib/duet/{p-659b9600.system.entry.js → p-015f92ba.system.entry.js} +2 -2
- package/lib/duet/{p-679721de.system.entry.js → p-03b229f9.system.entry.js} +1 -1
- package/lib/duet/{p-596343b6.system.entry.js → p-04da6058.system.entry.js} +1 -1
- package/lib/duet/p-076452be.js +1 -1
- package/lib/duet/{p-e195ff77.entry.js → p-07b68373.entry.js} +1 -1
- package/lib/duet/{p-d1fdf904.entry.js → p-0a5bea68.entry.js} +1 -1
- package/lib/duet/p-0b19b2fc.system.entry.js +4 -0
- package/lib/duet/{p-bf5e03b7.system.entry.js → p-0d941b02.system.entry.js} +2 -2
- package/lib/duet/{p-53800205.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-be64cb47.system.entry.js → p-1447cb8a.system.entry.js} +1 -1
- package/lib/duet/{p-193d3aaa.system.entry.js → p-16493302.system.entry.js} +1 -1
- package/lib/duet/{p-f3baf86a.system.entry.js → p-17e717aa.system.entry.js} +1 -1
- package/lib/duet/p-1880e89c.system.js +5 -0
- package/lib/duet/{p-0fe6e2f3.entry.js → p-19c4479c.entry.js} +1 -1
- package/lib/duet/p-1afb6da1.system.entry.js +4 -0
- package/lib/duet/{p-7604e184.system.entry.js → p-1b7bb41b.system.entry.js} +2 -2
- package/lib/duet/{p-c838f35a.system.entry.js → p-1eb8f4fe.system.entry.js} +2 -2
- package/lib/duet/p-200f1abc.entry.js +4 -0
- package/lib/duet/{p-0fdddc6d.system.entry.js → p-21e22519.system.entry.js} +1 -1
- package/lib/duet/{p-b6f46697.entry.js → p-22b301c0.entry.js} +1 -1
- package/lib/duet/{p-8d9dc8b8.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-3ae87f9a.system.entry.js → p-2827e61e.system.entry.js} +2 -2
- package/lib/duet/{p-38b225ec.system.entry.js → p-2867f068.system.entry.js} +2 -2
- package/lib/duet/{p-fca2f60d.system.entry.js → p-28e7d8ee.system.entry.js} +2 -2
- package/lib/duet/p-2b16b250.system.entry.js +4 -0
- package/lib/duet/{p-855f2712.system.entry.js → p-2b79476c.system.entry.js} +1 -1
- package/lib/duet/{p-33e8ba00.entry.js → p-2bfb9cf4.entry.js} +1 -1
- package/lib/duet/{p-0b4324b1.system.entry.js → p-2ed796cf.system.entry.js} +2 -2
- package/lib/duet/{p-a80b6e7d.entry.js → p-30c6c9f0.entry.js} +1 -1
- package/lib/duet/{p-d20bc0fc.entry.js → p-30f0945c.entry.js} +1 -1
- package/lib/duet/p-312ae93d.system.entry.js +4 -0
- package/lib/duet/{p-7fe4bf9c.system.entry.js → p-32d6a948.system.entry.js} +1 -1
- package/lib/duet/{p-6fafabc4.system.entry.js → p-3499c5ce.system.entry.js} +2 -2
- package/lib/duet/{p-7fd5d974.system.entry.js → p-358f27d4.system.entry.js} +1 -1
- package/lib/duet/{p-831c76d5.system.entry.js → p-35fddc0c.system.entry.js} +2 -2
- package/lib/duet/{p-cd14aa98.system.entry.js → p-379b7a5b.system.entry.js} +1 -1
- package/lib/duet/{p-2a8ca3eb.entry.js → p-3a47193c.entry.js} +1 -1
- package/lib/duet/p-3a9e4386.system.entry.js +4 -0
- package/lib/duet/{p-eaf5b796.entry.js → p-3cff6ebc.entry.js} +1 -1
- package/lib/duet/{p-e6701508.entry.js → p-3dbbd772.entry.js} +1 -1
- package/lib/duet/{p-a6f4302f.system.entry.js → p-3f9bafee.system.entry.js} +1 -1
- package/lib/duet/{p-33ace290.system.entry.js → p-3fd216ee.system.entry.js} +2 -2
- package/lib/duet/{p-ff0c5b5b.system.entry.js → p-402a51b4.system.entry.js} +2 -2
- package/lib/duet/{p-ced270b7.system.entry.js → p-42e29141.system.entry.js} +2 -2
- package/lib/duet/p-435cb7c2.entry.js +4 -0
- package/lib/duet/p-440aff1c.system.entry.js +4 -0
- package/lib/duet/p-46547a79.entry.js +4 -0
- package/lib/duet/{p-242c1c1a.entry.js → p-469c8430.entry.js} +1 -1
- package/lib/duet/{p-ab15c9ba.entry.js → p-49c0b3f8.entry.js} +1 -1
- package/lib/duet/p-4b9c271c.entry.js +4 -0
- package/lib/duet/{p-d837c30c.entry.js → p-4ba495ae.entry.js} +1 -1
- package/lib/duet/{p-0b208f94.system.entry.js → p-4c05864f.system.entry.js} +1 -1
- package/lib/duet/{p-26cfed76.system.entry.js → p-4cb95b05.system.entry.js} +1 -1
- package/lib/duet/{p-10d57786.entry.js → p-4f49a9ca.entry.js} +1 -1
- package/lib/duet/p-57bc9d10.system.entry.js +4 -0
- package/lib/duet/p-5a9d75e1.js +1 -1
- package/lib/duet/{p-dcb58b72.system.entry.js → p-5ba959af.system.entry.js} +1 -1
- package/lib/duet/p-5c8e5f29.system.js +4 -0
- package/lib/duet/{p-f01b3bfa.entry.js → p-5c9febf5.entry.js} +1 -1
- package/lib/duet/{p-5f9fc349.system.entry.js → p-5cca8d3e.system.entry.js} +2 -2
- package/lib/duet/{p-10d47bb3.entry.js → p-6105d937.entry.js} +1 -1
- package/lib/duet/{p-bb450fde.entry.js → p-61611577.entry.js} +1 -1
- package/lib/duet/{p-f9191467.entry.js → p-6322975a.entry.js} +1 -1
- package/lib/duet/{p-e664403b.system.entry.js → p-6a1f6639.system.entry.js} +2 -2
- package/lib/duet/p-6b115b63.system.js +4 -0
- package/lib/duet/p-6b7d3c8c.entry.js +4 -0
- package/lib/duet/{p-0f05038e.system.entry.js → p-6c7a20e1.system.entry.js} +2 -2
- package/lib/duet/{p-82ebc3a6.system.entry.js → p-6e8dbf19.system.entry.js} +2 -2
- package/lib/duet/{p-2ab30c7f.entry.js → p-6ea838bf.entry.js} +1 -1
- package/lib/duet/{p-5c5dd33e.entry.js → p-6fba1a6d.entry.js} +1 -1
- package/lib/duet/{p-fce75de7.entry.js → p-71cc3d68.entry.js} +1 -1
- package/lib/duet/{p-18b63745.system.entry.js → p-74b822f7.system.entry.js} +2 -2
- package/lib/duet/{p-9cec464f.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-07795672.entry.js → p-762f26d7.entry.js} +1 -1
- package/lib/duet/p-7649b95e.js +4 -0
- package/lib/duet/{p-e5ff4740.system.entry.js → p-798f633d.system.entry.js} +1 -1
- package/lib/duet/p-79b6ac98.js +5 -0
- package/lib/duet/{p-369190ba.entry.js → p-7b29ea1b.entry.js} +1 -1
- package/lib/duet/{p-60210fa0.entry.js → p-7d0c4a6e.entry.js} +1 -1
- package/lib/duet/{p-9781cd5a.entry.js → p-80c9d1a3.entry.js} +1 -1
- package/lib/duet/p-82b5380b.system.js +1 -1
- package/lib/duet/{p-42199e80.entry.js → p-84492c72.entry.js} +1 -1
- package/lib/duet/{p-6059377c.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-bb3ab94b.entry.js → p-890ce3fa.entry.js} +1 -1
- package/lib/duet/{p-49cbf9cc.entry.js → p-8b1084e1.entry.js} +1 -1
- package/lib/duet/{p-65180079.entry.js → p-8cde4aa3.entry.js} +1 -1
- package/lib/duet/{p-67f35157.entry.js → p-8d1df4a0.entry.js} +1 -1
- package/lib/duet/{p-c01a1e38.entry.js → p-8fe534ac.entry.js} +1 -1
- package/lib/duet/{p-190e7c1f.system.entry.js → p-90b0a60f.system.entry.js} +2 -2
- package/lib/duet/{p-c8af967c.system.entry.js → p-95a2dc66.system.entry.js} +1 -1
- package/lib/duet/{p-9ad4b03e.entry.js → p-98894eb0.entry.js} +1 -1
- package/lib/duet/p-9a9bc779.entry.js +4 -0
- package/lib/duet/{p-d70c1993.entry.js → p-9b96a374.entry.js} +1 -1
- package/lib/duet/p-9d915d45.js +4 -0
- package/lib/duet/{p-476bec1d.entry.js → p-a18c65be.entry.js} +1 -1
- package/lib/duet/p-a4376044.entry.js +4 -0
- package/lib/duet/{p-6ff2601a.entry.js → p-a481cf6f.entry.js} +1 -1
- package/lib/duet/{p-77432368.entry.js → p-a4f63bc8.entry.js} +1 -1
- package/lib/duet/{p-ff814fdc.entry.js → p-a57b8625.entry.js} +1 -1
- package/lib/duet/{p-17569309.entry.js → p-a5ee6446.entry.js} +1 -1
- package/lib/duet/{p-c591ed98.system.entry.js → p-a7925c2c.system.entry.js} +2 -2
- package/lib/duet/p-a8657943.entry.js +4 -0
- package/lib/duet/{p-642a879a.system.entry.js → p-a9dee517.system.entry.js} +1 -1
- package/lib/duet/p-aaf1b496.system.js +4 -0
- package/lib/duet/{p-d309acda.entry.js → p-ab1488e4.entry.js} +1 -1
- package/lib/duet/{p-3fe319db.entry.js → p-ab308aa0.entry.js} +1 -1
- package/lib/duet/{p-7c81a1aa.system.entry.js → p-ab9b002c.system.entry.js} +1 -1
- package/lib/duet/{p-18084aa4.entry.js → p-ad3c2f28.entry.js} +1 -1
- package/lib/duet/p-ae4927ce.entry.js +4 -0
- package/lib/duet/{p-346b440a.entry.js → p-b07af8d7.entry.js} +1 -1
- package/lib/duet/{p-8a06964b.entry.js → p-b29fac9e.entry.js} +1 -1
- package/lib/duet/p-b54bf042.entry.js +4 -0
- package/lib/duet/{p-49f5f27e.entry.js → p-b5546c64.entry.js} +1 -1
- package/lib/duet/{p-d90b9d82.entry.js → p-b6d43529.entry.js} +1 -1
- package/lib/duet/p-b6d51921.system.js +1 -1
- package/lib/duet/{p-74bf128c.system.entry.js → p-bdd55461.system.entry.js} +2 -2
- package/lib/duet/p-be37633b.entry.js +4 -0
- package/lib/duet/{p-8fc58e21.entry.js → p-be8e6a2f.entry.js} +1 -1
- package/lib/duet/{p-9277a98e.entry.js → p-bf35789c.entry.js} +1 -1
- package/lib/duet/p-c1aafc6e.entry.js +4 -0
- package/lib/duet/{p-fcc9c563.entry.js → p-c1b71a60.entry.js} +1 -1
- package/lib/duet/{p-d95542b2.system.entry.js → p-c2860fc6.system.entry.js} +2 -2
- package/lib/duet/{p-0f49469b.system.entry.js → p-c3bf4ada.system.entry.js} +1 -1
- package/lib/duet/{p-000197bb.system.entry.js → p-c8967f73.system.entry.js} +2 -2
- package/lib/duet/p-c8dc599d.system.js +1 -1
- package/lib/duet/{p-6dea5bde.system.js → p-ca783bce.system.js} +1 -1
- package/lib/duet/{p-d1308874.entry.js → p-cad183f3.entry.js} +1 -1
- package/lib/duet/{p-a1e03781.entry.js → p-caf1d401.entry.js} +1 -1
- package/lib/duet/p-cb620ca3.system.entry.js +4 -0
- package/lib/duet/{p-e26c92ae.entry.js → p-cd1ed6f6.entry.js} +1 -1
- package/lib/duet/{p-8168ef41.system.entry.js → p-cdbd1085.system.entry.js} +2 -2
- package/lib/duet/{p-5590d075.system.entry.js → p-ce48373f.system.entry.js} +2 -2
- package/lib/duet/{p-f605a26a.system.entry.js → p-cefbaef0.system.entry.js} +1 -1
- package/lib/duet/p-cf504df5.js +4 -0
- package/lib/duet/{p-8215e341.system.entry.js → p-cfdd8822.system.entry.js} +1 -1
- package/lib/duet/{p-e1470177.system.entry.js → p-d58ad6fe.system.entry.js} +1 -1
- package/lib/duet/{p-fd760e06.system.entry.js → p-d7460d04.system.entry.js} +2 -2
- package/lib/duet/{p-c56f6296.entry.js → p-d86b661a.entry.js} +1 -1
- package/lib/duet/{p-d707c91d.entry.js → p-dc003f39.entry.js} +1 -1
- package/lib/duet/{p-aa1c11b3.system.entry.js → p-dd2c8397.system.entry.js} +1 -1
- package/lib/duet/{p-e3a868e7.system.entry.js → p-de933c56.system.entry.js} +1 -1
- package/lib/duet/{p-e13b266c.system.entry.js → p-deb6c0b1.system.entry.js} +1 -1
- package/lib/duet/p-df10a767.js +1 -1
- package/lib/duet/{p-bd21ed24.entry.js → p-e009dd0e.entry.js} +1 -1
- package/lib/duet/{p-c20f14ee.system.entry.js → p-e0711844.system.entry.js} +1 -1
- package/lib/duet/p-e414a557.js +4 -0
- package/lib/duet/{p-f1bce38a.system.entry.js → p-e53475fd.system.entry.js} +1 -1
- package/lib/duet/{p-a9fac1f4.entry.js → p-e66b2cf4.entry.js} +1 -1
- package/lib/duet/{p-639c44ed.system.entry.js → p-e689dc8c.system.entry.js} +2 -2
- package/lib/duet/{p-3aebf88e.entry.js → p-eb478d40.entry.js} +1 -1
- package/lib/duet/{p-54607ab5.system.entry.js → p-ebaf813c.system.entry.js} +1 -1
- package/lib/duet/{p-e33b158e.entry.js → p-ebd0deb2.entry.js} +1 -1
- package/lib/duet/p-ec120930.system.entry.js +4 -0
- package/lib/duet/{p-ea0b3f23.entry.js → p-ed2fa79e.entry.js} +1 -1
- package/lib/duet/{p-984be1b2.system.entry.js → p-f15e031a.system.entry.js} +2 -2
- package/lib/duet/{p-76c68d61.system.entry.js → p-f58f7049.system.entry.js} +1 -1
- package/lib/duet/{p-7b75c66a.system.entry.js → p-f5bc03c1.system.entry.js} +2 -2
- package/lib/duet/p-f5c10f8e.entry.js +4 -0
- package/lib/duet/{p-0fc4fd1f.entry.js → p-f6ba5087.entry.js} +1 -1
- package/lib/duet/{p-645d04bc.entry.js → p-f783a2bc.entry.js} +1 -1
- package/lib/duet/p-f80275c5.system.entry.js +4 -0
- package/lib/duet/p-f93a4db5.entry.js +4 -0
- package/lib/duet/{p-61dbdf5a.system.entry.js → p-fa579e10.system.entry.js} +1 -1
- package/lib/duet/{p-87ea8cd4.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 +89 -9
- package/lib/esm/duet-choice_2.entry.js +9 -8
- 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 +23 -128
- 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 +6 -3
- 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 +35 -2
- package/lib/esm/duet-popup-menu.entry.js +99 -9
- 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 +2 -2
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +1 -1
- package/lib/esm/duet-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 +89 -0
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +7 -87
- package/lib/esm/errorcodes.utils-c0c33bce.js +36 -0
- package/lib/esm/{focus-utils-20785530.js → focus-utils-a516bd48.js} +1 -1
- package/lib/esm/{index-dcb8c495.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 +4 -0
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/errorcodes.utils-c0c33bce.js +4 -0
- package/lib/esm-es5/floating-ui.dom.esm-37dc174a.js +1 -1
- package/lib/esm-es5/focus-utils-a516bd48.js +4 -0
- 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 +21 -2
- package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +1 -1
- package/lib/types/components/duet-grid/duet-grid.d.ts +4 -0
- package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +18 -1
- package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +30 -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/duet-upload/duet-upload.d.ts +2 -1
- package/lib/types/components/duet-upload-item/duet-upload-item.d.ts +29 -0
- package/lib/types/components.d.ts +208 -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/collection/components/duet-upload/upload-item.js +0 -44
- package/lib/dist-custom-elements/p-59964344.js +0 -183
- package/lib/dist-custom-elements/p-6ee53ac3.js +0 -390
- package/lib/duet/p-00c61228.system.entry.js +0 -4
- package/lib/duet/p-02a9b697.system.entry.js +0 -4
- package/lib/duet/p-0c7c6acc.system.entry.js +0 -4
- package/lib/duet/p-1090bfbd.entry.js +0 -4
- package/lib/duet/p-1983b903.system.entry.js +0 -4
- package/lib/duet/p-2271aa12.entry.js +0 -4
- package/lib/duet/p-26fb19cc.entry.js +0 -4
- package/lib/duet/p-29dd2b2b.entry.js +0 -4
- package/lib/duet/p-2f2554c2.entry.js +0 -4
- package/lib/duet/p-31a14896.entry.js +0 -4
- package/lib/duet/p-3d4d7d03.system.entry.js +0 -4
- package/lib/duet/p-4047730e.entry.js +0 -4
- package/lib/duet/p-41993ad4.js +0 -4
- package/lib/duet/p-4489355c.system.entry.js +0 -4
- package/lib/duet/p-45df6b17.entry.js +0 -4
- package/lib/duet/p-4f40525e.system.entry.js +0 -4
- package/lib/duet/p-5514488e.entry.js +0 -4
- package/lib/duet/p-57ec25ee.entry.js +0 -4
- package/lib/duet/p-59570fb7.system.entry.js +0 -4
- package/lib/duet/p-5dfc4e72.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-72a8644b.system.entry.js +0 -4
- package/lib/duet/p-7ce403a2.system.entry.js +0 -4
- package/lib/duet/p-9b4b6a88.system.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-a7774674.system.js +0 -5
- package/lib/duet/p-bcb2eb05.js +0 -5
- package/lib/duet/p-f93a2b8c.system.js +0 -4
- package/lib/duet/p-fb88df1a.entry.js +0 -4
- package/lib/duet/p-fd4785ab.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/focus-utils-20785530.js +0 -4
- package/lib/esm-es5/index-dcb8c495.js +0 -5
- package/lib/esm-es5/shadow-css-66bc7949.js +0 -15
- package/lib/types/components/duet-upload/upload-item.d.ts +0 -20
- /package/lib/dist-custom-elements/{p-152ee893.js → p-ec4d603d.js} +0 -0
|
@@ -1,183 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-e550208a.js';
|
|
5
|
-
import { a as media_query_large, m as media_query_medium, b as media_query_small } from './p-b519ac77.js';
|
|
6
|
-
import { w as watchForOptions, a as watchForElement } from './p-12721178.js';
|
|
7
|
-
|
|
8
|
-
const duetGridCss = ".sc-duet-grid-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex !important;flex-direction:column !important;align-items:flex-start !important;justify-content:flex-start !important;width:100%;max-width:100%;height:auto}.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-x-small.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}@media (max-width: 22.5em){.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}@media (min-width: 36em){.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-small.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}@media (min-width: 48em){.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-medium.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}@media (min-width: 62em){.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-large.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}@media (min-width: 64.0625em){.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-x-large.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}.duet-grid-wrap.sc-duet-grid-h{flex-wrap:wrap !important}.duet-no-stacking.sc-duet-grid-h{flex-direction:row !important}.duet-no-stacking.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}@media (max-width: 35.9375em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 36em){.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 48em){.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 62em){.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 64.0625em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-align-top.duet-no-stacking.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-no-stacking.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-no-stacking.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-no-stacking.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-no-stacking.sc-duet-grid-h{align-items:baseline !important}.duet-grid-align-top.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:baseline !important}@media (min-width: 36em){.duet-grid-align-top.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 36em){.duet-grid-align-bottom.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 36em){.duet-grid-align-center.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:center !important}}@media (min-width: 36em){.duet-grid-align-stretch.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 36em){.duet-grid-align-baseline.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 48em){.duet-grid-align-top.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 48em){.duet-grid-align-bottom.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 48em){.duet-grid-align-center.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:center !important}}@media (min-width: 48em){.duet-grid-align-stretch.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 48em){.duet-grid-align-baseline.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 62em){.duet-grid-align-top.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 62em){.duet-grid-align-bottom.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 62em){.duet-grid-align-center.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 62em){.duet-grid-align-stretch.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 62em){.duet-grid-align-baseline.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 64.0625em){.duet-grid-align-top.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 64.0625em){.duet-grid-align-bottom.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 64.0625em){.duet-grid-align-center.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 64.0625em){.duet-grid-align-stretch.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 64.0625em){.duet-grid-align-baseline.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:baseline !important}}.duet-grid-distribution-left.sc-duet-grid-h{justify-content:flex-start !important}.duet-grid-distribution-right.sc-duet-grid-h{justify-content:flex-end !important}.duet-grid-distribution-center.sc-duet-grid-h{justify-content:center !important}.duet-grid-distribution-between.sc-duet-grid-h{justify-content:space-between !important}.duet-grid-distribution-around.sc-duet-grid-h{justify-content:space-around !important}.duet-grid-distribution-evenly.sc-duet-grid-h{justify-content:space-evenly !important}@media (max-width: 35.9375em){.duet-grid-mobile-left.sc-duet-grid-h{align-items:flex-start !important;justify-content:flex-start !important;text-align:left !important}}@media (max-width: 35.9375em){.duet-grid-mobile-center.sc-duet-grid-h{align-items:center !important;justify-content:center !important;text-align:center !important}.duet-grid-mobile-center.sc-duet-grid-h *.sc-duet-grid{text-align:center !important}}@media (max-width: 35.9375em){.duet-grid-mobile-right.sc-duet-grid-h{align-items:flex-end !important;justify-content:flex-end !important;text-align:right !important}.duet-grid-mobile-right.sc-duet-grid-h *.sc-duet-grid{text-align:right !important}}";
|
|
9
|
-
|
|
10
|
-
function isGridItem(element) {
|
|
11
|
-
return element.tagName.toLowerCase() === "duet-grid-item";
|
|
12
|
-
}
|
|
13
|
-
const DuetGrid = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
14
|
-
constructor() {
|
|
15
|
-
super();
|
|
16
|
-
this.__registerHost();
|
|
17
|
-
this.mql = [
|
|
18
|
-
window.matchMedia(media_query_large.replace(/'/g, "")),
|
|
19
|
-
window.matchMedia(media_query_medium.replace(/'/g, "")),
|
|
20
|
-
window.matchMedia(media_query_small.replace(/'/g, "")),
|
|
21
|
-
];
|
|
22
|
-
this.distributeFormElement = false;
|
|
23
|
-
this.responsive = false;
|
|
24
|
-
this.breakpoint = "small";
|
|
25
|
-
this.direction = "horizontal";
|
|
26
|
-
this.rowReverse = false;
|
|
27
|
-
this.alignment = "top";
|
|
28
|
-
this.distribution = "default";
|
|
29
|
-
this.mobile = "";
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Private functions
|
|
33
|
-
*/
|
|
34
|
-
/**
|
|
35
|
-
* Returns the element height including margins
|
|
36
|
-
* @param element - element
|
|
37
|
-
* @returns {number}
|
|
38
|
-
*/
|
|
39
|
-
outerHeight(element) {
|
|
40
|
-
const height = element.offsetHeight, style = window.getComputedStyle(element);
|
|
41
|
-
return ["top", "bottom"]
|
|
42
|
-
.map(side => parseInt(style[`margin-${side}`]))
|
|
43
|
-
.reduce((total, side) => total + side, height);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Component lifecycle events.
|
|
47
|
-
*/
|
|
48
|
-
async connectedCallback() {
|
|
49
|
-
const el = this.element;
|
|
50
|
-
this.distributeFormElement = this.alignment === "form_distribute";
|
|
51
|
-
this.mutationO = watchForOptions(el, "duet-grid-item", () => {
|
|
52
|
-
this.updateGridItems();
|
|
53
|
-
});
|
|
54
|
-
// the next two functions are used to watch for changes in the grid items, and are process intensive - so only run when needed
|
|
55
|
-
if (this.distributeFormElement) {
|
|
56
|
-
this.mutation1 = watchForElement(el, "duet-input", () => {
|
|
57
|
-
this.updateGridItemsWithInputFields();
|
|
58
|
-
});
|
|
59
|
-
// listen for potential mediaquery changes and reset layout
|
|
60
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
61
|
-
// addEventListener is not available in Stencil hydrate
|
|
62
|
-
if (this.mql[i].addEventListener) {
|
|
63
|
-
this.mql[i].addEventListener("change", this.updateGridItemsWithInputFields.bind(this));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
this.updateGridItems();
|
|
68
|
-
}
|
|
69
|
-
disconnectedCallback() {
|
|
70
|
-
if (this.mutationO) {
|
|
71
|
-
this.mutationO.disconnect();
|
|
72
|
-
this.mutationO = undefined;
|
|
73
|
-
}
|
|
74
|
-
if (this.mutation1) {
|
|
75
|
-
this.mutation1.disconnect();
|
|
76
|
-
this.mutation1 = undefined;
|
|
77
|
-
}
|
|
78
|
-
// listen for potential mediaquery changes and reset layout
|
|
79
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
80
|
-
// addEventListener is not available in Stencil hydrate
|
|
81
|
-
if (this.mql[i].removeEventListener) {
|
|
82
|
-
this.mql[i].removeEventListener("change", this.updateGridItemsWithInputFields.bind(this));
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Local methods
|
|
88
|
-
*/
|
|
89
|
-
async updateGridItems() {
|
|
90
|
-
const items = Array.from(this.element.children).filter(isGridItem);
|
|
91
|
-
items.forEach(item => {
|
|
92
|
-
item.responsive = this.responsive;
|
|
93
|
-
item.breakpoint = this.breakpoint;
|
|
94
|
-
item.direction = this.direction;
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
async updateGridItemsWithInputFields() {
|
|
98
|
-
const items = Array.from(this.element.children).filter(isGridItem);
|
|
99
|
-
// if layout changes to columns instead of row, remove all padding
|
|
100
|
-
const hasColumnLayout = window ? window.getComputedStyle(this.element).flexDirection === "column" : false;
|
|
101
|
-
let maxHeight = 0;
|
|
102
|
-
const sizes = [];
|
|
103
|
-
items.forEach(item => {
|
|
104
|
-
const inputErrorDom = item.querySelector("span.duet-input-error");
|
|
105
|
-
const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
|
|
106
|
-
sizes.push(height);
|
|
107
|
-
});
|
|
108
|
-
maxHeight = Math.max(...sizes);
|
|
109
|
-
items.forEach(item => {
|
|
110
|
-
const inputErrorDom = item.querySelector("span.duet-input-error");
|
|
111
|
-
const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
|
|
112
|
-
if (height < maxHeight && !hasColumnLayout) {
|
|
113
|
-
item.setAttribute("style", `padding-bottom: ${maxHeight - height}px;`);
|
|
114
|
-
}
|
|
115
|
-
else if (height === maxHeight || hasColumnLayout) {
|
|
116
|
-
item.setAttribute("style", `padding-bottom: 0px;`);
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* render() function
|
|
122
|
-
* Always the last one in the class.
|
|
123
|
-
*/
|
|
124
|
-
render() {
|
|
125
|
-
return (h(Host, { class: {
|
|
126
|
-
"duet-grid": true,
|
|
127
|
-
"duet-no-stacking": !this.responsive,
|
|
128
|
-
"duet-grid-align-top": this.alignment === "top",
|
|
129
|
-
"duet-grid-align-bottom": this.alignment === "bottom" || this.alignment === "form_distribute",
|
|
130
|
-
"duet-grid-align-center": this.alignment === "center",
|
|
131
|
-
"duet-grid-align-stretch": this.alignment === "stretch",
|
|
132
|
-
"duet-grid-align-baseline": this.alignment === "baseline",
|
|
133
|
-
"duet-grid-distribution-left": this.distribution === "left",
|
|
134
|
-
"duet-grid-distribution-right": this.distribution === "right",
|
|
135
|
-
"duet-grid-distribution-center": this.distribution === "center",
|
|
136
|
-
"duet-grid-distribution-between": this.distribution === "space-between",
|
|
137
|
-
"duet-grid-distribution-around": this.distribution === "space-around",
|
|
138
|
-
"duet-grid-distribution-evenly": this.distribution === "space-evenly",
|
|
139
|
-
"duet-grid-mobile-left": this.mobile === "left",
|
|
140
|
-
"duet-grid-mobile-center": this.mobile === "center",
|
|
141
|
-
"duet-grid-mobile-right": this.mobile === "right",
|
|
142
|
-
"duet-grid-direction-horizontal": this.direction === "horizontal",
|
|
143
|
-
"duet-grid-direction-vertical": this.direction === "vertical",
|
|
144
|
-
"duet-grid-breakpoint-x-small": this.breakpoint === "x-small",
|
|
145
|
-
"duet-grid-breakpoint-small": this.breakpoint === "small",
|
|
146
|
-
"duet-grid-breakpoint-medium": this.breakpoint === "medium",
|
|
147
|
-
"duet-grid-breakpoint-large": this.breakpoint === "large",
|
|
148
|
-
"duet-grid-breakpoint-x-large": this.breakpoint === "x-large",
|
|
149
|
-
"duet-grid-row-reverse": this.rowReverse,
|
|
150
|
-
} }));
|
|
151
|
-
}
|
|
152
|
-
get element() { return this; }
|
|
153
|
-
static get watchers() { return {
|
|
154
|
-
"responsive": ["updateGridItems"],
|
|
155
|
-
"breakpoint": ["updateGridItems"],
|
|
156
|
-
"direction": ["updateGridItems"]
|
|
157
|
-
}; }
|
|
158
|
-
static get style() { return duetGridCss; }
|
|
159
|
-
}, [2, "duet-grid", {
|
|
160
|
-
"responsive": [4],
|
|
161
|
-
"breakpoint": [1],
|
|
162
|
-
"direction": [1],
|
|
163
|
-
"rowReverse": [4, "row-reverse"],
|
|
164
|
-
"alignment": [1],
|
|
165
|
-
"distribution": [1],
|
|
166
|
-
"mobile": [1],
|
|
167
|
-
"distributeFormElement": [32]
|
|
168
|
-
}]);
|
|
169
|
-
function defineCustomElement() {
|
|
170
|
-
if (typeof customElements === "undefined") {
|
|
171
|
-
return;
|
|
172
|
-
}
|
|
173
|
-
const components = ["duet-grid"];
|
|
174
|
-
components.forEach(tagName => { switch (tagName) {
|
|
175
|
-
case "duet-grid":
|
|
176
|
-
if (!customElements.get(tagName)) {
|
|
177
|
-
customElements.define(tagName, DuetGrid);
|
|
178
|
-
}
|
|
179
|
-
break;
|
|
180
|
-
} });
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export { DuetGrid as D, defineCustomElement as d };
|
|
@@ -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,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-a7774674.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}}}));
|