@duetds/components 6.7.1 → 6.8.0
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 +91 -34
- package/lib/cjs/action-arrow-right-24fe06be.js +8 -0
- package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
- package/lib/cjs/duet-alert.cjs.entry.js +1 -1
- package/lib/cjs/duet-badge.cjs.entry.js +1 -1
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +4 -3
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +2 -2
- package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-caption_4.cjs.entry.js +21 -5
- package/lib/cjs/duet-card.cjs.entry.js +12 -4
- 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 +12 -4
- package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
- package/lib/cjs/duet-combobox.cjs.entry.js +8 -2
- package/lib/cjs/duet-contact-card.cjs.entry.js +4 -2
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
- package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
- package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +4 -2
- 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 +3 -4
- package/lib/cjs/duet-grid_2.cjs.entry.js +4 -2
- package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-hero.cjs.entry.js +2 -2
- package/lib/cjs/duet-icon.cjs.entry.js +6 -4
- package/lib/cjs/duet-input_2.cjs.entry.js +2 -2
- package/lib/cjs/duet-layout.cjs.entry.js +1 -1
- package/lib/cjs/duet-list_2.cjs.entry.js +6 -2
- 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 +8 -2
- package/lib/cjs/duet-modal.cjs.entry.js +10 -11
- package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
- package/lib/cjs/duet-nav.cjs.entry.js +1 -1
- package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
- package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
- package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-progress.cjs.entry.js +1 -1
- package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +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-slideout-lang.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-link.cjs.entry.js +3 -3
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
- package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
- package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +1 -1
- package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
- package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
- package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
- package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
- package/lib/cjs/duet-tray.cjs.entry.js +1 -1
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
- package/lib/cjs/duet.cjs.js +2 -2
- package/lib/cjs/{focus-utils-b2f050a2.js → focus-utils-8777d943.js} +1 -1
- package/lib/cjs/{index-5d835acd.js → index-26abcddc.js} +1 -1
- package/lib/cjs/loader.cjs.js +2 -2
- package/lib/collection/common/index.js +1 -0
- package/lib/collection/common/runtime-types.js +5 -0
- package/lib/collection/components/duet-action-button/duet-action-button.js +2 -2
- package/lib/collection/components/duet-alert/duet-alert.js +1 -1
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.css +10 -0
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +2 -1
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.css +6 -0
- 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.css +14 -5
- package/lib/collection/components/duet-card/duet-card.js +37 -10
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-choice/duet-choice.js +3 -3
- package/lib/collection/components/duet-choice-group/duet-choice-group.css +46 -2
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +32 -1
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
- package/lib/collection/components/duet-combobox/duet-combobox.js +28 -4
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +3 -1
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +4 -4
- package/lib/collection/components/duet-divider/duet-divider.js +1 -1
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +5 -5
- 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 +83 -0
- package/lib/collection/components/duet-grid/duet-grid.js +6 -4
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +1 -1
- package/lib/collection/components/duet-header/duet-header.js +15 -15
- package/lib/collection/components/duet-heading/duet-heading.css +3 -0
- package/lib/collection/components/duet-heading/duet-heading.js +1 -1
- package/lib/collection/components/duet-hero/duet-hero.css +4 -4
- package/lib/collection/components/duet-hero/duet-hero.js +5 -5
- package/lib/collection/components/duet-icon/duet-icon.css +7 -0
- package/lib/collection/components/duet-icon/duet-icon.js +7 -5
- package/lib/collection/components/duet-input/duet-input.js +9 -9
- 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-link/duet-link.css +27 -0
- package/lib/collection/components/duet-link/duet-link.js +86 -2
- package/lib/collection/components/duet-list/duet-list.js +9 -5
- package/lib/collection/components/duet-list-item/duet-list-item.css +24 -0
- package/lib/collection/components/duet-logo/duet-logo.js +1 -1
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +8 -2
- package/lib/collection/components/duet-modal/duet-modal.js +11 -12
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +1 -1
- package/lib/collection/components/duet-number-input/duet-number-input.js +4 -4
- package/lib/collection/components/duet-pagination/duet-pagination.js +2 -2
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +3 -3
- package/lib/collection/components/duet-radio/duet-radio.js +3 -3
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +1 -1
- package/lib/collection/components/duet-select/duet-select.js +5 -5
- package/lib/collection/components/duet-slideout/duet-slideout.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.css +7 -0
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +1 -1
- package/lib/collection/components/duet-spacer/duet-spacer.js +2 -2
- package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
- package/lib/collection/components/duet-step/duet-step.js +2 -2
- package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
- package/lib/collection/components/duet-tab-group/duet-tab-group.css +1 -0
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
- package/lib/collection/components/duet-table/duet-table.css +11 -0
- package/lib/collection/components/duet-table/duet-table.js +20 -0
- package/lib/collection/components/duet-textarea/duet-textarea.js +4 -4
- package/lib/collection/components/duet-toggle/duet-toggle.js +1 -1
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
- package/lib/collection/components/duet-upload/duet-upload.js +13 -13
- 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 +5 -4
- 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 +15 -6
- 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 +17 -8
- package/lib/dist-custom-elements/duet-choice.js +5 -5
- package/lib/dist-custom-elements/duet-collapsible.js +2 -2
- package/lib/dist-custom-elements/duet-combobox.js +10 -3
- package/lib/dist-custom-elements/duet-contact-card.js +11 -9
- package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
- package/lib/dist-custom-elements/duet-date-picker.js +10 -10
- package/lib/dist-custom-elements/duet-divider.js +1 -1
- package/lib/dist-custom-elements/duet-editable-table.js +1 -1
- package/lib/dist-custom-elements/duet-empty-state.js +1 -1
- package/lib/dist-custom-elements/duet-fieldset.js +1 -1
- package/lib/dist-custom-elements/duet-footer.js +5 -6
- package/lib/dist-custom-elements/duet-grid-item.js +1 -1
- package/lib/dist-custom-elements/duet-grid.js +1 -1
- package/lib/dist-custom-elements/duet-header.js +8 -8
- package/lib/dist-custom-elements/duet-heading.js +1 -1
- package/lib/dist-custom-elements/duet-hero.js +10 -10
- package/lib/dist-custom-elements/duet-icon.js +1 -1
- package/lib/dist-custom-elements/duet-input.js +1 -1
- package/lib/dist-custom-elements/duet-label.js +1 -1
- package/lib/dist-custom-elements/duet-layout.js +1 -1
- package/lib/dist-custom-elements/duet-link.js +1 -1
- package/lib/dist-custom-elements/duet-list-item.js +1 -1
- package/lib/dist-custom-elements/duet-list.js +1 -1
- package/lib/dist-custom-elements/duet-logo.js +1 -1
- package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
- package/lib/dist-custom-elements/duet-menu-bar.js +9 -3
- package/lib/dist-custom-elements/duet-modal.js +15 -16
- package/lib/dist-custom-elements/duet-multiselect.js +8 -8
- package/lib/dist-custom-elements/duet-nav.js +1 -1
- package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
- package/lib/dist-custom-elements/duet-notification.js +2 -2
- package/lib/dist-custom-elements/duet-number-input.js +9 -9
- package/lib/dist-custom-elements/duet-page-heading.js +2 -2
- package/lib/dist-custom-elements/duet-pagination.js +7 -7
- package/lib/dist-custom-elements/duet-paragraph.js +1 -1
- package/lib/dist-custom-elements/duet-progress.js +1 -1
- package/lib/dist-custom-elements/duet-radio-group.js +6 -6
- package/lib/dist-custom-elements/duet-radio.js +1 -1
- package/lib/dist-custom-elements/duet-range-slider.js +2 -2
- package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
- package/lib/dist-custom-elements/duet-scrollable.js +1 -1
- package/lib/dist-custom-elements/duet-section-layout.js +1 -1
- package/lib/dist-custom-elements/duet-select.js +1 -1
- package/lib/dist-custom-elements/duet-slideout-lang.js +3 -3
- package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
- 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 +10 -10
- package/lib/dist-custom-elements/duet-tab.js +1 -1
- package/lib/dist-custom-elements/duet-table.js +1 -1
- package/lib/dist-custom-elements/duet-textarea.js +8 -8
- package/lib/dist-custom-elements/duet-toggle.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
- package/lib/dist-custom-elements/duet-toolbar.js +1 -1
- package/lib/dist-custom-elements/duet-tooltip.js +1 -1
- package/lib/dist-custom-elements/duet-tray.js +3 -3
- package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
- package/lib/dist-custom-elements/duet-upload.js +18 -18
- 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-02a40751.js +123 -0
- package/lib/dist-custom-elements/{p-c6137eb6.js → p-064a8802.js} +6 -4
- package/lib/dist-custom-elements/{p-1eb646ce.js → p-076c04fa.js} +1 -1
- package/lib/dist-custom-elements/p-1a45a20a.js +178 -0
- package/lib/dist-custom-elements/{p-eb4fb7b2.js → p-1f9f67e3.js} +3 -3
- package/lib/dist-custom-elements/{p-b9b19d30.js → p-27f477bd.js} +1 -1
- package/lib/dist-custom-elements/{p-67e14cd3.js → p-308a73c1.js} +1 -1
- package/lib/dist-custom-elements/{p-108485b6.js → p-344f54cf.js} +1 -1
- package/lib/dist-custom-elements/{p-2a6f4122.js → p-39b4e372.js} +3 -3
- package/lib/dist-custom-elements/{p-a080c8ea.js → p-3c792743.js} +1 -1
- package/lib/dist-custom-elements/{p-614f2712.js → p-3e094f25.js} +2 -2
- package/lib/dist-custom-elements/{p-beeeb7a4.js → p-48e0be9b.js} +9 -9
- package/lib/dist-custom-elements/{p-42457971.js → p-52306a3d.js} +1 -1
- package/lib/dist-custom-elements/{p-43363964.js → p-5b6ac919.js} +2 -2
- package/lib/dist-custom-elements/p-61015063.js +113 -0
- package/lib/dist-custom-elements/p-6fa39608.js +6 -0
- package/lib/dist-custom-elements/{p-adb9a785.js → p-70db80cb.js} +2 -2
- package/lib/dist-custom-elements/{p-6fe0175a.js → p-7918f243.js} +1 -1
- package/lib/dist-custom-elements/{p-fc98d756.js → p-7c4a2620.js} +1 -1
- package/lib/dist-custom-elements/{p-a4ba7145.js → p-7f907b5b.js} +6 -6
- package/lib/dist-custom-elements/{p-efd5d01e.js → p-823ea8c0.js} +1 -1
- package/lib/dist-custom-elements/{p-ca2fe740.js → p-8fc068d5.js} +1 -1
- package/lib/dist-custom-elements/{p-032585fc.js → p-907402d2.js} +7 -7
- package/lib/dist-custom-elements/{p-66ce2aa1.js → p-91f5a857.js} +2 -2
- package/lib/dist-custom-elements/{p-1b0ba3fe.js → p-923a997f.js} +4 -4
- package/lib/dist-custom-elements/{p-fcd87887.js → p-9b59f666.js} +2 -2
- package/lib/dist-custom-elements/{p-6a1d1526.js → p-b14db39f.js} +1 -1
- package/lib/dist-custom-elements/{p-7e1eab44.js → p-b48f1e4d.js} +1 -1
- package/lib/dist-custom-elements/{p-5fdfdb42.js → p-ba41b009.js} +5 -5
- package/lib/dist-custom-elements/{p-5c4104e5.js → p-ca57b6a2.js} +2 -2
- package/lib/dist-custom-elements/{p-fd7efa16.js → p-e15832f2.js} +2 -2
- package/lib/dist-custom-elements/{p-f65831ce.js → p-ed7527c2.js} +5 -1
- package/lib/dist-custom-elements/{p-697162df.js → p-f40a2146.js} +1 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/duet.js +1 -1
- package/lib/duet/{p-6b420202.system.entry.js → p-06999788.system.entry.js} +1 -1
- package/lib/duet/{p-8fcec069.system.entry.js → p-06d05f65.system.entry.js} +1 -1
- package/lib/duet/{p-a5d5622d.system.entry.js → p-09e82523.system.entry.js} +1 -1
- package/lib/duet/{p-b87a1d54.system.entry.js → p-0b711d1c.system.entry.js} +2 -2
- package/lib/duet/{p-b4c89247.entry.js → p-0bf8affc.entry.js} +1 -1
- package/lib/duet/{p-cd24dd64.entry.js → p-0d8f0b71.entry.js} +1 -1
- package/lib/duet/{p-23e7d935.entry.js → p-10d906a0.entry.js} +1 -1
- package/lib/duet/{p-466aa228.entry.js → p-133bf320.entry.js} +1 -1
- package/lib/duet/{p-9629d71a.system.entry.js → p-1526bcd9.system.entry.js} +1 -1
- package/lib/duet/{p-a933c3f8.system.entry.js → p-188a99a6.system.entry.js} +1 -1
- package/lib/duet/{p-3a2bc2f9.system.entry.js → p-1cdfa320.system.entry.js} +1 -1
- package/lib/duet/{p-88a6749f.system.entry.js → p-1de2679d.system.entry.js} +1 -1
- package/lib/duet/{p-83740a39.entry.js → p-1eb57d18.entry.js} +1 -1
- package/lib/duet/{p-77149afc.entry.js → p-1f8e5ae9.entry.js} +1 -1
- package/lib/duet/{p-de63db12.system.entry.js → p-1ffb06ae.system.entry.js} +1 -1
- package/lib/duet/{p-9d0a9bd5.system.entry.js → p-224d5bbf.system.entry.js} +1 -1
- package/lib/duet/{p-83a78090.system.entry.js → p-22568e46.system.entry.js} +1 -1
- package/lib/duet/{p-86fa6670.entry.js → p-24fb2c26.entry.js} +1 -1
- package/lib/duet/{p-6d3af831.system.entry.js → p-268453f2.system.entry.js} +1 -1
- package/lib/duet/{p-2af0cd90.system.entry.js → p-27796763.system.entry.js} +1 -1
- package/lib/duet/{p-0c095985.system.js → p-2938697f.system.js} +1 -1
- package/lib/duet/p-2d037cf4.entry.js +4 -0
- package/lib/duet/p-2e32575f.system.entry.js +4 -0
- package/lib/duet/{p-9c87118f.entry.js → p-3133c0d8.entry.js} +1 -1
- package/lib/duet/{p-dd52fc75.entry.js → p-317c4aaf.entry.js} +1 -1
- package/lib/duet/{p-8d2d6072.entry.js → p-3ab4aa13.entry.js} +1 -1
- package/lib/duet/{p-31c08993.system.entry.js → p-3e66c4a4.system.entry.js} +1 -1
- package/lib/duet/{p-193cae12.system.entry.js → p-3ea21c66.system.entry.js} +1 -1
- package/lib/duet/{p-d54bc721.entry.js → p-3ee8a44e.entry.js} +1 -1
- package/lib/duet/{p-33887f28.entry.js → p-4410272c.entry.js} +1 -1
- package/lib/duet/p-45956e97.system.entry.js +4 -0
- package/lib/duet/{p-43d6c9e5.system.entry.js → p-49484735.system.entry.js} +1 -1
- package/lib/duet/{p-bb04665a.entry.js → p-4a669f88.entry.js} +1 -1
- package/lib/duet/{p-59ab89fe.entry.js → p-50df7077.entry.js} +1 -1
- package/lib/duet/p-5264d038.entry.js +4 -0
- package/lib/duet/p-565e48b0.system.entry.js +4 -0
- package/lib/duet/{p-b3cdf97b.js → p-5933217a.js} +1 -1
- package/lib/duet/{p-ab13177d.entry.js → p-5a549387.entry.js} +1 -1
- package/lib/duet/{p-92e65f96.entry.js → p-5c661590.entry.js} +1 -1
- package/lib/duet/{p-cd44cc43.system.entry.js → p-5c7f8587.system.entry.js} +1 -1
- package/lib/duet/{p-eac7d756.system.entry.js → p-608bd184.system.entry.js} +1 -1
- package/lib/duet/{p-cd51c9f9.entry.js → p-6533c6f5.entry.js} +1 -1
- package/lib/duet/{p-193a8abf.entry.js → p-654669e3.entry.js} +1 -1
- package/lib/duet/p-6a82c77b.system.entry.js +4 -0
- package/lib/duet/p-6b276d28.entry.js +4 -0
- package/lib/duet/{p-ba3c427f.entry.js → p-6b5135e3.entry.js} +1 -1
- package/lib/duet/p-6c4d4f85.entry.js +4 -0
- package/lib/duet/p-6d16e6f6.entry.js +4 -0
- package/lib/duet/p-6fa39608.js +4 -0
- package/lib/duet/{p-a221c855.entry.js → p-70dcd397.entry.js} +1 -1
- package/lib/duet/{p-1f4351ab.system.entry.js → p-71fc5b0d.system.entry.js} +1 -1
- package/lib/duet/p-72467078.system.entry.js +4 -0
- package/lib/duet/p-74d0f576.system.entry.js +4 -0
- package/lib/duet/p-76d34cb0.entry.js +4 -0
- package/lib/duet/{p-b5d742f4.entry.js → p-77d1aa11.entry.js} +1 -1
- package/lib/duet/{p-fb92ab7b.system.entry.js → p-7a2b3365.system.entry.js} +1 -1
- package/lib/duet/p-7af51cf6.system.entry.js +4 -0
- package/lib/duet/{p-6228593b.system.entry.js → p-7b855f82.system.entry.js} +1 -1
- package/lib/duet/{p-49cf2d52.system.entry.js → p-7cb63887.system.entry.js} +1 -1
- package/lib/duet/{p-2f560eb6.system.entry.js → p-7ea38691.system.entry.js} +1 -1
- package/lib/duet/{p-3c24751d.system.entry.js → p-7fae4a26.system.entry.js} +1 -1
- package/lib/duet/{p-31dc2463.entry.js → p-8177dde3.entry.js} +1 -1
- package/lib/duet/p-819d4a4e.entry.js +4 -0
- package/lib/duet/{p-56db6310.entry.js → p-820a474b.entry.js} +1 -1
- package/lib/duet/{p-cd0c52b9.system.js → p-84ec82b2.system.js} +1 -1
- package/lib/duet/{p-63996737.entry.js → p-8986b6b1.entry.js} +1 -1
- package/lib/duet/{p-fd55984b.system.entry.js → p-8bec0e9d.system.entry.js} +1 -1
- package/lib/duet/{p-8757adcf.system.entry.js → p-8d13f689.system.entry.js} +1 -1
- package/lib/duet/{p-eb4dc652.system.entry.js → p-8ec95d2c.system.entry.js} +1 -1
- package/lib/duet/{p-b7867483.system.entry.js → p-8ed08ddf.system.entry.js} +1 -1
- package/lib/duet/{p-3575bb17.entry.js → p-8fcbc008.entry.js} +1 -1
- package/lib/duet/{p-f6dfcdb7.system.entry.js → p-90f9e03f.system.entry.js} +1 -1
- package/lib/duet/{p-3b808dd4.system.entry.js → p-91e8f5cd.system.entry.js} +1 -1
- package/lib/duet/p-99628541.entry.js +4 -0
- package/lib/duet/p-99e5bbdc.entry.js +4 -0
- package/lib/duet/{p-b2ba1012.system.entry.js → p-9ac03a4a.system.entry.js} +1 -1
- package/lib/duet/{p-03cfa47f.entry.js → p-9ade0707.entry.js} +1 -1
- package/lib/duet/{p-ea0c5cce.system.entry.js → p-9b905c99.system.entry.js} +1 -1
- package/lib/duet/{p-b9e6d933.system.entry.js → p-9c2f07c6.system.entry.js} +1 -1
- package/lib/duet/{p-4bf107bc.system.entry.js → p-9d992f8a.system.entry.js} +1 -1
- package/lib/duet/{p-88c382be.entry.js → p-9e5cf474.entry.js} +1 -1
- package/lib/duet/{p-8d545d1b.system.entry.js → p-a1898f56.system.entry.js} +1 -1
- package/lib/duet/{p-317e939c.system.entry.js → p-a6147e56.system.entry.js} +1 -1
- package/lib/duet/p-a8dc08e8.system.js +4 -0
- package/lib/duet/{p-1c8c6afd.entry.js → p-acd1b6b5.entry.js} +1 -1
- package/lib/duet/p-aefa4b69.entry.js +4 -0
- package/lib/duet/{p-ef6131cf.system.entry.js → p-af12e6cf.system.entry.js} +1 -1
- package/lib/duet/{p-fcdc6d18.entry.js → p-b35b5e57.entry.js} +1 -1
- package/lib/duet/{p-3a8be22c.entry.js → p-b3c81888.entry.js} +1 -1
- package/lib/duet/p-b433984a.system.entry.js +4 -0
- package/lib/duet/{p-d4a49f9d.entry.js → p-b638b8ed.entry.js} +1 -1
- package/lib/duet/{p-4d427b74.entry.js → p-b74131aa.entry.js} +1 -1
- package/lib/duet/p-b7438813.entry.js +4 -0
- package/lib/duet/{p-07e066a7.entry.js → p-b780a881.entry.js} +1 -1
- package/lib/duet/p-bbd3b919.system.entry.js +4 -0
- package/lib/duet/{p-fe87de6d.entry.js → p-bdfb63cd.entry.js} +1 -1
- package/lib/duet/{p-a917e3b6.entry.js → p-bee1823d.entry.js} +1 -1
- package/lib/duet/{p-f695a268.system.entry.js → p-bf1ab1eb.system.entry.js} +1 -1
- package/lib/duet/{p-5c142974.system.entry.js → p-bf8105a5.system.entry.js} +1 -1
- package/lib/duet/{p-9f1f39b5.entry.js → p-c07eb423.entry.js} +1 -1
- package/lib/duet/{p-b50558d2.entry.js → p-c09869cd.entry.js} +1 -1
- package/lib/duet/{p-67d326ad.system.entry.js → p-c0c65bf7.system.entry.js} +1 -1
- package/lib/duet/{p-460e0000.system.entry.js → p-c1028548.system.entry.js} +1 -1
- package/lib/duet/{p-a29a4414.system.entry.js → p-c2a73338.system.entry.js} +1 -1
- package/lib/duet/{p-c4d454c3.entry.js → p-c3a337a2.entry.js} +1 -1
- package/lib/duet/{p-8f806a8b.entry.js → p-c3ce052c.entry.js} +1 -1
- package/lib/duet/{p-f7c8e22c.entry.js → p-c5c44c35.entry.js} +1 -1
- package/lib/duet/{p-8d129d52.entry.js → p-c5d84b37.entry.js} +1 -1
- package/lib/duet/{p-2634dad4.entry.js → p-c6f2b220.entry.js} +1 -1
- package/lib/duet/{p-9f11e160.system.entry.js → p-c9789028.system.entry.js} +1 -1
- package/lib/duet/{p-322b78d6.system.entry.js → p-cdad6821.system.entry.js} +1 -1
- package/lib/duet/{p-3a053f92.entry.js → p-cdf08c39.entry.js} +1 -1
- package/lib/duet/{p-4c3009d4.entry.js → p-d02c9f15.entry.js} +1 -1
- package/lib/duet/{p-f364ae29.entry.js → p-d328f324.entry.js} +1 -1
- package/lib/duet/{p-d5039af1.entry.js → p-d4671eab.entry.js} +1 -1
- package/lib/duet/{p-25cfb26a.system.entry.js → p-d698e995.system.entry.js} +1 -1
- package/lib/duet/{p-57ff4a56.system.entry.js → p-d77241fe.system.entry.js} +2 -2
- package/lib/duet/p-d97befa1.entry.js +4 -0
- package/lib/duet/{p-ff6679c1.entry.js → p-da274cd4.entry.js} +1 -1
- package/lib/duet/{p-8982ddf8.entry.js → p-db19ddd2.entry.js} +1 -1
- package/lib/duet/{p-ccca2abd.system.entry.js → p-db1f1851.system.entry.js} +1 -1
- package/lib/duet/{p-d0a204dd.js → p-dbb02995.js} +1 -1
- package/lib/duet/{p-924a6fae.system.entry.js → p-dbc22e0a.system.entry.js} +1 -1
- package/lib/duet/{p-0c6ed41d.system.entry.js → p-dc4f841e.system.entry.js} +1 -1
- package/lib/duet/p-dd994793.system.js +4 -0
- package/lib/duet/{p-22442b75.system.entry.js → p-e1239725.system.entry.js} +1 -1
- package/lib/duet/{p-e79b8e08.system.entry.js → p-e154f21d.system.entry.js} +1 -1
- package/lib/duet/p-e208fd69.entry.js +4 -0
- package/lib/duet/{p-59d0e9da.system.entry.js → p-e73ebb36.system.entry.js} +1 -1
- package/lib/duet/{p-25152446.system.entry.js → p-ed1085eb.system.entry.js} +1 -1
- package/lib/duet/p-eeaa43d1.entry.js +4 -0
- package/lib/duet/{p-bbd312c3.entry.js → p-f17b0e53.entry.js} +1 -1
- package/lib/duet/{p-b5895431.system.entry.js → p-f1ca6939.system.entry.js} +1 -1
- package/lib/duet/p-f6001531.entry.js +4 -0
- package/lib/duet/{p-812836a4.entry.js → p-f6e69972.entry.js} +1 -1
- package/lib/duet/p-f7efac05.system.entry.js +4 -0
- package/lib/duet/{p-b44772bb.entry.js → p-fa648209.entry.js} +1 -1
- package/lib/duet/{p-960b240d.system.entry.js → p-fc800029.system.entry.js} +1 -1
- package/lib/duet/{p-0c53f007.system.entry.js → p-fef626b8.system.entry.js} +1 -1
- package/lib/esm/action-arrow-right-f7d56681.js +6 -0
- package/lib/esm/duet-action-button.entry.js +1 -1
- package/lib/esm/duet-alert.entry.js +1 -1
- package/lib/esm/duet-badge.entry.js +1 -1
- package/lib/esm/duet-breadcrumb.entry.js +4 -3
- package/lib/esm/duet-breadcrumbs.entry.js +2 -2
- package/lib/esm/duet-button_2.entry.js +1 -1
- package/lib/esm/duet-caption_4.entry.js +21 -5
- package/lib/esm/duet-card.entry.js +12 -4
- 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 +12 -4
- package/lib/esm/duet-collapsible.entry.js +1 -1
- package/lib/esm/duet-combobox.entry.js +8 -2
- package/lib/esm/duet-contact-card.entry.js +4 -2
- package/lib/esm/duet-cookie-consent.entry.js +1 -1
- package/lib/esm/duet-date-picker.entry.js +2 -2
- package/lib/esm/duet-divider_2.entry.js +1 -1
- package/lib/esm/duet-editable-table_3.entry.js +4 -2
- 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 +2 -3
- package/lib/esm/duet-grid_2.entry.js +4 -2
- package/lib/esm/duet-header_2.entry.js +1 -1
- package/lib/esm/duet-hero.entry.js +2 -2
- package/lib/esm/duet-icon.entry.js +6 -4
- package/lib/esm/duet-input_2.entry.js +2 -2
- package/lib/esm/duet-layout.entry.js +1 -1
- package/lib/esm/duet-list_2.entry.js +6 -2
- 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 +8 -2
- package/lib/esm/duet-modal.entry.js +10 -11
- package/lib/esm/duet-multiselect.entry.js +1 -1
- package/lib/esm/duet-nav.entry.js +1 -1
- package/lib/esm/duet-notification_2.entry.js +1 -1
- package/lib/esm/duet-number-input.entry.js +1 -1
- package/lib/esm/duet-page-heading.entry.js +1 -1
- package/lib/esm/duet-pagination_2.entry.js +1 -1
- package/lib/esm/duet-progress.entry.js +1 -1
- package/lib/esm/duet-radio_2.entry.js +1 -1
- package/lib/esm/duet-range-slider.entry.js +1 -1
- package/lib/esm/duet-scrollable_3.entry.js +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-slideout-lang.entry.js +1 -1
- package/lib/esm/duet-slideout-link.entry.js +3 -3
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
- package/lib/esm/duet-slideout-panel.entry.js +2 -2
- package/lib/esm/duet-slideout.entry.js +2 -2
- package/lib/esm/duet-step_2.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
- package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
- package/lib/esm/duet-submenu-bar.entry.js +1 -1
- package/lib/esm/duet-textarea.entry.js +1 -1
- package/lib/esm/duet-toggle.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
- package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
- package/lib/esm/duet-toolbar-link.entry.js +1 -1
- package/lib/esm/duet-toolbar.entry.js +1 -1
- package/lib/esm/duet-tooltip.entry.js +1 -1
- package/lib/esm/duet-tray.entry.js +1 -1
- package/lib/esm/duet-upload-aria-status.entry.js +1 -1
- package/lib/esm/duet-visually-hidden.entry.js +1 -1
- package/lib/esm/duet.js +3 -3
- package/lib/esm/{focus-utils-cf8246ed.js → focus-utils-8579107c.js} +1 -1
- package/lib/esm/{index-df15a197.js → index-1c0e9f7c.js} +1 -1
- package/lib/esm/loader.js +3 -3
- package/lib/esm-es5/action-arrow-right-f7d56681.js +4 -0
- package/lib/esm-es5/duet-action-button.entry.js +1 -1
- package/lib/esm-es5/duet-alert.entry.js +1 -1
- package/lib/esm-es5/duet-badge.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
- package/lib/esm-es5/duet-breadcrumbs.entry.js +2 -2
- package/lib/esm-es5/duet-button_2.entry.js +1 -1
- package/lib/esm-es5/duet-caption_4.entry.js +2 -2
- package/lib/esm-es5/duet-card.entry.js +2 -2
- 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 +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 +1 -1
- package/lib/esm-es5/duet-header_2.entry.js +1 -1
- package/lib/esm-es5/duet-hero.entry.js +1 -1
- package/lib/esm-es5/duet-icon.entry.js +2 -2
- package/lib/esm-es5/duet-input_2.entry.js +1 -1
- package/lib/esm-es5/duet-layout.entry.js +1 -1
- package/lib/esm-es5/duet-list_2.entry.js +2 -2
- package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
- package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
- package/lib/esm-es5/duet-modal.entry.js +2 -2
- package/lib/esm-es5/duet-multiselect.entry.js +1 -1
- package/lib/esm-es5/duet-nav.entry.js +1 -1
- package/lib/esm-es5/duet-notification_2.entry.js +1 -1
- package/lib/esm-es5/duet-number-input.entry.js +1 -1
- package/lib/esm-es5/duet-page-heading.entry.js +1 -1
- package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
- package/lib/esm-es5/duet-progress.entry.js +1 -1
- package/lib/esm-es5/duet-radio_2.entry.js +1 -1
- package/lib/esm-es5/duet-range-slider.entry.js +1 -1
- package/lib/esm-es5/duet-scrollable_3.entry.js +2 -2
- 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-8579107c.js +4 -0
- package/lib/esm-es5/{index-df15a197.js → index-1c0e9f7c.js} +1 -1
- package/lib/esm-es5/loader.js +1 -1
- package/lib/types/common/index.d.ts +1 -0
- package/lib/types/common/runtime-types.d.ts +2 -0
- package/lib/types/common-types.d.ts +5 -1
- package/lib/types/components/duet-card/duet-card.d.ts +10 -2
- package/lib/types/components/duet-choice-group/duet-choice-group.d.ts +6 -1
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +4 -0
- package/lib/types/components/duet-icon/duet-icon.d.ts +1 -1
- package/lib/types/components/duet-link/duet-link.d.ts +15 -1
- package/lib/types/components/duet-list/duet-list.d.ts +1 -1
- package/lib/types/components/duet-modal/duet-modal.d.ts +1 -0
- package/lib/types/components/duet-table/duet-table.d.ts +4 -0
- package/lib/types/components.d.ts +64 -8
- package/package.json +5 -5
- package/lib/dist-custom-elements/p-562ae9bf.js +0 -176
- package/lib/dist-custom-elements/p-646d548a.js +0 -120
- package/lib/dist-custom-elements/p-7c398a84.js +0 -94
- package/lib/duet/p-0656f2f9.system.entry.js +0 -4
- package/lib/duet/p-08ef8050.system.entry.js +0 -4
- package/lib/duet/p-0adf7b64.entry.js +0 -4
- package/lib/duet/p-1550576c.entry.js +0 -4
- package/lib/duet/p-18c0ff13.entry.js +0 -4
- package/lib/duet/p-1b7f8128.entry.js +0 -4
- package/lib/duet/p-1d0fe0e5.entry.js +0 -4
- package/lib/duet/p-228a7948.entry.js +0 -4
- package/lib/duet/p-2c0dbf48.system.entry.js +0 -4
- package/lib/duet/p-35853dae.system.entry.js +0 -4
- package/lib/duet/p-51eee6b2.system.entry.js +0 -4
- package/lib/duet/p-5a158681.system.entry.js +0 -4
- package/lib/duet/p-703d38f6.entry.js +0 -4
- package/lib/duet/p-77f82263.entry.js +0 -4
- package/lib/duet/p-9b9055ce.entry.js +0 -4
- package/lib/duet/p-a1199061.system.entry.js +0 -4
- package/lib/duet/p-acad33fd.entry.js +0 -4
- package/lib/duet/p-c0b16f31.entry.js +0 -4
- package/lib/duet/p-c9971192.system.entry.js +0 -4
- package/lib/duet/p-cc12d9fa.entry.js +0 -4
- package/lib/duet/p-d6c3dc66.entry.js +0 -4
- package/lib/duet/p-e2592469.system.entry.js +0 -4
- package/lib/duet/p-f20780ad.system.js +0 -4
- package/lib/duet/p-f3340517.entry.js +0 -4
- package/lib/duet/p-f495c3af.system.entry.js +0 -4
- package/lib/duet/p-fcaa49c3.entry.js +0 -4
- package/lib/esm-es5/focus-utils-cf8246ed.js +0 -4
|
@@ -5,13 +5,14 @@ export type DuetTheme = "" | "default" | "turva" // empty string means inherit g
|
|
|
5
5
|
export type DuetTooltipDirection = "left" | "auto" | "right"
|
|
6
6
|
export type DuetIconName = string
|
|
7
7
|
export type DuetColor = string
|
|
8
|
+
export type DuetBlock = "div"
|
|
8
9
|
export type DuetHeadingLevel = "h1" | "h2" | "h3" | "h4" | "h5" | "h6"
|
|
9
10
|
export type DuetVisualHeadingLevel = "h0" | DuetHeadingLevel
|
|
10
11
|
export type DuetLanguage = "fi" | "en" | "sv"
|
|
11
12
|
export type DuetLanguageWithUs = "fi" | "en" | "sv" | "us"
|
|
12
13
|
export type DuetStatus = "default" | "success" | "danger" | "warning"
|
|
13
14
|
export type DuetAnalyticsEvent<T extends string> = { analyticsId: string; component: T }
|
|
14
|
-
export type DuetGridBreakpoint = "small" | "medium" | "x-large"
|
|
15
|
+
export type DuetGridBreakpoint = "x-small" | "small" | "medium" | "large" | "x-large"
|
|
15
16
|
export type DuetLocale = "fi-FI" | "sv-SE" | "en-GB" | "en-US"
|
|
16
17
|
export type DuetChoiceType = "radio" | "checkbox"
|
|
17
18
|
export type DuetTableBreakpoint =
|
|
@@ -33,3 +34,6 @@ export type StatusMessage = {
|
|
|
33
34
|
file: string
|
|
34
35
|
files: string
|
|
35
36
|
}
|
|
37
|
+
export type DuetCardHeadingLevel = DuetHeadingLevel | DuetBlock
|
|
38
|
+
export type DuetLinkVariation = "default" | "block"
|
|
39
|
+
export type DuetChoiceGroupBreakpoint = "x-small" | "small" | "medium" | "large" | "x-large"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { ThemeableComponent } from "../../common";
|
|
3
|
-
import {
|
|
3
|
+
import { DuetCardHeadingLevel, DuetColor, DuetIconName, DuetMargin, DuetTheme } from "../../common-types";
|
|
4
4
|
import { DuetBreakpoints } from "../../utils/token-utils";
|
|
5
5
|
export type DuetCardVariation = "default" | "info" | "plain";
|
|
6
6
|
export type DuetCardPadding = "x-large" | "large" | "medium" | "small" | "x-small" | "xx-small" | "none";
|
|
@@ -60,8 +60,16 @@ export declare class DuetCard implements ThemeableComponent {
|
|
|
60
60
|
/**
|
|
61
61
|
* The actual heading level used for the heading in html markup. This setting
|
|
62
62
|
* exists for accessibility reasons. It doesn’t change the style visually.
|
|
63
|
+
* This setting is only used if the heading property is set.
|
|
64
|
+
* If you provide your own heading(s) in the slot, you should set this to neutral "div"
|
|
65
|
+
* in order to avoid nested headings.
|
|
63
66
|
*/
|
|
64
|
-
headingLevel:
|
|
67
|
+
headingLevel: DuetCardHeadingLevel;
|
|
68
|
+
/**
|
|
69
|
+
* Custom color to be used for the card's heading background, as a design token entered in
|
|
70
|
+
* camelCase or kebab-case. Example: "primary".
|
|
71
|
+
*/
|
|
72
|
+
headingBackground: DuetColor | undefined;
|
|
65
73
|
/**
|
|
66
74
|
* Icon to display on the left side of heading. Example: "form-location"
|
|
67
75
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DuetDirection, DuetMargin, DuetTheme, DuetTooltipDirection } from "../../common-types";
|
|
1
|
+
import { DuetChoiceGroupBreakpoint, DuetDirection, DuetMargin, DuetTheme, DuetTooltipDirection } from "../../common-types";
|
|
2
2
|
import { ThemeableComponent } from "../../common/themeable-component";
|
|
3
3
|
export declare class DuetChoiceGroup implements ThemeableComponent {
|
|
4
4
|
/**
|
|
@@ -57,6 +57,11 @@ export declare class DuetChoiceGroup implements ThemeableComponent {
|
|
|
57
57
|
* makes sure that contents are stacked vertically on mobile.
|
|
58
58
|
*/
|
|
59
59
|
responsive: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Switch the breakpoint used to trigger the content stacking. These match to
|
|
62
|
+
* similar media query tokens eg.: $media-query-small, $media-query-medium.
|
|
63
|
+
*/
|
|
64
|
+
breakpoint: DuetChoiceGroupBreakpoint;
|
|
60
65
|
/**
|
|
61
66
|
* The value of the selected choice button.
|
|
62
67
|
*/
|
|
@@ -69,6 +69,10 @@ export declare class DuetCombobox implements ThemeableComponent {
|
|
|
69
69
|
* Defines minimum number of characters that must be given to show search results
|
|
70
70
|
*/
|
|
71
71
|
minCharacters: number;
|
|
72
|
+
/**
|
|
73
|
+
* Defines if items list should always open after clicking on input
|
|
74
|
+
*/
|
|
75
|
+
openListOnClick: boolean;
|
|
72
76
|
/**
|
|
73
77
|
* Emitted when a keyboard input occurred.
|
|
74
78
|
*/
|
|
@@ -60,7 +60,7 @@ export declare class DuetIcon implements ThemeableComponent {
|
|
|
60
60
|
/**
|
|
61
61
|
* Shape of the background. Brand follows new designs and currently doesn't support xxx-small size.
|
|
62
62
|
*/
|
|
63
|
-
shape: "circle" | "brand";
|
|
63
|
+
shape: "circle" | "brand" | "brand-rotated";
|
|
64
64
|
/**
|
|
65
65
|
* Component lifecycle events.
|
|
66
66
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DuetLanguage, DuetTheme } from "../../common-types";
|
|
1
|
+
import { DuetIconName, DuetLanguage, DuetLinkVariation, DuetPadding, DuetTheme } from "../../common-types";
|
|
2
2
|
import { ThemeableComponent } from "../../common/themeable-component";
|
|
3
3
|
import { DuetLangObject } from "../../utils/language-utils";
|
|
4
4
|
/**
|
|
@@ -6,6 +6,10 @@ import { DuetLangObject } from "../../utils/language-utils";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class DuetLink implements ThemeableComponent {
|
|
8
8
|
private nativeLink;
|
|
9
|
+
/**
|
|
10
|
+
* Style variation of the link.
|
|
11
|
+
*/
|
|
12
|
+
variation: DuetLinkVariation;
|
|
9
13
|
/**
|
|
10
14
|
* Adds accessible label for the link that is only shown for screen readers.
|
|
11
15
|
* Typically, this label text replaces the visible text on the link for users
|
|
@@ -51,6 +55,14 @@ export declare class DuetLink implements ThemeableComponent {
|
|
|
51
55
|
* Initially visually hidden link, which is shown on focus.
|
|
52
56
|
*/
|
|
53
57
|
tabToLink: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Icon to display on the left side of the ink text. (only with variations other than "default")
|
|
60
|
+
*/
|
|
61
|
+
icon: DuetIconName;
|
|
62
|
+
/**
|
|
63
|
+
* Controls the padding of the component (only with variations other than "default")
|
|
64
|
+
*/
|
|
65
|
+
padding: DuetPadding;
|
|
54
66
|
/**
|
|
55
67
|
* Component lifecycle events.
|
|
56
68
|
*/
|
|
@@ -60,6 +72,8 @@ export declare class DuetLink implements ThemeableComponent {
|
|
|
60
72
|
* `link.focus()`.
|
|
61
73
|
*/
|
|
62
74
|
setFocus(options?: FocusOptions): Promise<void>;
|
|
75
|
+
private renderContent;
|
|
76
|
+
private renderGrid;
|
|
63
77
|
/**
|
|
64
78
|
* render() function
|
|
65
79
|
* Always the last one in the class.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DuetMargin, DuetPadding, DuetTheme } from "../../common-types";
|
|
2
2
|
import { ThemeableComponent } from "../../common/themeable-component";
|
|
3
|
-
export type DuetListVariation = "default" | "striped";
|
|
3
|
+
export type DuetListVariation = "default" | "striped" | "bordered" | "inner-bordered";
|
|
4
4
|
export type DuetListMobileAlignment = "left" | "center";
|
|
5
5
|
export type DuetListLabelWidth = "30" | "50" | "70";
|
|
6
6
|
export type DuetListBreakpoint = "small" | "large";
|
|
@@ -55,6 +55,10 @@ export declare class DuetTable implements ThemeableComponent {
|
|
|
55
55
|
* this is useful for comparison tables where it's important to maintain column and row layout.
|
|
56
56
|
*/
|
|
57
57
|
breakpoint: DuetTableBreakpoint;
|
|
58
|
+
/**
|
|
59
|
+
* Hide a thead section visually. The content is still available to screen readers.
|
|
60
|
+
*/
|
|
61
|
+
hideHeadVisually: boolean;
|
|
58
62
|
handleMediaQueryChange: (mq: MediaQueryListEvent | MediaQueryList) => void;
|
|
59
63
|
connectedCallback(): void;
|
|
60
64
|
componentWillLoad(): void;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { DuetChoiceType, DuetColor, DuetDirection, DuetGridBreakpoint, DuetHeadingLevel, DuetIconName, DuetLanguage, DuetLocale, DuetMargin, DuetPadding, DuetStatus, DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant, DuetTheme, DuetTooltipDirection, DuetVisualHeadingLevel, StatusMessage } from "./common-types";
|
|
8
|
+
import { DuetCardHeadingLevel, DuetChoiceGroupBreakpoint, DuetChoiceType, DuetColor, DuetDirection, DuetGridBreakpoint, DuetHeadingLevel, DuetIconName, DuetLanguage, DuetLinkVariation, DuetLocale, DuetMargin, DuetPadding, DuetStatus, DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant, DuetTheme, DuetTooltipDirection, DuetVisualHeadingLevel, StatusMessage } from "./common-types";
|
|
9
9
|
import { DuetActionButtonEvent, DuetActionButtonIconSize } from "./components/duet-action-button/duet-action-button";
|
|
10
10
|
import { DuetLangObject } from "./utils/language-utils";
|
|
11
11
|
import { DuetAlertEvent } from "./components/duet-alert/duet-alert";
|
|
@@ -56,7 +56,7 @@ import { DuetTooltipBreakpoint } from "./components/duet-tooltip/duet-tooltip";
|
|
|
56
56
|
import { DuetUploadEvent, DuetUploadTableGroupName, StringMap, XHRInternalMiddleWare } from "./components/duet-upload/duet-upload";
|
|
57
57
|
import { DuetEditableTableActions as DuetEditableTableActions1 } from "./components/duet-editable-table/duet-editable-table";
|
|
58
58
|
import { DuetUploadErrorCode } from "./components/duet-upload/errorcodes.utils";
|
|
59
|
-
export { DuetChoiceType, DuetColor, DuetDirection, DuetGridBreakpoint, DuetHeadingLevel, DuetIconName, DuetLanguage, DuetLocale, DuetMargin, DuetPadding, DuetStatus, DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant, DuetTheme, DuetTooltipDirection, DuetVisualHeadingLevel, StatusMessage } from "./common-types";
|
|
59
|
+
export { DuetCardHeadingLevel, DuetChoiceGroupBreakpoint, DuetChoiceType, DuetColor, DuetDirection, DuetGridBreakpoint, DuetHeadingLevel, DuetIconName, DuetLanguage, DuetLinkVariation, DuetLocale, DuetMargin, DuetPadding, DuetStatus, DuetTableBreakpoint, DuetTableStickyDistance, DuetTableVariant, DuetTheme, DuetTooltipDirection, DuetVisualHeadingLevel, StatusMessage } from "./common-types";
|
|
60
60
|
export { DuetActionButtonEvent, DuetActionButtonIconSize } from "./components/duet-action-button/duet-action-button";
|
|
61
61
|
export { DuetLangObject } from "./utils/language-utils";
|
|
62
62
|
export { DuetAlertEvent } from "./components/duet-alert/duet-alert";
|
|
@@ -467,9 +467,13 @@ export namespace Components {
|
|
|
467
467
|
*/
|
|
468
468
|
"heading": string;
|
|
469
469
|
/**
|
|
470
|
-
*
|
|
470
|
+
* Custom color to be used for the card's heading background, as a design token entered in camelCase or kebab-case. Example: "primary".
|
|
471
471
|
*/
|
|
472
|
-
"
|
|
472
|
+
"headingBackground": DuetColor | undefined;
|
|
473
|
+
/**
|
|
474
|
+
* The actual heading level used for the heading in html markup. This setting exists for accessibility reasons. It doesn’t change the style visually. This setting is only used if the heading property is set. If you provide your own heading(s) in the slot, you should set this to neutral "div" in order to avoid nested headings.
|
|
475
|
+
*/
|
|
476
|
+
"headingLevel": DuetCardHeadingLevel;
|
|
473
477
|
/**
|
|
474
478
|
* Icon to display on the left side of heading. Example: "form-location"
|
|
475
479
|
*/
|
|
@@ -744,6 +748,10 @@ export namespace Components {
|
|
|
744
748
|
"value": string;
|
|
745
749
|
}
|
|
746
750
|
interface DuetChoiceGroup {
|
|
751
|
+
/**
|
|
752
|
+
* Switch the breakpoint used to trigger the content stacking. These match to similar media query tokens eg.: $media-query-small, $media-query-medium.
|
|
753
|
+
*/
|
|
754
|
+
"breakpoint": DuetChoiceGroupBreakpoint;
|
|
747
755
|
/**
|
|
748
756
|
* Additional caption to show inside the label of the choice group.
|
|
749
757
|
*/
|
|
@@ -865,6 +873,10 @@ export namespace Components {
|
|
|
865
873
|
* Defines minimum number of characters that must be given to show search results
|
|
866
874
|
*/
|
|
867
875
|
"minCharacters": number;
|
|
876
|
+
/**
|
|
877
|
+
* Defines if items list should always open after clicking on input
|
|
878
|
+
*/
|
|
879
|
+
"openListOnClick": boolean;
|
|
868
880
|
/**
|
|
869
881
|
* Theme of the combobox.
|
|
870
882
|
*/
|
|
@@ -1529,7 +1541,7 @@ export namespace Components {
|
|
|
1529
1541
|
/**
|
|
1530
1542
|
* Shape of the background. Brand follows new designs and currently doesn't support xxx-small size.
|
|
1531
1543
|
*/
|
|
1532
|
-
"shape": "circle" | "brand";
|
|
1544
|
+
"shape": "circle" | "brand" | "brand-rotated";
|
|
1533
1545
|
/**
|
|
1534
1546
|
* Icon size. Entered as one of the icon size design tokens.
|
|
1535
1547
|
*/
|
|
@@ -1780,6 +1792,10 @@ export namespace Components {
|
|
|
1780
1792
|
* Forces URL to open in a new browser tab. Used together with URL prop.
|
|
1781
1793
|
*/
|
|
1782
1794
|
"external": boolean;
|
|
1795
|
+
/**
|
|
1796
|
+
* Icon to display on the left side of the ink text. (only with variations other than "default")
|
|
1797
|
+
*/
|
|
1798
|
+
"icon": DuetIconName;
|
|
1783
1799
|
/**
|
|
1784
1800
|
* Adds a unique identifier for the link. Please note that with this particular component this id is added inside Shadow DOM. If you need an id on the html element, use regular id attribute instead.
|
|
1785
1801
|
*/
|
|
@@ -1790,6 +1806,10 @@ export namespace Components {
|
|
|
1790
1806
|
* @default "fi"
|
|
1791
1807
|
*/
|
|
1792
1808
|
"language": DuetLanguage;
|
|
1809
|
+
/**
|
|
1810
|
+
* Controls the padding of the component (only with variations other than "default")
|
|
1811
|
+
*/
|
|
1812
|
+
"padding": DuetPadding;
|
|
1793
1813
|
/**
|
|
1794
1814
|
* Sets focus on the specified `duet-link`. Use this method instead of the global `link.focus()`.
|
|
1795
1815
|
*/
|
|
@@ -1806,6 +1826,10 @@ export namespace Components {
|
|
|
1806
1826
|
* A destination to link to, rendered in the href attribute of a link.
|
|
1807
1827
|
*/
|
|
1808
1828
|
"url": string;
|
|
1829
|
+
/**
|
|
1830
|
+
* Style variation of the link.
|
|
1831
|
+
*/
|
|
1832
|
+
"variation": DuetLinkVariation;
|
|
1809
1833
|
}
|
|
1810
1834
|
interface DuetList {
|
|
1811
1835
|
/**
|
|
@@ -3252,6 +3276,10 @@ export namespace Components {
|
|
|
3252
3276
|
* By default the table is responsive - it will be flattened at narrow viewport widths. This prop controls the breakpoint at which the table should be rendered as a _regular_ table. Set to "none" to disable the responsive functionality. Set to "none-scrollable" to disable responsive functionality _and_ allow horizontal scrolling - this is useful for comparison tables where it's important to maintain column and row layout.
|
|
3253
3277
|
*/
|
|
3254
3278
|
"breakpoint": DuetTableBreakpoint;
|
|
3279
|
+
/**
|
|
3280
|
+
* Hide a thead section visually. The content is still available to screen readers.
|
|
3281
|
+
*/
|
|
3282
|
+
"hideHeadVisually": boolean;
|
|
3255
3283
|
/**
|
|
3256
3284
|
* Controls the margin of the component.
|
|
3257
3285
|
*/
|
|
@@ -4970,9 +4998,13 @@ declare namespace LocalJSX {
|
|
|
4970
4998
|
*/
|
|
4971
4999
|
"heading"?: string;
|
|
4972
5000
|
/**
|
|
4973
|
-
*
|
|
5001
|
+
* Custom color to be used for the card's heading background, as a design token entered in camelCase or kebab-case. Example: "primary".
|
|
4974
5002
|
*/
|
|
4975
|
-
"
|
|
5003
|
+
"headingBackground"?: DuetColor | undefined;
|
|
5004
|
+
/**
|
|
5005
|
+
* The actual heading level used for the heading in html markup. This setting exists for accessibility reasons. It doesn’t change the style visually. This setting is only used if the heading property is set. If you provide your own heading(s) in the slot, you should set this to neutral "div" in order to avoid nested headings.
|
|
5006
|
+
*/
|
|
5007
|
+
"headingLevel"?: DuetCardHeadingLevel;
|
|
4976
5008
|
/**
|
|
4977
5009
|
* Icon to display on the left side of heading. Example: "form-location"
|
|
4978
5010
|
*/
|
|
@@ -5256,6 +5288,10 @@ declare namespace LocalJSX {
|
|
|
5256
5288
|
"value"?: string;
|
|
5257
5289
|
}
|
|
5258
5290
|
interface DuetChoiceGroup {
|
|
5291
|
+
/**
|
|
5292
|
+
* Switch the breakpoint used to trigger the content stacking. These match to similar media query tokens eg.: $media-query-small, $media-query-medium.
|
|
5293
|
+
*/
|
|
5294
|
+
"breakpoint"?: DuetChoiceGroupBreakpoint;
|
|
5259
5295
|
/**
|
|
5260
5296
|
* Additional caption to show inside the label of the choice group.
|
|
5261
5297
|
*/
|
|
@@ -5376,6 +5412,10 @@ declare namespace LocalJSX {
|
|
|
5376
5412
|
* Emitted when a keyboard input occurred.
|
|
5377
5413
|
*/
|
|
5378
5414
|
"onDuetChange"?: (event: DuetComboboxCustomEvent<DuetComboboxEvent>) => void;
|
|
5415
|
+
/**
|
|
5416
|
+
* Defines if items list should always open after clicking on input
|
|
5417
|
+
*/
|
|
5418
|
+
"openListOnClick"?: boolean;
|
|
5379
5419
|
/**
|
|
5380
5420
|
* Theme of the combobox.
|
|
5381
5421
|
*/
|
|
@@ -6126,7 +6166,7 @@ declare namespace LocalJSX {
|
|
|
6126
6166
|
/**
|
|
6127
6167
|
* Shape of the background. Brand follows new designs and currently doesn't support xxx-small size.
|
|
6128
6168
|
*/
|
|
6129
|
-
"shape"?: "circle" | "brand";
|
|
6169
|
+
"shape"?: "circle" | "brand" | "brand-rotated";
|
|
6130
6170
|
/**
|
|
6131
6171
|
* Icon size. Entered as one of the icon size design tokens.
|
|
6132
6172
|
*/
|
|
@@ -6385,6 +6425,10 @@ declare namespace LocalJSX {
|
|
|
6385
6425
|
* Forces URL to open in a new browser tab. Used together with URL prop.
|
|
6386
6426
|
*/
|
|
6387
6427
|
"external"?: boolean;
|
|
6428
|
+
/**
|
|
6429
|
+
* Icon to display on the left side of the ink text. (only with variations other than "default")
|
|
6430
|
+
*/
|
|
6431
|
+
"icon"?: DuetIconName;
|
|
6388
6432
|
/**
|
|
6389
6433
|
* Adds a unique identifier for the link. Please note that with this particular component this id is added inside Shadow DOM. If you need an id on the html element, use regular id attribute instead.
|
|
6390
6434
|
*/
|
|
@@ -6395,6 +6439,10 @@ declare namespace LocalJSX {
|
|
|
6395
6439
|
* @default "fi"
|
|
6396
6440
|
*/
|
|
6397
6441
|
"language"?: DuetLanguage;
|
|
6442
|
+
/**
|
|
6443
|
+
* Controls the padding of the component (only with variations other than "default")
|
|
6444
|
+
*/
|
|
6445
|
+
"padding"?: DuetPadding;
|
|
6398
6446
|
/**
|
|
6399
6447
|
* Initially visually hidden link, which is shown on focus.
|
|
6400
6448
|
*/
|
|
@@ -6407,6 +6455,10 @@ declare namespace LocalJSX {
|
|
|
6407
6455
|
* A destination to link to, rendered in the href attribute of a link.
|
|
6408
6456
|
*/
|
|
6409
6457
|
"url"?: string;
|
|
6458
|
+
/**
|
|
6459
|
+
* Style variation of the link.
|
|
6460
|
+
*/
|
|
6461
|
+
"variation"?: DuetLinkVariation;
|
|
6410
6462
|
}
|
|
6411
6463
|
interface DuetList {
|
|
6412
6464
|
/**
|
|
@@ -7877,6 +7929,10 @@ declare namespace LocalJSX {
|
|
|
7877
7929
|
* By default the table is responsive - it will be flattened at narrow viewport widths. This prop controls the breakpoint at which the table should be rendered as a _regular_ table. Set to "none" to disable the responsive functionality. Set to "none-scrollable" to disable responsive functionality _and_ allow horizontal scrolling - this is useful for comparison tables where it's important to maintain column and row layout.
|
|
7878
7930
|
*/
|
|
7879
7931
|
"breakpoint"?: DuetTableBreakpoint;
|
|
7932
|
+
/**
|
|
7933
|
+
* Hide a thead section visually. The content is still available to screen readers.
|
|
7934
|
+
*/
|
|
7935
|
+
"hideHeadVisually"?: boolean;
|
|
7880
7936
|
/**
|
|
7881
7937
|
* Controls the margin of the component.
|
|
7882
7938
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duetds/components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.8.0",
|
|
4
4
|
"description": "This package includes Duet Design System Web Components and related utilities.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "duetdesignsystem@lahitapiola.fi"
|
|
@@ -50,9 +50,9 @@
|
|
|
50
50
|
"body-scroll-lock": "3.1.5"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@duetds/fonts": "2.0.
|
|
54
|
-
"@duetds/icons": "3.0.
|
|
55
|
-
"@duetds/tokens": "3.0.
|
|
53
|
+
"@duetds/fonts": "2.0.37",
|
|
54
|
+
"@duetds/icons": "3.0.37",
|
|
55
|
+
"@duetds/tokens": "3.0.37",
|
|
56
56
|
"@rollup/plugin-replace": "5.0.2",
|
|
57
57
|
"@stencil/core": "3.1.0",
|
|
58
58
|
"@stencil/sass": "3.0.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"collection": "lib/collection/collection-manifest.json",
|
|
79
79
|
"es2015": "lib/esm/index.js",
|
|
80
80
|
"es2017": "lib/esm/index.js",
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "466317db8bc0ba9d1869b66a20ac177f10b9a81d"
|
|
82
82
|
}
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import { p as proxyCustomElement, H, h, d as Host } from './p-67e14cd3.js';
|
|
5
|
-
import { m as media_query_large, a as media_query_medium, b as media_query_small } from './p-c4d8cad0.js';
|
|
6
|
-
import { w as watchForOptions, a as watchForElement } from './p-12721178.js';
|
|
7
|
-
|
|
8
|
-
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}@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: 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-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-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}@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: 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}}";
|
|
9
|
-
|
|
10
|
-
function isGridItem(element) {
|
|
11
|
-
return element.tagName.toLowerCase() === "duet-grid-item";
|
|
12
|
-
}
|
|
13
|
-
const DuetGrid = /*@__PURE__*/ proxyCustomElement(class extends H {
|
|
14
|
-
constructor() {
|
|
15
|
-
super();
|
|
16
|
-
this.__registerHost();
|
|
17
|
-
this.mql = [
|
|
18
|
-
window.matchMedia(media_query_large.replace(/'/g, "")),
|
|
19
|
-
window.matchMedia(media_query_medium.replace(/'/g, "")),
|
|
20
|
-
window.matchMedia(media_query_small.replace(/'/g, "")),
|
|
21
|
-
];
|
|
22
|
-
this.distributeFormElement = false;
|
|
23
|
-
this.responsive = false;
|
|
24
|
-
this.breakpoint = "small";
|
|
25
|
-
this.direction = "horizontal";
|
|
26
|
-
this.alignment = "top";
|
|
27
|
-
this.distribution = "default";
|
|
28
|
-
this.mobile = "";
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Private functions
|
|
32
|
-
*/
|
|
33
|
-
/**
|
|
34
|
-
* Returns the element height including margins
|
|
35
|
-
* @param element - element
|
|
36
|
-
* @returns {number}
|
|
37
|
-
*/
|
|
38
|
-
outerHeight(element) {
|
|
39
|
-
const height = element.offsetHeight, style = window.getComputedStyle(element);
|
|
40
|
-
return ["top", "bottom"]
|
|
41
|
-
.map(side => parseInt(style[`margin-${side}`]))
|
|
42
|
-
.reduce((total, side) => total + side, height);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Component lifecycle events.
|
|
46
|
-
*/
|
|
47
|
-
async connectedCallback() {
|
|
48
|
-
const el = this.element;
|
|
49
|
-
this.distributeFormElement = this.alignment === "form_distribute";
|
|
50
|
-
this.mutationO = watchForOptions(el, "duet-grid-item", () => {
|
|
51
|
-
this.updateGridItems();
|
|
52
|
-
});
|
|
53
|
-
// the next two functions are used to watch for changes in the grid items, and are process intensive - so only run when needed
|
|
54
|
-
if (this.distributeFormElement) {
|
|
55
|
-
this.mutation1 = watchForElement(el, "duet-input", () => {
|
|
56
|
-
this.updateGridItemsWithInputFields();
|
|
57
|
-
});
|
|
58
|
-
// listen for potential mediaquery changes and reset layout
|
|
59
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
60
|
-
// addEventListener is not available in Stencil hydrate
|
|
61
|
-
if (this.mql[i].addEventListener) {
|
|
62
|
-
this.mql[i].addEventListener("change", this.updateGridItemsWithInputFields.bind(this));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
this.updateGridItems();
|
|
67
|
-
}
|
|
68
|
-
disconnectedCallback() {
|
|
69
|
-
if (this.mutationO) {
|
|
70
|
-
this.mutationO.disconnect();
|
|
71
|
-
this.mutationO = undefined;
|
|
72
|
-
}
|
|
73
|
-
if (this.mutation1) {
|
|
74
|
-
this.mutation1.disconnect();
|
|
75
|
-
this.mutation1 = undefined;
|
|
76
|
-
}
|
|
77
|
-
// listen for potential mediaquery changes and reset layout
|
|
78
|
-
for (let i = 0; i < this.mql.length; i++) {
|
|
79
|
-
// addEventListener is not available in Stencil hydrate
|
|
80
|
-
if (this.mql[i].removeEventListener) {
|
|
81
|
-
this.mql[i].removeEventListener("change", this.updateGridItemsWithInputFields.bind(this));
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Local methods
|
|
87
|
-
*/
|
|
88
|
-
async updateGridItems() {
|
|
89
|
-
const items = Array.from(this.element.children).filter(isGridItem);
|
|
90
|
-
items.forEach(item => {
|
|
91
|
-
item.responsive = this.responsive;
|
|
92
|
-
item.breakpoint = this.breakpoint;
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
async updateGridItemsWithInputFields() {
|
|
96
|
-
const items = Array.from(this.element.children).filter(isGridItem);
|
|
97
|
-
// if layout changes to columns instead of row, remove all padding
|
|
98
|
-
const hasColumnLayout = window ? window.getComputedStyle(this.element).flexDirection === "column" : false;
|
|
99
|
-
let maxHeight = 0;
|
|
100
|
-
const sizes = [];
|
|
101
|
-
items.forEach(item => {
|
|
102
|
-
const inputErrorDom = item.querySelector("span.duet-input-error");
|
|
103
|
-
const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
|
|
104
|
-
sizes.push(height);
|
|
105
|
-
});
|
|
106
|
-
maxHeight = Math.max(...sizes);
|
|
107
|
-
items.forEach(item => {
|
|
108
|
-
const inputErrorDom = item.querySelector("span.duet-input-error");
|
|
109
|
-
const height = inputErrorDom ? this.outerHeight(inputErrorDom) : 0;
|
|
110
|
-
if (height < maxHeight && !hasColumnLayout) {
|
|
111
|
-
item.setAttribute("style", `padding-bottom: ${maxHeight - height}px;`);
|
|
112
|
-
}
|
|
113
|
-
else if (height === maxHeight || hasColumnLayout) {
|
|
114
|
-
item.setAttribute("style", `padding-bottom: 0px;`);
|
|
115
|
-
}
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* render() function
|
|
120
|
-
* Always the last one in the class.
|
|
121
|
-
*/
|
|
122
|
-
render() {
|
|
123
|
-
return (h(Host, { class: {
|
|
124
|
-
"duet-grid": true,
|
|
125
|
-
"duet-no-stacking": !this.responsive,
|
|
126
|
-
"duet-grid-align-top": this.alignment === "top",
|
|
127
|
-
"duet-grid-align-bottom": this.alignment === "bottom" || this.alignment === "form_distribute",
|
|
128
|
-
"duet-grid-align-center": this.alignment === "center",
|
|
129
|
-
"duet-grid-align-stretch": this.alignment === "stretch",
|
|
130
|
-
"duet-grid-align-baseline": this.alignment === "baseline",
|
|
131
|
-
"duet-grid-distribution-left": this.distribution === "left",
|
|
132
|
-
"duet-grid-distribution-right": this.distribution === "right",
|
|
133
|
-
"duet-grid-distribution-center": this.distribution === "center",
|
|
134
|
-
"duet-grid-distribution-between": this.distribution === "space-between",
|
|
135
|
-
"duet-grid-distribution-around": this.distribution === "space-around",
|
|
136
|
-
"duet-grid-distribution-evenly": this.distribution === "space-evenly",
|
|
137
|
-
"duet-grid-mobile-left": this.mobile === "left",
|
|
138
|
-
"duet-grid-mobile-center": this.mobile === "center",
|
|
139
|
-
"duet-grid-mobile-right": this.mobile === "right",
|
|
140
|
-
"duet-grid-direction-horizontal": this.direction === "horizontal",
|
|
141
|
-
"duet-grid-direction-vertical": this.direction === "vertical",
|
|
142
|
-
"duet-grid-breakpoint-small": this.breakpoint === "small",
|
|
143
|
-
"duet-grid-breakpoint-medium": this.breakpoint === "medium",
|
|
144
|
-
"duet-grid-breakpoint-x-large": this.breakpoint === "x-large",
|
|
145
|
-
} }));
|
|
146
|
-
}
|
|
147
|
-
get element() { return this; }
|
|
148
|
-
static get watchers() { return {
|
|
149
|
-
"responsive": ["updateGridItems"],
|
|
150
|
-
"breakpoint": ["updateGridItems"]
|
|
151
|
-
}; }
|
|
152
|
-
static get style() { return duetGridCss; }
|
|
153
|
-
}, [2, "duet-grid", {
|
|
154
|
-
"responsive": [4],
|
|
155
|
-
"breakpoint": [1],
|
|
156
|
-
"direction": [1],
|
|
157
|
-
"alignment": [1],
|
|
158
|
-
"distribution": [1],
|
|
159
|
-
"mobile": [1],
|
|
160
|
-
"distributeFormElement": [32]
|
|
161
|
-
}]);
|
|
162
|
-
function defineCustomElement() {
|
|
163
|
-
if (typeof customElements === "undefined") {
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
const components = ["duet-grid"];
|
|
167
|
-
components.forEach(tagName => { switch (tagName) {
|
|
168
|
-
case "duet-grid":
|
|
169
|
-
if (!customElements.get(tagName)) {
|
|
170
|
-
customElements.define(tagName, DuetGrid);
|
|
171
|
-
}
|
|
172
|
-
break;
|
|
173
|
-
} });
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
export { DuetGrid as D, defineCustomElement as d };
|