@duetds/components 9.19.1 → 9.20.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 (711) hide show
  1. package/hydrate/index.js +170 -91
  2. package/lib/cjs/a11y-utils-13737afd.js +46 -0
  3. package/lib/cjs/{app-globals-2b37fc0d.js → app-globals-dbb64a81.js} +1 -1
  4. package/lib/cjs/{common-strings-92c2f034.js → common-strings-ed188f52.js} +5 -4
  5. package/lib/cjs/duet-action-button.cjs.entry.js +3 -3
  6. package/lib/cjs/duet-alert.cjs.entry.js +15 -12
  7. package/lib/cjs/duet-badge.cjs.entry.js +4 -4
  8. package/lib/cjs/duet-banner.cjs.entry.js +4 -4
  9. package/lib/cjs/duet-breadcrumb.cjs.entry.js +2 -2
  10. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +3 -3
  11. package/lib/cjs/duet-button_2.cjs.entry.js +5 -5
  12. package/lib/cjs/duet-callout.cjs.entry.js +3 -3
  13. package/lib/cjs/duet-caption_4.cjs.entry.js +6 -6
  14. package/lib/cjs/duet-card.cjs.entry.js +3 -3
  15. package/lib/cjs/duet-checkbox.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-checkmark.cjs.entry.js +2 -2
  17. package/lib/cjs/duet-chip.cjs.entry.js +3 -3
  18. package/lib/cjs/duet-choice_2.cjs.entry.js +9 -8
  19. package/lib/cjs/duet-collapsible.cjs.entry.js +13 -8
  20. package/lib/cjs/duet-combobox.cjs.entry.js +20 -15
  21. package/lib/cjs/duet-contact-card.cjs.entry.js +3 -3
  22. package/lib/cjs/duet-cookie-consent.cjs.entry.js +2 -2
  23. package/lib/cjs/duet-date-picker.cjs.entry.js +5 -5
  24. package/lib/cjs/duet-divider_2.cjs.entry.js +2 -2
  25. package/lib/cjs/duet-editable-table_3.cjs.entry.js +4 -4
  26. package/lib/cjs/duet-empty-state.cjs.entry.js +2 -2
  27. package/lib/cjs/duet-fieldset.cjs.entry.js +3 -3
  28. package/lib/cjs/duet-file-chooser.cjs.entry.js +2 -2
  29. package/lib/cjs/duet-footer.cjs.entry.js +5 -5
  30. package/lib/cjs/duet-grid_2.cjs.entry.js +2 -2
  31. package/lib/cjs/duet-header_2.cjs.entry.js +4 -4
  32. package/lib/cjs/duet-hero.cjs.entry.js +18 -17
  33. package/lib/cjs/duet-icon.cjs.entry.js +2 -2
  34. package/lib/cjs/duet-indicator.cjs.entry.js +3 -3
  35. package/lib/cjs/duet-input_2.cjs.entry.js +29 -5
  36. package/lib/cjs/duet-layout.cjs.entry.js +2 -2
  37. package/lib/cjs/duet-list_2.cjs.entry.js +3 -3
  38. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +2 -2
  40. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +2 -2
  41. package/lib/cjs/duet-menu-bar-item.cjs.entry.js +6 -6
  42. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +2 -2
  43. package/lib/cjs/duet-menu-bar.cjs.entry.js +3 -3
  44. package/lib/cjs/duet-modal.cjs.entry.js +6 -6
  45. package/lib/cjs/duet-multiselect.cjs.entry.js +4 -4
  46. package/lib/cjs/duet-nav.cjs.entry.js +2 -2
  47. package/lib/cjs/duet-notification_2.cjs.entry.js +4 -4
  48. package/lib/cjs/duet-number-input.cjs.entry.js +15 -11
  49. package/lib/cjs/duet-overlay.cjs.entry.js +2 -2
  50. package/lib/cjs/duet-page-heading.cjs.entry.js +2 -2
  51. package/lib/cjs/duet-pagination_2.cjs.entry.js +3 -3
  52. package/lib/cjs/duet-panel.cjs.entry.js +5 -6
  53. package/lib/cjs/duet-phone-input.cjs.entry.js +6 -6
  54. package/lib/cjs/duet-popup-menu_2.cjs.entry.js +13 -15
  55. package/lib/cjs/duet-progress.cjs.entry.js +3 -3
  56. package/lib/cjs/duet-promo-card.cjs.entry.js +3 -3
  57. package/lib/cjs/duet-radio_2.cjs.entry.js +3 -3
  58. package/lib/cjs/duet-range-slider.cjs.entry.js +2 -2
  59. package/lib/cjs/duet-scrollable_3.cjs.entry.js +29 -10
  60. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  61. package/lib/cjs/duet-select.cjs.entry.js +4 -7
  62. package/lib/cjs/duet-shaped-image.cjs.entry.js +2 -2
  63. package/lib/cjs/duet-share-chart-item.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-share-chart.cjs.entry.js +4 -4
  65. package/lib/cjs/duet-show-more.cjs.entry.js +3 -3
  66. package/lib/cjs/duet-slideout-lang.cjs.entry.js +3 -3
  67. package/lib/cjs/duet-slideout-link.cjs.entry.js +6 -6
  68. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +2 -2
  69. package/lib/cjs/duet-slideout-panel.cjs.entry.js +5 -5
  70. package/lib/cjs/duet-slideout.cjs.entry.js +13 -13
  71. package/lib/cjs/duet-status-icon.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-step_2.cjs.entry.js +4 -4
  73. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +2 -2
  74. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +2 -2
  75. package/lib/cjs/duet-submenu-bar-item.cjs.entry.js +6 -6
  76. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +2 -2
  77. package/lib/cjs/duet-submenu-bar.cjs.entry.js +2 -2
  78. package/lib/cjs/duet-textarea.cjs.entry.js +7 -6
  79. package/lib/cjs/duet-toggle.cjs.entry.js +2 -2
  80. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +2 -2
  81. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +3 -3
  82. package/lib/cjs/duet-toolbar-item.cjs.entry.js +6 -6
  83. package/lib/cjs/duet-toolbar-link.cjs.entry.js +3 -3
  84. package/lib/cjs/duet-toolbar.cjs.entry.js +2 -2
  85. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +3 -3
  86. package/lib/cjs/duet-tooltip.cjs.entry.js +3 -3
  87. package/lib/cjs/duet-tray.cjs.entry.js +3 -3
  88. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  89. package/lib/cjs/duet-upload-item.cjs.entry.js +4 -4
  90. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  91. package/lib/cjs/duet.cjs.js +3 -3
  92. package/lib/cjs/{errorcodes.utils-1866faa9.js → errorcodes.utils-081cbf12.js} +1 -1
  93. package/lib/cjs/{focus-utils-3a78068c.js → focus-utils-30936141.js} +1 -1
  94. package/lib/cjs/{index-8689e0f0.js → index-3e2cb13d.js} +1 -1
  95. package/lib/cjs/{language-utils-82c441a5.js → language-utils-577f9daf.js} +1 -1
  96. package/lib/cjs/loader.cjs.js +3 -3
  97. package/lib/cjs/{slot-utils-6f9e2d2b.js → slot-utils-1e7a8d85.js} +1 -1
  98. package/lib/cjs/{themeable-component-b663d703.js → themeable-component-32848c09.js} +1 -1
  99. package/lib/collection/common-strings.js +5 -4
  100. package/lib/collection/components/duet-alert/duet-alert.css +15 -6
  101. package/lib/collection/components/duet-alert/duet-alert.js +9 -6
  102. package/lib/collection/components/duet-banner/duet-banner.css +1 -0
  103. package/lib/collection/components/duet-button/duet-button.css +4 -0
  104. package/lib/collection/components/duet-choice/duet-choice.css +65 -3
  105. package/lib/collection/components/duet-choice/duet-choice.js +13 -6
  106. package/lib/collection/components/duet-choice-group/duet-choice-group.js +1 -1
  107. package/lib/collection/components/duet-collapsible/duet-collapsible.js +12 -7
  108. package/lib/collection/components/duet-combobox/duet-combobox.js +17 -11
  109. package/lib/collection/components/duet-hero/duet-hero.js +13 -12
  110. package/lib/collection/components/duet-input/duet-input.js +78 -5
  111. package/lib/collection/components/duet-list-item/duet-list-item.css +6 -6
  112. package/lib/collection/components/duet-number-input/duet-number-input.js +19 -15
  113. package/lib/collection/components/duet-panel/duet-panel.css +3 -2
  114. package/lib/collection/components/duet-panel/duet-panel.js +2 -3
  115. package/lib/collection/components/duet-phone-input/duet-phone-input.js +3 -3
  116. package/lib/collection/components/duet-popup-menu/duet-popup-menu.js +20 -23
  117. package/lib/collection/components/duet-scrollable/duet-scrollable.js +87 -6
  118. package/lib/collection/components/duet-select/duet-select.js +1 -4
  119. package/lib/collection/components/duet-slideout/duet-slideout.js +12 -12
  120. package/lib/collection/components/duet-textarea/duet-textarea.css +3 -0
  121. package/lib/collection/components/duet-textarea/duet-textarea.js +21 -1
  122. package/lib/collection/components/duet-toolbar-dropdown/duet-toolbar-dropdown.css +6 -0
  123. package/lib/collection/components/duet-toolbar-link/duet-toolbar-link.css +18 -0
  124. package/lib/collection/utils/a11y-utils.js +20 -0
  125. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  126. package/lib/dist-custom-elements/duet-alert.js +1 -1
  127. package/lib/dist-custom-elements/duet-badge.js +1 -1
  128. package/lib/dist-custom-elements/duet-banner.js +4 -4
  129. package/lib/dist-custom-elements/duet-breadcrumb.js +3 -3
  130. package/lib/dist-custom-elements/duet-breadcrumbs.js +1 -1
  131. package/lib/dist-custom-elements/duet-button.js +1 -1
  132. package/lib/dist-custom-elements/duet-callout.js +2 -2
  133. package/lib/dist-custom-elements/duet-caption.js +1 -1
  134. package/lib/dist-custom-elements/duet-card.js +3 -3
  135. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  136. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  137. package/lib/dist-custom-elements/duet-chip.js +1 -1
  138. package/lib/dist-custom-elements/duet-choice-group.js +9 -9
  139. package/lib/dist-custom-elements/duet-choice.js +9 -8
  140. package/lib/dist-custom-elements/duet-collapsible.js +15 -10
  141. package/lib/dist-custom-elements/duet-combobox.js +32 -26
  142. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  143. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  144. package/lib/dist-custom-elements/duet-date-picker.js +13 -13
  145. package/lib/dist-custom-elements/duet-divider.js +1 -1
  146. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  147. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  148. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  149. package/lib/dist-custom-elements/duet-file-chooser.js +2 -2
  150. package/lib/dist-custom-elements/duet-footer.js +8 -8
  151. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  152. package/lib/dist-custom-elements/duet-grid.js +1 -1
  153. package/lib/dist-custom-elements/duet-header.js +9 -9
  154. package/lib/dist-custom-elements/duet-heading.js +1 -1
  155. package/lib/dist-custom-elements/duet-hero.js +23 -22
  156. package/lib/dist-custom-elements/duet-icon.js +1 -1
  157. package/lib/dist-custom-elements/duet-indicator.js +1 -1
  158. package/lib/dist-custom-elements/duet-input.js +1 -1
  159. package/lib/dist-custom-elements/duet-label.js +1 -1
  160. package/lib/dist-custom-elements/duet-layout.js +1 -1
  161. package/lib/dist-custom-elements/duet-link.js +1 -1
  162. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  163. package/lib/dist-custom-elements/duet-list.js +1 -1
  164. package/lib/dist-custom-elements/duet-logo.js +1 -1
  165. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  166. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  167. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  168. package/lib/dist-custom-elements/duet-menu-bar-item.js +4 -4
  169. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  170. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  171. package/lib/dist-custom-elements/duet-modal.js +9 -9
  172. package/lib/dist-custom-elements/duet-multiselect.js +9 -9
  173. package/lib/dist-custom-elements/duet-nav.js +1 -1
  174. package/lib/dist-custom-elements/duet-notification-drawer.js +6 -6
  175. package/lib/dist-custom-elements/duet-notification.js +3 -3
  176. package/lib/dist-custom-elements/duet-number-input.js +22 -18
  177. package/lib/dist-custom-elements/duet-overlay.js +1 -1
  178. package/lib/dist-custom-elements/duet-page-heading.js +3 -3
  179. package/lib/dist-custom-elements/duet-pagination.js +13 -13
  180. package/lib/dist-custom-elements/duet-panel.js +4 -5
  181. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  182. package/lib/dist-custom-elements/duet-phone-input.js +19 -19
  183. package/lib/dist-custom-elements/duet-popup-menu-item.js +1 -1
  184. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  185. package/lib/dist-custom-elements/duet-progress.js +1 -1
  186. package/lib/dist-custom-elements/duet-promo-card.js +3 -3
  187. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  188. package/lib/dist-custom-elements/duet-radio.js +1 -1
  189. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  190. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  191. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  192. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  193. package/lib/dist-custom-elements/duet-select.js +1 -1
  194. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  195. package/lib/dist-custom-elements/duet-share-chart-item.js +1 -1
  196. package/lib/dist-custom-elements/duet-share-chart.js +2 -2
  197. package/lib/dist-custom-elements/duet-show-more.js +1 -1
  198. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  199. package/lib/dist-custom-elements/duet-slideout-link.js +4 -4
  200. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  201. package/lib/dist-custom-elements/duet-slideout-panel.js +4 -4
  202. package/lib/dist-custom-elements/duet-slideout.js +11 -11
  203. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  204. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  205. package/lib/dist-custom-elements/duet-status-icon.js +1 -1
  206. package/lib/dist-custom-elements/duet-step.js +4 -4
  207. package/lib/dist-custom-elements/duet-stepper.js +3 -3
  208. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  209. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  210. package/lib/dist-custom-elements/duet-submenu-bar-item.js +4 -4
  211. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  212. package/lib/dist-custom-elements/duet-submenu-bar.js +3 -3
  213. package/lib/dist-custom-elements/duet-tab-group.js +8 -8
  214. package/lib/dist-custom-elements/duet-tab.js +1 -1
  215. package/lib/dist-custom-elements/duet-table.js +1 -1
  216. package/lib/dist-custom-elements/duet-textarea.js +14 -12
  217. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  218. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  219. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +3 -3
  220. package/lib/dist-custom-elements/duet-toolbar-item.js +6 -6
  221. package/lib/dist-custom-elements/duet-toolbar-link.js +3 -3
  222. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  223. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  224. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  225. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  226. package/lib/dist-custom-elements/duet-tray.js +3 -3
  227. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  228. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  229. package/lib/dist-custom-elements/duet-upload.js +20 -20
  230. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  231. package/lib/dist-custom-elements/index.js +1 -1
  232. package/lib/dist-custom-elements/{p-25acb470.js → p-04819623.js} +2 -2
  233. package/lib/dist-custom-elements/{p-2967d610.js → p-05128e11.js} +18 -15
  234. package/lib/dist-custom-elements/{p-c4b6f5d6.js → p-06deb63a.js} +2 -2
  235. package/lib/dist-custom-elements/{p-0ec15ba7.js → p-0af6662f.js} +9 -12
  236. package/lib/dist-custom-elements/p-0d607aa5.js +43 -0
  237. package/lib/dist-custom-elements/{p-4b13a990.js → p-0dca88bc.js} +2 -2
  238. package/lib/dist-custom-elements/{p-7bed73a7.js → p-13d994c2.js} +39 -12
  239. package/lib/dist-custom-elements/{p-e29db94f.js → p-1a349415.js} +5 -5
  240. package/lib/dist-custom-elements/{p-df469213.js → p-20af19f0.js} +2 -2
  241. package/lib/dist-custom-elements/{p-b7a93f1c.js → p-2fc2a0b6.js} +5 -4
  242. package/lib/dist-custom-elements/{p-cb129f84.js → p-32b35eb2.js} +3 -3
  243. package/lib/dist-custom-elements/{p-6327d4e2.js → p-3b89d7ab.js} +1 -1
  244. package/lib/dist-custom-elements/{p-620ac0f8.js → p-46206871.js} +1 -1
  245. package/lib/dist-custom-elements/{p-f1b9fb2c.js → p-509dca55.js} +1 -1
  246. package/lib/dist-custom-elements/{p-9dd5b1ab.js → p-515dedd9.js} +1 -1
  247. package/lib/dist-custom-elements/{p-b978a5e4.js → p-575b998e.js} +1 -1
  248. package/lib/dist-custom-elements/{p-be9c3f20.js → p-5957bf62.js} +3 -3
  249. package/lib/dist-custom-elements/{p-f5035d0a.js → p-5a5372db.js} +1 -1
  250. package/lib/dist-custom-elements/{p-77cd5d74.js → p-659b46dc.js} +2 -2
  251. package/lib/dist-custom-elements/{p-ce458f25.js → p-6d3db687.js} +1 -1
  252. package/lib/dist-custom-elements/{p-656cb1fd.js → p-721934fb.js} +1 -1
  253. package/lib/dist-custom-elements/{p-d0d1c5a0.js → p-7f5a8d4f.js} +10 -10
  254. package/lib/dist-custom-elements/{p-f7d27c78.js → p-7fae118b.js} +6 -6
  255. package/lib/dist-custom-elements/{p-5b72a3b0.js → p-856877ce.js} +1 -1
  256. package/lib/dist-custom-elements/{p-0eec21d3.js → p-92614803.js} +2 -2
  257. package/lib/dist-custom-elements/{p-3caafb9d.js → p-94bcb496.js} +1 -1
  258. package/lib/dist-custom-elements/{p-2b66b8d4.js → p-9c152299.js} +1 -1
  259. package/lib/dist-custom-elements/{p-cee4b98f.js → p-9cc4be6b.js} +1 -1
  260. package/lib/dist-custom-elements/{p-1385415a.js → p-9ff3d312.js} +3 -3
  261. package/lib/dist-custom-elements/{p-d3180cfc.js → p-a2165a78.js} +1 -1
  262. package/lib/dist-custom-elements/p-a9d05a66.js +58 -0
  263. package/lib/dist-custom-elements/{p-48cbe41a.js → p-af66a878.js} +1 -1
  264. package/lib/dist-custom-elements/{p-f3726f3b.js → p-b1dab6b7.js} +1 -1
  265. package/lib/dist-custom-elements/{p-8b2e0122.js → p-b5757906.js} +2 -2
  266. package/lib/dist-custom-elements/{p-039d4ba6.js → p-b9dfe8fb.js} +2 -2
  267. package/lib/dist-custom-elements/{p-a6205f48.js → p-c00e6485.js} +34 -12
  268. package/lib/dist-custom-elements/{p-0defe821.js → p-c9b0406e.js} +2 -2
  269. package/lib/dist-custom-elements/{p-6237da28.js → p-cd6aad6d.js} +4 -4
  270. package/lib/dist-custom-elements/{p-32d33753.js → p-d2461d13.js} +1 -1
  271. package/lib/dist-custom-elements/{p-884ae25a.js → p-e8f9e11c.js} +5 -5
  272. package/lib/dist-custom-elements/{p-30456bad.js → p-f6889d60.js} +1 -1
  273. package/lib/dist-custom-elements/{p-c97f4a6a.js → p-fc39349f.js} +20 -23
  274. package/lib/dist-custom-elements/{p-4c473784.js → p-ffd3c3bf.js} +1 -1
  275. package/lib/duet/duet.esm.js +1 -1
  276. package/lib/duet/duet.js +1 -1
  277. package/lib/duet/p-0117fffd.js +4 -0
  278. package/lib/duet/{p-cee2f369.system.entry.js → p-0196e419.system.entry.js} +1 -1
  279. package/lib/duet/{p-ed24b370.entry.js → p-01bfa80a.entry.js} +1 -1
  280. package/lib/duet/{p-3469aaaf.entry.js → p-01c4784d.entry.js} +1 -1
  281. package/lib/duet/{p-eacf7ed7.entry.js → p-021aad93.entry.js} +1 -1
  282. package/lib/duet/{p-d72ec8fd.system.entry.js → p-02b0b46e.system.entry.js} +1 -1
  283. package/lib/duet/{p-a65da7a4.entry.js → p-08a6fe81.entry.js} +1 -1
  284. package/lib/duet/{p-a543a9f0.entry.js → p-08bafedd.entry.js} +1 -1
  285. package/lib/duet/{p-e1bd6791.system.entry.js → p-0a04f223.system.entry.js} +1 -1
  286. package/lib/duet/{p-570ec400.system.entry.js → p-0a55a31e.system.entry.js} +1 -1
  287. package/lib/duet/{p-b17f976c.entry.js → p-0a5bad04.entry.js} +1 -1
  288. package/lib/duet/{p-d0f03726.entry.js → p-0b393b45.entry.js} +1 -1
  289. package/lib/duet/{p-15c9f74e.system.entry.js → p-0b4d95a3.system.entry.js} +1 -1
  290. package/lib/duet/{p-1fe8dc67.entry.js → p-0d93d5d6.entry.js} +1 -1
  291. package/lib/duet/{p-8d6f3089.system.entry.js → p-0dd9cb8f.system.entry.js} +1 -1
  292. package/lib/duet/{p-b93a8d60.system.entry.js → p-0ea89bc3.system.entry.js} +1 -1
  293. package/lib/duet/{p-c8859716.entry.js → p-108a8449.entry.js} +1 -1
  294. package/lib/duet/{p-f86398eb.entry.js → p-11484af4.entry.js} +1 -1
  295. package/lib/duet/{p-81136f12.system.entry.js → p-1188bd88.system.entry.js} +1 -1
  296. package/lib/duet/{p-679272b4.entry.js → p-1255ca3c.entry.js} +1 -1
  297. package/lib/duet/{p-f6abc74d.system.entry.js → p-147036df.system.entry.js} +1 -1
  298. package/lib/duet/p-1640e9ef.system.entry.js +4 -0
  299. package/lib/duet/{p-b7bbc0ac.entry.js → p-171fef9f.entry.js} +1 -1
  300. package/lib/duet/{p-b3abe719.system.js → p-17b4723d.system.js} +1 -1
  301. package/lib/duet/{p-f71d7b6d.system.entry.js → p-1c7c636b.system.entry.js} +1 -1
  302. package/lib/duet/{p-923aa342.system.entry.js → p-1ca77377.system.entry.js} +1 -1
  303. package/lib/duet/{p-7609e7e5.system.entry.js → p-1e748fe7.system.entry.js} +1 -1
  304. package/lib/duet/{p-a54076ef.entry.js → p-1fc499eb.entry.js} +1 -1
  305. package/lib/duet/{p-4275cecd.entry.js → p-2072e2e3.entry.js} +1 -1
  306. package/lib/duet/p-218f197d.entry.js +4 -0
  307. package/lib/duet/{p-ae8b02f9.entry.js → p-295d819b.entry.js} +1 -1
  308. package/lib/duet/{p-e5dfecab.entry.js → p-29620cb8.entry.js} +1 -1
  309. package/lib/duet/{p-49eb852a.entry.js → p-2bbce6ff.entry.js} +1 -1
  310. package/lib/duet/{p-292150a9.system.entry.js → p-2d09e690.system.entry.js} +1 -1
  311. package/lib/duet/p-2dad2417.system.entry.js +4 -0
  312. package/lib/duet/{p-629ca254.system.entry.js → p-2ed33090.system.entry.js} +1 -1
  313. package/lib/duet/{p-7b87a422.entry.js → p-2f4670b2.entry.js} +1 -1
  314. package/lib/duet/p-2f938e05.js +4 -0
  315. package/lib/duet/{p-6dae863c.system.entry.js → p-32672a70.system.entry.js} +1 -1
  316. package/lib/duet/{p-1a70c103.system.entry.js → p-32c11792.system.entry.js} +1 -1
  317. package/lib/duet/{p-0c25b7a5.system.entry.js → p-34679792.system.entry.js} +1 -1
  318. package/lib/duet/p-3639064f.entry.js +4 -0
  319. package/lib/duet/{p-8016efed.system.entry.js → p-364bf8a5.system.entry.js} +1 -1
  320. package/lib/duet/p-3682e272.entry.js +4 -0
  321. package/lib/duet/{p-8ce9049d.system.entry.js → p-3707f843.system.entry.js} +1 -1
  322. package/lib/duet/{p-96bf7e64.entry.js → p-37558e94.entry.js} +1 -1
  323. package/lib/duet/{p-485e347b.system.entry.js → p-37a2bf8f.system.entry.js} +1 -1
  324. package/lib/duet/p-38209530.system.entry.js +4 -0
  325. package/lib/duet/{p-5866fd3c.entry.js → p-3aa1dda7.entry.js} +1 -1
  326. package/lib/duet/{p-58cb1e7b.js → p-3aa7b734.js} +1 -1
  327. package/lib/duet/p-3ae93bdc.entry.js +4 -0
  328. package/lib/duet/{p-b7e41270.entry.js → p-3e04b125.entry.js} +1 -1
  329. package/lib/duet/{p-b5a24ec4.entry.js → p-3f51641e.entry.js} +1 -1
  330. package/lib/duet/p-430e0441.entry.js +4 -0
  331. package/lib/duet/{p-d06624f9.system.entry.js → p-442b1388.system.entry.js} +1 -1
  332. package/lib/duet/{p-6455d4e2.system.entry.js → p-47ae2ce5.system.entry.js} +1 -1
  333. package/lib/duet/{p-3679fdf8.entry.js → p-488d5317.entry.js} +1 -1
  334. package/lib/duet/p-4b688090.js +4 -0
  335. package/lib/duet/{p-5a973232.entry.js → p-4c3e8006.entry.js} +1 -1
  336. package/lib/duet/{p-c99709d4.system.entry.js → p-4d3b8094.system.entry.js} +1 -1
  337. package/lib/duet/{p-da039779.entry.js → p-4d584eba.entry.js} +1 -1
  338. package/lib/duet/{p-b54d5edb.entry.js → p-5075f682.entry.js} +1 -1
  339. package/lib/duet/{p-36478f3d.entry.js → p-528f9e22.entry.js} +1 -1
  340. package/lib/duet/{p-a60ba7fb.system.entry.js → p-5298d270.system.entry.js} +1 -1
  341. package/lib/duet/{p-8ee40bae.js → p-56def387.js} +1 -1
  342. package/lib/duet/{p-cebe051e.system.entry.js → p-57e55fe5.system.entry.js} +1 -1
  343. package/lib/duet/p-59cee476.js +4 -0
  344. package/lib/duet/{p-0c9e9925.entry.js → p-5b094a81.entry.js} +1 -1
  345. package/lib/duet/{p-cfe7483c.entry.js → p-5b7b0c49.entry.js} +1 -1
  346. package/lib/duet/{p-ba1170fc.system.entry.js → p-5d078192.system.entry.js} +1 -1
  347. package/lib/duet/p-620790ec.entry.js +4 -0
  348. package/lib/duet/{p-1f01bee2.js → p-6251429e.js} +1 -1
  349. package/lib/duet/{p-bc2dfc8f.entry.js → p-62d45619.entry.js} +1 -1
  350. package/lib/duet/{p-95c12be6.system.entry.js → p-646fb027.system.entry.js} +1 -1
  351. package/lib/duet/{p-95933d17.system.entry.js → p-64714348.system.entry.js} +2 -2
  352. package/lib/duet/{p-bf901d0f.entry.js → p-67150100.entry.js} +1 -1
  353. package/lib/duet/{p-d04f0720.system.js → p-6746f86c.system.js} +1 -1
  354. package/lib/duet/{p-8f5bbc88.system.entry.js → p-68b94462.system.entry.js} +1 -1
  355. package/lib/duet/{p-51e4be9b.entry.js → p-693c2594.entry.js} +1 -1
  356. package/lib/duet/{p-854d1f8e.system.entry.js → p-69a0ce45.system.entry.js} +1 -1
  357. package/lib/duet/{p-b8427cfa.system.entry.js → p-6f677d93.system.entry.js} +1 -1
  358. package/lib/duet/{p-94379df1.system.entry.js → p-6fe0a923.system.entry.js} +1 -1
  359. package/lib/duet/{p-c54c650f.system.entry.js → p-7013d95e.system.entry.js} +1 -1
  360. package/lib/duet/{p-a53b0c61.entry.js → p-71be2ee6.entry.js} +1 -1
  361. package/lib/duet/{p-d72625ca.system.js → p-7231eb9d.system.js} +1 -1
  362. package/lib/duet/{p-8b744c14.system.entry.js → p-742e23f2.system.entry.js} +1 -1
  363. package/lib/duet/p-743372d1.system.entry.js +4 -0
  364. package/lib/duet/{p-5f34fc36.system.entry.js → p-74a10d90.system.entry.js} +1 -1
  365. package/lib/duet/{p-545d740f.entry.js → p-765ce7e2.entry.js} +1 -1
  366. package/lib/duet/{p-f5fc750d.entry.js → p-76f86b9a.entry.js} +1 -1
  367. package/lib/duet/{p-a1e4a928.entry.js → p-77b52060.entry.js} +1 -1
  368. package/lib/duet/{p-9c4b48e8.entry.js → p-7948f709.entry.js} +1 -1
  369. package/lib/duet/{p-1dc59447.system.entry.js → p-7d56359b.system.entry.js} +1 -1
  370. package/lib/duet/p-81dc0c8c.system.js +4 -0
  371. package/lib/duet/{p-87633fff.system.js → p-83cfc05d.system.js} +1 -1
  372. package/lib/duet/{p-7caeb4e4.system.entry.js → p-850c54b0.system.entry.js} +1 -1
  373. package/lib/duet/p-88c60955.entry.js +4 -0
  374. package/lib/duet/{p-75030665.entry.js → p-8a10a26e.entry.js} +1 -1
  375. package/lib/duet/{p-ceb8f2cd.entry.js → p-8cb64ea1.entry.js} +1 -1
  376. package/lib/duet/{p-77984d20.system.entry.js → p-8ccbbbc7.system.entry.js} +1 -1
  377. package/lib/duet/{p-034e1b79.system.entry.js → p-8d28efb9.system.entry.js} +1 -1
  378. package/lib/duet/{p-2f8ee1a5.entry.js → p-8e21ea72.entry.js} +1 -1
  379. package/lib/duet/{p-fc8ac479.system.entry.js → p-8e6085d1.system.entry.js} +1 -1
  380. package/lib/duet/{p-6000271f.system.entry.js → p-8f7fcfb5.system.entry.js} +1 -1
  381. package/lib/duet/{p-56cc31e0.entry.js → p-8fe2a9bf.entry.js} +1 -1
  382. package/lib/duet/{p-9e37e183.system.entry.js → p-8fe65a80.system.entry.js} +1 -1
  383. package/lib/duet/{p-d3b6137d.system.entry.js → p-90157004.system.entry.js} +1 -1
  384. package/lib/duet/{p-79570700.system.entry.js → p-90fcd0a4.system.entry.js} +1 -1
  385. package/lib/duet/{p-c9063437.system.entry.js → p-9220dbb1.system.entry.js} +1 -1
  386. package/lib/duet/{p-ec919d45.entry.js → p-9277533c.entry.js} +1 -1
  387. package/lib/duet/{p-1e126580.entry.js → p-94341565.entry.js} +1 -1
  388. package/lib/duet/{p-093a5aaa.system.entry.js → p-9453fcb3.system.entry.js} +1 -1
  389. package/lib/duet/{p-cc5d55c9.entry.js → p-97d956fb.entry.js} +1 -1
  390. package/lib/duet/{p-c3755b07.entry.js → p-9bfd9d0e.entry.js} +1 -1
  391. package/lib/duet/p-9f3b0efe.entry.js +4 -0
  392. package/lib/duet/{p-1af82a3a.system.entry.js → p-9f6855fa.system.entry.js} +1 -1
  393. package/lib/duet/{p-4c164015.system.entry.js → p-a2173e10.system.entry.js} +2 -2
  394. package/lib/duet/{p-e61fdd1f.system.entry.js → p-a44268b2.system.entry.js} +1 -1
  395. package/lib/duet/{p-eedacfa7.entry.js → p-a579ae4d.entry.js} +1 -1
  396. package/lib/duet/{p-15f1493c.system.js → p-a71f0bcb.system.js} +1 -1
  397. package/lib/duet/{p-45664da0.entry.js → p-a744d677.entry.js} +1 -1
  398. package/lib/duet/{p-a1a46dc8.entry.js → p-a9d0200d.entry.js} +1 -1
  399. package/lib/duet/{p-427293b9.system.entry.js → p-ab79bc5b.system.entry.js} +1 -1
  400. package/lib/duet/{p-99915f28.system.entry.js → p-ae03cb6d.system.entry.js} +1 -1
  401. package/lib/duet/{p-5e7bfe5a.entry.js → p-ae220bba.entry.js} +1 -1
  402. package/lib/duet/p-af9c927e.system.entry.js +4 -0
  403. package/lib/duet/{p-0024a14a.system.entry.js → p-b0b59b81.system.entry.js} +1 -1
  404. package/lib/duet/p-b1e60f97.system.js +4 -0
  405. package/lib/duet/p-b52a7760.entry.js +4 -0
  406. package/lib/duet/p-b9aec534.js +4 -0
  407. package/lib/duet/{p-46e3ea75.system.js → p-bb332c66.system.js} +1 -1
  408. package/lib/duet/{p-bed81853.entry.js → p-bb8ae835.entry.js} +1 -1
  409. package/lib/duet/{p-bfed7d1f.system.entry.js → p-bd56c1a2.system.entry.js} +1 -1
  410. package/lib/duet/p-c2040676.entry.js +4 -0
  411. package/lib/duet/{p-c155c203.entry.js → p-c33b42c3.entry.js} +1 -1
  412. package/lib/duet/p-c38c24d6.entry.js +4 -0
  413. package/lib/duet/{p-ec88c131.entry.js → p-c3c20651.entry.js} +1 -1
  414. package/lib/duet/{p-63347221.system.entry.js → p-c3dc699e.system.entry.js} +1 -1
  415. package/lib/duet/p-c4b5fabf.system.entry.js +4 -0
  416. package/lib/duet/{p-488db8d3.system.entry.js → p-c5415db0.system.entry.js} +1 -1
  417. package/lib/duet/{p-babcf111.system.entry.js → p-c6e2ee1a.system.entry.js} +1 -1
  418. package/lib/duet/{p-1399801a.entry.js → p-c754edc5.entry.js} +1 -1
  419. package/lib/duet/{p-30c4c974.system.js → p-c801dc04.system.js} +1 -1
  420. package/lib/duet/{p-fdedb49b.entry.js → p-c842f2d4.entry.js} +1 -1
  421. package/lib/duet/{p-b023c816.system.entry.js → p-c908691b.system.entry.js} +1 -1
  422. package/lib/duet/{p-5186598c.entry.js → p-c9d80470.entry.js} +1 -1
  423. package/lib/duet/{p-9f82677f.entry.js → p-cb31529a.entry.js} +1 -1
  424. package/lib/duet/{p-b11ec474.system.entry.js → p-cb9b90ca.system.entry.js} +1 -1
  425. package/lib/duet/{p-71699fd9.system.entry.js → p-cd2b9ea5.system.entry.js} +1 -1
  426. package/lib/duet/{p-74ffcc62.system.entry.js → p-cda010aa.system.entry.js} +1 -1
  427. package/lib/duet/{p-1c28fbe6.entry.js → p-ce1092fb.entry.js} +1 -1
  428. package/lib/duet/{p-5eacc131.system.entry.js → p-ceb72dbf.system.entry.js} +1 -1
  429. package/lib/duet/{p-d2a1b1fd.entry.js → p-cec33ac2.entry.js} +1 -1
  430. package/lib/duet/{p-90e6b35a.entry.js → p-ceef0aa6.entry.js} +1 -1
  431. package/lib/duet/p-cf597b70.js +4 -0
  432. package/lib/duet/{p-9eb323ce.system.entry.js → p-cf7c7b31.system.entry.js} +2 -2
  433. package/lib/duet/{p-fcad9137.entry.js → p-d049d71c.entry.js} +1 -1
  434. package/lib/duet/{p-18076536.entry.js → p-d1b57119.entry.js} +1 -1
  435. package/lib/duet/{p-526c13d3.system.entry.js → p-d2bbf06d.system.entry.js} +1 -1
  436. package/lib/duet/{p-19e02960.system.entry.js → p-d402bc88.system.entry.js} +1 -1
  437. package/lib/duet/{p-3833ae7b.system.entry.js → p-d8c928d7.system.entry.js} +1 -1
  438. package/lib/duet/p-da78c7c2.system.entry.js +4 -0
  439. package/lib/duet/{p-3a2a2ec5.system.entry.js → p-db051207.system.entry.js} +1 -1
  440. package/lib/duet/{p-a5757e21.system.entry.js → p-dbd06bd8.system.entry.js} +1 -1
  441. package/lib/duet/p-dcfc4c0f.system.entry.js +4 -0
  442. package/lib/duet/{p-b9133310.entry.js → p-deb9517b.entry.js} +1 -1
  443. package/lib/duet/{p-4787b506.system.entry.js → p-df506bc2.system.entry.js} +1 -1
  444. package/lib/duet/{p-976353c6.entry.js → p-e06917a1.entry.js} +1 -1
  445. package/lib/duet/{p-a48e2a76.system.entry.js → p-e124a98d.system.entry.js} +1 -1
  446. package/lib/duet/{p-c3f5f64f.system.entry.js → p-e32bf9f7.system.entry.js} +1 -1
  447. package/lib/duet/{p-94593336.entry.js → p-e57b46d9.entry.js} +1 -1
  448. package/lib/duet/{p-ba05fe4e.entry.js → p-e5e9d602.entry.js} +1 -1
  449. package/lib/duet/p-e68bc090.system.entry.js +4 -0
  450. package/lib/duet/p-e6ea7449.entry.js +4 -0
  451. package/lib/duet/p-ed178fc9.system.entry.js +4 -0
  452. package/lib/duet/{p-1c2890e1.entry.js → p-ed7e4450.entry.js} +1 -1
  453. package/lib/duet/{p-f9e9a571.entry.js → p-edb2b160.entry.js} +1 -1
  454. package/lib/duet/{p-ed39c72b.entry.js → p-ef15807a.entry.js} +1 -1
  455. package/lib/duet/{p-fde30afe.system.entry.js → p-f0ae8c0f.system.entry.js} +1 -1
  456. package/lib/duet/{p-1bd0222c.entry.js → p-f3098989.entry.js} +1 -1
  457. package/lib/duet/{p-e33b7b4f.system.entry.js → p-f37dae2f.system.entry.js} +1 -1
  458. package/lib/duet/{p-5a34eb53.system.js → p-f392387c.system.js} +1 -1
  459. package/lib/duet/{p-1dd85611.system.entry.js → p-f3f34fe0.system.entry.js} +1 -1
  460. package/lib/duet/{p-687b20eb.system.entry.js → p-f4939b4a.system.entry.js} +1 -1
  461. package/lib/duet/{p-bd0152ae.entry.js → p-f49c6050.entry.js} +1 -1
  462. package/lib/duet/{p-bf0218de.entry.js → p-f8bfbd2d.entry.js} +1 -1
  463. package/lib/duet/p-f8c7cc95.entry.js +4 -0
  464. package/lib/duet/{p-eeb02f96.system.entry.js → p-fa06e91a.system.entry.js} +1 -1
  465. package/lib/duet/{p-faa08662.system.entry.js → p-fe0a02b8.system.entry.js} +1 -1
  466. package/lib/duet/{p-a0893754.entry.js → p-fe5a2b41.entry.js} +1 -1
  467. package/lib/duet/{p-a34a7a64.entry.js → p-fedc902d.entry.js} +1 -1
  468. package/lib/esm/a11y-utils-04e1285d.js +43 -0
  469. package/lib/esm/{app-globals-2222efbc.js → app-globals-1de03b2e.js} +1 -1
  470. package/lib/esm/{common-strings-1274857d.js → common-strings-5f78fe4e.js} +5 -4
  471. package/lib/esm/duet-action-button.entry.js +3 -3
  472. package/lib/esm/duet-alert.entry.js +15 -12
  473. package/lib/esm/duet-badge.entry.js +4 -4
  474. package/lib/esm/duet-banner.entry.js +4 -4
  475. package/lib/esm/duet-breadcrumb.entry.js +2 -2
  476. package/lib/esm/duet-breadcrumbs.entry.js +3 -3
  477. package/lib/esm/duet-button_2.entry.js +5 -5
  478. package/lib/esm/duet-callout.entry.js +3 -3
  479. package/lib/esm/duet-caption_4.entry.js +6 -6
  480. package/lib/esm/duet-card.entry.js +3 -3
  481. package/lib/esm/duet-checkbox.entry.js +2 -2
  482. package/lib/esm/duet-checkmark.entry.js +2 -2
  483. package/lib/esm/duet-chip.entry.js +3 -3
  484. package/lib/esm/duet-choice_2.entry.js +9 -8
  485. package/lib/esm/duet-collapsible.entry.js +13 -8
  486. package/lib/esm/duet-combobox.entry.js +20 -15
  487. package/lib/esm/duet-contact-card.entry.js +3 -3
  488. package/lib/esm/duet-cookie-consent.entry.js +2 -2
  489. package/lib/esm/duet-date-picker.entry.js +5 -5
  490. package/lib/esm/duet-divider_2.entry.js +2 -2
  491. package/lib/esm/duet-editable-table_3.entry.js +4 -4
  492. package/lib/esm/duet-empty-state.entry.js +2 -2
  493. package/lib/esm/duet-fieldset.entry.js +3 -3
  494. package/lib/esm/duet-file-chooser.entry.js +2 -2
  495. package/lib/esm/duet-footer.entry.js +5 -5
  496. package/lib/esm/duet-grid_2.entry.js +2 -2
  497. package/lib/esm/duet-header_2.entry.js +4 -4
  498. package/lib/esm/duet-hero.entry.js +18 -17
  499. package/lib/esm/duet-icon.entry.js +2 -2
  500. package/lib/esm/duet-indicator.entry.js +3 -3
  501. package/lib/esm/duet-input_2.entry.js +29 -5
  502. package/lib/esm/duet-layout.entry.js +2 -2
  503. package/lib/esm/duet-list_2.entry.js +3 -3
  504. package/lib/esm/duet-menu-bar-button.entry.js +2 -2
  505. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +2 -2
  506. package/lib/esm/duet-menu-bar-dropdown.entry.js +2 -2
  507. package/lib/esm/duet-menu-bar-item.entry.js +6 -6
  508. package/lib/esm/duet-menu-bar-link.entry.js +2 -2
  509. package/lib/esm/duet-menu-bar.entry.js +3 -3
  510. package/lib/esm/duet-modal.entry.js +6 -6
  511. package/lib/esm/duet-multiselect.entry.js +4 -4
  512. package/lib/esm/duet-nav.entry.js +2 -2
  513. package/lib/esm/duet-notification_2.entry.js +4 -4
  514. package/lib/esm/duet-number-input.entry.js +15 -11
  515. package/lib/esm/duet-overlay.entry.js +2 -2
  516. package/lib/esm/duet-page-heading.entry.js +2 -2
  517. package/lib/esm/duet-pagination_2.entry.js +3 -3
  518. package/lib/esm/duet-panel.entry.js +5 -6
  519. package/lib/esm/duet-phone-input.entry.js +6 -6
  520. package/lib/esm/duet-popup-menu_2.entry.js +13 -15
  521. package/lib/esm/duet-progress.entry.js +3 -3
  522. package/lib/esm/duet-promo-card.entry.js +3 -3
  523. package/lib/esm/duet-radio_2.entry.js +3 -3
  524. package/lib/esm/duet-range-slider.entry.js +2 -2
  525. package/lib/esm/duet-scrollable_3.entry.js +29 -10
  526. package/lib/esm/duet-section-layout.entry.js +1 -1
  527. package/lib/esm/duet-select.entry.js +4 -7
  528. package/lib/esm/duet-shaped-image.entry.js +2 -2
  529. package/lib/esm/duet-share-chart-item.entry.js +1 -1
  530. package/lib/esm/duet-share-chart.entry.js +4 -4
  531. package/lib/esm/duet-show-more.entry.js +3 -3
  532. package/lib/esm/duet-slideout-lang.entry.js +3 -3
  533. package/lib/esm/duet-slideout-link.entry.js +6 -6
  534. package/lib/esm/duet-slideout-panel-dropdown.entry.js +2 -2
  535. package/lib/esm/duet-slideout-panel.entry.js +5 -5
  536. package/lib/esm/duet-slideout.entry.js +13 -13
  537. package/lib/esm/duet-status-icon.entry.js +1 -1
  538. package/lib/esm/duet-step_2.entry.js +4 -4
  539. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +2 -2
  540. package/lib/esm/duet-submenu-bar-dropdown.entry.js +2 -2
  541. package/lib/esm/duet-submenu-bar-item.entry.js +6 -6
  542. package/lib/esm/duet-submenu-bar-link.entry.js +2 -2
  543. package/lib/esm/duet-submenu-bar.entry.js +2 -2
  544. package/lib/esm/duet-textarea.entry.js +7 -6
  545. package/lib/esm/duet-toggle.entry.js +2 -2
  546. package/lib/esm/duet-toolbar-dropdown-link.entry.js +2 -2
  547. package/lib/esm/duet-toolbar-dropdown.entry.js +3 -3
  548. package/lib/esm/duet-toolbar-item.entry.js +6 -6
  549. package/lib/esm/duet-toolbar-link.entry.js +3 -3
  550. package/lib/esm/duet-toolbar.entry.js +2 -2
  551. package/lib/esm/duet-tooltip-button_2.entry.js +3 -3
  552. package/lib/esm/duet-tooltip.entry.js +3 -3
  553. package/lib/esm/duet-tray.entry.js +3 -3
  554. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  555. package/lib/esm/duet-upload-item.entry.js +4 -4
  556. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  557. package/lib/esm/duet.js +4 -4
  558. package/lib/esm/{errorcodes.utils-454fa730.js → errorcodes.utils-e3c3fbe7.js} +1 -1
  559. package/lib/esm/{focus-utils-7af43257.js → focus-utils-8dcbe898.js} +1 -1
  560. package/lib/esm/{index-ddbf3a7a.js → index-e0645409.js} +1 -1
  561. package/lib/esm/{language-utils-1387fba1.js → language-utils-5c6108e9.js} +1 -1
  562. package/lib/esm/loader.js +4 -4
  563. package/lib/esm/{slot-utils-53835bd7.js → slot-utils-0bb6f129.js} +1 -1
  564. package/lib/esm/{themeable-component-ae3def9c.js → themeable-component-f1c77a5d.js} +1 -1
  565. package/lib/esm-es5/a11y-utils-04e1285d.js +4 -0
  566. package/lib/esm-es5/{app-globals-2222efbc.js → app-globals-1de03b2e.js} +1 -1
  567. package/lib/esm-es5/{common-strings-1274857d.js → common-strings-5f78fe4e.js} +1 -1
  568. package/lib/esm-es5/duet-action-button.entry.js +1 -1
  569. package/lib/esm-es5/duet-alert.entry.js +2 -2
  570. package/lib/esm-es5/duet-badge.entry.js +1 -1
  571. package/lib/esm-es5/duet-banner.entry.js +1 -1
  572. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  573. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  574. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  575. package/lib/esm-es5/duet-callout.entry.js +1 -1
  576. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  577. package/lib/esm-es5/duet-card.entry.js +1 -1
  578. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  579. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  580. package/lib/esm-es5/duet-chip.entry.js +1 -1
  581. package/lib/esm-es5/duet-choice_2.entry.js +2 -2
  582. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  583. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  584. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  585. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  586. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  587. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  588. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  589. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  590. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  591. package/lib/esm-es5/duet-file-chooser.entry.js +1 -1
  592. package/lib/esm-es5/duet-footer.entry.js +1 -1
  593. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  594. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  595. package/lib/esm-es5/duet-hero.entry.js +1 -1
  596. package/lib/esm-es5/duet-icon.entry.js +1 -1
  597. package/lib/esm-es5/duet-indicator.entry.js +1 -1
  598. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  599. package/lib/esm-es5/duet-layout.entry.js +1 -1
  600. package/lib/esm-es5/duet-list_2.entry.js +2 -2
  601. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  602. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  603. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  604. package/lib/esm-es5/duet-menu-bar-item.entry.js +1 -1
  605. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  606. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  607. package/lib/esm-es5/duet-modal.entry.js +1 -1
  608. package/lib/esm-es5/duet-multiselect.entry.js +2 -2
  609. package/lib/esm-es5/duet-nav.entry.js +1 -1
  610. package/lib/esm-es5/duet-notification_2.entry.js +2 -2
  611. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  612. package/lib/esm-es5/duet-overlay.entry.js +1 -1
  613. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  614. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  615. package/lib/esm-es5/duet-panel.entry.js +1 -1
  616. package/lib/esm-es5/duet-phone-input.entry.js +1 -1
  617. package/lib/esm-es5/duet-popup-menu_2.entry.js +2 -2
  618. package/lib/esm-es5/duet-progress.entry.js +1 -1
  619. package/lib/esm-es5/duet-promo-card.entry.js +2 -2
  620. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  621. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  622. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  623. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  624. package/lib/esm-es5/duet-select.entry.js +2 -2
  625. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  626. package/lib/esm-es5/duet-share-chart-item.entry.js +1 -1
  627. package/lib/esm-es5/duet-share-chart.entry.js +1 -1
  628. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  629. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  630. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  631. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  632. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  633. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  634. package/lib/esm-es5/duet-status-icon.entry.js +1 -1
  635. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  636. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  637. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  638. package/lib/esm-es5/duet-submenu-bar-item.entry.js +2 -2
  639. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  640. package/lib/esm-es5/duet-submenu-bar.entry.js +1 -1
  641. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  642. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  643. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  644. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  645. package/lib/esm-es5/duet-toolbar-item.entry.js +1 -1
  646. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  647. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  648. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  649. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  650. package/lib/esm-es5/duet-tray.entry.js +1 -1
  651. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  652. package/lib/esm-es5/duet-upload-item.entry.js +2 -2
  653. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  654. package/lib/esm-es5/duet.js +1 -1
  655. package/lib/esm-es5/{errorcodes.utils-454fa730.js → errorcodes.utils-e3c3fbe7.js} +1 -1
  656. package/lib/esm-es5/focus-utils-8dcbe898.js +4 -0
  657. package/lib/esm-es5/{index-ddbf3a7a.js → index-e0645409.js} +1 -1
  658. package/lib/esm-es5/{language-utils-1387fba1.js → language-utils-5c6108e9.js} +1 -1
  659. package/lib/esm-es5/loader.js +1 -1
  660. package/lib/esm-es5/{slot-utils-53835bd7.js → slot-utils-0bb6f129.js} +1 -1
  661. package/lib/esm-es5/{themeable-component-ae3def9c.js → themeable-component-f1c77a5d.js} +1 -1
  662. package/lib/types/components/duet-choice/duet-choice.d.ts +3 -3
  663. package/lib/types/components/duet-collapsible/duet-collapsible.d.ts +1 -0
  664. package/lib/types/components/duet-combobox/duet-combobox.d.ts +1 -0
  665. package/lib/types/components/duet-input/duet-input.d.ts +12 -1
  666. package/lib/types/components/duet-number-input/duet-number-input.d.ts +8 -6
  667. package/lib/types/components/duet-popup-menu/duet-popup-menu.d.ts +4 -4
  668. package/lib/types/components/duet-scrollable/duet-scrollable.d.ts +13 -0
  669. package/lib/types/components/duet-select/duet-select.d.ts +0 -1
  670. package/lib/types/components/duet-slideout/duet-slideout.d.ts +4 -4
  671. package/lib/types/components/duet-textarea/duet-textarea.d.ts +4 -0
  672. package/lib/types/components.d.ts +56 -23
  673. package/lib/types/utils/a11y-utils.d.ts +11 -0
  674. package/package.json +5 -5
  675. package/lib/cjs/a11y-utils-f8e4367b.js +0 -25
  676. package/lib/dist-custom-elements/p-745a4e07.js +0 -58
  677. package/lib/dist-custom-elements/p-f8d1e874.js +0 -23
  678. package/lib/duet/p-12899787.system.entry.js +0 -4
  679. package/lib/duet/p-1bdc5408.entry.js +0 -4
  680. package/lib/duet/p-23878f2f.system.entry.js +0 -4
  681. package/lib/duet/p-24954951.js +0 -4
  682. package/lib/duet/p-329da927.js +0 -4
  683. package/lib/duet/p-3704f63a.system.entry.js +0 -4
  684. package/lib/duet/p-37136593.system.entry.js +0 -4
  685. package/lib/duet/p-3a0756e2.js +0 -4
  686. package/lib/duet/p-3a793df8.entry.js +0 -4
  687. package/lib/duet/p-3af12511.entry.js +0 -4
  688. package/lib/duet/p-3c583c14.entry.js +0 -4
  689. package/lib/duet/p-40ec37e0.system.entry.js +0 -4
  690. package/lib/duet/p-41ffd369.entry.js +0 -4
  691. package/lib/duet/p-4ff5a3ed.system.js +0 -4
  692. package/lib/duet/p-50dd94b8.system.js +0 -4
  693. package/lib/duet/p-61f93b06.js +0 -4
  694. package/lib/duet/p-6484efcc.entry.js +0 -4
  695. package/lib/duet/p-7f286bc3.entry.js +0 -4
  696. package/lib/duet/p-80694bcb.entry.js +0 -4
  697. package/lib/duet/p-8df7c962.entry.js +0 -4
  698. package/lib/duet/p-944f5ee9.system.entry.js +0 -4
  699. package/lib/duet/p-9481e189.js +0 -4
  700. package/lib/duet/p-a7cb778c.system.entry.js +0 -4
  701. package/lib/duet/p-ac6e2668.system.entry.js +0 -4
  702. package/lib/duet/p-bc9888d4.entry.js +0 -4
  703. package/lib/duet/p-c7f65120.js +0 -4
  704. package/lib/duet/p-d0d1667e.entry.js +0 -4
  705. package/lib/duet/p-e36e78ea.system.entry.js +0 -4
  706. package/lib/duet/p-e9454352.system.entry.js +0 -4
  707. package/lib/duet/p-f240daa0.entry.js +0 -4
  708. package/lib/duet/p-f25d359d.entry.js +0 -4
  709. package/lib/esm/a11y-utils-ac6ae502.js +0 -23
  710. package/lib/esm-es5/a11y-utils-ac6ae502.js +0 -4
  711. package/lib/esm-es5/focus-utils-7af43257.js +0 -4
