@duetds/components 6.8.9 → 6.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/hydrate/index.js +337 -196
- package/lib/cjs/duet-action-button.cjs.entry.js +19 -4
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
- package/lib/cjs/duet-button_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-caption_4.cjs.entry.js +3 -3
- package/lib/cjs/duet-card.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
- package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
- package/lib/cjs/duet-combobox.cjs.entry.js +12 -2
- package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +112 -127
- 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 +14 -4
- package/lib/cjs/duet-header_2.cjs.entry.js +20 -6
- package/lib/cjs/duet-hero.cjs.entry.js +15 -3
- package/lib/cjs/duet-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-multiselect.cjs.entry.js +9 -3
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +15 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +47 -27
- package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +21 -6
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout.cjs.entry.js +5 -5
- 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 +22 -7
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +2 -2
- 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 +16 -1
- package/lib/cjs/duet-tray.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{focus-utils-f5b81c1f.js → focus-utils-46e27452.js} +1 -1
- package/lib/cjs/{index-8a8ba131.js → index-8512a70b.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/cjs/{token-utils-2e10264d.js → token-utils-4bfb15d4.js} +4 -1
- package/lib/cjs/{tokens.module-69170ddd.js → tokens.module-d402cfac.js} +0 -1
- package/lib/collection/components/duet-action-button/duet-action-button.js +27 -8
- package/lib/collection/components/duet-alert/duet-alert.js +1 -1
- package/lib/collection/components/duet-button/duet-button.js +5 -5
- package/lib/collection/components/duet-caption/duet-caption.js +1 -1
- package/lib/collection/components/duet-card/duet-card.js +3 -3
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-choice/duet-choice.js +3 -3
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
- package/lib/collection/components/duet-combobox/duet-combobox.js +19 -6
- 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 +21 -9
- 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.css +18 -0
- package/lib/collection/components/duet-grid/duet-grid.js +27 -3
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +3 -2
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +32 -0
- package/lib/collection/components/duet-header/duet-header.js +35 -19
- package/lib/collection/components/duet-heading/duet-heading.js +1 -1
- package/lib/collection/components/duet-hero/duet-hero.css +10 -0
- package/lib/collection/components/duet-hero/duet-hero.js +22 -8
- package/lib/collection/components/duet-icon/duet-icon.js +1 -1
- package/lib/collection/components/duet-input/duet-input.js +8 -8
- package/lib/collection/components/duet-label/duet-label.js +2 -2
- package/lib/collection/components/duet-layout/duet-layout.js +1 -1
- package/lib/collection/components/duet-list/duet-list.js +4 -4
- package/lib/collection/components/duet-logo/duet-logo.js +7 -7
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +1 -1
- package/lib/collection/components/duet-modal/duet-modal.js +3 -3
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +16 -9
- package/lib/collection/components/duet-notification/duet-notification.js +22 -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 +50 -30
- package/lib/collection/components/duet-pagination/duet-pagination.js +29 -11
- 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.css +0 -4
- package/lib/collection/components/duet-select/duet-select.js +6 -6
- package/lib/collection/components/duet-slideout/duet-slideout.css +2 -0
- package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
- package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.css +5 -21
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.css +1 -0
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +21 -5
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
- package/lib/collection/components/duet-table/duet-table.js +20 -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 +22 -5
- package/lib/collection/components/duet-upload/duet-upload.css +89 -13
- package/lib/collection/components/duet-upload/duet-upload.js +113 -90
- package/lib/collection/components/duet-upload/upload-item-header.js +8 -0
- package/lib/collection/components/duet-upload/upload-item.js +22 -6
- package/lib/collection/utils/token-utils.js +2 -0
- package/lib/dist-custom-elements/duet-action-button.js +1 -1
- package/lib/dist-custom-elements/duet-alert.js +1 -1
- package/lib/dist-custom-elements/duet-badge.js +1 -1
- package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
- package/lib/dist-custom-elements/duet-breadcrumbs.js +3 -3
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +4 -4
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-choice-group.js +6 -6
- package/lib/dist-custom-elements/duet-choice.js +6 -6
- package/lib/dist-custom-elements/duet-collapsible.js +2 -2
- package/lib/dist-custom-elements/duet-combobox.js +16 -5
- 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 +11 -11
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +246 -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 +5 -5
- 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 +26 -12
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +25 -13
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -1
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
- package/lib/dist-custom-elements/duet-modal.js +8 -8
- package/lib/dist-custom-elements/duet-multiselect.js +18 -11
- package/lib/dist-custom-elements/duet-nav.js +1 -1
- package/lib/dist-custom-elements/duet-notification-drawer.js +5 -5
- package/lib/dist-custom-elements/duet-notification.js +19 -5
- package/lib/dist-custom-elements/duet-number-input.js +56 -36
- package/lib/dist-custom-elements/duet-page-heading.js +2 -2
- package/lib/dist-custom-elements/duet-pagination.js +31 -15
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-radio-group.js +6 -6
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +3 -3
- package/lib/dist-custom-elements/duet-range-stepper.js +5 -5
- 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 +4 -4
- package/lib/dist-custom-elements/duet-slideout.js +5 -5
- 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 +24 -8
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
- package/lib/dist-custom-elements/duet-tab-group.js +10 -10
- package/lib/dist-custom-elements/duet-tab.js +2 -2
- 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 +5 -5
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +123 -159
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-35d1520f.js → p-00afad07.js} +1 -1
- package/lib/dist-custom-elements/{p-6c05e879.js → p-076452be.js} +1 -1
- package/lib/dist-custom-elements/{p-aa453ca9.js → p-117109e4.js} +2 -2
- package/lib/dist-custom-elements/{p-0f07edcd.js → p-11fbe397.js} +1 -1
- package/lib/dist-custom-elements/{p-8563290f.js → p-2a919c81.js} +21 -6
- package/lib/dist-custom-elements/{p-db993558.js → p-414fdb0c.js} +2 -2
- package/lib/dist-custom-elements/{p-48ee4427.js → p-43bbb094.js} +2 -2
- package/lib/dist-custom-elements/{p-33e00967.js → p-505389ac.js} +1 -1
- package/lib/dist-custom-elements/{p-cefc1697.js → p-51307fda.js} +2 -2
- package/lib/dist-custom-elements/{p-23e46e22.js → p-528cdd3e.js} +6 -6
- package/lib/dist-custom-elements/{p-2bfc9c26.js → p-57d6495c.js} +1 -1
- package/lib/dist-custom-elements/{p-4af6c136.js → p-5e60f757.js} +9 -9
- package/lib/dist-custom-elements/{p-9ed347f9.js → p-68024252.js} +4 -2
- package/lib/dist-custom-elements/{p-ce3afba1.js → p-69fa1743.js} +8 -8
- package/lib/dist-custom-elements/{p-babace4d.js → p-6f661b09.js} +2 -2
- package/lib/dist-custom-elements/{p-88d347ec.js → p-72635656.js} +9 -2
- package/lib/dist-custom-elements/{p-3dca144f.js → p-7392a942.js} +2 -2
- package/lib/dist-custom-elements/{p-297a6774.js → p-7c4c8cf0.js} +1 -1
- package/lib/dist-custom-elements/{p-fa582233.js → p-84d75d9d.js} +4 -4
- package/lib/dist-custom-elements/{p-03367341.js → p-8d12a863.js} +1 -1
- package/lib/dist-custom-elements/{p-8348ca39.js → p-9175529e.js} +3 -3
- package/lib/dist-custom-elements/{p-799100e3.js → p-94df5d2c.js} +1 -1
- package/lib/dist-custom-elements/{p-697167af.js → p-98b0f345.js} +1 -1
- package/lib/dist-custom-elements/p-9f027a93.js +183 -0
- package/lib/dist-custom-elements/{p-2e320d47.js → p-afc65a24.js} +2 -2
- package/lib/dist-custom-elements/{p-fbfbd3c9.js → p-b51fbd15.js} +2 -2
- package/lib/dist-custom-elements/{p-2697a4f6.js → p-b7b7c63b.js} +2 -2
- package/lib/dist-custom-elements/{p-e95c3a28.js → p-bbf48894.js} +1 -1
- package/lib/dist-custom-elements/{p-7cc3a9b6.js → p-bdc087cb.js} +18 -5
- package/lib/dist-custom-elements/{p-35c660bf.js → p-c272c5d5.js} +6 -6
- package/lib/dist-custom-elements/{p-0853da89.js → p-c57eccd3.js} +23 -7
- package/lib/dist-custom-elements/{p-2f2a5be2.js → p-c8659d75.js} +7 -7
- package/lib/dist-custom-elements/{p-d409a0fc.js → p-cefb33f9.js} +1 -1
- package/lib/dist-custom-elements/{p-eabaa24d.js → p-f1b800f0.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-062d4c6b.entry.js → p-00c11b87.entry.js} +1 -1
- package/lib/duet/{p-abde6822.entry.js → p-018b0ffe.entry.js} +1 -1
- package/lib/duet/p-01ca2f64.system.entry.js +4 -0
- package/lib/duet/{p-bf91e001.entry.js → p-02fb736a.entry.js} +1 -1
- package/lib/duet/{p-ad9b1943.entry.js → p-04ccc444.entry.js} +1 -1
- package/lib/duet/{p-398584d4.entry.js → p-05f30291.entry.js} +1 -1
- package/lib/duet/p-08b03779.system.entry.js +4 -0
- package/lib/duet/{p-55e5bf94.entry.js → p-097c4d0c.entry.js} +1 -1
- package/lib/duet/p-0ab4083f.entry.js +4 -0
- package/lib/duet/{p-808cc181.system.entry.js → p-0ca53854.system.entry.js} +1 -1
- package/lib/duet/{p-dc0d47f6.system.entry.js → p-0e8dab5b.system.entry.js} +1 -1
- package/lib/duet/{p-236447b8.entry.js → p-1254c99a.entry.js} +1 -1
- package/lib/duet/{p-3db073f3.system.entry.js → p-1263323e.system.entry.js} +1 -1
- package/lib/duet/{p-1dfc8eb0.system.entry.js → p-133d2ee1.system.entry.js} +1 -1
- package/lib/duet/{p-d35c775f.system.entry.js → p-14e3383d.system.entry.js} +1 -1
- package/lib/duet/{p-8da23c48.entry.js → p-154c0d34.entry.js} +1 -1
- package/lib/duet/{p-45b4586f.system.entry.js → p-1666fed9.system.entry.js} +1 -1
- package/lib/duet/{p-fdf5e1b6.entry.js → p-1739bdd1.entry.js} +1 -1
- package/lib/duet/p-187c9ec6.system.entry.js +4 -0
- package/lib/duet/{p-477efcbc.entry.js → p-2078d7cd.entry.js} +1 -1
- package/lib/duet/{p-3cdfb467.entry.js → p-22caa775.entry.js} +1 -1
- package/lib/duet/{p-060f8f64.entry.js → p-2695e6c6.entry.js} +1 -1
- package/lib/duet/{p-8c5399f3.entry.js → p-27cc2332.entry.js} +1 -1
- package/lib/duet/{p-96853ebb.entry.js → p-2c28eb80.entry.js} +1 -1
- package/lib/duet/{p-365bc70c.entry.js → p-2c6e4614.entry.js} +1 -1
- package/lib/duet/{p-3023d41a.system.entry.js → p-2d6e3927.system.entry.js} +1 -1
- package/lib/duet/{p-936a1b6b.entry.js → p-2e1e2d3d.entry.js} +1 -1
- package/lib/duet/{p-0226f751.system.entry.js → p-2f936baf.system.entry.js} +1 -1
- package/lib/duet/{p-36cb9f64.system.entry.js → p-33bf6eed.system.entry.js} +1 -1
- package/lib/duet/{p-7c9bdbe1.system.entry.js → p-340bef19.system.entry.js} +1 -1
- package/lib/duet/{p-c9ac338f.system.entry.js → p-35907d51.system.entry.js} +1 -1
- package/lib/duet/p-361ce072.system.entry.js +4 -0
- package/lib/duet/{p-61b2e583.entry.js → p-376ec229.entry.js} +1 -1
- package/lib/duet/{p-6aeb4931.entry.js → p-3856f3a8.entry.js} +1 -1
- package/lib/duet/{p-7e4af76c.system.entry.js → p-3a21d43b.system.entry.js} +1 -1
- package/lib/duet/{p-6a011296.entry.js → p-3a28cf58.entry.js} +1 -1
- package/lib/duet/p-3d3e5e9e.entry.js +4 -0
- package/lib/duet/{p-2e8ae6ef.system.entry.js → p-417c1eca.system.entry.js} +2 -2
- package/lib/duet/{p-837acc55.entry.js → p-45a939b3.entry.js} +1 -1
- package/lib/duet/{p-337b32f1.system.entry.js → p-46ca69cf.system.entry.js} +1 -1
- package/lib/duet/{p-cfc2b098.js → p-4879ffe9.js} +1 -1
- package/lib/duet/p-4b7f3ac1.system.js +4 -0
- package/lib/duet/{p-8e831193.system.entry.js → p-4bdd34bc.system.entry.js} +1 -1
- package/lib/duet/{p-d1ad24a0.system.entry.js → p-4c286dee.system.entry.js} +1 -1
- package/lib/duet/{p-c6083026.entry.js → p-50b51053.entry.js} +1 -1
- package/lib/duet/p-51160aa4.entry.js +4 -0
- package/lib/duet/{p-73627cbb.system.entry.js → p-539034b3.system.entry.js} +1 -1
- package/lib/duet/{p-77fbdca2.system.entry.js → p-54a44e1e.system.entry.js} +1 -1
- package/lib/duet/{p-d6cd2bb9.system.entry.js → p-56b4f6e5.system.entry.js} +1 -1
- package/lib/duet/{p-fd74020b.entry.js → p-57f981bd.entry.js} +1 -1
- package/lib/duet/{p-4d40f304.entry.js → p-58833aca.entry.js} +1 -1
- package/lib/duet/{p-0c89b6f9.system.entry.js → p-5abf961b.system.entry.js} +1 -1
- package/lib/duet/{p-e7ecad67.system.entry.js → p-5c2dd50b.system.entry.js} +2 -2
- package/lib/duet/p-5c83e833.entry.js +4 -0
- package/lib/duet/p-614194b1.entry.js +4 -0
- package/lib/duet/p-618615d1.system.entry.js +4 -0
- package/lib/duet/{p-ade32ce7.entry.js → p-61e84177.entry.js} +1 -1
- package/lib/duet/p-621e8af8.js +4 -0
- package/lib/duet/{p-0d95bf16.system.entry.js → p-64297b4d.system.entry.js} +1 -1
- package/lib/duet/{p-5822c65a.system.entry.js → p-64b14d85.system.entry.js} +1 -1
- package/lib/duet/p-6a1f0973.system.entry.js +4 -0
- package/lib/duet/{p-8169f888.entry.js → p-6a8341c1.entry.js} +1 -1
- package/lib/duet/p-71779b62.entry.js +4 -0
- package/lib/duet/{p-b97b1676.system.entry.js → p-71e63186.system.entry.js} +1 -1
- package/lib/duet/p-736eb6f6.system.entry.js +4 -0
- package/lib/duet/p-75a307e4.entry.js +4 -0
- package/lib/duet/{p-f98b9ae8.system.entry.js → p-76bac602.system.entry.js} +1 -1
- package/lib/duet/{p-313fe3f5.entry.js → p-7743d05c.entry.js} +1 -1
- package/lib/duet/{p-44d753ee.entry.js → p-78973e79.entry.js} +1 -1
- package/lib/duet/p-7c4baf1c.js +4 -0
- package/lib/duet/{p-00676a36.system.entry.js → p-7cbc8aa1.system.entry.js} +1 -1
- package/lib/duet/{p-2abe8f54.entry.js → p-7dd4e3f6.entry.js} +1 -1
- package/lib/duet/p-7e9e10ab.entry.js +4 -0
- package/lib/duet/{p-2c39a50d.system.entry.js → p-80973cda.system.entry.js} +1 -1
- package/lib/duet/{p-2ad517e0.system.entry.js → p-825c4e47.system.entry.js} +1 -1
- package/lib/duet/{p-6ed854c9.system.entry.js → p-84881c84.system.entry.js} +1 -1
- package/lib/duet/p-86201340.system.entry.js +4 -0
- package/lib/duet/{p-59673927.system.entry.js → p-8a517f70.system.entry.js} +1 -1
- package/lib/duet/{p-ebbbcd73.entry.js → p-8b7b4c46.entry.js} +1 -1
- package/lib/duet/{p-c54774ab.entry.js → p-90fece55.entry.js} +1 -1
- package/lib/duet/{p-f2893a52.entry.js → p-9389ce47.entry.js} +1 -1
- package/lib/duet/{p-200c17f6.system.entry.js → p-94f2509c.system.entry.js} +1 -1
- package/lib/duet/p-960503a3.entry.js +4 -0
- package/lib/duet/p-9616579e.entry.js +4 -0
- package/lib/duet/{p-8cf75c3e.entry.js → p-981b43c2.entry.js} +1 -1
- package/lib/duet/{p-0782a91f.system.entry.js → p-99ccb2c2.system.entry.js} +1 -1
- package/lib/duet/p-9cd3ea60.system.entry.js +4 -0
- package/lib/duet/p-9d36613e.system.entry.js +4 -0
- package/lib/duet/{p-b708a4c0.system.entry.js → p-9fc991c2.system.entry.js} +1 -1
- package/lib/duet/{p-cfbf4269.system.entry.js → p-a0bcc46c.system.entry.js} +1 -1
- package/lib/duet/p-a113525c.entry.js +4 -0
- package/lib/duet/{p-5782d12a.system.js → p-a190f8b9.system.js} +1 -1
- package/lib/duet/{p-c42fad8c.entry.js → p-a29118e6.entry.js} +1 -1
- package/lib/duet/{p-7a096435.entry.js → p-a3f23363.entry.js} +1 -1
- package/lib/duet/{p-43e589c8.entry.js → p-a4a9705f.entry.js} +1 -1
- package/lib/duet/{p-7e3541f6.system.entry.js → p-a4e42811.system.entry.js} +1 -1
- package/lib/duet/p-a6751ba6.entry.js +4 -0
- package/lib/duet/{p-ea109080.entry.js → p-a7d9728a.entry.js} +1 -1
- package/lib/duet/{p-749fc136.entry.js → p-abbcf5dc.entry.js} +1 -1
- package/lib/duet/{p-7675eb6f.system.entry.js → p-aee38b4a.system.entry.js} +1 -1
- package/lib/duet/{p-42ff082a.system.entry.js → p-b1abb582.system.entry.js} +1 -1
- package/lib/duet/{p-71917207.system.entry.js → p-b2be54b5.system.entry.js} +1 -1
- package/lib/duet/{p-63dc5d85.system.entry.js → p-b308ce5d.system.entry.js} +1 -1
- package/lib/duet/{p-881ed26f.entry.js → p-b3f12c59.entry.js} +1 -1
- package/lib/duet/{p-f40d72fb.entry.js → p-b656b461.entry.js} +1 -1
- package/lib/duet/{p-a335e0bc.entry.js → p-bb536ec4.entry.js} +1 -1
- package/lib/duet/{p-46fb20ed.entry.js → p-bc0ce7e7.entry.js} +1 -1
- package/lib/duet/{p-9bc8d785.system.entry.js → p-bf37cb60.system.entry.js} +1 -1
- package/lib/duet/{p-f59c99ac.system.entry.js → p-c141d219.system.entry.js} +1 -1
- package/lib/duet/p-c16de43f.system.entry.js +4 -0
- package/lib/duet/{p-2c44d7d1.system.entry.js → p-c19d32af.system.entry.js} +1 -1
- package/lib/duet/{p-ac5df61e.system.entry.js → p-c213c2f2.system.entry.js} +1 -1
- package/lib/duet/{p-df4c44a0.entry.js → p-c3c98ddf.entry.js} +1 -1
- package/lib/duet/{p-5c28fd80.system.entry.js → p-c70da05a.system.entry.js} +1 -1
- package/lib/duet/{p-c5191cdc.entry.js → p-cb5771c5.entry.js} +1 -1
- package/lib/duet/{p-63dfae1b.entry.js → p-cd410e2a.entry.js} +1 -1
- package/lib/duet/{p-2011c8e6.system.entry.js → p-cfebc130.system.entry.js} +1 -1
- package/lib/duet/{p-f591ed1f.entry.js → p-d22e694c.entry.js} +1 -1
- package/lib/duet/{p-a9448361.system.entry.js → p-d2d14d3b.system.entry.js} +1 -1
- package/lib/duet/p-d51ed3e2.system.entry.js +4 -0
- package/lib/duet/{p-ca597046.system.js → p-d8422099.system.js} +1 -1
- package/lib/duet/{p-53c13b55.entry.js → p-d924703a.entry.js} +1 -1
- package/lib/duet/{p-4ef2841d.entry.js → p-db9f9e24.entry.js} +1 -1
- package/lib/duet/{p-8941bf37.system.entry.js → p-dc1f60cd.system.entry.js} +1 -1
- package/lib/duet/p-dc566220.entry.js +4 -0
- package/lib/duet/{p-230830eb.system.entry.js → p-df1531b7.system.entry.js} +1 -1
- package/lib/duet/{p-cd98e431.system.entry.js → p-e13d0460.system.entry.js} +1 -1
- package/lib/duet/p-e1919861.js +4 -0
- package/lib/duet/{p-8bc10d1a.entry.js → p-e4626c0e.entry.js} +1 -1
- package/lib/duet/{p-f9141695.system.entry.js → p-e920e34f.system.entry.js} +1 -1
- package/lib/duet/{p-8b8eec00.system.entry.js → p-e9fb2c3b.system.entry.js} +1 -1
- package/lib/duet/{p-9e704252.entry.js → p-eb4393ed.entry.js} +1 -1
- package/lib/duet/p-eb6c4a2a.system.js +4 -0
- package/lib/duet/{p-556fa590.entry.js → p-ed222f86.entry.js} +1 -1
- package/lib/duet/p-f25db9b8.entry.js +4 -0
- package/lib/duet/{p-c520d4ea.system.entry.js → p-f28d27a4.system.entry.js} +1 -1
- package/lib/duet/p-f67ee736.system.js +4 -0
- package/lib/duet/{p-b32d877a.system.entry.js → p-fa0896f4.system.entry.js} +1 -1
- package/lib/duet/{p-62587a99.entry.js → p-faeed6cf.entry.js} +1 -1
- package/lib/duet/{p-406c6277.system.entry.js → p-fb352dcf.system.entry.js} +1 -1
- package/lib/duet/{p-a6df6c15.entry.js → p-fec9ec39.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +20 -5
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-breadcrumb.entry.js +1 -1
- package/lib/esm/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm/duet-button_2.entry.js +3 -3
- package/lib/esm/duet-caption_4.entry.js +3 -3
- package/lib/esm/duet-card.entry.js +3 -3
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +1 -1
- package/lib/esm/duet-choice_2.entry.js +2 -2
- package/lib/esm/duet-collapsible.entry.js +1 -1
- package/lib/esm/duet-combobox.entry.js +13 -3
- package/lib/esm/duet-contact-card.entry.js +1 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +3 -3
- package/lib/esm/duet-editable-table_3.entry.js +113 -128
- 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 +14 -4
- package/lib/esm/duet-header_2.entry.js +20 -6
- package/lib/esm/duet-hero.entry.js +16 -4
- package/lib/esm/duet-icon.entry.js +3 -3
- package/lib/esm/duet-input_2.entry.js +1 -1
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar.entry.js +1 -1
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-multiselect.entry.js +10 -4
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +16 -2
- package/lib/esm/duet-number-input.entry.js +47 -27
- package/lib/esm/duet-page-heading.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +22 -7
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +2 -2
- package/lib/esm/duet-scrollable_3.entry.js +1 -1
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +3 -3
- package/lib/esm/duet-slideout-lang.entry.js +1 -1
- package/lib/esm/duet-slideout-link.entry.js +1 -1
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm/duet-slideout-panel.entry.js +4 -4
- package/lib/esm/duet-slideout.entry.js +5 -5
- 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 +22 -7
- package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar.entry.js +2 -2
- 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 +17 -2
- package/lib/esm/duet-tray.entry.js +2 -2
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +3 -3
- package/lib/esm/{focus-utils-f1ddeb69.js → focus-utils-3483f616.js} +1 -1
- package/lib/esm/{index-57a87c63.js → index-fff18e02.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm/{token-utils-b531747a.js → token-utils-6e0e2653.js} +4 -2
- package/lib/esm/{tokens.module-d3321092.js → tokens.module-5601adc9.js} +1 -1
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +1 -1
- package/lib/esm-es5/duet-card.entry.js +1 -1
- package/lib/esm-es5/duet-checkbox.entry.js +1 -1
- package/lib/esm-es5/duet-checkmark.entry.js +1 -1
- package/lib/esm-es5/duet-choice_2.entry.js +1 -1
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +2 -2
- package/lib/esm-es5/duet-contact-card.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +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 +1 -1
- package/lib/esm-es5/duet-modal.entry.js +1 -1
- package/lib/esm-es5/duet-multiselect.entry.js +2 -2
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +2 -2
- package/lib/esm-es5/duet-number-input.entry.js +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-3483f616.js +4 -0
- package/lib/esm-es5/{index-57a87c63.js → index-fff18e02.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/esm-es5/{token-utils-b531747a.js → token-utils-6e0e2653.js} +1 -1
- package/lib/esm-es5/{tokens.module-d3321092.js → tokens.module-5601adc9.js} +1 -1
- package/lib/types/common-types.d.ts +3 -0
- package/lib/types/components/duet-action-button/duet-action-button.d.ts +8 -1
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +3 -1
- package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +4 -1
- package/lib/types/components/duet-grid/duet-grid.d.ts +5 -0
- package/lib/types/components/duet-grid-item/duet-grid-item.d.ts +7 -1
- package/lib/types/components/duet-header/duet-header.d.ts +1 -0
- package/lib/types/components/duet-hero/duet-hero.d.ts +3 -0
- package/lib/types/components/duet-multiselect/duet-multiselect.d.ts +4 -1
- package/lib/types/components/duet-notification/duet-notification.d.ts +3 -0
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +1 -0
- package/lib/types/components/duet-pagination/duet-pagination.d.ts +5 -1
- package/lib/types/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.d.ts +2 -1
- package/lib/types/components/duet-table/duet-table.d.ts +6 -1
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +3 -0
- package/lib/types/components/duet-upload/duet-upload.d.ts +21 -4
- package/lib/types/components/duet-upload/upload-item-header.d.ts +8 -0
- package/lib/types/components/duet-upload/upload-item.d.ts +10 -1
- package/lib/types/components.d.ts +35 -0
- package/lib/types/utils/token-utils.d.ts +2 -0
- package/package.json +5 -5
- package/lib/dist-custom-elements/p-00635432.js +0 -243
- package/lib/dist-custom-elements/p-4b9ef5dc.js +0 -178
- package/lib/duet/p-01006278.js +0 -4
- package/lib/duet/p-17063917.system.js +0 -4
- package/lib/duet/p-255ede66.entry.js +0 -4
- package/lib/duet/p-29851757.system.entry.js +0 -4
- package/lib/duet/p-2fc1306e.entry.js +0 -4
- package/lib/duet/p-352ef7d4.entry.js +0 -4
- package/lib/duet/p-3693927d.system.entry.js +0 -4
- package/lib/duet/p-429ae180.system.entry.js +0 -4
- package/lib/duet/p-43c99bf1.entry.js +0 -4
- package/lib/duet/p-508d3dcb.system.entry.js +0 -4
- package/lib/duet/p-54dca5e8.system.entry.js +0 -4
- package/lib/duet/p-5d46f619.system.js +0 -4
- package/lib/duet/p-633dced0.entry.js +0 -4
- package/lib/duet/p-65b8dc2a.entry.js +0 -4
- package/lib/duet/p-69671377.system.js +0 -4
- package/lib/duet/p-728bfa77.entry.js +0 -4
- package/lib/duet/p-75effec6.system.entry.js +0 -4
- package/lib/duet/p-79a9746e.js +0 -4
- package/lib/duet/p-7cf7fde9.entry.js +0 -4
- package/lib/duet/p-86270afd.entry.js +0 -4
- package/lib/duet/p-9052b6f5.js +0 -4
- package/lib/duet/p-96ee76aa.entry.js +0 -4
- package/lib/duet/p-99967a86.entry.js +0 -4
- package/lib/duet/p-9d7a6b9d.system.entry.js +0 -4
- package/lib/duet/p-ac8174e5.system.entry.js +0 -4
- package/lib/duet/p-ac90e4ba.entry.js +0 -4
- package/lib/duet/p-db511eee.system.entry.js +0 -4
- package/lib/duet/p-e827c36c.system.entry.js +0 -4
- package/lib/duet/p-e9dae4ed.system.entry.js +0 -4
- package/lib/duet/p-ec6683f4.system.entry.js +0 -4
- package/lib/duet/p-f5103ded.entry.js +0 -4
- package/lib/duet/p-fe31c401.entry.js +0 -4
- package/lib/esm-es5/focus-utils-f1ddeb69.js +0 -4
|
@@ -1,25 +1,22 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, Host } from "@stencil/core";
|
|
4
|
+
import { Fragment, h, Host } from "@stencil/core";
|
|
5
5
|
import { inheritGlobalTheme } from "../../common";
|
|
6
6
|
import { createID } from "../../utils/create-id";
|
|
7
7
|
import { debounce } from "../../utils/js-utils";
|
|
8
8
|
import { getLocaleString, sanitizeString } from "../../utils/language-utils";
|
|
9
9
|
import errorCodes from "./errorcodes.json";
|
|
10
10
|
import { getI18nError } from "./errorcodes.utils";
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { PendingItem } from "./upload-editable-item-pending";
|
|
14
|
-
import { SuccessItem } from "./upload-editable-item-success";
|
|
15
|
-
import { UploadCategory } from "./upload-item-category";
|
|
11
|
+
import { UploadItem } from "./upload-item";
|
|
12
|
+
import { UploadItemHeader } from "./upload-item-header";
|
|
16
13
|
import { validateFile, validateTotalAmountIsAboveMax, validateTotalSizeIsAboveMax } from "./upload-validators";
|
|
17
14
|
import { makeXhrRequest, } from "./xhr.helpers";
|
|
18
15
|
/**
|
|
19
16
|
* @slot header - named slot - to place content after description / caption (if caption is on top)
|
|
20
17
|
* @slot fileheader - named slot - to place content above "filelist" (only displayed when "filelist" contains items)
|
|
21
18
|
* @slot filefooter - named slot - to place content below "filelist" (only displayed when "filelist" contains items)
|
|
22
|
-
* @slot
|
|
19
|
+
* @slot uploadfooter - named slot - to place content below filefooter
|
|
23
20
|
* @slot afterfooter - named slot - to place content below "footer" / caption (if caption is on bottom)
|
|
24
21
|
* @part ${this.identifier}-empty-state : duet-upload-empty-state - named part - can be used to style the empty notification area or hide it completely
|
|
25
22
|
* @part ${this.identifier}-editable-table : duet-upload-editable-table - named part - can be used to style the editable-table
|
|
@@ -49,6 +46,11 @@ export class DuetUpload {
|
|
|
49
46
|
this.kick = debounce(() => {
|
|
50
47
|
this.tick = Date.now();
|
|
51
48
|
}, 30); // will trigger re-render
|
|
49
|
+
this.categoryLabel = {
|
|
50
|
+
en: "Category",
|
|
51
|
+
sv: "Filtyp",
|
|
52
|
+
fi: "Tiedostotyyppi",
|
|
53
|
+
};
|
|
52
54
|
/**
|
|
53
55
|
* Private functions
|
|
54
56
|
*/
|
|
@@ -102,18 +104,18 @@ export class DuetUpload {
|
|
|
102
104
|
return "none";
|
|
103
105
|
}
|
|
104
106
|
};
|
|
105
|
-
this.
|
|
107
|
+
this.mapFilesToUploadItems = (data, group, showCategory) => {
|
|
106
108
|
if (group === this.DefaultGroups.success) {
|
|
107
|
-
return h(
|
|
109
|
+
return (h(UploadItem, { theme: this.theme, actions: this.getActions(group), type: "success", data: data, showLinks: this.showLinks, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory }));
|
|
108
110
|
}
|
|
109
111
|
else if (group === this.DefaultGroups.inprogress) {
|
|
110
|
-
return h(
|
|
112
|
+
return (h(UploadItem, { theme: this.theme, actions: this.getActions(group), type: "inprogress", data: data, showLinks: this.showLinks, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory }));
|
|
111
113
|
}
|
|
112
114
|
else if (group === this.DefaultGroups.pending) {
|
|
113
|
-
return h(
|
|
115
|
+
return (h(UploadItem, { theme: this.theme, actions: this.getActions(group), type: "pending", data: data, showLinks: this.showLinks, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory }));
|
|
114
116
|
}
|
|
115
117
|
else if (group === this.DefaultGroups.failure) {
|
|
116
|
-
return h(
|
|
118
|
+
return (h(UploadItem, { theme: this.theme, actions: this.getActions(group), type: "failure", data: data, showLinks: this.showLinks, errorCodes: this.errorCodes, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory }));
|
|
117
119
|
}
|
|
118
120
|
else if (data.group) {
|
|
119
121
|
return data.html;
|
|
@@ -386,60 +388,43 @@ export class DuetUpload {
|
|
|
386
388
|
const failure = [];
|
|
387
389
|
const pending = [];
|
|
388
390
|
const success = [];
|
|
391
|
+
let hasCategory = false;
|
|
389
392
|
all.forEach(data => {
|
|
390
|
-
var _a, _b;
|
|
391
393
|
const group = this.getGroupFromItemData(data);
|
|
392
|
-
const item =
|
|
393
|
-
const category =
|
|
394
|
-
const categories =
|
|
394
|
+
// const item = mapFn(data, group)
|
|
395
|
+
// const category = <UploadCategory meta={data.meta} />
|
|
396
|
+
// const categories = data.meta?.badges?.join(",")
|
|
397
|
+
if (data.meta && !!data.meta.badges) {
|
|
398
|
+
hasCategory = true;
|
|
399
|
+
}
|
|
395
400
|
if (group === this.DefaultGroups.success) {
|
|
396
401
|
success.push({
|
|
397
402
|
uid: data.uid,
|
|
398
|
-
|
|
399
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
400
|
-
category,
|
|
401
|
-
group,
|
|
402
|
-
actionDescription: `${categories || ""} ${data.item.name}`,
|
|
403
|
+
data,
|
|
403
404
|
});
|
|
404
405
|
}
|
|
405
406
|
else if (group === this.DefaultGroups.inprogress) {
|
|
406
407
|
inprogress.push({
|
|
407
408
|
uid: data.uid,
|
|
408
|
-
|
|
409
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
410
|
-
category,
|
|
411
|
-
group,
|
|
412
|
-
actionDescription: `category ${data.item.name}`,
|
|
409
|
+
data,
|
|
413
410
|
});
|
|
414
411
|
}
|
|
415
412
|
else if (group === this.DefaultGroups.pending) {
|
|
416
413
|
pending.push({
|
|
417
414
|
uid: data.uid,
|
|
418
|
-
|
|
419
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
420
|
-
category,
|
|
421
|
-
group,
|
|
422
|
-
actionDescription: `category ${data.item.name}`,
|
|
415
|
+
data,
|
|
423
416
|
});
|
|
424
417
|
}
|
|
425
418
|
else if (group === this.DefaultGroups.failure) {
|
|
426
419
|
failure.push({
|
|
427
420
|
uid: data.uid,
|
|
428
|
-
|
|
429
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
430
|
-
category,
|
|
431
|
-
group,
|
|
432
|
-
actionDescription: `category ${data.item.name}`,
|
|
421
|
+
data,
|
|
433
422
|
});
|
|
434
423
|
}
|
|
435
424
|
else if (data.group) {
|
|
436
425
|
inprogress.push({
|
|
437
426
|
uid: data.uid,
|
|
438
|
-
|
|
439
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
440
|
-
category,
|
|
441
|
-
group: data.group,
|
|
442
|
-
actionDescription: `category ${data.item.name}`,
|
|
427
|
+
data,
|
|
443
428
|
});
|
|
444
429
|
}
|
|
445
430
|
});
|
|
@@ -448,46 +433,23 @@ export class DuetUpload {
|
|
|
448
433
|
failure,
|
|
449
434
|
success,
|
|
450
435
|
inprogress,
|
|
436
|
+
hasCategory,
|
|
451
437
|
};
|
|
452
438
|
};
|
|
453
|
-
this.getColumns = (group, hasCategory) => {
|
|
454
|
-
return [
|
|
455
|
-
{
|
|
456
|
-
sort_order: 1,
|
|
457
|
-
direction: -1,
|
|
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,
|
|
471
|
-
key: group.id,
|
|
472
|
-
label: group.label,
|
|
473
|
-
display: true,
|
|
474
|
-
},
|
|
475
|
-
];
|
|
476
|
-
};
|
|
477
439
|
this.getActions = (id) => {
|
|
478
440
|
return this.actions.filter(item => item.map.includes(id));
|
|
479
441
|
};
|
|
480
|
-
this.
|
|
442
|
+
this.renderUploadedItems = () => {
|
|
481
443
|
const filteredItems = this.filterMap();
|
|
482
|
-
const
|
|
444
|
+
const hasCategory = filteredItems.hasCategory;
|
|
445
|
+
const ItemRows = this.groups.map(group => {
|
|
483
446
|
const currentItems = filteredItems[group.id];
|
|
484
447
|
if (!(currentItems === null || currentItems === void 0 ? void 0 : currentItems.length)) {
|
|
485
448
|
return;
|
|
486
449
|
}
|
|
487
|
-
|
|
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 }));
|
|
450
|
+
return (h(Fragment, null, !this.hideGroups && (h(UploadItemHeader, { categoryLabel: hasCategory ? this.categoryLabel : undefined, label: group.label })), currentItems.map(item => this.mapFilesToUploadItems(item.data, group.id, hasCategory))));
|
|
489
451
|
});
|
|
490
|
-
return
|
|
452
|
+
return (h(Fragment, null, this.showUploadedItemsHeader && (h(UploadItemHeader, { categoryLabel: hasCategory ? this.categoryLabel : undefined, label: this.uploadedItemsHeaderLabel })), ItemRows));
|
|
491
453
|
};
|
|
492
454
|
this.tick = Date.now();
|
|
493
455
|
this.accessibleActiveDescendant = undefined;
|
|
@@ -603,6 +565,13 @@ export class DuetUpload {
|
|
|
603
565
|
this.value = undefined;
|
|
604
566
|
this.externalUploadButtonId = undefined;
|
|
605
567
|
this.captionOnBottom = false;
|
|
568
|
+
this.showUploadedItemsHeader = false;
|
|
569
|
+
this.uploadedItemsHeaderLabel = {
|
|
570
|
+
fi: "Ladattu tiedosto",
|
|
571
|
+
sv: "Lägg till en bilaga",
|
|
572
|
+
en: "Uploaded file",
|
|
573
|
+
};
|
|
574
|
+
this.hideHeader = false;
|
|
606
575
|
this.groups = [
|
|
607
576
|
{
|
|
608
577
|
id: this.DefaultGroups.success,
|
|
@@ -727,13 +696,7 @@ export class DuetUpload {
|
|
|
727
696
|
this.externalUploadButton.ariaLabel = caption;
|
|
728
697
|
}
|
|
729
698
|
// @ts-ignore
|
|
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-
|
|
731
|
-
"duet-upload-filelist-empty": !this.files.size,
|
|
732
|
-
"duet-upload-filelist": true,
|
|
733
|
-
"duet-upload-filelist-filled": this.files.size,
|
|
734
|
-
}, id: this.labelId, for: identifier }, h("span", { class: {
|
|
735
|
-
"duet-upload-filelist-empty-label": !this.files.size,
|
|
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 => {
|
|
699
|
+
return (h(Host, { class: { "duet-m-0": this.margin === "none" } }, h("duet-fieldset", { "label-hidden": this.hideHeader, label: this.label, caption: !this.captionOnBottom ? caption : undefined }, h("slot", { name: "header" }), !this.files.size && (h("duet-empty-state", { id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, h("duet-paragraph", { margin: "none" }, this.fileListEmpty))), !!this.files.size && h("slot", { name: "fileheader" }), !!this.files.size && (h("duet-upload-aria-status", { invalid: this.getFilesAsArray().invalid.length, valid: this.getFilesAsArray().valid.length, inprogress: this.filesInProgress.size, total: this.files.size, statusMessageLabel: this.internalStatusMessageLabel })), !!this.files.size && this.renderUploadedItems(), !!this.files.size && h("slot", { name: "filefooter" }), h("slot", { name: "uploadfooter" }), this.captionOnBottom && (h("duet-caption", { size: "small" }, h("div", { class: "upload-bottom-caption" }, caption))), h("slot", { name: "afterfooter" }), !this.hideButton && (h(Fragment, null, h("duet-spacer", { size: "large" }), 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))), (this.fileMaxReached || this.bytesMaxReached) && (h(Fragment, null, h("duet-spacer", { size: "medium" }), 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-visually-hidden", { "aria-hidden": "true" }, h("input", { ref: input => {
|
|
737
700
|
this.nativeInput = input;
|
|
738
701
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
739
702
|
"duet-upload": true,
|
|
@@ -973,7 +936,7 @@ export class DuetUpload {
|
|
|
973
936
|
"references": {
|
|
974
937
|
"XHRInternalMiddleWare": {
|
|
975
938
|
"location": "local",
|
|
976
|
-
"path": "/Users/
|
|
939
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
977
940
|
}
|
|
978
941
|
}
|
|
979
942
|
},
|
|
@@ -1352,7 +1315,7 @@ export class DuetUpload {
|
|
|
1352
1315
|
"references": {
|
|
1353
1316
|
"StringMap": {
|
|
1354
1317
|
"location": "local",
|
|
1355
|
-
"path": "/Users/
|
|
1318
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1356
1319
|
}
|
|
1357
1320
|
}
|
|
1358
1321
|
},
|
|
@@ -1763,6 +1726,66 @@ export class DuetUpload {
|
|
|
1763
1726
|
"reflect": false,
|
|
1764
1727
|
"defaultValue": "false"
|
|
1765
1728
|
},
|
|
1729
|
+
"showUploadedItemsHeader": {
|
|
1730
|
+
"type": "boolean",
|
|
1731
|
+
"mutable": false,
|
|
1732
|
+
"complexType": {
|
|
1733
|
+
"original": "boolean",
|
|
1734
|
+
"resolved": "boolean",
|
|
1735
|
+
"references": {}
|
|
1736
|
+
},
|
|
1737
|
+
"required": false,
|
|
1738
|
+
"optional": false,
|
|
1739
|
+
"docs": {
|
|
1740
|
+
"tags": [],
|
|
1741
|
+
"text": "Use show-uploaded-items-header to show single, generic, header for uploaded items"
|
|
1742
|
+
},
|
|
1743
|
+
"attribute": "show-uploaded-items-header",
|
|
1744
|
+
"reflect": false,
|
|
1745
|
+
"defaultValue": "false"
|
|
1746
|
+
},
|
|
1747
|
+
"uploadedItemsHeaderLabel": {
|
|
1748
|
+
"type": "unknown",
|
|
1749
|
+
"mutable": false,
|
|
1750
|
+
"complexType": {
|
|
1751
|
+
"original": "DuetLangObject",
|
|
1752
|
+
"resolved": "DuetLangObject",
|
|
1753
|
+
"references": {
|
|
1754
|
+
"DuetLangObject": {
|
|
1755
|
+
"location": "import",
|
|
1756
|
+
"path": "../../utils/language-utils"
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
},
|
|
1760
|
+
"required": false,
|
|
1761
|
+
"optional": false,
|
|
1762
|
+
"docs": {
|
|
1763
|
+
"tags": [{
|
|
1764
|
+
"name": "default",
|
|
1765
|
+
"text": "{\nfi: \"Ladattu tiedosto.\",\nsv: \"Nedladdad fil.\",\nen: \"Uploaded file.\",\n}"
|
|
1766
|
+
}],
|
|
1767
|
+
"text": "Property to change single uploaded items header label"
|
|
1768
|
+
},
|
|
1769
|
+
"defaultValue": "{\n fi: \"Ladattu tiedosto\",\n sv: \"L\u00E4gg till en bilaga\",\n en: \"Uploaded file\",\n }"
|
|
1770
|
+
},
|
|
1771
|
+
"hideHeader": {
|
|
1772
|
+
"type": "boolean",
|
|
1773
|
+
"mutable": false,
|
|
1774
|
+
"complexType": {
|
|
1775
|
+
"original": "boolean",
|
|
1776
|
+
"resolved": "boolean",
|
|
1777
|
+
"references": {}
|
|
1778
|
+
},
|
|
1779
|
+
"required": false,
|
|
1780
|
+
"optional": false,
|
|
1781
|
+
"docs": {
|
|
1782
|
+
"tags": [],
|
|
1783
|
+
"text": "Use hide-header to hide upload component header and caption (if caption is not on bottom)"
|
|
1784
|
+
},
|
|
1785
|
+
"attribute": "hide-header",
|
|
1786
|
+
"reflect": false,
|
|
1787
|
+
"defaultValue": "false"
|
|
1788
|
+
},
|
|
1766
1789
|
"groups": {
|
|
1767
1790
|
"type": "unknown",
|
|
1768
1791
|
"mutable": false,
|
|
@@ -1772,7 +1795,7 @@ export class DuetUpload {
|
|
|
1772
1795
|
"references": {
|
|
1773
1796
|
"DuetUploadTableGroupName": {
|
|
1774
1797
|
"location": "local",
|
|
1775
|
-
"path": "/Users/
|
|
1798
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1776
1799
|
}
|
|
1777
1800
|
}
|
|
1778
1801
|
},
|
|
@@ -1814,7 +1837,7 @@ export class DuetUpload {
|
|
|
1814
1837
|
"references": {
|
|
1815
1838
|
"DuetUploadEvent": {
|
|
1816
1839
|
"location": "local",
|
|
1817
|
-
"path": "/Users/
|
|
1840
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1818
1841
|
}
|
|
1819
1842
|
}
|
|
1820
1843
|
}
|
|
@@ -1834,7 +1857,7 @@ export class DuetUpload {
|
|
|
1834
1857
|
"references": {
|
|
1835
1858
|
"DuetUploadEvent": {
|
|
1836
1859
|
"location": "local",
|
|
1837
|
-
"path": "/Users/
|
|
1860
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1838
1861
|
}
|
|
1839
1862
|
}
|
|
1840
1863
|
}
|
|
@@ -1854,7 +1877,7 @@ export class DuetUpload {
|
|
|
1854
1877
|
"references": {
|
|
1855
1878
|
"DuetUploadEvent": {
|
|
1856
1879
|
"location": "local",
|
|
1857
|
-
"path": "/Users/
|
|
1880
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1858
1881
|
}
|
|
1859
1882
|
}
|
|
1860
1883
|
}
|
|
@@ -1874,7 +1897,7 @@ export class DuetUpload {
|
|
|
1874
1897
|
"references": {
|
|
1875
1898
|
"DuetUploadEvent": {
|
|
1876
1899
|
"location": "local",
|
|
1877
|
-
"path": "/Users/
|
|
1900
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1878
1901
|
}
|
|
1879
1902
|
}
|
|
1880
1903
|
}
|
|
@@ -1894,7 +1917,7 @@ export class DuetUpload {
|
|
|
1894
1917
|
"references": {
|
|
1895
1918
|
"DuetUploadEvent": {
|
|
1896
1919
|
"location": "local",
|
|
1897
|
-
"path": "/Users/
|
|
1920
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1898
1921
|
}
|
|
1899
1922
|
}
|
|
1900
1923
|
}
|
|
@@ -1914,7 +1937,7 @@ export class DuetUpload {
|
|
|
1914
1937
|
"references": {
|
|
1915
1938
|
"DuetUploadEvent": {
|
|
1916
1939
|
"location": "local",
|
|
1917
|
-
"path": "/Users/
|
|
1940
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1918
1941
|
}
|
|
1919
1942
|
}
|
|
1920
1943
|
}
|
|
@@ -1934,7 +1957,7 @@ export class DuetUpload {
|
|
|
1934
1957
|
"references": {
|
|
1935
1958
|
"DuetUploadEvent": {
|
|
1936
1959
|
"location": "local",
|
|
1937
|
-
"path": "/Users/
|
|
1960
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1938
1961
|
}
|
|
1939
1962
|
}
|
|
1940
1963
|
}
|
|
@@ -1954,7 +1977,7 @@ export class DuetUpload {
|
|
|
1954
1977
|
"references": {
|
|
1955
1978
|
"DuetUploadEvent": {
|
|
1956
1979
|
"location": "local",
|
|
1957
|
-
"path": "/Users/
|
|
1980
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1958
1981
|
}
|
|
1959
1982
|
}
|
|
1960
1983
|
}
|
|
@@ -1974,7 +1997,7 @@ export class DuetUpload {
|
|
|
1974
1997
|
"references": {
|
|
1975
1998
|
"DuetUploadEvent": {
|
|
1976
1999
|
"location": "local",
|
|
1977
|
-
"path": "/Users/
|
|
2000
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1978
2001
|
}
|
|
1979
2002
|
}
|
|
1980
2003
|
}
|
|
@@ -1994,7 +2017,7 @@ export class DuetUpload {
|
|
|
1994
2017
|
"references": {
|
|
1995
2018
|
"DuetUploadEvent": {
|
|
1996
2019
|
"location": "local",
|
|
1997
|
-
"path": "/Users/
|
|
2020
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-upload/duet-upload.tsx"
|
|
1998
2021
|
}
|
|
1999
2022
|
}
|
|
2000
2023
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { h } from "@stencil/core";
|
|
5
|
+
import { getLocaleString } from "../../utils/language-utils";
|
|
6
|
+
export const UploadItemHeader = ({ label, categoryLabel }) => {
|
|
7
|
+
return (h("div", { class: "items-header" }, categoryLabel && (h("duet-heading", { class: "category-header", border: "solid", color: "gray-darker", level: "h3", "visual-level": "h6", weight: "semibold" }, getLocaleString(categoryLabel))), h("duet-heading", { class: { "filename-header": true, "no-category": !categoryLabel }, border: "solid", color: "gray-darker", level: "h3", "visual-level": "h6", weight: "semibold" }, getLocaleString(label))));
|
|
8
|
+
};
|
|
@@ -2,15 +2,31 @@
|
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
4
|
import { h } from "@stencil/core";
|
|
5
|
+
import { getLocaleString } from "../../utils/language-utils";
|
|
6
|
+
import { getI18nError } from "./errorcodes.utils";
|
|
5
7
|
import { formatBytes } from "./upload.helpers";
|
|
6
|
-
export const UploadItem = ({ data, showLinks }) => {
|
|
7
|
-
const { item, size, uploaded, url, meta } = data;
|
|
8
|
+
export const UploadItem = ({ data, showLinks, type, actions, errorCodes, theme, label, categoryLabel, showCategory, }) => {
|
|
9
|
+
const { uid, item, size, uploaded, url, meta, progress, error } = data;
|
|
8
10
|
const { name } = item;
|
|
11
|
+
const getFileNameLine = () => {
|
|
12
|
+
switch (type) {
|
|
13
|
+
case "inprogress":
|
|
14
|
+
return (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("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
|
|
15
|
+
case "pending":
|
|
16
|
+
return (h("span", { class: "duet-upload-item-name" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name));
|
|
17
|
+
case "failure":
|
|
18
|
+
return (h("span", { class: "duet-upload-item-error", role: "status" }, h("duet-paragraph", { class: "duet-upload-item-name", color: "danger", margin: "none", weight: "semi-bold" }, h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }), h("duet-spacer", { size: "xx-small", direction: "horizontal" }), name), h("duet-paragraph", { class: "duet-upload-item-error-label", size: "small", margin: "none", color: "danger" }, getI18nError(error.type, errorCodes))));
|
|
19
|
+
default:
|
|
20
|
+
return 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));
|
|
21
|
+
}
|
|
22
|
+
};
|
|
9
23
|
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
24
|
const SizeText = (h("span", { class: "duet-upload-item-size", style: { fontSize: "14px", fontWeight: "400" } }, "(", formatBytes(size), ")"));
|
|
11
|
-
const
|
|
12
|
-
const
|
|
25
|
+
const Badges = meta && meta.badges ? (h("span", null, meta.badges.map(badgeText => (h("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
26
|
+
const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${name}`;
|
|
13
27
|
return (h("div", { class: {
|
|
14
|
-
|
|
15
|
-
} }, h("div", { class: "item-categories" }, Badges), h("div", { class: "item-label" },
|
|
28
|
+
"upload-item-row": true,
|
|
29
|
+
} }, showCategory && (h("div", { class: "item-categories" }, h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(categoryLabel)), Badges)), h("div", { class: { "item-name": true, "no-category": !showCategory } }, !!label && (h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, getLocaleString(label))), getFileNameLine()), h("div", { class: "item-actions" }, actions.map(actionItem => {
|
|
30
|
+
return (h("duet-action-button", { actionMeta: Object.assign({}, meta || {}), actionId: uid || null, actionName: actionItem.name, theme: theme, iconName: actionItem.icon, iconColor: actionItem.color, iconSize: actionItem.size, background: actionItem.background, "accessible-label": `${actionDescription} ${getLocaleString(actionItem.label)} ` }));
|
|
31
|
+
}))));
|
|
16
32
|
};
|
|
@@ -132,3 +132,5 @@ export const breakpointToToken = {
|
|
|
132
132
|
"xx-large": unwrap(tokens.mediaQueryXxLarge),
|
|
133
133
|
"xxx-large": unwrap(tokens.mediaQueryXxxLarge),
|
|
134
134
|
};
|
|
135
|
+
export const breakpointTokensUpTo = Object.keys(breakpointToToken).filter(key => key.indexOf("x-small") !== -1);
|
|
136
|
+
export const breakpointTokensFrom = Object.keys(breakpointToToken).filter(key => !breakpointTokensUpTo.includes(key));
|
|
@@ -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-c57eccd3.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-c272c5d5.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-94df5d2c.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-11fbe397.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-51307fda.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,10 +1,10 @@
|
|
|
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-11fbe397.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
|
-
import {
|
|
7
|
-
import { d as defineCustomElement$2 } from './p-
|
|
6
|
+
import { a as getLocaleString } from './p-076452be.js';
|
|
7
|
+
import { d as defineCustomElement$2 } from './p-51307fda.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
|
|
|
@@ -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-528cdd3e.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-8d12a863.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-11fbe397.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
|
-
import { g as getColorByName } from './p-
|
|
10
|
-
import { d as defineCustomElement$3 } from './p-
|
|
11
|
-
import { d as defineCustomElement$2 } from './p-
|
|
9
|
+
import { g as getColorByName } from './p-68024252.js';
|
|
10
|
+
import { d as defineCustomElement$3 } from './p-51307fda.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-bbf48894.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-00afad07.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-57d6495c.js';
|
|
5
5
|
|
|
6
6
|
const DuetCheckmark = DuetCheckmark$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, h, d as Host } from './p-
|
|
4
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-11fbe397.js';
|
|
5
5
|
import { i as inheritGlobalTheme } from './p-4ebf1618.js';
|
|
6
6
|
import { f as findCheckedOption, w as watchForOptions } from './p-12721178.js';
|
|
7
|
-
import { d as defineCustomElement$6 } from './p-
|
|
8
|
-
import { d as defineCustomElement$5 } from './p-
|
|
9
|
-
import { d as defineCustomElement$4 } from './p-
|
|
10
|
-
import { d as defineCustomElement$3 } from './p-
|
|
11
|
-
import { d as defineCustomElement$2 } from './p-
|
|
7
|
+
import { d as defineCustomElement$6 } from './p-8d12a863.js';
|
|
8
|
+
import { d as defineCustomElement$5 } from './p-43bbb094.js';
|
|
9
|
+
import { d as defineCustomElement$4 } from './p-51307fda.js';
|
|
10
|
+
import { d as defineCustomElement$3 } from './p-2a919c81.js';
|
|
11
|
+
import { d as defineCustomElement$2 } from './p-f1b800f0.js';
|
|
12
12
|
|
|
13
13
|
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}";
|
|
14
14
|
|