@duetds/components 7.0.4 → 7.0.5

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 (537) hide show
  1. package/hydrate/index.js +19 -6
  2. package/lib/cjs/duet-action-button.cjs.entry.js +1 -1
  3. package/lib/cjs/duet-alert.cjs.entry.js +1 -1
  4. package/lib/cjs/duet-badge.cjs.entry.js +1 -1
  5. package/lib/cjs/duet-banner.cjs.entry.js +1 -1
  6. package/lib/cjs/duet-breadcrumb.cjs.entry.js +1 -1
  7. package/lib/cjs/duet-breadcrumbs.cjs.entry.js +1 -1
  8. package/lib/cjs/duet-button_2.cjs.entry.js +1 -1
  9. package/lib/cjs/duet-callout.cjs.entry.js +1 -1
  10. package/lib/cjs/duet-caption_4.cjs.entry.js +1 -1
  11. package/lib/cjs/duet-card.cjs.entry.js +1 -1
  12. package/lib/cjs/duet-checkbox.cjs.entry.js +1 -1
  13. package/lib/cjs/duet-checkmark.cjs.entry.js +1 -1
  14. package/lib/cjs/duet-chip.cjs.entry.js +1 -1
  15. package/lib/cjs/duet-choice_2.cjs.entry.js +2 -2
  16. package/lib/cjs/duet-collapsible.cjs.entry.js +1 -1
  17. package/lib/cjs/duet-combobox.cjs.entry.js +1 -1
  18. package/lib/cjs/duet-contact-card.cjs.entry.js +1 -1
  19. package/lib/cjs/duet-cookie-consent.cjs.entry.js +1 -1
  20. package/lib/cjs/duet-date-picker.cjs.entry.js +2 -2
  21. package/lib/cjs/duet-divider_2.cjs.entry.js +1 -1
  22. package/lib/cjs/duet-editable-table_3.cjs.entry.js +1 -1
  23. package/lib/cjs/duet-empty-state.cjs.entry.js +1 -1
  24. package/lib/cjs/duet-fieldset.cjs.entry.js +1 -1
  25. package/lib/cjs/duet-footer.cjs.entry.js +1 -1
  26. package/lib/cjs/duet-grid_2.cjs.entry.js +1 -1
  27. package/lib/cjs/duet-header_2.cjs.entry.js +1 -1
  28. package/lib/cjs/duet-hero.cjs.entry.js +1 -1
  29. package/lib/cjs/duet-icon.cjs.entry.js +1 -1
  30. package/lib/cjs/duet-input_2.cjs.entry.js +1 -1
  31. package/lib/cjs/duet-layout.cjs.entry.js +1 -1
  32. package/lib/cjs/duet-list_2.cjs.entry.js +1 -1
  33. package/lib/cjs/duet-menu-bar-button.cjs.entry.js +1 -1
  34. package/lib/cjs/duet-menu-bar-dropdown-link.cjs.entry.js +1 -1
  35. package/lib/cjs/duet-menu-bar-dropdown.cjs.entry.js +1 -1
  36. package/lib/cjs/duet-menu-bar-link.cjs.entry.js +1 -1
  37. package/lib/cjs/duet-menu-bar.cjs.entry.js +1 -1
  38. package/lib/cjs/duet-modal.cjs.entry.js +2 -2
  39. package/lib/cjs/duet-multiselect.cjs.entry.js +1 -1
  40. package/lib/cjs/duet-nav.cjs.entry.js +1 -1
  41. package/lib/cjs/duet-notification_2.cjs.entry.js +1 -1
  42. package/lib/cjs/duet-number-input.cjs.entry.js +1 -1
  43. package/lib/cjs/duet-page-heading.cjs.entry.js +1 -1
  44. package/lib/cjs/duet-pagination_2.cjs.entry.js +1 -1
  45. package/lib/cjs/duet-popup-menu-item.cjs.entry.js +1 -1
  46. package/lib/cjs/duet-popup-menu.cjs.entry.js +1 -1
  47. package/lib/cjs/duet-progress.cjs.entry.js +1 -1
  48. package/lib/cjs/duet-promo-card.cjs.entry.js +1 -1
  49. package/lib/cjs/duet-radio_2.cjs.entry.js +1 -1
  50. package/lib/cjs/duet-range-slider.cjs.entry.js +1 -1
  51. package/lib/cjs/duet-scrollable_3.cjs.entry.js +1 -1
  52. package/lib/cjs/duet-section-layout.cjs.entry.js +1 -1
  53. package/lib/cjs/duet-select.cjs.entry.js +1 -1
  54. package/lib/cjs/duet-shaped-image.cjs.entry.js +1 -1
  55. package/lib/cjs/duet-show-more.cjs.entry.js +1 -1
  56. package/lib/cjs/duet-slideout-lang.cjs.entry.js +1 -1
  57. package/lib/cjs/duet-slideout-link.cjs.entry.js +1 -1
  58. package/lib/cjs/duet-slideout-panel-dropdown.cjs.entry.js +1 -1
  59. package/lib/cjs/duet-slideout-panel.cjs.entry.js +2 -2
  60. package/lib/cjs/duet-slideout.cjs.entry.js +2 -2
  61. package/lib/cjs/duet-step_2.cjs.entry.js +1 -1
  62. package/lib/cjs/duet-submenu-bar-dropdown-link.cjs.entry.js +1 -1
  63. package/lib/cjs/duet-submenu-bar-dropdown.cjs.entry.js +1 -1
  64. package/lib/cjs/duet-submenu-bar-link.cjs.entry.js +1 -1
  65. package/lib/cjs/duet-submenu-bar.cjs.entry.js +20 -7
  66. package/lib/cjs/duet-textarea.cjs.entry.js +1 -1
  67. package/lib/cjs/duet-toggle.cjs.entry.js +1 -1
  68. package/lib/cjs/duet-toolbar-dropdown-link.cjs.entry.js +1 -1
  69. package/lib/cjs/duet-toolbar-dropdown.cjs.entry.js +1 -1
  70. package/lib/cjs/duet-toolbar-link.cjs.entry.js +1 -1
  71. package/lib/cjs/duet-toolbar.cjs.entry.js +1 -1
  72. package/lib/cjs/duet-tooltip-button_2.cjs.entry.js +2 -2
  73. package/lib/cjs/duet-tooltip.cjs.entry.js +1 -1
  74. package/lib/cjs/duet-tray.cjs.entry.js +1 -1
  75. package/lib/cjs/duet-upload-aria-status.cjs.entry.js +1 -1
  76. package/lib/cjs/duet-upload-item.cjs.entry.js +1 -1
  77. package/lib/cjs/duet-visually-hidden.cjs.entry.js +1 -1
  78. package/lib/cjs/duet.cjs.js +1 -1
  79. package/lib/cjs/{focus-utils-667a4f83.js → focus-utils-b606a705.js} +1 -1
  80. package/lib/cjs/{index-319e30bb.js → index-f90f2336.js} +1 -1
  81. package/lib/cjs/loader.cjs.js +1 -1
  82. package/lib/collection/components/duet-submenu-bar/duet-submenu-bar.js +19 -6
  83. package/lib/dist-custom-elements/duet-action-button.js +1 -1
  84. package/lib/dist-custom-elements/duet-alert.js +1 -1
  85. package/lib/dist-custom-elements/duet-badge.js +1 -1
  86. package/lib/dist-custom-elements/duet-banner.js +4 -4
  87. package/lib/dist-custom-elements/duet-breadcrumb.js +2 -2
  88. package/lib/dist-custom-elements/duet-breadcrumbs.js +2 -2
  89. package/lib/dist-custom-elements/duet-button.js +1 -1
  90. package/lib/dist-custom-elements/duet-callout.js +3 -3
  91. package/lib/dist-custom-elements/duet-caption.js +1 -1
  92. package/lib/dist-custom-elements/duet-card.js +3 -3
  93. package/lib/dist-custom-elements/duet-checkbox.js +1 -1
  94. package/lib/dist-custom-elements/duet-checkmark.js +1 -1
  95. package/lib/dist-custom-elements/duet-chip.js +2 -2
  96. package/lib/dist-custom-elements/duet-choice-group.js +8 -8
  97. package/lib/dist-custom-elements/duet-choice.js +5 -5
  98. package/lib/dist-custom-elements/duet-collapsible.js +2 -2
  99. package/lib/dist-custom-elements/duet-combobox.js +2 -2
  100. package/lib/dist-custom-elements/duet-contact-card.js +8 -8
  101. package/lib/dist-custom-elements/duet-cookie-consent.js +6 -6
  102. package/lib/dist-custom-elements/duet-date-picker.js +12 -12
  103. package/lib/dist-custom-elements/duet-divider.js +1 -1
  104. package/lib/dist-custom-elements/duet-editable-table.js +7 -7
  105. package/lib/dist-custom-elements/duet-empty-state.js +1 -1
  106. package/lib/dist-custom-elements/duet-fieldset.js +1 -1
  107. package/lib/dist-custom-elements/duet-footer.js +4 -4
  108. package/lib/dist-custom-elements/duet-grid-item.js +1 -1
  109. package/lib/dist-custom-elements/duet-grid.js +1 -1
  110. package/lib/dist-custom-elements/duet-header.js +8 -8
  111. package/lib/dist-custom-elements/duet-heading.js +1 -1
  112. package/lib/dist-custom-elements/duet-hero.js +9 -9
  113. package/lib/dist-custom-elements/duet-icon.js +1 -1
  114. package/lib/dist-custom-elements/duet-input.js +1 -1
  115. package/lib/dist-custom-elements/duet-label.js +1 -1
  116. package/lib/dist-custom-elements/duet-layout.js +1 -1
  117. package/lib/dist-custom-elements/duet-link.js +1 -1
  118. package/lib/dist-custom-elements/duet-list-item.js +1 -1
  119. package/lib/dist-custom-elements/duet-list.js +1 -1
  120. package/lib/dist-custom-elements/duet-logo.js +1 -1
  121. package/lib/dist-custom-elements/duet-menu-bar-button.js +2 -2
  122. package/lib/dist-custom-elements/duet-menu-bar-dropdown-link.js +2 -2
  123. package/lib/dist-custom-elements/duet-menu-bar-dropdown.js +2 -2
  124. package/lib/dist-custom-elements/duet-menu-bar-link.js +2 -2
  125. package/lib/dist-custom-elements/duet-menu-bar.js +2 -2
  126. package/lib/dist-custom-elements/duet-modal.js +7 -7
  127. package/lib/dist-custom-elements/duet-multiselect.js +10 -10
  128. package/lib/dist-custom-elements/duet-nav.js +1 -1
  129. package/lib/dist-custom-elements/duet-notification-drawer.js +4 -4
  130. package/lib/dist-custom-elements/duet-notification.js +2 -2
  131. package/lib/dist-custom-elements/duet-number-input.js +11 -11
  132. package/lib/dist-custom-elements/duet-page-heading.js +2 -2
  133. package/lib/dist-custom-elements/duet-pagination.js +7 -7
  134. package/lib/dist-custom-elements/duet-paragraph.js +1 -1
  135. package/lib/dist-custom-elements/duet-popup-menu-item.js +2 -2
  136. package/lib/dist-custom-elements/duet-popup-menu.js +1 -1
  137. package/lib/dist-custom-elements/duet-progress.js +1 -1
  138. package/lib/dist-custom-elements/duet-promo-card.js +3 -3
  139. package/lib/dist-custom-elements/duet-radio-group.js +8 -8
  140. package/lib/dist-custom-elements/duet-radio.js +1 -1
  141. package/lib/dist-custom-elements/duet-range-slider.js +2 -2
  142. package/lib/dist-custom-elements/duet-range-stepper.js +4 -4
  143. package/lib/dist-custom-elements/duet-scrollable.js +1 -1
  144. package/lib/dist-custom-elements/duet-section-layout.js +1 -1
  145. package/lib/dist-custom-elements/duet-select.js +1 -1
  146. package/lib/dist-custom-elements/duet-shaped-image.js +1 -1
  147. package/lib/dist-custom-elements/duet-show-more.js +5 -5
  148. package/lib/dist-custom-elements/duet-slideout-lang.js +2 -2
  149. package/lib/dist-custom-elements/duet-slideout-link.js +2 -2
  150. package/lib/dist-custom-elements/duet-slideout-panel-dropdown.js +2 -2
  151. package/lib/dist-custom-elements/duet-slideout-panel.js +2 -2
  152. package/lib/dist-custom-elements/duet-slideout.js +2 -2
  153. package/lib/dist-custom-elements/duet-spacer.js +1 -1
  154. package/lib/dist-custom-elements/duet-spinner.js +1 -1
  155. package/lib/dist-custom-elements/duet-step.js +4 -4
  156. package/lib/dist-custom-elements/duet-stepper.js +2 -2
  157. package/lib/dist-custom-elements/duet-submenu-bar-dropdown-link.js +2 -2
  158. package/lib/dist-custom-elements/duet-submenu-bar-dropdown.js +2 -2
  159. package/lib/dist-custom-elements/duet-submenu-bar-link.js +2 -2
  160. package/lib/dist-custom-elements/duet-submenu-bar.js +21 -8
  161. package/lib/dist-custom-elements/duet-tab-group.js +13 -13
  162. package/lib/dist-custom-elements/duet-tab.js +1 -1
  163. package/lib/dist-custom-elements/duet-table.js +1 -1
  164. package/lib/dist-custom-elements/duet-textarea.js +10 -10
  165. package/lib/dist-custom-elements/duet-toggle.js +2 -2
  166. package/lib/dist-custom-elements/duet-toolbar-dropdown-link.js +2 -2
  167. package/lib/dist-custom-elements/duet-toolbar-dropdown.js +2 -2
  168. package/lib/dist-custom-elements/duet-toolbar-link.js +2 -2
  169. package/lib/dist-custom-elements/duet-toolbar.js +1 -1
  170. package/lib/dist-custom-elements/duet-tooltip-button.js +1 -1
  171. package/lib/dist-custom-elements/duet-tooltip-popup.js +1 -1
  172. package/lib/dist-custom-elements/duet-tooltip.js +1 -1
  173. package/lib/dist-custom-elements/duet-tray.js +3 -3
  174. package/lib/dist-custom-elements/duet-upload-aria-status.js +1 -1
  175. package/lib/dist-custom-elements/duet-upload-item.js +1 -1
  176. package/lib/dist-custom-elements/duet-upload.js +18 -18
  177. package/lib/dist-custom-elements/duet-visually-hidden.js +1 -1
  178. package/lib/dist-custom-elements/index.js +1 -1
  179. package/lib/dist-custom-elements/{p-7b123b3e.js → p-151b01b2.js} +5 -5
  180. package/lib/dist-custom-elements/{p-97227973.js → p-2032dd3f.js} +3 -3
  181. package/lib/dist-custom-elements/{p-9c5d63ad.js → p-20602589.js} +1 -1
  182. package/lib/dist-custom-elements/{p-57a42162.js → p-2e7300a2.js} +1 -1
  183. package/lib/dist-custom-elements/{p-1aff20dc.js → p-3071f281.js} +2 -2
  184. package/lib/dist-custom-elements/{p-3af7a8f7.js → p-3692661b.js} +8 -8
  185. package/lib/dist-custom-elements/{p-bb04fe7f.js → p-3c3c6404.js} +1 -1
  186. package/lib/dist-custom-elements/{p-78123037.js → p-4a928579.js} +10 -10
  187. package/lib/dist-custom-elements/{p-77f70890.js → p-5097b392.js} +2 -2
  188. package/lib/dist-custom-elements/{p-175941db.js → p-539546ed.js} +2 -2
  189. package/lib/dist-custom-elements/{p-288a3be1.js → p-5cbe7830.js} +1 -1
  190. package/lib/dist-custom-elements/{p-57e02127.js → p-5ebfa1fc.js} +2 -2
  191. package/lib/dist-custom-elements/{p-a058928f.js → p-67e5f370.js} +1 -1
  192. package/lib/dist-custom-elements/{p-b2fb181b.js → p-6c859fc7.js} +10 -10
  193. package/lib/dist-custom-elements/{p-b80858dd.js → p-7d340285.js} +1 -1
  194. package/lib/dist-custom-elements/{p-0a5bc76d.js → p-82f25dd1.js} +1 -1
  195. package/lib/dist-custom-elements/{p-2f34816f.js → p-88cce447.js} +1 -1
  196. package/lib/dist-custom-elements/{p-2007bad3.js → p-8d1916ce.js} +1 -1
  197. package/lib/dist-custom-elements/{p-0c12cea9.js → p-8dc8ff6d.js} +1 -1
  198. package/lib/dist-custom-elements/{p-8bd6e1bc.js → p-8df7d6a0.js} +1 -1
  199. package/lib/dist-custom-elements/{p-5c3bcf22.js → p-93efac83.js} +3 -3
  200. package/lib/dist-custom-elements/{p-9284aee2.js → p-babced43.js} +4 -4
  201. package/lib/dist-custom-elements/{p-3c204dbe.js → p-c03c9baf.js} +2 -2
  202. package/lib/dist-custom-elements/{p-e8712b99.js → p-c7425163.js} +1 -1
  203. package/lib/dist-custom-elements/{p-42c5573b.js → p-cf2e0886.js} +1 -1
  204. package/lib/dist-custom-elements/{p-3f6149bf.js → p-d09af0fa.js} +1 -1
  205. package/lib/dist-custom-elements/{p-3bae0600.js → p-d60416fe.js} +1 -1
  206. package/lib/dist-custom-elements/{p-966b5d62.js → p-de107b60.js} +5 -5
  207. package/lib/dist-custom-elements/{p-71d31bcd.js → p-e940ef37.js} +1 -1
  208. package/lib/dist-custom-elements/{p-805ba7b9.js → p-ea2d84bf.js} +1 -1
  209. package/lib/dist-custom-elements/{p-cfb28a0c.js → p-eb82345f.js} +5 -5
  210. package/lib/dist-custom-elements/{p-963c4150.js → p-f17f1f16.js} +1 -1
  211. package/lib/dist-custom-elements/{p-dff1e67c.js → p-f3f3c186.js} +3 -3
  212. package/lib/dist-custom-elements/{p-b267cbea.js → p-ff0470e3.js} +1 -1
  213. package/lib/duet/duet.esm.js +1 -1
  214. package/lib/duet/duet.js +1 -1
  215. package/lib/duet/{p-0e979bdf.system.entry.js → p-01ca8877.system.entry.js} +1 -1
  216. package/lib/duet/p-029d463c.entry.js +4 -0
  217. package/lib/duet/{p-346e8e6c.entry.js → p-03024efb.entry.js} +1 -1
  218. package/lib/duet/{p-03301834.system.entry.js → p-0696670c.system.entry.js} +1 -1
  219. package/lib/duet/{p-d085c819.entry.js → p-075a84bf.entry.js} +1 -1
  220. package/lib/duet/{p-91748013.entry.js → p-0801b38b.entry.js} +1 -1
  221. package/lib/duet/{p-d55907fe.system.entry.js → p-0ae7feb2.system.entry.js} +1 -1
  222. package/lib/duet/{p-a0d6fad9.system.entry.js → p-0d3322bb.system.entry.js} +1 -1
  223. package/lib/duet/{p-7233b7dc.entry.js → p-124b3f9e.entry.js} +1 -1
  224. package/lib/duet/{p-e3df0b45.system.entry.js → p-1458c0b5.system.entry.js} +1 -1
  225. package/lib/duet/{p-b93753a5.entry.js → p-14c7b8cb.entry.js} +1 -1
  226. package/lib/duet/{p-1531761d.entry.js → p-1a446c87.entry.js} +1 -1
  227. package/lib/duet/{p-088a661f.system.entry.js → p-1f0d4b1c.system.entry.js} +1 -1
  228. package/lib/duet/{p-df06d448.system.entry.js → p-1f392133.system.entry.js} +1 -1
  229. package/lib/duet/{p-6e3445f4.system.entry.js → p-1fbf06e4.system.entry.js} +1 -1
  230. package/lib/duet/p-22594448.entry.js +4 -0
  231. package/lib/duet/{p-40144fe2.entry.js → p-22666658.entry.js} +1 -1
  232. package/lib/duet/{p-1707d400.system.entry.js → p-23325515.system.entry.js} +1 -1
  233. package/lib/duet/{p-992557fa.system.entry.js → p-256b6e2d.system.entry.js} +1 -1
  234. package/lib/duet/{p-1b798cdc.entry.js → p-27304b16.entry.js} +1 -1
  235. package/lib/duet/{p-99f0fae9.entry.js → p-28e3e2fd.entry.js} +1 -1
  236. package/lib/duet/{p-0536d4f1.entry.js → p-2b681e9f.entry.js} +1 -1
  237. package/lib/duet/{p-aef57e05.system.entry.js → p-2ef70ec0.system.entry.js} +1 -1
  238. package/lib/duet/{p-e67b7a8a.system.entry.js → p-3054dd5f.system.entry.js} +1 -1
  239. package/lib/duet/{p-dcd5c72b.entry.js → p-35b397ce.entry.js} +1 -1
  240. package/lib/duet/{p-2917eb62.entry.js → p-44c00ff4.entry.js} +1 -1
  241. package/lib/duet/{p-0ffc30a9.entry.js → p-44d81fba.entry.js} +1 -1
  242. package/lib/duet/{p-327ade54.system.entry.js → p-45667737.system.entry.js} +1 -1
  243. package/lib/duet/{p-7e9b2142.system.entry.js → p-48516d57.system.entry.js} +1 -1
  244. package/lib/duet/{p-c97ceb80.system.entry.js → p-4a129771.system.entry.js} +1 -1
  245. package/lib/duet/{p-07e6c008.system.entry.js → p-4aa085d8.system.entry.js} +1 -1
  246. package/lib/duet/{p-01c7ea4c.entry.js → p-4b03434d.entry.js} +1 -1
  247. package/lib/duet/{p-3dca9b7e.system.entry.js → p-4ceeefc0.system.entry.js} +1 -1
  248. package/lib/duet/{p-315dbcb4.entry.js → p-4e39fd05.entry.js} +1 -1
  249. package/lib/duet/{p-718bbfc5.system.entry.js → p-4e8f16ef.system.entry.js} +1 -1
  250. package/lib/duet/{p-618be70d.entry.js → p-4eb7dac8.entry.js} +1 -1
  251. package/lib/duet/{p-94215f65.entry.js → p-5253d718.entry.js} +1 -1
  252. package/lib/duet/{p-8aa280f9.system.entry.js → p-526b2e83.system.entry.js} +1 -1
  253. package/lib/duet/{p-5c886ca3.entry.js → p-53defbe2.entry.js} +1 -1
  254. package/lib/duet/{p-207c9c44.entry.js → p-542790d2.entry.js} +1 -1
  255. package/lib/duet/{p-c24c4722.system.entry.js → p-56278efe.system.entry.js} +1 -1
  256. package/lib/duet/{p-ef58820c.system.entry.js → p-59f76214.system.entry.js} +1 -1
  257. package/lib/duet/{p-a9de62bc.system.entry.js → p-5d06710b.system.entry.js} +1 -1
  258. package/lib/duet/{p-a9c06558.system.entry.js → p-6010b69b.system.entry.js} +1 -1
  259. package/lib/duet/{p-af19e892.system.entry.js → p-60505e3e.system.entry.js} +1 -1
  260. package/lib/duet/{p-9c8b9927.entry.js → p-62ffe167.entry.js} +1 -1
  261. package/lib/duet/{p-6a43c3d5.entry.js → p-64328828.entry.js} +1 -1
  262. package/lib/duet/{p-937b5c95.system.entry.js → p-650ce362.system.entry.js} +1 -1
  263. package/lib/duet/{p-a9c261ba.system.entry.js → p-6599a2df.system.entry.js} +1 -1
  264. package/lib/duet/{p-f4a6807b.system.js → p-65bd0efb.system.js} +1 -1
  265. package/lib/duet/{p-b4aa698b.system.entry.js → p-67969cce.system.entry.js} +1 -1
  266. package/lib/duet/{p-6440b594.entry.js → p-681f499f.entry.js} +1 -1
  267. package/lib/duet/{p-648b3208.entry.js → p-68712d2c.entry.js} +1 -1
  268. package/lib/duet/{p-af5fe245.system.entry.js → p-693ebf1e.system.entry.js} +1 -1
  269. package/lib/duet/{p-462d86f5.system.entry.js → p-6bf14b19.system.entry.js} +1 -1
  270. package/lib/duet/{p-cb221781.system.entry.js → p-6c4ac6a8.system.entry.js} +1 -1
  271. package/lib/duet/{p-a37c4fbc.system.entry.js → p-727d240f.system.entry.js} +1 -1
  272. package/lib/duet/{p-3cfb3848.system.entry.js → p-74065f5d.system.entry.js} +1 -1
  273. package/lib/duet/{p-de03d535.entry.js → p-77201931.entry.js} +1 -1
  274. package/lib/duet/{p-38797671.system.js → p-789828ea.system.js} +1 -1
  275. package/lib/duet/{p-d7159142.system.js → p-79a1052f.system.js} +1 -1
  276. package/lib/duet/{p-4cf06df4.entry.js → p-7ae2559e.entry.js} +1 -1
  277. package/lib/duet/{p-0378492d.entry.js → p-7d0d1acd.entry.js} +1 -1
  278. package/lib/duet/{p-0ca57e44.system.entry.js → p-7ea326a6.system.entry.js} +1 -1
  279. package/lib/duet/{p-9ba197ac.system.entry.js → p-8016c6db.system.entry.js} +2 -2
  280. package/lib/duet/{p-be1e20e9.entry.js → p-801d1487.entry.js} +1 -1
  281. package/lib/duet/{p-ad9f0652.system.entry.js → p-82928d0d.system.entry.js} +1 -1
  282. package/lib/duet/{p-ce33bf44.entry.js → p-82dd6f6e.entry.js} +1 -1
  283. package/lib/duet/{p-c6e8bfef.system.entry.js → p-83b3a977.system.entry.js} +1 -1
  284. package/lib/duet/{p-73a10c0b.system.entry.js → p-843ced80.system.entry.js} +1 -1
  285. package/lib/duet/{p-53e6d1bd.system.entry.js → p-84c304df.system.entry.js} +1 -1
  286. package/lib/duet/{p-cb94ffa6.entry.js → p-850f0724.entry.js} +1 -1
  287. package/lib/duet/{p-17b1d9eb.entry.js → p-865d2eb7.entry.js} +1 -1
  288. package/lib/duet/{p-eed2cb3c.entry.js → p-8997f365.entry.js} +1 -1
  289. package/lib/duet/{p-8b1b06da.entry.js → p-89b616e4.entry.js} +1 -1
  290. package/lib/duet/{p-289de2ad.entry.js → p-8c8c30b9.entry.js} +1 -1
  291. package/lib/duet/{p-b06d3b6b.system.entry.js → p-8cdc908f.system.entry.js} +1 -1
  292. package/lib/duet/{p-17bdab0e.entry.js → p-8d510700.entry.js} +1 -1
  293. package/lib/duet/{p-d4f23a84.system.entry.js → p-8e616cd5.system.entry.js} +1 -1
  294. package/lib/duet/{p-9a401f2c.system.entry.js → p-8ebc13dc.system.entry.js} +1 -1
  295. package/lib/duet/{p-9da464aa.system.entry.js → p-90384ea0.system.entry.js} +1 -1
  296. package/lib/duet/{p-5fd8544a.entry.js → p-90646cbb.entry.js} +1 -1
  297. package/lib/duet/{p-293a061c.entry.js → p-90b0ef57.entry.js} +1 -1
  298. package/lib/duet/{p-1f2e1726.system.entry.js → p-91893e79.system.entry.js} +1 -1
  299. package/lib/duet/{p-a3c12f34.entry.js → p-951ab705.entry.js} +1 -1
  300. package/lib/duet/{p-eabda61d.system.entry.js → p-9556573d.system.entry.js} +1 -1
  301. package/lib/duet/{p-577b7a04.entry.js → p-959fc724.entry.js} +1 -1
  302. package/lib/duet/{p-f3832666.system.entry.js → p-95f410eb.system.entry.js} +1 -1
  303. package/lib/duet/{p-a2b81ad4.system.entry.js → p-961282ea.system.entry.js} +1 -1
  304. package/lib/duet/{p-34c79d16.entry.js → p-961eaaba.entry.js} +1 -1
  305. package/lib/duet/{p-3bcf0e0c.entry.js → p-9c7c44de.entry.js} +1 -1
  306. package/lib/duet/{p-82566733.system.entry.js → p-9e7d56e4.system.entry.js} +1 -1
  307. package/lib/duet/p-a1861029.js +4 -0
  308. package/lib/duet/{p-7552ad86.system.entry.js → p-a2db5810.system.entry.js} +1 -1
  309. package/lib/duet/{p-0bdfb054.system.entry.js → p-a2eeb06d.system.entry.js} +1 -1
  310. package/lib/duet/{p-792ef5b7.entry.js → p-a3e10ca5.entry.js} +1 -1
  311. package/lib/duet/{p-7b932d97.system.entry.js → p-a59d4886.system.entry.js} +2 -2
  312. package/lib/duet/{p-a894d8ef.system.entry.js → p-a711c5e1.system.entry.js} +1 -1
  313. package/lib/duet/{p-b10ebe0a.entry.js → p-a76e81e9.entry.js} +1 -1
  314. package/lib/duet/{p-123a88d7.entry.js → p-a779861d.entry.js} +1 -1
  315. package/lib/duet/{p-675ade8b.entry.js → p-a7eec339.entry.js} +1 -1
  316. package/lib/duet/{p-e8bd1272.entry.js → p-a831fa0f.entry.js} +1 -1
  317. package/lib/duet/{p-945fd23a.entry.js → p-abdc4aca.entry.js} +1 -1
  318. package/lib/duet/{p-c82bbd85.entry.js → p-ac60d151.entry.js} +1 -1
  319. package/lib/duet/{p-f9fc8bd8.system.entry.js → p-ad03e921.system.entry.js} +1 -1
  320. package/lib/duet/{p-eebdd34f.entry.js → p-ad37c2eb.entry.js} +1 -1
  321. package/lib/duet/{p-57c6e5ee.system.entry.js → p-ad47d927.system.entry.js} +1 -1
  322. package/lib/duet/{p-03adf8c5.system.entry.js → p-ad498c29.system.entry.js} +1 -1
  323. package/lib/duet/{p-802b8355.entry.js → p-af6433c9.entry.js} +1 -1
  324. package/lib/duet/{p-141c3785.entry.js → p-b03cd4f0.entry.js} +1 -1
  325. package/lib/duet/{p-6c053c50.system.entry.js → p-b21ea6d7.system.entry.js} +1 -1
  326. package/lib/duet/{p-75c3f4c0.system.entry.js → p-b87501c7.system.entry.js} +1 -1
  327. package/lib/duet/{p-90fa9e6e.entry.js → p-ba3b8752.entry.js} +1 -1
  328. package/lib/duet/{p-e58c8fec.system.entry.js → p-bc9685ce.system.entry.js} +1 -1
  329. package/lib/duet/{p-5923daf6.entry.js → p-bcc799de.entry.js} +1 -1
  330. package/lib/duet/{p-8fbf3ff6.entry.js → p-bd00976d.entry.js} +1 -1
  331. package/lib/duet/{p-5fb5197f.system.entry.js → p-bd954c07.system.entry.js} +1 -1
  332. package/lib/duet/{p-eadc7225.entry.js → p-bdfe77ab.entry.js} +1 -1
  333. package/lib/duet/p-c318cdc7.entry.js +4 -0
  334. package/lib/duet/{p-a09aa4ba.entry.js → p-c42b2a65.entry.js} +1 -1
  335. package/lib/duet/{p-4468cf59.system.entry.js → p-c4c88ed2.system.entry.js} +1 -1
  336. package/lib/duet/{p-cb8e71fc.system.entry.js → p-c54033eb.system.entry.js} +1 -1
  337. package/lib/duet/{p-cbbe42f5.system.entry.js → p-c813ba88.system.entry.js} +1 -1
  338. package/lib/duet/{p-4934db85.system.entry.js → p-c842a406.system.entry.js} +1 -1
  339. package/lib/duet/{p-fa08ad7c.entry.js → p-ca0a5523.entry.js} +1 -1
  340. package/lib/duet/{p-61b928b9.entry.js → p-cc60bccd.entry.js} +1 -1
  341. package/lib/duet/{p-311f9175.system.entry.js → p-ce05450e.system.entry.js} +1 -1
  342. package/lib/duet/{p-e8315560.entry.js → p-ce848162.entry.js} +1 -1
  343. package/lib/duet/{p-f2b2855c.entry.js → p-d100d9cb.entry.js} +1 -1
  344. package/lib/duet/{p-a7498022.entry.js → p-d18c9127.entry.js} +1 -1
  345. package/lib/duet/{p-833feae6.system.entry.js → p-d4ba1d45.system.entry.js} +1 -1
  346. package/lib/duet/{p-daecfcdd.system.entry.js → p-d500fbf8.system.entry.js} +1 -1
  347. package/lib/duet/{p-d1dded0d.entry.js → p-d7b29d32.entry.js} +1 -1
  348. package/lib/duet/{p-547cedf7.system.entry.js → p-d991d2ce.system.entry.js} +1 -1
  349. package/lib/duet/{p-cfd0f787.system.entry.js → p-db7dded1.system.entry.js} +1 -1
  350. package/lib/duet/{p-8a42beda.entry.js → p-dc3fa9b6.entry.js} +1 -1
  351. package/lib/duet/{p-c72d03aa.entry.js → p-dc522a88.entry.js} +1 -1
  352. package/lib/duet/{p-5498fa78.system.entry.js → p-dcf3c15a.system.entry.js} +1 -1
  353. package/lib/duet/{p-dbb06949.entry.js → p-e1b1ebd7.entry.js} +1 -1
  354. package/lib/duet/{p-af2421e9.system.entry.js → p-e1d90a74.system.entry.js} +1 -1
  355. package/lib/duet/{p-28ce8bb5.entry.js → p-e3e09c99.entry.js} +1 -1
  356. package/lib/duet/{p-92d02b5c.entry.js → p-e555d886.entry.js} +1 -1
  357. package/lib/duet/{p-5c5eabeb.system.entry.js → p-e5f37702.system.entry.js} +1 -1
  358. package/lib/duet/{p-b6d6d658.js → p-e885ba86.js} +1 -1
  359. package/lib/duet/{p-91baec23.entry.js → p-e9337d7f.entry.js} +1 -1
  360. package/lib/duet/{p-40123642.entry.js → p-eaaeb0c1.entry.js} +1 -1
  361. package/lib/duet/{p-69a57654.entry.js → p-ec3d5091.entry.js} +1 -1
  362. package/lib/duet/{p-eb6b1675.entry.js → p-ef67e344.entry.js} +1 -1
  363. package/lib/duet/{p-e8778e62.entry.js → p-f1ac5ee2.entry.js} +1 -1
  364. package/lib/duet/{p-81b80553.entry.js → p-f1bac44e.entry.js} +1 -1
  365. package/lib/duet/{p-ba6b526a.system.entry.js → p-f23d0968.system.entry.js} +1 -1
  366. package/lib/duet/{p-deb27a44.system.entry.js → p-f283a2cc.system.entry.js} +1 -1
  367. package/lib/duet/{p-3f55918c.system.entry.js → p-f2eb841b.system.entry.js} +1 -1
  368. package/lib/duet/{p-5d391571.system.entry.js → p-f6e9df78.system.entry.js} +1 -1
  369. package/lib/duet/{p-2ca652ba.system.entry.js → p-f8b1bcc1.system.entry.js} +1 -1
  370. package/lib/duet/{p-a10f7f46.system.entry.js → p-f9928a92.system.entry.js} +1 -1
  371. package/lib/duet/{p-160e3d1a.entry.js → p-fb2522eb.entry.js} +1 -1
  372. package/lib/esm/duet-action-button.entry.js +1 -1
  373. package/lib/esm/duet-alert.entry.js +1 -1
  374. package/lib/esm/duet-badge.entry.js +1 -1
  375. package/lib/esm/duet-banner.entry.js +1 -1
  376. package/lib/esm/duet-breadcrumb.entry.js +1 -1
  377. package/lib/esm/duet-breadcrumbs.entry.js +1 -1
  378. package/lib/esm/duet-button_2.entry.js +1 -1
  379. package/lib/esm/duet-callout.entry.js +1 -1
  380. package/lib/esm/duet-caption_4.entry.js +1 -1
  381. package/lib/esm/duet-card.entry.js +1 -1
  382. package/lib/esm/duet-checkbox.entry.js +1 -1
  383. package/lib/esm/duet-checkmark.entry.js +1 -1
  384. package/lib/esm/duet-chip.entry.js +1 -1
  385. package/lib/esm/duet-choice_2.entry.js +2 -2
  386. package/lib/esm/duet-collapsible.entry.js +1 -1
  387. package/lib/esm/duet-combobox.entry.js +1 -1
  388. package/lib/esm/duet-contact-card.entry.js +1 -1
  389. package/lib/esm/duet-cookie-consent.entry.js +1 -1
  390. package/lib/esm/duet-date-picker.entry.js +2 -2
  391. package/lib/esm/duet-divider_2.entry.js +1 -1
  392. package/lib/esm/duet-editable-table_3.entry.js +1 -1
  393. package/lib/esm/duet-empty-state.entry.js +1 -1
  394. package/lib/esm/duet-fieldset.entry.js +1 -1
  395. package/lib/esm/duet-footer.entry.js +1 -1
  396. package/lib/esm/duet-grid_2.entry.js +1 -1
  397. package/lib/esm/duet-header_2.entry.js +1 -1
  398. package/lib/esm/duet-hero.entry.js +1 -1
  399. package/lib/esm/duet-icon.entry.js +1 -1
  400. package/lib/esm/duet-input_2.entry.js +1 -1
  401. package/lib/esm/duet-layout.entry.js +1 -1
  402. package/lib/esm/duet-list_2.entry.js +1 -1
  403. package/lib/esm/duet-menu-bar-button.entry.js +1 -1
  404. package/lib/esm/duet-menu-bar-dropdown-link.entry.js +1 -1
  405. package/lib/esm/duet-menu-bar-dropdown.entry.js +1 -1
  406. package/lib/esm/duet-menu-bar-link.entry.js +1 -1
  407. package/lib/esm/duet-menu-bar.entry.js +1 -1
  408. package/lib/esm/duet-modal.entry.js +2 -2
  409. package/lib/esm/duet-multiselect.entry.js +1 -1
  410. package/lib/esm/duet-nav.entry.js +1 -1
  411. package/lib/esm/duet-notification_2.entry.js +1 -1
  412. package/lib/esm/duet-number-input.entry.js +1 -1
  413. package/lib/esm/duet-page-heading.entry.js +1 -1
  414. package/lib/esm/duet-pagination_2.entry.js +1 -1
  415. package/lib/esm/duet-popup-menu-item.entry.js +1 -1
  416. package/lib/esm/duet-popup-menu.entry.js +1 -1
  417. package/lib/esm/duet-progress.entry.js +1 -1
  418. package/lib/esm/duet-promo-card.entry.js +1 -1
  419. package/lib/esm/duet-radio_2.entry.js +1 -1
  420. package/lib/esm/duet-range-slider.entry.js +1 -1
  421. package/lib/esm/duet-scrollable_3.entry.js +1 -1
  422. package/lib/esm/duet-section-layout.entry.js +1 -1
  423. package/lib/esm/duet-select.entry.js +1 -1
  424. package/lib/esm/duet-shaped-image.entry.js +1 -1
  425. package/lib/esm/duet-show-more.entry.js +1 -1
  426. package/lib/esm/duet-slideout-lang.entry.js +1 -1
  427. package/lib/esm/duet-slideout-link.entry.js +1 -1
  428. package/lib/esm/duet-slideout-panel-dropdown.entry.js +1 -1
  429. package/lib/esm/duet-slideout-panel.entry.js +2 -2
  430. package/lib/esm/duet-slideout.entry.js +2 -2
  431. package/lib/esm/duet-step_2.entry.js +1 -1
  432. package/lib/esm/duet-submenu-bar-dropdown-link.entry.js +1 -1
  433. package/lib/esm/duet-submenu-bar-dropdown.entry.js +1 -1
  434. package/lib/esm/duet-submenu-bar-link.entry.js +1 -1
  435. package/lib/esm/duet-submenu-bar.entry.js +20 -7
  436. package/lib/esm/duet-textarea.entry.js +1 -1
  437. package/lib/esm/duet-toggle.entry.js +1 -1
  438. package/lib/esm/duet-toolbar-dropdown-link.entry.js +1 -1
  439. package/lib/esm/duet-toolbar-dropdown.entry.js +1 -1
  440. package/lib/esm/duet-toolbar-link.entry.js +1 -1
  441. package/lib/esm/duet-toolbar.entry.js +1 -1
  442. package/lib/esm/duet-tooltip-button_2.entry.js +2 -2
  443. package/lib/esm/duet-tooltip.entry.js +1 -1
  444. package/lib/esm/duet-tray.entry.js +1 -1
  445. package/lib/esm/duet-upload-aria-status.entry.js +1 -1
  446. package/lib/esm/duet-upload-item.entry.js +1 -1
  447. package/lib/esm/duet-visually-hidden.entry.js +1 -1
  448. package/lib/esm/duet.js +2 -2
  449. package/lib/esm/{focus-utils-eb9b1f72.js → focus-utils-f3b3a154.js} +1 -1
  450. package/lib/esm/{index-cc1bfc90.js → index-4abc92bd.js} +1 -1
  451. package/lib/esm/loader.js +2 -2
  452. package/lib/esm-es5/duet-action-button.entry.js +2 -2
  453. package/lib/esm-es5/duet-alert.entry.js +1 -1
  454. package/lib/esm-es5/duet-badge.entry.js +1 -1
  455. package/lib/esm-es5/duet-banner.entry.js +1 -1
  456. package/lib/esm-es5/duet-breadcrumb.entry.js +1 -1
  457. package/lib/esm-es5/duet-breadcrumbs.entry.js +1 -1
  458. package/lib/esm-es5/duet-button_2.entry.js +1 -1
  459. package/lib/esm-es5/duet-callout.entry.js +1 -1
  460. package/lib/esm-es5/duet-caption_4.entry.js +1 -1
  461. package/lib/esm-es5/duet-card.entry.js +1 -1
  462. package/lib/esm-es5/duet-checkbox.entry.js +1 -1
  463. package/lib/esm-es5/duet-checkmark.entry.js +1 -1
  464. package/lib/esm-es5/duet-chip.entry.js +1 -1
  465. package/lib/esm-es5/duet-choice_2.entry.js +1 -1
  466. package/lib/esm-es5/duet-collapsible.entry.js +1 -1
  467. package/lib/esm-es5/duet-combobox.entry.js +1 -1
  468. package/lib/esm-es5/duet-contact-card.entry.js +1 -1
  469. package/lib/esm-es5/duet-cookie-consent.entry.js +1 -1
  470. package/lib/esm-es5/duet-date-picker.entry.js +1 -1
  471. package/lib/esm-es5/duet-divider_2.entry.js +1 -1
  472. package/lib/esm-es5/duet-editable-table_3.entry.js +1 -1
  473. package/lib/esm-es5/duet-empty-state.entry.js +1 -1
  474. package/lib/esm-es5/duet-fieldset.entry.js +1 -1
  475. package/lib/esm-es5/duet-footer.entry.js +1 -1
  476. package/lib/esm-es5/duet-grid_2.entry.js +1 -1
  477. package/lib/esm-es5/duet-header_2.entry.js +1 -1
  478. package/lib/esm-es5/duet-hero.entry.js +1 -1
  479. package/lib/esm-es5/duet-icon.entry.js +1 -1
  480. package/lib/esm-es5/duet-input_2.entry.js +1 -1
  481. package/lib/esm-es5/duet-layout.entry.js +1 -1
  482. package/lib/esm-es5/duet-list_2.entry.js +1 -1
  483. package/lib/esm-es5/duet-menu-bar-button.entry.js +1 -1
  484. package/lib/esm-es5/duet-menu-bar-dropdown-link.entry.js +1 -1
  485. package/lib/esm-es5/duet-menu-bar-dropdown.entry.js +1 -1
  486. package/lib/esm-es5/duet-menu-bar-link.entry.js +1 -1
  487. package/lib/esm-es5/duet-menu-bar.entry.js +1 -1
  488. package/lib/esm-es5/duet-modal.entry.js +1 -1
  489. package/lib/esm-es5/duet-multiselect.entry.js +1 -1
  490. package/lib/esm-es5/duet-nav.entry.js +1 -1
  491. package/lib/esm-es5/duet-notification_2.entry.js +1 -1
  492. package/lib/esm-es5/duet-number-input.entry.js +1 -1
  493. package/lib/esm-es5/duet-page-heading.entry.js +1 -1
  494. package/lib/esm-es5/duet-pagination_2.entry.js +1 -1
  495. package/lib/esm-es5/duet-popup-menu-item.entry.js +1 -1
  496. package/lib/esm-es5/duet-popup-menu.entry.js +1 -1
  497. package/lib/esm-es5/duet-progress.entry.js +1 -1
  498. package/lib/esm-es5/duet-promo-card.entry.js +1 -1
  499. package/lib/esm-es5/duet-radio_2.entry.js +1 -1
  500. package/lib/esm-es5/duet-range-slider.entry.js +1 -1
  501. package/lib/esm-es5/duet-scrollable_3.entry.js +1 -1
  502. package/lib/esm-es5/duet-section-layout.entry.js +1 -1
  503. package/lib/esm-es5/duet-select.entry.js +1 -1
  504. package/lib/esm-es5/duet-shaped-image.entry.js +1 -1
  505. package/lib/esm-es5/duet-show-more.entry.js +1 -1
  506. package/lib/esm-es5/duet-slideout-lang.entry.js +1 -1
  507. package/lib/esm-es5/duet-slideout-link.entry.js +1 -1
  508. package/lib/esm-es5/duet-slideout-panel-dropdown.entry.js +1 -1
  509. package/lib/esm-es5/duet-slideout-panel.entry.js +1 -1
  510. package/lib/esm-es5/duet-slideout.entry.js +1 -1
  511. package/lib/esm-es5/duet-step_2.entry.js +1 -1
  512. package/lib/esm-es5/duet-submenu-bar-dropdown-link.entry.js +1 -1
  513. package/lib/esm-es5/duet-submenu-bar-dropdown.entry.js +1 -1
  514. package/lib/esm-es5/duet-submenu-bar-link.entry.js +1 -1
  515. package/lib/esm-es5/duet-submenu-bar.entry.js +2 -2
  516. package/lib/esm-es5/duet-textarea.entry.js +1 -1
  517. package/lib/esm-es5/duet-toggle.entry.js +1 -1
  518. package/lib/esm-es5/duet-toolbar-dropdown-link.entry.js +1 -1
  519. package/lib/esm-es5/duet-toolbar-dropdown.entry.js +1 -1
  520. package/lib/esm-es5/duet-toolbar-link.entry.js +1 -1
  521. package/lib/esm-es5/duet-toolbar.entry.js +1 -1
  522. package/lib/esm-es5/duet-tooltip-button_2.entry.js +1 -1
  523. package/lib/esm-es5/duet-tooltip.entry.js +1 -1
  524. package/lib/esm-es5/duet-tray.entry.js +1 -1
  525. package/lib/esm-es5/duet-upload-aria-status.entry.js +1 -1
  526. package/lib/esm-es5/duet-upload-item.entry.js +1 -1
  527. package/lib/esm-es5/duet-visually-hidden.entry.js +1 -1
  528. package/lib/esm-es5/duet.js +1 -1
  529. package/lib/esm-es5/{focus-utils-eb9b1f72.js → focus-utils-f3b3a154.js} +1 -1
  530. package/lib/esm-es5/{index-cc1bfc90.js → index-4abc92bd.js} +1 -1
  531. package/lib/esm-es5/loader.js +1 -1
  532. package/lib/types/components/duet-submenu-bar/duet-submenu-bar.d.ts +4 -0
  533. package/package.json +5 -5
  534. package/lib/duet/p-16aa0b6d.js +0 -4
  535. package/lib/duet/p-4a28ce2a.entry.js +0 -4
  536. package/lib/duet/p-8793bb34.entry.js +0 -4
  537. package/lib/duet/p-c1847f8b.entry.js +0 -4
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,h,g as getElement}from"./index-cc1bfc90.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";var duetPageHeadingCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-page-heading{position:relative;display:block;width:100%;margin:0 auto;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(0, 41, 77)}.duet-page-heading.duet-p-0{padding:0 !important}.duet-page-heading.duet-m-0{margin:0 !important}.duet-page-heading.fluid,.duet-page-heading.narrow{padding:0 16px}@media (min-width: 36em){.duet-page-heading.fluid{padding:0 28px}}@media (min-width: 62em){.duet-page-heading.fluid{padding:0 56px}}@media (min-width: 76.25em){.duet-page-heading.fluid{max-width:1110px;padding:0}}.duet-page-heading.narrow{max-width:888px}@media (min-width: 36em){.duet-page-heading.narrow{padding:0 48px}}@media (min-width: 48em){.duet-page-heading.narrow{padding:0 72px}}.duet-page-heading .heading{max-width:744px;padding:48px 90px 16px 0}@media (min-width: 48em){.duet-page-heading .heading{padding:72px 150px 40px 0}}.duet-page-heading .background{position:absolute;top:0;right:0;left:0;width:100%;max-width:744px;height:104px;margin:0 auto;margin:0 auto}@media (min-width: 48em){.duet-page-heading .background{height:165px}}.duet-page-heading .background .background-mask{position:absolute;top:-20px;right:0;display:block;width:286px;height:331px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIxIiBoZWlnaHQ9IjI1NyIgdmlld0JveD0iMCAwIDcyMSAyNTciIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF8yODIwXzY5OTkxKSI+CjxwYXRoIGQ9Ik04MC4xNzA1IDIzLjE4MTVDOTEuOTY5OSAxOC44NjU5IDEwMi44NyAxMS42NTU5IDExMi45MDkgMS41NjQ0OEMxMjMuNzcgLTguMzA1MjcgMTM0LjM4MiAtMTguMjAxMSAxNDQuODI2IC0yOC4xODgyQzE1NS4yNDMgLTM4LjE2MjIgMTY1LjkwOCAtNDguMDg0MSAxNzYuNzQzIC01Ny45Mjc4QzE3OC44MTYgLTU5LjA0OSAxODAuNDk4IC02MC4yODc3IDE4MS43ODggLTYxLjY1NjdDMTgzLjA2NiAtNjMuMDEyNiAxODUuNDY1IC02Mi4yODI1IDE4OS4wMTIgLTU5LjQ3OTNDMTg0LjczNSAtNTEuMTM1IDE4MC43N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WdodD0iMjU2Ljg0OCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K");background-repeat:no-repeat;background-size:contain}@media (min-width: 48em){.duet-page-heading .background .background-mask{top:-40px;width:502px;height:577px}}.duet-page-heading .background .brand-shape{position:absolute;top:-157px;right:-20px;width:185px;height:185px;background:rgb(0, 119, 179);border-radius:20%;mix-blend-mode:normal;opacity:0.2;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shape{top:-280px;right:-40px;width:325px;height:325px}}.duet-page-heading .background .brand-shape.second-shape{top:-182px;right:100px;width:207px;height:207px;background:rgb(11, 114, 136);opacity:0.1}@media (min-width: 48em){.duet-page-heading .background .brand-shape.second-shape{top:-325px;right:200px;width:365px;height:365px}}.duet-page-heading .background .brand-shaped-icon{position:absolute;top:20px;right:16px;display:flex;align-items:center;justify-content:center;width:85px;width:60px;height:85px;height:60px;background:rgba(0, 119, 179, 0.75);border-radius:25%;mix-blend-mode:normal;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon{right:36px;width:93px;height:93px}}.duet-page-heading .background .brand-shaped-icon duet-icon{width:60px;height:60px;transform:rotate(-7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon duet-icon{width:75px;height:75px}}.duet-page-heading.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(0, 41, 77)}.duet-page-heading.duet-theme-turva .brand-shaped-icon{background:rgba(198, 12, 48, 0.9);-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");mask-repeat:no-repeat}.duet-page-heading.duet-theme-turva .brand-shaped-icon duet-icon{position:relative;top:-3px}';var DuetPageHeading=function(){function M(M){registerInstance(this,M);this.theme="";this.icon="";this.layout="narrow"}M.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};M.prototype.render=function(){var M;return h("div",{class:(M={"duet-page-heading":true,"duet-theme-turva":this.theme==="turva"},M[this.layout]=true,M)},h("div",{class:"background"},this.theme==="turva"&&h("div",{class:"background-mask"}),this.theme!=="turva"&&h("div",{class:"brand-shape"}),this.theme!=="turva"&&h("div",{class:"brand-shape second-shape"}),this.icon&&h("div",{class:"brand-shaped-icon"},h("duet-icon",{background:"none",name:this.icon,margin:"none",size:"auto",responsive:false}))),h("div",{class:"heading"},h("slot",{name:"heading"})))};Object.defineProperty(M.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return M}();DuetPageHeading.style=duetPageHeadingCss;export{DuetPageHeading as duet_page_heading};
4
+ import{r as registerInstance,h,g as getElement}from"./index-4abc92bd.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";var duetPageHeadingCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-page-heading{position:relative;display:block;width:100%;margin:0 auto;overflow:hidden;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";color:rgb(0, 41, 77)}.duet-page-heading.duet-p-0{padding:0 !important}.duet-page-heading.duet-m-0{margin:0 !important}.duet-page-heading.fluid,.duet-page-heading.narrow{padding:0 16px}@media (min-width: 36em){.duet-page-heading.fluid{padding:0 28px}}@media (min-width: 62em){.duet-page-heading.fluid{padding:0 56px}}@media (min-width: 76.25em){.duet-page-heading.fluid{max-width:1110px;padding:0}}.duet-page-heading.narrow{max-width:888px}@media (min-width: 36em){.duet-page-heading.narrow{padding:0 48px}}@media (min-width: 48em){.duet-page-heading.narrow{padding:0 72px}}.duet-page-heading .heading{max-width:744px;padding:48px 90px 16px 0}@media (min-width: 48em){.duet-page-heading .heading{padding:72px 150px 40px 0}}.duet-page-heading .background{position:absolute;top:0;right:0;left:0;width:100%;max-width:744px;height:104px;margin:0 auto;margin:0 auto}@media (min-width: 48em){.duet-page-heading .background{height:165px}}.duet-page-heading .background .background-mask{position:absolute;top:-20px;right:0;display:block;width:286px;height:331px;background-image:url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzIxIiBoZWlnaHQ9IjI1NyIgdmlld0JveD0iMCAwIDcyMSAyNTciIGZpbGw9Im5vb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42MTEgMTcxLjUyOCA0NTIuNDU4IDE4NS4wODcgNDcwLjI1NCAxOTUuN0M0OTAuNzM3IDIwOC44ODEgNTEyLjE0NSAyMTcuNzIxIDUzNC40MDEgMjIyLjI0NUM1NTYuNjQ0IDIyNi43NTcgNTc5Ljg2NSAyMjYuNTA5IDYwNC4xMTUgMjIxLjU2N0M2MDkuNjQzIDIyMC42MTYgNjE1LjI2MyAyMTkuNDY4IDYyMC45MjEgMjE4LjA5OUM2MjYuNTY3IDIxNi43NTYgNjMyLjI3NyAyMTUuMTkyIDYzOC4wNTMgMjEzLjQxOUM2NTkuMDU3IDIwNy41MjUgNjc4LjU2MiAxOTkuMzkgNjk2LjU0MSAxODkuMDc3IiBmaWxsPSIjRjVGNUY3Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDBfMjgyMF82OTk5MSI+CjxyZWN0IHdpZHRoPSI3MjEiIGhlaWdodD0iMjU2Ljg0OCIgZmlsbD0id2hpdGUiLz4KPC9jbGlwUGF0aD4KPC9kZWZzPgo8L3N2Zz4K");background-repeat:no-repeat;background-size:contain}@media (min-width: 48em){.duet-page-heading .background .background-mask{top:-40px;width:502px;height:577px}}.duet-page-heading .background .brand-shape{position:absolute;top:-157px;right:-20px;width:185px;height:185px;background:rgb(0, 119, 179);border-radius:20%;mix-blend-mode:normal;opacity:0.2;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shape{top:-280px;right:-40px;width:325px;height:325px}}.duet-page-heading .background .brand-shape.second-shape{top:-182px;right:100px;width:207px;height:207px;background:rgb(11, 114, 136);opacity:0.1}@media (min-width: 48em){.duet-page-heading .background .brand-shape.second-shape{top:-325px;right:200px;width:365px;height:365px}}.duet-page-heading .background .brand-shaped-icon{position:absolute;top:20px;right:16px;display:flex;align-items:center;justify-content:center;width:85px;width:60px;height:85px;height:60px;background:rgba(0, 119, 179, 0.75);border-radius:25%;mix-blend-mode:normal;transform:rotate(7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon{right:36px;width:93px;height:93px}}.duet-page-heading .background .brand-shaped-icon duet-icon{width:60px;height:60px;transform:rotate(-7deg)}@media (min-width: 48em){.duet-page-heading .background .brand-shaped-icon duet-icon{width:75px;height:75px}}.duet-page-heading.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(0, 41, 77)}.duet-page-heading.duet-theme-turva .brand-shaped-icon{background:rgba(198, 12, 48, 0.9);-webkit-mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");-webkit-mask-repeat:no-repeat;mask-image:url("data:image/svg+xml,%3Csvg%20fill%3D%22currentColor%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20160%20140%22%3E%3Cpath%20d%3D%22M87.8%20139.6a57.3%2057.3%200%2000-18.4-3.3c-8-.5-16.3-2.5-24.6-6-16.7-7-29-18.7-37.1-35.3a73.5%2073.5%200%2001-5-52.4c1.7-4%203-6.7%204-7.8a33%2033%200%20004-7.8C33.4%203.5%2063.2-4.3%20100%203.2c30.5%204%2049.7%2019.9%2057.6%2047.4l1.6%2024c4.4%2036-11.5%2056-47.5%2060.3-4%202.4-12%203.9-24%204.7%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E");mask-repeat:no-repeat}.duet-page-heading.duet-theme-turva .brand-shaped-icon duet-icon{position:relative;top:-3px}';var DuetPageHeading=function(){function M(M){registerInstance(this,M);this.theme="";this.icon="";this.layout="narrow"}M.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};M.prototype.render=function(){var M;return h("div",{class:(M={"duet-page-heading":true,"duet-theme-turva":this.theme==="turva"},M[this.layout]=true,M)},h("div",{class:"background"},this.theme==="turva"&&h("div",{class:"background-mask"}),this.theme!=="turva"&&h("div",{class:"brand-shape"}),this.theme!=="turva"&&h("div",{class:"brand-shape second-shape"}),this.icon&&h("div",{class:"brand-shaped-icon"},h("duet-icon",{background:"none",name:this.icon,margin:"none",size:"auto",responsive:false}))),h("div",{class:"heading"},h("slot",{name:"heading"})))};Object.defineProperty(M.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return M}();DuetPageHeading.style=duetPageHeadingCss;export{DuetPageHeading as duet_page_heading};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function o(e){try{l(n["throw"](e))}catch(e){r(e)}}function l(e){e.done?i(e.value):a(e.value).then(s,o)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(i=0)),i)try{if(n=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];a=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-cc1bfc90.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{c as createID}from"./create-id-981107da.js";import{d as debounce}from"./js-utils-fa98b8cd.js";import{k as isArrowKey,l as isNumber,d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey,m as isMinusKey,n as isPlusKey}from"./keyboard-utils-d237bd5a.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-9d850f6c.js";import"./string-utils-5954f458.js";var shouldDisplayNavigation=function(e,t,i){if(e*2>t/i){return false}return true};var duetPaginationCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}";var DuetPagination=function(){function e(e){var t=this;registerInstance(this,e);this.duetPageChange=createEvent(this,"duetPageChange",3);this.listId=createID("duet-pagination-list");this.actionChain=function(e,i){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:if(!(e===0))return[3,1];this.current=1;return[3,3];case 1:if(!(i!==e))return[3,3];t=Math.ceil(e/this.visibleItems)-1;if(!(t!==this.internalSectionIndex))return[3,3];this.internalSectionIndex=t;return[4,this.setFocus()];case 2:n.sent();n.label=3;case 3:return[2,true]}}))}))};this.emitPageEvent=debounce((function(e,i){var n=Number(i||t.current);t.duetPageChange.emit({component:"duet-pagination",from:n*t.take,to:n*t.take+t.take,current:n,take:t.take,type:"page",originalEvent:e})}),100);this.getEnteredNumber=debounce((function(e){t.emitPageEvent(e,t.numbersStore);t.current=Number(t.numbersStore);t.numbersStore="";t.duetPageChange.emit({component:"duet-pagination",from:t.current*t.take,to:t.current*t.take+t.take,current:t.current,take:t.take,type:"jump",originalEvent:e})}),500);this.numbersStore="";this.totalPages=10;this.internalSectionIndex=0;this.theme="";this.jumpString="...";this.variation="default";this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",prev_section:"Show previous {0} page numbers, screen reader user should use arrowkeys to navigate",next_section:"Show next {0} page numbers, screen reader user should use arrowkeys to navigate"},fi:{next_page:"Seuraava sivu",previous_page:"Edellinen sivu",first_page:"Ensimmäinen sivu",last_page:"Viimeinen sivu",jump_to:"Siirry sivulle",go_to:"Siirry sivulle",description:"Voit käyttää nuolinäppäimiä sivunumeron valitsemiseen",pagination_label:"Sivutus, valitse sivunumero siirtyäksesi sivulle",prev_section:"Näytä edelliset {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",next_section:"Näytä seuraavat {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi"},sv:{next_page:"Nästa sida",previous_page:"Föregående sida",first_page:"Första sidan",last_page:"Sista sidan",jump_to:"Hoppa till sida",go_to:"Hoppa till sida",description:"Du kan använda piltangenterna för att välja sida",pagination_label:"Sidutning, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}};this.accessibleLabels=getLocaleString(this.accessibleLabelsDefaults);this.take=5;this.visibleItems=5;this.total=1e3;this.ariaControls="";this.current=1}e.prototype.watchPropTotalHandler=function(){this.calculatePageTake();return true};e.prototype.watchStateHandler=function(e,t){return this.actionChain(e,t)};e.prototype.componentWillLoad=function(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1;this.calculatePageTake();inheritGlobalTheme(this)};e.prototype.componentWillRender=function(){if(this.internalSectionIndex!==0&&this.internalSectionIndex!==this.totalPages){this.calculatePageTake()}};e.prototype.componentDidRender=function(){this.setFocus()};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.calculatePageTake=function(){this.totalPages=Math.ceil(this.total/this.take)};e.prototype.onMouseHandler=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){e.preventDefault();e.stopPropagation();this.current=this.current+t;this.emitPageEvent(e);return[2]}))}))};e.prototype.onKeyboardDown=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){t=this.current;if(isArrowLeftKey(e)||isArrowUpKey(e)){t--}if(isArrowRightKey(e)||isArrowDownKey(e)){t++}if(isArrowKey(e)){if(t<=this.totalPages){this.current=t;this.emitPageEvent(e)}}if(isNumber(e)&&this.shouldDisplayNavigation()){this.numbersStore=this.numbersStore+e.key;if(Number(this.numbersStore)>this.totalPages){this.numbersStore=this.totalPages+""}this.getEnteredNumber(e)}return[2]}))}))};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:e=this.nativeNav.querySelector("li.duet-pagination-item-is-active duet-button");t=e;if(!t)return[3,2];return[4,e.setFocus()];case 1:t=i.sent();i.label=2;case 2:t;return[2]}}))}))};e.prototype.pageClickHandler=function(e){e.preventDefault();var t=Number(e.target.getAttribute("data-id"));this.current=t;this.emitPageEvent({},t)};e.prototype.sectionClickHandler=function(e,t){e.preventDefault();var i=this.internalSectionIndex+t;var n=this.take*this.visibleItems;if(i*n>this.total){i=this.internalSectionIndex}var a=i;this.internalSectionIndex=a>=0?a:0};e.prototype.jumpToStart=function(e){e.preventDefault();this.internalSectionIndex=0;this.current=1;this.emitPageEvent(e)};e.prototype.jumpToEnd=function(e){e.preventDefault();this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1);this.current=this.totalPages;this.emitPageEvent(e)};e.prototype.renderPageNumbers=function(){var e=this;var t=[];var i=this.internalSectionIndex*this.visibleItems;do{i++;if(i>this.totalPages){break}t.push(h("li",{class:{"duet-pagination-item":true,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},h("duet-button",{class:{"duet-pagination-link":true},color:i!==this.current?this.theme!=="turva"?"secondary":"secondary-turva":this.theme!=="turva"?"primary":"primary-turva","data-id":i,"center-text":true,variation:"plain",margin:"none",accessibleLabel:"".concat(this.accessibleLabels.go_to," ").concat(i),onClick:function(t){return e.pageClickHandler(t)},theme:this.theme},h("div",{class:"duet-pagination-page-number","aria-hidden":true},i))))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t};e.prototype.shouldDisplayNavigation=function(){if(this.variation!=="compact"){return shouldDisplayNavigation(this.visibleItems,this.total,this.take)}return false};e.prototype.render=function(){var e;var t=this;return h(Host,{onKeyDown:function(e){return t.onKeyboardDown(e)}},h("nav",{role:"navigation","aria-labelledby":this.accessibleLabelledBy?"".concat(this.accessibleLabelledBy," ").concat(this.listId):this.listId,"aria-describedby":this.accessibleDescribedBy?"".concat(this.accessibleDescribedBy," ").concat(this.listId):this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:function(e){return t.nativeNav=e},"aria-controls":this.ariaControls,class:(e={"duet-pagination-nav":true},e["duet-pagination-variation-".concat(this.variation)]=true,e)},this.numbersStore!==""&&h("div",{"aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":"".concat(this.accessibleLabels.jump_to," ").concat(this.numbersStore),part:"navigation-overlay"},h("duet-badge",{theme:this.theme},"jump to page : ",this.numbersStore)),h("ol",{id:this.listId,class:{"duet-pagination":true,"duet-pagination-is-dimmed":this.numbersStore!==""},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},h("li",{class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{disabled:this.internalSectionIndex===0&&this.current<=1,"data-direction":"back",onClick:function(e){return t.onMouseHandler(e,-1)},"accessible-label":this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme})),this.internalSectionIndex!==0&&this.shouldDisplayNavigation()&&h(Fragment,null,h("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:this.theme!=="turva"?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:function(e){return t.jumpToStart(e)},theme:this.theme},h("div",{class:"duet-pagination-page-number"},"1"))),h("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}","".concat(this.visibleItems)),onClick:function(e){return t.sectionClickHandler(e,-1)},theme:this.theme},h("div",{class:"duet-pagination-page-number","aria-hidden":"true"},"...")))),this.renderPageNumbers(),this.internalSectionIndex*(this.visibleItems+2)<this.totalPages&&this.shouldDisplayNavigation()&&h(Fragment,null,h("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}","".concat(this.visibleItems)),onClick:function(e){return t.sectionClickHandler(e,1)},theme:this.theme},h("div",{class:"duet-pagination-page-number","aria-hidden":"true"},"..."))),h("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:function(e){return t.jumpToEnd(e)},theme:this.theme},h("div",{class:"duet-pagination-page-number"},this.totalPages)))),h("li",{class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,onClick:function(e){return t.onMouseHandler(e,1)},"icon-name":"action-arrow-right-small",theme:this.theme})))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"]}},enumerable:false,configurable:true});return e}();DuetPagination.style=duetPaginationCss;var duetRangeStepperCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(0, 41, 77)}.duet-range-stepper ::part(button){border:0}";var DuetRangeStepper=function(){function e(e){var t=this;registerInstance(this,e);this.duetRangeStepUpdate=createEvent(this,"duetRangeStepUpdate",7);this.leftBn=createID("duetRangeStepper-left");this.rightBn=createID("duetRangeStepper-right");this.handleClick=function(e,i){e.preventDefault();t.stepIndex+=i;t.clampStepIndex();t.handleStepClick(e)};this.theme="";this.stepIndex=1;this.stepSize=50;this.total=1e3;this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}};this.ariaLabels=getLocaleString(this.ariaLabelsDefaults);this.ariaControls=""}e.prototype.watchStepIndexStateHandler=function(e){if(this.leftBnRef&&this.rightBnRef){if(e<=1){if(this.element===document.activeElement){this.rightBnRef.setFocus()}this.leftBnRef.setAttribute("disabled","")}else{this.leftBnRef.removeAttribute("disabled")}if(e>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.rightBnRef.setAttribute("disabled","")}else{this.rightBnRef.removeAttribute("disabled")}}};e.prototype.watchStepSizeStateHandler=function(e,t){if(e!==t){if(this.stepIndex*e>this.total){this.stepIndex=Math.ceil(this.total/e)}this.watchStepIndexStateHandler(this.stepIndex)}};e.prototype.handleStepClick=function(e){this.duetRangeStepUpdate.emit({originalEvent:e,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.clampStepIndex()};e.prototype.componentDidLoad=function(){this.watchStepIndexStateHandler(this.stepIndex)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.clampStepIndex=function(){if(this.stepIndex<1){this.stepIndex=1}else if(this.stepIndex*this.stepSize>this.total){this.stepIndex=Math.ceil(this.total/this.stepSize)}};e.prototype.getFrom=function(){return Math.floor((this.stepIndex-1)*this.stepSize)+1};e.prototype.getTo=function(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)};e.prototype.generateStepSize=function(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))};e.prototype.generatePreviousIncrementLabel=function(){if(this.getFrom()===1){return""}return this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))};e.prototype.generateNextIncrementLabel=function(){if(this.getTo()===this.total){return""}return this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))};e.prototype.onKeyboardDown=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){t=this.stepIndex;i=1;if(isArrowLeftKey(e)||isArrowUpKey(e)||isMinusKey(e)){t--;i=-1;this.leftBnRef.setFocus()}if(isArrowRightKey(e)||isArrowDownKey(e)||isPlusKey(e)){t++;i=1}if(isArrowKey(e)){if(t>0&&t*this.stepSize<=this.total){this.handleClick(e,i)}}return[2]}))}))};e.prototype.render=function(){var e=this;return h("div",{class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(t){return e.onKeyboardDown(t)},"aria-controls":this.ariaControls},h("span",{class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),h("duet-action-button",{class:"duet-range-step-button duet-range-step-minus",onClick:function(t){return e.handleClick(t,-1)},id:this.leftBn,"accessible-label":"".concat(this.ariaLabels.previous_increment," ").concat(this.generatePreviousIncrementLabel()),ref:function(t){return e.leftBnRef=t},part:"navigation-arrow",iconName:"action-arrow-left-small"}),h("duet-action-button",{class:"duet-range-step-button duet-range-step-plus",onClick:function(t){return e.handleClick(t,1)},"accessible-label":"".concat(this.ariaLabels.next_increment," ").concat(this.generateNextIncrementLabel()),id:this.rightBn,ref:function(t){return e.rightBnRef=t},part:"navigation-arrow",iconName:"action-arrow-right-small"}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}},enumerable:false,configurable:true});return e}();DuetRangeStepper.style=duetRangeStepperCss;export{DuetPagination as duet_pagination,DuetRangeStepper as duet_range_stepper};
4
+ */import{r as registerInstance,c as createEvent,h,F as Fragment,H as Host,g as getElement}from"./index-4abc92bd.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{c as createID}from"./create-id-981107da.js";import{d as debounce}from"./js-utils-fa98b8cd.js";import{k as isArrowKey,l as isNumber,d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey,m as isMinusKey,n as isPlusKey}from"./keyboard-utils-d237bd5a.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-9d850f6c.js";import"./string-utils-5954f458.js";var shouldDisplayNavigation=function(e,t,i){if(e*2>t/i){return false}return true};var duetPaginationCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-pagination-nav{position:relative}.duet-pagination ::part(button){border:0}.duet-pagination,.duet-pagination li{display:flex;flex-wrap:wrap;gap:0.1rem;align-items:center}.duet-pagination-item-is-active .duet-pagination-page-number{border-bottom-color:inherit;border-bottom-style:solid;border-bottom-width:2px}.duet-pagination duet-button{width:30px;min-width:36px;font-weight:600;text-decoration:none;border-left-width:0}.duet-pagination-overlay{position:absolute;top:1rem;z-index:300;width:100%;text-align:center}.duet-pagination.duet-pagination-is-dimmed{opacity:0.5}";var DuetPagination=function(){function e(e){var t=this;registerInstance(this,e);this.duetPageChange=createEvent(this,"duetPageChange",3);this.listId=createID("duet-pagination-list");this.actionChain=function(e,i){return __awaiter(t,void 0,void 0,(function(){var t;return __generator(this,(function(n){switch(n.label){case 0:if(!(e===0))return[3,1];this.current=1;return[3,3];case 1:if(!(i!==e))return[3,3];t=Math.ceil(e/this.visibleItems)-1;if(!(t!==this.internalSectionIndex))return[3,3];this.internalSectionIndex=t;return[4,this.setFocus()];case 2:n.sent();n.label=3;case 3:return[2,true]}}))}))};this.emitPageEvent=debounce((function(e,i){var n=Number(i||t.current);t.duetPageChange.emit({component:"duet-pagination",from:n*t.take,to:n*t.take+t.take,current:n,take:t.take,type:"page",originalEvent:e})}),100);this.getEnteredNumber=debounce((function(e){t.emitPageEvent(e,t.numbersStore);t.current=Number(t.numbersStore);t.numbersStore="";t.duetPageChange.emit({component:"duet-pagination",from:t.current*t.take,to:t.current*t.take+t.take,current:t.current,take:t.take,type:"jump",originalEvent:e})}),500);this.numbersStore="";this.totalPages=10;this.internalSectionIndex=0;this.theme="";this.jumpString="...";this.variation="default";this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabelsDefaults={en:{next_page:"Next page",previous_page:"Previous page",first_page:"First page",last_page:"Last page",jump_to:"Jump to page",go_to:"Go to page",description:"You may use arrow keys to select page number",pagination_label:"Pagination, choose a number to jump to a page",prev_section:"Show previous {0} page numbers, screen reader user should use arrowkeys to navigate",next_section:"Show next {0} page numbers, screen reader user should use arrowkeys to navigate"},fi:{next_page:"Seuraava sivu",previous_page:"Edellinen sivu",first_page:"Ensimmäinen sivu",last_page:"Viimeinen sivu",jump_to:"Siirry sivulle",go_to:"Siirry sivulle",description:"Voit käyttää nuolinäppäimiä sivunumeron valitsemiseen",pagination_label:"Sivutus, valitse sivunumero siirtyäksesi sivulle",prev_section:"Näytä edelliset {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi",next_section:"Näytä seuraavat {0} sivunumerot, käyttäjän pitää käyttää nuolinäppäimiä navigoidaksesi"},sv:{next_page:"Nästa sida",previous_page:"Föregående sida",first_page:"Första sidan",last_page:"Sista sidan",jump_to:"Hoppa till sida",go_to:"Hoppa till sida",description:"Du kan använda piltangenterna för att välja sida",pagination_label:"Sidutning, välj en siffra för att hoppa till en sida",prev_section:"Visa föregående {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera",next_section:"Visa nästa {0} sidnummer, skrivbordsläsare ska använda piltangenterna för att navigera"}};this.accessibleLabels=getLocaleString(this.accessibleLabelsDefaults);this.take=5;this.visibleItems=5;this.total=1e3;this.ariaControls="";this.current=1}e.prototype.watchPropTotalHandler=function(){this.calculatePageTake();return true};e.prototype.watchStateHandler=function(e,t){return this.actionChain(e,t)};e.prototype.componentWillLoad=function(){this.internalSectionIndex=Math.ceil(this.current/this.visibleItems)-1;this.calculatePageTake();inheritGlobalTheme(this)};e.prototype.componentWillRender=function(){if(this.internalSectionIndex!==0&&this.internalSectionIndex!==this.totalPages){this.calculatePageTake()}};e.prototype.componentDidRender=function(){this.setFocus()};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabels",defaults:"accessibleLabelsDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.calculatePageTake=function(){this.totalPages=Math.ceil(this.total/this.take)};e.prototype.onMouseHandler=function(e,t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){e.preventDefault();e.stopPropagation();this.current=this.current+t;this.emitPageEvent(e);return[2]}))}))};e.prototype.onKeyboardDown=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(i){t=this.current;if(isArrowLeftKey(e)||isArrowUpKey(e)){t--}if(isArrowRightKey(e)||isArrowDownKey(e)){t++}if(isArrowKey(e)){if(t<=this.totalPages){this.current=t;this.emitPageEvent(e)}}if(isNumber(e)&&this.shouldDisplayNavigation()){this.numbersStore=this.numbersStore+e.key;if(Number(this.numbersStore)>this.totalPages){this.numbersStore=this.totalPages+""}this.getEnteredNumber(e)}return[2]}))}))};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(i){switch(i.label){case 0:e=this.nativeNav.querySelector("li.duet-pagination-item-is-active duet-button");t=e;if(!t)return[3,2];return[4,e.setFocus()];case 1:t=i.sent();i.label=2;case 2:t;return[2]}}))}))};e.prototype.pageClickHandler=function(e){e.preventDefault();var t=Number(e.target.getAttribute("data-id"));this.current=t;this.emitPageEvent({},t)};e.prototype.sectionClickHandler=function(e,t){e.preventDefault();var i=this.internalSectionIndex+t;var n=this.take*this.visibleItems;if(i*n>this.total){i=this.internalSectionIndex}var a=i;this.internalSectionIndex=a>=0?a:0};e.prototype.jumpToStart=function(e){e.preventDefault();this.internalSectionIndex=0;this.current=1;this.emitPageEvent(e)};e.prototype.jumpToEnd=function(e){e.preventDefault();this.internalSectionIndex=Math.ceil(this.totalPages/this.take-1);this.current=this.totalPages;this.emitPageEvent(e)};e.prototype.renderPageNumbers=function(){var e=this;var t=[];var i=this.internalSectionIndex*this.visibleItems;do{i++;if(i>this.totalPages){break}t.push(h("li",{class:{"duet-pagination-item":true,"duet-pagination-item-is-active":i===this.current},role:"menuitem"},h("duet-button",{class:{"duet-pagination-link":true},color:i!==this.current?this.theme!=="turva"?"secondary":"secondary-turva":this.theme!=="turva"?"primary":"primary-turva","data-id":i,"center-text":true,variation:"plain",margin:"none",accessibleLabel:"".concat(this.accessibleLabels.go_to," ").concat(i),onClick:function(t){return e.pageClickHandler(t)},theme:this.theme},h("div",{class:"duet-pagination-page-number","aria-hidden":true},i))))}while(i<this.visibleItems+this.internalSectionIndex*this.visibleItems);return t};e.prototype.shouldDisplayNavigation=function(){if(this.variation!=="compact"){return shouldDisplayNavigation(this.visibleItems,this.total,this.take)}return false};e.prototype.render=function(){var e;var t=this;return h(Host,{onKeyDown:function(e){return t.onKeyboardDown(e)}},h("nav",{role:"navigation","aria-labelledby":this.accessibleLabelledBy?"".concat(this.accessibleLabelledBy," ").concat(this.listId):this.listId,"aria-describedby":this.accessibleDescribedBy?"".concat(this.accessibleDescribedBy," ").concat(this.listId):this.listId,"aria-descriptions":this.accessibleDescription,"aria-details":this.accessibleDetails,ref:function(e){return t.nativeNav=e},"aria-controls":this.ariaControls,class:(e={"duet-pagination-nav":true},e["duet-pagination-variation-".concat(this.variation)]=true,e)},this.numbersStore!==""&&h("div",{"aria-live":"assertive","aria-relevant":"text",class:"duet-pagination-overlay","aria-label":"".concat(this.accessibleLabels.jump_to," ").concat(this.numbersStore),part:"navigation-overlay"},h("duet-badge",{theme:this.theme},"jump to page : ",this.numbersStore)),h("ol",{id:this.listId,class:{"duet-pagination":true,"duet-pagination-is-dimmed":this.numbersStore!==""},role:"menubar","aria-label":this.accessibleLabels.pagination_label,"aria-description":this.accessibleLabels.description},h("li",{class:{"duet-pagination-page-button":true,"duet-pagination-button-first":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{disabled:this.internalSectionIndex===0&&this.current<=1,"data-direction":"back",onClick:function(e){return t.onMouseHandler(e,-1)},"accessible-label":this.accessibleLabels.previous_page,"icon-name":"action-arrow-left-small",theme:this.theme})),this.internalSectionIndex!==0&&this.shouldDisplayNavigation()&&h(Fragment,null,h("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{class:"duet-pagination-link duet-pagination-link-jump-back","center-text":"true",variation:"plain",color:this.theme!=="turva"?"secondary":"secondary-turva",margin:"none",accessibleLabel:this.accessibleLabels.first_page,onClick:function(e){return t.jumpToStart(e)},theme:this.theme},h("div",{class:"duet-pagination-page-number"},"1"))),h("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{class:"duet-pagination-link duet-pagination-link-dots-back","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.prev_section.replace("{0}","".concat(this.visibleItems)),onClick:function(e){return t.sectionClickHandler(e,-1)},theme:this.theme},h("div",{class:"duet-pagination-page-number","aria-hidden":"true"},"...")))),this.renderPageNumbers(),this.internalSectionIndex*(this.visibleItems+2)<this.totalPages&&this.shouldDisplayNavigation()&&h(Fragment,null,h("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-section"},h("duet-button",{class:"duet-pagination-link duet-pagination-link-dots-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.next_section.replace("{0}","".concat(this.visibleItems)),onClick:function(e){return t.sectionClickHandler(e,1)},theme:this.theme},h("div",{class:"duet-pagination-page-number","aria-hidden":"true"},"..."))),h("li",{class:"duet-pagination-item",role:"menuitem",part:"navigation-jump"},h("duet-button",{class:"duet-pagination-link duet-pagination-link-jump-forward","center-text":"true",color:this.theme!=="turva"?"secondary":"secondary-turva",variation:"plain",margin:"none",accessibleLabel:this.accessibleLabels.last_page,onClick:function(e){return t.jumpToEnd(e)},theme:this.theme},h("div",{class:"duet-pagination-page-number"},this.totalPages)))),h("li",{class:{"duet-pagination-page-button":true,"duet-pagination-button-last":true},role:"menuitem",part:"navigation-arrow"},h("duet-action-button",{disabled:this.current===this.totalPages&&this.internalSectionIndex===Math.ceil(this.totalPages/this.visibleItems)-1,class:"duet-date-dialog-next","accessible-label":this.accessibleLabels.next_page,onClick:function(e){return t.onMouseHandler(e,1)},"icon-name":"action-arrow-right-small",theme:this.theme})))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{total:["watchPropTotalHandler"],current:["watchStateHandler"]}},enumerable:false,configurable:true});return e}();DuetPagination.style=duetPaginationCss;var duetRangeStepperCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:inline-block;margin:0 auto}.duet-range-stepper{display:flex;flex-wrap:wrap;gap:0;align-items:baseline;justify-content:center;min-width:30px;min-height:30px;font-weight:600;text-decoration:none;border-left-width:0}.duet-range-stepper{white-space:nowrap}.duet-range-stepper .duet-range-step-counter{font-weight:600;color:rgb(0, 41, 77)}.duet-range-stepper ::part(button){border:0}";var DuetRangeStepper=function(){function e(e){var t=this;registerInstance(this,e);this.duetRangeStepUpdate=createEvent(this,"duetRangeStepUpdate",7);this.leftBn=createID("duetRangeStepper-left");this.rightBn=createID("duetRangeStepper-right");this.handleClick=function(e,i){e.preventDefault();t.stepIndex+=i;t.clampStepIndex();t.handleStepClick(e)};this.theme="";this.stepIndex=1;this.stepSize=50;this.total=1e3;this.ariaLabelsDefaults={en:{next_increment:"Next range increment",previous_increment:"Previous range increment",x_of_y:"{0}–{1} of {2}"},fi:{next_increment:"Seuraava välillä",previous_increment:"Edellinen välillä",x_of_y:"{0}–{1} / {2}"},sv:{next_increment:"Nästa intervall",previous_increment:"Föregående intervall",x_of_y:"{0}–{1} av {2}"}};this.ariaLabels=getLocaleString(this.ariaLabelsDefaults);this.ariaControls=""}e.prototype.watchStepIndexStateHandler=function(e){if(this.leftBnRef&&this.rightBnRef){if(e<=1){if(this.element===document.activeElement){this.rightBnRef.setFocus()}this.leftBnRef.setAttribute("disabled","")}else{this.leftBnRef.removeAttribute("disabled")}if(e>=this.total/this.stepSize){if(this.element===document.activeElement){this.leftBnRef.setFocus()}this.rightBnRef.setAttribute("disabled","")}else{this.rightBnRef.removeAttribute("disabled")}}};e.prototype.watchStepSizeStateHandler=function(e,t){if(e!==t){if(this.stepIndex*e>this.total){this.stepIndex=Math.ceil(this.total/e)}this.watchStepIndexStateHandler(this.stepIndex)}};e.prototype.handleStepClick=function(e){this.duetRangeStepUpdate.emit({originalEvent:e,component:"duet-range-stepper",from:this.getFrom(),to:this.getTo(),index:this.stepIndex})};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.clampStepIndex()};e.prototype.componentDidLoad=function(){this.watchStepIndexStateHandler(this.stepIndex)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"ariaLabels",defaults:"ariaLabelsDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.clampStepIndex=function(){if(this.stepIndex<1){this.stepIndex=1}else if(this.stepIndex*this.stepSize>this.total){this.stepIndex=Math.ceil(this.total/this.stepSize)}};e.prototype.getFrom=function(){return Math.floor((this.stepIndex-1)*this.stepSize)+1};e.prototype.getTo=function(){return Math.min(Math.floor(this.stepIndex*this.stepSize),this.total)};e.prototype.generateStepSize=function(){return this.ariaLabels.x_of_y.replace("{0}",String(this.getFrom())).replace("{1}",String(this.getTo())).replace("{2}",String(this.total))};e.prototype.generatePreviousIncrementLabel=function(){if(this.getFrom()===1){return""}return this.ariaLabels.x_of_y.replace("{0}",String(Math.max(this.getFrom()-this.stepSize,1))).replace("{1}",String(Math.min(this.getFrom()-1,this.total))).replace("{2}",String(this.total))};e.prototype.generateNextIncrementLabel=function(){if(this.getTo()===this.total){return""}return this.ariaLabels.x_of_y.replace("{0}",String(this.getTo()+1)).replace("{1}",String(Math.min(this.getTo()+this.stepSize,this.total))).replace("{2}",String(this.total))};e.prototype.onKeyboardDown=function(e){return __awaiter(this,void 0,void 0,(function(){var t,i;return __generator(this,(function(n){t=this.stepIndex;i=1;if(isArrowLeftKey(e)||isArrowUpKey(e)||isMinusKey(e)){t--;i=-1;this.leftBnRef.setFocus()}if(isArrowRightKey(e)||isArrowDownKey(e)||isPlusKey(e)){t++;i=1}if(isArrowKey(e)){if(t>0&&t*this.stepSize<=this.total){this.handleClick(e,i)}}return[2]}))}))};e.prototype.render=function(){var e=this;return h("div",{class:{"duet-range-stepper":true,"duet-theme-turva":this.theme==="turva"},onKeyDown:function(t){return e.onKeyboardDown(t)},"aria-controls":this.ariaControls},h("span",{class:"duet-range-step-counter",part:"range-numbers"},this.generateStepSize()),h("duet-action-button",{class:"duet-range-step-button duet-range-step-minus",onClick:function(t){return e.handleClick(t,-1)},id:this.leftBn,"accessible-label":"".concat(this.ariaLabels.previous_increment," ").concat(this.generatePreviousIncrementLabel()),ref:function(t){return e.leftBnRef=t},part:"navigation-arrow",iconName:"action-arrow-left-small"}),h("duet-action-button",{class:"duet-range-step-button duet-range-step-plus",onClick:function(t){return e.handleClick(t,1)},"accessible-label":"".concat(this.ariaLabels.next_increment," ").concat(this.generateNextIncrementLabel()),id:this.rightBn,ref:function(t){return e.rightBnRef=t},part:"navigation-arrow",iconName:"action-arrow-right-small"}))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{stepIndex:["watchStepIndexStateHandler"],stepSize:["watchStepSizeStateHandler"]}},enumerable:false,configurable:true});return e}();DuetRangeStepper.style=duetRangeStepperCss;export{DuetPagination as duet_pagination,DuetRangeStepper as duet_range_stepper};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,n,o){function r(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function u(e){try{s(o.next(e))}catch(e){i(e)}}function a(e){try{s(o["throw"](e))}catch(e){i(e)}}function s(e){e.done?n(e.value):r(e.value).then(u,a)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,r,i,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(e){return function(t){return s([e,t])}}function s(a){if(o)throw new TypeError("Generator is already executing.");while(u&&(u=0,a[0]&&(n=0)),n)try{if(o=1,r&&(i=a[0]&2?r["return"]:a[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;if(r=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;r=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){n.label=a[1];break}if(a[0]===6&&n.label<i[1]){n.label=i[1];i=a;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(a);break}if(i[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];r=0}finally{o=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-cc1bfc90.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";var duetPopupMenuItemCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex;flex-direction:row;gap:0.5rem;align-items:center;justify-content:flex-start}.duet-popup-menu-item{display:flex;flex-grow:1;gap:8px;align-items:center;height:100%;padding:8px 20px;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;font-weight:400;line-height:1.25;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-popup-menu-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-popup-menu-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-popup-menu-item.active,.duet-popup-menu-item.active:hover{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-popup-menu-item.active.duet-theme-turva,.duet-popup-menu-item.active:hover.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(198, 12, 48)}.duet-popup-menu-item:hover{background:rgb(230, 242, 248)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(228, 228, 230)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}';var DuetPopupMenuItem=function(){function e(e){var t=this;registerInstance(this,e);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.onFocus=function(e){t.focus=true;t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-popup-menu-item"})};this.onBlur=function(e){t.focus=false;t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-popup-menu-item"})};this.focus=false;this.accessibleLabel=undefined;this.theme="";this.url=undefined;this.external=false;this.value=undefined;this.leadingIcon=undefined;this.trailingIcon=undefined;this.trailingText=undefined;this.active=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.isFocused=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.focus]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";var n={"duet-popup-menu-item":true,active:this.active,"duet-theme-turva":this.theme==="turva"};return h(Host,null,h(t,{ref:function(t){return e.itemElement=t},tabIndex:-1,onFocus:this.onFocus,onBlur:this.onBlur,role:"menuitem","aria-label":this.accessibleLabel,class:n,value:this.value,href:this.url,target:this.external?"_blank":undefined,rel:this.external?"noopener":undefined},this.leadingIcon&&h("duet-icon",{name:this.leadingIcon,size:"xx-small",color:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),h("span",{class:"duet-popup-menu-item-label"},h("slot",null)),this.trailingIcon&&h("duet-icon",{name:this.trailingIcon,size:"xx-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&h("span",{class:"duet-popup-menu-item-trailing"},this.trailingText)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPopupMenuItem.style=duetPopupMenuItemCss;export{DuetPopupMenuItem as duet_popup_menu_item};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-4abc92bd.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";var duetPopupMenuItemCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:flex;flex-direction:row;gap:0.5rem;align-items:center;justify-content:flex-start}.duet-popup-menu-item{display:flex;flex-grow:1;gap:8px;align-items:center;height:100%;padding:8px 20px;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;font-weight:400;line-height:1.25;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer}.duet-popup-menu-item:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-popup-menu-item:focus.duet-theme-turva{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-popup-menu-item.active,.duet-popup-menu-item.active:hover{color:rgb(255, 255, 255);background:rgb(0, 119, 179)}.duet-popup-menu-item.active.duet-theme-turva,.duet-popup-menu-item.active:hover.duet-theme-turva{color:rgb(255, 255, 255);background:rgb(198, 12, 48)}.duet-popup-menu-item:hover{background:rgb(230, 242, 248)}.duet-popup-menu-item:hover.duet-theme-turva{background:rgb(228, 228, 230)}.duet-popup-menu-item .duet-popup-menu-item-label{flex-grow:1}';var DuetPopupMenuItem=function(){function e(e){var t=this;registerInstance(this,e);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.onFocus=function(e){t.focus=true;t.duetFocus.emit({originalEvent:e,value:t.value,component:"duet-popup-menu-item"})};this.onBlur=function(e){t.focus=false;t.duetBlur.emit({originalEvent:e,value:t.value,component:"duet-popup-menu-item"})};this.focus=false;this.accessibleLabel=undefined;this.theme="";this.url=undefined;this.external=false;this.value=undefined;this.leadingIcon=undefined;this.trailingIcon=undefined;this.trailingText=undefined;this.active=false}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.setFocus=function(e){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(n){setTimeout((function(){return t.itemElement.focus(e)}),200);return[2]}))}))};e.prototype.isFocused=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.focus]}))}))};e.prototype.render=function(){var e=this;var t=this.url?"a":"button";var n={"duet-popup-menu-item":true,active:this.active,"duet-theme-turva":this.theme==="turva"};return h(Host,null,h(t,{ref:function(t){return e.itemElement=t},tabIndex:-1,onFocus:this.onFocus,onBlur:this.onBlur,role:"menuitem","aria-label":this.accessibleLabel,class:n,value:this.value,href:this.url,target:this.external?"_blank":undefined,rel:this.external?"noopener":undefined},this.leadingIcon&&h("duet-icon",{name:this.leadingIcon,size:"xx-small",color:"currentColor",class:"duet-popup-menu-item-leading",margin:"none"}),h("span",{class:"duet-popup-menu-item-label"},h("slot",null)),this.trailingIcon&&h("duet-icon",{name:this.trailingIcon,size:"xx-small",color:"currentColor",class:"duet-popup-menu-item-trailing",margin:"none"}),this.trailingText&&h("span",{class:"duet-popup-menu-item-trailing"},this.trailingText)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPopupMenuItem.style=duetPopupMenuItemCss;export{DuetPopupMenuItem as duet_popup_menu_item};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,n,i){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,r){function s(e){try{u(i.next(e))}catch(e){r(e)}}function a(e){try{u(i["throw"](e))}catch(e){r(e)}}function u(e){e.done?n(e.value):o(e.value).then(s,a)}u((i=i.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},i,o,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(e){return function(t){return u([e,t])}}function u(a){if(i)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(i=1,o&&(r=a[0]&2?o["return"]:a[0]?o["throw"]||((r=o["return"])&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;if(o=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;o=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=t.call(e,n)}catch(e){a=[6,e];o=0}finally{i=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-cc1bfc90.js";import{c as computePosition,o as offset,f as flip}from"./floating-ui.dom.esm-6025c98f.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{f as isEscapeKey,c as isArrowDownKey,b as isArrowUpKey,o as isTabKey}from"./keyboard-utils-d237bd5a.js";import{T as Teleport}from"./teleport-6b18ccae.js";var duetPopupMenuCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-popup-menu-list{position:absolute;top:0;left:0;z-index:950;width:max-content;min-width:175px;padding:0;padding:1rem 0;margin:0;color:rgb(0, 41, 77);list-style:none;visibility:hidden !important;background:rgb(243, 249, 252);border-radius:0 0 8px 8px;box-shadow:0 6px 6px 0 rgba(0, 41, 77, 0.1);opacity:0;transition:transform 300ms ease, visibility 300ms ease, opacity 300ms ease;transform:scaleY(0);transform-origin:top center}.duet-popup-menu-list.open{visibility:visible !important;opacity:1;transform:scaleY(1)}.duet-popup-menu-list.fixed{position:fixed}.duet-popup-menu-list.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(245, 245, 247)}";var DuetPopupMenu=function(){function e(e){var t=this;registerInstance(this,e);this.duetToggle=createEvent(this,"duetToggle",7);this.updatePlacement=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this.controller){return[2]}return[4,computePosition(this.controller,this.element,{middleware:[offset({mainAxis:this.mainAxisOffset,crossAxis:this.crossAxisOffset}),flip()],placement:this.placement,strategy:this.position})];case 1:e=t.sent();this.menuY=e.y;this.menuX=e.x;return[2]}}))}))};this.open=false;this.menuY=undefined;this.menuX=undefined;this.accessibleLabel=undefined;this.theme="";this.controller=undefined;this.placement="bottom-start";this.position="absolute";this.mainAxisOffset=0;this.crossAxisOffset=0}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.teleport=new Teleport(this.element)};e.prototype.componentDidLoad=function(){{this.updatePlacement()}};e.prototype.handleKeyUp=function(e){if(this.open){if(isEscapeKey(e)){this.focusController();this.hide()}}};e.prototype.handleKeyDown=function(e){return __awaiter(this,void 0,void 0,(function(){var t,t;return __generator(this,(function(n){switch(n.label){case 0:if(!this.open)return[3,5];if(!isArrowDownKey(e))return[3,2];return[4,this.getFocusedItemIndex()];case 1:t=n.sent();if(t!==-1){if(t<this.itemElements.length-1){this.itemElements[t+1].setFocus()}else{this.itemElements[0].setFocus()}}n.label=2;case 2:if(!isArrowUpKey(e))return[3,4];return[4,this.getFocusedItemIndex()];case 3:t=n.sent();if(t!==-1){if(t===0){this.itemElements[this.itemElements.length-1].setFocus()}else{this.itemElements[t-1].setFocus()}}n.label=4;case 4:if(isTabKey(e)){e.preventDefault();this.hide()}n.label=5;case 5:return[2]}}))}))};e.prototype.handleClick=function(e){var t=this;var n=e.composedPath().every((function(e){return e!==t.element&&e!==t.controller}));if(this.open&&n){this.hide()}};e.prototype.isOpen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.open]}))}))};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;this.teleport.go();this.itemElements[0].setFocus();this.duetToggle.emit({open:this.open,component:"duet-popup-menu"});this.updatePlacement();return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=false;this.duetToggle.emit({open:this.open,component:"duet-popup-menu"});this.focusController();this.teleport.resume(200);return[2]}))}))};e.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.open){this.hide()}else{this.show()}return[2]}))}))};e.prototype.focusController=function(){if(this.controller){if("setFocus"in this.controller){this.controller.setFocus()}else{this.controller.focus()}}};Object.defineProperty(e.prototype,"itemElements",{get:function(){return Array.from(this.element.querySelectorAll(":scope > duet-popup-menu-item"))},enumerable:false,configurable:true});e.prototype.getFocusedItemIndex=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e=this.itemElements;t=0;n.label=1;case 1:if(!(t<e.length))return[3,4];return[4,e[t].isFocused()];case 2:if(n.sent()){return[2,t]}n.label=3;case 3:t++;return[3,1];case 4:return[2,-1]}}))}))};e.prototype.render=function(){var e={top:"".concat(this.menuY,"px"),left:"".concat(this.menuX,"px")};return h(Host,{class:this.position},h("div",{style:e,class:{open:this.open,"duet-popup-menu-list":true,"duet-theme-turva":this.theme==="turva"},role:"menu","aria-label":this.accessibleLabel},h("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPopupMenu.style=duetPopupMenuCss;export{DuetPopupMenu as duet_popup_menu};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-4abc92bd.js";import{c as computePosition,o as offset,f as flip}from"./floating-ui.dom.esm-6025c98f.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{f as isEscapeKey,c as isArrowDownKey,b as isArrowUpKey,o as isTabKey}from"./keyboard-utils-d237bd5a.js";import{T as Teleport}from"./teleport-6b18ccae.js";var duetPopupMenuCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.duet-popup-menu-list{position:absolute;top:0;left:0;z-index:950;width:max-content;min-width:175px;padding:0;padding:1rem 0;margin:0;color:rgb(0, 41, 77);list-style:none;visibility:hidden !important;background:rgb(243, 249, 252);border-radius:0 0 8px 8px;box-shadow:0 6px 6px 0 rgba(0, 41, 77, 0.1);opacity:0;transition:transform 300ms ease, visibility 300ms ease, opacity 300ms ease;transform:scaleY(0);transform-origin:top center}.duet-popup-menu-list.open{visibility:visible !important;opacity:1;transform:scaleY(1)}.duet-popup-menu-list.fixed{position:fixed}.duet-popup-menu-list.duet-theme-turva{color:rgb(23, 28, 58) !important;background:rgb(245, 245, 247)}";var DuetPopupMenu=function(){function e(e){var t=this;registerInstance(this,e);this.duetToggle=createEvent(this,"duetToggle",7);this.updatePlacement=function(){return __awaiter(t,void 0,void 0,(function(){var e;return __generator(this,(function(t){switch(t.label){case 0:if(!this.controller){return[2]}return[4,computePosition(this.controller,this.element,{middleware:[offset({mainAxis:this.mainAxisOffset,crossAxis:this.crossAxisOffset}),flip()],placement:this.placement,strategy:this.position})];case 1:e=t.sent();this.menuY=e.y;this.menuX=e.x;return[2]}}))}))};this.open=false;this.menuY=undefined;this.menuX=undefined;this.accessibleLabel=undefined;this.theme="";this.controller=undefined;this.placement="bottom-start";this.position="absolute";this.mainAxisOffset=0;this.crossAxisOffset=0}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.teleport=new Teleport(this.element)};e.prototype.componentDidLoad=function(){{this.updatePlacement()}};e.prototype.handleKeyUp=function(e){if(this.open){if(isEscapeKey(e)){this.focusController();this.hide()}}};e.prototype.handleKeyDown=function(e){return __awaiter(this,void 0,void 0,(function(){var t,t;return __generator(this,(function(n){switch(n.label){case 0:if(!this.open)return[3,5];if(!isArrowDownKey(e))return[3,2];return[4,this.getFocusedItemIndex()];case 1:t=n.sent();if(t!==-1){if(t<this.itemElements.length-1){this.itemElements[t+1].setFocus()}else{this.itemElements[0].setFocus()}}n.label=2;case 2:if(!isArrowUpKey(e))return[3,4];return[4,this.getFocusedItemIndex()];case 3:t=n.sent();if(t!==-1){if(t===0){this.itemElements[this.itemElements.length-1].setFocus()}else{this.itemElements[t-1].setFocus()}}n.label=4;case 4:if(isTabKey(e)){e.preventDefault();this.hide()}n.label=5;case 5:return[2]}}))}))};e.prototype.handleClick=function(e){var t=this;var n=e.composedPath().every((function(e){return e!==t.element&&e!==t.controller}));if(this.open&&n){this.hide()}};e.prototype.isOpen=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.open]}))}))};e.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=true;this.teleport.go();this.itemElements[0].setFocus();this.duetToggle.emit({open:this.open,component:"duet-popup-menu"});this.updatePlacement();return[2]}))}))};e.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.open=false;this.duetToggle.emit({open:this.open,component:"duet-popup-menu"});this.focusController();this.teleport.resume(200);return[2]}))}))};e.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.open){this.hide()}else{this.show()}return[2]}))}))};e.prototype.focusController=function(){if(this.controller){if("setFocus"in this.controller){this.controller.setFocus()}else{this.controller.focus()}}};Object.defineProperty(e.prototype,"itemElements",{get:function(){return Array.from(this.element.querySelectorAll(":scope > duet-popup-menu-item"))},enumerable:false,configurable:true});e.prototype.getFocusedItemIndex=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){switch(n.label){case 0:e=this.itemElements;t=0;n.label=1;case 1:if(!(t<e.length))return[3,4];return[4,e[t].isFocused()];case 2:if(n.sent()){return[2,t]}n.label=3;case 3:t++;return[3,1];case 4:return[2,-1]}}))}))};e.prototype.render=function(){var e={top:"".concat(this.menuY,"px"),left:"".concat(this.menuX,"px")};return h(Host,{class:this.position},h("div",{style:e,class:{open:this.open,"duet-popup-menu-list":true,"duet-theme-turva":this.theme==="turva"},role:"menu","aria-label":this.accessibleLabel},h("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPopupMenu.style=duetPopupMenuCss;export{DuetPopupMenu as duet_popup_menu};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-cc1bfc90.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{c as createID}from"./create-id-981107da.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-9d850f6c.js";import"./string-utils-5954f458.js";var duetProgressCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(243, 249, 252);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(252, 243, 244)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-theme-turva .duet-progress progress[value]{color:rgb(198, 12, 48)}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(243, 249, 252);border-radius:0}.duet-theme-turva .duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(252, 243, 244)}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-theme-turva .duet-progress progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(243, 249, 252)}.duet-theme-turva .duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(252, 243, 244)}";var DuetProgress=function(){function e(e){registerInstance(this,e);this.progressId=createID("DuetProgress");this.progressLabelId=createID("DuetProgressLabel");this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabel=undefined;this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]};this.accessibleLabelUpload=getLocaleString(this.accessibleLabelUploadDefaults);this.progress=0;this.caption=undefined;this.height="10px";this.theme=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){return h(Host,null,h("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":true,"duet-progress-done":this.progress===100,"duet-progress-start":this.progress===0,"duet-progress-inprogress":this.progress<99&&this.progress!==0,"duet-theme-turva":this.theme==="turva"}},h("duet-visually-hidden",null,h("label",{htmlFor:this.progressLabelId},this.progress!==0&&h("span",null,this.accessibleLabel,", ",this.accessibleLabelUpload[this.progress<99?1:0]))),this.caption&&h("div",{class:"duet-progress-caption"},h("span",null,this.caption)),h("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},h("div",{class:"progress-bar"},h("span",{style:{width:"".concat(this.progress,"%;")}},"Progress: ",this.progress,"%")))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetProgress.style=duetProgressCss;export{DuetProgress as duet_progress};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-4abc92bd.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{c as createID}from"./create-id-981107da.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver}from"./language-utils-9d850f6c.js";import"./string-utils-5954f458.js";var duetProgressCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;width:100%;height:inherit}.duet-progress{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%;min-height:1px;}.duet-progress .progress-bar{position:relative;display:block;width:100%;height:inherit;min-height:1px;background-color:rgb(243, 249, 252);border-radius:0;box-shadow:none}.duet-theme-turva .duet-progress .progress-bar{background-color:rgb(252, 243, 244)}.duet-progress .progress-bar>span{display:block;height:inherit;text-indent:-9999px;background-color:rgb(0, 119, 179);border-radius:0}.duet-theme-turva .duet-progress .progress-bar>span{background-color:rgb(198, 12, 48)}.duet-progress progress[value]{display:flex;width:100%;height:inherit;min-height:1px;color:rgb(0, 119, 179);border:0 none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.duet-theme-turva .duet-progress progress[value]{color:rgb(198, 12, 48)}.duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(243, 249, 252);border-radius:0}.duet-theme-turva .duet-progress progress[value]::-webkit-progress-bar{background-color:rgb(252, 243, 244)}.duet-progress progress[value]::-webkit-progress-value{background-color:rgb(0, 119, 179);background-size:35px 20px, 100% 100%, 100% 100%;border-radius:0;-webkit-animation:animate-stripes 5s linear infinite;animation:animate-stripes 5s linear infinite}.duet-theme-turva .duet-progress progress[value]::-webkit-progress-value{background-color:rgb(198, 12, 48)}.duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(243, 249, 252)}.duet-theme-turva .duet-progress progress[value] ::-moz-progress-bar{background-color:rgb(252, 243, 244)}";var DuetProgress=function(){function e(e){registerInstance(this,e);this.progressId=createID("DuetProgress");this.progressLabelId=createID("DuetProgressLabel");this.accessibleDescribedBy=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleLabel=undefined;this.accessibleLabelUploadDefaults={fi:["lähetys valmis","lähetys käynnissä"],sv:["Uppladdningen är klar","Uppladdning pågår"],en:["upload completed","upload in progress"]};this.accessibleLabelUpload=getLocaleString(this.accessibleLabelUploadDefaults);this.progress=0;this.caption=undefined;this.height="10px";this.theme=""}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleLabelUpload",defaults:"accessibleLabelUploadDefaults"})};e.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};e.prototype.render=function(){return h(Host,null,h("div",{"aria-live":this.accessibleLabel?"polite":"off","aria-hidden":this.accessibleLabel?"false":"true","aria-atomic":"true",style:{height:this.height},id:this.progressId,class:{"duet-progress":true,"duet-progress-done":this.progress===100,"duet-progress-start":this.progress===0,"duet-progress-inprogress":this.progress<99&&this.progress!==0,"duet-theme-turva":this.theme==="turva"}},h("duet-visually-hidden",null,h("label",{htmlFor:this.progressLabelId},this.progress!==0&&h("span",null,this.accessibleLabel,", ",this.accessibleLabelUpload[this.progress<99?1:0]))),this.caption&&h("div",{class:"duet-progress-caption"},h("span",null,this.caption)),h("progress",{id:this.progressLabelId,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:"progressbar",value:this.progress,max:"100","aria-valuemin":"0","aria-valuemax":"100"},h("div",{class:"progress-bar"},h("span",{style:{width:"".concat(this.progress,"%;")}},"Progress: ",this.progress,"%")))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetProgress.style=duetProgressCss;export{DuetProgress as duet_progress};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-cc1bfc90.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{g as getColorByName}from"./token-utils-a1dcaa4b.js";import"./tokens.module-ed773027.js";var duetPromoCardCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:block;width:auto}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-promo-card{display:flex;flex-direction:column;width:100%;height:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;color:rgb(0, 41, 77);text-align:left;border-radius:20px}.duet-promo-card.duet-p-0{padding:0 !important}.duet-promo-card.duet-m-0{margin:0 !important}.duet-promo-card .content-wrapper{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}.duet-promo-card .image{position:relative;width:100%;overflow:hidden;border-top-left-radius:20px;border-top-right-radius:20px;object-fit:cover}.duet-promo-card .content{display:flex;flex-direction:column;flex-grow:1;gap:8px;padding:20px}@media (min-width: 36em){.duet-promo-card .content{padding:28px}}.duet-promo-card .action{display:flex;flex-grow:1;align-items:flex-end;padding-top:16px}.duet-promo-card.no-bg-color .content{padding:20px 0 0}.duet-promo-card.no-bg-color .image{border-radius:16px}.duet-promo-card.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"}';var DuetPromoCard=function(){function e(e){registerInstance(this,e);this.theme="";this.margin="auto";this.backgroundColor="";this.textColor="secondary";this.image="";this.headingLevel="h3";this.url=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasPreHeadingSlot=!!this.element.querySelector('[slot="pre-heading"]');this.hasHeadingSlot=!!this.element.querySelector('[slot="heading"]');this.hasDescriptionSlot=!!this.element.querySelector('[slot="description"]');this.hasActionSlot=!!this.element.querySelector('[slot="action"]')};e.prototype.render=function(){var e=getColorByName(this.backgroundColor,this.theme);var t={backgroundColor:e?e:"none"};var o=this.url?"a":"div";return h(Host,{class:{"duet-m-0":this.margin==="none"}},h("aside",{class:{"duet-promo-card":true,"duet-theme-turva":this.theme==="turva","no-bg-color":!this.backgroundColor},style:t},h(o,{href:this.url,class:"content-wrapper"},h("img",{class:"image",src:this.image,alt:"",role:"presentation"}),h("div",{class:"content"},this.hasPreHeadingSlot&&h("div",{class:"pre-heading"},h("slot",{name:"pre-heading"})),this.hasHeadingSlot&&h("div",{class:"heading"},h("duet-heading",{theme:this.theme,level:this.headingLevel,"visual-level":"h3",margin:"none",color:this.textColor},h("slot",{name:"heading"}))),this.hasDescriptionSlot&&h("div",{class:"description"},h("duet-paragraph",{theme:this.theme,margin:"none",color:this.textColor},h("slot",{name:"description"}))),this.hasActionSlot&&h("div",{class:"action"},h("slot",{name:"action"}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPromoCard.style=duetPromoCardCss;export{DuetPromoCard as duet_promo_card};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-4abc92bd.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{g as getColorByName}from"./token-utils-a1dcaa4b.js";import"./tokens.module-ed773027.js";var duetPromoCardCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:4px !important;margin-bottom:2px !important;display:block;width:auto}:host:last-child,:host:last-of-type{margin-right:0 !important}:host(.duet-m-0){margin:0 !important}.duet-promo-card{display:flex;flex-direction:column;width:100%;height:100%;font-family:"localtapiola-sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";font-style:normal;color:rgb(0, 41, 77);text-align:left;border-radius:20px}.duet-promo-card.duet-p-0{padding:0 !important}.duet-promo-card.duet-m-0{margin:0 !important}.duet-promo-card .content-wrapper{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}.duet-promo-card .image{position:relative;width:100%;overflow:hidden;border-top-left-radius:20px;border-top-right-radius:20px;object-fit:cover}.duet-promo-card .content{display:flex;flex-direction:column;flex-grow:1;gap:8px;padding:20px}@media (min-width: 36em){.duet-promo-card .content{padding:28px}}.duet-promo-card .action{display:flex;flex-grow:1;align-items:flex-end;padding-top:16px}.duet-promo-card.no-bg-color .content{padding:20px 0 0}.duet-promo-card.no-bg-color .image{border-radius:16px}.duet-promo-card.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"}';var DuetPromoCard=function(){function e(e){registerInstance(this,e);this.theme="";this.margin="auto";this.backgroundColor="";this.textColor="secondary";this.image="";this.headingLevel="h3";this.url=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasPreHeadingSlot=!!this.element.querySelector('[slot="pre-heading"]');this.hasHeadingSlot=!!this.element.querySelector('[slot="heading"]');this.hasDescriptionSlot=!!this.element.querySelector('[slot="description"]');this.hasActionSlot=!!this.element.querySelector('[slot="action"]')};e.prototype.render=function(){var e=getColorByName(this.backgroundColor,this.theme);var t={backgroundColor:e?e:"none"};var o=this.url?"a":"div";return h(Host,{class:{"duet-m-0":this.margin==="none"}},h("aside",{class:{"duet-promo-card":true,"duet-theme-turva":this.theme==="turva","no-bg-color":!this.backgroundColor},style:t},h(o,{href:this.url,class:"content-wrapper"},h("img",{class:"image",src:this.image,alt:"",role:"presentation"}),h("div",{class:"content"},this.hasPreHeadingSlot&&h("div",{class:"pre-heading"},h("slot",{name:"pre-heading"})),this.hasHeadingSlot&&h("div",{class:"heading"},h("duet-heading",{theme:this.theme,level:this.headingLevel,"visual-level":"h3",margin:"none",color:this.textColor},h("slot",{name:"heading"}))),this.hasDescriptionSlot&&h("div",{class:"description"},h("duet-paragraph",{theme:this.theme,margin:"none",color:this.textColor},h("slot",{name:"description"}))),this.hasActionSlot&&h("div",{class:"action"},h("slot",{name:"action"}))))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetPromoCard.style=duetPromoCardCss;export{DuetPromoCard as duet_promo_card};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,i,o){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function n(e){try{s(o.next(e))}catch(e){r(e)}}function d(e){try{s(o["throw"](e))}catch(e){r(e)}}function s(e){e.done?i(e.value):a(e.value).then(n,d)}s((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,a,r,n;return n={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function d(e){return function(t){return s([e,t])}}function s(d){if(o)throw new TypeError("Generator is already executing.");while(n&&(n=0,d[0]&&(i=0)),i)try{if(o=1,a&&(r=d[0]&2?a["return"]:d[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,d[1])).done)return r;if(a=0,r)d=[d[0]&2,r.value];switch(d[0]){case 0:case 1:r=d;break;case 4:i.label++;return{value:d[1],done:false};case 5:i.label++;a=d[1];d=[0];continue;case 7:d=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(d[0]===6||d[0]===2)){i=0;continue}if(d[0]===3&&(!r||d[1]>r[0]&&d[1]<r[3])){i.label=d[1];break}if(d[0]===6&&i.label<r[1]){i.label=r[1];r=d;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(d);break}if(r[2])i.ops.pop();i.trys.pop();continue}d=t.call(e,i)}catch(e){d=[6,e];a=0}finally{o=r=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-cc1bfc90.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{c as createID}from"./create-id-981107da.js";import{f as findCheckedOption,w as watchForOptions}from"./watch-options-dd55bce8.js";var duetRadioCss='*.sc-duet-radio,*.sc-duet-radio::after,*.sc-duet-radio::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-radio-h:last-child,.sc-duet-radio-h:last-of-type{margin-right:0 !important}.vertical.sc-duet-radio-h{margin-right:0 !important}.horizontal.sc-duet-radio-h{margin-bottom:0 !important;width:auto}.horizontal.sc-duet-radio-h .duet-label.sc-duet-radio .duet-label-content.sc-duet-radio{max-width:100%}@media (min-width: 48em){.horizontal-responsive.sc-duet-radio-h{margin-right:28px !important;margin-bottom:0 !important;width:auto}.horizontal-responsive.sc-duet-radio-h:last-child,.horizontal-responsive.sc-duet-radio-h:last-of-type{margin-right:0 !important}.horizontal-responsive.sc-duet-radio-h .duet-label.sc-duet-radio .duet-label-content.sc-duet-radio{max-width:100%}}.duet-m-0.sc-duet-radio-h{margin:0 !important}.sc-duet-radio-h:last-child:not(:only-child){margin-right:0 !important;margin-bottom:0 !important}.duet-label.sc-duet-radio{position:relative;z-index:100;display:flex;width:100%;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;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77);word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-theme-turva.sc-duet-radio .duet-label.sc-duet-radio{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-label.sc-duet-radio .duet-label-content.sc-duet-radio{flex-grow:1;font-size:1rem}.duet-label-hidden.sc-duet-radio .duet-label.sc-duet-radio{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-radio-container.sc-duet-radio{position:relative;width:100%;height:100%}.duet-radio.sc-duet-radio{padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}.duet-radio.sc-duet-radio+label.sc-duet-radio::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:"";background:rgb(255, 255, 255);border:1px solid rgb(0, 41, 77);border-radius:50%}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(23, 28, 58)}.duet-radio.sc-duet-radio:focus+label.sc-duet-radio::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio:focus+label.sc-duet-radio::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-radio.sc-duet-radio:checked+label.sc-duet-radio::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:"";background:rgb(0, 41, 77);border-radius:50%}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(23, 28, 58)}.duet-radio[disabled].sc-duet-radio{cursor:default}.duet-radio[disabled].sc-duet-radio+label.sc-duet-radio{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio+label.sc-duet-radio{color:rgb(116, 116, 117)}.duet-radio[disabled].sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(207, 207, 209)}.duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::before{border:1px solid rgb(101, 119, 135)}.duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(116, 116, 117);border-color:rgb(116, 116, 117)}';var DuetRadio=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",7);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.radioId=createID("DuetRadio");this.onClick=function(e){e.stopPropagation()};this.onChange=function(e){t.checked=t.nativeInput.checked||false;if(t.checked&&!t.blockEvents){t.duetChange.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-radio"})}};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-radio"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-radio"})};this.accessibleActiveDescendant=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleIndex=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.theme="";this.disabled=false;this.required=false;this.blockEvents=false;this.identifier=undefined;this.label="label";this.name=undefined;this.role=undefined;this.groupDisabled=undefined;this.groupDirection=undefined;this.groupResponsive=undefined;this.checked=undefined;this.value=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasLabel=!!this.element.querySelector(":scope > [slot='label']");if(this.value===undefined){this.value=this.identifier}};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.render=function(){var e=this;var t=this.identifier||this.radioId;return h(Host,{onClick:this.onClick,class:{horizontal:this.groupDirection==="horizontal"&&!this.groupResponsive,"horizontal-responsive":this.groupDirection==="horizontal"&&this.groupResponsive,"duet-m-0":this.margin==="none"}},h("div",{class:{"duet-radio-container":true,"duet-theme-turva":this.theme==="turva"}},h("input",{type:"radio",onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,value:this.value,tabindex:this.accessibleIndex,class:{"duet-radio":true,disabled:this.disabled||this.groupDisabled},checked:this.checked,disabled:this.disabled||this.groupDisabled,required:this.required,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:this.role,name:this.name,id:t,ref:function(t){return e.nativeInput=t}}),h("label",{class:"duet-label",htmlFor:t},h("div",{class:"duet-label-content"},this.hasLabel?h("slot",{name:"label"}):this.label))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetRadio.style=duetRadioCss;var duetRadioGroupCss="*.sc-duet-radio-group,*.sc-duet-radio-group::after,*.sc-duet-radio-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:block}@media (min-width: 48em){.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:flex}}.horizontal.sc-duet-radio-group-h .duet-radio-group.duet-no-stacking.sc-duet-radio-group{display:flex}.deut-radio-group.sc-duet-radio-group{width:100%}";var DuetRadioGroup=function(){function e(e){var t=this;registerInstance(this,e);this.onSelect=function(e){var i=e.target;if(i){t.value=i.value}e.cancelBubble=true};this.direction="vertical";this.margin="auto";this.theme="";this.error="";this.tooltip="";this.tooltipDirection="auto";this.name=undefined;this.label="Label";this.labelHidden=false;this.caption="";this.responsive=false;this.value=undefined;this.disabled=undefined}e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var i=this;return __generator(this,(function(o){switch(o.label){case 0:e=this.element;if(!(this.value===undefined))return[3,2];t=findCheckedOption(e,"duet-radio");if(!(t!==undefined))return[3,2];return[4,t.componentOnReady()];case 1:o.sent();if(this.value===undefined){this.value=t.value}o.label=2;case 2:this.mutationO=watchForOptions(e,"duet-radio",(function(e){if(e!==undefined){e.componentOnReady().then((function(){i.value=e.value}))}else{i.updateRadios()}}));this.updateRadios();return[2]}}))}))};e.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.updateRadios=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,o,a,r;return __generator(this,(function(n){e=Array.from(this.element.querySelectorAll("duet-radio"));t=this.value;i=false;for(o=0,a=e;o<a.length;o++){r=a[o];r.name=this.name;r.groupDisabled=this.disabled;r.groupDirection=this.direction;r.groupResponsive=this.responsive;if(!i&&r.value===t){i=true;r.checked=true}else{r.checked=false}}if(!i){this.value=undefined}return[2]}))}))};e.prototype.render=function(){return h(Host,{onDuetChange:this.onSelect,class:{horizontal:this.direction==="horizontal"}},h("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme},this.tooltip&&h("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),h("div",{class:{"duet-radio-group":true,"duet-no-stacking":!this.responsive}},h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:["updateRadios"],value:["updateRadios"],disabled:["updateRadios"],direction:["updateRadios"],responsive:["updateRadios"]}},enumerable:false,configurable:true});return e}();DuetRadioGroup.style=duetRadioGroupCss;export{DuetRadio as duet_radio,DuetRadioGroup as duet_radio_group};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-4abc92bd.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{c as createID}from"./create-id-981107da.js";import{f as findCheckedOption,w as watchForOptions}from"./watch-options-dd55bce8.js";var duetRadioCss='*.sc-duet-radio,*.sc-duet-radio::after,*.sc-duet-radio::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:28px !important;margin-bottom:12px !important;display:inline-flex;width:100%;vertical-align:bottom;-webkit-tap-highlight-color:transparent}.sc-duet-radio-h:last-child,.sc-duet-radio-h:last-of-type{margin-right:0 !important}.vertical.sc-duet-radio-h{margin-right:0 !important}.horizontal.sc-duet-radio-h{margin-bottom:0 !important;width:auto}.horizontal.sc-duet-radio-h .duet-label.sc-duet-radio .duet-label-content.sc-duet-radio{max-width:100%}@media (min-width: 48em){.horizontal-responsive.sc-duet-radio-h{margin-right:28px !important;margin-bottom:0 !important;width:auto}.horizontal-responsive.sc-duet-radio-h:last-child,.horizontal-responsive.sc-duet-radio-h:last-of-type{margin-right:0 !important}.horizontal-responsive.sc-duet-radio-h .duet-label.sc-duet-radio .duet-label-content.sc-duet-radio{max-width:100%}}.duet-m-0.sc-duet-radio-h{margin:0 !important}.sc-duet-radio-h:last-child:not(:only-child){margin-right:0 !important;margin-bottom:0 !important}.duet-label.sc-duet-radio{position:relative;z-index:100;display:flex;width:100%;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;hyphens:auto;line-height:1.5;color:rgb(0, 41, 77);word-break:break-word;overflow-wrap:break-word;cursor:pointer;background:transparent}.duet-theme-turva.sc-duet-radio .duet-label.sc-duet-radio{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-label.sc-duet-radio .duet-label-content.sc-duet-radio{flex-grow:1;font-size:1rem}.duet-label-hidden.sc-duet-radio .duet-label.sc-duet-radio{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}.duet-radio-container.sc-duet-radio{position:relative;width:100%;height:100%}.duet-radio.sc-duet-radio{padding:14px !important;position:absolute;top:0;left:0;z-index:200;width:100%;height:100%;cursor:pointer;opacity:0}.duet-radio.sc-duet-radio+label.sc-duet-radio::before{z-index:100;flex-shrink:0;width:20px;height:20px;margin:2px 10px 1px 1px;content:"";background:rgb(255, 255, 255);border:1px solid rgb(0, 41, 77);border-radius:50%}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(23, 28, 58)}.duet-radio.sc-duet-radio:focus+label.sc-duet-radio::before{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179)}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio:focus+label.sc-duet-radio::before{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58)}.duet-radio.sc-duet-radio:checked+label.sc-duet-radio::after{position:absolute;top:6px;left:5px;z-index:200;flex-shrink:0;width:12px;height:12px;content:"";background:rgb(0, 41, 77);border-radius:50%}.duet-theme-turva.sc-duet-radio .duet-radio.sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(23, 28, 58)}.duet-radio[disabled].sc-duet-radio{cursor:default}.duet-radio[disabled].sc-duet-radio+label.sc-duet-radio{color:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio+label.sc-duet-radio{color:rgb(116, 116, 117)}.duet-radio[disabled].sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio+label.sc-duet-radio::before{border-color:rgb(207, 207, 209)}.duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::before{border:1px solid rgb(101, 119, 135)}.duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(101, 119, 135)}.duet-theme-turva.sc-duet-radio .duet-radio[disabled].sc-duet-radio:checked+label.sc-duet-radio::after{background:rgb(116, 116, 117);border-color:rgb(116, 116, 117)}';var DuetRadio=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",7);this.duetFocus=createEvent(this,"duetFocus",7);this.duetBlur=createEvent(this,"duetBlur",7);this.radioId=createID("DuetRadio");this.onClick=function(e){e.stopPropagation()};this.onChange=function(e){t.checked=t.nativeInput.checked||false;if(t.checked&&!t.blockEvents){t.duetChange.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-radio"})}};this.onBlur=function(e){t.duetBlur.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-radio"})};this.onFocus=function(e){t.duetFocus.emit({originalEvent:e,checked:t.checked,value:t.value,component:"duet-radio"})};this.accessibleActiveDescendant=undefined;this.accessibleDetails=undefined;this.accessibleLabelledBy=undefined;this.accessibleDescription=undefined;this.accessibleIndex=undefined;this.margin="auto";this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.theme="";this.disabled=false;this.required=false;this.blockEvents=false;this.identifier=undefined;this.label="label";this.name=undefined;this.role=undefined;this.groupDisabled=undefined;this.groupDirection=undefined;this.groupResponsive=undefined;this.checked=undefined;this.value=undefined}e.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasLabel=!!this.element.querySelector(":scope > [slot='label']");if(this.value===undefined){this.value=this.identifier}};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.render=function(){var e=this;var t=this.identifier||this.radioId;return h(Host,{onClick:this.onClick,class:{horizontal:this.groupDirection==="horizontal"&&!this.groupResponsive,"horizontal-responsive":this.groupDirection==="horizontal"&&this.groupResponsive,"duet-m-0":this.margin==="none"}},h("div",{class:{"duet-radio-container":true,"duet-theme-turva":this.theme==="turva"}},h("input",{type:"radio",onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,value:this.value,tabindex:this.accessibleIndex,class:{"duet-radio":true,disabled:this.disabled||this.groupDisabled},checked:this.checked,disabled:this.disabled||this.groupDisabled,required:this.required,"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,"aria-labelledby":this.accessibleLabelledBy,"aria-details":this.accessibleDetails,"aria-description":this.accessibleDescription,role:this.role,name:this.name,id:t,ref:function(t){return e.nativeInput=t}}),h("label",{class:"duet-label",htmlFor:t},h("div",{class:"duet-label-content"},this.hasLabel?h("slot",{name:"label"}):this.label))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetRadio.style=duetRadioCss;var duetRadioGroupCss="*.sc-duet-radio-group,*.sc-duet-radio-group::after,*.sc-duet-radio-group::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-radio-group-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:block}@media (min-width: 48em){.horizontal.sc-duet-radio-group-h .duet-radio-group.sc-duet-radio-group{display:flex}}.horizontal.sc-duet-radio-group-h .duet-radio-group.duet-no-stacking.sc-duet-radio-group{display:flex}.deut-radio-group.sc-duet-radio-group{width:100%}";var DuetRadioGroup=function(){function e(e){var t=this;registerInstance(this,e);this.onSelect=function(e){var i=e.target;if(i){t.value=i.value}e.cancelBubble=true};this.direction="vertical";this.margin="auto";this.theme="";this.error="";this.tooltip="";this.tooltipDirection="auto";this.name=undefined;this.label="Label";this.labelHidden=false;this.caption="";this.responsive=false;this.value=undefined;this.disabled=undefined}e.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var e,t;var i=this;return __generator(this,(function(o){switch(o.label){case 0:e=this.element;if(!(this.value===undefined))return[3,2];t=findCheckedOption(e,"duet-radio");if(!(t!==undefined))return[3,2];return[4,t.componentOnReady()];case 1:o.sent();if(this.value===undefined){this.value=t.value}o.label=2;case 2:this.mutationO=watchForOptions(e,"duet-radio",(function(e){if(e!==undefined){e.componentOnReady().then((function(){i.value=e.value}))}else{i.updateRadios()}}));this.updateRadios();return[2]}}))}))};e.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};e.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};e.prototype.updateRadios=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,i,o,a,r;return __generator(this,(function(n){e=Array.from(this.element.querySelectorAll("duet-radio"));t=this.value;i=false;for(o=0,a=e;o<a.length;o++){r=a[o];r.name=this.name;r.groupDisabled=this.disabled;r.groupDirection=this.direction;r.groupResponsive=this.responsive;if(!i&&r.value===t){i=true;r.checked=true}else{r.checked=false}}if(!i){this.value=undefined}return[2]}))}))};e.prototype.render=function(){return h(Host,{onDuetChange:this.onSelect,class:{horizontal:this.direction==="horizontal"}},h("duet-fieldset",{label:this.label,labelHidden:this.labelHidden,caption:this.caption,error:this.error,margin:this.margin,theme:this.theme},this.tooltip&&h("duet-tooltip",{slot:"tooltip",direction:this.tooltipDirection,accessibleInputLabel:this.label},this.tooltip),h("div",{class:{"duet-radio-group":true,"duet-no-stacking":!this.responsive}},h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{name:["updateRadios"],value:["updateRadios"],disabled:["updateRadios"],direction:["updateRadios"],responsive:["updateRadios"]}},enumerable:false,configurable:true});return e}();DuetRadioGroup.style=duetRadioGroupCss;export{DuetRadio as duet_radio,DuetRadioGroup as duet_radio_group};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(e,t,r,a){function n(e){return e instanceof r?e:new r((function(t){t(e)}))}return new(r||(r=Promise))((function(r,i){function s(e){try{u(a.next(e))}catch(e){i(e)}}function d(e){try{u(a["throw"](e))}catch(e){i(e)}}function u(e){e.done?r(e.value):n(e.value).then(s,d)}u((a=a.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,s;return s={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function d(e){return function(t){return u([e,t])}}function u(d){if(a)throw new TypeError("Generator is already executing.");while(s&&(s=0,d[0]&&(r=0)),r)try{if(a=1,n&&(i=d[0]&2?n["return"]:d[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;if(n=0,i)d=[d[0]&2,i.value];switch(d[0]){case 0:case 1:i=d;break;case 4:r.label++;return{value:d[1],done:false};case 5:r.label++;n=d[1];d=[0];continue;case 7:d=r.ops.pop();r.trys.pop();continue;default:if(!(i=r.trys,i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){r=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){r.label=d[1];break}if(d[0]===6&&r.label<i[1]){r.label=i[1];i=d;break}if(i&&r.label<i[2]){r.label=i[2];r.ops.push(d);break}if(i[2])r.ops.pop();r.trys.pop();continue}d=t.call(e,r)}catch(e){d=[6,e];n=0}finally{a=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-cc1bfc90.js";import{i as colorPrimaryTurva,j as colorGrayTurva,k as colorPrimary,l as colorGray}from"./tokens.module-ed773027.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{c as createID}from"./create-id-981107da.js";import{i as isInternetExplorer}from"./is-internet-explorer-62b3bdbd.js";var duetRangeSliderCss='*.sc-duet-range-slider,*.sc-duet-range-slider::after,*.sc-duet-range-slider::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-range-slider-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;text-align:left;vertical-align:bottom}.sc-duet-range-slider-h:last-child,.sc-duet-range-slider-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-range-slider-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-range-slider-h{width:100% !important}}.duet-m-0.sc-duet-range-slider-h{margin:0 !important}.duet-range-container.sc-duet-range-slider{position:relative;width:100%}.duet-output.sc-duet-range-slider{position:absolute;top:12px;right:0;z-index:200;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;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(0, 41, 77);background:rgb(255, 255, 255)}.duet-theme-turva.sc-duet-range-slider .duet-output.sc-duet-range-slider{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-range-disabled.sc-duet-range-slider .duet-output.sc-duet-range-slider{color:rgb(144, 149, 153)}.duet-range-disabled.duet-theme-turva.sc-duet-range-slider .duet-output.sc-duet-range-slider{color:rgb(116, 116, 117)}.duet-range.sc-duet-range-slider{position:relative;z-index:100;width:100%;height:4px;background:rgb(207, 210, 212);border-radius:4px}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider{background:rgb(207, 207, 209)}.duet-ie.sc-duet-range-slider .duet-range.sc-duet-range-slider{display:block;width:auto;height:26px;background:transparent !important}.duet-range.sc-duet-range-slider::-moz-range-track{height:1px;background:transparent !important;border:0;-moz-appearance:none}.duet-range.sc-duet-range-slider::-ms-track{color:transparent;background:transparent;border:0}.duet-range.sc-duet-range-slider:focus,.duet-range.sc-duet-range-slider:active{outline:0}.user-is-tabbing.sc-duet-range-slider-h .duet-range.sc-duet-range-slider:focus{box-shadow:0 0 0 1px rgb(255, 255, 255), 0 0 0 3px rgba(0, 119, 179, 0.75)}.user-is-tabbing.sc-duet-range-slider-h .duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:focus{box-shadow:0 0 0 1px rgb(255, 255, 255), 0 0 0 3px rgb(23, 28, 58)}.duet-range.sc-duet-range-slider::-webkit-slider-runnable-track{background:transparent}.duet-range.sc-duet-range-slider::-webkit-slider-thumb{position:relative;width:24px;height:24px;cursor:-webkit-grab;background:rgb(255, 255, 255);border:1px solid rgb(144, 149, 153);border-radius:50%;transition:box-shadow 300ms ease;-webkit-appearance:none}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-webkit-slider-thumb{border-color:rgb(116, 116, 117)}.duet-range.sc-duet-range-slider:active::-webkit-slider-thumb{cursor:-webkit-grabbing}.duet-range.sc-duet-range-slider::-moz-range-thumb{position:relative;width:24px;height:24px;cursor:-moz-grab;background:rgb(255, 255, 255);border:1px solid rgb(144, 149, 153);border-radius:50%;appearance:none}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-moz-range-thumb{border-color:rgb(116, 116, 117)}.duet-range.sc-duet-range-slider:active::-moz-range-thumb{cursor:-moz-grabbing}.duet-range.sc-duet-range-slider::-ms-thumb{position:relative;width:24px;height:24px;overflow:visible;background:rgb(255, 255, 255);border:1px solid rgb(144, 149, 153);border-radius:50%}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-ms-thumb{border-color:rgb(116, 116, 117)}.duet-range.sc-duet-range-slider:disabled{background:rgb(207, 210, 212) !important}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:disabled{background:rgb(207, 207, 209) !important}.duet-range.sc-duet-range-slider:disabled::-webkit-slider-thumb{cursor:default;background:rgb(207, 210, 212);border-color:transparent}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:disabled::-webkit-slider-thumb{background:rgb(207, 207, 209);border-color:transparent}.duet-range.sc-duet-range-slider:disabled::-moz-range-thumb{cursor:default;background:rgb(207, 210, 212);border-color:transparent}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:disabled::-moz-range-thumb{background:rgb(207, 207, 209);border-color:transparent}.duet-range.sc-duet-range-slider:disabled::-ms-thumb{cursor:default;background:rgb(207, 210, 212);border-color:transparent}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:disabled::-ms-thumb{background:rgb(207, 207, 209);border-color:transparent}.duet-range.sc-duet-range-slider::-ms-fill-lower{height:4px;background:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-ms-fill-lower{background:rgb(198, 12, 48)}.duet-range.sc-duet-range-slider::-ms-fill-upper{height:4px;background:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-ms-fill-upper{background:rgb(207, 207, 209)}.duet-label-hidden.sc-duet-range-slider duet-label.sc-duet-range-slider,.duet-label-hidden.sc-duet-range-slider output.sc-duet-range-slider{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var colors={turva:{active:colorPrimaryTurva,inactive:colorGrayTurva},default:{active:colorPrimary,inactive:colorGray}};var DuetRangeSlider=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetInput=createEvent(this,"duetInput",7);this.rangeId=createID("DuetRange");this.onInput=function(e){var r=e.target;if(r){t.value=parseFloat(r.value)||0}t.duetInput.emit({originalEvent:e,value:t.value,component:"duet-range-slider"})};this.onChange=function(e){var r=e.target;if(r){t.value=parseFloat(r.value)||0}clearTimeout(t.timeoutId);t.timeoutId=setTimeout((function(){t.duetChange.emit({originalEvent:e,value:t.value,component:"duet-range-slider"})}),t.debounce)};this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.name=undefined;this.required=false;this.disabled=false;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.min=0;this.label="label";this.labelHidden=false;this.unit="";this.max=100;this.step=1;this.locale="fi-FI";this.value=0;this.debounce=0}e.prototype.componentWillLoad=function(){inheritGlobalTheme(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.calculatePercentage=function(){return(this.value-this.min)/(this.max-this.min)*100};e.prototype.render=function(){var e=this;var t=this.identifier||this.rangeId;var r=this.theme==="turva"?"turva":"default";var a=colors[r],n=a.inactive,i=a.active;var s=this.calculatePercentage();var d={background:"-webkit-linear-gradient(left,".concat(i," 0%,").concat(i," ").concat(s,"%,").concat(n," ").concat(s,"%)")};return h(Host,{class:{"duet-m-0":this.margin==="none","duet-expand":this.expand}},h("div",{class:{"duet-range-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva","duet-ie":isInternetExplorer(),"duet-range-disabled":this.disabled}},h("duet-label",{theme:r,margin:"small",for:t},this.label),h("output",{"aria-hidden":"true",htmlFor:t,class:"duet-output"},this.value.toLocaleString(this.locale),this.unit),h("input",{onInput:this.onInput,onChange:this.onChange,ref:function(t){return e.nativeInput=t},type:"range",min:this.min,max:this.max,step:this.step,value:this.value,style:d,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.value,"aria-valuetext":"".concat(this.value," ").concat(this.unit),"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,id:t,name:this.name,disabled:this.disabled,required:this.required,class:"duet-range"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetRangeSlider.style=duetRangeSliderCss;export{DuetRangeSlider as duet_range_slider};
4
+ */import{r as registerInstance,c as createEvent,h,H as Host,g as getElement}from"./index-4abc92bd.js";import{i as colorPrimaryTurva,j as colorGrayTurva,k as colorPrimary,l as colorGray}from"./tokens.module-ed773027.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{c as createID}from"./create-id-981107da.js";import{i as isInternetExplorer}from"./is-internet-explorer-62b3bdbd.js";var duetRangeSliderCss='*.sc-duet-range-slider,*.sc-duet-range-slider::after,*.sc-duet-range-slider::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}.sc-duet-range-slider-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;margin-right:16px !important;margin-bottom:12px !important;display:inline-flex;width:100%;max-width:100%;text-align:left;vertical-align:bottom}.sc-duet-range-slider-h:last-child,.sc-duet-range-slider-h:last-of-type{margin-right:0 !important}@media (min-width: 36em){.sc-duet-range-slider-h{width:calc(50% - 16px - 3px)}.duet-expand.sc-duet-range-slider-h{width:100% !important}}.duet-m-0.sc-duet-range-slider-h{margin:0 !important}.duet-range-container.sc-duet-range-slider{position:relative;width:100%}.duet-output.sc-duet-range-slider{position:absolute;top:12px;right:0;z-index:200;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;font-weight:400;font-variant-numeric:tabular-nums;line-height:1.25;color:rgb(0, 41, 77);background:rgb(255, 255, 255)}.duet-theme-turva.sc-duet-range-slider .duet-output.sc-duet-range-slider{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-range-disabled.sc-duet-range-slider .duet-output.sc-duet-range-slider{color:rgb(144, 149, 153)}.duet-range-disabled.duet-theme-turva.sc-duet-range-slider .duet-output.sc-duet-range-slider{color:rgb(116, 116, 117)}.duet-range.sc-duet-range-slider{position:relative;z-index:100;width:100%;height:4px;background:rgb(207, 210, 212);border-radius:4px}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider{background:rgb(207, 207, 209)}.duet-ie.sc-duet-range-slider .duet-range.sc-duet-range-slider{display:block;width:auto;height:26px;background:transparent !important}.duet-range.sc-duet-range-slider::-moz-range-track{height:1px;background:transparent !important;border:0;-moz-appearance:none}.duet-range.sc-duet-range-slider::-ms-track{color:transparent;background:transparent;border:0}.duet-range.sc-duet-range-slider:focus,.duet-range.sc-duet-range-slider:active{outline:0}.user-is-tabbing.sc-duet-range-slider-h .duet-range.sc-duet-range-slider:focus{box-shadow:0 0 0 1px rgb(255, 255, 255), 0 0 0 3px rgba(0, 119, 179, 0.75)}.user-is-tabbing.sc-duet-range-slider-h .duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:focus{box-shadow:0 0 0 1px rgb(255, 255, 255), 0 0 0 3px rgb(23, 28, 58)}.duet-range.sc-duet-range-slider::-webkit-slider-runnable-track{background:transparent}.duet-range.sc-duet-range-slider::-webkit-slider-thumb{position:relative;width:24px;height:24px;cursor:-webkit-grab;background:rgb(255, 255, 255);border:1px solid rgb(144, 149, 153);border-radius:50%;transition:box-shadow 300ms ease;-webkit-appearance:none}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-webkit-slider-thumb{border-color:rgb(116, 116, 117)}.duet-range.sc-duet-range-slider:active::-webkit-slider-thumb{cursor:-webkit-grabbing}.duet-range.sc-duet-range-slider::-moz-range-thumb{position:relative;width:24px;height:24px;cursor:-moz-grab;background:rgb(255, 255, 255);border:1px solid rgb(144, 149, 153);border-radius:50%;appearance:none}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-moz-range-thumb{border-color:rgb(116, 116, 117)}.duet-range.sc-duet-range-slider:active::-moz-range-thumb{cursor:-moz-grabbing}.duet-range.sc-duet-range-slider::-ms-thumb{position:relative;width:24px;height:24px;overflow:visible;background:rgb(255, 255, 255);border:1px solid rgb(144, 149, 153);border-radius:50%}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-ms-thumb{border-color:rgb(116, 116, 117)}.duet-range.sc-duet-range-slider:disabled{background:rgb(207, 210, 212) !important}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:disabled{background:rgb(207, 207, 209) !important}.duet-range.sc-duet-range-slider:disabled::-webkit-slider-thumb{cursor:default;background:rgb(207, 210, 212);border-color:transparent}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:disabled::-webkit-slider-thumb{background:rgb(207, 207, 209);border-color:transparent}.duet-range.sc-duet-range-slider:disabled::-moz-range-thumb{cursor:default;background:rgb(207, 210, 212);border-color:transparent}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:disabled::-moz-range-thumb{background:rgb(207, 207, 209);border-color:transparent}.duet-range.sc-duet-range-slider:disabled::-ms-thumb{cursor:default;background:rgb(207, 210, 212);border-color:transparent}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider:disabled::-ms-thumb{background:rgb(207, 207, 209);border-color:transparent}.duet-range.sc-duet-range-slider::-ms-fill-lower{height:4px;background:rgb(0, 119, 179)}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-ms-fill-lower{background:rgb(198, 12, 48)}.duet-range.sc-duet-range-slider::-ms-fill-upper{height:4px;background:rgb(207, 210, 212)}.duet-theme-turva.sc-duet-range-slider .duet-range.sc-duet-range-slider::-ms-fill-upper{background:rgb(207, 207, 209)}.duet-label-hidden.sc-duet-range-slider duet-label.sc-duet-range-slider,.duet-label-hidden.sc-duet-range-slider output.sc-duet-range-slider{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);border:0}';var colors={turva:{active:colorPrimaryTurva,inactive:colorGrayTurva},default:{active:colorPrimary,inactive:colorGray}};var DuetRangeSlider=function(){function e(e){var t=this;registerInstance(this,e);this.duetChange=createEvent(this,"duetChange",3);this.duetInput=createEvent(this,"duetInput",7);this.rangeId=createID("DuetRange");this.onInput=function(e){var r=e.target;if(r){t.value=parseFloat(r.value)||0}t.duetInput.emit({originalEvent:e,value:t.value,component:"duet-range-slider"})};this.onChange=function(e){var r=e.target;if(r){t.value=parseFloat(r.value)||0}clearTimeout(t.timeoutId);t.timeoutId=setTimeout((function(){t.duetChange.emit({originalEvent:e,value:t.value,component:"duet-range-slider"})}),t.debounce)};this.theme="";this.margin="auto";this.expand=false;this.identifier=undefined;this.name=undefined;this.required=false;this.disabled=false;this.accessibleActiveDescendant=undefined;this.accessibleControls=undefined;this.accessibleOwns=undefined;this.accessibleDescribedBy=undefined;this.min=0;this.label="label";this.labelHidden=false;this.unit="";this.max=100;this.step=1;this.locale="fi-FI";this.value=0;this.debounce=0}e.prototype.componentWillLoad=function(){inheritGlobalTheme(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.calculatePercentage=function(){return(this.value-this.min)/(this.max-this.min)*100};e.prototype.render=function(){var e=this;var t=this.identifier||this.rangeId;var r=this.theme==="turva"?"turva":"default";var a=colors[r],n=a.inactive,i=a.active;var s=this.calculatePercentage();var d={background:"-webkit-linear-gradient(left,".concat(i," 0%,").concat(i," ").concat(s,"%,").concat(n," ").concat(s,"%)")};return h(Host,{class:{"duet-m-0":this.margin==="none","duet-expand":this.expand}},h("div",{class:{"duet-range-container":true,"duet-label-hidden":this.labelHidden,"duet-theme-turva":this.theme==="turva","duet-ie":isInternetExplorer(),"duet-range-disabled":this.disabled}},h("duet-label",{theme:r,margin:"small",for:t},this.label),h("output",{"aria-hidden":"true",htmlFor:t,class:"duet-output"},this.value.toLocaleString(this.locale),this.unit),h("input",{onInput:this.onInput,onChange:this.onChange,ref:function(t){return e.nativeInput=t},type:"range",min:this.min,max:this.max,step:this.step,value:this.value,style:d,"aria-valuemin":this.min,"aria-valuemax":this.max,"aria-valuenow":this.value,"aria-valuetext":"".concat(this.value," ").concat(this.unit),"aria-controls":this.accessibleControls,"aria-activedescendant":this.accessibleActiveDescendant,"aria-owns":this.accessibleOwns,"aria-describedby":this.accessibleDescribedBy,id:t,name:this.name,disabled:this.disabled,required:this.required,class:"duet-range"})))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetRangeSlider.style=duetRangeSliderCss;export{DuetRangeSlider as duet_range_slider};
@@ -1,4 +1,4 @@
1
1
  var __awaiter=this&&this.__awaiter||function(t,e,a,o){function n(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,i){function r(t){try{s(o.next(t))}catch(t){i(t)}}function l(t){try{s(o["throw"](t))}catch(t){i(t)}}function s(t){t.done?a(t.value):n(t.value).then(r,l)}s((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},o,n,i,r;return r={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function l(t){return function(e){return s([t,e])}}function s(l){if(o)throw new TypeError("Generator is already executing.");while(r&&(r=0,l[0]&&(a=0)),a)try{if(o=1,n&&(i=l[0]&2?n["return"]:l[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,l[1])).done)return i;if(n=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:a.label++;return{value:l[1],done:false};case 5:a.label++;n=l[1];l=[0];continue;case 7:l=a.ops.pop();a.trys.pop();continue;default:if(!(i=a.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){a=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){a.label=l[1];break}if(l[0]===6&&a.label<i[1]){a.label=i[1];i=l;break}if(i&&a.label<i[2]){a.label=i[2];a.ops.push(l);break}if(i[2])a.ops.pop();a.trys.pop();continue}l=e.call(t,a)}catch(t){l=[6,t];n=0}finally{o=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};
2
2
  /*!
3
3
  * Built with Duet Design System
4
- */import{r as registerInstance,h,H as Host,g as getElement,c as createEvent}from"./index-cc1bfc90.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,a as getLanguage}from"./language-utils-9d850f6c.js";import{c as createID}from"./create-id-981107da.js";import{d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey}from"./keyboard-utils-d237bd5a.js";import"./string-utils-5954f458.js";var duetScrollableCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}:host{position:relative !important}:host .duet-scrollable-items{display:flex}:host .duet-scrollable-items .duet-scrollable-button{position:relative;flex:0 0 auto;flex-basis:40px;padding:10px;cursor:pointer}:host .duet-scrollable-items .duet-scrollable-button:active{transform:scale(0.8)}:host .duet-scrollable-items .duet-scrollable-button--left{left:-12px}:host .duet-scrollable-items .duet-scrollable-button--right{right:-12px}:host .duet-scrollable-items .duet-scrollable-button--occluded{visibility:hidden}:host .duet-scrollable-items .duet-scrollable-list{display:flex;flex-wrap:nowrap;gap:20px;padding-top:2px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scroll-snap-type:x mandatory;scroll-behavior:smooth;scroll-margin:0 20px;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;}:host .duet-scrollable-items .duet-scrollable-list:not(.buttons){white-space:normal}:host .duet-scrollable-items .duet-scrollable-list::-webkit-scrollbar{display:none}:host .duet-scrollable-items .duet-scrollable-list.collapsed{flex-wrap:wrap}:host .duet-scrollable-items.center{justify-content:center}:host .duet-scrollable-items.center .duet-scrollable-list.collapsed{justify-content:center}.collapse{width:100%;text-align:center}.collapse.hide{visibility:hidden}::slotted(*){scroll-snap-align:center;margin-left:0;-webkit-transition:-webkit-transform 0.2s ease-in-out;transition:-webkit-transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out}";var DuetScrollable=function(){function t(t){var e=this;registerInstance(this,t);this.currentIndex=0;this.tabListElement=undefined;this.tabListClass="duet-scrollable-list";this.hasCollapseButtonLabelSlot=false;this.resizeObserver=new ResizeObserver((function(t){var a,o,n,i;if((t===null||t===void 0?void 0:t.length)===1){var r=(o=(a=t[0])===null||a===void 0?void 0:a.target)===null||o===void 0?void 0:o.getBoundingClientRect().width;var l=(i=(n=t[0])===null||n===void 0?void 0:n.target)===null||i===void 0?void 0:i.scrollWidth;e.isTabContentSmallerThanWrapper=l>r+5}}));this.collapsedOnClick=function(){e.collapsed=!e.collapsed};this.tablistAtStart=true;this.isTabContentSmallerThanWrapper=false;this.tablistAtEnd=false;this.childrenData={};this.theme="";this.identifier="";this.collapsed=false;this.buttons=true;this.center=false;this.selected=0}t.prototype.watchPropHandler=function(t){this.scrollToTab(t,"center")};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasCollapseButtonLabelSlot=!!this.host.querySelector(":scope > [slot='collapse-button-label']");var t=this.host.querySelectorAll(":scope > :not([slot='collapse-button-label'])");this.childrenData={hasChildren:t&&t.length>0,numberOfChildren:t&&t.length}};t.prototype.componentDidLoad=function(){this.resizeObserver.observe(this.tabListElement)};t.prototype.disconnectedCallback=function(){this.resizeObserver.disconnect()};t.prototype.getLastVisibleElement=function(){var t=this.tabListElement.clientWidth;var e=Array.from(this.host.querySelectorAll("button")).findIndex((function(e){return e.getBoundingClientRect().x>t}));return e};t.prototype.getFirstVisibleElement=function(){var t=this.host.querySelectorAll("button");var e=Array.from(t).map((function(t){return t.getBoundingClientRect().x-t.getBoundingClientRect().width}));var a=e.findIndex((function(t){return t>0}));return a};t.prototype.updateScrollButtons=function(t){if(t===void 0){t=this.tabListElement}if(!this.buttons){return}if(t.scrollLeft<=0){this.tablistAtStart=true}else if(t.scrollLeft>0){this.tablistAtStart=false}if(t.clientWidth+t.scrollLeft+10>=t.scrollWidth){this.tablistAtEnd=true}else if(t.clientWidth+t.scrollLeft+10<t.scrollWidth){this.tablistAtEnd=false}};t.prototype.scrollToTab=function(t,e){var a=this;if(t===void 0){t=this.currentIndex}if(!this.childrenData.hasChildren){return}if(t+1>=this.childrenData.numberOfChildren){t=this.childrenData.numberOfChildren-1}if(t<0){t=0}var o=this.host.querySelectorAll("button");var n=o[0].getBoundingClientRect().x;var i=5;var r=function(){if(o[0].getBoundingClientRect().x===n){i--;if(i!==0){window.requestAnimationFrame(r);return}a.updateScrollButtons()}else{window.requestAnimationFrame(r);n=o[0].getBoundingClientRect().x}};o[t].scrollIntoView({behavior:"smooth",inline:e});window.requestAnimationFrame(r)};t.prototype.scrollLeft=function(){this.tablistAtEnd=false;var t=this.getFirstVisibleElement()-1;this.scrollToTab(t,"center")};t.prototype.scrollRight=function(){this.tablistAtStart=false;var t=this.getLastVisibleElement()+1;this.scrollToTab(t,"center")};t.prototype.render=function(){var t;var e=this;return h(Host,{class:{"duet-theme-turva":this.theme==="turva","duet-theme-default":this.theme==="default"}},this.hasCollapseButtonLabelSlot&&h("div",{class:{collapse:true,hide:!this.isTabContentSmallerThanWrapper&&!this.collapsed}},h("duet-button",{variation:"plain",margin:"none","center-text":true,onClick:function(){return e.collapsedOnClick()}},h("slot",{name:"collapse-button-label"}))),h("div",{class:{"duet-scrollable-items":true,buttons:this.buttons,center:this.center}},h("button",{part:"".concat(this.identifier,"-button-left"),"aria-hidden":"true",class:{"duet-scrollable-button":true,"duet-scrollable-button--left":true,"duet-scrollable-button--occluded":!this.isTabContentSmallerThanWrapper},onClick:function(){return e.scrollLeft()},disabled:this.tablistAtStart,tabindex:"-1",hidden:!this.buttons},h("duet-icon",{name:"action-arrow-left-small",size:"small",margin:"none"})),h("div",{class:(t={},t[this.tabListClass]=true,t.collapsed=this.collapsed,t),onScroll:function(){return e.updateScrollButtons()},ref:function(t){return e.tabListElement=t}},h("slot",null)),h("button",{part:"".concat(this.identifier,"-button-right"),"aria-hidden":"true",class:{"duet-scrollable-button":true,"duet-scrollable-button--right":true,"duet-scrollable-button--occluded":!this.isTabContentSmallerThanWrapper},onClick:function(){return e.scrollRight()},disabled:this.tablistAtEnd,tabindex:"-1",hidden:!this.buttons},h("duet-icon",{name:"action-arrow-right-small",size:"small",margin:"none"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["watchPropHandler"]}},enumerable:false,configurable:true});return t}();DuetScrollable.style=duetScrollableCss;var duetTabCss=".sc-duet-tab-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-tab.sc-duet-tab{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:none;width:100%}.duet-tab.selected.sc-duet-tab{display:block}";var DuetTab=function(){function t(t){registerInstance(this,t);this.label=undefined;this.caption=undefined;this.selected=undefined;this.accessibleDescriptionDefault=null;this.accessibleDescription=this.accessibleDescriptionDefault?getLocaleString(this.accessibleDescriptionDefault):null}t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleDescription",defaults:"accessibleDescriptionDefault"})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};t.prototype.render=function(){{return h("div",{role:"tabpanel",class:{"duet-tab":true,selected:this.selected},"aria-description":this.accessibleDescription},h("slot",null))}};return t}();DuetTab.style=duetTabCss;var duetTabGroupCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;display:block;width:100%}.duet-tab-group-tabs{margin-bottom:28px !important;display:block;width:100%;max-width:100%;padding-top:2px;list-style:none}.duet-tab-group-tabs.duet-m-0{margin:0 !important}.duet-tab-group-tabs.duet-tab-group-collapses.duet-tab-group-hidden{display:none}@media (min-width: 36em){.duet-tab-group-tabs.duet-tab-group-collapses.duet-tab-group-hidden{display:block}}.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom:1px solid rgb(225, 227, 230)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom-color:rgb(228, 228, 230)}.duet-tab-variation-checked .duet-tab-group-tabs{display:flex;gap:4px;padding-right:12px;padding-left:12px;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-variation-checked .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-group-tabs{gap:8px;padding-right:16px;padding-left:16px;overflow:visible}}.duet-tab-plain-scrolling .duet-tab-group-tabs{display:flex;overflow-x:scroll;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-plain-scrolling .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-plain-scrolling .duet-tab-group-tabs{display:block;overflow:auto}}@media (min-width: 36em){duet-select{display:none !important}}.duet-tab-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:20px;margin-top:-2px;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-weight:600;line-height:1.1;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer;background:rgb(255, 255, 255);border:2px solid rgb(225, 227, 230);border-radius:0;transition:150ms ease}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button.duet-m-0{margin:0 !important}.duet-theme-turva .duet-tab-button{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(228, 228, 230)}.duet-tab-button.duet-p-0{padding:0 !important}@media (min-width: 36em){.duet-tab-button{display:inline-block;width:auto;margin-left:-2px;border-right:2px solid rgb(225, 227, 230);border-radius:0}}.duet-tab-button:hover{z-index:200;border-color:rgb(144, 149, 153)}.duet-theme-turva .duet-tab-button:hover{border-color:rgb(116, 116, 117)}.duet-tab-button:active{opacity:0.75;transition:none}.duet-tab-button.selected{z-index:201;color:rgb(255, 255, 255);background:rgb(0, 41, 77);border-color:rgb(0, 41, 77);outline:0;box-shadow:none !important}.duet-theme-turva .duet-tab-button.selected{color:rgb(255, 255, 255);background-color:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.duet-tab-button:focus{z-index:200;outline:0}:host(.user-is-tabbing) .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}:host(.user-is-tabbing) .duet-theme-turva .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tab-button:first-child{border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.duet-tab-button:first-child{border-top-right-radius:0;border-bottom-left-radius:4px}}.duet-tab-button:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-tab-button:last-child{border-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}}.duet-tab-variation-plain .duet-tab-button{display:inline-block;width:auto;padding-right:0;padding-left:0;margin-left:0;border:0;border-radius:0;transition:none}.duet-tab-variation-plain .duet-tab-button+.duet-tab-button{margin-left:36px}.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(0, 119, 179);background:rgb(255, 255, 255);border-bottom:3px solid rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(198, 12, 48);border-bottom-color:rgb(198, 12, 48)}.duet-tab-variation-checked .duet-tab-button{position:relative;display:inline-block;flex-basis:0;flex-grow:1;width:200px;min-width:200px;padding:8px 4px;border-color:rgb(207, 210, 212);border-bottom-color:rgb(0, 119, 179);border-radius:4px 4px 0 0;transition:none}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button{border-color:rgb(207, 210, 212);border-bottom-color:rgb(68, 68, 69)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button{min-width:0;padding:16px}}.duet-tab-variation-checked .duet-tab-button.stackable-tab{min-width:0}.duet-tab-variation-checked .duet-tab-button:first-child{margin-left:auto}.duet-tab-variation-checked .duet-tab-button:last-child{margin-right:auto}.duet-tab-variation-checked .duet-tab-button:active{opacity:1;transition:none}.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(0, 119, 179);background:linear-gradient(180deg, rgb(243, 249, 252) 0%, rgb(255, 255, 255) 100%);border-color:rgb(0, 119, 179);border-bottom-color:#fff}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(23, 28, 58);background:linear-gradient(180deg, rgb(245, 245, 247) 0%, rgb(255, 255, 255) 100%);border-color:rgb(68, 68, 69);border-bottom-color:#fff}.duet-tab-variation-checked .duet-tab-button .checked-tab-content{display:flex;flex-direction:row;justify-content:space-between}.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:column;height:100%}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:row}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description{display:flex;flex-direction:column;overflow:hidden;overflow-wrap:break-word}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:center}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:left}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{margin-top:4px;font-size:0.875rem;font-weight:400;color:rgb(101, 119, 135)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{font-size:1rem;text-align:left}}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{color:rgb(68, 68, 69)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(68, 68, 69)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:-1;margin-top:8px;margin-bottom:8px}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:1}}.duet-tab-group-content{position:relative;width:100%;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(0, 41, 77);text-align:left}.duet-tab-group-content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}.duet-theme-turva .duet-tab-group-content:focus{outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tab-group-content.checked-group-content{padding:28px 0 28px 0}.duet-tab-group-content.checked-group-content::after{position:absolute;top:-2px;left:0;width:100%;height:2px;content:" ";background-color:rgb(0, 119, 179)}.duet-theme-turva .duet-tab-group-content{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-theme-turva .duet-tab-group-content.checked-group-content::after{background-color:rgb(68, 68, 69)}';var DuetTabGroup=function(){function t(t){var e=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",3);this.duetTabChange=createEvent(this,"duetTabChange",7);this.duetTabChangeRequested=createEvent(this,"duetTabChangeRequested",7);this.id=createID("DuetTabGroup");this.handleKeyDown=function(t){var e;if(isArrowLeftKey(t)||isArrowUpKey(t)){e=t.target.previousElementSibling}else if(isArrowRightKey(t)||isArrowDownKey(t)){e=t.target.nextElementSibling}if(e){t.preventDefault();e.click();e.focus()}};this.onTabSelect=function(t){if(e.tabChangeConfirm){if(t!==e.selected){var a={value:t,component:"duet-tab-group"};e.duetTabChangeRequested.emit(a)}}else{e.openTab(t)}};this.scrollToActive=function(){if(e.variation==="checked"||e.variation==="plain-scrolling"){setTimeout((function(){var t=e.tabsContainer.querySelector(".selected");if(t){t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}),50)}};this.renderTab=function(){var t=e.tabs.map((function(t,a){return h("button",{role:"tab",id:e.getButtonId(a),"aria-controls":e.getTabId(a),"aria-selected":t.selected?"true":"false","aria-description":e.getAccessibleDescription(a),tabindex:a===0?"0":"-1",part:"".concat(e.identifier,"-button ").concat(t.selected?"".concat(e.identifier,"-button--selected"):""),type:"button",class:{"duet-p-0":e.padding==="none","duet-tab-button":true,"stackable-tab":e.variation==="checked"&&e.tabs.length<=3,selected:t.selected},onClick:function(){return e.onTabSelect(a)},onKeyDown:function(t){return e.handleKeyDown(t)}},e.variation==="checked"?h("div",{class:{"checked-tab-content":true,"stackable-checked-tab-content":e.tabs.length<=3}},h("div",{class:{"checked-tab-description":true,"stackable-description":e.tabs.length<=3}},h("p",null,t.label),h("p",{class:{"tab-caption":true,selected:t.selected}},t.caption)),h("div",{class:{"stackable-checkmark":e.tabs.length<=3}},h("duet-checkmark",{theme:e.theme,checked:t.selected,type:"radio","presentation-only":true,center:true}))):t.label)}));if(e.scrolls){return h("duet-scrollable",{selected:e.selected,identifier:e.identifier},t)}return t};this.tabs=[];this.selected=undefined;this.theme="";this.scrolls=false;this.collapses=true;this.accessibleLabel=undefined;this.variation="default";this.language=getLanguage();this.labelDefaults={fi:"Valitse",en:"Choose",sv:"Välj"};this.label=getLocaleString(this.labelDefaults,this.language);this.labelHidden=true;this.identifier=this.id;this.margin="auto";this.padding="auto";this.setTabIndex=false;this.tabChangeConfirm=false}t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:if(typeof MutationObserver!=="undefined"){this.mutationO=new MutationObserver((function(){t.updateTabs()}));this.mutationO.observe(this.element,{attributes:true,attributeFilter:["label"],childList:true,characterData:true,subtree:true})}return[4,this.updateTabs()];case 1:e.sent();return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.componentDidLoad=function(){this.scrollToActive()};t.prototype.openTab=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){if(t>=this.tabs.length){throw new Error("[duet-tabs] Index ".concat(t," is out of bounds of tabs length"))}this.selected=t;this.tabs.forEach((function(e,a){e.selected=a===t}));this.scrollToActive();e={value:t,component:"duet-tab-group"};this.duetChange.emit(e);this.duetTabChange.emit(e);return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){console.log("[duet-tabs] Refresh method is deprecated and will be removed in the future version.");return[2]}))}))};t.prototype.getTabs=function(){var t=this;var e=Array.from(this.element.querySelectorAll("duet-tab"));var a=e.filter((function(e){return e.closest("duet-tab-group")===t.element}));if(a.length===0){throw new Error("[duet-tabs] Must have at least one tab")}return a};t.prototype.getButtonId=function(t){return"".concat(this.id,"-button-").concat(t)};t.prototype.getTabId=function(t){return"".concat(this.id,"-tab-").concat(t)};t.prototype.getAccessibleDescription=function(t){var e=this.tabs[t].getAttribute("accessible-description")||null;return e};t.prototype.updateTabs=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this.tabs=this.getTabs();this.tabs.forEach((function(e,a){e.id=t.getTabId(a);e.setAttribute("aria-labelledby",t.getButtonId(a));if(e.selected){t.selected=a}}));return[2]}))}))};t.prototype.render=function(){var t;var e=this;var a=this.variation==="plain-scrolling"?"duet-tab-variation-plain":"duet-tab-variation-".concat(this.variation);var o=this.variation==="checked"||this.variation==="plain-scrolling";return h("div",{class:(t={"duet-tab-group":true,"duet-theme-turva":this.theme==="turva"},t[a]=true,t["duet-tab-plain-scrolling"]=this.variation==="plain-scrolling",t["duet-tab-group-scrolls"]=this.scrolls,t["duet-tab-group-collapses"]=this.collapses,t),"aria-label":this.accessibleLabel},!o&&this.tabs.length>3&&this.collapses&&h("duet-select",{value:this.selected.toString(),expand:true,label:this.label,labelHidden:this.labelHidden,theme:this.theme,onDuetChange:function(t){return e.onTabSelect(Number(t.detail.value))},items:this.tabs.map((function(t,e){return{label:t.label,value:e.toString()}}))}),h("div",{role:"tablist",class:{"duet-m-0":this.margin==="none"||this.variation==="checked","duet-tab-group-tabs":true,"duet-tab-group-hidden":this.tabs.length>3&&!o,"duet-tab-group-collapses":this.collapses},ref:function(t){e.tabsContainer=t}},this.renderTab()),h("div",{role:"tabpanel",tabindex:this.setTabIndex?null:"0",class:{"duet-tab-group-content":true,"duet-m-0":this.margin==="none","checked-group-content":this.variation==="checked"}},h("slot",null)))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetTabGroup.style=duetTabGroupCss;export{DuetScrollable as duet_scrollable,DuetTab as duet_tab,DuetTabGroup as duet_tab_group};
4
+ */import{r as registerInstance,h,H as Host,g as getElement,c as createEvent}from"./index-4abc92bd.js";import{i as inheritGlobalTheme}from"./themeable-component-cb76be7c.js";import{g as getLocaleString,c as connectLanguageChangeObserver,d as disconnectLanguageChangeObserver,a as getLanguage}from"./language-utils-9d850f6c.js";import{c as createID}from"./create-id-981107da.js";import{d as isArrowLeftKey,b as isArrowUpKey,a as isArrowRightKey,c as isArrowDownKey}from"./keyboard-utils-d237bd5a.js";import"./string-utils-5954f458.js";var duetScrollableCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent}:host{position:relative !important}:host .duet-scrollable-items{display:flex}:host .duet-scrollable-items .duet-scrollable-button{position:relative;flex:0 0 auto;flex-basis:40px;padding:10px;cursor:pointer}:host .duet-scrollable-items .duet-scrollable-button:active{transform:scale(0.8)}:host .duet-scrollable-items .duet-scrollable-button--left{left:-12px}:host .duet-scrollable-items .duet-scrollable-button--right{right:-12px}:host .duet-scrollable-items .duet-scrollable-button--occluded{visibility:hidden}:host .duet-scrollable-items .duet-scrollable-list{display:flex;flex-wrap:nowrap;gap:20px;padding-top:2px;overflow-x:auto;overflow-y:hidden;white-space:nowrap;scroll-snap-type:x mandatory;scroll-behavior:smooth;scroll-margin:0 20px;-ms-overflow-style:-ms-autohiding-scrollbar;-webkit-overflow-scrolling:touch;}:host .duet-scrollable-items .duet-scrollable-list:not(.buttons){white-space:normal}:host .duet-scrollable-items .duet-scrollable-list::-webkit-scrollbar{display:none}:host .duet-scrollable-items .duet-scrollable-list.collapsed{flex-wrap:wrap}:host .duet-scrollable-items.center{justify-content:center}:host .duet-scrollable-items.center .duet-scrollable-list.collapsed{justify-content:center}.collapse{width:100%;text-align:center}.collapse.hide{visibility:hidden}::slotted(*){scroll-snap-align:center;margin-left:0;-webkit-transition:-webkit-transform 0.2s ease-in-out;transition:-webkit-transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out;transition:transform 0.2s ease-in-out, -webkit-transform 0.2s ease-in-out}";var DuetScrollable=function(){function t(t){var e=this;registerInstance(this,t);this.currentIndex=0;this.tabListElement=undefined;this.tabListClass="duet-scrollable-list";this.hasCollapseButtonLabelSlot=false;this.resizeObserver=new ResizeObserver((function(t){var a,o,n,i;if((t===null||t===void 0?void 0:t.length)===1){var r=(o=(a=t[0])===null||a===void 0?void 0:a.target)===null||o===void 0?void 0:o.getBoundingClientRect().width;var l=(i=(n=t[0])===null||n===void 0?void 0:n.target)===null||i===void 0?void 0:i.scrollWidth;e.isTabContentSmallerThanWrapper=l>r+5}}));this.collapsedOnClick=function(){e.collapsed=!e.collapsed};this.tablistAtStart=true;this.isTabContentSmallerThanWrapper=false;this.tablistAtEnd=false;this.childrenData={};this.theme="";this.identifier="";this.collapsed=false;this.buttons=true;this.center=false;this.selected=0}t.prototype.watchPropHandler=function(t){this.scrollToTab(t,"center")};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this);this.hasCollapseButtonLabelSlot=!!this.host.querySelector(":scope > [slot='collapse-button-label']");var t=this.host.querySelectorAll(":scope > :not([slot='collapse-button-label'])");this.childrenData={hasChildren:t&&t.length>0,numberOfChildren:t&&t.length}};t.prototype.componentDidLoad=function(){this.resizeObserver.observe(this.tabListElement)};t.prototype.disconnectedCallback=function(){this.resizeObserver.disconnect()};t.prototype.getLastVisibleElement=function(){var t=this.tabListElement.clientWidth;var e=Array.from(this.host.querySelectorAll("button")).findIndex((function(e){return e.getBoundingClientRect().x>t}));return e};t.prototype.getFirstVisibleElement=function(){var t=this.host.querySelectorAll("button");var e=Array.from(t).map((function(t){return t.getBoundingClientRect().x-t.getBoundingClientRect().width}));var a=e.findIndex((function(t){return t>0}));return a};t.prototype.updateScrollButtons=function(t){if(t===void 0){t=this.tabListElement}if(!this.buttons){return}if(t.scrollLeft<=0){this.tablistAtStart=true}else if(t.scrollLeft>0){this.tablistAtStart=false}if(t.clientWidth+t.scrollLeft+10>=t.scrollWidth){this.tablistAtEnd=true}else if(t.clientWidth+t.scrollLeft+10<t.scrollWidth){this.tablistAtEnd=false}};t.prototype.scrollToTab=function(t,e){var a=this;if(t===void 0){t=this.currentIndex}if(!this.childrenData.hasChildren){return}if(t+1>=this.childrenData.numberOfChildren){t=this.childrenData.numberOfChildren-1}if(t<0){t=0}var o=this.host.querySelectorAll("button");var n=o[0].getBoundingClientRect().x;var i=5;var r=function(){if(o[0].getBoundingClientRect().x===n){i--;if(i!==0){window.requestAnimationFrame(r);return}a.updateScrollButtons()}else{window.requestAnimationFrame(r);n=o[0].getBoundingClientRect().x}};o[t].scrollIntoView({behavior:"smooth",inline:e});window.requestAnimationFrame(r)};t.prototype.scrollLeft=function(){this.tablistAtEnd=false;var t=this.getFirstVisibleElement()-1;this.scrollToTab(t,"center")};t.prototype.scrollRight=function(){this.tablistAtStart=false;var t=this.getLastVisibleElement()+1;this.scrollToTab(t,"center")};t.prototype.render=function(){var t;var e=this;return h(Host,{class:{"duet-theme-turva":this.theme==="turva","duet-theme-default":this.theme==="default"}},this.hasCollapseButtonLabelSlot&&h("div",{class:{collapse:true,hide:!this.isTabContentSmallerThanWrapper&&!this.collapsed}},h("duet-button",{variation:"plain",margin:"none","center-text":true,onClick:function(){return e.collapsedOnClick()}},h("slot",{name:"collapse-button-label"}))),h("div",{class:{"duet-scrollable-items":true,buttons:this.buttons,center:this.center}},h("button",{part:"".concat(this.identifier,"-button-left"),"aria-hidden":"true",class:{"duet-scrollable-button":true,"duet-scrollable-button--left":true,"duet-scrollable-button--occluded":!this.isTabContentSmallerThanWrapper},onClick:function(){return e.scrollLeft()},disabled:this.tablistAtStart,tabindex:"-1",hidden:!this.buttons},h("duet-icon",{name:"action-arrow-left-small",size:"small",margin:"none"})),h("div",{class:(t={},t[this.tabListClass]=true,t.collapsed=this.collapsed,t),onScroll:function(){return e.updateScrollButtons()},ref:function(t){return e.tabListElement=t}},h("slot",null)),h("button",{part:"".concat(this.identifier,"-button-right"),"aria-hidden":"true",class:{"duet-scrollable-button":true,"duet-scrollable-button--right":true,"duet-scrollable-button--occluded":!this.isTabContentSmallerThanWrapper},onClick:function(){return e.scrollRight()},disabled:this.tablistAtEnd,tabindex:"-1",hidden:!this.buttons},h("duet-icon",{name:"action-arrow-right-small",size:"small",margin:"none"}))))};Object.defineProperty(t.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{selected:["watchPropHandler"]}},enumerable:false,configurable:true});return t}();DuetScrollable.style=duetScrollableCss;var duetTabCss=".sc-duet-tab-h{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;width:100%}.duet-tab.sc-duet-tab{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:none;width:100%}.duet-tab.selected.sc-duet-tab{display:block}";var DuetTab=function(){function t(t){registerInstance(this,t);this.label=undefined;this.caption=undefined;this.selected=undefined;this.accessibleDescriptionDefault=null;this.accessibleDescription=this.accessibleDescriptionDefault?getLocaleString(this.accessibleDescriptionDefault):null}t.prototype.connectedCallback=function(){connectLanguageChangeObserver(this,{prop:"accessibleDescription",defaults:"accessibleDescriptionDefault"})};t.prototype.disconnectedCallback=function(){disconnectLanguageChangeObserver(this)};t.prototype.render=function(){{return h("div",{role:"tabpanel",class:{"duet-tab":true,selected:this.selected},"aria-description":this.accessibleDescription},h("slot",null))}};return t}();DuetTab.style=duetTabCss;var duetTabGroupCss='*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;display:block;width:100%}.duet-tab-group-tabs{margin-bottom:28px !important;display:block;width:100%;max-width:100%;padding-top:2px;list-style:none}.duet-tab-group-tabs.duet-m-0{margin:0 !important}.duet-tab-group-tabs.duet-tab-group-collapses.duet-tab-group-hidden{display:none}@media (min-width: 36em){.duet-tab-group-tabs.duet-tab-group-collapses.duet-tab-group-hidden{display:block}}.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom:1px solid rgb(225, 227, 230)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-group-tabs{border-bottom-color:rgb(228, 228, 230)}.duet-tab-variation-checked .duet-tab-group-tabs{display:flex;gap:4px;padding-right:12px;padding-left:12px;overflow-x:scroll;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-variation-checked .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-group-tabs{gap:8px;padding-right:16px;padding-left:16px;overflow:visible}}.duet-tab-plain-scrolling .duet-tab-group-tabs{display:flex;overflow-x:scroll;scroll-behavior:smooth;-ms-overflow-style:none;scrollbar-width:none;}.duet-tab-plain-scrolling .duet-tab-group-tabs::-webkit-scrollbar{display:none}@media (min-width: 36em){.duet-tab-plain-scrolling .duet-tab-group-tabs{display:block;overflow:auto}}@media (min-width: 36em){duet-select{display:none !important}}.duet-tab-button{-webkit-user-select:none;user-select:none;position:relative;z-index:100;display:block;width:100%;padding:20px;margin-top:-2px;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-weight:600;line-height:1.1;color:rgb(0, 41, 77);text-align:left;text-decoration:none;cursor:pointer;background:rgb(255, 255, 255);border:2px solid rgb(225, 227, 230);border-radius:0;transition:150ms ease}.duet-tab-button.duet-p-0{padding:0 !important}.duet-tab-button.duet-m-0{margin:0 !important}.duet-theme-turva .duet-tab-button{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(228, 228, 230)}.duet-tab-button.duet-p-0{padding:0 !important}@media (min-width: 36em){.duet-tab-button{display:inline-block;width:auto;margin-left:-2px;border-right:2px solid rgb(225, 227, 230);border-radius:0}}.duet-tab-button:hover{z-index:200;border-color:rgb(144, 149, 153)}.duet-theme-turva .duet-tab-button:hover{border-color:rgb(116, 116, 117)}.duet-tab-button:active{opacity:0.75;transition:none}.duet-tab-button.selected{z-index:201;color:rgb(255, 255, 255);background:rgb(0, 41, 77);border-color:rgb(0, 41, 77);outline:0;box-shadow:none !important}.duet-theme-turva .duet-tab-button.selected{color:rgb(255, 255, 255);background-color:rgb(23, 28, 58);border-color:rgb(23, 28, 58)}.duet-tab-button:focus{z-index:200;outline:0}:host(.user-is-tabbing) .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}:host(.user-is-tabbing) .duet-theme-turva .duet-tab-button:focus{box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tab-button:first-child{border-top-left-radius:4px;border-top-right-radius:4px}@media (min-width: 36em){.duet-tab-button:first-child{border-top-right-radius:0;border-bottom-left-radius:4px}}.duet-tab-button:last-child{border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (min-width: 36em){.duet-tab-button:last-child{border-radius:0;border-top-right-radius:4px;border-bottom-right-radius:4px}}.duet-tab-variation-plain .duet-tab-button{display:inline-block;width:auto;padding-right:0;padding-left:0;margin-left:0;border:0;border-radius:0;transition:none}.duet-tab-variation-plain .duet-tab-button+.duet-tab-button{margin-left:36px}.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(0, 119, 179);background:rgb(255, 255, 255);border-bottom:3px solid rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-plain .duet-tab-button.selected{color:rgb(198, 12, 48);border-bottom-color:rgb(198, 12, 48)}.duet-tab-variation-checked .duet-tab-button{position:relative;display:inline-block;flex-basis:0;flex-grow:1;width:200px;min-width:200px;padding:8px 4px;border-color:rgb(207, 210, 212);border-bottom-color:rgb(0, 119, 179);border-radius:4px 4px 0 0;transition:none}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button{border-color:rgb(207, 210, 212);border-bottom-color:rgb(68, 68, 69)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button{min-width:0;padding:16px}}.duet-tab-variation-checked .duet-tab-button.stackable-tab{min-width:0}.duet-tab-variation-checked .duet-tab-button:first-child{margin-left:auto}.duet-tab-variation-checked .duet-tab-button:last-child{margin-right:auto}.duet-tab-variation-checked .duet-tab-button:active{opacity:1;transition:none}.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(0, 119, 179);background:linear-gradient(180deg, rgb(243, 249, 252) 0%, rgb(255, 255, 255) 100%);border-color:rgb(0, 119, 179);border-bottom-color:#fff}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button.selected{color:rgb(23, 28, 58);background:linear-gradient(180deg, rgb(245, 245, 247) 0%, rgb(255, 255, 255) 100%);border-color:rgb(68, 68, 69);border-bottom-color:#fff}.duet-tab-variation-checked .duet-tab-button .checked-tab-content{display:flex;flex-direction:row;justify-content:space-between}.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:column;height:100%}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content.stackable-checked-tab-content{flex-direction:row}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description{display:flex;flex-direction:column;overflow:hidden;overflow-wrap:break-word}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:center}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description.stackable-description{text-align:left}}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{margin-top:4px;font-size:0.875rem;font-weight:400;color:rgb(101, 119, 135)}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{font-size:1rem;text-align:left}}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption{color:rgb(68, 68, 69)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(0, 119, 179)}.duet-theme-turva.duet-tab-variation-checked .duet-tab-button .checked-tab-content .checked-tab-description .tab-caption.selected{color:rgb(68, 68, 69)}.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:-1;margin-top:8px;margin-bottom:8px}@media (min-width: 36em){.duet-tab-variation-checked .duet-tab-button .checked-tab-content .stackable-checkmark{order:1}}.duet-tab-group-content{position:relative;width:100%;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(0, 41, 77);text-align:left}.duet-tab-group-content:focus{outline:0;box-shadow:0 0 0 4px rgba(0, 119, 179, 0.3), 0 0 0 1px rgb(0, 119, 179) !important}.duet-theme-turva .duet-tab-group-content:focus{outline:0;box-shadow:0 0 0 4px rgba(23, 28, 58, 0.2), 0 0 0 1px rgb(23, 28, 58) !important}.duet-tab-group-content.checked-group-content{padding:28px 0 28px 0}.duet-tab-group-content.checked-group-content::after{position:absolute;top:-2px;left:0;width:100%;height:2px;content:" ";background-color:rgb(0, 119, 179)}.duet-theme-turva .duet-tab-group-content{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-theme-turva .duet-tab-group-content.checked-group-content::after{background-color:rgb(68, 68, 69)}';var DuetTabGroup=function(){function t(t){var e=this;registerInstance(this,t);this.duetChange=createEvent(this,"duetChange",3);this.duetTabChange=createEvent(this,"duetTabChange",7);this.duetTabChangeRequested=createEvent(this,"duetTabChangeRequested",7);this.id=createID("DuetTabGroup");this.handleKeyDown=function(t){var e;if(isArrowLeftKey(t)||isArrowUpKey(t)){e=t.target.previousElementSibling}else if(isArrowRightKey(t)||isArrowDownKey(t)){e=t.target.nextElementSibling}if(e){t.preventDefault();e.click();e.focus()}};this.onTabSelect=function(t){if(e.tabChangeConfirm){if(t!==e.selected){var a={value:t,component:"duet-tab-group"};e.duetTabChangeRequested.emit(a)}}else{e.openTab(t)}};this.scrollToActive=function(){if(e.variation==="checked"||e.variation==="plain-scrolling"){setTimeout((function(){var t=e.tabsContainer.querySelector(".selected");if(t){t.scrollIntoView({behavior:"smooth",inline:"center",block:"nearest"})}}),50)}};this.renderTab=function(){var t=e.tabs.map((function(t,a){return h("button",{role:"tab",id:e.getButtonId(a),"aria-controls":e.getTabId(a),"aria-selected":t.selected?"true":"false","aria-description":e.getAccessibleDescription(a),tabindex:a===0?"0":"-1",part:"".concat(e.identifier,"-button ").concat(t.selected?"".concat(e.identifier,"-button--selected"):""),type:"button",class:{"duet-p-0":e.padding==="none","duet-tab-button":true,"stackable-tab":e.variation==="checked"&&e.tabs.length<=3,selected:t.selected},onClick:function(){return e.onTabSelect(a)},onKeyDown:function(t){return e.handleKeyDown(t)}},e.variation==="checked"?h("div",{class:{"checked-tab-content":true,"stackable-checked-tab-content":e.tabs.length<=3}},h("div",{class:{"checked-tab-description":true,"stackable-description":e.tabs.length<=3}},h("p",null,t.label),h("p",{class:{"tab-caption":true,selected:t.selected}},t.caption)),h("div",{class:{"stackable-checkmark":e.tabs.length<=3}},h("duet-checkmark",{theme:e.theme,checked:t.selected,type:"radio","presentation-only":true,center:true}))):t.label)}));if(e.scrolls){return h("duet-scrollable",{selected:e.selected,identifier:e.identifier},t)}return t};this.tabs=[];this.selected=undefined;this.theme="";this.scrolls=false;this.collapses=true;this.accessibleLabel=undefined;this.variation="default";this.language=getLanguage();this.labelDefaults={fi:"Valitse",en:"Choose",sv:"Välj"};this.label=getLocaleString(this.labelDefaults,this.language);this.labelHidden=true;this.identifier=this.id;this.margin="auto";this.padding="auto";this.setTabIndex=false;this.tabChangeConfirm=false}t.prototype.connectedCallback=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){switch(e.label){case 0:if(typeof MutationObserver!=="undefined"){this.mutationO=new MutationObserver((function(){t.updateTabs()}));this.mutationO.observe(this.element,{attributes:true,attributeFilter:["label"],childList:true,characterData:true,subtree:true})}return[4,this.updateTabs()];case 1:e.sent();return[2]}}))}))};t.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};t.prototype.componentWillLoad=function(){inheritGlobalTheme(this)};t.prototype.componentDidLoad=function(){this.scrollToActive()};t.prototype.openTab=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(a){if(t>=this.tabs.length){throw new Error("[duet-tabs] Index ".concat(t," is out of bounds of tabs length"))}this.selected=t;this.tabs.forEach((function(e,a){e.selected=a===t}));this.scrollToActive();e={value:t,component:"duet-tab-group"};this.duetChange.emit(e);this.duetTabChange.emit(e);return[2]}))}))};t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){console.log("[duet-tabs] Refresh method is deprecated and will be removed in the future version.");return[2]}))}))};t.prototype.getTabs=function(){var t=this;var e=Array.from(this.element.querySelectorAll("duet-tab"));var a=e.filter((function(e){return e.closest("duet-tab-group")===t.element}));if(a.length===0){throw new Error("[duet-tabs] Must have at least one tab")}return a};t.prototype.getButtonId=function(t){return"".concat(this.id,"-button-").concat(t)};t.prototype.getTabId=function(t){return"".concat(this.id,"-tab-").concat(t)};t.prototype.getAccessibleDescription=function(t){var e=this.tabs[t].getAttribute("accessible-description")||null;return e};t.prototype.updateTabs=function(){return __awaiter(this,void 0,void 0,(function(){var t=this;return __generator(this,(function(e){this.tabs=this.getTabs();this.tabs.forEach((function(e,a){e.id=t.getTabId(a);e.setAttribute("aria-labelledby",t.getButtonId(a));if(e.selected){t.selected=a}}));return[2]}))}))};t.prototype.render=function(){var t;var e=this;var a=this.variation==="plain-scrolling"?"duet-tab-variation-plain":"duet-tab-variation-".concat(this.variation);var o=this.variation==="checked"||this.variation==="plain-scrolling";return h("div",{class:(t={"duet-tab-group":true,"duet-theme-turva":this.theme==="turva"},t[a]=true,t["duet-tab-plain-scrolling"]=this.variation==="plain-scrolling",t["duet-tab-group-scrolls"]=this.scrolls,t["duet-tab-group-collapses"]=this.collapses,t),"aria-label":this.accessibleLabel},!o&&this.tabs.length>3&&this.collapses&&h("duet-select",{value:this.selected.toString(),expand:true,label:this.label,labelHidden:this.labelHidden,theme:this.theme,onDuetChange:function(t){return e.onTabSelect(Number(t.detail.value))},items:this.tabs.map((function(t,e){return{label:t.label,value:e.toString()}}))}),h("div",{role:"tablist",class:{"duet-m-0":this.margin==="none"||this.variation==="checked","duet-tab-group-tabs":true,"duet-tab-group-hidden":this.tabs.length>3&&!o,"duet-tab-group-collapses":this.collapses},ref:function(t){e.tabsContainer=t}},this.renderTab()),h("div",{role:"tabpanel",tabindex:this.setTabIndex?null:"0",class:{"duet-tab-group-content":true,"duet-m-0":this.margin==="none","checked-group-content":this.variation==="checked"}},h("slot",null)))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();DuetTabGroup.style=duetTabGroupCss;export{DuetScrollable as duet_scrollable,DuetTab as duet_tab,DuetTabGroup as duet_tab_group};
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * Built with Duet Design System
3
3
  */
4
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-cc1bfc90.js";import{i as isInternetExplorer}from"./is-internet-explorer-62b3bdbd.js";var duetSectionLayoutCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout{position:relative;padding:0 16px;margin:48px auto 36px}@media (min-width: 36em){.duet-layout{margin-top:72px}}.duet-layout.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px;margin-bottom:48px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main{display:block;width:100%}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}";var DuetSectionLayout=function(){function e(e){registerInstance(this,e);this.margin="auto";this.middle=false}e.prototype.render=function(){return h(Host,{class:{"duet-middle":this.middle,"duet-ie":isInternetExplorer()}},h("div",{class:{"duet-layout":true,"duet-m-0":this.margin==="none"}},h("section",{class:"duet-main"},h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSectionLayout.style=duetSectionLayoutCss;export{DuetSectionLayout as duet_section_layout};
4
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-4abc92bd.js";import{i as isInternetExplorer}from"./is-internet-explorer-62b3bdbd.js";var duetSectionLayoutCss="*,*::after,*::before{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none}:host{box-sizing:border-box;padding:0;margin:0;background:transparent;border:0;-moz-appearance:none;-webkit-appearance:none;appearance:none;display:block;flex:1 0 auto;width:100%}:host(.duet-middle){display:flex}:host(.duet-middle) .duet-layout{padding:36px 28px !important}@media (min-width: 36em){:host(.duet-middle) .duet-layout{padding:48px 36px !important}}@media (min-width: 62em){:host(.duet-middle) .duet-layout{padding:56px !important}}:host(.duet-ie){height:100%}:host(.duet-middle.duet-ie){height:auto}.duet-layout{position:relative;padding:0 16px;margin:48px auto 36px}@media (min-width: 36em){.duet-layout{margin-top:72px}}.duet-layout.duet-m-0{margin-top:0 !important;margin-bottom:0 !important}@media (min-width: 36em){.duet-layout{padding:0 28px}}@media (min-width: 62em){.duet-layout{display:flex;flex-direction:row;padding:0 56px;margin-bottom:48px}}@media (min-width: 76.25em){.duet-layout{max-width:1110px;padding:0}}.duet-main{display:block;width:100%}@media (min-width: 62em){.duet-main{min-width:600px;margin:0 auto}.has-sidebar .duet-main{max-width:734px;margin-right:20px}}";var DuetSectionLayout=function(){function e(e){registerInstance(this,e);this.margin="auto";this.middle=false}e.prototype.render=function(){return h(Host,{class:{"duet-middle":this.middle,"duet-ie":isInternetExplorer()}},h("div",{class:{"duet-layout":true,"duet-m-0":this.margin==="none"}},h("section",{class:"duet-main"},h("slot",null))))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();DuetSectionLayout.style=duetSectionLayoutCss;export{DuetSectionLayout as duet_section_layout};