@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
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const jsUtils = require('./js-utils-134e0318.js');
|
|
11
11
|
const keyboardUtils = require('./keyboard-utils-bb32119b.js');
|
|
12
12
|
const languageUtils = require('./language-utils-44df1d37.js');
|
|
13
|
-
const tokens_module = require('./tokens.module-
|
|
14
|
-
const tokenUtils = require('./token-utils-
|
|
13
|
+
const tokens_module = require('./tokens.module-d402cfac.js');
|
|
14
|
+
const tokenUtils = require('./token-utils-4bfb15d4.js');
|
|
15
15
|
const createId = require('./create-id-c3b984b1.js');
|
|
16
16
|
const stringUtils = require('./string-utils-5cadd058.js');
|
|
17
17
|
|
|
@@ -65,6 +65,7 @@ const DuetEditableTable = class {
|
|
|
65
65
|
this.toggleColumn(column, e);
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
+
this.language = languageUtils.getLanguage();
|
|
68
69
|
this.margin = "auto";
|
|
69
70
|
this.variation = "striped";
|
|
70
71
|
this.sticky = false;
|
|
@@ -87,6 +88,12 @@ const DuetEditableTable = class {
|
|
|
87
88
|
this.hasHeadSlotFirst = !!this.element.querySelector("[slot='thead-first']");
|
|
88
89
|
this.hasHeadSlotLast = !!this.element.querySelector("[slot='thead-last']");
|
|
89
90
|
}
|
|
91
|
+
connectedCallback() {
|
|
92
|
+
languageUtils.connectLanguageChangeObserver(this);
|
|
93
|
+
}
|
|
94
|
+
disconnectedCallback() {
|
|
95
|
+
languageUtils.disconnectLanguageChangeObserver(this);
|
|
96
|
+
}
|
|
90
97
|
createLabel(column) {
|
|
91
98
|
const { sort_order, direction, index: index$1, label } = column;
|
|
92
99
|
const i18nLabel = languageUtils.getLocaleString(label);
|
|
@@ -105,7 +112,7 @@ const DuetEditableTable = class {
|
|
|
105
112
|
}
|
|
106
113
|
return "action-subtract-small";
|
|
107
114
|
};
|
|
108
|
-
return (index.h("span", { class: "duet-table-label", "data-index": index$1 }, index.h("duet-button", { size: "small", icon: getButtonIcon(), "icon-size": "medium-small", "accessible-label":
|
|
115
|
+
return (index.h("span", { class: "duet-table-label", "data-index": index$1 }, index.h("duet-button", { size: "small", icon: getButtonIcon(), "icon-size": "medium-small", "accessible-label": this.sortableDefaultLabel[this.language], variation: "plain", margin: "none", "icon-right": true, onClick: event => this.toggleColumn(column, event), onKeyDown: event => this.handleKeyDown(column, event) }, i18nLabel)));
|
|
109
116
|
}
|
|
110
117
|
getSortedColumns() {
|
|
111
118
|
//create a new array from sort instead of mutating original
|
|
@@ -134,7 +141,7 @@ const DuetEditableTable = class {
|
|
|
134
141
|
const label = this.createLabel(column);
|
|
135
142
|
return label !== "" ? index.h("th", { scope: "col" }, label) : index.h("td", null);
|
|
136
143
|
}
|
|
137
|
-
}), this.actions && (index.h("th", { scope: "col", class: "duet-table-action-header-heading" }, this.actions && index.h("duet-visually-hidden", null,
|
|
144
|
+
}), this.actions && (index.h("th", { scope: "col", class: "duet-table-action-header-heading" }, this.actions && index.h("duet-visually-hidden", null, this.actionColumnLabel[this.language])))));
|
|
138
145
|
}
|
|
139
146
|
renderActions(rowItem, index$1) {
|
|
140
147
|
// escape early
|
|
@@ -195,9 +202,10 @@ const DuetTable = class {
|
|
|
195
202
|
index.registerInstance(this, hostRef);
|
|
196
203
|
this.headingSelector = "thead tr > :not(*.duet-editable-table-actions-menu)";
|
|
197
204
|
this.handleMediaQueryChange = (mq) => {
|
|
198
|
-
this.matchesBreakpoint = mq.matches;
|
|
205
|
+
this.matchesBreakpoint = tokenUtils.breakpointTokensUpTo.includes(this.breakpoint) ? !mq.matches : mq.matches;
|
|
199
206
|
};
|
|
200
207
|
this.matchesBreakpoint = true;
|
|
208
|
+
this.language = languageUtils.getLanguage();
|
|
201
209
|
this.theme = undefined;
|
|
202
210
|
this.margin = "auto";
|
|
203
211
|
this.variation = "striped";
|
|
@@ -206,6 +214,11 @@ const DuetTable = class {
|
|
|
206
214
|
this.breakpoint = "small";
|
|
207
215
|
this.hideHeadVisually = false;
|
|
208
216
|
}
|
|
217
|
+
watchLanguageStateHandler(newValue, oldValue) {
|
|
218
|
+
if (newValue !== oldValue) {
|
|
219
|
+
setTimeout(() => this.copyHeadingsToCells(), 50);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
209
222
|
connectedCallback() {
|
|
210
223
|
const token = this.breakpoint === "none" || this.breakpoint === "none-scrollable" ? "all" : tokenUtils.breakpointToToken[this.breakpoint];
|
|
211
224
|
this.mq = matchMedia(token);
|
|
@@ -234,6 +247,7 @@ const DuetTable = class {
|
|
|
234
247
|
// that way we avoid dealing with any initial changes
|
|
235
248
|
// and only get genuine mutations as rows are added/removed
|
|
236
249
|
this.observer ? this.observer.takeRecords() : null;
|
|
250
|
+
languageUtils.connectLanguageChangeObserver(this);
|
|
237
251
|
}
|
|
238
252
|
disconnectedCallback() {
|
|
239
253
|
this.observer.disconnect();
|
|
@@ -241,6 +255,7 @@ const DuetTable = class {
|
|
|
241
255
|
this.mq.removeListener(this.handleMediaQueryChange);
|
|
242
256
|
this.mq = null;
|
|
243
257
|
this.matchesBreakpoint = true;
|
|
258
|
+
languageUtils.disconnectLanguageChangeObserver(this);
|
|
244
259
|
}
|
|
245
260
|
/**
|
|
246
261
|
* Local methods.
|
|
@@ -270,6 +285,9 @@ const DuetTable = class {
|
|
|
270
285
|
} }, index.h("slot", null)));
|
|
271
286
|
}
|
|
272
287
|
get element() { return index.getElement(this); }
|
|
288
|
+
static get watchers() { return {
|
|
289
|
+
"language": ["watchLanguageStateHandler"]
|
|
290
|
+
}; }
|
|
273
291
|
};
|
|
274
292
|
DuetTable.style = duetTableCss;
|
|
275
293
|
|
|
@@ -431,31 +449,6 @@ const getI18nError = (errorCode, errorCodes) => {
|
|
|
431
449
|
}
|
|
432
450
|
};
|
|
433
451
|
|
|
434
|
-
const ErrorItem = ({ data, errorCodes }) => {
|
|
435
|
-
const { item, error } = data;
|
|
436
|
-
const { name } = item;
|
|
437
|
-
const { type } = error;
|
|
438
|
-
return (index.h("span", { class: "duet-upload-item-error", role: "status" },
|
|
439
|
-
index.h("duet-paragraph", { class: "duet-upload-item-name", color: "danger", margin: "none", weight: "semi-bold" },
|
|
440
|
-
index.h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
441
|
-
index.h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
442
|
-
name),
|
|
443
|
-
index.h("duet-paragraph", { class: "duet-upload-item-error-label", size: "small", margin: "none", color: "danger" }, getI18nError(type, errorCodes))));
|
|
444
|
-
};
|
|
445
|
-
|
|
446
|
-
const ProgressItem = ({ progress, name }) => (index.h("span", { class: "duet-upload-item-name" },
|
|
447
|
-
index.h("duet-paragraph", { class: "duet-upload-item-name", color: "gray-darker", margin: "none", weight: "semi-bold" },
|
|
448
|
-
index.h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
449
|
-
index.h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
450
|
-
name),
|
|
451
|
-
index.h("br", null),
|
|
452
|
-
index.h("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
|
|
453
|
-
|
|
454
|
-
const PendingItem = ({ name }) => (index.h("span", { class: "duet-upload-item-name" },
|
|
455
|
-
index.h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
456
|
-
index.h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
457
|
-
name));
|
|
458
|
-
|
|
459
452
|
const formatBytes = (bytes, decimals = 2) => {
|
|
460
453
|
if (bytes === 0) {
|
|
461
454
|
return "0 Bytes";
|
|
@@ -467,9 +460,40 @@ const formatBytes = (bytes, decimals = 2) => {
|
|
|
467
460
|
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
|
|
468
461
|
};
|
|
469
462
|
|
|
470
|
-
const
|
|
471
|
-
const { item, size, uploaded, url } = data;
|
|
463
|
+
const UploadItem = ({ data, showLinks, type, actions, errorCodes, theme, label, categoryLabel, showCategory, }) => {
|
|
464
|
+
const { uid, item, size, uploaded, url, meta, progress, error } = data;
|
|
472
465
|
const { name } = item;
|
|
466
|
+
const getFileNameLine = () => {
|
|
467
|
+
switch (type) {
|
|
468
|
+
case "inprogress":
|
|
469
|
+
return (index.h("span", { class: "duet-upload-item-name" },
|
|
470
|
+
index.h("duet-paragraph", { class: "duet-upload-item-name", color: "gray-darker", margin: "none", weight: "semi-bold" },
|
|
471
|
+
index.h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
472
|
+
index.h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
473
|
+
name),
|
|
474
|
+
index.h("duet-progress", { progress: Math.ceil(progress), "aria-hidden": true })));
|
|
475
|
+
case "pending":
|
|
476
|
+
return (index.h("span", { class: "duet-upload-item-name" },
|
|
477
|
+
index.h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
478
|
+
index.h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
479
|
+
name));
|
|
480
|
+
case "failure":
|
|
481
|
+
return (index.h("span", { class: "duet-upload-item-error", role: "status" },
|
|
482
|
+
index.h("duet-paragraph", { class: "duet-upload-item-name", color: "danger", margin: "none", weight: "semi-bold" },
|
|
483
|
+
index.h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
484
|
+
index.h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
485
|
+
name),
|
|
486
|
+
index.h("duet-paragraph", { class: "duet-upload-item-error-label", size: "small", margin: "none", color: "danger" }, getI18nError(error.type, errorCodes))));
|
|
487
|
+
default:
|
|
488
|
+
return uploaded && url && showLinks ? (index.h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" },
|
|
489
|
+
index.h("duet-link", { url: url, external: true }, ContentName),
|
|
490
|
+
index.h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
491
|
+
SizeText)) : (index.h("duet-paragraph", { color: "secondary", margin: "none", weight: "semi-bold" },
|
|
492
|
+
ContentName,
|
|
493
|
+
index.h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
494
|
+
SizeText));
|
|
495
|
+
}
|
|
496
|
+
};
|
|
473
497
|
const ContentName = (index.h("span", { class: "duet-upload-item-name" },
|
|
474
498
|
index.h("duet-icon", { margin: "none", size: "x-small", name: "messaging-attachment" }),
|
|
475
499
|
index.h("duet-spacer", { size: "xx-small", direction: "horizontal" }),
|
|
@@ -478,31 +502,26 @@ const SuccessItem = ({ data, showLinks }) => {
|
|
|
478
502
|
"(",
|
|
479
503
|
formatBytes(size),
|
|
480
504
|
")"));
|
|
481
|
-
const
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
index.h("
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
// </span>
|
|
496
|
-
// ) : undefined
|
|
497
|
-
return (index.h("span", { class: "duet-upload-item-success" },
|
|
498
|
-
index.h("div", null, FilenameLine)));
|
|
505
|
+
const Badges = meta && meta.badges ? (index.h("span", null, meta.badges.map(badgeText => (index.h("duet-badge", { color: "primary" }, badgeText))))) : undefined;
|
|
506
|
+
const actionDescription = `${meta && meta.badges ? meta.badges.join(",") : ""} ${name}`;
|
|
507
|
+
return (index.h("div", { class: {
|
|
508
|
+
"upload-item-row": true,
|
|
509
|
+
} },
|
|
510
|
+
showCategory && (index.h("div", { class: "item-categories" },
|
|
511
|
+
index.h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, languageUtils.getLocaleString(categoryLabel)),
|
|
512
|
+
Badges)),
|
|
513
|
+
index.h("div", { class: { "item-name": true, "no-category": !showCategory } },
|
|
514
|
+
!!label && (index.h("duet-heading", { class: "heading", color: "color-secondary", level: "h6", weight: "semibold" }, languageUtils.getLocaleString(label))),
|
|
515
|
+
getFileNameLine()),
|
|
516
|
+
index.h("div", { class: "item-actions" }, actions.map(actionItem => {
|
|
517
|
+
return (index.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} ${languageUtils.getLocaleString(actionItem.label)} ` }));
|
|
518
|
+
}))));
|
|
499
519
|
};
|
|
500
520
|
|
|
501
|
-
const
|
|
502
|
-
|
|
503
|
-
index.h("duet-
|
|
504
|
-
|
|
505
|
-
return Badges;
|
|
521
|
+
const UploadItemHeader = ({ label, categoryLabel }) => {
|
|
522
|
+
return (index.h("div", { class: "items-header" },
|
|
523
|
+
categoryLabel && (index.h("duet-heading", { class: "category-header", border: "solid", color: "gray-darker", level: "h3", "visual-level": "h6", weight: "semibold" }, languageUtils.getLocaleString(categoryLabel))),
|
|
524
|
+
index.h("duet-heading", { class: { "filename-header": true, "no-category": !categoryLabel }, border: "solid", color: "gray-darker", level: "h3", "visual-level": "h6", weight: "semibold" }, languageUtils.getLocaleString(label))));
|
|
506
525
|
};
|
|
507
526
|
|
|
508
527
|
const validateFileExtension = (name, allowedExtensions) => {
|
|
@@ -628,7 +647,7 @@ const makeXhrRequest = ({ payload, options, onFailure, onSuccess, onProgress })
|
|
|
628
647
|
return xhr;
|
|
629
648
|
};
|
|
630
649
|
|
|
631
|
-
const duetUploadCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}
|
|
650
|
+
const duetUploadCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}::slotted([slot=header]){margin-bottom:16px}::slotted([slot=fileheader]){margin:16px 0 0 0}::slotted([slot=filefooter]){margin-top:16px}::slotted([slot=uploadfooter]){margin-top:28px}.duet-upload{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-upload-item-size{font-size:0.75rem;font-weight:400}.duet-upload-filelist{margin-bottom:25px}.duet-upload-filelist-empty{display:flex;align-items:center;justify-content:center;width:100%;height:75px;margin:0 auto;font-size:1rem;font-weight:400;background-color:rgb(245, 248, 250)}.duet-upload-filelist-empty-label{font-size:1rem;font-weight:400}.duet-upload-editable-table-header-hidden{display:none}.duet-upload-editable-table tbody .duet-upload-editable-table-data{padding:0 !important;border:0}.duet-upload-editable-table duet-editable-table tfoot,.duet-upload-editable-table duet-editable-table thead{display:none}.duet-upload-editable-table duet-editable-table .duet-editable-table-content{padding-right:0 !important;padding-left:0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td{padding:1rem 0 !important}.duet-upload-editable-table duet-editable-table duet-table .duet-table-action-row td:last-child{padding-right:0 !important}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending{position:relative}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-progress,.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-progress{position:absolute;bottom:0;width:100%}.duet-upload-editable-table duet-editable-table .duet-editable-table-row-inprogress duet-action-button::part(button),.duet-upload-editable-table duet-editable-table .duet-editable-table-row-pending duet-action-button::part(button){border:0}duet-paragraph::part(duet-paragraph){word-break:break-word}duet-editable-table tfoot{display:none}.upload-bottom-caption{margin-top:12px;margin-bottom:28px}.items-header{display:none;flex-direction:row}@media (min-width: 36em){.items-header{display:flex}}.items-header:not(:last-child),.items-header:not(:first-child){margin-top:12px}.items-header .category-header{width:35%}.items-header .filename-header{width:65%}.items-header .filename-header.no-category{width:100%}.upload-item-row{display:flex;flex-direction:column;gap:10px;align-content:center;align-items:center;padding:16px 0 16px 0;border-bottom:1px solid rgb(225, 227, 230)}@media (min-width: 36em){.upload-item-row{flex-direction:row}}.upload-item-row .item-categories{width:100%}@media (min-width: 36em){.upload-item-row .item-categories{width:35%}}.upload-item-row .item-name{position:relative;bottom:2px;width:100%;text-align:left}@media (min-width: 36em){.upload-item-row .item-name{width:50%}.upload-item-row .item-name.no-category{width:85%}}.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:block}@media (min-width: 36em){.upload-item-row .item-categories .heading,.upload-item-row .item-name .heading{display:none}}.upload-item-row .item-actions{width:100%;padding-top:6px;text-align:left}@media (min-width: 36em){.upload-item-row .item-actions{width:15%;padding-top:0;text-align:right}}.upload-item-row .duet-upload-item-name duet-icon{position:relative;top:4px}.upload-item-row .duet-upload-item-name duet-progress{display:block;margin-top:16px}";
|
|
632
651
|
|
|
633
652
|
const DuetUpload = class {
|
|
634
653
|
constructor(hostRef) {
|
|
@@ -665,6 +684,11 @@ const DuetUpload = class {
|
|
|
665
684
|
this.kick = jsUtils.debounce(() => {
|
|
666
685
|
this.tick = Date.now();
|
|
667
686
|
}, 30); // will trigger re-render
|
|
687
|
+
this.categoryLabel = {
|
|
688
|
+
en: "Category",
|
|
689
|
+
sv: "Filtyp",
|
|
690
|
+
fi: "Tiedostotyyppi",
|
|
691
|
+
};
|
|
668
692
|
/**
|
|
669
693
|
* Private functions
|
|
670
694
|
*/
|
|
@@ -717,18 +741,18 @@ const DuetUpload = class {
|
|
|
717
741
|
return "none";
|
|
718
742
|
}
|
|
719
743
|
};
|
|
720
|
-
this.
|
|
744
|
+
this.mapFilesToUploadItems = (data, group, showCategory) => {
|
|
721
745
|
if (group === this.DefaultGroups.success) {
|
|
722
|
-
return index.h(
|
|
746
|
+
return (index.h(UploadItem, { theme: this.theme, actions: this.getActions(group), type: "success", data: data, showLinks: this.showLinks, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory }));
|
|
723
747
|
}
|
|
724
748
|
else if (group === this.DefaultGroups.inprogress) {
|
|
725
|
-
return index.h(
|
|
749
|
+
return (index.h(UploadItem, { theme: this.theme, actions: this.getActions(group), type: "inprogress", data: data, showLinks: this.showLinks, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory }));
|
|
726
750
|
}
|
|
727
751
|
else if (group === this.DefaultGroups.pending) {
|
|
728
|
-
return index.h(
|
|
752
|
+
return (index.h(UploadItem, { theme: this.theme, actions: this.getActions(group), type: "pending", data: data, showLinks: this.showLinks, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory }));
|
|
729
753
|
}
|
|
730
754
|
else if (group === this.DefaultGroups.failure) {
|
|
731
|
-
return index.h(
|
|
755
|
+
return (index.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 }));
|
|
732
756
|
}
|
|
733
757
|
else if (data.group) {
|
|
734
758
|
return data.html;
|
|
@@ -1001,60 +1025,43 @@ const DuetUpload = class {
|
|
|
1001
1025
|
const failure = [];
|
|
1002
1026
|
const pending = [];
|
|
1003
1027
|
const success = [];
|
|
1028
|
+
let hasCategory = false;
|
|
1004
1029
|
all.forEach(data => {
|
|
1005
|
-
var _a, _b;
|
|
1006
1030
|
const group = this.getGroupFromItemData(data);
|
|
1007
|
-
const item =
|
|
1008
|
-
const category =
|
|
1009
|
-
const categories =
|
|
1031
|
+
// const item = mapFn(data, group)
|
|
1032
|
+
// const category = <UploadCategory meta={data.meta} />
|
|
1033
|
+
// const categories = data.meta?.badges?.join(",")
|
|
1034
|
+
if (data.meta && !!data.meta.badges) {
|
|
1035
|
+
hasCategory = true;
|
|
1036
|
+
}
|
|
1010
1037
|
if (group === this.DefaultGroups.success) {
|
|
1011
1038
|
success.push({
|
|
1012
1039
|
uid: data.uid,
|
|
1013
|
-
|
|
1014
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
1015
|
-
category,
|
|
1016
|
-
group,
|
|
1017
|
-
actionDescription: `${categories || ""} ${data.item.name}`,
|
|
1040
|
+
data,
|
|
1018
1041
|
});
|
|
1019
1042
|
}
|
|
1020
1043
|
else if (group === this.DefaultGroups.inprogress) {
|
|
1021
1044
|
inprogress.push({
|
|
1022
1045
|
uid: data.uid,
|
|
1023
|
-
|
|
1024
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
1025
|
-
category,
|
|
1026
|
-
group,
|
|
1027
|
-
actionDescription: `category ${data.item.name}`,
|
|
1046
|
+
data,
|
|
1028
1047
|
});
|
|
1029
1048
|
}
|
|
1030
1049
|
else if (group === this.DefaultGroups.pending) {
|
|
1031
1050
|
pending.push({
|
|
1032
1051
|
uid: data.uid,
|
|
1033
|
-
|
|
1034
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
1035
|
-
category,
|
|
1036
|
-
group,
|
|
1037
|
-
actionDescription: `category ${data.item.name}`,
|
|
1052
|
+
data,
|
|
1038
1053
|
});
|
|
1039
1054
|
}
|
|
1040
1055
|
else if (group === this.DefaultGroups.failure) {
|
|
1041
1056
|
failure.push({
|
|
1042
1057
|
uid: data.uid,
|
|
1043
|
-
|
|
1044
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
1045
|
-
category,
|
|
1046
|
-
group,
|
|
1047
|
-
actionDescription: `category ${data.item.name}`,
|
|
1058
|
+
data,
|
|
1048
1059
|
});
|
|
1049
1060
|
}
|
|
1050
1061
|
else if (data.group) {
|
|
1051
1062
|
inprogress.push({
|
|
1052
1063
|
uid: data.uid,
|
|
1053
|
-
|
|
1054
|
-
hasCategory: data.meta && !!data.meta.badges,
|
|
1055
|
-
category,
|
|
1056
|
-
group: data.group,
|
|
1057
|
-
actionDescription: `category ${data.item.name}`,
|
|
1064
|
+
data,
|
|
1058
1065
|
});
|
|
1059
1066
|
}
|
|
1060
1067
|
});
|
|
@@ -1063,46 +1070,23 @@ const DuetUpload = class {
|
|
|
1063
1070
|
failure,
|
|
1064
1071
|
success,
|
|
1065
1072
|
inprogress,
|
|
1073
|
+
hasCategory,
|
|
1066
1074
|
};
|
|
1067
1075
|
};
|
|
1068
|
-
this.getColumns = (group, hasCategory) => {
|
|
1069
|
-
return [
|
|
1070
|
-
{
|
|
1071
|
-
sort_order: 1,
|
|
1072
|
-
direction: -1,
|
|
1073
|
-
index: 0,
|
|
1074
|
-
key: "category",
|
|
1075
|
-
label: {
|
|
1076
|
-
fi: "Kategoria",
|
|
1077
|
-
sv: "Kategori",
|
|
1078
|
-
en: "Category",
|
|
1079
|
-
},
|
|
1080
|
-
display: hasCategory,
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
sort_order: 1,
|
|
1084
|
-
direction: -1,
|
|
1085
|
-
index: 1,
|
|
1086
|
-
key: group.id,
|
|
1087
|
-
label: group.label,
|
|
1088
|
-
display: true,
|
|
1089
|
-
},
|
|
1090
|
-
];
|
|
1091
|
-
};
|
|
1092
1076
|
this.getActions = (id) => {
|
|
1093
1077
|
return this.actions.filter(item => item.map.includes(id));
|
|
1094
1078
|
};
|
|
1095
|
-
this.
|
|
1079
|
+
this.renderUploadedItems = () => {
|
|
1096
1080
|
const filteredItems = this.filterMap();
|
|
1097
|
-
const
|
|
1081
|
+
const hasCategory = filteredItems.hasCategory;
|
|
1082
|
+
const ItemRows = this.groups.map(group => {
|
|
1098
1083
|
const currentItems = filteredItems[group.id];
|
|
1099
1084
|
if (!(currentItems === null || currentItems === void 0 ? void 0 : currentItems.length)) {
|
|
1100
1085
|
return;
|
|
1101
1086
|
}
|
|
1102
|
-
|
|
1103
|
-
return (index.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 }));
|
|
1087
|
+
return (index.h(index.Fragment, null, !this.hideGroups && (index.h(UploadItemHeader, { categoryLabel: hasCategory ? this.categoryLabel : undefined, label: group.label })), currentItems.map(item => this.mapFilesToUploadItems(item.data, group.id, hasCategory))));
|
|
1104
1088
|
});
|
|
1105
|
-
return
|
|
1089
|
+
return (index.h(index.Fragment, null, this.showUploadedItemsHeader && (index.h(UploadItemHeader, { categoryLabel: hasCategory ? this.categoryLabel : undefined, label: this.uploadedItemsHeaderLabel })), ItemRows));
|
|
1106
1090
|
};
|
|
1107
1091
|
this.tick = Date.now();
|
|
1108
1092
|
this.accessibleActiveDescendant = undefined;
|
|
@@ -1218,6 +1202,13 @@ const DuetUpload = class {
|
|
|
1218
1202
|
this.value = undefined;
|
|
1219
1203
|
this.externalUploadButtonId = undefined;
|
|
1220
1204
|
this.captionOnBottom = false;
|
|
1205
|
+
this.showUploadedItemsHeader = false;
|
|
1206
|
+
this.uploadedItemsHeaderLabel = {
|
|
1207
|
+
fi: "Ladattu tiedosto",
|
|
1208
|
+
sv: "Lägg till en bilaga",
|
|
1209
|
+
en: "Uploaded file",
|
|
1210
|
+
};
|
|
1211
|
+
this.hideHeader = false;
|
|
1221
1212
|
this.groups = [
|
|
1222
1213
|
{
|
|
1223
1214
|
id: this.DefaultGroups.success,
|
|
@@ -1342,13 +1333,7 @@ const DuetUpload = class {
|
|
|
1342
1333
|
this.externalUploadButton.ariaLabel = caption;
|
|
1343
1334
|
}
|
|
1344
1335
|
// @ts-ignore
|
|
1345
|
-
return (index.h(index.Host, { class: { "duet-m-0": this.margin === "none" } }, index.h("duet-fieldset", { label: this.label, caption: !this.captionOnBottom ? caption : undefined }, index.h("slot", { name: "header" }), !this.files.size && (index.h("duet-
|
|
1346
|
-
"duet-upload-filelist-empty": !this.files.size,
|
|
1347
|
-
"duet-upload-filelist": true,
|
|
1348
|
-
"duet-upload-filelist-filled": this.files.size,
|
|
1349
|
-
}, id: this.labelId, for: identifier }, index.h("span", { class: {
|
|
1350
|
-
"duet-upload-filelist-empty-label": !this.files.size,
|
|
1351
|
-
} }, this.fileListEmpty))), !!this.files.size && index.h("slot", { name: "fileheader" }), !!this.files.size && (index.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 && index.h("slot", { name: "filefooter" }), index.h("slot", { name: "footer" }), this.captionOnBottom && (index.h("duet-caption", { size: "small" }, index.h("div", { class: "upload-bottom-caption" }, caption))), index.h("slot", { name: "afterfooter" }), index.h("duet-spacer", { size: "large" }), !this.hideButton && (index.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)), index.h("duet-spacer", { size: "medium" }), (this.fileMaxReached || this.bytesMaxReached) && (index.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))), index.h("duet-spacer", { size: "medium" }), index.h("duet-visually-hidden", { "aria-hidden": "true" }, index.h("input", { ref: input => {
|
|
1336
|
+
return (index.h(index.Host, { class: { "duet-m-0": this.margin === "none" } }, index.h("duet-fieldset", { "label-hidden": this.hideHeader, label: this.label, caption: !this.captionOnBottom ? caption : undefined }, index.h("slot", { name: "header" }), !this.files.size && (index.h("duet-empty-state", { id: this.labelId, part: this.identifier ? `${this.identifier}-empty-state` : "duet-upload-empty-state", icon: "messaging-attachment" }, index.h("duet-paragraph", { margin: "none" }, this.fileListEmpty))), !!this.files.size && index.h("slot", { name: "fileheader" }), !!this.files.size && (index.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 && index.h("slot", { name: "filefooter" }), index.h("slot", { name: "uploadfooter" }), this.captionOnBottom && (index.h("duet-caption", { size: "small" }, index.h("div", { class: "upload-bottom-caption" }, caption))), index.h("slot", { name: "afterfooter" }), !this.hideButton && (index.h(index.Fragment, null, index.h("duet-spacer", { size: "large" }), index.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) && (index.h(index.Fragment, null, index.h("duet-spacer", { size: "medium" }), index.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)))), index.h("duet-visually-hidden", { "aria-hidden": "true" }, index.h("input", { ref: input => {
|
|
1352
1337
|
this.nativeInput = input;
|
|
1353
1338
|
}, accept: !this.limitSelection ? undefined : `${this.allowedMimetypes},${this.allowedExtensions}`, onBlur: this.onBlur, onFocus: this.onFocus, onChange: e => this.onChange(e), type: "file", class: {
|
|
1354
1339
|
"duet-upload": true,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
|
|
11
11
|
const duetEmptyStateCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;height:100%}.duet-empty-state{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:100%;padding:48px;color:rgb(0, 41, 77);text-align:center;background:rgb(245, 248, 250);border-radius:4px}.duet-empty-state.duet-theme-turva{color:rgb(23, 28, 58);background:rgb(245, 245, 247)}";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
10
10
|
const createId = require('./create-id-c3b984b1.js');
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const actionArrowRight = require('./action-arrow-right-24fe06be.js');
|
|
10
10
|
const actionNewWindowSmall = require('./action-new-window-small-fa51dfb9.js');
|
|
11
11
|
const commonStrings = require('./common-strings-de17f887.js');
|
|
@@ -5,12 +5,12 @@
|
|
|
5
5
|
|
|
6
6
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
7
7
|
|
|
8
|
-
const index = require('./index-
|
|
8
|
+
const index = require('./index-8512a70b.js');
|
|
9
9
|
const tokens = require('./tokens-21b244ee.js');
|
|
10
10
|
const watchOptions = require('./watch-options-d88afac0.js');
|
|
11
11
|
const themeableComponent = require('./themeable-component-fdeaef9f.js');
|
|
12
12
|
|
|
13
|
-
const duetGridCss = ".sc-duet-grid-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex !important;flex-direction:column !important;align-items:flex-start !important;justify-content:flex-start !important;width:100%;max-width:100%;height:auto}.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:row !important}@media (max-width: 22.5em){.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}@media (min-width: 36em){.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:row !important}}@media (min-width: 48em){.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:row !important}}@media (min-width: 62em){.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:row !important}}@media (min-width: 64.0625em){.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:row !important}}.duet-grid-wrap.sc-duet-grid-h{flex-wrap:wrap !important}.duet-no-stacking.sc-duet-grid-h{flex-direction:row !important}.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}@media (max-width: 35.9375em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 36em){.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 48em){.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 62em){.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 64.0625em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-align-top.duet-no-stacking.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-no-stacking.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-no-stacking.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-no-stacking.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-no-stacking.sc-duet-grid-h{align-items:baseline !important}.duet-grid-align-top.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:baseline !important}@media (min-width: 36em){.duet-grid-align-top.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 36em){.duet-grid-align-bottom.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 36em){.duet-grid-align-center.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:center !important}}@media (min-width: 36em){.duet-grid-align-stretch.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 36em){.duet-grid-align-baseline.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 48em){.duet-grid-align-top.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 48em){.duet-grid-align-bottom.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 48em){.duet-grid-align-center.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:center !important}}@media (min-width: 48em){.duet-grid-align-stretch.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 48em){.duet-grid-align-baseline.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 62em){.duet-grid-align-top.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 62em){.duet-grid-align-bottom.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 62em){.duet-grid-align-center.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 62em){.duet-grid-align-stretch.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 62em){.duet-grid-align-baseline.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 64.0625em){.duet-grid-align-top.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 64.0625em){.duet-grid-align-bottom.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 64.0625em){.duet-grid-align-center.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 64.0625em){.duet-grid-align-stretch.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 64.0625em){.duet-grid-align-baseline.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:baseline !important}}.duet-grid-distribution-left.sc-duet-grid-h{justify-content:flex-start !important}.duet-grid-distribution-right.sc-duet-grid-h{justify-content:flex-end !important}.duet-grid-distribution-center.sc-duet-grid-h{justify-content:center !important}.duet-grid-distribution-between.sc-duet-grid-h{justify-content:space-between !important}.duet-grid-distribution-around.sc-duet-grid-h{justify-content:space-around !important}.duet-grid-distribution-evenly.sc-duet-grid-h{justify-content:space-evenly !important}@media (max-width: 35.9375em){.duet-grid-mobile-left.sc-duet-grid-h{align-items:flex-start !important;justify-content:flex-start !important;text-align:left !important}}@media (max-width: 35.9375em){.duet-grid-mobile-center.sc-duet-grid-h{align-items:center !important;justify-content:center !important;text-align:center !important}.duet-grid-mobile-center.sc-duet-grid-h *.sc-duet-grid{text-align:center !important}}@media (max-width: 35.9375em){.duet-grid-mobile-right.sc-duet-grid-h{align-items:flex-end !important;justify-content:flex-end !important;text-align:right !important}.duet-grid-mobile-right.sc-duet-grid-h *.sc-duet-grid{text-align:right !important}}";
|
|
13
|
+
const duetGridCss = ".sc-duet-grid-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex !important;flex-direction:column !important;align-items:flex-start !important;justify-content:flex-start !important;width:100%;max-width:100%;height:auto}.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-x-small.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}@media (max-width: 22.5em){.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}@media (min-width: 36em){.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-small.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}@media (min-width: 48em){.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-medium.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}@media (min-width: 62em){.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-large.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}@media (min-width: 64.0625em){.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:row !important}.duet-grid-breakpoint-x-large.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}}.duet-grid-wrap.sc-duet-grid-h{flex-wrap:wrap !important}.duet-no-stacking.sc-duet-grid-h{flex-direction:row !important}.duet-no-stacking.duet-grid-row-reverse.sc-duet-grid-h{flex-direction:row-reverse !important}.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}@media (max-width: 35.9375em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 36em){.duet-grid-direction-vertical.duet-grid-breakpoint-small.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 48em){.duet-grid-direction-vertical.duet-grid-breakpoint-medium.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 62em){.duet-grid-direction-vertical.duet-grid-breakpoint-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}@media (min-width: 64.0625em){.duet-grid-direction-vertical.duet-grid-breakpoint-x-large.sc-duet-grid-h{flex-direction:column !important}}.duet-grid-align-top.duet-no-stacking.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-no-stacking.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-no-stacking.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-no-stacking.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-no-stacking.sc-duet-grid-h{align-items:baseline !important}.duet-grid-align-top.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-start !important}.duet-grid-align-bottom.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:flex-end !important}.duet-grid-align-center.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:center !important}.duet-grid-align-stretch.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:stretch !important}.duet-grid-align-baseline.duet-grid-breakpoint-x-small.sc-duet-grid-h{align-items:baseline !important}@media (min-width: 36em){.duet-grid-align-top.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 36em){.duet-grid-align-bottom.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 36em){.duet-grid-align-center.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:center !important}}@media (min-width: 36em){.duet-grid-align-stretch.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 36em){.duet-grid-align-baseline.duet-grid-breakpoint-small.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 48em){.duet-grid-align-top.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 48em){.duet-grid-align-bottom.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 48em){.duet-grid-align-center.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:center !important}}@media (min-width: 48em){.duet-grid-align-stretch.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 48em){.duet-grid-align-baseline.duet-grid-breakpoint-medium.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 62em){.duet-grid-align-top.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 62em){.duet-grid-align-bottom.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 62em){.duet-grid-align-center.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 62em){.duet-grid-align-stretch.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 62em){.duet-grid-align-baseline.duet-grid-breakpoint-large.sc-duet-grid-h{align-items:baseline !important}}@media (min-width: 64.0625em){.duet-grid-align-top.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-start !important}}@media (min-width: 64.0625em){.duet-grid-align-bottom.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:flex-end !important}}@media (min-width: 64.0625em){.duet-grid-align-center.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:center !important}}@media (min-width: 64.0625em){.duet-grid-align-stretch.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:stretch !important}}@media (min-width: 64.0625em){.duet-grid-align-baseline.duet-grid-breakpoint-x-large.sc-duet-grid-h{align-items:baseline !important}}.duet-grid-distribution-left.sc-duet-grid-h{justify-content:flex-start !important}.duet-grid-distribution-right.sc-duet-grid-h{justify-content:flex-end !important}.duet-grid-distribution-center.sc-duet-grid-h{justify-content:center !important}.duet-grid-distribution-between.sc-duet-grid-h{justify-content:space-between !important}.duet-grid-distribution-around.sc-duet-grid-h{justify-content:space-around !important}.duet-grid-distribution-evenly.sc-duet-grid-h{justify-content:space-evenly !important}@media (max-width: 35.9375em){.duet-grid-mobile-left.sc-duet-grid-h{align-items:flex-start !important;justify-content:flex-start !important;text-align:left !important}}@media (max-width: 35.9375em){.duet-grid-mobile-center.sc-duet-grid-h{align-items:center !important;justify-content:center !important;text-align:center !important}.duet-grid-mobile-center.sc-duet-grid-h *.sc-duet-grid{text-align:center !important}}@media (max-width: 35.9375em){.duet-grid-mobile-right.sc-duet-grid-h{align-items:flex-end !important;justify-content:flex-end !important;text-align:right !important}.duet-grid-mobile-right.sc-duet-grid-h *.sc-duet-grid{text-align:right !important}}";
|
|
14
14
|
|
|
15
15
|
function isGridItem(element) {
|
|
16
16
|
return element.tagName.toLowerCase() === "duet-grid-item";
|
|
@@ -27,6 +27,7 @@ const DuetGrid = class {
|
|
|
27
27
|
this.responsive = false;
|
|
28
28
|
this.breakpoint = "small";
|
|
29
29
|
this.direction = "horizontal";
|
|
30
|
+
this.rowReverse = false;
|
|
30
31
|
this.alignment = "top";
|
|
31
32
|
this.distribution = "default";
|
|
32
33
|
this.mobile = "";
|
|
@@ -94,6 +95,7 @@ const DuetGrid = class {
|
|
|
94
95
|
items.forEach(item => {
|
|
95
96
|
item.responsive = this.responsive;
|
|
96
97
|
item.breakpoint = this.breakpoint;
|
|
98
|
+
item.direction = this.direction;
|
|
97
99
|
});
|
|
98
100
|
}
|
|
99
101
|
async updateGridItemsWithInputFields() {
|
|
@@ -148,17 +150,19 @@ const DuetGrid = class {
|
|
|
148
150
|
"duet-grid-breakpoint-medium": this.breakpoint === "medium",
|
|
149
151
|
"duet-grid-breakpoint-large": this.breakpoint === "large",
|
|
150
152
|
"duet-grid-breakpoint-x-large": this.breakpoint === "x-large",
|
|
153
|
+
"duet-grid-row-reverse": this.rowReverse,
|
|
151
154
|
} }));
|
|
152
155
|
}
|
|
153
156
|
get element() { return index.getElement(this); }
|
|
154
157
|
static get watchers() { return {
|
|
155
158
|
"responsive": ["updateGridItems"],
|
|
156
|
-
"breakpoint": ["updateGridItems"]
|
|
159
|
+
"breakpoint": ["updateGridItems"],
|
|
160
|
+
"direction": ["updateGridItems"]
|
|
157
161
|
}; }
|
|
158
162
|
};
|
|
159
163
|
DuetGrid.style = duetGridCss;
|
|
160
164
|
|
|
161
|
-
const duetGridItemCss = ".sc-duet-grid-item-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;min-width:0;max-width:100%;flex:0 0 auto;padding-right:8px;padding-left:8px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-style:normal;font-weight:400;line-height:1.5;color:rgb(0, 41, 77)}.sc-duet-grid-item-h:first-child,.sc-duet-grid-item-h:first-of-type{padding-left:0}.sc-duet-grid-item-h:last-child,.sc-duet-grid-item-h:last-of-type{padding-right:0}@media (max-width: 35.9375em){.duet-grid-item-responsive.sc-duet-grid-item-h{width:100% !important;min-width:0 !important;max-width:100% !important;padding-right:0;padding-left:0}}@media screen and (max-width: 47.9375em){.duet-grid-item-br-medium.sc-duet-grid-item-h{width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 47.9375em){.duet-grid-item-responsive.duet-grid-item-br-medium.sc-duet-grid-item-h{padding-right:0;padding-left:0}}@media screen and (max-width: 64em){.duet-grid-item-br-x-large.sc-duet-grid-item-h{width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 64em){.duet-grid-item-responsive.duet-grid-item-br-x-large.sc-duet-grid-item-h{padding-right:0;padding-left:0}}.duet-grid-item-fill.sc-duet-grid-item-h{flex:1 1 auto;width:100%}.duet-theme-turva.sc-duet-grid-item-h{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-m-0.sc-duet-grid-item-h{padding:0 !important;margin:0 !important}";
|
|
165
|
+
const duetGridItemCss = ".sc-duet-grid-item-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-bottom:16px !important;min-width:0;max-width:100%;flex:0 0 auto;padding-right:8px;padding-left:8px;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-style:normal;font-weight:400;line-height:1.5;color:rgb(0, 41, 77)}.duet-grid-direction-horizontal.sc-duet-grid-item-h:first-child,.duet-grid-direction-horizontal.sc-duet-grid-item-h:first-of-type{padding-left:0}.duet-grid-direction-horizontal.sc-duet-grid-item-h:last-child,.duet-grid-direction-horizontal.sc-duet-grid-item-h:last-of-type{padding-right:0}@media (max-width: 35.9375em){.duet-grid-item-responsive.sc-duet-grid-item-h{width:100% !important;min-width:0 !important;max-width:100% !important;padding-right:0;padding-left:0}}@media screen and (max-width: 47.9375em){.duet-grid-item-br-medium.sc-duet-grid-item-h{width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 47.9375em){.duet-grid-item-responsive.duet-grid-item-br-medium.sc-duet-grid-item-h{padding-right:0;padding-left:0}}@media screen and (max-width: 64em){.duet-grid-item-br-x-large.sc-duet-grid-item-h{width:100% !important;min-width:0 !important;max-width:100% !important}}@media screen and (max-width: 64em){.duet-grid-item-responsive.duet-grid-item-br-x-large.sc-duet-grid-item-h{padding-right:0;padding-left:0}}.duet-grid-item-fill.sc-duet-grid-item-h{flex:1 1 auto;width:100%}.duet-theme-turva.sc-duet-grid-item-h{font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}.duet-m-0.sc-duet-grid-item-h{padding:0 !important;margin:0 !important}";
|
|
162
166
|
|
|
163
167
|
const DuetGridItem = class {
|
|
164
168
|
constructor(hostRef) {
|
|
@@ -169,6 +173,7 @@ const DuetGridItem = class {
|
|
|
169
173
|
this.theme = "";
|
|
170
174
|
this.margin = "auto";
|
|
171
175
|
this.responsive = false;
|
|
176
|
+
this.direction = "horizontal";
|
|
172
177
|
this.breakpoint = "small";
|
|
173
178
|
}
|
|
174
179
|
/**
|
|
@@ -191,7 +196,12 @@ const DuetGridItem = class {
|
|
|
191
196
|
"duet-grid-item": true,
|
|
192
197
|
"duet-grid-item-fill": this.fill,
|
|
193
198
|
"duet-grid-item-responsive": this.responsive,
|
|
199
|
+
"duet-grid-direction-horizontal": this.direction === "horizontal",
|
|
200
|
+
"duet-grid-direction-vertical": this.direction === "vertical",
|
|
201
|
+
"duet-grid-item-br-x-small": this.breakpoint === "x-small",
|
|
202
|
+
"duet-grid-item-br-small": this.breakpoint === "small",
|
|
194
203
|
"duet-grid-item-br-medium": this.breakpoint === "medium",
|
|
204
|
+
"duet-grid-item-br-large": this.breakpoint === "large",
|
|
195
205
|
"duet-grid-item-br-x-large": this.breakpoint === "x-large",
|
|
196
206
|
} }));
|
|
197
207
|
}
|