@duetds/components 6.8.8 → 6.9.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 +152 -144
- 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-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-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-choice_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
- package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
- package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +95 -125
- package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
- package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
- package/lib/cjs/duet-footer.cjs.entry.js +1 -1
- package/lib/cjs/duet-grid_2.cjs.entry.js +11 -3
- package/lib/cjs/duet-header_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-hero.cjs.entry.js +3 -3
- 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 +2 -2
- 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 +33 -9
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- 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-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 +3 -3
- 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.cjs.entry.js +1 -1
- 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-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{focus-utils-ff93a6ec.js → focus-utils-5c2e36e8.js} +1 -1
- package/lib/cjs/{index-a3e8bc14.js → index-92f0a873.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{token-utils-2e10264d.js → token-utils-4bfb15d4.js} +4 -1
- package/lib/cjs/{tokens.module-69170ddd.js → tokens.module-d402cfac.js} +0 -1
- 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-choice/duet-choice.js +3 -3
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
- 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 +6 -6
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +7 -7
- package/lib/collection/components/duet-grid/duet-grid.js +7 -3
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +3 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +32 -0
- 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 +21 -2
- package/lib/collection/components/duet-hero/duet-hero.js +6 -6
- 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 +4 -4
- package/lib/collection/components/duet-logo/duet-logo.js +7 -7
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.css +0 -6
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
- package/lib/collection/components/duet-modal/duet-modal.js +3 -3
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-pagination/duet-pagination.js +8 -6
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
- 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 +28 -6
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- 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.css +20 -0
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +1 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
- package/lib/collection/components/duet-table/duet-table.js +3 -3
- 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.js +1 -1
- package/lib/collection/components/duet-upload/duet-upload.css +79 -13
- package/lib/collection/components/duet-upload/duet-upload.js +113 -90
- package/lib/collection/components/duet-upload/upload-item-header.js +8 -0
- package/lib/collection/components/duet-upload/upload-item.js +21 -5
- package/lib/collection/utils/token-utils.js +2 -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-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-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-choice-group.js +6 -6
- package/lib/dist-custom-elements/duet-choice.js +5 -5
- package/lib/dist-custom-elements/duet-collapsible.js +2 -2
- package/lib/dist-custom-elements/duet-combobox.js +2 -2
- package/lib/dist-custom-elements/duet-contact-card.js +8 -8
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +10 -10
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +238 -1
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-footer.js +4 -4
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +8 -8
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +11 -11
- 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 +3 -3
- package/lib/dist-custom-elements/duet-modal.js +7 -7
- package/lib/dist-custom-elements/duet-multiselect.js +8 -8
- 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 +9 -9
- package/lib/dist-custom-elements/duet-page-heading.js +2 -2
- package/lib/dist-custom-elements/duet-pagination.js +12 -10
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-radio-group.js +6 -6
- 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 +31 -9
- 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-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 +3 -3
- package/lib/dist-custom-elements/duet-slideout.js +3 -3
- 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 +4 -4
- package/lib/dist-custom-elements/duet-tab-group.js +9 -9
- 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 +8 -8
- 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.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.js +125 -158
- 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-59650585.js → p-0d1b84db.js} +1 -1
- package/lib/dist-custom-elements/{p-ebbe90a8.js → p-132f2514.js} +6 -6
- package/lib/dist-custom-elements/{p-94ae95da.js → p-17d43428.js} +3 -3
- package/lib/dist-custom-elements/{p-e6c6717b.js → p-19ad4945.js} +9 -2
- package/lib/dist-custom-elements/{p-5f6be181.js → p-1bf112be.js} +1 -1
- package/lib/dist-custom-elements/{p-4de93a4d.js → p-26d32594.js} +3 -3
- package/lib/dist-custom-elements/{p-bc53c84a.js → p-276e05ab.js} +5 -5
- package/lib/dist-custom-elements/{p-11968273.js → p-29b2c3bb.js} +1 -1
- package/lib/dist-custom-elements/{p-0ca98fac.js → p-353d6d0c.js} +1 -1
- package/lib/dist-custom-elements/{p-d3e9fa79.js → p-41ef88f4.js} +4 -4
- package/lib/dist-custom-elements/{p-c45d78ad.js → p-47ba781e.js} +4 -4
- package/lib/dist-custom-elements/{p-18928f76.js → p-49848110.js} +1 -1
- package/lib/dist-custom-elements/{p-18eb8a09.js → p-4b4a086d.js} +8 -8
- package/lib/dist-custom-elements/{p-33e00967.js → p-505389ac.js} +1 -1
- package/lib/dist-custom-elements/{p-9ed347f9.js → p-68024252.js} +4 -2
- package/lib/dist-custom-elements/{p-8b2b7e77.js → p-7199196e.js} +2 -2
- package/lib/dist-custom-elements/{p-0531827c.js → p-7a4bdb83.js} +1 -1
- package/lib/dist-custom-elements/{p-54680d09.js → p-85fd8f09.js} +1 -1
- package/lib/dist-custom-elements/{p-321ebafe.js → p-890a9b12.js} +2 -2
- package/lib/dist-custom-elements/{p-a93335f6.js → p-945a2c0c.js} +6 -6
- package/lib/dist-custom-elements/{p-ea9a3c47.js → p-9d23386f.js} +2 -2
- package/lib/dist-custom-elements/{p-8330affc.js → p-9eba8647.js} +2 -2
- package/lib/dist-custom-elements/{p-b4ecffcc.js → p-a1ee31fb.js} +1 -1
- package/lib/dist-custom-elements/{p-7f53cb7b.js → p-a56cc313.js} +2 -2
- package/lib/dist-custom-elements/{p-abff644a.js → p-c01c91d6.js} +2 -2
- package/lib/dist-custom-elements/{p-c23454c0.js → p-c4a3d30d.js} +1 -1
- package/lib/dist-custom-elements/{p-aecb0a5e.js → p-c820f65e.js} +2 -2
- package/lib/dist-custom-elements/{p-a50a98c7.js → p-d0dea200.js} +2 -2
- package/lib/dist-custom-elements/{p-c9182b8c.js → p-d6a4de03.js} +2 -2
- package/lib/dist-custom-elements/{p-2a5cb90a.js → p-d6bcc527.js} +1 -1
- package/lib/dist-custom-elements/{p-9a6eda30.js → p-dde8e436.js} +5 -5
- package/lib/dist-custom-elements/{p-4d94ed39.js → p-e1de0408.js} +2 -2
- package/lib/dist-custom-elements/{p-95711e28.js → p-e48e8201.js} +4 -2
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-fcf9d72b.system.entry.js → p-00e57f9b.system.entry.js} +1 -1
- package/lib/duet/{p-35ee3c02.entry.js → p-02e23372.entry.js} +1 -1
- package/lib/duet/{p-22476bd9.entry.js → p-049f7427.entry.js} +1 -1
- package/lib/duet/{p-de399c6f.entry.js → p-07e54b8a.entry.js} +1 -1
- package/lib/duet/{p-c252fd27.system.entry.js → p-12ee9a23.system.entry.js} +1 -1
- package/lib/duet/{p-8346f3df.entry.js → p-1710310b.entry.js} +1 -1
- package/lib/duet/{p-c86289ac.entry.js → p-17d1d5ee.entry.js} +1 -1
- package/lib/duet/p-18843061.entry.js +4 -0
- package/lib/duet/{p-df6dadb2.system.entry.js → p-190507d4.system.entry.js} +1 -1
- package/lib/duet/p-197dba64.system.entry.js +4 -0
- package/lib/duet/{p-ca8c60df.system.entry.js → p-1bfff197.system.entry.js} +1 -1
- package/lib/duet/{p-6f68220c.system.entry.js → p-1d283741.system.entry.js} +1 -1
- package/lib/duet/{p-08511b16.system.entry.js → p-1de4b105.system.entry.js} +1 -1
- package/lib/duet/{p-fe7f676a.js → p-1ef436d2.js} +1 -1
- package/lib/duet/{p-6116351d.system.entry.js → p-2184a285.system.entry.js} +1 -1
- package/lib/duet/{p-092339f8.entry.js → p-21d08944.entry.js} +1 -1
- package/lib/duet/{p-4b873326.entry.js → p-21d4df80.entry.js} +1 -1
- package/lib/duet/{p-bd979a4c.system.entry.js → p-26ebc753.system.entry.js} +1 -1
- package/lib/duet/{p-03731409.entry.js → p-29193196.entry.js} +1 -1
- package/lib/duet/{p-1070b759.entry.js → p-2a80caf9.entry.js} +1 -1
- package/lib/duet/p-2a89686a.entry.js +4 -0
- package/lib/duet/{p-8ecb7a52.system.entry.js → p-2b0d6d66.system.entry.js} +1 -1
- package/lib/duet/{p-97408054.system.entry.js → p-2b4f4c85.system.entry.js} +1 -1
- package/lib/duet/{p-879d7357.entry.js → p-2b94fb6c.entry.js} +1 -1
- package/lib/duet/{p-9d0a8699.entry.js → p-2c0d4d3c.entry.js} +1 -1
- package/lib/duet/{p-cc46a1b1.entry.js → p-2e69c81b.entry.js} +1 -1
- package/lib/duet/{p-8a7c5d79.entry.js → p-2e822cf0.entry.js} +1 -1
- package/lib/duet/{p-de784087.entry.js → p-2faa3962.entry.js} +1 -1
- package/lib/duet/{p-010b0c7e.entry.js → p-2ff8c614.entry.js} +1 -1
- package/lib/duet/{p-9521f627.system.entry.js → p-38680e94.system.entry.js} +1 -1
- package/lib/duet/{p-a6054e33.system.entry.js → p-39c34fde.system.entry.js} +1 -1
- package/lib/duet/{p-52be0c45.entry.js → p-4136d211.entry.js} +1 -1
- package/lib/duet/{p-c1ecad44.entry.js → p-44bbf984.entry.js} +1 -1
- package/lib/duet/p-459b8e74.system.entry.js +4 -0
- package/lib/duet/{p-259bb597.entry.js → p-45a64d20.entry.js} +1 -1
- package/lib/duet/{p-a789758e.system.entry.js → p-47fb8005.system.entry.js} +1 -1
- package/lib/duet/{p-e10c2b0d.entry.js → p-48bab8b6.entry.js} +1 -1
- package/lib/duet/{p-7396f499.system.entry.js → p-4ab70001.system.entry.js} +1 -1
- package/lib/duet/{p-4c11dd19.system.entry.js → p-4b02643a.system.entry.js} +1 -1
- package/lib/duet/{p-02c7edd0.entry.js → p-5047ae3d.entry.js} +1 -1
- package/lib/duet/{p-515bef3b.entry.js → p-5127e9fb.entry.js} +1 -1
- package/lib/duet/{p-1495babe.entry.js → p-52766fb1.entry.js} +1 -1
- package/lib/duet/{p-99cbab16.system.entry.js → p-5576e447.system.entry.js} +1 -1
- package/lib/duet/{p-8498c856.entry.js → p-568c7b6d.entry.js} +1 -1
- package/lib/duet/{p-eb93ebaa.system.js → p-5743852f.system.js} +1 -1
- package/lib/duet/{p-f1674fe8.system.entry.js → p-58b9c7b4.system.entry.js} +1 -1
- package/lib/duet/{p-b52969e7.entry.js → p-58d08fb8.entry.js} +1 -1
- package/lib/duet/p-5c083efb.system.entry.js +4 -0
- package/lib/duet/{p-181c9320.entry.js → p-5f872140.entry.js} +1 -1
- package/lib/duet/{p-c6f1cac9.system.entry.js → p-6023d419.system.entry.js} +1 -1
- package/lib/duet/p-621e8af8.js +4 -0
- package/lib/duet/{p-8dfd54fa.system.entry.js → p-628c4fc7.system.entry.js} +1 -1
- package/lib/duet/{p-46493c73.system.entry.js → p-6326cade.system.entry.js} +1 -1
- package/lib/duet/{p-e4d9d7d7.entry.js → p-643dd974.entry.js} +1 -1
- package/lib/duet/{p-5eee6d48.system.entry.js → p-65b119a7.system.entry.js} +1 -1
- package/lib/duet/{p-5bad512d.entry.js → p-6fe463e6.entry.js} +1 -1
- package/lib/duet/{p-b599e988.system.entry.js → p-6fe5922d.system.entry.js} +1 -1
- package/lib/duet/{p-167c6afa.entry.js → p-702a9390.entry.js} +1 -1
- package/lib/duet/{p-d74f6c72.entry.js → p-72264693.entry.js} +1 -1
- package/lib/duet/p-723308e1.entry.js +4 -0
- package/lib/duet/{p-ae269abb.entry.js → p-72585f83.entry.js} +1 -1
- package/lib/duet/{p-d7a00344.system.entry.js → p-78f49cbf.system.entry.js} +1 -1
- package/lib/duet/{p-bf23e2c2.system.entry.js → p-7a5077a2.system.entry.js} +1 -1
- package/lib/duet/{p-5120cf45.entry.js → p-7a53ff56.entry.js} +1 -1
- package/lib/duet/{p-9e66ec5a.system.entry.js → p-7c32523b.system.entry.js} +1 -1
- package/lib/duet/p-7c4baf1c.js +4 -0
- package/lib/duet/{p-6cc35083.system.entry.js → p-7d4e2e96.system.entry.js} +1 -1
- package/lib/duet/{p-7d6351ee.system.js → p-7dc36831.system.js} +1 -1
- package/lib/duet/{p-d6bb4328.entry.js → p-7f2a16b3.entry.js} +1 -1
- package/lib/duet/{p-db66ad12.system.entry.js → p-7fd9b8b6.system.entry.js} +1 -1
- package/lib/duet/{p-7af63b73.entry.js → p-80bc3db3.entry.js} +1 -1
- package/lib/duet/{p-54739dc4.system.entry.js → p-835ea0dc.system.entry.js} +1 -1
- package/lib/duet/{p-92218406.system.entry.js → p-84eb3d96.system.entry.js} +1 -1
- package/lib/duet/{p-a373581e.entry.js → p-850b95d7.entry.js} +1 -1
- package/lib/duet/{p-99836c8b.system.entry.js → p-8760c0ee.system.entry.js} +1 -1
- package/lib/duet/{p-5e4e7d48.entry.js → p-893d0a53.entry.js} +1 -1
- package/lib/duet/{p-984dd5b8.system.entry.js → p-8a963cd7.system.entry.js} +1 -1
- package/lib/duet/{p-9730e382.system.entry.js → p-8b123c27.system.entry.js} +1 -1
- package/lib/duet/{p-c030c439.entry.js → p-8f0579d1.entry.js} +1 -1
- package/lib/duet/{p-660a6691.entry.js → p-8f60b4a4.entry.js} +1 -1
- package/lib/duet/{p-31510b9d.system.entry.js → p-93f3e158.system.entry.js} +1 -1
- package/lib/duet/{p-c4ff0d5e.system.entry.js → p-95f020cc.system.entry.js} +1 -1
- package/lib/duet/p-98c7286c.entry.js +4 -0
- package/lib/duet/{p-ec32e21b.system.entry.js → p-9aae9d2a.system.entry.js} +1 -1
- package/lib/duet/{p-2469ec0a.system.entry.js → p-9f5446d7.system.entry.js} +1 -1
- package/lib/duet/{p-68bb404f.entry.js → p-9f9a14d7.entry.js} +1 -1
- package/lib/duet/p-a3782a14.entry.js +4 -0
- package/lib/duet/{p-6a9c258b.system.entry.js → p-a5b5f3e2.system.entry.js} +1 -1
- package/lib/duet/{p-90bb0d6e.entry.js → p-a6a5458a.entry.js} +1 -1
- package/lib/duet/{p-39948f72.system.entry.js → p-a79f86b5.system.entry.js} +1 -1
- package/lib/duet/{p-997b2b9f.entry.js → p-aac361b8.entry.js} +1 -1
- package/lib/duet/{p-6d6dddf6.system.entry.js → p-acb0fbdc.system.entry.js} +1 -1
- package/lib/duet/{p-9db5ccda.system.entry.js → p-ad82c633.system.entry.js} +1 -1
- package/lib/duet/{p-24c6dbed.system.entry.js → p-addd277e.system.entry.js} +1 -1
- package/lib/duet/p-afb58e46.js +4 -0
- package/lib/duet/{p-34e1a893.system.entry.js → p-b16b89c3.system.entry.js} +1 -1
- package/lib/duet/{p-c54163d4.system.entry.js → p-b1b1160e.system.entry.js} +1 -1
- package/lib/duet/{p-bc886019.system.entry.js → p-b3584ef1.system.entry.js} +1 -1
- package/lib/duet/{p-92631252.system.entry.js → p-b421ea8a.system.entry.js} +1 -1
- package/lib/duet/{p-4f9a3272.entry.js → p-bc89db28.entry.js} +1 -1
- package/lib/duet/{p-c406feab.entry.js → p-be3c04fb.entry.js} +1 -1
- package/lib/duet/{p-2e81a884.system.entry.js → p-c073eb55.system.entry.js} +1 -1
- package/lib/duet/{p-16dbbf0f.entry.js → p-c0ac70a9.entry.js} +1 -1
- package/lib/duet/{p-49d4ca3a.system.entry.js → p-c22a97ea.system.entry.js} +1 -1
- package/lib/duet/p-c3495075.system.entry.js +4 -0
- package/lib/duet/{p-97929e49.system.js → p-c360334a.system.js} +1 -1
- package/lib/duet/{p-711d5c90.system.entry.js → p-c3e4e6a2.system.entry.js} +1 -1
- package/lib/duet/{p-5bf8daa8.system.entry.js → p-c4738155.system.entry.js} +1 -1
- package/lib/duet/{p-7deb19fe.system.entry.js → p-c518f7da.system.entry.js} +1 -1
- package/lib/duet/{p-83160849.system.entry.js → p-c7507f6b.system.entry.js} +1 -1
- package/lib/duet/{p-f78cbe1a.system.entry.js → p-c832c83e.system.entry.js} +1 -1
- package/lib/duet/{p-32b7661a.system.entry.js → p-c91aaa04.system.entry.js} +1 -1
- package/lib/duet/{p-19a46ccc.entry.js → p-cb2bd40e.entry.js} +1 -1
- package/lib/duet/{p-aa0e8c20.entry.js → p-cc7f7692.entry.js} +1 -1
- package/lib/duet/{p-aff3a01c.entry.js → p-ce108a20.entry.js} +1 -1
- package/lib/duet/{p-113f7afe.system.entry.js → p-d3da2989.system.entry.js} +1 -1
- package/lib/duet/{p-91088965.entry.js → p-d503fd3d.entry.js} +1 -1
- package/lib/duet/{p-8e9dde5b.system.entry.js → p-d5474f30.system.entry.js} +1 -1
- package/lib/duet/{p-4b75977e.entry.js → p-d563682c.entry.js} +1 -1
- package/lib/duet/{p-4d14e835.entry.js → p-d7c0027e.entry.js} +1 -1
- package/lib/duet/{p-77e2eba0.system.entry.js → p-d8d3f485.system.entry.js} +1 -1
- package/lib/duet/{p-88750631.entry.js → p-d8de0d06.entry.js} +1 -1
- package/lib/duet/{p-fddfa497.entry.js → p-daa0dccd.entry.js} +1 -1
- package/lib/duet/{p-2c647f93.entry.js → p-dc71bc89.entry.js} +1 -1
- package/lib/duet/{p-d576a779.entry.js → p-dcce6bad.entry.js} +1 -1
- package/lib/duet/{p-1b417a81.entry.js → p-de06c5ff.entry.js} +1 -1
- package/lib/duet/{p-2ca21c70.entry.js → p-e57b04f0.entry.js} +1 -1
- package/lib/duet/{p-0bb66e24.entry.js → p-e71cb6f4.entry.js} +1 -1
- package/lib/duet/{p-e1d767cf.system.entry.js → p-e73937e1.system.entry.js} +2 -2
- package/lib/duet/{p-494ddebc.system.entry.js → p-e8a6eda7.system.entry.js} +1 -1
- package/lib/duet/{p-61b41371.entry.js → p-e9cea31c.entry.js} +1 -1
- package/lib/duet/p-eb6c4a2a.system.js +4 -0
- package/lib/duet/{p-be140833.system.entry.js → p-ef31120e.system.entry.js} +1 -1
- package/lib/duet/{p-fc063fa8.entry.js → p-f173da98.entry.js} +1 -1
- package/lib/duet/p-f67ee736.system.js +4 -0
- package/lib/duet/{p-775d5c50.entry.js → p-f7ff8b67.entry.js} +1 -1
- package/lib/duet/p-f9c26b20.system.entry.js +4 -0
- package/lib/duet/{p-d9534bab.entry.js → p-fa7a4245.entry.js} +1 -1
- package/lib/duet/{p-e44c2634.entry.js → p-faaa6249.entry.js} +1 -1
- package/lib/duet/{p-446287e7.system.entry.js → p-fad8bcee.system.entry.js} +1 -1
- package/lib/duet/{p-3adeafd9.system.entry.js → p-fc8b03f3.system.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-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-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-choice_2.entry.js +2 -2
- package/lib/esm/duet-collapsible.entry.js +1 -1
- package/lib/esm/duet-combobox.entry.js +1 -1
- package/lib/esm/duet-contact-card.entry.js +1 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +3 -3
- package/lib/esm/duet-editable-table_3.entry.js +95 -125
- package/lib/esm/duet-empty-state.entry.js +1 -1
- package/lib/esm/duet-fieldset.entry.js +1 -1
- package/lib/esm/duet-footer.entry.js +1 -1
- package/lib/esm/duet-grid_2.entry.js +11 -3
- package/lib/esm/duet-header_2.entry.js +6 -6
- package/lib/esm/duet-hero.entry.js +3 -3
- 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 +2 -2
- 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 +33 -9
- package/lib/esm/duet-progress.entry.js +1 -1
- 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-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 +3 -3
- 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.entry.js +1 -1
- package/lib/esm/duet-tray.entry.js +2 -2
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +3 -3
- package/lib/esm/{focus-utils-3d6defe8.js → focus-utils-123e9cba.js} +1 -1
- package/lib/esm/{index-56a17140.js → index-9d169c3d.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm/{token-utils-b531747a.js → token-utils-6e0e2653.js} +4 -2
- package/lib/esm/{tokens.module-d3321092.js → tokens.module-5601adc9.js} +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +1 -1
- package/lib/esm-es5/duet-contact-card.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +2 -2
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
- package/lib/esm-es5/duet-section-layout.entry.js +1 -1
- package/lib/esm-es5/duet-select.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
- package/lib/esm-es5/duet-slideout.entry.js +1 -1
- package/lib/esm-es5/duet-step_2.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +2 -2
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +1 -1
- package/lib/esm-es5/duet-tray.entry.js +1 -1
- package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/{focus-utils-3d6defe8.js → focus-utils-123e9cba.js} +1 -1
- package/lib/esm-es5/{index-56a17140.js → index-9d169c3d.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{token-utils-b531747a.js → token-utils-6e0e2653.js} +1 -1
- package/lib/esm-es5/{tokens.module-d3321092.js → tokens.module-5601adc9.js} +1 -1
- package/lib/types/common-types.d.ts +3 -0
- package/lib/types/components/duet-grid-item/duet-grid-item.d.ts +7 -1
- package/lib/types/components/duet-range-stepper/duet-range-stepper.d.ts +2 -0
- package/lib/types/components/duet-upload/duet-upload.d.ts +21 -4
- package/lib/types/components/duet-upload/upload-item-header.d.ts +8 -0
- package/lib/types/components/duet-upload/upload-item.d.ts +10 -1
- package/lib/types/components.d.ts +27 -0
- package/lib/types/utils/token-utils.d.ts +2 -0
- package/package.json +5 -5
- package/lib/dist-custom-elements/p-6c7f6492.js +0 -243
- package/lib/duet/p-05226ce1.entry.js +0 -4
- package/lib/duet/p-13b52e54.system.entry.js +0 -4
- package/lib/duet/p-17063917.system.js +0 -4
- package/lib/duet/p-2abc31ff.system.entry.js +0 -4
- package/lib/duet/p-380c1b6d.entry.js +0 -4
- package/lib/duet/p-3ce879c8.system.entry.js +0 -4
- package/lib/duet/p-48bd2e8f.js +0 -4
- package/lib/duet/p-5d46f619.system.js +0 -4
- package/lib/duet/p-71dd05bf.entry.js +0 -4
- package/lib/duet/p-79a9746e.js +0 -4
- package/lib/duet/p-7c860a8b.entry.js +0 -4
- package/lib/duet/p-9052b6f5.js +0 -4
- package/lib/duet/p-b2ee0816.system.entry.js +0 -4
- package/lib/duet/p-dbae4b4f.entry.js +0 -4
- package/lib/duet/p-e72eb774.system.entry.js +0 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
|
|
7
7
|
const duetBadgeCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:inline-block;width:auto;vertical-align:middle}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-badge{width:100%;padding:4.4444444444px 12px 5.4444444444px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.75rem;font-style:normal;font-weight:600;line-height:1.25;color:rgb(0, 41, 77);text-align:center;word-break:break-word;vertical-align:middle;background:#e6f1f7;border-radius:20rem}.duet-badge.duet-p-0{padding:0 !important}.duet-badge.duet-m-0{margin:0 !important}.duet-badge.duet-theme-turva{padding:5.4444444444px 12px 4.4444444444px;font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-weight:700;color:rgb(23, 28, 58);background:#e8e8eb}.duet-badge.warning{background:#fef3df}.duet-badge.warning.duet-theme-turva{background:#fef1db}.duet-badge.danger{background:#fce9ef}.duet-badge.danger.duet-theme-turva{background:#fceae7}.duet-badge.success{background:#e6f3ef}.duet-badge.success.duet-theme-turva{background:#e6f3ed}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
|
|
7
7
|
const duetBreadcrumbCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-breadcrumb{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;height:100%;font-size:0.875rem;font-weight:inherit;color:rgb(0, 41, 77);text-decoration:none}.duet-breadcrumb:hover{color:rgb(0, 77, 128)}.duet-breadcrumb.duet-theme-turva{color:rgb(23, 28, 58)}.duet-breadcrumb.duet-theme-turva:hover{color:rgb(148, 9, 37)}.duet-breadcrumb:focus{outline:0}.duet-breadcrumb:active{opacity:0.75}:host(.user-is-tabbing) .duet-breadcrumb:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing) .duet-breadcrumb.duet-theme-turva:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-breadcrumb.duet-breadcrumb-without-href:hover{color:rgb(0, 41, 77)}.duet-breadcrumb.duet-breadcrumb-without-href.duet-theme-turva:hover{color:rgb(23, 28, 58)}.duet-breadcrumb.duet-breadcrumb-without-href:active{opacity:1}";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, F as Fragment, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, F as Fragment, H as Host, g as getElement } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { a as getLocaleString } from './language-utils-6be16ff0.js';
|
|
7
7
|
import './string-utils-5954f458.js';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
|
|
7
7
|
import { g as getLanguage, a as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-6be16ff0.js';
|
|
8
|
-
import { g as getColorByName } from './token-utils-
|
|
8
|
+
import { g as getColorByName } from './token-utils-6e0e2653.js';
|
|
9
9
|
import './string-utils-5954f458.js';
|
|
10
|
-
import './tokens.module-
|
|
10
|
+
import './tokens.module-5601adc9.js';
|
|
11
11
|
|
|
12
12
|
const duetButtonCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:8px !important;margin-bottom:12px !important;position:relative;z-index:1;display:inline-flex;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}:host:last-child,:host:last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host{width:100%}}:host(.input-button){z-index:250}:host(.duet-small){margin-right:2px !important;margin-bottom:8px !important}:host(.duet-small):last-child,:host(.duet-small):last-of-type{margin-right:0 !important}@media (max-width: 35.9375em){:host(.duet-small){width:auto}}:host(.duet-expand){width:100% !important}:host(.duet-m-0){margin:0 !important}:host(.duet-fixed){width:auto !important}:host(:last-child){margin-right:0 !important}.duet-button-container{position:relative;width:100%}.duet-button{padding:14px 27px 15px !important;-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;min-width:8rem;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:600;-webkit-hyphens:auto;hyphens:auto;line-height:1.1;color:rgb(0, 119, 179) !important;text-align:center;text-decoration:none;cursor:pointer;background:transparent;border-style:solid;border-width:2px;border-radius:20rem;transition:background-color 300ms ease, color 300ms ease, border 300ms ease, box-shadow 300ms ease}.duet-button.duet-p-0{padding:0 !important}.duet-button.duet-m-0{margin:0 !important}.duet-button:not(.input-button-primary,.input-button-secondary,.input-button-embedded){font-variant-numeric:tabular-nums}.duet-button.duet-button-text-center{text-align:center !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only){padding:9px 19px 10px !important;min-width:5.3333333333rem;font-size:0.875rem}.duet-button.duet-button-is-small:not(.duet-button-icon-only).icon{padding-left:48px !important}.duet-button.duet-button-is-small:not(.duet-button-icon-only).icon-right{padding-right:48px !important;padding-left:20px !important}.duet-theme-turva .duet-button{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(198, 12, 48) !important}.duet-button .duet-button-contents{position:relative;display:inline-block;margin:0 auto;pointer-events:none}.duet-button.duet-no-wrap{white-space:nowrap}.duet-button.icon{padding-left:52px !important}.duet-button.icon-right{padding-right:52px !important;padding-left:28px !important}.duet-button svg{width:100%;min-width:100%;fill:currentColor}.duet-button .duet-button-icon{position:absolute;top:50%;left:-28px;display:flex;align-items:center;justify-content:center;width:16px;height:16px;margin:0 !important;transform:translateY(-50%)}.duet-button .duet-button-icon duet-icon{width:16px;height:16px}.duet-button .duet-button-icon.right{right:-28px;left:auto}.duet-button .duet-button-icon.large{left:-32px;width:20px;height:20px}.duet-button .duet-button-icon.large duet-icon{width:20px;height:20px}.duet-button .duet-button-icon.large.right{right:-32px;left:auto}.duet-button .duet-button-icon.medium-small{left:-16px;width:10px;height:10px;padding-top:1px}.duet-button .duet-button-icon.medium-small duet-icon{width:10px;height:10px}.duet-button .duet-button-icon.medium-small.right{right:-16px;left:auto}.duet-button .duet-button-icon.small{left:-16px;width:7px;height:7px}.duet-button .duet-button-icon.small duet-icon{width:7px;height:7px}.duet-button .duet-button-icon.small.right{right:-16px;left:auto}.duet-button:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-theme-turva .duet-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-button:active:not([disabled]){opacity:0.75;transition:none}.duet-button.default{border-color:rgb(225, 227, 230)}.duet-theme-turva .duet-button.default{color:rgb(198, 12, 48) !important;border-color:rgb(228, 228, 230)}.duet-button.default:hover{border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.default:hover{border-color:rgb(198, 12, 48)}.duet-button.default.duet-button-negative{background-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.default.duet-button-negative{background-color:rgb(228, 228, 230) !important}.duet-button.default.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.default.duet-button-negative:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.primary,.duet-button.input-button-primary{color:rgb(255, 255, 255) !important;background:rgb(0, 119, 179);border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.primary,.duet-theme-turva .duet-button.input-button-primary{color:rgb(255, 255, 255) !important;background:rgb(198, 12, 48);border-color:rgb(198, 12, 48)}.duet-button.primary:hover,.duet-button.input-button-primary:hover{background:#005f8f;border-color:#005f8f;box-shadow:0 4px 20px rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.primary:hover,.duet-theme-turva .duet-button.input-button-primary:hover{background:rgb(148, 9, 37);border-color:rgb(148, 9, 37)}.duet-button.primary:focus,.duet-button.input-button-primary:focus{outline:0;box-shadow:0 0 0 1px rgb(255, 255, 255), 0 0 0 4px rgba(0, 119, 179, 0.75)}.duet-theme-turva .duet-button.primary:focus,.duet-theme-turva .duet-button.input-button-primary:focus{box-shadow:0 0 0 1px rgb(255, 255, 255), 0 0 0 4px rgba(23, 28, 58, 0.7)}.duet-button.secondary,.duet-button.input-button-secondary,.duet-button.input-button-embedded{color:rgb(0, 41, 77) !important;background:transparent;border-color:rgb(0, 41, 77)}.duet-theme-turva .duet-button.secondary,.duet-theme-turva .duet-button.input-button-secondary,.duet-theme-turva .duet-button.input-button-embedded{color:rgb(23, 28, 58) !important;border-color:rgb(23, 28, 58)}.duet-button.secondary:hover,.duet-button.input-button-secondary:hover,.duet-button.input-button-embedded:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.secondary:hover,.duet-theme-turva .duet-button.input-button-secondary:hover,.duet-theme-turva .duet-button.input-button-embedded:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.secondary.duet-button-negative,.duet-button.input-button-secondary.duet-button-negative,.duet-button.input-button-embedded.duet-button-negative{color:rgb(225, 227, 230) !important;border-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative{color:rgb(228, 228, 230) !important}.duet-button.secondary.duet-button-negative:hover,.duet-button.input-button-secondary.duet-button-negative:hover,.duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(0, 119, 179) !important;border-color:rgb(0, 119, 179)}.duet-theme-turva .duet-button.secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-secondary.duet-button-negative:hover,.duet-theme-turva .duet-button.input-button-embedded.duet-button-negative:hover{color:rgb(198, 12, 48) !important;border-color:rgb(198, 12, 48)}.duet-button.input-button-embedded{width:40px;min-width:40px !important;min-height:40px !important;margin:4px !important;border-width:0 !important;border-radius:4px !important}.duet-button.negative{color:rgb(0, 41, 77) !important;background:rgb(255, 255, 255);border-color:rgb(255, 255, 255)}.duet-theme-turva .duet-button.negative{color:rgb(23, 28, 58) !important}.duet-button.negative:hover{color:rgb(255, 255, 255) !important;background:transparent;border-color:rgb(255, 255, 255)}.duet-button.negative:focus{outline:0;box-shadow:0 0 0 1px rgb(0, 41, 77), 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-theme-turva .duet-button.negative:focus{box-shadow:0 0 0 1px rgb(23, 28, 58), 0 0 0 4px rgba(255, 255, 255, 0.7)}.duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(222, 35, 98);border-color:rgb(222, 35, 98)}.duet-theme-turva .duet-button.destructive-primary{color:rgb(255, 255, 255) !important;background:rgb(224, 42, 13);border-color:rgb(224, 42, 13)}.duet-button.destructive-primary:hover{background:#b21c4e;border-color:#b21c4e;box-shadow:0 4px 20px rgba(34, 34, 34, 0.1)}.duet-theme-turva .duet-button.destructive-primary:hover{background:#b3220a}.duet-button.destructive,.duet-button.destructive-secondary{color:rgb(222, 35, 98) !important;background:rgb(255, 255, 255);border-color:rgb(222, 35, 98)}.duet-theme-turva .duet-button.destructive,.duet-theme-turva .duet-button.destructive-secondary{color:rgb(224, 42, 13) !important;background:rgb(255, 255, 255);border-color:rgb(224, 42, 13)}.duet-button.destructive:hover,.duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#b21c4e;border-color:#b21c4e}.duet-theme-turva .duet-button.destructive:hover,.duet-theme-turva .duet-button.destructive-secondary:hover{color:rgb(255, 255, 255) !important;background:#b3220a;border-color:#b3220a}.duet-button.plain{min-width:48px;padding-right:0 !important;padding-left:0 !important;line-height:1.5;text-align:left;background:transparent;border:0;border-color:transparent;border-radius:4px}.duet-theme-turva .duet-button.plain{color:rgb(198, 12, 48) !important;background:transparent;border-color:transparent}.duet-button.plain.icon{padding-left:20px !important}.duet-button.plain.icon.icon-right{padding-right:20px !important;padding-left:0 !important}.duet-button.plain.icon.medium{padding-left:24px !important}.duet-button.plain.icon.medium.icon-right{padding-right:24px !important;padding-left:0 !important}.duet-button.plain.icon.large{padding-left:30px !important}.duet-button.plain.icon.large.icon-right{padding-right:30px !important;padding-left:0 !important}.duet-button.plain .duet-button-icon.left{left:-16.6666666667px !important}.duet-button.plain .duet-button-icon.left.medium{left:-24px !important}.duet-button.plain .duet-button-icon.left.large{left:-30px !important}.duet-button.plain .duet-button-icon.right{right:-16.6666666667px !important}.duet-button.plain .duet-button-icon.right.medium{right:-24px !important}.duet-button.plain .duet-button-icon.right.large{right:-30px !important}.duet-button.plain[disabled]{color:rgb(101, 119, 135) !important;cursor:not-allowed;background:transparent !important;border-color:transparent !important}.duet-theme-turva .duet-button.plain[disabled]{color:transparent !important;cursor:not-allowed;background:transparent !important;border-color:rgb(228, 228, 230) !important}.duet-button.plain:hover{color:rgb(0, 77, 128) !important;background:transparent !important}.duet-theme-turva .duet-button.plain:hover{color:rgb(148, 9, 37) !important}.duet-button.plain.duet-button-negative{color:rgb(255, 255, 255) !important}.duet-theme-turva .duet-button.plain.duet-button-negative{color:rgb(228, 228, 230) !important}.duet-button.plain.duet-button-negative:hover{color:rgb(0, 119, 179) !important}.duet-theme-turva .duet-button.plain.duet-button-negative:hover{color:rgb(198, 12, 48) !important}.duet-button.duet-button-icon-only{min-width:48px;min-height:48px;padding:0 !important}.duet-button.duet-button-icon-only .duet-button-contents{position:static}.duet-button.duet-button-icon-only .duet-button-icon.left.large,.duet-button.duet-button-icon-only .duet-button-icon.left.medium,.duet-button.duet-button-icon-only .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-primary,.duet-button.duet-button.input-button-secondary,.duet-button.duet-button.input-button-embedded{box-sizing:content-box;min-width:48px;min-height:48px;padding:0 !important;border-width:1px;border-top-left-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px;border-bottom-left-radius:0}.duet-button.duet-button.input-button-primary .duet-button-contents,.duet-button.duet-button.input-button-secondary .duet-button-contents,.duet-button.duet-button.input-button-embedded .duet-button-contents{position:static}.duet-button.duet-button.input-button-primary .duet-button-icon.left.large,.duet-button.duet-button.input-button-primary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-primary .duet-button-icon.left.small,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.large,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.medium,.duet-button.duet-button.input-button-secondary .duet-button-icon.left.small,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.large,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.medium,.duet-button.duet-button.input-button-embedded .duet-button-icon.left.small{position:absolute;top:50% !important;left:50% !important;padding:0;margin:0;transform:translateX(-50%) translateY(-50%)}.duet-button.duet-button.input-button-embedded{border-left-width:0}.duet-button[disabled],.duet-button[disabled]:hover,.duet-button.duet-button-negative[disabled],.duet-button.duet-button-negative[disabled]:hover{color:rgb(101, 119, 135) !important;cursor:not-allowed;background:rgb(225, 227, 230) !important;border-color:rgb(225, 227, 230) !important;box-shadow:none !important}.duet-theme-turva .duet-button[disabled],.duet-theme-turva .duet-button[disabled]:hover,.duet-theme-turva .duet-button.duet-button-negative [disabled],.duet-theme-turva .duet-button.duet-button-negative [disabled]:hover{color:rgb(116, 116, 117) !important;cursor:not-allowed;background:rgb(228, 228, 230) !important;border-color:rgb(228, 228, 230) !important}.duet-button-is-loading.primary,.duet-button-is-loading.input-button-primary{color:rgb(255, 255, 255)}.duet-button-is-loading.default{color:rgb(0, 119, 179)}.duet-button-is-loading.default.duet-theme-turva{color:rgb(198, 12, 48)}.duet-button-is-loading .duet-button-contents{visibility:hidden;opacity:0}";
|
|
13
13
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement, F as Fragment } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement, F as Fragment } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { s as sanitizeString } from './string-utils-5954f458.js';
|
|
7
|
-
import { g as getColorByName } from './token-utils-
|
|
7
|
+
import { g as getColorByName } from './token-utils-6e0e2653.js';
|
|
8
8
|
import { a as actionArrowRight } from './action-arrow-right-f7d56681.js';
|
|
9
9
|
import { a as actionNewWindowSmall } from './action-new-window-small-1945be91.js';
|
|
10
10
|
import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
|
|
11
11
|
import { g as getLanguage, a as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-6be16ff0.js';
|
|
12
|
-
import './tokens.module-
|
|
12
|
+
import './tokens.module-5601adc9.js';
|
|
13
13
|
|
|
14
14
|
const duetCaptionCss = ":host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;display:flex;flex:0 0 100%;width:100%;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(101, 119, 135);vertical-align:top}:host.duet-p-0{padding:0 !important}:host.duet-m-0{margin:0 !important}:host(.duet-caption-small){font-size:0.875rem;line-height:1.25}:host(.duet-theme-turva){font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(116, 116, 117)}:host(.duet-caption-selected){color:rgb(0, 119, 179)}:host(.duet-caption-selected.duet-theme-turva){color:rgb(23, 28, 58)}:host(.duet-m-0){margin:0 !important}";
|
|
15
15
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, g as getElement } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
import { i as isKeyboardClick } from './keyboard-utils-d237bd5a.js';
|
|
8
8
|
import { s as sanitizeString } from './string-utils-5954f458.js';
|
|
9
|
-
import { g as getColorByName } from './token-utils-
|
|
10
|
-
import './tokens.module-
|
|
9
|
+
import { g as getColorByName } from './token-utils-6e0e2653.js';
|
|
10
|
+
import './tokens.module-5601adc9.js';
|
|
11
11
|
|
|
12
12
|
const duetHeadingLevels = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
13
13
|
const duetBlock = "div";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
|
|
7
7
|
const duetCheckmarkCss = ".duet-checkmark-container{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(144, 149, 153);border-radius:4px;transition:border 300ms ease}.duet-checkmark-container.center{margin-right:auto}.duet-theme-turva .duet-checkmark-container{border-color:rgb(116, 116, 117)}.checked .duet-checkmark-container{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva .checked .duet-checkmark-container{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio{border-radius:50%}[disabled]+label .duet-checkmark-container{border-color:rgb(207, 210, 212) !important}.duet-theme-turva [disabled]+label .duet-checkmark-container{border-color:rgb(207, 207, 209) !important}.checked [disabled]+label .duet-checkmark-container{background:rgb(207, 210, 212) !important}.duet-theme-turva .checked [disabled]+label .duet-checkmark-container{background:rgb(207, 207, 209) !important}.duet-checkmark{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid rgb(255, 255, 255);border-right:2px solid rgb(255, 255, 255);opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
|
|
7
7
|
import { c as createID } from './create-id-981107da.js';
|
|
8
|
-
import { F as FocusGuard } from './focus-utils-
|
|
8
|
+
import { F as FocusGuard } from './focus-utils-123e9cba.js';
|
|
9
9
|
import { i as isKeyboardClick, h as isQuestionKey, f as isEscapeKey } from './keyboard-utils-d237bd5a.js';
|
|
10
10
|
import { g as getLanguage, a as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-6be16ff0.js';
|
|
11
11
|
import { f as findCheckedOption, w as watchForOptions } from './watch-options-dd55bce8.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9d169c3d.js';
|
|
5
5
|
import { a as actionArrowDownSmall } from './action-arrow-down-small-82273dc8.js';
|
|
6
6
|
import { f as font_size_medium, t as tokens } from './tokens-0963dc8b.js';
|
|
7
7
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
4
|
+
import { h, F as Fragment, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { d as debounce } from './js-utils-fa98b8cd.js';
|
|
7
7
|
import { j as isEnterKey, f as isEscapeKey, o as isTabKey, b as isArrowUpKey, c as isArrowDownKey } from './keyboard-utils-d237bd5a.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { g as getLanguage, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-6be16ff0.js';
|
|
7
7
|
import './string-utils-5954f458.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
|
|
7
7
|
const duetCookieConsentCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;position:fixed;right:0;bottom:0;left:0;z-index:950;display:block;width:100%;box-shadow:0 2px 20px 0 rgba(0, 0, 0, 0.2)}@media (min-width: 48em){:host{right:28px;bottom:28px;left:auto;width:25rem}}:host(:focus){outline:0}:host(.user-is-tabbing:focus){border-radius:4px;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}:host(.user-is-tabbing.duet-theme-turva:focus){box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-cookie-consent{padding:20px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:0.875rem;color:rgb(255, 255, 255) !important;background-color:rgba(0, 21, 39, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent{background:rgba(0, 21, 39, 0.8);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}}.duet-cookie-consent.duet-theme-turva{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";background-color:rgba(12, 14, 29, 0.9)}@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none){.duet-cookie-consent.duet-theme-turva{background:rgba(12, 14, 29, 0.8)}}@media (min-width: 48em){.duet-cookie-consent{padding:20px;border-radius:4px}}.duet-cookie-consent-content{display:flex;align-items:center;max-width:1110px;margin:0 auto}.duet-cookie-consent-content .expand{flex:1}::slotted(a){font-weight:600;color:rgb(255, 255, 255) !important;text-decoration:underline;white-space:nowrap}::slotted(a[target=_blank]){padding-right:16px;background:url(\"data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjZmZmIiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEwLjUgMmExLjUgMS41IDAgMDEuMTQgM0gzLjc1Yy0uMzggMC0uNy4yOC0uNzQuNjVsLS4wMS4xdjE0LjVjMCAuMzguMjguNy42NS43NGwuMS4wMWgxNC41Yy4zOCAwIC43LS4yOC43NC0uNjVsLjAxLS4xdi02Ljg5YTEuNSAxLjUgMCAwMTMgMHY2Ljg5QTMuNzUgMy43NSAwIDAxMTguMjUgMjRIMy43NUEzLjc1IDMuNzUgMCAwMTAgMjAuMjVWNS43NUEzLjc1IDMuNzUgMCAwMTMuNzUgMnptMTItMmMuNzggMCAxLjQyLjYgMS41IDEuMzZWNy41YTEuNSAxLjUgMCAwMS0zIC4xNFY1LjEybC01LjQ0IDUuNDRhMS41IDEuNSAwIDAxLTIuMjItMmwuMS0uMTJMMTguODggM0gxNi41QTEuNSAxLjUgMCAwMTE1IDEuNjRWMS41YzAtLjc4LjYtMS40MiAxLjM2LTEuNWguMTR6Ii8+PC9zdmc+\") no-repeat right 50%;background-size:12px 10px}::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-theme-turva ::slotted(a:focus){outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
4
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { c as createID } from './create-id-981107da.js';
|
|
7
|
-
import { F as FocusGuard } from './focus-utils-
|
|
7
|
+
import { F as FocusGuard } from './focus-utils-123e9cba.js';
|
|
8
8
|
import { g as getLanguage, a as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-6be16ff0.js';
|
|
9
9
|
import './string-utils-5954f458.js';
|
|
10
10
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, g as getElement, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, g as getElement, H as Host } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
|
-
import { g as getColorByName } from './token-utils-
|
|
7
|
-
import './tokens.module-
|
|
6
|
+
import { g as getColorByName } from './token-utils-6e0e2653.js';
|
|
7
|
+
import './tokens.module-5601adc9.js';
|
|
8
8
|
|
|
9
9
|
const duetDividerCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-divider{-webkit-user-select:none;user-select:none;display:block;width:100%;height:1px;margin-top:36px !important;margin-bottom:28px;background:rgb(225, 227, 230)}.duet-divider.duet-p-0{padding:0 !important}.duet-divider.duet-m-0{margin:0 !important}.duet-divider.duet-m-s{margin-bottom:16px !important;margin-top:0 !important}.duet-divider.duet-theme-turva{background:rgb(228, 228, 230)}";
|
|
10
10
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement } from './index-
|
|
4
|
+
import { h, r as registerInstance, c as createEvent, H as Host, g as getElement, F as Fragment } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { f as fieldSorter, d as debounce } from './js-utils-fa98b8cd.js';
|
|
7
7
|
import { i as isKeyboardClick } from './keyboard-utils-d237bd5a.js';
|
|
8
8
|
import { a as getLocaleString, s as sanitizeString } from './language-utils-6be16ff0.js';
|
|
9
|
-
import {
|
|
10
|
-
import { b as breakpointToToken } from './token-utils-
|
|
9
|
+
import { p as sizeNavigation, s as sizeHeader } from './tokens.module-5601adc9.js';
|
|
10
|
+
import { b as breakpointTokensUpTo, a as breakpointToToken } from './token-utils-6e0e2653.js';
|
|
11
11
|
import { c as createID } from './create-id-981107da.js';
|
|
12
12
|
import { p as parsePossibleJSON } from './string-utils-5954f458.js';
|
|
13
13
|
|
|
@@ -191,7 +191,7 @@ const DuetTable = class {
|
|
|
191
191
|
registerInstance(this, hostRef);
|
|
192
192
|
this.headingSelector = "thead tr > :not(*.duet-editable-table-actions-menu)";
|
|
193
193
|
this.handleMediaQueryChange = (mq) => {
|
|
194
|
-
this.matchesBreakpoint = mq.matches;
|
|
194
|
+
this.matchesBreakpoint = breakpointTokensUpTo.includes(this.breakpoint) ? !mq.matches : mq.matches;
|
|
195
195
|
};
|
|
196
196
|
this.matchesBreakpoint = true;
|
|
197
197
|
this.theme = undefined;
|
|
@@ -427,31 +427,6 @@ const getI18nError = (errorCode, errorCodes) => {
|
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
|
|
430
|
-
const ErrorItem = ({ data, errorCodes }) => {
|
|
431
|
-
const { item, error } = data;
|
|
432
|
-
const { name } = item;
|
|
433
|
-
const { type } = error;
|
|
434
|
-
return (h("span", { class: "duet-upload-item-error", role: "status" },
|
|
435
|
-
h("duet-paragraph", { class: "duet-upload-item-name", color: "danger", margin: "none", weight: "semi-bold" },
|
|
436
|
-
h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
437
|
-
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
438
|
-
name),
|
|
439
|
-
h("duet-paragraph", { class: "duet-upload-item-error-label", size: "small", margin: "none", color: "danger" }, getI18nError(type, errorCodes))));
|
|
440
|
-
};
|
|
441
|
-
|
|
442
|
-
const ProgressItem = ({ progress, name }) => (h("span", { class: "duet-upload-item-name" },
|
|
443
|
-
h("duet-paragraph", { class: "duet-upload-item-name", color: "gray-darker", margin: "none", weight: "semi-bold" },
|
|
444
|
-
h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
445
|
-
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
446
|
-
name),
|
|
447
|
-
h("br", null),
|
|
448
|
-
h("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
|
|
449
|
-
|
|
450
|
-
const PendingItem = ({ name }) => (h("span", { class: "duet-upload-item-name" },
|
|
451
|
-
h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
452
|
-
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
453
|
-
name));
|
|
454
|
-
|
|
455
430
|
const formatBytes = (bytes, decimals = 2) => {
|
|
456
431
|
if (bytes === 0) {
|
|
457
432
|
return "0 Bytes";
|
|
@@ -463,9 +438,41 @@ const formatBytes = (bytes, decimals = 2) => {
|
|
|
463
438
|
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
|
|
464
439
|
};
|
|
465
440
|
|
|
466
|
-
const
|
|
467
|
-
const { item, size, uploaded, url } = data;
|
|
441
|
+
const UploadItem = ({ data, showLinks, type, actions, errorCodes, theme, label, categoryLabel, showCategory, }) => {
|
|
442
|
+
const { uid, item, size, uploaded, url, meta, progress, error } = data;
|
|
468
443
|
const { name } = item;
|
|
444
|
+
const getFileNameLine = () => {
|
|
445
|
+
switch (type) {
|
|
446
|
+
case "inprogress":
|
|
447
|
+
return (h("span", { class: "duet-upload-item-name" },
|
|
448
|
+
h("duet-paragraph", { class: "duet-upload-item-name", color: "gray-darker", margin: "none", weight: "semi-bold" },
|
|
449
|
+
h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
450
|
+
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
451
|
+
name),
|
|
452
|
+
h("br", null),
|
|
453
|
+
h("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
|
|
454
|
+
case "pending":
|
|
455
|
+
return (h("span", { class: "duet-upload-item-name" },
|
|
456
|
+
h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
457
|
+
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
458
|
+
name));
|
|
459
|
+
case "failure":
|
|
460
|
+
return (h("span", { class: "duet-upload-item-error", role: "status" },
|
|
461
|
+
h("duet-paragraph", { class: "duet-upload-item-name", color: "danger", margin: "none", weight: "semi-bold" },
|
|
462
|
+
h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
463
|
+
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
464
|
+
name),
|
|
465
|
+
h("duet-paragraph", { class: "duet-upload-item-error-label", size: "small", margin: "none", color: "danger" }, getI18nError(error.type, errorCodes))));
|
|
466
|
+
default:
|
|
467
|
+
return uploaded && url && showLinks ? (h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" },
|
|
468
|
+
h("duet-link", { url: url, external: true }, ContentName),
|
|
469
|
+
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
470
|
+
SizeText)) : (h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" },
|
|
471
|
+
ContentName,
|
|
472
|
+
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
473
|
+
SizeText));
|
|
474
|
+
}
|
|
475
|
+
};
|
|
469
476
|
const ContentName = (h("span", { class: "duet-upload-item-name" },
|
|
470
477
|
h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
471
478
|
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
@@ -474,31 +481,28 @@ const SuccessItem = ({ data, showLinks }) => {
|
|
|
474
481
|
"(",
|
|
475
482
|
formatBytes(size),
|
|
476
483
|
")"));
|
|
477
|
-
const FilenameLine = uploaded && url && showLinks ? (h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" },
|
|
478
|
-
h("duet-link", { url: url, external: true }, ContentName),
|
|
479
|
-
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
480
|
-
SizeText)) : (h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" },
|
|
481
|
-
ContentName,
|
|
482
|
-
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
483
|
-
SizeText));
|
|
484
|
-
// const Badges =
|
|
485
|
-
// meta && meta.badges ? (
|
|
486
|
-
// <span>
|
|
487
|
-
// <duet-spacer size="xx-small"></duet-spacer>
|
|
488
|
-
// {meta.badges.map(badgeText => (
|
|
489
|
-
// <duet-badge color="primary">{badgeText}</duet-badge>
|
|
490
|
-
// ))}
|
|
491
|
-
// </span>
|
|
492
|
-
// ) : undefined
|
|
493
|
-
return (h("span", { class: "duet-upload-item-success" },
|
|
494
|
-
h("div", null, FilenameLine)));
|
|
495
|
-
};
|
|
496
|
-
|
|
497
|
-
const UploadCategory = ({ meta }) => {
|
|
498
484
|
const Badges = meta && meta.badges ? (h("span", null,
|
|
499
485
|
h("duet-spacer", { size: "xx-small" }),
|
|
500
|
-
meta.badges.map(badgeText => (h("duet-badge", { color: "primary" }, badgeText))))) :
|
|
501
|
-
|
|
486
|
+
meta.badges.map(badgeText => (h("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
487
|
+
const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${name}`;
|
|
488
|
+
return (h("div", { class: {
|
|
489
|
+
"upload-item-row": true,
|
|
490
|
+
} },
|
|
491
|
+
showCategory && (h("div", { class: "item-categories" },
|
|
492
|
+
h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(categoryLabel)),
|
|
493
|
+
Badges)),
|
|
494
|
+
h("div", { class: { "item-label": true, "no-category": !showCategory } },
|
|
495
|
+
!!label && (h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(label))),
|
|
496
|
+
getFileNameLine()),
|
|
497
|
+
h("div", { class: "item-actions" }, actions.map(actionItem => {
|
|
498
|
+
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)} ` }));
|
|
499
|
+
}))));
|
|
500
|
+
};
|
|
501
|
+
|
|
502
|
+
const UploadItemHeader = ({ label, categoryLabel }) => {
|
|
503
|
+
return (h("div", { class: "items-header" },
|
|
504
|
+
categoryLabel && (h("duet-heading", { class: "category-header", border: "solid", color: "gray-darker", level: "h3", "visual-level": "h6", weight: "semibold" }, getLocaleString(categoryLabel))),
|
|
505
|
+
h("duet-heading", { class: { "filename-header": true, "no-category": !categoryLabel }, border: "solid", color: "gray-darker", level: "h3", "visual-level": "h6", weight: "semibold" }, getLocaleString(label))));
|
|
502
506
|
};
|
|
503
507
|
|
|
504
508
|
const validateFileExtension = (name, allowedExtensions) => {
|
|
@@ -624,7 +628,7 @@ const makeXhrRequest = ({ payload, options, onFailure, onSuccess, onProgress })
|
|
|
624
628
|
return xhr;
|
|
625
629
|
};
|
|
626
630
|
|
|
627
|
-
const duetUploadCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}
|
|
631
|
+
const duetUploadCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:8px;margin-bottom:8px}.items-header{display:none;flex-direction:row}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:10px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(225, 227, 230)}@media (min-width: 36em){.upload-item-row{flex-direction:row}}.upload-item-row .item-categories{width:100%;margin-bottom:8px}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-label{width:100%;margin-bottom:8px;text-align:left}@media (min-width: 36em){.upload-item-row .item-label{width:50%}.upload-item-row .item-label.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-label .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-label .heading{display:none}}.upload-item-row .item-actions{width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}";
|
|
628
632
|
|
|
629
633
|
const DuetUpload = class {
|
|
630
634
|
constructor(hostRef) {
|
|
@@ -661,6 +665,11 @@ const DuetUpload = class {
|
|
|
661
665
|
this.kick = debounce(() => {
|
|
662
666
|
this.tick = Date.now();
|
|
663
667
|
}, 30); // will trigger re-render
|
|
668
|
+
this.categoryLabel = {
|
|
669
|
+
en: "Category",
|
|
670
|
+
sv: "Filtyp",
|
|
671
|
+
fi: "Tiedostotyyppi",
|
|
672
|
+
};
|
|
664
673
|
/**
|
|
665
674
|
* Private functions
|
|
666
675
|
*/
|
|
@@ -713,18 +722,18 @@ const DuetUpload = class {
|
|
|
713
722
|
return "none";
|
|
714
723
|
}
|
|
715
724
|
};
|
|
716
|
-
this.
|
|
725
|
+
this.mapFilesToUploadItems = (data, group, showCategory) => {
|
|
717
726
|
if (group === this.DefaultGroups.success) {
|
|
718
|
-
return h(
|
|
727
|
+
return (h(UploadItem, { theme: this.theme, actions: this.getActions(group), type: "success", data: data, showLinks: this.showLinks, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory }));
|
|
719
728
|
}
|
|
720
729
|
else if (group === this.DefaultGroups.inprogress) {
|
|
721
|
-
return h(
|
|
730
|
+
return (h(UploadItem, { theme: this.theme, actions: this.getActions(group), type: "inprogress", data: data, showLinks: this.showLinks, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory }));
|
|
722
731
|
}
|
|
723
732
|
else if (group === this.DefaultGroups.pending) {
|
|
724
|
-
return h(
|
|
733
|
+
return (h(UploadItem, { theme: this.theme, actions: this.getActions(group), type: "pending", data: data, showLinks: this.showLinks, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory }));
|
|
725
734
|
}
|
|
726
735
|
else if (group === this.DefaultGroups.failure) {
|
|
727
|
-
return h(
|
|
736
|
+
return (h(UploadItem, { theme: this.theme, actions: this.getActions(group), type: "failure", data: data, showLinks: this.showLinks, errorCodes: this.errorCodes, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory }));
|
|
728
737
|
}
|
|
729
738
|
else if (data.group) {
|
|
730
739
|
return data.html;
|
|
@@ -997,60 +1006,43 @@ const DuetUpload = class {
|
|
|
997
1006
|
const failure = [];
|
|
998
1007
|
const pending = [];
|
|
999
1008
|
const success = [];
|
|
1009
|
+
let hasCategory = false;
|
|
1000
1010
|
all.forEach(data => {
|
|
1001
|
-
var _a, _b;
|
|
1002
1011
|
const group = this.getGroupFromItemData(data);
|
|
1003
|
-
const item =
|
|
1004
|
-
const category =
|
|
1005
|
-
const categories =
|
|
1012
|
+
// const item = mapFn(data, group)
|
|
1013
|
+
// const category = <UploadCategory meta={data.meta} />
|
|
1014
|
+
// const categories = data.meta?.badges?.join(",")
|
|
1015
|
+
if (data.meta && !!data.meta.badges) {
|
|
1016
|
+
hasCategory = true;
|
|
1017
|
+
}
|
|
1006
1018
|
if (group === this.DefaultGroups.success) {
|
|
1007
1019
|
success.push({
|
|
1008
1020
|
uid: data.uid,
|
|
1009
|
-
|
|
1010
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
1011
|
-
category,
|
|
1012
|
-
group,
|
|
1013
|
-
actionDescription: `${categories || ""} ${data.item.name}`,
|
|
1021
|
+
data,
|
|
1014
1022
|
});
|
|
1015
1023
|
}
|
|
1016
1024
|
else if (group === this.DefaultGroups.inprogress) {
|
|
1017
1025
|
inprogress.push({
|
|
1018
1026
|
uid: data.uid,
|
|
1019
|
-
|
|
1020
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
1021
|
-
category,
|
|
1022
|
-
group,
|
|
1023
|
-
actionDescription: `category ${data.item.name}`,
|
|
1027
|
+
data,
|
|
1024
1028
|
});
|
|
1025
1029
|
}
|
|
1026
1030
|
else if (group === this.DefaultGroups.pending) {
|
|
1027
1031
|
pending.push({
|
|
1028
1032
|
uid: data.uid,
|
|
1029
|
-
|
|
1030
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
1031
|
-
category,
|
|
1032
|
-
group,
|
|
1033
|
-
actionDescription: `category ${data.item.name}`,
|
|
1033
|
+
data,
|
|
1034
1034
|
});
|
|
1035
1035
|
}
|
|
1036
1036
|
else if (group === this.DefaultGroups.failure) {
|
|
1037
1037
|
failure.push({
|
|
1038
1038
|
uid: data.uid,
|
|
1039
|
-
|
|
1040
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
1041
|
-
category,
|
|
1042
|
-
group,
|
|
1043
|
-
actionDescription: `category ${data.item.name}`,
|
|
1039
|
+
data,
|
|
1044
1040
|
});
|
|
1045
1041
|
}
|
|
1046
1042
|
else if (data.group) {
|
|
1047
1043
|
inprogress.push({
|
|
1048
1044
|
uid: data.uid,
|
|
1049
|
-
|
|
1050
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
1051
|
-
category,
|
|
1052
|
-
group: data.group,
|
|
1053
|
-
actionDescription: `category ${data.item.name}`,
|
|
1045
|
+
data,
|
|
1054
1046
|
});
|
|
1055
1047
|
}
|
|
1056
1048
|
});
|
|
@@ -1059,46 +1051,23 @@ const DuetUpload = class {
|
|
|
1059
1051
|
failure,
|
|
1060
1052
|
success,
|
|
1061
1053
|
inprogress,
|
|
1054
|
+
hasCategory,
|
|
1062
1055
|
};
|
|
1063
1056
|
};
|
|
1064
|
-
this.getColumns = (group, hasCategory) => {
|
|
1065
|
-
return [
|
|
1066
|
-
{
|
|
1067
|
-
sort_order: 1,
|
|
1068
|
-
direction: -1,
|
|
1069
|
-
index: 0,
|
|
1070
|
-
key: "category",
|
|
1071
|
-
label: {
|
|
1072
|
-
fi: "Kategoria",
|
|
1073
|
-
sv: "Kategori",
|
|
1074
|
-
en: "Category",
|
|
1075
|
-
},
|
|
1076
|
-
display: hasCategory,
|
|
1077
|
-
},
|
|
1078
|
-
{
|
|
1079
|
-
sort_order: 1,
|
|
1080
|
-
direction: -1,
|
|
1081
|
-
index: 1,
|
|
1082
|
-
key: group.id,
|
|
1083
|
-
label: group.label,
|
|
1084
|
-
display: true,
|
|
1085
|
-
},
|
|
1086
|
-
];
|
|
1087
|
-
};
|
|
1088
1057
|
this.getActions = (id) => {
|
|
1089
1058
|
return this.actions.filter(item => item.map.includes(id));
|
|
1090
1059
|
};
|
|
1091
|
-
this.
|
|
1060
|
+
this.renderUploadedItems = () => {
|
|
1092
1061
|
const filteredItems = this.filterMap();
|
|
1093
|
-
const
|
|
1062
|
+
const hasCategory = filteredItems.hasCategory;
|
|
1063
|
+
const ItemRows = this.groups.map(group => {
|
|
1094
1064
|
const currentItems = filteredItems[group.id];
|
|
1095
1065
|
if (!(currentItems === null || currentItems === void 0 ? void 0 : currentItems.length)) {
|
|
1096
1066
|
return;
|
|
1097
1067
|
}
|
|
1098
|
-
|
|
1099
|
-
return (h("duet-editable-table", { variation: "plain", groupId: group.id, columns: this.getColumns(group, hasCategory), actions: this.getActions(group.id), margin: "none", rows: currentItems, "hide-head-visually": this.hideGroups || group.id !== this.DefaultGroups.success }));
|
|
1068
|
+
return (h(Fragment, null, !this.hideGroups && (h(UploadItemHeader, { categoryLabel: hasCategory ? this.categoryLabel : undefined, label: group.label })), currentItems.map(item => this.mapFilesToUploadItems(item.data, group.id, hasCategory))));
|
|
1100
1069
|
});
|
|
1101
|
-
return
|
|
1070
|
+
return (h(Fragment, null, this.showUploadedItemsHeader && (h(UploadItemHeader, { categoryLabel: hasCategory ? this.categoryLabel : undefined, label: this.uploadedItemsHeaderLabel })), ItemRows));
|
|
1102
1071
|
};
|
|
1103
1072
|
this.tick = Date.now();
|
|
1104
1073
|
this.accessibleActiveDescendant = undefined;
|
|
@@ -1214,6 +1183,13 @@ const DuetUpload = class {
|
|
|
1214
1183
|
this.value = undefined;
|
|
1215
1184
|
this.externalUploadButtonId = undefined;
|
|
1216
1185
|
this.captionOnBottom = false;
|
|
1186
|
+
this.showUploadedItemsHeader = false;
|
|
1187
|
+
this.uploadedItemsHeaderLabel = {
|
|
1188
|
+
fi: "Ladattu tiedosto",
|
|
1189
|
+
sv: "Lägg till en bilaga",
|
|
1190
|
+
en: "Uploaded file",
|
|
1191
|
+
};
|
|
1192
|
+
this.hideHeader = false;
|
|
1217
1193
|
this.groups = [
|
|
1218
1194
|
{
|
|
1219
1195
|
id: this.DefaultGroups.success,
|
|
@@ -1338,13 +1314,7 @@ const DuetUpload = class {
|
|
|
1338
1314
|
this.externalUploadButton.ariaLabel = caption;
|
|
1339
1315
|
}
|
|
1340
1316
|
// @ts-ignore
|
|
1341
|
-
return (h(Host, { class: { "duet-m-0": this.margin === "none" } }, h("duet-fieldset", { label: this.label, caption: !this.captionOnBottom ? caption : undefined }, h("slot", { name: "header" }), !this.files.size && (h("duet-
|
|
1342
|
-
"duet-upload-filelist-empty": !this.files.size,
|
|
1343
|
-
"duet-upload-filelist": true,
|
|
1344
|
-
"duet-upload-filelist-filled": this.files.size,
|
|
1345
|
-
}, id: this.labelId, for: identifier }, h("span", { class: {
|
|
1346
|
-
"duet-upload-filelist-empty-label": !this.files.size,
|
|
1347
|
-
} }, this.fileListEmpty))), !!this.files.size && h("slot", { name: "fileheader" }), !!this.files.size && (h("duet-upload-aria-status", { invalid: this.getFilesAsArray().invalid.length, valid: this.getFilesAsArray().valid.length, inprogress: this.filesInProgress.size, total: this.files.size, statusMessageLabel: this.internalStatusMessageLabel })), !!this.files.size && this.renderEditableTableGroups(), !!this.files.size && h("slot", { name: "filefooter" }), h("slot", { name: "footer" }), this.captionOnBottom && (h("duet-caption", { size: "small" }, h("div", { class: "upload-bottom-caption" }, caption))), h("slot", { name: "afterfooter" }), h("duet-spacer", { size: "large" }), !this.hideButton && (h("duet-button", { id: this.buttonId, onClick: this.startUpload, "accessible-controls": identifier, disabled: this.fileMaxReached, "accessible-label": this.accessibleButtonLabel, "accessible-owns": identifier, size: "small", variation: "secondary", fixed: true, icon: "action-add-circle", part: this.identifier ? `${this.identifier}-button-upload` : "duet-upload-button-upload" }, this.buttonLabel)), h("duet-spacer", { size: "medium" }), (this.fileMaxReached || this.bytesMaxReached) && (h("duet-alert", { part: this.identifier ? `${this.identifier}-error-notification` : "duet-upload-error-notification" }, this.fileMaxReached && getI18nError("duet-upload-301", this.errorCodes), this.bytesMaxReached && getI18nError("duet-upload-202", this.errorCodes))), h("duet-spacer", { size: "medium" }), h("duet-visually-hidden", { "aria-hidden": "true" }, h("input", { ref: input => {
|
|
1317
|
+
return (h(Host, { class: { "duet-m-0": this.margin === "none" } }, h("duet-fieldset", { "label-hidden": this.hideHeader, label: this.label, caption: !this.captionOnBottom ? caption : undefined }, h("slot", { name: "header" }), !this.files.size && (h("duet-empty-state", { id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, h("duet-paragraph", { margin: "none" }, this.fileListEmpty))), !!this.files.size && h("slot", { name: "fileheader" }), !!this.files.size && (h("duet-upload-aria-status", { invalid: this.getFilesAsArray().invalid.length, valid: this.getFilesAsArray().valid.length, inprogress: this.filesInProgress.size, total: this.files.size, statusMessageLabel: this.internalStatusMessageLabel })), !!this.files.size && this.renderUploadedItems(), !!this.files.size && h("slot", { name: "filefooter" }), h("slot", { name: "uploadfooter" }), this.captionOnBottom && (h("duet-caption", { size: "small" }, h("div", { class: "upload-bottom-caption" }, caption))), h("slot", { name: "afterfooter" }), h("duet-spacer", { size: "large" }), !this.hideButton && (h("duet-button", { id: this.buttonId, onClick: this.startUpload, "accessible-controls": identifier, disabled: this.fileMaxReached, "accessible-label": this.accessibleButtonLabel, "accessible-owns": identifier, size: "small", variation: "secondary", fixed: true, icon: "action-add-circle", part: this.identifier ? `${this.identifier}-button-upload` : "duet-upload-button-upload" }, this.buttonLabel)), h("duet-spacer", { size: "medium" }), (this.fileMaxReached || this.bytesMaxReached) && (h("duet-alert", { part: this.identifier ? `${this.identifier}-error-notification` : "duet-upload-error-notification" }, this.fileMaxReached && getI18nError("duet-upload-301", this.errorCodes), this.bytesMaxReached && getI18nError("duet-upload-202", this.errorCodes))), h("duet-spacer", { size: "medium" }), h("duet-visually-hidden", { "aria-hidden": "true" }, h("input", { ref: input => {
|
|
1348
1318
|
this.nativeInput = input;
|
|
1349
1319
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
1350
1320
|
"duet-upload": true,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-9d169c3d.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
|
|
7
7
|
const duetEmptyStateCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;height:100%}.duet-empty-state{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%;padding:48px;color:rgb(0, 41, 77);text-align:center;background:rgb(245, 248, 250);border-radius:4px}.duet-empty-state.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 245, 247)}";
|