@duetds/components 6.8.4 → 6.8.6
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 +83 -33
- package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
- 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 +1 -1
- package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- 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 +3 -3
- 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 +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +76 -31
- 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 +1 -1
- package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +1 -1
- package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
- package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-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 +1 -1
- 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 +2 -2
- package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
- package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
- package/lib/cjs/duet-tray.cjs.entry.js +1 -1
- 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-1cfcd199.js → focus-utils-e3004898.js} +1 -1
- package/lib/cjs/{index-ab015402.js → index-1d72531b.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- 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-choice-group/duet-choice-group.css +6 -1
- 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 +26 -7
- 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 +3 -3
- package/lib/collection/components/duet-header/duet-header.js +15 -15
- package/lib/collection/components/duet-heading/duet-heading.js +1 -1
- package/lib/collection/components/duet-hero/duet-hero.js +5 -5
- package/lib/collection/components/duet-icon/duet-icon.js +1 -1
- package/lib/collection/components/duet-input/duet-input.js +8 -8
- package/lib/collection/components/duet-label/duet-label.js +2 -2
- package/lib/collection/components/duet-layout/duet-layout.js +1 -1
- package/lib/collection/components/duet-list/duet-list.js +4 -4
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
- package/lib/collection/components/duet-modal/duet-modal.js +3 -3
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
- package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
- 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 +22 -0
- package/lib/collection/components/duet-upload/duet-upload.js +103 -34
- package/lib/collection/components/duet-upload/upload-editable-item-inprogres.js +1 -1
- package/lib/collection/components/duet-upload/upload-editable-item-success.js +11 -3
- package/lib/collection/components/duet-upload/upload-item-category.js +8 -0
- package/lib/collection/components/duet-upload/upload-item.js +16 -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 +3 -3
- 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 +7 -7
- 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 +1 -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 +9 -9
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -1
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
- package/lib/dist-custom-elements/duet-modal.js +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 +7 -7
- 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 +2 -2
- package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +1 -1
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-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 +2 -2
- package/lib/dist-custom-elements/duet-slideout.js +2 -2
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar.js +2 -2
- package/lib/dist-custom-elements/duet-tab-group.js +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 +3 -3
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +92 -46
- 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-258d095f.js → p-023342e9.js} +1 -1
- package/lib/dist-custom-elements/{p-5333970a.js → p-068064d2.js} +1 -1
- package/lib/dist-custom-elements/{p-6c630da1.js → p-077f3d0f.js} +1 -1
- package/lib/dist-custom-elements/{p-1b6d9683.js → p-10bc90a5.js} +1 -1
- package/lib/dist-custom-elements/{p-a53cebf1.js → p-1bb1bc0f.js} +1 -1
- package/lib/dist-custom-elements/{p-c1d5b264.js → p-1dcfcc9f.js} +8 -8
- package/lib/dist-custom-elements/{p-43901e47.js → p-1f065f44.js} +1 -1
- package/lib/dist-custom-elements/{p-cd486ca1.js → p-28141fe5.js} +6 -6
- package/lib/dist-custom-elements/{p-a971f4cf.js → p-2b97f950.js} +12 -10
- package/lib/dist-custom-elements/{p-fa93f54b.js → p-32e43a11.js} +4 -4
- package/lib/dist-custom-elements/{p-49026ea5.js → p-33ba43e1.js} +1 -1
- package/lib/dist-custom-elements/{p-92135039.js → p-40818933.js} +2 -2
- package/lib/dist-custom-elements/{p-f41d4dba.js → p-46027643.js} +3 -3
- package/lib/dist-custom-elements/{p-8a77e325.js → p-46998408.js} +1 -1
- package/lib/dist-custom-elements/{p-03f5e1df.js → p-56443db2.js} +1 -1
- package/lib/dist-custom-elements/{p-b2b89a56.js → p-58fa2020.js} +2 -2
- package/lib/dist-custom-elements/{p-2b8d110c.js → p-6713af30.js} +1 -1
- package/lib/dist-custom-elements/{p-17a5bfd6.js → p-6bfd97a0.js} +2 -2
- package/lib/dist-custom-elements/{p-139ccc08.js → p-8198ee17.js} +1 -1
- package/lib/dist-custom-elements/{p-c05dc335.js → p-81d240e1.js} +1 -1
- package/lib/dist-custom-elements/{p-d3e697f4.js → p-86bdfc5f.js} +1 -1
- package/lib/dist-custom-elements/{p-14fe8052.js → p-9340fc7c.js} +1 -1
- package/lib/dist-custom-elements/{p-51be19a2.js → p-998f0e68.js} +1 -1
- package/lib/dist-custom-elements/{p-d4995343.js → p-a4fc8229.js} +1 -1
- package/lib/dist-custom-elements/{p-7782af26.js → p-a64f3e9c.js} +2 -2
- package/lib/dist-custom-elements/{p-6891c1b3.js → p-a9c9cbc3.js} +2 -2
- package/lib/dist-custom-elements/{p-bf71c608.js → p-bc2fe9f9.js} +1 -1
- package/lib/dist-custom-elements/{p-e9e98c22.js → p-c6743310.js} +1 -1
- package/lib/dist-custom-elements/{p-7cccb592.js → p-c94512a3.js} +3 -3
- package/lib/dist-custom-elements/{p-a89fd096.js → p-d56e25b8.js} +1 -1
- package/lib/dist-custom-elements/{p-104dae34.js → p-de338e31.js} +5 -5
- package/lib/dist-custom-elements/{p-21ae30e5.js → p-f8f93c32.js} +3 -3
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-c17ad6a4.entry.js → p-00052a21.entry.js} +1 -1
- package/lib/duet/{p-ccbff327.system.entry.js → p-008e926c.system.entry.js} +1 -1
- package/lib/duet/{p-6b7be36b.entry.js → p-0135d3be.entry.js} +1 -1
- package/lib/duet/{p-ca4539ce.system.entry.js → p-01f704c5.system.entry.js} +1 -1
- package/lib/duet/{p-fc318998.system.entry.js → p-02402b1d.system.entry.js} +1 -1
- package/lib/duet/{p-0a64a5a4.js → p-0478aca4.js} +1 -1
- package/lib/duet/{p-464e267f.system.js → p-0ac82243.system.js} +1 -1
- package/lib/duet/{p-0ec5260f.system.entry.js → p-0c647794.system.entry.js} +2 -2
- package/lib/duet/{p-8684b2af.system.js → p-0d47b5d0.system.js} +1 -1
- package/lib/duet/{p-006cfe82.system.entry.js → p-0ee9fe5a.system.entry.js} +1 -1
- package/lib/duet/{p-32ba724d.js → p-0f76b544.js} +1 -1
- package/lib/duet/{p-53d28f2b.system.entry.js → p-0fae73be.system.entry.js} +1 -1
- package/lib/duet/{p-0769bfaa.system.entry.js → p-115bc126.system.entry.js} +1 -1
- package/lib/duet/{p-3405c2df.entry.js → p-118c2455.entry.js} +1 -1
- package/lib/duet/{p-1835986d.system.entry.js → p-131a09ef.system.entry.js} +1 -1
- package/lib/duet/{p-514e2f71.entry.js → p-187f61a9.entry.js} +1 -1
- package/lib/duet/{p-a4042d5b.system.entry.js → p-1af44cd7.system.entry.js} +1 -1
- package/lib/duet/{p-9eaee650.system.entry.js → p-1ca5d9c9.system.entry.js} +1 -1
- package/lib/duet/{p-0ec18f3b.system.entry.js → p-1de4480f.system.entry.js} +1 -1
- package/lib/duet/{p-f6f5032b.entry.js → p-1e404cf1.entry.js} +1 -1
- package/lib/duet/{p-886f3df1.system.entry.js → p-20310f15.system.entry.js} +1 -1
- package/lib/duet/{p-8661ddb0.system.entry.js → p-2357cbb2.system.entry.js} +1 -1
- package/lib/duet/{p-ad983011.entry.js → p-23e3e56f.entry.js} +1 -1
- package/lib/duet/{p-f5e7e0a7.system.entry.js → p-24266786.system.entry.js} +1 -1
- package/lib/duet/{p-9c456965.system.entry.js → p-26b45af6.system.entry.js} +1 -1
- package/lib/duet/{p-6aa662f0.system.entry.js → p-2885dc4f.system.entry.js} +1 -1
- package/lib/duet/{p-783530af.system.entry.js → p-29a36b0d.system.entry.js} +1 -1
- package/lib/duet/{p-45c55f88.system.entry.js → p-2c385164.system.entry.js} +1 -1
- package/lib/duet/{p-599dfb21.entry.js → p-2c8ec5dc.entry.js} +1 -1
- package/lib/duet/{p-85053e56.system.entry.js → p-2e65c35d.system.entry.js} +1 -1
- package/lib/duet/{p-ca8a79e7.entry.js → p-2ff2f7ab.entry.js} +1 -1
- package/lib/duet/{p-73e2201d.entry.js → p-317e511d.entry.js} +1 -1
- package/lib/duet/{p-238517b4.system.entry.js → p-33df50af.system.entry.js} +1 -1
- package/lib/duet/{p-21f94254.entry.js → p-33ffc418.entry.js} +1 -1
- package/lib/duet/{p-3d2339ae.system.entry.js → p-3466ab1a.system.entry.js} +1 -1
- package/lib/duet/{p-d27f9702.entry.js → p-34a536c5.entry.js} +1 -1
- package/lib/duet/{p-322c2769.entry.js → p-34b4940f.entry.js} +1 -1
- package/lib/duet/{p-c6787142.system.entry.js → p-355f2ced.system.entry.js} +1 -1
- package/lib/duet/{p-cf33e4a4.entry.js → p-384cd404.entry.js} +1 -1
- package/lib/duet/{p-0f5b0e9a.entry.js → p-3a8973fc.entry.js} +1 -1
- package/lib/duet/{p-4de46382.entry.js → p-3bcc21b1.entry.js} +1 -1
- package/lib/duet/{p-15346bb7.system.entry.js → p-3c02b40c.system.entry.js} +1 -1
- package/lib/duet/{p-b59904ae.system.entry.js → p-3d283bed.system.entry.js} +1 -1
- package/lib/duet/{p-350bad81.system.entry.js → p-3d9462b2.system.entry.js} +1 -1
- package/lib/duet/p-3db2790b.system.entry.js +4 -0
- package/lib/duet/{p-52a0bf60.system.entry.js → p-441bf2f7.system.entry.js} +1 -1
- package/lib/duet/{p-a4f9eacd.system.entry.js → p-44e0cb33.system.entry.js} +1 -1
- package/lib/duet/{p-faaa35cf.entry.js → p-4a820e40.entry.js} +1 -1
- package/lib/duet/{p-94c6c463.entry.js → p-4bce10fd.entry.js} +1 -1
- package/lib/duet/{p-8aba8575.entry.js → p-5127875a.entry.js} +1 -1
- package/lib/duet/{p-dc8c7e0b.entry.js → p-52598698.entry.js} +1 -1
- package/lib/duet/{p-a7b1f336.entry.js → p-53db1b2d.entry.js} +1 -1
- package/lib/duet/{p-57824291.entry.js → p-547f0190.entry.js} +1 -1
- package/lib/duet/{p-142e0dd6.system.entry.js → p-56f04d8b.system.entry.js} +1 -1
- package/lib/duet/{p-78b89180.entry.js → p-5704bea4.entry.js} +1 -1
- package/lib/duet/{p-2b9c8a7d.entry.js → p-5c4e7535.entry.js} +1 -1
- package/lib/duet/{p-6597319a.entry.js → p-5e1d86aa.entry.js} +1 -1
- package/lib/duet/{p-33a2e92d.system.entry.js → p-5eee6f5b.system.entry.js} +1 -1
- package/lib/duet/{p-88d3cc5a.system.entry.js → p-6303e2c2.system.entry.js} +1 -1
- package/lib/duet/{p-8c20f50a.entry.js → p-637954d3.entry.js} +1 -1
- package/lib/duet/{p-e829bf10.entry.js → p-64a196c8.entry.js} +1 -1
- package/lib/duet/{p-a05666f0.system.entry.js → p-653c4b81.system.entry.js} +1 -1
- package/lib/duet/{p-b2ebc2e1.entry.js → p-680fe6e2.entry.js} +1 -1
- package/lib/duet/{p-f738d8e5.entry.js → p-6843534a.entry.js} +1 -1
- package/lib/duet/{p-2dafbb00.system.entry.js → p-6a186073.system.entry.js} +1 -1
- package/lib/duet/{p-3b197740.entry.js → p-6e02f332.entry.js} +1 -1
- package/lib/duet/{p-5dedf71b.entry.js → p-7033077c.entry.js} +1 -1
- package/lib/duet/p-70df605a.entry.js +4 -0
- package/lib/duet/{p-8f7a04bc.system.entry.js → p-70e3e285.system.entry.js} +1 -1
- package/lib/duet/{p-1578385a.system.entry.js → p-716f6b7f.system.entry.js} +1 -1
- package/lib/duet/{p-71eda242.entry.js → p-72a74500.entry.js} +1 -1
- package/lib/duet/{p-1bdce03c.entry.js → p-73058322.entry.js} +1 -1
- package/lib/duet/{p-ec9d77cf.system.entry.js → p-733c0420.system.entry.js} +1 -1
- package/lib/duet/{p-ffba3249.entry.js → p-73941510.entry.js} +1 -1
- package/lib/duet/{p-f0384acb.entry.js → p-751cded7.entry.js} +1 -1
- package/lib/duet/{p-545ca91e.system.entry.js → p-78538446.system.entry.js} +1 -1
- package/lib/duet/{p-5aaee74b.entry.js → p-7af1ae76.entry.js} +1 -1
- package/lib/duet/{p-86799457.entry.js → p-7bd0998b.entry.js} +1 -1
- package/lib/duet/{p-345381c1.entry.js → p-7ca90a39.entry.js} +1 -1
- package/lib/duet/{p-aee5400b.system.entry.js → p-85652a95.system.entry.js} +1 -1
- package/lib/duet/{p-2b9fb222.system.entry.js → p-8761c920.system.entry.js} +1 -1
- package/lib/duet/{p-c8892cfa.entry.js → p-8b0af3a4.entry.js} +1 -1
- package/lib/duet/{p-39f8bec2.entry.js → p-8f3e2da9.entry.js} +1 -1
- package/lib/duet/{p-994c33e2.entry.js → p-90aef7eb.entry.js} +1 -1
- package/lib/duet/{p-8dc321a1.entry.js → p-91417a9a.entry.js} +1 -1
- package/lib/duet/{p-271e6527.entry.js → p-914cd18e.entry.js} +1 -1
- package/lib/duet/{p-d65b676f.entry.js → p-91cb169e.entry.js} +1 -1
- package/lib/duet/{p-1c731783.entry.js → p-95770ba7.entry.js} +1 -1
- package/lib/duet/{p-daf3ccef.system.entry.js → p-96befdd7.system.entry.js} +1 -1
- package/lib/duet/{p-af47bd24.system.entry.js → p-98ac3517.system.entry.js} +1 -1
- package/lib/duet/{p-8025514b.system.entry.js → p-9bfe1254.system.entry.js} +1 -1
- package/lib/duet/{p-9116af4f.entry.js → p-9d6beb46.entry.js} +1 -1
- package/lib/duet/{p-f0ba21c3.system.entry.js → p-9fdfdaed.system.entry.js} +1 -1
- package/lib/duet/{p-207ad310.entry.js → p-a1d584e5.entry.js} +1 -1
- package/lib/duet/{p-8ada2a8a.entry.js → p-a2eb4c1f.entry.js} +1 -1
- package/lib/duet/{p-b3e57f17.system.entry.js → p-a6da9ebd.system.entry.js} +1 -1
- package/lib/duet/{p-e0651eca.system.entry.js → p-a7d8d000.system.entry.js} +1 -1
- package/lib/duet/{p-5252d291.system.entry.js → p-a9d4d0e3.system.entry.js} +1 -1
- package/lib/duet/{p-5d3c68ad.system.entry.js → p-abf85b30.system.entry.js} +1 -1
- package/lib/duet/{p-23500651.system.entry.js → p-af645d50.system.entry.js} +1 -1
- package/lib/duet/{p-b16848d3.system.entry.js → p-af878746.system.entry.js} +1 -1
- package/lib/duet/{p-7adef50f.system.js → p-b03452eb.system.js} +1 -1
- package/lib/duet/{p-6d99c12c.entry.js → p-b09de818.entry.js} +1 -1
- package/lib/duet/{p-2b998d32.entry.js → p-b1aa9b0e.entry.js} +1 -1
- package/lib/duet/{p-8fcd5734.entry.js → p-b6f1722a.entry.js} +1 -1
- package/lib/duet/{p-0f7ab746.system.entry.js → p-b9ff52c3.system.entry.js} +1 -1
- package/lib/duet/{p-f06940f6.system.entry.js → p-baa83969.system.entry.js} +1 -1
- package/lib/duet/{p-19deb8bb.entry.js → p-bd5a23ad.entry.js} +1 -1
- package/lib/duet/{p-fcca01e2.entry.js → p-c0e762c5.entry.js} +1 -1
- package/lib/duet/{p-c8b3d426.system.entry.js → p-c21e0220.system.entry.js} +1 -1
- package/lib/duet/{p-a08a9752.entry.js → p-c2691df5.entry.js} +1 -1
- package/lib/duet/{p-5f5fae98.system.entry.js → p-c6ab65e4.system.entry.js} +1 -1
- package/lib/duet/{p-76dabced.system.entry.js → p-c99dff59.system.entry.js} +1 -1
- package/lib/duet/{p-0a96cc2c.system.entry.js → p-cfa12307.system.entry.js} +1 -1
- package/lib/duet/{p-433085d5.system.entry.js → p-d11642a4.system.entry.js} +1 -1
- package/lib/duet/{p-d8769dca.system.entry.js → p-d2ea6a49.system.entry.js} +1 -1
- package/lib/duet/{p-db98a514.system.entry.js → p-d3bb4cd0.system.entry.js} +1 -1
- package/lib/duet/{p-2b6e9c34.entry.js → p-d5add2a1.entry.js} +1 -1
- package/lib/duet/{p-e4b73cff.entry.js → p-d6bf59f8.entry.js} +1 -1
- package/lib/duet/{p-369661b2.entry.js → p-d7890385.entry.js} +1 -1
- package/lib/duet/{p-5f1e31c7.entry.js → p-dafbf164.entry.js} +1 -1
- package/lib/duet/{p-0aac4192.system.entry.js → p-de7c93e6.system.entry.js} +1 -1
- package/lib/duet/{p-ec5ae55d.system.entry.js → p-def5eefd.system.entry.js} +1 -1
- package/lib/duet/{p-5b0b828a.system.entry.js → p-dfbb9078.system.entry.js} +1 -1
- package/lib/duet/{p-8085ad32.entry.js → p-e3f9f86d.entry.js} +1 -1
- package/lib/duet/p-e403da27.entry.js +4 -0
- package/lib/duet/{p-c46b2038.system.entry.js → p-e653cfd1.system.entry.js} +1 -1
- package/lib/duet/{p-c32df4f2.system.entry.js → p-e7505450.system.entry.js} +1 -1
- package/lib/duet/{p-8de9a81e.system.entry.js → p-e98a91bd.system.entry.js} +1 -1
- package/lib/duet/{p-25bf58d2.entry.js → p-ea3cb1bd.entry.js} +1 -1
- package/lib/duet/{p-28b0eafe.entry.js → p-eaa14406.entry.js} +1 -1
- package/lib/duet/{p-83ac5c6e.entry.js → p-ecb016d1.entry.js} +1 -1
- package/lib/duet/{p-3490b163.entry.js → p-edc3786b.entry.js} +1 -1
- package/lib/duet/{p-6c171fd9.entry.js → p-f02f252c.entry.js} +1 -1
- package/lib/duet/{p-6f930a32.system.entry.js → p-f94c7bd2.system.entry.js} +1 -1
- package/lib/duet/{p-5daa0d26.system.entry.js → p-fa00dc57.system.entry.js} +1 -1
- package/lib/duet/{p-ac37e21d.entry.js → p-fad0a3b6.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +1 -1
- 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 +1 -1
- package/lib/esm/duet-caption_4.entry.js +1 -1
- package/lib/esm/duet-card.entry.js +1 -1
- 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 +3 -3
- 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 +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +76 -31
- 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 +1 -1
- package/lib/esm/duet-header_2.entry.js +1 -1
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +1 -1
- package/lib/esm/duet-input_2.entry.js +1 -1
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar.entry.js +1 -1
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-multiselect.entry.js +1 -1
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +1 -1
- package/lib/esm/duet-page-heading.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +1 -1
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +1 -1
- 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 +2 -2
- package/lib/esm/duet-slideout.entry.js +2 -2
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar.entry.js +1 -1
- package/lib/esm/duet-textarea.entry.js +1 -1
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm/duet-toolbar-link.entry.js +1 -1
- package/lib/esm/duet-toolbar.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +1 -1
- package/lib/esm/duet-tray.entry.js +1 -1
- 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-5c277b1d.js → focus-utils-038f6536.js} +1 -1
- package/lib/esm/{index-dc7d6b8d.js → index-0237f6f4.js} +1 -1
- package/lib/esm/loader.js +3 -3
- 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 +2 -2
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +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 +2 -2
- 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-5c277b1d.js → focus-utils-038f6536.js} +1 -1
- package/lib/esm-es5/{index-dc7d6b8d.js → index-0237f6f4.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +4 -0
- package/lib/types/components/duet-upload/duet-upload.d.ts +12 -1
- package/lib/types/components/duet-upload/upload-item-category.d.ts +5 -0
- package/lib/types/components/duet-upload/upload-item.d.ts +10 -0
- package/lib/types/components.d.ts +24 -0
- package/package.json +5 -5
- package/lib/duet/p-0a79b874.system.entry.js +0 -4
- package/lib/duet/p-141234e3.entry.js +0 -4
- package/lib/duet/p-fb1b340d.entry.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
System.register(["./p-
|
|
4
|
+
System.register(["./p-b03452eb.system.js","./p-8078b081.system.js","./p-33b3aba4.system.js","./p-51721695.system.js"],(function(e){"use strict";var t,n,i,o,a,r,s;return{setters:[function(e){t=e.r;n=e.h;i=e.H;o=e.g},function(e){a=e.m},function(e){r=e.i},function(e){s=e.f}],execute:function(){var u='*,*::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;width:100%;height:100%}@media (min-width: 62em){:host{width:auto}}.duet-submenu-bar-link{display:flex;flex-direction:row;gap:16px;align-items:center;justify-content:flex-start;height:100%;padding:12px 1.5rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:600;line-height:1.25;color:rgb(0, 41, 77);text-align:center;text-decoration:none}@media (min-width: 62em){.duet-submenu-bar-link{flex-direction:column;gap:5px;align-items:center;justify-content:center;font-size:0.875rem;color:rgb(0, 77, 128)}}.duet-submenu-bar-link:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-submenu-bar-link:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}@media (min-width: 62em){.duet-submenu-bar-link.active{color:rgb(0, 119, 179)}.duet-theme-turva .duet-submenu-bar-link.active{color:rgb(198, 12, 48)}}.duet-submenu-bar-link.active .label{position:relative}.duet-submenu-bar-link.active .label::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transform:1px}@media (min-width: 62em){.duet-submenu-bar-link.active .label::after{display:none}.duet-submenu-bar-link.active::after{position:absolute;top:auto;bottom:0;left:0;display:block;width:100%;height:1px;content:"";background:rgb(0, 119, 179);transition:300ms ease;transform:translateY(1px)}}.duet-submenu-bar-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-submenu-bar-link.duet-theme-turva.active .label::after{background:rgb(198, 12, 48)}.duet-submenu-bar-link.duet-theme-turva.active::after{background:rgb(198, 12, 48)}@media (min-width: 62em){.duet-submenu-bar-link:hover{color:rgb(0, 41, 77);background:rgb(230, 242, 248)}.duet-submenu-bar-link:hover.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(228, 228, 230)}}';var l=e("duet_submenu_bar_link",function(){function e(e){var n=this;t(this,e);this.mql=[window.matchMedia(a.replace(/'/g,""))];this.boundMqlFunctions=[];this.changeIconSize=function(){if(n.mql[0].matches){n.iconSize="x-small"}else{n.iconSize="small"}};this.iconSize="small";this.theme="";this.active=false;this.href="#";this.icon=undefined}e.prototype.componentWillLoad=function(){r(this)};e.prototype.connectedCallback=function(){this.changeIconSize();for(var e=0;e<this.mql.length;e++){if(this.mql[e].addEventListener){var t=this.changeIconSize.bind(this);this.mql[e].addEventListener("change",t);this.boundMqlFunctions[e]=t}}};e.prototype.disconnectedCallback=function(){for(var e=0;e<this.mql.length;e++){if(this.mql[e].removeEventListener){this.mql[e].removeEventListener("change",this.boundMqlFunctions[e])}}this.boundMqlFunctions=[]};e.prototype.handleEscape=function(e){if(s(e)){var t=this.element.closest("duet-submenu-bar");t.open=false;t.setFocus()}};e.prototype.render=function(){var e=this;return n(i,null,n("a",{class:{"duet-submenu-bar-link":true,"duet-theme-turva":this.theme==="turva",active:this.active},href:this.href,onKeyUp:function(t){return e.handleEscape(t)},"aria-current":this.active?"true":"false"},this.icon&&n("duet-icon",{theme:this.theme,name:this.icon,size:this.iconSize,margin:"none",color:"currentColor"}),n("span",{class:"label"},n("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return o(this)},enumerable:false,configurable:true});return e}());l.style=u}}}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import{r as e,h as o,H as r,g as t}from"./p-
|
|
4
|
+
import{r as e,h as o,H as r,g as t}from"./p-0478aca4.js";import{i as n}from"./p-4ebf1618.js";import{f as a}from"./p-f077c646.js";const i=class{constructor(o){e(this,o),this.getVariant=()=>(this.element.parentElement.parentElement.getAttribute("slot"),"right"),this.theme="",this.href="#",this.icon=void 0}componentWillLoad(){n(this)}handleEscape(e){if(a(e)){const e=this.element.closest("duet-menu-bar-dropdown");e.open=!1,e.setFocus()}}render(){return o(r,null,o("a",{class:{"duet-menu-bar-dropdown-link":!0,[`duet-menu-bar-dropdown-link--slot-${this.getVariant()}`]:!0,"duet-theme-turva":"turva"===this.theme},href:this.href,role:"menuitem",onKeyUp:e=>this.handleEscape(e)},this.icon&&o("duet-icon",{theme:this.theme,name:this.icon,size:"x-small",margin:"none",color:"currentColor"}),o("slot",null)))}get element(){return t(this)}};i.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%}.duet-menu-bar-dropdown-link{display:flex;flex-direction:row;gap:0.5rem;align-items:center;justify-content:flex-start;height:100%;padding:0.5rem 20px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;font-weight:400;line-height:1.25;color:rgb(0, 41, 77);text-align:center;text-decoration:none}.duet-menu-bar-dropdown-link.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-menu-bar-dropdown-link--slot-right:hover{background:rgb(230, 242, 248)}.duet-menu-bar-dropdown-link--slot-right:hover.duet-theme-turva{background:rgb(228, 228, 230)}.duet-menu-bar-dropdown-link--slot-right:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-menu-bar-dropdown-link--slot-right:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-menu-bar-dropdown-link--slot-below:hover{color:rgb(0, 77, 128);background:rgb(243, 249, 252)}.duet-menu-bar-dropdown-link--slot-below:hover.duet-theme-turva{color:rgb(148, 9, 37);background:rgb(228, 228, 230)}';export{i as duet_menu_bar_dropdown_link}
|
|
@@ -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-0237f6f4.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 { d as debounce } from './js-utils-fa98b8cd.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 } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, H as Host } from './index-0237f6f4.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 { g as getLanguage, a as getLocaleString, c as connectLanguageChangeObserver, d as disconnectLanguageChangeObserver } from './language-utils-6be16ff0.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 } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host } from './index-0237f6f4.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-0237f6f4.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-0237f6f4.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,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-0237f6f4.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';
|
|
@@ -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, F as Fragment } from './index-
|
|
4
|
+
import { r as registerInstance, h, H as Host, g as getElement, F as Fragment } from './index-0237f6f4.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { s as sanitizeString } from './string-utils-5954f458.js';
|
|
7
7
|
import { g as getColorByName } from './token-utils-b531747a.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, 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-0237f6f4.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';
|
|
@@ -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-0237f6f4.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-0237f6f4.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-0237f6f4.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-038f6536.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';
|
|
@@ -267,7 +267,7 @@ const DuetChoice = class {
|
|
|
267
267
|
};
|
|
268
268
|
DuetChoice.style = duetChoiceCss;
|
|
269
269
|
|
|
270
|
-
const duetChoiceGroupCss = "*.sc-duet-choice-group,*.sc-duet-choice-group::after,*.sc-duet-choice-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:block;margin-bottom
|
|
270
|
+
const duetChoiceGroupCss = "*.sc-duet-choice-group,*.sc-duet-choice-group::after,*.sc-duet-choice-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-choice-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:block;margin-bottom:-12px}.horizontal.sc-duet-choice-group-h .duet-choice-group.duet-no-stacking.sc-duet-choice-group{display:flex}@media (min-width: 48em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{margin-bottom:0}}@media (max-width: 35.9375em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:flex}}.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}@media (max-width: 22.5em){.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}}.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 36em){.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 48em){.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 62em){.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 64.0625em){.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.duet-choice-group.sc-duet-choice-group{position:relative;width:100%;margin-bottom:-12px}";
|
|
271
271
|
|
|
272
272
|
const duetChoiceSelector = ":scope duet-choice:not(:scope duet-choice duet-choice-group duet-choice):not(:scope duet-choice duet-fieldset duet-choice)";
|
|
273
273
|
const DuetChoiceGroup = class {
|
|
@@ -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-0237f6f4.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-0237f6f4.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-0237f6f4.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-0237f6f4.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-0237f6f4.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-038f6536.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,7 +1,7 @@
|
|
|
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-0237f6f4.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { g as getColorByName } from './token-utils-b531747a.js';
|
|
7
7
|
import './tokens.module-d3321092.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-0237f6f4.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';
|
|
@@ -71,6 +71,7 @@ const DuetEditableTable = class {
|
|
|
71
71
|
this.groupId = "";
|
|
72
72
|
this.theme = "";
|
|
73
73
|
this.accessibleRole = undefined;
|
|
74
|
+
this.hideHeadVisually = false;
|
|
74
75
|
}
|
|
75
76
|
/**
|
|
76
77
|
* Component lifecycle events.
|
|
@@ -134,7 +135,7 @@ const DuetEditableTable = class {
|
|
|
134
135
|
}
|
|
135
136
|
// iterate through actions and add them in the sidebar
|
|
136
137
|
return (h("td", { class: "duet-text-right" }, this.actions.map(actionItem => {
|
|
137
|
-
return (h("duet-action-button", { actionMeta: Object.assign({}, (rowItem === null || rowItem === void 0 ? void 0 : rowItem.meta) || {}, { index }), actionId: (rowItem === null || rowItem === void 0 ? void 0 : rowItem.uid) || (rowItem === null || rowItem === void 0 ? void 0 : rowItem.id) || null, actionName: actionItem.name, theme: this.theme, iconName: actionItem.icon, iconColor: actionItem.color, iconSize: actionItem.size, background: actionItem.background, "accessible-label": `${getLocaleString(actionItem.label)}
|
|
138
|
+
return (h("duet-action-button", { actionMeta: Object.assign({}, (rowItem === null || rowItem === void 0 ? void 0 : rowItem.meta) || {}, { index }), actionId: (rowItem === null || rowItem === void 0 ? void 0 : rowItem.uid) || (rowItem === null || rowItem === void 0 ? void 0 : rowItem.id) || null, actionName: actionItem.name, theme: this.theme, iconName: actionItem.icon, iconColor: actionItem.color, iconSize: actionItem.size, background: actionItem.background, "accessible-label": `${rowItem.actionDescription || ""} ${getLocaleString(actionItem.label)} ` }));
|
|
138
139
|
})));
|
|
139
140
|
}
|
|
140
141
|
renderTableBody() {
|
|
@@ -168,7 +169,7 @@ const DuetEditableTable = class {
|
|
|
168
169
|
"duet-editable-table-actions": !!this.actions,
|
|
169
170
|
"duet-m-0": this.margin === "none",
|
|
170
171
|
"duet-theme-turva": this.theme === "turva",
|
|
171
|
-
} }, h("duet-table", { class: "duet-editable-table-table", sticky: this.sticky, stickyDistance: this.stickyDistance, margin: this.margin, theme: this.theme, variation: this.variation, breakpoint: this.breakpoint }, h("table", { role: this.accessibleRole }, h("caption", null, h("slot", { name: "tcaption" })), h("thead", null, h("tr", null, h("td", { class: "duet-editable-table-actions-menu", colSpan: 99 }, h("slot", { name: "thead-first" }))), this.renderTableHeader(), h("tr", null, h("td", { class: "duet-editable-table-actions-menu", colSpan: 99 }, h("slot", { name: "thead-last" })))), h("tbody", null, this.renderTableBody()), h("tfoot", null, h("tr", null, h("th", { class: "duet-editable-table-footer-menu", colSpan: 99 }, h("slot", { name: "tfoot" }))))))));
|
|
172
|
+
} }, h("duet-table", { class: "duet-editable-table-table", sticky: this.sticky, stickyDistance: this.stickyDistance, margin: this.margin, theme: this.theme, variation: this.variation, breakpoint: this.breakpoint, "hide-head-visually": this.hideHeadVisually }, h("table", { role: this.accessibleRole }, h("caption", null, h("slot", { name: "tcaption" })), h("thead", null, h("tr", null, h("td", { class: "duet-editable-table-actions-menu", colSpan: 99 }, h("slot", { name: "thead-first" }))), this.renderTableHeader(), h("tr", null, h("td", { class: "duet-editable-table-actions-menu", colSpan: 99 }, h("slot", { name: "thead-last" })))), h("tbody", null, this.renderTableBody()), h("tfoot", null, h("tr", null, h("th", { class: "duet-editable-table-footer-menu", colSpan: 99 }, h("slot", { name: "tfoot" }))))))));
|
|
172
173
|
}
|
|
173
174
|
get element() { return getElement(this); }
|
|
174
175
|
};
|
|
@@ -435,9 +436,10 @@ const ErrorItem = ({ data, errorCodes }) => {
|
|
|
435
436
|
};
|
|
436
437
|
|
|
437
438
|
const ProgressItem = ({ progress, name }) => (h("span", { class: "duet-upload-item-name" },
|
|
438
|
-
h("duet-
|
|
439
|
-
|
|
440
|
-
|
|
439
|
+
h("duet-paragraph", { class: "duet-upload-item-name", color: "gray-darker", margin: "none", weight: "semi-bold" },
|
|
440
|
+
h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
441
|
+
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
442
|
+
name),
|
|
441
443
|
h("br", null),
|
|
442
444
|
h("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
|
|
443
445
|
|
|
@@ -458,7 +460,7 @@ const formatBytes = (bytes, decimals = 2) => {
|
|
|
458
460
|
};
|
|
459
461
|
|
|
460
462
|
const SuccessItem = ({ data, showLinks }) => {
|
|
461
|
-
const { item, size, uploaded, url
|
|
463
|
+
const { item, size, uploaded, url } = data;
|
|
462
464
|
const { name } = item;
|
|
463
465
|
const ContentName = (h("span", { class: "duet-upload-item-name" },
|
|
464
466
|
h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
@@ -475,12 +477,24 @@ const SuccessItem = ({ data, showLinks }) => {
|
|
|
475
477
|
ContentName,
|
|
476
478
|
h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
477
479
|
SizeText));
|
|
480
|
+
// const Badges =
|
|
481
|
+
// meta && meta.badges ? (
|
|
482
|
+
// <span>
|
|
483
|
+
// <duet-spacer size="xx-small"></duet-spacer>
|
|
484
|
+
// {meta.badges.map(badgeText => (
|
|
485
|
+
// <duet-badge color="primary">{badgeText}</duet-badge>
|
|
486
|
+
// ))}
|
|
487
|
+
// </span>
|
|
488
|
+
// ) : undefined
|
|
489
|
+
return (h("span", { class: "duet-upload-item-success" },
|
|
490
|
+
h("div", null, FilenameLine)));
|
|
491
|
+
};
|
|
492
|
+
|
|
493
|
+
const UploadCategory = ({ meta }) => {
|
|
478
494
|
const Badges = meta && meta.badges ? (h("span", null,
|
|
479
495
|
h("duet-spacer", { size: "xx-small" }),
|
|
480
|
-
meta.badges.map(badgeText => (h("duet-badge", { color: "primary" }, badgeText))))) :
|
|
481
|
-
return
|
|
482
|
-
h("div", null, FilenameLine),
|
|
483
|
-
Badges));
|
|
496
|
+
meta.badges.map(badgeText => (h("duet-badge", { color: "primary" }, badgeText))))) : (h("span", null));
|
|
497
|
+
return Badges;
|
|
484
498
|
};
|
|
485
499
|
|
|
486
500
|
const validateFileExtension = (name, allowedExtensions) => {
|
|
@@ -606,7 +620,7 @@ const makeXhrRequest = ({ payload, options, onFailure, onSuccess, onProgress })
|
|
|
606
620
|
return xhr;
|
|
607
621
|
};
|
|
608
622
|
|
|
609
|
-
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-upload-editable-table .duet-upload-item-name duet-icon{position:relative;top:2px}duet-paragraph::part(duet-paragraph){word-break:break-word}";
|
|
623
|
+
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-upload-editable-table .duet-upload-item-name duet-icon{position:relative;top:2px}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-bottom:12px}.test{display:flex;flex-direction:row}.test .item-categories{flex-grow:1}.test .item-label{flex-grow:2}.test .item-actions{flex-grow:1}";
|
|
610
624
|
|
|
611
625
|
const DuetUpload = class {
|
|
612
626
|
constructor(hostRef) {
|
|
@@ -980,46 +994,59 @@ const DuetUpload = class {
|
|
|
980
994
|
const pending = [];
|
|
981
995
|
const success = [];
|
|
982
996
|
all.forEach(data => {
|
|
997
|
+
var _a, _b;
|
|
983
998
|
const group = this.getGroupFromItemData(data);
|
|
984
999
|
const item = this.getItemHTMLFromItemData(data, group);
|
|
1000
|
+
const category = h(UploadCategory, { meta: data.meta });
|
|
1001
|
+
const categories = (_b = (_a = data.meta) === null || _a === void 0 ? void 0 : _a.badges) === null || _b === void 0 ? void 0 : _b.join(",");
|
|
985
1002
|
if (group === this.DefaultGroups.success) {
|
|
986
1003
|
success.push({
|
|
987
1004
|
uid: data.uid,
|
|
988
1005
|
item,
|
|
1006
|
+
hasCategory: data.meta && !!data.meta.badges,
|
|
1007
|
+
category,
|
|
989
1008
|
group,
|
|
990
|
-
|
|
1009
|
+
actionDescription: `${categories || ""} ${data.item.name}`,
|
|
991
1010
|
});
|
|
992
1011
|
}
|
|
993
1012
|
else if (group === this.DefaultGroups.inprogress) {
|
|
994
1013
|
inprogress.push({
|
|
995
1014
|
uid: data.uid,
|
|
996
1015
|
item,
|
|
1016
|
+
hasCategory: data.meta && !!data.meta.badges,
|
|
1017
|
+
category,
|
|
997
1018
|
group,
|
|
998
|
-
|
|
1019
|
+
actionDescription: `category ${data.item.name}`,
|
|
999
1020
|
});
|
|
1000
1021
|
}
|
|
1001
1022
|
else if (group === this.DefaultGroups.pending) {
|
|
1002
1023
|
pending.push({
|
|
1003
1024
|
uid: data.uid,
|
|
1004
1025
|
item,
|
|
1026
|
+
hasCategory: data.meta && !!data.meta.badges,
|
|
1027
|
+
category,
|
|
1005
1028
|
group,
|
|
1006
|
-
|
|
1029
|
+
actionDescription: `category ${data.item.name}`,
|
|
1007
1030
|
});
|
|
1008
1031
|
}
|
|
1009
1032
|
else if (group === this.DefaultGroups.failure) {
|
|
1010
1033
|
failure.push({
|
|
1011
1034
|
uid: data.uid,
|
|
1012
1035
|
item,
|
|
1036
|
+
hasCategory: data.meta && !!data.meta.badges,
|
|
1037
|
+
category,
|
|
1013
1038
|
group,
|
|
1014
|
-
|
|
1039
|
+
actionDescription: `category ${data.item.name}`,
|
|
1015
1040
|
});
|
|
1016
1041
|
}
|
|
1017
1042
|
else if (data.group) {
|
|
1018
1043
|
inprogress.push({
|
|
1019
1044
|
uid: data.uid,
|
|
1020
1045
|
item,
|
|
1046
|
+
hasCategory: data.meta && !!data.meta.badges,
|
|
1047
|
+
category,
|
|
1021
1048
|
group: data.group,
|
|
1022
|
-
|
|
1049
|
+
actionDescription: `category ${data.item.name}`,
|
|
1023
1050
|
});
|
|
1024
1051
|
}
|
|
1025
1052
|
});
|
|
@@ -1030,14 +1057,27 @@ const DuetUpload = class {
|
|
|
1030
1057
|
inprogress,
|
|
1031
1058
|
};
|
|
1032
1059
|
};
|
|
1033
|
-
this.getColumns = (group) => {
|
|
1060
|
+
this.getColumns = (group, hasCategory) => {
|
|
1034
1061
|
return [
|
|
1035
1062
|
{
|
|
1036
1063
|
sort_order: 1,
|
|
1037
1064
|
direction: -1,
|
|
1038
1065
|
index: 0,
|
|
1066
|
+
key: "category",
|
|
1067
|
+
label: {
|
|
1068
|
+
fi: "Kategoria",
|
|
1069
|
+
sv: "Kategori",
|
|
1070
|
+
en: "Category",
|
|
1071
|
+
},
|
|
1072
|
+
display: hasCategory,
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
sort_order: 1,
|
|
1076
|
+
direction: -1,
|
|
1077
|
+
index: 1,
|
|
1039
1078
|
key: group.id,
|
|
1040
1079
|
label: group.label,
|
|
1080
|
+
display: true,
|
|
1041
1081
|
},
|
|
1042
1082
|
];
|
|
1043
1083
|
};
|
|
@@ -1051,9 +1091,8 @@ const DuetUpload = class {
|
|
|
1051
1091
|
if (!(currentItems === null || currentItems === void 0 ? void 0 : currentItems.length)) {
|
|
1052
1092
|
return;
|
|
1053
1093
|
}
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
} }, !this.hideGroups ? (getLocaleString(group.label)) : (h("duet-visually-hidden", null, getLocaleString(group.label)))))), h("tbody", null, h("tr", null, h("td", { class: "duet-upload-editable-table-data" }, h("duet-editable-table", { breakpoint: "none", variation: "plain", groupId: group.id, columns: this.getColumns(group), actions: this.getActions(group.id), margin: "none", rows: currentItems })))))));
|
|
1094
|
+
const hasCategory = currentItems.some(item => item.hasCategory);
|
|
1095
|
+
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 }));
|
|
1057
1096
|
});
|
|
1058
1097
|
return EditableTables;
|
|
1059
1098
|
};
|
|
@@ -1169,15 +1208,9 @@ const DuetUpload = class {
|
|
|
1169
1208
|
this.multiple = true;
|
|
1170
1209
|
this.limitSelection = false;
|
|
1171
1210
|
this.value = undefined;
|
|
1211
|
+
this.externalUploadButtonId = undefined;
|
|
1212
|
+
this.captionOnBottom = false;
|
|
1172
1213
|
this.groups = [
|
|
1173
|
-
{
|
|
1174
|
-
id: this.DefaultGroups.pending,
|
|
1175
|
-
label: {
|
|
1176
|
-
en: "Files to upload",
|
|
1177
|
-
sv: "Filer att ladda",
|
|
1178
|
-
fi: "Ladattavat tiedostot",
|
|
1179
|
-
},
|
|
1180
|
-
},
|
|
1181
1214
|
{
|
|
1182
1215
|
id: this.DefaultGroups.success,
|
|
1183
1216
|
label: {
|
|
@@ -1202,6 +1235,14 @@ const DuetUpload = class {
|
|
|
1202
1235
|
en: "Files inprogress",
|
|
1203
1236
|
},
|
|
1204
1237
|
},
|
|
1238
|
+
{
|
|
1239
|
+
id: this.DefaultGroups.pending,
|
|
1240
|
+
label: {
|
|
1241
|
+
en: "Files to upload",
|
|
1242
|
+
sv: "Filer att ladda",
|
|
1243
|
+
fi: "Ladattavat tiedostot",
|
|
1244
|
+
},
|
|
1245
|
+
},
|
|
1205
1246
|
];
|
|
1206
1247
|
}
|
|
1207
1248
|
watchValidHandler(newValue, oldValue) {
|
|
@@ -1222,6 +1263,7 @@ const DuetUpload = class {
|
|
|
1222
1263
|
inheritGlobalTheme(this);
|
|
1223
1264
|
this.listenForActionEvents();
|
|
1224
1265
|
this.onReady();
|
|
1266
|
+
this.externalUploadButton = document.querySelector(`#${this.externalUploadButtonId}`);
|
|
1225
1267
|
}
|
|
1226
1268
|
componentWillRender() {
|
|
1227
1269
|
// listen to the events from the component
|
|
@@ -1288,14 +1330,17 @@ const DuetUpload = class {
|
|
|
1288
1330
|
caption = caption.replace(/{maxbytes}/g, `${maxMegaBytesPrFile.toString()} MB`);
|
|
1289
1331
|
caption = caption.replace(/{maxbytestotal}/g, `${maxMegaBytesTotal.toString()} MB`);
|
|
1290
1332
|
caption = caption.replace(/{filetypes}/g, this.allowedExtensions.split(",").join(", "));
|
|
1333
|
+
if (this.externalUploadButton) {
|
|
1334
|
+
this.externalUploadButton.ariaLabel = caption;
|
|
1335
|
+
}
|
|
1291
1336
|
// @ts-ignore
|
|
1292
|
-
return (h(Host, { class: { "duet-m-0": this.margin === "none" } }, h("duet-fieldset", { label: this.label, caption: caption }, h("slot", { name: "header" }), !this.files.size && (h("duet-label", { part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", theme: this.theme === "turva" ? "turva" : "default", size: "small", class: {
|
|
1337
|
+
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-label", { part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", theme: this.theme === "turva" ? "turva" : "default", size: "small", class: {
|
|
1293
1338
|
"duet-upload-filelist-empty": !this.files.size,
|
|
1294
1339
|
"duet-upload-filelist": true,
|
|
1295
1340
|
"duet-upload-filelist-filled": this.files.size,
|
|
1296
1341
|
}, id: this.labelId, for: identifier }, h("span", { class: {
|
|
1297
1342
|
"duet-upload-filelist-empty-label": !this.files.size,
|
|
1298
|
-
} }, 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("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 => {
|
|
1343
|
+
} }, 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 => {
|
|
1299
1344
|
this.nativeInput = input;
|
|
1300
1345
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
1301
1346
|
"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-0237f6f4.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)}";
|
|
@@ -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-0237f6f4.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, c as createEvent$1, h, F as Fragment, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent$1, h, F as Fragment, g as getElement } from './index-0237f6f4.js';
|
|
5
5
|
import { a as actionArrowRight } from './action-arrow-right-f7d56681.js';
|
|
6
6
|
import { a as actionNewWindowSmall } from './action-new-window-small-1945be91.js';
|
|
7
7
|
import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
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-0237f6f4.js';
|
|
5
5
|
import { m as media_query_large, a as media_query_medium, b as media_query_small } from './tokens-0963dc8b.js';
|
|
6
6
|
import { w as watchForOptions, a as watchForElement } from './watch-options-dd55bce8.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, r as registerInstance, c as createEvent$1, B as Build, H as Host, F as Fragment, g as getElement } from './index-
|
|
4
|
+
import { h, r as registerInstance, c as createEvent$1, B as Build, H as Host, F as Fragment, g as getElement } from './index-0237f6f4.js';
|
|
5
5
|
import { f as formSearch } from './form-search-ea8e19ae.js';
|
|
6
6
|
import { m as media_query_large } from './tokens-0963dc8b.js';
|
|
7
7
|
import { d as disableBodyScroll, e as enableBodyScroll } from './bodyScrollLock.es6-61b5e9a4.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, g as getElement } from './index-
|
|
4
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-0237f6f4.js';
|
|
5
5
|
import { a as actionNewWindowSmall } from './action-new-window-small-1945be91.js';
|
|
6
6
|
import { D as DuetStringsExternalDefaults } from './common-strings-97e04e4b.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 { E as Env, r as registerInstance, h, H as Host, g as getElement } from './index-
|
|
4
|
+
import { E as Env, r as registerInstance, h, H as Host, g as getElement } from './index-0237f6f4.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './themeable-component-cb76be7c.js';
|
|
6
6
|
import { g as getColorByName } from './token-utils-b531747a.js';
|
|
7
7
|
import './tokens.module-d3321092.js';
|