@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
package/lib/cjs/dom-c42e1019.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
'use strict';
|
|
5
|
-
|
|
6
|
-
/*
|
|
7
|
-
Stencil Client Patch Browser v3.1.0 | MIT Licensed | https://stenciljs.com
|
|
8
|
-
*/
|
|
9
|
-
(function(){
|
|
10
|
-
var aa=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function g(a){var b=aa.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return !b&&a}function l(a){var b=a.isConnected;if(void 0!==b)return b;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return !(!a||!(a.__CE_isImportDocument||a instanceof Document))}
|
|
11
|
-
function n(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
|
|
12
|
-
function p(a,b,d){d=void 0===d?new Set:d;for(var c=a;c;){if(c.nodeType===Node.ELEMENT_NODE){var e=c;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){c=e.import;if(c instanceof Node&&!d.has(c))for(d.add(c),c=c.firstChild;c;c=c.nextSibling)p(c,b,d);c=n(a,e);continue}else if("template"===f){c=n(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)p(e,b,d);}c=c.firstChild?c.firstChild:n(a,c);}}function r(a,b,d){a[b]=d;}function u(){this.a=new Map;this.g=new Map;this.c=[];this.f=[];this.b=!1;}function ba(a,b,d){a.a.set(b,d);a.g.set(d.constructorFunction,d);}function ca(a,b){a.b=!0;a.c.push(b);}function da(a,b){a.b=!0;a.f.push(b);}function v(a,b){a.b&&p(b,function(b){return w(a,b)});}function w(a,b){if(a.b&&!b.__CE_patched){b.__CE_patched=!0;for(var d=0;d<a.c.length;d++)a.c[d](b);for(d=0;d<a.f.length;d++)a.f[d](b);}}
|
|
13
|
-
function x(a,b){var d=[];p(b,function(b){return d.push(b)});for(b=0;b<d.length;b++){var c=d[b];1===c.__CE_state?a.connectedCallback(c):y(a,c);}}function z(a,b){var d=[];p(b,function(b){return d.push(b)});for(b=0;b<d.length;b++){var c=d[b];1===c.__CE_state&&a.disconnectedCallback(c);}}
|
|
14
|
-
function A(a,b,d){d=void 0===d?{}:d;var c=d.u||new Set,e=d.i||function(b){return y(a,b)},f=[];p(b,function(b){if("link"===b.localName&&"import"===b.getAttribute("rel")){var d=b.import;d instanceof Node&&(d.__CE_isImportDocument=!0,d.__CE_hasRegistry=!0);d&&"complete"===d.readyState?d.__CE_documentLoadHandled=!0:b.addEventListener("load",function(){var d=b.import;if(!d.__CE_documentLoadHandled){d.__CE_documentLoadHandled=!0;var f=new Set(c);f.delete(d);A(a,d,{u:f,i:e});}});}else f.push(b);},c);if(a.b)for(b=
|
|
15
|
-
0;b<f.length;b++)w(a,f[b]);for(b=0;b<f.length;b++)e(f[b]);}
|
|
16
|
-
function y(a,b){if(void 0===b.__CE_state){var d=b.ownerDocument;if(d.defaultView||d.__CE_isImportDocument&&d.__CE_hasRegistry)if(d=a.a.get(b.localName)){d.constructionStack.push(b);var c=d.constructorFunction;try{try{if(new c!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{d.constructionStack.pop();}}catch(t){throw b.__CE_state=2,t;}b.__CE_state=1;b.__CE_definition=d;if(d.attributeChangedCallback)for(d=d.observedAttributes,c=0;c<d.length;c++){var e=
|
|
17
|
-
d[c],f=b.getAttribute(e);null!==f&&a.attributeChangedCallback(b,e,null,f,null);}l(b)&&a.connectedCallback(b);}}}u.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a);};u.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a);};
|
|
18
|
-
u.prototype.attributeChangedCallback=function(a,b,d,c,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&f.attributeChangedCallback.call(a,b,d,c,e);};function B(a){var b=document;this.c=a;this.a=b;this.b=void 0;A(this.c,this.a);"loading"===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}));}function C(a){a.b&&a.b.disconnect();}B.prototype.f=function(a){var b=this.a.readyState;"interactive"!==b&&"complete"!==b||C(this);for(b=0;b<a.length;b++)for(var d=a[b].addedNodes,c=0;c<d.length;c++)A(this.c,d[c]);};function ea(){var a=this;this.b=this.a=void 0;this.c=new Promise(function(b){a.b=b;a.a&&b(a.a);});}function D(a){if(a.a)throw Error("Already resolved.");a.a=void 0;a.b&&a.b(void 0);}function E(a){this.c=!1;this.a=a;this.j=new Map;this.f=function(b){return b()};this.b=!1;this.g=[];this.o=new B(a);}
|
|
19
|
-
E.prototype.l=function(a,b){var d=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!g(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this.a.a.get(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this.c)throw Error("A custom element is already being defined.");this.c=!0;try{var c=function(b){var a=e[b];if(void 0!==a&&!(a instanceof Function))throw Error("The '"+b+"' callback must be a function.");
|
|
20
|
-
return a},e=b.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=c("connectedCallback");var t=c("disconnectedCallback");var k=c("adoptedCallback");var h=c("attributeChangedCallback");var m=b.observedAttributes||[];}catch(q){return}finally{this.c=!1;}b={localName:a,constructorFunction:b,connectedCallback:f,disconnectedCallback:t,adoptedCallback:k,attributeChangedCallback:h,observedAttributes:m,constructionStack:[]};ba(this.a,
|
|
21
|
-
a,b);this.g.push(b);this.b||(this.b=!0,this.f(function(){return fa(d)}));};E.prototype.i=function(a){A(this.a,a);};
|
|
22
|
-
function fa(a){if(!1!==a.b){a.b=!1;for(var b=a.g,d=[],c=new Map,e=0;e<b.length;e++)c.set(b[e].localName,[]);A(a.a,document,{i:function(b){if(void 0===b.__CE_state){var e=b.localName,f=c.get(e);f?f.push(b):a.a.a.get(e)&&d.push(b);}}});for(e=0;e<d.length;e++)y(a.a,d[e]);for(;0<b.length;){var f=b.shift();e=f.localName;f=c.get(f.localName);for(var t=0;t<f.length;t++)y(a.a,f[t]);(e=a.j.get(e))&&D(e);}}}E.prototype.get=function(a){if(a=this.a.a.get(a))return a.constructorFunction};
|
|
23
|
-
E.prototype.m=function(a){if(!g(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.j.get(a);if(b)return b.c;b=new ea;this.j.set(a,b);this.a.a.get(a)&&!this.g.some(function(b){return b.localName===a})&&D(b);return b.c};E.prototype.s=function(a){C(this.o);var b=this.f;this.f=function(d){return a(function(){return b(d)})};};window.CustomElementRegistry=E;E.prototype.define=E.prototype.l;E.prototype.upgrade=E.prototype.i;E.prototype.get=E.prototype.get;
|
|
24
|
-
E.prototype.whenDefined=E.prototype.m;E.prototype.polyfillWrapFlushCallback=E.prototype.s;var F=window.Document.prototype.createElement,G=window.Document.prototype.createElementNS,ha=window.Document.prototype.importNode,ia=window.Document.prototype.prepend,ja=window.Document.prototype.append,ka=window.DocumentFragment.prototype.prepend,la=window.DocumentFragment.prototype.append,H=window.Node.prototype.cloneNode,I=window.Node.prototype.appendChild,J=window.Node.prototype.insertBefore,K=window.Node.prototype.removeChild,L=window.Node.prototype.replaceChild,M=Object.getOwnPropertyDescriptor(window.Node.prototype,
|
|
25
|
-
"textContent"),N=window.Element.prototype.attachShadow,O=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),P=window.Element.prototype.getAttribute,Q=window.Element.prototype.setAttribute,R=window.Element.prototype.removeAttribute,S=window.Element.prototype.getAttributeNS,T=window.Element.prototype.setAttributeNS,U=window.Element.prototype.removeAttributeNS,ma=window.Element.prototype.insertAdjacentElement,na=window.Element.prototype.insertAdjacentHTML,oa=window.Element.prototype.prepend,
|
|
26
|
-
pa=window.Element.prototype.append,V=window.Element.prototype.before,qa=window.Element.prototype.after,ra=window.Element.prototype.replaceWith,sa=window.Element.prototype.remove,ta=window.HTMLElement,W=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),ua=window.HTMLElement.prototype.insertAdjacentElement,va=window.HTMLElement.prototype.insertAdjacentHTML;var wa=new function(){};function xa(){var a=X;window.HTMLElement=function(){function b(){var b=this.constructor,c=a.g.get(b);if(!c)throw Error("The custom element being constructed was not registered with `customElements`.");var e=c.constructionStack;if(0===e.length)return e=F.call(document,c.localName),Object.setPrototypeOf(e,b.prototype),e.__CE_state=1,e.__CE_definition=c,w(a,e),e;c=e.length-1;var f=e[c];if(f===wa)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
|
|
27
|
-
e[c]=wa;Object.setPrototypeOf(f,b.prototype);w(a,f);return f}b.prototype=ta.prototype;Object.defineProperty(b.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});return b}();}function Y(a,b,d){function c(b){return function(d){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var f=[],m=0;m<e.length;m++){var q=e[m];q instanceof Element&&l(q)&&f.push(q);if(q instanceof DocumentFragment)for(q=q.firstChild;q;q=q.nextSibling)c.push(q);else c.push(q);}b.apply(this,e);for(e=0;e<f.length;e++)z(a,f[e]);if(l(this))for(e=0;e<c.length;e++)f=c[e],f instanceof Element&&x(a,f);}}void 0!==d.h&&(b.prepend=c(d.h));void 0!==d.append&&(b.append=c(d.append));}function ya(){var a=X;r(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var d=a.a.get(b);if(d)return new d.constructorFunction}b=F.call(this,b);w(a,b);return b});r(Document.prototype,"importNode",function(b,d){b=ha.call(this,b,!!d);this.__CE_hasRegistry?A(a,b):v(a,b);return b});r(Document.prototype,"createElementNS",function(b,d){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var c=a.a.get(d);if(c)return new c.constructorFunction}b=G.call(this,b,
|
|
28
|
-
d);w(a,b);return b});Y(a,Document.prototype,{h:ia,append:ja});}function za(){function a(a,c){Object.defineProperty(a,"textContent",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)c.set.call(this,a);else {var d=void 0;if(this.firstChild){var e=this.childNodes,k=e.length;if(0<k&&l(this)){d=Array(k);for(var h=0;h<k;h++)d[h]=e[h];}}c.set.call(this,a);if(d)for(a=0;a<d.length;a++)z(b,d[a]);}}});}var b=X;r(Node.prototype,"insertBefore",function(a,c){if(a instanceof DocumentFragment){var e=Array.prototype.slice.apply(a.childNodes);
|
|
29
|
-
a=J.call(this,a,c);if(l(this))for(c=0;c<e.length;c++)x(b,e[c]);return a}e=l(a);c=J.call(this,a,c);e&&z(b,a);l(this)&&x(b,a);return c});r(Node.prototype,"appendChild",function(a){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=I.call(this,a);if(l(this))for(var e=0;e<c.length;e++)x(b,c[e]);return a}c=l(a);e=I.call(this,a);c&&z(b,a);l(this)&&x(b,a);return e});r(Node.prototype,"cloneNode",function(a){a=H.call(this,!!a);this.ownerDocument.__CE_hasRegistry?A(b,a):v(b,
|
|
30
|
-
a);return a});r(Node.prototype,"removeChild",function(a){var c=l(a),e=K.call(this,a);c&&z(b,a);return e});r(Node.prototype,"replaceChild",function(a,c){if(a instanceof DocumentFragment){var e=Array.prototype.slice.apply(a.childNodes);a=L.call(this,a,c);if(l(this))for(z(b,c),c=0;c<e.length;c++)x(b,e[c]);return a}e=l(a);var f=L.call(this,a,c),d=l(this);d&&z(b,c);e&&z(b,a);d&&x(b,a);return f});M&&M.get?a(Node.prototype,M):ca(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){for(var a=[],
|
|
31
|
-
b=0;b<this.childNodes.length;b++){var f=this.childNodes[b];f.nodeType!==Node.COMMENT_NODE&&a.push(f.textContent);}return a.join("")},set:function(a){for(;this.firstChild;)K.call(this,this.firstChild);null!=a&&""!==a&&I.call(this,document.createTextNode(a));}});});}function Aa(a){function b(b){return function(e){for(var c=[],d=0;d<arguments.length;++d)c[d]=arguments[d];d=[];for(var k=[],h=0;h<c.length;h++){var m=c[h];m instanceof Element&&l(m)&&k.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)d.push(m);else d.push(m);}b.apply(this,c);for(c=0;c<k.length;c++)z(a,k[c]);if(l(this))for(c=0;c<d.length;c++)k=d[c],k instanceof Element&&x(a,k);}}var d=Element.prototype;void 0!==V&&(d.before=b(V));void 0!==V&&(d.after=b(qa));void 0!==ra&&
|
|
32
|
-
r(d,"replaceWith",function(b){for(var e=[],c=0;c<arguments.length;++c)e[c]=arguments[c];c=[];for(var d=[],k=0;k<e.length;k++){var h=e[k];h instanceof Element&&l(h)&&d.push(h);if(h instanceof DocumentFragment)for(h=h.firstChild;h;h=h.nextSibling)c.push(h);else c.push(h);}k=l(this);ra.apply(this,e);for(e=0;e<d.length;e++)z(a,d[e]);if(k)for(z(a,this),e=0;e<c.length;e++)d=c[e],d instanceof Element&&x(a,d);});void 0!==sa&&r(d,"remove",function(){var b=l(this);sa.call(this);b&&z(a,this);});}function Ba(){function a(a,b){Object.defineProperty(a,"innerHTML",{enumerable:b.enumerable,configurable:!0,get:b.get,set:function(a){var e=this,d=void 0;l(this)&&(d=[],p(this,function(a){a!==e&&d.push(a);}));b.set.call(this,a);if(d)for(var f=0;f<d.length;f++){var t=d[f];1===t.__CE_state&&c.disconnectedCallback(t);}this.ownerDocument.__CE_hasRegistry?A(c,this):v(c,this);return a}});}function b(a,b){r(a,"insertAdjacentElement",function(a,e){var d=l(e);a=b.call(this,a,e);d&&z(c,e);l(a)&&x(c,e);return a});}
|
|
33
|
-
function d(a,b){function e(a,b){for(var e=[];a!==b;a=a.nextSibling)e.push(a);for(b=0;b<e.length;b++)A(c,e[b]);}r(a,"insertAdjacentHTML",function(a,c){a=a.toLowerCase();if("beforebegin"===a){var d=this.previousSibling;b.call(this,a,c);e(d||this.parentNode.firstChild,this);}else if("afterbegin"===a)d=this.firstChild,b.call(this,a,c),e(this.firstChild,d);else if("beforeend"===a)d=this.lastChild,b.call(this,a,c),e(d||this.firstChild,null);else if("afterend"===a)d=this.nextSibling,b.call(this,a,c),e(this.nextSibling,
|
|
34
|
-
d);else throw new SyntaxError("The value provided ("+String(a)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");});}var c=X;N&&r(Element.prototype,"attachShadow",function(a){a=N.call(this,a);var b=c;if(b.b&&!a.__CE_patched){a.__CE_patched=!0;for(var e=0;e<b.c.length;e++)b.c[e](a);}return this.__CE_shadowRoot=a});O&&O.get?a(Element.prototype,O):W&&W.get?a(HTMLElement.prototype,W):da(c,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return H.call(this,!0).innerHTML},
|
|
35
|
-
set:function(a){var b="template"===this.localName,c=b?this.content:this,e=G.call(document,this.namespaceURI,this.localName);for(e.innerHTML=a;0<c.childNodes.length;)K.call(c,c.childNodes[0]);for(a=b?e.content:e;0<a.childNodes.length;)I.call(c,a.childNodes[0]);}});});r(Element.prototype,"setAttribute",function(a,b){if(1!==this.__CE_state)return Q.call(this,a,b);var e=P.call(this,a);Q.call(this,a,b);b=P.call(this,a);c.attributeChangedCallback(this,a,e,b,null);});r(Element.prototype,"setAttributeNS",function(a,
|
|
36
|
-
b,d){if(1!==this.__CE_state)return T.call(this,a,b,d);var e=S.call(this,a,b);T.call(this,a,b,d);d=S.call(this,a,b);c.attributeChangedCallback(this,b,e,d,a);});r(Element.prototype,"removeAttribute",function(a){if(1!==this.__CE_state)return R.call(this,a);var b=P.call(this,a);R.call(this,a);null!==b&&c.attributeChangedCallback(this,a,b,null,null);});r(Element.prototype,"removeAttributeNS",function(a,b){if(1!==this.__CE_state)return U.call(this,a,b);var d=S.call(this,a,b);U.call(this,a,b);var e=S.call(this,
|
|
37
|
-
a,b);d!==e&&c.attributeChangedCallback(this,b,d,e,a);});ua?b(HTMLElement.prototype,ua):ma?b(Element.prototype,ma):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");va?d(HTMLElement.prototype,va):na?d(Element.prototype,na):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");Y(c,Element.prototype,{h:oa,append:pa});Aa(c);}var Z=window.customElements;if(!Z||Z.forcePolyfill||"function"!=typeof Z.define||"function"!=typeof Z.get){var X=new u;xa();ya();Y(X,DocumentFragment.prototype,{h:ka,append:la});za();Ba();document.__CE_hasRegistry=!0;var customElements=new E(X);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:customElements});}}).call(self);
|
|
38
|
-
|
|
39
|
-
// Polyfill document.baseURI
|
|
40
|
-
"string"!==typeof document.baseURI&&Object.defineProperty(Document.prototype,"baseURI",{enumerable:!0,configurable:!0,get:function(){var a=document.querySelector("base");return a&&a.href?a.href:document.URL}});
|
|
41
|
-
|
|
42
|
-
// Polyfill CustomEvent
|
|
43
|
-
"function"!==typeof window.CustomEvent&&(window.CustomEvent=function(c,a){a=a||{bubbles:!1,cancelable:!1,detail:void 0};var b=document.createEvent("CustomEvent");b.initCustomEvent(c,a.bubbles,a.cancelable,a.detail);return b},window.CustomEvent.prototype=window.Event.prototype);
|
|
44
|
-
|
|
45
|
-
// Event.composedPath
|
|
46
|
-
(function(b,c,d){b.composedPath||(b.composedPath=function(){if(this.path)return this.path;var a=this.target;for(this.path=[];null!==a.parentNode;)this.path.push(a),a=a.parentNode;this.path.push(c,d);return this.path});})(Event.prototype,document,window);
|
|
47
|
-
|
|
48
|
-
/*!
|
|
49
|
-
Element.closest and Element.matches
|
|
50
|
-
https://github.com/jonathantneal/closest
|
|
51
|
-
Creative Commons Zero v1.0 Universal
|
|
52
|
-
*/
|
|
53
|
-
(function(a){"function"!==typeof a.matches&&(a.matches=a.msMatchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||function(a){a=(this.document||this.ownerDocument).querySelectorAll(a);for(var b=0;a[b]&&a[b]!==this;)++b;return !!a[b]});"function"!==typeof a.closest&&(a.closest=function(a){for(var b=this;b&&1===b.nodeType;){if(b.matches(a))return b;b=b.parentNode;}return null});})(window.Element.prototype);
|
|
54
|
-
|
|
55
|
-
/*!
|
|
56
|
-
Element.getRootNode()
|
|
57
|
-
*/
|
|
58
|
-
(function(c){function d(a){a=b(a);return a&&11===a.nodeType?d(a.host):a}function b(a){return a&&a.parentNode?b(a.parentNode):a}"function"!==typeof c.getRootNode&&(c.getRootNode=function(a){return a&&a.composed?d(this):b(this)});})(Element.prototype);
|
|
59
|
-
|
|
60
|
-
/*!
|
|
61
|
-
Element.isConnected()
|
|
62
|
-
*/
|
|
63
|
-
(function(a){"isConnected"in a||Object.defineProperty(a,"isConnected",{configurable:!0,enumerable:!0,get:function(){var a=this.getRootNode({composed:!0});return a&&9===a.nodeType}});})(Element.prototype);
|
|
64
|
-
|
|
65
|
-
/*!
|
|
66
|
-
Element.remove()
|
|
67
|
-
*/
|
|
68
|
-
(function(b){b.forEach(function(a){a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){null!==this.parentNode&&this.parentNode.removeChild(this);}});});})([Element.prototype,CharacterData.prototype,DocumentType.prototype]);
|
|
69
|
-
|
|
70
|
-
/*!
|
|
71
|
-
Element.classList
|
|
72
|
-
*/
|
|
73
|
-
!function(e){'classList'in e||Object.defineProperty(e,"classList",{get:function(){var e=this,t=(e.getAttribute("class")||"").replace(/^\s+|\s$/g,"").split(/\s+/g);function n(){t.length>0?e.setAttribute("class",t.join(" ")):e.removeAttribute("class");}return ""===t[0]&&t.splice(0,1),t.toggle=function(e,i){void 0!==i?i?t.add(e):t.remove(e):-1!==t.indexOf(e)?t.splice(t.indexOf(e),1):t.push(e),n();},t.add=function(){for(var e=[].slice.call(arguments),i=0,s=e.length;i<s;i++)-1===t.indexOf(e[i])&&t.push(e[i]);n();},t.remove=function(){for(var e=[].slice.call(arguments),i=0,s=e.length;i<s;i++)-1!==t.indexOf(e[i])&&t.splice(t.indexOf(e[i]),1);n();},t.item=function(e){return t[e]},t.contains=function(e){return -1!==t.indexOf(e)},t.replace=function(e,i){-1!==t.indexOf(e)&&t.splice(t.indexOf(e),1,i),n();},t.value=e.getAttribute("class")||"",t}});}(Element.prototype);
|
|
74
|
-
|
|
75
|
-
/*!
|
|
76
|
-
DOMTokenList
|
|
77
|
-
*/
|
|
78
|
-
(function(b){try{document.body.classList.add();}catch(e){var c=b.add,d=b.remove;b.add=function(){for(var a=0;a<arguments.length;a++)c.call(this,arguments[a]);};b.remove=function(){for(var a=0;a<arguments.length;a++)d.call(this,arguments[a]);};}})(DOMTokenList.prototype);
|
|
@@ -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;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { h } from "@stencil/core";
|
|
5
|
-
import { getLocaleString } from "../../utils/language-utils";
|
|
6
|
-
import { getI18nError } from "./errorcodes.utils";
|
|
7
|
-
import { formatBytes } from "./upload.helpers";
|
|
8
|
-
//tiedosto latautuu
|
|
9
|
-
const fileUploadingInfo = {
|
|
10
|
-
fi: "Tiedosto latautuu",
|
|
11
|
-
sv: "Filen laddas upp",
|
|
12
|
-
en: "File is uploading",
|
|
13
|
-
};
|
|
14
|
-
export const UploadItem = ({ data, showLinks, type, actions, errorCodes, theme, label, categoryLabel, showCategory, onLinkClick, }) => {
|
|
15
|
-
const { uid, item, size, uploaded, url, meta, progress, error } = data;
|
|
16
|
-
const { name } = item;
|
|
17
|
-
const linkClickHandler = (event) => {
|
|
18
|
-
if (onLinkClick) {
|
|
19
|
-
event.preventDefault();
|
|
20
|
-
onLinkClick(name, url || "", meta);
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
const getFileNameLine = () => {
|
|
24
|
-
switch (type) {
|
|
25
|
-
case "inprogress":
|
|
26
|
-
return (h("span", { class: "duet-upload-item-name", role: "status" }, h("duet-paragraph", { class: "duet-upload-item-name", color: "gray-darker", margin: "none", weight: "semi-bold" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name), h("duet-visually-hidden", null, h("duet-paragraph", null, getLocaleString(fileUploadingInfo))), h("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
|
|
27
|
-
case "pending":
|
|
28
|
-
return (h("span", { class: "duet-upload-item-name" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name));
|
|
29
|
-
case "failure":
|
|
30
|
-
return (h("span", { class: "duet-upload-item-error", role: "status" }, h("duet-paragraph", { class: "duet-upload-item-name", color: "danger", margin: "none", weight: "semi-bold" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name), h("duet-paragraph", { class: "duet-upload-item-error-label", size: "small", margin: "none", color: "danger" }, getI18nError(error.type, errorCodes))));
|
|
31
|
-
default:
|
|
32
|
-
return uploaded && url && showLinks ? (h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" }, h("duet-link", { onClick: linkClickHandler, url: url, external: true }, ContentName), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), SizeText)) : (h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" }, ContentName, h("duet-spacer", { size: "xx-small", direction: "horizontal" }), SizeText));
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
const ContentName = (h("span", { class: "duet-upload-item-name" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name));
|
|
36
|
-
const SizeText = (h("span", { class: "duet-upload-item-size", style: { fontSize: "14px", fontWeight: "400" } }, "(", formatBytes(size), ")"));
|
|
37
|
-
const Badges = meta && meta.badges ? (h("span", null, meta.badges.map(badgeText => (h("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
38
|
-
const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${name}`;
|
|
39
|
-
return (h("div", { class: {
|
|
40
|
-
"upload-item-row": true,
|
|
41
|
-
} }, showCategory && (h("div", { class: "item-categories" }, h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(categoryLabel)), Badges)), h("div", { class: { "item-name": true, "no-category": !showCategory } }, !!label && (h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(label))), getFileNameLine()), h("div", { class: "item-actions" }, actions.map(actionItem => {
|
|
42
|
-
return (h("duet-action-button", { actionMeta: Object.assign({}, meta || {}), actionId: uid || null, actionName: actionItem.name, theme: theme, iconName: actionItem.icon, iconColor: actionItem.color, iconSize: actionItem.size, background: actionItem.background, "accessible-label": `${actionDescription} ${getLocaleString(actionItem.label)} `, accessibleTitle: false }));
|
|
43
|
-
}))));
|
|
44
|
-
};
|