@duetds/components 10.5.0 → 10.7.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 +658 -282
- package/hydrate/index.mjs +658 -282
- package/lib/cjs/{a11y-utils-DaAO4N9d.js → a11y-utils-DmCjy3Q3.js} +1 -1
- package/lib/cjs/{app-globals-CHNvdfQj.js → app-globals-D1tikFob.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 +7 -7
- package/lib/cjs/duet-banner.cjs.entry.js +17 -18
- 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 +8 -8
- package/lib/cjs/duet-callout.cjs.entry.js +5 -5
- package/lib/cjs/duet-caption_4.cjs.entry.js +11 -11
- package/lib/cjs/duet-card.cjs.entry.js +22 -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 +28 -12
- package/lib/cjs/duet-choice_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-collapsible.cjs.entry.js +4 -4
- package/lib/cjs/duet-combobox.cjs.entry.js +7 -17
- package/lib/cjs/duet-contact-card.cjs.entry.js +18 -7
- package/lib/cjs/duet-cookie-consent.cjs.entry.js +3 -3
- package/lib/cjs/duet-date-picker.cjs.entry.js +127 -14
- package/lib/cjs/duet-divider_2.cjs.entry.js +5 -5
- package/lib/cjs/duet-editable-table_3.cjs.entry.js +15 -15
- package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
- package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
- package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
- package/lib/cjs/duet-footer.cjs.entry.js +5 -5
- package/lib/cjs/duet-grid_2.cjs.entry.js +12 -8
- package/lib/cjs/duet-header_2.cjs.entry.js +7 -7
- package/lib/cjs/duet-hero.cjs.entry.js +27 -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 +70 -18
- 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 +9 -9
- package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
- package/lib/cjs/duet-page-heading.cjs.entry.js +6 -6
- package/lib/cjs/duet-pagination_2.cjs.entry.js +19 -19
- package/lib/cjs/duet-panel.cjs.entry.js +4 -4
- package/lib/cjs/duet-phone-input.cjs.entry.js +11 -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 -7
- 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-teaser.cjs.entry.js +110 -0
- 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 +10 -10
- package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
- 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-Dkf_MfrJ.js → errorcodes.utils-Di-nO8ua.js} +1 -1
- package/lib/cjs/{focus-utils-BuGg0Oha.js → focus-utils-uEO1pi2O.js} +1 -1
- package/lib/cjs/{index-ZxE6MB5V.js → index-BGRMvA4R.js} +13 -9
- package/lib/cjs/{keyboard-utils-D9UlHbik.js → keyboard-utils-DibQafwg.js} +2 -0
- package/lib/cjs/{label-CpPOBfjS.js → label-CwgdRt0Q.js} +1 -1
- package/lib/cjs/{language-utils-C7Z0KYg-.js → language-utils-CrB5zNlc.js} +1 -1
- package/lib/cjs/loader.cjs.js +3 -3
- package/lib/cjs/picture-utils-CZhgDlXJ.js +20 -0
- package/lib/cjs/{slot-utils-BXdHT3A1.js → slot-utils-4v5bqyQh.js} +1 -1
- package/lib/cjs/{themeable-component-CIDaln0Z.js → themeable-component-I4SEm6nQ.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/collection-manifest.json +1 -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-badge/duet-badge.js +2 -2
- package/lib/collection/components/duet-banner/duet-banner.css +12 -0
- package/lib/collection/components/duet-banner/duet-banner.js +51 -7
- 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.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 +63 -7
- package/lib/collection/components/duet-checkbox/duet-checkbox.js +3 -3
- package/lib/collection/components/duet-chip/duet-chip.js +53 -17
- package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
- package/lib/collection/components/duet-choice/duet-choice.js +3 -3
- package/lib/collection/components/duet-choice-group/duet-choice-group.js +2 -2
- package/lib/collection/components/duet-collapsible/duet-collapsible.js +3 -3
- package/lib/collection/components/duet-combobox/duet-combobox.js +4 -16
- package/lib/collection/components/duet-contact-card/duet-contact-card.css +3 -0
- package/lib/collection/components/duet-contact-card/duet-contact-card.js +58 -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 +100 -10
- package/lib/collection/components/duet-date-picker/finnish-bank-holidays.js +66 -0
- 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 +3 -3
- package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
- package/lib/collection/components/duet-file-chooser/duet-file-chooser.js +1 -1
- package/lib/collection/components/duet-footer/duet-footer.js +7 -7
- package/lib/collection/components/duet-grid/duet-grid.css +22 -0
- package/lib/collection/components/duet-grid/duet-grid.js +17 -8
- 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 +1 -1
- package/lib/collection/components/duet-hero/duet-hero.css +235 -144
- package/lib/collection/components/duet-hero/duet-hero.js +72 -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.js +73 -20
- 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 +8 -8
- package/lib/collection/components/duet-overlay/duet-overlay.js +2 -2
- package/lib/collection/components/duet-page-heading/duet-page-heading.js +3 -3
- package/lib/collection/components/duet-pagination/duet-pagination.js +13 -13
- 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 +30 -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 +58 -2
- package/lib/collection/components/duet-radio/duet-radio.js +6 -6
- 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-teaser/duet-teaser.css +127 -0
- package/lib/collection/components/duet-teaser/duet-teaser.js +462 -0
- 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.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
- package/lib/collection/components/duet-tooltip/duet-tooltip.js +1 -1
- 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/picture-utils.js +6 -1
- package/lib/duet/duet.esm.js +1 -1
- package/lib/duet/{p-61ec0e1c.entry.js → p-017873ec.entry.js} +1 -1
- package/lib/duet/{p-b1326cbb.entry.js → p-047af1e2.entry.js} +1 -1
- package/lib/duet/{p-516397ba.entry.js → p-058fcc72.entry.js} +1 -1
- package/lib/duet/p-05a6360b.entry.js +4 -0
- package/lib/duet/p-05b5ef84.entry.js +4 -0
- package/lib/duet/{p-6ef683d5.entry.js → p-07d43c60.entry.js} +1 -1
- package/lib/duet/{p-52beb436.entry.js → p-0ab559fb.entry.js} +1 -1
- package/lib/duet/{p-fe829b53.entry.js → p-0acf9bcf.entry.js} +1 -1
- package/lib/duet/{p-d3baa815.entry.js → p-0c42cc61.entry.js} +1 -1
- package/lib/duet/{p-443af533.entry.js → p-0df7094e.entry.js} +1 -1
- package/lib/duet/p-10baba94.entry.js +4 -0
- package/lib/duet/{p-30108edc.entry.js → p-1358a396.entry.js} +1 -1
- package/lib/duet/{p-70961edb.entry.js → p-1498e4a8.entry.js} +1 -1
- package/lib/duet/p-16d5dd2c.entry.js +4 -0
- package/lib/duet/p-1ec31f22.entry.js +4 -0
- package/lib/duet/{p-d6f0afa5.entry.js → p-2013545d.entry.js} +1 -1
- package/lib/duet/p-2265c46a.entry.js +4 -0
- package/lib/duet/{p-f040706c.entry.js → p-2394b3cd.entry.js} +1 -1
- package/lib/duet/{p-d779fe42.entry.js → p-2b17c517.entry.js} +1 -1
- package/lib/duet/{p-c54be349.entry.js → p-2f0f3a4a.entry.js} +1 -1
- package/lib/duet/{p-a9104184.entry.js → p-3ce04abc.entry.js} +1 -1
- package/lib/duet/{p-dedf6a32.entry.js → p-420df0aa.entry.js} +1 -1
- package/lib/duet/{p-c216e746.entry.js → p-430fad4e.entry.js} +1 -1
- package/lib/duet/p-453001ea.entry.js +4 -0
- package/lib/duet/{p-fa13ffe9.entry.js → p-4695398d.entry.js} +1 -1
- package/lib/duet/p-4bc7198d.entry.js +4 -0
- package/lib/duet/p-4e028274.entry.js +4 -0
- package/lib/duet/{p-8b0dfbd7.entry.js → p-5be103d0.entry.js} +1 -1
- package/lib/duet/{p-407f7f03.entry.js → p-5e5b6dc7.entry.js} +1 -1
- package/lib/duet/{p-42ec7305.entry.js → p-5fc88879.entry.js} +1 -1
- package/lib/duet/{p-e08dce92.entry.js → p-6865e880.entry.js} +1 -1
- package/lib/duet/{p-cb6c4158.entry.js → p-68a9ffb5.entry.js} +1 -1
- package/lib/duet/{p-b747f6e9.entry.js → p-69bcb076.entry.js} +1 -1
- package/lib/duet/p-71da8fbe.entry.js +4 -0
- package/lib/duet/{p-20a8ef81.entry.js → p-76e2c659.entry.js} +1 -1
- package/lib/duet/{p-74aac967.entry.js → p-7f5387dd.entry.js} +1 -1
- package/lib/duet/{p-110c7572.entry.js → p-84ed366e.entry.js} +1 -1
- package/lib/duet/{p-a8876b3d.entry.js → p-868647de.entry.js} +1 -1
- package/lib/duet/{p-a483117e.entry.js → p-8ad4bb4c.entry.js} +1 -1
- package/lib/duet/{p-3690576a.entry.js → p-8b9ffff4.entry.js} +1 -1
- package/lib/duet/{p-461d4089.entry.js → p-8da66626.entry.js} +1 -1
- package/lib/duet/{p-9ae7aaef.entry.js → p-8ea85c31.entry.js} +1 -1
- package/lib/duet/p-940a87e7.entry.js +4 -0
- package/lib/duet/{p-268b3066.entry.js → p-99550717.entry.js} +1 -1
- package/lib/duet/{p-8ace1eb4.entry.js → p-9987420d.entry.js} +1 -1
- package/lib/duet/{p-833802f9.entry.js → p-9d41df85.entry.js} +1 -1
- package/lib/duet/{p-3f7afd87.entry.js → p-9dee0205.entry.js} +1 -1
- package/lib/duet/{p-CFqvB5PA.js → p-B0XOGsB6.js} +1 -1
- package/lib/duet/p-B44ykle6.js +4 -0
- package/lib/duet/{p-R3pTP2Oy.js → p-B5SMAn1G.js} +1 -1
- package/lib/duet/p-BAiGBGTO.js +4 -0
- package/lib/duet/p-BWz_ChlU.js +4 -0
- package/lib/duet/p-BaefVzkx.js +4 -0
- package/lib/duet/{p-B8-N_qjs.js → p-Bnup2-sN.js} +1 -1
- package/lib/duet/p-C6rGA5IU.js +4 -0
- package/lib/duet/p-D4MpGrUR.js +5 -0
- package/lib/duet/p-DSNAI2Lx.js +4 -0
- package/lib/duet/{p-D2ly4TZR.js → p-DYmL1tSl.js} +1 -1
- package/lib/duet/{p-C5Yfx2kd.js → p-DtprEjjN.js} +1 -1
- package/lib/duet/{p-38973524.entry.js → p-a2106abd.entry.js} +1 -1
- package/lib/duet/p-a2a2f775.entry.js +4 -0
- package/lib/duet/{p-3277233e.entry.js → p-a2f7ef35.entry.js} +1 -1
- package/lib/duet/{p-829db926.entry.js → p-a62e6d8d.entry.js} +1 -1
- package/lib/duet/{p-40fa7371.entry.js → p-a6dc8c7d.entry.js} +1 -1
- package/lib/duet/{p-02d8e844.entry.js → p-a944ffff.entry.js} +1 -1
- package/lib/duet/{p-4b7f1244.entry.js → p-aebcf484.entry.js} +1 -1
- package/lib/duet/{p-bdbf0fae.entry.js → p-b2f0905a.entry.js} +1 -1
- package/lib/duet/p-b3a7ef62.entry.js +4 -0
- package/lib/duet/{p-70612314.entry.js → p-b4a1c719.entry.js} +1 -1
- package/lib/duet/p-b5204ec2.entry.js +4 -0
- package/lib/duet/{p-8012c7bc.entry.js → p-b58cfa18.entry.js} +1 -1
- package/lib/duet/{p-2dd7d75e.entry.js → p-b69946d4.entry.js} +1 -1
- package/lib/duet/{p-317e81f3.entry.js → p-b7351bfd.entry.js} +1 -1
- package/lib/duet/{p-3b2fba0f.entry.js → p-b7bb7472.entry.js} +1 -1
- package/lib/duet/{p-d3b5c997.entry.js → p-b9e97305.entry.js} +1 -1
- package/lib/duet/p-bb7fa0cf.entry.js +4 -0
- package/lib/duet/p-bef7eed7.entry.js +4 -0
- package/lib/duet/p-bffae8f6.entry.js +4 -0
- package/lib/duet/{p-c1afac0d.entry.js → p-c26e2123.entry.js} +1 -1
- package/lib/duet/{p-e7f2359a.entry.js → p-c49a72ad.entry.js} +1 -1
- package/lib/duet/{p-1da7703d.entry.js → p-c5c63d0f.entry.js} +1 -1
- package/lib/duet/{p-43e076b5.entry.js → p-c9a12663.entry.js} +1 -1
- package/lib/duet/{p-a5177d32.entry.js → p-ccaf5c28.entry.js} +1 -1
- package/lib/duet/{p-7fd39204.entry.js → p-d78923f9.entry.js} +1 -1
- package/lib/duet/p-d8383f1a.entry.js +4 -0
- package/lib/duet/{p-3f35fce3.entry.js → p-e3d91f53.entry.js} +1 -1
- package/lib/duet/p-e78af675.entry.js +4 -0
- package/lib/duet/{p-9e1a59d1.entry.js → p-e9a7215b.entry.js} +1 -1
- package/lib/duet/p-ebe55a34.entry.js +4 -0
- package/lib/duet/{p-efa4eecc.entry.js → p-ef340dc6.entry.js} +1 -1
- package/lib/duet/{p-317a1fc0.entry.js → p-f17438c7.entry.js} +1 -1
- package/lib/duet/{p-7353ee4c.entry.js → p-f264879d.entry.js} +1 -1
- package/lib/duet/p-f61ebeb1.entry.js +4 -0
- package/lib/duet/p-f647f09e.entry.js +4 -0
- package/lib/duet/p-f89da74c.entry.js +4 -0
- package/lib/duet/{p-2f8a47e2.entry.js → p-f959ca52.entry.js} +1 -1
- package/lib/duet/{p-19863cdf.entry.js → p-fb0f6212.entry.js} +1 -1
- package/lib/duet/p-fb59f80d.entry.js +4 -0
- package/lib/duet/{p-7eea47d5.entry.js → p-feae1702.entry.js} +1 -1
- package/lib/duet/p-kkZE1C6Z.js +4 -0
- package/lib/esm/{a11y-utils-ChN5Nhxh.js → a11y-utils-DZqe1lDK.js} +1 -1
- package/lib/esm/{app-globals-4kCk2rkO.js → app-globals-Byl9AdI1.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 +7 -7
- package/lib/esm/duet-banner.entry.js +17 -18
- 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 +8 -8
- package/lib/esm/duet-callout.entry.js +5 -5
- package/lib/esm/duet-caption_4.entry.js +11 -11
- package/lib/esm/duet-card.entry.js +23 -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 +28 -12
- package/lib/esm/duet-choice_2.entry.js +7 -7
- package/lib/esm/duet-collapsible.entry.js +4 -4
- package/lib/esm/duet-combobox.entry.js +7 -17
- package/lib/esm/duet-contact-card.entry.js +18 -7
- package/lib/esm/duet-cookie-consent.entry.js +3 -3
- package/lib/esm/duet-date-picker.entry.js +127 -14
- package/lib/esm/duet-divider_2.entry.js +5 -5
- package/lib/esm/duet-editable-table_3.entry.js +15 -15
- package/lib/esm/duet-empty-state.entry.js +2 -2
- package/lib/esm/duet-fieldset.entry.js +6 -6
- package/lib/esm/duet-file-chooser.entry.js +2 -2
- package/lib/esm/duet-footer.entry.js +5 -5
- package/lib/esm/duet-grid_2.entry.js +12 -8
- package/lib/esm/duet-header_2.entry.js +7 -7
- package/lib/esm/duet-hero.entry.js +27 -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 +70 -18
- 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 +9 -9
- package/lib/esm/duet-overlay.entry.js +3 -3
- package/lib/esm/duet-page-heading.entry.js +6 -6
- package/lib/esm/duet-pagination_2.entry.js +19 -19
- package/lib/esm/duet-panel.entry.js +4 -4
- package/lib/esm/duet-phone-input.entry.js +11 -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 -7
- 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-teaser.entry.js +108 -0
- 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 +10 -10
- package/lib/esm/duet-tooltip.entry.js +5 -5
- 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-DuFCu_27.js → errorcodes.utils-KA3z1KuW.js} +1 -1
- package/lib/esm/{focus-utils-CFswdkeD.js → focus-utils-id9x3opi.js} +1 -1
- package/lib/esm/{index-B2cboDWM.js → index-D4MpGrUR.js} +13 -9
- package/lib/esm/{keyboard-utils-Db8rvjPI.js → keyboard-utils-BaefVzkx.js} +2 -1
- package/lib/esm/{label-CJxIWUOT.js → label-Caev3m-F.js} +1 -1
- package/lib/esm/{language-utils-C4M4ASkT.js → language-utils-DTyUbpD-.js} +1 -1
- package/lib/esm/loader.js +4 -4
- package/lib/esm/picture-utils-4PMNZDR2.js +18 -0
- package/lib/esm/{slot-utils--sNK1DNn.js → slot-utils-BhEk4zKY.js} +1 -1
- package/lib/esm/{themeable-component-BBi3552X.js → themeable-component-B_d7Klmd.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-banner/duet-banner.d.ts +10 -1
- package/lib/types/components/duet-button/duet-button.d.ts +1 -1
- package/lib/types/components/duet-card/duet-card.d.ts +10 -0
- package/lib/types/components/duet-chip/duet-chip.d.ts +15 -8
- package/lib/types/components/duet-combobox/duet-combobox.d.ts +0 -1
- package/lib/types/components/duet-contact-card/duet-contact-card.d.ts +10 -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-grid/duet-grid.d.ts +2 -1
- package/lib/types/components/duet-hero/duet-hero.d.ts +10 -0
- package/lib/types/components/duet-input/duet-input.d.ts +11 -0
- package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +5 -0
- package/lib/types/components/duet-promo-card/duet-promo-card.d.ts +11 -0
- package/lib/types/components/duet-teaser/duet-teaser.d.ts +93 -0
- package/lib/types/components.d.ts +291 -14
- package/lib/types/utils/keyboard-utils.d.ts +1 -0
- package/lib/types/utils/picture-utils.d.ts +4 -0
- package/package.json +5 -5
- package/lib/duet/p-06297bd8.entry.js +0 -4
- package/lib/duet/p-0c04f9f5.entry.js +0 -4
- package/lib/duet/p-18a8ea12.entry.js +0 -4
- package/lib/duet/p-1bca9931.entry.js +0 -4
- package/lib/duet/p-3f3c6e64.entry.js +0 -4
- package/lib/duet/p-4af6a8ed.entry.js +0 -4
- package/lib/duet/p-5284c707.entry.js +0 -4
- package/lib/duet/p-5c9f443c.entry.js +0 -4
- package/lib/duet/p-5f5f72d4.entry.js +0 -4
- package/lib/duet/p-5lFzA17H.js +0 -4
- package/lib/duet/p-6b469225.entry.js +0 -4
- package/lib/duet/p-7294c37d.entry.js +0 -4
- package/lib/duet/p-72b504ef.entry.js +0 -4
- package/lib/duet/p-734249e0.entry.js +0 -4
- package/lib/duet/p-7c08fd87.entry.js +0 -4
- package/lib/duet/p-83238bf3.entry.js +0 -4
- package/lib/duet/p-86ffd3cb.entry.js +0 -4
- package/lib/duet/p-871620d3.entry.js +0 -4
- package/lib/duet/p-93ff8fe4.entry.js +0 -4
- package/lib/duet/p-9c9811ba.entry.js +0 -4
- package/lib/duet/p-B2cboDWM.js +0 -5
- package/lib/duet/p-BzYmwX5_.js +0 -4
- package/lib/duet/p-Cg4m_WHe.js +0 -4
- package/lib/duet/p-DEzE2U5T.js +0 -4
- package/lib/duet/p-Db8rvjPI.js +0 -4
- package/lib/duet/p-a068c086.entry.js +0 -4
- package/lib/duet/p-c2026c6b.entry.js +0 -4
- package/lib/duet/p-cbcee3e2.entry.js +0 -4
- package/lib/duet/p-d5f90dbc.entry.js +0 -4
- package/lib/duet/p-s8EL6NG5.js +0 -4
|
@@ -28,18 +28,18 @@ export declare class DuetChip implements ThemeableComponent {
|
|
|
28
28
|
inputChipHover: boolean;
|
|
29
29
|
inputChipDeleteFocus: boolean;
|
|
30
30
|
/**
|
|
31
|
-
* Adds accessible label for the chip that is
|
|
32
|
-
*
|
|
33
|
-
* users who use assistive technology. With input variation this is not used,
|
|
34
|
-
* as the accessible label is automatically generated.
|
|
31
|
+
* Adds accessible label for the chip that is used by screen readers and other assistive technology. Has effect only
|
|
32
|
+
* with "button" variation as for the other variations the accessible label is automatically generated.
|
|
35
33
|
*/
|
|
36
34
|
accessibleLabel: string;
|
|
37
35
|
/**
|
|
38
36
|
* Variation of the chip.
|
|
39
37
|
* Button should be used to present a list of actions or suggestions. It behaves like a button and must be used
|
|
40
|
-
* together with a click handler. Filter acts like a checkbox, it can be toggled on or off, and it should be
|
|
41
|
-
*
|
|
42
|
-
*
|
|
38
|
+
* together with a click handler. Filter acts like a checkbox, it can be toggled on or off, and it should be used with
|
|
39
|
+
* a value. Filter can also be used with a popup-menu - then the initial text describes the type of category of
|
|
40
|
+
* filtering, and the selection from the popup-menu sets the filter value. Input represents items input by the user,
|
|
41
|
+
* 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,
|
|
42
|
+
* and it should be used with a value and name.
|
|
43
43
|
*/
|
|
44
44
|
variation: DuetChipVariation;
|
|
45
45
|
/**
|
|
@@ -47,7 +47,7 @@ export declare class DuetChip implements ThemeableComponent {
|
|
|
47
47
|
*/
|
|
48
48
|
size: DuetChipSize;
|
|
49
49
|
/**
|
|
50
|
-
* Id of the DuetPopupMenu that is controlled by the chip.
|
|
50
|
+
* Id of the DuetPopupMenu that is controlled by the chip. Works only with "filter" variation.
|
|
51
51
|
*/
|
|
52
52
|
popup: string;
|
|
53
53
|
/**
|
|
@@ -97,6 +97,10 @@ export declare class DuetChip implements ThemeableComponent {
|
|
|
97
97
|
* Use this property to add an aria-haspopup attribute.
|
|
98
98
|
*/
|
|
99
99
|
accessiblePopup: string;
|
|
100
|
+
/**
|
|
101
|
+
* Indicates the id or a string of space seperated ids of a component(s) that describes the input.
|
|
102
|
+
*/
|
|
103
|
+
accessibleDescribedBy: string;
|
|
100
104
|
/**
|
|
101
105
|
* Emitted when the checked property has changed (applicable only for the filter variation).
|
|
102
106
|
*/
|
|
@@ -124,6 +128,8 @@ export declare class DuetChip implements ThemeableComponent {
|
|
|
124
128
|
private radioInputListenersRemove;
|
|
125
129
|
private radioInputListenersAdd;
|
|
126
130
|
private radioInputSetUp;
|
|
131
|
+
private originalFilterChipText;
|
|
132
|
+
private originalFilterChipValue;
|
|
127
133
|
private popupSetUp;
|
|
128
134
|
/**
|
|
129
135
|
* Component event handling.
|
|
@@ -148,6 +154,7 @@ export declare class DuetChip implements ThemeableComponent {
|
|
|
148
154
|
private getAccessiblePopup;
|
|
149
155
|
private getAccessibleDeleteLabel;
|
|
150
156
|
private getAccessibleInputChipLabel;
|
|
157
|
+
private getAccessibleFilterLabel;
|
|
151
158
|
/**
|
|
152
159
|
* Remove input chip
|
|
153
160
|
*/
|
|
@@ -36,7 +36,6 @@ export declare class DuetCombobox implements ThemeableComponent {
|
|
|
36
36
|
activeItemAnnouncement: string;
|
|
37
37
|
activeItemHandler(_state: any): void;
|
|
38
38
|
private announceActiveItem;
|
|
39
|
-
inputValueHandler(): void;
|
|
40
39
|
/**
|
|
41
40
|
* Defaults for the accessible labels for the select items
|
|
42
41
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ThemeableComponent } from "../../common";
|
|
2
2
|
import { DuetIconName, DuetLanguage, DuetMargin, DuetTheme } from "../../common-types";
|
|
3
|
+
import { DuetSource } from "../../utils/picture-utils";
|
|
3
4
|
export declare class DuetContactCard implements ThemeableComponent {
|
|
4
5
|
/**
|
|
5
6
|
* Own Properties.
|
|
@@ -22,6 +23,15 @@ export declare class DuetContactCard implements ThemeableComponent {
|
|
|
22
23
|
* Image.
|
|
23
24
|
*/
|
|
24
25
|
image: string;
|
|
26
|
+
/**
|
|
27
|
+
* Make the image load with higher or lower priority. Value "high" sets the img's attributes fetchpriority and loading to
|
|
28
|
+
* "high" and "eager", while value "low" sets those attributes to "low" and "lazy"
|
|
29
|
+
*/
|
|
30
|
+
imagePriority: "high" | "low";
|
|
31
|
+
/**
|
|
32
|
+
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
33
|
+
*/
|
|
34
|
+
sources: DuetSource[] | string;
|
|
25
35
|
/**
|
|
26
36
|
* Name.
|
|
27
37
|
*/
|
|
@@ -9,6 +9,9 @@ type DatePickerMonthProps = {
|
|
|
9
9
|
language: DuetLanguage;
|
|
10
10
|
min?: Date;
|
|
11
11
|
max?: Date;
|
|
12
|
+
disallowWeekends?: boolean;
|
|
13
|
+
disallowBankHolidays?: boolean;
|
|
14
|
+
disallowedDates?: string | string[];
|
|
12
15
|
onDateSelect: DatePickerDayProps["onDaySelect"];
|
|
13
16
|
onKeyboardNavigation: DatePickerDayProps["onKeyboardNavigation"];
|
|
14
17
|
focusedDayRef: (element: HTMLElement) => void;
|
|
@@ -29,6 +29,10 @@ export declare function startOfMonth(date: Date): Date;
|
|
|
29
29
|
export declare function endOfMonth(date: Date): Date;
|
|
30
30
|
export declare function setMonth(date: Date, month: number): Date;
|
|
31
31
|
export declare function setYear(date: Date, year: number): Date;
|
|
32
|
+
/**
|
|
33
|
+
* Check if date falls on a Saturday or Sunday
|
|
34
|
+
*/
|
|
35
|
+
export declare function isWeekend(date: Date): boolean;
|
|
32
36
|
/**
|
|
33
37
|
* Check if date is within a min and max
|
|
34
38
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type DisallowedDaysOptions = {
|
|
2
|
+
disallowWeekends?: boolean;
|
|
3
|
+
disallowBankHolidays?: boolean;
|
|
4
|
+
disallowedDates?: string | string[];
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* Check if a date is disallowed by any of the given weekend/bank-holiday/explicit-date rules
|
|
8
|
+
*/
|
|
9
|
+
export declare function isDateDisallowed(date: Date, options: DisallowedDaysOptions): boolean;
|
|
@@ -163,6 +163,19 @@ export declare class DuetDatePicker implements ThemeableComponent, InputComponen
|
|
|
163
163
|
* This setting can be used alone or together with the min property.
|
|
164
164
|
*/
|
|
165
165
|
max: string;
|
|
166
|
+
/**
|
|
167
|
+
* Disallow selecting Saturdays and Sundays.
|
|
168
|
+
*/
|
|
169
|
+
disallowWeekends: boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Disallow selecting Finnish bank holidays, including Easter-based dates and Midsummer Eve.
|
|
172
|
+
*/
|
|
173
|
+
disallowBankHolidays: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Disallow selecting specific dates. Accepts an array of ISO-8601 (YYYY-MM-DD) dates,
|
|
176
|
+
* or a comma-separated string of the same when set as an HTML attribute.
|
|
177
|
+
*/
|
|
178
|
+
disallowedDates: string | string[];
|
|
166
179
|
/**
|
|
167
180
|
* Increment to add to years, defaults to 10 for simplicity, if you need a larger selectionspace you can set it to 100
|
|
168
181
|
*/
|
|
@@ -171,6 +184,7 @@ export declare class DuetDatePicker implements ThemeableComponent, InputComponen
|
|
|
171
184
|
* This offers information relating to the current validity of the component.
|
|
172
185
|
* It follow as closely as possible the behaviour of the native date input.
|
|
173
186
|
* Useful properties to inspect are badInput, valueMissing, rangeOverflow, rangeUnderflow.
|
|
187
|
+
* For disallowed dates property customError is set true.
|
|
174
188
|
*/
|
|
175
189
|
get validity(): ValidityState;
|
|
176
190
|
/**
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculate the date of Easter Sunday for a given year using the
|
|
3
|
+
* Meeus/Jones/Butcher Gregorian algorithm.
|
|
4
|
+
*/
|
|
5
|
+
export declare function getEasterSunday(year: number): Date;
|
|
6
|
+
/**
|
|
7
|
+
* Finnish bank holidays for a given year, as published by the Bank of Finland:
|
|
8
|
+
* https://www.suomenpankki.fi/en/money-and-payments/bank-holidays/
|
|
9
|
+
*/
|
|
10
|
+
export declare function getFinnishBankHolidays(year: number): Date[];
|
|
11
|
+
export declare function isFinnishBankHoliday(date: Date): boolean;
|
|
@@ -13,6 +13,7 @@ export declare class DuetGrid implements ComponentInterface {
|
|
|
13
13
|
* Reference to host HTML element.
|
|
14
14
|
*/
|
|
15
15
|
element: HTMLElement;
|
|
16
|
+
private directChildCount;
|
|
16
17
|
/**
|
|
17
18
|
* Enable or disable the automatic responsive behaviour of the grid component.
|
|
18
19
|
* Setting this option to "true" makes sure that contents are stacked vertically
|
|
@@ -52,7 +53,7 @@ export declare class DuetGrid implements ComponentInterface {
|
|
|
52
53
|
/**
|
|
53
54
|
* CSS grid based templates that can be used to create pre-defined layouts.
|
|
54
55
|
*/
|
|
55
|
-
gridTemplate: "small" | "medium" | "large" | "sidebar-right" | "sidebar-left" | "two-columns" | "three-columns" | "button-grid";
|
|
56
|
+
gridTemplate: "small" | "medium" | "large" | "sidebar-right" | "sidebar-left" | "two-columns" | "three-columns" | "button-grid" | "teaser";
|
|
56
57
|
/**
|
|
57
58
|
* When gridTemplate is used, gridTemplateGap sets the row and column gaps. With two values the first
|
|
58
59
|
* is row-gap and the second column-gap. Does not apply to button-grid.
|
|
@@ -2,6 +2,7 @@ import { EventEmitter } from "../../stencil-public-runtime";
|
|
|
2
2
|
import { DuetAnalyticsEvent, DuetColor, DuetHeadingLevel, DuetIconName, DuetLanguage, DuetTheme } from "../../common-types";
|
|
3
3
|
import { ThemeableComponent } from "../../common/themeable-component";
|
|
4
4
|
import { DuetLangObject } from "../../utils/language-utils";
|
|
5
|
+
import { DuetSource } from "../../utils/picture-utils";
|
|
5
6
|
export type DuetHeroIconSize = "medium" | "large";
|
|
6
7
|
export type DuetHeroVariation = "default" | "light" | "gray" | "image" | "minimal" | "campaign" | "section" | "product" | "content";
|
|
7
8
|
export type DuetHeroBackData = {
|
|
@@ -171,6 +172,15 @@ export declare class DuetHero implements ThemeableComponent {
|
|
|
171
172
|
* Alt attribute text for the image. If not provided, image is assigned presentation role.
|
|
172
173
|
*/
|
|
173
174
|
imageAlt: string;
|
|
175
|
+
/**
|
|
176
|
+
* Make the image load with higher or lower priority. Value "high" sets the img's attributes fetchpriority and loading to
|
|
177
|
+
* "high" and "eager", while value "low" sets those attributes to "low" and "lazy"
|
|
178
|
+
*/
|
|
179
|
+
imagePriority: "high" | "low";
|
|
180
|
+
/**
|
|
181
|
+
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
182
|
+
*/
|
|
183
|
+
sources: DuetSource[] | string;
|
|
174
184
|
/**
|
|
175
185
|
* Style variation of the hero area.
|
|
176
186
|
*/
|
|
@@ -30,6 +30,8 @@ export declare class DuetInput implements ThemeableComponent, InputComponent, A1
|
|
|
30
30
|
private togglePasswordRevealedButton?;
|
|
31
31
|
private isCaptionVisible;
|
|
32
32
|
private timeoutId;
|
|
33
|
+
private maxlengthAnnouncementTimeoutId;
|
|
34
|
+
private maxlengthAnnouncementKey;
|
|
33
35
|
private disallowPatternRegex;
|
|
34
36
|
private clearLabel;
|
|
35
37
|
private timeAnnouncement;
|
|
@@ -38,6 +40,7 @@ export declare class DuetInput implements ThemeableComponent, InputComponent, A1
|
|
|
38
40
|
private passwordShownAriaAnnouncement;
|
|
39
41
|
private passwordHiddenAriaAnnouncement;
|
|
40
42
|
private chipsSelectedDesriptionLabel;
|
|
43
|
+
private maxlengthReachedLabel;
|
|
41
44
|
/**
|
|
42
45
|
* Reference to host HTML element.
|
|
43
46
|
*/
|
|
@@ -55,6 +58,10 @@ export declare class DuetInput implements ThemeableComponent, InputComponent, A1
|
|
|
55
58
|
*/
|
|
56
59
|
isFocused: boolean;
|
|
57
60
|
_accessiblePopup: string;
|
|
61
|
+
/**
|
|
62
|
+
* Text announced to screen readers when the maxlength limit is reached.
|
|
63
|
+
*/
|
|
64
|
+
maxlengthAnnouncement: string;
|
|
58
65
|
/**
|
|
59
66
|
* Indicates the id of a related component’s visually focused element.
|
|
60
67
|
*/
|
|
@@ -327,6 +334,10 @@ export declare class DuetInput implements ThemeableComponent, InputComponent, A1
|
|
|
327
334
|
private onBlur;
|
|
328
335
|
private onFocus;
|
|
329
336
|
private onClear;
|
|
337
|
+
private onInputKeyDown;
|
|
338
|
+
private onInputPaste;
|
|
339
|
+
private isAtMaxlengthWithoutSelection;
|
|
340
|
+
private handleMaxlengthLimitReached;
|
|
330
341
|
/**
|
|
331
342
|
* Private functions
|
|
332
343
|
*/
|
|
@@ -101,6 +101,11 @@ export declare class DuetPhoneInput implements ThemeableComponent, A11yComponent
|
|
|
101
101
|
* Name of the input.
|
|
102
102
|
*/
|
|
103
103
|
name: string;
|
|
104
|
+
/**
|
|
105
|
+
* Set the type of automatic completion by the browser. Must include "tel", may also include token "home", "work" or
|
|
106
|
+
* "mobile". If you must disable automatic completion (not recommended) use "off"
|
|
107
|
+
*/
|
|
108
|
+
autoComplete: string;
|
|
104
109
|
/**
|
|
105
110
|
* Display the input in error state along with an error message.
|
|
106
111
|
*/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { DuetColor, DuetHeadingLevel, DuetMargin, DuetTheme } from "../../common-types";
|
|
2
2
|
import { ThemeableComponent } from "../../common/themeable-component";
|
|
3
|
+
import { DuetSource } from "../../utils/picture-utils";
|
|
3
4
|
/**
|
|
4
5
|
* @slot pre-heading - Slot for pre-heading content.
|
|
5
6
|
* @slot heading - Slot for heading content. Only span should be used in this slot.
|
|
@@ -38,6 +39,16 @@ export declare class DuetPromoCard implements ThemeableComponent {
|
|
|
38
39
|
* Alt attribute text for the image. If not provided, image is assigned presentation role.
|
|
39
40
|
*/
|
|
40
41
|
imageAlt: string;
|
|
42
|
+
/**
|
|
43
|
+
* Make the image load with higher or lower priority. Value "high" sets the img's attributes fetchpriority and loading to
|
|
44
|
+
* "high" and "eager", while value "low" sets those attributes to "low" and "lazy"
|
|
45
|
+
*/
|
|
46
|
+
imagePriority: "high" | "low";
|
|
47
|
+
/**
|
|
48
|
+
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
49
|
+
* This is an experimental feature and might be changed without notice.
|
|
50
|
+
*/
|
|
51
|
+
sources: DuetSource[] | string;
|
|
41
52
|
/**
|
|
42
53
|
* The actual heading level used in the HTML markup.
|
|
43
54
|
*/
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { DuetColor, DuetHeadingLevel, DuetIconColor, DuetIconName, DuetTheme } from "../../common-types";
|
|
2
|
+
import { ThemeableComponent } from "../../common/themeable-component";
|
|
3
|
+
import { DuetSource } from "../../utils/picture-utils";
|
|
4
|
+
export type DuetTeaserHeadingVisualLevel = "h3" | "h5";
|
|
5
|
+
/**
|
|
6
|
+
* @slot links - Slot for links or buttons related to the teaser. Only default duet-link and plain duet-button components should be used in this slot. Not rendered when the `url` property is set.
|
|
7
|
+
*/
|
|
8
|
+
export declare class DuetTeaser implements ThemeableComponent {
|
|
9
|
+
private aOrDivElement;
|
|
10
|
+
private hasLinksSlot;
|
|
11
|
+
element: HTMLElement;
|
|
12
|
+
/**
|
|
13
|
+
* Theme.
|
|
14
|
+
*/
|
|
15
|
+
theme: DuetTheme;
|
|
16
|
+
/**
|
|
17
|
+
* The heading text.
|
|
18
|
+
*/
|
|
19
|
+
heading: string;
|
|
20
|
+
/**
|
|
21
|
+
* The actual heading level used in the HTML markup.
|
|
22
|
+
*/
|
|
23
|
+
headingLevel: DuetHeadingLevel;
|
|
24
|
+
/**
|
|
25
|
+
* Controls the visual size of the heading. Headings longer than 60 characters
|
|
26
|
+
* always use "h5" visually, regardless of this setting.
|
|
27
|
+
*/
|
|
28
|
+
headingVisualLevel: DuetTeaserHeadingVisualLevel;
|
|
29
|
+
/**
|
|
30
|
+
* Description text shown below the heading.
|
|
31
|
+
*/
|
|
32
|
+
description: string;
|
|
33
|
+
/**
|
|
34
|
+
* Meta text (date, category, etc.). Placed after the heading in source order, but rendered visually above it.
|
|
35
|
+
*/
|
|
36
|
+
meta: string;
|
|
37
|
+
/**
|
|
38
|
+
* A destination to link to, rendered in the href attribute of a link. Makes
|
|
39
|
+
* the whole teaser act as a link and disables the links slot.
|
|
40
|
+
*/
|
|
41
|
+
url: string;
|
|
42
|
+
/**
|
|
43
|
+
* Image URL. If provided, the icon property is ignored.
|
|
44
|
+
*/
|
|
45
|
+
image: string;
|
|
46
|
+
/**
|
|
47
|
+
* Alt attribute text for the image. If not provided, image is assigned presentation role.
|
|
48
|
+
*/
|
|
49
|
+
imageAlt: string;
|
|
50
|
+
/**
|
|
51
|
+
* Make the image load with higher or lower priority. Value "high" sets the img's attributes fetchpriority and loading to
|
|
52
|
+
* "high" and "eager", while value "low" sets those attributes to "low" and "lazy"
|
|
53
|
+
*/
|
|
54
|
+
imagePriority: "high" | "low";
|
|
55
|
+
/**
|
|
56
|
+
* Array of sources for responsive images. Sources have the properties of <source> element.
|
|
57
|
+
*/
|
|
58
|
+
sources: DuetSource[] | string;
|
|
59
|
+
/**
|
|
60
|
+
* Icon to display when no image is set. Not used if the image property is given.
|
|
61
|
+
*/
|
|
62
|
+
icon: DuetIconName;
|
|
63
|
+
/**
|
|
64
|
+
* Background color for the icon
|
|
65
|
+
*/
|
|
66
|
+
iconBackground: DuetColor;
|
|
67
|
+
/**
|
|
68
|
+
* Color for the icon
|
|
69
|
+
*/
|
|
70
|
+
iconColor: DuetIconColor;
|
|
71
|
+
/**
|
|
72
|
+
* Component lifecycle events.
|
|
73
|
+
*/
|
|
74
|
+
componentWillLoad(): void;
|
|
75
|
+
componentDidRender(): void;
|
|
76
|
+
/**
|
|
77
|
+
* Sets focus on underlying a element.
|
|
78
|
+
* Available only when url attribute is used.
|
|
79
|
+
* Use this method instead of the native `focus()`.
|
|
80
|
+
*/
|
|
81
|
+
setFocus(options?: FocusOptions): Promise<void>;
|
|
82
|
+
/**
|
|
83
|
+
* Creates/updates the actual heading element as a light DOM child of the
|
|
84
|
+
* host, slotted into the "heading" slot.
|
|
85
|
+
*/
|
|
86
|
+
private headingSetUp;
|
|
87
|
+
private getHeadingVisualLevel;
|
|
88
|
+
/**
|
|
89
|
+
* render() function
|
|
90
|
+
* Always the last one of the class.
|
|
91
|
+
*/
|
|
92
|
+
render(): any;
|
|
93
|
+
}
|