@duetds/components 10.7.0 → 10.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (426) hide show
  1. package/hydrate/index.js +385 -237
  2. package/hydrate/index.mjs +385 -237
  3. package/lib/cjs/{a11y-utils-DmCjy3Q3.js → a11y-utils-DZ42p33K.js} +1 -1
  4. package/lib/cjs/{app-globals-D1tikFob.js → app-globals-DiBfle2l.js} +1 -1
  5. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  6. package/lib/cjs/duet-alert.cjs.entry.js +4 -4
  7. package/lib/cjs/duet-badge.cjs.entry.js +6 -6
  8. package/lib/cjs/duet-banner.cjs.entry.js +4 -4
  9. package/lib/cjs/duet-breadcrumb.cjs.entry.js +6 -6
  10. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +5 -5
  11. package/lib/cjs/duet-button_2.cjs.entry.js +5 -5
  12. package/lib/cjs/duet-callout.cjs.entry.js +5 -5
  13. package/lib/cjs/duet-caption_4.cjs.entry.js +10 -10
  14. package/lib/cjs/duet-card.cjs.entry.js +5 -5
  15. package/lib/cjs/duet-checkbox.cjs.entry.js +3 -3
  16. package/lib/cjs/duet-checkmark.cjs.entry.js +4 -4
  17. package/lib/cjs/duet-chip.cjs.entry.js +3 -3
  18. package/lib/cjs/duet-choice_2.cjs.entry.js +16 -7
  19. package/lib/cjs/duet-collapsible.cjs.entry.js +3 -3
  20. package/lib/cjs/duet-combobox.cjs.entry.js +31 -14
  21. package/lib/cjs/duet-contact-card.cjs.entry.js +6 -6
  22. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  23. package/lib/cjs/duet-date-picker.cjs.entry.js +17 -13
  24. package/lib/cjs/duet-divider_2.cjs.entry.js +3 -3
  25. package/lib/cjs/duet-editable-table_3.cjs.entry.js +8 -8
  26. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  27. package/lib/cjs/duet-fieldset.cjs.entry.js +6 -6
  28. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-footer.cjs.entry.js +4 -4
  30. package/lib/cjs/duet-grid_2.cjs.entry.js +4 -4
  31. package/lib/cjs/duet-header_2.cjs.entry.js +3 -3
  32. package/lib/cjs/duet-hero.cjs.entry.js +5 -5
  33. package/lib/cjs/duet-icon.cjs.entry.js +5 -5
  34. package/lib/cjs/duet-indicator.cjs.entry.js +3 -3
  35. package/lib/cjs/duet-input_2.cjs.entry.js +33 -19
  36. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  37. package/lib/cjs/duet-list_2.cjs.entry.js +4 -4
  38. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +4 -4
  39. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +4 -4
  40. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +6 -6
  41. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +7 -7
  42. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +4 -4
  43. package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
  44. package/lib/cjs/duet-modal.cjs.entry.js +12 -13
  45. package/lib/cjs/duet-multiselect.cjs.entry.js +10 -10
  46. package/lib/cjs/duet-nav.cjs.entry.js +3 -3
  47. package/lib/cjs/duet-notification_2.cjs.entry.js +9 -9
  48. package/lib/cjs/duet-number-input.cjs.entry.js +8 -8
  49. package/lib/cjs/duet-overlay.cjs.entry.js +3 -3
  50. package/lib/cjs/duet-page-heading.cjs.entry.js +6 -6
  51. package/lib/cjs/duet-pagination_2.cjs.entry.js +16 -16
  52. package/lib/cjs/duet-panel.cjs.entry.js +4 -4
  53. package/lib/cjs/duet-phone-input.cjs.entry.js +13 -5
  54. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +22 -13
  55. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  56. package/lib/cjs/duet-promo-card.cjs.entry.js +6 -6
  57. package/lib/cjs/duet-radio_2.cjs.entry.js +7 -7
  58. package/lib/cjs/duet-range-slider.cjs.entry.js +6 -6
  59. package/lib/cjs/duet-scrollable_3.cjs.entry.js +15 -15
  60. package/lib/cjs/duet-section-layout.cjs.entry.js +4 -4
  61. package/lib/cjs/duet-select.cjs.entry.js +9 -9
  62. package/lib/cjs/duet-shaped-image.cjs.entry.js +4 -4
  63. package/lib/cjs/duet-share-chart-item.cjs.entry.js +2 -2
  64. package/lib/cjs/duet-share-chart.cjs.entry.js +6 -6
  65. package/lib/cjs/duet-show-more.cjs.entry.js +5 -5
  66. package/lib/cjs/duet-slideout-lang.cjs.entry.js +4 -4
  67. package/lib/cjs/duet-slideout-link.cjs.entry.js +7 -7
  68. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +6 -6
  69. package/lib/cjs/duet-slideout-panel.cjs.entry.js +11 -11
  70. package/lib/cjs/duet-slideout.cjs.entry.js +10 -10
  71. package/lib/cjs/duet-status-icon.cjs.entry.js +3 -3
  72. package/lib/cjs/duet-step_2.cjs.entry.js +6 -6
  73. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +4 -4
  74. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +6 -6
  75. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
  76. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +3 -3
  77. package/lib/cjs/duet-submenu-bar.cjs.entry.js +7 -7
  78. package/lib/cjs/duet-teaser.cjs.entry.js +6 -6
  79. package/lib/cjs/duet-textarea.cjs.entry.js +20 -11
  80. package/lib/cjs/duet-toggle.cjs.entry.js +8 -8
  81. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +4 -4
  82. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +6 -6
  83. package/lib/cjs/duet-toolbar-item.cjs.entry.js +8 -8
  84. package/lib/cjs/duet-toolbar-link.cjs.entry.js +4 -4
  85. package/lib/cjs/duet-toolbar.cjs.entry.js +4 -4
  86. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +10 -10
  87. package/lib/cjs/duet-tooltip.cjs.entry.js +5 -5
  88. package/lib/cjs/duet-tray.cjs.entry.js +5 -5
  89. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +2 -2
  90. package/lib/cjs/duet-upload-item.cjs.entry.js +6 -6
  91. package/lib/cjs/duet-visually-hidden.cjs.entry.js +2 -2
  92. package/lib/cjs/duet.cjs.js +3 -3
  93. package/lib/cjs/{errorcodes.utils-Di-nO8ua.js → errorcodes.utils-MdC-C1Fa.js} +1 -1
  94. package/lib/cjs/{floating-ui.dom.browser.min-Cj0r5YDz.js → floating-ui.dom.browser.min-DaH62q3u.js} +83 -0
  95. package/lib/cjs/{focus-utils-uEO1pi2O.js → focus-utils-KpSp5WDp.js} +1 -1
  96. package/lib/cjs/{index-BGRMvA4R.js → index-BP4tQozH.js} +1 -1
  97. package/lib/cjs/{label-CwgdRt0Q.js → label-CjvqwyJR.js} +1 -1
  98. package/lib/cjs/{language-utils-CrB5zNlc.js → language-utils-BCJyRc_q.js} +1 -1
  99. package/lib/cjs/loader.cjs.js +3 -3
  100. package/lib/cjs/{picture-utils-CZhgDlXJ.js → picture-utils-Dp6TiDHy.js} +1 -1
  101. package/lib/cjs/{slot-utils-4v5bqyQh.js → slot-utils-DvtoWHAA.js} +1 -1
  102. package/lib/cjs/{themeable-component-I4SEm6nQ.js → themeable-component-BXqwFhg-.js} +1 -1
  103. package/lib/collection/components/duet-badge/duet-badge.js +2 -2
  104. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumb.js +4 -4
  105. package/lib/collection/components/duet-breadcrumbs/duet-breadcrumbs.js +2 -2
  106. package/lib/collection/components/duet-button/duet-button.css +3 -0
  107. package/lib/collection/components/duet-callout/duet-callout.js +2 -2
  108. package/lib/collection/components/duet-card/duet-card.css +13 -9
  109. package/lib/collection/components/duet-choice/duet-checkmark.js +2 -2
  110. package/lib/collection/components/duet-choice-group/duet-choice-group.js +12 -3
  111. package/lib/collection/components/duet-combobox/duet-combobox-select.js +1 -1
  112. package/lib/collection/components/duet-combobox/duet-combobox.js +29 -11
  113. package/lib/collection/components/duet-contact-card/duet-contact-card.js +2 -2
  114. package/lib/collection/components/duet-date-picker/date-picker-day.js +1 -1
  115. package/lib/collection/components/duet-date-picker/duet-date-picker.js +34 -7
  116. package/lib/collection/components/duet-fieldset/duet-fieldset.js +3 -3
  117. package/lib/collection/components/duet-grid-item/duet-grid-item.js +2 -2
  118. package/lib/collection/components/duet-icon/duet-icon.js +3 -3
  119. package/lib/collection/components/duet-input/duet-input.css +31 -0
  120. package/lib/collection/components/duet-input/duet-input.js +48 -14
  121. package/lib/collection/components/duet-link/duet-link.css +16 -0
  122. package/lib/collection/components/duet-link/duet-link.js +2 -2
  123. package/lib/collection/components/duet-list-item/duet-list-item.js +2 -2
  124. package/lib/collection/components/duet-menu-bar-button/duet-menu-bar-button.js +2 -2
  125. package/lib/collection/components/duet-menu-bar-dropdown/duet-menu-bar-dropdown.js +4 -4
  126. package/lib/collection/components/duet-menu-bar-dropdown-link/duet-menu-bar-dropdown-link.js +2 -2
  127. package/lib/collection/components/duet-menu-bar-item/duet-menu-bar-item.js +2 -2
  128. package/lib/collection/components/duet-menu-bar-link/duet-menu-bar-link.js +2 -2
  129. package/lib/collection/components/duet-modal/duet-modal.css +8 -1
  130. package/lib/collection/components/duet-modal/duet-modal.js +6 -7
  131. package/lib/collection/components/duet-multiselect/duet-multiselect.js +5 -5
  132. package/lib/collection/components/duet-nav/duet-nav.js +1 -1
  133. package/lib/collection/components/duet-notification/duet-notification.js +2 -2
  134. package/lib/collection/components/duet-notification-drawer/duet-notification-drawer.js +3 -3
  135. package/lib/collection/components/duet-number-input/duet-number-input.js +23 -4
  136. package/lib/collection/components/duet-overlay/duet-overlay.js +1 -1
  137. package/lib/collection/components/duet-page-heading/duet-page-heading.js +3 -3
  138. package/lib/collection/components/duet-pagination/duet-pagination.js +11 -11
  139. package/lib/collection/components/duet-panel/duet-panel.js +2 -2
  140. package/lib/collection/components/duet-paragraph/duet-paragraph.js +2 -2
  141. package/lib/collection/components/duet-phone-input/duet-phone-input.js +9 -1
  142. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +13 -4
  143. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.css +2 -0
  144. package/lib/collection/components/duet-popup-menu-item/duet-popup-menu-item.js +2 -2
  145. package/lib/collection/components/duet-promo-card/duet-promo-card.js +2 -2
  146. package/lib/collection/components/duet-radio/duet-radio.js +3 -3
  147. package/lib/collection/components/duet-radio-group/duet-radio-group.js +1 -1
  148. package/lib/collection/components/duet-range-slider/duet-range-slider.js +2 -2
  149. package/lib/collection/components/duet-range-stepper/duet-range-stepper.js +2 -2
  150. package/lib/collection/components/duet-scrollable/duet-scrollable.js +5 -5
  151. package/lib/collection/components/duet-section-layout/duet-section-layout.js +3 -3
  152. package/lib/collection/components/duet-select/duet-select.js +5 -5
  153. package/lib/collection/components/duet-shaped-image/duet-shaped-image.js +2 -2
  154. package/lib/collection/components/duet-share-chart/duet-share-chart.js +2 -2
  155. package/lib/collection/components/duet-share-chart-item/duet-share-chart-item.js +1 -1
  156. package/lib/collection/components/duet-show-more/duet-show-more.js +2 -2
  157. package/lib/collection/components/duet-slideout/duet-slideout.js +4 -4
  158. package/lib/collection/components/duet-slideout-lang/duet-slideout-lang.js +1 -1
  159. package/lib/collection/components/duet-slideout-link/duet-slideout-link.js +2 -2
  160. package/lib/collection/components/duet-slideout-panel/duet-slideout-panel.js +6 -6
  161. package/lib/collection/components/duet-slideout-panel-dropdown/duet-slideout-panel-dropdown.js +4 -4
  162. package/lib/collection/components/duet-spacer/duet-spacer.js +1 -1
  163. package/lib/collection/components/duet-spinner/duet-spinner.js +1 -1
  164. package/lib/collection/components/duet-status-icon/duet-status-icon.js +2 -2
  165. package/lib/collection/components/duet-step/duet-step.js +2 -2
  166. package/lib/collection/components/duet-stepper/duet-stepper.js +1 -1
  167. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +5 -5
  168. package/lib/collection/components/duet-submenu-bar-dropdown/duet-submenu-bar-dropdown.js +4 -4
  169. package/lib/collection/components/duet-submenu-bar-dropdown-link/duet-submenu-bar-dropdown-link.js +2 -2
  170. package/lib/collection/components/duet-submenu-bar-item/duet-submenu-bar-item.js +1 -1
  171. package/lib/collection/components/duet-submenu-bar-link/duet-submenu-bar-link.js +1 -1
  172. package/lib/collection/components/duet-tab/duet-tab.js +2 -2
  173. package/lib/collection/components/duet-tab-group/duet-tab-group.js +4 -4
  174. package/lib/collection/components/duet-table/duet-table.js +2 -2
  175. package/lib/collection/components/duet-teaser/duet-teaser.js +2 -2
  176. package/lib/collection/components/duet-textarea/duet-textarea.css +8 -0
  177. package/lib/collection/components/duet-textarea/duet-textarea.js +35 -6
  178. package/lib/collection/components/duet-toggle/duet-toggle.js +3 -3
  179. package/lib/collection/components/duet-toolbar/duet-toolbar.js +2 -2
  180. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.js +4 -4
  181. package/lib/collection/components/duet-toolbar-dropdown-link/duet-toolbar-dropdown-link.js +2 -2
  182. package/lib/collection/components/duet-toolbar-item/duet-toolbar-item.js +3 -3
  183. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.js +2 -2
  184. package/lib/collection/components/duet-tooltip/duet-tooltip-button.css +6 -0
  185. package/lib/collection/components/duet-tooltip/duet-tooltip-button.js +3 -3
  186. package/lib/collection/components/duet-tooltip/duet-tooltip-popup.js +3 -3
  187. package/lib/collection/components/duet-tray/duet-tray.js +2 -2
  188. package/lib/collection/components/duet-upload/duet-upload.js +2 -2
  189. package/lib/collection/components/duet-upload-aria-status/duet-upload-aria-status.js +1 -1
  190. package/lib/collection/components/duet-upload-item/duet-upload-item.js +2 -2
  191. package/lib/collection/components/duet-visually-hidden/duet-visually-hidden.js +1 -1
  192. package/lib/duet/duet.esm.js +1 -1
  193. package/lib/duet/{p-4695398d.entry.js → p-01a6e993.entry.js} +1 -1
  194. package/lib/duet/{p-e3d91f53.entry.js → p-0476dabc.entry.js} +1 -1
  195. package/lib/duet/{p-05a6360b.entry.js → p-06e879d2.entry.js} +1 -1
  196. package/lib/duet/p-0f433f55.entry.js +4 -0
  197. package/lib/duet/{p-5fc88879.entry.js → p-126b3fd0.entry.js} +1 -1
  198. package/lib/duet/p-1566e2ec.entry.js +4 -0
  199. package/lib/duet/{p-a6dc8c7d.entry.js → p-1956dd8e.entry.js} +1 -1
  200. package/lib/duet/{p-8b9ffff4.entry.js → p-1db9e784.entry.js} +1 -1
  201. package/lib/duet/{p-b2f0905a.entry.js → p-1deed1aa.entry.js} +1 -1
  202. package/lib/duet/{p-f264879d.entry.js → p-27894857.entry.js} +1 -1
  203. package/lib/duet/{p-868647de.entry.js → p-2c2e7c9b.entry.js} +1 -1
  204. package/lib/duet/{p-6865e880.entry.js → p-2c465a03.entry.js} +1 -1
  205. package/lib/duet/p-2d780739.entry.js +4 -0
  206. package/lib/duet/{p-9987420d.entry.js → p-2f092aed.entry.js} +1 -1
  207. package/lib/duet/p-304af2e5.entry.js +4 -0
  208. package/lib/duet/{p-0df7094e.entry.js → p-34d16cbb.entry.js} +1 -1
  209. package/lib/duet/p-34ec25cb.entry.js +4 -0
  210. package/lib/duet/{p-430fad4e.entry.js → p-37d5a3c5.entry.js} +1 -1
  211. package/lib/duet/{p-e9a7215b.entry.js → p-3932a89b.entry.js} +1 -1
  212. package/lib/duet/{p-4bc7198d.entry.js → p-3c8d76e2.entry.js} +1 -1
  213. package/lib/duet/{p-9d41df85.entry.js → p-3d454072.entry.js} +1 -1
  214. package/lib/duet/{p-c5c63d0f.entry.js → p-3e66035d.entry.js} +1 -1
  215. package/lib/duet/p-471d4d75.entry.js +4 -0
  216. package/lib/duet/{p-ccaf5c28.entry.js → p-4ddf8009.entry.js} +1 -1
  217. package/lib/duet/{p-047af1e2.entry.js → p-5044e0ed.entry.js} +1 -1
  218. package/lib/duet/{p-c26e2123.entry.js → p-5103d5f4.entry.js} +1 -1
  219. package/lib/duet/{p-f959ca52.entry.js → p-51693a7c.entry.js} +1 -1
  220. package/lib/duet/{p-b58cfa18.entry.js → p-54bfe081.entry.js} +1 -1
  221. package/lib/duet/p-588e75cd.entry.js +4 -0
  222. package/lib/duet/{p-feae1702.entry.js → p-5d70e259.entry.js} +1 -1
  223. package/lib/duet/p-618cfeef.entry.js +4 -0
  224. package/lib/duet/{p-8ea85c31.entry.js → p-6449b1cc.entry.js} +1 -1
  225. package/lib/duet/{p-a944ffff.entry.js → p-6502a274.entry.js} +1 -1
  226. package/lib/duet/p-69a72f22.entry.js +4 -0
  227. package/lib/duet/{p-d78923f9.entry.js → p-6e4536e3.entry.js} +1 -1
  228. package/lib/duet/p-6ed52261.entry.js +4 -0
  229. package/lib/duet/{p-b4a1c719.entry.js → p-712adcec.entry.js} +1 -1
  230. package/lib/duet/{p-c49a72ad.entry.js → p-79afa773.entry.js} +1 -1
  231. package/lib/duet/p-7d61dc62.entry.js +4 -0
  232. package/lib/duet/p-7f9de2a6.entry.js +4 -0
  233. package/lib/duet/{p-f17438c7.entry.js → p-870d3c78.entry.js} +1 -1
  234. package/lib/duet/{p-017873ec.entry.js → p-88bf42dc.entry.js} +1 -1
  235. package/lib/duet/{p-2013545d.entry.js → p-88e65283.entry.js} +1 -1
  236. package/lib/duet/{p-8ad4bb4c.entry.js → p-8aaf283d.entry.js} +1 -1
  237. package/lib/duet/p-8d939074.entry.js +4 -0
  238. package/lib/duet/{p-84ed366e.entry.js → p-908fca79.entry.js} +1 -1
  239. package/lib/duet/{p-1358a396.entry.js → p-93080f2d.entry.js} +1 -1
  240. package/lib/duet/{p-b9e97305.entry.js → p-94d057ea.entry.js} +1 -1
  241. package/lib/duet/{p-8da66626.entry.js → p-99367980.entry.js} +1 -1
  242. package/lib/duet/{p-2f0f3a4a.entry.js → p-9a248faf.entry.js} +1 -1
  243. package/lib/duet/p-9d405b35.entry.js +4 -0
  244. package/lib/duet/{p-058fcc72.entry.js → p-9ed154f5.entry.js} +1 -1
  245. package/lib/duet/{p-DtprEjjN.js → p-B1GzOTNZ.js} +1 -1
  246. package/lib/duet/p-BQTM1aqo.js +4 -0
  247. package/lib/duet/{p-D4MpGrUR.js → p-CdcBxXLd.js} +1 -1
  248. package/lib/duet/p-CirNV9Vh.js +4 -0
  249. package/lib/duet/{p-B0XOGsB6.js → p-Cj9zQLn2.js} +1 -1
  250. package/lib/duet/p-D3ladndz.js +4 -0
  251. package/lib/duet/p-D4pJQwPW.js +4 -0
  252. package/lib/duet/p-Dbe-q7B5.js +4 -0
  253. package/lib/duet/{p-DSNAI2Lx.js → p-DmLE9-rw.js} +1 -1
  254. package/lib/duet/p-DoEOuTZj.js +4 -0
  255. package/lib/duet/{p-420df0aa.entry.js → p-a2514ad4.entry.js} +1 -1
  256. package/lib/duet/{p-a2f7ef35.entry.js → p-a4a3febe.entry.js} +1 -1
  257. package/lib/duet/p-a517cdce.entry.js +4 -0
  258. package/lib/duet/{p-0acf9bcf.entry.js → p-a70bb08d.entry.js} +1 -1
  259. package/lib/duet/{p-1498e4a8.entry.js → p-aa2c3e0a.entry.js} +1 -1
  260. package/lib/duet/{p-0c42cc61.entry.js → p-af7b2954.entry.js} +1 -1
  261. package/lib/duet/{p-1ec31f22.entry.js → p-b37d4985.entry.js} +1 -1
  262. package/lib/duet/{p-fb59f80d.entry.js → p-b4cf5f14.entry.js} +1 -1
  263. package/lib/duet/{p-ebe55a34.entry.js → p-b6233e75.entry.js} +1 -1
  264. package/lib/duet/{p-07d43c60.entry.js → p-b97098a6.entry.js} +1 -1
  265. package/lib/duet/{p-aebcf484.entry.js → p-bd0263e4.entry.js} +1 -1
  266. package/lib/duet/{p-69bcb076.entry.js → p-beaa4612.entry.js} +1 -1
  267. package/lib/duet/{p-a2106abd.entry.js → p-c15c8dd2.entry.js} +1 -1
  268. package/lib/duet/{p-b7351bfd.entry.js → p-c223cd3e.entry.js} +1 -1
  269. package/lib/duet/{p-b7bb7472.entry.js → p-c35ae5a0.entry.js} +1 -1
  270. package/lib/duet/{p-b5204ec2.entry.js → p-c435bb67.entry.js} +1 -1
  271. package/lib/duet/p-c6e3723f.entry.js +4 -0
  272. package/lib/duet/{p-a62e6d8d.entry.js → p-c7b32952.entry.js} +1 -1
  273. package/lib/duet/p-c95669be.entry.js +4 -0
  274. package/lib/duet/{p-9dee0205.entry.js → p-c987a644.entry.js} +1 -1
  275. package/lib/duet/p-c9b8c2ba.entry.js +4 -0
  276. package/lib/duet/{p-3ce04abc.entry.js → p-c9bdf927.entry.js} +1 -1
  277. package/lib/duet/{p-b3a7ef62.entry.js → p-cdf0fb4c.entry.js} +1 -1
  278. package/lib/duet/p-d069edf1.entry.js +4 -0
  279. package/lib/duet/p-ddafe27d.entry.js +4 -0
  280. package/lib/duet/{p-fb0f6212.entry.js → p-dfdec452.entry.js} +1 -1
  281. package/lib/duet/{p-f89da74c.entry.js → p-e0f729ad.entry.js} +1 -1
  282. package/lib/duet/{p-bef7eed7.entry.js → p-e32af858.entry.js} +1 -1
  283. package/lib/duet/{p-68a9ffb5.entry.js → p-e353daaf.entry.js} +1 -1
  284. package/lib/duet/p-e5dbac7a.entry.js +4 -0
  285. package/lib/duet/{p-f647f09e.entry.js → p-ec2dcb1b.entry.js} +1 -1
  286. package/lib/duet/{p-0ab559fb.entry.js → p-ed7fbc44.entry.js} +1 -1
  287. package/lib/duet/{p-76e2c659.entry.js → p-ef6ce9dc.entry.js} +1 -1
  288. package/lib/duet/{p-2b17c517.entry.js → p-fcb9c0db.entry.js} +1 -1
  289. package/lib/duet/{p-e78af675.entry.js → p-fe821e46.entry.js} +1 -1
  290. package/lib/duet/p-qboSQpUe.js +4 -0
  291. package/lib/esm/{a11y-utils-DZqe1lDK.js → a11y-utils-DbDY4hy4.js} +1 -1
  292. package/lib/esm/{app-globals-Byl9AdI1.js → app-globals-COfbcvxE.js} +1 -1
  293. package/lib/esm/duet-action-button.entry.js +3 -3
  294. package/lib/esm/duet-alert.entry.js +4 -4
  295. package/lib/esm/duet-badge.entry.js +6 -6
  296. package/lib/esm/duet-banner.entry.js +4 -4
  297. package/lib/esm/duet-breadcrumb.entry.js +6 -6
  298. package/lib/esm/duet-breadcrumbs.entry.js +5 -5
  299. package/lib/esm/duet-button_2.entry.js +5 -5
  300. package/lib/esm/duet-callout.entry.js +5 -5
  301. package/lib/esm/duet-caption_4.entry.js +10 -10
  302. package/lib/esm/duet-card.entry.js +5 -5
  303. package/lib/esm/duet-checkbox.entry.js +3 -3
  304. package/lib/esm/duet-checkmark.entry.js +4 -4
  305. package/lib/esm/duet-chip.entry.js +3 -3
  306. package/lib/esm/duet-choice_2.entry.js +16 -7
  307. package/lib/esm/duet-collapsible.entry.js +3 -3
  308. package/lib/esm/duet-combobox.entry.js +31 -14
  309. package/lib/esm/duet-contact-card.entry.js +6 -6
  310. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  311. package/lib/esm/duet-date-picker.entry.js +17 -13
  312. package/lib/esm/duet-divider_2.entry.js +3 -3
  313. package/lib/esm/duet-editable-table_3.entry.js +8 -8
  314. package/lib/esm/duet-empty-state.entry.js +2 -2
  315. package/lib/esm/duet-fieldset.entry.js +6 -6
  316. package/lib/esm/duet-file-chooser.entry.js +2 -2
  317. package/lib/esm/duet-footer.entry.js +4 -4
  318. package/lib/esm/duet-grid_2.entry.js +4 -4
  319. package/lib/esm/duet-header_2.entry.js +3 -3
  320. package/lib/esm/duet-hero.entry.js +5 -5
  321. package/lib/esm/duet-icon.entry.js +5 -5
  322. package/lib/esm/duet-indicator.entry.js +3 -3
  323. package/lib/esm/duet-input_2.entry.js +33 -19
  324. package/lib/esm/duet-layout.entry.js +2 -2
  325. package/lib/esm/duet-list_2.entry.js +4 -4
  326. package/lib/esm/duet-menu-bar-button.entry.js +4 -4
  327. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +4 -4
  328. package/lib/esm/duet-menu-bar-dropdown.entry.js +6 -6
  329. package/lib/esm/duet-menu-bar-item.entry.js +7 -7
  330. package/lib/esm/duet-menu-bar-link.entry.js +4 -4
  331. package/lib/esm/duet-menu-bar.entry.js +3 -3
  332. package/lib/esm/duet-modal.entry.js +12 -13
  333. package/lib/esm/duet-multiselect.entry.js +10 -10
  334. package/lib/esm/duet-nav.entry.js +3 -3
  335. package/lib/esm/duet-notification_2.entry.js +9 -9
  336. package/lib/esm/duet-number-input.entry.js +8 -8
  337. package/lib/esm/duet-overlay.entry.js +3 -3
  338. package/lib/esm/duet-page-heading.entry.js +6 -6
  339. package/lib/esm/duet-pagination_2.entry.js +16 -16
  340. package/lib/esm/duet-panel.entry.js +4 -4
  341. package/lib/esm/duet-phone-input.entry.js +13 -5
  342. package/lib/esm/duet-popup-menu_2.entry.js +22 -13
  343. package/lib/esm/duet-progress.entry.js +3 -3
  344. package/lib/esm/duet-promo-card.entry.js +6 -6
  345. package/lib/esm/duet-radio_2.entry.js +7 -7
  346. package/lib/esm/duet-range-slider.entry.js +6 -6
  347. package/lib/esm/duet-scrollable_3.entry.js +15 -15
  348. package/lib/esm/duet-section-layout.entry.js +4 -4
  349. package/lib/esm/duet-select.entry.js +9 -9
  350. package/lib/esm/duet-shaped-image.entry.js +4 -4
  351. package/lib/esm/duet-share-chart-item.entry.js +2 -2
  352. package/lib/esm/duet-share-chart.entry.js +6 -6
  353. package/lib/esm/duet-show-more.entry.js +5 -5
  354. package/lib/esm/duet-slideout-lang.entry.js +4 -4
  355. package/lib/esm/duet-slideout-link.entry.js +7 -7
  356. package/lib/esm/duet-slideout-panel-dropdown.entry.js +6 -6
  357. package/lib/esm/duet-slideout-panel.entry.js +11 -11
  358. package/lib/esm/duet-slideout.entry.js +10 -10
  359. package/lib/esm/duet-status-icon.entry.js +3 -3
  360. package/lib/esm/duet-step_2.entry.js +6 -6
  361. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +4 -4
  362. package/lib/esm/duet-submenu-bar-dropdown.entry.js +6 -6
  363. package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
  364. package/lib/esm/duet-submenu-bar-link.entry.js +3 -3
  365. package/lib/esm/duet-submenu-bar.entry.js +7 -7
  366. package/lib/esm/duet-teaser.entry.js +6 -6
  367. package/lib/esm/duet-textarea.entry.js +20 -11
  368. package/lib/esm/duet-toggle.entry.js +8 -8
  369. package/lib/esm/duet-toolbar-dropdown-link.entry.js +4 -4
  370. package/lib/esm/duet-toolbar-dropdown.entry.js +6 -6
  371. package/lib/esm/duet-toolbar-item.entry.js +8 -8
  372. package/lib/esm/duet-toolbar-link.entry.js +4 -4
  373. package/lib/esm/duet-toolbar.entry.js +4 -4
  374. package/lib/esm/duet-tooltip-button_2.entry.js +10 -10
  375. package/lib/esm/duet-tooltip.entry.js +5 -5
  376. package/lib/esm/duet-tray.entry.js +5 -5
  377. package/lib/esm/duet-upload-aria-status.entry.js +2 -2
  378. package/lib/esm/duet-upload-item.entry.js +6 -6
  379. package/lib/esm/duet-visually-hidden.entry.js +2 -2
  380. package/lib/esm/duet.js +4 -4
  381. package/lib/esm/{errorcodes.utils-KA3z1KuW.js → errorcodes.utils-0XnfYFAn.js} +1 -1
  382. package/lib/esm/{floating-ui.dom.browser.min-B_NkY9T0.js → floating-ui.dom.browser.min-BQTM1aqo.js} +83 -1
  383. package/lib/esm/{focus-utils-id9x3opi.js → focus-utils-BwoMMpkj.js} +1 -1
  384. package/lib/esm/{index-D4MpGrUR.js → index-CdcBxXLd.js} +1 -1
  385. package/lib/esm/{label-Caev3m-F.js → label-D835wXCb.js} +1 -1
  386. package/lib/esm/{language-utils-DTyUbpD-.js → language-utils-C-lpMyP9.js} +1 -1
  387. package/lib/esm/loader.js +4 -4
  388. package/lib/esm/{picture-utils-4PMNZDR2.js → picture-utils-Cl2qK3GJ.js} +1 -1
  389. package/lib/esm/{slot-utils-BhEk4zKY.js → slot-utils-BSS0Em_Z.js} +1 -1
  390. package/lib/esm/{themeable-component-B_d7Klmd.js → themeable-component-DQtSOD4i.js} +1 -1
  391. package/lib/types/components/duet-combobox/duet-combobox.d.ts +2 -0
  392. package/lib/types/components/duet-date-picker/duet-date-picker.d.ts +5 -1
  393. package/lib/types/components/duet-input/duet-input.d.ts +11 -1
  394. package/lib/types/components/duet-number-input/duet-number-input.d.ts +4 -0
  395. package/lib/types/components/duet-phone-input/duet-phone-input.d.ts +1 -0
  396. package/lib/types/components/duet-textarea/duet-textarea.d.ts +8 -1
  397. package/lib/types/components.d.ts +48 -10
  398. package/package.json +5 -5
  399. package/lib/duet/p-05b5ef84.entry.js +0 -4
  400. package/lib/duet/p-10baba94.entry.js +0 -4
  401. package/lib/duet/p-16d5dd2c.entry.js +0 -4
  402. package/lib/duet/p-2265c46a.entry.js +0 -4
  403. package/lib/duet/p-2394b3cd.entry.js +0 -4
  404. package/lib/duet/p-453001ea.entry.js +0 -4
  405. package/lib/duet/p-4e028274.entry.js +0 -4
  406. package/lib/duet/p-5be103d0.entry.js +0 -4
  407. package/lib/duet/p-5e5b6dc7.entry.js +0 -4
  408. package/lib/duet/p-71da8fbe.entry.js +0 -4
  409. package/lib/duet/p-7f5387dd.entry.js +0 -4
  410. package/lib/duet/p-940a87e7.entry.js +0 -4
  411. package/lib/duet/p-99550717.entry.js +0 -4
  412. package/lib/duet/p-B44ykle6.js +0 -4
  413. package/lib/duet/p-B5SMAn1G.js +0 -4
  414. package/lib/duet/p-BAiGBGTO.js +0 -4
  415. package/lib/duet/p-BWz_ChlU.js +0 -4
  416. package/lib/duet/p-B_NkY9T0.js +0 -4
  417. package/lib/duet/p-Bnup2-sN.js +0 -4
  418. package/lib/duet/p-C6rGA5IU.js +0 -4
  419. package/lib/duet/p-a2a2f775.entry.js +0 -4
  420. package/lib/duet/p-b69946d4.entry.js +0 -4
  421. package/lib/duet/p-bb7fa0cf.entry.js +0 -4
  422. package/lib/duet/p-bffae8f6.entry.js +0 -4
  423. package/lib/duet/p-c9a12663.entry.js +0 -4
  424. package/lib/duet/p-d8383f1a.entry.js +0 -4
  425. package/lib/duet/p-ef340dc6.entry.js +0 -4
  426. package/lib/duet/p-f61ebeb1.entry.js +0 -4