@@ -933,7 +933,7 @@ export namespace Components {
933
933
  "expand": boolean;
934
934
  "groupDirection": DuetDirection;
935
935
  "groupDisabled": boolean;
936
- "groupResponsive": boolean;
936
+ "groupResponsive": DuetChoiceGroupBreakpoint;
937
937
  /**
938
938
  * Icon to display to the left of the choice button label.
939
939
  */
@@ -1974,7 +1974,7 @@ export namespace Components {
1974
1974
  */
1975
1975
  "accessibleExpanded": string;
1976
1976
  /**
1977
- * Indicates value of any popup element associated with the input.
1977
+ * @deprecated , use `accessiblePopup` property instead
1978
1978
  */
1979
1979
  "accessibleHasPopup": string;
1980
1980
  /**
@@ -1989,6 +1989,10 @@ export namespace Components {
1989
1989
  * Indicates the id of a component owned by the input.
1990
1990
  */
1991
1991
  "accessibleOwns": string;
1992
+ /**
1993
+ * Indicates value of any popup element associated with the input.
1994
+ */
1995
+ "accessiblePopup": string;
1992
1996
  /**
1993
1997
  * Add a chip to the input. Property "chips" must be true.
1994
1998
  */
@@ -2098,6 +2102,10 @@ export namespace Components {
2098
2102
  * Name of the input.
2099
2103
  */
2100
2104
  "name": string;
2105
+ /**
2106
+ * @readonly
2107
+ */
2108
+ "nativeInputElement": HTMLElement;
2101
2109
  /**
2102
2110
  * Enable numeric keyboard for the input.
2103
2111
  */
@@ -2907,13 +2915,13 @@ export namespace Components {
2907
2915
  */
2908
2916
  "accessibleActiveDescendant": string;
2909
2917
  /**
2910
- * Accessible label for the add button that is read for screen reader users.
2911
- * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
2918
+ * Accessible label for the add button that is read for screen reader users. The placeholders {step} and {unit} are replaced with respective properties.
2919
+ * @default {fi: "Lisää {step} {unit}", en: "Add {step} {unit}", sv: "Lägg till {step} {unit}"}
2912
2920
  */
2913
2921
  "accessibleAdd": string;
2914
2922
  /**
2915
2923
  * Defaults for accessibleAdd
2916
- * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
2924
+ * @default {fi: "Lisää {step} {unit}", en: "Add {step} {unit}", sv: "Lägg till {step} {unit}"}
2917
2925
  */
2918
2926
  "accessibleAddDefaults": DuetLangObject | string;
2919
2927
  /**
@@ -2955,13 +2963,13 @@ export namespace Components {
2955
2963
  */
2956
2964
  "accessibleOwns": string;
2957
2965
  /**
2958
- * Accessible label for the subtract button that is read for screen reader users.
2959
- * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
2966
+ * Accessible label for the subtract button that is read for screen reader users. The placeholders {step} and {unit} are replaced with respective properties.
2967
+ * @default {fi: "Vähennä {step} {unit}", en: "Subtract {step} {unit}", sv: "Sutrahera {step} {unit}"}
2960
2968
  */
2961
2969
  "accessibleSubtract": string;
2962
2970
  /**
2963
2971
  * Defaults for accessibleSubtract
2964
- * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
2972
+ * @default {fi: "Vähenn {step} {unit}ä", en: "Subtract {step} {unit}", sv: "Sutrahera {step} {unit}"}
2965
2973
  */
2966
2974
  "accessibleSubtractDefaults": DuetLangObject | string;
2967
2975
  /**
@@ -3361,7 +3369,7 @@ export namespace Components {
3361
3369
  /**
3362
3370
  * Element, or id of an element, that controls the opening and closing of the popup menu. If id is given, the component automatically sets the click event listener to open and close the popup-menu.
3363
3371
  */
3364
- "controller": string | HTMLDuetInputElement | (HTMLElement & FocusableComponent & OpenerComponent);
3372
+ "controller": string | HTMLElement | HTMLDuetInputElement | (HTMLElement & FocusableComponent & OpenerComponent);
3365
3373
  /**
3366
3374
  * By default Popup Menu adds "action-arrow-down-small" icon to the controller. This can be removed with controller-icon="".
3367
3375
  */
@@ -3389,7 +3397,7 @@ export namespace Components {
3389
3397
  /**
3390
3398
  * Alias for property controller.
3391
3399
  */
3392
- "opener": string | HTMLDuetInputElement | (HTMLElement & FocusableComponent & OpenerComponent);
3400
+ "opener": string | HTMLElement | HTMLDuetInputElement | (HTMLElement & FocusableComponent & OpenerComponent);
3393
3401
  /**
3394
3402
  * Placement of the popup menu relative to its controller. Possible values: "top", "bottom", "left" and "right", optionally combined with "-start" or "-end".
3395
3403
  */
@@ -3880,6 +3888,19 @@ export namespace Components {
3880
3888
  * Whether to add padding to the scrollable list to account for overflowing elements, such as shadows or outlines.
3881
3889
  */
3882
3890
  "padding": DuetOverflowPadding;
3891
+ /**
3892
+ * Scrolls the scrollable so that the last item is visible
3893
+ */
3894
+ "scrollToEnd": () => Promise<void>;
3895
+ /**
3896
+ * Scrolls the scrollable so that the desired item is visible
3897
+ * @param itemIndex The first item is 1
3898
+ */
3899
+ "scrollToItem": (itemIndex: number) => Promise<void>;
3900
+ /**
3901
+ * Scrolls the scrollable so that the first item is visible
3902
+ */
3903
+ "scrollToStart": () => Promise<void>;
3883
3904
  /**
3884
3905
  * Selected element
3885
3906
  */
@@ -4132,7 +4153,7 @@ export namespace Components {
4132
4153
  /**
4133
4154
  * Alias for property opener.
4134
4155
  */
4135
- "controller": string | (HTMLElement & FocusableComponent & OpenerComponent);
4156
+ "controller": string | HTMLElement | (HTMLElement & FocusableComponent & OpenerComponent);
4136
4157
  /**
4137
4158
  * Hides the slideout dialog and puts focus back to the original element that triggered the slideout (if we’re still in the same view).
4138
4159
  */
@@ -4148,7 +4169,7 @@ export namespace Components {
4148
4169
  /**
4149
4170
  * DuetMenuBarButton or DuetButton element, or id of an element, that opens the slideout. If id is given, the component automatically sets the click event listener to open the slideout.
4150
4171
  */
4151
- "opener": string | (HTMLElement & FocusableComponent & OpenerComponent);
4172
+ "opener": string | HTMLElement | (HTMLElement & FocusableComponent & OpenerComponent);
4152
4173
  /**
4153
4174
  * Sets focus. Use this method instead of the global focus().
4154
4175
  */
@@ -4795,6 +4816,10 @@ export namespace Components {
4795
4816
  * Defines a specific role attribute for the input.
4796
4817
  */
4797
4818
  "role": string | null;
4819
+ /**
4820
+ * Rows attribute for the contained native textarea element. If set, overrides the default style's minheight.
4821
+ */
4822
+ "rows": number;
4798
4823
  /**
4799
4824
  * Sets focus on the specified `duet-textarea`. Use this method instead of the global `textarea.focus()`.
4800
4825
  */
@@ -8844,7 +8869,7 @@ declare namespace LocalJSX {
8844
8869
  */
8845
8870
  "accessibleExpanded"?: string;
8846
8871
  /**
8847
- * Indicates value of any popup element associated with the input.
8872
+ * @deprecated , use `accessiblePopup` property instead
8848
8873
  */
8849
8874
  "accessibleHasPopup"?: string;
8850
8875
  /**
@@ -8859,6 +8884,10 @@ declare namespace LocalJSX {
8859
8884
  * Indicates the id of a component owned by the input.
8860
8885
  */
8861
8886
  "accessibleOwns"?: string;
8887
+ /**
8888
+ * Indicates value of any popup element associated with the input.
8889
+ */
8890
+ "accessiblePopup"?: string;
8862
8891
  /**
8863
8892
  * Enable or disable automatic completion by the browser
8864
8893
  */
@@ -9727,13 +9756,13 @@ declare namespace LocalJSX {
9727
9756
  */
9728
9757
  "accessibleActiveDescendant"?: string;
9729
9758
  /**
9730
- * Accessible label for the add button that is read for screen reader users.
9731
- * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
9759
+ * Accessible label for the add button that is read for screen reader users. The placeholders {step} and {unit} are replaced with respective properties.
9760
+ * @default {fi: "Lisää {step} {unit}", en: "Add {step} {unit}", sv: "Lägg till {step} {unit}"}
9732
9761
  */
9733
9762
  "accessibleAdd"?: string;
9734
9763
  /**
9735
9764
  * Defaults for accessibleAdd
9736
- * @default {fi: "Lisää summaan", en: "Add to the amount", sv: "Lägg till beloppet"}
9765
+ * @default {fi: "Lisää {step} {unit}", en: "Add {step} {unit}", sv: "Lägg till {step} {unit}"}
9737
9766
  */
9738
9767
  "accessibleAddDefaults"?: DuetLangObject | string;
9739
9768
  /**
@@ -9775,13 +9804,13 @@ declare namespace LocalJSX {
9775
9804
  */
9776
9805
  "accessibleOwns"?: string;
9777
9806
  /**
9778
- * Accessible label for the subtract button that is read for screen reader users.
9779
- * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
9807
+ * Accessible label for the subtract button that is read for screen reader users. The placeholders {step} and {unit} are replaced with respective properties.
9808
+ * @default {fi: "Vähennä {step} {unit}", en: "Subtract {step} {unit}", sv: "Sutrahera {step} {unit}"}
9780
9809
  */
9781
9810
  "accessibleSubtract"?: string;
9782
9811
  /**
9783
9812
  * Defaults for accessibleSubtract
9784
- * @default {fi: "Vähennä summasta", en: "Subtract from the amount", sv: "Dra från beloppet"}
9813
+ * @default {fi: "Vähenn {step} {unit}ä", en: "Subtract {step} {unit}", sv: "Sutrahera {step} {unit}"}
9785
9814
  */
9786
9815
  "accessibleSubtractDefaults"?: DuetLangObject | string;
9787
9816
  /**
@@ -10205,7 +10234,7 @@ declare namespace LocalJSX {
10205
10234
  /**
10206
10235
  * Element, or id of an element, that controls the opening and closing of the popup menu. If id is given, the component automatically sets the click event listener to open and close the popup-menu.
10207
10236
  */
10208
- "controller"?: string | HTMLDuetInputElement | (HTMLElement & FocusableComponent & OpenerComponent);
10237
+ "controller"?: string | HTMLElement | HTMLDuetInputElement | (HTMLElement & FocusableComponent & OpenerComponent);
10209
10238
  /**
10210
10239
  * By default Popup Menu adds "action-arrow-down-small" icon to the controller. This can be removed with controller-icon="".
10211
10240
  */
@@ -10229,7 +10258,7 @@ declare namespace LocalJSX {
10229
10258
  /**
10230
10259
  * Alias for property controller.
10231
10260
  */
10232
- "opener"?: string | HTMLDuetInputElement | (HTMLElement & FocusableComponent & OpenerComponent);
10261
+ "opener"?: string | HTMLElement | HTMLDuetInputElement | (HTMLElement & FocusableComponent & OpenerComponent);
10233
10262
  /**
10234
10263
  * Placement of the popup menu relative to its controller. Possible values: "top", "bottom", "left" and "right", optionally combined with "-start" or "-end".
10235
10264
  */
@@ -10977,7 +11006,7 @@ declare namespace LocalJSX {
10977
11006
  /**
10978
11007
  * Alias for property opener.
10979
11008
  */
10980
- "controller"?: string | (HTMLElement & FocusableComponent & OpenerComponent);
11009
+ "controller"?: string | HTMLElement | (HTMLElement & FocusableComponent & OpenerComponent);
10981
11010
  /**
10982
11011
  * Whether the slideout behaves as a modal, i.e. with an overlay and preventing scrolling of the page content. Note that even when false, we still use focus guards to contain keyboard navigation within, as moving focus out could result in unexpected behavior.
10983
11012
  */
@@ -10993,7 +11022,7 @@ declare namespace LocalJSX {
10993
11022
  /**
10994
11023
  * DuetMenuBarButton or DuetButton element, or id of an element, that opens the slideout. If id is given, the component automatically sets the click event listener to open the slideout.
10995
11024
  */
10996
- "opener"?: string | (HTMLElement & FocusableComponent & OpenerComponent);
11025
+ "opener"?: string | HTMLElement | (HTMLElement & FocusableComponent & OpenerComponent);
10997
11026
  /**
10998
11027
  * Theme.
10999
11028
  */
@@ -11622,6 +11651,10 @@ declare namespace LocalJSX {
11622
11651
  * Defines a specific role attribute for the input.
11623
11652
  */
11624
11653
  "role"?: string | null;
11654
+ /**
11655
+ * Rows attribute for the contained native textarea element. If set, overrides the default style's minheight.
11656
+ */
11657
+ "rows"?: number;
11625
11658
  /**
11626
11659
  * Theme of the textarea.
11627
11660
  */
@@ -1,4 +1,6 @@
1
+ import { OpenerComponent } from "../common";
1
2
  import { DuetLangObject } from "./language-utils";
3
+ type ariaPopup = "true" | "menu" | "listbox" | "tree" | "grid" | "dialog";
2
4
  interface A11yLabel {
3
5
  element: HTMLElement;
4
6
  accessibleLabel?: string;
@@ -8,4 +10,13 @@ interface A11yLabel {
8
10
  download?: string;
9
11
  }
10
12
  export declare function getAccessibleLinkLabel(component: A11yLabel): string;
13
+ /**
14
+ * An element that controls open/close state of a Duet component can itself be either a Duet component or an HTML element,
15
+ * this helper handles the setting of the relevant attributes accordingly.
16
+ *
17
+ * @param el Duet component or HTML element that is used for controlling the popup
18
+ * @param expanded is the controlled element open
19
+ * @param popup The type of the popup, defaults to "true" which equals to "menu"
20
+ */
21
+ export declare function setOpenerExpanded(el: OpenerComponent | HTMLElement, expanded: boolean, popup?: ariaPopup): void;
11
22
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@duetds/components",
3
- "version": "9.19.1",
3
+ "version": "9.20.0",
4
4
  "description": "This package includes Duet Design System Web Components and related utilities.",
5
5
  "bugs": {
6
6
  "email": "duetdesignsystem@lahitapiola.fi"
@@ -44,9 +44,9 @@
44
44
  "body-scroll-lock": "3.1.5"
45
45
  },
46
46
  "devDependencies": {
47
- "@duetds/fonts": "3.0.54",
48
- "@duetds/icons": "4.2.11",
49
- "@duetds/tokens": "4.1.2",
47
+ "@duetds/fonts": "3.0.55",
48
+ "@duetds/icons": "4.2.12",
49
+ "@duetds/tokens": "4.1.3",
50
50
  "@percy/cli": "1.30.1",
51
51
  "@rollup/plugin-replace": "5.0.2",
52
52
  "@stencil/core": "4.23.0",
@@ -77,5 +77,5 @@
77
77
  "collection": "lib/collection/collection-manifest.json",
78
78
  "es2015": "lib/esm/index.js",
79
79
  "es2017": "lib/esm/index.js",
80
- "gitHead": "5273ead3d960248c9455812e9dc012cf8d15fc6f"
80
+ "gitHead": "f35b80af5cfe064525ce16c2be724201e1d1becc"
81
81
  }
@@ -1,25 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- 'use strict';
5
-
6
- const slotUtils = require('./slot-utils-6f9e2d2b.js');
7
-
8
- function getAccessibleLinkLabel(component) {
9
- const textContent = component.element.textContent;
10
- if (component.accessibleLabel) {
11
- return component.accessibleLabel;
12
- }
13
- if ((!!component.download || component.download === "") && textContent) {
14
- return `${textContent}. ${component.accessibleLabelDownload}.`;
15
- }
16
- if (component.external && textContent) {
17
- return `${textContent}. ${component.accessibleLabelExternal}.`;
18
- }
19
- if (slotUtils.getElementsFromDefaultSlot(component.element).length) {
20
- return textContent;
21
- }
22
- return null;
23
- }
24
-
25
- exports.getAccessibleLinkLabel = getAccessibleLinkLabel;
@@ -1,58 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import { p as proxyCustomElement, H, h, d as Host } from './p-f5035d0a.js';
5
- import { i as inheritGlobalTheme } from './p-3757c660.js';
6
-
7
- const duetListItemCss = "*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;flex-direction:column;display:flex;width:100%;overflow:visible;font-family:\"localtapiola-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";font-size:1rem;font-style:normal;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77)}:host dt{padding-bottom:4px}:host dd{padding-top:0}:host dt,:host dd{flex-basis:100%}:host dt,:host dd{width:100%;margin-inline-start:0;text-align:left;-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word}:host dt{font-weight:600}.duet-theme-turva :host dt{font-weight:700}:host dd{margin-left:auto}:host(.duet-list-striped) dt,:host(.duet-list-striped) dd{padding:16px}:host(.duet-list-striped) dt{padding-bottom:4px}:host(.duet-list-striped) dd{padding-top:0}:host(.duet-list-striped.duet-no-stacking) dt,:host(.duet-list-striped.duet-no-stacking) dd{padding:16px}:host(:not(.duet-list-striped)) dt,:host(:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(:not(.duet-list-striped)) dt{padding-bottom:4px}:host(:not(.duet-list-striped)) dd{padding-top:0}:host(:not(.duet-list-striped).duet-no-stacking) dt,:host(:not(.duet-list-striped).duet-no-stacking) dd{padding:8px;padding-inline:0}:host(.duet-p-0) dt,:host(.duet-p-0) dd{padding:0 !important}:host(.duet-list-mobile-center) dt,:host(.duet-list-mobile-center) dd{text-align:center}:host(.duet-theme-turva){font-family:\"turva-sans\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, Helvetica, Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\";color:rgb(23, 28, 58)}:host(.duet-list-striped:nth-child(odd)) dt,:host(.duet-list-striped:nth-child(odd)) dd{background:rgb(245, 248, 250)}:host(.duet-list-striped.duet-theme-turva:nth-child(odd)) dt,:host(.duet-list-striped.duet-theme-turva:nth-child(odd)) dd{background:rgb(245, 247, 250)}:host(.duet-list-bordered){border-block-start:1px solid rgb(212, 223, 229)}:host(.duet-list-bordered:last-child){border-block-end:1px solid rgb(212, 223, 229)}:host(.duet-list-bordered.duet-theme-turva){border-block-start:1px solid rgb(222, 224, 228)}:host(.duet-list-bordered.duet-theme-turva:last-child){border-block-end:1px solid rgb(222, 224, 228)}:host(.duet-list-inner-bordered:not(:last-child)){border-block-end:1px solid rgb(212, 223, 229)}:host(.duet-list-inner-bordered.duet-theme-turva:not(:last-child)){border-block-end:1px solid rgb(222, 224, 228)}:host(.duet-no-stacking){flex-direction:row}:host(.duet-list-mobile-center.duet-no-stacking) dt,:host(.duet-list-mobile-center.duet-no-stacking) dd{text-align:left}:host(.duet-no-stacking.duet-list-width-30) dt{flex-basis:33%}:host(.duet-no-stacking.duet-list-width-30) dd{flex-basis:67%}:host(.duet-no-stacking.duet-list-width-50) dt{flex-basis:47%}:host(.duet-no-stacking.duet-list-width-50) dd{flex-basis:53%}:host(.duet-no-stacking.duet-list-width-70) dt{flex-basis:65%}:host(.duet-no-stacking.duet-list-width-70) dd{flex-basis:35%}:host(.duet-list-item-breakpoint-x-small){flex-direction:row}:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-x-small.duet-p-0) dt,:host(.duet-list-item-breakpoint-x-small.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-x-small.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-x-small.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-70) dd{flex-basis:35%}@media (max-width: 22.5em){:host(.duet-list-item-breakpoint-x-small){flex-direction:column}:host(.duet-list-item-breakpoint-x-small) dt{padding-bottom:4px}:host(.duet-list-item-breakpoint-x-small) dd{padding-top:0}:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dt{padding-bottom:4px}:host(.duet-list-item-breakpoint-x-small.duet-list-striped) dd{padding-top:0}:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dt{padding-bottom:4px}:host(.duet-list-item-breakpoint-x-small:not(.duet-list-striped)) dd{padding-top:0}:host(.duet-list-item-breakpoint-x-small.duet-p-0) dt,:host(.duet-list-item-breakpoint-x-small.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-x-small.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-mobile-center) dd{text-align:center}:host(.duet-list-item-breakpoint-x-small.duet-list-width-30) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-width-30) dd{flex-basis:100%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-50) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-width-50) dd{flex-basis:100%}:host(.duet-list-item-breakpoint-x-small.duet-list-width-70) dt,:host(.duet-list-item-breakpoint-x-small.duet-list-width-70) dd{flex-basis:100%}}@media (min-width: 36em){:host(.duet-list-item-breakpoint-small){flex-direction:row}:host(.duet-list-item-breakpoint-small.duet-list-striped) dt,:host(.duet-list-item-breakpoint-small.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-small:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-small:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-small.duet-p-0) dt,:host(.duet-list-item-breakpoint-small.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-small.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-small.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-small.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-small.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-small.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-small.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-small.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-small.duet-list-width-70) dd{flex-basis:35%}}@media (min-width: 48em){:host(.duet-list-item-breakpoint-medium){flex-direction:row}:host(.duet-list-item-breakpoint-medium.duet-list-striped) dt,:host(.duet-list-item-breakpoint-medium.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-medium:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-medium:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-medium.duet-p-0) dt,:host(.duet-list-item-breakpoint-medium.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-medium.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-medium.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-medium.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-medium.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-medium.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-medium.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-medium.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-medium.duet-list-width-70) dd{flex-basis:35%}}@media (min-width: 62em){:host(.duet-list-item-breakpoint-large){flex-direction:row}:host(.duet-list-item-breakpoint-large.duet-list-striped) dt,:host(.duet-list-item-breakpoint-large.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-large:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-large:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-large.duet-p-0) dt,:host(.duet-list-item-breakpoint-large.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-large.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-large.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-large.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-large.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-large.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-large.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-large.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-large.duet-list-width-70) dd{flex-basis:35%}}@media (min-width: 64.0625em){:host(.duet-list-item-breakpoint-x-large){flex-direction:row}:host(.duet-list-item-breakpoint-x-large.duet-list-striped) dt,:host(.duet-list-item-breakpoint-x-large.duet-list-striped) dd{padding:16px}:host(.duet-list-item-breakpoint-x-large:not(.duet-list-striped)) dt,:host(.duet-list-item-breakpoint-x-large:not(.duet-list-striped)) dd{padding:8px;padding-inline:0}:host(.duet-list-item-breakpoint-x-large.duet-p-0) dt,:host(.duet-list-item-breakpoint-x-large.duet-p-0) dd{padding:0 !important}:host(.duet-list-item-breakpoint-x-large.duet-list-mobile-center) dt,:host(.duet-list-item-breakpoint-x-large.duet-list-mobile-center) dd{text-align:left}:host(.duet-list-item-breakpoint-x-large.duet-list-width-30) dt{flex-basis:33%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-30) dd{flex-basis:67%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-50) dt{flex-basis:47%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-50) dd{flex-basis:53%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-70) dt{flex-basis:65%}:host(.duet-list-item-breakpoint-x-large.duet-list-width-70) dd{flex-basis:35%}}:host(.duet-theme-turva2.duet-theme-turva){color:rgb(23, 42, 59)}:host(.duet-theme-turva2.duet-list-striped.duet-theme-turva:nth-child(odd)) dt,:host(.duet-theme-turva2.duet-list-striped.duet-theme-turva:nth-child(odd)) dd{background:rgb(245, 246, 247)}:host(.duet-theme-turva2.duet-list-bordered.duet-theme-turva){border-block-start:1px solid rgb(212, 221, 226)}:host(.duet-theme-turva2.duet-list-bordered.duet-theme-turva:last-child){border-block-end:1px solid rgb(212, 221, 226)}:host(.duet-theme-turva2.duet-list-inner-bordered.duet-theme-turva:not(:last-child)){border-block-end:1px solid rgb(212, 221, 226)}";
8
- const DuetListItemStyle0 = duetListItemCss;
9
-
10
- const DuetListItem = /*@__PURE__*/ proxyCustomElement(class DuetListItem extends H {
11
- constructor() {
12
- super();
13
- this.__registerHost();
14
- this.__attachShadow();
15
- this.theme = "";
16
- this.responsive = false;
17
- this.breakpoint = "small";
18
- }
19
- componentWillLoad() {
20
- inheritGlobalTheme(this);
21
- }
22
- /**
23
- * render() function
24
- * Always the last one in the class.
25
- */
26
- render() {
27
- return (h(Host, { key: 'a1d59eef6ebf95b35ba47c0c5d08dce588f79e2e', class: {
28
- "duet-theme-turva": this.theme === "turva",
29
- "duet-no-stacking": !this.responsive,
30
- "duet-list-item-breakpoint-x-small": this.breakpoint === "x-small",
31
- "duet-list-item-breakpoint-small": this.breakpoint === "small",
32
- "duet-list-item-breakpoint-medium": this.breakpoint === "medium",
33
- "duet-list-item-breakpoint-large": this.breakpoint === "large",
34
- "duet-list-item-breakpoint-x-large": this.breakpoint === "x-large",
35
- } }, h("dt", { key: '945de6fd1adcfbeff921e2adbc31c2252a6a0a4f' }, h("slot", { key: 'c0c9a3a4cc5c7b0522946d4f32b3eebf83f55b64', name: "label" })), h("dd", { key: 'a283cfff317b10c86778c3d104e4f911f499ee53' }, h("slot", { key: '5ada9a783edd1778553a2240cac92c796276989e', name: "value" }))));
36
- }
37
- get element() { return this; }
38
- static get style() { return DuetListItemStyle0; }
39
- }, [1, "duet-list-item", {
40
- "theme": [1025],
41
- "responsive": [4],
42
- "breakpoint": [1]
43
- }]);
44
- function defineCustomElement() {
45
- if (typeof customElements === "undefined") {
46
- return;
47
- }
48
- const components = ["duet-list-item"];
49
- components.forEach(tagName => { switch (tagName) {
50
- case "duet-list-item":
51
- if (!customElements.get(tagName)) {
52
- customElements.define(tagName, DuetListItem);
53
- }
54
- break;
55
- } });
56
- }
57
-
58
- export { DuetListItem as D, defineCustomElement as d };
@@ -1,23 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import { b as getElementsFromDefaultSlot } from './p-fe478fac.js';
5
-
6
- function getAccessibleLinkLabel(component) {
7
- const textContent = component.element.textContent;
8
- if (component.accessibleLabel) {
9
- return component.accessibleLabel;
10
- }
11
- if ((!!component.download || component.download === "") && textContent) {
12
- return `${textContent}. ${component.accessibleLabelDownload}.`;
13
- }
14
- if (component.external && textContent) {
15
- return `${textContent}. ${component.accessibleLabelExternal}.`;
16
- }
17
- if (getElementsFromDefaultSlot(component.element).length) {
18
- return textContent;
19
- }
20
- return null;
21
- }
22
-
23
- export { getAccessibleLinkLabel as g };
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,a,r){function i(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,u){function o(t){try{d(r.next(t))}catch(t){u(t)}}function s(t){try{d(r["throw"](t))}catch(t){u(t)}}function d(t){t.done?a(t.value):i(t.value).then(o,s)}d((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(u[0]&1)throw u[1];return u[1]},trys:[],ops:[]},r,i,u,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return d([t,e])}}function d(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(a=0)),a)try{if(r=1,i&&(u=s[0]&2?i["return"]:s[0]?i["throw"]||((u=i["return"])&&u.call(i),0):i.next)&&!(u=u.call(i,s[1])).done)return u;if(i=0,u)s=[s[0]&2,u.value];switch(s[0]){case 0:case 1:u=s;break;case 4:a.label++;return{value:s[1],done:false};case 5:a.label++;i=s[1];s=[0];continue;case 7:s=a.ops.pop();a.trys.pop();continue;default:if(!(u=a.trys,u=u.length>0&&u[u.length-1])&&(s[0]===6||s[0]===2)){a=0;continue}if(s[0]===3&&(!u||s[1]>u[0]&&s[1]<u[3])){a.label=s[1];break}if(s[0]===6&&a.label<u[1]){a.label=u[1];u=s;break}if(u&&a.label<u[2]){a.label=u[2];a.ops.push(s);break}if(u[2])a.ops.pop();a.trys.pop();continue}s=e.call(t,a)}catch(t){s=[6,t];i=0}finally{r=u=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-d04f0720.system.js","./p-15f1493c.system.js","./p-e6b5a1c7.system.js","./p-e12066c8.system.js","./p-41982d26.system.js","./p-5a34eb53.system.js","./p-30c4c974.system.js","./p-98636086.system.js"],(function(t){"use strict";var e,a,r,i,u,o,s,d,n,c,l,h;return{setters:[function(t){e=t.r;a=t.c;r=t.h;i=t.H;u=t.g},function(t){o=t.i},function(t){s=t.c},function(t){d=t.c},function(t){n=t.d},function(t){c=t.a;l=t.f},function(t){h=t.c},function(){}],execute:function(){var x='*.sc-duet-textarea,*.sc-duet-textarea::after,*.sc-duet-textarea::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.sc-duet-textarea-h{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:16px !important;margin-bottom:12px !important;display:block;width:100%;max-width:100%;text-align:left}.sc-duet-textarea-h:last-child,.sc-duet-textarea-h:last-of-type{margin-right:0 !important}[alignment=form-distribute]>.sc-duet-textarea-h:last-of-type:not(:last-child){margin-right:16px !important}@media (min-width: 36em){.sc-duet-textarea-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-textarea-h{width:100% !important}}.duet-m-0.sc-duet-textarea-h{margin:0 !important}duet-tooltip.sc-duet-textarea,.sc-duet-textarea-s>duet-tooltip{position:absolute;top:12px;right:0}@media (min-width: 48em){duet-tooltip.sc-duet-textarea,.sc-duet-textarea-s>duet-tooltip{position:relative;top:4px;right:auto}}.duet-textarea-container.sc-duet-textarea{position:relative;width:100%;height:100%}.duet-textarea-container.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:none}.duet-textarea-container.duet-input-top-caption-shown.sc-duet-textarea .duet-input-top-caption.sc-duet-textarea{display:flex !important}.duet-textarea-wrapper.sc-duet-textarea{position:relative}.duet-textarea-placeholder.sc-duet-textarea{position:absolute;top:-9px;left:9px;z-index:200;display:block;width:auto;max-width:60%;padding:0 0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:rgb(255, 255, 255)}.duet-textarea.sc-duet-textarea{padding:15px !important;position:relative;z-index:100;display:block;width:100%;min-width:8rem;min-height:160px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(8, 42, 77);resize:vertical;background:rgb(255, 255, 255);border:1px solid rgb(127, 150, 165);border-radius:4px;transition:150ms ease}.duet-textarea.sc-duet-textarea:focus{outline:2px solid;outline-offset:0;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus,.duet-textarea.sc-duet-textarea:focus.duet-theme-turva,.duet-theme-turva2.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus,.duet-textarea.sc-duet-textarea:focus.duet-theme-turva2{outline:2px solid;outline-offset:0;outline-color:rgba(53, 79, 101, 0.8)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58);border-color:rgb(143, 147, 158)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea{border-color:rgb(214, 28, 82) !important}.duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(98, 121, 138);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-webkit-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(98, 121, 138);opacity:1 !important}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea::-moz-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(199, 202, 207)}.duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:-ms-input-placeholder{color:rgb(143, 147, 158)}.duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(181, 198, 208)}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(199, 202, 207)}.duet-textarea[disabled].sc-duet-textarea{color:rgb(98, 121, 138) !important;cursor:not-allowed !important;background:rgb(245, 248, 250) !important;border-color:rgb(245, 248, 250) !important}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250) !important;border-color:rgb(245, 247, 250) !important}.duet-textarea[disabled].sc-duet-textarea::-webkit-input-placeholder{color:rgb(8, 42, 77);opacity:1 !important;transition:color 300ms ease}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-webkit-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled].sc-duet-textarea::-moz-placeholder{color:rgb(8, 42, 77);opacity:1 !important}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-moz-placeholder{color:rgb(23, 28, 58)}.duet-textarea[disabled].sc-duet-textarea:-ms-input-placeholder{color:rgb(8, 42, 77)}.duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea:-ms-input-placeholder{color:rgb(23, 28, 58)}.duet-textarea.sc-duet-textarea:hover:not(:disabled){outline:2px solid;outline-color:rgb(98, 121, 138);outline-offset:-1px}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled),.duet-textarea.sc-duet-textarea:hover:not(:disabled).duet-theme-turva,.duet-theme-turva2.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled),.duet-textarea.sc-duet-textarea:hover:not(:disabled).duet-theme-turva2{outline-color:rgb(120, 145, 164)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:hover:not(:disabled){outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-textarea.sc-duet-textarea:focus{border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{border-color:rgb(23, 28, 58)}.has-error.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{outline:1px solid;outline-color:rgb(214, 28, 82);outline-offset:-1px}.duet-textarea.sc-duet-textarea:not(:focus):not(:hover):invalid{outline:none}.duet-textarea-help.sc-duet-textarea{font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:0.875rem;line-height:1.25}.duet-textarea-help.sc-duet-textarea span.sc-duet-textarea{display:block;margin-top:8px}.duet-theme-turva.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(143, 147, 158)}.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(214, 28, 82)}.duet-theme-turva.has-error.sc-duet-textarea .duet-textarea-help.sc-duet-textarea{color:rgb(214, 28, 82)}.duet-label-hidden.sc-duet-textarea duet-label.sc-duet-textarea{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;border:0;clip:rect(0 0 0 0)}.duet-character-count.sc-duet-textarea{display:block;margin:8px 0 0 auto}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea{color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus{border-color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea{background:rgb(245, 246, 247) !important;border-color:rgb(245, 246, 247) !important}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:-webkit-input-placeholder{color:rgb(120, 145, 164)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-webkit-input-placeholder{color:rgb(178, 194, 205)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus::-moz-placeholder{color:rgb(178, 194, 205)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea.sc-duet-textarea:focus:-ms-input-placeholder{color:rgb(178, 194, 205)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-webkit-input-placeholder{color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea::-moz-placeholder{color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-textarea-h .duet-theme-turva.sc-duet-textarea .duet-textarea[disabled].sc-duet-textarea:-ms-input-placeholder{color:rgb(23, 42, 59)}';var p=x;var m=function(t){var e=t.value,a=t.maxlength,i=t.theme;if(a==null){return}var u=e.length;return r("div",{class:"duet-character-count"},r("duet-caption",{margin:"none",theme:i,size:"small"},r("span",{"aria-hidden":"true"},u,"/",a)))};var f=t("duet_textarea",function(){function t(t){var r=this;e(this,t);this.duetInput=a(this,"duetInput",7);this.duetChange=a(this,"duetChange",7);this.duetBlur=a(this,"duetBlur",7);this.duetFocus=a(this,"duetFocus",7);this.textareaId=s("DuetTextarea");this.topCaptionId=s("DuetCaptionTop");this.topCaptionPlaceholderId=s("DuetCaptionPlaceholderTop");this.labelId=s("DuetLabel");this.errorId=s("DuetError");this.characterCountId=s("DuetCharacterCount");this.visuallyHiddenCounterDebounceMS=1e3;this.disallowPatternRegex=null;this.charactersRemainingLabel={fi:"{remaining}, merkkiä jäljellä {max}{postfix}.",en:"{remaining} characters remaining out of {max}.",sv:"{remaining} tecken kvar av {max}."};this.handleInput=function(t){if(r.disallowPatternRegex){d(r.nativeInput,r.disallowPatternRegex)}r.value=r.nativeInput.value;r.isCaptionVisible=!!r.caption;r.duetInput.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleChange=function(t){r.value=r.nativeInput.value;r.duetChange.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleBlur=function(t){r.duetBlur.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleFocus=function(t){r.duetFocus.emit({originalEvent:t,value:r.value,component:"duet-textarea"})};this.handleKeyDown=function(){var t;if(((t=r.value)===null||t===void 0?void 0:t.length)===r.maxlength){r.visuallyHiddenCounterText="";setTimeout((function(){return r.updateVisuallyHiddenCounterText()}),10)}};this.getDescribedBy=function(){var t=[];if(r.isCaptionVisible&&r.topCaptionId){t.push(r.topCaptionId)}if(r.accessibleDescribedBy){t.push(r.accessibleDescribedBy)}if(r.error){t.push(r.errorId)}if(r.counter&&r.maxlength){t.push(r.characterCountId)}return t.length>0?t.join(" "):null};this.language=c();this.visuallyHiddenCounterText=undefined;this.margin="auto";this.accessibleActiveDescendant=undefined;this.accessibleAutocomplete=undefined;this.accessibleControls=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLiveError="polite";this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.theme="";this.expand=false;this.disabled=false;this.identifier=undefined;this.required=false;this.label="label";this.labelColor=undefined;this.labelWeight=undefined;this.labelHidden=false;this.name=undefined;this.placeholder=undefined;this.caption=undefined;this.echoPlaceholder=false;this.maxlength=undefined;this.minlength=undefined;this.error="";this.role=undefined;this.tooltip="";this.tooltipDirection="auto";this.value="";this.disallowPattern=null;this.counter=false;this.counterLabel=""}Object.defineProperty(t.prototype,"validity",{get:function(){return this.nativeInput.validity},enumerable:false,configurable:true});t.prototype.valueChange=function(t,e){var a=this;if(t!==e){n((function(){return a.updateVisuallyHiddenCounterText()}),this.visuallyHiddenCounterDebounceMS)()}};t.prototype.disallowedPatternChange=function(){this.disallowPatternRegex=this.disallowPattern?new RegExp(this.disallowPattern,"gu"):null};t.prototype.componentWillLoad=function(){o(this);this.disallowedPatternChange();this.isCaptionVisible=!!this.caption;this.updateVisuallyHiddenCounterText();h(this.element,"tooltip","duet-tooltip",1,true);if(this.counter&&this.maxlength==null){console.warn("[DUET WARNING]: counter will only take effect if maxlength is set")}};t.prototype.updateVisuallyHiddenCounterText=function(){var t;var e=l(Math.max(this.maxlength-(((t=this.value)===null||t===void 0?void 0:t.length)||0),0));var a=this.maxlength%100===0||[2,3,6,8].includes(this.maxlength%10)?":sta":":stä";this.visuallyHiddenCounterText=this.charactersRemainingLabel[this.language].replace("{remaining}",e).replace("{max}",l(this.maxlength)).replace("{postfix}",a)};t.prototype.setFocus=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.nativeInput.focus(t);return[2]}))}))};t.prototype.render=function(){var t=this;var e=this.identifier||this.textareaId;return r(i,{class:{"duet-m-0":this.margin==="none","duet-has-counter":this.counter&&!this.error,"duet-expand":this.expand}},r("div",{class:{"duet-textarea-container":true,"duet-theme-turva":this.theme==="turva","duet-label-hidden":this.labelHidden,"duet-input-top-caption-shown":this.isCaptionVisible,"has-error":!!this.error}},r("duet-label",{theme:this.theme==="turva"?"turva":"default",class:{"duet-has-tooltip":!!this.tooltip},margin:this.isCaptionVisible?"small":"auto",color:this.labelColor,weight:this.labelWeight,id:this.labelId,for:e},this.label),this.tooltip&&r("duet-tooltip",{direction:this.tooltipDirection,accessibleInputLabel:this.label,theme:this.theme==="turva"?"turva":"default"},this.tooltip),r("slot",{name:"tooltip"}),this.caption&&r("duet-caption",{id:this.topCaptionId,size:"medium",theme:this.theme==="turva"?"turva":"default"},this.caption),r("div",{class:"duet-textarea-wrapper"},this.placeholder&&this.echoPlaceholder&&this.value&&r("duet-caption",{id:this.topCaptionPlaceholderId,class:"duet-textarea-placeholder",size:"small"},this.placeholder),r("textarea",{onInput:this.handleInput,onChange:this.handleChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,ref:function(e){return t.nativeInput=e},class:{"duet-textarea":true,disabled:this.disabled},value:this.value,disabled:this.disabled,"aria-labelledby":this.accessibleLabelledBy?"".concat(this.labelId," ").concat(this.accessibleLabelledBy):this.labelId,"aria-controls":this.accessibleControls,"aria-autocomplete":this.accessibleAutocomplete,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.getDescribedBy(),"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,placeholder:this.placeholder,spellcheck:"false",required:this.required,minlength:this.minlength,maxlength:this.maxlength,role:this.role,name:this.name,id:e})),r("duet-grid",{alignment:"stretch"},r("duet-grid-item",{margin:"none",fill:true},r("div",{class:"duet-textarea-help duet-textarea-error",id:this.errorId,"aria-atomic":"true","aria-live":this.accessibleLiveError,"aria-relevant":"additions removals"},this.error&&r("span",null,this.error))),r("duet-grid-item",{margin:"none",class:"duet-character-count-caption"},this.counter&&r(m,{theme:this.theme,value:this.value,maxlength:this.maxlength}))),this.counter&&this.maxlength&&r("duet-visually-hidden",{id:this.characterCountId,class:"visually-hidden-counter"},this.visuallyHiddenCounterText)))};Object.defineProperty(t.prototype,"element",{get:function(){return u(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChange"],disallowPattern:["disallowedPatternChange"]}},enumerable:false,configurable:true});return t}());f.style=p}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{r as t,c as e,h as i,H as s,g as o}from"./p-58cb1e7b.js";import{q as a}from"./p-b0af0dbc.js";import{o as n,f as r,s as h,c as u,b as d}from"./p-81287261.js";import{i as p}from"./p-1f01bee2.js";import{f as l}from"./p-9481e189.js";import{c,f as m,b,o as f}from"./p-a45e3f8b.js";import{a as g}from"./p-8ee40bae.js";import{T as v}from"./p-8cb0e6bd.js";import{a as x}from"./p-f11208c3.js";import"./p-9c3c64b9.js";const y=class{constructor(i){t(this,i),this.duetToggle=e(this,"duetToggle",7),this.filterLabel={en:"Filter menu",fi:"Suodata valikkoa",sv:"Filtrera meny"},this.filterResultCountLabel={en:"items match filter",fi:"kohtaa vastaa suodatinta",sv:"menyalternativ matchar filtret"},this.setOpenButton=t=>{if(t)try{const e=t;e.accessiblePopup="true",e.accessibleExpanded=!1,this.controllerIcon&&e.setAttribute("trailing-icon","action-arrow-down-small"),this.openButton=e}catch(t){}},this.openButtonEventListener=()=>{this.toggle()},this.updatePlacement=async()=>{if(!this.openButton)return;const t=[n({mainAxis:this.mainAxisOffset,crossAxis:this.crossAxisOffset}),this.allowVerticalFlip&&r(),h({padding:5})].filter(Boolean),e=await u(this.openButton,this.menuElement,{middleware:t,placement:this.placement,strategy:this.position});this.menuY=e.y,this.menuX=e.x},this.getNonFilteredItems=()=>this.showFilterInput?this.itemElements.filter((t=>"none"!==t.style.display)):this.itemElements,this.filterItems=()=>{var t;const e=null===(t=this.filterInput.value)||void 0===t?void 0:t.toLocaleLowerCase(),i=this.itemElements;i.forEach((t=>{var i;t.style.display=!e||t.textContent.toLowerCase().includes(e)||(null===(i=t.value)||void 0===i?void 0:i.toLowerCase().includes(e))?"":"none"})),this.filterResultCount=i.filter((t=>"none"!==t.style.display)).length},this.handleKeyDownOnFilter=t=>{var e;c(t)&&(null===(e=this.getNonFilteredItems()[0])||void 0===e||e.setFocus())},this.open=!1,this.menuY=void 0,this.menuX=void 0,this.filterResultCount=void 0,this.language=g(),this.accessibleLabel=void 0,this.accessibleRole="menu",this.theme="",this.skipTeleport=void 0,this.placement="bottom-start",this.forcePlacement=!1,this.allowVerticalFlip=!0,this.position="absolute",this.mainAxisOffset=0,this.crossAxisOffset=0,this.controllerIcon="action-arrow-down-small",this.scrollLimit=void 0,this.showFilterInput=void 0}get controller(){return this._controller}set controller(t){this._controller!==t&&(this._controller=t,"string"==typeof t?(this.setOpenButton(document.getElementById(t)),this.openButton&&this.openButton.addEventListener("click",this.openButtonEventListener)):this.setOpenButton(t))}get opener(){return this._controller}set opener(t){this.controller=t}componentWillLoad(){p(this)}componentDidLoad(){this.updatePlacement()}connectedCallback(){this.teleport||(this.teleport=new v(this.element)),this.teleport&&this.teleport.activate()}disconnectedCallback(){this.autoUpdateCleanup&&this.autoUpdateCleanup(),this.openButton&&(this.openButton.removeEventListener("click",this.openButtonEventListener),this.controllerIcon&&this.openButton.removeAttribute("trailing-icon"))}handleKeyUp(t){this.open&&m(t)&&this.hide()}async handleKeyDown(t){const e=this.getNonFilteredItems();if(this.open){if(c(t)){t.preventDefault();const i=await this.getFocusedItemIndex();-1!==i&&(i<e.length-1?e[i+1].setFocus():e[0].setFocus())}if(b(t)){t.preventDefault();const i=await this.getFocusedItemIndex();-1!==i&&(0===i?this.showFilterInput?this.filterInput.setFocus():e[e.length-1].setFocus():e[i-1].setFocus())}f(t)&&"menu"===this.accessibleRole&&(t.preventDefault(),this.hide())}}handleClick(t){const e=t.composedPath().every((t=>t!==this.element&&t!==this.openButton));this.open&&e&&this.hide()}async isOpen(){return this.open}async show(){this.open=!0}async hide(){this.autoUpdateCleanup&&this.autoUpdateCleanup(),this.open=!1}async toggle(){this.open?this.hide():this.show()}handleOpenChange(t,e){if(!!t!=!!e)if(this.open&&!e){const t={ancestorScroll:!this.forcePlacement};this.openButton&&(this.openButton.accessibleExpanded=!0),"listbox"!==this.accessibleRole&&this.teleport.makeSiblingsInert(),this.updatePlacement(),this.menuElement&&this.openButton&&(this.autoUpdateCleanup=d(this.openButton,this.menuElement,this.updatePlacement,t)),this.showFilterInput&&(this.filterInput.value="",this.filterItems()),setTimeout((()=>{"menu"===this.accessibleRole&&this.itemElements[0].setFocus(),this.duetToggle.emit({open:this.open,component:"duet-popup-menu"})}),200)}else!this.open&&e&&(this.openButton&&(this.openButton.accessibleExpanded=!1),this.autoUpdateCleanup&&this.autoUpdateCleanup(),setTimeout((()=>{"menu"===this.accessibleRole&&l(this.openButton),this.duetToggle.emit({open:this.open,component:"duet-popup-menu"}),"listbox"!==this.accessibleRole&&this.teleport.removeInertFromSiblings()}),200))}get itemElements(){return Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item"))}getAllPrecedingMatchingSiblings(t,e){const i=t.previousElementSibling;if(i){const t=this.getAllPrecedingMatchingSiblings(i,e);return(null==i?void 0:i.matches(e))&&t.push(i),t}return[]}get popupMenuStyleHeight(){var t;const e=Array.from(this.element.querySelectorAll(":scope duet-popup-menu-item, :scope duet-notification")).filter((t=>"none"!==t.style.display));if(e.length>0&&this.scrollLimit){const i=e.slice(0,this.scrollLimit-1);return`${i.reduce(((t,e)=>t+e.offsetHeight),0)+((null===(t=this.filterInput)||void 0===t?void 0:t.offsetHeight)||0)+17*this.getAllPrecedingMatchingSiblings(i[i.length-1],"duet-divider").length+2*Number(a.replace("px",""))}px`}return"auto"}async getFocusedItemIndex(){const t=this.getNonFilteredItems();for(let e=0;e<t.length;e++)if(await t[e].isFocused())return e;return-1}render(){return i(s,{key:"8162bd3dcf089f1fbd0890ba90752b8375845e02"},i("div",{key:"a960165406ca70e48975935be91407e196af3acb",ref:t=>{this.menuElement=t},style:{top:`${this.menuY}px`,left:`${this.menuX}px`,position:this.position,overflowY:"auto",height:this.popupMenuStyleHeight},class:{open:this.open,"duet-popup-menu-list":!0,"duet-theme-turva":"turva"===this.theme,"scroll-visible":this.scrollLimit<this.itemElements.length},role:this.accessibleRole,"aria-label":this.accessibleLabel},this.showFilterInput&&i("div",{key:"41ff2d5c37e1b82432abe9ae940120c4f27c2de7"},i("duet-input",{key:"aeeebdf64aa13db39dc6bb49e9a33a9eddf71171",ref:t=>this.filterInput=t,label:this.filterLabel[this.language],"label-hidden":!0,expand:!0,margin:"none",type:"search",onDuetInput:this.filterItems,onKeyDown:this.handleKeyDownOnFilter}),i("duet-visually-hidden",{key:"22bffb507bc56003ed6df5c58255bba01938e985"},i("span",{key:"2720b44f182bd5590999b37d4ac9157bf3d72a1c",role:"status"},`\n ${this.filterResultCount}/${this.itemElements.length}\n ${this.filterResultCountLabel[this.language]}\n `)),i("duet-spacer",{key:"ab6b1d79410935e50a5c6a15fc5f66d141ee5590",size:"xx-small"})),i("slot",{key:"6265f5a9f3cde710961b4e815da45501016f4056"})))}get element(){return o(this)}static get watchers(){return{open:["handleOpenChange"]}}};y.style="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.duet-popup-menu-list{position:absolute;top:0;left:0;z-index:950;visibility:hidden !important;width:max-content;min-width:175px;padding:8px;margin:0;color:rgb(8, 42, 77);list-style:none;background:rgb(255, 255, 255);border-radius:8px;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.07), 0 4px 10px 0 rgba(0, 41, 77, 0.15);opacity:0;transform:scaleY(0);transform-origin:top center;transition:transform 300ms ease, visibility 300ms ease, opacity 300ms ease}.duet-popup-menu-list.open{visibility:visible !important;opacity:1;transform:scaleY(1)}.duet-popup-menu-list.fixed{position:fixed}.duet-popup-menu-list.scroll-visible{overflow-y:scroll;scroll-margin:20px}.duet-popup-menu-list.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(255, 255, 255)}::slotted(duet-notification){max-width:360px}slot{--divider-margin:var(--space-x-small, 8px)}:host(.duet-theme-turva2) .duet-popup-menu-list.duet-theme-turva{color:rgb(23, 42, 59) !important}";const k=class{constructor(i){t(this,i),this.duetFocus=e(this,"duetFocus",7),this.duetBlur=e(this,"duetBlur",7),this.isSafariBrowser=/^((?!chrome|android).)*safari/i.test(null===navigator||void 0===navigator?void 0:navigator.userAgent),this.onFocus=t=>{this.focus=!0,this.duetFocus.emit({originalEvent:t,value:this.value,component:"duet-popup-menu-item"})},this.onBlur=t=>{this.focus=!1,this.duetBlur.emit({originalEvent:t,value:this.value,component:"duet-popup-menu-item"})},this.focus=!1,this.accessibleLabel=void 0,this.accessibleRole="menuitem",this.theme="",this.url=void 0,this.external=!1,this.targetLanguage=void 0,this.value=void 0,this.leadingIcon=void 0,this.leadingIconColor=void 0,this.trailingIcon=void 0,this.trailingText=void 0,this.active=!1,this.activeDescendant=!1}componentWillLoad(){p(this)}async setFocus(t){setTimeout((()=>this.itemElement.focus(t)),200)}async isFocused(){return this.focus}render(){const t=this.url?"a":"button";return i(s,{key:"d62c7b684bbf98e2ff38ae6303e7aaad03942ff9",role:"menuitem"===this.accessibleRole&&this.isSafariBrowser?null:this.accessibleRole},i(t,{key:"171d91b4a5f612c2b60a7c908ca0da3a0824e2fd",ref:t=>this.itemElement=t,tabIndex:"listitem"===this.accessibleRole?0:-1,onFocus:this.onFocus,onBlur:this.onBlur,role:"a"===t?"link":"button","aria-label":this.accessibleLabel,class:{"duet-popup-menu-item":!0,active:this.active,"duet-theme-turva":"turva"===this.theme,"active-descendant":this.activeDescendant},value:this.value,href:this.url,target:this.external?"_blank":void 0,rel:this.external?"noopener":void 0,lang:"button"===t?void 0:this.targetLanguage,hreflang:"button"===t?void 0:this.targetLanguage},this.leadingIcon&&i("duet-icon",{key:"37db0ce85c42bb23dd33c522a5ebcaa174df58fa",name:this.leadingIcon,size:"x-small",color:this.leadingIconColor?this.leadingIconColor:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),i("span",{key:"8af23f7a78dc25f8d1d05adfdd8dc3bd1d489af8",class:"duet-popup-menu-item-label"},i("slot",{key:"ef86e949a4bacdc7755e6e49f5814d554584a9be"})),(this.trailingIcon||this.active||this.url&&this.external)&&i("duet-icon",{key:"579369a5f1da1a7275dd309e163d1d5d3b847db2",name:this.url&&this.external?x.title:this.active?"messaging-checked-small":this.trailingIcon,size:this.url&&this.external||this.active?"xx-small":"x-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&i("span",{key:"b9892d68a4a7d31a41d3fe3fbeac15cea7045895",class:"duet-popup-menu-item-trailing"},this.trailingText)))}get element(){return o(this)}};k.style='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}:host{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:flex-start}.duet-popup-menu-item{position:relative;z-index:1;display:flex;flex-grow:1;gap:12px;align-items:center;height:100%;padding:8px;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.5;color:rgb(8, 42, 77);text-align:left;text-decoration:none;cursor:pointer;border-radius:4px}.duet-popup-menu-item:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .duet-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva,.duet-theme-turva2 .duet-popup-menu-item:focus,.duet-popup-menu-item:focus.duet-theme-turva2{outline:2px solid;outline-offset:2px;outline-color:rgba(53, 79, 101, 0.8)}.duet-popup-menu-item.duet-theme-turva{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58)}.duet-popup-menu-item.active{z-index:0;background:rgb(240, 247, 250)}.duet-popup-menu-item.active.duet-theme-turva{background:rgb(245, 247, 250)}.duet-popup-menu-item:hover{background:rgb(228, 241, 247)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(222, 224, 228)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}.duet-popup-menu-item .duet-popup-menu-item-trailing{padding-left:20px}.active-descendant{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .active-descendant,.active-descendant.duet-theme-turva,.duet-theme-turva2 .active-descendant,.active-descendant.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}:host(.duet-theme-turva2) .duet-popup-menu-item.duet-theme-turva{color:rgb(23, 42, 59)}:host(.duet-theme-turva2) .duet-popup-menu-item.active.duet-theme-turva{background:rgb(253, 247, 242)}:host(.duet-theme-turva2) .duet-popup-menu-item:hover.duet-theme-turva{background:rgb(251, 235, 225)}';export{y as duet_popup_menu,k as duet_popup_menu_item}
@@ -1,4 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,c,i){function o(e){return e instanceof c?e:new c((function(t){t(e)}))}return new(c||(c=Promise))((function(c,d){function r(e){try{u(i.next(e))}catch(e){d(e)}}function h(e){try{u(i["throw"](e))}catch(e){d(e)}}function u(e){e.done?c(e.value):o(e.value).then(r,h)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var c={label:0,sent:function(){if(d[0]&1)throw d[1];return d[1]},trys:[],ops:[]},i,o,d,r;return r={next:h(0),throw:h(1),return:h(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function h(e){return function(t){return u([e,t])}}function u(h){if(i)throw new TypeError("Generator is already executing.");while(r&&(r=0,h[0]&&(c=0)),c)try{if(i=1,o&&(d=h[0]&2?o["return"]:h[0]?o["throw"]||((d=o["return"])&&d.call(o),0):o.next)&&!(d=d.call(o,h[1])).done)return d;if(o=0,d)h=[h[0]&2,d.value];switch(h[0]){case 0:case 1:d=h;break;case 4:c.label++;return{value:h[1],done:false};case 5:c.label++;o=h[1];h=[0];continue;case 7:h=c.ops.pop();c.trys.pop();continue;default:if(!(d=c.trys,d=d.length>0&&d[d.length-1])&&(h[0]===6||h[0]===2)){c=0;continue}if(h[0]===3&&(!d||h[1]>d[0]&&h[1]<d[3])){c.label=h[1];break}if(h[0]===6&&c.label<d[1]){c.label=d[1];d=h;break}if(d&&c.label<d[2]){c.label=d[2];c.ops.push(h);break}if(d[2])c.ops.pop();c.trys.pop();continue}h=t.call(e,c)}catch(e){h=[6,e];o=0}finally{i=d=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:true}}};
2
- /*!
3
- * Built with Duet Design System
4
- */System.register(["./p-d04f0720.system.js","./p-15f1493c.system.js","./p-87633fff.system.js","./p-e6b5a1c7.system.js","./p-752fa0fc.system.js","./p-5a34eb53.system.js","./p-30c4c974.system.js","./p-98636086.system.js"],(function(e){"use strict";var t,c,i,o,d,r,h,u,s,a,n,l,b,p,g,m,f,v,k;return{setters:[function(e){t=e.r;c=e.c;i=e.h;o=e.H;d=e.g},function(e){r=e.i},function(e){h=e.a},function(e){u=e.c},function(e){s=e.i;a=e.h;n=e.s;l=e.u;b=e.f},function(e){p=e.g;g=e.a;m=e.c;f=e.d},function(e){v=e.h;k=e.c},function(){}],execute:function(){var x={title:"messaging-info",tags:"messaging info information circle",svg:'<svg fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" role="img"><path d="M13.5 17.25A2.252 2.252 0 0 1 11.25 15v-3.75h-.75a.75.75 0 0 1 0-1.5h.75c.827 0 1.5.673 1.5 1.5V15c0 .414.336.75.75.75h.75a.75.75 0 0 1 0 1.5z"/><circle cx="11.625" cy="7.125" r="1.125"/><path d="M12 24C5.383 24 0 18.617 0 12S5.383 0 12 0s12 5.383 12 12-5.383 12-12 12zm0-22.5C6.21 1.5 1.5 6.21 1.5 12S6.21 22.5 12 22.5 22.5 17.79 22.5 12 17.79 1.5 12 1.5z"/></svg>'};var y='*.sc-duet-choice,*.sc-duet-choice::after,*.sc-duet-choice::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.sc-duet-choice-h{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;flex-direction:column;width:auto;max-width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-choice-h:last-child,.sc-duet-choice-h:last-of-type{margin-right:0 !important}[alignment=form-distribute]>.sc-duet-choice-h:last-of-type:not(:last-child){margin-right:16px !important}@media (max-width: 35.9375em){.sc-duet-choice-h{width:100%}}.duet-expand.sc-duet-choice-h{width:100% !important}.duet-m-0.sc-duet-choice-h{margin:0 !important}.duet-fixed.sc-duet-choice-h{width:auto !important}.vertical.sc-duet-choice-h{margin-right:0 !important}@media (min-width: 48em){.horizontal.sc-duet-choice-h{margin-bottom:0 !important}}@media (min-width: 48em){.horizontal-responsive.sc-duet-choice-h{margin-bottom:0 !important;margin-right:16px !important}.horizontal-responsive.sc-duet-choice-h:last-child,.horizontal-responsive.sc-duet-choice-h:last-of-type{margin-right:0 !important}[alignment=form-distribute]>.horizontal-responsive.sc-duet-choice-h:last-of-type:not(:last-child){margin-right:16px !important}}.sc-duet-choice-h:last-child:not(:only-child){margin-right:0 !important}.duet-choice-card.sc-duet-choice{position:relative;display:block;width:100%;min-width:8rem;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-size:1rem;font-weight:400;line-height:1.1;color:rgb(8, 42, 77) !important;text-align:left;-webkit-hyphens:auto;hyphens:auto;background:rgb(255, 255, 255);border-width:1px;border-radius:8px}.duet-choice-card.duet-p-0.sc-duet-choice{padding:0 !important}.duet-choice-card.duet-m-0.sc-duet-choice{margin:0 !important}.duet-theme-turva.sc-duet-choice .duet-choice-card.sc-duet-choice{font-family:"turva-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(23, 28, 58) !important}.duet-choice-card-flextainer.sc-duet-choice{display:flex}.duet-choice-label.sc-duet-choice{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:flex;gap:12px;align-items:center;justify-content:flex-start;width:100%;height:100%;min-height:3.875rem;padding:calc(1rem + 1px);font-size:1rem;font-weight:600;word-break:break-word;text-decoration:none;cursor:pointer;border:1px solid rgb(212, 223, 229);border-radius:8px;transition:background-color 150ms ease, border-color 300ms ease}.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-icon.sc-duet-choice,.duet-choice-label.has-before-text.sc-duet-choice .duet-choice-card-text.sc-duet-choice{align-self:flex-start;margin-top:0.25rem}.duet-choice-label.sc-duet-choice>div.sc-duet-choice:last-child{flex:1;align-self:flex-start;justify-self:flex-end;margin-top:0.25rem}.has-info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-top-right-radius:0;border-bottom-right-radius:0}.info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-bottom-right-radius:0;border-bottom-left-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(222, 224, 228)}.duet-theme-turva.sc-duet-choice .info.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(222, 224, 228)}.duet-choice-label.sc-duet-choice:active{opacity:0.75;transition:none !important}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{padding:1rem;background:rgb(240, 247, 250);border-color:rgb(0, 119, 179) !important;border-width:2px}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{background:rgb(245, 247, 250);border-color:rgb(23, 28, 58) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(198, 12, 48)}.checked.collapsible.sc-duet-choice>.duet-choice-label.sc-duet-choice,.collapsible-force-expanded.collapsible.sc-duet-choice>.duet-choice-label.sc-duet-choice{padding-bottom:calc(1rem + 2px) !important;border-bottom:0 !important;border-bottom-right-radius:0;border-bottom-left-radius:0}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(0, 119, 179);border-width:2px}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(127, 150, 165)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(23, 28, 58)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(143, 147, 158)}.duet-theme-turva .info .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(143, 147, 158)}.sc-duet-choice-h:not(.no-hover):not(.disabled):not([checked]):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){padding:1rem}input.sc-duet-choice:focus{outline:0}input.sc-duet-choice:focus+.duet-choice-label.sc-duet-choice{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva.sc-duet-choice input.sc-duet-choice:focus+.duet-choice-label.sc-duet-choice,input.sc-duet-choice:focus+.duet-choice-label.duet-theme-turva.sc-duet-choice,.duet-theme-turva2.sc-duet-choice input.sc-duet-choice:focus+.duet-choice-label.sc-duet-choice,input.sc-duet-choice:focus+.duet-choice-label.duet-theme-turva2.sc-duet-choice{outline-color:rgba(53, 79, 101, 0.8)}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(98, 121, 138) !important;cursor:default !important;background:rgb(245, 248, 250) !important;border-color:rgb(212, 223, 229) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(98, 121, 138)}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(143, 147, 158)}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(98, 121, 138) !important}input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:hover,input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:active,input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice:focus{outline:none !important;opacity:1 !important;transition:none !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{color:rgb(143, 147, 158) !important;background:rgb(245, 247, 250) !important;border-color:rgb(222, 224, 228) !important}.duet-theme-turva.sc-duet-choice input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice .duet-checkmark.sc-duet-choice{border-color:rgb(143, 147, 158) !important}.checked.sc-duet-choice>input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{border-color:rgb(127, 150, 165) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>input[disabled].sc-duet-choice+.duet-choice-label.sc-duet-choice{border-color:rgb(143, 147, 158) !important}.duet-checkmark-container.sc-duet-choice{position:relative;width:20px;height:20px;margin-left:auto;border:1px solid rgb(127, 150, 165);border-radius:4px;transition:border 300ms ease}.duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(143, 147, 158)}.checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(0, 119, 179);border-color:rgb(0, 119, 179);transition:none}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(23, 28, 58);border-color:rgb(23, 28, 58) !important}.duet-checkmark-container.duet-checkmark-radio.sc-duet-choice{border-radius:50%}[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(181, 198, 208) !important;border-color:rgb(181, 198, 208) !important}.duet-theme-turva.sc-duet-choice [disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(199, 202, 207) !important}.checked.sc-duet-choice>[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(181, 198, 208) !important}.duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>[disabled].sc-duet-choice+label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(199, 202, 207) !important;border-color:rgb(199, 202, 207) !important}.duet-checkmark.sc-duet-choice{position:absolute;top:10px;left:3px;width:5.3333333333px;height:11.8518518519px;border-top:2px solid rgb(255, 255, 255);border-right:2px solid rgb(255, 255, 255);opacity:1;transform:scaleX(-1) rotate(135deg) translateZ(0);transform-origin:left top;animation-name:duet-checkmark;animation-duration:600ms;animation-timing-function:ease-out;animation-fill-mode:forwards}@keyframes duet-checkmark{0%{width:0;height:0;opacity:1}20%{width:5.3333333333px;height:0;opacity:1}40%,100%{width:5.3333333333px;height:11.8518518519px;opacity:1}}.duet-choice-card-icon.sc-duet-choice{position:relative;color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-card-icon.sc-duet-choice{color:rgb(164, 4, 40)}.duet-choice-card-icon.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-section-hidden.sc-duet-choice{display:none}.duet-choice-card-info.duet-choice-card-collapsed.sc-duet-choice,.duet-choice-card-collapsed.duet-choice-card-collapsible.sc-duet-choice{position:relative;width:auto;padding:0 !important;background:unset !important;border:0;border-radius:0}.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:20px !important;position:relative;width:100%;font-weight:400;color:rgb(8, 42, 77);border:1px solid rgb(212, 223, 229);border-top:0;border-radius:0 0 8px 8px;transition:border-color 300ms ease}@media (min-width: 36em){.duet-choice-card-info.sc-duet-choice,.duet-choice-card-collapsible.sc-duet-choice{padding:28px !important}}.duet-theme-turva.sc-duet-choice .duet-choice-card-info.sc-duet-choice,.duet-theme-turva.sc-duet-choice .duet-choice-card-collapsible.sc-duet-choice{color:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.checked.sc-duet-choice>.duet-choice-card-info.sc-duet-choice,.checked.sc-duet-choice>.duet-choice-card-collapsible.sc-duet-choice{display:block}.duet-choice-card-info-expanded.sc-duet-choice,.duet-choice-card-collapsible-expanded.sc-duet-choice{display:block}.duet-choice-card-collapsible.sc-duet-choice{background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-top:0}.duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{background:rgb(255, 255, 255);border-color:rgb(222, 224, 228)}.duet-choice-card-collapsible.checked.sc-duet-choice{padding:19px !important;padding-top:20px !important;border-color:rgb(0, 119, 179);border-width:2px}@media (min-width: 36em){.duet-choice-card-collapsible.checked.sc-duet-choice{padding:27px !important;padding-top:28px !important}}.duet-choice-card-collapsible.checked.duet-theme-turva.sc-duet-choice{border-color:rgb(23, 28, 58)}.duet-choice-card-collapsible-disabled.sc-duet-choice{background:rgb(245, 248, 250);border-color:rgb(212, 223, 229)}.duet-choice-card-collapsible-disabled.checked.sc-duet-choice{border-color:rgb(212, 223, 229)}.duet-choice-card-collapsible-disabled.duet-theme-turva.sc-duet-choice{background:rgb(245, 247, 250);border-color:rgb(222, 224, 228)}.duet-choice-card-collapsible-disabled.duet-theme-turva.checked.sc-duet-choice{border-color:rgb(222, 224, 228)}.duet-choice-card-info.sc-duet-choice{font-size:0.875rem;line-height:1.5;background:rgb(245, 248, 250);transition:150ms ease-out}.duet-choice-card-info.duet-theme-turva.sc-duet-choice{background:rgb(245, 247, 250);border-color:rgb(222, 224, 228)}.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container.sc-duet-choice-s>*,.duet-choice-card-info.duet-choice-card-collapsed .duet-choice-info-container .sc-duet-choice-s>*{display:none}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-container.sc-duet-choice:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8);display:block}.duet-theme-turva .user-is-tabbing.sc-duet-choice-h .duet-choice-info-container.sc-duet-choice:focus,.user-is-tabbing.sc-duet-choice-h .duet-choice-info-container.sc-duet-choice:focus.duet-theme-turva,.duet-theme-turva2 .user-is-tabbing.sc-duet-choice-h .duet-choice-info-container.sc-duet-choice:focus,.user-is-tabbing.sc-duet-choice-h .duet-choice-info-container.sc-duet-choice:focus.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.disabled.sc-duet-choice-h .duet-choice-card-collapsible.sc-duet-choice{border-color:rgb(127, 150, 165)}.disabled.sc-duet-choice-h .duet-choice-card-collapsible.duet-theme-turva.sc-duet-choice{border-color:rgb(143, 147, 158)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(0, 119, 179);border-width:2px}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){border-color:rgb(143, 147, 158)}[collapsible-force-expanded].sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){padding:19px !important;padding-top:20px !important}@media (min-width: 36em){[collapsible-force-expanded].sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-collapsible.sc-duet-choice:not(.checked){padding:27px !important;padding-top:28px !important}}.duet-choice-info-toggle.sc-duet-choice{display:flex;flex-shrink:0;align-items:flex-start;justify-content:center;width:57.6px;padding-top:1.25rem;-webkit-appearance:none;appearance:none;cursor:pointer;background:rgb(255, 255, 255);border:1px solid rgb(212, 223, 229);border-left:0 none;border-top-right-radius:8px;border-bottom-right-radius:8px}.duet-choice-info-toggle.sc-duet-choice:focus{outline:0}.user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus{outline:2px solid;outline-offset:2px;outline-color:rgba(0, 119, 179, 0.8)}.duet-theme-turva .user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus,.user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus.duet-theme-turva,.duet-theme-turva2 .user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus,.user-is-tabbing.sc-duet-choice-h .duet-choice-info-toggle.sc-duet-choice:focus.duet-theme-turva2{outline-color:rgba(53, 79, 101, 0.8)}.duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 248, 250);border-bottom-color:transparent;border-bottom-right-radius:0}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 247, 250)}.duet-choice-info-toggle[disabled].sc-duet-choice{pointer-events:none;background:rgb(245, 248, 250) !important;border-color:rgb(212, 223, 229) !important}.duet-choice-info-toggle[disabled].sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(127, 150, 165) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice{background:rgb(245, 247, 250) !important;border-color:rgb(222, 224, 228) !important}.duet-choice-info-toggle[disabled].duet-theme-turva.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(143, 147, 158) !important}.checked.sc-duet-choice+.duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(0, 119, 179) !important}.duet-choice-info-toggle.sc-duet-choice duet-icon.sc-duet-choice{display:block}.duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice .duet-choice-info-icon.sc-duet-choice{color:rgb(198, 12, 48)}.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(127, 150, 165)}.duet-theme-turva .sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice .duet-choice-info-toggle.sc-duet-choice{border-left-color:rgb(143, 147, 158)}.duet-choice-input.sc-duet-choice{position:absolute !important;width:100%;height:100%;opacity:0}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-card.sc-duet-choice{color:rgb(23, 42, 59) !important}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(178, 194, 205)}.info .duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-choice-label.sc-duet-choice{border-color:rgb(178, 194, 205)}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice{background:rgb(245, 246, 247);border-color:rgb(23, 42, 59) !important}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(230, 23, 64)}.duet-choice-label .duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .checked.sc-duet-choice>.duet-choice-label.sc-duet-choice .duet-checkmark-container.sc-duet-choice{background:rgb(23, 42, 59);border-color:rgb(23, 42, 59) !important}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-info.sc-duet-choice,.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-collapsible.sc-duet-choice{color:rgb(23, 42, 59);border-color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-collapsible.sc-duet-choice{border-color:rgb(178, 194, 205)}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-collapsible.checked.sc-duet-choice{border-color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-card-info.sc-duet-choice{background:rgb(245, 246, 247);border-color:rgb(178, 194, 205)}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.sc-duet-choice .duet-checkmark-container.sc-duet-choice{border-color:rgb(120, 145, 164)}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-info-toggle.sc-duet-choice{border-color:rgb(178, 194, 205)}.duet-theme-turva2.sc-duet-choice-h .duet-theme-turva.duet-choice-info-toggle[aria-expanded=true].sc-duet-choice{background:rgb(245, 246, 247);border-bottom-color:transparent}.duet-theme-turva2.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-theme-turva.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked){border-color:rgb(23, 42, 59)}.duet-theme-turva2.sc-duet-choice-h:not(.no-hover):not(.disabled):hover>.duet-theme-turva.duet-choice-card-flextainer.sc-duet-choice .duet-choice-label.sc-duet-choice:not(.checked) .duet-checkmark-container.sc-duet-choice{border-color:rgb(120, 145, 164)}';var w=y;var z=e("duet_choice",function(){function e(e){var i=this;t(this,e);this.duetChoiceReady=c(this,"duetChoiceReady",7);this.duetChange=c(this,"duetChange",7);this.duetFocus=c(this,"duetFocus",7);this.duetBlur=c(this,"duetBlur",7);this.hasHeader=false;this.choiceId=u("DuetChoice");this.expandId=u("DuetChoiceExpand");this.headerId=u("DuetChoiceHeader");this.infoButtonId=u("DuetChoiceInfoButton");this.onMouseEnter=function(){i.isHovering=true};this.onMouseLeave=function(){i.isHovering=false};this.onClick=function(e){i.toggleChecked(e)};this.handleKeyDown=function(e){if(s(e)){i.toggleChecked(e)}if(a(e)&&i.hasInfo){i.toggleInfo()}};this.onChange=function(){i.checked=i.nativeInput.checked||false;i.duetChange.emit({checked:i.checked,value:i.value,component:"duet-choice"})};this.onBlur=function(e){i.duetBlur.emit({originalEvent:e,checked:i.checked,value:i.value,component:"duet-choice"})};this.onFocus=function(e){i.duetFocus.emit({originalEvent:e,checked:i.checked,value:i.value,component:"duet-choice"})};this.toggleChecked=function(e){e.preventDefault();e.stopPropagation();if(i.getDisabled()){return}if(i.type==="radio"&&i.checked){return}i.checked=!i.checked;i.duetChange.emit({originalEvent:e,checked:i.checked,value:i.value,component:"duet-choice"})};this.toggleInfo=function(){i.isInfoOpen=!i.isInfoOpen;if(i.isInfoOpen){setTimeout((function(){var e;(e=i.infoContainer)===null||e===void 0?void 0:e.focus()}),150)}};this.isHovering=false;this.isInfoOpen=false;this.theme="";this.label="label";this.accessibleLabelInfoButtonDefaults=h;this.accessibleLabelInfoButton=p(this.accessibleLabelInfoButtonDefaults);this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.caption="";this.value=undefined;this.type="checkbox";this.name=undefined;this.checked=false;this.collapsible=false;this.collapsibleForceExpanded=false;this.margin="auto";this.icon="";this.expand=false;this.padding="auto";this.identifier=undefined;this.groupDirection=undefined;this.groupDisabled=undefined;this.groupResponsive=undefined;this.disabled=false;this.required=false;this.infoLabelDefaults={fi:"Lisätietoja vaihtoehdosta",en:"More information about",sv:"Mera information om"};this.infoLabel=p(this.infoLabelDefaults,g());this.collapsibleNotificationDefaults={fi:"Tämä valinta sisältää lisätietoja, jotka avautuivat alle",en:"This choice has additional information opened below",sv:"Det här val har mer information som öppnades nedan"};this.collapsibleNotification=p(this.collapsibleNotificationDefaults,g())}e.prototype.componentWillLoad=function(){r(this);this.hasInfo=v(this.element,"info");this.hasHeader=v(this.element,"header");this.hasAdditional=v(this.element,"additional");this.hasLabel=v(this.element,"label");this.hasBeforeText=v(this.element,"before-text");this.duetChoiceReady.emit()};e.prototype.connectedCallback=function(){m(this,[{prop:"accessibleLabelInfoButton",defaults:"accessibleLabelInfoButtonDefaults"},{prop:"infoLabel",defaults:"infoLabelDefaults"},{prop:"collapsibleNotification",defaults:"collapsibleNotificationDefaults"}]);n(this);this.duetChoiceReady.emit()};e.prototype.disconnectedCallback=function(){f(this);l(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.nativeInput.focus(e);return[2]}))}))};e.prototype.toggleInfoMethod=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.isInfoOpen=!this.isInfoOpen;return[2]}))}))};e.prototype.handleEscape=function(e){if(b(e)){if(this.isInfoOpen){this.isInfoOpen=false;if(this.infoButtonEl){this.infoButtonEl.focus()}}}};e.prototype.isCollapsibleAnnounceable=function(){if(!this.collapsible||!this.getExpanded()){return false}var e=Array.from(this.element.querySelectorAll("#".concat(this.choiceId,"-collapsible-content > *"))||[]);var t=["duet-paragraph","duet-heading","duet-fieldset"];return e.every((function(e){return t.includes(e.tagName.toLowerCase())}))};e.prototype.getAriaDescribedby=function(){if(this.accessibleDescribedBy){return this.accessibleDescribedBy}if((this.collapsible||this.hasInfo)&&this.getExpanded()){if(this.hasHeader){return this.headerId}else if(this.isCollapsibleAnnounceable()){return this.expandId}else{return"".concat(this.choiceId,"-collapsible-notification")}}return null};e.prototype.getDisabled=function(){return this.disabled||this.groupDisabled};e.prototype.getExpanded=function(){return this.checked||this.collapsibleForceExpanded};e.prototype.getClassNames=function(){if(this.hasInfo&&!this.collapsible){return{checked:this.checked,"duet-choice-card-info":true,"duet-choice-card-info-expanded":this.isInfoOpen,"duet-choice-card-collapsed":!this.isInfoOpen,"duet-theme-turva":this.theme==="turva"}}if(!this.hasInfo&&this.collapsible){return{checked:this.checked,"duet-choice-card-collapsible":true,"duet-choice-card-collapsible-expanded":this.getExpanded(),"duet-choice-card-collapsed":!this.getExpanded(),"duet-choice-card-collapsible-disabled":this.getDisabled(),"duet-theme-turva":this.theme==="turva"}}return{checked:this.checked,"duet-choice-default-slot":true}};e.prototype.render=function(){var e=this;var t=this.identifier||this.choiceId;return i(o,{class:{horizontal:this.groupDirection==="horizontal"&&!this.groupResponsive,"horizontal-responsive":this.groupDirection==="horizontal"&&this.groupResponsive,"duet-m-0":this.margin==="none","duet-expand":this.expand,"duet-theme-turva":this.theme==="turva","no-hover":this.isHovering,disabled:this.getDisabled()}},i("div",{class:{"duet-choice-card-flextainer":true,"duet-theme-turva":this.theme==="turva"}},i("div",{class:{"duet-choice-card":true,"has-icon":!!this.icon,"has-info":this.hasInfo,checked:this.checked,info:this.isInfoOpen,collapsible:this.collapsible,"collapsible-force-expanded":this.collapsibleForceExpanded,"duet-p-0":this.padding==="none"}},i("input",{class:"duet-choice-input",type:this.type,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,disabled:this.getDisabled(),required:this.required,id:t,name:this.name,value:this.value,checked:this.checked,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,"aria-owns":this.accessibleOwns,"aria-describedby":this.getAriaDescribedby(),onKeyDown:this.handleKeyDown,ref:function(t){return e.nativeInput=t}}),i("label",{htmlFor:t,class:{"duet-choice-label":true,"has-before-text":this.hasBeforeText},onClick:this.onClick},this.hasBeforeText&&i("slot",{name:"before-text"}),this.icon&&i("div",{class:"duet-choice-card-icon"},i("duet-icon",{margin:"none",size:"small",name:this.icon,color:"currentColor"})),i("div",{class:"duet-choice-card-text"},i("div",null,this.hasLabel?i("slot",{name:"label"}):this.label),this.caption&&i("div",null,i("duet-spacer",{size:"xx-small"}),i("duet-caption",{margin:"none",selected:this.checked},this.caption)),this.hasAdditional&&i("div",null,i("duet-spacer",{size:"xx-small"}),i("slot",{name:"additional"}))),i("div",null,i("div",{class:{"duet-checkmark-container":true,"duet-checkmark-radio":this.type==="radio"}},this.checked&&i("div",{class:"duet-checkmark"}))))),this.hasInfo&&!this.collapsible&&i("button",{ref:function(t){return e.infoButtonEl=t},id:this.infoButtonId,class:{"duet-choice-info-toggle":true,"duet-theme-turva":this.theme==="turva"},onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave,onClick:this.toggleInfo,disabled:this.getDisabled(),"aria-expanded":this.isInfoOpen?"true":"false","aria-label":"".concat(this.infoLabel," ").concat(this.label),"aria-controls":this.expandId,tabindex:this.type==="radio"&&!this.checked?"-1":"0",type:"button",onKeyUp:function(t){return e.handleEscape(t)}},i("div",{class:"duet-choice-info-icon"},i("duet-icon",{icon:x.svg,margin:"none",size:"small",color:"currentColor"})))),this.collapsible&&i("span",{id:"".concat(this.choiceId,"-collapsible-notification"),hidden:true},this.collapsibleNotification),this.collapsible||this.hasInfo?i("div",{class:this.getClassNames(),id:this.expandId},i("span",{class:{"duet-choice-section-visible":this.collapsible?this.getExpanded():this.isInfoOpen,"duet-choice-section-hidden":this.collapsible?!this.getExpanded():!this.isInfoOpen}},i("span",{id:this.headerId},i("slot",{name:"header"})),this.hasInfo?i("span",{ref:function(t){return e.infoContainer=t},tabindex:"-1",class:"duet-choice-info-container",onKeyUp:function(t){return e.handleEscape(t)}},i("span",null,i("slot",{name:"info"})),i("slot",null)):i("span",{id:"".concat(this.choiceId,"-collapsible-content")},i("slot",null)))):null)};Object.defineProperty(e.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});return e}());z.style=w;var _="*.sc-duet-choice-group,*.sc-duet-choice-group::after,*.sc-duet-choice-group::before{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0}.sc-duet-choice-group-h{box-sizing:border-box;padding:0;margin:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;background:transparent;border:0;display:block;width:100%}.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:block;margin-bottom:-12px}.horizontal.sc-duet-choice-group-h .duet-choice-group.duet-no-stacking.sc-duet-choice-group{display:flex}@media (min-width: 48em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{margin-bottom:0}}@media (max-width: 35.9375em){.horizontal.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group{display:flex}}.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}@media (max-width: 22.5em){.horizontal.duet-choice-group-breakpoint-x-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}}.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 36em){.horizontal.duet-choice-group-breakpoint-small.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 48em){.horizontal.duet-choice-group-breakpoint-medium.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 62em){.horizontal.duet-choice-group-breakpoint-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:block}@media (min-width: 64.0625em){.horizontal.duet-choice-group-breakpoint-x-large.sc-duet-choice-group-h .duet-choice-group.sc-duet-choice-group:not(.duet-no-stacking){display:flex}}.duet-choice-group.sc-duet-choice-group{position:relative;width:100%;margin-bottom:-12px}";var C=_;var j=e("duet_choice_group",function(){function e(e){var c=this;t(this,e);this.choiceGroupName="duet-choice-group";this.choices=new Set;this.childObserverCallback=function(e){if(e.some((function(e){var t;return((t=e.removedNodes)===null||t===void 0?void 0:t.length)>0&&Array.from(e.removedNodes.values()).some((function(e){return e.nodeName.toLowerCase()==="duet-choice"}))}))){c.updateChoices()}};this.onSelect=function(e){if(e.detail.component!=="duet-choice"){return}var t=e.target;if(t&&c.choices.has(t)){c.value=t.value}};this.onChoiceReady=function(){c.updateChoices()};this.direction="vertical";this.margin="auto";this.theme="";this.error="";this.name=undefined;this.label="Label";this.labelHidden=false;this.caption=undefined;this.tooltip=undefined;this.tooltipDirection="auto";this.responsive=false;this.breakpoint="small";this.value=undefined;this.disabled=undefined;this.required=false;this.accessibleLiveError="polite"}e.prototype.removeDisabledAttributeWhenFalse=function(){if(!this.disabled){this.element.removeAttribute("disabled")}};e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.childObserver=new MutationObserver(this.childObserverCallback.bind(this));this.childObserver.observe(this.element,{childList:true,subtree:true});this.setInitialValue();this.updateChoices();return[2]}))}))};e.prototype.disconnectedCallback=function(){if(this.childObserver){this.childObserver.disconnect();this.childObserver=undefined}};e.prototype.componentWillLoad=function(){r(this);this.removeDisabledAttributeWhenFalse();k(this.element,"tooltip","duet-tooltip",1,true)};e.prototype.setInitialValue=function(){if(typeof this.initialValue==="undefined"){this.initialValue=this.value}};e.prototype.getInitialValue=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.initialValue]}))}))};e.prototype.updateChoices=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,c,i,o,d;var r=this;return __generator(this,(function(h){t=(e=this.value)!==null&&e!==void 0?e:this.initialValue;c=false;this.choices.clear();this.element.querySelectorAll("duet-choice").forEach((function(e){if(e.closest("duet-choice-group")===r.element){r.choices.add(e)}}));for(i=0,o=Array.from(this.choices);i<o.length;i++){d=o[i];d.name=this.name;d.required=this.required;d.groupDisabled=this.disabled;d.groupDirection=this.direction;d.groupResponsive=this.responsive;if(!c&&d.value===t){c=true;d.checked=true;if(typeof this.value==="undefined"){this.value=t}}else{d.checked=false}}if(!c){this.value=undefined}return[2]}))}))};e.prototype.render=function(){var e;return i(o,{onDuetChange:this.onSelect,onDuetChoiceReady:this.onChoiceReady,class:{horizontal:this.direction==="horizontal","duet-choice-group-breakpoint-x-small":this.responsive&&this.breakpoint==="x-small","duet-choice-group-breakpoint-small":this.responsive&&this.breakpoint==="small","duet-choice-group-breakpoint-medium":this.responsive&&this.breakpoint==="medium","duet-choice-group-breakpoint-large":this.responsive&&this.breakpoint==="large","duet-choice-group-breakpoint-x-large":this.responsive&&this.breakpoint==="x-large"}},i("duet-fieldset",{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&&i("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),i("slot",{name:"tooltip"}),i("div",{class:(e={},e[this.choiceGroupName]=true,e["duet-no-stacking"]=!this.responsive,e)},i("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return d(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["removeDisabledAttributeWhenFalse","updateChoices"],value:["setInitialValue","updateChoices"],name:["updateChoices"],direction:["updateChoices"],responsive:["updateChoices"]}},enumerable:false,configurable:true});return e}());j.style=C}}}));
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- const n={fi:"Linkki tallennetaan laitteellesi",sv:"Nedladdningslänk",en:"Download link"},a={fi:"Avautuu uuteen ikkunaan",sv:"Öppnas i nytt fönster",en:"Opens in a new window"},t={fi:"Ladataan",sv:"Laddas",en:"Loading…"},e={fi:"Odota, ole hyvä.",sv:"Vänligen vänta.",en:"Please wait."},s={fi:"Lista jossa {total} kohtaa. Olet kohdassa {current}.",en:"List with {total} steps. You are on step {current}.",sv:"Lista med {total} steg. Du är på steg {current}."},i={default:{fi:"Huomioithan",en:"Please note",sv:"Observera"},success:{fi:"Onnistunut toiminto",en:"Action completed successfully",sv:"Lyckad åtgärd"},danger:{fi:"Tärkeä varoitus",en:"Important warning",sv:"Viktig varning"},warning:{fi:"Varoitus",en:"Warning",sv:"Varning"}};export{i as D,a,e as b,t as c,s as d,n as e}
@@ -1,4 +0,0 @@
1
- /*!
2
- * Built with Duet Design System
3
- */
4
- import{g as e}from"./p-8ee40bae.js";import{p as s}from"./p-9c3c64b9.js";const t=(e,t)=>{let o={type:void 0,system_message:void 0,message:void 0};return o=(t=s(t)).filter((s=>s.type==e))[0],o||(o=t.filter((e=>"default"===e.type))[0]),o},o=(s,o)=>{const a=t(s,o),r=e(a.message);return""!==r&&r?r:a.system_message};export{o as a,t as g}