@duetds/components 6.10.2 → 6.10.4
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 +4370 -3798
- package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-banner.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
- package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-callout.cjs.entry.js +1 -1
- package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
- package/lib/cjs/duet-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
- package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
- package/lib/cjs/duet-chip.cjs.entry.js +168 -0
- package/lib/cjs/duet-choice_2.cjs.entry.js +24 -11
- package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
- package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
- package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +32 -135
- 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 +6 -3
- package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-hero.cjs.entry.js +1 -1
- package/lib/cjs/duet-icon.cjs.entry.js +1 -1
- package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
- package/lib/cjs/duet-modal.cjs.entry.js +2 -2
- package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +8 -1
- package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-popup-menu-item.cjs.entry.js +45 -0
- package/lib/cjs/duet-popup-menu.cjs.entry.js +113 -0
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-promo-card.cjs.entry.js +1 -1
- package/lib/cjs/duet-radio_2.cjs.entry.js +5 -4
- package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +2 -2
- package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-select.cjs.entry.js +1 -1
- package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
- package/lib/cjs/duet-show-more.cjs.entry.js +95 -0
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
- package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +4 -1174
- package/lib/cjs/duet-tray.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-item.cjs.entry.js +93 -0
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/errorcodes.utils-5deca818.js +39 -0
- package/lib/cjs/floating-ui.dom.esm-3801794e.js +1251 -0
- package/lib/cjs/{focus-utils-a7ec8d4d.js → focus-utils-a66763f4.js} +1 -1
- package/lib/cjs/{index-b91d0c7f.js → index-4eb7ce33.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/collection/collection-manifest.json +5 -0
- package/lib/collection/components/duet-chip/duet-chip.css +202 -0
- package/lib/collection/components/duet-chip/duet-chip.js +395 -0
- package/lib/collection/components/duet-choice/duet-choice.css +60 -33
- package/lib/collection/components/duet-choice/duet-choice.js +39 -8
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +3 -1
- package/lib/collection/components/duet-grid/duet-grid.css +260 -116
- package/lib/collection/components/duet-grid/duet-grid.js +22 -1
- package/lib/collection/components/duet-number-input/duet-number-input.js +23 -0
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.css +57 -0
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +361 -0
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +69 -0
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +225 -0
- package/lib/collection/components/duet-radio/duet-radio.css +3 -3
- package/lib/collection/components/duet-radio/duet-radio.js +9 -3
- package/lib/collection/components/duet-scrollable/duet-scrollable.css +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.css +46 -0
- package/lib/collection/components/duet-show-more/duet-show-more.js +214 -0
- package/lib/collection/components/duet-upload/duet-upload.js +37 -13
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +299 -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-banner.js +4 -4
- package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
- package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
- package/lib/dist-custom-elements/duet-button.js +1 -1
- package/lib/dist-custom-elements/duet-callout.js +3 -3
- package/lib/dist-custom-elements/duet-caption.js +1 -1
- package/lib/dist-custom-elements/duet-card.js +3 -3
- package/lib/dist-custom-elements/duet-checkbox.js +1 -1
- package/lib/dist-custom-elements/duet-checkmark.js +1 -1
- package/lib/dist-custom-elements/duet-chip.d.ts +11 -0
- package/lib/dist-custom-elements/duet-chip.js +200 -0
- package/lib/dist-custom-elements/duet-choice-group.js +6 -6
- package/lib/dist-custom-elements/duet-choice.js +28 -14
- package/lib/dist-custom-elements/duet-collapsible.js +2 -2
- package/lib/dist-custom-elements/duet-combobox.js +2 -2
- package/lib/dist-custom-elements/duet-contact-card.js +8 -8
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +10 -10
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +10 -8
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-footer.js +4 -4
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +8 -8
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +9 -9
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -1
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
- package/lib/dist-custom-elements/duet-modal.js +7 -7
- package/lib/dist-custom-elements/duet-multiselect.js +8 -8
- package/lib/dist-custom-elements/duet-nav.js +1 -1
- package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
- package/lib/dist-custom-elements/duet-notification.js +2 -2
- package/lib/dist-custom-elements/duet-number-input.js +18 -10
- package/lib/dist-custom-elements/duet-page-heading.js +2 -2
- package/lib/dist-custom-elements/duet-pagination.js +7 -7
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-popup-menu-item.d.ts +11 -0
- package/lib/dist-custom-elements/duet-popup-menu-item.js +75 -0
- package/lib/dist-custom-elements/duet-popup-menu.d.ts +11 -0
- package/lib/dist-custom-elements/duet-popup-menu.js +142 -0
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-promo-card.js +3 -3
- package/lib/dist-custom-elements/duet-radio-group.js +6 -6
- package/lib/dist-custom-elements/duet-radio.js +6 -5
- package/lib/dist-custom-elements/duet-range-slider.js +2 -2
- package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +1 -1
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
- package/lib/dist-custom-elements/duet-show-more.d.ts +11 -0
- package/lib/dist-custom-elements/duet-show-more.js +137 -0
- package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
- package/lib/dist-custom-elements/duet-slideout.js +2 -2
- package/lib/dist-custom-elements/duet-spacer.js +1 -1
- package/lib/dist-custom-elements/duet-spinner.js +1 -1
- package/lib/dist-custom-elements/duet-step.js +4 -4
- package/lib/dist-custom-elements/duet-stepper.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-submenu-bar.js +2 -2
- package/lib/dist-custom-elements/duet-tab-group.js +11 -11
- package/lib/dist-custom-elements/duet-tab.js +1 -1
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +8 -8
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +3 -3
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload-item.d.ts +11 -0
- package/lib/dist-custom-elements/duet-upload-item.js +9 -0
- package/lib/dist-custom-elements/duet-upload.js +58 -158
- package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
- package/lib/dist-custom-elements/index.js +1 -1
- package/lib/dist-custom-elements/{p-4197b9ee.js → p-006d0fb1.js} +2 -2
- package/lib/dist-custom-elements/{p-05139591.js → p-03297bf3.js} +1 -1
- package/lib/dist-custom-elements/{p-e3acab40.js → p-08f20e44.js} +2 -2
- package/lib/dist-custom-elements/{p-39c6c68e.js → p-0f04ecb5.js} +1 -1
- package/lib/dist-custom-elements/{p-c202693f.js → p-171c70e8.js} +1 -1
- package/lib/dist-custom-elements/{p-8fb68cb1.js → p-1b34adf1.js} +2 -2
- package/lib/dist-custom-elements/{p-d6a6460a.js → p-1f14a267.js} +1 -1
- package/lib/dist-custom-elements/{p-f6b5ce88.js → p-226f50bb.js} +1 -1
- package/lib/dist-custom-elements/{p-1b3de4b8.js → p-25d3d458.js} +1 -1
- package/lib/dist-custom-elements/{p-2b132855.js → p-25fa826f.js} +1 -1
- package/lib/dist-custom-elements/{p-e6f6efa6.js → p-265d42fd.js} +1 -1
- package/lib/dist-custom-elements/{p-96b624ec.js → p-26a65533.js} +1 -1
- package/lib/dist-custom-elements/{p-419d2da0.js → p-2b8c0c2f.js} +6 -6
- package/lib/dist-custom-elements/{p-28658e20.js → p-37255027.js} +8 -8
- package/lib/dist-custom-elements/{p-58105b4f.js → p-3e609785.js} +1 -1
- package/lib/dist-custom-elements/p-4c575cf4.js +278 -0
- package/lib/dist-custom-elements/{p-9e83a449.js → p-5114f1bd.js} +2 -2
- package/lib/dist-custom-elements/{p-8638ba69.js → p-5c48ca92.js} +1 -1
- package/lib/dist-custom-elements/{p-ea756e9e.js → p-661fee29.js} +6 -6
- package/lib/dist-custom-elements/{p-3595aea9.js → p-7681059e.js} +1 -1
- package/lib/dist-custom-elements/{p-7d6d90bc.js → p-7c2e755b.js} +1 -1
- package/lib/dist-custom-elements/{p-e3ac121c.js → p-80cd62f8.js} +5 -5
- package/lib/dist-custom-elements/p-84a78894.js +187 -0
- package/lib/dist-custom-elements/{p-62f3b6cb.js → p-8a1632b1.js} +3 -3
- package/lib/dist-custom-elements/{p-eb29050b.js → p-a60259d1.js} +1 -1
- package/lib/dist-custom-elements/{p-227cc94f.js → p-b98f1d2a.js} +1 -1
- package/lib/dist-custom-elements/{p-6de01596.js → p-c85e7fbd.js} +1 -1
- package/lib/dist-custom-elements/{p-6f4b6168.js → p-d5e61aac.js} +1 -1
- package/lib/dist-custom-elements/{p-a0f68c00.js → p-dbb9df4e.js} +3 -3
- package/lib/dist-custom-elements/{p-38b3c30a.js → p-df10a767.js} +71 -274
- package/lib/dist-custom-elements/p-e0afb5aa.js +197 -0
- package/lib/dist-custom-elements/{p-beca0ced.js → p-e467de13.js} +1 -1
- package/lib/dist-custom-elements/{p-2747b8c6.js → p-ffc196f5.js} +4 -4
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-d3323581.system.entry.js → p-000a0a75.system.entry.js} +1 -1
- package/lib/duet/{p-6766ef3d.system.entry.js → p-00355028.system.entry.js} +1 -1
- package/lib/duet/{p-62b68de6.system.js → p-053be9dd.system.js} +1 -1
- package/lib/duet/p-05dd0fb6.entry.js +4 -0
- package/lib/duet/{p-1e6f5e74.system.entry.js → p-06969947.system.entry.js} +1 -1
- package/lib/duet/p-08c7360e.system.entry.js +4 -0
- package/lib/duet/{p-5e7dc52a.system.entry.js → p-099119d3.system.entry.js} +1 -1
- package/lib/duet/{p-6ad538a7.system.entry.js → p-0b696003.system.entry.js} +1 -1
- package/lib/duet/p-101cc3fe.system.entry.js +4 -0
- package/lib/duet/{p-1df0bbf9.system.entry.js → p-110c2c76.system.entry.js} +1 -1
- package/lib/duet/{p-8c404f51.system.entry.js → p-11d01178.system.entry.js} +1 -1
- package/lib/duet/{p-87f85912.system.entry.js → p-13fa33f3.system.entry.js} +1 -1
- package/lib/duet/{p-91a5c4fd.system.entry.js → p-1483de5f.system.entry.js} +1 -1
- package/lib/duet/{p-62b435d1.system.entry.js → p-15505723.system.entry.js} +1 -1
- package/lib/duet/{p-89d9030e.system.entry.js → p-1616c51d.system.entry.js} +1 -1
- package/lib/duet/{p-1f3d12d2.system.entry.js → p-184ee980.system.entry.js} +1 -1
- package/lib/duet/p-19ea4e54.entry.js +4 -0
- package/lib/duet/{p-cfde4f9a.system.entry.js → p-1ff16557.system.entry.js} +1 -1
- package/lib/duet/{p-f88ac93f.system.entry.js → p-20c19d2e.system.entry.js} +1 -1
- package/lib/duet/p-26ed5006.system.entry.js +4 -0
- package/lib/duet/{p-72a2ff4d.entry.js → p-276da9b8.entry.js} +1 -1
- package/lib/duet/{p-94d448f9.system.entry.js → p-28b0deff.system.entry.js} +1 -1
- package/lib/duet/{p-03522bb4.entry.js → p-28cf3d78.entry.js} +1 -1
- package/lib/duet/{p-af3060c1.system.entry.js → p-2a37e574.system.entry.js} +1 -1
- package/lib/duet/{p-de31586c.system.entry.js → p-2a9b8270.system.entry.js} +1 -1
- package/lib/duet/{p-245a63f4.entry.js → p-2a9e5e4c.entry.js} +1 -1
- package/lib/duet/{p-17d2c223.system.entry.js → p-2bd98cbe.system.entry.js} +1 -1
- package/lib/duet/{p-c424c794.entry.js → p-31155f08.entry.js} +1 -1
- package/lib/duet/{p-8f7f4724.entry.js → p-322f69c7.entry.js} +1 -1
- package/lib/duet/{p-56b92797.entry.js → p-32d31570.entry.js} +1 -1
- package/lib/duet/{p-909e088e.system.entry.js → p-32ee127a.system.entry.js} +1 -1
- package/lib/duet/{p-d159787d.entry.js → p-35b74797.entry.js} +1 -1
- package/lib/duet/{p-058dfaad.entry.js → p-368e63a8.entry.js} +1 -1
- package/lib/duet/{p-e7af2cd8.system.entry.js → p-380ead38.system.entry.js} +1 -1
- package/lib/duet/{p-c7fbe38a.entry.js → p-38e24930.entry.js} +1 -1
- package/lib/duet/{p-6392cafe.entry.js → p-3b33c459.entry.js} +1 -1
- package/lib/duet/{p-2f8c7a7d.entry.js → p-3c43d0ee.entry.js} +1 -1
- package/lib/duet/{p-30551712.system.entry.js → p-40463065.system.entry.js} +1 -1
- package/lib/duet/p-434b31e9.system.js +4 -0
- package/lib/duet/{p-5c4a2f44.system.entry.js → p-45046cb8.system.entry.js} +1 -1
- package/lib/duet/{p-99a8b5f5.entry.js → p-4667e5cc.entry.js} +1 -1
- package/lib/duet/{p-bbadf525.system.entry.js → p-4956fa1c.system.entry.js} +1 -1
- package/lib/duet/{p-d18383cd.entry.js → p-4af3a90a.entry.js} +1 -1
- package/lib/duet/{p-b906790d.entry.js → p-4f321fb8.entry.js} +1 -1
- package/lib/duet/{p-29ce564d.entry.js → p-4f90dd0a.entry.js} +1 -1
- package/lib/duet/{p-a6917de1.system.entry.js → p-4fc64fe9.system.entry.js} +1 -1
- package/lib/duet/{p-6a42d57c.system.entry.js → p-521b2f02.system.entry.js} +1 -1
- package/lib/duet/p-540d7ed6.entry.js +4 -0
- package/lib/duet/p-549a1ffd.system.entry.js +4 -0
- package/lib/duet/{p-eb9c8e60.entry.js → p-5e2af124.entry.js} +1 -1
- package/lib/duet/{p-cad8060d.system.entry.js → p-5ed8969b.system.entry.js} +1 -1
- package/lib/duet/{p-420dfc2c.entry.js → p-604adb3e.entry.js} +1 -1
- package/lib/duet/{p-c085e346.system.entry.js → p-60c99082.system.entry.js} +1 -1
- package/lib/duet/{p-ef033a06.system.entry.js → p-6508eed1.system.entry.js} +1 -1
- package/lib/duet/{p-09daf29e.system.entry.js → p-684b2d77.system.entry.js} +1 -1
- package/lib/duet/{p-0738bb7d.system.entry.js → p-6892546a.system.entry.js} +1 -1
- package/lib/duet/{p-36edc06c.system.entry.js → p-699f593c.system.entry.js} +1 -1
- package/lib/duet/p-6b115b63.system.js +4 -0
- package/lib/duet/{p-ed78f6fe.system.entry.js → p-6baede6c.system.entry.js} +1 -1
- package/lib/duet/{p-42e270f3.entry.js → p-6bb42603.entry.js} +1 -1
- package/lib/duet/{p-0dda8331.entry.js → p-6e93b2f3.entry.js} +1 -1
- package/lib/duet/{p-dc9bf216.entry.js → p-6ee35830.entry.js} +1 -1
- package/lib/duet/{p-9c554b07.entry.js → p-700cc5d1.entry.js} +1 -1
- package/lib/duet/{p-ff5f4d38.entry.js → p-721bf508.entry.js} +1 -1
- package/lib/duet/{p-a4cc9386.system.entry.js → p-7284cb09.system.entry.js} +1 -1
- package/lib/duet/{p-d85d8db5.entry.js → p-72d18d55.entry.js} +1 -1
- package/lib/duet/p-756341c2.system.entry.js +4 -0
- package/lib/duet/{p-a31222e3.entry.js → p-7565b093.entry.js} +1 -1
- package/lib/duet/{p-673127ac.system.entry.js → p-773268e7.system.entry.js} +1 -1
- package/lib/duet/{p-30c684e8.entry.js → p-77616680.entry.js} +1 -1
- package/lib/duet/{p-f4799c34.system.entry.js → p-7a3071a5.system.entry.js} +1 -1
- package/lib/duet/{p-779be7c6.system.entry.js → p-7e061e75.system.entry.js} +1 -1
- package/lib/duet/{p-8ec5c49e.entry.js → p-7f588669.entry.js} +1 -1
- package/lib/duet/p-8094e185.entry.js +4 -0
- package/lib/duet/{p-7dea5e1a.system.entry.js → p-8146f5d7.system.entry.js} +1 -1
- package/lib/duet/{p-81668ed2.system.entry.js → p-82330774.system.entry.js} +1 -1
- package/lib/duet/{p-1d3647c6.system.entry.js → p-8275330c.system.entry.js} +1 -1
- package/lib/duet/p-82b5380b.system.js +4 -0
- package/lib/duet/{p-0fbdbb6a.entry.js → p-8445fc10.entry.js} +1 -1
- package/lib/duet/{p-0b34d9b5.system.entry.js → p-8584bcfe.system.entry.js} +1 -1
- package/lib/duet/{p-07300cb6.entry.js → p-86e7a88a.entry.js} +1 -1
- package/lib/duet/p-871eca43.entry.js +4 -0
- package/lib/duet/{p-72d1f618.system.entry.js → p-8862fec1.system.entry.js} +1 -1
- package/lib/duet/{p-1b11e540.entry.js → p-8cf359d9.entry.js} +1 -1
- package/lib/duet/{p-2528a411.system.entry.js → p-8daa915d.system.entry.js} +1 -1
- package/lib/duet/{p-379e2995.system.entry.js → p-8db6114f.system.entry.js} +1 -1
- package/lib/duet/p-90f06b7a.system.entry.js +4 -0
- package/lib/duet/p-91b3d075.entry.js +4 -0
- package/lib/duet/p-9226aca2.entry.js +4 -0
- package/lib/duet/{p-fd33eb2c.entry.js → p-99a90b30.entry.js} +1 -1
- package/lib/duet/{p-3b70cce3.entry.js → p-9ad6fc83.entry.js} +1 -1
- package/lib/duet/p-9e72b23c.system.entry.js +4 -0
- package/lib/duet/{p-13384099.entry.js → p-9ec0d197.entry.js} +1 -1
- package/lib/duet/{p-1a542b7c.system.entry.js → p-a0f76a04.system.entry.js} +1 -1
- package/lib/duet/p-a1978b4b.entry.js +4 -0
- package/lib/duet/p-a2ddca83.system.entry.js +4 -0
- package/lib/duet/{p-a7c64d94.entry.js → p-a5cf2316.entry.js} +1 -1
- package/lib/duet/{p-39496689.entry.js → p-a61825d9.entry.js} +1 -1
- package/lib/duet/{p-22dd2fab.entry.js → p-a6696d45.entry.js} +1 -1
- package/lib/duet/{p-7f8020bf.entry.js → p-a66ca0af.entry.js} +1 -1
- package/lib/duet/{p-62c70a95.entry.js → p-a7ed46e3.entry.js} +1 -1
- package/lib/duet/{p-85ad609f.entry.js → p-a86ae0c3.entry.js} +1 -1
- package/lib/duet/{p-9960de16.entry.js → p-ae7602cb.entry.js} +1 -1
- package/lib/duet/{p-cf9279b9.system.entry.js → p-b134229a.system.entry.js} +1 -1
- package/lib/duet/p-b362d8f7.entry.js +4 -0
- package/lib/duet/{p-65a5fdd5.entry.js → p-b4b5f803.entry.js} +1 -1
- package/lib/duet/{p-8cf1327e.entry.js → p-b594282a.entry.js} +1 -1
- package/lib/duet/{p-cb5ebe92.system.entry.js → p-b650e679.system.entry.js} +1 -1
- package/lib/duet/{p-6a07feba.entry.js → p-b77224fc.entry.js} +1 -1
- package/lib/duet/{p-6a89c7d0.system.entry.js → p-b7fe2c37.system.entry.js} +1 -1
- package/lib/duet/{p-931c3e1f.system.entry.js → p-bc541e97.system.entry.js} +1 -1
- package/lib/duet/{p-93ef4cc2.system.entry.js → p-be295e13.system.entry.js} +1 -1
- package/lib/duet/{p-98202339.entry.js → p-c0874730.entry.js} +1 -1
- package/lib/duet/{p-1d73a1d2.system.entry.js → p-c0c92199.system.entry.js} +1 -1
- package/lib/duet/p-c185ea87.system.entry.js +4 -0
- package/lib/duet/{p-fa400061.entry.js → p-c1c6a4f5.entry.js} +1 -1
- package/lib/duet/p-c2ff6bb2.entry.js +4 -0
- package/lib/duet/{p-637f635a.entry.js → p-c391b2a4.entry.js} +1 -1
- package/lib/duet/p-c5efb3f6.entry.js +4 -0
- package/lib/duet/p-c6122404.entry.js +4 -0
- package/lib/duet/p-c6b09397.js +4 -0
- package/lib/duet/p-c79f4b4b.entry.js +4 -0
- package/lib/duet/{p-32237f45.entry.js → p-c9198461.entry.js} +1 -1
- package/lib/duet/{p-770d0c35.system.entry.js → p-ca2725cd.system.entry.js} +1 -1
- package/lib/duet/{p-4a97ca92.system.entry.js → p-ca4d7a6d.system.entry.js} +1 -1
- package/lib/duet/{p-ee909d5f.system.entry.js → p-cb4799d1.system.entry.js} +1 -1
- package/lib/duet/{p-2a277fb6.entry.js → p-ccb08e8c.entry.js} +1 -1
- package/lib/duet/p-cf504df5.js +4 -0
- package/lib/duet/{p-b76ce62b.entry.js → p-cff11c78.entry.js} +1 -1
- package/lib/duet/{p-22e418ea.entry.js → p-d0175269.entry.js} +1 -1
- package/lib/duet/{p-91df8a4a.system.entry.js → p-d029f8dc.system.entry.js} +1 -1
- package/lib/duet/{p-5f2e386e.entry.js → p-d42279cd.entry.js} +1 -1
- package/lib/duet/{p-b3154717.entry.js → p-d4bc7a19.entry.js} +1 -1
- package/lib/duet/{p-1c7ad230.system.entry.js → p-d6dfa7c8.system.entry.js} +1 -1
- package/lib/duet/{p-ad3eba9a.entry.js → p-d841291b.entry.js} +1 -1
- package/lib/duet/{p-5048f9a7.entry.js → p-d988f03a.entry.js} +1 -1
- package/lib/duet/{p-a8a1d1f6.entry.js → p-da4f4b6c.entry.js} +1 -1
- package/lib/duet/{p-bd1d0640.system.js → p-dd1393e3.system.js} +1 -1
- package/lib/duet/{p-e9939ddb.system.entry.js → p-dee73c08.system.entry.js} +1 -1
- package/lib/duet/p-df10a767.js +4 -0
- package/lib/duet/{p-4f4ed95d.system.entry.js → p-df213a66.system.entry.js} +1 -1
- package/lib/duet/{p-e501bad4.system.entry.js → p-e288bb38.system.entry.js} +1 -1
- package/lib/duet/{p-5c444839.entry.js → p-e368e194.entry.js} +1 -1
- package/lib/duet/{p-f5728af6.system.entry.js → p-e6315f68.system.entry.js} +1 -1
- package/lib/duet/{p-1b426189.entry.js → p-e79c63b6.entry.js} +1 -1
- package/lib/duet/{p-2d3dbd85.system.entry.js → p-e8d8c7a2.system.entry.js} +1 -1
- package/lib/duet/{p-925f2b45.entry.js → p-e983ff0c.entry.js} +1 -1
- package/lib/duet/{p-17dc8da9.system.entry.js → p-ec796dfe.system.entry.js} +1 -1
- package/lib/duet/{p-d7425b07.entry.js → p-f58832f6.entry.js} +1 -1
- package/lib/duet/p-f5b53f2f.system.entry.js +4 -0
- package/lib/duet/{p-073221c9.system.entry.js → p-f74e934b.system.entry.js} +1 -1
- package/lib/duet/{p-c794bee3.system.entry.js → p-f78e3197.system.entry.js} +1 -1
- package/lib/duet/{p-6c1a2b16.entry.js → p-f90e86d3.entry.js} +1 -1
- package/lib/duet/p-f9603b0d.entry.js +4 -0
- package/lib/duet/{p-308b881b.js → p-fbd0d098.js} +1 -1
- package/lib/duet/{p-6486ab91.entry.js → p-fd1dcee1.entry.js} +1 -1
- package/lib/duet/{p-b4e863ee.system.entry.js → p-feaaff49.system.entry.js} +1 -1
- package/lib/duet/p-ff5a9358.system.entry.js +4 -0
- package/lib/duet/{p-d6a1c0de.entry.js → p-ffa34163.entry.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +1 -1
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-banner.entry.js +1 -1
- package/lib/esm/duet-breadcrumb.entry.js +1 -1
- package/lib/esm/duet-breadcrumbs.entry.js +1 -1
- package/lib/esm/duet-button_2.entry.js +1 -1
- package/lib/esm/duet-callout.entry.js +1 -1
- package/lib/esm/duet-caption_4.entry.js +1 -1
- package/lib/esm/duet-card.entry.js +1 -1
- package/lib/esm/duet-checkbox.entry.js +1 -1
- package/lib/esm/duet-checkmark.entry.js +1 -1
- package/lib/esm/duet-chip.entry.js +164 -0
- package/lib/esm/duet-choice_2.entry.js +24 -11
- package/lib/esm/duet-collapsible.entry.js +1 -1
- package/lib/esm/duet-combobox.entry.js +1 -1
- package/lib/esm/duet-contact-card.entry.js +1 -1
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +24 -127
- 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 +6 -3
- package/lib/esm/duet-header_2.entry.js +1 -1
- package/lib/esm/duet-hero.entry.js +1 -1
- package/lib/esm/duet-icon.entry.js +1 -1
- package/lib/esm/duet-input_2.entry.js +1 -1
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +1 -1
- package/lib/esm/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm/duet-menu-bar.entry.js +1 -1
- package/lib/esm/duet-modal.entry.js +2 -2
- package/lib/esm/duet-multiselect.entry.js +1 -1
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +8 -1
- package/lib/esm/duet-page-heading.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +1 -1
- package/lib/esm/duet-popup-menu-item.entry.js +41 -0
- package/lib/esm/duet-popup-menu.entry.js +109 -0
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-promo-card.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +5 -4
- package/lib/esm/duet-range-slider.entry.js +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +2 -2
- package/lib/esm/duet-section-layout.entry.js +1 -1
- package/lib/esm/duet-select.entry.js +1 -1
- package/lib/esm/duet-shaped-image.entry.js +1 -1
- package/lib/esm/duet-show-more.entry.js +91 -0
- package/lib/esm/duet-slideout-lang.entry.js +1 -1
- package/lib/esm/duet-slideout-link.entry.js +1 -1
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm/duet-slideout-panel.entry.js +2 -2
- package/lib/esm/duet-slideout.entry.js +2 -2
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar.entry.js +1 -1
- package/lib/esm/duet-textarea.entry.js +1 -1
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm/duet-toolbar-link.entry.js +1 -1
- package/lib/esm/duet-toolbar.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +2 -1172
- package/lib/esm/duet-tray.entry.js +1 -1
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-upload-item.entry.js +89 -0
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +3 -3
- package/lib/esm/errorcodes.utils-c0c33bce.js +36 -0
- package/lib/esm/floating-ui.dom.esm-37dc174a.js +1245 -0
- package/lib/esm/{focus-utils-552e67ed.js → focus-utils-e2239371.js} +1 -1
- package/lib/esm/{index-5aaf4b5b.js → index-b67ea1f1.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-banner.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-callout.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-chip.entry.js +4 -0
- package/lib/esm-es5/duet-choice_2.entry.js +2 -2
- package/lib/esm-es5/duet-collapsible.entry.js +1 -1
- package/lib/esm-es5/duet-combobox.entry.js +1 -1
- package/lib/esm-es5/duet-contact-card.entry.js +1 -1
- package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
- package/lib/esm-es5/duet-date-picker.entry.js +1 -1
- package/lib/esm-es5/duet-divider_2.entry.js +1 -1
- package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
- package/lib/esm-es5/duet-empty-state.entry.js +1 -1
- package/lib/esm-es5/duet-fieldset.entry.js +1 -1
- package/lib/esm-es5/duet-footer.entry.js +1 -1
- package/lib/esm-es5/duet-grid_2.entry.js +2 -2
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +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 +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-popup-menu-item.entry.js +4 -0
- package/lib/esm-es5/duet-popup-menu.entry.js +4 -0
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-promo-card.entry.js +1 -1
- package/lib/esm-es5/duet-radio_2.entry.js +2 -2
- 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-shaped-image.entry.js +1 -1
- package/lib/esm-es5/duet-show-more.entry.js +4 -0
- 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 +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
- package/lib/esm-es5/duet-toolbar.entry.js +1 -1
- package/lib/esm-es5/duet-tooltip.entry.js +2 -2
- 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-upload-item.entry.js +4 -0
- package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
- package/lib/esm-es5/duet.js +1 -1
- package/lib/esm-es5/errorcodes.utils-c0c33bce.js +4 -0
- package/lib/esm-es5/floating-ui.dom.esm-37dc174a.js +4 -0
- package/lib/esm-es5/focus-utils-e2239371.js +4 -0
- package/lib/esm-es5/{index-5aaf4b5b.js → index-b67ea1f1.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/types/components/duet-chip/duet-chip.d.ts +97 -0
- package/lib/types/components/duet-choice/duet-choice.d.ts +7 -0
- package/lib/types/components/duet-editable-table/duet-editable-table.d.ts +1 -0
- package/lib/types/components/duet-grid/duet-grid.d.ts +4 -0
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +4 -0
- package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +77 -0
- package/lib/types/components/duet-popup-menu-item/duet-popup-menu-item.d.ts +51 -0
- package/lib/types/components/duet-radio/duet-radio.d.ts +4 -0
- package/lib/types/components/duet-show-more/duet-show-more.d.ts +53 -0
- package/lib/types/components/duet-upload/duet-upload.d.ts +2 -1
- package/lib/types/components/duet-upload-item/duet-upload-item.d.ts +29 -0
- package/lib/types/components.d.ts +417 -0
- package/package.json +11 -6
- package/lib/collection/components/duet-upload/upload-item.js +0 -44
- package/lib/dist-custom-elements/p-00f8d4bc.js +0 -183
- package/lib/duet/p-077edef7.entry.js +0 -4
- package/lib/duet/p-0952d4a4.system.entry.js +0 -4
- package/lib/duet/p-225d9dbe.js +0 -4
- package/lib/duet/p-2cab347d.system.entry.js +0 -4
- package/lib/duet/p-3a0676ab.entry.js +0 -4
- package/lib/duet/p-55952227.system.entry.js +0 -4
- package/lib/duet/p-5ad63594.entry.js +0 -4
- package/lib/duet/p-6a9319ad.system.entry.js +0 -4
- package/lib/duet/p-75898c81.entry.js +0 -4
- package/lib/duet/p-78cb4832.entry.js +0 -4
- package/lib/duet/p-80f4a443.system.js +0 -4
- package/lib/duet/p-8c9d67e4.entry.js +0 -4
- package/lib/duet/p-8faea849.entry.js +0 -4
- package/lib/duet/p-b17e6185.system.entry.js +0 -4
- package/lib/duet/p-c1ccc327.entry.js +0 -4
- package/lib/duet/p-c654f863.system.entry.js +0 -4
- package/lib/duet/p-f8d00821.entry.js +0 -4
- package/lib/esm-es5/focus-utils-552e67ed.js +0 -4
- package/lib/types/components/duet-upload/upload-item.d.ts +0 -20
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { h, Host } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
|
+
export class DuetPopupMenuItem {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.accessibleLabel = undefined;
|
|
9
|
+
this.theme = "";
|
|
10
|
+
this.url = undefined;
|
|
11
|
+
this.external = false;
|
|
12
|
+
this.value = undefined;
|
|
13
|
+
this.leadingIcon = undefined;
|
|
14
|
+
this.trailingIcon = undefined;
|
|
15
|
+
this.trailingText = undefined;
|
|
16
|
+
this.active = false;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Component lifecycle events.
|
|
20
|
+
*/
|
|
21
|
+
componentWillLoad() {
|
|
22
|
+
inheritGlobalTheme(this);
|
|
23
|
+
}
|
|
24
|
+
render() {
|
|
25
|
+
const TagName = this.url ? "a" : "button";
|
|
26
|
+
const classes = {
|
|
27
|
+
"duet-popup-menu-item": true,
|
|
28
|
+
active: this.active,
|
|
29
|
+
"duet-theme-turva": this.theme === "turva",
|
|
30
|
+
};
|
|
31
|
+
return (h(Host, null, h(TagName, { role: "menuitem", "aria-label": this.accessibleLabel, class: classes, value: this.value, href: this.url, target: this.external ? "_blank" : undefined, rel: this.external ? "noopener" : undefined }, this.leadingIcon && (h("duet-icon", { name: this.leadingIcon, size: "xx-small", color: "currentColor", class: "duet-popup-menu-item-leading", margin: "none" })), h("span", { class: "duet-popup-menu-item-label" }, h("slot", null)), this.trailingIcon && (h("duet-icon", { name: this.trailingIcon, size: "xx-small", color: "currentColor", class: "duet-popup-menu-item-trailing", margin: "none" })), this.trailingText && h("span", { class: "duet-popup-menu-item-trailing" }, this.trailingText))));
|
|
32
|
+
}
|
|
33
|
+
static get is() { return "duet-popup-menu-item"; }
|
|
34
|
+
static get encapsulation() { return "shadow"; }
|
|
35
|
+
static get originalStyleUrls() {
|
|
36
|
+
return {
|
|
37
|
+
"$": ["duet-popup-menu-item.scss"]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
static get styleUrls() {
|
|
41
|
+
return {
|
|
42
|
+
"$": ["duet-popup-menu-item.css"]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static get properties() {
|
|
46
|
+
return {
|
|
47
|
+
"accessibleLabel": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "string",
|
|
52
|
+
"resolved": "string",
|
|
53
|
+
"references": {}
|
|
54
|
+
},
|
|
55
|
+
"required": false,
|
|
56
|
+
"optional": false,
|
|
57
|
+
"docs": {
|
|
58
|
+
"tags": [],
|
|
59
|
+
"text": "Adds accessible label for the button or link that is only shown for screen readers.\nTypically, this label text replaces the visible text on the button for\nusers who use assistive technology."
|
|
60
|
+
},
|
|
61
|
+
"attribute": "accessible-label",
|
|
62
|
+
"reflect": false
|
|
63
|
+
},
|
|
64
|
+
"theme": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"mutable": true,
|
|
67
|
+
"complexType": {
|
|
68
|
+
"original": "DuetTheme",
|
|
69
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
70
|
+
"references": {
|
|
71
|
+
"DuetTheme": {
|
|
72
|
+
"location": "import",
|
|
73
|
+
"path": "../../common-types"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"required": false,
|
|
78
|
+
"optional": false,
|
|
79
|
+
"docs": {
|
|
80
|
+
"tags": [],
|
|
81
|
+
"text": "Theme."
|
|
82
|
+
},
|
|
83
|
+
"attribute": "theme",
|
|
84
|
+
"reflect": false,
|
|
85
|
+
"defaultValue": "\"\""
|
|
86
|
+
},
|
|
87
|
+
"url": {
|
|
88
|
+
"type": "string",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "string",
|
|
92
|
+
"resolved": "string",
|
|
93
|
+
"references": {}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [],
|
|
99
|
+
"text": "A destination to link to, rendered in the href attribute of a link."
|
|
100
|
+
},
|
|
101
|
+
"attribute": "url",
|
|
102
|
+
"reflect": false
|
|
103
|
+
},
|
|
104
|
+
"external": {
|
|
105
|
+
"type": "boolean",
|
|
106
|
+
"mutable": false,
|
|
107
|
+
"complexType": {
|
|
108
|
+
"original": "boolean",
|
|
109
|
+
"resolved": "boolean",
|
|
110
|
+
"references": {}
|
|
111
|
+
},
|
|
112
|
+
"required": false,
|
|
113
|
+
"optional": false,
|
|
114
|
+
"docs": {
|
|
115
|
+
"tags": [],
|
|
116
|
+
"text": "Forces URL to open in a new browser tab. Used together with URL prop."
|
|
117
|
+
},
|
|
118
|
+
"attribute": "external",
|
|
119
|
+
"reflect": false,
|
|
120
|
+
"defaultValue": "false"
|
|
121
|
+
},
|
|
122
|
+
"value": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"mutable": false,
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "string",
|
|
127
|
+
"resolved": "string",
|
|
128
|
+
"references": {}
|
|
129
|
+
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"optional": false,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": "Value"
|
|
135
|
+
},
|
|
136
|
+
"attribute": "value",
|
|
137
|
+
"reflect": false,
|
|
138
|
+
"defaultValue": "undefined"
|
|
139
|
+
},
|
|
140
|
+
"leadingIcon": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"mutable": false,
|
|
143
|
+
"complexType": {
|
|
144
|
+
"original": "DuetIconName",
|
|
145
|
+
"resolved": "string",
|
|
146
|
+
"references": {
|
|
147
|
+
"DuetIconName": {
|
|
148
|
+
"location": "import",
|
|
149
|
+
"path": "../../common-types"
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"required": false,
|
|
154
|
+
"optional": false,
|
|
155
|
+
"docs": {
|
|
156
|
+
"tags": [],
|
|
157
|
+
"text": "Left icon."
|
|
158
|
+
},
|
|
159
|
+
"attribute": "leading-icon",
|
|
160
|
+
"reflect": false,
|
|
161
|
+
"defaultValue": "undefined"
|
|
162
|
+
},
|
|
163
|
+
"trailingIcon": {
|
|
164
|
+
"type": "string",
|
|
165
|
+
"mutable": false,
|
|
166
|
+
"complexType": {
|
|
167
|
+
"original": "DuetIconName",
|
|
168
|
+
"resolved": "string",
|
|
169
|
+
"references": {
|
|
170
|
+
"DuetIconName": {
|
|
171
|
+
"location": "import",
|
|
172
|
+
"path": "../../common-types"
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
"required": false,
|
|
177
|
+
"optional": false,
|
|
178
|
+
"docs": {
|
|
179
|
+
"tags": [],
|
|
180
|
+
"text": "Right icon."
|
|
181
|
+
},
|
|
182
|
+
"attribute": "trailing-icon",
|
|
183
|
+
"reflect": false,
|
|
184
|
+
"defaultValue": "undefined"
|
|
185
|
+
},
|
|
186
|
+
"trailingText": {
|
|
187
|
+
"type": "string",
|
|
188
|
+
"mutable": false,
|
|
189
|
+
"complexType": {
|
|
190
|
+
"original": "string",
|
|
191
|
+
"resolved": "string",
|
|
192
|
+
"references": {}
|
|
193
|
+
},
|
|
194
|
+
"required": false,
|
|
195
|
+
"optional": false,
|
|
196
|
+
"docs": {
|
|
197
|
+
"tags": [],
|
|
198
|
+
"text": "Short text to display after the label, e.g. keyboard shortcut."
|
|
199
|
+
},
|
|
200
|
+
"attribute": "trailing-text",
|
|
201
|
+
"reflect": false,
|
|
202
|
+
"defaultValue": "undefined"
|
|
203
|
+
},
|
|
204
|
+
"active": {
|
|
205
|
+
"type": "boolean",
|
|
206
|
+
"mutable": true,
|
|
207
|
+
"complexType": {
|
|
208
|
+
"original": "boolean",
|
|
209
|
+
"resolved": "boolean",
|
|
210
|
+
"references": {}
|
|
211
|
+
},
|
|
212
|
+
"required": false,
|
|
213
|
+
"optional": false,
|
|
214
|
+
"docs": {
|
|
215
|
+
"tags": [],
|
|
216
|
+
"text": "Is the item currently active (e.g. selected)"
|
|
217
|
+
},
|
|
218
|
+
"attribute": "active",
|
|
219
|
+
"reflect": false,
|
|
220
|
+
"defaultValue": "false"
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
static get elementRef() { return "element"; }
|
|
225
|
+
}
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
margin-bottom: 0 !important;
|
|
40
40
|
width: auto;
|
|
41
41
|
}
|
|
42
|
-
:host(.horizontal) .duet-label
|
|
42
|
+
:host(.horizontal) .duet-label .duet-label-content {
|
|
43
43
|
max-width: 100%;
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
:host(.horizontal-responsive):last-child, :host(.horizontal-responsive):last-of-type {
|
|
53
53
|
margin-right: 0 !important;
|
|
54
54
|
}
|
|
55
|
-
:host(.horizontal-responsive) .duet-label
|
|
55
|
+
:host(.horizontal-responsive) .duet-label .duet-label-content {
|
|
56
56
|
max-width: 100%;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
87
87
|
color: rgb(23, 28, 58);
|
|
88
88
|
}
|
|
89
|
-
.duet-label
|
|
89
|
+
.duet-label .duet-label-content {
|
|
90
90
|
flex-grow: 1;
|
|
91
91
|
font-size: 1rem;
|
|
92
92
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* Built with Duet Design System
|
|
3
3
|
*/
|
|
4
|
-
import { h, Host } from "@stencil/core";
|
|
4
|
+
import { Build, h, Host } from "@stencil/core";
|
|
5
5
|
import { inheritGlobalTheme } from "../../common";
|
|
6
6
|
import { createID } from "../../utils/create-id";
|
|
7
|
+
/**
|
|
8
|
+
* @slot label - Label content.
|
|
9
|
+
*/
|
|
7
10
|
export class DuetRadio {
|
|
8
11
|
constructor() {
|
|
9
12
|
/**
|
|
@@ -17,7 +20,7 @@ export class DuetRadio {
|
|
|
17
20
|
ev.stopPropagation();
|
|
18
21
|
};
|
|
19
22
|
this.onChange = (ev) => {
|
|
20
|
-
this.checked =
|
|
23
|
+
this.checked = this.nativeInput.checked || false;
|
|
21
24
|
if (this.checked && !this.blockEvents) {
|
|
22
25
|
this.duetChange.emit({
|
|
23
26
|
originalEvent: ev,
|
|
@@ -71,6 +74,9 @@ export class DuetRadio {
|
|
|
71
74
|
*/
|
|
72
75
|
componentWillLoad() {
|
|
73
76
|
inheritGlobalTheme(this);
|
|
77
|
+
this.hasLabel = Build.isServer
|
|
78
|
+
? Array.from(this.element.children).filter(el => el.matches("[slot='label']")).length > 0
|
|
79
|
+
: !!this.element.querySelector(":scope > [slot='label']");
|
|
74
80
|
if (this.value === undefined) {
|
|
75
81
|
this.value = this.identifier;
|
|
76
82
|
}
|
|
@@ -92,7 +98,7 @@ export class DuetRadio {
|
|
|
92
98
|
horizontal: this.groupDirection === "horizontal" && !this.groupResponsive,
|
|
93
99
|
"horizontal-responsive": this.groupDirection === "horizontal" && this.groupResponsive,
|
|
94
100
|
"duet-m-0": this.margin === "none",
|
|
95
|
-
} }, h("div", { class: { "duet-radio-container": true, "duet-theme-turva": this.theme === "turva" } }, h("input", { type: "radio", onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, value: this.value, tabindex: this.accessibleIndex, class: { "duet-radio": true, disabled: this.disabled || this.groupDisabled }, checked: this.checked, disabled: this.disabled || this.groupDisabled, required: this.required, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, role: this.role, name: this.name, id: identifier, ref: input => (this.nativeInput = input) }), h("label", { class: "duet-label", htmlFor: identifier }, h("
|
|
101
|
+
} }, h("div", { class: { "duet-radio-container": true, "duet-theme-turva": this.theme === "turva" } }, h("input", { type: "radio", onFocus: this.onFocus, onBlur: this.onBlur, onChange: this.onChange, value: this.value, tabindex: this.accessibleIndex, class: { "duet-radio": true, disabled: this.disabled || this.groupDisabled }, checked: this.checked, disabled: this.disabled || this.groupDisabled, required: this.required, "aria-controls": this.accessibleControls, "aria-activedescendant": this.accessibleActiveDescendant, "aria-owns": this.accessibleOwns, "aria-describedby": this.accessibleDescribedBy, "aria-labelledby": this.accessibleLabelledBy, "aria-details": this.accessibleDetails, "aria-description": this.accessibleDescription, role: this.role, name: this.name, id: identifier, ref: input => (this.nativeInput = input) }), h("label", { class: "duet-label", htmlFor: identifier }, h("div", { class: "duet-label-content" }, this.hasLabel ? h("slot", { name: "label" }) : this.label)))));
|
|
96
102
|
}
|
|
97
103
|
static get is() { return "duet-radio"; }
|
|
98
104
|
static get encapsulation() { return "scoped"; }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
*,
|
|
2
|
+
*::after,
|
|
3
|
+
*::before {
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 0;
|
|
6
|
+
margin: 0;
|
|
7
|
+
background: transparent;
|
|
8
|
+
border: 0;
|
|
9
|
+
-moz-appearance: none;
|
|
10
|
+
-webkit-appearance: none;
|
|
11
|
+
appearance: none;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host {
|
|
15
|
+
box-sizing: border-box;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin: 0;
|
|
18
|
+
background: transparent;
|
|
19
|
+
border: 0;
|
|
20
|
+
-moz-appearance: none;
|
|
21
|
+
-webkit-appearance: none;
|
|
22
|
+
appearance: none;
|
|
23
|
+
margin-bottom: 16px !important;
|
|
24
|
+
display: block;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.duet-show-more {
|
|
28
|
+
font-family: "localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
29
|
+
font-size: 1rem;
|
|
30
|
+
font-weight: 600;
|
|
31
|
+
line-height: 1.5;
|
|
32
|
+
color: rgb(0, 41, 77);
|
|
33
|
+
}
|
|
34
|
+
.duet-show-more.duet-m-0 {
|
|
35
|
+
margin: 0 !important;
|
|
36
|
+
}
|
|
37
|
+
.duet-show-more .slotted-content {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
40
|
+
.duet-show-more.open .slotted-content {
|
|
41
|
+
display: block;
|
|
42
|
+
}
|
|
43
|
+
.duet-show-more.duet-theme-turva {
|
|
44
|
+
font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
|
45
|
+
color: rgb(23, 28, 58);
|
|
46
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Built with Duet Design System
|
|
3
|
+
*/
|
|
4
|
+
import { h, Host } from "@stencil/core";
|
|
5
|
+
import { inheritGlobalTheme } from "../../common/themeable-component";
|
|
6
|
+
import { createID } from "../../utils/create-id";
|
|
7
|
+
import { isKeyboardClick } from "../../utils/keyboard-utils";
|
|
8
|
+
import { connectLanguageChangeObserver, disconnectLanguageChangeObserver, getLanguage, getLocaleString, } from "../../utils/language-utils";
|
|
9
|
+
export class DuetShowMore {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.contentId = createID("DuetShowMore");
|
|
12
|
+
this.buttonId = createID("DuetShowMoreButton");
|
|
13
|
+
this.showMoreLangObject = {
|
|
14
|
+
fi: "Näytä lisää",
|
|
15
|
+
sv: "Visa mer",
|
|
16
|
+
en: "Show more",
|
|
17
|
+
};
|
|
18
|
+
this.showLessLangObject = {
|
|
19
|
+
fi: "Näytä vähemmän",
|
|
20
|
+
sv: "Visa mindre",
|
|
21
|
+
en: "Show less",
|
|
22
|
+
};
|
|
23
|
+
this.showMoreContentAriaLangObject = {
|
|
24
|
+
fi: "Piilotettu sisältö",
|
|
25
|
+
sv: "Utökat innehåll",
|
|
26
|
+
en: "Hidden content",
|
|
27
|
+
};
|
|
28
|
+
this.showMoreAriaLangObject = {
|
|
29
|
+
fi: "Paljasta piilotettu sisältö ennen tätä painiketta",
|
|
30
|
+
sv: "Visa dolt innehåll före den här knappen",
|
|
31
|
+
en: "Reveal hidden content before this button",
|
|
32
|
+
};
|
|
33
|
+
this.showLessAriaLangObject = {
|
|
34
|
+
fi: "Piilota paljastettu sisältö ennen tätä painiketta",
|
|
35
|
+
sv: "Dölj innehåll före den här knappen",
|
|
36
|
+
en: "Hide revealed content before this button",
|
|
37
|
+
};
|
|
38
|
+
this.handleKeyDown = (e) => {
|
|
39
|
+
if (isKeyboardClick(e)) {
|
|
40
|
+
this.handleClick(e);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
this.handleClick = (e) => {
|
|
44
|
+
e.preventDefault();
|
|
45
|
+
const open = !this.open;
|
|
46
|
+
this.open = open;
|
|
47
|
+
this.duetToggle.emit({
|
|
48
|
+
component: "duet-show-more",
|
|
49
|
+
originalEvent: e,
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
this.theme = "";
|
|
53
|
+
this.language = getLanguage();
|
|
54
|
+
this.margin = "auto";
|
|
55
|
+
this.open = false;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Component lifecycle events.
|
|
59
|
+
*/
|
|
60
|
+
componentWillLoad() {
|
|
61
|
+
inheritGlobalTheme(this);
|
|
62
|
+
}
|
|
63
|
+
connectedCallback() {
|
|
64
|
+
connectLanguageChangeObserver(this);
|
|
65
|
+
}
|
|
66
|
+
disconnectedCallback() {
|
|
67
|
+
disconnectLanguageChangeObserver(this);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* render() function
|
|
71
|
+
* Always the last one of the class.
|
|
72
|
+
*/
|
|
73
|
+
render() {
|
|
74
|
+
return (h(Host, null, h("div", { class: {
|
|
75
|
+
"duet-show-more": true,
|
|
76
|
+
"duet-theme-turva": this.theme === "turva",
|
|
77
|
+
"duet-m-0": this.margin === "none",
|
|
78
|
+
open: this.open,
|
|
79
|
+
} }, h("div", { class: { content: true }, role: "group", "aria-label": getLocaleString(this.showMoreContentAriaLangObject), id: this.contentId, tabindex: this.open ? "0" : "" }, h("div", { class: { "slotted-content": true } }, h("slot", null))), h("duet-button", { id: this.buttonId, variation: "plain", "accessible-label": getLocaleString(this.open ? this.showLessAriaLangObject : this.showMoreAriaLangObject), "accessible-expanded": this.open ? "true" : "false", "accessible-controls": this.contentId, onClick: this.handleClick, onKeyDown: this.handleKeyDown, "icon-right": true, icon: this.open ? "action-arrow-up-small" : "action-arrow-down-small", "icon-size": "medium-small", size: "small" }, getLocaleString(this.open ? this.showLessLangObject : this.showMoreLangObject)))));
|
|
80
|
+
}
|
|
81
|
+
static get is() { return "duet-show-more"; }
|
|
82
|
+
static get encapsulation() { return "shadow"; }
|
|
83
|
+
static get originalStyleUrls() {
|
|
84
|
+
return {
|
|
85
|
+
"$": ["duet-show-more.scss"]
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
static get styleUrls() {
|
|
89
|
+
return {
|
|
90
|
+
"$": ["duet-show-more.css"]
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
static get properties() {
|
|
94
|
+
return {
|
|
95
|
+
"theme": {
|
|
96
|
+
"type": "string",
|
|
97
|
+
"mutable": true,
|
|
98
|
+
"complexType": {
|
|
99
|
+
"original": "DuetTheme",
|
|
100
|
+
"resolved": "\"\" | \"default\" | \"turva\"",
|
|
101
|
+
"references": {
|
|
102
|
+
"DuetTheme": {
|
|
103
|
+
"location": "import",
|
|
104
|
+
"path": "../../common-types"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"required": false,
|
|
109
|
+
"optional": false,
|
|
110
|
+
"docs": {
|
|
111
|
+
"tags": [],
|
|
112
|
+
"text": "Theme."
|
|
113
|
+
},
|
|
114
|
+
"attribute": "theme",
|
|
115
|
+
"reflect": false,
|
|
116
|
+
"defaultValue": "\"\""
|
|
117
|
+
},
|
|
118
|
+
"language": {
|
|
119
|
+
"type": "string",
|
|
120
|
+
"mutable": true,
|
|
121
|
+
"complexType": {
|
|
122
|
+
"original": "DuetLanguage",
|
|
123
|
+
"resolved": "\"en\" | \"fi\" | \"sv\"",
|
|
124
|
+
"references": {
|
|
125
|
+
"DuetLanguage": {
|
|
126
|
+
"location": "import",
|
|
127
|
+
"path": "../../common-types"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"required": false,
|
|
132
|
+
"optional": false,
|
|
133
|
+
"docs": {
|
|
134
|
+
"tags": [{
|
|
135
|
+
"name": "deprecated",
|
|
136
|
+
"text": "this is now handled via the html lang tag, and is no longer used - kept to avoid breaking changes and ease unit testing"
|
|
137
|
+
}, {
|
|
138
|
+
"name": "default",
|
|
139
|
+
"text": "\"fi\""
|
|
140
|
+
}],
|
|
141
|
+
"text": "The currently active language. This setting also changes the logo to match\nthe chosen language."
|
|
142
|
+
},
|
|
143
|
+
"attribute": "language",
|
|
144
|
+
"reflect": true,
|
|
145
|
+
"defaultValue": "getLanguage()"
|
|
146
|
+
},
|
|
147
|
+
"margin": {
|
|
148
|
+
"type": "string",
|
|
149
|
+
"mutable": false,
|
|
150
|
+
"complexType": {
|
|
151
|
+
"original": "DuetMargin",
|
|
152
|
+
"resolved": "\"auto\" | \"none\"",
|
|
153
|
+
"references": {
|
|
154
|
+
"DuetMargin": {
|
|
155
|
+
"location": "import",
|
|
156
|
+
"path": "../../common-types"
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
"required": false,
|
|
161
|
+
"optional": false,
|
|
162
|
+
"docs": {
|
|
163
|
+
"tags": [],
|
|
164
|
+
"text": "Controls the margin of the component."
|
|
165
|
+
},
|
|
166
|
+
"attribute": "margin",
|
|
167
|
+
"reflect": false,
|
|
168
|
+
"defaultValue": "\"auto\""
|
|
169
|
+
},
|
|
170
|
+
"open": {
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"mutable": true,
|
|
173
|
+
"complexType": {
|
|
174
|
+
"original": "boolean",
|
|
175
|
+
"resolved": "boolean",
|
|
176
|
+
"references": {}
|
|
177
|
+
},
|
|
178
|
+
"required": false,
|
|
179
|
+
"optional": false,
|
|
180
|
+
"docs": {
|
|
181
|
+
"tags": [],
|
|
182
|
+
"text": "Is the component expanded or collapsed."
|
|
183
|
+
},
|
|
184
|
+
"attribute": "open",
|
|
185
|
+
"reflect": true,
|
|
186
|
+
"defaultValue": "false"
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
}
|
|
190
|
+
static get events() {
|
|
191
|
+
return [{
|
|
192
|
+
"method": "duetToggle",
|
|
193
|
+
"name": "duetToggle",
|
|
194
|
+
"bubbles": true,
|
|
195
|
+
"cancelable": true,
|
|
196
|
+
"composed": true,
|
|
197
|
+
"docs": {
|
|
198
|
+
"tags": [],
|
|
199
|
+
"text": "Event emitted when opened/closed"
|
|
200
|
+
},
|
|
201
|
+
"complexType": {
|
|
202
|
+
"original": "DuetShowMoreToggleEvent",
|
|
203
|
+
"resolved": "{ component: \"duet-show-more\"; originalEvent: KeyboardEvent | MouseEvent; }",
|
|
204
|
+
"references": {
|
|
205
|
+
"DuetShowMoreToggleEvent": {
|
|
206
|
+
"location": "local",
|
|
207
|
+
"path": "/Users/mgibas/workspace/duet/packages/components/src/components/duet-show-more/duet-show-more.tsx"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}];
|
|
212
|
+
}
|
|
213
|
+
static get elementRef() { return "element"; }
|
|
214
|
+
}
|
|
@@ -8,7 +8,6 @@ import { debounce } from "../../utils/js-utils";
|
|
|
8
8
|
import { getLocaleString, sanitizeString } from "../../utils/language-utils";
|
|
9
9
|
import errorCodes from "./errorcodes.json";
|
|
10
10
|
import { getI18nError } from "./errorcodes.utils";
|
|
11
|
-
import { UploadItem } from "./upload-item";
|
|
12
11
|
import { UploadItemHeader } from "./upload-item-header";
|
|
13
12
|
import { filesToUploadCountAboveMax, validateFile, validateTotalAmountIsAboveMax, validateTotalSizeIsAboveMax, } from "./upload-validators";
|
|
14
13
|
import { makeXhrRequest, } from "./xhr.helpers";
|
|
@@ -35,6 +34,7 @@ export class DuetUpload {
|
|
|
35
34
|
this.bytesMaxReached = false;
|
|
36
35
|
this.filesToUploadExceedsLimit = false;
|
|
37
36
|
this.internalStatusMessageLabel = undefined;
|
|
37
|
+
this.itemRefs = new Map();
|
|
38
38
|
/**
|
|
39
39
|
* Properties
|
|
40
40
|
*/
|
|
@@ -107,16 +107,24 @@ export class DuetUpload {
|
|
|
107
107
|
};
|
|
108
108
|
this.mapFilesToUploadItems = (data, group, showCategory) => {
|
|
109
109
|
if (group === this.DefaultGroups.success) {
|
|
110
|
-
return (h(
|
|
110
|
+
return (h("duet-upload-item", { theme: this.theme, actions: this.getActions(group), type: "success", data: data, showLinks: this.showLinks, linkClickEvent: this.emitEvent ? this.linkClick : undefined, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory, ref: item => {
|
|
111
|
+
this.itemRefs.set(data.uid, item);
|
|
112
|
+
} }));
|
|
111
113
|
}
|
|
112
114
|
else if (group === this.DefaultGroups.inprogress) {
|
|
113
|
-
return (h(
|
|
115
|
+
return (h("duet-upload-item", { theme: this.theme, actions: this.getActions(group), type: "inprogress", data: data, showLinks: this.showLinks, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory, ref: item => {
|
|
116
|
+
this.itemRefs.set(data.uid, item);
|
|
117
|
+
} }));
|
|
114
118
|
}
|
|
115
119
|
else if (group === this.DefaultGroups.pending) {
|
|
116
|
-
return (h(
|
|
120
|
+
return (h("duet-upload-item", { theme: this.theme, actions: this.getActions(group), type: "pending", data: data, showLinks: this.showLinks, categoryLabel: this.categoryLabel, label: this.uploadedItemsHeaderLabel, showCategory: showCategory, ref: item => {
|
|
121
|
+
this.itemRefs.set(data.uid, item);
|
|
122
|
+
} }));
|
|
117
123
|
}
|
|
118
124
|
else if (group === this.DefaultGroups.failure) {
|
|
119
|
-
return (h(
|
|
125
|
+
return (h("duet-upload-item", { 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, ref: item => {
|
|
126
|
+
this.itemRefs.set(data.uid, item);
|
|
127
|
+
} }));
|
|
120
128
|
}
|
|
121
129
|
else if (data.group) {
|
|
122
130
|
return data.html;
|
|
@@ -400,14 +408,6 @@ export class DuetUpload {
|
|
|
400
408
|
data: { files: this.files },
|
|
401
409
|
});
|
|
402
410
|
};
|
|
403
|
-
this.onLinkClick = (name, url, meta) => {
|
|
404
|
-
if (this.emitEvent) {
|
|
405
|
-
this.linkClick.emit({
|
|
406
|
-
component: "duet-upload",
|
|
407
|
-
data: { name, url, meta },
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
411
|
/**
|
|
412
412
|
* @description This functions return sorted map items byg condition which are:
|
|
413
413
|
*/
|
|
@@ -469,6 +469,7 @@ export class DuetUpload {
|
|
|
469
469
|
return this.actions.filter(item => item.map.includes(id));
|
|
470
470
|
};
|
|
471
471
|
this.renderUploadedItems = () => {
|
|
472
|
+
this.itemRefs.clear();
|
|
472
473
|
const filteredItems = this.filterMap();
|
|
473
474
|
const hasCategory = filteredItems.hasCategory;
|
|
474
475
|
const ItemRows = this.groups.map(group => {
|
|
@@ -716,6 +717,10 @@ export class DuetUpload {
|
|
|
716
717
|
async updateValue(item, key, value) {
|
|
717
718
|
this.updateValueInMap(item, key, value);
|
|
718
719
|
}
|
|
720
|
+
async focusActionButton(uid) {
|
|
721
|
+
var _a;
|
|
722
|
+
await ((_a = this.itemRefs.get(uid)) === null || _a === void 0 ? void 0 : _a.focusActionButton());
|
|
723
|
+
}
|
|
719
724
|
/**
|
|
720
725
|
* render() function
|
|
721
726
|
* Always the last one in the class.
|
|
@@ -2208,6 +2213,25 @@ export class DuetUpload {
|
|
|
2208
2213
|
"text": "Convenience method for updating the value of a key:value inside an item in the files attribute",
|
|
2209
2214
|
"tags": []
|
|
2210
2215
|
}
|
|
2216
|
+
},
|
|
2217
|
+
"focusActionButton": {
|
|
2218
|
+
"complexType": {
|
|
2219
|
+
"signature": "(uid: string) => Promise<void>",
|
|
2220
|
+
"parameters": [{
|
|
2221
|
+
"tags": [],
|
|
2222
|
+
"text": ""
|
|
2223
|
+
}],
|
|
2224
|
+
"references": {
|
|
2225
|
+
"Promise": {
|
|
2226
|
+
"location": "global"
|
|
2227
|
+
}
|
|
2228
|
+
},
|
|
2229
|
+
"return": "Promise<void>"
|
|
2230
|
+
},
|
|
2231
|
+
"docs": {
|
|
2232
|
+
"text": "",
|
|
2233
|
+
"tags": []
|
|
2234
|
+
}
|
|
2211
2235
|
}
|
|
2212
2236
|
};
|
|
2213
2237
|
}
|