@@ -146,7 +146,16 @@ export class DuetChoiceGroup {
146
146
  var _a;
147
147
  const value = (_a = this.value) !== null && _a !== void 0 ? _a : this.initialValue;
148
148
  const allChoices = Array.from(this.element.querySelectorAll("duet-choice"));
149
- const ownChoices = allChoices.filter(choice => !allChoices.includes(choice.parentElement.closest("duet-choice")));
149
+ const ownChoices = allChoices
150
+ .filter(choice => !allChoices.includes(choice.parentElement.closest("duet-choice")))
151
+ .filter(ownChoice => {
152
+ if (ownChoice.type === "checkbox") {
153
+ console.error("Choice Group must consist of type=radio Choices. Choise type=checkbox is not allowed. They will be removed in a future Duet version", ownChoice);
154
+ // ownChoice.remove()
155
+ return false;
156
+ }
157
+ return true;
158
+ });
150
159
  let hasChecked = false;
151
160
  this.choices.clear();
152
161
  ownChoices.forEach(choice => this.choices.add(choice));
@@ -181,14 +190,14 @@ export class DuetChoiceGroup {
181
190
  * Always the last one in the class.
182
191
  */
183
192
  render() {
184
- return (h(Host, { key: 'd310a51e8554b474adaaa10b91392effcac7e189', onDuetChange: this.onSelect, onDuetChoiceReady: this.onChoiceReady, class: {
193
+ return (h(Host, { key: 'bef9e6aed77ae942a881822af3fd9b2fd340088b', onDuetChange: this.onSelect, onDuetChoiceReady: this.onChoiceReady, class: {
185
194
  horizontal: this.direction === "horizontal",
186
195
  "duet-choice-group-breakpoint-x-small": this.responsive && this.breakpoint === "x-small",
187
196
  "duet-choice-group-breakpoint-small": this.responsive && this.breakpoint === "small",
188
197
  "duet-choice-group-breakpoint-medium": this.responsive && this.breakpoint === "medium",
189
198
  "duet-choice-group-breakpoint-large": this.responsive && this.breakpoint === "large",
190
199
  "duet-choice-group-breakpoint-x-large": this.responsive && this.breakpoint === "x-large",
191
- } }, h("duet-fieldset", { key: 'a107c1b68c3227d3236020bb9721218f1be052fd', label: this.label, labelHidden: this.labelHidden, compactLabel: true, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (h("duet-tooltip", { key: '0e45f60e7b2ebe7f30f0f87216bbcc176244f80a', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: 'd129fc812d0be8450b08588910c30be0b4db8a02', name: "tooltip", slot: "tooltip" }), h("div", { key: 'e2ca5fd41342dd4b38442fbb718f2a06c1ba3237', class: { [this.choiceGroupName]: true, "duet-no-stacking": !this.responsive } }, h("slot", { key: '12f74fdf5360122b6d5fef83495ba68dede524da' })))));
200
+ } }, h("duet-fieldset", { key: '18197d3bbcf9772c85e002a0df25e9df79dcb3a7', label: this.label, labelHidden: this.labelHidden, compactLabel: true, caption: this.caption, error: this.error, margin: this.margin, theme: this.theme, "accessible-live-error": this.accessibleLiveError }, this.tooltip && (h("duet-tooltip", { key: 'f9a555c68c6f7312e0941a16752f5c2b3e488e93', slot: "tooltip", direction: this.tooltipDirection, accessibleInputLabel: this.label }, this.tooltip)), h("slot", { key: '041c890f290b5ecd750edd189288cfb2769aa60b', name: "tooltip", slot: "tooltip" }), h("div", { key: '01d3e4cad179c9aa864c80557831cbf10bf2b0f2', class: { [this.choiceGroupName]: true, "duet-no-stacking": !this.responsive } }, h("slot", { key: '87f9ea13d22d029ba9025572432ebdde96456838' })))));
192
201
  }
193
202
  static get is() { return "duet-choice-group"; }
194
203
  static get encapsulation() { return "shadow"; }
@@ -14,5 +14,5 @@ export const DuetComboBoxSelect = ({ item, activeDescendant, selected, label = u
14
14
  .map(term => regexEscape(term));
15
15
  const regEx = search !== "" ? new RegExp(`(${searchTerms.join("|")})`, "i") : undefined;
16
16
  const highlightStyle = "text-decoration: underline";
17
- return (h("duet-popup-menu-item", { id: activeDescendant ? id : "", active: selected, "data-index": item.id, "aria-selected": activeDescendant ? "true" : undefined, "aria-current": selected ? "true" : undefined, role: "option", "aria-label": label, tabindex: isAndroidDevice ? "-1" : null, onClick: e => clickHandler(e), onKeyUp: e => keyHandler(e), accessibleRole: "option", activeDescendant: activeDescendant }, regEx ? (h("span", { class: "option-container", "aria-hidden": "true" }, h("span", { innerHTML: item.name.replace(regEx, `<span style="${highlightStyle}">$&</span>`) }))) : (item.name), item.tags && h("span", { class: "option-tags" }, item.tags.join(", "))));
17
+ return (h("duet-popup-menu-item", { id: activeDescendant ? id : "", active: selected, "data-index": item.id, "aria-selected": selected ? "true" : undefined, "aria-current": activeDescendant ? "true" : undefined, role: "option", "aria-label": label, tabindex: isAndroidDevice ? "-1" : null, onClick: e => clickHandler(e), onKeyUp: e => keyHandler(e), accessibleRole: "option", activeDescendant: activeDescendant }, regEx ? (h("span", { class: "option-container", "aria-hidden": "true" }, h("span", { innerHTML: item.name.replace(regEx, `<span style="${highlightStyle}">$&</span>`) }))) : (item.name), item.tags && h("span", { class: "option-tags" }, item.tags.join(", "))));
18
18
  };
@@ -38,6 +38,7 @@ export class DuetCombobox {
38
38
  // the activeItem number is based upon the array.index of the array stored in processedItems
39
39
  this.activeItem = undefined;
40
40
  this.activeItemAnnouncement = "";
41
+ this.optionsFoundAnnouncement = "";
41
42
  /**
42
43
  * Defaults for the accessible labels for the select items
43
44
  */
@@ -45,17 +46,23 @@ export class DuetCombobox {
45
46
  en: {
46
47
  heading: "Select:",
47
48
  item: "{name}",
48
- itemFiltered: "{name}, {hiddenItems} filtered",
49
+ activeItemLabel: "{name}, {current} / {total}",
50
+ optionsFound: "{optionCount} options found",
51
+ noOptionsFound: "No options found",
49
52
  },
50
53
  fi: {
51
54
  heading: "Valitse:",
52
55
  item: "{name}",
53
- itemFiltered: "{name}, {hiddenItems} suodatettu",
56
+ activeItemLabel: "{name}, {current} / {total}",
57
+ optionsFound: "{optionCount}, valintaa löydetty", // extra comma to prevent unwanted conjugation
58
+ noOptionsFound: "Yhtään valintaa ei löydy",
54
59
  },
55
60
  sv: {
56
61
  heading: "Välj:",
57
62
  item: "{name}",
58
- itemFiltered: "{name}, {hiddenItems} filtrerade",
63
+ activeItemLabel: "{name}, {current} / {total}",
64
+ optionsFound: "{optionCount} val hittades",
65
+ noOptionsFound: "Inget val hittades",
59
66
  },
60
67
  };
61
68
  /**
@@ -131,6 +138,7 @@ export class DuetCombobox {
131
138
  }
132
139
  });
133
140
  };
141
+ this.optionsFoundTimeoutId = 0;
134
142
  this.onInputTyping = async (e) => {
135
143
  var _a;
136
144
  const newValue = e.detail.value;
@@ -140,7 +148,14 @@ export class DuetCombobox {
140
148
  if (!this.multiple && newValue === "") {
141
149
  this.value = undefined;
142
150
  }
143
- this.listOpen = String(newValue).length >= this.minCharacters && ((_a = this.getFilteredItems()) === null || _a === void 0 ? void 0 : _a.length) > 0;
151
+ const filteredItemsCount = ((_a = this.getFilteredItems()) === null || _a === void 0 ? void 0 : _a.length) || 0;
152
+ this.listOpen = String(newValue).length >= this.minCharacters && filteredItemsCount > 0;
153
+ clearTimeout(this.optionsFoundTimeoutId);
154
+ this.optionsFoundTimeoutId = setTimeout(() => {
155
+ this.optionsFoundAnnouncement = filteredItemsCount
156
+ ? this.accessibleLabels.optionsFound.replace("{optionCount}", `${filteredItemsCount}`)
157
+ : this.accessibleLabels.noOptionsFound;
158
+ }, 1000);
144
159
  };
145
160
  this.onKeyDown = (e) => {
146
161
  var _a, _b, _c;
@@ -363,6 +378,7 @@ export class DuetCombobox {
363
378
  this.input.accessibleExpanded = this.listOpen ? "true" : "false";
364
379
  this.input.accessibleAutocomplete = "list";
365
380
  this.input.accessibleControls = this.listBoxId;
381
+ this.input.spellcheck = false;
366
382
  this.input.id = this.inputId;
367
383
  this.element.addEventListener("keydown", this.onKeyDown);
368
384
  connectLanguageChangeObserver(this, { prop: "accessibleLabels", defaults: "accessibleLabelDefaults" });
@@ -379,6 +395,7 @@ export class DuetCombobox {
379
395
  if (Build.isServer) {
380
396
  return;
381
397
  }
398
+ clearTimeout(this.optionsFoundTimeoutId);
382
399
  this.input.removeEventListener("duetChange", this.onInputChange);
383
400
  this.element.removeEventListener("click", this.onInputClick);
384
401
  this.element.removeEventListener("keydown", this.onKeyDown);
@@ -549,7 +566,8 @@ export class DuetCombobox {
549
566
  }
550
567
  //function that scrolls to the li element with the class "active"
551
568
  scrollToActive() {
552
- const activeElement = document.getElementById(`${this.activeDescendantId}`);
569
+ var _a;
570
+ const activeElement = (_a = this.element.shadowRoot) === null || _a === void 0 ? void 0 : _a.getElementById(`${this.activeDescendantId}`);
553
571
  if (activeElement) {
554
572
  activeElement.scrollIntoView({
555
573
  behavior: "smooth",
@@ -561,12 +579,11 @@ export class DuetCombobox {
561
579
  if (!item || itemsLength === undefined) {
562
580
  return "";
563
581
  }
564
- const labelString = length === itemsLength ? this.accessibleLabels.item : this.accessibleLabels.itemFiltered;
582
+ const labelString = length === itemsLength ? this.accessibleLabels.item : this.accessibleLabels.activeItemLabel;
565
583
  return labelString
566
584
  .replace("{name}", String(item.name))
567
585
  .replace("{current}", String(itemIndex + 1))
568
- .replace("{total}", String(length))
569
- .replace("{hiddenItems}", String(itemsLength - length));
586
+ .replace("{total}", String(length));
570
587
  }
571
588
  /**
572
589
  * Filter the items based on the input value
@@ -640,7 +657,7 @@ export class DuetCombobox {
640
657
  return (h(Host, { class: {
641
658
  "duet-combobox": true,
642
659
  [`duet-theme-${this.theme}`]: true,
643
- } }, h("slot", null), h("duet-visually-hidden", null, h("span", { "aria-live": "assertive", "aria-atomic": "true" }, this.activeItemAnnouncement)), h("div", null, h("duet-popup-menu", { id: this.listBoxId, controller: this.popupMenuController, ref: el => (this.listContainer = el), accessibleRole: "listbox", allowVerticalFlip: false, mainAxisOffset: verticalOffset, crossAxisOffset: horizontalOffset, class: { "duet-skip-teleport-inert": this.isInsideModal } }, h("div", { class: "combobox-menu-container", style: this.getMenuContainerStyles() }, this.listOpen &&
660
+ } }, h("slot", null), h("duet-visually-hidden", null, h("span", { "aria-live": "polite", "aria-atomic": "true" }, this.optionsFoundAnnouncement), h("span", { "aria-live": "assertive", "aria-atomic": "true" }, this.activeItemAnnouncement)), h("div", null, h("duet-popup-menu", { id: this.listBoxId, controller: this.popupMenuController, ref: el => (this.listContainer = el), accessibleRole: "listbox", allowVerticalFlip: false, mainAxisOffset: verticalOffset, crossAxisOffset: horizontalOffset, class: { "duet-skip-teleport-inert": this.isInsideModal } }, h("div", { class: "combobox-menu-container", style: this.getMenuContainerStyles() }, this.listOpen &&
644
661
  selectElements.map((item, index) => {
645
662
  return (h(DuetComboBoxSelect, { id: this.activeDescendantId, item: item, activeDescendant: index === this.activeItem, selected: this.selectedItems.has(item.id), search: this.inputValue, clickHandler: e => this.onListClick(e, item), label: this.formatLabel(item, index, selectElements.length, this.processedItems.length), isAndroidDevice: this.isAndroidDevice }));
646
663
  }), h("duet-spacer", { size: "x-small" }))))));
@@ -683,7 +700,7 @@ export class DuetCombobox {
683
700
  "getter": false,
684
701
  "setter": false,
685
702
  "reflect": false,
686
- "defaultValue": "{\n en: {\n heading: \"Select:\",\n item: \"{name}\",\n itemFiltered: \"{name}, {hiddenItems} filtered\",\n },\n fi: {\n heading: \"Valitse:\",\n item: \"{name}\",\n itemFiltered: \"{name}, {hiddenItems} suodatettu\",\n },\n sv: {\n heading: \"V\u00E4lj:\",\n item: \"{name}\",\n itemFiltered: \"{name}, {hiddenItems} filtrerade\",\n },\n }"
703
+ "defaultValue": "{\n en: {\n heading: \"Select:\",\n item: \"{name}\",\n activeItemLabel: \"{name}, {current} / {total}\",\n optionsFound: \"{optionCount} options found\",\n noOptionsFound: \"No options found\",\n },\n fi: {\n heading: \"Valitse:\",\n item: \"{name}\",\n activeItemLabel: \"{name}, {current} / {total}\",\n optionsFound: \"{optionCount}, valintaa l\u00F6ydetty\", // extra comma to prevent unwanted conjugation\n noOptionsFound: \"Yht\u00E4\u00E4n valintaa ei l\u00F6ydy\",\n },\n sv: {\n heading: \"V\u00E4lj:\",\n item: \"{name}\",\n activeItemLabel: \"{name}, {current} / {total}\",\n optionsFound: \"{optionCount} val hittades\",\n noOptionsFound: \"Inget val hittades\",\n },\n }"
687
704
  },
688
705
  "accessibleLabels": {
689
706
  "type": "unknown",
@@ -954,7 +971,8 @@ export class DuetCombobox {
954
971
  "popupMenuController": {},
955
972
  "selectedItems": {},
956
973
  "activeItem": {},
957
- "activeItemAnnouncement": {}
974
+ "activeItemAnnouncement": {},
975
+ "optionsFoundAnnouncement": {}
958
976
  };
959
977
  }
960
978
  static get events() {
@@ -59,10 +59,10 @@ export class DuetContactCard {
59
59
  },
60
60
  sources: parsePossibleJSON(this.sources),
61
61
  };
62
- return (h(Host, { key: 'e33b5a9345cc0e38336978b22b5a5e833bb03bb9', class: { "duet-m-0": this.margin === "none" } }, h("div", { key: '836de470febdb6a96d024a08f55a25a62392b350', class: {
62
+ return (h(Host, { key: '04096609d15dbb158a385792f711da26ee95dd95', class: { "duet-m-0": this.margin === "none" } }, h("div", { key: 'a0878e116a425a2ed9652904f7bc7d3d93544354', class: {
63
63
  "duet-contact-card": true,
64
64
  "duet-theme-turva": this.theme === "turva",
65
- }, role: "group", "aria-label": this.name }, this.image ? h(DuetPicture, Object.assign({}, pictureSource)) : h("div", null), h("div", { key: '7b0b31acf238f0b6c8a8579bc22f5f819fa794a3' }, this.name && (h("duet-heading", { key: '03c95063f1c164feeee6d7ffec8050e76a863065', class: "name", level: "h3", margin: "none", theme: theme }, this.name)), this.description && (h("duet-paragraph", { key: '35343cc1d650f5f6f83d1c98db2e7d5d8df32232', class: "description", margin: "none", theme: theme }, this.description)), this.email && (h("div", { key: 'a4565eeb9a17b36e5cb086f4a7a071f7da471958', class: "email" }, h("duet-icon", { key: '622531d9bba0fb9991aa5d15577d906aa637fb97', name: "navigation-message", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: 'dc454c0170ea57a3e9e9a1c891cda1852c20330c', url: `mailto:${this.email}`, accessibleLabel: `Email: ${this.email}`, theme: theme }, this.email))), this.phone && (h("div", { key: '8df6d3ba05579ea713093fb7a254c85ea2827f17', class: "phone" }, h("duet-icon", { key: 'c0551285cbe9b64e23ca131cbc6be05efab7bbe1', name: "form-tel", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: 'd3f01bfb37c0120280514925cb386a75f660ee26', url: `tel:${this.phone}`, accessibleLabel: `${this.phoneLabel[this.language]}: ${this.phone}`, theme: theme }, this.phone)))), this.buttonUrl && this.buttonText && (h("div", { key: 'df56d1a6ac897401fa74b40da6f163908dedd2db', class: "call-to-action" }, h("duet-button", { key: 'be684b20bf8f7f976cc2b8934b10650c09dc824d', variation: "default", icon: this.buttonIcon, fixed: true, margin: "none", url: this.buttonUrl, theme: theme }, this.buttonText))), h("div", { key: 'c1719ef0b401fd6d6a189a68ad61a6339f1299c9' }), h("slot", { key: '59366556e70ea407134c67f51da830cab886171d' }))));
65
+ }, role: "group", "aria-label": this.name }, this.image ? h(DuetPicture, Object.assign({}, pictureSource)) : h("div", null), h("div", { key: '152a894a38c39c7f16488b0507ea8a2c139d29c5' }, this.name && (h("duet-heading", { key: '8738ca48c85445b027021dc89b500332a6d6b449', class: "name", level: "h3", margin: "none", theme: theme }, this.name)), this.description && (h("duet-paragraph", { key: 'a9f592ba12df7aeb59c5a5e2fad53ae1e52bab85', class: "description", margin: "none", theme: theme }, this.description)), this.email && (h("div", { key: 'afc1e103364b705e988962ab9edfdd5e0dfbbf5f', class: "email" }, h("duet-icon", { key: '5cf4768948c4b002f742233dc4d4f279bbc45b54', name: "navigation-message", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: 'e2e59421cec8883de026f5f47a6da855545a68ce', url: `mailto:${this.email}`, accessibleLabel: `Email: ${this.email}`, theme: theme }, this.email))), this.phone && (h("div", { key: '5a4085420c24900f3ae971f5cf5b84a91a830da4', class: "phone" }, h("duet-icon", { key: '01c049683d092c7b71fcdbf24b9a8470bd8af2da', name: "form-tel", size: "x-small", color: "primary-dark", margin: "none", theme: theme }), h("duet-link", { key: '99c27b5983a2388e1349de7eb7b7db19d754b475', url: `tel:${this.phone}`, accessibleLabel: `${this.phoneLabel[this.language]}: ${this.phone}`, theme: theme }, this.phone)))), this.buttonUrl && this.buttonText && (h("div", { key: '9996e7c2693ddb274ab8a803e0dc564bfc40c246', class: "call-to-action" }, h("duet-button", { key: 'c0730311ffec7410311d527e75a725332a849ac8', variation: "default", icon: this.buttonIcon, fixed: true, margin: "none", url: this.buttonUrl, theme: theme }, this.buttonText))), h("div", { key: '136c1d0c39ad396194d2f9f7e9ca180e82aa66a7' }), h("slot", { key: 'fc98de9e746468e61a869ed3f4678495fe9df91f' }))));
66
66
  }
67
67
  static get is() { return "duet-contact-card"; }
68
68
  static get encapsulation() { return "shadow"; }
@@ -18,5 +18,5 @@ export const DatePickerDay = ({ focusedDay, today, day, language, onDaySelect, o
18
18
  function handleClick(e) {
19
19
  onDaySelect(e, day);
20
20
  }
21
- return (h("td", { "data-day": printISODate(day), class: { "duet-date-table-cell": true, selected: isSelected }, "aria-label": `${formatterShort.format(day)}${isSelected ? `, ${selectedDayLabel[language]}` : undefined}`, role: "button", tabIndex: isFocused ? 0 : -1, onClick: handleClick, onKeyDown: onKeyboardNavigation, "aria-disabled": isOutsideRange || isDisabled, ref: ref }, h("span", { class: { "duet-date-table-button": true, outside: isOutsideRange, disabled: isDisabled, today: isToday } }, day.getDate())));
21
+ return (h("td", { "data-day": printISODate(day), class: { "duet-date-table-cell": true, selected: isSelected }, "aria-label": `${formatterShort.format(day)}${isSelected ? `, ${selectedDayLabel[language]}` : ""}`, role: "button", tabIndex: isFocused ? 0 : -1, onClick: handleClick, onKeyDown: onKeyboardNavigation, "aria-disabled": isOutsideRange || isDisabled, ref: ref }, h("span", { class: { "duet-date-table-button": true, outside: isOutsideRange, disabled: isDisabled, today: isToday } }, day.getDate())));
22
22
  };
@@ -117,9 +117,13 @@ export class DuetDatePicker {
117
117
  */
118
118
  this.error = "";
119
119
  /**
120
- * Date picker offers built-in error messages for invalid or missing entries. These can be disabled if the application handles those.
120
+ * @deprecated changed from opt-out to opt-in with attribute `enable-built-in-errors`
121
121
  */
122
- this.disableBuiltInErrors = false;
122
+ this.disableBuiltInErrors = true;
123
+ /**
124
+ * Date picker can use built-in error messages for invalid or missing entries if the application does not handle those.
125
+ */
126
+ this.enableBuiltInErrors = false;
123
127
  /**
124
128
  * Visually hide the label, but still show it to screen readers.
125
129
  */
@@ -197,7 +201,7 @@ export class DuetDatePicker {
197
201
  this.handleBlur = (event) => {
198
202
  event.stopPropagation();
199
203
  this.inputHasFocus = false;
200
- if (!this._validity.valid && !this.disableBuiltInErrors) {
204
+ if (!this._validity.valid && this.enableBuiltInErrors) {
201
205
  const errorKey = Object.entries(this._validity).find(entry => !!entry[1])[0];
202
206
  this.error = getLocaleString(this.dateErrorMessages[errorKey]);
203
207
  }
@@ -435,7 +439,7 @@ export class DuetDatePicker {
435
439
  valueMissing,
436
440
  valid: !(valueMissing || badInput || rangeUnderflow || rangeOverflow || customError),
437
441
  };
438
- if (this._validity.valid) {
442
+ if (this._validity.valid && this.enableBuiltInErrors) {
439
443
  this.error = "";
440
444
  }
441
445
  }
@@ -496,13 +500,13 @@ export class DuetDatePicker {
496
500
  if (maxDate) {
497
501
  maxYear = Math.min(maxYear, maxDate.getFullYear());
498
502
  }
499
- return (h(Host, { key: '574a2e443eb79af37f178f46845a206f561cba2e', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, h("div", { key: '62fa53292d9b464c3bfce84805c61abbc729b32c', class: "duet-date" }, h(DatePickerInput, { key: 'fd44ced264f1b867ffa5642a110d118cfd8a7977', hasFocus: this.inputHasFocus, value: this.value, valueAsDate: valueAsDate, formattedValue: this.inputValue, language: this.language, onInput: this.handleInputChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.toggleOpen, name: this.name, disabled: this.disabled, error: this.error, role: this.role, required: this.required, theme: this.theme, tooltip: this.tooltip, tooltipDirection: this.tooltipDirection, labelHidden: this.labelHidden, placeholder: this.placeholder, inputLabel: this.label, identifier: this.identifier, buttonRef: element => (this.datePickerButton = element), inputRef: element => (this.datePickerInput = element), accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy, accessibleLiveError: this.accessibleLiveError, echoPlaceholder: this.echoPlaceholder, caption: this.caption })), h("div", { key: '7db19721a17bc48c0f232de5a91e9aee49435f6b', class: {
503
+ return (h(Host, { key: '2101b93d551d7db95be216d7e8293354201e68fb', class: { "duet-expand": this.expand, "duet-m-0": this.margin === "none" } }, h("div", { key: 'd23a2c29a015fbf53bf97b6f07cc79230ec77ae3', class: "duet-date" }, h(DatePickerInput, { key: '0d7a4f813cb59f576fe7bdf0b5866e60cbaccc71', hasFocus: this.inputHasFocus, value: this.value, valueAsDate: valueAsDate, formattedValue: this.inputValue, language: this.language, onInput: this.handleInputChange, onBlur: this.handleBlur, onFocus: this.handleFocus, onClick: this.toggleOpen, name: this.name, disabled: this.disabled, error: this.error, role: this.role, required: this.required, theme: this.theme, tooltip: this.tooltip, tooltipDirection: this.tooltipDirection, labelHidden: this.labelHidden, placeholder: this.placeholder, inputLabel: this.label, identifier: this.identifier, buttonRef: element => (this.datePickerButton = element), inputRef: element => (this.datePickerInput = element), accessibleActiveDescendant: this.accessibleActiveDescendant, accessibleControls: this.accessibleControls, accessibleOwns: this.accessibleOwns, accessibleDescribedBy: this.accessibleDescribedBy, accessibleLiveError: this.accessibleLiveError, echoPlaceholder: this.echoPlaceholder, caption: this.caption })), h("div", { key: '868801785eb752e7c988273787ba367463f0d2c0', class: {
500
504
  "duet-theme-turva": this.theme === "turva",
501
505
  "duet-date-dialog": true,
502
506
  left: this.direction === "left",
503
507
  error: !!this.error,
504
508
  active: this.open,
505
- }, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, h("duet-overlay", { key: 'b762f7971ef0f3cfdba4338da8b66ddd932d739c', visible: this.open, "display-device": "x-small" }), h(FocusGuard, { key: '116f8a028515e1cabbdfe6c7c4fbe46a366e8417', moveFocusTo: this.focusedDayNode }), h("div", { key: '46df5dc4188ca94f1e9288cc94b369a56a951ee1', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, h("duet-visually-hidden", { key: '1de44e1f4c44b9c97adb419fa7abf60f937b0fa2', "aria-live": "polite" }, text.keyboardInstruction), h("div", { key: '4a36684eab5f83211dcd9f04f240ad535f781376', class: "duet-date-dialog-mobile-header" }, h(DuetInternalLabel, { key: 'ef9877f7fc10b63428437a0ddbc07a787792617b', margin: "none" }, this.label), h("button", { key: '52b087991727aa7c32178aef85a7ff6a88b33f6e', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, h("duet-icon", { key: '9434a8ab91835101fca28fb28d3ba3b5fc768583', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), h("duet-visually-hidden", { key: 'eaa01ae0b3e0270af1ee5b7777c4bf1c823ed55d' }, text.closeLabel))), h("div", { key: '8f59e259985eb3628f23dd8aa4edd90eab33ce45', class: "duet-date-dialog-header" }, h("div", { key: 'fd9e2ffede5b19a2008684f5587663372a769b0f', class: "duet-date-dialog-dropdowns" }, h("duet-visually-hidden", { key: '9bfda8777868d3a1a0b5dfb1146d4bd22ece9b9d' }, h("h2", { key: '4f8171f8b0bfabeb8ef0d44f604c668810572ba8', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), h("duet-visually-hidden", { key: 'f55f26894bef3e11233e3d72b62d70ff5f4f30fc' }, h("label", { key: '01d6cda898862ee9c82f018e4a875a54c8a4454c', htmlFor: this.monthSelectId }, text.monthSelectLabel)), h("div", { key: '758b166665674a916ab6d6b2c9fd78b6f51f27fd', class: "duet-date-dialog-select" }, h("select", { key: '548b2e7615f581454c64c30fe8e8c8d6dfe0d969', id: this.monthSelectId, class: "duet-date-month-select", ref: element => (this.monthSelectNode = element), onChange: this.handleMonthSelect }, text.monthLabels.map((month, i) => (h("option", { key: month, value: i, selected: i === focusedMonth, disabled: !inRange(new Date(focusedYear, i, 1), minDate ? startOfMonth(minDate) : null, maxDate ? endOfMonth(maxDate) : null) }, month)))), h("div", { key: '34d1e610de1d9f1c1436fdf1ffb2294742269696', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", { key: '84d57f82660038e7fb7d631e6eb03be0ef9c4315' }, text.monthLabelsShort[focusedMonth]), h("duet-icon", { key: 'f706752d81c80ae05bf13a19ed6cfa3b2d7262cc', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), h("duet-visually-hidden", { key: 'fb67730ced2246377442fb2fd2ebf5086db34fbd' }, h("label", { key: '0d3d28925711a15b919004ad2384c719b9832f7d', htmlFor: this.yearSelectId }, text.yearSelectLabel)), h("div", { key: '371bb8461b655460da25e9982e17c0385fab8f71', class: "duet-date-dialog-select" }, h("select", { key: 'c466eed369426ad7cc78fbed3278a0523529920c', id: this.yearSelectId, class: "duet-date-year-select", onChange: this.handleYearSelect }, range(minYear, maxYear).map(year => (h("option", { key: year, selected: year === focusedYear }, year)))), h("div", { key: '78db254ed00d0d7b5104f4932415d970ff17e1f4', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", { key: '9a66b0dad5bf39fd769cd851cb529b4568310d9d' }, this.focusedDay.getFullYear()), h("duet-icon", { key: 'a68a8da9385f631020ba28389caf1b611def6676', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), h("div", { key: 'd1dd09f7da7f1e9d50cdd79ae97d13ba4d89be25', class: "duet-date-dialog-buttons" }, h("duet-action-button", { key: 'e7b3c41d7d56f2c24b4e69db80e4c8fc2e0395a2', accessibleLabel: i18n[this.language].prevMonthLabel, actionName: i18n[this.language].prevMonthLabel, class: "duet-date-dialog-prev", onClick: this.handlePreviousMonthClick, disabled: prevMonthDisabled, "icon-name": "action-arrow-left-small" }, text.prevMonthLabel), h("duet-action-button", { key: '980a6a1316a3f0b64a0ae62dd80d3494ea855ae8', accessibleLabel: i18n[this.language].nextMonthLabel, actionName: i18n[this.language].nextMonthLabel, class: "duet-date-dialog-next", onClick: this.handleNextMonthClick, disabled: nextMonthDisabled, "icon-name": "action-arrow-right-small" }, text.nextMonthLabel))), h(DatePickerMonth, { key: '8524700a8665fe9b8edc04bd6b90b4aacc1eeea0', selectedDate: valueAsDate, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, language: this.language, theme: this.theme, min: minDate, max: maxDate, disallowWeekends: this.disallowWeekends, disallowBankHolidays: this.disallowBankHolidays, disallowedDates: this.disallowedDates, focusedDayRef: element => (this.focusedDayNode = element), onFocusEnter: this.enableActiveFocus, onFocusExit: this.disableActiveFocus })), h(FocusGuard, { key: '8b92a3d7d025848e2e3c976e9c091364b52b7f96', moveFocusTo: this.closeButtonNode }))));
509
+ }, role: "dialog", "aria-modal": "true", "aria-hidden": this.open ? "false" : "true", "aria-labelledby": this.dialogLabelId, onTouchMove: this.handleTouchMove, onTouchStart: this.handleTouchStart, onTouchEnd: this.handleTouchEnd }, h("duet-overlay", { key: 'ff3ca44007f17949b16824685e55d4b52304a635', visible: this.open, "display-device": "x-small" }), h(FocusGuard, { key: '52415f73958c302f54ed9ed1d2fc4f4d4d8c2413', moveFocusTo: this.focusedDayNode }), h("div", { key: '0dd696ad1ac07902f07f483907d28056a7a53875', class: "duet-date-dialog-wrapper", onKeyDown: this.handleEscKey, ref: element => (this.dialogWrapperNode = element) }, h("duet-visually-hidden", { key: 'e2a7f570483f794aa9f69367e6d5d264e382704d', "aria-live": "polite" }, text.keyboardInstruction), h("div", { key: '5fba9ce2d01e722cef8125759dc2ca476a1b75ac', class: "duet-date-dialog-mobile-header" }, h(DuetInternalLabel, { key: '1e06e95abf149f493566476b91a8a5478e7978e1', margin: "none" }, this.label), h("button", { key: 'f0d02d5c156532cbcd62a941a3624b7e97f0ffed', class: "duet-date-picker-close", ref: element => (this.closeButtonNode = element), onClick: () => this.hide(), type: "button" }, h("duet-icon", { key: '7ddaf28a52153f0d7c2f514fe4d657a108d8cefb', name: "navigation-close-small", margin: "none", color: "currentColor", size: "xx-small" }), h("duet-visually-hidden", { key: 'db236821d951de7fec7f33b55841538d9fe5f796' }, text.closeLabel))), h("div", { key: 'bf259e202dd64c21a95dd24ba47b7c0776811b4b', class: "duet-date-dialog-header" }, h("div", { key: '9d833d152a1f2d7f594d5c47e28d18363c8910d7', class: "duet-date-dialog-dropdowns" }, h("duet-visually-hidden", { key: 'f00f0ff852c76fff5bae02ab2915127b105c4d63' }, h("h2", { key: '028369aad6a32055c14ecf6c0b06334e2e54a9bb', id: this.dialogLabelId, "aria-live": "polite", "aria-atomic": "true" }, text.monthLabels[focusedMonth], " ", this.focusedDay.getFullYear())), h("duet-visually-hidden", { key: '73d126ea4d199f59eb55df5113e06c54a4222dc3' }, h("label", { key: '22f1038fdc4e65bf77d0e888f1e4f4e714b70bbc', htmlFor: this.monthSelectId }, text.monthSelectLabel)), h("div", { key: '6770d474539174a57fcd109545e693cae6894f77', class: "duet-date-dialog-select" }, h("select", { key: '8a8d5005e81c8ba1838d298599d074b82d2e0197', id: this.monthSelectId, class: "duet-date-month-select", ref: element => (this.monthSelectNode = element), onChange: this.handleMonthSelect }, text.monthLabels.map((month, i) => (h("option", { key: month, value: i, selected: i === focusedMonth, disabled: !inRange(new Date(focusedYear, i, 1), minDate ? startOfMonth(minDate) : null, maxDate ? endOfMonth(maxDate) : null) }, month)))), h("div", { key: '8144b70f64ab6f3dd4361ad61e489912c38e02d8', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", { key: '4e0172c58f7771d0f84ef9fa7ae5bebd7d7b5036' }, text.monthLabelsShort[focusedMonth]), h("duet-icon", { key: '025b0e895b95983de955fbbda9f793ad7b52fb80', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" }))), h("duet-visually-hidden", { key: 'e0323ecb8e50e0d40dd93b0269dd8dcc07ad6435' }, h("label", { key: '4072da35b9fd966b01d8b49d4c396f66f3c5485a', htmlFor: this.yearSelectId }, text.yearSelectLabel)), h("div", { key: '781da9cd4ee79d9e64cb9c76926859d4d819434e', class: "duet-date-dialog-select" }, h("select", { key: '75f150c29f8bc931d36cd02e2a354d89b7f2761b', id: this.yearSelectId, class: "duet-date-year-select", onChange: this.handleYearSelect }, range(minYear, maxYear).map(year => (h("option", { key: year, selected: year === focusedYear }, year)))), h("div", { key: '96384ab271288677c40cae8d26b7e3d732ac6986', class: "duet-date-dialog-select-label", "aria-hidden": "true" }, h("span", { key: '6f5068e75adf6ccb8dd62e9e3495278130b8406e' }, this.focusedDay.getFullYear()), h("duet-icon", { key: 'ca880dd653adc64184a8804ffeb45b2bad8da968', name: "action-arrow-down-small", color: "currentColor", margin: "none", size: "xxx-small" })))), h("div", { key: '5dd36177b3b2e383e8879dc5fc05eaaa554fc22e', class: "duet-date-dialog-buttons" }, h("duet-action-button", { key: 'ee701d60f8510cf00e34042bd9693ae47f99d6a0', accessibleLabel: i18n[this.language].prevMonthLabel, actionName: i18n[this.language].prevMonthLabel, class: "duet-date-dialog-prev", onClick: this.handlePreviousMonthClick, disabled: prevMonthDisabled, "icon-name": "action-arrow-left-small" }, text.prevMonthLabel), h("duet-action-button", { key: 'c6da5355e47cd7d1fd4402650b019b9a6e36d150', accessibleLabel: i18n[this.language].nextMonthLabel, actionName: i18n[this.language].nextMonthLabel, class: "duet-date-dialog-next", onClick: this.handleNextMonthClick, disabled: nextMonthDisabled, "icon-name": "action-arrow-right-small" }, text.nextMonthLabel))), h(DatePickerMonth, { key: 'b6a5540ec6e095f556c761b2e7784b7004568156', selectedDate: valueAsDate, focusedDate: this.focusedDay, onDateSelect: this.handleDaySelect, onKeyboardNavigation: this.handleKeyboardNavigation, labelledById: this.dialogLabelId, language: this.language, theme: this.theme, min: minDate, max: maxDate, disallowWeekends: this.disallowWeekends, disallowBankHolidays: this.disallowBankHolidays, disallowedDates: this.disallowedDates, focusedDayRef: element => (this.focusedDayNode = element), onFocusEnter: this.enableActiveFocus, onFocusExit: this.disableActiveFocus })), h(FocusGuard, { key: 'ff93eaf35841d06eb93e2125254f8f801631bd88', moveFocusTo: this.closeButtonNode }))));
506
510
  }
507
511
  static get is() { return "duet-date-picker"; }
508
512
  static get encapsulation() { return "shadow"; }
@@ -824,9 +828,32 @@ export class DuetDatePicker {
824
828
  },
825
829
  "required": false,
826
830
  "optional": false,
831
+ "docs": {
832
+ "tags": [{
833
+ "name": "deprecated",
834
+ "text": "changed from opt-out to opt-in with attribute `enable-built-in-errors`"
835
+ }],
836
+ "text": ""
837
+ },
838
+ "getter": false,
839
+ "setter": false,
840
+ "reflect": false,
841
+ "defaultValue": "true"
842
+ },
843
+ "enableBuiltInErrors": {
844
+ "type": "boolean",
845
+ "attribute": "enable-built-in-errors",
846
+ "mutable": false,
847
+ "complexType": {
848
+ "original": "boolean",
849
+ "resolved": "boolean",
850
+ "references": {}
851
+ },
852
+ "required": false,
853
+ "optional": false,
827
854
  "docs": {
828
855
  "tags": [],
829
- "text": "Date picker offers built-in error messages for invalid or missing entries. These can be disabled if the application handles those."
856
+ "text": "Date picker can use built-in error messages for invalid or missing entries if the application does not handle those."
830
857
  },
831
858
  "getter": false,
832
859
  "setter": false,
@@ -75,20 +75,20 @@ export class DuetFieldset {
75
75
  * Always the last one in the class.
76
76
  */
77
77
  render() {
78
- return (h(Host, { key: '6b5e616dee35539f33f740844d8cb031480e7034', class: { "duet-m-0": this.margin === "none" } }, h("fieldset", { key: 'b9847559a5f6d043d40cf13941b02abcafcd4826', "aria-labelledby": this.labelId, "aria-describedby": this.error ? this.errorId : null,
78
+ return (h(Host, { key: 'e2c6cc99f8d6e3fcf85ee4a774b61e8a138fe2cb', class: { "duet-m-0": this.margin === "none" } }, h("fieldset", { key: '1e382d523fb124212f4475c59f660566b22cac4a', "aria-labelledby": this.labelId, "aria-describedby": this.error ? this.errorId : null,
79
79
  // NVDA and VoiceOver do not yet support aria-errormessage
80
80
  // once they do, we can remove errors from the aria-describedby
81
81
  // aria-errormessage={this.error ? this.errorId : null}
82
82
  class: {
83
83
  "duet-fieldset": true,
84
84
  "duet-theme-turva": this.theme === "turva",
85
- } }, h("legend", { key: '00db725af6a81cc39f9812b6ad907e14099e640b', id: this.labelId }, h(this.labelHeadingLevel, { key: 'e790c1bb2136af773035d687afa1af037f965174' }, this.label), this.caption && h("span", { key: '94cfa68d4e1bc683b16749e06667ad9fa13a84c6' }, this.caption)), h("div", { key: 'f7fbe98556ff25593ef84788b28a95a684a923e6', class: {
85
+ } }, h("legend", { key: '4af73da9eecbdef957d0d9f9fbbde218082cd94b', id: this.labelId }, h(this.labelHeadingLevel, { key: '5b52e382eecc29c2bd709765592e2b9e6fe0fd60' }, this.label), this.caption && h("span", { key: 'ce5feca713eeddbfafb5ab03576e6026e588ac63' }, this.caption)), h("div", { key: '29f85072f52ccc650302586b79d334d2aa686706', class: {
86
86
  "duet-legend-wrapper": true,
87
87
  "duet-legend-has-caption": !!this.caption,
88
88
  "duet-legend-has-tooltip": this.hasTooltip,
89
89
  "duet-legend-hidden": this.labelHidden,
90
90
  "duet-legend-compact": this.compactLabel,
91
- } }, h("div", { key: '1ed3c1d5c1e394cc84c6b38d05d6dae5c81025de', class: "duet-fieldset-label" }, h("span", { key: '0a004664043ce7eecc9a0a12383342f4d6bd7b46', "aria-hidden": "true" }, this.label), h("slot", { key: '3e1c56c60ca7a1b343aa25d3e63609ddcfef2822', onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (h("div", { key: '8b165ea6688eb0a0c179fe76c583990d357e99d6', class: "duet-fieldset-caption", "aria-hidden": "true" }, h("duet-caption", { key: 'b54388620f28ecef14c0da6d4e8d27ed9b16de78', theme: this.theme, margin: "none" }, this.caption)))), h("slot", { key: '41fa24ea72a9f4318bb6dd183fb0a464ed45d8ca' }), h("span", { key: '6569844fd76312f12b64a7864f35e6f4637110db', class: "duet-fieldset-help duet-fieldset-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: 'cef4273c56dff02051a14435d02d975131d4c4a4', class: { "duet-m-0": this.lastItemIsChip } }, this.error)))));
91
+ } }, h("div", { key: '78421d08367b6a7e158fb3cc461767cd34eb4dad', class: "duet-fieldset-label" }, h("span", { key: '4df48d5fb01b4cdc199ee36b034f0b54c7ad2039', "aria-hidden": "true" }, this.label), h("slot", { key: 'c4e9d3107c5d62aaadb594e9fa41e455159693cb', onSlotchange: this.checkHasTooltip, name: "tooltip" })), this.caption && (h("div", { key: '1777e78c69d940f110b1ae7bbe33a257197b1229', class: "duet-fieldset-caption", "aria-hidden": "true" }, h("duet-caption", { key: '0ded2be735ec605ecd5451e37a0941db8b9cb7ce', theme: this.theme, margin: "none" }, this.caption)))), h("slot", { key: '2c2acbb1a507fcef25618366d958cbe494d0929c' }), h("span", { key: 'acd99ed8f4ce567b424bb0097df9d4fccca103c3', class: "duet-fieldset-help duet-fieldset-error", id: this.errorId, "aria-atomic": "true", "aria-live": this.accessibleLiveError, "aria-relevant": "additions removals" }, this.error && h("span", { key: '4bbba6d24a221081cc559fec9cfca914109b1aac', class: { "duet-m-0": this.lastItemIsChip } }, this.error)))));
92
92
  }
93
93
  static get is() { return "duet-fieldset"; }
94
94
  static get encapsulation() { return "shadow"; }
@@ -53,7 +53,7 @@ export class DuetGridItem {
53
53
  * Always the last one in the class.
54
54
  */
55
55
  render() {
56
- return (h(Host, { key: '1a1bfed712a2b3acd4f87bd37bb4b22e06521056', style: {
56
+ return (h(Host, { key: '12dce875bc953154224e96f783fbbc66ecc28884', style: {
57
57
  "min-width": this.minWidth,
58
58
  "max-width": this.maxWidth,
59
59
  }, class: {
@@ -70,7 +70,7 @@ export class DuetGridItem {
70
70
  "duet-grid-item-br-medium": this.breakpoint === "medium",
71
71
  "duet-grid-item-br-large": this.breakpoint === "large",
72
72
  "duet-grid-item-br-x-large": this.breakpoint === "x-large",
73
- } }, h("slot", { key: '11a8e27d181731baadfceaafef6de847fd3fd081' })));
73
+ } }, h("slot", { key: '51f9a6b4ce1898cf60071a5d527a3c542c761051' })));
74
74
  }
75
75
  static get is() { return "duet-grid-item"; }
76
76
  static get encapsulation() { return "shadow"; }
@@ -144,11 +144,11 @@ export class DuetIcon {
144
144
  : {};
145
145
  const iconStyles = Object.assign({}, iconRotationStyles);
146
146
  const shapeStyle = this.shape === "brand-rotated" ? "duet-icon-shape-brand" : `duet-icon-shape-${this.shape}`;
147
- return (h(Host, { key: '4165c86903dae730023be910be36389c7151045d', class: {
147
+ return (h(Host, { key: 'fc3baf3fd1c385e8841cb935f5ea4781fed66367', class: {
148
148
  "duet-m-0": this.margin === "none",
149
149
  "duet-icon-has-outline": !!this.outline,
150
150
  "duet-icon-has-background": !!this.background,
151
- } }, h("span", { key: '9efda9e15441290db9c499f59fc3f4feed86e5b2', "aria-hidden": "true", style: styles, class: {
151
+ } }, h("span", { key: '5c8edb2e88c8214bb38753dd019c9d24a1421dad', "aria-hidden": "true", style: styles, class: {
152
152
  "duet-icon": true,
153
153
  "duet-theme-turva": this.theme === "turva",
154
154
  "duet-theme-default": this.theme === "default",
@@ -157,7 +157,7 @@ export class DuetIcon {
157
157
  [shapeStyle]: true,
158
158
  rotated: this.shape === "brand-rotated" && this.theme !== "turva",
159
159
  "duet-icon-not-responsive": !this.responsive,
160
- } }, h("span", { key: 'a59c6e8741e859747f51863e7677de1f95e71b29', "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, "data-name": this.name, innerHTML: this.svgContent, style: iconStyles }))));
160
+ } }, h("span", { key: '93836d0a46c0293fc59790869a0c0732b055c191', "aria-hidden": "true", class: { "duet-icon-svg": true, rotated: this.shape === "brand-rotated" && this.theme !== "turva" }, "data-name": this.name, innerHTML: this.svgContent, style: iconStyles }))));
161
161
  }
162
162
  static get is() { return "duet-icon"; }
163
163
  static get encapsulation() { return "shadow"; }
@@ -310,6 +310,10 @@ duet-caption:not(:last-of-type) {
310
310
  .duet-input.after-chip {
311
311
  padding-left: 8px !important;
312
312
  }
313
+ .duet-input[readonly] {
314
+ color: rgb(62, 84, 102) !important;
315
+ border-color: rgb(212, 223, 229);
316
+ }
313
317
  .has-error .duet-input {
314
318
  outline-offset: -1px;
315
319
  background-color: rgb(255, 240, 243) !important;
@@ -500,6 +504,9 @@ duet-caption:not(:last-of-type) {
500
504
  .duet-input-variation-revealable.disabled .duet-input-relative {
501
505
  outline: none;
502
506
  background: rgb(245, 248, 250);
507
+ border-color: rgb(181, 198, 208);
508
+ }
509
+ .duet-input-variation-revealable.readonly .duet-input-relative {
503
510
  border-color: rgb(212, 223, 229);
504
511
  }
505
512
  .duet-input-variation-revealable.has-error .duet-input-relative {
@@ -525,6 +532,14 @@ duet-caption:not(:last-of-type) {
525
532
  border-color: rgb(214, 28, 82) !important;
526
533
  }
527
534
 
535
+ .duet-input-container.has-adornment.disabled .duet-input-relative,
536
+ .duet-input-container.has-chips.disabled .duet-input-relative {
537
+ border-color: rgb(181, 198, 208);
538
+ }
539
+ .duet-input-container.has-adornment.readonly .duet-input-relative,
540
+ .duet-input-container.has-chips.readonly .duet-input-relative {
541
+ border-color: rgb(212, 223, 229);
542
+ }
528
543
  .duet-input-container.has-adornment.has-focus .duet-input-relative,
529
544
  .duet-input-container.has-chips.has-focus .duet-input-relative {
530
545
  outline: 2px solid;
@@ -637,6 +652,10 @@ duet-caption:not(:last-of-type) {
637
652
  font-family: "turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
638
653
  color: rgb(23, 42, 59) !important;
639
654
  }
655
+ .duet-theme-turva .duet-input[readonly] {
656
+ color: rgb(53, 79, 101) !important;
657
+ border-color: rgb(212, 221, 226);
658
+ }
640
659
  .duet-theme-turva .duet-input[disabled] {
641
660
  color: rgb(95, 122, 143) !important;
642
661
  cursor: not-allowed !important;
@@ -671,6 +690,12 @@ duet-caption:not(:last-of-type) {
671
690
  .duet-theme-turva .duet-input-variation-revealable .duet-input-relative {
672
691
  border-color: rgb(120, 145, 164);
673
692
  }
693
+ .duet-theme-turva.duet-input-variation-revealable.disabled .duet-input-relative {
694
+ border-color: rgb(178, 194, 205);
695
+ }
696
+ .duet-theme-turva.duet-input-variation-revealable.readonly .duet-input-relative {
697
+ border-color: rgb(212, 221, 226);
698
+ }
674
699
  .duet-theme-turva.duet-input-variation-revealable.has-error .duet-input-relative {
675
700
  border-color: rgb(214, 28, 82);
676
701
  }
@@ -687,4 +712,10 @@ duet-caption:not(:last-of-type) {
687
712
  }
688
713
  .duet-theme-turva .duet-input-container.has-chips .duet-input-relative {
689
714
  border-color: rgb(120, 145, 164);
715
+ }
716
+ .duet-theme-turva .duet-input-container.has-chips.disabled .duet-input-relative {
717
+ border-color: rgb(178, 194, 205);
718
+ }
719
+ .duet-theme-turva .duet-input-container.has-chips.readonly .duet-input-relative {
720
+ border-color: rgb(212, 221, 226);
690
721
  }