@duetds/components 6.10.4 → 6.11.1
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 +301 -60
- 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 +2 -2
- 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 +2 -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-832cb087.js} +1 -1
- package/lib/cjs/{index-4eb7ce33.js → index-f9a10385.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.css +1 -0
- 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-submenu-bar/duet-submenu-bar.js +1 -0
- 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 +21 -15
- 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 +3 -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-80cd62f8.js → p-05ab48bf.js} +5 -5
- package/lib/dist-custom-elements/{p-efaad71c.js → p-061830ef.js} +1 -1
- package/lib/dist-custom-elements/{p-84a78894.js → p-09ac696c.js} +1 -1
- package/lib/dist-custom-elements/{p-2b8c0c2f.js → p-0c3282a0.js} +16 -10
- package/lib/dist-custom-elements/{p-226f50bb.js → p-0d04d137.js} +2 -2
- package/lib/dist-custom-elements/{p-b98f1d2a.js → p-184261b3.js} +2 -2
- package/lib/dist-custom-elements/{p-7681059e.js → p-1888263b.js} +1 -1
- package/lib/dist-custom-elements/{p-25fa826f.js → p-215e9694.js} +4 -18
- package/lib/dist-custom-elements/{p-08f20e44.js → p-217bb82f.js} +2 -2
- package/lib/dist-custom-elements/{p-a60259d1.js → p-3366d1ff.js} +1 -1
- package/lib/dist-custom-elements/{p-4c575cf4.js → p-37f86174.js} +30 -19
- package/lib/dist-custom-elements/{p-37255027.js → p-48b731bc.js} +20 -14
- package/lib/dist-custom-elements/{p-0f04ecb5.js → p-4fb34519.js} +1 -1
- package/lib/dist-custom-elements/{p-006d0fb1.js → p-5db7fd87.js} +4 -3
- package/lib/dist-custom-elements/{p-de68431d.js → p-661e7864.js} +1 -1
- package/lib/dist-custom-elements/{p-e467de13.js → p-67064f22.js} +1 -1
- package/lib/dist-custom-elements/{p-8a1632b1.js → p-74b72454.js} +3 -3
- package/lib/dist-custom-elements/{p-171c70e8.js → p-7be4444a.js} +2 -2
- package/lib/dist-custom-elements/{p-5c48ca92.js → p-8319ca94.js} +1 -1
- package/lib/dist-custom-elements/{p-25d3d458.js → p-841186f0.js} +2 -2
- package/lib/dist-custom-elements/{p-03297bf3.js → p-841f9d02.js} +2 -2
- package/lib/dist-custom-elements/{p-26a65533.js → p-8badaab4.js} +2 -2
- package/lib/dist-custom-elements/{p-d5e61aac.js → p-95109364.js} +3 -3
- package/lib/dist-custom-elements/{p-3e609785.js → p-95d44d0f.js} +1 -1
- package/lib/dist-custom-elements/{p-1f14a267.js → p-98bca605.js} +1 -1
- package/lib/dist-custom-elements/p-9d915d45.js +8 -0
- package/lib/dist-custom-elements/{p-265d42fd.js → p-a8b46969.js} +1 -1
- package/lib/dist-custom-elements/{p-5114f1bd.js → p-b1c2af98.js} +2 -2
- package/lib/dist-custom-elements/{p-e0afb5aa.js → p-b5568c37.js} +10 -10
- package/lib/dist-custom-elements/{p-7c2e755b.js → p-b7cc653b.js} +1 -1
- package/lib/dist-custom-elements/{p-661fee29.js → p-cb811b5c.js} +5 -5
- package/lib/dist-custom-elements/{p-e8475b3c.js → p-cd9b5f96.js} +1 -1
- package/lib/dist-custom-elements/p-d6238b66.js +88 -0
- package/lib/dist-custom-elements/{p-1b34adf1.js → p-e41a8579.js} +2 -2
- package/lib/dist-custom-elements/{p-ffc196f5.js → p-f3b91052.js} +5 -5
- package/lib/dist-custom-elements/{p-dbb9df4e.js → p-fa37a369.js} +4 -4
- package/lib/dist-custom-elements/{p-c85e7fbd.js → p-fc2fdeba.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-6ee35830.entry.js → p-00215a97.entry.js} +1 -1
- package/lib/duet/{p-773268e7.system.entry.js → p-00fc5376.system.entry.js} +2 -2
- package/lib/duet/{p-dee73c08.system.entry.js → p-05bfc8ff.system.entry.js} +2 -2
- package/lib/duet/p-076452be.js +1 -1
- package/lib/duet/{p-38e24930.entry.js → p-08945ef7.entry.js} +1 -1
- package/lib/duet/{p-a5cf2316.entry.js → p-09f48cb9.entry.js} +1 -1
- package/lib/duet/{p-184ee980.system.entry.js → p-0c72528c.system.entry.js} +1 -1
- package/lib/duet/p-106940dd.js +5 -0
- package/lib/duet/{p-8c6e3c4f.system.js → p-10695d55.system.js} +1 -1
- package/lib/duet/{p-700cc5d1.entry.js → p-11090514.entry.js} +1 -1
- package/lib/duet/{p-3b33c459.entry.js → p-130d0e42.entry.js} +1 -1
- package/lib/duet/{p-c0c92199.system.entry.js → p-15e3eca0.system.entry.js} +1 -1
- package/lib/duet/p-1700211f.system.js +5 -0
- package/lib/duet/{p-d029f8dc.system.entry.js → p-1760b8d4.system.entry.js} +2 -2
- package/lib/duet/{p-a66ca0af.entry.js → p-17f95bce.entry.js} +1 -1
- package/lib/duet/{p-4667e5cc.entry.js → p-1830770c.entry.js} +1 -1
- package/lib/duet/{p-72d18d55.entry.js → p-1e161672.entry.js} +1 -1
- package/lib/duet/p-1ea89299.entry.js +4 -0
- package/lib/duet/{p-8862fec1.system.entry.js → p-1eada326.system.entry.js} +2 -2
- package/lib/duet/p-1ebe62cb.entry.js +4 -0
- package/lib/duet/{p-549a1ffd.system.entry.js → p-212651b5.system.entry.js} +2 -2
- package/lib/duet/{p-6e93b2f3.entry.js → p-222548cd.entry.js} +1 -1
- package/lib/duet/{p-7565b093.entry.js → p-22a436ef.entry.js} +1 -1
- package/lib/duet/{p-32d31570.entry.js → p-25aa9da5.entry.js} +1 -1
- package/lib/duet/{p-322f69c7.entry.js → p-26f8a5e3.entry.js} +1 -1
- package/lib/duet/{p-71a46879.system.js → p-277d9e45.system.js} +1 -1
- package/lib/duet/{p-20c19d2e.system.entry.js → p-27b9e751.system.entry.js} +1 -1
- package/lib/duet/{p-99a90b30.entry.js → p-293d6a2b.entry.js} +1 -1
- package/lib/duet/p-2a14f9c7.system.entry.js +4 -0
- package/lib/duet/{p-a2ddca83.system.entry.js → p-2a64f169.system.entry.js} +2 -2
- package/lib/duet/{p-40463065.system.entry.js → p-2ba628cc.system.entry.js} +2 -2
- package/lib/duet/p-2d68f259.entry.js +4 -0
- package/lib/duet/{p-f78e3197.system.entry.js → p-305f20a0.system.entry.js} +1 -1
- package/lib/duet/{p-15505723.system.entry.js → p-3117f16c.system.entry.js} +1 -1
- package/lib/duet/{p-c2ff6bb2.entry.js → p-312656b2.entry.js} +1 -1
- package/lib/duet/{p-4af3a90a.entry.js → p-31562410.entry.js} +1 -1
- package/lib/duet/p-340e36a8.system.js +4 -0
- package/lib/duet/{p-368e63a8.entry.js → p-34293dad.entry.js} +1 -1
- package/lib/duet/{p-5ed8969b.system.entry.js → p-34e93067.system.entry.js} +2 -2
- package/lib/duet/p-36fafe5f.entry.js +4 -0
- package/lib/duet/p-3a417fd2.entry.js +4 -0
- package/lib/duet/{p-2bd98cbe.system.entry.js → p-3cfd5322.system.entry.js} +1 -1
- package/lib/duet/{p-d42279cd.entry.js → p-3db4b9e1.entry.js} +1 -1
- package/lib/duet/{p-28b0deff.system.entry.js → p-3dc8596c.system.entry.js} +2 -2
- package/lib/duet/{p-0b696003.system.entry.js → p-419b1bec.system.entry.js} +1 -1
- package/lib/duet/{p-ca4d7a6d.system.entry.js → p-41c64229.system.entry.js} +2 -2
- package/lib/duet/p-42242eb4.entry.js +4 -0
- package/lib/duet/{p-b650e679.system.entry.js → p-45043c9d.system.entry.js} +2 -2
- package/lib/duet/{p-00355028.system.entry.js → p-47ec0bce.system.entry.js} +1 -1
- package/lib/duet/{p-c391b2a4.entry.js → p-4bae7f7e.entry.js} +1 -1
- package/lib/duet/{p-e8d8c7a2.system.entry.js → p-4ca5d008.system.entry.js} +2 -2
- package/lib/duet/{p-b594282a.entry.js → p-4e6ad0aa.entry.js} +1 -1
- package/lib/duet/{p-099119d3.system.entry.js → p-50180a44.system.entry.js} +1 -1
- package/lib/duet/{p-380ead38.system.entry.js → p-52fdd651.system.entry.js} +1 -1
- package/lib/duet/{p-d988f03a.entry.js → p-54589f3a.entry.js} +1 -1
- package/lib/duet/{p-604adb3e.entry.js → p-57708d82.entry.js} +1 -1
- package/lib/duet/{p-e6315f68.system.entry.js → p-5847fbcf.system.entry.js} +1 -1
- package/lib/duet/{p-8445fc10.entry.js → p-58491286.entry.js} +1 -1
- package/lib/duet/{p-13fa33f3.system.entry.js → p-59dde679.system.entry.js} +1 -1
- package/lib/duet/p-5a9d75e1.js +1 -1
- package/lib/duet/{p-110c2c76.system.entry.js → p-5b4e316c.system.entry.js} +1 -1
- package/lib/duet/p-5c37dda9.system.entry.js +4 -0
- package/lib/duet/p-5c8e5f29.system.js +4 -0
- package/lib/duet/{p-df213a66.system.entry.js → p-5cc44de5.system.entry.js} +2 -2
- package/lib/duet/p-5e2c8e38.entry.js +4 -0
- package/lib/duet/{p-60c99082.system.entry.js → p-5e965627.system.entry.js} +1 -1
- package/lib/duet/{p-e288bb38.system.entry.js → p-615a393c.system.entry.js} +2 -2
- package/lib/duet/{p-521b2f02.system.entry.js → p-617c03dc.system.entry.js} +1 -1
- package/lib/duet/{p-4f90dd0a.entry.js → p-61fb382d.entry.js} +1 -1
- package/lib/duet/{p-9ad6fc83.entry.js → p-6494c48e.entry.js} +1 -1
- package/lib/duet/{p-684b2d77.system.entry.js → p-653fd5d0.system.entry.js} +2 -2
- package/lib/duet/{p-3c43d0ee.entry.js → p-655275ec.entry.js} +1 -1
- package/lib/duet/{p-86e7a88a.entry.js → p-65bef373.entry.js} +1 -1
- package/lib/duet/{p-721bf508.entry.js → p-66cc34da.entry.js} +1 -1
- package/lib/duet/{p-7f588669.entry.js → p-66ce877b.entry.js} +1 -1
- package/lib/duet/{p-31155f08.entry.js → p-6910113f.entry.js} +1 -1
- package/lib/duet/{p-7e061e75.system.entry.js → p-69abe752.system.entry.js} +2 -2
- package/lib/duet/{p-8cf359d9.entry.js → p-6c24d8b4.entry.js} +1 -1
- package/lib/duet/p-6d9e809f.system.entry.js +4 -0
- package/lib/duet/{p-c9198461.entry.js → p-6fcc9de8.entry.js} +1 -1
- package/lib/duet/{p-26ed5006.system.entry.js → p-7084c7fa.system.entry.js} +2 -2
- package/lib/duet/{p-6baede6c.system.entry.js → p-732d4693.system.entry.js} +1 -1
- package/lib/duet/{p-a76ceaf6.js → p-75f7a572.js} +1 -1
- package/lib/duet/p-7649b95e.js +4 -0
- package/lib/duet/{p-da4f4b6c.entry.js → p-77cbe175.entry.js} +1 -1
- package/lib/duet/{p-be295e13.system.entry.js → p-78eb3378.system.entry.js} +2 -2
- package/lib/duet/{p-05dd0fb6.entry.js → p-7e64358b.entry.js} +1 -1
- package/lib/duet/{p-ffa34163.entry.js → p-7f9909ed.entry.js} +1 -1
- package/lib/duet/p-8040b3f3.system.entry.js +4 -0
- package/lib/duet/{p-ec796dfe.system.entry.js → p-81ef610a.system.entry.js} +2 -2
- package/lib/duet/p-82b5380b.system.js +1 -1
- package/lib/duet/{p-7a3071a5.system.entry.js → p-8548fc3a.system.entry.js} +1 -1
- package/lib/duet/{p-1483de5f.system.entry.js → p-86991900.system.entry.js} +2 -2
- package/lib/duet/p-86dc2ebb.entry.js +4 -0
- package/lib/duet/{p-e79c63b6.entry.js → p-88501e6a.entry.js} +1 -1
- package/lib/duet/{p-6bb42603.entry.js → p-889fc0c6.entry.js} +1 -1
- package/lib/duet/{p-e983ff0c.entry.js → p-896fff8f.entry.js} +1 -1
- package/lib/duet/p-8d288b4f.entry.js +4 -0
- package/lib/duet/{p-1616c51d.system.entry.js → p-90ad5759.system.entry.js} +2 -2
- package/lib/duet/{p-000a0a75.system.entry.js → p-9180e7f5.system.entry.js} +1 -1
- package/lib/duet/{p-699f593c.system.entry.js → p-930c8f3c.system.entry.js} +2 -2
- package/lib/duet/{p-ca2725cd.system.entry.js → p-933417e6.system.entry.js} +1 -1
- package/lib/duet/{p-7284cb09.system.entry.js → p-95dbb7e9.system.entry.js} +2 -2
- package/lib/duet/{p-c185ea87.system.entry.js → p-97162b31.system.entry.js} +2 -2
- package/lib/duet/{p-fd1dcee1.entry.js → p-9b5f71df.entry.js} +1 -1
- package/lib/duet/{p-6508eed1.system.entry.js → p-9bbda8a9.system.entry.js} +2 -2
- package/lib/duet/{p-b4b5f803.entry.js → p-9c464273.entry.js} +1 -1
- package/lib/duet/p-9d3deabb.system.entry.js +4 -0
- package/lib/duet/p-9d915d45.js +4 -0
- package/lib/duet/{p-32ee127a.system.entry.js → p-9fb4f41a.system.entry.js} +1 -1
- package/lib/duet/{p-c0874730.entry.js → p-a05fa71c.entry.js} +1 -1
- package/lib/duet/{p-c6b09397.js → p-a1057e50.js} +1 -1
- package/lib/duet/{p-8584bcfe.system.entry.js → p-a306b058.system.entry.js} +1 -1
- package/lib/duet/{p-1ff16557.system.entry.js → p-a6d18e87.system.entry.js} +1 -1
- package/lib/duet/{p-5e2af124.entry.js → p-a727e03a.entry.js} +1 -1
- package/lib/duet/{p-e368e194.entry.js → p-a7d43918.entry.js} +1 -1
- package/lib/duet/{p-b7fe2c37.system.entry.js → p-a7f9f585.system.entry.js} +1 -1
- package/lib/duet/{p-a6696d45.entry.js → p-a8af0ea4.entry.js} +1 -1
- package/lib/duet/{p-276da9b8.entry.js → p-ab07e9c2.entry.js} +1 -1
- package/lib/duet/{p-ccb08e8c.entry.js → p-b66706de.entry.js} +1 -1
- package/lib/duet/p-b6d51921.system.js +1 -1
- package/lib/duet/{p-a0f76a04.system.entry.js → p-b959ac63.system.entry.js} +1 -1
- package/lib/duet/{p-b134229a.system.entry.js → p-bb64f25d.system.entry.js} +2 -2
- package/lib/duet/p-bd751ea4.system.entry.js +4 -0
- package/lib/duet/{p-28cf3d78.entry.js → p-be7a7b77.entry.js} +1 -1
- package/lib/duet/{p-a7ed46e3.entry.js → p-bea6e5e0.entry.js} +1 -1
- package/lib/duet/{p-9ec0d197.entry.js → p-c1ec3ad4.entry.js} +1 -1
- package/lib/duet/{p-06969947.system.entry.js → p-c2a407e8.system.entry.js} +1 -1
- package/lib/duet/{p-d841291b.entry.js → p-c37c86ef.entry.js} +1 -1
- package/lib/duet/{p-cb4799d1.system.entry.js → p-c405af98.system.entry.js} +2 -2
- package/lib/duet/{p-35b74797.entry.js → p-c65b31df.entry.js} +1 -1
- package/lib/duet/{p-d0175269.entry.js → p-c7f097e8.entry.js} +1 -1
- package/lib/duet/p-c8dc599d.system.js +1 -1
- package/lib/duet/{p-77616680.entry.js → p-c905c010.entry.js} +1 -1
- package/lib/duet/{p-a61825d9.entry.js → p-cc70ab4a.entry.js} +1 -1
- package/lib/duet/{p-f58832f6.entry.js → p-ced4679a.entry.js} +1 -1
- package/lib/duet/p-d00f7632.system.entry.js +4 -0
- package/lib/duet/{p-d6dfa7c8.system.entry.js → p-d1ee4298.system.entry.js} +1 -1
- package/lib/duet/{p-a86ae0c3.entry.js → p-d2cbaed2.entry.js} +1 -1
- package/lib/duet/{p-d4bc7a19.entry.js → p-d3910688.entry.js} +1 -1
- package/lib/duet/{p-2a37e574.system.entry.js → p-d649d264.system.entry.js} +2 -2
- package/lib/duet/{p-4f321fb8.entry.js → p-d6e7f2d1.entry.js} +1 -1
- package/lib/duet/{p-6892546a.system.entry.js → p-d759b718.system.entry.js} +2 -2
- package/lib/duet/p-d7fa5f72.system.entry.js +4 -0
- package/lib/duet/{p-4956fa1c.system.entry.js → p-d9886ef0.system.entry.js} +2 -2
- package/lib/duet/{p-ae7602cb.entry.js → p-daa1595d.entry.js} +1 -1
- package/lib/duet/{p-c6122404.entry.js → p-daf609a8.entry.js} +1 -1
- package/lib/duet/{p-b77224fc.entry.js → p-df03f394.entry.js} +1 -1
- package/lib/duet/p-df10a767.js +1 -1
- package/lib/duet/p-e0cfe3d5.entry.js +4 -0
- package/lib/duet/{p-8275330c.system.entry.js → p-e2c354ef.system.entry.js} +2 -2
- package/lib/duet/p-e3d40270.entry.js +4 -0
- package/lib/duet/{p-a1978b4b.entry.js → p-e591257f.entry.js} +1 -1
- package/lib/duet/{p-c79f4b4b.entry.js → p-e73a1930.entry.js} +1 -1
- package/lib/duet/{p-8db6114f.system.entry.js → p-ebbb398a.system.entry.js} +2 -2
- package/lib/duet/{p-4fc64fe9.system.entry.js → p-f0173106.system.entry.js} +1 -1
- package/lib/duet/{p-dd1393e3.system.js → p-f22404fe.system.js} +1 -1
- package/lib/duet/{p-90f06b7a.system.entry.js → p-f23c11c2.system.entry.js} +2 -2
- package/lib/duet/{p-2a9b8270.system.entry.js → p-f2b11d36.system.entry.js} +2 -2
- package/lib/duet/p-f31b839f.system.entry.js +4 -0
- package/lib/duet/{p-c1c6a4f5.entry.js → p-f3a4805a.entry.js} +1 -1
- package/lib/duet/p-f3c3932d.system.entry.js +4 -0
- package/lib/duet/{p-bc541e97.system.entry.js → p-f75b8801.system.entry.js} +2 -2
- package/lib/duet/{p-11d01178.system.entry.js → p-f9625065.system.entry.js} +1 -1
- package/lib/duet/{p-f74e934b.system.entry.js → p-fda4e4a4.system.entry.js} +1 -1
- package/lib/duet/{p-45046cb8.system.entry.js → p-fde10739.system.entry.js} +1 -1
- package/lib/duet/{p-871eca43.entry.js → p-fe3dbb59.entry.js} +1 -1
- package/lib/duet/{p-82330774.system.entry.js → p-fe5705fe.system.entry.js} +2 -2
- package/lib/duet/{p-f90e86d3.entry.js → p-ff28d71a.entry.js} +1 -1
- 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 +2 -2
- 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 +2 -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-08d27c67.js} +1 -1
- package/lib/esm/{index-b67ea1f1.js → index-729ef6e7.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-08d27c67.js +4 -0
- package/lib/esm-es5/index-729ef6e7.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-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-8146f5d7.system.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-b362d8f7.entry.js +0 -4
- package/lib/duet/p-c5efb3f6.entry.js +0 -4
- package/lib/duet/p-cff11c78.entry.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/focus-utils-e2239371.js +0 -4
- 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,392 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
Stencil Client Platform v3.1.0 | MIT Licensed | https://stenciljs.com
|
|
8
|
-
*/
|
|
9
|
-
/**
|
|
10
|
-
* @license
|
|
11
|
-
* Copyright Google Inc. All Rights Reserved.
|
|
12
|
-
*
|
|
13
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
14
|
-
* found in the LICENSE file at https://angular.io/license
|
|
15
|
-
*
|
|
16
|
-
* This file is a port of shadowCSS from webcomponents.js to TypeScript.
|
|
17
|
-
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
18
|
-
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
19
|
-
*/
|
|
20
|
-
const safeSelector = (selector) => {
|
|
21
|
-
const placeholders = [];
|
|
22
|
-
let index = 0;
|
|
23
|
-
// Replaces attribute selectors with placeholders.
|
|
24
|
-
// The WS in [attr="va lue"] would otherwise be interpreted as a selector separator.
|
|
25
|
-
selector = selector.replace(/(\[[^\]]*\])/g, (_, keep) => {
|
|
26
|
-
const replaceBy = `__ph-${index}__`;
|
|
27
|
-
placeholders.push(keep);
|
|
28
|
-
index++;
|
|
29
|
-
return replaceBy;
|
|
30
|
-
});
|
|
31
|
-
// Replaces the expression in `:nth-child(2n + 1)` with a placeholder.
|
|
32
|
-
// WS and "+" would otherwise be interpreted as selector separators.
|
|
33
|
-
const content = selector.replace(/(:nth-[-\w]+)(\([^)]+\))/g, (_, pseudo, exp) => {
|
|
34
|
-
const replaceBy = `__ph-${index}__`;
|
|
35
|
-
placeholders.push(exp);
|
|
36
|
-
index++;
|
|
37
|
-
return pseudo + replaceBy;
|
|
38
|
-
});
|
|
39
|
-
const ss = {
|
|
40
|
-
content,
|
|
41
|
-
placeholders,
|
|
42
|
-
};
|
|
43
|
-
return ss;
|
|
44
|
-
};
|
|
45
|
-
const restoreSafeSelector = (placeholders, content) => {
|
|
46
|
-
return content.replace(/__ph-(\d+)__/g, (_, index) => placeholders[+index]);
|
|
47
|
-
};
|
|
48
|
-
const _polyfillHost = '-shadowcsshost';
|
|
49
|
-
const _polyfillSlotted = '-shadowcssslotted';
|
|
50
|
-
// note: :host-context pre-processed to -shadowcsshostcontext.
|
|
51
|
-
const _polyfillHostContext = '-shadowcsscontext';
|
|
52
|
-
const _parenSuffix = ')(?:\\((' + '(?:\\([^)(]*\\)|[^)(]*)+?' + ')\\))?([^,{]*)';
|
|
53
|
-
const _cssColonHostRe = new RegExp('(' + _polyfillHost + _parenSuffix, 'gim');
|
|
54
|
-
const _cssColonHostContextRe = new RegExp('(' + _polyfillHostContext + _parenSuffix, 'gim');
|
|
55
|
-
const _cssColonSlottedRe = new RegExp('(' + _polyfillSlotted + _parenSuffix, 'gim');
|
|
56
|
-
const _polyfillHostNoCombinator = _polyfillHost + '-no-combinator';
|
|
57
|
-
const _polyfillHostNoCombinatorRe = /-shadowcsshost-no-combinator([^\s]*)/;
|
|
58
|
-
const _shadowDOMSelectorsRe = [/::shadow/g, /::content/g];
|
|
59
|
-
const _selectorReSuffix = '([>\\s~+[.,{:][\\s\\S]*)?$';
|
|
60
|
-
const _polyfillHostRe = /-shadowcsshost/gim;
|
|
61
|
-
const _colonHostRe = /:host/gim;
|
|
62
|
-
const _colonSlottedRe = /::slotted/gim;
|
|
63
|
-
const _colonHostContextRe = /:host-context/gim;
|
|
64
|
-
const _commentRe = /\/\*\s*[\s\S]*?\*\//g;
|
|
65
|
-
const stripComments = (input) => {
|
|
66
|
-
return input.replace(_commentRe, '');
|
|
67
|
-
};
|
|
68
|
-
const _commentWithHashRe = /\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;
|
|
69
|
-
const extractCommentsWithHash = (input) => {
|
|
70
|
-
return input.match(_commentWithHashRe) || [];
|
|
71
|
-
};
|
|
72
|
-
const _ruleRe = /(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g;
|
|
73
|
-
const _curlyRe = /([{}])/g;
|
|
74
|
-
const _selectorPartsRe = /(^.*?[^\\])??((:+)(.*)|$)/;
|
|
75
|
-
const OPEN_CURLY = '{';
|
|
76
|
-
const CLOSE_CURLY = '}';
|
|
77
|
-
const BLOCK_PLACEHOLDER = '%BLOCK%';
|
|
78
|
-
const processRules = (input, ruleCallback) => {
|
|
79
|
-
const inputWithEscapedBlocks = escapeBlocks(input);
|
|
80
|
-
let nextBlockIndex = 0;
|
|
81
|
-
return inputWithEscapedBlocks.escapedString.replace(_ruleRe, (...m) => {
|
|
82
|
-
const selector = m[2];
|
|
83
|
-
let content = '';
|
|
84
|
-
let suffix = m[4];
|
|
85
|
-
let contentPrefix = '';
|
|
86
|
-
if (suffix && suffix.startsWith('{' + BLOCK_PLACEHOLDER)) {
|
|
87
|
-
content = inputWithEscapedBlocks.blocks[nextBlockIndex++];
|
|
88
|
-
suffix = suffix.substring(BLOCK_PLACEHOLDER.length + 1);
|
|
89
|
-
contentPrefix = '{';
|
|
90
|
-
}
|
|
91
|
-
const cssRule = {
|
|
92
|
-
selector,
|
|
93
|
-
content,
|
|
94
|
-
};
|
|
95
|
-
const rule = ruleCallback(cssRule);
|
|
96
|
-
return `${m[1]}${rule.selector}${m[3]}${contentPrefix}${rule.content}${suffix}`;
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
const escapeBlocks = (input) => {
|
|
100
|
-
const inputParts = input.split(_curlyRe);
|
|
101
|
-
const resultParts = [];
|
|
102
|
-
const escapedBlocks = [];
|
|
103
|
-
let bracketCount = 0;
|
|
104
|
-
let currentBlockParts = [];
|
|
105
|
-
for (let partIndex = 0; partIndex < inputParts.length; partIndex++) {
|
|
106
|
-
const part = inputParts[partIndex];
|
|
107
|
-
if (part === CLOSE_CURLY) {
|
|
108
|
-
bracketCount--;
|
|
109
|
-
}
|
|
110
|
-
if (bracketCount > 0) {
|
|
111
|
-
currentBlockParts.push(part);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
if (currentBlockParts.length > 0) {
|
|
115
|
-
escapedBlocks.push(currentBlockParts.join(''));
|
|
116
|
-
resultParts.push(BLOCK_PLACEHOLDER);
|
|
117
|
-
currentBlockParts = [];
|
|
118
|
-
}
|
|
119
|
-
resultParts.push(part);
|
|
120
|
-
}
|
|
121
|
-
if (part === OPEN_CURLY) {
|
|
122
|
-
bracketCount++;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
if (currentBlockParts.length > 0) {
|
|
126
|
-
escapedBlocks.push(currentBlockParts.join(''));
|
|
127
|
-
resultParts.push(BLOCK_PLACEHOLDER);
|
|
128
|
-
}
|
|
129
|
-
const strEscapedBlocks = {
|
|
130
|
-
escapedString: resultParts.join(''),
|
|
131
|
-
blocks: escapedBlocks,
|
|
132
|
-
};
|
|
133
|
-
return strEscapedBlocks;
|
|
134
|
-
};
|
|
135
|
-
const insertPolyfillHostInCssText = (selector) => {
|
|
136
|
-
selector = selector
|
|
137
|
-
.replace(_colonHostContextRe, _polyfillHostContext)
|
|
138
|
-
.replace(_colonHostRe, _polyfillHost)
|
|
139
|
-
.replace(_colonSlottedRe, _polyfillSlotted);
|
|
140
|
-
return selector;
|
|
141
|
-
};
|
|
142
|
-
const convertColonRule = (cssText, regExp, partReplacer) => {
|
|
143
|
-
// m[1] = :host(-context), m[2] = contents of (), m[3] rest of rule
|
|
144
|
-
return cssText.replace(regExp, (...m) => {
|
|
145
|
-
if (m[2]) {
|
|
146
|
-
const parts = m[2].split(',');
|
|
147
|
-
const r = [];
|
|
148
|
-
for (let i = 0; i < parts.length; i++) {
|
|
149
|
-
const p = parts[i].trim();
|
|
150
|
-
if (!p)
|
|
151
|
-
break;
|
|
152
|
-
r.push(partReplacer(_polyfillHostNoCombinator, p, m[3]));
|
|
153
|
-
}
|
|
154
|
-
return r.join(',');
|
|
155
|
-
}
|
|
156
|
-
else {
|
|
157
|
-
return _polyfillHostNoCombinator + m[3];
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
const colonHostPartReplacer = (host, part, suffix) => {
|
|
162
|
-
return host + part.replace(_polyfillHost, '') + suffix;
|
|
163
|
-
};
|
|
164
|
-
const convertColonHost = (cssText) => {
|
|
165
|
-
return convertColonRule(cssText, _cssColonHostRe, colonHostPartReplacer);
|
|
166
|
-
};
|
|
167
|
-
const colonHostContextPartReplacer = (host, part, suffix) => {
|
|
168
|
-
if (part.indexOf(_polyfillHost) > -1) {
|
|
169
|
-
return colonHostPartReplacer(host, part, suffix);
|
|
170
|
-
}
|
|
171
|
-
else {
|
|
172
|
-
return host + part + suffix + ', ' + part + ' ' + host + suffix;
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
const convertColonSlotted = (cssText, slotScopeId) => {
|
|
176
|
-
const slotClass = '.' + slotScopeId + ' > ';
|
|
177
|
-
const selectors = [];
|
|
178
|
-
cssText = cssText.replace(_cssColonSlottedRe, (...m) => {
|
|
179
|
-
if (m[2]) {
|
|
180
|
-
const compound = m[2].trim();
|
|
181
|
-
const suffix = m[3];
|
|
182
|
-
const slottedSelector = slotClass + compound + suffix;
|
|
183
|
-
let prefixSelector = '';
|
|
184
|
-
for (let i = m[4] - 1; i >= 0; i--) {
|
|
185
|
-
const char = m[5][i];
|
|
186
|
-
if (char === '}' || char === ',') {
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
prefixSelector = char + prefixSelector;
|
|
190
|
-
}
|
|
191
|
-
const orgSelector = prefixSelector + slottedSelector;
|
|
192
|
-
const addedSelector = `${prefixSelector.trimRight()}${slottedSelector.trim()}`;
|
|
193
|
-
if (orgSelector.trim() !== addedSelector.trim()) {
|
|
194
|
-
const updatedSelector = `${addedSelector}, ${orgSelector}`;
|
|
195
|
-
selectors.push({
|
|
196
|
-
orgSelector,
|
|
197
|
-
updatedSelector,
|
|
198
|
-
});
|
|
199
|
-
}
|
|
200
|
-
return slottedSelector;
|
|
201
|
-
}
|
|
202
|
-
else {
|
|
203
|
-
return _polyfillHostNoCombinator + m[3];
|
|
204
|
-
}
|
|
205
|
-
});
|
|
206
|
-
return {
|
|
207
|
-
selectors,
|
|
208
|
-
cssText,
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
const convertColonHostContext = (cssText) => {
|
|
212
|
-
return convertColonRule(cssText, _cssColonHostContextRe, colonHostContextPartReplacer);
|
|
213
|
-
};
|
|
214
|
-
const convertShadowDOMSelectors = (cssText) => {
|
|
215
|
-
return _shadowDOMSelectorsRe.reduce((result, pattern) => result.replace(pattern, ' '), cssText);
|
|
216
|
-
};
|
|
217
|
-
const makeScopeMatcher = (scopeSelector) => {
|
|
218
|
-
const lre = /\[/g;
|
|
219
|
-
const rre = /\]/g;
|
|
220
|
-
scopeSelector = scopeSelector.replace(lre, '\\[').replace(rre, '\\]');
|
|
221
|
-
return new RegExp('^(' + scopeSelector + ')' + _selectorReSuffix, 'm');
|
|
222
|
-
};
|
|
223
|
-
const selectorNeedsScoping = (selector, scopeSelector) => {
|
|
224
|
-
const re = makeScopeMatcher(scopeSelector);
|
|
225
|
-
return !re.test(selector);
|
|
226
|
-
};
|
|
227
|
-
const injectScopingSelector = (selector, scopingSelector) => {
|
|
228
|
-
return selector.replace(_selectorPartsRe, (_, before = '', _colonGroup, colon = '', after = '') => {
|
|
229
|
-
return before + scopingSelector + colon + after;
|
|
230
|
-
});
|
|
231
|
-
};
|
|
232
|
-
const applySimpleSelectorScope = (selector, scopeSelector, hostSelector) => {
|
|
233
|
-
// In Android browser, the lastIndex is not reset when the regex is used in String.replace()
|
|
234
|
-
_polyfillHostRe.lastIndex = 0;
|
|
235
|
-
if (_polyfillHostRe.test(selector)) {
|
|
236
|
-
const replaceBy = `.${hostSelector}`;
|
|
237
|
-
return selector
|
|
238
|
-
.replace(_polyfillHostNoCombinatorRe, (_, selector) => injectScopingSelector(selector, replaceBy))
|
|
239
|
-
.replace(_polyfillHostRe, replaceBy + ' ');
|
|
240
|
-
}
|
|
241
|
-
return scopeSelector + ' ' + selector;
|
|
242
|
-
};
|
|
243
|
-
const applyStrictSelectorScope = (selector, scopeSelector, hostSelector) => {
|
|
244
|
-
const isRe = /\[is=([^\]]*)\]/g;
|
|
245
|
-
scopeSelector = scopeSelector.replace(isRe, (_, ...parts) => parts[0]);
|
|
246
|
-
const className = '.' + scopeSelector;
|
|
247
|
-
const _scopeSelectorPart = (p) => {
|
|
248
|
-
let scopedP = p.trim();
|
|
249
|
-
if (!scopedP) {
|
|
250
|
-
return '';
|
|
251
|
-
}
|
|
252
|
-
if (p.indexOf(_polyfillHostNoCombinator) > -1) {
|
|
253
|
-
scopedP = applySimpleSelectorScope(p, scopeSelector, hostSelector);
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
// remove :host since it should be unnecessary
|
|
257
|
-
const t = p.replace(_polyfillHostRe, '');
|
|
258
|
-
if (t.length > 0) {
|
|
259
|
-
scopedP = injectScopingSelector(t, className);
|
|
260
|
-
}
|
|
261
|
-
}
|
|
262
|
-
return scopedP;
|
|
263
|
-
};
|
|
264
|
-
const safeContent = safeSelector(selector);
|
|
265
|
-
selector = safeContent.content;
|
|
266
|
-
let scopedSelector = '';
|
|
267
|
-
let startIndex = 0;
|
|
268
|
-
let res;
|
|
269
|
-
const sep = /( |>|\+|~(?!=))\s*/g;
|
|
270
|
-
// If a selector appears before :host it should not be shimmed as it
|
|
271
|
-
// matches on ancestor elements and not on elements in the host's shadow
|
|
272
|
-
// `:host-context(div)` is transformed to
|
|
273
|
-
// `-shadowcsshost-no-combinatordiv, div -shadowcsshost-no-combinator`
|
|
274
|
-
// the `div` is not part of the component in the 2nd selectors and should not be scoped.
|
|
275
|
-
// Historically `component-tag:host` was matching the component so we also want to preserve
|
|
276
|
-
// this behavior to avoid breaking legacy apps (it should not match).
|
|
277
|
-
// The behavior should be:
|
|
278
|
-
// - `tag:host` -> `tag[h]` (this is to avoid breaking legacy apps, should not match anything)
|
|
279
|
-
// - `tag :host` -> `tag [h]` (`tag` is not scoped because it's considered part of a
|
|
280
|
-
// `:host-context(tag)`)
|
|
281
|
-
const hasHost = selector.indexOf(_polyfillHostNoCombinator) > -1;
|
|
282
|
-
// Only scope parts after the first `-shadowcsshost-no-combinator` when it is present
|
|
283
|
-
let shouldScope = !hasHost;
|
|
284
|
-
while ((res = sep.exec(selector)) !== null) {
|
|
285
|
-
const separator = res[1];
|
|
286
|
-
const part = selector.slice(startIndex, res.index).trim();
|
|
287
|
-
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
288
|
-
const scopedPart = shouldScope ? _scopeSelectorPart(part) : part;
|
|
289
|
-
scopedSelector += `${scopedPart} ${separator} `;
|
|
290
|
-
startIndex = sep.lastIndex;
|
|
291
|
-
}
|
|
292
|
-
const part = selector.substring(startIndex);
|
|
293
|
-
shouldScope = shouldScope || part.indexOf(_polyfillHostNoCombinator) > -1;
|
|
294
|
-
scopedSelector += shouldScope ? _scopeSelectorPart(part) : part;
|
|
295
|
-
// replace the placeholders with their original values
|
|
296
|
-
return restoreSafeSelector(safeContent.placeholders, scopedSelector);
|
|
297
|
-
};
|
|
298
|
-
const scopeSelector = (selector, scopeSelectorText, hostSelector, slotSelector) => {
|
|
299
|
-
return selector
|
|
300
|
-
.split(',')
|
|
301
|
-
.map((shallowPart) => {
|
|
302
|
-
if (slotSelector && shallowPart.indexOf('.' + slotSelector) > -1) {
|
|
303
|
-
return shallowPart.trim();
|
|
304
|
-
}
|
|
305
|
-
if (selectorNeedsScoping(shallowPart, scopeSelectorText)) {
|
|
306
|
-
return applyStrictSelectorScope(shallowPart, scopeSelectorText, hostSelector).trim();
|
|
307
|
-
}
|
|
308
|
-
else {
|
|
309
|
-
return shallowPart.trim();
|
|
310
|
-
}
|
|
311
|
-
})
|
|
312
|
-
.join(', ');
|
|
313
|
-
};
|
|
314
|
-
const scopeSelectors = (cssText, scopeSelectorText, hostSelector, slotSelector, commentOriginalSelector) => {
|
|
315
|
-
return processRules(cssText, (rule) => {
|
|
316
|
-
let selector = rule.selector;
|
|
317
|
-
let content = rule.content;
|
|
318
|
-
if (rule.selector[0] !== '@') {
|
|
319
|
-
selector = scopeSelector(rule.selector, scopeSelectorText, hostSelector, slotSelector);
|
|
320
|
-
}
|
|
321
|
-
else if (rule.selector.startsWith('@media') ||
|
|
322
|
-
rule.selector.startsWith('@supports') ||
|
|
323
|
-
rule.selector.startsWith('@page') ||
|
|
324
|
-
rule.selector.startsWith('@document')) {
|
|
325
|
-
content = scopeSelectors(rule.content, scopeSelectorText, hostSelector, slotSelector);
|
|
326
|
-
}
|
|
327
|
-
const cssRule = {
|
|
328
|
-
selector: selector.replace(/\s{2,}/g, ' ').trim(),
|
|
329
|
-
content,
|
|
330
|
-
};
|
|
331
|
-
return cssRule;
|
|
332
|
-
});
|
|
333
|
-
};
|
|
334
|
-
const scopeCssText = (cssText, scopeId, hostScopeId, slotScopeId, commentOriginalSelector) => {
|
|
335
|
-
cssText = insertPolyfillHostInCssText(cssText);
|
|
336
|
-
cssText = convertColonHost(cssText);
|
|
337
|
-
cssText = convertColonHostContext(cssText);
|
|
338
|
-
const slotted = convertColonSlotted(cssText, slotScopeId);
|
|
339
|
-
cssText = slotted.cssText;
|
|
340
|
-
cssText = convertShadowDOMSelectors(cssText);
|
|
341
|
-
if (scopeId) {
|
|
342
|
-
cssText = scopeSelectors(cssText, scopeId, hostScopeId, slotScopeId);
|
|
343
|
-
}
|
|
344
|
-
cssText = cssText.replace(/-shadowcsshost-no-combinator/g, `.${hostScopeId}`);
|
|
345
|
-
cssText = cssText.replace(/>\s*\*\s+([^{, ]+)/gm, ' $1 ');
|
|
346
|
-
return {
|
|
347
|
-
cssText: cssText.trim(),
|
|
348
|
-
slottedSelectors: slotted.selectors,
|
|
349
|
-
};
|
|
350
|
-
};
|
|
351
|
-
const scopeCss = (cssText, scopeId, commentOriginalSelector) => {
|
|
352
|
-
const hostScopeId = scopeId + '-h';
|
|
353
|
-
const slotScopeId = scopeId + '-s';
|
|
354
|
-
const commentsWithHash = extractCommentsWithHash(cssText);
|
|
355
|
-
cssText = stripComments(cssText);
|
|
356
|
-
const orgSelectors = [];
|
|
357
|
-
if (commentOriginalSelector) {
|
|
358
|
-
const processCommentedSelector = (rule) => {
|
|
359
|
-
const placeholder = `/*!@___${orgSelectors.length}___*/`;
|
|
360
|
-
const comment = `/*!@${rule.selector}*/`;
|
|
361
|
-
orgSelectors.push({ placeholder, comment });
|
|
362
|
-
rule.selector = placeholder + rule.selector;
|
|
363
|
-
return rule;
|
|
364
|
-
};
|
|
365
|
-
cssText = processRules(cssText, (rule) => {
|
|
366
|
-
if (rule.selector[0] !== '@') {
|
|
367
|
-
return processCommentedSelector(rule);
|
|
368
|
-
}
|
|
369
|
-
else if (rule.selector.startsWith('@media') ||
|
|
370
|
-
rule.selector.startsWith('@supports') ||
|
|
371
|
-
rule.selector.startsWith('@page') ||
|
|
372
|
-
rule.selector.startsWith('@document')) {
|
|
373
|
-
rule.content = processRules(rule.content, processCommentedSelector);
|
|
374
|
-
return rule;
|
|
375
|
-
}
|
|
376
|
-
return rule;
|
|
377
|
-
});
|
|
378
|
-
}
|
|
379
|
-
const scoped = scopeCssText(cssText, scopeId, hostScopeId, slotScopeId);
|
|
380
|
-
cssText = [scoped.cssText, ...commentsWithHash].join('\n');
|
|
381
|
-
if (commentOriginalSelector) {
|
|
382
|
-
orgSelectors.forEach(({ placeholder, comment }) => {
|
|
383
|
-
cssText = cssText.replace(placeholder, comment);
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
scoped.slottedSelectors.forEach((slottedSelector) => {
|
|
387
|
-
cssText = cssText.replace(slottedSelector.orgSelector, slottedSelector.updatedSelector);
|
|
388
|
-
});
|
|
389
|
-
return cssText;
|
|
390
|
-
};
|
|
391
|
-
|
|
392
|
-
exports.scopeCss = scopeCss;
|