@duetds/components 10.4.0 → 10.6.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 +686 -318
- package/hydrate/index.mjs +686 -318
- package/lib/cjs/{a11y-utils-BXDHn_nL.js → a11y-utils-CgWjS7yq.js} +1 -1
- package/lib/cjs/{app-globals-Bs3-XKhd.js → app-globals-D68ciWsb.js} +1 -1
- package/lib/cjs/duet-action-button.cjs.entry.js +6 -6
- package/lib/cjs/duet-alert.cjs.entry.js +4 -4
- package/lib/cjs/duet-badge.cjs.entry.js +29 -6
- package/lib/cjs/duet-banner.cjs.entry.js +15 -16
- package/lib/cjs/duet-breadcrumb.cjs.entry.js +7 -7
- package/lib/cjs/duet-breadcrumbs.cjs.entry.js +7 -7
- package/lib/cjs/duet-button_2.cjs.entry.js +9 -9
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +13 -13
- package/lib/cjs/duet-card.cjs.entry.js +21 -10
- package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
- package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
- package/lib/cjs/duet-chip.cjs.entry.js +29 -16
- package/lib/cjs/duet-choice_2.cjs.entry.js +20 -22
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
- package/lib/cjs/duet-combobox.cjs.entry.js +6 -7
- package/lib/cjs/duet-contact-card.cjs.entry.js +17 -7
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
- package/lib/cjs/duet-date-picker.cjs.entry.js +128 -14
- package/lib/cjs/duet-divider_2.cjs.entry.js +6 -6
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +17 -17
- package/lib/cjs/duet-empty-state.cjs.entry.js +4 -4
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +3 -3
- package/lib/cjs/duet-footer.cjs.entry.js +9 -9
- package/lib/cjs/duet-grid_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-header_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-hero.cjs.entry.js +22 -21
- package/lib/cjs/duet-icon.cjs.entry.js +7 -7
- package/lib/cjs/duet-indicator.cjs.entry.js +5 -5
- package/lib/cjs/duet-input_2.cjs.entry.js +132 -23
- package/lib/cjs/duet-layout.cjs.entry.js +7 -7
- package/lib/cjs/duet-list_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-menu-bar.cjs.entry.js +6 -6
- package/lib/cjs/duet-modal.cjs.entry.js +15 -15
- package/lib/cjs/duet-multiselect.cjs.entry.js +11 -11
- package/lib/cjs/duet-nav.cjs.entry.js +3 -3
- package/lib/cjs/duet-notification_2.cjs.entry.js +10 -10
- package/lib/cjs/duet-number-input.cjs.entry.js +14 -12
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +20 -5
- package/lib/cjs/duet-pagination_2.cjs.entry.js +20 -21
- package/lib/cjs/duet-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-phone-input.cjs.entry.js +23 -6
- package/lib/cjs/duet-popup-menu_2.cjs.entry.js +10 -10
- package/lib/cjs/duet-progress.cjs.entry.js +3 -3
- package/lib/cjs/duet-promo-card.cjs.entry.js +20 -8
- package/lib/cjs/duet-radio_2.cjs.entry.js +7 -10
- package/lib/cjs/duet-range-slider.cjs.entry.js +8 -8
- package/lib/cjs/duet-scrollable_3.cjs.entry.js +18 -18
- package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
- package/lib/cjs/duet-select.cjs.entry.js +9 -9
- package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
- package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
- package/lib/cjs/duet-share-chart.cjs.entry.js +8 -8
- package/lib/cjs/duet-show-more.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
- package/lib/cjs/duet-slideout-link.cjs.entry.js +7 -7
- package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
- package/lib/cjs/duet-slideout-panel.cjs.entry.js +13 -13
- package/lib/cjs/duet-slideout.cjs.entry.js +20 -14
- package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
- package/lib/cjs/duet-step_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +7 -7
- package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
- package/lib/cjs/duet-textarea.cjs.entry.js +8 -8
- package/lib/cjs/duet-toggle.cjs.entry.js +9 -9
- package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +5 -5
- package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +7 -7
- package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
- package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
- package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
- package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +14 -12
- package/lib/cjs/duet-tooltip.cjs.entry.js +25 -8
- package/lib/cjs/duet-tray.cjs.entry.js +7 -7
- package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
- package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
- package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
- package/lib/cjs/duet.cjs.js +3 -3
- package/lib/cjs/{errorcodes.utils-W6UQ3hgy.js → errorcodes.utils-C0tQ3k6Z.js} +1 -1
- package/lib/cjs/{focus-utils-KTKpjKRi.js → focus-utils-tCoGOO7d.js} +1 -1
- package/lib/cjs/{index-C7Yvi8y8.js → index-BeiMjjVl.js} +9 -9
- package/lib/cjs/{keyboard-utils-D9UlHbik.js → keyboard-utils-DibQafwg.js} +2 -0
- package/lib/cjs/{label-DZ63Z3SI.js → label-Cu4DNShe.js} +1 -1
- package/lib/cjs/{language-utils-BsevPDrN.js → language-utils-B3NubUDr.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/picture-utils-D_HVgfq5.js +15 -0
- package/lib/cjs/{slot-utils-DIDW777s.js → slot-utils-Dny6EJ_G.js} +1 -1
- package/lib/cjs/{themeable-component-hQ83w5_A.js → themeable-component-Csdvrnsd.js} +1 -1
- package/lib/cjs/{token-utils-DY3-olMV.js → token-utils-ZISdNshf.js} +1 -1
- package/lib/cjs/{tokens.module-CTbvyezn.js → tokens.module-CGRpZaa1.js} +2 -1
- 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-badge/duet-badge.css +66 -5
- package/lib/collection/components/duet-badge/duet-badge.js +49 -2
- package/lib/collection/components/duet-banner/duet-banner.css +12 -0
- package/lib/collection/components/duet-banner/duet-banner.js +30 -5
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
- package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
- package/lib/collection/components/duet-button/duet-button.css +5 -0
- package/lib/collection/components/duet-button/duet-button.js +8 -8
- package/lib/collection/components/duet-callout/duet-callout.js +2 -2
- package/lib/collection/components/duet-caption/duet-caption.js +1 -1
- package/lib/collection/components/duet-card/duet-card.css +3 -0
- package/lib/collection/components/duet-card/duet-card.js +43 -7
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-chip/duet-chip.js +54 -21
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.js +12 -12
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +6 -8
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
- package/lib/collection/components/duet-combobox/duet-combobox.js +3 -4
- package/lib/collection/components/duet-contact-card/duet-contact-card.css +3 -0
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +38 -2
- package/lib/collection/components/duet-cookie-consent/duet-cookie-consent.js +1 -1
- package/lib/collection/components/duet-date-picker/date-picker-month.js +4 -2
- package/lib/collection/components/duet-date-picker/date-utils.js +7 -0
- package/lib/collection/components/duet-date-picker/disallowed-days.js +23 -0
- package/lib/collection/components/duet-date-picker/duet-date-picker.js +103 -10
- package/lib/collection/components/duet-date-picker/finnish-bank-holidays.js +66 -0
- package/lib/collection/components/duet-divider/duet-divider.js +2 -2
- package/lib/collection/components/duet-editable-table/duet-editable-table.js +7 -7
- package/lib/collection/components/duet-empty-state/duet-empty-state.js +5 -5
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +2 -2
- package/lib/collection/components/duet-footer/duet-footer.js +11 -11
- package/lib/collection/components/duet-grid/duet-grid.js +5 -5
- package/lib/collection/components/duet-grid-item/duet-grid-item.css +5 -0
- package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
- package/lib/collection/components/duet-header/duet-header.js +15 -15
- package/lib/collection/components/duet-heading/duet-heading.js +3 -3
- package/lib/collection/components/duet-hero/duet-hero.css +92 -14
- package/lib/collection/components/duet-hero/duet-hero.js +47 -21
- package/lib/collection/components/duet-icon/duet-icon.js +3 -3
- package/lib/collection/components/duet-indicator/duet-indicator.js +3 -3
- package/lib/collection/components/duet-input/duet-input.css +38 -3
- package/lib/collection/components/duet-input/duet-input.js +213 -27
- package/lib/collection/components/duet-label/duet-label.js +2 -2
- package/lib/collection/components/duet-layout/duet-layout.js +6 -6
- package/lib/collection/components/duet-link/duet-link.js +2 -2
- package/lib/collection/components/duet-list/duet-list.js +4 -4
- package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
- package/lib/collection/components/duet-logo/duet-logo.js +2 -2
- package/lib/collection/components/duet-menu-bar/duet-menu-bar.js +4 -4
- package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
- package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
- package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
- package/lib/collection/components/duet-modal/duet-modal.js +11 -11
- package/lib/collection/components/duet-multiselect/duet-multiselect.js +11 -11
- package/lib/collection/components/duet-nav/duet-nav.js +1 -1
- package/lib/collection/components/duet-notification/duet-notification.js +2 -2
- package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +4 -4
- package/lib/collection/components/duet-number-input/duet-number-input.js +14 -13
- package/lib/collection/components/duet-overlay/duet-overlay.js +2 -2
- package/lib/collection/components/duet-page-heading/duet-page-heading.css +20 -1
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +58 -2
- package/lib/collection/components/duet-pagination/duet-pagination.js +14 -15
- package/lib/collection/components/duet-panel/duet-panel.js +3 -3
- package/lib/collection/components/duet-paragraph/duet-paragraph.js +5 -5
- package/lib/collection/components/duet-phone-input/duet-phone-input.js +42 -5
- package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +1 -1
- package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +4 -4
- package/lib/collection/components/duet-promo-card/duet-promo-card.css +4 -0
- package/lib/collection/components/duet-promo-card/duet-promo-card.js +39 -2
- package/lib/collection/components/duet-radio/duet-radio.js +6 -9
- package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
- package/lib/collection/components/duet-range-slider/duet-range-slider.js +4 -4
- package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +3 -3
- package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
- package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
- package/lib/collection/components/duet-select/duet-select.js +10 -10
- package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
- package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
- package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
- package/lib/collection/components/duet-show-more/duet-show-more.js +3 -3
- package/lib/collection/components/duet-slideout/duet-slideout.js +12 -6
- package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
- package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
- package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
- package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
- package/lib/collection/components/duet-spacer/duet-spacer.js +3 -3
- package/lib/collection/components/duet-spinner/duet-spinner.js +2 -2
- package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
- package/lib/collection/components/duet-step/duet-step.js +4 -4
- package/lib/collection/components/duet-stepper/duet-stepper.js +2 -2
- package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
- package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
- package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
- package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
- package/lib/collection/components/duet-tab/duet-tab.js +2 -2
- package/lib/collection/components/duet-tab-group/duet-tab-group.js +9 -9
- package/lib/collection/components/duet-table/duet-table-styles.js +5 -5
- package/lib/collection/components/duet-table/duet-table.js +2 -2
- package/lib/collection/components/duet-textarea/duet-textarea.js +7 -7
- package/lib/collection/components/duet-toggle/duet-toggle.js +4 -4
- package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
- package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
- package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
- package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
- package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +18 -4
- package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +25 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.css +1 -1
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +48 -5
- package/lib/collection/components/duet-tray/duet-tray.js +2 -2
- package/lib/collection/components/duet-upload/duet-upload.js +16 -16
- package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
- package/lib/collection/components/duet-upload-item/duet-upload-item.js +4 -4
- package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
- package/lib/collection/utils/keyboard-utils.js +1 -0
- package/lib/collection/utils/math.utils.js +1 -0
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/p-054c334d.entry.js +4 -0
- package/lib/duet/{p-81332db1.entry.js → p-0e10e36b.entry.js} +1 -1
- package/lib/duet/{p-428db44b.entry.js → p-12d7fdf6.entry.js} +1 -1
- package/lib/duet/{p-494755d0.entry.js → p-1579bdf5.entry.js} +1 -1
- package/lib/duet/{p-e8bd6dab.entry.js → p-174935bc.entry.js} +1 -1
- package/lib/duet/p-1d7a9425.entry.js +4 -0
- package/lib/duet/{p-2e413951.entry.js → p-20066df8.entry.js} +1 -1
- package/lib/duet/{p-6988c81c.entry.js → p-20c8226c.entry.js} +1 -1
- package/lib/duet/{p-1ee400e7.entry.js → p-210bc161.entry.js} +1 -1
- package/lib/duet/{p-fea479fd.entry.js → p-244bfbf9.entry.js} +1 -1
- package/lib/duet/{p-adecab91.entry.js → p-264688ae.entry.js} +1 -1
- package/lib/duet/{p-1dcbbd67.entry.js → p-2bf78fe4.entry.js} +1 -1
- package/lib/duet/{p-1bdef0e0.entry.js → p-2e44c6b8.entry.js} +1 -1
- package/lib/duet/{p-3c26d300.entry.js → p-304a9a55.entry.js} +1 -1
- package/lib/duet/{p-a63327c3.entry.js → p-30d8a1e4.entry.js} +1 -1
- package/lib/duet/p-3445529c.entry.js +4 -0
- package/lib/duet/{p-1666aeaf.entry.js → p-3533d6ee.entry.js} +1 -1
- package/lib/duet/{p-87bb797c.entry.js → p-374b48f6.entry.js} +1 -1
- package/lib/duet/{p-bcced6eb.entry.js → p-3b9d7f6a.entry.js} +1 -1
- package/lib/duet/{p-dc87f3f4.entry.js → p-3def9480.entry.js} +1 -1
- package/lib/duet/p-3fbe466a.entry.js +4 -0
- package/lib/duet/{p-12e4e9b6.entry.js → p-407d4e5a.entry.js} +1 -1
- package/lib/duet/p-41230630.entry.js +4 -0
- package/lib/duet/p-44e53564.entry.js +4 -0
- package/lib/duet/p-46287d85.entry.js +4 -0
- package/lib/duet/p-48e77341.entry.js +4 -0
- package/lib/duet/{p-fbce84d5.entry.js → p-4a041c60.entry.js} +1 -1
- package/lib/duet/p-4a251661.entry.js +4 -0
- package/lib/duet/p-4a4e5bb5.entry.js +4 -0
- package/lib/duet/{p-184d53a7.entry.js → p-4acdc586.entry.js} +1 -1
- package/lib/duet/{p-afd7d87a.entry.js → p-4b07ce36.entry.js} +1 -1
- package/lib/duet/{p-c71f6942.entry.js → p-4cee693b.entry.js} +1 -1
- package/lib/duet/{p-01f3e30c.entry.js → p-4e1c2676.entry.js} +1 -1
- package/lib/duet/{p-d181c624.entry.js → p-4e5532c8.entry.js} +1 -1
- package/lib/duet/{p-3bd45b5b.entry.js → p-512d18c8.entry.js} +1 -1
- package/lib/duet/p-555e0c78.entry.js +4 -0
- package/lib/duet/{p-13b7f4e0.entry.js → p-5b322a86.entry.js} +1 -1
- package/lib/duet/p-5f72134e.entry.js +4 -0
- package/lib/duet/{p-f210e405.entry.js → p-61abccd4.entry.js} +1 -1
- package/lib/duet/p-6a11ba26.entry.js +4 -0
- package/lib/duet/p-6bd78205.entry.js +4 -0
- package/lib/duet/p-6c239923.entry.js +4 -0
- package/lib/duet/{p-7a5066b8.entry.js → p-6ce82324.entry.js} +1 -1
- package/lib/duet/{p-526fa31c.entry.js → p-6d1d1199.entry.js} +1 -1
- package/lib/duet/p-81c5d3e3.entry.js +4 -0
- package/lib/duet/{p-f652a9c7.entry.js → p-829bccb7.entry.js} +1 -1
- package/lib/duet/p-83dcbb64.entry.js +4 -0
- package/lib/duet/{p-a4a1b8e3.entry.js → p-84f8bee8.entry.js} +1 -1
- package/lib/duet/{p-07c4b435.entry.js → p-8927ccc1.entry.js} +1 -1
- package/lib/duet/{p-2d43de54.entry.js → p-8bdcfd1f.entry.js} +1 -1
- package/lib/duet/{p-b64b3e2f.entry.js → p-8fbcea55.entry.js} +1 -1
- package/lib/duet/{p-84420fbf.entry.js → p-914ee7ac.entry.js} +1 -1
- package/lib/duet/{p-7a668cee.entry.js → p-95bb2a8d.entry.js} +1 -1
- package/lib/duet/{p-4c5a8ed3.entry.js → p-985213bb.entry.js} +1 -1
- package/lib/duet/{p-d2c91ed0.entry.js → p-9889218e.entry.js} +1 -1
- package/lib/duet/{p-c1d4542d.entry.js → p-9b2731b9.entry.js} +1 -1
- package/lib/duet/{p-46300680.entry.js → p-9b448008.entry.js} +1 -1
- package/lib/duet/p-9c41f1d5.entry.js +4 -0
- package/lib/duet/p-BDgGHTHh.js +4 -0
- package/lib/duet/p-BZev46O8.js +4 -0
- package/lib/duet/p-BaefVzkx.js +4 -0
- package/lib/duet/p-CcoGR9T9.js +4 -0
- package/lib/duet/{p-BW3SZS4F.js → p-CyfEm8iD.js} +1 -1
- package/lib/duet/p-D3450NfA.js +5 -0
- package/lib/duet/{p-DWIjWGAD.js → p-D9N9LBeD.js} +1 -1
- package/lib/duet/{p-2HU78SJ-.js → p-DI7IXBXp.js} +1 -1
- package/lib/duet/{p-D2ly4TZR.js → p-DYmL1tSl.js} +1 -1
- package/lib/duet/p-Dk60lC7n.js +4 -0
- package/lib/duet/p-JFwTD5kM.js +4 -0
- package/lib/duet/{p-D2EBd3cT.js → p-KbNgo0QF.js} +1 -1
- package/lib/duet/p-a01f3141.entry.js +4 -0
- package/lib/duet/p-a49b5d93.entry.js +4 -0
- package/lib/duet/p-a6dbe893.entry.js +4 -0
- package/lib/duet/{p-a690a165.entry.js → p-aa1256f9.entry.js} +1 -1
- package/lib/duet/{p-9d8027aa.entry.js → p-aa7e4c81.entry.js} +1 -1
- package/lib/duet/{p-d2c04a7e.entry.js → p-ac4fc44c.entry.js} +1 -1
- package/lib/duet/{p-376f9d06.entry.js → p-ae382e2e.entry.js} +1 -1
- package/lib/duet/p-bc41d13d.entry.js +4 -0
- package/lib/duet/{p-5dde8fbb.entry.js → p-c54ecb23.entry.js} +1 -1
- package/lib/duet/{p-5ffc4081.entry.js → p-d72dee5d.entry.js} +1 -1
- package/lib/duet/{p-2168e431.entry.js → p-d7abb7fa.entry.js} +1 -1
- package/lib/duet/{p-3648404d.entry.js → p-dbb9e1d4.entry.js} +1 -1
- package/lib/duet/{p-b3ec9b98.entry.js → p-e40d9c21.entry.js} +1 -1
- package/lib/duet/p-e43df9c2.entry.js +4 -0
- package/lib/duet/{p-14d4a45a.entry.js → p-e442943d.entry.js} +1 -1
- package/lib/duet/p-eb7bc989.entry.js +4 -0
- package/lib/duet/{p-3361387d.entry.js → p-ec1d2e0a.entry.js} +1 -1
- package/lib/duet/p-edcdf0b7.entry.js +4 -0
- package/lib/duet/{p-d0a54e6d.entry.js → p-ee369233.entry.js} +1 -1
- package/lib/duet/{p-816caa58.entry.js → p-f297f8f2.entry.js} +1 -1
- package/lib/duet/{p-0453edd0.entry.js → p-f30c3cfe.entry.js} +1 -1
- package/lib/duet/{p-0395eb34.entry.js → p-f4538e9d.entry.js} +1 -1
- package/lib/duet/{p-1ed82a27.entry.js → p-f4de7ac0.entry.js} +1 -1
- package/lib/duet/{p-4d39941c.entry.js → p-f8d640ba.entry.js} +1 -1
- package/lib/duet/{p-61b6962a.entry.js → p-f9db8670.entry.js} +1 -1
- package/lib/duet/p-fc1a18f8.entry.js +4 -0
- package/lib/duet/{p-dfd55180.entry.js → p-fc2be136.entry.js} +1 -1
- package/lib/duet/p-fdc4a97c.entry.js +4 -0
- package/lib/duet/p-kkZE1C6Z.js +4 -0
- package/lib/esm/{a11y-utils-sgAajRY0.js → a11y-utils--wwGTL0T.js} +1 -1
- package/lib/esm/{app-globals-NNQmI_gc.js → app-globals-Diuuep9d.js} +1 -1
- package/lib/esm/duet-action-button.entry.js +6 -6
- package/lib/esm/duet-alert.entry.js +4 -4
- package/lib/esm/duet-badge.entry.js +29 -6
- package/lib/esm/duet-banner.entry.js +15 -16
- package/lib/esm/duet-breadcrumb.entry.js +7 -7
- package/lib/esm/duet-breadcrumbs.entry.js +7 -7
- package/lib/esm/duet-button_2.entry.js +9 -9
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +13 -13
- package/lib/esm/duet-card.entry.js +22 -11
- package/lib/esm/duet-checkbox.entry.js +3 -3
- package/lib/esm/duet-checkmark.entry.js +4 -4
- package/lib/esm/duet-chip.entry.js +29 -16
- package/lib/esm/duet-choice_2.entry.js +20 -22
- package/lib/esm/duet-collapsible.entry.js +4 -4
- package/lib/esm/duet-combobox.entry.js +6 -7
- package/lib/esm/duet-contact-card.entry.js +17 -7
- package/lib/esm/duet-cookie-consent.entry.js +3 -3
- package/lib/esm/duet-date-picker.entry.js +128 -14
- package/lib/esm/duet-divider_2.entry.js +6 -6
- package/lib/esm/duet-editable-table_3.entry.js +17 -17
- package/lib/esm/duet-empty-state.entry.js +4 -4
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +3 -3
- package/lib/esm/duet-footer.entry.js +9 -9
- package/lib/esm/duet-grid_2.entry.js +7 -7
- package/lib/esm/duet-header_2.entry.js +7 -7
- package/lib/esm/duet-hero.entry.js +22 -21
- package/lib/esm/duet-icon.entry.js +7 -7
- package/lib/esm/duet-indicator.entry.js +5 -5
- package/lib/esm/duet-input_2.entry.js +132 -23
- package/lib/esm/duet-layout.entry.js +7 -7
- package/lib/esm/duet-list_2.entry.js +5 -5
- package/lib/esm/duet-menu-bar-button.entry.js +4 -4
- package/lib/esm/duet-menu-bar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-menu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-menu-bar-item.entry.js +7 -7
- package/lib/esm/duet-menu-bar-link.entry.js +4 -4
- package/lib/esm/duet-menu-bar.entry.js +6 -6
- package/lib/esm/duet-modal.entry.js +15 -15
- package/lib/esm/duet-multiselect.entry.js +11 -11
- package/lib/esm/duet-nav.entry.js +3 -3
- package/lib/esm/duet-notification_2.entry.js +10 -10
- package/lib/esm/duet-number-input.entry.js +14 -12
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +20 -5
- package/lib/esm/duet-pagination_2.entry.js +20 -21
- package/lib/esm/duet-panel.entry.js +4 -4
- package/lib/esm/duet-phone-input.entry.js +23 -6
- package/lib/esm/duet-popup-menu_2.entry.js +10 -10
- package/lib/esm/duet-progress.entry.js +3 -3
- package/lib/esm/duet-promo-card.entry.js +20 -8
- package/lib/esm/duet-radio_2.entry.js +7 -10
- package/lib/esm/duet-range-slider.entry.js +8 -8
- package/lib/esm/duet-scrollable_3.entry.js +18 -18
- package/lib/esm/duet-section-layout.entry.js +4 -4
- package/lib/esm/duet-select.entry.js +9 -9
- package/lib/esm/duet-shaped-image.entry.js +4 -4
- package/lib/esm/duet-share-chart-item.entry.js +2 -2
- package/lib/esm/duet-share-chart.entry.js +8 -8
- package/lib/esm/duet-show-more.entry.js +6 -6
- package/lib/esm/duet-slideout-lang.entry.js +4 -4
- package/lib/esm/duet-slideout-link.entry.js +7 -7
- package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
- package/lib/esm/duet-slideout-panel.entry.js +13 -13
- package/lib/esm/duet-slideout.entry.js +20 -14
- package/lib/esm/duet-status-icon.entry.js +3 -3
- package/lib/esm/duet-step_2.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-submenu-bar-dropdown.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-item.entry.js +7 -7
- package/lib/esm/duet-submenu-bar-link.entry.js +4 -4
- package/lib/esm/duet-submenu-bar.entry.js +7 -7
- package/lib/esm/duet-textarea.entry.js +8 -8
- package/lib/esm/duet-toggle.entry.js +9 -9
- package/lib/esm/duet-toolbar-dropdown-link.entry.js +5 -5
- package/lib/esm/duet-toolbar-dropdown.entry.js +7 -7
- package/lib/esm/duet-toolbar-item.entry.js +8 -8
- package/lib/esm/duet-toolbar-link.entry.js +4 -4
- package/lib/esm/duet-toolbar.entry.js +4 -4
- package/lib/esm/duet-tooltip-button_2.entry.js +14 -12
- package/lib/esm/duet-tooltip.entry.js +26 -9
- package/lib/esm/duet-tray.entry.js +7 -7
- package/lib/esm/duet-upload-aria-status.entry.js +2 -2
- package/lib/esm/duet-upload-item.entry.js +6 -6
- package/lib/esm/duet-visually-hidden.entry.js +2 -2
- package/lib/esm/duet.js +4 -4
- package/lib/esm/{errorcodes.utils-CqW0-HM8.js → errorcodes.utils-S_WrUPeV.js} +1 -1
- package/lib/esm/{focus-utils-Dokkd7xz.js → focus-utils-C4oaajGr.js} +1 -1
- package/lib/esm/{index-Cwhi6_oZ.js → index-D3450NfA.js} +9 -9
- package/lib/esm/{keyboard-utils-Db8rvjPI.js → keyboard-utils-BaefVzkx.js} +2 -1
- package/lib/esm/{label-CyQlly6Z.js → label-C1HF2o4Y.js} +1 -1
- package/lib/esm/{language-utils-LZh-sc2s.js → language-utils-D4WVl8Ph.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/picture-utils-MSeJTkDk.js +13 -0
- package/lib/esm/{slot-utils-CEZnAp61.js → slot-utils-Dxcjtmp3.js} +1 -1
- package/lib/esm/{themeable-component-D_FVcjsD.js → themeable-component-QHdUfcat.js} +1 -1
- package/lib/esm/{token-utils-B0KAgyj_.js → token-utils-BILzD7LX.js} +1 -1
- package/lib/esm/{tokens.module-DEzE2U5T.js → tokens.module-kkZE1C6Z.js} +1 -1
- package/lib/types/components/duet-badge/duet-badge.d.ts +14 -0
- package/lib/types/components/duet-banner/duet-banner.d.ts +5 -1
- package/lib/types/components/duet-button/duet-button.d.ts +1 -1
- package/lib/types/components/duet-card/duet-card.d.ts +5 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +16 -9
- package/lib/types/components/duet-contact-card/duet-contact-card.d.ts +5 -0
- package/lib/types/components/duet-date-picker/date-picker-month.d.ts +3 -0
- package/lib/types/components/duet-date-picker/date-utils.d.ts +4 -0
- package/lib/types/components/duet-date-picker/disallowed-days.d.ts +9 -0
- package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +14 -0
- package/lib/types/components/duet-date-picker/finnish-bank-holidays.d.ts +11 -0
- package/lib/types/components/duet-hero/duet-hero.d.ts +5 -0
- package/lib/types/components/duet-input/duet-input.d.ts +42 -3
- package/lib/types/components/duet-number-input/duet-number-input.d.ts +2 -1
- package/lib/types/components/duet-page-heading/duet-page-heading.d.ts +10 -0
- package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +7 -0
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +6 -0
- package/lib/types/components/duet-radio/duet-radio.d.ts +0 -1
- package/lib/types/components/duet-tooltip/duet-tooltip-button.d.ts +1 -0
- package/lib/types/components/duet-tooltip/duet-tooltip.d.ts +6 -0
- package/lib/types/components.d.ts +183 -20
- package/lib/types/utils/keyboard-utils.d.ts +1 -0
- package/lib/types/utils/math.utils.d.ts +1 -0
- package/package.json +5 -5
- package/lib/duet/p--fmK3qPb.js +0 -4
- package/lib/duet/p-07aa40df.entry.js +0 -4
- package/lib/duet/p-0eb0e582.entry.js +0 -4
- package/lib/duet/p-104ddbf2.entry.js +0 -4
- package/lib/duet/p-1705b6cf.entry.js +0 -4
- package/lib/duet/p-4420973e.entry.js +0 -4
- package/lib/duet/p-455e8ebe.entry.js +0 -4
- package/lib/duet/p-4f7b0699.entry.js +0 -4
- package/lib/duet/p-58496fb1.entry.js +0 -4
- package/lib/duet/p-58a70b3d.entry.js +0 -4
- package/lib/duet/p-592a6542.entry.js +0 -4
- package/lib/duet/p-5c8c691b.entry.js +0 -4
- package/lib/duet/p-73ed0008.entry.js +0 -4
- package/lib/duet/p-7a2ca711.entry.js +0 -4
- package/lib/duet/p-7e640c8e.entry.js +0 -4
- package/lib/duet/p-7eaa1fb5.entry.js +0 -4
- package/lib/duet/p-870dc953.entry.js +0 -4
- package/lib/duet/p-Chf7ZRmW.js +0 -4
- package/lib/duet/p-CtBx3Trd.js +0 -4
- package/lib/duet/p-Cwhi6_oZ.js +0 -5
- package/lib/duet/p-DCDM41Ef.js +0 -4
- package/lib/duet/p-DEzE2U5T.js +0 -4
- package/lib/duet/p-Db8rvjPI.js +0 -4
- package/lib/duet/p-a4db8c29.entry.js +0 -4
- package/lib/duet/p-a7bb038a.entry.js +0 -4
- package/lib/duet/p-af9c8169.entry.js +0 -4
- package/lib/duet/p-c7851c15.entry.js +0 -4
- package/lib/duet/p-cbd1069e.entry.js +0 -4
- package/lib/duet/p-cd4f52a9.entry.js +0 -4
- package/lib/duet/p-d3dac8af.entry.js +0 -4
- package/lib/duet/p-e9ed96cf.entry.js +0 -4
- package/lib/duet/p-eab349f2.entry.js +0 -4
- package/lib/duet/p-eebf150c.entry.js +0 -4
- package/lib/duet/p-f600e215.entry.js +0 -4
|
@@ -335,6 +335,11 @@ export namespace Components {
|
|
|
335
335
|
* @default ""
|
|
336
336
|
*/
|
|
337
337
|
"theme": DuetTheme;
|
|
338
|
+
/**
|
|
339
|
+
* Giving tooltip text makes the badge act as tooltip button. The badge's text content will be used as the tooltips accessible-about-label - if you want other accessible label, use the tooltip slot instead of this attribute.
|
|
340
|
+
* @default ""
|
|
341
|
+
*/
|
|
342
|
+
"tooltip": string;
|
|
338
343
|
/**
|
|
339
344
|
* Style variation of the badge.
|
|
340
345
|
* @default "default"
|
|
@@ -376,6 +381,11 @@ export namespace Components {
|
|
|
376
381
|
* Alt attribute text for the image. If not provided, image is assigned presentation role.
|
|
377
382
|
*/
|
|
378
383
|
"imageAlt": string;
|
|
384
|
+
/**
|
|
385
|
+
* Will the image cover the whole image area (possibly getting cropped), or will it be contained without any cropping (possibly not filling the whole area).
|
|
386
|
+
* @default "cover"
|
|
387
|
+
*/
|
|
388
|
+
"imageFit": "cover" | "contain";
|
|
379
389
|
/**
|
|
380
390
|
* Controls the margin of the component.
|
|
381
391
|
* @default "auto"
|
|
@@ -387,7 +397,7 @@ export namespace Components {
|
|
|
387
397
|
*/
|
|
388
398
|
"size": bannerSize;
|
|
389
399
|
/**
|
|
390
|
-
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
400
|
+
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
391
401
|
*/
|
|
392
402
|
"sources": DuetSource[] | string;
|
|
393
403
|
/**
|
|
@@ -539,7 +549,7 @@ export namespace Components {
|
|
|
539
549
|
*/
|
|
540
550
|
"external": boolean;
|
|
541
551
|
/**
|
|
542
|
-
* Keep the button fixed width even on mobile viewports.
|
|
552
|
+
* Keep the button fixed width even on mobile viewports. Fixed width is always used for variation plain.
|
|
543
553
|
* @default false
|
|
544
554
|
*/
|
|
545
555
|
"fixed": boolean;
|
|
@@ -749,6 +759,10 @@ export namespace Components {
|
|
|
749
759
|
* @default undefined
|
|
750
760
|
*/
|
|
751
761
|
"shadowBreakpoint"?: DuetBreakpoints;
|
|
762
|
+
/**
|
|
763
|
+
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
764
|
+
*/
|
|
765
|
+
"sources": DuetSource[] | string;
|
|
752
766
|
/**
|
|
753
767
|
* Theme of the card.
|
|
754
768
|
* @default ""
|
|
@@ -899,12 +913,17 @@ export namespace Components {
|
|
|
899
913
|
"type": DuetChoiceType;
|
|
900
914
|
}
|
|
901
915
|
interface DuetChip {
|
|
916
|
+
/**
|
|
917
|
+
* Indicates the id or a string of space seperated ids of a component(s) that describes the input.
|
|
918
|
+
* @default ""
|
|
919
|
+
*/
|
|
920
|
+
"accessibleDescribedBy": string;
|
|
902
921
|
/**
|
|
903
922
|
* If the component expands or collapses adjacent content, then use this property to add the aria-expanded attribute to the opening element. Set the value to convey the current expanded (true) or collapsed (false) state of the content.
|
|
904
923
|
*/
|
|
905
924
|
"accessibleExpanded": boolean;
|
|
906
925
|
/**
|
|
907
|
-
* Adds accessible label for the chip that is
|
|
926
|
+
* Adds accessible label for the chip that is used by screen readers and other assistive technology. Has effect only with "button" variation as for the other variations the accessible label is automatically generated.
|
|
908
927
|
*/
|
|
909
928
|
"accessibleLabel": string;
|
|
910
929
|
/**
|
|
@@ -936,7 +955,7 @@ export namespace Components {
|
|
|
936
955
|
*/
|
|
937
956
|
"name": string;
|
|
938
957
|
/**
|
|
939
|
-
* Id of the DuetPopupMenu that is controlled by the chip.
|
|
958
|
+
* Id of the DuetPopupMenu that is controlled by the chip. Works only with "filter" variation.
|
|
940
959
|
*/
|
|
941
960
|
"popup": string;
|
|
942
961
|
/**
|
|
@@ -968,7 +987,7 @@ export namespace Components {
|
|
|
968
987
|
*/
|
|
969
988
|
"value": string;
|
|
970
989
|
/**
|
|
971
|
-
* Variation of the chip. Button should be used to present a list of actions or suggestions. It behaves like a button and must be used together with a click handler. Filter acts like a checkbox, it can be toggled on or off, and it should be used with a value. Input represents items input by the user, and the chip can be removed with a click. Radio behaves like a radio button, it can be toggled on or off, and it should be used with a value and name.
|
|
990
|
+
* Variation of the chip. Button should be used to present a list of actions or suggestions. It behaves like a button and must be used together with a click handler. Filter acts like a checkbox, it can be toggled on or off, and it should be used with a value. Filter can also be used with a popup-menu - then the initial text describes the type of category of filtering, and the selection from the popup-menu sets the filter value. Input represents items input by the user, and the chip can be removed with a click. Radio behaves like a radio button, it can be toggled on or off in a group, and it should be used with a value and name.
|
|
972
991
|
* @default "button"
|
|
973
992
|
*/
|
|
974
993
|
"variation": DuetChipVariation;
|
|
@@ -1380,6 +1399,10 @@ export namespace Components {
|
|
|
1380
1399
|
* Phone.
|
|
1381
1400
|
*/
|
|
1382
1401
|
"phone": string;
|
|
1402
|
+
/**
|
|
1403
|
+
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
1404
|
+
*/
|
|
1405
|
+
"sources": DuetSource[] | string;
|
|
1383
1406
|
/**
|
|
1384
1407
|
* Theme.
|
|
1385
1408
|
* @default ""
|
|
@@ -1439,6 +1462,21 @@ export namespace Components {
|
|
|
1439
1462
|
* @default false
|
|
1440
1463
|
*/
|
|
1441
1464
|
"disabled": boolean;
|
|
1465
|
+
/**
|
|
1466
|
+
* Disallow selecting Finnish bank holidays, including Easter-based dates and Midsummer Eve.
|
|
1467
|
+
* @default false
|
|
1468
|
+
*/
|
|
1469
|
+
"disallowBankHolidays": boolean;
|
|
1470
|
+
/**
|
|
1471
|
+
* Disallow selecting Saturdays and Sundays.
|
|
1472
|
+
* @default false
|
|
1473
|
+
*/
|
|
1474
|
+
"disallowWeekends": boolean;
|
|
1475
|
+
/**
|
|
1476
|
+
* Disallow selecting specific dates. Accepts an array of ISO-8601 (YYYY-MM-DD) dates, or a comma-separated string of the same when set as an HTML attribute.
|
|
1477
|
+
* @default []
|
|
1478
|
+
*/
|
|
1479
|
+
"disallowedDates": string | string[];
|
|
1442
1480
|
/**
|
|
1443
1481
|
* If form input field has a placeholder text, and user types anything (causing the text to dissapear), settings this to true will "echo" it into the caption slot - this option will be false by default for the next few versions, but will eventually be true by default (scheduled for 4.30.0)
|
|
1444
1482
|
* @default false
|
|
@@ -1547,7 +1585,7 @@ export namespace Components {
|
|
|
1547
1585
|
*/
|
|
1548
1586
|
"tooltipDirection": DuetTooltipDirection;
|
|
1549
1587
|
/**
|
|
1550
|
-
* This offers information relating to the current validity of the component. It follow as closely as possible the behaviour of the native date input. Useful properties to inspect are badInput, valueMissing, rangeOverflow, rangeUnderflow.
|
|
1588
|
+
* This offers information relating to the current validity of the component. It follow as closely as possible the behaviour of the native date input. Useful properties to inspect are badInput, valueMissing, rangeOverflow, rangeUnderflow. For disallowed dates property customError is set true.
|
|
1551
1589
|
* @readonly
|
|
1552
1590
|
*/
|
|
1553
1591
|
"validity": ValidityState;
|
|
@@ -2177,6 +2215,10 @@ export namespace Components {
|
|
|
2177
2215
|
* @default ""
|
|
2178
2216
|
*/
|
|
2179
2217
|
"preHeading": string;
|
|
2218
|
+
/**
|
|
2219
|
+
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
2220
|
+
*/
|
|
2221
|
+
"sources": DuetSource[] | string;
|
|
2180
2222
|
/**
|
|
2181
2223
|
* The level of the heading. Only usable with campaign, section variations.
|
|
2182
2224
|
* @default "h2"
|
|
@@ -2283,7 +2325,7 @@ export namespace Components {
|
|
|
2283
2325
|
*/
|
|
2284
2326
|
"accessibleActiveDescendant": string;
|
|
2285
2327
|
/**
|
|
2286
|
-
* Indicates what
|
|
2328
|
+
* Indicates in what mode user input completion suggestions are provided. Valid values are: "none", "inline", "list", "both"
|
|
2287
2329
|
*/
|
|
2288
2330
|
"accessibleAutocomplete": string;
|
|
2289
2331
|
/**
|
|
@@ -2338,7 +2380,7 @@ export namespace Components {
|
|
|
2338
2380
|
*/
|
|
2339
2381
|
"addChip": (chip: HTMLDuetChipElement) => Promise<void>;
|
|
2340
2382
|
/**
|
|
2341
|
-
*
|
|
2383
|
+
* Set the type of automatic completion by the browser. If possible use the standard tokens like "name", "given-name", "family-name", "postal-code", "street-address" etc. The component adds automatically "tel" and "email". If you must disable autocomplete use "off" (but avoid disabling unless absolutely necessary).
|
|
2342
2384
|
* @default "on"
|
|
2343
2385
|
*/
|
|
2344
2386
|
"autoComplete": string;
|
|
@@ -2398,6 +2440,14 @@ export namespace Components {
|
|
|
2398
2440
|
* @default false
|
|
2399
2441
|
*/
|
|
2400
2442
|
"expand": boolean;
|
|
2443
|
+
/**
|
|
2444
|
+
* Text to show before the start (left) of the input's editable area. Also used in accessible labelling.
|
|
2445
|
+
*/
|
|
2446
|
+
"fieldPrefix": string;
|
|
2447
|
+
/**
|
|
2448
|
+
* Text to show after the end (right) of the input's editable area. Also used in accessible labelling.
|
|
2449
|
+
*/
|
|
2450
|
+
"fieldSuffix": string;
|
|
2401
2451
|
/**
|
|
2402
2452
|
* Get all chips from the input.
|
|
2403
2453
|
*/
|
|
@@ -2447,10 +2497,18 @@ export namespace Components {
|
|
|
2447
2497
|
* @default "auto"
|
|
2448
2498
|
*/
|
|
2449
2499
|
"margin": DuetMargin;
|
|
2500
|
+
/**
|
|
2501
|
+
* When max is set and getting validity, the value of the input is interpreted as a number - possible comma as decimal seprator changed to dot and the value then parsed as float - and compared to max and validity set accordingly. This simulates the behavior of max attribute of input[type=number].
|
|
2502
|
+
*/
|
|
2503
|
+
"max": number;
|
|
2450
2504
|
/**
|
|
2451
2505
|
* Use maxlength to specify the maximum length of the value that can be entered.
|
|
2452
2506
|
*/
|
|
2453
2507
|
"maxlength": number;
|
|
2508
|
+
/**
|
|
2509
|
+
* When min is set and getting validity, the value of the input is interpreted as a number - possible comma as decimal seprator changed to dot and the value then parsed as float - and compared to min and validity set accordingly. This simulates the behavior of min attribute of input[type=number].
|
|
2510
|
+
*/
|
|
2511
|
+
"min": number;
|
|
2454
2512
|
/**
|
|
2455
2513
|
* Use minlength to specify the minimum length of the value that can be entered.
|
|
2456
2514
|
*/
|
|
@@ -2464,7 +2522,7 @@ export namespace Components {
|
|
|
2464
2522
|
*/
|
|
2465
2523
|
"nativeInputElement": HTMLElement;
|
|
2466
2524
|
/**
|
|
2467
|
-
* Enable numeric keyboard for the input.
|
|
2525
|
+
* Enable numeric keyboard for the input. Note that on iOS the numeric keyboard does not contain minus.
|
|
2468
2526
|
* @default false
|
|
2469
2527
|
*/
|
|
2470
2528
|
"numericKeyboard": boolean;
|
|
@@ -3541,7 +3599,7 @@ export namespace Components {
|
|
|
3541
3599
|
*/
|
|
3542
3600
|
"setFocus": (options?: FocusOptions) => Promise<void>;
|
|
3543
3601
|
/**
|
|
3544
|
-
* Step amount.
|
|
3602
|
+
* Step amount. Note that decimal values as step (e.g. 0.01) may produce unexpected results and thus are strongly discouraged (but for backwards compatibility still accepted).
|
|
3545
3603
|
* @default 5000
|
|
3546
3604
|
*/
|
|
3547
3605
|
"step": number;
|
|
@@ -3613,6 +3671,11 @@ export namespace Components {
|
|
|
3613
3671
|
* @default ""
|
|
3614
3672
|
*/
|
|
3615
3673
|
"icon": DuetIconName;
|
|
3674
|
+
/**
|
|
3675
|
+
* With LähiTapiola theme the icon can have secondary background instead of default. This has no effect on Turva theme.
|
|
3676
|
+
* @default "default"
|
|
3677
|
+
*/
|
|
3678
|
+
"iconBackground": "default" | "secondary";
|
|
3616
3679
|
/**
|
|
3617
3680
|
* Layout. Values narrow and fluid are deprecated.
|
|
3618
3681
|
* @default "narrow"
|
|
@@ -3626,6 +3689,11 @@ export namespace Components {
|
|
|
3626
3689
|
* Total steps amount in progress indicator. To render a progress indicator both progressTotalSteps and progressCurrentStep must be given
|
|
3627
3690
|
*/
|
|
3628
3691
|
"progressTotalSteps": number;
|
|
3692
|
+
/**
|
|
3693
|
+
* LähiTapiola theme includes a brand shape at the top by default. Set to "none" to omit it. Has no effect for Turva.
|
|
3694
|
+
* @default "auto"
|
|
3695
|
+
*/
|
|
3696
|
+
"shape": "auto" | "none";
|
|
3629
3697
|
/**
|
|
3630
3698
|
* Theme of the hero area.
|
|
3631
3699
|
* @default ""
|
|
@@ -3803,6 +3871,11 @@ export namespace Components {
|
|
|
3803
3871
|
* @default undefined
|
|
3804
3872
|
*/
|
|
3805
3873
|
"accessibleLabelledBy": string;
|
|
3874
|
+
/**
|
|
3875
|
+
* Set the type of automatic completion by the browser. Must include "tel", may also include token "home", "work" or "mobile". If you must disable automatic completion (not recommended) use "off"
|
|
3876
|
+
* @default "tel"
|
|
3877
|
+
*/
|
|
3878
|
+
"autoComplete": string;
|
|
3806
3879
|
/**
|
|
3807
3880
|
* Caption (underneath label) that can be set as a way of adding extra information
|
|
3808
3881
|
*/
|
|
@@ -4150,6 +4223,10 @@ export namespace Components {
|
|
|
4150
4223
|
* Sets focus on underlying a element. Available only when url attribute is used. Use this method instead of the native `focus()`.
|
|
4151
4224
|
*/
|
|
4152
4225
|
"setFocus": (options?: FocusOptions) => Promise<void>;
|
|
4226
|
+
/**
|
|
4227
|
+
* Array of sources for responsive images. Sources have the properties of <source> element. This is an experimental feature and might be changed without notice.
|
|
4228
|
+
*/
|
|
4229
|
+
"sources": DuetSource[] | string;
|
|
4153
4230
|
/**
|
|
4154
4231
|
* Text color.
|
|
4155
4232
|
* @default "secondary"
|
|
@@ -5959,6 +6036,7 @@ export namespace Components {
|
|
|
5959
6036
|
* @default false
|
|
5960
6037
|
*/
|
|
5961
6038
|
"active": boolean;
|
|
6039
|
+
"badgeElement": HTMLDuetBadgeElement;
|
|
5962
6040
|
/**
|
|
5963
6041
|
* Adjust the responsive breakpoint where tooltip starts opening towards left.
|
|
5964
6042
|
* @default "medium"
|
|
@@ -6004,6 +6082,10 @@ export namespace Components {
|
|
|
6004
6082
|
interface DuetTooltipButton {
|
|
6005
6083
|
"accessibleLabel": string;
|
|
6006
6084
|
"active": boolean;
|
|
6085
|
+
/**
|
|
6086
|
+
* @default false
|
|
6087
|
+
*/
|
|
6088
|
+
"inBadge": boolean;
|
|
6007
6089
|
/**
|
|
6008
6090
|
* @default ""
|
|
6009
6091
|
*/
|
|
@@ -8036,6 +8118,11 @@ declare namespace LocalJSX {
|
|
|
8036
8118
|
* @default ""
|
|
8037
8119
|
*/
|
|
8038
8120
|
"theme"?: DuetTheme;
|
|
8121
|
+
/**
|
|
8122
|
+
* Giving tooltip text makes the badge act as tooltip button. The badge's text content will be used as the tooltips accessible-about-label - if you want other accessible label, use the tooltip slot instead of this attribute.
|
|
8123
|
+
* @default ""
|
|
8124
|
+
*/
|
|
8125
|
+
"tooltip"?: string;
|
|
8039
8126
|
/**
|
|
8040
8127
|
* Style variation of the badge.
|
|
8041
8128
|
* @default "default"
|
|
@@ -8077,6 +8164,11 @@ declare namespace LocalJSX {
|
|
|
8077
8164
|
* Alt attribute text for the image. If not provided, image is assigned presentation role.
|
|
8078
8165
|
*/
|
|
8079
8166
|
"imageAlt"?: string;
|
|
8167
|
+
/**
|
|
8168
|
+
* Will the image cover the whole image area (possibly getting cropped), or will it be contained without any cropping (possibly not filling the whole area).
|
|
8169
|
+
* @default "cover"
|
|
8170
|
+
*/
|
|
8171
|
+
"imageFit"?: "cover" | "contain";
|
|
8080
8172
|
/**
|
|
8081
8173
|
* Controls the margin of the component.
|
|
8082
8174
|
* @default "auto"
|
|
@@ -8088,7 +8180,7 @@ declare namespace LocalJSX {
|
|
|
8088
8180
|
*/
|
|
8089
8181
|
"size"?: bannerSize;
|
|
8090
8182
|
/**
|
|
8091
|
-
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
8183
|
+
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
8092
8184
|
*/
|
|
8093
8185
|
"sources"?: DuetSource[] | string;
|
|
8094
8186
|
/**
|
|
@@ -8240,7 +8332,7 @@ declare namespace LocalJSX {
|
|
|
8240
8332
|
*/
|
|
8241
8333
|
"external"?: boolean;
|
|
8242
8334
|
/**
|
|
8243
|
-
* Keep the button fixed width even on mobile viewports.
|
|
8335
|
+
* Keep the button fixed width even on mobile viewports. Fixed width is always used for variation plain.
|
|
8244
8336
|
* @default false
|
|
8245
8337
|
*/
|
|
8246
8338
|
"fixed"?: boolean;
|
|
@@ -8454,6 +8546,10 @@ declare namespace LocalJSX {
|
|
|
8454
8546
|
* @default undefined
|
|
8455
8547
|
*/
|
|
8456
8548
|
"shadowBreakpoint"?: DuetBreakpoints;
|
|
8549
|
+
/**
|
|
8550
|
+
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
8551
|
+
*/
|
|
8552
|
+
"sources"?: DuetSource[] | string;
|
|
8457
8553
|
/**
|
|
8458
8554
|
* Theme of the card.
|
|
8459
8555
|
* @default ""
|
|
@@ -8612,12 +8708,17 @@ declare namespace LocalJSX {
|
|
|
8612
8708
|
"type"?: DuetChoiceType;
|
|
8613
8709
|
}
|
|
8614
8710
|
interface DuetChip {
|
|
8711
|
+
/**
|
|
8712
|
+
* Indicates the id or a string of space seperated ids of a component(s) that describes the input.
|
|
8713
|
+
* @default ""
|
|
8714
|
+
*/
|
|
8715
|
+
"accessibleDescribedBy"?: string;
|
|
8615
8716
|
/**
|
|
8616
8717
|
* If the component expands or collapses adjacent content, then use this property to add the aria-expanded attribute to the opening element. Set the value to convey the current expanded (true) or collapsed (false) state of the content.
|
|
8617
8718
|
*/
|
|
8618
8719
|
"accessibleExpanded"?: boolean;
|
|
8619
8720
|
/**
|
|
8620
|
-
* Adds accessible label for the chip that is
|
|
8721
|
+
* Adds accessible label for the chip that is used by screen readers and other assistive technology. Has effect only with "button" variation as for the other variations the accessible label is automatically generated.
|
|
8621
8722
|
*/
|
|
8622
8723
|
"accessibleLabel"?: string;
|
|
8623
8724
|
/**
|
|
@@ -8665,7 +8766,7 @@ declare namespace LocalJSX {
|
|
|
8665
8766
|
*/
|
|
8666
8767
|
"onDuetRemove"?: (event: DuetChipCustomEvent<DuetChipEvent>) => void;
|
|
8667
8768
|
/**
|
|
8668
|
-
* Id of the DuetPopupMenu that is controlled by the chip.
|
|
8769
|
+
* Id of the DuetPopupMenu that is controlled by the chip. Works only with "filter" variation.
|
|
8669
8770
|
*/
|
|
8670
8771
|
"popup"?: string;
|
|
8671
8772
|
/**
|
|
@@ -8683,7 +8784,7 @@ declare namespace LocalJSX {
|
|
|
8683
8784
|
*/
|
|
8684
8785
|
"value"?: string;
|
|
8685
8786
|
/**
|
|
8686
|
-
* Variation of the chip. Button should be used to present a list of actions or suggestions. It behaves like a button and must be used together with a click handler. Filter acts like a checkbox, it can be toggled on or off, and it should be used with a value. Input represents items input by the user, and the chip can be removed with a click. Radio behaves like a radio button, it can be toggled on or off, and it should be used with a value and name.
|
|
8787
|
+
* Variation of the chip. Button should be used to present a list of actions or suggestions. It behaves like a button and must be used together with a click handler. Filter acts like a checkbox, it can be toggled on or off, and it should be used with a value. Filter can also be used with a popup-menu - then the initial text describes the type of category of filtering, and the selection from the popup-menu sets the filter value. Input represents items input by the user, and the chip can be removed with a click. Radio behaves like a radio button, it can be toggled on or off in a group, and it should be used with a value and name.
|
|
8687
8788
|
* @default "button"
|
|
8688
8789
|
*/
|
|
8689
8790
|
"variation"?: DuetChipVariation;
|
|
@@ -9098,6 +9199,10 @@ declare namespace LocalJSX {
|
|
|
9098
9199
|
* Phone.
|
|
9099
9200
|
*/
|
|
9100
9201
|
"phone"?: string;
|
|
9202
|
+
/**
|
|
9203
|
+
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
9204
|
+
*/
|
|
9205
|
+
"sources"?: DuetSource[] | string;
|
|
9101
9206
|
/**
|
|
9102
9207
|
* Theme.
|
|
9103
9208
|
* @default ""
|
|
@@ -9161,6 +9266,21 @@ declare namespace LocalJSX {
|
|
|
9161
9266
|
* @default false
|
|
9162
9267
|
*/
|
|
9163
9268
|
"disabled"?: boolean;
|
|
9269
|
+
/**
|
|
9270
|
+
* Disallow selecting Finnish bank holidays, including Easter-based dates and Midsummer Eve.
|
|
9271
|
+
* @default false
|
|
9272
|
+
*/
|
|
9273
|
+
"disallowBankHolidays"?: boolean;
|
|
9274
|
+
/**
|
|
9275
|
+
* Disallow selecting Saturdays and Sundays.
|
|
9276
|
+
* @default false
|
|
9277
|
+
*/
|
|
9278
|
+
"disallowWeekends"?: boolean;
|
|
9279
|
+
/**
|
|
9280
|
+
* Disallow selecting specific dates. Accepts an array of ISO-8601 (YYYY-MM-DD) dates, or a comma-separated string of the same when set as an HTML attribute.
|
|
9281
|
+
* @default []
|
|
9282
|
+
*/
|
|
9283
|
+
"disallowedDates"?: string | string[];
|
|
9164
9284
|
/**
|
|
9165
9285
|
* If form input field has a placeholder text, and user types anything (causing the text to dissapear), settings this to true will "echo" it into the caption slot - this option will be false by default for the next few versions, but will eventually be true by default (scheduled for 4.30.0)
|
|
9166
9286
|
* @default false
|
|
@@ -9269,7 +9389,7 @@ declare namespace LocalJSX {
|
|
|
9269
9389
|
*/
|
|
9270
9390
|
"tooltipDirection"?: DuetTooltipDirection;
|
|
9271
9391
|
/**
|
|
9272
|
-
* This offers information relating to the current validity of the component. It follow as closely as possible the behaviour of the native date input. Useful properties to inspect are badInput, valueMissing, rangeOverflow, rangeUnderflow.
|
|
9392
|
+
* This offers information relating to the current validity of the component. It follow as closely as possible the behaviour of the native date input. Useful properties to inspect are badInput, valueMissing, rangeOverflow, rangeUnderflow. For disallowed dates property customError is set true.
|
|
9273
9393
|
* @readonly
|
|
9274
9394
|
*/
|
|
9275
9395
|
"validity"?: ValidityState;
|
|
@@ -9959,6 +10079,10 @@ declare namespace LocalJSX {
|
|
|
9959
10079
|
* @default ""
|
|
9960
10080
|
*/
|
|
9961
10081
|
"preHeading"?: string;
|
|
10082
|
+
/**
|
|
10083
|
+
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
10084
|
+
*/
|
|
10085
|
+
"sources"?: DuetSource[] | string;
|
|
9962
10086
|
/**
|
|
9963
10087
|
* The level of the heading. Only usable with campaign, section variations.
|
|
9964
10088
|
* @default "h2"
|
|
@@ -10057,7 +10181,7 @@ declare namespace LocalJSX {
|
|
|
10057
10181
|
*/
|
|
10058
10182
|
"accessibleActiveDescendant"?: string;
|
|
10059
10183
|
/**
|
|
10060
|
-
* Indicates what
|
|
10184
|
+
* Indicates in what mode user input completion suggestions are provided. Valid values are: "none", "inline", "list", "both"
|
|
10061
10185
|
*/
|
|
10062
10186
|
"accessibleAutocomplete"?: string;
|
|
10063
10187
|
/**
|
|
@@ -10108,7 +10232,7 @@ declare namespace LocalJSX {
|
|
|
10108
10232
|
*/
|
|
10109
10233
|
"accessiblePopup"?: string;
|
|
10110
10234
|
/**
|
|
10111
|
-
*
|
|
10235
|
+
* Set the type of automatic completion by the browser. If possible use the standard tokens like "name", "given-name", "family-name", "postal-code", "street-address" etc. The component adds automatically "tel" and "email". If you must disable autocomplete use "off" (but avoid disabling unless absolutely necessary).
|
|
10112
10236
|
* @default "on"
|
|
10113
10237
|
*/
|
|
10114
10238
|
"autoComplete"?: string;
|
|
@@ -10156,6 +10280,14 @@ declare namespace LocalJSX {
|
|
|
10156
10280
|
* @default false
|
|
10157
10281
|
*/
|
|
10158
10282
|
"expand"?: boolean;
|
|
10283
|
+
/**
|
|
10284
|
+
* Text to show before the start (left) of the input's editable area. Also used in accessible labelling.
|
|
10285
|
+
*/
|
|
10286
|
+
"fieldPrefix"?: string;
|
|
10287
|
+
/**
|
|
10288
|
+
* Text to show after the end (right) of the input's editable area. Also used in accessible labelling.
|
|
10289
|
+
*/
|
|
10290
|
+
"fieldSuffix"?: string;
|
|
10159
10291
|
/**
|
|
10160
10292
|
* Icon to display on the right side (from Duet’s icons). Example: "form-location"
|
|
10161
10293
|
*/
|
|
@@ -10197,10 +10329,18 @@ declare namespace LocalJSX {
|
|
|
10197
10329
|
* @default "auto"
|
|
10198
10330
|
*/
|
|
10199
10331
|
"margin"?: DuetMargin;
|
|
10332
|
+
/**
|
|
10333
|
+
* When max is set and getting validity, the value of the input is interpreted as a number - possible comma as decimal seprator changed to dot and the value then parsed as float - and compared to max and validity set accordingly. This simulates the behavior of max attribute of input[type=number].
|
|
10334
|
+
*/
|
|
10335
|
+
"max"?: number;
|
|
10200
10336
|
/**
|
|
10201
10337
|
* Use maxlength to specify the maximum length of the value that can be entered.
|
|
10202
10338
|
*/
|
|
10203
10339
|
"maxlength"?: number;
|
|
10340
|
+
/**
|
|
10341
|
+
* When min is set and getting validity, the value of the input is interpreted as a number - possible comma as decimal seprator changed to dot and the value then parsed as float - and compared to min and validity set accordingly. This simulates the behavior of min attribute of input[type=number].
|
|
10342
|
+
*/
|
|
10343
|
+
"min"?: number;
|
|
10204
10344
|
/**
|
|
10205
10345
|
* Use minlength to specify the minimum length of the value that can be entered.
|
|
10206
10346
|
*/
|
|
@@ -10210,7 +10350,7 @@ declare namespace LocalJSX {
|
|
|
10210
10350
|
*/
|
|
10211
10351
|
"name"?: string;
|
|
10212
10352
|
/**
|
|
10213
|
-
* Enable numeric keyboard for the input.
|
|
10353
|
+
* Enable numeric keyboard for the input. Note that on iOS the numeric keyboard does not contain minus.
|
|
10214
10354
|
* @default false
|
|
10215
10355
|
*/
|
|
10216
10356
|
"numericKeyboard"?: boolean;
|
|
@@ -11257,7 +11397,7 @@ declare namespace LocalJSX {
|
|
|
11257
11397
|
*/
|
|
11258
11398
|
"rounding"?: boolean;
|
|
11259
11399
|
/**
|
|
11260
|
-
* Step amount.
|
|
11400
|
+
* Step amount. Note that decimal values as step (e.g. 0.01) may produce unexpected results and thus are strongly discouraged (but for backwards compatibility still accepted).
|
|
11261
11401
|
* @default 5000
|
|
11262
11402
|
*/
|
|
11263
11403
|
"step"?: number;
|
|
@@ -11329,6 +11469,11 @@ declare namespace LocalJSX {
|
|
|
11329
11469
|
* @default ""
|
|
11330
11470
|
*/
|
|
11331
11471
|
"icon"?: DuetIconName;
|
|
11472
|
+
/**
|
|
11473
|
+
* With LähiTapiola theme the icon can have secondary background instead of default. This has no effect on Turva theme.
|
|
11474
|
+
* @default "default"
|
|
11475
|
+
*/
|
|
11476
|
+
"iconBackground"?: "default" | "secondary";
|
|
11332
11477
|
/**
|
|
11333
11478
|
* Layout. Values narrow and fluid are deprecated.
|
|
11334
11479
|
* @default "narrow"
|
|
@@ -11342,6 +11487,11 @@ declare namespace LocalJSX {
|
|
|
11342
11487
|
* Total steps amount in progress indicator. To render a progress indicator both progressTotalSteps and progressCurrentStep must be given
|
|
11343
11488
|
*/
|
|
11344
11489
|
"progressTotalSteps"?: number;
|
|
11490
|
+
/**
|
|
11491
|
+
* LähiTapiola theme includes a brand shape at the top by default. Set to "none" to omit it. Has no effect for Turva.
|
|
11492
|
+
* @default "auto"
|
|
11493
|
+
*/
|
|
11494
|
+
"shape"?: "auto" | "none";
|
|
11345
11495
|
/**
|
|
11346
11496
|
* Theme of the hero area.
|
|
11347
11497
|
* @default ""
|
|
@@ -11523,6 +11673,11 @@ declare namespace LocalJSX {
|
|
|
11523
11673
|
* @default undefined
|
|
11524
11674
|
*/
|
|
11525
11675
|
"accessibleLabelledBy"?: string;
|
|
11676
|
+
/**
|
|
11677
|
+
* Set the type of automatic completion by the browser. Must include "tel", may also include token "home", "work" or "mobile". If you must disable automatic completion (not recommended) use "off"
|
|
11678
|
+
* @default "tel"
|
|
11679
|
+
*/
|
|
11680
|
+
"autoComplete"?: string;
|
|
11526
11681
|
/**
|
|
11527
11682
|
* Caption (underneath label) that can be set as a way of adding extra information
|
|
11528
11683
|
*/
|
|
@@ -11861,6 +12016,10 @@ declare namespace LocalJSX {
|
|
|
11861
12016
|
* @default "auto"
|
|
11862
12017
|
*/
|
|
11863
12018
|
"margin"?: DuetMargin;
|
|
12019
|
+
/**
|
|
12020
|
+
* Array of sources for responsive images. Sources have the properties of <source> element. This is an experimental feature and might be changed without notice.
|
|
12021
|
+
*/
|
|
12022
|
+
"sources"?: DuetSource[] | string;
|
|
11864
12023
|
/**
|
|
11865
12024
|
* Text color.
|
|
11866
12025
|
* @default "secondary"
|
|
@@ -13674,6 +13833,10 @@ declare namespace LocalJSX {
|
|
|
13674
13833
|
interface DuetTooltipButton {
|
|
13675
13834
|
"accessibleLabel"?: string;
|
|
13676
13835
|
"active"?: boolean;
|
|
13836
|
+
/**
|
|
13837
|
+
* @default false
|
|
13838
|
+
*/
|
|
13839
|
+
"inBadge"?: boolean;
|
|
13677
13840
|
/**
|
|
13678
13841
|
* @default ""
|
|
13679
13842
|
*/
|
|
@@ -14,6 +14,7 @@ export declare const isQuestionKey: (e: KeyboardEvent) => boolean;
|
|
|
14
14
|
export declare const isEnterKey: (e: KeyboardEvent) => boolean;
|
|
15
15
|
export declare const isKeyboardClick: (e: KeyboardEvent) => boolean;
|
|
16
16
|
export declare const isNumber: (e: KeyboardEvent) => boolean;
|
|
17
|
+
export declare const isCharacterInsertKey: (e: KeyboardEvent) => boolean;
|
|
17
18
|
export declare const subscribeTabbingChange: (component: any) => void;
|
|
18
19
|
export declare const unsubscribeTabbingChange: (component: any) => void;
|
|
19
20
|
export declare const enableUserIsTabbing: () => void;
|
|
@@ -9,3 +9,4 @@ export declare function SafeParseFloat(value: string | number, locale?: string):
|
|
|
9
9
|
export declare function ConvertToEnUS(value: string, locale: string, replaceThousands?: boolean): string;
|
|
10
10
|
export declare const roundTo: (val: number, multiple: number) => number;
|
|
11
11
|
export declare const clamp: (val: number, min: number, max: number) => number;
|
|
12
|
+
export declare const isInteger: (val: number) => boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duetds/components",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.6.0",
|
|
4
4
|
"description": "This package includes Duet Design System Web Components and related utilities.",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"email": "duetdesignsystem@lahitapiola.fi"
|
|
@@ -67,9 +67,9 @@
|
|
|
67
67
|
"body-scroll-lock": "3.1.5"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@duetds/fonts": "3.0.
|
|
71
|
-
"@duetds/icons": "4.3.
|
|
72
|
-
"@duetds/tokens": "5.1.
|
|
70
|
+
"@duetds/fonts": "3.0.68",
|
|
71
|
+
"@duetds/icons": "4.3.10",
|
|
72
|
+
"@duetds/tokens": "5.1.3",
|
|
73
73
|
"@percy/cli": "1.30.1",
|
|
74
74
|
"@rollup/plugin-replace": "5.0.2",
|
|
75
75
|
"@stencil/core": "4.36.3",
|
|
@@ -97,5 +97,5 @@
|
|
|
97
97
|
"publishConfig": {
|
|
98
98
|
"access": "public"
|
|
99
99
|
},
|
|
100
|
-
"gitHead": "
|
|
100
|
+
"gitHead": "572d3c821f7c9a3d07ebba40c15cf13221523411"
|
|
101
101
|
}
|
package/lib/duet/p--fmK3qPb.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import"./p-Cwhi6_oZ.js";const n=(n,e)=>Array.from(n.querySelectorAll(":scope > *")).filter((n=>n.matches(`[slot='${e}']`))),e=n=>Array.from(n.querySelectorAll(":scope > *")).filter((n=>!n.getAttribute("slot"))),s=(s,o)=>o?n(s,o).length>0:e(s).length>0,o=(s,o)=>(o?n(s,o):e(s)).map((n=>n.textContent.trim())).join(", "),t=(e,s,o,t=0,l=!1)=>{const a=l?"error":"warn",$=[],r=n(e,s),u=r.filter((n=>!!n.matches(o)||($.push(`Only elements matcing selector "${o}" may be used in slot ${s}, found:\n${n.outerHTML}`),!l||(n.remove(),!1))));t&&u.length>t&&($.push(`Only ${t} element${t>1?"s":""} may be used in slot ${s}, found ${r.length}.`),l&&u.slice(t).forEach((n=>n.remove()))),$.length>0&&console[a](`Duet ${a} in ${e.tagName.toLowerCase()}:\n${$.join("\n")}${l?`\nElement${$.length>1?"s":""} removed.`:""}`)},l=(n,e)=>{e.innerHTML="",0===n.childNodes.length?e.innerHTML=n.innerHTML:n.childNodes.forEach((n=>{const s=n.cloneNode(!0);e.appendChild(s)}))},a=(n,e,s,o,t,l)=>{const a=n.querySelector("input"),$=a||document.createElement("input");!1!==l?($.id=e,null!=s&&$.name!==s&&($.name=s),t?($.type="text",$.hidden=!0,$.required=!0):($.type="hidden",$.hidden=!1,$.required=!1),$.value=o,null!=o?$.value=o:null==o&&($.value=null),a||n.appendChild($)):$.remove()};export{n as a,l as b,t as c,o as d,e as g,s as h,a as p}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Built with Duet Design System
|
|
3
|
-
*/
|
|
4
|
-
import{r as e,h as a,H as t,g as r}from"./p-Cwhi6_oZ.js";const s=class{constructor(a){e(this,a),this.value=0}render(){return a(t,{key:"fb5eafa552f0f72600a3cec4b325ce891073f5bb"},a("div",{key:"b982b99b868fee7e0211a9b0dba7306eb2615874",hidden:!0},a("slot",{key:"e8501789a378faa695408b024dd6d7c83aa3c1c9"})))}get element(){return r(this)}};export{s as duet_share_chart_item}
|