@duetds/components 6.8.5 → 6.8.7
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 +177 -52
- 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 +3 -3
- 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 +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 +2 -2
- 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 +2 -2
- 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 +34 -5
- 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 +2 -2
- 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 +2 -2
- 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 +6 -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 +26 -4
- 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 +3 -2
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar.cjs.entry.js +39 -3
- 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-37a486af.js → focus-utils-b501431f.js} +1 -1
- package/lib/cjs/{index-6f5a3a97.js → index-13388615.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-breadcrumbs/duet-breadcrumbs.css +17 -9
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.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-contact-card/duet-contact-card.js +1 -1
- 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.css +67 -10
- 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.css +14 -4
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +59 -5
- 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-nav/duet-nav.js +1 -1
- 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.css +1 -1
- package/lib/collection/components/duet-slideout/duet-slideout.js +4 -2
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.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 +15 -0
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +50 -4
- 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-toolbar/duet-toolbar.css +11 -1
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +67 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +19 -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 +4 -4
- 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 +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 +9 -9
- 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 +10 -10
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -1
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +39 -7
- 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 +2 -2
- 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 +3 -3
- 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 +6 -4
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar.js +29 -5
- 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 +5 -3
- package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar.js +43 -4
- 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-6b2ce804.js → p-05af1562.js} +1 -1
- package/lib/dist-custom-elements/{p-68cadecc.js → p-136bba51.js} +1 -1
- package/lib/dist-custom-elements/{p-2e134a85.js → p-1460a593.js} +1 -1
- package/lib/dist-custom-elements/{p-2fdc173c.js → p-15a0e9fd.js} +3 -3
- package/lib/dist-custom-elements/{p-4ebb8421.js → p-18ecc42e.js} +3 -3
- package/lib/dist-custom-elements/{p-8c7ba159.js → p-19150a67.js} +1 -1
- package/lib/dist-custom-elements/{p-cd14282a.js → p-194c6d5b.js} +1 -1
- package/lib/dist-custom-elements/{p-29249230.js → p-1cbf685d.js} +1 -1
- package/lib/dist-custom-elements/{p-0ccf72fa.js → p-29949e1b.js} +1 -1
- package/lib/dist-custom-elements/{p-0696d787.js → p-30637273.js} +4 -4
- package/lib/dist-custom-elements/{p-f8879c12.js → p-3644a561.js} +1 -1
- package/lib/dist-custom-elements/{p-bf14f0f8.js → p-4672eb29.js} +2 -2
- package/lib/dist-custom-elements/{p-28adb7fb.js → p-4a21157d.js} +2 -2
- package/lib/dist-custom-elements/{p-959d322b.js → p-4d8d1b92.js} +1 -1
- package/lib/dist-custom-elements/{p-b7ca2d79.js → p-5146b16a.js} +1 -1
- package/lib/dist-custom-elements/{p-3c33adbf.js → p-5343b436.js} +2 -2
- package/lib/dist-custom-elements/{p-313e06d8.js → p-5e8a98c7.js} +2 -2
- package/lib/dist-custom-elements/{p-fb2bc18b.js → p-68ebd7ae.js} +6 -6
- package/lib/dist-custom-elements/{p-a99b2301.js → p-69659e26.js} +1 -1
- package/lib/dist-custom-elements/{p-7f29b745.js → p-7180327e.js} +1 -1
- package/lib/dist-custom-elements/{p-14693ab8.js → p-7c186545.js} +8 -8
- package/lib/dist-custom-elements/{p-7f5d00ac.js → p-7c5c5437.js} +1 -1
- package/lib/dist-custom-elements/{p-9487cba1.js → p-8b969843.js} +1 -1
- package/lib/dist-custom-elements/{p-aae0cdb6.js → p-950410b7.js} +2 -2
- package/lib/dist-custom-elements/{p-05ca18f5.js → p-9c053778.js} +1 -1
- package/lib/dist-custom-elements/{p-02e545b7.js → p-a4e7ed86.js} +1 -1
- package/lib/dist-custom-elements/{p-c714f33d.js → p-d0fad319.js} +3 -3
- package/lib/dist-custom-elements/{p-fb62bc38.js → p-d307a46b.js} +1 -1
- package/lib/dist-custom-elements/{p-5c82d569.js → p-d4fea7f4.js} +1 -1
- package/lib/dist-custom-elements/{p-fd472f42.js → p-e67ec38e.js} +5 -5
- package/lib/dist-custom-elements/{p-702e2d96.js → p-f316bb52.js} +1 -1
- package/lib/dist-custom-elements/{p-adfa75f8.js → p-fdc72d0f.js} +12 -10
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-ad936690.system.entry.js → p-01aaa7a2.system.entry.js} +1 -1
- package/lib/duet/{p-7ee5cf27.system.entry.js → p-028ec3d7.system.entry.js} +1 -1
- package/lib/duet/{p-b17088f0.system.entry.js → p-0614e1c5.system.entry.js} +1 -1
- package/lib/duet/{p-81d08141.entry.js → p-0a996015.entry.js} +1 -1
- package/lib/duet/{p-bdc0fe30.system.entry.js → p-0d2741c1.system.entry.js} +1 -1
- package/lib/duet/{p-a07e1194.js → p-10ea9dce.js} +1 -1
- package/lib/duet/{p-df5f218c.system.entry.js → p-12970382.system.entry.js} +1 -1
- package/lib/duet/{p-b581a3bb.entry.js → p-13409919.entry.js} +1 -1
- package/lib/duet/{p-ce0ee352.system.entry.js → p-13815abb.system.entry.js} +1 -1
- package/lib/duet/{p-bc674367.system.entry.js → p-14fa519e.system.entry.js} +1 -1
- package/lib/duet/{p-13a45164.entry.js → p-1503bfe4.entry.js} +1 -1
- package/lib/duet/p-1585e4fa.entry.js +4 -0
- package/lib/duet/{p-72830e75.entry.js → p-161ddf06.entry.js} +1 -1
- package/lib/duet/{p-320e55ab.entry.js → p-17baf252.entry.js} +1 -1
- package/lib/duet/{p-69b85da0.system.entry.js → p-187153ca.system.entry.js} +1 -1
- package/lib/duet/{p-7981e13b.system.entry.js → p-18e72b2c.system.entry.js} +1 -1
- package/lib/duet/{p-fc0c9ac3.entry.js → p-19a7afea.entry.js} +1 -1
- package/lib/duet/{p-12bb63b7.entry.js → p-19ee06ab.entry.js} +1 -1
- package/lib/duet/{p-b2838ccd.entry.js → p-1b8a0131.entry.js} +1 -1
- package/lib/duet/{p-8a801ef7.entry.js → p-1e130f27.entry.js} +1 -1
- package/lib/duet/{p-477f553f.entry.js → p-1ede9679.entry.js} +1 -1
- package/lib/duet/{p-6446cfa5.entry.js → p-1f912fb4.entry.js} +1 -1
- package/lib/duet/{p-91bdc352.entry.js → p-208d4e98.entry.js} +1 -1
- package/lib/duet/{p-5eb41b56.system.entry.js → p-255f1542.system.entry.js} +1 -1
- package/lib/duet/{p-e501c893.system.entry.js → p-25e10b51.system.entry.js} +1 -1
- package/lib/duet/p-25f14ac5.system.entry.js +4 -0
- package/lib/duet/{p-24e34082.system.entry.js → p-2718896c.system.entry.js} +1 -1
- package/lib/duet/{p-4b9e5447.system.entry.js → p-28d6f291.system.entry.js} +1 -1
- package/lib/duet/{p-682ccc00.entry.js → p-2bd4d42d.entry.js} +1 -1
- package/lib/duet/{p-7ff69245.system.entry.js → p-2e119045.system.entry.js} +1 -1
- package/lib/duet/p-2e394748.system.entry.js +4 -0
- package/lib/duet/p-323d22b9.entry.js +4 -0
- package/lib/duet/p-330febf7.entry.js +4 -0
- package/lib/duet/{p-2b3edac6.system.entry.js → p-35c0d8e2.system.entry.js} +1 -1
- package/lib/duet/{p-576e7135.entry.js → p-3baf3dcc.entry.js} +1 -1
- package/lib/duet/{p-0e81a136.system.entry.js → p-3bf4a093.system.entry.js} +1 -1
- package/lib/duet/{p-f8fe134c.entry.js → p-3ca9a002.entry.js} +1 -1
- package/lib/duet/{p-47f8be1e.system.entry.js → p-3d2bcd2e.system.entry.js} +1 -1
- package/lib/duet/{p-126b0216.entry.js → p-3f4fcae9.entry.js} +1 -1
- package/lib/duet/{p-f32e95bb.system.entry.js → p-427f78f8.system.entry.js} +1 -1
- package/lib/duet/{p-a3a9a1b8.system.entry.js → p-433fb103.system.entry.js} +1 -1
- package/lib/duet/{p-576c31f3.entry.js → p-488f5515.entry.js} +1 -1
- package/lib/duet/{p-88ed5a90.entry.js → p-4a2569f0.entry.js} +1 -1
- package/lib/duet/{p-fda01bca.entry.js → p-4aae5fa5.entry.js} +1 -1
- package/lib/duet/{p-1bd49c6c.entry.js → p-508e5f90.entry.js} +1 -1
- package/lib/duet/{p-34b64696.system.entry.js → p-54083f7e.system.entry.js} +1 -1
- package/lib/duet/{p-6d7c1dcc.system.entry.js → p-56bdca95.system.entry.js} +1 -1
- package/lib/duet/{p-6f1da07b.entry.js → p-579feef2.entry.js} +1 -1
- package/lib/duet/{p-e9c85d4e.system.entry.js → p-5d12bac3.system.entry.js} +1 -1
- package/lib/duet/{p-a9a5200e.entry.js → p-5eca64bb.entry.js} +1 -1
- package/lib/duet/{p-2e49efe9.entry.js → p-5f5191d3.entry.js} +1 -1
- package/lib/duet/{p-57846bb5.system.entry.js → p-65438201.system.entry.js} +1 -1
- package/lib/duet/p-65d31e27.entry.js +4 -0
- package/lib/duet/{p-70aedb94.system.entry.js → p-669cf7dd.system.entry.js} +1 -1
- package/lib/duet/{p-62228568.entry.js → p-69542357.entry.js} +1 -1
- package/lib/duet/{p-f518c0a0.system.entry.js → p-69d5c27d.system.entry.js} +1 -1
- package/lib/duet/p-69f480e1.entry.js +4 -0
- package/lib/duet/{p-8044edc7.system.entry.js → p-6a9f3539.system.entry.js} +1 -1
- package/lib/duet/{p-3d915826.entry.js → p-6dc4a6b7.entry.js} +1 -1
- package/lib/duet/p-72abda3c.entry.js +4 -0
- package/lib/duet/{p-b6a726fc.system.entry.js → p-7770a36f.system.entry.js} +1 -1
- package/lib/duet/{p-775fc78c.system.entry.js → p-778ac454.system.entry.js} +1 -1
- package/lib/duet/{p-c60c531f.entry.js → p-780a75a2.entry.js} +1 -1
- package/lib/duet/{p-b132b5df.system.entry.js → p-78bc14ae.system.entry.js} +1 -1
- package/lib/duet/{p-0f79b452.system.entry.js → p-796ba871.system.entry.js} +1 -1
- package/lib/duet/{p-f3c22a2f.entry.js → p-7b5cc047.entry.js} +1 -1
- package/lib/duet/p-7f317b88.entry.js +4 -0
- package/lib/duet/{p-96a2cd90.entry.js → p-7fce8695.entry.js} +1 -1
- package/lib/duet/{p-0a5ee4c0.entry.js → p-80d61c0b.entry.js} +1 -1
- package/lib/duet/{p-eb63c8f0.system.entry.js → p-8155e4f7.system.entry.js} +1 -1
- package/lib/duet/{p-5956cfad.system.entry.js → p-823197ed.system.entry.js} +1 -1
- package/lib/duet/{p-db9ac8a2.system.entry.js → p-8232b1d5.system.entry.js} +1 -1
- package/lib/duet/{p-7677034c.entry.js → p-82be0673.entry.js} +1 -1
- package/lib/duet/{p-b5b3ab80.system.entry.js → p-851ad654.system.entry.js} +1 -1
- package/lib/duet/{p-3f2e2726.system.entry.js → p-85c6f600.system.entry.js} +1 -1
- package/lib/duet/p-8a4ed826.entry.js +4 -0
- package/lib/duet/{p-23e9caeb.system.entry.js → p-8abf9da5.system.entry.js} +1 -1
- package/lib/duet/{p-3aec0017.system.entry.js → p-8b2728c2.system.entry.js} +1 -1
- package/lib/duet/{p-73d50c9c.entry.js → p-8bded27b.entry.js} +1 -1
- package/lib/duet/{p-f4ad0c9c.entry.js → p-8c4d279b.entry.js} +1 -1
- package/lib/duet/{p-cc6d13b2.system.entry.js → p-90cfdbb8.system.entry.js} +1 -1
- package/lib/duet/{p-715016fb.entry.js → p-94244bf4.entry.js} +1 -1
- package/lib/duet/{p-e24d6a72.entry.js → p-957af858.entry.js} +1 -1
- package/lib/duet/{p-2d400724.system.entry.js → p-9780467a.system.entry.js} +1 -1
- package/lib/duet/p-97c4ff91.entry.js +4 -0
- package/lib/duet/{p-d6d7165c.system.entry.js → p-99a34692.system.entry.js} +1 -1
- package/lib/duet/p-9ae7a189.js +4 -0
- package/lib/duet/{p-c274e869.system.entry.js → p-9d040ae3.system.entry.js} +1 -1
- package/lib/duet/{p-6c4c2102.system.entry.js → p-9e97cd91.system.entry.js} +1 -1
- package/lib/duet/{p-bf48a550.entry.js → p-a132127e.entry.js} +1 -1
- package/lib/duet/{p-98daf9ba.entry.js → p-a16eed4d.entry.js} +1 -1
- package/lib/duet/p-a36d502c.system.entry.js +4 -0
- package/lib/duet/p-a842a56f.entry.js +4 -0
- package/lib/duet/{p-f7c1f47c.system.entry.js → p-a8964560.system.entry.js} +1 -1
- package/lib/duet/{p-4694e76b.system.entry.js → p-aaf64918.system.entry.js} +1 -1
- package/lib/duet/{p-8f91a9d2.entry.js → p-adcd531d.entry.js} +1 -1
- package/lib/duet/{p-9f9a8841.system.entry.js → p-b26d675a.system.entry.js} +1 -1
- package/lib/duet/{p-78ac6b1f.entry.js → p-b672f754.entry.js} +1 -1
- package/lib/duet/{p-2f72d12a.system.js → p-b8735715.system.js} +1 -1
- package/lib/duet/{p-7e109c31.entry.js → p-bac833e6.entry.js} +1 -1
- package/lib/duet/{p-1b362e7c.system.entry.js → p-bc1d488f.system.entry.js} +1 -1
- package/lib/duet/{p-a5f7e606.system.entry.js → p-bc75a8d1.system.entry.js} +1 -1
- package/lib/duet/{p-bb7d4e61.entry.js → p-bdb56679.entry.js} +1 -1
- package/lib/duet/{p-e1007ea6.system.entry.js → p-bf01b2a3.system.entry.js} +1 -1
- package/lib/duet/p-bf4f657d.system.entry.js +4 -0
- package/lib/duet/{p-b0416fcb.entry.js → p-c1d00a72.entry.js} +1 -1
- package/lib/duet/{p-c23ab387.system.entry.js → p-c38a3306.system.entry.js} +1 -1
- package/lib/duet/{p-15a2c27e.system.entry.js → p-c6eb7ed0.system.entry.js} +1 -1
- package/lib/duet/{p-3b9604e9.system.entry.js → p-c83c936f.system.entry.js} +1 -1
- package/lib/duet/p-c86d2229.entry.js +4 -0
- package/lib/duet/{p-0e045be0.system.entry.js → p-d2cfb003.system.entry.js} +1 -1
- package/lib/duet/{p-ce9b09ee.system.entry.js → p-d339f6db.system.entry.js} +1 -1
- package/lib/duet/{p-f6af1d70.entry.js → p-d40a7872.entry.js} +1 -1
- package/lib/duet/{p-255ef2f1.system.js → p-d5af9e03.system.js} +1 -1
- package/lib/duet/{p-af4294e7.system.entry.js → p-d6641757.system.entry.js} +1 -1
- package/lib/duet/{p-6b52b6f4.system.entry.js → p-d7bb0434.system.entry.js} +1 -1
- package/lib/duet/{p-b6637423.entry.js → p-d9aaf1e7.entry.js} +1 -1
- package/lib/duet/{p-7fc39256.entry.js → p-dafad527.entry.js} +1 -1
- package/lib/duet/{p-0de5b288.system.entry.js → p-dc332689.system.entry.js} +1 -1
- package/lib/duet/{p-1dab1d9c.entry.js → p-dc372b0d.entry.js} +1 -1
- package/lib/duet/{p-42d2ad4e.entry.js → p-de7b708f.entry.js} +1 -1
- package/lib/duet/{p-fedc971f.entry.js → p-dfe03aaa.entry.js} +1 -1
- package/lib/duet/{p-ee01f20b.entry.js → p-e42ab7c6.entry.js} +1 -1
- package/lib/duet/{p-4f973b10.entry.js → p-e4a11340.entry.js} +1 -1
- package/lib/duet/p-e5151a14.system.entry.js +4 -0
- package/lib/duet/{p-63ecf24a.system.entry.js → p-e5489bc7.system.entry.js} +1 -1
- package/lib/duet/{p-c1cbbc7d.entry.js → p-e73ce021.entry.js} +1 -1
- package/lib/duet/{p-45899b5e.entry.js → p-e819b8fb.entry.js} +1 -1
- package/lib/duet/p-ead52cf7.system.js +4 -0
- package/lib/duet/{p-98ec16d6.entry.js → p-f2e37eed.entry.js} +1 -1
- package/lib/duet/{p-24d3c4a8.entry.js → p-f3494bcf.entry.js} +1 -1
- package/lib/duet/{p-15c4eceb.entry.js → p-f4804f02.entry.js} +1 -1
- package/lib/duet/{p-31bc70cf.system.entry.js → p-f4db2b86.system.entry.js} +2 -2
- package/lib/duet/{p-e165eb06.system.entry.js → p-f7fbbc35.system.entry.js} +1 -1
- package/lib/duet/{p-ea45098f.system.entry.js → p-f9e966e7.system.entry.js} +1 -1
- package/lib/duet/{p-b41123b4.entry.js → p-fa52d2f1.entry.js} +1 -1
- package/lib/duet/p-fcd74652.system.entry.js +4 -0
- 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 +3 -3
- 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 +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 +2 -2
- 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 +2 -2
- 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 +34 -5
- 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 +2 -2
- 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 +2 -2
- 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 +6 -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 +26 -4
- 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 +3 -2
- package/lib/esm/duet-toolbar-link.entry.js +1 -1
- package/lib/esm/duet-toolbar.entry.js +39 -3
- 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-6f660fbe.js → focus-utils-6b1704b1.js} +1 -1
- package/lib/esm/{index-3e7e0b4a.js → index-b024f5b5.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 +2 -2
- 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 +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +2 -2
- package/lib/esm-es5/duet-icon.entry.js +1 -1
- 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 +2 -2
- 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 +2 -2
- package/lib/esm-es5/duet-textarea.entry.js +1 -1
- package/lib/esm-es5/duet-toggle.entry.js +1 -1
- 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 +2 -2
- 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-6b1704b1.js +4 -0
- package/lib/esm-es5/{index-3e7e0b4a.js → index-b024f5b5.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-menu-bar/duet-menu-bar.d.ts +10 -0
- package/lib/types/components/duet-slideout/duet-slideout.d.ts +1 -0
- package/lib/types/components/duet-submenu-bar/duet-submenu-bar.d.ts +9 -0
- package/lib/types/components/duet-toolbar/duet-toolbar.d.ts +12 -0
- package/lib/types/components/duet-toolbar-dropdown/duet-toolbar-dropdown.d.ts +6 -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 +56 -0
- package/package.json +5 -5
- package/lib/duet/p-275d65d5.entry.js +0 -4
- package/lib/duet/p-355552d3.system.entry.js +0 -4
- package/lib/duet/p-3d9e1c4b.entry.js +0 -4
- package/lib/duet/p-40a2b2fa.system.js +0 -4
- package/lib/duet/p-5b36c6d6.system.entry.js +0 -4
- package/lib/duet/p-5bfac643.entry.js +0 -4
- package/lib/duet/p-6473dc0f.entry.js +0 -4
- package/lib/duet/p-74540b5e.system.entry.js +0 -4
- package/lib/duet/p-7573fbcd.entry.js +0 -4
- package/lib/duet/p-786be329.entry.js +0 -4
- package/lib/duet/p-870ef497.entry.js +0 -4
- package/lib/duet/p-983dabf1.system.entry.js +0 -4
- package/lib/duet/p-a495ef97.js +0 -4
- package/lib/duet/p-a8bb0bf7.entry.js +0 -4
- package/lib/duet/p-aa828067.entry.js +0 -4
- package/lib/duet/p-c3aafeac.entry.js +0 -4
- package/lib/duet/p-d2d70510.system.entry.js +0 -4
- package/lib/duet/p-dd416fcc.entry.js +0 -4
- package/lib/duet/p-e0a5f9b5.system.entry.js +0 -4
- package/lib/esm-es5/focus-utils-6f660fbe.js +0 -4
|
@@ -10,6 +10,7 @@ export class DuetToolbarDropdown {
|
|
|
10
10
|
this.open = !this.open;
|
|
11
11
|
};
|
|
12
12
|
this.theme = "";
|
|
13
|
+
this.accessibleLabel = undefined;
|
|
13
14
|
this.active = false;
|
|
14
15
|
this.open = false;
|
|
15
16
|
this.icon = undefined;
|
|
@@ -51,7 +52,7 @@ export class DuetToolbarDropdown {
|
|
|
51
52
|
"duet-toolbar-dropdown": true,
|
|
52
53
|
"duet-theme-turva": this.theme === "turva",
|
|
53
54
|
[itemsAlign]: true,
|
|
54
|
-
} }, h("button", { ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", id: "button", type: "button", class: {
|
|
55
|
+
} }, h("button", { ref: element => (this.button = element), "aria-haspopup": "menu", "aria-controls": "menu", "aria-expanded": this.open ? "true" : "false", "aria-current": this.active ? "true" : "false", "aria-label": this.accessibleLabel, id: "button", type: "button", class: {
|
|
55
56
|
active: this.active,
|
|
56
57
|
open: this.open,
|
|
57
58
|
}, onClick: this.onClick, onKeyUp: e => this.handleEscape(e) }, this.icon && (h("duet-icon", { theme: this.theme, name: this.icon, size: "x-small", margin: "none", color: "currentColor" })), h("div", { class: "label" }, h("slot", { name: "label" }), h("duet-icon", { class: "caret", theme: this.theme, name: "action-arrow-down-small", margin: "none", size: "xxx-small", color: "currentColor" }))), h("div", { tabindex: "-1", role: "menu", id: "menu", "aria-labelledby": "button", class: {
|
|
@@ -96,6 +97,23 @@ export class DuetToolbarDropdown {
|
|
|
96
97
|
"reflect": false,
|
|
97
98
|
"defaultValue": "\"\""
|
|
98
99
|
},
|
|
100
|
+
"accessibleLabel": {
|
|
101
|
+
"type": "string",
|
|
102
|
+
"mutable": false,
|
|
103
|
+
"complexType": {
|
|
104
|
+
"original": "string",
|
|
105
|
+
"resolved": "string",
|
|
106
|
+
"references": {}
|
|
107
|
+
},
|
|
108
|
+
"required": false,
|
|
109
|
+
"optional": false,
|
|
110
|
+
"docs": {
|
|
111
|
+
"tags": [],
|
|
112
|
+
"text": "Adds accessible label for the button that is only shown for screen readers.\nTypically, this label text replaces the visible text on the button for\nusers who use assistive technology."
|
|
113
|
+
},
|
|
114
|
+
"attribute": "accessible-label",
|
|
115
|
+
"reflect": false
|
|
116
|
+
},
|
|
99
117
|
"active": {
|
|
100
118
|
"type": "boolean",
|
|
101
119
|
"mutable": true,
|
|
@@ -400,7 +400,7 @@ export class DuetTooltip {
|
|
|
400
400
|
"references": {
|
|
401
401
|
"DuetTooltipBreakpoint": {
|
|
402
402
|
"location": "local",
|
|
403
|
-
"path": "/Users/
|
|
403
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-tooltip/duet-tooltip.tsx"
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
},
|
|
@@ -106,4 +106,26 @@
|
|
|
106
106
|
|
|
107
107
|
duet-paragraph::part(duet-paragraph) {
|
|
108
108
|
word-break: break-word;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
duet-editable-table tfoot {
|
|
112
|
+
display: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.upload-bottom-caption {
|
|
116
|
+
margin-bottom: 12px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.test {
|
|
120
|
+
display: flex;
|
|
121
|
+
flex-direction: row;
|
|
122
|
+
}
|
|
123
|
+
.test .item-categories {
|
|
124
|
+
flex-grow: 1;
|
|
125
|
+
}
|
|
126
|
+
.test .item-label {
|
|
127
|
+
flex-grow: 2;
|
|
128
|
+
}
|
|
129
|
+
.test .item-actions {
|
|
130
|
+
flex-grow: 1;
|
|
109
131
|
}
|
|
@@ -12,12 +12,15 @@ import { ErrorItem } from "./upload-editable-item-error";
|
|
|
12
12
|
import { ProgressItem } from "./upload-editable-item-inprogres";
|
|
13
13
|
import { PendingItem } from "./upload-editable-item-pending";
|
|
14
14
|
import { SuccessItem } from "./upload-editable-item-success";
|
|
15
|
+
import { UploadCategory } from "./upload-item-category";
|
|
15
16
|
import { validateFile, validateTotalAmountIsAboveMax, validateTotalSizeIsAboveMax } from "./upload-validators";
|
|
16
17
|
import { makeXhrRequest, } from "./xhr.helpers";
|
|
17
18
|
/**
|
|
18
|
-
* @slot header - named slot - to place content after description / caption
|
|
19
|
+
* @slot header - named slot - to place content after description / caption (if caption is on top)
|
|
19
20
|
* @slot fileheader - named slot - to place content above "filelist" (only displayed when "filelist" contains items)
|
|
20
21
|
* @slot filefooter - named slot - to place content below "filelist" (only displayed when "filelist" contains items)
|
|
22
|
+
* @slot footer - named slot - to place content below filefooter
|
|
23
|
+
* @slot afterfooter - named slot - to place content below "footer" / caption (if caption is on bottom)
|
|
21
24
|
* @part ${this.identifier}-empty-state : duet-upload-empty-state - named part - can be used to style the empty notification area or hide it completely
|
|
22
25
|
* @part ${this.identifier}-editable-table : duet-upload-editable-table - named part - can be used to style the editable-table
|
|
23
26
|
* @part ${this.identifier}-error-notification : duet-upload-error-notification - named part - can be used to style any error notifications occurring internally
|
|
@@ -384,46 +387,59 @@ export class DuetUpload {
|
|
|
384
387
|
const pending = [];
|
|
385
388
|
const success = [];
|
|
386
389
|
all.forEach(data => {
|
|
390
|
+
var _a, _b;
|
|
387
391
|
const group = this.getGroupFromItemData(data);
|
|
388
392
|
const item = this.getItemHTMLFromItemData(data, group);
|
|
393
|
+
const category = h(UploadCategory, { meta: data.meta });
|
|
394
|
+
const categories = (_b = (_a = data.meta) === null || _a === void 0 ? void 0 : _a.badges) === null || _b === void 0 ? void 0 : _b.join(",");
|
|
389
395
|
if (group === this.DefaultGroups.success) {
|
|
390
396
|
success.push({
|
|
391
397
|
uid: data.uid,
|
|
392
398
|
item,
|
|
399
|
+
hasCategory: data.meta && !!data.meta.badges,
|
|
400
|
+
category,
|
|
393
401
|
group,
|
|
394
|
-
|
|
402
|
+
actionDescription: `${categories || ""} ${data.item.name}`,
|
|
395
403
|
});
|
|
396
404
|
}
|
|
397
405
|
else if (group === this.DefaultGroups.inprogress) {
|
|
398
406
|
inprogress.push({
|
|
399
407
|
uid: data.uid,
|
|
400
408
|
item,
|
|
409
|
+
hasCategory: data.meta && !!data.meta.badges,
|
|
410
|
+
category,
|
|
401
411
|
group,
|
|
402
|
-
|
|
412
|
+
actionDescription: `category ${data.item.name}`,
|
|
403
413
|
});
|
|
404
414
|
}
|
|
405
415
|
else if (group === this.DefaultGroups.pending) {
|
|
406
416
|
pending.push({
|
|
407
417
|
uid: data.uid,
|
|
408
418
|
item,
|
|
419
|
+
hasCategory: data.meta && !!data.meta.badges,
|
|
420
|
+
category,
|
|
409
421
|
group,
|
|
410
|
-
|
|
422
|
+
actionDescription: `category ${data.item.name}`,
|
|
411
423
|
});
|
|
412
424
|
}
|
|
413
425
|
else if (group === this.DefaultGroups.failure) {
|
|
414
426
|
failure.push({
|
|
415
427
|
uid: data.uid,
|
|
416
428
|
item,
|
|
429
|
+
hasCategory: data.meta && !!data.meta.badges,
|
|
430
|
+
category,
|
|
417
431
|
group,
|
|
418
|
-
|
|
432
|
+
actionDescription: `category ${data.item.name}`,
|
|
419
433
|
});
|
|
420
434
|
}
|
|
421
435
|
else if (data.group) {
|
|
422
436
|
inprogress.push({
|
|
423
437
|
uid: data.uid,
|
|
424
438
|
item,
|
|
439
|
+
hasCategory: data.meta && !!data.meta.badges,
|
|
440
|
+
category,
|
|
425
441
|
group: data.group,
|
|
426
|
-
|
|
442
|
+
actionDescription: `category ${data.item.name}`,
|
|
427
443
|
});
|
|
428
444
|
}
|
|
429
445
|
});
|
|
@@ -434,14 +450,27 @@ export class DuetUpload {
|
|
|
434
450
|
inprogress,
|
|
435
451
|
};
|
|
436
452
|
};
|
|
437
|
-
this.getColumns = (group) => {
|
|
453
|
+
this.getColumns = (group, hasCategory) => {
|
|
438
454
|
return [
|
|
439
455
|
{
|
|
440
456
|
sort_order: 1,
|
|
441
457
|
direction: -1,
|
|
442
458
|
index: 0,
|
|
459
|
+
key: "category",
|
|
460
|
+
label: {
|
|
461
|
+
fi: "Kategoria",
|
|
462
|
+
sv: "Kategori",
|
|
463
|
+
en: "Category",
|
|
464
|
+
},
|
|
465
|
+
display: hasCategory,
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
sort_order: 1,
|
|
469
|
+
direction: -1,
|
|
470
|
+
index: 1,
|
|
443
471
|
key: group.id,
|
|
444
472
|
label: group.label,
|
|
473
|
+
display: true,
|
|
445
474
|
},
|
|
446
475
|
];
|
|
447
476
|
};
|
|
@@ -455,9 +484,8 @@ export class DuetUpload {
|
|
|
455
484
|
if (!(currentItems === null || currentItems === void 0 ? void 0 : currentItems.length)) {
|
|
456
485
|
return;
|
|
457
486
|
}
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
} }, !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 })))))));
|
|
487
|
+
const hasCategory = currentItems.some(item => item.hasCategory);
|
|
488
|
+
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 }));
|
|
461
489
|
});
|
|
462
490
|
return EditableTables;
|
|
463
491
|
};
|
|
@@ -573,15 +601,9 @@ export class DuetUpload {
|
|
|
573
601
|
this.multiple = true;
|
|
574
602
|
this.limitSelection = false;
|
|
575
603
|
this.value = undefined;
|
|
604
|
+
this.externalUploadButtonId = undefined;
|
|
605
|
+
this.captionOnBottom = false;
|
|
576
606
|
this.groups = [
|
|
577
|
-
{
|
|
578
|
-
id: this.DefaultGroups.pending,
|
|
579
|
-
label: {
|
|
580
|
-
en: "Files to upload",
|
|
581
|
-
sv: "Filer att ladda",
|
|
582
|
-
fi: "Ladattavat tiedostot",
|
|
583
|
-
},
|
|
584
|
-
},
|
|
585
607
|
{
|
|
586
608
|
id: this.DefaultGroups.success,
|
|
587
609
|
label: {
|
|
@@ -606,6 +628,14 @@ export class DuetUpload {
|
|
|
606
628
|
en: "Files inprogress",
|
|
607
629
|
},
|
|
608
630
|
},
|
|
631
|
+
{
|
|
632
|
+
id: this.DefaultGroups.pending,
|
|
633
|
+
label: {
|
|
634
|
+
en: "Files to upload",
|
|
635
|
+
sv: "Filer att ladda",
|
|
636
|
+
fi: "Ladattavat tiedostot",
|
|
637
|
+
},
|
|
638
|
+
},
|
|
609
639
|
];
|
|
610
640
|
}
|
|
611
641
|
watchValidHandler(newValue, oldValue) {
|
|
@@ -626,6 +656,7 @@ export class DuetUpload {
|
|
|
626
656
|
inheritGlobalTheme(this);
|
|
627
657
|
this.listenForActionEvents();
|
|
628
658
|
this.onReady();
|
|
659
|
+
this.externalUploadButton = document.querySelector(`#${this.externalUploadButtonId}`);
|
|
629
660
|
}
|
|
630
661
|
componentWillRender() {
|
|
631
662
|
// listen to the events from the component
|
|
@@ -692,14 +723,17 @@ export class DuetUpload {
|
|
|
692
723
|
caption = caption.replace(/{maxbytes}/g, `${maxMegaBytesPrFile.toString()} MB`);
|
|
693
724
|
caption = caption.replace(/{maxbytestotal}/g, `${maxMegaBytesTotal.toString()} MB`);
|
|
694
725
|
caption = caption.replace(/{filetypes}/g, this.allowedExtensions.split(",").join(", "));
|
|
726
|
+
if (this.externalUploadButton) {
|
|
727
|
+
this.externalUploadButton.ariaLabel = caption;
|
|
728
|
+
}
|
|
695
729
|
// @ts-ignore
|
|
696
|
-
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: {
|
|
730
|
+
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: {
|
|
697
731
|
"duet-upload-filelist-empty": !this.files.size,
|
|
698
732
|
"duet-upload-filelist": true,
|
|
699
733
|
"duet-upload-filelist-filled": this.files.size,
|
|
700
734
|
}, id: this.labelId, for: identifier }, h("span", { class: {
|
|
701
735
|
"duet-upload-filelist-empty-label": !this.files.size,
|
|
702
|
-
} }, 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 => {
|
|
736
|
+
} }, 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 => {
|
|
703
737
|
this.nativeInput = input;
|
|
704
738
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
705
739
|
"duet-upload": true,
|
|
@@ -939,7 +973,7 @@ export class DuetUpload {
|
|
|
939
973
|
"references": {
|
|
940
974
|
"XHRInternalMiddleWare": {
|
|
941
975
|
"location": "local",
|
|
942
|
-
"path": "/Users/
|
|
976
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
943
977
|
}
|
|
944
978
|
}
|
|
945
979
|
},
|
|
@@ -1318,7 +1352,7 @@ export class DuetUpload {
|
|
|
1318
1352
|
"references": {
|
|
1319
1353
|
"StringMap": {
|
|
1320
1354
|
"location": "local",
|
|
1321
|
-
"path": "/Users/
|
|
1355
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1322
1356
|
}
|
|
1323
1357
|
}
|
|
1324
1358
|
},
|
|
@@ -1694,6 +1728,41 @@ export class DuetUpload {
|
|
|
1694
1728
|
"attribute": "value",
|
|
1695
1729
|
"reflect": false
|
|
1696
1730
|
},
|
|
1731
|
+
"externalUploadButtonId": {
|
|
1732
|
+
"type": "string",
|
|
1733
|
+
"mutable": false,
|
|
1734
|
+
"complexType": {
|
|
1735
|
+
"original": "string",
|
|
1736
|
+
"resolved": "string",
|
|
1737
|
+
"references": {}
|
|
1738
|
+
},
|
|
1739
|
+
"required": false,
|
|
1740
|
+
"optional": false,
|
|
1741
|
+
"docs": {
|
|
1742
|
+
"tags": [],
|
|
1743
|
+
"text": "Id of external uploadButton of the input used for setting accessibility attributes."
|
|
1744
|
+
},
|
|
1745
|
+
"attribute": "external-upload-button-id",
|
|
1746
|
+
"reflect": false
|
|
1747
|
+
},
|
|
1748
|
+
"captionOnBottom": {
|
|
1749
|
+
"type": "boolean",
|
|
1750
|
+
"mutable": false,
|
|
1751
|
+
"complexType": {
|
|
1752
|
+
"original": "boolean",
|
|
1753
|
+
"resolved": "boolean",
|
|
1754
|
+
"references": {}
|
|
1755
|
+
},
|
|
1756
|
+
"required": false,
|
|
1757
|
+
"optional": false,
|
|
1758
|
+
"docs": {
|
|
1759
|
+
"tags": [],
|
|
1760
|
+
"text": "If true the input caption will be placed below file list and footer"
|
|
1761
|
+
},
|
|
1762
|
+
"attribute": "caption-on-bottom",
|
|
1763
|
+
"reflect": false,
|
|
1764
|
+
"defaultValue": "false"
|
|
1765
|
+
},
|
|
1697
1766
|
"groups": {
|
|
1698
1767
|
"type": "unknown",
|
|
1699
1768
|
"mutable": false,
|
|
@@ -1703,7 +1772,7 @@ export class DuetUpload {
|
|
|
1703
1772
|
"references": {
|
|
1704
1773
|
"DuetUploadTableGroupName": {
|
|
1705
1774
|
"location": "local",
|
|
1706
|
-
"path": "/Users/
|
|
1775
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1707
1776
|
}
|
|
1708
1777
|
}
|
|
1709
1778
|
},
|
|
@@ -1719,7 +1788,7 @@ export class DuetUpload {
|
|
|
1719
1788
|
}],
|
|
1720
1789
|
"text": "Array of group names that you want the editable table to use to display files"
|
|
1721
1790
|
},
|
|
1722
|
-
"defaultValue": "[\n {\n id: this.DefaultGroups.
|
|
1791
|
+
"defaultValue": "[\n {\n id: this.DefaultGroups.success,\n label: {\n fi: \"Valmiit tiedostot\",\n sv: \"Files success\",\n en: \"Files success\",\n },\n },\n {\n id: this.DefaultGroups.failure,\n label: {\n fi: \"Tiedostot, joissa on virheit\u00E4\",\n sv: \"Filer med fel\",\n en: \"Files with errors\",\n },\n },\n {\n id: this.DefaultGroups.inprogress,\n label: {\n fi: \"Kesken olevat tiedostot\",\n sv: \"Filer inprogress\",\n en: \"Files inprogress\",\n },\n },\n {\n id: this.DefaultGroups.pending,\n label: {\n en: \"Files to upload\",\n sv: \"Filer att ladda\",\n fi: \"Ladattavat tiedostot\",\n },\n },\n ]"
|
|
1723
1792
|
}
|
|
1724
1793
|
};
|
|
1725
1794
|
}
|
|
@@ -1745,7 +1814,7 @@ export class DuetUpload {
|
|
|
1745
1814
|
"references": {
|
|
1746
1815
|
"DuetUploadEvent": {
|
|
1747
1816
|
"location": "local",
|
|
1748
|
-
"path": "/Users/
|
|
1817
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1749
1818
|
}
|
|
1750
1819
|
}
|
|
1751
1820
|
}
|
|
@@ -1765,7 +1834,7 @@ export class DuetUpload {
|
|
|
1765
1834
|
"references": {
|
|
1766
1835
|
"DuetUploadEvent": {
|
|
1767
1836
|
"location": "local",
|
|
1768
|
-
"path": "/Users/
|
|
1837
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1769
1838
|
}
|
|
1770
1839
|
}
|
|
1771
1840
|
}
|
|
@@ -1785,7 +1854,7 @@ export class DuetUpload {
|
|
|
1785
1854
|
"references": {
|
|
1786
1855
|
"DuetUploadEvent": {
|
|
1787
1856
|
"location": "local",
|
|
1788
|
-
"path": "/Users/
|
|
1857
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1789
1858
|
}
|
|
1790
1859
|
}
|
|
1791
1860
|
}
|
|
@@ -1805,7 +1874,7 @@ export class DuetUpload {
|
|
|
1805
1874
|
"references": {
|
|
1806
1875
|
"DuetUploadEvent": {
|
|
1807
1876
|
"location": "local",
|
|
1808
|
-
"path": "/Users/
|
|
1877
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1809
1878
|
}
|
|
1810
1879
|
}
|
|
1811
1880
|
}
|
|
@@ -1825,7 +1894,7 @@ export class DuetUpload {
|
|
|
1825
1894
|
"references": {
|
|
1826
1895
|
"DuetUploadEvent": {
|
|
1827
1896
|
"location": "local",
|
|
1828
|
-
"path": "/Users/
|
|
1897
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1829
1898
|
}
|
|
1830
1899
|
}
|
|
1831
1900
|
}
|
|
@@ -1845,7 +1914,7 @@ export class DuetUpload {
|
|
|
1845
1914
|
"references": {
|
|
1846
1915
|
"DuetUploadEvent": {
|
|
1847
1916
|
"location": "local",
|
|
1848
|
-
"path": "/Users/
|
|
1917
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1849
1918
|
}
|
|
1850
1919
|
}
|
|
1851
1920
|
}
|
|
@@ -1865,7 +1934,7 @@ export class DuetUpload {
|
|
|
1865
1934
|
"references": {
|
|
1866
1935
|
"DuetUploadEvent": {
|
|
1867
1936
|
"location": "local",
|
|
1868
|
-
"path": "/Users/
|
|
1937
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1869
1938
|
}
|
|
1870
1939
|
}
|
|
1871
1940
|
}
|
|
@@ -1885,7 +1954,7 @@ export class DuetUpload {
|
|
|
1885
1954
|
"references": {
|
|
1886
1955
|
"DuetUploadEvent": {
|
|
1887
1956
|
"location": "local",
|
|
1888
|
-
"path": "/Users/
|
|
1957
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1889
1958
|
}
|
|
1890
1959
|
}
|
|
1891
1960
|
}
|
|
@@ -1905,7 +1974,7 @@ export class DuetUpload {
|
|
|
1905
1974
|
"references": {
|
|
1906
1975
|
"DuetUploadEvent": {
|
|
1907
1976
|
"location": "local",
|
|
1908
|
-
"path": "/Users/
|
|
1977
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1909
1978
|
}
|
|
1910
1979
|
}
|
|
1911
1980
|
}
|
|
@@ -1925,7 +1994,7 @@ export class DuetUpload {
|
|
|
1925
1994
|
"references": {
|
|
1926
1995
|
"DuetUploadEvent": {
|
|
1927
1996
|
"location": "local",
|
|
1928
|
-
"path": "/Users/
|
|
1997
|
+
"path": "/Users/laaksju3/duetds/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1929
1998
|
}
|
|
1930
1999
|
}
|
|
1931
2000
|
}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { h } from "@stencil/core";
|
|
5
|
-
export const ProgressItem = ({ progress, name }) => (h("span", { class: "duet-upload-item-name" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name, h("br", null), h("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
|
|
5
|
+
export const ProgressItem = ({ progress, name }) => (h("span", { class: "duet-upload-item-name" }, h("duet-paragraph", { class: "duet-upload-item-name", color: "gray-darker", margin: "none", weight: "semi-bold" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name), h("br", null), h("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
|
|
@@ -4,11 +4,19 @@
|
|
|
4
4
|
import { h } from "@stencil/core";
|
|
5
5
|
import { formatBytes } from "./upload.helpers";
|
|
6
6
|
export const SuccessItem = ({ data, showLinks }) => {
|
|
7
|
-
const { item, size, uploaded, url
|
|
7
|
+
const { item, size, uploaded, url } = data;
|
|
8
8
|
const { name } = item;
|
|
9
9
|
const ContentName = (h("span", { class: "duet-upload-item-name" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name));
|
|
10
10
|
const SizeText = (h("span", { class: "duet-upload-item-size", style: { fontSize: "14px", fontWeight: "400" } }, "(", formatBytes(size), ")"));
|
|
11
11
|
const FilenameLine = uploaded && url && showLinks ? (h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" }, h("duet-link", { url: url, external: true }, ContentName), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), SizeText)) : (h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" }, ContentName, h("duet-spacer", { size: "xx-small", direction: "horizontal" }), SizeText));
|
|
12
|
-
const Badges =
|
|
13
|
-
|
|
12
|
+
// const Badges =
|
|
13
|
+
// meta && meta.badges ? (
|
|
14
|
+
// <span>
|
|
15
|
+
// <duet-spacer size="xx-small"></duet-spacer>
|
|
16
|
+
// {meta.badges.map(badgeText => (
|
|
17
|
+
// <duet-badge color="primary">{badgeText}</duet-badge>
|
|
18
|
+
// ))}
|
|
19
|
+
// </span>
|
|
20
|
+
// ) : undefined
|
|
21
|
+
return (h("span", { class: "duet-upload-item-success" }, h("div", null, FilenameLine)));
|
|
14
22
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { h } from "@stencil/core";
|
|
5
|
+
export const UploadCategory = ({ meta }) => {
|
|
6
|
+
const Badges = meta && meta.badges ? (h("span", null, h("duet-spacer", { size: "xx-small" }), meta.badges.map(badgeText => (h("duet-badge", { color: "primary" }, badgeText))))) : (h("span", null));
|
|
7
|
+
return Badges;
|
|
8
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { h } from "@stencil/core";
|
|
5
|
+
import { formatBytes } from "./upload.helpers";
|
|
6
|
+
export const UploadItem = ({ data, showLinks }) => {
|
|
7
|
+
const { item, size, uploaded, url, meta } = data;
|
|
8
|
+
const { name } = item;
|
|
9
|
+
const ContentName = (h("span", { class: "duet-upload-item-name" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name));
|
|
10
|
+
const SizeText = (h("span", { class: "duet-upload-item-size", style: { fontSize: "14px", fontWeight: "400" } }, "(", formatBytes(size), ")"));
|
|
11
|
+
const FilenameLine = uploaded && url && showLinks ? (h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" }, h("duet-link", { url: url, external: true }, ContentName), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), SizeText)) : (h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" }, ContentName, h("duet-spacer", { size: "xx-small", direction: "horizontal" }), SizeText));
|
|
12
|
+
const Badges = meta && meta.badges ? (h("span", null, h("duet-spacer", { size: "xx-small" }), meta.badges.map(badgeText => (h("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
13
|
+
return (h("div", { class: {
|
|
14
|
+
test: true,
|
|
15
|
+
} }, h("div", { class: "item-categories" }, Badges), h("div", { class: "item-label" }, FilenameLine), h("div", { class: "item-actions" }, "ACTIONS")));
|
|
16
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetActionButton$1, d as defineCustomElement$1 } from './p-15a0e9fd.js';
|
|
5
5
|
|
|
6
6
|
const DuetActionButton = DuetActionButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetAlert$1, d as defineCustomElement$1 } from './p-e67ec38e.js';
|
|
5
5
|
|
|
6
6
|
const DuetAlert = DuetAlert$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetBadge$1, d as defineCustomElement$1 } from './p-05af1562.js';
|
|
5
5
|
|
|
6
6
|
const DuetBadge = DuetBadge$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-9c053778.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
-
import { d as defineCustomElement$2 } from './p-
|
|
6
|
+
import { d as defineCustomElement$2 } from './p-1460a593.js';
|
|
7
7
|
|
|
8
8
|
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}";
|
|
9
9
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, F as Fragment, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h, F as Fragment, d as Host } from './p-9c053778.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { g as getLocaleString } from './p-6c05e879.js';
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-1460a593.js';
|
|
8
8
|
|
|
9
9
|
var actionArrowRightSmall={"title":"action-arrow-right-small","tags":"action arrow right small caret","svg":"<svg fill=\"currentColor\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\" role=\"img\"><path d=\"M19.5 12a2.3 2.3 0 0 1-.78 1.729L7.568 23.54a1.847 1.847 0 0 1-2.439-2.773l9.752-8.579a.25.25 0 0 0 0-.376L5.129 3.233A1.847 1.847 0 0 1 7.568.46l11.148 9.808A2.31 2.31 0 0 1 19.5 12z\"/></svg>"};
|
|
10
10
|
|
|
11
|
-
const duetBreadcrumbsCss = "*,*::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}.duet-breadcrumbs{font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\"}.duet-breadcrumbs ol{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start;padding:10px
|
|
11
|
+
const duetBreadcrumbsCss = "*,*::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-breadcrumbs{display:flex;align-items:center;justify-content:center;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";background:rgb(243, 249, 252);border-bottom:1px solid rgb(225, 227, 230)}.duet-breadcrumbs .container{display:flex;align-items:center;justify-content:space-between;width:100%;max-width:1384px;min-height:36px;margin:0 28px}.duet-breadcrumbs ol{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-start;padding:10px 0;color:rgb(0, 41, 77);list-style:none}.duet-breadcrumbs ol li{font-weight:400}.duet-breadcrumbs ol li:last-of-type{font-weight:600}.duet-breadcrumbs.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:rgb(245, 245, 247)}.duet-breadcrumbs.duet-theme-turva ol{color:rgb(23, 28, 58)}.duet-breadcrumbs .duet-breadrumbs-arrow{display:inherit;align-items:center;justify-content:center;width:0.375rem;height:0.375rem}.duet-breadcrumbs .hide{display:none}";
|
|
12
12
|
|
|
13
13
|
const DuetBreadcrumbs$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
14
14
|
constructor() {
|
|
@@ -55,7 +55,7 @@ const DuetBreadcrumbs$1 = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
|
55
55
|
return (h(Host, null, h("nav", { "aria-label": this.breadcrumbsAriaLabel, class: {
|
|
56
56
|
"duet-breadcrumbs": true,
|
|
57
57
|
"duet-theme-turva": this.theme === "turva",
|
|
58
|
-
} }, h("ol", null, this.children.map((child, index) => (h(Fragment, null, index > 0 && (h("li", { "aria-hidden": "true" }, h("duet-icon", { class: "duet-breadrumbs-arrow", size: "auto", icon: actionArrowRightSmall.svg, margin: "none", color: "currentColor" }))), h("li", { innerHTML: child.outerHTML }), h("div", { class: "hide" }, h("slot", null)))))))));
|
|
58
|
+
} }, h("div", { class: "container" }, h("ol", null, this.children.map((child, index) => (h(Fragment, null, index > 0 && (h("li", { "aria-hidden": "true" }, h("duet-icon", { class: "duet-breadrumbs-arrow", size: "auto", icon: actionArrowRightSmall.svg, margin: "none", color: "currentColor" }))), h("li", { innerHTML: child.outerHTML }), h("div", { class: "hide" }, h("slot", null))))))))));
|
|
59
59
|
}
|
|
60
60
|
get element() { return this; }
|
|
61
61
|
static get style() { return duetBreadcrumbsCss; }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetButton$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetButton$1, d as defineCustomElement$1 } from './p-30637273.js';
|
|
5
5
|
|
|
6
6
|
const DuetButton = DuetButton$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCaption$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCaption$1, d as defineCustomElement$1 } from './p-69659e26.js';
|
|
5
5
|
|
|
6
6
|
const DuetCaption = DuetCaption$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment, d as Host } from './p-9c053778.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { c as createID } from './p-c1325e35.js';
|
|
7
7
|
import { i as isKeyboardClick } from './p-d8549efe.js';
|
|
8
8
|
import { s as sanitizeString } from './p-5a9d75e1.js';
|
|
9
9
|
import { g as getColorByName } from './p-9ed347f9.js';
|
|
10
|
-
import { d as defineCustomElement$3 } from './p-
|
|
11
|
-
import { d as defineCustomElement$2 } from './p-
|
|
10
|
+
import { d as defineCustomElement$3 } from './p-1460a593.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-29949e1b.js';
|
|
12
12
|
|
|
13
13
|
const duetHeadingLevels = ["h1", "h2", "h3", "h4", "h5", "h6"];
|
|
14
14
|
const duetBlock = "div";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCheckbox$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCheckbox$1, d as defineCustomElement$1 } from './p-1cbf685d.js';
|
|
5
5
|
|
|
6
6
|
const DuetCheckbox = DuetCheckbox$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { D as DuetCheckmark$1, d as defineCustomElement$1 } from './p-
|
|
4
|
+
import { D as DuetCheckmark$1, d as defineCustomElement$1 } from './p-19150a67.js';
|
|
5
5
|
|
|
6
6
|
const DuetCheckmark = DuetCheckmark$1;
|
|
7
7
|
const defineCustomElement = defineCustomElement$1;
|